PageSourceSearch

https://www.joyn.at/_next/static/chunks/281.3743072963b5f4c9.js

js joyn.at collected 2026-09-24 09:46:32 UTC 101,189 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[281],{7046:(e,t,n)=>{n.d(t,{n3:()=>l,n8:()=>i.n8,$F:()=>i.$F,LS:()=>i.LS});var i=n(21396),a=n(53075),s=n(3219);let r=e=>(0,a.jsx)("external-media-item",{children:(0,a.jsx)("script",{type:i.eF.EXTERNAL_MEDIA_ITEM,children:JSON.stringify(e||[])})}),o=e=>{let{id:t,item:n}=e;return(0,a.jsx)("glomex-media-item",{id:t,environment:e.environment,children:n&&(0,a.jsx)("script",{type:i.eF.EXTERNAL_MEDIA_ITEM,children:JSON.stringify(n)})})},d=e=>{let{id:t,item:n}=e;return(0,a.jsx)("joyn-media-item",{id:t,environment:e.environment,children:n&&(0,a.jsx)("script",{type:i.eF.EXTERNAL_MEDIA_ITEM,children:JSON.stringify(n)})})},l=(0,s.forwardRef)((e,t)=>{let{children:n,integrationId:l,moduleUrl:u,tagName:c,stylesUrl:h,index:p,hidden:m,topLevelIframe:g,crossorigin:v,placement:E,schain:y,env:_,mediaItems:A,config:T,extraContext:I,userLanguage:f,hostContextData:P,variant:N,...C}=e,S=(0,s.useRef)(null),b=(0,s.useMemo)(()=>(0,i.Qq)({moduleUrl:u,tagName:c,stylesUrl:h}),[u,c,h]),O=(A||[]).map((e,t)=>{let n=(0,i.lZ)(e),s=`${n.id}-${t+1}`;switch(n.provider){case"glomex":return(0,a.jsx)(o,{id:n.id,environment:n.environment,item:n.item},s);case"joyn":return(0,a.jsx)(d,{id:n.id,environment:n.environment,item:n.item},s);default:return(0,a.jsx)(r,{...n.item},s)}});(0,s.useEffect)(()=>{u&&b.loadComponent()},[u,b]),(0,s.useImperativeHandle)(t,()=>{let e=S.current;return e.ready=S.current?.ready||new Promise(e=>window.customElements.whenDefined(c).then(()=>{let t=S.current;t?.ready?.then(()=>e())})),e},[c]),(0,s.useEffect)(()=>{S.current&&(S.current.extraContext=I)},[I,c]),(0,s.useEffect)(()=>{if(P){let e=!1;return b.getHostContext().then(t=>{e||t.set(P)}).catch(()=>{}),()=>{e=!0}}},[P,b]);let M=l?b.getCssUrl(l):void 0,R={ref:S,"integration-id":l,index:p,hidden:m,"top-level-iframe":g,crossorigin:v,placement:E,schain:y,env:_,variant:N,"user-language":f,...C},w=T||h?{...T,...T?.developmentFlags||h?{developmentFlags:{...h?{stylesUrl:h}:{},...T?.developmentFlags||{}}}:{}}:void 0,L=[...O,n,w?(0,s.createElement)("script",{type:i.eF.PLAYER_CONFIG},JSON.stringify(w)):null];return(0,s.createElement)(s.Fragment,null,M?(0,s.createElement)("link",{rel:"stylesheet",href:M}):null,(0,s.createElement)(c,R,...L))})},10584:(e,t,n)=>{n.d(t,{s:()=>o});var i=n(21396);class a extends Error{constructor(e){super(e),this.name="JoynEtWebValidationResult"}}class s extends Error{constructor(e){super(e),this.name="JoynEtWebApiError"}}class r{#e;#t;#n;#i=!1;#a=!1;#s=!1;#r=!0;#o=NaN;#d;#l;#u;#c;constructor(e,t,n,i){this.#e=e,this.#t=t,this.#n=n,this.#d=i,this.#h()}handleEvent(e){let{type:t}=e,n=this.#e,a=this.#t,s=this.#c;if(!this.#i){if(t===i.n8.PLAYER_SET_PRESENTATION_MODE&&a.changePlayMode(this.#p).catch(this.#d("changePlayMode")),t===i.n8.CONTENT_START&&(this.#m(),this.#r=!1,this.#s=!0,a.startLifecycle(this.#p,this.#g).catch(this.#d("startLifecycle"))),t===i.n8.CONTENT_IMPRESSION&&(this.#a=!0,this.#r=!1,a.startContent(this.#v).catch(this.#d("startContent"))),t===i.n8.CONTENT_PLAY&&this.#a&&this.#r&&!n.seeking&&("linear"===this.#l&&this.#m(),a.resumeContent(this.#v).catch(this.#d("resumeContent")),this.#r=!1),t===i.n8.CONTENT_PAUSE&&this.#a&&!n.seeking&&(a.pauseContent(this.#v).catch(this.#d("pauseContent")),this.#r=!0),t!==i.n8.CONTENT_TIME_UPDATE||!this.#a||this.#r||n.seeking||n.buffering||(this.#r=!1,a.updatePositionContent(this.#v).catch(this.#d("updatePositionContent"))),t===i.n8.CONTENT_SEEKING&&this.#a&&a.startSeekingContent(this.#v).catch(this.#d("startSeekingContent")),t===i.n8.CONTENT_SEEKED&&this.#a&&a.endSeekingContent(this.#v).catch(this.#d("endSeekingContent")),t===i.n8.CONTENT_BUFFERING_START&&this.#a&&!n.seeking&&a.startBufferingContent(this.#v).catch(this.#d("startBufferingContent")),t===i.n8.CONTENT_BUFFERING_END&&this.#a&&!n.seeking&&a.endBufferingContent(this.#v).catch(this.#d("endBufferingContent")),t===i.n8.CONTENT_ENDED&&a.endContent(this.#v).catch(this.#d("endContent")),t===i.n8.CONTENT_STOP&&this.destroy(e.detail.reason),(t===i.n8.CONTENT_VOLUME_CHANGE||t===i.n8.AD_VOLUME_CHANGE)&&a.changeVolume(this.#g).catch(this.#d("changeVolume")),t===i.n8.AD_IMPRESSION){if
1(!n.currentAd)return;let e=n.currentAd.breakName,t=n.currentAd.adFormat;t!==this.#l&&this.#m(),this.#l=t,this.#u||(this.#u=this.#t.createAdRoll({adRollType:e,adRollSlot:n.currentAd.breakIndex+1}),this.#u.startAdRoll().catch(this.#d("startAdRoll"))),this.#u.requestAdSlot(n.currentAd.positionIndex+1).catch(this.#d("requestAdSlot"));let i=n.adDuration||n.currentAd.duration||NaN;this.#c=this.#u.createFilledAdSlot({adDuration:Number.isNaN(i)?NaN:1e3*i,adId:n.currentAd.id,adSlot:n.currentAd.positionIndex+1}),this.#c.startAd().catch(this.#d("startAd"))}if(t===i.n8.AD_COMPLETE||t===i.n8.AD_SKIPPED){let e=t===i.n8.AD_COMPLETE?this.#o:this.#E;if(s?.endAd(e).catch(this.#d("endAd")),this.#o=NaN,this.#c=void 0,!n.currentAd)return;n.currentAd.positionIndex+1===n.currentAd.totalAds&&this.#m()}t===i.n8.AD_TIME_UPDATE&&(s?.updatePositionAd(this.#E).catch(this.#d("updatePositionAd")),Number.isNaN(this.#E)||(this.#o=this.#E)),t===i.n8.AD_RESUMED&&s?.resumeAd(this.#E).catch(this.#d("resumeAd")),t===i.n8.AD_PAUSED&&s?.pauseAd(this.#E).catch(this.#d("pauseAd")),t===i.n8.AD_BUFFERING_START&&s?.startBuffer
1ingAd(this.#E).catch(this.#d("startBufferingAd")),t===i.n8.AD_BUFFERING_END&&s?.endBufferingAd(this.#E).catch(this.#d("endBufferingAd"))}}get #v(){return this.#n===i.LS.LIVE?Math.floor(1e3*this.#e.wallClockTime):Math.floor(1e3*this.#e.currentTime)}get #E(){return Math.floor(1e3*this.#e.adCurrentTime)}get #g(){return null!=this.#e.adVolume&&null!=this.#e.adMuted?this.#e.adMuted?0:100*this.#e.adVolume:this.#e.muted?0:100*this.#e.volume}get #p(){return this.#e.presentationMode===i.MY.FULLSCREEN||this.#e.presentationMode===i.MY.LIGHTBOX?"fullscreen":"embedded"}#m(){this.#c&&(this.#c.endAd(this.#E).catch(this.#d("endAd")),this.#c=void 0),this.#u&&(this.#u.endAdRoll().catch(this.#d("endAdRoll")),this.#u=void 0,this.#l=void 0)}#h(){let e=this.#e;e.addEventListener(i.n8.PLAYER_SET_PRESENTATION_MODE,this),e.addEventListener(i.n8.CONTENT_START,this),e.addEventListener(i.n8.CONTENT_IMPRESSION,this),e.addEventListener(i.n8.CONTENT_TIME_UPDATE,this),e.addEventListener(i.n8.CONTENT_PAUSE,this),e.addEventListener(i.n8.CONTENT_PLAY,this),e.addEventListener(i.n8.CONTENT_SEEKING,this),e.addEventListener(i.n8.CONTENT_SEEKED,this),e.addEventListener(i.n8.CONTENT_BUFFERING_START,this),e.addEventListener(i.n8.CONTENT_BUFFERING_END,this),e.addEventListener(i.n8.CONTENT_ENDED,this),e.addEventListener(i.n8.CONTENT_STOP,this),e.addEventListener(i.n8.CONTENT_VOLUME_CHANGE,this),e.addEventListener(i.n8.AD_IMPRESSION,this),e.addEventListener(i.n8.AD_TIME_UPDATE,this),e.addEventListener(i.n8.AD_RESUMED,this),e.addEventListener(i.n8.AD_PAUSED,this),e.addEventListener(i.n8.AD_BUFFERING_START,this),e.addEventListener(i.n8.AD_BUFFERING_END,this),e.addEventListener(i.n8.AD_COMPLETE,this),e.addEventListener(i.n8.AD_SKIPPED,this),e.addEventListener(i.n8.AD_VOLUME_CHANGE,this)}destroy(e){if(this.#i)return;this.#i=!0,this.#r=!0,this.#m();let t=this.#e,n=this.#t;t.removeEventListener(i.n8.PLAYER_SET_PRESENTATION_MODE,this),t.removeEventListener(i.n8.CONTENT_START,this),t.removeEventListener(i.n8.CONTENT_IMPRESSION,this),t.removeEventListener(i.n8.CONTENT_TIME_UPDATE,this),t.removeEventListener(i.n8.CONTENT_PAUSE,this),t.removeEventListener(i.n8.CONTENT_PLAY,this),t.removeEventListener(i.n8.CONTENT_SEEKING,this),t.removeEventListener(i.n8.CONTENT_SEEKED,this),t.removeEventListener(i.n8.CONTENT_BUFFERING_START,this),t.removeEventListener(i.n8.CONTENT_BUFFERING_END,this),t.removeEventListener(i.n8.CONTENT_ENDED,this),t.removeEventListener(i.n8.CONTENT_STOP,this),t.removeEventListener(i.n8.CONTENT_VOLUME_CHANGE,this),t.removeEventListener(i.n8.AD_IMPRESSION,this),t.removeEventListener(i.n8.AD_TIME_UPDATE,this),t.removeEventListener(i.n8.AD_RESUMED,this),t.removeEventListener(i.n8.AD_PAUSED,this),t.removeEventListener(i.n8.AD_BUFFERING_START,this),t.removeEventListener(i.n8.AD_BUFFERING_END,this),t.removeEventListener(i.n8.AD_COMPLETE,this),t.removeEventListener(i.n8.AD_SKIPPED,this),t.removeEventListener(i.n8.AD_VOLUME_CHANGE,this),e!==i.iB.ENDED&&!t.ended&&this.#s&&n.abortContent(this.#v).catch(this.#d("abortContent"))}}let o=(e,t,n)=>{let o,d=e=>{n?.warnCallback?n.warnCallback(e):setTimeout(()=>{console.error(e)},0)},l=n=>{o&&(o.destroy(),o=void 0),o=function(e,t,n,o){var d;let{content:l}=t;if(!l||void 0===l.duration&&void 0===t.duration)return;let u=Math.floor(void 0===l.duration?1e3*t.duration:1e3*l.duration),{sessionId:c,source:h}=e.detail,{id:p="",playbackMode:m}=h,{lifecycle:g,validationResult:v}=function({content:e,etApi:t,playbackMode:n,entitlementToken:a,contentSessionId:s,duration:r,sourceId:o}){let d=a?{token:a}:{id:s},l=e.additionalIds?.originId,u=e.show?.id||e.competition?.id||e.compilation?.id||l||e.id,c=e.show?.name||e.competition?.name||e.compilation?.name||e.title;return n===i.LS.LIVE?t.createLifeycle("live",{brandId:Number(e.channel?.id),brandTitle:e.channel?.name||"",entitlement:d,livestreamId:l||e.id||"",type:"live"}):e.liveOnDemandChannel?.id?t.createLifeycle("odc",{assetId:u||"",assetTitle:c||"",brandId:Number(e.channel?.id)||0,brandTitle:e.channel?.name||"",duration:r,entitlement:d,episodeNumber:e.show?.episodeNumber,externalId:e.additionalIds?.externalId||"",mediaId:o,mediaTitle:e.title||"",seasonNumber:e.show?.seasonNumber,livestreamId:e.liveOnDemandChannel?.id,type:"odc"}):t.createLifeycle("vod",{assetId:u||"",assetTitle:c||"",brandId:Number(e.channel?.id)||0,brandTitle:e.channel?.name||"",duration:r,entitlement:d,episodeNumber:e.show?.episodeNumber,externalId:e.additionalIds?.externalId||"",mediaId:o,mediaTitle:e.title||"",seasonNumber:e.show?.seasonNumber,type:"vod"})}({content:l,etApi:n,playbackMode:m,entitlementToken:h.metadata?.entitlementToken,contentSessionId:c,duration:u,sourceId:p});return"error"in v&&o(new a(JSON.stringify(v))),new r(t,g,m,(d=o,e=>t=>{let n=t instanceof Error?t.message:Array.isArray(t)?t.map(e=>e instanceof Error?e.message:JSON.stringify(e)).join("; "):JSON.stringify(t);d(new s(`${e} failed: ${n}`))}))}(n,e,t,d)};return e.addEventListener(i.n8.CONTENT_SELECT,l),()=>{e.removeEventListener(i.n8.CONTENT_SELECT,l),o?.destroy(),o=void 0}}},10885:(e,t,n)=>{n.d(t,{m:()=>a});var i=n(83710);let a=e=>(0,i.k0)(e,"adex").then(()=>(0,i.L5)(()=>{var e,t,n,i;return null==(i=null==(n=null==(t=null==(e=globalThis.adex)?void 0:e.getAdexUser)?void 0:t.call(e))?void 0:n.getUserId)?void 0:i.call(n)},40,100).then(e=>e?Promise.resolve(e):Promise.reject(Error("Adex API not set after 4 seconds"))))},11567:(e,t,n)=>{n.d(t,{K:()=>o});var i=n(10885),a=n(88024),s=n(83710);let r={1:"3300",2:"3301",3:"3302",4:"3303",5:"3305",6:"3304",7:"3306",101:"3400",132:"3100",133:"3101",134:"3401",185:"3102",186:"3103",1287:"3110",1289:"3114",1290:"3111",1291:"3112",1293:"3113",1292:"3115",1294:"3116",1295:"3117",1011:"0",1057:"3402",1058:"3403"};class o{constructor(e){this.Lifecycle=class{constructor(e){this.parent=e}enqueue(e,t){return s.DR.includes(e.brandId)&&this.parent.queue.shouldTrack?this.parent.queue.canProcessEvent?t():this.parent.queue.add(t):Promise.resolve()}startLifecycle(e,t,n,i){return this.enqueue(e,()=>{this.mediaElementProxy=datazoom.createCollectorProxy(),this.datazoomContext=datazoom.createContext(this.mediaElementProxy);let t="live"!==e.type?e.mediaTitle:null;datazoom.on(datazoom.sdkEvent.CONTENT_SESSION_START,n=>{let i={TVI_CHANNEL_ID:r[e.brandId],TVI_DELIVERY:this.parent.contentDeliveryPlatformIdentifier,CUSTOM_ASSET_ID:"live"===e.type?"linear":e.mediaId,TITLE:t,ADEX_ID:this.parent.adexId};i[datazoom.overridableMetadata.TITLE]=t,i[datazoom.overridableMetadata.STREAMING_TYPE]="live"===e.type?"LIVE":"VOD",n.setMetadata(i)}),this.mediaElementProxy.dispatch("play",this.getPlayerPayload(0,e,i,!1))})}startContent(e,t,n,i,a){return this.enqueue(t,()=>{this.mediaElementProxy.dispatch("playing",this.getPlayerPayload(e,t,a,!1))})}updatePositionContent(e,t,n,i,a){return this.enqueue(t,()=>{this.mediaElementProxy.dispatch("timeupdate",this.getPlayerPayload(e,t,a,!1))})}resumeContent(e,t,n,i,a){return this.enqueue(t,()=>{this.mediaElementProxy.dispatch("play",this.getPlayerPayload(e,t,a,!1)),this.mediaElementProxy.dispatch("playing",this.getPlayerPayload(e,t,a,!1))})}pauseContent(e,t,n,i,a){return this.enqueue(t,()=>{this.mediaElementProxy.dispatch("pause",this.getPlayerPayload(e,t,a,!0))})}startSeekingContent(e,t,n,i,a){return this.enqueue(t,()=>{this.mediaElementProxy.dispatch("seeking",this.getPlayerPayload(e,t,a,!1))})}endSeekingContent(e,t,n,i,a){return this.enqueue(t,()=>{this.mediaElementProxy.dispatch("seeked",this.getPlayerPayload(e,t,a,!1)),this.mediaElementProxy.dispatch("playing",this.getPlayerPayload(e,t,a,!1))})}
1startBufferingContent(e,t,n,i,a){return this.enqueue(t,()=>{this.mediaElementProxy.dispatch("waiting",this.getPlayerPayload(e,t,a,!1))})}endBufferingContent(e,t,n,i,a){return this.enqueue(t,()=>{this.mediaElementProxy.dispatch("playing",this.getPlayerPayload(e,t,a,!1))})}endContent(e,t,n,i,a){return this.enqueue(t,()=>{this.mediaElementProxy.dispatch("ended",this.getPlayerPayload(e,t,a,!1))})}startAdRoll(e,t,n,i,a){return this.enqueue(t,()=>{this.adsManagerProxy=datazoom.createCollectorProxy(),this.datazoomContext.attachImaAdsManager(this.adsManagerProxy),this.adsLoaderProxy=datazoom.createCollectorProxy(),this.datazoomContext.attachImaAdsLoader(this.adsLoaderProxy)})}endAdRoll(e,t,n,i,a){return this.enqueue(t,()=>{this.adsManagerProxy.dispatch("allAdsCompleted",this.getAdPayload(0,e,a))})}startAd(e,t,n,i,a){return this.enqueue(t,()=>{this.adsManagerProxy.dispatch("start",this.getAdPayload(0,e,a))})}endAd(e,t,n,i,a,s){return this.enqueue(n,()=>{this.adsManagerProxy.dispatch("complete",this.getAdPayload(e,t,s))})}resumeAd(e,t,n,i,a,s){return this.enqueue(n,()=>{this.adsManagerProxy.dispatch("resume",this.getAdPayload(e,t,s))})}pauseAd(e,t,n,i,a,s){return this.enqueue(n,()=>{this.adsManagerProxy.dispatch("pause",this.getAdPayload(e,t,s))})}startBufferingAd(e,t,n,i,a,s){return this.enqueue(n,()=>{this.adsManagerProxy.dispatch("adBuffering",this.getAdPayload(e,t,s))})}clickThroughAd(e,t,n,i,a,s){return this.enqueue(n,()=>{this.adsManagerProxy.dispatch("click",this.getAdPayload(e,t,s))})}updatePositionAd(e,t,n,i,a,s){return this.enqueue(n,()=>{this.adsManagerProxy.dispatch("adProgress",this.getAdPayload(e,t,s))})}getPlayerPayload(e,t,n,i){return{media:{currentTime:e/1e3,duration:t.duration,playbackRate:1,paused:i,volume:n.volume,muted:0===n.volume}}}getAdPayload(e,t,n){return{ima:{adsManager:{volume:n.volume,currentTime:e/1e3},ad:{adId:t.adId||null,adSystem:null,advertiserName:null,creativeId:null,dealId:null,duration:t.adDuration||null,skipTimeOffset:null,vastMediaBitrate:null,vastMediaWidth:null,vastMediaHeight:null,wrapperAdIds:null,wrapperAdSystems:null,wrapperCreativeIds:null,clickThroughUrl:null,adPodIndex:t.adSlot||null,adTimeOffset:null}}}}},this.configurationId=e.configurationId,this.contentDeliveryPlatformIdentifier=e.contentDeliveryPlatformIdentifier,this.adexTagId=e.adexTagId,this.adexCustomerId=e.adexCustomerId,this.adexId=null,this.queue=new a.o}updateConsent(e,t,n){if(e.datazoom){let t=[(0,s.k0)(`https://platform.datazoom.io/beacon/v1/config?configuration_id=${this.configurationId}`,"datazoom"),(0,s.k0)("https://imasdk.googleapis.com/js/sdkloader/ima3.js","google")];return this.adexTagId&&this.adexCustomerId&&e.adex&&t.push((0,i.m)(`https://dmp.theadex.com/d/${this.adexCustomerId}/${this.adexTagId}/s/adex.js`).then(e=>{this.adexId=e||null})),Promise.allSettled(t).then(()=>{this.queue.canProcessEvent=!0,this.queue.shouldTrack=!0,this.queue.flush()})}this.queue.shouldTrack=!1}}},11773:(e,t,n)=>{n.d(t,{W:()=>u});var i=n(15530);let a={Accessibility:"Info",AccessibilityOverview:"Overview",Account:"User","Article Detail":"Detail","Availability Abroad":"Info",Bookmark:"User","Category Overview":"Overview","Channel Detail":"Detail","Channel Overview":"Overview",Checkout:"User","Collection Overview":"Overview","Compilation Detail":"Detail","Device Management":"User","Enter Email":"7Pass","Enter Password":"7Pass","Episode Detail":"Detail",Error:"Info","Food Overview":"Overview","Forgot Password":"7Pass","Forgot Password Email Sent":"7Pass","For You":"Home",Gallery:"Info",Home:"Home",Info:"Info",Invoices:"User","Kids Overview":"Overview","Legal Info":"Info",Linkout:"Info","Live TV Overview":"Overview","Movie Detail":"Detail","Movies Overview":"Overview","My Area":"User","New And Popular":"Home","News Overview":"Overview","Payment Info":"User",PIN:"User","Playlist Feed Detail":"Detail","Privacy Center":"User",Profile:"User","Progressive Profile":"7Pass",Promotion:"Info","Reality Overview":"Overview","Registration Email Sent":"7Pass",Regwall:"Info","Reset Password":"7Pass","Reset Password Success":"7Pass",Search:"Search","Series Detail":"Detail","Series Overview":"Overview","Set Password":"7Pass",Settings:"User","Sports Overview":"Overview","Subscription Overview":"User",Unsubscribe:"Info","Unsubscribe Confirmation":"Info",Upcoming:"Home","Video Detail":"Detail"};var s=n(83710);
1class r{constructor(e,t=[]){this.url=e,this.headers=t,this.queryString="",this.timeout=5e3,this.withCredentials=!1}getUrl(){return this.queryString.toString()?-1===this.url.indexOf("?")?`${this.url}?${this.queryString}`:`${this.url}&${this.queryString}`:this.url}setHeaders(e){return this.headers=e,this}setQueryString(e){return this.queryString=Object.keys(e).filter(t=>void 0!==e[t]&&null!==e[t]).map(t=>encodeURIComponent(t)+"="+encodeURIComponent(e[t])).join("&"),this}setTimeout(e){return this.timeout=e,this}send(e,t="{}"){return new Promise((n,i)=>{let a=new globalThis.XMLHttpRequest;a.open(e,this.getUrl()),a.timeout=this.timeout,this.withCredentials&&(a.withCredentials=!0),this.headers.forEach(([e,t])=>a.setRequestHeader(e,t)),a.ontimeout=()=>i(Error("Network request timeout.")),a.onerror=()=>i(Error("Network request failed.")),a.onload=()=>{this.isSuccess(a.status)?n(a.response):i(a.response)},a.send(e!==r.GET?t:void 0)})}isSuccess(e){return e>=200&&e<300||304===e}}r.GET="GET",r.POST="POST",r.PUT="PUT",r.PATCH="PATCH",r.DELETE="DELETE",r.ContentTypeJson=["Content-Type","application/json"];var o=n(10885),d=n(88024);let l="et-web:1.3.0";class u{constructor(e){this.Lifecycle=class{constructor(e){this.parent=e,this.beatInfos={lastMainDuration:0,hasSent10:!1,hasSent30:!1},this.adQuartile={hasSentFirstQuartile:!1,hasSentSecondQuartile:!1,hasSentThirdQuartile:!1}}startLifecycle(e,t,n){let i=Object.assign(Object.assign({},this.prepareBeatPayload(0,e,t,n)),{event_type:"lifecycle_start"});return this.parent.sendRequest(i,"v1/beat",e.entitlement.token)}startContent(e,t,n,i){let a=Object.assign(Object.assign({},this.prepareBeatPayload(e,t,n,i)),{event_type:"content_begin"});return this.parent.sendRequest(a,"v1/beat",t.entitlement.token)}updatePositionContent(e,t,n,i){return!this.beatInfos.hasSent10&&i.content-this.beatInfos.lastMainDuration>=1e4?(this.beatInfos.hasSent10=!0,this.sendPositionContent(e,t,n,i)):!this.beatInfos.hasSent30&&i.content-this.beatInfos.lastMainDuration>=2e4?(this.beatInfos.hasSent30=!0,this.sendPositionContent(e,t,n,i)):i.content-this.beatInfos.lastMainDuration>=3e4?this.sendPositionContent(e,t,n,i):void 0}sendPositionContent(e,t,n,i){let a=Object.assign(Object.assign({},this.prepareBeatPayload(e,t,n,i)),{event_type:"beat"});return this.parent.sendRequest(a,"v1/beat",t.entitlement.token)}resumeContent(e,t,n,i){let a=Object.assign(Object.assign({},this.prepareBeatPayload(e,t,n,i)),{event_type:"resume"});return this.parent.sendRequest(a,"v1/beat",t.entitlement.token)}pauseContent(e,t,n,i){let a=Object.assign(Object.assign({},this.prepareBeatPayload(e,t,n,i)),{event_type:"pause"});return this.parent.sendRequest(a,"v1/beat",t.entitlement.token)}endContent(e,t,n,i){let a=Object.assign(Object.assign({},this.prepareBeatPayload(e,t,n,i)),{event_type:"content_complete"});return this.parent.sendRequest(a,"v1/beat",t.entitlement.token)}abortContent(e,t,n,i){let a=Object.assign(Object.assign({},this.prepareBeatPayload(e,t,n,i)),{event_type:"lifecycle_abort"});return this.parent.sendRequest(a,"v1/beat",t.entitlement.token)}endSeekingContent(e,t,n,i){let a=Object.assign(Object.assign({},this.prepareBeatPayload(e,t,n,i)),{event_type:"seeked"});return this.parent.sendRequest(a,"v1/beat",t.entitlement.token)}startAd(e,t,n,i,a){this.adQuartile={hasSentFirstQuartile:!1,hasSentSecondQuartile:!1,hasSentThirdQuartile:!1};let s=Object.assign(Object.assign({},this.prepareAdPayload(0,e,t,n)),{event_type:"ad_begin"});return this.parent.sendRequest(s,"/v1/ad_event",t.entitlement.token)}endAd(e,t,n,i,a,s){let r=Object.assign(Object.assign({},this.prepareAdPayload(e,t,n,i)),{event_type:"ad_complete"});return this.parent.sendRequest(r,"/v1/ad_event",n.entitlement.token)}adOmit(e,t,n,i,a){let s=Object.assign(Object.assign({},this.prepareAdPayload(0,e,t,n)),{event_type:"ad_slot_unfilled"});return this.parent.sendRequest(s,"/v1/ad_event",t.entitlement.token)}updatePositionAd(e,t,n,i,a,s){let r,o=t.adDuration/4;if(e>o&&!this.adQuartile.hasSentFirstQuartile?(this.adQuartile.hasSentFirstQuartile=!0,r="ad_video_first_quartile"):e>2*o&&!this.adQuartile.hasSentSecondQuartile?(this.adQuartile.hasSentSecondQuartile=!0,r="ad_video_midpoint"):e>3*o&&!this.adQuartile.hasSentThirdQuartile&&(this.adQuartile.hasSentThirdQuartile=!0,r="ad_video_third_quartile"),r){let a=Object.assign(Object.assign({},this.prepareAdPayload(e,t,n,i)),{event_type:r});return this.parent.sendRequest(a,"/v1/ad_event",n.entitlement.token)}}clickThroughAd(e,t,n,i,a,s){let r=Object.assign(Object.assign({},this.prepareAdPayload(e,t,n,i)),{event_type:"ad_click_through"});return this.parent.sendRequest(r,"/v1/ad_event",n.entitlement.token)}requestAdSlot(e,t,n,i,a){let s=Object.assign(Object.assign({},this.prepareAdPayload(0,e,t,n)),{event_type:"ad_slot_requested"});return this.parent.sendRequest(s,"/v1/ad_event",t.entitlement.token)}prepareBeatPayload(e,t,n,a){var s;let r={app_build_number:n.initialContext.appBuildNumber,app_version:n.initialContext.appVersion,client_time:Date.now(),device_platform:this.parent.devicePlatform,device_type:this.parent.deviceType,index:this.parent.getIndex(),main_duration:a.content-this.beatInfos.lastMainDuration,media_type:"content",player_version:n.initialContext.playerVersion,producer_version:l,session_instance_id:this.parent.sessionInstanceId,session_installation_id:n.initialContext.sessionInstallationId,url:null==(s=null==window?void 0:window.location)?void 0:s.href};return"live"===t.type?r.livestream_id=t.livestreamId:"odc"===t.type?(r.media_id=t.mediaId,r.livestream_id=t.livestreamId,r.player_head_position=e):"vod"===t.type&&(r.media_id=t.mediaId,r.player_head_position=e),i.C.includes(n.initialContext.productName)||(r.business_model="live"===t.type?"FREE":"AVOD",r.distribution_tenant=this.parent.distributionTenant,r.entitlement_id=t.entitlement.i
1d),this.beatInfos.lastMainDuration=a.content,r}prepareAdPayload(e,t,n,a){var s;let r={app_build_number:a.initialContext.appBuildNumber,app_version:a.initialContext.appVersion,block_position:t.adRollSlot-1,block_type:t.adRollType,client_time:Date.now(),device_platform:this.parent.devicePlatform,device_type:this.parent.deviceType,index:this.parent.getIndex(),media_type:"ad",player_head_position:e,player_version:a.initialContext.playerVersion,producer_version:l,session_instance_id:this.parent.sessionInstanceId,session_installation_id:a.initialContext.sessionInstallationId,slot_duration:(null==t?void 0:t.adDuration)||0,slot_position:t.adSlot-1,url:null==(s=null==window?void 0:window.location)?void 0:s.href};return"live"===n.type?r.livestream_id=n.livestreamId:"odc"===n.type?(r.media_id=n.mediaId,r.livestream_id=n.livestreamId):"vod"===n.type&&(r.media_id=n.mediaId),i.C.includes(a.initialContext.productName)||(r.business_model="live"===n.type?"FREE":"AVOD",r.distribution_tenant=this.parent.distributionTenant,r.entitlement_id=n.entitlement.id),r}},this.endpoint=e.endpoint,this.devicePlatform=e.devicePlatform,this.deviceType=e.deviceType,this.distributionTenant=e.distributionTenant,this.adexTagId=e.adexTagId,this.adexCustomerId=e.adexCustomerId,this.sessionInstanceId=(0,s.us)(),this.index=0,this.queue=new d.o,this.distributionTenant&&(this.queue.canProcessEvent=!0)}updateConsent(e,t,n){if("Joyn"!==n.initialContext.productName)return;let i=!!(e.audiCustomAudiences&&e.audiTargeting),a=Object.assign(Object.assign({},this.prepareGeneral(n)),{event_type:"consent_updated",adex:!!e.adex,adjust:!!e.adjust,amazon_audiences:!!(e.amazonCustomAudiences&&i),amazon_marketing:!!e.amazonAdvertising,apple:!!e.apple,braze:!!e.braze,facebook:!!e.metaPixel,google_ads_audiences:!!(e.googleAdsAudiences&&i),google_advertising_products:!!e.consentModeGoogleAdConversion,google_analytics:!!e.googleAnalytics,google_enhanced_audiences:!!(e.googleEnhancedAudiences&&i),meta_custom_audiences:!!(e.metaCustomAudiences&&i),microsoft_custom_audiences:!!(e.microsoftCustomAudiences&&i),netid_purpose:!!e.netID,reddit:!!e.reddit,tcstring:t,tiktok:!!e.tiktok,tiktok_custom_audiences:!!(e.tiktokCustomAudiences&&i)});return this.adexTagId&&this.adexCustomerId&&e.adex?(0,o.m)(`https://dmp.theadex.com/d/${this.adexCustomerId}/${this.adexTagId}/s/adex.js`).then(e=>(a.adex_id=e,this.sendRequest(a,`v3/${a.event_type}`))):this.sendRequest(a,`v3/${a.event_type}`)}updateUserContext(e){e.joynAccessToken&&(this.joynAccessToken=e.joynAccessToken,this.queue.canProcessEvent=!0)}trackScreen(e,t,n){var i,s;if("Joyn"!==n.initialContext.productName){let e="Collection Overview"===n.screenName?"Topic Overview":n.screenName,r=e?"Topic Overview"===e?"Overview":a[e]:void 0,o={asset_id:null==t?void 0:t.assetId,topic:null==t?void 0:t.context,event_type:"screen_viewed",media_id:null==t?void 0:t.mediaId,livestream_id:null==t?void 0:t.livestreamId,producer_version:l,client_time:Date.now(),device_platform:this.devicePlatform,device_type:this.deviceType,distribution_tenant:this.distributionTenant,session_instance_id:this.sessionInstanceId,session_installation_id:n.initialContext.sessionInstallationId,index:this.getIndex(),url:null==(i=null==window?void 0:window.location)?void 0:i.href,referrer_url:null==(s=globalThis.document)?void 0:s.referrer,app_version:n.initialContext.appVersion,app_build_number:n.initialContext.appBuildNumber,screen_group:r,screen_name:e};return this.sendRequest(o,`v2/${o.event_type}`)}let r=Object.assign(Object.assign({},this.prepareGeneral(n)),{asset_id:null==t?void 0:t.assetId,context:null==t?void 0:t.context,event_type:"screen_viewed",media_id:null==t?void 0:t.mediaId});return this.sendRequest(r,`v3/${r.event_type}`)}trackEvent(e,t,n){if("Joyn"!==n.initialContext.productName)return;let i=this.prepareEventPayload(e,t);if(i)return this.sendRequest(Object.assign(Object.assign({},this.prepareGeneral(n)),i),`v3/${i.event_type}`)}prepareEventPayload(e,t){switch(e){case"Action Happened":return{event_type:"action_happened",action_type:t.actionType,action_payload:t.actionPayload};case"Application Opened":return{event_type:"application_opened"};case"Applied Filter":return{event_type:"applied_filter",filter:t.filter,total_count:t.totalCount};case"Asset Selected":return{asset_id:t.assetId,element_label:t.elementLabel,event_type:"asset_selected",lane_label:t.laneLabel,lane_position:t.lanePosition,lane_type:t.laneType,target_screen_name:t.targetScreenName,teaser_position:t.teaserPosition,teasers_count:t.teasersCount};case"Bookmark Set":return{asset_id:t.assetId,bookmark_type:t.bookmarkType,event_type:"bookmark_set",element_label:t.elementLabel,livestream_id:t.livestreamId,media_id:t.mediaId};case"Bookmark Unset":return{asset_id:t.assetId,bookmark_type:t.bookmarkType,event_type:"bookmark_unset",element_label:t.elementLabel,livestream_id:t.livestreamId,media_id:t.mediaId};case"Clickthrough Selected":return{element_label:t.elementLabel,event_type:"clickthrough_selected",lane_label:t.laneLabel,lane_position:t.lanePosition,lane_type:t.laneType,target_screen_name:t.targetScreenName,teaser_position:t.teaserPosition,teasers_count:t.teasersCount};case"Error":return{error_cluster:t.errorCluster,error_detail:t.errorDetail,error_id:t.errorId,error_items:t.errorItems,error_label:t.errorLabel,error_type:t.errorType,event_type:"error"};case"Experiment Impression":return{bucketing_id:t.bucketingId,event_type:"experiment_impression",experiment:t.experiment,variant:t.variant};case"Metric":return{event_type:"metric",metric_items:t.metricItems};case"Navigation Selected":return{element_label:t.elementLabel,event_type:"navigation_selected",target_screen_name:t.targetScreenName};case"Order Completed":return{event_type:"order_completed",order_id:t.orderId,price:t.price,product_id:t.productId};case"Reminder Set":return{asset_id:t.assetId,element_label:t.elementLabel,event_type:"reminder_set",lane_label:t.laneLabel,lane_position:t.lanePosition,lane_type:t.laneType,livestream_id:t.livestreamId,reminder_time:t.reminderTime,teaser_position:t.teaserPosition,teasers_count:t.teasersCount,use_braze_push:t.useBrazePush};case"Reminder Unset":return{asset_id:t.assetId,element_label:t.elementLabel,event_type:"reminder_unset",lane_label:t.laneLabel,lane_position:t.lanePosition,lane_type:t.laneType,livestream_id:t.livestreamId,reminder_time:t.reminderTime,teaser_position:t.teaserPosition,teasers_count:t.teasersCount,use_braze_push:t.useBrazePush};case"Search Result Displayed":return{event_type:"search_result_displayed",search_term:t.searchTerm,total_count:t.totalCount};case"Video Selected":return{element_label:t.elementLabel,event_type:"video_selected",lane_label:t.laneLabel,lane_position:t.lanePosition,lane_type:t.laneType,livestream_id:t.livestreamId,media_id:t.mediaId,target_screen_name:t.targetScreenName,teaser_position:t.teaserPosition,teasers_count:t.teasersCount};case"Teasers Impression":return{element_label:t.elementLabel,event_type:"teasers_impression",lane_label:t.laneLabel,lane_position:t.lanePosition,lane_type:t.laneType,lane_interaction_type:t.laneInteractionType,teasers_count:t.teasersCount,teasers:t.teasers.map(e=>({asset_id:e.assetId,livestream_id:e.livestreamId,media_id:e.mediaId,teaser_position:e.teaserPosition}))}}}prepareGeneral(e){var t,n;let i={app_build_number:e.initialContext.appBuildNumber,app_version:e.initialContext.appVersion,client_time:Date.now(),device_platform:this.devicePlatform,device_type:this.deviceType,distribution_tenant:this.distributionTenant,index:this.getIndex(),referrer_url:null==(t=globalThis.document)?void 0:t.referrer,screen_group:e.screenName?a[e.screenName]:void 0,screen_name:e.screenName,session_installation_id:e.initialContext.sessionInstallationId,session_instance_id:this.sessionInstanceId,url:null==(n=null==window?void 0:window.location)?void 0:n.href};return["kepler","ott"].includes(this.devicePlatform)&&(i.device_installer_store=e.initialContext.deviceInstallerStore,i.device_manufacturer=e.initialContext.deviceManufacturer,i.device_model=e.initialContext.deviceModel,i.device_os_name=e.initialContext.deviceOsName,i.device_os_version=e.initialContext.deviceOsVersion),i}getIndex(){let e=this.index;return this.index++,e}sendRequest(e,t,n){return this.enqueue(()=>{let i=new r(`${this.endpoint}/${t}`);if(n){let e=`Bearer ${n}`;i.setHeaders([r.ContentTypeJson,["Authorization",e]])}else this.joynAccessToken&&i.setHeaders([r.ContentTypeJson,["Authorization",this.joynAccessToken]]);return i.send(r.POST,JSON.stringify(e))})}enqueue(e){return this.queue.canProcessEvent?e():this.queue.add(e)}}},15530:(e,t,n)=>{n.d(t,{C:()=>i});let i=["Joyn","Joyn BTS","Joyn Newstime","Joyn Ran"]},19487:(e,t,n)=>{n.d(t,{k:()=>s});var i=n(21396);class a{#e;#y;#i=!1;constructor(e,t){this.#e=e,this.#y=t,this.#h()}handleEvent(e){if(this.#i)return;let{type:t}=e;t===i.n8.CONTENT_START&&window.etMapper?.trackMedia("Lifecycle Play",this.#y),t===i.n8.CONTENT_IMPRESSION&&window.etMapper?.trackMedia("Content Begin",this.#y),t===i.n8.AD_IMPRESSION&&window.etMapper?.trackMedia("Ad Begin",this.#y),t===i.n8.CONTENT_STOP&&this.destroy()}#h(){let e=this.#e;e.addEventListener(i.n8.CONTENT_START,this),e.addEventListener(i.n8.CONTENT_IMPRESSION,this),e.addEventListener(i.n8.AD_IMPRESSION,this),e.addEventListener(i.n8.CONTENT_STOP,this)}destroy(){if(this.#i)return;this.#i=!0;let e=this.#e;e.removeEventListener(i.n8.CONTENT_START,this),e.removeEventListener(i.n8.CONTENT_IMPRESSION,this),e.removeEventListener(i.n8.AD_IMPRESSION,this),e.removeEventListener(i.n8.CONTENT_STOP,this)}}let s=e=>{let t,n=n=>{t&&(t.destroy(),t=void 0);let{content:s}=e;if(!s)return;let{id:r="",metadata:o}=n.detail.source,d=o?.entitlementToken,l=void 0===s.duration&&void 0===e.duration?void 0:Math.floor(void 0===s.duration?e.duration:s.duration);
1t=new a(e,function(e,t,n,a){let s=e.additionalIds?.originId,r=e.sources?.[0].playbackMode===i.LS.LIVE;return{ignoreEtWebProviders:!0,playerId:"OMNIPLAYER-WEB",currentContentResource:{contentId:(r?s||e.id:n)??"",contentType:e.programType,contentResourceMetadata:{brandName:e.channel?.name||"",contentType:e.programType,episodeNumber:e.show?.episodeNumber,genres:e.genre?[e.genre]:[],seasonNumber:e.show?.seasonNumber,seriesTitle:e.show?.name||"",tvShowId:e.show?.id||""}},entitlementToken:t??"",duration:a,isLivestream:r}}(s,d,r,l))};return e.addEventListener(i.n8.CONTENT_SELECT,n),()=>{e.removeEventListener(i.n8.CONTENT_SELECT,n),t?.destroy(),t=void 0}}},20015:(e,t,n)=>{n.d(t,{U:()=>o});var i=n(83710),a=n(88024);let s=[60,120,180,240,300],r=[10,20,30,40,50,60,70,80,90];class o{constructor(e){this.Lifecycle=class{constructor(e){this.parent=e,this.liveStepsSent=[],this.durationSteps=[]}startLifecycle(e,t,n){return this.parent.enqueue(()=>(this.liveStepsSent=[],this.sendContentEvent("lifecycle_start",0,e,t,n)))}startContent(e,t,n,i){return this.parent.enqueue(()=>("live"!==t.type&&(this.durationSteps=this.determineDurationSteps(t.duration)),this.sendContentEvent("content_begin",e,t,n,i,{cm_video_start:1})))}endContent(e,t,n,i){return this.parent.enqueue(()=>this.sendContentEvent("content_complete",e,t,n,i))}abortContent(e,t,n,i){return this.parent.enqueue(()=>this.sendContentEvent("lifecycle_abort",e,t,n,i))}resumeContent(e,t,n,i){return this.parent.enqueue(()=>this.sendContentEvent("resume",e,t,n,i))}pauseContent(e,t,n,i){return this.parent.enqueue(()=>this.sendContentEvent("pause",e,t,n,i))}endSeekingContent(e,t,n,i){return this.parent.enqueue(()=>("live"!==t.type&&(this.durationSteps=this.determineDurationSteps(t.duration)),this.sendContentEvent("seeked",e,t,n,i)))}updatePositionContent(e,t,n,i){return this.parent.enqueue(()=>{if("live"===t.type&&this.isValidLiveStep(i))return this.liveStepsSent.push(i.content),this.sendContentEvent("position_change",e,t,n,i);{let a=this.checkIfPositionMatchesDurationSteps(e);if(a)return this.durationSteps=this.removeStepFromDurationStep(a),this.sendContentEvent(`video_${a}`,e,t,n,i)}return Promise.resolve()})}startAdRoll(e,t,n,i,a){return this.parent.enqueue(()=>this.sendAdEvent("adroll_start",0,e,t,n,i))}endAdRoll(e,t,n,i,a){return this.parent.enqueue(()=>this.sendAdEvent("adroll_end",0,e,t,n,i))}startAd(e,t,n,i,a){return this.parent.enqueue(()=>this.sendAdEvent("ad_begin",0,e,t,n,i))}endAd(e,t,n,i,a,s){return this.parent.enqueue(()=>this.sendAdEvent("ad_complete",e,t,n,i,a))}sendContentEvent(e,t,n,i,a,s={}){return new Promise(r=>{window.gtag("event",e,Object.assign(Object.assign(Object.assign(Object.assign({},this.parent.prepareGeneral(i)),this.prepareContentParameters(t,n,i,a)),s),{event_callback:()=>{r()}}))})}sendAdEvent(e,t,n,i,a,s,r={}){return new Promise(o=>{window.gtag("event",e,Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},this.parent.prepareGeneral(a)),this.prepareContentParameters(t,i,a,s)),{roll_name:n.adRollType,roll_index:n.adRollSlot,ad_id:n.adId,ad_duration:n.adDuration,ad_position:n.adSlot}),r),{event_callback:()=>{o()}}))})}isValidLiveStep(e){let t=e.content;return(s.indexOf(t)>-1||t%300==0)&&-1===this.liveStepsSent.indexOf(t)&&0!==t}determineDurationSteps(e){return r.map(t=>({step:t,value:Math.round(e/100*t)}))}checkIfPositionMatchesDurationSteps(e){let t=this.durationSteps.find(t=>t.value<=e);return t?t.step:null}removeStepFromDurationStep(e){return this.durationSteps.filter(t=>t.step!==e)}prepareContentParameters(e,t,n,i){return{video_type:null==t?void 0:t.type,video_format:null==t?void 0:t.assetTitle,video_format_id:null==t?void 0:t.assetId,brand_title:null==t?void 0:t.brandTitle,content_title:null==t?void 0:t.mediaTitle,content_id:null==t?void 0:t.mediaId,episode_number:null==t?void 0:t.episodeNumber,season_number:null==t?void 0:t.seasonNumber,content_duration:null==t?void 0:t.duration,position:e,content_viewtime:i.content,ad_viewtime:i.ad,total_viewtime:i.ad+i.content}}},this.accountId=e.accountId,this.queue=new a.o}updateConsent(e,t,n){if(e.googleAnalytics)return(0,i.k0)(`https://www.googletagmanager.com/gtag/js?i
1d=${this.accountId}`,"gtag").then(t=>{if(!t){window.dataLayer=globalThis.dataLayer||[],window.gtag=function(){window.dataLayer.push(arguments)},window.gtag("consent","default",{ad_storage:"denied",ad_user_data:"denied",ad_personalization:"denied",analytics_storage:"denied"});let t=!!e.consentModeGoogleAdConversion,n=e.consentModeConversionLinker&&e.consentModeDv360Floodlight&&e.consentModeGoogleAds&&t&&e.consentModeGoogleAdsRemarketing&&e.consentModeGoogleCampaignManager&&e.consentModeSearchAds360?"granted":"denied";window.gtag("consent","update",{ad_storage:n,ad_user_data:n,ad_personalization:n,analytics_storage:e.googleAnalytics?"granted":"denied"}),window.gtag("js",new Date),t||globalThis.gtag("set","allow_google_signals",!1),globalThis.gtag("config",this.accountId,{send_page_view:!1})}this.queue.canProcessEvent=!0,this.queue.shouldTrack=!0,this.queue.flush()});this.queue.shouldTrack=!1}trackScreen(e,t,n){return this.enqueue(()=>new Promise(e=>{window.gtag("event","page_view",Object.assign(Object.assign({},this.prepareGeneral(n)),{event_callback:()=>{e()}}))}))}trackEvent(e,t,n){return this.enqueue(()=>{switch(e){case"Action Happened":return this.trackActionHappened(e,t,n);case"Asset Selected":return this.trackAssetSelected(e,t,n);case"Clickthrough Selected":return this.trackClickthroughSelected(e,t,n);case"Navigation Selected":return this.trackNavigationSelected(e,t,n);case"Video Selected":return this.trackVideoSelected(e,t,n)}})}trackActionHappened(e,t,n){return new Promise(e=>{let i=`action_happened_${t.actionType}`;window.gtag("event",i,Object.assign(Object.assign(Object.assign({},this.prepareGeneral(n)),t.actionPayload),{event_callback:()=>{e()}}))})}trackAssetSelected(e,t,n){return new Promise(e=>{window.gtag("event","asset_selected",Object.assign(Object.assign(Object.assign(Object.assign({},this.prepareGeneral(n)),{asset_id:t.assetId,element_label:t.elementLabel,lane_label:t.laneLabel,lane_position:t.lanePosition,lane_type:t.laneType,target_screen_name:t.targetScreenName,teaser_position:t.teaserPosition,teasers_count:t.teasersCount}),this.flattenExtraData(t.extraData)),{event_callback:()=>{e()}}))})}trackClickthroughSelected(e,t,n){return new Promise(e=>{window.gtag("event","clickthrough_selected",Object.assign(Object.assign(Object.assign(Object.assign({},this.prepareGeneral(n)),{element_label:t.elementLabel,event_type:"clickthrough_selected",lane_label:t.laneLabel,lane_position:t.lanePosition,lane_type:t.laneType,target_screen_name:t.targetScreenName,teaser_position:t.teaserPosition,teasers_count:t.teasersCount}),this.flattenExtraData(t.extraData)),{event_callback:()=>{e()}}))})}trackNavigationSelected(e,t,n){return new Promise(e=>{window.gtag("event","navigation_selected",Object.assign(Object.assign(Object.assign(Object.assign({},this.prepareGeneral(n)),{element_label:t.elementLabel,target_screen_name:t.targetScreenName}),this.flattenExtraData(t.extraData)),{event_callback:()=>{e()}}))})}trackVideoSelected(e,t,n){return new Promise(e=>{window.gtag("event","video_selected",Object.assign(Object.assign(Object.assign(Object.assign({},this.prepareGeneral(n)),{element_label:t.elementLabel,event_type:"video_selected",lane_label:t.laneLabel,lane_position:t.lanePosition,lane_type:t.laneType,livestream_id:t.livestreamId,media_id:t.mediaId,target_screen_name:t.targetScreenName,teaser_position:t.teaserPosition,teasers_count:t.teasersCount,type:t.type}),this.flattenExtraData(t.extraData)),{event_callback:()=>{e()}}))})}flattenExtraData(e){return e?Object.entries(e).reduce((e,[t,n])=>(e[`extra_${t}`]=n,e),{}):{}}enqueue(e){return this.queue.shouldTrack?this.queue.canProcessEvent?e():this.queue.add(e):Promise.resolve()}prepareGeneral(e){var t,n,i,a,s,r,o,d,l,u;return Object.assign({asset_id:null==(t=null==e?void 0:e.screenPayload)?void 0:t.assetId,asset_title:null==(n=null==e?void 0:e.screenPayload)?void 0:n.assetTitle,context:null==(i=null==e?void 0:e.screenPayload)?void 0:i.context,livestream_id:null==(a=null==e?void 0:e.screenPayload)?void 0:a.livestreamId,media_id:null==(s=null==e?void 0:e.screenPayload)?void 0:s.mediaId,media_title:null==(r=null==e?void 0:e.screenPayload)?void 0:r.mediaTitle,page_location:null==(o=null==window?void 0:window.location)?void 0:o.href,page_title:null==(d=globalThis.document)?void 0:d.title,screen_name:null==e?void 0:e.screenName,user_agent:null==(l=null==window?void 0:window.navigator)?void 0:l.userAgent},this.flattenExtraData(null==(u=null==e?void 0:e.screenPayload)?void 0:u.extraData))}}},21396:(e,t,n)=>{var i,a,s,r,o,d,l,u,c,h,p,m,g,v,E,y,_,A,T,I,f,P,N,C,S,b,O,M,R,w,L,D,k,x,U,F,B,j,q,V;function G(e){if("provider"in e)return e;let t=e.sources?.some(e=>e.mimetype===L.JOYN);return{id:e.id||"",provider:t?"joyn":"external",item:e}}n.d(t,{$F:()=>L,LS:()=>D,MY:()=>S,Qq:()=>$,eF:()=>P,eM:()=>H,hl:()=>k,iB:()=>q,lZ:()=>G,n8:()=>b}),(i=f||(f={})).DEFAULT="turbo-integration",i.SCRIPT="turbo-script",i.IFRAME="turbo-iframe",i.FULLPAGE="turbo-fullpage",i.AMP_VIDEO_IFRAME="turbo-amp-video-iframe",i.AMP_I
1FRAME="turbo-amp-iframe",(a=P||(P={})).PLAYER_CONFIG="application/player-config+json",a.PLAYER_CONFIG_LEGACY_V2="application/integration-configs+json",a.PLAYER_CONFIG_LEGACY_V1="application/glomex-integration-configs+json",a.EXTERNAL_MEDIA_ITEM="application/external-media-item+json",a.EXTERNAL_MEDIA_ITEM_LEGACY="application/glomex-external-media-item+json";let H="turbo-player";function $(e){let t=t=>{if(!1===e.stylesUrl)return"";if(null!=e.stylesUrl)return e.stylesUrl.replace("{id}",t);if(!e.moduleUrl)return"";try{let n=new URL(e.moduleUrl,window.location.href).origin;return`${n}/config/${t}/styles.css`}catch{throw Error(`Unable to resolve origin from moduleUrl "${e.moduleUrl}". Provide an absolute moduleUrl or set stylesUrl explicitly.`)}};return{getComponentName:()=>e.tagName,getCssUrl:t,loadComponent:()=>{e.moduleUrl&&function(e,t){if(window.customElements.get(e))return;let n=document.createElement("script");n.innerText=`import('${t}');`,n.type="module",(document.head||document.body||document).appendChild(n)}(e.tagName,e.moduleUrl)},loadStyles:(e,n)=>{let i=t(e);i&&function(e,t,n=document){if(!t)return;let i=t.replace("{id}",e);if(n.querySelector(`link[href="${i}"]`))return;let a=(n instanceof ShadowRoot?n.ownerDocument:n).createElement("link");a.rel="stylesheet",a.href=i,n instanceof ShadowRoot?n.appendChild(a):(n.head||n.body||n).appendChild(a)}(e,i,n)},getHostContext:async()=>{await customElements.whenDefined(e.tagName);let t=customElements.get(e.tagName);if(!t?.hostContext)throw Error(`hostContext not available on ${e.tagName} element`);return t.hostContext}}}(s=N||(N={})).NET_ID="netId",s.PPID="ppid",s.UTIQ_ID="utiqId",s.LIVERAMP_ID="liverampId",s.PAIR_ID="pairId",s.ATS_DIRECT="atsDirect",s.SHARED_ID="sharedId",s.THE_ADEX_ID="theAdexId",s.ID5_ID="id5Id",s.CRITEO_ID="criteoId",s.LOTAME_PANORAMA_ID="lotamePanoramaId",s.UNIFIED_ID2="unifiedId2Id",s.EU_ID="euId",s.YIELDLAB_ID="yieldlabId",(r=C||(C={})).AAID="aaid",r.AFAI="afai",r.ASIA="asia",r.ASID="asid",r.TIFA="tifa",r.VAID="vaid",r.IDFA="idfa",r.IDFV="idfv",r.LGUDID="lgudid",r.MSAI="msai",r.OAID="oaid",r.PSNAI="psnai",r.RIDA="rida",r.VIDA="vida",r.WAID="waid",(o=S||(S={})).HIDDEN="hidden",o.INLINE="inline",o.DOCK="dock",o.LIGHTBOX="lightbox",o.LIGHTBOX_EXTERNAL="lightbox-external",o.FULLSCREEN="fullscreen",o.AMP_DOCK="amp-dock",(d=b||(b={})).READY="ready",d.INTEGRATION_CREATE="integrationcreate",d.INTEGRATION_ABORT="integrationabort",d.INTEGRATION_AD_AVAILABLE="integrationadavailable",d.INTEGRATION_PASSBACK="integrationpassback",d.INTEGRATION_IMPRESSION="integrationimpression",d.USER_UPDATE_CONSENT="userupdateconsent",d.PLAYLIST_UPDATE="playlistupdate",d.PLAYER_SET_PRESENTATION_MODE="playersetpresentationmode",d.CONTENT_SELECT="contentselect",d.CONTENT_PROGRAM_CHANGED="contentprogramchanged",d.CONTENT_START="contentstart",d.CONTENT_IMPRESSION="contentimpression",d.CONTENT_BUFFERING_START="contentbufferingstart",d.CONTENT_BUFFERING_END="contentbufferingend",d.CONTENT_STOP="contentstop",d.CONTENT_SUSPEND="contentsuspend",d.CONTENT_ERROR="contenterror",d.CONTENT_API_SCRIPT_WARN="contentapiscriptwarn",d.CONTENT_MARKER_REACHED="contentmarkerreached",d.TEASER_IMPRESSION="teaserimpression",d.TEASER_CLICK="teaserclick",d.CONTENT_TIME_UPDATE="timeupdate",d.CONTENT_SEEKING="seeking",d.CONTENT_SEEKED="seeked",d.CONTENT_PLAY="play",d.CONTENT_PAUSE="pause",d.CONTENT_VOLUME_CHANGE="volumechange",d.CONTENT_RATECHANGE="ratechange",d.CONTENT_ENDED="ended",d.AD_BREAK_REQUEST="adbreakrequest",d.AD_BREAK_REQUEST_ERROR="adbreakrequesterror",d.AD_LOADED="adloaded",d.AD_IMPRESSION="adimpression",d.AD_BUFFERING_START="adbufferingstart",d.AD_BUFFERING_END="adbufferingend",d.AD_TIME_UPDATE="adtimeupdate",d.AD_VOLUME_CHANGE="advolumechange",d.AD_PAUSED="adpaused",d.AD_RESUMED="adresumed",d.AD_CLICK="adclick",d.AD_SKIPPED="adskipped",d.AD_COMPLETE="adcomplete",d.AD_VIEWABLE_50_BY_2="adviewable50by2",d.AD_VIEWABLE_100_BY_15="adviewable100by15",d.AD_ERROR="aderror",d.UI_INTERACTION="uiinteraction",(l=O||(O={})).TIME_IN_SECONDS="time",l.PERCENT="percent",l.TIME_IN_SECONDS_RECURRING="timeRecurring",(u=M||(M={})).PREROLL="preroll",u.MIDROLL="midroll",u.POSTROLL="postroll",u.FIRST_QUARTILE="contentFirstQuartile",u.MIDPOINT="contentMidpoint",u.THIRD_QUARTILE="contentThirdQuartile",u.COMPLETE="contentComplete",u.STILL_INTERESTING="stillInteresting",u.REQUEST_RECOMMENDATIONS="requestRecommendations",(c=R||(R={})).NOT_FOUND="NotFound",c.FORBIDDEN="Forbidden",c.HIDDEN="Hidden",c.NO_CONTENT="NoContent",c.GENERIC="Generic",(h=w||(w={})).NOT_FOUND="NotFound",h.NOT_AVAILABLE="NotAvailable",h.GEOBLOCKED="Geoblocked",h.YOUTH_PROTECTED="YouthProtected",h.TERMINATED="Terminated",h.EXPIRED="Expired",h.LOGIN_REQUIRED="LoginRequired",h.HIGHER_TIER_ACCOUNT_REQUIRED="HigherTierAccountRequired",h.
1VPN_DETECTED="VpnDetected",h.AGE_VERIFICATION_REQUIRED="AgeVerificationRequired",h.PIN_REQUIRED="PinRequired",h.INVALID_PIN="InvalidPin",h.GENERIC="Generic",(p=L||(L={})).HLS="application/vnd.apple.mpegurl",p.HLS_LEGACY="application/x-mpegURL",p.DASH="application/dash+xml",p.MP4="video/mp4",p.OGG="video/ogg",p.WEBM="video/webm",p.MP3="audio/mp3",p.AAC="audio/aac",p.WAV="audio/wav",p.OGG_AUDIO="audio/ogg",p.MPEG_AUDIO="audio/mpeg",p.DYNAMIC_CONTENT="application/x-turbo-dynamic-content",p.JOYN="application/x-joyn-source",(m=D||(D={})).LIVE="live",m.VOD="vod",m.INTERACTIVE="interactive",m.EMBED="embed",(g=k||(k={})).COMPILATION="compilation",g.CLIP="clip",g.INTERACTIVE="interactive",g.LIVE_ON_DEMAND="live-on-demand",g.LIVE="live",g.MOVIE="movie",g.SERIES="series",g.SPORTS_MATCH="sports-match",g.TRAILER="trailer",(v=x||(x={})).ANONYMOUS="anonymous",v.REGISTERED="registered",v.PAID="paid",(E=U||(U={})).FAIRPLAY="com.apple.fps",E.WIDEVINE="com.widevine.alpha",E.PLAYREADY="com.microsoft.playready",(y=F||(F={})).PREROLL="preroll",y.MIDROLL="midroll",y.POSTROLL="postroll",y.OVERLAY="overlay",(_=B||(B={})).LINEAR="linear",_.OVERLAY="overlay",_.CUTIN="cutin",_.PAUSE="pause",(A=j||(j={})).PRE_CLICK="pre-click-to-play",A.CLICK="click-to-play",A.AUTOPLAY_SCROLL="autoplay-scroll",A.AUTOPLAY_SCROLL_OUT="autoplay-scroll-out",A.CLICK_NEXT="click-to-play-next",A.CLICK_REPLAY="click-to-play-replay",A.AUTOPLAY_NEXT="autoplay-next",(T=q||(q={})).CLEAR_PLAYLIST="clearPlaylist",T.SELECT_PLAYLIST_ITEM="selectPlaylistItem",T.ENDED="ended",T.CONTENT_ERROR="contentError",T.API_STOP="apiStop",T.LIVESTREAM_STOP="livestreamStop",T.LIVESTREAM_NOT_STARTED="livestreamNotStarted",T.PAGE_HIDE="pageHide",T.BEFORE_UNLOAD="beforeUnload",(I=V||(V={})).TEASER="teaser",I.ENDSCREEN_RECOMMENDATION="endscreen-recommendation",I.ENDSCREEN_REPLAY="endscreen-replay",I.CAROUSEL="carousel",I.GRID="grid"},25218:(e,t,n)=>{n.d(t,{Y:()=>c});var i=n(92568),a=n(21396),s=n(37536),{version:r}={name:"@turbo-player/integration-analytics",version:"1.1578.1",description:"Analytics integrations for the turbo player",keywords:["video","player","streaming","media-player","web-player","analytics","npaw","youbora","nielsen","comscore","sensic"],type:"module",sideEffects:!1,exports:{"./npaw":{types:"./dist/npaw/index.d.ts",import:"./dist/npaw/index.js"},"./comscore":{types:"./dist/comscore/index.d.ts",import:"./dist/comscore/index.js"},"./sensic":{types:"./dist/sensic/index.d.ts",import:"./dist/sensic/index.js"},"./nielsen":{types:"./dist/nielsen/index.d.ts",import:"./dist/nielsen/index.js"}},files:["LICENSE.md","dist/**/*.js","dist/**/*.d.ts"],"//":"tsup is used instead of tsc to ensure .js extensions in imports for ESM consumers",scripts:{prepack:"npm run build",build:"tsup",lint:"tsc --noEmit && biome ci",watch:"tsup --watch"},dependencies:{"@comscore/analytics":"^7.13.2","@turbo-player/integration-web-component":"1.1578.1","npaw-plugin":"^7.3.18"},devDependencies:{"@biomejs/biome":"catalog:",tsup:"catalog:",typescript:"catalog:"},publishConfig:{access:"public"},license:"MIT",gitHead:"a5e69ccd82541840aea427fc6192e4e9bab063be"},o=class{_refs;getVersion(){return`turbo-ad-v${r}`}getPlayerVersion(){return this.player.version}getPlayhead(){return this.player.adCurrentTime}getTitle(){return this.player.currentAd?.title||""}getTitle2(){return this.player.currentAd?.advertiserName||void 0}getCreativeId(){return this.player.currentAd?.creativeId||null}getProvider(){return this.player.currentAd?.adSystem||null}getAdInsertionType(){return"client-side"}getDuration(){return(0,i.h)(this.player)??null}getBreaksTime(){return null}getResource(){return this.player.currentAd?.adUrl||"unknown"}getGivenAds(){return this.player.currentAd?.totalAds||null}getAudioEnabled(){return!this.player.adMuted}getIsSkippable(){return this.player.currentAd?.skippable||!1}getIsFullscreen(){return"fullscreen"===this.player.presentationMode}getIsVisible(){return this.getNpawUtils().calculateAdViewability(this.player)}getPosition(){return this.player.currentAd?.breakName==="preroll"?this.getNpawReference().Constants.AdPosition.Preroll:this.player.currentAd?.breakName==="midroll"?this.getNpawReference().Constants.AdPosition.Midroll:this.player.currentAd?.breakName==="postroll"?this.getNpawReference().Constants.AdPosition.Postroll:null}registerListeners(){for(let e of(this._refs={[a.n8.AD_IMPRESSION]:this.impressionListener.bind(this),[a.n8.AD_RESUMED]:this.resumedListener.bind(this),[a.n8.AD_PAUSED]:this.pausedListener.bind(this),[a.n8.AD_BUFFERING_START]:this.bufferingStartListener.bind(this),[a.n8.AD_BUFFERING_END]:this.bufferingEndListener.bind(this),[a.n8.AD_CLICK]:this.clickListener.bind(this),[a.n8.AD_SKIPPED]:this.skippedListener.bind(this),[a.n8.AD_COMPLETE]:this.completeListener.bind(this),[a.n8.AD_ERROR]:this.errorListener.bind(this)},Object.keys(this._refs))){let t=this._refs?.[e];this.player.addEventListener(e,t)}}unregisterListeners(){for(let e of Object.keys(this._refs||{})){let t=this._refs?.[e];this.player.removeEventListener(e,t)}this._refs=void 0}_isSupportedAd(){return this.player.currentAd?.adFormat==="linear"}impressionListener(){this._isSupportedAd()&&(this.fireStart({},"impressionListener"),this.fireJoin({},"impressionListener"))}pausedListener(){this._isSupportedAd()&&this.firePause({},a.n8.AD_PAUSED)}resumedListener(){this._isSupportedAd()&&this.fireResume({},a.n8.AD_RESUMED)}bufferingStartListener(){this._isSupportedAd()&&this.fireBufferBegin({},!0,a.n8.AD_BUFFERING_START)}bufferingEndListener(){this._isSupportedAd()&&this.fireBufferEnd({},a.n8.AD_BUFFERING_END)}completeListener(){this._isSupportedAd()&&this.fireStop({},a.n8.AD_COMPLETE)}clickListener(){this._isSupportedAd()&&this.fireClick(this.player.currentAd?.clickThroughUrl||"")}skippedListener(){this._isSupportedAd()&&this.fireSkip()}errorListener(e){this._isSupportedAd()&&this.fireError(e.detail.error.code,e.detail.error.message)}};function d(e,t=e.currentEpgEntry){let n=e.content,i=e.source?.playbackMode===a.LS.LIVE,s=i?t?.name:n?.show?.name||n?.competition?.name||n?.compilation?.name,r=i?t?.title:n?.title;return(s?r&&r!==s?`${s} - ${r}`:s:r)||(i?t?.name||n?.title||n?.channel?.name:n?.title)}function l(e,t=e.currentEpgEntry){let n=e.content;return e.source?.playbackMode===a.LS.LIVE?t?.title:n?.title}var u=class{_refs;adsAdapters={npawTurboPlayerAdAdapter:o};getPlayerName(){return"turbo-player"}getVersion(){return`turbo-v${r}`}getPlayerVersion(){return this.player.version}getResource(){return this.player.source?.src||null}getTitle(){return d(this.player)||null}getDuration(){return this.player.duration}getPlayhead(){return this.getIsLive()?this.player.wallClockTime:this.player.currentTime}getPlayrate(){return this.player.playbackRate}getIsLive(){return this.player.source?.playbackMode===a.LS.LIVE}getBitrate(){return this.player.getVideoPlaybackQuality()?.bitrate||null}getLatency(){return this.player.getVideoPlaybackQuality()?.liveLatency}getRendition(){let{width:e,height:t,bandwidth:n}=this.player.getVideoPlaybackQuality()||{};return e&&t&&n?this.getNpawUtils().buildRenditionString(e,t,n):"unknown"}getThroughput(){return this.player.getVideoPlaybackQuality()?.throughput}getDroppedFrames(){return this.player.getVideoPlaybackQuality()?.droppedVideoFrames}getTotalBytes(){return this.player.getVideoPlaybackQuality()?.bytes||null}registerListeners(){for(let e of(this._refs={[a.n8.CONTENT_PLAY]:this.playListener.bind(this),[a.n8.CONTENT_PAUSE]:this.pauseListener.bind(this),[a.n8.CONTENT_SEEKING]:this.seekingListener.bind(this),[a.n8.CONTENT_SEEKED]:this.seekedListener.bind(this),[a.n8.CONTENT_BUFFERING_START]:this.contentBufferStart.bind(this),[a.n8.CONTENT_BUFFERING_END]:this.contentBufferEnd.bind(this),[a.n8.CONTENT_START]:this.contentStart.bind(this),[a.n8.CONTENT_IMPRESSION]:this.contentImpression.bind(this),[a.n8.CONTENT_STOP]:this.contentStop.bind(this),[a.n8.CONTENT_SUSPEND]:this.contentSuspend.bind(this),[a.n8.CONTENT_SELECT]:this.contentSelect.bind(this),[a.n8.CONTENT_ERROR]:this.contentError.bind(this)},Object.keys(this._refs))){let t=this._refs?.[e];this.player.addEventListener(e,t)}this.plugin.setAdsAdapter(this.getAdapterClass("npawTurboPlayerAdAdapter"),this.getVideo().getVideoKey())}unregisterListeners(){for(let e of Object.keys(this._refs||{})){let t=this._refs?.[e];this.player.removeEventListener(e,t)}this._refs=void 0,this.plugin.removeAdsAdapter(this.getVideo().getVideoKey())}contentStart(){let{options:e}=this.getVideo(),t=this.player.content,n=this.player.source,i=n?.mimetype===a.$F.DASH?"dash":n?.mimetype===a.$F.HLS?"hls":void 0;e["content.id"]=n?.id||t?.id,e["content.streamingProtocol"]=i,e["content.playbackType"]=n?.playbackMode,e["content.episodeTitle"]=l(this.player),e["content.season"]=t?.show?.seasonNumber,e["content.language"]=t?.language;let s=t?.channel?.name;s&&(e["content.channel"]=s);let r=t?.genre;r&&(e["content.genre"]=r),this.fireStart({},a.n8.CONTENT_START)}contentImpression(){this.fireJoin({},a.n8.CONTENT_IMPRESSION)}playListener(){this.fireResume({},a.n8.CONTENT_PLAY),this.plugin.getAdsAdapter().fireAdBreakStop({})}pauseListener(){this.firePause({},"pauseListener")}seekingListener(){this.fireSeekBegin({},!0,a.n8.CONTENT_SEEKING)}seekedListener(){this.fireSeekEnd({},a.n8.CONTENT_SEEKED)}contentBufferStart(){this.fireBufferBegin({},!0,a.n8.CONTENT_BUFFERING_START)}contentBufferEnd(){this.fireBufferEnd({},a.n8.CONTENT_BUFFERING_END)}contentStop(){this.fireStop({},a.n8.CONTENT_STOP)}contentSuspend(){this.fireStop({},a.n8.CONTENT_SUSPEND)}contentSelect(){this.fireStop({},a.n8.CONTENT_SELECT)}contentError(e){e.detail.recoverable?this.fireError(e.detail.error.code,e.detail.error.message,void 0,void 0,a.n8.CONTENT_ERROR):this.fireFatalError(e.detail.error.code,e.detail.error.message,void 0,void 0,a.n8.CONTENT_ERROR)}};let c=(e,t)=>{let{npawPlugin:n,destroy:i}=function(e,t){let{accountCode:n,appName:i,appVersion:r}=t,o=new s(n),c=e.hostContext;o.setAnalyticsOptions({"app.name":i||c?.get("appName")||a.eM,"app.releaseVersion":r||c?.get("appVersion")});let h=!1;c||i&&r||customElements.whenDefined(e.tagName.toLowerCase()).then(()=>{h||o.setAnalyticsOptions({"app.name":i||e.hostContext?.get("appName")||a.eM,"app.releaseVersion":r||e.hostContext?.get("appVersion")})});let p=()=>{let t=!!e.consent?.purposeConsents?.[1];o.setAnalyticsOptions({"user.obfuscateIp":!t,disableStorage:!t,...t?{}:{userId:void 0}})},m=t=>{let{detail:n}=t;o.setVideoOptions({"content.title":d(e,n),"content.episodeTitle":l(e,n)})};return o.registerAdapterFromClass(e,u),e.addEventListener(a.n8.USER_UPDATE_CONSENT,p),e.addEventListener(a.n8.CONTENT_PROGRAM_CHANGED,m),{npawPlugin:o,destroy(){h=!0,e.removeEventListener(a.n8.USER_UPDATE_CONSENT,p),e.removeEventListener(a.n8.CONTENT_PROGRAM_CHANGED,m),o?.destroy()}}}
1(e,{accountCode:t.accountCode,appName:t?.appName,appVersion:t?.appVersion}),r=t=>{let i=t.detail.source,a=i.metadata,s=!!e.consent?.purposeConsents?.["1"];n.setAnalyticsOptions({userId:s?a?.userId:void 0,profileId:s?a?.userId:void 0,"user.type":i.userTier,"device.id":a?.anonymousId}),n.setVideoOptions({"content.customDimension.1":a?.distributionTenant,"content.customDimension.3":a?.distributionTenant,"content.cdn":a?.deliveryNetwork,"content.type":e.content?.programType,"content.drm":a?.protectionSystem,"content.customDimension.19":a?.businessModel,"content.customDimension.20":a?.encryptionScheme})};return e.addEventListener(a.n8.CONTENT_SELECT,r),()=>{e.removeEventListener(a.n8.CONTENT_SELECT,r),i()}}},54948:(e,t,n)=>{n.d(t,{j:()=>s});var i=n(21396),a=[i.n8.CONTENT_START,i.n8.CONTENT_IMPRESSION,i.n8.CONTENT_PLAY,i.n8.CONTENT_PAUSE,i.n8.CONTENT_SEEKING,i.n8.CONTENT_SEEKED,i.n8.CONTENT_BUFFERING_START,i.n8.CONTENT_BUFFERING_END,i.n8.CONTENT_ENDED,i.n8.CONTENT_STOP,i.n8.CONTENT_SUSPEND,i.n8.CONTENT_TIME_UPDATE,i.n8.CONTENT_VOLUME_CHANGE,i.n8.PLAYER_SET_PRESENTATION_MODE,i.n8.AD_IMPRESSION,i.n8.AD_PAUSED,i.n8.AD_RESUMED,i.n8.AD_BUFFERING_START,i.n8.AD_BUFFERING_END,i.n8.AD_COMPLETE,i.n8.AD_SKIPPED,i.n8.AD_TIME_UPDATE,i.n8.AD_ERROR],s=class{integration;onWarn;#i=!1;#_=!1;#a=!1;#A=!1;#T;#I=[];#f=!1;constructor(e,t){for(let n of(this.integration=e,this.onWarn=t,this.#T=this.#P.bind(this),a))this.integration.addEventListener(n,this.#T)}get isStopped(){return this.#i}get isInAd(){return this.#_}get contentStarted(){return this.#a}markSdkReady(){for(let e of(this.#f=!0,this.#I))e();this.#I=[]}#N(e){this.#f?e():this.#I.push(e)}#P(e){if(this.#i)return;let t=this.#C(e);t&&this.#N(()=>{try{t()}catch(e){this.onWarn(e instanceof Error?e:Error(String(e)))}})}#C(e){switch(e.type){case i.n8.CONTENT_START:return()=>{this.#a=!0,this.onContentStart()};case i.n8.CONTENT_IMPRESSION:return()=>{this.#A=!0,this.onContentImpression()};case i.n8.CONTENT_PLAY:return()=>{this.#A&&(this.#_&&(this.onAdEnd(),this.#_=!1),this.onContentPlay())};case i.n8.CONTENT_PAUSE:return()=>{this.#A&&this.onContentPause()};case i.n8.CONTENT_SEEKING:return()=>{this.#A&&this.onContentSeeking()};case i.n8.CONTENT_SEEKED:return()=>{this.#A&&this.onContentSeeked()};case i.n8.CONTENT_BUFFERING_START:return()=>{this.#A&&this.onContentBufferingStart()};case i.n8.CONTENT_BUFFERING_END:return()=>{this.#A&&this.onContentBufferingEnd()};case i.n8.CONTENT_ENDED:return()=>{this.#A&&this.onContentEnded()};case i.n8.CONTENT_STOP:{let t=e.detail?.reason;return()=>this.destroy({skipOnDestroy:t===i.iB.ENDED})}case i.n8.CONTENT_SUSPEND:return()=>{this.#A&&this.onSuspend()};case i.n8.CONTENT_TIME_UPDATE:return()=>{this.#A&&this.onContentTimeUpdate()};case i.n8.CONTENT_VOLUME_CHANGE:return()=>this.onVolumeChange();case i.n8.PLAYER_SET_PRESENTATION_MODE:return()=>this.onPresentationModeChange();case i.n8.AD_IMPRESSION:return()=>{this.#S(this.integration.currentAd)&&(this.#_=!0,this.onAdImpression())};case i.n8.AD_PAUSED:return()=>{this.#_&&this.onAdPaused()};case i.n8.AD_RESUMED:return()=>{this.#_&&this.onAdResumed()};case i.n8.AD_BUFFERING_START:return()=>{this.#_&&this.onAdBufferingStart()};case i.n8.AD_BUFFERING_END:return()=>{this.#_&&this.onAdBufferingEnd()};case i.n8.AD_COMPLETE:case i.n8.AD_SKIPPED:case i.n8.AD_ERROR:return()=>{this.#_&&(this.onAdEnd(),this.#_=!1)};case i.n8.AD_TIME_UPDATE:return()=>{this.#_&&this.onAdTimeUpdate()};default:return}}onContentStart(){}onContentImpression(){}onContentPlay(){}onContentPause(){}onContentSeeking(){}onContentSeeked(){}onContentBufferingStart(){}onContentBufferingEnd(){}onContentEnded(){}onSuspend(){}onContentTimeUpdate(){}onVolumeChange(){}onPresentationModeChange(){}onAdImpression(){}onAdPaused(){}onAdResumed(){}onAdBufferingStart(){}onAdBufferingEnd(){}onAdEnd(){}onAdTimeUpdate(){}onDestroy(){}#S(e){return!!e&&"linear"===e.adFormat}destroy({skipOnDestroy:e=!1}={}){if(!this.#i)for(let t of(this.#i=!0,e||this.onDestroy(),a))this.integration.removeEventListener(t,this.#T)}}},68126:(e,t,n)=>{n.d(t,{H:()=>l});var i=n(54948),a=n(92568),s=n(21396),r=class extends i.j{#b;#O;#M;#R=!1;constructor(e,t,n){super(e,n),t.then(e=>{if(this.isStopped||!e)return;this.#b=e.analytics,this.#M=e.contentMetadata;let t=this.#w();this.#M.setMediaType(t),this.markSdkReady()})}onContentStart(){this.#b&&(this.#O=new this.#b.StreamingAnalytics,this.#O.createPlaybackSession(),this.#O.setMediaPlayerName("turbo-player"),this.#O.setMediaPlayerVersion(this.integration.version),this.#M&&this.#O.setMetadata(this.#M))}onContentImpression(){this.#b&&this.#O&&(this.#R&&(this.#M&&this.#O.setMetadata(this.#M),this.#R=!1),this.#L(),this.#O.notifyPlay())}onContentPlay(){this.#b&&this.#O&&(this.integration.seeking||(this.#R&&(this.#M&&this.#O.setMetadata(this.#M),this.#L(),this.#R=!1),this.#O.notifyPlay()))}onContentPause(){this.#O&&(this.integration.seeking||this.#O.notifyPause())}onContentSeeking(){this.#O&&this.#O.notifySeekStart()}onContentSeeked(){this.#O&&(this.#L(),this.integration.paused||this.#O.notifyPlay())}onContentBufferingStart(){this.#O&&(this.integration.seeking||this.#O.notifyBufferStart())}onContentBufferingEnd(){this.#O&&(this.integration.seeking||this.#O.notifyBufferStop())}onContentEnded(){this.#O&&this.#O.notifyEnd()}onAdImpression(){if(!this.#b||!this.#O)return;let e=this.integration.currentAd;if(!e)return;let t=this.#D(e.breakName),n=new this.#b.StreamingAnalytics.AdvertisementMetadata,i=e.universalAdIds?.[0]?.id||e.id;i&&n.setUniqueId(i);let s=(0,a.h)(this.integration);null!=s&&n.setLength(s),n.setMediaType(t),this.#M&&n.setRelatedContentMetadata(this.#M),this.#O.setMetadata(n),this.#O.notifyPlay()}onAdPaused(){this.#O&&this.isInAd&&this.#O.notifyPause()}onAdResumed(){this.#O&&this.isInAd&&this.#O.notifyPlay()}onAdBufferingStart(){this.#O&&this.isInAd&&this.#O.notifyBufferStart()}onAdBufferingEnd(){this.#O&&this.isInAd&&this.#O.notifyBufferStop()}onAdEnd(){this.#O&&(this.#O.notifyEnd(),this.#R=!0)}#L(){this.#O&&(this.#k?this.#x():this.#O.startFromPosition(Math.round(this.#U)))}#x(){if(!this.#O)return;let{start:e,end:t}=this.integration.seekRange;if(void 0===e||void 0===t)return;let n=Math.round((t-e)*1e3),i=Math.round((t-this.integration.currentTime)*1e3);this.#O.setDvrWindowLength(n),this.#O.startFromDvrWindowOffset(i)}get #k(){return this.integration.source?.playbackMode===s.LS.LIVE}get #F(){return this.integration.content}get #B(){let e=this.#F;return Math.floor(e?.duration===void 0?1e3*this.integration.duration:1e3*e.duration)}get #U(){return this.#k?1e3*this.integration.wallClockTime:1e3*this.integration.currentTime}#w(){let e=this.#b.StreamingAnalytics.ContentMetadata.ContentType;return this.#k?e.LIVE:this.#B>
1=6e5?e.LONG_FORM_ON_DEMAND:e.SHORT_FORM_ON_DEMAND}#D(e){let t=this.#b.StreamingAnalytics.AdvertisementMetadata.AdvertisementType;return this.#k?t.LIVE:"preroll"===e?t.ON_DEMAND_PRE_ROLL:"postroll"===e?t.ON_DEMAND_POST_ROLL:t.ON_DEMAND_MID_ROLL}onSuspend(){this.#O&&this.#O.notifyPause()}onDestroy(){this.#O&&this.contentStarted&&this.#O.notifyEnd()}};async function o(e){let{publisherId:t,debug:i}=e,a=await Promise.all([n.e(1911),n.e(8050)]).then(n.t.bind(n,76002,19)),s=globalThis.ns_,r=a||s?.analytics;if(!r)throw Error("Comscore analytics not available after dynamic import");if(0===r.configuration.getPartnerConfigurations().length){r.PlatformApi.setPlatformApi(r.PlatformApi.PlatformApis.WebBrowser);let e=new r.configuration.PublisherConfiguration({publisherId:t});r.configuration.addClient(e),i&&r.configuration.enableImplementationValidationMode(),r.start()}return r}let d={1:"8042",2:"8031",3:"8107",4:"8565",5:"8575",6:"8576",7:"0768",1e3:"0709",1001:void 0,1002:"0708",1158:"8730"},l=(e,t)=>{let{publisherId:n}=t,i=function(){let e=function(e){let t=`; ${document.cookie}`.split(`; ${e}=`);if(2===t.length)return t.pop()?.split(";").shift()}(u);if(!e){var t=e=[Date.now(),Math.floor(0x5f5e0ff*Math.random())+1e6].join("_");let n=new Date;n.setTime(n.getTime()+31536e7),document.cookie=`${u}=${t};expires=${n.toUTCString()};path=/`}return e}();return((e,t)=>{let n,i,{publisherId:a,debug:d,warnCallback:l,configureContentMetadata:u}=t,c=e=>{l?l(e):setTimeout(()=>{console.error(e)},0)},h=()=>{if(i&&(i.destroy(),i=void 0),!(()=>{let t=!!e.consent?.purposeConsents?.[1],n=!!e.consent?.vendorConsents?.[77];return t&&n})())return;let{content:l}=e;l&&(i=new r(e,(n||(n=o({publisherId:a,debug:d}).catch(e=>{c(e instanceof Error?e:Error(String(e)))}))).then(n=>{if(!n)return;let i=function(e,t){let{integration:n}=t,i=new e.StreamingAnalytics.ContentMetadata,a=n.content,r=n.source,o=r?.playbackMode===s.LS.LIVE,d=a?.additionalIds?.originId||a?.id||"",l=o?d:r?.id||d,u=o?d:a?.liveOnDemandChannel?.id,c=a?.show?.id||a?.competition?.id||a?.compilation?.id||a?.additionalIds?.originId||a?.id,h=a?.show?.name||a?.competition?.name||a?.compilation?.name||a?.title,p=Math.floor(a?.duration===void 0?1e3*n.duration:1e3*a.duration);if(i.setUniqueId(o&&u||l),i.setLength(o?0:p),!o&&h&&i.setProgramTitle(h),o?i.setProgramId("1"):c&&i.setProgramId(c),!o&&a?.title&&i.setEpisodeTitle(a.title),!o&&a?.show?.seasonNumber&&i.setEpisodeSeasonNumber(String(a.show.seasonNumber)),!o&&a?.show?.episodeNumber&&i.setEpisodeNumber(String(a.show.episodeNumber)),!o&&a?.additionalIds?.externalId&&i.setEpisodeId(a.additionalIds.externalId),!o&&a?.tvAirDate){let e=new Date(a.tvAirDate);i.setDateOfTvAiring(e.getUTCFullYear(),e.getUTCMonth()+1,e.getUTCDate()),i.setTimeOfProduction(e.getUTCHours(),e.getUTCMinutes())}if(!o&&a?.releaseDate){let e=new Date(a.releaseDate);i.setDateOfDigitalAiring(e.getUTCFullYear(),e.getUTCMonth()+1,e.getUTCDate())}return a?.channel?.name&&i.setStationTitle(a.channel.name),i.setPublisherName(t.publisherName),i.classifyAsCompleteEpisode(!o),i}(n,{integration:e,publisherName:t.publisherName});if(u&&(i=u(i)),null!=i)return{analytics:n,contentMetadata:i}}),c))};return e.addEventListener(s.n8.CONTENT_SELECT,h),()=>{e.removeEventListener(s.n8.CONTENT_SELECT,h),i?.destroy(),i=void 0}})(e,{...t,configureContentMetadata:t=>{let a=e.content,s=Number(a?.channel?.id)||0;if(!(s in d))return;let r=d[s];return r&&t.setStationCode(r),t.addCustomLabels({c2:n,cs_fpid:i,mp_login:3}),t}})},u="comscore_fp_id"},70467:(e,t,n)=>{n.d(t,{h:()=>l});var i=n(54948),a=n(92568),s=n(21396),r=class extends i.j{#j;#q;#V;#G;#k=!1;constructor(e,t,n,i,a){super(e,n),this.#q=i,this.#V=a,t.then(e=>{if(!this.isStopped){if(!e)return void this.onWarn(Error("Sensic SDK not available after initialization"));this.#j=e,this.markSdkReady()}})}onContentStart(){this.#j&&(this.#k=this.integration.source?.playbackMode===s.LS.LIVE,this.#G=this.#j.getAgent(this.#k?void 0:()=>this.#U))}onContentImpression(){this.#H(this.#U)}onContentPlay(){this.integration.seeking||this.#H(this.#U)}onContentPause(){this.integration.seeking||this.#$(this.#U)}onContentSeeking(){this.integration.paused||this.#$(this.#U)}onContentSeeked(){this.integration.paused||this.#H(this.#U)}onContentBufferingStart(){this.integration.seeking||this.#$(this.#U)}onContentBufferingEnd(){this.integration.seeking||this.#H(this.#U)}onContentEnded(){this.#$(this.#U)}onAdImpression(){this.#H(0)}onAdPaused(){this.#$(this.#Y)}onAdResumed(){this.#H(this.#Y)}onAdBufferingStart(){this.#$(this.#Y)}onAdBufferingEnd(){this.#H(this.#Y)}onAdEnd(){this.#$(this.#Y)}onPresentationModeChange(){this.#G&&this.#G.screen(this.#Q?"1":"0")}onVolumeChange(){this.#G&&this.#G.volume(this.#K.toString())}#H(e){if(!this.#G)return;let t=this.#q()??{},n=this.isInAd,i=n?"ad":"default",a=this.#V?this.#V():(()=>{let e=this.integration.source?.id||this.integration.content?.id||"";return n?`${e}-ad`:e})(),s={screen:this.#Q?"1":"0",volume:this.#K.toString()};
1if(this.#k&&!n){let n=Math.round(Date.now()-e);this.#G.playStreamLive(i,"",n,a,s,t)}else this.#G.playStreamOnDemand(i,a,e,s,t)}#$(e){this.#G&&this.#G.stop(this.#k?void 0:e)}get #U(){return this.#k?1e3*this.integration.wallClockTime:1e3*this.integration.currentTime}get #Y(){let e=this.integration.adCurrentTime;return(Number.isNaN(e)?0:e)*1e3}get #Q(){return this.integration.presentationMode===s.MY.FULLSCREEN}get #K(){return this.integration.muted?0:Math.round(100*this.integration.volume)}onSuspend(){this.#$(this.#U)}onDestroy(){this.#G&&this.#$(this.#U)}};function o(){return{}}let d={1:{web:"P7S1P4",tv:"P7S1P4"},2:{web:"P7S1P4",tv:"P7S1P4"},3:{web:"P7S1P4",tv:"P7S1P4"},4:{web:"P7S1P4",tv:"P7S1P4"},5:{web:"P7S1P4",tv:"P7S1P4"},6:{web:"P7S1P4",tv:"P7S1P4"},7:{web:"P7S1P4",tv:"P7S1P4"},101:{web:"P7S1P4",tv:"P7S1P4"},132:{web:"orf",tv:"ORF"},133:{web:"orf",tv:"ORF"},134:{web:"P7S1P4",tv:"P7S1P4"},185:{web:"orf",tv:"ORF"},186:{web:"orf",tv:"ORF"},1011:{web:"ServusTV",tv:"ServusTV"},1057:{web:"P7S1P4",tv:"P7S1P4"},1058:{web:"P7S1P4",tv:"P7S1P4"},1151:{web:"orf",tv:"ORF"},1287:{web:"orf",tv:"ORF"},1289:{web:"orf",tv:"ORF"},1290:{web:"orf",tv:"ORF"},1291:{web:"orf",tv:"ORF"},1292:{web:"orf",tv:"ORF"},1293:{web:"orf",tv:"ORF"},1294:{web:"orf",tv:"ORF"},1295:{web:"orf",tv:"ORF"}},l=(e,t)=>((e,t)=>{let n,i,{media:d,platform:l,country:u,logLevel:c,warnCallback:h}=t,p=`https://${u}-config.sensic.net/${"web"===l?"s2s-web.js":"ctv/s2s-web.js"}`,m=e=>{h?h(e):setTimeout(()=>{console.error(e)},0)},g=()=>{if(i&&(i.destroy(),i=void 0),!e.consent?.vendorConsents?.[758])return;let l=function(){let n="at"===u.toLowerCase()?function(e){let{integration:t}=e;return()=>{let e=t.content,n=t.source,i=n?.playbackMode===s.LS.LIVE,r=e?.channel?.name||"",o=e?.show?.id||e?.competition?.id||e?.compilation?.id||e?.additionalIds?.originId||e?.id,d=e?.show?.name||e?.competition?.name||e?.compilation?.name||e?.title,l=e?.duration===void 0?t.duration:e.duration,u=Math.floor(l)||"-1",c=i?e?.id:e?.liveOnDemandChannel?.id,h=i?e?.id:n?.id||e?.id,p=e?.title,m=e?.additionalIds?.externalId,g=t.currentAd,v=void 0!==g,E=(0,a.h)(t),y=null==E?"-1":Math.floor(E).toString();return{playerid:"",channel:r,deviceid:"WEB",cliptype:function({isAd:e,isLive:t,ad:n,content:i,contentDuration:a}){return e?n?.breakName||"":t?"Live":(i?.programType===s.hl.CLIP||i?.programType===s.hl.TRAILER)&&a<=1200?"Trailer":"Sendung"}({isAd:v,isLive:i,ad:g,content:e,contentDuration:l}),videoid:i?`${c}-24x7`:h||"",episodeid:i?"":m||"",playerduration:v?y:i?"-1":u.toString(),videoduration:v?y:i?"-1":u.toString(),episodeduration:v?y:i?"-1":u.toString(),videotitle:i?"":[d,p].filter(Boolean).join(" "),programname:i?"":d||"",tvshowid:i?"":o||""}}}({integration:e}):o;return()=>{let e=n();return t.buildCustomParams?t.buildCustomParams(e):e}}();null!=l()&&(i=new r(e,n||(n=(function(e){let t;var n=window,i=document,a="script",s="gfkS2s";if(n[s]||(n.gfkS2sConf=e,i.getElementById(s)))return Promise.resolve(n[s]);n[s]={},n[s].agents=[];let r=["playStreamLive","playLive","playStreamOnDemand","playVOD","stop","skip","screen","volume","impression"];return n.gfks=function(e,t,n){let i={queue:[],config:e,cb:n,pId:t};for(let e=0;e<r.length;e++){let t=r[e];i[t]=function(e,t,n){return(...i)=>{e.p=n(),e.queue.push({f:t,a:i})}}(i,t,n)}return i},n[s].getAgent=(t,i)=>{let a=new Proxy({a:new n.gfks(e,i||"",t||(()=>0))},{get(e,t){if("a"===t)return e.a;let n=e.a[t];return"function"==typeof n?(...t)=>n.apply(e.a,t):n}});return n[s].agents.push(a),a},t=e.url,new Promise((e,r)=>{let o=i.querySelector(`script[src="${t}"]`),d=o;o||((d=i.createElement(a)).async=!0,d.type="text/javascript",d.src=t,d.id=s);let l=i.getElementsByTagName(a)[0];d&&(d.onload=()=>e(n[s]),d.onerror=()=>r(Error("Failed to load Sensic S2S script")),d.onabort=()=>r(Error("Sensic S2S script load aborted"))),!o&&d&&l?.parentNode&&l.parentNode.insertBefore(d,l)})})({media:d,url:p,type:"WEB",logLevel:c}).catch(e=>{m(e instanceof Error?e:Error(String(e)))})),m,l,function(){let n="at"===u.toLowerCase()?function(e){let{integration:t}=e;return()=>{let e=t.currentAd;if(e)return`${e.breakName||""}${null==e.breakIndex?"":e.breakIndex}-${null==e.positionIndex?"":e.positionIndex}`;let n=t.content,i=t.source;return i?.playbackMode===s.LS.LIVE?n?.channel?.name||"":n?.title||""}}({integration:e}):()=>(function(e,t){let n=e.source?.id??"",i=e.content?.id??"",a=n||i;return t?`${a}-ad`:a})(e,void 0!==e.currentAd);return()=>{let e=n();return t.buildStreamId?t.buildStreamId(e):e}}()))};return e.addEventListener(s.n8.CONTENT_SELECT,g),()=>{e.removeEventListener(s.n8.CONTENT_SELECT,g),i?.destroy(),i=void 0}})(e,{...t,country:"at",buildCustomParams:n=>{let i=e.content,a=function(e,t){let n=d[e];if(n)return"web"===t?`Joyn.${n.web}.agtt`:`Joyn.TV.${n.tv}.agtt`}(Number(i?.channel?.id)||0,t.platform);if(a)return{...n,playerid:a,videocategory:"RedCont/KulturUndFreizeit/FilmUndKino"}}})}
1,80543:(e,t,n)=>{n.d(t,{jI:()=>c});var i=n(83710);class a{constructor(e,t,n,i){this.providers=e.filter(e=>e.Lifecycle).map(e=>new e.Lifecycle(e)),this.logger=t,this.contentMetadata=n,this.additionalPayload=i,this.viewtime={ad:0,content:0},this.playerInfo={playMode:"embedded",volume:0},this.previousContentPosition=0}startLifecycle(e,t){return this.playerInfo.playMode=e,this.playerInfo.volume=t,this.logger.log("startLifecycle",{contentMetadata:this.contentMetadata,additionalPayload:this.additionalPayload,viewtime:this.viewtime,playerInfo:this.playerInfo}),(0,i.u3)(this.providers.map(e=>{var t;return null==(t=null==e?void 0:e.startLifecycle)?void 0:t.call(e,this.contentMetadata,this.additionalPayload,this.viewtime,this.playerInfo)}).filter(e=>!!e))}startContent(e){return this.previousContentPosition=e,this.logger.log("startContent",{position:e,contentMetadata:this.contentMetadata,additionalPayload:this.additionalPayload,viewtime:this.viewtime,playerInfo:this.playerInfo}),(0,i.u3)(this.providers.map(t=>{var n;return null==(n=null==t?void 0:t.startContent)?void 0:n.call(t,e,this.contentMetadata,this.additionalPayload,this.viewtime,this.playerInfo)}).filter(e=>!!e))}updatePositionContent(e){return e>this.previousContentPosition&&(this.viewtime.content=this.viewtime.content+(e-this.previousContentPosition),this.previousContentPosition=e),this.logger.log("updatePositionContent",{position:e,contentMetadata:this.contentMetadata,additionalPayload:this.additionalPayload,viewtime:this.viewtime,playerInfo:this.playerInfo}),(0,i.u3)(this.providers.map(t=>{var n;return null==(n=null==t?void 0:t.updatePositionContent)?void 0:n.call(t,e,this.contentMetadata,this.additionalPayload,this.viewtime,this.playerInfo)}).filter(e=>!!e))}resumeContent(e){return this.logger.log("resumeContent",{position:e,contentMetadata:this.contentMetadata,additionalPayload:this.additionalPayload,viewtime:this.viewtime,playerInfo:this.playerInfo}),(0,i.u3)(this.providers.map(t=>{var n;return null==(n=null==t?void 0:t.resumeContent)?void 0:n.call(t,e,this.contentMetadata,this.additionalPayload,this.viewtime,this.playerInfo)}).filter(e=>!!e))}pauseContent(e){return this.logger.log("pauseContent",{position:e,contentMetadata:this.contentMetadata,additionalPayload:this.additionalPayload,viewtime:this.viewtime,playerInfo:this.playerInfo}),(0,i.u3)(this.providers.map(t=>{var n;return null==(n=null==t?void 0:t.pauseContent)?void 0:n.call(t,e,this.contentMetadata,this.additionalPayload,this.viewtime,this.playerInfo)}).filter(e=>!!e))}startSeekingContent(e){return this.logger.log("startSeekingContent",{fromPosition:e,contentMetadata:this.contentMetadata,additionalPayload:this.additionalPayload,viewtime:this.viewtime,playerInfo:this.playerInfo}),(0,i.u3)(this.providers.map(t=>{var n;return null==(n=null==t?void 0:t.startSeekingContent)?void 0:n.call(t,e,this.contentMetadata,this.additionalPayload,this.viewtime,this.playerInfo)}).filter(e=>!!e))}endSeekingContent(e){return this.previousContentPosition=e,this.logger.log("endSeekingContent",{toPosition:e,contentMetadata:this.contentMetadata,additionalPayload:this.additionalPayload,viewtime:this.viewtime,playerInfo:this.playerInfo}),(0,i.u3)(this.providers.map(t=>{var n;return null==(n=null==t?void 0:t.endSeekingContent)?void 0:n.call(t,e,this.contentMetadata,this.additionalPayload,this.viewtime,this.playerInfo)}).filter(e=>!!e))}startBufferingContent(e){return this.logger.log("startBufferingContent",{position:e,contentMetadata:this.contentMetadata,additionalPayload:this.additionalPayload,viewtime:this.viewtime,playerInfo:this.playerInfo}),(0,i.u3)(this.providers.map(t=>{var n;
1return null==(n=null==t?void 0:t.startBufferingContent)?void 0:n.call(t,e,this.contentMetadata,this.additionalPayload,this.viewtime,this.playerInfo)}).filter(e=>!!e))}endBufferingContent(e){return this.logger.log("endBufferingContent",{position:e,contentMetadata:this.contentMetadata,additionalPayload:this.additionalPayload,viewtime:this.viewtime,playerInfo:this.playerInfo}),(0,i.u3)(this.providers.map(t=>{var n;return null==(n=null==t?void 0:t.endBufferingContent)?void 0:n.call(t,e,this.contentMetadata,this.additionalPayload,this.viewtime,this.playerInfo)}).filter(e=>!!e))}endContent(e){return this.logger.log("endContent",{position:e,contentMetadata:this.contentMetadata,additionalPayload:this.additionalPayload,viewtime:this.viewtime,playerInfo:this.playerInfo}),(0,i.u3)(this.providers.map(t=>{var n;return null==(n=null==t?void 0:t.endContent)?void 0:n.call(t,e,this.contentMetadata,this.additionalPayload,this.viewtime,this.playerInfo)}).filter(e=>!!e))}abortContent(e){return this.logger.log("abortContent",{position:e,contentMetadata:this.contentMetadata,additionalPayload:this.additionalPayload,viewtime:this.viewtime,playerInfo:this.playerInfo}),(0,i.u3)(this.providers.map(t=>{var n;return null==(n=null==t?void 0:t.abortContent)?void 0:n.call(t,e,this.contentMetadata,this.additionalPayload,this.viewtime,this.playerInfo)}).filter(e=>!!e))}changePlayMode(e){return this.playerInfo.playMode=e,this.logger.log("changePlayMode",{playMode:e,contentMetadata:this.contentMetadata,additionalPayload:this.additionalPayload,viewtime:this.viewtime,playerInfo:this.playerInfo}),(0,i.u3)(this.providers.map(e=>{var t;return null==(t=null==e?void 0:e.changePlayMode)?void 0:t.call(e,this.contentMetadata,this.additionalPayload,this.viewtime,this.playerInfo)}).filter(e=>!!e))}changeVolume(e){return this.playerInfo.volume=e,this.logger.log("changeVolume",{volume:e,contentMetadata:this.contentMetadata,additionalPayload:this.additionalPayload,viewtime:this.viewtime,playerInfo:this.playerInfo}),(0,i.u3)(this.providers.map(e=>{var t;return null==(t=null==e?void 0:e.changeVolume)?void 0:t.call(e,this.contentMetadata,this.additionalPayload,this.viewtime,this.playerInfo)}).filter(e=>!!e))}createAdRoll(e){return this.logger.log("createAdRoll",{adRollPayload:e,contentMetadata:this.contentMetadata,additionalPayload:this.additionalPayload,viewtime:this.viewtime,playerInfo:this.playerInfo}),new s(e,this.providers,this.logger,this.contentMetadata,this.additionalPayload,this.viewtime,this.playerInfo)}}class s{constructor(e,t,n,i,a,s,r){this.adRollPayload=e,this.providers=t,this.logger=n,this.contentMetadata=i,this.additionalPayload=a,this.viewtime=s,this.playerInfo=r}startAdRoll(){return this.logger.log("startAdRoll",{adRollPayload:this.adRollPayload,contentMetadata:this.contentMetadata,additionalPayload:this.additionalPayload,viewtime:this.viewtime,playerInfo:this.playerInfo}),(0,i.u3)(this.providers.map(e=>{var t;return null==(t=null==e?void 0:e.startAdRoll)?void 0:t.call(e,this.adRollPayload,this.contentMetadata,this.additionalPayload,this.viewtime,this.playerInfo)}).filter(e=>!!e))}endAdRoll(){return this.logger.log("endAdRoll",{adRollPayload:this.adRollPayload,contentMetadata:this.contentMetadata,additionalPayload:this.additionalPayload,viewtime:this.viewtime,playerInfo:this.playerInfo}),(0,i.u3)(this.providers.map(e=>{var t;return null==(t=null==e?void 0:e.endAdRoll)?void 0:t.call(e,this.adRollPayload,this.contentMetadata,this.additionalPayload,this.viewtime,this.playerInfo)}).filter(e=>!!e))}requestAdSlot(e){return this.logger.log("requestAdSlot",{adRollPayload:Object.assign(Object.assign({},this.adRollPayload),{adSlot:e}),contentMetadata:this.contentMetadata,additionalPayload:this.additionalPayload,viewtime:this.viewtime,playerInfo:this.playerInfo}),(0,i.u3)(this.providers.map(t=>{var n;return null==(n=null==t?void 0:t.requestAdSlot)?void 0:n.call(t,Object.assign(Object.assign({},this.adRollPayload),{adSlot:e}),this.contentMetadata,this.additionalPayload,this.viewtime,this.playerInfo)}).filter(e=>!!e))}createFilledAdSlot(e){return this.logger.log("createFilledAdSlot",{adRollPayload:Object.assign(Object.assign({},this.adRollPayload),e),contentMetadata:this.contentMetadata,additionalPayload:this.additionalPayload,viewtime:this.viewtime,playerInfo:this.playerInfo}),new r(Object.assign(Object.assign({},this.adRollPayload),e),this.providers,this.logger,this.contentMetadata,this.additionalPayload,this.viewtime,this.playerInfo)}createEmptyAdSlot(e){return this.logger.log("createEmptyAdSlot",{adRollPayload:Object.assign(Object.assign({},this.adRollPayload),e),contentMetadata:this.contentMetadata,additionalPayload:this.additionalPayload,viewtime:this.viewtime,playerInfo:this.playerInfo}),new o(Object.assign(Object.assign({},this.adRollPayload),e),this.providers,this.logger,this.contentMetadata,this.additionalPayload,this.viewtime,this.playerInfo)}}
1class r{constructor(e,t,n,i,a,s,r){this.filledAdPayload=e,this.providers=t,this.logger=n,this.contentMetadata=i,this.additionalPayload=a,this.viewtime=s,this.playerInfo=r,this.previousAdPosition=0}startAd(){return this.logger.log("startAd",{filledAdPayload:this.filledAdPayload,contentMetadata:this.contentMetadata,additionalPayload:this.additionalPayload,viewtime:this.viewtime,playerInfo:this.playerInfo}),(0,i.u3)(this.providers.map(e=>{var t;return null==(t=null==e?void 0:e.startAd)?void 0:t.call(e,this.filledAdPayload,this.contentMetadata,this.additionalPayload,this.viewtime,this.playerInfo)}).filter(e=>!!e))}endAd(e){return this.logger.log("endAd",{position:e,filledAdPayload:this.filledAdPayload,contentMetadata:this.contentMetadata,additionalPayload:this.additionalPayload,viewtime:this.viewtime,playerInfo:this.playerInfo}),(0,i.u3)(this.providers.map(t=>{var n;return null==(n=null==t?void 0:t.endAd)?void 0:n.call(t,e,this.filledAdPayload,this.contentMetadata,this.additionalPayload,this.viewtime,this.playerInfo)}).filter(e=>!!e))}updatePositionAd(e){return e>this.previousAdPosition&&(this.viewtime.ad=this.viewtime.ad+(e-this.previousAdPosition),this.previousAdPosition=e),this.logger.log("updatePositionAd",{position:e,filledAdPayload:this.filledAdPayload,contentMetadata:this.contentMetadata,additionalPayload:this.additionalPayload,viewtime:this.viewtime,playerInfo:this.playerInfo}),(0,i.u3)(this.providers.map(t=>{var n;return null==(n=null==t?void 0:t.updatePositionAd)?void 0:n.call(t,e,this.filledAdPayload,this.contentMetadata,this.additionalPayload,this.viewtime,this.playerInfo)}).filter(e=>!!e))}resumeAd(e){return this.logger.log("resumeAd",{position:e,filledAdPayload:this.filledAdPayload,contentMetadata:this.contentMetadata,additionalPayload:this.additionalPayload,viewtime:this.viewtime,playerInfo:this.playerInfo}),(0,i.u3)(this.providers.map(t=>{var n;return null==(n=null==t?void 0:t.resumeAd)?void 0:n.call(t,e,this.filledAdPayload,this.contentMetadata,this.additionalPayload,this.viewtime,this.playerInfo)}).filter(e=>!!e))}pauseAd(e){return this.logger.log("pauseAd",{position:e,filledAdPayload:this.filledAdPayload,contentMetadata:this.contentMetadata,additionalPayload:this.additionalPayload,viewtime:this.viewtime,playerInfo:this.playerInfo}),(0,i.u3)(this.providers.map(t=>{var n;return null==(n=null==t?void 0:t.pauseAd)?void 0:n.call(t,e,this.filledAdPayload,this.contentMetadata,this.additionalPayload,this.viewtime,this.playerInfo)}).filter(e=>!!e))}startBufferingAd(e){return this.logger.log("startBufferingAd",{position:e,filledAdPayload:this.filledAdPayload,contentMetadata:this.contentMetadata,additionalPayload:this.additionalPayload,viewtime:this.viewtime,playerInfo:this.playerInfo}),(0,i.u3)(this.providers.map(t=>{var n;
1return null==(n=null==t?void 0:t.startBufferingAd)?void 0:n.call(t,e,this.filledAdPayload,this.contentMetadata,this.additionalPayload,this.viewtime,this.playerInfo)}).filter(e=>!!e))}endBufferingAd(e){return this.logger.log("endBufferingAd",{position:e,filledAdPayload:this.filledAdPayload,contentMetadata:this.contentMetadata,additionalPayload:this.additionalPayload,viewtime:this.viewtime,playerInfo:this.playerInfo}),(0,i.u3)(this.providers.map(t=>{var n;return null==(n=null==t?void 0:t.endBufferingAd)?void 0:n.call(t,e,this.filledAdPayload,this.contentMetadata,this.additionalPayload,this.viewtime,this.playerInfo)}).filter(e=>!!e))}clickThroughAd(e){return this.logger.log("clickThroughAd",{position:e,filledAdPayload:this.filledAdPayload,contentMetadata:this.contentMetadata,additionalPayload:this.additionalPayload,viewtime:this.viewtime,playerInfo:this.playerInfo}),(0,i.u3)(this.providers.map(t=>{var n;return null==(n=null==t?void 0:t.clickThroughAd)?void 0:n.call(t,e,this.filledAdPayload,this.contentMetadata,this.additionalPayload,this.viewtime,this.playerInfo)}).filter(e=>!!e))}}class o{constructor(e,t,n,i,a,s,r){this.emptyAdPayload=e,this.providers=t,this.logger=n,this.contentMetadata=i,this.additionalPayload=a,this.viewtime=s,this.playerInfo=r}
1adOmit(){return this.logger.log("adOmit",{emptyAdPayload:this.emptyAdPayload,contentMetadata:this.contentMetadata,additionalPayload:this.additionalPayload,viewtime:this.viewtime,playerInfo:this.playerInfo}),(0,i.u3)(this.providers.map(e=>{var t;return null==(t=null==e?void 0:e.adOmit)?void 0:t.call(e,this.emptyAdPayload,this.contentMetadata,this.additionalPayload,this.viewtime,this.playerInfo)}).filter(e=>!!e))}}let d={default:{BsXel8D_1mgvEY:"amazonCustomAudiences",VqVkAIAac5ywaS:"amazonCustomAudiences","iz1otoJ79nIG-e":"amazonCustomAudiences",droLLWFH0:"apple",jiAuavhl1eE_a4:"braze","JTlAoBrj1arVZ-":"braze",_9lrckRHTo_SvP:"braze",HJbZqVodjZX:"chartbeat","LykAT-gy":"consentModeConversionLinker",twMyStLkn:"consentModeGoogleAdConversion","S1_9Vsuj-Q":"consentModeGoogleAds",B1Hk_zoTX:"consentModeGoogleAdsRemarketing",dyHOCwp5Y:"consentModeGoogleCampaignManager",DHS2sEi4b:"consentModeSearchAds360",UekC8ye4S:"consentModeDv360Floodlight",jR6e27e99HvaUr:"datazoom",mrqy4ru8ChyH0_:"googleAdsAudiences",nLwgD3MQa17HAN:"googleAdsAudiences",RjHRcAov0MXX8t:"googleAdsAudiences","87JYasXPF":"googleAnalytics","5-03wbc0am4zim":"googleEnhancedAudiences",jJqgjcVnInxO77:"googleEnhancedAudiences",qjMBreTNmuk7bg:"googleEnhancedAudiences",W09lB6TLwgAm0R:"metaCustomAudiences",mWzBxsUEv_9QSn:"metaCustomAudiences","60eshZriOW-FA9":"metaCustomAudiences",ko1w5PpFl:"metaPixel",mH3PI4z5gsBwUc:"microsoftCustomAudiences",TMuPqifzJdRAr_:"microsoftCustomAudiences",pOkXBEWPPGX5I3:"microsoftCustomAudiences","2Bjp0et1p":"reddit","4ltiKspwp":"tiktok",Z0TcXjY0P:"tiktok","1nAb95ifi":"tiktok",Q0YiY5jUZP7joe:"tiktokCustomAudiences",URW7e_5NryHeqa:"tiktokCustomAudiences","26Zj_Ex_Oxj_Gc":"tiktokCustomAudiences"},tcf:{44:"adex",793:"amazonAdvertising"},acm:{2822:"adjust"}};var l=n(15530);class u{constructor(){this.enabled=!1,this.supportsLocalStorage()&&(this.enabled="true"===globalThis.localStorage.getItem("et_logging_enabled"))}log(e,t){this.enabled&&(console.groupCollapsed(`[ET-Web]: ${e}`),console.log(t),console.groupEnd())}supportsLocalStorage(){return"localStorage"in globalThis&&"getItem"in globalThis.localStorage&&"function"==typeof globalThis.localStorage.getItem}}class c{constructor(e,t){this.providers=e,this.initialContext=t,this.logger=new u}updateConsent(e,t,n){let a,s=(a={},a=e.reduce((e,t)=>{var n,i,a,s,r;return(null!=(i=null==(n=t)?void 0:n.consent)&&i.status||null!=(a=null==n?void 0:n.legitimateInterestConsent)&&a.status)&&((null==(s=null==n?void 0:n.consent)?void 0:s.status)||(null==(r=null==n?void 0:n.legitimateInterestConsent)?void 0:r.status))?function(e,t){var n,i;let a=(null==(i=d[(n=t).type])?void 0:i[n.id])||void 0;return a&&(e[a]=!0),e}(e,t):e},a),a=t.customPurposes.reduce((e,t)=>t.consent?function(e,t){let n=function(e){switch(e){case"audiCustomAudiences":return"audiCustomAudiences";case"audiTargeting":return"audiTargeting";case"netID":return"netID";default:return}}(t);return n&&(e[n]=!0),e}(e,t.id):e,a)),r=this.getAdditionalPayload();return this.logger.log("updateConsent",{vendors:e,purposes:t,tcfString:n,additionalPayload:r}),(0,i.u3)(this.providers.map(e=>{var t;return null==(t=null==e?void 0:e.updateConsent)?void 0:t.call(e,s,n,r)}).filter(e=>!!e))}updateUserContext(e){let t=this.getAdditionalPayload();return this.logger.log("updateUserContext",{userContext:e,additionalPayload:t}),(0,i.u3)(this.providers.map(t=>{var n;return null==(n=null==t?void 0:t.updateUserContext)?void 0:n.call(t,e)}).filter(e=>!!e))}trackScreen(e,t){this.currentScreenName=e,this.currentScreenPayload=t;let n=this.getAdditionalPayload();return this.logger.log("trackScreen",{screenName:e,screenPayload:t,additionalPayload:n}),(0,i.u3)(this.providers.map(i=>{var a;return null==(a=null==i?void 0:i.trackScreen)?void 0:a.call(i,e,t,n)}).filter(e=>!!e))}trackEvent(e,t){let n=this.getAdditionalPayload();return this.logger.log("trackEvent",{eventName:e,eventPayload:t,additionalPayload:n}),(0,i.u3)(this.providers.map(i=>{var a;return null==(a=null==i?void 0:i.trackEvent)?void 0:a.call(i,e,t,n)}).filter(e=>!!e))}createLifeycle(e,t){let n=this.getAdditionalPayload(),i=function(e,t){if("live"===e.type&&!e.livestreamId)throw Error("LivestreamId is missing");if("odc"===e.type&&(!e.livestreamId||!e.mediaId))throw Error("LivestreamId or MediaId is missing");if("vod"===e.type&&!e.mediaId)throw Error("MediaId is missing");let n=[];if(["odc","vod"].includes(e.type)&&(e.assetId?/^(b_|c_|d_|x_)/.test(e.assetId)||n.push({key:"assetId",value:"assetId does not start with b_, c_, d_, or x_"}):n.push({key:"assetId",value:"assetId is missing"}),e.assetTitle||n.push({key:"assetTitle",value:"assetTitle is missing"}),e.duration?isNaN(Number(e.duration))?n.push({key:"duration",value:"duration cannot be parsed to a number"}):e.duration<=0&&n.push({key:"duration",value:"duration is not a valid number"}):n.push({key:"duration",value:"duration is missing"}),l.C.includes(t.initialContext.productName)&&!e.entitlement.token&&n.push({key:"entitlement.token",value:"entitlementToken is missing"}
1),l.C.includes(t.initialContext.productName)||e.entitlement.id||n.push({key:"entitlement.id",value:"entitlementId is missing"}),e.episodeNumber&&(isNaN(Number(e.episodeNumber))?n.push({key:"episodeNumber",value:"episodeNumber cannot be parsed to a number"}):e.episodeNumber<=0&&n.push({key:"episodeNumber",value:"episodeNumber is not a valid number"})),e.mediaTitle||n.push({key:"mediaTitle",value:"mediaTitle is missing"}),e.seasonNumber&&(isNaN(Number(e.seasonNumber))?n.push({key:"seasonNumber",value:"seasonNumber cannot be parsed to a number"}):e.seasonNumber<=0&&n.push({key:"seasonNumber",value:"seasonNumber is not a valid number"}))),e.brandId?isNaN(Number(e.brandId))?n.push({key:"brandId",value:"brandId cannot be parsed to a number"}):e.brandId<=0&&n.push({key:"brandId",value:"brandId is not a valid number"}):n.push({key:"brandId",value:"brandId is missing"}),e.brandTitle||n.push({key:"brandTitle",value:"brandTitle is missing"}),n.length>0){var i;return i=n,{errorCluster:"et_validation",errorDetail:"At least one parameter is missing or invalid",errorId:e.entitlement.id,errorItems:i,errorLabel:"validation_error",errorType:"validation_error"}}}(t,n);return i&&this.trackEvent("Error",i),this.logger.log("createLifeycle",{type:e,contentMetadata:t,additionalPayload:n,validationResult:i}),{lifecycle:new a(this.providers,this.logger,t,n),validationResult:null!=i?i:{}}}getAdditionalPayload(){return{initialContext:this.initialContext,screenName:this.currentScreenName,screenPayload:this.currentScreenPayload}}}},83710:(e,t,n)=>{function i(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(e){let t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)})}function a(e,t){return globalThis.document?!e||"string"!=typeof e||e.length<1?Promise.reject(Error('loadScript "src" parameter is incorrect or missing.')):globalThis[t]?Promise.resolve(!0):new Promise((t,n)=>{let i=globalThis.document.querySelector(`script[src="${e}"]`),a=i;i||((a=globalThis.document.createElement("script")).src=e),a.onload=()=>{t(!!i)},a.onerror=n,a.onabort=n,i||globalThis.document.head.appendChild(a)}):Promise.reject(Error("document is not existing"))}n.d(t,{DR:()=>s,L5:()=>function e(t,n=10,i=1e3){let a=t();if(void 0===a&&n)return new Promise(e=>{setTimeout(e,i)}).then(()=>e(t,--n,i));return Promise.resolve(a)},k0:()=>a,u3:()=>r,us:()=>i});let s=[1,2,3,4,5,6,7,101,132,133,134,185,186,1011,1057,1058,1151,1287,1289,1290,1291,1293,1292,1294,1295];function r(e){return new Promise((t,n)=>{Promise.allSettled(e).then(e=>{let i=e.filter(e=>"rejected"===e.status).map(e=>e.reason);i.length>0?n(i):t()})})}},86530:(e,t,n)=>{n.d(t,{K:()=>u});var i=n(54948),a=n(92568),s=n(21396);function r(e){return Object.entries(e).filter(e=>void 0!==e[1]&&null!==e[1]).reduce((e,[t,n])=>{let i=n.replace(/[\u0000-\u001F\u007F]/g,""),a=!i.match(/^p\d{1,2},/)&&t.match(/nol_c(\d+)/);return e[t]=a?`p${a[1]},${i}`:i,e},{})}var o=class extends i.j{#z;#M;#J;#W=-1;#X=-1;#R=!1;constructor(e,t,n,i,a){super(e,a),this.#z=t,this.#M=n,this.#J=i,this.markSdkReady()}onContentStart(){this.#z.ggPM("loadMetadata",this.#Z)}#ee(){let e=Math.floor(this.#U/1e3);Math.abs(e-this.#W)>=1&&(this.#z.ggPM("setPlayheadPosition",e),this.#W=e)}#et(){let e=Math.floor(this.#Y/1e3);Math.abs(e-this.#X)>=1&&(this.#z.ggPM("setPlayheadPosition",e),this.#X=e)}onContentImpression(){this.#R&&(this.#z.ggPM("loadMetadata",this.#Z),this.#R=!1),this.#ee()}onContentPlay(){this.integration.seeking||(this.#R=!1,this.#z.ggPM("loadMetadata",this.#Z),this.#ee())}onContentPause(){if(this.integration.seeking||this.integration.currentAd)return;let e=Math.floor(this.#U/1e3);this.#z.ggPM("stop",e)}onContentSeeking(){if(this.integration.paused)return;let e=Math.floor(this.#U/1e3);this.#z.ggPM("stop",e)}onContentSeeked(){this.#z.ggPM("loadMetadata",this.#Z),this.#ee()}
1onContentBufferingStart(){if(this.isInAd)return;let e=Math.floor(this.#U/1e3);this.#z.ggPM("stop",e)}onContentBufferingEnd(){this.isInAd||(this.#z.ggPM("loadMetadata",this.#Z),this.#ee())}onContentTimeUpdate(){!this.isInAd&&(this.integration.paused||this.#ee())}onContentEnded(){let e=Math.floor(this.#U/1e3);this.#z.ggPM("end",e)}onAdImpression(){let e=this.#J();this.#z.ggPM("loadMetadata",r(e)),this.#X=0,this.#z.ggPM("setPlayheadPosition",this.#X)}onAdPaused(){if(!this.isInAd)return;let e=Math.floor(this.#Y/1e3);this.#z.ggPM("stop",e)}onAdBufferingStart(){if(!this.isInAd)return;let e=Math.floor(this.#Y/1e3);this.#z.ggPM("stop",e)}onAdTimeUpdate(){this.isInAd&&(this.integration.adPaused||this.#et())}onAdEnd(){let e=Math.floor(this.#Y/1e3);this.#z.ggPM("stop",e),this.#R=!0}get #Z(){return r(this.#M)}get #k(){return this.integration.source?.playbackMode===s.LS.LIVE}get #U(){return this.#k?1e3*this.integration.wallClockTime:Math.floor(1e3*(this.integration.currentTime??0))}get #Y(){return Math.floor(1e3*(this.integration.adCurrentTime??0))}onSuspend(){if(this.isInAd){let e=Math.floor(this.#Y/1e3);this.#z.ggPM("stop",e)}else if(this.contentStarted){let e=Math.floor(this.#U/1e3);this.#z.ggPM("stop",e)}}onDestroy(){if(this.isInAd){let e=Math.floor(this.#Y/1e3);this.#z.ggPM("stop",e)}if(this.contentStarted){let e=Math.floor(this.#U/1e3);this.#z.ggPM("end",e)}}};function d(e,t){return e.length>t?e.slice(0,t):e}function l(){return globalThis.NOLBUNDLE}let u=(e,t)=>((e,t)=>{let n,{appId:i,country:r,debug:u,warnCallback:c,configureContentMetadata:h,configureAdMetadata:p}=t,m=e=>{c?c(e):setTimeout(()=>{console.error(e)},0)},g="de"===r.toLowerCase()?function(e){let{integration:t}=e;return()=>{let e=t.content,n=t.source,i=n?.playbackMode===s.LS.LIVE;if(!e)return null;let a=e?.channel?.name??"",r=e.additionalIds?.originId||n?.id||"",o=e?.title??"",l=e.liveOnDemandChannel?.id||e.additionalIds?.originId||n?.id,u=e?.show?.name||e?.competition?.name||e?.compilation?.name,c=e?.additionalIds?.externalId,h=Math.floor(e?.duration??t.duration??0),p=i?l??"":r,m=d(`${p}_0`,64),g=c||i?"N":"Y",v=e?.show?.seasonNumber!==void 0&&e?.show?.episodeNumber!==void 0?`S${e.show.seasonNumber}E${e.show.episodeNumber}`:void 0;return{...{assetid:m,type:"content",program:d(i?"UNKNOWN":a||"UNKNOWN",255),title:d(i?"24_7 livestream":[u,o,v].filter(Boolean).join("|"),255),length:i?"86400":h.toString(),nol_c0:"0",nol_c2:g,nol_c5:t.page?.url?d(t.page.url,252):void 0,nol_c7:d(p,252),nol_c9:d(i?"24_7 livestream":[u,o,v].filter(Boolean).join("|"),252),nol_c10:d(a,251),nol_c12:e.programType===s.hl.TRAILER?"Trailer":"Content",nol_c15:!i&&c?d(c,251):void 0,nol_c18:i?"Y":"N"},...e.tracking?.nielsenDe}}}({integration:e}):null,v="de"===r.toLowerCase()?function(e){let{integration:t}=e;return()=>{let e=t.currentAd,n=t.source?.playbackMode===s.LS.LIVE,i=e.breakName??"midroll",r=(0,a.h)(t),o=null==r?0:Math.floor(r),l=t.content?.channel?.name??"",u=e.universalAdIds?.[0]?.id,c=t.content?.additionalIds?.externalId;return{assetid:d(e.id??"",64),type:i,length:o.toString(),title:d(e.id??"",255),nol_
1c1:u?d(u,252):void 0,nol_c2:c||n?"N":"Y",nol_c4:i,nol_c10:d(l,251),nol_c11:d(e.id??"",251),nol_c12:"Werbung",nol_c17:i,nol_c18:n?"Y":"N"}}}({integration:e}):null,E=()=>{let t;n&&(n.destroy(),n=void 0);let{content:a}=e;if(!a)return;if(g){let e=g();t=h?h(e):e}else{let n=function(e){let t=e.content,n=t?.id??"";return{assetid:n,type:"content",program:"",title:t?.title??"",length:Math.floor(t?.duration??e.duration??0).toString()}}(e);t=h?h(n):n}if(null==t)return;let s=function(e){let{appId:t,instanceId:n,debug:i}=e;if(!l()){var a=globalThis,s="NOLBUNDLE";function r(e){return"object"==typeof e?JSON.parse(JSON.stringify(e)):e}a[s]=a[s]||{nlsQ(e,t,n){let i=a.document,o=i.createElement("script");o.async=1,o.src=`${"http:"===a.location.protocol?"http:":"https:"}//cdn-gl.nmrodam.com/conf/${e}.js#name=${t}&ns=${s}`;let d=i.getElementsByTagName("script")[0];return d.parentNode.insertBefore(o,d),a[s][t]=a[s][t]||{g:n||{},ggPM(e,n,i,o,d){a[s][t].q=a[s][t].q||[];try{let l=r([e,n,i,o,d]);a[s][t].q.push(l)}catch{}},trackEvent(e){a[s][t].te=a[s][t].te||[];try{let n=r(e);a[s][t].te.push(n)}catch{}}},a[s][t]}}}let o=l();if(o)return o.nlsQ(t,n,i?{nol_sdkDebug:"DEBUG"}:void 0)}({appId:i,instanceId:e.sessionId,debug:u});if(!s)return void m(Error("Nielsen SDK not initialized"));let r=v?()=>{let e=v();return p?p(e):e}:()=>{let t=function(e){let t=e.currentAd,n=t.breakName??"midroll";
1return{assetid:t.id??"",type:n}}(e);return p?p(t):t};n=new o(e,s,t,r,m)};return e.addEventListener(s.n8.CONTENT_SELECT,E),()=>{e.removeEventListener(s.n8.CONTENT_SELECT,E),n?.destroy(),n=void 0}})(e,{...t,country:"de",configureContentMetadata:e=>({subbrand:t.vcid,nol_c16:"dVxRcCpOqKyFz03fx",...e}),configureAdMetadata:e=>({subbrand:t.vcid,nol_c16:"dVxRcCpOqKyFz03fx",...e})})},88024:(e,t,n)=>{n.d(t,{o:()=>i});class i{constructor(){this.canProcessEvent=!1,this.shouldTrack=!0,this.queue=[]}add(e){this.queue.push(e)}flush(){var e,t,n,i;return e=this,t=void 0,n=void 0,i=function*(){for(let e of this.queue)yield Promise.resolve(e())},new(n||(n=Promise))(function(a,s){function r(e){try{d(i.next(e))}catch(e){s(e)}}function o(e){try{d(i.throw(e))}catch(e){s(e)}}function d(e){var t;e.done?a(e.value):((t=e.value)instanceof n?t:new n(function(e){e(t)})).then(r,o)}d((i=i.apply(e,t||[])).next())})}deleteQueueEntries(){this.queue=[]}}},92568:(e,t,n)=>{n.d(t,{h:()=>i});function i(e){let t="number"==typeof e.adDuration&&Number.isFinite(e.adDuration)?e.adDuration:e.currentAd?.duration;return"number"==typeof t&&Number.isFinite(t)?t:void 0}}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.