import{g as o}from"./p-811c9fd4.js";import{i as e}from"./p-f021dfd0.js";import{w as n}from"./p-f3727652.js";function t(e){const n=o(e),t=o=>new CustomEvent(o,{bubbles:!0,composed:!0,detail:e}),a=t("vMediaProviderConnect"),c=t("vMediaProviderDisconnect"),{componentWillLoad:s,connectedCallback:i,disconnectedCallback:l}=e;e.componentWillLoad=function(){if(n.dispatchEvent(a),s)return s.call(e)},e.connectedCallback=function(){n.dispatchEvent(a),i&&i.call(e)},e.disconnectedCallback=function(){n.dispatchEvent(c),l&&l.call(e)}}const a=(o,e=[])=>n(o,["autoplay","controls","language","muted","logger","loop","aspectRatio","playsinline",...e]),c=n=>(t,a)=>{const c=e(n,HTMLElement)?n:o(n),s=new CustomEvent("vProviderChange",{bubbles:!0,composed:!0,detail:{by:c,prop:t,value:a}});c.dispatchEvent(s)};export{t as a,c,a as w}