/*******************************************************************************
 * This source code is the proprietary property of Bitmovin, Inc. Unauthorized
 * copying, distribution, or use of this code, or any portion thereof, is
 * strictly prohibited. © 2026 Bitmovin, Inc. All rights reserved. This
 * source code is subject to the terms and conditions of the accompanying
 * license agreement.
 *
 * Bitmovin Player X Version 10.2.0-beta.16
 *******************************************************************************/
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports["hls-manifest-technology"]=t():(e.bitmovin=e.bitmovin||{},e.bitmovin.playerx=e.bitmovin.playerx||{},e.bitmovin.playerx["hls-manifest-technology"]=t())}(self,(()=>(()=>{"use strict";var e={97085:(e,t)=>{function a(e,t,a){const o=t;return o._name=e,{onAdd:o,dependencies:a}}Object.defineProperty(t,"__esModule",{value:!0}),t.createPackage=void 0,t.createPackage=a},91270:(e,t)=>{function a(e,t){const a=t;return a._name=e,a}function o(e){return(...t)=>{const[o,r]=e(...t);return a(o,r)}}function r(e){var t;return null!==(t=e._name)&&void 0!==t?t:e.name}Object.defineProperty(t,"__esModule",{value:!0}),t.getTaskName=t.createTaskClosure=t.createTask=void 0,t.createTask=a,t.createTaskClosure=o,t.getTaskName=r},14809:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.CoreExportNames=void 0,function(e){e.Utils="utils",e.Constants="constants",e.CoreEffects="core-effects",e.CoreStateAtoms="core-state-atoms"}(t.CoreExportNames||(t.CoreExportNames={}))},10055:(e,t,a)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.HlsManifestPlaybackTechnologyTask=void 0;const o=a(91270),r=a(7269),s=a(88425),n=a(50690),c=a(40369),l=(0,o.createTaskClosure)((e=>["duration-propagation",(t,a)=>{a.effects.state.dispatch(e.playback.duration.setValue,t.value)}]));t.HlsManifestPlaybackTechnologyTask=(0,o.createTaskClosure)((e=>["hls-manifest-playback-tech-task",(t,a)=>{const o=e.registry.get(s.CreateStreamingStateAtom),i=a.registry.get(r.SourceExportNames.SourceState),u=(0,n.createHlsTechStateAtom)(a,t),y=o(e);return a.registry.set(s.StreamingState,y),a.registry.set(c.HlsTechState,u),a.effects.state.subscribe(e,y.stream.duration,l(i)),a.abortSignal.addEventListener("abort",(()=>{a.registry.delete(s.StreamingState),a.registry.delete(c.HlsTechState)})),a.effects.loop(a.abortSignal)}]))},48981:(e,t,a)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.HlsManifestTechnologyPackage=void 0;const o=a(97085),r=a(14809),s=a(49753),n=a(94503),c=a(88425),l=a(10055);t.HlsManifestTechnologyPackage=(0,o.createPackage)("hls-manifest-technology-package",((e,t)=>{const{StateEffectFactory:a,EventListenerEffectFactory:o}=t.registry.get(r.CoreExportNames.CoreEffects),n=t.using(a,o),c=n.registry.get(s.PlaybackTechnologyComponent),{ResourceType:i}=n.registry.get(r.CoreExportNames.Constants),u={name:"hls-manifest-playback-tech",type:n.registry.get(s.PlaybackTechnologyExportNames.EntryType).Manifest,depends:[],supported:e=>e.type===i.Hls,instantiate:(0,l.HlsManifestPlaybackTechnologyTask)(n)};n.fork(c.addTechnology,u)}),[s.PlaybackTechnologyComponent,s.PlaybackTechnologyExportNames.EntryType,r.CoreExportNames.Constants,r.CoreExportNames.CoreStateAtoms,r.CoreExportNames.CoreEffects,r.CoreExportNames.Utils,n.StreamDataStructureStream,c.CreateStreamingStateAtom]),t.default=t.HlsManifestTechnologyPackage},40369:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.HlsTechState=void 0,t.HlsTechState="hls-tech-state"},50690:(e,t)=>{function a(e,t){return e.effects.state.create({resource:t},{})}Object.defineProperty(t,"__esModule",{value:!0}),t.createHlsTechStateAtom=void 0,t.createHlsTechStateAtom=a},49753:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.PlaybackTechnologyExportNames=t.PlaybackTechnologyComponent=void 0,t.PlaybackTechnologyComponent="playback-technology-component",function(e){e.EntryType="playback-technology-entry-type"}(t.PlaybackTechnologyExportNames||(t.PlaybackTechnologyExportNames={}))},7269:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.SourceExportNames=void 0,function(e){e.CreateSourceStateAtom="create-source-state-atom",e.CreateSourceReference="create-source-reference",e.SourceReferences="source-references",e.SourceState="source-state-atom"}(t.SourceExportNames||(t.SourceExportNames={}))},94503:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.StreamDataStructureStream=void 0,t.StreamDataStructureStream="stream-data-structure-stream"},88425:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.CreateStreamingStateAtom=t.StreamingState=void 0,t.StreamingState="streaming-state",t.CreateStreamingStateAtom="create-streaming-state-atom"}},t={};function a(o){var r=t[o];if(void 0!==r)return r.exports;var s=t[o]={exports:{}};return e[o](s,s.exports,a),s.exports}return a(48981)})()));