/*******************************************************************************
 * 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.12
 *******************************************************************************/
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports["event-bus"]=t():(e.bitmovin=e.bitmovin||{},e.bitmovin.playerx=e.bitmovin.playerx||{},e.bitmovin.playerx["event-bus"]=t())}(self,(()=>(()=>{"use strict";var e={97085:(e,t)=>{function n(e,t,n){const s=t;return s._name=e,{onAdd:s,dependencies:n}}Object.defineProperty(t,"__esModule",{value:!0}),t.createPackage=void 0,t.createPackage=n},91270:(e,t)=>{function n(e,t){const n=t;return n._name=e,n}function s(e){return(...t)=>{const[s,o]=e(...t);return n(s,o)}}function o(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=n,t.createTaskClosure=s,t.getTaskName=o},4290:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.extendEventBusTypes=t.createEventBus=void 0;const s=n(91270);function o(e,t,n){const o=u(e,t),r=(0,s.createTaskClosure)((e=>[`${t}-subscriber`,s=>{try{n(s)}catch(n){e.effects.logger.warn(`Encountered unhandled exception executing "${t}" event listener:`,n)}}]));o.has(n)||(o.set(n,r),e.set(t,o))}function r(e,t,n){const s=u(e,t);s.delete(n),0===s.size&&e.delete(t)}function a(e,t,n,s){const o=u(t,n);void 0===s.timestamp&&(s.timestamp=Date.now()),void 0===s.type&&(s.type=n);for(const t of o.values())e.fork(t(e),s,(()=>!0))}function u(e,t){var n;return null!==(n=e.get(t))&&void 0!==n?n:new Map}function c(){const e=new Map;return{on:(t,n)=>o(e,t,n),off:(t,n)=>r(e,t,n),dispatch:(t,n,s)=>a(t,e,n,s),Type:{}}}function i(e,t,n){Object.assign(e.Type,n),t.effects.abortable((()=>{})).finally((()=>{for(const t of Object.keys(n))delete e.Type[t]})).catch((()=>{}))}t.createEventBus=c,t.extendEventBusTypes=i},31712:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.EventBusExportNames=void 0,function(e){e.CreateEventBus="create-event-bus",e.ExtendEventBusTypes="extend-event-bus-types"}(t.EventBusExportNames||(t.EventBusExportNames={}))}},t={};function n(s){var o=t[s];if(void 0!==o)return o.exports;var r=t[s]={exports:{}};return e[s](r,r.exports,n),r.exports}var s={};return(()=>{var e=s;Object.defineProperty(e,"__esModule",{value:!0});const t=n(97085),o=n(4290),r=n(31712),a=(0,t.createPackage)("event-bus-package",((e,t)=>{t.registry.set(r.EventBusExportNames.CreateEventBus,o.createEventBus),t.registry.set(r.EventBusExportNames.ExtendEventBusTypes,o.extendEventBusTypes)}),[]);e.default=a})(),s})()));