text: !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.Clappr=t():e.Clappr=t()}(this,function(){return function(e){function t(i){if(n[i])return n[i].exports;var r=n[i]={exports:{},id:i,loaded:!1};return e[i].call(r.exports,r,r.exports,t),r.loaded=!0,r.exports}var n={};return t.m=e,t.c=n,t.p="<%=baseUrl%>/",t(0)}([function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var r=n(98),a=i(r),o=n(3),s=i(o),l=n(1),u=i(l),c=n(9),d=i(c),f=n(17),h=i(f),p=n(30),v=i(p),g=n(32),y=i(g),m=n(18),b=i(m),E=n(12),k=i(E),A=n(13),_=i(A),T=n(11),L=i(T),O=n(33),S=i(O),w=n(34),P=i(w),C=n(14),R=i(C),D=n(35),I=i(D),x=n(19),N=i(x),M=n(23),F=i(M),B=n(36),j=i(B),U=n(37),G=i(U),Y=n(38),V=i(Y),K=n(39),$=i(K),H=n(20),z=i(H),W=n(40),q=i(W),X=n(42),Z=i(X),J=n(41),Q=i(J),ee=n(4),te=i(ee),ne=n(5),ie=i(ne),re=n(2),ae=i(re),oe="0.2.25";t["default"]={Player:a["default"],Mediator:R["default"],Events:u["default"],Browser:L["default"],PlayerInfo:N["default"],MediaControl:I["default"],ContainerPlugin:h["default"],UIContainerPlugin:b["default"],CorePlugin:v["default"],UICorePlugin:y["default"],Playback:d["default"],Container:S["default"],Core:P["default"],BaseObject:k["default"],UIObject:_["default"],Utils:s["default"],BaseFlashPlayback:F["default"],Flash:j["default"],FlasHLS:G["default"],HLS:V["default"],HTML5Audio:$["default"],HTML5Video:z["default"],HTMLImg:q["default"],Poster:Z["default"],Log:Q["default"],Styler:te["default"],version:oe,template:ie["default"],$:ae["default"]},e.exports=t["default"]},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{"default":e}}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var a=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),o=n(41),s=i(o),l=n(3),u=n(84),c=i(u),d=Array.prototype.slice,f=function(){function e(){r(this,e)}return a(e,[{key:"on",value:function(e,t,n){if(!p(this,"on",e,[t,n])||!t)return this;this._events||(this._events={});var i=this._events[e]||(this._events[e]=[]);return i.push({callback:t,context:n,ctx:n||this}),this}},{key:"once",value:function t(e,n,i){if(!p(this,"once",e,[n,i])||!n)return this;var r=this,t=(0,c["default"])(function(){r.off(e,t),n.apply(this,arguments)});return t._callback=n,this.on(e,t,i)}},{key:"off",value:function(e,t,n){var i,r,a,o,s,l,u,c;if(!this._events||!p(this,"off",e,[t,n]))return this;if(!e&&!t&&!n)return this._events=void 0,this;for(o=e?[e]:Object.keys(this._events),s=0,l=o.length;l>s;s++)if(e=o[s],a=this._events[e]){if(this._events[e]=i=[],t||n)for(u=0,c=a.length;c>u;u++)r=a[u],(t&&t!==r.callback&&t!==r.callback._callback||n&&n!==r.context)&&i.push(r);i.length||delete this._events[e]}return this}},{key:"trigger",value:function(e){try{var t=this.name||this.constructor.name;if(s["default"].debug.apply(s["default"],[t].concat(Array.prototype.slice.call(arguments))),!this._events)return this;var n=d.call(arguments,1);if(!p(this,"trigger",e,n))return this;var i=this._events[e],r=this._events.all;i&&v(i,n),r&&v(r,arguments)}catch(a){s["default"].error.apply(s["default"],[t,"error on event",e,"trigger","-",a])}return this}},{key:"stopListening",value:function(e,t,n){var i=this._listeningTo;if(!i)return this;var r=!t&&!n;n||"object"!=typeof t||(n=this),e&&((i={})[e._listenId]=e);for(var a in i)e=i[a],e.off(t,n,this),(r||0===Object.keys(e._events).length)&&delete this._listeningTo[a];return this}}]),e}();t["default"]=f;var h=/\s+/,p=function(e,t,n,i){if(!n)return!0;if("object"==typeof n){for(var r in n)e[t].apply(e,[r,n[r]].concat(i));return!1}if(h.test(n)){for(var a=n.split(h),o=0,s=a.length;s>o;o++)e[t].apply(e,[a[o]].concat(i));return!1}return!0},v=function(e,t){var n,i=-1,r=e.length,a=t[0],o=t[1],s=t[2];switch(t.length){case 0:for(;++i<r;)(n=e[i]).callback.call(n.ctx);return;case 1:for(;++i<r;)(n=e[i]).callback.call(n.ctx,a);return;case 2:for(;++i<r;)(n=e[i]).callback.call(n.ctx,a,o);return;case 3:for(;++i<r;)(n=e[i]).callback.call(n.ctx,a,o,s);return;default:for(;++i<r;)(n=e[i]).callback.apply(n.ctx,t);return}},g={listenTo:"on",listenToOnce:"once"};Object.keys(g).forEach(function(e){f.prototype[e]=function(t,n,i){var r=this._listeningTo||(this._listeningTo={}),a=t._listenId||(t._listenId=(0,l.uniqueId)("l"));return r[a]=t,i||"object"!=typeof n||(i=this),t[g[e]](n,i,this),this}}),f.PLAYER_READY="ready",f.PLAYER_RESIZE="resize",f.PLAYER_PLAY="play",f.PLAYER_PAUSE="pause",f.PLAYER_STOP="stop",f.PLAYER_ENDED="ended",f.PLAYER_SEEK="seek",f.PLAYER_ERROR="error",f.PLAYER_TIMEUPDATE="timeupdate",f.PLAYER_VOLUMEUPDATE="volumeupdate",f.PLAYBACK_PROGRESS="playback:progress",f.PLAYBACK_TIMEUPDATE="playback:timeupdate",f.PLAYBACK_READY="playback:ready",f.PLAYBACK_BUFFERING="playback:buffering",f.PLAYBACK_BUFFERFULL="playback:bufferfull",f.PLAYBACK_SETTINGSUPDATE="playback:settingsupdate",f.PLAYBACK_LOADEDMETADATA="playback:loadedmetadata",f.PLAYBACK_HIGHDEFINITIONUPDATE="playback:highdefinitionupdate",f.PLAYBACK_BITRATE="playback:bitrate",f.PLAYBACK_LEVELS_AVAILABLE="playback:levels:available",f.PLAYBACK_LEVEL_SWITCH_START="playback:levels:switch:start",f.PLAYBACK_LEVEL_SWITCH_END="playback:levels:switch:end",f.PLAYBACK_PLAYBACKSTATE="playback:playbackstate",f.PLAYBACK_DVR="playback:dvr",f.PLAYBACK_MEDIACONTROL_DISABLE="playback:mediacontrol:disable",f.PLAYBACK_MEDIACONTROL_ENABLE="playback:mediacontrol:enable",f.PLAYBACK_ENDED="playback:ended",f.PLAYBACK_PLAY="playback:play",f.PLAYBACK_PAUSE="playback:pause",f.PLAYBACK_STOP="playback:stop",f.PLAYBACK_ERROR="playback:error",f.PLAYBACK_STATS_ADD="playback:stats:add",f.PLAYBACK_FRAGMENT_LOADED="playback:fragment:loaded",f.PLAYBACK_LEVEL_SWITCH="playback:level:switch",f.CORE_OPTIONS_CHANGE="core:options:change",f.CORE_READY="core:ready",f.CONTAINER_PLAYBACKSTATE="container:playbackstate",f.CONTAINER_PLAYBACKDVRSTATECHANGED="container:dvr",f.CONTAINER_BITRATE="container:bitrate",f.CONTAINER_STATS_REPORT="container:stats:report",f.CONTAINER_DESTROYED="container:destroyed",f.CONTAINER_READY="container:ready",f.CONTAINER_ERROR="container:error",f.CONTAINER_LOADEDMETADATA="container:loadedmetadata",f.CONTAINER_TIMEUPDATE="container:timeupdate",f.CONTAINER_PROGRESS="container:progress",f.CONTAINER_PLAY="container:play",f.CONTAINER_STOP="container:stop",f.CONTAINER_PAUSE="container:pause",f.CONTAINER_ENDED="container:ended",f.CONTAINER_CLICK="container:click",f.CONTAINER_DBLCLICK="container:dblclick",f.CONTAINER_CONTEXTMENU="container:contextmenu",f.CONTAINER_MOUSE_ENTER="container:mouseenter",f.CONTAINER_MOUSE_LEAVE="container:mouseleave",f.CONTAINER_SEEK="container:seek",f.CONTAINER_VOLUME="container:volume",f.CONTAINER_FULLSCREEN="container:fullscreen",f.CONTAINER_STATE_BUFFERING="container:state:buffering",f.CONTAINER_STATE_BUFFERFULL="container:state:bufferfull",f.CONTAINER_SETTINGSUPDATE="container:settingsupdate",f.CONTAINER_HIGHDEFINITIONUPDATE="container:highdefinitionupdate",f.CONTAINER_MEDIACONTROL_SHOW="container:mediacontrol:show",f.CONTAINER_MEDIACONTROL_HIDE="container:mediacontrol:hide",f.CONTAINER_MEDIACONTROL_DISABLE="container:mediacontrol:disable",f.CONTAINER_MEDIACONTROL_ENABLE="container:mediacontrol:enable",f.CONTAINER_STATS_ADD="container:stats:add",f.CONTAINER_OPTIONS_CHANGE="container:options:change",f.MEDIACONTROL_RENDERED="mediacontrol:rendered",f.MEDIACONTROL_FULLSCREEN="mediacontrol:fullscreen",f.MEDIACONTROL_SHOW="mediacontrol:show",f.MEDIACONTROL_HIDE="mediacontrol:hide",f.MEDIACONTROL_MOUSEMOVE_SEEKBAR="mediacontrol:mousemove:seekbar",f.MEDIACONTROL_MOUSELEAVE_SEEKBAR="mediacontrol:mouseleave:seekbar",f.MEDIACONTROL_PLAYING="mediacontrol:playing",f.MEDIACONTROL_NOTPLAYING="mediacontrol:notplaying",f.MEDIACONTROL_CONTAINERCHANGED="mediacontrol:containerchanged",e.exports=t["default"]},function(e,t){"use strict";var n=function(){function e(e){return null==e?String(e):W[q.call(e)]||"object"}function t(t){return"function"==e(t)}function n(e){return null!=e&&e==e.window}function i(e){return null!=e&&e.nodeType==e.DOCUMENT_NODE}function r(t){return"object"==e(t)}function a(e){return r(e)&&!n(e)&&Object.getPrototypeOf(e)==Object.prototype}function o(e){return"number"==typeof e.length}function s(e){return C.call(e,function(e){return null!=e})}function l(e){return e.length>0?T.fn.concat.apply([],e):e}function u(e){return e.replace(/::/g,"/").replace(/([A-Z]+)([A-Z][a-z])/g,"$1_$2").replace(/([a-z\d])([A-Z])/g,"$1_$2").replace(/_/g,"-").toLowerCase()}function c(e){return e in x?x[e]:x[e]=new RegExp("(^|\\s)"+e+"(\\s|$)")}function d(e,t){return"number"!=typeof t||N[u(e)]?t:t+"px"}function f(e){var t,n;return I[e]||(t=D.createElement(e),D.body.appendChild(t),n=getComputedStyle(t,"").getPropertyValue("display"),t.parentNode.removeChild(t),"none"==n&&(n="block"),I[e]=n),I[e]}function h(e){return"children"in e?R.call(e.children):T.map(e.childNodes,function(e){return 1==e.nodeType?e:void 0})}function p(e,t){var n,i=e?e.length:0;for(n=0;i>n;n++)this[n]=e[n];this.length=i,this.selector=t||""}function v(e,t,n){for(_ in t)n&&(a(t[_])||Q(t[_]))?(a(t[_])&&!a(e[_])&&(e[_]={}),Q(t[_])&&!Q(e[_])&&(e[_]=[]),v(e[_],t[_],n)):t[_]!==A&&(e[_]=t[_])}function g(e,t){return null==t?T(e):T(e).filter(t)}function y(e,n,i,r){return t(n)?n.call(e,i,r):n}function m(e,t,n){null==n?e.removeAttribute(t):e.setAttribute(t,n)}function b(e,t){var n=e.className||"",i=n&&n.baseVal!==A;return t===A?i?n.baseVal:n:void(i?n.baseVal=t:e.className=t)}function E(e){try{return e?"true"==e||("false"==e?!1:"null"==e?null:+e+""==e?+e:/^[\[\{]/.test(e)?T.parseJSON(e):e):e}catch(t){return e}}function k(e,t){t(e);for(var n=0,i=e.childNodes.length;i>n;n++)k(e.childNodes[n],t)}var A,_,T,L,O,S,w=[],P=w.concat,C=w.filter,R=w.slice,D=window.document,I={},x={},N={"column-count":1,columns:1,"font-weight":1,"line-height":1,opacity:1,"z-index":1,zoom:1},M=/^\s*<(\w+|!)[^>]*>/,F=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,B=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,j=/^(?:body|html)$/i,U=/([A-Z])/g,G=["val","css","html","text","data","width","height","offset"],Y=["after","prepend","before","append"],V=D.createElement("table"),K=D.createElement("tr"),$={tr:D.createElement("tbody"),tbody:V,thead:V,tfoot:V,td:K,th:K,"*":D.createElement("div")},H=/complete|loaded|interactive/,z=/^[\w-]*$/,W={},q=W.toString,X={},Z=D.createElement("div"),J={tabindex:"tabIndex",readonly:"readOnly","for":"htmlFor","class":"className",maxlength:"maxLength",cellspacing:"cellSpacing",cellpadding:"cellPadding",rowspan:"rowSpan",colspan:"colSpan",usemap:"useMap",frameborder:"frameBorder",contenteditable:"contentEditable"},Q=Array.isArray||function(e){return e instanceof Array};return X.matches=function(e,t){if(!t||!e||1!==e.nodeType)return!1;var n=e.webkitMatchesSelector||e.mozMatchesSelector||e.oMatchesSelector||e.matchesSelector;if(n)return n.call(e,t);var i,r=e.parentNode,a=!r;return a&&(r=Z).appendChild(e),i=~X.qsa(r,t).indexOf(e),a&&Z.removeChild(e),i},O=function(e){return e.replace(/-+(.)?/g,function(e,t){return t?t.toUpperCase():""})},S=function(e){return C.call(e,function(t,n){return e.indexOf(t)==n})},X.fragment=function(e,t,n){var i,r,o;return F.test(e)&&(i=T(D.createElement(RegExp.$1))),i||(e.replace&&(e=e.replace(B,"<$1></$2>")),t===A&&(t=M.test(e)&&RegExp.$1),t in $||(t="*"),o=$[t],o.innerHTML=""+e,i=T.each(R.call(o.childNodes),function(){o.removeChild(this)})),a(n)&&(r=T(i),T.each(n,function(e,t){G.indexOf(e)>-1?r[e](t):r.attr(e,t)})),i},X.Z=function(e,t){return new p(e,t)},X.isZ=function(e){return e instanceof X.Z},X.init=function(e,n){var i;if(!e)return X.Z();if("string"==typeof e)if(e=e.trim(),"<"==e[0]&&M.test(e))i=X.fragment(e,RegExp.$1,n),e=null;else{if(n!==A)return T(n).find(e);i=X.qsa(D,e)}else{if(t(e))return T(D).ready(e);if(X.isZ(e))return e;if(Q(e))i=s(e);else if(r(e))i=[e],e=null;else if(M.test(e))i=X.fragment(e.trim(),RegExp.$1,n),e=null;else{if(n!==A)return T(n).find(e);i=X.qsa(D,e)}}return X.Z(i,e)},T=function(e,t){return X.init(e,t)},T.extend=function(e){var t,n=R.call(arguments,1);return"boolean"==typeof e&&(t=e,e=n.shift()),n.forEach(function(n){v(e,n,t)}),e},X.qsa=function(e,t){var n,i="#"==t[0],r=!i&&"."==t[0],a=i||r?t.slice(1):t,o=z.test(a);return e.getElementById&&o&&i?(n=e.getElementById(a))?[n]:[]:1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType?[]:R.call(o&&!i&&e.getElementsByClassName?r?e.getElementsByClassName(a):e.getElementsByTagName(t):e.querySelectorAll(t))},T.contains=D.documentElement.contains?function(e,t){return e!==t&&e.contains(t)}:function(e,t){for(;t&&(t=t.parentNode);)if(t===e)return!0;return!1},T.type=e,T.isFunction=t,T.isWindow=n,T.isArray=Q,T.isPlainObject=a,T.isEmptyObject=function(e){var t;for(t in e)return!1;return!0},T.inArray=function(e,t,n){return w.indexOf.call(t,e,n)},T.camelCase=O,T.trim=function(e){return null==e?"":String.prototype.trim.call(e)},T.uuid=0,T.support={},T.expr={},T.noop=function(){},T.map=function(e,t){var n,i,r,a=[];if(o(e))for(i=0;i<e.length;i++)n=t(e[i],i),null!=n&&a.push(n);else for(r in e)n=t(e[r],r),null!=n&&a.push(n);return l(a)},T.each=function(e,t){var n,i;if(o(e)){for(n=0;n<e.length;n++)if(t.call(e[n],n,e[n])===!1)return e}else for(i in e)if(t.call(e[i],i,e[i])===!1)return e;return e},T.grep=function(e,t){return C.call(e,t)},window.JSON&&(T.parseJSON=JSON.parse),T.each("Boolean Number String Function Array Date RegExp Object Error".split(" "),function(e,t){W["[object "+t+"]"]=t.toLowerCase()}),T.fn={constructor:X.Z,length:0,forEach:w.forEach,reduce:w.reduce,push:w.push,sort:w.sort,splice:w.splice,indexOf:w.indexOf,concat:function(){var e,t,n=[];for(e=0;e<arguments.length;e++)t=arguments[e],n[e]=X.isZ(t)?t.toArray():t;return P.apply(X.isZ(this)?this.toArray():this,n)},map:function(e){return T(T.map(this,function(t,n){return e.call(t,n,t)}))},slice:function(){return T(R.apply(this,arguments))},ready:function(e){return H.test(D.readyState)&&D.body?e(T):D.addEventListener("DOMContentLoaded",function(){e(T)},!1),this},get:function(e){return e===A?R.call(this):this[e>=0?e:e+this.length]},toArray:function(){return this.get()},size:function(){return this.length},remove:function(){return this.each(function(){null!=this.parentNode&&this.parentNode.removeChild(this)})},each:function(e){return w.every.call(this,function(t,n){return e.call(t,n,t)!==!1}),this},filter:function(e){return t(e)?this.not(this.not(e)):T(C.call(this,function(t){return X.matches(t,e)}))},add:function(e,t){return T(S(this.concat(T(e,t))))},is:function(e){return this.length>0&&X.matches(this[0],e)},not:function(e){var n=[];if(t(e)&&e.call!==A)this.each(function(t){e.call(this,t)||n.push(this)});else{var i="string"==typeof e?this.filter(e):o(e)&&t(e.item)?R.call(e):T(e);this.forEach(function(e){i.indexOf(e)<0&&n.push(e)})}return T(n)},has:function(e){return this.filter(function(){return r(e)?T.contains(this,e):T(this).find(e).size()})},eq:function(e){return-1===e?this.slice(e):this.slice(e,+e+1)},first:function(){var e=this[0];return e&&!r(e)?e:T(e)},last:function(){var e=this[this.length-1];return e&&!r(e)?e:T(e)},find:function(e){var t,n=this;return t=e?"object"==typeof e?T(e).filter(function(){var e=this;return w.some.call(n,function(t){return T.contains(t,e)})}):1==this.length?T(X.qsa(this[0],e)):this.map(function(){return X.qsa(this,e)}):T()},closest:function(e,t){var n=this[0],r=!1;for("object"==typeof e&&(r=T(e));n&&!(r?r.indexOf(n)>=0:X.matches(n,e));)n=n!==t&&!i(n)&&n.parentNode;return T(n)},parents:function(e){for(var t=[],n=this;n.length>0;)n=T.map(n,function(e){return(e=e.parentNode)&&!i(e)&&t.indexOf(e)<0?(t.push(e),e):void 0});return g(t,e)},parent:function(e){return g(S(this.pluck("parentNode")),e)},children:function(e){return g(this.map(function(){return h(this)}),e)},contents:function(){return this.map(function(){return this.contentDocument||R.call(this.childNodes)})},siblings:function(e){return g(this.map(function(e,t){return C.call(h(t.parentNode),function(e){return e!==t})}),e)},empty:function(){return this.each(function(){this.innerHTML=""})},pluck:function(e){return T.map(this,function(t){return t[e]})},show:function(){return this.each(function(){"none"==this.style.display&&(this.style.display=""),"none"==getComputedStyle(this,"").getPropertyValue("display")&&(this.style.display=f(this.nodeName))})},replaceWith:function(e){return this.before(e).remove()},wrap:function(e){var n=t(e);if(this[0]&&!n)var i=T(e).get(0),r=i.parentNode||this.length>1;return this.each(function(t){T(this).wrapAll(n?e.call(this,t):r?i.cloneNode(!0):i)})},wrapAll:function(e){if(this[0]){T(this[0]).before(e=T(e));for(var t;(t=e.children()).length;)e=t.first();T(e).append(this)}return this},wrapInner:function(e){var n=t(e);return this.each(function(t){var i=T(this),r=i.contents(),a=n?e.call(this,t):e;r.length?r.wrapAll(a):i.append(a)})},unwrap:function(){return this.parent().each(function(){T(this).replaceWith(T(this).children())}),this},clone:function(){return this.map(function(){return this.cloneNode(!0)})},hide:function(){return this.css("display","none")},toggle:function(e){return this.each(function(){var t=T(this);(e===A?"none"==t.css("display"):e)?t.show():t.hide()})},prev:function(e){return T(this.pluck("previousElementSibling")).filter(e||"*")},next:function(e){return T(this.pluck("nextElementSibling")).filter(e||"*")},html:function(e){return 0 in arguments?this.each(function(t){var n=this.innerHTML;T(this).empty().append(y(this,e,t,n))}):0 in this?this[0].innerHTML:null},text:function(e){return 0 in arguments?this.each(function(t){var n=y(this,e,t,this.textContent);this.textContent=null==n?"":""+n}):0 in this?this[0].textContent:null},attr:function(e,t){var n;return"string"!=typeof e||1 in arguments?this.each(function(n){if(1===this.nodeType)if(r(e))for(_ in e)m(this,_,e[_]);else m(this,e,y(this,t,n,this.getAttribute(e)))}):this.length&&1===this[0].nodeType?!(n=this[0].getAttribute(e))&&e in this[0]?this[0][e]:n:A},removeAttr:function(e){return this.each(function(){1===this.nodeType&&e.split(" ").forEach(function(e){m(this,e)},this)})},prop:function(e,t){return e=J[e]||e,1 in arguments?this.each(function(n){this[e]=y(this,t,n,this[e])}):this[0]&&this[0][e]},data:function(e,t){var n="data-"+e.replace(U,"-$1").toLowerCase(),i=1 in arguments?this.attr(n,t):this.attr(n);return null!==i?E(i):A},val:function(e){return 0 in arguments?this.each(function(t){this.value=y(this,e,t,this.value)}):this[0]&&(this[0].multiple?T(this[0]).find("option").filter(function(){return this.selected}).pluck("value"):this[0].value)},offset:function(e){if(e)return this.each(function(t){var n=T(this),i=y(this,e,t,n.offset()),r=n.offsetParent().offset(),a={top:i.top-r.top,left:i.left-r.left};"static"==n.css("position")&&(a.position="relative"),n.css(a)});if(!this.length)return null;if(!T.contains(D.documentElement,this[0]))return{top:0,left:0};var t=this[0].getBoundingClientRect();return{left:t.left+window.pageXOffset,top:t.top+window.pageYOffset,width:Math.round(t.width),height:Math.round(t.height)}},css:function(t,n){if(arguments.length<2){var i,r=this[0];if(!r)return;if(i=getComputedStyle(r,""),"string"==typeof t)return r.style[O(t)]||i.getPropertyValue(t);if(Q(t)){var a={};return T.each(t,function(e,t){a[t]=r.style[O(t)]||i.getPropertyValue(t)}),a}}var o="";if("string"==e(t))n||0===n?o=u(t)+":"+d(t,n):this.each(function(){this.style.removeProperty(u(t))});else for(_ in t)t[_]||0===t[_]?o+=u(_)+":"+d(_,t[_])+";":this.each(function(){this.style.removeProperty(u(_))});return this.each(function(){this.style.cssText+=";"+o})},index:function(e){return e?this.indexOf(T(e)[0]):this.parent().children().indexOf(this[0])},hasClass:function(e){return e?w.some.call(this,function(e){return this.test(b(e))},c(e)):!1},addClass:function(e){return e?this.each(function(t){if("className"in this){L=[];var n=b(this),i=y(this,e,t,n);i.split(/\s+/g).forEach(function(e){T(this).hasClass(e)||L.push(e)},this),L.length&&b(this,n+(n?" ":"")+L.join(" "))}}):this},removeClass:function(e){return this.each(function(t){if("className"in this){if(e===A)return b(this,"");L=b(this),y(this,e,t,L).split(/\s+/g).forEach(function(e){L=L.replace(c(e)," ")}),b(this,L.trim())}})},toggleClass:function(e,t){return e?this.each(function(n){var i=T(this),r=y(this,e,n,b(this));r.split(/\s+/g).forEach(function(e){(t===A?!i.hasClass(e):t)?i.addClass(e):i.removeClass(e)})}):this},scrollTop:function(e){if(this.length){var t="scrollTop"in this[0];return e===A?t?this[0].scrollTop:this[0].pageYOffset:this.each(t?function(){this.scrollTop=e}:function(){this.scrollTo(this.scrollX,e)})}},scrollLeft:function(e){if(this.length){var t="scrollLeft"in this[0];return e===A?t?this[0].scrollLeft:this[0].pageXOffset:this.each(t?function(){this.scrollLeft=e}:function(){this.scrollTo(e,this.scrollY)})}},position:function(){if(this.length){var e=this[0],t=this.offsetParent(),n=this.offset(),i=j.test(t[0].nodeName)?{top:0,left:0}:t.offset();return n.top-=parseFloat(T(e).css("margin-top"))||0,n.left-=parseFloat(T(e).css("margin-left"))||0,i.top+=parseFloat(T(t[0]).css("border-top-width"))||0,i.left+=parseFloat(T(t[0]).css("border-left-width"))||0,{top:n.top-i.top,left:n.left-i.left}}},offsetParent:function(){return this.map(function(){for(var e=this.offsetParent||D.body;e&&!j.test(e.nodeName)&&"static"==T(e).css("position");)e=e.offsetParent;return e})}},T.fn.detach=T.fn.remove,["width","height"].forEach(function(e){var t=e.replace(/./,function(e){return e[0].toUpperCase()});T.fn[e]=function(r){var a,o=this[0];return r===A?n(o)?o["inner"+t]:i(o)?o.documentElement["scroll"+t]:(a=this.offset())&&a[e]:this.each(function(t){o=T(this),o.css(e,y(this,r,t,o[e]()))})}}),Y.forEach(function(t,n){var i=n%2;T.fn[t]=function(){var t,r,a=T.map(arguments,function(n){return t=e(n),"object"==t||"array"==t||null==n?n:X.fragment(n)}),o=this.length>1;return a.length<1?this:this.each(function(e,t){r=i?t:t.parentNode,t=0==n?t.nextSibling:1==n?t.firstChild:2==n?t:null;var s=T.contains(D.documentElement,r);a.forEach(function(e){if(o)e=e.cloneNode(!0);else if(!r)return T(e).remove();r.insertBefore(e,t),s&&k(e,function(e){null==e.nodeName||"SCRIPT"!==e.nodeName.toUpperCase()||e.type&&"text/javascript"!==e.type||e.src||window.eval.call(window,e.innerHTML)})})})},T.fn[i?t+"To":"insert"+(n?"Before":"After")]=function(e){return T(e)[t](this),this}}),X.Z.prototype=p.prototype=T.fn,X.uniq=S,X.deserializeValue=E,T.zepto=X,T}();window.Zepto=n,void 0===window.$&&(window.$=n),function(e){function t(e){return e._zid||(e._zid=f++)}function n(e,n,a,o){if(n=i(n),n.ns)var s=r(n.ns);return(g[t(e)]||[]).filter(function(e){return!(!e||n.e&&e.e!=n.e||n.ns&&!s.test(e.ns)||a&&t(e.fn)!==t(a)||o&&e.sel!=o)})}function i(e){var t=(""+e).split(".");return{e:t[0],ns:t.slice(1).sort().join(" ")}}function r(e){return new RegExp("(?:^| )"+e.replace(" "," .* ?")+"(?: |$)")}function a(e,t){return e.del&&!m&&e.e in b||!!t}function o(e){return E[e]||m&&b[e]||e}function s(n,r,s,l,c,f,h){var p=t(n),v=g[p]||(g[p]=[]);r.split(/\s/).forEach(function(t){if("ready"==t)return e(document).ready(s);var r=i(t);r.fn=s,r.sel=c,r.e in E&&(s=function(t){var n=t.relatedTarget;return!n||n!==this&&!e.contains(this,n)?r.fn.apply(this,arguments):void 0}),r.del=f;var p=f||s;r.proxy=function(e){if(e=u(e),!e.isImmediatePropagationStopped()){e.data=l;var t=p.apply(n,e._args==d?[e]:[e].concat(e._args));return t===!1&&(e.preventDefault(),e.stopPropagation()),t}},r.i=v.length,v.push(r),"addEventListener"in n&&n.addEventListener(o(r.e),r.proxy,a(r,h))})}function l(e,i,r,s,l){var u=t(e);(i||"").split(/\s/).forEach(function(t){n(e,t,r,s).forEach(function(t){delete g[u][t.i],"removeEventListener"in e&&e.removeEventListener(o(t.e),t.proxy,a(t,l))})})}function u(t,n){return(n||!t.isDefaultPrevented)&&(n||(n=t),e.each(T,function(e,i){var r=n[e];t[e]=function(){return this[i]=k,r&&r.apply(n,arguments)},t[i]=A}),(n.defaultPrevented!==d?n.defaultPrevented:"returnValue"in n?n.returnValue===!1:n.getPreventDefault&&n.getPreventDefault())&&(t.isDefaultPrevented=k)),t}function c(e){var t,n={originalEvent:e};for(t in e)_.test(t)||e[t]===d||(n[t]=e[t]);return u(n,e)}var d,f=1,h=Array.prototype.slice,p=e.isFunction,v=function(e){return"string"==typeof e},g={},y={},m="onfocusin"in window,b={focus:"focusin",blur:"focusout"},E={mouseenter:"mouseover",mouseleave:"mouseout"};y.click=y.mousedown=y.mouseup=y.mousemove="MouseEvents",e.event={add:s,remove:l},e.proxy=function(n,i){var r=2 in arguments&&h.call(arguments,2);if(p(n)){var a=function(){return n.apply(i,r?r.concat(h.call(arguments)):arguments)};return a._zid=t(n),a}if(v(i))return r?(r.unshift(n[i],n),e.proxy.apply(null,r)):e.proxy(n[i],n);throw new TypeError("expected function")},e.fn.bind=function(e,t,n){return this.on(e,t,n)},e.fn.unbind=function(e,t){return this.off(e,t)},e.fn.one=function(e,t,n,i){return this.on(e,t,n,i,1)};var k=function(){return!0},A=function(){return!1},_=/^([A-Z]|returnValue$|layer[XY]$)/,T={preventDefault:"isDefaultPrevented",stopImmediatePropagation:"isImmediatePropagationStopped",stopPropagation:"isPropagationStopped"};e.fn.delegate=function(e,t,n){return this.on(t,e,n)},e.fn.undelegate=function(e,t,n){return this.off(t,e,n)},e.fn.live=function(t,n){return e(document.body).delegate(this.selector,t,n),this},e.fn.die=function(t,n){return e(document.body).undelegate(this.selector,t,n),this},e.fn.on=function(t,n,i,r,a){var o,u,f=this;return t&&!v(t)?(e.each(t,function(e,t){f.on(e,n,i,t,a)}),f):(v(n)||p(r)||r===!1||(r=i,i=n,n=d),(r===d||i===!1)&&(r=i,i=d),r===!1&&(r=A),f.each(function(d,f){a&&(o=function(e){return l(f,e.type,r),r.apply(this,arguments)}),n&&(u=function(t){var i,a=e(t.target).closest(n,f).get(0);return a&&a!==f?(i=e.extend(c(t),{currentTarget:a,liveFired:f}),(o||r).apply(a,[i].concat(h.call(arguments,1)))):void 0}),s(f,t,r,i,n,u||o)}))},e.fn.off=function(t,n,i){var r=this;return t&&!v(t)?(e.each(t,function(e,t){r.off(e,n,t)}),r):(v(n)||p(i)||i===!1||(i=n,n=d),i===!1&&(i=A),r.each(function(){l(this,t,i,n)}))},e.fn.trigger=function(t,n){return t=v(t)||e.isPlainObject(t)?e.Event(t):u(t),t._args=n,this.each(function(){t.type in b&&"function"==typeof this[t.type]?this[t.type]():"dispatchEvent"in this?this.dispatchEvent(t):e(this).triggerHandler(t,n)})},e.fn.triggerHandler=function(t,i){var r,a;return this.each(function(o,s){r=c(v(t)?e.Event(t):t),r._args=i,r.target=s,e.each(n(s,t.type||t),function(e,t){return a=t.proxy(r),r.isImmediatePropagationStopped()?!1:void 0})}),a},"focusin focusout focus blur load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select keydown keypress keyup error".split(" ").forEach(function(t){e.fn[t]=function(e){return 0 in arguments?this.bind(t,e):this.trigger(t)}}),e.Event=function(e,t){v(e)||(t=e,e=t.type);var n=document.createEvent(y[e]||"Events"),i=!0;if(t)for(var r in t)"bubbles"==r?i=!!t[r]:n[r]=t[r];return n.initEvent(e,i,!0),u(n)}}(n),function(e){function t(t,n,i){var r=e.Event(n);return e(t).trigger(r,i),!r.isDefaultPrevented()}function n(e,n,i,r){return e.global?t(n||m,i,r):void 0}function i(t){t.global&&0===e.active++&&n(t,null,"ajaxStart")}function r(t){t.global&&!--e.active&&n(t,null,"ajaxStop")}function a(e,t){var i=t.context;return t.beforeSend.call(i,e,t)===!1||n(t,i,"ajaxBeforeSend",[e,t])===!1?!1:void n(t,i,"ajaxSend",[e,t])}function o(e,t,i,r){var a=i.context,o="success";i.success.call(a,e,o,t),r&&r.resolveWith(a,[e,o,t]),n(i,a,"ajaxSuccess",[t,i,e]),l(o,t,i)}function s(e,t,i,r,a){var o=r.context;r.error.call(o,i,t,e),a&&a.rejectWith(o,[i,t,e]),n(r,o,"ajaxError",[i,r,e||t]),l(t,i,r)}function l(e,t,i){var a=i.context;i.complete.call(a,t,e),n(i,a,"ajaxComplete",[t,i]),r(i)}function u(){}function c(e){return e&&(e=e.split(";",2)[0]),e&&(e==_?"html":e==A?"json":E.test(e)?"script":k.test(e)&&"xml")||"text"}function d(e,t){return""==t?e:(e+"&"+t).replace(/[&?]{1,2}/,"?")}function f(t){t.processData&&t.data&&"string"!=e.type(t.data)&&(t.data=e.param(t.data,t.traditional)),!t.data||t.type&&"GET"!=t.type.toUpperCase()||(t.url=d(t.url,t.data),t.data=void 0)}function h(t,n,i,r){return e.isFunction(n)&&(r=i,i=n,n=void 0),e.isFunction(i)||(r=i,i=void 0),{url:t,data:n,success:i,dataType:r}}function p(t,n,i,r){var a,o=e.isArray(n),s=e.isPlainObject(n);e.each(n,function(n,l){a=e.type(l),r&&(n=i?r:r+"["+(s||"object"==a||"array"==a?n:"")+"]"),!r&&o?t.add(l.name,l.value):"array"==a||!i&&"object"==a?p(t,l,i,n):t.add(n,l)})}var v,g,y=0,m=window.document,b=/<script\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/script>/gi,E=/^(?:text|application)\/javascript/i,k=/^(?:text|application)\/xml/i,A="application/json",_="text/html",T=/^\s*$/,L=m.createElement("a");L.href=window.location.href,e.active=0,e.ajaxJSONP=function(t,n){if(!("type"in t))return e.ajax(t);var i,r,l=t.jsonpCallback,u=(e.isFunction(l)?l():l)||"jsonp"+ ++y,c=m.createElement("script"),d=window[u],f=function(t){e(c).triggerHandler("error",t||"abort")},h={abort:f};return n&&n.promise(h),e(c).on("load error",function(a,l){clearTimeout(r),e(c).off().remove(),"error"!=a.type&&i?o(i[0],h,t,n):s(null,l||"error",h,t,n),window[u]=d,i&&e.isFunction(d)&&d(i[0]),d=i=void 0}),a(h,t)===!1?(f("abort"),h):(window[u]=function(){i=arguments},c.src=t.url.replace(/\?(.+)=\?/,"?$1="+u),m.head.appendChild(c),t.timeout>0&&(r=setTimeout(function(){f("timeout")},t.timeout)),h)},e.ajaxSettings={type:"GET",beforeSend:u,success:u,error:u,complete:u,context:null,global:!0,xhr:function(){return new window.XMLHttpRequest},accepts:{script:"text/javascript, application/javascript, application/x-javascript",json:A,xml:"application/xml, text/xml",html:_,text:"text/plain"},crossDomain:!1,timeout:0,processData:!0,cache:!0},e.ajax=function(t){var n,r,l=e.extend({},t||{}),h=e.Deferred&&e.Deferred();for(v in e.ajaxSettings)void 0===l[v]&&(l[v]=e.ajaxSettings[v]);i(l),l.crossDomain||(n=m.createElement("a"),n.href=l.url,n.href=n.href,l.crossDomain=L.protocol+"//"+L.host!=n.protocol+"//"+n.host),l.url||(l.url=window.location.toString()),(r=l.url.indexOf("#"))>-1&&(l.url=l.url.slice(0,r)),f(l);var p=l.dataType,y=/\?.+=\?/.test(l.url);if(y&&(p="jsonp"),l.cache!==!1&&(t&&t.cache===!0||"script"!=p&&"jsonp"!=p)||(l.url=d(l.url,"_="+Date.now())),"jsonp"==p)return y||(l.url=d(l.url,l.jsonp?l.jsonp+"=?":l.jsonp===!1?"":"callback=?")),e.ajaxJSONP(l,h);var b,E=l.accepts[p],k={},A=function(e,t){k[e.toLowerCase()]=[e,t]},_=/^([\w-]+:)\/\//.test(l.url)?RegExp.$1:window.location.protocol,O=l.xhr(),S=O.setRequestHeader;if(h&&h.promise(O),l.crossDomain||A("X-Requested-With","XMLHttpRequest"),A("Accept",E||"*/*"),(E=l.mimeType||E)&&(E.indexOf(",")>-1&&(E=E.split(",",2)[0]),O.overrideMimeType&&O.overrideMimeType(E)),(l.contentType||l.contentType!==!1&&l.data&&"GET"!=l.type.toUpperCase())&&A("Content-Type",l.contentType||"application/x-www-form-urlencoded"),l.headers)for(g in l.headers)A(g,l.headers[g]);if(O.setRequestHeader=A,O.onreadystatechange=function(){if(4==O.readyState){O.onreadystatechange=u,clearTimeout(b);var t,n=!1;if(O.status>=200&&O.status<300||304==O.status||0==O.status&&"file:"==_){p=p||c(l.mimeType||O.getResponseHeader("content-type")),t=O.responseText;try{"script"==p?(1,eval)(t):"xml"==p?t=O.responseXML:"json"==p&&(t=T.test(t)?null:e.parseJSON(t))}catch(i){n=i}n?s(n,"parsererror",O,l,h):o(t,O,l,h)}else s(O.statusText||null,O.status?"error":"abort",O,l,h)}},a(O,l)===!1)return O.abort(),s(null,"abort",O,l,h),O;if(l.xhrFields)for(g in l.xhrFields)O[g]=l.xhrFields[g];var w="async"in l?l.async:!0;O.open(l.type,l.url,w,l.username,l.password);for(g in k)S.apply(O,k[g]);return l.timeout>0&&(b=setTimeout(function(){O.onreadystatechange=u,O.abort(),s(null,"timeout",O,l,h)},l.timeout)),O.send(l.data?l.data:null),O},e.get=function(){return e.ajax(h.apply(null,arguments));
  },e.post=function(){var t=h.apply(null,arguments);return t.type="POST",e.ajax(t)},e.getJSON=function(){var t=h.apply(null,arguments);return t.dataType="json",e.ajax(t)},e.fn.load=function(t,n,i){if(!this.length)return this;var r,a=this,o=t.split(/\s/),s=h(t,n,i),l=s.success;return o.length>1&&(s.url=o[0],r=o[1]),s.success=function(t){a.html(r?e("<div>").html(t.replace(b,"")).find(r):t),l&&l.apply(a,arguments)},e.ajax(s),this};var O=encodeURIComponent;e.param=function(t,n){var i=[];return i.add=function(t,n){e.isFunction(n)&&(n=n()),null==n&&(n=""),this.push(O(t)+"="+O(n))},p(i,t,n),i.join("&").replace(/%20/g,"+")}}(n),function(e){e.Callbacks=function(t){t=e.extend({},t);var n,i,r,a,o,s,l=[],u=!t.once&&[],c=function f(e){for(n=t.memory&&e,i=!0,s=a||0,a=0,o=l.length,r=!0;l&&o>s;++s)if(l[s].apply(e[0],e[1])===!1&&t.stopOnFalse){n=!1;break}r=!1,l&&(u?u.length&&f(u.shift()):n?l.length=0:d.disable())},d={add:function(){if(l){var i=l.length,s=function u(n){e.each(n,function(e,n){"function"==typeof n?t.unique&&d.has(n)||l.push(n):n&&n.length&&"string"!=typeof n&&u(n)})};s(arguments),r?o=l.length:n&&(a=i,c(n))}return this},remove:function(){return l&&e.each(arguments,function(t,n){for(var i;(i=e.inArray(n,l,i))>-1;)l.splice(i,1),r&&(o>=i&&--o,s>=i&&--s)}),this},has:function(t){return!(!l||!(t?e.inArray(t,l)>-1:l.length))},empty:function(){return o=l.length=0,this},disable:function(){return l=u=n=void 0,this},disabled:function(){return!l},lock:function(){return u=void 0,n||d.disable(),this},locked:function(){return!u},fireWith:function(e,t){return!l||i&&!u||(t=t||[],t=[e,t.slice?t.slice():t],r?u.push(t):c(t)),this},fire:function(){return d.fireWith(this,arguments)},fired:function(){return!!i}};return d}}(n),function(e){function t(n){var i=[["resolve","done",e.Callbacks({once:1,memory:1}),"resolved"],["reject","fail",e.Callbacks({once:1,memory:1}),"rejected"],["notify","progress",e.Callbacks({memory:1})]],r="pending",a={state:function(){return r},always:function(){return o.done(arguments).fail(arguments),this},then:function(){var n=arguments;return t(function(t){e.each(i,function(i,r){var s=e.isFunction(n[i])&&n[i];o[r[1]](function(){var n=s&&s.apply(this,arguments);if(n&&e.isFunction(n.promise))n.promise().done(t.resolve).fail(t.reject).progress(t.notify);else{var i=this===a?t.promise():this,o=s?[n]:arguments;t[r[0]+"With"](i,o)}})}),n=null}).promise()},promise:function(t){return null!=t?e.extend(t,a):a}},o={};return e.each(i,function(e,t){var n=t[2],s=t[3];a[t[1]]=n.add,s&&n.add(function(){r=s},i[1^e][2].disable,i[2][2].lock),o[t[0]]=function(){return o[t[0]+"With"](this===o?a:this,arguments),this},o[t[0]+"With"]=n.fireWith}),a.promise(o),n&&n.call(o,o),o}var n=Array.prototype.slice;e.when=function(i){var r,a,o,s=n.call(arguments),l=s.length,u=0,c=1!==l||i&&e.isFunction(i.promise)?l:0,d=1===c?i:t(),f=function(e,t,i){return function(a){t[e]=this,i[e]=arguments.length>1?n.call(arguments):a,i===r?d.notifyWith(t,i):--c||d.resolveWith(t,i)}};if(l>1)for(r=new Array(l),a=new Array(l),o=new Array(l);l>u;++u)s[u]&&e.isFunction(s[u].promise)?s[u].promise().done(f(u,o,s)).fail(d.reject).progress(f(u,a,r)):--c;return c||d.resolveWith(o,s),d.promise()},e.Deferred=t}(n),function(e){function t(e,t,n,i){return Math.abs(e-t)>=Math.abs(n-i)?e-t>0?"Left":"Right":n-i>0?"Up":"Down"}function n(){c=null,f.last&&(f.el.trigger("longTap"),f={})}function i(){c&&clearTimeout(c),c=null}function r(){s&&clearTimeout(s),l&&clearTimeout(l),u&&clearTimeout(u),c&&clearTimeout(c),s=l=u=c=null,f={}}function a(e){return("touch"==e.pointerType||e.pointerType==e.MSPOINTER_TYPE_TOUCH)&&e.isPrimary}function o(e,t){return e.type=="pointer"+t||e.type.toLowerCase()=="mspointer"+t}var s,l,u,c,d,f={},h=750;e(document).ready(function(){var p,v,g,y,m=0,b=0;"MSGesture"in window&&(d=new MSGesture,d.target=document.body),e(document).bind("MSGestureEnd",function(e){var t=e.velocityX>1?"Right":e.velocityX<-1?"Left":e.velocityY>1?"Down":e.velocityY<-1?"Up":null;t&&(f.el.trigger("swipe"),f.el.trigger("swipe"+t))}).on("touchstart MSPointerDown pointerdown",function(t){(!(y=o(t,"down"))||a(t))&&(g=y?t:t.touches[0],t.touches&&1===t.touches.length&&f.x2&&(f.x2=void 0,f.y2=void 0),p=Date.now(),v=p-(f.last||p),f.el=e("tagName"in g.target?g.target:g.target.parentNode),s&&clearTimeout(s),f.x1=g.pageX,f.y1=g.pageY,v>0&&250>=v&&(f.isDoubleTap=!0),f.last=p,c=setTimeout(n,h),d&&y&&d.addPointer(t.pointerId))}).on("touchmove MSPointerMove pointermove",function(e){(!(y=o(e,"move"))||a(e))&&(g=y?e:e.touches[0],i(),f.x2=g.pageX,f.y2=g.pageY,m+=Math.abs(f.x1-f.x2),b+=Math.abs(f.y1-f.y2))}).on("touchend MSPointerUp pointerup",function(n){(!(y=o(n,"up"))||a(n))&&(i(),f.x2&&Math.abs(f.x1-f.x2)>30||f.y2&&Math.abs(f.y1-f.y2)>30?u=setTimeout(function(){f.el.trigger("swipe"),f.el.trigger("swipe"+t(f.x1,f.x2,f.y1,f.y2)),f={}},0):"last"in f&&(30>m&&30>b?l=setTimeout(function(){var t=e.Event("tap");t.cancelTouch=r,f.el.trigger(t),f.isDoubleTap?(f.el&&f.el.trigger("doubleTap"),f={}):s=setTimeout(function(){s=null,f.el&&f.el.trigger("singleTap"),f={}},250)},0):f={}),m=b=0)}).on("touchcancel MSPointerCancel pointercancel",r),e(window).on("scroll",r)}),["swipe","swipeLeft","swipeRight","swipeUp","swipeDown","doubleTap","tap","singleTap","longTap"].forEach(function(t){e.fn[t]=function(e){return this.on(t,e)}})}(n),function(e){function t(t){return t=e(t),!(!t.width()&&!t.height())&&"none"!==t.css("display")}function n(e,t){e=e.replace(/=#\]/g,'="#"]');var n,i,r=s.exec(e);if(r&&r[2]in o&&(n=o[r[2]],i=r[3],e=r[1],i)){var a=Number(i);i=isNaN(a)?i.replace(/^["']|["']$/g,""):a}return t(e,n,i)}var i=e.zepto,r=i.qsa,a=i.matches,o=e.expr[":"]={visible:function(){return t(this)?this:void 0},hidden:function(){return t(this)?void 0:this},selected:function(){return this.selected?this:void 0},checked:function(){return this.checked?this:void 0},parent:function(){return this.parentNode},first:function(e){return 0===e?this:void 0},last:function(e,t){return e===t.length-1?this:void 0},eq:function(e,t,n){return e===n?this:void 0},contains:function(t,n,i){return e(this).text().indexOf(i)>-1?this:void 0},has:function(e,t,n){return i.qsa(this,n).length?this:void 0}},s=new RegExp("(.*):(\\w+)(?:\\(([^)]+)\\))?$\\s*"),l=/^\s*>/,u="Zepto"+ +new Date;i.qsa=function(t,a){return n(a,function(n,o,s){try{var c;!n&&o?n="*":l.test(n)&&(c=e(t).addClass(u),n="."+u+" "+n);var d=r(t,n)}catch(f){throw console.error("error performing selector: %o",a),f}finally{c&&c.removeClass(u)}return o?i.uniq(e.map(d,function(e,t){return o.call(e,t,d,s)})):d})},i.matches=function(e,t){return n(t,function(t,n,i){return!(t&&!a(e,t)||n&&n.call(e,null,i)!==e)})}}(n),function(){try{getComputedStyle(void 0)}catch(e){var t=getComputedStyle;window.getComputedStyle=function(e){try{return t(e)}catch(n){return null}}}}(),e.exports=n},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{"default":e}}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function o(e,t){var n=t.name||"",i=function(e){function i(e){r(this,i),p(Object.getPrototypeOf(i.prototype),"constructor",this).call(this,e),t.initialize&&t.initialize.apply(this,[e])}return a(i,e),h(i,[{key:"name",get:function(){return n}}]),i}(e);return delete t.name,m["default"].extend(i,t),i}function s(e,t){if(!isFinite(e))return"--:--";e=1e3*e,e=parseInt(e/1e3);var n=e%60;e=parseInt(e/60);var i=e%60;e=parseInt(e/60);var r=e%24,a=parseInt(e/24),o="";return a&&a>0&&(o+=a+":",1>r&&(o+="00:")),(r&&r>0||t)&&(o+=("0"+r).slice(-2)+":"),o+=("0"+i).slice(-2)+":",o+=("0"+n).slice(-2),o.trim()}function l(e){var t=e.match(/t=([0-9]*)(&|\/|$)/);if(t&&t.length>0)return parseInt(t[1],10);var n=0,i={h:3600,m:60,s:1};return t=e.match(/[0-9]+[hms]+/g)||[],t.forEach(function(e){if(e){var t=e[e.length-1],r=parseInt(e.slice(0,e.length-1),10);n+=r*i[t]}}),n}function u(e){k[e]||(k[e]=0);var t=++k[e];return e+t}function c(e){return e-parseFloat(e)+1>=0}function d(){var e=document.getElementsByTagName("script");return e[e.length-1].src}function f(){return window.navigator&&window.navigator.language?window.navigator.language.toLowerCase():null}Object.defineProperty(t,"__esModule",{value:!0});var h=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),p=function(e,t,n){for(var i=!0;i;){var r=e,a=t,o=n;i=!1,null===r&&(r=Function.prototype);var s=Object.getOwnPropertyDescriptor(r,a);if(void 0!==s){if("value"in s)return s.value;var l=s.get;if(void 0===l)return;return l.call(o)}var u=Object.getPrototypeOf(r);if(null===u)return;e=u,t=a,n=o,i=!0,s=u=void 0}};t.extend=o,t.formatTime=s,t.seekStringToSeconds=l,t.uniqueId=u,t.isNumber=c,t.currentScriptUrl=d,t.getBrowserLanguage=f;var v=n(11),g=i(v),y=n(2),m=i(y),b={isFullscreen:function(){return document.webkitFullscreenElement||document.webkitIsFullScreen||document.mozFullScreen||!!document.msFullscreenElement},requestFullscreen:function(e){e.requestFullscreen?e.requestFullscreen():e.webkitRequestFullscreen?e.webkitRequestFullscreen():e.mozRequestFullScreen?e.mozRequestFullScreen():e.msRequestFullscreen?e.msRequestFullscreen():e.querySelector&&e.querySelector("video")&&e.querySelector("video").webkitEnterFullScreen&&e.querySelector("video").webkitEnterFullScreen()},cancelFullscreen:function(){document.exitFullscreen?document.exitFullscreen():document.webkitCancelFullScreen?document.webkitCancelFullScreen():document.webkitExitFullscreen?document.webkitExitFullscreen():document.mozCancelFullScreen?document.mozCancelFullScreen():document.msExitFullscreen&&document.msExitFullscreen()}};t.Fullscreen=b;var E=function(){function e(){r(this,e)}return h(e,null,[{key:"_defaultConfig",value:function(){return{volume:{value:100,parse:parseInt}}}},{key:"_defaultValueFor",value:function(e){try{return this._defaultConfig()[e].parse(this._defaultConfig()[e].value)}catch(t){return}}},{key:"_create_keyspace",value:function(e){return"clappr."+document.domain+"."+e}},{key:"restore",value:function(e){return g["default"].hasLocalstorage&&localStorage[this._create_keyspace(e)]?this._defaultConfig()[e].parse(localStorage[this._create_keyspace(e)]):this._defaultValueFor(e)}},{key:"persist",value:function(e,t){if(g["default"].hasLocalstorage)try{return localStorage[this._create_keyspace(e)]=t,!0}catch(n){return!1}}}]),e}();t.Config=E;var k={},A=(window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||function(e){window.setTimeout(e,1e3/60)}).bind(window);t.requestAnimationFrame=A;var _=(window.cancelAnimationFrame||window.mozCancelAnimationFrame||window.webkitCancelAnimationFrame||window.clearTimeout).bind(window);t.cancelAnimationFrame=_,t["default"]={Config:E,Fullscreen:b,extend:o,formatTime:s,seekStringToSeconds:l,uniqueId:u,currentScriptUrl:d,isNumber:c,requestAnimationFrame:A,cancelAnimationFrame:_,getBrowserLanguage:f}},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var r=n(2),a=i(r),o=n(5),s=i(o),l={getStyleFor:function(e){var t=arguments.length<=1||void 0===arguments[1]?{baseUrl:""}:arguments[1];return(0,a["default"])('<style class="clappr-style"></style>').html((0,s["default"])(e.toString())(t))}};t["default"]=l,e.exports=t["default"]},function(e,t,n){var i,r;!function(n){var a={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g},o=/(.)^/,s={"'":"'","\\":"\\","\r":"r","\n":"n","	":"t","\u2028":"u2028","\u2029":"u2029"},l=/\\|'|\r|\n|\t|\u2028|\u2029/g,u={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;"},c=new RegExp("[&<>\"']","g"),d=function(e){return null==e?"":(""+e).replace(c,function(e){return u[e]})},f=0,h=function(e,t){var n,i=new RegExp([(a.escape||o).source,(a.interpolate||o).source,(a.evaluate||o).source].join("|")+"|$","g"),r=0,u="__p+='";e.replace(i,function(t,n,i,a,o){return u+=e.slice(r,o).replace(l,function(e){return"\\"+s[e]}),n&&(u+="'+\n((__t=("+n+"))==null?'':escapeExpr(__t))+\n'"),i&&(u+="'+\n((__t=("+i+"))==null?'':__t)+\n'"),a&&(u+="';\n"+a+"\n__p+='"),r=o+t.length,t}),u+="';\n",a.variable||(u="with(obj||{}){\n"+u+"}\n"),u="var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};\n"+u+"return __p;\n//# sourceURL=/microtemplates/source["+f++ +"]";try{n=new Function(a.variable||"obj","escapeExpr",u)}catch(c){throw c.source=u,c}if(t)return n(t,d);var h=function(e){return n.call(this,e,d)};return h.source="function("+(a.variable||"obj")+"){\n"+u+"}",h};h.settings=a,i=[],r=function(){return h}.apply(t,i),!(void 0!==r&&(e.exports=r))}(void 0)},function(e,t){"use strict";e.exports=function(){var e=[];return e.toString=function(){for(var e=[],t=0;t<this.length;t++){var n=this[t];n[2]?e.push("@media "+n[2]+"{"+n[1]+"}"):e.push(n[1])}return e.join("")},e.i=function(t,n){"string"==typeof t&&(t=[[null,t,""]]);for(var i={},r=0;r<this.length;r++){var a=this[r][0];"number"==typeof a&&(i[a]=!0)}for(r=0;r<t.length;r++){var o=t[r];"number"==typeof o[0]&&i[o[0]]||(n&&!o[2]?o[2]=n:n&&(o[2]="("+o[2]+") and ("+n+")"),e.push(o))}},e}},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t["default"]={MEDIA_ATTACHING:"hlsMediaAttaching",MEDIA_ATTACHED:"hlsMediaAttached",MEDIA_DETACHING:"hlsMediaDetaching",MEDIA_DETACHED:"hlsMediaDetached",MANIFEST_LOADING:"hlsManifestLoading",MANIFEST_LOADED:"hlsManifestLoaded",MANIFEST_PARSED:"hlsManifestParsed",LEVEL_LOADING:"hlsLevelLoading",LEVEL_LOADED:"hlsLevelLoaded",LEVEL_UPDATED:"hlsLevelUpdated",LEVEL_PTS_UPDATED:"hlsPTSUpdated",LEVEL_SWITCH:"hlsLevelSwitch",FRAG_LOADING:"hlsFragLoading",FRAG_LOAD_PROGRESS:"hlsFragLoadProgress",FRAG_LOAD_EMERGENCY_ABORTED:"hlsFragLoadEmergencyAborted",FRAG_LOADED:"hlsFragLoaded",FRAG_PARSING_INIT_SEGMENT:"hlsFragParsingInitSegment",FRAG_PARSING_METADATA:"hlsFraParsingMetadata",FRAG_PARSING_DATA:"hlsFragParsingData",FRAG_PARSED:"hlsFragParsed",FRAG_BUFFERED:"hlsFragBuffered",FRAG_CHANGED:"hlsFragChanged",FPS_DROP:"hlsFPSDrop",ERROR:"hlsError",DESTROYING:"hlsDestroying",KEY_LOADING:"hlsKeyLoading",KEY_LOADED:"hlsKeyLoaded"},e.exports=t["default"]},function(e,t){"use strict";function n(){}function i(e,t){return t="["+e+"] > "+t}function r(e){var t=window.console[e];return t?function(){for(var n=arguments.length,r=Array(n),a=0;n>a;a++)r[a]=arguments[a];r[0]&&(r[0]=i(e,r[0])),t.apply(window.console,r)}:n}function a(e){for(var t=arguments.length,n=Array(t>1?t-1:0),i=1;t>i;i++)n[i-1]=arguments[i];n.forEach(function(t){s[t]=e[t]?e[t].bind(e):r(t)})}Object.defineProperty(t,"__esModule",{value:!0});var o={trace:n,debug:n,log:n,warn:n,info:n,error:n},s=o,l=function(e){if(e===!0||"object"==typeof e){a(e,"debug","log","info","warn","error");try{s.log()}catch(t){s=o}}else s=o};t.enableLogs=l;var u=s;t.logger=u},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{"default":e}}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),s=function(e,t,n){for(var i=!0;i;){var r=e,a=t,o=n;i=!1,null===r&&(r=Function.prototype);var s=Object.getOwnPropertyDescriptor(r,a);if(void 0!==s){if("value"in s)return s.value;var l=s.get;if(void 0===l)return;return l.call(o)}var u=Object.getPrototypeOf(r);if(null===u)return;e=u,t=a,n=o,i=!0,s=u=void 0}},l=n(3),u=n(13),c=i(u),d=function(e){function t(e){r(this,t),s(Object.getPrototypeOf(t.prototype),"constructor",this).call(this,e),this.settings={}}return a(t,e),o(t,[{key:"play",value:function(){}},{key:"pause",value:function(){}},{key:"stop",value:function(){}},{key:"seek",value:function(e){}},{key:"seekPercentage",value:function(e){}},{key:"getDuration",value:function(){return 0}},{key:"isPlaying",value:function(){return!1}},{key:"getPlaybackType",value:function(){return t.NO_OP}},{key:"isHighDefinitionInUse",value:function(){return!1}},{key:"volume",value:function(e){}},{key:"destroy",value:function(){this.$el.remove()}}]),t}(c["default"]);t["default"]=d,d.extend=function(e){return(0,l.extend)(d,e)},d.canPlay=function(e,t){return!1},d.VOD="vod",d.AOD="aod",d.LIVE="live",d.NO_OP="no_op",d.type="playback",e.exports=t["default"]},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n={NETWORK_ERROR:"hlsNetworkError",MEDIA_ERROR:"hlsMediaError",OTHER_ERROR:"hlsOtherError"};t.ErrorTypes=n;var i={MANIFEST_LOAD_ERROR:"manifestLoadError",MANIFEST_LOAD_TIMEOUT:"manifestLoadTimeOut",MANIFEST_PARSING_ERROR:"manifestParsingError",LEVEL_LOAD_ERROR:"levelLoadError",LEVEL_LOAD_TIMEOUT:"levelLoadTimeOut",LEVEL_SWITCH_ERROR:"levelSwitchError",FRAG_LOAD_ERROR:"fragLoadError",FRAG_LOOP_LOADING_ERROR:"fragLoopLoadingError",FRAG_LOAD_TIMEOUT:"fragLoadTimeOut",FRAG_DECRYPT_ERROR:"fragDecryptError",FRAG_PARSING_ERROR:"fragParsingError",KEY_LOAD_ERROR:"keyLoadError",KEY_LOAD_TIMEOUT:"keyLoadTimeOut",BUFFER_APPEND_ERROR:"bufferAppendError",BUFFER_APPENDING_ERROR:"bufferAppendingError"};t.ErrorDetails=i},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n={},i=function(){try{return localStorage.setItem("clappr","clappr"),localStorage.removeItem("clappr"),!0}catch(e){return!1}},r=function(){try{var e=new ActiveXObject("ShockwaveFlash.ShockwaveFlash");return!!e}catch(t){return!(!navigator.mimeTypes||void 0===navigator.mimeTypes["application/x-shockwave-flash"]||!navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin)}},a=function(){var e,t=navigator.userAgent,n=t.match(/\b(playstation 4|nx|opera|chrome|safari|firefox|msie|trident(?=\/))\/?\s*(\d+)/i)||[];return/trident/i.test(n[1])?(e=/\brv[ :]+(\d+)/g.exec(t)||[],{name:"IE",version:parseInt(e[1]||"")}):"Chrome"===n[1]&&(e=t.match(/\bOPR\/(\d+)/),null!=e)?{name:"Opera",version:parseInt(e[1])}:(n=n[2]?[n[1],n[2]]:[navigator.appName,navigator.appVersion,"-?"],(e=t.match(/version\/(\d+)/i))&&n.splice(1,1,e[1]),{name:n[0],version:parseInt(n[1])})},o=a();n.isSafari=/safari/i.test(navigator.userAgent)&&-1===navigator.userAgent.indexOf("Chrome"),n.isChrome=/chrome/i.test(navigator.userAgent.match),n.isFirefox=/firefox/i.test(navigator.userAgent),n.isLegacyIE=!!window.ActiveXObject,n.isIE=n.isLegacyIE||/trident.*rv:1\d/i.test(navigator.userAgent),n.isIE11=/trident.*rv:11/i.test(navigator.userAgent),n.isChromecast=n.isChrome&&/CrKey/i.test(navigator.userAgent),n.isMobile=/Android|webOS|iPhone|iPad|iPod|BlackBerry|Windows Phone|IEMobile|Opera Mini/i.test(navigator.userAgent),n.isiOS=/iPad|iPhone|iPod/i.test(navigator.userAgent),n.isAndroid=/Android/i.test(navigator.userAgent),n.isWindowsPhone=/Windows Phone/i.test(navigator.userAgent),n.isWin8App=/MSAppHost/i.test(navigator.userAgent),n.isWiiU=/WiiU/i.test(navigator.userAgent),n.isPS4=/PlayStation 4/i.test(navigator.userAgent),n.hasLocalstorage=i(),n.hasFlash=r(),n.name=o.name,n.version=o.version,t["default"]=n,e.exports=t["default"]},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{"default":e}}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var o=function(e,t,n){for(var i=!0;i;){var r=e,a=t,o=n;i=!1,null===r&&(r=Function.prototype);var s=Object.getOwnPropertyDescriptor(r,a);if(void 0!==s){if("value"in s)return s.value;var l=s.get;if(void 0===l)return;return l.call(o)}var u=Object.getPrototypeOf(r);if(null===u)return;e=u,t=a,n=o,i=!0,s=u=void 0}},s=n(3),l=n(1),u=i(l),c=function(e){function t(){var e=arguments.length<=0||void 0===arguments[0]?{}:arguments[0];r(this,t),o(Object.getPrototypeOf(t.prototype),"constructor",this).call(this,e),this.uniqueId=(0,s.uniqueId)("o")}return a(t,e),t}(u["default"]);t["default"]=c,e.exports=t["default"]},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{"default":e}}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),s=function(e,t,n){for(var i=!0;i;){var r=e,a=t,o=n;i=!1,null===r&&(r=Function.prototype);var s=Object.getOwnPropertyDescriptor(r,a);if(void 0!==s){if("value"in s)return s.value;var l=s.get;if(void 0===l)return;return l.call(o)}var u=Object.getPrototypeOf(r);if(null===u)return;e=u,t=a,n=o,i=!0,s=u=void 0}},l=n(3),u=n(2),c=i(u),d=n(86),f=i(d),h=n(12),p=i(h),v=/^(\S+)\s*(.*)$/,g=function(e){function t(e){r(this,t),s(Object.getPrototypeOf(t.prototype),"constructor",this).call(this,e),this.cid=(0,l.uniqueId)("c"),this._ensureElement(),this.delegateEvents()}return a(t,e),o(t,[{key:"tagName",get:function(){return"div"}},{key:"events",get:function(){return{}}},{key:"attributes",get:function(){return{}}}]),o(t,[{key:"$",value:function(e){return this.$el.find(e)}},{key:"render",value:function(){return this}},{key:"remove",value:function(){return this.$el.remove(),this.stopListening(),this.undelegateEvents(),this}},{key:"setElement",value:function(e,t){return this.$el&&this.undelegateEvents(),this.$el=e instanceof c["default"]?e:(0,c["default"])(e),this.el=this.$el[0],t!==!1&&this.delegateEvents(),this}},{key:"delegateEvents",value:function(e){if(!e&&!(e=(0,f["default"])(this,"events")))return this;this.undelegateEvents();for(var t in e){var n=e[t];if(n&&n.constructor!==Function&&(n=this[e[t]]),n){var i=t.match(v),r=i[1],a=i[2];r+=".delegateEvents"+this.cid,""===a?this.$el.on(r,n.bind(this)):this.$el.on(r,a,n.bind(this))}}return this}},{key:"undelegateEvents",value:function(){return this.$el.off(".delegateEvents"+this.cid),this}},{key:"_ensureElement",value:function(){if(this.el)this.setElement((0,f["default"])(this,"el"),!1);else{var e=c["default"].extend({},(0,f["default"])(this,"attributes"));this.id&&(e.id=(0,f["default"])(this,"id")),this.className&&(e["class"]=(0,f["default"])(this,"className"));var t=(0,c["default"])("<"+(0,f["default"])(this,"tagName")+">").attr(e);this.setElement(t,!1)}}}]),t}(p["default"]);t["default"]=g,e.exports=t["default"]},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{"default":e}}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var a=n(1),o=i(a),s=new o["default"],l=function u(){r(this,u)};t["default"]=l,l.on=function(e,t,n){s.on(e,t,n)},l.once=function(e,t,n){s.once(e,t,n)},l.off=function(e,t,n){s.off(e,t,n)},l.trigger=function(e,t){s.trigger.apply(s,Array.prototype.slice.call(arguments))},l.stopListening=function(e,t,n){s.stopListening(e,t,n)},e.exports=t["default"]},function(e,t,n){"use strict";function i(e,t){return function(n,i,a){if(i=r(i,a,3),l(n)){var u=s(n,i,t);return u>-1?n[u]:void 0}return o(n,i,e)}}var r=n(27),a=n(67),o=n(68),s=n(69),l=n(16),u=i(a);e.exports=u},function(e,t){"use strict";function n(e){return!!e&&"object"==typeof e}function i(e,t){var n=null==e?void 0:e[t];return s(n)?n:void 0}function r(e){return"number"==typeof e&&e>-1&&e%1==0&&y>=e}function a(e){return o(e)&&p.call(e)==u}function o(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function s(e){return null==e?!1:a(e)?v.test(f.call(e)):n(e)&&c.test(e)}var l="[object Array]",u="[object Function]",c=/^\[object .+?Constructor\]$/,d=Object.prototype,f=Function.prototype.toString,h=d.hasOwnProperty,p=d.toString,v=RegExp("^"+f.call(h).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),g=i(Array,"isArray"),y=9007199254740991,m=g||function(e){return n(e)&&r(e.length)&&p.call(e)==l};e.exports=m},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{"default":e}}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),s=function(e,t,n){for(var i=!0;i;){var r=e,a=t,o=n;i=!1,null===r&&(r=Function.prototype);var s=Object.getOwnPropertyDescriptor(r,a);if(void 0!==s){if("value"in s)return s.value;var l=s.get;if(void 0===l)return;return l.call(o)}var u=Object.getPrototypeOf(r);if(null===u)return;e=u,t=a,n=o,i=!0,s=u=void 0}},l=n(12),u=i(l),c=n(3),d=function(e){function t(e){r(this,t),s(Object.getPrototypeOf(t.prototype),"constructor",this).call(this,e.options),this.container=e,this.enabled=!0,this.bindEvents()}return a(t,e),o(t,[{key:"enable",value:function(){this.enabled||(this.bindEvents(),this.enabled=!0)}},{key:"disable",value:function(){this.enabled&&(this.stopListening(),this.enabled=!1)}},{key:"bindEvents",value:function(){}},{key:"destroy",value:function(){this.stopListening()}},{key:"options",get:function(){return this.container&&this.container.options||{}}}]),t}(u["default"]);t["default"]=d,d.extend=function(e){return(0,c.extend)(d,e)},d.type="container",e.exports=t["default"]},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{"default":e}}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),s=function(e,t,n){for(var i=!0;i;){var r=e,a=t,o=n;i=!1,null===r&&(r=Function.prototype);var s=Object.getOwnPropertyDescriptor(r,a);if(void 0!==s){if("value"in s)return s.value;var l=s.get;if(void 0===l)return;return l.call(o)}var u=Object.getPrototypeOf(r);if(null===u)return;e=u,t=a,n=o,i=!0,s=u=void 0}},l=n(3),u=n(13),c=i(u),d=function(e){function t(e){r(this,t),s(Object.getPrototypeOf(t.prototype),"constructor",this).call(this,e.options),this.container=e,this.enabled=!0,this.bindEvents()}return a(t,e),o(t,[{key:"enable",value:function(){this.enabled||(this.bindEvents(),this.$el.show(),this.enabled=!0)}},{key:"disable",value:function(){this.stopListening(),this.$el.hide(),this.enabled=!1}},{key:"bindEvents",value:function(){}},{key:"destroy",value:function(){this.remove()}},{key:"options",get:function(){return this.container&&this.container.options||{}}}]),t}(c["default"]);t["default"]=d,d.extend=function(e){return(0,l.extend)(d,e)},d.type="container",e.exports=t["default"]},function(e,t){"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var i=function r(){n(this,r),this.options={},this.playbackPlugins=[],this.currentSize={width:0,height:0}};i._players={},i.getInstance=function(e){return i._players[e]||(i._players[e]=new i)},t["default"]=i,e.exports=t["default"]},function(e,t,n){"use strict";e.exports=n(107)},function(e,t,n){e.exports=n.p+"ed8735c27adb521e625717506cfcfb04.eot"},function(e,t,n){"use strict";function i(e){return function(t){return null==t?void 0:t[e]}}function r(e){return null!=e&&o(m(e))}function a(e,t){return e="number"==typeof e||h.test(e)?+e:-1,t=null==t?y:t,e>-1&&e%1==0&&t>e}function o(e){return"number"==typeof e&&e>-1&&e%1==0&&y>=e}function s(e){for(var t=u(e),n=t.length,i=n&&e.length,r=!!i&&o(i)&&(f(e)||d(e)),s=-1,l=[];++s<n;){var c=t[s];(r&&a(c,i)||v.call(e,c))&&l.push(c)}return l}function l(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function u(e){if(null==e)return[];l(e)||(e=Object(e));var t=e.length;t=t&&o(t)&&(f(e)||d(e))&&t||0;for(var n=e.constructor,i=-1,r="function"==typeof n&&n.prototype===e,s=Array(t),u=t>0;++i<t;)s[i]=i+"";for(var c in e)u&&a(c,t)||"constructor"==c&&(r||!v.call(e,c))||s.push(c);return s}var c=n(28),d=n(81),f=n(16),h=/^\d+$/,p=Object.prototype,v=p.hasOwnProperty,g=c(Object,"keys"),y=9007199254740991,m=i("length"),b=g?function(e){var t=null==e?void 0:e.constructor;return"function"==typeof t&&t.prototype===e||"function"!=typeof e&&r(e)?s(e):l(e)?g(e):[]}:s;e.exports=b},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=n(101),e.exports=t["default"]},function(e,t){"use strict";function n(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0}function i(e){return"function"==typeof e}function r(e){return"number"==typeof e}function a(e){return"object"==typeof e&&null!==e}function o(e){return void 0===e}e.exports=n,n.EventEmitter=n,n.prototype._events=void 0,n.prototype._maxListeners=void 0,n.defaultMaxListeners=10,n.prototype.setMaxListeners=function(e){if(!r(e)||0>e||isNaN(e))throw TypeError("n must be a positive number");return this._maxListeners=e,this},n.prototype.emit=function(e){var t,n,r,s,l,u;if(this._events||(this._events={}),"error"===e&&(!this._events.error||a(this._events.error)&&!this._events.error.length)){if(t=arguments[1],t instanceof Error)throw t;throw TypeError('Uncaught, unspecified "error" event.')}if(n=this._events[e],o(n))return!1;if(i(n))switch(arguments.length){case 1:n.call(this);break;case 2:n.call(this,arguments[1]);break;case 3:n.call(this,arguments[1],arguments[2]);break;default:s=Array.prototype.slice.call(arguments,1),n.apply(this,s)}else if(a(n))for(s=Array.prototype.slice.call(arguments,1),u=n.slice(),r=u.length,l=0;r>l;l++)u[l].apply(this,s);return!0},n.prototype.addListener=function(e,t){var r;if(!i(t))throw TypeError("listener must be a function");return this._events||(this._events={}),this._events.newListener&&this.emit("newListener",e,i(t.listener)?t.listener:t),this._events[e]?a(this._events[e])?this._events[e].push(t):this._events[e]=[this._events[e],t]:this._events[e]=t,
  a(this._events[e])&&!this._events[e].warned&&(r=o(this._maxListeners)?n.defaultMaxListeners:this._maxListeners,r&&r>0&&this._events[e].length>r&&(this._events[e].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[e].length),"function"==typeof console.trace&&console.trace())),this},n.prototype.on=n.prototype.addListener,n.prototype.once=function(e,t){function n(){this.removeListener(e,n),r||(r=!0,t.apply(this,arguments))}if(!i(t))throw TypeError("listener must be a function");var r=!1;return n.listener=t,this.on(e,n),this},n.prototype.removeListener=function(e,t){var n,r,o,s;if(!i(t))throw TypeError("listener must be a function");if(!this._events||!this._events[e])return this;if(n=this._events[e],o=n.length,r=-1,n===t||i(n.listener)&&n.listener===t)delete this._events[e],this._events.removeListener&&this.emit("removeListener",e,t);else if(a(n)){for(s=o;s-- >0;)if(n[s]===t||n[s].listener&&n[s].listener===t){r=s;break}if(0>r)return this;1===n.length?(n.length=0,delete this._events[e]):n.splice(r,1),this._events.removeListener&&this.emit("removeListener",e,t)}return this},n.prototype.removeAllListeners=function(e){var t,n;if(!this._events)return this;if(!this._events.removeListener)return 0===arguments.length?this._events={}:this._events[e]&&delete this._events[e],this;if(0===arguments.length){for(t in this._events)"removeListener"!==t&&this.removeAllListeners(t);return this.removeAllListeners("removeListener"),this._events={},this}if(n=this._events[e],i(n))this.removeListener(e,n);else if(n)for(;n.length;)this.removeListener(e,n[n.length-1]);return delete this._events[e],this},n.prototype.listeners=function(e){var t;return t=this._events&&this._events[e]?i(this._events[e])?[this._events[e]]:this._events[e].slice():[]},n.prototype.listenerCount=function(e){if(this._events){var t=this._events[e];if(i(t))return 1;if(t)return t.length}return 0},n.listenerCount=function(e,t){return e.listenerCount(t)}},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{"default":e}}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var a=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),o=n(7),s=i(o),l=n(10),u=n(52),c=i(u),d=n(57),f=i(d),h=function(){function e(t,n){r(this,e),this.hls=t,this.remuxer=n}return a(e,[{key:"destroy",value:function(){var e=this.demuxer;e&&e.destroy()}},{key:"push",value:function(e,t,n,i,r,a,o,u){var d=this.demuxer;if(!d)if(f["default"].probe(e))d=this.demuxer=new f["default"](this.hls,this.remuxer);else{if(!c["default"].probe(e))return void this.hls.trigger(s["default"].ERROR,{type:l.ErrorTypes.MEDIA_ERROR,details:l.ErrorDetails.FRAG_PARSING_ERROR,fatal:!0,reason:"no demux matching with content found"});d=this.demuxer=new c["default"](this.hls,this.remuxer)}d.push(e,t,n,i,r,a,o,u)}}]),e}();t["default"]=h,e.exports=t["default"]},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{"default":e}}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var a=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),o=n(7),s=i(o),l=n(8),u=n(63),c=i(u),d=n(10),f=function(){function e(t){r(this,e),this.observer=t,this.ISGenerated=!1,this.PES2MP4SCALEFACTOR=4,this.PES_TIMESCALE=9e4,this.MP4_TIMESCALE=this.PES_TIMESCALE/this.PES2MP4SCALEFACTOR}return a(e,[{key:"destroy",value:function(){}},{key:"insertDiscontinuity",value:function(){this._initPTS=this._initDTS=this.nextAacPts=this.nextAvcDts=void 0}},{key:"switchLevel",value:function(){this.ISGenerated=!1}},{key:"remux",value:function(e,t,n,i,r){this.ISGenerated||this.generateIS(e,t,i),t.samples.length&&this.remuxVideo(t,i,r),e.samples.length&&this.remuxAudio(e,i,r),n.samples.length&&this.remuxID3(n,i),this.observer.trigger(s["default"].FRAG_PARSED)}},{key:"generateIS",value:function(e,t,n){var i=this.observer,r=e.samples,a=t.samples,o=r.length,l=a.length,u=this.PES_TIMESCALE;0===o&&0===l?i.trigger(s["default"].ERROR,{type:d.ErrorTypes.MEDIA_ERROR,details:d.ErrorDetails.FRAG_PARSING_ERROR,fatal:!1,reason:"no audio/video samples found"}):0===l?(e.config&&(i.trigger(s["default"].FRAG_PARSING_INIT_SEGMENT,{audioMoov:c["default"].initSegment([e]),audioCodec:e.codec,audioChannelCount:e.channelCount}),this.ISGenerated=!0),void 0===this._initPTS&&(this._initPTS=r[0].pts-u*n,this._initDTS=r[0].dts-u*n)):0===o?t.sps&&t.pps&&(i.trigger(s["default"].FRAG_PARSING_INIT_SEGMENT,{videoMoov:c["default"].initSegment([t]),videoCodec:t.codec,videoWidth:t.width,videoHeight:t.height}),this.ISGenerated=!0,void 0===this._initPTS&&(this._initPTS=a[0].pts-u*n,this._initDTS=a[0].dts-u*n)):e.config&&t.sps&&t.pps&&(i.trigger(s["default"].FRAG_PARSING_INIT_SEGMENT,{audioMoov:c["default"].initSegment([e]),audioCodec:e.codec,audioChannelCount:e.channelCount,videoMoov:c["default"].initSegment([t]),videoCodec:t.codec,videoWidth:t.width,videoHeight:t.height}),this.ISGenerated=!0,void 0===this._initPTS&&(this._initPTS=Math.min(a[0].pts,r[0].pts)-u*n,this._initDTS=Math.min(a[0].dts,r[0].dts)-u*n))}},{key:"remuxVideo",value:function(e,t,n){var i,r,a,o,u,d,f,h,p,v,g,y,m,b,E=8,k=this.PES_TIMESCALE,A=this.PES2MP4SCALEFACTOR,_=[];for(d=new Uint8Array(e.len+4*e.nbNalu+8),i=new DataView(d.buffer),i.setUint32(0,d.byteLength),d.set(c["default"].types.mdat,4);e.samples.length;){for(r=e.samples.shift(),o=0;r.units.units.length;)u=r.units.units.shift(),i.setUint32(E,u.data.byteLength),E+=4,d.set(u.data,E),E+=u.data.byteLength,o+=4+u.data.byteLength;if(g=r.pts-this._initDTS,y=r.dts-this._initDTS,void 0!==v)m=this._PTSNormalize(g,v),b=this._PTSNormalize(y,v),a.duration=(b-v)/A,a.duration<0&&(a.duration=0);else{var T,L=this.nextAvcDts;m=this._PTSNormalize(g,L),b=this._PTSNormalize(y,L),T=Math.round((b-L)/90),(n||Math.abs(T)<600)&&T&&(T>1?l.logger.log("AVC:"+T+" ms hole between fragments detected,filling it"):-1>T&&l.logger.log("AVC:"+-T+" ms overlapping between fragments detected"),b=L,m=Math.max(m-T,b),l.logger.log("Video/PTS/DTS adjusted:"+m+"/"+b)),h=Math.max(0,m),p=Math.max(0,b)}a={size:o,duration:0,cts:(m-b)/A,flags:{isLeading:0,isDependedOn:0,hasRedundancy:0,degradPrio:0}},r.key===!0?(a.flags.dependsOn=2,a.flags.isNonSync=0):(a.flags.dependsOn=1,a.flags.isNonSync=1),_.push(a),v=b}_.length>=2&&(a.duration=_[_.length-2].duration),this.nextAvcDts=b+a.duration*A,e.len=0,e.nbNalu=0,navigator.userAgent.toLowerCase().indexOf("chrome")>-1&&(_[0].flags.dependsOn=2,_[0].flags.isNonSync=0),e.samples=_,f=c["default"].moof(e.sequenceNumber++,p/A,e),e.samples=[],this.observer.trigger(s["default"].FRAG_PARSING_DATA,{moof:f,mdat:d,startPTS:h/k,endPTS:(m+A*a.duration)/k,startDTS:p/k,endDTS:(b+A*a.duration)/k,type:"video",nb:_.length})}},{key:"remuxAudio",value:function(e,t,n){var i,r,a,o,u,d,f,h,p,v,g,y,m,b=8,E=this.PES_TIMESCALE,k=this.PES2MP4SCALEFACTOR,A=[];for(u=new Uint8Array(e.len+8),i=new DataView(u.buffer),i.setUint32(0,u.byteLength),u.set(c["default"].types.mdat,4);e.samples.length;){if(r=e.samples.shift(),o=r.unit,u.set(o,b),b+=o.byteLength,v=r.pts-this._initDTS,g=r.dts-this._initDTS,void 0!==p)y=this._PTSNormalize(v,p),m=this._PTSNormalize(g,p),a.duration=(m-p)/k,a.duration<0&&(l.logger.log("invalid AAC sample duration at PTS:"+r.pts+":"+a.duration),a.duration=0);else{var _,T=this.nextAacPts;y=this._PTSNormalize(v,T),m=this._PTSNormalize(g,T),_=Math.round(1e3*(y-T)/E),(n||Math.abs(_)<600)&&_&&(_>1?l.logger.log(_+" ms hole between AAC samples detected,filling it"):-1>_&&l.logger.log(-_+" ms overlapping between AAC samples detected"),y=m=T),f=Math.max(0,y),h=Math.max(0,m)}a={size:o.byteLength,cts:0,duration:0,flags:{isLeading:0,isDependedOn:0,hasRedundancy:0,degradPrio:0,dependsOn:1}},A.push(a),p=m}A.length>=2&&(a.duration=A[A.length-2].duration),this.nextAacPts=y+k*a.duration,e.len=0,e.samples=A,d=c["default"].moof(e.sequenceNumber++,h/k,e),e.samples=[],this.observer.trigger(s["default"].FRAG_PARSING_DATA,{moof:d,mdat:u,startPTS:f/E,endPTS:this.nextAacPts/E,startDTS:h/E,endDTS:(m+k*a.duration)/E,type:"audio",nb:A.length})}},{key:"remuxID3",value:function(e,t){var n,i=e.samples.length;if(i){for(var r=0;i>r;r++)n=e.samples[r],n.pts=(n.pts-this._initPTS)/this.PES_TIMESCALE,n.dts=(n.dts-this._initDTS)/this.PES_TIMESCALE;this.observer.trigger(s["default"].FRAG_PARSING_METADATA,{samples:e.samples})}e.samples=[],t=t}},{key:"_PTSNormalize",value:function(e,t){var n;if(void 0===t)return e;for(n=e>t?-8589934592:8589934592;Math.abs(e-t)>4294967296;)e+=n;return e}},{key:"timescale",get:function(){return this.MP4_TIMESCALE}}]),e}();t["default"]=f,e.exports=t["default"]},function(e,t,n){"use strict";function i(e){return null==e?"":e+""}function r(e,t,n){var i=typeof e;return"function"==i?void 0===t?e:A(e,t,n):null==e?b:"object"==i?s(e):void 0===t?E(e):l(e,t)}function a(e,t,n){if(null!=e){void 0!==n&&n in v(e)&&(t=[n]);for(var i=0,r=t.length;null!=e&&r>i;)e=e[t[i++]];return i&&i==r?e:void 0}}function o(e,t,n){var i=t.length,r=i,a=!n;if(null==e)return!r;for(e=v(e);i--;){var o=t[i];if(a&&o[2]?o[1]!==e[o[0]]:!(o[0]in e))return!1}for(;++i<r;){o=t[i];var s=o[0],l=e[s],u=o[1];if(a&&o[2]){if(void 0===l&&!(s in e))return!1}else{var c=n?n(l,u,s):void 0;if(!(void 0===c?k(u,l,n,!0):c))return!1}}return!0}function s(e){var t=f(e);if(1==t.length&&t[0][2]){var n=t[0][0],i=t[0][1];return function(e){return null==e?!1:e[n]===i&&(void 0!==i||n in v(e))}}return function(e){return o(e,t)}}function l(e,t){var n=_(e),i=h(e)&&p(t),r=e+"";return e=g(e),function(o){if(null==o)return!1;var s=r;if(o=v(o),(n||!i)&&!(s in o)){if(o=1==e.length?o:a(o,d(e,0,-1)),null==o)return!1;s=y(e),o=v(o)}return o[s]===t?void 0!==t||s in o:k(t,o[s],void 0,!0)}}function u(e){return function(t){return null==t?void 0:t[e]}}function c(e){var t=e+"";return e=g(e),function(n){return a(n,e,t)}}function d(e,t,n){var i=-1,r=e.length;t=null==t?0:+t||0,0>t&&(t=-t>r?0:r+t),n=void 0===n||n>r?r:+n||0,0>n&&(n+=r),r=t>n?0:n-t>>>0,t>>>=0;for(var a=Array(r);++i<r;)a[i]=e[i+t];return a}function f(e){for(var t=T(e),n=t.length;n--;)t[n][2]=p(t[n][1]);return t}function h(e,t){var n=typeof e;if("string"==n&&O.test(e)||"number"==n)return!0;if(_(e))return!1;var i=!L.test(e);return i||null!=t&&e in v(t)}function p(e){return e===e&&!m(e)}function v(e){return m(e)?e:Object(e)}function g(e){if(_(e))return e;var t=[];return i(e).replace(S,function(e,n,i,r){t.push(i?r.replace(w,"$1"):n||e)}),t}function y(e){var t=e?e.length:0;return t?e[t-1]:void 0}function m(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function b(e){return e}function E(e){return h(e)?u(e):c(e)}var k=n(72),A=n(75),_=n(16),T=n(85),L=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\n\\]|\\.)*?\1)\]/,O=/^\w*$/,S=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\n\\]|\\.)*?)\2)\]/g,w=/\\(\\)?/g;e.exports=r},function(e,t){"use strict";function n(e){return!!e&&"object"==typeof e}function i(e,t){var n=null==e?void 0:e[t];return o(n)?n:void 0}function r(e){return a(e)&&f.call(e)==s}function a(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function o(e){return null==e?!1:r(e)?h.test(c.call(e)):n(e)&&l.test(e)}var s="[object Function]",l=/^\[object .+?Constructor\]$/,u=Object.prototype,c=Function.prototype.toString,d=u.hasOwnProperty,f=u.toString,h=RegExp("^"+c.call(d).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=i},function(e,t){"use strict";function n(){u=!1,o.length?l=o.concat(l):c=-1,l.length&&i()}function i(){if(!u){var e=setTimeout(n);u=!0;for(var t=l.length;t;){for(o=l,l=[];++c<t;)o&&o[c].run();c=-1,t=l.length}o=null,u=!1,clearTimeout(e)}}function r(e,t){this.fun=e,this.array=t}function a(){}var o,s=e.exports={},l=[],u=!1,c=-1;s.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];l.push(new r(e,t)),1!==l.length||u||setTimeout(i,0)},r.prototype.run=function(){this.fun.apply(null,this.array)},s.title="browser",s.browser=!0,s.env={},s.argv=[],s.version="",s.versions={},s.on=a,s.addListener=a,s.once=a,s.off=a,s.removeListener=a,s.removeAllListeners=a,s.emit=a,s.binding=function(e){throw new Error("process.binding is not supported")},s.cwd=function(){return"/"},s.chdir=function(e){throw new Error("process.chdir is not supported")},s.umask=function(){return 0}},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{"default":e}}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),s=function(e,t,n){for(var i=!0;i;){var r=e,a=t,o=n;i=!1,null===r&&(r=Function.prototype);var s=Object.getOwnPropertyDescriptor(r,a);if(void 0!==s){if("value"in s)return s.value;var l=s.get;if(void 0===l)return;return l.call(o)}var u=Object.getPrototypeOf(r);if(null===u)return;e=u,t=a,n=o,i=!0,s=u=void 0}},l=n(3),u=n(12),c=i(u),d=function(e){function t(e){r(this,t),s(Object.getPrototypeOf(t.prototype),"constructor",this).call(this,e),this.core=e,this.enabled=!0,this.bindEvents()}return a(t,e),o(t,[{key:"bindEvents",value:function(){}},{key:"enable",value:function(){this.enabled||(this.bindEvents(),this.enabled=!0)}},{key:"disable",value:function(){this.enabled&&(this.stopListening(),this.enabled=!1)}},{key:"getExternalInterface",value:function(){return{}}},{key:"destroy",value:function(){this.stopListening()}}]),t}(c["default"]);t["default"]=d,d.extend=function(e){return(0,l.extend)(d,e)},d.type="core",e.exports=t["default"]},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(e){this.element=e||window.document,this.initialize()};n.KEY_NAMES_BY_CODE={8:"backspace",9:"tab",13:"enter",16:"shift",17:"ctrl",18:"alt",20:"caps_lock",27:"esc",32:"space",37:"left",38:"up",39:"right",40:"down",48:"0",49:"1",50:"2",51:"3",52:"4",53:"5",54:"6",55:"7",56:"8",57:"9",65:"a",66:"b",67:"c",68:"d",69:"e",70:"f",71:"g",72:"h",73:"i",74:"j",75:"k",76:"l",77:"m",78:"n",79:"o",80:"p",81:"q",82:"r",83:"s",84:"t",85:"u",86:"v",87:"w",88:"x",89:"y",90:"z",112:"f1",113:"f2",114:"f3",115:"f4",116:"f5",117:"f6",118:"f7",119:"f8",120:"f9",121:"f10",122:"f11",123:"f12"},n.KEY_CODES_BY_NAME={},function(){for(var e in n.KEY_NAMES_BY_CODE)Object.prototype.hasOwnProperty.call(n.KEY_NAMES_BY_CODE,e)&&(n.KEY_CODES_BY_NAME[n.KEY_NAMES_BY_CODE[e]]=+e)}(),n.MODIFIERS=["shift","ctrl","alt"],n.registerEvent=function(){return document.addEventListener?function(e,t,n){e.addEventListener(t,n,!1)}:document.attachEvent?function(e,t,n){e.attachEvent("on"+t,n)}:void 0}(),n.unregisterEvent=function(){return document.removeEventListener?function(e,t,n){e.removeEventListener(t,n,!1)}:document.detachEvent?function(e,t,n){e.detachEvent("on"+t,n)}:void 0}(),n.stringContains=function(e,t){return-1!==e.indexOf(t)},n.neatString=function(e){return e.replace(/^\s+|\s+$/g,"").replace(/\s+/g," ")},n.capitalize=function(e){return e.toLowerCase().replace(/^./,function(e){return e.toUpperCase()})},n.isString=function(e){return n.stringContains(Object.prototype.toString.call(e),"String")},n.arrayIncludes=function(){return Array.prototype.indexOf?function(e,t){return-1!==e.indexOf(t)}:function(e,t){for(var n=0;n<e.length;n++)if(e[n]===t)return!0;return!1}}(),n.extractModifiers=function(e){var t,i;for(t=[],i=0;i<n.MODIFIERS.length;i++)n.stringContains(e,n.MODIFIERS[i])&&t.push(n.MODIFIERS[i]);return t},n.extractKey=function(e){var t,i;for(t=n.neatString(e).split(" "),i=0;i<t.length;i++)if(!n.arrayIncludes(n.MODIFIERS,t[i]))return t[i]},n.modifiersAndKey=function(e){var t,i;return n.stringContains(e,"any")?n.neatString(e).split(" ").slice(0,2).join(" "):(t=n.extractModifiers(e),i=n.extractKey(e),i&&!n.arrayIncludes(n.MODIFIERS,i)&&t.push(i),t.join(" "))},n.keyName=function(e){return n.KEY_NAMES_BY_CODE[e+""]},n.keyCode=function(e){return+n.KEY_CODES_BY_NAME[e]},n.prototype.initialize=function(){var e,t=this;for(this.lastKeyCode=-1,this.lastModifiers={},e=0;e<n.MODIFIERS.length;e++)this.lastModifiers[n.MODIFIERS[e]]=!1;this.keysDown={any:[]},this.keysUp={any:[]},this.downHandler=this.handler("down"),this.upHandler=this.handler("up"),n.registerEvent(this.element,"keydown",this.downHandler),n.registerEvent(this.element,"keyup",this.upHandler),n.registerEvent(window,"unload",function i(){n.unregisterEvent(t.element,"keydown",t.downHandler),n.unregisterEvent(t.element,"keyup",t.upHandler),n.unregisterEvent(window,"unload",i)})},n.prototype.handler=function(e){var t=this;return function(i){var r,a,o;for(i=i||window.event,t.lastKeyCode=i.keyCode,r=0;r<n.MODIFIERS.length;r++)t.lastModifiers[n.MODIFIERS[r]]=i[n.MODIFIERS[r]+"Key"];for(n.arrayIncludes(n.MODIFIERS,n.keyName(t.lastKeyCode))&&(t.lastModifiers[n.keyName(t.lastKeyCode)]=!0),a=t["keys"+n.capitalize(e)],r=0;r<a.any.length;r++)a.any[r](i)===!1&&i.preventDefault&&i.preventDefault();if(o=t.lastModifiersAndKey(),a[o])for(r=0;r<a[o].length;r++)a[o][r](i)===!1&&i.preventDefault&&i.preventDefault()}},n.prototype.registerKeys=function(e,t,i){var r,a,o=this["keys"+n.capitalize(e)];for(n.isString(t)&&(t=[t]),r=0;r<t.length;r++)a=t[r],a=n.modifiersAndKey(a+""),o[a]?o[a].push(i):o[a]=[i];return this},n.prototype.unregisterKeys=function(e,t,i){var r,a,o,s=this["keys"+n.capitalize(e)];for(n.isString(t)&&(t=[t]),r=0;r<t.length;r++)if(o=t[r],o=n.modifiersAndKey(o+""),null===i)delete s[o];else if(s[o])for(a=0;a<s[o].length;a++)if(String(s[o][a])===String(i)){s[o].splice(a,1);break}return this},n.prototype.off=function(e){return this.unregisterKeys("down",e,null)},n.prototype.delegate=function(e,t,n){return null!==n||void 0!==n?this.registerKeys(e,t,n):this.unregisterKeys(e,t,n)},n.prototype.down=function(e,t){return this.delegate("down",e,t)},n.prototype.up=function(e,t){return this.delegate("up",e,t)},n.prototype.lastKey=function(e){return e?this.lastModifiers[e]:n.keyName(this.lastKeyCode)},n.prototype.lastModifiersAndKey=function(){var e,t;for(e=[],t=0;t<n.MODIFIERS.length;t++)this.lastKey(n.MODIFIERS[t])&&e.push(n.MODIFIERS[t]);return n.arrayIncludes(e,this.lastKey())||e.push(this.lastKey()),e.join(" ")},t["default"]=n,e.exports=t["default"]},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{"default":e}}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),s=function(e,t,n){for(var i=!0;i;){var r=e,a=t,o=n;i=!1,null===r&&(r=Function.prototype);var s=Object.getOwnPropertyDescriptor(r,a);if(void 0!==s){if("value"in s)return s.value;var l=s.get;if(void 0===l)return;return l.call(o)}var u=Object.getPrototypeOf(r);if(null===u)return;e=u,t=a,n=o,i=!0,s=u=void 0}},l=n(3),u=n(13),c=i(u),d=function(e){function t(e){r(this,t),s(Object.getPrototypeOf(t.prototype),"constructor",this).call(this,e),this.core=e,this.enabled=!0,this.bindEvents(),this.render()}return a(t,e),o(t,[{key:"bindEvents",value:function(){}},{key:"getExternalInterface",value:function(){return{}}},{key:"enable",value:function(){this.enabled||(this.bindEvents(),this.$el.show(),this.enabled=!0)}},{key:"disable",value:function(){this.stopListening(),this.$el.hide(),this.enabled=!1}},{key:"destroy",value:function(){this.remove()}},{key:"render",value:function(){return this.$el.html(this.template()),this.$el.append(this.styler.getStyleFor(this.name)),this.core.$el.append(this.el),this}}]),t}(c["default"]);t["default"]=d,d.extend=function(e){return(0,l.extend)(d,e)},d.type="core",e.exports=t["default"]},function(e,t,n){"use strict";e.exports=n(89)},function(e,t,n){"use strict";e.exports=n(92)},function(e,t,n){"use strict";e.exports=n(97)},function(e,t,n){"use strict";e.exports=n(102)},function(e,t,n){"use strict";e.exports=n(103)},function(e,t,n){"use strict";e.exports=n(105)},function(e,t,n){"use strict";e.exports=n(106)},function(e,t,n){"use strict";e.exports=n(108)},function(e,t,n){"use strict";e.exports=n(119)},function(e,t,n){"use strict";e.exports=n(120)},function(e,t,n){e.exports=n.p+"5d7ec830fd8d1c440f165111719aa4a0.svg"},function(e,t,n){e.exports=n.p+"3e43a5d764f841e7e78896de82cd6c50.ttf"},function(e,t,n){e.exports=n.p+"a8c874b93b3d848f39a71260c57e3863.cur"},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{"default":e}}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var a=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),o=n(7),s=i(o),l=function(){function e(t){r(this,e),this.hls=t,this.lastfetchlevel=0,this._autoLevelCapping=-1,this._nextAutoLevel=-1,this.onflp=this.onFragmentLoadProgress.bind(this),t.on(s["default"].FRAG_LOAD_PROGRESS,this.onflp)}return a(e,[{key:"destroy",value:function(){this.hls.off(s["default"].FRAG_LOAD_PROGRESS,this.onflp)}},{key:"onFragmentLoadProgress",value:function(e,t){var n=t.stats;void 0===n.aborted&&(this.lastfetchduration=(performance.now()-n.trequest)/1e3,this.lastfetchlevel=t.frag.level,this.lastbw=8*n.loaded/this.lastfetchduration)}},{key:"autoLevelCapping",get:function(){return this._autoLevelCapping},set:function(e){this._autoLevelCapping=e}},{key:"nextAutoLevel",get:function(){var e,t,n,i=this.lastbw,r=this.hls;if(n=-1===this._autoLevelCapping?r.levels.length-1:this._autoLevelCapping,-1!==this._nextAutoLevel){var a=Math.min(this._nextAutoLevel,n);if(a!==this.lastfetchlevel)return a;this._nextAutoLevel=-1}for(t=0;n>=t;t++)if(e=t<=this.lastfetchlevel?.8*i:.7*i,e<r.levels[t].bitrate)return Math.max(0,t-1);return t-1},set:function(e){this._nextAutoLevel=e}}]),e}();t["default"]=l,e.exports=t["default"]},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{"default":e}}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var a=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),o=n(7),s=i(o),l=n(8),u=n(10),c=function(){function e(t){r(this,e),this.hls=t,this.onml=this.onManifestLoaded.bind(this),this.onll=this.onLevelLoaded.bind(this),this.onerr=this.onError.bind(this),this.ontick=this.tick.bind(this),t.on(s["default"].MANIFEST_LOADED,this.onml),t.on(s["default"].LEVEL_LOADED,this.onll),t.on(s["default"].ERROR,this.onerr),this._manualLevel=this._autoLevelCapping=-1}return a(e,[{key:"destroy",value:function(){var e=this.hls;e.off(s["default"].MANIFEST_LOADED,this.onml),e.off(s["default"].LEVEL_LOADED,this.onll),e.off(s["default"].ERROR,this.onerr),this.timer&&clearInterval(this.timer),this._manualLevel=-1}},{key:"onManifestLoaded",value:function(e,t){var n,i,r=[],a=[],o={},u=!1,c=!1;for(t.levels.forEach(function(e){e.videoCodec&&(u=!0),e.audioCodec&&(c=!0);var t=o[e.bitrate];void 0===t?(o[e.bitrate]=r.length,e.url=[e.url],e.urlId=0,r.push(e)):r[t].url.push(e.url)}),u&&c?r.forEach(function(e){e.videoCodec&&a.push(e)}):a=r,n=a[0].bitrate,a.sort(function(e,t){return e.bitrate-t.bitrate}),this._levels=a,i=0;i<a.length;i++)if(a[i].bitrate===n){this._firstLevel=i,l.logger.log("manifest loaded,"+a.length+" level(s) found, first bitrate:"+n);break}this.hls.trigger(s["default"].MANIFEST_PARSED,{levels:this._levels,firstLevel:this._firstLevel,stats:t.stats})}},{key:"setLevelInternal",value:function(e){if(e>=0&&e<this._levels.length){this.timer&&(clearInterval(this.timer),this.timer=null),this._level=e,l.logger.log("switching to level "+e),this.hls.trigger(s["default"].LEVEL_SWITCH,{level:e});var t=this._levels[e];if(void 0===t.details||t.details.live===!0){l.logger.log("(re)loading playlist for level "+e);var n=t.urlId;this.hls.trigger(s["default"].LEVEL_LOADING,{url:t.url[n],level:e,id:n})}}else this.hls.trigger(s["default"].ERROR,{type:u.ErrorTypes.OTHER_ERROR,details:u.ErrorDetails.LEVEL_SWITCH_ERROR,level:e,fatal:!1,reason:"invalid level idx"})}},{key:"onError",value:function(e,t){if(!t.fatal){var n,i,r=t.details,a=this.hls;switch(r){case u.ErrorDetails.FRAG_LOAD_ERROR:case u.ErrorDetails.FRAG_LOAD_TIMEOUT:case u.ErrorDetails.FRAG_LOOP_LOADING_ERROR:case u.ErrorDetails.KEY_LOAD_ERROR:case u.ErrorDetails.KEY_LOAD_TIMEOUT:n=t.frag.level;break;case u.ErrorDetails.LEVEL_LOAD_ERROR:case u.ErrorDetails.LEVEL_LOAD_TIMEOUT:n=t.level}if(void 0!==n)if(i=this._levels[n],i.urlId<i.url.length-1)i.urlId++,i.details=void 0,l.logger.warn("level controller,"+r+" for level "+n+": switching to redundant stream id "+i.urlId);else{var o=-1===this._manualLevel&&n;o?(l.logger.warn("level controller,"+r+": emergency switch-down for next fragment"),a.abrController.nextAutoLevel=0):i&&i.details&&i.details.live?l.logger.warn("level controller,"+r+" on live stream, discard"):(l.logger.error("cannot recover "+r+" error"),this._level=void 0,this.timer&&(clearInterval(this.timer),this.timer=null),t.fatal=!0,a.trigger(e,t))}}}},{key:"onLevelLoaded",value:function(e,t){t.details.live&&!this.timer&&(this.timer=setInterval(this.ontick,1e3*t.details.targetduration)),!t.details.live&&this.timer&&(clearInterval(this.timer),this.timer=null)}},{key:"tick",value:function(){var e=this._level;if(void 0!==e){var t=this._levels[e],n=t.urlId;this.hls.trigger(s["default"].LEVEL_LOADING,{url:t.url[n],level:e,id:n})}}},{key:"nextLoadLevel",value:function(){return-1!==this._manualLevel?this._manualLevel:this.hls.abrController.nextAutoLevel}},{key:"levels",get:function(){return this._levels}},{key:"level",get:function(){return this._level},set:function(e){(this._level!==e||void 0===this._levels[e].details)&&this.setLevelInternal(e)}},{key:"manualLevel",get:function(){return this._manualLevel},set:function(e){this._manualLevel=e,-1!==e&&(this.level=e)}},{key:"firstLevel",get:function(){return this._firstLevel},set:function(e){this._firstLevel=e}},{key:"startLevel",get:function(){return void 0===this._startLevel?this._firstLevel:this._startLevel},set:function(e){this._startLevel=e}}]),e}();t["default"]=c,e.exports=t["default"]},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{"default":e}}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var a=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),o=n(54),s=i(o),l=n(7),u=i(l),c=n(8),d=n(64),f=i(d),h=n(58),p=i(h),v=n(10),g={ERROR:-2,STARTING:-1,IDLE:0,KEY_LOADING:1,FRAG_LOADING:2,WAITING_LEVEL:3,PARSING:4,PARSED:5,APPENDING:6,BUFFER_FLUSHING:7},y=function(){function e(t){r(this,e),this.config=t.config,this.audioCodecSwap=!1,this.hls=t,this.onsbue=this.onSBUpdateEnd.bind(this),this.onsbe=this.onSBUpdateError.bind(this),this.onmediaatt0=this.onMediaAttaching.bind(this),this.onmediadet0=this.onMediaDetaching.bind(this),this.onmp=this.onManifestParsed.bind(this),this.onll=this.onLevelLoaded.bind(this),this.onfl=this.onFragLoaded.bind(this),this.onkl=this.onKeyLoaded.bind(this),this.onis=this.onInitSegment.bind(this),this.onfpg=this.onFragParsing.bind(this),this.onfp=this.onFragParsed.bind(this),this.onerr=this.onError.bind(this),this.ontick=this.tick.bind(this),t.on(u["default"].MEDIA_ATTACHING,this.onmediaatt0),t.on(u["default"].MEDIA_DETACHING,this.onmediadet0),t.on(u["default"].MANIFEST_PARSED,this.onmp)}return a(e,[{key:"destroy",value:function(){this.stop();var e=this.hls;e.off(u["default"].MEDIA_ATTACHING,this.onmediaatt0),e.off(u["default"].MEDIA_DETACHING,this.onmediadet0),e.off(u["default"].MANIFEST_PARSED,this.onmp),this.state=g.IDLE}},{key:"startLoad",value:function(){this.levels&&this.media?(this.startInternal(),this.lastCurrentTime?(c.logger.log("seeking @ "+this.lastCurrentTime),this.lastPaused||(c.logger.log("resuming video"),this.media.play()),this.state=g.IDLE):(this.lastCurrentTime=0,this.state=g.STARTING),this.nextLoadPosition=this.startPosition=this.lastCurrentTime,this.tick()):c.logger.warn("cannot start loading as either manifest not parsed or video not attached")}},{key:"startInternal",value:function(){var e=this.hls;this.stop(),this.demuxer=new s["default"](e),this.timer=setInterval(this.ontick,100),this.level=-1,e.on(u["default"].FRAG_LOADED,this.onfl),e.on(u["default"].FRAG_PARSING_INIT_SEGMENT,this.onis),e.on(u["default"].FRAG_PARSING_DATA,this.onfpg),e.on(u["default"].FRAG_PARSED,this.onfp),e.on(u["default"].ERROR,this.onerr),e.on(u["default"].LEVEL_LOADED,this.onll),e.on(u["default"].KEY_LOADED,this.onkl)}},{key:"stop",value:function(){this.mp4segments=[],this.flushRange=[],this.bufferRange=[];var e=this.fragCurrent;if(e&&(e.loader&&e.loader.abort(),this.fragCurrent=null),this.fragPrevious=null,this.sourceBuffer){for(var t in this.sourceBuffer){var n=this.sourceBuffer[t];try{this.mediaSource.removeSourceBuffer(n),n.removeEventListener("updateend",this.onsbue),n.removeEventListener("error",this.onsbe)}catch(i){}}this.sourceBuffer=null}this.timer&&(clearInterval(this.timer),this.timer=null),this.demuxer&&(this.demuxer.destroy(),this.demuxer=null);var r=this.hls;r.off(u["default"].FRAG_LOADED,this.onfl),r.off(u["default"].FRAG_PARSED,this.onfp),r.off(u["default"].FRAG_PARSING_DATA,this.onfpg),r.off(u["default"].LEVEL_LOADED,this.onll),r.off(u["default"].KEY_LOADED,this.onkl),r.off(u["default"].FRAG_PARSING_INIT_SEGMENT,this.onis),r.off(u["default"].ERROR,this.onerr)}},{key:"tick",value:function(){var e,t,n,i=this.hls;switch(this.state){case g.ERROR:break;case g.STARTING:this.startLevel=i.startLevel,-1===this.startLevel&&(this.startLevel=0,this.fragBitrateTest=!0),this.level=i.nextLoadLevel=this.startLevel,this.state=g.WAITING_LEVEL,this.loadedmetadata=!1;break;case g.IDLE:if(!this.media)break;e=this.loadedmetadata?this.media.currentTime:this.nextLoadPosition,t=this.startFragmentRequested===!1?this.startLevel:i.nextLoadLevel;var r,a=this.bufferInfo(e,.3),o=a.len,s=a.end,l=this.fragPrevious;if(this.levels[t].hasOwnProperty("bitrate")?(r=Math.max(8*this.config.maxBufferSize/this.levels[t].bitrate,this.config.maxBufferLength),r=Math.min(r,this.config.maxMaxBufferLength)):r=this.config.maxBufferLength,
  r>o){if(i.nextLoadLevel=t,this.level=t,n=this.levels[t].details,"undefined"==typeof n){this.state=g.WAITING_LEVEL;break}var d=n.fragments,h=d.length,p=d[0].start,y=d[h-1].start+d[h-1].duration,m=void 0;if(n.live){if(s<Math.max(p,y-this.config.liveMaxLatencyDurationCount*n.targetduration)&&(this.seekAfterBuffered=p+Math.max(0,n.totalduration-this.config.liveSyncDurationCount*n.targetduration),c.logger.log("buffer end: "+s+" is located too far from the end of live sliding playlist, media position will be reseted to: "+this.seekAfterBuffered.toFixed(3)),s=this.seekAfterBuffered),this.startFragmentRequested&&!n.PTSKnown){if(l){var b=l.sn+1;b>=n.startSN&&b<=n.endSN&&(m=d[b-n.startSN],c.logger.log("live playlist, switching playlist, load frag with next SN: "+m.sn))}m||(m=d[Math.min(h-1,Math.round(h/2))],c.logger.log("live playlist, switching playlist, unknown, load middle frag : "+m.sn))}}else p>s&&(m=d[0]);if(!m){var E;if(E=y>s?f["default"].search(d,function(e){return e.start+e.duration<=s?1:e.start>s?-1:0}):d[h-1],E&&(m=E,p=E.start,l&&m.level===l.level&&m.sn===l.sn))if(m.sn<n.endSN)m=d[m.sn+1-n.startSN],c.logger.log("SN just loaded, load next one: "+m.sn);else{if(!n.live){var k=this.mediaSource;if(k&&"open"===k.readyState){var A=this.sourceBuffer;A.audio&&A.audio.updating||A.video&&A.video.updating||(c.logger.log("all media data available, signal endOfStream() to MediaSource"),k.endOfStream())}}m=null}}if(m)if(null!=m.decryptdata.uri&&null==m.decryptdata.key)c.logger.log("Loading key for "+m.sn+" of ["+n.startSN+" ,"+n.endSN+"],level "+t),this.state=g.KEY_LOADING,i.trigger(u["default"].KEY_LOADING,{frag:m});else{if(c.logger.log("Loading "+m.sn+" of ["+n.startSN+" ,"+n.endSN+"],level "+t+", currentTime:"+e+",bufferEnd:"+s.toFixed(3)),m.autoLevel=i.autoLevelEnabled,this.levels.length>1&&(m.expectedLen=Math.round(m.duration*this.levels[t].bitrate/8),m.trequest=performance.now()),void 0!==this.fragLoadIdx?this.fragLoadIdx++:this.fragLoadIdx=0,m.loadCounter){m.loadCounter++;var _=this.config.fragLoadingLoopThreshold;if(m.loadCounter>_&&Math.abs(this.fragLoadIdx-m.loadIdx)<_)return void i.trigger(u["default"].ERROR,{type:v.ErrorTypes.MEDIA_ERROR,details:v.ErrorDetails.FRAG_LOOP_LOADING_ERROR,fatal:!1,frag:m})}else m.loadCounter=1;m.loadIdx=this.fragLoadIdx,this.fragCurrent=m,this.startFragmentRequested=!0,i.trigger(u["default"].FRAG_LOADING,{frag:m}),this.state=g.FRAG_LOADING}}break;case g.WAITING_LEVEL:t=this.levels[this.level],t&&t.details&&(this.state=g.IDLE);break;case g.FRAG_LOADING:var T=this.media,L=this.fragCurrent;if(T&&(!T.paused||this.loadedmetadata===!1)&&L.autoLevel&&this.level&&this.levels.length>1){var O=performance.now()-L.trequest;if(O>500*L.duration){var S=1e3*L.loaded/O;L.expectedLen<L.loaded&&(L.expectedLen=L.loaded),e=T.currentTime;var w=(L.expectedLen-L.loaded)/S,P=this.bufferInfo(e,.3).end-e,C=L.duration*this.levels[i.nextLoadLevel].bitrate/(8*S);P<2*L.duration&&w>P&&w>C&&(c.logger.warn("loading too slow, abort fragment loading"),c.logger.log("fragLoadedDelay/bufferStarvationDelay/fragLevelNextLoadedDelay :"+w.toFixed(1)+"/"+P.toFixed(1)+"/"+C.toFixed(1)),L.loader.abort(),i.trigger(u["default"].FRAG_LOAD_EMERGENCY_ABORTED,{frag:L}),this.state=g.IDLE)}}break;case g.PARSING:break;case g.PARSED:case g.APPENDING:if(this.sourceBuffer){if(this.media.error)return c.logger.error("trying to append although a media error occured, switch to ERROR state"),void(this.state=g.ERROR);if(this.sourceBuffer.audio&&this.sourceBuffer.audio.updating||this.sourceBuffer.video&&this.sourceBuffer.video.updating);else if(this.mp4segments.length){var R=this.mp4segments.shift();try{this.sourceBuffer[R.type].appendBuffer(R.data),this.appendError=0}catch(D){this.mp4segments.unshift(R),this.appendError?this.appendError++:this.appendError=1;var I={type:v.ErrorTypes.MEDIA_ERROR,details:v.ErrorDetails.BUFFER_APPEND_ERROR,frag:this.fragCurrent};if(this.appendError>this.config.appendErrorMaxRetry)return c.logger.log("fail "+this.config.appendErrorMaxRetry+" times to append segment in sourceBuffer"),I.fatal=!0,i.trigger(u["default"].ERROR,I),void(this.state=g.ERROR);I.fatal=!1,i.trigger(u["default"].ERROR,I)}this.state=g.APPENDING}}else this.state=g.IDLE;break;case g.BUFFER_FLUSHING:for(;this.flushRange.length;){var x=this.flushRange[0];if(!this.flushBuffer(x.start,x.end))break;this.flushRange.shift()}0===this.flushRange.length&&(this.immediateSwitch&&this.immediateLevelSwitchEnd(),this.state=g.IDLE,this.fragPrevious=null)}this._checkFragmentChanged(),this._checkBuffer()}},{key:"bufferInfo",value:function(e,t){var n,i=this.media,r=i.buffered,a=[];for(n=0;n<r.length;n++)a.push({start:r.start(n),end:r.end(n)});return this.bufferedInfo(a,e,t)}},{key:"bufferedInfo",value:function(e,t,n){var i,r,a,o,s,l=[];for(e.sort(function(e,t){var n=e.start-t.start;return n?n:t.end-e.end}),s=0;s<e.length;s++){var u=l.length;if(u){var c=l[u-1].end;e[s].start-c<n?e[s].end>c&&(l[u-1].end=e[s].end):l.push(e[s])}else l.push(e[s])}for(s=0,i=0,r=a=t;s<l.length;s++){var d=l[s].start,f=l[s].end;t+n>=d&&f>t?(r=d,a=f+n,i=a-t):d>t+n&&(o=d)}return{len:i,start:r,end:a,nextStart:o}}},{key:"getBufferRange",value:function(e){var t,n;for(t=this.bufferRange.length-1;t>=0;t--)if(n=this.bufferRange[t],e>=n.start&&e<=n.end)return n;return null}},{key:"followingBufferRange",value:function(e){return e?this.getBufferRange(e.end+.5):null}},{key:"isBuffered",value:function(e){for(var t=this.media,n=t.buffered,i=0;i<n.length;i++)if(e>=n.start(i)&&e<=n.end(i))return!0;return!1}},{key:"_checkFragmentChanged",value:function(){var e,t,n=this.media;if(n&&n.seeking===!1&&(t=n.currentTime,t>n.playbackRate*this.lastCurrentTime&&(this.lastCurrentTime=t),this.isBuffered(t)?e=this.getBufferRange(t):this.isBuffered(t+.1)&&(e=this.getBufferRange(t+.1)),e)){var i=e.frag;i!==this.fragPlaying&&(this.fragPlaying=i,this.hls.trigger(u["default"].FRAG_CHANGED,{frag:i}))}}},{key:"flushBuffer",value:function(e,t){var n,i,r,a,o,s;if(this.flushBufferCounter++<2*this.bufferRange.length&&this.sourceBuffer)for(var l in this.sourceBuffer){if(n=this.sourceBuffer[l],n.updating)return!1;for(i=0;i<n.buffered.length;i++)if(r=n.buffered.start(i),a=n.buffered.end(i),-1!==navigator.userAgent.toLowerCase().indexOf("firefox")&&t===Number.POSITIVE_INFINITY?(o=e,s=t):(o=Math.max(r,e),s=Math.min(a,t)),s-o>.5)return c.logger.log("flush "+l+" ["+o+","+s+"], of ["+r+","+a+"], pos:"+this.media.currentTime),n.remove(o,s),!1}var u,d=[];for(i=0;i<this.bufferRange.length;i++)u=this.bufferRange[i],this.isBuffered((u.start+u.end)/2)&&d.push(u);return this.bufferRange=d,c.logger.log("buffer flushed"),!0}},{key:"immediateLevelSwitch",value:function(){c.logger.log("immediateLevelSwitch"),this.immediateSwitch||(this.immediateSwitch=!0,this.previouslyPaused=this.media.paused,this.media.pause());var e=this.fragCurrent;e&&e.loader&&e.loader.abort(),this.fragCurrent=null,this.flushBufferCounter=0,this.flushRange.push({start:0,end:Number.POSITIVE_INFINITY}),this.state=g.BUFFER_FLUSHING,this.fragLoadIdx+=2*this.config.fragLoadingLoopThreshold,this.tick()}},{key:"immediateLevelSwitchEnd",value:function(){this.immediateSwitch=!1,this.media.currentTime-=1e-4,this.previouslyPaused||this.media.play()}},{key:"nextLevelSwitch",value:function(){var e,t,n;if(t=this.getBufferRange(this.media.currentTime),t&&this.flushRange.push({start:0,end:t.start-1}),this.media.paused)e=0;else{var i=this.hls.nextLoadLevel,r=this.levels[i],a=this.fragLastKbps;e=a&&this.fragCurrent?this.fragCurrent.duration*r.bitrate/(1e3*a)+1:0}if(n=this.getBufferRange(this.media.currentTime+e),n&&(n=this.followingBufferRange(n))){this.flushRange.push({start:n.start,end:Number.POSITIVE_INFINITY});var o=this.fragCurrent;o&&o.loader&&o.loader.abort(),this.fragCurrent=null}this.flushRange.length&&(this.flushBufferCounter=0,this.state=g.BUFFER_FLUSHING,this.fragLoadIdx+=2*this.config.fragLoadingLoopThreshold,this.tick())}},{key:"onMediaAttaching",value:function(e,t){var n=this.media=t.media,i=this.mediaSource=new MediaSource;this.onmso=this.onMediaSourceOpen.bind(this),this.onmse=this.onMediaSourceEnded.bind(this),this.onmsc=this.onMediaSourceClose.bind(this),i.addEventListener("sourceopen",this.onmso),i.addEventListener("sourceended",this.onmse),i.addEventListener("sourceclose",this.onmsc),n.src=URL.createObjectURL(i)}},{key:"onMediaDetaching",value:function(){var e=this.media;e&&e.ended&&(c.logger.log("MSE detaching and video ended, reset startPosition"),this.startPosition=this.lastCurrentTime=0);var t=this.levels;t&&t.forEach(function(e){e.details&&e.details.fragments.forEach(function(e){e.loadCounter=void 0})});var n=this.mediaSource;if(n){if("open"===n.readyState)try{n.endOfStream()}catch(i){c.logger.warn("onMediaDetaching:"+i.message+" while calling endOfStream")}n.removeEventListener("sourceopen",this.onmso),n.removeEventListener("sourceended",this.onmse),n.removeEventListener("sourceclose",this.onmsc),this.media.src="",this.mediaSource=null,e&&(e.removeEventListener("seeking",this.onvseeking),e.removeEventListener("seeked",this.onvseeked),e.removeEventListener("loadedmetadata",this.onvmetadata),e.removeEventListener("ended",this.onvended),this.onvseeking=this.onvseeked=this.onvmetadata=null),this.media=null,this.loadedmetadata=!1,this.stop()}this.onmso=this.onmse=this.onmsc=null,this.hls.trigger(u["default"].MEDIA_DETACHED)}},{key:"onMediaSeeking",value:function(){if(this.state===g.FRAG_LOADING&&0===this.bufferInfo(this.media.currentTime,.3).len){c.logger.log("seeking outside of buffer while fragment load in progress, cancel fragment load");var e=this.fragCurrent;e&&(e.loader&&e.loader.abort(),this.fragCurrent=null),this.fragPrevious=null,this.state=g.IDLE}this.media&&(this.lastCurrentTime=this.media.currentTime),void 0!==this.fragLoadIdx&&(this.fragLoadIdx+=2*this.config.fragLoadingLoopThreshold),this.tick()}},{key:"onMediaSeeked",value:function(){this.tick()}},{key:"onMediaMetadata",value:function(){this.media.currentTime!==this.startPosition&&(this.media.currentTime=this.startPosition),this.loadedmetadata=!0,this.tick()}},{key:"onMediaEnded",value:function(){c.logger.log("media ended"),this.startPosition=this.lastCurrentTime=0}},{key:"onManifestParsed",value:function(e,t){var n,i=!1,r=!1;t.levels.forEach(function(e){n=e.codecs,n&&(-1!==n.indexOf("mp4a.40.2")&&(i=!0),-1!==n.indexOf("mp4a.40.5")&&(r=!0))}),this.audiocodecswitch=i&&r,this.audiocodecswitch&&c.logger.log("both AAC/HE-AAC audio found in levels; declaring audio codec as HE-AAC"),this.levels=t.levels,this.startLevelLoaded=!1,this.startFragmentRequested=!1,this.media&&this.config.autoStartLoad&&this.startLoad()}},{key:"onLevelLoaded",value:function(e,t){var n=t.details,i=t.level,r=this.levels[i],a=n.totalduration;if(c.logger.log("level "+i+" loaded ["+n.startSN+","+n.endSN+"],duration:"+a),n.live){var o=r.details;o?(p["default"].mergeDetails(o,n),n.PTSKnown?c.logger.log("live playlist sliding:"+n.fragments[0].start.toFixed(3)):c.logger.log("live playlist - outdated PTS, unknown sliding")):(n.PTSKnown=!1,c.logger.log("live playlist - first load, unknown sliding"))}else n.PTSKnown=!1;r.details=n,this.hls.trigger(u["default"].LEVEL_UPDATED,{details:n,level:i}),this.startLevelLoaded===!1&&(n.live&&(this.startPosition=Math.max(0,a-this.config.liveSyncDurationCount*n.targetduration)),this.nextLoadPosition=this.startPosition,this.startLevelLoaded=!0),this.state===g.WAITING_LEVEL&&(this.state=g.IDLE),this.tick()}},{key:"onKeyLoaded",value:function(){this.state===g.KEY_LOADING&&(this.state=g.IDLE,this.tick())}},{key:"onFragLoaded",value:function(e,t){var n=this.fragCurrent;if(this.state===g.FRAG_LOADING&&n&&t.frag.level===n.level&&t.frag.sn===n.sn)if(this.fragBitrateTest===!0)this.state=g.IDLE,this.fragBitrateTest=!1,t.stats.tparsed=t.stats.tbuffered=performance.now(),this.hls.trigger(u["default"].FRAG_BUFFERED,{stats:t.stats,frag:n});else{this.state=g.PARSING,this.stats=t.stats;var i=this.levels[this.level],r=i.details,a=r.totalduration,o=n.start,s=n.level,l=n.sn,d=i.audioCodec;d&&this.audioCodecSwap&&(c.logger.log("swapping playlist audio codec"),d=-1!==d.indexOf("mp4a.40.5")?"mp4a.40.2":"mp4a.40.5"),c.logger.log("Demuxing "+l+" of ["+r.startSN+" ,"+r.endSN+"],level "+s),this.demuxer.push(t.payload,d,i.videoCodec,o,n.cc,s,l,a,n.decryptdata)}}},{key:"onInitSegment",value:function(e,t){if(this.state===g.PARSING){var n,i=this.levels[this.level].audioCodec,r=this.levels[this.level].videoCodec;i&&this.audioCodecSwap&&(c.logger.log("swapping playlist audio codec"),i=-1!==i.indexOf("mp4a.40.5")?"mp4a.40.2":"mp4a.40.5"),c.logger.log("playlist_level/init_segment codecs: video => "+r+"/"+t.videoCodec+"; audio => "+i+"/"+t.audioCodec),(void 0===i||void 0===t.audioCodec)&&(i=t.audioCodec),(void 0===r||void 0===t.videoCodec)&&(r=t.videoCodec);var a=navigator.userAgent.toLowerCase();this.audiocodecswitch&&1!==t.audioChannelCount&&-1===a.indexOf("android")&&-1===a.indexOf("firefox")&&(i="mp4a.40.5"),this.sourceBuffer||(this.sourceBuffer={},c.logger.log("selected A/V codecs for sourceBuffers:"+i+","+r),i&&(n=this.sourceBuffer.audio=this.mediaSource.addSourceBuffer("video/mp4;codecs="+i),n.addEventListener("updateend",this.onsbue),n.addEventListener("error",this.onsbe)),r&&(n=this.sourceBuffer.video=this.mediaSource.addSourceBuffer("video/mp4;codecs="+r),n.addEventListener("updateend",this.onsbue),n.addEventListener("error",this.onsbe))),i&&this.mp4segments.push({type:"audio",data:t.audioMoov}),r&&this.mp4segments.push({type:"video",data:t.videoMoov}),this.tick()}}},{key:"onFragParsing",value:function(e,t){if(this.state===g.PARSING){this.tparse2=Date.now();var n=this.levels[this.level],i=this.fragCurrent;c.logger.log("parsed data, type/startPTS/endPTS/startDTS/endDTS/nb:"+t.type+"/"+t.startPTS.toFixed(3)+"/"+t.endPTS.toFixed(3)+"/"+t.startDTS.toFixed(3)+"/"+t.endDTS.toFixed(3)+"/"+t.nb);var r=p["default"].updateFragPTS(n.details,i.sn,t.startPTS,t.endPTS);this.hls.trigger(u["default"].LEVEL_PTS_UPDATED,{details:n.details,level:this.level,drift:r}),this.mp4segments.push({type:t.type,data:t.moof}),this.mp4segments.push({type:t.type,data:t.mdat}),this.nextLoadPosition=t.endPTS,this.bufferRange.push({type:t.type,start:t.startPTS,end:t.endPTS,frag:i}),this.tick()}else c.logger.warn("not in PARSING state, discarding "+e)}},{key:"onFragParsed",value:function(){this.state===g.PARSING&&(this.state=g.PARSED,this.stats.tparsed=performance.now(),this.tick())}},{key:"onError",value:function(e,t){switch(t.details){case v.ErrorDetails.FRAG_LOAD_ERROR:case v.ErrorDetails.FRAG_LOAD_TIMEOUT:case v.ErrorDetails.FRAG_LOOP_LOADING_ERROR:case v.ErrorDetails.LEVEL_LOAD_ERROR:case v.ErrorDetails.LEVEL_LOAD_TIMEOUT:case v.ErrorDetails.KEY_LOAD_ERROR:case v.ErrorDetails.KEY_LOAD_TIMEOUT:c.logger.warn("mediaController: "+t.details+" while loading frag,switch to "+(t.fatal?"ERROR":"IDLE")+" state ..."),this.state=t.fatal?g.ERROR:g.IDLE}}},{key:"onSBUpdateEnd",value:function(){if(this.state===g.APPENDING&&0===this.mp4segments.length){var e=this.fragCurrent,t=this.stats;e&&(this.fragPrevious=e,t.tbuffered=performance.now(),this.fragLastKbps=Math.round(8*t.length/(t.tbuffered-t.tfirst)),this.hls.trigger(u["default"].FRAG_BUFFERED,{stats:t,frag:e}),c.logger.log("media buffered : "+this.timeRangesToString(this.media.buffered)),this.state=g.IDLE)}this.tick()}},{key:"_checkBuffer",value:function(){var e=this.media;if(e){var t=e.readyState;if(t){var n=this.seekAfterBuffered;if(n)e.duration>=n&&(e.currentTime=n,this.seekAfterBuffered=void 0);else if(3>t){var i=e.currentTime,r=this.bufferInfo(i,0);if(0===r.len){var a=r.nextStart;a&&.3>a-i&&(c.logger.log("adjust currentTime from "+i+" to "+a),e.currentTime=a)}}}}}},{key:"swapAudioCodec",value:function(){this.audioCodecSwap=!this.audioCodecSwap}},{key:"onSBUpdateError",value:function(e){c.logger.error("sourceBuffer error:"+e),this.state=g.ERROR,this.hls.trigger(u["default"].ERROR,{type:v.ErrorTypes.MEDIA_ERROR,details:v.ErrorDetails.BUFFER_APPENDING_ERROR,fatal:!0,frag:this.fragCurrent})}},{key:"timeRangesToString",value:function(e){for(var t="",n=e.length,i=0;n>i;i++)t+="["+e.start(i)+","+e.end(i)+"]";return t}},{key:"onMediaSourceOpen",value:function(){c.logger.log("media source opened"),this.hls.trigger(u["default"].MEDIA_ATTACHED),this.onvseeking=this.onMediaSeeking.bind(this),this.onvseeked=this.onMediaSeeked.bind(this),this.onvmetadata=this.onMediaMetadata.bind(this),this.onvended=this.onMediaEnded.bind(this);var e=this.media;e.addEventListener("seeking",this.onvseeking),e.addEventListener("seeked",this.onvseeked),e.addEventListener("loadedmetadata",this.onvmetadata),e.addEventListener("ended",this.onvended),this.levels&&this.config.autoStartLoad&&this.startLoad(),this.mediaSource.removeEventListener("sourceopen",this.onmso)}},{key:"onMediaSourceClose",value:function(){c.logger.log("media source closed")}},{key:"onMediaSourceEnded",value:function(){c.logger.log("media source ended")}},{key:"currentLevel",get:function(){if(this.media){var e=this.getBufferRange(this.media.currentTime);if(e)return e.frag.level}return-1}},{key:"nextBufferRange",get:function(){return this.media?this.followingBufferRange(this.getBufferRange(this.media.currentTime)):null}},{key:"nextLevel",get:function(){var e=this.nextBufferRange;return e?e.frag.level:-1}}]),e}();t["default"]=y,e.exports=t["default"]},function(e,t){"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),r=function(){function e(t){n(this,e),this._tables=[[[],[],[],[],[]],[[],[],[],[],[]]],this._precompute();var i,r,a,o,s,l=this._tables[0][4],u=this._tables[1],c=t.length,d=1;if(4!==c&&6!==c&&8!==c)throw new Error("Invalid aes key size="+c);for(o=t.slice(0),s=[],this._key=[o,s],i=c;4*c+28>i;i++)a=o[i-1],(i%c===0||8===c&&i%c===4)&&(a=l[a>>>24]<<24^l[a>>16&255]<<16^l[a>>8&255]<<8^l[255&a],i%c===0&&(a=a<<8^a>>>24^d<<24,d=d<<1^283*(d>>7))),o[i]=o[i-c]^a;for(r=0;i;r++,i--)a=o[3&r?i:i-4],4>=i||4>r?s[r]=a:s[r]=u[0][l[a>>>24]]^u[1][l[a>>16&255]]^u[2][l[a>>8&255]]^u[3][l[255&a]]}return i(e,[{key:"_precompute",value:function(){var e,t,n,i,r,a,o,s,l,u=this._tables[0],c=this._tables[1],d=u[4],f=c[4],h=[],p=[];for(e=0;256>e;e++)p[(h[e]=e<<1^283*(e>>7))^e]=e;for(t=n=0;!d[t];t^=i||1,n=p[n]||1)for(o=n^n<<1^n<<2^n<<3^n<<4,o=o>>8^255&o^99,d[t]=o,f[o]=t,a=h[r=h[i=h[t]]],l=16843009*a^65537*r^257*i^16843008*t,s=257*h[o]^16843008*o,e=0;4>e;e++)u[e][t]=s=s<<24^s>>>8,c[e][o]=l=l<<24^l>>>8;for(e=0;5>e;e++)u[e]=u[e].slice(0),c[e]=c[e].slice(0)}},{key:"decrypt",value:function(e,t,n,i,r,a){var o,s,l,u,c=this._key[1],d=e^c[0],f=i^c[1],h=n^c[2],p=t^c[3],v=c.length/4-2,g=4,y=this._tables[1],m=y[0],b=y[1],E=y[2],k=y[3],A=y[4];for(u=0;v>u;u++)o=m[d>>>24]^b[f>>16&255]^E[h>>8&255]^k[255&p]^c[g],s=m[f>>>24]^b[h>>16&255]^E[p>>8&255]^k[255&d]^c[g+1],l=m[h>>>24]^b[p>>16&255]^E[d>>8&255]^k[255&f]^c[g+2],p=m[p>>>24]^b[d>>16&255]^E[f>>8&255]^k[255&h]^c[g+3],g+=4,d=o,f=s,h=l;for(u=0;4>u;u++)r[(3&-u)+a]=A[d>>>24]<<24^A[f>>16&255]<<16^A[h>>8&255]<<8^A[255&p]^c[g++],o=d,d=f,f=h,h=p,p=o}}]),e}();t["default"]=r,e.exports=t["default"]},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{"default":e}}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var a=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),o=n(49),s=i(o),l=function(){function e(t,n){r(this,e),this.key=t,this.iv=n}return a(e,[{key:"ntoh",value:function(e){return e<<24|(65280&e)<<8|(16711680&e)>>8|e>>>24}},{key:"doDecrypt",value:function(e,t,n){var i,r,a,o,l,u,c,d,f,h=new Int32Array(e.buffer,e.byteOffset,e.byteLength>>2),p=new s["default"](Array.prototype.slice.call(t)),v=new Uint8Array(e.byteLength),g=new Int32Array(v.buffer);for(i=~~n[0],r=~~n[1],a=~~n[2],o=~~n[3],f=0;f<h.length;f+=4)l=~~this.ntoh(h[f]),u=~~this.ntoh(h[f+1]),c=~~this.ntoh(h[f+2]),d=~~this.ntoh(h[f+3]),p.decrypt(l,u,c,d,g,f),g[f]=this.ntoh(g[f]^i),g[f+1]=this.ntoh(g[f+1]^r),g[f+2]=this.ntoh(g[f+2]^a),g[f+3]=this.ntoh(g[f+3]^o),i=l,r=u,a=c,o=d;return v}},{key:"localDecript",value:function(e,t,n,i){var r=this.doDecrypt(e,t,n);i.set(r,e.byteOffset)}},{key:"decrypt",value:function(e){var t=32e3,n=new Int32Array(e),i=new Uint8Array(e.byteLength),r=0,a=this.key,o=this.iv;for(this.localDecript(n.subarray(r,r+t),a,o,i),r=t;r<n.length;r+=t)o=new Uint32Array([this.ntoh(n[r-4]),this.ntoh(n[r-3]),this.ntoh(n[r-2]),this.ntoh(n[r-1])]),this.localDecript(n.subarray(r,r+t),a,o,i);return i}}]),e}();t["default"]=l,e.exports=t["default"]},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{"default":e}}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var a=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),o=n(50),s=i(o),l=n(10),u=n(8),c=function(){function e(t){r(this,e),this.hls=t;try{var n=window?window.crypto:crypto;this.subtle=n.subtle||n.webkitSubtle,this.disableWebCrypto=!this.subtle}catch(i){this.disableWebCrypto=!0}}return a(e,[{key:"destroy",value:function(){}},{key:"decrypt",value:function(e,t,n,i){this.disableWebCrypto&&this.hls.config.enableSoftwareAES?this.decryptBySoftware(e,t,n,i):this.decryptByWebCrypto(e,t,n,i)}},{key:"decryptByWebCrypto",value:function(e,t,n,i){var r=this;u.logger.log("decrypting by WebCrypto API"),this.subtle.importKey("raw",t,{name:"AES-CBC",length:128},!1,["decrypt"]).then(function(a){r.subtle.decrypt({name:"AES-CBC",iv:n.buffer},a,e).then(i)["catch"](function(a){r.onWebCryptoError(a,e,t,n,i)})})["catch"](function(a){r.onWebCryptoError(a,e,t,n,i)})}},{key:"decryptBySoftware",value:function(e,t,n,i){u.logger.log("decrypting by JavaScript Implementation");var r=new DataView(t.buffer),a=new Uint32Array([r.getUint32(0),r.getUint32(4),r.getUint32(8),r.getUint32(12)]);r=new DataView(n.buffer);var o=new Uint32Array([r.getUint32(0),r.getUint32(4),r.getUint32(8),r.getUint32(12)]),l=new s["default"](a,o);i(l.decrypt(e).buffer)}},{key:"onWebCryptoError",value:function(e,t,n,i,r){this.hls.config.enableSoftwareAES?(u.logger.log("disabling to use WebCrypto API"),this.disableWebCrypto=!0,this.decryptBySoftware(t,n,i,r)):(u.logger.error("decrypting error : "+e.message),this.hls.trigger(Event.ERROR,{type:l.ErrorTypes.MEDIA_ERROR,details:l.ErrorDetails.FRAG_DECRYPT_ERROR,fatal:!0,reason:e.message}))}}]),e}();t["default"]=c,e.exports=t["default"]},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{"default":e}}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var a=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),o=n(8),s=n(56),l=i(s),u=n(10),c=function(){function e(t,n){r(this,e),this.observer=t,this.remuxerClass=n,this.remuxer=new this.remuxerClass(t),this._aacTrack={type:"audio",id:-1,sequenceNumber:0,samples:[],len:0}}return a(e,[{key:"push",value:function(e,t,n,i,r,a,s,u){var c,d,f,h,p,v,g,y,m=new l["default"](e),b=this._aacTrack,E=m.timeStamp;for(c=m.length,d=e.length;d-1>c&&(255!==e[c]||240!==(240&e[c+1]));c++);for(b.audiosamplerate||(f=this._ADTStoAudioConfig(e,c,t),b.config=f.config,b.audiosamplerate=f.samplerate,b.channelCount=f.channelCount,b.codec=f.codec,b.timescale=this.remuxer.timescale,b.duration=this.remuxer.timescale*u,o.logger.log("parsed codec:"+b.codec+",rate:"+f.samplerate+",nb channel:"+f.channelCount)),h=0;d>c+5&&(p=(3&e[c+3])<<11,p|=e[c+4]<<3,p|=(224&e[c+5])>>>5,v=1&e[c+1]?7:9,p-=v,g=Math.round(90*E+1024*h*9e4/b.audiosamplerate),p>0&&d>=c+v+p);)for(y={unit:e.subarray(c+v,c+v+p),pts:g,dts:g},b.samples.push(y),b.len+=p,c+=p+v,h++;d-1>c&&(255!==e[c]||240!==(240&e[c+1]));c++);this.remuxer.remux(this._aacTrack,{samples:[]},{samples:[]},i)}},{key:"_ADTStoAudioConfig",value:function(e,t,n){var i,r,a,s,l,c=navigator.userAgent.toLowerCase(),d=[96e3,88200,64e3,48e3,44100,32e3,24e3,22050,16e3,12e3,11025,8e3,7350];return i=((192&e[t+2])>>>6)+1,r=(60&e[t+2])>>>2,r>d.length-1?void this.observer.trigger(Event.ERROR,{type:u.ErrorTypes.MEDIA_ERROR,details:u.ErrorDetails.FRAG_PARSING_ERROR,fatal:!0,reason:"invalid ADTS sampling index:"+r}):(s=(1&e[t+2])<<2,s|=(192&e[t+3])>>>6,o.logger.log("manifest codec:"+n+",ADTS data:type:"+i+",sampleingIndex:"+r+"["+d[r]+"Hz],channelConfig:"+s),-1!==c.indexOf("firefox")?r>=6?(i=5,l=new Array(4),a=r-3):(i=2,l=new Array(2),a=r):-1!==c.indexOf("android")?(i=2,l=new Array(2),a=r):(i=5,l=new Array(4),n&&-1!==n.indexOf("mp4a.40.5")||!n&&r>=6?a=r-3:(n&&-1!==n.indexOf("mp4a.40.2")&&(r>=6||1===s)&&(i=2,l=new Array(2)),a=r)),l[0]=i<<3,l[0]|=(14&r)>>1,l[1]|=(1&r)<<7,l[1]|=s<<3,5===i&&(l[1]|=(14&a)>>1,l[2]=(1&a)<<7,l[2]|=8,l[3]=0),{config:l,samplerate:d[r],channelCount:s,codec:"mp4a.40."+i})}},{key:"destroy",value:function(){}}],[{key:"probe",value:function(e){var t,n,i=new l["default"](e);if(i.hasTimeStamp)for(t=i.length,n=e.length;n-1>t;t++)if(255===e[t]&&240===(240&e[t+1]))return!0;return!1}}]),e}();t["default"]=c,e.exports=t["default"]},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var r=n(25),a=i(r),o=n(7),s=i(o),l=n(24),u=i(l),c=n(26),d=i(c),f=function(e){var t=new u["default"];t.trigger=function(e){for(var n=arguments.length,i=Array(n>1?n-1:0),r=1;n>r;r++)i[r-1]=arguments[r];t.emit.apply(t,[e,e].concat(i))},t.off=function(e){for(var n=arguments.length,i=Array(n>1?n-1:0),r=1;n>r;r++)i[r-1]=arguments[r];t.removeListener.apply(t,[e].concat(i))},e.addEventListener("message",function(n){switch(n.data.cmd){case"init":e.demuxer=new a["default"](t,d["default"]);break;case"demux":var i=n.data;e.demuxer.push(new Uint8Array(i.data),i.audioCodec,i.videoCodec,i.timeOffset,i.cc,i.level,i.sn,i.duration)}}),t.on(s["default"].FRAG_PARSING_INIT_SEGMENT,function(t,n){var i={event:t},r=[];n.audioCodec&&(i.audioCodec=n.audioCodec,i.audioMoov=n.audioMoov.buffer,i.audioChannelCount=n.audioChannelCount,r.push(i.audioMoov)),n.videoCodec&&(i.videoCodec=n.videoCodec,i.videoMoov=n.videoMoov.buffer,i.videoWidth=n.videoWidth,i.videoHeight=n.videoHeight,r.push(i.videoMoov)),e.postMessage(i,r)}),t.on(s["default"].FRAG_PARSING_DATA,function(t,n){var i={event:t,type:n.type,startPTS:n.startPTS,endPTS:n.endPTS,startDTS:n.startDTS,endDTS:n.endDTS,moof:n.moof.buffer,mdat:n.mdat.buffer,nb:n.nb};e.postMessage(i,[i.moof,i.mdat])}),t.on(s["default"].FRAG_PARSED,function(t){e.postMessage({event:t})}),t.on(s["default"].ERROR,function(t,n){e.postMessage({event:t,data:n})}),t.on(s["default"].FRAG_PARSING_METADATA,function(t,n){var i={event:t,samples:n.samples};e.postMessage(i)})};t["default"]=f,e.exports=t["default"]},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{"default":e}}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var a=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),o=n(7),s=i(o),l=n(25),u=i(l),c=n(53),d=i(c),f=n(8),h=n(26),p=i(h),v=n(51),g=i(v),y=function(){function e(t){if(r(this,e),this.hls=t,t.config.enableWorker&&"undefined"!=typeof Worker){f.logger.log("demuxing in webworker");try{var i=n(88);this.w=i(d["default"]),this.onwmsg=this.onWorkerMessage.bind(this),this.w.addEventListener("message",this.onwmsg),this.w.postMessage({cmd:"init"})}catch(a){f.logger.error("error while initializing DemuxerWorker, fallback on DemuxerInline"),this.demuxer=new u["default"](t,p["default"])}}else this.demuxer=new u["default"](t,p["default"]);this.demuxInitialized=!0}return a(e,[{key:"destroy",value:function(){this.w?(this.w.removeEventListener("message",this.onwmsg),this.w.terminate(),this.w=null):(this.demuxer.destroy(),this.demuxer=null),this.decrypter&&(this.decrypter.destroy(),this.decrypter=null)}},{key:"pushDecrypted",value:function(e,t,n,i,r,a,o,s){this.w?this.w.postMessage({cmd:"demux",data:e,audioCodec:t,videoCodec:n,timeOffset:i,cc:r,level:a,sn:o,duration:s},[e]):this.demuxer.push(new Uint8Array(e),t,n,i,r,a,o,s)}},{key:"push",value:function(e,t,n,i,r,a,o,s,l){if(e.byteLength>0&&null!=l&&null!=l.key&&"AES-128"===l.method){null==this.decrypter&&(this.decrypter=new g["default"](this.hls));var u=this;this.decrypter.decrypt(e,l.key,l.iv,function(e){u.pushDecrypted(e,t,n,i,r,a,o,s)})}else this.pushDecrypted(e,t,n,i,r,a,o,s)}},{key:"onWorkerMessage",value:function(e){switch(e.data.event){case s["default"].FRAG_PARSING_INIT_SEGMENT:var t={};e.data.audioMoov&&(t.audioMoov=new Uint8Array(e.data.audioMoov),t.audioCodec=e.data.audioCodec,t.audioChannelCount=e.data.audioChannelCount),e.data.videoMoov&&(t.videoMoov=new Uint8Array(e.data.videoMoov),t.videoCodec=e.data.videoCodec,t.videoWidth=e.data.videoWidth,t.videoHeight=e.data.videoHeight),this.hls.trigger(s["default"].FRAG_PARSING_INIT_SEGMENT,t);break;case s["default"].FRAG_PARSING_DATA:this.hls.trigger(s["default"].FRAG_PARSING_DATA,{moof:new Uint8Array(e.data.moof),mdat:new Uint8Array(e.data.mdat),startPTS:e.data.startPTS,endPTS:e.data.endPTS,startDTS:e.data.startDTS,endDTS:e.data.endDTS,type:e.data.type,nb:e.data.nb});break;case s["default"].FRAG_PARSING_METADATA:this.hls.trigger(s["default"].FRAG_PARSING_METADATA,{samples:e.data.samples});break;default:this.hls.trigger(e.data.event,e.data.data)}}}]),e}();t["default"]=y,e.exports=t["default"]},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),a=n(8),o=function(){function e(t){i(this,e),this.data=t,this.bytesAvailable=this.data.byteLength,this.word=0,this.bitsAvailable=0}return r(e,[{key:"loadWord",value:function(){var e=this.data.byteLength-this.bytesAvailable,t=new Uint8Array(4),n=Math.min(4,this.bytesAvailable);if(0===n)throw new Error("no bytes available");t.set(this.data.subarray(e,e+n)),this.word=new DataView(t.buffer).getUint32(0),this.bitsAvailable=8*n,this.bytesAvailable-=n}},{key:"skipBits",value:function(e){var t;this.bitsAvailable>e?(this.word<<=e,this.bitsAvailable-=e):(e-=this.bitsAvailable,t=e>>3,e-=t>>3,this.bytesAvailable-=t,this.loadWord(),this.word<<=e,this.bitsAvailable-=e)}},{key:"readBits",value:function(e){var t=Math.min(this.bitsAvailable,e),n=this.word>>>32-t;return e>32&&a.logger.error("Cannot read more than 32 bits at a time"),this.bitsAvailable-=t,this.bitsAvailable>0?this.word<<=t:this.bytesAvailable>0&&this.loadWord(),t=e-t,t>0?n<<t|this.readBits(t):n}},{key:"skipLZ",value:function(){var e;for(e=0;e<this.bitsAvailable;++e)if(0!==(this.word&2147483648>>>e))return this.word<<=e,this.bitsAvailable-=e,e;return this.loadWord(),e+this.skipLZ()}},{key:"skipUEG",value:function(){this.skipBits(1+this.skipLZ())}},{key:"skipEG",value:function(){this.skipBits(1+this.skipLZ());
  }},{key:"readUEG",value:function(){var e=this.skipLZ();return this.readBits(e+1)-1}},{key:"readEG",value:function(){var e=this.readUEG();return 1&e?1+e>>>1:-1*(e>>>1)}},{key:"readBoolean",value:function(){return 1===this.readBits(1)}},{key:"readUByte",value:function(){return this.readBits(8)}},{key:"skipScalingList",value:function(e){var t,n,i=8,r=8;for(t=0;e>t;t++)0!==r&&(n=this.readEG(),r=(i+n+256)%256),i=0===r?i:r}},{key:"readSPS",value:function(){var e,t,n,i,r,a,o,s,l,u=0,c=0,d=0,f=0,h=1;if(this.readUByte(),e=this.readUByte(),t=this.readBits(5),this.skipBits(3),n=this.readUByte(),this.skipUEG(),100===e||110===e||122===e||144===e){var p=this.readUEG();if(3===p&&this.skipBits(1),this.skipUEG(),this.skipUEG(),this.skipBits(1),this.readBoolean())for(s=3!==p?8:12,l=0;s>l;l++)this.readBoolean()&&(6>l?this.skipScalingList(16):this.skipScalingList(64))}this.skipUEG();var v=this.readUEG();if(0===v)this.readUEG();else if(1===v)for(this.skipBits(1),this.skipEG(),this.skipEG(),i=this.readUEG(),l=0;i>l;l++)this.skipEG();if(this.skipUEG(),this.skipBits(1),r=this.readUEG(),a=this.readUEG(),o=this.readBits(1),0===o&&this.skipBits(1),this.skipBits(1),this.readBoolean()&&(u=this.readUEG(),c=this.readUEG(),d=this.readUEG(),f=this.readUEG()),this.readBoolean()&&this.readBoolean()){var g=void 0,y=this.readUByte();switch(y){case 2:g=[12,11];break;case 3:g=[10,11];break;case 4:g=[16,11];break;case 5:g=[40,33];break;case 6:g=[24,11];break;case 7:g=[20,11];break;case 8:g=[32,11];break;case 9:g=[80,33];break;case 10:g=[18,11];break;case 11:g=[15,11];break;case 12:g=[64,33];break;case 13:g=[160,99];break;case 14:g=[4,3];break;case 15:g=[3,2];break;case 16:g=[2,1];break;case 255:g=[this.readUByte()<<8|this.readUByte(),this.readUByte()<<8|this.readUByte()]}g&&(h=g[0]/g[1])}return{width:(16*(r+1)-2*u-2*c)*h,height:(2-o)*(a+1)*16-(o?2:4)*(d+f)}}},{key:"readSliceType",value:function(){return this.readUByte(),this.readUEG(),this.readUEG()}}]),e}();t["default"]=o,e.exports=t["default"]},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),a=n(8),o=function(){function e(t){i(this,e),this._hasTimeStamp=!1;for(var n,r,o,s,l,u,c,d,f=0;;)if(c=this.readUTF(t,f,3),f+=3,"ID3"===c)f+=3,n=127&t[f++],r=127&t[f++],o=127&t[f++],s=127&t[f++],l=(n<<21)+(r<<14)+(o<<7)+s,u=f+l,this._parseID3Frames(t,f,u),f=u;else{if("3DI"!==c)return f-=3,d=f,void(d&&(this.hasTimeStamp||a.logger.warn("ID3 tag found, but no timestamp"),this._length=d));f+=7,a.logger.log("3DI footer found, end: "+f)}}return r(e,[{key:"readUTF",value:function(e,t,n){var i="",r=t,a=t+n;do i+=String.fromCharCode(e[r++]);while(a>r);return i}},{key:"_parseID3Frames",value:function(e,t,n){for(var i,r,o,s,l;n>=t+8;)switch(i=this.readUTF(e,t,4),t+=4,r=e[t++]<<24+e[t++]<<16+e[t++]<<8+e[t++],s=e[t++]<<8+e[t++],o=t,i){case"PRIV":if("com.apple.streaming.transportStreamTimestamp"===this.readUTF(e,t,44)){t+=44,t+=4;var u=1&e[t++];this._hasTimeStamp=!0,l=((e[t++]<<23)+(e[t++]<<15)+(e[t++]<<7)+e[t++])/45,u&&(l+=47721858.84),l=Math.round(l),a.logger.trace("ID3 timestamp found: "+l),this._timeStamp=l}}}},{key:"hasTimeStamp",get:function(){return this._hasTimeStamp}},{key:"timeStamp",get:function(){return this._timeStamp}},{key:"length",get:function(){return this._length}}]),e}();t["default"]=o,e.exports=t["default"]},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{"default":e}}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var a=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),o=n(7),s=i(o),l=n(55),u=i(l),c=n(8),d=n(10),f=function(){function e(t,n){r(this,e),this.observer=t,this.remuxerClass=n,this.lastCC=0,this.PES_TIMESCALE=9e4,this.remuxer=new this.remuxerClass(t)}return a(e,[{key:"switchLevel",value:function(){this.pmtParsed=!1,this._pmtId=-1,this._avcTrack={type:"video",id:-1,sequenceNumber:0,samples:[],len:0,nbNalu:0},this._aacTrack={type:"audio",id:-1,sequenceNumber:0,samples:[],len:0},this._id3Track={type:"id3",id:-1,sequenceNumber:0,samples:[],len:0},this.remuxer.switchLevel()}},{key:"insertDiscontinuity",value:function(){this.switchLevel(),this.remuxer.insertDiscontinuity()}},{key:"push",value:function(e,t,n,i,r,a,o,l){var u,f,h,p,v,g,y,m,b=e.length;this.audioCodec=t,this.videoCodec=n,this.timeOffset=i,this._duration=l,this.contiguous=!1,r!==this.lastCC?(c.logger.log("discontinuity detected"),this.insertDiscontinuity(),this.lastCC=r):a!==this.lastLevel?(c.logger.log("level switch detected"),this.switchLevel(),this.lastLevel=a):o===this.lastSN+1&&(this.contiguous=!0),this.lastSN=o,this.contiguous||(this.aacOverFlow=null);var E=this.pmtParsed,k=this._avcTrack.id,A=this._aacTrack.id,_=this._id3Track.id;for(p=0;b>p;p+=188)if(71===e[p]){if(v=!!(64&e[p+1]),g=((31&e[p+1])<<8)+e[p+2],y=(48&e[p+3])>>4,y>1){if(m=p+5+e[p+4],m===p+188)continue}else m=p+4;E?g===k?(v&&(u&&this._parseAVCPES(this._parsePES(u)),u={data:[],size:0}),u&&(u.data.push(e.subarray(m,p+188)),u.size+=p+188-m)):g===A?(v&&(f&&this._parseAACPES(this._parsePES(f)),f={data:[],size:0}),f&&(f.data.push(e.subarray(m,p+188)),f.size+=p+188-m)):g===_&&(v&&(h&&this._parseID3PES(this._parsePES(h)),h={data:[],size:0}),h&&(h.data.push(e.subarray(m,p+188)),h.size+=p+188-m)):(v&&(m+=e[m]+1),0===g?this._parsePAT(e,m):g===this._pmtId&&(this._parsePMT(e,m),E=this.pmtParsed=!0,k=this._avcTrack.id,A=this._aacTrack.id,_=this._id3Track.id))}else this.observer.trigger(s["default"].ERROR,{type:d.ErrorTypes.MEDIA_ERROR,details:d.ErrorDetails.FRAG_PARSING_ERROR,fatal:!1,reason:"TS packet did not start with 0x47"});u&&this._parseAVCPES(this._parsePES(u)),f&&this._parseAACPES(this._parsePES(f)),h&&this._parseID3PES(this._parsePES(h)),this.remux()}},{key:"remux",value:function(){this.remuxer.remux(this._aacTrack,this._avcTrack,this._id3Track,this.timeOffset,this.contiguous)}},{key:"destroy",value:function(){this.switchLevel(),this._initPTS=this._initDTS=void 0,this._duration=0}},{key:"_parsePAT",value:function(e,t){this._pmtId=(31&e[t+10])<<8|e[t+11]}},{key:"_parsePMT",value:function(e,t){var n,i,r,a;for(n=(15&e[t+1])<<8|e[t+2],i=t+3+n-4,r=(15&e[t+10])<<8|e[t+11],t+=12+r;i>t;){switch(a=(31&e[t+1])<<8|e[t+2],e[t]){case 15:this._aacTrack.id=a;break;case 21:this._id3Track.id=a;break;case 27:this._avcTrack.id=a;break;default:c.logger.log("unkown stream type:"+e[t])}t+=((15&e[t+3])<<8|e[t+4])+5}}},{key:"_parsePES",value:function(e){var t,n,i,r,a,o,s,l,u,c=0;if(t=e.data[0],i=(t[0]<<16)+(t[1]<<8)+t[2],1===i){for(r=(t[4]<<8)+t[5],n=t[7],192&n&&(s=536870912*(14&t[9])+4194304*(255&t[10])+16384*(254&t[11])+128*(255&t[12])+(254&t[13])/2,s>4294967295&&(s-=8589934592),64&n?(l=536870912*(14&t[14])+4194304*(255&t[15])+16384*(254&t[16])+128*(255&t[17])+(254&t[18])/2,l>4294967295&&(l-=8589934592)):l=s),a=t[8],u=a+9,e.data[0]=e.data[0].subarray(u),e.size-=u,o=new Uint8Array(e.size);e.data.length;)t=e.data.shift(),o.set(t,c),c+=t.byteLength;return{data:o,pts:s,dts:l,len:r}}return null}},{key:"_parseAVCPES",value:function(e){var t,n,i=this,r=this._avcTrack,a=r.samples,o=this._parseAVCNALu(e.data),s=[],l=!1,d=!1,f=0;if(0===o.length&&a.length>0){var h=a[a.length-1],p=h.units.units[h.units.units.length-1],v=new Uint8Array(p.data.byteLength+e.data.byteLength);v.set(p.data,0),v.set(e.data,p.data.byteLength),p.data=v,h.units.length+=e.data.byteLength,r.len+=e.data.byteLength}e.data=null;var g="";o.forEach(function(e){switch(e.type){case 1:n=!0,l&&(g+="NDR ");break;case 5:n=!0,l&&(g+="IDR "),d=!0;break;case 6:n=!0,l&&(g+="SEI ");break;case 7:if(n=!0,l&&(g+="SPS "),!r.sps){var t=new u["default"](e.data),a=t.readSPS();r.width=a.width,r.height=a.height,r.sps=[e.data],r.timescale=i.remuxer.timescale,r.duration=i.remuxer.timescale*i._duration;for(var o=e.data.subarray(1,4),c="avc1.",h=0;3>h;h++){var p=o[h].toString(16);p.length<2&&(p="0"+p),c+=p}r.codec=c}break;case 8:n=!0,l&&(g+="PPS "),r.pps||(r.pps=[e.data]);break;case 9:n=!0,l&&(g+="AUD ");break;default:n=!1,g+="unknown NAL "+e.type+" "}n&&(s.push(e),f+=e.data.byteLength)}),(l||g.length)&&c.logger.log(g),s.length&&(d===!0||r.sps)&&(t={units:{units:s,length:f},pts:e.pts,dts:e.dts,key:d},a.push(t),r.len+=f,r.nbNalu+=s.length)}},{key:"_parseAVCNALu",value:function(e){for(var t,n,i,r,a,o,s=0,l=e.byteLength,u=0,c=[];l>s;)switch(t=e[s++],u){case 0:0===t&&(u=1);break;case 1:u=0===t?2:0;break;case 2:case 3:if(0===t)u=3;else if(1===t){if(r=31&e[s],a)i={data:e.subarray(a,s-u-1),type:o},c.push(i);else if(n=s-u-1,n&&this._avcTrack.samples.length){var d=this._avcTrack.samples[this._avcTrack.samples.length-1],f=d.units.units[d.units.units.length-1],h=new Uint8Array(f.data.byteLength+n);h.set(f.data,0),h.set(e.subarray(0,n),f.data.byteLength),f.data=h,d.units.length+=n,this._avcTrack.len+=n}a=s,o=r,(1===r||5===r)&&(s=l),u=0}else u=0}return a&&(i={data:e.subarray(a,l),type:o},c.push(i)),c}},{key:"_parseAACPES",value:function(e){var t,n,i,r,a,o,l,u,f=this._aacTrack,h=e.data;if(this.aacOverFlow){var p=new Uint8Array(this.aacOverFlow.byteLength+h.byteLength);p.set(this.aacOverFlow,0),p.set(h,this.aacOverFlow.byteLength),h=p}for(r=0,u=h.length;u-1>r&&(255!==h[r]||240!==(240&h[r+1]));r++);if(r){var v,g;if(u-1>r?(v="AAC PES did not start with ADTS header,offset:"+r,g=!1):(v="no ADTS header found in AAC PES",g=!0),this.observer.trigger(s["default"].ERROR,{type:d.ErrorTypes.MEDIA_ERROR,details:d.ErrorDetails.FRAG_PARSING_ERROR,fatal:g,reason:v}),g)return}for(f.audiosamplerate||(n=this._ADTStoAudioConfig(h,r,this.audioCodec),f.config=n.config,f.audiosamplerate=n.samplerate,f.channelCount=n.channelCount,f.codec=n.codec,f.timescale=this.remuxer.timescale,f.duration=this.remuxer.timescale*this._duration,c.logger.log("parsed codec:"+f.codec+",rate:"+n.samplerate+",nb channel:"+n.channelCount)),l=0;u>r+5&&(i=(3&h[r+3])<<11,i|=h[r+4]<<3,i|=(224&h[r+5])>>>5,a=1&h[r+1]?7:9,i-=a,o=Math.round(e.pts+1024*l*this.PES_TIMESCALE/f.audiosamplerate),i>0&&u>=r+a+i);)for(t={unit:h.subarray(r+a,r+a+i),pts:o,dts:o},this._aacTrack.samples.push(t),this._aacTrack.len+=i,r+=i+a,l++;u-1>r&&(255!==h[r]||240!==(240&h[r+1]));r++);u>r?this.aacOverFlow=h.subarray(r,u):this.aacOverFlow=null}},{key:"_ADTStoAudioConfig",value:function(e,t,n){var i,r,a,o,l,u=navigator.userAgent.toLowerCase(),f=[96e3,88200,64e3,48e3,44100,32e3,24e3,22050,16e3,12e3,11025,8e3,7350];return i=((192&e[t+2])>>>6)+1,r=(60&e[t+2])>>>2,r>f.length-1?void this.observer.trigger(s["default"].ERROR,{type:d.ErrorTypes.MEDIA_ERROR,details:d.ErrorDetails.FRAG_PARSING_ERROR,fatal:!0,reason:"invalid ADTS sampling index:"+r}):(o=(1&e[t+2])<<2,o|=(192&e[t+3])>>>6,c.logger.log("manifest codec:"+n+",ADTS data:type:"+i+",sampleingIndex:"+r+"["+f[r]+"Hz],channelConfig:"+o),-1!==u.indexOf("firefox")?r>=6?(i=5,l=new Array(4),a=r-3):(i=2,l=new Array(2),a=r):-1!==u.indexOf("android")?(i=2,l=new Array(2),a=r):(i=5,l=new Array(4),n&&(-1!==n.indexOf("mp4a.40.29")||-1!==n.indexOf("mp4a.40.5"))||!n&&r>=6?a=r-3:((n&&-1!==n.indexOf("mp4a.40.2")&&(r>=6||1===o)||!n&&1===o)&&(i=2,l=new Array(2)),a=r)),l[0]=i<<3,l[0]|=(14&r)>>1,l[1]|=(1&r)<<7,l[1]|=o<<3,5===i&&(l[1]|=(14&a)>>1,l[2]=(1&a)<<7,l[2]|=8,l[3]=0),{config:l,samplerate:f[r],channelCount:o,codec:"mp4a.40."+i})}},{key:"_parseID3PES",value:function(e){this._id3Track.samples.push(e)}}],[{key:"probe",value:function(e){return e.length>=564&&71===e[0]&&71===e[188]&&71===e[376]?!0:!1}}]),e}();t["default"]=f,e.exports=t["default"]},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),a=n(8),o=function(){function e(){i(this,e)}return r(e,null,[{key:"mergeDetails",value:function(t,n){var i,r=Math.max(t.startSN,n.startSN)-n.startSN,o=Math.min(t.endSN,n.endSN)-n.startSN,s=n.startSN-t.startSN,l=t.fragments,u=n.fragments,c=0;if(r>o)return void(n.PTSKnown=!1);for(var d=r;o>=d;d++){var f=l[s+d],h=u[d];c=f.cc-h.cc,isNaN(f.startPTS)||(h.start=h.startPTS=f.startPTS,h.endPTS=f.endPTS,h.duration=f.duration,i=h)}if(c)for(a.logger.log("discontinuity sliding from playlist, take drift into account"),d=0;d<u.length;d++)u[d].cc+=c;if(i)e.updateFragPTS(n,i.sn,i.startPTS,i.endPTS);else{var p=l[s].start;for(d=0;d<u.length;d++)u[d].start+=p}n.PTSKnown=t.PTSKnown}},{key:"updateFragPTS",value:function(t,n,i,r){var a,o,s,l;if(n<t.startSN||n>t.endSN)return 0;a=n-t.startSN,o=t.fragments,s=o[a],isNaN(s.startPTS)||(i=Math.max(i,s.startPTS),r=Math.min(r,s.endPTS));var u=i-s.start;for(s.start=s.startPTS=i,s.endPTS=r,s.duration=r-i,l=a;l>0;l--)e.updatePTS(o,l,l-1);for(l=a;l<o.length-1;l++)e.updatePTS(o,l,l+1);return t.PTSKnown=!0,u}},{key:"updatePTS",value:function(e,t,n){var i=e[t],r=e[n],o=r.startPTS;isNaN(o)?n>t?r.start=i.start+i.duration:r.start=i.start-r.duration:n>t?(i.duration=o-i.start,i.duration<0&&a.logger.error("negative duration computed for "+i+", there should be some duration drift between playlist and fragment!")):(r.duration=i.start-o,r.duration<0&&a.logger.error("negative duration computed for "+r+", there should be some duration drift between playlist and fragment!"))}}]),e}();t["default"]=o,e.exports=t["default"]},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{"default":e}}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var a=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),o=n(7),s=i(o),l=n(10),u=n(62),c=i(u),d=n(60),f=i(d),h=n(46),p=i(h),v=n(48),g=i(v),y=n(47),m=i(y),b=n(8),E=n(66),k=i(E),A=n(24),_=i(A),T=n(61),L=i(T),O=function(){function e(){var t=arguments.length<=0||void 0===arguments[0]?{}:arguments[0];r(this,e);var n={autoStartLoad:!0,debug:!1,maxBufferLength:30,maxBufferSize:6e7,liveSyncDurationCount:3,liveMaxLatencyDurationCount:1/0,maxMaxBufferLength:600,enableWorker:!0,enableSoftwareAES:!0,fragLoadingTimeOut:2e4,fragLoadingMaxRetry:1,fragLoadingRetryDelay:1e3,fragLoadingLoopThreshold:3,manifestLoadingTimeOut:1e4,manifestLoadingMaxRetry:1,manifestLoadingRetryDelay:1e3,appendErrorMaxRetry:200,loader:k["default"],fLoader:void 0,pLoader:void 0,abrController:p["default"],mediaController:g["default"]};for(var i in n)i in t||(t[i]=n[i]);if(void 0!==t.liveMaxLatencyDurationCount&&t.liveMaxLatencyDurationCount<=t.liveSyncDurationCount)throw new Error('Illegal hls.js config: "liveMaxLatencyDurationCount" must be gt "liveSyncDurationCount"');(0,b.enableLogs)(t.debug),this.config=t;var a=this.observer=new _["default"];a.trigger=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),i=1;t>i;i++)n[i-1]=arguments[i];a.emit.apply(a,[e,e].concat(n))},a.off=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),i=1;t>i;i++)n[i-1]=arguments[i];a.removeListener.apply(a,[e].concat(n))},this.on=a.on.bind(a),this.off=a.off.bind(a),this.trigger=a.trigger.bind(a),this.playlistLoader=new c["default"](this),this.fragmentLoader=new f["default"](this),this.levelController=new m["default"](this),this.abrController=new t.abrController(this),this.mediaController=new t.mediaController(this),this.keyLoader=new L["default"](this)}return a(e,null,[{key:"isSupported",value:function(){return window.MediaSource&&window.MediaSource.isTypeSupported('video/mp4; codecs="avc1.42E01E,mp4a.40.2"')}},{key:"Events",get:function(){return s["default"]}},{key:"ErrorTypes",get:function(){return l.ErrorTypes}},{key:"ErrorDetails",get:function(){return l.ErrorDetails}}]),a(e,[{key:"destroy",value:function(){b.logger.log("destroy"),this.trigger(s["default"].DESTROYING),this.detachMedia(),this.playlistLoader.destroy(),this.fragmentLoader.destroy(),this.levelController.destroy(),this.mediaController.destroy(),this.keyLoader.destroy(),this.url=null,this.observer.removeAllListeners()}},{key:"attachMedia",value:function(e){b.logger.log("attachMedia"),this.media=e,this.trigger(s["default"].MEDIA_ATTACHING,{media:e})}},{key:"detachMedia",value:function(){b.logger.log("detachMedia"),this.trigger(s["default"].MEDIA_DETACHING),this.media=null}},{key:"loadSource",value:function(e){b.logger.log("loadSource:"+e),this.url=e,this.trigger(s["default"].MANIFEST_LOADING,{url:e})}},{key:"startLoad",value:function(){b.logger.log("startLoad"),this.mediaController.startLoad()}},{key:"swapAudioCodec",value:function(){b.logger.log("swapAudioCodec"),this.mediaController.swapAudioCodec()}},{key:"recoverMediaError",value:function(){b.logger.log("recoverMediaError");var e=this.media;this.detachMedia(),this.attachMedia(e)}},{key:"levels",get:function(){return this.levelController.levels}},{key:"currentLevel",get:function(){return this.mediaController.currentLevel},set:function(e){b.logger.log("set currentLevel:"+e),this.loadLevel=e,this.mediaController.immediateLevelSwitch()}},{key:"nextLevel",get:function(){return this.mediaController.nextLevel},set:function(e){b.logger.log("set nextLevel:"+e),this.levelController.manualLevel=e,this.mediaController.nextLevelSwitch()}},{key:"loadLevel",get:function(){return this.levelController.level},set:function(e){b.logger.log("set loadLevel:"+e),this.levelController.manualLevel=e}},{key:"nextLoadLevel",get:function(){return this.levelController.nextLoadLevel()},set:function(e){this.levelController.level=e}},{key:"firstLevel",get:function(){return this.levelController.firstLevel},set:function(e){b.logger.log("set firstLevel:"+e),this.levelController.firstLevel=e}},{key:"startLevel",get:function(){return this.levelController.startLevel},set:function(e){b.logger.log("set startLevel:"+e),this.levelController.startLevel=e}},{key:"autoLevelCapping",get:function(){return this.abrController.autoLevelCapping},set:function(e){b.logger.log("set autoLevelCapping:"+e),this.abrController.autoLevelCapping=e}},{key:"autoLevelEnabled",get:function(){return-1===this.levelController.manualLevel}},{key:"manualLevel",get:function(){return this.levelController.manualLevel}}]),e}();t["default"]=O,e.exports=t["default"]},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{"default":e}}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var a=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),o=n(7),s=i(o),l=n(10),u=function(){function e(t){r(this,e),this.hls=t,this.onfl=this.onFragLoading.bind(this),t.on(s["default"].FRAG_LOADING,this.onfl)}return a(e,[{key:"destroy",value:function(){this.loader&&(this.loader.destroy(),this.loader=null),this.hls.off(s["default"].FRAG_LOADING,this.onfl)}},{key:"onFragLoading",value:function(e,t){var n=t.frag;this.frag=n,this.frag.loaded=0;var i=this.hls.config;n.loader=this.loader="undefined"!=typeof i.fLoader?new i.fLoader(i):new i.loader(i),this.loader.load(n.url,"arraybuffer",this.loadsuccess.bind(this),this.loaderror.bind(this),this.loadtimeout.bind(this),i.fragLoadingTimeOut,i.fragLoadingMaxRetry,i.fragLoadingRetryDelay,this.loadprogress.bind(this),n)}},{key:"loadsuccess",value:function(e,t){var n=e.currentTarget.response;t.length=n.byteLength,this.frag.loader=void 0,this.hls.trigger(s["default"].FRAG_LOADED,{payload:n,frag:this.frag,stats:t})}},{key:"loaderror",value:function(e){this.loader.abort(),this.hls.trigger(s["default"].ERROR,{type:l.ErrorTypes.NETWORK_ERROR,details:l.ErrorDetails.FRAG_LOAD_ERROR,fatal:!1,frag:this.frag,response:e})}},{key:"loadtimeout",value:function(){this.loader.abort(),this.hls.trigger(s["default"].ERROR,{type:l.ErrorTypes.NETWORK_ERROR,details:l.ErrorDetails.FRAG_LOAD_TIMEOUT,fatal:!1,frag:this.frag})}},{key:"loadprogress",value:function(e,t){this.frag.loaded=t.loaded,this.hls.trigger(s["default"].FRAG_LOAD_PROGRESS,{frag:this.frag,stats:t})}}]),e}();t["default"]=u,e.exports=t["default"]},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{"default":e}}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var a=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),o=n(7),s=i(o),l=n(10),u=function(){function e(t){r(this,e),this.hls=t,this.decryptkey=null,this.decrypturl=null,this.ondkl=this.onDecryptKeyLoading.bind(this),t.on(s["default"].KEY_LOADING,this.ondkl)}return a(e,[{key:"destroy",value:function(){this.loader&&(this.loader.destroy(),this.loader=null),this.hls.off(s["default"].KEY_LOADING,this.ondkl)}},{key:"onDecryptKeyLoading",value:function(e,t){var n=this.frag=t.frag,i=n.decryptdata,r=i.uri;if(r!==this.decrypturl||null===this.decryptkey){var a=this.hls.config;n.loader=this.loader=new a.loader(a),this.decrypturl=r,this.decryptkey=null,n.loader.load(r,"arraybuffer",this.loadsuccess.bind(this),this.loaderror.bind(this),this.loadtimeout.bind(this),a.fragLoadingTimeOut,a.fragLoadingMaxRetry,a.fragLoadingRetryDelay,this.loadprogress.bind(this),n)}else this.decryptkey&&(i.key=this.decryptkey,this.hls.trigger(s["default"].KEY_LOADED,{frag:n}))}},{key:"loadsuccess",value:function(e){var t=this.frag;this.decryptkey=t.decryptdata.key=new Uint8Array(e.currentTarget.response),t.loader=void 0,this.hls.trigger(s["default"].KEY_LOADED,{frag:t})}},{key:"loaderror",value:function(e){this.loader.abort(),this.hls.trigger(s["default"].ERROR,{type:l.ErrorTypes.NETWORK_ERROR,details:l.ErrorDetails.KEY_LOAD_ERROR,fatal:!1,frag:this.frag,response:e})}},{key:"loadtimeout",value:function(){this.loader.abort(),this.hls.trigger(s["default"].ERROR,{type:l.ErrorTypes.NETWORK_ERROR,details:l.ErrorDetails.KEY_LOAD_TIMEOUT,fatal:!1,frag:this.frag})}},{key:"loadprogress",value:function(){}}]),e}();t["default"]=u,e.exports=t["default"]},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{"default":e}}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var a=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),o=n(7),s=i(o),l=n(10),u=n(65),c=i(u),d=function(){function e(t){r(this,e),this.hls=t,this.onml=this.onManifestLoading.bind(this),this.onll=this.onLevelLoading.bind(this),t.on(s["default"].MANIFEST_LOADING,this.onml),t.on(s["default"].LEVEL_LOADING,this.onll)}return a(e,[{key:"destroy",value:function(){this.loader&&(this.loader.destroy(),this.loader=null),this.url=this.id=null,this.hls.off(s["default"].MANIFEST_LOADING,this.onml),this.hls.off(s["default"].LEVEL_LOADING,this.onll)}},{key:"onManifestLoading",value:function(e,t){this.load(t.url,null)}},{key:"onLevelLoading",value:function(e,t){this.load(t.url,t.level,t.id)}},{key:"load",value:function(e,t,n){var i=this.hls.config;this.url=e,this.id=t,this.id2=n,this.loader="undefined"!=typeof i.pLoader?new i.pLoader(i):new i.loader(i),this.loader.load(e,"",this.loadsuccess.bind(this),this.loaderror.bind(this),this.loadtimeout.bind(this),i.manifestLoadingTimeOut,i.manifestLoadingMaxRetry,i.manifestLoadingRetryDelay)}},{key:"resolve",value:function(e,t){return c["default"].buildAbsoluteURL(t,e)}},{key:"parseMasterPlaylist",value:function(e,t){for(var n,i,r,a=[],o={},s=/#EXT-X-STREAM-INF:([^\n\r]*(BAND)WIDTH=(\d+))?([^\n\r]*(CODECS)=\"([^\"\n\r]*)\",?)?([^\n\r]*(RES)OLUTION=(\d+)x(\d+))?([^\n\r]*(NAME)=\"(.*)\")?[^\n\r]*[\r\n]+([^\r\n]+)/g;null!=(n=s.exec(e));){for(n.shift(),n=n.filter(function(e){return void 0!==e}),o.url=this.resolve(n.pop(),t);n.length>0;)switch(n.shift()){case"RES":o.width=parseInt(n.shift()),o.height=parseInt(n.shift());break;case"BAND":o.bitrate=parseInt(n.shift());break;case"NAME":o.name=n.shift();break;case"CODECS":for(i=n.shift().split(",");i.length>0;)r=i.shift(),-1!==r.indexOf("avc1")?o.videoCodec=this.avc1toavcoti(r):o.audioCodec=r}a.push(o),o={}}return a}},{key:"avc1toavcoti",value:function(e){var t,n=e.split(".");return n.length>2?(t=n.shift()+".",t+=parseInt(n.shift()).toString(16),t+=("00"+parseInt(n.shift()).toString(16)).substr(-4)):t=e,t}},{key:"parseKeyParamsByRegex",value:function(e,t){var n=t.exec(e);return n&&(n.shift(),n=n.filter(function(e){return void 0!==e}),2===n.length)?n[1]:null}},{key:"cloneObj",value:function(e){return JSON.parse(JSON.stringify(e))}},{key:"parseLevelPlaylist",value:function(e,t,n){var i,r,a,o,s,l=0,u=0,c={url:t,fragments:[],live:!0,startSN:0},d=0,f={method:null,key:null,iv:null,uri:null};for(r=/(?:#EXT-X-(MEDIA-SEQUENCE):(\d+))|(?:#EXT-X-(TARGETDURATION):(\d+))|(?:#EXT-X-(KEY):(.*))|(?:#EXT(INF):([\d\.]+)[^\r\n]*([\r\n]+[^#|\r\n]+)?)|(?:#EXT-X-(BYTERANGE):([\d]+[@[\d]*)]*[\r\n]+([^#|\r\n]+)?|(?:#EXT-X-(ENDLIST))|(?:#EXT-X-(DIS)CONTINUITY))/g;null!==(i=r.exec(e));)switch(i.shift(),i=i.filter(function(e){return void 0!==e}),i[0]){case"MEDIA-SEQUENCE":l=c.startSN=parseInt(i[1]);break;case"TARGETDURATION":c.targetduration=parseFloat(i[1]);break;case"ENDLIST":c.live=!1;break;case"DIS":d++;break;case"BYTERANGE":var h=i[1].split("@");s=1===h.length?o:parseInt(h[1]),o=parseInt(h[0])+s,a=c.fragments.length?c.fragments[c.fragments.length-1]:null,a&&!a.url&&(a.byteRangeStartOffset=s,a.byteRangeEndOffset=o,a.url=this.resolve(i[2],t));break;case"INF":var p=parseFloat(i[1]);if(!isNaN(p)){var v,g=l++;if(f.method&&f.uri&&!f.iv){v=this.cloneObj(f);for(var y=new Uint8Array(16),m=12;16>m;m++)y[m]=g>>8*(15-m)&255;v.iv=y}else v=f;c.fragments.push({url:i[2]?this.resolve(i[2],t):null,duration:p,start:u,sn:g,level:n,cc:d,byteRangeStartOffset:s,byteRangeEndOffset:o,decryptdata:v}),u+=p,s=null}break;case"KEY":var b=i[1],E=this.parseKeyParamsByRegex(b,/(METHOD)=([^,]*)/),k=this.parseKeyParamsByRegex(b,/(URI)=["]([^,]*)["]/),A=this.parseKeyParamsByRegex(b,/(IV)=([^,]*)/);E&&(f={method:null,key:null,iv:null,uri:null},k&&"AES-128"===E&&(f.method=E,f.uri=this.resolve(k,t),f.key=null,A&&(f.iv=A,"0x"===f.iv.substring(0,2)&&(f.iv=f.iv.substring(2)),f.iv=f.iv.match(/.{8}/g),f.iv[0]=parseInt(f.iv[0],16),f.iv[1]=parseInt(f.iv[1],16),f.iv[2]=parseInt(f.iv[2],16),f.iv[3]=parseInt(f.iv[3],16),f.iv=new Uint32Array(f.iv))))}return c.totalduration=u,c.endSN=l-1,c}},{key:"loadsuccess",value:function(e,t){var n,i=e.currentTarget.responseText,r=e.currentTarget.responseURL,a=this.id,o=this.id2,u=this.hls;if(void 0===r&&(r=this.url),t.tload=performance.now(),t.mtime=new Date(e.currentTarget.getResponseHeader("Last-Modified")),0===i.indexOf("#EXTM3U"))if(i.indexOf("#EXTINF:")>0)if(null===this.id)u.trigger(s["default"].MANIFEST_LOADED,{levels:[{url:r}],url:r,stats:t});else{var c=this.parseLevelPlaylist(i,r,a);t.tparsed=performance.now(),u.trigger(s["default"].LEVEL_LOADED,{details:c,level:a,id:o,stats:t})}else n=this.parseMasterPlaylist(i,r),n.length?u.trigger(s["default"].MANIFEST_LOADED,{levels:n,url:r,stats:t}):u.trigger(s["default"].ERROR,{type:l.ErrorTypes.NETWORK_ERROR,details:l.ErrorDetails.MANIFEST_PARSING_ERROR,fatal:!0,url:r,reason:"no level found in manifest"});else u.trigger(s["default"].ERROR,{type:l.ErrorTypes.NETWORK_ERROR,details:l.ErrorDetails.MANIFEST_PARSING_ERROR,fatal:!0,url:r,reason:"no EXTM3U delimiter"})}},{key:"loaderror",value:function(e){var t,n;null===this.id?(t=l.ErrorDetails.MANIFEST_LOAD_ERROR,n=!0):(t=l.ErrorDetails.LEVEL_LOAD_ERROR,n=!1),this.loader.abort(),this.hls.trigger(s["default"].ERROR,{type:l.ErrorTypes.NETWORK_ERROR,details:t,fatal:n,url:this.url,loader:this.loader,response:e.currentTarget,level:this.id,id:this.id2})}},{key:"loadtimeout",value:function(){var e,t;null===this.id?(e=l.ErrorDetails.MANIFEST_LOAD_TIMEOUT,t=!0):(e=l.ErrorDetails.LEVEL_LOAD_TIMEOUT,t=!1),this.loader.abort(),this.hls.trigger(s["default"].ERROR,{type:l.ErrorTypes.NETWORK_ERROR,details:e,fatal:t,url:this.url,loader:this.loader,level:this.id,id:this.id2})}}]),e}();t["default"]=d,e.exports=t["default"]},function(e,t){"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),r=function(){function e(){n(this,e)}return i(e,null,[{key:"init",value:function(){e.types={avc1:[],avcC:[],btrt:[],dinf:[],dref:[],esds:[],ftyp:[],hdlr:[],mdat:[],mdhd:[],mdia:[],mfhd:[],minf:[],moof:[],moov:[],mp4a:[],mvex:[],mvhd:[],sdtp:[],stbl:[],stco:[],stsc:[],stsd:[],stsz:[],stts:[],tfdt:[],tfhd:[],traf:[],trak:[],trun:[],trex:[],tkhd:[],vmhd:[],smhd:[]};var t;for(t in e.types)e.types.hasOwnProperty(t)&&(e.types[t]=[t.charCodeAt(0),t.charCodeAt(1),t.charCodeAt(2),t.charCodeAt(3)]);e.MAJOR_BRAND=new Uint8Array(["i".charCodeAt(0),"s".charCodeAt(0),"o".charCodeAt(0),"m".charCodeAt(0)]),e.AVC1_BRAND=new Uint8Array(["a".charCodeAt(0),"v".charCodeAt(0),"c".charCodeAt(0),"1".charCodeAt(0)]),e.MINOR_VERSION=new Uint8Array([0,0,0,1]),e.VIDEO_HDLR=new Uint8Array([0,0,0,0,0,0,0,0,118,105,100,101,0,0,0,0,0,0,0,0,0,0,0,0,86,105,100,101,111,72,97,110,100,108,101,114,0]),e.AUDIO_HDLR=new Uint8Array([0,0,0,0,0,0,0,0,115,111,117,110,0,0,0,0,0,0,0,0,0,0,0,0,83,111,117,110,100,72,97,110,100,108,101,114,0]),e.HDLR_TYPES={video:e.VIDEO_HDLR,audio:e.AUDIO_HDLR},e.DREF=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,12,117,114,108,32,0,0,0,1]),e.STCO=new Uint8Array([0,0,0,0,0,0,0,0]),e.STSC=e.STCO,e.STTS=e.STCO,e.STSZ=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0]),e.VMHD=new Uint8Array([0,0,0,1,0,0,0,0,0,0,0,0]),e.SMHD=new Uint8Array([0,0,0,0,0,0,0,0]),e.STSD=new Uint8Array([0,0,0,0,0,0,0,1]),e.FTYP=e.box(e.types.ftyp,e.MAJOR_BRAND,e.MINOR_VERSION,e.MAJOR_BRAND,e.AVC1_BRAND),e.DINF=e.box(e.types.dinf,e.box(e.types.dref,e.DREF))}},{key:"box",value:function(e){for(var t,n,i=Array.prototype.slice.call(arguments,1),r=0,a=i.length;a--;)r+=i[a].byteLength;for(t=new Uint8Array(r+8),n=new DataView(t.buffer),n.setUint32(0,t.byteLength),t.set(e,4),a=0,r=8;a<i.length;a++)t.set(i[a],r),r+=i[a].byteLength;return t}},{key:"hdlr",value:function(t){return e.box(e.types.hdlr,e.HDLR_TYPES[t])}},{key:"mdat",value:function(t){return e.box(e.types.mdat,t)}},{key:"mdhd",value:function(t,n){return e.box(e.types.mdhd,new Uint8Array([0,0,0,0,0,0,0,2,0,0,0,3,t>>24&255,t>>16&255,t>>8&255,255&t,n>>24,n>>16&255,n>>8&255,255&n,85,196,0,0]))}},{key:"mdia",value:function(t){return e.box(e.types.mdia,e.mdhd(t.timescale,t.duration),e.hdlr(t.type),e.minf(t))}},{key:"mfhd",value:function(t){return e.box(e.types.mfhd,new Uint8Array([0,0,0,0,t>>24,t>>16&255,t>>8&255,255&t]))}},{key:"minf",value:function(t){return"audio"===t.type?e.box(e.types.minf,e.box(e.types.smhd,e.SMHD),e.DINF,e.stbl(t)):e.box(e.types.minf,e.box(e.types.vmhd,e.VMHD),e.DINF,e.stbl(t))}},{key:"moof",value:function(t,n,i){
  return e.box(e.types.moof,e.mfhd(t),e.traf(i,n))}},{key:"moov",value:function(t){for(var n=t.length,i=[];n--;)i[n]=e.trak(t[n]);return e.box.apply(null,[e.types.moov,e.mvhd(t[0].timescale,t[0].duration)].concat(i).concat(e.mvex(t)))}},{key:"mvex",value:function(t){for(var n=t.length,i=[];n--;)i[n]=e.trex(t[n]);return e.box.apply(null,[e.types.mvex].concat(i))}},{key:"mvhd",value:function(t,n){var i=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,2,t>>24&255,t>>16&255,t>>8&255,255&t,n>>24&255,n>>16&255,n>>8&255,255&n,0,1,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255]);return e.box(e.types.mvhd,i)}},{key:"sdtp",value:function(t){var n,i,r=t.samples||[],a=new Uint8Array(4+r.length);for(i=0;i<r.length;i++)n=r[i].flags,a[i+4]=n.dependsOn<<4|n.isDependedOn<<2|n.hasRedundancy;return e.box(e.types.sdtp,a)}},{key:"stbl",value:function(t){return e.box(e.types.stbl,e.stsd(t),e.box(e.types.stts,e.STTS),e.box(e.types.stsc,e.STSC),e.box(e.types.stsz,e.STSZ),e.box(e.types.stco,e.STCO))}},{key:"avc1",value:function(t){var n,i,r,a=[],o=[];for(n=0;n<t.sps.length;n++)i=t.sps[n],r=i.byteLength,a.push(r>>>8&255),a.push(255&r),a=a.concat(Array.prototype.slice.call(i));for(n=0;n<t.pps.length;n++)i=t.pps[n],r=i.byteLength,o.push(r>>>8&255),o.push(255&r),o=o.concat(Array.prototype.slice.call(i));var s=e.box(e.types.avcC,new Uint8Array([1,a[3],a[4],a[5],255,224|t.sps.length].concat(a).concat([t.pps.length]).concat(o)));return e.box(e.types.avc1,new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,t.width>>8&255,255&t.width,t.height>>8&255,255&t.height,0,72,0,0,0,72,0,0,0,0,0,0,0,1,19,118,105,100,101,111,106,115,45,99,111,110,116,114,105,98,45,104,108,115,0,0,0,0,0,0,0,0,0,0,0,0,0,24,17,17]),s,e.box(e.types.btrt,new Uint8Array([0,28,156,128,0,45,198,192,0,45,198,192])))}},{key:"esds",value:function(e){return new Uint8Array([0,0,0,0,3,23+e.config.length,0,1,0,4,15+e.config.length,64,21,0,0,0,0,0,0,0,0,0,0,0,5].concat([e.config.length]).concat(e.config).concat([6,1,2]))}},{key:"mp4a",value:function(t){return e.box(e.types.mp4a,new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,t.channelCount,0,16,0,0,0,0,t.audiosamplerate>>8&255,255&t.audiosamplerate,0,0]),e.box(e.types.esds,e.esds(t)))}},{key:"stsd",value:function(t){return"audio"===t.type?e.box(e.types.stsd,e.STSD,e.mp4a(t)):e.box(e.types.stsd,e.STSD,e.avc1(t))}},{key:"tkhd",value:function(t){return e.box(e.types.tkhd,new Uint8Array([0,0,0,7,0,0,0,0,0,0,0,0,t.id>>24&255,t.id>>16&255,t.id>>8&255,255&t.id,0,0,0,0,t.duration>>24,t.duration>>16&255,t.duration>>8&255,255&t.duration,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,t.width>>8&255,255&t.width,0,0,t.height>>8&255,255&t.height,0,0]))}},{key:"traf",value:function(t,n){var i=e.sdtp(t);return e.box(e.types.traf,e.box(e.types.tfhd,new Uint8Array([0,0,0,0,t.id>>24,t.id>>16&255,t.id>>8&255,255&t.id])),e.box(e.types.tfdt,new Uint8Array([0,0,0,0,n>>24,n>>16&255,n>>8&255,255&n])),e.trun(t,i.length+16+16+8+16+8+8),i)}},{key:"trak",value:function(t){return t.duration=t.duration||4294967295,e.box(e.types.trak,e.tkhd(t),e.mdia(t))}},{key:"trex",value:function(t){return e.box(e.types.trex,new Uint8Array([0,0,0,0,t.id>>24,t.id>>16&255,t.id>>8&255,255&t.id,0,0,0,1,0,0,0,0,0,0,0,0,0,1,0,1]))}},{key:"trun",value:function(t,n){var i,r,a,o;for(i=t.samples||[],o=new Uint8Array(12+16*i.length),n+=8+o.byteLength,o.set([0,0,15,1,i.length>>>24&255,i.length>>>16&255,i.length>>>8&255,255&i.length,n>>>24&255,n>>>16&255,n>>>8&255,255&n],0),a=0;a<i.length;a++)r=i[a],o.set([r.duration>>>24&255,r.duration>>>16&255,r.duration>>>8&255,255&r.duration,r.size>>>24&255,r.size>>>16&255,r.size>>>8&255,255&r.size,r.flags.isLeading<<2|r.flags.dependsOn,r.flags.isDependedOn<<6|r.flags.hasRedundancy<<4|r.flags.paddingValue<<1|r.flags.isNonSync,61440&r.flags.degradPrio,15&r.flags.degradPrio,r.cts>>>24&255,r.cts>>>16&255,r.cts>>>8&255,255&r.cts],12+16*a);return e.box(e.types.trun,o)}},{key:"initSegment",value:function(t){e.types||e.init();var n,i=e.moov(t);return n=new Uint8Array(e.FTYP.byteLength+i.byteLength),n.set(e.FTYP),n.set(i,e.FTYP.byteLength),n}}]),e}();t["default"]=r,e.exports=t["default"]},function(e,t){"use strict";var n={search:function(e,t){for(var n=0,i=e.length-1,r=null,a=null;i>=n;){r=(n+i)/2|0,a=e[r];var o=t(a);if(o>0)n=r+1;else{if(!(0>o))return a;i=r-1}}return null}};e.exports=n},function(e,t){"use strict";var n={buildAbsoluteURL:function(e,t){if(t=t.trim(),/^[a-z]+:/i.test(t))return t;var i=null,r=null,a=/^([^#]*)(.*)$/.exec(t);a&&(r=a[2],t=a[1]);var o=/^([^\?]*)(.*)$/.exec(t);o&&(i=o[2],t=o[1]);var s=/^([^#]*)(.*)$/.exec(e);s&&(e=s[1]);var l=/^([^\?]*)(.*)$/.exec(e);l&&(e=l[1]);var u=/^((([a-z]+):)?\/\/[a-z0-9\.-]+(:[0-9]+)?\/)(.*)$/i.exec(e),c=u[3],d=u[1],f=u[5],h=null;if(/^\/\//.test(t))h=c+"://"+n.buildAbsolutePath("",t.substring(2));else if(/^\//.test(t))h=d+n.buildAbsolutePath("",t.substring(1));else{var p=n.buildAbsolutePath(f,t);h=d+p}return i&&(h+=i),r&&(h+=r),h},buildAbsolutePath:function(e,t){for(var n,i,r=t,a="",o=e.replace(/[^\/]*$/,r.replace(/(\/|^)(?:\.?\/+)+/g,"$1")),s=0;i=o.indexOf("/../",s),i>-1;s=i+n)n=/^\/(?:\.\.\/)*/.exec(o.slice(i))[0].length,a=(a+o.substring(s,i)).replace(new RegExp("(?:\\/+[^\\/]*){0,"+(n-1)/3+"}$"),"/");return a+o.substr(s)}};e.exports=n},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),a=n(8),o=function(){function e(t){i(this,e),t&&t.xhrSetup&&(this.xhrSetup=t.xhrSetup)}return r(e,[{key:"destroy",value:function(){this.abort(),this.loader=null}},{key:"abort",value:function(){this.loader&&4!==this.loader.readyState&&(this.stats.aborted=!0,this.loader.abort()),this.timeoutHandle&&window.clearTimeout(this.timeoutHandle)}},{key:"load",value:function(e,t,n,i,r,a,o,s){var l=arguments.length<=8||void 0===arguments[8]?null:arguments[8],u=arguments.length<=9||void 0===arguments[9]?null:arguments[9];this.url=e,!u||isNaN(u.byteRangeStartOffset)||isNaN(u.byteRangeEndOffset)||(this.byteRange=u.byteRangeStartOffset+"-"+u.byteRangeEndOffset),this.responseType=t,this.onSuccess=n,this.onProgress=l,this.onTimeout=r,this.onError=i,this.stats={trequest:performance.now(),retry:0},this.timeout=a,this.maxRetry=o,this.retryDelay=s,this.timeoutHandle=window.setTimeout(this.loadtimeout.bind(this),a),this.loadInternal()}},{key:"loadInternal",value:function(){var e=this.loader=new XMLHttpRequest;e.onload=this.loadsuccess.bind(this),e.onerror=this.loaderror.bind(this),e.onprogress=this.loadprogress.bind(this),e.open("GET",this.url,!0),this.byteRange&&e.setRequestHeader("Range","bytes="+this.byteRange),e.responseType=this.responseType,this.stats.tfirst=null,this.stats.loaded=0,this.xhrSetup&&this.xhrSetup(e,this.url),e.send()}},{key:"loadsuccess",value:function(e){window.clearTimeout(this.timeoutHandle),this.stats.tload=performance.now(),this.onSuccess(e,this.stats)}},{key:"loaderror",value:function(e){this.stats.retry<this.maxRetry?(a.logger.warn(e.type+" while loading "+this.url+", retrying in "+this.retryDelay+"..."),this.destroy(),window.setTimeout(this.loadInternal.bind(this),this.retryDelay),this.retryDelay=Math.min(2*this.retryDelay,64e3),this.stats.retry++):(window.clearTimeout(this.timeoutHandle),a.logger.error(e.type+" while loading "+this.url),this.onError(e))}},{key:"loadtimeout",value:function(e){a.logger.warn("timeout while loading "+this.url),this.onTimeout(e,this.stats)}},{key:"loadprogress",value:function(e){var t=this.stats;null===t.tfirst&&(t.tfirst=performance.now()),t.loaded=e.loaded,this.onProgress&&this.onProgress(e,t)}}]),e}();t["default"]=o,e.exports=t["default"]},function(e,t,n){"use strict";function i(e,t){return h(e,t,c)}function r(e){return function(t){return null==t?void 0:t[e]}}function a(e,t){return function(n,i){var r=n?p(n):0;if(!s(r))return e(n,i);for(var a=t?r:-1,o=l(n);(t?a--:++a<r)&&i(o[a],a,o)!==!1;);return n}}function o(e){return function(t,n,i){for(var r=l(t),a=i(t),o=a.length,s=e?o:-1;e?s--:++s<o;){var u=a[s];if(n(r[u],u,r)===!1)break}return t}}function s(e){return"number"==typeof e&&e>-1&&e%1==0&&d>=e}function l(e){return u(e)?e:Object(e)}function u(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}var c=n(22),d=9007199254740991,f=a(i),h=o(),p=r("length");e.exports=f},function(e,t){"use strict";function n(e,t,n,i){var r;return n(e,function(e,n,a){return t(e,n,a)?(r=i?n:e,!1):void 0}),r}e.exports=n},function(e,t){"use strict";function n(e,t,n){for(var i=e.length,r=n?i:-1;n?r--:++r<i;)if(t(e[r],r,e))return r;return-1}e.exports=n},function(e,t){"use strict";function n(e,t,n){if(null!=e){void 0!==n&&n in i(e)&&(t=[n]);for(var r=0,a=t.length;null!=e&&a>r;)e=e[t[r++]];return r&&r==a?e:void 0}}function i(e){return r(e)?e:Object(e)}function r(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}e.exports=n},function(e,t){"use strict";function n(e,t,n){if(t!==t)return i(e,n);for(var r=n-1,a=e.length;++r<a;)if(e[r]===t)return r;return-1}function i(e,t,n){for(var i=e.length,r=t+(n?0:-1);n?r--:++r<i;){var a=e[r];if(a!==a)return r}return-1}e.exports=n},function(e,t,n){"use strict";function i(e){return!!e&&"object"==typeof e}function r(e,t){for(var n=-1,i=e.length;++n<i;)if(t(e[n],n,e))return!0;return!1}function a(e,t,n,r,s,l){return e===t?!0:null==e||null==t||!c(e)&&!i(t)?e!==e&&t!==t:o(e,t,a,n,r,s,l)}function o(e,t,n,i,r,a,o){var c=d(e),h=d(t),g=v,y=v;c||(g=L.call(e),g==p?g=E:g!=E&&(c=f(e))),h||(y=L.call(t),y==p?y=E:y!=E&&(h=f(t)));var m=g==E,b=y==E,k=g==y;if(k&&!c&&!m)return l(e,t,g);if(!r){var A=m&&T.call(e,"__wrapped__"),_=b&&T.call(t,"__wrapped__");if(A||_)return n(A?e.value():e,_?t.value():t,i,r,a,o)}if(!k)return!1;a||(a=[]),o||(o=[]);for(var O=a.length;O--;)if(a[O]==e)return o[O]==t;a.push(e),o.push(t);var S=(c?s:u)(e,t,n,i,r,a,o);return a.pop(),o.pop(),S}function s(e,t,n,i,a,o,s){var l=-1,u=e.length,c=t.length;if(u!=c&&!(a&&c>u))return!1;for(;++l<u;){var d=e[l],f=t[l],h=i?i(a?f:d,a?d:f,l):void 0;if(void 0!==h){if(h)continue;return!1}if(a){if(!r(t,function(e){return d===e||n(d,e,i,a,o,s)}))return!1}else if(d!==f&&!n(d,f,i,a,o,s))return!1}return!0}function l(e,t,n){switch(n){case g:case y:return+e==+t;case m:return e.name==t.name&&e.message==t.message;case b:return e!=+e?t!=+t:e==+t;case k:case A:return e==t+""}return!1}function u(e,t,n,i,r,a,o){var s=h(e),l=s.length,u=h(t),c=u.length;if(l!=c&&!r)return!1;for(var d=l;d--;){var f=s[d];if(!(r?f in t:T.call(t,f)))return!1}for(var p=r;++d<l;){f=s[d];var v=e[f],g=t[f],y=i?i(r?g:v,r?v:g,f):void 0;if(!(void 0===y?n(v,g,i,r,a,o):y))return!1;p||(p="constructor"==f)}if(!p){var m=e.constructor,b=t.constructor;if(m!=b&&"constructor"in e&&"constructor"in t&&!("function"==typeof m&&m instanceof m&&"function"==typeof b&&b instanceof b))return!1}return!0}function c(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}var d=n(16),f=n(83),h=n(22),p="[object Arguments]",v="[object Array]",g="[object Boolean]",y="[object Date]",m="[object Error]",b="[object Number]",E="[object Object]",k="[object RegExp]",A="[object String]",_=Object.prototype,T=_.hasOwnProperty,L=_.toString;e.exports=a},function(e,t){"use strict";function n(e,t,n){var i=-1,r=e.length;t=null==t?0:+t||0,0>t&&(t=-t>r?0:r+t),n=void 0===n||n>r?r:+n||0,0>n&&(n+=r),r=t>n?0:n-t>>>0,t>>>=0;for(var a=Array(r);++i<r;)a[i]=e[i+t];return a}e.exports=n},function(e,t,n){"use strict";function i(e,t){var n=-1,i=r,l=e.length,u=!0,c=u&&l>=s,d=c?o():null,f=[];d?(i=a,u=!1):(c=!1,d=t?[]:f);e:for(;++n<l;){var h=e[n],p=t?t(h,n,e):h;if(u&&h===h){for(var v=d.length;v--;)if(d[v]===p)continue e;t&&d.push(p),f.push(h)}else i(d,p,0)<0&&((t||c)&&d.push(p),f.push(h))}return f}var r=n(71),a=n(76),o=n(77),s=200;e.exports=i},function(e,t){"use strict";function n(e,t,n){if("function"!=typeof e)return i;if(void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 3:return function(n,i,r){return e.call(t,n,i,r)};case 4:return function(n,i,r,a){return e.call(t,n,i,r,a)};case 5:return function(n,i,r,a,o){return e.call(t,n,i,r,a,o)}}return function(){return e.apply(t,arguments)}}function i(e){return e}e.exports=n},function(e,t){"use strict";function n(e,t){var n=e.data,r="string"==typeof t||i(t)?n.set.has(t):n.hash[t];return r?0:-1}function i(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}e.exports=n},function(e,t,n){(function(t){"use strict";function i(e){var t=e?e.length:0;for(this.data={hash:u(null),set:new l};t--;)this.push(e[t])}function r(e){var t=this.data;"string"==typeof e||o(e)?t.set.add(e):t.hash[e]=!0}function a(e){return u&&l?new i(e):null}function o(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}var s=n(28),l=s(t,"Set"),u=s(Object,"create");i.prototype.push=r,e.exports=a}).call(t,function(){return this}())},function(e,t){"use strict";function n(e){return function(t){return null==t?void 0:t[e]}}function i(e){return null!=e&&o(c(e))}function r(e,t){return e="number"==typeof e||l.test(e)?+e:-1,t=null==t?u:t,e>-1&&e%1==0&&t>e}function a(e,t,n){if(!s(n))return!1;var a=typeof t;if("number"==a?i(n)&&r(t,n.length):"string"==a&&t in n){var o=n[t];return e===e?e===o:o!==o}return!1}function o(e){return"number"==typeof e&&e>-1&&e%1==0&&u>=e}function s(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}var l=/^\d+$/,u=9007199254740991,c=n("length");e.exports=a},function(e,t,n){"use strict";function i(e){return null==e?"":e+""}function r(e){if(a(e))return e;var t=[];return i(e).replace(o,function(e,n,i,r){t.push(i?r.replace(s,"$1"):n||e)}),t}var a=n(16),o=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\n\\]|\\.)*?)\2)\]/g,s=/\\(\\)?/g;e.exports=r},function(e,t){"use strict";function n(e,t){var n;if("function"!=typeof t){if("function"!=typeof e)throw new TypeError(i);var r=e;e=t,t=r}return function(){return--e>0&&(n=t.apply(this,arguments)),1>=e&&(t=void 0),n}}var i="Expected a function";e.exports=n},function(e,t){"use strict";function n(e){return!!e&&"object"==typeof e}function i(e){return function(t){return null==t?void 0:t[e]}}function r(e){return null!=e&&a(d(e))}function a(e){return"number"==typeof e&&e>-1&&e%1==0&&c>=e}function o(e){return n(e)&&r(e)&&l.call(e,"callee")&&!u.call(e,"callee")}var s=Object.prototype,l=s.hasOwnProperty,u=s.propertyIsEnumerable,c=9007199254740991,d=i("length");e.exports=o},function(e,t){"use strict";function n(e){return i(e)&&o.call(e)==r}function i(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}var r="[object Function]",a=Object.prototype,o=a.toString;e.exports=n},function(e,t){"use strict";function n(e){return!!e&&"object"==typeof e}function i(e){return"number"==typeof e&&e>-1&&e%1==0&&R>=e}function r(e){return n(e)&&i(e.length)&&!!w[C.call(e)]}var a="[object Arguments]",o="[object Array]",s="[object Boolean]",l="[object Date]",u="[object Error]",c="[object Function]",d="[object Map]",f="[object Number]",h="[object Object]",p="[object RegExp]",v="[object Set]",g="[object String]",y="[object WeakMap]",m="[object ArrayBuffer]",b="[object Float32Array]",E="[object Float64Array]",k="[object Int8Array]",A="[object Int16Array]",_="[object Int32Array]",T="[object Uint8Array]",L="[object Uint8ClampedArray]",O="[object Uint16Array]",S="[object Uint32Array]",w={};w[b]=w[E]=w[k]=w[A]=w[_]=w[T]=w[L]=w[O]=w[S]=!0,w[a]=w[o]=w[m]=w[s]=w[l]=w[u]=w[c]=w[d]=w[f]=w[h]=w[p]=w[v]=w[g]=w[y]=!1;var P=Object.prototype,C=P.toString,R=9007199254740991;e.exports=r},function(e,t,n){"use strict";function i(e){return r(2,e)}var r=n(80);e.exports=i},function(e,t,n){"use strict";function i(e){return r(e)?e:Object(e)}function r(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function a(e){e=i(e);for(var t=-1,n=o(e),r=n.length,a=Array(r);++t<r;){var s=n[t];a[t]=[s,e[s]]}return a}var o=n(22);e.exports=a},function(e,t,n){"use strict";function i(e,t){var n=typeof e;if("string"==n&&p.test(e)||"number"==n)return!0;if(d(e))return!1;var i=!h.test(e);return i||null!=t&&e in r(t)}function r(e){return o(e)?e:Object(e)}function a(e){var t=e?e.length:0;return t?e[t-1]:void 0}function o(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function s(e,t,n){var r=null==e?void 0:e[t];return void 0===r&&(null==e||i(t,e)||(t=c(t),e=1==t.length?e:l(e,u(t,0,-1)),r=null==e?void 0:e[a(t)]),r=void 0===r?n:r),f(r)?r.call(e):r}var l=n(70),u=n(73),c=n(79),d=n(16),f=n(82),h=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\n\\]|\\.)*?\1)\]/,p=/^\w*$/;e.exports=s},function(e,t,n){"use strict";function i(e,t){for(var n,i=-1,r=e.length,a=-1,o=[];++i<r;){var s=e[i],l=t?t(s,i,e):s;i&&n===l||(n=l,o[++a]=s)}return o}function r(e,t,n,r){var l=e?e.length:0;return l?(null!=t&&"boolean"!=typeof t&&(r=n,n=s(e,t,r)?void 0:t,t=!1),n=null==n?n:a(n,r,3),t?i(e,n):o(e,n)):[]}var a=n(27),o=n(74),s=n(78);e.exports=r},function(e,t){"use strict";var n=arguments[3],i=arguments[4],r=arguments[5],a=JSON.stringify;e.exports=function(e){for(var t,o=Object.keys(r),s=0,l=o.length;l>s;s++){var u=o[s];if(r[u].exports===e){t=u;break}}if(!t){t=Math.floor(Math.pow(16,8)*Math.random()).toString(16);for(var c={},s=0,l=o.length;l>s;s++){var u=o[s];c[u]=u}i[t]=[Function(["require","module","exports"],"("+e+")(self)"),c]}var d=Math.floor(Math.pow(16,8)*Math.random()).toString(16),f={};f[t]=t,i[d]=[Function(["require"],"require("+a(t)+")(self)"),f];var h="("+n+")({"+Object.keys(i).map(function(e){return a(e)+":["+i[e][0]+","+a(i[e][1])+"]"}).join(",")+"},{},["+a(d)+"])",p=window.URL||window.webkitURL||window.mozURL||window.msURL;return new Worker(p.createObjectURL(new Blob([h],{type:"text/javascript"})))}},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{"default":e}}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),s=function(e,t,n){for(var i=!0;i;){var r=e,a=t,o=n;i=!1,null===r&&(r=Function.prototype);var s=Object.getOwnPropertyDescriptor(r,a);if(void 0!==s){if("value"in s)return s.value;var l=s.get;if(void 0===l)return;return l.call(o)}var u=Object.getPrototypeOf(r);if(null===u)return;e=u,t=a,n=o,i=!0,s=u=void 0}},l=n(1),u=i(l),c=n(13),d=i(c),f=n(4),h=i(f),p=n(127),v=i(p),g=n(15),y=i(g),m=n(2),b=i(m),E=function(e){function t(e){r(this,t),s(Object.getPrototypeOf(t.prototype),"constructor",this).call(this,e),this.currentTime=0,this.volume=100,this.options=e,this.playback=e.playback,this.settings=b["default"].extend({},this.playback.settings),this.isReady=!1,this.mediaControlDisabled=!1,this.plugins=[this.playback],this.bindEvents()}return a(t,e),o(t,[{key:"name",get:function(){return"Container"}},{key:"attributes",get:function(){return{"class":"container","data-container":""}}},{key:"events",get:function(){return{click:"clicked",dblclick:"dblClicked",doubleTap:"dblClicked",contextmenu:"onContextMenu",mouseenter:"mouseEnter",mouseleave:"mouseLeave"}}}]),o(t,[{key:"bindEvents",value:function(){this.listenTo(this.playback,u["default"].PLAYBACK_PROGRESS,this.progress),this.listenTo(this.playback,u["default"].PLAYBACK_TIMEUPDATE,this.timeUpdated),this.listenTo(this.playback,u["default"].PLAYBACK_READY,this.ready),this.listenTo(this.playback,u["default"].PLAYBACK_BUFFERING,this.buffering),this.listenTo(this.playback,u["default"].PLAYBACK_BUFFERFULL,this.bufferfull),this.listenTo(this.playback,u["default"].PLAYBACK_SETTINGSUPDATE,this.settingsUpdate),this.listenTo(this.playback,u["default"].PLAYBACK_LOADEDMETADATA,this.loadedMetadata),this.listenTo(this.playback,u["default"].PLAYBACK_HIGHDEFINITIONUPDATE,this.highDefinitionUpdate),this.listenTo(this.playback,u["default"].PLAYBACK_BITRATE,this.updateBitrate),this.listenTo(this.playback,u["default"].PLAYBACK_PLAYBACKSTATE,this.playbackStateChanged),this.listenTo(this.playback,u["default"].PLAYBACK_DVR,this.playbackDvrStateChanged),this.listenTo(this.playback,u["default"].PLAYBACK_MEDIACONTROL_DISABLE,this.disableMediaControl),this.listenTo(this.playback,u["default"].PLAYBACK_MEDIACONTROL_ENABLE,this.enableMediaControl),this.listenTo(this.playback,u["default"].PLAYBACK_ENDED,this.ended),this.listenTo(this.playback,u["default"].PLAYBACK_PLAY,this.playing),this.listenTo(this.playback,u["default"].PLAYBACK_PAUSE,this.paused),this.listenTo(this.playback,u["default"].PLAYBACK_STOP,this.stopped),this.listenTo(this.playback,u["default"].PLAYBACK_ERROR,this.error)}},{key:"playbackStateChanged",value:function(e){this.trigger(u["default"].CONTAINER_PLAYBACKSTATE,e)}},{key:"playbackDvrStateChanged",value:function(e){this.settings=this.playback.settings,this.dvrInUse=e,this.trigger(u["default"].CONTAINER_PLAYBACKDVRSTATECHANGED,e)}},{key:"updateBitrate",value:function(e){this.trigger(u["default"].CONTAINER_BITRATE,e)}},{key:"statsReport",value:function(e){this.trigger(u["default"].CONTAINER_STATS_REPORT,e)}},{key:"getPlaybackType",value:function(){return this.playback.getPlaybackType()}},{key:"isDvrEnabled",value:function(){return!!this.playback.dvrEnabled}},{key:"isDvrInUse",value:function(){return!!this.dvrInUse}},{key:"destroy",value:function(){this.trigger(u["default"].CONTAINER_DESTROYED,this,this.name),this.stopListening(),this.playback.destroy(),this.plugins.forEach(function(e){return e.destroy()}),this.$el.remove()}},{key:"setStyle",value:function(e){this.$el.css(e)}},{key:"animate",value:function(e,t){return this.$el.animate(e,t).promise()}},{key:"ready",value:function(){this.isReady=!0,this.trigger(u["default"].CONTAINER_READY,this.name)}},{key:"isPlaying",value:function(){return this.playback.isPlaying()}},{key:"getCurrentTime",value:function(){return this.currentTime}},{key:"getDuration",value:function(){return this.playback.getDuration()}},{key:"error",value:function(e){this.trigger(u["default"].CONTAINER_ERROR,{error:e,container:this},this.name)}},{key:"loadedMetadata",value:function(e){this.trigger(u["default"].CONTAINER_LOADEDMETADATA,e)}},{key:"timeUpdated",value:function(e){this.currentTime=e.current,this.trigger(u["default"].CONTAINER_TIMEUPDATE,e,this.name)}},{key:"progress",value:function(e){this.trigger(u["default"].CONTAINER_PROGRESS,e,this.name)}},{key:"playing",value:function(){this.trigger(u["default"].CONTAINER_PLAY,this.name)}},{key:"paused",value:function(){this.trigger(u["default"].CONTAINER_PAUSE,this.name)}},{key:"play",value:function(){this.playback.play()}},{key:"stop",value:function(){this.playback.stop(),this.currentTime=0}},{key:"pause",value:function(){this.playback.pause()}},{key:"ended",value:function(){this.trigger(u["default"].CONTAINER_ENDED,this,this.name),this.currentTime=0}},{key:"stopped",value:function(){this.trigger(u["default"].CONTAINER_STOP)}},{key:"clicked",value:function(){this.trigger(u["default"].CONTAINER_CLICK,this,this.name)}},{key:"dblClicked",value:function(){this.trigger(u["default"].CONTAINER_DBLCLICK,this,this.name)}},{key:"onContextMenu",value:function(){this.trigger(u["default"].CONTAINER_CONTEXTMENU,this,this.name)}},{key:"seek",value:function(e){this.trigger(u["default"].CONTAINER_SEEK,e,this.name),this.playback.seek(e)}},{key:"seekPercentage",value:function(e){var t=this.getDuration();if(e>0&&100>=e){var n=t*(e/100);this.seek(n)}}},{key:"setVolume",value:function(e){this.volume=parseInt(e,10),this.trigger(u["default"].CONTAINER_VOLUME,e,this.name),this.playback.volume(e)}},{key:"fullscreen",value:function(){this.trigger(u["default"].CONTAINER_FULLSCREEN,this.name)}},{key:"buffering",value:function(){this.trigger(u["default"].CONTAINER_STATE_BUFFERING,this.name)}},{key:"bufferfull",value:function(){this.trigger(u["default"].CONTAINER_STATE_BUFFERFULL,this.name)}},{key:"addPlugin",value:function(e){this.plugins.push(e)}},{key:"hasPlugin",value:function(e){return!!this.getPlugin(e)}},{key:"getPlugin",value:function(e){return(0,y["default"])(this.plugins,function(t){return t.name===e})}},{key:"mouseEnter",value:function(){this.trigger(u["default"].CONTAINER_MOUSE_ENTER)}},{key:"mouseLeave",value:function(){this.trigger(u["default"].CONTAINER_MOUSE_LEAVE)}},{key:"settingsUpdate",value:function(){this.settings=this.playback.settings,this.trigger(u["default"].CONTAINER_SETTINGSUPDATE)}},{key:"highDefinitionUpdate",value:function(e){this.trigger(u["default"].CONTAINER_HIGHDEFINITIONUPDATE,e)}},{key:"isHighDefinitionInUse",value:function(){return this.playback.isHighDefinitionInUse()}},{key:"disableMediaControl",value:function(){this.mediaControlDisabled=!0,this.trigger(u["default"].CONTAINER_MEDIACONTROL_DISABLE)}},{key:"enableMediaControl",value:function(){this.mediaControlDisabled=!1,this.trigger(u["default"].CONTAINER_MEDIACONTROL_ENABLE)}},{key:"configure",value:function(e){this.options=b["default"].extend(this.options,e),this.trigger(u["default"].CONTAINER_OPTIONS_CHANGE)}},{key:"render",value:function(){var e=h["default"].getStyleFor(v["default"]);return this.$el.append(e),this.$el.append(this.playback.render().el),this}}]),t}(d["default"]);t["default"]=E,e.exports=t["default"]},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{"default":e}}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),s=function(e,t,n){for(var i=!0;i;){var r=e,a=t,o=n;i=!1,null===r&&(r=Function.prototype);var s=Object.getOwnPropertyDescriptor(r,a);if(void 0!==s){if("value"in s)return s.value;var l=s.get;if(void 0===l)return;return l.call(o)}var u=Object.getPrototypeOf(r);if(null===u)return;e=u,t=a,n=o,i=!0,s=u=void 0}},l=n(12),u=i(l),c=n(1),d=i(c),f=n(33),h=i(f),p=n(2),v=i(p),g=n(15),y=i(g),m=function(e){function t(e,n){r(this,t),s(Object.getPrototypeOf(t.prototype),"constructor",this).call(this,e),this.options=e,this.loader=n}return a(t,e),o(t,[{key:"createContainers",value:function(){var e=this;return v["default"].Deferred(function(t){t.resolve(e.options.sources.map(function(t){return e.createContainer(t)}))})}},{key:"findPlaybackPlugin",value:function(e){var t=this;return(0,y["default"])(this.loader.playbackPlugins,function(n){return n.canPlay(e.toString(),t.options.mimeType)})}},{key:"createContainer",value:function(e){e.match(/^\/\//)&&(e=window.location.protocol+e);var t=v["default"].extend({},this.options,{src:e}),n=this.findPlaybackPlugin(e),i=new n(t);t=v["default"].extend(t,{playback:i});var r=new h["default"](t),a=v["default"].Deferred();return a.promise(r),this.addContainerPlugins(r,e),this.listenToOnce(r,d["default"].CONTAINER_READY,function(){return a.resolve(r)}),r}},{key:"addContainerPlugins",value:function(e,t){this.loader.containerPlugins.forEach(function(t){e.addPlugin(new t(e))})}}]),t}(u["default"]);t["default"]=m,e.exports=t["default"]},function(e,t,n){"use strict";e.exports=n(90)},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{"default":e}}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),s=function(e,t,n){for(var i=!0;i;){var r=e,a=t,o=n;i=!1,null===r&&(r=Function.prototype);var s=Object.getOwnPropertyDescriptor(r,a);if(void 0!==s){if("value"in s)return s.value;var l=s.get;if(void 0===l)return;return l.call(o)}var u=Object.getPrototypeOf(r);if(null===u)return;e=u,t=a,n=o,i=!0,s=u=void 0}},l=n(3),u=n(1),c=i(u),d=n(4),f=i(d),h=n(13),p=i(h),v=n(11),g=i(v),y=n(91),m=i(y),b=n(35),E=i(b),k=n(14),A=i(k),_=n(19),T=i(_),L=n(15),O=i(L),S=n(2),w=i(S),P=n(128),C=i(P),R=function(e){function t(e){var n=this;r(this,t),s(Object.getPrototypeOf(t.prototype),"constructor",this).call(this,e),this.playerInfo=T["default"].getInstance(e.playerId),this.options=e,this.plugins=[],this.containers=[],this.createContainers(e),(0,w["default"])(document).bind("fullscreenchange",function(){return n.exit()}),(0,w["default"])(document).bind("MSFullscreenChange",function(){return n.exit()}),(0,w["default"])(document).bind("mozfullscreenchange",function(){return n.exit()})}return a(t,e),o(t,[{key:"events",get:function(){return{webkitfullscreenchange:"exit",mousemove:"showMediaControl",mouseleave:"hideMediaControl"}}},{key:"attributes",get:function(){return{"data-player":"",tabindex:9999}}}]),o(t,[{key:"createContainers",value:function(e){var t=this;this.defer=w["default"].Deferred(),this.defer.promise(this),this.containerFactory=new m["default"](e,e.loader),this.containerFactory.createContainers().then(function(e){return t.setupContainers(e)}).then(function(e){return t.resolveOnContainersReady(e)})}},{key:"updateSize",value:function(){l.Fullscreen.isFullscreen()?this.setFullscreen():this.setPlayerSize(),A["default"].trigger(this.options.playerId+":"+c["default"].PLAYER_RESIZE,this.playerInfo.currentSize)}},{key:"setFullscreen",value:function(){g["default"].isiOS||(this.$el.addClass("fullscreen"),this.$el.removeAttr("style"),this.playerInfo.previousSize={width:this.options.width,height:this.options.height},this.playerInfo.currentSize={width:(0,w["default"])(window).width(),height:(0,w["default"])(window).height()})}},{key:"setPlayerSize",value:function(){this.$el.removeClass("fullscreen"),this.playerInfo.currentSize=this.playerInfo.previousSize,this.playerInfo.previousSize={width:(0,w["default"])(window).width(),height:(0,w["default"])(window).height()},this.resize(this.playerInfo.currentSize)}},{key:"resize",value:function(e){(0,l.isNumber)(e.height)||(0,l.isNumber)(e.width)?(this.el.style.height=e.height+"px",this.el.style.width=e.width+"px"):(this.el.style.height=""+e.height,this.el.style.width=""+e.width),this.playerInfo.previousSize={width:this.options.width,height:this.options.height},this.options.width=e.width,this.options.height=e.height,this.playerInfo.currentSize=e,A["default"].trigger(this.options.playerId+":"+c["default"].PLAYER_RESIZE,this.playerInfo.currentSize)}},{key:"enableResizeObserver",value:function(){var e=this,t=function(){e.resizeObserverInterval&&clearInterval(e.resizeObserverInterval),(e.playerInfo.computedSize.width!=e.el.clientWidth||e.playerInfo.computedSize.height!=e.el.clientHeight)&&(e.playerInfo.computedSize={width:e.el.clientWidth,height:e.el.clientHeight},A["default"].trigger(e.options.playerId+":"+c["default"].PLAYER_RESIZE,e.playerInfo.computedSize));
  };this.resizeObserverInterval=setInterval(t,500)}},{key:"disableResizeObserver",value:function(){this.resizeObserverInterval&&clearInterval(this.resizeObserverInterval)}},{key:"resolveOnContainersReady",value:function(e){var t=this;w["default"].when.apply(w["default"],e).done(function(){t.defer.resolve(t),t.trigger(c["default"].CORE_READY)})}},{key:"addPlugin",value:function(e){this.plugins.push(e)}},{key:"hasPlugin",value:function(e){return!!this.getPlugin(e)}},{key:"getPlugin",value:function(e){return(0,O["default"])(this.plugins,function(t){return t.name===e})}},{key:"load",value:function(e,t){var n=this;this.options.mimeType=t,e=e&&e.constructor===Array?e:[e.toString()],this.containers.forEach(function(e){return e.destroy()}),this.containerFactory.options=w["default"].extend(this.options,{sources:e}),this.containerFactory.createContainers().then(function(e){n.setupContainers(e)})}},{key:"destroy",value:function(){this.disableResizeObserver(),this.containers.forEach(function(e){return e.destroy()}),this.plugins.forEach(function(e){return e.destroy()}),this.$el.remove(),this.mediaControl.destroy(),(0,w["default"])(document).unbind("fullscreenchange"),(0,w["default"])(document).unbind("MSFullscreenChange"),(0,w["default"])(document).unbind("mozfullscreenchange")}},{key:"exit",value:function(){this.updateSize(),this.mediaControl.show()}},{key:"setMediaControlContainer",value:function(e){this.mediaControl.setContainer(e),this.mediaControl.render()}},{key:"disableMediaControl",value:function(){this.mediaControl.disable(),this.$el.removeClass("nocursor")}},{key:"enableMediaControl",value:function(){this.mediaControl.enable()}},{key:"removeContainer",value:function(e){this.stopListening(e),this.containers=this.containers.filter(function(t){return t!==e})}},{key:"appendContainer",value:function(e){this.listenTo(e,c["default"].CONTAINER_DESTROYED,this.removeContainer),this.el.appendChild(e.render().el),this.containers.push(e)}},{key:"setupContainers",value:function(e){return e.map(this.appendContainer.bind(this)),this.setupMediaControl(this.getCurrentContainer()),this.render(),this.$el.appendTo(this.options.parentElement),e}},{key:"createContainer",value:function(e,t){var n=this.containerFactory.createContainer(e,t);return this.appendContainer(n),n}},{key:"setupMediaControl",value:function(e){this.mediaControl?this.mediaControl.setContainer(e):(this.mediaControl=this.createMediaControl(w["default"].extend({container:e,focusElement:this.el},this.options)),this.listenTo(this.mediaControl,c["default"].MEDIACONTROL_FULLSCREEN,this.toggleFullscreen),this.listenTo(this.mediaControl,c["default"].MEDIACONTROL_SHOW,this.onMediaControlShow.bind(this,!0)),this.listenTo(this.mediaControl,c["default"].MEDIACONTROL_HIDE,this.onMediaControlShow.bind(this,!1)))}},{key:"createMediaControl",value:function(e){return e.mediacontrol&&e.mediacontrol.external?new e.mediacontrol.external(e):new E["default"](e)}},{key:"getCurrentContainer",value:function(){return this.mediacontrol?this.mediaControl.container:this.containers[0]}},{key:"getCurrentPlayback",value:function(){return this.getCurrentContainer().playback}},{key:"getPlaybackType",value:function(){return this.getCurrentContainer().getPlaybackType()}},{key:"toggleFullscreen",value:function(){l.Fullscreen.isFullscreen()?(l.Fullscreen.cancelFullscreen(),g["default"].isiOS||this.$el.removeClass("fullscreen nocursor")):(l.Fullscreen.requestFullscreen(this.el),g["default"].isiOS||this.$el.addClass("fullscreen")),this.mediaControl.show()}},{key:"showMediaControl",value:function(e){this.mediaControl.show(e)}},{key:"hideMediaControl",value:function(e){this.mediaControl.hide(this.options.hideMediaControlDelay)}},{key:"onMediaControlShow",value:function(e){this.getCurrentContainer().trigger(e?c["default"].CONTAINER_MEDIACONTROL_SHOW:c["default"].CONTAINER_MEDIACONTROL_HIDE),e?this.$el.removeClass("nocursor"):l.Fullscreen.isFullscreen()&&this.$el.addClass("nocursor")}},{key:"configure",value:function(e){var t=this;this.options=w["default"].extend(this.options,e);var n=e.source||e.sources;n?this.load(n):(this.trigger(c["default"].CORE_OPTIONS_CHANGE),this.containers.forEach(function(e){e.configure(t.options)}))}},{key:"render",value:function(){var e=f["default"].getStyleFor(C["default"]);this.$el.append(e),this.$el.append(this.mediaControl.render().el),this.options.width=this.options.width||this.$el.width(),this.options.height=this.options.height||this.$el.height();var t={width:this.options.width,height:this.options.height};return this.playerInfo.previousSize=this.playerInfo.currentSize=this.playerInfo.computedSize=t,this.updateSize(),this.previousSize={width:this.$el.width(),height:this.$el.height()},this.enableResizeObserver(),this}}]),t}(p["default"]);t["default"]=R,e.exports=t["default"]},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{"default":e}}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),s=function(e,t,n){for(var i=!0;i;){var r=e,a=t,o=n;i=!1,null===r&&(r=Function.prototype);var s=Object.getOwnPropertyDescriptor(r,a);if(void 0!==s){if("value"in s)return s.value;var l=s.get;if(void 0===l)return;return l.call(o)}var u=Object.getPrototypeOf(r);if(null===u)return;e=u,t=a,n=o,i=!0,s=u=void 0}},l=n(12),u=i(l),c=n(34),d=i(c),f=function(e){function t(e,n){r(this,t),s(Object.getPrototypeOf(t.prototype),"constructor",this).call(this),this.player=e,this.options=e.options,this.loader=n,this.options.loader=this.loader}return a(t,e),o(t,[{key:"create",value:function(){return this.core=new d["default"](this.options),this.core.then(this.addCorePlugins.bind(this)),this.core}},{key:"addCorePlugins",value:function(){var e=this;return this.loader.corePlugins.forEach(function(t){var n=new t(e.core);e.core.addPlugin(n),e.setupExternalInterface(n)}),this.core}},{key:"setupExternalInterface",value:function(e){var t=e.getExternalInterface();for(var n in t)this.player[n]=t[n].bind(e)}}]),t}(u["default"]);t["default"]=f,e.exports=t["default"]},function(e,t,n){"use strict";e.exports=n(93)},function(e,t,n){"use strict";e.exports=n(96)},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{"default":e}}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),s=function(e,t,n){for(var i=!0;i;){var r=e,a=t,o=n;i=!1,null===r&&(r=Function.prototype);var s=Object.getOwnPropertyDescriptor(r,a);if(void 0!==s){if("value"in s)return s.value;var l=s.get;if(void 0===l)return;return l.call(o)}var u=Object.getPrototypeOf(r);if(null===u)return;e=u,t=a,n=o,i=!0,s=u=void 0}},l=n(12),u=i(l),c=n(19),d=i(c),f=n(87),h=i(f),p=n(20),v=i(p),g=n(36),y=i(g),m=n(39),b=i(m),E=n(37),k=i(E),A=n(38),_=i(A),T=n(40),L=i(T),O=n(109),S=i(O),w=n(121),P=i(w),C=n(123),R=i(C),D=n(125),I=i(D),x=n(42),N=i(x),M=n(118),F=i(M),B=n(112),j=i(B),U=n(114),G=i(U),Y=n(116),V=i(Y),K=function(e){function t(e,n){r(this,t),s(Object.getPrototypeOf(t.prototype),"constructor",this).call(this),this.playerId=n,this.playbackPlugins=[v["default"],b["default"],y["default"],_["default"],k["default"],L["default"],S["default"]],this.containerPlugins=[P["default"],I["default"],N["default"],R["default"],F["default"],j["default"]],this.corePlugins=[G["default"],V["default"]],e&&(this.validateExternalPluginsType(e),this.addExternalPlugins(e))}return a(t,e),o(t,[{key:"addExternalPlugins",value:function(e){var t=function(e){return e.prototype.name};e.playback&&(this.playbackPlugins=(0,h["default"])(e.playback.concat(this.playbackPlugins),t)),e.container&&(this.containerPlugins=(0,h["default"])(e.container.concat(this.containerPlugins),t)),e.core&&(this.corePlugins=(0,h["default"])(e.core.concat(this.corePlugins),t)),d["default"].getInstance(this.playerId).playbackPlugins=this.playbackPlugins}},{key:"validateExternalPluginsType",value:function(e){var t=["playback","container","core"];t.forEach(function(t){(e[t]||[]).forEach(function(e){var n="external "+e.type+" plugin on "+t+" array";if(e.type!==t)throw new ReferenceError(n)})})}}]),t}(u["default"]);t["default"]=K,e.exports=t["default"]},function(e,t,n){(function(i){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var s=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),l=function(e,t,n){for(var i=!0;i;){var r=e,a=t,o=n;i=!1,null===r&&(r=Function.prototype);var s=Object.getOwnPropertyDescriptor(r,a);if(void 0!==s){if("value"in s)return s.value;var l=s.get;if(void 0===l)return;return l.call(o)}var u=Object.getPrototypeOf(r);if(null===u)return;e=u,t=a,n=o,i=!0,s=u=void 0}},u=n(3),c=n(1),d=r(c),f=n(31),h=r(f),p=n(4),v=r(p),g=n(13),y=r(g),m=n(11),b=r(m),E=n(99),k=r(E),A=n(14),_=r(A),T=n(5),L=r(T),O=n(9),S=r(O),w=n(2),P=r(w),C=n(129),R=r(C),D=n(139),I=r(D),x=function(e){function t(e){var n=this;a(this,t),l(Object.getPrototypeOf(t.prototype),"constructor",this).call(this,e),this.options=e,this.mute=this.options.mute,this.persistConfig=this.options.persistConfig,this.container=e.container,this.seekTime=new k["default"](this),this.currentPositionValue=null,this.currentDurationValue=null;var i=this.persistConfig?u.Config.restore("volume"):100;this.setVolume(this.mute?0:i),this.keepVisible=!1,this.volumeBarClickDown=!1,this.addEventListeners(),this.settings={left:["play","stop","pause"],right:["volume"],"default":["position","seekbar","duration"]},P["default"].isEmptyObject(this.container.settings)||(this.settings=P["default"].extend({},this.container.settings)),this.disabled=!1,(this.container.mediaControlDisabled||this.options.chromeless)&&this.disable(),this.stopDragHandler=function(e){return n.stopDrag(e)},this.updateDragHandler=function(e){return n.updateDrag(e)},(0,P["default"])(document).bind("mouseup",this.stopDragHandler),(0,P["default"])(document).bind("mousemove",this.updateDragHandler)}return o(t,e),s(t,[{key:"name",get:function(){return"MediaControl"}},{key:"attributes",get:function(){return{"class":"media-control","data-media-control":""}}},{key:"events",get:function(){return{"click [data-play]":"play","click [data-pause]":"pause","click [data-playpause]":"togglePlayPause","click [data-stop]":"stop","click [data-playstop]":"togglePlayStop","click [data-fullscreen]":"toggleFullscreen","click .bar-container[data-seekbar]":"seek","click .bar-container[data-volume]":"volume","click .drawer-icon[data-volume]":"toggleMute","mouseenter .drawer-container[data-volume]":"showVolumeBar","mouseleave .drawer-container[data-volume]":"hideVolumeBar","mousedown .segmented-bar-element[data-volume]":"mousedownOnVolumeBar","mouseleave .media-control-layer":"mouseleaveOnVolumeBar","mousemove .segmented-bar-element[data-volume]":"mousemoveOnVolumeBar","mouseup .segmented-bar-element[data-volume]":"mouseupOnVolumeBar","mousedown .bar-scrubber[data-volume]":"startVolumeDrag","mousedown .bar-scrubber[data-seekbar]":"startSeekDrag","mousemove .bar-container[data-seekbar]":"mousemoveOnSeekBar","mouseleave .bar-container[data-seekbar]":"mouseleaveOnSeekBar","mouseenter .media-control-layer[data-controls]":"setUserKeepVisible","mouseleave .media-control-layer[data-controls]":"resetUserKeepVisible"}}},{key:"template",get:function(){return(0,L["default"])(I["default"])}}]),s(t,[{key:"addEventListeners",value:function(){_["default"].on(this.options.playerId+":"+d["default"].PLAYER_RESIZE,this.playerResize,this),this.listenTo(this.container,d["default"].CONTAINER_PLAY,this.changeTogglePlay),this.listenTo(this.container,d["default"].CONTAINER_PAUSE,this.changeTogglePlay),this.listenTo(this.container,d["default"].CONTAINER_DBLCLICK,this.toggleFullscreen),this.listenTo(this.container,d["default"].CONTAINER_TIMEUPDATE,this.onTimeUpdate),this.listenTo(this.container,d["default"].CONTAINER_PROGRESS,this.updateProgressBar),this.listenTo(this.container,d["default"].CONTAINER_SETTINGSUPDATE,this.settingsUpdate),this.listenTo(this.container,d["default"].CONTAINER_PLAYBACKDVRSTATECHANGED,this.settingsUpdate),this.listenTo(this.container,d["default"].CONTAINER_HIGHDEFINITIONUPDATE,this.highDefinitionUpdate),this.listenTo(this.container,d["default"].CONTAINER_MEDIACONTROL_DISABLE,this.disable),this.listenTo(this.container,d["default"].CONTAINER_MEDIACONTROL_ENABLE,this.enable),this.listenTo(this.container,d["default"].CONTAINER_ENDED,this.ended),this.listenTo(this.container,d["default"].CONTAINER_VOLUME,this.onVolumeChanged)}},{key:"disable",value:function(){this.disabled=!0,this.hide(),this.$el.hide()}},{key:"enable",value:function(){this.options.chromeless||(this.disabled=!1,this.show())}},{key:"play",value:function(){this.container.play()}},{key:"pause",value:function(){this.container.pause()}},{key:"stop",value:function(){this.container.stop()}},{key:"onVolumeChanged",value:function(e){this.mute=0===this.currentVolume,this.setVolumeLevel(e),this.persistConfig&&u.Config.persist("volume",e)}},{key:"changeTogglePlay",value:function(){this.container.isPlaying()?(this.$playPauseToggle.removeClass("paused").addClass("playing"),this.$playStopToggle.removeClass("stopped").addClass("playing"),this.trigger(d["default"].MEDIACONTROL_PLAYING)):(this.$playPauseToggle.removeClass("playing").addClass("paused"),this.$playStopToggle.removeClass("playing").addClass("stopped"),this.trigger(d["default"].MEDIACONTROL_NOTPLAYING))}},{key:"mousemoveOnSeekBar",value:function(e){if(this.container.settings.seekEnabled){var t=e.pageX-this.$seekBarContainer.offset().left-this.$seekBarHover.width()/2;this.$seekBarHover.css({left:t})}this.trigger(d["default"].MEDIACONTROL_MOUSEMOVE_SEEKBAR,e)}},{key:"mouseleaveOnSeekBar",value:function(e){this.trigger(d["default"].MEDIACONTROL_MOUSELEAVE_SEEKBAR,e)}},{key:"mousemoveOnVolumeBar",value:function(e){this.volumeBarClickDown&&this.volume(e)}},{key:"mousedownOnVolumeBar",value:function(){this.$el.addClass("dragging"),this.volumeBarClickDown=!0}},{key:"mouseupOnVolumeBar",value:function(){this.$el.removeClass("dragging"),this.volumeBarClickDown=!1}},{key:"mouseleaveOnVolumeBar",value:function(e){var t=this.$volumeBarContainer.offset(),n=e.pageX<t.left,i=e.pageX>t.left+t.width,r=n||i,a=e.pageY<t.top,o=e.pageY>t.top+t.height,s=a||o;(r||s)&&this.mouseupOnVolumeBar()}},{key:"playerResize",value:function(e){u.Fullscreen.isFullscreen()?this.$fullscreenToggle.addClass("shrink"):this.$fullscreenToggle.removeClass("shrink"),this.$el.removeClass("w320"),(e.width<=320||this.options.hideVolumeBar)&&this.$el.addClass("w320")}},{key:"togglePlayPause",value:function(){return this.container.isPlaying()?this.container.pause():this.container.play(),!1}},{key:"togglePlayStop",value:function(){this.container.isPlaying()?this.container.stop():this.container.play()}},{key:"startSeekDrag",value:function(e){this.container.settings.seekEnabled&&(this.draggingSeekBar=!0,this.$el.addClass("dragging"),this.$seekBarLoaded.addClass("media-control-notransition"),this.$seekBarPosition.addClass("media-control-notransition"),this.$seekBarScrubber.addClass("media-control-notransition"),e&&e.preventDefault())}},{key:"startVolumeDrag",value:function(e){this.draggingVolumeBar=!0,this.$el.addClass("dragging"),e&&e.preventDefault()}},{key:"stopDrag",value:function(e){this.draggingSeekBar&&this.seek(e),this.$el.removeClass("dragging"),this.$seekBarLoaded.removeClass("media-control-notransition"),this.$seekBarPosition.removeClass("media-control-notransition"),this.$seekBarScrubber.removeClass("media-control-notransition dragging"),this.draggingSeekBar=!1,this.draggingVolumeBar=!1}},{key:"updateDrag",value:function(e){if(this.draggingSeekBar){e.preventDefault();var t=e.pageX-this.$seekBarContainer.offset().left,n=t/this.$seekBarContainer.width()*100;n=Math.min(100,Math.max(n,0)),this.setSeekPercentage(n)}else this.draggingVolumeBar&&(e.preventDefault(),this.volume(e))}},{key:"volume",value:function(e){var t=e.pageX-this.$volumeBarContainer.offset().left,n=t/this.$volumeBarContainer.width()*100;this.setVolume(n)}},{key:"toggleMute",value:function(){this.mute?(this.currentVolume<=0&&(this.currentVolume=100),this.setVolume(this.currentVolume)):this.setVolume(0)}},{key:"setVolume",value:function(e){this.currentVolume=Math.min(100,Math.max(e,0)),this.container.setVolume(this.currentVolume),this.onVolumeChanged(this.currentVolume)}},{key:"toggleFullscreen",value:function(){this.trigger(d["default"].MEDIACONTROL_FULLSCREEN,this.name),this.container.fullscreen(),this.resetUserKeepVisible()}},{key:"setContainer",value:function(e){this.stopListening(this.container),_["default"].off(this.options.playerId+":"+d["default"].PLAYER_RESIZE,this.playerResize,this),this.container=e,this.changeTogglePlay(),this.addEventListeners(),this.settingsUpdate(),this.container.trigger(d["default"].CONTAINER_PLAYBACKDVRSTATECHANGED,this.container.isDvrInUse()),this.setVolume(this.currentVolume),this.container.mediaControlDisabled&&this.disable(),this.trigger(d["default"].MEDIACONTROL_CONTAINERCHANGED)}},{key:"showVolumeBar",value:function(){this.hideVolumeId&&clearTimeout(this.hideVolumeId),this.$volumeBarContainer.removeClass("volume-bar-hide")}},{key:"hideVolumeBar",value:function(){var e=this,t=arguments.length<=0||void 0===arguments[0]?400:arguments[0];this.$volumeBarContainer&&(this.draggingVolumeBar?this.hideVolumeId=setTimeout(function(){return e.hideVolumeBar()},t):(this.hideVolumeId&&clearTimeout(this.hideVolumeId),this.hideVolumeId=setTimeout(function(){return e.$volumeBarContainer.addClass("volume-bar-hide")},t)))}},{key:"ended",value:function(){this.changeTogglePlay()}},{key:"updateProgressBar",value:function(e){var t=e.start/e.total*100,n=e.current/e.total*100;this.$seekBarLoaded.css({left:t+"%",width:n-t+"%"})}},{key:"onTimeUpdate",value:function(e){if(!this.draggingSeekBar){var t=e.current<0?e.total:e.current;this.currentPositionValue=t,this.currentDurationValue=e.total,this.renderSeekBar()}}},{key:"renderSeekBar",value:function(){if(null!==this.currentPositionValue&&null!==this.currentDurationValue){this.currentSeekBarPercentage=100,(this.container.getPlaybackType()!==S["default"].LIVE||this.container.isDvrInUse())&&(this.currentSeekBarPercentage=this.currentPositionValue/this.currentDurationValue*100),this.setSeekPercentage(this.currentSeekBarPercentage);var e=(0,u.formatTime)(this.currentPositionValue),t=(0,u.formatTime)(this.currentDurationValue);e!==this.displayedPosition&&(this.$position.text(e),this.displayedPosition=e),t!==this.displayedDuration&&(this.$duration.text(t),this.displayedDuration=t)}}},{key:"seek",value:function(e){if(this.container.settings.seekEnabled){var t=e.pageX-this.$seekBarContainer.offset().left,n=t/this.$seekBarContainer.width()*100;return n=Math.min(100,Math.max(n,0)),this.container.seekPercentage(n),this.setSeekPercentage(n),!1}}},{key:"setKeepVisible",value:function(){this.keepVisible=!0}},{key:"remove",value:function(){this.seekTime.remove(),l(Object.getPrototypeOf(t.prototype),"remove",this).call(this)}},{key:"resetKeepVisible",value:function(){this.keepVisible=!1}},{key:"setUserKeepVisible",value:function(){this.userKeepVisible=!0}},{key:"resetUserKeepVisible",value:function(){this.userKeepVisible=!1}},{key:"isVisible",value:function(){return!this.$el.hasClass("media-control-hide")}},{key:"show",value:function(e){var t=this;if(!this.disabled){var n=2e3;(!e||e.clientX!==this.lastMouseX&&e.clientY!==this.lastMouseY||navigator.userAgent.match(/firefox/i))&&(clearTimeout(this.hideId),this.$el.show(),this.trigger(d["default"].MEDIACONTROL_SHOW,this.name),this.$el.removeClass("media-control-hide"),this.hideId=setTimeout(function(){return t.hide()},n),e&&(this.lastMouseX=e.clientX,this.lastMouseY=e.clientY))}}},{key:"hide",value:function(){var e=this,t=arguments.length<=0||void 0===arguments[0]?0:arguments[0],n=t||2e3;clearTimeout(this.hideId),this.isVisible()&&this.options.hideMediaControl!==!1&&(t||this.userKeepVisible||this.keepVisible||this.draggingSeekBar||this.draggingVolumeBar?this.hideId=setTimeout(function(){return e.hide()},n):(this.trigger(d["default"].MEDIACONTROL_HIDE,this.name),this.$el.addClass("media-control-hide"),this.hideVolumeBar(0)))}},{key:"settingsUpdate",value:function(){var e=JSON.stringify(this.settings)!==JSON.stringify(this.container.settings);this.container.getPlaybackType()&&e&&(this.settings=P["default"].extend({},this.container.settings),this.render())}},{key:"highDefinitionUpdate",value:function(e){var t=e?"addClass":"removeClass";this.$el.find("button[data-hd-indicator]")[t]("enabled")}},{key:"createCachedElements",value:function(){var e=this.$el.find(".media-control-layer");this.$duration=e.find(".media-control-indicator[data-duration]"),this.$fullscreenToggle=e.find("button.media-control-button[data-fullscreen]"),this.$playPauseToggle=e.find("button.media-control-button[data-playpause]"),this.$playStopToggle=e.find("button.media-control-button[data-playstop]"),this.$position=e.find(".media-control-indicator[data-position]"),this.$seekBarContainer=e.find(".bar-container[data-seekbar]"),this.$seekBarHover=e.find(".bar-hover[data-seekbar]"),this.$seekBarLoaded=e.find(".bar-fill-1[data-seekbar]"),this.$seekBarPosition=e.find(".bar-fill-2[data-seekbar]"),this.$seekBarScrubber=e.find(".bar-scrubber[data-seekbar]"),this.$volumeBarContainer=e.find(".bar-container[data-volume]"),this.$volumeContainer=e.find(".drawer-container[data-volume]"),this.$volumeIcon=e.find(".drawer-icon[data-volume]"),this.resetIndicators()}},{key:"resetIndicators",value:function(){this.displayedPosition=this.$position.text(),this.displayedDuration=this.$duration.text()}},{key:"setVolumeLevel",value:function(e){var t=this;if(this.container.isReady&&this.$volumeBarContainer){this.$volumeBarContainer.find(".segmented-bar-element").removeClass("fill");var n=Math.ceil(e/10);this.$volumeBarContainer.find(".segmented-bar-element").slice(0,n).addClass("fill"),e>0?this.$volumeIcon.removeClass("muted"):this.$volumeIcon.addClass("muted")}else this.listenToOnce(this.container,d["default"].CONTAINER_READY,function(){return t.setVolumeLevel(e)})}},{key:"setSeekPercentage",value:function(e){e=Math.max(Math.min(e,100),0),this.displayedSeekBarPercentage!==e&&(this.displayedSeekBarPercentage=e,this.$seekBarPosition.removeClass("media-control-notransition"),this.$seekBarScrubber.removeClass("media-control-notransition"),this.$seekBarPosition.css({width:e+"%"}),this.$seekBarScrubber.css({left:e+"%"}))}},{key:"seekRelative",value:function(e){if(this.container.settings.seekEnabled){var t=this.container.getCurrentTime(),n=this.container.getDuration(),i=Math.min(Math.max(t+e,0),n);i=Math.min(100*i/n,100),this.container.seekPercentage(i)}}},{key:"bindKeyEvents",value:function(){var e=this;this.kibo&&this.unbindKeyEvents(),this.kibo=new h["default"](this.options.focusElement),this.kibo.down(["space"],function(){return e.togglePlayPause()}),this.kibo.down(["left"],function(){return e.seekRelative(-15)}),this.kibo.down(["right"],function(){return e.seekRelative(15)});var t=[1,2,3,4,5,6,7,8,9,0];t.forEach(function(t){e.kibo.down(t.toString(),function(){return e.container.settings.seekEnabled&&e.container.seekPercentage(10*t)})})}},{key:"unbindKeyEvents",value:function(){this.kibo.off("space"),this.kibo.off("left"),this.kibo.off("right"),this.kibo.off([1,2,3,4,5,6,7,8,9,0])}},{key:"parseColors",value:function(){if(this.options.mediacontrol){var e=this.options.mediacontrol.buttons,t=this.options.mediacontrol.seekbar;this.$el.find(".bar-fill-2[data-seekbar]").css("background-color",t),this.$el.find("[data-media-control] > .media-control-icon, .drawer-icon").css("color",e),this.$el.find(".segmented-bar-element[data-volume]").css("boxShadow","inset 2px 0 0 "+e)}}},{key:"destroy",value:function(){this.remove(),(0,P["default"])(document).unbind("mouseup",this.stopDragHandler),(0,P["default"])(document).unbind("mousemove",this.updateDragHandler),this.unbindKeyEvents()}},{key:"render",value:function(){var e=this,t=1e3,n=v["default"].getStyleFor(R["default"],{baseUrl:this.options.baseUrl});this.$el.html(this.template({settings:this.settings})),this.$el.append(n),this.createCachedElements(),this.$playPauseToggle.addClass("paused"),this.$playStopToggle.addClass("stopped"),this.changeTogglePlay(),this.hideId=setTimeout(function(){return e.hide()},t),this.disabled&&this.hide(),b["default"].isSafari&&b["default"].isMobile&&this.$volumeContainer.css("display","none"),this.$seekBarPosition.addClass("media-control-notransition"),this.$seekBarScrubber.addClass("media-control-notransition");var r=0;return this.displayedSeekBarPercentage&&(r=this.displayedSeekBarPercentage),this.displayedSeekBarPercentage=null,this.setSeekPercentage(r),i.nextTick(function(){e.container.settings.seekEnabled||e.$seekBarContainer.addClass("seek-disabled"),e.onVolumeChanged(e.container.volume),e.bindKeyEvents(),e.playerResize({width:e.options.width,height:e.options.height}),e.hideVolumeBar(0)}),this.parseColors(),this.seekTime.render(),this.highDefinitionUpdate(),this.trigger(d["default"].MEDIACONTROL_RENDERED),this}}]),t}(y["default"]);t["default"]=x,e.exports=t["default"]}).call(t,n(29))},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{"default":e}}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),s=function(e,t,n){for(var i=!0;i;){var r=e,a=t,o=n;i=!1,null===r&&(r=Function.prototype);var s=Object.getOwnPropertyDescriptor(r,a);if(void 0!==s){if("value"in s)return s.value;var l=s.get;if(void 0===l)return;return l.call(o)}var u=Object.getPrototypeOf(r);if(null===u)return;e=u,t=a,n=o,i=!0,s=u=void 0}},l=n(3),u=n(12),c=i(u),d=n(1),f=i(d),h=n(94),p=i(h),v=n(95),g=i(v),y=n(19),m=i(y),b=n(2),E=i(b),k=n(15),A=i(k),_=(0,l.currentScriptUrl)().replace(/\/[^\/]+$/,""),T=function(e){function t(e){r(this,t),s(Object.getPrototypeOf(t.prototype),"constructor",this).call(this,e);var n={playerId:(0,l.uniqueId)(""),persistConfig:!0,width:640,height:360,baseUrl:_};this.options=E["default"].extend(n,e),this.options.sources=this.normalizeSources(e),this.loader=new g["default"](this.options.plugins||{},this.options.playerId),this.coreFactory=new p["default"](this,this.loader),this.playerInfo=m["default"].getInstance(this.options.playerId),this.playerInfo.currentSize={width:e.width,height:e.height},this.playerInfo.options=this.options,this.options.parentId?this.setParentId(this.options.parentId):this.options.parent&&this.attachTo(this.options.parent)}return a(t,e),o(t,[{key:"setParentId",value:function(e){var t=document.querySelector(e);t&&this.attachTo(t)}},{key:"attachTo",value:function(e){this.options.parentElement=e,this.core=this.coreFactory.create(),this.addEventListeners()}},{key:"addEventListeners",value:function(){this.listenTo(this.core,f["default"].CORE_READY,this.onReady),this.listenTo(this.core.mediaControl,f["default"].MEDIACONTROL_CONTAINERCHANGED,this.containerChanged);var e=this.core.mediaControl.container;e&&(this.listenTo(e,f["default"].CONTAINER_PLAY,this.onPlay),this.listenTo(e,f["default"].CONTAINER_PAUSE,this.onPause),this.listenTo(e,f["default"].CONTAINER_STOP,this.onStop),this.listenTo(e,f["default"].CONTAINER_ENDED,this.onEnded),this.listenTo(e,f["default"].CONTAINER_SEEK,this.onSeek),this.listenTo(e,f["default"].CONTAINER_ERROR,this.onError),this.listenTo(e,f["default"].CONTAINER_TIMEUPDATE,this.onTimeUpdate),this.listenTo(e,f["default"].CONTAINER_VOLUME,this.onVolumeUpdate))}},{key:"containerChanged",value:function(){this.stopListening(),this.addEventListeners()}},{key:"onReady",value:function(){this.trigger(f["default"].PLAYER_READY)}},{key:"onVolumeUpdate",value:function(e){this.trigger(f["default"].PLAYER_VOLUMEUPDATE,e)}},{key:"onPlay",value:function(){this.trigger(f["default"].PLAYER_PLAY)}},{key:"onPause",value:function(){this.trigger(f["default"].PLAYER_PAUSE)}},{key:"onStop",value:function(){this.trigger(f["default"].PLAYER_STOP,this.getCurrentTime())}},{key:"onEnded",value:function(){this.trigger(f["default"].PLAYER_ENDED)}},{key:"onSeek",value:function(e){this.trigger(f["default"].PLAYER_SEEK,e)}},{key:"onTimeUpdate",value:function(e){this.trigger(f["default"].PLAYER_TIMEUPDATE,e)}},{key:"onError",value:function(e){this.trigger(f["default"].PLAYER_ERROR,e)}},{key:"is",value:function(e,t){return e.constructor===t}},{key:"normalizeSources",value:function(e){var t=e.sources||(void 0!==e.source?[e.source.toString()]:[]);return 0===t.length?["no.op"]:t}},{key:"resize",value:function(e){this.core.resize(e)}},{key:"load",value:function(e,t){this.core.load(e,t)}},{key:"destroy",value:function(){this.core.destroy()}},{key:"play",value:function(){this.core.mediaControl.container.play()}},{key:"pause",value:function(){this.core.mediaControl.container.pause()}},{key:"stop",value:function(){this.core.mediaControl.container.stop()}},{key:"seek",value:function(e){this.core.mediaControl.container.seek(e)}},{key:"seekPercentage",value:function(e){this.core.mediaControl.container.seekPercentage(e)}},{key:"setVolume",value:function(e){this.core.mediaControl.container.setVolume(e)}},{key:"getVolume",value:function(){return this.core.mediaControl.container.volume}},{key:"mute",value:function(){this.core.mediaControl.container.setVolume(0)}},{key:"unmute",value:function(){this.core.mediaControl.container.setVolume(100)}},{key:"isPlaying",value:function(){return this.core.mediaControl.container.isPlaying()}},{key:"configure",value:function(e){this.core.configure(e)}},{key:"getPlugin",value:function(e){var t=this.core.plugins.concat(this.core.mediaControl.container.plugins);return(0,A["default"])(t,function(t){return t.name===e})}},{key:"getCurrentTime",value:function(){return this.core.mediaControl.container.getCurrentTime();
  }},{key:"getDuration",value:function(){return this.core.mediaControl.container.getDuration()}}]),t}(c["default"]);t["default"]=T,e.exports=t["default"]},function(e,t,n){"use strict";e.exports=n(100)},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{"default":e}}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),s=function(e,t,n){for(var i=!0;i;){var r=e,a=t,o=n;i=!1,null===r&&(r=Function.prototype);var s=Object.getOwnPropertyDescriptor(r,a);if(void 0!==s){if("value"in s)return s.value;var l=s.get;if(void 0===l)return;return l.call(o)}var u=Object.getPrototypeOf(r);if(null===u)return;e=u,t=a,n=o,i=!0,s=u=void 0}},l=n(3),u=n(13),c=i(u),d=n(4),f=i(d),h=n(5),p=i(h),v=n(1),g=i(v),y=n(130),m=i(y),b=n(140),E=i(b),k=function(e){function t(e){r(this,t),s(Object.getPrototypeOf(t.prototype),"constructor",this).call(this),this.mediaControl=e,this.mediaControlContainer=this.mediaControl.container,this.rendered=!1,this.hoveringOverSeekBar=!1,this.hoverPosition=null,this.duration=null,this.actualLiveTime=!!this.mediaControl.options.actualLiveTime,this.actualLiveTime&&(this.mediaControl.options.actualLiveServerTime?this.actualLiveServerTimeDiff=(new Date).getTime()-new Date(this.mediaControl.options.actualLiveServerTime).getTime():this.actualLiveServerTimeDiff=0),this.durationShown=!1,this.addEventListeners()}return a(t,e),o(t,[{key:"name",get:function(){return"seek_time"}},{key:"template",get:function(){return(0,p["default"])(E["default"])}},{key:"attributes",get:function(){return{"class":"seek-time","data-seek-time":""}}}]),o(t,[{key:"addEventListeners",value:function(){this.listenTo(this.mediaControl,g["default"].MEDIACONTROL_MOUSEMOVE_SEEKBAR,this.showTime),this.listenTo(this.mediaControl,g["default"].MEDIACONTROL_MOUSELEAVE_SEEKBAR,this.hideTime),this.listenTo(this.mediaControl,g["default"].MEDIACONTROL_CONTAINERCHANGED,this.onContainerChanged),this.listenTo(this.mediaControlContainer,g["default"].CONTAINER_TIMEUPDATE,this.updateDuration)}},{key:"onContainerChanged",value:function(){this.stopListening(this.mediaControlContainer,g["default"].CONTAINER_TIMEUPDATE,this.updateDuration),this.mediaControlContainer=this.mediaControl.container,this.listenTo(this.mediaControlContainer,g["default"].CONTAINER_TIMEUPDATE,this.updateDuration)}},{key:"showDuration",value:function(){this.durationShown=!0,this.update()}},{key:"hideDuration",value:function(){this.durationShown=!1,this.update()}},{key:"updateDuration",value:function(e){this.duration=e.total,this.update()}},{key:"showTime",value:function(e){this.hoveringOverSeekBar=!0,this.calculateHoverPosition(e),this.update()}},{key:"hideTime",value:function(){this.hoveringOverSeekBar=!1,this.update()}},{key:"calculateHoverPosition",value:function(e){var t=e.pageX-this.mediaControl.$seekBarContainer.offset().left;this.hoverPosition=Math.min(1,Math.max(t/this.mediaControl.$seekBarContainer.width(),0))}},{key:"getSeekTime",value:function(){if(this.actualLiveTime){var e=new Date((new Date).getTime()-this.actualLiveServerTimeDiff),t=new Date(e),n=(t-e.setHours(0,0,0,0))/1e3,i=n-this.duration+this.hoverPosition*this.duration;0>i&&(i+=86400)}else var i=this.hoverPosition*this.duration;return{seekTime:i,secondsSinceMidnight:n}}},{key:"update",value:function(){if(this.rendered)if(this.shouldBeVisible()){var e=this.getSeekTime(),t=(0,l.formatTime)(e.seekTime,this.actualLiveTime);if(t!==this.displayedSeekTime&&(this.$seekTimeEl.text(t),this.displayedSeekTime=t),this.durationShown){this.$durationEl.show();var n=(0,l.formatTime)(this.actualLiveTime?e.secondsSinceMidnight:this.duration,this.actualLiveTime);n!==this.displayedDuration&&(this.$durationEl.text(n),this.displayedDuration=n)}else this.$durationEl.hide();this.$el.show();var i=this.mediaControl.$seekBarContainer.width(),r=this.$el.width(),a=this.hoverPosition*i;a-=r/2,a=Math.max(0,Math.min(a,i-r)),this.$el.css("left",a)}else this.$el.hide(),this.$el.css("left","-100%")}},{key:"shouldBeVisible",value:function(){return this.mediaControlContainer.settings.seekEnabled&&this.hoveringOverSeekBar&&null!==this.hoverPosition&&null!==this.duration}},{key:"render",value:function(){this.rendered=!0,this.displayedDuration=null,this.displayedSeekTime=null;var e=f["default"].getStyleFor(m["default"]);this.$el.html(this.template()),this.$el.append(e),this.$el.hide(),this.mediaControl.$el.append(this.el),this.$seekTimeEl=this.$el.find("[data-seek-time]"),this.$durationEl=this.$el.find("[data-duration]"),this.$durationEl.hide(),this.update()}}]),t}(c["default"]);t["default"]=k,e.exports=t["default"]},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{"default":e}}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),s=function(e,t,n){for(var i=!0;i;){var r=e,a=t,o=n;i=!1,null===r&&(r=Function.prototype);var s=Object.getOwnPropertyDescriptor(r,a);if(void 0!==s){if("value"in s)return s.value;var l=s.get;if(void 0===l)return;return l.call(o)}var u=Object.getPrototypeOf(r);if(null===u)return;e=u,t=a,n=o,i=!0,s=u=void 0}},l=n(9),u=i(l),c=n(4),d=i(c),f=n(5),h=i(f),p=n(11),v=i(p),g=n(2),y=(i(g),n(141)),m=i(y),b=n(131),E=i(b),k="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000",A=function(e){function t(){r(this,t),s(Object.getPrototypeOf(t.prototype),"constructor",this).apply(this,arguments)}return a(t,e),o(t,[{key:"setElement",value:function(e){this.$el=e,this.el=e[0]}},{key:"setupFirefox",value:function(){var e=this.$("embed");e.attr("data-flash-playback",this.name),e.addClass(this.attributes["class"]),this.setElement(e)}},{key:"render",value:function(){this.$el.html(this.template({cid:this.cid,swfPath:this.swfPath,baseUrl:this.baseUrl,playbackId:this.uniqueId,wmode:this.wmode,callbackName:"window.Clappr.flashlsCallbacks."+this.cid})),v["default"].isIE?(this.$("embed").remove(),v["default"].isLegacyIE&&this.$el.attr("classid",k)):v["default"].isFirefox&&this.setupFirefox(),this.el.id=this.cid;var e=d["default"].getStyleFor(E["default"]);return this.$el.append(e),this}},{key:"tagName",get:function(){return"object"}},{key:"swfPath",get:function(){return""}},{key:"wmode",get:function(){return"transparent"}},{key:"template",get:function(){return(0,h["default"])(m["default"])}},{key:"attributes",get:function(){return{"class":"clappr-flash-playback",type:"application/x-shockwave-flash",width:"100%",height:"100%","data-flash-playback":this.name}}}]),t}(u["default"]);t["default"]=A,e.exports=t["default"]},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{"default":e}}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),s=function(e,t,n){for(var i=!0;i;){var r=e,a=t,o=n;i=!1,null===r&&(r=Function.prototype);var s=Object.getOwnPropertyDescriptor(r,a);if(void 0!==s){if("value"in s)return s.value;var l=s.get;if(void 0===l)return;return l.call(o)}var u=Object.getPrototypeOf(r);if(null===u)return;e=u,t=a,n=o,i=!0,s=u=void 0}},l=n(3),u=n(23),c=i(u),d=n(11),f=i(d),h=n(14),p=i(h),v=n(5),g=i(v),y=n(2),m=i(y),b=n(1),E=i(b),k=n(9),A=i(k),_=n(148),T=i(_),L=60,O=function(e){function t(e){r(this,t),s(Object.getPrototypeOf(t.prototype),"constructor",this).call(this,e),this.src=e.src,this.baseUrl=e.baseUrl,this.autoPlay=e.autoPlay,this.settings={"default":["seekbar"]},this.settings.left=["playpause","position","duration"],this.settings.right=["fullscreen","volume"],this.settings.seekEnabled=!0,this.isReady=!1,this.addListeners()}return a(t,e),o(t,[{key:"name",get:function(){return"flash"}},{key:"swfPath",get:function(){return(0,g["default"])(T["default"])({baseUrl:this.baseUrl})}}]),o(t,[{key:"bootstrap",value:function(){var e=this;this.el.playerPlay?(this.el.width="100%",this.el.height="100%","PLAYING"===this.currentState?this.firstPlay():(this.currentState="IDLE",this.autoPlay&&this.play()),(0,m["default"])('<div style="position: absolute; top: 0; left: 0; width: 100%; height: 100%" />').insertAfter(this.$el),this.getDuration()>0?this.metadataLoaded():p["default"].once(this.uniqueId+":timeupdate",this.metadataLoaded,this)):(this._attempts=this._attempts||0,++this._attempts<=L?setTimeout(function(){return e.bootstrap()},50):this.trigger(E["default"].PLAYBACK_ERROR,{message:"Max number of attempts reached"},this.name))}},{key:"metadataLoaded",value:function(){this.isReady=!0,this.trigger(E["default"].PLAYBACK_READY,this.name),this.trigger(E["default"].PLAYBACK_SETTINGSUPDATE,this.name)}},{key:"getPlaybackType",value:function(){return A["default"].VOD}},{key:"isHighDefinitionInUse",value:function(){return!1}},{key:"updateTime",value:function(){this.trigger(E["default"].PLAYBACK_TIMEUPDATE,{current:this.el.getPosition(),total:this.el.getDuration()},this.name)}},{key:"addListeners",value:function(){p["default"].on(this.uniqueId+":progress",this.progress,this),p["default"].on(this.uniqueId+":timeupdate",this.updateTime,this),p["default"].on(this.uniqueId+":statechanged",this.checkState,this),p["default"].on(this.uniqueId+":flashready",this.bootstrap,this)}},{key:"stopListening",value:function(){s(Object.getPrototypeOf(t.prototype),"stopListening",this).call(this),p["default"].off(this.uniqueId+":progress"),p["default"].off(this.uniqueId+":timeupdate"),p["default"].off(this.uniqueId+":statechanged"),p["default"].off(this.uniqueId+":flashready")}},{key:"checkState",value:function(){this.isIdle||"PAUSED"===this.currentState||("PLAYING_BUFFERING"!==this.currentState&&"PLAYING_BUFFERING"===this.el.getState()?(this.trigger(E["default"].PLAYBACK_BUFFERING,this.name),this.currentState="PLAYING_BUFFERING"):"PLAYING"===this.el.getState()?(this.trigger(E["default"].PLAYBACK_BUFFERFULL,this.name),this.currentState="PLAYING"):"IDLE"===this.el.getState()?this.currentState="IDLE":"ENDED"===this.el.getState()&&(this.trigger(E["default"].PLAYBACK_ENDED,this.name),this.trigger(E["default"].PLAYBACK_TIMEUPDATE,{current:0,total:this.el.getDuration()},this.name),this.currentState="ENDED",this.isIdle=!0))}},{key:"progress",value:function(){"IDLE"!==this.currentState&&"ENDED"!==this.currentState&&this.trigger(E["default"].PLAYBACK_PROGRESS,{start:0,current:this.el.getBytesLoaded(),total:this.el.getBytesTotal()})}},{key:"firstPlay",value:function(){var e=this;this.el.playerPlay?(this.isIdle=!1,this.el.playerPlay(this.src),this.listenToOnce(this,E["default"].PLAYBACK_BUFFERFULL,function(){return e.checkInitialSeek()}),this.currentState="PLAYING"):this.listenToOnce(this,E["default"].PLAYBACK_READY,this.firstPlay)}},{key:"checkInitialSeek",value:function(){var e=(0,l.seekStringToSeconds)(window.location.href);0!==e&&this.seekSeconds(e)}},{key:"play",value:function(){"PAUSED"===this.currentState||"PLAYING_BUFFERING"===this.currentState?(this.currentState="PLAYING",this.el.playerResume(),this.trigger(E["default"].PLAYBACK_PLAY,this.name)):"PLAYING"!==this.currentState&&(this.firstPlay(),this.trigger(E["default"].PLAYBACK_PLAY,this.name))}},{key:"volume",value:function(e){var t=this;this.isReady?this.el.playerVolume(e):this.listenToOnce(this,E["default"].PLAYBACK_BUFFERFULL,function(){return t.volume(e)})}},{key:"pause",value:function(){this.currentState="PAUSED",this.el.playerPause(),this.trigger(E["default"].PLAYBACK_PAUSE,this.name)}},{key:"stop",value:function(){this.el.playerStop(),this.trigger(E["default"].PLAYBACK_STOP),this.trigger(E["default"].PLAYBACK_TIMEUPDATE,{current:0,total:0},this.name)}},{key:"isPlaying",value:function(){return!!(this.isReady&&this.currentState.indexOf("PLAYING")>-1)}},{key:"getDuration",value:function(){return this.el.getDuration()}},{key:"seekPercentage",value:function(e){var t=this;if(this.el.getDuration()>0){var n=this.el.getDuration()*(e/100);this.seek(n)}else this.listenToOnce(this,E["default"].PLAYBACK_BUFFERFULL,function(){return t.seekPercentage(e)})}},{key:"seek",value:function(e){var t=this;this.isReady&&this.el.playerSeek?(this.el.playerSeek(e),this.trigger(E["default"].PLAYBACK_TIMEUPDATE,{current:e,total:this.el.getDuration()},this.name),"PAUSED"===this.currentState&&this.el.playerPause()):this.listenToOnce(this,E["default"].PLAYBACK_BUFFERFULL,function(){return t.seek(e)})}},{key:"destroy",value:function(){clearInterval(this.bootstrapId),s(Object.getPrototypeOf(t.prototype),"stopListening",this).call(this),this.$el.remove()}}]),t}(c["default"]);t["default"]=O,O.canPlay=function(e){if(f["default"].hasFlash&&e&&e.constructor===String){var t=e.split("?")[0].match(/.*\.(.*)$/)||[];return t.length>1&&!f["default"].isMobile&&t[1].match(/^(mp4|mov|f4v|3gpp|3gp)$/)}return!1},e.exports=t["default"]},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{"default":e}}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),s=function(e,t,n){for(var i=!0;i;){var r=e,a=t,o=n;i=!1,null===r&&(r=Function.prototype);var s=Object.getOwnPropertyDescriptor(r,a);if(void 0!==s){if("value"in s)return s.value;var l=s.get;if(void 0===l)return;return l.call(o)}var u=Object.getPrototypeOf(r);if(null===u)return;e=u,t=a,n=o,i=!0,s=u=void 0}},l=n(23),u=i(l),c=n(1),d=i(c),f=n(5),h=i(f),p=n(9),v=i(p),g=n(14),y=i(g),m=n(11),b=i(m),E=n(104),k=i(E),A=n(149),_=i(A),T=n(2),L=i(T),O=60,S=-1,w=function(e){function t(e){r(this,t),s(Object.getPrototypeOf(t.prototype),"constructor",this).call(this,e),this.src=e.src,this.baseUrl=e.baseUrl,this.initHlsParameters(e),this.highDefinition=!1,this.autoPlay=e.autoPlay,this.loop=e.loop,this.defaultSettings={left:["playstop"],"default":["seekbar"],right:["fullscreen","volume","hd-indicator"],seekEnabled:!1},this.settings=L["default"].extend({},this.defaultSettings),this.playbackType=v["default"].LIVE,this.addListeners()}return a(t,e),o(t,[{key:"name",get:function(){return"flashls"}},{key:"swfPath",get:function(){return(0,h["default"])(_["default"])({baseUrl:this.baseUrl})}},{key:"levels",get:function(){return this._levels||[]}},{key:"currentLevel",get:function(){return this._currentLevel||S},set:function(e){this._currentLevel=e,this.trigger(d["default"].PLAYBACK_LEVEL_SWITCH_START),this.el.playerSetCurrentLevel(e)}}]),o(t,[{key:"initHlsParameters",value:function(e){this.autoStartLoad=void 0===e.autoStartLoad?!0:e.autoStartLoad,this.capLevelToStage=void 0===e.capLevelToStage?!1:e.capLevelToStage,this.maxLevelCappingMode=void 0===e.maxLevelCappingMode?"downscale":e.maxLevelCappingMode,this.minBufferLength=void 0===e.minBufferLength?-1:e.minBufferLength,this.minBufferLengthCapping=void 0===e.minBufferLengthCapping?-1:e.minBufferLengthCapping,this.maxBufferLength=void 0===e.maxBufferLength?120:e.maxBufferLength,this.maxBackBufferLength=void 0===e.maxBackBufferLength?30:e.maxBackBufferLength,this.lowBufferLength=void 0===e.lowBufferLength?3:e.lowBufferLength,this.mediaTimePeriod=void 0===e.mediaTimePeriod?100:e.mediaTimePeriod,this.fpsDroppedMonitoringPeriod=void 0===e.fpsDroppedMonitoringPeriod?5e3:e.fpsDroppedMonitoringPeriod,this.fpsDroppedMonitoringThreshold=void 0===e.fpsDroppedMonitoringThreshold?.2:e.fpsDroppedMonitoringThreshold,this.capLevelonFPSDrop=void 0===e.capLevelonFPSDrop?!1:e.capLevelonFPSDrop,this.smoothAutoSwitchonFPSDrop=void 0===e.smoothAutoSwitchonFPSDrop?this.capLevelonFPSDrop:e.smoothAutoSwitchonFPSDrop,this.switchDownOnLevelError=void 0===e.switchDownOnLevelError?!0:e.switchDownOnLevelError,this.seekMode=void 0===e.seekMode?"ACCURATE":e.seekMode,this.keyLoadMaxRetry=void 0===e.keyLoadMaxRetry?3:e.keyLoadMaxRetry,this.keyLoadMaxRetryTimeout=void 0===e.keyLoadMaxRetryTimeout?64e3:e.keyLoadMaxRetryTimeout,this.fragmentLoadMaxRetry=void 0===e.fragmentLoadMaxRetry?3:e.fragmentLoadMaxRetry,this.fragmentLoadMaxRetryTimeout=void 0===e.fragmentLoadMaxRetryTimeout?4e3:e.fragmentLoadMaxRetryTimeout,this.fragmentLoadSkipAfterMaxRetry=void 0===e.fragmentLoadSkipAfterMaxRetry?!0:e.fragmentLoadSkipAfterMaxRetry,this.flushLiveURLCache=void 0===e.flushLiveURLCache?!1:e.flushLiveURLCache,this.initialLiveManifestSize=void 0===e.initialLiveManifestSize?1:e.initialLiveManifestSize,this.manifestLoadMaxRetry=void 0===e.manifestLoadMaxRetry?3:e.manifestLoadMaxRetry,this.manifestLoadMaxRetryTimeout=void 0===e.manifestLoadMaxRetryTimeout?64e3:e.manifestLoadMaxRetryTimeout,this.manifestRedundantLoadmaxRetry=void 0===e.manifestRedundantLoadmaxRetry?3:e.manifestRedundantLoadmaxRetry,this.startFromBitrate=void 0===e.startFromBitrate?-1:e.startFromBitrate,this.startFromLevel=void 0===e.startFromLevel?-1:e.startFromLevel,this.autoStartMaxDuration=void 0===e.autoStartMaxDuration?-1:e.autoStartMaxDuration,this.seekFromLevel=void 0===e.seekFromLevel?-1:e.seekFromLevel,this.useHardwareVideoDecoder=void 0===e.useHardwareVideoDecoder?!1:e.useHardwareVideoDecoder,this.hlsLogEnabled=void 0===e.hlsLogEnabled?!0:e.hlsLogEnabled,this.logDebug=void 0===e.logDebug?!1:e.logDebug,this.logDebug2=void 0===e.logDebug2?!1:e.logDebug2,this.logWarn=void 0===e.logWarn?!0:e.logWarn,this.logError=void 0===e.logError?!0:e.logError,this.hlsMinimumDvrSize=void 0===e.hlsMinimumDvrSize?60:e.hlsMinimumDvrSize}},{key:"addListeners",value:function(){var e=this;y["default"].on(this.cid+":flashready",function(){return e.bootstrap()}),y["default"].on(this.cid+":timeupdate",function(t){return e.updateTime(t)}),y["default"].on(this.cid+":playbackstate",function(t){return e.setPlaybackState(t)}),y["default"].on(this.cid+":levelchanged",function(t){return e.levelChanged(t)}),y["default"].on(this.cid+":error",function(t,n,i){return e.flashPlaybackError(t,n,i)}),y["default"].on(this.cid+":fragmentloaded",function(t){return e.onFragmentLoaded(t)}),y["default"].once(this.cid+":manifestloaded",function(t,n){return e.manifestLoaded(t,n)})}},{key:"stopListening",value:function(){s(Object.getPrototypeOf(t.prototype),"stopListening",this).call(this),y["default"].off(this.cid+":flashready"),y["default"].off(this.cid+":timeupdate"),y["default"].off(this.cid+":playbackstate"),y["default"].off(this.cid+":levelchanged"),y["default"].off(this.cid+":playbackerror"),y["default"].off(this.cid+":fragmentloaded"),y["default"].off(this.cid+":manifestloaded")}},{key:"bootstrap",value:function(){var e=this;this.el.playerLoad?(this.el.width="100%",this.el.height="100%",this.isReady=!0,this.srcLoaded=!1,this.currentState="IDLE",this.setFlashSettings(),this.updatePlaybackType(),(this.autoPlay||this._shouldPlayOnBootstrap)&&this.play(),this.trigger(d["default"].PLAYBACK_READY,this.name)):(this._bootstrapAttempts=this._bootstrapAttempts||0,++this._bootstrapAttempts<=O?setTimeout(function(){return e.bootstrap()},50):this.trigger(d["default"].PLAYBACK_ERROR,{message:"Max number of attempts reached"},this.name))}},{key:"setFlashSettings",value:function(){this.el.playerSetAutoStartLoad(this.autoStartLoad),this.el.playerSetCapLevelToStage(this.capLevelToStage),this.el.playerSetMaxLevelCappingMode(this.maxLevelCappingMode),this.el.playerSetMinBufferLength(this.minBufferLength),this.el.playerSetMinBufferLengthCapping(this.minBufferLengthCapping),this.el.playerSetMaxBufferLength(this.maxBufferLength),this.el.playerSetMaxBackBufferLength(this.maxBackBufferLength),this.el.playerSetLowBufferLength(this.lowBufferLength),this.el.playerSetMediaTimePeriod(this.mediaTimePeriod),this.el.playerSetFpsDroppedMonitoringPeriod(this.fpsDroppedMonitoringPeriod),this.el.playerSetFpsDroppedMonitoringThreshold(this.fpsDroppedMonitoringThreshold),this.el.playerSetCapLevelonFPSDrop(this.capLevelonFPSDrop),this.el.playerSetSmoothAutoSwitchonFPSDrop(this.smoothAutoSwitchonFPSDrop),this.el.playerSetSwitchDownOnLevelError(this.switchDownOnLevelError),this.el.playerSetSeekMode(this.seekMode),this.el.playerSetKeyLoadMaxRetry(this.keyLoadMaxRetry),this.el.playerSetKeyLoadMaxRetryTimeout(this.keyLoadMaxRetryTimeout),this.el.playerSetFragmentLoadMaxRetry(this.fragmentLoadMaxRetry),this.el.playerSetFragmentLoadMaxRetryTimeout(this.fragmentLoadMaxRetryTimeout),this.el.playerSetFragmentLoadSkipAfterMaxRetry(this.fragmentLoadSkipAfterMaxRetry),this.el.playerSetFlushLiveURLCache(this.flushLiveURLCache),this.el.playerSetInitialLiveManifestSize(this.initialLiveManifestSize),this.el.playerSetManifestLoadMaxRetry(this.manifestLoadMaxRetry),this.el.playerSetManifestLoadMaxRetryTimeout(this.manifestLoadMaxRetryTimeout),this.el.playerSetManifestRedundantLoadmaxRetry(this.manifestRedundantLoadmaxRetry),this.el.playerSetStartFromBitrate(this.startFromBitrate),this.el.playerSetStartFromLevel(this.startFromLevel),this.el.playerSetAutoStartMaxDuration(this.autoStartMaxDuration),this.el.playerSetSeekFromLevel(this.seekFromLevel),this.el.playerSetUseHardwareVideoDecoder(this.useHardwareVideoDecoder),this.el.playerSetLogInfo(this.hlsLogEnabled),this.el.playerSetLogDebug(this.logDebug),this.el.playerSetLogDebug2(this.logDebug2),this.el.playerSetLogWarn(this.logWarn),this.el.playerSetLogError(this.logError)}},{key:"setAutoStartLoad",value:function(e){this.autoStartLoad=e,this.el.playerSetAutoStartLoad(this.autoStartLoad)}},{key:"setCapLevelToStage",value:function(e){this.capLevelToStage=e,this.el.playerSetCapLevelToStage(this.capLevelToStage)}},{key:"setMaxLevelCappingMode",value:function(e){this.maxLevelCappingMode=e,this.el.playerSetMaxLevelCappingMode(this.maxLevelCappingMode)}},{key:"setSetMinBufferLength",value:function(e){this.minBufferLength=e,this.el.playerSetMinBufferLength(this.minBufferLength)}},{key:"setMinBufferLengthCapping",value:function(e){this.minBufferLengthCapping=e,this.el.playerSetMinBufferLengthCapping(this.minBufferLengthCapping)}},{key:"setMaxBufferLength",value:function(e){this.maxBufferLength=e,this.el.playerSetMaxBufferLength(this.maxBufferLength)}},{key:"setMaxBackBufferLength",value:function(e){this.maxBackBufferLength=e,this.el.playerSetMaxBackBufferLength(this.maxBackBufferLength)}},{key:"setLowBufferLength",value:function(e){this.lowBufferLength=e,this.el.playerSetLowBufferLength(this.lowBufferLength)}},{key:"setMediaTimePeriod",value:function(e){this.mediaTimePeriod=e,this.el.playerSetMediaTimePeriod(this.mediaTimePeriod)}},{key:"setFpsDroppedMonitoringPeriod",value:function(e){this.fpsDroppedMonitoringPeriod=e,this.el.playerSetFpsDroppedMonitoringPeriod(this.fpsDroppedMonitoringPeriod)}},{key:"setFpsDroppedMonitoringThreshold",value:function(e){this.fpsDroppedMonitoringThreshold=e,this.el.playerSetFpsDroppedMonitoringThreshold(this.fpsDroppedMonitoringThreshold)}},{key:"setCapLevelonFPSDrop",value:function(e){this.capLevelonFPSDrop=e,this.el.playerSetCapLevelonFPSDrop(this.capLevelonFPSDrop)}},{key:"setSmoothAutoSwitchonFPSDrop",value:function(e){this.smoothAutoSwitchonFPSDrop=e,this.el.playerSetSmoothAutoSwitchonFPSDrop(this.smoothAutoSwitchonFPSDrop)}},{key:"setSwitchDownOnLevelError",value:function(e){this.switchDownOnLevelError=e,this.el.playerSetSwitchDownOnLevelError(this.switchDownOnLevelError)}},{key:"setSeekMode",value:function(e){this.seekMode=e,this.el.playerSetSeekMode(this.seekMode)}},{key:"setKeyLoadMaxRetry",value:function(e){this.keyLoadMaxRetry=e,this.el.playerSetKeyLoadMaxRetry(this.keyLoadMaxRetry)}},{key:"setKeyLoadMaxRetryTimeout",value:function(e){this.keyLoadMaxRetryTimeout=e,this.el.playerSetKeyLoadMaxRetryTimeout(this.keyLoadMaxRetryTimeout)}},{key:"setFragmentLoadMaxRetry",value:function(e){this.fragmentLoadMaxRetry=e,this.el.playerSetFragmentLoadMaxRetry(this.fragmentLoadMaxRetry)}},{key:"setFragmentLoadMaxRetryTimeout",value:function(e){this.fragmentLoadMaxRetryTimeout=e,this.el.playerSetFragmentLoadMaxRetryTimeout(this.fragmentLoadMaxRetryTimeout)}},{key:"setFragmentLoadSkipAfterMaxRetry",value:function(e){this.fragmentLoadSkipAfterMaxRetry=e,this.el.playerSetFragmentLoadSkipAfterMaxRetry(this.fragmentLoadSkipAfterMaxRetry)}},{key:"setFlushLiveURLCache",value:function(e){this.flushLiveURLCache=e,this.el.playerSetFlushLiveURLCache(this.flushLiveURLCache)}},{key:"setInitialLiveManifestSize",value:function(e){this.initialLiveManifestSize=e,this.el.playerSetInitialLiveManifestSize(this.initialLiveManifestSize)}},{key:"setManifestLoadMaxRetry",value:function(e){this.manifestLoadMaxRetry=e,this.el.playerSetManifestLoadMaxRetry(this.manifestLoadMaxRetry)}},{key:"setManifestLoadMaxRetryTimeout",value:function(e){this.manifestLoadMaxRetryTimeout=e,this.el.playerSetManifestLoadMaxRetryTimeout(this.manifestLoadMaxRetryTimeout)}},{key:"setManifestRedundantLoadmaxRetry",value:function(e){this.manifestRedundantLoadmaxRetry=e,this.el.playerSetManifestRedundantLoadmaxRetry(this.manifestRedundantLoadmaxRetry)}},{key:"setStartFromBitrate",value:function(e){this.startFromBitrate=e,this.el.playerSetStartFromBitrate(this.startFromBitrate)}},{key:"setStartFromLevel",value:function(e){this.startFromLevel=e,this.el.playerSetStartFromLevel(this.startFromLevel)}},{key:"setAutoStartMaxDuration",value:function(e){this.autoStartMaxDuration=e,this.el.playerSetAutoStartMaxDuration(this.autoStartMaxDuration)}},{key:"setSeekFromLevel",value:function(e){this.seekFromLevel=e,this.el.playerSetSeekFromLevel(this.seekFromLevel)}},{key:"setUseHardwareVideoDecoder",value:function(e){this.useHardwareVideoDecoder=e,this.el.playerSetUseHardwareVideoDecoder(this.useHardwareVideoDecoder)}},{key:"setSetLogInfo",value:function(e){this.hlsLogEnabled=e,this.el.playerSetLogInfo(this.hlsLogEnabled)}},{key:"setLogDebug",value:function(e){this.logDebug=e,this.el.playerSetLogDebug(this.logDebug)}},{key:"setLogDebug2",value:function(e){this.logDebug2=e,this.el.playerSetLogDebug2(this.logDebug2)}},{key:"setLogWarn",value:function(e){this.logWarn=e,this.el.playerSetLogWarn(this.logWarn)}},{key:"setLogError",value:function(e){this.logError=e,this.el.playerSetLogError(this.logError)}},{key:"levelChanged",value:function(e){var t=this.levels[e];t&&(this.highDefinition=t.height>=720||t.bitrate/1e3>=2e3,this.trigger(d["default"].PLAYBACK_HIGHDEFINITIONUPDATE,this.highDefinition),this.trigger(d["default"].PLAYBACK_BITRATE,{height:t.height,width:t.width,bandwidth:t.bandwidth,bitrate:t.bitrate,level:e}),this.trigger(d["default"].PLAYBACK_LEVEL_SWITCH_END))}},{key:"updateTime",value:function(e){if("IDLE"!==this.currentState){var t=this.normalizeDuration(e.duration),n=Math.min(Math.max(e.position,0),t),i=this.dvrEnabled,r=this.playbackType===v["default"].LIVE;this.dvrEnabled=r&&t>this.hlsMinimumDvrSize,100!==t&&void 0!==r&&(this.dvrEnabled!==i&&(this.updateSettings(),this.trigger(d["default"].PLAYBACK_SETTINGSUPDATE,this.name)),!r||this.dvrEnabled&&this.dvrInUse||(n=t),this.trigger(d["default"].PLAYBACK_TIMEUPDATE,{current:n,total:t},this.name))}}},{key:"play",value:function(){"PAUSED"===this.currentState?this.el.playerResume():this.srcLoaded||"PLAYING"===this.currentState?this.el.playerPlay():this.firstPlay()}},{key:"getPlaybackType",value:function(){return this.playbackType?this.playbackType:null}},{key:"getCurrentLevelIndex",value:function(){return this.currentLevel}},{key:"getCurrentLevel",value:function(){return this.levels[this.currentLevel]}},{key:"getCurrentBitrate",value:function(){return this.levels[this.currentLevel].bitrate}},{key:"setCurrentLevel",value:function(e){this.currentLevel=e}},{key:"isHighDefinitionInUse",value:function(){return this.highDefinition}},{key:"getLevels",value:function(){return this.levels}},{key:"setPlaybackState",value:function(e){["PLAYING_BUFFERING","PAUSED_BUFFERING"].indexOf(e)>=0?(this.trigger(d["default"].PLAYBACK_BUFFERING,this.name),this.updateCurrentState(e)):["PLAYING","PAUSED"].indexOf(e)>=0?(["PLAYING_BUFFERING","PAUSED_BUFFERING","IDLE"].indexOf(this.currentState)>=0&&this.trigger(d["default"].PLAYBACK_BUFFERFULL,this.name),this.updateCurrentState(e)):"IDLE"===e&&(this.srcLoaded=!1,this.loop&&["PLAYING_BUFFERING","PLAYING"].indexOf(this.currentState)>=0?(this.play(),this.seek(0)):(this.updateCurrentState(e),this.trigger(d["default"].PLAYBACK_TIMEUPDATE,{current:0,total:this.el.getDuration()},this.name),this.trigger(d["default"].PLAYBACK_ENDED,this.name)))}},{key:"updateCurrentState",value:function(e){this.currentState=e,this.updatePlaybackType(),"PLAYING"===e?this.trigger(d["default"].PLAYBACK_PLAY,this.name):"PAUSED"===e&&this.trigger(d["default"].PLAYBACK_PAUSE,this.name)}},{key:"updatePlaybackType",value:function(){this.playbackType=this.el.getType(),this.playbackType&&(this.playbackType=this.playbackType.toLowerCase(),this.playbackType===v["default"].VOD?this.startReportingProgress():this.stopReportingProgress()),this.trigger(d["default"].PLAYBACK_PLAYBACKSTATE,{type:this.playbackType})}},{key:"startReportingProgress",value:function(){this.reportingProgress||(this.reportingProgress=!0)}},{key:"stopReportingProgress",value:function(){this.reportingProgress=!1}},{key:"onFragmentLoaded",value:function(e){if(this.trigger(d["default"].PLAYBACK_FRAGMENT_LOADED,e),this.reportingProgress&&this.el.getPosition){var t=this.el.getPosition()+this.el.getbufferLength();this.trigger(d["default"].PLAYBACK_PROGRESS,{start:this.el.getPosition(),current:t,total:this.el.getDuration()})}}},{key:"firstPlay",value:function(){var e=this;this.el.playerLoad?(this.setFlashSettings(),this.el.playerLoad(this.src),y["default"].once(this.cid+":manifestloaded",function(){return e.el.playerPlay()}),this.srcLoaded=!0):this._shouldPlayOnBootstrap=!0}},{key:"volume",value:function(e){var t=this;this.isReady?this.el.playerVolume(e):this.listenToOnce(this,d["default"].PLAYBACK_BUFFERFULL,function(){return t.volume(e)})}},{key:"pause",value:function(){(this.playbackType!==v["default"].LIVE||this.dvrEnabled)&&(this.el.playerPause(),this.playbackType===v["default"].LIVE&&this.dvrEnabled&&this.updateDvr(!0))}},{key:"stop",value:function(){this.srcLoaded=!1,this.el.playerStop(),this.trigger(d["default"].PLAYBACK_STOP),this.trigger(d["default"].PLAYBACK_TIMEUPDATE,{
  current:0,total:0},this.name)}},{key:"isPlaying",value:function(){return this.currentState?!!this.currentState.match(/playing/i):!1}},{key:"getDuration",value:function(){return this.normalizeDuration(this.el.getDuration())}},{key:"normalizeDuration",value:function(e){return this.playbackType===v["default"].LIVE&&(e-=10),e}},{key:"seekPercentage",value:function(e){var t=this.el.getDuration(),n=0;e>0&&(n=t*e/100),this.seek(n)}},{key:"seek",value:function(e){var t=this.el.getDuration();if(this.playbackType===v["default"].LIVE){var n=e>=0&&t-e>5;n||(e=-1),this.updateDvr(n)}this.el.playerSeek(e),this.trigger(d["default"].PLAYBACK_TIMEUPDATE,{current:e,total:t},this.name)}},{key:"updateDvr",value:function(e){var t=!!this.dvrInUse;this.dvrInUse=e,this.dvrInUse!==t&&(this.updateSettings(),this.trigger(d["default"].PLAYBACK_DVR,this.dvrInUse),this.trigger(d["default"].PLAYBACK_STATS_ADD,{dvr:this.dvrInUse}))}},{key:"flashPlaybackError",value:function(e,t,n){this.trigger(d["default"].PLAYBACK_ERROR,{code:e,url:t,message:n}),this.trigger(d["default"].PLAYBACK_STOP)}},{key:"manifestLoaded",value:function(e,t){var n=this.el.getLevels(),i=n.length;this._levels=[];for(var r=0;i>r;r++)this._levels.push({id:r,label:n[r].height+"p"});this.trigger(d["default"].PLAYBACK_LEVELS_AVAILABLE,this._levels),this.trigger(d["default"].PLAYBACK_LOADEDMETADATA,{duration:e,data:t})}},{key:"timeUpdate",value:function(e,t){this.trigger(d["default"].PLAYBACK_TIMEUPDATE,{current:e,total:t},this.name)}},{key:"destroy",value:function(){this.stopListening(),this.$el.remove()}},{key:"updateSettings",value:function(){this.settings=L["default"].extend({},this.defaultSettings),this.playbackType===v["default"].VOD||this.dvrInUse?(this.settings.left=["playpause","position","duration"],this.settings.seekEnabled=!0):this.dvrEnabled?(this.settings.left=["playpause"],this.settings.seekEnabled=!0):this.settings.seekEnabled=!1}},{key:"createCallbacks",value:function(){var e=this;window.Clappr||(window.Clappr={}),window.Clappr.flashlsCallbacks||(window.Clappr.flashlsCallbacks={}),this.flashlsEvents=new k["default"](this.cid),window.Clappr.flashlsCallbacks[this.cid]=function(t,n){e.flashlsEvents[t].apply(e.flashlsEvents,n)}}},{key:"render",value:function(){return s(Object.getPrototypeOf(t.prototype),"render",this).call(this),this.createCallbacks(),this}}]),t}(u["default"]);t["default"]=w,w.canPlay=function(e,t){var n=e.split("?")[0].match(/.*\.(.*)$/)||[];return b["default"].hasFlash&&(n.length>1&&"m3u8"===n[1]||"application/x-mpegURL"===t||"application/vnd.apple.mpegurl"===t)},e.exports=t["default"]},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{"default":e}}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var a=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),o=n(14),s=i(o),l=function(){function e(t){r(this,e),this.instanceId=t}return a(e,[{key:"ready",value:function(){s["default"].trigger(this.instanceId+":flashready")}},{key:"videoSize",value:function(e,t){s["default"].trigger(this.instanceId+":videosizechanged",e,t)}},{key:"complete",value:function(){s["default"].trigger(this.instanceId+":complete")}},{key:"error",value:function(e,t,n){s["default"].trigger(this.instanceId+":error",e,t,n)}},{key:"manifest",value:function(e,t){s["default"].trigger(this.instanceId+":manifestloaded",e,t)}},{key:"audioLevelLoaded",value:function(e){s["default"].trigger(this.instanceId+":audiolevelloaded",e)}},{key:"levelLoaded",value:function(e){s["default"].trigger(this.instanceId+":levelloaded",e)}},{key:"fragmentLoaded",value:function(e){s["default"].trigger(this.instanceId+":fragmentloaded",e)}},{key:"fragmentPlaying",value:function(e){s["default"].trigger(this.instanceId+":fragmentplaying",e)}},{key:"position",value:function(e){s["default"].trigger(this.instanceId+":timeupdate",e)}},{key:"state",value:function(e){s["default"].trigger(this.instanceId+":playbackstate",e)}},{key:"seekState",value:function(e){s["default"].trigger(this.instanceId+":seekstate",e)}},{key:"switch",value:function(e){s["default"].trigger(this.instanceId+":levelchanged",e)}},{key:"audioTracksListChange",value:function(e){s["default"].trigger(this.instanceId+":audiotracklistchanged",e)}},{key:"audioTrackChange",value:function(e){s["default"].trigger(this.instanceId+":audiotrackchanged",e)}}]),e}();t["default"]=l,e.exports=t["default"]},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{"default":e}}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),s=function(e,t,n){for(var i=!0;i;){var r=e,a=t,o=n;i=!1,null===r&&(r=Function.prototype);var s=Object.getOwnPropertyDescriptor(r,a);if(void 0!==s){if("value"in s)return s.value;var l=s.get;if(void 0===l)return;return l.call(o)}var u=Object.getPrototypeOf(r);if(null===u)return;e=u,t=a,n=o,i=!0,s=u=void 0}},l=n(20),u=i(l),c=n(59),d=i(c),f=n(1),h=i(f),p=n(9),v=i(p),g=n(11),y=i(g),m=-1,b=function(e){function t(e){r(this,t),s(Object.getPrototypeOf(t.prototype),"constructor",this).call(this,e),this.minDvrSize=e.hlsMinimumDvrSize?e.hlsMinimumDvrSize:60,this.playbackType=v["default"].VOD,this.playableRegionStartTime=0,this.playableRegionDuration=0}return a(t,e),o(t,[{key:"name",get:function(){return"hls"}},{key:"levels",get:function(){return this._levels||[]}},{key:"currentLevel",get:function(){return this._currentLevel||m},set:function(e){this._currentLevel=e,this.trigger(h["default"].PLAYBACK_LEVEL_SWITCH_START),this.hls.currentLevel=this._currentLevel}}]),o(t,[{key:"setupHls",value:function(){var e=this;this.hls=new d["default"](this.options.hlsjsConfig||{}),this.hls.on(d["default"].Events.MEDIA_ATTACHED,function(){return e.hls.loadSource(e.options.src)}),this.hls.on(d["default"].Events.MANIFEST_PARSED,function(){e.options.autoPlay&&e.play()}),this.hls.on(d["default"].Events.LEVEL_LOADED,function(t,n){return e.updatePlaybackType(t,n)}),this.hls.on(d["default"].Events.LEVEL_UPDATED,function(t,n){return e.updateDuration(t,n)}),this.hls.on(d["default"].Events.LEVEL_SWITCH,function(t,n){return e.onLevelSwitch(t,n)}),this.hls.on(d["default"].Events.FRAG_LOADED,function(t,n){return e.onFragmentLoaded(t,n)}),this.hls.attachMedia(this.el)}},{key:"setupSrc",value:function(e){}},{key:"getDuration",value:function(){return this.playableRegionDuration}},{key:"getCurrentTime",value:function(){return this.el.currentTime-this.playableRegionStartTime}},{key:"seek",value:function(e){var n=this.dvrEnabled&&e>0&&e<=this.playableRegionDuration;e+=this.playableRegionStartTime,s(Object.getPrototypeOf(t.prototype),"seek",this).call(this,e),this.updateDvr(n)}},{key:"seekPercentage",value:function(e){var t=this.playableRegionDuration;e>0&&(t=this.playableRegionDuration*(e/100)),this.seek(t)}},{key:"updateDvr",value:function(e){this.trigger(h["default"].PLAYBACK_DVR,e),this.trigger(h["default"].PLAYBACK_STATS_ADD,{dvr:e})}},{key:"durationChange",value:function(){this.playbackType===v["default"].VOD?this.settings.left=["playpause","position","duration"]:this.dvrEnabled?this.settings.left=["playpause"]:this.settings.left=["playstop"],this.settings.seekEnabled=this.isSeekEnabled(),this.timeUpdated(),this.trigger(h["default"].PLAYBACK_SETTINGSUPDATE)}},{key:"timeUpdated",value:function(){this.trigger(h["default"].PLAYBACK_TIMEUPDATE,{current:this.getCurrentTime(),total:this.getDuration()},this.name)}},{key:"play",value:function(){this.hls||this.setupHls(),s(Object.getPrototypeOf(t.prototype),"play",this).call(this)}},{key:"pause",value:function(){s(Object.getPrototypeOf(t.prototype),"pause",this).call(this),this.dvrEnabled&&this.updateDvr(!0)}},{key:"stop",value:function(){this.hls&&(this.hls.destroy(),delete this.hls,this.trigger(h["default"].PLAYBACK_STOP))}},{key:"updatePlaybackType",value:function(e,t){this.playbackType=t.details.live?v["default"].LIVE:v["default"].VOD,this.fillLevels()}},{key:"fillLevels",value:function(){this._levels=this.hls.levels.map(function(e,t){return{id:t,label:e.height+"p"}}),this.trigger(h["default"].PLAYBACK_LEVELS_AVAILABLE,this._levels)}},{key:"updateDuration",value:function(e,t){var n=t.details.fragments;n.length>0&&(this.playableRegionStartTime=n[0].start),this.playableRegionDuration=t.details.totalduration,this.durationChange()}},{key:"onFragmentLoaded",value:function(e,t){this.trigger(h["default"].PLAYBACK_FRAGMENT_LOADED,t)}},{key:"onLevelSwitch",value:function(e,t){this.trigger(h["default"].PLAYBACK_LEVEL_SWITCH_END),this.trigger(h["default"].PLAYBACK_LEVEL_SWITCH,t);var n=this.levels[t.level];n&&(this.highDefinition=n.height>=720||n.bitrate/1e3>=2e3,this.trigger(h["default"].PLAYBACK_HIGHDEFINITIONUPDATE,this.highDefinition),this.trigger(h["default"].PLAYBACK_BITRATE,{height:n.height,width:n.width,bandwidth:n.bandwidth,bitrate:n.bitrate,level:t.level}))}},{key:"getPlaybackType",value:function(){return this.playbackType}},{key:"isSeekEnabled",value:function(){return this.playbackType===v["default"].VOD||this.dvrEnabled}},{key:"dvrEnabled",get:function(){return this.playableRegionDuration>=this.minDvrSize&&this.getPlaybackType()===v["default"].LIVE}}]),t}(u["default"]);t["default"]=b,b.canPlay=function(e,t){var n=e.split("?")[0].match(/.*\.(.*)$/)||[],i=n.length>1&&"m3u8"===n[1]||"application/x-mpegURL"===t||"application/vnd.apple.mpegurl"===t;return!(!d["default"].isSupported()||!i||y["default"].isSafari)},e.exports=t["default"]},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{"default":e}}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),s=function(e,t,n){for(var i=!0;i;){var r=e,a=t,o=n;i=!1,null===r&&(r=Function.prototype);var s=Object.getOwnPropertyDescriptor(r,a);if(void 0!==s){if("value"in s)return s.value;var l=s.get;if(void 0===l)return;return l.call(o)}var u=Object.getPrototypeOf(r);if(null===u)return;e=u,t=a,n=o,i=!0,s=u=void 0}},l=n(1),u=i(l),c=n(9),d=i(c),f=n(20),h=i(f),p=n(15),v=(i(p),function(e){function t(){r(this,t),s(Object.getPrototypeOf(t.prototype),"constructor",this).apply(this,arguments)}return a(t,e),o(t,[{key:"durationChange",value:function(){this.settings.left=["playpause","position","duration"],this.settings.seekEnabled=this.isSeekEnabled(),this.trigger(u["default"].PLAYBACK_SETTINGSUPDATE)}},{key:"getPlaybackType",value:function(){return d["default"].AOD}},{key:"stalled",value:function(){this.el.readyState<this.el.HAVE_FUTURE_DATA&&this.trigger(u["default"].PLAYBACK_BUFFERING,this.name)}},{key:"timeUpdated",value:function(){this.trigger(u["default"].PLAYBACK_TIMEUPDATE,{current:this.el.currentTime,total:this.el.duration},this.name)}},{key:"name",get:function(){return"html5_audio"}},{key:"tagName",get:function(){return"audio"}}]),t}(h["default"]));t["default"]=v,v.canPlay=function(e,t){var n={wav:["audio/wav"],mp3:["audio/mp3",'audio/mpeg;codecs="mp3"'],aac:['audio/mp4;codecs="mp4a.40.5"'],oga:["audio/ogg"]};return h["default"]._canPlay("audio",n,e,t)},e.exports=t["default"]},function(e,t,n){(function(i){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var s=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),l=function(e,t,n){for(var i=!0;i;){var r=e,a=t,o=n;i=!1,null===r&&(r=Function.prototype);var s=Object.getOwnPropertyDescriptor(r,a);if(void 0!==s){if("value"in s)return s.value;var l=s.get;if(void 0===l)return;return l.call(o)}var u=Object.getPrototypeOf(r);if(null===u)return;e=u,t=a,n=o,i=!0,s=u=void 0}},u=n(3),c=n(9),d=r(c),f=n(5),h=r(f),p=n(4),v=r(p),g=n(11),y=r(g),m=n(1),b=r(m),E=n(132),k=r(E),A=n(142),_=r(A),T=n(15),L=r(T),O={mp4:["avc1.42E01E","avc1.58A01E","avc1.4D401E","avc1.64001E","mp4v.20.8","mp4v.20.240","mp4a.40.2"].map(function(e){return'video/mp4; codecs="'+e+', mp4a.40.2"'}),ogg:['video/ogg; codecs="theora, vorbis"','video/ogg; codecs="dirac"','video/ogg; codecs="theora, speex"'],"3gpp":['video/3gpp; codecs="mp4v.20.8, samr"'],webm:['video/webm; codecs="vp8, vorbis"'],mkv:['video/x-matroska; codecs="theora, vorbis"'],m3u8:["application/x-mpegurl"]};O.ogv=O.ogg,O["3gp"]=O["3gpp"];var S=function(e){function t(e){a(this,t),l(Object.getPrototypeOf(t.prototype),"constructor",this).call(this,e),this.options=e,this.setupSrc(e.src),this.el.loop=e.loop,this.firstBuffer=!0,this.settings={"default":["seekbar"]},y["default"].isSafari?this.setupSafari():(this.el.preload=e.preload?e.preload:"metadata",this.settings.seekEnabled=!0),this.settings.left=["playpause","position","duration"],this.settings.right=["fullscreen","volume","hd-indicator"]}return o(t,e),s(t,[{key:"name",get:function(){return"html5_video"}},{key:"tagName",get:function(){return"video"}},{key:"template",get:function(){return(0,h["default"])(_["default"])}},{key:"attributes",get:function(){return{"data-html5-video":""}}},{key:"events",get:function(){return{timeupdate:"timeUpdated",progress:"progress",ended:"ended",stalled:"stalled",waiting:"waiting",canplaythrough:"bufferFull",loadedmetadata:"loadedMetadata",canplay:"ready",durationchange:"durationChange",error:"error",playing:"playing",pause:"paused"}}}]),s(t,[{key:"setupSrc",value:function(e){this.src=e,this.el.src=e}},{key:"setupSafari",value:function(){this.el.preload="auto"}},{key:"loadedMetadata",value:function(e){this.durationChange();var t="undefined"==typeof this.options.autoSeekFromUrl||this.options.autoSeekFromUrl;this.getPlaybackType()!==d["default"].LIVE&&t&&this.checkInitialSeek(),this.trigger(b["default"].PLAYBACK_LOADEDMETADATA,{duration:e.target.duration,data:e})}},{key:"durationChange",value:function(){this.getPlaybackType()===d["default"].VOD?this.settings.left=["playpause","position","duration"]:this.settings.left=["playstop"],this.settings.seekEnabled=this.isSeekEnabled(),this.trigger(b["default"].PLAYBACK_SETTINGSUPDATE)}},{key:"isSeekEnabled",value:function(){return isFinite(this.getDuration())}},{key:"getPlaybackType",value:function(){return[0,void 0,1/0].indexOf(this.el.duration)>=0?d["default"].LIVE:d["default"].VOD}},{key:"isHighDefinitionInUse",value:function(){return!1}},{key:"play",value:function(){this.el.play()}},{key:"pause",value:function(){this.el.pause()}},{key:"stop",value:function(){this.pause(),0!==this.el.readyState&&(this.el.currentTime=0,this.trigger(b["default"].PLAYBACK_STOP))}},{key:"volume",value:function(e){this.el.volume=e/100}},{key:"mute",value:function(){this.el.volume=0}},{key:"unmute",value:function(){this.el.volume=1}},{key:"isMuted",value:function(){return!!this.el.volume}},{key:"isPlaying",value:function(){return!this.el.paused&&!this.el.ended}},{key:"playing",value:function(){this.trigger(b["default"].PLAYBACK_PLAY)}},{key:"paused",value:function(){this.trigger(b["default"].PLAYBACK_PAUSE)}},{key:"ended",value:function(){this.trigger(b["default"].PLAYBACK_BUFFERFULL,this.name),this.trigger(b["default"].PLAYBACK_ENDED,this.name),this.trigger(b["default"].PLAYBACK_TIMEUPDATE,{current:0,total:this.el.duration},this.name)}},{key:"stalled",value:function(){this.getPlaybackType()===d["default"].VOD&&this.el.readyState<this.el.HAVE_FUTURE_DATA&&this.trigger(b["default"].PLAYBACK_BUFFERING,this.name)}},{key:"waiting",value:function(){this.el.readyState<this.el.HAVE_FUTURE_DATA&&this.trigger(b["default"].PLAYBACK_BUFFERING,this.name)}},{key:"bufferFull",value:function(){this.options.poster&&this.firstBuffer?(this.firstBuffer=!1,this.isPlaying()||(this.el.poster=this.options.poster)):this.el.poster="",this.trigger(b["default"].PLAYBACK_BUFFERFULL,this.name)}},{key:"error",value:function(e){this.trigger(b["default"].PLAYBACK_ERROR,this.el.error,this.name)}},{key:"destroy",value:function(){this.stop(),this.el.src="",this.$el.remove()}},{key:"seek",value:function(e){this.el.currentTime=e}},{key:"seekPercentage",value:function(e){var t=this.el.duration*(e/100);this.seek(t)}},{key:"checkInitialSeek",value:function(){var e=(0,u.seekStringToSeconds)(window.location.href);this.seek(e)}},{key:"getCurrentTime",value:function(){return this.el.currentTime}},{key:"getDuration",value:function(){return this.el.duration}},{key:"timeUpdated",value:function(){this.getPlaybackType()===d["default"].LIVE?this.trigger(b["default"].PLAYBACK_TIMEUPDATE,{current:1,total:1},this.name):this.trigger(b["default"].PLAYBACK_TIMEUPDATE,{current:this.el.currentTime,total:this.el.duration},this.name)}},{key:"progress",value:function(){if(this.el.buffered.length){for(var e=0,t=0;t<this.el.buffered.length;t++)if(this.el.currentTime>=this.el.buffered.start(t)&&this.el.currentTime<=this.el.buffered.end(t)){e=t;break}this.checkBufferState(this.el.buffered.end(e)),this.trigger(b["default"].PLAYBACK_PROGRESS,{start:this.el.buffered.start(e),current:this.el.buffered.end(e),total:this.el.duration})}}},{key:"checkBufferState",value:function(e){var t=this.el.currentTime+.05;this.isPlaying()&&t>=e?(this.trigger(b["default"].PLAYBACK_BUFFERING,this.name),this.buffering=!0):this.buffering&&(this.trigger(b["default"].PLAYBACK_BUFFERFULL,this.name),this.buffering=!1)}},{key:"typeFor",value:function(e){return e.indexOf(".m3u8")>0?"application/vnd.apple.mpegurl":"video/mp4"}},{key:"ready",value:function(){this.trigger(b["default"].PLAYBACK_READY,this.name)}},{key:"render",value:function(){var e=this,t=v["default"].getStyleFor(k["default"]);return this.src&&this.$el.html(this.template({src:this.src,type:this.typeFor(this.src)})),this.options.useVideoTagDefaultControls&&this.$el.attr("controls","controls"),this.options.disableVideoTagContextMenu&&this.$el.on("contextmenu",function(){return!1}),this.$el.append(t),i.nextTick(function(){return e.options.autoPlay&&e.play()}),this.el.readyState===this.el.HAVE_ENOUGH_DATA&&this.ready(),this}}]),t}(d["default"]);t["default"]=S,S._canPlay=function(e,t,n,i){var r=(n.split("?")[0].match(/.*\.(.*)$/)||[])[1],a=i||t[r]||[];a=a.constructor===Array?a:[a];var o=document.createElement(e);return!!(0,L["default"])(a,function(e){return!!o.canPlayType(e).replace(/no/,"")})},S.canPlay=function(e,t){return S._canPlay("video",O,e,t)},e.exports=S,e.exports=t["default"]}).call(t,n(29))},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{"default":e}}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),s=function(e,t,n){for(var i=!0;i;){var r=e,a=t,o=n;i=!1,null===r&&(r=Function.prototype);var s=Object.getOwnPropertyDescriptor(r,a);if(void 0!==s){if("value"in s)return s.value;var l=s.get;if(void 0===l)return;return l.call(o)}var u=Object.getPrototypeOf(r);if(null===u)return;e=u,t=a,n=o,i=!0,s=u=void 0}},l=n(9),u=i(l),c=n(4),d=i(c),f=n(133),h=i(f),p=function(e){function t(e){r(this,t),s(Object.getPrototypeOf(t.prototype),"constructor",this).call(this,e),this.el.src=e.src}return a(t,e),o(t,[{key:"getPlaybackType",value:function(){return u["default"].NO_OP}},{key:"name",get:function(){return"html_img"}},{key:"tagName",get:function(){return"img"}},{key:"attributes",get:function(){return{"data-html-img":""}}}]),o(t,[{key:"render",value:function(){var e=d["default"].getStyleFor(h["default"]);return this.$el.append(e),this}}]),t}(u["default"]);t["default"]=p,p.canPlay=function(e){return!!e.match(/(.*).(png|jpg|jpeg|gif|bmp)/)},e.exports=t["default"]},function(e,t,n){"use strict";e.exports=n(110)},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{"default":e}}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),s=function(e,t,n){for(var i=!0;i;){var r=e,a=t,o=n;i=!1,null===r&&(r=Function.prototype);var s=Object.getOwnPropertyDescriptor(r,a);if(void 0!==s){if("value"in s)return s.value;var l=s.get;if(void 0===l)return;return l.call(o)}var u=Object.getPrototypeOf(r);if(null===u)return;e=u,t=a,n=o,i=!0,s=u=void 0}},l=n(3),u=n(9),c=i(u),d=n(5),f=i(d),h=n(4),p=i(h),v=n(1),g=i(v),y=n(134),m=i(y),b=n(143),E=i(b),k=function(e){function t(e){r(this,t),s(Object.getPrototypeOf(t.prototype),"constructor",this).call(this,e),this.options=e}return a(t,e),o(t,[{key:"getNoOpMessage",value:function(){var e={en:"Your browser does not support the playback of this video. Please try using a different browser.",es:"Su navegador no soporta la reproducción de un video. Por favor, trate de usar un navegador diferente.",pt:"Seu navegador não supporta a reprodução deste video. Por favor, tente usar um navegador diferente."};return e["en-us"]=e.en,e["es-419"]=e.es,e["pt-br"]=e.pt,e[(0,l.getBrowserLanguage)()]||e.en}},{key:"name",get:function(){return"no_op"}},{key:"template",get:function(){return(0,f["default"])(E["default"])}},{key:"attributes",get:function(){return{"data-no-op":""}}}]),o(t,[{key:"render",value:function(){var e=p["default"].getStyleFor(m["default"]);return this.$el.html(this.template({message:this.options.playbackNotSupportedMessage||this.getNoOpMessage()})),this.$el.append(e),this.animate(),this.trigger(g["default"].PLAYBACK_READY,this.name),this}},{key:"noise",value:function(){var e=this.context.createImageData(this.context.canvas.width,this.context.canvas.height);try{var t=new Uint32Array(e.data.buffer)}catch(n){for(var t=new Uint32Array(this.context.canvas.width*this.context.canvas.height*4),i=e.data,r=0;r<i.length;r++)t[r]=i[r]}for(var a=t.length,o=0,s=0,l=6*Math.random()+4,r=0;a>r;){if(0>o){o=l*Math.random();var u=Math.pow(Math.random(),.4);s=255*u<<24}o-=1,t[r++]=s}this.context.putImageData(e,0,0)}},{key:"loop",value:function(){var e=this;this.noise(),(0,l.requestAnimationFrame)(function(){return e.loop()})}},{key:"animate",value:function(){this.canvas=this.$el.find("canvas[data-no-op-canvas]")[0],this.context=this.canvas.getContext("2d"),this.loop()}}]),t}(c["default"]);t["default"]=k,k.canPlay=function(e){return!0},e.exports=t["default"]},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{"default":e}}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),s=function(e,t,n){for(var i=!0;i;){var r=e,a=t,o=n;i=!1,null===r&&(r=Function.prototype);var s=Object.getOwnPropertyDescriptor(r,a);if(void 0!==s){if("value"in s)return s.value;var l=s.get;if(void 0===l)return;return l.call(o)}var u=Object.getPrototypeOf(r);if(null===u)return;e=u,t=a,n=o,i=!0,s=u=void 0}},l=n(17),u=i(l),c=n(1),d=i(c),f=n(9),h=i(f),p=n(11),v=i(p),g=function(e){function t(e){r(this,t),s(Object.getPrototypeOf(t.prototype),"constructor",this).call(this,e)}return a(t,e),o(t,[{key:"name",get:function(){return"click_to_pause"}}]),o(t,[{key:"bindEvents",value:function(){this.options.chromeless||v["default"].isMobile||(this.listenTo(this.container,d["default"].CONTAINER_CLICK,this.click),this.listenTo(this.container,d["default"].CONTAINER_SETTINGSUPDATE,this.settingsUpdate))}},{key:"click",value:function(){(this.container.getPlaybackType()!==h["default"].LIVE||this.container.isDvrEnabled())&&(this.container.isPlaying()?this.container.pause():this.container.play())}},{key:"settingsUpdate",value:function(){this.container.$el.removeClass("pointer-enabled"),(this.container.getPlaybackType()!==h["default"].LIVE||this.container.isDvrEnabled())&&this.container.$el.addClass("pointer-enabled")}}]),t}(u["default"]);t["default"]=g,e.exports=t["default"]},function(e,t,n){"use strict";e.exports=n(111)},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{"default":e}}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),s=function(e,t,n){for(var i=!0;i;){var r=e,a=t,o=n;i=!1,null===r&&(r=Function.prototype);var s=Object.getOwnPropertyDescriptor(r,a);if(void 0!==s){if("value"in s)return s.value;var l=s.get;if(void 0===l)return;return l.call(o)}var u=Object.getPrototypeOf(r);if(null===u)return;e=u,t=a,n=o,i=!0,s=u=void 0}},l=n(32),u=i(l),c=n(5),d=i(c),f=n(9),h=i(f),p=n(4),v=i(p),g=n(1),y=i(g),m=n(135),b=i(m),E=n(144),k=i(E),A=n(2),_=(i(A),function(e){function t(e){r(this,t),s(Object.getPrototypeOf(t.prototype),"constructor",this).call(this,e),this.core=e,this.settingsUpdate()}return a(t,e),o(t,[{key:"template",get:function(){return(0,d["default"])(k["default"])}},{key:"name",get:function(){return"dvr_controls"}},{key:"events",get:function(){return{"click .live-button":"click"}}},{key:"attributes",get:function(){return{"class":"dvr-controls","data-dvr-controls":""}}}]),o(t,[{key:"bindEvents",value:function(){this.listenToOnce(this.core.mediaControl.container,y["default"].CONTAINER_TIMEUPDATE,this.render),this.listenTo(this.core.mediaControl,y["default"].MEDIACONTROL_RENDERED,this.settingsUpdate),this.listenTo(this.core.mediaControl.container,y["default"].CONTAINER_PLAYBACKDVRSTATECHANGED,this.dvrChanged),this.listenTo(this.core,y["default"].CORE_OPTIONS_CHANGE,this.render)}},{key:"dvrChanged",value:function(e){this.settingsUpdate(),this.core.mediaControl.$el.addClass("live"),e?(this.core.mediaControl.$el.addClass("dvr"),this.core.mediaControl.$el.find(".media-control-indicator[data-position], .media-control-indicator[data-duration]").hide()):this.core.mediaControl.$el.removeClass("dvr")}},{key:"click",value:function(){this.core.mediaControl.container.isPlaying()||this.core.mediaControl.container.play(),this.core.mediaControl.$el.hasClass("dvr")&&this.core.mediaControl.container.seek(-1)}},{key:"settingsUpdate",value:function(){var e=this;this.stopListening(),this.shouldRender()&&(this.render(),this.$el.click(function(){return e.click()})),this.bindEvents()}},{key:"shouldRender",value:function(){var e=void 0===this.core.options.useDvrControls||!!this.core.options.useDvrControls;return e&&this.core.getPlaybackType()===h["default"].LIVE}},{key:"render",value:function(){return this.style=this.style||v["default"].getStyleFor(b["default"],{baseUrl:this.core.options.baseUrl}),this.$el.html(this.template()),this.$el.append(this.style),this.shouldRender()?(this.core.mediaControl.$el.addClass("live"),this.core.mediaControl.$(".media-control-left-panel[data-media-control]").append(this.$el),this.core.mediaControl.seekTime.showDuration()):this.core.mediaControl.seekTime.hideDuration(),this}}]),t}(u["default"]));t["default"]=_,e.exports=t["default"]},function(e,t,n){"use strict";e.exports=n(113)},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{"default":e}}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),s=function(e,t,n){for(var i=!0;i;){var r=e,a=t,o=n;i=!1,null===r&&(r=Function.prototype);var s=Object.getOwnPropertyDescriptor(r,a);if(void 0!==s){if("value"in s)return s.value;var l=s.get;if(void 0===l)return;return l.call(o)}var u=Object.getPrototypeOf(r);if(null===u)return;e=u,t=a,n=o,i=!0,s=u=void 0}},l=n(30),u=i(l),c=n(1),d=i(c),f=n(2),h=i(f),p=function(e){function t(e){r(this,t),s(Object.getPrototypeOf(t.prototype),"constructor",this).call(this,e),this.oldIcon=(0,h["default"])('link[rel="shortcut icon"]'),this.configure()}return a(t,e),o(t,[{key:"name",get:function(){return"favicon"}}]),o(t,[{key:"configure",value:function(){this.core.options.changeFavicon?(this.stopListening(this.core,d["default"].CORE_OPTIONS_CHANGE),
  this.enable()):(this.disable(),this.listenTo(this.core,d["default"].CORE_OPTIONS_CHANGE,this.configure))}},{key:"bindEvents",value:function(){this.listenTo(this.core,d["default"].CORE_OPTIONS_CHANGE,this.configure),this.listenTo(this.core.mediaControl,d["default"].MEDIACONTROL_CONTAINERCHANGED,this.containerChanged),this.core.mediaControl.container&&this.containerChanged()}},{key:"containerChanged",value:function(){this.listenTo(this.core.mediaControl.container,d["default"].CONTAINER_PLAY,this.setPlayIcon),this.listenTo(this.core.mediaControl.container,d["default"].CONTAINER_PAUSE,this.setPauseIcon),this.listenTo(this.core.mediaControl.container,d["default"].CONTAINER_STOP,this.resetIcon),this.listenTo(this.core.mediaControl.container,d["default"].CONTAINER_ENDED,this.resetIcon),this.listenTo(this.core.mediaControl.container,d["default"].CONTAINER_ERROR,this.resetIcon)}},{key:"disable",value:function(){s(Object.getPrototypeOf(t.prototype),"disable",this).call(this),this.resetIcon()}},{key:"createIcon",value:function(e){var t=(0,h["default"])("<canvas/>");t[0].width=32,t[0].height=32;var n=t[0].getContext("2d");n.fillStyle="#000",n.font="25px Player",n.fillText(String.fromCharCode(e),5,26);var i=(0,h["default"])('<link rel="shortcut icon" type="image/png"/>');return i.attr("href",t[0].toDataURL("image/png")),i}},{key:"setPlayIcon",value:function(){this.playIcon||(this.playIcon=this.createIcon(57345)),this.changeIcon(this.playIcon)}},{key:"setPauseIcon",value:function(){this.pauseIcon||(this.pauseIcon=this.createIcon(57346)),this.changeIcon(this.pauseIcon)}},{key:"resetIcon",value:function(){this.currentIcon&&this.currentIcon.remove(),(0,h["default"])("head").append(this.oldIcon)}},{key:"changeIcon",value:function(e){e&&(this.oldIcon.remove(),this.currentIcon&&this.currentIcon.remove(),this.currentIcon=e,(0,h["default"])("head").append(e))}}]),t}(u["default"]);t["default"]=p,e.exports=t["default"]},function(e,t,n){"use strict";e.exports=n(115)},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{"default":e}}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),s=function(e,t,n){for(var i=!0;i;){var r=e,a=t,o=n;i=!1,null===r&&(r=Function.prototype);var s=Object.getOwnPropertyDescriptor(r,a);if(void 0!==s){if("value"in s)return s.value;var l=s.get;if(void 0===l)return;return l.call(o)}var u=Object.getPrototypeOf(r);if(null===u)return;e=u,t=a,n=o,i=!0,s=u=void 0}},l=n(17),u=i(l),c=n(1),d=i(c),f=function(e){function t(e){r(this,t),s(Object.getPrototypeOf(t.prototype),"constructor",this).call(this,e),this.container.options.gaAccount&&(this.account=this.container.options.gaAccount,this.trackerName=this.container.options.gaTrackerName?this.container.options.gaTrackerName+".":"Clappr.",this.domainName=this.container.options.gaDomainName,this.currentHDState=void 0,this.embedScript())}return a(t,e),o(t,[{key:"name",get:function(){return"google_analytics"}}]),o(t,[{key:"embedScript",value:function(){var e=this;if(window._gat)this.addEventListeners();else{var t=document.createElement("script");t.setAttribute("type","text/javascript"),t.setAttribute("async","async"),t.setAttribute("src","//www.google-analytics.com/ga.js"),t.onload=function(){return e.addEventListeners()},document.body.appendChild(t)}}},{key:"addEventListeners",value:function(){var e=this;this.container&&(this.listenTo(this.container,d["default"].CONTAINER_READY,this.onReady),this.listenTo(this.container,d["default"].CONTAINER_PLAY,this.onPlay),this.listenTo(this.container,d["default"].CONTAINER_STOP,this.onStop),this.listenTo(this.container,d["default"].CONTAINER_PAUSE,this.onPause),this.listenTo(this.container,d["default"].CONTAINER_ENDED,this.onEnded),this.listenTo(this.container,d["default"].CONTAINER_STATE_BUFFERING,this.onBuffering),this.listenTo(this.container,d["default"].CONTAINER_STATE_BUFFERFULL,this.onBufferFull),this.listenTo(this.container,d["default"].CONTAINER_ENDED,this.onEnded),this.listenTo(this.container,d["default"].CONTAINER_ERROR,this.onError),this.listenTo(this.container,d["default"].CONTAINER_PLAYBACKSTATE,this.onPlaybackChanged),this.listenTo(this.container,d["default"].CONTAINER_VOLUME,function(t){return e.onVolumeChanged(t)}),this.listenTo(this.container,d["default"].CONTAINER_SEEK,function(t){return e.onSeek(t)}),this.listenTo(this.container,d["default"].CONTAINER_FULL_SCREEN,this.onFullscreen),this.listenTo(this.container,d["default"].CONTAINER_HIGHDEFINITIONUPDATE,this.onHD),this.listenTo(this.container,d["default"].CONTAINER_PLAYBACKDVRSTATECHANGED,this.onDVR)),_gaq.push([this.trackerName+"_setAccount",this.account]),this.domainName&&_gaq.push([this.trackerName+"_setDomainName",this.domainName])}},{key:"onReady",value:function(){this.push(["Video","Playback",this.container.playback.name])}},{key:"onPlay",value:function(){this.push(["Video","Play",this.container.playback.src])}},{key:"onStop",value:function(){this.push(["Video","Stop",this.container.playback.src])}},{key:"onEnded",value:function(){this.push(["Video","Ended",this.container.playback.src])}},{key:"onBuffering",value:function(){this.push(["Video","Buffering",this.container.playback.src])}},{key:"onBufferFull",value:function(){this.push(["Video","Bufferfull",this.container.playback.src])}},{key:"onError",value:function(){this.push(["Video","Error",this.container.playback.src])}},{key:"onHD",value:function(e){var t=e?"ON":"OFF";t!==this.currentHDState&&(this.currentHDState=t,this.push(["Video","HD - "+t,this.container.playback.src]))}},{key:"onPlaybackChanged",value:function(e){null!==e.type&&this.push(["Video","Playback Type - "+e.type,this.container.playback.src])}},{key:"onDVR",value:function(e){var t=e?"ON":"OFF";this.push(["Interaction","DVR - "+t,this.container.playback.src])}},{key:"onPause",value:function(){this.push(["Video","Pause",this.container.playback.src])}},{key:"onSeek",value:function(){this.push(["Video","Seek",this.container.playback.src])}},{key:"onVolumeChanged",value:function(){this.push(["Interaction","Volume",this.container.playback.src])}},{key:"onFullscreen",value:function(){this.push(["Interaction","Fullscreen",this.container.playback.src])}},{key:"push",value:function(e){var t=[this.trackerName+"_trackEvent"].concat(e);_gaq.push(t)}}]),t}(u["default"]);t["default"]=f,e.exports=t["default"]},function(e,t,n){"use strict";e.exports=n(117)},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{"default":e}}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var a=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),o=n(31),s=i(o),l="font-weight: bold; font-size: 13px;",u="color: #006600;"+l,c="color: #0000ff;"+l,d="color: #ff8000;"+l,f="color: #ff0000;"+l,h=0,p=1,v=2,g=3,y=4,m=[c,u,d,f,f],b=["debug","info","warn","error","disabled"],E=function(){function e(){var t=this,n=arguments.length<=0||void 0===arguments[0]?p:arguments[0],i=arguments.length<=1||void 0===arguments[1]?y:arguments[1];r(this,e),this.kibo=new s["default"],this.kibo.down(["ctrl shift d"],function(){return t.onOff()}),this.BLACKLIST=["timeupdate","playback:timeupdate","playback:progress","container:hover","container:timeupdate","container:progress"],this.level=n,this.offLevel=i}return a(e,[{key:"debug",value:function(e){this.log(e,h,Array.prototype.slice.call(arguments,1))}},{key:"info",value:function(e){this.log(e,p,Array.prototype.slice.call(arguments,1))}},{key:"warn",value:function(e){this.log(e,v,Array.prototype.slice.call(arguments,1))}},{key:"error",value:function(e){this.log(e,g,Array.prototype.slice.call(arguments,1))}},{key:"onOff",value:function(){this.level===this.offLevel?this.level=this.previousLevel:(this.previousLevel=this.level,this.level=this.offLevel),window.console&&window.console.log&&console.log("%c[Clappr.Log] set log level to "+b[this.level],d)}},{key:"level",value:function(e){this.level=e}},{key:"log",value:function(e,t,n){if(!(this.BLACKLIST.indexOf(n[0])>=0||t<this.level)){n||(n=e,e=null);var i="",r=m[t];e&&(i="["+e+"]"),window.console&&window.console.log&&console.log.apply(console,["%c["+b[t]+"]"+i,r].concat(n))}}}]),e}();t["default"]=E,E.LEVEL_DEBUG=h,E.LEVEL_INFO=p,E.LEVEL_WARN=v,E.LEVEL_ERROR=g,E.getInstance=function(){return void 0===this._instance&&(this._instance=new this,this._instance.previousLevel=this._instance.level,this._instance.level=this._instance.offLevel),this._instance},E.setLevel=function(e){this.getInstance().level=e},E.debug=function(e){this.getInstance().debug.apply(this.getInstance(),arguments)},E.info=function(e){this.getInstance().info.apply(this.getInstance(),arguments)},E.warn=function(e){this.getInstance().warn.apply(this.getInstance(),arguments)},E.error=function(e){this.getInstance().error.apply(this.getInstance(),arguments)},e.exports=t["default"]},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{"default":e}}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),s=function(e,t,n){for(var i=!0;i;){var r=e,a=t,o=n;i=!1,null===r&&(r=Function.prototype);var s=Object.getOwnPropertyDescriptor(r,a);if(void 0!==s){if("value"in s)return s.value;var l=s.get;if(void 0===l)return;return l.call(o)}var u=Object.getPrototypeOf(r);if(null===u)return;e=u,t=a,n=o,i=!0,s=u=void 0}},l=n(18),u=i(l),c=n(1),d=i(c),f=n(4),h=i(f),p=n(5),v=i(p),g=n(14),y=i(g),m=n(136),b=i(m),E=n(145),k=i(E),A=n(2),_=i(A),T=function(e){function t(e){r(this,t),s(Object.getPrototypeOf(t.prototype),"constructor",this).call(this,e),this.container.disableMediaControl(),this.render(),this.bufferFull=!1}return a(t,e),o(t,[{key:"name",get:function(){return"poster"}},{key:"template",get:function(){return(0,v["default"])(k["default"])}},{key:"attributes",get:function(){return{"class":"player-poster","data-poster":""}}},{key:"events",get:function(){return{click:"clicked"}}}]),o(t,[{key:"bindEvents",value:function(){this.listenTo(this.container,d["default"].CONTAINER_STATE_BUFFERING,this.onBuffering),this.listenTo(this.container,d["default"].CONTAINER_STATE_BUFFERFULL,this.onBufferfull),this.listenTo(this.container,d["default"].CONTAINER_STOP,this.onStop),this.listenTo(this.container,d["default"].CONTAINER_PLAY,this.onPlay),this.listenTo(this.container,d["default"].CONTAINER_ENDED,this.onStop),this.listenTo(this.container,d["default"].CONTAINER_OPTIONS_CHANGE,this.render),y["default"].on(this.options.playerId+":"+d["default"].PLAYER_RESIZE,this.updateSize,this)}},{key:"stopListening",value:function(){s(Object.getPrototypeOf(t.prototype),"stopListening",this).call(this),y["default"].off(this.options.playerId+":"+d["default"].PLAYER_RESIZE,this.updateSize,this)}},{key:"onBuffering",value:function(){this.bufferFull=!1,this.hidePlayButton()}},{key:"onPlay",value:function(){this.bufferFull&&(this.$el.hide(),this.container.enableMediaControl())}},{key:"onBufferfull",value:function(){this.bufferFull=!0,("html5_video"!==this.container.playback.name||this.container.isPlaying())&&(this.$el.hide(),this.container.enableMediaControl())}},{key:"onStop",value:function(){this.$el.show(),this.container.disableMediaControl(),this.showPlayButton()}},{key:"showPlayButton",value:function(){this.options.chromeless||(this.$playButton.show(),this.updateSize())}},{key:"hidePlayButton",value:function(){this.$playButton.hide()}},{key:"clicked",value:function(){return this.options.chromeless||(this.container.play(),this.hidePlayButton()),!1}},{key:"updateSize",value:function(){if("html_img"!==this.container.playback.name){var e=this.$el.height();this.$el.css({fontSize:e}),this.$playWrapper.is(":visible")&&this.$playWrapper.css({marginTop:-(this.$playWrapper.height()/2)})}}},{key:"render",value:function(){var e=this;if("html_img"!==this.container.playback.name){var t=h["default"].getStyleFor(b["default"],{baseUrl:this.options.baseUrl});if(this.$el.html(this.template()),this.$el.append(t),this.options.poster){var n=(0,_["default"])('<div data-poster class="poster-background"></div>');n.css({"background-image":"url("+this.options.poster+")"}),this.$el.prepend(n)}return this.container.$el.append(this.el),this.$playButton=this.$el.find(".poster-icon"),this.$playWrapper=this.$el.find(".play-wrapper"),setTimeout(function(){return e.updateSize()},0),this.options.chromeless&&(this.hidePlayButton(),this.$el.css({cursor:"initial"})),this}}}]),t}(u["default"]);t["default"]=T,e.exports=t["default"]},function(e,t,n){"use strict";e.exports=n(122)},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{"default":e}}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),s=function(e,t,n){for(var i=!0;i;){var r=e,a=t,o=n;i=!1,null===r&&(r=Function.prototype);var s=Object.getOwnPropertyDescriptor(r,a);if(void 0!==s){if("value"in s)return s.value;var l=s.get;if(void 0===l)return;return l.call(o)}var u=Object.getPrototypeOf(r);if(null===u)return;e=u,t=a,n=o,i=!0,s=u=void 0}},l=n(18),u=i(l),c=n(1),d=i(c),f=n(4),h=i(f),p=n(5),v=i(p),g=n(146),y=i(g),m=n(137),b=i(m),E=function(e){function t(e){r(this,t),s(Object.getPrototypeOf(t.prototype),"constructor",this).call(this,e),this.template=(0,v["default"])(y["default"]),this.showTimeout=null,this.listenTo(this.container,d["default"].CONTAINER_STATE_BUFFERING,this.onBuffering),this.listenTo(this.container,d["default"].CONTAINER_STATE_BUFFERFULL,this.onBufferFull),this.listenTo(this.container,d["default"].CONTAINER_STOP,this.onStop),this.listenTo(this.container,d["default"].CONTAINER_ENDED,this.onStop),this.listenTo(this.container,d["default"].CONTAINER_ERROR,this.onStop),this.render()}return a(t,e),o(t,[{key:"name",get:function(){return"spinner"}},{key:"attributes",get:function(){return{"data-spinner":"","class":"spinner-three-bounce"}}}]),o(t,[{key:"onBuffering",value:function(){this.show()}},{key:"onBufferFull",value:function(){this.hide()}},{key:"onStop",value:function(){this.hide()}},{key:"show",value:function(){var e=this;null===this.showTimeout&&(this.showTimeout=setTimeout(function(){return e.$el.show()},300))}},{key:"hide",value:function(){null!==this.showTimeout&&(clearTimeout(this.showTimeout),this.showTimeout=null),this.$el.hide()}},{key:"render",value:function(){this.$el.html(this.template());var e=h["default"].getStyleFor(b["default"]);return this.container.$el.append(e),this.container.$el.append(this.$el),this.$el.hide(),this}}]),t}(u["default"]);t["default"]=E,e.exports=t["default"]},function(e,t,n){"use strict";e.exports=n(124)},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{"default":e}}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),s=function(e,t,n){for(var i=!0;i;){var r=e,a=t,o=n;i=!1,null===r&&(r=Function.prototype);var s=Object.getOwnPropertyDescriptor(r,a);if(void 0!==s){if("value"in s)return s.value;var l=s.get;if(void 0===l)return;return l.call(o)}var u=Object.getPrototypeOf(r);if(null===u)return;e=u,t=a,n=o,i=!0,s=u=void 0}},l=n(17),u=i(l),c=n(1),d=i(c),f=n(2),h=i(f),p=function(e){function t(e){r(this,t),s(Object.getPrototypeOf(t.prototype),"constructor",this).call(this,e),this.setInitialAttrs(),this.reportInterval=this.options.reportInterval||5e3,this.state="IDLE"}return a(t,e),o(t,[{key:"name",get:function(){return"stats"}}]),o(t,[{key:"bindEvents",value:function(){this.listenTo(this.container.playback,d["default"].PLAYBACK_PLAY,this.onPlay),this.listenTo(this.container,d["default"].CONTAINER_STOP,this.onStop),this.listenTo(this.container,d["default"].CONTAINER_DESTROYED,this.onStop),this.listenTo(this.container,d["default"].CONTAINER_STATE_BUFFERING,this.onBuffering),this.listenTo(this.container,d["default"].CONTAINER_STATE_BUFFERFULL,this.onBufferFull),this.listenTo(this.container,d["default"].CONTAINER_STATS_ADD,this.onStatsAdd),this.listenTo(this.container,d["default"].CONTAINER_BITRATE,this.onStatsAdd),this.listenTo(this.container.playback,d["default"].PLAYBACK_STATS_ADD,this.onStatsAdd)}},{key:"setInitialAttrs",value:function(){this.firstPlay=!0,this.startupTime=0,this.rebufferingTime=0,this.watchingTime=0,this.rebuffers=0,this.externalMetrics={}}},{key:"onPlay",value:function(){this.state="PLAYING",this.watchingTimeInit=Date.now(),this.intervalId||(this.intervalId=setInterval(this.report.bind(this),this.reportInterval))}},{key:"onStop",value:function(){clearInterval(this.intervalId),this.intervalId=void 0,this.state="STOPPED"}},{key:"onBuffering",value:function(){this.firstPlay?this.startupTimeInit=Date.now():this.rebufferingTimeInit=Date.now(),this.state="BUFFERING",this.rebuffers++}},{key:"onBufferFull",value:function(){this.firstPlay&&this.startupTimeInit?(this.firstPlay=!1,this.startupTime=Date.now()-this.startupTimeInit,this.watchingTimeInit=Date.now()):this.rebufferingTimeInit&&(this.rebufferingTime+=this.getRebufferingTime()),this.rebufferingTimeInit=void 0,this.state="PLAYING"}},{key:"getRebufferingTime",value:function(){return Date.now()-this.rebufferingTimeInit}},{key:"getWatchingTime",value:function(){var e=Date.now()-this.watchingTimeInit;return e-this.rebufferingTime}},{key:"isRebuffering",value:function(){return!!this.rebufferingTimeInit}},{key:"onStatsAdd",value:function(e){h["default"].extend(this.externalMetrics,e)}},{key:"getStats",value:function(){var e={startupTime:this.startupTime,rebuffers:this.rebuffers,rebufferingTime:this.isRebuffering()?this.rebufferingTime+this.getRebufferingTime():this.rebufferingTime,watchingTime:this.isRebuffering()?this.getWatchingTime()-this.getRebufferingTime():this.getWatchingTime()};return h["default"].extend(e,this.externalMetrics),e}},{key:"report",value:function(){this.container.statsReport(this.getStats())}}]),t}(u["default"]);t["default"]=p,e.exports=t["default"]},function(e,t,n){"use strict";e.exports=n(126)},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{"default":e}}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),s=function(e,t,n){for(var i=!0;i;){var r=e,a=t,o=n;i=!1,null===r&&(r=Function.prototype);var s=Object.getOwnPropertyDescriptor(r,a);if(void 0!==s){if("value"in s)return s.value;var l=s.get;if(void 0===l)return;return l.call(o)}var u=Object.getPrototypeOf(r);if(null===u)return;e=u,t=a,n=o,i=!0,s=u=void 0}},l=n(18),u=i(l),c=n(1),d=i(c),f=n(4),h=i(f),p=n(5),v=i(p),g=n(138),y=i(g),m=n(147),b=i(m),E=function(e){function t(e){r(this,t),s(Object.getPrototypeOf(t.prototype),"constructor",this).call(this,e),this.configure()}return a(t,e),o(t,[{key:"name",get:function(){return"watermark"}},{key:"template",get:function(){return(0,v["default"])(b["default"])}}]),o(t,[{key:"bindEvents",value:function(){this.listenTo(this.container,d["default"].CONTAINER_PLAY,this.onPlay),this.listenTo(this.container,d["default"].CONTAINER_STOP,this.onStop),this.listenTo(this.container,d["default"].CONTAINER_OPTIONS_CHANGE,this.configure)}},{key:"configure",value:function(){this.position=this.options.position||"bottom-right",this.options.watermark?(this.imageUrl=this.options.watermark,this.render()):this.$el.remove()}},{key:"onPlay",value:function(){this.hidden||this.$el.show()}},{key:"onStop",value:function(){this.$el.hide()}},{key:"render",value:function(){this.$el.hide();var e={position:this.position,imageUrl:this.imageUrl};this.$el.html(this.template(e));var t=h["default"].getStyleFor(y["default"]);return this.container.$el.append(t),this.container.$el.append(this.$el),this}}]),t}(u["default"]);t["default"]=E,e.exports=t["default"]},function(e,t,n){t=e.exports=n(6)(),t.push([e.id,".container[data-container]{position:absolute;background-color:#000;height:100%;width:100%}.container[data-container].pointer-enabled{cursor:pointer}",""])},function(e,t,n){t=e.exports=n(6)(),t.push([e.id,'[data-player]{-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;-o-user-select:none;user-select:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;-webkit-transform:translateZ(0);transform:translateZ(0);position:relative;margin:0;padding:0;border:0;font-style:normal;font-weight:400;text-align:center;overflow:hidden;font-size:100%;font-family:lucida grande,tahoma,verdana,arial,sans-serif;text-shadow:0 0 0;box-sizing:border-box}[data-player] a,[data-player] abbr,[data-player] acronym,[data-player] address,[data-player] applet,[data-player] article,[data-player] aside,[data-player] audio,[data-player] b,[data-player] big,[data-player] blockquote,[data-player] canvas,[data-player] caption,[data-player] center,[data-player] cite,[data-player] code,[data-player] dd,[data-player] del,[data-player] details,[data-player] dfn,[data-player] div,[data-player] dl,[data-player] dt,[data-player] em,[data-player] embed,[data-player] fieldset,[data-player] figcaption,[data-player] figure,[data-player] footer,[data-player] form,[data-player] h1,[data-player] h2,[data-player] h3,[data-player] h4,[data-player] h5,[data-player] h6,[data-player] header,[data-player] hgroup,[data-player] i,[data-player] iframe,[data-player] img,[data-player] ins,[data-player] kbd,[data-player] label,[data-player] legend,[data-player] li,[data-player] mark,[data-player] menu,[data-player] nav,[data-player] object,[data-player] ol,[data-player] output,[data-player] p,[data-player] pre,[data-player] q,[data-player] ruby,[data-player] s,[data-player] samp,[data-player] section,[data-player] small,[data-player] span,[data-player] strike,[data-player] strong,[data-player] sub,[data-player] summary,[data-player] sup,[data-player] table,[data-player] tbody,[data-player] td,[data-player] tfoot,[data-player] th,[data-player] thead,[data-player] time,[data-player] tr,[data-player] tt,[data-player] u,[data-player] ul,[data-player] var,[data-player] video{margin:0;padding:0;border:0;font:inherit;font-size:100%;vertical-align:baseline}[data-player] table{border-collapse:collapse;border-spacing:0}[data-player] caption,[data-player] td,[data-player] th{text-align:left;font-weight:400;vertical-align:middle}[data-player] blockquote,[data-player] q{quotes:none}[data-player] blockquote:after,[data-player] blockquote:before,[data-player] q:after,[data-player] q:before{content:"";content:none}[data-player] a img{border:none}[data-player]:focus{outline:0}[data-player] *{max-width:none;box-sizing:inherit;float:none}[data-player] div{display:block}[data-player].fullscreen{width:100%!important;height:100%!important}[data-player].nocursor{cursor:none}.clappr-style{display:none!important}',""])},function(e,t,n){t=e.exports=n(6)(),t.push([e.id,"@font-face{font-family:Player;src:url("+n(21)+");src:url("+n(21)+'?#iefix) format("embedded-opentype"),url('+n(44)+') format("truetype"),url('+n(43)+'#player) format("svg")}.media-control-notransition{-webkit-transition:none !important false;transition:none!important}.media-control[data-media-control]{position:absolute;width:100%;height:100%;z-index:9999;pointer-events:none}.media-control[data-media-control].dragging{pointer-events:auto;cursor:-webkit-grabbing!important;cursor:grabbing!important;cursor:url('+n(45)+"),move}.media-control[data-media-control].dragging *{cursor:-webkit-grabbing!important;cursor:grabbing!important;cursor:url("+n(45)+'),move}.media-control[data-media-control] .media-control-background[data-background]{position:absolute;height:40%;width:100%;bottom:0;background:-owg-linear-gradient(transparent,rgba(0,0,0,.9));background:-webkit-linear-gradient(transparent,rgba(0,0,0,.9));-pie-background:-pie-linear-gradient(transparent,rgba(0,0,0,.9));background:linear-gradient(transparent,rgba(0,0,0,.9));-webkit-transition:opacity .6s ease-out;transition:opacity .6s ease-out}.media-control[data-media-control] .media-control-icon{font-family:Player;font-weight:400;font-style:normal;font-size:26px;line-height:32px;letter-spacing:0;speak:none;color:#fff;opacity:.5;vertical-align:middle;text-align:left;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;-webkit-transition:all .1s ease;transition:all .1s ease}.media-control[data-media-control] .media-control-icon:hover{color:#fff;opacity:.75;text-shadow:hsla(0,0%,100%,.8) 0 0 5px}.media-control[data-media-control].media-control-hide .media-control-background[data-background]{opacity:0}.media-control[data-media-control].media-control-hide .media-control-layer[data-controls]{bottom:-50px}.media-control[data-media-control].media-control-hide .media-control-layer[data-controls] .bar-container[data-seekbar] .bar-scrubber[data-seekbar]{opacity:0}.media-control[data-media-control] .media-control-layer[data-controls]{position:absolute;bottom:7px;width:100%;height:32px;vertical-align:middle;pointer-events:auto;-webkit-transition:bottom .4s ease-out;transition:bottom .4s ease-out}.media-control[data-media-control] .media-control-layer[data-controls] .media-control-left-panel[data-media-control]{position:absolute;top:0;left:4px;height:100%}.media-control[data-media-control] .media-control-layer[data-controls] .media-control-center-panel[data-media-control]{height:100%;text-align:center;line-height:32px}.media-control[data-media-control] .media-control-layer[data-controls] .media-control-right-panel[data-media-control]{position:absolute;top:0;right:4px;height:100%}.media-control[data-media-control] .media-control-layer[data-controls] button.media-control-button{background-color:transparent;border:0;margin:0 6px;padding:0;cursor:pointer;display:inline-block}.media-control[data-media-control] .media-control-layer[data-controls] button.media-control-button:focus{outline:none}.media-control[data-media-control] .media-control-layer[data-controls] button.media-control-button[data-play]{float:left;height:100%;font-size:20px}.media-control[data-media-control] .media-control-layer[data-controls] button.media-control-button[data-play]:before{content:"\\E001"}.media-control[data-media-control] .media-control-layer[data-controls] button.media-control-button[data-pause]{float:left;height:100%;font-size:20px}.media-control[data-media-control] .media-control-layer[data-controls] button.media-control-button[data-pause]:before{content:"\\E002"}.media-control[data-media-control] .media-control-layer[data-controls] button.media-control-button[data-stop]{float:left;height:100%;font-size:20px}.media-control[data-media-control] .media-control-layer[data-controls] button.media-control-button[data-stop]:before{content:"\\E003"}.media-control[data-media-control] .media-control-layer[data-controls] button.media-control-button[data-fullscreen]{float:right;background-color:transparent;border:0;height:100%}.media-control[data-media-control] .media-control-layer[data-controls] button.media-control-button[data-fullscreen]:before{content:"\\E006"}.media-control[data-media-control] .media-control-layer[data-controls] button.media-control-button[data-fullscreen].shrink:before{content:"\\E007"}.media-control[data-media-control] .media-control-layer[data-controls] button.media-control-button[data-hd-indicator]{cursor:default;float:right;background-color:transparent;border:0;height:100%;opacity:0}.media-control[data-media-control] .media-control-layer[data-controls] button.media-control-button[data-hd-indicator]:before{content:"\\E008"}.media-control[data-media-control] .media-control-layer[data-controls] button.media-control-button[data-hd-indicator].enabled{opacity:1}.media-control[data-media-control] .media-control-layer[data-controls] button.media-control-button[data-hd-indicator].enabled:hover{opacity:1;text-shadow:none}.media-control[data-media-control] .media-control-layer[data-controls] button.media-control-button[data-playpause]{float:left;height:100%;font-size:20px}.media-control[data-media-control] .media-control-layer[data-controls] button.media-control-button[data-playpause]:before{content:"\\E001"}.media-control[data-media-control] .media-control-layer[data-controls] button.media-control-button[data-playpause].playing:before{content:"\\E002"}.media-control[data-media-control] .media-control-layer[data-controls] button.media-control-button[data-playpause].paused:before{content:"\\E001"}.media-control[data-media-control] .media-control-layer[data-controls] button.media-control-button[data-playstop]{float:left;height:100%;font-size:20px}.media-control[data-media-control] .media-control-layer[data-controls] button.media-control-button[data-playstop]:before{content:"\\E001"}.media-control[data-media-control] .media-control-layer[data-controls] button.media-control-button[data-playstop].playing:before{content:"\\E003"}.media-control[data-media-control] .media-control-layer[data-controls] button.media-control-button[data-playstop].stopped:before{content:"\\E001"}.media-control[data-media-control] .media-control-layer[data-controls] .media-control-indicator[data-duration],.media-control[data-media-control] .media-control-layer[data-controls] .media-control-indicator[data-position]{display:inline-block;font-size:10px;color:#fff;cursor:default;line-height:32px;position:relative}.media-control[data-media-control] .media-control-layer[data-controls] .media-control-indicator[data-position]{margin-left:6px}.media-control[data-media-control] .media-control-layer[data-controls] .media-control-indicator[data-duration]{color:hsla(0,0%,100%,.5);margin-right:6px}.media-control[data-media-control] .media-control-layer[data-controls] .media-control-indicator[data-duration]:before{content:"|";margin:0 3px}.media-control[data-media-control] .media-control-layer[data-controls] .bar-container[data-seekbar]{position:absolute;top:-20px;left:0;display:inline-block;vertical-align:middle;width:100%;height:25px;cursor:pointer}.media-control[data-media-control] .media-control-layer[data-controls] .bar-container[data-seekbar] .bar-background[data-seekbar]{width:100%;height:1px;position:relative;top:12px;background-color:#666}.media-control[data-media-control] .media-control-layer[data-controls] .bar-container[data-seekbar] .bar-background[data-seekbar] .bar-fill-1[data-seekbar]{position:absolute;top:0;left:0;width:0;height:100%;background-color:#c2c2c2;-webkit-transition:all .1s ease-out;transition:all .1s ease-out}.media-control[data-media-control] .media-control-layer[data-controls] .bar-container[data-seekbar] .bar-background[data-seekbar] .bar-fill-2[data-seekbar]{position:absolute;top:0;left:0;width:0;height:100%;background-color:#005aff;-webkit-transition:all .1s ease-out;transition:all .1s ease-out}.media-control[data-media-control] .media-control-layer[data-controls] .bar-container[data-seekbar] .bar-background[data-seekbar] .bar-hover[data-seekbar]{opacity:0;position:absolute;top:-3px;width:5px;height:7px;background-color:hsla(0,0%,100%,.5);-webkit-transition:opacity .1s ease;transition:opacity .1s ease}.media-control[data-media-control] .media-control-layer[data-controls] .bar-container[data-seekbar]:hover .bar-background[data-seekbar] .bar-hover[data-seekbar]{opacity:1}.media-control[data-media-control] .media-control-layer[data-controls] .bar-container[data-seekbar].seek-disabled{cursor:default}.media-control[data-media-control] .media-control-layer[data-controls] .bar-container[data-seekbar].seek-disabled:hover .bar-background[data-seekbar] .bar-hover[data-seekbar]{opacity:0}.media-control[data-media-control] .media-control-layer[data-controls] .bar-container[data-seekbar] .bar-scrubber[data-seekbar]{position:absolute;-webkit-transform:translateX(-50%);transform:translateX(-50%);top:2px;left:0;width:20px;height:20px;opacity:1;-webkit-transition:all .1s ease-out;transition:all .1s ease-out}.media-control[data-media-control] .media-control-layer[data-controls] .bar-container[data-seekbar] .bar-scrubber[data-seekbar] .bar-scrubber-icon[data-seekbar]{position:absolute;left:6px;top:6px;width:8px;height:8px;border-radius:10px;box-shadow:0 0 0 6px hsla(0,0%,100%,.2);background-color:#fff}.media-control[data-media-control] .media-control-layer[data-controls] .drawer-container[data-volume]{float:right;display:inline-block;height:32px;cursor:pointer;margin:0 6px;box-sizing:border-box}.media-control[data-media-control] .media-control-layer[data-controls] .drawer-container[data-volume] .drawer-icon-container[data-volume]{float:left;bottom:0}.media-control[data-media-control] .media-control-layer[data-controls] .drawer-container[data-volume] .drawer-icon-container[data-volume] .drawer-icon[data-volume]{background-color:transparent;border:0;box-sizing:content-box;width:16px;height:32px;margin-right:6px;opacity:1}.media-control[data-media-control] .media-control-layer[data-controls] .drawer-container[data-volume] .drawer-icon-container[data-volume] .drawer-icon[data-volume]:hover{opacity:1}.media-control[data-media-control] .media-control-layer[data-controls] .drawer-container[data-volume] .drawer-icon-container[data-volume] .drawer-icon[data-volume]:before{content:"\\E004"}.media-control[data-media-control] .media-control-layer[data-controls] .drawer-container[data-volume] .drawer-icon-container[data-volume] .drawer-icon[data-volume].muted{opacity:.5}.media-control[data-media-control] .media-control-layer[data-controls] .drawer-container[data-volume] .drawer-icon-container[data-volume] .drawer-icon[data-volume].muted:hover{opacity:.7}.media-control[data-media-control] .media-control-layer[data-controls] .drawer-container[data-volume] .drawer-icon-container[data-volume] .drawer-icon[data-volume].muted:before{content:"\\E005"}.media-control[data-media-control] .media-control-layer[data-controls] .drawer-container[data-volume] .bar-container[data-volume]{float:left;position:relative;top:6px;width:42px;height:18px;padding:3px 0;overflow:hidden;-webkit-transition:width .2s ease-out;transition:width .2s ease-out}.media-control[data-media-control] .media-control-layer[data-controls] .drawer-container[data-volume] .bar-container[data-volume] .segmented-bar-element[data-volume]{float:left;width:4px;padding-left:2px;height:12px;opacity:.5;box-shadow:inset 2px 0 0 #fff;-webkit-transition:-webkit-transform .2s ease-out;transition:transform .2s ease-out}.media-control[data-media-control] .media-control-layer[data-controls] .drawer-container[data-volume] .bar-container[data-volume] .segmented-bar-element[data-volume].fill{box-shadow:inset 2px 0 0 #fff;opacity:1}.media-control[data-media-control] .media-control-layer[data-controls] .drawer-container[data-volume] .bar-container[data-volume] .segmented-bar-element[data-volume]:nth-of-type(1){padding-left:0}.media-control[data-media-control] .media-control-layer[data-controls] .drawer-container[data-volume] .bar-container[data-volume] .segmented-bar-element[data-volume]:hover{-webkit-transform:scaleY(1.5);transform:scaleY(1.5)}.media-control[data-media-control].w320 .media-control-layer[data-controls] .drawer-container[data-volume] .bar-container[data-volume].volume-bar-hide{height:12px;top:9px;padding:0;width:0}',""]);
  },function(e,t,n){t=e.exports=n(6)(),t.push([e.id,".seek-time[data-seek-time]{position:absolute;white-space:nowrap;width:auto;height:20px;line-height:20px;left:-100%;bottom:55px;background-color:rgba(2,2,2,.5);z-index:9999;-webkit-transition:opacity .1s ease;transition:opacity .1s ease}.seek-time[data-seek-time].hidden[data-seek-time]{opacity:0}.seek-time[data-seek-time] span[data-seek-time]{position:relative;color:#fff;font-size:10px;padding-left:7px;padding-right:7px}",""])},function(e,t,n){t=e.exports=n(6)(),t.push([e.id,".clappr-flash-playback[data-flash-playback]{display:block;position:absolute;top:0;left:0;height:100%;width:100%;pointer-events:none}",""])},function(e,t,n){t=e.exports=n(6)(),t.push([e.id,"[data-html5-video]{position:absolute;height:100%;width:100%;display:block}",""])},function(e,t,n){t=e.exports=n(6)(),t.push([e.id,"[data-html-img]{max-width:100%;max-height:100%}",""])},function(e,t,n){t=e.exports=n(6)(),t.push([e.id,"[data-no-op]{z-index:1000;position:absolute;height:100%;width:100%;text-align:center}[data-no-op] p[data-no-op-msg]{position:absolute;font-size:25px;top:40%;color:#fff}[data-no-op] canvas[data-no-op-canvas]{background-color:#777;height:100%;width:100%}",""])},function(e,t,n){t=e.exports=n(6)(),t.push([e.id,'@font-face{font-family:Roboto;font-style:normal;font-weight:400;src:local("Roboto"),local("Roboto-Regular"),url('+n(150)+') format("truetype")}.dvr-controls[data-dvr-controls]{display:inline-block;float:left;color:#fff;line-height:32px;font-size:10px;font-weight:700;margin-left:6px}.dvr-controls[data-dvr-controls] .live-info{cursor:default;font-family:Roboto,Open Sans,Arial,sans-serif}.dvr-controls[data-dvr-controls] .live-info:before{content:"";display:inline-block;position:relative;width:7px;height:7px;border-radius:3.5px;margin-right:3.5px;background-color:#ff0101}.dvr-controls[data-dvr-controls] .live-info.disabled{opacity:.3}.dvr-controls[data-dvr-controls] .live-info.disabled:before{background-color:#fff}.dvr-controls[data-dvr-controls] .live-button{cursor:pointer;outline:none;display:none;border:0;color:#fff;background-color:transparent;height:32px;padding:0;opacity:.7;font-family:Roboto,Open Sans,Arial,sans-serif;-webkit-transition:all .1s ease;transition:all .1s ease}.dvr-controls[data-dvr-controls] .live-button:before{content:"";display:inline-block;position:relative;width:7px;height:7px;border-radius:3.5px;margin-right:3.5px;background-color:#fff}.dvr-controls[data-dvr-controls] .live-button:hover{opacity:1;text-shadow:hsla(0,0%,100%,.75) 0 0 5px}.dvr .dvr-controls[data-dvr-controls] .live-info{display:none}.dvr .dvr-controls[data-dvr-controls] .live-button{display:block}.dvr.media-control.live[data-media-control] .media-control-layer[data-controls] .bar-container[data-seekbar] .bar-background[data-seekbar] .bar-fill-2[data-seekbar]{background-color:#005aff}.media-control.live[data-media-control] .media-control-layer[data-controls] .bar-container[data-seekbar] .bar-background[data-seekbar] .bar-fill-2[data-seekbar]{background-color:#ff0101}.seek-time[data-seek-time] span[data-duration]{position:relative;color:hsla(0,0%,100%,.5);font-size:10px;padding-right:7px}.seek-time[data-seek-time] span[data-duration]:before{content:"|";margin-right:7px}',""])},function(e,t,n){t=e.exports=n(6)(),t.push([e.id,"@font-face{font-family:Player;src:url("+n(21)+");src:url("+n(21)+'?#iefix) format("embedded-opentype"),url('+n(44)+') format("truetype"),url('+n(43)+'#player) format("svg")}.player-poster[data-poster]{cursor:pointer;position:absolute;height:100%;width:100%;z-index:998;top:0;left:0}.player-poster[data-poster] .poster-background[data-poster]{width:100%;height:100%;background-size:cover;background-repeat:no-repeat;background-position:50% 50%}.player-poster[data-poster] .play-wrapper[data-poster]{position:absolute;width:100%;height:25%;line-height:100%;font-size:25%;top:50%;text-align:center}.player-poster[data-poster] .play-wrapper[data-poster] .poster-icon[data-poster]{font-family:Player;font-weight:400;font-style:normal;line-height:1;letter-spacing:0;speak:none;color:#fff;opacity:.75;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;-webkit-transition:opacity text-shadow .1s;-webkit-transition-delay:ease;transition:opacity text-shadow .1s ease}.player-poster[data-poster] .play-wrapper[data-poster] .poster-icon[data-poster].play[data-poster]:before{content:"\\E001"}.player-poster[data-poster] .play-wrapper[data-poster] .poster-icon[data-poster]:hover{opacity:1;text-shadow:hsla(0,0%,100%,.8) 0 0 15px}',""])},function(e,t,n){t=e.exports=n(6)(),t.push([e.id,".spinner-three-bounce[data-spinner]{position:absolute;margin:0 auto;width:70px;text-align:center;z-index:999;top:47%;left:0;right:0;margin-left:auto;margin-right:auto}.spinner-three-bounce[data-spinner]>div{width:18px;height:18px;background-color:#fff;border-radius:100%;display:inline-block;-webkit-animation:bouncedelay 1.4s infinite ease-in-out;animation:bouncedelay 1.4s infinite ease-in-out;-webkit-animation-fill-mode:both;animation-fill-mode:both}.spinner-three-bounce[data-spinner] [data-bounce1]{-webkit-animation-delay:-.32s;animation-delay:-.32s}.spinner-three-bounce[data-spinner] [data-bounce2]{-webkit-animation-delay:-.16s;animation-delay:-.16s}@-webkit-keyframes bouncedelay{0%,80%,to{-webkit-transform:scale(0);transform:scale(0)}40%{-webkit-transform:scale(1);transform:scale(1)}}@keyframes bouncedelay{0%,80%,to{-webkit-transform:scale(0);transform:scale(0)}40%{-webkit-transform:scale(1);transform:scale(1)}}",""])},function(e,t,n){t=e.exports=n(6)(),t.push([e.id,"[data-watermark]{position:absolute;min-width:70px;max-width:200px;width:12%;text-align:center;z-index:10}[data-watermark] img{max-width:100%}[data-watermark-bottom-left]{bottom:10px;left:10px}[data-watermark-bottom-right]{bottom:10px;right:42px}[data-watermark-top-left]{top:10px;left:10px}[data-watermark-top-right]{top:10px;right:37px}",""])},function(e,t){e.exports='<div class="media-control-background" data-background></div>\n<div class="media-control-layer" data-controls>\n  <%  var renderBar = function(name) { %>\n      <div class="bar-container" data-<%= name %>>\n        <div class="bar-background" data-<%= name %>>\n          <div class="bar-fill-1" data-<%= name %>></div>\n          <div class="bar-fill-2" data-<%= name %>></div>\n          <div class="bar-hover" data-<%= name %>></div>\n        </div>\n        <div class="bar-scrubber" data-<%= name %>>\n          <div class="bar-scrubber-icon" data-<%= name %>></div>\n        </div>\n      </div>\n  <%  }; %>\n  <%  var renderSegmentedBar = function(name, segments) {\n      segments = segments || 10; %>\n    <div class="bar-container" data-<%= name %>>\n    <% for (var i = 0; i < segments; i++) { %>\n      <div class="segmented-bar-element" data-<%= name %>></div>\n    <% } %>\n    </div>\n  <% }; %>\n  <% var renderDrawer = function(name, renderContent) { %>\n      <div class="drawer-container" data-<%= name %>>\n        <div class="drawer-icon-container" data-<%= name %>>\n          <div class="drawer-icon media-control-icon" data-<%= name %>></div>\n          <span class="drawer-text" data-<%= name %>></span>\n        </div>\n        <% renderContent(name); %>\n      </div>\n  <% }; %>\n  <% var renderIndicator = function(name) { %>\n      <div class="media-control-indicator" data-<%= name %>></div>\n  <% }; %>\n  <% var renderButton = function(name) { %>\n      <button class="media-control-button media-control-icon" data-<%= name %>></button>\n  <% }; %>\n  <%  var templates = {\n        bar: renderBar,\n        segmentedBar: renderSegmentedBar,\n      };\n      var render = function(settingsList) {\n        settingsList.forEach(function(setting) {\n          if(setting === "seekbar") {\n            renderBar(setting);\n          } else if (setting === "volume") {\n            renderDrawer(setting, settings.volumeBarTemplate ? templates[settings.volumeBarTemplate] : function(name) { return renderSegmentedBar(name); });\n          } else if (setting === "duration" || setting === "position") {\n            renderIndicator(setting);\n          } else {\n            renderButton(setting);\n          }\n        });\n      }; %>\n  <% if (settings.default && settings.default.length) { %>\n  <div class="media-control-center-panel" data-media-control>\n    <% render(settings.default); %>\n  </div>\n  <% } %>\n  <% if (settings.left && settings.left.length) { %>\n  <div class="media-control-left-panel" data-media-control>\n    <% render(settings.left); %>\n  </div>\n  <% } %>\n  <% if (settings.right && settings.right.length) { %>\n  <div class="media-control-right-panel" data-media-control>\n    <% render(settings.right); %>\n  </div>\n  <% } %>\n</div>\n'},function(e,t){e.exports="<span data-seek-time></span>\n<span data-duration></span>\n"},function(e,t){e.exports='<param name="movie" value="<%= swfPath %>?inline=1">\n<param name="quality" value="autohigh">\n<param name="swliveconnect" value="true">\n<param name="allowScriptAccess" value="always">\n<param name="bgcolor" value="#000000">\n<param name="allowFullScreen" value="false">\n<param name="wmode" value="<%= wmode %>">\n<param name="tabindex" value="1">\n<param name=FlashVars value="playbackId=<%= playbackId %>&callback=<%= callbackName %>" />\n<embed\n  name="<%= cid %>"\n  type="application/x-shockwave-flash"\n  disabled="disabled"\n  tabindex="-1"\n  enablecontextmenu="false"\n  allowScriptAccess="always"\n  quality="autohigh"\n  pluginspage="http://www.macromedia.com/go/getflashplayer"\n  wmode="<%= wmode %>"\n  swliveconnect="true"\n  allowfullscreen="false"\n  bgcolor="#000000"\n  FlashVars="playbackId=<%= playbackId %>&callback=<%= callbackName %>"\n  src="<%= swfPath %>"\n  width="100%"\n  height="100%">\n</embed>\n'},function(e,t){e.exports='<source src="<%=src%>" type="<%=type%>">\n'},function(e,t){e.exports="<canvas data-no-op-canvas></canvas>\n<p data-no-op-msg><%=message%><p>\n"},function(e,t){e.exports='<div class="live-info">LIVE</div>\n<button class="live-button">BACK TO LIVE</button>\n'},function(e,t){e.exports='<div class="play-wrapper" data-poster>\n  <span class="poster-icon play" data-poster />\n</div>\n'},function(e,t){e.exports="<div data-bounce1></div><div data-bounce2></div><div data-bounce3></div>\n"},function(e,t){e.exports='<div data-watermark data-watermark-<%=position %>><img src="<%= imageUrl %>"></div>\n'},function(e,t,n){e.exports=n.p+"4b76590b32dab62bc95c1b7951efae78.swf"},function(e,t,n){e.exports=n.p+"ce11521a0b89a2674007ac434b3b92c8.swf"},function(e,t,n){e.exports=n.p+"38861cba61c66739c1452c3a71e39852.ttf"}])});
  //# sourceMappingURL=clappr.min.js.map