1"use strict";(self.__LOADABLE_LOADED_CHUNKS__=self.__LOADABLE_LOADED_CHUNKS__||[]).push([[7478],{45975:function(e,n,t){var i=t(92552);function r(e){var n,t,r=e.userSubscriptions,o=e.episodeEntity,a=e.license;if(null!=o&&null!=a)return null!=(n=null==(t=(0,i.f)({episodeEntity:o,license:a,userSubscriptions:r}))?void 0:t.planId)?n:void 0}t.d(n,{I:function(){return r}})},89131:function(e,n,t){var i=t(39473),r=t(76599);function o(e,n){return(e!==r.S.GLOBAL||n!==i.SF.BROADCAST_REGION_ALLOW_ONLY_JAPAN)&&(e!==r.S.NONE||n!==i.SF.BROADCAST_REGION_ALLOW_ONLY_OVERSEAS)}t.d(n,{b:function(){return o}})},62451:function(e,n,t){t.d(n,{W:function(){return b}});var i=t(62906),r=t(90563),o=t(57215),a=t(86862),s=t(80914),u=t(13571),l={fromJSON:function(e){return{programId:_(e.programId)?globalThis.String(e.programId):"",title:_(e.title)?globalThis.String(e.title):"",titleKana:_(e.titleKana)?globalThis.String(e.titleKana):"",distributionNumber:_(e.distributionNumber)?globalThis.String(e.distributionNumber):"",broadcastDate:_(e.broadcastDate)?globalThis.Number(e.broadcastDate):0,metadataType:_(e.metadataType)?globalThis.String(e.metadataType):"",createdAt:_(e.createdAt)?globalThis.Number(e.createdAt):0,updatedAt:_(e.updatedAt)?globalThis.Number(e.updatedAt):0,casts:globalThis.Array.isArray(null==e?void 0:e.casts)?e.casts.map(function(e){return c.fromJSON(e)}):[],crews:globalThis.Array.isArray(null==e?void 0:e.crews)?e.crews.map(function(e){return d.fromJSON(e)}):[]}}},c={fromJSON:function(e){return{id:_(e.id)?globalThis.String(e.id):"",name:_(e.name)?globalThis.String(e.name):"",roleName:_(e.roleName)?globalThis.String(e.roleName):"",characterName:_(e.characterName)?globalThis.String(e.characterName):""}},toJSON:function(e){var n={};return""!==e.id&&(n.id=e.id),""!==e.name&&(n.name=e.name),""!==e.roleName&&(n.roleName=e.roleName),""!==e.characterName&&(n.characterName=e.characterName),n}},d={fromJSON:function(e){return{id:_(e.id)?globalThis.String(e.id):"",name:_(e.name)?globalThis.String(e.name):"",roleName:_(e.roleName)?globalThis.String(e.roleName):""}},toJSON:function(e){var n={};return""!==e.id&&(n.id=e.id),""!==e.name&&(n.name=e.name),""!==e.roleName&&(n.roleName=e.roleName),n}};function _(e){return null!=e}var h=function(){function e(n){(0,i._)(this,e),(0,o._)(this,"episodeNumber",void 0),this.episodeNumber=n.distributionNumber,Object.freeze(this)}return(0,r._)(e,null,[{key:"fromProtobuf",value:function(n){var t;return new e({distributionNumber:null!=(t=null==n?void 0:n.distributionNumber)?t:""})}}]),e}(),v=t(54818),p=t(45501),f=t(99536),T=function(){function e(n){(0,i._)(this,e),(0,o._)(this,"_driver",void 0),this._driver=n}return(0,r._)(e,[{key:"fetchEpisodeBaseMeta",value:function(e){return(0,s._)(function(e){var n,t,i,r,o,a;return(0,u._)(this,function(s){switch(s.label){case 0:return n=e.episodeId,t="/v1/video/b/programs/".concat(n),[4,this._driver.getWithCacheInvalidation(t,{})];case 1:return r=(i=s.sent()).status,[4,(0,v.z)(i)];case 2:switch(o=s.sent(),r){case p.OK:var u;return a={data:_((u=o).data)?l.fromJSON(u.data):void 0},[2,(0,f.TC)(h.fromProtobuf(a.data))];case p.n:return[2,(0,f.KC)(Error(String(p.n)))];default:throw RangeError("".concat(t," enters unreachable path with status code: ").concat(r))}}})}).apply(this,arguments)}}]),e}(),m=function(){function e(n){(0,i._)(this,e),(0,o._)(this,"_gateway",void 0),this._gateway=n}return(0,r._)(e,[{key:"consumeEpisodeBaseMeta",value:function(e){return(0,s._)(function(){return(0,u._)(this,function(n){switch(n.label){case 0:return[4,this._gateway.fetchEpisodeBaseMeta(e)];case 1:return[2,n.sent()]}})}).call(this)}}]),e}(),b=function(){function e(){(0,i._)(this,e),(0,o._)(this,"_usecase",void 0);var n=new T(a.bx);this._usecase=new m(n)}return(0,r._)(e,[{key:"usecase",value:function(){return this._usecase}}]),e}()},86493:function(e,n,t){t.d(n,{h:function(){return d}});var i=t(64558),r=t(95885),o=t(42204),a=t(97507),s=t(64837),u=t(30395),l=t.n(u),c=t(1102),d=function(e){var n=e.partnerServiceName,t=(0,c.useContext)(r.m)===o.b.MOBILE;return(0,i.jsx)("div",{className:l()("com-partner-service-PartnerServiceProvider",{"com-partner-service-PartnerServiceProvider--mobile":t}
1),children:(0,s.H)(a.V.partner_service_provider,{partnerServiceName:n})})}},12561:function(e,n,t){var i=t(9290),r=t(19736),o=t(68610);function a(e){var n=e.playlists,t=e.isDrm,a=e.contentId,s=e.deviceTypeId,u=r.f.store.token,l=(0,i.L$)().adCluster.ccfId;return{type:o.Y1.Streaming,playlists:n,isDrm:t,contentId:a,mediaToken:null!=u?u:null,cffId:l,dtid:null!=s?s:null}}t.d(n,{L:function(){return a}})},84859:function(e,n,t){t.d(n,{g:function(){return b}});var i=t(80914),r=t(54114),o=t(13571),a=t(32735),s=t(89131),u=t(42770),l=t(27629),c=t(74967),d=t(15684),_=t(96909),h=t(35590),v=t(29110),p=t(31814),f=t(96487),T=t(2787),m=t(74344);function b(e){return(0,i._)(function(e){var n,t,i,b,y,g,E,S,P,I,N,A,w,D;return(0,o._)(this,function(o){switch(o.label){case 0:n=e.episodeId,t=e.store,i=e.episodeUsecase,b=e.viewingLicenseUsecase,y=e.device,o.label=1;case 1:return o.trys.push([1,5,,6]),[4,Promise.all([i.fetch({programId:n}),b.check({programId:n,device:y})])];case 2:if(E=(g=r._.apply(void 0,[o.sent(),2]))[0],S=g[1],(0,T.HQ)(E)&&(0,T.HQ)(S)&&t.set(n,{viewingLicenseCheckResult:S}),!((0,T.HQ)(E)&&((0,T.HQ)(S)||S.err===f.b.UNSUPPORTED_DEVICE)))return[3,4];return P=E.val,[4,(0,a.A)().isAllowed().catch(function(){return!1})];case 3:var O,C,R,x,$,k,U;return(I=o.sent(),N=(0,u.xy)(),A=(0,s.b)(N,P.broadcastRegionPolicy)&&I,w=new v.v({id:P.genre.id,label:P.genre.name,subGenreIds:P.genre.subGenres.map(function(e){return e.id}),subSubGenreIds:P.genre.subGenres.flatMap(function(e){return e.subSubGenres.map(function(e){return e.id})})}),R=(O={episodeEntity:P,isPlaybackAllowedByRegion:A}).episodeEntity,x=O.isPlaybackAllowedByRegion,$=(null==(C=R.externalProvider)?void 0:C.type)===d.wB.EXTERNAL_PROVIDER_TYPE_UNKNOWN,k=(0,_.F)(R),U=(0,h.V)(k),$||U||!x)?t.set(n,{subscriptionPageResult:null}):(0,c.f)({storeSet:function(e){var i=e.subscriptionPageResult;t.set(n,{subscriptionPageResult:i})},contentParams:{contentId:n,contentType:l.PB.Programs}}).catch(m.H),t.set(n,{fetched:!0,episode:P,titleCard:null,genreValue:w}),p.fetchTitle({titleId:P.series.id}),[2];case 4:return[3,6];case 5:return D=o.sent(),(0,m.H)(D),[3,6];case 6:return t.set(n,{fetched:!0,episode:null}),t.readyForDisplayOfContent$.next(),[2]}})}).apply(this,arguments)}},48759:function(e,n,t){t.d(n,{u:function(){return c}});var i=t(64558),r=t(95885),o=t(42204),a=t(42604),s=t(30395),u=t.n(s),l=t(1102),c=function(){var e=(0,l.useContext)(r.m)===o.b.MOBILE;return(0,i.jsxs)("section",{className:"com-video-EpisodeNotFoundSection",children:[(0,i.jsx)("h1",{className:u()("com-video-EpisodeNotFoundSection__title",{"com-video-EpisodeNotFoundSection__title--mobile":e}),children:a.U.notfound_title}),(0,i.jsx)("p",{className:u()("com-video-EpisodeNotFoundSection__description",{"com-video-EpisodeNotFoundSection__description--mobile":e}),children:a.U.notfound_description})]})}},49818:function(e,n,t){t.d(n,{$:function(){return G}});var i=t(64558),r=t(60506),o=t(68573),a=t(95885),s=t(42204),u=t(30395),l=t.n(u),c=t(1102),d=function(e){var n=e.episodeEntity,t=e.seriesInfoText,r=c.useContext(a.m),u=c.useMemo(function(){return r===s.b.MOBILE},[r]),d=c.useMemo(function(){return o.G.includes(n.genre.id)},[n]),_=(0,i.jsx)("span",{className:l()("com-video-EpisodeTitle__episode-title",{"com-video-EpisodeTitle__episode-title--mobile":u}),children:n.title}),h=(0,i.jsx)("span",{className:l()("com-video-EpisodeTitle__series-info",{"com-video-EpisodeTitle__series-info--mobile":u,"com-video-EpisodeTitle__series-info--swapped":d}),children:t});return d?(0,i.jsxs)("h1",{className:"com-video-EpisodeTitle",children:[_,h]}):(0,i.jsxs)("h1",{className:"com-video-EpisodeTitle",children:[h,_]})},_=t(39834),h=t(91060),v=t(194),p=t(30675),f=t(64837),T=t(71919),m=t(63874),b=t(32746),y=function(e){var n=e.displayTerm,t=e.planType,i=e.hasDrmWarning,r=e.isExpired,o=(0,b._g)(),a=t===T.O.PREMIUM;if(void 0!==i&&i)return{text:p.j.episode_drm_warning,textType:m.d.WARNING};if(r)return{text:p.j.episode_expired,textType:m.d.INFO};if(null==n)return{text:"",textType:m.d.NONE};var s=(0,v.F)({extractedStarAtAndEndAt:n.extractedStarAtAndEndAt,referenceTimeForViewingTimeLeft:o}).viewingTimeLeft;return null==s||n.onDemandType===h.Iu.VIDEO_ON_DEMAND_TYPE_SUBSCRIPTION?{text:"",textType:m.d.NONE}:n.onDemandType===h.Iu.VIDEO_ON_DEMAND_TYPE_ADVERTISING?a?{text:"",textType:m.d.NONE}:{text:(0,f.H)(p.j.episode_viewing_time_left_text,{timeLeft:s}),textType:m.d.INFO}:n.onDemandType===h.Iu.VIDEO_ON_DEMAND_TYPE_PARTNER_SERVICE_SUBSCRIPTION?{text:(0,f.H)(p.j.episode_viewing_time_left_text,{timeLeft:s}),textType:m.d.INFO}:{text:"",textType:m.d.NONE}},g=t(75769),E=t(96909),S=t(38540),P=t(35590),I=t(83432),N=t(52263),A=(0,t(27762).Y)({video_episode_view_count:"{{viewCount}}è¦è´"}),w=t(26483),D=t(15257),O=t(98631),C=t(78630),R=t(69e3),x=t(24422),$=t(12812),k=t(52359),U=t(96244),B=t(93452),L=t(17282),M=t(78307),H=t(43312),W=t(66811),V=function(e){var n,t,o,u,d,_,h=e.entity,v=e.nowInSeconds,p=c.useContext(a.m),I=c.useMemo(function(){return p===s.b.MOBILE},[p]),A=(0,c.useContext)(w.P),U=(0,W.md)((0,H.c5)(C.G))&&(0,O.N)({precedenceTerm:h.precedenceTerm,nowInSeconds:v}),B=(0,E.F)(h),L=h.onDemandType,V=(0,g.E)(h.onDemandType),G=(0,S.P)({extractedStartAtAndEndAts:B,onDemandType:L}),F=(0,P.V)(B),j=h.mediaStatus.drm,q=(0,M.QE)(r.N),Y=!I&&j&&!q,K=y({displayTerm:G,planType:A,isExpired:F,hasDrmWarning:Y}),z=K.text,J=K.textType,Q=(0,k.c)({episode:{terms:[{onDemandType:V,endAt:0}]}}),X=null!=(n=null==h||null==(u=h.partnerContentViewingAuthorities)||null==(o=u.at(0))?void 0:o.displayName)?n:null,Z=null!=Q&&!Y&&!F,ee=J!==m.d.NONE,en=(null==(d=h.precedenceTerm)?void 0:d.freeAvailability)!=null?(0,f.H)(N.h.premium_precedence_free_start_at_supplement,{date:(0,b.tD)((0,b.l6)(h.precedenceTerm.freeAvailability.startAt))}):null;return U?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("div",{className:l()("com-video-EpisodeTitleBlock__premium-precedence-label-container",{"com-video-EpisodeTitleBlock__premium-precedence-label-container--mobile":I}),children:(0,i.jsx)(D.G,{})}),(0,i.jsxs)("div",{className:l()("com-video-EpisodeTitleBlock__premium-precedence-benefit",{"com-video-EpisodeTitleBlock__premium-precedence-benefit--mobile":I}),children:[(0,i.jsx)("span",{className:"com-video-EpisodeTitleBlock__premium-precedence-benefit-text",children:N.h.premium_precedence_benefit_text_episode_detail}),A!==T.O.PREMIUM&&null!=en?(0,i.jsx)("span",{className:"com-video-EpisodeTitleBlock__premium-precedence-free-start-at",children:en}):null]})]}):(0,i.jsxs)("div",{className:l()("com-video-EpisodeTitleBlock__expire-text",{"com-video-EpisodeTitleBlock__expire-text--mobile":I}),children:[Z?(0,i.jsx)($.o,{viewingType:Q,labelText:X}):null,(0,i.jsx)(R.g,{trialWatchingEnabled:(null==(_=h.trialWatching)?void 0:_.enabled)===!0,onDemandType:V,contentPartnerAuthorities:null!=(t=h.partnerContentViewingAuthorities)?t:[]}),ee?(0,i.jsx)(x.p,{text:z,textType:J}):null]})}
1,G=function(e){var n,t,r,o=e.entity,u=e.viewCount,h=e.hideSeasonTitle,v=e.nowInSeconds,p=(0,L.DE)(),T=c.useContext(a.m),m=c.useMemo(function(){return T===s.b.MOBILE},[T]),y=c.useMemo(function(){return h?o.series.title:[o.series.title,o.season.name].filter(Boolean).join(" | ")},[o,h]),g=(t=(n={entity:o,viewCount:u}).entity,r=n.viewCount,{duration:c.useMemo(function(){return(0,U.E)(t.info.duration)},[t]),viewCount:c.useMemo(function(){return null==r?null:(0,f.H)(A.video_episode_view_count,{viewCount:(0,B.E)(r)})},[r]),broadcastAt:c.useMemo(function(){if(0!==t.broadcastAt){var e=(0,b.$4)((0,b.l6)(t.broadcastAt)),n=e.year,i=e.month,r=e.day;return(0,f.H)(I.G.episode_episode_broadcast_at,{year:String(n),month:String(i),day:String(r)})}return 0!==t.credit.released?(0,f.H)(I.G.episode_episode_released_year,{year:String(t.credit.released)}):""},[t])}),E=(0,_.zb)(o),S=(0,_.cv)(o);return(0,i.jsxs)("div",{className:"com-video-EpisodeTitleBlock",children:[(0,i.jsx)(d,{seriesInfoText:y,episodeEntity:o}),(0,i.jsxs)("p",{className:l()("com-video-EpisodeTitleBlock__supplement",{"com-video-EpisodeTitleBlock__supplement--mobile":m}),children:[(0,i.jsx)("span",{className:"com-video-EpisodeTitleBlock__supplement-item",children:g.duration}),(0,i.jsx)("span",{className:"com-video-EpisodeTitleBlock__supplement-item",children:g.broadcastAt}),p&&null!=g.viewCount&&(0,i.jsx)("span",{className:"com-video-EpisodeTitleBlock__supplement-item",children:g.viewCount})]}),p&&(0,i.jsx)(c.Suspense,{fallback:null,children:(0,i.jsx)(V,{entity:o,nowInSeconds:v})}),p&&!m&&(0,i.jsxs)("div",{className:"com-video-EpisodeTitleBlock__ad-info",children:[E?I.G.episode_episode_joex_ad_info:null,S?I.G.episode_episode_joay_ad_info:null,E||S||null==o.externalProvider?null:I.G.episode_episode_third_party_ad_info]})]})}},17218:function(e,n,t){var i=t(80914),r=t(13571),o=t(99536),a=t(74344);function s(e,n,t){return(0,i._)(function(){var i,s;return(0,r._)(this,function(r){switch(r.label){case 0:return r.trys.push([0,2,,3]),[4,n.usecase().consumeEpisodeBaseMeta({episodeId:t})];case 1:return i=r.sent(),(0,o.Wk)(i,function(n){var i=n.episodeNumber;e.set(t,{episodeNumber:i})}),[3,3];case 2:return s=r.sent(),(0,a.H)(s),[3,3];case 3:return[2]}})})()}t.d(n,{u:function(){return s}})},88925:function(e,n,t){t.d(n,{t:function(){return i}});function i(e,n){return null!=e&&(null==n||!!e.terms&&null!==n&&e.terms.some(function(e){return e.onDemandType===n.onDemandType}))}},59361:function(e,n,t){var i=t(62906),r=t(90563),o=t(57215),a=t(39305),s=t(10321),u=t(82624),l=t(73447),c=t(98046),d=t(50530),_=t(88785),h=t(49859),v=t(91970),p=t(32746),f=t(99536),T=t(73071),m=t(10327),b=t(74344),y=t(67931),g=t(97188),E=t(88677),S=t(57011),P=function(){function e(n){var t=n.observer,r=n.episode,a=n.initialPlaybackOffset,s=n.clientId,u=n.userId,d=n.viewingSessionId,h=n.isTrialWatching;(0,i._)(this,e),(0,o._)(this,"_observer",void 0),(0,o._)(this,"_payload",void 0),(0,o._)(this,"_isPlaying",void 0),(0,o._)(this,"_lastPayload",void 0);var v=(0,p._g)(),f=(0,l.g)().get(),T=(0,_.d)().getPageId(),m=T.currentPageId,b=T.previousPageId;this._observer=t,this._isPlaying=!1,this._payload={programId:r.id,freeProgram:r.label.free,isTrialWatching:h,startPosition:a,endPosition:a,watchStartAt:v,watchEndAt:v,portrait:!1,speedRate:c.P,clientIdForGA:s,userId:u,viewingSessionId:d,url:f,pageId:m,inflowId:b},this._lastPayload=null,this._onDestroy=this._onDestroy.bind(this)}return(0,r._)(e,[{key:"activate",value:function(){var e,n,t,i,r,o,a,s,u,l,c,d=new g.yU(this._onDestroy);return d.add((e=this,this._observer.onPlaybackStarted$.subscribe({next:function(n){e.setPayload({watchStartAt:(0,p._g)(),startPosition:n}),e.onPlaybackStarted()},error:b.H}))),d.add((n=this,t=this._observer,i=new g.yU,r=!1,i.add(t.onSeeking$.subscribe({next:function(){r=!0},error:b.H})),i.add(t.onSeeked$.subscribe({next:function(){r=!1},error:b.H})),i.add(t.onChangeCurrentPosition$.pipe((0,S.p)(function(){return!r})).subscribe({next:function(e){n.setPayload({endPosition:e})},error:b.H})),i)),d.add((o=this,this._observer.onPlaybackComplete$.subscribe({next:function(e){o.setPayload({watchEndAt:(0,p._g)(),endPosition:e}),o.onPlaybackPaused(),o.sendPayload()},error:b.H}))),d.add((a=this,this._observer.onSeeking$.subscribe({next:function(e){if(a.isPlaying){var n=a.getPayload(),t=n.startPosition,i=n.endPosition,r=(0,p._g)();a.setPayload({watchEndAt:r}),t!==i&&a.sendPayload(),a.setPayload({watchStartAt:r,startPosition:e,endPosition:e})}},error:b.H}))),d.add((s=this,this._observer.onPause$.subscribe({next:function(e){s.isPlaying&&(s.setPayload({watchEndAt:(0,p._g)(),endPosition:e}),s.onPlaybackPaused(),s.sendPayload())},error:b.H}))),d.add((u=this,this._observer.onChangePlaybackRate$.subscribe({next:function(e){if(!u.isPlaying)return void u.setPayload({speedRate:e});u.setPayload({watchEndAt:(0,p._g)()}),u.sendPayload();var n=u.getPayload(),t=n.watchEndAt,i=n.endPosition;
1u.setPayload({speedRate:e,watchStartAt:t,startPosition:i})},error:b.H}))),(0,y.B)((l=this,(0,m.k)()?null:(0,T.D0)(function(){if(l.isPlaying){l.setPayload({watchEndAt:(0,p._g)()}),l.sendPayload();var e=l.getPayload(),n=e.watchEndAt,t=e.endPosition;l.setPayload({watchStartAt:n,startPosition:t})}})),function(e){d.add(e)}),(0,y.B)((c=this,(0,m.k)()?null:(0,E.R)(window,"pagehide").subscribe({next:function(){c.isPlaying&&(c.setPayload({watchEndAt:(0,p._g)()}),c.sendPayload(!0))},error:b.H})),function(e){d.add(e)}),d}},{key:"_onDestroy",value:function(){this.isPlaying&&(this.setPayload({watchEndAt:(0,p._g)()}),this.sendPayload())}},{key:"setPayload",value:function(e){Object.assign(this._payload,e)}},{key:"getPayload",value:function(){return this._payload}},{key:"sendPayload",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this._setScreenOrientationToPayload(),this._setPageDataToPayload();var n=this._payload.watchStartAt===this._payload.watchEndAt,t=null!==this._lastPayload&&this._lastPayload.startPosition===this._payload.startPosition&&this._lastPayload.endPosition===this._payload.endPosition;n||t||(0,u.$h)(this._payload,e),this._lastPayload=(0,a._)({},this._payload)}},{key:"_setPageDataToPayload",value:function(){if(!(0,m.k)()){var e=(0,l.g)().get(),n=(0,_.d)().getPageId(),t=n.currentPageId,i=n.previousPageId;this.setPayload({url:e,pageId:t,inflowId:i})}}},{key:"_setScreenOrientationToPayload",value:function(){if(!(0,m.k)()){var e=(0,T.K$)();this.setPayload({portrait:e})}}},{key:"onPlaybackStarted",value:function(){this._isPlaying=!0}},{key:"onPlaybackPaused",value:function(){this._isPlaying=!1}},{key:"isPlaying",get:function(){return this._isPlaying}}]),e}();function I(e){var n=e.observer,t=e.episode,i=e.initialPlaybackOffset,r=e.isTrialWatching,o=e.viewingSessionId,a=void 0===o?(0,s.l)():o,u=(0,v.F5)().getUserId();return new P({observer:n,episode:t,initialPlaybackOffset:i,clientId:(0,d.f)(),userId:(0,f.HQ)(u)?u.val:h.V.of(""),viewingSessionId:a,isTrialWatching:r})}t.d(n,{O:function(){return I}})},29110:function(e,n,t){var i=t(62906),r=t(57215),o=t(82982),a=function e(n){var t,a;(0,i._)(this,e),(0,r._)(this,"id",void 0),(0,r._)(this,"label",void 0),(0,r._)(this,"thumbComponent",void 0),(0,r._)(this,"subGenreIds",[]),(0,r._)(this,"subSubGenreIds",[]),this.id=(0,o.Y)(n.id),this.label=(0,o.Y)(n.label),this.thumbComponent=n.thumbComponent,this.subGenreIds=null!=(t=n.subGenreIds)?t:[],this.subSubGenreIds=null!=(a=n.subSubGenreIds)?a:[],Object.freeze(this)};t.d(n,{v:function(){return a}})},42051:function(e,n,t){var i=t(62906),r=t(90563),o=t(57215),a=t(86862),s=t(71889),u=t(96487),l=function(){function e(){(0,i._)(this,e),(0,o._)(this,"_usecase",void 0);var n=(0,s.N)(a.bx);this._usecase=(0,u.g)(n)}return(0,r._)(e,[{key:"usecase",get:function(){return this._usecase}}]),e}();t.d(n,{s:function(){return l}})},71889:function(e,n,t){t.d(n,{X:function(){return f},N:function(){return T}});var i,r=t(80914),o=t(62906),a=t(90563),s=t(57215),u=t(13571),l=t(83779),c=t(44533),d=function e(n){var t,i,r,a,u;(0,o._)(this,e),(0,s._)(this,"status",void 0),(0,s._)(this,"onDemandType",void 0),(0,s._)(this,"viewing",void 0),(0,s._)(this,"endAt",void 0),(0,s._)(this,"viewableDuration",void 0),(0,s._)(this,"trialWatchingStatus",void 0),this.status=null!=(t=n.status)?t:c.G.DISALLOWED,this.onDemandType=null!=(i=n.onDemandType)?i:c.T.UNKNOWN,this.viewing=null!=(r=n.viewing)&&r,this.endAt=null!=(a=n.endAt)?a:0,this.viewableDuration=n.viewableDuration,this.trialWatchingStatus=null!=(u=n.trialWatchingStatus)?u:l._I.TRIAL_WATCHING_STATUS_UNSPECIFIED},_=t(54818),h=t(45501),v=t(99536),p=function(){function e(n){(0,o._)(this,e),(0,s._)(this,"_driver",void 0),this._driver=n}return(0,a._)(e,[{key:"get",value:function(e){return(0,r._)(function(e){var n,t,i,r,o,a,s,c;return(0,u._)(this,function(u){switch(u.label){case 0:return n=e.programId,t=e.device,i="/v1/video/licenses/vod/".concat(n,"?device=").concat(t),[4,this._driver.getWithCacheInvalidation(i,{})];case 1:switch(o=(r=u.sent()).status){case h.OK:return[3,2];case h.AY:return[3,4];case h.p2:return[3,5];case h.n:return[3,6]}return[3,7];case 2:return[4,(0,_.z)(r)];case 3:return a=u.sent(),s=l.nZ.fromJSON(a),c=new d({status:(0,l.wj)(s.status),onDemandType:(0,l.qy)(s.onDemandType),viewing:s.viewing,endAt:s.endAt,viewableDuration:s.viewableDuration,trialWatchingStatus:s.trialWatchingStatus}),[2,(0,v.TC)(c)];case 4:return[2,(0,v.KC)(0)];case 5:return[2,(0,v.KC)(1)];case 6:return[2,(0,v.KC)(2)];case 7:throw RangeError("".concat(i," enters unreachable path with status code: ").concat(o));case 8:return[2]}})}).apply(this,arguments)}}]),e}(),f=((i={})[i.UNSUPPORTED_DEVICE=0]="UNSUPPORTED_DEVICE",i[i.CONTENT_NOT_FOUND=1]="CONTENT_NOT_FOUND",i[i.INTERNAL_ERROR=2]="INTERNAL_ERROR",i);function T(e){return new p(e)}},96487:function(e,n,t){var i,r=t(80914),o=t(62906),a=t(90563),s=t(57215),u=t(13571),l=t(71889),c=t(99536),d=function(){function e(n){(0,o._)(this,e),(0,s._)(this,"_gateway",void 0),this._gateway=n}return(0,a._)(e,[{key:"check",value:function(e){return(0,r._)(function(){var n;return(0,u._)(this,function(t){switch(t.label){case 0:return[4,this._gateway.get(e)];case 1:return[2,(n=t.sent()).ok?(0,c.TC)(n.val):(0,c.KC)(function(e){switch(e){case l.X.UNSUPPORTED_DEVICE:return 0;case l.X.CONTENT_NOT_FOUND:case l.X.INTERNAL_ERROR:return 1}}(n.err))]}})}).call(this)}}]),e}(),_=((i={})[i.UNSUPPORTED_DEVICE=0]="UNSUPPORTED_DEVICE",i[i.GENERIC_ERROR=1]="GENERIC_ERROR",i);function h(e){return new d(e)}t.d(n,{b:function(){return _},g:function(){return h}})},92552:function(e,n,t){var i=t(44533),r=t(55416),o=t(32746),a=function(e){var n,t=e.userSubscriptions,a=e.episodeEntity,s=e.license,u=null==(n=a.terms)?void 0:n.find(function(e){return e.onDemandType===s.onDemandType});if(s.status!==i.G.ALLOWED||null==u)return null;switch(u.onDemandType){case i.T.ADVERTISING:case i.T.PARTNER_SERVICE_SUBSCRIPTION:return null;case i.T.SUBSCRIPTION:return(0,r.t)({userSubscriptions:t,unixTime:(0,o._g)()});case i.T.TRANSACTIONAL:case i.T.UNKNOWN:return null;default:return u.onDemandType,null}};t.d(n,{f:function(){return a}})},33356:function(e,n,t){var i,r,o=((i={})[i.PremiumPlanRequired=1]="PremiumPlanRequired",i[i.DeviceUnsupported=2]="DeviceUnsupported",i),a=((r={}).ios="ios",r.appletv="appletv",r.android="android",r.androidtv="androidtv",r.firetv="firetv",r.web="web",r.webmobile="webmobile",r.clova="clova",r.iptv="iptv",r);t.d(n,{d_:function(){return"timeshift"},qO:function(){return o},yt:function(){return a}})},33682:function(e,n,t){var i=t(7738),r=t(3429),o=t(10321);function a(){var e=(0,i.nv)(),n=e.get(r.hB);if(null==n){var t=(0,o.l)();return e.set(r.hB,t),t}return n}t.d(n,{S:function(){return a}})},39834:function(e,n,t){var i=t(15684),r=[i.wB.EXTERNAL_PROVIDER_TYPE_EX,i.wB.EXTERNAL_PROVIDER_TYPE_AY];function o(e){var n;return(null==e||null==(n=e.externalProvider)?void 0:n.type)===i.wB.EXTERNAL_PROVIDER_TYPE_EX}function a(e){var n;return(null==e||null==(n=e.externalProvider)?void 0:n.type)===i.wB.EXTERNAL_PROVIDER_TYPE_AY}function s(e){if(null==e)return!1;var n=e.externalProvider;return null!=n&&null!=n.type}function u(e){if(null==e)return!1;var n=e.externalProvider;return null==n||r.some(function(e){return e===n.type})}t.d(n,{Kw:function(){return u},cv:function(){return a},lc:function(){return s},zb:function(){return o}})},85139:function(e,n,t){var i=t(74284),r=t(7738),o=t(3429),a=t(10321),s=t(32746);function u(){var e=(0,r.nv)(),n=e.get(o.zK);if(null==n){var t=(0,a.l)();return e.set(o.zK,t),t}return n}function l(e){var n,t,a,u;n=(0,r.nv)().get(o.A_),t=(0,s.aI)(),null!=n&&t-Number(n)<s.bp||(Object.values({joexUrl:"".concat(i.FH.joex_cookie_sync,"?a_uid=").concat(e),supershipUrl:"".concat(i.FH.superShip_cookie_sync,"?proto=abematv&sspuid=").concat(e)}
1).forEach(function(e){new Image().src=e}),a=(0,r.nv)(),u=(0,s.aI)(),a.set(o.A_,String(u)))}t.d(n,{G1:function(){return l},YP:function(){return u}})},73886:function(e,n,t){var i,r=t(74284),o=t(97394),a=t(10321);function s(){return null==i?"":i}function u(){var e,n,t=encodeURIComponent(window.location.href),o=(String(Math.random())+"000000000").substr(2,9);i=(0,a.l)();var s=(i=(e={beaconUrl:"".concat(r.OZ.video_research,"/").concat("".concat(o,".gif")),tagId1:"5101",tagId2:"8888",url:t,vrOpt1:"sync",uuid:i}).uuid,n=new URLSearchParams([["vr_tagid1",e.tagId1],["vr_tagid2",e.tagId2],["url",e.url],["vr_opt1",e.vrOpt1],["vr_opt2",e.uuid]]),"".concat(e.beaconUrl,"?").concat(n));new Image().src=s}(0,o.sd)(function(){i=null}),t.d(n,{F1:function(){return u},q0:function(){return s}})},3590:function(e,n,t){var i=t(21790),r=t(70802),o=t(98628),a=t(42770),s=t(60506),u=t(33682),l=t(85139),c=t(73886),d=t(42204),_=t(87328),h=t(53926),v=t(17587),p=t(39489),f=t(88785),T=t(49997),m=t(73071);function b(e){var n,t=e.episodeId,b=e.isPremium,y=e.planIds,g=e.noAds,E=(0,T.R0)(s.N),S=(0,a.Jz)(),P=null!=(n=(0,o.vz)().get())?n:"",I=(0,i.z5)().userProfileValue.userId,N=(0,T.$N)(),A=(0,f.d)().getPageId(),w=A.currentPageId,D=A.previousPageId,O=p.A.requestId,C=p.A.inflowRequestId,R=(0,_.ZI)(),x=(0,r.p)().token;return{programId:t,abemaInstallationId:P,serviceUserId:I,platform:"web",os:E,ua:s.N.ua,location:S,url:N,pageID:w,prevPageID:D,requestID:O,inflowRequestID:C,isPremium:+!!b,planIds:y,noAds:g,getPortrait:function(){return R===d.b.DESKTOP?void 0:(0,m.K$)()},getConnectionType:function(){var e=(0,v.g)();return"mobile"===e?"transport_cellular":"wifi"===e?"transport_wifi":void 0},s2suid:x,getOptOut:function(){return+!!(0,h.zR)()},adId:(0,l.YP)(),vrSessionId:(0,c.q0)(),thirdPartyUuid:(0,u.S)(),googleInstreamVideoNonce:"[GOOGLE_INSTREAM_VIDEO_NONCE]"}}t.d(n,{O:function(){return b}})},71650:function(e,n,t){var i=t(21790),r=t(98628),o=t(42770),a=t(60506),s=t(85139),u=t(73886),l=t(10321),c=t(87858),d=t(50530),_=t(85723),h=t(17587),v=t(39489),p=t(17411),f=t(88785),T=t(49997),m=t(91970),b=t(32746),y=t(99536),g=t(73071);function E(e){var n,t,E,S,P,I,N=e.episode,A=e.isAutoplay,w=e.isTrialWatching,D=e.volume,O=(0,r.vz)().get(),C=(0,f.d)().getPageId(),R=C.previousPageId,x=C.currentPageId,$=(0,m.F5)().getUserId(),k=(0,i.z5)().userSubscriptions,U=(0,_.W)({userSubscriptions:k}),B=null==N||null==(t=N.termsValue)?void 0:t.findForFree();return{contents_type:"episode",delivery_method:"streaming",drm_system:void 0,watch_type:"ondemand",video_quality_setting:"auto",volume_setting:D,is_free_program:null!=B&&null!=B.endAt&&B.endAt>(0,b._g)(),is_background:!1,is_preview:!1,is_silent:!1,is_autoplay:A,is_trial_watching:w,is_comment_on:!1,program_duration:null==N?void 0:N.info.duration,partner_episode_id:null==N||null==(E=N.externalProvider)?void 0:E.originalProgramId,partner_program_id:null==N||null==(S=N.externalProvider)?void 0:S.originalId,partner_ptitle:(null==N?void 0:N.season.name)===""?null==N?void 0:N.series.title:"".concat(null==N?void 0:N.series.title," ").concat(null==N?void 0:N.season.name),partner_season_id:null==N||null==(P=N.externalProvider)?void 0:P.originalSeasonId,partner_series_id:null==N||null==(I=N.externalProvider)?void 0:I.originalSeriesId,partner_session_id:(0,u.q0)(),partner_title:null==N?void 0:N.title,partner_uid:(0,s.YP)(),qat:"is_playing_new",qav:(0,c.K)("v26.917.1"),qct:null!=(n=(0,h.g)())?n:void 0,qdi:null!=O?O:void 0,qgci:(0,d.f)(),qii:R,qiri:v.A.inflowRequestId,qlo:(0,o.Jz)(),qos:(0,T.R0)(a.N),qpi:x,qpl:"web",qri:v.A.requestId,qsi:(0,p.u0)(),qso:(0,g.Vv)(),qsui:(0,y.HQ)($)?$.val:void 0,qt:location.href,qti:(0,b.aI)(),qua:a.N.ua,qv:"1-5-0",rd:(0,l.l)(),qpli:U,video_codec:"AVC"}}t.d(n,{q:function(){return E}})},44981:function(e,n,t){var i=t(44533);function r(e){var n=e.onDemandType;switch(n){case i.T.ADVERTISING:return"free";case i.T.SUBSCRIPTION:return"subscription";case i.T.PARTNER_SERVICE_SUBSCRIPTION:return"partner";case i.T.TRANSACTIONAL:case i.T.UNKNOWN:return"free";default:throw Error("onDemandType: ".concat(n," is not expected in getPaymentType."))}}t.d(n,{N:function(){return r}})},96909:function(e,n,t){var i=t(91060),r=t(75769);function o(e){var n,t,o,a,s,u,l,c,d,_,h,v,p,f,T;return(null!=(n=null==(u=e.termsValue)||null==(s=u.terms)?void 0:s.length)?n:0)===0?{free:null,premium:null,pss:null}:{free:{extractedStarAtAndEndAt:{startAt:null,endAt:null!=(t=null==(d=e.termsValue)||null==(c=d.terms)||null==(l=c.find(function(e){return(0,r.E)(e.onDemandType)===i.Iu.VIDEO_ON_DEMAND_TYPE_ADVERTISING}))?void 0:l.endAt)?t:null},onDemandType:i.Iu.VIDEO_ON_DEMAND_TYPE_ADVERTISING},premium:{extractedStarAtAndEndAt:{startAt:null,endAt:null!=(o=null==(v=e.termsValue)||null==(h=v.terms)||null==(_=h.find(function(e){return(0,r.E)(e.onDemandType)===i.Iu.VIDEO_ON_DEMAND_TYPE_SUBSCRIPTION}))?void 0:_.endAt)?o:null},onDemandType:i.Iu.VIDEO_ON_DEMAND_TYPE_SUBSCRIPTION},pss:{extractedStarAtAndEndAt:{startAt:null,endAt:null!=(a=null==(T=e.termsValue)||null==(f=T.terms)||null==(p=f.find(function(e){return(0,r.E)(e.onDemandType)===i.Iu.VIDEO_ON_DEMAND_TYPE_PARTNER_SERVICE_SUBSCRIPTION}))?void 0:p.endAt)?a:null},onDemandType:i.Iu.VIDEO_ON_DEMAND_TYPE_PARTNER_SERVICE_SUBSCRIPTION}}}t.d(n,{F:function(){return o}})},95241:function(e,n,t){var i=t(73267),r=t(37804),o=t(12668),a=t(75523),s=(0,o.R_)(function(e,n){
1n(i.s);var t=e(r.Q);return(0,a.eU)(function(e){var n=new URLSearchParams(e(t).location.search),i=n.get("playlistId"),r="true"===n.get("next");return null!==i&&""!==i||r})});t.d(n,{P:function(){return s}})},43871:function(e,n,t){var i=t(62906),r=t(90563),o=t(57215),a=t(74344),s=t(7927),u=t(97188),l=t(74704),c=t(14291),d=t(57011),_=t(79101),h=function(){function e(){(0,i._)(this,e),(0,o._)(this,"_listener",void 0),(0,o._)(this,"_onDurationChanged$",void 0),(0,o._)(this,"_onCurrentTimeMsChanged$",void 0),(0,o._)(this,"_onDeactivate$",void 0),(0,o._)(this,"_subscription",void 0),(0,o._)(this,"contentSession",void 0),(0,o._)(this,"onSeekEnd$",void 0),(0,o._)(this,"onCurrentPlaybackItemChanged$",void 0),(0,o._)(this,"onContentTimeReceived$",void 0),(0,o._)(this,"onUnexpectedQualityDeterioration$",void 0),(0,o._)(this,"onRetry$",void 0),(0,o._)(this,"onPrepared$",void 0),(0,o._)(this,"onPlaying$",void 0),(0,o._)(this,"onPaused$",void 0),(0,o._)(this,"onEnd$",void 0),(0,o._)(this,"onFailed$",void 0),(0,o._)(this,"onIsBufferingChanged$",void 0),(0,o._)(this,"onMuted$",void 0),(0,o._)(this,"onIntentionalLoadReduction$",void 0),(0,o._)(this,"onSubtitleTrackChanged$",void 0),(0,o._)(this,"onTrialStart$",void 0),(0,o._)(this,"onTrialEnd$",void 0),(0,o._)(this,"onStreamChanged$",void 0),this.contentSession=null;var n=this.onSeekEnd$=new s.B,t=this.onCurrentPlaybackItemChanged$=new s.B,a=this.onContentTimeReceived$=new s.B,u=this.onUnexpectedQualityDeterioration$=new s.B,l=this.onRetry$=new s.B,c=this.onPrepared$=new s.B,d=this.onPlaying$=new s.B,_=this.onPaused$=new s.B,h=this.onEnd$=new s.B,v=this.onFailed$=new s.B,p=this.onIsBufferingChanged$=new s.B,f=this.onMuted$=new s.B,T=this.onIntentionalLoadReduction$=new s.B,m=this.onSubtitleTrackChanged$=new s.B,b=this.onTrialStart$=new s.B,y=this.onTrialEnd$=new s.B,g=this.onStreamChanged$=new s.B,E=function(){function e(){(0,i._)(this,e)}return(0,r._)(e,[{key:"onSeekEnd",value:function(){n.next()}},{key:"onCurrentPlaybackItemChanged",value:function(e){t.next(e)}},{key:"onContentTimeReceived",value:function(e){a.next(e)}},{key:"onUnexpectedQualityDeterioration",value:function(e){u.next(e)}},{key:"onRetry",value:function(e){l.next(e)}},{key:"onPrepared",value:function(){c.next()}},{key:"onPlaying",value:function(){d.next()}},{key:"onPaused",value:function(){_.next()}},{key:"onEnd",value:function(){h.next()}},{key:"onFailed",value:function(e){v.next(e)}},{key:"onIsBufferingChanged",value:function(e){p.next(e)}},{key:"onMuted",value:function(e){f.next(e)}},{key:"onIntentionalLoadReduction",value:function(e){T.next(e)}},{key:"onSubtitleTrackChanged",value:function(e){m.next(e)}},{key:"onTrialStart",value:function(){b.next()}},{key:"onTrialEnd",value:function(){y.next()}},{key:"onStreamChanged",value:function(e){g.next(e)}}]),e}();this._listener=new E,this._onDurationChanged$=new s.B,this._onCurrentTimeMsChanged$=new s.B,this._onDeactivate$=new s.B,this._subscription=null}return(0,r._)(e,[{key:"onDurationChanged$",get:function(){return this._onDurationChanged$.asObservable()}},{key:"onCurrentTimeChanged$",get:function(){return this._onCurrentTimeMsChanged$.asObservable()}},{key:"onDeactivate$",get:function(){return this._onDeactivate$.asObservable()}},{key:"activate",value:function(e,n){var t=this;if(null!=this._subscription)throw Error("The content session observer is already activated.");if(this._subscription=new u.yU,this.contentSession=e,e.addEventListener(this._listener),null!=n.intervalMs){var i=n.intervalMs;this._subscription.add((0,l.O)(0,i).pipe((0,c.T)(function(){return e.durationMs}),(0,d.p)(function(e){return null!=e}),(0,_.F)()).subscribe({next:function(e){return t._onDurationChanged$.next(e)},error:a.H})),this._subscription.add((0,l.O)(0,i).pipe((0,c.T)(function(){return e.currentTimeMs}),(0,_.F)()).subscribe({next:function(e){return t._onCurrentTimeMsChanged$.next(e)},error:a.H}))}}},{key:"deactivate",value:function(){var e,n;null==(e=this.contentSession)||e.removeEventListener(this._listener),null==(n=this._subscription)||n.unsubscribe(),this._subscription=null,this.contentSession=null,this._onDeactivate$.next()}}]),e}();t.d(n,{M:function(){return h}})},24925:function(e,n,t){t.d(n,{O:function(){return E}});var i=t(62906),r=t(90563),o=t(57215),a=t(65145),s=t(74344),u=t(84384),l=t(7927),c=t(4025),d=t(43871),_=t(32746),h=t(40544),v=t(73730),p=t(97188),f=t(9346),T=t(57011),m=t(35119),b=t(6
17590),y=t(48407),g=t(80713),E=function(){function e(n,t){var r,a,d;(0,i._)(this,e),(0,o._)(this,"_contentSession",void 0),(0,o._)(this,"_options",void 0),(0,o._)(this,"_intent",void 0),(0,o._)(this,"_observer",void 0),(0,o._)(this,"_subscription",void 0),(0,o._)(this,"_isPrepareToPlayRequested",void 0),(0,o._)(this,"onDeactivate$",void 0),this._contentSession=n,this._options=t,this._intent=(a=(r=new l.B).subscribe({next:function(e){(0,s.H)("ContentSessionPlayerContext have not been activated. Called intent is ".concat(e.type,"."))},error:s.H}),d={dispatch:function(e){r.next(e)},asObservable:function(){return r.asObservable()},unsubscribeUninitializedErrorSubscription:function(){a.unsubscribe()}},{dispatcher:function(){return d},play:function(){var e=new u.QH;d.dispatch(e)},pause:function(){var e=new u.wN;d.dispatch(e)},replay:function(e){var n=new u.$x(e);d.dispatch(n)},seekTo:function(e){var n=new u.ji(e);d.dispatch(n)},changeVolume:function(e){var n=new u.uw(e);d.dispatch(n)},changePlaybackRate:function(e){var n=new u.Dv(e);d.dispatch(n)},changePresentationMode:function(e){var n=new u.rV(e);d.dispatch(n)},activateMetricsCollection:function(e){var n=new u.e6(e);d.dispatch(n)},setMetricsOptions:function(e){var n=new u.vC(e);d.dispatch(n)},selectSubtitle:function(e){var n=new u.y7(e);d.dispatch(n)}}),this._observer={onGetMetaData$:new l.B,onPlayerReady$:new l.B,onStartPlaying$:new l.B,onInitialPlay$:new l.B,onPlaybackStarted$:new l.B,onPause$:new l.B,onSeeking$:new l.B,onSeeked$:new l.B,onCatchUpWithBroadcast$:new l.B,onPlaybackComplete$:new l.B,onReplay$:new l.B,onChangeVolume$:new l.B,onChangeCurrentPosition$:new c.t(0),onChangeDuration$:new c.t(0),onChangePlaybackRate$:new l.B,onChangePresentationMode$:new l.B,onError$:new l.B,onDestroy$:new l.B,onChangeStreamByPersonalizedAd$:new l.B,onActivateMetrics$:new l.B,onPersonalizedAdvert$:new l.B,onSubtitleTrackChange$:new l.B,onTrialStart$:new l.B,onTrialEnd$:new l.B,onHDCPError$:new l.B,onChangeTrialEndAt$:new l.B},this._subscription=null,this._isPrepareToPlayRequested=!1,this.onDeactivate$=new l.B,this._contentSession.volume=this._options.initialVolume,this.getTimelineThumbnailSource=this.getTimelineThumbnailSource.bind(this)}return(0,r._)(e,[{key:"activate",value:function(e){var n,t,i,r,o,a,l,c,g,E,S,P,I,N,A,w,D=e.mountPoint,O=e.subtitleContainerView,C=e.startPosition,R=e.autoplay;null!=this._contentSession.videoView&&D.replaceChildren(this._contentSession.videoView),null!=O&&(this._contentSession.subtitleContainerView=O),this._subscription=new p.yU,this._intent.dispatcher().unsubscribeUninitializedErrorSubscription(),this._subscription.add((t=(n={playerDispatcher:this._intent.dispatcher().asObservable(),playerObserver:this._observer,contentSession:this._contentSession}).contentSession,i=n.playerObserver,r=n.playerDispatcher,o=new p.yU,a=!1,l=(0,m.x)(i.onPlayerReady$,{connector:function(){return new b.m(1)}}),o.add(l.connect()),c=r.pipe((0,y.o)(function(){return l})),o.add(c.subscribe({next:function(e){switch(e.type){case u.u$.Play:t.play(),a||(i.onStartPlaying$.next((0,_.T0)(t.currentTimeMs,{roundingMode:"floor"})),a=!0);break;case u.u$.Pause:t.pause();break;case u.u$.SeekTo:t.seek((0,_.l6)(e.offset));break;case u.u$.Replay:t.seek((0,_.l6)(e.offset)),t.play(),i.onReplay$.next(e.offset);break;case u.u$.ChangeVolume:t.volume=e.volume,i.onChangeVolume$.next(t.volume);break;case u.u$.ChangePlaybackRate:t.playbackRate=e.rate,i.onChangePlaybackRate$.next(t.playbackRate);break;case u.u$.ChangePresentationMode:i.onChangePresentationMode$.next(e.status);break;case u.u$.SelectSubtitle:t.selectSubtitle(e.id);break;case u.u$.ActivateMetricsCollection:i.onActivateMetrics$.next();break;case u.u$.SetMetricsOptions:break;default:throw RangeError("Unsupported PlayerAction type: ".concat(JSON.stringify(e)))}},error:s.H})),o)),this._subscription.add((E=(g={contentSession:this._contentSession,playerObserver:this._observer,onSeekStarted$:this._options.onSeekStarted$,onUnmountPlayer$:this.onDeactivate$,autoplay:R}).contentSession,S=g.playerObserver,P=g.onSeekStarted$,I=g.onUnmountPlayer$,N=g.autoplay,A=new p.yU,(w=new d.M).activate(E,{intervalMs:500}),A.add(function(){return w.deactivate()}),A.add(w.onPrepared$.subscribe({next:function(){return S.onPlayerReady$.next(N)},error:s.H}
1)),A.add(w.onPrepared$.subscribe({next:function(){return S.onChangeTrialEndAt$.next((0,_.T0)(E.trialEndAtMs,{roundingMode:"none"}))},error:s.H})),A.add(w.onPlaying$.pipe((0,f.s)(1)).subscribe({next:function(){return S.onInitialPlay$.next(E.isMuted?h.n.Muted:h.n.Play)},error:s.H})),A.add(w.onPlaying$.subscribe({next:function(){return S.onPlaybackStarted$.next((0,_.T0)(E.currentTimeMs,{roundingMode:"none"}))},error:s.H})),A.add(w.onPaused$.subscribe({next:function(){return S.onPause$.next((0,_.T0)(E.currentTimeMs,{roundingMode:"none"}))},error:s.H})),A.add(w.onSeekEnd$.subscribe({next:function(){return S.onSeeked$.next((0,_.T0)(E.currentTimeMs,{roundingMode:"none"}))},error:s.H})),A.add(w.onEnd$.subscribe({next:function(){return S.onPlaybackComplete$.next((0,_.T0)(E.currentTimeMs,{roundingMode:"none"}))},error:s.H})),A.add(w.onCurrentTimeChanged$.subscribe({next:function(e){return S.onChangeCurrentPosition$.next((0,_.T0)(e,{roundingMode:"none"}))},error:s.H})),A.add(w.onDurationChanged$.subscribe({next:function(e){return S.onChangeDuration$.next((0,_.T0)(e,{roundingMode:"none"}))},error:s.H})),A.add(w.onSubtitleTrackChanged$.subscribe({next:function(e){return S.onSubtitleTrackChange$.next(e)},error:s.H})),A.add(w.onTrialStart$.subscribe({next:function(){return S.onTrialStart$.next()},error:s.H})),A.add(w.onTrialEnd$.subscribe({next:function(){return S.onTrialEnd$.next()},error:s.H})),A.add(w.onFailed$.pipe((0,T.p)(function(e){return"hdcp_not_allowed"!==e.reason})).subscribe({next:function(e){return S.onError$.next(e)},error:s.H})),A.add(w.onFailed$.pipe((0,T.p)(function(e){return"hdcp_not_allowed"===e.reason})).subscribe({next:function(){return S.onHDCPError$.next()},error:s.H})),A.add(w.onContentTimeReceived$.subscribe({next:function(e){var n=E.currentPlaybackItem;if(null!=n&&("legacy_pg"===n.type||"main_content"===n.type)){var t=String((0,_.T0)(e,{roundingMode:"floor"})),i=new v.PD(["pg","1","","",n.id,t]);S.onGetMetaData$.next(i)}},error:s.H})),A.add(I.subscribe({next:function(){return S.onDestroy$.next()},error:s.H})),A.add(P.subscribe({next:function(e){return S.onSeeking$.next((0,_.T0)(e,{roundingMode:"none"}))},error:s.H})),A)),this._isPrepareToPlayRequested||(this._isPrepareToPlayRequested=!0,this._contentSession.prepareToPlay(this._options.useCase)),R&&(C>0&&this.intent.seekTo(C),this.intent.play())}},{key:"deactivate",value:function(){var e;this.onDeactivate$.next(),null==(e=this._subscription)||e.unsubscribe(),this._subscription=null}},{key:"intent",get:function(){return this._intent}},{key:"observer",get:function(){return this._observer}},{key:"contentSession",get:function(){return this._contentSession}},{key:"getTimelineThumbnailSource",value:function(e){var n=(0,_.l6)(e),t=this._contentSession.getTimelineThumbnail({atMs:n,width:a.KK*a.a6,height:a.pp*(a.Ft/a.a6),format:"png",quality:g.S.LOW});if(null==t)return null;var i=t.getSceneImageRect(n,{width:a.KK*a.a6,height:a.pp*(a.Ft/a.a6)});return null==i?null:{spriteImageUrl:t.url,thumbnailCropRect:{top:i.offset.y,left:i.offset.x,width:i.size.width,height:i.size.height}}}}]),e}()},95779:function(e,n,t){var i=t(39305),r=t(64558),o=t(17045),a=t(1102);function s(e,n){var t=function(t){var s=(0,a.useRef)(t.location);s.current=t.location;var u=n(),l=u.extractIdentity(t);return(0,o.E)(function(){return u.applyScrollTop("PUSH"===s.current.action?0:l),function(){u.setScrollTop(l)}},[u,l]),(0,r.jsx)(e,(0,i._)({},t))};return t.displayName="restoreScroll(".concat(e.displayName||e.name,")"),t}n.A=s,t.d(n,{a:function(){return s}})},15154:function(e,n,t){var i,r=t(32746),o=((i={}).Linear="linear",i.Timeshift="timeshift",i.Video="video",i),a=+r.zR,s=40*r.zR;t.d(n,{Af:function(){return s},aP:function(){return a},mk:function(){return o},yW:function(){return 10}})},60636:function(e,n,t){var i=t(15154);function r(e){switch(e.type){case i.mk.Linear:return{type:e.type,cid:e.channelId};case i.mk.Timeshift:return{type:e.type,cid:e.channelId,sid:e.slotId};case i.mk.Video:return{type:e.type,pid:e.episodeId,psid:e.partnerServiceId};default:throw Error("unexpected arg. you should each args")}}t.d(n,{p:function(){return r}})},40544:function(e,n,t){var i,r=((i={}).Play="play",i.Muted="muted",i.MutedByUser="muted by user",i.Paused="paused",i);t.d(n,{n:function(){return r}})},83779:function(e,n,t){var i="VIEWING_ALLOWED_STATUS_DISALLOWED",r="VIEWING_ALLOWED_STATUS_ALLOWED";function o(e){switch(e){case i:return 0;case r:return 1;default:return -1}}var a="ON_DEMAND_TYPE_UNKNOWN",s="ON_DEMAND_TYPE_SUBSCRIPTION",u="ON_DEMAND_TYPE_TRANSACTIONAL",l="ON_DEMAND_TYPE_ADVERTISING",c="ON_DEMAND_TYPE_PLATFORM_SUBSCRIPTION",d="ON_DEMAND_TYPE_PARTNER_SERVICE_SUBSCRIPTION";function _(e){switch(e){case a:return 0;case s:return 1;case u:return 2;case l:return 3;case c:return 4;case d:return 5;default:return -1}}var h={TRIAL_WATCHING_STATUS_UNSPECIFIED:"TRIAL_WATCHING_STATUS_UNSPECIFIED",TRIAL_WATCHING_STATUS_DISALLOWED:"TRIAL_WATCHING_STATUS_DISALLOWED",TRIAL_WATCHING_STATUS_ALLOWED:"TRIAL_WATCHING_STATUS_ALLOWED",UNRECOGNIZED:"UNRECOGNIZED"},v={fromJSON:function(e){return{status:f(e.status)?function(e){switch(e){case 0:case"VIEWING_ALLOWED_STATUS_DISALLOWED":return i;case 1:case"VIEWING_ALLOWED_STATUS_ALLOWED":return r;default:return"UNRECOGNIZED"}}(e.status):i,viewing:!!f(e.viewing)&&globalThis.Boolean(e.viewing),onDemandType:f(e.onDemandType)?function(e){switch(e){case 0:case"ON_DEMAND_TYPE_UNKNOWN":return a;case 1:case"ON_DEMAND_TYPE_SUBSCRIPTION":return s;case 2:case"ON_DEMAND_TYPE_TRANSACTIONAL":return u;case 3:case"ON_DEMAND_TYPE_ADVERTISING":return l;case 4:case"ON_DEMAND_TYPE_PLATFORM_SUBSCRIPTION":return c;case 5:case"ON_DEMAND_TYPE_PARTNER_SERVICE_SUBSCRIPTION":return d;default:return"UNRECOGNIZED"}}(e.onDemandType):a,endAt:f(e.endAt)?globalThis.Number(e.endAt):0,viewableDuration:f(e.viewableDuration)?globalThis.Number(e.viewableDuration):0,ttl:f(e.ttl)?globalThis.Number(e.ttl):0,download:f(e.download)?p.fromJSON(e.download):void 0,trialWatchingStatus:f(e.trialWatchingStatus)?function(e){switch(e){case 0:case"TRIAL_WATCHING_STATUS_UNSPECIFIED":return h.TRIAL_WATCHING_STATUS_UNSPECIFIED;case 1:case"TRIAL_WATCHING_STATUS_DISALLOWED":return h.TRIAL_WATCHING_STATUS_DISALLOWED;case 2:case"TRIAL_WATCHING_STATUS_ALLOWED":return h.TRIAL_WATCHING_STATUS_ALLOWED;default:return h.UNRECOGNIZED}}(e.trialWatchingStatus):h.TRIAL_WATCHING_STATUS_UNSPECIFIED}},toJSON:function(e){var n={};return e.status!==i&&(n.status=o(e.status)),!1!==e.viewing&&(n.viewing=e.viewing),e.onDemandType!==a&&(n.onDemandType=_(e.onDemandType)),0!==e.endAt&&(n.endAt=Math.round(e.endAt)),0!==e.viewableDuration&&(n.viewableDuration=Math.round(e.viewableDuration)),0!==e.ttl&&(n.ttl=Math.round(e.ttl)),void 0!==e.download&&(n.download=p.toJSON(e.download)),e.trialWatchingStatus!==
1h.TRIAL_WATCHING_STATUS_UNSPECIFIED&&(n.trialWatchingStatus=function(e){switch(e){case h.TRIAL_WATCHING_STATUS_UNSPECIFIED:return 0;case h.TRIAL_WATCHING_STATUS_DISALLOWED:return 1;case h.TRIAL_WATCHING_STATUS_ALLOWED:return 2;case h.UNRECOGNIZED:default:return -1}}(e.trialWatchingStatus)),n}},p={fromJSON:function(e){return{enable:!!f(e.enable)&&globalThis.Boolean(e.enable),retentionHours:f(e.retentionHours)?globalThis.Number(e.retentionHours):0,playbackPeriodHours:f(e.playbackPeriodHours)?globalThis.Number(e.playbackPeriodHours):0}},toJSON:function(e){var n={};return!1!==e.enable&&(n.enable=e.enable),0!==e.retentionHours&&(n.retentionHours=Math.round(e.retentionHours)),0!==e.playbackPeriodHours&&(n.playbackPeriodHours=Math.round(e.playbackPeriodHours)),n}};function f(e){return null!=e}t.d(n,{_I:function(){return h},nZ:function(){return v},qy:function(){return _},wj:function(){return o}})}}]);
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.