PageSourceSearch

https://abema.tv/assets/compat/0794d23a35890468.3158.bundle.js

js abema.tv collected 2026-10-01 08:43:55 UTC 13,397 bytes, 1 lines download raw bytes

1"use strict";(globalThis.__LOADABLE_LOADED_CHUNKS__||=[]).push([[3158],{72263(t,e,r){r.d(e,{W:()=>O,G:()=>I});class s extends Error{name="ConnectionLimiterGeneralError";constructor(t){super(void 0,t),Object.setPrototypeOf(this,s.prototype),Error.captureStackTrace?.(this,s)}}class i extends Error{name="ConnectionLimiterLimitExceededError";value;constructor(t){super(),Object.setPrototypeOf(this,i.prototype),Error.captureStackTrace?.(this,i),this.value=t}}var n=r(32746),a=r(99536),o=r(74344),l=r(97188),u=r(5252),c=r(62141),p=r(88677),h=r(74843),d=r(86696);class _{_playbackStarted$;_playbackCompleted$;_paused$;_gateway;_repository;constructor({playbackStarted$:t,playbackCompleted$:e,paused$:r,gateway:s,repository:i}){this._playbackStarted$=t,this._playbackCompleted$=e,this._paused$=r,this._gateway=s,this._repository=i}activate(){let t=new l.yU;return t.add(function(t){let{playbackStarted$:e,gateway:r,repository:i}=t;return e.pipe((0,h.n)(()=>r.reportPlaybackContinued())).subscribe({next:t=>{i.writePollingResult(t)},error:t=>{let e=(0,a.KC)(new s({cause:t}));i.writePollingResult(e)}})}({playbackStarted$:this._playbackStarted$,gateway:this._gateway,repository:this._repository})),t.add(function(t){let{playbackCompleted$:e,paused$:r,gateway:i,repository:o}=t;return o.pollingInterval$.pipe((0,h.n)(t=>(0,u.Y)((0,n.l6)(t)).pipe((0,d.Q)((0,c.h)(e,r)))),(0,h.n)(()=>i.reportPlaybackContinued())).subscribe({next:t=>{o.writePollingResult(t)},error:t=>{let e=(0,a.KC)(new s({cause:t}));o.writePollingResult(e)}})}({playbackCompleted$:this._playbackCompleted$,paused$:this._paused$,gateway:this._gateway,repository:this._repository})),t.add(function(t){let{playbackCompleted$:e,gateway:r}=t,s=new l.yU(()=>{r.reportPlaybackAborted({isPageDismissal:!1}).catch(o.H)});return s.add((0,c.h)(e,(0,p.R)(window,"pagehide")).pipe((0,h.n)(t=>r.reportPlaybackAborted({isPageDismissal:t instanceof Event}))).subscribe({error:o.H})),s}({playbackCompleted$:this._playbackCompleted$,gateway:this._gateway})),t}}let y={fromJSON:t=>({interval:null!=t.interval?globalThis.Number(t.interval):0,max:null!=t.max?globalThis.Number(t.max):0}),toJSON(t){let e={};return 0!==t.interval&&(e.interval=Math.round(t.interval)),0!==t.max&&(e.max=Math.round(t.max)),e}};var w=r(43638),b=r(9355),v=r(89205),g=r(75630),m=r(43252);class ${_contentType;_contentId;constructor({contentType:t,contentId:e}){this._contentType=t,this._contentId=e}async reportPlaybackContinued(){try{let t=(0,v.A)("/v1/video/streams/:type/:id",{type:this._contentType,id:this._contentId}),e=(0,w.K)({path:t,method:"POST"}),r=await (0,b.GO)(e);switch(r.status){case 200:{let t=await r.json(),e=y.fromJSON(t);return(0,a.TC)(e)}case 412:{let t=await r.json(),e=y.fromJSON(t);return(0,a.KC)(new i(e))}default:{let t=new g.j({status:r.status,url:r.url});return(0,a.KC)(new s({cause:t}))}}}catch(t){return(0,a.KC)(new s({cause:t}))}}reportPlaybackAborted(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{isPageDismissal:!1};try{let e=(0,v.A)("/v1/video/streams/:type/:id",{type:this._contentType,id:this._contentId}),r=(0,w.K)({path:e,method:"DELETE"});return(t.isPageDismissal?(0,m.u)(r,{body:null}):(0,b.GO)(r)).then(t=>{if(204===t.status)return(0,a.TC)(void 0);{let e=new g.j({status:t.status,url:t.url});return(0,a.KC)(new s({cause:e}))}})}catch(t){return Promise.resolve((0,a.KC)(new s({cause:t})))}}}var f=r(7927),P=r(14291),E=r(57011);class T{_pollingResult$;constructor(){this._pollingResult$=new f.B}get pollingInterval$(){return this._pollingResult$.pipe((0,P.T)(t=>t.ok?t.val.interval:t.err instanceof i?t.err.value.interval:t.err instanceof s?150:null),(0,E.p)(t=>null!==t))}get pollingResult$(){return this._pollingResult$.asObservable()}writePollingResult(t){this._pollingResult$.next(t)}}var C=r(66078),S=r(64704),R=r(11700);let O={TIMESHIFT:"timeshift",SVOD:"svod",PSSVOD:"pssvod",LE_PREMIUM:"le_premium",LE_PPV:"le_ppv",LE_PARTNER_SERVICE_SUBSCRIPTION:"le_partner_service_subscription"};class I{_subscription;_epic;_store;constructor({contentType:t,contentId:e,playbackStarted$:r,playbackCompleted$:s,paused$:n}){var o;this._subscription=null;let l=(o=function(t){let{contentType:e,contentId:r}=t;return new $({contentType:e,contentId:r})}({contentType:t,contentId:e}),!function(t){switch(t){case O.LE_PREMIUM:case O.LE_PPV:case O.LE_PARTNER_SERVICE_SUBSCRIPTION:return!0;case O.TIMESHIFT:case O.SVOD:case O.PSSVOD:default:return!1}}(t)?o:{async reportPlaybackContinued(){(0,C.mo)(S.Bb);try{let t=await o.reportPlaybackContinued();return!(0,a.ys)(t)||t.err instanceof i?(0,C.PC)(S.Bb):(0,C.gK)({name:S.Bb,error:t.err}),t}catch(t){throw(0,C.gK)({name:S.Bb,error:t}),t}},reportPlaybackAborted:t=>o.reportPlaybackAborted(t)}),u=new T;this._epic=new _({playbackStarted$:r,playbackCompleted$:s,paused$:n,gateway:l,repository:u}),this._store={get limitViolationStatus$(){return u.pollingResult$.pipe((0,E.p)(t=>t.ok||!t.ok&&t.err instanceof i),(0,P.T)(t=>{if(t.ok)return(0,a.TC)(void 0);let e=t.err.value.max;return(0,a.KC)({maxConnections:e})}))}}}activate(){if(null!==this._subscription)throw Error(R.A$);this._subscription=this._epic.activate()}destroy(){if(null===this._subscription)throw Error(R.i$);this._subscription.unsubscribe(),this._subscription=null}
1get store(){return this._store}}},97490(t,e,r){var s=r(32746);let i=["resumeTime","time","t","resume"];function n(t,e,r){var s,n;let o,l;if("video"===r&&null!=(o=e.searchParams.get("next"))&&"true"===o)return 0;let u=void 0==(l=(s=e,i.map((n=s,t=>n.searchParams.get(t))).find(t=>null!=t)))?null:function(t){var e;if(""===t)return null;if(e=t,/^\d+$/.test(e)||/^\d+\.\d+$/.test(e))return a(parseInt(t,10));let r=/^((\d+h)?(\d+m)?(\d+s)?)$/.exec(t);return null!=r?a(60*parseInt(r?.[2]??"0",10)*60+60*parseInt(r?.[3]??"0",10)+parseInt(r?.[4]??"0",10)):null}(l);return null!=u?u:t??0}function a(t){return s.bp/1e3<t?0:t}r.d(e,{B:()=>n})},26302(t,e,r){r.d(e,{C:()=>H});var s=r(3497),i=r(66078),n=r(99536),a=r(64704),o=r(32746),l=r(94114),u=r(62141),c=r(71375),p=r(74843),h=r(71997),d=r(14291),_=r(92153),y=r(98252),w=r(78546),b=r(74704),v=r(86696),g=r(74344),m=r(88677),$=r(64296),f=r(79101),P=r(5252),E=r(97188);class T{_intent;_gateway;_repository;constructor({intent:t,gateway:e,repository:r}){this._intent=t,this._gateway=e,this._repository=r}activate(t){let{sourceType:e,sourceId:r,playbackStarted$:s,playbackPaused$:i,playbackCompleted$:n,currentTime$:a}=t,T=new E.yU,C=(0,u.h)(i,n).pipe((0,w.u)()),S=function(t){let{playbackStarted$:e,playbackPausedOrCompleted$:r}=t,s=(0,u.h)(e.pipe((0,c.$)()),r.pipe((0,p.n)(()=>e.pipe((0,c.$)())))).pipe((0,h.v)(),(0,p.n)(t=>{let{timestamp:e}=t;return r.pipe((0,c.$)(),(0,h.v)(),(0,d.T)(t=>{let{timestamp:r}=t;return r-e}))}),(0,_.Z)(0),(0,y.S)((t,e)=>t+e),(0,w.u)());return e.pipe((0,l.J)(s),(0,p.n)(t=>{let[,e]=t,s=(0,o.l6)(30)-e;return(0,b.O)(s).pipe((0,v.Q)(r))}),(0,c.$)(),(0,d.T)(()=>void 0),(0,w.u)())}({playbackStarted$:s,playbackPausedOrCompleted$:C});return T.add(function(t){let{sourceType:e,sourceId:r,dispatcher:s,gateway:i,repository:n}=t;return s.fetch$.pipe((0,p.n)(()=>i.fetch({sourceType:e,sourceId:r}))).subscribe({next:t=>{n.writeFetchResult(t)},error:g.H})}({sourceType:e,sourceId:r,dispatcher:this._intent.dispatcher(),gateway:this._gateway,repository:this._repository})),T.add(function(t){let{sourceType:e,sourceId:r,whenWatched$:s,playbackStarted$:i,playbackPausedOrCompleted$:n,currentTime$:a,gateway:u,repository:c}=t;return i.pipe((0,l.J)(c.interval$),(0,p.n)(t=>{let[,e]=t;return(0,P.Y)((0,o.l6)(e)).pipe((0,v.Q)(n))})).pipe((0,l.J)(a),(0,d.T)(t=>{let[,e]=t;return e}),(0,f.F)(),(0,$.U)(s),(0,p.n)(t=>u.post({sourceType:e,sourceId:r,position:t,isPageDismissal:!1}))).subscribe({error:g.H})}({sourceType:e,sourceId:r,whenWatched$:S,playbackStarted$:s,playbackPausedOrCompleted$:C,currentTime$:a,gateway:this._gateway,repository:this._repository})),T.add(function(t){let{sourceType:e,sourceId:r,whenWatched$:s,playbackStarted$:i,playbackPaused$:n,currentTime$:a,gateway:o}=t;return i.pipe((0,p.n)(()=>n.pipe((0,c.$)()))).pipe((0,l.J)(a),(0,d.T)(t=>{let[,e]=t;return e}),(0,f.F)(),(0,$.U)(s),(0,p.n)(t=>o.post({sourceType:e,sourceId:r,position:t,isPageDismissal:!1}))).subscribe({error:g.H})}({sourceType:e,sourceId:r,whenWatched$:S,playbackStarted$:s,playbackPaused$:i,currentTime$:a,gateway:this._gateway})),T.add(function(t){let{sourceType:e,sourceId:r,playbackCompleted$:s,currentTime$:i,gateway:n}=t;return s.pipe((0,l.J)(i),(0,p.n)(t=>{let[,s]=t;return n.post({sourceType:e,sourceId:r,position:s,isPageDismissal:!1})})).subscribe({error:g.H})}({sourceType:e,sourceId:r,playbackCompleted$:n,currentTime$:a,gateway:this._gateway})),T.add(function(t){let{sourceType:e,sourceId:r,whenWatched$:s,currentTime$:i,gateway:n}=t;return(0,m.R)(window,"pagehide").pipe((0,l.J)(i),(0,$.U)(s),(0,p.n)(t=>{let[,s]=t;return n.post({sourceType:e,sourceId:r,position:s,isPageDismissal:!0})})).subscribe({error:g.H})}({sourceType:e,sourceId:r,whenWatched$:S,currentTime$:a,gateway:this._gateway})),T.add(function(t){let{sourceType:e,sourceId:r,dispatcher:s,gateway:i,repository:n}=t;return s.delete$.pipe((0,p.n)(()=>i.delete({sourceType:e,sourceId:r}))).subscribe({next:t=>{n.writeDeleteResult(t)},error:g.H})}({sourceType:e,sourceId:r,dispatcher:this._intent.dispatcher(),gateway:this._gateway,repository:this._repository})),T.add(function(t){let{sourceType:e,sourceId:r,whenWatched$:s,currentTime$:i,gateway:n}=t,a=null,o=new E.yU(()=>{null!=a&&n.post({sourceType:e,sourceId:r,position:a,isPageDismissal:!1}).catch(g.H)});return o.add(i.pipe((0,$.U)(s)).subscribe({next:t=>{a=t},error:g.H})),o}({sourceType:e,sourceId:r,whenWatched$:S,currentTime$:a,gateway:this._gateway})),T}}var C=r(95697),S=r(43638);
1class R extends Error{name="ViewingPositionRequestError";constructor(t,e){super(t,e),Object.setPrototypeOf(this,R.prototype),Error.captureStackTrace&&Error.captureStackTrace(this,R)}}var O=r(9355),I=r(89205),k=r(75630),x=r(43252);class K{async fetch(t){let{sourceType:e,sourceId:r}=t;try{let t=(0,I.A)("/v1/video/viewing/positions/:sourceType/:sourceId",{sourceType:e,sourceId:r}),s=(0,S.K)({method:"GET",path:t}),i=await (0,O.GO)(s);if(200!==i.status)return(0,n.KC)(new R(`${i.url} enters unreachable path with status code: ${i.status}`,{cause:new k.j({url:i.url,status:i.status})}));{let t=C.D$.fromJSON(await i.json());return(0,n.TC)(t)}}catch(t){return Promise.resolve((0,n.KC)(new R("Unexpected error.",{cause:t})))}}post(t){let{sourceType:e,sourceId:r,position:s,isPageDismissal:i}=t;try{let t=(0,I.A)("/v1/video/viewing/positions/:sourceType/:sourceId",{sourceType:e,sourceId:r}),a=C.CP.toJSON({position:s,sourceType:e,sourceId:r}),o=(0,S.K)({path:t,method:"POST",body:a});return(i?(0,x.u)(o,{body:JSON.stringify(a)}):(0,O.GO)(o)).then(t=>202===t.status?(0,n.TC)(null):(0,n.KC)(new R(`${t.url} enters unreachable path with status code: ${t.status}`,{cause:new k.j({url:t.url,status:t.status})}))).catch(t=>(0,n.KC)(new R("Unexpected error.",{cause:t})))}catch(t){return Promise.resolve((0,n.KC)(new R("Unexpected error.",{cause:t})))}}async delete(t){let{sourceType:e,sourceId:r}=t;try{let t=(0,I.A)("/v1/video/viewing/positions/:sourceType/:sourceId",{sourceType:e,sourceId:r}),s=(0,S.K)({method:"DELETE",path:t}),i=await (0,O.GO)(s);if(204===i.status)return(0,n.TC)(null);return(0,n.KC)(new R(`${i.url} enters unreachable path with status code: ${i.status}`,{cause:new k.j({url:i.url,status:i.status})}))}catch(t){return Promise.resolve((0,n.KC)(new R("Unexpected error.",{cause:t})))}}}var D=r(7927);class A{fetch$;delete$;constructor(){this.fetch$=new D.B,this.delete$=new D.B}}class U{_dispatcher;constructor(){this._dispatcher=new A}dispatcher(){return this._dispatcher}fetch(){this._dispatcher.fetch$.next()}delete(){this._dispatcher.delete$.next()}}class L{interval$;position$;deleteResult$;constructor(){this.interval$=new D.B,this.position$=new D.B,this.deleteResult$=new D.B}writeFetchResult(t){this.interval$.next(t.val?.interval??30),this.position$.next(t.val?.position??0)}writeDeleteResult(t){this.deleteResult$.next(t)}}class N{_repository;constructor(t){this._repository=t}get position$(){return this._repository.position$}get deleteResult$(){return this._repository.deleteResult$}}var V=r(11700);class H{_subscription;_intent;_epic;_store;constructor(){var t;this._subscription=null;let e=(t=new K,{async fetch(e){if(!function(t){switch(t){case s.Y.LIVE_EVENT:return!0;case s.Y.TIMESHIFT:case s.Y.VOD:default:return!1}}(e.sourceType))return t.fetch(e);(0,i.mo)(a.YM);try{let r=await t.fetch(e);return(0,n.ys)(r)?(0,i.gK)({name:a.YM,error:r.err}):(0,i.PC)(a.YM),r}catch(t){throw(0,i.gK)({name:a.YM,error:t}),t}},post:e=>t.post(e),delete:e=>t.delete(e)}),r=new L;this._intent=new U,this._epic=function(t){let{intent:e,gateway:r,repository:s}=t;return new T({intent:e,gateway:r,repository:s})}({intent:this._intent,gateway:e,repository:r}),this._store=new N(r)}activate(t){let{sourceType:e,sourceId:r,playbackStarted$:s,playbackPaused$:i,playbackCompleted$:n,currentTime$:a}=t;if(null!==this._subscription)throw Error(V.A$);this._subscription=this._epic.activate({sourceType:e,sourceId:r,playbackStarted$:s,playbackPaused$:i,playbackCompleted$:n,currentTime$:a})}destroy(){this._subscription?.unsubscribe(),this._subscription=null}get intent(){return this._intent}get store(){return this._store}}},3497(t,e,r){r.d(e,{},{Y:{TIMESHIFT:"timeshift",VOD:"vod",LIVE_EVENT:"liveEvent"}})}}]);

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.