/*******************************************************************************
 * 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["player-api"]=t():(e.bitmovin=e.bitmovin||{},e.bitmovin.playerx=e.bitmovin.playerx||{},e.bitmovin.playerx["player-api"]=t())}(self,(()=>(()=>{"use strict";var e={97085:(e,t)=>{function r(e,t,r){const a=t;return a._name=e,{onAdd:a,dependencies:r}}Object.defineProperty(t,"__esModule",{value:!0}),t.createPackage=void 0,t.createPackage=r},91270:(e,t)=>{function r(e,t){const r=t;return r._name=e,r}function a(e){return(...t)=>{const[a,n]=e(...t);return r(a,n)}}function n(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=r,t.createTaskClosure=a,t.getTaskName=n},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={}))},24709:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.trackFrameworkError=void 0;const a=r(91270),n=r(26022);function o(e){return{name:e.name,message:e.message,stack:e.stack}}function s(e,t){const r=e.abort;e.abort=a=>(t(a),r.call(e,a))}function c(e,t){let r;const c=(0,a.createTask)("error-tracker",((e,t)=>{const{abortSignal:a,effects:n}=t,{loop:o}=n;return r=t,o(a)})),u=e.fork(c,void 0),l=a=>{const s=null!=r?r:e,c=o(a);t.dispatch(s,n.PlayerEvent.PlayerError,c)};u.catch((()=>{})),s(u,l)}t.trackFrameworkError=c},26022:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.PlayerEvent=t.PlayerApiExportNames=void 0,function(e){e.PlayerEventBus="player-event-bus"}(t.PlayerApiExportNames||(t.PlayerApiExportNames={})),function(e){e.PlayerError="player-error"}(t.PlayerEvent||(t.PlayerEvent={}))}},t={};function r(a){var n=t[a];if(void 0!==n)return n.exports;var o=t[a]={exports:{}};return e[a](o,o.exports,r),o.exports}var a={};return(()=>{var e=a;Object.defineProperty(e,"__esModule",{value:!0});const t=r(97085),n=r(31712),o=r(24709),s=r(26022),c=(0,t.createPackage)("player-api-package",((e,t)=>{const r=t.registry.get(n.EventBusExportNames.CreateEventBus)();(0,o.trackFrameworkError)(t,r);t.registry.get(n.EventBusExportNames.ExtendEventBusTypes)(r,t,s.PlayerEvent),e.set("events",r),e.set("addOnLogCallback",(e=>t.effects.logger.addOnLogCallback(e))),t.registry.set(s.PlayerApiExportNames.PlayerEventBus,r),e.defineProperty("logLevel",{get:()=>t.effects.logger.level,set:e=>t.effects.logger.setLevel(e)})}),[n.EventBusExportNames.CreateEventBus,n.EventBusExportNames.ExtendEventBusTypes]);e.default=c})(),a})()));