@playkit-js/media-melon 1.0.1-canary.0-4f7a8ed
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +157 -0
- package/dist/playkit-media-melon.js +2 -0
- package/dist/playkit-media-melon.js.map +1 -0
- package/package.json +94 -0
- package/types/index.d.ts +9 -0
- package/types/modules.d.ts +7 -0
package/README.md
ADDED
@@ -0,0 +1,157 @@
|
|
1
|
+
# playkit-js-media-melon
|
2
|
+
|
3
|
+
playkit-js-media-melon allows to send analytics to Media-Melon site.
|
4
|
+
it is a plugin for [kaltura player] which relies on [kaltura player] core API for managing UI features.
|
5
|
+
|
6
|
+
playkit-js-media-melon is written in [ECMAScript6] (`*.js`) and [TypeScript] (`*.ts`) (strongly typed superset of ES6),
|
7
|
+
and transpiled in ECMAScript5 using [Babel](https://babeljs.io/) and the [TypeScript compiler].
|
8
|
+
|
9
|
+
[Webpack] is used to build the distro bundle and serve the local development environment.
|
10
|
+
|
11
|
+
[kaltura player]: https://github.com/kaltura/kaltura-player-js.
|
12
|
+
[ecmascript6]: https://github.com/ericdouglas/ES6-Learning#articles--tutorials
|
13
|
+
[typescript]: https://www.typescriptlang.org/
|
14
|
+
[typescript compiler]: https://www.typescriptlang.org/docs/handbook/compiler-options.html
|
15
|
+
[webpack]: https://webpack.js.org/
|
16
|
+
|
17
|
+
## Configuration
|
18
|
+
|
19
|
+
```js
|
20
|
+
{
|
21
|
+
"plugins": {
|
22
|
+
"mediaMelon": {
|
23
|
+
"customerId": "13145423100",
|
24
|
+
"domainName": "",
|
25
|
+
"subscriberTag": "",
|
26
|
+
"subscriberId": "",
|
27
|
+
"subscriberType": "",
|
28
|
+
"playerName": "",
|
29
|
+
"playerVersion": "",
|
30
|
+
"playerBrand": "",
|
31
|
+
"playerModel": "",
|
32
|
+
"videoAssetInfo": {
|
33
|
+
"assetId": "",
|
34
|
+
"assetName": "",
|
35
|
+
"videoId": "",
|
36
|
+
"seriesTitle": "",
|
37
|
+
"episodeNumber": "",
|
38
|
+
"season": "",
|
39
|
+
"contentType": "",
|
40
|
+
"drmProtection": "",
|
41
|
+
"genre": ""
|
42
|
+
},
|
43
|
+
"appName": "",
|
44
|
+
"appVersion": "",
|
45
|
+
"deviceMarketingName": "",
|
46
|
+
"videoQuality": "",
|
47
|
+
"deviceId": "",
|
48
|
+
"customTags": {}
|
49
|
+
}
|
50
|
+
}
|
51
|
+
}
|
52
|
+
```
|
53
|
+
|
54
|
+
## Getting started with development
|
55
|
+
|
56
|
+
```sh
|
57
|
+
# First, checkout the repository and install the required dependencies
|
58
|
+
git clone https://github.com/Kaltura-PS/playkit-js-media-melon.git
|
59
|
+
|
60
|
+
# Navigate to the repo dir
|
61
|
+
cd playkit-js-media-melon
|
62
|
+
|
63
|
+
# Run dev-server for demo page (recompiles on file-watch, and write to actual dist fs artifacts)
|
64
|
+
yarn
|
65
|
+
yarn build
|
66
|
+
yarn dev
|
67
|
+
|
68
|
+
# Before submitting a PR - Run the pre commit command
|
69
|
+
npm run pre:commit
|
70
|
+
|
71
|
+
# this command will run:
|
72
|
+
|
73
|
+
# 1. types check
|
74
|
+
# 2. lint check
|
75
|
+
# 3. generate/update types
|
76
|
+
# 4. generate/update docs
|
77
|
+
```
|
78
|
+
|
79
|
+
The dev server will host files on port 8000. Once started, the demo can be found running at http://localhost:8000/.
|
80
|
+
|
81
|
+
Before submitting a PR, please see our [contribution guidelines](CONTRIBUTING.md).
|
82
|
+
|
83
|
+
### Linter (ESlint)
|
84
|
+
|
85
|
+
Run linter:
|
86
|
+
|
87
|
+
```
|
88
|
+
npm run lint:check
|
89
|
+
```
|
90
|
+
|
91
|
+
Run linter with auto-fix mode:
|
92
|
+
|
93
|
+
```
|
94
|
+
yarn run lint:fix
|
95
|
+
```
|
96
|
+
|
97
|
+
### Formatting Code
|
98
|
+
|
99
|
+
Run prettier to format code
|
100
|
+
|
101
|
+
```
|
102
|
+
yarn run prettier:fix
|
103
|
+
```
|
104
|
+
|
105
|
+
### Type Check
|
106
|
+
|
107
|
+
Run type-check to verify TypeScript types
|
108
|
+
|
109
|
+
```
|
110
|
+
yarn run types:check
|
111
|
+
```
|
112
|
+
|
113
|
+
### Automated tests (Mocha/Karma)
|
114
|
+
|
115
|
+
Run all tests at once:
|
116
|
+
|
117
|
+
```
|
118
|
+
yarn test
|
119
|
+
```
|
120
|
+
|
121
|
+
Run unit tests in watch mode:
|
122
|
+
|
123
|
+
```
|
124
|
+
yarn run test:watch
|
125
|
+
```
|
126
|
+
|
127
|
+
## Design
|
128
|
+
|
129
|
+
An overview of this project's design, can be found [here](https://kaltura.atlassian.net/wiki/spaces/PROD/pages/3554412657/Side+Panel+Manager+-+Design+Document).
|
130
|
+
|
131
|
+
## API docs
|
132
|
+
|
133
|
+
[API docs](https://kaltura.github.io/playkit-js-media-melon/docs/api/index.html)
|
134
|
+
|
135
|
+
|
136
|
+
## Demo
|
137
|
+
|
138
|
+
[https://kaltura.github.io/playkit-js-media-melon/demo/index.html](https://kaltura.github.io/playkit-js-media-melon/demo/index.html)
|
139
|
+
|
140
|
+
## Compatibility
|
141
|
+
|
142
|
+
playkit-js-media-melon is only compatible with browsers supporting MediaSource extensions (MSE) API with 'video/MP4' mime-type inputs.
|
143
|
+
|
144
|
+
Supported on:
|
145
|
+
|
146
|
+
- Chrome 39+ for Android
|
147
|
+
- Chrome 39+ for Desktop
|
148
|
+
- Firefox 41+ for Android
|
149
|
+
- Firefox 42+ for Desktop
|
150
|
+
- IE11 for Windows 8.1+
|
151
|
+
- Edge for Windows 10+
|
152
|
+
- Safari 8+ for MacOS 10.10+
|
153
|
+
- Safari for ipadOS 13+
|
154
|
+
|
155
|
+
## License
|
156
|
+
|
157
|
+
playkit-js-media-melon is released under [Apache 2.0 License](LICENSE)
|
@@ -0,0 +1,2 @@
|
|
1
|
+
(()=>{"use strict";var t,e={86:(t,e,i)=>{i.r(e),i.d(e,{KALTURAPlayerMMSSIntgr:()=>M});var s,n,r=v;(function(t,e){for(var i=v,s=t();;)try{if(591447==-parseInt(i(572))/1*(parseInt(i(710))/2)+-parseInt(i(802))/3+-parseInt(i(1111))/4+-parseInt(i(424))/5*(-parseInt(i(1187))/6)+-parseInt(i(576))/7*(parseInt(i(1001))/8)+parseInt(i(964))/9+-parseInt(i(715))/10*(-parseInt(i(530))/11))break;s.push(s.shift())}catch(t){s.push(s.shift())}})(g),window[r(650)]||(s=r,(n=document[s(354)]("script"))[s(981)]=s(1105),document.head[s(1118)](n)),r(261);var a=Object[r(683)]({AD_BLOCKED:1,AD_IMPRESSION:2,AD_STARTED:3,AD_PLAYING:4,AD_CLICKED:5,AD_PAUSED:6,AD_RESUMED:7,AD_SKIPPED:8,AD_COMPLETED:9,AD_ERROR:10,AD_REQUEST:11,AD_PLAY:12,AD_BUFFERING:13,AD_MIDPOINT:14,AD_FIRST_QUARTILE:15,AD_THIRD_QUARTILE:16,AD_ENDED:17}),o=function(){var t=r,e={};return e[t(846)]=void 0,e[t(728)]=void 0,e[t(1079)]=0,e[t(813)]=void 0,e[t(301)]=!1,e.adCreativeType=void 0,e[t(579)]=void 0,e[t(292)]=void 0,e.adPodIndex=void 0,e[t(1049)]=void 0,e[t(585)]=void 0,e[t(1207)]=!1,e.adScheduledTime=-1,e[t(264)]=void 0,e.adUrl=void 0,e[t(370)]=void 0,e[t(517)]=void 0,e},h=Object[r(683)]({PLAYING:1,PAUSED:2,STOPPED:3}),d=Object[r(683)]({SeekStarted:1,SeekCompleted:2,Playing:3}),u=Object[r(683)]({QBRModeDisabled:r(1248),QBRModeQuality:r(1095),QBRModeBitsave:r(637),QBRModeCostsave:r(923)}),c=(Object.freeze({Cellular:"Cellular",Cellular_2G:r(768),Cellular_3G:"Cellular_3G",Cellular_4G:r(826),Cellular_LTE:r(595),Cellular_5G:"Cellular_5G",NotReachable:r(386),Wifi:r(609),WiredNetwork:r(614)}),Object.freeze({Latency:"Latency",ServerAddress:"CDN",DurationWatched:r(1084)}));r(261);var f={SDK_REGISTER_URL:"https://register.mediamelon.com/mm-apis/register/",SDK_CONFIG:{sdkVersion:r(938),hintFileVersion:r(1012),EP_SCHEMA_VERSION:r(1012),platform:r(700),qmetric:!0,statistics:!1,log_level:2},SDK_BUILD_VERSION:r(979)},l=function(t){var e=function(t,e){var i=(65535&t)+(65535&e);return(t>>16)+(e>>16)+(i>>16)<<16|65535&i},i=function(t,i,s,n,r,a){return e((o=e(e(i,t),e(n,a)))<<(h=r)|o>>>32-h,s);var o,h},s=function(t,e,s,n,r,a,o){return i(e&s|~e&n,t,e,r,a,o)},n=function(t,e,s,n,r,a,o){return i(e&n|s&~n,t,e,r,a,o)},r=function(t,e,s,n,r,a,o){return i(e^s^n,t,e,r,a,o)},a=function(t,e,s,n,r,a,o){return i(s^(e|~n),t,e,r,a,o)},o=function(t,i){var o=v;t[i>>5]|=128<<i%32,t[14+(i+64>>>9<<4)]=i;var h,d,u,c,f,l=1732584193,p=-271733879,_=-1732584194,S=271733878;for(h=0;h<t[o(644)];h+=16)d=l,u=p,c=_,f=S,l=s(l,p,_,S,t[h],7,-680876936),S=s(S,l,p,_,t[h+1],12,-389564586),_=s(_,S,l,p,t[h+2],17,606105819),p=s(p,_,S,l,t[h+3],22,-1044525330),l=s(l,p,_,S,t[h+4],7,-176418897),S=s(S,l,p,_,t[h+5],12,1200080426),_=s(_,S,l,p,t[h+6],17,-1473231341),p=s(p,_,S,l,t[h+7],22,-45705983),l=s(l,p,_,S,t[h+8],7,1770035416),S=s(S,l,p,_,t[h+9],12,-1958414417),_=s(_,S,l,p,t[h+10],17,-42063),p=s(p,_,S,l,t[h+11],22,-1990404162),l=s(l,p,_,S,t[h+12],7,1804603682),S=s(S,l,p,_,t[h+13],12,-40341101),_=s(_,S,l,p,t[h+14],17,-1502002290),p=s(p,_,S,l,t[h+15],22,1236535329),l=n(l,p,_,S,t[h+1],5,-165796510),S=n(S,l,p,_,t[h+6],9,-1069501632),_=n(_,S,l,p,t[h+11],14,643717713),p=n(p,_,S,l,t[h],20,-373897302),l=n(l,p,_,S,t[h+5],5,-701558691),S=n(S,l,p,_,t[h+10],9,38016083),_=n(_,S,l,p,t[h+15],14,-660478335),p=n(p,_,S,l,t[h+4],20,-405537848),l=n(l,p,_,S,t[h+9],5,568446438),S=n(S,l,p,_,t[h+14],9,-1019803690),_=n(_,S,l,p,t[h+3],14,-187363961),p=n(p,_,S,l,t[h+8],20,1163531501),l=n(l,p,_,S,t[h+13],5,-1444681467),S=n(S,l,p,_,t[h+2],9,-51403784),_=n(_,S,l,p,t[h+7],14,1735328473),p=n(p,_,S,l,t[h+12],20,-1926607734),l=r(l,p,_,S,t[h+5],4,-378558),S=r(S,l,p,_,t[h+8],11,-2022574463),_=r(_,S,l,p,t[h+11],16,1839030562),p=r(p,_,S,l,t[h+14],23,-35309556),l=r(l,p,_,S,t[h+1],4,-1530992060),S=r(S,l,p,_,t[h+4],11,1272893353),_=r(_,S,l,p,t[h+7],16,-155497632),p=r(p,_,S,l,t[h+10],23,-1094730640),l=r(l,p,_,S,t[h+13],4,681279174),S=r(S,l,p,_,t[h],11,-358537222),_=r(_,S,l,p,t[h+3],16,-722521979),p=r(p,_,S,l,t[h+6],23,76029189),l=r(l,p,_,S,t[h+9],4,-640364487),S=r(S,l,p,_,t[h+12],11,-421815835),_=r(_,S,l,p,t[h+15],16,530742520),p=r(p,_,S,l,t[h+2],23,-995338651),l=a(l,p,_,S,t[h],6,-198630844),S=a(S,l,p,_,t[h+7],10,1126891415),_=a(_,S,l,p,t[h+14],15,-1416354905),p=a(p,_,S,l,t[h+5],21,-57434055),l=a(l,p,_,S,t[h+12],6,1700485571),S=a(S,l,p,_,t[h+3],10,-1894986606),_=a(_,S,l,p,t[h+10],15,-1051523),p=a(p,_,S,l,t[h+1],21,-2054922799),l=a(l,p,_,S,t[h+8],6,1873313359),S=a(S,l,p,_,t[h+15],10,-30611744),_=a(_,S,l,p,t[h+6],15,-1560198380),p=a(p,_,S,l,t[h+13],21,1309151649),l=a(l,p,_,S,t[h+4],6,-145523070),S=a(S,l,p,_,t[h+11],10,-1120210379),_=a(_,S,l,p,t[h+2],15,718787259),p=a(p,_,S,l,t[h+9],21,-343485551),l=e(l,d),p=e(p,u),_=e(_,c),S=e(S,f);return[l,p,_,S]},h=function(t){var e,i=v,s="",n=32*t[i(644)];for(e=0;e<n;e+=8)s+=String[i(778)](t[e>>5]>>>e%32&255);return s},d=function(t){var e,i=v,s=[];for(s[(t.length>>2)-1]=void 0,e=0;e<s.length;e+=1)s[e]=0;var n=8*t.length;for(e=0;e<n;e+=8)s[e>>5]|=(255&t[i(559)](e/8))<<e%32;return s},u=function(t){var e,i,s=v,n=s(876),r="";for(i=0;i<t.length;i+=1)e=t[s(559)](i),r+=n.charAt(e>>>4&15)+n[s(678)](15&e);return r},c=function(t){return unescape(encodeURIComponent(t))},f=function(t){return e=c(t),h(o(d(e),8*e.length));var e},l=function(t){return u(f(t))},p=function(t,e){return function(t,e){var i,s,n=v,r=d(t),a=[],u=[];for(a[15]=u[15]=void 0,r[n(644)]>16&&(r=o(r,8*t[n(644)])),i=0;i<16;i+=1)a[i]=909522486^r[i],u[i]=1549556828^r[i];return s=o(a[n(1174)](d(e)),512+8*e[n(644)]),h(o(u[n(1174)](s),640))}(c(t),c(e))},_=function(t,e){return u(p(t,e))};return{mm_md5:function(t,e,i){return e?i?p(e,t):_(e,t):i?f(t):l(t)},hexMD5:l,rawMD5:f,hexHMACMD5:_,rawHMACMD5:p}};function v(t,e){var i=g();return(v=function(t,e){return i[t-=247]})(t,e)}function p(t,e,i){return e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}function _(t){var e=r;return(_=typeof Symbol===e(344)&&typeof Symbol.iterator===e(921)?function(t){return typeof t}:function(t){var i=e;return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?i(921):typeof t})(t)}r(261);var S={_adClient:void 0,_adId:void 0,_adPosition:void 0,_adDuration:void 0,_adResolution:void 0,_adLinear:void 0,_adCreativeType:void 0,_adServer:void 0,_prevAdState:void 0,_playSent:!1,_adCreativeId:void 0,_adTitle:void 0,_adBitrate:void 0,_adUrl:void 0,_adPlaybackStartWallClockTime:0,_adplaydur:0,_adPlaybackTime:0,_adLastPlayingEventTimeStamp:-1,_adLastAdEventTimeStamp:-1,_isBumper:!1,_adPodIndex:-2,_adPodLength:-1,_adPositionInPod:-1,_adScheduledTime:-1},I=Object[r(683)]({IDLE:0,INITIALIZED:1,ONLOAD_SENT:2,STARTED:3,STOPPED:4,ERROR:5}),m=function(){var t,e,i,s,n,o,v,m,T,A,D,R,g,P,b,C,M=r;return p(b={_httpUtil:void 0,_playerName:void 0,_customerID:void 0,_subscriberID:void 0,_assetID:void 0,_assetName:void 0,_videoId:void 0,_contentMetadata:void 0,_domainName:void 0,_component:void 0,_inProgress:!1,_simulatedEndedSent:!1,_mode:null,_modeFromResponse:null,_timerObj:null,_timerObj2:null,_timerTimestampSynchro:null,_regStatus:"",_enableVideoQoE:!0,_enableAdQoE:!0,_sdkVersion:"",_hintFileVersion:"",_playDur:0,_latencyStartTime:0,_enableEP:!1,_KAdKeepAliveInterval:5e3,_adInformation:Object[M(895)](S),_flagStartLatencyViaPlayer:!1,_statsMetric:{version:"1.0.0",qubitData:[]},_recordIndex:0,_upshiftCount:0,_downshiftCount:0,_pbTime:0,_progressMark:0,_totalDuration:0,_buffWait:0,_sumBuffWait:0,_sumBuffWaitCIRR:0,_buffWaitType:"",_sumBuffWaitVRT:0,_prevPlayerState:0,_seekState:0,_EPState:0,_pauseStartTime:0,_pauseDuration:0,_adPlaybackTime:0,_bufferLength:0,_downloadRate:0,_downloadRateCount:0,_avgDownloadRate:0,_networkType:"",adClient:"",adURL:"",adDuration:0,adPosition:0,adLinear:!1,_adServer:"",_adCreativeMime:"",_wifiDataRate:0,frameLoss:0,_wifiSignalStrenth:0,_wifiSSID:"",_presentationWidth:0,_presentationHeight:0,_videoQuality:"",_deviceCapabilities:"",_deviceID:"",_playbackStatus:"",_bufferStartTime:0,_isBufferingState:!1,prevBitrate:0,newBitrate:0,_playerBrand:"",_playerModel:"",_playerVersion:"",_appName:"",_appVersion:"",_deviceType:"",_deviceBrand:"",_deviceModel:"",_deviceOs:"",_deviceOsVersion:"",_deviceOperator:"",_deviceMarketingName:"",_timeShift:0,_timeDeltaInMs:0,_isFirstBatch:!0,_eventToSend:[],_SESEventToSend:[],deviceIdStarz:"",_statsToSend:[],_epocTime:0,_setState:!1,_qoeMetric:{},_bwExtSet:!1,_prevSegInfo:{},_segINfoStatus:!1,_adBeforePlayback:!1,_cfVal:0,_maxSteps:0,_maxStepUp:0,_maxStepDown:0,_maxEventsInQ:40,_onLoadSentAtTS:0,_lastStatsPostedAtTS:0,_statsMonitorStartedAtTS:0,_bufferingCount:0,_subscriberType:void 0,_subscriberTag:void 0,_pbTimeBeforeAdStart:0,_adLoadTime:0,_adStartEpocTime:0,_adBuffWaitForInterval:0,_adSumBuffWait:0,_adPauseStartTime:0,_adPauseDuration:0,_adPauseDurationToOffsetFromInterval:0,_adLoadStartTime:0,_segRepeatationCount:0,_httpPostTimeout:9e4,sessionId:"",_eventMetric:{version:M(741),qubitData:[]},attributes:{UPSHIFTCOUNT:M(1055),DOWNSHIFTCOUNT:"downShiftCount",SDKBOOTTIME:"sdkBootuptime",STREAMFORMAT:M(511),SDKVERSION:"sdkVersion",HFILEVERSION:M(682),ISLIVE:M(402),DATASOURCE:M(804),CUSTID:M(777),SESSIONID:M(1132),CDN:M(1078),PBTIME:M(405),OPERATOR:"operator",NETWORKTYPE:M(421),WIFISSID:M(864),WIFIDATERATE:"wifidatarate",SIGNALSTRENGTH:"signalstrength",PLATFORM:M(784),LOCATION:M(1194),SCREENRES:"scrnRes",BANDWIDTH:M(993),LATENCY:M(918),BUFFERING:M(300),BUFFERINGTYPE:M(1073),SUMBUFFERING:M(1034),SUMBUFFERINGCIRR:"sumBuffWaitCIRR",SUMBUFFERINGVRT:"sumBuffWaitVRT",PLAYDUR:M(871),FRAMELOSS:M(844),ASSETID:M(1052),ASSETNAME:M(696),VIDEOID:M(685),STREAMURL:M(331),PLAYERVERSION:M(427),MINRES:M(962),MAXRES:M(1137),MAXFPS:M(1044),MINFPS:M(671),NUMPROFILE:M(1092),TOTALDURATION:M(734),RESOLUTION:"res",QBRBITRATE:M(848),CBRBITRATE:"cbrBitrate",QBRQUALITY:"qbrQual",CBRQUALITY:"cbrQual",DURATION:"dur",FPS:"fps",SEQNUM:M(1059),STARTTIME:M(432),PROFILENUM:M(699),LASTTS:M(1106),CBRSIZE:M(868),QBRSIZE:M(533),PAUSEDURATION:"pauseDuration",SUBSCRIBERID:M(811),DOMAINNAME:M(1016),PLAYERNAME:"playerName",QBRSDKMODE:M(360),DEVICETYPE:M(1144),DEVICEBRAND:M(406),DEVICEMODEL:"model",DEVICEMARKETINGNAME:"deviceMarketingName",OSVERSION:"version",SUBSCRIBERTYPE:M(415),SUBSCRIBERTAG:M(955),CONTENTTYPE:"contentType",DRMPROTECTION:M(695),EPISODENUMBER:M(312),GENRE:M(529),SEASON:M(471),SERIESTITLE:"seriesTitle",VIDEOTYPE:M(330),VIDEOTRACK:"videoTrack",SUBTITLETRACK:M(794),AUDIOTRACK:M(581),ISVDSACTIVE:M(318),ISSUBTITLEACTIVE:"isSubtitleActive",PROGRESSMARK:M(904),APPNAME:M(624),APPVERSION:"appVersion",VIDEOQUALITY:M(299),DEVICECAPABILITIES:M(1083),DEVICEID:M(838),PLAYBACKSTATUS:M(680)},_producerURL:void 0,_producerURLSES:void 0,sesRequirements:void 0,profiledIdSES:void 0,index:0,deviceIdStarz:"",_postInterval:10,_customTag:{},_baseServerTimeStampMS:0,_prevBitrate:-1,_streamUrl:"",_initLatancy:0},M(730),0),p(b,"_adEpocTime",0),p(b,M(296),(function(t){this[M(1035)]=t})),p(b,M(1233),(function(){return this[M(1035)]})),p(b,M(1011),(function(){return this[M(1250)]})),p(b,M(1061),(function(t){return!0})),p(b,M(619),(function(t){this[M(1202)]=t})),p(b,M(956),(function(){return this[M(1202)]})),(C={})[t=M(849)]=C[t]||{},C[t][M(988)]=function(t){this[M(376)]=t},C[e="postInterval"]=C[e]||{},C[e][M(736)]=function(){return this[M(376)]},C[i=M(1114)]=C[i]||{},C[i][M(988)]=function(t){this._producerURL=t},C[s=M(1114)]=C[s]||{},C[s][M(736)]=function(){return this[M(899)]},C[n="recordIndex"]=C[n]||{},C[n][M(988)]=function(t){this[M(1249)]=t},C[o=M(1192)]=C[o]||{},C[o][M(736)]=function(){return this[M(1249)]},C[v="upShiftCount"]=C[v]||{},C[v].set=function(t){this[M(947)]=t},C[m=M(1026)]=C[m]||{},C[m][M(736)]=function(){return this[M(947)]},C[T=M(691)]=C[T]||{},C[T][M(988)]=function(t){this[M(799)]=t},C[A=M(865)]=C[A]||{},C[A][M(736)]=function(){return this[M(799)]},C[D=M(1056)]=C[D]||{},C[D][M(988)]=function(t){this[M(575)]=t},C[R=M(1056)]=C[R]||{},C[R][M(736)]=function(){return this[M(575)]},C[g="eventMetric"]=C[g]||{},C[g][M(988)]=function(t){this[M(613)]=t},C[P=M(967)]=C[P]||{},C[P][M(736)]=function(){return this._eventMetric},p(b,"registerMMSmartStreaming",(function(t,e,i,s,n,r){var a=M;this[a(825)]=t,this[a(1186)]=e,this._subscriberID=i,this[a(765)]=s,this._subscriberType=n,this[a(873)]=r})),p(b,M(889),(function(t){this[M(1148)]=t})),p(b,"updateSubscriber",(function(t,e,i){var s=M;this[s(1148)]=t,this[s(561)]=e,this[s(873)]=i})),p(b,M(295),(function(t,e,i,s){var n=M;return this[n(974)]&&(this[n(974)][n(269)](),this[n(974)]=void 0),this[n(899)]=void 0,this[n(267)]=void 0,this[n(984)]="",this[n(824)]=0,this[n(619)](n(793)),this[n(322)].version=this[n(613)][n(829)]=f.SDK_CONFIG.EP_SCHEMA_VERSION,this[n(1093)]=e,this._assetID=s.assetId,this[n(537)]=s[n(696)],this[n(306)]=s[n(685)],this._contentMetadata=s,this[n(1180)]("https://mediamelon-builds.s3.amazonaws.com/MM-RELEASE-BUILDS/1185727140/files/endPoint.json"),this[n(1135)](),this.registerSdkWithBackend(t)})),p(b,M(534),(function(t){var e=M,i=f[e(310)]+this[e(1186)],s=f[e(720)];return s[e(1020)]=this[e(551)],s[e(360)]=t,this[e(974)]=new E,this[e(974)][e(906)](i,s)})),p(b,M(357),(function(){var t=M;if(this.sesRequirements){var e=this[t(795)].JWT,i=new XMLHttpRequest;i[t(660)](t(257),this[t(795)][t(645)],!0),i[t(960)](t(304),"*"),i[t(960)]("Authorization",t(557)+e),i[t(762)]=function(){console[t(920)]("Error while getting profiledId for Toolbox")};var s=this;i[t(423)]=function(){var e=t;if(i[e(297)]===XMLHttpRequest[e(1062)]){var n=i.status;if(0===n||n>=200&&n<400){var r=i[e(373)];try{s[e(672)]=JSON.parse(r).result[0].id}catch(t){console[e(920)](e(447))}}else console[e(920)]("Error while getting profiledId for Toolbox - HTTP error",n)}},i[t(1239)]()}})),p(b,M(771),(function(){var t=M;if(this.sesRequirements){var e=this[t(795)][t(1031)],i=parseFloat(this[t(808)][t(570)](2)),s=this[t(795)][t(995)],n=new XMLHttpRequest;n[t(660)]("POST",this[t(267)]+t(577),!0),n[t(358)]=this[t(1130)],n[t(960)](t(304),"*"),n.setRequestHeader(t(989),t(941));var r=this[t(795)][t(616)][t(538)](t(727))[1],a={apiKey:r[t(805)](0,r.length-1),eventType:"",deviceId:this[t(984)]};a[t(930)]=t(577),a[t(888)]={session_id:e,affiliate_name:"Dish_MX_SES",content_id:s,position_milliseconds:1e3*i};var o=JSON[t(468)](a);n.onerror=function(){var e=t;console[e(920)](e(433))},n[t(1239)](o)}})),p(b,M(397),(function(){var t=M;if(this[t(267)]&&this.profiledId&&this[t(795)]&&!this[t(795)][t(855)]){this[t(824)]+=1;var e=this.index,i=this._eventMetric[t(481)][this[t(1249)]][t(987)][this[t(1228)][t(1094)]][t(538)]("x"),s=(i[0],i[1],{content:{id:this.sesRequirements[t(995)],drmType:t(1176),formatType:t(946)},events:[],playback:{position:parseFloat(this[t(808)].toFixed(2)),timeSpent:this.getPlayDur(),bitrate:this[t(931)][t(452)]},user:{profiledId:this[t(672)]},playerID:this[t(984)]}),n={name:"StreamingProgress",number:e};s.events[t(773)](n);var r=JSON[t(468)](s),a=new XMLHttpRequest;a[t(660)](t(555),this[t(267)]),a[t(960)](t(1040),"application/json"),a[t(960)](t(304),"*"),a.setRequestHeader(t(580),t(941));var o=this[t(795)].JWT;a[t(960)]("Authorization",t(557)+o),a[t(762)]=function(){var e=t;console[e(920)](e(490))},a[t(1239)](r)}})),p(b,M(709),(function(t,e){var i=M;if(this[i(795)]&&!this.sesRequirements[i(855)]){this.sesRequirements[i(692)]&&""==this.sesRequirements[i(645)]&&this[i(357)]();var s=t;if(s!==i(674)&&s!==i(788)&&s!==i(901)&&s!==i(903)&&s!==i(779)&&s!==i(339)&&s!==i(840)&&s!==i(1200)){var n=s===i(725)?25:s===i(916)?50:s===i(409)?75:s===i(1082)?95:"ended"===s?99:s===i(788)?100:"progressmark"===s?10:void 0;this.index+=1;var r=this.index,a=this[i(613)][i(481)][this[i(1249)]][i(987)][this[i(1228)].SCREENRES][i(538)]("x"),o=(a[0],a[1],{content:{id:this[i(795)][i(995)],drmType:i(1176),formatType:i(946)},events:[],playback:{position:parseFloat(this[i(808)].toFixed(2)),timeSpent:this[i(1071)](),bitrate:this[i(931)][i(452)]},user:{profiledId:this.profiledId},playerID:this[i(984)]});if(s===i(457)||s===i(774)||s===i(560)){var h={name:s[i(1153)](),number:r};return o.events[i(773)](h),JSON.stringify(o)}if(s===i(277)){var d={name:i(535),value:{errorCode:e[i(927)],errorMessage:e[i(744)]}};return o[i(703)][i(773)](d),JSON.stringify(o)}var u={name:s,value:n,number:r};return o[i(703)][i(773)](u),JSON[i(468)](o)}}})),p(b,M(615),(function(){var t=M;if(this[t(795)]&&!this[t(795)][t(855)]&&this[t(267)]&&this.profiledId){this[t(958)][t(644)];for(var e=this[t(795)][t(711)],i=0;i<this[t(958)].length;i++){var s=new XMLHttpRequest;s[t(660)](t(555),this[t(267)],!0),s.timeout=this._httpPostTimeout,s[t(960)](t(304),"*"),s[t(960)]("Content-type",t(941)),s[t(960)]("Authorization","JWT "+e),s.setRequestHeader(t(580),t(941)),s[t(762)]=function(){var e=t;console[e(920)](e(1013))},s.send(this._SESEventToSend[i]),this[t(958)][i]=null}this[t(958)]=[]}})),p(b,M(411),(function(){return([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g,(t=>(t^crypto.getRandomValues(new Uint8Array(1))[0]&15>>t/4).toString(16)))})),p(b,M(767),(function(t,e){var i=M;if(this[i(795)]&&!this[i(795)].isToolbox){var s=this.sesRequirements[i(1031)],n=parseFloat(this._pbTime[i(570)](2)),r=this[i(1032)],a=this._playerVersion,o=this[i(648)],h=this[i(1206)],d=this[i(1177)],u=this[i(1057)],c=this[i(795)][i(995)],f=i(816),l=i(748),v=i(1006),p=this[i(795)].starzEndpoint[i(538)](i(727))[1],_={apiKey:p[i(805)](0,p.length-1),eventType:"",deviceId:this.deviceIdStarz};if(t===i(779))return _[i(930)]=i(1124),_.properties={session_id:s,target_quality_resolution:e[i(617)][i(963)]+"X"+e[i(617)].height,target_quality_bitrate:e.targetQuality[i(1210)]},JSON[i(468)](_);var S=t;return"PAUSE"===S||S===i(560)||S===i(788)||S===i(840)||S===i(901)||S===i(954)?("PAUSE"===S?(_[i(930)]=i(1123),_[i(888)]={session_id:s,paused_position_milliseconds:1e3*n}):S===i(560)?(_.eventType=i(362),_[i(888)]={session_id:s,resumed_position_milliseconds:1e3*n}):S===i(788)||S===i(954)?(_[i(930)]=i(1074),_.properties={session_id:s,end_time_milliseconds:1e3*n}):S===i(840)?(_[i(930)]="SEEK_STARTED",_[i(888)]={session_id:s,start_position_milliseconds:1e3*n}):S===i(901)&&(_.eventType=i(1204),_[i(888)]={session_id:s,end_position_milliseconds:1e3*n}),JSON[i(468)](_)):S===i(674)?(_[i(930)]=i(478),_[i(888)]={session_id:s,player_name:r,player_version:a,os_name:o,os_version:h,platform_name:d,platform_version:u,device_type:"PC",content_id:c},JSON[i(468)](_)):"downloadFinished"===S?(_[i(930)]="DOWNLOAD_FINISHED",_.properties={session_id:s,http_status:e[i(943)],success:e.success,download_time:e[i(578)],size:e[i(924)],attempt:e[i(754)],max_attempts:e[i(449)],download_Type:e[i(1096)]},JSON.stringify(_)):"SES_ERROR"===S?(_[i(930)]="ERROR",_.properties={session_id:s,error_details:{code:e[i(927)],message:e[i(744)],content_id:c,detail:e[i(365)]},user_residency_country:"NA",user_residency_region:"NA",catalog_partner:v},JSON[i(468)](_)):S===i(1246)?(_[i(930)]=i(1113),_[i(888)]={session_id:s,warning_details:{code:e[i(927)],name:e[i(744)],timestamp:e.timestamp,data:e[i(365)],message:e[i(1211)]}},JSON[i(468)](_)):S===i(1200)?(_.eventType=i(1200),_[i(888)]={session_id:s},JSON[i(468)](_)):S===i(903)?(_[i(930)]=i(800),_.properties={session_id:s},JSON[i(468)](_)):S===i(457)?(_.eventType=i(298),_[i(888)]={session_id:s,startup_time_milliseconds:this[i(275)],content_id:c,affiliate_name:f,type:l,user_residency_country:"NA",user_residency_region:"NA",catalog_partner:v},JSON.stringify(_)):void 0}})),p(b,M(869),(function(){var t=M;if(this[t(795)]&&!this[t(795)][t(692)]&&this[t(267)]){this._SESEventToSend[t(644)];for(var e=0;e<this[t(958)].length;e++){var i=new XMLHttpRequest,s=JSON[t(546)](this[t(958)][e]),n=this[t(267)]+s.eventType;i[t(660)](t(555),n,!0),i[t(358)]=this[t(1130)],i[t(960)](t(304),"*"),i[t(960)](t(989),t(941)),i.onerror=function(){var e=t;console[e(920)](e(590))},i[t(1239)](this[t(958)][e]),this[t(958)][e]=null}return this[t(958)]=[],0}})),p(b,M(321),(function(t){var e,i,s=M;this[s(619)](s(950)),this._modeFromResponse=t[s(360)],this[s(1008)](t[s(280)]),void 0!==t.maxStepsUp&&(isNaN(t[s(791)])||(e=t[s(791)])),void 0!==t[s(1223)]&&(isNaN(t[s(1223)])||(i=t[s(1223)])),void 0===e&&void 0===i&&void 0!==t[s(324)]&&!isNaN(t[s(324)])&&(e=i=t.maxSteps),this[s(743)](e,i),this.reportServerTimeStamp(t[s(587)]),this.reportProducer(t[s(1114)],t.statsInterval),this[s(1145)](),this[s(880)]=!0,this[s(389)]=!1})),p(b,M(831),(function(t,e){var i=M;void 0!==t&&(this[i(524)]=t),void 0!==e&&(this[i(693)]=e)})),p(b,"reportRegistrationFailure",(function(){var t=M;this[t(619)]("FAILED"),this[t(899)]=void 0,this[t(549)]=null,this[t(376)]=-1,this[t(352)]=[],this[t(958)]=[],this[t(416)]=[],this[t(430)]()})),p(b,M(1133),(function(){var t=M;this[t(534)](this[t(1250)])[t(435)]((function(e){var i=t,s=JSON.parse(e);s&&s.timestamp&&this[i(364)](s[i(587)])}))[t(455)]((function(t){}))})),p(b,"addSegInfo",(function(t){var e=M;this[e(931)]&&-1!=t[e(1059)]&&this[e(931)][e(1059)]==t[e(1059)]&&this[e(931)][e(432)]===t[e(432)]&&this._prevSegInfo[e(452)]===t[e(452)]&&this[e(1188)]++<10||this[e(931)][e(452)]===t.cbrBitrate&&this[e(931)][e(977)]===t.res||t.cbrBitrate&&(this[e(668)]>0&&(t[e(863)]=parseFloat((1024*this._downloadRate)[e(570)](2))),this._bufferLength>=0&&(t[e(1222)]=parseInt(this[e(253)])),t[e(868)]?t[e(713)]<0&&(t[e(868)]=t[e(533)]=0):t[e(713)]>0?t[e(868)]=t.qbrSize=t[e(713)]*t[e(452)]:t[e(868)]=t[e(533)]=0,t[e(587)]=this.getCorrectedCurrentTimeinMs(),this[e(322)].qubitData[this[e(1249)]][e(935)][e(773)](t),this._prevSegInfo=t[e(332)]===Array?t[length-1]:t,this._segINfoStatus=!0,this._segRepeatationCount=0)})),p(b,M(368),(function(t){var e=M;void 0!==t&&t>0&&(this[e(668)]=t/1024,this[e(466)]=this[e(466)]+1,this[e(942)]=this[e(668)]+this[e(942)])})),p(b,"reportBufferLength",(function(t){t>=0&&(this[M(253)]=t)})),p(b,M(302),(function(){var t=M;delete this[t(613)][t(481)][this[t(1249)]][t(850)]})),p(b,M(601),(function(t,e){var i=M;typeof this[i(613)][i(481)][this[i(1249)]][i(731)]===i(608)&&(this._eventMetric[i(481)][this[i(1249)]][i(731)]={}),typeof this[i(322)].qubitData[this[i(1249)]][i(731)]===i(608)&&(this[i(322)][i(481)][this[i(1249)]].customTags={});var s=this[i(613)][i(481)][this[i(1249)]][i(731)];s[t]=e,this[i(613)][i(481)][this._recordIndex][i(731)]=s,this._statsMetric[i(481)][this._recordIndex].customTags=s})),p(b,M(251),(function(t){var e=M;void 0!==t[e(1052)]&&null!==t[e(1052)]&&this[e(489)](this[e(1228)][e(1048)],t.assetId),void 0!==t[e(696)]&&null!==t[e(696)]&&this[e(489)](this[e(1228)][e(377)],t[e(696)]),t[e(685)]&&this.setContentMetadata(this[e(1228)].VIDEOID,t[e(685)]),t[e(564)]&&this[e(489)](this[e(1228)][e(536)],t[e(564)]),t[e(695)]&&this[e(489)](this[e(1228)].DRMPROTECTION,t[e(695)]),t[e(312)]&&this.setContentMetadata(this[e(1228)][e(783)],t[e(312)]),t[e(529)]&&this[e(489)](this[e(1228)].GENRE,t.genre),t[e(471)]&&this.setContentMetadata(this[e(1228)][e(1058)],t[e(471)]),t[e(1235)]&&this.setContentMetadata(this.attributes[e(944)],t[e(1235)]),t.videoType&&this[e(489)](this[e(1228)][e(968)],t.videoType)})),p(b,"setContentMetadata",(function(t,e){var i=M;null!=e&&(this[i(322)][i(481)][this[i(1249)]][i(487)][t]=e,this[i(613)][i(481)][this[i(1249)]][i(487)][t]=e)})),p(b,M(632),(function(t){var e=M;t&&(this[e(611)]=t,this[e(724)](this.attributes[e(657)],this[e(611)]))})),p(b,M(1041),(function(t){this._deviceType=t})),p(b,M(1008),(function(t){this._cfVal=t})),p(b,M(355),(function(){return this[M(686)]})),p(b,M(743),(function(t,e){var i=M;t>=0&&(this[i(878)]=t),e>=0&&(this[i(443)]=e)})),p(b,"getMaxStepsToSwitch",(function(){return[this[M(878)],this._maxStepDown]})),p(b,M(1181),(function(t){var e=M;t&&(this[e(872)]=t,this.setClientInfo(this[e(1228)][e(961)],this[e(872)]))})),p(b,M(523),(function(t){var e=M;t&&(this[e(1076)]=t,this.setClientInfo(this.attributes[e(806)],this._wifiSignalStrenth))})),p(b,M(553),(function(t){var e=M;t&&(this[e(669)]=t,this[e(724)](this.attributes[e(507)],this[e(669)]))})),p(b,M(364),(function(t){var e=M;this._baseServerTimeStampMS=t,this[e(450)]()})),p(b,M(607),(function(t,e){var i=M;this[i(899)]=t,this[i(376)]=e})),p(b,M(985),(function(t){var e=M;this[e(267)]=t,this[e(984)]=this.GenerateDeviceIdStarz()})),p(b,M(1147),(function(t){var e=M;this[e(1250)]=t,this[e(1229)](this.attributes[e(1159)],this[e(1250)]),this[e(655)]()})),p(b,M(1208),(function(t,e,i){var s=M;t&&(this[s(817)]=t),e&&(this[s(537)]=e),i&&(this[s(306)]=i)})),p(b,M(431),(function(t,e){var i=M;this[i(1142)]=t,this[i(1149)]=e})),p(b,M(627),(function(t){var e=M;this[e(844)]=t,this.setPBStats(this[e(1228)][e(444)],this[e(844)])})),p(b,"reportABRSwitch",(function(t,e){var i=M;t<e?this[i(947)]++:t>e&&this[i(799)]++;var s=i(254)+t+", New: "+e;this[i(313)]("BITRATE_SHIFT",s,i(543),this[i(808)]),this.setSegInfo(this.attributes.CBRBITRATE,e)})),p(b,M(1145),(function(){var t=M;this[t(655)](),this.sendQueuedStats(),this[t(594)]()})),p(b,"sendQueuedStats",(function(){var t=M;if(void 0!==this[t(899)]){for(var e=0;e<this[t(416)][t(644)];e++){var i=this[t(416)][e],s=new XMLHttpRequest;s[t(660)](t(555),this[t(899)],!0),s.timeout=this[t(1130)],s[t(960)](t(304),"*"),s[t(960)](t(989),t(941)),s[t(1239)](i),this._lastStatsPostedAtTS=this[t(565)](),this[t(416)][e]=null}this._statsToSend=[]}})),p(b,M(815),(function(t,e,i){var s=M;this[s(1032)]=t,this._playerModel=e,this[s(1101)]=i})),p(b,"reportAppInfo",(function(t,e){this._appName=t,this._appVersion=e})),p(b,M(407),(function(t){this[M(599)]=t})),p(b,M(766),(function(t){this[M(369)]=t})),p(b,"reportManifestLoaded",(function(t){var e=M;this[e(313)]("MANIFEST_LOADED","Manifest Load Complete",e(919),this[e(808)])})),p(b,M(982),(function(t){this[M(279)]=t})),p(b,"reportDeviceInfo",(function(t,e,i,s,n,r,a,o){var h=M;t&&(this[h(1177)]=t),e&&(this[h(1057)]=e),i&&(this._deviceOs=i),s&&(this._deviceOsVersion=s),n&&(this._deviceOperator=n),a&&(this[h(1142)]=a),o&&(this[h(1149)]=o),r&&(this._deviceMarketingName=r),this[h(649)]()})),p(b,"reportMetricValue",(function(t,e){var i=M;t===c[i(488)]?(this[i(275)]=parseFloat(e[i(570)](2)),this[i(1087)]=!0):t===c.ServerAddress?this[i(724)](this[i(1228)][i(854)],e):c[i(1084)]})),p(b,M(1201),(function(){var t=M;if(this[t(721)]){if(!this[t(721)][t(966)]||this._isBufferingState)return;this._isBufferingState=!0;var e=this[t(565)]();populateAdRelatedInfo(e),this[t(959)]=e,this[t(470)](this[t(1228)].SUMBUFFERING,this._adSumBuffWait),notifyEvent(t(398),t(1128),t(398),null),_adInformation[t(272)]=e}})),p(b,M(833),(function(){var t=M;if(this[t(721)]){if(!_adInformation[t(966)]||0==this[t(392)])return;if(this[t(875)]=t(603),this._isBufferingState=!1,this[t(502)]===h[t(635)]){var e=this[t(565)]();this[t(959)]&&(this[t(573)]=e-this[t(959)],this[t(271)]=this[t(271)]+this._adBuffWaitForInterval,this[t(542)](this[t(1228)][t(903)],this[t(573)]),this[t(470)](this[t(1228)][t(262)],this._adSumBuffWait),this[t(959)]=0)}}})),p(b,M(499),(function(){var t=M;this[t(1233)]()!==I[t(972)]||this[t(392)]||(this[t(392)]=!0,this[t(959)]=this[t(565)](),this[t(681)]++,this[t(470)](this[t(1228)][t(262)],this[t(740)]),this[t(470)](this[t(1228)][t(340)],this[t(349)]),this[t(470)](this[t(1228)][t(602)],this[t(832)]),this[t(313)](t(755),t(503),"BUFFERING_START",this[t(808)]))})),p(b,M(606),(function(){var t=M;this.getEPState()===I.STARTED&&(this.notifyEvent(t(1241),t(1038),t(1241),this[t(808)]),this[t(392)]=!1,this[t(276)]())})),p(b,M(1027),(function(t,e){var i=M;this.notifyEvent(t,e,t,this[i(808)])})),p(b,M(531),(function(){var t=M,e=this[t(565)]();this[t(1233)]()===I[t(1243)]?(this[t(605)]=e,this[t(313)](t(674),"Player Initializing..",t(674),0),this.notifyPackager("ONLOAD"),this.setEPState(I[t(1060)])):console.log(t(284))})),p(b,"reportPlayerState",(function(t){var e=M,i=this[e(1233)](),s=this[e(565)]();this[e(470)](this.attributes.SUMBUFFERING,this[e(740)]),this[e(470)](this[e(1228)][e(340)],this[e(349)]),this[e(470)](this[e(1228)][e(602)],this._sumBuffWaitVRT);var n=!1,r=!1;switch(t){case h[e(635)]:if(this._seekState=d.Playing,this[e(502)]==h.PAUSED&&i===I[e(1060)]&&(this[e(729)]=s-this[e(366)],this[e(470)](this[e(1228)].PAUSEDURATION,this[e(729)]),this[e(366)]=0,this[e(313)](e(560),e(761),"RESUME",this[e(808)]),this[e(594)](),this[e(275)]=this._initLatency-this[e(729)],r=!0),i===I[e(1060)]){if(!this[e(1087)]){var a=s-this[e(605)];this[e(275)]=a,this[e(1140)]&&this[e(721)]&&this._initLatency>0&&(this[e(474)]>0&&(this[e(275)]-=this[e(474)]),this[e(275)]>0&&this[e(721)][e(1029)]>0&&(this._initLatency-=this[e(721)][e(1029)]),this[e(275)]>0&&this._adPauseDuration>0&&(this[e(275)]-=this[e(1063)])),this[e(275)]<0&&(this[e(275)]=0)}this[e(414)]=s,this._statsMonitorStartedAtTS||(this[e(335)]=s),this[e(542)](this[e(1228)][e(986)],this._initLatency),this[e(296)](I[e(972)]),this[e(639)](e(457)),this[e(1140)]?this[e(313)](e(809),e(1225),"START_AFTER_AD",this[e(808)]):this.notifyEvent(e(457),e(314),"START",this[e(808)]),this[e(605)]=0,this[e(594)](),r=!0,this[e(1253)]=this._pbTime}else if(i===I[e(972)]&&this._prevPlayerState===h[e(853)])this[e(366)]&&(this[e(729)]=s-this[e(366)],this[e(470)](this[e(1228)][e(735)],this._pauseDuration),this._epocTime+=this._pauseDuration,this._pauseStartTime=0,this._bufferStartTime=s,this[e(313)](e(560),"Playback resumed",e(560),this._pbTime),this[e(639)](e(560)),this[e(392)]&&(this[e(392)]=!1,n=!0),this.startMonitoring(),r=!0,this._pbTimeBeforeAdStart=this[e(808)]);else if(i===I[e(259)]&&this._prevPlayerState===h[e(259)]){var o=this[e(689)](),u=this.getStreamId(),c=this._mode;this[e(521)](),this[e(1135)](),this[e(1147)](c),this[e(509)](o[e(1137)],o.minRes,o[e(1044)],o[e(671)],o[e(1092)],o[e(511)]),this[e(1089)](o.totalDuration),this[e(592)](u[e(402)]),this[e(296)](I[e(1243)]),this[e(531)](),this[e(598)](h[e(635)]),this.setEPState(I.STARTED),r=!0}break;case h[e(853)]:(i===I[e(972)]||i===I.ONLOAD_SENT)&&(this[e(628)](),this[e(366)]=s,this[e(313)](e(774),e(852),"PAUSE",this[e(808)]),this[e(639)](e(774)),this.stopMonitoring(),r=!0,this[e(1253)]=this[e(808)]);break;case h[e(259)]:if(!0===this._simulatedEndedSent||i===I.STOPPED||void 0===this[e(502)]||this._prevPlayerState===h[e(259)])break;this[e(594)]();var f=this[e(740)]+this[e(275)];this.setBufPBEvent(this[e(1228)].SUMBUFFERING,f),this[e(900)]&&this[e(628)](),this[e(900)]<=0||this._pbTime<.9*this[e(900)]?(this.notifyEvent(e(954),e(1014),e(954),this._pbTime),this[e(639)](e(954))):(this[e(313)](e(788),e(1014),e(788),this[e(808)]),this[e(639)]("COMPLETE")),this.stopMonitoring(),this[e(880)]=!1,this[e(296)](I[e(259)]),r=!0;break;default:return void y.log("INFO",e(498))}r&&(this[e(502)]=t),n&&this[e(499)]()})),p(b,M(1081),(function(t,e){var i=M;this[i(757)](e),this.getEPState()>=I[i(1060)]&&this[i(313)]("ERROR",t,i(339),this._pbTime)})),p(b,M(395),(function(t){return null!=t&&t[M(644)]})),p(b,M(422),(function(t){var e=M;this[e(313)](e(1080),t,e(1080),this[e(808)])})),p(b,M(574),(function(t){var e=M;this.notifyEvent(e(475),t,e(475),this[e(808)])})),p(b,"reportPlaybackRateChange",(function(){var t=M;this[t(313)](t(893),"Playback Rate Changed",t(893),this._pbTime)})),p(b,M(747),(function(){var t=M;this[t(313)]("DURATION_CHANGE",t(569),t(1015),this._pbTime)})),p(b,M(383),(function(){var t=M;this[t(1197)]=d.SeekStarted,this[t(313)](t(751),t(1017),t(751),this[t(808)])})),p(b,M(822),(function(t){var e=M,i=this.getCurrentTimeinMs();this[e(1233)]()===I.STARTED&&(this[e(366)]&&(this._epocTime+=i-this[e(366)]),this.setPlaybackPos(t),this[e(1197)]=d[e(787)],this[e(313)](e(620),"Playback Seek Completed",e(620),t/1e3),this[e(639)](e(901)),this[e(366)]&&(this[e(414)]-=i-this[e(366)]))})),p(b,M(521),(function(){var t=M;this[t(880)]&&this.getEPState()===I.STARTED&&(this[t(598)](h[t(259)]),this[t(880)]=!1,this[t(389)]=!0),this[t(1250)]=null,this[t(253)]=0,this._downloadRate=0,this[t(466)]=0,this[t(942)]=0,this[t(353)]=!0,this[t(514)]=0,this[t(881)]=0,this[t(335)]=0,this[t(681)]=0,this[t(1249)]=0,this[t(591)]=-1,this[t(947)]=0,this._pbTime=0,this[t(1127)]=0,this._pbTimeBeforeAdStart=0,this[t(799)]=0,this[t(698)]=0,this[t(454)]=0,this[t(900)]=0,this[t(417)]=0,this[t(740)]=0,this._sumBuffWaitCIRR=0,this[t(1182)]="",this[t(832)]=0,this[t(275)]=0,this[t(605)]=0,this[t(1245)]=!1,this[t(1087)]=!1,this._prevPlayerState=void 0,this._prevSegInfo={},this._pauseStartTime=0,this[t(729)]=0,this[t(666)]=0,this[t(1079)]=0,this.adPosition=0,this._adBeforePlayback=!1,this[t(959)]=0,this[t(392)]=!1,this[t(739)]=0,this[t(414)]=0,this[t(575)]={},this[t(322)][t(481)]=[],this[t(613)][t(481)]=[],this[t(322)].qubitData[t(773)](this[t(274)]()),this[t(613)][t(481)][t(773)](this[t(291)]()),this[t(352)]=[],this[t(958)]=[],this[t(984)]="",this[t(416)]=[],this[t(1132)]="",this[t(1188)]=0,this._maxSteps=0,this[t(878)]=0,this[t(443)]=0,this.index=0,this.setEPState(I.IDLE)})),p(b,M(1135),(function(){var t=M;this[t(1229)](this[t(1228)][t(554)],parseInt(this._customerID)),this[t(1229)](this[t(1228)][t(308)],t(1230)),this.setStreamID(this[t(1228)][t(1169)],this[t(825)]),this[t(1132)]=this[t(630)](),this[t(984)]=this[t(411)](),this[t(1229)](this[t(1228)][t(975)],this[t(1132)]),this.setStreamID(this[t(1228)].DOMAINNAME,this[t(1070)]()),this[t(1229)](this[t(1228)].STREAMURL,this[t(1093)]),this[t(1229)](this[t(1228)].PLAYERVERSION,this[t(1101)]),this[t(379)](this[t(1228)][t(737)],this[t(464)]),this[t(379)](this[t(1228)][t(518)],this[t(782)]),this[t(724)](this[t(1228)][t(618)],this[t(951)]),this[t(724)](this[t(1228)][t(567)],this._deviceBrand),this[t(724)](this[t(1228)][t(1185)],this[t(1057)]),this.setClientInfo(this.attributes[t(705)],this[t(1206)]),this[t(724)](this[t(1228)][t(745)],this[t(648)]),this[t(724)](this.attributes[t(317)],this._deviceOperator),this.setClientInfo(this[t(1228)][t(657)],this._networkType),this.setClientInfo(this[t(1228)][t(961)],this[t(872)]),this[t(724)](this[t(1228)][t(507)],this[t(669)]),this[t(724)](this[t(1228)][t(806)],this[t(1076)]),this[t(724)](this.attributes[t(1046)],this[t(1004)]),this.setClientInfo(this[t(1228)][t(1209)],this[t(654)]),this[t(724)](this.attributes[t(388)],this[t(333)]),this[t(544)](),this.setSubscriberType(),this[t(412)](),this[t(643)](),this[t(251)](this[t(1050)]),this.setScreenRes(),this[t(296)](I[t(1243)])})),p(b,M(630),(function(){var t=M,e=(new Date)[t(851)](),i=t(359)[t(400)](/[xy]/g,(function(i){var s=t,n=(e+32*Math[s(970)]())%32|0;return e=Math[s(665)](e/32),("x"==i?n:3&n|8)[s(702)](32)}));return i+=(new Date)[t(851)](),this[t(825)]&&(i+="_"+this[t(825)]),this[t(1032)]&&(i+="_"+this[t(1032)]),this[t(336)]&&(i+="_"+this[t(336)]),this[t(1101)]&&(i+="_"+this[t(1101)]),(i=i.replace(/\//gi,"_"))[t(400)](/\s/gi,"_")})),p(b,M(1070),(function(){var t=M;return!this[t(395)](this[t(765)])&&(this[t(765)]=this.getDefaultDomainName()),this[t(765)]})),p(b,M(556),(function(){var t=M,e=window[t(1194)].hostname;if(typeof e===t(608)&&typeof document[t(1194)]!==t(608)){var i=document[t(1194)][t(361)]("//")+2;e=document.location[t(805)](i,document[t(1194)].indexOf("/",i))}return e})),p(b,"isEmpty",(function(t){var e=M;for(var i in t)if(t[e(661)](i))return!1;return!0})),p(b,"getCustomTag",(function(t){return this._customTag[t]})),p(b,M(639),(function(t,e){var i,s=M;this.sesRequirements&&(this&&this[s(795)][s(692)]&&((i="SES_ERROR"===t||t===s(1246)?this[s(709)](t,e):this[s(709)](t,this[s(808)]))&&this[s(958)][s(773)](i),this.sendEventToToolbox()),this&&this[s(795)].isStarz&&((i=t===s(779)||"SES_ERROR"===t||"downloadFinished"===t||"SES_WARNING"===t?this.packageStarzEvent(t,e):this[s(767)](t,this[s(808)]))&&this[s(958)][s(773)](i),this[s(869)]()))})),p(b,M(462),(function(t){this[M(795)]=t})),p(b,M(1180),(function(t){var e=M;if(this.sesRequirements){var i=new XMLHttpRequest;i[e(660)](e(257),t,!0);var s=this;i[e(874)]=function(){var t=e;if(200===i[t(1036)]){var n=JSON[t(546)](i[t(373)]);s[t(795)][t(692)]?(s[t(985)](n[t(1166)]),s[t(795)][t(1166)]=n[t(1166)],s[t(795)].toolboxEndpoint_profiledId=n[t(645)],s[t(357)]()):s[t(795)][t(855)]&&(s[t(985)](n[t(616)]),s[t(795)][t(616)]=n[t(616)])}else console[t(920)]("Error while fetching MM URL tracker file "+i[t(373)])},i.send()}})),p(b,M(313),(function(t,e,i,s){var n=M;if("object"===_(e)&&(e=n(764)+e),"FAILED"!==this._regStatus){this[n(613)][n(871)]=this.getPlayDur();var r=this._eventMetric.qubitData[this[n(1249)]][n(987)][this.attributes[n(1094)]];0!==t[n(361)](n(1085))?this.clearAdInfo():(void 0!==this[n(721)][n(810)]&&(this[n(613)][n(481)][this._recordIndex][n(987)][this[n(1228)].SCREENRES]=this[n(721)][n(810)]),this[n(613)].playDur=parseInt(this[n(381)]())),s=s?parseFloat(s):parseFloat(0),!this[n(613)][n(871)]&&(this._eventMetric[n(871)]=0),this[n(613)][n(481)][this[n(1249)]][n(1257)][n(867)]=t,this._eventMetric[n(481)][this[n(1249)]].pbEventInfo[n(1237)]=e,this._eventMetric[n(481)][this[n(1249)]][n(1257)].id=i,this._eventMetric.qubitData[this._recordIndex][n(1257)][n(405)]=parseFloat(s.toFixed(2)),this[n(575)][n(587)]=this[n(613)].timestamp=this[n(991)](),this[n(900)]>0&&(this[n(1127)]=this[n(808)]/this._totalDuration*100,this._qoeMetric[this[n(1228)].PROGRESSMARK]=parseFloat(this[n(1127)][n(570)](2))),this._eventMetric.interval=this[n(376)],this[n(613)].pbTime=parseFloat(s[n(570)](2)),Object[n(996)](this[n(575)])[n(644)]&&this[n(613)][n(481)][this[n(1249)]][n(282)].push(this._qoeMetric),this[n(613)].qubitData[this[n(1249)]][n(282)][0][n(661)](this[n(1228)][n(903)])&&delete this[n(613)][n(481)][this[n(1249)]].pbInfo[0][this.attributes[n(903)]],this._eventMetric.qubitData[this._recordIndex][n(282)][0][n(661)](this[n(1228)][n(459)])&&delete this[n(613)][n(481)][this[n(1249)]][n(282)][0][this.attributes[n(459)]],this[n(613)][n(481)][this[n(1249)]].pbInfo[0].hasOwnProperty(this[n(1228)][n(776)])&&delete this._eventMetric[n(481)][this[n(1249)]][n(282)][0][this[n(1228)][n(776)]];var a=JSON[n(546)](JSON[n(468)](this[n(613)]));this._eventToSend.push(a),this[n(655)](),this[n(613)][n(481)][this[n(1249)]][n(987)][this[n(1228)][n(1094)]]=r,this[n(613)].qubitData[this[n(1249)]][n(850)]=void 0,this._eventMetric[n(481)][this._recordIndex][n(1257)]={},this._eventMetric[n(481)][this[n(1249)]][n(282)]=[],this[n(875)]=t,this._qoeMetric[n(661)](this[n(1228)][n(986)])&&delete this[n(575)][this[n(1228)][n(986)]],this[n(575)][n(661)](this.attributes[n(735)])&&delete this._qoeMetric[this.attributes[n(735)]]}})),p(b,M(1136),(function(){this._downshiftCount++})),p(b,M(248),(function(){this[M(947)]++})),p(b,M(1121),(function(){return this[M(275)]})),p(b,"getBuffWait",(function(){return this._sumBuffWait})),p(b,M(1238),(function(){return this[M(681)]})),p(b,M(1229),(function(t,e){var i=M;null!=e&&(this[i(322)][i(481)][this[i(1249)]][i(375)][t]=e,this._eventMetric[i(481)][this[i(1249)]][i(375)][t]=e)})),p(b,M(547),(function(t){var e=M;typeof t!==e(608)&&String(t)[e(644)]>0&&(statsMetric.qubitData[this._recordIndex].streamID[e(360)]=t,eventMetric[e(481)][this[e(1249)]].streamID.mode=t)})),p(b,"setClientInfo",(function(t,e){var i=M;this[i(613)].qubitData&&(void 0===this._eventMetric[i(481)][this._recordIndex][i(987)]&&(this[i(613)].qubitData[this[i(1249)]][i(987)]={}),typeof this[i(322)][i(481)][this[i(1249)]][i(987)]===i(608)&&(this[i(322)][i(481)][this._recordIndex][i(987)]={}),e&&(this._statsMetric[i(481)][this[i(1249)]][i(987)][t]=e,this[i(613)][i(481)][this[i(1249)]][i(987)][t]=e))})),p(b,"setPlaybackPos",(function(t){this[M(808)]=t/1e3})),p(b,M(1193),(function(){return this[M(808)]})),p(b,M(542),(function(t,e){var i=M;if(t!==this.attributes[i(986)]){var s={};s[i(587)]=this[i(991)](),s[t]=parseFloat(e[i(570)](2)),s[this[i(1228)].PBTIME]=parseFloat(this._pbTime[i(570)](2)),this[i(900)]>0&&(this._progressMark=this._pbTime/this[i(900)]*100,s[this[i(1228)][i(566)]]=parseFloat(this._progressMark[i(570)](2))),t===this[i(1228)].BUFFERING&&(s[this[i(1228)].BUFFERINGTYPE]=this[i(1182)]),this[i(322)][i(481)][this[i(1249)]].pbInfo[i(773)](s)}(e||t==this.attributes[i(986)])&&(this[i(575)][t]=parseFloat(e.toFixed(2)))})),p(b,"setBufPBEvent",(function(t,e){var i=M;e&&(t in this[i(575)]&&t===this.attributes[i(903)]?this[i(575)][t]=parseInt(e):this[i(575)][t]=e)})),p(b,"setSDKInfo",(function(t,e){var i=M;e&&(this[i(322)].qubitData[this[i(1249)]][i(712)][t]=e,this[i(613)][i(481)][this[i(1249)]].sdkInfo[t]=e)})),p(b,"getPBStats",(function(t){return this[M(575)][t]})),p(b,"setDiagnostics",(function(t,e){var i=M;e&&(this[i(322)][i(481)][this[i(1249)]][i(1037)][t]=e)})),p(b,M(882),(function(t,e){var i=M;typeof t!==i(608)&&typeof e!==i(608)&&(this[i(322)][i(481)][this[i(1249)]][i(835)][t]=e,this._eventMetric.qubitData[this[i(1249)]][i(835)][t]=e)})),p(b,M(689),(function(){var t=M;return this[t(322)].qubitData[this[t(1249)]][t(835)]})),p(b,M(885),(function(){var t=M;return this._statsMetric.qubitData[this[t(1249)]][t(375)]})),p(b,M(356),(function(t,e){var i=M;e&&(this[i(322)][i(481)][this[i(1249)]][i(935)][t]=e)})),p(b,"setScreenRes",(function(){var t=M,e="";this.isValid(this[t(1149)])&&this[t(395)](this._presentationWidth)||this._presentationHeight>0&&this[t(1142)]>0?e=this[t(1142)]+"x"+this[t(1149)]:window.innerWidth&&window[t(463)]&&(e=window.innerWidth+"x"+window[t(463)]),this[t(724)](this.attributes.SCREENRES,e),this.setClientInfo(this[t(1228)][t(883)],this[t(369)]),this[t(724)](this[t(1228)][t(278)],this._deviceID),this[t(599)]?this[t(724)](this[t(1228)][t(1220)],this[t(599)]):window[t(753)](t(1205))&&window[t(753)]("(dynamic-range: high)")[t(1254)]&&this[t(724)](this[t(1228)].DEVICECAPABILITIES,t(1212))})),p(b,M(643),(function(){var t=M;void 0!==this._assetID&&null!==this[t(817)]&&this.setStreamID(this[t(1228)][t(1048)],this[t(817)]),void 0!==this[t(537)]&&null!==this[t(537)]&&this.setStreamID(this[t(1228)][t(377)],this._assetName),this[t(306)]&&this.setStreamID(this[t(1228)][t(785)],this[t(306)])})),p(b,M(652),(function(t,e,i){var s=M,n=t+"="+encodeURIComponent(e);"number"==typeof i&&(n+=s(1158)+24*i*60*60,document.cookie=n)})),p(b,M(285),(function(t){for(var e=M,i=document.cookie[e(538)](";"),s=0;s<i[e(644)];s++){var n=i[s][e(538)]("=");if(t==n[0].trim())return decodeURIComponent(n[1])}return null})),p(b,M(428),(function(){var t=M;return t(441)[t(400)](/[xy]/g,(function(e){var i=16*Math[t(970)]()|0;return("x"==e?i:3&i|8).toString(16)}))})),p(b,M(892),(function(){var t=M,e=this.getSubscriberIDCookie(t(440));!(null!=e)&&""!=(e=this.uuidv4_subscriberID())&&null!=e&&this[t(652)](t(440),e,730),""!=e&&null!=e&&this[t(1229)](this.attributes[t(772)],l()[t(247)](e))})),p(b,M(544),(function(){var t=M;this[t(1148)]?this.setStreamID(this[t(1228)][t(772)],l()[t(247)](this._subscriberID)):this[t(892)]()})),p(b,M(1067),(function(){var t=M;this[t(561)]&&this.setStreamID(this[t(1228)][t(504)],this[t(561)])})),p(b,M(412),(function(){var t=M;this[t(873)]&&this.setStreamID(this[t(1228)][t(939)],this[t(873)])})),p(b,"setVideoDuration",(function(t){var e=M;t&&(this[e(900)]=t,this[e(882)](this[e(1228)][e(378)],parseFloat(t.toFixed(2))))})),p(b,"setPresentationType",(function(t){var e=M;this[e(1229)](this[e(1228)][e(952)],t)})),p(b,"setPresentationStreamInfo",(function(t,e,i,s,n,r){var a=M;this[a(882)](this[a(1151)]()[a(328)],t),this[a(882)](this[a(1151)]()[a(763)],e),this.setStreamInfo(this[a(1151)]().MAXFPS,parseFloat(i)),this[a(882)](this[a(1151)]()[a(494)],parseFloat(s)),this[a(882)](this[a(1151)]().NUMPROFILE,n),this.setStreamInfo(this.getAttribute()[a(1184)],r)})),p(b,"reportTrackinfo",(function(t,e,i,s,n){var r=M;this.setStreamInfo(this[r(1151)]()[r(786)],t),this[r(882)](this.getAttribute()[r(687)],e),this[r(882)](this[r(1151)]()[r(1247)],i),this[r(882)](this[r(1151)]()[r(477)],s),this[r(882)](this[r(1151)]()[r(897)],n)})),p(b,M(382),(function(t){this[M(551)]=t})),p(b,M(501),(function(t){this._sdkVersion=f.SDK_CONFIG.sdkVersion+t})),p(b,M(491),(function(){return this[M(464)]})),p(b,M(746),(function(t){this._hintFileVersion=t})),p(b,"setBuffering",(function(){var t=M,e=this[t(565)]();this._bufferStartTime&&(this._buffWait=e-this[t(959)],this[t(740)]=this[t(740)]+this[t(417)],this[t(1197)]===d[t(827)]||this[t(1197)]===d[t(787)]?(this[t(832)]=this._sumBuffWaitVRT+this[t(417)],this[t(1182)]=t(325)):(this[t(349)]=this[t(349)]+this._buffWait,this[t(1182)]=t(1e3)),this.setPBStats(this.attributes[t(903)],this[t(417)]),this[t(470)](this.attributes.SUMBUFFERING,this._sumBuffWait),this[t(470)](this.attributes[t(340)],this[t(349)]),this[t(470)](this[t(1228)].SUMBUFFERINGVRT,this[t(832)]),this._bufferStartTime=0)})),p(b,M(450),(function(){var t=M,e=(new Date).getTime();this[t(454)]&&(this[t(454)]>e?(this[t(1018)]=-1,this._timeDeltaInMs=this[t(454)]-e):(this._timeShift=1,this._timeDeltaInMs=e-this[t(454)]))})),p(b,M(991),(function(){var t=M,e=(new Date).getTime();return this[t(1018)]>0?e-this[t(326)]:e+this[t(326)]})),p(b,M(565),(function(){var t=M;return(new Date)[t(851)]()})),p(b,M(928),(function(t){this._producerUrl=t})),p(b,M(508),(function(t){this[M(376)]=t})),p(b,"stopMonitoring",(function(){var t=M;this[t(1245)]=!1,this[t(881)]=0,this._statsMonitorStartedAtTS=0,this[t(437)]&&clearInterval(this[t(437)]),this[t(717)]&&clearInterval(this[t(717)]),this._timerObj=null,this[t(717)]=null,this[t(497)]&&clearInterval(this[t(497)]),this[t(497)]=null})),p(b,"startMonitoringForSES",(function(){var t=M;this[t(795)]&&(this&&this[t(795)][t(692)]&&null===this._timerObj2&&this[t(267)]&&(this._timerObj2=setInterval(this[t(397)][t(446)](this),3e5)),this&&this[t(795)][t(855)]&&null===this[t(717)]&&this[t(267)]&&(this._timerObj2=setInterval(this[t(771)][t(446)](this),6e4)))})),p(b,M(594),(function(){var t=M;this._regStatus===t(950)&&(this[t(1245)]=!0,null===this[t(437)]&&this[t(1233)]()===I[t(972)]&&this[t(376)]>0&&this[t(899)]&&(this[t(437)]=setInterval(this.sendQBRStats[t(446)](this),1e3*this._postInterval),this[t(795)]&&this[t(795)][t(692)]&&null===this[t(717)]&&this[t(267)]&&(this._timerObj2=setInterval(this.sendHeartbeatToToolbox[t(446)](this),3e5)),this[t(795)]&&this[t(795)].isStarz&&null===this[t(717)]&&this[t(267)]&&(this[t(717)]=setInterval(this[t(771)][t(446)](this),6e4)),this[t(335)]||(this[t(335)]=this[t(565)]()),this[t(497)]=setInterval(this[t(1133)][t(446)](this),12e4),this[t(1133)]()))})),p(b,M(1162),(function(t,e,i){var s=M,n=l().mm_md5(t+e+i);return n[s(997)](8,8)+n[s(997)](24,8)+n[s(997)](0,8)+n[s(997)](16,8)})),p(b,"sendEventInfo",(function(){var t=M;if(void 0!==this[t(899)]){if(this[t(1202)]!==t(922)){for(var e=0;e<this[t(352)][t(644)];e++){var i=this[t(352)][e];if(i&&i.qubitData[this[t(1249)]][t(375)]){if(!0===this[t(353)]?(i.timestamp=this[t(991)](),i[t(481)][this[t(1249)]][t(282)][0][t(587)]=i.timestamp,i[t(481)][this._recordIndex][t(375)][t(360)]=this[t(1250)],i[t(367)]=this[t(376)]):(isNaN(i[t(587)])||void 0===i.timestamp||null===i[t(587)])&&(i[t(587)]=this[t(991)]()),i[t(481)][this[t(1249)]][t(1257)][t(867)]===t(674))this[t(514)]=i[t(587)],this[t(549)]&&(i[t(481)][this[t(1249)]][t(375)][t(360)]=this[t(549)]);else if(i[t(481)][this._recordIndex].pbEventInfo[t(867)]!==t(903)&&"SEEKED"!==i[t(481)][this[t(1249)]][t(1257)][t(867)])this[t(549)]&&(i[t(481)][this[t(1249)]][t(375)][t(360)]=this[t(549)]);else{if(null===this[t(1250)])return;i[t(481)][this[t(1249)]][t(375)][t(360)]=this[t(1250)]}if(this[t(514)]&&i[t(481)][this[t(1249)]].pbEventInfo[t(867)]===t(457)){if(null===this[t(1250)])return;if(this._modeFromResponse=this[t(1250)],-1===this[t(900)]&&void 0===i.qubitData[this[t(1249)]][t(375)].isLive&&(i[t(481)][this._recordIndex].streamID[t(402)]=!0),void 0===i[t(481)][this[t(1249)]][t(375)][t(402)]&&this[t(900)]>=0&&(i.qubitData[this[t(1249)]][t(375)].isLive=!1),void 0===i.qubitData[this._recordIndex][t(375)][t(402)])return;i[t(481)][this[t(1249)]][t(375)][t(360)]=this._mode}if(this._onLoadSentAtTS&&(i[t(481)][this[t(1249)]][t(1257)][t(867)],t(809)),this[t(514)]&&"AD_BLOCK"===i[t(481)][this[t(1249)]][t(1257)].event&&(i[t(587)]=this[t(514)]),0===i[t(481)][this[t(1249)]].pbEventInfo[t(867)].indexOf(t(1085))&&(i.qubitData[this[t(1249)]][t(375)].mode=void 0),0===i[t(481)][this._recordIndex][t(1257)][t(867)][t(361)](t(1085))){if(!this._enableAdQoE)return void(this[t(352)][e]=null)}else if(!this[t(524)])return void(this._eventToSend[e]=null);console[t(920)](t(623),i[t(481)][this._recordIndex].pbEventInfo[t(867)]),i[t(481)][this._recordIndex][t(375)][t(1252)]=this[t(1162)](this._customerID,this[t(1132)],i[t(587)]);var s=JSON[t(468)](i),n=new XMLHttpRequest;n[t(660)](t(555),this[t(1114)],!0),n.timeout=this[t(1130)],n[t(960)](t(304),"*"),n[t(960)](t(989),t(941)),n.send(s),this[t(352)][e]=null}}this[t(353)]=!1,this[t(352)]=[]}}else this[t(352)][t(644)]>this[t(937)]&&this._eventToSend[t(1234)](this[t(937)]-4,2)})),p(b,M(628),(function(){var t=M;if(this[t(1202)]!==t(922)&&this[t(524)]&&(this._regStatus===t(793)||this._enableEP&&this[t(1233)]()===I[t(972)])){if(!1===this[t(476)]){var e=this[t(942)]/this[t(466)];!isNaN(e)&&e>0&&this[t(542)](this.attributes[t(807)],e),this._downloadRateCount=0,this[t(942)]=0}if(this[t(900)]>0&&(this[t(1127)]=this[t(808)]/this[t(900)]*100,this[t(542)](this.attributes[t(566)],parseFloat(this[t(1127)][t(570)](2)))),!1===this[t(469)]){if(this[t(322)]&&this[t(322)][t(405)]>-1&&parseFloat(this[t(322)][t(405)].toFixed(2))===parseFloat(this[t(808)][t(570)](2)))return;this._prevSegInfo&&this._prevSegInfo[t(452)]?(this._prevSegInfo[t(587)]=this.getCorrectedCurrentTimeinMs(),this[t(931)][t(713)]=-1,this._prevSegInfo[t(868)]=this._prevSegInfo[t(533)]=0,this[t(322)][t(481)][this[t(1249)]][t(935)][t(773)](this._prevSegInfo)):this._statsMetric.qubitData[this[t(1249)]].segInfo=[]}this[t(469)]=!1,this._bwExtSet=!1,this[t(322)].timestamp=this[t(991)](),this._statsMetric[t(405)]=parseFloat(this[t(808)][t(570)](2)),this[t(322)][t(871)]=this[t(1071)]();var i=this[t(335)]?this.getCurrentTimeinMs()-this._statsMonitorStartedAtTS:0;if(i=this[t(881)]?this[t(565)]()-this._lastStatsPostedAtTS:i,this._statsMetric[t(367)]=parseInt(i?i/1e3:0),"PENDING"!==this[t(1202)]&&!this[t(322)][t(367)])return;this[t(947)]>0&&this[t(542)](this[t(1228)].UPSHIFTCOUNT,this[t(947)]),this[t(799)]>0&&this.setPBStats(this[t(1228)].DOWNSHIFTCOUNT,this[t(799)]),this[t(322)].qubitData[this[t(1249)]][t(375)][t(1252)]=this.getChecksum(this[t(1186)],this[t(1132)],this[t(322)][t(587)]);var s=JSON[t(468)](this[t(322)]);if(this[t(322)][t(481)][this[t(1249)]].segInfo=[],this[t(322)][t(481)][this[t(1249)]][t(282)]=[],this._upshiftCount=0,this[t(799)]=0,this[t(416)].push(s),void 0!==this[t(899)]){for(var n=0;n<this._statsToSend[t(644)];n++){var r=this._statsToSend[n],a=new XMLHttpRequest;a[t(660)](t(555),this[t(899)],!0),a[t(358)]=this._httpPostTimeout,a[t(960)](t(304),"*"),a[t(960)](t(989),t(941)),a.send(r),this[t(881)]=this[t(565)](),this[t(416)][n]=null}this._statsToSend=[]}else this._statsToSend.length>this[t(937)]&&this[t(416)].splice(this[t(937)]-4,2)}})),p(b,"StreamInfo",(function(t,e,i,s,n,r,a,o,h,d,u){var c=M;return{maxRes:typeof t!==c(608)?t:c(480),minRes:typeof e!==c(608)?e:c(690),maxFps:typeof i!==c(608)?i:0,minFps:typeof s!==c(608)?s:0,numOfProfile:typeof n!==c(608)?n:0,totalDuration:void 0!==r?r:0,videoTrack:typeof a!==c(608)?a:c(343),subtitleTrack:typeof o!==c(608)?o:c(343),audioTrack:typeof h!==c(608)?h:c(343),isVDSActive:typeof d!==c(608)?d:c(343),isSubtitleActive:typeof u!==c(608)?u:c(343)}})),p(b,"getPlayDur",(function(){var t=M,e=this[t(565)]();return 0!==this[t(414)]?e>this[t(414)]&&(this._playDur=parseInt((e-this[t(414)])/1e3)):this[t(698)]=0,this[t(698)]})),p(b,"getAdPlayDur",(function(){var t=M,e=0;return this[t(721)]&&(e=this[t(721)]._adPlayDur),e})),p(b,M(1151),(function(){return this[M(1228)]})),p(b,M(861),(function(t,e,i,s,n,r){var a=M;return{streamURL:typeof t!==a(608)?t:a(583),assetId:void 0!==e?e:"",custId:typeof i!==a(608)?i:1111,sessionId:typeof s!==a(608)?s:a(642),isLive:typeof n!==a(608)&&n,dataSrc:typeof r!==a(608)?r:a(305)}})),p(b,M(905),(function(t,e,i,s,n,r,a,o,h,d){var u=M;return{assetId:typeof t!==u(608)?t:"",assetName:typeof t!==u(608)?e:"",contentType:typeof i!==u(608)?i:"",drmProtection:void 0!==s?s:"",episodeNumber:typeof n!==u(608)?n:"",genre:void 0!==r?r:"",season:typeof a!==u(608)?a:"",seriesTitle:typeof o!==u(608)?o:"",videoId:typeof h!==u(608)?h:"",videoType:void 0!==d?d:""}})),p(b,M(798),(function(t,e,i,s,n,r,a,o,h,d,u,c,f,l,v){var p=M;return{res:(p(608),t),qbrBitrate:typeof e!==p(608)&&e>0?e:0,cbrBitrate:typeof i!==p(608)&&i>0?i:0,qbrQual:void 0!==s?parseFloat(s[p(570)](2)):0,cbrQual:typeof n!==p(608)?parseFloat(n[p(570)](2)):0,dur:typeof r!==p(608)?r:0,seqNum:typeof a!==p(608)?a:0,startTime:typeof o!==p(608)?o:0,fps:typeof h!==p(608)?h:0,cbrProfileNum:typeof u!==p(608)?u:0,profileNum:void 0!==d?d:0,cbrSize:void 0!==c?Math[p(665)](c):0,qbrSize:typeof f!==p(608)?Math[p(665)](f):0,vCodec:typeof l!==p(608)?l:"",aCodec:void 0!==v?v:""}})),p(b,M(439),(function(t,e,i,s,n,r){var a=M;return{location:typeof t!==a(608)?t:"",operator:typeof e!==a(608)?e:"",cdn:typeof i!==a(608)?i:"",nwType:void 0!==s?s:"",platform:typeof n!==a(608)?n:"",scrnRes:typeof r!==a(608)?r:""}})),p(b,M(552),(function(t,e,i,s,n,r){var a=M;return{latency:typeof t!==a(608)?t:0,buffWait:typeof e!==a(608)?e:0,frameloss:void 0!==i?i:0,bwInUse:typeof s!==a(608)?s:0,lastTS:void 0!==n?n:0,playerState:typeof r!==a(608)?r:0}})),p(b,M(291),(function(){return{streamID:{},pbEventInfo:{},streamInfo:{},contentMetadata:{},sdkInfo:{},pbInfo:[]}})),p(b,"QBRMetricTemplate",(function(){return{streamID:{},streamInfo:{},contentMetadata:{},segInfo:[],pbInfo:[],sdkInfo:{}}})),p(b,M(707),(function(){var t=M;this[t(721)][t(810)]=void 0,this[t(721)][t(796)]=void 0,this[t(721)][t(1007)]=void 0,this[t(721)]._adDuration=void 0,this._adInformation[t(453)]=void 0,this._adInformation[t(1170)]=void 0,this[t(721)][t(1042)]=void 0,this[t(721)][t(1023)]=void 0,this._adInformation[t(1009)]=void 0,this[t(721)][t(666)]=void 0,this[t(721)][t(527)]=void 0,this[t(721)][t(348)]=void 0,this[t(721)][t(716)]=void 0,this[t(721)][t(341)]=void 0,this[t(721)]._playSent=!1,this[t(721)][t(714)]=void 0,this[t(721)][t(818)]=0,this[t(721)][t(347)]=-1,this._adInformation[t(272)]=-1,this[t(721)][t(571)]=!1,this[t(721)][t(1065)]=-2,this[t(721)]._adPodLength=-1,this[t(721)][t(646)]=-1,this[t(721)]._adScheduledTime=-1,this[t(866)]=0,this._adPauseStartTime=0,this[t(1256)]=0,this[t(474)]=0,this._adStartEpocTime=0,this._adBuffWaitForInterval=0,this[t(271)]=0,this[t(1063)]=0,this[t(1033)]=0,this._adLoadStartTime=0})),p(b,M(694),(function(){var t=M;this[t(721)][t(1009)]=null,this[t(721)][t(666)]=-1,this[t(721)][t(966)]=!1,this[t(721)]._adPlaybackStartWallClockTime=-1,this[t(721)]._adLastPlayingEventTimeStamp=-1,this[t(721)]._adLastAdEventTimeStamp=-1,this[t(721)][t(818)]=0,this[t(721)][t(1065)]=-2,this[t(721)][t(445)]=-1,this[t(721)][t(646)]=-1,this[t(721)]._adCreativeId=void 0,this._adInformation._adTitle=void 0,this[t(721)][t(716)]=void 0,this[t(721)][t(341)]=void 0,this._adEpocTime=0,this._adPauseStartTime=0,this[t(1256)]=0,this[t(474)]=0,this[t(1256)]=0,this[t(573)]=0,this._adSumBuffWait=0,this[t(1063)]=0,this[t(1033)]=0,this[t(1138)]=0})),p(b,M(775),(function(t,e){var i=M;if(null!=this._adInformation&&this[i(721)][i(966)]&&this[i(721)]._prevAdState!=a[i(582)]){var s=parseInt((t-this._adInformation[i(714)])/1e3);(e||s>0&&s%(this[i(539)]/1e3)==0)&&(this[i(721)]._adPlaybackStartWallClockTime=t,this[i(1005)](t),this[i(313)](i(834),"AD KEEP ALIVE","AD_PLAYING",this[i(351)](this._adInformation[i(666)])),this[i(721)]._adLastPlayingEventTimeStamp=t,this[i(721)]._adLastAdEventTimeStamp=this.getCurrentTimeinMs())}})),p(b,"resetAdInfoIfInitialState",(function(t){var e=M;null==this[e(721)]&&(this[e(721)]=new S),t==a[e(600)]||null==this[e(721)]._prevAdState?(this.resetAdvertisementInfo(),this[e(1138)]=this._adPauseStartTime=this[e(1063)]=this._adLoadTime=0,this[e(573)]=this[e(271)]=0):t==a.AD_IMPRESSION&&this[e(721)]._prevAdState!=a[e(790)]&&this[e(721)][e(1009)]!=a[e(600)]&&this[e(721)]._prevAdState!=a[e(493)]&&(this[e(694)](),this[e(1138)]=this[e(730)]=this[e(1063)]=this._adLoadTime=0,this[e(573)]=this[e(271)]=0);var i=Math[e(1161)](this._pbTime+3);null!=this[e(721)][e(453)]&&null!=this[e(721)][e(453)]||(this[e(1233)]()==I[e(972)]||this[e(808)]<=1?this[e(721)][e(453)]=e(1104):!this[e(721)][e(525)]&&this[e(721)][e(525)]!=h.STOPPED&&this[e(808)]>0&&i<this._totalDuration?this[e(721)][e(453)]="mid":(!this._adInformation[e(525)]&&this[e(721)].prevAdState==h[e(259)]||this[e(808)]>0&&i>=this[e(900)])&&(this[e(721)]._adPosition=e(520))),this[e(721)]._prevAdState=t})),p(b,M(1005),(function(t){var e=M;this[e(721)]&&(typeof this[e(613)][e(481)][this[e(1249)]][e(850)]===e(608)&&(this[e(613)][e(481)][this[e(1249)]][e(850)]={}),void 0!==this._adInformation[e(796)]&&(this[e(613)][e(481)][this[e(1249)]][e(850)][e(846)]=this[e(721)][e(796)]),void 0!==this[e(721)][e(1007)]&&(this[e(613)][e(481)][this[e(1249)]][e(850)].adId=this[e(721)]._adId),void 0!==this[e(721)][e(1029)]&&(this[e(613)][e(481)][this[e(1249)]][e(850)][e(1079)]=parseFloat((this[e(721)]._adDuration/1e3).toFixed(2))),void 0!==this[e(721)][e(453)]&&(this[e(613)][e(481)][this[e(1249)]][e(850)][e(813)]=this[e(721)][e(453)]),void 0!==this[e(721)][e(1170)]&&(this[e(613)][e(481)][this[e(1249)]][e(850)].adLinear=this[e(721)][e(1170)]),void 0!==this[e(721)]._adCreativeType&&(this[e(613)][e(481)][this[e(1249)]][e(850)][e(434)]=this._adInformation[e(1042)]),void 0!==this[e(721)]._adServer&&(this[e(613)][e(481)][this._recordIndex][e(850)].adSystem=this[e(721)][e(1023)]),void 0!==this[e(721)][e(810)]&&(this[e(613)][e(481)][this[e(1249)]].adInfo.adResolution=this[e(721)][e(810)]),void 0!==this[e(721)]._adTitle&&(this[e(613)][e(481)][this[e(1249)]][e(850)][e(370)]=this[e(721)][e(348)]),void 0!==this[e(721)]._adBitrate&&(this[e(613)][e(481)][this[e(1249)]].adInfo[e(517)]=this[e(721)][e(716)]),void 0!==this[e(721)][e(341)]&&(this[e(613)][e(481)][this[e(1249)]][e(850)][e(289)]=this._adInformation[e(341)]),void 0!==this[e(721)][e(527)]&&(this._eventMetric[e(481)][this._recordIndex][e(850)][e(264)]=this._adInformation[e(527)]),this[e(721)][e(445)]>0&&(this._eventMetric.qubitData[this._recordIndex][e(850)][e(585)]=this[e(721)][e(445)]),this._adInformation._adPodIndex>=-1&&(this._eventMetric[e(481)][this._recordIndex].adInfo[e(1109)]=this[e(721)][e(1065)]),this[e(721)][e(646)]>0&&(this[e(613)][e(481)][this[e(1249)]].adInfo[e(839)]=this[e(721)]._adPositionInPod),this[e(613)][e(481)][this[e(1249)]][e(850)][e(1207)]=this._adInformation._isBumper,this[e(613)][e(481)][this[e(1249)]].adInfo[e(1025)]=this[e(294)](t))})),p(b,M(294),(function(t){var e=M,i=0;return null!=this[e(721)]&&this._adInformation[e(272)]>0&&(null!=this._adPauseStartTime&&this[e(730)]>0&&(t=this._adPauseStartTime),i=1*(t-this[e(721)][e(272)])/1e3),this._adPauseDurationToOffsetFromInterval>0&&(i-=this[e(1033)]/1e3,this[e(1033)]=0),this[e(573)]>0&&(i-=this[e(573)]/1e3,this[e(721)][e(818)]+=this._adBuffWaitForInterval/1e3,this._adBuffWaitForInterval=0),i<0&&(i=0),this[e(721)]._adPlayDur+=i,i})),p(b,M(351),(function(t){var e=M;return parseFloat(1*t/1e3)[e(570)](2)})),p(b,M(1167),(function(t){var e=M,i=this[e(565)]();switch(this[e(528)](t),this[e(1005)](i),t){case a[e(1190)]:this.notifyEvent(e(662),e(1198),e(662),0);break;case a[e(493)]:this._adLoadStartTime=i,this[e(730)]=-1,this.notifyEvent("AD_IMPRESSION",e(949),e(493),0);break;case a[e(790)]:case a.AD_PLAY:this[e(1140)]=!0,0==this[e(721)][e(966)]&&(this[e(721)][e(966)]=!0,this[e(1138)]>0&&(this.loadStartTime>0&&(this[e(1138)],this[e(688)]),this._adLoadTime=i-this._adLoadStartTime,this[e(1063)]>0&&(this._adLoadTime-=this._adPauseDuration),this[e(474)]<0&&(this[e(474)]=0),this[e(721)]._adPlayDur+=Math[e(1161)](this[e(474)]/1e3)),this.populateAdRelatedInfo(i),this.setPBStats(this.attributes[e(986)],this._adLoadTime),this.notifyEvent("AD_PLAY",e(894),e(1126),0),this[e(1116)]=0,this[e(721)][e(347)]=this[e(721)][e(714)]=this.getCurrentTimeinMs(),this[e(721)][e(272)]=this[e(721)][e(347)]);break;case a[e(268)]:this[e(1140)]=!0,this[e(313)](e(973),"Ad has been clicked","AD_CLICK",this.millisecToSec(this[e(721)]._adPlaybackTime)),this[e(721)][e(272)]=i;break;case a[e(582)]:this._adPauseStartTime=this[e(565)](),this[e(313)]("AD_PAUSED",e(1213),e(582),this[e(351)](this._adInformation[e(666)])),this[e(721)]._adLastAdEventTimeStamp=i;break;case a[e(1183)]:this._adPauseStartTime>0&&(this[e(1063)]=i-this[e(730)],this[e(1063)]<0&&(this[e(1063)]=0),this[e(1033)]=this[e(1063)]),this[e(542)](this[e(1228)][e(735)],this[e(1063)]),this[e(1005)](i),this.notifyEvent("AD_RESUMED","Ad has been resumed",e(1183),this[e(351)](this[e(721)][e(666)])),this._adInformation[e(272)]=i,this._adPauseStartTime=-1;break;case a[e(545)]:this[e(1140)]=!0,this[e(271)]<0&&(this[e(271)]=0),this._adSumBuffWait+=1*this[e(474)],this.setBufPBEvent(this[e(1228)][e(262)],this[e(271)]),this[e(313)]("AD_SKIPPED",e(659),"AD_SKIPPED",this.millisecToSec(this._adInformation._adPlaybackTime)),this._adInformation._adLastAdEventTimeStamp=i,this[e(1253)]>0&&(this[e(808)]=this[e(1253)]);break;case a[e(350)]:this[e(1140)]=!0,this[e(271)]<0&&(this[e(271)]=0),this[e(271)]+=1*this[e(474)],this[e(470)](this[e(1228)][e(262)],this[e(271)]),this[e(721)][e(1029)]>0&&(this[e(721)][e(666)]-90*this[e(721)][e(1029)]/100>=0||Math.abs(this._adInformation[e(666)]-this._adInformation[e(1029)])<2)?this.notifyEvent(e(1146),"Ad completed playing",e(1146),this.millisecToSec(this._adInformation[e(666)])):(this[e(313)](e(847),e(841),e(847),this[e(351)](this._adInformation[e(666)])),this[e(1253)]>0&&(this[e(808)]=this[e(1253)])),this[e(721)][e(966)]=!1,this[e(721)][e(272)]=i;break;case a[e(847)]:this[e(1140)]=!0,this[e(271)]<0&&(this[e(271)]=0),this[e(271)]+=1*this._adLoadTime,this.setBufPBEvent(this[e(1228)][e(262)],this[e(271)]),this[e(313)](e(847),e(841),e(847),this.millisecToSec(this[e(721)][e(666)])),this[e(721)][e(966)]=!1,this._adInformation[e(272)]=i,this[e(1253)]>0&&(this[e(808)]=this[e(1253)]);break;case a[e(467)]:this[e(313)](e(467),event[e(1211)],"AD_ERROR",this.millisecToSec(this[e(721)][e(666)])),this[e(721)]._playSent=!1,this._adInformation[e(272)]=i,this[e(1253)]>0&&(this._pbTime=this[e(1253)]);break;case a.AD_REQUEST:this[e(313)](e(600),e(270),e(600),0);break;case a[e(834)]:this[e(775)](i,!1);break;case a[e(1047)]:this[e(313)](e(252),e(1139),e(252),this[e(351)](this[e(721)]._adPlaybackTime)),this[e(721)][e(272)]=i;break;case a[e(515)]:this.notifyEvent(e(626),e(597),e(626),this.millisecToSec(this[e(721)][e(666)])),this[e(721)][e(272)]=i;break;case a.AD_THIRD_QUARTILE:this[e(313)](e(677),e(890),"AD_PLAYED_THIRD_QUARTILE",this[e(351)](this[e(721)]._adPlaybackTime)),this._adInformation[e(272)]=i}})),p(b,M(759),(function(t,e){var i=M;this[i(1005)](),null==e&&(e=this[i(721)][i(666)]),void 0===e&&(e=0),this[i(313)](i(467),t,i(467),this[i(351)](e))})),p(b,M(908),(function(t){var e=M;if(t>=0&&this._adInformation){var i=this[e(565)]();this[e(721)][e(666)]=t,this.sendAdPlayingEvent(i,!1)}})),p(b,"reportAdInfo",(function(t){var e=M;!this[e(721)]&&(this[e(721)]=new S),t&&(void 0!==t[e(846)]&&(this[e(721)][e(796)]=t.adClient),void 0!==t[e(728)]&&(this[e(721)][e(1007)]=t[e(728)]),void 0!==t[e(1079)]&&(this[e(721)][e(1029)]=t.adDuration),void 0!==t[e(813)]&&(this[e(721)]._adPosition=t[e(813)]),void 0!==t[e(301)]&&(t[e(301)]?this[e(721)][e(1170)]=e(562):this[e(721)][e(1170)]=e(994)),void 0!==t[e(434)]&&(this[e(721)][e(1042)]=t.adCreativeType),void 0!==t[e(579)]&&(this[e(721)]._adServer=t.adServer),void 0!==t[e(292)]&&(this[e(721)][e(810)]=t[e(292)]),this._adInformation[e(571)]=t[e(1207)],t[e(1109)]>=-1&&(this[e(721)]._adPodIndex=t[e(1109)]),t.adPodLength>0&&(this[e(721)][e(445)]=t[e(585)]),t.adPositionInPod>0&&(this[e(721)][e(646)]=t[e(1049)]),t[e(390)]>=0&&(this[e(721)]._adScheduledTime=t.adScheduledTime),void 0!==t[e(289)]&&(this[e(721)][e(341)]=t[e(289)]),void 0!==t[e(264)]&&(this[e(721)][e(527)]=t.adCreativeId),void 0!==t.adTitle&&(this[e(721)][e(348)]=t[e(370)]),void 0!==t[e(517)]&&(this[e(721)][e(716)]=t[e(517)]))})),p(b,M(316),(function(){var t=M;return null===this[t(1250)]||"QBRDisabled-NoMetafile"==this[t(1250)]||this._mode==u[t(1236)]||this[t(1250)]==t(912)||this[t(1250)]==t(948)||this[t(1250)]==t(249)||this._mode==t(255)||this[t(1250)]==t(323)})),function(t,e){var i=r;for(var s in e)(o=e[s])[i(684)]=o[i(548)]=!0,i(836)in o&&(o.writable=!0),Object.defineProperty(t,s,o);if(Object[i(401)])for(var n=Object.getOwnPropertySymbols(e),a=0;a<n[i(644)];a++){var o,h=n[a];(o=e[h]).configurable=o[i(548)]=!0,i(836)in o&&(o[i(1091)]=!0),Object[i(371)](t,h,o)}}(b,C),b};r(261);var E=function(){var t=new XMLHttpRequest;return{doGet:function(e,i){return new Promise((function(s,n){var r,a,o=v;void 0!==i&&(e+=(r=i,a=v,"?"+Object[a(996)](r)[a(792)]((function(t){return encodeURIComponent(t)+"="+encodeURIComponent(r[t])})).join("&"))),t[o(660)](o(257),e),t[o(358)]=25e3,t.onload=function(){var e=o;200==t[e(1036)]?s(t[e(373)]):n(Error(t[e(558)]))},t[o(762)]=function(){n(Error(o(540)))},t[o(1045)]=function(){n(Error("NetRequest Aborted"))},t[o(1131)]=function(){n(Error(o(293)))},t[o(1239)]()}))},cleanUp:function(){var e=v;t&&4!=t.readyState&&t[e(1045)]()}}};r(261),r(1068),r(641),r(261);var T=function(){var t,e=[],i=[];function s(t,e){var s=v;for(var n in i){var r=i[n];if(r[s(1077)]===t&&r[s(744)]===e)return r.instance}return null}function n(e,i,s,n){var a=v,o=r(s)[e];if(o){var h=o[a(1102)];if(!o[a(413)])return h[a(1171)]({context:s,factory:t},n);for(var d in h=h[a(1171)]({context:s,factory:t,parent:i},n))i[a(661)](d)&&(i[d]=h[d])}return i}function r(t){var i,s=v;return e[s(701)]((function(e){e===t&&(i=e)})),!i&&(i=e[s(773)](t)),i}return t={extend:function(t,e,i,s){var n=r(s);!n[t]&&e&&(n[t]={instance:e,override:i})},getSingletonInstance:s,setSingletonInstance:function(t,e,s){var n=v;for(var r in i){var a=i[r];if(a[n(1077)]===t&&a[n(744)]===e)return void(i[r][n(1102)]=s)}i[n(773)]({name:e,context:t,instance:s})},getSingletonFactory:function(t){return function(e){var r;return void 0===e&&(e={}),{getInstance:function(){var a=v;return!r&&(r=s(e,t[a(287)])),!r&&(r=n(t[a(287)],t[a(1171)]({context:e},arguments),e,arguments),i[a(773)]({name:t[a(287)],context:e,instance:r})),r}}}},getClassFactory:function(t){return function(e){return void 0===e&&(e={}),{create:function(){var i=v;return n(t[i(287)],t[i(1171)]({context:e},arguments),e,arguments)}}}}},t}();r(261);var A,D,R,y=(A=r,D=isNaN(f[A(720)][A(563)])?2:f[A(720)][A(563)],R={VERBOSE:6,DEBUG:5,INFO:4,ANALYZE:3,WARN:2,ERROR:1,OFF:0},{setLogLevel:function(t){t<0&&(t=0),D=t},log:function(t,e){var i=A;(function(t){var e=A;for(var i in R)if(i===t)return R[i];return R[e(697)]})(t)<=D&&console[i(920)]("["+t+i(1191)+e)}});function g(){var t=["audio","<![CDATA[","reportPlayerSeekCompleted","title","index","_playerName","Cellular_4G","SeekStarted","addEventListener","version","reportManifestLoaded","setSDKQoEConfig","_sumBuffWaitVRT","reportAdBufferingCompleted","AD_PLAYING","streamInfo","value","crsUrl","deviceId","adPodPosition","SEEKING","Ad ended","MEDIA_LOADED","reportChunkRequest In","frameloss","mp4","adClient","AD_ENDED","qbrBitrate","postInterval","adInfo","getTime","Playback Paused","PAUSED","CDN","isStarz","crsEnabled","USER_CLOSED_AD"," reportPlaybackPosition In :","_asArray","currentTime","StreamID","crsInterval","downloadRate","wifissid","downshiftCount","_adEpocTime","event","cbrSize","sendEventToStarz","PROGRESS","playDur","_wifiSSID","_subscriberTag","onload","_playbackStatus","0123456789abcdef","reportAppInfo","_maxStepUp","Invalid streamURL","_inProgress","_lastStatsPostedAtTS","setStreamInfo","VIDEOQUALITY","_duration","getStreamId","video","_width","properties","updateSubscriberID","Ad reached third quartile","object","checkSubscriberIDCookie","RATE_CHANGE","Ad Playback started","create","_onPlaybackStart","ISSUBTITLEACTIVE","adPodInfo","_producerURL","_totalDuration","SEEKED"," reportAppInfo In","BUFFERING","progressMark","ContentMetadata","doGet","PLAYER_RESET","reportAdPlaybackTime","_onPlayerStateChanged","Buffer Duration is ","timeOffset","QBRDisabled-QMetric","MMSmartStreamingSdk"," reportDeviceInfo In ","podIndex","midpoint","1.0.11","latency","MANIFEST_LOADED","log","symbol","FAILED","QBRCostsave","size","xml2json"," initializeSession In mode: ","code","setProducerURL","initEndByte","eventType","_prevSegInfo","#text_asArray","PLAYER_DESTROY","setPresentationInformation","segInfo"," reportAdInfo ","_maxEventsInQ","JSSDKv4.4.2_","SUBSCRIBERTAG"," metaurl: ","application/json","_avgDownloadRate","httpStatus","SERIESTITLE"," reportWifiDataRate In","application/dash+xml","_upshiftCount","QBRDisabled-NoPresentationInfo","Ad impression has been made","SUCCESS","_deviceType","ISLIVE","#cdata-section_asArray","ENDED","subscriberTag","getRegistrationStatusWithBackend","nodeName","_SESEventToSend","_bufferStartTime","setRequestHeader","WIFISSID","minRes","width","9641430ikcSdi","TEXT_NODE","_playSent","eventMetric","VIDEOTYPE","CDATA_SECTION_NODE","random","duration","STARTED","AD_CLICK","_httpUtil","SESSIONID","_bandwidth","res","reportBufferLength","17032021","setCfKonstant","src","reportDeviceId","Ad clicked","deviceIdStarz","reportProducerForSES","LATENCY","clientInfo","set","Content-type","registerMMSmartStreaming","getCorrectedCurrentTimeinMs","reportChunkRequest","bwInUse","nonlinear","cid","keys","substr","PLAYBACK_ENDED"," reportComponent ","CIRR","1496Paupni","nodeType","#text","_appName","populateAdRelatedInfo","Dish_MX","_adId","setCfVal","_prevAdState","item","getQbrMode","2.0.0","Error while sending event to Toolbox","Playback completion","DURATION_CHANGE","domainName","Playback Seek Started","_timeShift","playerModel","component","getActiveTracks","mmTrace:","_adServer"," initializing QEngine","adInterval","upshiftCount","reportEventWithValue","Ad impression at ","_adDuration"," reportVideoQuality In","sid","_playerBrand","_adPauseDurationToOffsetFromInterval","sumBuffWait","_EPState","status","diagnostics","Playback Buffering Completed","WAITING","Content-Type","reportDeviceType","_adCreativeType","_height","maxFps","abort","APPNAME","AD_FIRST_QUARTILE","ASSETID","adPositionInPod","_contentMetadata","reportDeviceInfo","assetId","<","reportPresentationSize w:","upShiftCount","qoeMetric","_deviceModel","SEASON","seqNum","ONLOAD_SENT","isValidStateTransition","DONE","_adPauseDuration"," reportNetworkType In","_adPodIndex","getQBRChunk","setSubscriberType","Unknown","test","getDomainName","getPlayDur","streamType","buffWaitType","PLAYBACK_FINISHED","setExpProbe","_wifiSignalStrenth","context","cdn","adDuration","RESIZE","reportError","complete","deviceCapabilities","DurationWatched","AD_","DOCUMENT_NODE","_flagStartLatencyViaPlayer","reportMetricValue","setVideoDuration","getRegistrationStatus","writable","numOfProfile","_streamUrl","SCREENRES","QBRQuality","downloadType","Seeked event"," reportPlaybackRateChange In","Prev: "," reportBufferLength In :","_playerVersion","instance"," registerMMSmartStreaming In ","pre","https://cdn.polyfill.io/v2/polyfill.js","lastTS","setSingletonInstance","getSingletonInstance","adPodIndex","mmAd","4702912yWcsNY"," reportAdState ","WARNING","producerURL","serverAddress","adLoadStartTime","isArray","appendChild","Microsoft.XMLDOM","_sourceSelected","getInitialDelay","ERROR MMSDK Instance not created!","PLAYBACK_PAUSED","VIDEO_PLAYBACK_QUALITY_CHANGED","MMSmartStreaming Integration - ","AD_PLAY","_progressMark","Ad Buffering started"," reportError In ","_httpPostTimeout","ontimeout","sessionId","synchronizeTimestamp","parsererror","initialize","downShift","maxRes","_adLoadStartTime","Ad reached first quartile","_adBeforePlayback","getCRSUrl","_presentationWidth","__cnt","device","monitorRegistration","AD_COMPLETE","reportMode","_subscriberID","_presentationHeight","trackIdx","getAttribute"," setPresentationInformation In - live?","toLowerCase","prefix","VIDEO_TRACK_CHANGED","LOAD_START","reportDownloadRate","; max-age=","QBRSDKMODE","baseName","ceil","getChecksum","reportPlaybackRateChange"," h:","updateSubscriber","toolboxEndpoint_events","reportAdState","ELEMENT_NODE","PLAYERNAME","_adLinear","apply","__text","reportCustomMetadata","concat","_language","com.widevine.alpha","_deviceBrand","KALTURASDK","assetInfo","setSESURL","reportWifiSSID","_buffWaitType","AD_RESUMED","STREAMFORMAT","DEVICEMODEL","_customerID","653736TLLQqW","_segRepeatationCount","text/xml","AD_BLOCKED","] : ","recordIndex","getPlaybackPos","location","CHANGE_SOURCE_STARTED","AD_THIRD_QUARTILE","_seekState","Ad blocked","getElementsByTagName","BUFFERING_FINISHED","reportAdBufferingStarted","_regStatus"," reportVolumeChange In","SEEK_FINISHED","(dynamic-range: high)","_deviceOsVersion","isBumper","reportAssetID","APPVERSION","bitrate","message","HDR","Ad has been paused","onbeforeunload"," reportWifiSignalStrenthPercentage In","Ad is blocked ","_linear","getDownloadRate","IMA","DEVICECAPABILITIES","adType","bufferLength","maxStepsDown","dimensions","Playback Started after ad","qmetric","__prefix","attributes","setStreamID","Player"," blacklistRepresentation In blacklist:","SUBTITLE_CHANGE","getEPState","splice","seriesTitle","QBRModeDisabled","desc","getBufferingCount","send","converter","BUFFERING_COMPLETE","Playback Registration Failed.","INITIALIZED","VPAID","_enableEP","SES_WARNING","AUDIOTRACK","QBRDisabled","_recordIndex","_mode","PLAYBACK_START","pId","_pbTimeBeforeAdStart","matches","Buffering completed event","_adStartEpocTime","pbEventInfo","mm_md5","upShift","QBRDisabled-NoABR","Playback Registration Failed","reportContentMetadata","AD_PLAYED_FIRST_QUARTILE","_bufferLength","Pre: ","QBRDisabled-LiveSessionNotSupported","startByte","GET","preroll","STOPPED","addSegInfo","use strict","SUMBUFFERING","reportRegistrationFailure","adCreativeId","attributeValue"," reportdeviceCapabilities In","_producerURLSES","AD_CLICKED","cleanUp","Ad has been requested","_adSumBuffWait","_adLastAdEventTimeStamp","key","QBRMetricTemplate","_initLatency","setBuffering","SES_ERROR","DEVICEID","_deviceID","cfVal","initializeDisableManifestFetch","pbInfo","AD_MANIFEST_LOADED","Warn: State not valid","getSubscriberIDCookie"," reportDownloadRate In :","__dashjs_factory_name","Ad Ended at ","adUrl","_onSourceChanged","EventMetricTemplate","adResolution","NetRequest timeout","getAdInterval","initializeSession","setEPState","readyState","PLAYBACK_STARTED","videoQuality","buffWait","adIsLinear","clearAdInfo"," reportDurationChange In","Access-Control-Allow-Origin","player","_videoId","#cdata-section","DATASOURCE","Ad skipped","SDK_REGISTER_URL","QBRSDK : QEngine cannot be initialized....","episodeNumber","notifyEvent","Playback Start","InitializeSession Success","isQBRDisabled","OPERATOR","isVDSActive","__cdata","text","reportRegistrationSuccess","_statsMetric","QBRDisabled-ContentNotSupportedForQBR","maxSteps","VRT","_timeDeltaInMs","parseFromString","MAXRES"," reportBufferingCompleted In ","videoType","streamURL","constructor","_deviceMarketingName","childNodes","_statsMonitorStartedAtTS","_playerModel","getElementsByTagNameNS","Ad completed at ","ERROR","SUMBUFFERINGCIRR","_adUrl","setDownloadRate","None","function","FRAG_LOADED","Buffering started event","_adLastPlayingEventTimeStamp","_adTitle","_sumBuffWaitCIRR","AD_COMPLETED","millisecToSec","_eventToSend","_isFirstBatch","createElement","getCfVal","setSegInfo","getProfiledIdforToolbox","timeout","xxxxxyyxxxyyxxxyxxx-ymxyxxyxxyxx-","mode","indexOf","PLAYBACK_RESUMED","endByte","reportServerTimeStamp","data","_pauseStartTime","interval","setBandwidth","_videoQuality","adTitle","defineProperty","_onMediaLoaded","response"," reportBufferingStarted In ","streamID","_postInterval","ASSETNAME","TOTALDURATION","setSDKInfo","VIDEO_TRACK_CHANGE","getAdPlayDur","reportComponent","reportPlayerSeekStarted","adSystem","mid","WebNotReachable",""","DEVICEMARKETINGNAME","_simulatedEndedSent","adScheduledTime","getQBRBandwidth","_isBufferingState","playerName"," downloadRate:","isValid","&","sendHeartbeatToToolbox","AD_BUFFERING","url","replace","getOwnPropertySymbols","isLive"," contentMetadata:"," reportPlayerSeekCompleted In","pbTime","brand","reportDeviceCapabilities","totalSegments","thirdquartile","Pause event","GenerateDeviceIdStarz","setSubscriberTag","override","_epocTime","subscriberType","_statsToSend","_buffWait","DOMParser","reject","getPanelStats","nwType","reportResolutionChange","onreadystatechange","30tNICiP","json2xml_str","Ad Progress","playerVersion","uuidv4_subscriberID","isRoot","stopMonitoring","reportPresentationSize","startTime","Error in sending heartbeat to starz","adCreativeType","then","customerId","_timerObj","AUDIO_CHANGE","ClientInfo","subscrId","xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx","Play event","_maxStepDown","FRAMELOSS","_adPodLength","bind","JSON format incorrect for profiledId -Toolbox"," millisec","maxAttempts","setCurrentTimeDelta","PLAY","cbrBitrate","_adPosition","_baseServerTimeStampMS","catch","AUDIO_TRACK_CHANGED","START",">","UPSHIFTCOUNT","reportTrackinfo","VERBOSE","setSESRequirements","innerHeight","_sdkVersion"," getQBRBandwidth In trackIdx:","_downloadRateCount","AD_ERROR","stringify","_segINfoStatus","setBufPBEvent","season","setInitialParameter","firstChild","_adLoadTime","VOLUME_CHANGE","_bwExtSet","ISVDSACTIVE","PLAYER_READY","Experience Probe Initialisation Failed.","1080*720","qubitData","postroll","parseXmlString","COMMENT_NODE"," reportMetricValue In","Ad paused","contentMetadata","Latency","setContentMetadata","Error while sending heartbeat to Toolbox","getSDKVersion","representationArray","AD_IMPRESSION","MINFPS","call"," reportCustomMetadata In","_timerTimestampSynchro","Unknown State","reportBufferingStarted","videoAssetInfo","reportSDKVersion","_prevPlayerState","Playback Buffering Started","SUBSCRIBERTYPE","sequence","resolve","WIFIDATERATE","setPostInterval","setPresentationStreamInfo","AD_PROGRESS","streamFormat","SmartTV","root","_onLoadSentAtTS","AD_MIDPOINT"," reportAdBufferingStarted In ","adBitrate","HFILEVERSION","TEXT_TRACK_CHANGED","post","reset","totalAds","reportWifiSignalStrenthPercentage","_enableVideoQoE","prevAdState","%, New: ","_adCreativeId","resetAdInfoIfInitialState","genre","6502584mprBdI","reportUserInitiatedPlayback","CHROMECAST","qbrSize","registerSdkWithBackend","playbackError","CONTENTTYPE","_assetName","split","_KAdKeepAliveInterval","Network Error","getAdErrorMessage","setPBStats","BITRATE_SHIFT","setSubscriberID","AD_SKIPPED","parse","setMode","enumerable","_modeFromResponse","height","_component","PlaybackInfo","reportWifiDataRate","CUSTID","POST","getDefaultDomainName","JWT ","statusText","charCodeAt","RESUME","_subscriberType","linear","log_level","contentType","getCurrentTimeinMs","PROGRESSMARK","DEVICEBRAND","Event","Playback Duration Changed","toFixed","_isBumper","1duUhVh","_adBuffWaitForInterval","reportVolumeChange","_qoeMetric","4249IqNcvO","PLAYBACK_UPDATE","downloadTime","adServer","Accept","audioTrack","AD_PAUSED","http://localhost"," reportResolutionChange In","adPodLength","createInstance","timestamp","codecIdentifier","getHintFileUrlFromResponse","Error while sending payload to Starz","_prevBitrate","setPresentationType","onSuccess","startMonitoring","Cellular_LTE","mergeFunction","Ad reached midpoint","reportPlayerState","_deviceCapabilities","AD_REQUEST","setCustomTag","SUMBUFFERINGVRT","AD_BUFFERING_COMPLETE","Ended event","_latencyStartTime","reportBufferingCompleted","reportProducer","undefined","Wifi","customMeta","_networkType","READY","_eventMetric","WiredNetwork","sendEventToToolbox","starzEndpoint","targetQuality","DEVICETYPE","setRegistrationStatus","SEEK_COMPLETE","hls","statistics","EVENT == ","appName"," reportFrameLoss In ","AD_PLAYED_SECOND_QUARTILE","reportFrameLoss","sendQBRStats","namespaceURI","getSessionId","initStartByte","reportNetworkType","payload"," getQBRChunk In","PLAYING"," reportPlayerSeekStarted In","QBRBitsave","vpaid","notifyPackager","_label","IDLE","session1","setAssetID","length","toolboxEndpoint_profiledId","_adPositionInPod","removeEventListener","_deviceOs","setScreenRes","Promise","getTracks","setSubscriberIDCookie"," reportManifestLoaded In","_appVersion","sendEventInfo","onErrorCodes","NETWORKTYPE","string","Ad has been skipped","open","hasOwnProperty","AD_BLOCK"," reportWifiSSID In","disableManifestsFetch","floor","_adPlaybackTime","blacklistRepresentation","_downloadRate","_wifiDataRate","localName","minFps","profiledId"," reportAdBufferingCompleted In ","ONLOAD"," url:",", New: ","AD_PLAYED_THIRD_QUARTILE","charAt","_onChangeSourceStart","playbackStatus","_bufferingCount","hFileVersion","freeze","configurable","videoId","_cfVal","SUBTITLETRACK","loadStartTime","getStreamInfo","720*640","downShiftCount","isToolbox","_enableAdQoE","resetForNewAd","drmProtection","assetName","OFF","_playDur","profileNum","Browser","forEach","toString","events"," reportABRSwitch ","OSVERSION","mmTrace ","resetAdvertisementInfo","_id","packageToolBoxEvent","1915024zVsHmk","JWT","sdkInfo","dur","_adPlaybackStartWallClockTime","20WZxifP","_adBitrate","_timerObj2","adLinear","Ad started ","SDK_CONFIG","_adInformation","TIME_UPDATE","deviceMarketingName","setClientInfo","firstquartile","Ad resumed","track/","adId","_pauseDuration","_adPauseStartTime","customTags","enableLogTrace","AD_LOADED","totalDuration","PAUSEDURATION","get","SDKVERSION","]]>","newBitrate","_sumBuffWait","1.0.0","/","setMaxSteps","name","PLATFORM","reportHintFileVersion","reportDurationChange","Play Button","_onManifestLoaded","reportABRSwitch","SEEK_START","adProgress","matchMedia","attempt","BUFFERING_START","__children","setPlaybackPos","reportAdInfo","reportAdError","getSmartRouteUrl","Playback resumed","onerror","MINRES","Unknown error took place: ","_domainName","reportVideoQuality","packageStarzEvent","Cellular_2G","children"," reportUserInitiatedPlayback In ","sendHearbeatToStarz","SUBSCRIBERID","push","PAUSE","sendAdPlayingEvent","DOWNSHIFTCOUNT","custId","fromCharCode","VideoPlaybackQualityChanged","valid","Mid Point ","_hintFileVersion","EPISODENUMBER","platform","VIDEOID","VIDEOTRACK","SeekCompleted","COMPLETE","playerBrand","AD_STARTED","maxStepsUp","map","PENDING","subtitleTrack","sesRequirements","_adClient","extraAdData","SegmentInfo","_downshiftCount","BUFFERING_STARTED"," reportAdError ","207294fQGyZY","getLastUpdateSegmentInfo","dataSrc","substring","SIGNALSTRENGTH","BANDWIDTH","_pbTime","START_AFTER_AD","_adResolution","subscriberId","Third quartile ","adPosition","getProfileProperties","reportPlayerInfo","Dish_MX_SES","_assetID","_adPlayDur","ServerAddress"];return(g=function(){return t})()}r(261),r(261);var P=function(){var t,e,i,s,n,r=!1,a=void 0,o=new m,h=null,d=void 0,c=!1,l=!1,p=!1,_=!1,S=void 0,I=void 0;n=v,typeof MMQubitEngineImpl!==n(608)&&(a=new MMQubitEngineImpl),typeof crsPoller!==n(608)&&(S=new crsPoller),typeof statistics!==n(608)&&(d=new statistics);var E=function(t){var e=v;l&&console[e(920)](e(1022)+(new Date)[e(851)]()+"::"+t)},T=function(n){var d=v;if(null!=n&&(E(d(1152)+n.isLive+" duration:"+n.duration+" repsCnt:"+n.representationArray[d(644)]),1===(h=n)[d(402)]&&(h[d(402)]=!0),0===h[d(402)]&&(h[d(402)]=!1),r)){a?(a[d(934)](h),p&&_&&(_=!1,a[d(281)](o,e,i,s,h)[d(435)]((function(e){t[d(506)](e)}))[d(455)]((function(e){t[d(419)](e)})))):o.reportMode("QBRDisabled");var u=h[d(402)]?-1:h.duration/1e3;o[d(1089)](u),o[d(592)](h[d(402)]);var c="",f="",l=0,S=0,I=h.representationArray.length,m=h[d(564)];if(I)for(var T=0;T<I;T++)h[d(492)][T].width&&h[d(492)][T][d(550)]&&h[d(492)][T].width>0&&h.representationArray[T][d(550)]>0&&((0===l||l>h[d(492)][T][d(963)]*h.representationArray[T][d(550)])&&(f=h[d(492)][T][d(963)]+"x"+h[d(492)][T][d(550)],l=h[d(492)][T][d(963)]*h[d(492)][T][d(550)]),(0===S||S<h.representationArray[T].width*h.representationArray[T][d(550)])&&(c=h[d(492)][T][d(963)]+"x"+h[d(492)][T][d(550)],S=h[d(492)][T][d(963)]*h.representationArray[T][d(550)]));o[d(509)](c,f,0,0,I,m)}},A=function(t){var e=v,i=P(t),s=void 0;return void 0!==i&&void 0!==i[e(963)]&&void 0!==i.height&&i[e(963)]>0&&i[e(550)]>0&&(s=i.width+"x"+i[e(550)]),s},D=function(t){var e=v,i=P(t),s=void 0;return i&&(s=i[e(588)]),s},R=function(t){var e=v,i=b(t),s=void 0;return void 0!==i&&void 0!==i[e(963)]&&void 0!==i[e(550)]&&i.width>0&&i[e(550)]>0&&(s=i[e(963)]+"x"+i[e(550)]),s},g=function(t){var e=v,i=b(t),s=void 0;return i&&(s=i[e(588)]),s},P=function(t){var e=v,i=void 0;if(h)for(var s=0;s<h.representationArray[e(644)];s++)if(h[e(492)][s][e(1210)]===t){i=h[e(492)][s];break}return i},b=function(t){var e=v,i=void 0;if(h)for(var s=0;s<h[e(492)][e(644)];s++)if(h[e(492)][s][e(1150)]===t){i=h[e(492)][s];break}return i};return{getSmartRouteUrl:function(t){return S?S[v(1141)](t):t},enableLogTrace:function(t){l=t},updateSubscriberID:function(t){o.updateSubscriberID(t)},updateSubscriber:function(t,e,i){o[v(1165)](t,e,i)},getRegistrationStatus:function(){return r},getRegistrationStatusWithBackend:function(){return o[v(956)]()},registerMMSmartStreaming:function(t,e,i,s,n,a,h){var u=v;E(u(1103)+t+" "+e+" "+s+" "+n+" "+i),o.reset(),f[u(720)][u(622)]&&d&&d[u(1075)](o),o[u(990)](t,e,s,n,a,h),o[u(746)](f[u(720)].hintFileVersion),o[u(382)](i),r=!0,I=e},initializeSession:function(n,r,c,l){var m=v;return E(m(926)+n+m(675)+r+m(940)+c+m(403)+l),h=null,o[m(521)](),f[m(720)][m(622)]&&d&&d.resetStatistics(),a&&(a[m(521)](),a[m(472)](o,u[m(1236)])),o[m(295)](n,r,c,l)[m(435)]((function(n){var d,u,f,E,A=m,D=JSON[A(546)](n);if(void 0!==I&&void 0!==D[A(837)]&&void 0!==D[A(856)]&&void 0!==D[A(862)]&&S&&S[A(1135)](I,D[A(837)],D[A(856)],D[A(862)],o),void 0===D[A(1114)])return o[A(263)](),o[A(521)](),new Promise((function(t,e){var i=A;y[i(920)](i(461),i(250)),e(i(1242))}));if(o.reportRegistrationSuccess(D),o.reportAssetID(l.assetID,l[A(696)],l[A(685)]),a&&(a[A(472)](o,D[A(360)]),c=a[A(589)](r,c,D,l.assetID,l[A(696)])),T(h),y.log(A(461),A(1024)),!a)return new Promise((function(t,e){var i=A;y.log(i(461),i(315)),t(D),D&&o[i(831)](D.mmVideo,D[i(1110)])}));if(!p){var R=a.initialize(o,D[A(360)],r,c);return a[A(934)](h),R}return a?(_=!0,e=D.mode,s=c,i=r,f=v,(E=new Promise((function(t,e){d=t,u=e})))[f(506)]=d,E[f(419)]=u,t=E):void 0}))[m(455)]((function(t){var e=m;return t!=e(311)?(t=e(479),o[e(263)](),o.reset(),a&&a[e(472)](o,"QBRDisabled")):(t="MMSmartStreaming : QBR component cannot be initialized...",a&&a[e(472)](o,e(1248))),T(h),new Promise((function(i,s){var n=e;y[n(920)](n(461),t),s(t)}))}))},setPresentationInformation:T,blacklistRepresentation:function(t,e){var i=v;E(i(1231)+t+"="+e),a&&a[i(667)](t,e)},getQBRBandwidth:function(t,e,i,s){var n=v;return E(n(465)+t+n(394)+e+" buffLength:"+i+" playbackPos:"+s),this[n(978)](i),a?a[n(391)](t,e,i,s):e},getQBRChunk:function(t){var e=v;E(e(634));var i=t;if(a){c=!0,a[e(1066)](t);var s=a[e(803)]();d&&!0===s[e(780)]&&f[e(720)][e(622)]&&d.updateStatistics(s,!1,a[e(1218)](),s[e(408)])}return i},reportChunkRequest:function(t){var e=v;if(r&&!c)if(E(e(843)),o[e(316)]()&&f[e(720)][e(1226)]&&a)a[e(1066)](t);else{var i=function(t){var e=v,i=t.endByte>0?t[e(363)]-t[e(256)]:-1,s=void 0,n=void 0,r=t[e(971)]>0?parseInt(t[e(971)]/1e3):-1,a=t[e(432)]>0?t[e(432)]/1e3:-1;-1==t.trackIdx?-1!=t[e(1210)]&&(s=A(t[e(1210)]),n=D(t[e(1210)])):(s=R(t[e(1150)]),n=g(t[e(1150)]));var h=void 0,d=void 0;return n&&n[e(886)]&&(d=n[e(886)]),n&&n[e(820)]&&(h=n.audio),o[e(798)](s,t[e(1210)],t.bitrate,void 0,void 0,r,t.sequence,a,void 0,t[e(1150)],t[e(1150)],i,void 0,d,h)}(t);o[e(260)](i)}},reportDownloadRate:function(t){var e=v;r&&(E(e(286)+t),a&&a[e(342)](t),o.setBandwidth(t))},reportBufferLength:function(t){r&&(E(v(1100)+t),a&&a.reportBufferLength(t),o.reportBufferLength(t))},reportCustomMetadata:function(t,e){var i=v;r&&(E(i(496)),o[i(601)](t,e))},reportPlaybackPosition:function(t){var e=v;r&&(E(e(858)+t),a&&a.setPlaybackPos(t),o[e(757)](t))},reportNetworkType:function(t){r&&(E(v(1064)),o.reportNetworkType(t))},reportMetricValue:function(t,e){var i=v;r&&(E(i(485)),o[i(1088)](t,e))},reportDeviceInfo:function(t,e,i,s,n,r,a,h){var d=v;E(d(914)),o.reportDeviceInfo(t,e,i,s,n,r,a,h),e===d(532)?o[d(1041)]("ChromeCast"):"SMARTTV"===e&&o[d(1041)](d(512))},reportPlayerInfo:function(t,e,i){var s=v;E(" reportPlayerInfo In"),o[s(815)](t,e,i)},reportAppInfo:function(t,e){E(v(902)),o.reportAppInfo(t,e)},reportDeviceCapabilities:function(t){var e=v;E(e(266)),o[e(407)](t)},reportVideoQuality:function(t){E(v(1030)),o.reportVideoQuality(t)},reportManifestLoaded:function(){var t=v;E(t(653)),o[t(830)]()},reportDeviceId:function(t){var e=v;E(" reportDeviceId In"),o[e(982)](t)},reportPlayerState:function(t){var e=v;E(" reportPlayerState In "+t),o[e(598)](t)},notifyPackager:function(t,e){o[v(639)](t,e)},setSESRequirements:function(t){o.setSESRequirements(t)},setSESURL:function(t){o[v(1180)](t)},reportTrackinfo:function(t,e,i,s,n){o.reportTrackinfo(t,e,i,s,n)},reportUserInitiatedPlayback:function(){E(v(770)),o.reportUserInitiatedPlayback()},reportBufferingStarted:function(){var t=v;E(t(374)),o[t(499)]()},reportBufferingCompleted:function(){var t=v;E(t(329)),o[t(606)]()},reportEventWithValue:function(t,e){o[v(1027)](t,e)},reportABRSwitch:function(t,e){var i=v;r&&o[i(316)]()&&(E(i(704)+t+"->"+e),o[i(750)](t,e))},reportFrameLoss:function(t){var e=v;r&&(E(e(625)+t),o[e(627)](t))},reportPresentationSize:function(t,e){var i=v;E(i(1054)+t+i(1164)+e),o.reportPresentationSize(t,e)},reportError:function(t,e){var i=v;r&&(E(i(1129)+t),o[i(1081)](t,e))},reportPlayerSeekCompleted:function(t){r&&(E(v(404)),o.reportPlayerSeekCompleted(t))},reportPlayerSeekStarted:function(){r&&(E(v(636)),o.reportPlayerSeekStarted())},reportResolutionChange:function(t){var e=v;r&&(E(e(584)),o[e(422)](t))},reportVolumeChange:function(t){var e=v;r&&(E(e(1203)),o[e(574)](t))},reportPlaybackRateChange:function(){var t=v;r&&(E(t(1098)),o[t(1163)]())},reportDurationChange:function(){var t=v;r&&(E(t(303)),o[t(747)]())},reportSDKVersion:function(t){o[v(501)](t)},getSDKVersion:function(){return o[v(491)]()},reportWifiSSID:function(t){var e=v;r&&(E(e(663)),o[e(1181)](t))},reportWifiSignalStrenthPercentage:function(t){var e=v;r&&(E(e(1215)),o[e(523)](t))},reportWifiDataRate:function(t){var e=v;r&&(E(e(945)),o[e(553)](t))},reportAdInfo:function(t){var e=v;r&&(E(e(936)),t&&o[e(758)](t))},reportAdError:function(t,e){E(v(801)+t),o.reportAdError(t,e)},reportAdBufferingStarted:function(){var t=v;E(t(516)),o[t(1201)]()},reportAdBufferingCompleted:function(){E(v(673)),o.reportAdBufferingCompleted()},reportAdPlaybackTime:function(t){var e=v;r&&(E(" reportAdPlaybackTime "+t),o[e(908)](t))},reportAdState:function(t){var e=v;r&&(E(e(1112)+t),o[e(1167)](t))},reportComponent:function(t){var e=v;r&&(E(e(999)+t),o[e(382)](t))},getPanelStats:function(){return d[v(420)]()},getProfileProperties:function(){return r&&a?a[v(814)]():null},setRegistrationStatus:function(t){r=t},setCfValue:function(t){r&&a&&a[v(980)](t)},getSessionId:function(){if(r)return o.sessionId},getPresentationInfoInternal:function(){if(r&&a)return a.getPresentationInfoInternal()},disableManifestsFetch:function(t){r&&(p=t)}}};r(261);var b,C={createInstance:function(t){var e,i=v,s=Object[i(895)]((e=new P,{getSmartRouteUrl:function(t){return e[v(760)](t)},getSDKVersion:function(){return e[v(491)]()},getRegistrationStatus:function(){return e[v(1090)]()},getRegistrationStatusWithBackend:function(){return e[v(956)]()},registerMMSmartStreaming:function(t,i,s,n,r,a,o){return e[v(990)](t,i,s,n,r,a,o)},updateSubscriberID:function(t){return e[v(889)](t)},disableManifestsFetch:function(t){e.disableManifestsFetch(t)},reportDeviceInfo:function(t,i,s,n,r,a,o,h){e.reportDeviceInfo(t,i,s,n,r,a,o,h)},reportPlayerInfo:function(t,i,s){e[v(815)](t,i,s)},reportDeviceCapabilities:function(t){e[v(407)](t)},reportAppInfo:function(t,i){e[v(877)](t,i)},reportVideoQuality:function(t){e[v(766)](t)},reportManifestLoaded:function(){e[v(830)]()},reportDeviceId:function(t){e[v(982)](t)},initializeSession:function(t,i,s,n){return e[v(295)](t,i,s,n)},setPresentationInformation:function(t){e[v(934)](t)},blacklistRepresentation:function(t,i){e[v(667)](t,i)},getQBRBandwidth:function(t,i,s,n){return e[v(391)](t,i,s,n)},getQBRChunk:function(t){return e[v(1066)](t)},reportChunkRequest:function(t){e[v(992)](t)},reportDownloadRate:function(t){e[v(1157)](t)},reportBufferLength:function(t){e[v(978)](t)},reportCustomMetadata:function(t,i){e[v(1173)](t,i)},reportPlaybackPosition:function(t){e.reportPlaybackPosition(t)},reportNetworkType:function(t){e[v(632)](t)},reportMetricValue:function(t,i){e[v(1088)](t,i)},reportBufferingStarted:function(){e[v(499)]()},reportBufferingCompleted:function(){e[v(606)]()},reportEventWithValue:function(t,i){e[v(1027)](t,i)},reportUserInitiatedPlayback:function(){e[v(531)]()},reportPlayerState:function(t){e[v(598)](t)},notifyPackager:function(t,i){e[v(639)](t,i)},setSESRequirements:function(t){e[v(462)](t)},setSESURL:function(t){e[v(1180)](t)},reportABRSwitch:function(t,i){e[v(750)](t,i)},reportFrameLoss:function(t){e[v(627)](t)},reportPresentationSize:function(t,i){e[v(431)](t,i)},reportError:function(t,i){e[v(1081)](t,i)},reportPlayerSeekCompleted:function(t){e[v(822)](t)},reportPlayerSeekStarted:function(){e[v(383)]()},reportResolutionChange:function(t){e[v(422)](t)},reportVolumeChange:function(t){e[v(574)](t)},reportPlaybackRateChange:function(){e[v(1163)]()},reportDurationChange:function(){e[v(747)]()},reportSDKVersion:function(t){e.reportSDKVersion(t)},reportWifiSSID:function(t){e[v(1181)](t)},reportWifiSignalStrengthPercentage:function(t){e[v(523)](t)},reportWifiDataRate:function(t){e.reportWifiDataRate(t)},reportAdState:function(t){e.reportAdState(t)},reportAdInfo1:function(t,i,s,n,r,a,o,h){e[v(758)](t,i,s,n,r,a,o,h)},reportAdInfo:function(t){e[v(758)](t)},reportAdPlaybackTime:function(t){e[v(908)](t)},reportAdError:function(t,i){e[v(759)](t,i)},reportAdBufferingStarted:function(){e[v(1201)]()},reportAdBufferingCompleted:function(){e.reportAdBufferingCompleted()},enableLogTrace:function(t){e.enableLogTrace(t)},updateSubscriber:function(t,i,s){return e[v(1165)](t,i,s)},getPanelStats:function(){return e[v(420)]()},getProfileProperties:function(){return e[v(814)]()},setCfValue:function(t){e.setCfValue(t)},setRegistrationStatus:function(t){e[v(619)](t)},getSessionId:function(){return e[v(630)]()},getPresentationInfoInternal:function(){return e.getPresentationInfoInternal()},reportTrackinfo:function(t,i,s,n,r){return e[v(460)](t,i,s,n,r)}}));return s[i(287)]=i(913),T[i(1107)](t,i(913),s),s},getInstance:function(t){var e=v;if(void 0===t)return b||(b=this.createInstance(this));var i=T[e(1108)](t,e(913));return!i&&console.log(e(1122)),i}},M=(Object.freeze({DASH:"dash",HLS:r(621),MSS:"mss",MP4:r(845)}),function(){var t=r,e=Object.freeze({READY:0,PLAYING:1,PAUSED:2,STOPPED:3}),i=Object[t(683)]({READY:1,WAITING:2}),s=t(1178),n=C[t(586)](this),d=void 0,f=void 0,l=void 0,v=!1,p=void 0,_=!1,S=void 0,I=!1,m=!1,E=0,T=0,A=0,D=0,R=0,y=0,g=0,P=!1,b={},M={},N=void 0,L=void 0,O=void 0,B=void 0,k=void 0,x=void 0,U=void 0,F=void 0,w=void 0,V=0,W=!1,K=!1,G={streamURL:"",height:0,width:0,contentHeight:0,contentWidth:0,profileCount:0,duration:0,isLive:void 0,contentType:void 0,title:null,representationArray:[]},q=function(e){var i=t;n[i(501)]("KALTURA3_v1.0.2"),console[i(920)](i(1125)+n[i(491)]()),e&&(S=u[i(1236)],d=e,z())},Q=function(e,i){var s=t;if(H(),e&&(p=e),void 0!==p&&""!==p){i[s(731)]=M;var r=yt(i),a=r[s(1179)];if(a[s(1052)],a[s(696)],a[s(685)],i&&i[s(360)]?i[s(360)]:u.QBRModeDisabled,Ot(),n.initializeSession(S,p,null,a).catch((function(t){console.log(t)})),r[s(610)]&&r.customMeta[s(644)])for(var o=0;o<r[s(610)].length;o++)n.reportCustomMetadata(r[s(610)][o][s(273)],r[s(610)][o][s(265)]);a[s(1115)]&&n[s(1088)](c[s(819)],a[s(1115)]),v=!0}else console.log(s(879))},H=function(){f=void 0,l=void 0,v=!1,I=!1,p=void 0,_=!1,S=void 0,I=!1,E=0,T=0,A=0,D=0,R=0,y=0,g=0,P=!1,N=void 0,W=!1,V=0,O=void 0,B=void 0,k=void 0,x=void 0,U=void 0,F=void 0},Y=function(){K=!1,w=void 0,V=0},z=function(){var e=t;d&&(d.addEventListener(d[e(568)].SOURCE_SELECTED,ct),d.addEventListener(d.Event[e(842)],lt),d[e(828)](d[e(568)][e(919)],ft),d[e(828)](d[e(568)][e(1195)],ut),d[e(828)](d[e(568)][e(1156)],vt),d[e(828)](d[e(568)][e(1251)],pt),d.addEventListener(d.Event[e(451)],St),d.addEventListener(d.Event[e(635)],It),d.addEventListener(d.Event.PAUSE,Et),d[e(828)](d[e(568)].SEEKED,At),d[e(828)](d.Event.SEEKING,Dt),d.addEventListener(d[e(568)][e(954)],Rt),d[e(828)](d[e(568)][e(1039)],Tt),d.addEventListener(d[e(568)][e(722)],Pt),d[e(828)](d[e(568)][e(339)],Ct),d[e(828)](d[e(568)][e(933)],Mt),d[e(828)](d[e(568)][e(998)],Nt),d[e(828)](d[e(568)][e(907)],Nt),d.addEventListener(d[e(568)][e(870)],bt),d[e(828)](d.Event[e(345)],mt),d.addEventListener(d[e(568)][e(456)],_t),d[e(828)](d.Event.VIDEO_TRACK_CHANGED,_t),d[e(828)](d[e(568)][e(519)],_t),d[e(828)](d[e(568)].AD_LOADED,J),d.addEventListener(d[e(568)][e(790)],X),d[e(828)](d[e(568)][e(350)],et),d[e(828)](d[e(568)][e(268)],tt),d[e(828)](d[e(568)][e(467)],st),d.addEventListener(d[e(568)].AD_SKIPPED,$),d.addEventListener(d[e(568)][e(582)],nt),d[e(828)](d.Event[e(1183)],rt),d[e(828)](d.Event.AD_FIRST_QUARTILE,at),d[e(828)](d[e(568)][e(515)],ot),d.addEventListener(d.Event[e(1196)],ht),d[e(828)](d.Event.USER_CLOSED_AD,it),d.addEventListener(d[e(568)][e(283)],j),d[e(828)](d[e(568)][e(510)],Z))},j=function(t){W=!1},J=function(i){var s=t;if(void 0===f&&(Ot(),n[s(531)](),f=e[s(612)]),!W&&(n[s(1167)](a[s(600)]),W=!0),V=0,i&&i[s(633)]){var r=o();if(i[s(633)][s(1221)]==s(258)?(r[s(813)]=s(1104),r[s(1109)]=0):"midroll"==i[s(633)][s(1221)]?(r[s(813)]=s(385),r.adPodIndex=1):i[s(633)].adType==s(482)?(r.adPosition=s(520),r[s(1109)]=-1):r.adPosition=void 0,r[s(728)]=i[s(633)].ad[s(708)],r[s(1079)]=1e3*i.payload.ad[s(884)],r[s(301)]=i[s(633)].ad._linear,r[s(579)]=i[s(633)].extraAdData[s(384)],r[s(292)]=i[s(633)].ad[s(887)]+"x"+i[s(633)].ad._height,i.payload[s(797)]){var h=i[s(633)].extraAdData[s(898)];h&&(r[s(1049)]=h.adPosition,r[s(1109)]=h[s(915)],r.adPodLength=h[s(522)],r[s(1207)]=h[s(1207)],r[s(390)]=h[s(911)]),r[s(846)]=1==i[s(633)].extraAdData[s(638)]?"VPAID":s(1219)}w=r[s(1079)],n.reportAdPlaybackTime(dt()),n.reportAdState(a[s(493)]),n[s(758)](r),kt(s(1028)+dt())}},X=function(e){var i=t;n[i(908)](dt());var s=o();if(s.adId=e[i(633)].ad[i(708)],s[i(1079)]=1e3*e[i(633)].ad[i(884)],s[i(301)]=e[i(633)].ad[i(1217)],s[i(579)]=e[i(633)].ad._system,s[i(292)]=e[i(633)].ad[i(887)]+"x"+e[i(633)].ad._height,e[i(633)][i(797)]){var r=e[i(633)][i(797)][i(898)];r&&(s[i(1049)]=r[i(813)],s[i(1109)]=r.podIndex,s.adPodLength=r.totalAds,s[i(1207)]=r[i(1207)],s[i(390)]=r.timeOffset,s[i(579)]=r[i(384)],s[i(434)]=e.payload[i(797)][i(564)]),s[i(846)]=1==e[i(633)].extraAdData.vpaid?i(1244):i(1219)}w=s[i(1079)],n.reportAdInfo(s),n[i(1167)](a[i(790)]),K=!0,kt(i(719)+dt())},Z=function(e){var i=t;K=!0,kt(i(426)),e[i(633)]&&e[i(633)][i(752)]&&(V=1e3*e.payload[i(752)][i(860)],n[i(908)](V))},$=function(e){var i=t;n[i(908)](dt()),n[i(1167)](a.AD_SKIPPED),K=!1,kt(i(309))},tt=function(e){var i=t;n.reportAdPlaybackTime(dt()),n[i(1167)](a[i(268)]),kt(i(983))},et=function(e){var i=t;K=!1,n[i(908)](w),n[i(1167)](a[i(350)]),Y(),kt(i(338)+w)},it=function(e){var i=t;K=!1,n[i(908)](dt),n[i(1167)](a[i(847)]),Y(),kt(i(288)+dt)},st=function(e){var i=t,s=dt();s<0&&(s=0),n[i(908)](s),!W&&(n[i(1167)](a[i(600)]),W=!0),n[i(759)](d[i(541)](),s),kt("Ad error reported with message "+d[i(541)]())},nt=function(e){var i=t;n[i(908)](dt()),n.reportAdState(a[i(582)]),kt(i(486))},rt=function(e){var i=t;n[i(908)](dt()),n[i(1167)](a.AD_RESUMED),kt(i(726))},at=function(e){var i=t;K=!0,n[i(908)](dt()),n[i(1167)](a[i(1047)]),kt("First quartile at "+dt())},ot=function(e){var i=t;K=!0,n[i(908)](dt()),n[i(1167)](a[i(515)]),kt(i(781)+dt())},ht=function(e){var i=t;K=!0,n[i(908)](dt()),n[i(1167)](a[i(1196)]),kt(i(812)+dt())},dt=function(t){return V},ut=function(e){var i=t;typeof d!==i(608)&&null!==d&&kt(i(679))},ct=function(i){var s=t;typeof d!==s(608)&&null!==d&&(kt(s(290)),void 0!==f&&f!==e[s(259)]&&(f=void 0,v=!1,_=!1,n.reportPlayerState(h.STOPPED)),!v&&(d[s(1120)]&&(p=d._sourceSelected[s(399)]),Q(p,b)))},ft=function(e){var i=t;typeof d!==i(608)&&null!==d&&(kt(i(749)),n[i(1027)](i(919),"MANIFEST_LOADED"))},lt=function(e){var i=t;typeof d!==i(608)&&null!==d&&kt(i(372))},vt=function(i){var s=t;typeof d!==s(608)&&null!==d&&(kt("_onLoadStart"),!v&&(d[s(1120)]&&(p=d._sourceSelected.url),Q(p,b)),void 0===f&&(n[s(531)](),f=e[s(612)],kt(s(442))))},pt=function(e){var i=t;typeof d!==i(608)&&null!==d&&kt(i(896))},_t=function(){var e=t;if(null!=d){var i=d.getActiveTracks(),s=i[e(886)],r=i[e(820)],a=i[e(320)],o=!1,h=!1,u=void 0,c=void 0;if(s&&(u=s[e(976)],c=s[e(887)]+"x"+s._height,s=s[e(640)]+", "+s[e(1175)],void 0!==B&&B!==s)){var f=e(254)+B+e(676)+s;n[e(1027)](e(380),f),void 0!==x&&x!==u&&(f=e(254)+x+e(676)+u,n.reportEventWithValue(e(543),f)),void 0!==U&&U!==c&&(f="Pre: "+U+e(676)+c,n[e(1027)]("RESIZE",f))}r&&("Commentary"==r._label&&(h=!0),r=r[e(640)],void 0!==O&&O!==r)&&(f="Pre: "+O+e(676)+r,n[e(1027)](e(438),f)),a?(a=a[e(640)],o=!0,void 0!==k&&k!==a&&(f=e(254)+k+", New: "+a,n[e(1027)](e(1232),f))):a=void 0,n[e(460)](s,a,r,h,o),k=a,B=s,O=r,x=u,U=c}},St=function(i){var s=t;typeof d!==s(608)&&null!==d&&(_t(),!1===v&&(d._sourceSelected&&(p=d[s(1120)][s(399)]),Q(p,b),void 0===f&&(n[s(531)](),f=e.READY)))},It=function(s){var r=t;if(typeof d!==r(608)&&null!==d){if(!_&&Bt(this),P&&E>0&&f===e[r(853)]){var a=(new Date)[r(851)]();kt("Pause Duration is "+(D+=a-R)+" millisec")}P&&0===E&&(E=(new Date)[r(851)]()),void 0!==f&&f!==e.PLAYING&&(n[r(598)](h[r(635)]),f=e[r(635)],kt("Playing event")),l===i[r(1039)]&&void 0!==f&&f!==e[r(259)]&&(n[r(606)](),l=i[r(612)],P&&E>0&&(a=(new Date)[r(851)](),y+=a-g,kt(r(910)+y+r(448))),kt(r(1255)))}},mt=function(e){var i,s,a,o,h,d,u,c,f,l,v=t,p=Lt();if(null!=p){var _=void 0===p[v(1210)]?p._bandwidth:p[v(1210)],S=(s=_,a=void 0,o=void 0,h=void 0,d=void 0,u=void 0,c=void 0,f=r,l={},void 0===(i=void 0)?l.trackIdx=-1:l[f(1150)]=i,void 0===i?l.trackIdx=-1:l[f(1150)]=i,l[f(1210)]=void 0===s?-1:s,l[f(505)]=void 0===a?-1:a,l[f(432)]=void 0===h?-1:h,void 0===u?l.startByte=-1:l[f(256)]=u,l[f(363)]=void 0===c?-1:c,l.duration=void 0===d?-1:d,l[f(631)]=-1,l[f(929)]=-1,l.resourceURL=o||null,l),m=_;n.reportDownloadRate(m),n.reportChunkRequest(S),!1===I&&(I=!0)}},Et=function(i){var s=t;typeof d!==s(608)&&null!==d&&f===e[s(635)]&&(f=e[s(853)],n.reportPlayerState(h[s(853)]),kt(s(410)))},Tt=function(s){var r=t;typeof d!==r(608)&&null!==d&&f===e[r(635)]&&l!==i.WAITING&&(n[r(499)](),l=i.WAITING,P&&E>0&&(g=(new Date)[r(851)]()),kt(r(346)))},At=function(i){var s=t;if(typeof d!==s(608)&&null!==d&&void 0!==f&&f!==e[s(612)]){if(P&&E>0){if((T=(new Date).getTime())-A>2e3){var r=T-E-D-y;A=T,n[s(822)](r)}}else n[s(822)](gt());kt(s(1097))}},Dt=function(i){var s=t;typeof d!==s(608)&&null!==d&&void 0!==f&&f!==e[s(612)]&&n[s(383)]()},Rt=function(i){var s=t;typeof d!==s(608)&&null!==d&&(kt(s(604)),f=e[s(259)],H(),n[s(598)](h.STOPPED))},yt=function(e){var i=t,s=[],n={assetId:null,assetName:null,videoId:null,contentType:null,metaUrl:null,serverAddress:void 0},r={assetId:null,assetName:null,contentType:null,drmProtection:null,episodeNumber:null,genre:null,season:null,seriesTitle:null,videoId:null,videoType:null};if(null!=e&&(e.assetId&&(r[i(1052)]=n[i(1052)]=e[i(1052)]),e[i(696)]&&(r[i(696)]=n.assetName=e[i(696)]),e.videoId&&(r[i(685)]=n[i(685)]=e[i(685)]),e.contentType&&(r[i(564)]=n[i(564)]=e[i(564)]),e[i(695)]&&(r.drmProtection=n[i(695)]=e[i(695)]),e[i(312)]&&(r[i(312)]=n[i(312)]=e[i(312)]),e.genre&&(r[i(529)]=n[i(529)]=e[i(529)]),e[i(471)]&&(r.season=n.season=e[i(471)]),e[i(1235)]&&(r[i(1235)]=n.seriesTitle=e[i(1235)]),e[i(823)]&&(r[i(823)]=n[i(823)]=e[i(823)]),e[i(330)]&&(r[i(330)]=n[i(330)]=e[i(330)]),e[i(731)]))for(var a in e[i(731)])s[i(773)]({key:a,attributeValue:e.customTags[a]});return{assetInfo:n,customMeta:s,contentMetadata:r}},gt=function(){var e=d[t(860)];return e>0&&(e*=1e3),e},Pt=function(t){if(P&&E>0){if((T=(new Date).getTime())-A>2e3){var e=T-E-D-y;A=T,n.reportPlaybackPosition(e)}}else n.reportPlaybackPosition(gt())},bt=function(e){var i=t,s=100*d.volume;if(void 0!==F&&F!==s){var r=i(1099)+F+i(526)+s+"%";n.reportEventWithValue(i(475),r)}F=s},Ct=function(i){var s=t;if(null!=d&&(void 0===f&&(n[s(531)](),f=e[s(612)]),i.payload)){var r=i[s(633)][s(927)]+":"+i[s(633)][s(365)][s(744)];r&&n.reportError(r,gt())}},Mt=function(i){var s,r=t;K&&(K=!1,n[r(908)](dt),n[r(1167)](a[r(847)])),void 0!==f&&f!==e.STOPPED&&(f=void 0,v=!1,_=!1,n[r(598)](h[r(259)])),s=t,d&&(d[s(647)](d.Event.SOURCE_SELECTED,ct),d[s(647)](d[s(568)][s(842)],lt),d[s(647)](d[s(568)][s(919)],ft),d[s(647)](d[s(568)].CHANGE_SOURCE_STARTED,ut),d.removeEventListener(d.Event.LOAD_START,vt),d.removeEventListener(d[s(568)].PLAYBACK_START,pt),d[s(647)](d[s(568)][s(451)],St),d.removeEventListener(d[s(568)][s(635)],It),d[s(647)](d[s(568)][s(774)],Et),d[s(647)](d.Event.SEEKED,At),d[s(647)](d[s(568)][s(840)],Dt),d[s(647)](d[s(568)][s(954)],Rt),d[s(647)](d[s(568)].WAITING,Tt),d[s(647)](d[s(568)][s(722)],Pt),d[s(647)](d[s(568)][s(339)],Ct),d[s(647)](d[s(568)].PLAYER_DESTROY,Mt),d[s(647)](d[s(568)].PLAYBACK_ENDED,Nt),d[s(647)](d[s(568)][s(870)],bt),d[s(647)](d[s(568)][s(345)],mt),d[s(647)](d.Event[s(456)],_t),d[s(647)](d.Event[s(1155)],_t),d[s(647)](d.Event[s(519)],_t),d[s(647)](d[s(568)][s(733)],J),d[s(647)](d.Event[s(790)],X),d.removeEventListener(d.Event[s(350)],et),d[s(647)](d.Event[s(268)],tt),d[s(647)](d[s(568)][s(467)],st),d[s(647)](d[s(568)][s(545)],$),d[s(647)](d[s(568)][s(582)],nt),d[s(647)](d.Event[s(1183)],rt),d[s(647)](d[s(568)][s(1047)],at),d.removeEventListener(d.Event[s(515)],ot),d[s(647)](d.Event[s(1196)],ht),d[s(647)](d[s(568)][s(857)],it),d[s(647)](d[s(568)][s(283)],j),d[s(647)](d[s(568)].AD_PROGRESS,Z)),d=null},Nt=function(i){var s=t;K&&(K=!1,n.reportAdPlaybackTime(dt),n.reportAdState(a[s(847)])),void 0!==f&&f!==e[s(259)]&&(f=void 0,v=!1,_=!1,n[s(598)](h[s(259)]))},Lt=function(){var e=t,i=d[e(1021)]();if(i&&i.video)return i[e(886)]},Ot=function(e){var i=t;d&&d[i(1224)]&&n[i(1051)](void 0,void 0,void 0,void 0,void 0,L,d[i(1224)][i(963)],d[i(1224)][i(550)])},Bt=function(){var e=t,i=[];N=G;var s=1e3*d[e(971)];d[e(402)]()?(N[e(971)]=-1,null!=N[e(402)]&&null!=N[e(402)]||(N[e(402)]=!0)):(N[e(971)]=s,null!=N[e(402)]&&null!=N[e(402)]||(N.isLive=!1)),P=N[e(402)];var a,o,h,u,c,f,l,v,p,S,I,m,E=d[e(1072)];if(E===e(845))N[e(564)]=E,n.setPresentationInformation(N),_=!0;else if(d[e(651)]()&&d[e(651)]()[e(644)]){var T=d[e(651)](),A=T[e(644)];if(d[e(860)],T.length>0){for(var D=0;D<A;D++){var R=(f=D,l=void 0===T[D][e(1210)]?T[D][e(976)]:T[D][e(1210)],v=T[D][e(963)],p=T[D][e(550)],S={},I=void 0,m=void 0,I=r,(m={}).trackIdx=f||0,m[I(1210)]=l||0,m.width=v||0,m[I(550)]=p||0,m.codecIdentifier=S||{},m.segmentInfo=[],m);i[e(773)](R)}a=N.isLive,o=N[e(971)],h=i,1===a&&(a=!0),(c={})[(u=r)(402)]=a||!1,c[u(971)]=o||-1,c[u(492)]=h||[],(N=c)[e(564)]=E,n.setPresentationInformation(N),_=!0}}},kt=function(e){var i=t;m&&e&&console[i(920)](i(706)+e)},xt=function(){return n.getRegistrationStatus()},Ut=function(e,i,s){return n[t(815)](e,i,s)},Ft=function(e,i,r,a,o,h){return n[t(990)](e,i,s,r,a,o,h)},wt=function(t){L=t},Vt=function(e,i){n[t(877)](e,i)},Wt=function(e){n[t(982)](e)},Kt=function(e){n[t(766)](e)};return window[t(1214)]=function(t){Mt()},{initialize:q,getRegistrationStatus:xt,registerMMSmartStreaming:Ft,reportPlayerInfo:Ut,updateSubscriber:function(e,i,s){n[t(1165)](e,i,s)},reportCustomMetadata:function(t,e){return n.reportCustomMetadata(t,e)},reportMetricValue:function(t,e){return n.reportMetricValue(t,e)},disableManifestsFetch:function(e){n[t(664)](e)},enableLogTrace:function(e){m=e,n[t(732)](e)},reportAppInfo:Vt,setDeviceInfo:wt,reportDeviceId:Wt,reportVideoQuality:Kt,setAdapter:function(e,i){var s=t;!1===xt()&&(Ft(i[s(393)],i[s(436)],i[s(811)],i[s(1016)],i.subscriberType,i[s(955)]),Ut(i[s(789)],i[s(1019)],i.playerVersion)),Vt(i[s(624)],i.appVersion),wt(i[s(723)]),Wt(i[s(838)]),Kt(i[s(299)]),b=i[s(500)],M=i[s(731)],q(e)},updateMMConfig:function(i){var s=t;b=i.videoAssetInfo,M=i[s(731)],f===e[s(635)]&&(f=e[s(259)],H(),n[s(598)](h[s(259)])),!v&&d[s(1120)]&&(p=d._sourceSelected[s(399)],Q(p,b))},destroyMMSDK:function(){Mt()}}})},739:function(t,e,i){var s,n=this&&this.__extends||(s=function(t,e){return s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},s(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function i(){this.constructor=t}s(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)});Object.defineProperty(e,"__esModule",{value:!0}),e.MediaMelon=e.pluginName=void 0;var r=i(86),a=i(773);e.pluginName="mediaMelon";var o=function(t){function e(e,i,s){var n,a=this;return a=t.call(this,e,i,s)||this,s.playerName=(null===(n=i.config.uiConfData)||void 0===n?void 0:n.name)||"",s.playerVersion=i.provider.playerVersion,a.mmKalturaPlugin=new r.KALTURAPlayerMMSSIntgr,a.mmKalturaPlugin.setAdapter(i,s),a}return n(e,t),e.prototype.loadMedia=function(){this.applyMediaInfoToMMConfig(),this.updateConfig(this.config)},e.prototype.applyMediaInfoToMMConfig=function(){var t,e,i=this.config,s=this.player;i.playerName=(null===(t=s.config.uiConfData)||void 0===t?void 0:t.name)||"",i.playerVersion=s.provider.playerVersion,i.domainName=window.location.hostname,i.videoAssetInfo.assetId=s.config.sources.id,i.videoAssetInfo.assetName=s.config.sources.metadata.name,i.videoAssetInfo.videoId=s.config.sources.id,i.videoAssetInfo.contentType="".concat(s.config.sources.metadata.mediaType||""," - ").concat(s.config.sources.type||""),i.appName="".concat(s.env.browser.name||""," - ").concat(s.env.browser.version||""),i.appVersion=(null===(e=window.KMS_GLOBAL)||void 0===e?void 0:e.kmsVersion)||"",i.deviceMarketingName="".concat(s.env.os.name||""," ").concat(s.env.os.version||"",", ").concat(s.env.device.vendor||""," ").concat(s.env.device.model||""),i.customTags=s.config.sources.metadata.tags},e.prototype.updateConfig=function(e){t.prototype.updateConfig.call(this,e),this.mmKalturaPlugin.updateMMConfig(e)},e.isValid=function(){return!0},e.prototype.destroy=function(){this.mmKalturaPlugin.destroyMMSDK()},e.defaultConfig={customerId:"",domainName:"",subscriberTag:"",subscriberId:"",subscriberType:"",playerName:"",playerVersion:"",playerBrand:"",playerModel:"",videoAssetInfo:{assetId:"",assetName:"",videoId:"",seriesTitle:"",episodeNumber:"",season:"",contentType:"",drmProtection:"",genre:""},appName:"",appVersion:"",deviceMarketingName:"",deviceId:"",videoQuality:"",customTags:{}},e}(a.BasePlugin);e.MediaMelon=o},773:t=>{t.exports=KalturaPlayer}},i={};function s(t){var n=i[t];if(void 0!==n)return n.exports;var r=i[t]={exports:{}};return e[t].call(r.exports,r,r.exports,s),r.exports}s.d=(t,e)=>{for(var i in e)s.o(e,i)&&!s.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:e[i]})},s.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),s.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},t=s(739),(0,s(773).registerPlugin)(t.pluginName,t.MediaMelon)})();
|
2
|
+
//# sourceMappingURL=playkit-media-melon.js.map
|