var _gsScope;(function(n,t){var i={wallUrl:"/services/scheduling/wall/",progUrl:"/services/scheduling/prog/",epgChannelUrl:"/static/data/data-channel-local.json",epgGridUrl:"/services/scheduling/grid/",funnelUrl:"/funnel/Sales/products/",getAllProdUrl:"/funnel/api/products/getall",ConcoursApi:{SaveParticipant:"/services/contests/api/Concours/SaveParticipant/"},betv10ans:{postMessage:"/services/10Years/api/Message/PostMessage",getMessages:"/services/10Years/api/Message/GetMessage/"}};t(n)[0].location.hostname==="localhost"&&(console.warn("[TPK-MSG] Config.js in local mod"),i.wallUrl="//www.betv.be/triptyk/scheduling/wall/",i.progUrl="//www.betv.be/triptyk/scheduling/prog/",i.epgGridUrl="//www.betv.be/triptyk/scheduling/grid/",i.funnelUrl="//betv-static.bizzdev.net/funnel/Sales/products/",i.getAllProdUrl="//betv-static.bizzdev.net/funnel/api/products/getall",i.ConcoursApi.GetCurrents="//betv-static.bizzdev.net/concours/api/Concours/GetCurrents/",i.ConcoursApi.GetConcours="//betv-static.bizzdev.net/concours/api/Concours/GetConcours/",i.ConcoursApi.SaveParticipant="//betv-static.bizzdev.net/concours/api/Concours/SaveParticipant/");n.betv=n.betv||{};n.betv.Config=i})(window,jQuery);window.Modernizr=function(n,t,i){function a(n){c.cssText=n}function vt(n,t){return a(y.join(n+";")+(t||""))}function h(n,t){return typeof n===t}function v(n,t){return!!~(""+n).indexOf(t)}function lt(n,t){var u,r;for(u in n)if(r=n[u],!v(r,"-")&&c[r]!==i)return t=="pfx"?r:!0;return!1}function yt(n,t,r){var f,u;for(f in n)if(u=t[n[f]],u!==i)return r===!1?n[f]:h(u,"function")?u.bind(r||t):u;return!1}function f(n,t,i){var r=n.charAt(0).toUpperCase()+n.slice(1),u=(n+" "+ot.join(r+" ")+r).split(" ");return h(t,"string")||h(t,"undefined")?lt(u,t):(u=(n+" "+st.join(r+" ")+r).split(" "),yt(u,t,i))}function pt(){u.input=function(i){for(var r=0,u=i.length;r<u;r++)w[i[r]]=!!(i[r]in o);return w.list&&(w.list=!!(t.createElement("datalist")&&n.HTMLDataListElement)),w}("autocomplete autofocus list placeholder max min multiple pattern required step".split(" "));u.inputtypes=function(n){for(var u=0,r,f,e,h=n.length;u<h;u++)o.setAttribute("type",f=n[u]),r=o.type!=="text",r&&(o.value=g,o.style.cssText="position:absolute;visibility:hidden;",/^range$/.test(f)&&o.style.WebkitAppearance!==i?(s.appendChild(o),e=t.defaultView,r=e.getComputedStyle&&e.getComputedStyle(o,null).WebkitAppearance!=="textfield"&&o.offsetHeight!==0,s.removeChild(o)):/^(search|tel)$/.test(f)||(r=/^(url|email)$/.test(f)?o.checkValidity&&o.checkValidity()===!1:o.value!=g)),ht[n[u]]=!!r;return ht}("search tel url email datetime date month week time datetime-local number range color".split(" "))}var u={},d=!0,s=t.documentElement,e="modernizr",ut=t.createElement(e),c=ut.style,o=t.createElement("input"),g=":)",ft={}.toString,y=" -webkit- -moz- -o- -ms- ".split(" "),et="Webkit Moz O ms",ot=et.split(" "),st=et.toLowerCase().split(" "),p={svg:"http://www.w3.org/2000/svg"},r={},ht={},w={},nt=[],tt=nt.slice,b,l=function(n,i,r,u){var l,a,c,v,f=t.createElement("div"),h=t.body,o=h||t.createElement("body");if(parseInt(r,10))while(r--)c=t.createElement("div"),c.id=u?u[r]:e+(r+1),f.appendChild(c);return l=["&#173;",'<style id="s',e,'">',n,"<\/style>"].join(""),f.id=e,(h?f:o).innerHTML+=l,o.appendChild(f),h||(o.style.background="",o.style.overflow="hidden",v=s.style.overflow,s.style.overflow="hidden",s.appendChild(o)),a=i(f,n),h?f.parentNode.removeChild(f):(o.parentNode.removeChild(o),s.style.overflow=v),!!a},at=function(t){var i=n.matchMedia||n.msMatchMedia,r;return i?i(t)&&i(t).matches||!1:(l("@media "+t+" { #"+e+" { position: absolute; } }",function(t){r=(n.getComputedStyle?getComputedStyle(t,null):t.currentStyle).position=="absolute"}),r)},ct=function(){function r(r,u){u=u||t.createElement(n[r]||"div");r="on"+r;var f=r in u;return f||(u.setAttribute||(u=t.createElement("div")),u.setAttribute&&u.removeAttribute&&(u.setAttribute(r,""),f=h(u[r],"function"),h(u[r],"undefined")||(u[r]=i),u.removeAttribute(r))),u=null,f}var n={select:"input",change:"input",submit:"form",reset:"form",error:"img",load:"img",abort:"img"};return r}(),it={}.hasOwnProperty,rt,k;rt=h(it,"undefined")||h(it.call,"undefined")?function(n,t){return t in n&&h(n.constructor.prototype[t],"undefined")}:function(n,t){return it.call(n,t)};Function.prototype.bind||(Function.prototype.bind=function(n){var t=this,i,r;if(typeof t!="function")throw new TypeError;return i=tt.call(arguments,1),r=function(){var f,e,u;return this instanceof r?(f=function(){},f.prototype=t.prototype,e=new f,u=t.apply(e,i.concat(tt.call(arguments))),Object(u)===u)?u:e:t.apply(n,i.concat(tt.call(arguments)))},r});r.flexbox=function(){return f("flexWrap")};r.flexboxlegacy=function(){return f("boxDirection")};r.canvas=function(){var n=t.createElement("canvas");return!!(n.getContext&&n.getContext("2d"))};r.canvastext=function(){return!!(u.canvas&&h(t.createElement("canvas").getContext("2d").fillText,"function"))};r.webgl=function(){return!!n.WebGLRenderingContext};r.touch=function(){var i;return"ontouchstart"in n||n.DocumentTouch&&t instanceof DocumentTouch?i=!0:l(["@media (",y.join("touch-enabled),("),e,")","{#modernizr{top:9px;position:absolute}}"].join(""),function(n){i=n.offsetTop===9}),i};r.geolocation=function(){return"geolocation"in navigator};r.postmessage=function(){return!!n.postMessage};r.websqldatabase=function(){return!!n.openDatabase};r.indexedDB=function(){return!!f("indexedDB",n)};r.hashchange=function(){return ct("hashchange",n)&&(t.documentMode===i||t.documentMode>7)};r.history=function(){return!!(n.history&&history.pushState)};r.draganddrop=function(){var n=t.createElement("div");return"draggable"in n||"ondragstart"in n&&"ondrop"in n};r.websockets=function(){return"WebSocket"in n||"MozWebSocket"in n};r.rgba=function(){return a("background-color:rgba(150,255,150,.5)"),v(c.backgroundColor,"rgba")};r.hsla=function(){return a("background-color:hsla(120,40%,100%,.5)"),v(c.backgroundColor,"rgba")||v(c.backgroundColor,"hsla")};r.multiplebgs=function(){return a("background:url(https://),url(https://),red url(https://)"),/(url\s*\(.*?){3}/.test(c.background)};r.backgroundsize=function(){return f("backgroundSize")};r.borderimage=function(){return f("borderImage")};r.borderradius=function(){return f("borderRadius")};r.boxshadow=function(){return f("boxShadow")};r.textshadow=function(){return t.createElement("div").style.textShadow===""};r.opacity=function(){return vt("opacity:.55"),/^0.55$/.test(c.opacity)};r.cssanimations=function(){return f("animationName")};r.csscolumns=function(){return f("columnCount")};r.cssgradients=function(){var n="background-image:";return a((n+"-webkit- ".split(" ").join("gradient(linear,left top,right bottom,from(#9f9),to(white));"+n)+y.join("linear-gradient(left top,#9f9, white);"+n)).slice(0,-n.length)),v(c.backgroundImage,"gradient")};r.cssreflections=function(){return f("boxReflect")};r.csstransforms=function(){return!!f("transform")};r.csstransforms3d=function(){var n=!!f("perspective");return n&&"webkitPerspective"in s.style&&l("@media (transform-3d),(-webkit-transform-3d){#modernizr{left:9px;position:absolute;height:3px;}}",function(t){n=t.offsetLeft===9&&t.offsetHeight===3}),n};r.csstransitions=function(){return f("transition")};r.fontface=function(){var n;return l('@font-face {font-family:"font";src:url("https://")}',function(i,r){var f=t.getElementById("smodernizr"),u=f.sheet||f.styleSheet,e=u?u.cssRules&&u.cssRules[0]?u.cssRules[0].cssText:u.cssText||"":"";n=/src/i.test(e)&&e.indexOf(r.split(" ")[0])===0}),n};r.generatedcontent=function(){var n;return l(["#",e,"{font:0/0 a}#",e,':after{content:"',g,'";visibility:hidden;font:3px/1 a}'].join(""),function(t){n=t.offsetHeight>=3}),n};r.video=function(){var i=t.createElement("video"),n=!1;try{(n=!!i.canPlayType)&&(n=new Boolean(n),n.ogg=i.canPlayType('video/ogg; codecs="theora"').replace(/^no$/,""),n.h264=i.canPlayType('video/mp4; codecs="avc1.42E01E"').replace(/^no$/,""),n.webm=i.canPlayType('video/webm; codecs="vp8, vorbis"').replace(/^no$/,""))}catch(r){}return n};r.audio=function(){var i=t.createElement("audio"),n=!1;try{(n=!!i.canPlayType)&&(n=new Boolean(n),n.ogg=i.canPlayType('audio/ogg; codecs="vorbis"').replace(/^no$/,""),n.mp3=i.canPlayType("audio/mpeg;").replace(/^no$/,""),n.wav=i.canPlayType('audio/wav; codecs="1"').replace(/^no$/,""),n.m4a=(i.canPlayType("audio/x-m4a;")||i.canPlayType("audio/aac;")).replace(/^no$/,""))}catch(r){}return n};r.localstorage=function(){try{return localStorage.setItem(e,e),localStorage.removeItem(e),!0}catch(n){return!1}};r.sessionstorage=function(){try{return sessionStorage.setItem(e,e),sessionStorage.removeItem(e),!0}catch(n){return!1}};r.webworkers=function(){return!!n.Worker};r.applicationcache=function(){return!!n.applicationCache};r.svg=function(){return!!t.createElementNS&&!!t.createElementNS(p.svg,"svg").createSVGRect};r.inlinesvg=function(){var n=t.createElement("div");return n.innerHTML="<svg/>",(n.firstChild&&n.firstChild.namespaceURI)==p.svg};r.smil=function(){return!!t.createElementNS&&/SVGAnimate/.test(ft.call(t.createElementNS(p.svg,"animate")))};r.svgclippaths=function(){return!!t.createElementNS&&/SVGClipPath/.test(ft.call(t.createElementNS(p.svg,"clipPath")))};for(k in r)rt(r,k)&&(b=k.toLowerCase(),u[b]=r[k](),nt.push((u[b]?"":"no-")+b));return u.input||pt(),u.addTest=function(n,t){if(typeof n=="object")for(var r in n)rt(n,r)&&u.addTest(r,n[r]);else{if(n=n.toLowerCase(),u[n]!==i)return u;t=typeof t=="function"?t():t;typeof d!="undefined"&&d&&(s.className+=" "+(t?"":"no-")+n);u[n]=t}return u},a(""),ut=o=null,function(n,t){function p(n,t){var i=n.createElement("p"),r=n.getElementsByTagName("head")[0]||n.documentElement;return i.innerHTML="x<style>"+t+"<\/style>",r.insertBefore(i.lastChild,r.firstChild)}function c(){var n=r.elements;return typeof n=="string"?n.split(" "):n}function o(n){var t=h[n[s]];return t||(t={},e++,n[s]=e,h[e]=t),t}function l(n,r,u){if(r||(r=t),i)return r.createElement(n);u||(u=o(r));var f;return f=u.cache[n]?u.cache[n].cloneNode():y.test(n)?(u.cache[n]=u.createElem(n)).cloneNode():u.createElem(n),f.canHaveChildren&&!v.test(n)&&!f.tagUrn?u.frag.appendChild(f):f}function w(n,r){if(n||(n=t),i)return n.createDocumentFragment();r=r||o(n);for(var f=r.frag.cloneNode(),u=0,e=c(),s=e.length;u<s;u++)f.createElement(e[u]);return f}function b(n,t){t.cache||(t.cache={},t.createElem=n.createElement,t.createFrag=n.createDocumentFragment,t.frag=t.createFrag());n.createElement=function(i){return r.shivMethods?l(i,n,t):t.createElem(i)};n.createDocumentFragment=Function("h,f","return function(){var n=f.cloneNode(),c=n.createElement;h.shivMethods&&("+c().join().replace(/[\w\-]+/g,function(n){return t.createElem(n),t.frag.createElement(n),'c("'+n+'")'})+");return n}")(r,t.frag)}function a(n){n||(n=t);var u=o(n);return!r.shivCSS||f||u.hasCSS||(u.hasCSS=!!p(n,"article,aside,dialog,figcaption,figure,footer,header,hgroup,main,nav,section{display:block}mark{background:#FF0;color:#000}template{display:none}")),i||b(n,u),n}var u=n.html5||{},v=/^<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/i,y=/^(?:a|b|code|div|fieldset|h1|h2|h3|h4|h5|h6|i|label|li|ol|p|q|span|strong|style|table|tbody|td|th|tr|ul)$/i,f,s="_html5shiv",e=0,h={},i,r;(function(){try{var n=t.createElement("a");n.innerHTML="<xyz><\/xyz>";f="hidden"in n;i=n.childNodes.length==1||function(){t.createElement("a");var n=t.createDocumentFragment();return typeof n.cloneNode=="undefined"||typeof n.createDocumentFragment=="undefined"||typeof n.createElement=="undefined"}()}catch(r){f=!0;i=!0}})();r={elements:u.elements||"abbr article aside audio bdi canvas data datalist details dialog figcaption figure footer header hgroup main mark meter nav output progress section summary template time video",version:"3.7.0",shivCSS:u.shivCSS!==!1,supportsUnknownElements:i,shivMethods:u.shivMethods!==!1,type:"default",shivDocument:a,createElement:l,createDocumentFragment:w};n.html5=r;a(t)}(this,t),u._version="2.8.3",u._prefixes=y,u._domPrefixes=st,u._cssomPrefixes=ot,u.mq=at,u.hasEvent=ct,u.testProp=function(n){return lt([n])},u.testAllProps=f,u.testStyles=l,u.prefixed=function(n,t,i){return t?f(n,t,i):f(n,"pfx")},s.className=s.className.replace(/(^|\s)no-js(\s|$)/,"$1$2")+(d?" js "+nt.join(" "):""),u}(this,this.document);!function(n){var t=navigator.userAgent;n.HTMLPictureElement&&/ecko/.test(t)&&t.match(/rv\:(\d+)/)&&RegExp.$1<45&&addEventListener("resize",function(){var r,u=document.createElement("source"),e=function(n){var i,r,t=n.parentNode;"PICTURE"===t.nodeName.toUpperCase()?(i=u.cloneNode(),t.insertBefore(i,t.firstElementChild),setTimeout(function(){t.removeChild(i)})):(!n._pfLastSize||n.offsetWidth>n._pfLastSize)&&(n._pfLastSize=n.offsetWidth,r=n.sizes,n.sizes+=",100vw",setTimeout(function(){n.sizes=r}))},o=function(){for(var t=document.querySelectorAll("picture > img, img[srcset][sizes]"),n=0;n<t.length;n++)e(t[n])},t=function(){clearTimeout(r);r=setTimeout(o,99)},i=n.matchMedia&&matchMedia("(orientation: landscape)"),f=function(){t();i&&i.addListener&&i.addListener(t)};return u.srcset="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",/^[c|i]|d$/.test(document.readyState||"")?f():document.addEventListener("DOMContentLoaded",f),t}())}(window),function(n,t,i){"use strict";function v(n){return" "===n||"\t"===n||"\n"===n||"\f"===n||"\r"===n}function wt(t,i){var r=new n.Image;return r.onerror=function(){o[t]=!1;f()},r.onload=function(){o[t]=1===r.width;f()},r.src=i,"pending"}function bt(){w=!1;a=n.devicePixelRatio;h={};b={};r.DPR=a||1;u.width=Math.max(n.innerWidth||0,e.clientWidth);u.height=Math.max(n.innerHeight||0,e.clientHeight);u.vw=u.width/100;u.vh=u.height/100;y=[u.height,u.width,a].join("-");u.em=r.getEmValue();u.rem=u.em}function kt(n,t,i,r){var f,o,e,u;return"saveData"===p.algorithm?n>2.7?u=i+1:(o=t-i,f=Math.pow(n-.6,1.5),e=o*f,r&&(e+=.1*f),u=n+e):u=i>1?Math.sqrt(n*t):n,u>i}function dt(n){var i,t=r.getSet(n),u=!1;"pending"!==t&&(u=y,t&&(i=r.setRes(t),r.applySetCandidate(i,n)));n[r.ns].evaled=u}function gt(n,t){return n.res-t.res}function ni(n,t,i){var u;return!i&&t&&(i=n[r.ns].sets,i=i&&i[i.length-1]),u=et(t,i),u&&(t=r.makeUrl(t),n[r.ns].curSrc=t,n[r.ns].curCan=u,u.res||ft(u,u.set.sizes)),u}function et(n,t){var i,f,u;if(n&&t)for(u=r.parseSet(t),n=r.makeUrl(n),i=0;i<u.length;i++)if(n===r.makeUrl(u[i].url)){f=u[i];break}return f}function ti(n,t){for(var i,f,o=n.getElementsByTagName("source"),u=0,e=o.length;e>u;u++)i=o[u],i[r.ns]=!0,f=i.getAttribute("srcset"),f&&t.push({srcset:f,media:i.getAttribute("media"),type:i.getAttribute("type"),sizes:i.getAttribute("sizes")})}function ii(n,t){function h(t){var i,r=t.exec(n.substring(e));if(r)return(i=r[0],e+=i.length,i)}function o(){for(var u,r,e,h,v,o,l,y,n=!1,i={},a=0;a<f.length;a++)h=f[a],v=h[h.length-1],o=h.substring(0,h.length-1),l=parseInt(o,10),y=parseFloat(o),vt.test(o)&&"w"===v?((u||r)&&(n=!0),0===l?n=!0:u=l):vi.test(o)&&"x"===v?((u||r||e)&&(n=!0),0>y?n=!0:r=y):vt.test(o)&&"h"===v?((e||r)&&(n=!0),0===l?n=!0:e=l):n=!0;n||(i.url=s,u&&(i.w=u),r&&(i.d=r),e&&(i.h=e),e||r||u||(i.d=1),1===i.d&&(t.has1x=!0),i.set=t,c.push(i))}function l(){for(h(hi),i="",u="in descriptor";;){if(r=n.charAt(e),"in descriptor"===u)if(v(r))i&&(f.push(i),i="",u="after descriptor");else{if(","===r)return e+=1,i&&f.push(i),void o();if("("===r)i+=r,u="in parens";else{if(""===r)return i&&f.push(i),void o();i+=r}}else if("in parens"===u)if(")"===r)i+=r,u="in descriptor";else{if(""===r)return f.push(i),void o();i+=r}else if("after descriptor"===u&&!v(r)){if(""===r)return void o();u="in descriptor";e-=1}e+=1}}for(var s,f,i,u,r,a=n.length,e=0,c=[];;){if(h(ci),e>=a)return c;s=h(li);f=[];","===s.slice(-1)?(s=s.replace(ai,""),o()):l()}}function ri(n){function s(n){function u(){r&&(f.push(r),r="")}function s(){f[0]&&(h.push(f),f=[])}for(var i,r="",f=[],h=[],e=0,t=0,o=!1;;){if(i=n.charAt(t),""===i)return u(),s(),h;if(o){if("*"===i&&"/"===n[t+1]){o=!1;t+=2;u();continue}t+=1}else{if(v(i)){if(n.charAt(t-1)&&v(n.charAt(t-1))||!r){t+=1;continue}if(0===e){u();t+=1;continue}i=" "}else if("("===i)e+=1;else if(")"===i)e-=1;else{if(","===i){u();s();t+=1;continue}if("/"===i&&"*"===n.charAt(t+1)){o=!0;t+=2;continue}}r+=i;t+=1}}}function h(n){return c.test(n)&&parseFloat(n)>=0?!0:l.test(n)?!0:"0"===n||"-0"===n||"+0"===n?!0:!1}var i,u,e,t,f,o,c=/^(?:[+-]?[0-9]+|[0-9]*\.[0-9]+)(?:[eE][+-]?[0-9]+)?(?:ch|cm|em|ex|in|mm|pc|pt|px|rem|vh|vmin|vmax|vw)$/i,l=/^calc\((?:[0-9a-z \.\+\-\*\/\(\)]+)\)$/i;for(u=s(n),e=u.length,i=0;e>i;i++)if((t=u[i],f=t[t.length-1],h(f))&&((o=f,t.pop(),0===t.length)||(t=t.join(" "),r.matchesMedia(t))))return o;return"100vw"}t.createElement("picture");var ui,c,ot,y,r={},k=!1,l=function(){},s=t.createElement("img"),d=s.getAttribute,st=s.setAttribute,ht=s.removeAttribute,e=t.documentElement,o={},p={algorithm:""},g="data-pfsrc",ct=g+"set",nt=navigator.userAgent,fi=/rident/.test(nt)||/ecko/.test(nt)&&nt.match(/rv\:(\d+)/)&&RegExp.$1>35,tt="currentSrc",ei=/\s+\+?\d+(e\d+)?w/,oi=/(\([^)]+\))?\s*(.+)/,it=n.picturefillCFG,si="position:absolute;left:0;visibility:hidden;display:block;padding:0;border:none;font-size:1em;width:1em;overflow:hidden;clip:rect(0px, 0px, 0px, 0px)",lt="font-size:100%!important;",w=!0,h={},b={},a=n.devicePixelRatio,u={px:1,"in":96},at=t.createElement("a"),rt=!1,hi=/^[ \t\n\r\u000c]+/,ci=/^[, \t\n\r\u000c]+/,li=/^[^ \t\n\r\u000c]+/,ai=/[,]+$/,vt=/^\d+$/,vi=/^-?(?:[0-9]+|[0-9]*\.[0-9]+)(?:[eE][+-]?[0-9]+)?$/,yt=function(n,t,i,r){n.addEventListener?n.addEventListener(t,i,r||!1):n.attachEvent&&n.attachEvent("on"+t,i)},ut=function(n){var t={};return function(i){return i in t||(t[i]=n(i)),t[i]}},pt=function(){var n=/^([\d\.]+)(em|vw|px)$/,t=function(){for(var n=arguments,t=0,i=n[0];++t in n;)i=i.replace(n[t],n[++t]);return i},i=ut(function(n){return"return "+t((n||"").toLowerCase(),/\band\b/g,"&&",/,/g,"||",/min-([a-z-\s]+):/g,"e.$1>=",/max-([a-z-\s]+):/g,"e.$1<=",/calc([^)]+)/g,"($1)",/(\d+[\.]*[\d]*)([a-z]+)/g,"($1 * e.$2)",/^(?!(e.[a-z]|[0-9\.&=|><\+\-\*\(\)\/])).*/gi,"")+";"});return function(t,r){var f;if(!(t in h))if(h[t]=!1,r&&(f=t.match(n)))h[t]=f[1]*u[f[2]];else try{h[t]=new Function("e",i(t))(u)}catch(e){}return h[t]}}(),ft=function(n,t){return n.w?(n.cWidth=r.calcListLength(t||"100vw"),n.res=n.w/n.cWidth):n.res=n.d,n},f=function(n){if(k){var f,u,e,i=n||{};if(i.elements&&1===i.elements.nodeType&&("IMG"===i.elements.nodeName.toUpperCase()?i.elements=[i.elements]:(i.context=i.elements,i.elements=null)),f=i.elements||r.qsa(i.context||t,i.reevaluate||i.reselect?r.sel:r.selShort),e=f.length){for(r.setupRun(i),rt=!0,u=0;e>u;u++)r.fillImg(f[u],i);r.teardownRun(i)}}};for(ui=n.console&&console.warn?function(n){console.warn(n)}:l,(tt in s)||(tt="src"),o["image/jpeg"]=!0,o["image/gif"]=!0,o["image/png"]=!0,o["image/svg+xml"]=t.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#Image","1.1"),r.ns=("pf"+(new Date).getTime()).substr(0,9),r.supSrcset=("srcset"in s),r.supSizes=("sizes"in s),r.supPicture=!!n.HTMLPictureElement,r.supSrcset&&r.supPicture&&!r.supSizes&&!function(n){s.srcset="data:,a";n.src="data:,a";r.supSrcset=s.complete===n.complete;r.supPicture=r.supSrcset&&r.supPicture}(t.createElement("img")),r.supSrcset&&!r.supSizes?!function(){var i="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",n=t.createElement("img"),u=function(){var t=n.width;2===t&&(r.supSizes=!0);ot=r.supSrcset&&!r.supSizes;k=!0;setTimeout(f)};n.onload=u;n.onerror=u;n.setAttribute("sizes","9px");n.srcset=i+" 1w,data:image/gif;base64,R0lGODlhAgABAPAAAP///wAAACH5BAAAAAAALAAAAAACAAEAAAICBAoAOw== 9w";n.src=i}():k=!0,r.selShort="picture>img,img[srcset]",r.sel=r.selShort,r.cfg=p,r.DPR=a||1,r.u=u,r.types=o,r.setSize=l,r.makeUrl=ut(function(n){return at.href=n,at.href}),r.qsa=function(n,t){return"querySelector"in n?n.querySelectorAll(t):[]},r.matchesMedia=function(){return r.matchesMedia=n.matchMedia&&(matchMedia("(min-width: 0.1em)")||{}).matches?function(n){return!n||matchMedia(n).matches}:r.mMQ,r.matchesMedia.apply(this,arguments)},r.mMQ=function(n){return n?pt(n):!0},r.calcLength=function(n){var t=pt(n,!0)||!1;return 0>t&&(t=!1),t},r.supportsType=function(n){return n?o[n]:!0},r.parseSize=ut(function(n){var t=(n||"").match(oi);return{media:t&&t[1],length:t&&t[2]}}),r.parseSet=function(n){return n.cands||(n.cands=ii(n.srcset,n)),n.cands},r.getEmValue=function(){var n;if(!c&&(n=t.body)){var i=t.createElement("div"),r=e.style.cssText,u=n.style.cssText;i.style.cssText=si;e.style.cssText=lt;n.style.cssText=lt;n.appendChild(i);c=i.offsetWidth;n.removeChild(i);c=parseFloat(c,10);e.style.cssText=r;n.style.cssText=u}return c||16},r.calcListLength=function(n){if(!(n in b)||p.uT){var t=r.calcLength(ri(n));b[n]=t?t:u.width}return b[n]},r.setRes=function(n){var t,i,u;if(n)for(t=r.parseSet(n),i=0,u=t.length;u>i;i++)ft(t[i],n.sizes);return t},r.setRes.res=ft,r.applySetCandidate=function(n,t){if(n.length){var f,e,o,l,i,s,u,a,v,h=t[r.ns],c=r.DPR;if(s=h.curSrc||t[tt],u=h.curCan||ni(t,s,n[0].set),u&&u.set===n[0].set&&(v=fi&&!t.complete&&u.res-.1>c,v||(u.cached=!0,u.res>=c&&(i=u))),!i)for(n.sort(gt),l=n.length,i=n[l-1],e=0;l>e;e++)if(f=n[e],f.res>=c){o=e-1;i=n[o]&&(v||s!==r.makeUrl(f.url))&&kt(n[o].res,f.res,c,n[o].cached)?n[o]:f;break}i&&(a=r.makeUrl(i.url),h.curSrc=a,h.curCan=i,a!==s&&r.setSrc(t,i),r.setSize(t))}},r.setSrc=function(n,t){var i;n.src=t.url;"image/svg+xml"===t.set.type&&(i=n.style.width,n.style.width=n.offsetWidth+1+"px",n.offsetWidth+1&&(n.style.width=i))},r.getSet=function(n){for(var t,u,f=!1,e=n[r.ns].sets,i=0;i<e.length&&!f;i++)if(t=e[i],t.srcset&&r.matchesMedia(t.media)&&(u=r.supportsType(t.type))){"pending"===u&&(t=u);f=t;break}return f},r.parseSets=function(n,t,u){var o,e,s,h,c=t&&"PICTURE"===t.nodeName.toUpperCase(),f=n[r.ns];(f.src===i||u.src)&&(f.src=d.call(n,"src"),f.src?st.call(n,g,f.src):ht.call(n,g));(f.srcset===i||u.srcset||!r.supSrcset||n.srcset)&&(o=d.call(n,"srcset"),f.srcset=o,h=!0);f.sets=[];c&&(f.pic=!0,ti(t,f.sets));f.srcset?(e={srcset:f.srcset,sizes:d.call(n,"sizes")},f.sets.push(e),s=(ot||f.src)&&ei.test(f.srcset||""),s||!f.src||et(f.src,e)||e.has1x||(e.srcset+=", "+f.src,e.cands.push({url:f.src,d:1,set:e}))):f.src&&f.sets.push({srcset:f.src,sizes:null});f.curCan=null;f.curSrc=i;f.supported=!(c||e&&!r.supSrcset||s&&!r.supSizes);h&&r.supSrcset&&!f.supported&&(o?(st.call(n,ct,o),n.srcset=""):ht.call(n,ct));f.supported&&!f.srcset&&(!f.src&&n.src||n.src!==r.makeUrl(f.src))&&(null===f.src?n.removeAttribute("src"):n.src=f.src);f.parsed=!0},r.fillImg=function(n,t){var i,u=t.reselect||t.reevaluate;n[r.ns]||(n[r.ns]={});i=n[r.ns];(u||i.evaled!==y)&&((!i.parsed||t.reevaluate)&&r.parseSets(n,n.parentNode,t),i.supported?i.evaled=y:dt(n))},r.setupRun=function(){(!rt||w||a!==n.devicePixelRatio)&&bt()},r.supPicture?(f=l,r.fillImg=l):!function(){var i,h=n.attachEvent?/d$|^c/:/d$|^c|^i/,f=function(){var n=t.readyState||"";o=setTimeout(f,"loading"===n?200:999);t.body&&(r.fillImgs(),i=i||h.test(n),i&&clearTimeout(o))},o=setTimeout(f,t.body?9:99),c=function(n,t){var i,r,u=function(){var f=new Date-r;t>f?i=setTimeout(u,t-f):(i=null,n())};return function(){r=new Date;i||(i=setTimeout(u,t))}},s=e.clientHeight,l=function(){w=Math.max(n.innerWidth||0,e.clientWidth)!==u.width||e.clientHeight!==s;s=e.clientHeight;w&&r.fillImgs()};yt(n,"resize",c(l,99));yt(t,"readystatechange",f)}(),r.picturefill=f,r.fillImgs=f,r.teardownRun=l,f._=r,n.picturefillCFG={pf:r,push:function(n){var t=n.shift();"function"==typeof r[t]?r[t].apply(r,n):(p[t]=n[0],rt&&r.fillImgs({reselect:!0}))}};it&&it.length;)n.picturefillCFG.push(it.shift());n.picturefill=f;"object"==typeof module&&"object"==typeof module.exports?module.exports=f:"function"==typeof define&&define.amd&&define("picturefill",function(){return f});r.supPicture||(o["image/webp"]=wt("image/webp","data:image/webp;base64,UklGRkoAAABXRUJQVlA4WAoAAAAQAAAAAAAAAAAAQUxQSAwAAAABBxAR/Q9ERP8DAABWUDggGAAAADABAJ0BKgEAAQADADQlpAADcAD++/1QAA=="))}(window,document),function(n,t){function i(){var i=t(n).height();t(".dynamicHeight").css({minHeight:i})}n.betv=n.betv||{};n.betv.dynamicHeight=i}(window,jQuery);!function(n,t){"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?module.exports=t():n.disableScroll=t()}(this,function(){return{options:{disableWheel:!0,disableScrollbar:!0,disableKeys:!0,scrollEventKeys:[32,33,34,35,36,37,38,39,40]},element:document.body,lockToScrollPos:[0,0],on:function(n,t){this.element=n||document.body;this.options=this._extend(this.options,t);this.options.disableWheel&&(document.addEventListener("mousewheel",this._handleWheel),document.addEventListener("DOMMouseScroll",this._handleWheel),document.addEventListener("touchmove",this._handleWheel));this.options.disableScrollbar&&(this.lockToScrollPos=[this.element.scrollLeft,this.element.scrollTop],this._disableScrollbarFn=this._handleScrollbar.bind(this),document.addEventListener("scroll",this._disableScrollbarFn));this.options.disableKeys&&(this._disableKeysFn=this._handleKeydown.bind(this),document.addEventListener("keydown",this._disableKeysFn))},off:function(){document.removeEventListener("mousewheel",this._handleWheel);document.removeEventListener("DOMMouseScroll",this._handleWheel);document.removeEventListener("touchmove",this._handleWheel);document.removeEventListener("scroll",this._disableScrollbarFn);document.removeEventListener("keydown",this._disableKeysFn)},_handleWheel:function(n){n.preventDefault()},_handleScrollbar:function(){window.scrollTo(this.lockToScrollPos[0],this.lockToScrollPos[1])},_handleKeydown:function(n){for(var t=0;t<this.options.scrollEventKeys.length;t++)if(n.keyCode===this.options.scrollEventKeys[t])return n.preventDefault(),!1},_extend:function(n){return Object.keys(Array.prototype.slice(arguments,1)).forEach(function(t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])}),n}}});!function(n,t){"use strict";var i=function(i){var k,v="ScrollMagic",d={container:t,vertical:!0,globalSceneOptions:{},loglevel:2,refreshInterval:100},f=this,u=n.extend({},d,i),o=[],s=!1,c=0,g="PAUSED",y=!0,l=0,p=!1,a=!0,it=function(){if(n.each(u,function(n){d.hasOwnProperty(n)||delete u[n]}),u.container=n(u.container).first(),0===u.container.length)throw v+" init failed.";y=!n.contains(document,u.container.get(0));l=u.vertical?u.container.height():u.container.width();u.container.on("scroll resize",w);try{TweenLite.ticker.addEventListener("tick",h);p=!0}catch(i){u.container.on("scroll resize",h);p=!1}u.refreshInterval=parseInt(u.refreshInterval);u.refreshInterval>0&&(k=t.setInterval(rt,u.refreshInterval))},nt=function(){return u.vertical?u.container.scrollTop():u.container.scrollLeft()},tt=function(n){u.vertical?u.container.scrollTop(n):u.container.scrollLeft(n)},h=function(){var t,r,i;s&&a&&(t=n.isArray(s)?s:o.slice(0),r=c,c=f.scrollPos(),i=c-r,g=0===i?"PAUSED":i>0?"FORWARD":"REVERSE",0>i&&t.reverse(),n.each(t,function(n,t){t.update(!0)}),0===t.length&&u.loglevel>=3,s=!1)},w=function(n){"resize"==n.type&&(l=u.vertical?u.container.height():u.container.width());s=!0},rt=function(){y||l!=(u.vertical?u.container.height():u.container.width())&&u.container.trigger("resize");n.each(o,function(n,t){t.refresh()})},b=function(n){if(n.length<=1)return n;var t=n.slice(0);return t.sort(function(n,t){return n.scrollOffset()>t.scrollOffset()?1:-1}),t};return this.addScene=function(t){return n.isArray(t)?n.each(t,function(n,t){f.addScene(t)}):t instanceof r&&(t.parent()!=f?t.addTo(f):n.inArray(t,o)<0&&(o.push(t),o=b(o),t.on("shift."+v+"_sort",function(){o=b(o)}),n.each(u.globalSceneOptions,function(n,i){t[n]&&t[n].call(t,i)}))),f},this.removeScene=function(t){if(n.isArray(t))n.each(t,function(n,t){f.removeScene(t)});else{var i=n.inArray(t,o);i>-1&&(t.off("shift."+v+"_sort"),o.splice(i,1),t.remove())}return f},this.updateScene=function(t,i){return n.isArray(t)?n.each(t,function(n,t){f.updateScene(t,i)}):i?t.update(!0):(n.isArray(s)||(s=[]),-1==n.inArray(t,s)&&s.push(t),s=b(s)),f},this.update=function(n){return w({type:"resize"}),n&&h(),f},this.scrollTo=function(t){var i,o;return t instanceof r?t.parent()===f?f.scrollTo(t.scrollOffset()):log(2,"scrollTo(): The supplied scene does not belong to this controller. Scroll cancelled.",t):"string"===n.type(t)||e(t)||t instanceof n?(i=n(t).first(),i[0]?(o=i.offset(),f.scrollTo(u.vertical?o.top:o.left)):log(2,"scrollTo(): The supplied element could not be found. Scroll cancelled.",t)):n.isFunction(t)?tt=t:tt.call(u.container[0],t),f},this.scrollPos=function(t){return arguments.length?(n.isFunction(t)&&(nt=t),f):nt.call(f)},this.info=function(n){var t={size:l,vertical:u.vertical,scrollPos:c,scrollDirection:g,container:u.container,isDocument:y};return arguments.length?void 0!==t[n]?t[n]:void 0:t},this.loglevel=function(n){return arguments.length?(u.loglevel!=n&&(u.loglevel=n),f):u.loglevel},this.enabled=function(n){return arguments.length?(a!=n&&(a=!!n,f.updateScene(o,!0)),f):a},this.destroy=function(n){t.clearTimeout(k);for(var i=o.length;i--;)o[i].destroy(n);return u.container.off("scroll resize",w),p?TweenLite.ticker.removeEventListener("tick",h):u.container.off("scroll resize",h),null},it(),f},r=function(r){var d,c,a,s,h,nt,g,st={onCenter:.5,onEnter:1,onLeave:0},p="ScrollScene",b={duration:0,offset:0,triggerElement:null,triggerHook:"onCenter",reverse:!0,tweenChanges:!1,loglevel:2},e=this,o=n.extend({},b,r),l="BEFORE",v=0,y={start:0,end:0},tt=0,it=!0,ft={unknownOptionSupplied:function(){n.each(o,function(n){b.hasOwnProperty(n)||delete o[n]})},duration:function(){if(n.isFunction(o.duration)){d=o.duration;try{o.duration=parseFloat(d())}catch(t){d=void 0;o.duration=b.duration}}else o.duration=parseFloat(o.duration),(!n.isNumeric(o.duration)||o.duration<0)&&(o.duration=b.duration)},offset:function(){o.offset=parseFloat(o.offset);n.isNumeric(o.offset)||(o.offset=b.offset)},triggerElement:function(){null!==o.triggerElement&&0===n(o.triggerElement).length&&(o.triggerElement=b.triggerElement)},triggerHook:function(){o.triggerHook in st||(o.triggerHook=n.isNumeric(o.triggerHook)?Math.max(0,Math.min(parseFloat(o.triggerHook),1)):b.triggerHook)},reverse:function(){o.reverse=!!o.reverse},tweenChanges:function(){o.tweenChanges=!!o.tweenChanges}},at=function(){rt();e.on("change.internal",function(n){"loglevel"!==n.what&&"tweenChanges"!==n.what&&("triggerElement"===n.what?et():"reverse"===n.what&&e.update())}).on("shift.internal",function(n){ht();e.update();("AFTER"===l&&"duration"===n.reason||"DURING"===l&&0===o.duration)&&k()}).on("progress.internal",function(){ot();k()}).on("destroy",function(n){n.preventDefault()})},rt=function(t){if(arguments.length)n.isArray(t)||(t=[t]);else{t=[];for(var i in ft)t.push(i)}n.each(t,function(n,t){ft[t]&&ft[t]()})},w=function(n,t){var i=!1,r=o[n];return o[n]!=t&&(o[n]=t,rt(n),i=r!=o[n]),i},ht=function(){y={start:tt+o.offset};c&&o.triggerElement&&(y.start-=c.info("size")*e.triggerHook());y.end=y.start+o.duration},ct=function(n){if(d){var t="duration";w(t,d.call(e))&&!n&&(e.trigger("change",{what:t,newval:o[t]}),e.trigger("shift",{reason:t}))}},et=function(t){var f=0,l,a;if(c&&o.triggerElement){for(var i=n(o.triggerElement).first(),r=c.info(),h=u(r.container),s=r.vertical?"top":"left";i.parent().data("ScrollMagicPinSpacer");)i=i.parent();l=u(i);r.isDocument||(h[s]-=r.scrollPos);f=l[s]-h[s]}a=f!=tt;tt=f;a&&!t&&e.trigger("shift",{reason:"triggerElementPosition"})},ot=function(n){if(a){var t=n>=0&&1>=n?n:v;if(-1===a.repeat())if("DURING"===l&&a.paused())a.play();else{if("DURING"===l||a.paused())return!1;a.pause()}else{if(t==a.progress())return!1;0===o.duration?"DURING"===l?a.play():a.reverse():o.tweenChanges?a.tweenTo(t*a.duration()):a.progress(t).pause()}return!0}return!1},k=function(n){var i,r,f,t,e;s&&c&&(i=c.info(),n||"DURING"!==l?(r={position:h.inFlow?"relative":"absolute",top:0,left:0},f=s.css("position")!=r.position,h.pushFollowers?o.duration>0&&("AFTER"===l&&0===parseFloat(h.spacer.css("padding-top"))?f=!0:"BEFORE"===l&&0===parseFloat(h.spacer.css("padding-bottom"))&&(f=!0)):r[i.vertical?"top":"left"]=o.duration*v,s.css(r),f&&(s.removeClass(h.pinnedClass),ut())):("fixed"!=s.css("position")&&(s.css("position","fixed"),ut(),s.addClass(h.pinnedClass)),t=u(h.spacer,!0),e=o.reverse||0===o.duration?i.scrollPos-y.start:Math.round(v*o.duration*10)/10,t.top-=parseFloat(h.spacer.css("margin-top")),t[i.vertical?"top":"left"]+=e,s.css({top:t.top,left:t.left})))},ut=function(){if(s&&c&&h.inFlow){var p="AFTER"===l,w="BEFORE"===l,e="DURING"===l,r="fixed"==s.css("position"),a=c.info("vertical"),u=h.spacer.children().first(),y=f(h.spacer.css("display")),i={};y?(i["margin-top"]=w||e&&r?s.css("margin-top"):"auto",i["margin-bottom"]=p||e&&r?s.css("margin-bottom"):"auto"):i["margin-top"]=i["margin-bottom"]="auto";h.relSize.width||h.relSize.autoFullWidth?r?n(t).width()==h.spacer.parent().width()?s.css("width",h.relSize.autoFullWidth?"100%":"inherit"):s.css("width",h.spacer.width()):s.css("width","100%"):(i["min-width"]=u.outerWidth(!u.is(s)),i.width=r?i["min-width"]:"auto");h.relSize.height?r?n(t).height()==h.spacer.parent().height()?s.css("height","inherit"):s.css("height",h.spacer.height()):s.css("height","100%"):(i["min-height"]=u.outerHeight(!y),i.height=r?i["min-height"]:"auto");h.pushFollowers&&(i["padding"+(a?"Top":"Left")]=o.duration*v,i["padding"+(a?"Bottom":"Right")]=o.duration*(1-v));h.spacer.css(i)}},vt=function(){c&&s&&"DURING"===l&&!c.info("isDocument")&&k()},yt=function(){c&&s&&"DURING"===l&&((h.relSize.width||h.relSize.autoFullWidth)&&n(t).width()!=h.spacer.parent().width()||h.relSize.height&&n(t).height()!=h.spacer.parent().height())&&ut()},lt=function(n){c&&s&&"DURING"===l&&c.scrollTo(c.info("scrollPos")-(n.originalEvent.wheelDelta/3||30*-n.originalEvent.detail))};return this.parent=function(){return c},this.duration=function(t){var i="duration";return arguments.length?(n.isFunction(t)||(d=void 0),w(i,t)&&(e.trigger("change",{what:i,newval:o[i]}),e.trigger("shift",{reason:i})),e):o[i]},this.offset=function(n){var t="offset";return arguments.length?(w(t,n)&&(e.trigger("change",{what:t,newval:o[t]}),e.trigger("shift",{reason:t})),e):o[t]},this.triggerElement=function(n){var t="triggerElement";return arguments.length?(w(t,n)&&e.trigger("change",{what:t,newval:o[t]}),e):o[t]},this.triggerHook=function(t){var i="triggerHook";return arguments.length?(w(i,t)&&(e.trigger("change",{what:i,newval:o[i]}),e.trigger("shift",{reason:i})),e):n.isNumeric(o[i])?o[i]:st[o[i]]},this.reverse=function(n){var t="reverse";return arguments.length?(w(t,n)&&e.trigger("change",{what:t,newval:o[t]}),e):o[t]},this.tweenChanges=function(n){var t="tweenChanges";return arguments.length?(w(t,n)&&e.trigger("change",{what:t,newval:o[t]}),e):o[t]},this.loglevel=function(n){var t="loglevel";return arguments.length?(w(t,n)&&e.trigger("change",{what:t,newval:o[t]}),e):o[t]},this.state=function(){return l},this.triggerPosition=function(){var n=o.offset;return c&&(n+=o.triggerElement?tt:c.info("size")*e.triggerHook()),n},this.triggerOffset=function(){return e.triggerPosition()},this.scrollOffset=function(){return y.start},this.update=function(n){if(c)if(n)if(c.enabled()&&it){var i,t=c.info("scrollPos");i=o.duration>0?(t-y.start)/(y.end-y.start):t>=y.start?1:0;e.trigger("update",{startPos:y.start,endPos:y.end,scrollPos:t});e.progress(i)}else s&&"DURING"===l&&k(!0);else c.updateScene(e,!1);return e},this.refresh=function(){return ct(),et(),e},this.progress=function(n){if(arguments.length){var t=!1,u=l,s=c?c.info("scrollDirection"):"PAUSED",r=o.reverse||n>=v;if(0===o.duration?(t=v!=n,v=1>n&&r?0:1,l=0===v?"BEFORE":"DURING"):0>=n&&"BEFORE"!==l&&r?(v=0,l="BEFORE",t=!0):n>0&&1>n&&r?(v=n,l="DURING",t=!0):n>=1&&"AFTER"!==l?(v=1,l="AFTER",t=!0):"DURING"!==l||r||k(),t){var h={progress:v,state:l,scrollDirection:s},f=l!=u,i=function(n){e.trigger(n,h)};f&&"DURING"!==u&&(i("enter"),i("BEFORE"===u?"start":"end"));i("progress");f&&"DURING"!==l&&(i("BEFORE"===l?"start":"end"),i("leave"))}return e}return v},this.setTween=function(n){a&&e.removeTween();try{a=new TimelineMax({smoothChildTiming:!0}).add(n).pause()}catch(t){}finally{return n.repeat&&-1===n.repeat()&&(a.repeat(-1),a.yoyo(n.yoyo())),rt("checkIfTriggerElementIsTweened"),ot(),e}},this.removeTween=function(n){return a&&(n&&ot(0),a.kill(),a=void 0),e},this.setPin=function(i,r){var l,u;if((r=n.extend({},{pushFollowers:!0,spacerClass:"scrollmagic-pin-spacer",pinnedClass:""},r),i=n(i).first(),0===i.length)||"fixed"==i.css("position"))return e;if(s){if(s===i)return e;e.removePin()}s=i;s.parent().hide();var o="absolute"!=s.css("position"),a=s.css(["display","top","left","bottom","right"]),c=s.css(["width","height"]);return s.parent().show(),"0px"===c.width&&o&&f(a.display),!o&&r.pushFollowers&&(r.pushFollowers=!1),l=n("<div><\/div>").addClass(r.spacerClass).css(a).data("ScrollMagicPinSpacer",!0).css({position:o?"relative":"absolute","margin-left":"auto","margin-right":"auto","box-sizing":"content-box"}),u=s[0].style,h={spacer:l,relSize:{width:"%"===c.width.slice(-1),height:"%"===c.height.slice(-1),autoFullWidth:"0px"===c.width&&o&&f(a.display)},pushFollowers:r.pushFollowers,inFlow:o,origStyle:{width:u.width||"",position:u.position||"",top:u.top||"",left:u.left||"",bottom:u.bottom||"",right:u.right||"","box-sizing":u["box-sizing"]||"","-moz-box-sizing":u["-moz-box-sizing"]||"","-webkit-box-sizing":u["-webkit-box-sizing"]||""},pinnedClass:r.pinnedClass},h.relSize.width&&l.css("width",c.width),h.relSize.height&&l.css("height",c.height),s.before(l).appendTo(l).css({position:o?"relative":"absolute",top:"auto",left:"auto",bottom:"auto",right:"auto"}),(h.relSize.width||h.relSize.autoFullWidth)&&s.css("box-sizing","border-box"),n(t).on("scroll."+p+"_pin resize."+p+"_pin",vt),s.on("mousewheel DOMMouseScroll",lt),k(),e},this.removePin=function(i){return s&&(i||!c?(s.insertBefore(h.spacer).css(h.origStyle),h.spacer.remove()):"DURING"===l&&k(!0),n(t).off("scroll."+p+"_pin resize."+p+"_pin"),s.off("mousewheel DOMMouseScroll",lt),s=void 0),e},this.setClassToggle=function(t,i){var r=n(t);return 0===r.length||"string"!==n.type(i)?e:(nt=i,g=r,e.on("enter.internal_class leave.internal_class",function(n){g.toggleClass(nt,"enter"===n.type)}),e)},this.removeClassToggle=function(n){return g&&n&&g.removeClass(nt),e.off("start.internal_class end.internal_class"),nt=void 0,g=void 0,e},this.addTo=function(n){return n instanceof i&&c!=n&&(c&&c.removeScene(e),c=n,rt(),ct(!0),et(!0),ht(),ut(),c.info("container").on("resize."+p,function(){yt();e.triggerHook()>0&&e.trigger("shift",{reason:"containerSize"})}),n.addScene(e),e.update()),e},this.enabled=function(n){return arguments.length?(it!=n&&(it=!!n,e.update(!0)),e):it},this.remove=function(){if(c){c.info("container").off("resize."+p);var n=c;c=void 0;n.removeScene(e)}return e},this.destroy=function(n){return e.removeTween(n),e.removePin(n),e.removeClassToggle(n),e.trigger("destroy",{reset:n}),e.remove(),e.off("start end enter leave progress change update shift destroy shift.internal change.internal progress.internal"),null},this.on=function(t,i){if(n.isFunction(i)){var r=n.trim(t).toLowerCase().replace(/(\w+)\.(\w+)/g,"$1."+p+"_$2").replace(/( |^)(\w+)(?= |$)/g,"$1$2."+p);n(e).on(r,i)}return e},this.off=function(t,i){var r=n.trim(t).toLowerCase().replace(/(\w+)\.(\w+)/g,"$1."+p+"_$2").replace(/( |^)(\w+)(?= |$)/g,"$1$2."+p+"$3");return n(e).off(r,i),e},this.trigger=function(t,i){var r=n.Event(n.trim(t).toLowerCase(),i);return n(e).trigger(r),e},at(),e};i.prototype.version="1.1.0";t.ScrollScene=r;t.ScrollMagic=i;var u=function(t,i){var r={top:0,left:0},u=t[0],f;return u&&(u.getBoundingClientRect?(f=u.getBoundingClientRect(),r.top=f.top,r.left=f.left,i||(r.top+=n(document).scrollTop(),r.left+=n(document).scrollLeft())):(r=t.offset()||r,i&&(r.top-=n(document).scrollTop(),r.left-=n(document).scrollLeft()))),r},e=function(n){return"object"==typeof HTMLElement?n instanceof HTMLElement:n&&"object"==typeof n&&null!==n&&1===n.nodeType&&"string"==typeof n.nodeName},f=function(n){return["block","flex","list-item","table","-webkit-box"].indexOf(n)>-1}}(jQuery,window),function(n,t){t.prototype.addIndicators=function(t){var h={parent:undefined,zindex:-1,indent:0,suffix:"",colorTrigger:"blue",colorStart:"green",colorEnd:"red"},r=this,i=n.extend({},h,t),o=this.parent(),f;if(o){var u=o.info(),s=i.labelSuffix===""?"":" "+i.suffix,e=n(i.parent).length>0?n(i.parent):u.isDocument?n("body"):u.container,c=n("<div><\/div>").addClass("ScrollSceneIndicators").data("options",i).css({position:"absolute",top:0,left:0,width:"100%",height:"100%","text-align":"center","z-index":i.zindex,"pointer-events":"none","font-size":10}),l=n("<div>trigger<\/div>").css({position:"fixed",overflow:"visible",color:i.colorTrigger}).addClass("hook");$start=n("<div>start"+s+"<\/div>").css({position:"absolute",overflow:"visible",color:i.colorStart}).addClass("start");$end=n("<div>end"+s+"<\/div>").css({position:"absolute",overflow:"visible",color:i.colorEnd}).addClass("end");e.css("position")=="static"&&e.css("position","relative");r.indicators=c.append(l).append($start).append($end).appendTo(e);r.updateIndicators();f=function(n){n.type!="scroll"&&n.type!="resize"||u.isDocument?r.updateIndicators():r.updateIndicators(!0)};r.on("change.debug",f);u.container.on("resize scroll",f);if(!u.isDocument)n(window).on("scroll resize",f)}else console.log("ERROR: Please add Scene to controller before adding indicators.");return r};t.prototype.updateIndicators=function(t){var o=this,y=o.parent(),f=o.indicators,s=f.data("options"),a,e;if(f&&y){var i=y.info(),r=f.children(".hook"),l=f.children(".start"),h=f.children(".end"),c=i.container.offset()||{top:0,left:0},k=i.vertical?c.top:c.left,u=i.size*o.triggerHook()+k,p=i.vertical?"v":"h";if(i.isDocument?(a=f.offsetParent().is("body")?n("body").offset():c,f.css({top:-a.top,left:-a.left})):u-=i.vertical?n(document).scrollTop():n(document).scrollLeft(),r.attr("data-hook",u).attr("data-direction",p).data("parent",i.container),$otherhook=n('.ScrollSceneIndicators .hook[data-hook="'+u+'"][data-direction='+p+"]:visible").not(r),$otherhook.length>0&&$otherhook.data("parent")==i.container?r.hide():(r.show(),e=u>i.size*.8,i.vertical?r.css({top:e?u-r.height()-2:u,left:(i.isDocument?i.container.width():c.left+i.container.width()-n(document).scrollLeft())-70-s.indent,width:40,height:"auto",padding:"0 8px 2px 8px","border-top":e?"none":"1px solid blue","border-bottom":e?"1px solid blue":"none","border-left":"none","border-right":"none"}):r.css({top:(i.isDocument?i.container.height():c.top+i.container.height()-n(document).scrollTop())-40-s.indent,left:e?u-r.width()-9:u,width:"auto",height:20,padding:"5px 5px 0 5px","border-top":"none","border-bottom":"none","border-left":e?"none":"1px solid blue","border-right":e?"1px solid blue":"none"})),!t){var v=o.triggerPosition(),w=v+o.duration(),b={border:"none",top:"auto",bottom:"auto",left:"auto",right:"auto"};l.css(b);h.css(b);o.duration()===0?h.hide():h.show();i.vertical?(l.css({top:v,right:71-i.container.scrollLeft()+s.indent,"border-top":"1px solid green",padding:"0 8px 0 8px"}),h.css({top:w,right:71-i.container.scrollLeft()+s.indent,"border-top":"1px solid red",padding:"0 8px 0 8px"})):(l.css({left:v,bottom:40-i.container.scrollTop()+s.indent,"border-left":"1px solid green",padding:"0 8px 0 8px"}),h.css({left:w,bottom:40-i.container.scrollTop()+s.indent,"border-left":"1px solid red",padding:"0 8px 0 8px"}))}}}}(jQuery,ScrollScene);!function(n){var t=!1,r,i;("function"==typeof define&&define.amd&&(define(n),t=!0),"object"==typeof exports&&(module.exports=n(),t=!0),t)||(r=window.Cookies,i=window.Cookies=n(),i.noConflict=function(){return window.Cookies=r,i})}(function(){function n(){for(var i,r,n=0,t={};n<arguments.length;n++){i=arguments[n];for(r in i)t[r]=i[r]}return t}function t(i){function r(t,u,f){var o,c,l,s,v,e,h;if("undefined"!=typeof document){if(arguments.length>1){"number"==typeof(f=n({path:"/"},r.defaults,f)).expires&&(c=new Date,c.setMilliseconds(c.getMilliseconds()+864e5*f.expires),f.expires=c);f.expires=f.expires?f.expires.toUTCString():"";try{o=JSON.stringify(u);/^[\{\[]/.test(o)&&(u=o)}catch(n){}u=i.write?i.write(u,t):encodeURIComponent(u+"").replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent);t=(t=(t=encodeURIComponent(t+"")).replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent)).replace(/[\(\)]/g,escape);l="";for(s in f)f[s]&&(l+="; "+s,!0!==f[s]&&(l+="="+f[s]));return document.cookie=t+"="+u+l}t||(o={});for(var y=document.cookie?document.cookie.split("; "):[],p=/(%[0-9A-Z]{2})+/g,a=0;a<y.length;a++){v=y[a].split("=");e=v.slice(1).join("=");this.json||'"'!==e.charAt(0)||(e=e.slice(1,-1));try{if(h=v[0].replace(p,decodeURIComponent),e=i.read?i.read(e,h):i(e,h)||e.replace(p,decodeURIComponent),this.json)try{e=JSON.parse(e)}catch(n){}if(t===h){o=e;break}t||(o[h]=e)}catch(n){}}return o}}return r.set=r,r.get=function(n){return r.call(r,n)},r.getJSON=function(){return r.apply({json:!0},[].slice.call(arguments))},r.defaults={},r.remove=function(t,i){r(t,"",n(i,{expires:-1}))},r.withConverter=t,r}return t(function(){})}),function(n,t){function i(){var t=n.navigator.userAgent,i=t.indexOf("MSIE");return i>0?parseInt(t.substring(i+5,t.indexOf(".",i))):navigator.userAgent.match(/Trident\/7\./)?11:0}function r(){var n=navigator.userAgent.toLowerCase();return n.indexOf("msie")!=-1?parseInt(n.split("msie")[1]):!1}function u(){function r(){var r=t(n).height(),i=r/7;t(".menuLi").css({height:i,"line-height":i+"px"})}function u(){var i=t(n).height()-60,r=t("header nav li").length-1;return i/r}function f(){var i=u();t(n).height()<450&&t("header nav li").css("height",u())}function o(){e<1010&&r();f();t("header").on("click",".toggle-menu",function(){i?n.disableScroll.on():n.disableScroll.off();i=!i;t("header nav").slideToggle(400,function(){})});t(n).resize(function(){var i=t(n).innerWidth();i>=1024?(t("header nav").css({display:"block"}),t(".menuLi").css({height:"54","line-height":"54px"}),disableScroll.off()):(t("header nav").css({display:"none"}),r());f()})}var i=!0,e=t(n).innerWidth();o()}function f(){function u(n){if(n<=970&&i==!1){i=!0;t("#swipperAvantages").addClass("swiper-container");t("#swipperAvantages .avantages").addClass("swiper-wrapper");t("#swipperAvantages .avantages li").addClass("swiper-slide");var r=new Swiper("#swipperAvantages",{pagination:".swiper-pagination-avantages",paginationClickable:!0,speed:700})}else n>970&&i==!0&&(i=!1,delete r,t("#swipperAvantages").removeClass("swiper-container"),t("#swipperAvantages .avantages").removeClass("swiper-wrapper"),t("#swipperAvantages .avantages li").removeAttr("style"),t("#swipperAvantages .avantages li").removeAttr("class"))}var i=!1,r=t(n).innerWidth();r<=970&&u(r);t(n).resize(function(){r=t(n).innerWidth();u(r)})}function e(){function u(n){if(n<=1024&&i==!1){i=!0;t("#swipperChannels").addClass("swiper-container");t("#swipperChannels .njtv-channels").addClass("swiper-wrapper");t("#swipperChannels .njtv-channels li").addClass("swiper-slide");var r=new Swiper("#swipperChannels",{slidesPerView:2,slidesPerGroup:2,spaceBetween:0,pagination:".swiper-pagination-channels",paginationClickable:!0,speed:700})}else n>1024&&i==!0&&(i=!1,delete r,t("#swipperChannels").removeClass("swiper-container"),t("#swipperChannels .njtv-channels").removeClass("swiper-wrapper"),t("#swipperChannels .njtv-channels li").removeAttr("style"),t("#swipperChannels .njtv-channels li").removeAttr("class"))}var i=!1,r=t(n).innerWidth();r<=970&&u(r);t(n).resize(function(){r=t(n).innerWidth();u(r)})}function o(){function s(){function h(n){return n<10&&(n="0"+n),n}var l=new Date,s=u-l;if(s<0){clearInterval(o);t(n).html("");return}var c=Math.floor(s/e),a=Math.floor(c/7),v=Math.floor(c%7),y=Math.floor(s%e/r),p=Math.floor(s%r/i),w=Math.floor(s%i/f);t(n).find(".tpk-w .value").html(h(a));t(n).find(".tpk-d .value").html(h(v));t(n).find(".tpk-h .value").html(h(y));t(n).find(".tpk-m .value").html(h(p));t(n).find(".tpk-s .value").html(h(w))}var n=t(".tpk-countDownCTN"),u,f=1e3,i=f*60,r=i*60,e=r*24,o;u=new Date(t(n).attr("tpk-time"));o=setInterval(s,1e3)}t(".openerCine").click(function(){t(".cguCine .content").slideToggle(200);t(this).hasClass("opened")?t(this).removeClass("opened"):t(this).addClass("opened")});t(".openerWall").click(function(){t(".cguCine .contentWall").slideToggle(200);t(this).hasClass("opened")?t(this).removeClass("opened"):t(this).addClass("opened")});n.betv=n.betv||{};n.betv.Menu=u;n.betv.GetIEVersion=i;n.betv.isIE=r;n.betv.Avantages=f;n.betv.Channels=e;n.betv.CountDown=o}(window,jQuery),function(n){n.onload=function(){var i=new TimelineMax({repeat:-1}),t=119,n=1/15*t,r=TweenMax.to(".spritesheet",n,{repeat:-1,backgroundPosition:"-8925px",ease:SteppedEase.config(t),delay:n/8});i.to("#spritesheetTxt .txtPortables",n/8,{left:"0",ease:Linear.linear}).to("#spritesheetTxt .txtPortables",n/8,{left:"-110px",ease:Linear.linear}).to("#spritesheetTxt .txtTv",n/8,{left:"0",ease:Linear.linear}).to("#spritesheetTxt .txtTv",n/8,{left:"-110px",ease:Linear.linear}).to("#spritesheetTxt .txtTab",n/8,{left:"0",ease:Linear.linear}).to("#spritesheetTxt .txtTab",n/8,{left:"-110px",ease:Linear.linear}).to("#spritesheetTxt .txtXbox",n/8,{left:"0",ease:Linear.linear}).to("#spritesheetTxt .txtXbox",n/8,{left:"-110px",ease:Linear.linear})}}(window,jQuery);!function(){"use strict";function f(n){n.fn.swiper=function(i){var r;return n(this).each(function(){var n=new t(this,i);r||(r=n)}),r}}var n,t=function(i,r){function b(n){return Math.floor(n)}function ut(){u.autoplayTimeoutId=setTimeout(function(){u.params.loop?(u.fixLoop(),u._slideNext(),u.emit("onAutoplay",u)):u.isEnd?r.autoplayStopOnLast?u.stopAutoplay():(u._slideTo(0),u.emit("onAutoplay",u)):(u._slideNext(),u.emit("onAutoplay",u))},u.params.autoplay)}function ft(t,i){var r=n(t.target),u;if(!r.is(i))if("string"==typeof i)r=r.parents(i);else if(i.nodeType)return r.parents().each(function(n,t){t===i&&(u=i)}),u?i:void 0;if(0!==r.length)return r[0]}function et(n,t){t=t||{};var r=window.MutationObserver||window.WebkitMutationObserver,i=new r(function(n){n.forEach(function(n){u.onResize(!0);u.emit("onObserverUpdate",u,n)})});i.observe(n,{attributes:"undefined"==typeof t.attributes?!0:t.attributes,childList:"undefined"==typeof t.childList?!0:t.childList,characterData:"undefined"==typeof t.characterData?!0:t.characterData});u.observers.push(i)}function yt(n){var t,o,s,e,r;if((n.originalEvent&&(n=n.originalEvent),t=n.keyCode||n.charCode,!u.params.allowSwipeToNext&&(u.isHorizontal()&&39===t||!u.isHorizontal()&&40===t))||!u.params.allowSwipeToPrev&&(u.isHorizontal()&&37===t||!u.isHorizontal()&&38===t))return!1;if(!(n.shiftKey||n.altKey||n.ctrlKey||n.metaKey||document.activeElement&&document.activeElement.nodeName&&("input"===document.activeElement.nodeName.toLowerCase()||"textarea"===document.activeElement.nodeName.toLowerCase()))){if(37===t||39===t||38===t||40===t){if(o=!1,u.container.parents(".swiper-slide").length>0&&0===u.container.parents(".swiper-slide-active").length)return;var f={left:window.pageXOffset,top:window.pageYOffset},h=window.innerWidth,c=window.innerHeight,i=u.container.offset();for(u.rtl&&(i.left=i.left-u.container[0].scrollLeft),s=[[i.left,i.top],[i.left+u.width,i.top],[i.left,i.top+u.height],[i.left+u.width,i.top+u.height]],e=0;e<s.length;e++)r=s[e],r[0]>=f.left&&r[0]<=f.left+h&&r[1]>=f.top&&r[1]<=f.top+c&&(o=!0);if(!o)return}u.isHorizontal()?((37===t||39===t)&&(n.preventDefault?n.preventDefault():n.returnValue=!1),(39===t&&!u.rtl||37===t&&u.rtl)&&u.slideNext(),(37===t&&!u.rtl||39===t&&u.rtl)&&u.slidePrev()):((38===t||40===t)&&(n.preventDefault?n.preventDefault():n.returnValue=!1),40===t&&u.slideNext(),38===t&&u.slidePrev())}}function pt(n){n.originalEvent&&(n=n.originalEvent);var f=u.mousewheel.event,t=0,r=u.rtl?-1:1;if("mousewheel"===f)if(u.params.mousewheelForceToAxis)if(u.isHorizontal()){if(!(Math.abs(n.wheelDeltaX)>Math.abs(n.wheelDeltaY)))return;t=n.wheelDeltaX*r}else{if(!(Math.abs(n.wheelDeltaY)>Math.abs(n.wheelDeltaX)))return;t=n.wheelDeltaY}else t=Math.abs(n.wheelDeltaX)>Math.abs(n.wheelDeltaY)?-n.wheelDeltaX*r:-n.wheelDeltaY;else if("DOMMouseScroll"===f)t=-n.detail;else if("wheel"===f)if(u.params.mousewheelForceToAxis)if(u.isHorizontal()){if(!(Math.abs(n.deltaX)>Math.abs(n.deltaY)))return;t=-n.deltaX*r}else{if(!(Math.abs(n.deltaY)>Math.abs(n.deltaX)))return;t=-n.deltaY}else t=Math.abs(n.deltaX)>Math.abs(n.deltaY)?-n.deltaX*r:-n.deltaY;if(0!==t){if(u.params.mousewheelInvert&&(t=-t),u.params.freeMode){var i=u.getWrapperTranslate()+t*u.params.mousewheelSensitivity,e=u.isBeginning,o=u.isEnd;if(i>=u.minTranslate()&&(i=u.minTranslate()),i<=u.maxTranslate()&&(i=u.maxTranslate()),u.setWrapperTransition(0),u.setWrapperTranslate(i),u.updateProgress(),u.updateActiveIndex(),(!e&&u.isBeginning||!o&&u.isEnd)&&u.updateClasses(),u.params.freeModeSticky?(clearTimeout(u.mousewheel.timeout),u.mousewheel.timeout=setTimeout(function(){u.slideReset()},300)):u.params.lazyLoading&&u.lazy&&u.lazy.load(),0===i||i===u.maxTranslate())return}else{if((new window.Date).getTime()-u.mousewheel.lastScrollTime>60)if(0>t)if(u.isEnd&&!u.params.loop||u.animating){if(u.params.mousewheelReleaseOnEdges)return!0}else u.slideNext();else if(u.isBeginning&&!u.params.loop||u.animating){if(u.params.mousewheelReleaseOnEdges)return!0}else u.slidePrev();u.mousewheel.lastScrollTime=(new window.Date).getTime()}return u.params.autoplay&&u.stopAutoplay(),n.preventDefault?n.preventDefault():n.returnValue=!1,!1}}function wt(t,i){t=n(t);var e,r,f,o=u.rtl?-1:1;e=t.attr("data-swiper-parallax")||"0";r=t.attr("data-swiper-parallax-x");f=t.attr("data-swiper-parallax-y");r||f?(r=r||"0",f=f||"0"):u.isHorizontal()?(r=e,f="0"):(f=e,r="0");r=r.indexOf("%")>=0?parseInt(r,10)*i*o+"%":r*i*o+"px";f=f.indexOf("%")>=0?parseInt(f,10)*i+"%":f*i+"px";t.transform("translate3d("+r+", "+f+",0px)")}function ot(n){return 0!==n.indexOf("on")&&(n=n[0]!==n[0].toUpperCase()?"on"+n[0].toUpperCase()+n.substring(1):"on"+n),n}var v,bt,y,e,st,s,k,u,ht,a,it,rt,at,vt;if(!(this instanceof t))return new t(i,r);v={direction:"horizontal",touchEventsTarget:"container",initialSlide:0,speed:300,autoplay:!1,autoplayDisableOnInteraction:!0,autoplayStopOnLast:!1,iOSEdgeSwipeDetection:!1,iOSEdgeSwipeThreshold:20,freeMode:!1,freeModeMomentum:!0,freeModeMomentumRatio:1,freeModeMomentumBounce:!0,freeModeMomentumBounceRatio:1,freeModeSticky:!1,freeModeMinimumVelocity:.02,autoHeight:!1,setWrapperSize:!1,virtualTranslate:!1,effect:"slide",coverflow:{rotate:50,stretch:0,depth:100,modifier:1,slideShadows:!0},flip:{slideShadows:!0,limitRotation:!0},cube:{slideShadows:!0,shadow:!0,shadowOffset:20,shadowScale:.94},fade:{crossFade:!1},parallax:!1,scrollbar:null,scrollbarHide:!0,scrollbarDraggable:!1,scrollbarSnapOnRelease:!1,keyboardControl:!1,mousewheelControl:!1,mousewheelReleaseOnEdges:!1,mousewheelInvert:!1,mousewheelForceToAxis:!1,mousewheelSensitivity:1,hashnav:!1,breakpoints:void 0,spaceBetween:0,slidesPerView:1,slidesPerColumn:1,slidesPerColumnFill:"column",slidesPerGroup:1,centeredSlides:!1,slidesOffsetBefore:0,slidesOffsetAfter:0,roundLengths:!1,touchRatio:1,touchAngle:45,simulateTouch:!0,shortSwipes:!0,longSwipes:!0,longSwipesRatio:.5,longSwipesMs:300,followFinger:!0,onlyExternal:!1,threshold:0,touchMoveStopPropagation:!0,uniqueNavElements:!0,pagination:null,paginationElement:"span",paginationClickable:!1,paginationHide:!1,paginationBulletRender:null,paginationProgressRender:null,paginationFractionRender:null,paginationCustomRender:null,paginationType:"bullets",resistance:!0,resistanceRatio:.85,nextButton:null,prevButton:null,watchSlidesProgress:!1,watchSlidesVisibility:!1,grabCursor:!1,preventClicks:!0,preventClicksPropagation:!0,slideToClickedSlide:!1,lazyLoading:!1,lazyLoadingInPrevNext:!1,lazyLoadingInPrevNextAmount:1,lazyLoadingOnTransitionStart:!1,preloadImages:!0,updateOnImagesReady:!0,loop:!1,loopAdditionalSlides:0,loopedSlides:null,control:void 0,controlInverse:!1,controlBy:"slide",allowSwipeToPrev:!0,allowSwipeToNext:!0,swipeHandler:null,noSwiping:!0,noSwipingClass:"swiper-no-swiping",slideClass:"swiper-slide",slideActiveClass:"swiper-slide-active",slideVisibleClass:"swiper-slide-visible",slideDuplicateClass:"swiper-slide-duplicate",slideNextClass:"swiper-slide-next",slidePrevClass:"swiper-slide-prev",wrapperClass:"swiper-wrapper",bulletClass:"swiper-pagination-bullet",bulletActiveClass:"swiper-pagination-bullet-active",buttonDisabledClass:"swiper-button-disabled",paginationCurrentClass:"swiper-pagination-current",paginationTotalClass:"swiper-pagination-total",paginationHiddenClass:"swiper-pagination-hidden",paginationProgressbarClass:"swiper-pagination-progressbar",observer:!1,observeParents:!1,a11y:!1,prevSlideMessage:"Previous slide",nextSlideMessage:"Next slide",firstSlideMessage:"This is the first slide",lastSlideMessage:"This is the last slide",paginationBulletMessage:"Go to slide {{index}}",runCallbacksOnInit:!0};bt=r&&r.virtualTranslate;r=r||{};y={};for(e in r)if("object"!=typeof r[e]||null===r[e]||r[e].nodeType||r[e]===window||r[e]===document||"undefined"!=typeof Dom7&&r[e]instanceof Dom7||"undefined"!=typeof jQuery&&r[e]instanceof jQuery)y[e]=r[e];else{y[e]={};for(st in r[e])y[e][st]=r[e][st]}for(s in v)if("undefined"==typeof r[s])r[s]=v[s];else if("object"==typeof r[s])for(k in v[s])"undefined"==typeof r[s][k]&&(r[s][k]=v[s][k]);if(u=this,u.params=r,u.originalParams=y,u.classNames=[],"undefined"!=typeof n&&"undefined"!=typeof Dom7&&(n=Dom7),("undefined"!=typeof n||(n="undefined"==typeof Dom7?window.Dom7||window.Zepto||window.jQuery:Dom7))&&(u.$=n,u.currentBreakpoint=void 0,u.getActiveBreakpoint=function(){var n,i,t,r;if(!u.params.breakpoints)return!1;i=!1;t=[];for(n in u.params.breakpoints)u.params.breakpoints.hasOwnProperty(n)&&t.push(n);for(t.sort(function(n,t){return parseInt(n,10)>parseInt(t,10)}),r=0;r<t.length;r++)n=t[r],n>=window.innerWidth&&!i&&(i=n);return i||"max"},u.setBreakpoint=function(){var n=u.getActiveBreakpoint(),t,r,i;if(n&&u.currentBreakpoint!==n){t=n in u.params.breakpoints?u.params.breakpoints[n]:u.originalParams;r=u.params.loop&&t.slidesPerView!==u.params.slidesPerView;for(i in t)u.params[i]=t[i];u.currentBreakpoint=n;r&&u.destroyLoop&&u.reLoop(!0)}},u.params.breakpoints&&u.setBreakpoint(),u.container=n(i),0!==u.container.length)){if(u.container.length>1)return ht=[],u.container.each(function(){ht.push(new t(this,r))}),ht;u.container[0].swiper=u;u.container.data("swiper",u);u.classNames.push("swiper-container-"+u.params.direction);u.params.freeMode&&u.classNames.push("swiper-container-free-mode");u.support.flexbox||(u.classNames.push("swiper-container-no-flexbox"),u.params.slidesPerColumn=1);u.params.autoHeight&&u.classNames.push("swiper-container-autoheight");(u.params.parallax||u.params.watchSlidesVisibility)&&(u.params.watchSlidesProgress=!0);["cube","coverflow","flip"].indexOf(u.params.effect)>=0&&(u.support.transforms3d?(u.params.watchSlidesProgress=!0,u.classNames.push("swiper-container-3d")):u.params.effect="slide");"slide"!==u.params.effect&&u.classNames.push("swiper-container-"+u.params.effect);"cube"===u.params.effect&&(u.params.resistanceRatio=0,u.params.slidesPerView=1,u.params.slidesPerColumn=1,u.params.slidesPerGroup=1,u.params.centeredSlides=!1,u.params.spaceBetween=0,u.params.virtualTranslate=!0,u.params.setWrapperSize=!1);("fade"===u.params.effect||"flip"===u.params.effect)&&(u.params.slidesPerView=1,u.params.slidesPerColumn=1,u.params.slidesPerGroup=1,u.params.watchSlidesProgress=!0,u.params.spaceBetween=0,u.params.setWrapperSize=!1,"undefined"==typeof bt&&(u.params.virtualTranslate=!0));u.params.grabCursor&&u.support.touch&&(u.params.grabCursor=!1);u.wrapper=u.container.children("."+u.params.wrapperClass);u.params.pagination&&(u.paginationContainer=n(u.params.pagination),u.params.uniqueNavElements&&"string"==typeof u.params.pagination&&u.paginationContainer.length>1&&1===u.container.find(u.params.pagination).length&&(u.paginationContainer=u.container.find(u.params.pagination)),"bullets"===u.params.paginationType&&u.params.paginationClickable?u.paginationContainer.addClass("swiper-pagination-clickable"):u.params.paginationClickable=!1,u.paginationContainer.addClass("swiper-pagination-"+u.params.paginationType));(u.params.nextButton||u.params.prevButton)&&(u.params.nextButton&&(u.nextButton=n(u.params.nextButton),u.params.uniqueNavElements&&"string"==typeof u.params.nextButton&&u.nextButton.length>1&&1===u.container.find(u.params.nextButton).length&&(u.nextButton=u.container.find(u.params.nextButton))),u.params.prevButton&&(u.prevButton=n(u.params.prevButton),u.params.uniqueNavElements&&"string"==typeof u.params.prevButton&&u.prevButton.length>1&&1===u.container.find(u.params.prevButton).length&&(u.prevButton=u.container.find(u.params.prevButton))));u.isHorizontal=function(){return"horizontal"===u.params.direction};u.rtl=u.isHorizontal()&&("rtl"===u.container[0].dir.toLowerCase()||"rtl"===u.container.css("direction"));u.rtl&&u.classNames.push("swiper-container-rtl");u.rtl&&(u.wrongRTL="-webkit-box"===u.wrapper.css("display"));u.params.slidesPerColumn>1&&u.classNames.push("swiper-container-multirow");u.device.android&&u.classNames.push("swiper-container-android");u.container.addClass(u.classNames.join(" "));u.translate=0;u.progress=0;u.velocity=0;u.lockSwipeToNext=function(){u.params.allowSwipeToNext=!1};u.lockSwipeToPrev=function(){u.params.allowSwipeToPrev=!1};u.lockSwipes=function(){u.params.allowSwipeToNext=u.params.allowSwipeToPrev=!1};u.unlockSwipeToNext=function(){u.params.allowSwipeToNext=!0};u.unlockSwipeToPrev=function(){u.params.allowSwipeToPrev=!0};u.unlockSwipes=function(){u.params.allowSwipeToNext=u.params.allowSwipeToPrev=!0};u.params.grabCursor&&(u.container[0].style.cursor="move",u.container[0].style.cursor="-webkit-grab",u.container[0].style.cursor="-moz-grab",u.container[0].style.cursor="grab");u.imagesToLoad=[];u.imagesLoaded=0;u.loadImage=function(n,t,i,r,u){function e(){u&&u()}var f;n.complete&&r?e():t?(f=new window.Image,f.onload=e,f.onerror=e,i&&(f.srcset=i),t&&(f.src=t)):e()};u.preloadImages=function(){function t(){"undefined"!=typeof u&&null!==u&&(void 0!==u.imagesLoaded&&u.imagesLoaded++,u.imagesLoaded===u.imagesToLoad.length&&(u.params.updateOnImagesReady&&u.update(),u.emit("onImagesReady",u)))}u.imagesToLoad=u.container.find("img");for(var n=0;n<u.imagesToLoad.length;n++)u.loadImage(u.imagesToLoad[n],u.imagesToLoad[n].currentSrc||u.imagesToLoad[n].getAttribute("src"),u.imagesToLoad[n].srcset||u.imagesToLoad[n].getAttribute("srcset"),!0,t)};u.autoplayTimeoutId=void 0;u.autoplaying=!1;u.autoplayPaused=!1;u.startAutoplay=function(){return"undefined"!=typeof u.autoplayTimeoutId?!1:u.params.autoplay?u.autoplaying?!1:(u.autoplaying=!0,u.emit("onAutoplayStart",u),void ut()):!1};u.stopAutoplay=function(){u.autoplayTimeoutId&&(u.autoplayTimeoutId&&clearTimeout(u.autoplayTimeoutId),u.autoplaying=!1,u.autoplayTimeoutId=void 0,u.emit("onAutoplayStop",u))};u.pauseAutoplay=function(n){u.autoplayPaused||(u.autoplayTimeoutId&&clearTimeout(u.autoplayTimeoutId),u.autoplayPaused=!0,0===n?(u.autoplayPaused=!1,ut()):u.wrapper.transitionEnd(function(){u&&(u.autoplayPaused=!1,u.autoplaying?ut():u.stopAutoplay())}))};u.minTranslate=function(){return-u.snapGrid[0]};u.maxTranslate=function(){return-u.snapGrid[u.snapGrid.length-1]};u.updateAutoHeight=function(){var t=u.slides.eq(u.activeIndex)[0],n;"undefined"!=typeof t&&(n=t.offsetHeight,n&&u.wrapper.css("height",n+"px"))};u.updateContainerSize=function(){var n,t;n="undefined"!=typeof u.params.width?u.params.width:u.container[0].clientWidth;t="undefined"!=typeof u.params.height?u.params.height:u.container[0].clientHeight;0===n&&u.isHorizontal()||0===t&&!u.isHorizontal()||(n=n-parseInt(u.container.css("padding-left"),10)-parseInt(u.container.css("padding-right"),10),t=t-parseInt(u.container.css("padding-top"),10)-parseInt(u.container.css("padding-bottom"),10),u.width=n,u.height=t,u.size=u.isHorizontal()?u.width:u.height)};u.updateSlidesSize=function(){var o,h,c,e,f,l;u.slides=u.wrapper.children("."+u.params.slideClass);u.snapGrid=[];u.slidesGrid=[];u.slidesSizesGrid=[];var n,i=u.params.spaceBetween,r=-u.params.slidesOffsetBefore,y=0,v=0;if("undefined"!=typeof u.size){"string"==typeof i&&i.indexOf("%")>=0&&(i=parseFloat(i.replace("%",""))/100*u.size);u.virtualSize=-i;u.rtl?u.slides.css({marginLeft:"",marginTop:""}):u.slides.css({marginRight:"",marginBottom:""});u.params.slidesPerColumn>1&&(o=Math.floor(u.slides.length/u.params.slidesPerColumn)===u.slides.length/u.params.slidesPerColumn?u.slides.length:Math.ceil(u.slides.length/u.params.slidesPerColumn)*u.params.slidesPerColumn,"auto"!==u.params.slidesPerView&&"row"===u.params.slidesPerColumnFill&&(o=Math.max(o,u.params.slidesPerView*u.params.slidesPerColumn)));var t,s=u.params.slidesPerColumn,a=o/s,p=a-(u.params.slidesPerColumn*a-u.slides.length);for(n=0;n<u.slides.length;n++)t=0,h=u.slides.eq(n),u.params.slidesPerColumn>1&&("column"===u.params.slidesPerColumnFill?(e=Math.floor(n/s),f=n-e*s,(e>p||e===p&&f===s-1)&&++f>=s&&(f=0,e++),c=e+f*o/s,h.css({"-webkit-box-ordinal-group":c,"-moz-box-ordinal-group":c,"-ms-flex-order":c,"-webkit-order":c,order:c})):(f=Math.floor(n/a),e=n-f*a),h.css({"margin-top":0!==f&&u.params.spaceBetween&&u.params.spaceBetween+"px"}).attr("data-swiper-column",e).attr("data-swiper-row",f)),"none"!==h.css("display")&&("auto"===u.params.slidesPerView?(t=u.isHorizontal()?h.outerWidth(!0):h.outerHeight(!0),u.params.roundLengths&&(t=b(t))):(t=(u.size-(u.params.slidesPerView-1)*i)/u.params.slidesPerView,u.params.roundLengths&&(t=b(t)),u.isHorizontal()?u.slides[n].style.width=t+"px":u.slides[n].style.height=t+"px"),u.slides[n].swiperSlideSize=t,u.slidesSizesGrid.push(t),u.params.centeredSlides?(r=r+t/2+y/2+i,0===n&&(r=r-u.size/2-i),Math.abs(r)<.001&&(r=0),v%u.params.slidesPerGroup==0&&u.snapGrid.push(r),u.slidesGrid.push(r)):(v%u.params.slidesPerGroup==0&&u.snapGrid.push(r),u.slidesGrid.push(r),r=r+t+i),u.virtualSize+=t+i,y=t,v++);if(u.virtualSize=Math.max(u.virtualSize,u.size)+u.params.slidesOffsetAfter,u.rtl&&u.wrongRTL&&("slide"===u.params.effect||"coverflow"===u.params.effect)&&u.wrapper.css({width:u.virtualSize+u.params.spaceBetween+"px"}),(!u.support.flexbox||u.params.setWrapperSize)&&(u.isHorizontal()?u.wrapper.css({width:u.virtualSize+u.params.spaceBetween+"px"}):u.wrapper.css({height:u.virtualSize+u.params.spaceBetween+"px"})),u.params.slidesPerColumn>1&&(u.virtualSize=(t+u.params.spaceBetween)*o,u.virtualSize=Math.ceil(u.virtualSize/u.params.slidesPerColumn)-u.params.spaceBetween,u.wrapper.css({width:u.virtualSize+u.params.spaceBetween+"px"}),u.params.centeredSlides)){for(l=[],n=0;n<u.snapGrid.length;n++)u.snapGrid[n]<u.virtualSize+u.snapGrid[0]&&l.push(u.snapGrid[n]);u.snapGrid=l}if(!u.params.centeredSlides){for(l=[],n=0;n<u.snapGrid.length;n++)u.snapGrid[n]<=u.virtualSize-u.size&&l.push(u.snapGrid[n]);u.snapGrid=l;Math.floor(u.virtualSize-u.size)-Math.floor(u.snapGrid[u.snapGrid.length-1])>1&&u.snapGrid.push(u.virtualSize-u.size)}0===u.snapGrid.length&&(u.snapGrid=[0]);0!==u.params.spaceBetween&&(u.isHorizontal()?u.rtl?u.slides.css({marginLeft:i+"px"}):u.slides.css({marginRight:i+"px"}):u.slides.css({marginBottom:i+"px"}));u.params.watchSlidesProgress&&u.updateSlidesOffset()}};u.updateSlidesOffset=function(){for(var n=0;n<u.slides.length;n++)u.slides[n].swiperSlideOffset=u.isHorizontal()?u.slides[n].offsetLeft:u.slides[n].offsetTop};u.updateSlidesProgress=function(n){var r,t,i,e;if("undefined"==typeof n&&(n=u.translate||0),0!==u.slides.length)for("undefined"==typeof u.slides[0].swiperSlideOffset&&u.updateSlidesOffset(),r=-n,u.rtl&&(r=n),u.slides.removeClass(u.params.slideVisibleClass),t=0;t<u.slides.length;t++){if(i=u.slides[t],e=(r-i.swiperSlideOffset)/(i.swiperSlideSize+u.params.spaceBetween),u.params.watchSlidesVisibility){var f=-(r-i.swiperSlideOffset),o=f+u.slidesSizesGrid[t],s=f>=0&&f<u.size||o>0&&o<=u.size||0>=f&&o>=u.size;s&&u.slides.eq(t).addClass(u.params.slideVisibleClass)}i.progress=u.rtl?-e:e}};u.updateProgress=function(n){"undefined"==typeof n&&(n=u.translate||0);var t=u.maxTranslate()-u.minTranslate(),i=u.isBeginning,r=u.isEnd;0===t?(u.progress=0,u.isBeginning=u.isEnd=!0):(u.progress=(n-u.minTranslate())/t,u.isBeginning=u.progress<=0,u.isEnd=u.progress>=1);u.isBeginning&&!i&&u.emit("onReachBeginning",u);u.isEnd&&!r&&u.emit("onReachEnd",u);u.params.watchSlidesProgress&&u.updateSlidesProgress(n);u.emit("onProgress",u,u.progress)};u.updateActiveIndex=function(){for(var t,r,i=u.rtl?u.translate:-u.translate,n=0;n<u.slidesGrid.length;n++)"undefined"!=typeof u.slidesGrid[n+1]?i>=u.slidesGrid[n]&&i<u.slidesGrid[n+1]-(u.slidesGrid[n+1]-u.slidesGrid[n])/2?t=n:i>=u.slidesGrid[n]&&i<u.slidesGrid[n+1]&&(t=n+1):i>=u.slidesGrid[n]&&(t=n);(0>t||"undefined"==typeof t)&&(t=0);r=Math.floor(t/u.params.slidesPerGroup);r>=u.snapGrid.length&&(r=u.snapGrid.length-1);t!==u.activeIndex&&(u.snapIndex=r,u.previousIndex=u.activeIndex,u.activeIndex=t,u.updateClasses())};u.updateClasses=function(){var r,f,e,t,i;if(u.slides.removeClass(u.params.slideActiveClass+" "+u.params.slideNextClass+" "+u.params.slidePrevClass),r=u.slides.eq(u.activeIndex),r.addClass(u.params.slideActiveClass),f=r.next("."+u.params.slideClass).addClass(u.params.slideNextClass),u.params.loop&&0===f.length&&u.slides.eq(0).addClass(u.params.slideNextClass),e=r.prev("."+u.params.slideClass).addClass(u.params.slidePrevClass),u.params.loop&&0===e.length&&u.slides.eq(-1).addClass(u.params.slidePrevClass),u.paginationContainer&&u.paginationContainer.length>0){if(i=u.params.loop?Math.ceil((u.slides.length-2*u.loopedSlides)/u.params.slidesPerGroup):u.snapGrid.length,u.params.loop?(t=Math.ceil((u.activeIndex-u.loopedSlides)/u.params.slidesPerGroup),t>u.slides.length-1-2*u.loopedSlides&&(t-=u.slides.length-2*u.loopedSlides),t>i-1&&(t-=i),0>t&&"bullets"!==u.params.paginationType&&(t=i+t)):t="undefined"!=typeof u.snapIndex?u.snapIndex:u.activeIndex||0,"bullets"===u.params.paginationType&&u.bullets&&u.bullets.length>0&&(u.bullets.removeClass(u.params.bulletActiveClass),u.paginationContainer.length>1?u.bullets.each(function(){n(this).index()===t&&n(this).addClass(u.params.bulletActiveClass)}):u.bullets.eq(t).addClass(u.params.bulletActiveClass)),"fraction"===u.params.paginationType&&(u.paginationContainer.find("."+u.params.paginationCurrentClass).text(t+1),u.paginationContainer.find("."+u.params.paginationTotalClass).text(i)),"progress"===u.params.paginationType){var o=(t+1)/i,s=o,h=1;u.isHorizontal()||(h=o,s=1);u.paginationContainer.find("."+u.params.paginationProgressbarClass).transform("translate3d(0,0,0) scaleX("+s+") scaleY("+h+")").transition(u.params.speed)}"custom"===u.params.paginationType&&u.params.paginationCustomRender&&(u.paginationContainer.html(u.params.paginationCustomRender(u,t+1,i)),u.emit("onPaginationRendered",u,u.paginationContainer[0]))}u.params.loop||(u.params.prevButton&&u.prevButton&&u.prevButton.length>0&&(u.isBeginning?(u.prevButton.addClass(u.params.buttonDisabledClass),u.params.a11y&&u.a11y&&u.a11y.disable(u.prevButton)):(u.prevButton.removeClass(u.params.buttonDisabledClass),u.params.a11y&&u.a11y&&u.a11y.enable(u.prevButton))),u.params.nextButton&&u.nextButton&&u.nextButton.length>0&&(u.isEnd?(u.nextButton.addClass(u.params.buttonDisabledClass),u.params.a11y&&u.a11y&&u.a11y.disable(u.nextButton)):(u.nextButton.removeClass(u.params.buttonDisabledClass),u.params.a11y&&u.a11y&&u.a11y.enable(u.nextButton))))};u.updatePagination=function(){var n,i,t;if(u.params.pagination&&u.paginationContainer&&u.paginationContainer.length>0){if(n="","bullets"===u.params.paginationType){for(i=u.params.loop?Math.ceil((u.slides.length-2*u.loopedSlides)/u.params.slidesPerGroup):u.snapGrid.length,t=0;i>t;t++)n+=u.params.paginationBulletRender?u.params.paginationBulletRender(t,u.params.bulletClass):"<"+u.params.paginationElement+' class="'+u.params.bulletClass+'"><\/'+u.params.paginationElement+">";u.paginationContainer.html(n);u.bullets=u.paginationContainer.find("."+u.params.bulletClass);u.params.paginationClickable&&u.params.a11y&&u.a11y&&u.a11y.initPagination()}"fraction"===u.params.paginationType&&(n=u.params.paginationFractionRender?u.params.paginationFractionRender(u,u.params.paginationCurrentClass,u.params.paginationTotalClass):'<span class="'+u.params.paginationCurrentClass+'"><\/span> / <span class="'+u.params.paginationTotalClass+'"><\/span>',u.paginationContainer.html(n));"progress"===u.params.paginationType&&(n=u.params.paginationProgressRender?u.params.paginationProgressRender(u,u.params.paginationProgressbarClass):'<span class="'+u.params.paginationProgressbarClass+'"><\/span>',u.paginationContainer.html(n));"custom"!==u.params.paginationType&&u.emit("onPaginationRendered",u,u.paginationContainer[0])}};u.update=function(n){function t(){r=Math.min(Math.max(u.translate,u.maxTranslate()),u.minTranslate());u.setWrapperTranslate(r);u.updateActiveIndex();u.updateClasses()}if(u.updateContainerSize(),u.updateSlidesSize(),u.updateProgress(),u.updatePagination(),u.updateClasses(),u.params.scrollbar&&u.scrollbar&&u.scrollbar.set(),n){var i,r;u.controller&&u.controller.spline&&(u.controller.spline=void 0);u.params.freeMode?(t(),u.params.autoHeight&&u.updateAutoHeight()):(i=("auto"===u.params.slidesPerView||u.params.slidesPerView>1)&&u.isEnd&&!u.params.centeredSlides?u.slideTo(u.slides.length-1,0,!1,!0):u.slideTo(u.activeIndex,0,!1,!0),i||t())}else u.params.autoHeight&&u.updateAutoHeight()};u.onResize=function(n){var i,r,t,f;u.params.breakpoints&&u.setBreakpoint();i=u.params.allowSwipeToPrev;r=u.params.allowSwipeToNext;u.params.allowSwipeToPrev=u.params.allowSwipeToNext=!0;u.updateContainerSize();u.updateSlidesSize();("auto"===u.params.slidesPerView||u.params.freeMode||n)&&u.updatePagination();u.params.scrollbar&&u.scrollbar&&u.scrollbar.set();u.controller&&u.controller.spline&&(u.controller.spline=void 0);t=!1;u.params.freeMode?(f=Math.min(Math.max(u.translate,u.maxTranslate()),u.minTranslate()),u.setWrapperTranslate(f),u.updateActiveIndex(),u.updateClasses(),u.params.autoHeight&&u.updateAutoHeight()):(u.updateClasses(),t=("auto"===u.params.slidesPerView||u.params.slidesPerView>1)&&u.isEnd&&!u.params.centeredSlides?u.slideTo(u.slides.length-1,0,!1,!0):u.slideTo(u.activeIndex,0,!1,!0));u.params.lazyLoading&&!t&&u.lazy&&u.lazy.load();u.params.allowSwipeToPrev=i;u.params.allowSwipeToNext=r};a=["mousedown","mousemove","mouseup"];window.navigator.pointerEnabled?a=["pointerdown","pointermove","pointerup"]:window.navigator.msPointerEnabled&&(a=["MSPointerDown","MSPointerMove","MSPointerUp"]);u.touchEvents={start:u.support.touch||!u.params.simulateTouch?"touchstart":a[0],move:u.support.touch||!u.params.simulateTouch?"touchmove":a[1],end:u.support.touch||!u.params.simulateTouch?"touchend":a[2]};(window.navigator.pointerEnabled||window.navigator.msPointerEnabled)&&("container"===u.params.touchEventsTarget?u.container:u.wrapper).addClass("swiper-wp8-"+u.params.direction);u.initEvents=function(n){var f=n?"off":"on",t=n?"removeEventListener":"addEventListener",i="container"===u.params.touchEventsTarget?u.container[0]:u.wrapper[0],o=u.support.touch?i:document,e=u.params.nested?!0:!1;u.browser.ie?(i[t](u.touchEvents.start,u.onTouchStart,!1),o[t](u.touchEvents.move,u.onTouchMove,e),o[t](u.touchEvents.end,u.onTouchEnd,!1)):(u.support.touch&&(i[t](u.touchEvents.start,u.onTouchStart,!1),i[t](u.touchEvents.move,u.onTouchMove,e),i[t](u.touchEvents.end,u.onTouchEnd,!1)),!r.simulateTouch||u.device.ios||u.device.android||(i[t]("mousedown",u.onTouchStart,!1),document[t]("mousemove",u.onTouchMove,e),document[t]("mouseup",u.onTouchEnd,!1)));window[t]("resize",u.onResize);u.params.nextButton&&u.nextButton&&u.nextButton.length>0&&(u.nextButton[f]("click",u.onClickNext),u.params.a11y&&u.a11y&&u.nextButton[f]("keydown",u.a11y.onEnterKey));u.params.prevButton&&u.prevButton&&u.prevButton.length>0&&(u.prevButton[f]("click",u.onClickPrev),u.params.a11y&&u.a11y&&u.prevButton[f]("keydown",u.a11y.onEnterKey));u.params.pagination&&u.params.paginationClickable&&(u.paginationContainer[f]("click","."+u.params.bulletClass,u.onClickIndex),u.params.a11y&&u.a11y&&u.paginationContainer[f]("keydown","."+u.params.bulletClass,u.a11y.onEnterKey));(u.params.preventClicks||u.params.preventClicksPropagation)&&i[t]("click",u.preventClicks,!0)};u.attachEvents=function(){u.initEvents()};u.detachEvents=function(){u.initEvents(!0)};u.allowClick=!0;u.preventClicks=function(n){u.allowClick||(u.params.preventClicks&&n.preventDefault(),u.params.preventClicksPropagation&&u.animating&&(n.stopPropagation(),n.stopImmediatePropagation()))};u.onClickNext=function(n){n.preventDefault();(!u.isEnd||u.params.loop)&&u.slideNext()};u.onClickPrev=function(n){n.preventDefault();(!u.isBeginning||u.params.loop)&&u.slidePrev()};u.onClickIndex=function(t){t.preventDefault();var i=n(this).index()*u.params.slidesPerGroup;u.params.loop&&(i+=u.loopedSlides);u.slideTo(i)};u.updateClickedSlide=function(t){var r=ft(t,"."+u.params.slideClass),o=!1,f,e,i;if(r)for(f=0;f<u.slides.length;f++)u.slides[f]===r&&(o=!0);if(!r||!o)return u.clickedSlide=void 0,void(u.clickedIndex=void 0);if(u.clickedSlide=r,u.clickedIndex=n(r).index(),u.params.slideToClickedSlide&&void 0!==u.clickedIndex&&u.clickedIndex!==u.activeIndex)if(i=u.clickedIndex,u.params.loop){if(u.animating)return;e=n(u.clickedSlide).attr("data-swiper-slide-index");u.params.centeredSlides?i<u.loopedSlides-u.params.slidesPerView/2||i>u.slides.length-u.loopedSlides+u.params.slidesPerView/2?(u.fixLoop(),i=u.wrapper.children("."+u.params.slideClass+'[data-swiper-slide-index="'+e+'"]:not(.swiper-slide-duplicate)').eq(0).index(),setTimeout(function(){u.slideTo(i)},0)):u.slideTo(i):i>u.slides.length-u.params.slidesPerView?(u.fixLoop(),i=u.wrapper.children("."+u.params.slideClass+'[data-swiper-slide-index="'+e+'"]:not(.swiper-slide-duplicate)').eq(0).index(),setTimeout(function(){u.slideTo(i)},0)):u.slideTo(i)}else u.slideTo(i)};var h,c,d,g,p,f,o,nt,w,tt,ct="input, select, textarea, button",lt=Date.now(),l=[];if(u.animating=!1,u.touches={startX:0,startY:0,currentX:0,currentY:0,diff:0},u.onTouchStart=function(t){var i,f,r;if(t.originalEvent&&(t=t.originalEvent),it="touchstart"===t.type,it||!("which"in t)||3!==t.which){if(u.params.noSwiping&&ft(t,"."+u.params.noSwipingClass))return void(u.allowClick=!0);(!u.params.swipeHandler||ft(t,u.params.swipeHandler))&&(i=u.touches.currentX="touchstart"===t.type?t.targetTouches[0].pageX:t.pageX,f=u.touches.currentY="touchstart"===t.type?t.targetTouches[0].pageY:t.pageY,u.device.ios&&u.params.iOSEdgeSwipeDetection&&i<=u.params.iOSEdgeSwipeThreshold||((h=!0,c=!1,d=!0,p=void 0,rt=void 0,u.touches.startX=i,u.touches.startY=f,g=Date.now(),u.allowClick=!0,u.updateContainerSize(),u.swipeDirection=void 0,u.params.threshold>0&&(nt=!1),"touchstart"!==t.type)&&(r=!0,n(t.target).is(ct)&&(r=!1),document.activeElement&&n(document.activeElement).is(ct)&&document.activeElement.blur(),r&&t.preventDefault()),u.emit("onTouchStart",u,t)))}},u.onTouchMove=function(t){var s,i,e;if(t.originalEvent&&(t=t.originalEvent),!it||"mousemove"!==t.type){if(t.preventedByNestedSwiper)return u.touches.startX="touchmove"===t.type?t.targetTouches[0].pageX:t.pageX,void(u.touches.startY="touchmove"===t.type?t.targetTouches[0].pageY:t.pageY);if(u.params.onlyExternal)return u.allowClick=!1,void(h&&(u.touches.startX=u.touches.currentX="touchmove"===t.type?t.targetTouches[0].pageX:t.pageX,u.touches.startY=u.touches.currentY="touchmove"===t.type?t.targetTouches[0].pageY:t.pageY,g=Date.now()));if(it&&document.activeElement&&t.target===document.activeElement&&n(t.target).is(ct))return c=!0,void(u.allowClick=!1);if((d&&u.emit("onTouchMove",u,t),!(t.targetTouches&&t.targetTouches.length>1))&&((u.touches.currentX="touchmove"===t.type?t.targetTouches[0].pageX:t.pageX,u.touches.currentY="touchmove"===t.type?t.targetTouches[0].pageY:t.pageY,"undefined"==typeof p)&&(s=180*Math.atan2(Math.abs(u.touches.currentY-u.touches.startY),Math.abs(u.touches.currentX-u.touches.startX))/Math.PI,p=u.isHorizontal()?s>u.params.touchAngle:90-s>u.params.touchAngle),p&&u.emit("onTouchMoveOpposite",u,t),"undefined"==typeof rt&&u.browser.ieTouch&&(u.touches.currentX!==u.touches.startX||u.touches.currentY!==u.touches.startY)&&(rt=!0),h)){if(p)return void(h=!1);if((rt||!u.browser.ieTouch)&&(u.allowClick=!1,u.emit("onSliderMove",u,t),t.preventDefault(),u.params.touchMoveStopPropagation&&!u.params.nested&&t.stopPropagation(),c||(r.loop&&u.fixLoop(),o=u.getWrapperTranslate(),u.setWrapperTransition(0),u.animating&&u.wrapper.trigger("webkitTransitionEnd transitionend oTransitionEnd MSTransitionEnd msTransitionEnd"),u.params.autoplay&&u.autoplaying&&(u.params.autoplayDisableOnInteraction?u.stopAutoplay():u.pauseAutoplay()),tt=!1,u.params.grabCursor&&(u.container[0].style.cursor="move",u.container[0].style.cursor="-webkit-grabbing",u.container[0].style.cursor="-moz-grabbin",u.container[0].style.cursor="grabbing")),c=!0,i=u.touches.diff=u.isHorizontal()?u.touches.currentX-u.touches.startX:u.touches.currentY-u.touches.startY,i*=u.params.touchRatio,u.rtl&&(i=-i),u.swipeDirection=i>0?"prev":"next",f=i+o,e=!0,i>0&&f>u.minTranslate()?(e=!1,u.params.resistance&&(f=u.minTranslate()-1+Math.pow(-u.minTranslate()+o+i,u.params.resistanceRatio))):0>i&&f<u.maxTranslate()&&(e=!1,u.params.resistance&&(f=u.maxTranslate()+1-Math.pow(u.maxTranslate()-o-i,u.params.resistanceRatio))),e&&(t.preventedByNestedSwiper=!0),!u.params.allowSwipeToNext&&"next"===u.swipeDirection&&o>f&&(f=o),!u.params.allowSwipeToPrev&&"prev"===u.swipeDirection&&f>o&&(f=o),u.params.followFinger)){if(u.params.threshold>0){if(!(Math.abs(i)>u.params.threshold||nt))return void(f=o);if(!nt)return nt=!0,u.touches.startX=u.touches.currentX,u.touches.startY=u.touches.currentY,f=o,void(u.touches.diff=u.isHorizontal()?u.touches.currentX-u.touches.startX:u.touches.currentY-u.touches.startY)}(u.params.freeMode||u.params.watchSlidesProgress)&&u.updateActiveIndex();u.params.freeMode&&(0===l.length&&l.push({position:u.touches[u.isHorizontal()?"startX":"startY"],time:g}),l.push({position:u.touches[u.isHorizontal()?"currentX":"currentY"],time:(new window.Date).getTime()}));u.updateProgress(f);u.setWrapperTranslate(f)}}}},u.onTouchEnd=function(t){var b,v,s,nt,it,y,p,a,r,e,rt,ft;if(t.originalEvent&&(t=t.originalEvent),d&&u.emit("onTouchEnd",u,t),d=!1,h){if(u.params.grabCursor&&c&&h&&(u.container[0].style.cursor="move",u.container[0].style.cursor="-webkit-grab",u.container[0].style.cursor="-moz-grab",u.container[0].style.cursor="grab"),b=Date.now(),v=b-g,u.allowClick&&(u.updateClickedSlide(t),u.emit("onTap",u,t),300>v&&b-lt>300&&(w&&clearTimeout(w),w=setTimeout(function(){u&&(u.params.paginationHide&&u.paginationContainer.length>0&&!n(t.target).hasClass(u.params.bulletClass)&&u.paginationContainer.toggleClass(u.params.paginationHiddenClass),u.emit("onClick",u,t))},300)),300>v&&300>b-lt&&(w&&clearTimeout(w),u.emit("onDoubleTap",u,t))),lt=Date.now(),setTimeout(function(){u&&(u.allowClick=!0)},0),!h||!c||!u.swipeDirection||0===u.touches.diff||f===o)return void(h=c=!1);if(h=c=!1,s=u.params.followFinger?u.rtl?u.translate:-u.translate:-f,u.params.freeMode){if(s<-u.minTranslate())return void u.slideTo(u.activeIndex);if(s>-u.maxTranslate())return void(u.slides.length<u.snapGrid.length?u.slideTo(u.snapGrid.length-1):u.slideTo(u.slides.length-1));if(u.params.freeModeMomentum){if(l.length>1){var ut=l.pop(),et=l.pop(),st=ut.position-et.position,ot=ut.time-et.time;u.velocity=st/ot;u.velocity=u.velocity/2;Math.abs(u.velocity)<u.params.freeModeMinimumVelocity&&(u.velocity=0);(ot>150||(new window.Date).getTime()-ut.time>300)&&(u.velocity=0)}else u.velocity=0;l.length=0;var k=1e3*u.params.freeModeMomentumRatio,ht=u.velocity*k,i=u.translate+ht;if(u.rtl&&(i=-i),it=!1,y=20*Math.abs(u.velocity)*u.params.freeModeMomentumBounceRatio,i<u.maxTranslate())u.params.freeModeMomentumBounce?(i+u.maxTranslate()<-y&&(i=u.maxTranslate()-y),nt=u.maxTranslate(),it=!0,tt=!0):i=u.maxTranslate();else if(i>u.minTranslate())u.params.freeModeMomentumBounce?(i-u.minTranslate()>y&&(i=u.minTranslate()+y),nt=u.minTranslate(),it=!0,tt=!0):i=u.minTranslate();else if(u.params.freeModeSticky){for(a=0,a=0;a<u.snapGrid.length;a+=1)if(u.snapGrid[a]>-i){p=a;break}i=Math.abs(u.snapGrid[p]-i)<Math.abs(u.snapGrid[p-1]-i)||"next"===u.swipeDirection?u.snapGrid[p]:u.snapGrid[p-1];u.rtl||(i=-i)}if(0!==u.velocity)k=u.rtl?Math.abs((-i-u.translate)/u.velocity):Math.abs((i-u.translate)/u.velocity);else if(u.params.freeModeSticky)return void u.slideReset();u.params.freeModeMomentumBounce&&it?(u.updateProgress(nt),u.setWrapperTransition(k),u.setWrapperTranslate(i),u.onTransitionStart(),u.animating=!0,u.wrapper.transitionEnd(function(){u&&tt&&(u.emit("onMomentumBounce",u),u.setWrapperTransition(u.params.speed),u.setWrapperTranslate(nt),u.wrapper.transitionEnd(function(){u&&u.onTransitionEnd()}))})):u.velocity?(u.updateProgress(i),u.setWrapperTransition(k),u.setWrapperTranslate(i),u.onTransitionStart(),u.animating||(u.animating=!0,u.wrapper.transitionEnd(function(){u&&u.onTransitionEnd()}))):u.updateProgress(i);u.updateActiveIndex()}return void((!u.params.freeModeMomentum||v>=u.params.longSwipesMs)&&(u.updateProgress(),u.updateActiveIndex()))}for(e=0,rt=u.slidesSizesGrid[0],r=0;r<u.slidesGrid.length;r+=u.params.slidesPerGroup)"undefined"!=typeof u.slidesGrid[r+u.params.slidesPerGroup]?s>=u.slidesGrid[r]&&s<u.slidesGrid[r+u.params.slidesPerGroup]&&(e=r,rt=u.slidesGrid[r+u.params.slidesPerGroup]-u.slidesGrid[r]):s>=u.slidesGrid[r]&&(e=r,rt=u.slidesGrid[u.slidesGrid.length-1]-u.slidesGrid[u.slidesGrid.length-2]);if(ft=(s-u.slidesGrid[e])/rt,v>u.params.longSwipesMs){if(!u.params.longSwipes)return void u.slideTo(u.activeIndex);"next"===u.swipeDirection&&(ft>=u.params.longSwipesRatio?u.slideTo(e+u.params.slidesPerGroup):u.slideTo(e));"prev"===u.swipeDirection&&(ft>1-u.params.longSwipesRatio?u.slideTo(e+u.params.slidesPerGroup):u.slideTo(e))}else{if(!u.params.shortSwipes)return void u.slideTo(u.activeIndex);"next"===u.swipeDirection&&u.slideTo(e+u.params.slidesPerGroup);"prev"===u.swipeDirection&&u.slideTo(e)}}},u._slideTo=function(n,t){return u.slideTo(n,t,!0,!0)},u.slideTo=function(n,t,i,r){var f,e;for("undefined"==typeof i&&(i=!0),"undefined"==typeof n&&(n=0),0>n&&(n=0),u.snapIndex=Math.floor(n/u.params.slidesPerGroup),u.snapIndex>=u.snapGrid.length&&(u.snapIndex=u.snapGrid.length-1),f=-u.snapGrid[u.snapIndex],u.params.autoplay&&u.autoplaying&&(r||!u.params.autoplayDisableOnInteraction?u.pauseAutoplay(t):u.stopAutoplay()),u.updateProgress(f),e=0;e<u.slidesGrid.length;e++)-Math.floor(100*f)>=Math.floor(100*u.slidesGrid[e])&&(n=e);return!u.params.allowSwipeToNext&&f<u.translate&&f<u.minTranslate()?!1:!u.params.allowSwipeToPrev&&f>u.translate&&f>u.maxTranslate()&&(u.activeIndex||0)!==n?!1:("undefined"==typeof t&&(t=u.params.speed),u.previousIndex=u.activeIndex||0,u.activeIndex=n,u.rtl&&-f===u.translate||!u.rtl&&f===u.translate?(u.params.autoHeight&&u.updateAutoHeight(),u.updateClasses(),"slide"!==u.params.effect&&u.setWrapperTranslate(f),!1):(u.updateClasses(),u.onTransitionStart(i),0===t?(u.setWrapperTranslate(f),u.setWrapperTransition(0),u.onTransitionEnd(i)):(u.setWrapperTranslate(f),u.setWrapperTransition(t),u.animating||(u.animating=!0,u.wrapper.transitionEnd(function(){u&&u.onTransitionEnd(i)}))),!0))},u.onTransitionStart=function(n){"undefined"==typeof n&&(n=!0);u.params.autoHeight&&u.updateAutoHeight();u.lazy&&u.lazy.onTransitionStart();n&&(u.emit("onTransitionStart",u),u.activeIndex!==u.previousIndex&&(u.emit("onSlideChangeStart",u),u.activeIndex>u.previousIndex?u.emit("onSlideNextStart",u):u.emit("onSlidePrevStart",u)))},u.onTransitionEnd=function(n){u.animating=!1;u.setWrapperTransition(0);"undefined"==typeof n&&(n=!0);u.lazy&&u.lazy.onTransitionEnd();n&&(u.emit("onTransitionEnd",u),u.activeIndex!==u.previousIndex&&(u.emit("onSlideChangeEnd",u),u.activeIndex>u.previousIndex?u.emit("onSlideNextEnd",u):u.emit("onSlidePrevEnd",u)));u.params.hashnav&&u.hashnav&&u.hashnav.setHash()},u.slideNext=function(n,t,i){return u.params.loop?u.animating?!1:(u.fixLoop(),u.container[0].clientLeft,u.slideTo(u.activeIndex+u.params.slidesPerGroup,t,n,i)):u.slideTo(u.activeIndex+u.params.slidesPerGroup,t,n,i)},u._slideNext=function(n){return u.slideNext(!0,n,!0)},u.slidePrev=function(n,t,i){return u.params.loop?u.animating?!1:(u.fixLoop(),u.container[0].clientLeft,u.slideTo(u.activeIndex-1,t,n,i)):u.slideTo(u.activeIndex-1,t,n,i)},u._slidePrev=function(n){return u.slidePrev(!0,n,!0)},u.slideReset=function(n,t){return u.slideTo(u.activeIndex,t,n)},u.setWrapperTransition=function(n,t){u.wrapper.transition(n);"slide"!==u.params.effect&&u.effects[u.params.effect]&&u.effects[u.params.effect].setTransition(n);u.params.parallax&&u.parallax&&u.parallax.setTransition(n);u.params.scrollbar&&u.scrollbar&&u.scrollbar.setTransition(n);u.params.control&&u.controller&&u.controller.setTransition(n,t);u.emit("onSetTransition",u,n)},u.setWrapperTranslate=function(n,t,i){var r=0,f=0,o,e;u.isHorizontal()?r=u.rtl?-n:n:f=n;u.params.roundLengths&&(r=b(r),f=b(f));u.params.virtualTranslate||(u.support.transforms3d?u.wrapper.transform("translate3d("+r+"px, "+f+"px, 0px)"):u.wrapper.transform("translate("+r+"px, "+f+"px)"));u.translate=u.isHorizontal()?r:f;e=u.maxTranslate()-u.minTranslate();o=0===e?0:(n-u.minTranslate())/e;o!==u.progress&&u.updateProgress(n);t&&u.updateActiveIndex();"slide"!==u.params.effect&&u.effects[u.params.effect]&&u.effects[u.params.effect].setTranslate(u.translate);u.params.parallax&&u.parallax&&u.parallax.setTranslate(u.translate);u.params.scrollbar&&u.scrollbar&&u.scrollbar.setTranslate(u.translate);u.params.control&&u.controller&&u.controller.setTranslate(u.translate,i);u.emit("onSetTranslate",u,u.translate)},u.getTranslate=function(n,t){var f,i,r,e;return"undefined"==typeof t&&(t="x"),u.params.virtualTranslate?u.rtl?-u.translate:u.translate:(r=window.getComputedStyle(n,null),window.WebKitCSSMatrix?(i=r.transform||r.webkitTransform,i.split(",").length>6&&(i=i.split(", ").map(function(n){return n.replace(",",".")}).join(", ")),e=new window.WebKitCSSMatrix("none"===i?"":i)):(e=r.MozTransform||r.OTransform||r.MsTransform||r.msTransform||r.transform||r.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,"),f=e.toString().split(",")),"x"===t&&(i=window.WebKitCSSMatrix?e.m41:16===f.length?parseFloat(f[12]):parseFloat(f[4])),"y"===t&&(i=window.WebKitCSSMatrix?e.m42:16===f.length?parseFloat(f[13]):parseFloat(f[5])),u.rtl&&i&&(i=-i),i||0)},u.getWrapperTranslate=function(n){return"undefined"==typeof n&&(n=u.isHorizontal()?"x":"y"),u.getTranslate(u.wrapper[0],n)},u.observers=[],u.initObservers=function(){if(u.params.observeParents)for(var t=u.container.parents(),n=0;n<t.length;n++)et(t[n]);et(u.container[0],{childList:!1});et(u.wrapper[0],{attributes:!1})},u.disconnectObservers=function(){for(var n=0;n<u.observers.length;n++)u.observers[n].disconnect();u.observers=[]},u.createLoop=function(){var i,t,r,f;for(u.wrapper.children("."+u.params.slideClass+"."+u.params.slideDuplicateClass).remove(),i=u.wrapper.children("."+u.params.slideClass),"auto"!==u.params.slidesPerView||u.params.loopedSlides||(u.params.loopedSlides=i.length),u.loopedSlides=parseInt(u.params.loopedSlides||u.params.slidesPerView,10),u.loopedSlides=u.loopedSlides+u.params.loopAdditionalSlides,u.loopedSlides>i.length&&(u.loopedSlides=i.length),r=[],f=[],i.each(function(t,e){var o=n(this);t<u.loopedSlides&&f.push(e);t<i.length&&t>=i.length-u.loopedSlides&&r.push(e);o.attr("data-swiper-slide-index",t)}),t=0;t<f.length;t++)u.wrapper.append(n(f[t].cloneNode(!0)).addClass(u.params.slideDuplicateClass));for(t=r.length-1;t>=0;t--)u.wrapper.prepend(n(r[t].cloneNode(!0)).addClass(u.params.slideDuplicateClass))},u.destroyLoop=function(){u.wrapper.children("."+u.params.slideClass+"."+u.params.slideDuplicateClass).remove();u.slides.removeAttr("data-swiper-slide-index")},u.reLoop=function(n){var t=u.activeIndex-u.loopedSlides;u.destroyLoop();u.createLoop();u.updateSlidesSize();n&&u.slideTo(t+u.loopedSlides,0,!1)},u.fixLoop=function(){var n;u.activeIndex<u.loopedSlides?(n=u.slides.length-3*u.loopedSlides+u.activeIndex,n+=u.loopedSlides,u.slideTo(n,0,!1,!0)):("auto"===u.params.slidesPerView&&u.activeIndex>=2*u.loopedSlides||u.activeIndex>u.slides.length-2*u.params.slidesPerView)&&(n=-u.slides.length+u.activeIndex+u.loopedSlides,n+=u.loopedSlides,u.slideTo(n,0,!1,!0))},u.appendSlide=function(n){if(u.params.loop&&u.destroyLoop(),"object"==typeof n&&n.length)for(var t=0;t<n.length;t++)n[t]&&u.wrapper.append(n[t]);else u.wrapper.append(n);u.params.loop&&u.createLoop();u.params.observer&&u.support.observer||u.update(!0)},u.prependSlide=function(n){var i,t;if(u.params.loop&&u.destroyLoop(),i=u.activeIndex+1,"object"==typeof n&&n.length){for(t=0;t<n.length;t++)n[t]&&u.wrapper.prepend(n[t]);i=u.activeIndex+n.length}else u.wrapper.prepend(n);u.params.loop&&u.createLoop();u.params.observer&&u.support.observer||u.update(!0);u.slideTo(i,0,!1)},u.removeSlide=function(n){var i,t,r;if(u.params.loop&&(u.destroyLoop(),u.slides=u.wrapper.children("."+u.params.slideClass)),t=u.activeIndex,"object"==typeof n&&n.length){for(r=0;r<n.length;r++)i=n[r],u.slides[i]&&u.slides.eq(i).remove(),t>i&&t--;t=Math.max(t,0)}else i=n,u.slides[i]&&u.slides.eq(i).remove(),t>i&&t--,t=Math.max(t,0);u.params.loop&&u.createLoop();u.params.observer&&u.support.observer||u.update(!0);u.params.loop?u.slideTo(t+u.loopedSlides,0,!1):u.slideTo(t,0,!1)},u.removeAllSlides=function(){for(var t=[],n=0;n<u.slides.length;n++)t.push(n);u.removeSlide(t)},u.effects={fade:{setTranslate:function(){for(var r,f,n=0;n<u.slides.length;n++){var t=u.slides.eq(n),e=t[0].swiperSlideOffset,i=-e;u.params.virtualTranslate||(i-=u.translate);r=0;u.isHorizontal()||(r=i,i=0);f=u.params.fade.crossFade?Math.max(1-Math.abs(t[0].progress),0):1+Math.min(Math.max(t[0].progress,-1),0);t.css({opacity:f}).transform("translate3d("+i+"px, "+r+"px, 0px)")}},setTransition:function(n){if(u.slides.transition(n),u.params.virtualTranslate&&0!==n){var t=!1;u.slides.transitionEnd(function(){if(!t&&u){t=!0;u.animating=!1;for(var i=["webkitTransitionEnd","transitionend","oTransitionEnd","MSTransitionEnd","msTransitionEnd"],n=0;n<i.length;n++)u.wrapper.trigger(i[n])}})}}},flip:{setTranslate:function(){for(var t,i,r,f,o=0;o<u.slides.length;o++){t=u.slides.eq(o);i=t[0].progress;u.params.flip.limitRotation&&(i=Math.max(Math.min(t[0].progress,1),-1));var l=t[0].swiperSlideOffset,a=-180*i,e=a,h=0,s=-l,c=0;(u.isHorizontal()?u.rtl&&(e=-e):(c=s,s=0,h=-e,e=0),t[0].style.zIndex=-Math.abs(Math.round(i))+u.slides.length,u.params.flip.slideShadows)&&(r=u.isHorizontal()?t.find(".swiper-slide-shadow-left"):t.find(".swiper-slide-shadow-top"),f=u.isHorizontal()?t.find(".swiper-slide-shadow-right"):t.find(".swiper-slide-shadow-bottom"),0===r.length&&(r=n('<div class="swiper-slide-shadow-'+(u.isHorizontal()?"left":"top")+'"><\/div>'),t.append(r)),0===f.length&&(f=n('<div class="swiper-slide-shadow-'+(u.isHorizontal()?"right":"bottom")+'"><\/div>'),t.append(f)),r.length&&(r[0].style.opacity=Math.max(-i,0)),f.length&&(f[0].style.opacity=Math.max(i,0)));t.transform("translate3d("+s+"px, "+c+"px, 0px) rotateX("+h+"deg) rotateY("+e+"deg)")}},setTransition:function(t){if(u.slides.transition(t).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(t),u.params.virtualTranslate&&0!==t){var i=!1;u.slides.eq(u.activeIndex).transitionEnd(function(){if(!i&&u&&n(this).hasClass(u.params.slideActiveClass)){i=!0;u.animating=!1;for(var r=["webkitTransitionEnd","transitionend","oTransitionEnd","MSTransitionEnd","msTransitionEnd"],t=0;t<r.length;t++)u.wrapper.trigger(r[t])}})}}},cube:{setTranslate:function(){var t,e=0,i,y,h,c,b;for(u.params.cube.shadow&&(u.isHorizontal()?(t=u.wrapper.find(".swiper-cube-shadow"),0===t.length&&(t=n('<div class="swiper-cube-shadow"><\/div>'),u.wrapper.append(t)),t.css({height:u.width+"px"})):(t=u.container.find(".swiper-cube-shadow"),0===t.length&&(t=n('<div class="swiper-cube-shadow"><\/div>'),u.container.append(t)))),i=0;i<u.slides.length;i++){var f=u.slides.eq(i),o=90*i,l=Math.floor(o/360);u.rtl&&(o=-o,l=Math.floor(-o/360));var s=Math.max(Math.min(f[0].progress,1),-1),r=0,v=0,a=0;i%4==0?(r=4*-l*u.size,a=0):(i-1)%4==0?(r=0,a=4*-l*u.size):(i-2)%4==0?(r=u.size+4*l*u.size,a=u.size):(i-3)%4==0&&(r=-u.size,a=3*u.size+4*u.size*l);u.rtl&&(r=-r);u.isHorizontal()||(v=r,r=0);y="rotateX("+(u.isHorizontal()?0:-o)+"deg) rotateY("+(u.isHorizontal()?o:0)+"deg) translate3d("+r+"px, "+v+"px, "+a+"px)";(1>=s&&s>-1&&(e=90*i+90*s,u.rtl&&(e=90*-i-90*s)),f.transform(y),u.params.cube.slideShadows)&&(h=u.isHorizontal()?f.find(".swiper-slide-shadow-left"):f.find(".swiper-slide-shadow-top"),c=u.isHorizontal()?f.find(".swiper-slide-shadow-right"):f.find(".swiper-slide-shadow-bottom"),0===h.length&&(h=n('<div class="swiper-slide-shadow-'+(u.isHorizontal()?"left":"top")+'"><\/div>'),f.append(h)),0===c.length&&(c=n('<div class="swiper-slide-shadow-'+(u.isHorizontal()?"right":"bottom")+'"><\/div>'),f.append(c)),h.length&&(h[0].style.opacity=Math.max(-s,0)),c.length&&(c[0].style.opacity=Math.max(s,0)))}if(u.wrapper.css({"-webkit-transform-origin":"50% 50% -"+u.size/2+"px","-moz-transform-origin":"50% 50% -"+u.size/2+"px","-ms-transform-origin":"50% 50% -"+u.size/2+"px","transform-origin":"50% 50% -"+u.size/2+"px"}),u.params.cube.shadow)if(u.isHorizontal())t.transform("translate3d(0px, "+(u.width/2+u.params.cube.shadowOffset)+"px, "+-u.width/2+"px) rotateX(90deg) rotateZ(0deg) scale("+u.params.cube.shadowScale+")");else{var p=Math.abs(e)-90*Math.floor(Math.abs(e)/90),k=1.5-(Math.sin(2*p*Math.PI/360)/2+Math.cos(2*p*Math.PI/360)/2),d=u.params.cube.shadowScale,w=u.params.cube.shadowScale/k,g=u.params.cube.shadowOffset;t.transform("scale3d("+d+", 1, "+w+") translate3d(0px, "+(u.height/2+g)+"px, "+-u.height/2/w+"px) rotateX(-90deg)")}b=u.isSafari||u.isUiWebView?-u.size/2:0;u.wrapper.transform("translate3d(0px,0,"+b+"px) rotateX("+(u.isHorizontal()?0:e)+"deg) rotateY("+(u.isHorizontal()?-e:0)+"deg)")},setTransition:function(n){u.slides.transition(n).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(n);u.params.cube.shadow&&!u.isHorizontal()&&u.container.find(".swiper-cube-shadow").transition(n)}},coverflow:{setTranslate:function(){for(var w,r,f,b,a=u.translate,v=u.isHorizontal()?-a+u.width/2:-a+u.height/2,y=u.isHorizontal()?u.params.coverflow.rotate:-u.params.coverflow.rotate,k=u.params.coverflow.depth,e=0,d=u.slides.length;d>e;e++){var i=u.slides.eq(e),p=u.slidesSizesGrid[e],g=i[0].swiperSlideOffset,t=(v-g-p/2)/p*u.params.coverflow.modifier,o=u.isHorizontal()?y*t:0,s=u.isHorizontal()?0:y*t,h=-k*Math.abs(t),c=u.isHorizontal()?0:u.params.coverflow.stretch*t,l=u.isHorizontal()?u.params.coverflow.stretch*t:0;Math.abs(l)<.001&&(l=0);Math.abs(c)<.001&&(c=0);Math.abs(h)<.001&&(h=0);Math.abs(o)<.001&&(o=0);Math.abs(s)<.001&&(s=0);w="translate3d("+l+"px,"+c+"px,"+h+"px)  rotateX("+s+"deg) rotateY("+o+"deg)";(i.transform(w),i[0].style.zIndex=-Math.abs(Math.round(t))+1,u.params.coverflow.slideShadows)&&(r=u.isHorizontal()?i.find(".swiper-slide-shadow-left"):i.find(".swiper-slide-shadow-top"),f=u.isHorizontal()?i.find(".swiper-slide-shadow-right"):i.find(".swiper-slide-shadow-bottom"),0===r.length&&(r=n('<div class="swiper-slide-shadow-'+(u.isHorizontal()?"left":"top")+'"><\/div>'),i.append(r)),0===f.length&&(f=n('<div class="swiper-slide-shadow-'+(u.isHorizontal()?"right":"bottom")+'"><\/div>'),i.append(f)),r.length&&(r[0].style.opacity=t>0?t:0),f.length&&(f[0].style.opacity=-t>0?-t:0))}u.browser.ie&&(b=u.wrapper[0].style,b.perspectiveOrigin=v+"px 50%")},setTransition:function(n){u.slides.transition(n).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(n)}}},u.lazy={initialImageLoaded:!1,loadImageInSlide:function(t,i){if("undefined"!=typeof t&&("undefined"==typeof i&&(i=!0),0!==u.slides.length)){var r=u.slides.eq(t),f=r.find(".swiper-lazy:not(.swiper-lazy-loaded):not(.swiper-lazy-loading)");!r.hasClass("swiper-lazy")||r.hasClass("swiper-lazy-loaded")||r.hasClass("swiper-lazy-loading")||(f=f.add(r[0]));0!==f.length&&f.each(function(){var t=n(this);t.addClass("swiper-lazy-loading");var f=t.attr("data-background"),e=t.attr("data-src"),o=t.attr("data-srcset");u.loadImage(t[0],e||f,o,!1,function(){var n,s,h;(f?(t.css("background-image",'url("'+f+'")'),t.removeAttr("data-background")):(o&&(t.attr("srcset",o),t.removeAttr("data-srcset")),e&&(t.attr("src",e),t.removeAttr("data-src"))),t.addClass("swiper-lazy-loaded").removeClass("swiper-lazy-loading"),r.find(".swiper-lazy-preloader, .preloader").remove(),u.params.loop&&i)&&(n=r.attr("data-swiper-slide-index"),r.hasClass(u.params.slideDuplicateClass)?(s=u.wrapper.children('[data-swiper-slide-index="'+n+'"]:not(.'+u.params.slideDuplicateClass+")"),u.lazy.loadImageInSlide(s.index(),!1)):(h=u.wrapper.children("."+u.params.slideDuplicateClass+'[data-swiper-slide-index="'+n+'"]'),u.lazy.loadImageInSlide(h.index(),!1)));u.emit("onLazyImageReady",u,r[0],t[0])});u.emit("onLazyImageLoad",u,r[0],t[0])})}},load:function(){var t,r,f;if(u.params.watchSlidesVisibility)u.wrapper.children("."+u.params.slideVisibleClass).each(function(){u.lazy.loadImageInSlide(n(this).index())});else if(u.params.slidesPerView>1)for(t=u.activeIndex;t<u.activeIndex+u.params.slidesPerView;t++)u.slides[t]&&u.lazy.loadImageInSlide(t);else u.lazy.loadImageInSlide(u.activeIndex);if(u.params.lazyLoadingInPrevNext)if(u.params.slidesPerView>1||u.params.lazyLoadingInPrevNextAmount&&u.params.lazyLoadingInPrevNextAmount>1){var e=u.params.lazyLoadingInPrevNextAmount,i=u.params.slidesPerView,o=Math.min(u.activeIndex+i+Math.max(e,i),u.slides.length),s=Math.max(u.activeIndex-Math.max(i,e),0);for(t=u.activeIndex+u.params.slidesPerView;o>t;t++)u.slides[t]&&u.lazy.loadImageInSlide(t);for(t=s;t<u.activeIndex;t++)u.slides[t]&&u.lazy.loadImageInSlide(t)}else r=u.wrapper.children("."+u.params.slideNextClass),r.length>0&&u.lazy.loadImageInSlide(r.index()),f=u.wrapper.children("."+u.params.slidePrevClass),f.length>0&&u.lazy.loadImageInSlide(f.index())},onTransitionStart:function(){u.params.lazyLoading&&(u.params.lazyLoadingOnTransitionStart||!u.params.lazyLoadingOnTransitionStart&&!u.lazy.initialImageLoaded)&&u.lazy.load()},onTransitionEnd:function(){u.params.lazyLoading&&!u.params.lazyLoadingOnTransitionStart&&u.lazy.load()}},u.scrollbar={isTouched:!1,setDragPosition:function(n){var i=u.scrollbar,e=u.isHorizontal()?"touchstart"===n.type||"touchmove"===n.type?n.targetTouches[0].pageX:n.pageX||n.clientX:"touchstart"===n.type||"touchmove"===n.type?n.targetTouches[0].pageY:n.pageY||n.clientY,t=e-i.track.offset()[u.isHorizontal()?"left":"top"]-i.dragSize/2,r=-u.minTranslate()*i.moveDivider,f=-u.maxTranslate()*i.moveDivider;r>t?t=r:t>f&&(t=f);t=-t/i.moveDivider;u.updateProgress(t);u.setWrapperTranslate(t,!0)},dragStart:function(n){var t=u.scrollbar;t.isTouched=!0;n.preventDefault();n.stopPropagation();t.setDragPosition(n);clearTimeout(t.dragTimeout);t.track.transition(0);u.params.scrollbarHide&&t.track.css("opacity",1);u.wrapper.transition(100);t.drag.transition(100);u.emit("onScrollbarDragStart",u)},dragMove:function(n){var t=u.scrollbar;t.isTouched&&(n.preventDefault?n.preventDefault():n.returnValue=!1,t.setDragPosition(n),u.wrapper.transition(0),t.track.transition(0),t.drag.transition(0),u.emit("onScrollbarDragMove",u))},dragEnd:function(){var n=u.scrollbar;n.isTouched&&(n.isTouched=!1,u.params.scrollbarHide&&(clearTimeout(n.dragTimeout),n.dragTimeout=setTimeout(function(){n.track.css("opacity",0);n.track.transition(400)},1e3)),u.emit("onScrollbarDragEnd",u),u.params.scrollbarSnapOnRelease&&u.slideReset())},enableDraggable:function(){var t=u.scrollbar,i=u.support.touch?t.track:document;n(t.track).on(u.touchEvents.start,t.dragStart);n(i).on(u.touchEvents.move,t.dragMove);n(i).on(u.touchEvents.end,t.dragEnd)},disableDraggable:function(){var t=u.scrollbar,i=u.support.touch?t.track:document;n(t.track).off(u.touchEvents.start,t.dragStart);n(i).off(u.touchEvents.move,t.dragMove);n(i).off(u.touchEvents.end,t.dragEnd)},set:function(){if(u.params.scrollbar){var t=u.scrollbar;t.track=n(u.params.scrollbar);u.params.uniqueNavElements&&"string"==typeof u.params.scrollbar&&t.track.length>1&&1===u.container.find(u.params.scrollbar).length&&(t.track=u.container.find(u.params.scrollbar));t.drag=t.track.find(".swiper-scrollbar-drag");0===t.drag.length&&(t.drag=n('<div class="swiper-scrollbar-drag"><\/div>'),t.track.append(t.drag));t.drag[0].style.width="";t.drag[0].style.height="";t.trackSize=u.isHorizontal()?t.track[0].offsetWidth:t.track[0].offsetHeight;t.divider=u.size/u.virtualSize;t.moveDivider=t.divider*(t.trackSize/u.size);t.dragSize=t.trackSize*t.divider;u.isHorizontal()?t.drag[0].style.width=t.dragSize+"px":t.drag[0].style.height=t.dragSize+"px";t.track[0].style.display=t.divider>=1?"none":"";u.params.scrollbarHide&&(t.track[0].style.opacity=0)}},setTranslate:function(){if(u.params.scrollbar){var t,n=u.scrollbar,i=(u.translate||0,n.dragSize);t=(n.trackSize-n.dragSize)*u.progress;u.rtl&&u.isHorizontal()?(t=-t,t>0?(i=n.dragSize-t,t=0):-t+n.dragSize>n.trackSize&&(i=n.trackSize+t)):0>t?(i=n.dragSize+t,t=0):t+n.dragSize>n.trackSize&&(i=n.trackSize-t);u.isHorizontal()?(u.support.transforms3d?n.drag.transform("translate3d("+t+"px, 0, 0)"):n.drag.transform("translateX("+t+"px)"),n.drag[0].style.width=i+"px"):(u.support.transforms3d?n.drag.transform("translate3d(0px, "+t+"px, 0)"):n.drag.transform("translateY("+t+"px)"),n.drag[0].style.height=i+"px");u.params.scrollbarHide&&(clearTimeout(n.timeout),n.track[0].style.opacity=1,n.timeout=setTimeout(function(){n.track[0].style.opacity=0;n.track.transition(400)},1e3))}},setTransition:function(n){u.params.scrollbar&&u.scrollbar.drag.transition(n)}},u.controller={LinearSpline:function(n,t){var i,r,u;this.x=n;this.y=t;this.lastIndex=n.length-1;this.x.length;this.interpolate=function(n){return n?(r=u(this.x,n),i=r-1,(n-this.x[i])*(this.y[r]-this.y[i])/(this.x[r]-this.x[i])+this.y[i]):0};u=function(){var n,t,i;return function(r,u){for(t=-1,n=r.length;n-t>1;)r[i=n+t>>1]<=u?t=i:n=i;return n}}()},getInterpolateFunction:function(n){u.controller.spline||(u.controller.spline=u.params.loop?new u.controller.LinearSpline(u.slidesGrid,n.slidesGrid):new u.controller.LinearSpline(u.snapGrid,n.snapGrid))},setTranslate:function(n,i){function o(t){n=t.rtl&&"horizontal"===t.params.direction?-u.translate:u.translate;"slide"===u.params.controlBy&&(u.controller.getInterpolateFunction(t),f=-u.controller.spline.interpolate(-n));f&&"container"!==u.params.controlBy||(s=(t.maxTranslate()-t.minTranslate())/(u.maxTranslate()-u.minTranslate()),f=(n-u.minTranslate())*s+t.minTranslate());u.params.controlInverse&&(f=t.maxTranslate()-f);t.updateProgress(f);t.setWrapperTranslate(f,!1,u);t.updateActiveIndex()}var s,f,r=u.params.control,e;if(u.isArray(r))for(e=0;e<r.length;e++)r[e]!==i&&r[e]instanceof t&&o(r[e]);else r instanceof t&&i!==r&&o(r)},setTransition:function(n,i){function e(t){t.setWrapperTransition(n,u);0!==n&&(t.onTransitionStart(),t.wrapper.transitionEnd(function(){r&&(t.params.loop&&"slide"===u.params.controlBy&&t.fixLoop(),t.onTransitionEnd())}))}var f,r=u.params.control;if(u.isArray(r))for(f=0;f<r.length;f++)r[f]!==i&&r[f]instanceof t&&e(r[f]);else r instanceof t&&i!==r&&e(r)}},u.hashnav={init:function(){var t,n,r,f;if(u.params.hashnav&&(u.hashnav.initialized=!0,t=document.location.hash.replace("#",""),t))for(var i=0,e=u.slides.length;e>i;i++)n=u.slides.eq(i),r=n.attr("data-hash"),r!==t||n.hasClass(u.params.slideDuplicateClass)||(f=n.index(),u.slideTo(f,0,u.params.runCallbacksOnInit,!0))},setHash:function(){u.hashnav.initialized&&u.params.hashnav&&(document.location.hash=u.slides.eq(u.activeIndex).attr("data-hash")||"")}},u.disableKeyboardControl=function(){u.params.keyboardControl=!1;n(document).off("keydown",yt)},u.enableKeyboardControl=function(){u.params.keyboardControl=!0;n(document).on("keydown",yt)},u.mousewheel={event:!1,lastScrollTime:(new window.Date).getTime()},u.params.mousewheelControl){try{new window.WheelEvent("wheel");u.mousewheel.event="wheel"}catch(kt){(window.WheelEvent||u.container[0]&&"wheel"in u.container[0])&&(u.mousewheel.event="wheel")}u.mousewheel.event||window.WheelEvent;u.mousewheel.event||void 0===document.onmousewheel||(u.mousewheel.event="mousewheel");u.mousewheel.event||(u.mousewheel.event="DOMMouseScroll")}u.disableMousewheelControl=function(){return u.mousewheel.event?(u.container.off(u.mousewheel.event,pt),!0):!1};u.enableMousewheelControl=function(){return u.mousewheel.event?(u.container.on(u.mousewheel.event,pt),!0):!1};u.parallax={setTranslate:function(){u.container.children("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y]").each(function(){wt(this,u.progress)});u.slides.each(function(){var t=n(this);t.find("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y]").each(function(){var n=Math.min(Math.max(t[0].progress,-1),1);wt(this,n)})})},setTransition:function(t){"undefined"==typeof t&&(t=u.params.speed);u.container.find("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y]").each(function(){var i=n(this),r=parseInt(i.attr("data-swiper-parallax-duration"),10)||t;0===t&&(r=0);i.transition(r)})}};u._plugins=[];for(at in u.plugins)vt=u.plugins[at](u,u.params[at]),vt&&u._plugins.push(vt);return u.callPlugins=function(n){for(var t=0;t<u._plugins.length;t++)n in u._plugins[t]&&u._plugins[t][n](arguments[1],arguments[2],arguments[3],arguments[4],arguments[5])},u.emitterEventListeners={},u.emit=function(n){u.params[n]&&u.params[n](arguments[1],arguments[2],arguments[3],arguments[4],arguments[5]);var t;if(u.emitterEventListeners[n])for(t=0;t<u.emitterEventListeners[n].length;t++)u.emitterEventListeners[n][t](arguments[1],arguments[2],arguments[3],arguments[4],arguments[5]);u.callPlugins&&u.callPlugins(n,arguments[1],arguments[2],arguments[3],arguments[4],arguments[5])},u.on=function(n,t){return n=ot(n),u.emitterEventListeners[n]||(u.emitterEventListeners[n]=[]),u.emitterEventListeners[n].push(t),u},u.off=function(n,t){var i;if(n=ot(n),"undefined"==typeof t)return u.emitterEventListeners[n]=[],u;if(u.emitterEventListeners[n]&&0!==u.emitterEventListeners[n].length){for(i=0;i<u.emitterEventListeners[n].length;i++)u.emitterEventListeners[n][i]===t&&u.emitterEventListeners[n].splice(i,1);return u}},u.once=function(n,t){n=ot(n);var i=function(){t(arguments[0],arguments[1],arguments[2],arguments[3],arguments[4]);u.off(n,i)};return u.on(n,i),u},u.a11y={makeFocusable:function(n){return n.attr("tabIndex","0"),n},addRole:function(n,t){return n.attr("role",t),n},addLabel:function(n,t){return n.attr("aria-label",t),n},disable:function(n){return n.attr("aria-disabled",!0),n},enable:function(n){return n.attr("aria-disabled",!1),n},onEnterKey:function(t){13===t.keyCode&&(n(t.target).is(u.params.nextButton)?(u.onClickNext(t),u.isEnd?u.a11y.notify(u.params.lastSlideMessage):u.a11y.notify(u.params.nextSlideMessage)):n(t.target).is(u.params.prevButton)&&(u.onClickPrev(t),u.isBeginning?u.a11y.notify(u.params.firstSlideMessage):u.a11y.notify(u.params.prevSlideMessage)),n(t.target).is("."+u.params.bulletClass)&&n(t.target)[0].click())},liveRegion:n('<span class="swiper-notification" aria-live="assertive" aria-atomic="true"><\/span>'),notify:function(n){var t=u.a11y.liveRegion;0!==t.length&&(t.html(""),t.html(n))},init:function(){u.params.nextButton&&u.nextButton&&u.nextButton.length>0&&(u.a11y.makeFocusable(u.nextButton),u.a11y.addRole(u.nextButton,"button"),u.a11y.addLabel(u.nextButton,u.params.nextSlideMessage));u.params.prevButton&&u.prevButton&&u.prevButton.length>0&&(u.a11y.makeFocusable(u.prevButton),u.a11y.addRole(u.prevButton,"button"),u.a11y.addLabel(u.prevButton,u.params.prevSlideMessage));n(u.container).append(u.a11y.liveRegion)},initPagination:function(){u.params.pagination&&u.params.paginationClickable&&u.bullets&&u.bullets.length&&u.bullets.each(function(){var t=n(this);u.a11y.makeFocusable(t);u.a11y.addRole(t,"button");u.a11y.addLabel(t,u.params.paginationBulletMessage.replace(/{{index}}/,t.index()+1))})},destroy:function(){u.a11y.liveRegion&&u.a11y.liveRegion.length>0&&u.a11y.liveRegion.remove()}},u.init=function(){u.params.loop&&u.createLoop();u.updateContainerSize();u.updateSlidesSize();u.updatePagination();u.params.scrollbar&&u.scrollbar&&(u.scrollbar.set(),u.params.scrollbarDraggable&&u.scrollbar.enableDraggable());"slide"!==u.params.effect&&u.effects[u.params.effect]&&(u.params.loop||u.updateProgress(),u.effects[u.params.effect].setTranslate());u.params.loop?u.slideTo(u.params.initialSlide+u.loopedSlides,0,u.params.runCallbacksOnInit):(u.slideTo(u.params.initialSlide,0,u.params.runCallbacksOnInit),0===u.params.initialSlide&&(u.parallax&&u.params.parallax&&u.parallax.setTranslate(),u.lazy&&u.params.lazyLoading&&(u.lazy.load(),u.lazy.initialImageLoaded=!0)));u.attachEvents();u.params.observer&&u.support.observer&&u.initObservers();u.params.preloadImages&&!u.params.lazyLoading&&u.preloadImages();u.params.autoplay&&u.startAutoplay();u.params.keyboardControl&&u.enableKeyboardControl&&u.enableKeyboardControl();u.params.mousewheelControl&&u.enableMousewheelControl&&u.enableMousewheelControl();u.params.hashnav&&u.hashnav&&u.hashnav.init();u.params.a11y&&u.a11y&&u.a11y.init();u.emit("onInit",u)},u.cleanupStyles=function(){u.container.removeClass(u.classNames.join(" ")).removeAttr("style");u.wrapper.removeAttr("style");u.slides&&u.slides.length&&u.slides.removeClass([u.params.slideVisibleClass,u.params.slideActiveClass,u.params.slideNextClass,u.params.slidePrevClass].join(" ")).removeAttr("style").removeAttr("data-swiper-column").removeAttr("data-swiper-row");u.paginationContainer&&u.paginationContainer.length&&u.paginationContainer.removeClass(u.params.paginationHiddenClass);u.bullets&&u.bullets.length&&u.bullets.removeClass(u.params.bulletActiveClass);u.params.prevButton&&n(u.params.prevButton).removeClass(u.params.buttonDisabledClass);u.params.nextButton&&n(u.params.nextButton).removeClass(u.params.buttonDisabledClass);u.params.scrollbar&&u.scrollbar&&(u.scrollbar.track&&u.scrollbar.track.length&&u.scrollbar.track.removeAttr("style"),u.scrollbar.drag&&u.scrollbar.drag.length&&u.scrollbar.drag.removeAttr("style"))},u.destroy=function(n,t){u.detachEvents();u.stopAutoplay();u.params.scrollbar&&u.scrollbar&&u.params.scrollbarDraggable&&u.scrollbar.disableDraggable();u.params.loop&&u.destroyLoop();t&&u.cleanupStyles();u.disconnectObservers();u.params.keyboardControl&&u.disableKeyboardControl&&u.disableKeyboardControl();u.params.mousewheelControl&&u.disableMousewheelControl&&u.disableMousewheelControl();u.params.a11y&&u.a11y&&u.a11y.destroy();u.emit("onDestroy");n!==!1&&(u=null)},u.init(),u}},u,r,i;for(t.prototype={isSafari:function(){var n=navigator.userAgent.toLowerCase();return n.indexOf("safari")>=0&&n.indexOf("chrome")<0&&n.indexOf("android")<0}(),isUiWebView:/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(navigator.userAgent),isArray:function(n){return"[object Array]"===Object.prototype.toString.apply(n)},browser:{ie:window.navigator.pointerEnabled||window.navigator.msPointerEnabled,ieTouch:window.navigator.msPointerEnabled&&window.navigator.msMaxTouchPoints>1||window.navigator.pointerEnabled&&window.navigator.maxTouchPoints>1},device:function(){var n=navigator.userAgent,i=n.match(/(Android);?[\s\/]+([\d.]+)?/),t=n.match(/(iPad).*OS\s([\d_]+)/),r=n.match(/(iPod)(.*OS\s([\d_]+))?/),u=!t&&n.match(/(iPhone\sOS)\s([\d_]+)/);return{ios:t||u||r,android:i}}(),support:{touch:window.Modernizr&&Modernizr.touch===!0||function(){return!!("ontouchstart"in window||window.DocumentTouch&&document instanceof DocumentTouch)}(),transforms3d:window.Modernizr&&Modernizr.csstransforms3d===!0||function(){var n=document.createElement("div").style;return"webkitPerspective"in n||"MozPerspective"in n||"OPerspective"in n||"MsPerspective"in n||"perspective"in n}(),flexbox:function(){for(var i=document.createElement("div").style,t="alignItems webkitAlignItems webkitBoxAlign msFlexAlign mozBoxAlign webkitFlexDirection msFlexDirection mozBoxDirection mozBoxOrient webkitBoxDirection webkitBoxOrient".split(" "),n=0;n<t.length;n++)if(t[n]in i)return!0}(),observer:function(){return"MutationObserver"in window||"WebkitMutationObserver"in window}()},plugins:{}},u=["jQuery","Zepto","Dom7"],r=0;r<u.length;r++)window[u[r]]&&f(window[u[r]]);i="undefined"==typeof Dom7?window.Dom7||window.Zepto||window.jQuery:Dom7;i&&("transitionEnd"in i.fn||(i.fn.transitionEnd=function(n){function r(f){if(f.target===this)for(n.call(this,f),t=0;t<i.length;t++)u.off(i[t],r)}var t,i=["webkitTransitionEnd","transitionend","oTransitionEnd","MSTransitionEnd","msTransitionEnd"],u=this;if(n)for(t=0;t<i.length;t++)u.on(i[t],r);return this}),"transform"in i.fn||(i.fn.transform=function(n){for(var t,i=0;i<this.length;i++)t=this[i].style,t.webkitTransform=t.MsTransform=t.msTransform=t.MozTransform=t.OTransform=t.transform=n;return this}),"transition"in i.fn||(i.fn.transition=function(n){var i,t;for("string"!=typeof n&&(n+="ms"),i=0;i<this.length;i++)t=this[i].style,t.webkitTransitionDuration=t.MsTransitionDuration=t.msTransitionDuration=t.MozTransitionDuration=t.OTransitionDuration=t.transitionDuration=n;return this}));window.Swiper=t}();"undefined"!=typeof module?module.exports=window.Swiper:"function"==typeof define&&define.amd&&define([],function(){"use strict";return window.Swiper});_gsScope="undefined"!=typeof module&&module.exports&&"undefined"!=typeof global?global:this||window;(_gsScope._gsQueue||(_gsScope._gsQueue=[])).push(function(){"use strict";_gsScope._gsDefine("TimelineMax",["TimelineLite","TweenLite","easing.Ease"],function(n,t,i){var e=function(t){n.call(this,t);this._repeat=this.vars.repeat||0;this._repeatDelay=this.vars.repeatDelay||0;this._cycle=0;this._yoyo=this.vars.yoyo===!0;this._dirty=!0},f=1e-10,u=[],o=t._internals,s=o.lazyTweens,h=o.lazyRender,c=new i(null,null,1,0),r=e.prototype=new n;return r.constructor=e,r.kill()._gc=!1,e.version="1.13.1",r.invalidate=function(){return this._yoyo=this.vars.yoyo===!0,this._repeat=this.vars.repeat||0,this._repeatDelay=this.vars.repeatDelay||0,this._uncache(!0),n.prototype.invalidate.call(this)},r.addCallback=function(n,i,r,u){return this.add(t.delayedCall(0,n,r,u),i)},r.removeCallback=function(n,t){if(n)if(null==t)this._kill(null,n);else for(var i=this.getTweensOf(n,!1),r=i.length,u=this._parseTimeOrLabel(t);--r>-1;)i[r]._startTime===u&&i[r]._enabled(!1,!1);return this},r.tweenTo=function(n,i){i=i||{};var e,o,r,f={ease:c,overwrite:i.delay?2:1,useFrames:this.usesFrames(),immediateRender:!1};for(o in i)f[o]=i[o];return f.time=this._parseTimeOrLabel(n),e=Math.abs(Number(f.time)-this._time)/this._timeScale||.001,r=new t(this,e,f),f.onStart=function(){r.target.paused(!0);r.vars.time!==r.target.time()&&e===r.duration()&&r.duration(Math.abs(r.vars.time-r.target.time())/r.target._timeScale);i.onStart&&i.onStart.apply(i.onStartScope||r,i.onStartParams||u)},r},r.tweenFromTo=function(n,t,i){i=i||{};n=this._parseTimeOrLabel(n);i.startAt={onComplete:this.seek,onCompleteParams:[n],onCompleteScope:this};i.immediateRender=i.immediateRender!==!1;var r=this.tweenTo(t,i);return r.duration(Math.abs(r.vars.time-n)/this._timeScale||.001)},r.render=function(n,t,i){this._gc&&this._enabled(!0,!1);var r,b,p,l,a,w,k=this._dirty?this.totalDuration():this._totalDuration,e=this._duration,c=this._time,d=this._totalTime,nt=this._startTime,tt=this._timeScale,o=this._rawPrevTime,g=this._paused,v=this._cycle;if(n>=k?(this._locked||(this._totalTime=k,this._cycle=this._repeat),this._reversed||this._hasPausedChild()||(b=!0,l="onComplete",0===this._duration&&(0===n||0>o||o===f)&&o!==n&&this._first&&(a=!0,o>f&&(l="onReverseComplete"))),this._rawPrevTime=this._duration||!t||n||this._rawPrevTime===n?n:f,this._yoyo&&0!=(1&this._cycle)?this._time=n=0:(this._time=e,n=e+.0001)):1e-7>n?(this._locked||(this._totalTime=this._cycle=0),this._time=0,(0!==c||0===e&&o!==f&&(o>0||0>n&&o>=0)&&!this._locked)&&(l="onReverseComplete",b=this._reversed),0>n?(this._active=!1,o>=0&&this._first&&(a=!0),this._rawPrevTime=n):(this._rawPrevTime=e||!t||n||this._rawPrevTime===n?n:f,n=0,this._initted||(a=!0))):(0===e&&0>o&&(a=!0),this._time=this._rawPrevTime=n,this._locked||(this._totalTime=n,0!==this._repeat&&(w=e+this._repeatDelay,this._cycle=this._totalTime/w>>0,0!==this._cycle&&this._cycle===this._totalTime/w&&this._cycle--,this._time=this._totalTime-this._cycle*w,this._yoyo&&0!=(1&this._cycle)&&(this._time=e-this._time),this._time>e?(this._time=e,n=e+.0001):0>this._time?this._time=n=0:n=this._time))),this._cycle!==v&&!this._locked){var y=this._yoyo&&0!=(1&v),it=y===(this._yoyo&&0!=(1&this._cycle)),rt=this._totalTime,ut=this._cycle,ft=this._rawPrevTime,et=this._time;if(this._totalTime=v*e,v>this._cycle?y=!y:this._totalTime+=e,this._time=c,this._rawPrevTime=0===e?o-.0001:o,this._cycle=v,this._locked=!0,c=y?0:e,this.render(c,t,0===e),t||this._gc||this.vars.onRepeat&&this.vars.onRepeat.apply(this.vars.onRepeatScope||this,this.vars.onRepeatParams||u),it&&(c=y?e+.0001:-.0001,this.render(c,!0,!1)),this._locked=!1,this._paused&&!g)return;this._time=et;this._totalTime=rt;this._cycle=ut;this._rawPrevTime=ft}if(!(this._time!==c&&this._first||i||a))return d!==this._totalTime&&this._onUpdate&&(t||this._onUpdate.apply(this.vars.onUpdateScope||this,this.vars.onUpdateParams||u)),void 0;if(this._initted||(this._initted=!0),this._active||!this._paused&&this._totalTime!==d&&n>0&&(this._active=!0),0===d&&this.vars.onStart&&0!==this._totalTime&&(t||this.vars.onStart.apply(this.vars.onStartScope||this,this.vars.onStartParams||u)),this._time>=c)for(r=this._first;r&&(p=r._next,!this._paused||g);)(r._active||r._startTime<=this._time&&!r._paused&&!r._gc)&&(r._reversed?r.render((r._dirty?r.totalDuration():r._totalDuration)-(n-r._startTime)*r._timeScale,t,i):r.render((n-r._startTime)*r._timeScale,t,i)),r=p;else for(r=this._last;r&&(p=r._prev,!this._paused||g);)(r._active||c>=r._startTime&&!r._paused&&!r._gc)&&(r._reversed?r.render((r._dirty?r.totalDuration():r._totalDuration)-(n-r._startTime)*r._timeScale,t,i):r.render((n-r._startTime)*r._timeScale,t,i)),r=p;this._onUpdate&&(t||(s.length&&h(),this._onUpdate.apply(this.vars.onUpdateScope||this,this.vars.onUpdateParams||u)));l&&(this._locked||this._gc||(nt===this._startTime||tt!==this._timeScale)&&(0===this._time||k>=this.totalDuration())&&(b&&(s.length&&h(),this._timeline.autoRemoveChildren&&this._enabled(!1,!1),this._active=!1),!t&&this.vars[l]&&this.vars[l].apply(this.vars[l+"Scope"]||this,this.vars[l+"Params"]||u)))},r.getActive=function(n,t,i){null==n&&(n=!0);null==t&&(t=!0);null==i&&(i=!1);for(var u,f=[],e=this.getChildren(n,t,i),o=0,s=e.length,r=0;s>r;r++)u=e[r],u.isActive()&&(f[o++]=u);return f},r.getLabelAfter=function(n){n||0!==n&&(n=this._time);for(var i=this.getLabelsArray(),r=i.length,t=0;r>t;t++)if(i[t].time>n)return i[t].name;return null},r.getLabelBefore=function(n){null==n&&(n=this._time);for(var t=this.getLabelsArray(),i=t.length;--i>-1;)if(n>t[i].time)return t[i].name;return null},r.getLabelsArray=function(){var n,t=[],i=0;for(n in this._labels)t[i++]={time:this._labels[n],name:n};return t.sort(function(n,t){return n.time-t.time}),t},r.progress=function(n){return arguments.length?this.totalTime(this.duration()*(this._yoyo&&0!=(1&this._cycle)?1-n:n)+this._cycle*(this._duration+this._repeatDelay),!1):this._time/this.duration()},r.totalProgress=function(n){return arguments.length?this.totalTime(this.totalDuration()*n,!1):this._totalTime/this.totalDuration()},r.totalDuration=function(t){return arguments.length?-1===this._repeat?this:this.duration((t-this._repeat*this._repeatDelay)/(this._repeat+1)):(this._dirty&&(n.prototype.totalDuration.call(this),this._totalDuration=-1===this._repeat?999999999999:this._duration*(this._repeat+1)+this._repeatDelay*this._repeat),this._totalDuration)},r.time=function(n,t){return arguments.length?(this._dirty&&this.totalDuration(),n>this._duration&&(n=this._duration),this._yoyo&&0!=(1&this._cycle)?n=this._duration-n+this._cycle*(this._duration+this._repeatDelay):0!==this._repeat&&(n+=this._cycle*(this._duration+this._repeatDelay)),this.totalTime(n,t)):this._time},r.repeat=function(n){return arguments.length?(this._repeat=n,this._uncache(!0)):this._repeat},r.repeatDelay=function(n){return arguments.length?(this._repeatDelay=n,this._uncache(!0)):this._repeatDelay},r.yoyo=function(n){return arguments.length?(this._yoyo=n,this):this._yoyo},r.currentLabel=function(n){return arguments.length?this.seek(n,!0):this.getLabelBefore(this._time+1e-8)},e},!0);_gsScope._gsDefine("TimelineLite",["core.Animation","core.SimpleTimeline","TweenLite"],function(n,t,i){var u=function(n){t.call(this,n);this._labels={};this.autoRemoveChildren=this.vars.autoRemoveChildren===!0;this.smoothChildTiming=this.vars.smoothChildTiming===!0;this._sortChildren=!0;this._onUpdate=this.vars.onUpdate;var r,u,i=this.vars;for(u in i)r=i[u],f(r)&&-1!==r.join("").indexOf("{self}")&&(i[u]=this._swapSelfInParams(r));f(i.tweens)&&this.add(i.tweens,0,i.align,i.stagger)},e=1e-10,o=i._internals,v=o.isSelector,f=o.isArray,c=o.lazyTweens,l=o.lazyRender,s=[],h=_gsScope._gsDefine.globals,a=function(n){var t,i={};for(t in n)i[t]=n[t];return i},y=function(n,t,i,r){n._timeline.pause(n._startTime);t&&t.apply(r||n._timeline,i||s)},p=function(n){for(var i=[],r=n.length,t=0;t!==r;i.push(n[t++]));return i},r=u.prototype=new t;return u.version="1.13.1",r.constructor=u,r.kill()._gc=!1,r.to=function(n,t,r,u){var f=r.repeat&&h.TweenMax||i;return t?this.add(new f(n,t,r),u):this.set(n,r,u)},r.from=function(n,t,r,u){return this.add((r.repeat&&h.TweenMax||i).from(n,t,r),u)},r.fromTo=function(n,t,r,u,f){var e=u.repeat&&h.TweenMax||i;return t?this.add(e.fromTo(n,t,r,u),f):this.set(n,u,f)},r.staggerTo=function(n,t,r,f,e,o,s,h){var c,l=new u({onComplete:o,onCompleteParams:s,onCompleteScope:h,smoothChildTiming:this.smoothChildTiming});for("string"==typeof n&&(n=i.selector(n)||n),v(n)&&(n=p(n)),f=f||0,c=0;n.length>c;c++)r.startAt&&(r.startAt=a(r.startAt)),l.to(n[c],t,a(r),c*f);return this.add(l,e)},r.staggerFrom=function(n,t,i,r,u,f,e,o){return i.immediateRender=0!=i.immediateRender,i.runBackwards=!0,this.staggerTo(n,t,i,r,u,f,e,o)},r.staggerFromTo=function(n,t,i,r,u,f,e,o,s){return r.startAt=i,r.immediateRender=0!=r.immediateRender&&0!=i.immediateRender,this.staggerTo(n,t,r,u,f,e,o,s)},r.call=function(n,t,r,u){return this.add(i.delayedCall(0,n,t,r),u)},r.set=function(n,t,r){return r=this._parseTimeOrLabel(r,0,!0),null==t.immediateRender&&(t.immediateRender=r===this._time&&!this._paused),this.add(new i(n,0,t),r)},u.exportRoot=function(n,t){n=n||{};null==n.smoothChildTiming&&(n.smoothChildTiming=!0);var r,o,f=new u(n),e=f._timeline;for(null==t&&(t=!0),e._remove(f,!0),f._startTime=0,f._rawPrevTime=f._time=f._totalTime=e._time,r=e._first;r;)o=r._next,t&&r instanceof i&&r.target===r.vars.onComplete||f.add(r,r._startTime-r._delay),r=o;return e.add(f,0),f},r.add=function(r,e,o,s){var l,v,a,h,c,y;if("number"!=typeof e&&(e=this._parseTimeOrLabel(e,0,!0,r)),!(r instanceof n)){if(r instanceof Array||r&&r.push&&f(r)){for(o=o||"normal",s=s||0,l=e,v=r.length,a=0;v>a;a++)f(h=r[a])&&(h=new u({tweens:h})),this.add(h,l),"string"!=typeof h&&"function"!=typeof h&&("sequence"===o?l=h._startTime+h.totalDuration()/h._timeScale:"start"===o&&(h._startTime-=h.delay())),l+=s;return this._uncache(!0)}if("string"==typeof r)return this.addLabel(r,e);if("function"!=typeof r)throw"Cannot add "+r+" into the timeline; it is not a tween, timeline, function, or string.";r=i.delayedCall(0,r)}if(t.prototype.add.call(this,r,e),(this._gc||this._time===this._duration)&&!this._paused&&this._duration<this.duration())for(c=this,y=c.rawTime()>r._startTime;c._timeline;)y&&c._timeline.smoothChildTiming?c.totalTime(c._totalTime,!0):c._gc&&c._enabled(!0,!1),c=c._timeline;return this},r.remove=function(t){if(t instanceof n)return this._remove(t,!1);if(t instanceof Array||t&&t.push&&f(t)){for(var i=t.length;--i>-1;)this.remove(t[i]);return this}return"string"==typeof t?this.removeLabel(t):this.kill(null,t)},r._remove=function(n,i){t.prototype._remove.call(this,n,i);var r=this._last;return r?this._time>r._startTime+r._totalDuration/r._timeScale&&(this._time=this.duration(),this._totalTime=this._totalDuration):this._time=this._totalTime=this._duration=this._totalDuration=0,this},r.append=function(n,t){return this.add(n,this._parseTimeOrLabel(null,t,!0,n))},r.insert=r.insertMultiple=function(n,t,i,r){return this.add(n,t||0,i,r)},r.appendMultiple=function(n,t,i,r){return this.add(n,this._parseTimeOrLabel(null,t,!0,n),i,r)},r.addLabel=function(n,t){return this._labels[n]=this._parseTimeOrLabel(t),this},r.addPause=function(n,t,i,r){return this.call(y,["{self}",t,i,r],this,n)},r.removeLabel=function(n){return delete this._labels[n],this},r.getLabelTime=function(n){return null!=this._labels[n]?this._labels[n]:-1},r._parseTimeOrLabel=function(t,i,r,u){var e;if(u instanceof n&&u.timeline===this)this.remove(u);else if(u&&(u instanceof Array||u.push&&f(u)))for(e=u.length;--e>-1;)u[e]instanceof n&&u[e].timeline===this&&this.remove(u[e]);if("string"==typeof i)return this._parseTimeOrLabel(i,r&&"number"==typeof t&&null==this._labels[i]?t-this.duration():0,r);if(i=i||0,"string"==typeof t&&(isNaN(t)||null!=this._labels[t])){if(e=t.indexOf("="),-1===e)return null==this._labels[t]?r?this._labels[t]=this.duration()+i:i:this._labels[t]+i;i=parseInt(t.charAt(e-1)+"1",10)*Number(t.substr(e+1));t=e>1?this._parseTimeOrLabel(t.substr(0,e-1),0,r):this.duration()}else null==t&&(t=this.duration());return Number(t)+i},r.seek=function(n,t){return this.totalTime("number"==typeof n?n:this._parseTimeOrLabel(n),t!==!1)},r.stop=function(){return this.paused(!0)},r.gotoAndPlay=function(n,t){return this.play(n,t)},r.gotoAndStop=function(n,t){return this.pause(n,t)},r.render=function(n,t,i){this._gc&&this._enabled(!0,!1);var r,v,o,u,h,a=this._dirty?this.totalDuration():this._totalDuration,f=this._time,p=this._startTime,w=this._timeScale,y=this._paused;if(n>=a?(this._totalTime=this._time=a,this._reversed||this._hasPausedChild()||(v=!0,u="onComplete",0===this._duration&&(0===n||0>this._rawPrevTime||this._rawPrevTime===e)&&this._rawPrevTime!==n&&this._first&&(h=!0,this._rawPrevTime>e&&(u="onReverseComplete"))),this._rawPrevTime=this._duration||!t||n||this._rawPrevTime===n?n:e,n=a+.0001):1e-7>n?(this._totalTime=this._time=0,(0!==f||0===this._duration&&this._rawPrevTime!==e&&(this._rawPrevTime>0||0>n&&this._rawPrevTime>=0))&&(u="onReverseComplete",v=this._reversed),0>n?(this._active=!1,this._rawPrevTime>=0&&this._first&&(h=!0),this._rawPrevTime=n):(this._rawPrevTime=this._duration||!t||n||this._rawPrevTime===n?n:e,n=0,this._initted||(h=!0))):this._totalTime=this._time=this._rawPrevTime=n,this._time!==f&&this._first||i||h){if(this._initted||(this._initted=!0),this._active||!this._paused&&this._time!==f&&n>0&&(this._active=!0),0===f&&this.vars.onStart&&0!==this._time&&(t||this.vars.onStart.apply(this.vars.onStartScope||this,this.vars.onStartParams||s)),this._time>=f)for(r=this._first;r&&(o=r._next,!this._paused||y);)(r._active||r._startTime<=this._time&&!r._paused&&!r._gc)&&(r._reversed?r.render((r._dirty?r.totalDuration():r._totalDuration)-(n-r._startTime)*r._timeScale,t,i):r.render((n-r._startTime)*r._timeScale,t,i)),r=o;else for(r=this._last;r&&(o=r._prev,!this._paused||y);)(r._active||f>=r._startTime&&!r._paused&&!r._gc)&&(r._reversed?r.render((r._dirty?r.totalDuration():r._totalDuration)-(n-r._startTime)*r._timeScale,t,i):r.render((n-r._startTime)*r._timeScale,t,i)),r=o;this._onUpdate&&(t||(c.length&&l(),this._onUpdate.apply(this.vars.onUpdateScope||this,this.vars.onUpdateParams||s)));u&&(this._gc||(p===this._startTime||w!==this._timeScale)&&(0===this._time||a>=this.totalDuration())&&(v&&(c.length&&l(),this._timeline.autoRemoveChildren&&this._enabled(!1,!1),this._active=!1),!t&&this.vars[u]&&this.vars[u].apply(this.vars[u+"Scope"]||this,this.vars[u+"Params"]||s)))}},r._hasPausedChild=function(){for(var n=this._first;n;){if(n._paused||n instanceof u&&n._hasPausedChild())return!0;n=n._next}return!1},r.getChildren=function(n,t,r,u){u=u||-9999999999;for(var e=[],f=this._first,o=0;f;)u>f._startTime||(f instanceof i?t!==!1&&(e[o++]=f):(r!==!1&&(e[o++]=f),n!==!1&&(e=e.concat(f.getChildren(!0,t,r)),o=e.length))),f=f._next;return e},r.getTweensOf=function(n,t){var r,u,f=this._gc,e=[],o=0;for(f&&this._enabled(!0,!0),r=i.getTweensOf(n),u=r.length;--u>-1;)(r[u].timeline===this||t&&this._contains(r[u]))&&(e[o++]=r[u]);return f&&this._enabled(!1,!0),e},r._contains=function(n){for(var t=n.timeline;t;){if(t===this)return!0;t=t.timeline}return!1},r.shiftChildren=function(n,t,i){i=i||0;for(var u,r=this._first,f=this._labels;r;)r._startTime>=i&&(r._startTime+=n),r=r._next;if(t)for(u in f)f[u]>=i&&(f[u]+=n);return this._uncache(!0)},r._kill=function(n,t){if(!n&&!t)return this._enabled(!1,!1);for(var i=t?this.getTweensOf(t):this.getChildren(!0,!0,!1),r=i.length,u=!1;--r>-1;)i[r]._kill(n,t)&&(u=!0);return u},r.clear=function(n){var t=this.getChildren(!1,!0,!0),i=t.length;for(this._time=this._totalTime=0;--i>-1;)t[i]._enabled(!1,!1);return n!==!1&&(this._labels={}),this._uncache(!0)},r.invalidate=function(){for(var n=this._first;n;)n.invalidate(),n=n._next;return this},r._enabled=function(n,i){if(n===this._gc)for(var r=this._first;r;)r._enabled(n,!0),r=r._next;return t.prototype._enabled.call(this,n,i)},r.duration=function(n){return arguments.length?(0!==this.duration()&&0!==n&&this.timeScale(this._duration/n),this):(this._dirty&&this.totalDuration(),this._duration)},r.totalDuration=function(n){if(!arguments.length){if(this._dirty){for(var f,r,i=0,t=this._last,u=999999999999;t;)f=t._prev,t._dirty&&t.totalDuration(),t._startTime>u&&this._sortChildren&&!t._paused?this.add(t,t._startTime-t._delay):u=t._startTime,0>t._startTime&&!t._paused&&(i-=t._startTime,this._timeline.smoothChildTiming&&(this._startTime+=t._startTime/this._timeScale),this.shiftChildren(-t._startTime,!1,-9999999999),u=0),r=t._startTime+t._totalDuration/t._timeScale,r>i&&(i=r),t=f;this._duration=this._totalDuration=i;this._dirty=!1}return this._totalDuration}return 0!==this.totalDuration()&&0!==n&&this.timeScale(this._totalDuration/n),this},r.usesFrames=function(){for(var t=this._timeline;t._timeline;)t=t._timeline;return t===n._rootFramesTimeline},r.rawTime=function(){return this._paused?this._totalTime:(this._timeline.rawTime()-this._startTime)*this._timeScale},u},!0)});_gsScope._gsDefine&&_gsScope._gsQueue.pop()(),function(n){"use strict";var t=function(){return(_gsScope.GreenSockGlobals||_gsScope)[n]};"function"==typeof define&&define.amd?define(["TweenLite"],t):"undefined"!=typeof module&&module.exports&&(require("./TweenLite.js"),module.exports=t())}("TimelineMax");_gsScope="undefined"!=typeof module&&module.exports&&"undefined"!=typeof global?global:this||window;(_gsScope._gsQueue||(_gsScope._gsQueue=[])).push(function(){"use strict";_gsScope._gsDefine("TweenMax",["core.Animation","core.SimpleTimeline","TweenLite"],function(n,t,i){var l=function(n){for(var i=[],r=n.length,t=0;t!==r;i.push(n[t++]));return i},r=function(n,t,u){i.call(this,n,t,u);this._cycle=0;this._yoyo=this.vars.yoyo===!0;this._repeat=this.vars.repeat||0;this._repeatDelay=this.vars.repeatDelay||0;this._dirty=!0;this.render=r.prototype.render},f=1e-10,o=i._internals,a=o.isSelector,v=o.isArray,u=r.prototype=i.to({},.1,{}),e=[],s,h,c;return r.version="1.13.1",u.constructor=r,u.kill()._gc=!1,r.killTweensOf=r.killDelayedCallsTo=i.killTweensOf,r.getTweensOf=i.getTweensOf,r.lagSmoothing=i.lagSmoothing,r.ticker=i.ticker,r.render=i.render,u.invalidate=function(){return this._yoyo=this.vars.yoyo===!0,this._repeat=this.vars.repeat||0,this._repeatDelay=this.vars.repeatDelay||0,this._uncache(!0),i.prototype.invalidate.call(this)},u.updateTo=function(n,t){var u,s=this.ratio,f,e,o,r;t&&this._startTime<this._timeline._time&&(this._startTime=this._timeline._time,this._uncache(!1),this._gc?this._enabled(!0,!1):this._timeline.insert(this,this._startTime-this._delay));for(u in n)this.vars[u]=n[u];if(this._initted)if(t)this._initted=!1;else if(this._gc&&this._enabled(!0,!1),this._notifyPluginsOfEnabled&&this._firstPT&&i._onPluginEvent("_onDisable",this),this._time/this._duration>.998)f=this._time,this.render(0,!0,!1),this._initted=!1,this.render(f,!0,!1);else if(this._time>0)for(this._initted=!1,this._init(),o=1/(1-s),r=this._firstPT;r;)e=r.s+r.c,r.c*=o,r.s=e-r.c,r=r._next;return this},u.render=function(n,t,i){this._initted||0===this._duration&&this.vars.repeat&&this.invalidate();var l,h,s,p,r,a,v,w,d=this._dirty?this.totalDuration():this._totalDuration,b=this._time,y=this._totalTime,k=this._cycle,u=this._duration,c=this._rawPrevTime;if(n>=d?(this._totalTime=d,this._cycle=this._repeat,this._yoyo&&0!=(1&this._cycle)?(this._time=0,this.ratio=this._ease._calcEnd?this._ease.getRatio(0):0):(this._time=u,this.ratio=this._ease._calcEnd?this._ease.getRatio(1):1),this._reversed||(l=!0,h="onComplete"),0===u&&(this._initted||!this.vars.lazy||i)&&(this._startTime===this._timeline._duration&&(n=0),(0===n||0>c||c===f)&&c!==n&&(i=!0,c>f&&(h="onReverseComplete")),this._rawPrevTime=w=!t||n||c===n?n:f)):1e-7>n?(this._totalTime=this._time=this._cycle=0,this.ratio=this._ease._calcEnd?this._ease.getRatio(0):0,(0!==y||0===u&&c>0&&c!==f)&&(h="onReverseComplete",l=this._reversed),0>n?(this._active=!1,0===u&&(this._initted||!this.vars.lazy||i)&&(c>=0&&(i=!0),this._rawPrevTime=w=!t||n||c===n?n:f)):this._initted||(i=!0)):(this._totalTime=this._time=n,0!==this._repeat&&(p=u+this._repeatDelay,this._cycle=this._totalTime/p>>0,0!==this._cycle&&this._cycle===this._totalTime/p&&this._cycle--,this._time=this._totalTime-this._cycle*p,this._yoyo&&0!=(1&this._cycle)&&(this._time=u-this._time),this._time>u?this._time=u:0>this._time&&(this._time=0)),this._easeType?(r=this._time/u,a=this._easeType,v=this._easePower,(1===a||3===a&&r>=.5)&&(r=1-r),3===a&&(r*=2),1===v?r*=r:2===v?r*=r*r:3===v?r*=r*r*r:4===v&&(r*=r*r*r*r),this.ratio=1===a?1-r:2===a?r:.5>this._time/u?r/2:1-r/2):this.ratio=this._ease.getRatio(this._time/u)),b===this._time&&!i&&k===this._cycle)return y!==this._totalTime&&this._onUpdate&&(t||this._onUpdate.apply(this.vars.onUpdateScope||this,this.vars.onUpdateParams||e)),void 0;if(!this._initted){if(this._init(),!this._initted||this._gc)return;if(!i&&this._firstPT&&(this.vars.lazy!==!1&&this._duration||this.vars.lazy&&!this._duration))return this._time=b,this._totalTime=y,this._rawPrevTime=c,this._cycle=k,o.lazyTweens.push(this),this._lazy=n,void 0;this._time&&!l?this.ratio=this._ease.getRatio(this._time/u):l&&this._ease._calcEnd&&(this.ratio=this._ease.getRatio(0===this._time?0:1))}for(this._lazy!==!1&&(this._lazy=!1),this._active||!this._paused&&this._time!==b&&n>=0&&(this._active=!0),0===y&&(2===this._initted&&n>0&&this._init(),this._startAt&&(n>=0?this._startAt.render(n,t,i):h||(h="_dummyGS")),this.vars.onStart&&(0!==this._totalTime||0===u)&&(t||this.vars.onStart.apply(this.vars.onStartScope||this,this.vars.onStartParams||e))),s=this._firstPT;s;)s.f?s.t[s.p](s.c*this.ratio+s.s):s.t[s.p]=s.c*this.ratio+s.s,s=s._next;this._onUpdate&&(0>n&&this._startAt&&this._startTime&&this._startAt.render(n,t,i),t||(this._totalTime!==y||l)&&this._onUpdate.apply(this.vars.onUpdateScope||this,this.vars.onUpdateParams||e));this._cycle!==k&&(t||this._gc||this.vars.onRepeat&&this.vars.onRepeat.apply(this.vars.onRepeatScope||this,this.vars.onRepeatParams||e));h&&(!this._gc||i)&&(0>n&&this._startAt&&!this._onUpdate&&this._startTime&&this._startAt.render(n,t,i),l&&(this._timeline.autoRemoveChildren&&this._enabled(!1,!1),this._active=!1),!t&&this.vars[h]&&this.vars[h].apply(this.vars[h+"Scope"]||this,this.vars[h+"Params"]||e),0===u&&this._rawPrevTime===f&&w!==f&&(this._rawPrevTime=0))},r.to=function(n,t,i){return new r(n,t,i)},r.from=function(n,t,i){return i.runBackwards=!0,i.immediateRender=0!=i.immediateRender,new r(n,t,i)},r.fromTo=function(n,t,i,u){return u.startAt=i,u.immediateRender=0!=u.immediateRender&&0!=i.immediateRender,new r(n,t,u)},r.staggerTo=r.allTo=function(n,t,u,f,o,s,h){f=f||0;var p,y,c,w,b=u.delay||0,k=[],d=function(){u.onComplete&&u.onComplete.apply(u.onCompleteScope||this,arguments);o.apply(h||this,s||e)};for(v(n)||("string"==typeof n&&(n=i.selector(n)||n),a(n)&&(n=l(n))),p=n.length,c=0;p>c;c++){y={};for(w in u)y[w]=u[w];y.delay=b;c===p-1&&o&&(y.onComplete=d);k[c]=new r(n[c],t,y);b+=f}return k},r.staggerFrom=r.allFrom=function(n,t,i,u,f,e,o){return i.runBackwards=!0,i.immediateRender=0!=i.immediateRender,r.staggerTo(n,t,i,u,f,e,o)},r.staggerFromTo=r.allFromTo=function(n,t,i,u,f,e,o,s){return u.startAt=i,u.immediateRender=0!=u.immediateRender&&0!=i.immediateRender,r.staggerTo(n,t,u,f,e,o,s)},r.delayedCall=function(n,t,i,u,f){return new r(t,0,{delay:n,onComplete:t,onCompleteParams:i,onCompleteScope:u,onReverseComplete:t,onReverseCompleteParams:i,onReverseCompleteScope:u,immediateRender:!1,useFrames:f,overwrite:0})},r.set=function(n,t){return new r(n,0,t)},r.isTweening=function(n){return i.getTweensOf(n,!0).length>0},s=function(n,t){for(var u=[],f=0,r=n._first;r;)r instanceof i?u[f++]=r:(t&&(u[f++]=r),u=u.concat(s(r,t)),f=u.length),r=r._next;return u},h=r.getAllTweens=function(t){return s(n._rootTimeline,t).concat(s(n._rootFramesTimeline,t))},r.killAll=function(n,i,r,u){null==i&&(i=!0);null==r&&(r=!0);for(var o,f,s=h(0!=u),c=s.length,l=i&&r&&u,e=0;c>e;e++)f=s[e],(l||f instanceof t||(o=f.target===f.vars.onComplete)&&r||i&&!o)&&(n?f.totalTime(f._reversed?0:f.totalDuration()):f._enabled(!1,!1))},r.killChildTweensOf=function(n,t){if(null!=n){var f,e,s,u,c,h=o.tweenLookup;if("string"==typeof n&&(n=i.selector(n)||n),a(n)&&(n=l(n)),v(n))for(u=n.length;--u>-1;)r.killChildTweensOf(n[u],t);else{f=[];for(s in h)for(e=h[s].target.parentNode;e;)e===n&&(f=f.concat(h[s].tweens)),e=e.parentNode;for(c=f.length,u=0;c>u;u++)t&&f[u].totalTime(f[u].totalDuration()),f[u]._enabled(!1,!1)}}},c=function(n,i,r,u){i=i!==!1;r=r!==!1;u=u!==!1;for(var e,f,o=h(u),c=i&&r&&u,s=o.length;--s>-1;)f=o[s],(c||f instanceof t||(e=f.target===f.vars.onComplete)&&r||i&&!e)&&f.paused(n)},r.pauseAll=function(n,t,i){c(!0,n,t,i)},r.resumeAll=function(n,t,i){c(!1,n,t,i)},r.globalTimeScale=function(t){var r=n._rootTimeline,u=i.ticker.time;return arguments.length?(t=t||f,r._startTime=u-(u-r._startTime)*r._timeScale/t,r=n._rootFramesTimeline,u=i.ticker.frame,r._startTime=u-(u-r._startTime)*r._timeScale/t,r._timeScale=n._rootTimeline._timeScale=t,t):r._timeScale},u.progress=function(n){return arguments.length?this.totalTime(this.duration()*(this._yoyo&&0!=(1&this._cycle)?1-n:n)+this._cycle*(this._duration+this._repeatDelay),!1):this._time/this.duration()},u.totalProgress=function(n){return arguments.length?this.totalTime(this.totalDuration()*n,!1):this._totalTime/this.totalDuration()},u.time=function(n,t){return arguments.length?(this._dirty&&this.totalDuration(),n>this._duration&&(n=this._duration),this._yoyo&&0!=(1&this._cycle)?n=this._duration-n+this._cycle*(this._duration+this._repeatDelay):0!==this._repeat&&(n+=this._cycle*(this._duration+this._repeatDelay)),this.totalTime(n,t)):this._time},u.duration=function(t){return arguments.length?n.prototype.duration.call(this,t):this._duration},u.totalDuration=function(n){return arguments.length?-1===this._repeat?this:this.duration((n-this._repeat*this._repeatDelay)/(this._repeat+1)):(this._dirty&&(this._totalDuration=-1===this._repeat?999999999999:this._duration*(this._repeat+1)+this._repeatDelay*this._repeat,this._dirty=!1),this._totalDuration)},u.repeat=function(n){return arguments.length?(this._repeat=n,this._uncache(!0)):this._repeat},u.repeatDelay=function(n){return arguments.length?(this._repeatDelay=n,this._uncache(!0)):this._repeatDelay},u.yoyo=function(n){return arguments.length?(this._yoyo=n,this):this._yoyo},r},!0);_gsScope._gsDefine("TimelineLite",["core.Animation","core.SimpleTimeline","TweenLite"],function(n,t,i){var u=function(n){t.call(this,n);this._labels={};this.autoRemoveChildren=this.vars.autoRemoveChildren===!0;this.smoothChildTiming=this.vars.smoothChildTiming===!0;this._sortChildren=!0;this._onUpdate=this.vars.onUpdate;var r,u,i=this.vars;for(u in i)r=i[u],f(r)&&-1!==r.join("").indexOf("{self}")&&(i[u]=this._swapSelfInParams(r));f(i.tweens)&&this.add(i.tweens,0,i.align,i.stagger)},e=1e-10,o=i._internals,v=o.isSelector,f=o.isArray,c=o.lazyTweens,l=o.lazyRender,s=[],h=_gsScope._gsDefine.globals,a=function(n){var t,i={};for(t in n)i[t]=n[t];return i},y=function(n,t,i,r){n._timeline.pause(n._startTime);t&&t.apply(r||n._timeline,i||s)},p=function(n){for(var i=[],r=n.length,t=0;t!==r;i.push(n[t++]));return i},r=u.prototype=new t;return u.version="1.13.1",r.constructor=u,r.kill()._gc=!1,r.to=function(n,t,r,u){var f=r.repeat&&h.TweenMax||i;return t?this.add(new f(n,t,r),u):this.set(n,r,u)},r.from=function(n,t,r,u){return this.add((r.repeat&&h.TweenMax||i).from(n,t,r),u)},r.fromTo=function(n,t,r,u,f){var e=u.repeat&&h.TweenMax||i;return t?this.add(e.fromTo(n,t,r,u),f):this.set(n,u,f)},r.staggerTo=function(n,t,r,f,e,o,s,h){var c,l=new u({onComplete:o,onCompleteParams:s,onCompleteScope:h,smoothChildTiming:this.smoothChildTiming});for("string"==typeof n&&(n=i.selector(n)||n),v(n)&&(n=p(n)),f=f||0,c=0;n.length>c;c++)r.startAt&&(r.startAt=a(r.startAt)),l.to(n[c],t,a(r),c*f);return this.add(l,e)},r.staggerFrom=function(n,t,i,r,u,f,e,o){return i.immediateRender=0!=i.immediateRender,i.runBackwards=!0,this.staggerTo(n,t,i,r,u,f,e,o)},r.staggerFromTo=function(n,t,i,r,u,f,e,o,s){return r.startAt=i,r.immediateRender=0!=r.immediateRender&&0!=i.immediateRender,this.staggerTo(n,t,r,u,f,e,o,s)},r.call=function(n,t,r,u){return this.add(i.delayedCall(0,n,t,r),u)},r.set=function(n,t,r){return r=this._parseTimeOrLabel(r,0,!0),null==t.immediateRender&&(t.immediateRender=r===this._time&&!this._paused),this.add(new i(n,0,t),r)},u.exportRoot=function(n,t){n=n||{};null==n.smoothChildTiming&&(n.smoothChildTiming=!0);var r,o,f=new u(n),e=f._timeline;for(null==t&&(t=!0),e._remove(f,!0),f._startTime=0,f._rawPrevTime=f._time=f._totalTime=e._time,r=e._first;r;)o=r._next,t&&r instanceof i&&r.target===r.vars.onComplete||f.add(r,r._startTime-r._delay),r=o;return e.add(f,0),f},r.add=function(r,e,o,s){var l,v,a,h,c,y;if("number"!=typeof e&&(e=this._parseTimeOrLabel(e,0,!0,r)),!(r instanceof n)){if(r instanceof Array||r&&r.push&&f(r)){for(o=o||"normal",s=s||0,l=e,v=r.length,a=0;v>a;a++)f(h=r[a])&&(h=new u({tweens:h})),this.add(h,l),"string"!=typeof h&&"function"!=typeof h&&("sequence"===o?l=h._startTime+h.totalDuration()/h._timeScale:"start"===o&&(h._startTime-=h.delay())),l+=s;return this._uncache(!0)}if("string"==typeof r)return this.addLabel(r,e);if("function"!=typeof r)throw"Cannot add "+r+" into the timeline; it is not a tween, timeline, function, or string.";r=i.delayedCall(0,r)}if(t.prototype.add.call(this,r,e),(this._gc||this._time===this._duration)&&!this._paused&&this._duration<this.duration())for(c=this,y=c.rawTime()>r._startTime;c._timeline;)y&&c._timeline.smoothChildTiming?c.totalTime(c._totalTime,!0):c._gc&&c._enabled(!0,!1),c=c._timeline;return this},r.remove=function(t){if(t instanceof n)return this._remove(t,!1);if(t instanceof Array||t&&t.push&&f(t)){for(var i=t.length;--i>-1;)this.remove(t[i]);return this}return"string"==typeof t?this.removeLabel(t):this.kill(null,t)},r._remove=function(n,i){t.prototype._remove.call(this,n,i);var r=this._last;return r?this._time>r._startTime+r._totalDuration/r._timeScale&&(this._time=this.duration(),this._totalTime=this._totalDuration):this._time=this._totalTime=this._duration=this._totalDuration=0,this},r.append=function(n,t){return this.add(n,this._parseTimeOrLabel(null,t,!0,n))},r.insert=r.insertMultiple=function(n,t,i,r){return this.add(n,t||0,i,r)},r.appendMultiple=function(n,t,i,r){return this.add(n,this._parseTimeOrLabel(null,t,!0,n),i,r)},r.addLabel=function(n,t){return this._labels[n]=this._parseTimeOrLabel(t),this},r.addPause=function(n,t,i,r){return this.call(y,["{self}",t,i,r],this,n)},r.removeLabel=function(n){return delete this._labels[n],this},r.getLabelTime=function(n){return null!=this._labels[n]?this._labels[n]:-1},r._parseTimeOrLabel=function(t,i,r,u){var e;if(u instanceof n&&u.timeline===this)this.remove(u);else if(u&&(u instanceof Array||u.push&&f(u)))for(e=u.length;--e>-1;)u[e]instanceof n&&u[e].timeline===this&&this.remove(u[e]);if("string"==typeof i)return this._parseTimeOrLabel(i,r&&"number"==typeof t&&null==this._labels[i]?t-this.duration():0,r);if(i=i||0,"string"==typeof t&&(isNaN(t)||null!=this._labels[t])){if(e=t.indexOf("="),-1===e)return null==this._labels[t]?r?this._labels[t]=this.duration()+i:i:this._labels[t]+i;i=parseInt(t.charAt(e-1)+"1",10)*Number(t.substr(e+1));t=e>1?this._parseTimeOrLabel(t.substr(0,e-1),0,r):this.duration()}else null==t&&(t=this.duration());return Number(t)+i},r.seek=function(n,t){return this.totalTime("number"==typeof n?n:this._parseTimeOrLabel(n),t!==!1)},r.stop=function(){return this.paused(!0)},r.gotoAndPlay=function(n,t){return this.play(n,t)},r.gotoAndStop=function(n,t){return this.pause(n,t)},r.render=function(n,t,i){this._gc&&this._enabled(!0,!1);var r,v,o,u,h,a=this._dirty?this.totalDuration():this._totalDuration,f=this._time,p=this._startTime,w=this._timeScale,y=this._paused;if(n>=a?(this._totalTime=this._time=a,this._reversed||this._hasPausedChild()||(v=!0,u="onComplete",0===this._duration&&(0===n||0>this._rawPrevTime||this._rawPrevTime===e)&&this._rawPrevTime!==n&&this._first&&(h=!0,this._rawPrevTime>e&&(u="onReverseComplete"))),this._rawPrevTime=this._duration||!t||n||this._rawPrevTime===n?n:e,n=a+.0001):1e-7>n?(this._totalTime=this._time=0,(0!==f||0===this._duration&&this._rawPrevTime!==e&&(this._rawPrevTime>0||0>n&&this._rawPrevTime>=0))&&(u="onReverseComplete",v=this._reversed),0>n?(this._active=!1,this._rawPrevTime>=0&&this._first&&(h=!0),this._rawPrevTime=n):(this._rawPrevTime=this._duration||!t||n||this._rawPrevTime===n?n:e,n=0,this._initted||(h=!0))):this._totalTime=this._time=this._rawPrevTime=n,this._time!==f&&this._first||i||h){if(this._initted||(this._initted=!0),this._active||!this._paused&&this._time!==f&&n>0&&(this._active=!0),0===f&&this.vars.onStart&&0!==this._time&&(t||this.vars.onStart.apply(this.vars.onStartScope||this,this.vars.onStartParams||s)),this._time>=f)for(r=this._first;r&&(o=r._next,!this._paused||y);)(r._active||r._startTime<=this._time&&!r._paused&&!r._gc)&&(r._reversed?r.render((r._dirty?r.totalDuration():r._totalDuration)-(n-r._startTime)*r._timeScale,t,i):r.render((n-r._startTime)*r._timeScale,t,i)),r=o;else for(r=this._last;r&&(o=r._prev,!this._paused||y);)(r._active||f>=r._startTime&&!r._paused&&!r._gc)&&(r._reversed?r.render((r._dirty?r.totalDuration():r._totalDuration)-(n-r._startTime)*r._timeScale,t,i):r.render((n-r._startTime)*r._timeScale,t,i)),r=o;this._onUpdate&&(t||(c.length&&l(),this._onUpdate.apply(this.vars.onUpdateScope||this,this.vars.onUpdateParams||s)));u&&(this._gc||(p===this._startTime||w!==this._timeScale)&&(0===this._time||a>=this.totalDuration())&&(v&&(c.length&&l(),this._timeline.autoRemoveChildren&&this._enabled(!1,!1),this._active=!1),!t&&this.vars[u]&&this.vars[u].apply(this.vars[u+"Scope"]||this,this.vars[u+"Params"]||s)))}},r._hasPausedChild=function(){for(var n=this._first;n;){if(n._paused||n instanceof u&&n._hasPausedChild())return!0;n=n._next}return!1},r.getChildren=function(n,t,r,u){u=u||-9999999999;for(var e=[],f=this._first,o=0;f;)u>f._startTime||(f instanceof i?t!==!1&&(e[o++]=f):(r!==!1&&(e[o++]=f),n!==!1&&(e=e.concat(f.getChildren(!0,t,r)),o=e.length))),f=f._next;return e},r.getTweensOf=function(n,t){var r,u,f=this._gc,e=[],o=0;for(f&&this._enabled(!0,!0),r=i.getTweensOf(n),u=r.length;--u>-1;)(r[u].timeline===this||t&&this._contains(r[u]))&&(e[o++]=r[u]);return f&&this._enabled(!1,!0),e},r._contains=function(n){for(var t=n.timeline;t;){if(t===this)return!0;t=t.timeline}return!1},r.shiftChildren=function(n,t,i){i=i||0;for(var u,r=this._first,f=this._labels;r;)r._startTime>=i&&(r._startTime+=n),r=r._next;if(t)for(u in f)f[u]>=i&&(f[u]+=n);return this._uncache(!0)},r._kill=function(n,t){if(!n&&!t)return this._enabled(!1,!1);for(var i=t?this.getTweensOf(t):this.getChildren(!0,!0,!1),r=i.length,u=!1;--r>-1;)i[r]._kill(n,t)&&(u=!0);return u},r.clear=function(n){var t=this.getChildren(!1,!0,!0),i=t.length;for(this._time=this._totalTime=0;--i>-1;)t[i]._enabled(!1,!1);return n!==!1&&(this._labels={}),this._uncache(!0)},r.invalidate=function(){for(var n=this._first;n;)n.invalidate(),n=n._next;return this},r._enabled=function(n,i){if(n===this._gc)for(var r=this._first;r;)r._enabled(n,!0),r=r._next;return t.prototype._enabled.call(this,n,i)},r.duration=function(n){return arguments.length?(0!==this.duration()&&0!==n&&this.timeScale(this._duration/n),this):(this._dirty&&this.totalDuration(),this._duration)},r.totalDuration=function(n){if(!arguments.length){if(this._dirty){for(var f,r,i=0,t=this._last,u=999999999999;t;)f=t._prev,t._dirty&&t.totalDuration(),t._startTime>u&&this._sortChildren&&!t._paused?this.add(t,t._startTime-t._delay):u=t._startTime,0>t._startTime&&!t._paused&&(i-=t._startTime,this._timeline.smoothChildTiming&&(this._startTime+=t._startTime/this._timeScale),this.shiftChildren(-t._startTime,!1,-9999999999),u=0),r=t._startTime+t._totalDuration/t._timeScale,r>i&&(i=r),t=f;this._duration=this._totalDuration=i;this._dirty=!1}return this._totalDuration}return 0!==this.totalDuration()&&0!==n&&this.timeScale(this._totalDuration/n),this},r.usesFrames=function(){for(var t=this._timeline;t._timeline;)t=t._timeline;return t===n._rootFramesTimeline},r.rawTime=function(){return this._paused?this._totalTime:(this._timeline.rawTime()-this._startTime)*this._timeScale},u},!0);_gsScope._gsDefine("TimelineMax",["TimelineLite","TweenLite","easing.Ease"],function(n,t,i){var e=function(t){n.call(this,t);this._repeat=this.vars.repeat||0;this._repeatDelay=this.vars.repeatDelay||0;this._cycle=0;this._yoyo=this.vars.yoyo===!0;this._dirty=!0},f=1e-10,u=[],o=t._internals,s=o.lazyTweens,h=o.lazyRender,c=new i(null,null,1,0),r=e.prototype=new n;return r.constructor=e,r.kill()._gc=!1,e.version="1.13.1",r.invalidate=function(){return this._yoyo=this.vars.yoyo===!0,this._repeat=this.vars.repeat||0,this._repeatDelay=this.vars.repeatDelay||0,this._uncache(!0),n.prototype.invalidate.call(this)},r.addCallback=function(n,i,r,u){return this.add(t.delayedCall(0,n,r,u),i)},r.removeCallback=function(n,t){if(n)if(null==t)this._kill(null,n);else for(var i=this.getTweensOf(n,!1),r=i.length,u=this._parseTimeOrLabel(t);--r>-1;)i[r]._startTime===u&&i[r]._enabled(!1,!1);return this},r.tweenTo=function(n,i){i=i||{};var e,o,r,f={ease:c,overwrite:i.delay?2:1,useFrames:this.usesFrames(),immediateRender:!1};for(o in i)f[o]=i[o];return f.time=this._parseTimeOrLabel(n),e=Math.abs(Number(f.time)-this._time)/this._timeScale||.001,r=new t(this,e,f),f.onStart=function(){r.target.paused(!0);r.vars.time!==r.target.time()&&e===r.duration()&&r.duration(Math.abs(r.vars.time-r.target.time())/r.target._timeScale);i.onStart&&i.onStart.apply(i.onStartScope||r,i.onStartParams||u)},r},r.tweenFromTo=function(n,t,i){i=i||{};n=this._parseTimeOrLabel(n);i.startAt={onComplete:this.seek,onCompleteParams:[n],onCompleteScope:this};i.immediateRender=i.immediateRender!==!1;var r=this.tweenTo(t,i);return r.duration(Math.abs(r.vars.time-n)/this._timeScale||.001)},r.render=function(n,t,i){this._gc&&this._enabled(!0,!1);var r,b,p,l,a,w,k=this._dirty?this.totalDuration():this._totalDuration,e=this._duration,c=this._time,d=this._totalTime,nt=this._startTime,tt=this._timeScale,o=this._rawPrevTime,g=this._paused,v=this._cycle;if(n>=k?(this._locked||(this._totalTime=k,this._cycle=this._repeat),this._reversed||this._hasPausedChild()||(b=!0,l="onComplete",0===this._duration&&(0===n||0>o||o===f)&&o!==n&&this._first&&(a=!0,o>f&&(l="onReverseComplete"))),this._rawPrevTime=this._duration||!t||n||this._rawPrevTime===n?n:f,this._yoyo&&0!=(1&this._cycle)?this._time=n=0:(this._time=e,n=e+.0001)):1e-7>n?(this._locked||(this._totalTime=this._cycle=0),this._time=0,(0!==c||0===e&&o!==f&&(o>0||0>n&&o>=0)&&!this._locked)&&(l="onReverseComplete",b=this._reversed),0>n?(this._active=!1,o>=0&&this._first&&(a=!0),this._rawPrevTime=n):(this._rawPrevTime=e||!t||n||this._rawPrevTime===n?n:f,n=0,this._initted||(a=!0))):(0===e&&0>o&&(a=!0),this._time=this._rawPrevTime=n,this._locked||(this._totalTime=n,0!==this._repeat&&(w=e+this._repeatDelay,this._cycle=this._totalTime/w>>0,0!==this._cycle&&this._cycle===this._totalTime/w&&this._cycle--,this._time=this._totalTime-this._cycle*w,this._yoyo&&0!=(1&this._cycle)&&(this._time=e-this._time),this._time>e?(this._time=e,n=e+.0001):0>this._time?this._time=n=0:n=this._time))),this._cycle!==v&&!this._locked){var y=this._yoyo&&0!=(1&v),it=y===(this._yoyo&&0!=(1&this._cycle)),rt=this._totalTime,ut=this._cycle,ft=this._rawPrevTime,et=this._time;if(this._totalTime=v*e,v>this._cycle?y=!y:this._totalTime+=e,this._time=c,this._rawPrevTime=0===e?o-.0001:o,this._cycle=v,this._locked=!0,c=y?0:e,this.render(c,t,0===e),t||this._gc||this.vars.onRepeat&&this.vars.onRepeat.apply(this.vars.onRepeatScope||this,this.vars.onRepeatParams||u),it&&(c=y?e+.0001:-.0001,this.render(c,!0,!1)),this._locked=!1,this._paused&&!g)return;this._time=et;this._totalTime=rt;this._cycle=ut;this._rawPrevTime=ft}if(!(this._time!==c&&this._first||i||a))return d!==this._totalTime&&this._onUpdate&&(t||this._onUpdate.apply(this.vars.onUpdateScope||this,this.vars.onUpdateParams||u)),void 0;if(this._initted||(this._initted=!0),this._active||!this._paused&&this._totalTime!==d&&n>0&&(this._active=!0),0===d&&this.vars.onStart&&0!==this._totalTime&&(t||this.vars.onStart.apply(this.vars.onStartScope||this,this.vars.onStartParams||u)),this._time>=c)for(r=this._first;r&&(p=r._next,!this._paused||g);)(r._active||r._startTime<=this._time&&!r._paused&&!r._gc)&&(r._reversed?r.render((r._dirty?r.totalDuration():r._totalDuration)-(n-r._startTime)*r._timeScale,t,i):r.render((n-r._startTime)*r._timeScale,t,i)),r=p;else for(r=this._last;r&&(p=r._prev,!this._paused||g);)(r._active||c>=r._startTime&&!r._paused&&!r._gc)&&(r._reversed?r.render((r._dirty?r.totalDuration():r._totalDuration)-(n-r._startTime)*r._timeScale,t,i):r.render((n-r._startTime)*r._timeScale,t,i)),r=p;this._onUpdate&&(t||(s.length&&h(),this._onUpdate.apply(this.vars.onUpdateScope||this,this.vars.onUpdateParams||u)));l&&(this._locked||this._gc||(nt===this._startTime||tt!==this._timeScale)&&(0===this._time||k>=this.totalDuration())&&(b&&(s.length&&h(),this._timeline.autoRemoveChildren&&this._enabled(!1,!1),this._active=!1),!t&&this.vars[l]&&this.vars[l].apply(this.vars[l+"Scope"]||this,this.vars[l+"Params"]||u)))},r.getActive=function(n,t,i){null==n&&(n=!0);null==t&&(t=!0);null==i&&(i=!1);for(var u,f=[],e=this.getChildren(n,t,i),o=0,s=e.length,r=0;s>r;r++)u=e[r],u.isActive()&&(f[o++]=u);return f},r.getLabelAfter=function(n){n||0!==n&&(n=this._time);for(var i=this.getLabelsArray(),r=i.length,t=0;r>t;t++)if(i[t].time>n)return i[t].name;return null},r.getLabelBefore=function(n){null==n&&(n=this._time);for(var t=this.getLabelsArray(),i=t.length;--i>-1;)if(n>t[i].time)return t[i].name;return null},r.getLabelsArray=function(){var n,t=[],i=0;for(n in this._labels)t[i++]={time:this._labels[n],name:n};return t.sort(function(n,t){return n.time-t.time}),t},r.progress=function(n){return arguments.length?this.totalTime(this.duration()*(this._yoyo&&0!=(1&this._cycle)?1-n:n)+this._cycle*(this._duration+this._repeatDelay),!1):this._time/this.duration()},r.totalProgress=function(n){return arguments.length?this.totalTime(this.totalDuration()*n,!1):this._totalTime/this.totalDuration()},r.totalDuration=function(t){return arguments.length?-1===this._repeat?this:this.duration((t-this._repeat*this._repeatDelay)/(this._repeat+1)):(this._dirty&&(n.prototype.totalDuration.call(this),this._totalDuration=-1===this._repeat?999999999999:this._duration*(this._repeat+1)+this._repeatDelay*this._repeat),this._totalDuration)},r.time=function(n,t){return arguments.length?(this._dirty&&this.totalDuration(),n>this._duration&&(n=this._duration),this._yoyo&&0!=(1&this._cycle)?n=this._duration-n+this._cycle*(this._duration+this._repeatDelay):0!==this._repeat&&(n+=this._cycle*(this._duration+this._repeatDelay)),this.totalTime(n,t)):this._time},r.repeat=function(n){return arguments.length?(this._repeat=n,this._uncache(!0)):this._repeat},r.repeatDelay=function(n){return arguments.length?(this._repeatDelay=n,this._uncache(!0)):this._repeatDelay},r.yoyo=function(n){return arguments.length?(this._yoyo=n,this):this._yoyo},r.currentLabel=function(n){return arguments.length?this.seek(n,!0):this.getLabelBefore(this._time+1e-8)},e},!0),function(){var h=180/Math.PI,n=[],t=[],i=[],f={},u=function(n,t,i,r){this.a=n;this.b=t;this.c=i;this.d=r;this.da=r-n;this.ca=i-n;this.ba=t-n},c=",x,y,z,left,top,right,bottom,marginTop,marginLeft,marginRight,marginBottom,paddingLeft,paddingTop,paddingRight,paddingBottom,backgroundPosition,backgroundPosition_y,",e=function(n,t,i,r){var e={a:n},u={},f={},o={c:r},s=(n+t)/2,a=(t+i)/2,h=(i+r)/2,c=(s+a)/2,l=(a+h)/2,v=(l-c)/8;return e.b=s+(n-s)/4,u.b=c+v,e.c=u.a=(e.b+u.b)/2,u.c=f.a=(c+l)/2,f.b=l-v,o.b=h+(r-h)/4,f.c=o.a=(f.b+o.b)/2,[e,u,f,o]},l=function(r,u,f,o,s){for(var y,c,nt,h,p,b,g,tt,l,k,d,it,rt=r.length-1,w=0,a=r[0].a,v=0;rt>v;v++)h=r[w],y=h.a,c=h.d,nt=r[w+1].d,s?(k=n[v],d=t[v],it=.25*(d+k)*u/(o?.5:i[v]||.5),p=c-(c-y)*(o?.5*u:0!==k?it/k:0),b=c+(nt-c)*(o?.5*u:0!==d?it/d:0),g=c-(p+((b-p)*(3*k/(k+d)+.5)/4||0))):(p=c-.5*(c-y)*u,b=c+.5*(nt-c)*u,g=c-(p+b)/2),p+=g,b+=g,h.c=tt=p,h.b=0!==v?a:a=h.a+.6*(h.c-h.a),h.da=c-y,h.ca=tt-y,h.ba=a-y,f?(l=e(y,a,tt,c),r.splice(w,1,l[0],l[1],l[2],l[3]),w+=4):w++,a=b;h=r[w];h.b=a;h.c=a+.4*(h.d-a);h.da=h.d-h.a;h.ca=h.c-h.a;h.ba=a-h.a;f&&(l=e(h.a,a,h.c,h.d),r.splice(w,1,l[0],l[1],l[2],l[3]))},a=function(i,r,f,e){var c,o,l,s,v,a,h=[];if(e)for(i=[e].concat(i),o=i.length;--o>-1;)"string"==typeof(a=i[o][r])&&"="===a.charAt(1)&&(i[o][r]=e[r]+Number(a.charAt(0)+a.substr(2)));if(c=i.length-2,0>c)return h[0]=new u(i[0][r],0,0,i[-1>c?0:1][r]),h;for(o=0;c>o;o++)l=i[o][r],s=i[o+1][r],h[o]=new u(l,0,0,s),f&&(v=i[o+2][r],n[o]=(n[o]||0)+(s-l)*(s-l),t[o]=(t[o]||0)+(v-s)*(v-s));return h[o]=new u(i[o][r],0,0,i[o+1][r]),h},o=function(r,u,e,o,s,h){var v,y,w,p,g,nt,k,tt,d={},b=[],it=h||r[0];s="string"==typeof s?","+s+",":c;null==u&&(u=1);for(y in r[0])b.push(y);if(r.length>1){for(tt=r[r.length-1],k=!0,v=b.length;--v>-1;)if(y=b[v],Math.abs(it[y]-tt[y])>.05){k=!1;break}k&&(r=r.concat(),h&&r.unshift(h),r.push(r[1]),h=r[r.length-3])}for(n.length=t.length=i.length=0,v=b.length;--v>-1;)y=b[v],f[y]=-1!==s.indexOf(","+y+","),d[y]=a(r,y,f[y],h);for(v=n.length;--v>-1;)n[v]=Math.sqrt(n[v]),t[v]=Math.sqrt(t[v]);if(!o){for(v=b.length;--v>-1;)if(f[y])for(w=d[b[v]],nt=w.length-1,p=0;nt>p;p++)g=w[p+1].da/t[p]+w[p].da/n[p],i[p]=(i[p]||0)+g*g;for(v=i.length;--v>-1;)i[v]=Math.sqrt(i[v])}for(v=b.length,p=e?4:1;--v>-1;)y=b[v],w=d[y],l(w,u,e,o,f[y]),k&&(w.splice(0,p),w.splice(w.length-p,p));return d},v=function(n,t,i){t=t||"soft";var o,a,v,w,f,y,r,c,s,e,h,b={},l="cubic"===t?3:2,k="soft"===t,p=[];if(k&&i&&(n=[i].concat(n)),null==n||l+1>n.length)throw"invalid Bezier data";for(s in n[0])p.push(s);for(y=p.length;--y>-1;){for(s=p[y],b[s]=f=[],e=0,c=n.length,r=0;c>r;r++)o=null==i?n[r][s]:"string"==typeof(h=n[r][s])&&"="===h.charAt(1)?i[s]+Number(h.charAt(0)+h.substr(2)):Number(h),k&&r>1&&c-1>r&&(f[e++]=(o+f[e-2])/2),f[e++]=o;for(c=e-l+1,e=0,r=0;c>r;r+=l)o=f[r],a=f[r+1],v=f[r+2],w=2===l?0:f[r+3],f[e++]=h=3===l?new u(o,a,v,w):new u(o,(2*a+o)/3,(2*a+v)/3,v);f.length=e}return b},y=function(n,t,i){for(var e,s,o,a,v,y,r,u,h,f,c,p=1/i,l=n.length;--l>-1;)for(f=n[l],o=f.a,a=f.d-o,v=f.c-o,y=f.b-o,e=s=0,u=1;i>=u;u++)r=p*u,h=1-r,e=s-(s=(r*r*a+3*h*(r*v+h*y))*r),c=l*i+u-1,t[c]=(t[c]||0)+e*e},p=function(n,t){t=t>>0||6;var s,i,h,r,f=[],c=[],u=0,e=0,a=t-1,l=[],o=[];for(s in n)y(n[s],f,t);for(h=f.length,i=0;h>i;i++)u+=Math.sqrt(f[i]),r=i%t,o[r]=u,r===a&&(e+=u,r=i/t>>0,l[r]=o,c[r]=e,u=0,o=[]);return{length:e,lengths:c,segments:l}},r=_gsScope._gsDefine.plugin({propName:"bezier",priority:-1,version:"1.3.3",API:2,global:!0,init:function(n,t,i){var c;this._target=n;t instanceof Array&&(t={values:t});this._func={};this._round={};this._props=[];this._timeRes=null==t.timeResolution?6:parseInt(t.timeResolution,10);var r,a,f,e,l,s=t.values||[],h={},y=s[0],u=t.autoRotate||i.vars.orientToBezier;this._autoRotate=u?u instanceof Array?u:[["x","y","rotation",u===!0?0:Number(u)||0]]:null;for(r in y)this._props.push(r);for(f=this._props.length;--f>-1;)r=this._props[f],this._overwriteProps.push(r),a=this._func[r]="function"==typeof n[r],h[r]=a?n[r.indexOf("set")||"function"!=typeof n["get"+r.substr(3)]?r:"get"+r.substr(3)]():parseFloat(n[r]),l||h[r]!==s[0][r]&&(l=h);if((this._beziers="cubic"!==t.type&&"quadratic"!==t.type&&"soft"!==t.type?o(s,isNaN(t.curviness)?1:t.curviness,!1,"thruBasic"===t.type,t.correlate,l):v(s,t.type,h),this._segCount=this._beziers[r].length,this._timeRes)&&(c=p(this._beziers,this._timeRes),this._length=c.length,this._lengths=c.lengths,this._segments=c.segments,this._l1=this._li=this._s1=this._si=0,this._l2=this._lengths[0],this._curSeg=this._segments[0],this._s2=this._curSeg[0],this._prec=1/this._curSeg.length),u=this._autoRotate)for(this._initialRotations=[],u[0]instanceof Array||(this._autoRotate=u=[u]),f=u.length;--f>-1;){for(e=0;3>e;e++)r=u[f][e],this._func[r]="function"==typeof n[r]?n[r.indexOf("set")||"function"!=typeof n["get"+r.substr(3)]?r:"get"+r.substr(3)]:!1;r=u[f][2];this._initialRotations[f]=this._func[r]?this._func[r].call(this._target):this._target[r]}return this._startRatio=i.vars.runBackwards?1:0,!0},set:function(n){var c,d,t,e,i,r,o,p,a,u,l=this._segCount,g=this._func,w=this._target,it=n!==this._startRatio,f,b,k,v,y,nt,tt,s;if(this._timeRes){if(a=this._lengths,u=this._curSeg,n*=this._length,t=this._li,n>this._l2&&l-1>t){for(p=l-1;p>t&&n>=(this._l2=a[++t]););this._l1=a[t-1];this._li=t;this._curSeg=u=this._segments[t];this._s2=u[this._s1=this._si=0]}else if(this._l1>n&&t>0){for(;t>0&&(this._l1=a[--t])>=n;);0===t&&this._l1>n?this._l1=0:t++;this._l2=a[t];this._li=t;this._curSeg=u=this._segments[t];this._s1=u[(this._si=u.length-1)-1]||0;this._s2=u[this._si]}if(c=t,n-=this._l1,t=this._si,n>this._s2&&u.length-1>t){for(p=u.length-1;p>t&&n>=(this._s2=u[++t]););this._s1=u[t-1];this._si=t}else if(this._s1>n&&t>0){for(;t>0&&(this._s1=u[--t])>=n;);0===t&&this._s1>n?this._s1=0:t++;this._s2=u[t];this._si=t}r=(t+(n-this._s1)/(this._s2-this._s1))*this._prec}else c=0>n?0:n>=1?l-1:l*n>>0,r=(n-c*(1/l))*l;for(d=1-r,t=this._props.length;--t>-1;)e=this._props[t],i=this._beziers[e][c],o=(r*r*i.da+3*d*(r*i.ca+d*i.ba))*r+i.a,this._round[e]&&(o=Math.round(o)),g[e]?w[e](o):w[e]=o;if(this._autoRotate)for(s=this._autoRotate,t=s.length;--t>-1;)e=s[t][2],nt=s[t][3]||0,tt=s[t][4]===!0?1:h,i=this._beziers[s[t][0]],f=this._beziers[s[t][1]],i&&f&&(i=i[c],f=f[c],b=i.a+(i.b-i.a)*r,v=i.b+(i.c-i.b)*r,b+=(v-b)*r,v+=(i.c+(i.d-i.c)*r-v)*r,k=f.a+(f.b-f.a)*r,y=f.b+(f.c-f.b)*r,k+=(y-k)*r,y+=(f.c+(f.d-f.c)*r-y)*r,o=it?Math.atan2(y-k,v-b)*tt+nt:this._initialRotations[t],g[e]?w[e](o):w[e]=o)}}),s=r.prototype;r.bezierThrough=o;r.cubicToQuadratic=e;r._autoCSS=!0;r.quadraticToCubic=function(n,t,i){return new u(n,(2*t+n)/3,(2*t+i)/3,i)};r._cssRegister=function(){var t=_gsScope._gsDefine.globals.CSSPlugin;if(t){var n=t._internals,i=n._parseToProxy,u=n._setPluginRatio,f=n.CSSPropTween;n._registerComplexSpecialProp("bezier",{parser:function(n,t,e,o,s,h){t instanceof Array&&(t={values:t});h=new r;var l,v,a,p=t.values,y=p.length-1,w=[],c={};if(0>y)return s;for(l=0;y>=l;l++)a=i(n,p[l],o,s,h,y!==l),w[l]=a.end;for(v in t)c[v]=t[v];return c.values=w,s=new f(n,"bezier",0,0,a.pt,2),s.data=a,s.plugin=h,s.setRatio=u,0===c.autoRotate&&(c.autoRotate=!0),!c.autoRotate||c.autoRotate instanceof Array||(l=c.autoRotate===!0?0:Number(c.autoRotate),c.autoRotate=null!=a.end.left?[["left","top","rotation",l,!1]]:null!=a.end.x?[["x","y","rotation",l,!1]]:!1),c.autoRotate&&(o._transform||o._enableTransforms(!1),a.autoRotate=o._target._gsTransform),h._onInitTween(a.proxy,c,o._tween),s}})}};s._roundProps=function(n,t){for(var i=this._overwriteProps,r=i.length;--r>-1;)(n[i[r]]||n.bezier||n.bezierThrough)&&(this._round[i[r]]=t)};s._kill=function(n){var t,i,r=this._props;for(t in this._beziers)if(t in n)for(delete this._beziers[t],delete this._func[t],i=r.length;--i>-1;)r[i]===t&&r.splice(i,1);return this._super._kill.call(this,n)}}();_gsScope._gsDefine("plugins.CSSPlugin",["plugins.TweenPlugin","TweenLite"],function(n,t){var rt,lt,f,bt,e=function(){n.call(this,"css");this._overwriteProps.length=0;this.setRatio=e.prototype.setRatio},l={},i=e.prototype=new n("css"),hr,wt,cr,lr,ar,ct;i.constructor=e;e.version="1.13.1";e.API=2;e.defaultTransformPerspective=0;e.defaultSkewType="compensated";i="px";e.suffixMap={top:i,right:i,bottom:i,left:i,width:i,height:i,fontSize:i,padding:i,margin:i,perspective:i,lineHeight:""};var kt,ai,dt,vi,yi,ut,at=/(?:\d|\-\d|\.\d|\-\.\d)+/g,pi=/(?:\d|\-\d|\.\d|\-\.\d|\+=\d|\-=\d|\+=.\d|\-=\.\d)+/g,gt=/(?:\+=|\-=|\-|\b)[\d\-\.]+[a-zA-Z0-9]*(?:%|\b)/gi,vt=/[^\d\-\.]/g,ni=/(?:\d|\-|\+|=|#|\.)*/g,ti=/opacity *= *([^)]*)/i,vr=/opacity:([^;]*)/i,yr=/alpha\(opacity *=.+?\)/i,wi=/^(rgb|hsl)/,bi=/([A-Z])/g,ki=/-([a-z])/gi,pr=/(^(?:url\(\"|url\())|(?:(\"\))$|\)$)/gi,di=function(n,t){return t.toUpperCase()},wr=/(?:Left|Right|Width)/i,br=/(M11|M12|M21|M22)=[\d\-\.e]+/gi,kr=/progid\:DXImageTransform\.Microsoft\.Matrix\(.+?\)/i,a=/,(?=[^\)]*(?:\(|$))/gi,v=Math.PI/180,g=180/Math.PI,yt={},k=document,w=k.createElement("div"),ii=k.createElement("img"),y=e._internals={_specialProps:l},d=navigator.userAgent,nt=function(){var n,t=d.indexOf("Android"),i=k.createElement("div");return dt=-1!==d.indexOf("Safari")&&-1===d.indexOf("Chrome")&&(-1===t||Number(d.substr(t+8,1))>3),yi=dt&&6>Number(d.substr(d.indexOf("Version/")+8,1)),vi=-1!==d.indexOf("Firefox"),/MSIE ([0-9]{1,}[\.0-9]{0,})/.exec(d)&&(ut=parseFloat(RegExp.$1)),i.innerHTML="<a style='top:1px;opacity:.55;'>a<\/a>",n=i.getElementsByTagName("a")[0],n?/^0.55/.test(n.style.opacity):!1}(),gi=function(n){return ti.test("string"==typeof n?n:(n.currentStyle?n.currentStyle.filter:n.style.filter)||"")?parseFloat(RegExp.$1)/100:1},nr=function(n){window.console&&console.log(n)},tr="",ri="",ft=function(n,t){t=t||w;var r,i,u=t.style;if(void 0!==u[n])return n;for(n=n.charAt(0).toUpperCase()+n.substr(1),r=["O","Moz","ms","Ms","Webkit"],i=5;--i>-1&&void 0===u[r[i]+n];);return i>=0?(ri=3===i?"ms":r[i],tr="-"+ri.toLowerCase()+"-",ri+n):null},et=k.defaultView?k.defaultView.getComputedStyle:function(){},r=e.getStyle=function(n,t,i,r,u){var f;return nt||"opacity"!==t?(!r&&n.style[t]?f=n.style[t]:(i=i||et(n))?f=i[t]||i.getPropertyValue(t)||i.getPropertyValue(t.replace(bi,"-$1").toLowerCase()):n.currentStyle&&(f=n.currentStyle[t]),null==u||f&&"none"!==f&&"auto"!==f&&"auto auto"!==f?f:u):gi(n)},p=y.convertToPixels=function(n,i,u,f,o){if("px"===f||!f)return u;if("auto"===f||!u)return 0;var s,h,a,l=wr.test(i),c=n,v=w.style,y=0>u;if(y&&(u=-u),"%"===f&&-1!==i.indexOf("border"))s=u/100*(l?n.clientWidth:n.clientHeight);else{if(v.cssText="border:0 solid red;position:"+r(n,"position")+";line-height:0;","%"!==f&&c.appendChild)v[l?"borderLeftWidth":"borderTopWidth"]=u+f;else{if(c=n.parentNode||k.body,h=c._gsCache,a=t.ticker.frame,h&&l&&h.time===a)return h.width*u/100;v[l?"width":"height"]=u+f}c.appendChild(w);s=parseFloat(w[l?"offsetWidth":"offsetHeight"]);c.removeChild(w);l&&"%"===f&&e.cacheWidths!==!1&&(h=c._gsCache=c._gsCache||{},h.time=a,h.width=100*(s/u));0!==s||o||(s=p(n,i,u,f,!0))}return y?-s:s},ir=y.calculateOffset=function(n,t,i){if("absolute"!==r(n,"position",i))return 0;var u="left"===t?"Left":"Top",f=r(n,"margin"+u,i);return n["offset"+u]-(p(n,t,parseFloat(f),f.replace(ni,""))||0)},ot=function(n,t){var r,u,i={};if(t=t||et(n,null))if(r=t.length)for(;--r>-1;)i[t[r].replace(ki,di)]=t.getPropertyValue(t[r]);else for(r in t)i[r]=t[r];else if(t=n.currentStyle||n.style)for(r in t)"string"==typeof r&&void 0===i[r]&&(i[r.replace(ki,di)]=t[r]);return nt||(i.opacity=gi(n)),u=ht(n,t,!1),i.rotation=u.rotation,i.skewX=u.skewX,i.scaleX=u.scaleX,i.scaleY=u.scaleY,i.x=u.x,i.y=u.y,b&&(i.z=u.z,i.rotationX=u.rotationX,i.rotationY=u.rotationY,i.scaleZ=u.scaleZ),i.filters&&delete i.filters,i},ui=function(n,t,i,r,u){var e,f,o,s={},h=n.style;for(f in i)"cssText"!==f&&"length"!==f&&isNaN(f)&&(t[f]!==(e=i[f])||u&&u[f])&&-1===f.indexOf("Origin")&&("number"==typeof e||"string"==typeof e)&&(s[f]="auto"!==e||"left"!==f&&"top"!==f?""!==e&&"auto"!==e&&"none"!==e||"string"!=typeof t[f]||""===t[f].replace(vt,"")?e:0:ir(n,f),void 0!==h[f]&&(o=new hi(h,f,h[f],o)));if(r)for(f in r)"className"!==f&&(s[f]=r[f]);return{difs:s,firstMPT:o}},dr={width:["Left","Right"],height:["Top","Bottom"]},gr=["marginLeft","marginRight","marginTop","marginBottom"],nu=function(n,t,i){var u=parseFloat("width"===t?n.offsetWidth:n.offsetHeight),f=dr[t],e=f.length;for(i=i||et(n,null);--e>-1;)u-=parseFloat(r(n,"padding"+f[e],i,!0))||0,u-=parseFloat(r(n,"border"+f[e]+"Width",i,!0))||0;return u},fi=function(n,t){(null==n||""===n||"auto"===n||"auto auto"===n)&&(n="0 0");var u=n.split(" "),i=-1!==n.indexOf("left")?"0%":-1!==n.indexOf("right")?"100%":u[0],r=-1!==n.indexOf("top")?"0%":-1!==n.indexOf("bottom")?"100%":u[1];return null==r?r="0":"center"===r&&(r="50%"),("center"===i||isNaN(parseFloat(i))&&-1===(i+"").indexOf("="))&&(i="50%"),t&&(t.oxp=-1!==i.indexOf("%"),t.oyp=-1!==r.indexOf("%"),t.oxr="="===i.charAt(1),t.oyr="="===r.charAt(1),t.ox=parseFloat(i.replace(vt,"")),t.oy=parseFloat(r.replace(vt,""))),i+" "+r+(u.length>2?" "+u[2]:"")},rr=function(n,t){return"string"==typeof n&&"="===n.charAt(1)?parseInt(n.charAt(0)+"1",10)*parseFloat(n.substr(2)):parseFloat(n)-parseFloat(t)},h=function(n,t){return null==n?t:"string"==typeof n&&"="===n.charAt(1)?parseInt(n.charAt(0)+"1",10)*Number(n.substr(2))+t:parseFloat(n)},st=function(n,t,i,r){var f,o,u,e,s=1e-6;return null==n?e=t:"number"==typeof n?e=n:(f=360,o=n.split("_"),u=Number(o[0].replace(vt,""))*(-1===n.indexOf("rad")?1:g)-("="===n.charAt(1)?0:t),o.length&&(r&&(r[i]=t+u),-1!==n.indexOf("short")&&(u%=f,u!==u%(f/2)&&(u=0>u?u+f:u-f)),-1!==n.indexOf("_cw")&&0>u?u=(u+9999999999*f)%f-(0|u/f)*f:-1!==n.indexOf("ccw")&&u>0&&(u=(u-9999999999*f)%f-(0|u/f)*f)),e=t+u),s>e&&e>-s&&(e=0),e},tt={aqua:[0,255,255],lime:[0,255,0],silver:[192,192,192],black:[0,0,0],maroon:[128,0,0],teal:[0,128,128],blue:[0,0,255],navy:[0,0,128],white:[255,255,255],fuchsia:[255,0,255],olive:[128,128,0],yellow:[255,255,0],orange:[255,165,0],gray:[128,128,128],purple:[128,0,128],green:[0,128,0],red:[255,0,0],pink:[255,192,203],cyan:[0,255,255],transparent:[255,255,255,0]},ei=function(n,t,i){return n=0>n?n+1:n>1?n-1:n,0|255*(1>6*n?t+6*(i-t)*n:.5>n?i:2>3*n?t+6*(i-t)*(2/3-n):t)+.5},oi=function(n){var i,t,e,u,f,r;return n&&""!==n?"number"==typeof n?[n>>16,255&n>>8,255&n]:(","===n.charAt(n.length-1)&&(n=n.substr(0,n.length-1)),tt[n]?tt[n]:"#"===n.charAt(0)?(4===n.length&&(i=n.charAt(1),t=n.charAt(2),e=n.charAt(3),n="#"+i+i+t+t+e+e),n=parseInt(n.substr(1),16),[n>>16,255&n>>8,255&n]):"hsl"===n.substr(0,3)?(n=n.match(at),u=Number(n[0])%360/360,f=Number(n[1])/100,r=Number(n[2])/100,t=.5>=r?r*(f+1):r+f-r*f,i=2*r-t,n.length>3&&(n[3]=Number(n[3])),n[0]=ei(u+1/3,i,t),n[1]=ei(u,i,t),n[2]=ei(u-1/3,i,t),n):(n=n.match(at)||tt.transparent,n[0]=Number(n[0]),n[1]=Number(n[1]),n[2]=Number(n[2]),n.length>3&&(n[3]=Number(n[3])),n)):tt.black},it="(?:\\b(?:(?:rgb|rgba|hsl|hsla)\\(.+?\\))|\\B#.+?\\b";for(i in tt)it+="|"+i+"\\b";it=RegExp(it+")","gi");var ur=function(n,t,i,r){if(null==n)return function(n){return n};var e,s=t?(n.match(it)||[""])[0]:"",f=n.split(s).join("").match(gt)||[],h=n.substr(0,n.indexOf(f[0])),c=")"===n.charAt(n.length-1)?")":"",o=-1!==n.indexOf(" ")?" ":",",u=f.length,l=u>0?f[0].replace(at,""):"";return u?e=t?function(n){var p,v,t,y;if("number"==typeof n)n+=l;else if(r&&a.test(n)){for(y=n.replace(a,"|").split("|"),t=0;y.length>t;t++)y[t]=e(y[t]);return y.join(",")}if(p=(n.match(it)||[s])[0],v=n.split(p).join("").match(gt)||[],t=v.length,u>t--)for(;u>++t;)v[t]=i?v[0|(t-1)/2]:f[t];return h+v.join(o)+o+p+c+(-1!==n.indexOf("inset")?" inset":"")}:function(n){var s,v,t;if("number"==typeof n)n+=l;else if(r&&a.test(n)){for(v=n.replace(a,"|").split("|"),t=0;v.length>t;t++)v[t]=e(v[t]);return v.join(",")}if(s=n.match(gt)||[],t=s.length,u>t--)for(;u>++t;)s[t]=i?s[0|(t-1)/2]:f[t];return h+s.join(o)+c}:function(n){return n}},si=function(n){return n=n.split(","),function(t,i,r,u,f,e,o){var s,h=(i+"").split(" ");for(o={},s=0;4>s;s++)o[n[s]]=h[s]=h[s]||h[(s-1)/2>>0];return u.parse(t,o,f,e)}},hi=(y._setPluginRatio=function(n){this.plugin.setRatio(n);for(var r,t,u,e,f=this.data,o=f.proxy,i=f.firstMPT,s=1e-6;i;)r=o[i.v],i.r?r=Math.round(r):s>r&&r>-s&&(r=0),i.t[i.p]=r,i=i._next;if(f.autoRotate&&(f.autoRotate.rotation=o.rotation),1===n)for(i=f.firstMPT;i;){if(t=i.t,t.type){if(1===t.type){for(e=t.xs0+t.s+t.xs1,u=1;t.l>u;u++)e+=t["xn"+u]+t["xs"+(u+1)];t.e=e}}else t.e=t.s+t.xs0;i=i._next}},function(n,t,i,r,u){this.t=n;this.p=t;this.v=i;this.r=u;r&&(r._prev=this,this._next=r)}),o=(y._parseToProxy=function(n,t,i,r,u,f){var c,e,o,s,v,h=r,l={},a={},y=i._transform,p=yt;for(i._transform=null,yt=t,r=v=i.parse(n,t,r,u),yt=p,f&&(i._transform=y,h&&(h._prev=null,h._prev&&(h._prev._next=null)));r&&r!==h;){if(1>=r.type&&(e=r.p,a[e]=r.s+r.c,l[e]=r.s,f||(s=new hi(r,"s",e,s,r.r),r.c=0),1===r.type))for(c=r.l;--c>0;)o="xn"+c,e=r.p+"_"+o,a[e]=r.data[o],l[e]=r[o],f||(s=new hi(r,o,e,s,r.rxp[o]));r=r._next}return{proxy:l,end:a,firstMPT:s,pt:v}},y.CSSPropTween=function(n,t,i,r,u,f,e,s,h,c,l){this.t=n;this.p=t;this.s=i;this.c=r;this.n=e||t;n instanceof o||bt.push(this.n);this.r=s;this.type=f||0;h&&(this.pr=h,rt=!0);this.b=void 0===c?i:c;this.e=void 0===l?i+r:l;u&&(this._next=u,u._prev=this)}),pt=e.parseComplex=function(n,t,i,r,u,f,e,s,h,c){i=i||f||"";e=new o(n,t,0,0,e,c?2:1,null,!1,s,i,r);r+="";var y,w,b,l,v,ut,ft,it,k,et,d,g,p=i.split(", ").join(",").split(" "),rt=r.split(", ").join(",").split(" "),ot=p.length,st=kt!==!1;for((-1!==r.indexOf(",")||-1!==i.indexOf(","))&&(p=p.join(" ").replace(a,", ").split(" "),rt=rt.join(" ").replace(a,", ").split(" "),ot=p.length),ot!==rt.length&&(p=(f||"").split(" "),ot=p.length),e.plugin=h,e.setRatio=c,y=0;ot>y;y++)if(l=p[y],v=rt[y],it=parseFloat(l),it||0===it)e.appendXtra("",it,rr(v,it),v.replace(pi,""),st&&-1!==v.indexOf("px"),!0);else if(u&&("#"===l.charAt(0)||tt[l]||wi.test(l)))g=","===v.charAt(v.length-1)?"),":")",l=oi(l),v=oi(v),k=l.length+v.length>6,k&&!nt&&0===v[3]?(e["xs"+e.l]+=e.l?" transparent":"transparent",e.e=e.e.split(rt[y]).join("transparent")):(nt||(k=!1),e.appendXtra(k?"rgba(":"rgb(",l[0],v[0]-l[0],",",!0,!0).appendXtra("",l[1],v[1]-l[1],",",!0).appendXtra("",l[2],v[2]-l[2],k?",":g,!0),k&&(l=4>l.length?1:l[3],e.appendXtra("",l,(4>v.length?1:v[3])-l,g,!1)));else if(ut=l.match(at)){if(ft=v.match(pi),!ft||ft.length!==ut.length)return e;for(b=0,w=0;ut.length>w;w++)d=ut[w],et=l.indexOf(d,b),e.appendXtra(l.substr(b,et-b),Number(d),rr(ft[w],d),"",st&&"px"===l.substr(et+d.length,2),0===w),b=et+d.length;e["xs"+e.l]+=l.substr(b)}else e["xs"+e.l]+=e.l?" "+l:l;if(-1!==r.indexOf("=")&&e.data){for(g=e.xs0+e.data.s,y=1;e.l>y;y++)g+=e["xs"+y]+e.data["xn"+y];e.e=g+e["xs"+y]}return e.l||(e.type=-1,e.xs0=e.e),e.xfirst||e},s=9;for(i=o.prototype,i.l=i.pr=0;--s>0;)i["xn"+s]=0,i["xs"+s]="";i.xs0="";i._next=i._prev=i.xfirst=i.data=i.plugin=i.setRatio=i.rxp=null;i.appendXtra=function(n,t,i,r,u,f){var e=this,s=e.l;return e["xs"+s]+=f&&s?" "+n:n||"",i||0===s||e.plugin?(e.l++,e.type=e.setRatio?2:1,e["xs"+e.l]=r||"",s>0?(e.data["xn"+s]=t+i,e.rxp["xn"+s]=u,e["xn"+s]=t,e.plugin||(e.xfirst=new o(e,"xn"+s,t,i,e.xfirst||e,0,e.n,u,e.pr),e.xfirst.xs0=0),e):(e.data={s:t+i},e.rxp={},e.s=t,e.c=i,e.r=u,e)):(e["xs"+s]+=t+(r||""),e)};var fr=function(n,t){t=t||{};this.p=t.prefix?ft(n)||n:n;l[n]=l[this.p]=this;this.format=t.formatter||ur(t.defaultValue,t.color,t.collapsible,t.multi);t.parser&&(this.parse=t.parser);this.clrs=t.color;this.multi=t.multi;this.keyword=t.keyword;this.dflt=t.defaultValue;this.pr=t.priority||0},u=y._registerComplexSpecialProp=function(n,t,i){"object"!=typeof t&&(t={parser:i});var r,e,u=n.split(","),f=t.defaultValue;for(i=i||[f],r=0;u.length>r;r++)t.prefix=0===r&&t.prefix,t.defaultValue=i[r]||f,e=new fr(u[r],t)},tu=function(n){if(!l[n]){var t=n.charAt(0).toUpperCase()+n.substr(1)+"Plugin";u(n,{parser:function(n,i,r,u,f,e,o){var s=(_gsScope.GreenSockGlobals||_gsScope).com.greensock.plugins[t];return s?(s._cssRegister(),l[r].parse(n,i,r,u,f,e,o)):(nr("Error: "+t+" js file not loaded."),f)}})}};i=fr.prototype;i.parseComplex=function(n,t,i,r,u,f){var o,s,e,l,v,c,h=this.keyword;if(this.multi&&(a.test(i)||a.test(t)?(s=t.replace(a,"|").split("|"),e=i.replace(a,"|").split("|")):h&&(s=[t],e=[i])),e){for(l=e.length>s.length?e.length:s.length,o=0;l>o;o++)t=s[o]=s[o]||this.dflt,i=e[o]=e[o]||this.dflt,h&&(v=t.indexOf(h),c=i.indexOf(h),v!==c&&(i=-1===c?e:s,i[o]+=" "+h));t=s.join(", ");i=e.join(", ")}return pt(n,this.p,t,i,this.clrs,this.dflt,r,this.pr,u,f)};i.parse=function(n,t,i,u,e,o){return this.parseComplex(n.style,this.format(r(n,this.p,f,!1,this.dflt)),this.format(t),e,o)};e.registerSpecialProp=function(n,t,i){u(n,{parser:function(n,r,u,f,e,s){var h=new o(n,u,0,0,e,2,u,!1,i);return h.plugin=s,h.setRatio=t(n,r,f._tween,u),h},priority:i})};var er="scaleX,scaleY,scaleZ,x,y,z,skewX,skewY,rotation,rotationX,rotationY,perspective,xPercent,yPercent".split(","),c=ft("transform"),iu=tr+"transform",ci=ft("transformOrigin"),b=null!==ft("perspective"),or=y.Transform=function(){this.skewY=0},ht=y.getTransform=function(n,t,i,u){if(n._gsTransform&&i&&!u)return n._gsTransform;var a,o,nt,lt,ui,vt,yt,ut,tt,fi,ei,pt,wt,f=i?n._gsTransform||new or:new or,yi=0>f.scaleX,et=2e-5,y=1e5,at=179.99,ot=at*v,pi=b?parseFloat(r(n,ci,t,!1,"0 0 0").split(" ")[2])||f.zOrigin||0:0;if(c?a=r(n,iu,t,!0):n.currentStyle&&(a=n.currentStyle.filter.match(br),a=a&&4===a.length?[a[0].substr(4),Number(a[2].substr(4)),Number(a[1].substr(4)),a[3].substr(4),f.x||0,f.y||0].join(","):""),a&&"none"!==a&&"matrix(1, 0, 0, 1, 0, 0)"!==a){for(o=(a||"").match(/(?:\-|\b)[\d\-\.e]+\b/gi)||[],nt=o.length;--nt>-1;)lt=Number(o[nt]),o[nt]=(ui=lt-(lt|=0))?(0|ui*y+(0>ui?-.5:.5))/y+lt:lt;if(16===o.length){var st=o[8],w=o[9],p=o[10],hi=o[12],li=o[13],ht=o[14];if(f.zOrigin&&(ht=-f.zOrigin,hi=st*ht-o[12],li=w*ht-o[13],ht=p*ht+f.zOrigin-o[14]),!i||u||null==f.rotationX){var bt,ct,kt,s,h,oi,si,ft=o[0],k=o[1],dt=o[2],wi=o[3],gt=o[4],d=o[5],it=o[6],bi=o[7],rt=o[11],l=Math.atan2(it,p),ai=-ot>l||l>ot;f.rotationX=l*g;l&&(s=Math.cos(-l),h=Math.sin(-l),bt=gt*s+st*h,ct=d*s+w*h,kt=it*s+p*h,st=gt*-h+st*s,w=d*-h+w*s,p=it*-h+p*s,rt=bi*-h+rt*s,gt=bt,d=ct,it=kt);l=Math.atan2(st,ft);f.rotationY=l*g;l&&(oi=-ot>l||l>ot,s=Math.cos(-l),h=Math.sin(-l),bt=ft*s-st*h,ct=k*s-w*h,kt=dt*s-p*h,w=k*h+w*s,p=dt*h+p*s,rt=wi*h+rt*s,ft=bt,k=ct,dt=kt);l=Math.atan2(k,d);f.rotation=l*g;l&&(si=-ot>l||l>ot,s=Math.cos(-l),h=Math.sin(-l),ft=ft*s+gt*h,ct=k*s+d*h,d=k*-h+d*s,it=dt*-h+it*s,k=ct);si&&ai?f.rotation=f.rotationX=0:si&&oi?f.rotation=f.rotationY=0:oi&&ai&&(f.rotationY=f.rotationX=0);f.scaleX=(0|Math.sqrt(ft*ft+k*k)*y+.5)/y;f.scaleY=(0|Math.sqrt(d*d+w*w)*y+.5)/y;f.scaleZ=(0|Math.sqrt(it*it+p*p)*y+.5)/y;f.skewX=0;f.perspective=rt?1/(0>rt?-rt:rt):0;f.x=hi;f.y=li;f.z=ht}}else if(!(b&&!u&&o.length&&f.x===o[4]&&f.y===o[5]&&(f.rotationX||f.rotationY)||void 0!==f.x&&"none"===r(n,"display",t))){var vi=o.length>=6,ni=vi?o[0]:1,ti=o[1]||0,ii=o[2]||0,ri=vi?o[3]:1;f.x=o[4]||0;f.y=o[5]||0;vt=Math.sqrt(ni*ni+ti*ti);yt=Math.sqrt(ri*ri+ii*ii);ut=ni||ti?Math.atan2(ti,ni)*g:f.rotation||0;tt=ii||ri?Math.atan2(ii,ri)*g+ut:f.skewX||0;fi=vt-Math.abs(f.scaleX||0);ei=yt-Math.abs(f.scaleY||0);Math.abs(tt)>90&&270>Math.abs(tt)&&(yi?(vt*=-1,tt+=0>=ut?180:-180,ut+=0>=ut?180:-180):(yt*=-1,tt+=0>=tt?180:-180));pt=(ut-f.rotation)%180;wt=(tt-f.skewX)%180;(void 0===f.skewX||fi>et||-et>fi||ei>et||-et>ei||pt>-at&&at>pt&&!1|pt*y||wt>-at&&at>wt&&!1|wt*y)&&(f.scaleX=vt,f.scaleY=yt,f.rotation=ut,f.skewX=tt);b&&(f.rotationX=f.rotationY=f.z=0,f.perspective=parseFloat(e.defaultTransformPerspective)||0,f.scaleZ=1)}f.zOrigin=pi;for(nt in f)et>f[nt]&&f[nt]>-et&&(f[nt]=0)}else f={x:0,y:0,z:0,scaleX:1,scaleY:1,scaleZ:1,skewX:0,perspective:0,rotation:0,rotationX:0,rotationY:0,zOrigin:0};return i&&(n._gsTransform=f),f.xPercent=f.yPercent=0,f},ru=function(n){var o,w,t=this.data,nt=-t.rotation*v,ft=nt+t.skewX*v,e=1e5,h=(0|Math.cos(nt)*t.scaleX*e)/e,u=(0|Math.sin(nt)*t.scaleX*e)/e,f=(0|Math.sin(ft)*-t.scaleY*e)/e,c=(0|Math.cos(ft)*t.scaleY*e)/e,d=this.t.style,g=this.t.currentStyle,k,y,et,ot;if(g){w=u;u=-f;f=-w;o=g.filter;d.filter="";var i,r,l=this.t.offsetWidth,a=this.t.offsetHeight,tt="absolute"!==g.position,b="progid:DXImageTransform.Microsoft.Matrix(M11="+h+", M12="+u+", M21="+f+", M22="+c,it=t.x+l*t.xPercent/100,rt=t.y+a*t.yPercent/100;if(null!=t.ox&&(i=(t.oxp?.01*l*t.ox:t.ox)-l/2,r=(t.oyp?.01*a*t.oy:t.oy)-a/2,it+=i-(i*h+r*u),rt+=r-(i*f+r*c)),tt?(i=l/2,r=a/2,b+=", Dx="+(i-(i*h+r*u)+it)+", Dy="+(r-(i*f+r*c)+rt)+")"):b+=", sizingMethod='auto expand')",d.filter=-1!==o.indexOf("DXImageTransform.Microsoft.Matrix(")?o.replace(kr,b):b+" "+o,(0===n||1===n)&&1===h&&0===u&&0===f&&1===c&&(tt&&-1===b.indexOf("Dx=0, Dy=0")||ti.test(o)&&100!==parseFloat(RegExp.$1)||-1===o.indexOf("gradient("&&o.indexOf("Alpha"))&&d.removeAttribute("filter")),!tt)for(ot=8>ut?1:-1,i=t.ieOffsetX||0,r=t.ieOffsetY||0,t.ieOffsetX=Math.round((l-((0>h?-h:h)*l+(0>u?-u:u)*a))/2+it),t.ieOffsetY=Math.round((a-((0>c?-c:c)*a+(0>f?-f:f)*l))/2+rt),s=0;4>s;s++)y=gr[s],k=g[y],w=-1!==k.indexOf("px")?parseFloat(k):p(this.t,y,parseFloat(k),k.replace(ni,""))||0,et=w!==t[y]?2>s?-t.ieOffsetX:-t.ieOffsetY:2>s?i-t.ieOffsetX:r-t.ieOffsetY,d[y]=(t[y]=Math.round(w-et*(0===s||2===s?1:ot)))+"px"}},li=y.set3DTransformRatio=function(n){var tt,g,y,p,it,nt,w,b,et,rt,l,o,ot,ut,k,st,i,r,u,f,ct,lt,at,t=this.data,vt=this.t.style,e=t.rotation*v,s=t.scaleX,h=t.scaleY,a=t.scaleZ,yt=t.x,pt=t.y,ht=t.z,d=t.perspective,ft;if(!(1!==n&&0!==n||"auto"!==t.force3D||t.rotationY||t.rotationX||1!==a||d||ht))return sr.call(this,n),void 0;if(vi&&(ft=.0001,ft>s&&s>-ft&&(s=a=2e-5),ft>h&&h>-ft&&(h=a=2e-5),!d||t.z||t.rotationX||t.rotationY||(d=0)),e||t.skewX)r=Math.cos(e),u=Math.sin(e),tt=r,it=u,t.skewX&&(e-=t.skewX*v,r=Math.cos(e),u=Math.sin(e),"simple"===t.skewType&&(f=Math.tan(t.skewX*v),f=Math.sqrt(1+f*f),r*=f,u*=f)),g=-u,nt=r;else{if(!(t.rotationY||t.rotationX||1!==a||d))return vt[c]=(t.xPercent||t.yPercent?"translate("+t.xPercent+"%,"+t.yPercent+"%) translate3d(":"translate3d(")+yt+"px,"+pt+"px,"+ht+"px)"+(1!==s||1!==h?" scale("+s+","+h+")":""),void 0;tt=nt=1;g=it=0}l=1;y=p=w=b=et=rt=o=ot=ut=0;k=d?-1/d:0;st=t.zOrigin;i=1e5;e=t.rotationY*v;e&&(r=Math.cos(e),u=Math.sin(e),et=l*-u,ot=k*-u,y=tt*u,w=it*u,l*=r,k*=r,tt*=r,it*=r);e=t.rotationX*v;e&&(r=Math.cos(e),u=Math.sin(e),f=g*r+y*u,ct=nt*r+w*u,lt=rt*r+l*u,at=ut*r+k*u,y=g*-u+y*r,w=nt*-u+w*r,l=rt*-u+l*r,k=ut*-u+k*r,g=f,nt=ct,rt=lt,ut=at);1!==a&&(y*=a,w*=a,l*=a,k*=a);1!==h&&(g*=h,nt*=h,rt*=h,ut*=h);1!==s&&(tt*=s,it*=s,et*=s,ot*=s);st&&(o-=st,p=y*o,b=w*o,o=l*o+st);p=(f=(p+=yt)-(p|=0))?(0|f*i+(0>f?-.5:.5))/i+p:p;b=(f=(b+=pt)-(b|=0))?(0|f*i+(0>f?-.5:.5))/i+b:b;o=(f=(o+=ht)-(o|=0))?(0|f*i+(0>f?-.5:.5))/i+o:o;vt[c]=(t.xPercent||t.yPercent?"translate("+t.xPercent+"%,"+t.yPercent+"%) matrix3d(":"matrix3d(")+[(0|tt*i)/i,(0|it*i)/i,(0|et*i)/i,(0|ot*i)/i,(0|g*i)/i,(0|nt*i)/i,(0|rt*i)/i,(0|ut*i)/i,(0|y*i)/i,(0|w*i)/i,(0|l*i)/i,(0|k*i)/i,p,b,o,d?1+-o/d:1].join(",")+")"},sr=y.set2DTransformRatio=function(n){var r,u,i,f,e,t=this.data,l=this.t,o=l.style,s=t.x,h=t.y;return t.rotationX||t.rotationY||t.z||t.force3D===!0||"auto"===t.force3D&&1!==n&&0!==n?(this.setRatio=li,li.call(this,n),void 0):(t.rotation||t.skewX?(r=t.rotation*v,u=r-t.skewX*v,i=1e5,f=t.scaleX*i,e=t.scaleY*i,o[c]=(t.xPercent||t.yPercent?"translate("+t.xPercent+"%,"+t.yPercent+"%) matrix(":"matrix(")+(0|Math.cos(r)*f)/i+","+(0|Math.sin(r)*f)/i+","+(0|Math.sin(u)*-e)/i+","+(0|Math.cos(u)*e)/i+","+s+","+h+")"):o[c]=(t.xPercent||t.yPercent?"translate("+t.xPercent+"%,"+t.yPercent+"%) matrix(":"matrix(")+t.scaleX+",0,0,"+t.scaleY+","+s+","+h+")",void 0)};for(u("transform,scale,scaleX,scaleY,scaleZ,x,y,z,rotation,rotationX,rotationY,rotationZ,skewX,skewY,shortRotation,shortRotationX,shortRotationY,shortRotationZ,transformOrigin,transformPerspective,directionalRotation,parseTransform,force3D,skewType,xPercent,yPercent",{parser:function(n,t,i,u,s,l,a){if(u._transform)return s;var p,ut,g,d,it,rt,nt,y=u._transform=ht(n,f,!0,a.parseTransform),ft=n.style,et=1e-6,ot=er.length,v=a,tt={};if("string"==typeof v.transform&&c)g=w.style,g[c]=v.transform,g.display="block",g.position="absolute",k.body.appendChild(w),p=ht(w,null,!1),k.body.removeChild(w);else if("object"==typeof v){if(p={scaleX:h(null!=v.scaleX?v.scaleX:v.scale,y.scaleX),scaleY:h(null!=v.scaleY?v.scaleY:v.scale,y.scaleY),scaleZ:h(v.scaleZ,y.scaleZ),x:h(v.x,y.x),y:h(v.y,y.y),z:h(v.z,y.z),xPercent:h(v.xPercent,y.xPercent),yPercent:h(v.yPercent,y.yPercent),perspective:h(v.transformPerspective,y.perspective)},nt=v.directionalRotation,null!=nt)if("object"==typeof nt)for(g in nt)v[g]=nt[g];else v.rotation=nt;"string"==typeof v.x&&-1!==v.x.indexOf("%")&&(p.x=0,p.xPercent=h(v.x,y.xPercent));"string"==typeof v.y&&-1!==v.y.indexOf("%")&&(p.y=0,p.yPercent=h(v.y,y.yPercent));p.rotation=st("rotation"in v?v.rotation:"shortRotation"in v?v.shortRotation+"_short":"rotationZ"in v?v.rotationZ:y.rotation,y.rotation,"rotation",tt);b&&(p.rotationX=st("rotationX"in v?v.rotationX:"shortRotationX"in v?v.shortRotationX+"_short":y.rotationX||0,y.rotationX,"rotationX",tt),p.rotationY=st("rotationY"in v?v.rotationY:"shortRotationY"in v?v.shortRotationY+"_short":y.rotationY||0,y.rotationY,"rotationY",tt));p.skewX=null==v.skewX?y.skewX:st(v.skewX,y.skewX);p.skewY=null==v.skewY?y.skewY:st(v.skewY,y.skewY);(ut=p.skewY-y.skewY)&&(p.skewX+=ut,p.rotation+=ut)}for(b&&null!=v.force3D&&(y.force3D=v.force3D,rt=!0),y.skewType=v.skewType||y.skewType||e.defaultSkewType,it=y.force3D||y.z||y.rotationX||y.rotationY||p.z||p.rotationX||p.rotationY||p.perspective,it||null==v.scale||(p.scaleZ=1);--ot>-1;)i=er[ot],d=p[i]-y[i],(d>et||-et>d||null!=yt[i])&&(rt=!0,s=new o(y,i,y[i],d,s),i in tt&&(s.e=tt[i]),s.xs0=0,s.plugin=l,u._overwriteProps.push(s.n));return d=v.transformOrigin,(d||b&&it&&y.zOrigin)&&(c?(rt=!0,i=ci,d=(d||r(n,i,f,!1,"50% 50%"))+"",s=new o(ft,i,0,0,s,-1,"transformOrigin"),s.b=ft[i],s.plugin=l,b?(g=y.zOrigin,d=d.split(" "),y.zOrigin=(d.length>2&&(0===g||"0px"!==d[2])?parseFloat(d[2]):g)||0,s.xs0=s.e=d[0]+" "+(d[1]||"50%")+" 0px",s=new o(y,"zOrigin",0,0,s,-1,s.n),s.b=g,s.xs0=s.e=y.zOrigin):s.xs0=s.e=d):fi(d+"",y)),rt&&(u._transformType=it||3===this._transformType?3:2),s},prefix:!0}),u("boxShadow",{defaultValue:"0px 0px 0px 0px #999",prefix:!0,color:!0,multi:!0,keyword:"inset"}),u("borderRadius",{defaultValue:"0px",parser:function(n,t,i,u,e){t=this.format(t);var tt,l,d,h,o,s,w,a,it,rt,c,v,g,b,k,nt,y=["borderTopLeftRadius","borderTopRightRadius","borderBottomRightRadius","borderBottomLeftRadius"],ut=n.style;for(it=parseFloat(n.offsetWidth),rt=parseFloat(n.offsetHeight),tt=t.split(" "),l=0;y.length>l;l++)this.p.indexOf("border")&&(y[l]=ft(y[l])),o=h=r(n,y[l],f,!1,"0px"),-1!==o.indexOf(" ")&&(h=o.split(" "),o=h[0],h=h[1]),s=d=tt[l],w=parseFloat(o),v=o.substr((w+"").length),g="="===s.charAt(1),g?(a=parseInt(s.charAt(0)+"1",10),s=s.substr(2),a*=parseFloat(s),c=s.substr((a+"").length-(0>a?1:0))||""):(a=parseFloat(s),c=s.substr((a+"").length)),""===c&&(c=lt[i]||v),c!==v&&(b=p(n,"borderLeft",w,v),k=p(n,"borderTop",w,v),"%"===c?(o=100*(b/it)+"%",h=100*(k/rt)+"%"):"em"===c?(nt=p(n,"borderLeft",1,"em"),o=b/nt+"em",h=k/nt+"em"):(o=b+"px",h=k+"px"),g&&(s=parseFloat(o)+a+c,d=parseFloat(h)+a+c)),e=pt(ut,y[l],o+" "+h,s+" "+d,!1,"0px",e);return e},prefix:!0,formatter:ur("0px 0px 0px 0px",!1,!0)}),u("backgroundPosition",{defaultValue:"0 0",parser:function(n,t,i,u,e,o){var c,b,h,v,y,l,p="background-position",a=f||et(n,null),s=this.format((a?ut?a.getPropertyValue(p+"-x")+" "+a.getPropertyValue(p+"-y"):a.getPropertyValue(p):n.currentStyle.backgroundPositionX+" "+n.currentStyle.backgroundPositionY)||"0 0"),w=this.format(t);if(-1!==s.indexOf("%")!=(-1!==w.indexOf("%"))&&(l=r(n,"backgroundImage").replace(pr,""),l&&"none"!==l)){for(c=s.split(" "),b=w.split(" "),ii.setAttribute("src",l),h=2;--h>-1;)s=c[h],v=-1!==s.indexOf("%"),v!==(-1!==b[h].indexOf("%"))&&(y=0===h?n.offsetWidth-ii.width:n.offsetHeight-ii.height,c[h]=v?parseFloat(s)/100*y+"px":100*(parseFloat(s)/y)+"%");s=c.join(" ")}return this.parseComplex(n.style,s,w,e,o)},formatter:fi}),u("backgroundSize",{defaultValue:"0 0",formatter:fi}),u("perspective",{defaultValue:"0px",prefix:!0}),u("perspectiveOrigin",{defaultValue:"50% 50%",prefix:!0}),u("transformStyle",{prefix:!0}),u("backfaceVisibility",{prefix:!0}),u("userSelect",{prefix:!0}),u("margin",{parser:si("marginTop,marginRight,marginBottom,marginLeft")}),u("padding",{parser:si("paddingTop,paddingRight,paddingBottom,paddingLeft")}),u("clip",{defaultValue:"rect(0px,0px,0px,0px)",parser:function(n,t,i,u,e,o){var c,s,h;return 9>ut?(s=n.currentStyle,h=8>ut?" ":",",c="rect("+s.clipTop+h+s.clipRight+h+s.clipBottom+h+s.clipLeft+")",t=this.format(t).split(",").join(h)):(c=this.format(r(n,this.p,f,!1,this.dflt)),t=this.format(t)),this.parseComplex(n.style,c,t,e,o)}}),u("textShadow",{defaultValue:"0px 0px 0px #999",color:!0,multi:!0}),u("autoRound,strictUnits",{parser:function(n,t,i,r,u){return u}}),u("border",{defaultValue:"0px solid #000",parser:function(n,t,i,u,e,o){return this.parseComplex(n.style,this.format(r(n,"borderTopWidth",f,!1,"0px")+" "+r(n,"borderTopStyle",f,!1,"solid")+" "+r(n,"borderTopColor",f,!1,"#000")),this.format(t),e,o)},color:!0,formatter:function(n){var t=n.split(" ");return t[0]+" "+(t[1]||"solid")+" "+(n.match(it)||["#000"])[0]}}),u("borderWidth",{parser:si("borderTopWidth,borderRightWidth,borderBottomWidth,borderLeftWidth")}),u("float,cssFloat,styleFloat",{parser:function(n,t,i,r,u){var f=n.style,e="cssFloat"in f?"cssFloat":"styleFloat";return new o(f,e,0,0,u,-1,i,!1,0,f[e],t)}}),hr=function(n){var f,i=this.t,t=i.filter||r(this.data,"filter"),u=0|this.s+this.c*n;100===u&&(-1===t.indexOf("atrix(")&&-1===t.indexOf("radient(")&&-1===t.indexOf("oader(")?(i.removeAttribute("filter"),f=!r(this.data,"filter")):(i.filter=t.replace(yr,""),f=!0));f||(this.xn1&&(i.filter=t=t||"alpha(opacity="+u+")"),-1===t.indexOf("pacity")?0===u&&this.xn1||(i.filter=t+" alpha(opacity="+u+")"):i.filter=t.replace(ti,"opacity="+u))},u("opacity,alpha,autoAlpha",{defaultValue:"1",parser:function(n,t,i,u,e,s){var h=parseFloat(r(n,"opacity",f,!1,"1")),c=n.style,l="autoAlpha"===i;return"string"==typeof t&&"="===t.charAt(1)&&(t=("-"===t.charAt(0)?-1:1)*parseFloat(t.substr(2))+h),l&&1===h&&"hidden"===r(n,"visibility",f)&&0!==t&&(h=0),nt?e=new o(c,"opacity",h,t-h,e):(e=new o(c,"opacity",100*h,100*(t-h),e),e.xn1=l?1:0,c.zoom=1,e.type=2,e.b="alpha(opacity="+e.s+")",e.e="alpha(opacity="+(e.s+e.c)+")",e.data=n,e.plugin=s,e.setRatio=hr),l&&(e=new o(c,"visibility",0,0,e,-1,null,!1,0,0!==h?"inherit":"hidden",0===t?"hidden":"inherit"),e.xs0="inherit",u._overwriteProps.push(e.n),u._overwriteProps.push(i)),e}}),wt=function(n,t){t&&(n.removeProperty?("ms"===t.substr(0,2)&&(t="M"+t.substr(1)),n.removeProperty(t.replace(bi,"-$1").toLowerCase())):n.removeAttribute(t))},cr=function(n){if(this.t._gsClassPT=this,1===n||0===n){this.t.setAttribute("class",0===n?this.b:this.e);for(var t=this.data,i=this.t.style;t;)t.v?i[t.p]=t.v:wt(i,t.p),t=t._next;1===n&&this.t._gsClassPT===this&&(this.t._gsClassPT=null)}else this.t.getAttribute("class")!==this.e&&this.t.setAttribute("class",this.e)},u("className",{parser:function(n,t,i,r,u,e,s){var c,y,l,a,h,v=n.getAttribute("class")||"",p=n.style.cssText;if(u=r._classNamePT=new o(n,i,0,0,u,2),u.setRatio=cr,u.pr=-11,rt=!0,u.b=v,y=ot(n,f),l=n._gsClassPT){for(a={},h=l.data;h;)a[h.p]=1,h=h._next;l.setRatio(1)}return n._gsClassPT=u,u.e="="!==t.charAt(1)?t:v.replace(RegExp("\\s*\\b"+t.substr(2)+"\\b"),"")+("+"===t.charAt(0)?" "+t.substr(2):""),r._tween._duration&&(n.setAttribute("class",u.e),c=ui(n,y,ot(n),s,a),n.setAttribute("class",v),u.data=c.firstMPT,n.style.cssText=p,u=u.xfirst=r.parse(n,c.difs,u,e)),u}}),lr=function(n){if((1===n||0===n)&&this.data._totalTime===this.data._totalDuration&&"isFromStart"!==this.data.data){var i,t,r,u,f=this.t.style,e=l.transform.parse;if("all"===this.e)f.cssText="",u=!0;else for(i=this.e.split(","),r=i.length;--r>-1;)t=i[r],l[t]&&(l[t].parse===e?u=!0:t="transformOrigin"===t?ci:l[t].p),wt(f,t);u&&(wt(f,c),this.t._gsTransform&&delete this.t._gsTransform)}},u("clearProps",{parser:function(n,t,i,r,u){return u=new o(n,i,0,0,u,2),u.setRatio=lr,u.e=t,u.pr=-10,u.data=r._tween,rt=!0,u}}),i="bezier,throwProps,physicsProps,physics2D".split(","),s=i.length;s--;)tu(i[s]);return i=e.prototype,i._firstPT=null,i._onInitTween=function(n,t,i){if(!n.nodeType)return!1;this._target=n;this._tween=i;this._vars=t;kt=t.autoRound;rt=!1;lt=t.suffixMap||e.suffixMap;f=et(n,"");bt=this._overwriteProps;var l,s,u,a,w,k,y,v,p,h=n.style;if(ai&&""===h.zIndex&&(l=r(n,"zIndex",f),("auto"===l||""===l)&&this._addLazySet(h,"zIndex",0)),"string"==typeof t&&(a=h.cssText,l=ot(n,f),h.cssText=a+";"+t,l=ui(n,l,ot(n)).difs,!nt&&vr.test(t)&&(l.opacity=parseFloat(RegExp.$1)),t=l,h.cssText=a),this._firstPT=s=this.parse(n,t,null),this._transformType){for(p=3===this._transformType,c?dt&&(ai=!0,""===h.zIndex&&(y=r(n,"zIndex",f),("auto"===y||""===y)&&this._addLazySet(h,"zIndex",0)),yi&&this._addLazySet(h,"WebkitBackfaceVisibility",this._vars.WebkitBackfaceVisibility||(p?"visible":"hidden"))):h.zoom=1,u=s;u&&u._next;)u=u._next;v=new o(n,"transform",0,0,null,2);this._linkCSSP(v,null,u);v.setRatio=p&&b?li:c?sr:ru;v.data=this._transform||ht(n,f,!0);bt.pop()}if(rt){for(;s;){for(k=s._next,u=a;u&&u.pr>s.pr;)u=u._next;(s._prev=u?u._prev:w)?s._prev._next=s:a=s;(s._next=u)?u._prev=s:w=s;s=k}this._firstPT=a}return!0},i.parse=function(n,t,i,u){var e,d,h,c,v,s,y,a,w,b,k=n.style;for(e in t)s=t[e],d=l[e],d?i=d.parse(n,s,e,this,i,u,t):(v=r(n,e,f)+"",w="string"==typeof s,"color"===e||"fill"===e||"stroke"===e||-1!==e.indexOf("Color")||w&&wi.test(s)?(w||(s=oi(s),s=(s.length>3?"rgba(":"rgb(")+s.join(",")+")"),i=pt(k,e,v,s,!0,"transparent",i,0,u)):!w||-1===s.indexOf(" ")&&-1===s.indexOf(",")?(h=parseFloat(v),y=h||0===h?v.substr((h+"").length):"",(""===v||"auto"===v)&&("width"===e||"height"===e?(h=nu(n,e,f),y="px"):"left"===e||"top"===e?(h=ir(n,e,f),y="px"):(h="opacity"!==e?0:1,y="")),b=w&&"="===s.charAt(1),b?(c=parseInt(s.charAt(0)+"1",10),s=s.substr(2),c*=parseFloat(s),a=s.replace(ni,"")):(c=parseFloat(s),a=w?s.substr((c+"").length)||"":""),""===a&&(a=e in lt?lt[e]:y),s=c||0===c?(b?c+h:c)+a:t[e],y!==a&&""!==a&&(c||0===c)&&h&&(h=p(n,e,h,y),"%"===a?(h/=p(n,e,100,"%")/100,t.strictUnits!==!0&&(v=h+"%")):"em"===a?h/=p(n,e,1,"em"):"px"!==a&&(c=p(n,e,c,a),a="px"),b&&(c||0===c)&&(s=c+h+a)),b&&(c+=h),!h&&0!==h||!c&&0!==c?void 0!==k[e]&&(s||"NaN"!=s+""&&null!=s)?(i=new o(k,e,c||h||0,0,i,-1,e,!1,0,v,s),i.xs0="none"!==s||"display"!==e&&-1===e.indexOf("Style")?s:v):nr("invalid "+e+" tween value: "+t[e]):(i=new o(k,e,h,c-h,i,0,e,kt!==!1&&("px"===a||"zIndex"===e),0,v,s),i.xs0=a)):i=pt(k,e,v,s,!0,null,i,0,u)),u&&i&&!i.plugin&&(i.plugin=u);return i},i.setRatio=function(n){var i,u,r,t=this._firstPT,f=1e-6;if(1!==n||this._tween._time!==this._tween._duration&&0!==this._tween._time)if(n||this._tween._time!==this._tween._duration&&0!==this._tween._time||this._tween._rawPrevTime===-1e-6)for(;t;){if(i=t.c*n+t.s,t.r?i=Math.round(i):f>i&&i>-f&&(i=0),t.type)if(1===t.type)if(r=t.l,2===r)t.t[t.p]=t.xs0+i+t.xs1+t.xn1+t.xs2;else if(3===r)t.t[t.p]=t.xs0+i+t.xs1+t.xn1+t.xs2+t.xn2+t.xs3;else if(4===r)t.t[t.p]=t.xs0+i+t.xs1+t.xn1+t.xs2+t.xn2+t.xs3+t.xn3+t.xs4;else if(5===r)t.t[t.p]=t.xs0+i+t.xs1+t.xn1+t.xs2+t.xn2+t.xs3+t.xn3+t.xs4+t.xn4+t.xs5;else{for(u=t.xs0+i+t.xs1,r=1;t.l>r;r++)u+=t["xn"+r]+t["xs"+(r+1)];t.t[t.p]=u}else-1===t.type?t.t[t.p]=t.xs0:t.setRatio&&t.setRatio(n);else t.t[t.p]=i+t.xs0;t=t._next}else for(;t;)2!==t.type?t.t[t.p]=t.b:t.setRatio(n),t=t._next;else for(;t;)2!==t.type?t.t[t.p]=t.e:t.setRatio(n),t=t._next},i._enableTransforms=function(n){this._transformType=n||3===this._transformType?3:2;this._transform=this._transform||ht(this._target,f,!0)},ar=function(){this.t[this.p]=this.e;this.data._linkCSSP(this,this._next,null,!0)},i._addLazySet=function(n,t,i){var r=this._firstPT=new o(n,t,0,0,this._firstPT,2);r.e=i;r.setRatio=ar;r.data=this},i._linkCSSP=function(n,t,i,r){return n&&(t&&(t._prev=n),n._next&&(n._next._prev=n._prev),n._prev?n._prev._next=n._next:this._firstPT===n&&(this._firstPT=n._next,r=!0),i?i._next=n:r||null!==this._firstPT||(this._firstPT=n),n._next=t,n._prev=i),n},i._kill=function(t){var i,f,r,u=t;if(t.autoAlpha||t.alpha){u={};for(f in t)u[f]=t[f];u.opacity=1;u.autoAlpha&&(u.visibility=1)}return t.className&&(i=this._classNamePT)&&(r=i.xfirst,r&&r._prev?this._linkCSSP(r._prev,i._next,r._prev._prev):r===this._firstPT&&(this._firstPT=i._next),i._next&&this._linkCSSP(i._next,i._next._next,r._prev),this._classNamePT=null),n.prototype._kill.call(this,u)},ct=function(n,t,i){var e,u,r,f;if(n.slice)for(u=n.length;--u>-1;)ct(n[u],t,i);else for(e=n.childNodes,u=e.length;--u>-1;)r=e[u],f=r.type,r.style&&(t.push(ot(r)),i&&i.push(r)),1!==f&&9!==f&&11!==f||!r.childNodes.length||ct(r,t,i)},e.cascadeTo=function(n,i,r){var u,f,o,e=t.to(n,i,r),h=[e],c=[],l=[],s=[],a=t._internals.reservedProps;for(n=e._targets||e.target,ct(n,c,s),e.render(i,!0),ct(n,l),e.render(0,!0),e._enabled(!0),u=s.length;--u>-1;)if(f=ui(s[u],c[u],l[u]),f.firstMPT){f=f.difs;for(o in r)a[o]&&(f[o]=r[o]);h.push(t.to(s[u],i,f))}return h},n.activate([e]),e},!0),function(){var t=_gsScope._gsDefine.plugin({propName:"roundProps",priority:-1,API:2,init:function(n,t,i){return this._tween=i,!0}}),n=t.prototype;n._onInitAllProps=function(){for(var u,n,i,t=this._tween,f=t.vars.roundProps instanceof Array?t.vars.roundProps:t.vars.roundProps.split(","),r=f.length,e={},o=t._propLookup.roundProps;--r>-1;)e[f[r]]=1;for(r=f.length;--r>-1;)for(u=f[r],n=t._firstPT;n;)i=n._next,n.pg?n.t._roundProps(e,!0):n.n===u&&(this._add(n.t,u,n.s,n.c),i&&(i._prev=n._prev),n._prev?n._prev._next=i:t._firstPT===n&&(t._firstPT=i),n._next=n._prev=null,t._propLookup[u]=o),n=i;return!1};n._add=function(n,t,i,r){this._addTween(n,t,i,i+r,t,!0);this._overwriteProps.push(t)}}();_gsScope._gsDefine.plugin({propName:"attr",API:2,version:"0.3.3",init:function(n,t){var i,u,r;if("function"!=typeof n.setAttribute)return!1;this._target=n;this._proxy={};this._start={};this._end={};for(i in t)this._start[i]=this._proxy[i]=u=n.getAttribute(i),r=this._addTween(this._proxy,i,parseFloat(u),t[i],i),this._end[i]=r?r.s+r.c:t[i],this._overwriteProps.push(i);return!0},set:function(n){this._super.setRatio.call(this,n);for(var t,i=this._overwriteProps,r=i.length,u=1===n?this._end:n?this._proxy:this._start;--r>-1;)t=i[r],this._target.setAttribute(t,u[t]+"")}});_gsScope._gsDefine.plugin({propName:"directionalRotation",version:"0.2.1",API:2,init:function(n,t){"object"!=typeof t&&(t={rotation:t});this.finals={};var r,f,e,s,i,o,u=t.useRadians===!0?2*Math.PI:360,h=1e-6;for(r in t)"useRadians"!==r&&(o=(t[r]+"").split("_"),f=o[0],e=parseFloat("function"!=typeof n[r]?n[r]:n[r.indexOf("set")||"function"!=typeof n["get"+r.substr(3)]?r:"get"+r.substr(3)]()),s=this.finals[r]="string"==typeof f&&"="===f.charAt(1)?e+parseInt(f.charAt(0)+"1",10)*Number(f.substr(2)):Number(f)||0,i=s-e,o.length&&(f=o.join("_"),-1!==f.indexOf("short")&&(i%=u,i!==i%(u/2)&&(i=0>i?i+u:i-u)),-1!==f.indexOf("_cw")&&0>i?i=(i+9999999999*u)%u-(0|i/u)*u:-1!==f.indexOf("ccw")&&i>0&&(i=(i-9999999999*u)%u-(0|i/u)*u)),(i>h||-h>i)&&(this._addTween(n,r,e,e+i,r),this._overwriteProps.push(r)));return!0},set:function(n){var t;if(1!==n)this._super.setRatio.call(this,n);else for(t=this._firstPT;t;)t.f?t.t[t.p](this.finals[t.p]):t.t[t.p]=this.finals[t.p],t=t._next}})._autoCSS=!0;_gsScope._gsDefine("easing.Back",["easing.Ease"],function(n){var f,u,h,v=_gsScope.GreenSockGlobals||_gsScope,p=v.com.greensock,s=2*Math.PI,y=Math.PI/2,r=p._class,t=function(t,i){var u=r("easing."+t,function(){},!0),f=u.prototype=new n;return f.constructor=u,f.getRatio=i,u},c=n.register||function(){},e=function(n,t,i,u){var f=r("easing."+n,{easeOut:new t,easeIn:new i,easeInOut:new u},!0);return c(f,n),f},l=function(n,t,i){this.t=n;this.v=t;i&&(this.next=i,i.prev=this,this.c=i.v-t,this.gap=i.t-n)},a=function(t,i){var u=r("easing."+t,function(n){this._p1=n||0===n?n:1.70158;this._p2=1.525*this._p1},!0),f=u.prototype=new n;return f.constructor=u,f.getRatio=i,f.config=function(n){return new u(n)},u},w=e("Back",a("BackOut",function(n){return(n-=1)*n*((this._p1+1)*n+this._p1)+1}),a("BackIn",function(n){return n*n*((this._p1+1)*n-this._p1)}),a("BackInOut",function(n){return 1>(n*=2)?.5*n*n*((this._p2+1)*n-this._p2):.5*((n-=2)*n*((this._p2+1)*n+this._p2)+2)})),o=r("easing.SlowMo",function(n,t,i){t=t||0===t?t:.7;null==n?n=.7:n>1&&(n=1);this._p=1!==n?t:0;this._p1=(1-n)/2;this._p2=n;this._p3=this._p1+this._p2;this._calcEnd=i===!0},!0),i=o.prototype=new n;return i.constructor=o,i.getRatio=function(n){var t=n+(.5-n)*this._p;return this._p1>n?this._calcEnd?1-(n=1-n/this._p1)*n:t-(n=1-n/this._p1)*n*n*n*t:n>this._p3?this._calcEnd?1-(n=(n-this._p3)/this._p1)*n:t+(n-t)*(n=(n-this._p3)/this._p1)*n*n*n:this._calcEnd?1:t},o.ease=new o(.7,.7),i.config=o.config=function(n,t,i){return new o(n,t,i)},f=r("easing.SteppedEase",function(n){n=n||1;this._p1=1/n;this._p2=n+1},!0),i=f.prototype=new n,i.constructor=f,i.getRatio=function(n){return 0>n?n=0:n>=1&&(n=.999999999),(this._p2*n>>0)*this._p1},i.config=f.config=function(n){return new f(n)},u=r("easing.RoughEase",function(t){t=t||{};for(var i,r,u,f,h,e,c=t.taper||"none",a=[],w=0,v=0|(t.points||20),o=v,y=t.randomize!==!1,b=t.clamp===!0,p=t.template instanceof n?t.template:null,s="number"==typeof t.strength?.4*t.strength:.4;--o>-1;)i=y?Math.random():1/v*o,r=p?p.getRatio(i):i,"none"===c?u=s:"out"===c?(f=1-i,u=f*f*s):"in"===c?u=i*i*s:.5>i?(f=2*i,u=.5*f*f*s):(f=2*(1-i),u=.5*f*f*s),y?r+=Math.random()*u-.5*u:o%2?r+=.5*u:r-=.5*u,b&&(r>1?r=1:0>r&&(r=0)),a[w++]={x:i,y:r};for(a.sort(function(n,t){return n.x-t.x}),e=new l(1,1,null),o=v;--o>-1;)h=a[o],e=new l(h.x,h.y,e);this._prev=new l(0,0,0!==e.t?e:e.next)},!0),i=u.prototype=new n,i.constructor=u,i.getRatio=function(n){var t=this._prev;if(n>t.t){for(;t.next&&n>=t.t;)t=t.next;t=t.prev}else for(;t.prev&&t.t>=n;)t=t.prev;return this._prev=t,t.v+(n-t.t)/t.gap*t.c},i.config=function(n){return new u(n)},u.ease=new u,e("Bounce",t("BounceOut",function(n){return 1/2.75>n?7.5625*n*n:2/2.75>n?7.5625*(n-=1.5/2.75)*n+.75:2.5/2.75>n?7.5625*(n-=2.25/2.75)*n+.9375:7.5625*(n-=2.625/2.75)*n+.984375}),t("BounceIn",function(n){return 1/2.75>(n=1-n)?1-7.5625*n*n:2/2.75>n?1-(7.5625*(n-=1.5/2.75)*n+.75):2.5/2.75>n?1-(7.5625*(n-=2.25/2.75)*n+.9375):1-(7.5625*(n-=2.625/2.75)*n+.984375)}),t("BounceInOut",function(n){var t=.5>n;return n=t?1-2*n:2*n-1,n=1/2.75>n?7.5625*n*n:2/2.75>n?7.5625*(n-=1.5/2.75)*n+.75:2.5/2.75>n?7.5625*(n-=2.25/2.75)*n+.9375:7.5625*(n-=2.625/2.75)*n+.984375,t?.5*(1-n):.5*n+.5})),e("Circ",t("CircOut",function(n){return Math.sqrt(1-(n-=1)*n)}),t("CircIn",function(n){return-(Math.sqrt(1-n*n)-1)}),t("CircInOut",function(n){return 1>(n*=2)?-.5*(Math.sqrt(1-n*n)-1):.5*(Math.sqrt(1-(n-=2)*n)+1)})),h=function(t,i,u){var f=r("easing."+t,function(n,t){this._p1=n||1;this._p2=t||u;this._p3=this._p2/s*(Math.asin(1/this._p1)||0)},!0),e=f.prototype=new n;return e.constructor=f,e.getRatio=i,e.config=function(n,t){return new f(n,t)},f},e("Elastic",h("ElasticOut",function(n){return this._p1*Math.pow(2,-10*n)*Math.sin((n-this._p3)*s/this._p2)+1},.3),h("ElasticIn",function(n){return-(this._p1*Math.pow(2,10*(n-=1))*Math.sin((n-this._p3)*s/this._p2))},.3),h("ElasticInOut",function(n){return 1>(n*=2)?-.5*this._p1*Math.pow(2,10*(n-=1))*Math.sin((n-this._p3)*s/this._p2):.5*this._p1*Math.pow(2,-10*(n-=1))*Math.sin((n-this._p3)*s/this._p2)+1},.45)),e("Expo",t("ExpoOut",function(n){return 1-Math.pow(2,-10*n)}),t("ExpoIn",function(n){return Math.pow(2,10*(n-1))-.001}),t("ExpoInOut",function(n){return 1>(n*=2)?.5*Math.pow(2,10*(n-1)):.5*(2-Math.pow(2,-10*(n-1)))})),e("Sine",t("SineOut",function(n){return Math.sin(n*y)}),t("SineIn",function(n){return-Math.cos(n*y)+1}),t("SineInOut",function(n){return-.5*(Math.cos(Math.PI*n)-1)})),r("easing.EaseLookup",{find:function(t){return n.map[t]}},!0),c(v.SlowMo,"SlowMo","ease,"),c(u,"RoughEase","ease,"),c(f,"SteppedEase","ease,"),w},!0)});_gsScope._gsDefine&&_gsScope._gsQueue.pop()(),function(n,t){"use strict";var ot=n.GreenSockGlobals=n.GreenSockGlobals||n,lt,s,vt,ut,c;if(!ot.TweenLite){var f,e,i,u,h,dt=function(n){for(var r=n.split("."),i=ot,t=0;r.length>t;t++)i[r[t]]=i=i[r[t]]||{};return i},v=dt("com.greensock"),o=1e-10,gt=function(n){for(var i=[],r=n.length,t=0;t!==r;i.push(n[t++]));return i},ni=function(){},d=function(){var n=Object.prototype.toString,t=n.call([]);return function(i){return null!=i&&(i instanceof Array||"object"==typeof i&&!!i.push&&n.call(i)===t)}}(),g={},ti=function(i,r,u,f){this.sc=g[i]?g[i].sc:[];g[i]=this;this.gsClass=null;this.func=u;var e=[];this.check=function(o){for(var c,l,a,h,s=r.length,v=s;--s>-1;)(c=g[r[s]]||new ti(r[s],[])).gsClass?(e[s]=c.gsClass,v--):o&&c.sc.push(this);if(0===v&&u)for(l=("com.greensock."+i).split("."),a=l.pop(),h=dt(l.join("."))[a]=this.gsClass=u.apply(u,e),f&&(ot[a]=h,"function"==typeof define&&define.amd?define((n.GreenSockAMDPath?n.GreenSockAMDPath+"/":"")+i.split(".").pop(),[],function(){return h}):i===t&&"undefined"!=typeof module&&module.exports&&(module.exports=h)),s=0;this.sc.length>s;s++)this.sc[s].check()};this.check(!0)},st=n._gsDefine=function(n,t,i,r){return new ti(n,t,i,r)},l=v._class=function(n,t,i){return t=t||function(){},st(n,[],function(){return t},i),t};st.globals=ot;var ii=[0,0,1,1],ht=[],a=l("easing.Ease",function(n,t,i,r){this._func=n;this._type=i||0;this._power=r||0;this._params=t?ii.concat(t):ii},!0),nt=a.map={},ct=a.register=function(n,t,i,r){for(var o,u,e,f,s=t.split(","),h=s.length,c=(i||"easeIn,easeOut,easeInOut").split(",");--h>-1;)for(u=s[h],o=r?l("easing."+u,null,!0):v.easing[u]||{},e=c.length;--e>-1;)f=c[e],nt[u+"."+f]=nt[f+u]=o[f]=n.getRatio?n:n[f]||new n};for(i=a.prototype,i._calcEnd=!1,i.getRatio=function(n){if(this._func)return this._params[0]=n,this._func.apply(null,this._params);var i=this._type,r=this._power,t=1===i?1-n:2===i?n:.5>n?2*n:2*(1-n);return 1===r?t*=t:2===r?t*=t*t:3===r?t*=t*t*t:4===r&&(t*=t*t*t*t),1===i?1-t:2===i?t:.5>n?t/2:1-t/2},f=["Linear","Quad","Cubic","Quart","Quint,Strong"],e=f.length;--e>-1;)i=f[e]+",Power"+e,ct(new a(null,null,1,e),i,"easeOut",!0),ct(new a(null,null,2,e),i,"easeIn"+(0===e?",easeNone":"")),ct(new a(null,null,3,e),i,"easeInOut");nt.linear=v.easing.Linear.easeIn;nt.swing=v.easing.Quad.easeInOut;lt=l("events.EventDispatcher",function(n){this._listeners={};this._eventTarget=n||this});i=lt.prototype;i.addEventListener=function(n,t,i,r,f){f=f||0;var s,o,e=this._listeners[n],c=0;for(null==e&&(this._listeners[n]=e=[]),o=e.length;--o>-1;)s=e[o],s.c===t&&s.s===i?e.splice(o,1):0===c&&f>s.pr&&(c=o+1);e.splice(c,0,{c:t,s:i,up:r,pr:f});this!==u||h||u.wake()};i.removeEventListener=function(n,t){var i,r=this._listeners[n];if(r)for(i=r.length;--i>-1;)if(r[i].c===t)return r.splice(i,1),void 0};i.dispatchEvent=function(n){var r,i,t,u=this._listeners[n];if(u)for(r=u.length,i=this._eventTarget;--r>-1;)t=u[r],t.up?t.c.call(t.s||i,{type:n,target:i}):t.c.call(t.s||i)};var tt=n.requestAnimationFrame,at=n.cancelAnimationFrame,it=Date.now||function(){return(new Date).getTime()},rt=it();for(f=["ms","moz","webkit","o"],e=f.length;--e>-1&&!tt;)tt=n[f[e]+"RequestAnimationFrame"],at=n[f[e]+"CancelAnimationFrame"]||n[f[e]+"CancelRequestAnimationFrame"];l("Ticker",function(n,t){var f,a,r,s,c,i=this,y=it(),e=t!==!1&&tt,l=500,p=33,v=function(n){var t,e,u=it()-rt;u>l&&(y+=u-p);rt+=u;i.time=(rt-y)/1e3;t=i.time-c;(!f||t>0||n===!0)&&(i.frame++,c+=t+(t>=s?.004:s-t),e=!0);n!==!0&&(r=a(v));e&&i.dispatchEvent("tick")};lt.call(i);i.time=i.frame=0;i.tick=function(){v(!0)};i.lagSmoothing=function(n,t){l=n||1/o;p=Math.min(t,l,0)};i.sleep=function(){null!=r&&(e&&at?at(r):clearTimeout(r),a=ni,r=null,i===u&&(h=!1))};i.wake=function(){null!==r?i.sleep():i.frame>10&&(rt=it()-l+5);a=0===f?ni:e&&tt?tt:function(n){return setTimeout(n,0|1e3*(c-i.time)+1)};i===u&&(h=!0);v(2)};i.fps=function(n){return arguments.length?(f=n,s=1/(f||60),c=this.time+s,i.wake(),void 0):f};i.useRAF=function(n){return arguments.length?(i.sleep(),e=n,i.fps(f),void 0):e};i.fps(n);setTimeout(function(){e&&(!r||5>i.frame)&&i.useRAF(!1)},1500)});i=v.Ticker.prototype=new v.events.EventDispatcher;i.constructor=v.Ticker;s=l("core.Animation",function(n,t){if(this.vars=t=t||{},this._duration=this._totalDuration=n||0,this._delay=Number(t.delay)||0,this._timeScale=1,this._active=t.immediateRender===!0,this.data=t.data,this._reversed=t.reversed===!0,p){h||u.wake();var i=this.vars.useFrames?k:p;i.add(this,i._time);this.vars.paused&&this.paused(!0)}});u=s.ticker=new v.Ticker;i=s.prototype;i._dirty=i._gc=i._initted=i._paused=!1;i._totalTime=i._time=0;i._rawPrevTime=-1;i._next=i._last=i._onUpdate=i._timeline=i.timeline=null;i._paused=!1;vt=function(){h&&it()-rt>2e3&&u.wake();setTimeout(vt,2e3)};vt();i.play=function(n,t){return null!=n&&this.seek(n,t),this.reversed(!1).paused(!1)};i.pause=function(n,t){return null!=n&&this.seek(n,t),this.paused(!0)};i.resume=function(n,t){return null!=n&&this.seek(n,t),this.paused(!1)};i.seek=function(n,t){return this.totalTime(Number(n),t!==!1)};i.restart=function(n,t){return this.reversed(!1).paused(!1).totalTime(n?-this._delay:0,t!==!1,!0)};i.reverse=function(n,t){return null!=n&&this.seek(n||this.totalDuration(),t),this.reversed(!0).paused(!1)};i.render=function(){};i.invalidate=function(){return this};i.isActive=function(){var t,n=this._timeline,i=this._startTime;return!n||!this._gc&&!this._paused&&n.isActive()&&(t=n.rawTime())>=i&&i+this.totalDuration()/this._timeScale>t};i._enabled=function(n,t){return h||u.wake(),this._gc=!n,this._active=this.isActive(),t!==!0&&(n&&!this.timeline?this._timeline.add(this,this._startTime-this._delay):!n&&this.timeline&&this._timeline._remove(this,!0)),!1};i._kill=function(){return this._enabled(!1,!1)};i.kill=function(n,t){return this._kill(n,t),this};i._uncache=function(n){for(var t=n?this:this.timeline;t;)t._dirty=!0,t=t.timeline;return this};i._swapSelfInParams=function(n){for(var t=n.length,i=n.concat();--t>-1;)"{self}"===n[t]&&(i[t]=this);return i};i.eventCallback=function(n,t,i,r){if("on"===(n||"").substr(0,2)){var u=this.vars;if(1===arguments.length)return u[n];null==t?delete u[n]:(u[n]=t,u[n+"Params"]=d(i)&&-1!==i.join("").indexOf("{self}")?this._swapSelfInParams(i):i,u[n+"Scope"]=r);"onUpdate"===n&&(this._onUpdate=t)}return this};i.delay=function(n){return arguments.length?(this._timeline.smoothChildTiming&&this.startTime(this._startTime+n-this._delay),this._delay=n,this):this._delay};i.duration=function(n){return arguments.length?(this._duration=this._totalDuration=n,this._uncache(!0),this._timeline.smoothChildTiming&&this._time>0&&this._time<this._duration&&0!==n&&this.totalTime(this._totalTime*(n/this._duration),!0),this):(this._dirty=!1,this._duration)};i.totalDuration=function(n){return this._dirty=!1,arguments.length?this.duration(n):this._totalDuration};i.time=function(n,t){return arguments.length?(this._dirty&&this.totalDuration(),this.totalTime(n>this._duration?this._duration:n,t)):this._time};i.totalTime=function(n,t,i){if(h||u.wake(),!arguments.length)return this._totalTime;if(this._timeline){if(0>n&&!i&&(n+=this.totalDuration()),this._timeline.smoothChildTiming){this._dirty&&this.totalDuration();var f=this._totalDuration,r=this._timeline;if(n>f&&!i&&(n=f),this._startTime=(this._paused?this._pauseTime:r._time)-(this._reversed?f-n:n)/this._timeScale,r._dirty||this._uncache(!1),r._timeline)for(;r._timeline;)r._timeline._time!==(r._startTime+r._totalTime)/r._timeScale&&r.totalTime(r._totalTime,!0),r=r._timeline}this._gc&&this._enabled(!0,!1);(this._totalTime!==n||0===this._duration)&&(this.render(n,t,!1),y.length&&ft())}return this};i.progress=i.totalProgress=function(n,t){return arguments.length?this.totalTime(this.duration()*n,t):this._time/this.duration()};i.startTime=function(n){return arguments.length?(n!==this._startTime&&(this._startTime=n,this.timeline&&this.timeline._sortChildren&&this.timeline.add(this,n-this._delay)),this):this._startTime};i.timeScale=function(n){if(!arguments.length)return this._timeScale;if(n=n||o,this._timeline&&this._timeline.smoothChildTiming){var t=this._pauseTime,i=t||0===t?t:this._timeline.totalTime();this._startTime=i-(i-this._startTime)*this._timeScale/n}return this._timeScale=n,this._uncache(!1)};i.reversed=function(n){return arguments.length?(n!=this._reversed&&(this._reversed=n,this.totalTime(this._timeline&&!this._timeline.smoothChildTiming?this.totalDuration()-this._totalTime:this._totalTime,!0)),this):this._reversed};i.paused=function(n){if(!arguments.length)return this._paused;if(n!=this._paused&&this._timeline){h||n||u.wake();var t=this._timeline,i=t.rawTime(),r=i-this._pauseTime;!n&&t.smoothChildTiming&&(this._startTime+=r,this._uncache(!1));this._pauseTime=n?i:null;this._paused=n;this._active=this.isActive();!n&&0!==r&&this._initted&&this.duration()&&this.render(t.smoothChildTiming?this._totalTime:(i-this._startTime)/this._timeScale,!0,!0)}return this._gc&&!n&&this._enabled(!0,!1),this};ut=l("core.SimpleTimeline",function(n){s.call(this,0,n);this.autoRemoveChildren=this.smoothChildTiming=!0});i=ut.prototype=new s;i.constructor=ut;i.kill()._gc=!1;i._first=i._last=null;i._sortChildren=!1;i.add=i.insert=function(n,t){var i,r;if(n._startTime=Number(t||0)+n._delay,n._paused&&this!==n._timeline&&(n._pauseTime=n._startTime+(this.rawTime()-n._startTime)/n._timeScale),n.timeline&&n.timeline._remove(n,!0),n.timeline=n._timeline=this,n._gc&&n._enabled(!0,!0),i=this._last,this._sortChildren)for(r=n._startTime;i&&i._startTime>r;)i=i._prev;return i?(n._next=i._next,i._next=n):(n._next=this._first,this._first=n),n._next?n._next._prev=n:this._last=n,n._prev=i,this._timeline&&this._uncache(!0),this};i._remove=function(n,t){return n.timeline===this&&(t||n._enabled(!1,!0),n._prev?n._prev._next=n._next:this._first===n&&(this._first=n._next),n._next?n._next._prev=n._prev:this._last===n&&(this._last=n._prev),n._next=n._prev=n.timeline=null,this._timeline&&this._uncache(!0)),this};i.render=function(n,t,i){var u,r=this._first;for(this._totalTime=this._time=this._rawPrevTime=n;r;)u=r._next,(r._active||n>=r._startTime&&!r._paused)&&(r._reversed?r.render((r._dirty?r.totalDuration():r._totalDuration)-(n-r._startTime)*r._timeScale,t,i):r.render((n-r._startTime)*r._timeScale,t,i)),r=u};i.rawTime=function(){return h||u.wake(),this._totalTime};var r=l("TweenLite",function(t,i,u){if(s.call(this,i,u),this.render=r.prototype.render,null==t)throw"Cannot tween a null target.";this.target=t="string"!=typeof t?t:r.selector(t)||t;var e,f,h,l=t.jquery||t.length&&t!==n&&t[0]&&(t[0]===n||t[0].nodeType&&t[0].style&&!t.nodeType),c=this.vars.overwrite;if(this._overwrite=c=null==c?ri[r.defaultOverwrite]:"number"==typeof c?c>>0:ri[c],(l||t instanceof Array||t.push&&d(t))&&"number"!=typeof t[0])for(this._targets=h=gt(t),this._propLookup=[],this._siblings=[],e=0;h.length>e;e++)f=h[e],f?"string"!=typeof f?f.length&&f!==n&&f[0]&&(f[0]===n||f[0].nodeType&&f[0].style&&!f.nodeType)?(h.splice(e--,1),this._targets=h=h.concat(gt(f))):(this._siblings[e]=et(f,this,!1),1===c&&this._siblings[e].length>1&&kt(f,this,null,1,this._siblings[e])):(f=h[e--]=r.selector(f),"string"==typeof f&&h.splice(e+1,1)):h.splice(e--,1);else this._propLookup={},this._siblings=et(t,this,!1),1===c&&this._siblings.length>1&&kt(t,this,null,1,this._siblings);(this.vars.immediateRender||0===i&&0===this._delay&&this.vars.immediateRender!==!1)&&(this._time=-o,this.render(-this._delay))},!0),yt=function(t){return t.length&&t!==n&&t[0]&&(t[0]===n||t[0].nodeType&&t[0].style&&!t.nodeType)},fi=function(n,t){var i,r={};for(i in n)bt[i]||i in t&&"transform"!==i&&"x"!==i&&"y"!==i&&"width"!==i&&"height"!==i&&"className"!==i&&"border"!==i||!(!w[i]||w[i]&&w[i]._autoCSS)||(r[i]=n[i],delete n[i]);n.css=r};i=r.prototype=new s;i.constructor=r;i.kill()._gc=!1;i.ratio=0;i._firstPT=i._targets=i._overwrittenProps=i._startAt=null;i._notifyPluginsOfEnabled=i._lazy=!1;r.version="1.13.1";r.defaultEase=i._ease=new a(null,null,1,1);r.defaultOverwrite="auto";r.ticker=u;r.autoSleep=!0;r.lagSmoothing=function(n,t){u.lagSmoothing(n,t)};r.selector=n.$||n.jQuery||function(t){var i=n.$||n.jQuery;return i?(r.selector=i,i(t)):"undefined"==typeof document?t:document.querySelectorAll?document.querySelectorAll(t):document.getElementById("#"===t.charAt(0)?t.substr(1):t)};var y=[],pt={},wt=r._internals={isArray:d,isSelector:yt,lazyTweens:y},w=r._plugins={},b=wt.tweenLookup={},ei=0,bt=wt.reservedProps={ease:1,delay:1,overwrite:1,onComplete:1,onCompleteParams:1,onCompleteScope:1,useFrames:1,runBackwards:1,startAt:1,onUpdate:1,onUpdateParams:1,onUpdateScope:1,onStart:1,onStartParams:1,onStartScope:1,onReverseComplete:1,onReverseCompleteParams:1,onReverseCompleteScope:1,onRepeat:1,onRepeatParams:1,onRepeatScope:1,easeParams:1,yoyo:1,immediateRender:1,repeat:1,repeatDelay:1,data:1,paused:1,reversed:1,autoCSS:1,lazy:1},ri={none:0,all:1,auto:2,concurrent:3,allOnStart:4,preexisting:5,"true":1,"false":0},k=s._rootFramesTimeline=new ut,p=s._rootTimeline=new ut,ft=wt.lazyRender=function(){var n=y.length;for(pt={};--n>-1;)f=y[n],f&&f._lazy!==!1&&(f.render(f._lazy,!1,!0),f._lazy=!1);y.length=0};p._startTime=u.time;k._startTime=u.frame;p._active=k._active=!0;setTimeout(ft,1);s._updateRoot=r.render=function(){var i,t,n;if(y.length&&ft(),p.render((u.time-p._startTime)*p._timeScale,!1,!1),k.render((u.frame-k._startTime)*k._timeScale,!1,!1),y.length&&ft(),!(u.frame%120)){for(n in b){for(t=b[n].tweens,i=t.length;--i>-1;)t[i]._gc&&t.splice(i,1);0===t.length&&delete b[n]}if(n=p._first,(!n||n._paused)&&r.autoSleep&&!k._first&&1===u._listeners.tick.length){for(;n&&n._paused;)n=n._next;n||u.sleep()}}};u.addEventListener("tick",s._updateRoot);var et=function(n,t,i){var r,f,u=n._gsTweenID;if(b[u||(n._gsTweenID=u="t"+ei++)]||(b[u]={target:n,tweens:[]}),t&&(r=b[u].tweens,r[f=r.length]=t,i))for(;--f>-1;)r[f]===t&&r.splice(f,1);return b[u].tweens},kt=function(n,t,i,r,u){var e,s,f,y;if(1===r||r>=4){for(y=u.length,e=0;y>e;e++)if((f=u[e])!==t)f._gc||f._enabled(!1,!1)&&(s=!0);else if(5===r)break;return s}var h,c=t._startTime+o,l=[],a=0,v=0===t._duration;for(e=u.length;--e>-1;)(f=u[e])===t||f._gc||f._paused||(f._timeline!==t._timeline?(h=h||ui(t,0,v),0===ui(f,h,v)&&(l[a++]=f)):c>=f._startTime&&f._startTime+f.totalDuration()/f._timeScale>c&&((v||!f._initted)&&2e-10>=c-f._startTime||(l[a++]=f)));for(e=a;--e>-1;)f=l[e],2===r&&f._kill(i,n)&&(s=!0),(2!==r||!f._firstPT&&f._initted)&&f._enabled(!1,!1)&&(s=!0);return s},ui=function(n,t,i){for(var u=n._timeline,f=u._timeScale,r=n._startTime;u._timeline;){if(r+=u._startTime,f*=u._timeScale,u._paused)return-100;u=u._timeline}return r/=f,r>t?r-t:i&&r===t||!n._initted&&2*o>r-t?o:(r+=n.totalDuration()/n._timeScale/f)>t+o?0:r-t-o};if(i._init=function(){var e,h,n,u,f,t=this.vars,s=this._overwrittenProps,c=this._duration,o=!!t.immediateRender,i=t.ease;if(t.startAt){this._startAt&&(this._startAt.render(-1,!0),this._startAt.kill());f={};for(u in t.startAt)f[u]=t.startAt[u];if(f.overwrite=!1,f.immediateRender=!0,f.lazy=o&&t.lazy!==!1,f.startAt=f.delay=null,this._startAt=r.to(this.target,0,f),o)if(this._time>0)this._startAt=null;else if(0!==c)return}else if(t.runBackwards&&0!==c)if(this._startAt)this._startAt.render(-1,!0),this._startAt.kill(),this._startAt=null;else{n={};for(u in t)bt[u]&&"autoCSS"!==u||(n[u]=t[u]);if(n.overwrite=0,n.data="isFromStart",n.lazy=o&&t.lazy!==!1,n.immediateRender=o,this._startAt=r.to(this.target,0,n),o){if(0===this._time)return}else this._startAt._init(),this._startAt._enabled(!1)}if(this._ease=i=i?i instanceof a?i:"function"==typeof i?new a(i,t.easeParams):nt[i]||r.defaultEase:r.defaultEase,t.easeParams instanceof Array&&i.config&&(this._ease=i.config.apply(i,t.easeParams)),this._easeType=this._ease._type,this._easePower=this._ease._power,this._firstPT=null,this._targets)for(e=this._targets.length;--e>-1;)this._initProps(this._targets[e],this._propLookup[e]={},this._siblings[e],s?s[e]:null)&&(h=!0);else h=this._initProps(this.target,this._propLookup,this._siblings,s);if(h&&r._onPluginEvent("_onInitAllProps",this),s&&(this._firstPT||"function"!=typeof this.target&&this._enabled(!1,!1)),t.runBackwards)for(n=this._firstPT;n;)n.s+=n.c,n.c=-n.c,n=n._next;this._onUpdate=t.onUpdate;this._initted=!0},i._initProps=function(t,i,r,u){var f,h,c,s,o,e;if(null==t)return!1;pt[t._gsTweenID]&&ft();this.vars.css||t.style&&t!==n&&t.nodeType&&w.css&&this.vars.autoCSS!==!1&&fi(this.vars,t);for(f in this.vars){if(e=this.vars[f],bt[f])e&&(e instanceof Array||e.push&&d(e))&&-1!==e.join("").indexOf("{self}")&&(this.vars[f]=e=this._swapSelfInParams(e,this));else if(w[f]&&(s=new w[f])._onInitTween(t,this.vars[f],this)){for(this._firstPT=o={_next:this._firstPT,t:s,p:"setRatio",s:0,c:1,f:!0,n:f,pg:!0,pr:s._priority},h=s._overwriteProps.length;--h>-1;)i[s._overwriteProps[h]]=this._firstPT;(s._priority||s._onInitAllProps)&&(c=!0);(s._onDisable||s._onEnable)&&(this._notifyPluginsOfEnabled=!0)}else this._firstPT=i[f]=o={_next:this._firstPT,t:t,p:f,f:"function"==typeof t[f],n:f,pg:!1,pr:0},o.s=o.f?t[f.indexOf("set")||"function"!=typeof t["get"+f.substr(3)]?f:"get"+f.substr(3)]():parseFloat(t[f]),o.c="string"==typeof e&&"="===e.charAt(1)?parseInt(e.charAt(0)+"1",10)*Number(e.substr(2)):Number(e)-o.s||0;o&&o._next&&(o._next._prev=o)}return u&&this._kill(u,t)?this._initProps(t,i,r,u):this._overwrite>1&&this._firstPT&&r.length>1&&kt(t,this,i,this._overwrite,r)?(this._kill(i,t),this._initProps(t,i,r,u)):(this._firstPT&&(this.vars.lazy!==!1&&this._duration||this.vars.lazy&&!this._duration)&&(pt[t._gsTweenID]=!0),c)},i.render=function(n,t,i){var h,e,u,v,c=this._time,f=this._duration,s=this._rawPrevTime;if(n>=f)this._totalTime=this._time=f,this.ratio=this._ease._calcEnd?this._ease.getRatio(1):1,this._reversed||(h=!0,e="onComplete"),0===f&&(this._initted||!this.vars.lazy||i)&&(this._startTime===this._timeline._duration&&(n=0),(0===n||0>s||s===o)&&s!==n&&(i=!0,s>o&&(e="onReverseComplete")),this._rawPrevTime=v=!t||n||s===n?n:o);else if(1e-7>n)this._totalTime=this._time=0,this.ratio=this._ease._calcEnd?this._ease.getRatio(0):0,(0!==c||0===f&&s>0&&s!==o)&&(e="onReverseComplete",h=this._reversed),0>n?(this._active=!1,0===f&&(this._initted||!this.vars.lazy||i)&&(s>=0&&(i=!0),this._rawPrevTime=v=!t||n||s===n?n:o)):this._initted||(i=!0);else if(this._totalTime=this._time=n,this._easeType){var r=n/f,l=this._easeType,a=this._easePower;(1===l||3===l&&r>=.5)&&(r=1-r);3===l&&(r*=2);1===a?r*=r:2===a?r*=r*r:3===a?r*=r*r*r:4===a&&(r*=r*r*r*r);this.ratio=1===l?1-r:2===l?r:.5>n/f?r/2:1-r/2}else this.ratio=this._ease.getRatio(n/f);if(this._time!==c||i){if(!this._initted){if(this._init(),!this._initted||this._gc)return;if(!i&&this._firstPT&&(this.vars.lazy!==!1&&this._duration||this.vars.lazy&&!this._duration))return this._time=this._totalTime=c,this._rawPrevTime=s,y.push(this),this._lazy=n,void 0;this._time&&!h?this.ratio=this._ease.getRatio(this._time/f):h&&this._ease._calcEnd&&(this.ratio=this._ease.getRatio(0===this._time?0:1))}for(this._lazy!==!1&&(this._lazy=!1),this._active||!this._paused&&this._time!==c&&n>=0&&(this._active=!0),0===c&&(this._startAt&&(n>=0?this._startAt.render(n,t,i):e||(e="_dummyGS")),this.vars.onStart&&(0!==this._time||0===f)&&(t||this.vars.onStart.apply(this.vars.onStartScope||this,this.vars.onStartParams||ht))),u=this._firstPT;u;)u.f?u.t[u.p](u.c*this.ratio+u.s):u.t[u.p]=u.c*this.ratio+u.s,u=u._next;this._onUpdate&&(0>n&&this._startAt&&this._startTime&&this._startAt.render(n,t,i),t||(this._time!==c||h)&&this._onUpdate.apply(this.vars.onUpdateScope||this,this.vars.onUpdateParams||ht));e&&(!this._gc||i)&&(0>n&&this._startAt&&!this._onUpdate&&this._startTime&&this._startAt.render(n,t,i),h&&(this._timeline.autoRemoveChildren&&this._enabled(!1,!1),this._active=!1),!t&&this.vars[e]&&this.vars[e].apply(this.vars[e+"Scope"]||this,this.vars[e+"Params"]||ht),0===f&&this._rawPrevTime===o&&v!==o&&(this._rawPrevTime=0))}},i._kill=function(n,t){if("all"===n&&(n=null),null==n&&(null==t||t===this.target))return this._lazy=!1,this._enabled(!1,!1);t="string"!=typeof t?t||this._targets||this.target:r.selector(t)||t;var u,e,o,i,f,s,h,c;if((d(t)||yt(t))&&"number"!=typeof t[0])for(u=t.length;--u>-1;)this._kill(n,t[u])&&(s=!0);else{if(this._targets){for(u=this._targets.length;--u>-1;)if(t===this._targets[u]){f=this._propLookup[u]||{};this._overwrittenProps=this._overwrittenProps||[];e=this._overwrittenProps[u]=n?this._overwrittenProps[u]||{}:"all";break}}else{if(t!==this.target)return!1;f=this._propLookup;e=this._overwrittenProps=n?this._overwrittenProps||{}:"all"}if(f){h=n||f;c=n!==e&&"all"!==e&&n!==f&&("object"!=typeof n||!n._tempKill);for(o in h)(i=f[o])&&(i.pg&&i.t._kill(h)&&(s=!0),i.pg&&0!==i.t._overwriteProps.length||(i._prev?i._prev._next=i._next:i===this._firstPT&&(this._firstPT=i._next),i._next&&(i._next._prev=i._prev),i._next=i._prev=null),delete f[o]),c&&(e[o]=1);!this._firstPT&&this._initted&&this._enabled(!1,!1)}}return s},i.invalidate=function(){return this._notifyPluginsOfEnabled&&r._onPluginEvent("_onDisable",this),this._firstPT=null,this._overwrittenProps=null,this._onUpdate=null,this._startAt=null,this._initted=this._active=this._notifyPluginsOfEnabled=this._lazy=!1,this._propLookup=this._targets?{}:[],this},i._enabled=function(n,t){if(h||u.wake(),n&&this._gc){var i,f=this._targets;if(f)for(i=f.length;--i>-1;)this._siblings[i]=et(f[i],this,!0);else this._siblings=et(this.target,this,!0)}return s.prototype._enabled.call(this,n,t),this._notifyPluginsOfEnabled&&this._firstPT?r._onPluginEvent(n?"_onEnable":"_onDisable",this):!1},r.to=function(n,t,i){return new r(n,t,i)},r.from=function(n,t,i){return i.runBackwards=!0,i.immediateRender=0!=i.immediateRender,new r(n,t,i)},r.fromTo=function(n,t,i,u){return u.startAt=i,u.immediateRender=0!=u.immediateRender&&0!=i.immediateRender,new r(n,t,u)},r.delayedCall=function(n,t,i,u,f){return new r(t,0,{delay:n,onComplete:t,onCompleteParams:i,onCompleteScope:u,onReverseComplete:t,onReverseCompleteParams:i,onReverseCompleteScope:u,immediateRender:!1,useFrames:f,overwrite:0})},r.set=function(n,t){return new r(n,0,t)},r.getTweensOf=function(n,t){if(null==n)return[];n="string"!=typeof n?n:r.selector(n)||n;var i,u,f,e;if((d(n)||yt(n))&&"number"!=typeof n[0]){for(i=n.length,u=[];--i>-1;)u=u.concat(r.getTweensOf(n[i],t));for(i=u.length;--i>-1;)for(e=u[i],f=i;--f>-1;)e===u[f]&&u.splice(i,1)}else for(u=et(n).concat(),i=u.length;--i>-1;)(u[i]._gc||t&&!u[i].isActive())&&u.splice(i,1);return u},r.killTweensOf=r.killDelayedCallsTo=function(n,t,i){"object"==typeof t&&(i=t,t=!1);for(var u=r.getTweensOf(n,t),f=u.length;--f>-1;)u[f]._kill(i,n)},c=l("plugins.TweenPlugin",function(n,t){this._overwriteProps=(n||"").split(",");this._propName=this._overwriteProps[0];this._priority=t||0;this._super=c.prototype},!0),i=c.prototype,c.version="1.10.1",c.API=2,i._firstPT=null,i._addTween=function(n,t,i,r,u,f){var o,e;if(null!=r&&(o="number"==typeof r||"="!==r.charAt(1)?Number(r)-i:parseInt(r.charAt(0)+"1",10)*Number(r.substr(2))))return(this._firstPT=e={_next:this._firstPT,t:n,p:t,s:i,c:o,f:"function"==typeof n[t],n:u||t,r:f},e._next&&(e._next._prev=e),e)},i.setRatio=function(n){for(var i,t=this._firstPT,r=1e-6;t;)i=t.c*n+t.s,t.r?i=Math.round(i):r>i&&i>-r&&(i=0),t.f?t.t[t.p](i):t.t[t.p]=i,t=t._next},i._kill=function(n){var i,r=this._overwriteProps,t=this._firstPT;if(null!=n[this._propName])this._overwriteProps=[];else for(i=r.length;--i>-1;)null!=n[r[i]]&&r.splice(i,1);for(;t;)null!=n[t.n]&&(t._next&&(t._next._prev=t._prev),t._prev?(t._prev._next=t._next,t._prev=null):this._firstPT===t&&(this._firstPT=t._next)),t=t._next;return!1},i._roundProps=function(n,t){for(var i=this._firstPT;i;)(n[this._propName]||null!=i.n&&n[i.n.split(this._propName+"_").join("")])&&(i.r=t),i=i._next},r._onPluginEvent=function(n,t){var f,r,u,e,o,i=t._firstPT;if("_onInitAllProps"===n){for(;i;){for(o=i._next,r=u;r&&r.pr>i.pr;)r=r._next;(i._prev=r?r._prev:e)?i._prev._next=i:u=i;(i._next=r)?r._prev=i:e=i;i=o}i=t._firstPT=u}for(;i;)i.pg&&"function"==typeof i.t[n]&&i.t[n]()&&(f=!0),i=i._next;return f},c.activate=function(n){for(var t=n.length;--t>-1;)n[t].API===c.API&&(w[(new n[t])._propName]=n[t]);return!0},st.plugin=function(n){if(!(n&&n.propName&&n.init&&n.API))throw"illegal plugin definition.";var i,r=n.propName,e=n.priority||0,o=n.overwriteProps,u={init:"_onInitTween",set:"setRatio",kill:"_kill",round:"_roundProps",initAll:"_onInitAllProps"},t=l("plugins."+r.charAt(0).toUpperCase()+r.substr(1)+"Plugin",function(){c.call(this,r,e);this._overwriteProps=o||[]},n.global===!0),f=t.prototype=new c(r);f.constructor=t;t.API=n.API;for(i in u)"function"==typeof n[i]&&(f[u[i]]=n[i]);return t.version=n.version,c.activate([t]),t},f=n._gsQueue){for(e=0;f.length>e;e++)f[e]();for(i in g)g[i].func||n.console.log("GSAP encountered missing dependency: com.greensock."+i)}h=!1}}("undefined"!=typeof module&&module.exports&&"undefined"!=typeof global?global:this||window,"TweenMax"),function(n){if(typeof exports=="object"&&typeof module!="undefined")module.exports=n();else if(typeof define=="function"&&define.amd)define([],n);else{var t;t=typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:this;t.videojs=n()}}(function(){var n;return function t(n,i,r){function u(f,o){var h,c,s;if(!i[f]){if(!n[f]){if(h=typeof require=="function"&&require,!o&&h)return h(f,!0);if(e)return e(f,!0);c=new Error("Cannot find module '"+f+"'");throw c.code="MODULE_NOT_FOUND",c;}s=i[f]={exports:{}};n[f][0].call(s.exports,function(t){var i=n[f][1][t];return u(i?i:t)},s,s.exports,t,n,i,r)}return i[f].exports}for(var e=typeof require=="function"&&require,f=0;f<r.length;f++)u(r[f]);return u}({1:[function(n,t){(function(i){var u=typeof i!="undefined"?i:typeof window!="undefined"?window:{},f=n("min-document"),r;typeof document!="undefined"?t.exports=document:(r=u["__GLOBAL_DOCUMENT_CACHE@4"],r||(r=u["__GLOBAL_DOCUMENT_CACHE@4"]=f),t.exports=r)}).call(this,typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"min-document":3}],2:[function(n,t){(function(n){t.exports=typeof window!="undefined"?window:typeof n!="undefined"?n:typeof self!="undefined"?self:{}}).call(this,typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],3:[function(){},{}],4:[function(n,t){var i=n("../internal/getNative"),r=i(Date,"now"),u=r||function(){return(new Date).getTime()};t.exports=u},{"../internal/getNative":20}],5:[function(n,t){function e(n,t,e){function nt(){o&&clearTimeout(o);s&&clearTimeout(s);a=0;s=o=b=undefined}function k(t,r){r&&clearTimeout(r);s=o=b=undefined;t&&(a=i(),w=n.apply(c,h),o||s||(h=c=undefined))}function d(){var n=t-(i()-l);n<=0||n>t?k(b,s):o=setTimeout(d,n)}function tt(){k(y,o)}function g(){var f,u,r;return h=arguments,l=i(),c=this,b=y&&(o||!p),v===!1?f=p&&!o:(s||p||(a=l),u=v-(l-a),r=u<=0||u>v,r?(s&&(s=clearTimeout(s)),a=l,w=n.apply(c,h)):s||(s=setTimeout(tt,u))),r&&o?o=clearTimeout(o):o||t===v||(o=setTimeout(d,t)),f&&(r=!0,w=n.apply(c,h)),!r||o||s||(h=c=undefined),w}var h,s,w,l,c,o,b,a=0,v=!1,y=!0,p;if(typeof n!="function")throw new TypeError(u);return t=t<0?0:+t||0,e===!0?(p=!0,y=!1):r(e)&&(p=!!e.leading,v="maxWait"in e&&f(+e.maxWait||0,t),y="trailing"in e?!!e.trailing:y),g.cancel=nt,g}var r=n("../lang/isObject"),i=n("../date/now"),u="Expected a function",f=Math.max;t.exports=e},{"../date/now":4,"../lang/isObject":33}],6:[function(n,t){function u(n,t){if(typeof n!="function")throw new TypeError(r);return t=i(t===undefined?n.length-1:+t||0,0),function(){for(var u=arguments,r=-1,o=i(u.length-t,0),f=Array(o),e;++r<o;)f[r]=u[t+r];switch(t){case 0:return n.call(this,f);case 1:return n.call(this,u[0],f);case 2:return n.call(this,u[0],u[1],f)}for(e=Array(t+1),r=-1;++r<t;)e[r]=u[r];return e[t]=f,n.apply(this,e)}}var r="Expected a function",i=Math.max;t.exports=u},{}],7:[function(n,t){function f(n,t,f){var e=!0,o=!0;if(typeof n!="function")throw new TypeError(u);return f===!1?e=!1:r(f)&&(e="leading"in f?!!f.leading:e,o="trailing"in f?!!f.trailing:o),i(n,t,{leading:e,maxWait:+t,trailing:o})}var i=n("./debounce"),r=n("../lang/isObject"),u="Expected a function";t.exports=f},{"../lang/isObject":33,"./debounce":5}],8:[function(n,t){function i(n,t){var i=-1,r=n.length;for(t||(t=Array(r));++i<r;)t[i]=n[i];return t}t.exports=i},{}],9:[function(n,t){function i(n,t){for(var i=-1,r=n.length;++i<r;)if(t(n[i],i,n)===!1)break;return n}t.exports=i},{}],10:[function(n,t){function i(n,t,i){var r,f,u;for(i||(i={}),r=-1,f=t.length;++r<f;)u=t[r],i[u]=n[u];return i}t.exports=i},{}],11:[function(n,t){var i=n("./createBaseFor"),r=i();t.exports=r},{"./createBaseFor":18}],12:[function(n,t){function u(n,t){return i(n,t,r)}var i=n("./baseFor"),r=n("../object/keysIn");t.exports=u},{"../object/keysIn":39,"./baseFor":11}],13:[function(n,t){function i(n,t,l,a,v){if(!o(n))return n;var y=e(t)&&(f(t)||h(t)),p=y?undefined:c(t);return r(p||t,function(r,f){if(p&&(f=r,r=t[f]),s(r))a||(a=[]),v||(v=[]),u(n,t,f,i,l,a,v);else{var o=n[f],e=l?l(o,r,f,n,t):undefined,h=e===undefined;h&&(e=r);e===undefined&&(!y||f in n)||!h&&(e===e?e===o:o!==o)||(n[f]=e)}}),n}var r=n("./arrayEach"),u=n("./baseMergeDeep"),f=n("../lang/isArray"),e=n("./isArrayLike"),o=n("../lang/isObject"),s=n("./isObjectLike"),h=n("../lang/isTypedArray"),c=n("../object/keys");t.exports=i},{"../lang/isArray":30,"../lang/isObject":33,"../lang/isTypedArray":36,"../object/keys":38,"./arrayEach":9,"./baseMergeDeep":14,"./isArrayLike":21,"./isObjectLike":26}],14:[function(n,t){function h(n,t,h,c,l,a,v){for(var b=a.length,p=t[h];b--;)if(a[b]==p){n[h]=v[b];return}var y=n[h],w=l?l(y,p,h,n,t):undefined,k=w===undefined;k&&(w=p,u(p)&&(r(p)||o(p))?w=r(y)?y:u(y)?e(y):[]:f(p)||i(p)?w=i(y)?s(y):f(y)?y:{}:k=!1);a.push(p);v.push(w);k?n[h]=c(w,p,l,a,v):(w===w?w!==y:y===y)&&(n[h]=w)}var e=n("./arrayCopy"),i=n("../lang/isArguments"),r=n("../lang/isArray"),u=n("./isArrayLike"),f=n("../lang/isPlainObject"),o=n("../lang/isTypedArray"),s=n("../lang/toPlainObject");t.exports=h},{"../lang/isArguments":29,"../lang/isArray":30,"../lang/isPlainObject":34,"../lang/isTypedArray":36,"../lang/toPlainObject":37,"./arrayCopy":8,"./isArrayLike":21}],15:[function(n,t){function r(n){return function(t){return t==null?undefined:i(t)[n]}}var i=n("./toObject");t.exports=r},{"./toObject":28}],16:[function(n,t){function r(n,t,r){if(typeof n!="function")return i;if(t===undefined)return n;switch(r){case 1:return function(i){return n.call(t,i)};case 3:return function(i,r,u){return n.call(t,i,r,u)};case 4:return function(i,r,u,f){return n.call(t,i,r,u,f)};case 5:return function(i,r,u,f,e){return n.call(t,i,r,u,f,e)}}return function(){return n.apply(t,arguments)}}var i=n("../utility/identity");t.exports=r},{"../utility/identity":42}],17:[function(n,t){function f(n){return u(function(t,u){var h=-1,f=t==null?0:u.length,e=f>2?u[f-2]:undefined,c=f>2?u[2]:undefined,o=f>1?u[f-1]:undefined,s;for(typeof e=="function"?(e=i(e,o,5),f-=2):(e=typeof o=="function"?o:undefined,f-=e?1:0),c&&r(u[0],u[1],c)&&(e=f<3?undefined:e,f=1);++h<f;)s=u[h],s&&n(t,s,e);return t})}var i=n("./bindCallback"),r=n("./isIterateeCall"),u=n("../function/restParam");t.exports=f},{"../function/restParam":6,"./bindCallback":16,"./isIterateeCall":24}],18:[function(n,t){function r(n){return function(t,r,u){for(var o=i(t),s=u(t),h=s.length,f=n?h:-1,e;n?f--:++f<h;)if(e=s[f],r(o[e],e,o)===!1)break;return t}}var i=n("./toObject");t.exports=r},{"./toObject":28}],19:[function(n,t){var i=n("./baseProperty"),r=i("length");t.exports=r},{"./baseProperty":15}],20:[function(n,t){function r(n,t){var r=n==null?undefined:n[t];return i(r)?r:undefined}var i=n("../lang/isNative");t.exports=r},{"../lang/isNative":32}],21:[function(n,t){function u(n){return n!=null&&r(i(n))}var i=n("./getLength"),r=n("./isLength");t.exports=u},{"./getLength":19,"./isLength":25}],22:[function(n,t){var i=function(){try{Object({toString:0}+"")}catch(n){return function(){return!1}}return function(n){return typeof n.toString!="function"&&typeof(n+"")=="string"}}();t.exports=i},{}],23:[function(n,t){function u(n,t){return n=typeof n=="number"||i.test(n)?+n:-1,t=t==null?r:t,n>-1&&n%1==0&&n<t}var i=/^\d+$/,r=9007199254740991;t.exports=u},{}],24:[function(n,t){function f(n,t,f){var o,e;return u(f)?(o=typeof t,o=="number"?i(f)&&r(t,f.length):o=="string"&&t in f)?(e=f[t],n===n?n===e:e!==e):!1:!1}var i=n("./isArrayLike"),r=n("./isIndex"),u=n("../lang/isObject");t.exports=f},{"../lang/isObject":33,"./isArrayLike":21,"./isIndex":23}],25:[function(n,t){function r(n){return typeof n=="number"&&n>-1&&n%1==0&&n<=i}var i=9007199254740991;t.exports=r},{}],26:[function(n,t){function i(n){return!!n&&typeof n=="object"}t.exports=i},{}],27:[function(n,t){function c(n){for(var c=o(n),l=c.length,s=l&&n.length,y=!!s&&f(s)&&(r(n)||i(n)||e(n)),a=-1,v=[],t;++a<l;)t=c[a],(y&&u(t,s)||h.call(n,t))&&v.push(t);return v}var i=n("../lang/isArguments"),r=n("../lang/isArray"),u=n("./isIndex"),f=n("./isLength"),e=n("../lang/isString"),o=n("../object/keysIn"),s=Object.prototype,h=s.hasOwnProperty;t.exports=c},{"../lang/isArguments":29,"../lang/isArray":30,"../lang/isString":35,"../object/keysIn":39,"./isIndex":23,"./isLength":25}],28:[function(n,t){function f(n){if(u.unindexedChars&&r(n)){for(var t=-1,e=n.length,f=Object(n);++t<e;)f[t]=n.charAt(t);return f}return i(n)?n:Object(n)}var i=n("../lang/isObject"),r=n("../lang/isString"),u=n("../support");t.exports=f},{"../lang/isObject":33,"../lang/isString":35,"../support":41}],29:[function(n,t){function o(n){return u(n)&&r(n)&&f.call(n,"callee")&&!e.call(n,"callee")}var r=n("../internal/isArrayLike"),u=n("../internal/isObjectLike"),i=Object.prototype,f=i.hasOwnProperty,e=i.propertyIsEnumerable;t.exports=o},{"../internal/isArrayLike":21,"../internal/isObjectLike":26}],30:[function(n,t){var i=n("../internal/getNative"),r=n("../internal/isLength"),u=n("../internal/isObjectLike"),f="[object Array]",e=Object.prototype,o=e.toString,s=i(Array,"isArray"),h=s||function(n){return u(n)&&r(n.length)&&o.call(n)==f};t.exports=h},{"../internal/getNative":20,"../internal/isLength":25,"../internal/isObjectLike":26}],31:[function(n,t){function e(n){return i(n)&&f.call(n)==r}var i=n("./isObject"),r="[object Function]",u=Object.prototype,f=u.toString;t.exports=e},{"./isObject":33}],32:[function(n,t){function c(n){return n==null?!1:u(n)?r.test(i.call(n)):e(n)&&(f(n)?r:o).test(n)}var u=n("./isFunction"),f=n("../internal/isHostObject"),e=n("../internal/isObjectLike"),o=/^\[object .+?Constructor\]$/,s=Object.prototype,i=Function.prototype.toString,h=s.hasOwnProperty,r=RegExp("^"+i.call(h).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");t.exports=c},{"../internal/isHostObject":22,"../internal/isObjectLike":26,"./isFunction":31}],33:[function(n,t){function i(n){var t=typeof n;return!!n&&(t=="object"||t=="function")}t.exports=i},{}],34:[function(n,t){function l(n){var u,t;return!(o(n)&&c.call(n)==h&&!e(n)&&!f(n))||!i.call(n,"constructor")&&(u=n.constructor,typeof u=="function"&&!(u instanceof u))?!1:s.ownLast?(r(n,function(n,r,u){return t=i.call(u,r),!1}),t!==!1):(r(n,function(n,i){t=i}),t===undefined||i.call(n,t))}var r=n("../internal/baseForIn"),f=n("./isArguments"),e=n("../internal/isHostObject"),o=n("../internal/isObjectLike"),s=n("../support"),h="[object Object]",u=Object.prototype,i=u.hasOwnProperty,c=u.toString;t.exports=l},{"../internal/baseForIn":12,"../internal/isHostObject":22,"../internal/isObjectLike":26,"../support":41,"./isArguments":29}],35:[function(n,t){function e(n){return typeof n=="string"||i(n)&&f.call(n)==r}var i=n("../internal/isObjectLike"),r="[object String]",u=Object.prototype,f=u.toString;t.exports=e},{"../internal/isObjectLike":26}],36:[function(n,t){function o(n){return e(n)&&f(n.length)&&!!i[u.call(n)]}var f=n("../internal/isLength"),e=n("../internal/isObjectLike"),i={},r,u;i["[object Float32Array]"]=i["[object Float64Array]"]=i["[object Int8Array]"]=i["[object Int16Array]"]=i["[object Int32Array]"]=i["[object Uint8Array]"]=i["[object Uint8ClampedArray]"]=i["[object Uint16Array]"]=i["[object Uint32Array]"]=!0;i["[object Arguments]"]=i["[object Array]"]=i["[object ArrayBuffer]"]=i["[object Boolean]"]=i["[object Date]"]=i["[object Error]"]=i["[object Function]"]=i["[object Map]"]=i["[object Number]"]=i["[object Object]"]=i["[object RegExp]"]=i["[object Set]"]=i["[object String]"]=i["[object WeakMap]"]=!1;r=Object.prototype;u=r.toString;t.exports=o},{"../internal/isLength":25,"../internal/isObjectLike":26}],37:[function(n,t){function u(n){return i(n,r(n))}var i=n("../internal/baseCopy"),r=n("../object/keysIn");t.exports=u},{"../internal/baseCopy":10,"../object/keysIn":39}],38:[function(n,t){var u=n("../internal/getNative"),f=n("../internal/isArrayLike"),e=n("../lang/isObject"),i=n("../internal/shimKeys"),o=n("../support"),r=u(Object,"keys"),s=r?function(n){var t=n==null?undefined:n.constructor;return typeof t=="function"&&t.prototype===n||(typeof n=="function"?o.enumPrototypes:f(n))?i(n):e(n)?r(n):[]}:i;t.exports=s},{"../internal/getNative":20,"../internal/isArrayLike":21,"../internal/shimKeys":27,"../lang/isObject":33,"../support":41}],39:[function(n,t){function nt(n){var a,t,rt,ot,ut;if(n==null)return[];b(n)||(n=Object(n));a=n.length;a=a&&w(a)&&(y(n)||v(n)||k(n))&&a||0;for(var ft=n.constructor,tt=-1,it=s(ft)&&ft.prototype||r,et=it===n,nt=Array(a),st=a>0,ht=f.enumErrorProps&&(n===l||n instanceof Error),ct=f.enumPrototypes&&s(n);++tt<a;)nt[tt]=tt+"";for(t in n)ct&&t=="prototype"||ht&&(t=="message"||t=="name")||st&&p(t,a)||t=="constructor"&&(et||!u.call(n,t))||nt.push(t);if(f.nonEnumShadows&&n!==r)for(rt=n===d?c:n===l?h:g.call(n),ot=i[rt]||i[e],rt==e&&(it=r),a=o.length;a--;)t=o[a],ut=ot[t],et&&ut||(ut?!u.call(n,t):n[t]===it[t])||nt.push(t);return nt}var a=n("../internal/arrayEach"),v=n("../lang/isArguments"),y=n("../lang/isArray"),s=n("../lang/isFunction"),p=n("../internal/isIndex"),w=n("../internal/isLength"),b=n("../lang/isObject"),k=n("../lang/isString"),f=n("../support"),h="[object Error]",e="[object Object]",c="[object String]",o=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],l=Error.prototype,r=Object.prototype,d=String.prototype,u=r.hasOwnProperty,g=r.toString,i={};i["[object Array]"]=i["[object Date]"]=i["[object Number]"]={constructor:!0,toLocaleString:!0,toString:!0,valueOf:!0};i["[object Boolean]"]=i[c]={constructor:!0,toString:!0,valueOf:!0};i[h]=i["[object Function]"]=i["[object RegExp]"]={constructor:!0,toString:!0};i[e]={constructor:!0};a(o,function(n){var t,r;for(t in i)u.call(i,t)&&(r=i[t],r[n]=u.call(r,n))});t.exports=nt},{"../internal/arrayEach":9,"../internal/isIndex":23,"../internal/isLength":25,"../lang/isArguments":29,"../lang/isArray":30,"../lang/isFunction":31,"../lang/isObject":33,"../lang/isString":35,"../support":41}],40:[function(n,t){var i=n("../internal/baseMerge"),r=n("../internal/createAssigner"),u=r(i);t.exports=u},{"../internal/baseMerge":13,"../internal/createAssigner":17}],41:[function(n,t){var f=Array.prototype,u=Error.prototype,e=Object.prototype,r=e.propertyIsEnumerable,o=f.splice,i={};(function(n){var t=function(){this.x=n},e={"0":n,length:n},f=[],s;t.prototype={valueOf:n,y:n};for(s in new t)f.push(s);i.enumErrorProps=r.call(u,"message")||r.call(u,"name");i.enumPrototypes=r.call(t,"prototype");i.nonEnumShadows=!/valueOf/.test(f);i.ownLast=f[0]!="x";i.spliceObjects=(o.call(e,0,1),!e[0]);i.unindexedChars="x"[0]+Object("x")[0]!="xx"})(1,0);t.exports=i},{}],42:[function(n,t){function i(n){return n}t.exports=i},{}],43:[function(n,t){"use strict";var i=n("object-keys");t.exports=function(){var n,t,r,u,f;if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;if(n={},t=Symbol("test"),typeof t=="string")return!1;r=42;n[t]=r;for(t in n)return!1;return i(n).length!==0?!1:typeof Object.keys=="function"&&Object.keys(n).length!==0?!1:typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(n).length!==0?!1:(u=Object.getOwnPropertySymbols(n),u.length!==1||u[0]!==t)?!1:Object.prototype.propertyIsEnumerable.call(n,t)?typeof Object.getOwnPropertyDescriptor=="function"&&(f=Object.getOwnPropertyDescriptor(n,t),f.value!==r||f.enumerable!==!0)?!1:!0:!1}},{"object-keys":50}],44:[function(n,t){"use strict";var f=n("object-keys"),i=n("function-bind"),e=function(n){return typeof n!="undefined"&&n!==null},o=n("./hasSymbols")(),r=Object,s=i.call(Function.call,Array.prototype.push),u=i.call(Function.call,Object.prototype.propertyIsEnumerable);t.exports=function(n){if(!e(n))throw new TypeError("target must be an object");for(var v=r(n),h,t,l,a,y,i,c=1;c<arguments.length;++c){if(h=r(arguments[c]),l=f(h),o&&Object.getOwnPropertySymbols)for(a=Object.getOwnPropertySymbols(h),t=0;t<a.length;++t)i=a[t],u(h,i)&&s(l,i);for(t=0;t<l.length;++t)i=l[t],y=h[i],u(h,i)&&(v[i]=y)}return v}},{"./hasSymbols":43,"function-bind":49,"object-keys":50}],45:[function(n,t){"use strict";var r=n("define-properties"),i=n("./implementation"),u=n("./polyfill"),f=n("./shim");r(i,{implementation:i,getPolyfill:u,shim:f});t.exports=i},{"./implementation":44,"./polyfill":52,"./shim":53,"define-properties":46}],46:[function(n,t){"use strict";var u=n("object-keys"),f=n("foreach"),e=typeof Symbol=="function"&&typeof Symbol()=="symbol",o=Object.prototype.toString,s=function(n){return typeof n=="function"&&o.call(n)==="[object Function]"},h=function(){var n={},t;try{Object.defineProperty(n,"x",{enumerable:!1,value:n});for(t in n)return!1;return n.x===n}catch(i){return!1}},i=Object.defineProperty&&h(),c=function(n,t,r,u){t in n&&(!s(u)||!u())||(i?Object.defineProperty(n,t,{configurable:!0,enumerable:!1,value:r,writable:!0}):n[t]=r)},r=function(n,t){var r=arguments.length>2?arguments[2]:{},i=u(t);e&&(i=i.concat(Object.getOwnPropertySymbols(t)));f(i,function(i){c(n,i,t[i],r[i])})};r.supportsDescriptors=!!i;t.exports=r},{foreach:47,"object-keys":50}],47:[function(n,t){var i=Object.prototype.hasOwnProperty,r=Object.prototype.toString;t.exports=function(n,t,u){var e,f,o;if(r.call(t)!=="[object Function]")throw new TypeError("iterator must be a function");if(e=n.length,e===+e)for(f=0;f<e;f++)t.call(u,n[f],f,n);else for(o in n)i.call(n,o)&&t.call(u,n[o],o,n)}},{}],48:[function(n,t){var r="Function.prototype.bind called on incompatible ",i=Array.prototype.slice,u=Object.prototype.toString,f="[object Function]";t.exports=function(n){var t=this,o,s;if(typeof t!="function"||u.call(t)!==f)throw new TypeError(r+t);var h=i.call(arguments,1),e,l=function(){if(this instanceof e){var r=t.apply(this,h.concat(i.call(arguments)));return Object(r)===r?r:this}return t.apply(n,h.concat(i.call(arguments)))},a=Math.max(0,t.length-h.length),c=[];for(o=0;o<a;o++)c.push("$"+o);return e=Function("binder","return function ("+c.join(",")+"){ return binder.apply(this,arguments); }")(l),t.prototype&&(s=function(){},s.prototype=t.prototype,e.prototype=new s,s.prototype=null),e}},{}],49:[function(n,t){var i=n("./implementation");t.exports=Function.prototype.bind||i},{"./implementation":48}],50:[function(n,t){"use strict";var i=Object.prototype.hasOwnProperty,e=Object.prototype.toString,s=Array.prototype.slice,o=n("./isArguments"),h=!{toString:null}.propertyIsEnumerable("toString"),c=function(){}.propertyIsEnumerable("prototype"),r=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],f=function(n){var t=n.constructor;return t&&t.prototype===n},l={$console:!0,$frame:!0,$frameElement:!0,$frames:!0,$parent:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},a=function(){if(typeof window=="undefined")return!1;for(var n in window)try{if(!l["$"+n]&&i.call(window,n)&&window[n]!==null&&typeof window[n]=="object")try{f(window[n])}catch(t){return!0}}catch(t){return!0}return!1}(),v=function(n){if(typeof window=="undefined"||!a)return f(n);try{return f(n)}catch(t){return!1}},u=function(n){var a=n!==null&&typeof n=="object",y=e.call(n)==="[object Function]",p=o(n),k=a&&e.call(n)==="[object String]",u=[],w,f,s,l,b,t;if(!a&&!y&&!p)throw new TypeError("Object.keys called on a non-object");if(w=c&&y,k&&n.length>0&&!i.call(n,0))for(f=0;f<n.length;++f)u.push(String(f));if(p&&n.length>0)for(s=0;s<n.length;++s)u.push(String(s));else for(l in n)w&&l==="prototype"||!i.call(n,l)||u.push(String(l));if(h)for(b=v(n),t=0;t<r.length;++t)b&&r[t]==="constructor"||!i.call(n,r[t])||u.push(r[t]);return u};u.shim=function(){var t,n;return Object.keys?(t=function(){return(Object.keys(arguments)||"").length===2}(1,2),t||(n=Object.keys,Object.keys=function(t){return o(t)?n(s.call(t)):n(t)})):Object.keys=u,Object.keys||u};t.exports=u},{"./isArguments":51}],51:[function(n,t){"use strict";var i=Object.prototype.toString;t.exports=function(n){var r=i.call(n),t=r==="[object Arguments]";return t||(t=r!=="[object Array]"&&n!==null&&typeof n=="object"&&typeof n.length=="number"&&n.length>=0&&i.call(n.callee)==="[object Function]"),t}},{}],52:[function(n,t){"use strict";var i=n("./implementation"),r=function(){var n,f,i,e;if(!Object.assign)return!1;var r="abcdefghijklmnopqrst",t=r.split(""),u={};for(n=0;n<t.length;++n)u[t[n]]=t[n];f=Object.assign({},u);i="";for(e in f)i+=e;return r!==i},u=function(){if(!Object.assign||!Object.preventExtensions)return!1;var n=Object.preventExtensions({1:2});try{Object.assign(n,"xy")}catch(t){return n[1]==="y"}};t.exports=function(){return Object.assign?r()?i:u()?i:Object.assign:i}},{"./implementation":44}],53:[function(n,t){"use strict";var i=n("define-properties"),r=n("./polyfill");t.exports=function(){var n=r();return i(Object,{assign:n},{assign:function(){return Object.assign!==n}}),n}},{"./polyfill":52,"define-properties":46}],54:[function(n,t){function i(n,t){var i,r=null;try{i=JSON.parse(n,t)}catch(u){r=u}return[r,i]}t.exports=i},{}],55:[function(n,t){function i(n){return n.replace(/\n\r?\s*/g,"")}t.exports=function(n){for(var r="",t=0;t<arguments.length;t++)r+=i(n[t])+(arguments[t+1]||"");return r}},{}],56:[function(n,t){"use strict";function c(n,t){for(var i=0;i<n.length;i++)t(n[i])}function l(n){for(var t in n)if(n.hasOwnProperty(t))return!1;return!0}function u(n,t,i){var r=n;return o(t)?(i=t,typeof n=="string"&&(r={uri:n})):r=h(t,{uri:n}),r.callback=i,r}function i(n,t,i){return t=u(n,t,i),f(t)}function f(n){function d(){t.readyState===4&&p()}function g(){var n=undefined;if(t.response?n=t.response:t.responseType!=="text"&&t.responseType||(n=t.responseText||t.responseXML),k)try{n=JSON.parse(n)}catch(i){}return n}function c(n){clearTimeout(y);n instanceof Error||(n=new Error(""+(n||"Unknown XMLHttpRequest Error")));n.statusCode=0;u(n,h)}function p(){var r,i,e;w||(clearTimeout(y),r=n.useXDR&&t.status===undefined?200:t.status===1223?204:t.status,i=h,e=null,r!==0?(i={body:g(),statusCode:r,method:f,headers:{},url:a,rawRequest:t},t.getAllResponseHeaders&&(i.headers=s(t.getAllResponseHeaders()))):e=new Error("Internal XMLHttpRequest Error"),u(e,i,i.body))}var u=n.callback,h,t;if(typeof u=="undefined")throw new Error("callback argument missing");u=e(u);h={body:undefined,headers:{},statusCode:0,method:f,url:a,rawRequest:t};t=n.xhr||null;t||(t=n.cors||n.useXDR?new i.XDomainRequest:new i.XMLHttpRequest);var o,w,a=t.url=n.uri||n.url,f=t.method=n.method||"GET",b=n.body||n.data||null,r=t.headers=n.headers||{},v=!!n.sync,k=!1,y;if("json"in n&&(k=!0,r.accept||r.Accept||(r.Accept="application/json"),f!=="GET"&&f!=="HEAD"&&(r["content-type"]||r["Content-Type"]||(r["Content-Type"]="application/json"),b=JSON.stringify(n.json))),t.onreadystatechange=d,t.onload=p,t.onerror=c,t.onprogress=function(){},t.ontimeout=c,t.open(f,a,!v,n.username,n.password),v||(t.withCredentials=!!n.withCredentials),!v&&n.timeout>0&&(y=setTimeout(function(){w=!0;t.abort("timeout");var n=new Error("XMLHttpRequest timeout");n.code="ETIMEDOUT";c(n)},n.timeout)),t.setRequestHeader)for(o in r)r.hasOwnProperty(o)&&t.setRequestHeader(o,r[o]);else if(n.headers&&!l(n.headers))throw new Error("Headers cannot be set on an XDomainRequest object");return"responseType"in n&&(t.responseType=n.responseType),"beforeSend"in n&&typeof n.beforeSend=="function"&&n.beforeSend(t),t.send(b),t}function a(){}var r=n("global/window"),e=n("once"),o=n("is-function"),s=n("parse-headers"),h=n("xtend");t.exports=i;i.XMLHttpRequest=r.XMLHttpRequest||a;i.XDomainRequest="withCredentials"in new i.XMLHttpRequest?i.XMLHttpRequest:r.XDomainRequest;c(["get","put","post","patch","head","delete"],function(n){i[n==="delete"?"del":n]=function(t,i,r){return i=u(t,i,r),i.method=n.toUpperCase(),f(i)}})},{"global/window":2,"is-function":57,once:58,"parse-headers":61,xtend:62}],57:[function(n,t){function r(n){var t=i.call(n);return t==="[object Function]"||typeof n=="function"&&t!=="[object RegExp]"||typeof window!="undefined"&&(n===window.setTimeout||n===window.alert||n===window.confirm||n===window.prompt)}t.exports=r;var i=Object.prototype.toString},{}],58:[function(n,t){function i(n){var t=!1;return function(){if(!t)return t=!0,n.apply(this,arguments)}}t.exports=i;i.proto=i(function(){Object.defineProperty(Function.prototype,"once",{value:function(){return i(this)},configurable:!0})})},{}],59:[function(n,t){function f(n,t,i){if(!u(t))throw new TypeError("iterator must be a function");arguments.length<3&&(i=this);r.call(n)==="[object Array]"?e(n,t,i):typeof n=="string"?o(n,t,i):s(n,t,i)}function e(n,t,r){for(var u=0,f=n.length;u<f;u++)i.call(n,u)&&t.call(r,n[u],u,n)}function o(n,t,i){for(var r=0,u=n.length;r<u;r++)t.call(i,n.charAt(r),r,n)}function s(n,t,r){for(var u in n)i.call(n,u)&&t.call(r,n[u],u,n)}var u=n("is-function"),r,i;t.exports=f;r=Object.prototype.toString;i=Object.prototype.hasOwnProperty},{"is-function":57}],60:[function(n,t,i){function r(n){return n.replace(/^\s*|\s*$/g,"")}i=t.exports=r;i.left=function(n){return n.replace(/^\s*/,"")};i.right=function(n){return n.replace(/\s*$/,"")}},{}],61:[function(n,t){var i=n("trim"),r=n("for-each"),u=function(n){return Object.prototype.toString.call(n)==="[object Array]"};t.exports=function(n){if(!n)return{};var t={};return r(i(n).split("\n"),function(n){var e=n.indexOf(":"),r=i(n.slice(0,e)).toLowerCase(),f=i(n.slice(e+1));typeof t[r]=="undefined"?t[r]=f:u(t[r])?t[r].push(f):t[r]=[t[r],f]}),t}},{"for-each":59,trim:60}],62:[function(n,t){function r(){for(var n,t,u={},r=0;r<arguments.length;r++){n=arguments[r];for(t in n)i.call(n,t)&&(u[t]=n[t])}return u}t.exports=r;var i=Object.prototype.hasOwnProperty},{}],63:[function(n,t,i){"use strict";function u(n){return n&&n.__esModule?n:{"default":n}}function f(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function e(n,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}i.__esModule=!0;var o=n("./button.js"),s=u(o),h=n("./component.js"),c=u(h),r=function(n){function t(i,r){f(this,t);n.call(this,i,r)}return e(t,n),t.prototype.buildCSSClass=function(){return"vjs-big-play-button"},t.prototype.handleClick=function(){this.player_.play()},t}(s["default"]);r.prototype.controlText_="Play Video";c["default"].registerComponent("BigPlayButton",r);i["default"]=r;t.exports=i["default"]},{"./button.js":64,"./component.js":67}],64:[function(n,t,i){"use strict";function e(n){var t,i;if(n&&n.__esModule)return n;if(t={},n!=null)for(i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i]);return t["default"]=n,t}function r(n){return n&&n.__esModule?n:{"default":n}}function h(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function c(n,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}i.__esModule=!0;var l=n("./clickable-component.js"),a=r(l),v=n("./component"),f=r(v),y=n("./utils/events.js"),d=e(y),p=n("./utils/fn.js"),g=e(p),w=n("./utils/log.js"),o=r(w),b=n("global/document"),nt=r(b),k=n("object.assign"),u=r(k),s=function(n){function t(i,r){h(this,t);n.call(this,i,r)}return c(t,n),t.prototype.createEl=function(){var i=arguments.length<=0||arguments[0]===undefined?"button":arguments[0],n=arguments.length<=1||arguments[1]===undefined?{}:arguments[1],t=arguments.length<=2||arguments[2]===undefined?{}:arguments[2],r;return n=u["default"]({className:this.buildCSSClass()},n),i!=="button"&&(o["default"].warn("Creating a Button with an HTML element of "+i+" is deprecated; use ClickableComponent instead."),n=u["default"]({tabIndex:0},n),t=u["default"]({role:"button"},t)),t=u["default"]({type:"button","aria-live":"polite"},t),r=f["default"].prototype.createEl.call(this,i,n,t),this.createControlTextEl(r),r},t.prototype.addChild=function(n){var t=arguments.length<=1||arguments[1]===undefined?{}:arguments[1],i=this.constructor.name;return o["default"].warn("Adding an actionable (user controllable) child to a Button ("+i+") is not supported; use a ClickableComponent instead."),f["default"].prototype.addChild.call(this,n,t)},t.prototype.handleKeyPress=function(t){t.which===32||t.which===13||n.prototype.handleKeyPress.call(this,t)},t}(a["default"]);f["default"].registerComponent("Button",s);i["default"]=s;t.exports=i["default"]},{"./clickable-component.js":65,"./component":67,"./utils/events.js":144,"./utils/fn.js":145,"./utils/log.js":148,"global/document":1,"object.assign":45}],65:[function(n,t,i){"use strict";function u(n){var t,i;if(n&&n.__esModule)return n;if(t={},n!=null)for(i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i]);return t["default"]=n,t}function r(n){return n&&n.__esModule?n:{"default":n}}function l(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function a(n,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}i.__esModule=!0;var v=n("./component"),f=r(v),y=n("./utils/dom.js"),p=u(y),w=n("./utils/events.js"),e=u(w),b=n("./utils/fn.js"),o=u(b),k=n("./utils/log.js"),d=r(k),g=n("global/document"),s=r(g),nt=n("object.assign"),h=r(nt),c=function(n){function t(i,r){l(this,t);n.call(this,i,r);this.emitTapEvents();this.on("tap",this.handleClick);this.on("click",this.handleClick);this.on("focus",this.handleFocus);this.on("blur",this.handleBlur)}return a(t,n),t.prototype.createEl=function(){var t=arguments.length<=0||arguments[0]===undefined?"div":arguments[0],i=arguments.length<=1||arguments[1]===undefined?{}:arguments[1],r=arguments.length<=2||arguments[2]===undefined?{}:arguments[2],u;return i=h["default"]({className:this.buildCSSClass(),tabIndex:0},i),t==="button"&&d["default"].error("Creating a ClickableComponent with an HTML element of "+t+" is not supported; use a Button instead."),r=h["default"]({role:"button","aria-live":"polite"},r),u=n.prototype.createEl.call(this,t,i,r),this.createControlTextEl(u),u},t.prototype.createControlTextEl=function(n){return this.controlTextEl_=p.createEl("span",{className:"vjs-control-text"}),n&&n.appendChild(this.controlTextEl_),this.controlText(this.controlText_),this.controlTextEl_},t.prototype.controlText=function(n){return n?(this.controlText_=n,this.controlTextEl_.innerHTML=this.localize(this.controlText_),this):this.controlText_||"Need Text"},t.prototype.buildCSSClass=function(){return"vjs-control vjs-button "+n.prototype.buildCSSClass.call(this)},t.prototype.addChild=function(t){var i=arguments.length<=1||arguments[1]===undefined?{}:arguments[1];return n.prototype.addChild.call(this,t,i)},t.prototype.enable=function(){return this.removeClass("vjs-disabled"),this.el_.setAttribute("aria-disabled","false"),this},t.prototype.disable=function(){return this.addClass("vjs-disabled"),this.el_.setAttribute("aria-disabled","true"),this},t.prototype.handleClick=function(){},t.prototype.handleFocus=function(){e.on(s["default"],"keydown",o.bind(this,this.handleKeyPress))},t.prototype.handleKeyPress=function(t){t.which===32||t.which===13?(t.preventDefault(),this.handleClick(t)):n.prototype.handleKeyPress&&n.prototype.handleKeyPress.call(this,t)},t.prototype.handleBlur=function(){e.off(s["default"],"keydown",o.bind(this,this.handleKeyPress))},t}(f["default"]);f["default"].registerComponent("ClickableComponent",c);i["default"]=c;t.exports=i["default"]},{"./component":67,"./utils/dom.js":143,"./utils/events.js":144,"./utils/fn.js":145,"./utils/log.js":148,"global/document":1,"object.assign":45}],66:[function(n,t,i){"use strict";function r(n){return n&&n.__esModule?n:{"default":n}}function f(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function e(n,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}i.__esModule=!0;var o=n("./button"),s=r(o),h=n("./component"),c=r(h),u=function(n){function t(i,r){f(this,t);n.call(this,i,r);this.controlText(r&&r.controlText||this.localize("Close"))}return e(t,n),t.prototype.buildCSSClass=function(){return"vjs-close-button "+n.prototype.buildCSSClass.call(this)},t.prototype.handleClick=function(){this.trigger({type:"close",bubbles:!1})},t}(s["default"]);c["default"].registerComponent("CloseButton",u);i["default"]=u;t.exports=i["default"]},{"./button":64,"./component":67}],67:[function(n,t,i){"use strict";function s(n){var t,i;if(n&&n.__esModule)return n;if(t={},n!=null)for(i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i]);return t["default"]=n,t}function o(n){return n&&n.__esModule?n:{"default":n}}function v(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}i.__esModule=!0;var y=n("global/window"),r=o(y),p=n("./utils/dom.js"),u=s(p),w=n("./utils/fn.js"),f=s(w),b=n("./utils/guid.js"),k=s(b),d=n("./utils/events.js"),e=s(d),g=n("./utils/log.js"),h=o(g),nt=n("./utils/to-title-case.js"),c=o(nt),tt=n("object.assign"),it=o(tt),rt=n("./utils/merge-options.js"),l=o(rt),a=function(){function n(t,i,r){if(v(this,n),this.player_=!t&&this.play?t=this:t,this.options_=l["default"]({},this.options_),i=this.options_=l["default"](this.options_,i),this.id_=i.id||i.el&&i.el.id,!this.id_){var u=t&&t.id&&t.id()||"no_player";this.id_=u+"_component_"+k.newGUID()}this.name_=i.name||null;i.el?this.el_=i.el:i.createEl!==!1&&(this.el_=this.createEl());this.children_=[];this.childIndex_={};this.childNameIndex_={};i.initChildren!==!1&&this.initChildren();this.ready(r);i.reportTouchActivity!==!1&&this.enableTouchActivity()}return n.prototype.dispose=function(){if(this.trigger({type:"dispose",bubbles:!1}),this.children_)for(var n=this.children_.length-1;n>=0;n--)this.children_[n].dispose&&this.children_[n].dispose();this.children_=null;this.childIndex_=null;this.childNameIndex_=null;this.off();this.el_.parentNode&&this.el_.parentNode.removeChild(this.el_);u.removeElData(this.el_);this.el_=null},n.prototype.player=function(){return this.player_},n.prototype.options=function(n){return(h["default"].warn("this.options() has been deprecated and will be moved to the constructor in 6.0"),!n)?this.options_:(this.options_=l["default"](this.options_,n),this.options_)},n.prototype.el=function(){return this.el_},n.prototype.createEl=function(n,t,i){return u.createEl(n,t,i)},n.prototype.localize=function(n){var r=this.player_.language&&this.player_.language(),u=this.player_.languages&&this.player_.languages(),t,f,i;return!r||!u?n:(t=u[r],t&&t[n])?t[n]:(f=r.split("-")[0],i=u[f],i&&i[n])?i[n]:n},n.prototype.contentEl=function(){return this.contentEl_||this.el_},n.prototype.id=function(){return this.id_},n.prototype.name=function(){return this.name_},n.prototype.children=function(){return this.children_},n.prototype.getChildById=function(n){return this.childIndex_[n]},n.prototype.getChild=function(n){return this.childNameIndex_[n]},n.prototype.addChild=function(t){var r=arguments.length<=1||arguments[1]===undefined?{}:arguments[1],o=arguments.length<=2||arguments[2]===undefined?this.children_.length:arguments[2],i=undefined,u=undefined,e,f,s,l;if(typeof t=="string"){if(u=t,r||(r={}),r===!0&&(h["default"].warn("Initializing a child component with `true` is deprecated. Children should be defined in an array when possible, but if necessary use an object instead of `true`."),r={}),e=r.componentClass||c["default"](u),r.name=u,f=n.getComponent(e),!f)throw new Error("Component "+e+" does not exist");if(typeof f!="function")return null;i=new f(this.player_||this,r)}else i=t;return this.children_.splice(o,0,i),typeof i.id=="function"&&(this.childIndex_[i.id()]=i),u=u||i.name&&i.name(),u&&(this.childNameIndex_[u]=i),typeof i.el=="function"&&i.el()&&(s=this.contentEl().children,l=s[o]||null,this.contentEl().insertBefore(i.el(),l)),i},n.prototype.removeChild=function(n){var i,t,r;if(typeof n=="string"&&(n=this.getChild(n)),n&&this.children_){for(i=!1,t=this.children_.length-1;t>=0;t--)if(this.children_[t]===n){i=!0;this.children_.splice(t,1);break}i&&(this.childIndex_[n.id()]=null,this.childNameIndex_[n.name()]=null,r=n.el(),r&&r.parentNode===this.contentEl()&&this.contentEl().removeChild(n.el()))}},n.prototype.initChildren=function(){var t=this,i=this.options_.children;i&&function(){var u=t.options_,f=function(n){var r=n.name,i=n.opts,f;(u[r]!==undefined&&(i=u[r]),i!==!1)&&(i===!0&&(i={}),i.playerOptions=t.options_.playerOptions,f=t.addChild(r,i),f&&(t[r]=f))},r=undefined,e=n.getComponent("Tech");r=Array.isArray(i)?i:Object.keys(i);r.concat(Object.keys(t.options_).filter(function(n){return!r.some(function(t){return typeof t=="string"?n===t:n===t.name})})).map(function(n){var r=undefined,u=undefined;return typeof n=="string"?(r=n,u=i[r]||t.options_[r]||{}):(r=n.name,u=n),{name:r,opts:u}}).filter(function(t){var i=n.getComponent(t.opts.componentClass||c["default"](t.name));return i&&!e.isTech(i)}).forEach(f)}()},n.prototype.buildCSSClass=function(){return""},n.prototype.on=function(n,t,i){var r=this;if(typeof n=="string"||Array.isArray(n))e.on(this.el_,n,f.bind(this,t));else(function(){var u=n,h=t,o=f.bind(r,i),c=function(){return r.off(u,h,o)},s;c.guid=o.guid;r.on("dispose",c);if(s=function(){return r.off("dispose",c)},s.guid=o.guid,n.nodeName){e.on(u,h,o);e.on(u,"dispose",s)}else if(typeof n.on=="function"){u.on(h,o);u.on("dispose",s)}})();return this},n.prototype.off=function(n,t,i){if(!n||typeof n=="string"||Array.isArray(n))e.off(this.el_,n,t);else{var u=n,o=t,r=f.bind(this,i);this.off("dispose",r);n.nodeName?(e.off(u,o,r),e.off(u,"dispose",r)):(u.off(o,r),u.off("dispose",r))}return this},n.prototype.one=function(n,t,i){var r=this,u=arguments;if(typeof n=="string"||Array.isArray(n))e.one(this.el_,n,f.bind(this,t));else(function(){var o=n,s=t,h=f.bind(r,i),e=function e(){r.off(o,s,e);h.apply(null,u)};e.guid=h.guid;r.on(o,s,e)})();return this},n.prototype.trigger=function(n,t){return e.trigger(this.el_,n,t),this},n.prototype.ready=function(n){var t=arguments.length<=1||arguments[1]===undefined?!1:arguments[1];return n&&(this.isReady_?t?n.call(this):this.setTimeout(n,1):(this.readyQueue_=this.readyQueue_||[],this.readyQueue_.push(n))),this},n.prototype.triggerReady=function(){this.isReady_=!0;this.setTimeout(function(){var n=this.readyQueue_;this.readyQueue_=[];n&&n.length>0&&n.forEach(function(n){n.call(this)},this);this.trigger("ready")},1)},n.prototype.$=function(n,t){return u.$(n,t||this.contentEl())},n.prototype.$$=function(n,t){return u.$$(n,t||this.contentEl())},n.prototype.hasClass=function(n){return u.hasElClass(this.el_,n)},n.prototype.addClass=function(n){return u.addElClass(this.el_,n),this},n.prototype.removeClass=function(n){return u.removeElClass(this.el_,n),this},n.prototype.toggleClass=function(n,t){return u.toggleElClass(this.el_,n,t),this},n.prototype.show=function(){return this.removeClass("vjs-hidden"),this},n.prototype.hide=function(){return this.addClass("vjs-hidden"),this},n.prototype.lockShowing=function(){return this.addClass("vjs-lock-showing"),this},n.prototype.unlockShowing=function(){return this.removeClass("vjs-lock-showing"),this},n.prototype.width=function(n,t){return this.dimension("width",n,t)},n.prototype.height=function(n,t){return this.dimension("height",n,t)},n.prototype.dimensions=function(n,t){return this.width(n,!0).height(t)},n.prototype.dimension=function(n,t,i){if(t!==undefined)return(t===null||t!==t)&&(t=0),this.el_.style[n]=(""+t).indexOf("%")!==-1||(""+t).indexOf("px")!==-1?t:t==="auto"?"":t+"px",i||this.trigger("resize"),this;if(!this.el_)return 0;var r=this.el_.style[n],u=r.indexOf("px");return u!==-1?parseInt(r.slice(0,u),10):parseInt(this.el_["offset"+c["default"](n)],10)},n.prototype.currentDimension=function(n){var t=0,i,u;if(n!=="width"&&n!=="height")throw new Error("currentDimension only accepts width or height value");return typeof r["default"].getComputedStyle=="function"?(i=r["default"].getComputedStyle(this.el_),t=i.getPropertyValue(n)||i[n]):this.el_.currentStyle&&(u="offset"+c["default"](n),t=this.el_[u]),parseFloat(t)},n.prototype.currentDimensions=function(){return{width:this.currentDimension("width"),height:this.currentDimension("height")}},n.prototype.currentWidth=function(){return this.currentDimension("width")},n.prototype.currentHeight=function(){return this.currentDimension("height")},n.prototype.emitTapEvents=function(){var r=0,n=null,u=10,f=200,t=undefined,i;this.on("touchstart",function(i){i.touches.length===1&&(n=it["default"]({},i.touches[0]),r=(new Date).getTime(),t=!0)});this.on("touchmove",function(i){if(i.touches.length>1)t=!1;else if(n){var r=i.touches[0].pageX-n.pageX,f=i.touches[0].pageY-n.pageY,e=Math.sqrt(r*r+f*f);e>u&&(t=!1)}});i=function(){t=!1};this.on("touchleave",i);this.on("touchcancel",i);this.on("touchend",function(i){if(n=null,t===!0){var u=(new Date).getTime()-r;u<f&&(i.preventDefault(),this.trigger("tap"))}})},n.prototype.enableTouchActivity=function(){var n,t,i;if(this.player()&&this.player().reportUserActivity){n=f.bind(this.player(),this.player().reportUserActivity);t=undefined;this.on("touchstart",function(){n();this.clearInterval(t);t=this.setInterval(n,250)});i=function(){n();this.clearInterval(t)};this.on("touchmove",n);this.on("touchend",i);this.on("touchcancel",i)}},n.prototype.setTimeout=function(n,t){n=f.bind(this,n);var i=r["default"].setTimeout(n,t),u=function(){this.clearTimeout(i)};u.guid="vjs-timeout-"+i;this.on("dispose",u);return i},n.prototype.clearTimeout=function(n){r["default"].clearTimeout(n);var t=function(){};return t.guid="vjs-timeout-"+n,this.off("dispose",t),n},n.prototype.setInterval=function(n,t){n=f.bind(this,n);var i=r["default"].setInterval(n,t),u=function(){this.clearInterval(i)};u.guid="vjs-interval-"+i;this.on("dispose",u);return i},n.prototype.clearInterval=function(n){r["default"].clearInterval(n);var t=function(){};return t.guid="vjs-interval-"+n,this.off("dispose",t),n},n.registerComponent=function(t,i){return n.components_||(n.components_={}),n.components_[t]=i,i},n.getComponent=function(t){return n.components_&&n.components_[t]?n.components_[t]:r["default"]&&r["default"].videojs&&r["default"].videojs[t]?(h["default"].warn("The "+t+" component was added to the videojs object when it should be registered using videojs.registerComponent(name, component)"),r["default"].videojs[t]):void 0},n.extend=function(t){var u,i,r;t=t||{};h["default"].warn("Component.extend({}) has been deprecated, use videojs.extend(Component, {}) instead");u=t.init||t.init||this.prototype.init||this.prototype.init||function(){};i=function(){u.apply(this,arguments)};i.prototype=Object.create(this.prototype);i.prototype.constructor=i;i.extend=n.extend;for(r in t)t.hasOwnProperty(r)&&(i.prototype[r]=t[r]);return i},n}();a.registerComponent("Component",a);i["default"]=a;t.exports=i["default"]},{"./utils/dom.js":143,"./utils/events.js":144,"./utils/fn.js":145,"./utils/guid.js":147,"./utils/log.js":148,"./utils/merge-options.js":149,"./utils/to-title-case.js":152,"global/window":2,"object.assign":45}],68:[function(n,t,i){"use strict";function f(n){var t,i;if(n&&n.__esModule)return n;if(t={},n!=null)for(i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i]);return t["default"]=n,t}function r(n){return n&&n.__esModule?n:{"default":n}}function e(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function o(n,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}i.__esModule=!0;var s=n("../track-button.js"),h=r(s),c=n("../../component.js"),l=r(c),a=n("../../utils/fn.js"),p=f(a),v=n("./audio-track-menu-item.js"),y=r(v),u=function(n){function t(i){var r=arguments.length<=1||arguments[1]===undefined?{}:arguments[1];e(this,t);r.tracks=i.audioTracks&&i.audioTracks();n.call(this,i,r);this.el_.setAttribute("aria-label","Audio Menu")}return o(t,n),t.prototype.buildCSSClass=function(){return"vjs-audio-button "+n.prototype.buildCSSClass.call(this)},t.prototype.createItems=function(){var t=arguments.length<=0||arguments[0]===undefined?[]:arguments[0],i=this.player_.audioTracks&&this.player_.audioTracks(),n,r;if(!i)return t;for(n=0;n<i.length;n++)r=i[n],t.push(new y["default"](this.player_,{selectable:!0,track:r}));return t},t}(h["default"]);l["default"].registerComponent("AudioTrackButton",u);i["default"]=u;t.exports=i["default"]},{"../../component.js":67,"../../utils/fn.js":145,"../track-button.js":98,"./audio-track-menu-item.js":69}],69:[function(n,t,i){"use strict";function f(n){var t,i;if(n&&n.__esModule)return n;if(t={},n!=null)for(i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i]);return t["default"]=n,t}function r(n){return n&&n.__esModule?n:{"default":n}}function e(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function o(n,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}i.__esModule=!0;var s=n("../../menu/menu-item.js"),h=r(s),c=n("../../component.js"),l=r(c),a=n("../../utils/fn.js"),v=f(a),u=function(n){function t(i,r){var o=this,u,f;e(this,t);u=r.track;f=i.audioTracks();r.label=u.label||u.language||"Unknown";r.selected=u.enabled;n.call(this,i,r);this.track=u;f&&function(){var n=v.bind(o,o.handleTracksChange);f.addEventListener("change",n);o.on("dispose",function(){f.removeEventListener("change",n)})}()}return o(t,n),t.prototype.handleClick=function(t){var r=this.player_.audioTracks(),i,u;if(n.prototype.handleClick.call(this,t),r)for(i=0;i<r.length;i++)u=r[i],u===this.track&&(u.enabled=!0)},t.prototype.handleTracksChange=function(){this.selected(this.track.enabled)},t}(h["default"]);l["default"].registerComponent("AudioTrackMenuItem",u);i["default"]=u;t.exports=i["default"]},{"../../component.js":67,"../../menu/menu-item.js":110,"../../utils/fn.js":145}],70:[function(n,t,i){"use strict";function r(n){return n&&n.__esModule?n:{"default":n}}function e(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function o(n,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}i.__esModule=!0;var s=n("../component.js"),f=r(s),h=n("./play-toggle.js"),et=r(h),c=n("./time-controls/current-time-display.js"),ot=r(c),l=n("./time-controls/duration-display.js"),st=r(l),a=n("./time-controls/time-divider.js"),ht=r(a),v=n("./time-controls/remaining-time-display.js"),ct=r(v),y=n("./live-display.js"),lt=r(y),p=n("./progress-control/progress-control.js"),at=r(p),w=n("./fullscreen-toggle.js"),vt=r(w),b=n("./volume-control/volume-control.js"),yt=r(b),k=n("./volume-menu-button.js"),pt=r(k),d=n("./mute-toggle.js"),wt=r(d),g=n("./text-track-controls/chapters-button.js"),bt=r(g),nt=n("./text-track-controls/descriptions-button.js"),kt=r(nt),tt=n("./text-track-controls/subtitles-button.js"),dt=r(tt),it=n("./text-track-controls/captions-button.js"),gt=r(it),rt=n("./audio-track-controls/audio-track-button.js"),ni=r(rt),ut=n("./playback-rate-menu/playback-rate-menu-button.js"),ti=r(ut),ft=n("./spacer-controls/custom-control-spacer.js"),ii=r(ft),u=function(n){function t(){e(this,t);n.apply(this,arguments)}return o(t,n),t.prototype.createEl=function(){return n.prototype.createEl.call(this,"div",{className:"vjs-control-bar",dir:"ltr"},{role:"group"})},t}(f["default"]);u.prototype.options_={loadEvent:"play",children:["playToggle","volumeMenuButton","currentTimeDisplay","timeDivider","durationDisplay","progressControl","liveDisplay","remainingTimeDisplay","customControlSpacer","playbackRateMenuButton","chaptersButton","descriptionsButton","subtitlesButton","captionsButton","audioTrackButton","fullscreenToggle"]};f["default"].registerComponent("ControlBar",u);i["default"]=u;t.exports=i["default"]},{"../component.js":67,"./audio-track-controls/audio-track-button.js":68,"./fullscreen-toggle.js":71,"./live-display.js":72,"./mute-toggle.js":73,"./play-toggle.js":74,"./playback-rate-menu/playback-rate-menu-button.js":75,"./progress-control/progress-control.js":80,"./spacer-controls/custom-control-spacer.js":83,"./text-track-controls/captions-button.js":86,"./text-track-controls/chapters-button.js":87,"./text-track-controls/descriptions-button.js":89,"./text-track-controls/subtitles-button.js":91,"./time-controls/current-time-display.js":94,"./time-controls/duration-display.js":95,"./time-controls/remaining-time-display.js":96,"./time-controls/time-divider.js":97,"./volume-control/volume-control.js":100,"./volume-menu-button.js":102}],71:[function(n,t,i){"use strict";function u(n){return n&&n.__esModule?n:{"default":n}}function f(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function e(n,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}i.__esModule=!0;var o=n("../button.js"),s=u(o),h=n("../component.js"),c=u(h),r=function(n){function t(){f(this,t);n.apply(this,arguments)}return e(t,n),t.prototype.buildCSSClass=function(){return"vjs-fullscreen-control "+n.prototype.buildCSSClass.call(this)},t.prototype.handleClick=function(){this.player_.isFullscreen()?(this.player_.exitFullscreen(),this.controlText("Fullscreen")):(this.player_.requestFullscreen(),this.controlText("Non-Fullscreen"))},t}(s["default"]);r.prototype.controlText_="Fullscreen";c["default"].registerComponent("FullscreenToggle",r);i["default"]=r;t.exports=i["default"]},{"../button.js":64,"../component.js":67}],72:[function(n,t,i){"use strict";function f(n){var t,i;if(n&&n.__esModule)return n;if(t={},n!=null)for(i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i]);return t["default"]=n,t}function e(n){return n&&n.__esModule?n:{"default":n}}function o(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function s(n,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}i.__esModule=!0;var h=n("../component"),r=e(h),c=n("../utils/dom.js"),l=f(c),u=function(n){function t(i,r){o(this,t);n.call(this,i,r);this.updateShowing();this.on(this.player(),"durationchange",this.updateShowing)}return s(t,n),t.prototype.createEl=function(){var t=n.prototype.createEl.call(this,"div",{className:"vjs-live-control vjs-control"});return this.contentEl_=l.createEl("div",{className:"vjs-live-display",innerHTML:'<span class="vjs-control-text">'+this.localize("Stream Type")+"<\/span>"+this.localize("LIVE")},{"aria-live":"off"}),t.appendChild(this.contentEl_),t},t.prototype.updateShowing=function(){this.player().duration()===Infinity?this.show():this.hide()},t}(r["default"]);r["default"].registerComponent("LiveDisplay",u);i["default"]=u;t.exports=i["default"]},{"../component":67,"../utils/dom.js":143}],73:[function(n,t,i){"use strict";function e(n){var t,i;if(n&&n.__esModule)return n;if(t={},n!=null)for(i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i]);return t["default"]=n,t}function u(n){return n&&n.__esModule?n:{"default":n}}function o(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function s(n,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}i.__esModule=!0;var h=n("../button"),c=u(h),l=n("../component"),a=u(l),v=n("../utils/dom.js"),f=e(v),r=function(n){function t(i,r){o(this,t);n.call(this,i,r);this.on(i,"volumechange",this.update);i.tech_&&i.tech_.featuresVolumeControl===!1&&this.addClass("vjs-hidden");this.on(i,"loadstart",function(){this.update();i.tech_.featuresVolumeControl===!1?this.addClass("vjs-hidden"):this.removeClass("vjs-hidden")})}return s(t,n),t.prototype.buildCSSClass=function(){return"vjs-mute-control "+n.prototype.buildCSSClass.call(this)},t.prototype.handleClick=function(){this.player_.muted(this.player_.muted()?!1:!0)},t.prototype.update=function(){var i=this.player_.volume(),n=3,r,t;for(i===0||this.player_.muted()?n=0:i<.33?n=1:i<.67&&(n=2),r=this.player_.muted()?"Unmute":"Mute",this.controlText()!==r&&this.controlText(r),t=0;t<4;t++)f.removeElClass(this.el_,"vjs-vol-"+t);f.addElClass(this.el_,"vjs-vol-"+n)},t}(c["default"]);r.prototype.controlText_="Mute";a["default"].registerComponent("MuteToggle",r);i["default"]=r;t.exports=i["default"]},{"../button":64,"../component":67,"../utils/dom.js":143}],74:[function(n,t,i){"use strict";function u(n){return n&&n.__esModule?n:{"default":n}}function f(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function e(n,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}i.__esModule=!0;var o=n("../button.js"),s=u(o),h=n("../component.js"),c=u(h),r=function(n){function t(i,r){f(this,t);n.call(this,i,r);this.on(i,"play",this.handlePlay);this.on(i,"pause",this.handlePause)}return e(t,n),t.prototype.buildCSSClass=function(){return"vjs-play-control "+n.prototype.buildCSSClass.call(this)},t.prototype.handleClick=function(){this.player_.paused()?this.player_.play():this.player_.pause()},t.prototype.handlePlay=function(){this.removeClass("vjs-paused");this.addClass("vjs-playing");this.controlText("Pause")},t.prototype.handlePause=function(){this.removeClass("vjs-playing");this.addClass("vjs-paused");this.controlText("Play")},t}(s["default"]);r.prototype.controlText_="Play";c["default"].registerComponent("PlayToggle",r);i["default"]=r;t.exports=i["default"]},{"../button.js":64,"../component.js":67}],75:[function(n,t,i){"use strict";function f(n){var t,i;if(n&&n.__esModule)return n;if(t={},n!=null)for(i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i]);return t["default"]=n,t}function r(n){return n&&n.__esModule?n:{"default":n}}function e(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function o(n,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}i.__esModule=!0;var s=n("../../menu/menu-button.js"),h=r(s),c=n("../../menu/menu.js"),l=r(c),a=n("./playback-rate-menu-item.js"),v=r(a),y=n("../../component.js"),p=r(y),w=n("../../utils/dom.js"),b=f(w),u=function(n){function t(i,r){e(this,t);n.call(this,i,r);this.updateVisibility();this.updateLabel();this.on(i,"loadstart",this.updateVisibility);this.on(i,"ratechange",this.updateLabel)}return o(t,n),t.prototype.createEl=function(){var t=n.prototype.createEl.call(this);return this.labelEl_=b.createEl("div",{className:"vjs-playback-rate-value",innerHTML:1}),t.appendChild(this.labelEl_),t},t.prototype.buildCSSClass=function(){return"vjs-playback-rate "+n.prototype.buildCSSClass.call(this)},t.prototype.createMenu=function(){var i=new l["default"](this.player()),t=this.playbackRates(),n;if(t)for(n=t.length-1;n>=0;n--)i.addChild(new v["default"](this.player(),{rate:t[n]+"x"}));return i},t.prototype.updateARIAAttributes=function(){this.el().setAttribute("aria-valuenow",this.player().playbackRate())},t.prototype.handleClick=function(){for(var r=this.player().playbackRate(),n=this.playbackRates(),i=n[0],t=0;t<n.length;t++)if(n[t]>r){i=n[t];break}this.player().playbackRate(i)},t.prototype.playbackRates=function(){return this.options_.playbackRates||this.options_.playerOptions&&this.options_.playerOptions.playbackRates},t.prototype.playbackRateSupported=function(){return this.player().tech_&&this.player().tech_.featuresPlaybackRate&&this.playbackRates()&&this.playbackRates().length>0},t.prototype.updateVisibility=function(){this.playbackRateSupported()?this.removeClass("vjs-hidden"):this.addClass("vjs-hidden")},t.prototype.updateLabel=function(){this.playbackRateSupported()&&(this.labelEl_.innerHTML=this.player().playbackRate()+"x")},t}(h["default"]);u.prototype.controlText_="Playback Rate";p["default"].registerComponent("PlaybackRateMenuButton",u);i["default"]=u;t.exports=i["default"]},{"../../component.js":67,"../../menu/menu-button.js":109,"../../menu/menu.js":111,"../../utils/dom.js":143,"./playback-rate-menu-item.js":76}],76:[function(n,t,i){"use strict";function u(n){return n&&n.__esModule?n:{"default":n}}function f(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function e(n,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}i.__esModule=!0;var o=n("../../menu/menu-item.js"),s=u(o),h=n("../../component.js"),c=u(h),r=function(n){function t(i,r){f(this,t);var u=r.rate,e=parseFloat(u,10);r.label=u;r.selected=e===1;n.call(this,i,r);this.label=u;this.rate=e;this.on(i,"ratechange",this.update)}return e(t,n),t.prototype.handleClick=function(){n.prototype.handleClick.call(this);this.player().playbackRate(this.rate)},t.prototype.update=function(){this.selected(this.player().playbackRate()===this.rate)},t}(s["default"]);r.prototype.contentElType="button";c["default"].registerComponent("PlaybackRateMenuItem",r);i["default"]=r;t.exports=i["default"]},{"../../component.js":67,"../../menu/menu-item.js":110}],77:[function(n,t,i){"use strict";function f(n){var t,i;if(n&&n.__esModule)return n;if(t={},n!=null)for(i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i]);return t["default"]=n,t}function e(n){return n&&n.__esModule?n:{"default":n}}function o(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function s(n,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}i.__esModule=!0;var h=n("../../component.js"),r=e(h),c=n("../../utils/dom.js"),l=f(c),u=function(n){function t(i,r){o(this,t);n.call(this,i,r);this.on(i,"progress",this.update)}return s(t,n),t.prototype.createEl=function(){return n.prototype.createEl.call(this,"div",{className:"vjs-load-progress",innerHTML:'<span class="vjs-control-text"><span>'+this.localize("Loaded")+"<\/span>: 0%<\/span>"})},t.prototype.update=function(){var t=this.player_.buffered(),o=this.player_.duration(),r=this.player_.bufferedEnd(),u=this.el_.children,f=function(n,t){var i=n/t||0;return(i>=1?1:i)*100+"%"},n;for(this.el_.style.width=f(r,o),n=0;n<t.length;n++){var e=t.start(n),s=t.end(n),i=u[n];i||(i=this.el_.appendChild(l.createEl()));i.style.left=f(e,r);i.style.width=f(s-e,r)}for(n=u.length;n>t.length;n--)this.el_.removeChild(u[n-1])},t}(r["default"]);r["default"].registerComponent("LoadProgressBar",u);i["default"]=u;t.exports=i["default"]},{"../../component.js":67,"../../utils/dom.js":143}],78:[function(n,t,i){"use strict";function e(n){var t,i;if(n&&n.__esModule)return n;if(t={},n!=null)for(i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i]);return t["default"]=n,t}function r(n){return n&&n.__esModule?n:{"default":n}}function h(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function c(n,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}i.__esModule=!0;var l=n("global/window"),u=r(l),a=n("../../component.js"),o=r(a),v=n("../../utils/dom.js"),f=e(v),y=n("../../utils/fn.js"),p=e(y),w=n("../../utils/format-time.js"),b=r(w),k=n("lodash-compat/function/throttle"),d=r(k),s=function(n){function t(i,r){var u=this;h(this,t);n.call(this,i,r);r.playerOptions&&r.playerOptions.controlBar&&r.playerOptions.controlBar.progressControl&&r.playerOptions.controlBar.progressControl.keepTooltipsInside&&(this.keepTooltipsInside=r.playerOptions.controlBar.progressControl.keepTooltipsInside);this.keepTooltipsInside&&(this.tooltip=f.createEl("div",{className:"vjs-time-tooltip"}),this.el().appendChild(this.tooltip),this.addClass("vjs-keep-tooltips-inside"));this.update(0,0);i.on("ready",function(){u.on(i.controlBar.progressControl.el(),"mousemove",d["default"](p.bind(u,u.handleMouseMove),25))})}return c(t,n),t.prototype.createEl=function(){return n.prototype.createEl.call(this,"div",{className:"vjs-mouse-display"})},t.prototype.handleMouseMove=function(n){var t=this.player_.duration(),i=this.calculateDistance(n)*t,r=n.pageX-f.findElPosition(this.el().parentNode).left;this.update(i,r)},t.prototype.update=function(n,t){var i=b["default"](n,this.player_.duration());if(this.el().style.left=t+"px",this.el().setAttribute("data-current-time",i),this.keepTooltipsInside){var r=this.clampPosition_(t),f=t-r+1,e=parseFloat(u["default"].getComputedStyle(this.tooltip).width),o=e/2;this.tooltip.innerHTML=i;this.tooltip.style.right="-"+(o-f)+"px"}},t.prototype.calculateDistance=function(n){return f.getPointerPosition(this.el().parentNode,n).x},t.prototype.clampPosition_=function(n){if(!this.keepTooltipsInside)return n;var r=parseFloat(u["default"].getComputedStyle(this.player().el()).width),f=parseFloat(u["default"].getComputedStyle(this.tooltip).width),t=f/2,i=n;return n<t?i=Math.ceil(t):n>r-t&&(i=Math.floor(r-t)),i},t}(o["default"]);o["default"].registerComponent("MouseTimeDisplay",s);i["default"]=s;t.exports=i["default"]},{"../../component.js":67,"../../utils/dom.js":143,"../../utils/fn.js":145,"../../utils/format-time.js":146,"global/window":2,"lodash-compat/function/throttle":7}],79:[function(n,t,i){"use strict";function r(n){var t,i;if(n&&n.__esModule)return n;if(t={},n!=null)for(i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i]);return t["default"]=n,t}function u(n){return n&&n.__esModule?n:{"default":n}}function o(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function s(n,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}i.__esModule=!0;var h=n("../../component.js"),f=u(h),c=n("../../utils/fn.js"),l=r(c),a=n("../../utils/dom.js"),p=r(a),v=n("../../utils/format-time.js"),y=u(v),e=function(n){function t(i,r){o(this,t);n.call(this,i,r);this.updateDataAttr();this.on(i,"timeupdate",this.updateDataAttr);i.ready(l.bind(this,this.updateDataAttr));r.playerOptions&&r.playerOptions.controlBar&&r.playerOptions.controlBar.progressControl&&r.playerOptions.controlBar.progressControl.keepTooltipsInside&&(this.keepTooltipsInside=r.playerOptions.controlBar.progressControl.keepTooltipsInside);this.keepTooltipsInside&&this.addClass("vjs-keep-tooltips-inside")}return s(t,n),t.prototype.createEl=function(){return n.prototype.createEl.call(this,"div",{className:"vjs-play-progress vjs-slider-bar",innerHTML:'<span class="vjs-control-text"><span>'+this.localize("Progress")+"<\/span>: 0%<\/span>"})},t.prototype.updateDataAttr=function(){var n=this.player_.scrubbing()?this.player_.getCache().currentTime:this.player_.currentTime();this.el_.setAttribute("data-current-time",y["default"](n,this.player_.duration()))},t}(f["default"]);f["default"].registerComponent("PlayProgressBar",e);i["default"]=e;t.exports=i["default"]},{"../../component.js":67,"../../utils/dom.js":143,"../../utils/fn.js":145,"../../utils/format-time.js":146}],80:[function(n,t,i){"use strict";function r(n){return n&&n.__esModule?n:{"default":n}}function e(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function o(n,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}i.__esModule=!0;var s=n("../../component.js"),f=r(s),h=n("./seek-bar.js"),l=r(h),c=n("./mouse-time-display.js"),a=r(c),u=function(n){function t(){e(this,t);n.apply(this,arguments)}return o(t,n),t.prototype.createEl=function(){return n.prototype.createEl.call(this,"div",{className:"vjs-progress-control vjs-control"})},t}(f["default"]);u.prototype.options_={children:["seekBar"]};f["default"].registerComponent("ProgressControl",u);i["default"]=u;t.exports=i["default"]},{"../../component.js":67,"./mouse-time-display.js":78,"./seek-bar.js":81}],81:[function(n,t,i){"use strict";function e(n){var t,i;if(n&&n.__esModule)return n;if(t={},n!=null)for(i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i]);return t["default"]=n,t}function r(n){return n&&n.__esModule?n:{"default":n}}function o(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function s(n,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}i.__esModule=!0;var h=n("global/window"),f=r(h),c=n("../../slider/slider.js"),l=r(c),a=n("../../component.js"),v=r(a),y=n("./load-progress-bar.js"),tt=r(y),p=n("./play-progress-bar.js"),it=r(p),w=n("./tooltip-progress-bar.js"),rt=r(w),b=n("../../utils/fn.js"),k=e(b),d=n("../../utils/format-time.js"),g=r(d),nt=n("object.assign"),ut=r(nt),u=function(n){function t(i,r){o(this,t);n.call(this,i,r);this.on(i,"timeupdate",this.updateProgress);this.on(i,"ended",this.updateProgress);i.ready(k.bind(this,this.updateProgress));r.playerOptions&&r.playerOptions.controlBar&&r.playerOptions.controlBar.progressControl&&r.playerOptions.controlBar.progressControl.keepTooltipsInside&&(this.keepTooltipsInside=r.playerOptions.controlBar.progressControl.keepTooltipsInside);this.keepTooltipsInside&&(this.tooltipProgressBar=this.addChild("TooltipProgressBar"))}return s(t,n),t.prototype.createEl=function(){return n.prototype.createEl.call(this,"div",{className:"vjs-progress-holder"},{"aria-label":"progress bar"})},t.prototype.updateProgress=function(){if(this.updateAriaAttributes(this.el_),this.keepTooltipsInside){this.updateAriaAttributes(this.tooltipProgressBar.el_);this.tooltipProgressBar.el_.style.width=this.bar.el_.style.width;var i=parseFloat(f["default"].getComputedStyle(this.player().el()).width),n=parseFloat(f["default"].getComputedStyle(this.tooltipProgressBar.tooltip).width),t=this.tooltipProgressBar.el().style;t.maxWidth=Math.floor(i-n/2)+"px";t.minWidth=Math.ceil(n/2)+"px";t.right="-"+n/2+"px"}},t.prototype.updateAriaAttributes=function(n){var t=this.player_.scrubbing()?this.player_.getCache().currentTime:this.player_.currentTime();n.setAttribute("aria-valuenow",(this.getPercent()*100).toFixed(2));n.setAttribute("aria-valuetext",g["default"](t,this.player_.duration()))},t.prototype.getPercent=function(){var n=this.player_.currentTime()/this.player_.duration();return n>=1?1:n},t.prototype.handleMouseDown=function(t){n.prototype.handleMouseDown.call(this,t);this.player_.scrubbing(!0);this.videoWasPlaying=!this.player_.paused();this.player_.pause()},t.prototype.handleMouseMove=function(n){var t=this.calculateDistance(n)*this.player_.duration();t===this.player_.duration()&&(t=t-.1);this.player_.currentTime(t)},t.prototype.handleMouseUp=function(t){n.prototype.handleMouseUp.call(this,t);this.player_.scrubbing(!1);this.videoWasPlaying&&this.player_.play()},t.prototype.stepForward=function(){this.player_.currentTime(this.player_.currentTime()+5)},t.prototype.stepBack=function(){this.player_.currentTime(this.player_.currentTime()-5)},t}(l["default"]);u.prototype.options_={children:["loadProgressBar","mouseTimeDisplay","playProgressBar"],barName:"playProgressBar"};u.prototype.playerEvent="timeupdate";v["default"].registerComponent("SeekBar",u);i["default"]=u;t.exports=i["default"]},{"../../component.js":67,"../../slider/slider.js":119,"../../utils/fn.js":145,"../../utils/format-time.js":146,"./load-progress-bar.js":77,"./play-progress-bar.js":79,"./tooltip-progress-bar.js":82,"global/window":2,"object.assign":45}],82:[function(n,t,i){"use strict";function r(n){var t,i;if(n&&n.__esModule)return n;if(t={},n!=null)for(i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i]);return t["default"]=n,t}function u(n){return n&&n.__esModule?n:{"default":n}}function o(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function s(n,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}i.__esModule=!0;var h=n("../../component.js"),f=u(h),c=n("../../utils/fn.js"),l=r(c),a=n("../../utils/dom.js"),p=r(a),v=n("../../utils/format-time.js"),y=u(v),e=function(n){function t(i,r){o(this,t);n.call(this,i,r);this.updateDataAttr();this.on(i,"timeupdate",this.updateDataAttr);i.ready(l.bind(this,this.updateDataAttr))}return s(t,n),t.prototype.createEl=function(){var t=n.prototype.createEl.call(this,"div",{className:"vjs-tooltip-progress-bar vjs-slider-bar",innerHTML:'<div class="vjs-time-tooltip"><\/div>\n        <span class="vjs-control-text"><span>'+this.localize("Progress")+"<\/span>: 0%<\/span>"});return this.tooltip=t.querySelector(".vjs-time-tooltip"),t},t.prototype.updateDataAttr=function(){var t=this.player_.scrubbing()?this.player_.getCache().currentTime:this.player_.currentTime(),n=y["default"](t,this.player_.duration());this.el_.setAttribute("data-current-time",n);this.tooltip.innerHTML=n},t}(f["default"]);f["default"].registerComponent("TooltipProgressBar",e);i["default"]=e;t.exports=i["default"]},{"../../component.js":67,"../../utils/dom.js":143,"../../utils/fn.js":145,"../../utils/format-time.js":146}],83:[function(n,t,i){"use strict";function r(n){return n&&n.__esModule?n:{"default":n}}function f(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function e(n,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}i.__esModule=!0;var o=n("./spacer.js"),s=r(o),h=n("../../component.js"),c=r(h),u=function(n){function t(){f(this,t);n.apply(this,arguments)}return e(t,n),t.prototype.buildCSSClass=function(){return"vjs-custom-control-spacer "+n.prototype.buildCSSClass.call(this)},t.prototype.createEl=function(){var t=n.prototype.createEl.call(this,{className:this.buildCSSClass()});return t.innerHTML="&nbsp;",t},t}(s["default"]);c["default"].registerComponent("CustomControlSpacer",u);i["default"]=u;t.exports=i["default"]},{"../../component.js":67,"./spacer.js":84}],84:[function(n,t,i){"use strict";function f(n){return n&&n.__esModule?n:{"default":n}}function e(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function o(n,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}i.__esModule=!0;var s=n("../../component.js"),r=f(s),u=function(n){function t(){e(this,t);n.apply(this,arguments)}return o(t,n),t.prototype.buildCSSClass=function(){return"vjs-spacer "+n.prototype.buildCSSClass.call(this)},t.prototype.createEl=function(){return n.prototype.createEl.call(this,"div",{className:this.buildCSSClass()})},t}(r["default"]);r["default"].registerComponent("Spacer",u);i["default"]=u;t.exports=i["default"]},{"../../component.js":67}],85:[function(n,t,i){"use strict";function r(n){return n&&n.__esModule?n:{"default":n}}function f(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function e(n,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}i.__esModule=!0;var o=n("./text-track-menu-item.js"),s=r(o),h=n("../../component.js"),c=r(h),u=function(n){function t(i,r){f(this,t);r.track={kind:r.kind,player:i,label:r.kind+" settings",selectable:!1,"default":!1,mode:"disabled"};r.selectable=!1;n.call(this,i,r);this.addClass("vjs-texttrack-settings");this.controlText(", opens "+r.kind+" settings dialog")}return e(t,n),t.prototype.handleClick=function(){this.player().getChild("textTrackSettings").show();this.player().getChild("textTrackSettings").el_.focus()},t}(s["default"]);c["default"].registerComponent("CaptionSettingsMenuItem",u);i["default"]=u;t.exports=i["default"]},{"../../component.js":67,"./text-track-menu-item.js":93}],86:[function(n,t,i){"use strict";function u(n){return n&&n.__esModule?n:{"default":n}}function f(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function e(n,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}i.__esModule=!0;var o=n("./text-track-button.js"),s=u(o),h=n("../../component.js"),c=u(h),l=n("./caption-settings-menu-item.js"),a=u(l),r=function(n){function t(i,r,u){f(this,t);n.call(this,i,r,u);this.el_.setAttribute("aria-label","Captions Menu")}return e(t,n),t.prototype.buildCSSClass=function(){return"vjs-captions-button "+n.prototype.buildCSSClass.call(this)},t.prototype.update=function(){var t=2;n.prototype.update.call(this);this.player().tech_&&this.player().tech_.featuresNativeTextTracks&&(t=1);this.items&&this.items.length>t?this.show():this.hide()},t.prototype.createItems=function(){var t=[];return this.player().tech_&&this.player().tech_.featuresNativeTextTracks||t.push(new a["default"](this.player_,{kind:this.kind_})),n.prototype.createItems.call(this,t)},t}(s["default"]);r.prototype.kind_="captions";r.prototype.controlText_="Captions";c["default"].registerComponent("CaptionsButton",r);i["default"]=r;t.exports=i["default"]},{"../../component.js":67,"./caption-settings-menu-item.js":85,"./text-track-button.js":92}],87:[function(n,t,i){"use strict";function f(n){var t,i;if(n&&n.__esModule)return n;if(t={},n!=null)for(i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i]);return t["default"]=n,t}function r(n){return n&&n.__esModule?n:{"default":n}}function o(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function s(n,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}i.__esModule=!0;var h=n("./text-track-button.js"),c=r(h),l=n("../../component.js"),a=r(l),v=n("./text-track-menu-item.js"),y=r(v),p=n("./chapters-track-menu-item.js"),w=r(p),b=n("../../menu/menu.js"),k=r(b),d=n("../../utils/dom.js"),e=f(d),g=n("../../utils/fn.js"),rt=f(g),nt=n("../../utils/to-title-case.js"),tt=r(nt),it=n("global/window"),ut=r(it),u=function(n){function t(i,r,u){o(this,t);n.call(this,i,r,u);this.el_.setAttribute("aria-label","Chapters Menu")}return s(t,n),t.prototype.buildCSSClass=function(){return"vjs-chapters-button "+n.prototype.buildCSSClass.call(this)},t.prototype.createItems=function(){var t=[],i=this.player_.textTracks(),n,r;if(!i)return t;for(n=0;n<i.length;n++)r=i[n],r.kind===this.kind_&&t.push(new y["default"](this.player_,{track:r}));return t},t.prototype.createMenu=function(){for(var r,t,u,f,o,s,l,h,a=this,c=this.player_.textTracks()||[],n=undefined,v=this.items=[],i=0,y=c.length;i<y;i++)if(r=c[i],r.kind===this.kind_){n=r;break}if(t=this.menu,t===undefined&&(t=new k["default"](this.player_),u=e.createEl("li",{className:"vjs-menu-title",innerHTML:tt["default"](this.kind_),tabIndex:-1}),t.children_.unshift(u),e.insertElFirst(u,t.contentEl())),n&&n.cues==null&&(n.mode="hidden",f=this.player_.remoteTextTrackEls().getTrackElementByTrack_(n),f&&f.addEventListener("load",function(){return a.update()})),n&&n.cues&&n.cues.length>0){for(o=n.cues,s=undefined,i=0,l=o.length;i<l;i++)s=o[i],h=new w["default"](this.player_,{track:n,cue:s}),v.push(h),t.addChild(h);this.addChild(t)}return this.items.length>0&&this.show(),t},t}(c["default"]);u.prototype.kind_="chapters";u.prototype.controlText_="Chapters";a["default"].registerComponent("ChaptersButton",u);i["default"]=u;t.exports=i["default"]},{"../../component.js":67,"../../menu/menu.js":111,"../../utils/dom.js":143,"../../utils/fn.js":145,"../../utils/to-title-case.js":152,"./chapters-track-menu-item.js":88,"./text-track-button.js":92,"./text-track-menu-item.js":93,"global/window":2}],88:[function(n,t,i){"use strict";function f(n){var t,i;if(n&&n.__esModule)return n;if(t={},n!=null)for(i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i]);return t["default"]=n,t}function r(n){return n&&n.__esModule?n:{"default":n}}function e(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function o(n,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}i.__esModule=!0;var s=n("../../menu/menu-item.js"),h=r(s),c=n("../../component.js"),l=r(c),a=n("../../utils/fn.js"),v=f(a),u=function(n){function t(i,r){e(this,t);var f=r.track,u=r.cue,o=i.currentTime();r.label=u.text;r.selected=u.startTime<=o&&o<u.endTime;n.call(this,i,r);this.track=f;this.cue=u;f.addEventListener("cuechange",v.bind(this,this.update))}return o(t,n),t.prototype.handleClick=function(){n.prototype.handleClick.call(this);this.player_.currentTime(this.cue.startTime);this.update(this.cue.startTime)},t.prototype.update=function(){var n=this.cue,t=this.player_.currentTime();this.selected(n.startTime<=t&&t<n.endTime)},t}(h["default"]);l["default"].registerComponent("ChaptersTrackMenuItem",u);i["default"]=u;t.exports=i["default"]},{"../../component.js":67,"../../menu/menu-item.js":110,"../../utils/fn.js":145}],89:[function(n,t,i){"use strict";function f(n){var t,i;if(n&&n.__esModule)return n;if(t={},n!=null)for(i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i]);return t["default"]=n,t}function u(n){return n&&n.__esModule?n:{"default":n}}function e(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function o(n,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}i.__esModule=!0;var s=n("./text-track-button.js"),h=u(s),c=n("../../component.js"),l=u(c),a=n("../../utils/fn.js"),v=f(a),r=function(n){function t(i,r,u){var o=this,f;e(this,t);n.call(this,i,r,u);this.el_.setAttribute("aria-label","Descriptions Menu");f=i.textTracks();f&&function(){var n=v.bind(o,o.handleTracksChange);f.addEventListener("change",n);o.on("dispose",function(){f.removeEventListener("change",n)})}()}return o(t,n),t.prototype.handleTracksChange=function(){for(var t,i=this.player().textTracks(),r=!1,n=0,u=i.length;n<u;n++)if(t=i[n],t.kind!==this.kind_&&t.mode==="showing"){r=!0;break}r?this.disable():this.enable()},t.prototype.buildCSSClass=function(){return"vjs-descriptions-button "+n.prototype.buildCSSClass.call(this)},t}(h["default"]);r.prototype.kind_="descriptions";r.prototype.controlText_="Descriptions";l["default"].registerComponent("DescriptionsButton",r);i["default"]=r;t.exports=i["default"]},{"../../component.js":67,"../../utils/fn.js":145,"./text-track-button.js":92}],90:[function(n,t,i){"use strict";function r(n){return n&&n.__esModule?n:{"default":n}}function f(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function e(n,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}i.__esModule=!0;var o=n("./text-track-menu-item.js"),s=r(o),h=n("../../component.js"),c=r(h),u=function(n){function t(i,r){f(this,t);r.track={kind:r.kind,player:i,label:r.kind+" off","default":!1,mode:"disabled"};r.selectable=!0;n.call(this,i,r);this.selected(!0)}return e(t,n),t.prototype.handleTracksChange=function(){for(var t,i=this.player().textTracks(),r=!0,n=0,u=i.length;n<u;n++)if(t=i[n],t.kind===this.track.kind&&t.mode==="showing"){r=!1;break}this.selected(r)},t}(s["default"]);c["default"].registerComponent("OffTextTrackMenuItem",u);i["default"]=u;t.exports=i["default"]},{"../../component.js":67,"./text-track-menu-item.js":93}],91:[function(n,t,i){"use strict";function u(n){return n&&n.__esModule?n:{"default":n}}function f(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function e(n,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}i.__esModule=!0;var o=n("./text-track-button.js"),s=u(o),h=n("../../component.js"),c=u(h),r=function(n){function t(i,r,u){f(this,t);n.call(this,i,r,u);this.el_.setAttribute("aria-label","Subtitles Menu")}return e(t,n),t.prototype.buildCSSClass=function(){return"vjs-subtitles-button "+n.prototype.buildCSSClass.call(this)},t}(s["default"]);r.prototype.kind_="subtitles";r.prototype.controlText_="Subtitles";c["default"].registerComponent("SubtitlesButton",r);i["default"]=r;t.exports=i["default"]},{"../../component.js":67,"./text-track-button.js":92}],92:[function(n,t,i){"use strict";function f(n){var t,i;if(n&&n.__esModule)return n;if(t={},n!=null)for(i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i]);return t["default"]=n,t}function r(n){return n&&n.__esModule?n:{"default":n}}function e(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function o(n,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}i.__esModule=!0;var s=n("../track-button.js"),h=r(s),c=n("../../component.js"),l=r(c),a=n("../../utils/fn.js"),b=f(a),v=n("./text-track-menu-item.js"),y=r(v),p=n("./off-text-track-menu-item.js"),w=r(p),u=function(n){function t(i){var r=arguments.length<=1||arguments[1]===undefined?{}:arguments[1];e(this,t);r.tracks=i.textTracks();n.call(this,i,r)}return o(t,n),t.prototype.createItems=function(){var n=arguments.length<=0||arguments[0]===undefined?[]:arguments[0],t,i,r;if(n.push(new w["default"](this.player_,{kind:this.kind_})),t=this.player_.textTracks(),!t)return n;for(i=0;i<t.length;i++)r=t[i],r.kind===this.kind_&&n.push(new y["default"](this.player_,{selectable:!0,track:r}));return n},t}(h["default"]);l["default"].registerComponent("TextTrackButton",u);i["default"]=u;t.exports=i["default"]},{"../../component.js":67,"../../utils/fn.js":145,"../track-button.js":98,"./off-text-track-menu-item.js":90,"./text-track-menu-item.js":93}],93:[function(n,t,i){"use strict";function e(n){var t,i;if(n&&n.__esModule)return n;if(t={},n!=null)for(i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i]);return t["default"]=n,t}function r(n){return n&&n.__esModule?n:{"default":n}}function o(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function s(n,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}i.__esModule=!0;var h=n("../../menu/menu-item.js"),c=r(h),l=n("../../component.js"),a=r(l),v=n("../../utils/fn.js"),y=e(v),p=n("global/window"),u=r(p),w=n("global/document"),b=r(w),f=function(n){function t(i,r){var s=this,e,f;o(this,t);e=r.track;f=i.textTracks();r.label=e.label||e.language||"Unknown";r.selected=e["default"]||e.mode==="showing";n.call(this,i,r);this.track=e;f&&function(){var n=y.bind(s,s.handleTracksChange);f.addEventListener("change",n);s.on("dispose",function(){f.removeEventListener("change",n)})}();f&&f.onchange===undefined&&function(){var n=undefined;s.on(["tap","click"],function(){if(typeof u["default"].Event!="object")try{n=new u["default"].Event("change")}catch(t){}n||(n=b["default"].createEvent("Event"),n.initEvent("change",!0,!0));f.dispatchEvent(n)})}()}return s(t,n),t.prototype.handleClick=function(t){var f=this.track.kind,u=this.player_.textTracks(),i,r;if(n.prototype.handleClick.call(this,t),u)for(i=0;i<u.length;i++)(r=u[i],r.kind===f)&&(r.mode=r===this.track?"showing":"disabled")},t.prototype.handleTracksChange=function(){this.selected(this.track.mode==="showing")},t}(c["default"]);a["default"].registerComponent("TextTrackMenuItem",f);i["default"]=f;t.exports=i["default"]},{"../../component.js":67,"../../menu/menu-item.js":110,"../../utils/fn.js":145,"global/document":1,"global/window":2}],94:[function(n,t,i){"use strict";function e(n){var t,i;if(n&&n.__esModule)return n;if(t={},n!=null)for(i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i]);return t["default"]=n,t}function r(n){return n&&n.__esModule?n:{"default":n}}function o(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function s(n,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}i.__esModule=!0;var h=n("../../component.js"),u=r(h),c=n("../../utils/dom.js"),l=e(c),a=n("../../utils/format-time.js"),v=r(a),f=function(n){function t(i,r){o(this,t);n.call(this,i,r);this.on(i,"timeupdate",this.updateContent)}return s(t,n),t.prototype.createEl=function(){var t=n.prototype.createEl.call(this,"div",{className:"vjs-current-time vjs-time-control vjs-control"});return this.contentEl_=l.createEl("div",{className:"vjs-current-time-display",innerHTML:'<span class="vjs-control-text">Current Time <\/span>0:00'},{"aria-live":"off"}),t.appendChild(this.contentEl_),t},t.prototype.updateContent=function(){var t=this.player_.scrubbing()?this.player_.getCache().currentTime:this.player_.currentTime(),i=this.localize("Current Time"),n=v["default"](t,this.player_.duration());n!==this.formattedTime_&&(this.formattedTime_=n,this.contentEl_.innerHTML='<span class="vjs-control-text">'+i+"<\/span> "+n)},t}(u["default"]);u["default"].registerComponent("CurrentTimeDisplay",f);i["default"]=f;t.exports=i["default"]},{"../../component.js":67,"../../utils/dom.js":143,"../../utils/format-time.js":146}],95:[function(n,t,i){"use strict";function e(n){var t,i;if(n&&n.__esModule)return n;if(t={},n!=null)for(i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i]);return t["default"]=n,t}function r(n){return n&&n.__esModule?n:{"default":n}}function o(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function s(n,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}i.__esModule=!0;var h=n("../../component.js"),u=r(h),c=n("../../utils/dom.js"),l=e(c),a=n("../../utils/format-time.js"),v=r(a),f=function(n){function t(i,r){o(this,t);n.call(this,i,r);this.on(i,"timeupdate",this.updateContent);this.on(i,"loadedmetadata",this.updateContent)}return s(t,n),t.prototype.createEl=function(){var t=n.prototype.createEl.call(this,"div",{className:"vjs-duration vjs-time-control vjs-control"});return this.contentEl_=l.createEl("div",{className:"vjs-duration-display",innerHTML:'<span class="vjs-control-text">'+this.localize("Duration Time")+"<\/span> 0:00"},{"aria-live":"off"}),t.appendChild(this.contentEl_),t},t.prototype.updateContent=function(){var n=this.player_.duration(),t,i;n&&this.duration_!==n&&(this.duration_=n,t=this.localize("Duration Time"),i=v["default"](n),this.contentEl_.innerHTML='<span class="vjs-control-text">'+t+"<\/span> "+i)},t}(u["default"]);u["default"].registerComponent("DurationDisplay",f);i["default"]=f;t.exports=i["default"]},{"../../component.js":67,"../../utils/dom.js":143,"../../utils/format-time.js":146}],96:[function(n,t,i){"use strict";function e(n){var t,i;if(n&&n.__esModule)return n;if(t={},n!=null)for(i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i]);return t["default"]=n,t}function r(n){return n&&n.__esModule?n:{"default":n}}function o(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function s(n,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}i.__esModule=!0;var h=n("../../component.js"),u=r(h),c=n("../../utils/dom.js"),l=e(c),a=n("../../utils/format-time.js"),v=r(a),f=function(n){function t(i,r){o(this,t);n.call(this,i,r);this.on(i,"timeupdate",this.updateContent)}return s(t,n),t.prototype.createEl=function(){var t=n.prototype.createEl.call(this,"div",{className:"vjs-remaining-time vjs-time-control vjs-control"});return this.contentEl_=l.createEl("div",{className:"vjs-remaining-time-display",innerHTML:'<span class="vjs-control-text">'+this.localize("Remaining Time")+"<\/span> -0:00"},{"aria-live":"off"}),t.appendChild(this.contentEl_),t},t.prototype.updateContent=function(){if(this.player_.duration()){var t=this.localize("Remaining Time"),n=v["default"](this.player_.remainingTime());n!==this.formattedTime_&&(this.formattedTime_=n,this.contentEl_.innerHTML='<span class="vjs-control-text">'+t+"<\/span> -"+n)}},t}(u["default"]);u["default"].registerComponent("RemainingTimeDisplay",f);i["default"]=f;t.exports=i["default"]},{"../../component.js":67,"../../utils/dom.js":143,"../../utils/format-time.js":146}],97:[function(n,t,i){"use strict";function f(n){return n&&n.__esModule?n:{"default":n}}function e(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function o(n,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}i.__esModule=!0;var s=n("../../component.js"),r=f(s),u=function(n){function t(){e(this,t);n.apply(this,arguments)}return o(t,n),t.prototype.createEl=function(){return n.prototype.createEl.call(this,"div",{className:"vjs-time-control vjs-time-divider",innerHTML:"<div><span>/<\/span><\/div>"})},t}(r["default"]);r["default"].registerComponent("TimeDivider",u);i["default"]=u;t.exports=i["default"]},{"../../component.js":67}],98:[function(n,t,i){"use strict";function f(n){var t,i;if(n&&n.__esModule)return n;if(t={},n!=null)for(i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i]);return t["default"]=n,t}function r(n){return n&&n.__esModule?n:{"default":n}}function e(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function o(n,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}i.__esModule=!0;var s=n("../menu/menu-button.js"),h=r(s),c=n("../component.js"),l=r(c),a=n("../utils/fn.js"),v=f(a),u=function(n){function t(i,r){var u,f;if(e(this,t),u=r.tracks,n.call(this,i,r),this.items.length<=1&&this.hide(),u){f=v.bind(this,this.update);u.addEventListener("removetrack",f);u.addEventListener("addtrack",f);this.player_.on("dispose",function(){u.removeEventListener("removetrack",f);u.removeEventListener("addtrack",f)})}}return o(t,n),t}(h["default"]);l["default"].registerComponent("TrackButton",u);i["default"]=u;t.exports=i["default"]},{"../component.js":67,"../menu/menu-button.js":109,"../utils/fn.js":145}],99:[function(n,t,i){"use strict";function f(n){var t,i;if(n&&n.__esModule)return n;if(t={},n!=null)for(i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i]);return t["default"]=n,t}function u(n){return n&&n.__esModule?n:{"default":n}}function e(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function o(n,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}i.__esModule=!0;var s=n("../../slider/slider.js"),h=u(s),c=n("../../component.js"),l=u(c),a=n("../../utils/fn.js"),v=f(a),y=n("./volume-level.js"),p=u(y),r=function(n){function t(i,r){e(this,t);n.call(this,i,r);this.on(i,"volumechange",this.updateARIAAttributes);i.ready(v.bind(this,this.updateARIAAttributes))}return o(t,n),t.prototype.createEl=function(){return n.prototype.createEl.call(this,"div",{className:"vjs-volume-bar vjs-slider-bar"},{"aria-label":"volume level"})},t.prototype.handleMouseMove=function(n){this.checkMuted();this.player_.volume(this.calculateDistance(n))},t.prototype.checkMuted=function(){this.player_.muted()&&this.player_.muted(!1)},t.prototype.getPercent=function(){return this.player_.muted()?0:this.player_.volume()},t.prototype.stepForward=function(){this.checkMuted();this.player_.volume(this.player_.volume()+.1)},t.prototype.stepBack=function(){this.checkMuted();this.player_.volume(this.player_.volume()-.1)},t.prototype.updateARIAAttributes=function(){var n=(this.player_.volume()*100).toFixed(2);this.el_.setAttribute("aria-valuenow",n);this.el_.setAttribute("aria-valuetext",n+"%")},t}(h["default"]);r.prototype.options_={children:["volumeLevel"],barName:"volumeLevel"};r.prototype.playerEvent="volumechange";l["default"].registerComponent("VolumeBar",r);i["default"]=r;t.exports=i["default"]},{"../../component.js":67,"../../slider/slider.js":119,"../../utils/fn.js":145,"./volume-level.js":101}],100:[function(n,t,i){"use strict";function u(n){return n&&n.__esModule?n:{"default":n}}function e(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function o(n,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}i.__esModule=!0;var s=n("../../component.js"),f=u(s),h=n("./volume-bar.js"),c=u(h),r=function(n){function t(i,r){e(this,t);n.call(this,i,r);i.tech_&&i.tech_.featuresVolumeControl===!1&&this.addClass("vjs-hidden");this.on(i,"loadstart",function(){i.tech_.featuresVolumeControl===!1?this.addClass("vjs-hidden"):this.removeClass("vjs-hidden")})}return o(t,n),t.prototype.createEl=function(){return n.prototype.createEl.call(this,"div",{className:"vjs-volume-control vjs-control"})},t}(f["default"]);r.prototype.options_={children:["volumeBar"]};f["default"].registerComponent("VolumeControl",r);i["default"]=r;t.exports=i["default"]},{"../../component.js":67,"./volume-bar.js":99}],101:[function(n,t,i){"use strict";function f(n){return n&&n.__esModule?n:{"default":n}}function e(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function o(n,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}i.__esModule=!0;var s=n("../../component.js"),r=f(s),u=function(n){function t(){e(this,t);n.apply(this,arguments)}return o(t,n),t.prototype.createEl=function(){return n.prototype.createEl.call(this,"div",{className:"vjs-volume-level",innerHTML:'<span class="vjs-control-text"><\/span>'})},t}(r["default"]);r["default"].registerComponent("VolumeLevel",u);i["default"]=u;t.exports=i["default"]},{"../../component.js":67}],102:[function(n,t,i){"use strict";function r(n){return n&&n.__esModule?n:{"default":n}}function o(n){var t,i;if(n&&n.__esModule)return n;if(t={},n!=null)for(i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i]);return t["default"]=n,t}function s(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function h(n,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}i.__esModule=!0;var c=n("../utils/fn.js"),f=o(c),l=n("../component.js"),a=r(l),v=n("../popup/popup.js"),y=r(v),p=n("../popup/popup-button.js"),w=r(p),b=n("./mute-toggle.js"),e=r(b),k=n("./volume-control/volume-bar.js"),d=r(k),u=function(n){function t(i){function u(){i.tech_&&i.tech_.featuresVolumeControl===!1?this.addClass("vjs-hidden"):this.removeClass("vjs-hidden")}var r=arguments.length<=1||arguments[1]===undefined?{}:arguments[1];s(this,t);r.inline===undefined&&(r.inline=!0);r.vertical===undefined&&(r.vertical=r.inline?!1:!0);r.volumeBar=r.volumeBar||{};r.volumeBar.vertical=!!r.vertical;n.call(this,i,r);this.on(i,"volumechange",this.volumeUpdate);this.on(i,"loadstart",this.volumeUpdate);u.call(this);this.on(i,"loadstart",u);this.on(this.volumeBar,["slideractive","focus"],function(){this.addClass("vjs-slider-active")});this.on(this.volumeBar,["sliderinactive","blur"],function(){this.removeClass("vjs-slider-active")});this.on(this.volumeBar,["focus"],function(){this.addClass("vjs-lock-showing")});this.on(this.volumeBar,["blur"],function(){this.removeClass("vjs-lock-showing")})}return h(t,n),t.prototype.buildCSSClass=function(){var t="";return t=this.options_.vertical?"vjs-volume-menu-button-vertical":"vjs-volume-menu-button-horizontal","vjs-volume-menu-button "+n.prototype.buildCSSClass.call(this)+" "+t},t.prototype.createPopup=function(){var n=new y["default"](this.player_,{contentElType:"div"}),t=new d["default"](this.player_,this.options_.volumeBar);return n.addChild(t),this.menuContent=n,this.volumeBar=t,this.attachVolumeBarEvents(),n},t.prototype.handleClick=function(){e["default"].prototype.handleClick.call(this);n.prototype.handleClick.call(this)},t.prototype.attachVolumeBarEvents=function(){this.menuContent.on(["mousedown","touchdown"],f.bind(this,this.handleMouseDown))},t.prototype.handleMouseDown=function(){this.on(["mousemove","touchmove"],f.bind(this.volumeBar,this.volumeBar.handleMouseMove));this.on(this.el_.ownerDocument,["mouseup","touchend"],this.handleMouseUp)},t.prototype.handleMouseUp=function(){this.off(["mousemove","touchmove"],f.bind(this.volumeBar,this.volumeBar.handleMouseMove))},t}(w["default"]);u.prototype.volumeUpdate=e["default"].prototype.update;u.prototype.controlText_="Mute";a["default"].registerComponent("VolumeMenuButton",u);i["default"]=u;t.exports=i["default"]},{"../component.js":67,"../popup/popup-button.js":115,"../popup/popup.js":116,"../utils/fn.js":145,"./mute-toggle.js":73,"./volume-control/volume-bar.js":99}],103:[function(n,t,i){"use strict";function e(n){var t,i;if(n&&n.__esModule)return n;if(t={},n!=null)for(i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i]);return t["default"]=n,t}function r(n){return n&&n.__esModule?n:{"default":n}}function o(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function s(n,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}i.__esModule=!0;var h=n("./component"),c=r(h),l=n("./modal-dialog"),f=r(l),a=n("./utils/dom"),p=e(a),v=n("./utils/merge-options"),y=r(v),u=function(n){function t(i,r){o(this,t);n.call(this,i,r);this.on(i,"error",this.open)}return s(t,n),t.prototype.buildCSSClass=function(){return"vjs-error-display "+n.prototype.buildCSSClass.call(this)},t.prototype.content=function(){var n=this.player().error();return n?this.localize(n.message):""},t}(f["default"]);u.prototype.options_=y["default"](f["default"].prototype.options_,{fillAlways:!0,temporary:!1,uncloseable:!0});c["default"].registerComponent("ErrorDisplay",u);i["default"]=u;t.exports=i["default"]},{"./component":67,"./modal-dialog":112,"./utils/dom":143,"./utils/merge-options":149}],104:[function(n,t,i){"use strict";function f(n){var t,i;if(n&&n.__esModule)return n;if(t={},n!=null)for(i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i]);return t["default"]=n,t}i.__esModule=!0;var e=n("./utils/events.js"),u=f(e),r=function(){};r.prototype.allowedEvents_={};r.prototype.on=function(n,t){var i=this.addEventListener;this.addEventListener=function(){};u.on(this,n,t);this.addEventListener=i};r.prototype.addEventListener=r.prototype.on;r.prototype.off=function(n,t){u.off(this,n,t)};r.prototype.removeEventListener=r.prototype.off;r.prototype.one=function(n,t){var i=this.addEventListener;this.addEventListener=function(){};u.one(this,n,t);this.addEventListener=i};r.prototype.trigger=function(n){var t=n.type||n;typeof n=="string"&&(n={type:t});n=u.fixEvent(n);this.allowedEvents_[t]&&this["on"+t]&&this["on"+t](n);u.trigger(this,n)};r.prototype.dispatchEvent=r.prototype.trigger;i["default"]=r;t.exports=i["default"]},{"./utils/events.js":144}],105:[function(n,t,i){"use strict";function r(n){return n&&n.__esModule?n:{"default":n}}i.__esModule=!0;var u=n("./utils/log"),f=r(u),e=function(n,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(n.super_=t)},o=function(n){var t=arguments.length<=1||arguments[1]===undefined?{}:arguments[1],i=function(){n.apply(this,arguments)},r={},u;typeof t=="object"?(typeof t.init=="function"&&(f["default"].warn("Constructor logic via init() is deprecated; please use constructor() instead."),t.constructor=t.init),t.constructor!==Object.prototype.constructor&&(i=t.constructor),r=t):typeof t=="function"&&(i=t);e(i,n);for(u in r)r.hasOwnProperty(u)&&(i.prototype[u]=r[u]);return i};i["default"]=o;t.exports=i["default"]},{"./utils/log":148}],106:[function(n,t,i){"use strict";function o(n){return n&&n.__esModule?n:{"default":n}}var r;i.__esModule=!0;var s=n("global/document"),h=o(s),e={},u=[["requestFullscreen","exitFullscreen","fullscreenElement","fullscreenEnabled","fullscreenchange","fullscreenerror"],["webkitRequestFullscreen","webkitExitFullscreen","webkitFullscreenElement","webkitFullscreenEnabled","webkitfullscreenchange","webkitfullscreenerror"],["webkitRequestFullScreen","webkitCancelFullScreen","webkitCurrentFullScreenElement","webkitCancelFullScreen","webkitfullscreenchange","webkitfullscreenerror"],["mozRequestFullScreen","mozCancelFullScreen","mozFullScreenElement","mozFullScreenEnabled","mozfullscreenchange","mozfullscreenerror"],["msRequestFullscreen","msExitFullscreen","msFullscreenElement","msFullscreenEnabled","MSFullscreenChange","MSFullscreenError"]],c=u[0],f=undefined;for(r=0;r<u.length;r++)if(u[r][1]in h["default"]){f=u[r];break}if(f)for(r=0;r<f.length;r++)e[c[r]]=f[r];i["default"]=e;t.exports=i["default"]},{"global/document":1}],107:[function(n,t,i){"use strict";function f(n){return n&&n.__esModule?n:{"default":n}}function e(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function o(n,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}i.__esModule=!0;var s=n("./component"),r=f(s),u=function(n){function t(){e(this,t);n.apply(this,arguments)}return o(t,n),t.prototype.createEl=function(){return n.prototype.createEl.call(this,"div",{className:"vjs-loading-spinner",dir:"ltr"})},t}(r["default"]);r["default"].registerComponent("LoadingSpinner",u);i["default"]=u;t.exports=i["default"]},{"./component":67}],108:[function(n,t,i){"use strict";function f(n){return n&&n.__esModule?n:{"default":n}}var u;i.__esModule=!0;var e=n("object.assign"),o=f(e),r=function r(n){typeof n=="number"?this.code=n:typeof n=="string"?this.message=n:typeof n=="object"&&o["default"](this,n);this.message||(this.message=r.defaultMessages[this.code]||"")};for(r.prototype.code=0,r.prototype.message="",r.prototype.status=null,r.errorTypes=["MEDIA_ERR_CUSTOM","MEDIA_ERR_ABORTED","MEDIA_ERR_NETWORK","MEDIA_ERR_DECODE","MEDIA_ERR_SRC_NOT_SUPPORTED","MEDIA_ERR_ENCRYPTED"],r.defaultMessages={1:"You aborted the media playback",2:"A network error caused the media download to fail part-way.",3:"The media playback was aborted due to a corruption problem or because the media used features your browser did not support.",4:"The media could not be loaded, either because the server or network failed or because the format is not supported.",5:"The media is encrypted and we do not have the keys to decrypt it."},u=0;u<r.errorTypes.length;u++)r[r.errorTypes[u]]=u,r.prototype[r.errorTypes[u]]=u;i["default"]=r;t.exports=i["default"]},{"object.assign":45}],109:[function(n,t,i){"use strict";function u(n){var t,i;if(n&&n.__esModule)return n;if(t={},n!=null)for(i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i]);return t["default"]=n,t}function r(n){return n&&n.__esModule?n:{"default":n}}function o(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function s(n,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}i.__esModule=!0;var h=n("../clickable-component.js"),c=r(h),l=n("../component.js"),a=r(l),v=n("./menu.js"),y=r(v),p=n("../utils/dom.js"),f=u(p),w=n("../utils/fn.js"),b=u(w),k=n("../utils/to-title-case.js"),d=r(k),e=function(n){function t(i){var r=arguments.length<=1||arguments[1]===undefined?{}:arguments[1];o(this,t);n.call(this,i,r);this.update();this.enabled_=!0;this.el_.setAttribute("aria-haspopup","true");this.el_.setAttribute("role","menuitem");this.on("keydown",this.handleSubmenuKeyPress)}return s(t,n),t.prototype.update=function(){var n=this.createMenu();this.menu&&this.removeChild(this.menu);this.menu=n;this.addChild(n);this.buttonPressed_=!1;this.el_.setAttribute("aria-expanded","false");this.items&&this.items.length===0?this.hide():this.items&&this.items.length>1&&this.show()},t.prototype.createMenu=function(){var n=new y["default"](this.player_),i,t;if(this.options_.title&&(i=f.createEl("li",{className:"vjs-menu-title",innerHTML:d["default"](this.options_.title),tabIndex:-1}),n.children_.unshift(i),f.insertElFirst(i,n.contentEl())),this.items=this.createItems(),this.items)for(t=0;t<this.items.length;t++)n.addItem(this.items[t]);return n},t.prototype.createItems=function(){},t.prototype.createEl=function(){return n.prototype.createEl.call(this,"div",{className:this.buildCSSClass()})},t.prototype.buildCSSClass=function(){var t="vjs-menu-button";return t+=this.options_.inline===!0?"-inline":"-popup","vjs-menu-button "+t+" "+n.prototype.buildCSSClass.call(this)},t.prototype.handleClick=function(){this.one("mouseout",b.bind(this,function(){this.menu.unlockShowing();this.el_.blur()}));this.buttonPressed_?this.unpressButton():this.pressButton()},t.prototype.handleKeyPress=function(t){t.which===27||t.which===9?(this.buttonPressed_&&this.unpressButton(),t.which!==9&&t.preventDefault()):t.which===38||t.which===40?this.buttonPressed_||(this.pressButton(),t.preventDefault()):n.prototype.handleKeyPress.call(this,t)},t.prototype.handleSubmenuKeyPress=function(n){(n.which===27||n.which===9)&&(this.buttonPressed_&&this.unpressButton(),n.which!==9&&n.preventDefault())},t.prototype.pressButton=function(){this.enabled_&&(this.buttonPressed_=!0,this.menu.lockShowing(),this.el_.setAttribute("aria-expanded","true"),this.menu.focus())},t.prototype.unpressButton=function(){this.enabled_&&(this.buttonPressed_=!1,this.menu.unlockShowing(),this.el_.setAttribute("aria-expanded","false"),this.el_.focus())},t.prototype.disable=function(){return this.buttonPressed_=!1,this.menu.unlockShowing(),this.el_.setAttribute("aria-expanded","false"),this.enabled_=!1,n.prototype.disable.call(this)},t.prototype.enable=function(){return this.enabled_=!0,n.prototype.enable.call(this)},t}(c["default"]);a["default"].registerComponent("MenuButton",e);i["default"]=e;t.exports=i["default"]},{"../clickable-component.js":65,"../component.js":67,"../utils/dom.js":143,"../utils/fn.js":145,"../utils/to-title-case.js":152,"./menu.js":111}],110:[function(n,t,i){"use strict";function r(n){return n&&n.__esModule?n:{"default":n}}function f(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function e(n,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}i.__esModule=!0;var o=n("../clickable-component.js"),s=r(o),h=n("../component.js"),c=r(h),l=n("object.assign"),a=r(l),u=function(n){function t(i,r){f(this,t);n.call(this,i,r);this.selectable=r.selectable;this.selected(r.selected);this.selectable?this.el_.setAttribute("role","menuitemcheckbox"):this.el_.setAttribute("role","menuitem")}return e(t,n),t.prototype.createEl=function(t,i,r){return n.prototype.createEl.call(this,"li",a["default"]({className:"vjs-menu-item",innerHTML:this.localize(this.options_.label),tabIndex:-1},i),r)},t.prototype.handleClick=function(){this.selected(!0)},t.prototype.selected=function(n){this.selectable&&(n?(this.addClass("vjs-selected"),this.el_.setAttribute("aria-checked","true"),this.controlText(", selected")):(this.removeClass("vjs-selected"),this.el_.setAttribute("aria-checked","false"),this.controlText(" ")))},t}(s["default"]);c["default"].registerComponent("MenuItem",u);i["default"]=u;t.exports=i["default"]},{"../clickable-component.js":65,"../component.js":67,"object.assign":45}],111:[function(n,t,i){"use strict";function r(n){var t,i;if(n&&n.__esModule)return n;if(t={},n!=null)for(i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i]);return t["default"]=n,t}function e(n){return n&&n.__esModule?n:{"default":n}}function o(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function s(n,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}i.__esModule=!0;var h=n("../component.js"),u=e(h),c=n("../utils/dom.js"),l=r(c),a=n("../utils/fn.js"),v=r(a),y=n("../utils/events.js"),p=r(y),f=function(n){function t(i,r){o(this,t);n.call(this,i,r);this.focusedChild_=-1;this.on("keydown",this.handleKeyPress)}return s(t,n),t.prototype.addItem=function(n){this.addChild(n);n.on("click",v.bind(this,function(){this.unlockShowing()}))},t.prototype.createEl=function(){var i=this.options_.contentElType||"ul",t;this.contentEl_=l.createEl(i,{className:"vjs-menu-content"});this.contentEl_.setAttribute("role","menu");t=n.prototype.createEl.call(this,"div",{append:this.contentEl_,className:"vjs-menu"});t.setAttribute("role","presentation");t.appendChild(this.contentEl_);p.on(t,"click",function(n){n.preventDefault();n.stopImmediatePropagation()});return t},t.prototype.handleKeyPress=function(n){n.which===37||n.which===40?(n.preventDefault(),this.stepForward()):(n.which===38||n.which===39)&&(n.preventDefault(),this.stepBack())},t.prototype.stepForward=function(){var n=0;this.focusedChild_!==undefined&&(n=this.focusedChild_+1);this.focus(n)},t.prototype.stepBack=function(){var n=0;this.focusedChild_!==undefined&&(n=this.focusedChild_-1);this.focus(n)},t.prototype.focus=function(){var t=arguments.length<=0||arguments[0]===undefined?0:arguments[0],n=this.children().slice(),i=n.length&&n[0].className&&/vjs-menu-title/.test(n[0].className);i&&n.shift();n.length>0&&(t<0?t=0:t>=n.length&&(t=n.length-1),this.focusedChild_=t,n[t].el_.focus())},t}(u["default"]);u["default"].registerComponent("Menu",f);i["default"]=f;t.exports=i["default"]},{"../component.js":67,"../utils/dom.js":143,"../utils/events.js":144,"../utils/fn.js":145}],112:[function(n,t,i){"use strict";function u(n){return n&&n.__esModule?n:{"default":n}}function o(n){var t,i;if(n&&n.__esModule)return n;if(t={},n!=null)for(i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i]);return t["default"]=n,t}function c(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function l(n,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}i.__esModule=!0;var a=n("./utils/dom"),r=o(a),v=n("./utils/fn"),s=o(v),y=n("./utils/log"),k=u(y),p=n("./component"),h=u(p),w=n("./close-button"),d=u(w),f="vjs-modal-dialog",b=27,e=function(n){function t(i,u){c(this,t);n.call(this,i,u);this.opened_=this.hasBeenOpened_=this.hasBeenFilled_=!1;this.closeable(!this.options_.uncloseable);this.content(this.options_.content);this.contentEl_=r.createEl("div",{className:f+"-content"},{role:"document"});this.descEl_=r.createEl("p",{className:f+"-description vjs-offscreen",id:this.el().getAttribute("aria-describedby")});r.textContent(this.descEl_,this.description());this.el_.appendChild(this.descEl_);this.el_.appendChild(this.contentEl_)}return l(t,n),t.prototype.createEl=function(){return n.prototype.createEl.call(this,"div",{className:this.buildCSSClass(),tabIndex:-1},{"aria-describedby":this.id()+"_description","aria-hidden":"true","aria-label":this.label(),role:"dialog"})},t.prototype.buildCSSClass=function(){return f+" vjs-hidden "+n.prototype.buildCSSClass.call(this)},t.prototype.handleKeyPress=function(n){n.which===b&&this.closeable()&&this.close()},t.prototype.label=function(){return this.options_.label||this.localize("Modal Window")},t.prototype.description=function(){var n=this.options_.description||this.localize("This is a modal window.");return this.closeable()&&(n+=" "+this.localize("This modal can be closed by pressing the Escape key or activating the close button.")),n},t.prototype.open=function(){if(!this.opened_){var n=this.player();if(this.trigger("beforemodalopen"),this.opened_=!0,!this.options_.fillAlways&&(this.hasBeenOpened_||this.hasBeenFilled_)||this.fill(),this.wasPlaying_=!n.paused(),this.wasPlaying_&&n.pause(),this.closeable())this.on(this.el_.ownerDocument,"keydown",s.bind(this,this.handleKeyPress));n.controls(!1);this.show();this.el().setAttribute("aria-hidden","false");this.trigger("modalopen");this.hasBeenOpened_=!0}return this},t.prototype.opened=function(n){return typeof n=="boolean"&&this[n?"open":"close"](),this.opened_},t.prototype.close=function(){if(this.opened_){var n=this.player();this.trigger("beforemodalclose");this.opened_=!1;this.wasPlaying_&&n.play();this.closeable()&&this.off(this.el_.ownerDocument,"keydown",s.bind(this,this.handleKeyPress));n.controls(!0);this.hide();this.el().setAttribute("aria-hidden","true");this.trigger("modalclose");this.options_.temporary&&this.dispose()}return this},t.prototype.closeable=function(n){var i,t,r;if(typeof n=="boolean"){if(i=this.closeable_=!!n,t=this.getChild("closeButton"),i&&!t){r=this.contentEl_;this.contentEl_=this.el_;t=this.addChild("closeButton");this.contentEl_=r;this.on(t,"close",this.close)}!i&&t&&(this.off(t,"close",this.close),this.removeChild(t),t.dispose())}return this.closeable_},t.prototype.fill=function(){return this.fillWith(this.content())},t.prototype.fillWith=function(n){var t=this.contentEl(),i=t.parentNode,u=t.nextSibling;return this.trigger("beforemodalfill"),this.hasBeenFilled_=!0,i.removeChild(t),this.empty(),r.insertContent(t,n),this.trigger("modalfill"),u?i.insertBefore(t,u):i.appendChild(t),this},t.prototype.empty=function(){return this.trigger("beforemodalempty"),r.emptyEl(this.contentEl()),this.trigger("modalempty"),this},t.prototype.content=function(n){return typeof n!="undefined"&&(this.content_=n),this.content_},t}(h["default"]);e.prototype.options_={temporary:!0};h["default"].registerComponent("ModalDialog",e);i["default"]=e;t.exports=i["default"]},{"./close-button":66,"./component":67,"./utils/dom":143,"./utils/fn":145,"./utils/log":148}],113:[function(n,t,i){"use strict";function s(n){var t,i;if(n&&n.__esModule)return n;if(t={},n!=null)for(i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i]);return t["default"]=n,t}function r(n){return n&&n.__esModule?n:{"default":n}}function tt(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function it(n,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}var l;i.__esModule=!0;var rt=n("./component.js"),h=r(rt),ut=n("global/document"),u=r(ut),ft=n("global/window"),a=r(ft),et=n("./utils/events.js"),v=s(et),ot=n("./utils/dom.js"),e=s(ot),st=n("./utils/fn.js"),y=s(st),ht=n("./utils/guid.js"),ct=s(ht),lt=n("./utils/browser.js"),at=s(lt),vt=n("./utils/log.js"),o=r(vt),yt=n("./utils/to-title-case.js"),b=r(yt),pt=n("./utils/time-ranges.js"),wt=n("./utils/buffer.js"),bt=n("./utils/stylesheet.js"),d=s(bt),kt=n("./fullscreen-api.js"),g=r(kt),dt=n("./media-error.js"),k=r(dt),gt=n("safe-json-parse/tuple"),ni=r(gt),ti=n("object.assign"),p=r(ti),ii=n("./utils/merge-options.js"),w=r(ii),ri=n("./tracks/text-track-list-converter.js"),nt=r(ri),ui=n("./tracks/audio-track-list.js"),fi=r(ui),ei=n("./tracks/video-track-list.js"),oi=r(ei),si=n("./tech/loader.js"),gi=r(si),hi=n("./poster-image.js"),nr=r(hi),ci=n("./tracks/text-track-display.js"),tr=r(ci),li=n("./loading-spinner.js"),ir=r(li),ai=n("./big-play-button.js"),rr=r(ai),vi=n("./control-bar/control-bar.js"),ur=r(vi),yi=n("./error-display.js"),fr=r(yi),pi=n("./tracks/text-track-settings.js"),er=r(pi),wi=n("./modal-dialog"),bi=r(wi),ki=n("./tech/tech.js"),c=r(ki),di=n("./tech/html5.js"),or=r(di),f=function(n){function t(i,r,u){var f=this,s;if(tt(this,t),i.id=i.id||"vjs_video_"+ct.newGUID(),r=p["default"](t.getTagSettings(i),r),r.initChildren=!1,r.createEl=!1,r.reportTouchActivity=!1,n.call(this,null,r,u),!this.options_||!this.options_.techOrder||!this.options_.techOrder.length)throw new Error("No techOrder specified. Did you overwrite videojs.options instead of just changing the properties you want to override?");this.tag=i;this.tagAttributes=i&&e.getElAttributes(i);this.language(this.options_.language);r.languages?function(){var n={};Object.getOwnPropertyNames(r.languages).forEach(function(t){n[t.toLowerCase()]=r.languages[t]});f.languages_=n}():this.languages_=t.prototype.options_.languages;this.cache_={};this.poster_=r.poster||"";this.controls_=!!r.controls;i.controls=!1;this.scrubbing_=!1;this.el_=this.createEl();s=w["default"](this.options_);r.plugins&&function(){var n=r.plugins;Object.getOwnPropertyNames(n).forEach(function(t){typeof this[t]=="function"?this[t](n[t]):o["default"].error("Unable to find plugin:",t)},f)}();this.options_.playerOptions=s;this.initChildren();this.isAudio(i.nodeName.toLowerCase()==="audio");this.controls()?this.addClass("vjs-controls-enabled"):this.addClass("vjs-controls-disabled");this.el_.setAttribute("role","region");this.isAudio()?this.el_.setAttribute("aria-label","audio player"):this.el_.setAttribute("aria-label","video player");this.isAudio()&&this.addClass("vjs-audio");this.flexNotSupported_()&&this.addClass("vjs-no-flex");at.IS_IOS||this.addClass("vjs-workinghover");t.players[this.id_]=this;this.userActive(!0);this.reportUserActivity();this.listenForUserActivity_();this.on("fullscreenchange",this.handleFullscreenChange_);this.on("stageclick",this.handleStageClick_)}return it(t,n),t.prototype.dispose=function(){this.trigger("dispose");this.off("dispose");this.styleEl_&&this.styleEl_.parentNode&&this.styleEl_.parentNode.removeChild(this.styleEl_);t.players[this.id_]=null;this.tag&&this.tag.player&&(this.tag.player=null);this.el_&&this.el_.player&&(this.el_.player=null);this.tech_&&this.tech_.dispose();n.prototype.dispose.call(this)},t.prototype.createEl=function(){var i=this.el_=n.prototype.createEl.call(this,"div"),t=this.tag,r,f,o,s,u,h;for(t.removeAttribute("width"),t.removeAttribute("height"),r=e.getElAttributes(t),Object.getOwnPropertyNames(r).forEach(function(n){n==="class"?i.className=r[n]:i.setAttribute(n,r[n])}),t.playerId=t.id,t.id+="_html5_api",t.className="vjs-tech",t.player=i.player=this,this.addClass("vjs-paused"),a["default"].VIDEOJS_NO_DYNAMIC_STYLE!==!0&&(this.styleEl_=d.createStyleElement("vjs-styles-dimensions"),f=e.$(".vjs-styles-defaults"),o=e.$("head"),o.insertBefore(this.styleEl_,f?f.nextSibling:o.firstChild)),this.width(this.options_.width),this.height(this.options_.height),this.fluid(this.options_.fluid),this.aspectRatio(this.options_.aspectRatio),s=t.getElementsByTagName("a"),u=0;u<s.length;u++)h=s.item(u),e.addElClass(h,"vjs-hidden"),h.setAttribute("hidden","hidden");return t.initNetworkState_=t.networkState,t.parentNode&&t.parentNode.insertBefore(i,t),e.insertElFirst(t,i),this.children_.unshift(t),this.el_=i,i},t.prototype.width=function(n){return this.dimension("width",n)},t.prototype.height=function(n){return this.dimension("height",n)},t.prototype.dimension=function(n,t){var i=n+"_",r;if(t===undefined)return this[i]||0;if(t==="")this[i]=undefined;else{if(r=parseFloat(t),isNaN(r))return o["default"].error('Improper value "'+t+'" supplied for for '+n),this;this[i]=r}return this.updateStyleEl_(),this},t.prototype.fluid=function(n){if(n===undefined)return!!this.fluid_;this.fluid_=!!n;n?this.addClass("vjs-fluid"):this.removeClass("vjs-fluid")},t.prototype.aspectRatio=function(n){if(n===undefined)return this.aspectRatio_;if(!/^\d+\:\d+$/.test(n))throw new Error("Improper value supplied for aspect ratio. The format should be width:height, for example 16:9.");this.aspectRatio_=n;this.fluid(!0);this.updateStyleEl_()},t.prototype.updateStyleEl_=function(){var u,t;if(a["default"].VIDEOJS_NO_DYNAMIC_STYLE===!0){var f=typeof this.width_=="number"?this.width_:this.options_.width,e=typeof this.height_=="number"?this.height_:this.options_.height,i=this.tech_&&this.tech_.el();i&&(f>=0&&(i.width=f),e>=0&&(i.height=e));return}var r=undefined,o=undefined,s=undefined,n=undefined;s=this.aspectRatio_!==undefined&&this.aspectRatio_!=="auto"?this.aspectRatio_:this.videoWidth()?this.videoWidth()+":"+this.videoHeight():"16:9";u=s.split(":");t=u[1]/u[0];r=this.width_!==undefined?this.width_:this.height_!==undefined?this.height_/t:this.videoWidth()||300;o=this.height_!==undefined?this.height_:r*t;n=/^[^a-zA-Z]/.test(this.id())?"dimensions-"+this.id():this.id()+"-dimensions";this.addClass(n);d.setTextContent(this.styleEl_,"\n      ."+n+" {\n        width: "+r+"px;\n        height: "+o+"px;\n      }\n\n      ."+n+".vjs-fluid {\n        padding-top: "+t*100+"%;\n      }\n    ")},t.prototype.loadTech_=function(n,t){var i,r;this.tech_&&this.unloadTech_();n!=="Html5"&&this.tag&&(c["default"].getTech("Html5").disposeMediaElement(this.tag),this.tag.player=null,this.tag=null);this.techName_=n;this.isReady_=!1;i=p["default"]({nativeControlsForTouch:this.options_.nativeControlsForTouch,source:t,playerId:this.id(),techId:this.id()+"_"+n+"_api",videoTracks:this.videoTracks_,textTracks:this.textTracks_,audioTracks:this.audioTracks_,autoplay:this.options_.autoplay,preload:this.options_.preload,loop:this.options_.loop,muted:this.options_.muted,poster:this.poster(),language:this.language(),"vtt.js":this.options_["vtt.js"]},this.options_[n.toLowerCase()]);this.tag&&(i.tag=this.tag);t&&(this.currentType_=t.type,t.src===this.cache_.src&&this.cache_.currentTime>0&&(i.startTime=this.cache_.currentTime),this.cache_.src=t.src);r=c["default"].getTech(n);r||(r=h["default"].getComponent(n));this.tech_=new r(i);this.tech_.ready(y.bind(this,this.handleTechReady_),!0);nt["default"].jsonToTextTracks(this.textTracksJson_||[],this.tech_);this.on(this.tech_,"loadstart",this.handleTechLoadStart_);this.on(this.tech_,"waiting",this.handleTechWaiting_);this.on(this.tech_,"canplay",this.handleTechCanPlay_);this.on(this.tech_,"canplaythrough",this.handleTechCanPlayThrough_);this.on(this.tech_,"playing",this.handleTechPlaying_);this.on(this.tech_,"ended",this.handleTechEnded_);this.on(this.tech_,"seeking",this.handleTechSeeking_);this.on(this.tech_,"seeked",this.handleTechSeeked_);this.on(this.tech_,"play",this.handleTechPlay_);this.on(this.tech_,"firstplay",this.handleTechFirstPlay_);this.on(this.tech_,"pause",this.handleTechPause_);this.on(this.tech_,"progress",this.handleTechProgress_);this.on(this.tech_,"durationchange",this.handleTechDurationChange_);this.on(this.tech_,"fullscreenchange",this.handleTechFullscreenChange_);this.on(this.tech_,"error",this.handleTechError_);this.on(this.tech_,"suspend",this.handleTechSuspend_);this.on(this.tech_,"abort",this.handleTechAbort_);this.on(this.tech_,"emptied",this.handleTechEmptied_);this.on(this.tech_,"stalled",this.handleTechStalled_);this.on(this.tech_,"loadedmetadata",this.handleTechLoadedMetaData_);this.on(this.tech_,"loadeddata",this.handleTechLoadedData_);this.on(this.tech_,"timeupdate",this.handleTechTimeUpdate_);this.on(this.tech_,"ratechange",this.handleTechRateChange_);this.on(this.tech_,"volumechange",this.handleTechVolumeChange_);this.on(this.tech_,"texttrackchange",this.handleTechTextTrackChange_);this.on(this.tech_,"loadedmetadata",this.updateStyleEl_);this.on(this.tech_,"posterchange",this.handleTechPosterChange_);this.usingNativeControls(this.techGet_("controls"));this.controls()&&!this.usingNativeControls()&&this.addTechControlsListeners_();this.tech_.el().parentNode===this.el()||n==="Html5"&&this.tag||e.insertElFirst(this.tech_.el(),this.el());this.tag&&(this.tag.player=null,this.tag=null)},t.prototype.unloadTech_=function(){this.videoTracks_=this.videoTracks();this.textTracks_=this.textTracks();this.audioTracks_=this.audioTracks();this.textTracksJson_=nt["default"].textTracksToJson(this.tech_);this.isReady_=!1;this.tech_.dispose();this.tech_=!1},t.prototype.tech=function(n){if(n&&n.IWillNotUseThisInPlugins)return this.tech_;var t="\n      Please make sure that you are not using this inside of a plugin.\n      To disable this alert and error, please pass in an object with\n      `IWillNotUseThisInPlugins` to the `tech` method. See\n      https://github.com/videojs/video.js/issues/2617 for more info.\n    ";a["default"].alert(t);throw new Error(t);},t.prototype.addTechControlsListeners_=function(){this.removeTechControlsListeners_();this.on(this.tech_,"mousedown",this.handleTechClick_);this.on(this.tech_,"touchstart",this.handleTechTouchStart_);this.on(this.tech_,"touchmove",this.handleTechTouchMove_);this.on(this.tech_,"touchend",this.handleTechTouchEnd_);this.on(this.tech_,"tap",this.handleTechTap_)},t.prototype.removeTechControlsListeners_=function(){this.off(this.tech_,"tap",this.handleTechTap_);this.off(this.tech_,"touchstart",this.handleTechTouchStart_);this.off(this.tech_,"touchmove",this.handleTechTouchMove_);this.off(this.tech_,"touchend",this.handleTechTouchEnd_);this.off(this.tech_,"mousedown",this.handleTechClick_)},t.prototype.handleTechReady_=function(){if(this.triggerReady(),this.cache_.volume&&this.techCall_("setVolume",this.cache_.volume),this.handleTechPosterChange_(),this.handleTechDurationChange_(),this.src()&&this.tag&&this.options_.autoplay&&this.paused()){try{delete this.tag.poster}catch(n){o["default"]("deleting tag.poster throws in some browsers",n)}this.play()}},t.prototype.handleTechLoadStart_=function(){this.removeClass("vjs-ended");this.error(null);this.paused()?(this.hasStarted(!1),this.trigger("loadstart")):(this.trigger("loadstart"),this.trigger("firstplay"))},t.prototype.hasStarted=function(n){return n!==undefined?(this.hasStarted_!==n&&(this.hasStarted_=n,n?(this.addClass("vjs-has-started"),this.trigger("firstplay")):this.removeClass("vjs-has-started")),this):!!this.hasStarted_},t.prototype.handleTechPlay_=function(){this.removeClass("vjs-ended");this.removeClass("vjs-paused");this.addClass("vjs-playing");this.hasStarted(!0);this.trigger("play")},t.prototype.handleTechWaiting_=function(){var n=this;this.addClass("vjs-waiting");this.trigger("waiting");this.one("timeupdate",function(){return n.removeClass("vjs-waiting")})},t.prototype.handleTechCanPlay_=function(){this.removeClass("vjs-waiting");this.trigger("canplay")},t.prototype.handleTechCanPlayThrough_=function(){this.removeClass("vjs-waiting");this.trigger("canplaythrough")},t.prototype.handleTechPlaying_=function(){this.removeClass("vjs-waiting");this.trigger("playing")},t.prototype.handleTechSeeking_=function(){this.addClass("vjs-seeking");this.trigger("seeking")},t.prototype.handleTechSeeked_=function(){this.removeClass("vjs-seeking");this.trigger("seeked")},t.prototype.handleTechFirstPlay_=function(){this.options_.starttime&&this.currentTime(this.options_.starttime);this.addClass("vjs-has-started");this.trigger("firstplay")},t.prototype.handleTechPause_=function(){this.removeClass("vjs-playing");this.addClass("vjs-paused");this.trigger("pause")},t.prototype.handleTechProgress_=function(){this.trigger("progress")},t.prototype.handleTechEnded_=function(){this.addClass("vjs-ended");this.options_.loop?(this.currentTime(0),this.play()):this.paused()||this.pause();this.trigger("ended")},t.prototype.handleTechDurationChange_=function(){this.duration(this.techGet_("duration"))},t.prototype.handleTechClick_=function(n){n.button===0&&this.controls()&&(this.paused()?this.play():this.pause())},t.prototype.handleTechTap_=function(){this.userActive(!this.userActive())},t.prototype.handleTechTouchStart_=function(){this.userWasActive=this.userActive()},t.prototype.handleTechTouchMove_=function(){this.userWasActive&&this.reportUserActivity()},t.prototype.handleTechTouchEnd_=function(n){n.preventDefault()},t.prototype.handleFullscreenChange_=function(){this.isFullscreen()?this.addClass("vjs-fullscreen"):this.removeClass("vjs-fullscreen")},t.prototype.handleStageClick_=function(){this.reportUserActivity()},t.prototype.handleTechFullscreenChange_=function(n,t){t&&this.isFullscreen(t.isFullscreen);this.trigger("fullscreenchange")},t.prototype.handleTechError_=function(){var n=this.tech_.error();this.error(n&&n.code)},t.prototype.handleTechSuspend_=function(){this.trigger("suspend")},t.prototype.handleTechAbort_=function(){this.trigger("abort")},t.prototype.handleTechEmptied_=function(){this.trigger("emptied")},t.prototype.handleTechStalled_=function(){this.trigger("stalled")},t.prototype.handleTechLoadedMetaData_=function(){this.trigger("loadedmetadata")},t.prototype.handleTechLoadedData_=function(){this.trigger("loadeddata")},t.prototype.handleTechTimeUpdate_=function(){this.trigger("timeupdate")},t.prototype.handleTechRateChange_=function(){this.trigger("ratechange")},t.prototype.handleTechVolumeChange_=function(){this.trigger("volumechange")},t.prototype.handleTechTextTrackChange_=function(){this.trigger("texttrackchange")},t.prototype.getCache=function(){return this.cache_},t.prototype.techCall_=function(n,t){if(this.tech_&&!this.tech_.isReady_)this.tech_.ready(function(){this[n](t)},!0);else try{this.tech_[n](t)}catch(i){o["default"](i);throw i;}},t.prototype.techGet_=function(n){if(this.tech_&&this.tech_.isReady_)try{return this.tech_[n]()}catch(t){this.tech_[n]===undefined?o["default"]("Video.js: "+n+" method not defined for "+this.techName_+" playback technology.",t):t.name==="TypeError"?(o["default"]("Video.js: "+n+" unavailable on "+this.techName_+" playback technology element.",t),this.tech_.isReady_=!1):o["default"](t);throw t;}return},t.prototype.play=function(){return this.techCall_("play"),this},t.prototype.pause=function(){return this.techCall_("pause"),this},t.prototype.paused=function(){return this.techGet_("paused")===!1?!1:!0},t.prototype.scrubbing=function(n){return n!==undefined?(this.scrubbing_=!!n,n?this.addClass("vjs-scrubbing"):this.removeClass("vjs-scrubbing"),this):this.scrubbing_},t.prototype.currentTime=function(n){return n!==undefined?(this.techCall_("setCurrentTime",n),this):this.cache_.currentTime=this.techGet_("currentTime")||0},t.prototype.duration=function(n){return n===undefined?this.cache_.duration||0:(n=parseFloat(n)||0,n<0&&(n=Infinity),n!==this.cache_.duration&&(this.cache_.duration=n,n===Infinity?this.addClass("vjs-live"):this.removeClass("vjs-live"),this.trigger("durationchange")),this)},t.prototype.remainingTime=function(){return this.duration()-this.currentTime()},t.prototype.buffered=function(){var n=this.techGet_("buffered");return n&&n.length||(n=pt.createTimeRange(0,0)),n},t.prototype.bufferedPercent=function(){return wt.bufferedPercent(this.buffered(),this.duration())},t.prototype.bufferedEnd=function(){var t=this.buffered(),i=this.duration(),n=t.end(t.length-1);return n>i&&(n=i),n},t.prototype.volume=function(n){var t=undefined;return n!==undefined?(t=Math.max(0,Math.min(1,parseFloat(n))),this.cache_.volume=t,this.techCall_("setVolume",t),this):(t=parseFloat(this.techGet_("volume")),isNaN(t)?1:t)},t.prototype.muted=function(n){return n!==undefined?(this.techCall_("setMuted",n),this):this.techGet_("muted")||!1},t.prototype.supportsFullScreen=function(){return this.techGet_("supportsFullScreen")||!1},t.prototype.isFullscreen=function(n){return n!==undefined?(this.isFullscreen_=!!n,this):!!this.isFullscreen_},t.prototype.requestFullscreen=function(){var n=g["default"];if(this.isFullscreen(!0),n.requestFullscreen){v.on(u["default"],n.fullscreenchange,y.bind(this,function t(){this.isFullscreen(u["default"][n.fullscreenElement]);this.isFullscreen()===!1&&v.off(u["default"],n.fullscreenchange,t);this.trigger("fullscreenchange")}));this.el_[n.requestFullscreen]()}else this.tech_.supportsFullScreen()?this.techCall_("enterFullScreen"):(this.enterFullWindow(),this.trigger("fullscreenchange"));return this},t.prototype.exitFullscreen=function(){var n=g["default"];return this.isFullscreen(!1),n.requestFullscreen?u["default"][n.exitFullscreen]():this.tech_.supportsFullScreen()?this.techCall_("exitFullScreen"):(this.exitFullWindow(),this.trigger("fullscreenchange")),this},t.prototype.enterFullWindow=function(){this.isFullWindow=!0;this.docOrigOverflow=u["default"].documentElement.style.overflow;v.on(u["default"],"keydown",y.bind(this,this.fullWindowOnEscKey));u["default"].documentElement.style.overflow="hidden";e.addElClass(u["default"].body,"vjs-full-window");this.trigger("enterFullWindow")},t.prototype.fullWindowOnEscKey=function(n){n.keyCode===27&&(this.isFullscreen()===!0?this.exitFullscreen():this.exitFullWindow())},t.prototype.exitFullWindow=function(){this.isFullWindow=!1;v.off(u["default"],"keydown",this.fullWindowOnEscKey);u["default"].documentElement.style.overflow=this.docOrigOverflow;e.removeElClass(u["default"].body,"vjs-full-window");this.trigger("exitFullWindow")},t.prototype.canPlayType=function(n){for(var i,t,r=undefined,u=0,f=this.options_.techOrder;u<f.length;u++){if(i=b["default"](f[u]),t=c["default"].getTech(i),t||(t=h["default"].getComponent(i)),!t){o["default"].error('The "'+i+'" tech is undefined. Skipped browser support check for that tech.');continue}if(t.isSupported()&&(r=t.canPlayType(n),r))return r}return""},t.prototype.selectSource=function(n){var t=this.options_.techOrder.map(b["default"]).map(function(n){return[n,c["default"].getTech(n)||h["default"].getComponent(n)]}).filter(function(n){var i=n[0],t=n[1];return t?t.isSupported():(o["default"].error('The "'+i+'" tech is undefined. Skipped browser support check for that tech.'),!1)}),i=function(n,t,i){var r=undefined;return n.some(function(n){return t.some(function(t){return r=i(n,t),r?!0:void 0})}),r},r=undefined,f=function(n){return function(t,i){return n(i,t)}},u=function(n,t){var i=n[0],r=n[1];if(r.canPlaySource(t))return{source:t,tech:i}};return r=this.options_.sourceOrder?i(n,t,f(u)):i(t,n,u),r||!1},t.prototype.src=function(n){if(n===undefined)return this.techGet_("src");var t=c["default"].getTech(this.techName_);return t||(t=h["default"].getComponent(this.techName_)),Array.isArray(n)?this.sourceList_(n):typeof n=="string"?this.src({src:n}):n instanceof Object&&(n.type&&!t.canPlaySource(n)?this.sourceList_([n]):(this.cache_.src=n.src,this.currentType_=n.type||"",this.ready(function(){t.prototype.hasOwnProperty("setSource")?this.techCall_("setSource",n):this.techCall_("src",n.src);this.options_.preload==="auto"&&this.load();this.options_.autoplay&&this.play()},!0))),this},t.prototype.sourceList_=function(n){var t=this.selectSource(n);t?t.tech===this.techName_?this.src(t.source):this.loadTech_(t.tech,t.source):(this.setTimeout(function(){this.error({code:4,message:this.localize(this.options_.notSupportedMessage)})},0),this.triggerReady())},t.prototype.load=function(){return this.techCall_("load"),this},t.prototype.reset=function(){return this.loadTech_(b["default"](this.options_.techOrder[0]),null),this.techCall_("reset"),this},t.prototype.currentSrc=function(){return this.techGet_("currentSrc")||this.cache_.src||""},t.prototype.currentType=function(){return this.currentType_||""},t.prototype.preload=function(n){return n!==undefined?(this.techCall_("setPreload",n),this.options_.preload=n,this):this.techGet_("preload")},t.prototype.autoplay=function(n){return n!==undefined?(this.techCall_("setAutoplay",n),this.options_.autoplay=n,this):this.techGet_("autoplay",n)},t.prototype.loop=function(n){return n!==undefined?(this.techCall_("setLoop",n),this.options_.loop=n,this):this.techGet_("loop")},t.prototype.poster=function(n){return n===undefined?this.poster_:(n||(n=""),this.poster_=n,this.techCall_("setPoster",n),this.trigger("posterchange"),this)},t.prototype.handleTechPosterChange_=function(){!this.poster_&&this.tech_&&this.tech_.poster&&(this.poster_=this.tech_.poster()||"",this.trigger("posterchange"))},t.prototype.controls=function(n){return n!==undefined?(n=!!n,this.controls_!==n&&(this.controls_=n,this.usingNativeControls()&&this.techCall_("setControls",n),n?(this.removeClass("vjs-controls-disabled"),this.addClass("vjs-controls-enabled"),this.trigger("controlsenabled"),this.usingNativeControls()||this.addTechControlsListeners_()):(this.removeClass("vjs-controls-enabled"),this.addClass("vjs-controls-disabled"),this.trigger("controlsdisabled"),this.usingNativeControls()||this.removeTechControlsListeners_())),this):!!this.controls_},t.prototype.usingNativeControls=function(n){return n!==undefined?(n=!!n,this.usingNativeControls_!==n&&(this.usingNativeControls_=n,n?(this.addClass("vjs-using-native-controls"),this.trigger("usingnativecontrols")):(this.removeClass("vjs-using-native-controls"),this.trigger("usingcustomcontrols"))),this):!!this.usingNativeControls_},t.prototype.error=function(n){return n===undefined?this.error_||null:n===null?(this.error_=n,this.removeClass("vjs-error"),this.errorDisplay.close(),this):(this.error_=n instanceof k["default"]?n:new k["default"](n),this.addClass("vjs-error"),o["default"].error("(CODE:"+this.error_.code+" "+k["default"].errorTypes[this.error_.code]+")",this.error_.message,this.error_),this.trigger("error"),this)},t.prototype.ended=function(){return this.techGet_("ended")},t.prototype.seeking=function(){return this.techGet_("seeking")},t.prototype.seekable=function(){return this.techGet_("seekable")},t.prototype.reportUserActivity=function(){this.userActivity_=!0},t.prototype.userActive=function(n){if(n!==undefined){if(n=!!n,n!==this.userActive_)if(this.userActive_=n,n)this.userActivity_=!0,this.removeClass("vjs-user-inactive"),this.addClass("vjs-user-active"),this.trigger("useractive");else{if(this.userActivity_=!1,this.tech_)this.tech_.one("mousemove",function(n){n.stopPropagation();n.preventDefault()});this.removeClass("vjs-user-active");this.addClass("vjs-user-inactive");this.trigger("userinactive")}return this}return this.userActive_},t.prototype.listenForUserActivity_=function(){var t=undefined,r=undefined,u=undefined,n=y.bind(this,this.reportUserActivity),f=function(t){(t.screenX!==r||t.screenY!==u)&&(r=t.screenX,u=t.screenY,n())},e=function(){n();this.clearInterval(t);t=this.setInterval(n,250)},o=function(){n();this.clearInterval(t)},i,s;this.on("mousedown",e);this.on("mousemove",f);this.on("mouseup",o);this.on("keydown",n);this.on("keyup",n);i=undefined;s=this.setInterval(function(){if(this.userActivity_){this.userActivity_=!1;this.userActive(!0);this.clearTimeout(i);var n=this.options_.inactivityTimeout;n>0&&(i=this.setTimeout(function(){this.userActivity_||this.userActive(!1)},n))}},250)},t.prototype.playbackRate=function(n){return n!==undefined?(this.techCall_("setPlaybackRate",n),this):this.tech_&&this.tech_.featuresPlaybackRate?this.techGet_("playbackRate"):1},t.prototype.isAudio=function(n){return n!==undefined?(this.isAudio_=!!n,this):!!this.isAudio_},t.prototype.networkState=function(){return this.techGet_("networkState")},t.prototype.readyState=function(){return this.techGet_("readyState")},t.prototype.videoTracks=function(){return this.tech_?this.tech_.videoTracks():(this.videoTracks_=this.videoTracks_||new oi["default"],this.videoTracks_)},t.prototype.audioTracks=function(){return this.tech_?this.tech_.audioTracks():(this.audioTracks_=this.audioTracks_||new fi["default"],this.audioTracks_)},t.prototype.textTracks=function(){return this.tech_&&this.tech_.textTracks()},t.prototype.remoteTextTracks=function(){return this.tech_&&this.tech_.remoteTextTracks()},t.prototype.remoteTextTrackEls=function(){return this.tech_&&this.tech_.remoteTextTrackEls()},t.prototype.addTextTrack=function(n,t,i){return this.tech_&&this.tech_.addTextTrack(n,t,i)},t.prototype.addRemoteTextTrack=function(n){return this.tech_&&this.tech_.addRemoteTextTrack(n)},t.prototype.removeRemoteTextTrack=function(){var t=arguments.length<=0||arguments[0]===undefined?{}:arguments[0],n=t.track,i=n===undefined?arguments[0]:n;this.tech_&&this.tech_.removeRemoteTextTrack(i)},t.prototype.videoWidth=function(){return this.tech_&&this.tech_.videoWidth&&this.tech_.videoWidth()||0},t.prototype.videoHeight=function(){return this.tech_&&this.tech_.videoHeight&&this.tech_.videoHeight()||0},t.prototype.language=function(n){return n===undefined?this.language_:(this.language_=(""+n).toLowerCase(),this)},t.prototype.languages=function(){return w["default"](t.prototype.options_.languages,this.languages_)},t.prototype.toJSON=function(){var i=w["default"](this.options_),r=i.tracks,n,t;for(i.tracks=[],n=0;n<r.length;n++)t=r[n],t=w["default"](t),t.player=undefined,i.tracks[n]=t;return i},t.prototype.createModal=function(n,t){var r=this,i;t=t||{};t.content=n||"";i=new bi["default"](r,t);r.addChild(i);i.on("dispose",function(){r.removeChild(i)});return i.open()},t.getTagSettings=function(n){var t={sources:[],tracks:[]},u=e.getElAttributes(n),h=u["data-setup"],f,i,a,r,s;if(h!==null){var c=ni["default"](h||"{}"),l=c[0],v=c[1];l&&o["default"].error(l);p["default"](u,v)}if(p["default"](t,u),n.hasChildNodes())for(f=n.childNodes,i=0,a=f.length;i<a;i++)r=f[i],s=r.nodeName.toLowerCase(),s==="source"?t.sources.push(e.getElAttributes(r)):s==="track"&&t.tracks.push(e.getElAttributes(r));return t},t}(h["default"]);f.players={};l=a["default"].navigator;f.prototype.options_={techOrder:["html5","flash"],html5:{},flash:{},defaultVolume:0,inactivityTimeout:2e3,playbackRates:[],children:["mediaLoader","posterImage","textTrackDisplay","loadingSpinner","bigPlayButton","controlBar","errorDisplay","textTrackSettings"],language:u["default"].getElementsByTagName("html")[0].getAttribute("lang")||l.languages&&l.languages[0]||l.userLanguage||l.language||"en",languages:{},notSupportedMessage:"No compatible source was found for this media."};f.prototype.handleLoadedMetaData_;f.prototype.handleLoadedData_;f.prototype.handleUserActive_;f.prototype.handleUserInactive_;f.prototype.handleTimeUpdate_;f.prototype.handleTechEnded_;f.prototype.handleVolumeChange_;f.prototype.handleError_;f.prototype.flexNotSupported_=function(){var n=u["default"].createElement("i");return!("flexBasis"in n.style||"webkitFlexBasis"in n.style||"mozFlexBasis"in n.style||"msFlexBasis"in n.style||"msFlexOrder"in n.style)};h["default"].registerComponent("Player",f);i["default"]=f;t.exports=i["default"]},{"./big-play-button.js":63,"./component.js":67,"./control-bar/control-bar.js":70,"./error-display.js":103,"./fullscreen-api.js":106,"./loading-spinner.js":107,"./media-error.js":108,"./modal-dialog":112,"./poster-image.js":117,"./tech/html5.js":122,"./tech/loader.js":123,"./tech/tech.js":124,"./tracks/audio-track-list.js":125,"./tracks/text-track-display.js":130,"./tracks/text-track-list-converter.js":131,"./tracks/text-track-settings.js":133,"./tracks/video-track-list.js":138,"./utils/browser.js":140,"./utils/buffer.js":141,"./utils/dom.js":143,"./utils/events.js":144,"./utils/fn.js":145,"./utils/guid.js":147,"./utils/log.js":148,"./utils/merge-options.js":149,"./utils/stylesheet.js":150,"./utils/time-ranges.js":151,"./utils/to-title-case.js":152,"global/document":1,"global/window":2,"object.assign":45,"safe-json-parse/tuple":54}],114:[function(n,t,i){"use strict";function r(n){return n&&n.__esModule?n:{"default":n}}i.__esModule=!0;var u=n("./player.js"),f=r(u),e=function(n,t){f["default"].prototype[n]=t};i["default"]=e;t.exports=i["default"]},{"./player.js":113}],115:[function(n,t,i){"use strict";function u(n){var t,i;if(n&&n.__esModule)return n;if(t={},n!=null)for(i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i]);return t["default"]=n,t}function r(n){return n&&n.__esModule?n:{"default":n}}function e(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function o(n,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}i.__esModule=!0;var s=n("../clickable-component.js"),h=r(s),c=n("../component.js"),l=r(c),a=n("./popup.js"),w=r(a),v=n("../utils/dom.js"),b=u(v),y=n("../utils/fn.js"),k=u(y),p=n("../utils/to-title-case.js"),d=r(p),f=function(n){function t(i){var r=arguments.length<=1||arguments[1]===undefined?{}:arguments[1];e(this,t);n.call(this,i,r);this.update()}return o(t,n),t.prototype.update=function(){var n=this.createPopup();this.popup&&this.removeChild(this.popup);this.popup=n;this.addChild(n);this.items&&this.items.length===0?this.hide():this.items&&this.items.length>1&&this.show()},t.prototype.createPopup=function(){},t.prototype.createEl=function(){return n.prototype.createEl.call(this,"div",{className:this.buildCSSClass()})},t.prototype.buildCSSClass=function(){var t="vjs-menu-button";return t+=this.options_.inline===!0?"-inline":"-popup","vjs-menu-button "+t+" "+n.prototype.buildCSSClass.call(this)},t}(h["default"]);l["default"].registerComponent("PopupButton",f);i["default"]=f;t.exports=i["default"]},{"../clickable-component.js":65,"../component.js":67,"../utils/dom.js":143,"../utils/fn.js":145,"../utils/to-title-case.js":152,"./popup.js":116}],116:[function(n,t,i){"use strict";function r(n){var t,i;if(n&&n.__esModule)return n;if(t={},n!=null)for(i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i]);return t["default"]=n,t}function e(n){return n&&n.__esModule?n:{"default":n}}function o(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function s(n,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}i.__esModule=!0;var h=n("../component.js"),u=e(h),c=n("../utils/dom.js"),l=r(c),a=n("../utils/fn.js"),v=r(a),y=n("../utils/events.js"),p=r(y),f=function(n){function t(){o(this,t);n.apply(this,arguments)}return s(t,n),t.prototype.addItem=function(n){this.addChild(n);n.on("click",v.bind(this,function(){this.unlockShowing()}))},t.prototype.createEl=function(){var i=this.options_.contentElType||"ul",t;this.contentEl_=l.createEl(i,{className:"vjs-menu-content"});t=n.prototype.createEl.call(this,"div",{append:this.contentEl_,className:"vjs-menu"});t.appendChild(this.contentEl_);p.on(t,"click",function(n){n.preventDefault();n.stopImmediatePropagation()});return t},t}(u["default"]);u["default"].registerComponent("Popup",f);i["default"]=f;t.exports=i["default"]},{"../component.js":67,"../utils/dom.js":143,"../utils/events.js":144,"../utils/fn.js":145}],117:[function(n,t,i){"use strict";function r(n){var t,i;if(n&&n.__esModule)return n;if(t={},n!=null)for(i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i]);return t["default"]=n,t}function u(n){return n&&n.__esModule?n:{"default":n}}function o(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function s(n,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}i.__esModule=!0;var h=n("./clickable-component.js"),c=u(h),l=n("./component.js"),a=u(l),v=n("./utils/fn.js"),y=r(v),p=n("./utils/dom.js"),f=r(p),w=n("./utils/browser.js"),b=r(w),e=function(n){function t(i,r){o(this,t);n.call(this,i,r);this.update();i.on("posterchange",y.bind(this,this.update))}return s(t,n),t.prototype.dispose=function(){this.player().off("posterchange",this.update);n.prototype.dispose.call(this)},t.prototype.createEl=function(){var n=f.createEl("div",{className:"vjs-poster",tabIndex:-1});return b.BACKGROUND_SIZE_SUPPORTED||(this.fallbackImg_=f.createEl("img"),n.appendChild(this.fallbackImg_)),n},t.prototype.update=function(){var n=this.player().poster();this.setSrc(n);n?this.show():this.hide()},t.prototype.setSrc=function(n){if(this.fallbackImg_)this.fallbackImg_.src=n;else{var t="";n&&(t='url("'+n+'")');this.el_.style.backgroundImage=t}},t.prototype.handleClick=function(){this.player_.paused()?this.player_.play():this.player_.pause()},t}(c["default"]);a["default"].registerComponent("PosterImage",e);i["default"]=e;t.exports=i["default"]},{"./clickable-component.js":65,"./component.js":67,"./utils/browser.js":140,"./utils/dom.js":143,"./utils/fn.js":145}],118:[function(n,t,i){"use strict";function e(n){return n&&n.__esModule?n:{"default":n}}function c(n){var t,i;if(n&&n.__esModule)return n;if(t={},n!=null)for(i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i]);return t["default"]=n,t}var h;i.__esModule=!0;var l=n("./utils/events.js"),a=c(l),v=n("global/document"),u=e(v),y=n("global/window"),p=e(y),r=!1,o=undefined,s=function(){var s=u["default"].getElementsByTagName("video"),h=u["default"].getElementsByTagName("audio"),t=[],n,i,e,c,l;if(s&&s.length>0)for(n=0,i=s.length;n<i;n++)t.push(s[n]);if(h&&h.length>0)for(n=0,i=h.length;n<i;n++)t.push(h[n]);if(t&&t.length>0)for(n=0,i=t.length;n<i;n++)if(e=t[n],e&&e.getAttribute)e.player===undefined&&(c=e.getAttribute("data-setup"),c!==null&&(l=o(e)));else{f(1);break}else r||f(1)},f=function(n,t){t&&(o=t);setTimeout(s,n)};if(u["default"].readyState==="complete")r=!0;else a.one(p["default"],"load",function(){r=!0});h=function(){return r};i.autoSetup=s;i.autoSetupTimeout=f;i.hasLoaded=h},{"./utils/events.js":144,"global/document":1,"global/window":2}],119:[function(n,t,i){"use strict";function s(n){var t,i;if(n&&n.__esModule)return n;if(t={},n!=null)for(i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i]);return t["default"]=n,t}function u(n){return n&&n.__esModule?n:{"default":n}}function h(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function c(n,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}i.__esModule=!0;var l=n("../component.js"),f=u(l),a=n("../utils/dom.js"),r=s(a),v=n("object.assign"),e=u(v),o=function(n){function t(i,r){h(this,t);n.call(this,i,r);this.bar=this.getChild(this.options_.barName);this.vertical(!!this.options_.vertical);this.on("mousedown",this.handleMouseDown);this.on("touchstart",this.handleMouseDown);this.on("focus",this.handleFocus);this.on("blur",this.handleBlur);this.on("click",this.handleClick);this.on(i,"controlsvisible",this.update);this.on(i,this.playerEvent,this.update)}return c(t,n),t.prototype.createEl=function(t){var i=arguments.length<=1||arguments[1]===undefined?{}:arguments[1],r=arguments.length<=2||arguments[2]===undefined?{}:arguments[2];return i.className=i.className+" vjs-slider",i=e["default"]({tabIndex:0},i),r=e["default"]({role:"slider","aria-valuenow":0,"aria-valuemin":0,"aria-valuemax":100,tabIndex:0},r),n.prototype.createEl.call(this,t,i,r)},t.prototype.handleMouseDown=function(n){var t=this.bar.el_.ownerDocument;n.preventDefault();r.blockTextSelection();this.addClass("vjs-sliding");this.trigger("slideractive");this.on(t,"mousemove",this.handleMouseMove);this.on(t,"mouseup",this.handleMouseUp);this.on(t,"touchmove",this.handleMouseMove);this.on(t,"touchend",this.handleMouseUp);this.handleMouseMove(n)},t.prototype.handleMouseMove=function(){},t.prototype.handleMouseUp=function(){var n=this.bar.el_.ownerDocument;r.unblockTextSelection();this.removeClass("vjs-sliding");this.trigger("sliderinactive");this.off(n,"mousemove",this.handleMouseMove);this.off(n,"mouseup",this.handleMouseUp);this.off(n,"touchmove",this.handleMouseMove);this.off(n,"touchend",this.handleMouseUp);this.update()},t.prototype.update=function(){var n,t,i;this.el_&&(n=this.getPercent(),t=this.bar,t)&&((typeof n!="number"||n!==n||n<0||n===Infinity)&&(n=0),i=(n*100).toFixed(2)+"%",this.vertical()?t.el().style.height=i:t.el().style.width=i)},t.prototype.calculateDistance=function(n){var t=r.getPointerPosition(this.el_,n);return this.vertical()?t.y:t.x},t.prototype.handleFocus=function(){this.on(this.bar.el_.ownerDocument,"keydown",this.handleKeyPress)},t.prototype.handleKeyPress=function(n){n.which===37||n.which===40?(n.preventDefault(),this.stepBack()):(n.which===38||n.which===39)&&(n.preventDefault(),this.stepForward())},t.prototype.handleBlur=function(){this.off(this.bar.el_.ownerDocument,"keydown",this.handleKeyPress)},t.prototype.handleClick=function(n){n.stopImmediatePropagation();n.preventDefault()},t.prototype.vertical=function(n){return n===undefined?this.vertical_||!1:(this.vertical_=!!n,this.vertical_?this.addClass("vjs-slider-vertical"):this.addClass("vjs-slider-horizontal"),this)},t}(f["default"]);f["default"].registerComponent("Slider",o);i["default"]=o;t.exports=i["default"]},{"../component.js":67,"../utils/dom.js":143,"object.assign":45}],120:[function(n,t,i){"use strict";function r(n){return n.streamingFormats={"rtmp/mp4":"MP4","rtmp/flv":"FLV"},n.streamFromParts=function(n,t){return n+"&"+t},n.streamToParts=function(n){var r={connection:"",stream:""},t,i;return n?(t=n.search(/&(?!\w+=)/),i=undefined,t!==-1?i=t+1:(t=i=n.lastIndexOf("/")+1,t===0&&(t=i=n.length)),r.connection=n.substring(0,t),r.stream=n.substring(i,n.length),r):r},n.isStreamingType=function(t){return t in n.streamingFormats},n.RTMP_RE=/^rtmp[set]?:\/\//i,n.isStreamingSrc=function(t){return n.RTMP_RE.test(t)},n.rtmpSourceHandler={},n.rtmpSourceHandler.canPlayType=function(t){return n.isStreamingType(t)?"maybe":""},n.rtmpSourceHandler.canHandleSource=function(t){var i=n.rtmpSourceHandler.canPlayType(t.type);return i?i:n.isStreamingSrc(t.src)?"maybe":""},n.rtmpSourceHandler.handleSource=function(t,i){var r=n.streamToParts(t.src);i.setRtmpConnection(r.connection);i.setRtmpStream(r.stream)},n.registerSourceHandler(n.rtmpSourceHandler),n}i.__esModule=!0;i["default"]=r;t.exports=i["default"]},{}],121:[function(n,t,i){"use strict";function v(n){var t,i;if(n&&n.__esModule)return n;if(t={},n!=null)for(i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i]);return t["default"]=n,t}function e(n){return n&&n.__esModule?n:{"default":n}}function k(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function d(n,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}function st(n){var t=n.charAt(0).toUpperCase()+n.slice(1);p["set"+t]=function(t){return this.el_.vjs_setProperty(n,t)}}function b(n){p[n]=function(){return this.el_.vjs_getProperty(n)}}var f;i.__esModule=!0;var g=n("./tech"),c=e(g),nt=n("../utils/dom.js"),s=v(nt),tt=n("../utils/url.js"),y=v(tt),h=n("../utils/time-ranges.js"),it=n("./flash-rtmp"),rt=e(it),ut=n("../component"),ft=e(ut),et=n("global/window"),u=e(et),ot=n("object.assign"),o=e(ot),l=u["default"].navigator,r=function(n){function t(i,r){k(this,t);n.call(this,i,r);i.source&&this.ready(function(){this.setSource(i.source)},!0);i.startTime&&this.ready(function(){this.load();this.play();this.currentTime(i.startTime)},!0);u["default"].videojs=u["default"].videojs||{};u["default"].videojs.Flash=u["default"].videojs.Flash||{};u["default"].videojs.Flash.onReady=t.onReady;u["default"].videojs.Flash.onEvent=t.onEvent;u["default"].videojs.Flash.onError=t.onError;this.on("seeked",function(){this.lastSeekTarget_=undefined})}return d(t,n),t.prototype.createEl=function(){var n=this.options_;n.swf||(n.swf="//vjs.zencdn.net/swf/5.0.1/video-js.swf");var i=n.techId,r=o["default"]({readyFunction:"videojs.Flash.onReady",eventProxyFunction:"videojs.Flash.onEvent",errorEventProxyFunction:"videojs.Flash.onError",autoplay:n.autoplay,preload:n.preload,loop:n.loop,muted:n.muted},n.flashVars),u=o["default"]({wmode:"opaque",bgcolor:"#000000"},n.params),f=o["default"]({id:i,name:i,"class":"vjs-tech"},n.attributes);return this.el_=t.embed(n.swf,r,u,f),this.el_.tech=this,this.el_},t.prototype.play=function(){this.ended()&&this.setCurrentTime(0);this.el_.vjs_play()},t.prototype.pause=function(){this.el_.vjs_pause()},t.prototype.src=function(n){return n===undefined?this.currentSrc():this.setSrc(n)},t.prototype.setSrc=function(n){if(n=y.getAbsoluteURL(n),this.el_.vjs_src(n),this.autoplay()){var t=this;this.setTimeout(function(){t.play()},0)}},t.prototype.seeking=function(){return this.lastSeekTarget_!==undefined},t.prototype.setCurrentTime=function(t){var i=this.seekable();i.length&&(t=t>i.start(0)?t:i.start(0),t=t<i.end(i.length-1)?t:i.end(i.length-1),this.lastSeekTarget_=t,this.trigger("seeking"),this.el_.vjs_setProperty("currentTime",t),n.prototype.setCurrentTime.call(this))},t.prototype.currentTime=function(){return this.seeking()?this.lastSeekTarget_||0:this.el_.vjs_getProperty("currentTime")},t.prototype.currentSrc=function(){return this.currentSource_?this.currentSource_.src:this.el_.vjs_getProperty("currentSrc")},t.prototype.load=function(){this.el_.vjs_load()},t.prototype.poster=function(){this.el_.vjs_getProperty("poster")},t.prototype.setPoster=function(){},t.prototype.seekable=function(){var n=this.duration();return n===0?h.createTimeRange():h.createTimeRange(0,n)},t.prototype.buffered=function(){var n=this.el_.vjs_getProperty("buffered");return n.length===0?h.createTimeRange():h.createTimeRange(n[0][0],n[0][1])},t.prototype.supportsFullScreen=function(){return!1},t.prototype.enterFullScreen=function(){return!1},t}(c["default"]),p=r.prototype,a="rtmpConnection,rtmpStream,preload,defaultPlaybackRate,playbackRate,autoplay,loop,mediaGroup,controller,controls,volume,muted,defaultMuted".split(","),w="networkState,readyState,initialTime,duration,startOffsetTime,paused,ended,videoWidth,videoHeight".split(",");for(f=0;f<a.length;f++)b(a[f]),st(a[f]);for(f=0;f<w.length;f++)b(w[f]);r.isSupported=function(){return r.version()[0]>=10};c["default"].withSourceHandlers(r);r.nativeSourceHandler={};r.nativeSourceHandler.canPlayType=function(n){return n in r.formats?"maybe":""};r.nativeSourceHandler.canHandleSource=function(n){function i(n){var t=y.getFileExtension(n);return t?"video/"+t:""}var t;return t=n.type?n.type.replace(/;.*/,"").toLowerCase():i(n.src),r.nativeSourceHandler.canPlayType(t)};r.nativeSourceHandler.handleSource=function(n,t){t.setSrc(n.src)};r.nativeSourceHandler.dispose=function(){};r.registerSourceHandler(r.nativeSourceHandler);r.formats={"video/flv":"FLV","video/x-flv":"FLV","video/mp4":"MP4","video/m4v":"MP4"};r.onReady=function(n){var i=s.getEl(n),t=i&&i.tech;t&&t.el()&&r.checkReady(t)};r.checkReady=function(n){n.el()&&(n.el().vjs_getProperty?n.triggerReady():this.setTimeout(function(){r.checkReady(n)},50))};r.onEvent=function(n,t){var i=s.getEl(n).tech;i.trigger(t)};r.onError=function(n,t){var i=s.getEl(n).tech;if(t==="srcnotfound")return i.error(4);i.error("FLASH: "+t)};r.version=function(){var n="0,0,0";try{n=new u["default"].ActiveXObject("ShockwaveFlash.ShockwaveFlash").GetVariable("$version").replace(/\D+/g,",").match(/^,?(.+),?$/)[1]}catch(t){try{l.mimeTypes["application/x-shockwave-flash"].enabledPlugin&&(n=(l.plugins["Shockwave Flash 2.0"]||l.plugins["Shockwave Flash"]).description.replace(/\D+/g,",").match(/^,?(.+),?$/)[1])}catch(i){}}return n.split(",")};r.embed=function(n,t,i,u){var f=r.getEmbedCode(n,t,i,u);return s.createEl("div",{innerHTML:f}).childNodes[0]};r.getEmbedCode=function(n,t,i,r){var u="",f="",e="";return t&&Object.getOwnPropertyNames(t).forEach(function(n){u+=n+"="+t[n]+"&amp;"}),i=o["default"]({movie:n,flashvars:u,allowScriptAccess:"always",allowNetworking:"all"},i),Object.getOwnPropertyNames(i).forEach(function(n){f+='<param name="'+n+'" value="'+i[n]+'" />'}),r=o["default"]({data:n,width:"100%",height:"100%"},r),Object.getOwnPropertyNames(r).forEach(function(n){e+=n+'="'+r[n]+'" '}),'<object type="application/x-shockwave-flash" '+e+">"+f+"<\/object>"};rt["default"](r);ft["default"].registerComponent("Flash",r);c["default"].registerTech("Flash",r);i["default"]=r;t.exports=i["default"]},{"../component":67,"../utils/dom.js":143,"../utils/time-ranges.js":151,"../utils/url.js":153,"./flash-rtmp":120,"./tech":124,"global/window":2,"object.assign":45}],122:[function(n,t,i){"use strict";function h(n){var t,i;if(n&&n.__esModule)return n;if(t={},n!=null)for(i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i]);return t["default"]=n,t}function u(n){return n&&n.__esModule?n:{"default":n}}function b(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function k(n,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}function d(n,t){return n.raw=t,n}var v,s;i.__esModule=!0;v=d(["Text Tracks are being loaded from another origin but the crossorigin attribute isn't used. \n            This may prevent text tracks from loading."],["Text Tracks are being loaded from another origin but the crossorigin attribute isn't used. \n            This may prevent text tracks from loading."]);var g=n("./tech.js"),l=u(g),nt=n("../component"),tt=u(nt),it=n("../utils/dom.js"),a=h(it),rt=n("../utils/url.js"),y=h(rt),ut=n("../utils/fn.js"),o=h(ut),ft=n("../utils/log.js"),p=u(ft),et=n("tsml"),ot=u(et),st=n("../../../src/js/tracks/text-track.js"),gt=u(st),ht=n("../utils/browser.js"),f=h(ht),ct=n("global/document"),c=u(ct),lt=n("global/window"),at=u(lt),vt=n("object.assign"),yt=u(vt),pt=n("../utils/merge-options.js"),wt=u(pt),bt=n("../utils/to-title-case.js"),w=u(bt),r=function(n){function t(i,r){var u=this,s,h,e,d,c,g;if(b(this,t),n.call(this,i,r),s=i.source,h=!1,s&&(this.el_.currentSrc!==s.src||i.tag&&i.tag.initNetworkState_===3)?this.setSource(s):this.handleLateInit_(this.el_),this.el_.hasChildNodes()){for(var a=this.el_.childNodes,k=a.length,l=[];k--;)e=a[k],d=e.nodeName.toLowerCase(),d==="track"&&(this.featuresNativeTextTracks?(this.remoteTextTrackEls().addTrackElement_(e),this.remoteTextTracks().addTrack_(e.track),h||this.el_.hasAttribute("crossorigin")||!y.isCrossOrigin(e.src)||(h=!0)):l.push(e));for(c=0;c<l.length;c++)this.el_.removeChild(l[c])}g=["audio","video"];g.forEach(function(n){var i=w["default"](n),t;u["featuresNative"+i+"Tracks"]&&(t=u.el()[n+"Tracks"],t&&t.addEventListener&&(t.addEventListener("change",o.bind(u,u["handle"+i+"TrackChange_"])),t.addEventListener("addtrack",o.bind(u,u["handle"+i+"TrackAdd_"])),t.addEventListener("removetrack",o.bind(u,u["handle"+i+"TrackRemove_"]))))});this.featuresNativeTextTracks&&(h&&p["default"].warn(ot["default"](v)),this.handleTextTrackChange_=o.bind(this,this.handleTextTrackChange),this.handleTextTrackAdd_=o.bind(this,this.handleTextTrackAdd),this.handleTextTrackRemove_=o.bind(this,this.handleTextTrackRemove),this.proxyNativeTextTracks_());(f.TOUCH_ENABLED&&i.nativeControlsForTouch===!0||f.IS_IPHONE||f.IS_NATIVE_ANDROID)&&this.setControls(!0);this.triggerReady()}return k(t,n),t.prototype.dispose=function(){var i=this;["audio","video","text"].forEach(function(n){var r=w["default"](n),t=i.el_[n+"Tracks"];t&&t.removeEventListener&&(t.removeEventListener("change",i["handle"+r+"TrackChange_"]),t.removeEventListener("addtrack",i["handle"+r+"TrackAdd_"]),t.removeEventListener("removetrack",i["handle"+r+"TrackRemove_"]))});t.disposeMediaElement(this.el_);n.prototype.dispose.call(this)},t.prototype.createEl=function(){var n=this.options_.tag,u,h,e,o,i,r,s;for(n&&this.movingMediaElementInDOM!==!1||(n?(u=n.cloneNode(!0),n.parentNode.insertBefore(u,n),t.disposeMediaElement(n),n=u):(n=c["default"].createElement("video"),h=this.options_.tag&&a.getElAttributes(this.options_.tag),e=wt["default"]({},h),f.TOUCH_ENABLED&&this.options_.nativeControlsForTouch===!0||delete e.controls,a.setElAttributes(n,yt["default"](e,{id:this.options_.techId,"class":"vjs-tech"})))),o=["autoplay","preload","loop","muted"],i=o.length-1;i>=0;i--)r=o[i],s={},typeof this.options_[r]!="undefined"&&(s[r]=this.options_[r]),a.setElAttributes(n,s);return n},t.prototype.handleLateInit_=function(n){var i=this,r,t;if(n.networkState!==0&&n.networkState!==3){if(n.readyState===0&&(r=function(){var n=!1,r=function(){n=!0},t;i.on("loadstart",r);t=function(){n||this.trigger("loadstart")};i.on("loadedmetadata",t);return i.ready(function(){this.off("loadstart",r);this.off("loadedmetadata",t);n||this.trigger("loadstart")}),{v:undefined}}(),typeof r=="object"))return r.v;t=["loadstart"];t.push("loadedmetadata");n.readyState>=2&&t.push("loadeddata");n.readyState>=3&&t.push("canplay");n.readyState>=4&&t.push("canplaythrough");this.ready(function(){t.forEach(function(n){this.trigger(n)},this)})}},t.prototype.proxyNativeTextTracks_=function(){var n=this.el().textTracks,t;if(n){for(t=0;t<n.length;t++)this.textTracks().addTrack_(n[t]);n.addEventListener&&(n.addEventListener("change",this.handleTextTrackChange_),n.addEventListener("addtrack",this.handleTextTrackAdd_),n.addEventListener("removetrack",this.handleTextTrackRemove_))}},t.prototype.handleTextTrackChange=function(){var n=this.textTracks();this.textTracks().trigger({type:"change",target:n,currentTarget:n,srcElement:n})},t.prototype.handleTextTrackAdd=function(n){this.textTracks().addTrack_(n.track)},t.prototype.handleTextTrackRemove=function(n){this.textTracks().removeTrack_(n.track)},t.prototype.handleVideoTrackChange_=function(){var n=this.videoTracks();this.videoTracks().trigger({type:"change",target:n,currentTarget:n,srcElement:n})},t.prototype.handleVideoTrackAdd_=function(n){this.videoTracks().addTrack_(n.track)},t.prototype.handleVideoTrackRemove_=function(n){this.videoTracks().removeTrack_(n.track)},t.prototype.handleAudioTrackChange_=function(){var n=this.audioTracks();this.audioTracks().trigger({type:"change",target:n,currentTarget:n,srcElement:n})},t.prototype.handleAudioTrackAdd_=function(n){this.audioTracks().addTrack_(n.track)},t.prototype.handleAudioTrackRemove_=function(n){this.audioTracks().removeTrack_(n.track)},t.prototype.play=function(){this.el_.play()},t.prototype.pause=function(){this.el_.pause()},t.prototype.paused=function(){return this.el_.paused},t.prototype.currentTime=function(){return this.el_.currentTime},t.prototype.setCurrentTime=function(n){try{this.el_.currentTime=n}catch(t){p["default"](t,"Video is not ready. (Video.js)")}},t.prototype.duration=function(){return this.el_.duration||0},t.prototype.buffered=function(){return this.el_.buffered},t.prototype.volume=function(){return this.el_.volume},t.prototype.setVolume=function(n){this.el_.volume=n},t.prototype.muted=function(){return this.el_.muted},t.prototype.setMuted=function(n){this.el_.muted=n},t.prototype.width=function(){return this.el_.offsetWidth},t.prototype.height=function(){return this.el_.offsetHeight},t.prototype.supportsFullScreen=function(){if(typeof this.el_.webkitEnterFullScreen=="function"){var n=at["default"].navigator.userAgent;if(/Android/.test(n)||!/Chrome|Mac OS X 10.5/.test(n))return!0}return!1},t.prototype.enterFullScreen=function(){var n=this.el_;if("webkitDisplayingFullscreen"in n)this.one("webkitbeginfullscreen",function(){this.one("webkitendfullscreen",function(){this.trigger("fullscreenchange",{isFullscreen:!1})});this.trigger("fullscreenchange",{isFullscreen:!0})});n.paused&&n.networkState<=n.HAVE_METADATA?(this.el_.play(),this.setTimeout(function(){n.pause();n.webkitEnterFullScreen()},0)):n.webkitEnterFullScreen()},t.prototype.exitFullScreen=function(){this.el_.webkitExitFullScreen()},t.prototype.src=function(n){if(n===undefined)return this.el_.src;this.setSrc(n)},t.prototype.setSrc=function(n){this.el_.src=n},t.prototype.load=function(){this.el_.load()},t.prototype.reset=function(){t.resetMediaElement(this.el_)},t.prototype.currentSrc=function(){return this.currentSource_?this.currentSource_.src:this.el_.currentSrc},t.prototype.poster=function(){return this.el_.poster},t.prototype.setPoster=function(n){this.el_.poster=n},t.prototype.preload=function(){return this.el_.preload},t.prototype.setPreload=function(n){this.el_.preload=n},t.prototype.autoplay=function(){return this.el_.autoplay},t.prototype.setAutoplay=function(n){this.el_.autoplay=n},t.prototype.controls=function(){return this.el_.controls},t.prototype.setControls=function(n){this.el_.controls=!!n},t.prototype.loop=function(){return this.el_.loop},t.prototype.setLoop=function(n){this.el_.loop=n},t.prototype.error=function(){return this.el_.error},t.prototype.seeking=function(){return this.el_.seeking},t.prototype.seekable=function(){return this.el_.seekable},t.prototype.ended=function(){return this.el_.ended},t.prototype.defaultMuted=function(){return this.el_.defaultMuted},t.prototype.playbackRate=function(){return this.el_.playbackRate},t.prototype.played=function(){return this.el_.played},t.prototype.setPlaybackRate=function(n){this.el_.playbackRate=n},t.prototype.networkState=function(){return this.el_.networkState},t.prototype.readyState=function(){return this.el_.readyState},t.prototype.videoWidth=function(){return this.el_.videoWidth},t.prototype.videoHeight=function(){return this.el_.videoHeight},t.prototype.textTracks=function(){return n.prototype.textTracks.call(this)},t.prototype.addTextTrack=function(t,i,r){return this.featuresNativeTextTracks?this.el_.addTextTrack(t,i,r):n.prototype.addTextTrack.call(this,t,i,r)},t.prototype.addRemoteTextTrack=function(){var t=arguments.length<=0||arguments[0]===undefined?{}:arguments[0],i;return this.featuresNativeTextTracks?(i=c["default"].createElement("track"),t.kind&&(i.kind=t.kind),t.label&&(i.label=t.label),(t.language||t.srclang)&&(i.srclang=t.language||t.srclang),t["default"]&&(i["default"]=t["default"]),t.id&&(i.id=t.id),t.src&&(i.src=t.src),this.el().appendChild(i),this.remoteTextTrackEls().addTrackElement_(i),this.remoteTextTracks().addTrack_(i.track),i):n.prototype.addRemoteTextTrack.call(this,t)},t.prototype.removeRemoteTextTrack=function(t){if(!this.featuresNativeTextTracks)return n.prototype.removeRemoteTextTrack.call(this,t);var i=undefined,r=undefined,u=this.remoteTextTrackEls().getTrackElementByTrack_(t);for(this.remoteTextTrackEls().removeTrackElement_(u),this.remoteTextTracks().removeTrack_(t),i=this.$$("track"),r=i.length;r--;)(t===i[r]||t===i[r].track)&&this.el().removeChild(i[r])},t}(l["default"]);r.TEST_VID=c["default"].createElement("video");s=c["default"].createElement("track");s.kind="captions";s.srclang="en";s.label="English";r.TEST_VID.appendChild(s);r.isSupported=function(){try{r.TEST_VID.volume=.5}catch(n){return!1}return!!r.TEST_VID.canPlayType};l["default"].withSourceHandlers(r);r.nativeSourceHandler={};r.nativeSourceHandler.canPlayType=function(n){try{return r.TEST_VID.canPlayType(n)}catch(t){return""}};r.nativeSourceHandler.canHandleSource=function(n){var t;return n.type?r.nativeSourceHandler.canPlayType(n.type):n.src?(t=y.getFileExtension(n.src),r.nativeSourceHandler.canPlayType("video/"+t)):""};r.nativeSourceHandler.handleSource=function(n,t){t.setSrc(n.src)};r.nativeSourceHandler.dispose=function(){};r.registerSourceHandler(r.nativeSourceHandler);r.canControlVolume=function(){var n=r.TEST_VID.volume;return r.TEST_VID.volume=n/2+.1,n!==r.TEST_VID.volume};r.canControlPlaybackRate=function(){if(f.IS_ANDROID&&f.IS_CHROME)return!1;var n=r.TEST_VID.playbackRate;return r.TEST_VID.playbackRate=n/2+.1,n!==r.TEST_VID.playbackRate};r.supportsNativeTextTracks=function(){var n;return n=!!r.TEST_VID.textTracks,n&&r.TEST_VID.textTracks.length>0&&(n=typeof r.TEST_VID.textTracks[0].mode!="number"),n&&f.IS_FIREFOX&&(n=!1),!n||"onremovetrack"in r.TEST_VID.textTracks||(n=!1),n};r.supportsNativeVideoTracks=function(){return!!r.TEST_VID.videoTracks};r.supportsNativeAudioTracks=function(){return!!r.TEST_VID.audioTracks};r.Events=["loadstart","suspend","abort","error","emptied","stalled","loadedmetadata","loadeddata","canplay","canplaythrough","playing","waiting","seeking","seeked","ended","durationchange","timeupdate","progress","play","pause","ratechange","volumechange"];r.prototype.featuresVolumeControl=r.canControlVolume();r.prototype.featuresPlaybackRate=r.canControlPlaybackRate();r.prototype.movingMediaElementInDOM=!f.IS_IOS;r.prototype.featuresFullscreenResize=!0;r.prototype.featuresProgressEvents=!0;r.prototype.featuresNativeTextTracks=r.supportsNativeTextTracks();r.prototype.featuresNativeVideoTracks=r.supportsNativeVideoTracks();r.prototype.featuresNativeAudioTracks=r.supportsNativeAudioTracks();var e=undefined,kt=/^application\/(?:x-|vnd\.apple\.)mpegurl/i,dt=/^video\/mp4/i;r.patchCanPlayType=function(){f.ANDROID_VERSION>=4&&(e||(e=r.TEST_VID.constructor.prototype.canPlayType),r.TEST_VID.constructor.prototype.canPlayType=function(n){return n&&kt.test(n)?"maybe":e.call(this,n)});f.IS_OLD_ANDROID&&(e||(e=r.TEST_VID.constructor.prototype.canPlayType),r.TEST_VID.constructor.prototype.canPlayType=function(n){return n&&dt.test(n)?"maybe":e.call(this,n)})};r.unpatchCanPlayType=function(){var n=r.TEST_VID.constructor.prototype.canPlayType;return r.TEST_VID.constructor.prototype.canPlayType=e,e=null,n};r.patchCanPlayType();r.disposeMediaElement=function(n){if(n){for(n.parentNode&&n.parentNode.removeChild(n);n.hasChildNodes();)n.removeChild(n.firstChild);n.removeAttribute("src");typeof n.load=="function"&&function(){try{n.load()}catch(t){}}()}};r.resetMediaElement=function(n){if(n){for(var t=n.querySelectorAll("source"),i=t.length;i--;)n.removeChild(t[i]);n.removeAttribute("src");typeof n.load=="function"&&function(){try{n.load()}catch(t){}}()}};tt["default"].registerComponent("Html5",r);l["default"].registerTech("Html5",r);i["default"]=r;t.exports=i["default"]},{"../../../src/js/tracks/text-track.js":134,"../component":67,"../utils/browser.js":140,"../utils/dom.js":143,"../utils/fn.js":145,"../utils/log.js":148,"../utils/merge-options.js":149,"../utils/to-title-case.js":152,"../utils/url.js":153,"./tech.js":124,"global/document":1,"global/window":2,"object.assign":45,tsml:55}],123:[function(n,t,i){"use strict";function r(n){return n&&n.__esModule?n:{"default":n}}function e(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function o(n,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}i.__esModule=!0;var s=n("../component.js"),u=r(s),h=n("./tech.js"),c=r(h),l=n("global/window"),y=r(l),a=n("../utils/to-title-case.js"),v=r(a),f=function(n){function t(i,r,f){var s,l,o,h;if(e(this,t),n.call(this,i,r,f),r.playerOptions.sources&&r.playerOptions.sources.length!==0)i.src(r.playerOptions.sources);else for(s=0,l=r.playerOptions.techOrder;s<l.length;s++)if(o=v["default"](l[s]),h=c["default"].getTech(o),o||(h=u["default"].getComponent(o)),h&&h.isSupported()){i.loadTech_(o);break}}return o(t,n),t}(u["default"]);u["default"].registerComponent("MediaLoader",f);i["default"]=f;t.exports=i["default"]},{"../component.js":67,"../utils/to-title-case.js":152,"./tech.js":124,"global/window":2}],124:[function(n,t,i){"use strict";function v(n){var t,i;if(n&&n.__esModule)return n;if(t={},n!=null)for(i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i]);return t["default"]=n,t}function u(n){return n&&n.__esModule?n:{"default":n}}function y(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function p(n,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}var a;i.__esModule=!0;var w=n("../component"),e=u(w),b=n("../tracks/html-track-element"),k=u(b),d=n("../tracks/html-track-element-list"),g=u(d),nt=n("../utils/merge-options.js"),tt=u(nt),it=n("../tracks/text-track"),rt=u(it),ut=n("../tracks/text-track-list"),h=u(ut),ft=n("../tracks/video-track"),kt=u(ft),et=n("../tracks/video-track-list"),ot=u(et),st=n("../tracks/audio-track-list"),ht=u(st),ct=n("../tracks/audio-track"),dt=u(ct),lt=n("../utils/fn.js"),o=v(lt),at=n("../utils/log.js"),c=u(at),s=n("../utils/time-ranges.js"),vt=n("../utils/buffer.js"),yt=n("../media-error.js"),l=u(yt),pt=n("global/window"),f=u(pt),wt=n("global/document"),bt=u(wt),r=function(n){function t(){var i=arguments.length<=0||arguments[0]===undefined?{}:arguments[0],r=arguments.length<=1||arguments[1]===undefined?function(){}:arguments[1];y(this,t);i.reportTouchActivity=!1;n.call(this,null,i,r);this.hasStarted_=!1;this.on("playing",function(){this.hasStarted_=!0});this.on("loadstart",function(){this.hasStarted_=!1});if(this.textTracks_=i.textTracks,this.videoTracks_=i.videoTracks,this.audioTracks_=i.audioTracks,this.featuresProgressEvents||this.manualProgressOn(),this.featuresTimeupdateEvents||this.manualTimeUpdatesOn(),(i.nativeCaptions===!1||i.nativeTextTracks===!1)&&(this.featuresNativeTextTracks=!1),!this.featuresNativeTextTracks)this.on("ready",this.emulateTextTracks);this.initTextTrackListeners();this.initTrackListeners();this.emitTapEvents()}return p(t,n),t.prototype.manualProgressOn=function(){this.on("durationchange",this.onDurationChange);this.manualProgress=!0;this.one("ready",this.trackProgress)},t.prototype.manualProgressOff=function(){this.manualProgress=!1;this.stopTrackingProgress();this.off("durationchange",this.onDurationChange)},t.prototype.trackProgress=function(){this.stopTrackingProgress();this.progressInterval=this.setInterval(o.bind(this,function(){var n=this.bufferedPercent();this.bufferedPercent_!==n&&this.trigger("progress");this.bufferedPercent_=n;n===1&&this.stopTrackingProgress()}),500)},t.prototype.onDurationChange=function(){this.duration_=this.duration()},t.prototype.buffered=function(){return s.createTimeRange(0,0)},t.prototype.bufferedPercent=function(){return vt.bufferedPercent(this.buffered(),this.duration_)},t.prototype.stopTrackingProgress=function(){this.clearInterval(this.progressInterval)},t.prototype.manualTimeUpdatesOn=function(){this.manualTimeUpdates=!0;this.on("play",this.trackCurrentTime);this.on("pause",this.stopTrackingCurrentTime)},t.prototype.manualTimeUpdatesOff=function(){this.manualTimeUpdates=!1;this.stopTrackingCurrentTime();this.off("play",this.trackCurrentTime);this.off("pause",this.stopTrackingCurrentTime)},t.prototype.trackCurrentTime=function(){this.currentTimeInterval&&this.stopTrackingCurrentTime();this.currentTimeInterval=this.setInterval(function(){this.trigger({type:"timeupdate",target:this,manuallyTriggered:!0})},250)},t.prototype.stopTrackingCurrentTime=function(){this.clearInterval(this.currentTimeInterval);this.trigger({type:"timeupdate",target:this,manuallyTriggered:!0})},t.prototype.dispose=function(){this.clearTracks(["audio","video","text"]);this.manualProgress&&this.manualProgressOff();this.manualTimeUpdates&&this.manualTimeUpdatesOff();n.prototype.dispose.call(this)},t.prototype.clearTracks=function(n){var t=this;n=[].concat(n);n.forEach(function(n){for(var i=t[n+"Tracks"]()||[],u=i.length,r;u--;)r=i[u],n==="text"&&t.removeRemoteTextTrack(r),i.removeTrack_(r)})},t.prototype.reset=function(){},t.prototype.error=function(n){return n!==undefined&&(this.error_=n instanceof l["default"]?n:new l["default"](n),this.trigger("error")),this.error_},t.prototype.played=function(){return this.hasStarted_?s.createTimeRange(0,0):s.createTimeRange()},t.prototype.setCurrentTime=function(){this.manualTimeUpdates&&this.trigger({type:"timeupdate",target:this,manuallyTriggered:!0})},t.prototype.initTextTrackListeners=function(){var t=o.bind(this,function(){this.trigger("texttrackchange")}),n=this.textTracks();if(n){n.addEventListener("removetrack",t);n.addEventListener("addtrack",t);this.on("dispose",o.bind(this,function(){n.removeEventListener("removetrack",t);n.removeEventListener("addtrack",t)}))}},t.prototype.initTrackListeners=function(){var n=this;["video","audio"].forEach(function(t){var i=function(){n.trigger(t+"trackchange")},r=n[t+"Tracks"]();r.addEventListener("removetrack",i);r.addEventListener("addtrack",i);n.on("dispose",function(){r.removeEventListener("removetrack",i);r.removeEventListener("addtrack",i)})})},t.prototype.emulateTextTracks=function(){var n=this,t=this.textTracks(),i,r;if(t){f["default"].WebVTT||this.el().parentNode==null||function(){var t=bt["default"].createElement("script");t.src=n.options_["vtt.js"]||"https://cdn.rawgit.com/gkatsev/vtt.js/vjs-v0.12.1/dist/vtt.min.js";t.onload=function(){n.trigger("vttjsloaded")};t.onerror=function(){n.trigger("vttjserror")};n.on("dispose",function(){t.onload=null;t.onerror=null});f["default"].WebVTT=!0;n.el().parentNode.appendChild(t)}();i=function(){return n.trigger("texttrackchange")};r=function(){var n,r;for(i(),n=0;n<t.length;n++)r=t[n],r.removeEventListener("cuechange",i),r.mode==="showing"&&r.addEventListener("cuechange",i)};r();t.addEventListener("change",r);this.on("dispose",function(){t.removeEventListener("change",r)})}},t.prototype.videoTracks=function(){return this.videoTracks_=this.videoTracks_||new ot["default"],this.videoTracks_},t.prototype.audioTracks=function(){return this.audioTracks_=this.audioTracks_||new ht["default"],this.audioTracks_},t.prototype.textTracks=function(){return this.textTracks_=this.textTracks_||new h["default"],this.textTracks_},t.prototype.remoteTextTracks=function(){return this.remoteTextTracks_=this.remoteTextTracks_||new h["default"],this.remoteTextTracks_},t.prototype.remoteTextTrackEls=function(){return this.remoteTextTrackEls_=this.remoteTextTrackEls_||new g["default"],this.remoteTextTrackEls_},t.prototype.addTextTrack=function(n,t,i){if(!n)throw new Error("TextTrack kind is required but was not provided");return a(this,n,t,i)},t.prototype.addRemoteTextTrack=function(n){var i=tt["default"](n,{tech:this}),t=new k["default"](i);return this.remoteTextTrackEls().addTrackElement_(t),this.remoteTextTracks().addTrack_(t.track),this.textTracks().addTrack_(t.track),t},t.prototype.removeRemoteTextTrack=function(n){this.textTracks().removeTrack_(n);var t=this.remoteTextTrackEls().getTrackElementByTrack_(n);this.remoteTextTrackEls().removeTrackElement_(t);this.remoteTextTracks().removeTrack_(n)},t.prototype.setPoster=function(){},t.prototype.canPlayType=function(){return""},t.isTech=function(n){return n.prototype instanceof t||n instanceof t||n===t},t.registerTech=function(n,i){if(t.techs_||(t.techs_={}),!t.isTech(i))throw new Error("Tech "+n+" must be a Tech");return t.techs_[n]=i,i},t.getTech=function(n){return t.techs_&&t.techs_[n]?t.techs_[n]:f["default"]&&f["default"].videojs&&f["default"].videojs[n]?(c["default"].warn("The "+n+" tech was added to the videojs object when it should be registered using videojs.registerTech(name, tech)"),f["default"].videojs[n]):void 0},t}(e["default"]);r.prototype.textTracks_;r.prototype.audioTracks_;r.prototype.videoTracks_;a=function(n,t,i,r){var u=arguments.length<=4||arguments[4]===undefined?{}:arguments[4],e=n.textTracks(),f;return u.kind=t,i&&(u.label=i),r&&(u.language=r),u.tech=n,f=new rt["default"](u),e.addTrack_(f),f};r.prototype.featuresVolumeControl=!0;r.prototype.featuresFullscreenResize=!1;r.prototype.featuresPlaybackRate=!1;r.prototype.featuresProgressEvents=!1;r.prototype.featuresTimeupdateEvents=!1;r.prototype.featuresNativeTextTracks=!1;r.withSourceHandlers=function(n){n.registerSourceHandler=function(t,i){var r=n.sourceHandlers;r||(r=n.sourceHandlers=[]);i===undefined&&(i=r.length);r.splice(i,0,t)};n.canPlayType=function(t){for(var u=n.sourceHandlers||[],i=undefined,r=0;r<u.length;r++)if(i=u[r].canPlayType(t),i)return i;return""};n.selectSourceHandler=function(t){for(var r=n.sourceHandlers||[],u=undefined,i=0;i<r.length;i++)if(u=r[i].canHandleSource(t),u)return r[i];return null};n.canPlaySource=function(t){var i=n.selectSourceHandler(t);return i?i.canHandleSource(t):""};["seekable","duration"].forEach(function(n){var t=this[n];typeof t=="function"&&(this[n]=function(){return this.sourceHandler_&&this.sourceHandler_[n]?this.sourceHandler_[n].apply(this.sourceHandler_,arguments):t.apply(this,arguments)})},n.prototype);n.prototype.setSource=function(t){var i=n.selectSourceHandler(t);if(i||(n.nativeSourceHandler?i=n.nativeSourceHandler:c["default"].error("No source hander found for the current source.")),this.disposeSourceHandler(),this.off("dispose",this.disposeSourceHandler),this.currentSource_&&(this.clearTracks(["audio","video"]),this.currentSource_=null),i!==n.nativeSourceHandler){this.currentSource_=t;this.off(this.el_,"loadstart",n.prototype.firstLoadStartListener_);this.off(this.el_,"loadstart",n.prototype.successiveLoadStartListener_);this.one(this.el_,"loadstart",n.prototype.firstLoadStartListener_)}this.sourceHandler_=i.handleSource(t,this,this.options_);this.on("dispose",this.disposeSourceHandler);return this};n.prototype.firstLoadStartListener_=function(){this.one(this.el_,"loadstart",n.prototype.successiveLoadStartListener_)};n.prototype.successiveLoadStartListener_=function(){this.currentSource_=null;this.disposeSourceHandler();this.one(this.el_,"loadstart",n.prototype.successiveLoadStartListener_)};n.prototype.disposeSourceHandler=function(){this.sourceHandler_&&this.sourceHandler_.dispose&&(this.off(this.el_,"loadstart",n.prototype.firstLoadStartListener_),this.off(this.el_,"loadstart",n.prototype.successiveLoadStartListener_),this.sourceHandler_.dispose(),this.sourceHandler_=null)}};e["default"].registerComponent("Tech",r);e["default"].registerComponent("MediaTechController",r);r.registerTech("Tech",r);i["default"]=r;t.exports=i["default"]},{"../component":67,"../media-error.js":108,"../tracks/audio-track":126,"../tracks/audio-track-list":125,"../tracks/html-track-element":128,"../tracks/html-track-element-list":127,"../tracks/text-track":134,"../tracks/text-track-list":132,"../tracks/video-track":139,"../tracks/video-track-list":138,"../utils/buffer.js":141,"../utils/fn.js":145,"../utils/log.js":148,"../utils/merge-options.js":149,"../utils/time-ranges.js":151,"global/document":1,"global/window":2}],125:[function(n,t,i){"use strict";function e(n){var t,i;if(n&&n.__esModule)return n;if(t={},n!=null)for(i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i]);return t["default"]=n,t}function f(n){return n&&n.__esModule?n:{"default":n}}function o(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function s(n,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}i.__esModule=!0;var h=n("./track-list"),r=f(h),c=n("../utils/browser.js"),l=e(c),a=n("global/document"),v=f(a),u=function(n,t){for(var i=0;i<n.length;i++)t.id!==n[i].id&&(n[i].enabled=!1)},y=function(n){function t(){var e=arguments.length<=0||arguments[0]===undefined?[]:arguments[0],i,s,f;for(o(this,t),i=undefined,s=e.length-1;s>=0;s--)if(e[s].enabled){u(e,e[s]);break}if(l.IS_IE8){i=v["default"].createElement("custom");for(f in r["default"].prototype)f!=="constructor"&&(i[f]=r["default"].prototype[f]);for(f in t.prototype)f!=="constructor"&&(i[f]=t.prototype[f])}return i=n.call(this,e,i),i.changing_=!1,i}return s(t,n),t.prototype.addTrack_=function(t){var i=this;(t.enabled&&u(this,t),n.prototype.addTrack_.call(this,t),t.addEventListener)&&t.addEventListener("enabledchange",function(){i.changing_||(i.changing_=!0,u(i,t),i.changing_=!1,i.trigger("change"))})},t.prototype.addTrack=function(n){this.addTrack_(n)},t.prototype.removeTrack=function(t){n.prototype.removeTrack_.call(this,t)},t}(r["default"]);i["default"]=y;t.exports=i["default"]},{"../utils/browser.js":140,"./track-list":136,"global/document":1}],126:[function(n,t,i){"use strict";function u(n){var t,i;if(n&&n.__esModule)return n;if(t={},n!=null)for(i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i]);return t["default"]=n,t}function r(n){return n&&n.__esModule?n:{"default":n}}function f(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function e(n,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}i.__esModule=!0;var o=n("./track-enums"),s=n("./track"),h=r(s),c=n("../utils/merge-options"),l=r(c),a=n("../utils/browser.js"),v=u(a),y=function(n){function t(){var s=arguments.length<=0||arguments[0]===undefined?{}:arguments[0],r;f(this,t);var u=l["default"](s,{kind:o.AudioTrackKind[s.kind]||""}),i=n.call(this,u),e=!1;if(v.IS_IE8)for(r in t.prototype)r!=="constructor"&&(i[r]=t.prototype[r]);return Object.defineProperty(i,"enabled",{get:function(){return e},set:function(n){typeof n=="boolean"&&n!==e&&(e=n,this.trigger("enabledchange"))}}),u.enabled&&(i.enabled=u.enabled),i.loaded_=!0,i}return e(t,n),t}(h["default"]);i["default"]=y;t.exports=i["default"]},{"../utils/browser.js":140,"../utils/merge-options":149,"./track":137,"./track-enums":135}],127:[function(n,t,i){"use strict";function u(n){return n&&n.__esModule?n:{"default":n}}function f(n){var t,i;if(n&&n.__esModule)return n;if(t={},n!=null)for(i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i]);return t["default"]=n,t}function e(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}i.__esModule=!0;var o=n("../utils/browser.js"),r=f(o),s=n("global/document"),h=u(s),c=function(){function n(){var f=arguments.length<=0||arguments[0]===undefined?[]:arguments[0],t,i,u,o;if(e(this,n),t=this,r.IS_IE8){t=h["default"].createElement("custom");for(i in n.prototype)i!=="constructor"&&(t[i]=n.prototype[i])}for(t.trackElements_=[],Object.defineProperty(t,"length",{get:function(){return this.trackElements_.length}}),u=0,o=f.length;u<o;u++)t.addTrackElement_(f[u]);if(r.IS_IE8)return t}return n.prototype.addTrackElement_=function(n){this.trackElements_.push(n)},n.prototype.getTrackElementByTrack_=function(n){for(var i=undefined,t=0,r=this.trackElements_.length;t<r;t++)if(n===this.trackElements_[t].track){i=this.trackElements_[t];break}return i},n.prototype.removeTrackElement_=function(n){for(var t=0,i=this.trackElements_.length;t<i;t++)if(n===this.trackElements_[t]){this.trackElements_.splice(t,1);break}},n}();i["default"]=c;t.exports=i["default"]},{"../utils/browser.js":140,"global/document":1}],128:[function(n,t,i){"use strict";function u(n){return n&&n.__esModule?n:{"default":n}}function s(n){var t,i;if(n&&n.__esModule)return n;if(t={},n!=null)for(i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i]);return t["default"]=n,t}function h(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function c(n,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}i.__esModule=!0;var l=n("../utils/browser.js"),f=s(l),a=n("global/document"),v=u(a),y=n("../event-target"),p=u(y),w=n("../tracks/text-track"),b=u(w),e=0,o=2,r=function(n){function t(){var c=arguments.length<=0||arguments[0]===undefined?{}:arguments[0],u,i,s,r;if(h(this,t),n.call(this),u=undefined,i=this,f.IS_IE8){i=v["default"].createElement("custom");for(s in t.prototype)s!=="constructor"&&(i[s]=t.prototype[s])}return r=new b["default"](c),i.kind=r.kind,i.src=r.src,i.srclang=r.language,i.label=r.label,i["default"]=r["default"],Object.defineProperty(i,"readyState",{get:function(){return u}}),Object.defineProperty(i,"track",{get:function(){return r}}),u=e,r.addEventListener("loadeddata",function(){u=o;i.trigger({type:"load",target:i})}),f.IS_IE8?i:void 0}return c(t,n),t}(p["default"]);r.prototype.allowedEvents_={load:"load"};r.NONE=e;r.LOADING=1;r.LOADED=o;r.ERROR=3;i["default"]=r;t.exports=i["default"]},{"../event-target":104,"../tracks/text-track":134,"../utils/browser.js":140,"global/document":1}],129:[function(n,t,i){"use strict";function u(n){return n&&n.__esModule?n:{"default":n}}function f(n){var t,i;if(n&&n.__esModule)return n;if(t={},n!=null)for(i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i]);return t["default"]=n,t}function e(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}i.__esModule=!0;var o=n("../utils/browser.js"),r=f(o),s=n("global/document"),h=u(s),c=function(){function n(t){var i,u;if(e(this,n),i=this,r.IS_IE8){i=h["default"].createElement("custom");for(u in n.prototype)u!=="constructor"&&(i[u]=n.prototype[u])}return n.prototype.setCues_.call(i,t),Object.defineProperty(i,"length",{get:function(){return this.length_}}),r.IS_IE8?i:void 0}return n.prototype.setCues_=function(n){var i=this.length||0,t=0,r=n.length,u;if(this.cues_=n,this.length_=n.length,u=function(n){""+n in this||Object.defineProperty(this,""+n,{get:function(){return this.cues_[n]}})},i<r)for(t=i;t<r;t++)u.call(this,t)},n.prototype.getCueById=function(n){for(var i,r=null,t=0,u=this.length;t<u;t++)if(i=this[t],i.id===n){r=i;break}return r},n}();i["default"]=c;t.exports=i["default"]},{"../utils/browser.js":140,"global/document":1}],130:[function(n,t,i){"use strict";function a(n){var t,i;if(n&&n.__esModule)return n;if(t={},n!=null)for(i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i]);return t["default"]=n,t}function f(n){return n&&n.__esModule?n:{"default":n}}function v(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function y(n,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}function o(n,t){return"rgba("+parseInt(n[1]+n[1],16)+","+parseInt(n[2]+n[2],16)+","+parseInt(n[3]+n[3],16)+","+t+")"}function s(n,t,i){try{n.style[t]=i}catch(r){}}i.__esModule=!0;var p=n("../component"),h=f(p),w=n("../menu/menu.js"),it=f(w),b=n("../menu/menu-item.js"),rt=f(b),k=n("../menu/menu-button.js"),ut=f(k),d=n("../utils/fn.js"),e=a(d),g=n("global/document"),ft=f(g),nt=n("global/window"),u=f(nt),r="#222",c="#ccc",tt={monospace:"monospace",sansSerif:"sans-serif",serif:"serif",monospaceSansSerif:'"Andale Mono", "Lucida Console", monospace',monospaceSerif:'"Courier New", monospace',proportionalSansSerif:"sans-serif",proportionalSerif:"serif",casual:'"Comic Sans MS", Impact, fantasy',script:'"Monotype Corsiva", cursive',smallcaps:'"Andale Mono", "Lucida Console", monospace, sans-serif'},l=function(n){function t(i,r,u){v(this,t);n.call(this,i,r,u);i.on("loadstart",e.bind(this,this.toggleDisplay));i.on("texttrackchange",e.bind(this,this.updateDisplay));i.ready(e.bind(this,function(){var f,n,t;if(i.tech_&&i.tech_.featuresNativeTextTracks){this.hide();return}i.on("fullscreenchange",e.bind(this,this.updateDisplay));for(f=this.options_.playerOptions.tracks||[],n=0;n<f.length;n++)t=f[n],this.player_.addRemoteTextTrack(t);var s={captions:1,subtitles:1},o=this.player_.textTracks(),r=undefined,u=undefined;if(o){for(n=0;n<o.length;n++)t=o[n],t["default"]&&(t.kind!=="descriptions"||r?t.kind in s&&!u&&(u=t):r=t);u?u.mode="showing":r&&(r.mode="showing")}}))}return y(t,n),t.prototype.toggleDisplay=function(){this.player_.tech_&&this.player_.tech_.featuresNativeTextTracks?this.hide():this.show()},t.prototype.createEl=function(){return n.prototype.createEl.call(this,"div",{className:"vjs-text-track-display"},{"aria-live":"assertive","aria-atomic":"true"})},t.prototype.clearDisplay=function(){typeof u["default"].WebVTT=="function"&&u["default"].WebVTT.processCues(u["default"],[],this.el_)},t.prototype.updateDisplay=function(){var t=this.player_.textTracks(),n;if(this.clearDisplay(),t){for(var i=null,r=null,u=t.length;u--;)n=t[u],n.mode==="showing"&&(n.kind==="descriptions"?i=n:r=n);r?this.updateForTrack(r):i&&this.updateForTrack(i)}},t.prototype.updateForTrack=function(n){var t,f,e,h,l,i,a;if(typeof u["default"].WebVTT=="function"&&n.activeCues){for(t=this.player_.textTrackSettings.getValues(),f=[],e=0;e<n.activeCues.length;e++)f.push(n.activeCues[e]);for(u["default"].WebVTT.processCues(u["default"],f,this.el_),h=f.length;h--;)(l=f[h],l)&&(i=l.displayState,t.color&&(i.firstChild.style.color=t.color),t.textOpacity&&s(i.firstChild,"color",o(t.color||"#fff",t.textOpacity)),t.backgroundColor&&(i.firstChild.style.backgroundColor=t.backgroundColor),t.backgroundOpacity&&s(i.firstChild,"backgroundColor",o(t.backgroundColor||"#000",t.backgroundOpacity)),t.windowColor&&(t.windowOpacity?s(i,"backgroundColor",o(t.windowColor,t.windowOpacity)):i.style.backgroundColor=t.windowColor),t.edgeStyle&&(t.edgeStyle==="dropshadow"?i.firstChild.style.textShadow="2px 2px 3px "+r+", 2px 2px 4px "+r+", 2px 2px 5px "+r:t.edgeStyle==="raised"?i.firstChild.style.textShadow="1px 1px "+r+", 2px 2px "+r+", 3px 3px "+r:t.edgeStyle==="depressed"?i.firstChild.style.textShadow="1px 1px "+c+", 0 1px "+c+", -1px -1px "+r+", 0 -1px "+r:t.edgeStyle==="uniform"&&(i.firstChild.style.textShadow="0 0 4px "+r+", 0 0 4px "+r+", 0 0 4px "+r+", 0 0 4px "+r)),t.fontPercent&&t.fontPercent!==1&&(a=u["default"].parseFloat(i.style.fontSize),i.style.fontSize=a*t.fontPercent+"px",i.style.height="auto",i.style.top="auto",i.style.bottom="2px"),t.fontFamily&&t.fontFamily!=="default"&&(t.fontFamily==="small-caps"?i.firstChild.style.fontVariant="small-caps":i.firstChild.style.fontFamily=tt[t.fontFamily]))}},t}(h["default"]);h["default"].registerComponent("TextTrackDisplay",l);i["default"]=l;t.exports=i["default"]},{"../component":67,"../menu/menu-button.js":109,"../menu/menu-item.js":110,"../menu/menu.js":111,"../utils/fn.js":145,"global/document":1,"global/window":2}],131:[function(n,t,i){"use strict";i.__esModule=!0;var r=function(n){return["kind","label","language","id","inBandMetadataTrackDispatchType","mode","src"].reduce(function(t,i){return n[i]&&(t[i]=n[i]),t},{cues:n.cues&&Array.prototype.map.call(n.cues,function(n){return{startTime:n.startTime,endTime:n.endTime,text:n.text,id:n.id}})})},u=function(n){var t=n.$$("track"),i=Array.prototype.map.call(t,function(n){return n.track}),u=Array.prototype.map.call(t,function(n){var t=r(n.track);return n.src&&(t.src=n.src),t});return u.concat(Array.prototype.filter.call(n.textTracks(),function(n){return i.indexOf(n)===-1}).map(r))},f=function(n,t){return n.forEach(function(n){var i=t.addRemoteTextTrack(n).track;!n.src&&n.cues&&n.cues.forEach(function(n){return i.addCue(n)})}),t.textTracks()};i["default"]={textTracksToJson:u,jsonToTextTracks:f,trackToJson_:r};t.exports=i["default"]},{}],132:[function(n,t,i){"use strict";function u(n){var t,i;if(n&&n.__esModule)return n;if(t={},n!=null)for(i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i]);return t["default"]=n,t}function f(n){return n&&n.__esModule?n:{"default":n}}function e(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function o(n,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}i.__esModule=!0;var s=n("./track-list"),r=f(s),h=n("../utils/fn.js"),c=u(h),l=n("../utils/browser.js"),a=u(l),v=n("global/document"),y=f(v),p=function(n){function t(){var f=arguments.length<=0||arguments[0]===undefined?[]:arguments[0],u,i;if(e(this,t),u=undefined,a.IS_IE8){u=y["default"].createElement("custom");for(i in r["default"].prototype)i!=="constructor"&&(u[i]=r["default"].prototype[i]);for(i in t.prototype)i!=="constructor"&&(u[i]=t.prototype[i])}return n.call(this,f,u)}return o(t,n),t.prototype.addTrack_=function(t){n.prototype.addTrack_.call(this,t);t.addEventListener("modechange",c.bind(this,function(){this.trigger("change")}))},t.prototype.removeTrack_=function(n){for(var t=undefined,i=0,r=this.length;i<r;i++)if(this[i]===n){t=this[i];t.off&&t.off();this.tracks_.splice(i,1);break}t&&this.trigger({track:t,type:"removetrack"})},t.prototype.getTrackById=function(n){for(var i,r=null,t=0,u=this.length;t<u;t++)if(i=this[t],i.id===n){r=i;break}return r},t}(r["default"]);i["default"]=p;t.exports=i["default"]},{"../utils/browser.js":140,"../utils/fn.js":145,"./track-list":136,"global/document":1}],133:[function(n,t,i){"use strict";function c(n){var t,i;if(n&&n.__esModule)return n;if(t={},n!=null)for(i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i]);return t["default"]=n,t}function o(n){return n&&n.__esModule?n:{"default":n}}function v(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function y(n,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}function f(n){var t=undefined;return n.selectedOptions?t=n.selectedOptions[0]:n.options&&(t=n.options[n.options.selectedIndex]),t.value}function e(n,t){var i,r;if(t){for(i=undefined,i=0;i<n.options.length;i++)if(r=n.options[i],r.value===t)break;n.selectedIndex=i}}function tt(){return'<div class="vjs-tracksettings">\n      <div class="vjs-tracksettings-colors">\n        <div class="vjs-fg-color vjs-tracksetting">\n            <label class="vjs-label">Foreground<\/label>\n            <select>\n              <option value="">---<\/option>\n              <option value="#FFF">White<\/option>\n              <option value="#000">Black<\/option>\n              <option value="#F00">Red<\/option>\n              <option value="#0F0">Green<\/option>\n              <option value="#00F">Blue<\/option>\n              <option value="#FF0">Yellow<\/option>\n              <option value="#F0F">Magenta<\/option>\n              <option value="#0FF">Cyan<\/option>\n            <\/select>\n            <span class="vjs-text-opacity vjs-opacity">\n              <select>\n                <option value="">---<\/option>\n                <option value="1">Opaque<\/option>\n                <option value="0.5">Semi-Opaque<\/option>\n              <\/select>\n            <\/span>\n        <\/div> <!-- vjs-fg-color -->\n        <div class="vjs-bg-color vjs-tracksetting">\n            <label class="vjs-label">Background<\/label>\n            <select>\n              <option value="">---<\/option>\n              <option value="#FFF">White<\/option>\n              <option value="#000">Black<\/option>\n              <option value="#F00">Red<\/option>\n              <option value="#0F0">Green<\/option>\n              <option value="#00F">Blue<\/option>\n              <option value="#FF0">Yellow<\/option>\n              <option value="#F0F">Magenta<\/option>\n              <option value="#0FF">Cyan<\/option>\n            <\/select>\n            <span class="vjs-bg-opacity vjs-opacity">\n                <select>\n                  <option value="">---<\/option>\n                  <option value="1">Opaque<\/option>\n                  <option value="0.5">Semi-Transparent<\/option>\n                  <option value="0">Transparent<\/option>\n                <\/select>\n            <\/span>\n        <\/div> <!-- vjs-bg-color -->\n        <div class="window-color vjs-tracksetting">\n            <label class="vjs-label">Window<\/label>\n            <select>\n              <option value="">---<\/option>\n              <option value="#FFF">White<\/option>\n              <option value="#000">Black<\/option>\n              <option value="#F00">Red<\/option>\n              <option value="#0F0">Green<\/option>\n              <option value="#00F">Blue<\/option>\n              <option value="#FF0">Yellow<\/option>\n              <option value="#F0F">Magenta<\/option>\n              <option value="#0FF">Cyan<\/option>\n            <\/select>\n            <span class="vjs-window-opacity vjs-opacity">\n                <select>\n                  <option value="">---<\/option>\n                  <option value="1">Opaque<\/option>\n                  <option value="0.5">Semi-Transparent<\/option>\n                  <option value="0">Transparent<\/option>\n                <\/select>\n            <\/span>\n        <\/div> <!-- vjs-window-color -->\n      <\/div> <!-- vjs-tracksettings -->\n      <div class="vjs-tracksettings-font">\n        <div class="vjs-font-percent vjs-tracksetting">\n          <label class="vjs-label">Font Size<\/label>\n          <select>\n            <option value="0.50">50%<\/option>\n            <option value="0.75">75%<\/option>\n            <option value="1.00" selected>100%<\/option>\n            <option value="1.25">125%<\/option>\n            <option value="1.50">150%<\/option>\n            <option value="1.75">175%<\/option>\n            <option value="2.00">200%<\/option>\n            <option value="3.00">300%<\/option>\n            <option value="4.00">400%<\/option>\n          <\/select>\n        <\/div> <!-- vjs-font-percent -->\n        <div class="vjs-edge-style vjs-tracksetting">\n          <label class="vjs-label">Text Edge Style<\/label>\n          <select>\n            <option value="none">None<\/option>\n            <option value="raised">Raised<\/option>\n            <option value="depressed">Depressed<\/option>\n            <option value="uniform">Uniform<\/option>\n            <option value="dropshadow">Dropshadow<\/option>\n          <\/select>\n        <\/div> <!-- vjs-edge-style -->\n        <div class="vjs-font-family vjs-tracksetting">\n          <label class="vjs-label">Font Family<\/label>\n          <select>\n            <option value="">Default<\/option>\n            <option value="monospaceSerif">Monospace Serif<\/option>\n            <option value="proportionalSerif">Proportional Serif<\/option>\n            <option value="monospaceSansSerif">Monospace Sans-Serif<\/option>\n            <option value="proportionalSansSerif">Proportional Sans-Serif<\/option>\n            <option value="casual">Casual<\/option>\n            <option value="script">Script<\/option>\n            <option value="small-caps">Small Caps<\/option>\n          <\/select>\n        <\/div> <!-- vjs-font-family -->\n      <\/div>\n    <\/div>\n    <div class="vjs-tracksettings-controls">\n      <button class="vjs-default-button">Defaults<\/button>\n      <button class="vjs-done-button">Done<\/button>\n    <\/div>'}i.__esModule=!0;var p=n("../component"),l=o(p),w=n("../utils/events.js"),r=c(w),b=n("../utils/fn.js"),u=c(b),k=n("../utils/log.js"),h=o(k),d=n("safe-json-parse/tuple"),g=o(d),nt=n("global/window"),s=o(nt),a=function(n){function t(i,f){v(this,t);n.call(this,i,f);this.hide();f.persistTextTrackSettings===undefined&&(this.options_.persistTextTrackSettings=this.options_.playerOptions.persistTextTrackSettings);r.on(this.$(".vjs-done-button"),"click",u.bind(this,function(){this.saveSettings();this.hide()}));r.on(this.$(".vjs-default-button"),"click",u.bind(this,function(){this.$(".vjs-fg-color > select").selectedIndex=0;this.$(".vjs-bg-color > select").selectedIndex=0;this.$(".window-color > select").selectedIndex=0;this.$(".vjs-text-opacity > select").selectedIndex=0;this.$(".vjs-bg-opacity > select").selectedIndex=0;this.$(".vjs-window-opacity > select").selectedIndex=0;this.$(".vjs-edge-style select").selectedIndex=0;this.$(".vjs-font-family select").selectedIndex=0;this.$(".vjs-font-percent select").selectedIndex=2;this.updateDisplay()}));r.on(this.$(".vjs-fg-color > select"),"change",u.bind(this,this.updateDisplay));r.on(this.$(".vjs-bg-color > select"),"change",u.bind(this,this.updateDisplay));r.on(this.$(".window-color > select"),"change",u.bind(this,this.updateDisplay));r.on(this.$(".vjs-text-opacity > select"),"change",u.bind(this,this.updateDisplay));r.on(this.$(".vjs-bg-opacity > select"),"change",u.bind(this,this.updateDisplay));r.on(this.$(".vjs-window-opacity > select"),"change",u.bind(this,this.updateDisplay));r.on(this.$(".vjs-font-percent select"),"change",u.bind(this,this.updateDisplay));r.on(this.$(".vjs-edge-style select"),"change",u.bind(this,this.updateDisplay));r.on(this.$(".vjs-font-family select"),"change",u.bind(this,this.updateDisplay));this.options_.persistTextTrackSettings&&this.restoreSettings()}return y(t,n),t.prototype.createEl=function(){return n.prototype.createEl.call(this,"div",{className:"vjs-caption-settings vjs-modal-overlay",innerHTML:tt()})},t.prototype.getValues=function(){var i=f(this.$(".vjs-edge-style select")),r=f(this.$(".vjs-font-family select")),u=f(this.$(".vjs-fg-color > select")),e=f(this.$(".vjs-text-opacity > select")),o=f(this.$(".vjs-bg-color > select")),h=f(this.$(".vjs-bg-opacity > select")),c=f(this.$(".window-color > select")),l=f(this.$(".vjs-window-opacity > select")),a=s["default"].parseFloat(f(this.$(".vjs-font-percent > select"))),n={backgroundOpacity:h,textOpacity:e,windowOpacity:l,edgeStyle:i,fontFamily:r,color:u,backgroundColor:o,windowColor:c,fontPercent:a};for(var t in n)(n[t]===""||n[t]==="none"||t==="fontPercent"&&n[t]===1)&&delete n[t];return n},t.prototype.setValues=function(n){e(this.$(".vjs-edge-style select"),n.edgeStyle);e(this.$(".vjs-font-family select"),n.fontFamily);e(this.$(".vjs-fg-color > select"),n.color);e(this.$(".vjs-text-opacity > select"),n.textOpacity);e(this.$(".vjs-bg-color > select"),n.backgroundColor);e(this.$(".vjs-bg-opacity > select"),n.backgroundOpacity);e(this.$(".window-color > select"),n.windowColor);e(this.$(".vjs-window-opacity > select"),n.windowOpacity);var t=n.fontPercent;t&&(t=t.toFixed(2));e(this.$(".vjs-font-percent > select"),t)},t.prototype.restoreSettings=function(){var n=undefined,t=undefined,i;try{i=g["default"](s["default"].localStorage.getItem("vjs-text-track-settings"));n=i[0];t=i[1];n&&h["default"].error(n)}catch(r){h["default"].warn(r)}t&&this.setValues(t)},t.prototype.saveSettings=function(){if(this.options_.persistTextTrackSettings){var n=this.getValues();try{Object.getOwnPropertyNames(n).length>0?s["default"].localStorage.setItem("vjs-text-track-settings",JSON.stringify(n)):s["default"].localStorage.removeItem("vjs-text-track-settings")}catch(t){h["default"].warn(t)}}},t.prototype.updateDisplay=function(){var n=this.player_.getChild("textTrackDisplay");n&&n.updateDisplay()},t}(l["default"]);l["default"].registerComponent("TextTrackSettings",a);i["default"]=a;t.exports=i["default"]},{"../component":67,"../utils/events.js":144,"../utils/fn.js":145,"../utils/log.js":148,"global/window":2,"safe-json-parse/tuple":54}],134:[function(n,t,i){"use strict";function o(n){var t,i;if(n&&n.__esModule)return n;if(t={},n!=null)for(i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i]);return t["default"]=n,t}function r(n){return n&&n.__esModule?n:{"default":n}}function a(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function v(n,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}i.__esModule=!0;var y=n("./text-track-cue-list"),s=r(y),p=n("../utils/fn.js"),h=o(p),f=n("./track-enums"),w=n("../utils/log.js"),e=r(w),b=n("global/document"),st=r(b),k=n("global/window"),u=r(k),d=n("./track.js"),g=r(d),nt=n("../utils/url.js"),tt=n("xhr"),it=r(tt),rt=n("../utils/merge-options"),ut=r(rt),ft=n("../utils/browser.js"),et=o(ft),c=function(n,t){var i=new u["default"].WebVTT.Parser(u["default"],u["default"].vttjs,u["default"].WebVTT.StringDecoder()),r=[];i.oncue=function(n){t.addCue(n)};i.onparsingerror=function(n){r.push(n)};i.onflush=function(){t.trigger({type:"loadeddata",target:t})};i.parse(n);r.length>0&&(console.groupCollapsed&&console.groupCollapsed("Text Track parsing errors for "+t.src),r.forEach(function(n){return e["default"].error(n)}),console.groupEnd&&console.groupEnd());i.flush()},ot=function(n,t){var i={uri:n},r=nt.isCrossOrigin(n);r&&(i.cors=r);it["default"](i,h.bind(this,function(n,i,r){if(n)return e["default"].error(n,i);t.loaded_=!0;typeof u["default"].WebVTT!="function"?t.tech_&&function(){var n=function(){return c(r,t)};t.tech_.on("vttjsloaded",n);t.tech_.on("vttjserror",function(){e["default"].error("vttjs failed to load, stopping trying to process "+t.src);t.tech_.off("vttjsloaded",n)})}():c(r,t)}))},l=function(n){function t(){var u=arguments.length<=0||arguments[0]===undefined?{}:arguments[0],i,c;if(a(this,t),!u.tech)throw new Error("A tech was not provided.");var r=ut["default"](u,{kind:f.TextTrackKind[u.kind]||"subtitles",language:u.language||u.srclang||""}),e=f.TextTrackMode[r.mode]||"disabled",y=r["default"];if((r.kind==="metadata"||r.kind==="chapters")&&(e="hidden"),i=n.call(this,r),i.tech_=r.tech,et.IS_IE8)for(c in t.prototype)c!=="constructor"&&(i[c]=t.prototype[c]);i.cues_=[];i.activeCues_=[];var p=new s["default"](i.cues_),l=new s["default"](i.activeCues_),o=!1,v=h.bind(i,function(){this.activeCues;o&&(this.trigger("cuechange"),o=!1)});if(e!=="disabled")i.tech_.on("timeupdate",v);return Object.defineProperty(i,"default",{get:function(){return y},set:function(){}}),Object.defineProperty(i,"mode",{get:function(){return e},set:function(n){if(f.TextTrackMode[n]){if(e=n,e==="showing")this.tech_.on("timeupdate",v);this.trigger("modechange")}}}),Object.defineProperty(i,"cues",{get:function(){return this.loaded_?p:null},set:function(){}}),Object.defineProperty(i,"activeCues",{get:function(){var r,i,u,n,t;if(!this.loaded_)return null;if(this.cues.length===0)return l;for(r=this.tech_.currentTime(),i=[],t=0,u=this.cues.length;t<u;t++)n=this.cues[t],n.startTime<=r&&n.endTime>=r?i.push(n):n.startTime===n.endTime&&n.startTime<=r&&n.startTime+.5>=r&&i.push(n);if(o=!1,i.length!==this.activeCues_.length)o=!0;else for(t=0;t<i.length;t++)this.activeCues_.indexOf(i[t])===-1&&(o=!0);return this.activeCues_=i,l.setCues_(this.activeCues_),l},set:function(){}}),r.src?(i.src=r.src,ot(r.src,i)):i.loaded_=!0,i}return v(t,n),t.prototype.addCue=function(n){var i=this.tech_.textTracks(),t;if(i)for(t=0;t<i.length;t++)i[t]!==this&&i[t].removeCue(n);this.cues_.push(n);this.cues.setCues_(this.cues_)},t.prototype.removeCue=function(n){for(var r,i=!1,t=0,u=this.cues_.length;t<u;t++)r=this.cues_[t],r===n&&(this.cues_.splice(t,1),i=!0);i&&this.cues.setCues_(this.cues_)},t}(g["default"]);l.prototype.allowedEvents_={cuechange:"cuechange"};i["default"]=l;t.exports=i["default"]},{"../utils/browser.js":140,"../utils/fn.js":145,"../utils/log.js":148,"../utils/merge-options":149,"../utils/url.js":153,"./text-track-cue-list":129,"./track-enums":135,"./track.js":137,"global/document":1,"global/window":2,xhr:56}],135:[function(n,t,i){"use strict";i.__esModule=!0;i["default"]={VideoTrackKind:{alternative:"alternative",captions:"captions",main:"main",sign:"sign",subtitles:"subtitles",commentary:"commentary"},AudioTrackKind:{alternative:"alternative",descriptions:"descriptions",main:"main","main-desc":"main-desc",translation:"translation",commentary:"commentary"},TextTrackKind:{subtitles:"subtitles",captions:"captions",descriptions:"descriptions",chapters:"chapters",metadata:"metadata"},TextTrackMode:{disabled:"disabled",hidden:"hidden",showing:"showing"}};t.exports=i["default"]},{}],136:[function(n,t,i){"use strict";function u(n){var t,i;if(n&&n.__esModule)return n;if(t={},n!=null)for(i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i]);return t["default"]=n,t}function f(n){return n&&n.__esModule?n:{"default":n}}function o(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function s(n,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}var e;i.__esModule=!0;var h=n("../event-target"),c=f(h),l=n("../utils/fn.js"),w=u(l),a=n("../utils/browser.js"),v=u(a),y=n("global/document"),p=f(y),r=function(n){function t(){var f=arguments.length<=0||arguments[0]===undefined?[]:arguments[0],i=arguments.length<=1||arguments[1]===undefined?null:arguments[1],r,u;if(o(this,t),n.call(this),!i&&(i=this,v.IS_IE8)){i=p["default"].createElement("custom");for(r in t.prototype)r!=="constructor"&&(i[r]=t.prototype[r])}for(i.tracks_=[],Object.defineProperty(i,"length",{get:function(){return this.tracks_.length}}),u=0;u<f.length;u++)i.addTrack_(f[u]);return i}return s(t,n),t.prototype.addTrack_=function(n){var t=this.tracks_.length;""+t in this||Object.defineProperty(this,t,{get:function(){return this.tracks_[t]}});this.tracks_.indexOf(n)===-1&&(this.tracks_.push(n),this.trigger({track:n,type:"addtrack"}))},t.prototype.removeTrack_=function(n){for(var t=undefined,i=0,r=this.length;i<r;i++)if(this[i]===n){t=this[i];t.off&&t.off();this.tracks_.splice(i,1);break}t&&this.trigger({track:t,type:"removetrack"})},t.prototype.getTrackById=function(n){for(var i,r=null,t=0,u=this.length;t<u;t++)if(i=this[t],i.id===n){r=i;break}return r},t}(c["default"]);r.prototype.allowedEvents_={change:"change",addtrack:"addtrack",removetrack:"removetrack"};for(e in r.prototype.allowedEvents_)r.prototype["on"+e]=null;i["default"]=r;t.exports=i["default"]},{"../event-target":104,"../utils/browser.js":140,"../utils/fn.js":145,"global/document":1}],137:[function(n,t,i){"use strict";function r(n){return n&&n.__esModule?n:{"default":n}}function u(n){var t,i;if(n&&n.__esModule)return n;if(t={},n!=null)for(i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i]);return t["default"]=n,t}function f(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function e(n,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}i.__esModule=!0;var o=n("../utils/browser.js"),s=u(o),h=n("global/document"),c=r(h),l=n("../utils/guid.js"),a=u(l),v=n("../event-target"),y=r(v),p=function(n){function t(){var r=arguments.length<=0||arguments[0]===undefined?{}:arguments[0],i,u,e,o,h;if(f(this,t),n.call(this),i=this,s.IS_IE8){i=c["default"].createElement("custom");for(u in t.prototype)u!=="constructor"&&(i[u]=t.prototype[u])}e={id:r.id||"vjs_track_"+a.newGUID(),kind:r.kind||"",label:r.label||"",language:r.language||""};o=function(n){Object.defineProperty(i,n,{get:function(){return e[n]},set:function(){}})};for(h in e)o(h);return i}return e(t,n),t}(y["default"]);i["default"]=p;t.exports=i["default"]},{"../event-target":104,"../utils/browser.js":140,"../utils/guid.js":147,"global/document":1}],138:[function(n,t,i){"use strict";function e(n){var t,i;if(n&&n.__esModule)return n;if(t={},n!=null)for(i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i]);return t["default"]=n,t}function f(n){return n&&n.__esModule?n:{"default":n}}function o(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function s(n,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}i.__esModule=!0;var h=n("./track-list"),r=f(h),c=n("../utils/browser.js"),l=e(c),a=n("global/document"),v=f(a),u=function(n,t){for(var i=0;i<n.length;i++)t.id!==n[i].id&&(n[i].selected=!1)},y=function(n){function t(){var e=arguments.length<=0||arguments[0]===undefined?[]:arguments[0],i,s,f;for(o(this,t),i=undefined,s=e.length-1;s>=0;s--)if(e[s].selected){u(e,e[s]);break}if(l.IS_IE8){i=v["default"].createElement("custom");for(f in r["default"].prototype)f!=="constructor"&&(i[f]=r["default"].prototype[f]);for(f in t.prototype)f!=="constructor"&&(i[f]=t.prototype[f])}return i=n.call(this,e,i),i.changing_=!1,Object.defineProperty(i,"selectedIndex",{get:function(){for(var n=0;n<this.length;n++)if(this[n].selected)return n;return-1},set:function(){}}),i}return s(t,n),t.prototype.addTrack_=function(t){var i=this;(t.selected&&u(this,t),n.prototype.addTrack_.call(this,t),t.addEventListener)&&t.addEventListener("selectedchange",function(){i.changing_||(i.changing_=!0,u(i,t),i.changing_=!1,i.trigger("change"))})},t.prototype.addTrack=function(n){this.addTrack_(n)},t.prototype.removeTrack=function(t){n.prototype.removeTrack_.call(this,t)},t}(r["default"]);i["default"]=y;t.exports=i["default"]},{"../utils/browser.js":140,"./track-list":136,"global/document":1}],139:[function(n,t,i){"use strict";function u(n){var t,i;if(n&&n.__esModule)return n;if(t={},n!=null)for(i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i]);return t["default"]=n,t}function r(n){return n&&n.__esModule?n:{"default":n}}function f(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function e(n,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}i.__esModule=!0;var o=n("./track-enums"),s=n("./track"),h=r(s),c=n("../utils/merge-options"),l=r(c),a=n("../utils/browser.js"),v=u(a),y=function(n){function t(){var s=arguments.length<=0||arguments[0]===undefined?{}:arguments[0],r;f(this,t);var u=l["default"](s,{kind:o.VideoTrackKind[s.kind]||""}),i=n.call(this,u),e=!1;if(v.IS_IE8)for(r in t.prototype)r!=="constructor"&&(i[r]=t.prototype[r]);return Object.defineProperty(i,"selected",{get:function(){return e},set:function(n){typeof n=="boolean"&&n!==e&&(e=n,this.trigger("selectedchange"))}}),u.selected&&(i.selected=u.selected),i}return e(t,n),t}(h["default"]);i["default"]=y;t.exports=i["default"]},{"../utils/browser.js":140,"../utils/merge-options":149,"./track":137,"./track-enums":135}],140:[function(n,t,i){"use strict";function l(n){return n&&n.__esModule?n:{"default":n}}var s,h,y,p,f,e,w,b,k,c,d,g,nt,tt;i.__esModule=!0;var it=n("global/document"),a=l(it),rt=n("global/window"),u=l(rt),r=u["default"].navigator.userAgent,v=/AppleWebKit\/([\d.]+)/i.exec(r),ut=v?parseFloat(v.pop()):null,o=/iPad/i.test(r);i.IS_IPAD=o;s=/iPhone/i.test(r)&&!o;i.IS_IPHONE=s;h=/iPod/i.test(r);i.IS_IPOD=h;y=s||o||h;i.IS_IOS=y;p=function(){var n=r.match(/OS (\d+)_/i);if(n&&n[1])return n[1]}();i.IOS_VERSION=p;f=/Android/i.test(r);i.IS_ANDROID=f;e=function(){var n=r.match(/Android (\d+)(?:\.(\d+))?(?:\.(\d+))*/i),t,i;return n?(t=n[1]&&parseFloat(n[1]),i=n[2]&&parseFloat(n[2]),t&&i?parseFloat(n[1]+"."+n[2]):t?t:null):null}();i.ANDROID_VERSION=e;w=f&&/webkit/i.test(r)&&e<2.3;i.IS_OLD_ANDROID=w;b=f&&e<5&&ut<537;i.IS_NATIVE_ANDROID=b;k=/Firefox/i.test(r);i.IS_FIREFOX=k;c=/Edge/i.test(r);i.IS_EDGE=c;d=!c&&/Chrome/i.test(r);i.IS_CHROME=d;g=/MSIE\s8\.0/.test(r);i.IS_IE8=g;nt=!!("ontouchstart"in u["default"]||u["default"].DocumentTouch&&a["default"]instanceof u["default"].DocumentTouch);i.TOUCH_ENABLED=nt;tt="backgroundSize"in a["default"].createElement("video").style;i.BACKGROUND_SIZE_SUPPORTED=tt},{"global/document":1,"global/window":2}],141:[function(n,t,i){"use strict";function u(n,t){var f=0,e,u,i;if(!t)return 0;for(n&&n.length||(n=r.createTimeRange(0,0)),i=0;i<n.length;i++)e=n.start(i),u=n.end(i),u>t&&(u=t),f+=u-e;return f/t}i.__esModule=!0;i.bufferedPercent=u;var r=n("./time-ranges.js")},{"./time-ranges.js":151}],142:[function(n,t,i){"use strict";function u(n){return n&&n.__esModule?n:{"default":n}}i.__esModule=!0;var f=n("./log.js"),e=u(f),r={get:function(n,t){return n[t]},set:function(n,t,i){return n[t]=i,!0}};i["default"]=function(n){var i=arguments.length<=1||arguments[1]===undefined?{}:arguments[1],t;return typeof Proxy=="function"&&(t=function(){var t={};return Object.keys(i).forEach(function(n){r.hasOwnProperty(n)&&(t[n]=function(){return e["default"].warn(i[n]),r[n].apply(this,arguments)})}),{v:new Proxy(n,t)}}(),typeof t=="object")?t.v:n};t.exports=i["default"]},{"./log.js":148}],143:[function(n,t,i){"use strict";function it(n){var t,i;if(n&&n.__esModule)return n;if(t={},n!=null)for(i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i]);return t["default"]=n,t}function e(n){return n&&n.__esModule?n:{"default":n}}function rt(n,t){return n.raw=t,n}function l(n){return typeof n=="string"&&/\S/.test(n)}function a(n){if(/\s/.test(n))throw new Error("class has illegal whitespace characters");}function at(n){return new RegExp("(^|\\s)"+n+"($|\\s)")}function v(n){return function(t,i){return l(t)?(l(i)&&(i=r["default"].querySelector(i)),(s(i)?i:r["default"])[n](t)):r["default"][n](null)}}function vt(n){return n.indexOf("#")===0&&(n=n.slice(1)),r["default"].getElementById(n)}function yt(){var u=arguments.length<=0||arguments[0]===undefined?"div":arguments[0],i=arguments.length<=1||arguments[1]===undefined?{}:arguments[1],t=arguments.length<=2||arguments[2]===undefined?{}:arguments[2],n=r["default"].createElement(u);return Object.getOwnPropertyNames(i).forEach(function(t){var r=i[t];t.indexOf("aria-")!==-1||t==="role"||t==="type"?(ht["default"].warn(lt["default"](h,t,r)),n.setAttribute(t,r)):n[t]=r}),Object.getOwnPropertyNames(t).forEach(function(i){var r=t[i];n.setAttribute(i,t[i])}),n}function pt(n,t){typeof n.textContent=="undefined"?n.innerText=t:n.textContent=t}function wt(n,t){t.firstChild?t.insertBefore(n,t.firstChild):t.appendChild(n)}function bt(n){var t=n[u];return t||(t=n[u]=ot.newGUID()),f[t]||(f[t]={}),f[t]}function kt(n){var t=n[u];return t?!!Object.getOwnPropertyNames(f[t]).length:!1}function dt(n){var t=n[u];if(t){delete f[t];try{delete n[u]}catch(i){n.removeAttribute?n.removeAttribute(u):n[u]=null}}}function o(n,t){return n.classList?n.classList.contains(t):(a(t),at(t).test(n.className))}function y(n,t){return n.classList?n.classList.add(t):o(n,t)||(n.className=(n.className+" "+t).trim()),n}function p(n,t){return n.classList?n.classList.remove(t):(a(t),n.className=n.className.split(/\s+/).filter(function(n){return n!==t}).join(" ")),n}function gt(n,t,i){var r=o(n,t);if(typeof i=="function"&&(i=i(n,t)),typeof i!="boolean"&&(i=!r),i!==r)return i?y(n,t):p(n,t),n}function ni(n,t){Object.getOwnPropertyNames(t).forEach(function(i){var r=t[i];r===null||typeof r=="undefined"||r===!1?n.removeAttribute(i):n.setAttribute(i,r===!0?"":r)})}function ti(n){var f,e,i,r,u,t;if(f={},e=",autoplay,controls,loop,muted,default,",n&&n.attributes&&n.attributes.length>0)for(i=n.attributes,t=i.length-1;t>=0;t--)r=i[t].name,u=i[t].value,(typeof n[r]=="boolean"||e.indexOf(","+r+",")!==-1)&&(u=u!==null?!0:!1),f[r]=u;return f}function ii(){r["default"].body.focus();r["default"].onselectstart=function(){return!1}}function ri(){r["default"].onselectstart=function(){return!0}}function w(n){var t=undefined;if(n.getBoundingClientRect&&n.parentNode&&(t=n.getBoundingClientRect()),!t)return{left:0,top:0};var u=r["default"].documentElement,i=r["default"].body,f=u.clientLeft||i.clientLeft||0,e=c["default"].pageXOffset||i.scrollLeft,o=t.left+e-f,s=u.clientTop||i.clientTop||0,h=c["default"].pageYOffset||i.scrollTop,l=t.top+h-s;return{left:Math.round(o),top:Math.round(l)}}function ui(n,t){var i={},r=w(n),o=n.offsetWidth,u=n.offsetHeight,s=r.top,h=r.left,f=t.pageY,e=t.pageX;return t.changedTouches&&(e=t.changedTouches[0].pageX,f=t.changedTouches[0].pageY),i.y=Math.max(0,Math.min(1,(s-f+u)/u)),i.x=Math.max(0,Math.min(1,(e-h)/o)),i}function s(n){return!!n&&typeof n=="object"&&n.nodeType===1}function b(n){return!!n&&typeof n=="object"&&n.nodeType===3}function k(n){while(n.firstChild)n.removeChild(n.firstChild);return n}function d(n){return typeof n=="function"&&(n=n()),(Array.isArray(n)?n:[n]).map(function(n){return(typeof n=="function"&&(n=n()),s(n)||b(n))?n:typeof n=="string"&&/\S/.test(n)?r["default"].createTextNode(n):void 0}).filter(function(n){return n})}function g(n,t){return d(t).forEach(function(t){return n.appendChild(t)}),n}function fi(n,t){return g(k(n),t)}var h,f,u,nt,tt;i.__esModule=!0;i.getEl=vt;i.createEl=yt;i.textContent=pt;i.insertElFirst=wt;i.getElData=bt;i.hasElData=kt;i.removeElData=dt;i.hasElClass=o;i.addElClass=y;i.removeElClass=p;i.toggleElClass=gt;i.setElAttributes=ni;i.getElAttributes=ti;i.blockTextSelection=ii;i.unblockTextSelection=ri;i.findElPosition=w;i.getPointerPosition=ui;i.isEl=s;i.isTextNode=b;i.emptyEl=k;i.normalizeContent=d;i.appendContent=g;i.insertContent=fi;h=rt(["Setting attributes in the second argument of createEl()\n                has been deprecated. Use the third argument instead.\n                createEl(type, properties, attributes). Attempting to set "," to ","."],["Setting attributes in the second argument of createEl()\n                has been deprecated. Use the third argument instead.\n                createEl(type, properties, attributes). Attempting to set "," to ","."]);var ut=n("global/document"),r=e(ut),ft=n("global/window"),c=e(ft),et=n("./guid.js"),ot=it(et),st=n("./log.js"),ht=e(st),ct=n("tsml"),lt=e(ct);f={};u="vdata"+(new Date).getTime();nt=v("querySelector");i.$=nt;tt=v("querySelectorAll");i.$$=tt},{"./guid.js":147,"./log.js":148,"global/document":1,"global/window":2,tsml:55}],144:[function(n,t,i){"use strict";function h(n){return n&&n.__esModule?n:{"default":n}}function c(n){var t,i;if(n&&n.__esModule)return n;if(t={},n!=null)for(i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i]);return t["default"]=n,t}function f(n,t,i){if(Array.isArray(t))return s(f,n,t,i);var u=r.getElData(n);u.handlers||(u.handlers={});u.handlers[t]||(u.handlers[t]=[]);i.guid||(i.guid=l.newGUID());u.handlers[t].push(i);u.dispatcher||(u.disabled=!1,u.dispatcher=function(t,i){var f,e,r,s;if(!u.disabled&&(t=o(t),f=u.handlers[t.type],f))for(e=f.slice(0),r=0,s=e.length;r<s;r++)if(t.isImmediatePropagationStopped())break;else e[r].call(n,t,i)});u.handlers[t].length===1&&(n.addEventListener?n.addEventListener(t,u.dispatcher,!1):n.attachEvent&&n.attachEvent("on"+t,u.dispatcher))}function e(n,t,i){var u,h,c,f,o;if(r.hasElData(n)&&(u=r.getElData(n),u.handlers)){if(Array.isArray(t))return s(e,n,t,i);if(h=function(t){u.handlers[t]=[];y(n,t)},!t){for(c in u.handlers)h(c);return}if(f=u.handlers[t],f){if(!i){h(t);return}if(i.guid)for(o=0;o<f.length;o++)f[o].guid===i.guid&&f.splice(o--,1);y(n,t)}}}function a(n,t,i){var e=r.hasElData(n)?r.getElData(n):{},u=n.parentNode||n.ownerDocument,f;return typeof t=="string"&&(t={type:t,target:n}),t=o(t),e.dispatcher&&e.dispatcher.call(n,t,i),u&&!t.isPropagationStopped()&&t.bubbles===!0?a.call(null,u,t,i):u||t.defaultPrevented||(f=r.getElData(t.target),t.target[t.type]&&(f.disabled=!0,typeof t.target[t.type]=="function"&&t.target[t.type](),f.disabled=!1)),!t.defaultPrevented}function v(n,t,i){if(Array.isArray(t))return s(v,n,t,i);var r=function r(){e(n,t,r);i.apply(this,arguments)};r.guid=i.guid=i.guid||l.newGUID();f(n,t,r)}function o(n){function e(){return!0}function o(){return!1}var t,i,r,f;if(!n||!n.isPropagationStopped){t=n||k["default"].event;n={};for(i in t)i!=="layerX"&&i!=="layerY"&&i!=="keyLocation"&&i!=="webkitMovementX"&&i!=="webkitMovementY"&&(i==="returnValue"&&t.preventDefault||(n[i]=t[i]));n.target||(n.target=n.srcElement||u["default"]);n.relatedTarget||(n.relatedTarget=n.fromElement===n.target?n.toElement:n.fromElement);n.preventDefault=function(){t.preventDefault&&t.preventDefault();n.returnValue=!1;t.returnValue=!1;n.defaultPrevented=!0};n.defaultPrevented=!1;n.stopPropagation=function(){t.stopPropagation&&t.stopPropagation();n.cancelBubble=!0;t.cancelBubble=!0;n.isPropagationStopped=e};n.isPropagationStopped=o;n.stopImmediatePropagation=function(){t.stopImmediatePropagation&&t.stopImmediatePropagation();n.isImmediatePropagationStopped=e;n.stopPropagation()};n.isImmediatePropagationStopped=o;n.clientX!=null&&(r=u["default"].documentElement,f=u["default"].body,n.pageX=n.clientX+(r&&r.scrollLeft||f&&f.scrollLeft||0)-(r&&r.clientLeft||f&&f.clientLeft||0),n.pageY=n.clientY+(r&&r.scrollTop||f&&f.scrollTop||0)-(r&&r.clientTop||f&&f.clientTop||0));n.which=n.charCode||n.keyCode;n.button!=null&&(n.button=n.button&1?0:n.button&4?1:n.button&2?2:0)}return n}function y(n,t){var i=r.getElData(n);i.handlers[t].length===0&&(delete i.handlers[t],n.removeEventListener?n.removeEventListener(t,i.dispatcher,!1):n.detachEvent&&n.detachEvent("on"+t,i.dispatcher));Object.getOwnPropertyNames(i.handlers).length<=0&&(delete i.handlers,delete i.dispatcher,delete i.disabled);Object.getOwnPropertyNames(i).length===0&&r.removeElData(n)}function s(n,t,i,r){i.forEach(function(i){n(t,i,r)})}i.__esModule=!0;i.on=f;i.off=e;i.trigger=a;i.one=v;i.fixEvent=o;var p=n("./dom.js"),r=c(p),w=n("./guid.js"),l=c(w),b=n("global/window"),k=h(b),d=n("global/document"),u=h(d)},{"./dom.js":143,"./guid.js":147,"global/document":1,"global/window":2}],145:[function(n,t,i){"use strict";i.__esModule=!0;var r=n("./guid.js"),u=function(n,t,i){t.guid||(t.guid=r.newGUID());var u=function(){return t.apply(n,arguments)};return u.guid=i?i+"_"+t.guid:t.guid,u};i.bind=u},{"./guid.js":147}],146:[function(n,t,i){"use strict";function r(n){var t=arguments.length<=1||arguments[1]===undefined?n:arguments[1];return function(){n=n<0?0:n;var i=Math.floor(n%60),r=Math.floor(n/60%60),u=Math.floor(n/3600),f=Math.floor(t/60%60),e=Math.floor(t/3600);return(isNaN(n)||n===Infinity)&&(u=r=i="-"),u=u>0||e>0?u+":":"",r=((u||f>=10)&&r<10?"0"+r:r)+":",i=i<10?"0"+i:i,u+r+i}()}i.__esModule=!0;i["default"]=r;t.exports=i["default"]},{}],147:[function(n,t,i){"use strict";function u(){return r++}i.__esModule=!0;i.newGUID=u;var r=1},{}],148:[function(n,t,i){"use strict";function f(n){return n&&n.__esModule?n:{"default":n}}function u(n,t){var i=Array.prototype.slice.call(t),f=function(){},u=o["default"].console||{log:f,warn:f,error:f};n?i.unshift(n.toUpperCase()+":"):n="log";r.history.push(i);i.unshift("VIDEOJS:");u[n].apply?u[n].apply(u,i):u[n](i.join(" "))}i.__esModule=!0;var e=n("global/window"),o=f(e),r=function(){u(null,arguments)};r.history=[];r.error=function(){u("error",arguments)};r.warn=function(){u("warn",arguments)};i["default"]=r;t.exports=i["default"]},{"global/window":2}],149:[function(n,t,i){"use strict";function s(n){return n&&n.__esModule?n:{"default":n}}function f(n){return!!n&&typeof n=="object"&&n.toString()==="[object Object]"&&n.constructor===Object}function o(){var n=Array.prototype.slice.call(arguments);return n.unshift({}),n.push(e),u["default"].apply(null,n),n[0]}var r,u,e;i.__esModule=!0;i["default"]=o;r=n("lodash-compat/object/merge");u=s(r);e=function(n,t){return f(t)?f(n)?void 0:o(t):t};t.exports=i["default"]},{"lodash-compat/object/merge":40}],150:[function(n,t,i){"use strict";function u(n){return n&&n.__esModule?n:{"default":n}}var r;i.__esModule=!0;var f=n("global/document"),e=u(f),o=function(n){var t=e["default"].createElement("style");return t.className=n,t};i.createStyleElement=o;r=function(n,t){n.styleSheet?n.styleSheet.cssText=t:n.textContent=t};i.setTextContent=r},{"global/document":1}],151:[function(n,t,i){"use strict";function e(n){return n&&n.__esModule?n:{"default":n}}function u(n,t){return Array.isArray(n)?r(n):n===undefined||t===undefined?r():r([[n,t]])}function r(n){return n===undefined||n.length===0?{length:0,start:function(){throw new Error("This TimeRanges object is empty");},end:function(){throw new Error("This TimeRanges object is empty");}}:{length:n.length,start:f.bind(null,"start",0,n),end:f.bind(null,"end",1,n)}}function f(n,t,i,r){return r===undefined&&(s["default"].warn("DEPRECATED: Function '"+n+"' on 'TimeRanges' called without an index argument."),r=0),h(n,r,i.length-1),i[r][t]}function h(n,t,i){if(t<0||t>i)throw new Error("Failed to execute '"+n+"' on 'TimeRanges': The index provided ("+t+") is greater than or equal to the maximum bound ("+i+").");}i.__esModule=!0;i.createTimeRanges=u;var o=n("./log.js"),s=e(o);i.createTimeRange=u},{"./log.js":148}],152:[function(n,t,i){"use strict";function r(n){return n.charAt(0).toUpperCase()+n.slice(1)}i.__esModule=!0;i["default"]=r;t.exports=i["default"]},{}],153:[function(n,t,i){"use strict";function u(n){return n&&n.__esModule?n:{"default":n}}var e,o,s;i.__esModule=!0;var h=n("global/document"),r=u(h),c=n("global/window"),l=u(c),f=function(n){var e=["protocol","hostname","port","pathname","search","hash","host"],u=r["default"].createElement("a"),o,i,t,f;for(u.href=n,o=u.host===""&&u.protocol!=="file:",i=undefined,o&&(i=r["default"].createElement("div"),i.innerHTML='<a href="'+n+'"><\/a>',u=i.firstChild,i.setAttribute("style","display:none; position:absolute;"),r["default"].body.appendChild(i)),t={},f=0;f<e.length;f++)t[e[f]]=u[e[f]];return t.protocol==="http:"&&(t.host=t.host.replace(/:80$/,"")),t.protocol==="https:"&&(t.host=t.host.replace(/:443$/,"")),o&&r["default"].body.removeChild(i),t};i.parseUrl=f;e=function(n){if(!n.match(/^https?:\/\//)){var t=r["default"].createElement("div");t.innerHTML='<a href="'+n+'">x<\/a>';n=t.firstChild.href}return n};i.getAbsoluteURL=e;o=function(n){if(typeof n=="string"){var t=/^(\/?)([\s\S]*?)((?:\.{1,2}|[^\/]+?)(\.([^\.\/\?]+)))(?:[\/]*|[\?].*)$/i.exec(n);if(t)return t.pop().toLowerCase()}return""};i.getFileExtension=o;s=function(n){var t=l["default"].location,i=f(n),r=i.protocol===":"?t.protocol:i.protocol;return r+i.host!==t.protocol+t.host};i.isCrossOrigin=s},{"global/document":1,"global/window":2}],154:[function(t,i,r){"use strict";function o(n){var t,i;if(n&&n.__esModule)return n;if(t={},n!=null)for(i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i]);return t["default"]=n,t}function f(n){return n&&n.__esModule?n:{"default":n}}function u(n,t,i){var r=undefined;if(typeof n=="string"){if(n.indexOf("#")===0&&(n=n.slice(1)),u.getPlayers()[n])return t&&v["default"].warn('Player "'+n+'" is already initialised. Options will not be applied.'),i&&u.getPlayers()[n].ready(i),u.getPlayers()[n];r=e.getEl(n)}else r=n;if(!r||!r.nodeName)throw new TypeError("The element or ID supplied is not valid. (videojs)");return r.player||s["default"].players[r.playerId]||new s["default"](r,t,i)}var h,p;r.__esModule=!0;var d=t("global/window"),g=f(d),nt=t("global/document"),l=f(nt),tt=t("./setup"),it=o(tt),rt=t("./utils/stylesheet.js"),w=o(rt),ut=t("./component"),a=f(ut),ft=t("./event-target"),et=f(ft),ot=t("./utils/events.js"),c=o(ot),st=t("./player"),s=f(st),ht=t("./plugins.js"),ct=f(ht),lt=t("../../src/js/utils/merge-options.js"),at=f(lt),vt=t("./utils/fn.js"),yt=o(vt),pt=t("./tracks/text-track.js"),wt=f(pt),bt=t("./tracks/audio-track.js"),kt=f(bt),dt=t("./tracks/video-track.js"),gt=f(dt),ni=t("object.assign"),di=f(ni),ti=t("./utils/time-ranges.js"),ii=t("./utils/format-time.js"),ri=f(ii),ui=t("./utils/log.js"),v=f(ui),fi=t("./utils/dom.js"),e=o(fi),ei=t("./utils/browser.js"),b=o(ei),oi=t("./utils/url.js"),k=o(oi),si=t("./extend.js"),hi=f(si),ci=t("lodash-compat/object/merge"),li=f(ci),ai=t("./utils/create-deprecation-proxy.js"),vi=f(ai),yi=t("xhr"),pi=f(yi),wi=t("./tech/tech.js"),y=f(wi),bi=t("./tech/html5.js"),gi=f(bi),ki=t("./tech/flash.js"),nr=f(ki);typeof HTMLVideoElement=="undefined"&&(l["default"].createElement("video"),l["default"].createElement("audio"),l["default"].createElement("track"));g["default"].VIDEOJS_NO_DYNAMIC_STYLE!==!0&&(h=e.$(".vjs-styles-defaults"),h||(h=w.createStyleElement("vjs-styles-defaults"),p=e.$("head"),p.insertBefore(h,p.firstChild),w.setTextContent(h,"\n      .video-js {\n        width: 300px;\n        height: 150px;\n      }\n\n      .vjs-fluid {\n        padding-top: 56.25%\n      }\n    ")));it.autoSetupTimeout(1,u);u.VERSION="5.10.5";u.options=s["default"].prototype.options_;u.getPlayers=function(){return s["default"].players};u.players=vi["default"](s["default"].players,{get:"Access to videojs.players is deprecated; use videojs.getPlayers instead",set:"Modification of videojs.players is deprecated"});u.getComponent=a["default"].getComponent;u.registerComponent=function(n,t){y["default"].isTech(t)&&v["default"].warn("The "+n+" tech was registered as a component. It should instead be registered using videojs.registerTech(name, tech)");a["default"].registerComponent.call(a["default"],n,t)};u.getTech=y["default"].getTech;u.registerTech=y["default"].registerTech;u.browser=b;u.TOUCH_ENABLED=b.TOUCH_ENABLED;u.extend=hi["default"];u.mergeOptions=at["default"];u.bind=yt.bind;u.plugin=ct["default"];u.addLanguage=function(n,t){var i;return n=(""+n).toLowerCase(),li["default"](u.options.languages,(i={},i[n]=t,i))[n]};u.log=v["default"];u.createTimeRange=u.createTimeRanges=ti.createTimeRanges;u.formatTime=ri["default"];u.parseUrl=k.parseUrl;u.isCrossOrigin=k.isCrossOrigin;u.EventTarget=et["default"];u.on=c.on;u.one=c.one;u.off=c.off;u.trigger=c.trigger;u.xhr=pi["default"];u.TextTrack=wt["default"];u.AudioTrack=kt["default"];u.VideoTrack=gt["default"];u.isEl=e.isEl;u.isTextNode=e.isTextNode;u.createEl=e.createEl;u.hasClass=e.hasElClass;u.addClass=e.addElClass;u.removeClass=e.removeElClass;u.toggleClass=e.toggleElClass;u.setAttributes=e.setElAttributes;u.getAttributes=e.getElAttributes;u.emptyEl=e.emptyEl;u.appendContent=e.appendContent;u.insertContent=e.insertContent;typeof n=="function"&&n.amd?n("videojs",[],function(){return u}):typeof r=="object"&&typeof i=="object"&&(i.exports=u);r["default"]=u;i.exports=r["default"]},{"../../src/js/utils/merge-options.js":149,"./component":67,"./event-target":104,"./extend.js":105,"./player":113,"./plugins.js":114,"./setup":118,"./tech/flash.js":121,"./tech/html5.js":122,"./tech/tech.js":124,"./tracks/audio-track.js":126,"./tracks/text-track.js":134,"./tracks/video-track.js":139,"./utils/browser.js":140,"./utils/create-deprecation-proxy.js":142,"./utils/dom.js":143,"./utils/events.js":144,"./utils/fn.js":145,"./utils/format-time.js":146,"./utils/log.js":148,"./utils/stylesheet.js":150,"./utils/time-ranges.js":151,"./utils/url.js":153,"global/document":1,"global/window":2,"lodash-compat/object/merge":40,"object.assign":45,xhr:56}]},{},[154])(154)}),function(n){var t=n.vttjs={},i=t.VTTCue,r=t.VTTRegion,u=n.VTTCue,f=n.VTTRegion;t.shim=function(){t.VTTCue=i;t.VTTRegion=r};t.restore=function(){t.VTTCue=u;t.VTTRegion=f}}(this),function(n,t){function s(n){if(typeof n!="string")return!1;var t=e[n.toLowerCase()];return t?n.toLowerCase():!1}function r(n){if(typeof n!="string")return!1;var t=o[n.toLowerCase()];return t?n.toLowerCase():!1}function i(n){for(var t=1,i,r;t<arguments.length;t++){i=arguments[t];for(r in i)n[r]=i[r]}return n}function u(n,t,u){var e=this,h=/MSIE\s8\.0/.test(navigator.userAgent),o={};h?e=document.createElement("custom"):o.enumerable=!0;e.hasBeenReset=!1;var c="",l=!1,a=n,v=t,y=u,p=null,w="",b=!0,k="auto",d="start",g=50,nt="middle",tt=50,it="middle";return Object.defineProperty(e,"id",i({},o,{get:function(){return c},set:function(n){c=""+n}})),Object.defineProperty(e,"pauseOnExit",i({},o,{get:function(){return l},set:function(n){l=!!n}})),Object.defineProperty(e,"startTime",i({},o,{get:function(){return a},set:function(n){if(typeof n!="number")throw new TypeError("Start time must be set to a number.");a=n;this.hasBeenReset=!0}})),Object.defineProperty(e,"endTime",i({},o,{get:function(){return v},set:function(n){if(typeof n!="number")throw new TypeError("End time must be set to a number.");v=n;this.hasBeenReset=!0}})),Object.defineProperty(e,"text",i({},o,{get:function(){return y},set:function(n){y=""+n;this.hasBeenReset=!0}})),Object.defineProperty(e,"region",i({},o,{get:function(){return p},set:function(n){p=n;this.hasBeenReset=!0}})),Object.defineProperty(e,"vertical",i({},o,{get:function(){return w},set:function(n){var t=s(n);if(t===!1)throw new SyntaxError("An invalid or illegal string was specified.");w=t;this.hasBeenReset=!0}})),Object.defineProperty(e,"snapToLines",i({},o,{get:function(){return b},set:function(n){b=!!n;this.hasBeenReset=!0}})),Object.defineProperty(e,"line",i({},o,{get:function(){return k},set:function(n){if(typeof n!="number"&&n!==f)throw new SyntaxError("An invalid number or illegal string was specified.");k=n;this.hasBeenReset=!0}})),Object.defineProperty(e,"lineAlign",i({},o,{get:function(){return d},set:function(n){var t=r(n);if(!t)throw new SyntaxError("An invalid or illegal string was specified.");d=t;this.hasBeenReset=!0}})),Object.defineProperty(e,"position",i({},o,{get:function(){return g},set:function(n){if(n<0||n>100)throw new Error("Position must be between 0 and 100.");g=n;this.hasBeenReset=!0}})),Object.defineProperty(e,"positionAlign",i({},o,{get:function(){return nt},set:function(n){var t=r(n);if(!t)throw new SyntaxError("An invalid or illegal string was specified.");nt=t;this.hasBeenReset=!0}})),Object.defineProperty(e,"size",i({},o,{get:function(){return tt},set:function(n){if(n<0||n>100)throw new Error("Size must be between 0 and 100.");tt=n;this.hasBeenReset=!0}})),Object.defineProperty(e,"align",i({},o,{get:function(){return it},set:function(n){var t=r(n);if(!t)throw new SyntaxError("An invalid or illegal string was specified.");it=t;this.hasBeenReset=!0}})),e.displayState=undefined,h?e:void 0}var f="auto",e={"":!0,lr:!0,rl:!0},o={start:!0,middle:!0,end:!0,left:!0,right:!0};u.prototype.getCueAsHTML=function(){return WebVTT.convertCueToDOMTree(window,this.text)};n.VTTCue=n.VTTCue||u;t.VTTCue=u}(this,this.vttjs||{}),function(n,t){function f(n){if(typeof n!="string")return!1;var t=u[n.toLowerCase()];return t?n.toLowerCase():!1}function i(n){return typeof n=="number"&&n>=0&&n<=100}function r(){var n=100,t=3,r=0,u=100,e=0,o=100,s="";Object.defineProperties(this,{width:{enumerable:!0,get:function(){return n},set:function(t){if(!i(t))throw new Error("Width must be between 0 and 100.");n=t}},lines:{enumerable:!0,get:function(){return t},set:function(n){if(typeof n!="number")throw new TypeError("Lines must be set to a number.");t=n}},regionAnchorY:{enumerable:!0,get:function(){return u},set:function(n){if(!i(n))throw new Error("RegionAnchorX must be between 0 and 100.");u=n}},regionAnchorX:{enumerable:!0,get:function(){return r},set:function(n){if(!i(n))throw new Error("RegionAnchorY must be between 0 and 100.");r=n}},viewportAnchorY:{enumerable:!0,get:function(){return o},set:function(n){if(!i(n))throw new Error("ViewportAnchorY must be between 0 and 100.");o=n}},viewportAnchorX:{enumerable:!0,get:function(){return e},set:function(n){if(!i(n))throw new Error("ViewportAnchorX must be between 0 and 100.");e=n}},scroll:{enumerable:!0,get:function(){return s},set:function(n){var t=f(n);if(t===!1)throw new SyntaxError("An invalid or illegal string was specified.");s=t}}})}var u={"":!0,up:!0};n.VTTRegion=n.VTTRegion||r;t.VTTRegion=r}(this,this.vttjs||{}),function(n){function i(n,t){this.name="ParsingError";this.code=n.code;this.message=t||n.message}function c(n){function i(n,t,i,r){return(n|0)*3600+(t|0)*60+(i|0)+(r|0)/1e3}var t=n.match(/^(\d+):(\d{2})(:\d{2})?\.(\d{3})/);return t?t[3]?i(t[1],t[2],t[3].replace(":",""),t[4]):t[1]>59?i(t[1],t[2],0,t[4]):i(0,t[1],t[2],t[4]):null}function u(){this.values=o(null)}function s(n,t,i,r){var f=r?n.split(r):[n],e,u,o,s;for(e in f)typeof f[e]=="string"&&(u=f[e].split(i),u.length===2)&&(o=u[0],s=u[1],t(o,s))}function v(n,t,r){function o(){var t=c(n);if(t===null)throw new i(i.Errors.BadTimeStamp,"Malformed timestamp: "+e);return n=n.replace(/^[^\sa-zA-Z-]+/,""),t}function h(n,t){var i=new u;s(n,function(n,t){var f,u,e;switch(n){case"region":for(f=r.length-1;f>=0;f--)if(r[f].id===t){i.set(n,r[f].region);break}break;case"vertical":i.alt(n,t,["rl","lr"]);break;case"line":u=t.split(",");e=u[0];i.integer(n,e);i.percent(n,e)?i.set("snapToLines",!1):null;i.alt(n,e,["auto"]);u.length===2&&i.alt("lineAlign",u[1],["start","middle","end"]);break;case"position":u=t.split(",");i.percent(n,u[0]);u.length===2&&i.alt("positionAlign",u[1],["start","middle","end"]);break;case"size":i.percent(n,t);break;case"align":i.alt(n,t,["start","middle","end","left","right"])}},/:/,/\s/);t.region=i.get("region",null);t.vertical=i.get("vertical","");t.line=i.get("line","auto");t.lineAlign=i.get("lineAlign","start");t.snapToLines=i.get("snapToLines",!0);t.size=i.get("size",100);t.align=i.get("align","middle");t.position=i.get("position",{start:0,left:0,middle:50,end:100,right:100},t.align);t.positionAlign=i.get("positionAlign",{start:"start",left:"start",middle:"middle",end:"end",right:"end"},t.align)}function f(){n=n.replace(/^\s+/,"")}var e=n;if(f(),t.startTime=o(),f(),n.substr(0,3)!=="-->")throw new i(i.Errors.BadTimeStamp,"Malformed time stamp (time stamps must be separated by '-->'): "+e);n=n.substr(3);f();t.endTime=o();f();h(n,t)}function a(n,t){function h(){function i(n){return t=t.substr(n.length),n}if(!t)return null;var n=t.match(/^([^<]*)(<[^>]+>?)?/);return i(n[1]?n[1]:n[2])}function a(n){return y[n]}function v(n){while(i=n.match(/&(amp|lt|gt|lrm|rlm|nbsp);/))n=n.replace(i[0],a);return n}function b(n,t){return!l[t.localName]||l[t.localName]===n.localName}function k(t,i){var u=p[t],r,f;return u?(r=n.document.createElement(u),r.localName=u,f=w[t],f&&i&&(r[f]=i.trim()),r):null}for(var s=n.document.createElement("div"),f=s,r,e=[],o,u,i;(r=h())!==null;){if(r[0]==="<"){if(r[1]==="/"){e.length&&e[e.length-1]===r.substr(2).replace(">","")&&(e.pop(),f=f.parentNode);continue}if(o=c(r.substr(1,r.length-2)),o){u=n.document.createProcessingInstruction("timestamp",o);f.appendChild(u);continue}if(i=r.match(/^<([^.\s/0-9>]+)(\.[^\s\\>]+)?([^>\\]+)?(\\?)>?$/),!i)continue;if(u=k(i[1],i[3]),!u)continue;if(!b(f,u))continue;i[2]&&(u.className=i[2].substr(1).replace("."," "));e.push(i[1]);f.appendChild(u);f=u;continue}f.appendChild(n.document.createTextNode(v(r)))}return s}function b(n){function o(n,t){for(var i=t.childNodes.length-1;i>=0;i--)n.push(t.childNodes[i])}function u(n){var t,i,r;return!n||!n.length?null:(t=n.pop(),i=t.textContent||t.innerText,i)?(r=i.match(/^.*(\n|\r)/),r)?(n.length=0,r[0]):i:t.tagName==="ruby"?u(n):t.childNodes?(o(n,t),u(n)):void 0}var f=[],r="",e,t,i;if(!n||!n.childNodes)return"ltr";for(o(f,n);r=u(f);)for(t=0;t<r.length;t++)for(e=r.charCodeAt(t),i=0;i<h.length;i++)if(h[i]===e)return"rtl";return"ltr"}function k(n){var t;if(typeof n.line=="number"&&(n.snapToLines||n.line>=0&&n.line<=100))return n.line;if(!n.track||!n.track.textTrackList||!n.track.textTrackList.mediaElement)return-1;var r=n.track,i=r.textTrackList,u=0;for(t=0;t<i.length&&i[t]!==r;t++)i[t].mode==="showing"&&u++;return++u*-1}function f(){}function e(n,t,i){var e=/MSIE\s8\.0/.test(navigator.userAgent),o="rgba(255, 255, 255, 1)",s="rgba(0, 0, 0, 0.8)",r,u;e&&(o="rgb(255, 255, 255)",s="rgb(0, 0, 0)");f.call(this);this.cue=t;this.cueDiv=a(n,t.text);r={color:o,backgroundColor:s,position:"relative",left:0,right:0,top:0,bottom:0,display:"inline"};e||(r.writingMode=t.vertical===""?"horizontal-tb":t.vertical==="lr"?"vertical-lr":"vertical-rl",r.unicodeBidi="plaintext");this.applyStyles(r,this.cueDiv);this.div=n.document.createElement("div");r={textAlign:t.align==="middle"?"center":t.align,font:i.font,whiteSpace:"pre-line",position:"absolute"};e||(r.direction=b(this.cueDiv),r.writingMode=t.vertical===""?"horizontal-tb":t.vertical==="lr"?"vertical-lr":"vertical-rl".stylesunicodeBidi="plaintext");this.applyStyles(r);this.div.appendChild(this.cueDiv);u=0;switch(t.positionAlign){case"start":u=t.position;break;case"middle":u=t.position-t.size/2;break;case"end":u=t.position-t.size}t.vertical===""?this.applyStyles({left:this.formatStyle(u,"%"),width:this.formatStyle(t.size,"%")}):this.applyStyles({top:this.formatStyle(u,"%"),height:this.formatStyle(t.size,"%")});this.move=function(n){this.applyStyles({top:this.formatStyle(n.top,"px"),bottom:this.formatStyle(n.bottom,"px"),left:this.formatStyle(n.left,"px"),right:this.formatStyle(n.right,"px"),height:this.formatStyle(n.height,"px"),width:this.formatStyle(n.width,"px")})}}function t(n){var e=/MSIE\s8\.0/.test(navigator.userAgent),i,r,f,u,t;n.div&&(r=n.div.offsetHeight,f=n.div.offsetWidth,u=n.div.offsetTop,t=(t=n.div.childNodes)&&(t=t[0])&&t.getClientRects&&t.getClientRects(),n=n.div.getBoundingClientRect(),i=t?Math.max(t[0]&&t[0].height||0,n.height/t.length):0);this.left=n.left;this.right=n.right;this.top=n.top||u;this.height=n.height||r;this.bottom=n.bottom||u+(n.height||r);this.width=n.width||f;this.lineHeight=i!==undefined?i:n.lineHeight;e&&!this.lineHeight&&(this.lineHeight=13)}function d(n,i,r,u){function p(n,i){for(var e,o,s=new t(n),h=1,f=0;f<i.length;f++){while(n.overlapsOppositeAxis(r,i[f])||n.within(r)&&n.overlapsAny(u))n.move(i[f]);if(n.within(r))return n;e=n.intersectPercentage(r);h>e&&(o=new t(n),h=e);n=new t(s)}return o||s}var s=new t(i),o=i.cue,e=k(o),f=[],c,a,y;if(o.snapToLines){switch(o.vertical){case"":f=["+y","-y"];c="height";break;case"rl":f=["+x","-x"];c="width";break;case"lr":f=["-x","+x"];c="width"}var l=s.lineHeight,h=l*Math.round(e),v=r[c]+l,w=f[0];Math.abs(h)>v&&(h=(h<0?-1:1)*Math.ceil(v/l)*l);e<0&&(h+=o.vertical===""?r.height:r.width,f=f.reverse());s.move(w,h)}else{a=s.lineHeight/r.height*100;switch(o.lineAlign){case"middle":e-=a/2;break;case"end":e-=a}switch(o.vertical){case"":i.applyStyles({top:i.formatStyle(e,"%")});break;case"rl":i.applyStyles({left:i.formatStyle(e,"%")});break;case"lr":i.applyStyles({right:i.formatStyle(e,"%")})}f=["+y","-x","+x","-y"];s=new t(i)}y=p(s,f);i.move(y.toCSSCompatValues(r))}function r(){}var o=Object.create||function(){function n(){}return function(t){if(arguments.length!==1)throw new Error("Object.create shim only accepts one parameter.");return n.prototype=t,new n}}(),h;i.prototype=o(Error.prototype);i.prototype.constructor=i;i.Errors={BadSignature:{code:0,message:"Malformed WebVTT signature."},BadTimeStamp:{code:1,message:"Malformed time stamp."}};u.prototype={set:function(n,t){this.get(n)||t===""||(this.values[n]=t)},get:function(n,t,i){return i?this.has(n)?this.values[n]:t[i]:this.has(n)?this.values[n]:t},has:function(n){return n in this.values},alt:function(n,t,i){for(var r=0;r<i.length;++r)if(t===i[r]){this.set(n,t);break}},integer:function(n,t){/^-?\d+$/.test(t)&&this.set(n,parseInt(t,10))},percent:function(n,t){var i;return(i=t.match(/^([\d]{1,3})(\.[\d]*)?%$/))&&(t=parseFloat(t),t>=0&&t<=100)?(this.set(n,t),!0):!1}};var y={"&amp;":"&","&lt;":"<","&gt;":">","&lrm;":"‎","&rlm;":"‏","&nbsp;":" "},p={c:"span",i:"i",b:"b",u:"u",ruby:"ruby",rt:"rt",v:"span",lang:"span"},w={v:"title",lang:"lang"},l={rt:"ruby"};h=[1470,1472,1475,1478,1488,1489,1490,1491,1492,1493,1494,1495,1496,1497,1498,1499,1500,1501,1502,1503,1504,1505,1506,1507,1508,1509,1510,1511,1512,1513,1514,1520,1521,1522,1523,1524,1544,1547,1549,1563,1566,1567,1568,1569,1570,1571,1572,1573,1574,1575,1576,1577,1578,1579,1580,1581,1582,1583,1584,1585,1586,1587,1588,1589,1590,1591,1592,1593,1594,1595,1596,1597,1598,1599,1600,1601,1602,1603,1604,1605,1606,1607,1608,1609,1610,1645,1646,1647,1649,1650,1651,1652,1653,1654,1655,1656,1657,1658,1659,1660,1661,1662,1663,1664,1665,1666,1667,1668,1669,1670,1671,1672,1673,1674,1675,1676,1677,1678,1679,1680,1681,1682,1683,1684,1685,1686,1687,1688,1689,1690,1691,1692,1693,1694,1695,1696,1697,1698,1699,1700,1701,1702,1703,1704,1705,1706,1707,1708,1709,1710,1711,1712,1713,1714,1715,1716,1717,1718,1719,1720,1721,1722,1723,1724,1725,1726,1727,1728,1729,1730,1731,1732,1733,1734,1735,1736,1737,1738,1739,1740,1741,1742,1743,1744,1745,1746,1747,1748,1749,1765,1766,1774,1775,1786,1787,1788,1789,1790,1791,1792,1793,1794,1795,1796,1797,1798,1799,1800,1801,1802,1803,1804,1805,1807,1808,1810,1811,1812,1813,1814,1815,1816,1817,1818,1819,1820,1821,1822,1823,1824,1825,1826,1827,1828,1829,1830,1831,1832,1833,1834,1835,1836,1837,1838,1839,1869,1870,1871,1872,1873,1874,1875,1876,1877,1878,1879,1880,1881,1882,1883,1884,1885,1886,1887,1888,1889,1890,1891,1892,1893,1894,1895,1896,1897,1898,1899,1900,1901,1902,1903,1904,1905,1906,1907,1908,1909,1910,1911,1912,1913,1914,1915,1916,1917,1918,1919,1920,1921,1922,1923,1924,1925,1926,1927,1928,1929,1930,1931,1932,1933,1934,1935,1936,1937,1938,1939,1940,1941,1942,1943,1944,1945,1946,1947,1948,1949,1950,1951,1952,1953,1954,1955,1956,1957,1969,1984,1985,1986,1987,1988,1989,1990,1991,1992,1993,1994,1995,1996,1997,1998,1999,2e3,2001,2002,2003,2004,2005,2006,2007,2008,2009,2010,2011,2012,2013,2014,2015,2016,2017,2018,2019,2020,2021,2022,2023,2024,2025,2026,2036,2037,2042,2048,2049,2050,2051,2052,2053,2054,2055,2056,2057,2058,2059,2060,2061,2062,2063,2064,2065,2066,2067,2068,2069,2074,2084,2088,2096,2097,2098,2099,2100,2101,2102,2103,2104,2105,2106,2107,2108,2109,2110,2112,2113,2114,2115,2116,2117,2118,2119,2120,2121,2122,2123,2124,2125,2126,2127,2128,2129,2130,2131,2132,2133,2134,2135,2136,2142,2208,2210,2211,2212,2213,2214,2215,2216,2217,2218,2219,2220,8207,64285,64287,64288,64289,64290,64291,64292,64293,64294,64295,64296,64298,64299,64300,64301,64302,64303,64304,64305,64306,64307,64308,64309,64310,64312,64313,64314,64315,64316,64318,64320,64321,64323,64324,64326,64327,64328,64329,64330,64331,64332,64333,64334,64335,64336,64337,64338,64339,64340,64341,64342,64343,64344,64345,64346,64347,64348,64349,64350,64351,64352,64353,64354,64355,64356,64357,64358,64359,64360,64361,64362,64363,64364,64365,64366,64367,64368,64369,64370,64371,64372,64373,64374,64375,64376,64377,64378,64379,64380,64381,64382,64383,64384,64385,64386,64387,64388,64389,64390,64391,64392,64393,64394,64395,64396,64397,64398,64399,64400,64401,64402,64403,64404,64405,64406,64407,64408,64409,64410,64411,64412,64413,64414,64415,64416,64417,64418,64419,64420,64421,64422,64423,64424,64425,64426,64427,64428,64429,64430,64431,64432,64433,64434,64435,64436,64437,64438,64439,64440,64441,64442,64443,64444,64445,64446,64447,64448,64449,64467,64468,64469,64470,64471,64472,64473,64474,64475,64476,64477,64478,64479,64480,64481,64482,64483,64484,64485,64486,64487,64488,64489,64490,64491,64492,64493,64494,64495,64496,64497,64498,64499,64500,64501,64502,64503,64504,64505,64506,64507,64508,64509,64510,64511,64512,64513,64514,64515,64516,64517,64518,64519,64520,64521,64522,64523,64524,64525,64526,64527,64528,64529,64530,64531,64532,64533,64534,64535,64536,64537,64538,64539,64540,64541,64542,64543,64544,64545,64546,64547,64548,64549,64550,64551,64552,64553,64554,64555,64556,64557,64558,64559,64560,64561,64562,64563,64564,64565,64566,64567,64568,64569,64570,64571,64572,64573,64574,64575,64576,64577,64578,64579,64580,64581,64582,64583,64584,64585,64586,64587,64588,64589,64590,64591,64592,64593,64594,64595,64596,64597,64598,64599,64600,64601,64602,64603,64604,64605,64606,64607,64608,64609,64610,64611,64612,64613,64614,64615,64616,64617,64618,64619,64620,64621,64622,64623,64624,64625,64626,64627,64628,64629,64630,64631,64632,64633,64634,64635,64636,64637,64638,64639,64640,64641,64642,64643,64644,64645,64646,64647,64648,64649,64650,64651,64652,64653,64654,64655,64656,64657,64658,64659,64660,64661,64662,64663,64664,64665,64666,64667,64668,64669,64670,64671,64672,64673,64674,64675,64676,64677,64678,64679,64680,64681,64682,64683,64684,64685,64686,64687,64688,64689,64690,64691,64692,64693,64694,64695,64696,64697,64698,64699,64700,64701,64702,64703,64704,64705,64706,64707,64708,64709,64710,64711,64712,64713,64714,64715,64716,64717,64718,64719,64720,64721,64722,64723,64724,64725,64726,64727,64728,64729,64730,64731,64732,64733,64734,64735,64736,64737,64738,64739,64740,64741,64742,64743,64744,64745,64746,64747,64748,64749,64750,64751,64752,64753,64754,64755,64756,64757,64758,64759,64760,64761,64762,64763,64764,64765,64766,64767,64768,64769,64770,64771,64772,64773,64774,64775,64776,64777,64778,64779,64780,64781,64782,64783,64784,64785,64786,64787,64788,64789,64790,64791,64792,64793,64794,64795,64796,64797,64798,64799,64800,64801,64802,64803,64804,64805,64806,64807,64808,64809,64810,64811,64812,64813,64814,64815,64816,64817,64818,64819,64820,64821,64822,64823,64824,64825,64826,64827,64828,64829,64848,64849,64850,64851,64852,64853,64854,64855,64856,64857,64858,64859,64860,64861,64862,64863,64864,64865,64866,64867,64868,64869,64870,64871,64872,64873,64874,64875,64876,64877,64878,64879,64880,64881,64882,64883,64884,64885,64886,64887,64888,64889,64890,64891,64892,64893,64894,64895,64896,64897,64898,64899,64900,64901,64902,64903,64904,64905,64906,64907,64908,64909,64910,64911,64914,64915,64916,64917,64918,64919,64920,64921,64922,64923,64924,64925,64926,64927,64928,64929,64930,64931,64932,64933,64934,64935,64936,64937,64938,64939,64940,64941,64942,64943,64944,64945,64946,64947,64948,64949,64950,64951,64952,64953,64954,64955,64956,64957,64958,64959,64960,64961,64962,64963,64964,64965,64966,64967,65008,65009,65010,65011,65012,65013,65014,65015,65016,65017,65018,65019,65020,65136,65137,65138,65139,65140,65142,65143,65144,65145,65146,65147,65148,65149,65150,65151,65152,65153,65154,65155,65156,65157,65158,65159,65160,65161,65162,65163,65164,65165,65166,65167,65168,65169,65170,65171,65172,65173,65174,65175,65176,65177,65178,65179,65180,65181,65182,65183,65184,65185,65186,65187,65188,65189,65190,65191,65192,65193,65194,65195,65196,65197,65198,65199,65200,65201,65202,65203,65204,65205,65206,65207,65208,65209,65210,65211,65212,65213,65214,65215,65216,65217,65218,65219,65220,65221,65222,65223,65224,65225,65226,65227,65228,65229,65230,65231,65232,65233,65234,65235,65236,65237,65238,65239,65240,65241,65242,65243,65244,65245,65246,65247,65248,65249,65250,65251,65252,65253,65254,65255,65256,65257,65258,65259,65260,65261,65262,65263,65264,65265,65266,65267,65268,65269,65270,65271,65272,65273,65274,65275,65276,67584,67585,67586,67587,67588,67589,67592,67594,67595,67596,67597,67598,67599,67600,67601,67602,67603,67604,67605,67606,67607,67608,67609,67610,67611,67612,67613,67614,67615,67616,67617,67618,67619,67620,67621,67622,67623,67624,67625,67626,67627,67628,67629,67630,67631,67632,67633,67634,67635,67636,67637,67639,67640,67644,67647,67648,67649,67650,67651,67652,67653,67654,67655,67656,67657,67658,67659,67660,67661,67662,67663,67664,67665,67666,67667,67668,67669,67671,67672,67673,67674,67675,67676,67677,67678,67679,67840,67841,67842,67843,67844,67845,67846,67847,67848,67849,67850,67851,67852,67853,67854,67855,67856,67857,67858,67859,67860,67861,67862,67863,67864,67865,67866,67867,67872,67873,67874,67875,67876,67877,67878,67879,67880,67881,67882,67883,67884,67885,67886,67887,67888,67889,67890,67891,67892,67893,67894,67895,67896,67897,67903,67968,67969,67970,67971,67972,67973,67974,67975,67976,67977,67978,67979,67980,67981,67982,67983,67984,67985,67986,67987,67988,67989,67990,67991,67992,67993,67994,67995,67996,67997,67998,67999,68e3,68001,68002,68003,68004,68005,68006,68007,68008,68009,68010,68011,68012,68013,68014,68015,68016,68017,68018,68019,68020,68021,68022,68023,68030,68031,68096,68112,68113,68114,68115,68117,68118,68119,68121,68122,68123,68124,68125,68126,68127,68128,68129,68130,68131,68132,68133,68134,68135,68136,68137,68138,68139,68140,68141,68142,68143,68144,68145,68146,68147,68160,68161,68162,68163,68164,68165,68166,68167,68176,68177,68178,68179,68180,68181,68182,68183,68184,68192,68193,68194,68195,68196,68197,68198,68199,68200,68201,68202,68203,68204,68205,68206,68207,68208,68209,68210,68211,68212,68213,68214,68215,68216,68217,68218,68219,68220,68221,68222,68223,68352,68353,68354,68355,68356,68357,68358,68359,68360,68361,68362,68363,68364,68365,68366,68367,68368,68369,68370,68371,68372,68373,68374,68375,68376,68377,68378,68379,68380,68381,68382,68383,68384,68385,68386,68387,68388,68389,68390,68391,68392,68393,68394,68395,68396,68397,68398,68399,68400,68401,68402,68403,68404,68405,68416,68417,68418,68419,68420,68421,68422,68423,68424,68425,68426,68427,68428,68429,68430,68431,68432,68433,68434,68435,68436,68437,68440,68441,68442,68443,68444,68445,68446,68447,68448,68449,68450,68451,68452,68453,68454,68455,68456,68457,68458,68459,68460,68461,68462,68463,68464,68465,68466,68472,68473,68474,68475,68476,68477,68478,68479,68608,68609,68610,68611,68612,68613,68614,68615,68616,68617,68618,68619,68620,68621,68622,68623,68624,68625,68626,68627,68628,68629,68630,68631,68632,68633,68634,68635,68636,68637,68638,68639,68640,68641,68642,68643,68644,68645,68646,68647,68648,68649,68650,68651,68652,68653,68654,68655,68656,68657,68658,68659,68660,68661,68662,68663,68664,68665,68666,68667,68668,68669,68670,68671,68672,68673,68674,68675,68676,68677,68678,68679,68680,126464,126465,126466,126467,126469,126470,126471,126472,126473,126474,126475,126476,126477,126478,126479,126480,126481,126482,126483,126484,126485,126486,126487,126488,126489,126490,126491,126492,126493,126494,126495,126497,126498,126500,126503,126505,126506,126507,126508,126509,126510,126511,126512,126513,126514,126516,126517,126518,126519,126521,126523,126530,126535,126537,126539,126541,126542,126543,126545,126546,126548,126551,126553,126555,126557,126559,126561,126562,126564,126567,126568,126569,126570,126572,126573,126574,126575,126576,126577,126578,126580,126581,126582,126583,126585,126586,126587,126588,126590,126592,126593,126594,126595,126596,126597,126598,126599,126600,126601,126603,126604,126605,126606,126607,126608,126609,126610,126611,126612,126613,126614,126615,126616,126617,126618,126619,126625,126626,126627,126629,126630,126631,126632,126633,126635,126636,126637,126638,126639,126640,126641,126642,126643,126644,126645,126646,126647,126648,126649,126650,126651,1114109];f.prototype.applyStyles=function(n,t){t=t||this.div;for(var i in n)n.hasOwnProperty(i)&&(t.style[i]=n[i])};f.prototype.formatStyle=function(n,t){return n===0?0:n+t};e.prototype=o(f.prototype);e.prototype.constructor=e;t.prototype.move=function(n,t){t=t!==undefined?t:this.lineHeight;switch(n){case"+x":this.left+=t;this.right+=t;break;case"-x":this.left-=t;this.right-=t;break;case"+y":this.top+=t;this.bottom+=t;break;case"-y":this.top-=t;this.bottom-=t}};t.prototype.overlaps=function(n){return this.left<n.right&&this.right>n.left&&this.top<n.bottom&&this.bottom>n.top};t.prototype.overlapsAny=function(n){for(var t=0;t<n.length;t++)if(this.overlaps(n[t]))return!0;return!1};t.prototype.within=function(n){return this.top>=n.top&&this.bottom<=n.bottom&&this.left>=n.left&&this.right<=n.right};t.prototype.overlapsOppositeAxis=function(n,t){switch(t){case"+x":return this.left<n.left;case"-x":return this.right>n.right;case"+y":return this.top<n.top;case"-y":return this.bottom>n.bottom}};t.prototype.intersectPercentage=function(n){var t=Math.max(0,Math.min(this.right,n.right)-Math.max(this.left,n.left)),i=Math.max(0,Math.min(this.bottom,n.bottom)-Math.max(this.top,n.top)),r=t*i;return r/(this.height*this.width)};t.prototype.toCSSCompatValues=function(n){return{top:this.top-n.top,bottom:n.bottom-this.bottom,left:this.left-n.left,right:n.right-this.right,height:this.height,width:this.width}};t.getSimpleBoxPosition=function(n){var t=n.div?n.div.offsetHeight:n.tagName?n.offsetHeight:0,r=n.div?n.div.offsetWidth:n.tagName?n.offsetWidth:0,i=n.div?n.div.offsetTop:n.tagName?n.offsetTop:0;return n=n.div?n.div.getBoundingClientRect():n.tagName?n.getBoundingClientRect():n,{left:n.left,right:n.right,top:n.top||i,height:n.height||t,bottom:n.bottom||i+(n.height||t),width:n.width||r}};r.StringDecoder=function(){return{decode:function(n){if(!n)return"";if(typeof n!="string")throw new Error("Error - expected string data.");return decodeURIComponent(encodeURIComponent(n))}}};r.convertCueToDOMTree=function(n,t){return!n||!t?null:a(n,t)};var g=.05,nt="sans-serif",tt="1.5%";r.processCues=function(n,i,r){function h(n){for(var t=0;t<n.length;t++)if(n[t].hasBeenReset||!n[t].displayState)return!0;return!1}var u,f;if(!n||!i||!r)return null;while(r.firstChild)r.removeChild(r.firstChild);if(u=n.document.createElement("div"),u.style.position="absolute",u.style.left="0",u.style.right="0",u.style.top="0",u.style.bottom="0",u.style.margin=tt,r.appendChild(u),!h(i)){for(f=0;f<i.length;f++)u.appendChild(i[f].displayState);return}var o=[],s=t.getSimpleBoxPosition(u),c=Math.round(s.height*g*100)/100,l={font:c+"px "+nt};(function(){for(var r,f,h=0;h<i.length;h++)f=i[h],r=new e(n,f,l),u.appendChild(r.div),d(n,r,s,o),f.displayState=r.div,o.push(t.getSimpleBoxPosition(r))})()};r.Parser=function(n,t,i){i||(i=t,t={});t||(t={});this.window=n;this.vttjs=t;this.state="INITIAL";this.buffer="";this.decoder=i||new TextDecoder("utf8");this.regionList=[]};r.Parser.prototype={reportOrThrowError:function(n){if(n instanceof i)this.onparsingerror&&this.onparsingerror(n);else throw n;},parse:function(n){function o(){for(var i=t.buffer,n=0,r;n<i.length&&i[n]!=="\r"&&i[n]!=="\n";)++n;return r=i.substr(0,n),i[n]==="\r"&&++n,i[n]==="\n"&&++n,t.buffer=i.substr(n),r}function l(n){var i=new u,r;s(n,function(n,t){var f,r;switch(n){case"id":i.set(n,t);break;case"width":i.percent(n,t);break;case"lines":i.integer(n,t);break;case"regionanchor":case"viewportanchor":if(f=t.split(","),f.length!==2)break;if(r=new u,r.percent("x",f[0]),r.percent("y",f[1]),!r.has("x")||!r.has("y"))break;i.set(n+"X",r.get("x"));i.set(n+"Y",r.get("y"));break;case"scroll":i.alt(n,t,["up"])}},/=/,/\s/);i.has("id")&&(r=new(t.vttjs.VTTRegion||t.window.VTTRegion),r.width=i.get("width",100),r.lines=i.get("lines",3),r.regionAnchorX=i.get("regionanchorX",0),r.regionAnchorY=i.get("regionanchorY",100),r.viewportAnchorX=i.get("viewportanchorX",0),r.viewportAnchorY=i.get("viewportanchorY",100),r.scroll=i.get("scroll",""),t.onregion&&t.onregion(r),t.regionList.push({id:i.get("id"),region:r}))}function a(n){s(n,function(n,t){switch(n){case"Region":l(t)}},/:/)}var t=this,r,e,f,c;n&&(t.buffer+=t.decoder.decode(n,{stream:!0}));try{if(t.state==="INITIAL"){if(!/\r\n|\n/.test(t.buffer))return this;if(r=o(),e=r.match(/^WEBVTT([ \t].*)?$/),!e||!e[0])throw new i(i.Errors.BadSignature);t.state="HEADER"}for(f=!1;t.buffer;){if(!/\r\n|\n/.test(t.buffer))return this;f?f=!1:r=o();switch(t.state){case"HEADER":/:/.test(r)?a(r):r||(t.state="ID");continue;case"NOTE":r||(t.state="ID");continue;case"ID":if(/^NOTE($|[ \t])/.test(r)){t.state="NOTE";break}if(!r)continue;if(t.cue=new(t.vttjs.VTTCue||t.window.VTTCue)(0,0,""),t.state="CUE",r.indexOf("-->")===-1){t.cue.id=r;continue}case"CUE":try{v(r,t.cue,t.regionList)}catch(h){t.reportOrThrowError(h);t.cue=null;t.state="BADCUE";continue}t.state="CUETEXT";continue;case"CUETEXT":if(c=r.indexOf("-->")!==-1,!r||c&&(f=!0)){t.oncue&&t.oncue(t.cue);t.cue=null;t.state="ID";continue}t.cue.text&&(t.cue.text+="\n");t.cue.text+=r;continue;case"BADCUE":r||(t.state="ID");continue}}}catch(h){if(t.reportOrThrowError(h),t.state==="CUETEXT"&&t.cue&&t.oncue)t.oncue(t.cue);t.cue=null;t.state=t.state==="INITIAL"?"BADWEBVTT":"BADCUE"}return this},flush:function(){var n=this;try{if(n.buffer+=n.decoder.decode(),(n.cue||n.state==="HEADER")&&(n.buffer+="\n\n",n.parse()),n.state==="INITIAL")throw new i(i.Errors.BadSignature);}catch(t){n.reportOrThrowError(t)}return n.onflush&&n.onflush(),this}};n.WebVTT=r}(this,this.vttjs||{}),function(n,t){"use strict";t.flashls=function(n){return n=n||{},n.swfUrl&&(t.options.flash.swf=n.swfUrl),t.options.flash.flashVars=t.options.flash.flashVars||{},t.options.flash.flashVars.hls_capleveltostage=!1,t.options.flash.flashVars.hls_seekmode="ACCURATE",t.options.techOrder=["flash","html5"],t.Flash.registerSourceHandler({canHandleSource:function(n){return n.type==="application/x-mpegURL"?"maybe":""},handleSource:function(n,t){t.setSrc(n.src)}}),t}}(window,window.videojs,document);window.betv.isIE()&&window.betv.isIE()<10||!function(n){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=n();else if("function"==typeof define&&define.amd)define([],n);else{var t;t="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this;t.videojsContribHls=n()}}(function(){return function n(t,i,r){function u(f,o){var h,c,s;if(!i[f]){if(!t[f]){if(h="function"==typeof require&&require,!o&&h)return h(f,!0);if(e)return e(f,!0);c=new Error("Cannot find module '"+f+"'");throw c.code="MODULE_NOT_FOUND",c;}s=i[f]={exports:{}};t[f][0].call(s.exports,function(n){var i=t[f][1][n];return u(i?i:n)},s,s.exports,n,t,i,r)}return i[f].exports}for(var e="function"==typeof require&&require,f=0;f<r.length;f++)u(r[f]);return u}({1:[function(n,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var u=function(n,t){return n.start(t)+"-"+n.end(t)},f=function(n,t){var i=n.toString(16);return"00".substring(0,2-i.length)+i+(t%2?" ":"")},e=function(n){return n>=32&&126>n?String.fromCharCode(n):"."},r={hexDump:function(n){for(var r=Array.prototype.slice.call(n),t=16,u="",o=void 0,s=void 0,i=0;i<r.length/t;i++)o=r.slice(i*t,i*t+t).map(f).join(""),s=r.slice(i*t,i*t+t).map(e).join(""),u+=o+" "+s+"\n";return u},tagDump:function(n){return r.hexDump(n.bytes)},textRanges:function(n){for(var i="",t=void 0,t=0;t<n.length;t++)i+=u(n,t)+" ";return i}};i["default"]=r;t.exports=i["default"]},{}],2:[function(n,t,i){"use strict";function u(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}Object.defineProperty(i,"__esModule",{value:!0});var f=function(){function n(n,t){for(var i,r=0;r<t.length;r++)i=t[r],i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}return function(t,i,r){return i&&n(t.prototype,i),r&&n(t,r),t}}(),e=function(){for(var h=[[[],[],[],[],[]],[[],[],[],[],[]]],f=h[0],e=h[1],l=f[4],p=e[4],n=void 0,i=void 0,r=void 0,u=[],a=[],c=void 0,v=void 0,y=void 0,t=void 0,o=void 0,s=void 0,n=0;256>n;n++)a[(u[n]=n<<1^283*(n>>7))^n]=n;for(i=r=0;!l[i];i^=c||1,r=a[r]||1)for(t=r^r<<1^r<<2^r<<3^r<<4,t=t>>8^255&t^99,l[i]=t,p[t]=i,y=u[v=u[c=u[i]]],s=16843009*y^65537*v^257*c^16843008*i,o=257*u[t]^16843008*t,n=0;4>n;n++)f[n][i]=o=o<<24^o>>>8,e[n][t]=s=s<<24^s>>>8;for(n=0;5>n;n++)f[n]=f[n].slice(0),e[n]=e[n].slice(0);return h},r=null,o=function(){function n(t){u(this,n);r||(r=e());this._tables=[[r[0][0].slice(),r[0][1].slice(),r[0][2].slice(),r[0][3].slice(),r[0][4].slice()],[r[1][0].slice(),r[1][1].slice(),r[1][2].slice(),r[1][3].slice(),r[1][4].slice()]];var f=void 0,c=void 0,i=void 0,h=void 0,v=void 0,s=this._tables[0][4],l=this._tables[1],o=t.length,a=1;if(4!==o&&6!==o&&8!==o)throw new Error("Invalid aes key size");for(h=t.slice(0),v=[],this._key=[h,v],f=o;4*o+28>f;f++)i=h[f-1],(f%o==0||8===o&&f%o==4)&&(i=s[i>>>24]<<24^s[i>>16&255]<<16^s[i>>8&255]<<8^s[255&i],f%o==0&&(i=i<<8^i>>>24^a<<24,a=a<<1^283*(a>>7))),h[f]=h[f-o]^i;for(c=0;f;c++,f--)i=h[3&c?f:f-4],v[c]=4>=f||4>c?i:l[0][s[i>>>24]]^l[1][s[i>>16&255]]^l[2][s[i>>8&255]]^l[3][s[255&i]]}return f(n,[{key:"decrypt",value:function(n,t,i,r,u,f){for(var e=this._key[1],o=n^e[0],s=r^e[1],h=i^e[2],c=t^e[3],y=void 0,g=void 0,nt=void 0,tt=e.length/4-2,l=void 0,a=4,v=this._tables[1],p=v[0],w=v[1],b=v[2],k=v[3],d=v[4],l=0;tt>l;l++)y=p[o>>>24]^w[s>>16&255]^b[h>>8&255]^k[255&c]^e[a],g=p[s>>>24]^w[h>>16&255]^b[c>>8&255]^k[255&o]^e[a+1],nt=p[h>>>24]^w[c>>16&255]^b[o>>8&255]^k[255&s]^e[a+2],c=p[c>>>24]^w[o>>16&255]^b[s>>8&255]^k[255&h]^e[a+3],a+=4,o=y,s=g,h=nt;for(l=0;4>l;l++)u[(3&-l)+f]=d[o>>>24]<<24^d[s>>16&255]<<16^d[h>>8&255]<<8^d[255&c]^e[a++],y=o,o=s,s=h,h=c,c=y}}]),n}();i["default"]=o;t.exports=i["default"]},{}],3:[function(n,t,i){"use strict";function u(n){return n&&n.__esModule?n:{"default":n}}function f(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function e(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}Object.defineProperty(i,"__esModule",{value:!0});var o=function(){function n(n,t){for(var i,r=0;r<t.length;r++)i=t[r],i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}return function(t,i,r){return i&&n(t.prototype,i),r&&n(t,r),t}}(),s=function(n,t,i){for(var r,o,e,u=!0;u;){var f=n,s=t,h=i;if(u=!1,null===f&&(f=Function.prototype),r=Object.getOwnPropertyDescriptor(f,s),void 0!==r)return"value"in r?r.value:(o=r.get,void 0===o)?void 0:o.call(h);if(e=Object.getPrototypeOf(f),null===e)return;n=e;t=s;i=h;u=!0;r=e=void 0}},h=n("../stream"),r=u(h),c=function(n){function t(){f(this,t);s(Object.getPrototypeOf(t.prototype),"constructor",this).call(this,r["default"]);this.jobs=[];this.delay=1;this.timeout_=null}return e(t,n),o(t,[{key:"processJob_",value:function(){this.jobs.shift()();this.timeout_=this.jobs.length?setTimeout(this.processJob_.bind(this),this.delay):null}},{key:"push",value:function(n){this.jobs.push(n);this.timeout_||(this.timeout_=setTimeout(this.processJob_.bind(this),this.delay))}}]),t}(r["default"]);i["default"]=c;t.exports=i["default"]},{"../stream":13}],4:[function(n,t,i){"use strict";function e(n){return n&&n.__esModule?n:{"default":n}}function o(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}var u;Object.defineProperty(i,"__esModule",{value:!0});var s=function(){function n(n,t){for(var i,r=0;r<t.length;r++)i=t[r],i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}return function(t,i,r){return i&&n(t.prototype,i),r&&n(t,r),t}}(),h=n("./aes"),c=e(h),l=n("./async-stream"),a=e(l),v=n("pkcs7"),r=function(n){return n<<24|(65280&n)<<8|(16711680&n)>>8|n>>>24},f=function(n,t,i){var e=new Int32Array(n.buffer,n.byteOffset,n.byteLength>>2),b=new c["default"](Array.prototype.slice.call(t)),w=new Uint8Array(n.byteLength),f=new Int32Array(w.buffer),o=void 0,s=void 0,h=void 0,l=void 0,a=void 0,v=void 0,y=void 0,p=void 0,u=void 0;for(o=i[0],s=i[1],h=i[2],l=i[3],u=0;u<e.length;u+=4)a=r(e[u]),v=r(e[u+1]),y=r(e[u+2]),p=r(e[u+3]),b.decrypt(a,v,y,p,f,u),f[u]=r(f[u]^o),f[u+1]=r(f[u+1]^s),f[u+2]=r(f[u+2]^h),f[u+3]=r(f[u+3]^l),o=a,s=v,h=y,l=p;return w};i.decrypt=f;u=function(){function n(t,i,u,f){o(this,n);var h=n.STEP,s=new Int32Array(t.buffer),c=new Uint8Array(t.byteLength),e=0;for(this.asyncStream_=new a["default"],this.asyncStream_.push(this.decryptChunk_(s.subarray(e,e+h),i,u,c)),e=h;e<s.length;e+=h)u=new Uint32Array([r(s[e-4]),r(s[e-3]),r(s[e-2]),r(s[e-1])]),this.asyncStream_.push(this.decryptChunk_(s.subarray(e,e+h),i,u,c));this.asyncStream_.push(function(){f(null,v.unpad(c))})}return s(n,[{key:"decryptChunk_",value:function(n,t,i,r){return function(){var u=f(n,t,i);r.set(u,n.byteOffset)}}}]),n}();i.Decrypter=u;u.STEP=32e3;i["default"]={Decrypter:u,decrypt:f}},{"./aes":2,"./async-stream":3,pkcs7:18}],5:[function(n,t,i){"use strict";function u(n){return n&&n.__esModule?n:{"default":n}}Object.defineProperty(i,"__esModule",{value:!0});var r=n("./decrypter"),f=n("./async-stream"),e=u(f);i["default"]={decrypt:r.decrypt,Decrypter:r.Decrypter,AsyncStream:e["default"]};t.exports=i["default"]},{"./async-stream":3,"./decrypter":4}],6:[function(n,t,i){"use strict";function r(n){return n&&n.__esModule?n:{"default":n}}Object.defineProperty(i,"__esModule",{value:!0});var u=n("./line-stream"),f=r(u),e=n("./parse-stream"),o=r(e),s=n("./parser"),h=r(s);i["default"]={LineStream:f["default"],ParseStream:o["default"],Parser:h["default"]};t.exports=i["default"]},{"./line-stream":7,"./parse-stream":8,"./parser":9}],7:[function(n,t,i){"use strict";function r(n){return n&&n.__esModule?n:{"default":n}}function u(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function f(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}Object.defineProperty(i,"__esModule",{value:!0});var e=function(){function n(n,t){for(var i,r=0;r<t.length;r++)i=t[r],i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}return function(t,i,r){return i&&n(t.prototype,i),r&&n(t,r),t}}(),o=function(n,t,i){for(var r,o,e,u=!0;u;){var f=n,s=t,h=i;if(u=!1,null===f&&(f=Function.prototype),r=Object.getOwnPropertyDescriptor(f,s),void 0!==r)return"value"in r?r.value:(o=r.get,void 0===o)?void 0:o.call(h);if(e=Object.getPrototypeOf(f),null===e)return;n=e;t=s;i=h;u=!0;r=e=void 0}},s=n("../stream"),h=r(s),c=function(n){function t(){u(this,t);o(Object.getPrototypeOf(t.prototype),"constructor",this).call(this);this.buffer=""}return f(t,n),e(t,[{key:"push",value:function(n){var t=void 0;for(this.buffer+=n,t=this.buffer.indexOf("\n");t>-1;t=this.buffer.indexOf("\n"))this.trigger("data",this.buffer.substring(0,t)),this.buffer=this.buffer.substring(t+1)}}]),t}(h["default"]);i["default"]=c;t.exports=i["default"]},{"../stream":13}],8:[function(n,t,i){"use strict";function u(n){return n&&n.__esModule?n:{"default":n}}function f(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function e(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}Object.defineProperty(i,"__esModule",{value:!0});var o=function(){function n(n,t){for(var i,r=0;r<t.length;r++)i=t[r],i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}return function(t,i,r){return i&&n(t.prototype,i),r&&n(t,r),t}}(),s=function(n,t,i){for(var r,o,e,u=!0;u;){var f=n,s=t,h=i;if(u=!1,null===f&&(f=Function.prototype),r=Object.getOwnPropertyDescriptor(f,s),void 0!==r)return"value"in r?r.value:(o=r.get,void 0===o)?void 0:o.call(h);if(e=Object.getPrototypeOf(f),null===e)return;n=e;t=s;i=h;u=!0;r=e=void 0}},h=n("../stream"),c=u(h),l=function(){return new RegExp('(?:^|,)((?:[^=]*)=(?:"[^"]*"|[^,]*))')},r=function(n){for(var i=n.split(l()),r=i.length,u={},t=void 0;r--;)""!==i[r]&&(t=/([^=]*)=(.*)/.exec(i[r]).slice(1),t[0]=t[0].replace(/^\s+|\s+$/g,""),t[1]=t[1].replace(/^\s+|\s+$/g,""),t[1]=t[1].replace(/^['"](.*)['"]$/g,"$1"),u[t[0]]=t[1]);return u},a=function(n){function t(){f(this,t);s(Object.getPrototypeOf(t.prototype),"constructor",this).call(this)}return e(t,n),o(t,[{key:"push",value:function(n){var i=void 0,t=void 0,u,f;if(n=n.replace(/^[\u0000\s]+|[\u0000\s]+$/g,""),0!==n.length)return"#"!==n[0]?void this.trigger("data",{type:"uri",uri:n}):0!==n.indexOf("#EXT")?void this.trigger("data",{type:"comment",text:n.slice(1)}):(n=n.replace("\r",""),i=/^#EXTM3U/.exec(n))?void this.trigger("data",{type:"tag",tagType:"m3u"}):(i=/^#EXTINF:?([0-9\.]*)?,?(.*)?$/.exec(n))?(t={type:"tag",tagType:"inf"},i[1]&&(t.duration=parseFloat(i[1])),i[2]&&(t.title=i[2]),void this.trigger("data",t)):(i=/^#EXT-X-TARGETDURATION:?([0-9.]*)?/.exec(n))?(t={type:"tag",tagType:"targetduration"},i[1]&&(t.duration=parseInt(i[1],10)),void this.trigger("data",t)):(i=/^#ZEN-TOTAL-DURATION:?([0-9.]*)?/.exec(n))?(t={type:"tag",tagType:"totalduration"},i[1]&&(t.duration=parseInt(i[1],10)),void this.trigger("data",t)):(i=/^#EXT-X-VERSION:?([0-9.]*)?/.exec(n))?(t={type:"tag",tagType:"version"},i[1]&&(t.version=parseInt(i[1],10)),void this.trigger("data",t)):(i=/^#EXT-X-MEDIA-SEQUENCE:?(\-?[0-9.]*)?/.exec(n))?(t={type:"tag",tagType:"media-sequence"},i[1]&&(t.number=parseInt(i[1],10)),void this.trigger("data",t)):(i=/^#EXT-X-DISCONTINUITY-SEQUENCE:?(\-?[0-9.]*)?/.exec(n))?(t={type:"tag",tagType:"discontinuity-sequence"},i[1]&&(t.number=parseInt(i[1],10)),void this.trigger("data",t)):(i=/^#EXT-X-PLAYLIST-TYPE:?(.*)?$/.exec(n))?(t={type:"tag",tagType:"playlist-type"},i[1]&&(t.playlistType=i[1]),void this.trigger("data",t)):(i=/^#EXT-X-BYTERANGE:?([0-9.]*)?@?([0-9.]*)?/.exec(n))?(t={type:"tag",tagType:"byterange"},i[1]&&(t.length=parseInt(i[1],10)),i[2]&&(t.offset=parseInt(i[2],10)),void this.trigger("data",t)):(i=/^#EXT-X-ALLOW-CACHE:?(YES|NO)?/.exec(n))?(t={type:"tag",tagType:"allow-cache"},i[1]&&(t.allowed=!/NO/.test(i[1])),void this.trigger("data",t)):(i=/^#EXT-X-STREAM-INF:?(.*)$/.exec(n))?((t={type:"tag",tagType:"stream-inf"},i[1])&&((t.attributes=r(i[1]),t.attributes.RESOLUTION)&&(u=t.attributes.RESOLUTION.split("x"),f={},u[0]&&(f.width=parseInt(u[0],10)),u[1]&&(f.height=parseInt(u[1],10)),t.attributes.RESOLUTION=f),t.attributes.BANDWIDTH&&(t.attributes.BANDWIDTH=parseInt(t.attributes.BANDWIDTH,10)),t.attributes["PROGRAM-ID"]&&(t.attributes["PROGRAM-ID"]=parseInt(t.attributes["PROGRAM-ID"],10))),void this.trigger("data",t)):(i=/^#EXT-X-ENDLIST/.exec(n))?void this.trigger("data",{type:"tag",tagType:"endlist"}):(i=/^#EXT-X-DISCONTINUITY/.exec(n))?void this.trigger("data",{type:"tag",tagType:"discontinuity"}):(i=/^#EXT-X-KEY:?(.*)$/.exec(n))?(t={type:"tag",tagType:"key"},i[1]&&(t.attributes=r(i[1]),t.attributes.IV&&("0x"===t.attributes.IV.substring(0,2)&&(t.attributes.IV=t.attributes.IV.substring(2)),t.attributes.IV=t.attributes.IV.match(/.{8}/g),t.attributes.IV[0]=parseInt(t.attributes.IV[0],16),t.attributes.IV[1]=parseInt(t.attributes.IV[1],16),t.attributes.IV[2]=parseInt(t.attributes.IV[2],16),t.attributes.IV[3]=parseInt(t.attributes.IV[3],16),t.attributes.IV=new Uint32Array(t.attributes.IV))),void this.trigger("data",t)):void this.trigger("data",{type:"tag",data:n.slice(4,n.length)})}}]),t}(c["default"]);i["default"]=a;t.exports=i["default"]},{"../stream":13}],9:[function(n,t,i){(function(r){"use strict";function u(n){return n&&n.__esModule?n:{"default":n}}function f(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function e(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}Object.defineProperty(i,"__esModule",{value:!0});var o=function(){function n(n,t){for(var i,r=0;r<t.length;r++)i=t[r],i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}return function(t,i,r){return i&&n(t.prototype,i),r&&n(t,r),t}}(),s=function(n,t,i){for(var r,o,e,u=!0;u;){var f=n,s=t,h=i;if(u=!1,null===f&&(f=Function.prototype),r=Object.getOwnPropertyDescriptor(f,s),void 0!==r)return"value"in r?r.value:(o=r.get,void 0===o)?void 0:o.call(h);if(e=Object.getPrototypeOf(f),null===e)return;n=e;t=s;i=h;u=!0;r=e=void 0}},h=n("../stream"),c=u(h),l=n("./line-stream"),a=u(l),v=n("./parse-stream"),y=u(v),p="undefined"!=typeof window?window.videojs:"undefined"!=typeof r?r.videojs:null,w=function(n){function t(){f(this,t);s(Object.getPrototypeOf(t.prototype),"constructor",this).call(this);this.lineStream=new a["default"];this.parseStream=new y["default"];this.lineStream.pipe(this.parseStream);var u=this,r=[],n={},i=void 0,e=function(){};this.manifest={allowCache:!0,discontinuityStarts:[]};this.parseStream.on("data",function(t){({tag:function(){({"allow-cache":function(){this.manifest.allowCache=t.allowed;"allowed"in t||(this.trigger("info",{message:"defaulting allowCache to YES"}),this.manifest.allowCache=!0)},byterange:function(){var i={};"length"in t&&(n.byterange=i,i.length=t.length,"offset"in t||(this.trigger("info",{message:"defaulting offset to zero"}),t.offset=0));"offset"in t&&(n.byterange=i,i.offset=t.offset)},endlist:function(){this.manifest.endList=!0},inf:function(){"mediaSequence"in this.manifest||(this.manifest.mediaSequence=0,this.trigger("info",{message:"defaulting media sequence to zero"}));"discontinuitySequence"in this.manifest||(this.manifest.discontinuitySequence=0,this.trigger("info",{message:"defaulting discontinuity sequence to zero"}));t.duration>=0&&(n.duration=t.duration);this.manifest.segments=r},key:function(){return t.attributes?"NONE"===t.attributes.METHOD?void(i=null):t.attributes.URI?(t.attributes.METHOD||this.trigger("warn",{message:"defaulting key method to AES-128"}),i={method:t.attributes.METHOD||"AES-128",uri:t.attributes.URI},void("undefined"!=typeof t.attributes.IV&&(i.iv=t.attributes.IV))):void this.trigger("warn",{message:"ignoring key declaration without URI"}):void this.trigger("warn",{message:"ignoring key declaration without attribute list"})},"media-sequence":function(){return isFinite(t.number)?void(this.manifest.mediaSequence=t.number):void this.trigger("warn",{message:"ignoring invalid media sequence: "+t.number})},"discontinuity-sequence":function(){return isFinite(t.number)?void(this.manifest.discontinuitySequence=t.number):void this.trigger("warn",{message:"ignoring invalid discontinuity sequence: "+t.number})},"playlist-type":function(){return/VOD|EVENT/.test(t.playlistType)?void(this.manifest.playlistType=t.playlistType):void this.trigger("warn",{message:"ignoring unknown playlist type: "+t.playlist})},"stream-inf":function(){return this.manifest.playlists=r,t.attributes?(n.attributes||(n.attributes={}),void(n.attributes=p.mergeOptions(n.attributes,t.attributes))):void this.trigger("warn",{message:"ignoring empty stream-inf attributes"})},discontinuity:function(){n.discontinuity=!0;this.manifest.discontinuityStarts.push(r.length)},targetduration:function(){return!isFinite(t.duration)||t.duration<0?void this.trigger("warn",{message:"ignoring invalid target duration: "+t.duration}):void(this.manifest.targetDuration=t.duration)},totalduration:function(){return!isFinite(t.duration)||t.duration<0?void this.trigger("warn",{message:"ignoring invalid total duration: "+t.duration}):void(this.manifest.totalDuration=t.duration)}}[t.tagType]||e).call(u)},uri:function(){n.uri=t.uri;r.push(n);!this.manifest.targetDuration||"duration"in n||(this.trigger("warn",{message:"defaulting segment duration to the target duration"}),n.duration=this.manifest.targetDuration);i&&(n.key=i);n={}},comment:function(){}})[t.type].call(u)})}return e(t,n),o(t,[{key:"push",value:function(n){this.lineStream.push(n)}},{key:"end",value:function(){this.lineStream.push("\n")}}]),t}(c["default"]);i["default"]=w;t.exports=i["default"]}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"../stream":13,"./line-stream":7,"./parse-stream":8}],10:[function(n,t,i){(function(r){"use strict";function u(n){return n&&n.__esModule?n:{"default":n}}function h(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function c(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}Object.defineProperty(i,"__esModule",{value:!0});var l=function(){function n(n,t){for(var i,r=0;r<t.length;r++)i=t[r],i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}return function(t,i,r){return i&&n(t.prototype,i),r&&n(t,r),t}}(),a=function(n,t,i){for(var r,o,e,u=!0;u;){var f=n,s=t,h=i;if(u=!1,null===f&&(f=Function.prototype),r=Object.getOwnPropertyDescriptor(f,s),void 0!==r)return"value"in r?r.value:(o=r.get,void 0===o)?void 0:o.call(h);if(e=Object.getPrototypeOf(f),null===e)return;n=e;t=s;i=h;u=!0;r=e=void 0}},v=n("./resolve-url"),f=u(v),y=n("./xhr"),e=u(y),o="undefined"!=typeof window?window.videojs:"undefined"!=typeof r?r.videojs:null,p=n("./stream"),w=u(p),b=n("./m3u8"),s=u(b),k=function(n,t){for(var f=!1,r=o.mergeOptions(n,{}),u=n.playlists.length,i=void 0;u--;)if(i=r.playlists[u],i.uri===t.uri){if(i.segments&&t.segments&&i.segments.length===t.segments.length&&i.mediaSequence===t.mediaSequence)continue;r.playlists[u]=o.mergeOptions(i,t);r.playlists[t.uri]=r.playlists[u];i.segments&&(r.playlists[u].segments=d(i.segments,t.segments,t.mediaSequence-i.mediaSequence));f=!0}return f?r:null},d=function(n,t,i){var u=t.slice(),f=void 0,r=void 0;for(i=i||0,f=Math.min(n.length,t.length+i),r=i;f>r;r++)u[r-i]=o.mergeOptions(n[r],u[r-i]);return u},g=function(n){function t(n,i){h(this,t);a(Object.getPrototypeOf(t.prototype),"constructor",this).call(this);var r=this,v=void 0,c=void 0,u=void 0,l=void 0,o=void 0;if(this.trackExpiredTime_=!1,!n)throw new Error("A non-empty playlist URL is required");l=function(n,t,i){r.setBandwidth(u||n);u=null;i&&(r.state=i);r.error={playlist:r.master.playlists[t],status:n.status,message:"HLS playlist request error at URL: "+t,responseText:n.responseText,code:n.status>=500?4:2};r.trigger("error")};o=function(n,t){var i=void 0,f=void 0,e=void 0;r.setBandwidth(u||n);u=null;r.state="HAVE_METADATA";i=new s["default"].Parser;i.push(n.responseText);i.end();i.manifest.uri=t;e=k(r.master,i.manifest);f=1e3*(i.manifest.targetDuration||10);e?(r.master=e,r.updateMediaPlaylist_(i.manifest)):f/=2;r.media().endList||(window.clearTimeout(c),c=window.setTimeout(function(){r.trigger("mediaupdatetimeout")},f));r.trigger("loadedplaylist")};r.state="HAVE_NOTHING";this.expired_=0;v=this.dispose;r.dispose=function(){u&&(u.onreadystatechange=null,u.abort(),u=null);window.clearTimeout(c);v.call(this)};r.media=function(n){var s=r.state,t=void 0;if(!n)return r.media_;if("HAVE_NOTHING"===r.state)throw new Error("Cannot switch media playlist from "+r.state);if("string"==typeof n){if(!r.master.playlists[n])throw new Error("Unknown playlist URI: "+n);n=r.master.playlists[n]}if(t=!r.media_||n.uri!==r.media_.uri,r.master.playlists[n.uri].endList)return u&&(u.onreadystatechange=null,u.abort(),u=null),r.state="HAVE_METADATA",r.media_=n,void(t&&r.trigger("mediachange"));if(t){if(r.state="SWITCHING_MEDIA",u){if(f["default"](r.master.uri,n.uri)===u.url)return;u.onreadystatechange=null;u.abort();u=null}u=e["default"]({uri:f["default"](r.master.uri,n.uri),withCredentials:i},function(t,i){return t?l(i,n.uri,s):(o(i,n.uri),void("HAVE_MASTER"===s?r.trigger("loadedmetadata"):r.trigger("mediachange")))})}};r.setBandwidth=function(n){r.bandwidth=n.bandwidth};r.on("firstplay",function(){this.trackExpiredTime_=!0});r.on("mediaupdatetimeout",function(){"HAVE_METADATA"===r.state&&(r.state="HAVE_CURRENT_METADATA",u=e["default"]({uri:f["default"](r.master.uri,r.media().uri),withCredentials:i},function(n,t){return n?l(t,r.media().uri):void o(t,r.media().uri)}))});u=e["default"]({uri:n,withCredentials:i},function(t,i){var f=void 0,e=void 0;if(u=null,t)return r.error={status:i.status,message:"HLS playlist request error at URL: "+n,responseText:i.responseText,code:2},r.trigger("error");if(f=new s["default"].Parser,f.push(i.responseText),f.end(),r.state="HAVE_MASTER",f.manifest.uri=n,f.manifest.playlists){for(r.master=f.manifest,e=r.master.playlists.length;e--;)r.master.playlists[r.master.playlists[e].uri]=r.master.playlists[e];return r.trigger("loadedplaylist"),void(u||r.media(f.manifest.playlists[0]))}return r.master={uri:window.location.href,playlists:[{uri:n}]},r.master.playlists[n]=r.master.playlists[0],o(i,n),r.trigger("loadedmetadata")})}return c(t,n),l(t,[{key:"updateMediaPlaylist_",value:function(n){var i=void 0,r=void 0,t=void 0;if(i=this.media_,this.media_=this.master.playlists[n.uri],i&&this.trackExpiredTime_&&n.uri===i.uri){if(n.segments.length){if(void 0!==n.segments[0].start)return void(this.expired_=n.segments[0].start);if(void 0!==n.segments[0].end)return void(this.expired_=n.segments[0].end-n.segments[0].duration)}for(r=n.mediaSequence-i.mediaSequence-1;r>=0;r--)if(t=i.segments[r]){if(void 0!==t.end)return void(this.expired_=t.end);if(void 0!==t.start)return void(this.expired_=t.start+t.duration);this.expired_+=t.duration}else this.expired_+=i.targetDuration||10}}},{key:"getMediaIndexForTime_",value:function(n){var t=void 0,i=void 0,h=n,f=this.media_.segments.length,s=f-1,u=void 0,r=void 0,e=void 0,o=void 0;if(!this.media_||0>n)return 0;for(t=0;f>t;t++)if(i=this.media_.segments[t],i.end){if(i.end>n){o=i.end;r=t;break}e=i.end;u=t+1}if(void 0!==u){for(n-=e,t=u;(r||f)>t;t++)if(i=this.media_.segments[t],n-=i.duration,0>n)return t;return t>=r?u+Math.floor((h-e)/(o-e)*(r-u)):s}if(void 0!==r){for(n=o-n,t=r;t>=0;t--)if(i=this.media_.segments[t],n-=i.duration,0>n)return t;return 0===n?0:-1}if(n-=this.expired_,0>n)return-1;for(t=0;f>t;t++)if(i=this.media_.segments[t],n-=i.duration,0>n)return t;return s}}]),t}(w["default"]);i["default"]=g;t.exports=i["default"]}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./m3u8":6,"./resolve-url":12,"./stream":13,"./xhr":14}],11:[function(n,t,i){(function(n){"use strict";var e;Object.defineProperty(i,"__esModule",{value:!0});var r="undefined"!=typeof window?window.videojs:"undefined"!=typeof n?n.videojs:null,t={UNSAFE_LIVE_SEGMENTS:3},o=function(n,t){var r=0,u=t-n.mediaSequence,i=n.segments[u];if(i){if("undefined"!=typeof i.start)return{result:i.start,precise:!0};if("undefined"!=typeof i.end)return{result:i.end-i.duration,precise:!0}}for(;u--;){if(i=n.segments[u],"undefined"!=typeof i.end)return{result:r+i.end,precise:!0};if(r+=i.duration,"undefined"!=typeof i.start)return{result:r+i.start,precise:!0}}return{result:r,precise:!1}},s=function(n,t){for(var r=0,i=void 0,u=t-n.mediaSequence;u<n.segments.length;u++){if(i=n.segments[u],"undefined"!=typeof i.start)return{result:i.start-r,precise:!0};if(r+=i.duration,"undefined"!=typeof i.end)return{result:i.end-r,precise:!0}}return{result:-1,precise:!1}},u=function(n,t){var i=void 0,r=void 0;return"undefined"==typeof t&&(t=n.mediaSequence+n.segments.length),t<n.mediaSequence?0:(i=o(n,t),i.precise?i.result:(r=s(n,t),r.precise?r.result:i.result))},f=function(n,t,i){if(!n)return 0;if("undefined"==typeof i&&(i=!0),"undefined"==typeof t){if(n.totalDuration)return n.totalDuration;if(!n.endList)return window.Infinity}return u(n,t,i)};i.duration=f;e=function(n){var i=void 0,e=void 0;return n.segments?n.endList?r.createTimeRange(0,f(n)):(i=u(n,n.mediaSequence),e=u(n,n.mediaSequence+Math.max(0,n.segments.length-t.UNSAFE_LIVE_SEGMENTS)),r.createTimeRange(i,e)):r.createTimeRange()};i.seekable=e;t.duration=f;t.seekable=e;i["default"]=t}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],12:[function(n,t,i){"use strict";function u(n){return n&&n.__esModule?n:{"default":n}}Object.defineProperty(i,"__esModule",{value:!0});var f=n("global/document"),r=u(f),e=function(n,t){var i=r["default"].querySelector("base"),f=r["default"].querySelector("head"),e=r["default"].createElement("a"),u=i,o=void 0,s=void 0;return i?o=i.href:u=f.appendChild(r["default"].createElement("base")),u.href=n,e.href=t,s=e.href,i?i.href=o:f.removeChild(u),s};i["default"]=e;t.exports=i["default"]},{"global/document":16}],13:[function(n,t,i){"use strict";function r(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}Object.defineProperty(i,"__esModule",{value:!0});var u=function(){function n(n,t){for(var i,r=0;r<t.length;r++)i=t[r],i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}return function(t,i,r){return i&&n(t.prototype,i),r&&n(t,r),t}}(),f=function(){function n(){r(this,n);this.listeners={}}return u(n,[{key:"on",value:function(n,t){this.listeners[n]||(this.listeners[n]=[]);this.listeners[n].push(t)}},{key:"off",value:function(n,t){var i=void 0;return this.listeners[n]?(i=this.listeners[n].indexOf(t),this.listeners[n].splice(i,1),i>-1):!1}},{key:"trigger",value:function(n){var i=void 0,t=void 0,r=void 0,u=void 0;if(i=this.listeners[n])if(2===arguments.length)for(r=i.length,t=0;r>t;++t)i[t].call(this,arguments[1]);else for(u=Array.prototype.slice.call(arguments,1),r=i.length,t=0;r>t;++t)i[t].apply(this,u)}},{key:"dispose",value:function(){this.listeners={}}},{key:"pipe",value:function(n){this.on("data",function(t){n.push(t)})}}]),n}();i["default"]=f;t.exports=i["default"]},{}],14:[function(n,t,i){(function(n){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var r="undefined"!=typeof window?window.videojs:"undefined"!=typeof n?n.videojs:null,u=function(n,t){n=r.mergeOptions({timeout:45e3},n);var i=r.xhr(n,function(n,r){!n&&i.response&&(i.responseTime=(new Date).getTime(),i.roundTripTime=i.responseTime-i.requestTime,i.bytesReceived=i.response.byteLength||i.response.length,i.bandwidth||(i.bandwidth=Math.floor(i.bytesReceived/i.roundTripTime*8e3)));i.timedout=n||i.timedout?i.timedout||"ETIMEDOUT"===n.code:!1;n||200===r.statusCode||206===r.statusCode||0===r.statusCode||(n=new Error("XHR Failed with a response of: "+(i&&(i.response||i.responseText))));t(n,i)});return i.requestTime=(new Date).getTime(),i};i["default"]=u;t.exports=i["default"]}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],15:[function(){},{}],16:[function(n,t){(function(i){var u="undefined"!=typeof i?i:"undefined"!=typeof window?window:{},f=n("min-document"),r;"undefined"!=typeof document?t.exports=document:(r=u["__GLOBAL_DOCUMENT_CACHE@4"],r||(r=u["__GLOBAL_DOCUMENT_CACHE@4"]=f),t.exports=r)}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"min-document":15}],17:[function(n,t){"use strict";var i;t.exports=function(n){var r=i[n.byteLength%16||0],t=new Uint8Array(n.byteLength+r.length);return t.set(n),t.set(r,n.byteLength),t};i=[[16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16],[15,15,15,15,15,15,15,15,15,15,15,15,15,15,15],[14,14,14,14,14,14,14,14,14,14,14,14,14,14],[13,13,13,13,13,13,13,13,13,13,13,13,13],[12,12,12,12,12,12,12,12,12,12,12,12],[11,11,11,11,11,11,11,11,11,11,11],[10,10,10,10,10,10,10,10,10,10],[9,9,9,9,9,9,9,9,9],[8,8,8,8,8,8,8,8],[7,7,7,7,7,7,7],[6,6,6,6,6,6],[5,5,5,5,5],[4,4,4,4],[3,3,3],[2,2],[1]]},{}],18:[function(n,t,i){"use strict";i.pad=n("./pad.js");i.unpad=n("./unpad.js")},{"./pad.js":17,"./unpad.js":19}],19:[function(n,t){"use strict";t.exports=function(n){return n.subarray(0,n.byteLength-n[n.byteLength-1])}},{}],20:[function(n,t,i){(function(n){"use strict";function u(n){return n&&n.__esModule?n:{"default":n}}Object.defineProperty(i,"__esModule",{value:!0});var f="undefined"!=typeof window?window.videojs:"undefined"!=typeof n?n.videojs:null,r=u(f),e=function(n){Object.defineProperties(n.frame,{id:{get:function(){return r["default"].log.warn("cue.frame.id is deprecated. Use cue.value.key instead."),n.value.key}},value:{get:function(){return r["default"].log.warn("cue.frame.value is deprecated. Use cue.value.data instead."),n.value.data}},privateData:{get:function(){return r["default"].log.warn("cue.frame.privateData is deprecated. Use cue.value.data instead."),n.value.data}}})},o=function(n,t,i){var r=window.WebKitDataCue||window.VTTCue;t&&t.forEach(function(n){this.inbandTextTrack_.addCue(new r(n.startTime+this.timestampOffset,n.endTime+this.timestampOffset,n.text))},n);i&&i.forEach(function(n){var t=n.cueTime+this.timestampOffset;n.frames.forEach(function(n){var i=new r(t,t,n.value||n.url||n.data||"");i.frame=n;i.value=n;e(i);this.metadataTrack_.addCue(i)},this)},n)};i["default"]=o;t.exports=i["default"]}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],21:[function(n,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var r=function(n,t,i){i.captions&&i.captions.length&&!n.inbandTextTrack_&&(n.inbandTextTrack_=t.player_.addTextTrack("captions","cc1"));i.metadata&&i.metadata.length&&!n.metadataTrack_&&(n.metadataTrack_=t.player_.addTextTrack("metadata","Timed Metadata"),n.metadataTrack_.inBandMetadataTrackDispatchType=i.metadata.dispatchType)};i["default"]=r;t.exports=i["default"]},{}],22:[function(n,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var r={TIME_BETWEEN_TICKS:Math.floor(1e3/480),TIME_PER_TICK:Math.floor(1e3/240),BYTES_PER_CHUNK:1024,MIN_CHUNK:1024,MAX_CHUNK:1048576};i["default"]=r;t.exports=i["default"]},{}],23:[function(n,t,i){(function(r){"use strict";function f(n){return n&&n.__esModule?n:{"default":n}}function h(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function c(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}var e;Object.defineProperty(i,"__esModule",{value:!0});var l=function(){function n(n,t){for(var i,r=0;r<t.length;r++)i=t[r],i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}return function(t,i,r){return i&&n(t.prototype,i),r&&n(t,r),t}}(),a=function(n,t,i){for(var r,o,e,u=!0;u;){var f=n,s=t,h=i;if(u=!1,null===f&&(f=Function.prototype),r=Object.getOwnPropertyDescriptor(f,s),void 0!==r)return"value"in r?r.value:(o=r.get,void 0===o)?void 0:o.call(h);if(e=Object.getPrototypeOf(f),null===e)return;n=e;t=s;i=h;u=!0;r=e=void 0}},v="undefined"!=typeof window?window.videojs:"undefined"!=typeof r?r.videojs:null,o=f(v),y=n("./flash-source-buffer"),p=f(y),w=n("./flash-constants"),s=f(w),u=function(n){function t(){var n=this;h(this,t);a(Object.getPrototypeOf(t.prototype),"constructor",this).call(this);this.sourceBuffers=[];this.readyState="closed";this.on(["sourceopen","webkitsourceopen"],function(t){n.swfObj=document.getElementById(t.swfId);n.player_=o["default"](n.swfObj.parentNode);n.tech_=n.swfObj.tech;n.readyState="open";n.tech_.on("seeking",function(){for(var t=n.sourceBuffers.length;t--;)n.sourceBuffers[t].abort()});n.swfObj&&n.swfObj.vjs_load()})}return c(t,n),l(t,[{key:"addSeekableRange_",value:function(){}},{key:"addSourceBuffer",value:function(n){var t=void 0;if(0!==n.indexOf("video/mp2t"))throw new Error("NotSupportedError (Video.js)");return t=new p["default"](this),this.sourceBuffers.push(t),t}},{key:"endOfStream",value:function(n){"network"===n?this.tech_.error(2):"decode"===n&&this.tech_.error(3);"ended"!==this.readyState&&(this.readyState="ended",this.swfObj.vjs_endOfStream())}}]),t}(o["default"].EventTarget);i["default"]=u;try{Object.defineProperty(u.prototype,"duration",{get:function(){return this.swfObj?this.swfObj.vjs_getProperty("duration"):NaN},set:function(n){var t=void 0,i=this.swfObj.vjs_getProperty("duration");if(this.swfObj.vjs_setProperty("duration",n),i>n)for(t=0;t<this.sourceBuffers.length;t++)this.sourceBuffers[t].remove(n,i);return n}})}catch(b){u.prototype.duration=NaN}for(e in s["default"])u[e]=s["default"][e];t.exports=i["default"]}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./flash-constants":22,"./flash-source-buffer":24}],24:[function(n,t,i){(function(r){"use strict";function u(n){return n&&n.__esModule?n:{"default":n}}function c(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function l(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}Object.defineProperty(i,"__esModule",{value:!0});var a=function(){function n(n,t){for(var i,r=0;r<t.length;r++)i=t[r],i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}return function(t,i,r){return i&&n(t.prototype,i),r&&n(t,r),t}}(),v=function(n,t,i){for(var r,o,e,u=!0;u;){var f=n,s=t,h=i;if(u=!1,null===f&&(f=Function.prototype),r=Object.getOwnPropertyDescriptor(f,s),void 0!==r)return"value"in r?r.value:(o=r.get,void 0===o)?void 0:o.call(h);if(e=Object.getPrototypeOf(f),null===e)return;n=e;t=s;i=h;u=!0;r=e=void 0}},y="undefined"!=typeof window?window.videojs:"undefined"!=typeof r?r.videojs:null,s=u(y),p=n("mux.js"),h=u(p),w=n("./remove-cues-from-track"),e=u(w),b=n("./create-text-tracks-if-necessary"),k=u(b),d=n("./add-text-track-data"),g=u(d),nt=n("./flash-constants"),f=u(nt),o=function(n){window.setTimeout(n,f["default"].TIME_BETWEEN_TICKS)},tt=function(n){function t(n){var r=this,i;c(this,t);v(Object.getPrototypeOf(t.prototype),"constructor",this).call(this);i=void 0;this.chunkSize_=f["default"].BYTES_PER_CHUNK;this.buffer_=[];this.bufferSize_=0;this.basePtsOffset_=NaN;this.mediaSource=n;this.updating=!1;this.timestampOffset_=0;this.segmentParser_=new h["default"].flv.Transmuxer;this.segmentParser_.on("data",this.receiveBuffer_.bind(this));i=window.btoa(String.fromCharCode.apply(null,Array.prototype.slice.call(this.segmentParser_.getFlvHeader())));this.mediaSource.swfObj.vjs_appendBuffer(i);Object.defineProperty(this,"timestampOffset",{get:function(){return this.timestampOffset_},set:function(n){"number"==typeof n&&n>=0&&(this.timestampOffset_=n,this.segmentParser_=new h["default"].flv.Transmuxer,this.segmentParser_.on("data",this.receiveBuffer_.bind(this)),this.mediaSource.swfObj.vjs_discontinuity(),this.basePtsOffset_=NaN)}});Object.defineProperty(this,"buffered",{get:function(){return s["default"].createTimeRanges(this.mediaSource.swfObj.vjs_getProperty("buffered"))}});this.mediaSource.player_.on("seeked",function(){e["default"](0,1/0,r.metadataTrack_);e["default"](0,1/0,r.inbandTextTrack_)})}return l(t,n),a(t,[{key:"appendBuffer",value:function(n){var r=this,t=void 0,u=524288,i=0,f;if(this.updating)throw t=new Error("SourceBuffer.append() cannot be called while an update is in progress"),t.name="InvalidStateError",t.code=11,t;this.updating=!0;this.mediaSource.readyState="open";this.trigger({type:"update"});f=function e(){r.segmentParser_.push(n.subarray(i,i+u));i+=u;o(i<n.byteLength?e:r.segmentParser_.flush.bind(r.segmentParser_))};f()}},{key:"abort",value:function(){this.buffer_=[];this.bufferSize_=0;this.mediaSource.swfObj.vjs_abort();this.updating&&(this.updating=!1,this.trigger({type:"updateend"}))}},{key:"remove",value:function(n,t){e["default"](n,t,this.metadataTrack_);e["default"](n,t,this.inbandTextTrack_);this.trigger({type:"update"});this.trigger({type:"updateend"})}},{key:"receiveBuffer_",value:function(n){var t=this;k["default"](this,this.mediaSource,n);g["default"](this,n.captions,n.metadata);o(function(){var i=t.convertTagsToData_(n);0===t.buffer_.length&&o(t.processBuffer_.bind(t));i&&(t.buffer_.push(i),t.bufferSize_+=i.byteLength)})}},{key:"processBuffer_",value:function(){var t=void 0,i=void 0,e=void 0,r=void 0,s=void 0,n=0,h=0,c=+new Date,u=void 0;if(!this.buffer_.length)return void(this.updating!==!1&&(this.updating=!1,this.trigger({type:"updateend"})));do{for(h++,t=this.buffer_[0].subarray(n,n+this.chunkSize_),t.byteLength<this.chunkSize_||this.buffer_[0].byteLength===n+this.chunkSize_?(n=0,this.buffer_.shift()):n+=this.chunkSize_,this.bufferSize_-=t.byteLength,r="",e=t.byteLength,i=0;e>i;i++)r+=String.fromCharCode(t[i]);s=window.btoa(r);this.mediaSource.swfObj.CallFunction('<invoke name="vjs_appendBuffer"returntype="javascript"><arguments><string>'+s+"<\/string><\/arguments><\/invoke>");u=new Date-c}while(this.buffer_.length&&u<f["default"].TIME_PER_TICK);this.buffer_.length&&n&&(this.buffer_[0]=this.buffer_[0].subarray(n));u>=f["default"].TIME_PER_TICK&&(this.chunkSize_=Math.floor(this.chunkSize_*(h/4)));this.chunkSize_=Math.max(f["default"].MIN_CHUNK,Math.min(this.chunkSize_,f["default"].MAX_CHUNK));0!==this.bufferSize_?o(this.processBuffer_.bind(this)):(this.updating=!1,this.trigger({type:"updateend"}))}},{key:"convertTagsToData_",value:function(n){var s=0,f=this.mediaSource.tech_,r=0,t=void 0,e=void 0,o=void 0,i=[],u=this.getOrderedTags_(n);for(isNaN(this.basePtsOffset_)&&u.length&&(this.basePtsOffset_=u[0].pts),f.buffered().length&&(r=f.buffered().end(0)-this.timestampOffset),r=Math.max(r,f.currentTime()-this.timestampOffset),r*=1e3,r+=this.basePtsOffset_,t=0;t<u.length;t++)u[t].pts>=r&&i.push(u[t]);if(0!==i.length){for(t=0;t<i.length;t++)s+=i[t].bytes.byteLength;for(o=new Uint8Array(s),t=0,e=0;t<i.length;t++)o.set(i[t].bytes,e),e+=i[t].bytes.byteLength;return o}}},{key:"getOrderedTags_",value:function(n){for(var i=n.tags.videoTags,t=n.tags.audioTags,r=void 0,u=[];i.length||t.length;)r=i.length?t.length&&t[0].dts<i[0].dts?t.shift():i.shift():t.shift(),u.push(r.finalize());return u}}]),t}(s["default"].EventTarget);i["default"]=tt;t.exports=i["default"]}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./add-text-track-data":20,"./create-text-tracks-if-necessary":21,"./flash-constants":22,"./remove-cues-from-track":26,"mux.js":37}],25:[function(n,t,i){(function(r){"use strict";function f(n){return n&&n.__esModule?n:{"default":n}}function e(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function o(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}Object.defineProperty(i,"__esModule",{value:!0});var s=function(){function n(n,t){for(var i,r=0;r<t.length;r++)i=t[r],i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}return function(t,i,r){return i&&n(t.prototype,i),r&&n(t,r),t}}(),h=function(n,t,i){for(var r,o,e,u=!0;u;){var f=n,s=t,h=i;if(u=!1,null===f&&(f=Function.prototype),r=Object.getOwnPropertyDescriptor(f,s),void 0!==r)return"value"in r?r.value:(o=r.get,void 0===o)?void 0:o.call(h);if(e=Object.getPrototypeOf(f),null===e)return;n=e;t=s;i=h;u=!0;r=e=void 0}},c="undefined"!=typeof window?window.videojs:"undefined"!=typeof r?r.videojs:null,u=f(c),l=n("./virtual-source-buffer"),a=f(l),v=function(n){return n.replace(/avc1\.(\d+)\.(\d+)/i,function(n,t,i){var r=("00"+Number(t).toString(16)).slice(-2),u=("00"+Number(i).toString(16)).slice(-2);return"avc1."+r+"00"+u})},y=function(n){function t(){e(this,t);h(Object.getPrototypeOf(t.prototype),"constructor",this).call(this,u["default"].EventTarget);var n=this,i=void 0;this.mediaSource_=new window.MediaSource;for(i in this.mediaSource_)i in t.prototype||"function"!=typeof this.mediaSource_[i]||(this[i]=this.mediaSource_[i].bind(this.mediaSource_));this.duration_=NaN;Object.defineProperty(this,"duration",{get:function(){return n.duration_===1/0?n.duration_:n.mediaSource_.duration},set:function(t){return n.duration_=t,t!==1/0?void(n.mediaSource_.duration=t):void 0}});Object.defineProperty(this,"seekable",{get:function(){return this.duration_===1/0?u["default"].createTimeRanges([[0,n.mediaSource_.duration]]):n.mediaSource_.seekable}});Object.defineProperty(this,"readyState",{get:function(){return n.mediaSource_.readyState}});this.sourceBuffers=[];["sourceopen","sourceclose","sourceended"].forEach(function(n){this.mediaSource_.addEventListener(n,this.trigger.bind(this))},this);this.on("sourceopen",function(){var t=document.querySelector('[src="'+n.url_+'"]');t&&(n.player_=u["default"](t.parentNode))});this.on("sourceclose",function(){this.sourceBuffers.forEach(function(n){n.transmuxer_&&n.transmuxer_.terminate()});this.sourceBuffers.length=0})}return o(t,n),s(t,[{key:"addSeekableRange_",value:function(n,t){var i=void 0;if(this.duration!==1/0)throw i=new Error("MediaSource.addSeekableRange() can only be invoked when the duration is Infinity"),i.name="InvalidStateError",i.code=11,i;(t>this.mediaSource_.duration||isNaN(this.mediaSource_.duration))&&(this.mediaSource_.duration=t)}},{key:"addSourceBuffer",value:function(n){var t=void 0,i=void 0,r=void 0,u=void 0;return/^video\/mp2t/i.test(n)?(i=n.split(";").slice(1).join(";"),i=v(i),r=(i.match(/avc1\.[\da-f]+/i)||[])[0],u=(i.match(/mp4a\.\d+.\d+/i)||[])[0],r&&r.length||(r="avc1.4d400d"),u&&u.length||(u="mp4a.40.2"),t=new a["default"](this,[r,u]),this.sourceBuffers.push(t),t):(t=this.mediaSource_.addSourceBuffer(n),this.sourceBuffers.push(t),t)}}]),t}(u["default"].EventTarget);i["default"]=y;t.exports=i["default"]}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./virtual-source-buffer":29}],26:[function(n,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var r=function(n,t,i){var u=void 0,r=void 0;if(i)for(u=i.cues.length;u--;)r=i.cues[u],r.startTime<=t&&r.endTime>=n&&i.removeCue(r)};i["default"]=r;t.exports=i["default"]},{}],27:[function(n,t,i){"use strict";function e(n){return n&&n.__esModule?n:{"default":n}}Object.defineProperty(i,"__esModule",{value:!0});var o=n("mux.js"),s=e(o),r=void 0,f={},h=function(n){n.on("data",function(n){var t=n.data;n.data=t.buffer;postMessage({action:"data",segment:n,byteOffset:t.byteOffset,byteLength:t.byteLength},[n.data])});n.captionStream&&n.captionStream.on("data",function(n){postMessage({action:"caption",data:n})});n.on("done",function(){postMessage({action:"done"})})},u={init:function(n){f=n&&n.options||{};this.defaultInit()},defaultInit:function(){r&&r.dispose();r=new s["default"].mp4.Transmuxer(f);h(r)},push:function(n){var t=new Uint8Array(n.data,n.byteOffset,n.byteLength);r.push(t)},reset:function(){this.defaultInit()},setTimestampOffset:function(n){var t=n.timestampOffset||0;r.setBaseMediaDecodeTime(Math.round(9e4*t))},flush:function(){r.flush()}},c=function(n){n.onmessage=function(n){r||"init"===n.data.action||u.defaultInit();n.data&&n.data.action&&u[n.data.action]&&u[n.data.action](n.data)}};i["default"]=c;t.exports=i["default"]},{"mux.js":37}],28:[function(n,t,i){"use strict";function o(n){return n&&n.__esModule?n:{"default":n}}var e;Object.defineProperty(i,"__esModule",{value:!0});var a=n("./flash-media-source"),s=o(a),v=n("./html-media-source"),h=o(v),r=window.videojs,c=0,y={mode:"auto"};r.mediaSources={};var l=function(n,t){var i=r.mediaSources[n];if(!i)throw new Error("Media Source not found (Video.js)");i.trigger({type:"sourceopen",swfId:t})},f=function(){return!!window.MediaSource&&window.MediaSource.isTypeSupported('video/mp4;codecs="avc1.4d400d,mp4a.40.2"')},u=function(n){var t=r.mergeOptions(y,n);return this.MediaSource={open:l,supportsNativeMediaSources:f},"html5"===t.mode||"auto"===t.mode&&f()?new h["default"]:new s["default"]};i.MediaSource=u;u.open=l;u.supportsNativeMediaSources=f;e={createObjectURL:function(n){var t=void 0;return n instanceof h["default"]?(t=window.URL.createObjectURL(n.mediaSource_),n.url_=t,t):n instanceof s["default"]?(t="blob:vjs-media-source/"+c,c++,r.mediaSources[t]=n,t):(t=window.URL.createObjectURL(n),n.url_=t,t)}};i.URL=e;r.MediaSource=u;r.URL=e},{"./flash-media-source":23,"./html-media-source":25}],29:[function(n,t,i){(function(r){"use strict";function f(n){return n&&n.__esModule?n:{"default":n}}function s(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function h(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}Object.defineProperty(i,"__esModule",{value:!0});var c=function(){function n(n,t){for(var i,r=0;r<t.length;r++)i=t[r],i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}return function(t,i,r){return i&&n(t.prototype,i),r&&n(t,r),t}}(),l=function(n,t,i){for(var r,o,e,u=!0;u;){var f=n,s=t,h=i;if(u=!1,null===f&&(f=Function.prototype),r=Object.getOwnPropertyDescriptor(f,s),void 0!==r)return"value"in r?r.value:(o=r.get,void 0===o)?void 0:o.call(h);if(e=Object.getPrototypeOf(f),null===e)return;n=e;t=s;i=h;u=!0;r=e=void 0}},a="undefined"!=typeof window?window.videojs:"undefined"!=typeof r?r.videojs:null,e=f(a),v=n("./create-text-tracks-if-necessary"),y=f(v),p=n("./remove-cues-from-track"),o=f(p),w=n("./add-text-track-data"),b=f(w),k=n("webworkify"),d=f(k),g=n("./transmuxer-worker"),nt=f(g),u=function(n,t,i){return function(){if(!n[t]||!n[t].updating)return n.trigger(i)}},tt=function(n){function t(n,i){var r=this;s(this,t);l(Object.getPrototypeOf(t.prototype),"constructor",this).call(this,e["default"].EventTarget);this.timestampOffset_=0;this.pendingBuffers_=[];this.bufferUpdating_=!1;this.mediaSource_=n;this.codecs_=i;this.transmuxer_=d["default"](nt["default"]);this.transmuxer_.postMessage({action:"init",options:{remux:!1}});this.transmuxer_.onmessage=function(n){return"data"===n.data.action?r.data_(n):"done"===n.data.action?r.done_(n):void 0};Object.defineProperty(this,"timestampOffset",{get:function(){return this.timestampOffset_},set:function(n){"number"==typeof n&&n>=0&&(this.timestampOffset_=n,this.transmuxer_.postMessage({action:"setTimestampOffset",timestampOffset:n}))}});Object.defineProperty(this,"appendWindowStart",{get:function(){return(this.videoBuffer_||this.audioBuffer_).appendWindowStart},set:function(n){this.videoBuffer_&&(this.videoBuffer_.appendWindowStart=n);this.audioBuffer_&&(this.audioBuffer_.appendWindowStart=n)}});Object.defineProperty(this,"updating",{get:function(){return this.bufferUpdating_||this.audioBuffer_&&this.audioBuffer_.updating||this.videoBuffer_&&this.videoBuffer_.updating}});Object.defineProperty(this,"buffered",{get:function(){var i=null,r=null,u=0,t=[],s=[];if(!(this.videoBuffer_&&0!==this.videoBuffer_.buffered.length||this.audioBuffer_&&0!==this.audioBuffer_.buffered.length))return e["default"].createTimeRange();if(!this.videoBuffer_)return this.audioBuffer_.buffered;if(!this.audioBuffer_)return this.videoBuffer_.buffered;for(var f=this.videoBuffer_.buffered,o=this.audioBuffer_.buffered,n=f.length;n--;)t.push({time:f.start(n),type:"start"}),t.push({time:f.end(n),type:"end"});for(n=o.length;n--;)t.push({time:o.start(n),type:"start"}),t.push({time:o.end(n),type:"end"});for(t.sort(function(n,t){return n.time-t.time}),n=0;n<t.length;n++)"start"===t[n].type?(u++,2===u&&(i=t[n].time)):"end"===t[n].type&&(u--,1===u&&(r=t[n].time)),null!==i&&null!==r&&(s.push([i,r]),i=null,r=null);return e["default"].createTimeRanges(s)}})}return h(t,n),c(t,[{key:"data_",value:function(n){var t=n.data.segment,i=this.mediaSource_.mediaSource_;t.data=new Uint8Array(t.data,n.data.byteOffset,n.data.byteLength);"video"===t.type?this.videoBuffer_||(this.videoBuffer_=i.addSourceBuffer('video/mp4;codecs="'+this.codecs_[0]+'"'),this.videoBuffer_.addEventListener("updatestart",u(this,"audioBuffer_","updatestart")),this.videoBuffer_.addEventListener("update",u(this,"audioBuffer_","update")),this.videoBuffer_.addEventListener("updateend",u(this,"audioBuffer_","updateend"))):"audio"===t.type?this.audioBuffer_||(this.audioBuffer_=i.addSourceBuffer('audio/mp4;codecs="'+this.codecs_[1]+'"'),this.audioBuffer_.addEventListener("updatestart",u(this,"videoBuffer_","updatestart")),this.audioBuffer_.addEventListener("update",u(this,"videoBuffer_","update")),this.audioBuffer_.addEventListener("updateend",u(this,"videoBuffer_","updateend"))):"combined"===t.type&&(this.videoBuffer_||(this.videoBuffer_=i.addSourceBuffer('video/mp4;codecs="'+this.codecs_.join(",")+'"'),this.videoBuffer_.addEventListener("updatestart",u(this,"videoBuffer_","updatestart")),this.videoBuffer_.addEventListener("update",u(this,"videoBuffer_","update")),this.videoBuffer_.addEventListener("updateend",u(this,"videoBuffer_","updateend"))));y["default"](this,this.mediaSource_,t);this.pendingBuffers_.push(t)}},{key:"done_",value:function(){this.processPendingSegments_()}},{key:"appendBuffer",value:function(n){this.bufferUpdating_=!0;this.transmuxer_.postMessage({action:"push",data:n.buffer,byteOffset:n.byteOffset,byteLength:n.byteLength},[n.buffer]);this.transmuxer_.postMessage({action:"flush"})}},{key:"remove",value:function(n,t){this.videoBuffer_&&this.videoBuffer_.remove(n,t);this.audioBuffer_&&this.audioBuffer_.remove(n,t);o["default"](n,t,this.metadataTrack_);o["default"](n,t,this.inbandTextTrack_)}},{key:"processPendingSegments_",value:function(){var n={video:{segments:[],bytes:0},audio:{segments:[],bytes:0},captions:[],metadata:[]};n=this.pendingBuffers_.reduce(function(n,t){var i=t.type,r=t.data;return"combined"===i&&(i="video"),n[i].segments.push(r),n[i].bytes+=r.byteLength,t.captions&&(n.captions=n.captions.concat(t.captions)),t.metadata&&(n.metadata=n.metadata.concat(t.metadata)),n},n);b["default"](this,n.captions,n.metadata);this.concatAndAppendSegments_(n.video,this.videoBuffer_);this.concatAndAppendSegments_(n.audio,this.audioBuffer_);this.pendingBuffers_.length=0;this.bufferUpdating_=!1}},{key:"concatAndAppendSegments_",value:function(n,t){var r=0,i=void 0;n.bytes&&(i=new Uint8Array(n.bytes),n.segments.forEach(function(n){i.set(n,r);r+=n.byteLength}),t.appendBuffer(i))}},{key:"abort",value:function(){this.videoBuffer_&&this.videoBuffer_.abort();this.audioBuffer_&&this.audioBuffer_.abort();this.transmuxer_&&this.transmuxer_.postMessage({action:"reset"});this.pendingBuffers_.length=0;this.bufferUpdating_=!1}}]),t}(e["default"].EventTarget);i["default"]=tt;t.exports=i["default"]}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./add-text-track-data":20,"./create-text-tracks-if-necessary":21,"./remove-cues-from-track":26,"./transmuxer-worker":27,webworkify:50}],30:[function(n,t){"use strict";var i,r=n("../utils/stream.js");i=function(){var n,t=0;i.prototype.init.call(this);this.setTimestamp=function(n){t=n};this.parseId3TagSize=function(n,t){var i=n[t+6]<<21|n[t+7]<<14|n[t+8]<<7|n[t+9],r=n[t+5],u=(16&r)>>4;return u?i+20:i+10};this.parseAdtsSize=function(n,t){var i=(224&n[t+5])>>5,r=n[t+4]<<3,u=6144&n[t+3];return u|r|i};this.push=function(i){var e,o,f,u=0,r=0;for(void 0!==n&&n.length?(f=n.length,n=new Uint8Array(i.byteLength+f),n.set(n.subarray(0,f)),n.set(i,f)):n=i;n.length-r>=10;)if(n[r]!=="I".charCodeAt(0)||n[r+1]!=="D".charCodeAt(0)||n[r+2]!=="3".charCodeAt(0))if(n[r]&!0&&240==(240&n[r+1])){if(u=this.parseAdtsSize(n,r),u>n.length)break;o={type:"audio",data:n.subarray(r,r+u),pts:t,dts:t};this.trigger("data",o);r+=u}else r++;else{if(u=this.parseId3TagSize(n,r),u>n.length)break;e={type:"timed-metadata",data:n.subarray(r,r+u)};this.trigger("data",e);r+=u}}};i.prototype=new r;t.exports=i},{"../utils/stream.js":49}],31:[function(n,t){"use strict";var i,u=n("../utils/stream.js"),r=[96e3,88200,64e3,48e3,44100,32e3,24e3,22050,16e3,12e3,11025,8e3,7350];i=function(){var t,n;i.prototype.init.call(this);t=this;this.push=function(t){var h,c,u,f,e,o,i=0,s=0;if("audio"===t.type)for(n?(f=n,n=new Uint8Array(f.byteLength+t.data.byteLength),n.set(f),n.set(t.data,f.byteLength)):n=t.data;i+5<n.length;)if(255===n[i]&&240==(246&n[i+1])){if(c=2*(1&~n[i+1]),h=(3&n[i+3])<<11|n[i+4]<<3|(224&n[i+5])>>5,e=1024*((3&n[i+6])+1),o=9e4*e/r[(60&n[i+2])>>>2],u=i+h,n.byteLength<u)return;if(this.trigger("data",{pts:t.pts+s*o,dts:t.dts+s*o,sampleCount:e,audioobjecttype:(n[i+2]>>>6&3)+1,channelcount:(1&n[i+2])<<3|(192&n[i+3])>>>6,samplerate:r[(60&n[i+2])>>>2],samplingfrequencyindex:(60&n[i+2])>>>2,samplesize:16,data:n.subarray(i+7+c,u)}),n.byteLength===u)return void(n=void 0);s++;n=n.subarray(u)}else i++};this.flush=function(){this.trigger("done")}};i.prototype=new u;t.exports=i},{"../utils/stream.js":49}],32:[function(n,t){"use strict";var r,i,u=n("../utils/stream.js"),f=n("../utils/exp-golomb.js");i=function(){var t,n,r=0;i.prototype.init.call(this);this.push=function(i){var u;for(n?(u=new Uint8Array(n.byteLength+i.data.byteLength),u.set(n),u.set(i.data,n.byteLength),n=u):n=i.data;r<n.byteLength-3;r++)if(1===n[r+2]){t=r+5;break}for(;t<n.byteLength;)switch(n[t]){case 0:if(0!==n[t-1]){t+=2;break}if(0!==n[t-2]){t++;break}this.trigger("data",n.subarray(r+3,t-2));do t++;while(1!==n[t]&&t<n.length);r=t-2;t+=3;break;case 1:if(0!==n[t-1]||0!==n[t-2]){t+=3;break}this.trigger("data",n.subarray(r+3,t-2));r=t-2;t+=3;break;default:t+=3}n=n.subarray(r);t-=r;r=0};this.flush=function(){n&&n.byteLength>3&&this.trigger("data",n.subarray(r+3));n=null;r=0;this.trigger("done")}};i.prototype=new u;r=function(){var t,o,s,h,u,c,e,n=new i;r.prototype.init.call(this);t=this;this.push=function(t){"video"===t.type&&(o=t.trackId,s=t.pts,h=t.dts,n.push(t))};n.on("data",function(n){var i={trackId:o,pts:s,dts:h,data:n};switch(31&n[0]){case 5:i.nalUnitType="slice_layer_without_partitioning_rbsp_idr";break;case 6:i.nalUnitType="sei_rbsp";i.escapedRBSP=u(n.subarray(1));break;case 7:i.nalUnitType="seq_parameter_set_rbsp";i.escapedRBSP=u(n.subarray(1));i.config=c(i.escapedRBSP);break;case 8:i.nalUnitType="pic_parameter_set_rbsp";break;case 9:i.nalUnitType="access_unit_delimiter_rbsp"}t.trigger("data",i)});n.on("done",function(){t.trigger("done")});this.flush=function(){n.flush()};e=function(n,t){for(var f,u=8,i=8,r=0;n>r;r++)0!==i&&(f=t.readExpGolomb(),i=(u+f+256)%256),u=0===i?u:i};u=function(n){for(var r,u,f,e=n.byteLength,i=[],t=1;e-2>t;)0===n[t]&&0===n[t+1]&&3===n[t+2]?(i.push(t+2),t+=2):t++;if(0===i.length)return n;for(u=e-i.length,f=new Uint8Array(u),r=0,t=0;u>t;r++,t++)r===i[0]&&(r++,i.shift()),f[t]=n[r];return f};c=function(n){var t,i,h,c,u,o,l,a,v,s,y,r,p=0,w=0,b=0,k=0;if(t=new f(n),i=t.readUnsignedByte(),c=t.readUnsignedByte(),h=t.readUnsignedByte(),t.skipUnsignedExpGolomb(),(100===i||110===i||122===i||244===i||44===i||83===i||86===i||118===i||128===i||138===i||139===i||134===i)&&(u=t.readUnsignedExpGolomb(),3===u&&t.skipBits(1),t.skipUnsignedExpGolomb(),t.skipUnsignedExpGolomb(),t.skipBits(1),t.readBoolean()))for(y=3!==u?8:12,r=0;y>r;r++)t.readBoolean()&&(6>r?e(16,t):e(64,t));if(t.skipUnsignedExpGolomb(),o=t.readUnsignedExpGolomb(),0===o)t.readUnsignedExpGolomb();else if(1===o)for(t.skipBits(1),t.skipExpGolomb(),t.skipExpGolomb(),l=t.readUnsignedExpGolomb(),r=0;l>r;r++)t.skipExpGolomb();return t.skipUnsignedExpGolomb(),t.skipBits(1),a=t.readUnsignedExpGolomb(),v=t.readUnsignedExpGolomb(),s=t.readBits(1),0===s&&t.skipBits(1),t.skipBits(1),t.readBoolean()&&(p=t.readUnsignedExpGolomb(),w=t.readUnsignedExpGolomb(),b=t.readUnsignedExpGolomb(),k=t.readUnsignedExpGolomb()),{profileIdc:i,levelIdc:h,profileCompatibility:c,width:16*(a+1)-2*p-2*w,height:(2-s)*(v+1)*16-2*b-2*k}}};r.prototype=new u;t.exports={H264Stream:r,NalByteStream:i}},{"../utils/exp-golomb.js":48,"../utils/stream.js":49}],33:[function(n,t){t.exports={adts:n("./adts"),h264:n("./h264")}},{"./adts":31,"./h264":32}],34:[function(n,t){"use strict";var i;i=function(n,t){var r,u=0,h=16384,f=function(n,t){var i,r=n.position+t;r<n.bytes.byteLength||(i=new Uint8Array(2*r),i.set(n.bytes.subarray(0,n.position),0),n.bytes=i,n.view=new DataView(n.bytes.buffer))},e=i.widthBytes||new Uint8Array(5),o=i.heightBytes||new Uint8Array(6),s=i.videocodecidBytes||new Uint8Array(12);if(!i.widthBytes){for(r=0;r<5;r++)e[r]="width".charCodeAt(r);for(r=0;r<6;r++)o[r]="height".charCodeAt(r);for(r=0;r<12;r++)s[r]="videocodecid".charCodeAt(r);i.widthBytes=e;i.heightBytes=o;i.videocodecidBytes=s}switch(this.keyFrame=!1,n){case i.VIDEO_TAG:this.length=16;h*=6;break;case i.AUDIO_TAG:this.length=13;this.keyFrame=!0;break;case i.METADATA_TAG:this.length=29;this.keyFrame=!0;break;default:throw"Error Unknown TagType";}this.bytes=new Uint8Array(h);this.view=new DataView(this.bytes.buffer);this.bytes[0]=n;this.position=this.length;this.keyFrame=t;this.pts=0;this.dts=0;this.writeBytes=function(n,t,i){var r,u=t||0;i=i||n.byteLength;r=u+i;f(this,i);this.bytes.set(n.subarray(u,r),this.position);this.position+=i;this.length=Math.max(this.length,this.position)};this.writeByte=function(n){f(this,1);this.bytes[this.position]=n;this.position++;this.length=Math.max(this.length,this.position)};this.writeShort=function(n){f(this,2);this.view.setUint16(this.position,n);this.position+=2;this.length=Math.max(this.length,this.position)};this.negIndex=function(n){return this.bytes[this.length-n]};this.nalUnitSize=function(){return 0===u?0:this.length-(u+4)};this.startNalUnit=function(){if(u>0)throw new Error("Attempted to create new NAL wihout closing the old one");u=this.length;this.length+=4;this.position=this.length};this.endNalUnit=function(n){var t,i;this.length===u+4?this.length-=4:u>0&&(t=u+4,i=this.length-t,this.position=u,this.view.setUint32(this.position,i),this.position=this.length,n&&n.push(this.bytes.subarray(t,t+i)));u=0};this.writeMetaDataDouble=function(n,t){var i;if(f(this,2+n.length+9),this.view.setUint16(this.position,n.length),this.position+=2,"width"===n)this.bytes.set(e,this.position),this.position+=5;else if("height"===n)this.bytes.set(o,this.position),this.position+=6;else if("videocodecid"===n)this.bytes.set(s,this.position),this.position+=12;else for(i=0;i<n.length;i++)this.bytes[this.position]=n.charCodeAt(i),this.position++;this.position++;this.view.setFloat64(this.position,t);this.position+=8;this.length=Math.max(this.length,this.position);++u};this.writeMetaDataBoolean=function(n,t){var i;for(f(this,2),this.view.setUint16(this.position,n.length),this.position+=2,i=0;i<n.length;i++)f(this,1),this.bytes[this.position]=n.charCodeAt(i),this.position++;f(this,2);this.view.setUint8(this.position,1);this.position++;this.view.setUint8(this.position,t?1:0);this.position++;this.length=Math.max(this.length,this.position);++u};this.finalize=function(){var n,r;switch(this.bytes[0]){case i.VIDEO_TAG:this.bytes[11]=7|(this.keyFrame||t?16:32);this.bytes[12]=t?0:1;n=this.pts-this.dts;this.bytes[13]=(16711680&n)>>>16;this.bytes[14]=(65280&n)>>>8;this.bytes[15]=(255&n)>>>0;break;case i.AUDIO_TAG:this.bytes[11]=175;this.bytes[12]=t?0:1;break;case i.METADATA_TAG:this.position=11;this.view.setUint8(this.position,2);this.position++;this.view.setUint16(this.position,10);this.position+=2;this.bytes.set([111,110,77,101,116,97,68,97,116,97],this.position);this.position+=10;this.bytes[this.position]=8;this.position++;this.view.setUint32(this.position,u);this.position=this.length;this.bytes.set([0,0,9],this.position);this.position+=3;this.length=this.position}return r=this.length-11,this.bytes[1]=(16711680&r)>>>16,this.bytes[2]=(65280&r)>>>8,this.bytes[3]=(255&r)>>>0,this.bytes[4]=(16711680&this.dts)>>>16,this.bytes[5]=(65280&this.dts)>>>8,this.bytes[6]=(255&this.dts)>>>0,this.bytes[7]=(4278190080&this.dts)>>>24,this.bytes[8]=0,this.bytes[9]=0,this.bytes[10]=0,f(this,4),this.view.setUint32(this.length,this.length),this.length+=4,this.position+=4,this.bytes=this.bytes.subarray(0,this.length),this.frameTime=i.frameTime(this.bytes),this}};i.AUDIO_TAG=8;i.VIDEO_TAG=9;i.METADATA_TAG=18;i.isAudioFrame=function(n){return i.AUDIO_TAG===n[0]};i.isVideoFrame=function(n){return i.VIDEO_TAG===n[0]};i.isMetaData=function(n){return i.METADATA_TAG===n[0]};i.isKeyFrame=function(n){return i.isVideoFrame(n)?23===n[11]:i.isAudioFrame(n)?!0:!!i.isMetaData(n)};i.frameTime=function(n){var t=n[4]<<16;return t|=n[5]<<8,t|=n[6]<<0,t|n[7]<<24};t.exports=i},{}],35:[function(n,t){t.exports={tag:n("./flv-tag"),Transmuxer:n("./transmuxer"),tools:n("../tools/flv-inspector")}},{"../tools/flv-inspector":46,"./flv-tag":34,"./transmuxer":36}],36:[function(n,t){"use strict";var f,e,o,r,h,c,l,s=n("../utils/stream.js"),i=n("./flv-tag.js"),u=n("../m2ts/m2ts.js"),a=n("../codecs/adts.js"),v=n("../codecs/h264").H264Stream;h=function(n,t){"number"==typeof t.pts&&(n.timelineStartInfo.pts=void 0===n.timelineStartInfo.pts?t.pts:Math.min(n.timelineStartInfo.pts,t.pts));"number"==typeof t.dts&&(n.timelineStartInfo.dts=void 0===n.timelineStartInfo.dts?t.dts:Math.min(n.timelineStartInfo.dts,t.dts))};c=function(n,t){var r=new i(i.METADATA_TAG);return r.dts=t,r.pts=t,r.writeMetaDataDouble("videocodecid",7),r.writeMetaDataDouble("width",n.width),r.writeMetaDataDouble("height",n.height),r};l=function(n,t){var u,r=new i(i.VIDEO_TAG,!0);for(r.dts=t,r.pts=t,r.writeByte(1),r.writeByte(n.profileIdc),r.writeByte(n.profileCompatibility),r.writeByte(n.levelIdc),r.writeByte(255),r.writeByte(225),r.writeShort(n.sps[0].length),r.writeBytes(n.sps[0]),r.writeByte(n.pps.length),u=0;u<n.pps.length;++u)r.writeShort(n.pps[u].length),r.writeBytes(n.pps[u]);return r};o=function(n){var r,t=[];o.prototype.init.call(this);this.push=function(i){h(n,i);n&&void 0===n.channelcount&&(n.audioobjecttype=i.audioobjecttype,n.channelcount=i.channelcount,n.samplerate=i.samplerate,n.samplingfrequencyindex=i.samplingfrequencyindex,n.samplesize=i.samplesize,n.extraData=n.audioobjecttype<<11|n.samplingfrequencyindex<<7|n.channelcount<<3);i.pts=Math.round(i.pts/90);i.dts=Math.round(i.dts/90);t.push(i)};this.flush=function(){var f,u,o,e=[];if(0===t.length)return void this.trigger("done");for(o=-(1/0);t.length;)f=t.shift(),(n.extraData!==r||f.pts-o>=1e3)&&(u=new i(i.METADATA_TAG),u.pts=f.pts,u.dts=f.dts,u.writeMetaDataDouble("audiocodecid",10),u.writeMetaDataBoolean("stereo",2===n.channelcount),u.writeMetaDataDouble("audiosamplerate",n.samplerate),u.writeMetaDataDouble("audiosamplesize",16),e.push(u),r=n.extraData,u=new i(i.AUDIO_TAG,!0),u.pts=f.pts,u.dts=f.dts,u.view.setUint16(u.position,n.extraData),u.position+=2,u.length=Math.max(u.length,u.position),e.push(u),o=f.pts),u=new i(i.AUDIO_TAG),u.pts=f.pts,u.dts=f.dts,u.writeBytes(f.data),e.push(u);r=null;this.trigger("data",{track:n,tags:e});this.trigger("done")}};o.prototype=new s;e=function(n){var r,t,u=[];e.prototype.init.call(this);this.finishFrame=function(t,i){i&&(r&&n&&n.newMetadata&&(i.keyFrame||0===t.length)&&(t.push(c(r,i.pts)),t.push(l(n,i.pts)),n.newMetadata=!1),i.endNalUnit(),t.push(i))};this.push=function(t){h(n,t);t.pts=Math.round(t.pts/90);t.dts=Math.round(t.dts/90);u.push(t)};this.flush=function(){for(var f,e=[];u.length&&"access_unit_delimiter_rbsp"!==u[0].nalUnitType;)u.shift();if(0===u.length)return void this.trigger("done");for(;u.length;)f=u.shift(),"seq_parameter_set_rbsp"===f.nalUnitType?(n.newMetadata=!0,r=f.config,n.width=r.width,n.height=r.height,n.sps=[f.data],n.profileIdc=r.profileIdc,n.levelIdc=r.levelIdc,n.profileCompatibility=r.profileCompatibility,t.endNalUnit()):"pic_parameter_set_rbsp"===f.nalUnitType?(n.newMetadata=!0,n.pps=[f.data],t.endNalUnit()):"access_unit_delimiter_rbsp"===f.nalUnitType?(t&&this.finishFrame(e,t),t=new i(i.VIDEO_TAG),t.pts=f.pts,t.dts=f.dts):("slice_layer_without_partitioning_rbsp_idr"===f.nalUnitType&&(t.keyFrame=!0),t.endNalUnit()),t.startNalUnit(),t.writeBytes(f.data);t&&this.finishFrame(e,t);this.trigger("data",{track:n,tags:e});this.trigger("done")}};e.prototype=new s;r=function(n){this.numberOfTracks=0;this.metadataStream=n.metadataStream;this.videoTags=[];this.audioTags=[];this.videoTrack=null;this.audioTrack=null;this.pendingCaptions=[];this.pendingMetadata=[];this.pendingTracks=0;r.prototype.init.call(this);this.push=function(n){return n.text?this.pendingCaptions.push(n):n.frames?this.pendingMetadata.push(n):("video"===n.track.type&&(this.videoTrack=n.track,this.videoTags=n.tags,this.pendingTracks++),void("audio"===n.track.type&&(this.audioTrack=n.track,this.audioTags=n.tags,this.pendingTracks++)))}};r.prototype=new s;r.prototype.flush=function(){var r,n,t,u,i={tags:{},captions:[],metadata:[]};if(!(this.pendingTracks<this.numberOfTracks)){for(this.videoTrack?u=this.videoTrack.timelineStartInfo.pts:this.audioTrack&&(u=this.audioTrack.timelineStartInfo.pts),i.tags.videoTags=this.videoTags,i.tags.audioTags=this.audioTags,t=0;t<this.pendingCaptions.length;t++)n=this.pendingCaptions[t],n.startTime=n.startPts-u,n.startTime/=9e4,n.endTime=n.endPts-u,n.endTime/=9e4,i.captions.push(n);for(t=0;t<this.pendingMetadata.length;t++)r=this.pendingMetadata[t],r.cueTime=r.pts-u,r.cueTime/=9e4,i.metadata.push(r);i.metadata.dispatchType=this.metadataStream.dispatchType;this.videoTrack=null;this.audioTrack=null;this.videoTags=[];this.audioTags=[];this.pendingCaptions.length=0;this.pendingMetadata.length=0;this.pendingTracks=0;this.trigger("data",i);this.trigger("done")}};f=function(n){var h,w,s,l,c,y,p,b,t,k=this;f.prototype.init.call(this);n=n||{};this.metadataStream=new u.MetadataStream;n.metadataStream=this.metadataStream;h=new u.TransportPacketStream;w=new u.TransportParseStream;s=new u.ElementaryStream;l=new a;c=new v;t=new r(n);h.pipe(w).pipe(s);s.pipe(c);s.pipe(l);s.pipe(this.metadataStream).pipe(t);b=new u.CaptionStream;c.pipe(b).pipe(t);s.on("data",function(n){var i,r,u;if("metadata"===n.type){for(i=n.tracks.length;i--;)"video"===n.tracks[i].type?r=n.tracks[i]:"audio"===n.tracks[i].type&&(u=n.tracks[i]);r&&!y&&(t.numberOfTracks++,y=new e(r),c.pipe(y).pipe(t));u&&!p&&(t.numberOfTracks++,p=new o(u),l.pipe(p).pipe(t))}});this.push=function(n){h.push(n)};this.flush=function(){h.flush()};t.on("data",function(n){k.trigger("data",n)});t.on("done",function(){k.trigger("done")});this.getFlvHeader=function(n,t,r){var o,u,s,f=new Uint8Array(9),e=new DataView(f.buffer);return n=n||0,t=void 0===t?!0:t,r=void 0===r?!0:r,e.setUint8(0,70),e.setUint8(1,76),e.setUint8(2,86),e.setUint8(3,1),e.setUint8(4,(t?4:0)|(r?1:0)),e.setUint32(5,f.byteLength),0>=n?(u=new Uint8Array(f.byteLength+4),u.set(f),u.set([0,0,0,0],f.byteLength),u):(o=new i(i.METADATA_TAG),o.pts=o.dts=0,o.writeMetaDataDouble("duration",n),s=o.finalize().length,u=new Uint8Array(f.byteLength+s),u.set(f),u.set(e.byteLength,s),u)}};f.prototype=new s;t.exports=f},{"../codecs/adts.js":31,"../codecs/h264":32,"../m2ts/m2ts.js":40,"../utils/stream.js":49,"./flv-tag.js":34}],37:[function(n,t){"use strict";var i={codecs:n("./codecs"),mp4:n("./mp4"),flv:n("./flv"),mp2t:n("./m2ts")};t.exports=i},{"./codecs":33,"./flv":35,"./m2ts":39,"./mp4":43}],38:[function(n,t){"use strict";var o=4,h=128,s=n("../utils/stream"),c=function(n){for(var t=0,r={payloadType:-1,payloadSize:0},u=0,i=0;t<n.byteLength&&n[t]!==h;){for(;255===n[t];)u+=255,t++;for(u+=n[t++];255===n[t];)i+=255,t++;if(i+=n[t++],!r.payload&&u===o){r.payloadType=u;r.payloadSize=i;r.payload=n.subarray(t,t+i);break}t+=i;u=0;i=0}return r},l=function(n){return 181!==n.payload[0]?null:49!=(n.payload[1]<<8|n.payload[2])?null:"GA94"!==String.fromCharCode(n.payload[3],n.payload[4],n.payload[5],n.payload[6])?null:3!==n.payload[7]?null:n.payload.subarray(8,n.payload.length-1)},a=function(n,t){var r,e,i,u,f=[];if(!(64&t[0]))return f;for(e=31&t[0],r=0;e>r;r++)i=3*r,u={type:3&t[i+2],pts:n},4&t[i+2]&&(u.ccData=t[i+3]<<8|t[i+4],f.push(u));return f},u=function(){u.prototype.init.call(this);this.captionPackets_=[];this.field1_=new r;this.field1_.on("data",this.trigger.bind(this,"data"));this.field1_.on("done",this.trigger.bind(this,"done"))};u.prototype=new s;u.prototype.push=function(n){var t,i;"sei_rbsp"===n.nalUnitType&&(t=c(n.escapedRBSP),t.payloadType===o&&(i=l(t),i&&(this.captionPackets_=this.captionPackets_.concat(a(n.pts,i)))))};u.prototype.flush=function(){return this.captionPackets_.length?(this.captionPackets_.sort(function(n,t){return n.pts-t.pts}),this.captionPackets_.forEach(this.field1_.push,this.field1_),this.captionPackets_.length=0,void this.field1_.flush()):void this.field1_.flush()};var v={42:225,92:233,94:237,95:243,96:250,123:231,124:247,125:209,126:241,127:9608},f=function(n){return null===n?"":(n=v[n]||n,String.fromCharCode(n))},y=0,p=5152,w=5167,b=5157,k=5158,d=5159,g=5165,nt=5153,tt=5164,it=5166,i=14,e=function(){for(var n=[],t=i+1;t--;)n.push("");return n},r=function(){r.prototype.init.call(this);this.mode_="popOn";this.topRow_=0;this.startPts_=0;this.displayed_=e();this.nonDisplayed_=e();this.lastControlCode_=null;this.push=function(n){if(0===n.type){var u,f,t,r;if(u=32639&n.ccData,u===this.lastControlCode_)return void(this.lastControlCode_=null);switch(this.lastControlCode_=4096==(61440&u)?u:null,u){case y:break;case p:this.mode_="popOn";break;case w:this.flushDisplayed(n.pts);f=this.displayed_;this.displayed_=this.nonDisplayed_;this.nonDisplayed_=f;this.startPts_=n.pts;break;case b:this.topRow_=i-1;this.mode_="rollUp";break;case k:this.topRow_=i-2;this.mode_="rollUp";break;case d:this.topRow_=i-3;this.mode_="rollUp";break;case g:this.flushDisplayed(n.pts);this.shiftRowsUp_();this.startPts_=n.pts;break;case nt:"popOn"===this.mode_?this.nonDisplayed_[i]=this.nonDisplayed_[i].slice(0,-1):this.displayed_[i]=this.displayed_[i].slice(0,-1);break;case tt:this.flushDisplayed(n.pts);this.displayed_=e();break;case it:this.nonDisplayed_=e();break;default:if(t=u>>>8,r=255&u,t>=16&&23>=t&&r>=64&&127>=r&&(16!==t||96>r)&&(t=32,r=null),(17===t||25===t)&&r>=48&&63>=r&&(t=14850474,r=""),16==(240&t))return;this[this.mode_](n.pts,t,r)}}}};r.prototype=new s;r.prototype.flushDisplayed=function(n){for(var i,t=0;t<this.displayed_.length;t++)i=this.displayed_[t],i.length&&this.trigger("data",{startPts:this.startPts_,endPts:n,text:i.trim()})};r.prototype.popOn=function(n,t,r){var u=this.nonDisplayed_[i];u+=f(t);u+=f(r);this.nonDisplayed_[i]=u};r.prototype.rollUp=function(n,t,r){var u=this.displayed_[i];""===u&&(this.flushDisplayed(n),this.startPts_=n);u+=f(t);u+=f(r);this.displayed_[i]=u};r.prototype.shiftRowsUp_=function(){for(var n=0;n<this.topRow_;n++)this.displayed_[n]="";for(n=this.topRow_;i>n;n++)this.displayed_[n]=this.displayed_[n+1];this.displayed_[i]=""};t.exports={CaptionStream:u,Cea608Stream:r}},{"../utils/stream":49}],39:[function(n,t){t.exports=n("./m2ts")},{"./m2ts":40}],40:[function(n,t){"use strict";var u,f,o=n("../utils/stream.js"),a=n("./caption-stream"),i=n("./stream-types"),o=n("../utils/stream.js"),s=n("./stream-types.js"),r=188,h=71,c=function(){var t=new Uint8Array(r),n=0;c.prototype.init.call(this);this.push=function(i){var u,f=0,e=r;for(n?(u=new Uint8Array(i.byteLength+n),u.set(t.subarray(0,n)),u.set(i,n),n=0):u=i;e<u.byteLength;)u[f]!==h||u[e]!==h?(f++,e++):(this.trigger("data",u.subarray(f,e)),f+=r,e+=r);f<u.byteLength&&(t.set(u.subarray(f),0),n=u.byteLength-f)};this.flush=function(){n===r&&t[0]===h&&(this.trigger("data",t),n=0);this.trigger("done")}},l,e;c.prototype=new o;u=function(){var t,i,r,n;u.prototype.init.call(this);n=this;this.packetsWaitingForPmt=[];this.programMapTable=void 0;t=function(n,t){var u=0;t.payloadUnitStartIndicator&&(u+=n[u]+1);"pat"===t.type?i(n.subarray(u),t):r(n.subarray(u),t)};i=function(t,i){i.section_number=t[7];i.last_section_number=t[8];n.pmtPid=(31&t[10])<<8|t[11];i.pmtPid=n.pmtPid};r=function(t,i){var u,f,e,r;if(1&t[5]){for(n.programMapTable={},u=(15&t[1])<<8|t[2],f=3+u-4,e=(15&t[10])<<8|t[11],r=12+e;f>r;)n.programMapTable[(31&t[r+1])<<8|t[r+2]]=t[r],r+=((15&t[r+3])<<8|t[r+4])+5;for(i.programMapTable=n.programMapTable;n.packetsWaitingForPmt.length;)n.processPes_.apply(n,n.packetsWaitingForPmt.shift())}};this.push=function(n){var i={},r=4;i.payloadUnitStartIndicator=!!(64&n[1]);i.pid=31&n[1];i.pid<<=8;i.pid|=n[2];(48&n[3])>>>4>1&&(r+=n[r]+1);0===i.pid?(i.type="pat",t(n.subarray(r),i),this.trigger("data",i)):i.pid===this.pmtPid?(i.type="pmt",t(n.subarray(r),i),this.trigger("data",i)):void 0===this.programMapTable?this.packetsWaitingForPmt.push([n,r,i]):this.processPes_(n,r,i)};this.processPes_=function(n,t,i){i.streamType=this.programMapTable[i.pid];i.type="pes";i.data=n.subarray(t);this.trigger("data",i)}};u.prototype=new o;u.STREAM_TYPES={h264:27,adts:15};f=function(){var t,r={data:[],size:0},u={data:[],size:0},e={data:[],size:0},o=function(n,t){var i;t.dataAlignmentIndicator=0!=(4&n[6]);i=n[7];192&i&&(t.pts=(14&n[9])<<27|(255&n[10])<<20|(254&n[11])<<12|(255&n[12])<<5|(254&n[13])>>>3,t.pts*=4,t.pts+=(6&n[13])>>>1,t.dts=t.pts,64&i&&(t.dts=(14&n[14])<<27|(255&n[15])<<20|(254&n[16])<<12|(255&n[17])<<5|(254&n[18])>>>3,t.dts*=4,t.dts+=(6&n[18])>>>1));t.data=n.subarray(9+n[8])},n=function(n,i){var r,f=new Uint8Array(n.size),u={type:i},e=0;if(n.data.length){for(u.trackId=n.data[0].pid;n.data.length;)r=n.data.shift(),f.set(r.data,e),e+=r.data.byteLength;o(f,u);n.size=0;t.trigger("data",u)}};f.prototype.init.call(this);t=this;this.push=function(f){({pat:function(){},pes:function(){var t,o;switch(f.streamType){case i.H264_STREAM_TYPE:case s.H264_STREAM_TYPE:t=r;o="video";break;case i.ADTS_STREAM_TYPE:t=u;o="audio";break;case i.METADATA_STREAM_TYPE:t=e;o="timed-metadata";break;default:return}f.payloadUnitStartIndicator&&n(t,o);t.data.push(f);t.size+=f.data.byteLength},pmt:function(){var i,n,u={type:"metadata",tracks:[]},r=f.programMapTable;for(i in r)r.hasOwnProperty(i)&&(n={timelineStartInfo:{baseMediaDecodeTime:0}},n.id=+i,r[i]===s.H264_STREAM_TYPE?(n.codec="avc",n.type="video"):r[i]===s.ADTS_STREAM_TYPE&&(n.codec="adts",n.type="audio"),u.tracks.push(n));t.trigger("data",u)}})[f.type]()};this.flush=function(){n(r,"video");n(u,"audio");n(e,"timed-metadata");this.trigger("done")}};f.prototype=new o;l={PAT_PID:0,MP2T_PACKET_LENGTH:r,TransportPacketStream:c,TransportParseStream:u,ElementaryStream:f,CaptionStream:a.CaptionStream,Cea608Stream:a.Cea608Stream,MetadataStream:n("./metadata-stream")};for(e in i)i.hasOwnProperty(e)&&(l[e]=i[e]);t.exports=l},{"../utils/stream.js":49,"./caption-stream":38,"./metadata-stream":41,"./stream-types":42,"./stream-types.js":42}],41:[function(n,t){"use strict";var i,o=n("../utils/stream"),s=n("./stream-types"),f=function(n,t,i){for(var u="",r=t;i>r;r++)u+="%"+("00"+n[r].toString(16)).slice(-2);return u},r=function(n,t,i){return decodeURIComponent(f(n,t,i))},h=function(n,t,i){return unescape(f(n,t,i))},u=function(n){return n[0]<<21|n[1]<<14|n[2]<<7|n[3]},e={TXXX:function(n){var t;if(3===n.data[0]){for(t=1;t<n.data.length;t++)if(0===n.data[t]){n.description=r(n.data,1,t);n.value=r(n.data,t+1,n.data.length-1);break}n.data=n.value}},WXXX:function(n){var t;if(3===n.data[0])for(t=1;t<n.data.length;t++)if(0===n.data[t]){n.description=r(n.data,1,t);n.url=r(n.data,t+1,n.data.length);break}},PRIV:function(n){for(var t=0;t<n.data.length;t++)if(0===n.data[t]){n.owner=h(n.data,0,t);break}n.privateData=n.data.subarray(t+1);n.data=n.privateData}};i=function(n){var f,o={debug:!(!n||!n.debug),descriptor:n&&n.descriptor},r=0,t=[],h=0;if(i.prototype.init.call(this),this.dispatchType=s.METADATA_STREAM_TYPE.toString(16),o.descriptor)for(f=0;f<o.descriptor.length;f++)this.dispatchType+=("00"+o.descriptor[f].toString(16)).slice(-2);this.push=function(n){var f,i,a,s,l,y,c,v;if("timed-metadata"===n.type){if(n.dataAlignmentIndicator&&(h=0,t.length=0),0===t.length&&(n.data.length<10||n.data[0]!=="I".charCodeAt(0)||n.data[1]!=="D".charCodeAt(0)||n.data[2]!=="3".charCodeAt(0)))return void(o.debug&&console.log("Skipping unrecognized metadata packet"));if(t.push(n),h+=n.data.byteLength,1===t.length&&(r=u(n.data.subarray(6,10)),r+=10),!(r>h)){for(f={data:new Uint8Array(r),frames:[],pts:t[0].pts,dts:t[0].dts},l=0;r>l;)f.data.set(t[0].data.subarray(0,r-l),l),l+=t[0].data.byteLength,h-=t[0].data.byteLength,t.shift();i=10;64&f.data[5]&&(i+=4,i+=u(f.data.subarray(10,14)),r-=u(f.data.subarray(16,20)));do{if(a=u(f.data.subarray(i+4,i+8)),1>a)return console.log("Malformed ID3 frame encountered. Skipping metadata parsing.");(y=String.fromCharCode(f.data[i],f.data[i+1],f.data[i+2],f.data[i+3]),s={id:y,data:f.data.subarray(i+10,i+a+10)},s.key=s.id,e[s.id]&&(e[s.id](s),"com.apple.streaming.transportStreamTimestamp"===s.owner))&&(c=s.data,v=(1&c[3])<<30|c[4]<<22|c[5]<<14|c[6]<<6|c[7]>>>2,v*=4,v+=3&c[7],s.timeStamp=v,this.trigger("timestamp",s));f.frames.push(s);i+=10;i+=a}while(r>i);this.trigger("data",f)}}}};i.prototype=new o;t.exports=i},{"../utils/stream":49,"./stream-types":42}],42:[function(n,t){"use strict";t.exports={H264_STREAM_TYPE:27,ADTS_STREAM_TYPE:15,METADATA_STREAM_TYPE:21}},{}],43:[function(n,t){t.exports={generator:n("./mp4-generator"),Transmuxer:n("./transmuxer").Transmuxer,AudioSegmentStream:n("./transmuxer").AudioSegmentStream,VideoSegmentStream:n("./transmuxer").VideoSegmentStream,tools:n("../tools/mp4-inspector")}},{"../tools/mp4-inspector":47,"./mp4-generator":44,"./transmuxer":45}],44:[function(n,t){"use strict";var r,c,l,e,a,v,y,p,o,w,b,k,d,g,nt,tt,it,rt,ut,bt,ft,et,s,i,u,h,ot,st,ht,ct,lt,at,vt,f,yt,pt,wt;!function(){var n;i={avc1:[],avcC:[],btrt:[],dinf:[],dref:[],esds:[],ftyp:[],hdlr:[],mdat:[],mdhd:[],mdia:[],mfhd:[],minf:[],moof:[],moov:[],mp4a:[],mvex:[],mvhd:[],sdtp:[],smhd:[],stbl:[],stco:[],stsc:[],stsd:[],stsz:[],stts:[],styp:[],tfdt:[],tfhd:[],traf:[],trak:[],trun:[],trex:[],tkhd:[],vmhd:[]};for(n in i)i.hasOwnProperty(n)&&(i[n]=[n.charCodeAt(0),n.charCodeAt(1),n.charCodeAt(2),n.charCodeAt(3)]);u=new Uint8Array(["i".charCodeAt(0),"s".charCodeAt(0),"o".charCodeAt(0),"m".charCodeAt(0)]);ot=new Uint8Array(["a".charCodeAt(0),"v".charCodeAt(0),"c".charCodeAt(0),"1".charCodeAt(0)]);h=new Uint8Array([0,0,0,1]);st=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]);ht=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]);ct={video:st,audio:ht};vt=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,12,117,114,108,32,0,0,0,1]);at=new Uint8Array([0,0,0,0,0,0,0,0]);f=new Uint8Array([0,0,0,0,0,0,0,0]);yt=f;pt=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0]);wt=f;lt=new Uint8Array([0,0,0,1,0,0,0,0,0,0,0,0])}();r=function(n){for(var i,f,r=[],u=0,t=1;t<arguments.length;t++)r.push(arguments[t]);for(t=r.length;t--;)u+=r[t].byteLength;for(i=new Uint8Array(u+8),f=new DataView(i.buffer,i.byteOffset,i.byteLength),f.setUint32(0,i.byteLength),i.set(n,4),t=0,u=8;t<r.length;t++)i.set(r[t],u),u+=r[t].byteLength;return i};c=function(){return r(i.dinf,r(i.dref,vt))};l=function(n){return r(i.esds,new Uint8Array([0,0,0,0,3,25,0,0,0,4,17,64,21,0,6,0,0,0,218,192,0,0,218,192,5,2,n.audioobjecttype<<3|n.samplingfrequencyindex>>>1,n.samplingfrequencyindex<<7|n.channelcount<<3,6,1,2]))};e=function(){return r(i.ftyp,u,h,u,ot)};tt=function(n){return r(i.hdlr,ct[n])};a=function(n){return r(i.mdat,n)};nt=function(n){var t=new Uint8Array([0,0,0,0,0,0,0,2,0,0,0,3,0,1,95,144,n.duration>>>24&255,n.duration>>>16&255,n.duration>>>8&255,255&n.duration,85,196,0,0]);return n.samplerate&&(t[12]=n.samplerate>>>24&255,t[13]=n.samplerate>>>16&255,t[14]=n.samplerate>>>8&255,t[15]=255&n.samplerate),r(i.mdhd,t)};g=function(n){return r(i.mdia,nt(n),tt(n.type),y(n))};v=function(n){return r(i.mfhd,new Uint8Array([0,0,0,0,(4278190080&n)>>24,(16711680&n)>>16,(65280&n)>>8,255&n]))};y=function(n){return r(i.minf,"video"===n.type?r(i.vmhd,lt):r(i.smhd,at),c(),rt(n))};p=function(n,t){for(var f=[],u=t.length;u--;)f[u]=ft(t[u]);return r.apply(null,[i.moof,v(n)].concat(f))};o=function(n){for(var t=n.length,u=[];t--;)u[t]=k(n[t]);return r.apply(null,[i.moov,b(4294967295)].concat(u).concat(w(n)))};w=function(n){for(var t=n.length,u=[];t--;)u[t]=et(n[t]);return r.apply(null,[i.mvex].concat(u))};b=function(n){var t=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,2,0,1,95,144,(4278190080&n)>>24,(16711680&n)>>16,(65280&n)>>8,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 r(i.mvhd,t)};it=function(n){for(var u,f=n.samples||[],e=new Uint8Array(4+f.length),t=0;t<f.length;t++)u=f[t].flags,e[t+4]=u.dependsOn<<4|u.isDependedOn<<2|u.hasRedundancy;return r(i.sdtp,e)};rt=function(n){return r(i.stbl,ut(n),r(i.stts,wt),r(i.stsc,yt),r(i.stsz,pt),r(i.stco,f))},function(){var n,t;ut=function(u){return r(i.stsd,new Uint8Array([0,0,0,0,0,0,0,1]),"video"===u.type?n(u):t(u))};n=function(n){for(var u=n.sps||[],f=n.pps||[],e=[],o=[],t=0;t<u.length;t++)e.push((65280&u[t].byteLength)>>>8),e.push(255&u[t].byteLength),e=e.concat(Array.prototype.slice.call(u[t]));for(t=0;t<f.length;t++)o.push((65280&f[t].byteLength)>>>8),o.push(255&f[t].byteLength),o=o.concat(Array.prototype.slice.call(f[t]));return r(i.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,(65280&n.width)>>8,255&n.width,(65280&n.height)>>8,255&n.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]),r(i.avcC,new Uint8Array([1,n.profileIdc,n.profileCompatibility,n.levelIdc,255].concat([u.length]).concat(e).concat([f.length]).concat(o))),r(i.btrt,new Uint8Array([0,28,156,128,0,45,198,192,0,45,198,192])))};t=function(n){return r(i.mp4a,new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,(65280&n.channelcount)>>8,255&n.channelcount,(65280&n.samplesize)>>8,255&n.samplesize,0,0,0,0,(65280&n.samplerate)>>8,255&n.samplerate,0,0]),l(n))}}();bt=function(){return r(i.styp,u,h,u)};d=function(n){var t=new Uint8Array([0,0,0,7,0,0,0,0,0,0,0,0,(4278190080&n.id)>>24,(16711680&n.id)>>16,(65280&n.id)>>8,255&n.id,0,0,0,0,(4278190080&n.duration)>>24,(16711680&n.duration)>>16,(65280&n.duration)>>8,255&n.duration,0,0,0,0,0,0,0,0,0,0,0,0,1,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,(65280&n.width)>>8,255&n.width,0,0,(65280&n.height)>>8,255&n.height,0,0]);return r(i.tkhd,t)};ft=function(n){var u,f,t,e,o;return u=r(i.tfhd,new Uint8Array([0,0,0,58,(4278190080&n.id)>>24,(16711680&n.id)>>16,(65280&n.id)>>8,255&n.id,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0])),f=r(i.tfdt,new Uint8Array([0,0,0,0,n.baseMediaDecodeTime>>>24&255,n.baseMediaDecodeTime>>>16&255,n.baseMediaDecodeTime>>>8&255,255&n.baseMediaDecodeTime])),o=88,"audio"===n.type?(t=s(n,o),r(i.traf,u,f,t)):(e=it(n),t=s(n,e.length+o),r(i.traf,u,f,t,e))};k=function(n){return n.duration=n.duration||4294967295,r(i.trak,d(n),g(n))};et=function(n){var t=new Uint8Array([0,0,0,0,(4278190080&n.id)>>24,(16711680&n.id)>>16,(65280&n.id)>>8,255&n.id,0,0,0,1,0,0,0,0,0,0,0,0,0,1,0,1]);return"video"!==n.type&&(t[t.length-1]=0),r(i.trex,t)},function(){var t,u,n;n=function(n,t){var i=0,r=0,u=0,f=0;return n.length&&(void 0!==n[0].duration&&(i=1),void 0!==n[0].size&&(r=2),void 0!==n[0].flags&&(u=4),void 0!==n[0].compositionTimeOffset&&(f=8)),[0,0,i|r|u|f,1,(4278190080&n.length)>>>24,(16711680&n.length)>>>16,(65280&n.length)>>>8,255&n.length,(4278190080&t)>>>24,(16711680&t)>>>16,(65280&t)>>>8,255&t]};u=function(t,u){var o,e,f,s;for(e=t.samples||[],u+=20+16*e.length,o=n(e,u),s=0;s<e.length;s++)f=e[s],o=o.concat([(4278190080&f.duration)>>>24,(16711680&f.duration)>>>16,(65280&f.duration)>>>8,255&f.duration,(4278190080&f.size)>>>24,(16711680&f.size)>>>16,(65280&f.size)>>>8,255&f.size,f.flags.isLeading<<2|f.flags.dependsOn,f.flags.isDependedOn<<6|f.flags.hasRedundancy<<4|f.flags.paddingValue<<1|f.flags.isNonSyncSample,61440&f.flags.degradationPriority,15&f.flags.degradationPriority,(4278190080&f.compositionTimeOffset)>>>24,(16711680&f.compositionTimeOffset)>>>16,(65280&f.compositionTimeOffset)>>>8,255&f.compositionTimeOffset]);return r(i.trun,new Uint8Array(o))};t=function(t,u){var o,e,f,s;for(e=t.samples||[],u+=20+8*e.length,o=n(e,u),s=0;s<e.length;s++)f=e[s],o=o.concat([(4278190080&f.duration)>>>24,(16711680&f.duration)>>>16,(65280&f.duration)>>>8,255&f.duration,(4278190080&f.size)>>>24,(16711680&f.size)>>>16,(65280&f.size)>>>8,255&f.size]);return r(i.trun,new Uint8Array(o))};s=function(n,i){return"audio"===n.type?t(n,i):u(n,i)}}();t.exports={ftyp:e,mdat:a,moof:p,moov:o,initSegment:function(n){var t,i=e(),r=o(n);return t=new Uint8Array(i.byteLength+r.byteLength),t.set(i),t.set(r,i.byteLength),t}}},{}],45:[function(n,t){"use strict";var f,i,s,r,v,h,e,l,a,y,c=n("../utils/stream.js"),o=n("./mp4-generator.js"),u=n("../m2ts/m2ts.js"),p=n("../codecs/adts.js"),w=n("../codecs/h264").H264Stream,b=n("../aac");v={size:0,flags:{isLeading:0,dependsOn:1,isDependedOn:0,hasRedundancy:0,degradationPriority:0}};a=function(n,t){var i;if(n.length!==t.length)return!1;for(i=0;i<n.length;i++)if(n[i]!==t[i])return!1;return!0};y=function(n){for(var i,r=0,t=0;t<n.length;t++)i=n[t],r+=i.data.byteLength;return r};i=function(n){var t=[],u=0,r=0;i.prototype.init.call(this);this.push=function(i){h(n,i);n&&(n.audioobjecttype=i.audioobjecttype,n.channelcount=i.channelcount,n.samplerate=i.samplerate,n.samplingfrequencyindex=i.samplingfrequencyindex,n.samplesize=i.samplesize);t.push(i)};this.setEarliestDts=function(t){r=t-n.timelineStartInfo.baseMediaDecodeTime};this.flush=function(){var f,i,s,r;return 0===t.length?void this.trigger("done"):(f=this.trimAdtsFramesByEarliestDts_(t),n.samples=this.generateSampleTable_(f),s=o.mdat(this.concatenateFrameData_(f)),t=[],l(n),i=o.moof(u,[n]),r=new Uint8Array(i.byteLength+s.byteLength),u++,r.set(i),r.set(s,i.byteLength),e(n),this.trigger("data",{track:n,boxes:r}),void this.trigger("done"))};this.trimAdtsFramesByEarliestDts_=function(t){return n.minSegmentDts>=r?t:(n.minSegmentDts=1/0,t.filter(function(t){return t.dts>=r?(n.minSegmentDts=Math.min(n.minSegmentDts,t.dts),n.minSegmentPts=n.minSegmentDts,!0):!1}))};this.generateSampleTable_=function(n){for(var i,r=[],t=0;t<n.length;t++)i=n[t],r.push({size:i.data.byteLength,duration:1024});return r};this.concatenateFrameData_=function(n){for(var i,r=0,u=new Uint8Array(y(n)),t=0;t<n.length;t++)i=n[t],u.set(i.data,r),r+=i.data.byteLength;return u}};i.prototype=new c;f=function(n){var t,r,u=0,i=[];f.prototype.init.call(this);delete n.minPTS;this.gopCache_=[];this.push=function(u){h(n,u);"seq_parameter_set_rbsp"!==u.nalUnitType||t||(t=u.config,n.width=t.width,n.height=t.height,n.sps=[u.data],n.profileIdc=t.profileIdc,n.levelIdc=t.levelIdc,n.profileCompatibility=t.profileCompatibility);"pic_parameter_set_rbsp"!==u.nalUnitType||r||(r=u.data,n.pps=[u.data]);i.push(u)};this.flush=function(){for(var c,r,t,f,s,e;i.length&&"access_unit_delimiter_rbsp"!==i[0].nalUnitType;)i.shift();return 0===i.length?(this.resetStream_(),void this.trigger("done")):(c=this.groupNalsIntoFrames_(i),t=this.groupFramesIntoGops_(c),t[0][0].keyFrame||(r=this.getGopForFusion_(i[0],n),r?(t.unshift(r),t.byteLength+=r.byteLength,t.nalCount+=r.nalCount,t.pts=r.pts,t.dts=r.dts,t.duration+=r.duration):t=this.extendFirstKeyFrame_(t)),h(n,t),n.samples=this.generateSampleTable_(t),s=o.mdat(this.concatenateNalData_(t)),this.gopCache_.unshift({gop:t.pop(),pps:n.pps,sps:n.sps}),this.gopCache_.length=Math.min(6,this.gopCache_.length),i=[],l(n),this.trigger("timelineStartInfo",n.timelineStartInfo),f=o.moof(u,[n]),e=new Uint8Array(f.byteLength+s.byteLength),u++,e.set(f),e.set(s,f.byteLength),this.trigger("data",{track:n,boxes:e}),this.resetStream_(),void this.trigger("done"))};this.resetStream_=function(){e(n);t=void 0;r=void 0};this.getGopForFusion_=function(t){for(var i,u,f,r,o=1/0,e=0;e<this.gopCache_.length;e++)r=this.gopCache_[e],f=r.gop,n.pps&&a(n.pps[0],r.pps[0])&&n.sps&&a(n.sps[0],r.sps[0])&&(f.dts<n.timelineStartInfo.dts||(i=t.dts-f.dts-f.duration,i>=-1e4&&45e3>=i&&(!u||o>i)&&(u=r,o=i)));return u?u.gop:null};this.extendFirstKeyFrame_=function(n){var t;return n[0][0].keyFrame||(t=n.shift(),n.byteLength-=t.byteLength,n.nalCount-=t.nalCount,n[0][0].dts=t.dts,n[0][0].pts=t.pts,n[0][0].duration+=t.duration),n};this.groupNalsIntoFrames_=function(n){var u,i,t=[],r=[];for(t.byteLength=0,u=0;u<n.length;u++)i=n[u],"access_unit_delimiter_rbsp"===i.nalUnitType?(t.length&&(t.duration=i.dts-t.dts,r.push(t)),t=[i],t.byteLength=i.data.byteLength,t.pts=i.pts,t.dts=i.dts):("slice_layer_without_partitioning_rbsp_idr"===i.nalUnitType&&(t.keyFrame=!0),t.duration=i.dts-t.dts,t.byteLength+=i.data.byteLength,t.push(i));return(r.length&&!t.duration||t.duration<=0)&&(t.duration=r[r.length-1].duration),r.push(t),r};this.groupFramesIntoGops_=function(n){var u,r,t=[],i=[];for(t.byteLength=0,t.nalCount=0,t.duration=0,t.pts=n[0].pts,t.dts=n[0].dts,i.byteLength=0,i.nalCount=0,i.duration=0,i.pts=n[0].pts,i.dts=n[0].dts,u=0;u<n.length;u++)r=n[u],r.keyFrame?(t.length&&(i.push(t),i.byteLength+=t.byteLength,i.nalCount+=t.nalCount,i.duration+=t.duration),t=[r],t.nalCount=r.length,t.byteLength=r.byteLength,t.pts=r.pts,t.dts=r.dts,t.duration=r.duration):(t.duration+=r.duration,t.nalCount+=r.length,t.byteLength+=r.byteLength,t.push(r));return i.length&&t.duration<=0&&(t.duration=i[i.length-1].duration),i.byteLength+=t.byteLength,i.nalCount+=t.nalCount,i.duration+=t.duration,i.push(t),i};this.generateSampleTable_=function(n,t){for(var f,i,e,r,o=t||0,s=[],u=0;u<n.length;u++)for(e=n[u],f=0;f<e.length;f++)r=e[f],i=Object.create(v),i.dataOffset=o,i.compositionTimeOffset=r.pts-r.dts,i.duration=r.duration,i.size=4*r.length,i.size+=r.byteLength,r.keyFrame&&(i.flags.dependsOn=2),o+=i.size,s.push(i);return s};this.concatenateNalData_=function(n){for(var i,r,e,o,u,f=0,h=n.byteLength,c=n.nalCount,l=h+4*c,s=new Uint8Array(l),a=new DataView(s.buffer),t=0;t<n.length;t++)for(e=n[t],i=0;i<e.length;i++)for(o=e[i],r=0;r<o.length;r++)u=o[r],a.setUint32(f,u.data.byteLength),f+=4,s.set(u.data,f),f+=u.data.byteLength;return s}};f.prototype=new c;h=function(n,t){"number"==typeof t.pts&&(void 0===n.timelineStartInfo.pts&&(n.timelineStartInfo.pts=t.pts),n.minSegmentPts=void 0===n.minSegmentPts?t.pts:Math.min(n.minSegmentPts,t.pts),n.maxSegmentPts=void 0===n.maxSegmentPts?t.pts:Math.max(n.maxSegmentPts,t.pts));"number"==typeof t.dts&&(void 0===n.timelineStartInfo.dts&&(n.timelineStartInfo.dts=t.dts),n.minSegmentDts=void 0===n.minSegmentDts?t.dts:Math.min(n.minSegmentDts,t.dts),n.maxSegmentDts=void 0===n.maxSegmentDts?t.dts:Math.max(n.maxSegmentDts,t.dts))};e=function(n){delete n.minSegmentDts;delete n.maxSegmentDts;delete n.minSegmentPts;delete n.maxSegmentPts};l=function(n){var t,i=n.minSegmentDts-n.timelineStartInfo.dts,r=n.minSegmentPts-n.minSegmentDts;n.baseMediaDecodeTime=n.timelineStartInfo.baseMediaDecodeTime;n.baseMediaDecodeTime+=i;n.baseMediaDecodeTime-=r;n.baseMediaDecodeTime=Math.max(0,n.baseMediaDecodeTime);"audio"===n.type&&(t=n.samplerate/9e4,n.baseMediaDecodeTime*=t,n.baseMediaDecodeTime=Math.floor(n.baseMediaDecodeTime))};r=function(n){this.numberOfTracks=0;this.metadataStream=n.metadataStream;this.remuxTracks="undefined"!=typeof n.remux?!!n.remux:!0;this.pendingTracks=[];this.videoTrack=null;this.pendingBoxes=[];this.pendingCaptions=[];this.pendingMetadata=[];this.pendingBytes=0;this.emittedTracks=0;r.prototype.init.call(this);this.push=function(n){return n.text?this.pendingCaptions.push(n):n.frames?this.pendingMetadata.push(n):(this.pendingTracks.push(n.track),this.pendingBoxes.push(n.boxes),this.pendingBytes+=n.boxes.byteLength,"video"===n.track.type&&(this.videoTrack=n.track),void("audio"===n.track.type&&(this.audioTrack=n.track)))}};r.prototype=new c;r.prototype.flush=function(){var t,r,f,n,e=0,i={captions:[],metadata:[]},u=0;if(!(0===this.pendingTracks.length||this.remuxTracks&&this.pendingTracks.length<this.numberOfTracks)){for(this.videoTrack?u=this.videoTrack.timelineStartInfo.pts:this.audioTrack&&(u=this.audioTrack.timelineStartInfo.pts),i.type=1===this.pendingTracks.length?this.pendingTracks[0].type:"combined",this.emittedTracks+=this.pendingTracks.length,f=o.initSegment(this.pendingTracks),i.data=new Uint8Array(f.byteLength+this.pendingBytes),i.data.set(f),e+=f.byteLength,n=0;n<this.pendingBoxes.length;n++)i.data.set(this.pendingBoxes[n],e),e+=this.pendingBoxes[n].byteLength;for(n=0;n<this.pendingCaptions.length;n++)t=this.pendingCaptions[n],t.startTime=t.startPts-u,t.startTime/=9e4,t.endTime=t.endPts-u,t.endTime/=9e4,i.captions.push(t);for(n=0;n<this.pendingMetadata.length;n++)r=this.pendingMetadata[n],r.cueTime=r.pts-u,r.cueTime/=9e4,i.metadata.push(r);i.metadata.dispatchType=this.metadataStream.dispatchType;this.pendingTracks.length=0;this.videoTrack=null;this.pendingBoxes.length=0;this.pendingCaptions.length=0;this.pendingBytes=0;this.pendingMetadata.length=0;this.trigger("data",i);this.emittedTracks>=this.numberOfTracks&&(this.trigger("done"),this.emittedTracks=0)}};s=function(n){var h,o,nt,tt,l,a,k,v,y,c,it,t,d,g=this;this.setupAacPipeline=function(){this.metadataStream=new u.MetadataStream;n.metadataStream=this.metadataStream;v=new b;a=new p;t=new r(n);d=v;v.pipe(a);v.pipe(this.metadataStream);this.metadataStream.pipe(t);this.metadataStream.on("timestamp",function(n){v.setTimestamp(n.timestamp)});this.addAacListener()};this.addAacListener=function(){v.on("data",function(n){if("timed-metadata"===n.type){var r={timelineStartInfo:{baseMediaDecodeTime:0},codec:"adts",type:"audio"};r&&!c&&(t.numberOfTracks++,c=new i(r),a.pipe(c).pipe(t))}})};this.setupTsPipeline=function(){this.metadataStream=new u.MetadataStream;n.metadataStream=this.metadataStream;nt=new u.TransportPacketStream;tt=new u.TransportParseStream;l=new u.ElementaryStream;a=new p;k=new w;it=new u.CaptionStream;t=new r(n);d=nt;nt.pipe(tt).pipe(l);l.pipe(k);l.pipe(a);l.pipe(this.metadataStream).pipe(t);k.pipe(it).pipe(t);this.addTsListener()};this.addTsListener=function(){l.on("data",function(n){var r;if("metadata"===n.type){for(r=n.tracks.length;r--;)h||"video"!==n.tracks[r].type?o||"audio"!==n.tracks[r].type||(o=n.tracks[r],o.timelineStartInfo.baseMediaDecodeTime=g.baseMediaDecodeTime):(h=n.tracks[r],h.timelineStartInfo.baseMediaDecodeTime=g.baseMediaDecodeTime);h&&!y&&(t.numberOfTracks++,y=new f(h),y.on("timelineStartInfo",function(n){o&&(o.timelineStartInfo=n,c.setEarliestDts(n.dts))}),k.pipe(y).pipe(t));o&&!c&&(t.numberOfTracks++,c=new i(o),a.pipe(c).pipe(t))}})};s.prototype.init.call(this);n=n||{};this.baseMediaDecodeTime=n.baseMediaDecodeTime||0;void 0===n.aacfile?this.setupTsPipeline():this.setupAacPipeline();this.setBaseMediaDecodeTime=function(n){this.baseMediaDecodeTime=n;o&&(o.timelineStartInfo.dts=void 0,o.timelineStartInfo.pts=void 0,e(o),o.timelineStartInfo.baseMediaDecodeTime=n);h&&(y.gopCache_=[],h.timelineStartInfo.dts=void 0,h.timelineStartInfo.pts=void 0,e(h),h.timelineStartInfo.baseMediaDecodeTime=n)};this.push=function(n){d.push(n)};this.flush=function(){d.flush()};t.on("data",function(n){g.trigger("data",n)});t.on("done",function(){g.trigger("done")})};s.prototype=new c;t.exports={Transmuxer:s,VideoSegmentStream:f,AudioSegmentStream:i}},{"../aac":30,"../codecs/adts.js":31,"../codecs/h264":32,"../m2ts/m2ts.js":40,"../utils/stream.js":49,"./mp4-generator.js":44}],46:[function(n,t){"use strict";var f={8:"audio",9:"video",18:"metadata"},i=function(n){return"0x"+("00"+n.toString(16)).slice(-2).toUpperCase()},r=function(n){for(var t,r=[];n.byteLength>0;){switch(t=0,n.byteLength){default:r.push(i(n[t++]));case 7:r.push(i(n[t++]));case 6:r.push(i(n[t++]));case 5:r.push(i(n[t++]));case 4:r.push(i(n[t++]));case 3:r.push(i(n[t++]));case 2:r.push(i(n[t++]));case 1:r.push(i(n[t++]))}n=n.subarray(t)}return r.join(" ")},e=function(n,t){var i=n[1]&parseInt("01111111",2)<<16|n[2]<<8|n[3];return t=t||{},t.avcPacketType=["AVC Sequence Header","AVC NALU","AVC End-of-Sequence"][n[0]],t.CompositionTime=n[1]&parseInt("10000000",2)?-i:i,1===n[0]?t.nalUnitTypeRaw=r(n.subarray(4,100)):t.data=r(n.subarray(4)),t},o=function(n,t){var i=n[0]&parseInt("00001111",2);return t=t||{},t.frameType=["Unknown","Keyframe (for AVC, a seekable frame)","Inter frame (for AVC, a nonseekable frame)","Disposable inter frame (H.263 only)","Generated keyframe (reserved for server use only)","Video info/command frame"][(n[0]&parseInt("11110000",2))>>>4],t.codecID=i,7===i?e(n.subarray(1),t):t},s=function(n,t){return t=t||{},t.aacPacketType=["AAC Sequence Header","AAC Raw"][n[0]],t.data=r(n.subarray(1)),t},h=function(n,t){var i=(n[0]&parseInt("11110000",2))>>>4;return t=t||{},t.soundFormat=["Linear PCM, platform endian","ADPCM","MP3","Linear PCM, little endian","Nellymoser 16-kHz mono","Nellymoser 8-kHz mono","Nellymoser","G.711 A-law logarithmic PCM","G.711 mu-law logarithmic PCM","reserved","AAC","Speex","MP3 8-Khz","Device-specific sound"][i],t.soundRate=["5.5-kHz","11-kHz","22-kHz","44-kHz"][(n[0]&parseInt("00001100",2))>>>2],t.soundSize=(n[0]&parseInt("00000010",2))>>>1?"16-bit":"8-bit",t.soundType=n[0]&parseInt("00000001",2)?"Stereo":"Mono",10===i?s(n.subarray(1),t):t},c=function(n){return{tagType:f[n[0]],dataSize:n[1]<<16|n[2]<<8|n[3],timestamp:n[7]<<24|n[4]<<16|n[5]<<8|n[6],streamID:n[8]<<16|n[9]<<8|n[10]}},u=function(n){var t=c(n);switch(n[0]){case 8:h(n.subarray(11),t);break;case 9:o(n.subarray(11),t)}return t},l=function(n){var i,r,t=9,f=[];for(t+=4;t<n.byteLength;)i=n[t+1]<<16,i|=n[t+2]<<8,i|=n[t+3],i+=11,r=n.subarray(t,t+i),f.push(u(r)),t+=i+4;return f},a=function(n){return JSON.stringify(n,null,2)};t.exports={inspectTag:u,inspect:l,textify:a}},{}],47:[function(n,t){(function(n){"use strict";var i,f,u=function(n){var t="";return t+=String.fromCharCode(n[0]),t+=String.fromCharCode(n[1]),t+=String.fromCharCode(n[2]),t+String.fromCharCode(n[3])},r=function(n){return new Date(1e3*n-20828448e5)},e=function(n){return{isLeading:(12&n[0])>>>2,dependsOn:3&n[0],isDependedOn:(192&n[1])>>>6,hasRedundancy:(48&n[1])>>>4,paddingValue:(14&n[1])>>>1,isNonSyncSample:1&n[1],degradationPriority:n[2]<<8|n[3]}},s=function(n){for(var r,u=new DataView(n.buffer,n.byteOffset,n.byteLength),t=[],i=0;i+4<n.length;i+=r){if(r=u.getUint32(i),i+=4,0>=r)return;switch(31&n[i]){case 1:t.push("slice_layer_without_partitioning_rbsp");break;case 5:t.push("slice_layer_without_partitioning_rbsp_idr");break;case 6:t.push("sei_rbsp");break;case 7:t.push("seq_parameter_set_rbsp");break;case 8:t.push("pic_parameter_set_rbsp");break;case 9:t.push("access_unit_delimiter_rbsp");break;default:t.push(31&n[i])}}return t},o={avc1:function(n){var t=new DataView(n.buffer,n.byteOffset,n.byteLength);return{dataReferenceIndex:t.getUint16(6),width:t.getUint16(24),height:t.getUint16(26),horizresolution:t.getUint16(28)+t.getUint16(30)/16,vertresolution:t.getUint16(32)+t.getUint16(34)/16,frameCount:t.getUint16(40),depth:t.getUint16(74),config:i(n.subarray(78,n.byteLength))}},avcC:function(n){for(var f,i,e=new DataView(n.buffer,n.byteOffset,n.byteLength),u={configurationVersion:n[0],avcProfileIndication:n[1],profileCompatibility:n[2],avcLevelIndication:n[3],lengthSizeMinusOne:3&n[4],sps:[],pps:[]},o=31&n[5],t=6,r=0;o>r;r++)i=e.getUint16(t),t+=2,u.sps.push(new Uint8Array(n.subarray(t,t+i))),t+=i;for(f=n[t],t++,r=0;f>r;r++)i=e.getUint16(t),t+=2,u.pps.push(new Uint8Array(n.subarray(t,t+i))),t+=i;return u},btrt:function(n){var t=new DataView(n.buffer,n.byteOffset,n.byteLength);return{bufferSizeDB:t.getUint32(0),maxBitrate:t.getUint32(4),avgBitrate:t.getUint32(8)}},esds:function(n){return{version:n[0],flags:new Uint8Array(n.subarray(1,4)),esId:n[6]<<8|n[7],streamPriority:31&n[8],decoderConfig:{objectProfileIndication:n[11],streamType:n[12]>>>2&63,bufferSize:n[13]<<16|n[14]<<8|n[15],maxBitrate:n[16]<<24|n[17]<<16|n[18]<<8|n[19],avgBitrate:n[20]<<24|n[21]<<16|n[22]<<8|n[23],decoderConfigDescriptor:{tag:n[24],length:n[25],audioObjectType:n[26]>>>3&31,samplingFrequencyIndex:(7&n[26])<<1|n[27]>>>7&1,channelConfiguration:n[27]>>>3&15}}}},ftyp:function(n){for(var r=new DataView(n.buffer,n.byteOffset,n.byteLength),i={majorBrand:u(n.subarray(0,4)),minorVersion:r.getUint32(4),compatibleBrands:[]},t=8;t<n.byteLength;)i.compatibleBrands.push(u(n.subarray(t,t+4))),t+=4;return i},dinf:function(n){return{boxes:i(n)}},dref:function(n){return{version:n[0],flags:new Uint8Array(n.subarray(1,4)),dataReferences:i(n.subarray(8))}},hdlr:function(t){for(var f=new DataView(t.buffer,t.byteOffset,t.byteLength),r={version:f.getUint8(0),flags:new Uint8Array(t.subarray(1,4)),handlerType:u(t.subarray(8,12)),name:""},i=8,i=24;i<t.byteLength;i++){if(0===t[i]){i++;break}r.name+=String.fromCharCode(t[i])}return r.name=decodeURIComponent(n.escape(r.name)),r},mdat:function(n){return{byteLength:n.byteLength,nals:s(n)}},mdhd:function(n){var f,u=new DataView(n.buffer,n.byteOffset,n.byteLength),t=4,i={version:u.getUint8(0),flags:new Uint8Array(n.subarray(1,4)),language:""};return 1===i.version?(t+=4,i.creationTime=r(u.getUint32(t)),t+=8,i.modificationTime=r(u.getUint32(t)),t+=4,i.timescale=u.getUint32(t),t+=8,i.duration=u.getUint32(t)):(i.creationTime=r(u.getUint32(t)),t+=4,i.modificationTime=r(u.getUint32(t)),t+=4,i.timescale=u.getUint32(t),t+=4,i.duration=u.getUint32(t)),t+=4,f=u.getUint16(t),i.language+=String.fromCharCode((f>>10)+96),i.language+=String.fromCharCode(((960&f)>>5)+96),i.language+=String.fromCharCode((31&f)+96),i},mdia:function(n){return{boxes:i(n)}},mfhd:function(n){return{version:n[0],flags:new Uint8Array(n.subarray(1,4)),sequenceNumber:n[4]<<24|n[5]<<16|n[6]<<8|n[7]}},minf:function(n){return{boxes:i(n)}},mp4a:function(n){var t=new DataView(n.buffer,n.byteOffset,n.byteLength),r={dataReferenceIndex:t.getUint16(6),channelcount:t.getUint16(16),samplesize:t.getUint16(18),samplerate:t.getUint16(24)+t.getUint16(26)/65536};return n.byteLength>28&&(r.streamDescriptor=i(n.subarray(28))[0]),r},moof:function(n){return{boxes:i(n)}},moov:function(n){return{boxes:i(n)}},mvex:function(n){return{boxes:i(n)}},mvhd:function(n){var i=new DataView(n.buffer,n.byteOffset,n.byteLength),t=4,u={version:i.getUint8(0),flags:new Uint8Array(n.subarray(1,4))};return 1===u.version?(t+=4,u.creationTime=r(i.getUint32(t)),t+=8,u.modificationTime=r(i.getUint32(t)),t+=4,u.timescale=i.getUint32(t),t+=8,u.duration=i.getUint32(t)):(u.creationTime=r(i.getUint32(t)),t+=4,u.modificationTime=r(i.getUint32(t)),t+=4,u.timescale=i.getUint32(t),t+=4,u.duration=i.getUint32(t)),t+=4,u.rate=i.getUint16(t)+i.getUint16(t+2)/16,t+=4,u.volume=i.getUint8(t)+i.getUint8(t+1)/8,t+=2,t+=2,t+=8,u.matrix=new Uint32Array(n.subarray(t,t+36)),t+=36,t+=24,u.nextTrackId=i.getUint32(t),u},pdin:function(n){var t=new DataView(n.buffer,n.byteOffset,n.byteLength);return{version:t.getUint8(0),flags:new Uint8Array(n.subarray(1,4)),rate:t.getUint32(4),initialDelay:t.getUint32(8)}},sdtp:function(n){for(var i={version:n[0],flags:new Uint8Array(n.subarray(1,4)),samples:[]},t=4;t<n.byteLength;t++)i.samples.push({dependsOn:(48&n[t])>>4,isDependedOn:(12&n[t])>>2,hasRedundancy:3&n[t]});return i},sidx:function(n){for(var i=new DataView(n.buffer,n.byteOffset,n.byteLength),r={version:n[0],flags:new Uint8Array(n.subarray(1,4)),references:[],referenceId:i.getUint32(4),timescale:i.getUint32(8),earliestPresentationTime:i.getUint32(12),firstOffset:i.getUint32(16)},u=i.getUint16(22),t=24;u;t+=12,u--)r.references.push({referenceType:(128&n[t])>>>7,referencedSize:2147483647&i.getUint32(t),subsegmentDuration:i.getUint32(t+4),startsWithSap:!!(128&n[t+8]),sapType:(112&n[t+8])>>>4,sapDeltaTime:268435455&i.getUint32(t+8)});return r},smhd:function(n){return{version:n[0],flags:new Uint8Array(n.subarray(1,4)),balance:n[4]+n[5]/256}},stbl:function(n){return{boxes:i(n)}},stco:function(n){for(var i=new DataView(n.buffer,n.byteOffset,n.byteLength),r={version:n[0],flags:new Uint8Array(n.subarray(1,4)),chunkOffsets:[]},u=i.getUint32(4),t=8;u;t+=4,u--)r.chunkOffsets.push(i.getUint32(t));return r},stsc:function(n){for(var i=new DataView(n.buffer,n.byteOffset,n.byteLength),r=i.getUint32(4),u={version:n[0],flags:new Uint8Array(n.subarray(1,4)),sampleToChunks:[]},t=8;r;t+=12,r--)u.sampleToChunks.push({firstChunk:i.getUint32(t),samplesPerChunk:i.getUint32(t+4),sampleDescriptionIndex:i.getUint32(t+8)});return u},stsd:function(n){return{version:n[0],flags:new Uint8Array(n.subarray(1,4)),sampleDescriptions:i(n.subarray(8))}},stsz:function(n){for(var i=new DataView(n.buffer,n.byteOffset,n.byteLength),r={version:n[0],flags:new Uint8Array(n.subarray(1,4)),sampleSize:i.getUint32(4),entries:[]},t=12;t<n.byteLength;t+=4)r.entries.push(i.getUint32(t));return r},stts:function(n){for(var i=new DataView(n.buffer,n.byteOffset,n.byteLength),r={version:n[0],flags:new Uint8Array(n.subarray(1,4)),timeToSamples:[]},u=i.getUint32(4),t=8;u;t+=8,u--)r.timeToSamples.push({sampleCount:i.getUint32(t),sampleDelta:i.getUint32(t+4)});return r},styp:function(n){return o.ftyp(n)},tfdt:function(n){return{version:n[0],flags:new Uint8Array(n.subarray(1,4)),baseMediaDecodeTime:n[4]<<24|n[5]<<16|n[6]<<8|n[7]}},tfhd:function(n){var i,r=new DataView(n.buffer,n.byteOffset,n.byteLength),t={version:n[0],flags:new Uint8Array(n.subarray(1,4)),trackId:r.getUint32(4)},u=1&t.flags[2],f=2&t.flags[2],e=8&t.flags[2],o=16&t.flags[2],s=32&t.flags[2];return i=8,u&&(i+=4,t.baseDataOffset=r.getUint32(12),i+=4),f&&(t.sampleDescriptionIndex=r.getUint32(i),i+=4),e&&(t.defaultSampleDuration=r.getUint32(i),i+=4),o&&(t.defaultSampleSize=r.getUint32(i),i+=4),s&&(t.defaultSampleFlags=r.getUint32(i)),t},tkhd:function(n){var i=new DataView(n.buffer,n.byteOffset,n.byteLength),t=4,u={version:i.getUint8(0),flags:new Uint8Array(n.subarray(1,4))};return 1===u.version?(t+=4,u.creationTime=r(i.getUint32(t)),t+=8,u.modificationTime=r(i.getUint32(t)),t+=4,u.trackId=i.getUint32(t),t+=4,t+=8,u.duration=i.getUint32(t)):(u.creationTime=r(i.getUint32(t)),t+=4,u.modificationTime=r(i.getUint32(t)),t+=4,u.trackId=i.getUint32(t),t+=4,t+=4,u.duration=i.getUint32(t)),t+=4,t+=8,u.layer=i.getUint16(t),t+=2,u.alternateGroup=i.getUint16(t),t+=2,u.volume=i.getUint8(t)+i.getUint8(t+1)/8,t+=2,t+=2,u.matrix=new Uint32Array(n.subarray(t,t+36)),t+=36,u.width=i.getUint16(t)+i.getUint16(t+2)/16,t+=4,u.height=i.getUint16(t)+i.getUint16(t+2)/16,u},traf:function(n){return{boxes:i(n)}},trak:function(n){return{boxes:i(n)}},trex:function(n){var t=new DataView(n.buffer,n.byteOffset,n.byteLength);return{version:n[0],flags:new Uint8Array(n.subarray(1,4)),trackId:t.getUint32(4),defaultSampleDescriptionIndex:t.getUint32(8),defaultSampleDuration:t.getUint32(12),defaultSampleSize:t.getUint32(16),sampleDependsOn:3&n[20],sampleIsDependedOn:(192&n[21])>>6,sampleHasRedundancy:(48&n[21])>>4,samplePaddingValue:(14&n[21])>>1,sampleIsDifferenceSample:!!(1&n[21]),sampleDegradationPriority:t.getUint16(22)}},trun:function(n){var i,r={version:n[0],flags:new Uint8Array(n.subarray(1,4)),samples:[]},u=new DataView(n.buffer,n.byteOffset,n.byteLength),c=1&r.flags[2],l=4&r.flags[2],o=1&r.flags[1],s=2&r.flags[1],a=4&r.flags[1],h=8&r.flags[1],f=u.getUint32(4),t=8;for(c&&(r.dataOffset=u.getUint32(t),t+=4),l&&f&&(i={flags:e(n.subarray(t,t+4))},t+=4,o&&(i.duration=u.getUint32(t),t+=4),s&&(i.size=u.getUint32(t),t+=4),h&&(i.compositionTimeOffset=u.getUint32(t),t+=4),r.samples.push(i),f--);f--;)i={},o&&(i.duration=u.getUint32(t),t+=4),s&&(i.size=u.getUint32(t),t+=4),a&&(i.flags=e(n.subarray(t,t+4)),t+=4),h&&(i.compositionTimeOffset=u.getUint32(t),t+=4),r.samples.push(i);return r},"url ":function(n){return{version:n[0],flags:new Uint8Array(n.subarray(1,4))}},vmhd:function(n){var t=new DataView(n.buffer,n.byteOffset,n.byteLength);return{version:n[0],flags:new Uint8Array(n.subarray(1,4)),graphicsmode:t.getUint16(4),opcolor:new Uint16Array([t.getUint16(6),t.getUint16(8),t.getUint16(10)])}}};i=function(n){for(var h,i,e,s,r,t=0,c=[],l=new ArrayBuffer(n.length),a=new Uint8Array(l),f=0;f<n.length;++f)a[f]=n[f];for(h=new DataView(l);t<n.byteLength;)i=h.getUint32(t),e=u(n.subarray(t+4,t+8)),s=i>1?t+i:n.byteLength,r=(o[e]||function(n){return{data:n}})(n.subarray(t+8,s)),r.size=i,r.type=e,c.push(r),t=s;return c};f=function(n,t){var i;return t=t||0,i=new Array(2*t+1).join(" "),n.map(function(n){return i+n.type+"\n"+Object.keys(n).filter(function(n){return"type"!==n&&"boxes"!==n}).map(function(t){var f=i+"  "+t+": ",r=n[t],u;return r instanceof Uint8Array||r instanceof Uint32Array?(u=Array.prototype.slice.call(new Uint8Array(r.buffer,r.byteOffset,r.byteLength)).map(function(n){return" "+("00"+n.toString(16)).slice(-2)}).join("").match(/.{1,24}/g),u?1===u.length?f+"<"+u.join("").slice(1)+">":f+"<\n"+u.map(function(n){return i+"  "+n}).join("\n")+"\n"+i+"  >":f+"<>"):f+JSON.stringify(r,null,2).split("\n").map(function(n,t){return 0===t?n:i+"  "+n}).join("\n")}).join("\n")+(n.boxes?"\n"+f(n.boxes,t+1):"")}).join("\n")};t.exports={inspect:i,textify:f}}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],48:[function(n,t){"use strict";var i;i=function(n){var i=n.byteLength,r=0,t=0;this.length=function(){return 8*i};this.bitsAvailable=function(){return 8*i+t};this.loadWord=function(){var f=n.byteLength-i,e=new Uint8Array(4),u=Math.min(4,i);if(0===u)throw new Error("no bytes available");e.set(n.subarray(f,f+u));r=new DataView(e.buffer).getUint32(0);t=8*u;i-=u};this.skipBits=function(n){var u;t>n?(r<<=n,t-=n):(n-=t,u=Math.floor(n/8),n-=8*u,i-=u,this.loadWord(),r<<=n,t-=n)};this.readBits=function(n){var u=Math.min(t,n),f=r>>>32-u;return t-=u,t>0?r<<=u:i>0&&this.loadWord(),u=n-u,u>0?f<<u|this.readBits(u):f};this.skipLeadingZeros=function(){for(var n=0;t>n;++n)if(0!=(r&2147483648>>>n))return r<<=n,t-=n,n;return this.loadWord(),n+this.skipLeadingZeros()};this.skipUnsignedExpGolomb=function(){this.skipBits(1+this.skipLeadingZeros())};this.skipExpGolomb=function(){this.skipBits(1+this.skipLeadingZeros())};this.readUnsignedExpGolomb=function(){var n=this.skipLeadingZeros();return this.readBits(n+1)-1};this.readExpGolomb=function(){var n=this.readUnsignedExpGolomb();return 1&n?1+n>>>1:-1*(n>>>1)};this.readBoolean=function(){return 1===this.readBits(1)};this.readUnsignedByte=function(){return this.readBits(8)};this.loadWord()};t.exports=i},{}],49:[function(n,t){"use strict";var i=function(){this.init=function(){var n={};this.on=function(t,i){n[t]||(n[t]=[]);n[t].push(i)};this.off=function(t,i){var r;return n[t]?(r=n[t].indexOf(i),n[t].splice(r,1),r>-1):!1};this.trigger=function(t){var r,i,u,f;if(r=n[t])if(2===arguments.length)for(u=r.length,i=0;u>i;++i)r[i].call(this,arguments[1]);else{for(f=[],i=arguments.length,i=1;i<arguments.length;++i)f.push(arguments[i]);for(u=r.length,i=0;u>i;++i)r[i].apply(this,f)}};this.dispose=function(){n={}}}};i.prototype.pipe=function(n){return this.on("data",function(t){n.push(t)}),this.on("done",function(){n.flush()}),n};i.prototype.push=function(n){this.trigger("data",n)};i.prototype.flush=function(){this.trigger("done")};t.exports=i},{}],50:[function(n,t){var f=arguments[3],i=arguments[4],u=arguments[5],r=JSON.stringify;t.exports=function(n){for(var o,h,c,v,y,t,s=Object.keys(u),e=0,l=s.length;l>e;e++)if(o=s[e],u[o].exports===n){t=o;break}if(!t){t=Math.floor(Math.pow(16,8)*Math.random()).toString(16);for(var a={},e=0,l=s.length;l>e;e++)o=s[e],a[o]=o;i[t]=[Function(["require","module","exports"],"("+n+")(self)"),a]}return h=Math.floor(Math.pow(16,8)*Math.random()).toString(16),c={},c[t]=t,i[h]=[Function(["require"],"require("+r(t)+")(self)"),c],v="("+f+")({"+Object.keys(i).map(function(n){return r(n)+":["+i[n][0]+","+r(i[n][1])+"]"}).join(",")+"},{},["+r(h)+"])",y=window.URL||window.webkitURL||window.mozURL||window.msURL,new Worker(y.createObjectURL(new Blob([v],{type:"text/javascript"})))}},{}],51:[function(n,t,i){(function(r){"use strict";function e(n){return n&&n.__esModule?n:{"default":n}}function d(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function g(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}var s;Object.defineProperty(i,"__esModule",{value:!0});var nt=function(){function n(n,t){for(var i,r=0;r<t.length;r++)i=t[r],i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}return function(t,i,r){return i&&n(t.prototype,i),r&&n(t,r),t}}(),v=function(n,t,i){for(var r,o,e,u=!0;u;){var f=n,s=t,h=i;if(u=!1,null===f&&(f=Function.prototype),r=Object.getOwnPropertyDescriptor(f,s),void 0!==r)return"value"in r?r.value:(o=r.get,void 0===o)?void 0:o.call(h);if(e=Object.getPrototypeOf(f),null===e)return;n=e;t=s;i=h;u=!0;r=e=void 0}},tt=n("./playlist-loader"),it=e(tt),rt=n("./playlist"),ut=e(rt),ft=n("./xhr"),et=e(ft),c=n("./decrypter"),ot=n("./bin-utils"),st=e(ot),l=n("videojs-contrib-media-sources"),ht=n("./m3u8"),ct=e(ht),lt="undefined"!=typeof window?window.videojs:"undefined"!=typeof r?r.videojs:null,u=e(lt),at=n("./resolve-url"),a=e(at),f={PlaylistLoader:it["default"],Playlist:ut["default"],Decrypter:c.Decrypter,AsyncStream:c.AsyncStream,decrypt:c.decrypt,utils:st["default"],xhr:et["default"]};f.GOAL_BUFFER_LENGTH=30;f.canPlaySource=function(){return u["default"].log.warn("HLS is no longer a tech. Please remove it from your player's techOrder.")};f.findSoleUncommonTimeRangesEnd_=function(n,t){var i=void 0,u=void 0,r=void 0,f=[],e=[],o=function(n){return n[0]<=r&&n[1]>=r};if(n)for(i=0;i<n.length;i++)u=n.start(i),r=n.end(i),e.push([u,r]);if(t)for(i=0;i<t.length;i++)u=t.start(i),r=t.end(i),e.some(o)||f.push(r);return 1!==f.length?null:f[0]};f.supportsNativeHls=function(){var n=document.createElement("video"),t=void 0,i=void 0;return u["default"].getComponent("Html5").isSupported()?(t=n.canPlayType("application/x-mpegURL"),i=n.canPlayType("application/vnd.apple.mpegURL"),/probably|maybe/.test(t)||/probably|maybe/.test(i)):!1}();f.isSupported=function(){return u["default"].log.warn("HLS is no longer a tech. Please remove it from your player's techOrder.")};f.comparePlaylistBandwidth=function(n,t){var i=void 0,r=void 0;return n.attributes&&n.attributes.BANDWIDTH&&(i=n.attributes.BANDWIDTH),i=i||window.Number.MAX_VALUE,t.attributes&&t.attributes.BANDWIDTH&&(r=t.attributes.BANDWIDTH),r=r||window.Number.MAX_VALUE,i-r};f.comparePlaylistResolution=function(n,t){var i=void 0,r=void 0;return n.attributes&&n.attributes.RESOLUTION&&n.attributes.RESOLUTION.width&&(i=n.attributes.RESOLUTION.width),i=i||window.Number.MAX_VALUE,t.attributes&&t.attributes.RESOLUTION&&t.attributes.RESOLUTION.width&&(r=t.attributes.RESOLUTION.width),r=r||window.Number.MAX_VALUE,i===r&&n.attributes.BANDWIDTH&&t.attributes.BANDWIDTH?n.attributes.BANDWIDTH-t.attributes.BANDWIDTH:i-r};var vt=1.2,yt=3e5,h=1/30,pt=u["default"].getComponent("Component"),wt=500,y=function(n){return n.retries&&n.retries>=2},p=function(n,t){var i=void 0;return n?(i=getComputedStyle(n),i?i[t]:""):""},bt=function(n,t,i){if(n){var r=n.segments[t],u=n.segments[t-1];i&&r&&(r.end=i,u?u.end&&(r.duration=r.end-u.end):r.duration=r.end)}},kt=function(n,t,i,r){if(!n)return!1;var u=n.segments,f=i===u.length-1,e=r.length&&u[u.length-1].end<=r.end(0);return n.endList&&"open"===t.readyState&&(f||e)},w=function(n){var t={codecCount:0,videoCodec:null,audioProfile:null};return t.codecCount=n.split(",").length,t.codecCount=t.codecCount||2,t.videoCodec=/(^|\s|,)+(avc1)[^ ,]*/i.exec(n),t.videoCodec=t.videoCodec&&t.videoCodec[2],t.audioProfile=/(^|\s|,)+mp4a.\d+\.(\d+)/i.exec(n),t.audioProfile=t.audioProfile&&t.audioProfile[2],t},b=function(n){return function(t){var i=void 0,f=[],e=this.tech_,r=e.buffered();if("undefined"==typeof t&&(t=e.currentTime()),!this.mediaSource||!this.mediaSource.mediaSource_||!this.mediaSource.mediaSource_.sourceBuffers.length)return u["default"].createTimeRanges([]);if(r&&r.length)for(i=0;i<r.length;i++)n(r.start(i),r.end(i),t)&&f.push([r.start(i),r.end(i)]);return u["default"].createTimeRanges(f)}},o=function(n){function t(n,i){var f=this,r;d(this,t);v(Object.getPrototypeOf(t.prototype),"constructor",this).call(this,n);r=void 0;n.options_&&n.options_.playerId&&(r=u["default"](n.options_.playerId),r.hls||Object.defineProperty(r,"hls",{get:function(){return u["default"].log.warn("player.hls is deprecated. Use player.tech.hls instead."),f}}));this.tech_=n;this.source_=i.source;this.mode_=i.mode;this.pendingSegment_=null;this.bandwidth=i.bandwidth||4194304;this.bytesReceived=0;this.loadingState_="none";"none"!==this.tech_.preload()&&(this.loadingState_="meta");this.startCheckingBuffer_();this.on(this.tech_,"seeking",function(){this.setCurrentTime(this.tech_.currentTime())});this.on(this.tech_,"error",function(){this.stopCheckingBuffer_()});this.on(this.tech_,"play",this.play)}return g(t,n),nt(t,[{key:"src",value:function(n){var t=this,i=void 0;n&&(this.mediaSource=new u["default"].MediaSource({mode:this.mode_}),this.mediaSource.addEventListener("sourceopen",this.handleSourceOpen.bind(this)),this.options_={},"undefined"!=typeof this.source_.withCredentials?this.options_.withCredentials=this.source_.withCredentials:u["default"].options.hls&&(this.options_.withCredentials=u["default"].options.hls.withCredentials),this.playlists=new f.PlaylistLoader(this.source_.src,this.options_.withCredentials),this.tech_.one("canplay",this.setupFirstPlay.bind(this)),this.playlists.on("loadedmetadata",function(){i=t.playlists.media();i.endList&&"metadata"!==t.tech_.preload()&&"none"!==t.tech_.preload()&&(t.loadingState_="segments");t.setupSourceBuffer_();t.setupFirstPlay();t.fillBuffer();t.tech_.trigger("loadedmetadata")}),this.playlists.on("error",function(){t.blacklistCurrentPlaylist_(t.playlists.error)}),this.playlists.on("loadedplaylist",function(){var r=t.playlists.media(),n=void 0;return r?(t.updateDuration(t.playlists.media()),n=t.seekable(),t.duration()===1/0&&0!==n.length&&t.mediaSource.addSeekableRange_(n.start(0),n.end(0)),void(i=r)):void t.playlists.media(t.selectPlaylist())}),this.playlists.on("mediachange",function(){t.tech_.trigger({type:"mediachange",bubbles:!0})}),this.tech_.el()&&this.tech_.src(u["default"].URL.createObjectURL(this.mediaSource)))}},{key:"handleSourceOpen",value:function(){this.sourceBuffer||this.setupSourceBuffer_();this.tech_.autoplay()&&this.play()}},{key:"excludeIncompatibleVariants_",value:function(n){var f=this.playlists.master,r=2,u=null,i=null,t=void 0;n.attributes&&n.attributes.CODECS&&(t=w(n.attributes.CODECS),u=t.videoCodec,i=t.audioProfile,r=t.codecCount);f.playlists.forEach(function(n){var t={codecCount:2,videoCodec:null,audioProfile:null};n.attributes&&n.attributes.CODECS&&(t=w(n.attributes.CODECS));t.codecCount!==r&&(n.excludeUntil=1/0);t.videoCodec!==u&&(n.excludeUntil=1/0);("5"===t.audioProfile&&"5"!==i||"5"===i&&"5"!==t.audioProfile)&&(n.excludeUntil=1/0)})}},{key:"setupSourceBuffer_",value:function(){var n=this.playlists.media(),t=void 0;n&&"open"===this.mediaSource.readyState&&(t="video/mp2t",n.attributes&&n.attributes.CODECS&&(t+='; codecs="'+n.attributes.CODECS+'"'),this.sourceBuffer=this.mediaSource.addSourceBuffer(t),this.excludeIncompatibleVariants_(n),this.sourceBuffer.addEventListener("updateend",this.updateEndHandler_.bind(this)))}},{key:"setupFirstPlay",value:function(){var n=void 0,t=this.playlists.media();this.duration()===1/0&&0===this.tech_.played().length&&!this.tech_.paused()&&this.sourceBuffer&&t&&this.tech_.readyState()>=1&&(this.playlists.trigger("firstplay"),n=this.seekable(),n.length&&this.tech_.setCurrentTime(n.end(0)))}},{key:"play",value:function(){return this.loadingState_="segments",this.tech_.ended()&&this.tech_.setCurrentTime(0),0===this.tech_.played().length?this.setupFirstPlay():void(this.duration()===1/0&&this.tech_.currentTime()<this.seekable().start(0)&&this.tech_.setCurrentTime(this.seekable().start(0)))}},{key:"setCurrentTime",value:function(n){var t=this.findBufferedRange_();return this.playlists&&this.playlists.media()&&this.playlists.media().segments?t&&t.length?n:this.pendingSegment_&&this.pendingSegment_.buffered?n:(this.lastSegmentLoaded_=null,this.cancelSegmentXhr(),this.keyXhr_&&(this.keyXhr_.aborted=!0,this.cancelKeyXhr()),void this.fillBuffer(this.playlists.getMediaIndexForTime_(n))):0}},{key:"duration",value:function(){var n=this.playlists;return n?this.mediaSource?this.mediaSource.duration:f.Playlist.duration(n.media()):0}},{key:"seekable",value:function(){var t=void 0,n=void 0;return this.playlists&&(t=this.playlists.media())?(n=f.Playlist.seekable(t),0===n.length?n:0===n.start(0)?u["default"].createTimeRanges([[this.playlists.expired_,this.playlists.expired_+n.end(0)]]):n):u["default"].createTimeRanges()}},{key:"updateDuration",value:function(n){var i=this,u=this.mediaSource.duration,t=f.Playlist.duration(n),r=this.tech_.buffered(),e=function o(){i.mediaSource.duration=t;i.tech_.trigger("durationchange");i.mediaSource.removeEventListener("sourceopen",o)};r.length>0&&(t=Math.max(t,r.end(r.length-1)));u!==t&&("open"!==this.mediaSource.readyState?this.mediaSource.addEventListener("sourceopen",e):this.sourceBuffer&&this.sourceBuffer.updating||(this.mediaSource.duration=t,this.tech_.trigger("durationchange")))}},{key:"resetSrc_",value:function(){this.cancelSegmentXhr();this.cancelKeyXhr();this.sourceBuffer&&"open"===this.mediaSource.readyState&&this.sourceBuffer.abort()}},{key:"cancelKeyXhr",value:function(){this.keyXhr_&&(this.keyXhr_.onreadystatechange=null,this.keyXhr_.abort(),this.keyXhr_=null)}},{key:"cancelSegmentXhr",value:function(){this.segmentXhr_&&(this.segmentXhr_.onreadystatechange=null,this.segmentXhr_.abort(),this.segmentXhr_=null);this.pendingSegment_=null}},{key:"dispose",value:function(){this.stopCheckingBuffer_();this.playlists&&this.playlists.dispose();this.resetSrc_();v(Object.getPrototypeOf(t.prototype),"dispose",this).call(this)}},{key:"selectPlaylist",value:function(){var l=void 0,i=this.playlists.master.playlists.slice(),e=[],v=+new Date,r=void 0,n=void 0,o=void 0,u=void 0,s=void 0,a=void 0,h=void 0,c=void 0,t;for(i.sort(f.comparePlaylistBandwidth),i=i.filter(function(n){return"undefined"!=typeof n.excludeUntil?v>=n.excludeUntil:!0}),r=i.length;r--;)n=i[r],n.attributes&&n.attributes.BANDWIDTH&&(l=n.attributes.BANDWIDTH*vt,l<this.bandwidth&&(e.push(n),o||(o=n)));for(r=e.length,e.sort(f.comparePlaylistResolution),n=null,h=parseInt(p(this.tech_.el(),"width"),10),c=parseInt(p(this.tech_.el(),"height"),10);r--;)if(n=e[r],n.attributes&&n.attributes.RESOLUTION&&n.attributes.RESOLUTION.width&&n.attributes.RESOLUTION.height){if(t=n.attributes.RESOLUTION,t.width===h&&t.height===c){u=null;a=n;break}if(t.width<h&&t.height<c)break;(!u||t.width<s.width&&t.height<s.height)&&(u=n,s=u.attributes.RESOLUTION)}return u||a||o||i[0]}},{key:"checkBuffer_",value:function(){this.checkBufferTimeout_&&(window.clearTimeout(this.checkBufferTimeout_),this.checkBufferTimeout_=null);this.fillBuffer();this.drainBuffer();this.checkBufferTimeout_=window.setTimeout(this.checkBuffer_.bind(this),wt)}},{key:"startCheckingBuffer_",value:function(){this.checkBuffer_()}},{key:"stopCheckingBuffer_",value:function(){this.checkBufferTimeout_&&(window.clearTimeout(this.checkBufferTimeout_),this.checkBufferTimeout_=null)}},{key:"fillBuffer",value:function(n){var o=this.tech_,h=o.currentTime(),c=0!==this.tech_.buffered().length,i=this.findBufferedRange_(),l=!(i&&i.length),u=0,s=0,r=void 0,t=void 0,e=void 0;if("segments"===this.loadingState_&&o.currentSrc()&&this.playlists&&!this.segmentXhr_&&!this.pendingSegment_&&"HAVE_NOTHING"!==this.playlists.state&&this.playlists.media()&&this.playlists.media().segments&&"SWITCHING_MEDIA"!==this.playlists.state){if("undefined"==typeof n)if(i&&i.length){if(u=i.end(0),n=this.playlists.getMediaIndexForTime_(u),s=Math.max(0,u-h),s>=f.GOAL_BUFFER_LENGTH)return}else n=this.playlists.getMediaIndexForTime_(this.tech_.currentTime());if(r=this.playlists.media().segments[n]){if(this.lastSegmentLoaded_&&this.playlistUriToUrl(this.lastSegmentLoaded_.uri)===this.playlistUriToUrl(r.uri)&&this.lastSegmentLoaded_.byterange===r.byterange)return this.fillBuffer(n+1);t={uri:this.playlistUriToUrl(r.uri),mediaIndex:n,mediaSequence:this.playlists.media().mediaSequence,playlist:this.playlists.media(),currentBufferedEnd:u,bytes:null,encryptedBytes:null,decrypter:null,buffered:null,timestampOffset:null};n>0&&(e=f.Playlist.duration(t.playlist,t.playlist.mediaSequence+n)+this.playlists.expired_);this.tech_.seeking()&&l?t.playlist.discontinuityStarts.length&&(t.timestampOffset=e):r.discontinuity&&i.length?t.timestampOffset=i.end(0):!c&&this.tech_.currentTime()>.05&&(t.timestampOffset=e);this.loadSegment(t)}}}},{key:"playlistUriToUrl",value:function(n){return this.playlists.media().uri===this.source_.src?a["default"](this.source_.src,n):a["default"](a["default"](this.source_.src,this.playlists.media().uri||""),n)}},{key:"byterangeStr_",value:function(n){var t=void 0,i=void 0;return i=n.offset+n.length-1,t=n.offset,"bytes="+t+"-"+i}},{key:"segmentXhrHeaders_",value:function(n){var t={};return"byterange"in n&&(t.Range=this.byterangeStr_(n.byterange)),t}},{key:"setBandwidth",value:function(n){this.segmentXhrTime=n.roundTripTime;this.bandwidth=n.bandwidth;this.bytesReceived+=n.bytesReceived||0;this.tech_.trigger("bandwidthupdate")}},{key:"blacklistCurrentPlaylist_",value:function(n){var t=void 0,i=void 0;return(t=n.playlist||this.playlists.media())?(t.excludeUntil=Date.now()+yt,(i=this.selectPlaylist())?(u["default"].log.warn("Problem encountered with the current HLS playlist. Switching to another playlist."),this.playlists.media(i)):(u["default"].log.warn("Problem encountered with the current HLS playlist. No suitable alternatives found."),this.error=n,this.mediaSource.endOfStream("network"))):(this.error=n,this.mediaSource.endOfStream("network"))}},{key:"loadSegment",value:function(n){var t=this,i=n.playlist.segments[n.mediaIndex],u=0,r=this.seekable(),e=this.tech_.currentTime();this.sourceBuffer&&!this.sourceBuffer.updating&&(u=r.length&&r.start(0)>0&&r.start(0)<e?r.start(0):e-60,u>0&&this.sourceBuffer.remove(0,u));i.key&&this.fetchKey_(i);this.segmentXhr_=f.xhr({uri:n.uri,responseType:"arraybuffer",withCredentials:this.source_.withCredentials,timeout:1.5*i.duration*1e3,headers:this.segmentXhrHeaders_(i)},function(r,u){if(t.segmentXhr_&&u===t.segmentXhr_)return(t.segmentXhr_=null,u.timedout?(t.bandwidth=1,t.playlists.media(t.selectPlaylist())):!u.aborted&&r?t.blacklistCurrentPlaylist_({status:u.status,message:"HLS segment request error at URL: "+n.uri,code:u.status>=500?4:2}):void(u.response&&(t.lastSegmentLoaded_=i,t.setBandwidth(u),i.key?n.encryptedBytes=new Uint8Array(u.response):n.bytes=new Uint8Array(u.response),t.pendingSegment_=n,t.tech_.trigger("progress"),t.drainBuffer(),t.playlists.media(t.selectPlaylist()))))})}},{key:"drainBuffer",value:function(){var n=void 0,i=void 0,r=void 0,e=void 0,t=void 0,o=void 0,s=void 0;if(this.pendingSegment_&&this.sourceBuffer&&!this.pendingSegment_.buffered&&!this.sourceBuffer.updating){if(n=this.pendingSegment_,i=n.mediaIndex,r=n.playlist,e=n.bytes,t=r.segments[i],t.key&&!e)return y(t.key)?this.blacklistCurrentPlaylist_({message:"HLS segment key request error.",code:4}):t.key.bytes?n.decrypter?void 0:(s=t.key.iv||new Uint32Array([0,0,0,i+r.mediaSequence]),o=new f.Decrypter(n.encryptedBytes,t.key.bytes,s,function(t,i){t&&u["default"].log.warn(t);n.bytes=i}),void(n.decrypter=o)):void 0;this.pendingSegment_.buffered=this.tech_.buffered();null!==n.timestampOffset&&(this.sourceBuffer.timestampOffset=n.timestampOffset);this.sourceBuffer.appendBuffer(e)}}},{key:"updateEndHandler_",value:function(){var n=this.pendingSegment_,t=void 0,i=void 0,e=void 0,o=void 0,s=void 0,c=void 0,r;return n?n.buffered?(this.pendingSegment_=null,t=n.playlist,i=n.mediaIndex+(n.mediaSequence-t.mediaSequence),e=this.findBufferedRange_(),c=kt(t,this.mediaSource,i,e),n.playlist.uri!==this.playlists.media().uri)?c?this.mediaSource.endOfStream():this.fillBuffer():((o=this.seekable(),this.tech_.seeking()&&0===e.length&&o.length&&this.tech_.currentTime()<o.start(0))&&(r=this.findNextBufferedRange_(),r.length&&(u["default"].log("tried seeking to",this.tech_.currentTime(),"but that was too early, retrying at",r.start(0)),this.tech_.setCurrentTime(r.start(0)+h))),s=f.findSoleUncommonTimeRangesEnd_(n.buffered,this.tech_.buffered()),bt(t,i,s),c?this.mediaSource.endOfStream():null!==s||n.buffered.length!==this.tech_.buffered().length?(this.updateDuration(t),void this.fillBuffer()):void this.fillBuffer(i+1)):void 0:void(this.pendingSegment_=null)}},{key:"fetchKey_",value:function(n){var i=this,t=void 0,r=void 0,u=void 0;if(!this.keyXhr_&&(r=this.options_,u=function(t){return function(r,u){var f=void 0;return i.keyXhr_=null,r||!u.response||16!==u.response.byteLength?(t.retries=t.retries||0,t.retries++,void(u.aborted||i.fetchKey_(n))):(f=new DataView(u.response),t.bytes=new Uint32Array([f.getUint32(0),f.getUint32(4),f.getUint32(8),f.getUint32(12)]),void i.checkBuffer_())}},t=n.key))return t.bytes||y(t)?void 0:void(this.keyXhr_=f.xhr({uri:this.playlistUriToUrl(t.uri),responseType:"arraybuffer",withCredentials:r.withCredentials},u(t)))}}]),t}(pt);i["default"]=o;o.prototype.findBufferedRange_=b(function(n,t,i){return i>=n-h&&t+h>=i});o.prototype.findNextBufferedRange_=b(function(n,t,i){return n-h>=i});s=function k(n){return{canHandleSource:function(n){return k.canPlayType(n.type)},handleSource:function(t,i){return"flash"===n&&i.setTimeout(function(){i.trigger("loadstart")},1),i.hls=new o(i,{source:t,mode:n}),i.hls.src(t.src),i.hls},canPlayType:function(n){return k.canPlayType(n)}}};s.canPlayType=function(n){return f.supportsNativeHls?!1:/^application\/(?:x-|vnd\.apple\.)mpegurl/i.test(n)};"undefined"!=typeof u["default"].MediaSource&&"undefined"!=typeof u["default"].URL||(u["default"].MediaSource=l.MediaSource,u["default"].URL=l.URL);l.MediaSource.supportsNativeMediaSources()&&u["default"].getComponent("Html5").registerSourceHandler(s("html5"));window.Uint8Array&&u["default"].getComponent("Flash").registerSourceHandler(s("flash"));u["default"].HlsHandler=o;u["default"].HlsSourceHandler=s;u["default"].Hls=f;u["default"].m3u8=ct["default"];i["default"]={Hls:f,HlsHandler:o,HlsSourceHandler:s};t.exports=i["default"]}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./bin-utils":1,"./decrypter":5,"./m3u8":6,"./playlist":11,"./playlist-loader":10,"./resolve-url":12,"./xhr":14,"videojs-contrib-media-sources":28}]},{},[51])(51)});window.betv.isIE()&&window.betv.isIE()<10||(typeof HTMLVideoElement=="undefined"&&(document.createElement("video"),document.createElement("audio"),document.createElement("track")),function(n,t){"use strict";typeof define=="function"&&define.amd?define(t):typeof exports=="object"?module.exports=t():n.returnExports=t()}(this,function(){var d=Array,n=d.prototype,f=Object,g=f.prototype,pt=Function.prototype,e=String,o=e.prototype,s=Number,ft=s.prototype,nt=n.slice,ki=n.splice,et=n.push,lu=n.unshift,di=n.concat,u=pt.call,au=pt.apply,w=Math.max,ot=Math.min,wt=g.toString,bt=typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol",h,vu=Function.prototype.toString,yu=function(n){try{return vu.call(n),!0}catch(t){return!1}},pu="[object Function]",wu="[object GeneratorFunction]",ni,ti,ir,rr,ur,fr,er,or,ii,ct,ri,ui,sr,hr,tu,b,vi,ru,yi,pi,uu,fu,eu,wi,ou,su,hu,bi,cu;h=function(n){if(typeof n!="function")return!1;if(bt)return yu(n);var t=wt.call(n);return t===pu||t===wu};var kt,bu=RegExp.prototype.exec,ku=function(n){try{return bu.call(n),!0}catch(t){return!1}},du="[object RegExp]";kt=function(n){return typeof n!="object"?!1:bt?ku(n):wt.call(n)===du};var c,gu=String.prototype.valueOf,nf=function(n){try{return gu.call(n),!0}catch(t){return!1}},tf="[object String]";c=function(n){return typeof n=="string"?!0:typeof n!="object"?!1:bt?nf(n):wt.call(n)===tf};var dt=f.defineProperty&&function(){var n,t;try{n={};f.defineProperty(n,"x",{enumerable:!1,value:n});for(t in n)return!1;return n.x===n}catch(i){return!1}}(),t=function(n){var t;return t=dt?function(n,t,i,r){!r&&t in n||f.defineProperty(n,t,{configurable:!0,enumerable:!1,writable:!0,value:i})}:function(n,t,i,r){!r&&t in n||(n[t]=i)},function(i,r,u){for(var f in r)n.call(r,f)&&t(i,f,r[f],u)}}(g.hasOwnProperty),st=function(n){var t=typeof n;return n===null||t!=="object"&&t!=="function"},tt=s.isNaN||function(n){return n!==n},i={ToInteger:function(n){var t=+n;return tt(t)?t=0:t!==0&&t!==1/0&&t!==-(1/0)&&(t=(t>0||-1)*Math.floor(Math.abs(t))),t},ToPrimitive:function(n){var t,i,r;if(st(n))return n;if((i=n.valueOf,h(i)&&(t=i.call(n),st(t)))||(r=n.toString,h(r)&&(t=r.call(n),st(t))))return t;throw new TypeError;},ToObject:function(n){if(n==null)throw new TypeError("can't convert "+n+" to object");return f(n)},ToUint32:function(n){return n>>>0}},gt=function(){};t(pt,{bind:function(n){var t=this,r;if(!h(t))throw new TypeError("Function.prototype.bind called on incompatible "+t);var u=nt.call(arguments,1),i,o=function(){if(this instanceof i){var r=t.apply(this,di.call(u,nt.call(arguments)));return f(r)===r?r:this}return t.apply(n,di.call(u,nt.call(arguments)))},s=w(0,t.length-u.length),e=[];for(r=0;r<s;r++)et.call(e,"$"+r);return i=Function("binder","return function ("+e.join(",")+"){ return binder.apply(this, arguments); }")(o),t.prototype&&(gt.prototype=t.prototype,i.prototype=new gt,gt.prototype=null),i}});var v=u.bind(g.hasOwnProperty),gi=u.bind(g.toString),k=u.bind(nt),rf=au.bind(nt),l=u.bind(o.slice),a=u.bind(o.split),uf=u.bind(o.indexOf),y=u.bind(et),ff=u.bind(g.propertyIsEnumerable),nr=u.bind(n.sort),ht=d.isArray||function(n){return gi(n)==="[object Array]"},ef=[].unshift(0)!==1;t(n,{unshift:function(){return lu.apply(this,arguments),this.length}},ef);t(d,{isArray:ht});var tr=f("a"),p=tr[0]!=="a"||!(0 in tr),it=function(n){var t=!0,i=!0,r=!1;if(n)try{n.call("foo",function(n,i,r){typeof r!="object"&&(t=!1)});n.call([1],function(){"use strict";i=typeof this=="string"},"x")}catch(u){r=!0}return!!n&&!r&&t&&i};t(n,{forEach:function(n){var u=i.ToObject(this),r=p&&c(this)?a(this,""):u,t=-1,e=i.ToUint32(r.length),f;if(arguments.length>1&&(f=arguments[1]),!h(n))throw new TypeError("Array.prototype.forEach callback must be a function");while(++t<e)t in r&&(typeof f=="undefined"?n(r[t],t,u):n.call(f,r[t],t,u))}},!it(n.forEach));t(n,{map:function(n){var u=i.ToObject(this),r=p&&c(this)?a(this,""):u,e=i.ToUint32(r.length),o=d(e),f,t;if(arguments.length>1&&(f=arguments[1]),!h(n))throw new TypeError("Array.prototype.map callback must be a function");for(t=0;t<e;t++)t in r&&(o[t]=typeof f=="undefined"?n(r[t],t,u):n.call(f,r[t],t,u));return o}},!it(n.map));t(n,{filter:function(n){var u=i.ToObject(this),f=p&&c(this)?a(this,""):u,s=i.ToUint32(f.length),o=[],r,e,t;if(arguments.length>1&&(e=arguments[1]),!h(n))throw new TypeError("Array.prototype.filter callback must be a function");for(t=0;t<s;t++)t in f&&(r=f[t],(typeof e=="undefined"?n(r,t,u):n.call(e,r,t,u))&&y(o,r));return o}},!it(n.filter));t(n,{every:function(n){var u=i.ToObject(this),r=p&&c(this)?a(this,""):u,e=i.ToUint32(r.length),f,t;if(arguments.length>1&&(f=arguments[1]),!h(n))throw new TypeError("Array.prototype.every callback must be a function");for(t=0;t<e;t++)if(t in r&&!(typeof f=="undefined"?n(r[t],t,u):n.call(f,r[t],t,u)))return!1;return!0}},!it(n.every));t(n,{some:function(n){var u=i.ToObject(this),r=p&&c(this)?a(this,""):u,e=i.ToUint32(r.length),f,t;if(arguments.length>1&&(f=arguments[1]),!h(n))throw new TypeError("Array.prototype.some callback must be a function");for(t=0;t<e;t++)if(t in r&&(typeof f=="undefined"?n(r[t],t,u):n.call(f,r[t],t,u)))return!0;return!1}},!it(n.some));ni=!1;n.reduce&&(ni=typeof n.reduce.call("es5",function(n,t,i,r){return r})=="object");t(n,{reduce:function(n){var e=i.ToObject(this),r=p&&c(this)?a(this,""):e,f=i.ToUint32(r.length),t,u;if(!h(n))throw new TypeError("Array.prototype.reduce callback must be a function");if(f===0&&arguments.length===1)throw new TypeError("reduce of empty array with no initial value");if(t=0,arguments.length>=2)u=arguments[1];else do{if(t in r){u=r[t++];break}if(++t>=f)throw new TypeError("reduce of empty array with no initial value");}while(1);for(;t<f;t++)t in r&&(u=n(u,r[t],t,e));return u}},!ni);ti=!1;n.reduceRight&&(ti=typeof n.reduceRight.call("es5",function(n,t,i,r){return r})=="object");t(n,{reduceRight:function(n){var f=i.ToObject(this),u=p&&c(this)?a(this,""):f,e=i.ToUint32(u.length),r,t;if(!h(n))throw new TypeError("Array.prototype.reduceRight callback must be a function");if(e===0&&arguments.length===1)throw new TypeError("reduceRight of empty array with no initial value");if(t=e-1,arguments.length>=2)r=arguments[1];else do{if(t in u){r=u[t--];break}if(--t<0)throw new TypeError("reduceRight of empty array with no initial value");}while(1);if(t<0)return r;do t in u&&(r=n(r,u[t],t,f));while(t--);return r}},!ti);ir=n.indexOf&&[0,1].indexOf(1,2)!==-1;t(n,{indexOf:function(n){var r=p&&c(this)?a(this,""):i.ToObject(this),u=i.ToUint32(r.length),t;if(u===0)return-1;for(t=0,arguments.length>1&&(t=i.ToInteger(arguments[1])),t=t>=0?t:w(0,u+t);t<u;t++)if(t in r&&r[t]===n)return t;return-1}},ir);rr=n.lastIndexOf&&[0,1].lastIndexOf(0,-3)!==-1;t(n,{lastIndexOf:function(n){var r=p&&c(this)?a(this,""):i.ToObject(this),u=i.ToUint32(r.length),t;if(u===0)return-1;for(t=u-1,arguments.length>1&&(t=ot(t,i.ToInteger(arguments[1]))),t=t>=0?t:u-Math.abs(t);t>=0;t--)if(t in r&&n===r[t])return t;return-1}},rr);ur=function(){var n=[1,2],t=n.splice();return n.length===2&&ht(t)&&t.length===0}();t(n,{splice:function(){return arguments.length===0?[]:ki.apply(this,arguments)}},!ur);fr=function(){var t={};return n.splice.call(t,0,0,1),t.length===1}();t(n,{splice:function(n,t){if(arguments.length===0)return[];var r=arguments;return this.length=w(i.ToInteger(this.length),0),arguments.length>0&&typeof t!="number"&&(r=k(arguments),r.length<2?y(r,this.length-n):r[1]=i.ToInteger(t)),ki.apply(this,r)}},!fr);er=function(){var n=new d(1e5);return n[8]="x",n.splice(1,1),n.indexOf("x")===7}();or=function(){var n=256,t=[];return t[n]="a",t.splice(n+1,0,"b"),t[n]==="a"}();t(n,{splice:function(n,t){for(var u=i.ToObject(this),b=[],s=i.ToUint32(u.length),p=i.ToInteger(n),l=p<0?w(s+p,0):ot(p,s),f=ot(w(i.ToInteger(t),0),s-l),r=0,o,a,h,c,y;r<f;)o=e(l+r),v(u,o)&&(b[r]=u[o]),r+=1;if(a=k(arguments,2),h=a.length,h<f){for(r=l;r<s-f;)o=e(r+f),c=e(r+h),v(u,o)?u[c]=u[o]:delete u[c],r+=1;for(r=s;r>s-f+h;)delete u[r-1],r-=1}else if(h>f)for(r=s-f;r>l;)o=e(r+f-1),c=e(r+h-1),v(u,o)?u[c]=u[o]:delete u[c],r-=1;for(r=l,y=0;y<a.length;++y)u[r]=a[y],r+=1;return u.length=s-f+h,b}},!er||!or);ii=n.join;try{ct=Array.prototype.join.call("123",",")!=="1,2,3"}catch(oo){ct=!0}ct&&t(n,{join:function(n){var t=typeof n=="undefined"?",":n;return ii.call(c(this)?a(this,""):this,t)}},ct);ri=[1,2].join(undefined)!=="1,2";ri&&t(n,{join:function(n){var t=typeof n=="undefined"?",":n;return ii.call(this,t)}},ri);ui=function(){for(var t=i.ToObject(this),r=i.ToUint32(t.length),n=0;n<arguments.length;)t[r+n]=arguments[n],n+=1;return t.length=r+n,r+n};sr=function(){var n={},t=Array.prototype.push.call(n,undefined);return t!==1||n.length!==1||typeof n[0]!="undefined"||!v(n,0)}();t(n,{push:function(){return ht(this)?et.apply(this,arguments):ui.apply(this,arguments)}},sr);hr=function(){var n=[],t=n.push(undefined);return t!==1||n.length!==1||typeof n[0]!="undefined"||!v(n,0)}();t(n,{push:ui},hr);t(n,{slice:function(){var n=c(this)?a(this,""):this;return rf(n,arguments)}},p);var of=function(){try{return[1,2].sort(null),[1,2].sort({}),!0}catch(n){}return!1}(),sf=function(){try{return[1,2].sort(/a/),!1}catch(n){}return!0}(),hf=function(){try{return[1,2].sort(undefined),!0}catch(n){}return!1}();t(n,{sort:function(n){if(typeof n=="undefined")return nr(this);if(!h(n))throw new TypeError("Array.prototype.sort callback must be a function");return nr(this,n)}},of||!hf||!sf);var cf=!{toString:null}.propertyIsEnumerable("toString"),lf=function(){}.propertyIsEnumerable("prototype"),af=!v("x","0"),fi=function(n){var t=n.constructor;return t&&t.prototype===n},vf={$window:!0,$console:!0,$parent:!0,$self:!0,$frame:!0,$frames:!0,$frameElement:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$external:!0},yf=function(){if(typeof window=="undefined")return!1;for(var n in window)try{!vf["$"+n]&&v(window,n)&&window[n]!==null&&typeof window[n]=="object"&&fi(window[n])}catch(t){return!0}return!1}(),pf=function(n){if(typeof window=="undefined"||!yf)return fi(n);try{return fi(n)}catch(t){return!1}},cr=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],wf=cr.length,lr=function(n){return gi(n)==="[object Arguments]"},bf=function(n){return n!==null&&typeof n=="object"&&typeof n.length=="number"&&n.length>=0&&!ht(n)&&h(n.callee)},ar=lr(arguments)?lr:bf;t(f,{keys:function(n){var s=h(n),o=ar(n),l=n!==null&&typeof n=="object",w=l&&c(n),t,a,i,r,p,u,f;if(!l&&!s&&!o)throw new TypeError("Object.keys called on a non-object");if(t=[],a=lf&&s,w&&af||o)for(i=0;i<n.length;++i)y(t,e(i));if(!o)for(r in n)a&&r==="prototype"||!v(n,r)||y(t,e(r));if(cf)for(p=pf(n),u=0;u<wf;u++)f=cr[u],p&&f==="constructor"||!v(n,f)||y(t,f);return t}});var kf=f.keys&&function(){return f.keys(arguments).length===2}(1,2),df=f.keys&&function(){var n=f.keys(arguments);return arguments.length!==1||n.length!==1||n[0]!==1}(1),vr=f.keys;t(f,{keys:function(n){return ar(n)?vr(k(n)):vr(n)}},!kf||df);var lt=new Date(-0xc782b5b342b24).getUTCMonth()!==0,at=new Date(-0x55d318d56a724),yr=new Date(14496624e5),gf=at.toUTCString()!=="Mon, 01 Jan -45875 11:59:59 GMT",ei,oi,ne=at.getTimezoneOffset();ne<-720?(ei=at.toDateString()!=="Tue Jan 02 -45875",oi=!/^Thu Dec 10 2015 \d\d:\d\d:\d\d GMT[-\+]\d\d\d\d(?: |$)/.test(yr.toString())):(ei=at.toDateString()!=="Mon Jan 01 -45875",oi=!/^Wed Dec 09 2015 \d\d:\d\d:\d\d GMT[-\+]\d\d\d\d(?: |$)/.test(yr.toString()));var si=u.bind(Date.prototype.getFullYear),hi=u.bind(Date.prototype.getMonth),pr=u.bind(Date.prototype.getDate),rt=u.bind(Date.prototype.getUTCFullYear),ut=u.bind(Date.prototype.getUTCMonth),ci=u.bind(Date.prototype.getUTCDate),te=u.bind(Date.prototype.getUTCDay),wr=u.bind(Date.prototype.getUTCHours),br=u.bind(Date.prototype.getUTCMinutes),kr=u.bind(Date.prototype.getUTCSeconds),ie=u.bind(Date.prototype.getUTCMilliseconds),li=["Sun","Mon","Tue","Wed","Thu","Fri"],ai=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dr=function(n,t){return pr(new Date(t,n,0))};t(Date.prototype,{getFullYear:function(){if(!this||!(this instanceof Date))throw new TypeError("this is not a Date object.");var n=si(this);return n<0&&hi(this)>11?n+1:n},getMonth:function(){if(!this||!(this instanceof Date))throw new TypeError("this is not a Date object.");var t=si(this),n=hi(this);return t<0&&n>11?0:n},getDate:function(){var r;if(!this||!(this instanceof Date))throw new TypeError("this is not a Date object.");var t=si(this),i=hi(this),n=pr(this);return t<0&&i>11?i===12?n:(r=dr(0,t+1),r-n+1):n},getUTCFullYear:function(){if(!this||!(this instanceof Date))throw new TypeError("this is not a Date object.");var n=rt(this);return n<0&&ut(this)>11?n+1:n},getUTCMonth:function(){if(!this||!(this instanceof Date))throw new TypeError("this is not a Date object.");var t=rt(this),n=ut(this);return t<0&&n>11?0:n},getUTCDate:function(){var r;if(!this||!(this instanceof Date))throw new TypeError("this is not a Date object.");var t=rt(this),i=ut(this),n=ci(this);return t<0&&i>11?i===12?n:(r=dr(0,t+1),r-n+1):n}},lt);t(Date.prototype,{toUTCString:function(){if(!this||!(this instanceof Date))throw new TypeError("this is not a Date object.");var u=te(this),n=ci(this),f=ut(this),e=rt(this),t=wr(this),i=br(this),r=kr(this);return li[u]+", "+(n<10?"0"+n:n)+" "+ai[f]+" "+e+" "+(t<10?"0"+t:t)+":"+(i<10?"0"+i:i)+":"+(r<10?"0"+r:r)+" GMT"}},lt||gf);t(Date.prototype,{toDateString:function(){if(!this||!(this instanceof Date))throw new TypeError("this is not a Date object.");var t=this.getDay(),n=this.getDate(),i=this.getMonth(),r=this.getFullYear();return li[t]+" "+ai[i]+" "+(n<10?"0"+n:n)+" "+r}},lt||ei);(lt||oi)&&(Date.prototype.toString=function(){if(!this||!(this instanceof Date))throw new TypeError("this is not a Date object.");var o=this.getDay(),n=this.getDate(),s=this.getMonth(),h=this.getFullYear(),t=this.getHours(),i=this.getMinutes(),r=this.getSeconds(),u=this.getTimezoneOffset(),f=Math.floor(Math.abs(u)/60),e=Math.floor(Math.abs(u)%60);return li[o]+" "+ai[s]+" "+(n<10?"0"+n:n)+" "+h+" "+(t<10?"0"+t:t)+":"+(i<10?"0"+i:i)+":"+(r<10?"0"+r:r)+" GMT"+(u>0?"-":"+")+(f<10?"0"+f:f)+(e<10?"0"+e:e)},dt&&f.defineProperty(Date.prototype,"toString",{configurable:!0,enumerable:!1,writable:!0}));var gr=-621987552e5,nu="-000001",re=Date.prototype.toISOString&&new Date(gr).toISOString().indexOf(nu)===-1,ue=Date.prototype.toISOString&&new Date(-1).toISOString()!=="1969-12-31T23:59:59.999Z";t(Date.prototype,{toISOString:function(){var n,i,t,r;if(!isFinite(this))throw new RangeError("Date.prototype.toISOString called on non-finite value.");for(n=rt(this),i=ut(this),n+=Math.floor(i/12),i=(i%12+12)%12,t=[i+1,ci(this),wr(this),br(this),kr(this)],n=(n<0?"-":n>9999?"+":"")+l("00000"+Math.abs(n),0<=n&&n<=9999?-4:-6),r=0;r<t.length;++r)t[r]=l("00"+t[r],-2);return n+"-"+k(t,0,2).join("-")+"T"+k(t,2).join(":")+"."+l("000"+ie(this),-3)+"Z"}},re||ue);tu=function(){try{return Date.prototype.toJSON&&new Date(NaN).toJSON()===null&&new Date(gr).toJSON().indexOf(nu)!==-1&&Date.prototype.toJSON.call({toISOString:function(){return!0}})}catch(n){return!1}}();tu||(Date.prototype.toJSON=function(){var n=f(this),r=i.ToPrimitive(n),t;if(typeof r=="number"&&!isFinite(r))return null;if(t=n.toISOString,!h(t))throw new TypeError("toISOString property is not callable");return t.call(n)});var fe=Date.parse("+033658-09-27T01:46:40.000Z")===1e15,ee=!isNaN(Date.parse("2012-04-04T24:00:00.500Z"))||!isNaN(Date.parse("2012-11-31T23:59:59.000Z"))||!isNaN(Date.parse("2012-12-31T23:59:60.000Z")),oe=isNaN(Date.parse("2000-01-01T00:00:00.000Z"));(oe||ee||!fe)&&(b=Math.pow(2,31)-1,vi=tt(new Date(1970,0,1,0,0,0,b+1).getTime()),Date=function(n){var i=function(r,u,f,o,s,h,c){var l=arguments.length,a,v,y,w,p;return this instanceof n?(v=h,y=c,vi&&l>=7&&c>b&&(w=Math.floor(c/b)*b,p=Math.floor(w/1e3),v+=p,y-=p*1e3),a=l===1&&e(r)===r?new n(i.parse(r)):l>=7?new n(r,u,f,o,s,v,y):l>=6?new n(r,u,f,o,s,v):l>=5?new n(r,u,f,o,s):l>=4?new n(r,u,f,o):l>=3?new n(r,u,f):l>=2?new n(r,u):l>=1?new n(r):new n):a=n.apply(this,arguments),st(a)||t(a,{constructor:i},!0),a},o=new RegExp("^(\\d{4}|[+-]\\d{6})(?:-(\\d{2})(?:-(\\d{2})(?:T(\\d{2}):(\\d{2})(?::(\\d{2})(?:(\\.\\d{1,}))?)?(Z|(?:([-+])(\\d{2}):(\\d{2})))?)?)?)?$"),h=[0,31,59,90,120,151,181,212,243,273,304,334,365],u=function(n,t){var i=t>1?1:0;return h[t]+Math.floor((n-1969+i)/4)-Math.floor((n-1901+i)/100)+Math.floor((n-1601+i)/400)+365*(n-1970)},c=function(t){var u=0,i=t,f,r;return vi&&i>b&&(f=Math.floor(i/b)*b,r=Math.floor(f/1e3),u+=r,i-=r*1e3),s(new n(1970,0,1,0,0,u,i))},r,f;for(r in n)v(n,r)&&(i[r]=n[r]);return t(i,{now:n.now,UTC:n.UTC},!0),i.prototype=n.prototype,t(i.prototype,{constructor:i},!0),f=function(t){var i=o.exec(t);if(i){var e=s(i[1]),f=s(i[2]||1)-1,h=s(i[3]||1)-1,y=s(i[4]||0),l=s(i[5]||0),a=s(i[6]||0),v=Math.floor(s(i[7]||0)*1e3),k=Boolean(i[4]&&!i[8]),p=i[9]==="-"?1:-1,w=s(i[10]||0),b=s(i[11]||0),r,d=l>0||a>0||v>0;return y<(d?24:25)&&l<60&&a<60&&v<1e3&&f>-1&&f<12&&w<24&&b<60&&h>-1&&h<u(e,f+1)-u(e,f)&&(r=((u(e,f)+h)*24+y+w*p)*60,r=((r+l+b*p)*60+a)*1e3+v,k&&(r=c(r)),-864e13<=r&&r<=864e13)?r:NaN}return n.parse.apply(this,arguments)},t(i,{parse:f}),i}(Date));Date.now||(Date.now=function(){return(new Date).getTime()});var se=ft.toFixed&&(8e-5.toFixed(3)!=="0.000"||.9.toFixed(0)!=="1"||1.255.toFixed(2)!=="1.25"||1000000000000000128..toFixed(0)!=="1000000000000000128"),r={base:1e7,size:6,data:[0,0,0,0,0,0],multiply:function(n,t){for(var u=-1,i=t;++u<r.size;)i+=n*r.data[u],r.data[u]=i%r.base,i=Math.floor(i/r.base)},divide:function(n){for(var i=r.size,t=0;--i>=0;)t+=r.data[i],r.data[i]=Math.floor(t/n),t=t%n*r.base},numToString:function(){for(var t=r.size,n="",i;--t>=0;)(n!==""||t===0||r.data[t]!==0)&&(i=e(r.data[t]),n===""?n=i:n+=l("0000000",0,7-i.length)+i);return n},pow:function iu(n,t,i){return t===0?i:t%2==1?iu(n,t-1,i*n):iu(n*n,t/2,i)},log:function(n){for(var i=0,t=n;t>=4096;)i+=12,t/=4096;while(t>=2)i+=1,t/=2;return i}},he=function(n){var t,i,h,u,f,a,o,c;if(t=s(n),t=tt(t)?0:Math.floor(t),t<0||t>20)throw new RangeError("Number.toFixed called with invalid number of decimals");if(i=s(this),tt(i))return"NaN";if(i<=-1e21||i>=1e21)return e(i);if(h="",i<0&&(h="-",i=-i),u="0",i>1e-21)if(f=r.log(i*r.pow(2,69,1))-69,a=f<0?i*r.pow(2,-f,1):i/r.pow(2,f,1),a*=4503599627370496,f=52-f,f>0){for(r.multiply(0,a),o=t;o>=7;)r.multiply(1e7,0),o-=7;for(r.multiply(r.pow(10,o,1),0),o=f-1;o>=23;)r.divide(8388608),o-=23;r.divide(1<<o);r.multiply(1,1);r.divide(2);u=r.numToString()}else r.multiply(0,a),r.multiply(1<<-f,0),u=r.numToString()+l("0.00000000000000000000",2,2+t);return t>0?(c=u.length,u=c<=t?h+l("0.0000000000000000000",0,t-c+2)+u:h+l(u,0,c-t)+"."+l(u,c-t)):u=h+u,u};t(ft,{toFixed:he},se);ru=function(){try{return 1..toPrecision(undefined)==="1"}catch(n){return!0}}();yi=ft.toPrecision;t(ft,{toPrecision:function(n){return typeof n=="undefined"?yi.call(this):yi.call(this,n)}},ru);"ab".split(/(?:ab)*/).length!==2||".".split(/(.?)(.?)/).length!==4||"tesst".split(/(s)*/)[1]==="t"||"test".split(/(?:)/,-1).length!==4||"".split(/.?/).length||".".split(/()()/).length>1?function(){var n=typeof/()??/.exec("")[1]=="undefined",t=Math.pow(2,32)-1;o.split=function(r,u){var o=String(this),c;if(typeof r=="undefined"&&u===0)return[];if(!kt(r))return a(this,r,u);var e=[],p=(r.ignoreCase?"i":"")+(r.multiline?"m":"")+(r.unicode?"u":"")+(r.sticky?"y":""),h=0,w,f,v,b,s=new RegExp(r.source,p+"g");for(n||(w=new RegExp("^"+s.source+"$(?!\\s)",p)),c=typeof u=="undefined"?t:i.ToUint32(u),f=s.exec(o);f;){if(v=f.index+f[0].length,v>h&&(y(e,l(o,h,f.index)),!n&&f.length>1&&f[0].replace(w,function(){for(var n=1;n<arguments.length-2;n++)typeof arguments[n]=="undefined"&&(f[n]=void 0)}),f.length>1&&f.index<o.length&&et.apply(e,k(f,1)),b=f[0].length,h=v,e.length>=c))break;s.lastIndex===f.index&&s.lastIndex++;f=s.exec(o)}return h===o.length?(b||!s.test(""))&&y(e,""):y(e,l(o,h)),e.length>c?l(e,0,c):e}}():"0".split(void 0,0).length&&(o.split=function(n,t){return typeof n=="undefined"&&t===0?[]:a(this,n,t)});pi=o.replace;uu=function(){var n=[];return"x".replace(/x(.)?/g,function(t,i){y(n,i)}),n.length===1&&typeof n[0]=="undefined"}();uu||(o.replace=function(n,t){var r=h(t),u=kt(n)&&/\)[*?]/.test(n.source),i;return r&&u?(i=function(i){var u=arguments.length,f=n.lastIndex,r;return n.lastIndex=0,r=n.exec(i)||[],n.lastIndex=f,y(r,arguments[u-2],arguments[u-1]),t.apply(this,r)},pi.call(this,n,i)):pi.call(this,n,t)});fu=o.substr;eu="".substr&&"0b".substr(-1)!=="b";t(o,{substr:function(n,t){var i=n;return n<0&&(i=w(this.length+n,0)),fu.call(this,i,t)}},eu);var vt="\t\n\x0b\f\r   ᠎             　\u2028\u2029﻿",yt="["+vt+"]",ce=new RegExp("^"+yt+yt+"*"),le=new RegExp(yt+yt+"*$"),ae=o.trim&&(vt.trim()||!"​".trim());t(o,{trim:function(){if(typeof this=="undefined"||this===null)throw new TypeError("can't convert "+this+" to object");return e(this).replace(ce,"").replace(le,"")}},ae);wi=u.bind(String.prototype.trim);ou=o.lastIndexOf&&"abcあい".lastIndexOf("あい",2)!==-1;t(o,{lastIndexOf:function(n){var u;if(typeof this=="undefined"||this===null)throw new TypeError("can't convert "+this+" to object");for(var f=e(this),o=e(n),h=arguments.length>1?s(arguments[1]):NaN,a=tt(h)?Infinity:i.ToInteger(h),c=ot(w(a,0),f.length),r=o.length,t=c+r;t>0;)if(t=w(0,t-r),u=uf(l(f,t,c+r),o),u!==-1)return t+u;return-1}},ou);su=o.lastIndexOf;t(o,{lastIndexOf:function(){return su.apply(this,arguments)}},o.lastIndexOf.length!==1);(parseInt(vt+"08")!==8||parseInt(vt+"0x16")!==22)&&(parseInt=function(n){var t=/^[\-+]?0[xX]/;return function(i,r){var u=wi(i),f=s(r)||(t.test(u)?16:10);return n(u,f)}}(parseInt));1/parseFloat("-0")!=-Infinity&&(parseFloat=function(n){return function(t){var i=wi(t),r=n(i);return r===0&&l(i,0,1)==="-"?-0:r}}(parseFloat));String(new RangeError("test"))!=="RangeError: test"&&(hu=function(){var n,t;if(typeof this=="undefined"||this===null)throw new TypeError("can't convert "+this+" to object");return(n=this.name,typeof n=="undefined"?n="Error":typeof n!="string"&&(n=e(n)),t=this.message,typeof t=="undefined"?t="":typeof t!="string"&&(t=e(t)),!n)?t:t?n+": "+t:n},Error.prototype.toString=hu);dt&&(bi=function(n,t){if(ff(n,t)){var i=Object.getOwnPropertyDescriptor(n,t);i.enumerable=!1;Object.defineProperty(n,t,i)}},bi(Error.prototype,"message"),Error.prototype.message!==""&&(Error.prototype.message=""),bi(Error.prototype,"name"));String(/a/mig)!=="/a/gim"&&(cu=function(){var n="/"+this.source+"/";return this.global&&(n+="g"),this.ignoreCase&&(n+="i"),this.multiline&&(n+="m"),n},RegExp.prototype.toString=cu)}),function(n,t){"use strict";typeof define=="function"&&define.amd?define(t):typeof exports=="object"?module.exports=t():n.returnExports=t()}(this,function(){var t=Function.call,n=Object.prototype,i=t.bind(n.hasOwnProperty),d=t.bind(n.propertyIsEnumerable),g=t.bind(n.toString),a,v,o,s,r=i(n,"__defineGetter__"),h,y,p,u,w,l,b,k,f,e;if(r&&(a=t.bind(n.__defineGetter__),v=t.bind(n.__defineSetter__),o=t.bind(n.__lookupGetter__),s=t.bind(n.__lookupSetter__)),Object.getPrototypeOf||(Object.getPrototypeOf=function(t){var i=t.__proto__;return i||i===null?i:g(t.constructor)==="[object Function]"?t.constructor.prototype:t instanceof Object?n:null}),h=function(n){try{return n.sentinel=0,Object.getOwnPropertyDescriptor(n,"sentinel").value===0}catch(t){return!1}},Object.defineProperty&&(y=h({}),p=typeof document=="undefined"||h(document.createElement("div")),p&&y||(u=Object.getOwnPropertyDescriptor)),(!Object.getOwnPropertyDescriptor||u)&&(w="Object.getOwnPropertyDescriptor called on a non-object: ",Object.getOwnPropertyDescriptor=function(t,f){var e,a,l,h,c;if(typeof t!="object"&&typeof t!="function"||t===null)throw new TypeError(w+t);if(u)try{return u.call(Object,t,f)}catch(v){}return i(t,f)?(e={enumerable:d(t,f),configurable:!0},r&&(a=t.__proto__,l=t!==n,l&&(t.__proto__=n),h=o(t,f),c=s(t,f),l&&(t.__proto__=a),h||c))?(h&&(e.get=h),c&&(e.set=c),e):(e.value=t[f],e.writable=!0,e):e}),Object.getOwnPropertyNames||(Object.getOwnPropertyNames=function(n){return Object.keys(n)}),!Object.create){var c,nt=!({__proto__:null}instanceof Object),tt=function(){if(!document.domain)return!1;try{return!!new ActiveXObject("htmlfile")}catch(n){return!1}},it=function(){var t,n;return n=new ActiveXObject("htmlfile"),n.write("<script><\/script>"),n.close(),t=n.parentWindow.Object.prototype,n=null,t},rt=function(){var n=document.createElement("iframe"),t=document.body||document.documentElement,i;return n.style.display="none",t.appendChild(n),n.src="javascript:",i=n.contentWindow.Object.prototype,t.removeChild(n),n=null,i};c=nt||typeof document=="undefined"?function(){return{__proto__:null}}:function(){var n=tt()?it():rt(),t;return delete n.constructor,delete n.hasOwnProperty,delete n.propertyIsEnumerable,delete n.isPrototypeOf,delete n.toLocaleString,delete n.toString,delete n.valueOf,t=function(){},t.prototype=n,c=function(){return new t},new t};Object.create=function(n,t){var i,r=function(){};if(n===null)i=c();else{if(typeof n!="object"&&typeof n!="function")throw new TypeError("Object prototype may only be an Object or null");r.prototype=n;i=new r;i.__proto__=n}return t!==void 0&&Object.defineProperties(i,t),i}}if(l=function(n){try{return Object.defineProperty(n,"sentinel",{}),"sentinel"in n}catch(t){return!1}},Object.defineProperty&&(b=l({}),k=typeof document=="undefined"||l(document.createElement("div")),b&&k||(f=Object.defineProperty,e=Object.defineProperties)),!Object.defineProperty||f){var ut="Property description must be an object: ",ft="Object.defineProperty called on non-object: ",et="getters & setters can not be defined on this javascript engine";Object.defineProperty=function(t,i,u){if(typeof t!="object"&&typeof t!="function"||t===null)throw new TypeError(ft+t);if(typeof u!="object"&&typeof u!="function"||u===null)throw new TypeError(ut+u);if(f)try{return f.call(Object,t,i,u)}catch(h){}if("value"in u)if(r&&(o(t,i)||s(t,i))){var e=t.__proto__;t.__proto__=n;delete t[i];t[i]=u.value;t.__proto__=e}else t[i]=u.value;else{if(!r&&("get"in u||"set"in u))throw new TypeError(et);"get"in u&&a(t,i,u.get);"set"in u&&v(t,i,u.set)}return t}}(!Object.defineProperties||e)&&(Object.defineProperties=function(n,t){if(e)try{return e.call(Object,n,t)}catch(i){}return Object.keys(t).forEach(function(i){i!=="__proto__"&&Object.defineProperty(n,i,t[i])}),n});Object.seal||(Object.seal=function(n){if(Object(n)!==n)throw new TypeError("Object.seal can only be called on Objects.");return n});Object.freeze||(Object.freeze=function(n){if(Object(n)!==n)throw new TypeError("Object.freeze can only be called on Objects.");return n});try{Object.freeze(function(){})}catch(pt){Object.freeze=function(n){return function(t){return typeof t=="function"?t:n(t)}}(Object.freeze)}Object.preventExtensions||(Object.preventExtensions=function(n){if(Object(n)!==n)throw new TypeError("Object.preventExtensions can only be called on Objects.");return n});Object.isSealed||(Object.isSealed=function(n){if(Object(n)!==n)throw new TypeError("Object.isSealed can only be called on Objects.");return!1});Object.isFrozen||(Object.isFrozen=function(n){if(Object(n)!==n)throw new TypeError("Object.isFrozen can only be called on Objects.");return!1});Object.isExtensible||(Object.isExtensible=function(n){var t,r;if(Object(n)!==n)throw new TypeError("Object.isExtensible can only be called on Objects.");for(t="";i(n,t);)t+="?";return n[t]=!0,r=i(n,t),delete n[t],r})}));window.betv.isIE()&&window.betv.isIE()<10||function(n,t){"use strict";function h(n,t){var e=i.getElementById(t.id()),u=document.createElement("div"),r,f;u.setAttribute("class","videojs-background-wrap");u.appendChild(e);n.container.appendChild(u);r=document.createElement("style");f=" .videojs-background-wrap .video-js.vjs-controls-disabled .vjs-poster { position: absolute; top: 0; left:0; width: 100%; height: 100%; background-size: 100%!important; background-size: cover!important; }.videojs-background-wrap .video-js.vjs-has-started .vjs-poster, .videojs-background-wrap .vjs-youtube .vjs-loading-spinner { display: none!important; }";r.setAttribute("type","text/css");document.getElementsByTagName("head")[0].appendChild(r);r.styleSheet?r.styleSheet.cssText=f:r.appendChild(document.createTextNode(f))}function f(n,t){var c=t.id(),l;n.container===r&&(r.style.height="auto",l=u.innerHeight>r.clientHeight?"100%":"auto",r.style.height=o.style.height=l);var e=n.container.clientWidth<u.innerWidth?n.container.clientWidth:u.innerWidth,s=n.container.clientHeight<u.innerHeight?n.container.clientHeight:u.innerHeight,a=e/s,h=i.getElementById(c),f=i.getElementById(c+"_"+n.mediaType+"_api");a<n.mediaAspect?(t.width(s*n.mediaAspect),t.height(s),h.style.top="0px",h.style.left=-(s*n.mediaAspect-e)/2+"px",f.style.width=s*n.mediaAspect+"px",f.style.height=s+"px"):(t.width(e),t.height(e/n.mediaAspect),h.style.top=-(e/n.mediaAspect-s)/2+"px",h.style.left="0px",h.style.height=e/n.mediaAspect+"px",n.mediaType==="html5"?(f.style.width=f.parentNode.style.width,f.style.height="auto"):(f.style.width=f.parentNode.style.width,f.style.height=e/n.mediaAspect+"px"))}var u=n,i=document,o=i.getElementsByTagName("html")[0],r=i.getElementsByTagName("body")[0],s={container:r,autoPlay:!0,mediaAspect:16/9,mediaType:"html5",volume:0},e;e=function(u){var e=t.util.mergeOptions(s,u),o=this,c=i.getElementById(o.id()+"_"+e.mediaType+"_api");e.container!==r&&(e.container=i.getElementById(e.container));h(e,o);f(e,o);o.volume(e.volume);e.autoPlay&&o.play();o.on("loadedmetadata",function(){e.mediaType==="html5"?e.mediaAspect=c.videoWidth/c.videoHeight:c.vjs_getProperty!==undefined&&(e.mediaAspect=c.vjs_getProperty("videoWidth")/c.vjs_getProperty("videoHeight"));f(e,o)});n.onresize=function(){f(e,o)}};t.plugin("Background",e)}(window,window.videojs),function(n,t){t(document).ready(function(){function e(n){if(n>=1420&&f==!1){var i=(new TimelineMax).add([TweenMax.to("#channel2 .channels--number",2,{left:"0",ease:Linear.Bounce}),TweenMax.to("#channel2 .channels--img img",2,{top:"0",ease:Linear.Bounce})]),r=(new TimelineMax).add([TweenMax.to("#channel3 .channels--number",2,{right:"20px",ease:Linear.Bounce}),TweenMax.to("#channel3 .channels--img img",2,{top:"0",ease:Linear.Bounce})]),u=(new TimelineMax).add([TweenMax.to("#channel4 .channels--number",2,{left:"0",ease:Linear.Bounce}),TweenMax.to("#channel4 .channels--img img",2,{top:"0",ease:Linear.Bounce})]),e=(new TimelineMax).add([TweenMax.to("#quality",1,{backgroundPosition:"left center",ease:Linear.Bounce}),TweenMax.to("#quality #tag1a",1,{width:"",padding:"0 20px",ease:Linear.Bounce}),TweenMax.to("#quality #tag1b",1,{width:"",padding:"0 20px",ease:Linear.Bounce}),TweenMax.to("#quality #tag2a",1,{width:"",padding:"0 20px",ease:Linear.Bounce}),TweenMax.to("#quality #tag2b",1,{width:"",padding:"0 20px",ease:Linear.Bounce}),TweenMax.to("#quality #tag3a",1,{width:"",padding:"0 20px",ease:Linear.Bounce}),TweenMax.to("#quality #tag3b",1,{width:"",padding:"0 20px",ease:Linear.Bounce}),TweenMax.to("#quality #tag4a",1,{width:"",padding:"0 20px",ease:Linear.Bounce}),TweenMax.to("#quality #tag4b",1,{width:"",padding:"0 20px",ease:Linear.Bounce}),TweenMax.to("#quality #tag5a",1,{width:"",padding:"0 20px",ease:Linear.Bounce}),TweenMax.to("#quality #tag5b",1,{width:"",padding:"0 20px",ease:Linear.Bounce}),TweenMax.to("#quality #tag6a",1,{width:"",padding:"0 20px",ease:Linear.Bounce}),TweenMax.to("#quality #tag6b",1,{width:"",padding:"0 20px",ease:Linear.Bounce}),]),o=(new TimelineMax).add([TweenMax.to("#quality .avantages--tag p",1.5,{left:"0",ease:Linear.Bounce})]),t=new ScrollMagic,s=new ScrollScene({triggerElement:"#channel2",duration:1300,offset:-500}).setTween(i).addTo(t),s=new ScrollScene({triggerElement:"#channel3",duration:1300,offset:-500}).setTween(r).addTo(t),s=new ScrollScene({triggerElement:"#channel4",duration:1300,offset:-500}).setTween(u).addTo(t),s=new ScrollScene({triggerElement:"#quality",offset:-250,reverse:!1}).setTween(e).addTo(t),s=new ScrollScene({triggerElement:"#quality",offset:-250,reverse:!1}).setTween(o).addTo(t);f=!0}}var r,i,f,u;n.betv.Menu();n.betv.Avantages();n.betv.Channels();r=t(n).innerWidth();i=document.getElementById("videoPlayer");t(n).resize(function(){r=t(n).innerWidth();r<1060?i.pause():i.play()});r<1060?i.pause():i.play();t("#open").click(function(){return t(".menu ul").slideToggle(200),!1});t(".opener").on("click",function(n){n.preventDefault();t(this).next(".content").slideToggle();t(this).hasClass("opened")?t(this).removeClass("opened"):t(this).addClass("opened")});f=!1;u=t(n).innerWidth();e(u);t(n).resize(function(){u=t(n).innerWidth();e(u)})})}(window,jQuery)