@broadcastingplatforms/player 1.4.2 → 1.4.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bp-player.js +1 -1
- package/dist/bp-player.mjs +1 -1
- package/dist/bp-player.standalone.mjs +1 -1
- package/package.json +1 -1
package/dist/bp-player.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* BP Player (v1.4.
|
|
2
|
+
* BP Player (v1.4.3)
|
|
3
3
|
* Universal video player web component
|
|
4
4
|
*/
|
|
5
5
|
"use strict";var BPPlayer=(()=>{var fv=Object.create;var kr=Object.defineProperty;var Hu=Object.getOwnPropertyDescriptor;var Ev=Object.getOwnPropertyNames;var gv=Object.getPrototypeOf,bv=Object.prototype.hasOwnProperty;var $u=i=>{throw TypeError(i)};var _v=(i,e,t)=>e in i?kr(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t;var Bu=(i=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(i,{get:(e,t)=>(typeof require<"u"?require:e)[t]}):i)(function(i){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+i+'" is not supported')});var yv=(i,e)=>{for(var t in e)kr(i,t,{get:e[t],enumerable:!0})},Vu=(i,e,t,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of Ev(e))!bv.call(i,o)&&o!==t&&kr(i,o,{get:()=>e[o],enumerable:!(r=Hu(e,o))||r.enumerable});return i};var Tv=(i,e,t)=>(t=i!=null?fv(gv(i)):{},Vu(e||!i||!i.__esModule?kr(t,"default",{value:i,enumerable:!0}):t,i)),Av=i=>Vu(kr({},"__esModule",{value:!0}),i),U=(i,e,t,r)=>{for(var o=r>1?void 0:r?Hu(e,t):e,n=i.length-1,s;n>=0;n--)(s=i[n])&&(o=(r?s(e,t,o):s(o))||o);return r&&o&&kr(e,t,o),o};var $=(i,e,t)=>_v(i,typeof e!="symbol"?e+"":e,t),Zl=(i,e,t)=>e.has(i)||$u("Cannot "+t);var u=(i,e,t)=>(Zl(i,e,"read from private field"),t?t.call(i):e.get(i)),L=(i,e,t)=>e.has(i)?$u("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(i):e.set(i,t),v=(i,e,t,r)=>(Zl(i,e,"write to private field"),r?r.call(i,t):e.set(i,t),t),P=(i,e,t)=>(Zl(i,e,"access private method"),t);var Ab={};yv(Ab,{Attribute:()=>ln,BPDefaultUI:()=>te,BPErrorDisplay:()=>Ft,BPLiveError:()=>et,BPLiveService:()=>wr,BPOverlay:()=>xt,BPPlayer:()=>we,Hls:()=>Re.default,HlsVideo:()=>Li,HlsVideoElement:()=>mu,LiveKitVideo:()=>xi,LiveKitVideoElement:()=>Eu,NANOPLAYER_NO_REPLAY_CODES:()=>sh,NanoVideo:()=>Ri,NanoVideoElement:()=>fu,StateReceiverMixin:()=>dh,StateReceiverProps:()=>Hi,addGlobalStyles:()=>Cr,classifyLiveKitError:()=>Ms,classifyNanoPlayerError:()=>Rs,createInitialState:()=>en,createPlayerCore:()=>Ps,createTemplate:()=>ph,forEachStateReceiverElement:()=>$i,isBPLiveClipSource:()=>rn,isBPLiveSource:()=>xs,isBPLiveStreamSource:()=>tn,isStateReceiverElement:()=>Ds,propagateStateToReceiver:()=>sn,removeStateFromReceiver:()=>an,templateWithStyles:()=>mh,toggleAttribute:()=>Ee});var ks=globalThis,Ls=ks.ShadowRoot&&(ks.ShadyCSS===void 0||ks.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Xl=Symbol(),Wu=new WeakMap,qo=class{constructor(e,t,r){if(this._$cssResult$=!0,r!==Xl)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=t}get styleSheet(){let e=this.o,t=this.t;if(Ls&&e===void 0){let r=t!==void 0&&t.length===1;r&&(e=Wu.get(t)),e===void 0&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),r&&Wu.set(t,e))}return e}toString(){return this.cssText}},Fu=i=>new qo(typeof i=="string"?i:i+"",void 0,Xl),Ko=(i,...e)=>{let t=i.length===1?i[0]:e.reduce((r,o,n)=>r+(s=>{if(s._$cssResult$===!0)return s.cssText;if(typeof s=="number")return s;throw Error("Value passed to 'css' function must be a 'css' function result: "+s+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(o)+i[n+1],i[0]);return new qo(t,i,Xl)},qu=(i,e)=>{if(Ls)i.adoptedStyleSheets=e.map(t=>t instanceof CSSStyleSheet?t:t.styleSheet);else for(let t of e){let r=document.createElement("style"),o=ks.litNonce;o!==void 0&&r.setAttribute("nonce",o),r.textContent=t.cssText,i.appendChild(r)}},Jl=Ls?i=>i:i=>i instanceof CSSStyleSheet?(e=>{let t="";for(let r of e.cssRules)t+=r.cssText;return Fu(t)})(i):i;var{is:Sv,defineProperty:kv,getOwnPropertyDescriptor:Lv,getOwnPropertyNames:Iv,getOwnPropertySymbols:wv,getPrototypeOf:Cv}=Object,Qt=globalThis,Ku=Qt.trustedTypes,Rv=Ku?Ku.emptyScript:"",jl=Qt.reactiveElementPolyfillSupport,Go=(i,e)=>i,zo={toAttribute(i,e){switch(e){case Boolean:i=i?Rv:null;break;case Object:case Array:i=i==null?i:JSON.stringify(i)}return i},fromAttribute(i,e){let t=i;switch(e){case Boolean:t=i!==null;break;case Number:t=i===null?null:Number(i);break;case Object:case Array:try{t=JSON.parse(i)}catch{t=null}}return t}},Is=(i,e)=>!Sv(i,e),Gu={attribute:!0,type:String,converter:zo,reflect:!1,useDefault:!1,hasChanged:Is};Symbol.metadata??(Symbol.metadata=Symbol("metadata")),Qt.litPropertyMetadata??(Qt.litPropertyMetadata=new WeakMap);var Nt=class extends HTMLElement{static addInitializer(e){this._$Ei(),(this.l??(this.l=[])).push(e)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(e,t=Gu){if(t.state&&(t.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(e)&&((t=Object.create(t)).wrapped=!0),this.elementProperties.set(e,t),!t.noAccessor){let r=Symbol(),o=this.getPropertyDescriptor(e,r,t);o!==void 0&&kv(this.prototype,e,o)}}static getPropertyDescriptor(e,t,r){let{get:o,set:n}=Lv(this.prototype,e)??{get(){return this[t]},set(s){this[t]=s}};return{get:o,set(s){let l=o==null?void 0:o.call(this);n==null||n.call(this,s),this.requestUpdate(e,l,r)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)??Gu}static _$Ei(){if(this.hasOwnProperty(Go("elementProperties")))return;let e=Cv(this);e.finalize(),e.l!==void 0&&(this.l=[...e.l]),this.elementProperties=new Map(e.elementProperties)}static finalize(){if(this.hasOwnProperty(Go("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(Go("properties"))){let t=this.properties,r=[...Iv(t),...wv(t)];for(let o of r)this.createProperty(o,t[o])}let e=this[Symbol.metadata];if(e!==null){let t=litPropertyMetadata.get(e);if(t!==void 0)for(let[r,o]of t)this.elementProperties.set(r,o)}this._$Eh=new Map;for(let[t,r]of this.elementProperties){let o=this._$Eu(t,r);o!==void 0&&this._$Eh.set(o,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(e){let t=[];if(Array.isArray(e)){let r=new Set(e.flat(1/0).reverse());for(let o of r)t.unshift(Jl(o))}else e!==void 0&&t.push(Jl(e));return t}static _$Eu(e,t){let r=t.attribute;return r===!1?void 0:typeof r=="string"?r:typeof e=="string"?e.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){var e;this._$ES=new Promise(t=>this.enableUpdating=t),this._$AL=new Map,this._$E_(),this.requestUpdate(),(e=this.constructor.l)==null||e.forEach(t=>t(this))}addController(e){var t;(this._$EO??(this._$EO=new Set)).add(e),this.renderRoot!==void 0&&this.isConnected&&((t=e.hostConnected)==null||t.call(e))}removeController(e){var t;(t=this._$EO)==null||t.delete(e)}_$E_(){let e=new Map,t=this.constructor.elementProperties;for(let r of t.keys())this.hasOwnProperty(r)&&(e.set(r,this[r]),delete this[r]);e.size>0&&(this._$Ep=e)}createRenderRoot(){let e=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return qu(e,this.constructor.elementStyles),e}connectedCallback(){var e;this.renderRoot??(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(e=this._$EO)==null||e.forEach(t=>{var r;return(r=t.hostConnected)==null?void 0:r.call(t)})}enableUpdating(e){}disconnectedCallback(){var e;(e=this._$EO)==null||e.forEach(t=>{var r;return(r=t.hostDisconnected)==null?void 0:r.call(t)})}attributeChangedCallback(e,t,r){this._$AK(e,r)}_$ET(e,t){var n;let r=this.constructor.elementProperties.get(e),o=this.constructor._$Eu(e,r);if(o!==void 0&&r.reflect===!0){let s=(((n=r.converter)==null?void 0:n.toAttribute)!==void 0?r.converter:zo).toAttribute(t,r.type);this._$Em=e,s==null?this.removeAttribute(o):this.setAttribute(o,s),this._$Em=null}}_$AK(e,t){var n,s;let r=this.constructor,o=r._$Eh.get(e);if(o!==void 0&&this._$Em!==o){let l=r.getPropertyOptions(o),d=typeof l.converter=="function"?{fromAttribute:l.converter}:((n=l.converter)==null?void 0:n.fromAttribute)!==void 0?l.converter:zo;this._$Em=o;let h=d.fromAttribute(t,l.type);this[o]=h??((s=this._$Ej)==null?void 0:s.get(o))??h,this._$Em=null}}requestUpdate(e,t,r,o=!1,n){var s;if(e!==void 0){let l=this.constructor;if(o===!1&&(n=this[e]),r??(r=l.getPropertyOptions(e)),!((r.hasChanged??Is)(n,t)||r.useDefault&&r.reflect&&n===((s=this._$Ej)==null?void 0:s.get(e))&&!this.hasAttribute(l._$Eu(e,r))))return;this.C(e,t,r)}this.isUpdatePending===!1&&(this._$ES=this._$EP())}C(e,t,{useDefault:r,reflect:o,wrapped:n},s){r&&!(this._$Ej??(this._$Ej=new Map)).has(e)&&(this._$Ej.set(e,s??t??this[e]),n!==!0||s!==void 0)||(this._$AL.has(e)||(this.hasUpdated||r||(t=void 0),this._$AL.set(e,t)),o===!0&&this._$Em!==e&&(this._$Eq??(this._$Eq=new Set)).add(e))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(t){Promise.reject(t)}let e=this.scheduleUpdate();return e!=null&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var r;if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??(this.renderRoot=this.createRenderRoot()),this._$Ep){for(let[n,s]of this._$Ep)this[n]=s;this._$Ep=void 0}let o=this.constructor.elementProperties;if(o.size>0)for(let[n,s]of o){let{wrapped:l}=s,d=this[n];l!==!0||this._$AL.has(n)||d===void 0||this.C(n,void 0,s,d)}}let e=!1,t=this._$AL;try{e=this.shouldUpdate(t),e?(this.willUpdate(t),(r=this._$EO)==null||r.forEach(o=>{var n;return(n=o.hostUpdate)==null?void 0:n.call(o)}),this.update(t)):this._$EM()}catch(o){throw e=!1,this._$EM(),o}e&&this._$AE(t)}willUpdate(e){}_$AE(e){var t;(t=this._$EO)==null||t.forEach(r=>{var o;return(o=r.hostUpdated)==null?void 0:o.call(r)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(e){return!0}update(e){this._$Eq&&(this._$Eq=this._$Eq.forEach(t=>this._$ET(t,this[t]))),this._$EM()}updated(e){}firstUpdated(e){}};Nt.elementStyles=[],Nt.shadowRootOptions={mode:"open"},Nt[Go("elementProperties")]=new Map,Nt[Go("finalized")]=new Map,jl==null||jl({ReactiveElement:Nt}),(Qt.reactiveElementVersions??(Qt.reactiveElementVersions=[])).push("2.1.2");var Qo=globalThis,zu=i=>i,ws=Qo.trustedTypes,Yu=ws?ws.createPolicy("lit-html",{createHTML:i=>i}):void 0,eh="$lit$",Zt=`lit$${Math.random().toFixed(9).slice(2)}$`,th="?"+Zt,Mv=`<${th}>`,Oi=document,Zo=()=>Oi.createComment(""),Xo=i=>i===null||typeof i!="object"&&typeof i!="function",ad=Array.isArray,xv=i=>ad(i)||typeof(i==null?void 0:i[Symbol.iterator])=="function",ed=`[
|
package/dist/bp-player.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* BP Player (v1.4.
|
|
2
|
+
* BP Player (v1.4.3)
|
|
3
3
|
* Universal video player web component
|
|
4
4
|
*/
|
|
5
5
|
var Du=Object.defineProperty;var cv=Object.getOwnPropertyDescriptor;var Ou=i=>{throw TypeError(i)};var uv=(i,e,t)=>e in i?Du(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t;var U=(i,e,t,r)=>{for(var o=r>1?void 0:r?cv(e,t):e,n=i.length-1,s;n>=0;n--)(s=i[n])&&(o=(r?s(e,t,o):s(o))||o);return r&&o&&Du(e,t,o),o};var $=(i,e,t)=>uv(i,typeof e!="symbol"?e+"":e,t),ql=(i,e,t)=>e.has(i)||Ou("Cannot "+t);var u=(i,e,t)=>(ql(i,e,"read from private field"),t?t.call(i):e.get(i)),L=(i,e,t)=>e.has(i)?Ou("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(i):e.set(i,t),v=(i,e,t,r)=>(ql(i,e,"write to private field"),r?r.call(i,t):e.set(i,t),t),P=(i,e,t)=>(ql(i,e,"access private method"),t);var gs=globalThis,bs=gs.ShadowRoot&&(gs.ShadyCSS===void 0||gs.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Kl=Symbol(),Nu=new WeakMap,Vo=class{constructor(e,t,r){if(this._$cssResult$=!0,r!==Kl)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=t}get styleSheet(){let e=this.o,t=this.t;if(bs&&e===void 0){let r=t!==void 0&&t.length===1;r&&(e=Nu.get(t)),e===void 0&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),r&&Nu.set(t,e))}return e}toString(){return this.cssText}},Uu=i=>new Vo(typeof i=="string"?i:i+"",void 0,Kl),Wo=(i,...e)=>{let t=i.length===1?i[0]:e.reduce((r,o,n)=>r+(s=>{if(s._$cssResult$===!0)return s.cssText;if(typeof s=="number")return s;throw Error("Value passed to 'css' function must be a 'css' function result: "+s+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(o)+i[n+1],i[0]);return new Vo(t,i,Kl)},Hu=(i,e)=>{if(bs)i.adoptedStyleSheets=e.map(t=>t instanceof CSSStyleSheet?t:t.styleSheet);else for(let t of e){let r=document.createElement("style"),o=gs.litNonce;o!==void 0&&r.setAttribute("nonce",o),r.textContent=t.cssText,i.appendChild(r)}},Gl=bs?i=>i:i=>i instanceof CSSStyleSheet?(e=>{let t="";for(let r of e.cssRules)t+=r.cssText;return Uu(t)})(i):i;var{is:hv,defineProperty:pv,getOwnPropertyDescriptor:mv,getOwnPropertyNames:vv,getOwnPropertySymbols:fv,getPrototypeOf:Ev}=Object,Yt=globalThis,$u=Yt.trustedTypes,gv=$u?$u.emptyScript:"",zl=Yt.reactiveElementPolyfillSupport,Fo=(i,e)=>i,qo={toAttribute(i,e){switch(e){case Boolean:i=i?gv:null;break;case Object:case Array:i=i==null?i:JSON.stringify(i)}return i},fromAttribute(i,e){let t=i;switch(e){case Boolean:t=i!==null;break;case Number:t=i===null?null:Number(i);break;case Object:case Array:try{t=JSON.parse(i)}catch{t=null}}return t}},_s=(i,e)=>!hv(i,e),Bu={attribute:!0,type:String,converter:qo,reflect:!1,useDefault:!1,hasChanged:_s};Symbol.metadata??(Symbol.metadata=Symbol("metadata")),Yt.litPropertyMetadata??(Yt.litPropertyMetadata=new WeakMap);var Ot=class extends HTMLElement{static addInitializer(e){this._$Ei(),(this.l??(this.l=[])).push(e)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(e,t=Bu){if(t.state&&(t.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(e)&&((t=Object.create(t)).wrapped=!0),this.elementProperties.set(e,t),!t.noAccessor){let r=Symbol(),o=this.getPropertyDescriptor(e,r,t);o!==void 0&&pv(this.prototype,e,o)}}static getPropertyDescriptor(e,t,r){let{get:o,set:n}=mv(this.prototype,e)??{get(){return this[t]},set(s){this[t]=s}};return{get:o,set(s){let l=o==null?void 0:o.call(this);n==null||n.call(this,s),this.requestUpdate(e,l,r)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)??Bu}static _$Ei(){if(this.hasOwnProperty(Fo("elementProperties")))return;let e=Ev(this);e.finalize(),e.l!==void 0&&(this.l=[...e.l]),this.elementProperties=new Map(e.elementProperties)}static finalize(){if(this.hasOwnProperty(Fo("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(Fo("properties"))){let t=this.properties,r=[...vv(t),...fv(t)];for(let o of r)this.createProperty(o,t[o])}let e=this[Symbol.metadata];if(e!==null){let t=litPropertyMetadata.get(e);if(t!==void 0)for(let[r,o]of t)this.elementProperties.set(r,o)}this._$Eh=new Map;for(let[t,r]of this.elementProperties){let o=this._$Eu(t,r);o!==void 0&&this._$Eh.set(o,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(e){let t=[];if(Array.isArray(e)){let r=new Set(e.flat(1/0).reverse());for(let o of r)t.unshift(Gl(o))}else e!==void 0&&t.push(Gl(e));return t}static _$Eu(e,t){let r=t.attribute;return r===!1?void 0:typeof r=="string"?r:typeof e=="string"?e.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){var e;this._$ES=new Promise(t=>this.enableUpdating=t),this._$AL=new Map,this._$E_(),this.requestUpdate(),(e=this.constructor.l)==null||e.forEach(t=>t(this))}addController(e){var t;(this._$EO??(this._$EO=new Set)).add(e),this.renderRoot!==void 0&&this.isConnected&&((t=e.hostConnected)==null||t.call(e))}removeController(e){var t;(t=this._$EO)==null||t.delete(e)}_$E_(){let e=new Map,t=this.constructor.elementProperties;for(let r of t.keys())this.hasOwnProperty(r)&&(e.set(r,this[r]),delete this[r]);e.size>0&&(this._$Ep=e)}createRenderRoot(){let e=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return Hu(e,this.constructor.elementStyles),e}connectedCallback(){var e;this.renderRoot??(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(e=this._$EO)==null||e.forEach(t=>{var r;return(r=t.hostConnected)==null?void 0:r.call(t)})}enableUpdating(e){}disconnectedCallback(){var e;(e=this._$EO)==null||e.forEach(t=>{var r;return(r=t.hostDisconnected)==null?void 0:r.call(t)})}attributeChangedCallback(e,t,r){this._$AK(e,r)}_$ET(e,t){var n;let r=this.constructor.elementProperties.get(e),o=this.constructor._$Eu(e,r);if(o!==void 0&&r.reflect===!0){let s=(((n=r.converter)==null?void 0:n.toAttribute)!==void 0?r.converter:qo).toAttribute(t,r.type);this._$Em=e,s==null?this.removeAttribute(o):this.setAttribute(o,s),this._$Em=null}}_$AK(e,t){var n,s;let r=this.constructor,o=r._$Eh.get(e);if(o!==void 0&&this._$Em!==o){let l=r.getPropertyOptions(o),d=typeof l.converter=="function"?{fromAttribute:l.converter}:((n=l.converter)==null?void 0:n.fromAttribute)!==void 0?l.converter:qo;this._$Em=o;let h=d.fromAttribute(t,l.type);this[o]=h??((s=this._$Ej)==null?void 0:s.get(o))??h,this._$Em=null}}requestUpdate(e,t,r,o=!1,n){var s;if(e!==void 0){let l=this.constructor;if(o===!1&&(n=this[e]),r??(r=l.getPropertyOptions(e)),!((r.hasChanged??_s)(n,t)||r.useDefault&&r.reflect&&n===((s=this._$Ej)==null?void 0:s.get(e))&&!this.hasAttribute(l._$Eu(e,r))))return;this.C(e,t,r)}this.isUpdatePending===!1&&(this._$ES=this._$EP())}C(e,t,{useDefault:r,reflect:o,wrapped:n},s){r&&!(this._$Ej??(this._$Ej=new Map)).has(e)&&(this._$Ej.set(e,s??t??this[e]),n!==!0||s!==void 0)||(this._$AL.has(e)||(this.hasUpdated||r||(t=void 0),this._$AL.set(e,t)),o===!0&&this._$Em!==e&&(this._$Eq??(this._$Eq=new Set)).add(e))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(t){Promise.reject(t)}let e=this.scheduleUpdate();return e!=null&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var r;if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??(this.renderRoot=this.createRenderRoot()),this._$Ep){for(let[n,s]of this._$Ep)this[n]=s;this._$Ep=void 0}let o=this.constructor.elementProperties;if(o.size>0)for(let[n,s]of o){let{wrapped:l}=s,d=this[n];l!==!0||this._$AL.has(n)||d===void 0||this.C(n,void 0,s,d)}}let e=!1,t=this._$AL;try{e=this.shouldUpdate(t),e?(this.willUpdate(t),(r=this._$EO)==null||r.forEach(o=>{var n;return(n=o.hostUpdate)==null?void 0:n.call(o)}),this.update(t)):this._$EM()}catch(o){throw e=!1,this._$EM(),o}e&&this._$AE(t)}willUpdate(e){}_$AE(e){var t;(t=this._$EO)==null||t.forEach(r=>{var o;return(o=r.hostUpdated)==null?void 0:o.call(r)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(e){return!0}update(e){this._$Eq&&(this._$Eq=this._$Eq.forEach(t=>this._$ET(t,this[t]))),this._$EM()}updated(e){}firstUpdated(e){}};Ot.elementStyles=[],Ot.shadowRootOptions={mode:"open"},Ot[Fo("elementProperties")]=new Map,Ot[Fo("finalized")]=new Map,zl==null||zl({ReactiveElement:Ot}),(Yt.reactiveElementVersions??(Yt.reactiveElementVersions=[])).push("2.1.2");var Go=globalThis,Vu=i=>i,ys=Go.trustedTypes,Wu=ys?ys.createPolicy("lit-html",{createHTML:i=>i}):void 0,Yu="$lit$",Qt=`lit$${Math.random().toFixed(9).slice(2)}$`,Qu="?"+Qt,bv=`<${Qu}>`,xi=document,zo=()=>xi.createComment(""),Yo=i=>i===null||typeof i!="object"&&typeof i!="function",td=Array.isArray,_v=i=>td(i)||typeof(i==null?void 0:i[Symbol.iterator])=="function",Yl=`[
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* BP Player (v1.4.
|
|
2
|
+
* BP Player (v1.4.3)
|
|
3
3
|
* Universal video player web component
|
|
4
4
|
*/
|
|
5
5
|
var Ub=Object.defineProperty;var _x=Object.getOwnPropertyDescriptor;var Fb=n=>{throw TypeError(n)};var kx=(n,e,t)=>e in n?Ub(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t;var Se=(n,e,t,i)=>{for(var s=i>1?void 0:i?_x(e,t):e,r=n.length-1,a;r>=0;r--)(a=n[r])&&(s=(i?a(e,t,s):a(s))||s);return i&&s&&Ub(e,t,s),s};var Pe=(n,e,t)=>kx(n,typeof e!="symbol"?e+"":e,t),sp=(n,e,t)=>e.has(n)||Fb("Cannot "+t);var P=(n,e,t)=>(sp(n,e,"read from private field"),t?t.call(n):e.get(n)),se=(n,e,t)=>e.has(n)?Fb("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(n):e.set(n,t),F=(n,e,t,i)=>(sp(n,e,"write to private field"),i?i.call(n,t):e.set(n,t),t),pe=(n,e,t)=>(sp(n,e,"access private method"),t);var qd=globalThis,jd=qd.ShadowRoot&&(qd.ShadyCSS===void 0||qd.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,rp=Symbol(),Bb=new WeakMap,Cl=class{constructor(e,t,i){if(this._$cssResult$=!0,i!==rp)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=t}get styleSheet(){let e=this.o,t=this.t;if(jd&&e===void 0){let i=t!==void 0&&t.length===1;i&&(e=Bb.get(t)),e===void 0&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),i&&Bb.set(t,e))}return e}toString(){return this.cssText}},$b=n=>new Cl(typeof n=="string"?n:n+"",void 0,rp),Il=(n,...e)=>{let t=n.length===1?n[0]:e.reduce((i,s,r)=>i+(a=>{if(a._$cssResult$===!0)return a.cssText;if(typeof a=="number")return a;throw Error("Value passed to 'css' function must be a 'css' function result: "+a+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(s)+n[r+1],n[0]);return new Cl(t,n,rp)},Vb=(n,e)=>{if(jd)n.adoptedStyleSheets=e.map(t=>t instanceof CSSStyleSheet?t:t.styleSheet);else for(let t of e){let i=document.createElement("style"),s=qd.litNonce;s!==void 0&&i.setAttribute("nonce",s),i.textContent=t.cssText,n.appendChild(i)}},ap=jd?n=>n:n=>n instanceof CSSStyleSheet?(e=>{let t="";for(let i of e.cssRules)t+=i.cssText;return $b(t)})(n):n;var{is:Ax,defineProperty:Cx,getOwnPropertyDescriptor:Ix,getOwnPropertyNames:Rx,getOwnPropertySymbols:xx,getPrototypeOf:Lx}=Object,Cs=globalThis,Hb=Cs.trustedTypes,Px=Hb?Hb.emptyScript:"",op=Cs.reactiveElementPolyfillSupport,Rl=(n,e)=>n,xl={toAttribute(n,e){switch(e){case Boolean:n=n?Px:null;break;case Object:case Array:n=n==null?n:JSON.stringify(n)}return n},fromAttribute(n,e){let t=n;switch(e){case Boolean:t=n!==null;break;case Number:t=n===null?null:Number(n);break;case Object:case Array:try{t=JSON.parse(n)}catch{t=null}}return t}},Yd=(n,e)=>!Ax(n,e),Gb={attribute:!0,type:String,converter:xl,reflect:!1,useDefault:!1,hasChanged:Yd};Symbol.metadata??(Symbol.metadata=Symbol("metadata")),Cs.litPropertyMetadata??(Cs.litPropertyMetadata=new WeakMap);var is=class extends HTMLElement{static addInitializer(e){this._$Ei(),(this.l??(this.l=[])).push(e)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(e,t=Gb){if(t.state&&(t.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(e)&&((t=Object.create(t)).wrapped=!0),this.elementProperties.set(e,t),!t.noAccessor){let i=Symbol(),s=this.getPropertyDescriptor(e,i,t);s!==void 0&&Cx(this.prototype,e,s)}}static getPropertyDescriptor(e,t,i){let{get:s,set:r}=Ix(this.prototype,e)??{get(){return this[t]},set(a){this[t]=a}};return{get:s,set(a){let o=s==null?void 0:s.call(this);r==null||r.call(this,a),this.requestUpdate(e,o,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)??Gb}static _$Ei(){if(this.hasOwnProperty(Rl("elementProperties")))return;let e=Lx(this);e.finalize(),e.l!==void 0&&(this.l=[...e.l]),this.elementProperties=new Map(e.elementProperties)}static finalize(){if(this.hasOwnProperty(Rl("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(Rl("properties"))){let t=this.properties,i=[...Rx(t),...xx(t)];for(let s of i)this.createProperty(s,t[s])}let e=this[Symbol.metadata];if(e!==null){let t=litPropertyMetadata.get(e);if(t!==void 0)for(let[i,s]of t)this.elementProperties.set(i,s)}this._$Eh=new Map;for(let[t,i]of this.elementProperties){let s=this._$Eu(t,i);s!==void 0&&this._$Eh.set(s,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(e){let t=[];if(Array.isArray(e)){let i=new Set(e.flat(1/0).reverse());for(let s of i)t.unshift(ap(s))}else e!==void 0&&t.push(ap(e));return t}static _$Eu(e,t){let i=t.attribute;return i===!1?void 0:typeof i=="string"?i:typeof e=="string"?e.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){var e;this._$ES=new Promise(t=>this.enableUpdating=t),this._$AL=new Map,this._$E_(),this.requestUpdate(),(e=this.constructor.l)==null||e.forEach(t=>t(this))}addController(e){var t;(this._$EO??(this._$EO=new Set)).add(e),this.renderRoot!==void 0&&this.isConnected&&((t=e.hostConnected)==null||t.call(e))}removeController(e){var t;(t=this._$EO)==null||t.delete(e)}_$E_(){let e=new Map,t=this.constructor.elementProperties;for(let i of t.keys())this.hasOwnProperty(i)&&(e.set(i,this[i]),delete this[i]);e.size>0&&(this._$Ep=e)}createRenderRoot(){let e=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return Vb(e,this.constructor.elementStyles),e}connectedCallback(){var e;this.renderRoot??(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(e=this._$EO)==null||e.forEach(t=>{var i;return(i=t.hostConnected)==null?void 0:i.call(t)})}enableUpdating(e){}disconnectedCallback(){var e;(e=this._$EO)==null||e.forEach(t=>{var i;return(i=t.hostDisconnected)==null?void 0:i.call(t)})}attributeChangedCallback(e,t,i){this._$AK(e,i)}_$ET(e,t){var r;let i=this.constructor.elementProperties.get(e),s=this.constructor._$Eu(e,i);if(s!==void 0&&i.reflect===!0){let a=(((r=i.converter)==null?void 0:r.toAttribute)!==void 0?i.converter:xl).toAttribute(t,i.type);this._$Em=e,a==null?this.removeAttribute(s):this.setAttribute(s,a),this._$Em=null}}_$AK(e,t){var r,a;let i=this.constructor,s=i._$Eh.get(e);if(s!==void 0&&this._$Em!==s){let o=i.getPropertyOptions(s),l=typeof o.converter=="function"?{fromAttribute:o.converter}:((r=o.converter)==null?void 0:r.fromAttribute)!==void 0?o.converter:xl;this._$Em=s;let c=l.fromAttribute(t,o.type);this[s]=c??((a=this._$Ej)==null?void 0:a.get(s))??c,this._$Em=null}}requestUpdate(e,t,i,s=!1,r){var a;if(e!==void 0){let o=this.constructor;if(s===!1&&(r=this[e]),i??(i=o.getPropertyOptions(e)),!((i.hasChanged??Yd)(r,t)||i.useDefault&&i.reflect&&r===((a=this._$Ej)==null?void 0:a.get(e))&&!this.hasAttribute(o._$Eu(e,i))))return;this.C(e,t,i)}this.isUpdatePending===!1&&(this._$ES=this._$EP())}C(e,t,{useDefault:i,reflect:s,wrapped:r},a){i&&!(this._$Ej??(this._$Ej=new Map)).has(e)&&(this._$Ej.set(e,a??t??this[e]),r!==!0||a!==void 0)||(this._$AL.has(e)||(this.hasUpdated||i||(t=void 0),this._$AL.set(e,t)),s===!0&&this._$Em!==e&&(this._$Eq??(this._$Eq=new Set)).add(e))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(t){Promise.reject(t)}let e=this.scheduleUpdate();return e!=null&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var i;if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??(this.renderRoot=this.createRenderRoot()),this._$Ep){for(let[r,a]of this._$Ep)this[r]=a;this._$Ep=void 0}let s=this.constructor.elementProperties;if(s.size>0)for(let[r,a]of s){let{wrapped:o}=a,l=this[r];o!==!0||this._$AL.has(r)||l===void 0||this.C(r,void 0,a,l)}}let e=!1,t=this._$AL;try{e=this.shouldUpdate(t),e?(this.willUpdate(t),(i=this._$EO)==null||i.forEach(s=>{var r;return(r=s.hostUpdate)==null?void 0:r.call(s)}),this.update(t)):this._$EM()}catch(s){throw e=!1,this._$EM(),s}e&&this._$AE(t)}willUpdate(e){}_$AE(e){var t;(t=this._$EO)==null||t.forEach(i=>{var s;return(s=i.hostUpdated)==null?void 0:s.call(i)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(e){return!0}update(e){this._$Eq&&(this._$Eq=this._$Eq.forEach(t=>this._$ET(t,this[t]))),this._$EM()}updated(e){}firstUpdated(e){}};is.elementStyles=[],is.shadowRootOptions={mode:"open"},is[Rl("elementProperties")]=new Map,is[Rl("finalized")]=new Map,op==null||op({ReactiveElement:is}),(Cs.reactiveElementVersions??(Cs.reactiveElementVersions=[])).push("2.1.2");var Pl=globalThis,Kb=n=>n,zd=Pl.trustedTypes,Wb=zd?zd.createPolicy("lit-html",{createHTML:n=>n}):void 0,Xb="$lit$",Is=`lit$${Math.random().toFixed(9).slice(2)}$`,Jb="?"+Is,wx=`<${Jb}>`,Lr=document,wl=()=>Lr.createComment(""),Dl=n=>n===null||typeof n!="object"&&typeof n!="function",pp=Array.isArray,Dx=n=>pp(n)||typeof(n==null?void 0:n[Symbol.iterator])=="function",lp=`[
|