PageSourceSearch

https://newairplane.com/assets/js/app-build.js

js newairplane.com collected 2026-10-02 03:18:44 UTC 2,950,317 bytes, 1 lines download raw bytes

1(function(){var requirejs,require,define;(function(e){function h(e,t){return f.call(e,t)}function p(e,t){var n,r,i,s,o,a,f,l,h,p,d,v=t&&t.split("/"),m=u.map,g=m&&m["*"]||{};if(e&&e.charAt(0)===".")if(t){e=e.split("/"),o=e.length-1,u.nodeIdCompat&&c.test(e[o])&&(e[o]=e[o].replace(c,"")),e=v.slice(0,v.length-1).concat(e);for(h=0;h<e.length;h+=1){d=e[h];if(d===".")e.splice(h,1),h-=1;else if(d===".."){if(h===1&&(e[2]===".."||e[0]===".."))break;h>0&&(e.splice(h-1,2),h-=2)}}e=e.join("/")}else e.indexOf("./")===0&&(e=e.substring(2));if((v||g)&&m){n=e.split("/");for(h=n.length;h>0;h-=1){r=n.slice(0,h).join("/");if(v)for(p=v.length;p>0;p-=1){i=m[v.slice(0,p).join("/")];if(i){i=i[r];if(i){s=i,a=h;break}}}if(s)break;!f&&g&&g[r]&&(f=g[r],l=h)}!s&&f&&(s=f,a=l),s&&(n.splice(0,a,s),e=n.join("/"))}return e}function d(t,r){return function(){var i=l.call(arguments,0);return typeof i[0]!="string"&&i.length===1&&i.push(null),n.apply(e,i.concat([t,r]))}}function v(e){return function(t){return p(t,e)}}function m(e){return function(t){s[e]=t}}function g(n){if(h(o,n)){var r=o[n];delete o[n],a[n]=!0,t.apply(e,r)}if(!h(s,n)&&!h(a,n))throw new Error("No "+n);return s[n]}function y(e){var t,n=e?e.indexOf("!"):-1;return n>-1&&(t=e.substring(0,n),e=e.substring(n+1,e.length)),[t,e]}function b(e){return function(){return u&&u.config&&u.config[e]||{}}}var t,n,r,i,s={},o={},u={},a={},f=Object.prototype.hasOwnProperty,l=[].slice,c=/\.js$/;r=function(e,t){var n,r=y(e),i=r[0];return e=r[1],i&&(i=p(i,t),n=g(i)),i?n&&n.normalize?e=n.normalize(e,v(t)):e=p(e,t):(e=p(e,t),r=y(e),i=r[0],e=r[1],i&&(n=g(i))),{f:i?i+"!"+e:e,n:e,pr:i,p:n}},i={require:function(e){return d(e)},exports:function(e){var t=s[e];return typeof t!="undefined"?t:s[e]={}},module:function(e){return{id:e,uri:"",exports:s[e],config:b(e)}}},t=function(t,n,u,f){var l,c,p,v,y,b=[],w=typeof u,E;f=f||t;if(w==="undefined"||w==="function"){n=!n.length&&u.length?["require","exports","module"]:n;for(y=0;y<n.length;y+=1){v=r(n[y],f),c=v.f;if(c==="require")b[y]=i.require(t);else if(c==="exports")b[y]=i.exports(t),E=!0;else if(c==="module")l=b[y]=i.module(t);else if(h(s,c)||h(o,c)||h(a,c))b[y]=g(c);else{if(!v.p)throw new Error(t+" missing "+c);v.p.load(v.n,d(f,!0),m(c),{}),b[y]=s[c]}}p=u?u.apply(s[t],b):undefined;if(t)if(l&&l.exports!==e&&l.exports!==s[t])s[t]=l.exports;else if(p!==e||!E)s[t]=p}else t&&(s[t]=u)},requirejs=require=n=function(s,o,a,f,l){if(typeof s=="string")return i[s]?i[s](o):g(r(s,o).f);if(!s.splice){u=s,u.deps&&n(u.deps,u.callback);if(!o)return;o.splice?(s=o,o=a,a=null):s=e}return o=o||function(){},typeof a=="function"&&(a=f,f=l),f?t(e,s,o,a):setTimeout(function(){t(e,s,o,a)},4),n},n.config=function(e){return n(e)},requirejs._defined=s,define=function(e,t,n){if(typeof e!="string")throw new Error("See almond README: incorrect module build, no module name");t.splice||(n=t,t=[]),!h(s,e)&&!h(o,e)&&(o[e]=[e,t,n])},define.amd={jQuery:!0}})(),define("lib/almond",function(){}),function(){function e(e){function t(t,n,r,i,s,o){for(;s>=0&&o>s;s+=e){var u=i?i[s]:s;r=n(r,t[u],u,t)}return r}return function(n,r,i,s){r=b(r,s,4);var o=!C(n)&&y.keys(n),u=(o||n).length,a=e>0?0:u-1;return arguments.length<3&&(i=n[o?o[a]:a],a+=e),t(n,r,i,o,a,u)}}function t(e){return function(t,n,r){n=w(n,r);for(var i=N(t),s=e>0?0:i-1;s>=0&&i>s;s+=e)if(n(t[s],s,t))return s;return-1}}function n(e,t,n){return function(r,i,s){var o=0,u=N(r);if("number"==typeof s)e>0?o=s>=0?s:Math.max(s+u,o):u=s>=0?Math.min(s+1,u):s+u+1;else if(n&&s&&u)return s=n(r,i),r[s]===i?s:-1;if(i!==i)return s=t(l.call(r,o,u),y.isNaN),s>=0?s+o:-1;for(s=e>0?o:u-1;s>=0&&u>s;s+=e)if(r[s]===i)return s;return-1}}function r(e,t){var n=M.length,r=e.constructor,i=y.isFunction(r)&&r.prototype||u,s="constructor";
1for(y.has(e,s)&&!y.contains(t,s)&&t.push(s);n--;)s=M[n],s in e&&e[s]!==i[s]&&!y.contains(t,s)&&t.push(s)}var i=this,s=i._,o=Array.prototype,u=Object.prototype,a=Function.prototype,f=o.push,l=o.slice,c=u.toString,h=u.hasOwnProperty,p=Array.isArray,d=Object.keys,v=a.bind,m=Object.create,g=function(){},y=function(e){return e instanceof y?e:this instanceof y?void (this._wrapped=e):new y(e)};"undefined"!=typeof exports?("undefined"!=typeof module&&module.exports&&(exports=module.exports=y),exports._=y):i._=y,y.VERSION="1.8.3";var b=function(e,t,n){if(t===void 0)return e;switch(null==n?3:n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,i){return e.call(t,n,r,i)};case 4:return function(n,r,i,s){return e.call(t,n,r,i,s)}}return function(){return e.apply(t,arguments)}},w=function(e,t,n){return null==e?y.identity:y.isFunction(e)?b(e,t,n):y.isObject(e)?y.matcher(e):y.property(e)};y.iteratee=function(e,t){return w(e,t,1/0)};var E=function(e,t){return function(n){var r=arguments.length;if(2>r||null==n)return n;for(var i=1;r>i;i++)for(var s=arguments[i],o=e(s),u=o.length,a=0;u>a;a++){var f=o[a];t&&n[f]!==void 0||(n[f]=s[f])}return n}},S=function(e){if(!y.isObject(e))return{};if(m)return m(e);g.prototype=e;var t=new g;return g.prototype=null,t},x=function(e){return function(t){return null==t?void 0:t[e]}},T=Math.pow(2,53)-1,N=x("length"),C=function(e){var t=N(e);return"number"==typeof t&&t>=0&&T>=t};y.each=y.forEach=function(e,t,n){t=b(t,n);var r,i;if(C(e))for(r=0,i=e.length;i>r;r++)t(e[r],r,e);else{var s=y.keys(e);for(r=0,i=s.length;i>r;r++)t(e[s[r]],s[r],e)}return e},y.map=y.collect=function(e,t,n){t=w(t,n);for(var r=!C(e)&&y.keys(e),i=(r||e).length,s=Array(i),o=0;i>o;o++){var u=r?r[o]:o;s[o]=t(e[u],u,e)}return s},y.reduce=y.foldl=y.inject=e(1),y.reduceRight=y.foldr=e(-1),y.find=y.detect=function(e,t,n){var r;return r=C(e)?y.findIndex(e,t,n):y.findKey(e,t,n),r!==void 0&&r!==-1?e[r]:void 0},y.filter=y.select=function(e,t,n){var r=[];return t=w(t,n),y.each(e,function(e,n,i){t(e,n,i)&&r.push(e)}),r},y.reject=function(e,t,n){return y.filter(e,y.negate(w(t)),n)},y.every=y.all=function(e,t,n){t=w(t,n);for(var r=!C(e)&&y.keys(e),i=(r||e).length,s=0;i>s;s++){var o=r?r[s]:s;if(!t(e[o],o,e))return!1}return!0},y.some=y.any=function(e,t,n){t=w(t,n);for(var r=!C(e)&&y.keys(e),i=(r||e).length,s=0;i>s;s++){var o=r?r[s]:s;if(t(e[o],o,e))return!0}return!1},y.contains=y.includes=y.include=function(e,t,n,r){return C(e)||(e=y.values(e)),("number"!=typeof n||r)&&(n=0),y.indexOf(e,t,n)>=0},y.invoke=function(e,t){var n=l.call(arguments,2),r=y.isFunction(t);return y.map(e,function(e){var i=r?t:e[t];return null==i?i:i.apply(e,n)})},y.pluck=function(e,t){return y.map(e,y.property(t))},y.where=function(e,t){return y.filter(e,y.matcher(t))},y.findWhere=function(e,t){return y.find(e,y.matcher(t))},y.max=function(e,t,n){var r,i,s=-1/0,o=-1/0;if(null==t&&null!=e){e=C(e)?e:y.values(e);for(var u=0,a=e.length;a>u;u++)r=e[u],r>s&&(s=r)}else t=w(t,n),y.each(e,function(e,n,r){i=t(e,n,r),(i>o||i===-1/0&&s===-1/0)&&(s=e,o=i)});return s},y.min=function(e,t,n){var r,i,s=1/0,o=1/0;if(null==t&&null!=e){e=C(e)?e:y.values(e);for(var u=0,a=e.length;a>u;u++)r=e[u],s>r&&(s=r)}else t=w(t,n),y.each(e,function(e,n,r){i=t(e,n,r),(o>i||1/0===i&&1/0===s)&&(s=e,o=i)});return s},y.shuffle=function(e){for(var t,n=C(e)?e:y.values(e),r=n.length,i=Array(r),s=0;r>s;s++)t=y.random(0,s),t!==s&&(i[s]=i[t]),i[t]=n[s];return i},y.sample=function(e,t,n){return null==t||n?(C(e)||(e=y.values(e)),e[y.random(e.length-1)]):y.shuffle(e).slice(0,Math.max(0,t))},y.sortBy=function(e,t,n){return t=w(t,n),y.pluck(y.map(e,function(e,n,r){return{value:e,index:n,criteria:t(e,n,r)}}).sort(function(e,t){var n=e.criteria,r=t.criteria;if(n!==r){if(n>r||n===void 0)return 1;if(r>n||r===void 0)return-1}return e.index-t.index}),"value")};var k=function(e){return function(t,n,r){var i={};return n=w(n,r),y.each(t,function(r,s){var o=n(r,s,t);e(i,r,o)}),i}};y.groupBy=k(function(e,t,n){y.has(e,n)?e[n].push(t):e[n]=[t]}),y.indexBy=k(function(e,t,n){e[n]=t}),y.countBy=k(function(e,t,n){y.has(e,n)?e[n]++:e[n]=1}),y.toArray=function(e){return e?y.isArray(e)?l.call(e):C(e)?y.map(e,y.identity):y.values(e):[]},y.size=function(e){return null==e?0:C(e)?e.length:y.keys(e).length},y.partition=function(e,t,n){t=w(t,n);var r=[],i=[];return y.each(e,function(e,n,s){(t(e,n,s)?r:i).push(e)}),[r,i]},y.first=y.head=y.take=function(e,t,n){return null==e?void 0:null==t||n?e[0]:y.initial(e,e.length-t)},y.initial=function(e,t,n){return l.call(e,0,Math.max(0,e.length-(null==t||n?1:t)))},y.last=function(e,t,n){return null==e?void 0:null==t||n?e[e.length-1]:y.rest(e,Math.max(0,e.length-t))},y.rest=y.tail=y.drop=function(e,t,n){return l.call(e,null==t||n?1:t)},y.compact=function(e){return y.filter(e,y.identity)};var L=function(e,t,n,r){for(var i=[],s=0,o=r||0,u=N(e);u>o;o++){var a=e[o];if(C(a)&&(y.isArray(a)||y.isArguments(a))){t||(a=L(a,t,n));var f=0,l=a.length;for(i.length+=l;l>f;)i[s++]=a[f++]}else n||(i[s++]=a)}return i};y.flatten=function(e,t){return L(e,t,!1)}
1,y.without=function(e){return y.difference(e,l.call(arguments,1))},y.uniq=y.unique=function(e,t,n,r){y.isBoolean(t)||(r=n,n=t,t=!1),null!=n&&(n=w(n,r));for(var i=[],s=[],o=0,u=N(e);u>o;o++){var a=e[o],f=n?n(a,o,e):a;t?(o&&s===f||i.push(a),s=f):n?y.contains(s,f)||(s.push(f),i.push(a)):y.contains(i,a)||i.push(a)}return i},y.union=function(){return y.uniq(L(arguments,!0,!0))},y.intersection=function(e){for(var t=[],n=arguments.length,r=0,i=N(e);i>r;r++){var s=e[r];if(!y.contains(t,s)){for(var o=1;n>o&&y.contains(arguments[o],s);o++);o===n&&t.push(s)}}return t},y.difference=function(e){var t=L(arguments,!0,!0,1);return y.filter(e,function(e){return!y.contains(t,e)})},y.zip=function(){return y.unzip(arguments)},y.unzip=function(e){for(var t=e&&y.max(e,N).length||0,n=Array(t),r=0;t>r;r++)n[r]=y.pluck(e,r);return n},y.object=function(e,t){for(var n={},r=0,i=N(e);i>r;r++)t?n[e[r]]=t[r]:n[e[r][0]]=e[r][1];return n},y.findIndex=t(1),y.findLastIndex=t(-1),y.sortedIndex=function(e,t,n,r){n=w(n,r,1);for(var i=n(t),s=0,o=N(e);o>s;){var u=Math.floor((s+o)/2);n(e[u])<i?s=u+1:o=u}return s},y.indexOf=n(1,y.findIndex,y.sortedIndex),y.lastIndexOf=n(-1,y.findLastIndex),y.range=function(e,t,n){null==t&&(t=e||0,e=0),n=n||1;for(var r=Math.max(Math.ceil((t-e)/n),0),i=Array(r),s=0;r>s;s++,e+=n)i[s]=e;return i};var A=function(e,t,n,r,i){if(r instanceof t){var s=S(e.prototype),o=e.apply(s,i);return y.isObject(o)?o:s}return e.apply(n,i)};y.bind=function(e,t){if(v&&e.bind===v)return v.apply(e,l.call(arguments,1));if(!y.isFunction(e))throw new TypeError("Bind must be called on a function");var n=l.call(arguments,2),r=function(){return A(e,r,t,this,n.concat(l.call(arguments)))};return r},y.partial=function(e){var t=l.call(arguments,1),n=function(){for(var r=0,i=t.length,s=Array(i),o=0;i>o;o++)s[o]=t[o]===y?arguments[r++]:t[o];for(;r<arguments.length;)s.push(arguments[r++]);return A(e,n,this,this,s)};return n},y.bindAll=function(e){var t,n,r=arguments.length;if(1>=r)throw new Error("bindAll must be passed function names");for(t=1;r>t;t++)n=arguments[t],e[n]=y.bind(e[n],e);return e},y.memoize=function(e,t){var n=function(r){var i=n.cache,s=""+(t?t.apply(this,arguments):r);return y.has(i,s)||(i[s]=e.apply(this,arguments)),i[s]};return n.cache={},n},y.delay=function(e,t){var n=l.call(arguments,2);return setTimeout(function(){return e.apply(null,n)},t)},y.defer=y.partial(y.delay,y,1),y.throttle=function(e,t,n){var r,i,s,o=null,u=0;n||(n={});var a=function(){u=n.leading===!1?0:y.now(),o=null,s=e.apply(r,i),o||(r=i=null)};return function(){var f=y.now();u||n.leading!==!1||(u=f);var l=t-(f-u);return r=this,i=arguments,0>=l||l>t?(o&&(clearTimeout(o),o=null),u=f,s=e.apply(r,i),o||(r=i=null)):o||n.trailing===!1||(o=setTimeout(a,l)),s}},y.debounce=function(e,t,n){var r,i,s,o,u,a=function(){var f=y.now()-o;t>f&&f>=0?r=setTimeout(a,t-f):(r=null,n||(u=e.apply(s,i),r||(s=i=null)))};return function(){s=this,i=arguments,o=y.now();var f=n&&!r;return r||(r=setTimeout(a,t)),f&&(u=e.apply(s,i),s=i=null),u}},y.wrap=function(e,t){return y.partial(t,e)},y.negate=function(e){return function(){return!e.apply(this,arguments)}},y.compose=function(){var e=arguments,t=e.length-1;return function(){for(var n=t,r=e[t].apply(this,arguments);n--;)r=e[n].call(this,r);return r}},y.after=function(e,t){return function(){return--e<1?t.apply(this,arguments):void 0}},y.before=function(e,t){var n;return function(){return--e>0&&(n=t.apply(this,arguments)),1>=e&&(t=null),n}},y.once=y.partial(y.before,2);var O=!{toString:null}.propertyIsEnumerable("toString"),M=["valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"];y.keys=function(e){if(!y.isObject(e))return[];if(d)return d(e);var t=[];for(var n in e)y.has(e,n)&&t.push(n);return O&&r(e,t),t},y.allKeys=function(e){if(!y.isObject(e))return[];var t=[];for(var n in e)t.push(n);return O&&r(e,t),t},y.values=function(e){for(var t=y.keys(e),n=t.length,r=Array(n),i=0;n>i;i++)r[i]=e[t[i]];return r},y.mapObject=function(e,t,n){t=w(t,n);for(var r,i=y.keys(e),s=i.length,o={},u=0;s>u;u++)r=i[u],o[r]=t(e[r],r,e);return o},y.pairs=function(e){for(var t=y.keys(e),n=t.length,r=Array(n),i=0;n>i;i++)r[i]=[t[i],e[t[i]]];return r},y.invert=function(e){for(var t={},n=y.keys(e),r=0,i=n.length;i>r;r++)t[e[n[r]]]=n[r];return t},y.functions=y.methods=function(e){var t=[];
vendor: 6,476 bytes, line 1
1for(var n in e)y.isFunction(e[n])&&t.push(n);return t.sort()},y.extend=E(y.allKeys),y.extendOwn=y.assign=E(y.keys),y.findKey=function(e,t,n){t=w(t,n);for(var r,i=y.keys(e),s=0,o=i.length;o>s;s++)if(r=i[s],t(e[r],r,e))return r},y.pick=function(e,t,n){var r,i,s={},o=e;if(null==o)return s;y.isFunction(t)?(i=y.allKeys(o),r=b(t,n)):(i=L(arguments,!1,!1,1),r=function(e,t,n){return t in n},o=Object(o));for(var u=0,a=i.length;a>u;u++){var f=i[u],l=o[f];r(l,f,o)&&(s[f]=l)}return s},y.omit=function(e,t,n){if(y.isFunction(t))t=y.negate(t);else{var r=y.map(L(arguments,!1,!1,1),String);t=function(e,t){return!y.contains(r,t)}}return y.pick(e,t,n)},y.defaults=E(y.allKeys,!0),y.create=function(e,t){var n=S(e);return t&&y.extendOwn(n,t),n},y.clone=function(e){return y.isObject(e)?y.isArray(e)?e.slice():y.extend({},e):e},y.tap=function(e,t){return t(e),e},y.isMatch=function(e,t){var n=y.keys(t),r=n.length;if(null==e)return!r;for(var i=Object(e),s=0;r>s;s++){var o=n[s];if(t[o]!==i[o]||!(o in i))return!1}return!0};var _=function(e,t,n,r){if(e===t)return 0!==e||1/e===1/t;if(null==e||null==t)return e===t;e instanceof y&&(e=e._wrapped),t instanceof y&&(t=t._wrapped);var i=c.call(e);if(i!==c.call(t))return!1;switch(i){case"[object RegExp]":case"[object String]":return""+e==""+t;case"[object Number]":return+e!==+e?+t!==+t:0===+e?1/+e===1/t:+e===+t;case"[object Date]":case"[object Boolean]":return+e===+t}var s="[object Array]"===i;if(!s){if("object"!=typeof e||"object"!=typeof t)return!1;var o=e.constructor,u=t.constructor;if(o!==u&&!(y.isFunction(o)&&o instanceof o&&y.isFunction(u)&&u instanceof u)&&"constructor"in e&&"constructor"in t)return!1}n=n||[],r=r||[];for(var a=n.length;a--;)if(n[a]===e)return r[a]===t;if(n.push(e),r.push(t),s){if(a=e.length,a!==t.length)return!1;for(;a--;)if(!_(e[a],t[a],n,r))return!1}else{var f,l=y.keys(e);if(a=l.length,y.keys(t).length!==a)return!1;for(;a--;)if(f=l[a],!y.has(t,f)||!_(e[f],t[f],n,r))return!1}return n.pop(),r.pop(),!0};y.isEqual=function(e,t){return _(e,t)},y.isEmpty=function(e){return null==e?!0:C(e)&&(y.isArray(e)||y.isString(e)||y.isArguments(e))?0===e.length:0===y.keys(e).length},y.isElement=function(e){return!!e&&1===e.nodeType},y.isArray=p||function(e){return"[object Array]"===c.call(e)},y.isObject=function(e){var t=typeof e;return"function"===t||"object"===t&&!!e},y.each(["Arguments","Function","String","Number","Date","RegExp","Error"],function(e){y["is"+e]=function(t){return c.call(t)==="[object "+e+"]"}}),y.isArguments(arguments)||(y.isArguments=function(e){return y.has(e,"callee")}),"function"!=typeof /./&&"object"!=typeof Int8Array&&(y.isFunction=function(e){return"function"==typeof e||!1}),y.isFinite=function(e){return isFinite(e)&&!isNaN(parseFloat(e))},y.isNaN=function(e){return y.isNumber(e)&&e!==+e},y.isBoolean=function(e){return e===!0||e===!1||"[object Boolean]"===c.call(e)},y.isNull=function(e){return null===e},y.isUndefined=function(e){return e===void 0},y.has=function(e,t){return null!=e&&h.call(e,t)},y.noConflict=function(){return i._=s,this},y.identity=function(e){return e},y.constant=function(e){return function(){return e}},y.noop=function(){},y.property=x,y.propertyOf=function(e){return null==e?function(){}:function(t){return e[t]}},y.matcher=y.matches=function(e){return e=y.extendOwn({},e),function(t){return y.isMatch(t,e)}},y.times=function(e,t,n){var r=Array(Math.max(0,e));t=b(t,n,1);for(var i=0;e>i;i++)r[i]=t(i);return r},y.random=function(e,t){return null==t&&(t=e,e=0),e+Math.floor(Math.random()*(t-e+1))},y.now=Date.now||function(){return(new Date).getTime()};var D={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;"},P=y.invert(D),H=function(e){var t=function(t){return e[t]},n="(?:"+y.keys(e).join("|")+")",r=RegExp(n),i=RegExp(n,"g");return function(e){return e=null==e?"":""+e,r.test(e)?e.replace(i,t):e}};y.escape=H(D),y.unescape=H(P),y.result=function(e,t,n){var r=null==e?void 0:e[t];return r===void 0&&(r=n),y.isFunction(r)?r.call(e):r};var B=0;y.uniqueId=function(e){var t=++B+"";return e?e+t:t},y.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g};var j=/(.)^/,F={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},I=/\\|'|\r|\n|\u2028|\u2029/g,q=function(e){return"\\"+F[e]};y.template=function(e,t,n){!t&&n&&(t=n),t=y.defaults({},t,y.templateSettings);var r=RegExp([(t.escape||j).source,(t.interpolate||j).source,(t.evaluate||j).source].join("|")+"|$","g"),i=0,s="__p+='";e.replace(r,function(t,n,r,o,u){return s+=e.slice(i,u).replace(I,q),i=u+t.length,n?s+="'+\n((__t=("+n+"))==null?'':_.escape(__t))+\n'":r?s+="'+\n((__t=("+r+"))==null?'':__t)+\n'":o&&(s+="';\n"+o+"\n__p+='"),t}),s+="';\n",t.variable||(s="with(obj||{}){\n"+s+"}\n"),s="var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};\n"+s+"return __p;\n";try{var o=new Function(t.variable||"obj","_",s)}catch(u){throw u.source=s,u}var a=function(e){return o.call(this,e,y)},f=t.variable||"obj";return a.source="function("+f+"){\n"+s+"}",a},y.chain=function(e){var t=y(e);return t._chain=!0,t};var R=function(e,t){return e._chain?y(t).chain():t};y.mixin=function(e){y.each(y.functions(e),function(t){var n=y[t]=e[t];y.prototype[t]=function(){var e=[this._wrapped];return f.apply(e,arguments),R(this,n.apply(y,e))}})},y.mixin(y),y.each(["pop","push","reverse","shift","sort","splice","unshift"],function(e){var t=o[e];y.prototype[e]=function(){var n=this._wrapped;return t.apply(n,arguments),"shift"!==e&&"splice"!==e||0!==n.length||delete n[0],R(this,n)}}),y.each(["concat","join","slice"],function(e){var t=o[e];y.prototype[e]=function(){return R(this,t.apply(this._wrapped,arguments))}}),y.prototype.value=function(){return this._wrapped},y.prototype.valueOf=y.prototype.toJSON=y.prototype.value,y.prototype.toString=function(){return""+this._wrapped},"function"==typeof define&&define.amd&&define("underscore",[],function(){return y})}.call(this),!function(e,t){"object"==typeof module&&"object"==typeof module.exports?module.exports=e.document?t(e,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return t(e)}:t(e)}("undefined"!=typeof window?window:this,function(a,b){function s(e){var t=!!e&&"length"in e&&e.length,r=n.type(e);return"function"===r||n.isWindow(e)?!1:"array"===r||0===t||"number"==typeof t&&t>0&&t-1 in e}function z(e,t,r){if(n.isFunction(t))return n.grep(e,function(e,n){return!!t.call(e,n,e)!==r});
vendor: 6,285 bytes, line 1
1if(t.nodeType)return n.grep(e,function(e){return e===t!==r});if("string"==typeof t){if(y.test(t))return n.filter(t,e,r);t=n.filter(t,e)}return n.grep(e,function(e){return h.call(t,e)>-1!==r})}function F(e,t){while((e=e[t])&&1!==e.nodeType);return e}function H(e){var t={};return n.each(e.match(G)||[],function(e,n){t[n]=!0}),t}function J(){d.removeEventListener("DOMContentLoaded",J),a.removeEventListener("load",J),n.ready()}function M(){this.expando=n.expando+M.uid++}function R(e,t,r){var i;if(void 0===r&&1===e.nodeType)if(i="data-"+t.replace(Q,"-$&").toLowerCase(),r=e.getAttribute(i),"string"==typeof r){try{r="true"===r?!0:"false"===r?!1:"null"===r?null:+r+""===r?+r:P.test(r)?n.parseJSON(r):r}catch(s){}O.set(e,t,r)}else r=void 0;return r}function W(e,t,r,i){var s,o=1,u=20,a=i?function(){return i.cur()}:function(){return n.css(e,t,"")},f=a(),l=r&&r[3]||(n.cssNumber[t]?"":"px"),c=(n.cssNumber[t]||"px"!==l&&+f)&&T.exec(n.css(e,t));if(c&&c[3]!==l){l=l||c[3],r=r||[],c=+f||1;do o=o||".5",c/=o,n.style(e,t,c+l);while(o!==(o=a()/f)&&1!==o&&--u)}return r&&(c=+c||+f||0,s=r[1]?c+(r[1]+1)*r[2]:+r[2],i&&(i.unit=l,i.start=c,i.end=s)),s}function _(e,t){var r="undefined"!=typeof e.getElementsByTagName?e.getElementsByTagName(t||"*"):"undefined"!=typeof e.querySelectorAll?e.querySelectorAll(t||"*"):[];return void 0===t||t&&n.nodeName(e,t)?n.merge([e],r):r}function aa(e,t){for(var n=0,r=e.length;r>n;n++)N.set(e[n],"globalEval",!t||N.get(t[n],"globalEval"))}function ca(e,t,r,i,s){for(var o,u,a,f,l,c,h=t.createDocumentFragment(),p=[],d=0,v=e.length;v>d;d++)if(o=e[d],o||0===o)if("object"===n.type(o))n.merge(p,o.nodeType?[o]:o);else if(ba.test(o)){u=u||h.appendChild(t.createElement("div")),a=(Y.exec(o)||["",""])[1].toLowerCase(),f=$[a]||$._default,u.innerHTML=f[1]+n.htmlPrefilter(o)+f[2],c=f[0];while(c--)u=u.lastChild;n.merge(p,u.childNodes),u=h.firstChild,u.textContent=""}else p.push(t.createTextNode(o));h.textContent="",d=0;while(o=p[d++])if(i&&n.inArray(o,i)>-1)s&&s.push(o);else if(l=n.contains(o.ownerDocument,o),u=_(h.appendChild(o),"script"),l&&aa(u),r){c=0;while(o=u[c++])Z.test(o.type||"")&&r.push(o)}return h}function ga(){return!0}function ha(){return!1}function ia(){try{return d.activeElement}catch(e){}}function ja(e,t,r,i,s,o){var u,a;if("object"==typeof t){"string"!=typeof r&&(i=i||r,r=void 0);for(a in t)ja(e,a,r,i,t[a],o);return e}if(null==i&&null==s?(s=r,i=r=void 0):null==s&&("string"==typeof r?(s=i,i=void 0):(s=i,i=r,r=void 0)),s===!1)s=ha;else if(!s)return e;return 1===o&&(u=s,s=function(e){return n().off(e),u.apply(this,arguments)},s.guid=u.guid||(u.guid=n.guid++)),e.each(function(){n.event.add(this,t,s,i,r)})}function pa(e,t){return n.nodeName(e,"table")&&n.nodeName(11!==t.nodeType?t:t.firstChild,"tr")?e.getElementsByTagName("tbody")[0]||e.appendChild(e.ownerDocument.createElement("tbody")):e}function qa(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function ra(e){var t=na.exec(e.type);return t?e.type=t[1]:e.removeAttribute("type"),e}function sa(e,t){var r,i,s,o,u,a,f,l;if(1===t.nodeType){if(N.hasData(e)&&(o=N.access(e),u=N.set(t,o),l=o.events)){delete u.handle,u.events={};for(s in l)for(r=0,i=l[s].length;i>r;r++)n.event.add(t,s,l[s][r])}O.hasData(e)&&(a=O.access(e),f=n.extend({},a),O.set(t,f))}}function ta(e,t){var n=t.nodeName.toLowerCase();"input"===n&&X.test(e.type)?t.checked=e.checked:"input"!==n&&"textarea"!==n||(t.defaultValue=e.defaultValue)}function ua(e,t,r,i){t=f.apply([],t);var s,o,u,a,c,h,p=0,d=e.length,v=d-1,m=t[0],g=n.isFunction(m);if(g||d>1&&"string"==typeof m&&!l.checkClone&&ma.test(m))return e.each(function(n){var s=e.eq(n);g&&(t[0]=m.call(this,n,s.html())),ua(s,t,r,i)});if(d&&(s=ca(t,e[0].ownerDocument,!1,e,i),o=s.firstChild,1===s.childNodes.length&&(s=o),o||i)){for(u=n.map(_(s,"script"),qa),a=u.length;d>p;p++)c=s,p!==v&&(c=n.clone(c,!0,!0),a&&n.merge(u,_(c,"script"))),r.call(e[p],c,p);if(a)for(h=u[u.length-1].ownerDocument,n.map(u,ra),p=0;a>p;p++)c=u[p],Z.test(c.type||"")&&!N.access(c,"globalEval")&&n.contains(h,c)&&(c.src?n._evalUrl&&n._evalUrl(c.src):n.globalEval(c.textContent.replace(oa,"")))}return e}function va(e,t,r){for(var i,s=t?n.filter(t,e):e,o=0;null!=(i=s[o]);o++)r||1!==i.nodeType||n.cleanData(_(i)),i.parentNode&&(r&&n.contains(i.ownerDocument,i)&&aa(_(i,"script")),i.parentNode.removeChild(i));return e}function ya(e,t){var r=n(t.createElement(e)).appendTo(t.body),i=n.css(r[0],"display");return r.detach(),i}function za(e){var t=d,r=xa[e];return r||(r=ya(e,t),"none"!==r&&r||(wa=(wa||n("<iframe frameborder='0' width='0' height='0'/>")).appendTo(t.documentElement),t=wa[0].contentDocument,t.write(),t.close(),r=ya(e,t),wa.detach()),xa[e]=r),r}function Fa(e,t,r){var i,s,o,u,a=e.style;return r=r||Ca(e),u=r?r.getPropertyValue(t)||r[t]:void 0,""!==u&&void 0!==u||n.contains(e.ownerDocument,e)||(u=n.style(e,t)),r&&!l.pixelMarginRight()&&Ba.test(u)&&Aa.test(t)&&(i=a.width,s=a.minWidth,o=a.maxWidth,a.minWidth=a.maxWidth=a.width=u,u=r.width,a.width=i,a.minWidth=s,a.maxWidth=o),void 0!==u?u+"":u}function Ga(e,t){return{get:function(){return e()?void delete this.get:(this.get=t).apply(this,arguments)}}}function Ma(e){if(e in La)return e;var t=e[0].toUpperCase()+e.slice(1),n=Ka.length;while(n--)if(e=Ka[n]+t,e in La)return e}function Na(e,t,n){var r=T.exec(t);return r?Math.max(0,r[2]-(n||0))+(r[3]||"px"):t}function Oa(e,t,r,i,s){for(var o=r===(i?"border":"content")?4:"width"===t?1:0,u=0;4>o;o+=2)"margin"===r&&(u+=n.css(e,r+U[o],!0,s)),i?("content"===r&&(u-=n.css(e,"padding"+U[o],!0,s)),"margin"!==r&&(u-=n.css(e,"border"+U[o]+"Width",!0,s))):(u+=n.css(e,"padding"+U[o],!0,s),"padding"!==r&&(u+=n.css(e,"border"+U[o]+"Width",!0,s)));return u}function Pa(e,t,r){var i=!0,s="width"===t?e.offsetWidth:e.offsetHeight,o=Ca(e),u="border-box"===n.css(e,"boxSizing",!1,o);if(0>=s||null==s){if(s=Fa(e,t,o),(0>s||null==s)&&(s=e.style[t]),Ba.test(s))return s;i=u&&(l.boxSizingReliable()||s===e.style[t]),s=parseFloat(s)||0}return s+Oa(e,t,r||(u?"border":"content"),i,o)+"px"}function Qa(e,t){for(var r,i,s,o=[],u=0,a=e.length;a>u;u++)i=e[u],i.style&&(o[u]=N.get(i,"olddisplay"),r=i.style.display,t?(o[u]||"none"!==r||(i.style.display=""),""===i.style.display&&V(i)&&(o[u]=N.access(i,"olddisplay",za(i.nodeName)))):(s=V(i),"none"===r&&s||N.set(i,"olddisplay",s?r:n.css(i,"dis
1play"))));for(u=0;a>u;u++)i=e[u],i.style&&(t&&"none"!==i.style.display&&""!==i.style.display||(i.style.display=t?o[u]||"":"none"));return e}function Ra(e,t,n,r,i){return new Ra.prototype.init(e,t,n,r,i)}function Wa(){return a.setTimeout(function(){Sa=void 0}),Sa=n.now()}function Xa(e,t){var n,r=0,i={height:e};for(t=t?1:0;4>r;r+=2-t)n=U[r],i["margin"+n]=i["padding"+n]=e;return t&&(i.opacity=i.width=e),i}function Ya(e,t,n){for(var r,i=(_a.tweeners[t]||[]).concat(_a.tweeners["*"]),s=0,o=i.length;o>s;s++)if(r=i[s].call(n,t,e))return r}function Za(e,t,r){var i,s,o,u,a,f,l,c,h=this,p={},d=e.style,v=e.nodeType&&V(e),m=N.get(e,"fxshow");r.queue||(a=n._queueHooks(e,"fx"),null==a.unqueued&&(a.unqueued=0,f=a.empty.fire,a.empty.fire=function(){a.unqueued||f()}),a.unqueued++,h.always(function(){h.always(function(){a.unqueued--,n.queue(e,"fx").length||a.empty.fire()})})),1===e.nodeType&&("height"in t||"width"in t)&&(r.overflow=[d.overflow,d.overflowX,d.overflowY],l=n.css(e,"display"),c="none"===l?N.get(e,"olddisplay")||za(e.nodeName):l,"inline"===c&&"none"===n.css(e,"float")&&(d.display="inline-block")),r.overflow&&(d.overflow="hidden",h.always(function(){d.overflow=r.overflow[0],d.overflowX=r.overflow[1],d.overflowY=r.overflow[2]}));for(i in t)if(s=t[i],Ua.exec(s)){if(delete t[i],o=o||"toggle"===s,s===(v?"hide":"show")){if("show"!==s||!m||void 0===m[i])continue;v=!0}p[i]=m&&m[i]||n.style(e,i)}else l=void 0;if(n.isEmptyObject(p))"inline"===("none"===l?za(e.nodeName):l)&&(d.display=l);else{m?"hidden"in m&&(v=m.hidden):m=N.access(e,"fxshow",{}),o&&(m.hidden=!v),v?n(e).show():h.done(function(){n(e).hide()}),h.done(function(){var t;N.remove(e,"fxshow");for(t in p)n.style(e,t,p[t])});for(i in p)u=Ya(v?m[i]:0,i,h),i in m||(m[i]=u.start,v&&(u.end=u.start,u.start="width"===i||"height"===i?1:0))}}function $a(e,t){var r,i,s,o,u;for(r in e)if(i=n.camelCase(r),s=t[i],o=e[r],n.isArray(o)&&(s=o[1],o=e[r]=o[0]),r!==i&&(e[i]=o,delete e[r]),u=n.cssHooks[i],u&&"expand"in u){o=u.expand(o),delete e[i];for(r in o)r in e||(e[r]=o[r],t[r]=s)}else t[i]=s}function _a(e,t,r){var i,s,o=0,u=_a.prefilters.length,a=n.Deferred().always(function(){delete f.elem}),f=function(){if(s)return!1;for(var t=Sa||Wa(),n=Math.max(0,l.startTime+l.duration-t),r=n/l.duration||0,i=1-r,o=0,u=l.tweens.length;u>o;o++)l.tweens[o].run(i);return a.notifyWith(e,[l,i,n]),1>i&&u?n:(a.resolveWith(e,[l]),!1)},l=a.promise({elem:e,props:n.extend({},t),opts:n.extend(!0,{specialEasing:{},easing:n.easing._default},r),originalProperties:t,originalOptions:r,startTime:Sa||Wa(),duration:r.duration,tweens:[],createTween:function(t,r){var i=n.Tween(e,l.opts,t,r,l.opts.specialEasing[t]||l.opts.easing);return l.tweens.push(i),i},stop:function(t){var n=0,r=t?l.tweens.length:0;if(s)return this;for(s=!0;r>n;n++)l.tweens[n].run(1);return t?(a.notifyWith(e,[l,1,0]),a.resolveWith(e,[l,t])):a.rejectWith(e,[l,t]),this}}),c=l.props;for($a(c,l.opts.specialEasing);u>o;o++)if(i=_a.prefilters[o].call(l,e,c,l.opts))return n.isFunction(i.stop)&&(n._queueHooks(l.elem,l.opts.queue).stop=n.proxy(i.stop,i)),i;return n.map(c,Ya,l),n.isFunction(l.opts.start)&&l.opts.start.call(e,l),n.fx.timer(n.extend(f,{elem:e,anim:l,queue:l.opts.queue})),l.progress(l.opts.progress).done(l.opts.done,l.opts.complete).fail(l.opts.fail).always(l.opts.always)}function fb(e){return e.getAttribute&&e.getAttribute("class")||""}function wb(e){return function(t,r){"string"!=typeof t&&(r=t,t="*");var i,s=0,o=t.toLowerCase().match(G)||[];if(n.isFunction(r))while(i=o[s++])"+"===i[0]?(i=i.slice(1)||"*",(e[i]=e[i]||[]).unshift(r)):(e[i]=e[i]||[]).push(r)}}function xb(e,t,r,i){function u(l){var h;return s[l]=!0,n.each(e[l]||[],function(e,n){var a=n(t,r,i);return"string"!=typeof a||o||s[a]?o?!(h=a):void 0:(t.dataTypes.unshift(a),u(a),!1)}),h}var s={},o=e===tb;return u(t.dataTypes[0])||!s["*"]&&u("*")}function yb(e,t){var r,i,s=n.ajaxSettings.flatOptions||{};for(r in t)void 0!==t[r]&&((s[r]?e:i||(i={}))[r]=t[r]);return i&&n.extend(!0,e,i),e}function zb(e,t,n){var r,i,s,o,u=e.contents,a=e.dataTypes;while("*"===a[0])a.shift(),void 0===r&&(r=e.mimeType||t.getResponseHeader("Content-Type"));if(r)for(i in u)if(u[i]&&u[i].test(r)){a.unshift(i);break}if(a[0]in n)s=a[0];else{for(i in n){if(!a[0]||e.converters[i+" "+a[0]]){s=i;break}o||(o=i)}s=s||o}return s?(s!==a[0]&&a.unshift(s),n[s]):void 0}function Ab(e,t,n,r){var i,s,o,u,a,f={},l=e.dataTypes.slice();if(l[1])for(o in e.converters)f[o.toLowerCase()]=e.converters[o];s=l.shift();while(s)if(e.responseFields[s]&&(n[e.responseFields[s]]=t),!a&&r&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),a=s,s=l.shift())if("*"===s)s=a;else if("*"!==a&&a!==s){if(o=f[a+" "+s]||f["* "+s],!o)for(i in f)if(u=i.split(" "),u[1]===s&&(o=f[a+" "+u[0]]||f["* "+u[0]])){o===!0?o=f[i]:f[i]!==!0&&(s=u[0],l.unshift(u[1]));break}if(o!==!0)if(o&&e["throws"])t=o(t);else try{t=o(t)}catch(c){return{state:"parsererror",error:o?c:"No conversion from "+a+" to "+s}}}return{state:"success",data:t}}
vendor: 4,300 bytes, line 1
1function Gb(e,t,r,i){var s;if(n.isArray(t))n.each(t,function(t,n){r||Cb.test(e)?i(e,n):Gb(e+"["+("object"==typeof n&&null!=n?t:"")+"]",n,r,i)});else if(r||"object"!==n.type(t))i(e,t);else for(s in t)Gb(e+"["+s+"]",t[s],r,i)}function Mb(e){return n.isWindow(e)?e:9===e.nodeType&&e.defaultView}var c=[],d=a.document,e=c.slice,f=c.concat,g=c.push,h=c.indexOf,i={},j=i.toString,k=i.hasOwnProperty,l={},m="2.2.4",n=function(e,t){return new n.fn.init(e,t)},o=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,p=/^-ms-/,q=/-([\da-z])/gi,r=function(e,t){return t.toUpperCase()};n.fn=n.prototype={jquery:m,constructor:n,selector:"",length:0,toArray:function(){return e.call(this)},get:function(t){return null!=t?0>t?this[t+this.length]:this[t]:e.call(this)},pushStack:function(e){var t=n.merge(this.constructor(),e);return t.prevObject=this,t.context=this.context,t},each:function(e){return n.each(this,e)},map:function(e){return this.pushStack(n.map(this,function(t,n){return e.call(t,n,t)}))},slice:function(){return this.pushStack(e.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(e){var t=this.length,n=+e+(0>e?t:0);return this.pushStack(n>=0&&t>n?[this[n]]:[])},end:function(){return this.prevObject||this.constructor()},push:g,sort:c.sort,splice:c.splice},n.extend=n.fn.extend=function(){var e,t,r,i,s,o,u=arguments[0]||{},a=1,f=arguments.length,l=!1;for("boolean"==typeof u&&(l=u,u=arguments[a]||{},a++),"object"==typeof u||n.isFunction(u)||(u={}),a===f&&(u=this,a--);f>a;a++)if(null!=(e=arguments[a]))for(t in e)r=u[t],i=e[t],u!==i&&(l&&i&&(n.isPlainObject(i)||(s=n.isArray(i)))?(s?(s=!1,o=r&&n.isArray(r)?r:[]):o=r&&n.isPlainObject(r)?r:{},u[t]=n.extend(l,o,i)):void 0!==i&&(u[t]=i));return u},n.extend({expando:"jQuery"+(m+Math.random()).replace(/\D/g,""),isReady:!0,error:function(e){throw new Error(e)},noop:function(){},isFunction:function(e){return"function"===n.type(e)},isArray:Array.isArray,isWindow:function(e){return null!=e&&e===e.window},isNumeric:function(e){var t=e&&e.toString();return!n.isArray(e)&&t-parseFloat(t)+1>=0},isPlainObject:function(e){var t;if("object"!==n.type(e)||e.nodeType||n.isWindow(e))return!1;if(e.constructor&&!k.call(e,"constructor")&&!k.call(e.constructor.prototype||{},"isPrototypeOf"))return!1;for(t in e);return void 0===t||k.call(e,t)},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},type:function(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?i[j.call(e)]||"object":typeof e},globalEval:function(a){var b,c=eval;a=n.trim(a),a&&(1===a.indexOf("use strict")?(b=d.createElement("script"),b.text=a,d.head.appendChild(b).parentNode.removeChild(b)):c(a))},camelCase:function(e){return e.replace(p,"ms-").replace(q,r)},nodeName:function(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()},each:function(e,t){var n,r=0;if(s(e)){for(n=e.length;n>r;r++)if(t.call(e[r],r,e[r])===!1)break}else for(r in e)if(t.call(e[r],r,e[r])===!1)break;return e},trim:function(e){return null==e?"":(e+"").replace(o,"")},makeArray:function(e,t){var r=t||[];return null!=e&&(s(Object(e))?n.merge(r,"string"==typeof e?[e]:e):g.call(r,e)),r},inArray:function(e,t,n){return null==t?-1:h.call(t,e,n)},merge:function(e,t){for(var n=+t.length,r=0,i=e.length;n>r;r++)e[i++]=t[r];return e.length=i,e},grep:function(e,t,n){for(var r,i=[],s=0,o=e.length,u=!n;o>s;s++)r=!t(e[s],s),r!==u&&i.push(e[s]);return i},map:function(e,t,n){var r,i,o=0,u=[];if(s(e))for(r=e.length;r>o;o++)i=t(e[o],o,n),null!=i&&u.push(i);else for(o in e)i=t(e[o],o,n),null!=i&&u.push(i);return f.apply([],u)},guid:1,proxy:function(t,r){var i,s,o;return"string"==typeof r&&(i=t[r],r=t,t=i),n.isFunction(t)?(s=e.call(arguments,2),o=function(){return t.apply(r||this,s.concat(e.call(arguments)))},o.guid=t.guid=t.guid||n.guid++,o):void 0},now:Date.now,support:l}),"function"==typeof Symbol&&(n.fn[Symbol.iterator]=c[Symbol.iterator]),n.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(e,t){i["[object "+t+"]"]=t.toLowerCase()});var t=function(e){function st(e,t,r,i){var s,u,f,l,c,d,g,y,S=t&&t.ownerDocument,x=t?t.nodeType:9;if(r=r||[],"string"!=typeof e||!e||1!==x&&9!==x&&11!==x)return r;if(!i&&((t?t.ownerDocument||t:E)!==p&&h(t),t=t||p,v)){if(11!==x&&(d=Y.exec(e)))if(s=d[1]){if
vendor: 15,394 bytes, line 1
1(9===x){if(!(f=t.getElementById(s)))return r;if(f.id===s)return r.push(f),r}else if(S&&(f=S.getElementById(s))&&b(t,f)&&f.id===s)return r.push(f),r}else{if(d[2])return D.apply(r,t.getElementsByTagName(e)),r;if((s=d[3])&&n.getElementsByClassName&&t.getElementsByClassName)return D.apply(r,t.getElementsByClassName(s)),r}if(n.qsa&&!C[e+" "]&&(!m||!m.test(e))){if(1!==x)S=t,y=e;else if("object"!==t.nodeName.toLowerCase()){(l=t.getAttribute("id"))?l=l.replace(et,"\\$&"):t.setAttribute("id",l=w),g=o(e),u=g.length,c=$.test(l)?"#"+l:"[id='"+l+"']";while(u--)g[u]=c+" "+mt(g[u]);y=g.join(","),S=Z.test(e)&&dt(t.parentNode)||t}if(y)try{return D.apply(r,S.querySelectorAll(y)),r}catch(T){}finally{l===w&&t.removeAttribute("id")}}}return a(e.replace(U,"$1"),t,r,i)}function ot(){function t(n,i){return e.push(n+" ")>r.cacheLength&&delete t[e.shift()],t[n+" "]=i}var e=[];return t}function ut(e){return e[w]=!0,e}function at(e){var t=p.createElement("div");try{return!!e(t)}catch(n){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function ft(e,t){var n=e.split("|"),i=n.length;while(i--)r.attrHandle[n[i]]=t}function lt(e,t){var n=t&&e,r=n&&1===e.nodeType&&1===t.nodeType&&(~t.sourceIndex||L)-(~e.sourceIndex||L);if(r)return r;if(n)while(n=n.nextSibling)if(n===t)return-1;return e?1:-1}function ct(e){return function(t){var n=t.nodeName.toLowerCase();return"input"===n&&t.type===e}}function ht(e){return function(t){var n=t.nodeName.toLowerCase();return("input"===n||"button"===n)&&t.type===e}}function pt(e){return ut(function(t){return t=+t,ut(function(n,r){var i,s=e([],n.length,t),o=s.length;while(o--)n[i=s[o]]&&(n[i]=!(r[i]=n[i]))})})}function dt(e){return e&&"undefined"!=typeof e.getElementsByTagName&&e}function vt(){}function mt(e){for(var t=0,n=e.length,r="";n>t;t++)r+=e[t].value;return r}function gt(e,t,n){var r=t.dir,i=n&&"parentNode"===r,s=x++;return t.first?function(t,n,s){while(t=t[r])if(1===t.nodeType||i)return e(t,n,s)}:function(t,n,o){var u,a,f,l=[S,s];if(o){while(t=t[r])if((1===t.nodeType||i)&&e(t,n,o))return!0}else while(t=t[r])if(1===t.nodeType||i){if(f=t[w]||(t[w]={}),a=f[t.uniqueID]||(f[t.uniqueID]={}),(u=a[r])&&u[0]===S&&u[1]===s)return l[2]=u[2];if(a[r]=l,l[2]=e(t,n,o))return!0}}}function yt(e){return e.length>1?function(t,n,r){var i=e.length;while(i--)if(!e[i](t,n,r))return!1;return!0}:e[0]}function bt(e,t,n){for(var r=0,i=t.length;i>r;r++)st(e,t[r],n);return n}function wt(e,t,n,r,i){for(var s,o=[],u=0,a=e.length,f=null!=t;a>u;u++)(s=e[u])&&(n&&!n(s,r,i)||(o.push(s),f&&t.push(u)));return o}function Et(e,t,n,r,i,s){return r&&!r[w]&&(r=Et(r)),i&&!i[w]&&(i=Et(i,s)),ut(function(s,o,u,a){var f,l,c,h=[],p=[],d=o.length,v=s||bt(t||"*",u.nodeType?[u]:u,[]),m=!e||!s&&t?v:wt(v,h,e,u,a),g=n?i||(s?e:d||r)?[]:o:m;if(n&&n(m,g,u,a),r){f=wt(g,p),r(f,[],u,a),l=f.length;while(l--)(c=f[l])&&(g[p[l]]=!(m[p[l]]=c))}if(s){if(i||e){if(i){f=[],l=g.length;while(l--)(c=g[l])&&f.push(m[l]=c);i(null,g=[],f,a)}l=g.length;while(l--)(c=g[l])&&(f=i?H(s,c):h[l])>-1&&(s[f]=!(o[f]=c))}}else g=wt(g===o?g.splice(d,g.length):g),i?i(null,o,g,a):D.apply(o,g)})}function St(e){for(var t,n,i,s=e.length,o=r.relative[e[0].type],u=o||r.relative[" "],a=o?1:0,l=gt(function(e){return e===t},u,!0),c=gt(function(e){return H(t,e)>-1},u,!0),h=[function(e,n,r){var i=!o&&(r||n!==f)||((t=n).nodeType?l(e,n,r):c(e,n,r));return t=null,i}];s>a;a++)if(n=r.relative[e[a].type])h=[gt(yt(h),n)];else{if(n=r.filter[e[a].type].apply(null,e[a].matches),n[w]){for(i=++a;s>i;i++)if(r.relative[e[i].type])break;return Et(a>1&&yt(h),a>1&&mt(e.slice(0,a-1).concat({value:" "===e[a-2].type?"*":""})).replace(U,"$1"),n,i>a&&St(e.slice(a,i)),s>i&&St(e=e.slice(i)),s>i&&mt(e))}h.push(n)}return yt(h)}function xt(e,t){var n=t.length>0,i=e.length>0,s=function(s,o,u,a,l){var c,d,m,g=0,y="0",b=s&&[],w=[],E=f,x=s||i&&r.find.TAG("*",l),T=S+=null==E?1:Math.random()||.1,N=x.length;for(l&&(f=o===p||o||l);y!==N&&null!=(c=x[y]);y++){if(i&&c){d=0,o||c.ownerDocument===p||(h(c),u=!v);while(m=e[d++])if(m(c,o||p,u)){a.push(c);break}l&&(S=T)}n&&((c=!m&&c)&&g--,s&&b.push(c))}if(g+=y,n&&y!==g){d=0;while(m=t[d++])m(b,w,o,u);if(s){if(g>0)while(y--)b[y]||w[y]||(w[y]=M.call(a));w=wt(w)}D.apply(a,w),l&&!s&&w.length>0&&g+t.length>1&&st.uniqueSort(a)}return l&&(S=T,f=E),b};return n?ut(s):s}var t,n,r,i,s,o,u,a,f,l,c,h,p,d,v,m,g,y,b,w="sizzle"+1*new Date,E=e.document,S=0,x=0,T=ot(),N=ot(),C=ot(),k=function(e,t){return e===t&&(c=!0),0},L=1<<31,A={}.hasOwnProperty,O=[],M=O.pop,_=O.push,D=O.push,P=O.slice,H=function(e,t){for(var n=0,r=e.length;r>n;n++)if(e[n]===t)return n;return-1},B="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",j="[\\x20\\t\\r\\n\\f]",F="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",I="\\["+j+"*("+F+")(?:"+j+"*([*^$|!~]?=)"+j+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+F+"))|)"+j+"*\\]",q=":("+F+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+I+")*)|.*)\\)|)",R=new RegExp(j+"+","g"),U=new RegExp("^"+j+"+|((?:^|[^\\\\])(?:\\\\.)*)"+j+"+$","g"),z=new RegExp("^"+j+"*,"+j+"*"),W=new RegExp("^"+j+"*([>+~]|"+j+")"+j+"*"),X=new RegExp("="+j+"*([^\\]'\"]*?)"+j+"*\\]","g"),V=new RegExp(q),$=new RegExp("^"+F+"$"),J={ID:new RegExp("^#("+F+")"),CLASS:new RegExp("^\\.("+F+")"),TAG:new RegExp("^("+F+"|[*])"),ATTR:new RegExp("^"+I),PSEUDO:new RegExp("^"+q),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+j+"*(even|odd|(([+-]|)(\\d*)n|)"+j+"*(?:([+-]|)"+j+"*(\\d+)|))"+j+"*\\)|)","i"),bool:new RegExp("^(?:"+B+")$","i"),needsContext:new RegExp("^"+j+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+j+"*((?:-\\d)?\\d*)"+j+"*\\)|)(?=[^-]|$)","i")},K=/^(?:input|select|textarea|button)$/i,Q=/^h\d$/i,G=/^[^{]+\{\s*\[native \w/,Y=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,Z=/[+~]/,et=/'|\\/g,tt=new RegExp("\\\\([\\da-f]{1,6}"+j+"?|("+j+")|.)","ig"),nt=function(e,t,n){var r="0x"+t-65536;return r!==r||n?t:0>r?String.fromCharCode(r+65536):String.fromCharCode(r>>10|55296,1023&r|56320)},rt=function(){h()};try{D.apply(O=P.call(E.childNodes),E.childNodes),O[E.childNodes.length].nodeType}catch(it){D={apply:O.length?function(e,t){_.apply(e,P.call(t))}:function(e,t){var n=e.length,r=0;while(e[n++]=t[r++]);e.length=n-1}}}n=st.support={},s=st.isXML=function(e){var t=e&&(e.ownerDocument||e).documentElement;return t?"HTML"!==t.nodeName:!1},h=st.setDocument=function(e){var t,i,o=e?e.ownerDocument||e:E;return o!==p&&9===o.nodeType&&o.documentElement?(p=o,d=p.documentElement,v=!s(p),(i=p.defaultView)&&i.top!==i&&(i.addEventListener?i.addEventListener("unload",rt,!1):i.attachEvent&&i.attachEvent("onunload",rt)),n.attributes=at(function(e){return e.className="i",!e.getAttribute("className")}),n.getElementsByTagName=at(function(e){return e.appendChild(p.createComment("")),!e.getElementsByTagName("*").length}),n.getElementsByClassName=G.test(p.getElementsByClassName),n.getById=at(function(e){return d.appendChild(e).id=w,!p.getElementsByName||!p.getElementsByName(w).length}),n.getById?(r.find.ID=function(e,t){if("undefined"!=typeof t.getElementById&&v){var n=t.getElementById(e);return n?[n]:[]}},r.filter.ID=function(e){var t=e.replace(tt,nt);return function(e){return e.getAttribute("id")===t}}):(delete r.find.ID,r.filter.ID=function(e){var t=e.replace(tt,nt);return function(e){var n="undefined"!=typeof e.getAttributeNode&&e.getAttributeNode("id");return n&&n.value===t}}),r.find.TAG=n.getElementsByTagName?function(e,t){return"undefined"!=typeof t.getElementsByTagName?t.getElementsByTagName(e):n.qsa?t.querySelectorAll(e):void 0}:function(e,t){var n,r=[],i=0,s=t.getElementsByTagName(e);if("*"===e){while(n=s[i++])1===n.nodeType&&r.push(n);return r}return s},r.find.CLASS=n.getElementsByClassName&&function(e,t){return"undefined"!=typeof t.getElementsByClassName&&v?t.getElementsByClassName(e):void 0},g=[],m=[],(n.qsa=G.test(p.querySelectorAll))&&(at(function(e){d.appendChild(e).innerHTML="<a id='"+w+"'></a><select id='"+w+"-\r\\' msallowcapture=''><option selected=''></option></select>",e.querySelectorAll("[msallowcapture^='']").length&&m.push("[*^$]="+j+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||m.push("\\["+j+"*(?:value|"+B+")"),e.querySelectorAll("[id~="+w+"-]").length||m.push("~="),e.querySelectorAll(":checked").length||m.push(":checked"),e.querySelectorAll("a#"+w+"+*").length||m.push(".#.+[+~]")}),at(function(e){var t=p.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&m.push("name"+j+"*[*^$|!~]?="),e.querySelectorAll(":enabled").length||m.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),m.push(",.*:")})),(n.matchesSelector=G.test(y=d.matches||d.webkitMatchesSelector||d.mozMatchesSelector||d.oMatchesSelector||d.msMatchesSelector))&&at(function(e){n.disconnectedMatch=y.call(e,"div"),y.call(e,"[s!='']:x"),g.push("!=",q)}),m=m.length&&new RegExp(m.join("|")),g=g.length&&new RegExp(g.join("|")),t=G.test(d.compareDocumentPosition),b=t||G.test(d.contains)?function(e,t){var n=9===e.nodeType?e.documentElement:e,r=t&&t.parentNode;return e===r||!!r&&1===r.nodeType&&!!(n.contains?n.contains(r):e.compareDocumentPosition&&16&e.compareDocumentPosition(r))}:function(e,t){if(t)while(t=t.parentNode)if(t===e)return!0;return!1},k=t?function(e,t){if(e===t)return c=!0,0;var r=!e.compareDocumentPosition-!t.compareDocumentPosition;return r?r:(r=(e.ownerDocument||e)===(t.ownerDocument||t)?e.compareDocumentPosition(t):1,1&r||!n.sortDetached&&t.compareDocumentPosition(e)===r?e===p||e.ownerDocument===E&&b(E,e)?-1:t===p||t.ownerDocument===E&&b(E,t)?1:l?H(l,e)-H(l,t):0:4&r?-1:1)}:function(e,t){if(e===t)return c=!0,0;var n,r=0,i=e.parentNode,s=t.parentNode,o=[e],u=[t];if(!i||!s)return e===p?-1:t===p?1:i?-1:s?1:l?H(l,e)-H(l,t):0;if(i===s)return lt(e,t);n=e;while(n=n.parentNode)o.unshift(n);n=t;while(n=n.parentNode)u.unshift(n);while(o[r]===u[r])r++;return r?lt(o[r],u[r]):o[r]===E?-1:u[r]===E?1:0},p):p},st.matches=function(e,t){return st(e,null,null,t)},st.matchesSelector=function(e,t){if((e.ownerDocument||e)!==p&&h(e),t=t.replace(X,"='$1']"),n.matchesSelector&&v&&!C[t+" "]&&(!g||!g.test(t))&&(!m||!m.test(t)))try{var r=y.call(e,t);if(r||n.disconnectedMatch||e.document&&11!==e.document.nodeType)return r}catch(i){}return st(t,p,null,[e]).length>0},st.contains=function(e,t){return(e.ownerDocument||e)!==p&&h(e),b(e,t)},st.attr=function(e,t){(e.ownerDocument||e)!==p&&h(e);var i=r.attrHandle[t.toLowerCase()],s=i&&A.call(r.attrHandle,t.toLowerCase())?i(e,t,!v):void 0;return void 0!==s?s:n.attributes||!v?e.getAttribute(t):(s=e.getAttributeNode(t))&&s.specified?s.value:null},st.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},st.uniqueSort=function(e){var t,r=[],i=0,s=0;if(c=!n.detectDuplicates,l=!n.sortStable&&e.slice(0),e.sort(k),c){while(t=e[s++])t===e[s]&&(i=r.push(s));while(i--)e.splice(r[i],1)}return l=null,e},i=st.getText=function(e){var t,n="",r=0,s=e.nodeType;if(s){if(1===s||9===s||11===s){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)n+=i(e)}else if(3===s||4===s)return e.nodeValue}else while(t=e[r++])n+=i(t);return n},r=st.selectors={cacheLength:50,createPseudo:ut,match:J,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(tt,nt),e[3]=(e[3]||e[4]||e[5]||"").replace(tt,nt),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||st.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&st.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return J.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&V.test(n)&&(t=o(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(tt,nt).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=T[e+" "];return t||(t=new RegExp("(^|"+j+")"+e+"("+j+"|$)"))&&T(e,function(e){return t.test("string"==typeof e.className&&e.className||"undefined"!=typeof e.getAttribute&&e.getAttribute("class")||"")})},ATTR:function(e,t,n){return function(r){var i=st.attr(r,e);return null==i?"!="===t:t?(i+="","="===t?i===n:"!="===t?i!==n:"^="===t?n&&0===i.indexOf(n):"*="===t?n&&i.indexOf(n)>-1:"$="===t?n&&i.slice(-n.length)===n:"~="===t?(" "+i.replace(R," ")+" ").indexOf(n)>-1:"|="===t?i===n||i.slice(0,n.length+1)===n+"-":!1):!0}},CHILD:function(e,t,n,r,i){var s="nth"!==e.slice(0,3),o="last"!==e.slice(-4),u="of-type"===t;return 1===r&&0===i?function(e){return!!e.parentNode}:function(t,n,a){var f,l,c,h,p,d,v=s!==o?"nextSibling":"previousSibling",m=t.parentNode,g=u&&t.nodeName.toLowerCase(),y=!a&&!u,b=!1;if(m){if(s){while(v){h=t;while(h=h[v])if(u?h.nodeName.toLowerCase()===g:1===h.nodeType)return!1;d=v="only"===e&&!d&&"nextSibling"}return!0}if(d=[o?m.firstChild:m.lastChild],o&&y){h=m,c=h[w]||(h[w]={}),l=c[h.uniqueID]||(c[h.uniqueID]={}),f=l[e]||[],p=f[0]===S&&f[1],b=p&&f[2],h=p&&m.childNodes[p];while(h=++p&&h&&h[v]||(b=p=0)||d.pop())if(1===h.nodeType&&++b&&h===t){l[e]=[S,p,b];break}}else if(y&&(h=t,c=h[w]||(h[w]={}),l=c[h.uniqueID]||(c[h.uniqueID]={}),f=l[e]||[],p=f[0]===S&&f[1],b=p),b===!1)while(h=++p&&h&&h[v]||(b=p=0)||d.pop())if((u?h.nodeName.toLowerCase()===g:1===h.nodeType)&&++b&&(y&&(c=h[w]||(h[w]={}),l=c[h.uniqueID]||(c[h.uniqueID]={}),l[e]=[S,b]),h===t))break;return b-=i,b===r||b%r===0&&b/r>=0}}},PSEUDO:function(e,t){var n,i=r.pseudos[e]||r.setFilters[e.toLowerCase()]||st.error("unsupported pseudo: "+e);return i[w]?i(t):i.length>1?(n=[e,e,"",t],r.setFilters.hasOwnProperty(e.toLowerCase())?ut(function(e,n){var r,s=i(e,t),o=s.length;while(o--)r=H(e,s[o]),e[r]=!(n[r]=s[o])}):function(e){return i(e,0,n)}):i}},pseudos:{not:ut(function(e){var t=[],n=[],r=u(e.replace(U,"$1"));return r[w]?ut(function(e,t,n,i){var s,o=r(e,null,i,[]),u=e.length;while(u--)(s=o[u])&&(e[u]=!(t[u]=s))}):function(e,i,s){return t[0]=e,r(t,null,s,n),t[0]=null,!n.pop()}}),has:ut(function(e){return function(t){return st(e,t).length>0}}),contains:ut(function(e){return e=e.replace(tt,nt),function(t){return(t.textContent||t.innerText||i(t)).indexOf(e)>-1}}),lang:ut(function(e){return $.test(e||"")||st.error("unsupported lang: "+e),e=e.replace(tt,nt).toLowerCase(),function(t){var n;do if(n=v?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return n=n.toLowerCase(),n===e||0===n.indexOf(e+"-");while((t=t.parentNode)&&1===t.nodeType);return!1}}),target:function(t){var n=e.location&&e.location.hash;return n&&n.slice(1)===t.id},root:function(e){return e===d},focus:function(e){return e===p.activeElement&&(!p.hasFocus||p.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:function(e){return e.disabled===!1},disabled:function(e){return e.disabled===!0},checked:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&!!e.checked||"option"===t&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,e.selected===!0},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!r.pseudos.empty(e)},header:function(e){return Q.test(e.nodeName)}
vendor: 49,177 bytes, line 1
1,input:function(e){return K.test(e.nodeName)},button:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&"button"===e.type||"button"===t},text:function(e){var t;return"input"===e.nodeName.toLowerCase()&&"text"===e.type&&(null==(t=e.getAttribute("type"))||"text"===t.toLowerCase())},first:pt(function(){return[0]}),last:pt(function(e,t){return[t-1]}),eq:pt(function(e,t,n){return[0>n?n+t:n]}),even:pt(function(e,t){for(var n=0;t>n;n+=2)e.push(n);return e}),odd:pt(function(e,t){for(var n=1;t>n;n+=2)e.push(n);return e}),lt:pt(function(e,t,n){for(var r=0>n?n+t:n;--r>=0;)e.push(r);return e}),gt:pt(function(e,t,n){for(var r=0>n?n+t:n;++r<t;)e.push(r);return e})}},r.pseudos.nth=r.pseudos.eq;for(t in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})r.pseudos[t]=ct(t);for(t in{submit:!0,reset:!0})r.pseudos[t]=ht(t);return vt.prototype=r.filters=r.pseudos,r.setFilters=new vt,o=st.tokenize=function(e,t){var n,i,s,o,u,a,f,l=N[e+" "];if(l)return t?0:l.slice(0);u=e,a=[],f=r.preFilter;while(u){n&&!(i=z.exec(u))||(i&&(u=u.slice(i[0].length)||u),a.push(s=[])),n=!1,(i=W.exec(u))&&(n=i.shift(),s.push({value:n,type:i[0].replace(U," ")}),u=u.slice(n.length));for(o in r.filter)!(i=J[o].exec(u))||f[o]&&!(i=f[o](i))||(n=i.shift(),s.push({value:n,type:o,matches:i}),u=u.slice(n.length));if(!n)break}return t?u.length:u?st.error(e):N(e,a).slice(0)},u=st.compile=function(e,t){var n,r=[],i=[],s=C[e+" "];if(!s){t||(t=o(e)),n=t.length;while(n--)s=St(t[n]),s[w]?r.push(s):i.push(s);s=C(e,xt(i,r)),s.selector=e}return s},a=st.select=function(e,t,i,s){var a,f,l,c,h,p="function"==typeof e&&e,d=!s&&o(e=p.selector||e);if(i=i||[],1===d.length){if(f=d[0]=d[0].slice(0),f.length>2&&"ID"===(l=f[0]).type&&n.getById&&9===t.nodeType&&v&&r.relative[f[1].type]){if(t=(r.find.ID(l.matches[0].replace(tt,nt),t)||[])[0],!t)return i;p&&(t=t.parentNode),e=e.slice(f.shift().value.length)}a=J.needsContext.test(e)?0:f.length;while(a--){if(l=f[a],r.relative[c=l.type])break;if((h=r.find[c])&&(s=h(l.matches[0].replace(tt,nt),Z.test(f[0].type)&&dt(t.parentNode)||t))){if(f.splice(a,1),e=s.length&&mt(f),!e)return D.apply(i,s),i;break}}}return(p||u(e,d))(s,t,!v,i,!t||Z.test(e)&&dt(t.parentNode)||t),i},n.sortStable=w.split("").sort(k).join("")===w,n.detectDuplicates=!!c,h(),n.sortDetached=at(function(e){return 1&e.compareDocumentPosition(p.createElement("div"))}),at(function(e){return e.innerHTML="<a href='#'></a>","#"===e.firstChild.getAttribute("href")})||ft("type|href|height|width",function(e,t,n){return n?void 0:e.getAttribute(t,"type"===t.toLowerCase()?1:2)}),n.attributes&&at(function(e){return e.innerHTML="<input/>",e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")})||ft("value",function(e,t,n){return n||"input"!==e.nodeName.toLowerCase()?void 0:e.defaultValue}),at(function(e){return null==e.getAttribute("disabled")})||ft(B,function(e,t,n){var r;return n?void 0:e[t]===!0?t.toLowerCase():(r=e.getAttributeNode(t))&&r.specified?r.value:null}),st}(a);n.find=t,n.expr=t.selectors,n.expr[":"]=n.expr.pseudos,n.uniqueSort=n.unique=t.uniqueSort,n.text=t.getText,n.isXMLDoc=t.isXML,n.contains=t.contains;var u=function(e,t,r){var i=[],s=void 0!==r;while((e=e[t])&&9!==e.nodeType)if(1===e.nodeType){if(s&&n(e).is(r))break;i.push(e)}return i},v=function(e,t){for(var n=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n},w=n.expr.match.needsContext,x=/^<([\w-]+)\s*\/?>(?:<\/\1>|)$/,y=/^.[^:#\[\.,]*$/;n.filter=function(e,t,r){var i=t[0];return r&&(e=":not("+e+")"),1===t.length&&1===i.nodeType?n.find.matchesSelector(i,e)?[i]:[]:n.find.matches(e,n.grep(t,function(e){return 1===e.nodeType}))},n.fn.extend({find:function(e){var t,r=this.length,i=[],s=this;if("string"!=typeof e)return this.pushStack(n(e).filter(function(){for(t=0;r>t;t++)if(n.contains(s[t],this))return!0}));for(t=0;r>t;t++)n.find(e,s[t],i);return i=this.pushStack(r>1?n.unique(i):i),i.selector=this.selector?this.selector+" "+e:e,i},filter:function(e){return this.pushStack(z(this,e||[],!1))},not:function(e){return this.pushStack(z(this,e||[],!0))},is:function(e){return!!z(this,"string"==typeof e&&w.test(e)?n(e):e||[],!1).length}});var A,B=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/,C=n.fn.init=function(e,t,r){var i,s;if(!e)return this;if(r=r||A,"string"==typeof e){if(i="<"===e[0]&&">"===e[e.length-1]&&e.length>=3?[null,e,null]:B.exec(e),!i||!i[1]&&t)return!t||t.jquery?(t||r).find(e):this.constructor(t).find(e);if(i[1]){if(t=t instanceof n?t[0]:t,n.merge(this,n.parseHTML(i[1],t&&t.nodeType?t.ownerDocument||t:d,!0)),x.test(i[1])&&n.isPlainObject(t))for(i in t)n.isFunction(this[i])?this[i](t[i]):this.attr(i,t[i]);return this}return s=d.getElementById(i[2]),s&&s.parentNode&&(this.length=1,this[0]=s),this.context=d,this.selector=e,this}return e.nodeType?(this.context=this[0]=e,this.length=1,this):n.isFunction(e)?void 0!==r.ready?r.ready(e):e(n):(void 0!==e.selector&&(this.selector=e.selector,this.context=e.context),n.makeArray(e,this))};C.prototype=n.fn,A=n(d);var D=/^(?:parents|prev(?:Until|All))/,E={children:!0,contents:!0,next:!0,prev:!0};n.fn.extend({has:function(e){var t=n(e,this),r=t.length;return this.filter(function(){for(var e=0;r>e;e++)if(n.contains(this,t[e]))return!0})},closest:function(e,t){for(var r,i=0,s=this.length,o=[],u=w.test(e)||"string"!=typeof e?n(e,t||this.context):0;s>i;i++)for(r=this[i];r&&r!==t;r=r.parentNode)if(r.nodeType<11&&(u?u.index(r)>-1:1===r.nodeType&&n.find.matchesSelector(r,e))){o.push(r);break}return this.pushStack(o.length>1?n.uniqueSort(o):o)},index:function(e){return e?"string"==typeof e?h.call(n(e),this[0]):h.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(n.uniqueSort(n.merge(this.get(),n(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),n.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return u(e,"parentNode")},parentsUntil:function(e,t,n){return u(e,"parentNode",n)},next:function(e){return F(e,"nextSibling")},prev:function(e){return F(e,"previousSibling")},nextAll:function(e){return u(e,"nextSibling")},prevAll:function(e){return u(e,"previousSibling")},nextUntil:function(e,t,n){return u(e,"nextSibling",n)},prevUntil:function(e,t,n){return u(e,"previousSibling",n)},siblings:function(e){return v((e.parentNode||{}).firstChild,e)},children:function(e){return v(e.firstChild)},contents:function(e){return e.contentDocument||n.merge([],e.childNodes)}},function(e,t){n.fn[e]=function(r,i){var s=n.map(this,t,r);return"Until"!==e.slice(-5)&&(i=r),i&&"string"==typeof i&&(s=n.filter(i,s)),this.length>1&&(E[e]||n.uniqueSort(s),D.test(e)&&s.reverse()),this.pushStack(s)}});var G=/\S+/g;n.Callbacks=function(e){e="string"==typeof e?H(e):n.extend({},e);var t,r,i,s,o=[],u=[],a=-1,f=function(){for(s=e.once,i=t=!0;u.length;a=-1){r=u.shift();while(++a<o.length)o[a].apply(r[0],r[1])===!1&&e.stopOnFalse&&(a=o.length,r=!1)}e.memory||(r=!1),t=!1,s&&(o=r?[]:"")},l={add:function(){return o&&(r&&!t&&(a=o.length-1,u.push(r)),function i(t){n.each(t,function(t,r){n.isFunction(r)?e.unique&&l.has(r)||o.push(r):r&&r.length&&"string"!==n.type(r)&&i(r)})}(arguments),r&&!t&&f()),this},remove:function(){return n.each(arguments,function(e,t){var r;while((r=n.inArray(t,o,r))>-1)o.splice(r,1),a>=r&&a--}),this},has:function(e){return e?n.inArray(e,o)>-1:o.length>0},empty:function(){return o&&(o=[]),this},disable:function(){return s=u=[],o=r="",this},disabled:function(){return!o},lock:function(){return s=u=[],r||(o=r=""),this},locked:function(){return!!s},fireWith:function(e,n){return s||(n=n||[],n=[e,n.slice?n.slice():n],u.push(n),t||f()),this},fire:function(){return l.fireWith(this,arguments),this},fired:function(){return!!i}};return l},n.extend({Deferred:function(e){var t=[["resolve","done",n.Callbacks("once memory"),"resolved"],["reject","fail",n.Callbacks("once memory"),"rejected"],["notify","progress",n.Callbacks("memory")]],r="pending",i={state:function(){return r},always:function(){return s.done(arguments).fail(arguments),this},then:function(){var e=arguments;return n.Deferred(function(r){n.each(t,function(t,o){var u=n.isFunction(e[t])&&e[t];s[o[1]](function(){var e=u&&u.apply(this,arguments);e&&n.isFunction(e.promise)?e.promise().progress(r.notify).done(r.resolve).fail(r.reject):r[o[0]+"With"](this===i?r.promise():this,u?[e]:arguments)})}),e=null}).promise()},promise:function(e){return null!=e?n.extend(e,i):i}},s={};return i.pipe=i.then,n.each(t,function(e,n){var o=n[2],u=n[3];i[n[1]]=o.add,u&&o.add(function(){r=u},t[1^e][2].disable,t[2][2].lock),s[n[0]]=function(){return s[n[0]+"With"](this===s?i:this,arguments),this},s[n[0]+"With"]=o.fireWith}),i.promise(s),e&&e.call(s,s),s},when:function(t){var r=0,i=e.call(arguments),s=i.length,o=1!==s||t&&n.isFunction(t.promise)?s:0,u=1===o?t:n.Deferred(),a=function(t,n,r){return function(i){n[t]=this,r[t]=arguments.length>1?e.call(arguments):i,r===f?u.notifyWith(n,r):--o||u.resolveWith(n,r)}},f,l,c;if(s>1)for(f=new Array(s),l=new Array(s),c=new Array(s);s>r;r++)i[r]&&n.isFunction(i[r].promise)?i[r].promise().progress(a(r,l,f)).done(a(r,c,i)).fail(u.reject):--o;return o||u.resolveWith(c,i),u.promise()}});var I;n.fn.ready=function(e){return n.ready.promise().done(e),this},n.extend({isReady:!1,readyWait:1,holdReady:function(e){e?n.readyWait++:n.ready(!0)},ready:function(e){(e===!0?--n.readyWait:n.isReady)||(n.isReady=!0,e!==!0&&--n.readyWait>0||(I.resolveWith(d,[n]),n.fn.triggerHandler&&(n(d).triggerHandler("ready"),n(d).off("ready"))))}}),n.ready.promise=function(e){return I||(I=n.Deferred(),"complete"===d.readyState||"loading"!==d.readyState&&!d.documentElement.doScroll?a.setTimeout(n.ready):(d.addEventListener("DOMContentLoaded",J),a.addEventListener("load",J))),I.promise(e)},n.ready.promise();var K=function(e,t,r,i,s,o,u){var a=0,f=e.length,l=null==r;if("object"===n.type(r)){s=!0;for(a in r)K(e,t,a,r[a],!0,o,u)}else if(void 0!==i&&(s=!0,n.isFunction(i)||(u=!0),l&&(u?(t.call(e,i),t=null):(l=t,t=function(e,t,r){return l.call(n(e),r)})),t))for(;f>a;a++)t(e[a],r,u?i:i.call(e[a],a,t(e[a],r)));return s?e:l?t.call(e):f?t(e[0],r):o},L=function(e){return 1===e.nodeType||9===e.nodeType||!+e.nodeType};M.uid=1,M.prototype={register:function(e,t){var n=t||{};return e.nodeType?e[this.expando]=n:Object.defineProperty(e,this.expando,{value:n,writable:!0,configurable:!0}),e[this.expando]},cache:function(e){if(!L(e))return{};var t=e[this.expando];return t||(t={},L(e)&&(e.nodeType?e[this.expando]=t:Object.defineProperty(e,this.expando,{value:t,configurable:!0}))),t},set:function(e,t,n){var r,i=this.cache(e);if("string"==typeof t)i[t]=n;else for(r in t)i[r]=t[r];return i},get:function(e,t){return void 0===t?this.cache(e):e[this.expando]&&e[this.expando][t]},access:function(e,t,r){var i;return void 0===t||t&&"string"==typeof t&&void 0===r?(i=this.get(e,t),void 0!==i?i:this.get(e,n.camelCase(t))):(this.set(e,t,r),void 0!==r?r:t)},remove:function(e,t){var r,i,s,o=e[this.expando];if(void 0!==o){if(void 0===t)this.register(e);else{n.isArray(t)?i=t.concat(t.map(n.camelCase)):(s=n.camelCase(t),t in o?i=[t,s]:(i=s,i=i in o?[i]:i.match(G)||[])),r=i.length;while(r--)delete o[i[r]]}(void 0===t||n.isEmptyObject(o))&&(e.nodeType?e[this.expando]=void 0:delete e[this.expando])}},hasData:function(e){var t=e[this.expando];return void 0!==t&&!n.isEmptyObject(t)}};var N=new M,O=new M,P=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,Q=/[A-Z]/g;n.extend({hasData:function(e){return O.hasData(e)||N.hasData(e)},data:function(e,t,n){return O.access(e,t,n)},removeData:function(e,t){O.remove(e,t)},_data:function(e,t,n){return N.access(e,t,n)},_removeData:function(e,t){N.remove(e,t)}}),n.fn.extend({data:function(e,t){var r,i,s,o=this[0],u=o&&o.attributes;if(void 0===e){if(this.length&&(s=O.get(o),1===o.nodeType&&!N.get(o,"hasDataAttrs"))){r=u.length;while(r--)u[r]&&(i=u[r].name,0===i.indexOf("data-")&&(i=n.camelCase(i.slice(5)),R(o,i,s[i])));N.set(o,"hasDataAttrs",!0)}return s}return"object"==typeof e?this.each(function(){O.set(this,e)}):K(this,function(t){var r,i;if(o&&void 0===t){if(r=O.get(o,e)||O.get(o,e.replace(Q,"-$&").toLowerCase()),void 0!==r)return r;if(i=n.camelCase(e),r=O.get(o,i),void 0!==r)return r;if(r=R(o,i,void 0),void 0!==r)return r}else i=n.camelCase(e),this.each(function(){var n=O.get(this,i);O.set(this,i,t),e.indexOf("-")>-1&&void 0!==n&&O.set(this,e,t)})},null,t,arguments.length>1,null,!0)},removeData:function(e){return this.each(function(){O.remove(this,e)})}}),n.extend({queue:function(e,t,r){var i;return e?(t=(t||"fx")+"queue",i=N.get(e,t),r&&(!i||n.isArray(r)?i=N.access(e,t,n.makeArray(r)):i.push(r)),i||[]):void 0},dequeue:function(e,t){t=t||"fx";var r=n.queue(e,t),i=r.length,s=r.shift(),o=n._queueHooks(e,t),u=function(){n.dequeue(e,t)};"inprogress"===s&&(s=r.shift(),i--),s&&("fx"===t&&r.unshift("inprogress"),delete o.stop,s.call(e,u,o)),!i&&o&&o.empty.fire()},_queueHooks:function(e,t){var r=t+"queueHooks";return N.get(e,r)||N.access(e,r,{empty:n.Callbacks("once memory").add(function(){N.remove(e,[t+"queue",r])})})}}),n.fn.extend({queue:function(e,t){var r=2;return"string"!=typeof e&&(t=e,e="fx",r--),arguments.length<r?n.queue(this[0],e):void 0===t?this:this.each(function(){var r=n.queue(this,e,t);n._queueHooks(this,e),"fx"===e&&"inprogress"!==r[0]&&n.dequeue(this,e)})},dequeue:function(e){return this.each(function(){n.dequeue(this,e)})},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,t){var r,i=1,s=n.Deferred(),o=this,u=this.length,a=function(){--i||s.resolveWith(o,[o])};"string"!=typeof e&&(t=e,e=void 0),e=e||"fx";while(u--)r=N.get(o[u],e+"queueHooks"),r&&r.empty&&(i++,r.empty.add(a));return a(),s.promise(t)}});var S=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,T=new RegExp("^(?:([+-])=|)("+S+")([a-z%]*)$","i"),U=["Top","Right","Bottom","Left"],V=function(e,t){return e=t||e,"none"===n.css(e,"display")||!n.contains(e.ownerDocument,e)},X=/^(?:checkbox|radio)$/i,Y=/<([\w:-]+)/,Z=/^$|\/(?:java|ecma)script/i,$={option:[1,"<select multiple='multiple'>","</select>"],thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};$.optgroup=$.option,$.tbody=$.tfoot=$.colgroup=$.caption=$.thead,$.th=$.td;var ba=/<|&#?\w+;/;!function(){var e=d.createDocumentFragment(),t=e.appendChild(d.createElement("div")),n=d.createElement("input");n.setAttribute("type","radio"),n.setAttribute("checked","checked"),n.setAttribute("name","t"),t.appendChild(n),l.checkClone=t.cloneNode(!0).cloneNode(!0).lastChild.checked,t.innerHTML="<textarea>x</textarea>",l.noCloneChecked=!!t.cloneNode(!0).lastChild.defaultValue}();var da=/^key/,ea=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,fa=/^([^.]*)(?:\.(.+)|)/;n.event={global:{},add:function(e,t,r,i,s){var o,u,a,f,l,c,h,p,d,v,m,g=N.get(e);if(g){r.handler&&(o=r,r=o.handler,s=o.selector),r.guid||(r.guid=n.guid++),(f=g.events)||(f=g.events={}),(u=g.handle)||(u=g.handle=function(t){return"undefined"!=typeof n&&n.event.triggered!==t.type?n.event.dispatch.apply(e,arguments):void 0}),t=(t||"").match(G)||[""],l=t.length;while(l--)a=fa.exec(t[l])||[],d=m=a[1],v=(a[2]||"").split(".").sort(),d&&(h=n.event.special[d]||{},d=(s?h.delegateType:h.bindType)||d,h=n.event.special[d]||{},c=n.extend({type:d,origType:m,data:i,handler:r,guid:r.guid,selector:s,needsContext:s&&n.expr.match.needsContext.test(s),namespace:v.join(".")},o),(p=f[d])||(p=f[d]=[],p.delegateCount=0,h.setup&&h.setup.call(e,i,v,u)!==!1||e.addEventListener&&e.addEventListener(d,u)),h.add&&(h.add.call(e,c),c.handler.guid||(c.handler.guid=r.guid)),s?p.splice(p.delegateCount++,0,c):p.push(c),n.event.global[d]=!0)}},remove:function(e,t,r,i,s){var o,u,a,f,l,c,h,p,d,v,m,g=N.hasData(e)&&N.get(e);if(g&&(f=g.events)){t=(t||"").match(G)||[""],l=t.length;while(l--)if(a=fa.exec(t[l])||[],d=m=a[1],v=(a[2]||"").split(".").sort(),d){h=n.event.special[d]||{},d=(i?h.delegateType:h.bindType)||d,p=f[d]||[],a=a[2]&&new RegExp("(^|\\.)"+v.join("\\.(?:.*\\.|)")+"(\\.|$)"),u=o=p.length;while(o--)c=p[o],!s&&m!==c.origType||r&&r.guid!==c.guid||a&&!a.test(c.namespace)||i&&i!==c.selector&&("**"!==i||!c.selector)||(p.splice(o,1),c.selector&&p.delegateCount--,h.remove&&h.remove.call(e,c));u&&!p.length&&(h.teardown&&h.teardown.call(e,v,g.handle)!==!1||n.removeEvent(e,d,g.handle),delete f[d])}else for(d in f)n.event.remove(e,d+t[l],r,i,!0);n.isEmptyObject(f)&&N.remove(e,"handle events")}},dispatch:function(t){t=n.event.fix(t);var r,i,s,o,u,a=[],f=e.call(arguments),l=(N.get(this,"events")||{})[t.type]||[],c=n.event.special[t.type]||{};if(f[0]=t,t.delegateTarget=this,!c.preDispatch||c.preDispatch.call(this,t)!==!1){a=n.event.handlers.call(this,t,l),r=0;while((o=a[r++])&&!t.isPropagationStopped()){t.currentTarget=o.elem,i=0;while((u=o.handlers[i++])&&!t.isImmediatePropagationStopped())t.rnamespace&&!t.rnamespace.test(u.namespace)||(t.handleObj=u,t.data=u.data,s=((n.event.special[u.origType]||{}).handle||u.handler).apply(o.elem,f),void 0!==s&&(t.result=s)===!1&&(t.preventDefault(),t.stopPropagation()))}return c.postDispatch&&c.postDispatch.call(this,t),t.result}},handlers:function(e,t){var r,i,s,o,u=[],a=t.delegateCount,f=e.target;if(a&&f.nodeType&&("click"!==e.type||isNaN(e.button)||e.button<1))for(;f!==this;f=f.parentNode||this)if(1===f.nodeType&&(f.disabled!==!0||"click"!==e.type)){for(i=[],r=0;a>r;r++)o=t[r],s=o.selector+" ",void 0===i[s]&&(i[s]=o.needsContext?n(s,this).index(f)>-1:n.find(s,this,null,[f]).length),i[s]&&i.push(o);i.length&&u.push({elem:f,handlers:i})}return a<t.length&&u.push({elem:this,handlers:t.slice(a)}),u},props:"altKey bubbles cancelable ctrlKey currentTarget detail eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "),fixHooks:{},keyHooks:{props:"char charCode key keyCode".split(" "),filter:function(e,t){return null==e.which&&(e.which=null!=t.charCode?t.charCode:t.keyCode),e}},mouseHooks:{props:"button buttons clientX clientY offsetX offsetY pageX pageY screenX screenY toElement".split(" "),filter:function(e,t){var n,r,i,s=t.button;return null==e.pageX&&null!=t.clientX&&(n=e.target.ownerDocument||d,r=n.documentElement,i=n.body,e.pageX=t.clientX+(r&&r.scrollLeft||i&&i.scrollLeft||0)-(r&&r.clientLeft||i&&i.clientLeft||0),e.pageY=t.clientY+(r&&r.scrollTop||i&&i.scrollTop||0)-(r&&r.clientTop||i&&i.clientTop||0)),e.which||void 0===s||(e.which=1&s?1:2&s?3:4&s?2:0),e}},fix:function(e){if(e[n.expando])return e;var t,r,i,s=e.type,o=e,u=this.fixHooks[s];u||(this.fixHooks[s]=u=ea.test(s)?this.mouseHooks:da.test(s)?this.keyHooks:{}),i=u.props?this.props.concat(u.props):this.props,e=new n.Event(o),t=i.length;while(t--)r=i[t],e[r]=o[r];return e.target||(e.target=d),3===e.target.nodeType&&(e.target=e.target.parentNode),u.filter?u.filter(e,o):e},special:{load:{noBubble:!0},focus:{trigger:function(){return this!==ia()&&this.focus?(this.focus(),!1):void 0},delegateType:"focusin"},blur:{trigger:function(){return this===ia()&&this.blur?(this.blur(),!1):void 0},delegateType:"focusout"},click:{trigger:function(){return"checkbox"===this.type&&this.click&&n.nodeName(this,"input")?(this.click(),!1):void 0},_default:function(e){return n.nodeName(e.target,"a")}},beforeunload:{postDispatch:function(e){void 0!==e.result&&e.originalEvent&&(e.originalEvent.returnValue=e.result)}}}},n.removeEvent=function(e,t,n){e.removeEventListener&&e.removeEventListener(t,n)},n.Event=function(e,t){return this instanceof n.Event?(e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||void 0===e.defaultPrevented&&e.returnValue===!1?ga:ha):this.type=e,t&&n.extend(this,t),this.timeStamp=e&&e.timeStamp||n.now(),void (this[n.expando]=!0)):new n.Event(e,t)},n.Event.prototype={constructor:n.Event,isDefaultPrevented:ha,isPropagationStopped:ha,isImmediatePropagationStopped:ha,isSimulated:!1,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=ga,e&&!this.isSimulated&&e.preventDefault()},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=ga,e&&!this.isSimulated&&e.stopPropagation()},stopImmediatePropagation:function(){var e=this.originalEvent;this.isImmediatePropagationStopped=ga,e&&!this.isSimulated&&e.stopImmediatePropagation(),this.stopPropagation()}},n.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(e,t){n.event.special[e]={delegateType:t,bindType:t,handle:function(e){var r,i=this,s=e.relatedTarget,o=e.handleObj;return s&&(s===i||n.contains(i,s))||(e.type=o.origType,r=o.handler.apply(this,arguments),e.type=t),r}}}),n.fn.extend({on:function(e,t,n,r){return ja(this,e,t,n,r)},one:function(e,t,n,r){return ja(this,e,t,n,r,1)},off:function(e,t,r){var i,s;if(e&&e.preventDefault&&e.handleObj)return i=e.handleObj,n(e.delegateTarget).off(i.namespace?i.origType+"."+i.namespace:i.origType,i.selector,i.handler),this;if("object"==typeof e){for(s in e)this.off(s,t,e[s]);return this}return t!==!1&&"function"!=typeof t||(r=t,t=void 0),r===!1&&(r=ha),this.each(function(){n.event.remove(this,e,r,t)})}});var ka=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:-]+)[^>]*)\/>/gi,la=/<script|<style|<link/i,ma=/checked\s*(?:[^=]|=\s*.checked.)/i,na=/^true\/(.*)/,oa=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;n.extend({htmlPrefilter:function(e){return e.replace(ka,"<$1></$2>")},clone:function(e,t,r){var i,s,o,u,a=e.cloneNode(!0),f=n.contains(e.ownerDocument,e);if(!(l.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||n.isXMLDoc(e)))for(u=_(a),o=_(e),i=0,s=o.length;s>i;i++)ta(o[i],u[i]);if(t)if(r)for(o=o||_(e),u=u||_(a),i=0,s=o.length;s>i;i++)sa(o[i],u[i]);else sa(e,a);return u=_(a,"script"),u.length>0&&aa(u,!f&&_(e,"script")),a},cleanData:function(e){for(var t,r,i,s=n.event.special,o=0;void 0!==(r=e[o]);o++)if(L(r)){if(t=r[N.expando]){if(t.events)for(i in t.events)s[i]?n.event.remove(r,i):n.removeEvent(r,i,t.handle);r[N.expando]=void 0}r[O.expando]&&(r[O.expando]=void 0)}}}),n.fn.extend({domManip:ua,detach:function(e){return va(this,e,!0)},remove:function(e){return va(this,e)},text:function(e){return K(this,function(e){return void 0===e?n.text(this):this.empty().each(function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=e)})},null,e,arguments.length)},append:function(){return ua(this,arguments,function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=pa(this,e);t.appendChild(e)}})},prepend:function(){return ua(this,arguments,function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=pa(this,e);t.insertBefore(e,t.firstChild)}})},before:function(){return ua(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this)})},after:function(){return ua(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)})},empty:function(){for(var e,t=0;null!=(e=this[t]);t++)1===e.nodeType&&(n.cleanData(_(e,!1)),e.textContent="");return this},clone:function(e,t){return e=null==e?!1:e,t=null==t?e:t,this.map(function(){return n.clone(this,e,t)})},html:function(e){return K(this,function(e){var t=this[0]||{},r=0,i=this.length;if(void 0===e&&1===t.nodeType)return t.innerHTML;if("string"==typeof e&&!la.test(e)&&!$[(Y.exec(e)||["",""])[1].toLowerCase()]){e=n.htmlPrefilter(e);try{for(;i>r;r++)t=this[r]||{},1===t.nodeType&&(n.cleanData(_(t,!1)),t.innerHTML=e);t=0}catch(s){}}t&&this.empty().append(e)},null,e,arguments.length)},replaceWith:function(){var e=[];return ua(this,arguments,function(t){var r=this.parentNode;n.inArray(this,e)<0&&(n.cleanData(_(this)),r&&r.replaceChild(t,this))},e)}}),n.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(e,t){n.fn[e]=function(e){for(var r,i=[],s=n(e),o=s.length-1,u=0;o>=u;u++)r=u===o?this:this.clone(!0),n(s[u])[t](r),g.apply(i,r.get());return this.pushStack(i)}});var wa,xa={HTML:"block",BODY:"block"},Aa=/^margin/,Ba=new RegExp("^("+S+")(?!px)[a-z%]+$","i"),Ca=function(e){var t=e.ownerDocument.defaultView;return t&&t.opener||(t=a),t.getComputedStyle(e)},Da=function(e,t,n,r){var i,s,o={};for(s in t)o[s]=e.style[s],e.style[s]=t[s];i=n.apply(e,r||[]);for(s in t)e.style[s]=o[s];return i},Ea=d.documentElement;!function(){var e,t,r,i,s=d.createElement("div"),o=d.createElement("div");if(o.style){o.style.backgroundClip="content-box",o.cloneNode(!0).style.backgroundClip="",l.clearCloneStyle="content-box"===o.style.backgroundClip,s.style.cssText="border:0;width:8px;height:0;top:0;left:-9999px;padding:0;margin-top:1px;position:absolute",s.appendChild(o);function u(){o.style.cssText="-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;position:relative;display:block;margin:auto;border:1px;padding:1px;top:1%;width:50%",o.innerHTML="",Ea.appendChild(s);var n=a.getComputedStyle(o);e="1%"!==n.top,i="2px"===n.marginLeft,t="4px"===n.width,o.style.marginRight="50%",r="4px"===n.marginRight,Ea.removeChild(s)}n.extend(l,{pixelPosition:function(){return u(),e},boxSizingReliable:function(){return null==t&&u(),t},pixelMarginRight:function(){return null==t&&u(),r},reliableMarginLeft:function(){return null==t&&u(),i},reliableMarginRight:function(){var e,t=o.appendChild(d.createElement("div"));return t.style.cssText=o.style.cssText="-webkit-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:0",t.style.marginRight=t.style.width="0",o.style.width="1px",Ea.appendChild(s),e=!parseFloat(a.getComputedStyle(t).marginRight),Ea.removeChild(s),o.removeChild(t),e}})}}();var Ha=/^(none|table(?!-c[ea]).+)/,Ia={position:"absolute",visibility:"hidden",display:"block"},Ja={letterSpacing:"0",fontWeight:"400"},Ka=["Webkit","O","Moz","ms"],La=d.createElement("div").style;n.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=Fa(e,"opacity");return""===n?"1":n}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{"float":"cssFloat"},style:function(e,t,r,i){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var s,o,u,a=n.camelCase(t),f=e.style;return t=n.cssProps[a]||(n.cssProps[a]=Ma(a)||a),u=n.cssHooks[t]||n.cssHooks[a],void 0===r?u&&"get"in u&&void 0!==(s=u.get(e,!1,i))?s:f[t]:(o=typeof r,"string"===o&&(s=T.exec(r))&&s[1]&&(r=W(e,t,s),o="number"),null!=r&&r===r&&("number"===o&&(r+=s&&s[3]||(n.cssNumber[a]?"":"px")),l.clearCloneStyle||""!==r||0!==t.indexOf("background")||(f[t]="inherit"),u&&"set"in u&&void 0===(r=u.set(e,r,i))||(f[t]=r)),void 0)}},css:function(e,t,r,i){var s,o,u,a=n.camelCase(t);return t=n.cssProps[a]||(n.cssProps[a]=Ma(a)||a),u=n.cssHooks[t]||n.cssHooks[a],u&&"get"in u&&(s=u.get(e,!0,r)),void 0===s&&(s=Fa(e,t,i)),"normal"===s&&t in Ja&&(s=Ja[t]),""===r||r?(o=parseFloat(s),r===!0||isFinite(o)?o||0:s):s}}),n.each(["height","width"],function(e,t){n.cssHooks[t]={get:function(e,r,i){return r?Ha.test(n.css(e,"display"))&&0===e.offsetWidth?Da(e,Ia,function(){return Pa(e,t,i)}):Pa(e,t,i):void 0},set:function(e,r,i){var s,o=i&&Ca(e),u=i&&Oa(e,t,i,"border-box"===n.css(e,"boxSizing",!1,o),o);return u&&(s=T.exec(r))&&"px"!==(s[3]||"px")&&(e.style[t]=r,r=n.css(e,t)),Na(e,r,u)}}}),n.cssHooks.marginLeft=Ga(l.reliableMarginLeft,function(e,t){return t?(parseFloat(Fa(e,"marginLeft"))||e.getBoundingClientRect().left-Da(e,{marginLeft:0},function(){return e.getBoundingClientRect().left}))+"px":void 0}),n.cssHooks.marginRight=Ga(l.reliableMarginRight,function(e,t){return t?Da(e,{display:"inline-block"},Fa,[e,"marginRight"]):void 0}),n.each({margin:"",padding:"",border:"Width"},function(e,t){n.cssHooks[e+t]={expand:function(n){for(var r=0,i={},s="string"==typeof n?n.split(" "):[n];4>r;r++)i[e+U[r]+t]=s[r]||s[r-2]||s[0];return i}},Aa.test(e)||(n.cssHooks[e+t].set=Na)}),n.fn.extend({css:function(e,t){return K(this,function(e,t,r){var i,s,o={},u=0;if(n.isArray(t)){for(i=Ca(e),s=t.length;s>u;u++)o[t[u]]=n.css(e,t[u],!1,i);return o}return void 0!==r?n.style(e,t,r):n.css(e,t)},e,t,arguments.length>1)},show:function(){return Qa(this,!0)},hide:function(){return Qa(this)},toggle:function(e){return"boolean"==typeof e?e?this.show():this.hide():this.each(function(){V(this)?n(this).show():n(this).hide()})}}),n.Tween=Ra,Ra.prototype={constructor:Ra,init:function(e,t,r,i,s,o){this.elem=e,this.prop=r,this.easing=s||n.easing._default,this.options=t,this.start=this.now=this.cur(),this.end=i,this.unit=o||(n.cssNumber[r]?"":"px")},cur:function(){var e=Ra.propHooks[this.prop];return e&&e.get?e.get(this):Ra.propHooks._default.get(this)},run:function(e){var t,r=Ra.propHooks[this.prop];return this.options.duration?this.pos=t=n.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):this.pos=t=e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),r&&r.set?r.set(this):Ra.propHooks._default.set(this),this}},Ra.prototype.init.prototype=Ra.prototype,Ra.propHooks={_default:{get:function(e){var t;return 1!==e.elem.nodeType||null!=e.elem[e.prop]&&null==e.elem.style[e.prop]?e.elem[e.prop]:(t=n.css(e.elem,e.prop,""),t&&"auto"!==t?t:0)},set:function(e){n.fx.step[e.prop]?n.fx.step[e.prop](e):1!==e.elem.nodeType||null==e.elem.style[n.cssProps[e.prop]]&&!n.cssHooks[e.prop]?e.elem[e.prop]=e.now:n.style(e.elem,e.prop,e.now+e.unit)}}},Ra.propHooks.scrollTop=Ra.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},n.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2},_default:"swing"},n.fx=Ra.prototype.init,n.fx.step={};var Sa,Ta,Ua=/^(?:toggle|show|hide)$/,Va=/queueHooks$/;n.Animation=n.extend(_a,{tweeners:{"*":[function(e,t){var n=this.createTween(e,t);return W(n.elem,e,T.exec(t),n),n}]},tweener:function(e,t){n.isFunction(e)?(t=e,e=["*"]):e=e.match(G);for(var r,i=0,s=e.length;s>i;i++)r=e[i],_a.tweeners[r]=_a.tweeners[r]||[],_a.tweeners[r].unshift(t)},prefilters:[Za],prefilter:function(e,t){t?_a.prefilters.unshift(e):_a.prefilters.push(e)}}),n.speed=function(e,t,r){var i=e&&"object"==typeof e?n.extend({},e):{complete:r||!r&&t||n.isFunction(e)&&e,duration:e,easing:r&&t||t&&!n.isFunction(t)&&t};return i.duration=n.fx.off?0:"number"==typeof i.duration?i.duration:i.duration in n.fx.speeds?n.fx.speeds[i.duration]:n.fx.speeds._default,null!=i.queue&&i.queue!==!0||(i.queue="fx"),i.old=i.complete,i.complete=function(){n.isFunction(i.old)&&i.old.call(this),i.queue&&n.dequeue(this,i.queue)},i},n.fn.extend({fadeTo:function(e,t,n,r){return this.filter(V).css("opacity",0).show().end().animate({opacity:t},e,n,r)},animate:function(e,t,r,i){var s=n.isEmptyObject(e),o=n.speed(t,r,i),u=function(){var t=_a(this,n.extend({},e),o);(s||N.get(this,"finish"))&&t.stop(!0)};return u.finish=u,s||o.queue===!1?this.each(u):this.queue(o.queue,u)},stop:function(e,t,r){var i=function(e){var t=e.stop;delete e.stop,t(r)};return"string"!=typeof e&&(r=t,t=e,e=void 0),t&&e!==!1&&this.queue(e||"fx",[]),this.each(function(){var t=!0,s=null!=e&&e+"queueHooks",o=n.timers,u=N.get(this);if(s)u[s]&&u[s].stop&&i(u[s]);else for(s in u)u[s]&&u[s].stop&&Va.test(s)&&i(u[s]);for(s=o.length;s--;)o[s].elem!==this||null!=e&&o[s].queue!==e||(o[s].anim.stop(r),t=!1,o.splice(s,1));!t&&r||n.dequeue(this,e)})},finish:function(e){return e!==!1&&(e=e||"fx"),this.each(function(){var t,r=N.get(this),i=r[e+"queue"],s=r[e+"queueHooks"],o=n.timers,u=i?i.length:0;for(r.finish=!0,n.queue(this,e,[]),s&&s.stop&&s.stop.call(this,!0),t=o.length;t--;)o[t].elem===this&&o[t].queue===e&&(o[t].anim.stop(!0),o.splice(t,1));for(t=0;u>t;t++)i[t]&&i[t].finish&&i[t].finish.call(this);delete r.finish})}}),n.each(["toggle","show","hide"],function(e,t){var r=n.fn[t];n.fn[t]=function(e,n,i){return null==e||"boolean"==typeof e?r.apply(this,arguments):this.animate(Xa(t,!0),e,n,i)}}),n.each({slideDown:Xa("show"),slideUp:Xa("hide"),slideToggle:Xa("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(e,t){n.fn[e]=function(e,n,r){return this.animate(t,e,n,r)}}),n.timers=[],n.fx.tick=function(){var e,t=0,r=n.timers;for(Sa=n.now();t<r.length;t++)e=r[t],e()||r[t]!==e||r.splice(t--,1);r.length||n.fx.stop(),Sa=void 0},n.fx.timer=function(e){n.timers.push(e),e()?n.fx.start():n.timers.pop()},n.fx.interval=13,n.fx.start=function(){Ta||(Ta=a.setInterval(n.fx.tick,n.fx.interval))},n.fx.stop=function(){a.clearInterval(Ta),Ta=null},n.fx.speeds={slow:600,fast:200,_default:400},n.fn.delay=function(e,t){return e=n.fx?n.fx.speeds[e]||e:e,t=t||"fx",this.queue(t,function(t,n){var r=a.setTimeout(t,e);n.stop=function(){a.clearTimeout(r)}})},function(){var e=d.createElement("input"),t=d.createElement("select"),n=t.appendChild(d.createElement("option"));e.type="checkbox",l.checkOn=""!==e.value,l.optSelected=n.selected,t.disabled=!0,l.optDisabled=!n.disabled,e=d.createElement("input"),e.value="t",e.type="radio",l.radioValue="t"===e.value}();var ab,bb=n.expr.attrHandle;n.fn.extend({attr:function(e,t){return K(this,n.attr,e,t,arguments.length>1)},removeAttr:function(e){return this.each(function(){n.removeAttr(this,e)})}}),n.extend({attr:function(e,t,r){var i,s,o=e.nodeType;if(3!==o&&8!==o&&2!==o)return"undefined"==typeof e.getAttribute?n.prop(e,t,r):(1===o&&n.isXMLDoc(e)||(t=t.toLowerCase(),s=n.attrHooks[t]||(n.expr.match.bool.test(t)?ab:void 0)),void 0!==r?null===r?void n.removeAttr(e,t):s&&"set"in s&&void 0!==(i=s.set(e,r,t))?i:(e.setAttribute(t,r+""),r):s&&"get"in s&&null!==(i=s.get(e,t))?i:(i=n.find.attr(e,t),null==i?void 0:i))},attrHooks:{type:{set:function(e,t){if(!l.radioValue&&"radio"===t&&n.nodeName(e,"input")){var r=e.value;return e.setAttribute("type",t),r&&(e.value=r),t}}}},removeAttr:function(e,t){var r,i,s=0,o=t&&t.match(G);if(o&&1===e.nodeType)while(r=o[s++])i=n.propFix[r]||r,n.expr.match.bool.test(r)&&(e[i]=!1),e.removeAttribute(r)}}),ab={set:function(e,t,r){return t===!1?n.removeAttr(e,r):e.setAttribute(r,r),r}},n.each(n.expr.match.bool.source.match(/\w+/g),function(e,t){var r=bb[t]||n.find.attr;bb[t]=function(e,t,n){var i,s;return n||(s=bb[t],bb[t]=i,i=null!=r(e,t,n)?t.toLowerCase():null,bb[t]=s),i}});var cb=/^(?:input|select|textarea|button)$/i,db=/^(?:a|area)$/i;n.fn.extend({prop:function(e,t){return K(this,n.prop,e,t,arguments.length>1)},removeProp:function(e){return this.each(function(){delete this[n.propFix[e]||e]})}}),n.extend({prop:function(e,t,r){var i,s,o=e.nodeType;if(3!==o&&8!==o&&2!==o)return 1===o&&n.isXMLDoc(e)||(t=n.propFix[t]||t,s=n.propHooks[t]),void 0!==r?s&&"set"in s&&void 0!==(i=s.set(e,r,t))?i:e[t]=r:s&&"get"in s&&null!==(i=s.get(e,t))?i:e[t]},propHooks:{tabIndex:{get:function(e){var t=n.find.attr(e,"tabindex");return t?parseInt(t,10):cb.test(e.nodeName)||db.test(e.nodeName)&&e.href?0:-1}}},propFix:{"for":"htmlFor","class":"className"}}),l.optSelected||(n.propHooks.selected={get:function(e){var t=e.parentNode;return t&&t.parentNode&&t.parentNode.selectedIndex,null},set:function(e){var t=e.parentNode;t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex)}}),n.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){n.propFix[this.toLowerCase()]=this});var eb=/[\t\r\n\f]/g;n.fn.extend({addClass:function(e){var t,r,i,s,o,u,a,f=0;if(n.isFunction(e))return this.each(function(t){n(this).addClass(e.call(this,t,fb(this)))});if("string"==typeof e&&e){t=e.match(G)||[];while(r=this[f++])if(s=fb(r),i=1===r.nodeType&&(" "+s+" ").replace(eb," ")){u=0;while(o=t[u++])i.indexOf(" "+o+" ")<0&&(i+=o+" ");a=n.trim(i),s!==a&&r.setAttribute("class",a)}}return this},removeClass:function(e){var t,r,i,s,o,u,a,f=0;if(n.isFunction(e))return this.each(function(t){n(this).removeClass(e.call(this,t,fb(this)))});if(!arguments.length)return this.attr("class","");if("string"==typeof e&&e){t=e.match(G)||[];while(r=this[f++])if(s=fb(r),i=1===r.nodeType&&(" "+s+" ").replace(eb," ")){u=0;while(o=t[u++])while(i.indexOf(" "+o+" ")>-1)i=i.replace(" "+o+" "," ");a=n.trim(i),s!==a&&r.setAttribute("class",a)}}return this},toggleClass:function(e,t){var r=typeof e;return"boolean"==typeof t&&"string"===r?t?this.addClass(e):this.removeClass(e):n.isFunction(e)?this.each(function(r){n(this).toggleClass(e.call(this,r,fb(this),t),t)}):this.each(function(){var t,i,s,o;if("string"===r){i=0,s=n(this),o=e.match(G)||[];while(t=o[i++])s.hasClass(t)?s.removeClass(t):s.addClass(t)}else void 0!==e&&"boolean"!==r||(t=fb(this),t&&N.set(this,"__className__",t),this.setAttribute&&this.setAttribute("class",t||e===!1?"":N.get(this,"__className__")||""))})},hasClass:function(e){var t,n,r=0;t=" "+e+" ";while(n=this[r++])if(1===n.nodeType&&(" "+fb(n)+" ").replace(eb," ").indexOf(t)>-1)return!0;return!1}});var gb=/\r/g,hb=/[\x20\t\r\n\f]+/g;n.fn.extend({val:function(e){var t,r,i,s=this[0];if(arguments.length)return i=n.isFunction(e),this.each(function(r){var s;1===this.nodeType&&(s=i?e.call(this,r,n(this).val()):e,null==s?s="":"number"==typeof s?s+="":n.isArray(s)&&(s=n.map(s,function(e){return null==e?"":e+""})),t=n.valHooks[this.type]||n.valHooks[this.nodeName.toLowerCase()],t&&"set"in t&&void 0!==t.set(this,s,"value")||(this.value=s))});if(s)return t=n.valHooks[s.type]||n.valHooks[s.nodeName.toLowerCase()],t&&"get"in t&&void 0!==(r=t.get(s,"value"))?r:(r=s.value,"string"==typeof r?r.replace(gb,""):null==r?"":r)}}),n.extend({valHooks:{option:{get:function(e){var t=n.find.attr(e,"value");return null!=t?t:n.trim(n.text(e)).replace(hb," ")}},select:{get:function(e){for(var t,r,i=e.options,s=e.selectedIndex,o="select-one"===e.type||0>s,u=o?null:[],a=o?s+1:i.length,f=0>s?a:o?s:0;a>f;f++)if(r=i[f],(r.selected||f===s)&&(l.optDisabled?!r.disabled:null===r.getAttribute("disabled"))&&(!r.parentNode.disabled||!n.nodeName(r.parentNode,"optgroup"))){if(t=n(r).val(),o)return t;u.push(t)}return u},set:function(e,t){var r,i,s=e.options,o=n.makeArray(t),u=s.length;while(u--)i=s[u],(i.selected=n.inArray(n.valHooks.option.get(i),o)>-1)&&(r=!0);return r||(e.selectedIndex=-1),o}}}}),n.each(["radio","checkbox"],function(){n.valHooks[this]={set:function(e,t){return n.isArray(t)?e.checked=n.inArray(n(e).val(),t)>-1:void 0}},l.checkOn||(n.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})});var ib=/^(?:focusinfocus|focusoutblur)$/;n.extend(n.event,{trigger:function(e,t,r,i){var s,o,u,f,l,c,h,p=[r||d],v=k.call(e,"type")?e.type:e,m=k.call(e,"namespace")?e.namespace.split("."):[];if(o=u=r=r||d,3!==r.nodeType&&8!==r.nodeType&&!ib.test(v+n.event.triggered)&&(v.indexOf(".")>-1&&(m=v.split("."),v=m.shift(),m.sort()),l=v.indexOf(":")<0&&"on"+v,e=e[n.expando]?e:new n.Event(v,"object"==typeof e&&e),e.isTrigger=i?2:3,e.namespace=m.join("."),e.rnamespace=e.namespace?new RegExp("(^|\\.)"+m.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,e.result=void 0,e.target||(e.target=r),t=null==t?[e]:n.makeArray(t,[e]),h=n.event.special[v]||{},i||!h.trigger||h.trigger.apply(r,t)!==!1)){if(!i&&!h.noBubble&&!n.isWindow(r)){for(f=h.delegateType||v,ib.test(f+v)||(o=o.parentNode);o;o=o.parentNode)p.push(o),u=o;u===(r.ownerDocument||d)&&p.push(u.defaultView||u.parentWindow||a)}s=0;while((o=p[s++])&&!e.isPropagationStopped())e.type=s>1?f:h.bindType||v,c=(N.get(o,"events")||{})[e.type]&&N.get(o,"handle"),c&&c.apply(o,t),c=l&&o[l],c&&c.apply&&L(o)&&(e.result=c.apply(o,t),e.result===!1&&e.preventDefault());return e.type=v,i||e.isDefaultPrevented()||h._default&&h._default.apply(p.pop(),t)!==!1||!L(r)||l&&n.isFunction(r[v])&&!n.isWindow(r)&&(u=r[l],u&&(r[l]=null),n.event.triggered=v,r[v](),n.event.triggered=void 0,u&&(r[l]=u)),e.result}},simulate:function(e,t,r){var i=n.extend(new n.Event,r,{type:e,isSimulated:!0});n.event.trigger(i,null,t)}}),n.fn.extend({trigger:function(e,t){return this.each(function(){n.event.trigger(e,t,this)})},triggerHandler:function(e,t){var r=this[0];return r?n.event.trigger(e,t,r,!0):void 0}}),n.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error contextmenu".split(" "),function(e,t){n.fn[t]=function(e,n){return arguments.length>0?this.on(t,null,e,n):this.trigger(t)}}),n.fn.extend({hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)}}),l.focusin="onfocusin"in a,l.focusin||n.each({focus:"focusin",blur:"focusout"},function(e,t){var r=function(e){n.event.simulate(t,e.target,n.event.fix(e))};n.event.special[t]={setup:function(){var n=this.ownerDocument||this,i=N.access(n,t);i||n.addEventListener(e,r,!0),N.access(n,t,(i||0)+1)},teardown:function(){var n=this.ownerDocument||this,i=N.access(n,t)-1;i?N.access(n,t,i):(n.removeEventListener(e,r,!0),N.remove(n,t))}}});var jb=a.location,kb=n.now(),lb=/\?/;n.parseJSON=function(e){return JSON.parse(e+"")},n.parseXML=function(e){var t;if(!e||"string"!=typeof e)return null;try{t=(new a.DOMParser).parseFromString(e,"text/xml")}catch(r){t=void 0}return t&&!t.getElementsByTagName("parsererror").length||n.error("Invalid XML: "+e),t};var mb=/#.*$/,nb=/([?&])_=[^&]*/,ob=/^(.*?):[ \t]*([^\r\n]*)$/gm,pb=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,qb=/^(?:GET|HEAD)$/,rb=/^\/\//,sb={},tb={},ub="*/".concat("*"),vb=d.createElement("a");vb.href=jb.href,n.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:jb.href,type:"GET",isLocal:pb.test(jb.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":ub,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":n.parseJSON,"text xml":n.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?yb(yb(e,n.ajaxSettings),t):yb(n.ajaxSettings,e)},ajaxPrefilter:wb(sb),ajaxTransport:wb(tb),ajax:function(e,t){function N(e,t,o,f){var c,d,b,w,S,T=t;2!==E&&(E=2,u&&a.clearTimeout(u),r=void 0,s=f||"",x.readyState=e>0?4:0,c=e>=200&&300>e||304===e,o&&(w=zb(h,x,o)),w=Ab(h,w,x,c),c?(h.ifModified&&(S=x.getResponseHeader("Last-Modified"),S&&(n.lastModified[i]=S),S=x.getResponseHeader("etag"),S&&(n.etag[i]=S)),204===e||"HEAD"===h.type?T="nocontent":304===e?T="notmodified":(T=w.state,d=w.data,b=w.error,c=!b)):(b=T,!e&&T||(T="error",0>e&&(e=0))),x.status=e,x.statusText=(t||T)+"",c?m.resolveWith(p,[d,T,x]):m.rejectWith(p,[x,T,b]),x.statusCode(y),y=void 0,l&&v.trigger(c?"ajaxSuccess":"ajaxError",[x,h,c?d:b]),g.fireWith(p,[x,T]),l&&(v.trigger("ajaxComplete",[x,h]),--n.active||n.event.trigger("ajaxStop")))}"object"==typeof e&&(t=e,e=void 0),t=t||{};var r,i,s,o,u,f,l,c,h=n.ajaxSetup({},t),p=h.context||h,v=h.context&&(p.nodeType||p.jquery)?n(p):n.event,m=n.Deferred(),g=n.Callbacks("once memory"),y=h.statusCode||{},b={},w={},E=0,S="canceled",x={readyState:0,getResponseHeader:function(e){var t;if(2===E){if(!o){o={};while(t=ob.exec(s))o[t[1].toLowerCase()]=t[2]}t=o[e.toLowerCase()]}return null==t?null:t},getAllResponseHeaders:function(){return 2===E?s:null},setRequestHeader:function(e,t){var n=e.toLowerCase();return E||(e=w[n]=w[n]||e,b[e]=t),this},overrideMimeType:function(e){return E||(h.mimeType=e),this},statusCode:function(e){var t;if(e)if(2>E)for(t in e)y[t]=[y[t],e[t]];else x.always(e[x.status]);return this},abort:function(e){var t=e||S;return r&&r.abort(t),N(0,t),this}};if(m.promise(x).complete=g.add,x.success=x.done,x.error=x.fail,h.url=((e||h.url||jb.href)+"").replace(mb,"").replace(rb,jb.protocol+"//"),h.type=t.method||t.type||h.method||h.type,h.dataTypes=n.trim(h.dataType||"*").toLowerCase().match(G)||[""],null==h.crossDomain){f=d.createElement("a");try{f.href=h.url,f.href=f.href,h.crossDomain=vb.protocol+"//"+vb.host!=f.protocol+"//"+f.host}catch(T){h.crossDomain=!0}}if(h.data&&h.processData&&"string"!=typeof h.data&&(h.data=n.param(h.data,h.traditional)),xb(sb,h,t,x),2===E)return x;l=n.event&&h.global,l&&0===n.active++&&n.event.trigger("ajaxStart"),h.type=h.type.toUpperCase(),h.hasContent=!qb.test(h.type),i=h.url,h.hasContent||(h.data&&(i=h.url+=(lb.test(i)?"&":"?")+h.data,delete h.data),h.cache===!1&&(h.url=nb.test(i)?i.replace(nb,"$1_="+kb++):i+(lb.test(i)?"&":"?")+"_="+kb++)),h.ifModified&&(n.lastModified[i]&&x.setRequestHeader("If-Modified-Since",n.lastModified[i]),n.etag[i]&&x.setRequestHeader("If-None-Match",n.etag[i])),(h.data&&h.hasContent&&h.contentType!==!1||t.contentType)&&x.setRequestHeader("Content-Type",h.contentType),x.setRequestHeader("Accept",h.dataTypes[0]&&h.accepts[h.dataTypes[0]]?h.accepts[h.dataTypes[0]]+("*"!==h.dataTypes[0]?", "+ub+"; q=0.01":""):h.accepts["*"]);for(c in h.headers)x.setRequestHeader(c,h.headers[c]);if(!h.beforeSend||h.beforeSend.call(p,x,h)!==!1&&2!==E){S="abort";for(c in{success:1,error:1,complete:1})x[c](h[c]);if(r=xb(tb,h,t,x)){if(x.readyState=1,l&&v.trigger("ajaxSend",[x,h]),2===E)return x;h.async&&h.timeout>0&&(u=a.setTimeout(function(){x.abort("timeout")},h.timeout));try{E=1,r.send(b,N)}catch(T){if(!(2>E))throw T;N(-1,T)}}else N(-1,"No Transport");return x}return x.abort()},getJSON:function(e,t,r){return n.get(e,t,r,"json")},getScript:function(e,t){return n.get(e,void 0,t,"script")}}),n.each(["get","post"],function(e,t){n[t]=function(e,r,i,s){return n.isFunction(r)&&(s=s||i,i=r,r=void 0),n.ajax(n.extend({url:e,type:t,dataType:s,data:r,success:i},n.isPlainObject(e)&&e))}}),n._evalUrl=function(e){return n.ajax({url:e,type:"GET",dataType:"script",async:!1,global:!1,"throws":!0})},n.fn.extend({wrapAll:function(e){var t;return n.isFunction(e)?this.each(function(t){n(this).wrapAll(e.call(this,t))}):(this[0]&&(t=n(e,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&t.insertBefore(this[0]),t.map(function(){var e=this;while(e.firstElementChild)e=e.firstElementChild;return e}).append(this)),this)},wrapInner:function(e){return n.isFunction(e)?this.each(function(t){n(this).wrapInner(e.call(this,t))}):this.each(function(){var t=n(this),r=t.contents();r.length?r.wrapAll(e):t.append(e)})},wrap:function(e){var t=n.isFunction(e);return this.each(function(r){n(this).wrapAll(t?e.call(this,r):e)})},unwrap:function(){return this.parent().each(function(){n.nodeName(this,"body")||n(this).replaceWith(this.childNodes)}).end()}}),n.expr.filters.hidden=function(e){return!n.expr.filters.visible(e)},n.expr.filters.visible=function(e){return e.offsetWidth>0||e.offsetHeight>0||e.getClientRects().length>0};var Bb=/%20/g,Cb=/\[\]$/,Db=/\r?\n/g,Eb=/^(?:submit|button|image|reset|file)$/i,Fb=/^(?:input|select|textarea|keygen)/i;n.param=function(e,t){var r,i=[],s=function(e,t){t=n.isFunction(t)?t():null==t?"":t,i[i.length]=encodeURIComponent(e)+"="+encodeURIComponent(t)};if(void 0===t&&(t=n.ajaxSettings&&n.ajaxSettings.traditional),n.isArray(e)||e.jquery&&!n.isPlainObject(e))n.each(e,function(){s(this.name,this.value)});else for(r in e)Gb(r,e[r],t,s);return i.join("&").replace(Bb,"+")},n.fn.extend({serialize:function(){return n.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var e=n.prop(this,"elements");return e?n.makeArray(e):this}).filter(function(){var e=this.type;return this.name&&!n(this).is(":disabled")&&Fb.test(this.nodeName)&&!Eb.test(e)&&(this.checked||!X.test(e))}).map(function(e,t){var r=n(this).val();return null==r?null:n.isArray(r)?n.map(r,function(e){return{name:t.name,value:e.replace(Db,"\r\n")}}):{name:t.name,value:r.replace(Db,"\r\n")}}).get()}}),n.ajaxSettings.xhr=function(){try{return new a.XMLHttpRequest}catch(e){}};var Hb={0:200,1223:204},Ib=n.ajaxSettings.xhr();l.cors=!!Ib&&"withCredentials"in Ib,l.ajax=Ib=!!Ib,n.ajaxTransport(function(e){var t,n;return l.cors||Ib&&!e.crossDomain?{send:function(r,i){var s,o=e.xhr();if(o.open(e.type,e.url,e.async,e.username,e.password),e.xhrFields)for(s in e.xhrFields)o[s]=e.xhrFields[s];e.mimeType&&o.overrideMimeType&&o.overrideMimeType(e.mimeType),e.crossDomain||r["X-Requested-With"]||(r["X-Requested-With"]="XMLHttpRequest");for(s in r)o.setRequestHeader(s,r[s]);t=function(e){return function(){t&&(t=n=o.onload=o.onerror=o.onabort=o.onreadystatechange=null,"abort"===e?o.abort():"error"===e?"number"!=typeof o.status?i(0,"error"):i(o.status,o.statusText):i(Hb[o.status]||o.status,o.statusText,"text"!==(o.responseType||"text")||"string"!=typeof o.responseText?{binary:o.response}:{text:o.responseText},o.getAllResponseHeaders()))}},o.onload=t(),n=o.onerror=t("error"),void 0!==o.onabort?o.onabort=n:o.onreadystatechange=function(){4===o.readyState&&a.setTimeout(function(){t&&n()})},t=t("abort");try{o.send(e.hasContent&&e.data||null)}catch(u){if(t)throw u}},abort:function(){t&&t()}}:void 0}),n.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(e){return n.globalEval(e),e}}}),n.ajaxPrefilter("script",function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type="GET")}),n.ajaxTransport("script",function(e){if(e.crossDomain){var t,r;return{send:function(i,s){t=n("<script>
1").prop({charset:e.scriptCharset,src:e.url}).on("load error",r=function(e){t.remove(),r=null,e&&s("error"===e.type?404:200,e.type)}),d.head.appendChild(t[0])},abort:function(){r&&r()}}}});var Jb=[],Kb=/(=)\?(?=&|$)|\?\?/;n.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=Jb.pop()||n.expando+"_"+kb++;return this[e]=!0,e}}),n.ajaxPrefilter("json jsonp",function(e,t,r){var i,s,o,u=e.jsonp!==!1&&(Kb.test(e.url)?"url":"string"==typeof e.data&&0===(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&Kb.test(e.data)&&"data");return u||"jsonp"===e.dataTypes[0]?(i=e.jsonpCallback=n.isFunction(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,u?e[u]=e[u].replace(Kb,"$1"+i):e.jsonp!==!1&&(e.url+=(lb.test(e.url)?"&":"?")+e.jsonp+"="+i),e.converters["script json"]=function(){return o||n.error(i+" was not called"),o[0]},e.dataTypes[0]="json",s=a[i],a[i]=function(){o=arguments},r.always(function(){void 0===s?n(a).removeProp(i):a[i]=s,e[i]&&(e.jsonpCallback=t.jsonpCallback,Jb.push(i)),o&&n.isFunction(s)&&s(o[0]),o=s=void 0}),"script"):void 0}),n.parseHTML=function(e,t,r){if(!e||"string"!=typeof e)return null;"boolean"==typeof t&&(r=t,t=!1),t=t||d;var i=x.exec(e),s=!r&&[];return i?[t.createElement(i[1])]:(i=ca([e],t,s),s&&s.length&&n(s).remove(),n.merge([],i.childNodes))};var Lb=n.fn.load;n.fn.load=function(e,t,r){if("string"!=typeof e&&Lb)return Lb.apply(this,arguments);var i,s,o,u=this,a=e.indexOf(" ");return a>-1&&(i=n.trim(e.slice(a)),e=e.slice(0,a)),n.isFunction(t)?(r=t,t=void 0):t&&"object"==typeof t&&(s="POST"),u.length>0&&n.ajax({url:e,type:s||"GET",dataType:"html",data:t}).done(function(e){o=arguments,u.html(i?n("<div>").append(n.parseHTML(e)).find(i):e)}).always(r&&function(e,t){u.each(function(){r.apply(this,o||[e.responseText,t,e])})}),this},n.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){n.fn[t]=function(e){return this.on(t,e)}}),n.expr.filters.animated=function(e){return n.grep(n.timers,function(t){return e===t.elem}).length},n.offset={setOffset:function(e,t,r){var i,s,o,u,a,f,l,c=n.css(e,"position"),h=n(e),p={};"static"===c&&(e.style.position="relative"),a=h.offset(),o=n.css(e,"top"),f=n.css(e,"left"),l=("absolute"===c||"fixed"===c)&&(o+f).indexOf("auto")>-1,l?(i=h.position(),u=i.top,s=i.left):(u=parseFloat(o)||0,s=parseFloat(f)||0),n.isFunction(t)&&(t=t.call(e,r,n.extend({},a))),null!=t.top&&(p.top=t.top-a.top+u),null!=t.left&&(p.left=t.left-a.left+s),"using"in t?t.using.call(e,p):h.css(p)}},n.fn.extend({offset:function(e){if(arguments.length)return void 0===e?this:this.each(function(t){n.offset.setOffset(this,e,t)});var t,r,i=this[0],s={top:0,left:0},o=i&&i.ownerDocument;if(o)return t=o.documentElement,n.contains(t,i)?(s=i.getBoundingClientRect(),r=Mb(o),{top:s.top+r.pageYOffset-t.clientTop,left:s.left+r.pageXOffset-t.clientLeft}):s},position:function(){if(this[0]){var e,t,r=this[0],i={top:0,left:0};return"fixed"===n.css(r,"position")?t=r.getBoundingClientRect():(e=this.offsetParent(),t=this.offset(),n.nodeName(e[0],"html")||(i=e.offset()),i.top+=n.css(e[0],"borderTopWidth",!0),i.left+=n.css(e[0],"borderLeftWidth",!0)),{top:t.top-i.top-n.css(r,"marginTop",!0),left:t.left-i.left-n.css(r,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){var e=this.offsetParent;while(e&&"static"===n.css(e,"position"))e=e.offsetParent;return e||Ea})}}),n.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(e,t){var r="pageYOffset"===t;n.fn[e]=function(n){return K(this,function(e,n,i){var s=Mb(e);return void 0===i?s?s[t]:e[n]:void (s?s.scrollTo(r?s.pageXOffset:i,r?i:s.pageYOffset):e[n]=i)},e,n,arguments.length)}}),n.each(["top","left"],function(e,t){n.cssHooks[t]=Ga(l.pixelPosition,function(e,r){return r?(r=Fa(e,t),Ba.test(r)?n(e).position()[t]+"px":r):void 0})}),n.each({Height:"height",Width:"width"},function(e,t){n.each({padding:"inner"+e,content:t,"":"outer"+e},function(r,i){n.fn[i]=function(i,s){var o=arguments.length&&(r||"boolean"!=typeof i),u=r||(i===!0||s===!0?"margin":"border");return K(this,function(t,r,i){var s;return n.isWindow(t)?t.document.documentElement["client"+e]:9===t.nodeType?(s=t.documentElement,Math.max(t.body["scroll"+e],s["scroll"+e],t.body["offset"+e],s["offset"+e],s["client"+e])):void 0===i?n.css(t,r,u):n.style(t,r,i,u)},t,o?i:void 0,o,null)}})}),n.fn.extend({bind:function(e,t,n){return this.on(e,null,t,n)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,n,r){return this.on(t,e,n,r)},undelegate:function(e,t,n){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",n)},size:function(){return this.length}}),n.fn.andSelf=n.fn.addBack,"function"==typeof define&&define.amd&&define("jquery",[],function(){return n});var Nb=a.jQuery,Ob=a.$;return n.noConflict=function(e){return a.$===n&&(a.$=Ob),e&&a.jQuery===n&&(a.jQuery=Nb),n},b||(a.jQuery=a.$=n),n}),function(e){var t=typeof self=="object"&&self.self===self&&self||typeof global=="object"&&global.global===global&&global;if(typeof define=="function"&&define.amd)define("backbone",["underscore","jquery","exports"],function(n,r,i){t.Backbone=e(t,i,n,r)});else if(typeof exports!="undefined"){var n=require("underscore"),r;try{r=require("jquery")}catch(i){}e(t,exports,n,r)}else t.Backbone=e(t,{},t._,t.jQuery||t.Zepto||t.ender||t.$)}(function(e,t,n,r){var i=e.Backbone,s=Array.prototype.slice;t.VERSION="1.3.3",t.$=r,t.noConflict=function(){return e.Backbone=i,this},t.emulateHTTP=!1,t.emulateJSON=!1;var o=function(e,t,r){switch(e){case 1:return function(){return n[t](this[r])};case 2:return function(e){return n[t](this[r],e)};case 3:return function(e,i){return n[t](this[r],a(e,this),i)};case 4:return function(e,i,s){return n[t](this[r],a(e,this),i,s)};default:return function(){var e=s.call(arguments);return e.unshift(this[r]),n[t].apply(n,e)}}},u=function(e,t,r){n.each(t,function(t,i){n[i]&&(e.prototype[i]=o(t,i,r))})},a=function(e,t){return n.isFunction(e)?e:n.isObject(e)&&!t._isModel(e)?f(e):n.isString(e)?function(t){return t.get(e)}:e},f=function(e){var t=n.matches(e);return function(e){return t(e.attributes)}},l=t.Events={},c=/\s+/,h=function(e,t,r,i,s){var o=0,u;if(r&&typeof r=="object"){i!==void 0&&"context"in s&&s.context===void 0&&(s.context=i);for(u=n.keys(r);o<u.length;o++)t=h(e,t,u[o],r[u[o]],s)}else if(r&&c.test(r))for(u=r.split(c);o<u.length;o++)t=e(t,u[o],i,s);else t=e(t,r,i,s);return t};l.on=function(e,t,n){return p(this,e,t,n)};var p=function(e,t,n,r,i){e._events=h(d,e._events||{},t,n,{context:r,ctx:e,listening:i});if(i){var s=e._listeners||(e._listeners={});s[i.id]=i}return e};l.listenTo=function(e,t,r){if(!e)return this;var i=e._listenId||(e._listenId=n.uniqueId("l")),s=this._listeningTo||(this._listeningTo={}),o=s[i];if(!o){var u=this._listenId||(this._listenId=n.uniqueId("l"));o=s[i]={obj:e,objId:i,id:u,listeningTo:s,count:0}}return p(e,t,r,this,o),this};var d=function(e,t,n,r){if(n){var i=e[t]||(e[t]=[]),s=r.context,o=r.ctx,u=r.listening;u&&u.count++,i.push({callback:n,context:s,ctx:s||o,listening:u})}return e};l.off=function(e,t,n){return this._events?(this._events=h(v,this._events,e,t,{context:n,listeners:this._listeners}),this):this},l.stopListening=function(e,t,r){var i=this._listeningTo;if(!i)return this;var s=e?[e._listenId]:n.keys(i);for(var o=0;o<s.length;o++){var u=i[s[o]];if(!u)break;u.obj.off(t,r,this)}return this};var v=function(e,t,r,i){if(!e)return;var s=0,o,u=i.context,a=i.listeners;if(!t&&!r&&!u){var f=n.keys(a);for(;s<f.length;s++)o=a[f[s]],delete a[o.id],delete o.listeningTo[o.objId];return}var l=t?[t]:n.keys(e);for(;s<l.length;s++){t=l[s];var c=e[t];if(!c)break;var h=[];for(var p=0;p<c.length;p++){var d=c[p];r&&r!==d.callback&&r!==d.callback._callback||u&&u!==d.context?h.push(d):(o=d.listening,o&&--o.count===0&&(delete a[o.id],delete o.listeningTo[o.objId]))}h.length?e[t]=h:delete e[t]}return e};l.once=function(e,t,r){var i=h(m,{},e,t,n.bind(this.off,this));return typeof e=="string"&&r==null&&(t=void 0),this.on(i,t,r)},l.listenToOnce=function(e,t,r){var i=h(m,{},t,r,n.bind(this.stopListening,this,e));return this.listenTo(e,i)};var m=function(e,t,r,i){if(r){var s=e[t]=n.once(function(){i(t,s),r.apply(this,arguments)});s._callback=r}return e};l.trigger=function(e){if(!this._events)return this;var t=Math.max(0,arguments.length-1),n=Array(t);for(var r=0;r<t;r++)n[r]=arguments[r+1];return h(g,this._events,e,void 0,n),this};var g=function(e,t,n,r){if(e){var i=e[t],s=e.all;i&&s&&(s=s.slice()),i&&y(i,r),s&&y(s,[t].concat(r))}return e},y=function(e,t){var n,r=-1,i=e.length,s=t[0],o=t[1],u=t[2];switch(t.length){case 0:while(++r<i)(n=e[r]).callback.call(n.ctx);return;case 1:while(++r<i)(n=e[r]).callback.call(n.ctx,s);return;case 2:while(++r<i)(n=e[r]).callback.call(n.ctx,s,o);return;case 3:while(++r<i)(n=e[r]).callback.call(n.ctx,s,o,u);return;default:while(++r<i)(n=e[r]).callback.apply(n.ctx,t);return}};l.bind=l.on,l.unbind=l.off,n.extend(t,l);var b=t.Model=function(e,t){var r=e||{};t||(t={}),this.cid=n.uniqueId(this.cidPrefix),this.attributes={},t.collection&&(this.collection=t.collection),t.parse&&(r=this.parse(r,t)||{});var i=n.result(this,"defaults");r=n.defaults(n.extend({},i,r),i),this.set(r,t),this.changed={},this.initialize.apply(this,arguments)};n.extend(b.prototype,l,{changed:null,validationError:null,idAttribute:"id",cidPrefix:"c",initialize:function(){},toJSON:function(e){return n.clone(this.attributes)},sync:function(){return t.sync.apply(this,arguments)},get:function(e){return this.attributes[e]},escape:function(e){return n.escape(this.get(e))},has:function(e){return this.get(e)!=null},matches:function(e){return!!n.iteratee(e,this)(this.attributes)},set:function(e,t,r){if(e==null)return this;var i;typeof e=="object"?(i=e,r=t):(i={})[e]=t,r||(r={});
1if(!this._validate(i,r))return!1;var s=r.unset,o=r.silent,u=[],a=this._changing;this._changing=!0,a||(this._previousAttributes=n.clone(this.attributes),this.changed={});var f=this.attributes,l=this.changed,c=this._previousAttributes;for(var h in i)t=i[h],n.isEqual(f[h],t)||u.push(h),n.isEqual(c[h],t)?delete l[h]:l[h]=t,s?delete f[h]:f[h]=t;this.idAttribute in i&&(this.id=this.get(this.idAttribute));if(!o){u.length&&(this._pending=r);for(var p=0;p<u.length;p++)this.trigger("change:"+u[p],this,f[u[p]],r)}if(a)return this;if(!o)while(this._pending)r=this._pending,this._pending=!1,this.trigger("change",this,r);return this._pending=!1,this._changing=!1,this},unset:function(e,t){return this.set(e,void 0,n.extend({},t,{unset:!0}))},clear:function(e){var t={};for(var r in this.attributes)t[r]=void 0;return this.set(t,n.extend({},e,{unset:!0}))},hasChanged:function(e){return e==null?!n.isEmpty(this.changed):n.has(this.changed,e)},changedAttributes:function(e){if(!e)return this.hasChanged()?n.clone(this.changed):!1;var t=this._changing?this._previousAttributes:this.attributes,r={};for(var i in e){var s=e[i];if(n.isEqual(t[i],s))continue;r[i]=s}return n.size(r)?r:!1},previous:function(e){return e==null||!this._previousAttributes?null:this._previousAttributes[e]},previousAttributes:function(){return n.clone(this._previousAttributes)},fetch:function(e){e=n.extend({parse:!0},e);var t=this,r=e.success;return e.success=function(n){var i=e.parse?t.parse(n,e):n;if(!t.set(i,e))return!1;r&&r.call(e.context,t,n,e),t.trigger("sync",t,n,e)},R(this,e),this.sync("read",this,e)},save:function(e,t,r){var i;e==null||typeof e=="object"?(i=e,r=t):(i={})[e]=t,r=n.extend({validate:!0,parse:!0},r);var s=r.wait;if(i&&!s){if(!this.set(i,r))return!1}else if(!this._validate(i,r))return!1;var o=this,u=r.success,a=this.attributes;r.success=function(e){o.attributes=a;var t=r.parse?o.parse(e,r):e;s&&(t=n.extend({},i,t));if(t&&!o.set(t,r))return!1;u&&u.call(r.context,o,e,r),o.trigger("sync",o,e,r)},R(this,r),i&&s&&(this.attributes=n.extend({},a,i));var f=this.isNew()?"create":r.patch?"patch":"update";f==="patch"&&!r.attrs&&(r.attrs=i);var l=this.sync(f,this,r);return this.attributes=a,l},destroy:function(e){e=e?n.clone(e):{};var t=this,r=e.success,i=e.wait,s=function(){t.stopListening(),t.trigger("destroy",t,t.collection,e)};e.success=function(n){i&&s(),r&&r.call(e.context,t,n,e),t.isNew()||t.trigger("sync",t,n,e)};var o=!1;return this.isNew()?n.defer(e.success):(R(this,e),o=this.sync("delete",this,e)),i||s(),o},url:function(){var e=n.result(this,"urlRoot")||n.result(this.collection,"url")||q();if(this.isNew())return e;var t=this.get(this.idAttribute);return e.replace(/[^\/]$/,"$&/")+encodeURIComponent(t)},parse:function(e,t){return e},clone:function(){return new this.constructor(this.attributes)},isNew:function(){return!this.has(this.idAttribute)},isValid:function(e){return this._validate({},n.extend({},e,{validate:!0}))},_validate:function(e,t){if(!t.validate||!this.validate)return!0;e=n.extend({},this.attributes,e);var r=this.validationError=this.validate(e,t)||null;return r?(this.trigger("invalid",this,r,n.extend(t,{validationError:r})),!1):!0}});var w={keys:1,values:1,pairs:1,invert:1,pick:0,omit:0,chain:1,isEmpty:1};u(b,w,"attributes");var E=t.Collection=function(e,t){t||(t={}),t.model&&(this.model=t.model),t.comparator!==void 0&&(this.comparator=t.comparator),this._reset(),this.initialize.apply(this,arguments),e&&this.reset(e,n.extend({silent:!0},t))},S={add:!0,remove:!0,merge:!0},x={add:!0,remove:!1},T=function(e,t,n){n=Math.min(Math.max(n,0),e.length);var r=Array(e.length-n),i=t.length,s;for(s=0;s<r.length;s++)r[s]=e[s+n];for(s=0;s<i;s++)e[s+n]=t[s];for(s=0;s<r.length;s++)e[s+i+n]=r[s]};n.extend(E.prototype,l,{model:b,initialize:function(){},toJSON:function(e){return this.map(function(t){return t.toJSON(e)})},sync:function(){return t.sync.apply(this,arguments)},add:function(e,t){return this.set(e,n.extend({merge:!1},t,x))},remove:function(e,t){t=n.extend({},t);var r=!n.isArray(e);e=r?[e]:e.slice();var i=this._removeModels(e,t);return!t.silent&&i.length&&(t.changes={added:[],merged:[],removed:i},this.trigger("update",this,t)),r?i[0]:i}
1,set:function(e,t){if(e==null)return;t=n.extend({},S,t),t.parse&&!this._isModel(e)&&(e=this.parse(e,t)||[]);var r=!n.isArray(e);e=r?[e]:e.slice();var i=t.at;i!=null&&(i=+i),i>this.length&&(i=this.length),i<0&&(i+=this.length+1);var s=[],o=[],u=[],a=[],f={},l=t.add,c=t.merge,h=t.remove,p=!1,d=this.comparator&&i==null&&t.sort!==!1,v=n.isString(this.comparator)?this.comparator:null,m,g;for(g=0;g<e.length;g++){m=e[g];var y=this.get(m);if(y){if(c&&m!==y){var b=this._isModel(m)?m.attributes:m;t.parse&&(b=y.parse(b,t)),y.set(b,t),u.push(y),d&&!p&&(p=y.hasChanged(v))}f[y.cid]||(f[y.cid]=!0,s.push(y)),e[g]=y}else l&&(m=e[g]=this._prepareModel(m,t),m&&(o.push(m),this._addReference(m,t),f[m.cid]=!0,s.push(m)))}if(h){for(g=0;g<this.length;g++)m=this.models[g],f[m.cid]||a.push(m);a.length&&this._removeModels(a,t)}var w=!1,E=!d&&l&&h;s.length&&E?(w=this.length!==s.length||n.some(this.models,function(e,t){return e!==s[t]}),this.models.length=0,T(this.models,s,0),this.length=this.models.length):o.length&&(d&&(p=!0),T(this.models,o,i==null?this.length:i),this.length=this.models.length),p&&this.sort({silent:!0});if(!t.silent){for(g=0;g<o.length;g++)i!=null&&(t.index=i+g),m=o[g],m.trigger("add",m,this,t);(p||w)&&this.trigger("sort",this,t);if(o.length||a.length||u.length)t.changes={added:o,removed:a,merged:u},this.trigger("update",this,t)}return r?e[0]:e},reset:function(e,t){t=t?n.clone(t):{};for(var r=0;r<this.models.length;r++)this._removeReference(this.models[r],t);return t.previousModels=this.models,this._reset(),e=this.add(e,n.extend({silent:!0},t)),t.silent||this.trigger("reset",this,t),e},push:function(e,t){return this.add(e,n.extend({at:this.length},t))},pop:function(e){var t=this.at(this.length-1);return this.remove(t,e)},unshift:function(e,t){return this.add(e,n.extend({at:0},t))},shift:function(e){var t=this.at(0);return this.remove(t,e)},slice:function(){return s.apply(this.models,arguments)},get:function(e){return e==null?void 0:this._byId[e]||this._byId[this.modelId(e.attributes||e)]||e.cid&&this._byId[e.cid]},has:function(e){return this.get(e)!=null},at:function(e){return e<0&&(e+=this.length),this.models[e]},where:function(e,t){return this[t?"find":"filter"](e)},findWhere:function(e){return this.where(e,!0)},sort:function(e){var t=this.comparator;if(!t)throw new Error("Cannot sort a set without a comparator");e||(e={});var r=t.length;return n.isFunction(t)&&(t=n.bind(t,this)),r===1||n.isString(t)?this.models=this.sortBy(t):this.models.sort(t),e.silent||this.trigger("sort",this,e),this},pluck:function(e){return this.map(e+"")},fetch:function(e){e=n.extend({parse:!0},e);var t=e.success,r=this;return e.success=function(n){var i=e.reset?"reset":"set";r[i](n,e),t&&t.call(e.context,r,n,e),r.trigger("sync",r,n,e)},R(this,e),this.sync("read",this,e)},create:function(e,t){t=t?n.clone(t):{};var r=t.wait;e=this._prepareModel(e,t);if(!e)return!1;r||this.add(e,t);var i=this,s=t.success;return t.success=function(e,t,n){r&&i.add(e,n),s&&s.call(n.context,e,t,n)},e.save(null,t),e},parse:function(e,t){return e},clone:function(){return new this.constructor(this.models,{model:this.model,comparator:this.comparator})},modelId:function(e){return e[this.model.prototype.idAttribute||"id"]},_reset:function(){this.length=0,this.models=[],this._byId={}},_prepareModel:function(e,t){if(this._isModel(e))return e.collection||(e.collection=this),e;t=t?n.clone(t):{},t.collection=this;var r=new this.model(e,t);return r.validationError?(this.trigger("invalid",this,r.validationError,t),!1):r},_removeModels:function(e,t){var n=[];for(var r=0;r<e.length;r++){var i=this.get(e[r]);if(!i)continue;var s=this.indexOf(i);this.models.splice(s,1),this.length--,delete this._byId[i.cid];var o=this.modelId(i.attributes);o!=null&&delete this._byId[o],t.silent||(t.index=s,i.trigger("remove",i,this,t)),n.push(i),this._removeReference(i,t)}return n},_isModel:function(e){return e instanceof b},_addReference:function(e,t){this._byId[e.cid]=e;var n=this.modelId(e.attributes);n!=null&&(this._byId[n]=e),e.on("all",this._onModelEvent,this)},_removeReference:function(e,t){delete this._byId[e.cid];var n=this.modelId(e.attributes);n!=null&&delete this._byId[n],this===e.collection&&delete e.collection,e.off("all",this._onModelEvent,this)},_onModelEvent:function(e,t,n,r){if(t){if((e==="add"||e==="remove")&&n!==this)return;e==="destroy"&&this.remove(t,r);
1if(e==="change"){var i=this.modelId(t.previousAttributes()),s=this.modelId(t.attributes);i!==s&&(i!=null&&delete this._byId[i],s!=null&&(this._byId[s]=t))}}this.trigger.apply(this,arguments)}});var N={forEach:3,each:3,map:3,collect:3,reduce:0,foldl:0,inject:0,reduceRight:0,foldr:0,find:3,detect:3,filter:3,select:3,reject:3,every:3,all:3,some:3,any:3,include:3,includes:3,contains:3,invoke:0,max:3,min:3,toArray:1,size:1,first:3,head:3,take:3,initial:3,rest:3,tail:3,drop:3,last:3,without:0,difference:0,indexOf:3,shuffle:1,lastIndexOf:3,isEmpty:1,chain:1,sample:3,partition:3,groupBy:3,countBy:3,sortBy:3,indexBy:3,findIndex:3,findLastIndex:3};u(E,N,"models");var C=t.View=function(e){this.cid=n.uniqueId("view"),n.extend(this,n.pick(e,L)),this._ensureElement(),this.initialize.apply(this,arguments)},k=/^(\S+)\s*(.*)$/,L=["model","collection","el","id","attributes","className","tagName","events"];n.extend(C.prototype,l,{tagName:"div",$:function(e){return this.$el.find(e)},initialize:function(){},render:function(){return this},remove:function(){return this._removeElement(),this.stopListening(),this},_removeElement:function(){this.$el.remove()},setElement:function(e){return this.undelegateEvents(),this._setElement(e),this.delegateEvents(),this},_setElement:function(e){this.$el=e instanceof t.$?e:t.$(e),this.el=this.$el[0]},delegateEvents:function(e){e||(e=n.result(this,"events"));if(!e)return this;this.undelegateEvents();for(var t in e){var r=e[t];n.isFunction(r)||(r=this[r]);if(!r)continue;var i=t.match(k);this.delegate(i[1],i[2],n.bind(r,this))}return this},delegate:function(e,t,n){return this.$el.on(e+".delegateEvents"+this.cid,t,n),this},undelegateEvents:function(){return this.$el&&this.$el.off(".delegateEvents"+this.cid),this},undelegate:function(e,t,n){return this.$el.off(e+".delegateEvents"+this.cid,t,n),this},_createElement:function(e){return document.createElement(e)},_ensureElement:function(){if(!this.el){var e=n.extend({},n.result(this,"attributes"));this.id&&(e.id=n.result(this,"id")),this.className&&(e["class"]=n.result(this,"className")),this.setElement(this._createElement(n.result(this,"tagName"))),this._setAttributes(e)}else this.setElement(n.result(this,"el"))},_setAttributes:function(e){this.$el.attr(e)}}),t.sync=function(e,r,i){var s=A[e];n.defaults(i||(i={}),{emulateHTTP:t.emulateHTTP,emulateJSON:t.emulateJSON});var o={type:s,dataType:"json"};i.url||(o.url=n.result(r,"url")||q()),i.data==null&&r&&(e==="create"||e==="update"||e==="patch")&&(o.contentType="application/json",o.data=JSON.stringify(i.attrs||r.toJSON(i))),i.emulateJSON&&(o.contentType="application/x-www-form-urlencoded",o.data=o.data?{model:o.data}:{});if(i.emulateHTTP&&(s==="PUT"||s==="DELETE"||s==="PATCH")){o.type="POST",i.emulateJSON&&(o.data._method=s);var u=i.beforeSend;i.beforeSend=function(e){e.setRequestHeader("X-HTTP-Method-Override",s);if(u)return u.apply(this,arguments)}}o.type!=="GET"&&!i.emulateJSON&&(o.processData=!1);var a=i.error;i.error=function(e,t,n){i.textStatus=t,i.errorThrown=n,a&&a.call(i.context,e,t,n)};var f=i.xhr=t.ajax(n.extend(o,i));return r.trigger("request",r,f,i),f};var A={create:"POST",update:"PUT",patch:"PATCH","delete":"DELETE",read:"GET"};t.ajax=function(){return t.$.ajax.apply(t.$,arguments)};var O=t.Router=function(e){e||(e={}),e.routes&&(this.routes=e.routes),this._bindRoutes(),this.initialize.apply(this,arguments)},M=/\((.*?)\)/g,_=/(\(\?)?:\w+/g,D=/\*\w+/g,P=/[\-{}\[\]+?.,\\\^$|#\s]/g;n.extend(O.prototype,l,{initialize:function(){},route:function(e,r,i){n.isRegExp(e)||(e=this._routeToRegExp(e)),n.isFunction(r)&&(i=r,r=""),i||(i=this[r]);var s=this;return t.history.route(e,function(n){var o=s._extractParameters(e,n);s.execute(i,o,r)!==!1&&(s.trigger.apply(s,["route:"+r].concat(o)),s.trigger("route",r,o),t.history.trigger("route",s,r,o))}),this},execute:function(e,t,n){e&&e.apply(this,t)},navigate:function(e,n){return t.history.navigate(e,n),this},_bindRoutes:function(){if(!this.routes)return;this.routes=n.result(this,"routes");var e,t=n.keys(this.routes);while((e=t.pop())!=null)this.route(e,this.routes[e])},_routeToRegExp:function(e){return e=e.replace(P,"\\$&").replace(M,"(?:$1)?").replace(_,function(e,t){return t?e:"([^/?]+)"}).replace(D,"([^?]*?)"),new RegExp("^"+e+"(?:\\?([\\s\\S]*))?$")},_extractParameters:function(e,t){var r=e.exec(t).slice(1);return n.map(r,function(e,t){return t===r.length-1?e||null:e?decodeURIComponent(e):null})}});var H=t.History=function(){this.handlers=[],this.checkUrl=n.bind(this.checkUrl,this),typeof window!="undefined"&&(this.location=window.location,this.history=window.history)},B=/^[#\/]|\s+$/g,j=/^\/+|\/+$/g,F=/#.*$/;H.started=!1,n.extend(H.prototype,l,{interval:50,atRoot:function(){var e=this.location.pathname.replace(/[^\/]$/,"$&/");return e===this.root&&!this.getSearch()},matchRoot:function(){var e=this.decodeFragment(this.location.pathname),t=e.slice(0,this.root.length-1)+"/";return t===this.root},decodeFragment:function(e){return decodeURI(e.replace(/%25/g,"%2525"))},getSearch:function(){var e=this.location.href.replace(/#.*/,"").match(/\?.+/);return e?e[0]:""},getHash:function(e){var t=(e||this).location.href.match(/#(.*)$/);return t?t[1]:""},getPath:function(){var e=this.decodeFragment(this.location.pathname+this.getSearch()).slice(this.root.length-1);return e.charAt(0)==="/"?e.slice(1):e},getFragment:function(e){return e==null&&(this._usePushState||!this._wantsHashChange?e=this.getPath():e=this.getHash()),e.replace(B,"")},start:function(e){if(H.started)throw new Error("Backbone.history has already been started");H.started=!0,this.options=n.extend({root:"/"},this.options,e),this.root=this.options.root,this._wantsHashChange=this.options.hashChange!==!1,this._hasHashChange="onhashchange"in window&&(document.documentMode===void 0||document.documentMode>7),this._useHashChange=this._wantsHashChange&&this._hasHashChange,this._wantsPushState=!!this.options.pushState,this._hasPushState=!!this.history&&!!this.history.pushState,this._usePushState=this._wantsPushState&&this._hasPushState,this.fragment=this.getFragment(),this.root=("/"+this.root+"/").replace(j,"/");
1if(this._wantsHashChange&&this._wantsPushState){if(!this._hasPushState&&!this.atRoot()){var t=this.root.slice(0,-1)||"/";return this.location.replace(t+"#"+this.getPath()),!0}this._hasPushState&&this.atRoot()&&this.navigate(this.getHash(),{replace:!0})}if(!this._hasHashChange&&this._wantsHashChange&&!this._usePushState){this.iframe=document.createElement("iframe"),this.iframe.src="javascript:0",this.iframe.style.display="none",this.iframe.tabIndex=-1;var r=document.body,i=r.insertBefore(this.iframe,r.firstChild).contentWindow;i.document.open(),i.document.close(),i.location.hash="#"+this.fragment}var s=window.addEventListener||function(e,t){return attachEvent("on"+e,t)};this._usePushState?s("popstate",this.checkUrl,!1):this._useHashChange&&!this.iframe?s("hashchange",this.checkUrl,!1):this._wantsHashChange&&(this._checkUrlInterval=setInterval(this.checkUrl,this.interval));if(!this.options.silent)return this.loadUrl()},stop:function(){var e=window.removeEventListener||function(e,t){return detachEvent("on"+e,t)};this._usePushState?e("popstate",this.checkUrl,!1):this._useHashChange&&!this.iframe&&e("hashchange",this.checkUrl,!1),this.iframe&&(document.body.removeChild(this.iframe),this.iframe=null),this._checkUrlInterval&&clearInterval(this._checkUrlInterval),H.started=!1},route:function(e,t){this.handlers.unshift({route:e,callback:t})},checkUrl:function(e){var t=this.getFragment();t===this.fragment&&this.iframe&&(t=this.getHash(this.iframe.contentWindow));if(t===this.fragment)return!1;this.iframe&&this.navigate(t),this.loadUrl()},loadUrl:function(e){return this.matchRoot()?(e=this.fragment=this.getFragment(e),n.some(this.handlers,function(t){if(t.route.test(e))return t.callback(e),!0})):!1},navigate:function(e,t){if(!H.started)return!1;if(!t||t===!0)t={trigger:!!t};e=this.getFragment(e||"");var n=this.root;if(e===""||e.charAt(0)==="?")n=n.slice(0,-1)||"/";var r=n+e;e=this.decodeFragment(e.replace(F,""));if(this.fragment===e)return;this.fragment=e;if(this._usePushState)this.history[t.replace?"replaceState":"pushState"]({},document.title,r);else{if(!this._wantsHashChange)return this.location.assign(r);this._updateHash(this.location,e,t.replace);if(this.iframe&&e!==this.getHash(this.iframe.contentWindow)){var i=this.iframe.contentWindow;t.replace||(i.document.open(),i.document.close()),this._updateHash(i.location,e,t.replace)}}if(t.trigger)return this.loadUrl(e)},_updateHash:function(e,t,n){if(n){var r=e.href.replace(/(javascript:|#).*$/,"");e.replace(r+"#"+t)}else e.hash="#"+t}}),t.history=new H;var I=function(e,t){var r=this,i;return e&&n.has(e,"constructor")?i=e.constructor:i=function(){return r.apply(this,arguments)},n.extend(i,r,t),i.prototype=n.create(r.prototype,e),i.prototype.constructor=i,i.__super__=r.prototype,i};b.extend=E.extend=O.extend=C.extend=H.extend=I;var q=function(){throw new Error('A "url" property or function must be specified')},R=function(e,t){var n=t.error;t.error=function(r){n&&n.call(t.context,e,r,t),e.trigger("error",e,r,t)}};return t}),define("app/app-events",["require","underscore","backbone"],function(e,t,n){var r={init:function(){this.debug=!1,this.setDebugEnv(),this.getEpisodesData=this.dataController.getEpisodesData.bind(this.dataController),this.dataController.state.on("change",this.onStateChanged.bind(this)),this.addBreakpointListeners(),boeing_globals.AppEvents=this},onStateChanged:function(e){this.console.log("AppEvents state changed is here ",e),this.trigger("STATE_CHANGED_EVENT",e),$("#bng-navstrips").length&&$("#bng-navstrips").hide()},onDataEvent:function(e){this.console.log("here is a data event ",e,this.getEpisodesData()),this.trigger(e.type,e.data)},onNavStripsControllerEvent:function(e){this.console.log("AppEvents nav navstrips controller event ",e),this.trigger(e.type,e.data)},onPlayerControllerEvent:function(e){this.console.log("AppEvents player controller event ",e),e.type=="VIDEO_ENDED_EVENT"?this.dataController.state.updateChapter():this.trigger(e.type,e.data)},onRouterEvent:function(e){this.console.log("AppEvents router1 event ",e,e.data.currentPage),this.trigger(e.type,e.data)},onUIControllerEvent:function(e){this.trigger(e.type,e.data),this.trigger("PAUSE_ALL_MEDIA_EVENT")},onMenusControllerEvent:function(e){this.console.log("AppEvents ui controller event ",e),this.trigger(e.type,e.data)},onTopicsControllerEvent:function(e){this.trigger(e.type,e.data)},onArticleControllerEvent:function(e){this.trigger(e.type,e.data)},onHomeControllerEvent:function(e){console.log("AppEvents homecontroller",e),this.trigger(e.type,e.data)},addBreakpointListeners:function(){var e=window.matchMedia("(orientation: portrait)"),t=window.matchMedia("(max-width: 768px)"),n,r=function(e){var t={type:"orientation"};t.value=e.matches==1?"portrait":"landscape",this.trigger("BREAKPOINT_EVENT",t)},i=function(e){var t={type:"breakpoint"};t.value=e.matches==1?"portrait":"landscape",this.trigger("BREAKPOINT_EVENT",t)};boeing_globals.isTouchDevice==1?(e.addListener(r.bind(this)),n=e.matches==1?"portrait":"landscape"):(t.addListener(i.bind(this)),n=t.matches==1?"portrait":"landscape"),boeing_globals.state.set("orientation",n)},setDebugEnv:function(){this.console={log:function(){}},this.debug!=undefined&&this.debug==1&&(this.console=window.console)}};return t.extend(r,n.Events),r});var _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(e,t,n){var r=function(e){var t,n=[],r=e.length;for(t=0;t!==r;n.push(e[t++]));return n},i=function(e,t,n){var r,i,s=e.cycle;for(r in s)i=s[r],e[r]="function"==typeof i?i(n,t[n]):i[n%i.length];delete e.cycle},s=function(e,t,r){n.call(this,e,t,r),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=s.prototype.render},o=1e-10,u=n._internals,a=u.isSelector,f=u.isArray,l=s.prototype=n.to({},.1,{}),c=[];s.version="1.19.1",l.constructor=s,l.kill()._gc=!1,s.killTweensOf=s.killDelayedCallsTo=n.killTweensOf,s.getTweensOf=n.getTweensOf,s.lagSmoothing=n.lagSmoothing,s.ticker=n.ticker,s.render=n.render,l.invali
vendor: 13,300 bytes, line 1
1date=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)},l.updateTo=function(e,t){var r,i=this.ratio,s=this.vars.immediateRender||e.immediateRender;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(r in e)this.vars[r]=e[r];if(this._initted||s)if(t)this._initted=!1,s&&this.render(0,!0,!0);else if(this._gc&&this._enabled(!0,!1),this._notifyPluginsOfEnabled&&this._firstPT&&n._onPluginEvent("_onDisable",this),this._time/this._duration>.998){var o=this._totalTime;this.render(0,!0,!1),this._initted=!1,this.render(o,!0,!1)}else if(this._initted=!1,this._init(),this._time>0||s)for(var u,a=1/(1-i),f=this._firstPT;f;)u=f.s+f.c,f.c*=a,f.s=u-f.c,f=f._next;return this},l.render=function(e,t,n){this._initted||0===this._duration&&this.vars.repeat&&this.invalidate();var r,i,s,a,f,l,c,h,p=this._dirty?this.totalDuration():this._totalDuration,d=this._time,v=this._totalTime,m=this._cycle,y=this._duration,b=this._rawPrevTime;if(e>=p-1e-7&&e>=0?(this._totalTime=p,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=y,this.ratio=this._ease._calcEnd?this._ease.getRatio(1):1),this._reversed||(r=!0,i="onComplete",n=n||this._timeline.autoRemoveChildren),0===y&&(this._initted||!this.vars.lazy||n)&&(this._startTime===this._timeline._duration&&(e=0),(0>b||0>=e&&e>=-1e-7||b===o&&"isPause"!==this.data)&&b!==e&&(n=!0,b>o&&(i="onReverseComplete")),this._rawPrevTime=h=!t||e||b===e?e:o)):1e-7>e?(this._totalTime=this._time=this._cycle=0,this.ratio=this._ease._calcEnd?this._ease.getRatio(0):0,(0!==v||0===y&&b>0)&&(i="onReverseComplete",r=this._reversed),0>e&&(this._active=!1,0===y&&(this._initted||!this.vars.lazy||n)&&(b>=0&&(n=!0),this._rawPrevTime=h=!t||e||b===e?e:o)),this._initted||(n=!0)):(this._totalTime=this._time=e,0!==this._repeat&&(a=y+this._repeatDelay,this._cycle=this._totalTime/a>>0,0!==this._cycle&&this._cycle===this._totalTime/a&&e>=v&&this._cycle--,this._time=this._totalTime-this._cycle*a,this._yoyo&&0!==(1&this._cycle)&&(this._time=y-this._time),this._time>y?this._time=y:this._time<0&&(this._time=0)),this._easeType?(f=this._time/y,l=this._easeType,c=this._easePower,(1===l||3===l&&f>=.5)&&(f=1-f),3===l&&(f*=2),1===c?f*=f:2===c?f*=f*f:3===c?f*=f*f*f:4===c&&(f*=f*f*f*f),1===l?this.ratio=1-f:2===l?this.ratio=f:this._time/y<.5?this.ratio=f/2:this.ratio=1-f/2):this.ratio=this._ease.getRatio(this._time/y)),d===this._time&&!n&&m===this._cycle)return void (v!==this._totalTime&&this._onUpdate&&(t||this._callback("onUpdate")));if(!this._initted){if(this._init(),!this._initted||this._gc)return;if(!n&&this._firstPT&&(this.vars.lazy!==!1&&this._duration||this.vars.lazy&&!this._duration))return this._time=d,this._totalTime=v,this._rawPrevTime=b,this._cycle=m,u.lazyTweens.push(this),void (this._lazy=[e,t]);this._time&&!r?this.ratio=this._ease.getRatio(this._time/y):r&&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!==d&&e>=0&&(this._active=!0),0===v&&(2===this._initted&&e>0&&this._init(),this._startAt&&(e>=0?this._startAt.render(e,t,n):i||(i="_dummyGS")),this.vars.onStart&&(0!==this._totalTime||0===y)&&(t||this._callback("onStart"))),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>e&&this._startAt&&this._startTime&&this._startAt.render(e,t,n),t||(this._totalTime!==v||i)&&this._callback("onUpdate")),this._cycle!==m&&(t||this._gc||this.vars.onRepeat&&this._callback("onRepeat")),i&&(!this._gc||n)&&(0>e&&this._startAt&&!this._onUpdate&&this._startTime&&this._startAt.render(e,t,n),r&&(this._timeline.autoRemoveChildren&&this._enabled(!1,!1),this._active=!1),!t&&this.vars[i]&&this._callback(i),0===y&&this._rawPrevTime===o&&h!==o&&(this._rawPrevTime=0))},s.to=function(e,t,n){return new s(e,t,n)},s.from=function(e,t,n){return n.runBackwards=!0,n.immediateRender=0!=n.immediateRender,new s(e,t,n)},s.fromTo=function(e,t,n,r){return r.startAt=n,r.immediateRender=0!=r.immediateRender&&0!=n.immediateRender,new s(e,t,r)},s.staggerTo=s.allTo=function(e,t,o,u,l,h,p){u=u||0;var d,v,m,g,y=0,b=[],w=function(){o.onComplete&&o.onComplete.apply(o.onCompleteScope||this,arguments),l.apply(p||o.callbackScope||this,h||c)},E=o.cycle,S=o.startAt&&o.startAt.cycle;for(f(e)||("string"==typeof e&&(e=n.selector(e)||e),a(e)&&(e=r(e))),e=e||[],0>u&&(e=r(e),e.reverse(),u*=-1),d=e.length-1,m=0;d>=m;m++){v={};for(g in o)v[g]=o[g];if(E&&(i(v,e,m),null!=v.duration&&(t=v.duration,delete v.duration)),S){S=v.startAt={};for(g in o.startAt)S[g]=o.startAt[g];i(v.startAt,e,m)}v.delay=y+(v.delay||0),m===d&&l&&(v.onComplete=w),b[m]=new s(e[m],t,v),y+=u}return b},s.staggerFrom=s.allFrom=function(e,t,n,r,i,o,u){return n.runBackwards=!0,n.immediateRender=0!=n.immediateRender,s.staggerTo(e,t,n,r,i,o,u)},s.staggerFromTo=s.allFromTo=function(e,t,n,r,i,o,u,a){return r.startAt=n,r.immediateRender=0!=r.immediateRender&&0!=n.immediateRender,s.staggerTo(e,t,r,i,o,u,a)},s.delayedCall=function(e,t,n,r,i){return new s(t,0,{delay:e,onComplete:t,onCompleteParams:n,callbackScope:r,onReverseComplete:t,onReverseCompleteParams:n,immediateRender:!1,useFrames:i,overwrite:0})},s.set=function(e,t){return new s(e,0,t)},s.isTweening=function(e){return n.getTweensOf(e,!0).length>0};var h=function(e,t){for(var r=[],i=0,s=e._first;s;)s instanceof n?r[i++]=s:(t&&(r[i++]=s),r=r.concat(h(s,t)),i=r.length),s=s._next;return r},p=s.getAllTweens=function(t){return h(e._rootTimeline,t).concat(h(e._rootFramesTimeline,t))};s.killAll=function(e,n,r,i){null==n&&(n=!0),null==r&&(r=!0);var s,o,u,a=p(0!=i),f=a.length,l=n&&r&&i;for(u=0;f>u;u++)o=a[u],(l||o instanceof t||(s=o.target===o.vars.onComplete)&&r||n&&!s)&&(e?o.totalTime(o._reversed?0:o.totalDuration()):o._enabled(!1,!1))},s.killChildTweensOf=function(e,t){if(null!=e){var i,o,l,c,h,p=u.tweenLookup;if("string"==typeof e&&(e=n.selector(e)||e),a(e)&&(e=r(e)),f(e))for(c=e.length;--c>-1;)s.killChildTweensOf(e[c],t);else{i=[];for(l in p)for(o=p[l].target.parentNode;o;)o===e&&(i=i.concat(p[l].tweens)),o=o.parentNode;for(h=i.length,c=0;h>c;c++)t&&i[c].totalTime(i[c].totalDuration()),i[c]._enabled(!1,!1)}}};var d=function(e,n,r,i){n=n!==!1,r=r!==!1,i=i!==!1;for(var s,o,u=p(i),a=n&&r&&i,f=u.length;--f>-1;)o=u[f],(a||o instanceof t||(s=o.target===o.vars.onComplete)&&r||n&&!s)&&o.paused(e)};return s.pauseAll=function(e,t,n){d(!0,e,t,n)},s.resumeAll=function(e,t,n){d(!1,e,t,n)},s.globalTimeScale=function(t){var r=e._rootTimeline,i=n.ticker.time;return arguments.length?(t=t||o,r._startTime=i-(i-r._startTime)*r._timeScale/t,r=e._rootFramesTimeline,i=n.ticker.frame,r._startTime=i-(i-r._startTime)*r._timeScale/t,r._timeScale=e._rootTimeline._timeScale=t,t):r._timeScale},l.progress=function(e,t){return arguments.length?this.totalTime(this.duration()*(this._yoyo&&0!==(1&this._cycle)?1-e:e)+this._cycle*(this._duration+this._repeatDelay),t):this._time/this.duration()},l.totalProgress=function(e,t){return arguments.length?this.totalTime(this.totalDuration()*e,t):this._totalTime/this.totalDuration()},l.time=function(e,t){return arguments.length?(this._dirty&&this.totalDuration(),e>this._duration&&(e=this._duration),this._yoyo&&0!==(1&this._cycle)?e=this._duration-e+this._cycle*(this._duration+this._repeatDelay):0!==this._repeat&&(e+=this._cycle*(this._duration+this._repeatDelay)),this.totalTime(e,t)):this._time},l.duration=function(t){return arguments.length?e.prototype.duration.call(this,t):this._duration},l.totalDuration=function(e){return arguments.length?-1===this._repeat?this:this.duration((e-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)},l.repeat=function(e){return arguments.length?(this._repeat=e,this._uncache(!0)):this._repeat},l.repeatDelay=function(e){return arguments.length?(this._repeatDelay=e,this._uncache(!0)):this._repeatDelay},l.yoyo=function(e){return arguments.length?(this._yoyo=e,this):this._yoyo},s},!0),_gsScope._gsDefine("TimelineLite",["core.Animation","core.SimpleTimeline","TweenLite"],function(e,t,n){var r=function(e){t.call(this,e),this._labels={},this.autoRemoveChildren=this.vars.autoRemoveChildren===!0,this.smoothChildTiming=this.vars.smoothChildTiming===!0,this._sortChildren=!0,this._onUpdate=this.vars.onUpdate;var n,r,i=this.vars;for(r in i)n=i[r],a(n)&&-1!==n.join("").indexOf("{self}")&&(i[r]=this._swapSelfInParams(n));a(i.tweens)&&this.add(i.tweens,0,i.align,i.stagger)},i=1e-10,s=n._internals,o=r._internals={},u=s.isSelector,a=s.isArray,f=s.lazyTweens,l=s.lazyRender,c=_gsScope._gsDefine.globals,h=function(e){var t,n={};for(t in e)n[t]=e[t];return n},p=function(e,t,n){var r,i,s=e.cycle;for(r in s)i=s[r],e[r]="function"==typeof i?i(n,t[n]):i[n%i.length];delete e.cycle},d=o.pauseCallback=function(){},v=function(e){var t,n=[],r=e.length;for(t=0;t!==r;n.push(e[t++]));return n},m=r.prototype=new t;return r.version="1.19.1",m.constructor=r,m.kill()._gc=m._forcingPlayhead=m._hasPause=!1,m.to=function(e,t,r,i){var s=r.repeat&&c.TweenMax||n;return t?this.add(new s(e,t,r),i):this.set(e,r,i)},m.from=function(e,t,r,i){return this.add((r.repeat&&c.TweenMax||n).from(e,t,r),i)},m.fromTo=function(e,t,r,i,s){var o=i.repeat&&c.TweenMax||n;return t?this.add(o.fromTo(e,t,r,i),s):this.set(e,i,s)},m.staggerTo=function(e,t,i,s,o,a,f,l){var c,d,m=new r({onComplete:a,onCompleteParams:f,callbackScope:l,smoothChildTiming:this.smoothChildTiming}),g=i.cycle;for("string"==typeof e&&(e=n.selector(e)||e),e=e||[],u(e)&&(e=v(e)),s=s||0,0>s&&(e=v(e),e.reverse(),s*=-1),d=0;d<e.length;d++)c=h(i),c.startAt&&(c.startAt=h(c.startAt),c.startAt.cycle&&p(c.startAt,e,d)),g&&(p(c,e,d),null!=c.duration&&(t=c.duration,delete c.duration)),m.to(e[d],t,c,d*s);return this.add(m,o)},m.staggerFrom=function(e,t,n,r,i,s,o,u){return n.immediateRender=0!=n.immediateRender,n.runBackwards=!0,this.staggerTo(e,t,n,r,i,s,o,u)},m.staggerFromTo=function(e,t,n,r,i,s,o,u,a){return r.startAt=n,r.immediateRender=0!=r.immediateRender&&0!=n.immediateRender,this.staggerTo(e,t,r,i,s,o,u,a)},m.call=function(e,t,r,i){return this.add(n.delayedCall(0,e,t,r),i)},m.set=function(e,t,r){return r=this._parseTimeOrLabel(r,0,!0),null==t.immediateRender&&(t.immediateRender=r===this._time&&!this._paused),this.add(new n(e,0,t),r)},r.exportRoot=function(e,t){e=e||{},null==e.smoothChildTiming&&(e.smoothChildTiming=!0);var i,s,o=new r(e),u=o._timeline;for(null==t&&(t=!0),u._remove(o,!0),o._startTime=0,o._rawPrevTime=o._time=o._totalTime=u._time,i=u._first;i;)s=i._next,t&&i instanceof n&&i.target===i.vars.onComplete||o.add(i,i._startTime-i._delay),i=s;return u.add(o,0),o},m.add=function(i,s,o,u){var f,l,c,h,p,d;if("number"!=typeof s&&(s=this._parseTimeOrLabel(s,0,!0,i)),!(i instanceof e)){if(i instanceof Array||i&&i.push&&a(i)){for(o=o||"normal",u=u||0,f=s,l=i.length,c=0;l>c;c++)a(h=i[c])&&(h=new r({tweens:h})),this.add(h,f),"string"!=typeof h&&"function"!=typeof h&&("sequence"===o?f=h._startTime+h.totalDuration()/h._timeScale:"start"===o&&(h._startTime-=h.delay())),f+=u;return this._uncache(!0)}if("string"==typeof i)return this.addLabel(i,s);if("function"!=typeof i)throw"Cannot add "+i+" into the timeline; it is not a tween, timeline, function, or string.";i=n.delayedCall(0,i)}if(t.prototype.add.call(this,i,s),(this._gc||this._time===this._duration)&&!this._paused&&this._duration<this.duration())for(p=this,d=p.rawTime()>i._startTime;p._timeline;)d&&p._timeline.smoothChildTiming?p.totalTime(p._totalTime,!0):p._gc&&p._enabled(!0,!1),p=p._timeline;return this},m.remove=function(t){if(t instanceof e){this._remove(t,!1);var n=t._timeline=t.vars.useFrames?e._rootFramesTimeline:e._rootTimeline;return t._startTime=(t._paused?t._pauseTime:n._time)-(t._reversed?t.totalDuration()-t._totalTime:t._totalTime)/t._timeScale,this}if(t instanceof Array||t&&t.push&&a(t)){for(var r=t.length;--r>-1;)this.remove(t[r]);return this}return"string"==typeof t?this.removeLabel(t):this.kill(null,t)},m._remove=function(e,n){t.prototype._remove.call(this,e,n);var r=this._last;return r?this._time>this.duration()&&(this._time=this._duration,this._totalTime=this._totalDuration):this._time=this._totalTime=this._duration=this._totalDuration=0,this},m.append=function(e,t){return this.add(e,this._parseTimeOrLabel(null,t,!0,e))},m.insert=m.insertMultiple=function(e,t,n,r){return this.add(e,t||0,n,r)},m.appendMultiple=function(e,t,n,r){return this.add(e,this._parseTimeOrLabel(null,t,!0,e),n,r)},m.addLabel=function(e,t){return this._labels[e]=this._parseTimeOrLabel(t),this},m.addPause=function(e,t,r,i){var s=n.delayedCall(0,d,r,i||this);return s.vars.onComplete=s.vars.onReverseComplete=t,s.data="isPause",this._hasPause=!0,this.add(s,e)},m.removeLabel=function(e){return delete this._labels[e],this},m.getLabelTime=function(e){return null!=this._labels[e]?this._labels[e]:-1},m._parseTimeOrLabel=function(t,n,r,i){var s;if(i instanceof e&&i.timeline===this)this.remove(i);
vendor: 4,211 bytes, line 1
1else if(i&&(i instanceof Array||i.push&&a(i)))for(s=i.length;--s>-1;)i[s]instanceof e&&i[s].timeline===this&&this.remove(i[s]);if("string"==typeof n)return this._parseTimeOrLabel(n,r&&"number"==typeof t&&null==this._labels[n]?t-this.duration():0,r);if(n=n||0,"string"!=typeof t||!isNaN(t)&&null==this._labels[t])null==t&&(t=this.duration());else{if(s=t.indexOf("="),-1===s)return null==this._labels[t]?r?this._labels[t]=this.duration()+n:n:this._labels[t]+n;n=parseInt(t.charAt(s-1)+"1",10)*Number(t.substr(s+1)),t=s>1?this._parseTimeOrLabel(t.substr(0,s-1),0,r):this.duration()}return Number(t)+n},m.seek=function(e,t){return this.totalTime("number"==typeof e?e:this._parseTimeOrLabel(e),t!==!1)},m.stop=function(){return this.paused(!0)},m.gotoAndPlay=function(e,t){return this.play(e,t)},m.gotoAndStop=function(e,t){return this.pause(e,t)},m.render=function(e,t,n){this._gc&&this._enabled(!0,!1);var r,s,o,u,a,c,h,p=this._dirty?this.totalDuration():this._totalDuration,d=this._time,v=this._startTime,m=this._timeScale,g=this._paused;if(e>=p-1e-7&&e>=0)this._totalTime=this._time=p,this._reversed||this._hasPausedChild()||(s=!0,u="onComplete",a=!!this._timeline.autoRemoveChildren,0===this._duration&&(0>=e&&e>=-1e-7||this._rawPrevTime<0||this._rawPrevTime===i)&&this._rawPrevTime!==e&&this._first&&(a=!0,this._rawPrevTime>i&&(u="onReverseComplete"))),this._rawPrevTime=this._duration||!t||e||this._rawPrevTime===e?e:i,e=p+1e-4;else if(1e-7>e)if(this._totalTime=this._time=0,(0!==d||0===this._duration&&this._rawPrevTime!==i&&(this._rawPrevTime>0||0>e&&this._rawPrevTime>=0))&&(u="onReverseComplete",s=this._reversed),0>e)this._active=!1,this._timeline.autoRemoveChildren&&this._reversed?(a=s=!0,u="onReverseComplete"):this._rawPrevTime>=0&&this._first&&(a=!0),this._rawPrevTime=e;else{if(this._rawPrevTime=this._duration||!t||e||this._rawPrevTime===e?e:i,0===e&&s)for(r=this._first;r&&0===r._startTime;)r._duration||(s=!1),r=r._next;e=0,this._initted||(a=!0)}else{if(this._hasPause&&!this._forcingPlayhead&&!t){if(e>=d)for(r=this._first;r&&r._startTime<=e&&!c;)r._duration||"isPause"!==r.data||r.ratio||0===r._startTime&&0===this._rawPrevTime||(c=r),r=r._next;else for(r=this._last;r&&r._startTime>=e&&!c;)r._duration||"isPause"===r.data&&r._rawPrevTime>0&&(c=r),r=r._prev;c&&(this._time=e=c._startTime,this._totalTime=e+this._cycle*(this._totalDuration+this._repeatDelay))}this._totalTime=this._time=this._rawPrevTime=e}if(this._time!==d&&this._first||n||a||c){if(this._initted||(this._initted=!0),this._active||!this._paused&&this._time!==d&&e>0&&(this._active=!0),0===d&&this.vars.onStart&&(0===this._time&&this._duration||t||this._callback("onStart")),h=this._time,h>=d)for(r=this._first;r&&(o=r._next,h===this._time&&(!this._paused||g));)(r._active||r._startTime<=h&&!r._paused&&!r._gc)&&(c===r&&this.pause(),r._reversed?r.render((r._dirty?r.totalDuration():r._totalDuration)-(e-r._startTime)*r._timeScale,t,n):r.render((e-r._startTime)*r._timeScale,t,n)),r=o;else for(r=this._last;r&&(o=r._prev,h===this._time&&(!this._paused||g));){if(r._active||r._startTime<=d&&!r._paused&&!r._gc){if(c===r){for(c=r._prev;c&&c.endTime()>this._time;)c.render(c._reversed?c.totalDuration()-(e-c._startTime)*c._timeScale:(e-c._startTime)*c._timeScale,t,n),c=c._prev;c=null,this.pause()}r._reversed?r.render((r._dirty?r.totalDuration():r._totalDuration)-(e-r._startTime)*r._timeScale,t,n):r.render((e-r._startTime)*r._timeScale,t,n)}r=o}this._onUpdate&&(t||(f.length&&l(),this._callback("onUpdate"))),u&&(this._gc||(v===this._startTime||m!==this._timeScale)&&(0===this._time||p>=this.totalDuration())&&(s&&(f.length&&l(),this._timeline.autoRemoveChildren&&this._enabled(!1,!1),this._active=!1),!t&&this.vars[u]&&this._callback(u)))}},m._hasPausedChild=function(){for(var e=this._first;e;){if(e._paused||e instanceof r&&e._hasPausedChild())return!0;e=e._next}return!1},m.getChildren=function(e,t,r,i){i=i||-9999999999;for(var s=[],o=this._first,u=0;o;)o._startTime<i||(o instanceof n?t!==!1&&(s[u++]=o):(r!==!1&&(s[u++]=o),e!==!1&&(s=s.concat(o.getChildren(!0,t,r)),u=s.length))),o=o._next;return s},m.getTweensOf=function(e,t){var r,i,s=this._gc,o=[],u=0;for(s&&this._enabled(!0,!0),r=n.getTweensOf(e),i=r.length;--i>-1;
vendor: 3,513 bytes, line 1
1)(r[i].timeline===this||t&&this._contains(r[i]))&&(o[u++]=r[i]);return s&&this._enabled(!1,!0),o},m.recent=function(){return this._recent},m._contains=function(e){for(var t=e.timeline;t;){if(t===this)return!0;t=t.timeline}return!1},m.shiftChildren=function(e,t,n){n=n||0;for(var r,i=this._first,s=this._labels;i;)i._startTime>=n&&(i._startTime+=e),i=i._next;if(t)for(r in s)s[r]>=n&&(s[r]+=e);return this._uncache(!0)},m._kill=function(e,t){if(!e&&!t)return this._enabled(!1,!1);for(var n=t?this.getTweensOf(t):this.getChildren(!0,!0,!1),r=n.length,i=!1;--r>-1;)n[r]._kill(e,t)&&(i=!0);return i},m.clear=function(e){var t=this.getChildren(!1,!0,!0),n=t.length;for(this._time=this._totalTime=0;--n>-1;)t[n]._enabled(!1,!1);return e!==!1&&(this._labels={}),this._uncache(!0)},m.invalidate=function(){for(var t=this._first;t;)t.invalidate(),t=t._next;return e.prototype.invalidate.call(this)},m._enabled=function(e,n){if(e===this._gc)for(var r=this._first;r;)r._enabled(e,!0),r=r._next;return t.prototype._enabled.call(this,e,n)},m.totalTime=function(t,n,r){this._forcingPlayhead=!0;var i=e.prototype.totalTime.apply(this,arguments);return this._forcingPlayhead=!1,i},m.duration=function(e){return arguments.length?(0!==this.duration()&&0!==e&&this.timeScale(this._duration/e),this):(this._dirty&&this.totalDuration(),this._duration)},m.totalDuration=function(e){if(!arguments.length){if(this._dirty){for(var t,n,r=0,i=this._last,s=999999999999;i;)t=i._prev,i._dirty&&i.totalDuration(),i._startTime>s&&this._sortChildren&&!i._paused?this.add(i,i._startTime-i._delay):s=i._startTime,i._startTime<0&&!i._paused&&(r-=i._startTime,this._timeline.smoothChildTiming&&(this._startTime+=i._startTime/this._timeScale),this.shiftChildren(-i._startTime,!1,-9999999999),s=0),n=i._startTime+i._totalDuration/i._timeScale,n>r&&(r=n),i=t;this._duration=this._totalDuration=r,this._dirty=!1}return this._totalDuration}return e&&this.totalDuration()?this.timeScale(this._totalDuration/e):this},m.paused=function(t){if(!t)for(var n=this._first,r=this._time;n;)n._startTime===r&&"isPause"===n.data&&(n._rawPrevTime=0),n=n._next;return e.prototype.paused.apply(this,arguments)},m.usesFrames=function(){for(var t=this._timeline;t._timeline;)t=t._timeline;return t===e._rootFramesTimeline},m.rawTime=function(e){return e&&(this._paused||this._repeat&&this.time()>0&&this.totalProgress()<1)?this._totalTime%(this._duration+this._repeatDelay):this._paused?this._totalTime:(this._timeline.rawTime(e)-this._startTime)*this._timeScale},r},!0),_gsScope._gsDefine("TimelineMax",["TimelineLite","TweenLite","easing.Ease"],function(e,t,n){var r=function(t){e.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},i=1e-10,s=t._internals,o=s.lazyTweens,u=s.lazyRender,a=_gsScope._gsDefine.globals,f=new n(null,null,1,0),l=r.prototype=new e;return l.constructor=r,l.kill()._gc=!1,r.version="1.19.1",l.invalidate=function(){return this._yoyo=this.vars.yoyo===!0,this._repeat=this.vars.repeat||0,this._repeatDelay=this.vars.repeatDelay||0,this._uncache(!0),e.prototype.invalidate.call(this)},l.addCallback=function(e,n,r,i){return this.add(t.delayedCall(0,e,r,i),n)},l.removeCallback=function(e,t){if(e)if(null==t)this._kill(null,e);else for(var n=this.getTweensOf(e,!1),r=n.length,i=this._parseTimeOrLabel(t);--r>-1;)n[r]._startTime===i&&n[r]._enabled(!1,!1);return this},l.removePause=function(t){return this.removeCallback(e._internals.pauseCallback,t)}
vendor: 5,530 bytes, line 1
1,l.tweenTo=function(e,n){n=n||{};var r,i,s,o={ease:f,useFrames:this.usesFrames(),immediateRender:!1},u=n.repeat&&a.TweenMax||t;for(i in n)o[i]=n[i];return o.time=this._parseTimeOrLabel(e),r=Math.abs(Number(o.time)-this._time)/this._timeScale||.001,s=new u(this,r,o),o.onStart=function(){s.target.paused(!0),s.vars.time!==s.target.time()&&r===s.duration()&&s.duration(Math.abs(s.vars.time-s.target.time())/s.target._timeScale),n.onStart&&n.onStart.apply(n.onStartScope||n.callbackScope||s,n.onStartParams||[])},s},l.tweenFromTo=function(e,t,n){n=n||{},e=this._parseTimeOrLabel(e),n.startAt={onComplete:this.seek,onCompleteParams:[e],callbackScope:this},n.immediateRender=n.immediateRender!==!1;var r=this.tweenTo(t,n);return r.duration(Math.abs(r.vars.time-e)/this._timeScale||.001)},l.render=function(e,t,n){this._gc&&this._enabled(!0,!1);var r,s,a,f,l,c,p,d,v=this._dirty?this.totalDuration():this._totalDuration,m=this._duration,y=this._time,b=this._totalTime,w=this._startTime,E=this._timeScale,S=this._rawPrevTime,x=this._paused,T=this._cycle;if(e>=v-1e-7&&e>=0)this._locked||(this._totalTime=v,this._cycle=this._repeat),this._reversed||this._hasPausedChild()||(s=!0,f="onComplete",l=!!this._timeline.autoRemoveChildren,0===this._duration&&(0>=e&&e>=-1e-7||0>S||S===i)&&S!==e&&this._first&&(l=!0,S>i&&(f="onReverseComplete"))),this._rawPrevTime=this._duration||!t||e||this._rawPrevTime===e?e:i,this._yoyo&&0!==(1&this._cycle)?this._time=e=0:(this._time=m,e=m+1e-4);else if(1e-7>e)if(this._locked||(this._totalTime=this._cycle=0),this._time=0,(0!==y||0===m&&S!==i&&(S>0||0>e&&S>=0)&&!this._locked)&&(f="onReverseComplete",s=this._reversed),0>e)this._active=!1,this._timeline.autoRemoveChildren&&this._reversed?(l=s=!0,f="onReverseComplete"):S>=0&&this._first&&(l=!0),this._rawPrevTime=e;else{if(this._rawPrevTime=m||!t||e||this._rawPrevTime===e?e:i,0===e&&s)for(r=this._first;r&&0===r._startTime;)r._duration||(s=!1),r=r._next;e=0,this._initted||(l=!0)}else if(0===m&&0>S&&(l=!0),this._time=this._rawPrevTime=e,this._locked||(this._totalTime=e,0!==this._repeat&&(c=m+this._repeatDelay,this._cycle=this._totalTime/c>>0,0!==this._cycle&&this._cycle===this._totalTime/c&&e>=b&&this._cycle--,this._time=this._totalTime-this._cycle*c,this._yoyo&&0!==(1&this._cycle)&&(this._time=m-this._time),this._time>m?(this._time=m,e=m+1e-4):this._time<0?this._time=e=0:e=this._time)),this._hasPause&&!this._forcingPlayhead&&!t&&m>e){if(e=this._time,e>=y||this._repeat&&T!==this._cycle)for(r=this._first;r&&r._startTime<=e&&!p;)r._duration||"isPause"!==r.data||r.ratio||0===r._startTime&&0===this._rawPrevTime||(p=r),r=r._next;else for(r=this._last;r&&r._startTime>=e&&!p;)r._duration||"isPause"===r.data&&r._rawPrevTime>0&&(p=r),r=r._prev;p&&(this._time=e=p._startTime,this._totalTime=e+this._cycle*(this._totalDuration+this._repeatDelay))}if(this._cycle!==T&&!this._locked){var N=this._yoyo&&0!==(1&T),C=N===(this._yoyo&&0!==(1&this._cycle)),k=this._totalTime,L=this._cycle,A=this._rawPrevTime,O=this._time;if(this._totalTime=T*m,this._cycle<T?N=!N:this._totalTime+=m,this._time=y,this._rawPrevTime=0===m?S-1e-4:S,this._cycle=T,this._locked=!0,y=N?0:m,this.render(y,t,0===m),t||this._gc||this.vars.onRepeat&&(this._cycle=L,this._locked=!1,this._callback("onRepeat")),y!==this._time)return;if(C&&(this._cycle=T,this._locked=!0,y=N?m+1e-4:-0.0001,this.render(y,!0,!1)),this._locked=!1,this._paused&&!x)return;this._time=O,this._totalTime=k,this._cycle=L,this._rawPrevTime=A}if(!(this._time!==y&&this._first||n||l||p))return void (b!==this._totalTime&&this._onUpdate&&(t||this._callback("onUpdate")));if(this._initted||(this._initted=!0),this._active||!this._paused&&this._totalTime!==b&&e>0&&(this._active=!0),0===b&&this.vars.onStart&&(0===this._totalTime&&this._totalDuration||t||this._callback("onStart")),d=this._time,d>=y)for(r=this._first;r&&(a=r._next,d===this._time&&(!this._paused||x));)(r._active||r._startTime<=this._time&&!r._paused&&!r._gc)&&(p===r&&this.pause(),r._reversed?r.render((r._dirty?r.totalDuration():r._totalDuration)-(e-r._startTime)*r._timeScale,t,n):r.render((e-r._startTime)*r._timeScale,t,n)),r=a;else for(r=this._last;r&&(a=r._prev,d===this._time&&(!this._paused||x));){if(r._active||r._startTime<=y&&!r._paused&&!r._gc){if(p===r){for(p=r._prev;p&&p.endTime()>this._time;)p.render(p._reversed?p.totalDuration()-(e-p._startTime)*p._timeScale:(e-p._startTime)*p._timeScale,t,n),p=p._prev;p=null,this.pause()}r._reversed?r.render((r._dirty?r.totalDuration():r._totalDuration)-(e-r._startTime)*r._timeScale,t,n):r.render((e-r._startTime)*r._timeScale,t,n)}r=a}this._onUpdate&&(t||(o.length&&u(),this._callback("onUpdate"))),f&&(this._locked||this._gc||(w===this._startTime||E!==this._timeScale)&&(0===this._time||v>=this.totalDuration())&&(s&&(o.length&&u(),this._timeline.autoRemoveChildren&&this._enabled(!1,!1),this._active=!1),!t&&this.vars[f]&&this._callback(f)))},l.getActive=function(e,t,n){null==e&&(e=!0),null==t&&(t=!0),null==n&&(n=!1);var r,i,s=[],o=this.getChildren(e,t,n),u=0,a=o.length;for(r=0;a>r;r++)i=o[r],i.isActive()&&(s[u++]=i);return s},l.getLabelAfter=function(e){e||0!==e&&(e=this._time);var t,n=this.getLabelsArray(),r=n.length;for(t=0;r>t;t++)if(n[t].time>e)return n[t].name;return null},l.getLabelBefore=function(e){null==e&&(e=this._time);for(var t=this.getLabelsArray(),n=t.length;--n>-1;)if(t[n].time<e)return t[n].name;return null},l.getLabelsArray=function(){var e,t=[],n=0;for(e in this._labels)t[n++]={time:this._labels[e],name:e};return t.sort(function(e,t){return e.time-t.time}),t}
vendor: 28,777 bytes, line 1
1,l.invalidate=function(){return this._locked=!1,e.prototype.invalidate.call(this)},l.progress=function(e,t){return arguments.length?this.totalTime(this.duration()*(this._yoyo&&0!==(1&this._cycle)?1-e:e)+this._cycle*(this._duration+this._repeatDelay),t):this._time/this.duration()},l.totalProgress=function(e,t){return arguments.length?this.totalTime(this.totalDuration()*e,t):this._totalTime/this.totalDuration()},l.totalDuration=function(t){return arguments.length?-1!==this._repeat&&t?this.timeScale(this.totalDuration()/t):this:(this._dirty&&(e.prototype.totalDuration.call(this),this._totalDuration=-1===this._repeat?999999999999:this._duration*(this._repeat+1)+this._repeatDelay*this._repeat),this._totalDuration)},l.time=function(e,t){return arguments.length?(this._dirty&&this.totalDuration(),e>this._duration&&(e=this._duration),this._yoyo&&0!==(1&this._cycle)?e=this._duration-e+this._cycle*(this._duration+this._repeatDelay):0!==this._repeat&&(e+=this._cycle*(this._duration+this._repeatDelay)),this.totalTime(e,t)):this._time},l.repeat=function(e){return arguments.length?(this._repeat=e,this._uncache(!0)):this._repeat},l.repeatDelay=function(e){return arguments.length?(this._repeatDelay=e,this._uncache(!0)):this._repeatDelay},l.yoyo=function(e){return arguments.length?(this._yoyo=e,this):this._yoyo},l.currentLabel=function(e){return arguments.length?this.seek(e,!0):this.getLabelBefore(this._time+1e-8)},r},!0),function(){var e=180/Math.PI,t=[],n=[],r=[],i={},s=_gsScope._gsDefine.globals,o=function(e,t,n,r){n===r&&(n=r-(r-t)/1e6),e===t&&(t=e+(n-e)/1e6),this.a=e,this.b=t,this.c=n,this.d=r,this.da=r-e,this.ca=n-e,this.ba=t-e},u=",x,y,z,left,top,right,bottom,marginTop,marginLeft,marginRight,marginBottom,paddingLeft,paddingTop,paddingRight,paddingBottom,backgroundPosition,backgroundPosition_y,",a=function(e,t,n,r){var i={a:e},s={},o={},u={c:r},a=(e+t)/2,f=(t+n)/2,l=(n+r)/2,c=(a+f)/2,h=(f+l)/2,p=(h-c)/8;return i.b=a+(e-a)/4,s.b=c+p,i.c=s.a=(i.b+s.b)/2,s.c=o.a=(c+h)/2,o.b=h-p,u.b=l+(r-l)/4,o.c=u.a=(o.b+u.b)/2,[i,s,o,u]},f=function(e,i,s,o,u){var f,l,c,h,p,d,v,m,g,y,w,E,S,x=e.length-1,T=0,N=e[0].a;for(f=0;x>f;f++)p=e[T],l=p.a,c=p.d,h=e[T+1].d,u?(w=t[f],E=n[f],S=(E+w)*i*.25/(o?.5:r[f]||.5),d=c-(c-l)*(o?.5*i:0!==w?S/w:0),v=c+(h-c)*(o?.5*i:0!==E?S/E:0),m=c-(d+((v-d)*(3*w/(w+E)+.5)/4||0))):(d=c-(c-l)*i*.5,v=c+(h-c)*i*.5,m=c-(d+v)/2),d+=m,v+=m,p.c=g=d,0!==f?p.b=N:p.b=N=p.a+.6*(p.c-p.a),p.da=c-l,p.ca=g-l,p.ba=N-l,s?(y=a(l,N,g,c),e.splice(T,1,y[0],y[1],y[2],y[3]),T+=4):T++,N=v;p=e[T],p.b=N,p.c=N+.4*(p.d-N),p.da=p.d-p.a,p.ca=p.c-p.a,p.ba=N-p.a,s&&(y=a(p.a,N,p.c,p.d),e.splice(T,1,y[0],y[1],y[2],y[3]))},l=function(e,r,i,s){var u,a,f,l,c,h,p=[];if(s)for(e=[s].concat(e),a=e.length;--a>-1;)"string"==typeof (h=e[a][r])&&"="===h.charAt(1)&&(e[a][r]=s[r]+Number(h.charAt(0)+h.substr(2)));if(u=e.length-2,0>u)return p[0]=new o(e[0][r],0,0,e[-1>u?0:1][r]),p;for(a=0;u>a;a++)f=e[a][r],l=e[a+1][r],p[a]=new o(f,0,0,l),i&&(c=e[a+2][r],t[a]=(t[a]||0)+(l-f)*(l-f),n[a]=(n[a]||0)+(c-l)*(c-l));return p[a]=new o(e[a][r],0,0,e[a+1][r]),p},c=function(e,s,o,a,c,h){var p,d,v,m,g,y,w,E,S={},x=[],T=h||e[0];c="string"==typeof c?","+c+",":u,null==s&&(s=1);for(d in e[0])x.push(d);if(e.length>1){for(E=e[e.length-1],w=!0,p=x.length;--p>-1;)if(d=x[p],Math.abs(T[d]-E[d])>.05){w=!1;break}w&&(e=e.concat(),h&&e.unshift(h),e.push(e[1]),h=e[e.length-3])}for(t.length=n.length=r.length=0,p=x.length;--p>-1;)d=x[p],i[d]=-1!==c.indexOf(","+d+","),S[d]=l(e,d,i[d],h);for(p=t.length;--p>-1;)t[p]=Math.sqrt(t[p]),n[p]=Math.sqrt(n[p]);if(!a){for(p=x.length;--p>-1;)if(i[d])for(v=S[x[p]],y=v.length-1,m=0;y>m;m++)g=v[m+1].da/n[m]+v[m].da/t[m]||0,r[m]=(r[m]||0)+g*g;for(p=r.length;--p>-1;)r[p]=Math.sqrt(r[p])}for(p=x.length,m=o?4:1;--p>-1;)d=x[p],v=S[d],f(v,s,o,a,i[d]),w&&(v.splice(0,m),v.splice(v.length-m,m));return S},h=function(e,t,n){t=t||"soft";var r,i,s,u,a,f,l,c,h,p,d,v={},m="cubic"===t?3:2,y="soft"===t,b=[];if(y&&n&&(e=[n].concat(e)),null==e||e.length<m+1)throw"invalid Bezier data";for(h in e[0])b.push(h);for(f=b.length;--f>-1;){for(h=b[f],v[h]=a=[],p=0,c=e.length,l=0;c>l;l++)r=null==n?e[l][h]:"string"==typeof (d=e[l][h])&&"="===d.charAt(1)?n[h]+Number(d.charAt(0)+d.substr(2)):Number(d),y&&l>1&&c-1>l&&(a[p++]=(r+a[p-2])/2),a[p++]=r;for(c=p-m+1,p=0,l=0;c>l;l+=m)r=a[l],i=a[l+1],s=a[l+2],u=2===m?0:a[l+3],a[p++]=d=3===m?new o(r,i,s,u):new o(r,(2*i+r)/3,(2*i+s)/3,s);a.length=p}return v},p=function(e,t,n){for(var r,i,s,o,u,a,f,l,c,h,p,d=1/n,v=e.length;--v>-1;)for(h=e[v],s=h.a,o=h.d-s,u=h.c-s,a=h.b-s,r=i=0,l=1;n>=l;l++)f=d*l,c=1-f,r=i-(i=(f*f*o+3*c*(f*u+c*a))*f),p=v*n+l-1,t[p]=(t[p]||0)+r*r},d=function(e,t){t=t>>0||6;var n,r,i,s,o=[],u=[],a=0,f=0,l=t-1,c=[],h=[];for(n in e)p(e[n],o,t);for(i=o.length,r=0;i>r;r++)a+=Math.sqrt(o[r]),s=r%t,h[s]=a,s===l&&(f+=a,s=r/t>>0,c[s]=h,u[s]=f,a=0,h=[]);return{length:f,lengths:u,segments:c}},v=_gsScope._gsDefine.plugin({propName:"bezier",priority:-1,version:"1.3.7",API:2,global:!0,init:function(e,t,n){this._target=e,t instanceof Array&&(t={values:t}),this._func={},this._mod={},this._props=[],this._timeRes=null==t.timeResolution?6:parseInt(t.timeResolution,10);var r,i,s,o,u,a=t.values||[],f={},l=a[0],p=t.autoRotate||n.vars.orientToBezier;this._autoRotate=p?p instanceof Array?p:[["x","y","rotation",p===!0?0:Number(p)||0]]:null;for(r in l)this._props.push(r);for(s=this._props.length;--s>-1;)r=this._props[s],this._overwriteProps.push(r),i=this._func[r]="function"==typeof e[r],f[r]=i?e[r.indexOf("set")||"function"!=typeof e["get"+r.substr(3)]?r:"get"+r.substr(3)]():parseFloat(e[r]),u||f[r]!==a[0][r]&&(u=f);if(this._beziers="cubic"!==t.type&&"quadratic"!==t.type&&"soft"!==t.type?c(a,isNaN(t.curviness)?1:t.curviness,!1,"thruBasic"===t.type,t.correlate,u):h(a,t.type,f),this._segCount=this._beziers[r].length,this._timeRes){var v=d(this._beziers,this._timeRes);this._length=v.length,this._lengths=v.lengths,this._segments=v.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}if(p=this._autoRotate)for(this._initialRotations=[],p[0]instanceof Array||(this._autoRotate=p=[p]),s=p.length;--s>-1;){for(o=0;3>o;o++)r=p[s][o],this._func[r]="function"==typeof e[r]?e[r.indexOf("set")||"function"!=typeof e["get"+r.substr(3)]?r:"get"+r.substr(3)]:!1;r=p[s][2],this._initialRotations[s]=(this._func[r]?this._func[r].call(this._target):this._target[r])||0,this._overwriteProps.push(r)}return this._startRatio=n.vars.runBackwards?1:0,!0},set:function(t){var n,r,i,s,o,u,a,f,l,c,h=this._segCount,p=this._func,d=this._target,v=t!==this._startRatio;if(this._timeRes){if(l=this._lengths,c=this._curSeg,t*=this._length,i=this._li,t>this._l2&&h-1>i){for(f=h-1;f>i&&(this._l2=l[++i])<=t;);this._l1=l[i-1],this._li=i,this._curSeg=c=this._segments[i],this._s2=c[this._s1=this._si=0]}else if(t<this._l1&&i>0){for(;i>0&&(this._l1=l[--i])>=t;);0===i&&t<this._l1?this._l1=0:i++,this._l2=l[i],this._li=i,this._curSeg=c=this._segments[i],this._s1=c[(this._si=c.length-1)-1]||0,this._s2=c[this._si]}if(n=i,t-=this._l1,i=this._si,t>this._s2&&i<c.length-1){for(f=c.length-1;f>i&&(this._s2=c[++i])<=t;);this._s1=c[i-1],this._si=i}else if(t<this._s1&&i>0){for(;i>0&&(this._s1=c[--i])>=t;);0===i&&t<this._s1?this._s1=0:i++,this._s2=c[i],this._si=i}u=(i+(t-this._s1)/(this._s2-this._s1))*this._prec||0}else n=0>t?0:t>=1?h-1:h*t>>0,u=(t-n*(1/h))*h;for(r=1-u,i=this._props.length;--i>-1;)s=this._props[i],o=this._beziers[s][n],a=(u*u*o.da+3*r*(u*o.ca+r*o.ba))*u+o.a,this._mod[s]&&(a=this._mod[s](a,d)),p[s]?d[s](a):d[s]=a;if(this._autoRotate){var m,g,y,b,w,E,S,x=this._autoRotate;for(i=x.length;--i>-1;)s=x[i][2],E=x[i][3]||0,S=x[i][4]===!0?1:e,o=this._beziers[x[i][0]],m=this._beziers[x[i][1]],o&&m&&(o=o[n],m=m[n],g=o.a+(o.b-o.a)*u,b=o.b+(o.c-o.b)*u,g+=(b-g)*u,b+=(o.c+(o.d-o.c)*u-b)*u,y=m.a+(m.b-m.a)*u,w=m.b+(m.c-m.b)*u,y+=(w-y)*u,w+=(m.c+(m.d-m.c)*u-w)*u,a=v?Math.atan2(w-y,b-g)*S+E:this._initialRotations[i],this._mod[s]&&(a=this._mod[s](a,d)),p[s]?d[s](a):d[s]=a)}}}),m=v.prototype;v.bezierThrough=c,v.cubicToQuadratic=a,v._autoCSS=!0,v.quadraticToCubic=function(e,t,n){return new o(e,(2*t+e)/3,(2*t+n)/3,n)},v._cssRegister=function(){var e=s.CSSPlugin;if(e){var t=e._internals,n=t._parseToProxy,r=t._setPluginRatio,i=t.CSSPropTween;t._registerComplexSpecialProp("bezier",{parser:function(e,t,s,o,u,a){t instanceof Array&&(t={values:t}),a=new v;var f,l,c,h=t.values,p=h.length-1,d=[],m={};if(0>p)return u;for(f=0;p>=f;f++)c=n(e,h[f],o,u,a,p!==f),d[f]=c.end;for(l in t)m[l]=t[l];return m.values=d,u=new i(e,"bezier",0,0,c.pt,2),u.data=c,u.plugin=a,u.setRatio=r,0===m.autoRotate&&(m.autoRotate=!0),!m.autoRotate||m.autoRotate instanceof Array||(f=m.autoRotate===!0?0:Number(m.autoRotate),m.autoRotate=null!=c.end.left?[["left","top","rotation",f,!1]]:null!=c.end.x?[["x","y","rotation",f,!1]]:!1),m.autoRotate&&(o._transform||o._enableTransforms(!1),c.autoRotate=o._target._gsTransform,c.proxy.rotation=c.autoRotate.rotation||0,o._overwriteProps.push("rotation")),a._onInitTween(c.proxy,m,o._tween),u}})}},m._mod=function(e){for(var t,n=this._overwriteProps,r=n.length;--r>-1;)t=e[n[r]],t&&"function"==typeof t&&(this._mod[n[r]]=t)},m._kill=function(e){var t,n,r=this._props;for(t in this._beziers)if(t in e)for(delete this._beziers[t],delete this._func[t],n=r.length;--n>-1;)r[n]===t&&r.splice(n,1);if(r=this._autoRotate)for(n=r.length;--n>-1;)e[r[n][2]]&&r.splice(n,1);return this._super._kill.call(this,e)}}(),_gsScope._gsDefine("plugins.CSSPlugin",["plugins.TweenPlugin","TweenLite"],function(e,t){var n,r,i,s,o=function(){e.call(this,"css"),this._overwriteProps.length=0,this.setRatio=o.prototype.setRatio},u=_gsScope._gsDefine.globals,a={},f=o.prototype=new e("css");f.constructor=o,o.version="1.19.1",o.API=2,o.defaultTransformPerspective=0,o.defaultSkewType="compensated",o.defaultSmoothOrigin=!0,f="px",o.suffixMap={top:f,right:f,bottom:f,left:f,width:f,height:f,fontSize:f,padding:f,margin:f,perspective:f,lineHeight:""};var l,c,h,p,d,v,m,g,y=/(?:\-|\.|\b)(\d|\.|e\-)+/g,b=/(?:\d|\-\d|\.\d|\-\.\d|\+=\d|\-=\d|\+=.\d|\-=\.\d)+/g,w=/(?:\+=|\-=|\-|\b)[\d\-\.]+[a-zA-Z0-9]*(?:%|\b)/gi,E=/(?![+-]?\d*\.?\d+|[+-]|e[+-]\d+)[^0-9]/g,S=/(?:\d|\-|\+|=|#|\.)*/g,x=/opacity *= *([^)]*)/i,T=/opacity:([^;]*)/i,N=/alpha\(opacity *=.+?\)/i,C=/^(rgb|hsl)/,k=/([A-Z])/g,L=/-([a-z])/gi,A=/(^(?:url\(\"|url\())|(?:(\"\))$|\)$)/gi,O=function(e,t){return t.toUpperCase()},M=/(?:Left|Right|Width)/i,_=/(M11|M12|M21|M22)=[\d\-\.e]+/gi,D=/progid\:DXImageTransform\.Microsoft\.Matrix\(.+?\)/i,P=/,(?=[^\)]*(?:\(|$))/gi,H=/[\s,\(]/i,B=Math.PI/180,j=180/Math.PI,F={},I={style:{}},q=_gsScope.document||{createElement:function(){return I}},R=function(e,t){return q.createElementNS?q.createElementNS(t||"http://www.w3.org/1999/xhtml",e):q.createElement(e)},U=R("div"),z=R("img"),W=o._internals={_specialProps:a},X=(_gsScope.navigator||{}).userAgent||"",V=function(){var e=X.indexOf("Android"),t=R("a");return h=-1!==X.indexOf("Safari")&&-1===X.indexOf("Chrome")&&(-1===e||parseFloat(X.substr(e+8,2))>3),d=h&&parseFloat(X.substr(X.indexOf("Version/")+8,2))<6,p=-1!==X.indexOf("Firefox"),(/MSIE ([0-9]{1,}[\.0-9]{0,})/.exec(X)||/Trident\/.*rv:([0-9]{1,}[\.0-9]{0,})/.exec(X))&&(v=parseFloat(RegExp.$1)),t?(t.style.cssText="top:1px;opacity:.55;",/^0.55/.test(t.style.opacity)):!1}(),$=function(e){return x.test("string"==typeof e?e:(e.currentStyle?e.currentStyle.filter:e.style.filter)||"")?parseFloat(RegExp.$1)/100:1},J=function(e){_gsScope.console&&console.log(e)},K="",Q="",G=function(e,t){t=t||U;var n,r,i=t.style;if(void 0!==i[e])return e;for(e=e.charAt(0).toUpperCase()+e.substr(1),n=["O","Moz","ms","Ms","Webkit"],r=5;--r>-1&&void 0===i[n[r]+e];);return r>=0?(Q=3===r?"ms":n[r],K="-"+Q.toLowerCase()+"-",Q+e):null},Y=q.defaultView?q.defaultView.getComputedStyle:function(){},Z=o.getStyle=function(e,t,n,r,i){var s;return V||"opacity"!==t?(!r&&e.style[t]?s=e.style[t]:(n=n||Y(e))?s=n[t]||n.getPropertyValue(t)||n.getPropertyValue(t.replace(k,"-$1").toLowerCase()):e.currentStyle&&(s=e.currentStyle[t]),null==i||s&&"none"!==s&&"auto"!==s&&"auto auto"!==s?s:i):$(e)},et=W.convertToPixels=function(e,n,r,i,s){if("px"===i||!i)return r;if("auto"===i||!r)return 0;var u,a,f,l=M.test(n),c=e,h=U.style,p=0>r,d=1===r;if(p&&(r=-r),d&&(r*=100),"%"===i&&-1!==n.indexOf("border"))u=r/100*(l?e.clientWidth:e.clientHeight);else{if(h.cssText="border:0 solid red;position:"+Z(e,"position")+";line-height:0;","%"!==i&&c.appendChild&&"v"!==i.charAt(0)&&"rem"!==i)h[l?"borderLeftWidth":"borderTopWidth"]=r+i;else{if(c=e.parentNode||q.body,a=c._gsCache,f=t.ticker.frame,a&&l&&a.time===f)return a.width*r/100;h[l?"width":"height"]=r+i}c.appendChild(U),u=parseFloat(U[l?"offsetWidth":"offsetHeight"]),c.removeChild(U),l&&"%"===i&&o.cacheWidths!==!1&&(a=c._gsCache=c._gsCache||{},a.time=f,a.width=u/r*100),0!==u||s||(u=et(e,n,r,i,!0))}return d&&(u/=100),p?-u:u},tt=W.calculateOffset=function(e,t,n){if("absolute"!==Z(e,"position",n))return 0;var r="left"===t?"Left":"Top",i=Z(e,"margin"+r,n);return e["offset"+r]-(et(e,t,parseFloat(i),i.replace(S,""))||0)},nt=function(e,t){var n,r,i,s={};if(t=t||Y(e,null))if(n=t.length)for(;--n>-1;)i=t[n],(-1===i.indexOf("-transform")||At===i)&&(s[i.replace(L,O)]=t.getPropertyValue(i));else for(n in t)(-1===n.indexOf("Transform")||Lt===n)&&(s[n]=t[n]);else if(t=e.currentStyle||e.style)for(n in t)"string"==typeof n&&void 0===s[n]&&(s[n.replace(L,O)]=t[n]);return V||(s.opacity=$(e)),r=zt(e,t,!1),s.rotation=r.rotation,s.skewX=r.skewX,s.scaleX=r.scaleX,s.scaleY=r.scaleY,s.x=r.x,s.y=r.y,Mt&&(s.z=r.z,s.rotationX=r.rotationX,s.rotationY=r.rotationY,s.scaleZ=r.scaleZ),s.filters&&delete s.filters,s},rt=function(e,t,n,r,i){var s,o,u,a={},f=e.style;for(o in n)"cssText"!==o&&"length"!==o&&isNaN(o)&&(t[o]!==(s=n[o])||i&&i[o])&&-1===o.indexOf("Origin")&&("number"==typeof s||"string"==typeof s)&&(a[o]="auto"!==s||"left"!==o&&"top"!==o?""!==s&&"auto"!==s&&"none"!==s||"string"!=typeof t[o]||""===t[o].replace(E,"")?s:0:tt(e,o),void 0!==f[o]&&(u=new yt(f,o,f[o],u)));if(r)for(o in r)"className"!==o&&(a[o]=r[o]);return{difs:a,firstMPT:u}},it={width:["Left","Right"],height:["Top","Bottom"]},st=["marginLeft","marginRight","marginTop","marginBottom"],ot=function(e,t,n){if("svg"===(e.nodeName+"").toLowerCase())return(n||Y(e))[t]||0;if(e.getCTM&&qt(e))return e.getBBox()[t]||0;var r=parseFloat("width"===t?e.offsetWidth:e.offsetHeight),i=it[t],s=i.length;for(n=n||Y(e,null);--s>-1;)r-=parseFloat(Z(e,"padding"+i[s],n,!0))||0,r-=parseFloat(Z(e,"border"+i[s]+"Width",n,!0))||0;return r},ut=function(e,t){if("contain"===e||"auto"===e||"auto auto"===e)return e+" ";(null==e||""===e)&&(e="0 0");var n,r=e.split(" "),i=-1!==e.indexOf("left")?"0%":-1!==e.indexOf("right")?"100%":r[0],s=-1!==e.indexOf("top")?"0%":-1!==e.indexOf("bottom")?"100%":r[1];if(r.length>3&&!t){for(r=e.split(", ").join(",").split(","),e=[],n=0;n<r.length;n++)e.push(ut(r[n]));return e.join(",")}return null==s?s="center"===i?"50%":"0":"center"===s&&(s="50%"),("center"===i||isNaN(parseFloat(i))&&-1===(i+"").indexOf("="))&&(i="50%"),e=i+" "+s+(r.length>2?" "+r[2]:""),t&&(t.oxp=-1!==i.indexOf("%"),t.oyp=-1!==s.indexOf("%"),t.oxr="="===i.charAt(1),t.oyr="="===s.charAt(1),t.ox=parseFloat(i.replace(E,"")),t.oy=parseFloat(s.replace(E,"")),t.v=e),t||e},at=function(e,t){return"function"==typeof e&&(e=e(g,m)),"string"==typeof e&&"="===e.charAt(1)?parseInt(e.charAt(0)+"1",10)*parseFloat(e.substr(2)):parseFloat(e)-parseFloat(t)||0},ft=function(e,t){return"function"==typeof e&&(e=e(g,m)),null==e?t:"string"==typeof e&&"="===e.charAt(1)?parseInt(e.charAt(0)+"1",10)*parseFloat(e.substr(2))+t:parseFloat(e)||0},lt=function(e,t,n,r){var i,s,o,u,a,f=1e-6;return"function"==typeof e&&(e=e(g,m)),null==e?u=t:"number"==typeof e?u=e:(i=360,s=e.split("_"),a="="===e.charAt(1),o=(a?parseInt(e.charAt(0)+"1",10)*parseFloat(s[0].substr(2)):parseFloat(s[0]))*(-1===e.indexOf("rad")?1:j)-(a?0:t),s.length&&(r&&(r[n]=t+o),-1!==e.indexOf("short")&&(o%=i,o!==o%(i/2)&&(o=0>o?o+i:o-i)),-1!==e.indexOf("_cw")&&0>o?o=(o+9999999999*i)%i-(o/i|0)*i:-1!==e.indexOf("ccw")&&o>0&&(o=(o-9999999999*i)%i-(o/i|0)*i)),u=t+o),f>u&&u>-f&&(u=0),u},ct={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]},ht=function(e,t,n){return e=0>e?e+1:e>1?e-1:e,255*(1>6*e?t+(n-t)*e*6:.5>e?n:2>3*e?t+(n-t)*(2/3-e)*6:t)+.5|0},pt=o.parseColor=function(e,t){var n,r,i,s,o,u,a,f,l,c,h;if(e)if("number"==typeof e)n=[e>>16,e>>8&255,255&e];else{if(","===e.charAt(e.length-1)&&(e=e.substr(0,e.length-1)),ct[e])n=ct[e];else if("#"===e.charAt(0))4===e.length&&(r=e.charAt(1),i=e.charAt(2),s=e.charAt(3),e="#"+r+r+i+i+s+s),e=parseInt(e.substr(1),16),n=[e>>16,e>>8&255,255&e];else if("hsl"===e.substr(0,3))if(n=h=e.match(y),t){if(-1!==e.indexOf("="))return e.match(b)}else o=Number(n[0])%360/360,u=Number(n[1])/100,a=Number(n[2])/100,i=.5>=a?a*(u+1):a+u-a*u,r=2*a-i,n.length>3&&(n[3]=Number(e[3])),n[0]=ht(o+1/3,r,i),n[1]=ht(o,r,i),n[2]=ht(o-1/3,r,i);else n=e.match(y)||ct.transparent;n[0]=Number(n[0]),n[1]=Number(n[1]),n[2]=Number(n[2]),n.length>3&&(n[3]=Number(n[3]))}else n=ct.black;return t&&!h&&(r=n[0]/255,i=n[1]/255,s=n[2]/255,f=Math.max(r,i,s),l=Math.min(r,i,s),a=(f+l)/2,f===l?o=u=0:(c=f-l,u=a>.5?c/(2-f-l):c/(f+l),o=f===r?(i-s)/c+(s>i?6:0):f===i?(s-r)/c+2:(r-i)/c+4,o*=60),n[0]=o+.5|0,n[1]=100*u+.5|0,n[2]=100*a+.5|0),n},dt=function(e,t){var n,r,i,s=e.match(vt)||[],o=0,u=s.length?"":e;for(n=0;n<s.length;n++)r=s[n],i=e.substr(o,e.indexOf(r,o)-o),o+=i.length+r.length,r=pt(r,t),3===r.length&&r.push(1),u+=i+(t?"hsla("+r[0]+","+r[1]+"%,"+r[2]+"%,"+r[3]:"rgba("+r.join(","))+")";return u+e.substr(o)},vt="(?:\\b(?:(?:rgb|rgba|hsl|hsla)\\(.+?\\))|\\B#(?:[0-9a-f]{3}){1,2}\\b";for(f in ct)vt+="|"+f+"\\b";vt=new RegExp(vt+")","gi"),o.colorStringFilter=function(e){var t,n=e[0]+e[1];vt.test(n)&&(t=-1!==n.indexOf("hsl(")||-1!==n.indexOf("hsla("),e[0]=dt(e[0],t),e[1]=dt(e[1],t)),vt.lastIndex=0},t.defaultStringFilter||(t.defaultStringFilter=o.colorStringFilter);var mt=function(e,t,n,r){if(null==e)return function(e){return e};var i,s=t?(e.match(vt)||[""])[0]:"",o=e.split(s).join("").match(w)||[],u=e.substr(0,e.indexOf(o[0])),a=")"===e.charAt(e.length-1)?")":"",f=-1!==e.indexOf(" ")?" ":",",l=o.length,c=l>0?o[0].replace(y,""):"";return l?i=t?function(e){var t,h,p,d;if("number"==typeof e)e+=c;else if(r&&P.test(e)){for(d=e.replace(P,"|").split("|"),p=0;p<d.length;p++)d[p]=i(d[p]);return d.join(",")}if(t=(e.match(vt)||[s])[0],h=e.split(t).join("").match(w)||[],p=h.length,l>p--)for(;++p<l;)h[p]=n?h[(p-1)/2|0]:o[p];return u+h.join(f)+f+t+a+(-1!==e.indexOf("inset")?" inset":"")}:function(e){var t,s,h;if("number"==typeof e)e+=c;else if(r&&P.test(e)){for(s=e.replace(P,"|").split("|"),h=0;h<s.length;h++)s[h]=i(s[h]);return s.join(",")}if(t=e.match(w)||[],h=t.length,l>h--)for(;++h<l;)t[h]=n?t[(h-1)/2|0]:o[h];return u+t.join(f)+a}:function(e){return e}},gt=function(e){return e=e.split(","),function(t,n,r,i,s,o,u){var a,f=(n+"").split(" ");for(u={},a=0;4>a;a++)u[e[a]]=f[a]=f[a]||f[(a-1)/2>>0];return i.parse(t,u,s,o)}},yt=(W._setPluginRatio=function(e){this.plugin.setRatio(e);for(var t,n,r,i,s,o=this.data,u=o.proxy,a=o.firstMPT,f=1e-6;a;)t=u[a.v],a.r?t=Math.round(t):f>t&&t>-f&&(t=0),a.t[a.p]=t,a=a._next;if(o.autoRotate&&(o.autoRotate.rotation=o.mod?o.mod(u.rotation,this.t):u.rotation),1===e||0===e)for(a=o.firstMPT,s=1===e?"e":"b";a;){if(n=a.t,n.type){if(1===n.type){for(i=n.xs0+n.s+n.xs1,r=1;r<n.l;r++)i+=n["xn"+r]+n["xs"+(r+1)];n[s]=i}}else n[s]=n.s+n.xs0;a=a._next}},function(e,t,n,r,i){this.t=e,this.p=t,this.v=n,this.r=i,r&&(r._prev=this,this._next=r)}),bt=(W._parseToProxy=function(e,t,n,r,i,s){var o,u,a,f,l,c=r,h={},p={},d=n._transform,v=F;for(n._transform=null,F=t,r=l=n.parse(e,t,r,i),F=v,s&&(n._transform=d,c&&(c._prev=null,c._prev&&(c._prev._next=null)));r&&r!==c;){if(r.type<=1&&(u=r.p,p[u]=r.s+r.c,h[u]=r.s,s||(f=new yt(r,"s",u,f,r.r),r.c=0),1===r.type))for(o=r.l;--o>0;)a="xn"+o,u=r.p+"_"+a,p[u]=r.data[a],h[u]=r[a],s||(f=new yt(r,a,u,f,r.rxp[a]));r=r._next}return{proxy:h,end:p,firstMPT:f,pt:l}},W.CSSPropTween=function(e,t,r,i,o,u,a,f,l,c,h){this.t=e,this.p=t,this.s=r,this.c=i,this.n=a||t,e instanceof bt||s.push(this.n),this.r=f,this.type=u||0,l&&(this.pr=l,n=!0),this.b=void 0===c?r:c,this.e=void 0===h?r+i:h,o&&(this._next=o,o._prev=this)}),wt=function(e,t,n,r,i,s){var o=new bt(e,t,n,r-n,i,-1,s);return o.b=n,o.e=o.xs0=r,o},Et=o.parseComplex=function(e,t,n,r,i,s,u,a,f,c){n=n||s||"","function"==typeof r&&(r=r(g,m)),u=new bt(e,t,0,0,u,c?2:1,null,!1,a,n,r),r+="",i&&vt.test(r+n)&&(r=[n,r],o.colorStringFilter(r),n=r[0],r=r[1]);var h,p,d,v,w,E,S,x,T,N,C,k,L,A=n.split(", ").join(",").split(" "),O=r.split(", ").join(",").split(" "),M=A.length,_=l!==!1;for((-1!==r.indexOf(",")||-1!==n.indexOf(","))&&(A=A.join(" ").replace(P,", ").split(" "),O=O.join(" ").replace(P,", ").split(" "),M=A.length),M!==O.length&&(A=(s||"").split(" "),M=A.length),u.plugin=f,u.setRatio=c,vt.lastIndex=0,h=0;M>h;h++)if(v=A[h],w=O[h],x=parseFloat(v),x||0===x)u.appendXtra("",x,at(w,x),w.replace(b,""),_&&-1!==w.indexOf("px"),!0);else if(i&&vt.test(v))k=w.indexOf(")")+1,k=")"+(k?w.substr(k):""),L=-1!==w.indexOf("hsl")&&V,v=pt(v,L),w=pt(w,L),T=v.length+w.length>6,T&&!V&&0===w[3]?(u["xs"+u.l]+=u.l?" transparent":"transparent",u.e=u.e.split(O[h]).join("transparent")):(V||(T=!1),L?u.appendXtra(T?"hsla(":"hsl(",v[0],at(w[0],v[0]),",",!1,!0).appendXtra("",v[1],at(w[1],v[1]),"%,",!1).appendXtra("",v[2],at(w[2],v[2]),T?"%,":"%"+k,!1):u.appendXtra(T?"rgba(":"rgb(",v[0],w[0]-v[0],",",!0,!0).appendXtra("",v[1],w[1]-v[1],",",!0).appendXtra("",v[2],w[2]-v[2],T?",":k,!0),T&&(v=v.length<4?1:v[3],u.appendXtra("",v,(w.length<4?1:w[3])-v,k,!1))),vt.lastIndex=0;else if(E=v.match(y)){if(S=w.match(b),!S||S.length!==E.length)return u;for(d=0,p=0;p<E.length;p++)C=E[p],N=v.indexOf(C,d),u.appendXtra(v.substr(d,N-d),Number(C),at(S[p],C),"",_&&"px"===v.substr(N+C.length,2),0===p),d=N+C.length;u["xs"+u.l]+=v.substr(d)}else u["xs"+u.l]+=u.l||u["xs"+u.l]?" "+w:w;if(-1!==r.indexOf("=")&&u.data){for(k=u.xs0+u.data.s,h=1;h<u.l;h++)k+=u["xs"+h]+u.data["xn"+h];u.e=k+u["xs"+h]}return u.l||(u.type=-1,u.xs0=u.e),u.xfirst||u},St=9;for(f=bt.prototype,f.l=f.pr=0;--St>0;)f["xn"+St]=0,f["xs"+St]="";f.xs0="",f._next=f._prev=f.xfirst=f.data=f.plugin=f.setRatio=f.rxp=null,f.appendXtra=function(e,t,n,r,i,s){var o=this,u=o.l;return o["xs"+u]+=s&&(u||o["xs"+u])?" "+e:e||"",n||0===u||o.plugin?(o.l++,o.type=o.setRatio?2:1,o["xs"+o.l]=r||"",u>0?(o.data["xn"+u]=t+n,o.rxp["xn"+u]=i,o["xn"+u]=t,o.plugin||(o.xfirst=new bt(o,"xn"+u,t,n,o.xfirst||o,0,o.n,i,o.pr),o.xfirst.xs0=0),o):(o.data={s:t+n},o.rxp={},o.s=t,o.c=n,o.r=i,o)):(o["xs"+u]+=t+(r||""),o)};var xt=function(e,t){t=t||{},this.p=t.prefix?G(e)||e:e,a[e]=a[this.p]=this,this.format=t.formatter||mt(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},Tt=W._registerComplexSpecialProp=function(e,t,n){"object"!=typeof t&&(t={parser:n});var r,i,s=e.split(","),o=t.defaultValue;for(n=n||[o],r=0;r<s.length;r++)t.prefix=0===r&&t.prefix,t.defaultValue=n[r]||o,i=new xt(s[r],t)},Nt=W._registerPluginProp=function(e){if(!a[e]){var t=e.charAt(0).toUpperCase()+e.substr(1)+"Plugin";Tt(e,{parser:function(e,n,r,i,s,o,f){var l=u.com.greensock.plugins[t];return l?(l._cssRegister(),a[r].parse(e,n,r,i,s,o,f)):(J("Error: "+t+" js file not loaded."),s)}})}};f=xt.prototype,f.parseComplex=function(e,t,n,r,i,s){var o,u,a,f,l,c,h=this.keyword;if(this.multi&&(P.test(n)||P.test(t)?(u=t.replace(P,"|").split("|"),a=n.replace(P,"|").split("|")):h&&(u=[t],a=[n])),a){for(f=a.length>u.length?a.length:u.length,o=0;f>o;o++)t=u[o]=u[o]||this.dflt,n=a[o]=a[o]||this.dflt,h&&(l=t.indexOf(h),c=n.indexOf(h),l!==c&&(-1===c?u[o]=u[o].split(h).join(""):-1===l&&(u[o]+=" "+h)));t=u.join(", "),n=a.join(", ")}return Et(e,this.p,t,n,this.clrs,this.dflt,r,this.pr,i,s)},f.parse=function(e,t,n,r,s,o,u){return this.parseComplex(e.style,this.format(Z(e,this.p,i,!1,this.dflt)),this.format(t),s,o)},o.registerSpecialProp=function(e,t,n){Tt(e,{parser:function(e,r,i,s,o,u,a){var f=new bt(e,i,0,0,o,2,i,!1,n);return f.plugin=u,f.setRatio=t(e,r,s._tween,i),f},priority:n})},o.useSVGTransformAttr=!0;var Ct,kt="scaleX,scaleY,scaleZ,x,y,z,skewX,skewY,rotation,rotationX,rotationY,perspective,xPercent,yPercent".split(","),Lt=G("transform"),At=K+"transform",Ot=G("transformOrigin"),Mt=null!==G("perspective"),_t=W.Transform=function(){this.perspective=parseFloat(o.defaultTransformPerspective)||0,this.force3D=o.defaultForce3D!==!1&&Mt?o.defaultForce3D||"auto":!1},Dt=_gsScope.SVGElement,Pt=function(e,t,n){var r,i=q.createElementNS("http://www.w3.org/2000/svg",e),s=/([a-z])([A-Z])/g;for(r in n)i.setAttributeNS(null,r.replace(s,"$1-$2").toLowerCase(),n[r]);return t.appendChild(i),i},Ht=q.documentElement||{},Bt=function(){var e,t,n,r=v||/Android/i.test(X)&&!_gsScope.chrome;return q.createElementNS&&!r&&(e=Pt("svg",Ht),t=Pt("rect",e,{width:100,height:50,x:100}),n=t.getBoundingClientRect().width,t.style[Ot]="50% 50%",t.style[Lt]="scaleX(0.5)",r=n===t.getBoundingClientRect().width&&(!p||!Mt),Ht.removeChild(e)),r}(),jt=function(e,t,n,r,i,s){var u,a,f,l,c,h,p,d,v,m,g,y,b,w,E=e._gsTransform,S=Ut(e,!0);E&&(b=E.xOrigin,w=E.yOrigin),(!r||(u=r.split(" ")).length<2)&&(p=e.getBBox(),0===p.x&&0===p.y&&p.width+p.height===0&&(p={x:parseFloat(e.hasAttribute("x")?e.getAttribute("x"):e.hasAttribute("cx")?e.getAttribute("cx"):0)||0,y:parseFloat(e.hasAttribute("y")?e.getAttribute("y"):e.hasAttribute("cy")?e.getAttribute("cy"):0)||0,width:0,height:0}),t=ut(t).split(" "),u=[(-1!==t[0].indexOf("%")?parseFloat(t[0])/100*p.width:parseFloat(t[0]))+p.x,(-1!==t[1].indexOf("%")?parseFloat(t[1])/100*p.height:parseFloat(t[1]))+p.y]),n.xOrigin=l=parseFloat(u[0]),n.yOrigin=c=parseFloat(u[1]),r&&S!==Rt&&(h=S[0],p=S[1],d=S[2],v=S[3],m=S[4],g=S[5],y=h*v-p*d,y&&(a=l*(v/y)+c*(-d/y)+(d*g-v*m)/y,f=l*(-p/y)+c*(h/y)-(h*g-p*m)/y,l=n.xOrigin=u[0]=a,c=n.yOrigin=u[1]=f)),E&&(s&&(n.xOffset=E.xOffset,n.yOffset=E.yOffset,E=n),i||i!==!1&&o.defaultSmoothOrigin!==!1?(a=l-b,f=c-w,E.xOffset+=a*S[0]+f*S[2]-a,E.yOffset+=a*S[1]+f*S[3]-f):E.xOffset=E.yOffset=0),s||e.setAttribute("data-svg-origin",u.join(" "))},Ft=function(e){var t,n=R("svg",this.ownerSVGElement.getAttribute("xmlns")||"http://www.w3.org/2000/svg"),r=this.parentNode,i=this.nextSibling,s=this.style.cssText;if(Ht.appendChild(n),n.appendChild(this),this.style.display="block",e)try{t=this.getBBox(),this._originalGetBBox=this.getBBox,this.getBBox=Ft}catch(o){}else this._originalGetBBox&&(t=this._originalGetBBox());return i?r.insertBefore(this,i):r.appendChild(this),Ht.removeChild(n),this.style.cssText=s,t},It=function(e){try{return e.getBBox()}catch(t){return Ft.call(e,!0)}},qt=function(e){return!(!(Dt&&e.getCTM&&It(e))||e.parentNode&&!e.ownerSVGElement)},Rt=[1,0,0,1,0,0],Ut=function(e,t){var n,r,i,s,o,u,a=e._gsTransform||new _t,f=1e5,l=e.style;if(Lt?r=Z(e,At,null,!0):e.currentStyle&&(r=e.currentStyle.filter.match(_),r=r&&4===r.length?[r[0].substr(4),Number(r[2].substr(4)),Number(r[1].substr(4)),r[3].substr(4),a.x||0,a.y||0].join(","):""),n=!r||"none"===r||"matrix(1, 0, 0, 1, 0, 0)"===r,n&&Lt&&((u="none"===Y(e).display)||!e.parentNode)&&(u&&(s=l.display,l.display="block"),e.parentNode||(o=1,Ht.appendChild(e)),r=Z(e,At,null,!0),n=!r||"none"===r||"matrix(1, 0, 0, 1, 0, 0)"===r,s?l.display=s:u&&$t(l,"display"),o&&Ht.removeChild(e)),(a.svg||e.getCTM&&qt(e))&&(n&&-1!==(l[Lt]+"").indexOf("matrix")&&(r=l[Lt],n=0),i=e.getAttribute("transform"),n&&i&&(-1!==i.indexOf("matrix")?(r=i,n=0):-1!==i.indexOf("translate")&&(r="matrix(1,0,0,1,"+i.match(/(?:\-|\b)[\d\-\.e]+\b/gi).join(",")+")",n=0))),n)return Rt;for(i=(r||"").match(y)||[],St=i.length;--St>-1;)s=Number(i[St]),i[St]=(o=s-(s|=0))?(o*f+(0>o?-0.5:.5)|0)/f+s:s;return t&&i.length>6?[i[0],i[1],i[4],i[5],i[12],i[13]]:i},zt=W.getTransform=function(e,n,r,i){if(e._gsTransform&&r&&!i)return e._gsTransform;var s,u,a,f,l,c,h=r?e._gsTransform||new _t:new _t,p=h.scaleX<0,d=2e-5,v=1e5,m=Mt?parseFloat(Z(e,Ot,n,!1,"0 0 0").split(" ")[2])||h.zOrigin||0:0,g=parseFloat(o.defaultTransformPerspective)||0;if(h.svg=!!e.getCTM&&!!qt(e),h.svg&&(jt(e,Z(e,Ot,n,!1,"50% 50%")+"",h,e.getAttribute("data-svg-origin")),Ct=o.useSVGTransformAttr||Bt),s=Ut(e),s!==Rt){if(16===s.length){var y,b,w,E,S,x=s[0],T=s[1],N=s[2],C=s[3],k=s[4],L=s[5],A=s[6],O=s[7],M=s[8],_=s[9],D=s[10],P=s[12],H=s[13],B=s[14],F=s[11],I=Math.atan2(A,D);h.zOrigin&&(B=-h.zOrigin,P=M*B-s[12],H=_*B-s[13],B=D*B+h.zOrigin-s[14]),h.rotationX=I
1*j,I&&(E=Math.cos(-I),S=Math.sin(-I),y=k*E+M*S,b=L*E+_*S,w=A*E+D*S,M=k*-S+M*E,_=L*-S+_*E,D=A*-S+D*E,F=O*-S+F*E,k=y,L=b,A=w),I=Math.atan2(-N,D),h.rotationY=I*j,I&&(E=Math.cos(-I),S=Math.sin(-I),y=x*E-M*S,b=T*E-_*S,w=N*E-D*S,_=T*S+_*E,D=N*S+D*E,F=C*S+F*E,x=y,T=b,N=w),I=Math.atan2(T,x),h.rotation=I*j,I&&(E=Math.cos(-I),S=Math.sin(-I),x=x*E+k*S,b=T*E+L*S,L=T*-S+L*E,A=N*-S+A*E,T=b),h.rotationX&&Math.abs(h.rotationX)+Math.abs(h.rotation)>359.9&&(h.rotationX=h.rotation=0,h.rotationY=180-h.rotationY),h.scaleX=(Math.sqrt(x*x+T*T)*v+.5|0)/v,h.scaleY=(Math.sqrt(L*L+_*_)*v+.5|0)/v,h.scaleZ=(Math.sqrt(A*A+D*D)*v+.5|0)/v,h.rotationX||h.rotationY?h.skewX=0:(h.skewX=k||L?Math.atan2(k,L)*j+h.rotation:h.skewX||0,Math.abs(h.skewX)>90&&Math.abs(h.skewX)<270&&(p?(h.scaleX*=-1,h.skewX+=h.rotation<=0?180:-180,h.rotation+=h.rotation<=0?180:-180):(h.scaleY*=-1,h.skewX+=h.skewX<=0?180:-180))),h.perspective=F?1/(0>F?-F:F):0,h.x=P,h.y=H,h.z=B,h.svg&&(h.x-=h.xOrigin-(h.xOrigin*x-h.yOrigin*k),h.y-=h.yOrigin-(h.yOrigin*T-h.xOrigin*L))}else if(!Mt||i||
vendor: 23,454 bytes, line 1
1!s.length||h.x!==s[4]||h.y!==s[5]||!h.rotationX&&!h.rotationY){var q=s.length>=6,R=q?s[0]:1,U=s[1]||0,z=s[2]||0,W=q?s[3]:1;h.x=s[4]||0,h.y=s[5]||0,a=Math.sqrt(R*R+U*U),f=Math.sqrt(W*W+z*z),l=R||U?Math.atan2(U,R)*j:h.rotation||0,c=z||W?Math.atan2(z,W)*j+l:h.skewX||0,Math.abs(c)>90&&Math.abs(c)<270&&(p?(a*=-1,c+=0>=l?180:-180,l+=0>=l?180:-180):(f*=-1,c+=0>=c?180:-180)),h.scaleX=a,h.scaleY=f,h.rotation=l,h.skewX=c,Mt&&(h.rotationX=h.rotationY=h.z=0,h.perspective=g,h.scaleZ=1),h.svg&&(h.x-=h.xOrigin-(h.xOrigin*R+h.yOrigin*z),h.y-=h.yOrigin-(h.xOrigin*U+h.yOrigin*W))}h.zOrigin=m;for(u in h)h[u]<d&&h[u]>-d&&(h[u]=0)}return r&&(e._gsTransform=h,h.svg&&(Ct&&e.style[Lt]?t.delayedCall(.001,function(){$t(e.style,Lt)}):!Ct&&e.getAttribute("transform")&&t.delayedCall(.001,function(){e.removeAttribute("transform")}))),h},Wt=function(e){var t,n,r=this.data,i=-r.rotation*B,s=i+r.skewX*B,o=1e5,u=(Math.cos(i)*r.scaleX*o|0)/o,a=(Math.sin(i)*r.scaleX*o|0)/o,f=(Math.sin(s)*-r.scaleY*o|0)/o,l=(Math.cos(s)*r.scaleY*o|0)/o,c=this.t.style,h=this.t.currentStyle;if(h){n=a,a=-f,f=-n,t=h.filter,c.filter="";var p,d,m=this.t.offsetWidth,g=this.t.offsetHeight,y="absolute"!==h.position,b="progid:DXImageTransform.Microsoft.Matrix(M11="+u+", M12="+a+", M21="+f+", M22="+l,w=r.x+m*r.xPercent/100,E=r.y+g*r.yPercent/100;if(null!=r.ox&&(p=(r.oxp?m*r.ox*.01:r.ox)-m/2,d=(r.oyp?g*r.oy*.01:r.oy)-g/2,w+=p-(p*u+d*a),E+=d-(p*f+d*l)),y?(p=m/2,d=g/2,b+=", Dx="+(p-(p*u+d*a)+w)+", Dy="+(d-(p*f+d*l)+E)+")"):b+=", sizingMethod='auto expand')",-1!==t.indexOf("DXImageTransform.Microsoft.Matrix(")?c.filter=t.replace(D,b):c.filter=b+" "+t,(0===e||1===e)&&1===u&&0===a&&0===f&&1===l&&(y&&-1===b.indexOf("Dx=0, Dy=0")||x.test(t)&&100!==parseFloat(RegExp.$1)||-1===t.indexOf(t.indexOf("Alpha"))&&c.removeAttribute("filter")),!y){var T,N,C,k=8>v?1:-1;for(p=r.ieOffsetX||0,d=r.ieOffsetY||0,r.ieOffsetX=Math.round((m-((0>u?-u:u)*m+(0>a?-a:a)*g))/2+w),r.ieOffsetY=Math.round((g-((0>l?-l:l)*g+(0>f?-f:f)*m))/2+E),St=0;4>St;St++)N=st[St],T=h[N],n=-1!==T.indexOf("px")?parseFloat(T):et(this.t,N,parseFloat(T),T.replace(S,""))||0,C=n!==r[N]?2>St?-r.ieOffsetX:-r.ieOffsetY:2>St?p-r.ieOffsetX:d-r.ieOffsetY,c[N]=(r[N]=Math.round(n-C*(0===St||2===St?1:k)))+"px"}}},Xt=W.set3DTransformRatio=W.setTransformRatio=function(e){var t,n,r,i,s,o,u,a,f,l,c,h,d,v,m,g,y,b,w,E,S,x,T,N=this.data,C=this.t.style,k=N.rotation,L=N.rotationX,A=N.rotationY,O=N.scaleX,M=N.scaleY,_=N.scaleZ,D=N.x,P=N.y,H=N.z,j=N.svg,F=N.perspective,I=N.force3D,q=N.skewY,R=N.skewX;if(q&&(R+=q,k+=q),((1===e||0===e)&&"auto"===I&&(this.tween._totalTime===this.tween._totalDuration||!this.tween._totalTime)||!I)&&!H&&!F&&!A&&!L&&1===_||Ct&&j||!Mt)return void (k||R||j?(k*=B,x=R*B,T=1e5,n=Math.cos(k)*O,s=Math.sin(k)*O,r=Math.sin(k-x)*-M,o=Math.cos(k-x)*M,x&&"simple"===N.skewType&&(t=Math.tan(x-q*B),t=Math.sqrt(1+t*t),r*=t,o*=t,q&&(t=Math.tan(q*B),t=Math.sqrt(1+t*t),n*=t,s*=t)),j&&(D+=N.xOrigin-(N.xOrigin*n+N.yOrigin*r)+N.xOffset,P+=N.yOrigin-(N.xOrigin*s+N.yOrigin*o)+N.yOffset,Ct&&(N.xPercent||N.yPercent)&&(m=this.t.getBBox(),D+=.01*N.xPercent*m.width,P+=.01*N.yPercent*m.height),m=1e-6,m>D&&D>-m&&(D=0),m>P&&P>-m&&(P=0)),w=(n*T|0)/T+","+(s*T|0)/T+","+(r*T|0)/T+","+(o*T|0)/T+","+D+","+P+")",j&&Ct?this.t.setAttribute("transform","matrix("+w):C[Lt]=(N.xPercent||N.yPercent?"translate("+N.xPercent+"%,"+N.yPercent+"%) matrix(":"matrix(")+w):C[Lt]=(N.xPercent||N.yPercent?"translate("+N.xPercent+"%,"+N.yPercent+"%) matrix(":"matrix(")+O+",0,0,"+M+","+D+","+P+")");if(p&&(m=1e-4,m>O&&O>-m&&(O=_=2e-5),m>M&&M>-m&&(M=_=2e-5),!F||N.z||N.rotationX||N.rotationY||(F=0)),k||R)k*=B,g=n=Math.cos(k),y=s=Math.sin(k),R&&(k-=R*B,g=Math.cos(k),y=Math.sin(k),"simple"===N.skewType&&(t=Math.tan((R-q)*B),t=Math.sqrt(1+t*t),g*=t,y*=t,N.skewY&&(t=Math.tan(q*B),t=Math.sqrt(1+t*t),n*=t,s*=t))),r=-y,o=g;else{if(!(A||L||1!==_||F||j))return void (C[Lt]=(N.xPercent||N.yPercent?"translate("+N.xPercent+"%,"+N.yPercent+"%) translate3d(":"translate3d(")+D+"px,"+P+"px,"+H+"px)"+(1!==O||1!==M?" scale("+O+","+M+")":""));n=o=1,r=s=0}l=1,i=u=a=f=c=h=0,d=F?-1/F:0,v=N.zOrigin,m=1e-6,E=",",S="0",k=A*B,k&&(g=Math.cos(k),y=Math.sin(k),a=-y,c=d*-y,i=n*y,u=s*y,l=g,d*=g,n*=g,s*=g),k=L*B,k&&(g=Math.cos(k),y=Math.sin(k),t=r*g+i*y,b=o*g+u*y,f=l*y,h=d*y,i=r*-y+i*g,u=o*-y+u*g,l*=g,d*=g,r=t,o=b),1!==_&&(i*=_,u*=_,l*=_,d*=_),1!==M&&(r*=M,o*=M,f*=M,h*=M),1!==O&&(n*=O,s*=O,a*=O,c*=O),(v||j)&&(v&&(D+=i*-v,P+=u*-v,H+=l*-v+v),j&&(D+=N.xOrigin-(N.xOrigin*n+N.yOrigin*r)+N.xOffset,P+=N.yOrigin-(N.xOrigin*s+N.yOrigin*o)+N.yOffset),m>D&&D>-m&&(D=S),m>P&&P>-m&&(P=S),m>H&&H>-m&&(H=0)),w=N.xPercent||N.yPercent?"translate("+N.xPercent+"%,"+N.yPercent+"%) matrix3d(":"matrix3d(",w+=(m>n&&n>-m?S:n)+E+(m>s&&s>-m?S:s)+E+(m>a&&a>-m?S:a),w+=E+(m>c&&c>-m?S:c)+E+(m>r&&r>-m?S:r)+E+(m>o&&o>-m?S:o),L||A||1!==_?(w+=E+(m>f&&f>-m?S:f)+E+(m>h&&h>-m?S:h)+E+(m>i&&i>-m?S:i),w+=E+(m>u&&u>-m?S:u)+E+(m>l&&l>-m?S:l)+E+(m>d&&d>-m?S:d)+E):w+=",0,0,0,0,1,0,",w+=D+E+P+E+H+E+(F?1+ -H/F:1)+")",C[Lt]=w};f=_t.prototype,f.x=f.y=f.z=f.skewX=f.skewY=f.rotation=f.rotationX=f.rotationY=f.zOrigin=f.xPercent=f.yPercent=f.xOffset=f.yOffset=0,f.scaleX=f.scaleY=f.scaleZ=1,Tt("transform,scale,scaleX,scaleY,scaleZ,x,y,z,rotation,rotationX,rotationY,rotationZ,skewX,skewY,shortRotation,shortRotationX,shortRotationY,shortRotationZ,transformOrigin,svgOrigin,transformPerspective,directionalRotation,parseTransform,force3D,skewType,xPercent,yPercent,smoothOrigin",{parser:function(e,t,n,r,s,u,a){if(r._lastParsedTransform===a)return s;r._lastParsedTransform=a;var f,l=a.scale&&"function"==typeof a.scale?a.scale:0;"function"==typeof a[n]&&(f=a[n],a[n]=t),l&&(a.scale=l(g,e));var c,h,p,d,v,y,b,w,E,S=e._gsTransform,x=e.style,T=1e-6,N=kt.length,C=a,k={},L="transformOrigin",A=zt(e,i,!0,C.parseTransform),O=C.transform&&("function"==typeof C.transform?C.transform(g,m):C.transform);if(r._transform=A,O&&"string"==typeof O&&Lt)h=U.style,h[Lt]=O,h.display="block",h.position="absolute",q.body.appendChild(U),c=zt(U,null,!1),A.svg&&(y=A.xOrigin,b=A.yOrigin,c.x-=A.xOffset,c.y-=A.yOffset,(C.transformOrigin||C.svgOrigin)&&(O={},jt(e,ut(C.transformOrigin),O,C.svgOrigin,C.smoothOrigin,!0),y=O.xOrigin,b=O.yOrigin,c.x-=O.xOffset-A.xOffset,c.y-=O.yOffset-A.yOffset),(y||b)&&(w=Ut(U,!0),c.x-=y-(y*w[0]+b*w[2]),c.y-=b-(y*w[1]+b*w[3]))),q.body.removeChild(U),c.perspective||(c.perspective=A.perspective),null!=C.xPercent&&(c.xPercent=ft(C.xPercent,A.xPercent)),null!=C.yPercent&&(c.yPercent=ft(C.yPercent,A.yPercent));else if("object"==typeof C){if(c={scaleX:ft(null!=C.scaleX?C.scaleX:C.scale,A.scaleX),scaleY:ft(null!=C.scaleY?C.scaleY:C.scale,A.scaleY),scaleZ:ft(C.scaleZ,A.scaleZ),x:ft(C.x,A.x),y:ft(C.y,A.y),z:ft(C.z,A.z),xPercent:ft(C.xPercent,A.xPercent),yPercent:ft(C.yPercent,A.yPercent),perspective:ft(C.transformPerspective,A.perspective)},v=C.directionalRotation,null!=v)if("object"==typeof v)for(h in v)C[h]=v[h];else C.rotation=v;"string"==typeof C.x&&-1!==C.x.indexOf("%")&&(c.x=0,c.xPercent=ft(C.x,A.xPercent)),"string"==typeof C.y&&-1!==C.y.indexOf("%")&&(c.y=0,c.yPercent=ft(C.y,A.yPercent)),c.rotation=lt("rotation"in C?C.rotation:"shortRotation"in C?C.shortRotation+"_short":"rotationZ"in C?C.rotationZ:A.rotation,A.rotation,"rotation",k),Mt&&(c.rotationX=lt("rotationX"in C?C.rotationX:"shortRotationX"in C?C.shortRotationX+"_short":A.rotationX||0,A.rotationX,"rotationX",k),c.rotationY=lt("rotationY"in C?C.rotationY:"shortRotationY"in C?C.shortRotationY+"_short":A.rotationY||0,A.rotationY,"rotationY",k)),c.skewX=lt(C.skewX,A.skewX),c.skewY=lt(C.skewY,A.skewY)}for(Mt&&null!=C.force3D&&(A.force3D=C.force3D,d=!0),A.skewType=C.skewType||A.skewType||o.defaultSkewType,p=A.force3D||A.z||A.rotationX||A.rotationY||c.z||c.rotationX||c.rotationY||c.perspective,p||null==C.scale||(c.scaleZ=1);--N>-1;)E=kt[N],O=c[E]-A[E],(O>T||-T>O||null!=C[E]||null!=F[E])&&(d=!0,s=new bt(A,E,A[E],O,s),E in k&&(s.e=k[E]),s.xs0=0,s.plugin=u,r._overwriteProps.push(s.n));return O=C.transformOrigin,A.svg&&(O||C.svgOrigin)&&(y=A.xOffset,b=A.yOffset,jt(e,ut(O),c,C.svgOrigin,C.smoothOrigin),s=wt(A,"xOrigin",(S?A:c).xOrigin,c.xOrigin,s,L),s=wt(A,"yOrigin",(S?A:c).yOrigin,c.yOrigin,s,L),(y!==A.xOffset||b!==A.yOffset)&&(s=wt(A,"xOffset",S?y:A.xOffset,A.xOffset,s,L),s=wt(A,"yOffset",S?b:A.yOffset,A.yOffset,s,L)),O="0px 0px"),(O||Mt&&p&&A.zOrigin)&&(Lt?(d=!0,E=Ot,O=(O||Z(e,E,i,!1,"50% 50%"))+"",s=new bt(x,E,0,0,s,-1,L),s.b=x[E],s.plugin=u,Mt?(h=A.zOrigin,O=O.split(" "),A.zOrigin=(O.length>2&&(0===h||"0px"!==O[2])?parseFloat(O[2]):h)||0,s.xs0=s.e=O[0]+" "+(O[1]||"50%")+" 0px",s=new bt(A,"zOrigin",0,0,s,-1,s.n),s.b=h,s.xs0=s.e=A.zOrigin):s.xs0=s.e=O):ut(O+"",A)),d&&(r._transformType=A.svg&&Ct||!p&&3!==this._transformType?2:3),f&&(a[n]=f),l&&(a.scale=l),s},prefix:!0}),Tt("boxShadow",{defaultValue:"0px 0px 0px 0px #999",prefix:!0,color:!0,multi:!0,keyword:"inset"}),Tt("borderRadius",{defaultValue:"0px",parser:function(e,t,n,s,o,u){t=this.format(t);var a,f,l,c,h,p,d,v,m,g,y,b,w,E,S,x,T=["borderTopLeftRadius","borderTopRightRadius","borderBottomRightRadius","borderBottomLeftRadius"],N=e.style;for(m=parseFloat(e.offsetWidth),g=parseFloat(e.offsetHeight),a=t.split(" "),f=0;f<T.length;f++)this.p.indexOf("border")&&(T[f]=G(T[f])),h=c=Z(e,T[f],i,!1,"0px"),-1!==h.indexOf(" ")&&(c=h.split(" "),h=c[0],c=c[1]),p=l=a[f],d=parseFloat(h),b=h.substr((d+"").length),w="="===p.charAt(1),w?(v=parseInt(p.charAt(0)+"1",10),p=p.substr(2),v*=parseFloat(p),y=p.substr((v+"").length-(0>v?1:0))||""):(v=parseFloat(p),y=p.substr((v+"").length)),""===y&&(y=r[n]||b),y!==b&&(E=et(e,"borderLeft",d,b),S=et(e,"borderTop",d,b),"%"===y?(h=E/m*100+"%",c=S/g*100+"%"):"em"===y?(x=et(e,"borderLeft",1,"em"),h=E/x+"em",c=S/x+"em"):(h=E+"px",c=S+"px"),w&&(p=parseFloat(h)+v+y,l=parseFloat(c)+v+y)),o=Et(N,T[f],h+" "+c,p+" "+l,!1,"0px",o);return o},prefix:!0,formatter:mt("0px 0px 0px 0px",!1,!0)}),Tt("borderBottomLeftRadius,borderBottomRightRadius,borderTopLeftRadius,borderTopRightRadius",{defaultValue:"0px",parser:function(e,t,n,r,s,o){return Et(e.style,n,this.format(Z(e,n,i,!1,"0px 0px")),this.format(t),!1,"0px",s)},prefix:!0,formatter:mt("0px 0px",!1,!0)}),Tt("backgroundPosition",{defaultValue:"0 0",parser:function(e,t,n,r,s,o){var u,a,f,l,c,h,p="background-position",d=i||Y(e,null),m=this.format((d?v?d.getPropertyValue(p+"-x")+" "+d.getPropertyValue(p+"-y"):d.getPropertyValue(p):e.currentStyle.backgroundPositionX+" "+e.currentStyle.backgroundPositionY)||"0 0"),g=this.format(t);if(-1!==m.indexOf("%")!=(-1!==g.indexOf("%"))&&g.split(",").length<2&&(h=Z(e,"backgroundImage").replace(A,""),h&&"none"!==h)){for(u=m.split(" "),a=g.split(" "),z.setAttribute("src",h),f=2;--f>-1;)m=u[f],l=-1!==m.indexOf("%"),l!==(-1!==a[f].indexOf("%"))&&(c=0===f?e.offsetWidth-z.width:e.offsetHeight-z.height,u[f]=l?parseFloat(m)/100*c+"px":parseFloat(m)/c*100+"%");m=u.join(" ")}return this.parseComplex(e.style,m,g,s,o)},formatter:ut}),Tt("backgroundSize",{defaultValue:"0 0",formatter:function(e){return e+="",ut(-1===e.indexOf(" ")?e+" "+e:e)}}),Tt("perspective",{defaultValue:"0px",prefix:!0}),Tt("perspectiveOrigin",{defaultValue:"50% 50%",prefix:!0}),Tt("transformStyle",{prefix:!0}),Tt("backfaceVisibility",{prefix:!0}),Tt("userSelect",{prefix:!0}),Tt("margin",{parser:gt("marginTop,marginRight,marginBottom,marginLeft")}),Tt("padding",{parser:gt("paddingTop,paddingRight,paddingBottom,paddingLeft")}),Tt("clip",{defaultValue:"rect(0px,0px,0px,0px)",parser:function(e,t,n,r,s,o){var u,a,f;return 9>v?(a=e.currentStyle,f=8>v?" ":",",u="rect("+a.clipTop+f+a.clipRight+f+a.clipBottom+f+a.clipLeft+")",t=this.format(t).split(",").join(f)):(u=this.format(Z(e,this.p,i,!1,this.dflt)),t=this.format(t)),this.parseComplex(e.style,u,t,s,o)}}),Tt("textShadow",{defaultValue:"0px 0px 0px #999",color:!0,multi:!0}),Tt("autoRound,strictUnits",{parser:function(e,t,n,r,i){return i}}),Tt("border",{defaultValue:"0px solid #000",parser:function(e,t,n,r,s,o){var u=Z(e,"borderTopWidth",i,!1,"0px"),a=this.format(t).split(" "),f=a[0].replace(S,"");return"px"!==f&&(u=parseFloat(u)/et(e,"borderTopWidth",1,f)+f),this.parseComplex(e.style,this.format(u+" "+Z(e,"borderTopStyle",i,!1,"solid")+" "+Z(e,"borderTopColor",i,!1,"#000")),a.join(" "),s,o)},color:!0,formatter:function(e){var t=e.split(" ");return t[0]+" "+(t[1]||"solid")+" "+(e.match(vt)||["#000"])[0]}}),Tt("borderWidth",{parser:gt("borderTopWidth,borderRightWidth,borderBottomWidth,borderLeftWidth")}),Tt("float,cssFloat,styleFloat",{parser:function(e,t,n,r,i,s){var o=e.style,u="cssFloat"in o?"cssFloat":"styleFloat";return new bt(o,u,0,0,i,-1,n,!1,0,o[u],t)}});var Vt=function(e){var t,n=this.t,r=n.filter||Z(this.data,"filter")||"",i=this.s+this.c*e|0;100===i&&(-1===r.indexOf("atrix(")&&-1===r.indexOf("radient(")&&-1===r.indexOf("oader(")?(n.removeAttribute("filter"),t=!Z(this.data,"filter")):(n.filter=r.replace(N,""),t=!0)),t||(this.xn1&&(n.filter=r=r||"alpha(opacity="+i+")"),-1===r.indexOf("pacity")?0===i&&this.xn1||(n.filter=r+" alpha(opacity="+i+")"):n.filter=r.replace(x,"opacity="+i))};Tt("opacity,alpha,autoAlpha",{defaultValue:"1",parser:function(e,t,n,r,s,o){var u=parseFloat(Z(e,"opacity",i,!1,"1")),a=e.style,f="autoAlpha"===n;return"string"==typeof t&&"="===t.charAt(1)&&(t=("-"===t.charAt(0)?-1:1)*parseFloat(t.substr(2))+u),f&&1===u&&"hidden"===Z(e,"visibility",i)&&0!==t&&(u=0),V?s=new bt(a,"opacity",u,t-u,s):(s=new bt(a,"opacity",100*u,100*(t-u),s),s.xn1=f?1:0,a.zoom=1,s.type=2,s.b="alpha(opacity="+s.s+")",s.e="alpha(opacity="+(s.s+s.c)+")",s.data=e,s.plugin=o,s.setRatio=Vt),f&&(s=new bt(a,"visibility",0,0,s,-1,null,!1,0,0!==u?"inherit":"hidden",0===t?"hidden":"inherit"),s.xs0="inherit",r._overwriteProps.push(s.n),r._overwriteProps.push(n)),s}});var $t=function(e,t){t&&(e.removeProperty?(("ms"===t.substr(0,2)||"webkit"===t.substr(0,6))&&(t="-"+t),e.removeProperty(t.replace(k,"-$1").toLowerCase())):e.removeAttribute(t))},Jt=function(e){if(this.t._gsClassPT=this,1===e||0===e){this.t.setAttribute("class",0===e?this.b:this.e);for(var t=this.data,n=this.t.style;t;)t.v?n[t.p]=t.v:$t(n,t.p),t=t._next;1===e&&this.t._gsClassPT===this&&(this.t._gsClassPT=null)}else this.t.getAttribute("class")!==this.e&&this.t.setAttribute("class",this.e)};Tt("className",{parser:function(e,t,r,s,o,u,a){var f,l,c,h,p,d=e.getAttribute("class")||"",v=e.style.cssText;if(o=s._classNamePT=new bt(e,r,0,0,o,2),o.setRatio=Jt,o.pr=-11,n=!0,o.b=d,l=nt(e,i),c=e._gsClassPT){for(h={},p=c.data;p;)h[p.p]=1,p=p._next;c.setRatio(1)}return e._gsClassPT=o,o.e="="!==t.charAt(1)?t:d.replace(new RegExp("(?:\\s|^)"+t.substr(2)+"(?![\\w-])"),"")+("+"===t.charAt(0)?" "+t.substr(2):""),e.setAttribute("class",o.e),f=rt(e,l,nt(e),a,h),e.setAttribute("class",d),o.data=f.firstMPT,e.style.cssText=v,o=o.xfirst=s.parse(e,f.difs,o,u)}});var Kt=function(e){if((1===e||0===e)&&this.data._totalTime===this.data._totalDuration&&"isFromStart"!==this.data.data){var t,n,r,i,s,o=this.t.style,u=a.transform.parse;if("all"===this.e)o.cssText="",i=!0;else for(t=this.e.split(" ").join("").split(","),r=t.length;--r>-1;)n=t[r],a[n]&&(a[n].parse===u?i=!0:n="transformOrigin"===n?Ot:a[n].p),$t(o,n);i&&($t(o,Lt),s=this.t._gsTransform,s&&(s.svg&&(this.t.removeAttribute("data-svg-origin"),this.t.removeAttribute("transform")),delete this.t._gsTransform))}};for(Tt("clearProps",{parser:function(e,t,r,i,s){return s=new bt(e,r,0,0,s,2),s.setRatio=Kt,s.e=t,s.pr=-10,s.data=i._tween,n=!0,s}}),f="bezier,throwProps,physicsProps,physics2D".split(","),St=f.length;St--;)Nt(f[St]);f=o.prototype,f._firstPT=f._lastParsedTransform=f._transform=null,f._onInitTween=function(e,t,u,f){if(!e.nodeType)return!1;this._target=m=e,this._tween=u,this._vars=t,g=f,l=t.autoRound,n=!1,r=t.suffixMap||o.suffixMap,i=Y(e,""),s=this._overwriteProps;var p,v,y,b,w,E,S,x,N,C=e.style;if(c&&""===C.zIndex&&(p=Z(e,"zIndex",i),("auto"===p||""===p)&&this._addLazySet(C,"zIndex",0)),"string"==typeof t&&(b=C.cssText,p=nt(e,i),C.cssText=b+";"+t,p=rt(e,p,nt(e)).difs,!V&&T.test(t)&&(p.opacity=parseFloat(RegExp.$1)),t=p,C.cssText=b),t.className?this._firstPT=v=a.className.parse(e,t.className,"className",this,null,null,t):this._firstPT=v=this.parse(e,t,null),this._transformType){for(N=3===this._transformType,Lt?h&&(c=!0,""===C.zIndex&&(S=Z(e,"zIndex",i),("auto"===S||""===S)&&this._addLazySet(C,"zIndex",0)),d&&this._addLazySet(C,"WebkitBackfaceVisibility",this._vars.WebkitBackfaceVisibility||(N?"visible":"hidden"))):C.zoom=1,y=v;y&&y._next;)y=y._next;x=new bt(e,"transform",0,0,null,2),this._linkCSSP(x,null,y),x.setRatio=Lt?Xt:Wt,x.data=this._transform||zt(e,i,!0),x.tween=u,x.pr=-1,s.pop()}if(n){for(;v;){for(E=v._next,y=b;y&&y.pr>v.pr;)y=y._next;(v._prev=y?y._prev:w)?v._prev._next=v:b=v,(v._next=y)?y._prev=v:w=v,v=E}this._firstPT=b}return!0},f.parse=function(e,t,n,s){var o,u,f,c,h,p,d,v,y,b,w=e.style;for(o in t)p=t[o],"function"==typeof p&&(p=p(g,m)),u=a[o],u?n=u.parse(e,p,o,this,n,s,t):(h=Z(e,o,i)+"",y="string"==typeof p,"color"===o||"fill"===o||"stroke"===o||-1!==o.indexOf("Color")||y&&C.test(p)?(y||(p=pt(p),p=(p.length>3?"rgba(":"rgb(")+p.join(",")+")"),n=Et(w,o,h,p,!0,"transparent",n,0,s)):y&&H.test(p)?n=Et(w,o,h,p,!0,null,n,0,s):(f=parseFloat(h),d=f||0===f?h.substr((f+"").length):"",(""===h||"auto"===h)&&("width"===o||"height"===o?(f=ot(e,o,i),d="px"):"left"===o||"top"===o?(f=tt(e,o,i),d="px"):(f="opacity"!==o?0:1,d="")),b=y&&"="===p.charAt(1),b?(c=parseInt(p.charAt(0)+"1",10),p=p.substr(2),c*=parseFloat(p),v=p.replace(S,"")):(c=parseFloat(p),v=y?p.replace(S,""):""),""===v&&(v=o in r?r[o]:d),p=c||0===c?(b?c+f:c)+v:t[o],d!==v&&""!==v&&(c||0===c)&&f&&(f=et(e,o,f,d),"%"===v?(f/=et(e,o,100,"%")/100,t.strictUnits!==!0&&(h=f+"%")):"em"===v||"rem"===v||"vw"===v||"vh"===v?f/=et(e,o,1,v):"px"!==v&&(c=et(e,o,c,v),v="px"),b&&(c||0===c)&&(p=c+f+v)),b&&(c+=f),!f&&0!==f||!c&&0!==c?void 0!==w[o]&&(p||p+""!="NaN"&&null!=p)?(n=new bt(w,o,c||f||0,0,n,-1,o,!1,0,h,p),n.xs0="none"!==p||"display"!==o&&-1===o.indexOf("Style")?p:h):J("invalid "+o+" tween value: "+t[o]):(n=new bt(w,o,f,c-f,n,0,o,l!==!1&&("px"===v||"zIndex"===o),0,h,p),n.xs0=v))),s&&n&&!n.plugin&&(n.plugin=s);return n},f.setRatio=function(e){var t,n,r,i=this._firstPT,s=1e-6;if(1!==e||this._tween._time!==this._tween._duration&&0!==this._tween._time)if(e||this._tween._time!==this._tween._duration&&0!==this._tween._time||this._tween._rawPrevTime===-0.000001)for(;i;){if(t=i.c*e+i.s,i.r?t=Math.round(t):s>t&&t>-s&&(t=0),i.type)if(1===i.type)if(r=i.l,2===r)i.t[i.p]=i.xs0+t+i.xs1+i.xn1+i.xs2;else if(3===r)i.t[i.p]=i.xs0+t+i.xs1+i.xn1+i.xs2+i.xn2+i.xs3;else if(4===r)i.t[i.p]=i.xs0+t+i.xs1+i.xn1+i.xs2+i.xn2+i.xs3+i.xn3+i.xs4;else if(5===r)i.t[i.p]=i.xs0+t+i.xs1+i.xn1+i.xs2+i.xn2+i.xs3+i.xn3+i.xs4+i.xn4+i.xs5;else{for(n=i.xs0+t+i.xs1,r=1;r<i.l;r++)n+=i["xn"+r]+i["xs"+(r+1)];i.t[i.p]=n}else-1===i.type?i.t[i.p]=i.xs0:i.setRatio&&i.setRatio(e);else i.t[i.p]=t+i.xs0;i=i._next}else for(;i;)2!==i.type?i.t[i.p]=i.b:i.setRatio(e),i=i._next;else for(;i;){if(2!==i.type)if(i.r&&-1!==i.type)if(t=Math.round(i.s+i.c),i.type){if(1===i.type){for(r=i.l,n=i.xs0+t+i.xs1,r=1;r<i.l;r++)n+=i["xn"+r]+i["xs"+(r+1)];i.t[i.p]=n}}else i.t[i.p]=t+i.xs0;else i.t[i.p]=i.e;else i.setRatio(e);i=i._next}},f._enableTransforms=function(e){this._transform=this._transform||zt(this._target,i,!0),this._transformType=this._transform.svg&&Ct||!e&&3!==this._transformType?2:3};var Qt=function(e){this.t[this.p]=this.e,this.data._linkCSSP(this,this._next,null,!0)};f._addLazySet=function(e,t,n){var r=this._firstPT=new bt(e,t,0,0,this._firstPT,2);r.e=n,r.setRatio=Qt,r.data=this},f._linkCSSP=function(e,t,n,r){return e&&(t&&(t._prev=e),e._next&&(e._next._prev=e._prev),e._prev?e._prev._next=e._next:this._firstPT===e&&(this._firstPT=e._next,r=!0),n?n._next=e:r||null!==this._firstPT||(this._firstPT=e),e._next=t,e._prev=n),e},f._mod=function(e){for(var t=this._firstPT;t;)"function"==typeof e[t.p]&&e[t.p]===Math.round&&(t.r=1),t=t._next},f._kill=function(t){var n,r,i,s=t;if(t.autoAlpha||t.alpha){s={};for(r in t)s[r]=t[r];s.opacity=1,s.autoAlpha&&(s.visibility=1)}for(t.className&&(n=this._classNamePT)&&(i=n.xfirst,i&&i._prev?this._linkCSSP(i._prev,n._next,i._prev._prev):i===this._firstPT&&(this._firstPT=n._next),n._next&&this._linkCSSP(n._next,n._next._next,i._prev),this._classNamePT=null),n=this._firstPT;n;)n.plugin&&n.plugin!==r&&n.plugin._kill&&(n.plugin._kill(t),r=n.plugin),n=n._next;return e.prototype._kill.call(this,s)};var Gt=function(e,t,n){var r,i,s,o;if(e.slice)for(i=e.length;--i>-1;)Gt(e[i],t,n);else for(r=e.childNodes,i=r.length;--i>-1;)s=r[i],o=s.type,s.style&&(t.push(nt(s)),n&&n.push(s)),1!==o&&9!==o&&11!==o||!s.childNodes.length||Gt(s,t,n)};return o.cascadeTo=function(e,n,r){var i,s,o,u,a=t.to(e,n,r),f=[a],l=[],c=[],h=[],p=t._internals.reservedProps;for(e=a._targets||a.target,Gt(e,l,h),a.render(n,!0,!0),Gt(e,c),a.render(0,!0,!0),a._enabled(!0),i=h.length;--i>-1;)if(s=rt(h[i],l[i],c[i]),s.firstMPT){s=s.difs;for(o in r)p[o]&&(s[o]=r[o]);u={};for(o in s)u[o]=l[i][o];f.push(t.fromTo(h[i],n,u,s))}return f},e.activate([o]),o},!0),function(){var e=_gsScope._gsDefine.plugin({propName:"roundProps",version:"1.6.0",priority:-1,API:2,init:function(e,t,n){return this._tween=n,!0}}),t=function(e){for(;e;)e.f||e.blob||(e.m=Math.round),e=e._next},n=e.prototype;n._onInitAllProps=function(){for(var e,n,r,i=this._tween,s=i.vars.roundProps.join?i.vars.roundProps:i.vars.roundProps.split(","),o=s.length,u={},a=i._propLookup.roundProps;--o>-1;)u[s[o]]=Math.round;for(o=s.length;--o>-1;)for(e=s[o],n=i._firstPT;n;)r=n._next,n.pg?n.t._mod(u):n.n===e&&(2===n.f&&n.t?t(n.t._firstPT):(this._add(n.t,e,n.s,n.c),r&&(r._prev=n._prev),n._prev?n._prev._next=r:i._firstPT===n&&(i._firstPT=r),n._next=n._prev=null,i._propLookup[e]=a)),n=r;return!1},n._add=function(e,t,n,r){this._addTween(e,t,n,n+r,t,Math.round),this._overwriteProps.push(t)}}(),function(){_gsScope._gsDefine.plugin({propName:"attr",API:2,version:"0.6.0",init:function(e,t,n,r){var i,s;if("function"!=typeof e.setAttribute)return!1;for(i in t)s=t[i],"function"==typeof s&&(s=s(r,e)),this._addTween(e,"setAttribute",e.getAttribute(i)+"",s+"",i,!1,i),this._overwriteProps.push(i);return!0}})}(),_gsScope._gsDefine.plugin({propName:"directionalRotation",version:"0.3.0",API:2,init:function(e,t,n,r){"object"!=typeof t&&(t={rotation:t}),this.finals={};var i,s,o,u,a,f,l=t.useRadians===!0?2*Math.PI:360,c=1e-6;for(i in t)"useRadians"!==i&&(u=t[i],"function"==typeof u&&(u=u(r,e)),f=(u+"").split("_"),s=f[0],o=parseFloat("function"!=typeof e[i]?e[i]:e[i.indexOf("set")||"function"!=typeof e["get"+i.substr(3)]?i:"get"+i.substr(3)]()),u=this.finals[i]="string"==typeof s&&"="===s.charAt(1)?o+parseInt(s.charAt(0)+"1",10)*Number(s.substr(2)):Number(s)||0,a=u-o,f.length&&(s=f.join("_"),-1!==s.indexOf("short")&&(a%=l,a!==a%(l/2)&&(a=0>a?a+l:a-l)),-1!==s.indexOf("_cw")&&0>a?a=(a+9999999999*l)%l-(a/l|0)*l:-1!==s.indexOf("ccw")&&a>0&&(a=(a-9999999999*l)%l-(a/l|0)*l)),(a>c||-c>a)&&(this._addTween(e,i,o,o+a,i),this._overwriteProps.push(i)));return!0},set:function(e){var t;if(1!==e)this._super.setRatio.call(this,e);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(e){var t,n,r,i=_gsScope.GreenSockGlobals||_gsScope,s=i.com.greensock,o=2*Math.PI,u=Math.PI/2,a=s._class,f=function(t,n){var r=a("easing."+t,function(){},!0),i=r.prototype=new e;return i.constructor=r,i.getRatio=n,r},l=e.register||function(){},c=function(e,t,n,r,i){var s=a("easing."+e,{easeOut:new t,easeIn:new n,easeInOut:new r},!0);return l(s,e),s}
vendor: 32,325 bytes, line 1
1,h=function(e,t,n){this.t=e,this.v=t,n&&(this.next=n,n.prev=this,this.c=n.v-t,this.gap=n.t-e)},p=function(t,n){var r=a("easing."+t,function(e){this._p1=e||0===e?e:1.70158,this._p2=1.525*this._p1},!0),i=r.prototype=new e;return i.constructor=r,i.getRatio=n,i.config=function(e){return new r(e)},r},d=c("Back",p("BackOut",function(e){return(e-=1)*e*((this._p1+1)*e+this._p1)+1}),p("BackIn",function(e){return e*e*((this._p1+1)*e-this._p1)}),p("BackInOut",function(e){return(e*=2)<1?.5*e*e*((this._p2+1)*e-this._p2):.5*((e-=2)*e*((this._p2+1)*e+this._p2)+2)})),v=a("easing.SlowMo",function(e,t,n){t=t||0===t?t:.7,null==e?e=.7:e>1&&(e=1),this._p=1!==e?t:0,this._p1=(1-e)/2,this._p2=e,this._p3=this._p1+this._p2,this._calcEnd=n===!0},!0),m=v.prototype=new e;return m.constructor=v,m.getRatio=function(e){var t=e+(.5-e)*this._p;return e<this._p1?this._calcEnd?1-(e=1-e/this._p1)*e:t-(e=1-e/this._p1)*e*e*e*t:e>this._p3?this._calcEnd?1-(e=(e-this._p3)/this._p1)*e:t+(e-t)*(e=(e-this._p3)/this._p1)*e*e*e:this._calcEnd?1:t},v.ease=new v(.7,.7),m.config=v.config=function(e,t,n){return new v(e,t,n)},t=a("easing.SteppedEase",function(e){e=e||1,this._p1=1/e,this._p2=e+1},!0),m=t.prototype=new e,m.constructor=t,m.getRatio=function(e){return 0>e?e=0:e>=1&&(e=.999999999),(this._p2*e>>0)*this._p1},m.config=t.config=function(e){return new t(e)},n=a("easing.RoughEase",function(t){t=t||{};for(var n,r,i,s,o,u,a=t.taper||"none",f=[],l=0,c=0|(t.points||20),p=c,d=t.randomize!==!1,v=t.clamp===!0,m=t.template instanceof e?t.template:null,g="number"==typeof t.strength?.4*t.strength:.4;--p>-1;)n=d?Math.random():1/c*p,r=m?m.getRatio(n):n,"none"===a?i=g:"out"===a?(s=1-n,i=s*s*g):"in"===a?i=n*n*g:.5>n?(s=2*n,i=s*s*.5*g):(s=2*(1-n),i=s*s*.5*g),d?r+=Math.random()*i-.5*i:p%2?r+=.5*i:r-=.5*i,v&&(r>1?r=1:0>r&&(r=0)),f[l++]={x:n,y:r};for(f.sort(function(e,t){return e.x-t.x}),u=new h(1,1,null),p=c;--p>-1;)o=f[p],u=new h(o.x,o.y,u);this._prev=new h(0,0,0!==u.t?u:u.next)},!0),m=n.prototype=new e,m.constructor=n,m.getRatio=function(e){var t=this._prev;if(e>t.t){for(;t.next&&e>=t.t;)t=t.next;t=t.prev}else for(;t.prev&&e<=t.t;)t=t.prev;return this._prev=t,t.v+(e-t.t)/t.gap*t.c},m.config=function(e){return new n(e)},n.ease=new n,c("Bounce",f("BounceOut",function(e){return 1/2.75>e?7.5625*e*e:2/2.75>e?7.5625*(e-=1.5/2.75)*e+.75:2.5/2.75>e?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375}),f("BounceIn",function(e){return(e=1-e)<1/2.75?1-7.5625*e*e:2/2.75>e?1-(7.5625*(e-=1.5/2.75)*e+.75):2.5/2.75>e?1-(7.5625*(e-=2.25/2.75)*e+.9375):1-(7.5625*(e-=2.625/2.75)*e+.984375)}),f("BounceInOut",function(e){var t=.5>e;return e=t?1-2*e:2*e-1,e=1/2.75>e?7.5625*e*e:2/2.75>e?7.5625*(e-=1.5/2.75)*e+.75:2.5/2.75>e?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375,t?.5*(1-e):.5*e+.5})),c("Circ",f("CircOut",function(e){return Math.sqrt(1-(e-=1)*e)}),f("CircIn",function(e){return-(Math.sqrt(1-e*e)-1)}),f("CircInOut",function(e){return(e*=2)<1?-0.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1)})),r=function(t,n,r){var i=a("easing."+t,function(e,t){this._p1=e>=1?e:1,this._p2=(t||r)/(1>e?e:1),this._p3=this._p2/o*(Math.asin(1/this._p1)||0),this._p2=o/this._p2},!0),s=i.prototype=new e;return s.constructor=i,s.getRatio=n,s.config=function(e,t){return new i(e,t)},i},c("Elastic",r("ElasticOut",function(e){return this._p1*Math.pow(2,-10*e)*Math.sin((e-this._p3)*this._p2)+1},.3),r("ElasticIn",function(e){return-(this._p1*Math.pow(2,10*(e-=1))*Math.sin((e-this._p3)*this._p2))},.3),r("ElasticInOut",function(e){return(e*=2)<1?-0.5*this._p1*Math.pow(2,10*(e-=1))*Math.sin((e-this._p3)*this._p2):this._p1*Math.pow(2,-10*(e-=1))*Math.sin((e-this._p3)*this._p2)*.5+1},.45)),c("Expo",f("ExpoOut",function(e){return 1-Math.pow(2,-10*e)}),f("ExpoIn",function(e){return Math.pow(2,10*(e-1))-.001}),f("ExpoInOut",function(e){return(e*=2)<1?.5*Math.pow(2,10*(e-1)):.5*(2-Math.pow(2,-10*(e-1)))})),c("Sine",f("SineOut",function(e){return Math.sin(e*u)}),f("SineIn",function(e){return-Math.cos(e*u)+1}),f("SineInOut",function(e){return-0.5*(Math.cos(Math.PI*e)-1)})),a("easing.EaseLookup",{find:function(t){return e.map[t]}},!0),l(i.SlowMo,"SlowMo","ease,"),l(n,"RoughEase","ease,"),l(t,"SteppedEase","ease,"),d},!0)}),_gsScope._gsDefine&&_gsScope._gsQueue.pop()(),function(e,t){"use strict";var n={},r=e.document,i=e.GreenSockGlobals=e.GreenSockGlobals||e;if(!i.TweenLite){var s,o,u,a,f,l=function(e){var t,n=e.split("."),r=i;for(t=0;t<n.length;t++)r[n[t]]=r=r[n[t]]||{};return r},c=l("com.greensock"),h=1e-10,p=function(e){var t,n=[],r=e.length;for(t=0;t!==r;n.push(e[t++]));return n},d=function(){},v=function(){var e=Object.prototype.toString,t=e.call([]);return function(n){return null!=n&&(n instanceof Array||"object"==typeof n&&!!n.push&&e.call(n)===t)}}(),m={},g=function(r,s,o,u){this.sc=m[r]?m[r].sc:[],m[r]=this,this.gsClass=null,this.func=o;var a=[];this.check=function(f){for(var c,h,p,d,v,y=s.length,b=y;--y>-1;)(c=m[s[y]]||new g(s[y],[])).gsClass?(a[y]=c.gsClass,b--):f&&c.sc.push(this);if(0===b&&o){if(h=("com.greensock."+r).split("."),p=h.pop(),d=l(h.join("."))[p]=this.gsClass=o.apply(o,a),u)if(i[p]=n[p]=d,v="undefined"!=typeof module&&module.exports,!v&&"function"==typeof define&&define.amd)define((e.GreenSockAMDPath?e.GreenSockAMDPath+"/":"")+r.split(".").pop(),[],function(){return d});else if(v)if(r===t){module.exports=n[t]=d;for(y in n)d[y]=n[y]}else n[t]&&(n[t][p]=d);for(y=0;y<this.sc.length;y++)this.sc[y].check()}},this.check(!0)},y=e._gsDefine=function(e,t,n,r){return new g(e,t,n,r)},b=c._class=function(e,t,n){return t=t||function(){},y(e,[],function(){return t},n),t};y.globals=i;var w=[0,0,1,1],E=b("easing.Ease",function(e,t,n,r){this._func=e,this._type=n||0,this._power=r||0,this._params=t?w.concat(t):w},!0),S=E.map={},x=E.register=function(e,t,n,r){for(var i,s,o,u,a=t.split(","),f=a.length,l=(n||"easeIn,easeOut,easeInOut").split(",");--f>-1;)for(s=a[f],i=r?b("easing."+s,null,!0):c.easing[s]||{},o=l.length;--o>-1;)u=l[o],S[s+"."+u]=S[u+s]=i[u]=e.getRatio?e:e[u]||new e};for(u=E.prototype,u._calcEnd=!1,u.getRatio=function(e){if(this._func)return this._params[0]=e,this._func.apply(null,this._params);var t=this._type,n=this._power,r=1===t?1-e:2===t?e:.5>e?2*e:2*(1-e);return 1===n?r*=r:2===n?r*=r*r:3===n?r*=r*r*r:4===n&&(r*=r*r*r*r),1===t?1-r:2===t?r:.5>e?r/2:1-r/2},s=["Linear","Quad","Cubic","Quart","Quint,Strong"],o=s.length;--o>-1;)u=s[o]+",Power"+o,x(new E(null,null,1,o),u,"easeOut",!0),x(new E(null,null,2,o),u,"easeIn"+(0===o?",easeNone":"")),x(new E(null,null,3,o),u,"easeInOut");S.linear=c.easing.Linear.easeIn,S.swing=c.easing.Quad.easeInOut;var T=b("events.EventDispatcher",function(e){this._listeners={},this._eventTarget=e||this});u=T.prototype,u.addEventListener=function(e,t,n,r,i){i=i||0;var s,o,u=this._listeners[e],l=0;for(this!==a||f||a.wake(),null==u&&(this._listeners[e]=u=[]),o=u.length;--o>-1;)s=u[o],s.c===t&&s.s===n?u.splice(o,1):0===l&&s.pr<i&&(l=o+1);u.splice(l,0,{c:t,s:n,up:r,pr:i})},u.removeEventListener=function(e,t){var n,r=this._listeners[e];if(r)for(n=r.length;--n>-1;)if(r[n].c===t)return void r.splice(n,1)},u.dispatchEvent=function(e){var t,n,r,i=this._listeners[e];if(i)for(t=i.length,t>1&&(i=i.slice(0)),n=this._eventTarget;--t>-1;)r=i[t],r&&(r.up?r.c.call(r.s||n,{type:e,target:n}):r.c.call(r.s||n))};var N=e.requestAnimationFrame,C=e.cancelAnimationFrame,k=Date.now||function(){return(new Date).getTime()},L=k();for(s=["ms","moz","webkit","o"],o=s.length;--o>-1&&!N;)N=e[s[o]+"RequestAnimationFrame"],C=e[s[o]+"CancelAnimationFrame"]||e[s[o]+"CancelRequestAnimationFrame"];b("Ticker",function(e,t){var n,i,s,o,u,l=this,c=k(),p=t!==!1&&N?"auto":!1,v=500,m=33,g="tick",y=function(e){var t,r,a=k()-L;a>v&&(c+=a-m),L+=a,l.time=(L-c)/1e3,t=l.time-u,(!n||t>0||e===!0)&&(l.frame++,u+=t+(t>=o?.004:o-t),r=!0),e!==!0&&(s=i(y)),r&&l.dispatchEvent(g)};T.call(l),l.time=l.frame=0,l.tick=function(){y(!0)},l.lagSmoothing=function(e,t){v=e||1/h,m=Math.min(t,v,0)},l.sleep=function(){null!=s&&(p&&C?C(s):clearTimeout(s),i=d,s=null,l===a&&(f=!1))},l.wake=function(e){null!==s?l.sleep():e?c+=-L+(L=k()):l.frame>10&&(L=k()-v+5),i=0===n?d:p&&N?N:function(e){return setTimeout(e,1e3*(u-l.time)+1|0)},l===a&&(f=!0),y(2)},l.fps=function(e){return arguments.length?(n=e,o=1/(n||60),u=this.time+o,void l.wake()):n},l.useRAF=function(e){return arguments.length?(l.sleep(),p=e,void l.fps(n)):p},l.fps(e),setTimeout(function(){"auto"===p&&l.frame<5&&"hidden"!==r.visibilityState&&l.useRAF(!1)},1500)}),u=c.Ticker.prototype=new c.events.EventDispatcher,u.constructor=c.Ticker;var A=b("core.Animation",function(e,t){if(this.vars=t=t||{},this._duration=this._totalDuration=e||0,this._delay=Number(t.delay)||0,this._timeScale=1,this._active=t.immediateRender===!0,this.data=t.data,this._reversed=t.reversed===!0,J){f||a.wake();var n=this.vars.useFrames?$:J;n.add(this,n._time),this.vars.paused&&this.paused(!0)}});a=A.ticker=new c.Ticker,u=A.prototype,u._dirty=u._gc=u._initted=u._paused=!1,u._totalTime=u._time=0,u._rawPrevTime=-1,u._next=u._last=u._onUpdate=u._timeline=u.timeline=null,u._paused=!1;var O=function(){f&&k()-L>2e3&&a.wake(),setTimeout(O,2e3)};O(),u.play=function(e,t){return null!=e&&this.seek(e,t),this.reversed(!1).paused(!1)},u.pause=function(e,t){return null!=e&&this.seek(e,t),this.paused(!0)},u.resume=function(e,t){return null!=e&&this.seek(e,t),this.paused(!1)},u.seek=function(e,t){return this.totalTime(Number(e),t!==!1)},u.restart=function(e,t){return this.reversed(!1).paused(!1).totalTime(e?-this._delay:0,t!==!1,!0)},u.reverse=function(e,t){return null!=e&&this.seek(e||this.totalDuration(),t),this.reversed(!0).paused(!1)},u.render=function(e,t,n){},u.invalidate=function(){return this._time=this._totalTime=0,this._initted=this._gc=!1,this._rawPrevTime=-1,(this._gc||!this.timeline)&&this._enabled(!0),this},u.isActive=function(){var e,t=this._timeline,n=this._startTime;return!t||!this._gc&&!this._paused&&t.isActive()&&(e=t.rawTime(!0))>=n&&e<n+this.totalDuration()/this._timeScale},u._enabled=function(e,t){return f||a.wake(),this._gc=!e,this._active=this.isActive(),t!==!0&&(e&&!this.timeline?this._timeline.add(this,this._startTime-this._delay):!e&&this.timeline&&this._timeline._remove(this,!0)),!1},u._kill=function(e,t){return this._enabled(!1,!1)},u.kill=function(e,t){return this._kill(e,t),this},u._uncache=function(e){for(var t=e?this:this.timeline;t;)t._dirty=!0,t=t.timeline;return this},u._swapSelfInParams=function(e){for(var t=e.length,n=e.concat();--t>-1;)"{self}"===e[t]&&(n[t]=this);return n},u._callback=function(e){var t=this.vars,n=t[e],r=t[e+"Params"],i=t[e+"Scope"]||t.callbackScope||this,s=r?r.length:0;switch(s){case 0:n.call(i);break;case 1:n.call(i,r[0]);break;case 2:n.call(i,r[0],r[1]);break;default:n.apply(i,r)}},u.eventCallback=function(e,t,n,r){if("on"===(e||"").substr(0,2)){var i=this.vars;if(1===arguments.length)return i[e];null==t?delete i[e]:(i[e]=t,i[e+"Params"]=v(n)&&-1!==n.join("").indexOf("{self}")?this._swapSelfInParams(n):n,i[e+"Scope"]=r),"onUpdate"===e&&(this._onUpdate=t)}return this},u.delay=function(e){return arguments.length?(this._timeline.smoothChildTiming&&this.startTime(this._startTime+e-this._delay),this._delay=e,this):this._delay},u.duration=function(e){return arguments.length?(this._duration=this._totalDuration=e,this._uncache(!0),this._timeline.smoothChildTiming&&this._time>0&&this._time<this._duration&&0!==e&&this.totalTime(this._totalTime*(e/this._duration),!0),this):(this._dirty=!1,this._duration)},u.totalDuration=function(e){return this._dirty=!1,arguments.length?this.duration(e):this._totalDuration},u.time=function(e,t){return arguments.length?(this._dirty&&this.totalDuration(),this.totalTime(e>this._duration?this._duration:e,t)):this._time},u.totalTime=function(e,t,n){if(f||a.wake(),!arguments.length)return this._totalTime;if(this._timeline){if(0>e&&!n&&(e+=this.totalDuration()),this._timeline.smoothChildTiming){this._dirty&&this.totalDuration();var r=this._totalDuration,i=this._timeline;if(e>r&&!n&&(e=r),this._startTime=(this._paused?this._pauseTime:i._time)-(this._reversed?r-e:e)/this._timeScale,i._dirty||this._uncache(!1),i._timeline)for(;i._timeline;)i._timeline._time!==(i._startTime+i._totalTime)/i._timeScale&&i.totalTime(i._totalTime,!0),i=i._timeline}this._gc&&this._enabled(!0,!1),(this._totalTime!==e||0===this._duration)&&(H.length&&Q(),this.render(e,t,!1),H.length&&Q())}return this},u.progress=u.totalProgress=function(e,t){var n=this.duration();return arguments.length?this.totalTime(n*e,t):n?this._time/n:this.ratio},u.startTime=function(e){return arguments.length?(e!==this._startTime&&(this._startTime=e,this.timeline&&this.timeline._sortChildren&&this.timeline.add(this,e-this._delay)),this):this._startTime},u.endTime=function(e){return this._startTime+(0!=e?this.totalDuration():this.duration())/this._timeScale},u.timeScale=function(e){if(!arguments.length)return this._timeScale;if(e=e||h,this._timeline&&this._timeline.smoothChildTiming){var t=this._pauseTime,n=t||0===t?t:this._timeline.totalTime();this._startTime=n-(n-this._startTime)*this._timeScale/e}return this._timeScale=e,this._uncache(!1)},u.reversed=function(e){return arguments.length?(e!=this._reversed&&(this._reversed=e,this.totalTime(this._timeline&&!this._timeline.smoothChildTiming?this.totalDuration()-this._totalTime:this._totalTime,!0)),this):this._reversed},u.paused=function(e){if(!arguments.length)return this._paused;var t,n,r=this._timeline;return e!=this._paused&&r&&(f||e||a.wake(),t=r.rawTime(),n=t-this._pauseTime,!e&&r.smoothChildTiming&&(this._startTime+=n,this._uncache(!1)),this._pauseTime=e?t:null,this._paused=e,this._active=this.isActive(),!e&&0!==n&&this._initted&&this.duration()&&(t=r.smoothChildTiming?this._totalTime:(t-this._startTime)/this._timeScale,this.render(t,t===this._totalTime,!0))),this._gc&&!e&&this._enabled(!0,!1),this};var M=b("core.SimpleTimeline",function(e){A.call(this,0,e),this.autoRemoveChildren=this.smoothChildTiming=!0});u=M.prototype=new A,u.constructor=M,u.kill()._gc=!1,u._first=u._last=u._recent=null,u._sortChildren=!1,u.add=u.insert=function(e,t,n,r){var i,s;if(e._startTime=Number(t||0)+e._delay,e._paused&&this!==e._timeline&&(e._pauseTime=e._startTime+(this.rawTime()-e._startTime)/e._timeScale),e.timeline&&e.timeline._remove(e,!0),e.timeline=e._timeline=this,e._gc&&e._enabled(!0,!0),i=this._last,this._sortChildren)for(s=e._startTime;i&&i._startTime>s;)i=i._prev;return i?(e._next=i._next,i._next=e):(e._next=this._first,this._first=e),e._next?e._next._prev=e:this._last=e,e._prev=i,this._recent=e,this._timeline&&this._uncache(!0),this},u._remove=function(e,t){return e.timeline===this&&(t||e._enabled(!1,!0),e._prev?e._prev._next=e._next:this._first===e&&(this._first=e._next),e._next?e._next._prev=e._prev:this._last===e&&(this._last=e._prev),e._next=e._prev=e.timeline=null,e===this._recent&&(this._recent=this._last),this._timeline&&this._uncache(!0)),this},u.render=function(e,t,n){var r,i=this._first;for(this._totalTime=this._time=this._rawPrevTime=e;i;)r=i._next,(i._active||e>=i._startTime&&!i._paused)&&(i._reversed?i.render((i._dirty?i.totalDuration():i._totalDuration)-(e-i._startTime)*i._timeScale,t,n):i.render((e-i._startTime)*i._timeScale,t,n)),i=r},u.rawTime=function(){return f||a.wake(),this._totalTime};var _=b("TweenLite",function(t,n,r){if(A.call(this,n,r),this.render=_.prototype.render,null==t)throw"Cannot tween a null target.";this.target=t="string"!=typeof t?t:_.selector(t)||t;var i,s,o,u=t.jquery||t.length&&t!==e&&t[0]&&(t[0]===e||t[0].nodeType&&t[0].style&&!t.nodeType),a=this.vars.overwrite;if(this._overwrite=a=null==a?V[_.defaultOverwrite]:"number"==typeof a?a>>0:V[a],(u||t instanceof Array||t.push&&v(t))&&"number"!=typeof t[0])for(this._targets=o=p(t),this._propLookup=[],this._siblings=[],i=0;i<o.length;i++)s=o[i],s?"string"!=typeof s?s.length&&s!==e&&s[0]&&(s[0]===e||s[0].nodeType&&s[0].style&&!s.nodeType)?(o.splice(i--,1),this._targets=o=o.concat(p(s))):(this._siblings[i]=G(s,this,!1),1===a&&this._siblings[i].length>1&&Z(s,this,null,1,this._siblings[i])):(s=o[i--]=_.selector(s),"string"==typeof s&&o.splice(i+1,1)):o.splice(i--,1);else this._propLookup={},this._siblings=G(t,this,!1),1===a&&this._siblings.length>1&&Z(t,this,null,1,this._siblings);(this.vars.immediateRender||0===n&&0===this._delay&&this.vars.immediateRender!==!1)&&(this._time=-h,this.render(Math.min(0,-this._delay)))},!0),D=function(t){return t&&t.length&&t!==e&&t[0]&&(t[0]===e||t[0].nodeType&&t[0].style&&!t.nodeType)},P=function(e,t){var n,r={};for(n in e)X[n]||n in t&&"transform"!==n&&"x"!==n&&"y"!==n&&"width"!==n&&"height"!==n&&"className"!==n&&"border"!==n||!(!U[n]||U[n]&&U[n]._autoCSS)||(r[n]=e[n],delete e[n]);e.css=r};u=_.prototype=new A,u.constructor=_,u.kill()._gc=!1,u.ratio=0,u._firstPT=u._targets=u._overwrittenProps=u._startAt=null,u._notifyPluginsOfEnabled=u._lazy=!1,_.version="1.19.1",_.defaultEase=u._ease=new E(null,null,1,1),_.defaultOverwrite="auto",_.ticker=a,_.autoSleep=120,_.lagSmoothing=function(e,t){a.lagSmoothing(e,t)},_.selector=e.$||e.jQuery||function(t){var n=e.$||e.jQuery;return n?(_.selector=n,n(t)):"undefined"==typeof r?t:r.querySelectorAll?r.querySelectorAll(t):r.getElementById("#"===t.charAt(0)?t.substr(1):t)};var H=[],B={},j=/(?:(-|-=|\+=)?\d*\.?\d*(?:e[\-+]?\d+)?)[0-9]/gi,F=function(e){for(var t,n=this._firstPT,r=1e-6;n;)t=n.blob?1===e?this.end:e?this.join(""):this.start:n.c*e+n.s,n.m?t=n.m(t,this._target||n.t):r>t&&t>-r&&!n.blob&&(t=0),n.f?n.fp?n.t[n.p](n.fp,t):n.t[n.p](t):n.t[n.p]=t,n=n._next},I=function(e,t,n,r){var i,s,o,u,a,f,l,c=[],h=0,p="",d=0;for(c.start=e,c.end=t,e=c[0]=e+"",t=c[1]=t+"",n&&(n(c),e=c[0],t=c[1]),c.length=0,i=e.match(j)||[],s=t.match(j)||[],r&&(r._next=null,r.blob=1,c._firstPT=c._applyPT=r),a=s.length,u=0;a>u;u++)l=s[u],f=t.substr(h,t.indexOf(l,h)-h),p+=f||!u?f:",",h+=f.length,d?d=(d+1)%5:"rgba("===f.substr(-5)&&(d=1),l===i[u]||i.length<=u?p+=l:(p&&(c.push(p),p=""),o=parseFloat(i[u]),c.push(o),c._firstPT={_next:c._firstPT,t:c,p:c.length-1,s:o,c:("="===l.charAt(1)?parseInt(l.charAt(0)+"1",10)*parseFloat(l.substr(2)):parseFloat(l)-o)||0,f:0,m:d&&4>d?Math.round:0}),h+=l.length;return p+=t.substr(h),p&&c.push(p),c.setRatio=F,c},q=function(e,t,n,r,i,s,o,u,a){"function"==typeof r&&(r=r(a||0,e));var f,l=typeof e[t],c="function"!==l?"":t.indexOf("set")||"function"!=typeof e["get"+t.substr(3)]?t:"get"+t.substr(3),h="get"!==n?n:c?o?e[c](o):e[c]():e[t],p="string"==typeof r&&"="===r.charAt(1),d={t:e,p:t,s:h,f:"function"===l,pg:0,n:i||t,m:s?"function"==typeof s?s:Math.round:0,pr:0,c:p?parseInt(r.charAt(0)+"1",10)*parseFloat(r.substr(2)):parseFloat(r)-h||0};return("number"!=typeof h||"number"!=typeof r&&!p)&&(o||isNaN(h)||!p&&isNaN(r)||"boolean"==typeof h||"boolean"==typeof r?(d.fp=o,f=I(h,p?d.s+d.c:r,u||_.defaultStringFilter,d),d={t:f,p:"setRatio",s:0,c:1,f:2,pg:0,n:i||t,pr:0,m:0}):(d.s=parseFloat(h),p||(d.c=parseFloat(r)-d.s||0))),d.c?((d._next=this._firstPT)&&(d._next._prev=d),this._firstPT=d,d):void 0},R=_._internals={isArray:v,isSelector:D,lazyTweens:H,blobDif:I},U=_._plugins={},z=R.tweenLookup={},W=0,X=R.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,onOverwrite:1,callbackScope:1,stringFilter:1,id:1},V={none:0,all:1,auto:2,concurrent:3,allOnStart:4,preexisting:5,"true":1,"false":0},$=A._rootFramesTimeline=new M,J=A._rootTimeline=new M,K=30,Q=R.lazyRender=function(){var e,t=H.length;for(B={};--t>-1;)e=H[t],e&&e._lazy!==!1&&(e.render(e._lazy[0],e._lazy[1],!0),e._lazy=!1);H.length=0};J._startTime=a.time,$._startTime=a.frame,J._active=$._active=!0,setTimeout(Q,1),A._updateRoot=_.render=function(){var e,t,n;if(H.length&&Q(),J.render((a.time-J._startTime)*J._timeScale,!1,!1),$.render((a.frame-$._startTime)*$._timeScale,!1,!1),H.length&&Q(),a.frame>=K){K=a.frame+(parseInt(_.autoSleep,10)||120);for(n in z){for(t=z[n].tweens,e=t.length;--e>-1;)t[e]._gc&&t.splice(e,1);0===t.length&&delete z[n]}if(n=J._first,(!n||n._paused)&&_.autoSleep&&!$._first&&1===a._listeners.tick.length){for(;n&&n._paused;)n=n._next;n||a.sleep()}}},a.addEventListener("tick",A._updateRoot);var G=function(e,t,n){var r,i,s=e._gsTweenID;if(z[s||(e._gsTweenID=s="t"+W++)]||(z[s]={target:e,tweens:[]}),t&&(r=z[s].tweens,r[i=r.length]=t,n))for(;--i>-1;)r[i]===t&&r.splice(i,1);return z[s].tweens},Y=function(e,t,n,r){var i,s,o=e.vars.onOverwrite;return o&&(i=o(e,t,n,r)),o=_.onOverwrite,o&&(s=o(e,t,n,r)),i!==!1&&s!==!1},Z=function(e,t,n,r,i){var s,o,u,a;if(1===r||r>=4){for(a=i.length,s=0;a>s;s++)if((u=i[s])!==t)u._gc||u._kill(null,e,t)&&(o=!0);else if(5===r)break;return o}var f,l=t._startTime+h,c=[],p=0,d=0===t._duration;for(s=i.length;--s>-1;)(u=i[s])===t||u._gc||u._paused||(u._timeline!==t._timeline?(f=f||et(t,0,d),0===et(u,f,d)&&(c[p++]=u)):u._startTime<=l&&u._startTime+u.totalDuration()/u._timeScale>l&&((d||!u._initted)&&l-u._startTime<=2e-10||(c[p++]=u)));for(s=p;--s>-1;)if(u=c[s],2===r&&u._kill(n,e,t)&&(o=!0),2!==r||!u._firstPT&&u._initted){if(2!==r&&!Y(u,t))continue;u._enabled(!1,!1)&&(o=!0)}return o},et=function(e,t,n){for(var r=e._timeline,i=r._timeScale,s=e._startTime;r._timeline;){if(s+=r._startTime,i*=r._timeScale,r._paused)return-100;r=r._timeline}return s/=i,s>t?s-t:n&&s===t||!e._initted&&2*h>s-t?h:(s+=e.totalDuration()/e._timeScale/i)>t+h?0:s-t-h};u._init=function(){var e,t,n,r,i,s,o=this.vars,u=this._overwrittenProps,a=this._duration,f=!!o.immediateRender,l=o.ease;if(o.startAt){this._startAt&&(this._startAt.render(-1,!0),this._startAt.kill()),i={};for(r in o.startAt)i[r]=o.startAt[r];if(i.overwrite=!1,i.immediateRender=!0,i.lazy=f&&o.lazy!==!1,i.startAt=i.delay=null,this._startAt=_.to(this.target,0,i),f)if(this._time>0)this._startAt=null;else if(0!==a)return}else if(o.runBackwards&&0!==a)if(this._startAt)this._startAt.render(-1,!0),this._startAt.kill(),this._startAt=null;else{0!==this._time&&(f=!1),n={};for(r in o)X[r]&&"autoCSS"!==r||(n[r]=o[r]);if(n.overwrite=0,n.data="isFromStart",n.lazy=f&&o.lazy!==!1,n.immediateRender=f,this._startAt=_.to(this.target,0,n),f){if(0===this._time)return}else this._startAt._init(),this._startAt._enabled(!1),this.vars.immediateRender&&(this._startAt=null)}if(this._ease=l=l?l instanceof E?l:"function"==typeof l?new E(l,o.easeParams):S[l]||_.defaultEase:_.defaultEase,o.easeParams instanceof Array&&l.config&&(this._ease=l.config.apply(l,o.easeParams)),this._easeType=this._ease._type,this._easePower=this._ease._power,this._firstPT=null,this._targets)for(s=this._targets.length,e=0;s>e;e++)this._initProps(this._targets[e],this._propLookup[e]={},this._siblings[e],u?u[e]:null,e)&&(t=!0);else t=this._initProps(this.target,this._propLookup,this._siblings,u,0);if(t&&_._onPluginEvent("_onInitAllProps",this),u&&(this._firstPT||"function"!=typeof this.target&&this._enabled(!1,!1)),o.runBackwards)for(n=this._firstPT;n;)n.s+=n.c,n.c=-n.c,n=n._next;this._onUpdate=o.onUpdate,this._initted=!0},u._initProps=function(t,n,r,i,s){var o,u,a,f,l,c;if(null==t)return!1;B[t._gsTweenID]&&Q(),this.vars.css||t.style&&t!==e&&t.nodeType&&U.css&&this.vars.autoCSS!==!1&&P(this.vars,t);for(o in this.vars)if(c=this.vars[o],X[o])c&&(c instanceof Array||c.push&&v(c))&&-1!==c.join("").indexOf("{self}")&&(this.vars[o]=c=this._swapSelfInParams(c,this));else if(U[o]&&(f=new U[o])._onInitTween(t,this.vars[o],this,s)){for(this._firstPT=l={_next:this._firstPT,t:f,p:"setRatio",s:0,c:1,f:1,n:o,pg:1,pr:f._priority,m:0},u=f._overwriteProps.length;--u>-1;)n[f._overwriteProps[u]]=this._firstPT;(f._priority||f._onInitAllProps)&&(a=!0),(f._onDisable||f._onEnable)&&(this._notifyPluginsOfEnabled=!0),l._next&&(l._next._prev=l)}else n[o]=q.call(this,t,o,"get",c,o,0,null,this.vars.stringFilter,s);return i&&this._kill(i,t)?this._initProps(t,n,r,i,s):this._overwrite>1&&this._firstPT&&r.length>1&&Z(t,this,n,this._overwrite,r)?(this._kill(n,t),this._initProps(t,n,r,i,s)):(this._firstPT&&(this.vars.lazy!==!1&&this._duration||this.vars.lazy&&!this._duration)&&(B[t._gsTweenID]=!0),a)},u.render=function(e,t,n){var r,i,s,o,u=this._time,a=this._duration,f=this._rawPrevTime;if(e>=a-1e-7&&e>=0)this._totalTime=this._time=a,this.ratio=this._ease._calcEnd?this._ease.getRatio(1):1,this._reversed||(r=!0,i="onComplete",n=n||this._timeline.autoRemoveChildren),0===a&&(this._initted||!this.vars.lazy||n)&&(this._startTime===this._timeline._duration&&(e=0),(0>f||0>=e&&e>=-1e-7||f===h&&"isPause"!==this.data)&&f!==e&&(n=!0,f>h&&(i="onReverseComplete")),this._rawPrevTime=o=!t||e||f===e?e:h);else if(1e-7>e)this._totalTime=this._time=0,this.ratio=this._ease._calcEnd?this._ease.getRatio(0):0,(0!==u||0===a&&f>0)&&(i="onReverseComplete",r=this._reversed),0>e&&(this._active=!1,0===a&&(this._initted||!this.vars.lazy||n)&&(f>=0&&(f!==h||"isPause"!==this.data)&&(n=!0),this._rawPrevTime=o=!t||e||f===e?e:h)),this._initted||(n=!0);else if(this._totalTime=this._time=e,this._easeType){var l=e/a,c=this._easeType,p=this._easePower;(1===c||3===c&&l>=.5)&&(l=1-l),3===c&&(l*=2),1===p?l*=l:2===p?l*=l*l:3===p?l*=l*l*l:4===p&&(l*=l*l*l*l),1===c?this.ratio=1-l:2===c?this.ratio=l:.5>e/a?this.ratio=l/2:this.ratio=1-l/2}else this.ratio=this._ease.getRatio(e/a);if(this._time!==u||n){if(!this._initted){if(this._init(),!this._initted||this._gc)return;if(!n&&this._firstPT&&(this.vars.lazy!==!1&&this._duration||this.vars.lazy&&!this._duration))return this._time=this._totalTime=u,this._rawPrevTime=f,H.push(this),void (this._lazy=[e,t]);this._time&&!r?this.ratio=this._ease.getRatio(this._time/a):r&&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!==u&&e>=0&&(this._active=!0),0===u&&(this._startAt&&(e>=0?this._startAt.render(e,t,n):i||(i="_dummyGS")),this.vars.onStart&&(0!==this._time||0===a)&&(t||this._callback("onStart"))),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>e&&this._startAt&&e!==-0.0001&&this._startAt.render(e,t,n),t||(this._time!==u||r||n)&&this._callback("onUpdate")),i&&(!this._gc||n)&&(0>e&&this._startAt&&!this._onUpdate&&e!==-0.0001&&this._startAt.render(e,t,n),r&&(this._timeline.autoRemoveChildren&&this._enabled(!1,!1),this._active=!1),!t&&this.vars[i]&&this._callback(i),0===a&&this._rawPrevTime===h&&o!==h&&(this._rawPrevTime=0))}},u._kill=function(e,t,n){if("all"===e&&(e=null),null!=e||null!=t&&t!==this.target){t="string"!=typeof t?t||this._targets||this.target:_.selector(t)||t;var r,i,s,o,u,a,f,l,c,h=n&&this._time&&n._startTime===this._startTime&&this._timeline===n._timeline;if((v(t)||D(t))&&"number"!=typeof t[0])for(r=t.length;--r>-1;)this._kill(e,t[r],n)&&(a=!0);else{if(this._targets){for(r=this._targets.length;--r>-1;)if(t===this._targets[r]){u=this._propLookup[r]||{},this._overwrittenProps=this._overwrittenProps||[],i=this._overwrittenProps[r]=e?this._overwrittenProps[r]||{}:"all";break}}else{if(t!==this.target)return!1;u=this._propLookup,i=this._overwrittenProps=e?this._overwrittenProps||{}:"all"}if(u){if(f=e||u,l=e!==i&&"all"!==i&&e!==u&&("object"!=typeof e||!e._tempKill),n&&(_.onOverwrite||this.vars.onOverwrite)){for(s in f)u[s]&&(c||(c=[]),c.push(s));if((c||!e)&&!Y(this,n,t,c))return!1}for(s in f)(o=u[s])&&(h&&(o.f?o.t[o.p](o.s):o.t[o.p]=o.s,a=!0),o.pg&&o.t._kill(f)&&(a=!0),o.pg&&0!==o.t._overwriteProps.length||(o._prev?o._prev._next=o._next:o===this._firstPT&&(this._firstPT=o._next),o._next&&(o._next._prev=o._prev),o._next=o._prev=null),delete u[s]),l&&(i[s]=1);!this._firstPT&&this._initted&&this._enabled(!1,!1)}}return a}return this._lazy=!1,this._enabled(!1,!1)},u.invalidate=function(){return this._notifyPluginsOfEnabled&&_._onPluginEvent("_onDisable",this),this._firstPT=this._overwrittenProps=this._startAt=this._onUpdate=null,this._notifyPluginsOfEnabled=this._active=this._lazy=!1,this._propLookup=this._targets?{}:[],A.prototype.invalidate.call(this),this.vars.immediateRender&&(this._time=-h,this.render(Math.min(0,-this._delay))),this},u._enabled=function(e,t){if(f||a.wake(),e&&this._gc){var n,r=this._targets;if(r)for(n=r.length;--n>-1;)this._siblings[n]=G(r[n],this,!0);else this._siblings=G(this.target,this,!0)}return A.prototype._enabled.call(this,e,t),this._notifyPluginsOfEnabled&&this._firstPT?_._onPluginEvent(e?"_onEnable":"_onDisable",this):!1},_.to=function(e,t,n){return new _(e,t,n)},_.from=function(e,t,n){return n.runBackwards=!0,n.immediateRender=0!=n.immediateRender,new _(e,t,n)},_.fromTo=function(e,t,n,r){return r.startAt=n,r.immediateRender=0!=r.immediateRender&&0!=n.immediateRender,new _(e,t,r)},_.delayedCall=function(e,t,n,r,i){return new _(t,0,{delay:e,onComplete:t,onCompleteParams:n,callbackScope:r,onReverseComplete:t,onReverseCompleteParams:n,immediateRender:!1,lazy:!1,useFrames:i,overwrite:0})},_.set=function(e,t){return new _(e,0,t)},_.getTweensOf=function(e,t){if(null==e)return[];e="string"!=typeof e?e:_.selector(e)||e;var n,r,i,s;if((v(e)||D(e))&&"number"!=typeof e[0]){for(n=e.length,r=[];--n>-1;)r=r.concat(_.getTweensOf(e[n],t));for(n=r.length;--n>-1;)for(s=r[n],i=n;--i>-1;)s===r[i]&&r.splice(n,1)}else for(r=G(e).concat(),n=r.length;--n>-1;)(r[n]._gc||t&&!r[n].isActive())&&r.splice(n,1);return r},_.killTweensOf=_.killDelayedCallsTo=function(e,t,n){"object"==typeof t&&(n=t,t=!1);for(var r=_.getTweensOf(e,t),i=r.length;--i>-1;)r[i]._kill(n,e)};var tt=b("plugins.TweenPlugin",function(e,t){this._overwriteProps=(e||"").split(","),this._propName=this._overwriteProps[0],this._priority=t||0,this._super=tt.prototype},!0);if(u=tt.prototype,tt.version="1.19.0",tt.API=2,u._firstPT=null,u._addTween=q,u.setRatio=F,u._kill=function(e){var t,n=this._overwriteProps,r=this._firstPT;if(null!=e[this._propName])this._overwriteProps=[];else for(t=n.length;--t>-1;)null!=e[n[t]]&&n.splice(t,1);for(;r;)null!=e[r.n]&&(r._next&&(r._next._prev=r._prev),r._prev?(r._prev._next=r._next,r._prev=null):this._firstPT===r&&(this._firstPT=r._next)),r=r._next;return!1},u._mod=u._roundProps=function(e){for(var t,n=this._firstPT;n;)t=e[this._propName]||null!=n.n&&e[n.n.split(this._propName+"_").join("")],t&&"function"==typeof t&&(2===n.f?n.t._applyPT.m=t:n.m=t),n=n._next},_._onPluginEvent=function(e,t){var n,r,i,s,o,u=t._firstPT;if("_onInitAllProps"===e){for(;u;){for(o=u._next,r=i;r&&r.pr>u.pr;)r=r._next;(u._prev=r?r._prev:s)?u._prev._next=u:i=u,(u._next=r)?r._prev=u:s=u,u=o}u=t._firstPT=i}for(;u;)u.pg&&"function"==typeof u.t[e]&&u.t[e]()&&(n=!0),u=u._next;return n},tt.activate=function(e){for(var t=e.length;--t>-1;)e[t].API===tt.API&&(U[(new e[t])._propName]=e[t]);return!0},y.plugin=function(e){if(!(e&&e.propName&&e.init&&e.API))throw"illegal plugin definition.";var t,n=e.propName,r=e.priority||0,i=e.overwriteProps,s={init:"_onInitTween",set:"setRatio",kill:"_kill",round:"_mod",mod:"_mod",initAll:"_onInitAllProps"},o=b("plugins."+n.charAt(0).toUpperCase()+n.substr(1)+"Plugin",function(){tt.call(this,n,r),this._overwriteProps=i||[]},e.global===!0),u=o.prototype=new tt(n);u.constructor=o,o.API=e.API;for(t in s)"function"==typeof e[t]&&(u[s[t]]=e[t]);return o.version=e.version,tt.activate([o]),o},s=e._gsQueue){for(o=0;o<s.length;o++)s[o]();for(u in m)m[u].func||e.console.log("GSAP encountered missing dependency: "+u)}f=!1}}("undefined"!=typeof module&&module.exports&&"undefined"!=typeof global?global:this||window,"TweenMax"),define("TweenMax",function(){}),function(e){if(typeof define=="function"&&define.amd)define("jquery-cookie",e);else if(typeof exports=="object")module.exports=e();else{var t=window.Cookies,n=window.Cookies=e();n.noConflict=function(){return window.Cookies=t,n}}}(function(){function e(){var e=0,t={};for(;e<arguments.length;e++){var n=arguments[e];for(var r in n)t[r]=n[r]}return t}function t(n){function r(t,i,s){var o;if(arguments.length>1){s=e({path:"/"},r.defaults,s);if(typeof s.expires=="number"){var u=new Date;u.setMilliseconds(u.getMilliseconds()+s.expires*864e5),s.expires=u}try{o=JSON.stringify(i),/^[\{\[]/.test(o)&&(i=o)}catch(a){}return n.write?i=n.write(i,t):i=encodeURIComponent(String(i)).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decode
1URIComponent),t=encodeURIComponent(String(t)),t=t.replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent),t=t.replace(/[\(\)]/g,escape),document.cookie=[t,"=",i,s.expires&&"; expires="+s.expires.toUTCString(),s.path&&"; path="+s.path,s.domain&&"; domain="+s.domain,s.secure?"; secure":""].join("")}t||(o={});var f=document.cookie?document.cookie.split("; "):[],l=/(%[0-9A-Z]{2})+/g,c=0;for(;c<f.length;c++){var h=f[c].split("="),p=h[0].replace(l,decodeURIComponent),d=h.slice(1).join("=");d.charAt(0)==='"'&&(d=d.slice(1,-1));try{d=n.read?n.read(d,p):n(d,p)||d.replace(l,decodeURIComponent);if(this.json)try{d=JSON.parse(d)}catch(a){}if(t===p){o=d;break}t||(o[p]=d)}catch(a){}}return o}return r.get=r.set=r,r.getJSON=function(){return r.apply({json:!0},[].slice.call(arguments))},r.defaults={},r.remove=function(t,n){r(t,"",e(n,{expires:-1}))},r.withConverter=t,r}return t(function(){})}),define("app/utils/event-mixins",["require"],function(e){var t={formatEventData:function(e,t,n){var r={},i=n!=undefined?n:!0;return r.type=e,r.data=t,r.bubbleUp=i,r}};return t}),define("app/utils/route-mixins",["require"],function(e){var t={formatLibraryPath:function(e){var t="ep";return t+e},getEpisodeNumFromParams:function(e){var t=/[ep](\d)/,n=e.match(t)[1];return n-=1,n=_.isNumber(n)?n:0,n},getTopicFromParams:function(e){var t=e.indexOf("topic/");t+=6;var n=e.substr(t)*1;return console.log("TOIPC NUM FROM PARAMS IS ",n,e),n-=1,n=_.isNumber(n)?n:0,console.log("TOIPC NUM FROM PARAMS IS ",n),n},formatWatchPath:function(e,t){var n="ep",r="/ch";return n+e+r+t},getWatchEpisodeAndChapterData:function(e){var t=/[ep](\d)/,n=/[ch](\d)/;console.log("params and data is 0",e);var r=e.match(t)[1],i=e.match(n)[1];return console.log("params and data is 1",e,r,i),r-=1,i-=1,console.log("params and data is 2",e,r,i),r=_.isNumber(r)?r:0,i=_.isNumber(i)?i:0,console.log("params and data is 3",e,r,i),{episode:r,chapter:i}}};return t}),define("app/utils/path-mixins",["require"],function(e){var t={getUrlBase:function(e,t){var n=e.toJSON();return n.loadMenu===!0?"menu":n.currentPage==="topics"?"topics":n.currentPage==="articles"?"articles":n.loadLibrary===!0?"library":n.currentPage==="player"?"watch":n.currentPage==="home"&&n.loadMenu===!1?"home":"ubu"},buildFinalUrl:function(e){var t=boeing_globals.subDirectoryPath,n=e;return t+e},buildHomelUrl:function(e){var t=boeing_globals.subDirectoryPath,n="home";if(boeing_globals.device==="mobile"){var r=boeing_globals.state.get("currentMenuEpisodeNumber"),i=_.has(boeing_globals.state.changed,"currentMenuEpisodeNumber");if(r!==-1){var s=Math.abs(r)*1;i===!0&&(s+=1);var o="/"+String(s);return t+e+o}}return t+e},createMenuUrl:function(){var e=boeing_globals.state.get("menuType");return e!=""?"menu/"+e:"menu"},createTopicsUrl:function(){var e=Math.abs(boeing_globals.state.get("currentEpisode"))+1,t=boeing_globals.state.get("currentTopic"),n=t;if(boeing_globals.topicsCollection.at(t)!=undefined){var r=boeing_globals.topicsCollection.at(t),i=r.get("escaped_title");e=r.get("topic_episode_number"),n=i}var s="library/ep"+e+"/",o="topics/"+n;return s+o},createLibraryUrl:function(){var e=Math.abs(boeing_globals.state.get("currentEpisode"))+1;return"library/ep"+e},createWatchUrl:function(){var e=boeing_globals.state.get("currentEpisode")+1,t=boeing_globals.state.get("currentChapter")+1;return"watch/ep"+e+"/ch"+t},formatWatchPath:function(e,t){var n="ep",r="/ch";return n+e+r+t},getWatchEpisodeAndChapterData:function(e,t){var n=/[ep](\d)/,r=/(ch)(\d*)/,i=e!=undefined?e.match(n)[1]:1,s=t!=undefined?t.match(r)[2]:1;return i-=1,s-=1,i=_.isNumber(i)?i:0,s=_.isNumber(s)?s:0,{currentEpisode:i,currentChapter:s}},formatLibraryPath:function(e){var t="ep";return t+e},getEpisodeNumFromParams:function(e){var t=/[ep](\d)/,n=e.match(t)[1];return n-=1,n=_.isNumber(n)?n:0,n},getTopicFromParams:function(e){var t=e.indexOf("topic/");t+=6;var n=e.substr(t)*1;return console.log("TOIPC NUM FROM PARAMS IS ",n,e),n-=1,n=_.isNumber(n)?n:0,console.log("TOIPC NUM FROM PARAMS IS ",n),n},getTopicByTitle:function(e){var t=0,n=e,r=boeing_globals.topicsCollection,i=r.where({escaped_title:n});return i!=undefined&&(t=i[0].get("num")),t},getArticleByTitle:function(e){console.log("Getting article by title");var t=0,n=e,r=boeing_globals.topicsCollection,i=r.where({escaped_title:n});return console.log("tc",i),i!=undefined&&(t=i[0].get("num")),console.log(t),t}};return t}),function(e){function t(e){return e&&e.Object===Object?e:null}function n(e){for(var t=e.length,n=new Array(t),r=0;t>r;r++)n[r]=e[r];return n}function r(e){return function(){try{return e.apply(this,arguments)}catch(t){return Qt.e=t,Qt}}}function i(e){throw e}function s(e,t){if(Yt&&t.stack&&"object"==typeof e&&null!==e&&e.stack&&-1===e.stack.indexOf(nn)){for(var n=[],r=t;r;r=r.source)r.stack&&n.unshift(r.stack);n.unshift(e.stack);var i=n.join("\n"+nn+"\n");e.stack=o(i)}}function o(e){for(var t=e.split("\n"),n=[],r=0,i=t.length;i>r;r++){var s=t[r];u(s)||a(s)||!s||n.push(s)}return n.join("\n")}function u(e){var t=l(e);if(!t)return!1;var n=t[0],r=t[1];return n===en&&r>=tn&&Iu>=r}function a(e){return-1!==e.indexOf("(module.js:")||-1!==e.indexOf("(node.js:")}function f(){if(Yt)try{throw new Error}catch(e){var t=e.stack.split("\n"),n=t[0].indexOf("@")>0?t[1]:t[2],r=l(n);if(!r)return;return en=r[0],r[1]}}function l(e){var t=/at .+ \((.+):(\d+):(?:\d+)\)$/.exec(e);if(t)return[t[1],Number(t[2])];var n=/at ([^ ]+):(\d+):(?:\d+)$/.exec(e);if(n)return[n[1],Number(n[2])];var r=/.*@(.+):(\d+)$/.exec(e);return r?[r[1],Number(r[2])]:void 0}function c(t,n,r,i,s,o){var u=Gn(t),a=u.length,f=Gn(n),l=f.length;if(a!==l&&!i)return!1;for(var c,h=a;h--;)if(c=u[h],!(i?c in n:Jn.call(n,c)))return!1;for(var p=i;++h<a;){c=u[h];var d,v=t[c],m=n[c];if(d===e?!r(v,m,i,s,o):!d)return!1;p||(p="constructor"===c)}if(!p){var g=t.constructor,y=n.constructor;if(g!==y&&"constructor"in t&&"constructor"in n&&!("function"==typeof g&&g instanceof g&&"function"==typeof y&&y instanceof y))return!1}return!0}function h(e,t,n){switch(n){case Nn:case Cn:return+e===+t;case kn:return e.name===t.name&&e.message===t.message;case On:return e!==+e?t!==+t:e===+t;case _n:case Pn:return e===t+""}return!1}function p(e){return!!e&&"object"==typeof e}function d(e){return"number"==typeof e&&e>-1&&e%1===0&&Qn>=e}function v(e){return p(e)&&d(e.length)&&!!Vn[Kn.call(e)]}function m(e,t){for(var n=-1,r=e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}function g(t,n,r,i,s,o){var u=-1,a=t.length,f=n.length;if(a!==f&&!(i&&f>a))return!1;for(;++u<a;){var l,c=t[u],h=n[u];if(l!==e){if(l)continue;return!1}if(i){if(!m(n,function(e){return c===e||r(c,e,i,s,o)}))return!1}else if(c!==h&&!r(c,h,i,s,o))return!1}return!0}function y(e,t,n,r,i,s){var o=Zn(e),u=Zn(t),a=Tn,f=Tn;
vendor: 92,674 bytes, line 1
1o||(a=Kn.call(e),a===xn?a=Mn:a!==Mn&&(o=v(e))),u||(f=Kn.call(t),f===xn&&(f=Mn));var l=a===Mn&&!Yn(e),p=f===Mn&&!Yn(t),d=a===f;if(d&&!o&&!l)return h(e,t,a);if(!r){var m=l&&Jn.call(e,"__wrapped__"),y=p&&Jn.call(t,"__wrapped__");if(m||y)return n(m?e.value():e,y?t.value():t,r,i,s)}if(!d)return!1;i||(i=[]),s||(s=[]);for(var b=i.length;b--;)if(i[b]===e)return s[b]===t;i.push(e),s.push(t);var w=(o?g:c)(e,t,n,r,i,s);return i.pop(),s.pop(),w}function b(e,t,n,r,i){return e===t?!0:null==e||null==t||!et(e)&&!p(t)?e!==e&&t!==t:y(e,t,b,n,r,i)}function w(e,t){for(var n=new Array(e),r=0;e>r;r++)n[r]=t();return n}function E(e,t){this.id=e,this.value=t}function S(e,t){this.scheduler=e,this.disposable=t,this.isDisposed=!1}function x(e,t){t.isDisposed||(t.isDisposed=!0,t.disposable.dispose())}function T(e){this._s=e,this.isDisposed=!1}function N(e){this._s=e}function C(e){this._s=e,this._l=e.length,this._i=0}function k(e){this._a=e}function L(e){this._a=e,this._l=_(e),this._i=0}function A(e){return"number"==typeof e&&qt.isFinite(e)}function O(t){var n,r=t[mn];if(!r&&"string"==typeof t)return n=new N(t),n[mn]();if(!r&&t.length!==e)return n=new k(t),n[mn]();if(!r)throw new TypeError("Object is not iterable");return t[mn]()}function M(e){var t=+e;return 0===t?t:isNaN(t)?t:0>t?-1:1}function _(e){var t=+e.length;return isNaN(t)?0:0!==t&&A(t)?(t=M(t)*Math.floor(Math.abs(t)),0>=t?0:t>yi?yi:t):t}function D(e,t){return Sr(e)||(e=Ar),new wi(t,e)}function P(e,t){this.observer=e,this.parent=t}function H(e,t){return e.amb(t)}function B(){return!1}function j(){for(var e=arguments.length,t=new Array(e),n=0;e>n;n++)t[n]=arguments[n];return t}function B(){return!1}function j(){for(var e=arguments.length,t=new Array(e),n=0;e>n;n++)t[n]=arguments[n];return t}function B(){return!1}function F(){return[]}function B(){return!1}function F(){return[]}function j(){for(var e=arguments.length,t=new Array(e),n=0;e>n;n++)t[n]=arguments[n];return t}function I(e){return function(t){return e.subscribe(t)}}function q(e){return e.toArray()}function R(e){return e.length>0}function U(e){return{"@@iterator":function(){return{next:function(){return{done:!1,value:e}}}}}}function U(e){return{"@@iterator":function(){return{next:function(){return{done:!1,value:e}}}}}}function z(e,t,n){for(var r=0,i=e.length;i>r;r++)if(n(e[r],t))return r;return-1}function W(e){this.comparer=e,this.set=[]}function X(t,n){return function(r){for(var i=r,s=0;n>s;s++){var o=i[t[s]];if("undefined"==typeof o)return e;i=o}return i}}function V(e){if(0===e.length)throw new ln;return e[0]}function $(e,t,n,r){var i=wn(t,n,3);return new Ou(function(t){return e.subscribe(new po(t,e,i,r))},e)}function J(e){return e?Gr.isObservable(e)?e:Jt(e)?Gr.fromPromise(e):Z(e)||Y(e)?xo.call(this,e):Kt(e)?G.call(this,e):bn(e)||yn(e)?K.call(this,e):et(e)?Q.call(this,e):e:e}function K(e){return Gr.from(e).concatMap(function(e){return Gr.isObservable(e)||et(e)?J.call(null,e):Rt.Observable.just(e)}).toArray()}function Q(t){function n(t,n){r[n]=e,s.push(t.map(function(e){r[n]=e}))}for(var r=new t.constructor,i=Object.keys(t),s=[],o=0,u=i.length;u>o;o++){var a=i[o],f=J.call(this,t[a]);f&&Gr.isObservable(f)?n(f,a):r[a]=t[a]}return Gr.forkJoin.apply(Gr,s).map(function(){return r})}function G(e){var t=this;return new Ou(function(n){e.call(t,function(){var e=arguments[0],t=arguments[1];if(e)return n.onError(e);if(arguments.length>2){for(var r=[],i=1,s=arguments.length;s>i;i++)r.push(arguments[i]);t=r}n.onNext(t),n.onCompleted()})})}function Y(e){return Kt(e.next)&&Kt(e["throw"])}function Z(e){var t=e.constructor;return t?"GeneratorFunction"===t.name||"GeneratorFunction"===t.displayName?!0:Y(t.prototype):!1}function et(e){return Object==e.constructor}function tt(e,t,n,r){var i=new Hu;return r.push(nt(i,t,n)),e.apply(t,r),i.asObservable()}function nt(e,t,n){return function(){for(var r=arguments.length,i=new Array(r),s=0;r>s;s++)i[s]=arguments[s];if(Kt(n)){if(i=Gt(n).apply(t,i),i===Qt)return e.onError(i.e);e.onNext(i)}else i.length<=1?e.onNext(i[0]):e.onNext(i);e.onCompleted()}}function rt(e,t,n,r){var i=new Hu;return r.push(it(i,t,n)),e.apply(t,r),i.asObservable()}function it(e,t,n){return function(){var r=arguments[0];if(r)return e.onError(r);for(var i=arguments.length,s=[],o=1;i>o;o++)s[o-1]=arguments[o];if(Kt(n)){var s=Gt(n).apply(t,s);if(s===Qt)return e.onError(s.e);e.onNext(s)}else s.length<=1?e.onNext(s[0]):e.onNext(s);e.onCompleted()}}function st(e){return qt.StaticNodeList?e instanceof qt.StaticNodeList||e instanceof qt.NodeList:"[object NodeList]"===Object.prototype.toString.call(e)}function ot(e,t,n){this._e=e,this._n=t,this._fn=n,this._e.addEventListener(this._n,this._fn,!1),this.isDisposed=!1}function ut(e,t,n){var r=new or,i=Object.prototype.toString.call(e);if(st(e)||"[object HTMLCollection]"===i)for(var s=0,o=e.length;o>s;s++)r.add(ut(e.item(s),t,n));else e&&r.add(new ot(e,t,n));return r}function at(e,t,n){return new Ou(function(r){function i(e,t){if(f[t]=e,o[t]=!0,u||(u=o.every(zt))){if(s)return r.onError(s);var i=Gt(n).apply(null,f);if(i===Qt)return r.onError(i.e);r.onNext(i)}a&&f[1]&&r.onCompleted()}var s,o=[!1,!1],u=!1,a=!1,f=new Array(2);return new mr(e.subscribe(function(e){i(e,0)},function(e){f[1]?r.onError(e):s=e},function(){a=!0,f[1]&&r.onCompleted()}),t.subscribe(function(e){i(e,1)},function(e){r.onError(e)},function(){a=!0,i(!0,1)}))},e)}function q(e){return e.toArray()}function ft(e,t){return e.groupJoin(this,t,mi,function(e,t){return t})}function lt(e){var t=this;return new Ou(function(n){var r=new Pu,i=new or,s=new yr(i);return n.onNext(rr(r,s)),i.add(t.subscribe(function(e){r.onNext(e)},function(e){r.onError(e),n.onError(e)},function(){r.onCompleted(),n.onCompleted()})),Jt(e)&&(e=li(e)),i.add(e.subscribe(function(e){r.onCompleted(),r=new Pu,n.onNext(rr(r,s))},function(e){r.onError(e),n.onError(e)},function(){r.onCompleted(),n.onCompleted()})),s},t)}function ct(e){var t=this;return new Ou(function(n){function r(){var t;try{t=e()}catch(s){return void n.onError(s)}Jt(t)&&(t=li(t));var a=new dr;i.setDisposable(a),a.setDisposable(t.take(1).subscribe(Ut,function(e){u.onError(e),n.onError(e)},function(){u.onCompleted(),u=new Pu,n.onNext(rr(u,o)),r()}))}var i=new vr,s=new or(i),o=new yr(s),u=new Pu;return n.onNext(rr(u,o)),s.add(t.subscribe(function(e){u.onNext(e)},function(e){u.onError(e),n.onError(e)},function(){u.onCompleted(),n.onCompleted()})),r(),o},t)}function ht(e,t){return new qo(e,t)}function j(){for(var e=arguments.length,t=new Array(e),n=0;e>n;n++)t[n]=arguments[n];return t}function pt(e){this.patterns=e}function dt(e,t){this.expression=e,this.selector=t}function vt(e){return function(t){e.onError(t)}}function mt(e,t){return function(){var n=Gt(e.selector).apply(e,arguments);return n===Qt?t.onError(n.e):void t.onNext(n)}}function gt(e,t,n){var r=e.get(t);if(!r){var i=new Jo(t,n);return e.set(t,i),i}return r}function yt(e,t,n){this.joinObserverArray=e,this.onNext=t,this.onCompleted=n,this.joinObservers=new $o;for(var r=0,i=this.joinObserverArray.length;i>r;r++){var s=this.joinObserverArray[r];this.joinObservers.set(s,s)}}function bt(e,t){return new Ko(e,t)}function wt(e,t,n){return new Ou(function(r){var i=e,s=Er(t);return n.scheduleRecursiveFuture(0,i,function(e,t){if(s>0){var o=n.now();i=new Date(i.getTime()+s),i.getTime()<=o&&(i=new Date(o+s))}r.onNext(e),t(e+1,new Date(i))})})}function Et(e,t,n){return e===t?new Ou(function(e){return n.schedulePeriodic(0,t,function(t){return e.onNext(t),t+1})}):pi(function(){return wt(new Date(n.now()+e),t,n)})}function St(e,t,n){return new Ou(function(r){var i,s=!1,o=new vr,u=null,a=[],f=!1;return i=e.materialize().timestamp(n).subscribe(function(e){var i,l;"E"===e.value.kind?(a=[],a.push(e),u=e.value.error,l=!f):(a.push({value:e.value,timestamp:e.timestamp+t}),l=!s,s=!0),l&&(null!==u?r.onError(u):(i=new dr,o.setDisposable(i),i.setDisposable(n.scheduleRecursiveFuture(null,t,function(e,t){var i,o,l,c;if(null===u){f=!0;do l=null,a.length>0&&a[0].timestamp-n.now()<=0&&(l=a.shift().value),null!==l&&l.accept(r);while(null!==l);c=!1,o=0,a.length>0?(c=!0,o=Math.max(0,a[0].timestamp-n.now())):s=!1,i=u,f=!1,null!==i?r.onError(i):c&&t(null,o)}}))))}),new mr(i,o)},e)}function xt(e,t,n){return pi(function(){return St(e,t-n.now(),n)})}function Tt(e,t,n){var r,i;return Kt(t)?i=t:(r=t,i=n),new Ou(function(t){function n(){a.setDisposable(e.subscribe(function(e){var n=Gt(i)(e);if(n===Qt)return t.onError(n.e);var r=new dr;o.add(r),r.setDisposable(n.subscribe(function(){t.onNext(e),o.remove(r),s()},function(e){t.onError(e)},function(){t.onNext(e),o.remove(r),s()}))},function(e){t.onError(e)},function(){u=!0,a.dispose(),s()}))}function s(){u&&0===o.length&&t.onCompleted()}var o=new or,u=!1,a=new vr;return r?a.setDisposable(r.subscribe(n,function(e){t.onError(e)},n)):n(),new mr(a,o)},e)}function Nt(e,t){return new Ou(function(n){var r,i=!1,s=new vr,o=0,u=e.subscribe(function(e){var u=Gt(t)(e);if(u===Qt)return n.onError(u.e);Jt(u)&&(u=li(u)),i=!0,r=e,o++;var a=o,f=new dr;s.setDisposable(f),f.setDisposable(u.subscribe(function(){i&&o===a&&n.onNext(r),i=!1,f.dispose()},function(e){n.onError(e)},function(){i&&o===a&&n.onNext(r),i=!1,f.dispose()}))},function(e){s.dispose(),n.onError(e),i=!1,o++},function(){s.dispose(),i&&n.onNext(r),n.onCompleted(),i=!1,o++});return new mr(u,s)},e)}function q(e){return e.toArray()}function q(e){return e.toArray()}function Ct(e,t,n,r){return Kt(t)&&(r=n,n=t,t=Ni()),Gr.isObservable(r)||(r=Mi(new ou)),new Ou(function(i){function s(e){function t(){return c=n===l}var n=l,s=new dr;a.setDisposable(s),s.setDisposable(e.subscribe(function(){t()&&u.setDisposable(r.subscribe(i)),s.dispose()},function(e){t()&&i.onError(e)},function(){t()&&u.setDisposable(r.subscribe(i))}))}function o(){var e=!c;return e&&l++,e}var u=new vr,a=new vr,f=new dr;u.setDisposable(f);var l=0,c=!1;return s(t),f.setDisposable(e.subscribe(function(e){if(o()){i.onNext(e);var t=Gt(n)(e);if(t===Qt)return i.onError(t.e);s(Jt(t)?li(t):t)}},function(e){o()&&i.onError(e)},function(){o()&&i.onCompleted()})),new mr(u,a)},e)}function kt(e,t,n,r){return Sr(n)&&(r=n,n=Mi(new ou)),n instanceof Error&&(n=Mi(n)),Sr(r)||(r=Pr),Gr.isObservable(n)||(n=Mi(new ou)),new Ou(function(i){function s(){var e=o;l.setDisposable(r.scheduleFuture(null,t,function(){f=o===e,f&&(Jt(n)&&(n=li(n)),a.setDisposable(n.subscribe(i)))}))}var o=0,u=new dr,a=new vr,f=!1,l=new vr;return a.setDisposable(u),s(),u.setDisposable(e.subscribe(function(e){f||(o++,i.onNext(e),s())},function(e){f||(o++,i.onError(e))},function(){f||(o++,i.onCompleted())})),new mr(a,l)},e)}function Lt(e){return{"@@transducer/init":function(){return e},"@@transducer/step":function(e,t){return e.onNext(t)},"@@transducer/result":function(e){return e.onCompleted()}}}function At(e){this.predicate=e}function Ot(e){this.predicate=e}function Mt(e,t){var n=this;this.scheduler=e,this.messages=t,this.subscriptions=[],this.observers=[];for(var r=0,i=this.messages.length;i>r;r++){var s=this.messages[r],o=s.value;!function(t){e.scheduleAbsolute(null,s.time,function(){for(var e=n.observers.slice(0),r=0,i=e.length;i>r;r++)t.accept(e[r]);return lr})}(o)}}var _t={"function":!0,object:!0},Dt=_t[typeof exports]&&exports&&!exports.nodeType?exports:null,Pt=_t[typeof module]&&module&&!module.nodeType?module:null,Ht=t(Dt&&Pt&&"object"==typeof global&&global),Bt=t(_t[typeof self]&&self),jt=t(_t[typeof window]&&window),Ft=Pt&&Pt.exports===Dt?Dt:null,It=t(_t[typeof this]&&this),qt=Ht||jt!==(It&&It.window)&&jt||Bt||It||Function("return this")(),Rt={internals:{},config:{Promise:qt.Promise},helpers:{}},Ut=Rt.helpers.noop=function(){},zt=Rt.helpers.identity=function(e){return e},Wt=Rt.helpers.defaultNow=function(){return Date.now?Date.now:function(){return+(new Date)}}(),Xt=Rt.helpers.defaultComparer=function(e,t){return er(e,t)},Vt=Rt.helpers.defaultSubComparer=function(e,t){return e>t?1:t>e?-1:0},$t=(Rt.helpers.defaultKeySerializer=function(e){return e.toString()},Rt.helpers.defaultError=function(e){throw e}),Jt=Rt.helpers.isPromise=function(e){return!!e&&"function"!=typeof e.subscribe&&"function"==typeof e.then},Kt=Rt.helpers.isFunction=function(){var e=function(e){return"function"==typeof e||!1};return e(/x/)&&(e=function(e){return"function"==typeof e&&"[object Function]"==rn.call(e)}),e}(),Qt={e:{}},Gt=Rt.internals.tryCatch=function(e){if(!Kt(e))throw new TypeError("fn must be a function");return r(e)};Rt.config.longStackSupport=!1;var Yt=!1,Zt=Gt(function(){throw new Error})();Yt=!!Zt.e&&!!Zt.e.stack;var en,tn=f(),nn="From previous event:",rn=Object.prototype.toString,sn="[object Array]",on="[object Function]",un="[object String]";Array.prototype.forEach||(Array.prototype.forEach=function(e,t){var n,r;if(null==this)throw new TypeError(" this is null or not defined");var i=Object(this),s=i.length>>>0;if("function"!=typeof e)throw new TypeError(e+" is not a function");for(arguments.length>1&&(n=t),r=0;s>r;){var o;r in i&&(o=i[r],e.call(n,o,r,i)),r++}});var an=Object("a"),fn="a"!==an[0]||!(0 in an);Array.prototype.every||(Array.prototype.every=function(e){var t=Object(this),n=fn&&rn.call(this)===un?this.split(""):t,r=n.length>>>0,i=arguments[1];if(rn.call(e)!==on)throw new TypeError(e+" is not a function");for(var s=0;r>s;s++)if(s in n&&!e.call(i,n[s],s,t))return!1;return!0}),Array.prototype.map||(Array.prototype.map=function(e){var t=Object(this),n=fn&&rn.call(this)===un?this.split(""):t,r=n.length>>>0,i=new Array(r),s=arguments[1];if(rn.call(e)!==on)throw new TypeError(e+" is not a function");for(var o=0;r>o;o++)o in n&&(i[o]=e.call(s,n[o],o,t));return i}),Array.prototype.filter||(Array.prototype.filter=function(e){for(var t,n=[],r=new Object(this),i=0,s=r.length>>>0;s>i;i++)t=r[i],i in r&&e.call(arguments[1],t,i,r)&&n.push(t);return n}),Array.isArray||(Array.isArray=function(e){return rn.call(e)===sn}),Array.prototype.indexOf||(Array.prototype.indexOf=function(e){var t=Object(this),n=t.length>>>0;if(0===n)return-1;var r=0;if(arguments.length>1&&(r=Number(arguments[1]),r!==r?r=0:0!==r&&r!==1/0&&r!==-1/0&&(r=(r>0||-1)*Math.floor(Math.abs(r)))),r>=n)return-1;for(var i=r>=0?r:Math.max(n-Math.abs(r),0);n>i;i++)if(i in t&&t[i]===e)return i;return-1}),Object.prototype.propertyIsEnumerable||(Object.prototype.propertyIsEnumerable=function(e){for(var t in this)if(t===e)return!0;return!1}),Object.keys||(Object.keys=function(){"use strict";var e=Object.prototype.hasOwnProperty,t=!{toString:null}.propertyIsEnumerable("toString");return function(n){if("object"==typeof n||"function"==typeof n&&null!==n){var r,i,s=[];for(r in n)e.call(n,r)&&s.push(r);if(t)for(i=0;Sn>i;i++)e.call(n,En[i])&&s.push(En[i]);return s}throw new TypeError("Object.keys called on non-object")}}()),"function"!=typeof Object.create&&(Object.create=function(){function e(){}var t=Object.prototype.hasOwnProperty;return function(n){if("object"!=typeof n)throw new TypeError("Object prototype may only be an Object or null");e.prototype=n;var r=new e;if(e.prototype=null,arguments.length>1){var i=Object(arguments[1]);for(var s in i)t.call(i,s)&&(r[s]=i[s])}return r}}()),qt.Element&&qt.Element.prototype.attachEvent&&!qt.Element.prototype.addEventListener&&function(){function e(e,t){Window.prototype[e]=HTMLDocument.prototype[e]=Element.prototype[e]=t}function t(){t.interval&&document.body&&(t.interval=clearInterval(t.interval),document.dispatchEvent(new CustomEvent("DOMContentLoaded")))}e("addEventListener",function(e,t){var n=this,r=n._c1_listeners=n._c1_listeners||{},i=r[e]=r[e]||[];n.attachEvent("on"+e,i.event=function(e){e||(e=qt.event);var t=n.document&&n.document.documentElement||n.documentElement||{scrollLeft:0,scrollTop:0};switch(e.currentTarget=n,e.pageX=e.clientX+t.scrollLeft,e.pageY=e.clientY+t.scrollTop,e.preventDefault=function(){if(e.bubbledKeyCode=e.keyCode,e.ctrlKey)try{e.keyCode=0}catch(e){}e.defaultPrevented=!0,e.returnValue=!1,e.modified=!0,e.returnValue=!1},e.stopImmediatePropagation=function(){l=!1,e.cancelBubble=!0},e.stopPropagation=function(){e.cancelBubble=!0},e.relatedTarget=e.fromElement||null,e.target=e.srcElement||n,e.timeStamp=+(new Date),e.type){case"keypress":var r="charCode"in e?e.charCode:e.keyCode;10===r?(r=0,e.keyCode=13):13===r||27===r?r=0:3===r&&(r=99),e.charCode=r,e.keyChar=e.charCode?String.fromCharCode(e.charCode):""}var s={};for(var o in e)s[o]=e[o];for(var u,a=0,f=[].concat(i),l=!0;l&&(u=f[a]);++a)for(var c,h=0;c=i[h];++h)if(c===u){c.call(n,s);break}}),i.push(t)}),e("removeEventListener",function(e,t){for(var n,r=this,i=r._c1_listeners=r._c1_listeners||{},s=i[e]=i[e]||[],o=s.length-1;n=s[o];--o)if(n===t){s.splice(o,1);break}!s.length&&s.event&&r.detachEvent("on"+e,s.event)}),e("dispatchEvent",function(e){var t=this,n=e.type,r=t._c1_listeners=t._c1_listeners||{},i=r[n]=r[n]||[];try{return t.fireEvent("on"+n,e)}catch(s){return i.event&&i.event(e)}}),t.interval=setInterval(t,1),qt.addEventListener("load",t)}(),(!qt.CustomEvent||"object"==typeof qt.CustomEvent)&&function(){function t(t,n){var r;n=n||{bubbles:!1,cancelable:!1,detail:e};try{document.createEvent?(r=document.createEvent("CustomEvent"),r.initCustomEvent(t,n.bubbles,n.cancelable,n.detail)):document.createEventObject&&(r=document.createEventObject())}catch(i){r=document.createEvent("Event"),r.initEvent(t,n.bubbles,n.cancelable),r.detail=n.detail}return r}qt.CustomEvent&&(t.prototype=qt.CustomEvent.prototype),qt.CustomEvent=t}();var ln=Rt.EmptyError=function(){this.message="Sequence contains no elements.",Error.call(this)};ln.prototype=Object.create(Error.prototype),ln.prototype.name="EmptyError";var cn=Rt.ObjectDisposedError=function(){this.message="Object has been disposed",Error.call(this)};cn.prototype=Object.create(Error.prototype),cn.prototype.name="ObjectDisposedError";var hn=Rt.ArgumentOutOfRangeError=function(){this.message="Argument out of range",Error.call(this)};hn.prototype=Object.create(Error.prototype),hn.prototype.name="ArgumentOutOfRangeError";var pn=Rt.NotSupportedError=function(e){this.message=e||"This operation is not supported",Error.call(this)};pn.prototype=Object.create(Error.prototype),pn.prototype.name="NotSupportedError";var dn=Rt.NotImplementedError=function(e){this.message=e||"This operation is not implemented",Error.call(this)};dn.prototype=Object.create(Error.prototype),dn.prototype.name="NotImplementedError";var vn=Rt.helpers.notImplemented=function(){throw new dn},mn=(Rt.helpers.notSupported=function(){throw new pn},"function"==typeof Symbol&&Symbol.iterator||"_es6shim_iterator_");qt.Set&&"function"==typeof (new qt.Set)["@@iterator"]&&(mn="@@iterator");var gn=Rt.doneEnumerator={done:!0,value:e},yn=Rt.helpers.isIterable=function(t){return t&&t[mn]!==e},bn=Rt.helpers.isArrayLike=function(t){return t&&t.length!==e};Rt.helpers.iterator=mn;var wn=Rt.internals.bindCallback=function(e,t,n){if("undefined"==typeof t)return e;switch(n){case 0:return function(){return e.call(t)};case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,i){return e.call(t,n,r,i)}}return function(){return e.apply(t,arguments)}},En=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],Sn=En.length,xn="[object Arguments]",Tn="[object Array]",Nn="[object Boolean]",Cn="[object Date]",kn="[object Error]",Ln="[object Function]",An="[object Map]",On="[object Number]",Mn="[object Object]",_n="[object RegExp]",Dn="[object Set]",Pn="[object String]",Hn="[object WeakMap]",Bn="[object ArrayBuffer]",jn="[object Float32Array]",Fn="[object Float64Array]",In="[object Int8Array]",qn="[object Int16Array]",Rn="[object Int32Array]",Un="[object Uint8Array]",zn="[object Uint8ClampedArray]",Wn="[object Uint16Array]",Xn="[object Uint32Array]",Vn={};Vn[jn]=Vn[Fn]=Vn[In]=Vn[qn]=Vn[Rn]=Vn[Un]=Vn[zn]=Vn[Wn]=Vn[Xn]=!0,Vn[xn]=Vn[Tn]=Vn[Bn]=Vn[Nn]=Vn[Cn]=Vn[kn]=Vn[Ln]=Vn[An]=Vn[On]=Vn[Mn]=Vn[_n]=Vn[Dn]=Vn[Pn]=Vn[Hn]=!1;var $n=Object.prototype,Jn=$n.hasOwnProperty,Kn=$n.toString,Qn=Math.pow(2,53)-1,Gn=Object.keys||function(){var e=Object.prototype.hasOwnProperty,t=!{toString:null}.propertyIsEnumerable("toString"),n=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],r=n.length;return function(i){if("object"==typeof i||"function"==typeof i&&null!==i){var s,o,u=[];for(s in i)e.call(i,s)&&u.push(s);if(t)for(o=0;r>o;o++)e.call(i,n[o])&&u.push(n[o]);return u}throw new TypeError("Object.keys called on non-object")}}(),et=Rt.internals.isObject=function(e){var t=typeof e;return!!e&&("object"===t||"function"===t)},Yn=function(){try{Object({toString:0}+"")}catch(e){return function(){return!1}}return function(e){return"function"!=typeof e.toString&&"string"==typeof (e+"")}}(),Zn=Array.isArray||function(e){return p(e)&&d(e.length)&&Kn.call(e)===Tn},er=Rt.internals.isEqual=function(e,t){return b(e,t)},tr=({}.hasOwnProperty,Array.prototype.slice,Rt.internals.inherits=function(e,t){function n(){this.constructor=e}n.prototype=t.prototype,e.prototype=new n}),nr=Rt.internals.addProperties=function(e){for(var t=[],n=1,r=arguments.length;r>n;n++)t.push(arguments[n]);for(var i=0,s=t.length;s>i;i++){var o=t[i];for(var u in o)e[u]=o[u]}},rr=Rt.internals.addRef=function(e,t){return new Ou(function(n){return new mr(t.getDisposable(),e.subscribe(n))})};E.prototype.compareTo=function(e){var t=this.value.compareTo(e.value);return 0===t&&(t=this.id-e.id),t};var ir=Rt.internals.PriorityQueue=function(e){this.items=new Array(e),this.length=0},sr=ir.prototype;sr.isHigherPriority=function(e,t){return this.items[e].compareTo(this.items[t])<0},sr.percolate=function(e){if(!(e>=this.length||0>e)){var t=e-1>>1;if(!(0>t||t===e)&&this.isHigherPriority(e,t)){var n=this.items[e];this.items[e]=this.items[t],this.items[t]=n,this.percolate(t)}}},sr.heapify=function(e){if(+e||(e=0),!(e>=this.length||0>e)){var t=2*e+1,n=2*e+2,r=e;if(t<this.length&&this.isHigherPriority(t,r)&&(r=t),n<this.length&&this.isHigherPriority(n,r)&&(r=n),r!==e){var i=this.items[e];this.items[e]=this.items[r],this.items[r]=i,this.heapify(r)}}},sr.peek=function(){return this.items[0].value},sr.removeAt=function(t){this.items[t]=this.items[--this.length],this.items[this.length]=e,this.heapify()},sr.dequeue=function(){var e=this.peek();return this.removeAt(0),e},sr.enqueue=function(e){var t=this.length++;this.items[t]=new E(ir.count++,e),this.percolate(t)},sr.remove=function(e){for(var t=0;t<this.length;t++)if(this.items[t].value===e)return this.removeAt(t),!0;return!1},ir.count=0;var or=Rt.CompositeDisposable=function(){var e,t,n=[];if(Array.isArray(arguments[0]))n=arguments[0];else for(t=arguments.length,n=new Array(t),e=0;t>e;e++)n[e]=arguments[e];this.disposables=n,this.isDisposed=!1,this.length=n.length},ur=or.prototype;ur.add=function(e){this.isDisposed?e.dispose():(this.disposables.push(e),this.length++)},ur.remove=function(e){var t=!1;if(!this.isDisposed){var n=this.disposables.indexOf(e);-1!==n&&(t=!0,this.disposables.splice(n,1),this.length--,e.dispose())}return t},ur.dispose=function(){if(!this.isDisposed){this.isDisposed=!0;for(var e=this.disposables.length,t=new Array(e),n=0;e>n;n++)t[n]=this.disposables[n];for(this.disposables=[],this.length=0,n=0;e>n;n++)t[n].dispose()}};var ar=Rt.Disposable=function(e){this.isDisposed=!1,this.action=e||Ut};ar.prototype.dispose=function(){this.isDisposed||(this.action(),this.isDisposed=!0)};var fr=ar.create=function(e){return new ar(e)},lr=ar.empty={dispose:Ut},cr=ar.isDisposable=function(e){return e&&Kt(e.dispose)},hr=ar.checkDisposed=function(e){if(e.isDisposed)throw new cn},pr=ar._fixup=function(e){return cr(e)?e:lr},dr=Rt.SingleAssignmentDisposable=function(){this.isDisposed=!1,this.current=null};dr.prototype.getDisposable=function(){return this.current},dr.prototype.setDisposable=function(e){if(this.current)throw new Error("Disposable has already been assigned");var t=this.isDisposed;!t&&(this.current=e),t&&e&&e.dispose()},dr.prototype.dispose=function(){if(!this.isDisposed){this.isDisposed=!0;var e=this.current;this.current=null,e&&e.dispose()}};var vr=Rt.SerialDisposable=function(){this.isDisposed=!1,this.current=null};vr.prototype.getDisposable=function(){return this.current},vr.prototype.setDisposable=function(e){var t=this.isDisposed;if(!t){var n=this.current;this.current=e}n&&n.dispose(),t&&e&&e.dispose()},vr.prototype.dispose=function(){if(!this.isDisposed){this.isDisposed=!0;var e=this.current;this.current=null}e&&e.dispose()};var mr=Rt.BinaryDisposable=function(e,t){this._first=e,this._second=t,this.isDisposed=!1};mr.prototype.dispose=function(){if(!this.isDisposed){this.isDisposed=!0;var e=this._first;this._first=null,e&&e.dispose();var t=this._second;this._second=null,t&&t.dispose()}};var gr=Rt.NAryDisposable=function(e){this._disposables=e,this.isDisposed=!1};gr.prototype.dispose=function(){if(!this.isDisposed){this.isDisposed=!0;for(var e=0,t=this._disposables.length;t>e;e++)this._disposables[e].dispose();this._disposables.length=0}};var yr=Rt.RefCountDisposable=function(){function e(e){this.disposable=e,this.disposable.count++,this.isInnerDisposed=!1}function t(e){this.underlyingDisposable=e,this.isDisposed=!1,this.isPrimaryDisposed=!1,this.count=0}return e.prototype.dispose=function(){this.disposable.isDisposed||this.isInnerDisposed||(this.isInnerDisposed=!0,this.disposable.count--,0===this.disposable.count&&this.disposable.isPrimaryDisposed&&(this.disposable.isDisposed=!0,this.disposable.underlyingDisposable.dispose()))},t.prototype.dispose=function(){this.isDisposed||this.isPrimaryDisposed||(this.isPrimaryDisposed=!0,0===this.count&&(this.isDisposed=!0,this.underlyingDisposable.dispose()))},t.prototype.getDisposable=function(){return this.isDisposed?lr:new e(this)},t}();S.prototype.dispose=function(){this.scheduler.schedule(this,x)};var br=Rt.internals.ScheduledItem=function(e,t,n,r,i){this.scheduler=e,this.state=t,this.action=n,this.dueTime=r,this.comparer=i||Vt,this.disposable=new dr};br.prototype.invoke=function(){this.disposable.setDisposable(this.invokeCore())},br.prototype.compareTo=function(e){return this.comparer(this.dueTime,e.dueTime)},br.prototype.isCancelled=function(){return this.disposable.isDisposed},br.prototype.invokeCore=function(){return pr(this.action(this.scheduler,this.state))};var wr=Rt.Scheduler=function(){function e(){}e.isScheduler=function(t){return t instanceof e};var t=e.prototype;return t.schedule=function(e,t){throw new dn},t.scheduleFuture=function(t,n,r){var i=n;return i instanceof Date&&(i-=this.now()),i=e.normalize(i),0===i?this.schedule(t,r):this._scheduleFuture(t,i,r)},t._scheduleFuture=function(e,t,n){throw new dn},e.now=Wt,e.prototype.now=Wt,e.normalize=function(e){return 0>e&&(e=0),e},e}(),Er=wr.normalize,Sr=wr.isScheduler;!function(e){function t(e,t){function n(t){function r(e,t){return o?s.remove(a):u=!0,i(t,n),lr}var o=!1,u=!1,a=e.schedule(t,r);u||(s.add(a),o=!0)}var r=t[0],i=t[1],s=new or;return i(r,n),s}function n(e,t){function n(t,r){function o(e,t){return u?s.remove(f):a=!0,i(t,n),lr}var u=!1,a=!1,f=e.scheduleFuture(t,r,o);a||(s.add(f),u=!0)}var r=t[0],i=t[1],s=new or;return i(r,n),s}e.scheduleRecursive=function(e,n){return this.schedule([e,n],t)},e.scheduleRecursiveFuture=function(e,t,r){return this.scheduleFuture([e,r],t,n)}}(wr.prototype),function(e){e.schedulePeriodic=function(e,t,n){if("undefined"==typeof qt.setInterval)throw new pn;t=Er(t);var r=e,i=qt.setInterval(function(){r=n(r)},t);return fr(function(){qt.clearInterval(i)})}}(wr.prototype),function(e){e.catchError=e["catch"]=function(e){return new Hr(this,e)}}(wr.prototype);var xr,Tr,Nr=Rt.internals.SchedulePeriodicRecursive=function(){function e(e){return function(t,n){n(0,e._period);var r=Gt(e._action)(e._state);r===Qt&&(e._cancel.dispose(),i(r.e)),e._state=r}}function t(e,t,n,r){this._scheduler=e,this._state=t,this._period=n,this._action=r}return t.prototype.start=function(){var t=new dr;return this._cancel=t,t.setDisposable(this._scheduler.scheduleRecursiveFuture(0,this._period,e(this))),t},t}(),Cr=function(e){function t(){e.call(this)}return tr(t,e),t.prototype.schedule=function(e,t){return pr(t(this,e))},t}(wr),kr=wr.immediate=new Cr,Lr=function(e){function t(){for(;r.length>0;){var e=r.dequeue();!e.isCancelled()&&e.invoke()}}function n(){e.call(this)}var r;return tr(n,e),n.prototype.schedule=function(e,n){var s=new br(this,e,n,this.now());if(r)r.enqueue(s);else{r=new ir(4),r.enqueue(s);var o=Gt(t)();r=null,o===Qt&&i(o.e)}return s.disposable},n.prototype.scheduleRequired=function(){return!r},n}(wr),Ar=wr.currentThread=new Lr,Or=function(){var e,t=Ut;if(qt.setTimeout)e=qt.setTimeout,t=qt.clearTimeout;else{if(!qt.WScript)throw new pn;e=function(e,t){qt.WScript.Sleep(t),e()}}return{setTimeout:e,clearTimeout:t}}(),Mr=Or.setTimeout,_r=Or.clearTimeout;!function(){function e(t){if(s)Mr(function(){e(t)},0);else{var n=r[t];if(n){s=!0;var o=Gt(n)();Tr(t),s=!1,o===Qt&&i(o.e)}}}function t(){if(!qt.postMessage||qt.importScripts)return!1;var e=!1,t=qt.onmessage;return qt.onmessage=function(){e=!0},qt.postMessage("","*"),qt.onmessage=t,e}var n=1,r={},s=!1;Tr=function(e){delete r[e]};var o=new RegExp("^"+String(rn).replace(/[.*+?^${}()|[\]\\]/g,"\\$&").replace(/toString| for [^\]]+/g,".*?")+"$"),u="function"==typeof (u=Ht&&Ft&&Ht.setImmediate)&&!o.test(u)&&u;if(Kt(u))xr=function(t){var i=n++;return r[i]=t,u(function(){e(i)}),i};else if("undefined"!=typeof process&&"[object process]"==={}.toString.call(process))xr=function(t){var i=n++;return r[i]=t,process.nextTick(function(){e(i)}),i};else if(t()){var a="ms.rx.schedule"+Math.random(),f=function(t){"string"==typeof t.data&&t.data.substring(0,a.length)===a&&e(t.data.substring(a.length))};qt.addEventListener("message",f,!1),xr=function(e){var t=n++;return r[t]=e,qt.postMessage(a+t,"*"),t}}else if(qt.MessageChannel){var l=new qt.MessageChannel;l.port1.onmessage=function(t){e(t.data)},xr=function(e){var t=n++;return r[t]=e,l.port2.postMessage(t),t}}else xr="document"in qt&&"onreadystatechange"in qt.document.createElement("script")?function(t){var i=qt.document.createElement("script"),s=n++;return r[s]=t,i.onreadystatechange=function(){e(s),i.onreadystatechange=null,i.parentNode.removeChild(i),i=null},qt.document.documentElement.appendChild(i),s}:function(t){var i=n++;return r[i]=t,Mr(function(){e(i)},0),i}}();var Dr=function(e){function t(){e.call(this)}function n(e,t,n,r){return function(){e.setDisposable(ar._fixup(t(n,r)))}}function r(e){this._id=e,this.isDisposed=!1}function i(e){this._id=e,this.isDisposed=!1}function s(e,t,n){return function(){t(e,n)}}return tr(t,e),r.prototype.dispose=function(){this.isDisposed||(this.isDisposed=!0,Tr(this._id))},i.prototype.dispose=function(){this.isDisposed||(this.isDisposed=!0,_r(this._id))},t.prototype.schedule=function(e,t){var i=new dr,s=xr(n(i,t,this,e));return new mr(i,new r(s))},t.prototype._scheduleFuture=function(e,t,r){if(0===t)return this.schedule(e,r);var s=new dr,o=Mr(n(s,r,this,e),t);return new mr(s,new i(o))},t.prototype.scheduleLongRunning=function(e,t){var n=fr(Ut);return xr(s(e,t,n)),n},t}(wr),Pr=wr["default"]=wr.async=new Dr,Hr=function(e){function t(t,n){this._scheduler=t,this._handler=n,this._recursiveOriginal=null,this._recursiveWrapper=null,e.call(this)}return tr(t,e),t.prototype.schedule=function(e,t){return this._scheduler.schedule(e,this._wrap(t))},t.prototype._scheduleFuture=function(e,t,n){return this._scheduler.schedule(e,t,this._wrap(n))},t.prototype.now=function(){return this._scheduler.now()},t.prototype._clone=function(e){return new t(e,this._handler)},t.prototype._wrap=function(e){var t=this;return function(n,r){var s=Gt(e)(t._getRecursiveWrapper(n),r);return s===Qt?(t._handler(s.e)||i(s.e),lr):pr(s)}},t.prototype._getRecursiveWrapper=function(e){if(this._recursiveOriginal!==e){this._recursiveOriginal=e;var t=this._clone(e);t._recursiveOriginal=e,t._recursiveWrapper=t,this._recursiveWrapper=t}return this._recursiveWrapper},t.prototype.schedulePeriodic=function(e,t,n){var r=this,s=!1,o=new dr;return o.setDisposable(this._scheduler.schedulePeriodic(e,t,function(e){if(s)return null;var t=Gt(n)(e);return t===Qt?(s=!0,r._handler(t.e)||i(t.e),o.dispose(),null):t})),o},t}(wr),Br=Rt.Notification=function(){function e(){}return e.prototype._accept=function(e,t,n){throw new dn},e.prototype._acceptObserver=function(e,t,n){throw new dn},e.prototype.accept=function(e,t,n){return e&&"object"==typeof e?this._acceptObserver(e):this._accept(e,t,n)},e.prototype.toObservable=function(e){var t=this;return Sr(e)||(e=kr),new Ou(function(n){return e.schedule(t,function(e,t){t._acceptObserver(n),"N"===t.kind&&n.onCompleted()})})},e}(),jr=function(e){function t(e){this.value=e,this.kind="N"}return tr(t,e),t.prototype._accept=function(e){return e(this.value)},t.prototype._acceptObserver=function(e){return e.onNext(this.value)},t.prototype.toString=function(){return"OnNext("+this.value+")"},t}(Br),Fr=function(e){function t(e){this.error=e,this.kind="E"}return tr(t,e),t.prototype._accept=function(e,t){return t(this.error)},t.prototype._acceptObserver=function(e){return e.onError(this.error)},t.prototype.toString=function(){return"OnError("+this.error+")"},t}(Br),Ir=function(e){function t(){this.kind="C"}return tr(t,e),t.prototype._accept=function(e,t,n){return n()},t.prototype._acceptObserver=function(e){return e.onCompleted()},t.prototype.toString=function(){return"OnCompleted()"},t}(Br),qr=Br.createOnNext=function(e){return new jr(e)},Rr=Br.createOnError=function(e){return new Fr(e)},Ur=Br.createOnCompleted=function(){return new Ir},zr=Rt.Observer=function(){};zr.prototype.toNotifier=function(){var e=this;return function(t){return t.accept(e)}},zr.prototype.asObserver=function(){var e=this;return new $r(function(t){e.onNext(t)},function(t){e.onError(t)},function(){e.onCompleted()})},zr.prototype.checked=function(){return new Jr(this)};var Wr=zr.create=function(e,t,n){return e||(e=Ut),t||(t=$t),n||(n=Ut),new $r(e,t,n)};zr.fromNotifier=function(e,t){var n=wn(e,t,1);return new $r(function(e){return n(qr(e))},function(e){return n(Rr(e))},function(){return n(Ur())})},zr.prototype.notifyOn=function(e){return new Qr(e,this)},zr.prototype.makeSafe=function(e){return new AnonymousSafeObserver(this._onNext,this._onError,this._onCompleted,e)};var Xr,Vr=Rt.internals.AbstractObserver=function(e){function t(){this.isStopped=!1}return tr(t,e),t.prototype.next=vn,t.prototype.error=vn,t.prototype.completed=vn,t.prototype.onNext=function(e){!this.isStopped&&this.next(e)},t.prototype.onError=function(e){this.isStopped||(this.isStopped=!0,this.error(e))},t.prototype.onCompleted=function(){this.isStopped||(this.isStopped=!0,this.completed())},t.prototype.dispose=function(){this.isStopped=!0},t.prototype.fail=function(e){return this.isStopped?!1:(this.isStopped=!0,this.error(e),!0)},t}(zr),$r=Rt.AnonymousObserver=function(e){function t(t,n,r){e.call(this),this._onNext=t,this._onError=n,this._onCompleted=r}return tr(t,e),t.prototype.next=function(e){this._onNext(e)},t.prototype.error=function(e){this._onError(e)},t.prototype.completed=function(){this._onCompleted()},t}(Vr),Jr=function(e){function t(t){e.call(this),this._observer=t,this._state=0}tr(t,e);var n=t.prototype;return n.onNext=function(e){this.checkAccess();var t=Gt(this._observer.onNext).call(this._observer,e);this._state=0,t===Qt&&i(t.e)},n.onError=function(e){this.checkAccess();var t=Gt(this._observer.onError).call(this._observer,e);this._state=2,t===Qt&&i(t.e)},n.onCompleted=function(){this.checkAccess();var e=Gt(this._observer.onCompleted).call(this._observer);this._state=2,e===Qt&&i(e.e)},n.checkAccess=function(){if(1===this._state)throw new Error("Re-entrancy detected");if(2===this._state)throw new Error("Observer completed");0===this._state&&(this._state=1)},t}(zr),Kr=Rt.internals.ScheduledObserver=function(e){function t(t,n){e.call(this),this.scheduler=t,this.observer=n,this.isAcquired=!1,this.hasFaulted=!1,this.queue=[],this.disposable=new vr}function n(e,t){return function(){e.onNext(t)}}function r(e,t){return function(){e.onError(t)}}function s(e){return function(){e.onCompleted()}}function o(e,t){var n;if(e.queue.length>0){n=e.queue.shift();var r=Gt(n)();return r===Qt?(e.queue=[],e.hasFaulted=!0,i(r.e)):void t(e)}return void (e.isAcquired=!1)}return tr(t,e),t.prototype.next=function(e){this.queue.push(n(this.observer,e))},t.prototype.error=function(e){this.queue.push(r(this.observer,e))},t.prototype.completed=function(){this.queue.push(s(this.observer))},t.prototype.ensureActive=function(){var e=!1;!this.hasFaulted&&this.queue.length>0&&(e=!this.isAcquired,this.isAcquired=!0),e&&this.disposable.setDisposable(this.scheduler.scheduleRecursive(this,o))},t.prototype.dispose=function(){e.prototype.dispose.call(this),this.disposable.dispose()},t}(Vr),Qr=function(e){function t(t,n,r){e.call(this,t,n),this._cancel=r}return tr(t,e),t.prototype.next=function(t){e.prototype.next.call(this,t),this.ensureActive()},t.prototype.error=function(t){e.prototype.error.call(this,t),this.ensureActive()},t.prototype.completed=function(){e.prototype.completed.call(this),this.ensureActive()},t.prototype.dispose=function(){e.prototype.dispose.call(this),this._cancel&&this._cancel.dispose(),this._cancel=null},t}(Kr),Gr=Rt.Observable=function(){function e(e,t){return function(n){var r=n.onError;return n.onError=function(t){s(t,e),r.call(n,t)},t.call(e,n)}}function t(){if(Rt.config.longStackSupport&&Yt){var t=this._subscribe,n=Gt(i)(new Error).e;this.stack=n.stack.substring(n.stack.indexOf("\n")+1),this._subscribe=e(this,t)}}return Xr=t.prototype,t.isObservable=function(e){return e&&Kt(e.subscribe)},Xr.subscribe=Xr.forEach=function(e,t,n){return this._subscribe("object"==typeof e?e:Wr(e,t,n))},Xr.subscribeOnNext=function(e,t){return this._subscribe(Wr("undefined"!=typeof t?function(n){e.call(t,n)}:e))},Xr.subscribeOnError=function(e,t){return this._subscribe(Wr(null,"undefined"!=typeof t?function(n){e.call(t,n)}:e))},Xr.subscribeOnCompleted=function(e,t){return this._subscribe(Wr(null,null,"undefined"!=typeof t?function(){e.call(t)}:e))},t}(),Yr=Rt.ObservableBase=function(e){function t(e){return e&&Kt(e.dispose)?e:Kt(e)?fr(e):lr}function n(e,n){var r=n[0],s=n[1],o=Gt(s.subscribeCore).call(s,r);o!==Qt||r.fail(Qt.e)||i(Qt.e),r.setDisposable(t(o))}function r(){e.call(this)}return tr(r,e),r.prototype._subscribe=function(e){var t=new Mu(e),r=[t,this];return Ar.scheduleRequired()?Ar.schedule(r,n):n(null,r),t},r.prototype.subscribeCore=vn,r}(Gr),Zr=Rt.FlatMapObservable=function(e){function t(t,n,r,i){this.resultSelector=Kt(r)?r:null,this.selector=wn(Kt(n)?n:function(){return n},i,3),this.source=t,e.call(this)}function n(e,t,n,r){this.i=0,this.selector=t,this.resultSelector=n,this.source=r,this.o=e,Vr.call(this)}return tr(t,e),t.prototype.subscribeCore=function(e){return this.source.subscribe(new n(e,this.selector,this.resultSelector,this))},tr(n,Vr),n.prototype._wrapResult=function(e,t,n){return this.resultSelector?e.map(function(e,r){return this.resultSelector(t,e,n,r)},this):e},n.prototype.next=function(e){var t=this.i++,n=Gt(this.selector)(e,t,this.source);return n===Qt?this.o.onError(n.e):(Jt(n)&&(n=li(n)),(bn(n)||yn(n))&&(n=Gr.from(n)),void this.o.onNext(this._wrapResult(n,e,t)))},n.prototype.error=function(e){this.o.onError(e)},n.prototype.completed=function(){this.o.onCompleted()},t}(Yr),ei=Rt.internals.Enumerable=function(){};T.prototype.dispose=function(){this.isDisposed||(this.isDisposed=!0,this._s.isDisposed=!0)};var ti=function(e){function t(t){this.sources=t,e.call(this)}function n(e,t){if(!e.isDisposed){var n=Gt(e.e.next).call(e.e);if(n===Qt)return e.o.onError(n.e);if(n.done)return e.o.onCompleted();var i=n.value;Jt(i)&&(i=li(i));var s=new dr;e.subscription.setDisposable(s),s.setDisposable(i.subscribe(new r(e,t)))}}function r(e,t){this._state=e,this._recurse=t,Vr.call(this)}return tr(t,e),t.prototype.subscribeCore=function(e){var t=new vr,r={isDisposed:!1,o:e,subscription:t,e:this.sources[mn]()},i=Ar.scheduleRecursive(r,n);return new gr([t,i,new T(r)])},tr(r,Vr),r.prototype.next=function(e){this._state.o.onNext(e)},r.prototype.error=function(e){this._state.o.onError(e)},r.prototype.completed=function(){this._recurse(this._state)},t}(Yr);ei.prototype.concat=function(){return new ti(this)};var ni=function(e){function t(t){this.sources=t,e.call(this)}function n(e,t){if(!e.isDisposed){var n=Gt(e.e.next).call(e.e);if(n===Qt)return e.o.onError(n.e);if(n.done)return null!==e.lastError?e.o.onError(e.lastError):e.o.onCompleted();var i=n.value;Jt(i)&&(i=li(i));var s=new dr;e.subscription.setDisposable(s),s.setDisposable(i.subscribe(new r(e,t)))}}function r(e,t){this._state=e,this._recurse=t,Vr.call(this)}return tr(t,e),t.prototype.subscribeCore=function(e){var t=new vr,r={isDisposed:!1,e:this.sources[mn](),subscription:t,lastError:null,o:e},i=Ar.scheduleRecursive(r,n);return new gr([t,i,new T(r)])},tr(r,Vr),r.prototype.next=function(e){this._state.o.onNext(e)},r.prototype.error=function(e){this._state.lastError=e,this._recurse(this._state)},r.prototype.completed=function(){this._state.o.onCompleted()},t}(Yr);ei.prototype.catchError=function(){return new ni(this)};var ri=function(e){function t(e,t){this.v=e,this.c=null==t?-1:t}function n(e){this.v=e.v,this.l=e.c}return tr(t,e),t.prototype[mn]=function(){return new n(this)},n.prototype.next=function(){return 0===this.l?gn:(this.l>0&&this.l--,{done:!1,value:this.v})},t}(ei),ii=ei.repeat=function(e,t){return new ri(e,t)},si=function(e){function t(e,t,n){this.s=e,this.fn=t?wn(t,n,3):null}function n(e){this.i=-1,this.s=e.s,this.l=this.s.length,this.fn=e.fn}return tr(t,e),t.prototype[mn]=function(){return new n(this)},n.prototype.next=function(){return++this.i<this.l?{done:!1,value:this.fn?this.fn(this.s[this.i],this.i,this.s):this.s[this.i]}:gn},t}(ei),oi=ei.of=function(e,t,n){return new si(e,t,n)},ui=function(e){function t(t,n){this.source=t,this._s=n,e.call(this)}return tr(t,e),t.prototype.subscribeCore=function(e){return this.source.subscribe(new Qr(this._s,e))},t}(Yr);Xr.observeOn=function(e){return new ui(this,e)};var ai=function(e){function t(t,n){this.source=t,this._s=n,e.call(this)}function n(e,t){var n=t[0],r=t[1],i=t[2];r.setDisposable(new S(e,n.subscribe(i)))}return tr(t,e),t.prototype.subscribeCore=function(e){var t=new dr,r=new vr;return r.setDisposable(t),t.setDisposable(this._s.schedule([this.source,r,e],n)),r},t}(Yr);Xr.subscribeOn=function(e){return new ai(this,e)};var fi=function(e){function t(t,n){this._p=t,this._s=n,e.call(this)}function n(e,t){var n=t[0],r=t[1];n.onNext(r),n.onCompleted()}function r(e,t){var n=t[0],r=t[1];n.onError(r)}return tr(t,e),t.prototype.subscribeCore=function(e){var t=new dr,i=this,s=this._p;return Kt(s)&&(s=Gt(s)(),s===Qt)?(e.onError(s.e),t):(s.then(function(r){t.setDisposable(i._s.schedule([e,r],n))},function(n){t.setDisposable(i._s.schedule([e,n],r))}),t)},t}(Yr),li=Gr.fromPromise=function(e,t){return t||(t=Pr),new fi(e,t)};Xr.toPromise=function(e){if(e||(e=Rt.config.Promise),!e)throw new pn("Promise type not provided nor in Rx.config.Promise");var t=this;return new e(function(e,n){var r;t.subscribe(function(e){r=e},n,function(){e(r)})})};var ci=function(e){function t(t){this.source=t,e.call(this)}function n(e){this.o=e,this.a=[],Vr.call(this)}return tr(t,e),t.prototype.subscribeCore=function(e){return this.source.subscribe(new n(e))},tr(n,Vr),n.prototype.next=function(e){this.a.push(e)},n.prototype.error=function(e){this.o.onError(e)},n.prototype.completed=function(){this.o.onNext(this.a),this.o.onCompleted()},t}(Yr);Xr.toArray=function(){return new ci(this)},Gr.create=function(e,t){return new Ou(e,t)};var hi=function(e){function t(t){this._f=t,e.call(this)}return tr(t,e),t.prototype.subscribeCore=function(e){var t=Gt(this._f)();return t===Qt?Mi(t.e).subscribe(e):(Jt(t)&&(t=li(t)),t.subscribe(e))},t}(Yr),pi=Gr.defer=function(e){return new hi(e)},di=function(e){function t(t){this.scheduler=t,e.call(this)}function n(e,t){this.observer=e,this.scheduler=t}function r(e,t){return t.onCompleted(),lr}return tr(t,e),t.prototype.subscribeCore=function(e){var t=new n(e,this.scheduler);return t.run()},n.prototype.run=function(){var e=this.observer;return this.scheduler===kr?r(null,e):this.scheduler.schedule(e,r)},t}(Yr),vi=new di(kr),mi=Gr.empty=function(e){return Sr(e)||(e=kr),e===kr?vi:new di(e)},gi=function(e){function t(t,n,r){this._iterable=t,this._fn=n,this._scheduler=r,e.call(this)}function n(e,t,n){return function(r,i){var s=Gt(t.next).call(t);if(s===Qt)return e.onError(s.e);if(s.done)return e.onCompleted();var o=s.value;return Kt(n)&&(o=Gt(n)(o,r),o===Qt)?e.onError(o.e):(e.onNext(o),void i(r+1))}}return tr(t,e),t.prototype.subscribeCore=function(e){var t=Object(this._iterable),r=O(t);return this._scheduler.scheduleRecursive(0,n(e,r,this._fn))},t}(Yr),yi=Math.pow(2,53)-1;N.prototype[mn]=function(){return new C(this._s)},C.prototype[mn]=function(){return this},C.prototype.next=function(){return this._i<this._l?{done:!1,value:this._s.charAt(this._i++)}:gn},k.prototype[mn]=function(){return new L(this._a)},L.prototype[mn]=function(){return this},L.prototype.next=function(){return this._i<this._l?{done:!1,value:this._a[this._i++]}:gn};var bi=Gr.from=function(e,t,n,r){if(null==e)throw new Error("iterable cannot be null.");if(t&&!Kt(t))throw new Error("mapFn when provided must be a function");if(t)var i=wn(t,n,2);return Sr(r)||(r=Ar),new gi(e,i,r)},wi=function(e){function t(t,n){this._args=t,this._scheduler=n,e.call(this)}function n(e,t){var n=t.length;return function(r,i){n>r?(e.onNext(t[r]),i(r+1)):e.onCompleted()}}return tr(t,e),t.prototype.subscribeCore=function(e){return this._scheduler.scheduleRecursive(0,n(e,this._args))},t}(Yr),Ei=Gr.fromArray=function(e,t){return Sr(t)||(t=Ar),new wi(e,t)},Si=function(e){function t(t,n,r,i,s){this._initialState=t,this._cndFn=n,this._itrFn=r,this._resFn=i,this._s=s,e.call(this)}function n(e,t){if(e.first)e.first=!1;else if(e.newState=Gt(e.self._itrFn)(e.newState),e.newState===Qt)return e.o.onError(e.newState.e);var n=Gt(e.self._cndFn)(e.newState);if(n===Qt)return e.o.onError(n.e);if(n){var r=Gt(e.self._resFn)(e.newState);if(r===Qt)return e.o.onError(r.e);e.o.onNext(r),t(e)}else e.o.onCompleted()}return tr(t,e),t.prototype.subscribeCore=function(e){var t={o:e,self:this,first:!0,newState:this._initialState};return this._s.scheduleRecursive(t,n)},t}(Yr);Gr.generate=function(e,t,n,r,i){return Sr(i)||(i=Ar),new Si(e,t,n,r,i)},Gr.of=function(){for(var e=arguments.length,t=new Array(e),n=0;e>n;n++)t[n]=arguments[n];return new wi(t,Ar)},Gr.ofWithScheduler=function(e){for(var t=arguments.length,n=new Array(t-1),r=1;t>r;r++)n[r-1]=arguments[r];return new wi(n,e)};var xi=function(e){function t(){e.call(this)}return tr(t,e),t.prototype.subscribeCore=function(e){return lr},t}(Yr),Ti=new xi,Ni=Gr.never=function(){return Ti},Ci=function(e){function t(t,n){this._o=t,this._keys=Object.keys(t),this._scheduler=n,e.call(this)}function n(e,t,n){return function(r,i){if(r<n.length){var s=n[r];e.onNext([s,t[s]]),i(r+1)}else e.onCompleted()}}return tr(t,e),t.prototype.subscribeCore=function(e){return this._scheduler.scheduleRecursive(0,n(e,this._o,this._keys))},t}(Yr);Gr.pairs=function(e,t){return t||(t=Ar),new Ci(e,t)};var ki=function(e){function t(t,n,r){this.start=t,this.rangeCount=n,this.scheduler=r,e.call(this)}function n(e,t,n){return function(r,i){t>r?(n.onNext(e+r),i(r+1)):n.onCompleted()}}return tr(t,e),t.prototype.subscribeCore=function(e){return this.scheduler.scheduleRecursive(0,n(this.start,this.rangeCount,e))},t}(Yr);Gr.range=function(e,t,n){return Sr(n)||(n=Ar),new ki(e,t,n)};var Li=function(e){function t(t,n,r){this.value=t,this.repeatCount=null==n?-1:n,this.scheduler=r,e.call(this)}return tr(t,e),t.prototype.subscribeCore=function(e){var t=new P(e,this);return t.run()},t}(Yr);P.prototype.run=function(){function e(e,r){return(-1===e||e>0)&&(t.onNext(n),e>0&&e--),0===e?t.onCompleted():void r(e)}var t=this.observer,n=this.parent.value;return this.parent.scheduler.scheduleRecursive(this.parent.repeatCount,e)},Gr.repeat=function(e,t,n){return Sr(n)||(n=Ar),new Li(e,t,n)};var Ai=function(e){function t(t,n){this._value=t,this._scheduler=n,e.call(this)}function n(e,t){var n=t[0],r=t[1];return r.onNext(n),r.onCompleted(),lr}return tr(t,e),t.prototype.subscribeCore=function(e){var t=[this._value,e];return this._scheduler===kr?n(null,t):this._scheduler.schedule(t,n)},t}(Yr),Oi=(Gr["return"]=Gr.just=function(e,t){return Sr(t)||(t=kr),new Ai(e,t)},function(e){function t(t,n){this._error=t,this._scheduler=n,e.call(this)}function n(e,t){var n=t[0],r=t[1];return r.onError(n),lr}return tr(t,e),t.prototype.subscribeCore=function(e){var t=[this._error,e];return this._scheduler===kr?n(null,t):this._scheduler.schedule(t,n)},t}(Yr)),Mi=Gr["throw"]=function(e,t){return Sr(t)||(t=kr),new Oi(e,t)},_i=function(e){function t(t,n){this._resFn=t,this._obsFn=n,e.call(this)}return tr(t,e),t.prototype.subscribeCore=function(e){var t=lr,n=Gt(this._resFn)();if(n===Qt)return new mr(Mi(n.e).subscribe(e),t);n&&(t=n);var r=Gt(this._obsFn)(n);return r===Qt?new mr(Mi(r.e).subscribe(e),t):new mr(r.subscribe(e),t)},t}(Yr);Gr.using=function(e,t){return new _i(e,t)},Xr.amb=function(e){var t=this;return new Ou(function(n){function r(){s||(s=o,f.dispose())}function i(){s||(s=u,a.dispose())}var s,o="L",u="R",a=new dr,f=new dr;Jt(e)&&(e=li(e));var l=Wr(function(e){r(),s===o&&n.onNext(e)},function(e){r(),s===o&&n.onError(e)},function(){r(),s===o&&n.onCompleted()}),c=Wr(function(e){i(),s===u&&n.onNext(e)},function(e){i(),s===u&&n.onError(e)},function(){i(),s===u&&n.onCompleted()});return a.setDisposable(t.subscribe(l)),f.setDisposable(e.subscribe(c)),new mr(a,f)})},Gr.amb=function(){var e,t=Ni();if(Array.isArray(arguments[0]))e=arguments[0];else{var n=arguments.length;e=new Array(e);for(var r=0;n>r;r++)e[r]=arguments[r]}for(var r=0,n=e.length;n>r;r++)t=H(t,e[r]);return t};var Di=function(e){function t(t,n){this.source=t,this._fn=n,e.call(this)}return tr(t,e),t.prototype.subscribeCore=function(e){var t=new dr,n=new vr;return n.setDisposable(t),t.setDisposable(this.source.subscribe(new Pi(e,n,this._fn))),n},t}(Yr),Pi=function(e){function t(t,n,r){this._o=t,this._s=n,this._fn=r,e.call(this)}return tr(t,e),t.prototype.next=function(e){this._o.onNext(e)},t.prototype.completed=function(){return this._o.onCompleted()},t.prototype.error=function(e){var t=Gt(this._fn)(e);if(t===Qt)return this._o.onError(t.e);Jt(t)&&(t=li(t));var n=new dr;this._s.setDisposable(n),n.setDisposable(t.subscribe(this._o))},t}(Vr);Xr["catch"]=function(e){return Kt(e)?new Di(this,e):Hi([this,e])};var Hi=Gr["catch"]=function(){var e;if(Array.isArray(arguments[0]))e=arguments[0];else{var t=arguments.length;e=new Array(t);for(var n=0;t>n;n++)e[n]=arguments[n]}return oi(e).catchError()};Xr.combineLatest=function(){for(var e=arguments.length,t=new Array(e),n=0;e>n;n++)t[n]=arguments[n];return Array.isArray(t[0])?t[0].unshift(this):t.unshift(this),Fi.apply(this,t)};var Bi=function(e){function t(t,n){this._params=t,this._cb=n,e.call(this)}return tr(t,e),t.prototype.subscribeCore=function(e){for(var t=this._params.length,n=new Array(t),r={hasValue:w(t,B),hasValueAll:!1,isDone:w(t,B),values:new Array(t)},i=0;t>i;i++){var s=this._params[i],o=new dr;n[i]=o,Jt(s)&&(s=li(s)),o.setDisposable(s.subscribe(new ji(e,i,this._cb,r)))}return new gr(n)},t}(Yr),ji=function(e){function t(t,n,r,i){this._o=t,this._i=n,this._cb=r,this._state=i,e.call(this)}function n(e){return function(t,n){return n!==e}}return tr(t,e),t.prototype.next=function(e){if(this._state.values[this._i]=e,this._state.hasValue[this._i]=!0,this._state.hasValueAll||(this._state.hasValueAll=this._state.hasValue.every(zt))){var t=Gt(this._cb).apply(null,this._state.values);if(t===Qt)return this._o.onError(t.e);this._o.onNext(t)}else this._state.isDone.filter(n(this._i)).every(zt)&&this._o.onCompleted()},t.prototype.error=function(e){this._o.onError(e)},t.prototype.completed=function(){this._state.isDone[this._i]=!0,this._state.isDone.every(zt)&&this._o.onCompleted()},t}(Vr),Fi=Gr.combineLatest=function(){for(var e=arguments.length,t=new Array(e),n=0;e>n;n++)t[n]=arguments[n];var r=Kt(t[e-1])?t.pop():j;return Array.isArray(t[0])&&(t=t[0]),new Bi(t,r)};Xr.concat=function(){for(var e=[],t=0,n=arguments.length;n>t;t++)e.push(arguments[t]);return e.unshift(this),Ri.apply(null,e)};var Ii=function(e){function t(t,n){this._s=t,this._fn=n,e.call(this)}return tr(t,e),t.prototype.next=function(e){this._s.o.onNext(e)},t.prototype.error=function(e){this._s.o.onError(e)},t.prototype.completed=function(){this._s.i++,this._fn(this._s)},t}(Vr),qi=function(e){function t(t){this._sources=t,e.call(this)}function n(e,t){if(!e.disposable.isDisposed){if(e.i===e.sources.length)return e.o.onCompleted();var n=e.sources[e.i];Jt(n)&&(n=li(n));var r=new dr;e.subscription.setDisposable(r),r.setDisposable(n.subscribe(new Ii(e,t)))}}return tr(t,e),t.prototype.subscribeCore=function(e){var t=new vr,r=fr(Ut),i={o:e,i:0,subscription:t,disposable:r,sources:this._sources},s=kr.scheduleRecursive(i,n);return new gr([t,r,s])},t}(Yr),Ri=Gr.concat=function(){var e;if(Array.isArray(arguments[0]))e=arguments[0];else{e=new Array(arguments.length);for(var t=0,n=arguments.length;n>t;t++)e[t]=arguments[t]}return new qi(e)};Xr.concatAll=function(){return this.merge(1)};var Ui=function(e){function t(t,n){this.source=t,this.maxConcurrent=n,e.call(this)}return tr(t,e),t.prototype.subscribeCore=function(e){var t=new or;return t.add(this.source.subscribe(new zi(e,this.maxConcurrent,t))),t},t}(Yr),zi=function(e){function t(t,n,r){this.o=t,this.max=n,this.g=r,this.done=!1,this.q=[],this.activeCount=0,e.call(this)}function n(t,n){this.parent=t,this.sad=n,e.call(this)}return tr(t,e),t.prototype.handleSubscribe=function(e){var t=new dr;this.g.add(t),Jt(e)&&(e=li(e)),t.setDisposable(e.subscribe(new n(this,t)))},t.prototype.next=function(e){this.activeCount<this.max?(this.activeCount++,this.handleSubscribe(e)):this.q.push(e)},t.prototype.error=function(e){this.o.onError(e)},t.prototype.completed=function(){this.done=!0,0===this.activeCount&&this.o.onCompleted()},tr(n,e),n.prototype.next=function(e){this.parent.o.onNext(e)},n.prototype.error=function(e){this.parent.o.onError(e)},n.prototype.completed=function(){this.parent.g.remove(this.sad),this.parent.q.length>0?this.parent.handleSubscribe(this.parent.q.shift()):(this.parent.activeCount--,this.parent.done&&0===this.parent.activeCount&&this.parent.o.onCompleted())},t}(Vr);Xr.merge=function(e){return"number"!=typeof e?Wi(this,e):new Ui(this,e)};var Wi=Gr.merge=function(){var e,t,n=[],r=arguments.length;if(arguments[0])if(Sr(arguments[0]))for(e=arguments[0],t=1;r>t;t++)n.push(arguments[t]);else for(e=kr,t=0;r>t;t++)n.push(arguments[t]);else for(e=kr,t=1;r>t;t++)n.push(arguments[t]);return Array.isArray(n[0])&&(n=n[0]),D(e,n).mergeAll()},Xi=function(e){function t(t){this.source=t,e.call(this)}return tr(t,e),t.prototype.subscribeCore=function(e){var t=new or,n=new dr;return t.add(n),n.setDisposable(this.source.subscribe(new Vi(e,t))),t},t}(Yr),Vi=function(e){function t(t,n){this.o=t,this.g=n,this.done=!1,e.call(this)}function n(t,n){this.parent=t,this.sad=n,e.call(this)}return tr(t,e),t.prototype.next=function(e){var t=new dr;this.g.add(t),Jt(e)&&(e=li(e)),t.setDisposable(e.subscribe(new n(this,t)))},t.prototype.error=function(e){this.o.onError(e)},t.prototype.completed=function(){this.done=!0,1===this.g.length&&this.o.onCompleted()},tr(n,e),n.prototype.next=function(e){this.parent.o.onNext(e)},n.prototype.error=function(e){this.parent.o.onError(e)},n.prototype.completed=function(){this.parent.g.remove(this.sad),this.parent.done&&1===this.parent.g.length&&this.parent.o.onCompleted()},t}(Vr);Xr.mergeAll=function(){return new Xi(this)};var $i=Rt.CompositeError=function(e){this.innerErrors=e,this.message="This contains multiple errors. Check the innerErrors",Error.call(this)};$i.prototype=Object.create(Error.prototype),$i.prototype.name="CompositeError";var Ji=function(e){function t(t){this.source=t,e.call(this)}return tr(t,e),t.prototype.subscribeCore=function(e){var t=new or,n=new dr,r={isStopped:!1,errors:[],o:e};return t.add(n),n.setDisposable(this.source.subscribe(new Ki(t,r))),t},t}(Yr),Ki=function(e){function t(t,n){this._group=t,this._state=n,e.call(this)}function n(e,t){0===t.length?e.onCompleted():1===t.length?e.onError(t[0]):e.onError(new $i(t))}function r(t,n,r){this._inner=t,this._group=n,this._state=r,e.call(this)}return tr(t,e),t.prototype.next=function(e){var t=new dr;this._group.add(t),Jt(e)&&(e=li(e)),t.setDisposable(e.subscribe(new r(t,this._group,this._state)))},t.prototype.error=function(e){this._state.errors.push(e),this._state.isStopped=!0,1===this._group.length&&n(this._state.o,this._state.errors)},t.prototype.completed=function(){this._state.isStopped=!0,1===this._group.length&&n(this._state.o,this._state.errors)},tr(r,e),r.prototype.next=function(e){this._state.o.onNext(e)},r.prototype.error=function(e){this._state.errors.push(e),this._group.remove(this._inner),this._state.isStopped&&1===this._group.length&&n(this._state.o,this._state.errors)},r.prototype.completed=function(){this._group.remove(this._inner),this._state.isStopped&&1===this._group.length&&n(this._state.o,this._state.errors)},t}(Vr);Gr.mergeDelayError=function(){var e;if(Array.isArray(arguments[0]))e=arguments[0];else{var t=arguments.length;e=new Array(t);for(var n=0;t>n;n++)e[n]=arguments[n]}var r=D(null,e);return new Ji(r)},Xr.onErrorResumeNext=function(e){if(!e)throw new Error("Second observable is required");return Yi([this,e])};var Qi=function(e){function t(t){this.sources=t,e.call(this)}function n(e,t){if(e.pos<e.sources.length){var n=e.sources[e.pos++];Jt(n)&&(n=li(n));var r=new dr;e.subscription.setDisposable(r),r.setDisposable(n.subscribe(new Gi(e,t)))}else e.o.onCompleted()}return tr(t,e),t.prototype.subscribeCore=function(e){var t=new vr,r={pos:0,subscription:t,o:e,sources:this.sources},i=kr.scheduleRecursive(r,n);return new mr(t,i)},t}(Yr),Gi=function(e){function t(t,n){this._state=t,this._recurse=n,e.call(this)}return tr(t,e),t.prototype.next=function(e){this._state.o.onNext(e)},t.prototype.error=function(){this._recurse(this._state)},t.prototype.completed=function(){this._recurse(this._state)},t}(Vr),Yi=Gr.onErrorResumeNext=function(){var e=[];if(Array.isArray(arguments[0]))e=arguments[0];else{var t=arguments.length;e=new Array(t);for(var n=0;t>n;n++)e[n]=arguments[n]}return new Qi(e)},Zi=function(e){function t(t,n){this._s=t,this._o=Jt(n)?li(n):n,this._open=!1,e.call(this)}return tr(t,e),t.prototype.subscribeCore=function(e){var t=new dr;t.setDisposable(this._s.subscribe(new es(e,this))),Jt(this._o)&&(this._o=li(this._o));var n=new dr;return n.setDisposable(this._o.subscribe(new ts(e,this,n))),new mr(t,n)},t}(Yr),es=function(e){function t(t,n){this._o=t,this._p=n,e.call(this)}return tr(t,e),t.prototype.next=function(e){this._p._open&&this._o.onNext(e)},t.prototype.error=function(e){this._o.onError(e)},t.prototype.onCompleted=function(){this._p._open&&this._o.onCompleted()},t}(Vr),ts=function(e){function t(t,n,r){this._o=t,this._p=n,this._r=r,e.call(this)}return tr(t,e),t.prototype.next=function(){this._p._open=!0,this._r.dispose()},t.prototype.error=function(e){this._o.onError(e)},t.prototype.onCompleted=function(){this._r.dispose()},t}(Vr);Xr.skipUntil=function(e){return new Zi(this,e)};var ns=function(e){function t(t){this.source=t,e.call(this)}function n(e,t){this.o=e,this.inner=t,this.stopped=!1,this.latest=0,this.hasLatest=!1,Vr.call(this)}function r(e,t){this.parent=e,this.id=t,Vr.call(this)}return tr(t,e),t.prototype.subscribeCore=function(e){var t=new vr,r=this.source.subscribe(new n(e,t));return new mr(r,t)},tr(n,Vr),n.prototype.next=function(e){var t=new dr,n=++this.latest;this.hasLatest=!0,this.inner.setDisposable(t),Jt(e)&&(e=li(e)),t.setDisposable(e.subscribe(new r(this,n)))},n.prototype.error=function(e){this.o.onError(e)},n.prototype.completed=function(){this.stopped=!0,!this.hasLatest&&this.o.onCompleted()},tr(r,Vr),r.prototype.next=function(e){this.parent.latest===this.id&&this.parent.o.onNext(e)},r.prototype.error=function(e){this.parent.latest===this.id&&this.parent.o.onError(e)},r.prototype.completed=function(){this.parent.latest===this.id&&(this.parent.hasLatest=!1,this.parent.stopped&&this.parent.o.onCompleted())},t}(Yr);Xr["switch"]=Xr.switchLatest=function(){return new ns(this)};var rs=function(e){function t(t,n){this.source=t,this.other=Jt(n)?li(n):n,e.call(this)}return tr(t,e),t.prototype.subscribeCore=function(e){return new mr(this.source.subscribe(e),this.other.subscribe(new is(e)))},t}(Yr),is=function(e){function t(t){this._o=t,e.call(this)}return tr(t,e),t.prototype.next=function(){this._o.onCompleted()},t.prototype.error=function(e){this._o.onError(e)},t.prototype.onCompleted=Ut,t}(Vr);Xr.takeUntil=function(e){return new rs(this,e)};var ss=function(e){function t(t,n,r){this._s=t,this._ss=n,this._cb=r,e.call(this)}return tr(t,e),t.prototype.subscribeCore=function(e){for(var t=this._ss.length,n={hasValue:w(t,B),hasValueAll:!1,values:new Array(t)},r=this._ss.length,i=new Array(r+1),s=0;r>s;s++){var o=this._ss[s],u=new dr;Jt(o)&&(o=li(o)),u.setDisposable(o.subscribe(new os(e,s,n))),i[s]=u}var a=new dr;return a.setDisposable(this._s.subscribe(new us(e,this._cb,n))),i[r]=a,new gr(i)},t}(Yr),os=function(e){function t(t,n,r){this._o=t,this._i=n,this._state=r,e.call(this)}return tr(t,e),t.prototype.next=function(e){this._state.values[this._i]=e,this._state.hasValue[this._i]=!0,this._state.hasValueAll=this._state.hasValue.every(zt)},t.prototype.error=function(e){this._o.onError(e)},t.prototype.completed=Ut,t}(Vr),us=function(e){function t(t,n,r){this._o=t,this._cb=n,this._state=r,e.call(this)}return tr(t,e),t.prototype.next=function(e){var t=[e].concat(this._state.values);if(this._state.hasValueAll){var n=Gt(this._cb).apply(null,t);return n===Qt?this._o.onError(n.e):void this._o.onNext(n)}},t.prototype.error=function(e){this._o.onError(e)},t.prototype.completed=function(){this._o.onCompleted()},t}(Vr);Xr.withLatestFrom=function(){if(0===arguments.length)throw new Error("invalid arguments");for(var e=arguments.length,t=new Array(e),n=0;e>n;n++)t[n]=arguments[n];var r=Kt(t[e-1])?t.pop():j;return Array.isArray(t[0])&&(t=t[0]),new ss(this,t,r)};var as=function(e){function t(t,n){this._s=t,this._cb=n,e.call(this)}return tr(t,e),t.prototype.subscribeCore=function(e){for(var t=this._s.length,n=new Array(t),r=w(t,B),i=w(t,F),s=0;t>s;s++){var o=this._s[s],u=new dr;n[s]=u,Jt(o)&&(o=li(o)),u.setDisposable(o.subscribe(new fs(e,s,this,i,r)))}return new gr(n)},t}(Yr),fs=function(e){function t(t,n,r,i,s){this._o=t,this._i=n,this._p=r,this._q=i,this._d=s,e.call(this)}function n(e){return e.length>0}function r(e){return e.shift()}function i(e){return function(t,n){return n!==e}}return tr(t,e),t.prototype.next=function(e){if(this._q[this._i].push(e),this._q.every(n)){var t=this._q.map(r),s=Gt(this._p._cb).apply(null,t);if(s===Qt)return this._o.onError(s.e);this._o.onNext(s)}else this._d.filter(i(this._i)).every(zt)&&this._o.onCompleted()},t.prototype.error=function(e){this._o.onError(e)},t.prototype.completed=function(){this._d[this._i]=!0,this._d.every(zt)&&this._o.onCompleted()},t}(Vr);Xr.zip=function(){if(0===arguments.length)throw new Error("invalid arguments");for(var e=arguments.length,t=new Array(e),n=0;e>n;n++)t[n]=arguments[n];var r=Kt(t[e-1])?t.pop():j;Array.isArray(t[0])&&(t=t[0]);var i=this;return t.unshift(i),new as(t,r)},Gr.zip=function(){for(var e=arguments.length,t=new Array(e),n=0;e>n;n++)t[n]=arguments[n];Array.isArray(t[0])&&(t=Kt(t[1])?t[0].concat(t[1]):t[0]);var r=t.shift();return r.zip.apply(r,t)};var ls=function(e){function t(t,n){this.sources=t,this._cb=n,e.call(this)}return tr(t,e),t.prototype.subscribeCore=function(e){for(var t=this.sources,n=t.length,r=new Array(n),i={q:w(n,F),done:w(n,B),cb:this._cb,o:e},s=0;n>s;s++)!function(e){var n=t[e],s=new dr;(bn(n)||yn(n))&&(n=bi(n)),r[e]=s,s.setDisposable(n.subscribe(new cs(i,e)))}(s);return new gr(r)},t}(Yr),cs=function(e){function t(t,n){this._s=t,this._i=n,e.call(this)}function n(e){return e.length>0}function r(e){return e.shift()}function i(e){return function(t,n){return n!==e}}return tr(t,e),t.prototype.next=function(e){if(this._s.q[this._i].push(e),this._s.q.every(n)){var t=this._s.q.map(r),s=Gt(this._s.cb).apply(null,t);if(s===Qt)return this._s.o.onError(s.e);this._s.o.onNext(s)}else this._s.done.filter(i(this._i)).every(zt)&&this._s.o.onCompleted()},t.prototype.error=function(e){this._s.o.onError(e)},t.prototype.completed=function(){this._s.done[this._i]=!0,this._s.done.every(zt)&&this._s.o.onCompleted()},t}(Vr);Xr.zipIterable=function(){if(0===arguments.length)throw new Error("invalid arguments");for(var e=arguments.length,t=new Array(e),n=0;e>n;n++)t[n]=arguments[n];var r=Kt(t[e-1])?t.pop():j,i=this;return t.unshift(i),new ls(t,r)},Xr.asObservable=function(){return new Ou(I(this),this)},Xr.bufferWithCount=Xr.bufferCount=function(e,t){return"number"!=typeof t&&(t=e),this.windowWithCount(e,t).flatMap(q).filter(R)};var hs=function(e){function t(t){this.source=t,e.call(this)}return tr(t,e),t.prototype.subscribeCore=function(e){return this.source.subscribe(new ps(e))},t}(Yr),ps=function(e){function t(t){this._o=t,e.call(this)}return tr(t,e),t.prototype.next=function(e){e.accept(this._o)},t.prototype.error=function(e){this._o.onError(e)},t.prototype.completed=function(){this._o.onCompleted()},t}(Vr);Xr.dematerialize=function(){return new hs(this)};var ds=function(e){function t(t,n,r){this.source=t,this.keyFn=n,this.comparer=r,e.call(this)}return tr(t,e),t.prototype.subscribeCore=function(e){return this.source.subscribe(new vs(e,this.keyFn,this.comparer))},t}(Yr),vs=function(e){function t(t,n,r){this.o=t,this.keyFn=n,this.comparer=r,this.hasCurrentKey=!1,this.currentKey=null,e.call(this)}return tr(t,e),t.prototype.next=function(e){var t,n=e;return Kt(this.keyFn)&&(n=Gt(this.keyFn)(e),n===Qt)?this.o.onError(n.e):this.hasCurrentKey&&(t=Gt(this.comparer)(this.currentKey,n),t===Qt)?this.o.onError(t.e):void (this.hasCurrentKey&&t||(this.hasCurrentKey=!0,this.currentKey=n,this.o.onNext(e)))},t.prototype.error=function(e){this.o.onError(e)},t.prototype.completed=function(){this.o.onCompleted()},t}(Vr);Xr.distinctUntilChanged=function(e,t){return t||(t=Xt),new ds(this,e,t)};var ms=function(e){function t(t,n,r,i){this.source=t,this._oN=n,this._oE=r,this._oC=i,e.call(this)}function n(e,t){this.o=e,this.t=!t._oN||Kt(t._oN)?Wr(t._oN||Ut,t._oE||Ut,t._oC||Ut):t._oN,this.isStopped=!1,Vr.call(this)}return tr(t,e),t.prototype.subscribeCore=function(e){return this.source.subscribe(new n(e,this))},tr(n,Vr),n.prototype.next=function(e){var t=Gt(this.t.onNext).call(this.t,e);t===Qt&&this.o.onError(t.e),this.o.onNext(e)},n.prototype.error=function(e){var t=Gt(this.t.onError).call(this.t,e);return t===Qt?this.o.onError(t.e):void this.o.onError(e)},n.prototype.completed=function(){var e=Gt(this.t.onCompleted).call(this.t);return e===Qt?this.o.onError(e.e):void this.o.onCompleted()},t}(Yr);Xr["do"]=Xr.tap=Xr.doAction=function(e,t,n){return new ms(this,e,t,n)},Xr.doOnNext=Xr.tapOnNext=function(e,t){return this.tap("undefined"!=typeof t?function(n){e.call(t,n)}:e)},Xr.doOnError=Xr.tapOnError=function(e,t){return this.tap(Ut,"undefined"!=typeof t?function(n){e.call(t,n)}:e)},Xr.doOnCompleted=Xr.tapOnCompleted=function(e,t){return this.tap(Ut,null,"undefined"!=typeof t?function(){e.call(t)}:e)};var gs=function(e){function t(t,n,r){this.source=t,this._fn=wn(n,r,0),e.call(this)}function n(e,t){this.isDisposed=!1,this._s=e,this._fn=t}return tr(t,e),t.prototype.subscribeCore=function(e){var t=Gt(this.source.subscribe).call(this.source,e);return t===Qt&&(this._fn(),i(t.e)),new n(t,this._fn)},n.prototype.dispose=function(){if(!this.isDisposed){var e=Gt(this._s.dispose).call(this._s);this._fn(),e===Qt&&i(e.e)}},t}(Yr);Xr["finally"]=function(e,t){return new gs(this,e,t)};var ys=function(e){function t(t){this.source=t,e.call(this)}function n(e){this.o=e,this.isStopped=!1}return tr(t,e),t.prototype.subscribeCore=function(e){return this.source.subscribe(new n(e))},n.prototype.onNext=Ut,n.prototype.onError=function(e){this.isStopped||(this.isStopped=!0,this.o.onError(e))},n.prototype.onCompleted=function(){this.isStopped||(this.isStopped=!0,this.o.onCompleted())},n.prototype.dispose=function(){this.isStopped=!0},n.prototype.fail=function(e){return this.isStopped?!1:(this.isStopped=!0,this.observer.onError(e),!0)},t}(Yr);Xr.ignoreElements=function(){return new ys(this)};var bs=function(e){function t(t,n){this.source=t,e.call(this)}return tr(t,e),t.prototype.subscribeCore=function(e){return this.source.subscribe(new ws(e))},t}(Yr),ws=function(e){function t(t){this._o=t,e.call(this)}return tr(t,e),t.prototype.next=function(e){this._o.onNext(qr(e))},t.prototype.error=function(e){this._o.onNext(Rr(e)),this._o.onCompleted()},t.prototype.completed=function(){this._o.onNext(Ur()),this._o.onCompleted()},t}(Vr);Xr.materialize=function(){return new bs(this)},Xr.repeat=function(e){return ii(this,e).concat()},Xr.retry=function(e){return ii(this,e).catchError()};var Es=function(e){function t(e){return{isDisposed:!1,dispose:function(){this.isDisposed||(this.isDisposed=!0,e.isDisposed=!0)}}}function n(t,n){this.source=t,this._notifier=n,e.call(this)}return tr(n,e),n.prototype.subscribeCore=function(e){var n,r=new Pu,i=new Pu,s=this._notifier(r),o=s.subscribe(i),u=this.source["@@iterator"](),a={isDisposed:!1},f=new vr,l=Ar.scheduleRecursive(null,function(t,s){if(!a.isDisposed){var o=u.next();if(o.done)return void (n?e.onError(n):e.onCompleted());var l=o.value;Jt(l)&&(l=li(l));var c=new dr,h=new dr;f.setDisposable(new mr(h,c)),c.setDisposable(l.subscribe(function(t){e.onNext(t)},function(t){h.setDisposable(i.subscribe(s,function(t){e.onError(t)},function(){e.onCompleted()})),r.onNext(t),c.dispose()},function(){e.onCompleted()}))}});return new gr([o,f,l,t(a)])},n}(Yr);Xr.retryWhen=function(e){return new Es(U(this),e)};var Ss=function(e){function t(e){return{isDisposed:!1,dispose:function(){this.isDisposed||(this.isDisposed=!0,e.isDisposed=!0)}}}function n(t,n){this.source=t,this._notifier=n,e.call(this)}return tr(n,e),n.prototype.subscribeCore=function(e){var n,r=new Pu,i=new Pu,s=this._notifier(r),o=s.subscribe(i),u=this.source["@@iterator"](),a={isDisposed:!1},f=new vr,l=Ar.scheduleRecursive(null,function(t,s){if(!a.isDisposed){var o=u.next();if(o.done)return void (n?e.onError(n):e.onCompleted());var l=o.value;Jt(l)&&(l=li(l));var c=new dr,h=new dr;f.setDisposable(new mr(h,c)),c.setDisposable(l.subscribe(function(t){e.onNext(t)},function(t){e.onError(t)},function(){h.setDisposable(i.subscribe(s,function(t){e.onError(t)},function(){e.onCompleted()})),r.onNext(null),c.dispose()}))}});return new gr([o,f,l,t(a)])},n}(Yr);Xr.repeatWhen=function(e){return new Ss(U(this),e)};var xs=function(e){function t(t,n,r,i){this.source=t,this.accumulator=n,this.hasSeed=r,this.seed=i,e.call(this)}return tr(t,e),t.prototype.subscribeCore=function(e){return this.source.subscribe(new Ts(e,this))},t}(Yr),Ts=function(e){function t(t,n){this._o=t,this._p=n,this._fn=n.accumulator,this._hs=n.hasSeed,this._s=n.seed,this._ha=!1,this._a=null,this._hv=!1,this._i=0,e.call(this)}return tr(t,e),t.prototype.next=function(e){return!this._hv&&(this._hv=!0),this._ha?this._a=Gt(this._fn)(this._a,e,this._i,this._p):(this._a=this._hs?Gt(this._fn)(this._s,e,this._i,this._p):e,this._ha=!0),this._a===Qt?this._o.onError(this._a.e):(this._o.onNext(this._a),void (this._i++))},t.prototype.error=function(e){this._o.onError(e)},t.prototype.completed=function(){!this._hv&&this._hs&&this._o.onNext(this._s),this._o.onCompleted()},t}(Vr);Xr.scan=function(){var e,t=!1,n=arguments[0];return 2===arguments.length&&(t=!0,e=arguments[1]),new xs(this,n,t,e)};var Ns=function(e){function t(t,n){this.source=t,this._c=n,e.call(this)}return tr(t,e),t.prototype.subscribeCore=function(e){return this.source.subscribe(new Cs(e,this._c))},t}(Yr),Cs=function(e){function t(t,n){this._o=t,this._c=n,this._q=[],e.call(this)}return tr(t,e),t.prototype.next=function(e){this._q.push(e),this._q.length>this._c&&this._o.onNext(this._q.shift())},t.prototype.error=function(e){this._o.onError(e)},t.prototype.completed=function(){this._o.onCompleted()},t}(Vr);Xr.skipLast=function(e){if(0>e)throw new hn;return new Ns(this,e)},Xr.startWith=function(){var e,t=0;arguments.length&&Sr(arguments[0])?(e=arguments[0],t=1):e=kr;for(var n=[],r=t,i=arguments.length;i>r;r++)n.push(arguments[r]);return Ri.apply(null,[Ei(n,e),this])};var ks=function(e){function t(t,n){this._o=t,this._c=n,this._q=[],e.call(this)}return tr(t,e),t.prototype.next=function(e){this._q.push(e),this._q.length>this._c&&this._q.shift()},t.prototype.error=function(e){this._o.onError(e)},t.prototype.completed=function(){for(;this._q.length>0;)this._o.onNext(this._q.shift());this._o.onCompleted()},t}(Vr);Xr.takeLast=function(e){if(0>e)throw new hn;var t=this;return new Ou(function(n){return t.subscribe(new ks(n,e))},t)};var Ls=function(e){function t(t,n){this._o=t,this._c=n,this._q=[],e.call(this)}return tr(t,e),t.prototype.next=function(e){this._q.push(e),this._q.length>this._c&&this._q.shift()},t.prototype.error=function(e){this._o.onError(e)},t.prototype.completed=function(){this._o.onNext(this._q),this._o.onCompleted()},t}(Vr);Xr.takeLastBuffer=function(e){if(0>e)throw new hn;var t=this;return new Ou(function(n){return t.subscribe(new Ls(n,e))},t)},Xr.windowWithCount=Xr.windowCount=function(e,t){var n=this;if(+e||(e=0),Math.abs(e)===1/0&&(e=0),0>=e)throw new hn;if(null==t&&(t=e),+t||(t=0),Math.abs(t)===1/0&&(t=0),0>=t)throw new hn;return new Ou(function(r){function i(){var e=new Pu;a.push(e),r.onNext(rr(e,o))}var s=new dr,o=new yr(s),u=0,a=[];return i(),s.setDisposable(n.subscribe(function(n){for(var r=0,s=a.length;s>r;r++)a[r].onNext(n);var o=u-e+1;o>=0&&o%t===0&&a.shift().onCompleted(),++u%t===0&&i()},function(e){for(;a.length>0;)a.shift().onError(e);r.onError(e)},function(){for(;a.length>0;)a.shift().onCompleted();r.onCompleted()})),o},n)},Xr.flatMapConcat=Xr.concatMap=function(e,t,n){return(new Zr(this,e,t,n)).merge(1)},Xr.concatMapObserver=Xr.selectConcatObserver=function(e,t,n,r){var i=this,s=wn(e,r,2),o=wn(t,r,1),u=wn(n,r,0);return(new Ou(function(e){var t=0;return i.subscribe(function(n){var r;try{r=s(n,t++)}catch(i){return void e.onError(i)}Jt(r)&&(r=li(r)),e.onNext(r)},function(t){var n;try{n=o(t)}catch(r){return void e.onError(r)}Jt(n)&&(n=li(n)),e.onNext(n),e.onCompleted()},function(){var t;try{t=u()}catch(n){return void e.onError(n)}Jt(t)&&(t=li(t)),e.onNext(t),e.onCompleted()})},this)).concatAll()};var As=function(e){function t(t,n){this._o=t,this._d=n,this._f=!1,e.call(this)}return tr(t,e),t.prototype.next=function(e){this._f=!0,this._o.onNext(e)},t.prototype.error=function(e){this._o.onError(e)},t.prototype.completed=function(){!this._f&&this._o.onNext(this._d),this._o.onCompleted()},t}(Vr);Xr.defaultIfEmpty=function(t){var n=this;return t===e&&(t=null),new Ou(function(e){return n.subscribe(new As(e,t))},n)},W.prototype.push=function(e){var t=-1===z(this.set,e,this.comparer);return t&&this.set.push(e),t};var Os=function(e){function t(t,n,r){this.source=t,this._keyFn=n,this._cmpFn=r,e.call(this)}return tr(t,e),t.prototype.subscribeCore=function(e){return this.source.subscribe(new Ms(e,this._keyFn,this._cmpFn))},t}(Yr),Ms=function(e){function t(t,n,r){this._o=t,this._keyFn=n,this._h=new W(r),e.call(this)}return tr(t,e),t.prototype.next=function(e){var t=e;return Kt(this._keyFn)&&(t=Gt(this._keyFn)(e),t===Qt)?this._o.onError(t.e):void (this._h.push(t)&&this._o.onNext(e))},t.prototype.error=function(e){this._o.onError(e)},t.prototype.completed=function(){this._o.onCompleted()},t}(Vr);Xr.distinct=function(e,t){return t||(t=Xt),new Os(this,e,t)},Xr.groupBy=function(e,t){return this.groupByUntil(e,t,Ni)},Xr.groupByUntil=function(t,n,r){var i=this;return new Ou(function(s){var o=new $o,u=new or,a=new yr(u),f=function(e){return function(t){t.onError(e)}};return u.add(i.subscribe(function(i){var l=Gt(t)(i);if(l===Qt)return o.forEach(f(l.e)),s.onError(l.e);var c=!1,h=o.get(l);if(h===e&&(h=new Pu,o.set(l,h),c=!0),c){var p=new Du(l,h,a),d=new Du(l,h),v=Gt(r)(d);if(v===Qt)return o.forEach(f(v.e)),s.onError(v.e);s.onNext(p);var m=new dr;u.add(m),m.setDisposable(v.take(1).subscribe(Ut,function(e){o.forEach(f(e)),s.onError(e)},function(){o["delete"](l)&&h.onCompleted(),u.remove(m)}))}var g=i;return Kt(n)&&(g=Gt(n)(i),g===Qt)?(o.forEach(f(g.e)),s.onError(g.e)):void h.onNext(g)},function(e){o.forEach(f(e)),s.onError(e)},function(){o.forEach(function(e){e.onCompleted()}),s.onCompleted()})),a},i)};var _s=function(e){function t(t,n,r){this.source=t,this.selector=wn(n,r,3),e.call(this)}function n(e,t){return function(n,r,i){return e.call(this,t.selector(n,r,i),r,i)}}function r(e,t,n){this.o=e,this.selector=t,this.source=n,this.i=0,Vr.call(this)}return tr(t,e),t.prototype.internalMap=function(e,r){return new t(this.source,n(e,this),r)},t.prototype.subscribeCore=function(e){return this.source.subscribe(new r(e,this.selector,this))},tr(r,Vr),r.prototype.next=function(e){var t=Gt(this.selector)(e,this.i++,this.source);return t===Qt?this.o.onError(t.e):void this.o.onNext(t)},r.prototype.error=function(e){this.o.onError(e)},r.prototype.completed=function(){this.o.onCompleted()},t}(Yr);Xr.map=Xr.select=function(e,t){var n="function"==typeof e?e:function(){return e};return this instanceof _s?this.internalMap(n,t):new _s(this,n,t)},Xr.pluck=function(){var e=arguments.length,t=new Array(e);if(0===e)throw new Error("List of properties cannot be empty.");for(var n=0;e>n;n++)t[n]=arguments[n];return this.map(X(t,e))},Xr.flatMap=Xr.selectMany=Xr.mergeMap=function(e,t,n){return(new Zr(this,e,t,n)).mergeAll()},Xr.flatMapObserver=Xr.selectManyObserver=function(e,t,n,r){var i=this;return(new Ou(function(s){var o=0;return i.subscribe(function(t){var n;try{n=e.call(r,t,o++)}catch(i){return void s.onError(i)}Jt(n)&&(n=li(n)),s.onNext(n)},function(e){var n;try{n=t.call(r,e)}catch(i){return void s.onError(i)}Jt(n)&&(n=li(n)),s.onNext(n),s.onCompleted()},function(){var e;try{e=n.call(r)}catch(t){return void s.onError(t)}Jt(e)&&(e=li(e)),s.onNext(e),s.onCompleted()})},i)).mergeAll()},Xr.flatMapLatest=Xr.switchMap=function(e,t,n){return(new Zr(this,e,t,n)).switchLatest()};var Ds=function(e){function t(t,n){this.source=t,this._count=n,e.call(this)}function n(e,t){this._o=e,this._r=t,Vr.call(this)}return tr(t,e),t.prototype.subscribeCore=function(e){return this.source.subscribe(new n(e,this._count))},tr(n,Vr),n.prototype.next=function(e){this._r<=0?this._o.onNext(e):this._r--},n.prototype.error=function(e){this._o.onError(e)},n.prototype.completed=function(){this._o.onCompleted()},t}(Yr);Xr.skip=function(e){if(0>e)throw new hn;return new Ds(this,e)};var Ps=function(e){function t(t,n){this.source=t,this._fn=n,e.call(this)}return tr(t,e),t.prototype.subscribeCore=function(e){return this.source.subscribe(new Hs(e,this))},t}(Yr),Hs=function(e){function t(t,n){this._o=t,this._p=n,this._i=0,this._r=!1,e.call(this)}return tr(t,e),t.prototype.next=function(e){if(!this._r){var t=Gt(this._p._fn)(e,this._i++,this._p);if(t===Qt)return this._o.onError(t.e);this._r=!t}this._r&&this._o.onNext(e)},t.prototype.error=function(e){this._o.onError(e)},t.prototype.completed=function(){this._o.onCompleted()},t}(Vr);Xr.skipWhile=function(e,t){var n=wn(e,t,3);return new Ps(this,n)};var Bs=function(e){function t(t,n){this.source=t,this._count=n,e.call(this)}function n(e,t){this._o=e,this._c=t,this._r=t,Vr.call(this)}return tr(t,e),t.prototype.subscribeCore=function(e){return this.source.subscribe(new n(e,this._count))},tr(n,Vr),n.prototype.next=function(e){this._r-->0&&(this._o.onNext(e),this._r<=0&&this._o.onCompleted())},n.prototype.error=function(e){this._o.onError(e)},n.prototype.completed=function(){this._o.onCompleted()},t}(Yr);Xr.take=function(e,t){if(0>e)throw new hn;return 0===e?mi(t):new Bs(this,e)};var js=function(e){function t(t,n){this.source=t,this._fn=n,e.call(this)}return tr(t,e),t.prototype.subscribeCore=function(e){return this.source.subscribe(new Fs(e,this))},t}(Yr),Fs=function(e){function t(t,n){this._o=t,this._p=n,this._i=0,this._r=!0,e.call(this)}return tr(t,e),t.prototype.next=function(e){return this._r&&(this._r=Gt(this._p._fn)(e,this._i++,this._p),this._r===Qt)?this._o.onError(this._r.e):void (this._r?this._o.onNext(e):this._o.onCompleted())},t.prototype.error=function(e){this._o.onError(e)},t.prototype.completed=function(){this._o.onCompleted()},t}(Vr);Xr.takeWhile=function(e,t){var n=wn(e,t,3);return new js(this,n)};var Is=function(e){function t(t,n,r){this.source=t,this.predicate=wn(n,r,3),e.call(this)}function n(e,t){return function(n,r,i){return t.predicate(n,r,i)&&e.call(this,n,r,i)}}function r(e,t,n){this.o=e,this.predicate=t,this.source=n,this.i=0,Vr.call(this)}return tr(t,e),t.prototype.subscribeCore=function(e){return this.source.subscribe(new r(e,this.predicate,this))},t.prototype.internalFilter=function(e,r){return new t(this.source,n(e,this),r)},tr(r,Vr),r.prototype.next=function(e){var t=Gt(this.predicate)(e,this.i++,this.source);return t===Qt?this.o.onError(t.e):void (t&&this.o.onNext(e))},r.prototype.error=function(e){this.o.onError(e)},r.prototype.completed=function(){this.o.onCompleted()},t}(Yr);Xr.filter=Xr.where=function(e,t){return this instanceof Is?this.internalFilter(e,t):new Is(this,e,t)};var qs=function(e){function t(t,n,r){this.source=t,this._k=n,this._c=r,e.call(this)}return tr(t,e),t.prototype.subscribeCore=function(e){return this.source.subscribe(new Rs(e,this._k,this._c))},t}(Yr),Rs=function(e){function t(t,n,r){this._o=t,this._k=n,this._c=r,this._v=null,this._hv=!1,this._l=[],e.call(this)}return tr(t,e),t.prototype.next=function(e){var t=Gt(this._k)(e);if(t===Qt)return this._o.onError(t.e);var n=0;if(this._hv){if(n=Gt(this._c)(t,this._v),n===Qt)return this._o.onError(n.e)}else this._hv=!0,this._v=t;n>0&&(this._v=t,this._l=[]),n>=0&&this._l.push(e)},t.prototype.error=function(e){this._o.onError(e)},t.prototype.completed=function(){this._o.onNext(this._l),this._o.onCompleted()},t}(Vr),Us=function(e){function t(t,n,r,i){this.source=t,this.accumulator=n,this.hasSeed=r,this.seed=i,e.call(this)}return tr(t,e),t.prototype.subscribeCore=function(e){return this.source.subscribe(new zs(e,this))},t}(Yr),zs=function(e){function t(t,n){this._o=t,this._p=n,this._fn=n.accumulator,this._hs=n.hasSeed,this._s=n.seed,this._ha=!1,this._a=null,this._hv=!1,this._i=0,e.call(this)}return tr(t,e),t.prototype.next=function(e){return!this._hv&&(this._hv=!0),this._ha?this._a=Gt(this._fn)(this._a,e,this._i,this._p):(this._a=this._hs?Gt(this._fn)(this._s,e,this._i,this._p):e,this._ha=!0),this._a===Qt?this._o.onError(this._a.e):void (this._i++)},t.prototype.error=function(e){this._o.onError(e)},t.prototype.completed=function(){this._hv&&this._o.onNext(this._a),!this._hv&&this._hs&&this._o.onNext(this._s),!this._hv&&!this._hs&&this._o.onError(new ln),this._o.onCompleted()},t}(Vr);Xr.reduce=function(){var e,t=!1,n=arguments[0];return 2===arguments.length&&(t=!0,e=arguments[1]),new Us(this,n,t,e)};var Ws=function(e){function t(t,n){this.source=t,this._fn=n,e.call(this)}return tr(t,e),t.prototype.subscribeCore=function(e){return this.source.subscribe(new Xs(e,this._fn,this.source))},t}(Yr),Xs=function(e){function t(t,n,r){this._o=t,this._fn=n,this._s=r,this._i=0,e.call(this)}return tr(t,e),t.prototype.next=function(e){var t=Gt(this._fn)(e,this._i++,this._s);return t===Qt?this._o.onError(t.e):void (Boolean(t)&&(this._o.onNext(!0),this._o.onCompleted()))},t.prototype.error=function(e){this._o.onError(e)},t.prototype.completed=function(){this._o.onNext(!1),this._o.onCompleted()},t}(Vr);Xr.some=function(e,t){var n=wn(e,t,3);return new Ws(this,n)};var Vs=function(e){function t(t){this.source=t,e.call(this)}return tr(t,e),t.prototype.subscribeCore=function(e){return this.source.subscribe(new $s(e))},t}(Yr),$s=function(e){function t(t){this._o=t,e.call(this)}return tr(t,e),t.prototype.next=function(){this._o.onNext(!1),this._o.onCompleted()},t.prototype.error=function(e){this._o.onError(e)},t.prototype.completed=function(){this._o.onNext(!0),this._o.onCompleted()},t}(Vr);Xr.isEmpty=function(){return new Vs(this)};var Js=function(e){function t(t,n){this.source=t,this._fn=n,e.call(this)}return tr(t,e),t.prototype.subscribeCore=function(e){return this.source.subscribe(new Ks(e,this._fn,this.source))},t}(Yr),Ks=function(e){function t(t,n,r){this._o=t,this._fn=n,this._s=r,this._i=0,e.call(this)}return tr(t,e),t.prototype.next=function(e){var t=Gt(this._fn)(e,this._i++,this._s);return t===Qt?this._o.onError(t.e):void (Boolean(t)||(this._o.onNext(!1),this._o.onCompleted()))},t.prototype.error=function(e){this._o.onError(e)},t.prototype.completed=function(){this._o.onNext(!0),this._o.onCompleted()},t}(Vr);Xr.every=function(e,t){var n=wn(e,t,3);return new Js(this,n)};var Qs=function(e){function t(t,n,r){var i=+r||0;Math.abs(i)===1/0&&(i=0),this.source=t,this._elem=n,this._n=i,e.call(this)}return tr(t,e),t.prototype.subscribeCore=function(e){return this._n<0?(e.onNext(!1),e.onCompleted(),lr):this.source.subscribe(new Gs(e,this._elem,this._n))},t}(Yr),Gs=function(e){function t(t,n,r){this._o=t,this._elem=n,this._n=r,this._i=0,e.call(this)}function n(e,t){return 0===e&&0===t||e===t||isNaN(e)&&isNaN(t)}return tr(t,e),t.prototype.next=function(e){this._i++>=this._n&&n(e,this._elem)&&(this._o.onNext(!0),this._o.onCompleted())},t.prototype.error=function(e){this._o.onError(e)},t.prototype.completed=function(){this._o.onNext(!1),this._o.onCompleted()},t}(Vr);Xr.includes=function(e,t){return new Qs(this,e,t)};var Ys=function(e){function t(t,n){this.source=t,this._fn=n,e.call(this)}return tr(t,e),t.prototype.subscribeCore=function(e){return this.source.subscribe(new Zs(e,this._fn,this.source))},t}(Yr),Zs=function(e){function t(t,n,r){this._o=t,this._fn=n,this._s=r,this._i=0,this._c=0,e.call(this)}return tr(t,e),t.prototype.next=function(e){if(this._fn){var t=Gt(this._fn)(e,this._i++,this._s);if(t===Qt)return this._o.onError(t.e);Boolean(t)&&this._c++}else this._c++},t.prototype.error=function(e){this._o.onError(e)},t.prototype.completed=function(){this._o.onNext(this._c),this._o.onCompleted()},t}(Vr);Xr.count=function(e,t){var n=wn(e,t,3);return new Ys(this,n)};var eo=function(e){function t(t,n,r){this.source=t,this._e=n,this._n=r,e.call(this)}return tr(t,e),t.prototype.subscribeCore=function(e){return this._n<0?(e.onNext(-1),e.onCompleted(),lr):this.source.subscribe(new to(e,this._e,this._n))},t}(Yr),to=function(e){function t(t,n,r){this._o=t,this._e=n,this._n=r,this._i=0,e.call(this)}return tr(t,e),t.prototype.next=function(e){this._i>=this._n&&e===this._e&&(this._o.onNext(this._i),this._o.onCompleted()),this._i++},t.prototype.error=function(e){this._o.onError(e)},t.prototype.completed=function(){this._o.onNext(-1),this._o.onCompleted()},t}(Vr);Xr.indexOf=function(e,t){var n=+t||0;return Math.abs(n)===1/0&&(n=0),new eo(this,e,n)};var no=function(e){function t(t,n){this.source=t,this._fn=n,e.call(this)}return tr(t,e),t.prototype.subscribeCore=function(e){return this.source.subscribe(new ro(e,this._fn,this.source))},t}(Yr),ro=function(e){function t(t,n,r){this._o=t,this._fn=n,this._s=r,this._i=0,this._c=0,e.call(this)}return tr(t,e),t.prototype.next=function(e){if(this._fn){var t=Gt(this._fn)(e,this._i++,this._s);if(t===Qt)return this._o.onError(t.e);this._c+=t}else this._c+=e},t.prototype.error=function(e){this._o.onError(e)},t.prototype.completed=function(){this._o.onNext(this._c),this._o.onCompleted()},t}(Vr);Xr.sum=function(e,t){var n=wn(e,t,3);return new no(this,n)},Xr.minBy=function(e,t){return t||(t=Vt),new qs(this,e,function(e,n){return-1*t(e,n)})},Xr.min=function(e){return this.minBy(zt,e).map(V)},Xr.maxBy=function(e,t){return t||(t=Vt),new qs(this,e,t)},Xr.max=function(e){return this.maxBy(zt,e).map(V)};var io=function(e){function t(t,n){this.source=t,this._fn=n,e.call(this)}return tr(t,e),t.prototype.subscribeCore=function(e){return this.source.subscribe(new so(e,this._fn,this.source))},t}(Yr),so=function(e){function t(t,n,r){this._o=t,this._fn=n,this._s=r,this._c=0,this._t=0,e.call(this)}return tr(t,e),t.prototype.next=function(e){if(this._fn){var t=Gt(this._fn)(e,this._c++,this._s);if(t===Qt)return this._o.onError(t.e);this._t+=t}else this._c++,this._t+=e},t.prototype.error=function(e){this._o.onError(e)},t.prototype.completed=function(){return 0===this._c?this._o.onError(new ln):(this._o.onNext(this._t/this._c),void this._o.onCompleted())},t}(Vr);Xr.average=function(e,t){var n,r=this;return Kt(e)&&(n=wn(e,t,3)),new io(r,n)},Xr.sequenceEqual=function(e,t){var n=this;return t||(t=Xt),new Ou(function(r){var i=!1,s=!1,o=[],u=[],a=n.subscribe(function(e){if(u.length>0){var n=u.shift(),i=Gt(t)(n,e);if(i===Qt)return r.onError(i.e);i||(r.onNext(!1),r.onCompleted())}else s?(r.onNext(!1),r.onCompleted()):o.push(e)},function(e){r.onError(e)},function(){i=!0,0===o.length&&(u.length>0?(r.onNext(!1),r.onCompleted()):s&&(r.onNext(!0),r.onCompleted()))});(bn(e)||yn(e))&&(e=bi(e)),Jt(e)&&(e=li(e));var f=e.subscribe(function(e){if(o.length>0){var n=o.shift(),s=Gt(t)(n,e);if(s===Qt)return r.onError(s.e);s||(r.onNext(!1),r.onCompleted())}else i?(r.onNext(!1),r.onCompleted()):u.push(e)},function(e){r.onError(e)},function(){s=!0,0===u.length&&(o.length>0?(r.onNext(!1),r.onCompleted()):i&&(r.onNext(!0),r.onCompleted()))});return new mr(a,f)},n)};var oo=function(e){function t(t,n,r){this.source=t,this._i=n,this._d=r,e.call(this)}return tr(t,e),t.prototype.subscribeCore=function(e){return this.source.subscribe(new uo(e,this._i,this._d))},t}(Yr),uo=function(t){function n(e,n,r){this._o=e,this._i=n,this._d=r,t.call(this)}return tr(n,t),n.prototype.next=function(e){0===this._i--&&(this._o.onNext(e),this._o.onCompleted())},n.prototype.error=function(e){this._o.onError(e)},n.prototype.completed=function(){this._d===e?this._o.onError(new hn):(this._o.onNext(this._d),this._o.onCompleted())},n}(Vr);Xr.elementAt=function(e,t){if(0>e)throw new hn;return new oo(this,e,t)};var ao=function(t){function n(e,n,r){this._o=e,this._obj=n,this._s=r,this._i=0,this._hv=!1,this._v=null,t.call(this)}return tr(n,t),n.prototype.next=function(e){var t=!1;if(this._obj.predicate){var n=Gt(this._obj.predicate)(e,this._i++,this._s);if(n===Qt)return this._o.onError(n.e);Boolean(n)&&(t=!0)}else this._obj.predicate||(t=!0);if(t){if(this._hv)return this._o.onError(new Error("Sequence contains more than one matching element"));this._hv=!0,this._v=e}},n.prototype.error=function(e){this._o.onError(e)},n.prototype.completed=function(){this._hv?(this._o.onNext(this._v),this._o.onCompleted()):this._obj.defaultValue===e?this._o.onError(new ln):(this._o.onNext(this._obj.defaultValue),this._o.onCompleted())},n}(Vr);Xr.single=function(e,t){var n={},r=this;if(n="object"==typeof arguments[0]?arguments[0]:{predicate:arguments[0],thisArg:arguments[1],defaultValue:arguments[2]},Kt(n.predicate)){var i=n.predicate;n.predicate=wn(i,n.thisArg,3)}return new Ou(function(e){return r.subscribe(new ao(e,n,r))},r)};var fo=function(e){function t(t,n){this.source=t,this._obj=n,e.call(this)}return tr(t,e),t.prototype.subscribeCore=function(e){return this.source.subscribe(new lo(e,this._obj,this.source))},t}(Yr),lo=function(t){function n(e,n,r){this._o=e,this._obj=n,this._s=r,this._i=0,t.call(this)}return tr(n,t),n.prototype.next=function(e){if(this._obj.predicate){var t=Gt(this._obj.predicate)(e,this._i++,this._s);if(t===Qt)return this._o.onError(t.e);Boolean(t)&&(this._o.onNext(e),this._o.onCompleted())}else this._obj.predicate||(this._o.onNext(e),this._o.onCompleted())},n.prototype.error=function(e){this._o.onError(e)},n.prototype.completed=function(){this._obj.defaultValue===e?this._o.onError(new ln):(this._o.onNext(this._obj.defaultValue),this._o.onCompleted())},n}(Vr);Xr.first=function(){var e={};if(e="object"==typeof arguments[0]?arguments[0]:{predicate:arguments[0],thisArg:arguments[1],defaultValue:arguments[2]},Kt(e.predicate)){var t=e.predicate;e.predicate=wn(t,e.thisArg,3)}return new fo(this,e)};var co=function(e){function t(t,n){this.source=t,this._obj=n,e.call(this)}return tr(t,e),t.prototype.subscribeCore=function(e){return this.source.subscribe(new ho(e,this._obj,this.source))},t}(Yr),ho=function(t){function n(e,n,r){this._o=e,this._obj=n,this._s=r,this._i=0,this._hv=!1,this._v=null,t.call(this)}return tr(n,t),n.prototype.next=function(e){var t=!1;if(this._obj.predicate){var n=Gt(this._obj.predicate)(e,this._i++,this._s);if(n===Qt)return this._o.onError(n.e);Boolean(n)&&(t=!0)}else this._obj.predicate||(t=!0);
vendor: 5,886 bytes, line 1
1t&&(this._hv=!0,this._v=e)},n.prototype.error=function(e){this._o.onError(e)},n.prototype.completed=function(){this._hv?(this._o.onNext(this._v),this._o.onCompleted()):this._obj.defaultValue===e?this._o.onError(new ln):(this._o.onNext(this._obj.defaultValue),this._o.onCompleted())},n}(Vr);Xr.last=function(){var e={};if(e="object"==typeof arguments[0]?arguments[0]:{predicate:arguments[0],thisArg:arguments[1],defaultValue:arguments[2]},Kt(e.predicate)){var t=e.predicate;e.predicate=wn(t,e.thisArg,3)}return new co(this,e)};var po=function(e){function t(t,n,r,i){this._o=t,this._s=n,this._cb=r,this._y=i,this._i=0,e.call(this)}return tr(t,e),t.prototype.next=function(e){var t=Gt(this._cb)(e,this._i,this._s);return t===Qt?this._o.onError(t.e):void (t?(this._o.onNext(this._y?this._i:e),this._o.onCompleted()):this._i++)},t.prototype.error=function(e){this._o.onError(e)},t.prototype.completed=function(){this._y&&this._o.onNext(-1),this._o.onCompleted()},t}(Vr);Xr.find=function(e,t){return $(this,e,t,!1)},Xr.findIndex=function(e,t){return $(this,e,t,!0)};var vo=function(e){function t(t){this.source=t,e.call(this)}return tr(t,e),t.prototype.subscribeCore=function(e){return this.source.subscribe(new mo(e))},t}(Yr),mo=function(e){function t(t){this._o=t,this._s=new qt.Set,e.call(this)}return tr(t,e),t.prototype.next=function(e){this._s.add(e)},t.prototype.error=function(e){this._o.onError(e)},t.prototype.completed=function(){this._o.onNext(this._s),this._o.onCompleted()},t}(Vr);Xr.toSet=function(){if("undefined"==typeof qt.Set)throw new TypeError;return new vo(this)};var go=function(e){function t(t,n,r){this.source=t,this._k=n,this._e=r,e.call(this)}return tr(t,e),t.prototype.subscribeCore=function(e){return this.source.subscribe(new yo(e,this._k,this._e))},t}(Yr),yo=function(e){function t(t,n,r){this._o=t,this._k=n,this._e=r,this._m=new qt.Map,e.call(this)}return tr(t,e),t.prototype.next=function(e){var t=Gt(this._k)(e);if(t===Qt)return this._o.onError(t.e);var n=e;return this._e&&(n=Gt(this._e)(e),n===Qt)?this._o.onError(n.e):void this._m.set(t,n)},t.prototype.error=function(e){this._o.onError(e)},t.prototype.completed=function(){this._o.onNext(this._m),this._o.onCompleted()},t}(Vr);Xr.toMap=function(e,t){if("undefined"==typeof qt.Map)throw new TypeError;return new go(this,e,t)};var bo=function(e){function t(t,n,r){this.source=t,this._b=n,this._e=r,e.call(this)}return tr(t,e),t.prototype.subscribeCore=function(e){return this.source.subscribe(new wo(e,this._b,this._e))},t}(Yr),wo=function(e){function t(t,n,r){this._o=t,this._b=n,this._e=r,this._i=0,e.call(this)}return tr(t,e),t.prototype.next=function(e){this._i>=this._b&&(this._e===this._i?this._o.onCompleted():this._o.onNext(e)),this._i++},t.prototype.error=function(e){this._o.onError(e)},t.prototype.completed=function(){this._o.onCompleted()},t}(Vr);Xr.slice=function(e,t){var n=e||0;if(0>n)throw new Rt.ArgumentOutOfRangeError;if("number"==typeof t&&n>t)throw new Rt.ArgumentOutOfRangeError;return new bo(this,n,t)};var Eo=function(e){function t(t,n,r){this.source=t,this._e=n,this._n=r,e.call(this)}return tr(t,e),t.prototype.subscribeCore=function(e){return this._n<0?(e.onNext(-1),e.onCompleted(),lr):this.source.subscribe(new So(e,this._e,this._n))},t}(Yr),So=function(e){function t(t,n,r){this._o=t,this._e=n,this._n=r,this._v=0,this._hv=!1,this._i=0,e.call(this)}return tr(t,e),t.prototype.next=function(e){this._i>=this._n&&e===this._e&&(this._hv=!0,this._v=this._i),this._i++},t.prototype.error=function(e){this._o.onError(e)},t.prototype.completed=function(){this._hv?this._o.onNext(this._v):this._o.onNext(-1),this._o.onCompleted()},t}(Vr);Xr.lastIndexOf=function(e,t){var n=+t||0;return Math.abs(n)===1/0&&(n=0),new Eo(this,e,n)},Gr.wrap=function(e){function t(){return Gr.spawn.call(this,e.apply(this,arguments))}return t.__generatorFunction__=e,t};var xo=Gr.spawn=function(){for(var e=arguments[0],t=this,n=[],r=1,i=arguments.length;i>r;r++)n.push(arguments[r]);return new Ou(function(r){function i(t){var n=Gt(e.next).call(e,t);return n===Qt?r.onError(n.e):void o(n)}function s(t){var n=Gt(e.next).call(e,t);return n===Qt?r.onError(n.e):void o(n)}function o(e){if(e.done)return r.onNext(e.value),void r.onCompleted();var n=J.call(t,e.value),o=null,a=!1;Gr.isObservable(n)?u.add(n.subscribe(function(e){a=!0,o=e},s,function(){a&&i(o)})):s(new TypeError("type not supported"))}var u=new or;return Kt(e)&&(e=e.apply(t,n)),e&&Kt(e.next)?(i(),u):(r.onNext(e),r.onCompleted())})};Gr.start=function(e,t,n){return To(e,t,n)()};var To=Gr.toAsync=function(e,t,n){return Sr(n)||(n=Pr),function(){var r=arguments,i=new Hu;return n.schedule(null,function(){var n;try{n=e.apply(t,r)}catch(s){return void i.onError(s)}i.onNext(n),i.onCompleted()}),i.asObservable()}};Gr.fromCallback=function(e,t,n){return function(){"undefined"==typeof t&&(t=this);for(var r=arguments.length,i=new Array(r),s=0;r>s;s++)i[s]=arguments[s];return tt(e,t,n,i)}},Gr.fromNodeCallback=function(e,t,n){return function(){"undefined"==typeof t&&(t=this);for(var r=arguments.length,i=new Array(r),s=0;r>s;s++)i[s]=arguments[s];return rt(e,t,n,i)}},ot.prototype.dispose=function(){this.isDisposed||(this._e.removeEventListener(this._n,this._fn,!1),this.isDisposed=!0)},Rt.config.useNativeEvents=!1;var No=function(e){function t(t,n,r){this._el=t,this._n=n,this._fn=r,e.call(this)}function n(e,t){return function(){var n=arguments[0];return Kt(t)&&(n=Gt(t).apply(null,arguments),n===Qt)?e.onError(n.e):void e.onNext(n)}}return tr(t,e),t.prototype.subscribeCore=function(e){return ut(this._el,this._n,n(e,this._fn))},t}(Yr);Gr.fromEvent=function(e,t,n,r){return e.addListener?ko(function(n){e.addListener(t,n,r)},function(n){e.removeListener(t,n,r)},n):Rt.config.useNativeEvents||"function"!=typeof e.on||"function"!=typeof e.off?(new No(e,t,n)).publish().refCount():ko(function(n){e.on(t,n,r)},function(n){e.off(t,n,r)},n)};
vendor: 44,994 bytes, line 1
1var Co=function(e){function t(t,n,r){this._add=t,this._del=n,this._fn=r,e.call(this)}function n(e,t){return function(){var n=arguments[0];return Kt(t)&&(n=Gt(t).apply(null,arguments),n===Qt)?e.onError(n.e):void e.onNext(n)}}function r(e,t,n){this._del=e,this._fn=t,this._ret=n,this.isDisposed=!1}return tr(t,e),t.prototype.subscribeCore=function(e){var t=n(e,this._fn),i=this._add(t);return new r(this._del,t,i)},r.prototype.dispose=function(){this.isDisposed||(Kt(this._del)&&this._del(this._fn,this._ret),this.isDisposed=!0)},t}(Yr),ko=Gr.fromEventPattern=function(e,t,n){return(new Co(e,t,n)).publish().refCount()};Gr.startAsync=function(e){var t=Gt(e)();return t===Qt?Mi(t.e):li(t)};var Lo=function(e){function t(t,n){this.source=t,this.controller=new Pu,this.paused=!0,n&&n.subscribe?this.pauser=this.controller.merge(n):this.pauser=this.controller,e.call(this)}return tr(t,e),t.prototype._subscribe=function(e){var t=this.source.publish(),n=t.subscribe(e),r=lr,i=this.pauser.startWith(!this.paused).distinctUntilChanged().subscribe(function(e){e?r=t.connect():(r.dispose(),r=lr)});return new gr([n,r,i])},t.prototype.pause=function(){this.paused=!0,this.controller.onNext(!1)},t.prototype.resume=function(){this.paused=!1,this.controller.onNext(!0)},t}(Gr);Xr.pausable=function(e){return new Lo(this,e)};var Ao=function(t){function n(e,n){this.source=e,this.controller=new Pu,this.paused=!0,n&&n.subscribe?this.pauser=this.controller.merge(n):this.pauser=this.controller,t.call(this)}return tr(n,t),n.prototype._subscribe=function(t){function n(){for(;i.length>0;)t.onNext(i.shift())}var r,i=[],s=at(this.source,this.pauser.startWith(!this.paused).distinctUntilChanged(),function(e,t){return{data:e,shouldFire:t}}).subscribe(function(s){r!==e&&s.shouldFire!==r?(r=s.shouldFire,s.shouldFire&&n()):(r=s.shouldFire,s.shouldFire?t.onNext(s.data):i.push(s.data))},function(e){n(),t.onError(e)},function(){n(),t.onCompleted()});return s},n.prototype.pause=function(){this.paused=!0,this.controller.onNext(!1)},n.prototype.resume=function(){this.paused=!1,this.controller.onNext(!0)},n}(Gr);Xr.pausableBuffered=function(e){return new Ao(this,e)};var Oo=function(e){function t(t,n,r){e.call(this),this.subject=new Mo(n,r),this.source=t.multicast(this.subject).refCount()}return tr(t,e),t.prototype._subscribe=function(e){return this.source.subscribe(e)},t.prototype.request=function(e){return this.subject.request(null==e?-1:e)},t}(Gr),Mo=function(e){function t(t,n){null==t&&(t=!0),e.call(this),this.subject=new Pu,this.enableQueue=t,this.queue=t?[]:null,this.requestedCount=0,this.requestedDisposable=null,this.error=null,this.hasFailed=!1,this.hasCompleted=!1,this.scheduler=n||Ar}return tr(t,e),nr(t.prototype,zr,{_subscribe:function(e){return this.subject.subscribe(e)},onCompleted:function(){this.hasCompleted=!0,this.enableQueue&&0!==this.queue.length?this.queue.push(Br.createOnCompleted()):(this.subject.onCompleted(),this.disposeCurrentRequest())},onError:function(e){this.hasFailed=!0,this.error=e,this.enableQueue&&0!==this.queue.length?this.queue.push(Br.createOnError(e)):(this.subject.onError(e),this.disposeCurrentRequest())},onNext:function(e){this.requestedCount<=0?this.enableQueue&&this.queue.push(Br.createOnNext(e)):(0===this.requestedCount--&&this.disposeCurrentRequest(),this.subject.onNext(e))},_processRequest:function(e){if(this.enableQueue)for(;this.queue.length>0&&(e>0||"N"!==this.queue[0].kind);){var t=this.queue.shift();t.accept(this.subject),"N"===t.kind?e--:(this.disposeCurrentRequest(),this.queue=[])}return e},request:function(e){this.disposeCurrentRequest();var t=this;return this.requestedDisposable=this.scheduler.schedule(e,function(e,n){var r=t._processRequest(n),i=t.hasCompleted||t.hasFailed;return!i&&r>0?(t.requestedCount=r,fr(function(){t.requestedCount=0})):void 0}),this.requestedDisposable},disposeCurrentRequest:function(){this.requestedDisposable&&(this.requestedDisposable.dispose(),this.requestedDisposable=null)}}),t}(Gr);Xr.controlled=function(e,t){return e&&Sr(e)&&(t=e,e=!0),null==e&&(e=!0),new Oo(this,e,t)};var _o=function(e){function t(t){e.call(this),this.source=t}function n(e,t){return t.source.request(1)}tr(t,e),t.prototype._subscribe=function(e){return this.subscription=this.source.subscribe(new r(e,this,this.subscription)),new mr(this.subscription,Pr.schedule(this,n))};var r=function(e){function t(t,n,r){e.call(this),this.observer=t,this.observable=n,this.cancel=r,this.scheduleDisposable=null}function n(e,t){return t.observable.source.request(1)}return tr(t,e),t.prototype.completed=function(){this.observer.onCompleted(),this.dispose()},t.prototype.error=function(e){this.observer.onError(e),this.dispose()},t.prototype.next=function(e){this.observer.onNext(e),this.scheduleDisposable=Pr.schedule(this,n)},t.dispose=function(){this.observer=null,this.cancel&&(this.cancel.dispose(),this.cancel=null),this.scheduleDisposable&&(this.scheduleDisposable.dispose(),this.scheduleDisposable=null),e.prototype.dispose.call(this)},t}(Vr);return t}(Gr);Oo.prototype.stopAndWait=function(){return new _o(this)};var Do=function(e){function t(t,n){e.call(this),this.source=t,this.windowSize=n}function n(e,t){return t.source.request(t.windowSize)}tr(t,e),t.prototype._subscribe=function(e){return this.subscription=this.source.subscribe(new r(e,this,this.subscription)),new mr(this.subscription,Pr.schedule(this,n))};var r=function(e){function t(t,n,r){this.observer=t,this.observable=n,this.cancel=r,this.received=0,this.scheduleDisposable=null,e.call(this)}function n(e,t){return t.observable.source.request(t.observable.windowSize)}return tr(t,e),t.prototype.completed=function(){this.observer.onCompleted(),this.dispose()},t.prototype.error=function(e){this.observer.onError(e),this.dispose()},t.prototype.next=function(e){this.observer.onNext(e),this.received=++this.received%this.observable.windowSize,0===this.received&&(this.scheduleDisposable=Pr.schedule(this,n))},t.prototype.dispose=function(){this.observer=null,this.cancel&&(this.cancel.dispose(),this.cancel=null),this.scheduleDisposable&&(this.scheduleDisposable.dispose(),this.scheduleDisposable=null),e.prototype.dispose.call(this)},t}(Vr);return t}(Gr);Oo.prototype.windowed=function(e){return new Do(this,e)},Xr.pipe=function(e){function t(){n.resume()}var n=this.pausableBuffered();return e.addListener("drain",t),n.subscribe(function(t){!e.write(t)&&n.pause()},function(t){e.emit("error",t)},function(){!e._isStdio&&e.end(),e.removeListener("drain",t)}),n.resume(),e};var Po=function(e){function t(t,n,r){this.source=t,this._fn1=n,this._fn2=r,e.call(this)}return tr(t,e),t.prototype.subscribeCore=function(e){var t=this.source.multicast(this._fn1());return new mr(this._fn2(t).subscribe(e),t.connect())},t}(Yr);Xr.multicast=function(e,t){return Kt(e)?new Po(this,e,t):new jo(this,e)},Xr.publish=function(e){return e&&Kt(e)?this.multicast(function(){return new Pu},e):this.multicast(new Pu)},Xr.share=function(){return this.publish().refCount()},Xr.publishLast=function(e){return e&&Kt(e)?this.multicast(function(){return new Hu},e):this.multicast(new Hu)},Xr.publishValue=function(e,t){return 2===arguments.length?this.multicast(function(){return new ju(t)},e):this.multicast(new ju(e))},Xr.shareValue=function(e){return this.publishValue(e).refCount()},Xr.replay=function(e,t,n,r){return e&&Kt(e)?this.multicast(function(){return new Fu(t,n,r)},e):this.multicast(new Fu(t,n,r))},Xr.shareReplay=function(e,t,n){return this.replay(null,e,t,n).refCount()};var Ho=function(e,t){this._s=e,this._o=t};Ho.prototype.dispose=function(){if(!this._s.isDisposed&&null!==this._o){var e=this._s.observers.indexOf(this._o);this._s.observers.splice(e,1),this._o=null}};var Bo=function(e){function t(t){this.source=t,this._count=0,this._connectableSubscription=null,e.call(this)}function n(e,t){this._p=e,this._s=t,this.isDisposed=!1}return tr(t,e),t.prototype.subscribeCore=function(e){var t=this.source.subscribe(e);return 1===++this._count&&(this._connectableSubscription=this.source.connect()),new n(this,t)},n.prototype.dispose=function(){this.isDisposed||(this.isDisposed=!0,this._s.dispose(),0===--this._p._count&&this._p._connectableSubscription.dispose())},t}(Yr),jo=Rt.ConnectableObservable=function(e){function t(t,n){this.source=t,this._connection=null,this._source=t.asObservable(),this._subject=n,e.call(this)}function n(e,t){this._p=e,this._s=t}return tr(t,e),n.prototype.dispose=function(){this._s&&(this._s.dispose(),this._s=null,this._p._connection=null)},t.prototype.connect=function(){if(!this._connection){if(this._subject.isStopped)return lr;var e=this._source.subscribe(this._subject);this._connection=new n(this,e)}return this._connection},t.prototype._subscribe=function(e){return this._subject.subscribe(e)},t.prototype.refCount=function(){return new Bo(this)},t}(Gr);Xr.singleInstance=function(){function e(){return r||(r=!0,t=n["finally"](function(){r=!1}).publish().refCount()),t}var t,n=this,r=!1;return new Ou(function(t){return e().subscribe(t)})},Xr.join=function(e,t,n,r){var i=this;return new Ou(function(s){var o=new or,u=!1,a=!1,f=0,l=0,c=new $o,h=new $o,p=function(e){s.onError(e)};return o.add(i.subscribe(function(e){var n=f++,i=new dr;c.set(n,e),o.add(i);var a=Gt(t)(e);return a===Qt?s.onError(a.e):(i.setDisposable(a.take(1).subscribe(Ut,p,function(){c["delete"](n)&&0===c.size&&u&&s.onCompleted(),o.remove(i)})),void h.forEach(function(t){var n=Gt(r)(e,t);return n===Qt?s.onError(n.e):void s.onNext(n)}))},p,function(){u=!0,(a||0===c.size)&&s.onCompleted()})),o.add(e.subscribe(function(e){var t=l++,i=new dr;h.set(t,e),o.add(i);var u=Gt(n)(e);return u===Qt?s.onError(u.e):(i.setDisposable(u.take(1).subscribe(Ut,p,function(){h["delete"](t)&&0===h.size&&a&&s.onCompleted(),o.remove(i)})),void c.forEach(function(t){var n=Gt(r)(t,e);return n===Qt?s.onError(n.e):void s.onNext(n)}))},p,function(){a=!0,(u||0===h.size)&&s.onCompleted()})),o},i)},Xr.groupJoin=function(e,t,n,r){var i=this;return new Ou(function(s){function o(e){}var u=new or,a=new yr(u),f=new $o,l=new $o,c=0,h=0,o=function(e){return function(t){t.onError(e)}};return u.add(i.subscribe(function(e){var n=new Pu,i=c++;f.set(i,n);var h=Gt(r)(e,rr(n,a));if(h===Qt)return f.forEach(o(h.e)),s.onError(h.e);s.onNext(h),l.forEach(function(e){n.onNext(e)});var p=new dr;u.add(p);var d=Gt(t)(e);return d===Qt?(f.forEach(o(d.e)),s.onError(d.e)):void p.setDisposable(d.take(1).subscribe(Ut,function(e){f.forEach(o(e)),s.onError(e)},function(){f["delete"](i)&&n.onCompleted(),u.remove(p)}))},function(e){f.forEach(o(e)),s.onError(e)},function(){s.onCompleted()})),u.add(e.subscribe(function(e){var t=h++;l.set(t,e);var r=new dr;u.add(r);var i=Gt(n)(e);return i===Qt?(f.forEach(o(i.e)),s.onError(i.e)):(r.setDisposable(i.take(1).subscribe(Ut,function(e){f.forEach(o(e)),s.onError(e)},function(){l["delete"](t),u.remove(r)})),void f.forEach(function(t){t.onNext(e)}))},function(e){f.forEach(o(e)),s.onError(e)})),a},i)},Xr.buffer=function(){return this.window.apply(this,arguments).flatMap(q)},Xr.window=function(e,t){return 1===arguments.length&&"function"!=typeof arguments[0]?lt.call(this,e):"function"==typeof e?ct.call(this,e):ft.call(this,e,t)};var Fo=function(e){function t(t){this.source=t,e.call(this)}return tr(t,e),t.prototype.subscribeCore=function(e){return this.source.subscribe(new Io(e))},t}(Yr),Io=function(e){function t(t){this._o=t,this._p=null,this._hp=!1,e.call(this)}return tr(t,e),t.prototype.next=function(e){this._hp?this._o.onNext([this._p,e]):this._hp=!0,this._p=e},t.prototype.error=function(e){this._o.onError(e)},t.prototype.completed=function(){this._o.onCompleted()},t}(Vr);Xr.pairwise=function(){return new Fo(this)},Xr.partition=function(e,t){var n=wn(e,t,3);return[this.filter(e,t),this.filter(function(e,t,r){return!n(e,t,r)})]};var qo=function(e){function t(e,t){this.c=e,this.s=t}return tr(t,e),t.prototype[mn]=function(){var e=this;return{next:function(){return e.c()?{done:!1,value:e.s}:{done:!0,value:void 0}}}},t}(ei);Xr.letBind=Xr.let=function(e){return e(this)},Gr["if"]=function(e,t,n){return pi(function(){return n||(n=mi()),Jt(t)&&(t=li(t)),Jt(n)&&(n=li(n)),"function"==typeof n.now&&(n=mi(n)),e()?t:n})},Gr["for"]=Gr.forIn=function(e,t,n){return oi(e,t,n).concat()};var Ro=Gr["while"]=Gr.whileDo=function(e,t){return Jt(t)&&(t=li(t)),ht(e,t).concat()};Xr.doWhile=function(e){return Ri([this,Ro(e,this)])},Gr["case"]=function(e,t,n){return pi(function(){Jt(n)&&(n=li(n)),n||(n=mi()),Sr(n)&&(n=mi(n));var r=t[e()];return Jt(r)&&(r=li(r)),r||n})};var Uo=function(e){function t(t,n,r){this.source=t,this._fn=n,this._scheduler=r,e.call(this)}function n(e,t){var n,r=e[0],i=e[1];if(!(r.q.length>0))return void (r.isAcquired=!1);n=r.q.shift();var s=new dr;r.d.add(s),s.setDisposable(n.subscribe(new zo(r,i,s))),t([r,i])}return tr(t,e),t.prototype._ensureActive=function(e){var t=!1;e.q.length>0&&(t=!e.isAcquired,e.isAcquired=!0),t&&e.m.setDisposable(this._scheduler.scheduleRecursive([e,this],n))},t.prototype.subscribeCore=function(e){var t=new vr,n=new or(t),r={q:[],m:t,d:n,activeCount:0,isAcquired:!1,o:e};return r.q.push(this.source),r.activeCount++,this._ensureActive(r),n},t}(Yr),zo=function(e){function t(t,n,r){this._s=t,this._p=n,this._m1=r,e.call(this)}return tr(t,e),t.prototype.next=function(e){this._s.o.onNext(e);var t=Gt(this._p._fn)(e);return t===Qt?this._s.o.onError(t.e):(this._s.q.push(t),this._s.activeCount++,void this._p._ensureActive(this._s))},t.prototype.error=function(e){this._s.o.onError(e)},t.prototype.completed=function(){this._s.d.remove(this._m1),this._s.activeCount--,0===this._s.activeCount&&this._s.o.onCompleted()},t}(Vr);Xr.expand=function(e,t){return Sr(t)||(t=Ar),new Uo(this,e,t)};var Wo=function(e){function t(t,n){this._sources=t,this._cb=n,e.call(this)}return tr(t,e),t.prototype.subscribeCore=function(e){if(0===this._sources.length)return e.onCompleted(),lr;for(var t=this._sources.length,n={finished:!1,hasResults:new Array(t),hasCompleted:new Array(t),results:new Array(t)},r=new or,i=0,s=this._sources.length;s>i;i++){var o=this._sources[i];Jt(o)&&(o=li(o)),r.add(o.subscribe(new Xo(e,n,i,this._cb,r)))}return r},t}(Yr),Xo=function(e){function t(t,n,r,i,s){this._o=t,this._s=n,this._i=r,this._cb=i,this._subs=s,e.call(this)}return tr(t,e),t.prototype.next=function(e){this._s.finished||(this._s.hasResults[this._i]=!0,this._s.results[this._i]=e)},t.prototype.error=function(e){this._s.finished=!0,this._o.onError(e),this._subs.dispose()},t.prototype.completed=function(){if(!this._s.finished){if(!this._s.hasResults[this._i])return this._o.onCompleted();this._s.hasCompleted[this._i]=!0;for(var e=0;e<this._s.results.length;e++)if(!this._s.hasCompleted[e])return;this._s.finished=!0;var t=Gt(this._cb).apply(null,this._s.results);if(t===Qt)return this._o.onError(t.e);this._o.onNext(t),this._o.onCompleted()}},t}(Vr);Gr.forkJoin=function(){for(var e=arguments.length,t=new Array(e),n=0;e>n;n++)t[n]=arguments[n];var r=Kt(t[e-1])?t.pop():j;return Array.isArray(t[0])&&(t=t[0]),new Wo(t,r)},Xr.forkJoin=function(){for(var e=arguments.length,t=new Array(e),n=0;e>n;n++)t[n]=arguments[n];return Array.isArray(t[0])?t[0].unshift(this):t.unshift(this),Gr.forkJoin.apply(null,t)},Xr.manySelect=Xr.extend=function(e,t){Sr(t)||(t=Rt.Scheduler.immediate);var n=this;return pi(function(){var r;return n.map(function(e){var t=new Vo(e);return r&&r.onNext(e),r=t,t}).tap(Ut,function(e){r&&r.onError(e)},function(){r&&r.onCompleted()}).observeOn(t).map(e)},n)};var Vo=function(e){function t(t){e.call(this),this.head=t,this.tail=new Hu}return tr(t,e),nr(t.prototype,zr,{_subscribe:function(e){var t=new or;return t.add(Ar.schedule(this,function(n,r){e.onNext(r.head),t.add(r.tail.mergeAll().subscribe(e))})),t},onCompleted:function(){this.onNext(Gr.empty())},onError:function(e){this.onNext(Gr["throw"](e))},onNext:function(e){this.tail.onNext(e),this.tail.onCompleted()}}),t}(Gr),$o=qt.Map||function(){function t(){this.size=0,this._values=[],this._keys=[]}return t.prototype["delete"]=function(e){var t=this._keys.indexOf(e);return-1===t?!1:(this._values.splice(t,1),this._keys.splice(t,1),this.size--,!0)},t.prototype.get=function(t){var n=this._keys.indexOf(t);return-1===n?e:this._values[n]},t.prototype.set=function(e,t){var n=this._keys.indexOf(e);return-1===n?(this._keys.push(e),this._values.push(t),this.size++):this._values[n]=t,this},t.prototype.forEach=function(e,t){for(var n=0;n<this.size;n++)e.call(t,this._values[n],this._keys[n])},t}();pt.prototype.and=function(e){return new pt(this.patterns.concat(e))},pt.prototype.thenDo=function(e){return new dt(this,e)},dt.prototype.activate=function(e,t,n){for(var r=[],i=vt(t),s=0,o=this.expression.patterns.length;o>s;s++)r.push(gt(e,this.expression.patterns[s],i));var u=new yt(r,mt(this,t),function(){for(var e=0,t=r.length;t>e;e++)r[e].removeActivePlan(u);n(u)});for(s=0,o=r.length;o>s;s++)r[s].addActivePlan(u);return u},yt.prototype.dequeue=function(){this.joinObservers.forEach(function(e){e.queue.shift()})},yt.prototype.match=function(){var e,t,n=!0;for(e=0,t=this.joinObserverArray.length;t>e;e++)if(0===this.joinObserverArray[e].queue.length){n=!1;break}if(n){var r=[],i=!1;for(e=0,t=this.joinObserverArray.length;t>e;e++)r.push(this.joinObserverArray[e].queue[0]),"C"===this.joinObserverArray[e].queue[0].kind&&(i=!0);if(i)this.onCompleted();else{this.dequeue();var s=[];for(e=0,t=r.length;e<r.length;e++)s.push(r[e].value);this.onNext.apply(this,s)}}};var Jo=function(e){function t(t,n){e.call(this),this.source=t,this.onError=n,this.queue=[],this.activePlans=[],this.subscription=new dr,this.isDisposed=!1}tr(t,e);var n=t.prototype;return n.next=function(e){if(!this.isDisposed){if("E"===e.kind)return this.onError(e.error);this.queue.push(e);for(var t=this.activePlans.slice(0),n=0,r=t.length;r>n;n++)t[n].match()}},n.error=Ut,n.completed=Ut,n.addActivePlan=function(e){this.activePlans.push(e)},n.subscribe=function(){this.subscription.setDisposable(this.source.materialize().subscribe(this))},n.removeActivePlan=function(e){this.activePlans.splice(this.activePlans.indexOf(e),1),0===this.activePlans.length&&this.dispose()},n.dispose=function(){e.prototype.dispose.call(this),this.isDisposed||(this.isDisposed=!0,this.subscription.dispose())},t}(Vr);Xr.and=function(e){return new pt([this,e])},Xr.thenDo=function(e){return(new pt([this])).thenDo(e)},Gr.when=function(){var e,t=arguments.length;if(Array.isArray(arguments[0]))e=arguments[0];else{e=new Array(t);for(var n=0;t>n;n++)e[n]=arguments[n]}return new Ou(function(t){var n=[],r=new $o,i=Wr(function(e){t.onNext(e)},function(e){r.forEach(function(t){t.onError(e)}),t.onError(e)},function(e){t.onCompleted()});try{for(var s=0,o=e.length;o>s;s++)n.push(e[s].activate(r,i,function(e){var r=n.indexOf(e);n.splice(r,1),0===n.length&&t.onCompleted()}))}catch(u){return Mi(u).subscribe(t)}var a=new or;return r.forEach(function(e){e.subscribe(),a.add(e)}),a})};var Ko=function(e){function t(t,n){this._dt=t,this._s=n,e.call(this)}function n(e,t){t.onNext(0),t.onCompleted()}return tr(t,e),t.prototype.subscribeCore=function(e){return this._s.scheduleFuture(e,this._dt,n)},t}(Yr),Qo=Gr.interval=function(e,t){return Et(e,e,Sr(t)?t:Pr)};Gr.timer=function(t,n,r){var i;return Sr(r)||(r=Pr),null!=n&&"number"==typeof n?i=n:Sr(n)&&(r=n),(t instanceof Date||"number"==typeof t)&&i===e?bt(t,r):t instanceof Date&&i!==e?wt(t,n,r):Et(t,i,r)},Xr.delay=function(){var e=arguments[0];if("number"==typeof e||e instanceof Date){var t=e,n=arguments[1];return Sr(n)||(n=Pr),t instanceof Date?xt(this,t,n):St(this,t,n)}if(Gr.isObservable(e)||Kt(e))return Tt(this,e,arguments[1]);throw new Error("Invalid arguments")};var Go=function(e){function t(t,n,r){Sr(r)||(r=Pr),this.source=t,this._dt=n,this._s=r,e.call(this)}return tr(t,e),t.prototype.subscribeCore=function(e){var t=new vr;return new mr(this.source.subscribe(new Yo(e,this._dt,this._s,t)),t)},t}(Yr),Yo=function(e){function t(t,n,r,i){this._o=t,this._d=n,this._scheduler=r,this._c=i,this._v=null,this._hv=!1,this._id=0,e.call(this)}return tr(t,e),t.prototype.next=function(e){this._hv=!0,this._v=e;var t=++this._id,n=new dr;this._c.setDisposable(n),n.setDisposable(this._scheduler.scheduleFuture(this,this._d,function(n,r){r._hv&&r._id===t&&r._o.onNext(e),r._hv=!1}))},t.prototype.error=function(e){this._c.dispose(),this._o.onError(e),this._hv=!1,this._id++},t.prototype.completed=function(){this._c.dispose(),this._hv&&this._o.onNext(this._v),this._o.onCompleted(),this._hv=!1,this._id++},t}(Vr);Xr.debounce=function(){if(Kt(arguments[0]))return Nt(this,arguments[0]);if("number"==typeof arguments[0])return new Go(this,arguments[0],arguments[1]);throw new Error("Invalid arguments")},Xr.windowWithTime=Xr.windowTime=function(e,t,n){var r,i=this;return null==t&&(r=e),Sr(n)||(n=Pr),"number"==typeof t?r=t:Sr(t)&&(r=e,n=t),new Ou(function(t){function s(){var e=new dr,i=!1,o=!1;c.setDisposable(e),f===a?(i=!0,o=!0):a>f?i=!0:o=!0;var p=i?f:a,d=p-h;h=p,i&&(f+=r),o&&(a+=r),e.setDisposable(n.scheduleFuture(null,d,function(){if(o){var e=new Pu;l.push(e),t.onNext(rr(e,u))}i&&l.shift().onCompleted(),s()}))}var o,u,a=r,f=e,l=[],c=new vr,h=0;return o=new or(c),u=new yr(o),l.push(new Pu),t.onNext(rr(l[0],u)),s(),o.add(i.subscribe(function(e){for(var t=0,n=l.length;n>t;t++)l[t].onNext(e)},function(e){for(var n=0,r=l.length;r>n;n++)l[n].onError(e);t.onError(e)},function(){for(var e=0,n=l.length;n>e;e++)l[e].onCompleted();t.onCompleted()})),u},i)},Xr.windowWithTimeOrCount=Xr.windowTimeOrCount=function(e,t,n){var r=this;return Sr(n)||(n=Pr),new Ou(function(i){function s(t){var r=new dr;o.setDisposable(r),r.setDisposable(n.scheduleFuture(null,e,function(){if(t===l){f=0;var e=++l;c.onCompleted(),c=new Pu,i.onNext(rr(c,a)),s(e)}}))}var o=new vr,u=new or(o),a=new yr(u),f=0,l=0,c=new Pu;return i.onNext(rr(c,a)),s(0),u.add(r.subscribe(function(e){var n=0,r=!1;c.onNext(e),++f===t&&(r=!0,f=0,n=++l,c.onCompleted(),c=new Pu,i.onNext(rr(c,a))),r&&s(n)},function(e){c.onError(e),i.onError(e)},function(){c.onCompleted(),i.onCompleted()})),a},r)},Xr.bufferWithTime=Xr.bufferTime=function(e,t,n){return this.windowWithTime(e,t,n).flatMap(q)},Xr.bufferWithTimeOrCount=Xr.bufferTimeOrCount=function(e,t,n){return this.windowWithTimeOrCount(e,t,n).flatMap(q)};var Zo=function(e){function t(t,n){this.source=t,this._s=n,e.call(this)}return tr(t,e),t.prototype.subscribeCore=function(e){return this.source.subscribe(new eu(e,this._s))},t}(Yr),eu=function(e){function t(t,n){this._o=t,this._s=n,this._l=n.now(),e.call(this)}return tr(t,e),t.prototype.next=function(e){var t=this._s.now(),n=t-this._l;this._l=t,this._o.onNext({value:e,interval:n})},t.prototype.error=function(e){this._o.onError(e)},t.prototype.completed=function(){this._o.onCompleted()},t}(Vr);Xr.timeInterval=function(e){return Sr(e)||(e=Pr),new Zo(this,e)};var tu=function(e){function t(t,n){this.source=t,this._s=n,e.call(this)}return tr(t,e),t.prototype.subscribeCore=function(e){return this.source.subscribe(new nu(e,this._s))},t}(Yr),nu=function(e){function t(t,n){this._o=t,this._s=n,e.call(this)}return tr(t,e),t.prototype.next=function(e){this._o.onNext({value:e,timestamp:this._s.now()})},t.prototype.error=function(e){this._o.onError(e)},t.prototype.completed=function(){this._o.onCompleted()},t}(Vr);Xr.timestamp=function(e){return Sr(e)||(e=Pr),new tu(this,e)};var ru=function(e){function t(t,n){this.source=t,this._sampler=n,e.call(this)}return tr(t,e),t.prototype.subscribeCore=function(e){var t={o:e,atEnd:!1,value:null,hasValue:!1,sourceSubscription:new dr};return t.sourceSubscription.setDisposable(this.source.subscribe(new su(t))),new mr(t.sourceSubscription,this._sampler.subscribe(new iu(t)))},t}(Yr),iu=function(e){function t(t){this._s=t,e.call(this)}return tr(t,e),t.prototype._handleMessage=function(){this._s.hasValue&&(this._s.hasValue=!1,this._s.o.onNext(this._s.value)),this._s.atEnd&&this._s.o.onCompleted()},t.prototype.next=function(){this._handleMessage()},t.prototype.error=function(e){this._s.onError(e)},t.prototype.completed=function(){this._handleMessage()},t}(Vr),su=function(e){function t(t){this._s=t,e.call(this)}return tr(t,e),t.prototype.next=function(e){this._s.hasValue=!0,this._s.value=e},t.prototype.error=function(e){this._s.o.onError(e)},t.prototype.completed=function(){this._s.atEnd=!0,this._s.sourceSubscription.dispose()},t}(Vr);Xr.sample=function(e,t){return Sr(t)||(t=Pr),"number"==typeof e?new ru(this,Qo(e,t)):new ru(this,e)};var ou=Rt.TimeoutError=function(e){this.message=e||"Timeout has occurred",this.name="TimeoutError",Error.call(this)};ou.prototype=Object.create(Error.prototype),Xr.timeout=function(){var e=arguments[0];if(e instanceof Date||"number"==typeof e)return kt(this,e,arguments[1],arguments[2]);if(Gr.isObservable(e)||Kt(e))return Ct(this,e,arguments[1],arguments[2]);throw new Error("Invalid arguments")};var uu=function(e){function t(t,n,r,i,s,o){this._state=t,this._cndFn=n,this._itrFn=r,this._resFn=i,this._timeFn=s,this._s=o,e.call(this)}function n(e,t){if(e.hasResult&&e.o.onNext(e.result),e.first)e.first=!1;else if(e.newState=Gt(e.self._itrFn)(e.newState),e.newState===Qt)return e.o.onError(e.newState.e);if(e.hasResult=Gt(e.self._cndFn)(e.newState),e.hasResult===Qt)return e.o.onError(e.hasResult.e);if(e.hasResult){if(e.result=Gt(e.self._resFn)(e.newState),e.result===Qt)return e.o.onError(e.result.e);var n=Gt(e.self._timeFn)(e.newState);if(n===Qt)return e.o.onError(n.e);t(e,n)}else e.o.onCompleted()}return tr(t,e),t.prototype.subscribeCore=function(e){var t={o:e,self:this,newState:this._state,first:!0,hasResult:!1};return this._s.scheduleRecursiveFuture(t,new Date(this._s.now()),n)},t}(Yr);Gr.generateWithAbsoluteTime=function(e,t,n,r,i,s){return Sr(s)||(s=Pr),new uu(e,t,n,r,i,s)};var au=function(e){function t(t,n,r,i,s,o){this._state=t,this._cndFn=n,this._itrFn=r,this._resFn=i,this._timeFn=s,this._s=o,e.call(this)}function n(e,t){if(e.hasResult&&e.o.onNext(e.result),e.first)e.first=!1;else if(e.newState=Gt(e.self._itrFn)(e.newState),e.newState===Qt)return e.o.onError(e.newState.e);if(e.hasResult=Gt(e.self._cndFn)(e.newState),e.hasResult===Qt)return e.o.onError(e.hasResult.e);if(e.hasResult){if(e.result=Gt(e.self._resFn)(e.newState),e.result===Qt)return e.o.onError(e.result.e);var n=Gt(e.self._timeFn)(e.newState);if(n===Qt)return e.o.onError(n.e);t(e,n)}else e.o.onCompleted()}return tr(t,e),t.prototype.subscribeCore=function(e){var t={o:e,self:this,newState:this._state,first:!0,hasResult:!1};return this._s.scheduleRecursiveFuture(t,0,n)},t}(Yr);Gr.generateWithRelativeTime=function(e,t,n,r,i,s){return Sr(s)||(s=Pr),new au(e,t,n,r,i,s)};var fu=function(e){function t(t,n,r){this.source=t,this._dt=n,this._s=r,e.call(this)}function n(e,t){var n=t[0],r=t[1],i=t[2];i.setDisposable(n.subscribe(r))}return tr(t,e),t.prototype.subscribeCore=function(e){var t=new vr;return t.setDisposable(this._s.scheduleFuture([this.source,e,t],this._dt,n)),t},t}(Yr);Xr.delaySubscription=function(e,t){return Sr(t)||(t=Pr),new fu(this,e,t)};var lu=function(e){function t(t,n,r){this.source=t,this._d=n,this._s=r,e.call(this)}return tr(t,e),t.prototype.subscribeCore=function(e){return this.source.subscribe(new cu(e,this))},t}(Yr),cu=function(e){function t(t,n){this._o=t,this._s=n._s,this._d=n._d,this._q=[],e.call(this)}return tr(t,e),t.prototype.next=function(e){var t=this._s.now();for(this._q.push({interval:t,value:e});this._q.length>0&&t-this._q[0].interval>=this._d;)this._o.onNext(this._q.shift().value)},t.prototype.error=function(e){this._o.onError(e)},t.prototype.completed=function(){for(var e=this._s.now();this._q.length>0&&e-this._q[0].interval>=this._d;)this._o.onNext(this._q.shift().value);this._o.onCompleted()},t}(Vr);Xr.skipLastWithTime=function(e,t){return Sr(t)||(t=Pr),new lu(this,e,t)};var hu=function(e){function t(t,n,r){this.source=t,this._d=n,this._s=r,e.call(this)}return tr(t,e),t.prototype.subscribeCore=function(e){return this.source.subscribe(new pu(e,this._d,this._s))},t}(Yr),pu=function(e){function t(t,n,r){this._o=t,this._d=n,this._s=r,this._q=[],e.call(this)}return tr(t,e),t.prototype.next=function(e){var t=this._s.now();for(this._q.push({interval:t,value:e});this._q.length>0&&t-this._q[0].interval>=this._d;)this._q.shift()},t.prototype.error=function(e){this._o.onError(e)},t.prototype.completed=function(){for(var e=this._s.now();this._q.length>0;){var t=this._q.shift();e-t.interval<=this._d&&this._o.onNext(t.value)}this._o.onCompleted()},t}(Vr);Xr.takeLastWithTime=function(e,t){return Sr(t)||(t=Pr),new hu(this,e,t)},Xr.takeLastBufferWithTime=function(e,t){var n=this;return Sr(t)||(t=Pr),new Ou(function(r){var i=[];return n.subscribe(function(n){var r=t.now();for(i.push({interval:r,value:n});i.length>0&&r-i[0].interval>=e;)i.shift()},function(e){r.onError(e)},function(){for(var n=t.now(),s=[];i.length>0;){var o=i.shift();n-o.interval<=e&&s.push(o.value)}r.onNext(s),r.onCompleted()})},n)};var du=function(e){function t(t,n,r){this.source=t,this._d=n,this._s=r,e.call(this)}function n(e,t){t.onCompleted()}return tr(t,e),t.prototype.subscribeCore=function(e){return new mr(this._s.scheduleFuture(e,this._d,n),this.source.subscribe(e))},t}(Yr);Xr.takeWithTime=function(e,t){return Sr(t)||(t=Pr),new du(this,e,t)};var vu=function(e){function t(t,n,r){this.source=t,this._d=n,this._s=r,this._open=!1,e.call(this)}function n(e,t){t._open=!0}return tr(t,e),t.prototype.subscribeCore=function(e){return new mr(this._s.scheduleFuture(this,this._d,n),this.source.subscribe(new mu(e,this)))},t}(Yr),mu=function(e){function t(t,n){this._o=t,this._p=n,e.call(this)}return tr(t,e),t.prototype.next=function(e){this._p._open&&this._o.onNext(e)},t.prototype.error=function(e){this._o.onError(e)},t.prototype.completed=function(){this._o.onCompleted()},t}(Vr);Xr.skipWithTime=function(e,t){return Sr(t)||(t=Pr),new vu(this,e,t)};var gu=function(e){function t(t,n,r){this.source=t,this._st=n,this._s=r,e.call(this)}function n(e,t){t._open=!0}return tr(t,e),t.prototype.subscribeCore=function(e){return this._open=!1,new mr(this._s.scheduleFuture(this,this._st,n),this.source.subscribe(new yu(e,this)))},t}(Yr),yu=function(e){function t(t,n){this._o=t,this._p=n,e.call(this)}return tr(t,e),t.prototype.next=function(e){this._p._open&&this._o.onNext(e)},t.prototype.error=function(e){this._o.onError(e)},t.prototype.completed=function(){this._o.onCompleted()},t}(Vr);Xr.skipUntilWithTime=function(e,t){return Sr(t)||(t=Pr),new gu(this,e,t)},Xr.takeUntilWithTime=function(e,t){Sr(t)||(t=Pr);var n=this;return new Ou(function(r){return new mr(t.scheduleFuture(r,e,function(e,t){t.onCompleted()}),n.subscribe(r))},n)},Xr.throttle=function(e,t){Sr(t)||(t=Pr);var n=+e||0;if(0>=n)throw new RangeError("windowDuration cannot be less or equal zero.");var r=this;return new Ou(function(e){var i=0;return r.subscribe(function(r){var s=t.now();(0===i||s-i>=n)&&(i=s,e.onNext(r))},function(t){e.onError(t)},function(){e.onCompleted()})},r)};var bu=function(e){function t(t){this.source=t,e.call(this)}return tr(t,e),t.prototype.subscribeCore=function(e){var t=new dr,n=new or,r={hasCurrent:!1,isStopped:!1,o:e,g:n};return n.add(t),t.setDisposable(this.source.subscribe(new wu(r))),n},t}(Yr),wu=function(e){function t(t){this._s=t,e.call(this)}function n(t,n){this._s=t,this._i=n,e.call(this)}return tr(t,e),t.prototype.next=function(e){if(!this._s.hasCurrent){this._s.hasCurrent=!0,Jt(e)&&(e=li(e));var t=new dr;this._s.g.add(t),t.setDisposable(e.subscribe(new n(this._s,t)))}},t.prototype.error=function(e){this._s.o.onError(e)},t.prototype.completed=function(){this._s.isStopped=!0,!this._s.hasCurrent&&1===this._s.g.length&&this._s.o.onCompleted()},tr(n,e),n.prototype.next=function(e){this._s.o.onNext(e)},n.prototype.error=function(e){this._s.o.onError(e)},n.prototype.completed=function(){this._s.g.remove(this._i),this._s.hasCurrent=!1,this._s.isStopped&&1===this._s.g.length&&this._s.o.onCompleted()},t}(Vr);Xr.switchFirst=function(){return new bu(this)},Xr.flatMapFirst=Xr.exhaustMap=function(e,t,n){return(new Zr(this,e,t,n)).switchFirst()},Xr.flatMapWithMaxConcurrent=Xr.flatMapMaxConcurrent=function(e,t,n,r){return(new Zr(this,t,n,r)).merge(e)};var Eu=function(e){function t(t,n){this._o=t,this._xform=n,e.call(this)}return tr(t,e),t.prototype.next=function(e){var t=Gt(this._xform["@@transducer/step"]).call(this._xform,this._o,e);t===Qt&&this._o.onError(t.e)},t.prototype.error=function(e){this._o.onError(e)},t.prototype.completed=function(){this._xform["@@transducer/result"](this._o)},t}(Vr);Xr.transduce=function(e){var t=this;return new Ou(function(n){var r=e(Lt(n));return t.subscribe(new Eu(n,r))},t)};var Su=Rt.VirtualTimeScheduler=function(e){function t(t,n){this.clock=t,this.comparer=n,this.isEnabled=!1,this.queue=new ir(1024),e.call(this)}tr(t,e);var n=t.prototype;return n.now=function(){return this.toAbsoluteTime(this.clock)},n.schedule=function(e,t){return this.scheduleAbsolute(e,this.clock,t)},n.scheduleFuture=function(e,t,n){var r=t instanceof Date?this.toRelativeTime(t-this.now()):this.toRelativeTime(t);return this.scheduleRelative(e,r,n)},n.add=vn,n.toAbsoluteTime=vn,n.toRelativeTime=vn,n.schedulePeriodic=function(e,t,n){var r=new Nr(this,e,t,n);return r.start()},n.scheduleRelative=function(e,t,n){var r=this.add(this.clock,t);return this.scheduleAbsolute(e,r,n)},n.start=function(){if(!this.isEnabled){this.isEnabled=!0;do{var e=this.getNext();null!==e?(this.comparer(e.dueTime,this.clock)>0&&(this.clock=e.dueTime),e.invoke()):this.isEnabled=!1}while(this.isEnabled)}},n.stop=function(){this.isEnabled=!1},n.advanceTo=function(e){var t=this.comparer(this.clock,e);if(this.comparer(this.clock,e)>0)throw new hn;if(0!==t&&!this.isEnabled){this.isEnabled=!0;do{var n=this.getNext();null!==n&&this.comparer(n.dueTime,e)<=0?(this.comparer(n.dueTime,this.clock)>0&&(this.clock=n.dueTime),n.invoke()):this.isEnabled=!1}while(this.isEnabled);this.clock=e}},n.advanceBy=function(e){var t=this.add(this.clock,e),n=this.comparer(this.clock,t);if(n>0)throw new hn;0!==n&&this.advanceTo(t)},n.sleep=function(e){var t=this.add(this.clock,e);if(this.comparer(this.clock,t)>=0)throw new hn;this.clock=t},n.getNext=function(){for(;this.queue.length>0;){var e=this.queue.peek();if(!e.isCancelled())return e;this.queue.dequeue()}return null},n.scheduleAbsolute=function(e,t,n){function r(e,t){return i.queue.remove(s),n(e,t)}var i=this,s=new br(this,e,r,t,this.comparer);return this.queue.enqueue(s),s.disposable},t}(wr);Rt.HistoricalScheduler=function(e){function t(t,n){var r=null==t?0:t,i=n||Vt;e.call(this,r,i)}tr(t,e);var n=t.prototype;return n.add=function(e,t){return e+t},n.toAbsoluteTime=function(e){return(new Date(e)).getTime()},n.toRelativeTime=function(e){return e},t}(Rt.VirtualTimeScheduler),At.prototype.equals=function(e){return e===this?!0:null==e?!1:"N"!==e.kind?!1:this.predicate(e.value)},Ot.prototype.equals=function(e){return e===this?!0:null==e?!1:"E"!==e.kind?!1:this.predicate(e.error)};var xu=Rt.ReactiveTest={created:100,subscribed:200,disposed:1e3,onNext:function(e,t){return"function"==typeof t?new Tu(e,new At(t)):new Tu(e,Br.createOnNext(t))},onError:function(e,t){return"function"==typeof t?new Tu(e,new Ot(t)):new Tu(e,Br.createOnError(t))},onCompleted:function(e){return new Tu(e,Br.createOnCompleted())},subscribe:function(e,t){return new Nu(e,t)}},Tu=Rt.Recorded=function(e,t,n){this.time=e,this.value=t,this.comparer=n||Xt};Tu.prototype.equals=function(e){return this.time===e.time&&this.comparer(this.value,e.value)},Tu.prototype.toString=function(){return this.value.toString()+"@"+this.time};var Nu=Rt.Subscription=function(e,t){this.subscribe=e,this.unsubscribe=t||Number.MAX_VALUE};Nu.prototype.equals=function(e){return this.subscribe===e.subscribe&&this.unsubscribe===e.unsubscribe},Nu.prototype.toString=function(){return"("+this.subscribe+", "+(this.unsubscribe===Number.MAX_VALUE?"Infinite":this.unsubscribe)+")"};var Cu=Rt.MockDisposable=function(e){this.scheduler=e,this.disposes=[],this.disposes.push(this.scheduler.clock)};Cu.prototype.dispose=function(){this.disposes.push(this.scheduler.clock)};var ku=function(e){function t(t){e.call(this),this.scheduler=t,this.messages=[]}tr(t,e);var n=t.prototype;return n.onNext=function(e){this.messages.push(new Tu(this.scheduler.clock,Br.createOnNext(e)))},n.onError=function(e){this.messages.push(new Tu(this.scheduler.clock,Br.createOnError(e)))},n.onCompleted=function(){this.messages.push(new Tu(this.scheduler.clock,Br.createOnCompleted()))},t}(zr);Mt.prototype.then=function(t,n){var r=this;this.subscriptions.push(new Nu(this.scheduler.clock));var i,s=this.subscriptions.length-1,o=Rt.Observer.create(function(n){var u=t(n);if(u&&"function"==typeof u.then)i=u;else{var a=r.scheduler.clock;i=new Mt(r.scheduler,[Rt.ReactiveTest.onNext(a,e),Rt.ReactiveTest.onCompleted(a)])}var f=r.observers.indexOf(o);r.observers.splice(f,1),r.subscriptions[s]=new Nu(r.subscriptions[s].subscribe,r.scheduler.clock)},function(e){n(e);var t=r.observers.indexOf(o);r.observers.splice(t,1),r.subscriptions[s]=new Nu(r.subscriptions[s].subscribe,r.scheduler.clock)});return this.observers.push(o),i||new Mt(this.scheduler,this.messages)};var Lu=function(e){function t(t,n){e.call(this);var r,i,s=this;this.scheduler=t,this.messages=n,this.subscriptions=[],this.observers=[];for(var o=0,u=this.messages.length;u>o;o++)r=this.messages[o],i=r.value,function(e){t.scheduleAbsolute(null,r.time,function(){for(var t=s.observers.slice(0),n=0,r=t.length;r>n;n++)e.accept(t[n]);return lr})}(i)}return tr(t,e),t.prototype._subscribe=function(e){var t=this;this.observers.push(e),this.subscriptions.push(new Nu(this.scheduler.clock));var n=this.subscriptions.length-1;return fr(function(){var r=t.observers.indexOf(e);t.observers.splice(r,1),t.subscriptions[n]=new Nu(t.subscriptions[n].subscribe,t.scheduler.clock)})},t}(Gr),Au=function(e){function t(t,n){e.call(this),this.scheduler=t,this.messages=n,this.subscriptions=[]}return tr(t,e),t.prototype._subscribe=function(e){var t,n,r=this;this.subscriptions.push(new Nu(this.scheduler.clock));for(var i=this.subscriptions.length-1,s=new or,o=0,u=this.messages.length;u>o;o++)t=this.messages[o],n=t.value,function(n){s.add(r.scheduler.scheduleRelative(null,t.time,function(){return n.accept(e),lr}))}(n);return fr(function(){r.subscriptions[i]=new Nu(r.subscriptions[i].subscribe,r.scheduler.clock),s.dispose()})},t}(Gr);Rt.TestScheduler=function(e){function t(e,t){return e>t?1:t>e?-1:0}function n(){e.call(this,0,t)}return tr(n,e),n.prototype.scheduleAbsolute=function(t,n,r){return n<=this.clock&&(n=this.clock+1),e.prototype.scheduleAbsolute.call(this,t,n,r)},n.prototype.add=function(e,t){return e+t},n.prototype.toAbsoluteTime=function(e){return(new Date(e)).getTime()},n.prototype.toRelativeTime=function(e){return e},n.prototype.startScheduler=function(e,t){t||(t={}),null==t.created&&(t.created=xu.created),null==t.subscribed&&(t.subscribed=xu.subscribed),null==t.disposed&&(t.disposed=xu.disposed);var n,r,i=this.createObserver();return this.scheduleAbsolute(null,t.created,function(){return n=e(),lr}),this.scheduleAbsolute(null,t.subscribed,function(){return r=n.subscribe(i),lr}),this.scheduleAbsolute(null,t.disposed,function(){return r.dispose(),lr}),this.start(),i},n.prototype.createHotObservable=function(){var e,t=arguments.length;if(Array.isArray(arguments[0]))e=arguments[0];else{e=new Array(t);for(var n=0;t>n;n++)e[n]=arguments[n]}return new Lu(this,e)},n.prototype.createColdObservable=function(){var e,t=arguments.length;if(Array.isArray(arguments[0]))e=arguments[0];else{e=new Array(t);for(var n=0;t>n;n++)e[n]=arguments[n]}return new Au(this,e)},n.prototype.createResolvedPromise=function(e,t){return new Mt(this,[Rt.ReactiveTest.onNext(e,t),Rt.ReactiveTest.onCompleted(e)])},n.prototype.createRejectedPromise=function(e,t){return new Mt(this,[Rt.ReactiveTest.onError(e,t)])},n.prototype.createObserver=function(){return new ku(this)},n}(Su);var Ou=Rt.AnonymousObservable=function(e){function t(e){return e&&Kt(e.dispose)?e:Kt(e)?fr(e):lr}function n(e,n){var r=n[0],s=n[1],o=Gt(s.__subscribe).call(s,r);o!==Qt||r.fail(Qt.e)||i(Qt.e),r.setDisposable(t(o))}function r(t,n){this.source=n,this.__subscribe=t,e.call(this)}return tr(r,e),r.prototype._subscribe=function(e){var t=new Mu(e),r=[t,this];return Ar.scheduleRequired()?Ar.schedule(r,n):n(null,r),t},r}(Gr),Mu=function(e){function t(t){e.call(this),this.observer=t,this.m=new dr}tr(t,e);var n=t.prototype;return n.next=function(e){var t=Gt(this.observer.onNext).call(this.observer,e);t===Qt&&(this.dispose(),i(t.e))},n.error=function(e){var t=Gt(this.observer.onError).call(this.observer,e);this.dispose(),t===Qt&&i(t.e)},n.completed=function(){var e=Gt(this.observer.onCompleted).call(this.observer);this.dispose(),e===Qt&&i(e.e)},n.setDisposable=function(e){this.m.setDisposable(e)},n.getDisposable=function(){return this.m.getDisposable()},n.dispose=function(){e.prototype.dispose.call(this),this.m.dispose()},t}(Vr),_u=function(e){function t(t,n){this._m=t,this._u=n,e.call(this)}return tr(t,e),t.prototype.subscribeCore=function(e){return new mr(this._m.getDisposable(),this._u.subscribe(e))},t}(Yr),Du=function(e){function t(t,n,r){e.call(this),this.key=t,this.underlyingObservable=r?new _u(r,n):n}return tr(t,e),t.prototype._subscribe=function(e){return this.underlyingObservable.subscribe(e)},t}(Gr),Pu=Rt.Subject=function(e){function t(){e.call(this),this.isDisposed=!1,this.isStopped=!1,this.observers=[],this.hasError=!1}return tr(t,e),nr(t.prototype,zr.prototype,{_subscribe:function(e){return hr(this),this.isStopped?this.hasError?(e.onError(this.error),lr):(e.onCompleted(),lr):(this.observers.push(e),new Ho(this,e))},hasObservers:function(){return hr(this),this.observers.length>0},onCompleted:function(){if(hr(this),!this.isStopped){this.isStopped=!0;for(var e=0,t=n(this.observers),r=t.length;r>e;e++)t[e].onCompleted();this.observers.length=0}},onError:function(e){if(hr(this),!this.isStopped){this.isStopped=!0,this.error=e,this.hasError=!0;for(var t=0,r=n(this.observers),i=r.length;i>t;t++)r[t].onError(e);this.observers.length=0}},onNext:function(e){if(hr(this),!this.isStopped)for(var t=0,r=n(this.observers),i=r.length;i>t;t++)r[t].onNext(e)},dispose:function(){this.isDisposed=!0,this.observers=null}}),t.create=function(e,t){return new Bu(e,t)},t}(Gr),Hu=Rt.AsyncSubject=function(e){function t(){e.call(this),this.isDisposed=!1,this.isStopped=!1,this.hasValue=!1,this.observers=[],this.hasError=!1}return tr(t,e),nr(t.prototype,zr.prototype,{_subscribe:function(e){return hr(this),this.isStopped?(this.hasError?e.onError(this.error):this.hasValue?(e.onNext(this.value),e.onCompleted()):e.onCompleted(),lr):(this.observers.push(e),new Ho(this,e))},hasObservers:function(){return hr(this),this.observers.length>0},onCompleted:function(){var e,t;if(hr(this),!this.isStopped){this.isStopped=!0;var r=n(this.observers),t=r.length;if(this.hasValue)for(e=0;t>e;e++){var i=r[e];i.onNext(this.value),i.onCompleted()}else for(e=0;t>e;e++)r[e].onCompleted();this.observers.length=0}},onError:function(e){if(hr(this),!this.isStopped){this.isStopped=!0,this.hasError=!0,this.error=e;for(var t=0,r=n(this.observers),i=r.length;i>t;t++)r[t].onError(e);this.observers.length=0}},onNext:function(e){hr(this),this.isStopped||(this.value=e,this.hasValue=!0)},dispose:function(){this.isDisposed=!0,this.observers=null,this.error=null,this.value=null}}),t}(Gr),Bu=Rt.AnonymousSubject=function(e){function t(t,n){this.observer=t,this.observable=n,e.call(this)}return tr(t,e),nr(t.prototype,zr.prototype,{_subscribe:function(e){return this.observable.subscribe(e)},onCompleted:function(){this.observer.onCompleted()},onError:function(e){this.observer.onError(e)},onNext:function(e){this.observer.onNext(e)}}),t}(Gr),ju=Rt.BehaviorSubject=function(e){function t(t){e.call(this),this.value=t,this.observers=[],this.isDisposed=!1,this.isStopped=!1,this.hasError=!1}return tr(t,e),nr(t.prototype,zr.prototype,{_subscribe:function(e){return hr(this),this.isStopped?(this.hasError?e.onError(this.error):e.onCompleted(),lr):(this.observers.push(e),e.onNext(this.value),new Ho(this,e))},getValue:function(){return hr(this),this.hasError&&i(this.error),this.value},hasObservers:function(){return hr(this),this.observers.length>0},onCompleted:function(){if(hr(this),!this.isStopped){this.isStopped=!0;for(var e=0,t=n(this.observers),r=t.length;r>e;e++)t[e].onCompleted();this.observers.length=0}},onError:function(e){if(hr(this),!this.isStopped){this.isStopped=!0,this.hasError=!0,this.error=e;for(var t=0,r=n(this.observers),i=r.length;i>t;t++)r[t].onError(e);this.observers.length=0}},onNext:function(e){if(hr(this),!this.isStopped){this.value=e;for(var t=0,r=n(this.observers),i=r.length;i>t;t++)r[t].onNext(e)}},dispose:function(){this.isDisposed=!0,this.observers=null,this.value=null,this.error=null}}),t}(Gr),Fu=Rt.ReplaySubject=function(e){function t(e,t){return fr(function(){t.dispose(),!e.isDisposed&&e.observers.splice(e.observers.indexOf(t),1)})}function r(t,n,r){this.bufferSize=null==t?i:t,this.windowSize=null==n?i:n,this.scheduler
1=r||Ar,this.q=[],this.observers=[],this.isStopped=!1,this.isDisposed=!1,this.hasError=!1,this.error=null,e.call(this)}var i=Math.pow(2,53)-1;return tr(r,e),nr(r.prototype,zr.prototype,{_subscribe:function(e){hr(this);var n=new Kr(this.scheduler,e),r=t(this,n);this._trim(this.scheduler.now()),this.observers.push(n);for(var i=0,s=this.q.length;s>i;i++)n.onNext(this.q[i].value);return this.hasError?n.onError(this.error):this.isStopped&&n.onCompleted(),n.ensureActive(),r},hasObservers:function(){return hr(this),this.observers.length>0},_trim:function(e){for(;this.q.length>this.bufferSize;)this.q.shift();for(;this.q.length>0&&e-this.q[0].interval>this.windowSize;)this.q.shift()},onNext:function(e){if(hr(this),!this.isStopped){var t=this.scheduler.now();this.q.push({interval:t,value:e}),this._trim(t);for(var r=0,i=n(this.observers),s=i.length;s>r;r++){var o=i[r];o.onNext(e),o.ensureActive()}}},onError:function(e){if(hr(this),!this.isStopped){this.isStopped=!0,this.error=e,this.hasError=!0;var t=this.scheduler.now();this._trim(t);for(var r=0,i=n(this.observers),s=i.length;s>r;r++){var o=i[r];o.onError(e),o.ensureActive()}this.observers.length=0}},onCompleted:function(){if(hr(this),!this.isStopped){this.isStopped=!0;var e=this.scheduler.now();this._trim(e);for(var t=0,r=n(this.observers),i=r.length;i>t;t++){var s=r[t];s.onCompleted(),s.ensureActive()}this.observers.length=0}},dispose:function(){this.isDisposed=!0,this.observers=null}}),r}(Gr);Rt.Pauser=function(e){function t(){e.call(this)}return tr(t,e),t.prototype.pause=function(){this.onNext(!1)},t.prototype.resume=function(){this.onNext(!0)},t}(Pu),"function"==typeof define&&"object"==typeof define.amd&&define.amd?(qt.Rx=Rt,define("rx",[],function(){return Rt})):Dt&&Pt?Ft?(Pt.exports=Rt).Rx=Rt:Dt.Rx=Rt:qt.Rx=Rt;var Iu=f()}.call(this),function(e){function n(e){return e&&e.Object===Object?e:null}var t={"function":!0,object:!0},r=t[typeof exports]&&exports&&!exports.nodeType?exports:null,i=t[typeof module]&&module&&!module.nodeType?module:null,s=n(r&&i&&typeof global=="object"&&global),o=n(t[typeof self]&&self),u=n(t[typeof window]&&window),a=i&&i.exports===r?r:null,f=n(t[typeof this]&&this),l=s||u!==(f&&f.window)&&u||o||f||Function("return this")();typeof define=="function"&&define.amd?define("rx.time",["./rx"],function(t,n){return e(l,n,t)}):typeof module=="object"&&module&&module.exports===r?module.exports=e(l,module.exports,require("./rx")):l.Rx=e(l,{},l.Rx)}.call(this,function(e,t,n,r){function O(e){return function(){try{return e.apply(this,arguments)}catch(n){return A.e=n,A}}}function _(e){throw e}function P(e,t){return new D(e,t)}function H(e,t,n){return new a(function(r){var i=e,s=x(t);return n.scheduleRecursiveFuture(0,i,function(e,t){if(s>0){var o=n.now();i=new Date(i.getTime()+s),i.getTime()<=o&&(i=new Date(o+s))}r.onNext(e),t(e+1,new Date(i))})})}function B(e,t,n){return e===t?new a(function(e){return n.schedulePeriodic(0,t,function(t){return e.onNext(t),t+1})}):l(function(){return H(new Date(n.now()+e),t,n)})}function I(e,t,n){return new a(function(r){var i=!1,s=new g,o=null,u=[],a=!1,f;return f=e.materialize().timestamp(n).subscribe(function(e){var f,l;e.value.kind==="E"?(u=[],u.push(e),o=e.value.error,l=!a):(u.push({value:e.value,timestamp:e.timestamp+t}),l=!i,i=!0),l&&(o!==null?r.onError(o):(f=new m,s.setDisposable(f),f.setDisposable(n.scheduleRecursiveFuture(null,t,function(e,t){var s,f,l,c;if(o!==null)return;a=!0;do l=null,u.length>0&&u[0].timestamp-n.now()<=0&&(l=u.shift().value),l!==null&&l.accept(r);while(l!==null);c=!1,f=0,u.length>0?(c=!0,f=Math.max(0,u[0].timestamp-n.now())):i=!1,s=o,a=!1,s!==null?r.onError(s):c&&t(null,f)}))))}),new b(f,s)},e)}function q(e,t,n){return l(function(){return I(e,t-n.now(),n)})}function R(e,t,n){var r,i;return C(t)?i=t:(r=t,i=n),new a(function(t){function u(){o.setDisposable(e.subscribe(function(e){var r=M(i)(e);if(r===A)return t.onError(r.e);var s=new m;n.add(s),s.setDisposable(r.subscribe(function(){t.onNext(e),n.remove(s),a()},function(e){t.onError(e)},function(){t.onNext(e),n.remove(s),a()}))},function(e){t.onError(e)},function(){s=!0,o.dispose(),a()}))}function a(){s&&n.length===0&&t.onCompleted()}var n=new y,s=!1,o=new g;return r?o.setDisposable(r.subscribe(u,function(e){t.onError(e)},u)):u(),new b(o,n)},e)}function W(e,t){return new a(function(n){var r,i=!1,s=new g,o=0,u=e.subscribe(function(e){var u=M(t)(e);if(u===A)return n.onError(u.e);N(u)&&(u=L(u)),i=!0,r=e,o++;var a=o,f=new m;s.setDisposable(f),f.setDisposable(u.subscribe(function(){i&&o===a&&n.onNext(r),i=!1,f.dis
vendor: 14,085 bytes, line 1
1pose()},function(e){n.onError(e)},function(){i&&o===a&&n.onNext(r),i=!1,f.dispose()}))},function(e){s.dispose(),n.onError(e),i=!1,o++},function(){s.dispose(),i&&n.onNext(r),n.onCompleted(),i=!1,o++});return new b(u,s)},e)}function X(e){return e.toArray()}function X(e){return e.toArray()}function et(e,t,n,r){return C(t)&&(r=n,n=t,t=h()),o.isObservable(r)||(r=p(new Z)),new a(function(i){function l(e){function u(){return f=t===a,f}var t=a,n=new m;o.setDisposable(n),n.setDisposable(e.subscribe(function(){u()&&s.setDisposable(r.subscribe(i)),n.dispose()},function(e){u()&&i.onError(e)},function(){u()&&s.setDisposable(r.subscribe(i))}))}function c(){var e=!f;return e&&a++,e}var s=new g,o=new g,u=new m;s.setDisposable(u);var a=0,f=!1;return l(t),u.setDisposable(e.subscribe(function(e){if(c()){i.onNext(e);var t=M(n)(e);if(t===A)return i.onError(t.e);l(N(t)?L(t):t)}},function(e){c()&&i.onError(e)},function(){c()&&i.onCompleted()})),new b(s,o)},e)}function tt(e,t,n,r){return k(n)&&(r=n,n=p(new Z)),n instanceof Error&&(n=p(n)),k(r)||(r=v),o.isObservable(n)||(n=p(new Z)),new a(function(i){function l(){var e=s;f.setDisposable(r.scheduleFuture(null,t,function(){a=s===e,a&&(N(n)&&(n=L(n)),u.setDisposable(n.subscribe(i)))}))}var s=0,o=new m,u=new g,a=!1,f=new g;return u.setDisposable(o),l(),o.setDisposable(e.subscribe(function(e){a||(s++,i.onNext(e),l())},function(e){a||(s++,i.onError(e))},function(){a||(s++,i.onCompleted())})),new b(u,f)},e)}var i=n.internals.inherits,s=n.internals.AbstractObserver,o=n.Observable,u=o.prototype,a=n.AnonymousObservable,f=n.ObservableBase,l=o.defer,c=o.empty,h=o.never,p=o["throw"],d=o.fromArray,v=n.Scheduler["default"],m=n.SingleAssignmentDisposable,g=n.SerialDisposable,y=n.CompositeDisposable,b=n.BinaryDisposable,w=n.RefCountDisposable,E=n.Subject,S=n.internals.addRef,x=n.Scheduler.normalize,T=n.helpers,N=T.isPromise,C=T.isFunction,k=n.Scheduler.isScheduler,L=o.fromPromise,A={e:{}},M=n.internals.tryCatch=function(t){if(!C(t))throw new TypeError("fn must be a function");return O(t)},D=function(e){function t(t,n){this._dt=t,this._s=n,e.call(this)}function n(e,t){t.onNext(0),t.onCompleted()}return i(t,e),t.prototype.subscribeCore=function(e){return this._s.scheduleFuture(e,this._dt,n)},t}(f),j=o.interval=function(e,t){return B(e,e,k(t)?t:v)},F=o.timer=function(e,t,n){var i;return k(n)||(n=v),t!=null&&typeof t=="number"?i=t:k(t)&&(n=t),(e instanceof Date||typeof e=="number")&&i===r?P(e,n):e instanceof Date&&i!==r?H(e,t,n):B(e,i,n)};u.delay=function(){var e=arguments[0];if(typeof e=="number"||e instanceof Date){var t=e,n=arguments[1];return k(n)||(n=v),t instanceof Date?q(this,t,n):I(this,t,n)}if(o.isObservable(e)||C(e))return R(this,e,arguments[1]);throw new Error("Invalid arguments")};var U=function(e){function t(t,n,r){k(r)||(r=v),this.source=t,this._dt=n,this._s=r,e.call(this)}return i(t,e),t.prototype.subscribeCore=function(e){var t=new g;return new b(this.source.subscribe(new z(e,this._dt,this._s,t)),t)},t}(f),z=function(e){function t(t,n,r,i){this._o=t,this._d=n,this._scheduler=r,this._c=i,this._v=null,this._hv=!1,this._id=0,e.call(this)}function n(e,t){t.self._hv&&t.self._id===t.currentId&&t.self._o.onNext(t.x),t.self._hv=!1}return i(t,e),t.prototype.next=function(e){this._hv=!0,this._v=e;var t=++this._id,n=new m;this._c.setDisposable(n),n.setDisposable(this._scheduler.scheduleFuture(this,this._d,function(n,r){r._hv&&r._id===t&&r._o.onNext(e),r._hv=!1}))},t.prototype.error=function(e){this._c.dispose(),this._o.onError(e),this._hv=!1,this._id++},t.prototype.completed=function(){this._c.dispose(),this._hv&&this._o.onNext(this._v),this._o.onCompleted(),this._hv=!1,this._id++},t}(s);u.debounce=function(){if(C(arguments[0]))return W(this,arguments[0]);if(typeof arguments[0]=="number")return new U(this,arguments[0],arguments[1]);throw new Error("Invalid arguments")},u.windowWithTime=u.windowTime=function(e,t,n){var r=this,i;return t==null&&(i=e),k(n)||(n=v),typeof t=="number"?i=t:k(t)&&(i=e,n=t),new a(function(t){function h(){var e=new m,r=!1,s=!1;l.setDisposable(e),u===o?(r=!0,s=!0):u<o?r=!0:s=!0;var p=r?u:o,d=p-c;c=p,r&&(u+=i),s&&(o+=i),e.setDisposable(n.scheduleFuture(null,d,function(){if(s){var e=new E;a.push(e),t.onNext(S(e,f))}r&&a.shift().onCompleted(),h()}))}var s,o=i,u=e,a=[],f,l=new g,c=0;return s=new y(l),f=new w(s),a.push(new E),t.onNext(S(a[0],f)),h(),s.add(r.subscribe(function(e){for(var t=0,n=a.length;t<n;t++)a[t].onNext(e)},function(e){for(var n=0,r=a.length;n<r;n++)a[n].onError(e);t.onError(e)},function(){for(var e=0,n=a.length;e<n;e++)a[e].onCompleted();t.onCompleted()})),f},r)},u.windowWithTimeOrCount=u.windowTimeOrCount=function(e,t,n){var r=this;return k(n)||(n=v),new a(function(i){function c(t){var r=new m;s.setDisposable(r),r.setDisposable(n.scheduleFuture(null,e,function(){if(t!==f)return;a=0;var e=++f;l.onCompleted(),l=new E,i.onNext(S(l,u)),c(e)}))}var s=new g,o=new y(s),u=new w(o),a=0,f=0,l=new E;return i.onNext(S(l,u)),c(0),o.add(r.subscribe(function(e){var n=0,r=!1;l.onNext(e),++a===t&&(r=!0,a=0,n=++f,l.onCompleted(),l=new E,i.onNext(S(l,u))),r&&c(n)},function(e){l.onError(e),i.onError(e)},function(){l.onCompleted(),i.onCompleted()})),u},r)},u.bufferWithTime=u.bufferTime=function(e,t,n){return this.windowWithTime(e,t,n).flatMap(X)},u.bufferWithTimeOrCount=u.bufferTimeOrCount=function(e,t,n){return this.windowWithTimeOrCount(e,t,n).flatMap(X)};var V=function(e){function t(t,n){this.source=t,this._s=n,e.call(this)}return i(t,e),t.prototype.subscribeCore=function(e){return this.source.subscribe(new $(e,this._s))},t}(f),$=function(e){function t(t,n){this._o=t,this._s=n,this._l=n.now(),e.call(this)}return i(t,e),t.prototype.next=function(e){var t=this._s.now(),n=t-this._l;this._l=t,this._o.onNext({value:e,interval:n})},t.prototype.error=function(e){this._o.onError(e)},t.prototype.completed=function(){this._o.onCompleted()},t}(s);u.timeInterval=function(e){return k(e)||(e=v),new V(this,e)};var J=function(e){function t(t,n){this.source=t,this._s=n,e.call(this)}return i(t,e),t.prototype.subscribeCore=function(e){return this.source.subscribe(new K(e,this._s))},t}(f),K=function(e){function t(t,n){this._o=t,this._s=n,e.call(this)}return i(t,e),t.prototype.next=function(e){this._o.onNext({value:e,timestamp:this._s.now()})},t.prototype.error=function(e){this._o.onError(e)},t.prototype.completed=function(){this._o.onCompleted()},t}(s);u.timestamp=function(e){return k(e)||(e=v),new J(this,e)};var Q=function(e){function t(t,n){this.source=t,this._sampler=n,e.call(this)}return i(t,e),t.prototype.subscribeCore=function(e){var t={o:e,atEnd:!1,value:null,hasValue:!1,sourceSubscription:new m};return t.sourceSubscription.setDisposable(this.source.subscribe(new Y(t))),new b(t.sourceSubscription,this._sampler.subscribe(new G(t)))},t}(f),G=function(e){function t(t){this._s=t,e.call(this)}return i(t,e),t.prototype._handleMessage=function(){this._s.hasValue&&(this._s.hasValue=!1,this._s.o.onNext(this._s.value)),this._s.atEnd&&this._s.o.onCompleted()},t.prototype.next=function(){this._handleMessage()},t.prototype.error=function(e){this._s.onError(e)},t.prototype.completed=function(){this._handleMessage()},t}(s),Y=function(e){function t(t){this._s=t,e.call(this)}return i(t,e),t.prototype.next=function(e){this._s.hasValue=!0,this._s.value=e},t.prototype.error=function(e){this._s.o.onError(e)},t.prototype.completed=function(){this._s.atEnd=!0,this._s.sourceSubscription.dispose()},t}(s);u.sample=function(e,t){return k(t)||(t=v),typeof e=="number"?new Q(this,j(e,t)):new Q(this,e)};var Z=n.TimeoutError=function(e){this.message=e||"Timeout has occurred",this.name="TimeoutError",Error.call(this)};Z.prototype=Object.create(Error.prototype),u.timeout=function(){var e=arguments[0];if(e instanceof Date||typeof e=="number")return tt(this,e,arguments[1],arguments[2]);if(o.isObservable(e)||C(e))return et(this,e,arguments[1],arguments[2]);throw new Error("Invalid arguments")};var nt=function(e){function t(t,n,r,i,s,o){this._state=t,this._cndFn=n,this._itrFn=r,this._resFn=i,this._timeFn=s,this._s=o,e.call(this)}function n(e,t){e.hasResult&&e.o.onNext(e.result);if(e.first)e.first=!1;else{e.newState=M(e.self._itrFn)(e.newState);if(e.newState===A)return e.o.onError(e.newState.e)}e.hasResult=M(e.self._cndFn)(e.newState);if(e.hasResult===A)return e.o.onError(e.hasResult.e);if(e.hasResult){e.result=M(e.self._resFn)(e.newState);if(e.result===A)return e.o.onError(e.result.e);var n=M(e.self._timeFn)(e.newState);if(n===A)return e.o.onError(n.e);t(e,n)}else e.o.onCompleted()}return i(t,e),t.prototype.subscribeCore=function(e){var t={o:e,self:this,newState:this._state,first:!0,hasResult:!1};return this._s.scheduleRecursiveFuture(t,new Date(this._s.now()),n)},t}(f);o.generateWithAbsoluteTime=function(e,t,n,r,i,s){return k(s)||(s=v),new nt(e,t,n,r,i,s)};var rt=function(e){function t(t,n,r,i,s,o){this._state=t,this._cndFn=n,this._itrFn=r,this._resFn=i,this._timeFn=s,this._s=o,e.call(this)}function n(e,t){e.hasResult&&e.o.onNext(e.result);if(e.first)e.first=!1;else{e.newState=M(e.self._itrFn)(e.newState);if(e.newState===A)return e.o.onError(e.newState.e)}e.hasResult=M(e.self._cndFn)(e.newState);if(e.hasResult===A)return e.o.onError(e.hasResult.e);if(e.hasResult){e.result=M(e.self._resFn)(e.newState);if(e.result===A)return e.o.onError(e.result.e);var n=M(e.self._timeFn)(e.newState);if(n===A)return e.o.onError(n.e);t(e,n)}else e.o.onCompleted()}return i(t,e),t.prototype.subscribeCore=function(e){var t={o:e,self:this,newState:this._state,first:!0,hasResult:!1};return this._s.scheduleRecursiveFuture(t,0,n)},t}(f);o.generateWithRelativeTime=function(e,t,n,r,i,s){return k(s)||(s=v),new rt(e,t,n,r,i,s)};var it=function(e){function t(t,n,r){this.source=t,this._dt=n,this._s=r,e.call(this)}function n(e,t){var n=t[0],r=t[1],i=t[2];i.setDisposable(n.subscribe(r))}return i(t,e),t.prototype.subscribeCore=function(e){var t=new g;return t.setDisposable(this._s.scheduleFuture([this.source,e,t],this._dt,n)),t},t}(f);u.delaySubscription=function(e,t){return k(t)||(t=v),new it(this,e,t)};var st=function(e){function t(t,n,r){this.source=t,this._d=n,this._s=r,e.call(this)}return i(t,e),t.prototype.subscribeCore=function(e){return this.source.subscribe(new ot(e,this))},t}(f),ot=function(e){function t(t,n){this._o=t,this._s=n._s,this._d=n._d,this._q=[],e.call(this)}return i(t,e),t.prototype.next=function(e){var t=this._s.now();this._q.push({interval:t,value:e});while(this._q.length>0&&t-this._q[0].interval>=this._d)this._o.onNext(this._q.shift().value)},t.prototype.error=function(e){this._o.onError(e)},t.prototype.completed=function(){var e=this._s.now();while(this._q.length>0&&e-this._q[0].interval>=this._d)this._o.onNext(this._q.shift().value);this._o.onCompleted()},t}(s);u.skipLastWithTime=function(e,t){return k(t)||(t=v),new st(this,e,t)};var ut=function(e){function t(t,n,r){this.source=t,this._d=n,this._s=r,e.call(this)}return i(t,e),t.prototype.subscribeCore=function(e){return this.source.subscribe(new at(e,this._d,this._s))},t}(f),at=function(e){function t(t,n,r){this._o=t,this._d=n,this._s=r,this._q=[],e.call(this)}return i(t,e),t.prototype.next=function(e){var t=this._s.now();this._q.push({interval:t,value:e});while(this._q.length>0&&t-this._q[0].interval>=this._d)this._q.shift()},t.prototype.error=function(e){this._o.onError(e)},t.prototype.completed=function(){var e=this._s.now();while(this._q.length>0){var t=this._q.shift();e-t.interval<=this._d&&this._o.onNext(t.value)}this._o.onCompleted()},t}(s);u.takeLastWithTime=function(e,t){return k(t)||(t=v),new ut(this,e,t)},u.takeLastBufferWithTime=function(e,t){var n=this;return k(t)||(t=v),new a(function(r){var i=[];return n.subscribe(function(n){var r=t.now();i.push({interval:r,value:n});while(i.length>0&&r-i[0].interval>=e)i.shift()},function(e){r.onError(e)},function(){var n=t.now(),s=[];while(i.length>0){var o=i.shift();n-o.interval<=e&&s.push(o.value)}r.onNext(s),r.onCompleted()})},n)};var ft=function(e){function t(t,n,r){this.source=t,this._d=n,this._s=r,e.call(this)}function n(e,t){t.onCompleted()}return i(t,e),t.prototype.subscribeCore=function(e){return new b(this._s.scheduleFuture(e,this._d,n),this.source.subscribe(e))},t}(f);u.takeWithTime=function(e,t){return k(t)||(t=v),new ft(this,e,t)};var lt=function(e){function t(t,n,r){this.source=t,this._d=n,this._s=r,this._open=!1,e.call(this)}function n(e,t){t._open=!0}return i(t,e),t.prototype.subscribeCore=function(e){return new b(this._s.scheduleFuture(this,this._d,n),this.source.subscribe(new ct(e,this)))},t}(f),ct=function(e){function t(t,n){this._o=t,this._p=n,e.call(this)}return i(t,e),t.prototype.next=function(e){this._p._open&&this._o.onNext(e)},t.prototype.error=function(e){this._o.onError(e)},t.prototype.completed=function(){this._o.onCompleted()},t}(s);u.skipWithTime=function(e,t){return k(t)||(t=v),new lt(this,e,t)};var ht=function(e){function t(t,n,r){this.source=t,this._st=n,this._s=r,e.call(this)}function n(e,t){t._open=!0}return i(t,e),t.prototype.subscribeCore=function(e){return this._open=!1,new b(this._s.scheduleFuture(this,this._st,n),this.source.subscribe(new pt(e,this)))},t}(f),pt=function(e){function t(t,n){this._o=t,this._p=n,e.call(this)}return i(t,e),t.prototype.next=function(e){this._p._open&&this._o.onNext(e)},t.prototype.error=function(e){this._o.onError(e)},t.prototype.completed=function(){this._o.onCompleted()},t}(s);return u.skipUntilWithTime=function(e,t){return k(t)||(t=v),new ht(this,e,t)},u.takeUntilWithTime=function(e,t){k(t)||(t=v);var n=this;return new a(function(r){return new b(t.scheduleFuture(r,e,function(e,t){t.onCompleted()}),n.subscribe(r))},n)},u.throttle=function(e,t){k(t)||(t=v);var n=+e||0;if(n<=0)throw new RangeError("windowDuration cannot be less or equal zero.");var r=this;return new a(function(e){var i=0;return r.subscribe(function(r){var s=t.now();if(i===0||s-i>=n)i=s,e.onNext(r)},function(t){e.onError(t)},function(){e.onCompleted()})},r)},n}),define("app/utils/ga-mixins",["require","rx","rx.time"],function(e){var t=e("rx"),n=e("rx.time"),r={constructor:function(){boeing_globals.gaSubject=ne
1w t.Subject,boeing_globals.vidSubject=new t.BehaviorSubject;var e=function(e){return e.eventLabel};boeing_globals.gaSubject.debounce(function(e){return t.Observable.timer(500)}).subscribe(this.sendGaObject.bind(this))},sendGaObject:function(e){var t=ga.getAll()[0].get("name");ga("send",e)},startMainVideoGAStream:function(){document.querySelector("video#player-video_html5_api")!==null&&s()},sendEpisodeChapterEvent:function(e){},sendEpisodePctWatchedEvent:function(e){},sendClickEvent:function(e,t){var n={hitType:"event",eventCategory:"creative-studios",eventAction:e,eventLabel:t};window.boeing_globals.gaSubject.onNext(n)},sendUIEvent:function(e,t){this.sendClickEvent(e,t)},sendTopicsEvent:function(e,t){this.sendClickEvent(e,t)},sendClickEventObsolete:function(e,t){},sendPageEvent:function(e){},getEventLabel:function(e,t){var n=boeing_globals.gaEpisodesData[e-1].episode_title,r=String(e)+"-"+n;return t!==undefined&&(r+="-"+String(t)),r},zeroFill:function(e,t){e=e.toString();var n=t-e.length;if(n>0)for(var r=0;r<n;r++)e="0"+e;return e},sendPageView:function(){dataLayer.push({event:"virtualPageview"})}},i=function(e,t){e=e.toString();var n=t-e.length;if(n>0)for(var r=0;r<n;r++)e="0"+e;return e},s=function(){var e=document.querySelector("video#player-video_html5_api"),n=[0,25,50,75,100],r=function(t){e.onloadeddata=t},i=function(t){e.onloadeddata=function(){}},s=function(t){e.onloadeddata=t},u=function(t){e.onloadeddata=function(){}},a=function(e){var t=e.target,r=-1,i=-1,s=-1,o=!1,u=-1;return t!==null&&(r=t.currentTime,i=t.duration,s=Math.floor(r/i*100),o=_.indexOf(n,s)>=0,u=s%25),_.isNaN(i)===!0&&(n=[0,25,50,75,100]),{time:r,duration:i,percent:s,isQuarter:o,quarter:u}},f=boeing_globals.gaEpisodesStr,l=t.Observable.fromEventPattern(r,i),c=(new t.Observable.fromEvent(e,"timeupdate")).map(a).combineLatest(f),h=l.switchMap(function(){return c});boeing_globals.vidSubject.onNext(h);var p=function(){return document.querySelector("video#player-video_html5_api")!==null},d=function(e){return e[0].quarter},v=function(e){var t=_.indexOf(n,e[0].percent);return e[0].isQuarter===!0&&t>=0?(n.splice(t,1),!0):!1};h.takeWhile(p).do(function(e){}).filter(v).subscribe(o)},o=function(e){var t=e[0],n=e[1],r=boeing_globals.state.get("currentEpisode")*1+1,i=boeing_globals.state.get("currentChapter")*1+1,s=n.episodes,o=function(e){return e.replace(/(?!\w|\s)./g,"").replace(/\s+/g,"-").replace(/^(\s*)([\W\w]*)(\b\s*$)/g,"$2").toLowerCase()},u=function(){var e=s[boeing_globals.state.get("currentEpisode")*1].episode_title;return"-"+e+"-"},a=function(){return String(r)+u()+String(i)},f=t.percent;f===0?f="start":f===100&&(f="complete");var l="event",c="creative-studios",h="clip-"+f,p=a(),d={hitType:l,eventCategory:c,eventAction:h,eventLabel:p};window.boeing_globals.gaSubject.onNext(d)};return r}),!function(e){"function"==typeof define&&define.amd?define("backbone-subroute",["underscore","backbone"],e):"object"==typeof exports?module.exports=e(require("underscore"),require("backbone")):e(_,Backbone)}(function(e,t){return t.SubRoute=t.Router.extend({constructor:function(n,r){this.routes=e.clone(this.routes)||{},this.prefix=n=n||"",this.separator="/"===n.slice(-1)?"":"/",this.createTrailingSlashRoutes=r&&r.createTrailingSlashRoutes,t.Router.prototype.constructor.call(this,r);var i;i=t.history.fragment?t.history.getFragment():t.history.getHash(),e.every(this.routes,function(e,n){return i.match(t.Router.prototype._routeToRegExp(n))?(t.history.loadUrl(i),!1):!0},this),this.postInitialize&&this.postInitialize(r)},navigate:function(e,n){"/"!=e.substr(0,1)&&0!==e.indexOf(this.prefix.substr(0,this.prefix.length-1))&&(e=this.prefix+(e?this.separator:"")+e),t.Router.prototype.navigate.call(this,e,n)},route:function(e,n,r){"/"===e.substr(0)&&(e=e.substr(1,e.length));var i=this.prefix;return e&&e.length>0&&(this.prefix.length>0&&(i+=this.separator),i+=e),this.createTrailingSlashRoutes&&(this.routes[i+"/"]=n,t.Router.prototype.route.call(this,i+"/",n,r)),delete this.routes[e],this.routes[i]=n,t.Router.prototype.route.call(this,i,n,r)}}),t.SubRoute}),define("app/modules/library/library-router",["require","jquery","underscore","backbone","app/utils/route-mixins","app/app-events","backbone-subroute"],function(e){var t=e("jquery"),n=e("underscore"),r=e("backbone"),i=e("app/utils/route-mixins"),s=e("app/app-events"),o=e("backbone-subroute"),u=o.extend({initialize:function(e,t,r){this.debug=!1,this.setDebugEnv(),this.episode=0,this.currentTopic=0,this.console.log("Library ROUTER LOADED",e,t,this),this.throttleRoutes=!1,e!=undefined&&n.has(e,"data")?this.paramsData=e.data:this.paramsData=undefined,this.hasTopic=!1,this.formatLibraryPath=i.formatLibraryPath,this.getEpisodeNumFromParams=i.getEpisodeNumFromParams,this.getTopicFromParams=i.getTopicFromParams,this.setLibrary(this.paramsData),this.throttleRoutes=!0},routes:{"topics/:":"tester"},tester:function(e){this.console.log("LIBRARY TEST ",e)},sendParams:function(e){this.console.log("LIBRSRY params is ",e),this.episode=this.getEpisodeNumFromParams(e),this.updateState()},getStateData:function(){this.episode=boeing_globals.state.get("currentEpisode"),this.currentPage=boeing_globals.state.get("currentPage"),this.currentTopic=boeing_globals.state.get("currentTopic")},getRouteData:function(e){e!=undefined&&e.indexOf("ep")>=0},updateState:function(){var e={loadLibrary:!0,currentPage:"player"};e.currentEpisode=this.episode,this.hasTopic==1&&(e.currentPage="topics",e.currentTopic=this.topicNum),boeing_globals.state.set(e)},updatePath:function(){var e=this.formatLibraryPath(this.episode+1);if(this.hasTopic){var t=this.topicNum;t+=1;var n="/topic/"+String(t);e+=n}this.navigate("library/"+e,{trigger:!0})},setLibrary:function(e){this.currentPage=boeing_globals.state.get("currentPage"),this.console.log(this.currentPage," LIBRARY ROUTER SET LIBRARY INDEX ",String(e).indexOf("topic"),e,boeing_globals.state.get("loadLibrary")),this.get
1StateData(),e!=undefined&&(this.episode=this.getEpisodeNumFromParams(e)),this.currentPage=="player"&&(this.hasTopic=!1,this.updatePath()),String(e).indexOf("topic")>=0&&(this.hasTopic=!0,this.topicNum=this.getTopicFromParams(e),this.currentPage="topics",this.updatePath(),this.updateState()),this.console.log("TOPICS INDEX ",String(e).indexOf("topic")),this.currentPage==""&&(this.hasTopic=!1,this.updatePath(),this.updateState()),this.currentPage=="topics"&&(this.topicNum=boeing_globals.state.get("currentTopic"),this.hasTopic=!0,this.updatePath(),this.updateState())},checkForRouterControl:function(e){var t=boeing_globals.state.get("currentPage"),n=boeing_globals.state.get("loadLibrary");loadLibrary==1&&(t=="player"?(this.getStateData(),this.updatePath()):t==""?this.setLibrary():t=="topics"&&(this.hasTopic=!0,this.getStateData(),this.updatePath()))},onStateChangedEvent:function(e){this.checkForRouterControl(e)},setDebugEnv:function(){this.console={log:function(){}},this.debug!=undefined&&this.debug==1&&(this.console=window.console)}});return u}),define("app/app-router",["require","jquery","underscore","backbone","app/utils/event-mixins","app/utils/route-mixins","app/utils/path-mixins","app/utils/ga-mixins","app/app-events","app/modules/library/library-router"],function(e){var t=e("jquery"),n=e("underscore"),r=e("backbone"),i=e("app/utils/event-mixins"),s=e("app/utils/route-mixins"),o=e("app/utils/path-mixins"),u=e("app/utils/ga-mixins"),a=e("app/app-events"),f=e("app/modules/library/library-router"),l=["boeing"],c=[{title:"(/)",path:"index"},{title:"/home(/)",path:"index"},{title:"/menu(/)",path:"menu"},{title:"/menu/:query(/)",path:"menu"},{title:"/watch(/)",path:"watch"},{title:"/watch/:query(/)",path:"watch"},{title:"/watch/:query(/):query(/)",path:"watch"},{title:"/library(/)",path:"library"},{title:"/library/:query(/)",path:"library"},{title:"/library/:query(/):topic(/)",path:"topic"},{title:"/library/:query(/):query(/):query(/)",path:"topic"}],h={};for(var p=0;p<l.length;p++){var d=l[p];for(var v=0;v<c.length;v++){var m=d.toLowerCase()+c[v].title,g=d.toUpperCase()+c[v].title;h[m]=c[v].path,h[g]=c[v].path}}window.usePageviewHistoryChange=!0;var y=r.Router.extend({initialize:function(){this.debug=!0,this.setDebugEnv(),window.appRouter=this,this.console.log("router started"),this.checkForSubDirectory(),this.formatEventData=i.formatEventData,this.pm=o,this.pauseListening=!1,boeing_globals.navigationCount=0,window.location.pathname==""&&this.setNavigation(boeing_globals.state);var e=function(){var e=/(linkout)/,t=window.location.search;boeing_globals.addAudienceCardBool=t.match(e)!==null},t=function(){var e=/(boomerang)/,t=window.location.search;boeing_globals.addBoomerangBool=t.match(e)!==null};e(),t(),this.subDirectory=boeing_globals.subDirectoryPath,boeing_globals.videoPlayed=!1,a.on("STATE_CHANGED_EVENT",this.onStateChangedEvent.bind(this))},routes:h,index:function(e){document.title="Age of Aerospace";var t={loadMenu:!1,currentPage:""};if(e!==undefined&&e!==null&&boeing_globals.device==="mobile"){var n=/^([123456789])/,r=e.match(n);r!==null&&r.index===0&&(t.currentMenuEpisodeNumber=e)}this.ribbonLoaded=!1,this.sendStateEvent(t),this.ribbonLoaded=!0,this.sendPageEvent("home")},menu:function(e,t,r){var i={loadMenu:!0},s=["episodes","interactives","about"];e!=undefined&&n.contains(s,e)&&(i.menuType=e);if(boeing_globals.device==="mobile"){var o=boeing_globals.state.get("currentPage"),a=o==="";a===!0&&(i.currentPage="home")}this.sendStateEvent(i),u.sendPageEvent()},watch:function(e,t){boeing_globals.videoPlayed=!0;var n=this.pm.getWatchEpisodeAndChapterData(e,t);n.currentPage="player",this.console.log("watch is  --  ",e," -- ",t," --VIDDATA: ",n),document.title="Age of Aerospace | Watch | "+e+" | "+t,this.sendStateEvent(n)},library:function(e,t,n){var r=this.pm.getEpisodeNumFromParams(e),i=boeing_globals.state.get("currentPage"),s={loadLibrary:!0,currentEpisode:r};i==""&&(s.currentPage="player"),this.console.log("LIBRARY DATA IS ",e,t,n),this.sendStateEvent(s)},topic:function(e,t,n){console.log("Loading Topic");var r=this.pm.getEpisodeNumFromParams(e),i={currentPage:"topics"};if(n!=undefined){var s;String(n).length>2?s=this.pm.getTopicByTitle(n):s=n,i.currentTopic=s*1,boeing_globals.videoPlayed===!1&&(i.currentEpisode=r)}document.title="Age of Aerospace | Library | "+e+" | "+n,this.sendStateEvent(i)},article:function(e){console.log("Loading Article"),console.log(e);if(e!=undefined){var t;String(e).length>2&&(t=this.pm.getArticleByTitle(e),console.log("Current Article: ",t))}var n={loadArticle:!0};console.log(boeing_globals),this.sendStateEvent(n)},setNavigation:function(e){var t=this.buildUrlPath(e);this.console.log("THE PATH IS ",t),boeing_globals.navigationCount++;var n=boeing_globals.device==="mobile";this.navigate(t,{trigger:!0,replace:n})},buildUrlPath:function(e){var t=this.pm.getUrlBase(e),n;if(t=="home")console.log("BUILD PATH: ",e),n=this.pm.buildHomelUrl(t);else if(t=="menu"){var r=this.pm.createMenuUrl();n=this.pm.buildFinalUrl(r)}else if(t=="topics"){var i=this.pm.createTopicsUrl();n=this.pm.buildFinalUrl(i)}else if(t=="library"){var s=this.pm.createLibraryUrl();n=this.pm.buildFinalUrl(s)}else if(t=="watch"){var o=this.pm.createWatchUrl();n=this.pm.buildFinalUrl(o)}return n},onStateChangedEvent:function(e){if(this.pauseListening===!1){var t=e.changed;this.setNavigation(e),this.console.log("STATE B RECEIVING CHANGED IN ROUTER FROM STATE MODEL ",e)}},resetPauseListening:function(){this.pauseListening=!1},updateStateEvent:function(){},sendStateEvent:function(e){var n=e;
1n=this.formatEventData("STATE_UPDATE_EVENT",n),this.console.log("STATE B SENDING CHANGED IN ROUTER FROM STATE MODEL ",e),this.pauseListening=!0,window.setTimeout(this.resetPauseListening.bind(this),1e3),this.trigger("ROUTER_EVENT",n),boeing_globals.state.get("currentPage")=="home"?t("#awwwards").css("display","none"):t("#awwwards").css("display","none"),u.sendPageView()},sendPageEvent:function(e,t){var n=t!=undefined?t:{};n.currentPage=e,this.console.log("data router string is ",e,n),n=this.formatEventData("STATE_UPDATE_EVENT",n),this.trigger("ROUTER_EVENT",n)},checkForInternational:function(e){var t=window.location.pathname;t=PathStr.toLowerCase();if(e!="en"){var n=new RegExp("/discovery"),r=new RegExp("/ahctv"),i=new RegExp("/sciencechannel"),s=new RegExp("/sci");t.match(n)!=undefined?t=t.replace(n,"/boeing"):t.match(r)!=undefined?t=t.replace(r,"/boeing"):t.match(i)!=undefined?t=t.replace(i,"/boeing"):t.match(s)!=undefined&&(t=t.replace(s,"/boeing"))}return t},checkForSubDirectory:function(){var e=window.location.pathname;e=e.toLowerCase();var t=e.replace(/^\/([^\/]*).*$/,"$1"),r="",i=function(e){r="boeing",t="boeing",subDirectoryPath=r+"/",f=!0,e!=1&&window.setTimeout(function(){var e="boeing";window.appRouter.navigate(e,!1,boeing_globals.device==="mobile")},500)},s=["boeing"],o=["boeing"],u=["home","menu","watch","library"];if(t=="")i();else if(boeing_globals.isInternational=="true"&&n.contains(o,t)){var a=this.checkForInternational();window.location.pathname=a}var f=!1;n.contains(s,t)==1?(r=t,subDirectoryPath=r+"/",f=!0):n.contains(u,t)==1&&i(!1),boeing_globals.isSubDirectory=f,boeing_globals.subDirectory=r,boeing_globals.subDirectoryPath=subDirectoryPath},setDebugEnv:function(){this.console={log:function(){}},this.debug!=undefined&&this.debug==1&&(this.console=window.console)}});return y}),define("app/data/state-model",["require","jquery","underscore","backbone"],function(e){var t=e("jquery"),n=e("underscore"),r=e("backbone"),i=r.Model.extend({initialize:function(){},defaults:{siteFirstLoaded:!0,currentPage:"home",currentEpisode:-1,episodeArrLength:0,currentTopic:0,currentChapter:0,loadMenu:!1,topicEscapedTitle:"",menuType:"",loadNavStrip:!1,loadLibrary:!1,orientation:"landscape",currentMenuEpisodeNumber:-1},onDataChange:function(e){},updateEpisode:function(e){window.vidjs!==undefined&&window.vidjs.hasOwnProperty("play")&&window.vidjs.pause();var t=e,n=boeing_globals.episodesCollection.at(t).toJSON().chapters.length;this.set({currentEpisode:t,currentChapter:0,episodeArrLength:n});var r=function(){window.vidjs!==undefined&&typeof window.vidjs.play=="function"&&(window.vidjs.play(),console.log("UPDATE EPSIODE CALLED ",e))};window.setTimeout(r.bind(this),7e3)},updateChapter:function(){var e=boeing_globals.episodesCollection.at(this.attributes.currentEpisode).toJSON().chapters.length,t=this.get("currentChapter");t+=1,console.log("-------------------------------------"),console.log("state model update chapter ",t),console.log("state model update chapter total ",e),console.log("-------------------------------------");if(t<e)this.set({currentChapter:t,episodeArrLength:e});else{var n=this.get("currentEpisode");n+=1;var r=boeing_globals.episodesCollection.length;boeing_globals.hideEpisode5==1&&(r-=1),n<r&&this.set({currentEpisode:n,currentChapter:0,episodeArrLength:e})}console.log("model num len ",t,e)},updateTopicNumber:function(){var e=this.get("currentTopic");e+=1,e>=boeing_globals.topicsCollection.length&&(e=0);var t={currentTopic:e};if(boeing_globals.videoPlayed===!1){var n=this.attributes.currentEpisode;n=n*1+1,n>=boeing_globals.episodes_length&&(n=0),t.currentEpisode=n}this.set(t)},onSiteFirstLoaded:function(){window.globals.siteFirstLoaded=!1,this.set({siteFirstLoaded:!1})}});return i}),define("app/data/domains-model",["require","jquery","underscore","backbone"],function(e){var t=e("jquery"),n=e("underscore"),r=e("backbone"),i=r.Model.extend({initialize:function(){},defaults:{en:["com","co.uk","-au.com"],ar:["-me.com"],fr:["fr"],de:["de"],hi:["in"],id:["co.id"],it:["it"],jp:["jp"],kr:["kr"],ms:["com.my"],pt:["com.br"],ru:["ru"],zh:["cn","sg"],es:["es"],th:["-th.com"],tr:["-tr.com"],vi:["vn"]}});return i}),define("app/data/ui-text-model",["require","jquery","underscore","backbone"],function(e){var t=e("jquery"),n=e("underscore"),r=e("backbone"),i=r.Model.extend({initialize:function(){},defaults:{}});return i}),define("app/base-classes/base-collection",["require","underscore","jquery","app/app-events","backbone"],function(e){var t=e("underscore"),n=e("jquery"),r=e("app/app-events"),i=e("backbone"),s=i.Collection.extend({init:function(){this.setDebugEnv()},success:function(e){console.log("success in collection ",e)},setDebugEnv:function(){this.console={log:function(){}},this.debug!=undefined&&this.debug==1&&(this.console=window.console)}});return s}),define("app/data/episodes-collection",["require","app/base-classes/base-collection","backbone"],function(e){var t=e("app/base-classes/base-collection"),n=e("backbone"),r=t.extend({url:"",initialize:function(e){this.debug=!1,this.init(),this.console.log("collection inint ",e)},setEpisodeNumbers:function(e,t){var n=t;e.episode_label=n+1,e.episode_num=n},checkChapters:function(e,t){var n=[];this.userData!==null&&this.userData[t]!==undefined&&(n=this.userData[t].viewed_chapters);var r,i=function(e,t){r=_.contains(n,t),e.viewedClass=r===!0?"viewed":"unviewed"};_.each(e.chapters,i.bind(this))}
1,setViewedClass:function(){this.each(this.checkChapters)},updateViewedChapters:function(){onCheckChapters=function(e,t){var n=[];this.userData!==null&&this.userData[t]!==undefined&&(n=this.userData[t].viewed_chapters);var r,i=function(e,t){r=_.contains(n,t),e.viewedClass=r===!0?"viewed":"unviewed"};_.each(e.attributes.chapters,i.bind(this))},boeing_globals.userDataCollection!==undefined&&(this.userData=boeing_globals.userDataCollection.toJSON(),boeing_globals.episodesCollection.each(onCheckChapters.bind(this)))},setChapterLengthsArr:function(e){var t=function(e){return e.chapters.length},n=_.map(e,t);window.localStorage.setItem("boeingChapterLengthsArr",n)},addChapterDurationsArr:function(e,t){var n=[];const r=/(\d*)(:)(\d*)/;var i,s,o,u=0,a=0,f=function(e){var t=Math.floor(e),n=e%1,r=Number(n*.6).toFixed(2)*1;return Number(t+r).toFixed(2)},l=function(e,t){i=r.exec(e.chapter_duration),s=i[1]*1,o=i[3]/60,a=s+o,u+=a,n.push(f(u))},c=e.chapters;return _.each(c,l.bind(this)),n},getChaptersDurationArr:function(e){var t=localStorage.getItem("chaptersDurationArr"),n=[],r=function(e,t){n.push(this.addChapterDurationsArr(e,t))};t===null&&(_.each(e,r.bind(this)),window.localStorage.setItem("chaptersDurationArr",JSON.stringify(n)))},parse:function(e){return this.setChapterLengthsArr(e.episodes),this.userData=JSON.parse(window.localStorage.getItem("boeingUserData")),_.each(e.episodes,this.setEpisodeNumbers.bind(this)),_.each(e.episodes,this.checkChapters.bind(this)),this.getChaptersDurationArr(e.episodes),e.episodes},set1:function(e){}});return r}),define("app/data/topics-collection",["require","app/base-classes/base-collection","backbone"],function(e){var t=e("app/base-classes/base-collection"),n=e("backbone"),r=t.extend({url:"",initialize:function(e){this.debug=!1,this.init(),this.console.log("collection topicscollection ",e)},comparator:function(e){return e.get("topic_episode_number")},parse:function(e){this.console.log("response is ",e.topics);var t=function(e,t){e.num=t},n=function(e,t){var n=function(e,t){var n={acf_fc_layout:"intro",eyebrow:e.eyebrow,title:e.title,description:e.description,url:e.image.url};e.pages.unshift(n)};e.hasOwnProperty("image")==1&&(this.console.log("the images data is ",e),e.topic_image=e.image.sizes["boeing-thumb-1200"],e.topic_url=e.image.url,n(e,t)),e.escaped_title=e.title.replace(/\s+/g,"-")},r=function(e,t){var n=e.menu_title,r=e.topic_episode_number,i=e.image.sizes.medium;if(e.chapter_popups!=0){for(var s=0;s<e.chapter_popups.length;s++){e.chapter_popups[s].topic_title=n,e.chapter_popups[s].topic_image=i,e.chapter_popups[s].episode_number=r;var o=Math.ceil(e.chapter_popups.popup_time_start);o<20&&(o=_.random(40,200)),e.chapter_popups[s].time=o}console.log("TOIPCS COL POPUP ",e.chapter_popups,e.chapter_popups.length)}},i=function(e,t){var n=["timeline","factoid","fullscreen_video","image_reveal_slider"];e.pages=_.reject(e.pages,function(e){return _.contains(n,e.acf_fc_layout)})};return boeing_globals.device=="mobile",_.each(e.topics,t.bind(this)),_.each(e.topics,n.bind(this)),e.topics}});return r}),define("app/data/user-data-model",["require","underscore","jquery","backbone"],function(e){var t=e("underscore"),n=e("jquery"),r=e("backbone"),i=r.Model.extend({url:"",defaults:{episode_num:"",episode_duration:0,episode_length:9,chapterDurationsArr:[],viewed_chapters:[],viewed_percentage:0,last_viewed_time:"",last_chapter_viewed:0},initialize:function(e){if(e.chapterDurationsArr!==undefined&&e.chapterDurationsArr.length>3&&e.viewed_chapters.length>=1){e.last_chapter_viewed=t.max(e.viewed_chapters),e.last_viewed_time=e.chapterDurationsArr[e.last_chapter_viewed],e.episode_duration=t.last(e.chapterDurationsArr);var n=e.episode_length,r=(e.last_chapter_viewed*1+1)/n;e.viewed_percentage=r}},resetWatchedChapters:function(){this.attributes.viewed_chapters=[],this.attributes.viewed_percentage=0,this.attributes.last_viewed_time="",this.attributes.last_chapter_viewed=0},parse:function(e){},addViewedChapter:function(e){var n=this.get("viewed_chapters");if(t.contains(n,e)===!1){this.attributes.viewed_chapters.push(e),this.attributes.last_chapter_viewed=t.max(this.attributes.viewed_chapters),this.attributes.last_viewed_time=this.attributes.chapterDurationsArr[this.attributes.last_chapter_viewed],this.attributes.episode_duration=t.last(this.attributes.chapterDurationsArr);var r=this.attributes.episode_length,i=this.attributes.viewed_chapters.length,s=(this.attributes.last_chapter_viewed*1+1)/r;this.set("viewed_percentage",s)}}});return i}),function(e,t){typeof exports=="object"&&typeof require=="function"?module.exports=t(require("backbone")):typeof define=="function"&&define.amd?define("backbone.localStorage",["backbone"],function(n){return t(n||e.Backbone)}):t(Backbone)}(this,function(e){function t(){return((1+Math.random())*65536|0).toString(16).substring(1)}
1function n(){return t()+t()+"-"+t()+"-"+t()+"-"+t()+"-"+t()+t()+t()}function r(e){return e===Object(e)}function i(e,t){var n=e.length;while(n--)if(e[n]===t)return!0;return!1}function s(e,t){for(var n in t)e[n]=t[n];return e}function o(e,t){if(e==null)return void 0;var n=e[t];return typeof n=="function"?e[t]():n}return e.LocalStorage=window.Store=function(e,t){if(!this.localStorage)throw"Backbone.localStorage: Environment does not support localStorage.";this.name=e,this.serializer=t||{serialize:function(e){return r(e)?JSON.stringify(e):e},deserialize:function(e){return e&&JSON.parse(e)}};var n=this.localStorage().getItem(this.name);this.records=n&&n.split(",")||[]},s(e.LocalStorage.prototype,{save:function(){this.localStorage().setItem(this.name,this.records.join(","))},create:function(e){return!e.id&&e.id!==0&&(e.id=n(),e.set(e.idAttribute,e.id)),this.localStorage().setItem(this._itemName(e.id),this.serializer.serialize(e)),this.records.push(e.id.toString()),this.save(),this.find(e)},update:function(e){this.localStorage().setItem(this._itemName(e.id),this.serializer.serialize(e));var t=e.id.toString();return i(this.records,t)||(this.records.push(t),this.save()),this.find(e)},find:function(e){return this.serializer.deserialize(this.localStorage().getItem(this._itemName(e.id)))},findAll:function(){var e=[];for(var t=0,n,r;t<this.records.length;t++)n=this.records[t],r=this.serializer.deserialize(this.localStorage().getItem(this._itemName(n))),r!=null&&e.push(r);return e},destroy:function(e){this.localStorage().removeItem(this._itemName(e.id));var t=e.id.toString();for(var n=0,r;n<this.records.length;n++)this.records[n]===t&&this.records.splice(n,1);return this.save(),e},localStorage:function(){return localStorage},_clear:function(){var e=this.localStorage(),t=new RegExp("^"+this.name+"-");e.removeItem(this.name);for(var n in e)t.test(n)&&e.removeItem(n);this.records.length=0},_storageSize:function(){return this.localStorage().length},_itemName:function(e){return this.name+"-"+e}}),e.LocalStorage.sync=window.Store.sync=e.localSync=function(t,n,r){var i=o(n,"localStorage")||o(n.collection,"localStorage"),s,u,f=e.$?e.$.Deferred&&e.$.Deferred():e.Deferred&&e.Deferred();try{switch(t){case"read":s=n.id!=undefined?i.find(n):i.findAll();break;case"create":s=i.create(n);break;case"update":s=i.update(n);break;case"delete":s=i.destroy(n)}}catch(l){l.code===22&&i._storageSize()===0?u="Private browsing is unsupported":u=l.message}return s?(r&&r.success&&(e.VERSION==="0.9.10"?r.success(n,s,r):r.success(s)),f&&f.resolve(s)):(u=u?u:"Record Not Found",r&&r.error&&(e.VERSION==="0.9.10"?r.error(n,u,r):r.error(u)),f&&f.reject(u)),r&&r.complete&&r.complete(s),f&&f.promise()},e.ajaxSync=e.sync,e.getSyncMethod=function(t,n){var r=n&&n.ajaxSync;return!r&&(o(t,"localStorage")||o(t.collection,"localStorage"))?e.localSync:e.ajaxSync},e.sync=function(t,n,r){return e.getSyncMethod(n,r).apply(this,[t,n,r])},e.LocalStorage}),define("app/data/user-data-collection",["require","app/base-classes/base-collection","backbone","app/data/user-data-model","backbone.localStorage"],function(e){var t=e("app/base-classes/base-collection"),n=e("backbone"),r=e("app/data/user-data-model"),i=e("backbone.localStorage"),s=t.extend({url:"",model:r,initialize:function(){this.debug=!0,this.init(),this.add(boeing_globals.userdata),window.setTimeout(this.addListeners.bind(this),1e3),this.on("change",this.updateLocalStorage.bind(this))},updateLocalStorage:function(){console.log("update local storage"),window.localStorage.setItem("boeingUserData",JSON.stringify(boeing_globals.userDataCollection.toJSON())),boeing_globals.userdata=JSON.parse(window.localStorage.getItem("boeingUserData"))},addListeners:function(){var e=function(e){return e.eventAction==="clip-start"};boeing_globals.gaSubject.filter(e).map(this.getVideoData).subscribe(this.onVideoWatchedEvent.bind(this))},getVideoData:function(){var e={};return e.episode_num=boeing_globals.state.get("currentEpisode"),e.episode_length=boeing_globals.episodesCollection.at(e.episode_num).toJSON().chapters.length,e.episode_duration=boeing_globals.episodesCollection.at(e.episode_num).get("episode_duration"),e.viewed_chapter=boeing_globals.state.get("currentChapter"),e},onVideoWatchedEvent:function(e){var t=this.getVideoData(),n=this.where({episode_num:t.episode_num});n.length>=1&&(n=n[0],console.log("MODEL IS ",n),n.addViewedChapter(t.viewed_chapter),window.localStorage.setItem("boeingUserData",JSON.stringify(boeing_globals.userDataCollection.toJSON())),boeing_globals.userdata=JSON.parse(window.localStorage.getItem("boeingUserData")))},getEpisodeInfo:function(e){var t=this.where({episode_num:e});if(t.length>=1)return t=t[0],t.toJSON();var n=new r({episode_num:e});return n.save(),n.toJSON()},addNewModel:function(e){var t=e.viewed_chapter,n=_.omit(e,"viewed_chapter"),i=new r(n);i.addViewedChapter(t),this.add(i),i.save()},parse:function(e){return console.log("RESPONSE USER DATA: ",e),e}});return s}),define("app/data/ga-episodes-model",["require","jquery","rx","rx.time"],function(e){var t=e("jquery"),n=e("rx"),r=e("rx.time"),i=function(){this.dataUrl=boeing_globals.gaEpisodesJsonUrl;var e={dataUrl:boeing_globals.gaEpisodesJsonUrl,initialize:function(){this.observerStr=new n.BehaviorSubject(0),this.fetchData()},getObserver:function(){return this.observerStr},fetchData:function(){var e=function(e){return e.replace(/(?!\w|\s)./g,"").replace(/\s+/g,"-").replace(/^(\s*)([\W\w]*)(\b\s*$)/g,"$2").toLowerCase()},r=function(t){for(var n=0;n<t.episodes.length;n++)t.episodes[n].episode_title=e(t.episodes[n].episode_title);this.observerStr.onNext(t)},i=n.Observable.fromPromise(t.getJSON(this.dataUrl)).subscribe(r.bind(this))}};return e};return i}),define("app/modules/topics-views/models/model-intro",["require","underscore","jquery","backbone"],function(e){var t=e("underscore"),n=e("jquery"),r=e("backbone"),i=r.Model.extend({defaults:{type:"",eyebrow:"",title:"",description:"",url:"",menu_color:""},parse:function(e){return this.attributes.id=this.cid,e},initialize:function(e){this.parse(e)}});return i}),define("app/modules/topics-views/models/model-section",["require","underscore","jquery","backbone"],function(e){var t=e("underscore"),n=e("jquery"),r=e("backbone"),i=r.Model.extend({defaults:{type:"",eyebrow:"",title:"",description:"",url:"",menu_color:"",image_credit_title:"",image_credit_attribution:"",image_credit_url:""},parse:function(e){return this.attributes.id=this.cid,this.attributes.url=e.image.url,e},initialize:function(e){this.parse(e)}});return i}),define("app/modules/topics-views/models/model-article",["require","underscore","jquery","backbone"],function(e){var t=e("underscore"),n=e("jquery"),r=e("backbone"),i=r.Model.extend({defaults:{type:"",subtype:"",eyebrow:"",title:"",text:"",soundcloud:"",content_type:"",content_url:"",content_video_id:"",content_caption:"",content_credit_title:"",content_credit_attribution:"",content_credit_url:"",footnotes:""},parse:function(e){return this.attributes.id=this.cid,e.content_type=="Image"?this.attributes.content_url=e.content_image.url:e.content_type=="Video"?(this.attributes.content_url=e.content_video,this.attributes.content_video_id=e.content_video_id):e.content_type=="Loop"&&(this.attributes.content_url=e.content_loop,this.attributes.content_video_id=e.content_loop_id),e},initialize:function(e){this.parse(e)}});return i}),define("app/modules/topics-views/models/model-gallery",["require","underscore","jquery","backbone"],function(e){var t=e("underscore"),n=e("jquery"),r=e("backbone"),i=r.Model.extend({defaults:{type:"",main_title:"",main_description:"",selected:-1,selectedContent:"{}",eyebrow:"",title:"",content:[],gallery_items:[],dir:1},parse:function(e){return this.attributes.id=this.cid,this.allowIteration=!0,this.arrLength=e.gallery_items.length,e},throttleIterator:function(){this.allowIteration=!1;var e=function(){this.allowIteration=!0};window.setTimeout(e.bind(this),500)},resetModel:function(){this.attributes.selected=-1},getSelectedContent:function(e){if(this.allowIteration==1){e<-1&&e>1&&console.error("NG");var t=e+this.attributes.selected;return t>=this.arrLength?t=0:t<0&&(t=this.arrLength-1),this.set({selected:t,dir:e,selectedContent:this.attributes.gallery_items[t],main_title:this.attributes.title,main_description:this.attributes.text}),this.trigger("GALLERY_UPDATE_EVENT",this.attributes),this.throttleIterator(),this.get("selectedContent")}this.throttleIterator()},initialize:function(e){this.parse(e)}});return i}),define("app/modules/topics-views/models/model-hotspots",["require","underscore","jquery","backbone"],function(e){var t=e("underscore"),n=e("jquery"),r=e("backbone"),i=r.Model.extend({defaults:{type:"",eyebrow:"",title:"",description:"",thinglink:""},parse:function(e){return this.attributes.id=this.cid,e},initialize:function(e){this.parse(e)}});return i}),define("app/modules/topics-views/models/model-timeline",["require","underscore","jquery","backbone"],function(e){var t=e("underscore"),n=e("jquery"),r=e("backbone"),i=r.Model.extend({defaults:{type:"",title:"",content:""},parse:function(e){return this.attributes.id=this.cid,e},initialize:function(e){this.parse(e)}});return i}),define("app/modules/topics-views/models/model-slider",["require","underscore","jquery","backbone"],function(e){var t=e("underscore"),n=e("jquery"),r=e("backbone"),i=r.Model.extend({defaults:{type:"",eyebrow:"",title:"",description:"",img_before:"",img_after:"",image_before_credit_title:"",image_before_credit_attribution:"",image_before_credit_url:"",image_after_credit_title:"",image_after_credit_attribution:"",image_after_credit_url:""},parse:function(e){return this.attributes.id=this.cid,this.attributes.img_before=e.image_before.url,this.attributes.img_after=e.image_after.url,e},initialize:function(e){this.parse(e)}});return i}),define("app/modules/topics-views/models/model-factoid",["require","underscore","jquery","backbone"],function(e){var t=e("underscore"),n=e("jquery"),r=e("backbone"),i=r.Model.extend({defaults:{type:"",eyebrow:"",title:"",facts:[],fact_1_title:"",fact_1_title_font_size:"",fact_1_text:"",fact_1_image:"",fact_1_credit_title:"",fact_1_credit_attribution:"",fact_1_credit_url:"",fact_2_title:"",fact_2_title_font_size:"",fact_2_text:"",fact_2_image:"",fact_2_credit_title:"",fact_2_credit_attribution:"",fact_2_credit_url:"",fact_3_title:"",fact_3_title_font_size:"",fact_3_text:"",fact_3_image:"",fact_3_credit_title:"",fact_3_credit_attribution:"",fact_3_credit_url:""},parse:function(e){return this.attributes.id=this.cid,console.log("response in FACTOID model is ",this,e),e},initialize:function(e){this.parse(e)}});return i}),define("app/modules/topics-views/models/model-credits",["require","underscore","jquery","backbone"],function(e){var t=e("underscore"),n=e("jquery"),r=e("backbone"),i=r.Model.extend({defaults:{title:"",attribution:"",url:"",footnotes:[],type:"text",image:""},parse:function(e){return e.image!=undefined&&e.overlay==undefined&&e.isNotGallery==undefined&&e.acf_fc_layout!="section"?(this.attributes.title=e.credit_title,this.attributes.attribution=e.credit_attribution,this.attributes.url=e.credit_url,this.attributes.type="image",this.attributes.image=e.image.sizes.thumbnail):e.acf_fc_layout=="article"?this.parseArticle(e):e.acf_fc_layout=="section"?this.parseSection(e):e.overlay!=undefined?this.parseTimelineItem(e):e.acf_fc_layout=="fullscreen_video"&&this.parseFullscreenVideo(e),e},parseFullscreenVideo:function(e){var t=e;this.attributes.title=t.video_credit_title,this.attributes.attribution=t.video_credit_attribution,this.attributes.url=t.video_credit_url,this.attributes.type="image",t.video_posterframe!==undefined&&t.video_posterframe.sizes!==undefined&&(this.attributes.image=t.video_posterframe.sizes.thumbnail)},parseTimelineItem:function(e){var t=e;this.attributes.title=t.credit_title,this.attributes.attribution=t.credit_attribution,this.attributes.url=t.credit_url,this.attributes.type="image",this.attributes.image=t.overlay.sizes.thumbnail},parseSection:function(e){var t=e;this.attributes.title=t.image_credit_title,this.attributes.attribution=t.image_credit_attribution,this.attributes.url=t.image_credit_url,this.attributes.type="image",this.attributes.image=t.image.sizes.thumbnail},parseArticle:function(e){var n=e.content_type,r=e;this.attributes.title=r.content_credit_title,this.attributes.attribution=r.content_credit_attribution,this.attributes.url=r.content_credit_url,this.attributes.type="image",n!=="Image"?t.has(r.content_video_posterframe,"sizes")===!0?this.attributes.image=r.content_video_posterframe.sizes.thumbnail:this.attributes.image="":n==="Image"?this.attributes.image=r.content_image.sizes.thumbnail:this.attributes.image="assets/images/proxy.jpg"},getThumbnail:function(e){return e.indexOf(".jpg")>10?e.slice(0,-4)+"-160x90.jpg":e.indexOf(".png")>10?e.slice(0,-4)+"-160x90.png":e},initialize:function(e){this.parse(e)}});return i}),define("app/modules/topics-views/models/model-next-topic",["require","underscore","jquery","backbone"],function(e){var t=e("underscore"),n=e("jquery"),r=e("backbone"),i=r.Model.extend({defaults:{type:"nexttopic",eyebrow:"",title:"",topic_video_loop:"",next_eyebrow:"",next_title:"",next_url:"",credits:[]},parse:function(e){return this.attributes.id=this.cid,e},initialize:function(e){this.parse(e)}});return i}),define("app/data/topics-item-collection",["require","app/base-classes/base-collection","backbone","app/modules/topics-views/models/model-intro","app/modules/topics-views/models/model-section","app/modules/topics-views/models/model-article","app/modules/topics-views/models/model-gallery","app/modules/topics-views/models/model-hotspots","app/modules/topics-views/models/model-timeline","app/modules/topics-views/models/model-slider","app/modules/topics-views/models/model-factoid","app/modules/topics-views/models/model-credits","app/modules/topics-views/models/model-next-topic"],function(e){var t=e("app/base-classes/base-collection"),n=e("backbone"),r=e("app/modules/topics-views/models/model-intro"),i=e("app/modules/topics-views/models/model-section"),s=e("app/modules/topics-views/models/model-article"),o=e("app/modules/topics-views/models/model-gallery"),u=e("app/modules/topics-views/models/model-hotspots"),a=e("app/modules/topics-views/models/model-timeline"),f=e("app/modules/topics-views/models/model-slider"),l=e("app/modules/topics-views/models/model-factoid"),c=e("app/modules/topics-views/models/model-credits"),h=e("app/modules/topics-views/models/model-next-topic"),p=t.extend({url:"",initialize:function(e){this.debug=!1,this.init(),this.console.log("collection topics item ",e)},model:function(e,t){_.has(e,"acf_fc_layout")==1&&(e.type=e.acf_fc_layout);if(e.type=="intro")return new r(e,t);if(e.type=="section")return new i(e,t);if(e.type=="article")return new s(e,t);if(e.type=="gallery")return new o(e,t);if(e.type=="hotspots")return new u(e,t);if(e.type=="timeline")return new a(e,t);if(e.type=="slider")return new f(e,t);if(e.type=="credits")return new c(e,t);if(e.type=="factoid")return new l(e,t)},getAllSourcesAndCredits:function(){var e=[],t,n=function(n,r){n.get("footnotes")!=undefined&&(t=new c(n.toJSON()),e.push(t.toJSON())),this.console.log("e and k is ",n.get("footnotes"),n.get("content_caption"))};return _.each(this.models,n.bind(this)),e},getNextTopicModel:function(){var e={eyebrow:this.topic_eyebrow,title:this.topic_title,next_eyebrow:this.topic_next_eyebrow,next_title:this.topic_next_title,next_url:this.topic_next_url,credits:this.getAllSourcesAndCredits()},t=new h(e);return t},parse:function(e){return this.console.log("parsing is happening ",e),this.topic_num=e.topic_num,this.topic_eyebrow=e.topic_eyebrow,this.topic_title=e.topic_title,this.topic_description=e.topic_description,this.topic_url=e.topic_url,this.topic_next_num=e.topic_next_num,this.topic_next_eyebrow=e.topic_next_eyebrow,this.topic_next_title=e.topic_next_title,this.topic_next_url=e.topic_next_url,e.pages}});return p}),define("app/modules/articles-views/models/model-intro",["require","underscore","jquery","backbone"],function(e){var t=e("underscore"),n=e("jquery"),r=e("backbone"),i=r.Model.extend({defaults:{type:"",eyebrow:"",title:"",description:"",url:"",menu_color:""},parse:function(e){return this.attributes.id=this.cid,e},initialize:function(e){this.parse(e)}});return i}),define("app/modules/articles
1-views/models/model-section",["require","underscore","jquery","backbone"],function(e){var t=e("underscore"),n=e("jquery"),r=e("backbone"),i=r.Model.extend({defaults:{type:"",eyebrow:"",title:"",description:"",url:"",menu_color:"",image_credit_title:"",image_credit_attribution:"",image_credit_url:""},parse:function(e){return this.attributes.id=this.cid,this.attributes.url=e.image.url,e},initialize:function(e){this.parse(e)}});return i}),define("app/modules/articles-views/models/model-article",["require","underscore","jquery","backbone"],function(e){var t=e("underscore"),n=e("jquery"),r=e("backbone"),i=r.Model.extend({defaults:{type:"",subtype:"",eyebrow:"",title:"",text:"",soundcloud:"",content_type:"",content_url:"",content_caption:"",content_credit_title:"",content_credit_attribution:"",content_credit_url:"",footnotes:""},parse:function(e){return this.attributes.id=this.cid,e.content_type=="Image"?this.attributes.content_url=e.content_image.url:e.content_type=="Video"?(this.attributes.content_url=e.content_video,this.attributes.content_vidoe_id=e.content_video_id):e.content_type=="Loop"&&(this.attributes.content_url=e.content_loop,this.attributes.content_video_id=e.content_loop_id),e},initialize:function(e){this.parse(e)}});return i}),define("app/modules/articles-views/models/model-gallery",["require","underscore","jquery","backbone"],function(e){var t=e("underscore"),n=e("jquery"),r=e("backbone"),i=r.Model.extend({defaults:{type:"",main_title:"",main_description:"",selected:-1,selectedContent:"{}",eyebrow:"",title:"",content:[],gallery_items:[],dir:1},parse:function(e){return this.attributes.id=this.cid,this.allowIteration=!0,this.arrLength=e.gallery_items.length,e},throttleIterator:function(){this.allowIteration=!1;var e=function(){this.allowIteration=!0};window.setTimeout(e.bind(this),500)},resetModel:function(){this.attributes.selected=-1},getSelectedContent:function(e){if(this.allowIteration==1){e<-1&&e>1&&console.error("NG");var t=e+this.attributes.selected;return t>=this.arrLength?t=0:t<0&&(t=this.arrLength-1),this.set({selected:t,dir:e,selectedContent:this.attributes.gallery_items[t],main_title:this.attributes.title,main_description:this.attributes.text}),this.trigger("GALLERY_UPDATE_EVENT",this.attributes),this.throttleIterator(),this.get("selectedContent")}this.throttleIterator()},initialize:function(e){this.parse(e)}});return i}),define("app/modules/articles-views/models/model-hotspots",["require","underscore","jquery","backbone"],function(e){var t=e("underscore"),n=e("jquery"),r=e("backbone"),i=r.Model.extend({defaults:{type:"",eyebrow:"",title:"",description:"",thinglink:""},parse:function(e){return this.attributes.id=this.cid,e},initialize:function(e){this.parse(e)}});return i}),define("app/modules/articles-views/models/model-timeline",["require","underscore","jquery","backbone"],function(e){var t=e("underscore"),n=e("jquery"),r=e("backbone"),i=r.Model.extend({defaults:{type:"",title:"",content:""},parse:function(e){return this.attributes.id=this.cid,e},initialize:function(e){this.parse(e)}});return i}),define("app/modules/articles-views/models/model-slider",["require","underscore","jquery","backbone"],function(e){var t=e("underscore"),n=e("jquery"),r=e("backbone"),i=r.Model.extend({defaults:{type:"",eyebrow:"",title:"",description:"",img_before:"",img_after:"",image_before_credit_title:"",image_before_credit_attribution:"",image_before_credit_url:"",image_after_credit_title:"",image_after_credit_attribution:"",image_after_credit_url:""},parse:function(e){return this.attributes.id=this.cid,this.attributes.img_before=e.image_before.url,this.attributes.img_after=e.image_after.url,e},initialize:function(e){this.parse(e)}});return i}),define("app/modules/articles-views/models/model-factoid",["require","underscore","jquery","backbone"],function(e){var t=e("underscore"),n=e("jquery"),r=e("backbone"),i=r.Model.extend({defaults:{type:"",eyebrow:"",title:"",facts:[],fact_1_title:"",fact_1_title_font_size:"",fact_1_text:"",fact_1_image:"",fact_1_credit_title:"",fact_1_credit_attribution:"",fact_1_credit_url:"",fact_2_title:"",fact_2_title_font_size:"",fact_2_text:"",fact_2_image:"",fact_2_credit_title:"",fact_2_credit_attribution:"",fact_2_credit_url:"",fact_3_title:"",fact_3_title_font_size:"",fact_3_text:"",fact_3_image:"",fact_3_credit_title:"",fact_3_credit_attribution:"",fact_3_credit_url:""},parse:function(e){return this.attributes.id=this.cid,console.log("response in FACTOID model is ",this,e),e},initialize:function(e){this.parse(e)}});return i}),define("app/modules/articles-views/models/model-credits",["require","underscore","jquery","backbone"],function(e){var t=e("underscore"),n=e("jquery"),r=e("backbone"),i=r.Model.extend({defaults:{title:"",attribution:"",url:"",footnotes:[],type:"text",image:""},parse:function(e){return e.image!=undefined&&e.overlay==undefined&&e.isNotGallery==undefined&&e.acf_fc_layout!="section"?(this.attributes.title=e.credit_title,this.attributes.attribution=e.credit_attribution,this.attributes.url=e.credit_url,this.attributes.type="image",this.attributes.image=e.image.sizes.thumbnail):e.acf_fc_layout=="article"?this.parseArticle(e):e.acf_fc_layout=="section"?this.parseSection(e):e.overlay!=undefined?this.parseTimelineItem(e):e.acf_fc_layout=="fullscreen_video"&&this.parseFullscreenVideo(e),e},parseFullscreenVideo:function(e){var t=e;this.attributes.title=t.video_credit_title,this.attributes.attribution=t.video_credit_attribution,this.attributes.url=t.video_credit_url,this.attributes.type="image",t.video_posterframe!==undefined&&t.video_posterframe.sizes!==undefined&&(this.attributes.image=t.video_posterframe.sizes.thumbnail)},parseTimelineItem:function(e){var t=e;this.attributes.title=t.credit_title,this.attributes.attribution=t.credit_attribution,this.attributes.url=t.credit_url,this.attributes.type="image",this.attributes.image=t.overlay.sizes.thumbnail},parseSection:function(e){var t=e;this.attributes.title=t.image_credit_title,this.attributes.attribution=t.image_credit_attribution,this.attributes.url=t.image_credit_url,this.attributes.type="image",this.attributes.image=t.image.sizes.thumbnail},parseArticle:function(e){var n=e.content_type,r=e;this.attributes.title=r.content_credit_title,this.attributes.attribution=r.content_credit_attribution,this.attributes.url=r.content_credit_url,this.attributes.type="image",n!=="Image"?t.has(r.content_video_posterframe,"sizes")===!0?this.attributes.image=r.content_video_posterframe.sizes.thumbnail:this.attributes.image="":n==="Image"?this.attributes.image=r.content_image.sizes.thumbnail:this.attributes.image="assets/images/proxy.jpg"},getThumbnail:function(e){return e.indexOf(".jpg")>10?e.slice(0,-4)+"-160x90.jpg":e.indexOf(".png")>10?e.slice(0,-4)+"-160x90.png":e},initialize:function(e){this.parse(e)}});return i}),define("app/modules/articles-views/models/model-next-topic",["require","underscore","jquery","backbone"],function(e){var t=e("underscore"),n=e("jquery"),r=e("backbone"),i=r.Model.extend({defaults:{type:"nexttopic",eyebrow:"",title:"",topic_video_loop:"",topic_video_loop_id:"",next_eyebrow:"",next_title:"",next_url:"",credits:[]},parse:function(e){return this.attributes.id=this.cid,e},initialize:function(e){this.parse(e)}});return i}),define("app/data/articles-item-collection",["require","app/base-classes/base-collection","backbone","app/modules/articles-views/models/model-intro","app/modules/articles-views/models/model-section","app/modules/articles-views/models/model-article","app/modules/articles-views/models/model-gallery","app/modules/articles-views/models/model-hotspots","app/modules/articles-views/models/model-timeline","app/modules/articles-views/models/model-slider","app/modules/articles-views/models/model-factoid","app/modules/articles-views/models/model-credits","app/modules/articles-views/models/model-next-topic"],function(e){var t=e("app/base-classes/base-collection"),n=e("backbone"),r=e("app/modules/articles-views/models/model-intro"),i=e("app/modules/articles-views/models/model-section"),s=e("app/modules/articles-views/models/model-article"),o=e("app/modules/articles-views/models/model-gallery"),u=e("app/modules/articles-views/models/model-hotspots"),a=e("app/modules/articles-views/models/model-timeline"),f=e("app/modules/articles-views/models/model-slider"),l=e("app/modules/articles-views/models/model-factoid"),c=e("app/modules/articles-views/models/model-credits");ModelNextTopic=e("app/modules/articles-views/models/model-next-topic");var h=t.extend({url:"",initialize:function(e){this.debug=!1,this.init(),this.console.log("collection articles item ",e)},model:function(e,t){_.has(e,"acf_fc_layout")==1&&(e.type=e.acf_fc_layout);if(e.type=="intro")return new r(e,t);if(e.type=="section")return new i(e,t);if(e.type=="article")return new s(e,t);if(e.type=="gallery")return new o(e,t);if(e.type=="hotspots")return new u(e,t);if(e.type=="timeline")return new a(e,t);if(e.type=="slider")return new f(e,t);if(e.type=="credits")return new c(e,t);if(e.type=="factoid")return new l(e,t)},getAllSourcesAndCredits:function(){var e=[],t,n=function(n,r){n.get("footnotes")!=undefined&&(t=new c(n.toJSON()),e.push(t.toJSON())),this.console.log("e and k is ",n.get("footnotes"),n.get("content_caption"))};return _.each(this.models,n.bind(this)),e},getNextTopicModel:function(){var e={eyebrow:this.topic_eyebrow,title:this.topic_title,next_eyebrow:this.topic_next_eyebrow,next_title:this.topic_next_title,next_url:this.topic_next_url,credits:this.getAllSourcesAndCredits()},t=new ModelNextTopic(e);return t},parse:function(e){return this.console.log("parsing is happening ",e),this.topic_num=e.topic_num,this.topic_eyebrow=e.topic_eyebrow,this.topic_title=e.topic_title,this.topic_description=e.topic_description,this.topic_url=e.topic_url,this.topic_next_num=e.topic_next_num,this.topic_next_eyebrow=e.topic_next_eyebrow,this.topic_next_title=e.topic_next_title,this.topic_next_url=e.topic_next_url,e.pages}});return h}),define("app/data-controller",["require","underscore","jquery","backbone","app/utils/event-mixins","app/app-events","app/data/state-model","app/data/domains-model","app/data/ui-text-model","app/data/episodes-collection","app/data/topics-collection","app/data/user-data-collection","app/data/ga-episodes-model","app/data/topics-item-collection","app/data/articles-item-collection"],function(e){var t=e("underscore"),n=e("jquery"),r=e("backbone"),i=e("app/utils/event-mixins"),s=e("app/app-events"),o=e("app/data/state-model"),u=e("app/data/domains-model"),a=e("app/data/ui-text-model"),f=e("app/data/episodes-collection"),l=e("app/data/topics-collection"),c=e("app/data/user-data-collection"),h=e("app/data/ga-episodes-model"),p=e("app/data/topics-item-collection"),d=e("app/data/articles-item-collection"),v=r.View.extend({initialize:function(){this.debug=!0,this.setDebugEnv(),boeing_globals.episodes_length=8,boeing_globals.userdata=this.getBoeingUserData(),this.langCode=boeing_globals.selectedLanguage,this.getLangSetup(),this.uiTextModel=new a,this.episodesCollection=new f,this.topicsCollection=new l,this.userDataCollection=new c,this.state=new o,window.boeing_globals.state=this.state,window.boeing_globals.userDataCollection=this.userDataCollection,this.formatEventData=i.formatEventData,s.on("STATE_UPDATE_EVENT",this.onStateUpdate.bind(this)),this.listenTo(s,"BREAKPOINT_EVENT",this.onBreakpointUpdate.bind(this)),this.cdnPath="assets/data/",this.languagesPath="translations/",boeing_globals.cdnPath=this.cdnPath,boeing_globals.languagesPath=this.languagesPath,this.fetchUIText(),this.domainsModel=new u,boeing_globals.domainsModel=this.domainsModel},getLangSetup:function(){var e={ar:"ar",en:"en",fr:"fr",de:"de",hi:"hi",id:"id",it:"it",jp:"ja",kr:"ko",ms:"ms",pt:"pt",ru:"ru",es:"es",sg:"zh",th:"th",tr:"tr",vi:"vi",zh:"zh","zh-TW":"zh"};this.captionLangArr=["en","fr","de","hi","id","it","jp","kr","ms","pt","ru","es","th","tr","vi"],boeing_globals.allowCaptionsForLang=this.captionLangArr.indexOf(this.langCode)>=0,boeing_globals.isoLangCode=e[this.langCode]},fetchUIText:function(){var e=this.getAdditionalTextUrl();this.uiTextModel.fetch({url:e,success:this.onUITextSuccess.bind(this),error:function(e){console.log("error ui ",e)}})},onUITextSuccess:function(e){e.dataType="uiText",boeing_globals.uiTextModel=this.uiTextModel,this.fetchEpisodesCollection()},fetchEpisodesCollection:function(){this.episodesCollection.fetch({url:this.getEpisodesJsonUrl(),success:this.onEpisodesSuccess.bind(this),error:function(e){this.console.log("complete ",e)}})},setDebugEnv:function(){this.console={log:function(){}},this.debug!=undefined&&this.debug==1&&(this.console=window.console)},onBreakpointUpdate:function(e){this.state.set({orientation:e.value})},loadTopicsData:function(){var e=this.getTopicsJsonUrl(),n=["//boeing-site.com","dev.ageofaerospace.com","boeing-ageofaerospace.com","dev-ageofaerospace.newairplane.com","ageofaerospace.newairplane.com","ageofaerospace.com","theageofaerospace.com"];t.contains(n,window.location.hostname)==1,this.topicsCollection.fetch({url:e,success:this.onTopicsSuccess.bind(this),error:function(e){this.console.log("complete ",e)}})},loadTopicItem:function(){this.console.log("load topic item "),this.topicItemCollection=new p,this.topicItemCollection.fetch({url:"assets/data/topics-item-test.json",success:this.onTopicItemSuccess.bind(this),error:function(e){}})},loadArticleData:function(){console.log("load article item "),this.articleItemCollection=new d},remove360VideoFromMobile:function(){var e=boeing_globals.topicsCollection.where({menu_title:"Satellite and Rocket Evolution"})[0];e&&(e.attributes.pages.splice(11,1),console.log("removed 360 video ",e.toJSON()))},onTopicItemSuccess:function(e){this.console.log("topic item is loaded ",e),boeing_globals.topic_item=this.topicItemCollection,e.dataType="topic_item";var t=this.formatEventData("DATA_LOADED_EVENT",e);this.console.log("onTopicItemSuccess: ",t),this.trigger("DATACONTROLLER_EVENT",t)}
1,onTopicsSuccess:function(e){boeing_globals.topicsCollection=this.topicsCollection,e.dataType="topics";var t=function(e,t){e.attributes.num=t},n=function(e,t){var n=e.attributes.menu_title,r=e.attributes.topic_episode_number,i=e.attributes.num,s=e.attributes.image.sizes.medium;if(e.attributes.chapter_popups!=0)for(var o=0;o<e.attributes.chapter_popups.length;o++)e.attributes.chapter_popups[o].topic_title=n,e.attributes.chapter_popups[o].topic_num=i,e.attributes.chapter_popups[o].topic_image=s,e.attributes.chapter_popups[o].episode_number=r,e.attributes.chapter_popups[o].time=Math.ceil(e.attributes.chapter_popups[o].popup_time_start)};if(boeing_globals.selectedLanguage=="jp"){var r=this.topicsCollection.at(8);this.topicsCollection.remove(r),this.console.log(" AIR TOPIC REMOVE ",this.topicsCollection.length)}this.topicsCollection.each(t),this.topicsCollection.each(n);var i=this.formatEventData("DATA_LOADED_EVENT",e);this.trigger("DATACONTROLLER_EVENT",i),boeing_globals.isTouchDevice===!0&&this.remove360VideoFromMobile()},onStateUpdate:function(e){this.console.log("state being updated from router on data controller ",e,t.has(e,"currentPage"));var n=this.setPlayerState(e);this.updatePage(e)},setPlayerState:function(e){var n=e,r=t.has(e,"currentChapter"),i=t.has(e,"currentEpisode");if(t.any([r,i])==1){var s=window.location.pathname,o=s.indexOf("topic")>3;this.console.log("THIS TOPIC IN WINDOW PATH IS ",s,o),o==0&&(n.currentPage="player")}return n},updatePage:function(e){var n=function(e,t){this.state.has(t)&&this.state.set(t,e)};this.state.get("currentPage")==""&&(this.console.log("Current page empty, go to home page"),e.currentPage="home"),this.console.log("DATA CONTROLLER STATE UPDATING IS ",e),this.state.set(e),t.each(e,n.bind(this))},formatChapters:function(){var e=function(e,n){var r="unviewed";t.has(e,"chapter_time")&&(r="viewed"),e.num=n+1,e.viewed_class=r},n=function(n,r){if(n.has("chapters")){var i=n.get("chapters");t.each(i,e.bind(this)),n.set("chapters",i)}};this.episodesCollection.each(n.bind(this))},loadGAEpisodesData:function(){var e=new h;e.initialize(),boeing_globals.gaEpisodesStr=e.getObserver();var t=boeing_globals.gaEpisodesStr;t.subscribe(function(e){boeing_globals.gaEpisodesData=e.episodes})},onEpisodesSuccess:function(e){this.formatChapters(),e.dataType="episodes";var t=this.formatEventData("DATA_LOADED_EVENT",e);boeing_globals.episodesCollection=this.episodesCollection;if(boeing_globals.selectedLanguage=="jp"){var n=this.episodesCollection.at(1),r=n.get("chapters");n.attributes.chapters=r.slice(0,6)}this.trigger("DATACONTROLLER_EVENT",t),this.loadTopicsData(),this.loadGAEpisodesData()},getEpisodesData:function(){return this.episodesCollection},getEpisodesJsonUrl:function(){var e={en:"episodes-english.json",ar:"episodes-arabic.json",fr:"episodes-french.json",de:"episodes-german.json",hi:"episodes-hindi.json",id:"episodes-indonesian.json",it:"episodes-italian.json",jp:"episodes-japanese.json",kr:"episodes-korean.json",ms:"episodes-malay.json",pt:"episodes-portuguese.json",ru:"episodes-russian.json",zh:"episodes-chinese.json","zh-TW":"episodes-chinese-traditional.json",sg:"episodes-singapore.json",es:"episodes-spanish.json",th:"episodes-thai.json",tr:"episodes-turkish.json",vi:"episodes-vietnamese.json"},t=e[this.langCode],n=this.cdnPath+this.languagesPath+"episodes/",r="assets/data/translations/episodes/",i=n+t;return boeing_globals.gaEpisodesJsonUrl=n+e.en,i},getTopicsJsonUrl:function(){var e="assets/data/translations/topics/",t=this.cdnPath+this.languagesPath+"topics/";t=e;var n="boeing_topics_v2_",r=boeing_globals.selectedLanguage;return t+n+r+".json"},getArticleJsonUrl:function(){var e="assets/data/",t=this.cdnPath+this.languagesPath+"topics/";t=e;var n="article_data",r=boeing_globals.selectedLanguage;return t+n+".json"},getAdditionalTextUrl:function(){var e="assets/data/translations/additional/",t=this.cdnPath+this.languagesPath+"additional/";t=e;var n="additional-text-",r=boeing_globals.selectedLanguage;return t+n+r+".json"},getBoeingUserData:function(){var e=[],n=boeing_globals.episodes_length,r=String(localStorage.getItem("boeingChapter
1LengthsArr")).split(","),i=function(e){var t=JSON.parse(window.localStorage.getItem("chaptersDurationArr")),n=[];return t!==null&&t[e]!==null&&(n=t[e]),n},s=function(e){return r!==null||r!==undefined?r[e]*1:9},o=function(e){},u=JSON.parse(window.localStorage.getItem("boeingUserData")),a=function(e){var n={episode_num:e,episode_duration:0,episode_length:s(e),chapterDurationsArr:i(e),viewed_chapters:[],viewed_percentage:0,last_viewed_time:"",last_chapter_viewed:0};return u!==null&&u[e]!==undefined&&(u[e].episode_length===null&&(u[e].episode_length=n.episode_length),u[e].chapterDurationsArr!==undefined&&u[e].chapterDurationsArr.length<=1&&(u[e].chapterDurationsArr=n.chapterDurationsArr),n=t.extend(n,u[e])),n},f=t.range(0,8);return e=t.map(f,a.bind(this)),window.localStorage.setItem("boeingUserData",JSON.stringify(e)),e}});return v}),define("app/modules/home/events",["require","underscore","backbone"],function(e,t,n){var r={init:function(){this.oldAccordion=-1,this.accordion=0},sendTestEvent:function(){var e=function(){this.trigger("TESTER_EVENT"),console.log("EVENT SENT ")};window.setTimeout(e.bind(this),5e3)},onSubviewEvent:function(e){this.trigger("SUBVIEW_EVENT",e)},onPagesHolderEvent:function(e){this.trigger("PAGES_HOLDER_EVENT",e)},onLaunchTopicWindowEvent:function(e){this.trigger("LAUNCH_MODAL_TOPIC_WINDOW_EVENT",e)},onRemoveMobileSubviewsEvent:function(e){this.trigger("REMOVE_MOBILE_SUBVIEWS_EVENT",e)},onRemoveSubviews:function(e){this.trigger("REMOVE_SUBVIEWS_EVENT",e)},onRemoveDesktopSubviewsEvent:function(e){this.trigger("REMOVE_DESKTOP_SUBVIEWS_EVENT",e)},onAccordionSectionClicked:function(e){this.accordion=e;var t=this.accordion==this.oldAccordion;t==1&&(this.accordion=-1);var n={num:e};this.oldAccordion=this.accordion,this.trigger("EPISODE_THUMB_CLICKED_EVENT",n)},onResetEpisodesEvent:function(e){this.trigger("RESET_EPISODES_EVENT")},onLaunchPlayerEvent:function(e){this.trigger("LAUNCH_PLAYER_EVENT",e)},onIncDecEpisodesEvent:function(e){this.trigger("INC_DEC_EPISODES_EVENT",e)},getEpisodesArr:function(e){var t=e,n=function(e){var t=boeing_globals.episodes_length-1,n=0;return e>t?n:e<n?t:e};return[n(t-1),t,n(t+1)]},getMenuEpisodeData:function(e){var t=boeing_globals.state.get("currentMenuEpisodeNumber"),n=t===null||t*1===0,r=this.getEpisodesArr(e),i=e-t*1>=1,s=i===!0?1:-1},onEpisodeThumbClicked:function(e){var t={currentMenuEpisodeNumber:e.num};this.trigger("UPDATE_EPISODE_EVENT",t)},onThumbClick:function(e){this.trigger("THUMB_CLICKED_EVENT",e)}};return t.extend(r,n.Events),r}),define("app/base-classes/view-controller",["require","underscore","jquery","app/app-events","app/utils/event-mixins","backbone"],function(e){var t=e("underscore"),n=e("jquery"),r=e("app/app-events"),i=e("app/utils/event-mixins"),s=e("backbone"),o=s.View.extend({init:function(){this.setDebugEnv(),this.deepLinked=!1,this.collections={},this.isMobile=window.boeing_globals.device=="mobile",this.stateModel=window.boeing_globals.state,this.AppEvents=r,r.on("DATA_LOADED_EVENT",this.onDataLoaded.bind(this)),r.on("STATE_CHANGED_EVENT",this.onStateChangedEvent.bind(this)),r.on("MEDIA_EVENT",this.onGlobalMediaEvent.bind(this)),r.on("BREAKPOINT_EVENT",this.onBreakpointEvent.bind(this)),this.formatEventData=i.formatEventData},setDebugEnv:function(){this.console={log:function(){}},this.debug!==undefined&&this.debug===!0&&(this.console=window.console)},onGlobalMediaEvent:function(e){},onBreakpointEvent:function(e){this.trigger("BREAKPOINT_EVENT",e)},onDataLoaded:function(e){var t=e.dataType;this.mainCollectionType==undefined&&(this.mainCollectionType="episodes"),this.collections[t]=e,t==this.mainCollectionType&&(this.collection=e,this.collectionLoaded=!0,this.updateStateFromDataLoad(e))},showModuleBool:function(e){this.currentPage=boeing_globals.state.get("currentPage"),this.loadMenu=boeing_globals.state.get("loadMenu");var n=this.currentPage==this.pageId,r=this.loadMenu==0;e!=undefined&&e==1&&(n=this.currentPage==this.pageId||this.currentPage=="topics");var i=[n],s=t.every(i);return s},isStateChangeBool:function(){var e=t.has(this.changed,"currentPage")==1,n=t.has(this.changed,"loadMenu")==1,r=t.any([e,n]);return r},onStateChangedEvent:function(e){this.console.log("onStateChangedEvent",e),this.state=e,this.changed=this.state.changed,this.onStateChanged(e)}});return o}
1),function(t,n){typeof exports=="object"&&exports&&typeof exports.nodeName!="string"?n(exports):typeof define=="function"&&define.amd?define("mustache",["exports"],n):(t.Mustache={},n(Mustache))}(this,function(t){function i(e){return typeof e=="function"}function s(e){return r(e)?"array":typeof e}function o(e){return e.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}function u(e,t){return e!=null&&typeof e=="object"&&t in e}function f(e,t){return a.call(e,t)}function c(e){return!f(l,e)}function p(e){return String(e).replace(/[&<>"'\/]/g,function(t){return h[t]})}function b(e,n){function l(){if(a&&!f)while(u.length)delete s[u.pop()];else u=[];a=!1,f=!1}function x(e){typeof e=="string"&&(e=e.split(v,2));if(!r(e)||e.length!==2)throw new Error("Invalid tags: "+e);h=new RegExp(o(e[0])+"\\s*"),p=new RegExp("\\s*"+o(e[1])),b=new RegExp("\\s*"+o("}"+e[1]))}if(!e)return[];var i=[],s=[],u=[],a=!1,f=!1,h,p,b;x(n||t.tags);var T=new S(e),N,C,k,L,A,O;while(!T.eos()){N=T.pos,k=T.scanUntil(h);if(k)for(var M=0,_=k.length;M<_;++M)L=k.charAt(M),c(L)?u.push(s.length):f=!0,s.push(["text",L,N,N+1]),N+=1,L==="\n"&&l();if(!T.scan(h))break;a=!0,C=T.scan(y)||"name",T.scan(d),C==="="?(k=T.scanUntil(m),T.scan(m),T.scanUntil(p)):C==="{"?(k=T.scanUntil(b),T.scan(g),T.scanUntil(p),C="&"):k=T.scanUntil(p);
1if(!T.scan(p))throw new Error("Unclosed tag at "+T.pos);A=[C,k,N,T.pos],s.push(A);if(C==="#"||C==="^")i.push(A);else if(C==="/"){O=i.pop();if(!O)throw new Error('Unopened section "'+k+'" at '+N);if(O[1]!==k)throw new Error('Unclosed section "'+O[1]+'" at '+N)}else C==="name"||C==="{"||C==="&"?f=!0:C==="="&&x(k)}O=i.pop();if(O)throw new Error('Unclosed section "'+O[1]+'" at '+T.pos);return E(w(s))}function w(e){var t=[],n,r;for(var i=0,s=e.length;i<s;++i)n=e[i],n&&(n[0]==="text"&&r&&r[0]==="text"?(r[1]+=n[1],r[3]=n[3]):(t.push(n),r=n));return t}function E(e){var t=[],n=t,r=[],i,s;for(var o=0,u=e.length;o<u;++o){i=e[o];switch(i[0]){case"#":case"^":n.push(i),r.push(i),n=i[4]=[];break;case"/":s=r.pop(),s[5]=i[2],n=r.length>0?r[r.length-1][4]:t;break;default:n.push(i)}}return t}function S(e){this.string=e,this.tail=e,this.pos=0}function x(e,t){this.view=e,this.cache={".":this.view},this.parent=t}function T(){this.cache={}}var n=Object.prototype.toString,r=Array.isArray||function(t){return n.call(t)==="[object Array]"},a=RegExp.prototype.test,l=/\S/,h={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"},d=/\s*/,v=/\s+/,m=/\s*=/,g=/\s*\}/,y=/#|\^|\/|>|\{|&|=|!/;S.prototype.eos=function(){return this.tail===""},S.prototype.scan=function(t){var n=this.tail.match(t);if(!n||n.index!==0)return"";var r=n[0];return this.tail=this.tail.substring(r.length),this.pos+=r.length,r},S.prototype.scanUntil=function(t){var n=this.tail.search(t),r;switch(n){case-1:r=this.tail,this.tail="";break;case 0:r="";break;default:r=this.tail.substring(0,n),this.tail=this.tail.substring(n)}return this.pos+=r.length,r},x.prototype.push=function(t){return new x(t,this)},x.prototype.lookup=function(t){var n=this.cache,r;if(n.hasOwnProperty(t))r=n[t];else{var s=this,o,a,f=!1;while(s){if(t.indexOf(".")>0){r=s.view,o=t.split("."),a=0;while(r!=null&&a<o.length)a===o.length-1&&(f=u(r,o[a])),r=r[o[a++]]}else r=s.view[t],f=u(s.view,t);if(f)break;s=s.parent}n[t]=r}return i(r)&&(r=r.call(this.view)),r},T.prototype.clearCache=function(){this.cache={}},T.prototype.parse=function(t,n){var r=this.cache,i=r[t];return i==null&&(i=r[t]=b(t,n)),i},T.prototype.render=function(t,n,r){var i=this.parse(t),s=n instanceof x?n:new x(n);return this.renderTokens(i,s,r,t)},T.prototype.renderTokens=function(t,n,r,i){var s="",o,u,a;for(var f=0,l=t.length;f<l;++f)a=undefined,o=t[f],u=o[0],u==="#"?a=this.renderSection(o,n,r,i):u==="^"?a=this.renderInverted(o,n,r,i):u===">"?a=this.renderPartial(o,n,r,i):u==="&"?a=this.unescapedValue(o,n):u==="name"?a=this.escapedValue(o,n):u==="text"&&(a=this.rawValue(o)),a!==undefined&&(s+=a);return s},T.prototype.renderSection=function(t,n,s,o){function l(e){return u.render(e,n,s)}var u=this,a="",f=n.lookup(t[1]);if(!f)return;if(r(f))for(var c=0,h=f.length;c<h;++c)a+=this.renderTokens(t[4],n.push(f[c]),s,o);else if(typeof f=="object"||typeof f=="string"||typeof f=="number")a+=this.renderTokens(t[4],n.push(f),s,o);else if(i(f)){if(typeof o!="string")throw new Error("Cannot use higher-order sections without the original template");f=f.call(n.view,o.slice(t[3],t[5]),l),f!=null&&(a+=f)}else a+=this.renderTokens(t[4],n,s,o);return a},T.prototype.renderInverted=function(t,n,i,s){var o=n.lookup(t[1]);if(!o||r(o)&&o.length===0)return this.renderTokens(t[4],n,i,s)},T.prototype.renderPartial=function(t,n,r){if(!r)return;var s=i(r)?r(t[1]):r[t[1]];if(s!=null)return this.renderTokens(this.parse(s),n,r,s)},T.prototype.unescapedValue=function(t,n){var r=n.lookup(t[1]);if(r!=null)return r},T.prototype.escapedValue=function(n,r){var i=r.lookup(n[1]);if(i!=null)return t.escape(i)},T.prototype.rawValue=function(t){return t[1]},t.name="mustache.js",t.version="2.1.3",t.tags=["{{","}}"];var N=new T;t.clearCache=function(){return N.clearCache()},t.parse=function(t,n){return N.parse(t,n)},t.render=function(t,n,r){if(typeof t!="string")throw new TypeError('Invalid template! Template should be a "string" but "'+s(t)+'" was given as the first '+"argument for mustache#render(template, view, partials)");return N.render(t,n,r)},t.to_html=function(n,r,s,o){var u=t.render(n,r,s);if(!i(o))return u;o(u)},t.escape=p,t.Scanner=S,t.Context=x,t.Writer=T}),define("app/base-classes/base-view",["require","underscore","jquery","backbone","mustache","a
1pp/utils/ga-mixins","TweenMax"],function(e){var t=e("underscore"),n=e("jquery"),r=e("backbone"),i=e("mustache"),s=e("app/utils/ga-mixins"),o=e("TweenMax"),u=r.View.extend({init:function(){this.debug=!1,this.setDebugEnv(),this.isMobile=window.boeing_globals.device=="mobile",this.gaMixins=s,this.uiTextModel=boeing_globals.uiTextModel},setDebugEnv:function(){this.console={log:function(){}},this.debug!=undefined&&this.debug==1&&(this.console=window.console)},addUIFields:function(e){var n=function(e){this.model.attributes[e]=boeing_globals.uiTextModel.get(e)};t.each(e,n.bind(this))},addUIString:function(e,t){this.model.attributes[e]=boeing_globals.uiTextModel.get(t)}});return u}),define("text",["module"],function(e){"use strict";var t,n,r,i,s,o=["Msxml2.XMLHTTP","Microsoft.XMLHTTP","Msxml2.XMLHTTP.4.0"],u=/^\s*<\?xml(\s)+version=[\'\"](\d)*.(\d)*[\'\"](\s)*\?>/im,a=/<body[^>]*>\s*([\s\S]+)\s*<\/body>/im,f=typeof location!="undefined"&&location.href,l=f&&location.protocol&&location.protocol.replace(/\:/,""),c=f&&location.hostname,h=f&&(location.port||undefined),p={},d=e.config&&e.config()||{};t={version:"2.0.14",strip:function(e){if(e){e=e.replace(u,"");var t=e.match(a);t&&(e=t[1])}else e="";return e},jsEscape:function(e){return e.replace(/(['\\])/g,"\\$1").replace(/[\f]/g,"\\f").replace(/[\b]/g,"\\b").replace(/[\n]/g,"\\n").replace(/[\t]/g,"\\t").replace(/[\r]/g,"\\r").replace(/[\u2028]/g,"\\u2028").replace(/[\u2029]/g,"\\u2029")},createXhr:d.createXhr||function(){var e,t,n;if(typeof XMLHttpRequest!="undefined")return new XMLHttpRequest;if(typeof ActiveXObject!="undefined")for(t=0;t<3;t+=1){n=o[t];try{e=new ActiveXObject(n)}catch(r){}if(e){o=[n];break}}return e},parseName:function(e){var t,n,r,i=!1,s=e.lastIndexOf("."),o=e.indexOf("./")===0||e.indexOf("../")===0;return s!==-1&&(!o||s>1)?(t=e.substring(0,s),n=e.substring(s+1)):t=e,r=n||t,s=r.indexOf("!"),s!==-1&&(i=r.substring(s+1)==="strip",r=r.substring(0,s),n?n=r:t=r),{moduleName:t,ext:n,strip:i}},xdRegExp:/^((\w+)\:)?\/\/([^\/\\]+)/,useXhr:function(e,n,r,i){var s,o,u,a=t.xdRegExp.exec(e);return a?(s=a[2],o=a[3],o=o.split(":"),u=o[1],o=o[0],(!s||s===n)&&(!o||o.toLowerCase()===r.toLowerCase())&&(!u&&!o||u===i)):!0},finishLoad:function(e,n,r,i){r=n?t.strip(r):r,d.isBuild&&(p[e]=r),i(r)},load:function(e,n,r,i){if(i&&i.isBuild&&!i.inlineText){r();return}d.isBuild=i&&i.isBuild;var s=t.parseName(e),o=s.moduleName+(s.ext?"."+s.ext:""),u=n.toUrl(o),a=d.useXhr||t.useXhr;if(u.indexOf("empty:")===0){r();return}!f||a(u,l,c,h)?t.get(u,function(n){t.finishLoad(e,s.strip,n,r)},function(e){r.error&&r.error(e)}):n([o],function(e){t.finishLoad(s.moduleName+"."+s.ext,s.strip,e,r)})},write:function(e,n,r,i){if(p.hasOwnProperty(n)){var s=t.jsEscape(p[n]);r.asModule(e+"!"+n,"define(function () { return '"+s+"';});\n")}},writeFile:function(e,n,r,i,s){var o=t.parseName(n),u=o.ext?"."+o.ext:"",a=o.moduleName+u,f=r.toUrl(o.moduleName+u)+".js";t.load(a,r,function(n){var r=function(e){return i(f,e)};r.asModule=function(e,t){return i.asModule(e,f,t)},t.write(e,a,r,s)},s)}};if(d.env==="node"||!d.env&&typeof process!="undefined"&&process.versions&&!!process.versions.node&&!process.versions["node-webkit"]&&!process.versions["atom-shell"])n=require.nodeRequire("fs"),t.get=function(e,t,r){try{var i=n.readFileSync(e,"utf8");i[0]===""&&(i=i.substring(1)),t(i)}catch(s){r&&r(s)}};else if(d.env==="xhr"||!d.env&&t.createXhr())t.get=function(e,n,r,i){var s=t.createXhr(),o;s.open("GET",e,!0);if(i)for(o in i)i.hasOwnProperty(o)&&s.setRequestHeader(o.toLowerCase(),i[o]);d.onXhr&&d.onXhr(s,e),s.onreadystatechange=function(t){var i,o;s.readyState===4&&(i=s.status||0,i>399&&i<600?(o=new Error(e+" HTTP status: "+i),o.xhr=s,r&&r(o)):n(s.responseText),d.onXhrComplete&&d.onXhrComplete(s,e))},s.send(null)};else if(d.env==="rhino"||!d.env&&typeof Packages!="undefined"&&typeof java!="undefined")t.get=function(e,t){var n,r,i="utf-8",s=new java.io.File(e),o=java.lang.System.getProperty("line.separator"),u=new java.io.BufferedReader(new java.io.InputStreamReader(new java.io.FileInputStream(s),i)),a="";try{n=new java.lang.StringBuffer,r=u.readLine(),r&&r.length()&&r.charAt(0)===65279&&(r=r.substring(1)),r!==null&&n.append(r);while((r=u.readLine())!==null)n.append(o),n.append(r);a=String(n.toString())}finally{u.close()}t(a)};else if(d.env==="xpconnect"||!d.env&&typeof Components!="undefined"&&Components.classes&&Components.interfaces)r=Components.classes,i=Components.interfaces,Components.utils["import"]("resource://gre/modules/FileUtils.jsm"),s="@mozilla.org/windows-registry-key;1"in r,t.get=function(e,t){var n,o,u,a={};
1s&&(e=e.replace(/\//g,"\\")),u=new FileUtils.File(e);try{n=r["@mozilla.org/network/file-input-stream;1"].createInstance(i.nsIFileInputStream),n.init(u,1,0,!1),o=r["@mozilla.org/intl/converter-input-stream;1"].createInstance(i.nsIConverterInputStream),o.init(n,"utf-8",n.available(),i.nsIConverterInputStream.DEFAULT_REPLACEMENT_CHARACTER),o.readString(n.available(),a),o.close(),n.close(),t(a.value)}catch(f){throw new Error((u&&u.path||"")+": "+f)}};return t}),define("text!app/modules/home/views/templates/tmpl.html",[],function(){return'<ul id="home-content" class="list-content" >\n\n\n\n</ul>'}),define("text!app/modules/home/views/templates/episode-desktop-menu-tmpl.html",[],function(){return'<div class="desktop-menu">\n<h3>{{title}}</h3>\n<ol class=\'menu-view\'>\n\n    <li class="menu-section bars">\n        <div class="bar"></div>\n        <div class="scrub"></div>\n    </li>\n    <li class="menu-section numbers">\n        <ul class="numbers" >\n            {{#episodes}}\n                <li data-num="{{.}}" >{{.}}</li>\n            {{/episodes}}\n\n        </ul>\n    </li>\n</ol>\n\n</div>'}),define("app/modules/home/views/episode-desktop-menu-y2-view",["require","underscore","jquery","app/base-classes/base-view","text!app/modules/home/views/templates/episode-desktop-menu-tmpl.html","mustache"],function(e){var t=e("underscore"),n=e("jquery"),r=e("app/base-classes/base-view"),i=e("text!app/modules/home/views/templates/episode-desktop-menu-tmpl.html"),s=e("mustache"),o=r.extend({el:"#home-content",className:"desktop",tagName:"div",initialize:function(e,t,r){this.debug=!1,this.collection=t,this.Evt=e,this.userData=r,this.init(),this.listenTo(this.Evt,"REMOVE_DESKTOP_SUBVIEWS_EVENT",this.cleanUp.bind(this)),this.render(),n(this.el).addClass("desktop"),this.items=n("#home-content .list-thumbs-content li"),this.Evt.listenTo(this,"THUMB_CLICKED",this.Evt.onThumbClick),this.Evt.listenTo(this,"LAUNCH_PLAYER_EVENT",this.Evt.onLaunchPlayerEvent)},onLaunchPlayer:function(e){var r=n(e.currentTarget),i=r.data("num"),s=i-1,o=0,u=boeing_globals.userDataCollection.where({episode_num:s});u!==undefined&&u.length>=1&&t.has(u[0],"attributes")&&(o=u[0].attributes.last_chapter_viewed);var a={currentEpisode:s,currentChapter:o,currentPage:"player"};boeing_globals.videoPlayed=!0,this.gaMixins.sendClickEvent("click","nav-menuchapters"),this.trigger("LAUNCH_PLAYER_EVENT",a)},events:{},cleanUp:function(){this.undelegateEvents()},adjustScrubber:function(e){var t=e,n=t*12.5,r=n+"%";this.scrubber$.css("top",r)},onThumbOver:function(e){var t=n(e.currentTarget),r=t.data("num")*1-1;this.adjustScrubber(r);var i=this.collection.at(r);this.trigger("THUMB_CLICKED",i)},afterRender:function(){this.scrubber$=n("li.menu-section.bars div.scrub"),this.items$=n(this.el).find("ul.numbers li"),this.items$.on("mouseover",this.onThumbOver.bind(this))},render:function(){var e=boeing_globals.uiTextModel.get("episodes"),t={title:e,episodes:[1,2,3,4,5,6,7,8]},r=s.to_html(i,t);n(this.el).append(r),this.afterRender()}});return o}),define("text!app/modules/home/views/templates/episode-desktop-topics-surfacing-tmpl.html",[],function(){return"<div id=\"home-topics-view\">\n\n    <ol id='topic-list-view'>\n\n    </ol>\n\n</div>"}),define("text!app/modules/home/views/templates/episode-desktop-topics-surfacing-item-tmpl.html",[],function(){return'\n<dl>\n<dt class="icon"></dt>\n<dd>\n    <h4>{{topicEyebrow}}</h4>\n    <h2>{{factoidTitle}}</h2>\n<!--\n    <h3>{{factoidText}}</h3>\n-->\n</dd>\n</dl>'}),define("app/modules/home/views/episode-topics-surfacing-item-view",["require","underscore","jquery","app/base-classes/base-view","text!app/modules/home/views/templates/episode-desktop-topics-surfacing-item-tmpl.html","mustache"],function(e){var t=e("underscore"),n=e("jquery"),r=e("app/base-classes/base-view"),i=e("text!app/modules/home/views/templates/episode-desktop-topics-surfacing-item-tmpl.html"),s=e("mustache"),o=r.extend({tagName:"li",className:"home-topics-item",initialize:function(e,r,i,s,o){this.debug=!1,this.Evt=e,this.model=r,this.type=i,this.topicNum=s,this.parentId=o!==undefined?o:undefined,this.launchTopicsState=boeing_globals.device==="mobile"?"LAUNCH_PLAYER_EVENT":"LOAD_TOPICS_EVENT",this.init(),n(this.el).addClass(this.type),this.factoidsData=boeing_globals.uiTextModel.get("factoids"),this.factData=t.where(this.factoidsData,{"factoid-num":this.topicNum})[0],this.Evt.listenTo(this,"LAUNCH_MODAL_TOPIC_WINDOW_EVENT",this.Evt.onLaunchTopicWindowEvent),this.Evt.listenTo(this,this.launchTopicsState,this.Evt.onLaunchPlayerEvent),this.listenTo(this.Evt,"REMOVE_DESKTOP_SUBVIEWS_EVENT",this.cleanUp.bind(this)),this.listenTo(this.Evt,"REMOVE_MOBILE_SUBVIEWS_EVENT",this.onRemoveMobileSubviewsEvent.bind(this))},events:{},onRemoveMobileSubviewsEvent:function(e){var t=e.id;this.parentId!==undefined&&this.parentId===t&&this.cleanUp()},cleanUp:function(){this.data=undefined,this.model=undefined,this.undelegateEvents()},onGoToTopicClick:function(e){var t={currentTopic:this.topicNum,to
1pic_num:this.topicNum,loadLibrary:!1,loadMenu:!1,currentPage:"topics"};this.trigger(this.launchTopicsState,t),n("#home-content").fadeOut(150).delay(500).fadeIn(),e.preventDefault()},onGoToTopicClickRandom:function(e){var t={currentTopic:this.topicNum,topic_num:this.topicNum,loadLibrary:!1,loadMenu:!1,addRandomModal:!0,factoid_text:this.factData.factoid_text,currentPage:"topics"};this.trigger(this.launchTopicsState,t),n("#home-content").fadeOut(150).delay(500).fadeIn(),e.preventDefault()},onTopicClick:function(e){var t={num:this.topicNum,type:this.type,data:this.data};this.trigger("LAUNCH_MODAL_TOPIC_WINDOW_EVENT",t)},afterRender:function(){var e=this.type==="featured"?this.onGoToTopicClick.bind(this):this.onGoToTopicClickRandom.bind(this);n(this.el).on("click",e)},getData:function(e){var t=e,n=this.factData,r=function(){t.topicEyebrow=boeing_globals.uiTextModel.get("aerospace-hilights"),t.topicTitle=t.pages[0].title},i=function(){t.topicEyebrow=boeing_globals.uiTextModel.get("featured-interactive-topic"),t.topicTitle=t.title};return this.type==="random"?r():i(),t.factoidTitle=this.type==="random"?n.factoid_title:t.topicTitle,t.factoidText=n.factoid_text,t.topicNum=this.topicNum,t},render:function(){this.data=this.getData(this.model);var e=s.to_html(i,this.data);return n(this.el).append(e),this.afterRender(),this.el}});return o}),define("text!app/modules/home/views/templates/episode-desktop-topics-surfacing-modal-tmpl.html",[],function(){return'<div class="content">\n    <div class="header">\n        <div class="icon"></div>\n        <h4>{{topicEyebrow}}</h4>\n    </div>\n    <section class="info">\n        <h2>{{topicTitle}}</h2>\n        <hr />\n        <p>{{{factoidText}}}</p>\n    </section>\n\n    <footer>\n        <p>MORE ON</p>\n        <h4>"{{title}}"</h4>\n    </footer>\n</div>\n<div class="background-video-loop">\n    <video playsinline autoplay muted loop class="bg-vid-loop">\n        <source src="{{topic_video_loop}}" />\n    </video>\n</div>\n'}),define("app/modules/home/views/episode-topics-surfacing-modal-view",["require","jquery","app/base-classes/base-view","text!app/modules/home/views/templates/episode-desktop-topics-surfacing-modal-tmpl.html","mustache"],function(e){var t=e("jquery"),n=e("app/base-classes/base-view"),r=e("text!app/modules/home/views/templates/episode-desktop-topics-surfacing-modal-tmpl.html"),i=e("mustache"),s=n.extend({tagName:"div",id:"home-topics-modal-view",initialize:function(e,n,r,i){this.debug=!1,this.Evt=e,this.data=n,this.type=r,this.topicNum=i,this.init(),t(this.el).addClass(this.type),this.listenTo(this.Evt,"REMOVE_DESKTOP_SUBVIEWS_EVENT",this.cleanUp.bind(this)),this.Evt.listenTo(this,"LOAD_TOPICS_EVENT",this.Evt.onLaunchPlayerEvent)},events:{},cleanUp:function(){this.data=undefined,this.undelegateEvents()},onTopicClick:function(e){var t={currentTopic:this.topicNum,loadLibrary:!1,currentPage:"topics"};this.trigger("LOAD_TOPICS_EVENT",t)},afterRender:function(){t(this.el).on("click",this.onTopicClick.bind(this))},render:function(){var e=i.to_html(r,this.data);return t(this.el).append(e),this.afterRender(),this.el}});return s}),define("app/modules/home/views/episode-topics-surfacing-view",["require","underscore","jquery","app/base-classes/base-view","text!app/modules/home/views/templates/episode-desktop-topics-surfacing-tmpl.html","app/modules/home/views/episode-topics-surfacing-item-view","app/modules/home/views/episode-topics-surfacing-modal-view","mustache"],function(e){var t=e("underscore"),n=e("jquery"),r=e("app/base-classes/base-view"),i=e("text!app/modules/home/views/templates/episode-desktop-topics-surfacing-tmpl.html"),s=e("app/modules/home/views/episode-topics-surfacing-item-view"),o=e("app/modules/home/views/episode-topics-surfacing-modal-view"),u=e("mustache"),a=r.extend({className:"desktop",tagName:"div",initialize:function(e,t,n,r){this.debug=!1,this.el=t,this.Evt=e,this.parentId=n!==undefined?n:undefined,this.episodeNum=r!==undefined?r:undefined,this.episodeNum!==undefined?this.collection=boeing_globals.topicsCollection.where({topic_episode_number:String(this.episodeNum+1)}):this.collection=boeing_globals.topicsCollection,this.colMaxNum=this.collection.length,this.init(),this.topicsLoaded=!1;var i=function(){this.render()};window.setTimeout(i.bind(this),10),this.listenTo(this.Evt,"REMOVE_DESKTOP_SUBVIEWS_EVENT",this.cleanUp.bind(this))},events:{},onLaunchTopicModalEvent:function(e){var t=new o(this.Evt,e.data,e.type,e.num);this.$id.append(t.render())},cleanUp:function(){this.console.log("HOME TOPICS CLEAN UP UNDELEGATE",this),this.undelegateEvents()},getRandomTopicNum:function(){return Math.floor(Math.random()*this.colMaxNum)},createTopicsParams:function(e,t){t!==undefined?num=t:num=this.getRandomTopicNum();var n=this.collection.hasOwnProperty("models")?this.collection.at(t).toJSON():this.collection[t].toJSON();return{topicNum:t,model:n,type:e}},getTopicsObjects:function(e){var n,r;return e!==undefined?n=e:n=this.getRandomTopicNum(),this.getNum2=function(){var e=t.range(0,this.colMaxNum),r=e.indexOf(n);e.splice(r,1);var i=Math.floor(Math.random()*e.length);return e[i]},r=this.getNum2(),[this.createTopicsParams("featured",n),this.createTopicsParams("random",r)]},addTopics:function(){var e=this.getTopicsObjects(),t=new s(this.Evt,e[0].model,e[0].type,e[0].topicNum,this.parentId),n=new s(this.Evt,e[1].model,e[1].type,e[1].topicNum,this.parentId);this.ol.append(t.render()),this.ol.append(n.render())},afterRender:function(){this.topicsLoaded===!1&&(this.idStr="#home-topics-view",this.$id=n(this.idStr),this.ol=n(this.el).find("ol#topic-list-view"),this.addTopics());var e=boeing_globals.device==="mobile"?"mobile":"desktop";n(this.el).find("#home-topics-view").addClass(e),this.topicsLoaded=!0},render:function(){var e=u.to_html(i);n(this.el).append(e),this.afterRender()}});return a}),define("text!app/modules/home/views/templates/episode-stage-content-tmpl.html",[],function(){return'<div\r\n    id="episode-stage-content-{{id_num}}"\r\n    class="list-stage-content CoverImage FlexEmbed FlexEmbed--3by1"\r\n    style="background-position: 50%; background-repeat: no-repeat; background-size: cover; margin: 0 auto; max-height: 4800px; max-width: 3400px"\r\n>\r\n    <video id="episode-stage-video" playsinline autoplay muted loop data-account="800000612001" data-player="cENsmHkkB" data-embed="default" data-video-id="{{episode_video_id}}" poster="{{episode_stage}}"></video>\r\n\r\n    <aside class="stage-overlay"></aside>\r\n\r\n    <section class="list-stage-content-text">\r\n        <div class="episode-copy">\r\n            <h4>{{episode}}
1 {{episode_label}}</h4>\r\n            <span>{{episode_title}}</span>\r\n            <p>{{{episode_description}}}</p>\r\n\r\n            <div id="circle-percentage">\r\n                <svg version="1.1" width="80" height="80" id="Layer_1" xmlns="//www.w3.org/2000/svg" xmlns:xlink="//www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 80 80" style="enable-background: new 0 0 74 74" xml:space="preserve">\r\n                    <circle stroke-width="2" stroke="#ffffff" fill="none" class="pct-thin-path" cx="36" cy="36" r="34" />\r\n                    <circle stroke-width="6" stroke="#0098db" fill="none" class="pct-path" cx="36.25" cy="36.25" r="34" />\r\n                    <path class="st2" stroke="none" fill="#ffffff" d="M35.4,48.7L46.6,31H24.2L35.4,48.7z" />\r\n                </svg>\r\n            </div>\r\n            <p class="timestamp">{{timestamp}}</p>\r\n        </div>\r\n    </section>\r\n</div>\r\n'});var _gsScope="undefined"!=typeof module&&module.exports&&"undefined"!=typeof global?global:this||window;(_gsScope._gsQueue||(_gsScope._gsQueue=[])).push(function(){"use strict";function e(e,t,n,r){return n=parseFloat(n)-parseFloat(e),r=parseFloat(r)-parseFloat(t),Math.sqrt(n*n+r*r)}function t(e){return"string"!=typeof e&&e.nodeType||(e=_gsScope.TweenLite.selector(e),e.length&&(e=e[0])),e}function n(e,t,n){var r,i,s=e.indexOf(" ");return-1===s?(r=void 0!==n?n+"":e,i=e):(r=e.substr(0,s),i=e.substr(s+1)),r=-1!==r.indexOf("%")?parseFloat(r)/100*t:parseFloat(r),i=-1!==i.indexOf("%")?parseFloat(i)/100*t:parseFloat(i),r>i?[i,r]:[r,i]}function r(n){if(!n)return 0;n=t(n);var r,i,s,o,u,f,l,c,h=n.tagName.toLowerCase();if("path"===h){u=n.style.strokeDasharray,n.style.strokeDasharray="none",r=n.getTotalLength()||0;try{i=n.getBBox()}catch(p){}n.style.strokeDasharray=u}else if("rect"===h)r=2*n.getAttribute("width")+2*n.getAttribute("height");else if("circle"===h)r=2*Math.PI*parseFloat(n.getAttribute("r"));else if("line"===h)r=e(n.getAttribute("x1"),n.getAttribute("y1"),n.getAttribute("x2"),n.getAttribute("y2"));else if("polyline"===h||"polygon"===h)for(s=n.getAttribute("points").split(", ").join(",").split(" "),r=0,u=s[0].split(","),""===s[s.length-1]&&s.pop(),"polygon"===h&&(s.push(s[0]),-1===s[0].indexOf(",")&&s.push(s[1])),f=1;f<s.length;f++)o=s[f].split(","),1===o.length&&(o[1]=s[f++]),2===o.length&&(r+=e(u[0],u[1],o[0],o[1])||0,u=o);else"ellipse"===h&&(l=parseFloat(n.getAttribute("rx")),c=parseFloat(n.getAttribute("ry")),r=Math.PI*(3*(l+c)-Math.sqrt((3*l+c)*(l+3*c))));return r||0}function i(e,n){if(!e)return[0,0];e=t(e),n=n||r(e)+1;var i=o(e),s=i.strokeDasharray||"",u=parseFloat(i.strokeDashoffset),a=s.indexOf(",");return 0>a&&(a=s.indexOf(" ")),s=0>a?n:parseFloat(s.substr(0,a))||1e-5,s>n&&(s=n),[Math.max(0,-u),Math.max(0,s-u)]}var s,o=document.defaultView?document.defaultView.getComputedStyle:function(){};s=_gsScope._gsDefine.plugin({propName:"drawSVG",API:2,version:"0.0.9",global:!0,overwriteProps:["drawSVG"],init:function(e,t,s){if(!e.getBBox)return!1;var o,u,a,f=r(e)+1;return this._style=e.style,t===!0||"true"===t?t="0 100%":t?-1===(t+"").indexOf(" ")&&(t="0 "+t):t="0 0",o=i(e,f),u=n(t,f,o[0]),this._length=f+10,0===o[0]&&0===u[0]?(a=Math.max(1e-5,u[1]-f),this._dash=f+a,this._offset=f-o[1]+a,this._addTween(this,"_offset",this._offset,f-u[1]+a,"drawSVG")):(this._dash=o[1]-o[0]||1e-6,this._offset=-o[0],this._addTween(this,"_dash",this._dash,u[1]-u[0]||1e-5,"drawSVG"),this._addTween(this,"_offset",this._offset,-u[0],"drawSVG")),!0},set:function(e){this._firstPT&&(this._super.setRatio.call(this,e),this._style.strokeDashoffset=this._offset,1===e||0===e?this._style.strokeDasharray=this._offset<.001&&this._length-this._dash<=10?"none":this._offset===this._dash?"0px, 999999px":this._dash+"px,"+this._length+"px":this._style.strokeDasharray=this._dash+"px,"+this._length+"px")}}),s.getLength=r,s.getPosition=i}),_gsScope._gsDefine&&_gsScope._gsQueue.pop()(),define("DrawSvgPlugin",["TweenMax"],function(){});var bc_isManagedRelease=!0,bcShimDestripeTime;!function(){var t=[{s:[],w:.9},{s:[],w:1}],ci,c,qs=decodeURIComponent(location.search.split("+").join(" ")),p,re=/[?&]?([^=]+)=([^&]*)/g;while(p=re.exec(qs))if(decodeURIComponent(p[1])==="bc-mr"){ci=Number(p[2]);
1if(p[2]==null||p[2]===""||isNaN(p[2])||ci<0||ci>t.length-1)throw new Error('The optional "bc-mr" querystring parameter must be a natural number between 0 and '+(t.length-1));break}try{if(ci===undefined){c=localStorage.getItem("bc-managed-release-choice-6.48.5_6.48.5-expabr.1"),c===null?(c=Math.random(),localStorage.setItem("bc-managed-release-choice-6.48.5_6.48.5-expabr.1",c)):c=Number(c);for(var i=0;i<t.length;i++)if(t[i].w>c){ci=i;break}}}catch(err){ci=0,bc_isManagedRelease=!1,window.console&&console.log("Unable to use local storage.")}window.console&&console.log("Using player "+ci);var timer=performance||Date,before=timer.now();t[0].s.push('(function(e,t){if(typeof define==="function"&&define.amd){define("bc",[],function(){var i=t.apply(this,arguments);e.videojs.log.warn("DEPRECATION: Using the default named RequireJS module in the Brightcove Player is deprecated. See: https://support.brightcove.com/requirejs-and-brightcove-player#Future_implementation");return i})}else if(typeof exports==="object"){module.exports=t()}else{e.bc=t(e)}})(this,function(e){var t=\'@charset "UTF-8";.video-js .vjs-big-play-button .vjs-icon-placeholder:before,.video-js .vjs-modal-dialog,.vjs-button>.vjs-icon-placeholder:before,.vjs-modal-dialog .vjs-modal-dialog-content{position:absolute;top:0;left:0;width:100%;height:100%}.video-js .vjs-big-play-button .vjs-icon-placeholder:before,.vjs-button>.vjs-icon-placeholder:before{text-align:center}@font-face{font-family:VideoJS;src:url(data:application/font-woff;charset=utf-8;base64,d09GRgABAAAAABDkAAsAAAAAG6gAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAABHU1VCAAABCAAAADsAAABUIIslek9TLzIAAAFEAAAAPgAAAFZRiV3hY21hcAAAAYQAAADaAAADPv749/pnbHlmAAACYAAAC3AAABHQZg6OcWhlYWQAAA3QAAAAKwAAADYZw251aGhlYQAADfwAAAAdAAAAJA+RCLFobXR4AAAOHAAAABMAAACM744AAGxvY2EAAA4wAAAASAAAAEhF6kqubWF4cAAADngAAAAfAAAAIAE0AIFuYW1lAAAOmAAAASUAAAIK1cf1oHBvc3QAAA/AAAABJAAAAdPExYuNeJxjYGRgYOBiMGCwY2BycfMJYeDLSSzJY5BiYGGAAJA8MpsxJzM9kYEDxgPKsYBpDiBmg4gCACY7BUgAeJxjYGS7wTiBgZWBgaWQ5RkDA8MvCM0cwxDOeI6BgYmBlZkBKwhIc01hcPjI+FGJHcRdyA4RZgQRADK3CxEAAHic7dFZbsMgAEXRS0ycyZnnOeG7y+qC8pU1dHusIOXxuoxaOlwZYWQB0Aea4quIEN4E9LzKbKjzDeM6H/mua6Lmc/p8yhg0lvdYx15ZG8uOLQOGjMp3EzqmzJizYMmKNRu27Nhz4MiJMxeu3Ljz4Ekqm7T8P52G8PP3lnTOVk++Z6iN6QZzNN1F7ptuN7eGOjDUoaGODHVsuvU8MdTO9Hd5aqgzQ50b6sJQl4a6MtS1oW4MdWuoO0PdG+rBUI+GejLUs6FeDPVqqDdDvRvqw1CfhpqM9At0iFLaAAB4nJ1YDXBTVRZ+5/22TUlJ8we0pHlJm7RJf5O8F2j6EymlSPkpxaL8U2xpa3DKj0CBhc2IW4eWKSokIoLsuMqssM64f+jA4HSdWXXXscBq67IOs3FXZ1ZYWVyRFdo899yXtIBQZ90k7717zz3v3HPPOfd854YCCj9cL9dL0RQFOqCbGJnrHb5EayiKIWN8iA/hWBblo6hUWm8TtCDwE80WMJus/irwyxOdxeB0MDb14VNJHnXYoLLSl6FfCUYO9nYPTA8Epg9090LprfbBbZ2hY0UlJUXHQp3/vtWkS6EBv8+rPMq5u9692f/dNxJNiqwC1xPE9TCUgCsSdQWgE3XQD25lkG4CN2xmTcOXWBOyser6RN6KnGbKSbmQ3+d0OI1m2W8QzLLkI2sykrWAgJJEtA8vGGW/2Q+CmT3n8zS9wZwu2DCvtuZKZN3xkrLh36yCZuUomQSqGpY8t/25VfHVhw8z4ebGBtfLb0ya9PCaDc+8dGTvk2dsh6z7WzvowlXKUSWo9MJ15a3KrEP2loOr2Ojhw6iW6hf2BDdEccQvZGpaAy7YovSwq8kr7HGllxpd71rkS6G0Sf11sl9OvMK1+jwPPODxjUwkOim9CU3ix1wNjXDfmJSEn618Bs6lpWwUpU+8PCqLMY650zjq8VhCIP17NEKTx3eaLL+s5Pi6yJWaWjTHLR1jYzPSV9VF/6Ojdb/1kO3Mk3uhHC0x6gc1BjlKQ+nQFxTYdaJkZ7ySVxLBbhR1dsboNXp1tCYKW2LRaEzpYcIx2BKNxaL0ZaUnSqfFoiNhHKR/GkX6PWUSAaJelQaqZL1EpoHNsajSEyPSoJ9IjhIxTdjHLmwZvhRDOiFTY/YeQnvrVZmiTQtGncECXtFTBZLOVwwMRgoXHAkXzMzPn1nAJJ8jYSbMDaqN2waGLzNhih/bZynUBMpIWSg7VYi7
1DRx2m8ALkIdRCJwI6ArJx2EI8kaDWeTQKeAFk9fjl/1AvwktjQ1P7NjyMGQyfd4vjipX6M/i52D7Cq80kqlcxEcGXRr/FEcgs0u5uGgB4VWuMFfpdn2Re6Hi3PqzmxWKsz6+ae2Pn9hXXw/fqM859UiGC0oKYYILJBqJrsn1Z1E5qOs9rQCiUQRREjm8yJcbHF5cUJufX1vAHlefw0XgUoboS3ETfQlTxBC4SOtuE8VPRJTBSCQSjZCpk7Gqzu+masaZ2y7Zjehho4F3g82BNDkAHpORG4+OCS+f6JTPmtRn/PH1kch6d04sp7AQb25aQ/pqUyXeQ8vrebG8OYQdXOQ+585u0sdW9rqalzRURiJ+9F4MweRFrKUjl1GUYhH1A27WOHw5cTFSFPMo9EeUIGnQTZHIaJ7AHLaOKsOODaNF9jkBjYG2QEsQ2xjMUAx2bBEbeTBWMHwskBjngq56S/yfgkBnWBa4K9sqKtq2t1UI8S9He5XuBRbawAdatrQEAi30Aks2+LM8WeCbalVZkWNylvJ+dqJnzVb+OHlSoKW8nPCP7Rd+CcZ2DdWAGqJ2CBFOphgywFFCFBNtfAbGtNPBCwxvygHeYMZMY9ZboBqwq/pVrsbgN5tkv152ODlbMfiqwGMBgxa4Exz3QhovRIUp6acqZmQzRq0ypDXS2TPLT02YIkQETnOE445oOGxOmXAqUJNNG7XgupMjPq2ua9asrj5yY/yuKteO1Kx0YNJTufrirLe1mZnat7OL6rnUdCWenpW6I8mAnbsY8KWs1PuSovCW9A/Z25PQ24a7cNOqgmTkLmBMgh4THgc4b9k2IVv1/g/F5nGljwPLfOgHAzJzh45V/4+WenTzmMtR5Z7us2Tys909UHqrPY7KbckoxRvRHhmVc3cJGE97uml0R1S0jdULVl7EvZtDFVBF35N9cEdjpgmAiOlFZ+Dtoh93+D3zzHr8RRNZQhnCNMNbcegOvpEwZoL+06cJQ07h+th3fZ/7PVbVC6ngTAV/KoLFuO6+2KFcU651gEb5ugPSIb1D+Xp8V4+k3sEIGnw5mYe4If4k1lFYr6SCzmM2EQ8iWtmwjnBI9kTwe1TlfAmXh7H02by9fW2gsjKwtv0aaURKil4OdV7rDL1MXIFNrhdxohcZXYTnq47WisrKitaObbf5+yvkLi5J6lCNZZ+B6GC38VNBZBDidSS/+mSvh6s+srgC8pyKMvDtt+de3c9fU76ZPfuM8ud4Kv0fyP/LqfepMT/3oZxSqpZaTa1DaQYLY8TFsHYbWYsPoRhRWfL5eSSQbhUGgGC3YLbVMk6PitTFNGpAsNrC6D1VNBKgBHMejaiuRWEWGgsSDBTJjqWIl8kJLlsaLJ2tXDr6xGfT85bM2Q06a46x2HTgvdnV8z5YDy/27J4zt6x2VtkzjoYpkq36kaBr4eQSg7tyiVweWubXZugtadl58ydapfbORfKsDTuZ0OBgx4cfdjCf5tbWNITnL120fdOi1RV1C3uKGzNdwYLcMvZ3BxoPyTOCD1XvXTp7U10gWCVmTV9b3r2z0SkGWovb2hp9I89O8a2smlyaO8muMU+dRmtzp60IzAoFpjLr1n388boLyf0dRvxhsHZ0qbWqDkwqvvpkj4l0fY6EIXRi5sQSrAvsVYwXRy4qJ2EVtD1AN7a0HWth9ymvL1xc3WTUKK/TAHA/bXDVtVWfOMfuGxGZv4Ln/jVr9jc3j1yMv0tndmyt9Vq88Y9gH1wtLX3KWjot5++jWHgAoZZkQ14wGQ20Fli71UmKJAy4xKMSTGbVdybW7FDDAut9XpD5AzWrYO7zQ8qffqF8+Ynd/clrHcdyxGy3a/3+mfNnzC/cBsveTjnTvXf1o6vzOlZw7WtqtdmPK/Errz/6NNtD72zmNOZfbmYdTGHfoofqI79Oc+R2n1lrnL6pOm0Up7kwxhTW12Amm7WYkXR2qYrF2AmgmbAsxZjwy1xpg/m1Je2vrp8v/nz2xpmlBg4E9hrMU341wVpTOh/OfmGvAnra8q6uctr60ZQHV3Q+WMQJykMj8ZsWn2QBOmmHMB+m5pDIpTFonYigiaKAhGEiAHF7EliVnQkjoLVIMPtJpBKHYd3A8GYH9jJzrWwmHx5Qjp7vDAX0suGRym1vtm/9W1/HyR8vczfMs6Sk8DSv855/5dlX9oQq52hT8syyp2rx5Id17IAyAM3wIjQPMOHzytEB64q6D5zT91yNbnx3V/nqnd017S9Y0605k3izoXLpsxde2n38yoOV9s1LcjwzNjbdX6asnBVaBj/6/DwKwPkpcqbDG7BnsXoSqWnUAmottYF6jMSdVyYZh3zVXCjwTiwwHH6sGuRiEHQGzuRX6whZkp123oy1BWE2mEfJ/tvIRtM4ZM5bDXiMsPMaAKOTyc5uL57rqyyc5y5JE5pm1i2S2iUX0CcaQ6lC6Zog7JqSqZmYlosl2K6pwNA84zRnQW6SaALYZQGW5lhCtU/W34N6o+bKfZ8cf3/Cl/+iTX3wBzpOY4mRkeNf3rptycGSshQWgGbYt5jFc2e0+DglIrwl6DVWQ7BuwaJ3Xk1J4VL5urnLl/Wf+gHU/hZoZdKNym6lG+I34FaNeZKcSpJIo2IeCVvpdsDGfKvzJnAwmeD37Ow65ZWwSowpgwX5T69s/rB55dP5BcpgDKFV8p7q2sn/1uc93bVzT/w6UrCqDTWvfCq/oCD/qZXNoUj8BL5Kp6GU017frfNXkAtiiyf/SOCEeLqnd8R/Ql9GlCRfctS6k5chvIBuQ1zCCjoCHL2DHNHIXxMJ3kQeO8lbsUXONeSfA5EjcG6/E+KdhN4bP04vBhdi883+BFBzQbxFbvZzQeY9LNBZc0FNfn5NwfDn6rCTnTw6R8o+gfpf5hCom33cRuiTlss3KHmZjD+BPN+5gXuA2ziS/Q73mLxUkpbKN/eqwz5uK0X9F3h2d1V4nGNgZGBgAOJd776+iue3+crAzc4AAje5Bfcg0xz9YHEOBiYQBQA8FQlFAHicY2BkYGBnAAGOPgaG//85+hkYGVCBMgBGGwNYAAAAeJxjYGBgYB8EmKOPgQEAQ04BfgAAAAAAAA4AaAB+AMwA4AECAUIBbAGYAcICGAJYArQC4AMwA7AD3gQwBJYE3AUkBWYFigYgBmYGtAbqB1gIEghYCG4IhAi2COh4nGNgZGBgUGYoZWBnAAEmIOYCQgaG/2A+AwAYCQG2AHicXZBNaoNAGIZfE5PQCKFQ2lUps2oXBfOzzAESyDKBQJdGR2NQR3QSSE/QE/QEPUUPUHqsvsrXjTMw83zPvPMNCuAWP3DQDAejdm1GjzwS7pMmwi75XngAD4/CQ/oX4TFe4Qt7uMMbOzjuDc0EmXCP/C7cJ38Iu+RP4QEe8CU8pP8WHmOPX2EPz87TPo202ey2OjlnQSXV/6arOjWFmvszMWtd6CqwOlKHq6ovycLaWMWVydXKFFZnmVFlZU46tP7R2nI5ncbi/dDkfDtFBA2DDXbYkhKc+V0Bqs5Zt9JM1HQGBRTm/EezTmZNKtpcAMs9Yu6AK9caF76zoLWIWcfMGOSkVduvSWechqZsz040Ib2PY3urxBJTzriT95lipz+TN1fmAAAAeJxtkMl2wjAMRfOAhABlKm2h80C3+ajgCKKDY6cegP59TYBzukAL+z1Zsq8ctaJTTKPrsUQLbXQQI0EXKXroY4AbDDHCGBNMcYsZ7nCPB8yxwCOe8IwXvOIN7/jAJ76wxHfUqWX+OzgumWAjJMV17i0Ndlr6irLKO+qftdT7i6y4uFSUvCknay+lFYZIZaQcmfH/xIFdYn98bqhra1aKTM/6lWMnyaYirx1rFUQZFBkb2zJUtoXeJCeg0WnLtHeSFc3OtrnozNwqi0TkSpBMDB1nSde5oJXW23hTS2/T0LilglXX7dmFVxLnq5U0vYATHFk3zX3BOisoQHNDFDeZnqKDy9hRNawN7Vh727hFzcJ5c8TILrKZfH7tIPxAFP0BpLeJPA==) format("woff");font-weight:400;font-style:normal}.video-js .vjs-big-play-button .vjs-icon-placeholder:before,.video-js .vjs-play-control .vjs-icon-placeholder,.vjs-icon-play{font-family:VideoJS;font-weight:400;font-style:normal}.video-js .vjs-big-play-button .vjs-icon-placeholder:before,.video-js .vjs-play-control .vjs-icon-placeholder:before,.vjs-icon-play:before{content:"\\\\f101"}.vjs-icon-play-circle{font-family:VideoJS;font-weight:400;font-style:normal}.vjs-icon-play-circle:before{content:"\\\\f102"}.video-js .vjs-play-control.vjs-playing .vjs-icon-placeholder,.vjs-icon-pause{font-family:VideoJS;font-weight:400;font-style:normal}.video-js .vjs-play-control.vjs-playing .vjs-icon-placeholder:before,.vjs-icon-pause:before{content:"\\\\f103"}.video-js .vjs-mute-control.vjs-vol-0 .vjs-icon-placeholder,.vjs-icon-volume-mute{font-family:VideoJS;font-weight:400;font-style:normal}.video-js .vjs-mute-control.vjs-vol-0 .vjs-icon-placeholder:before,.vjs-icon-volume-mute:before{content:"\\\\f104"}.video-js .vjs-mute-control.vjs-vol-1 .vjs-icon-placeholder,.vjs-icon-volume-low{font-family:VideoJS;font-weight:400;font-style:normal}.video-js .vjs-mute-control.vjs-vol-1 .vjs-icon-placeholder:before,.vjs-icon-volume-low:before{content:"\\\\f105"}.video-js .vjs-mute-control.vjs-vol-2 .vjs-icon-placeholder,.vjs-icon-volume-mid{font-family:VideoJS;font-weight:400;font-style:normal}.video-js .vjs-mute-control.vjs-vol-2 .vjs-icon-placeholder:before,.vjs-icon-volume-mid:before{content:"\\\\f106"}.video-js .vjs-mute-control .vjs-icon-placeholder,.vjs-icon-volume-high{font-family:VideoJS;font-weight:400;font-style:normal}.video-js .vjs-mute-control .vjs-icon-placeholder:before,.vjs-icon-volume-high:before{content:"\\\\f107"}.video-js .vjs-fullscreen-control .vjs-icon-placeholder,.vjs-icon-fullscreen-enter{font-family:VideoJS;font-weight:400;font-style:normal}.video-js .vjs-fullscreen-control .vjs-icon-placeholder:before,.vjs-icon-fullscreen-enter:before{content:"\\\\f108"}.video-js.vjs-fullscreen .vjs-fullscreen-control .vjs-icon-placeholder,.vjs-icon-fullscreen-exit{font-family:VideoJS;font-weight:400;font-style:normal}.video-js.vjs-fullscreen .vjs-fullscreen-control .vjs-icon-placeholder:before,.vjs-icon-fullscreen-exit:before{content:"\\\\f109"}.vjs-icon-square{font-family:VideoJS;font-weight:400;font-style:normal}.vjs-icon-square:before{content:"\\\\f10a"}.vjs-icon-spinner{font-family:VideoJS;font-weight:400;font-style:normal}.vjs-icon-spinner:before{content:"\\\\f10b"}.video-js .vjs-subs-caps-button .vjs-icon-placeholder,.video-js .vjs-subtitles-button .vjs-icon-placeholder,.video-js.video-js:lang(en-AU) .vjs-subs-caps-button .vjs-icon-placeholder,.video-js.video-js:lang(en-GB) .vjs-subs-caps-button .vjs-icon-placeholder,.video-js.video-js:lang(en-IE) .vjs-subs-caps-button .vjs-icon-placeholder,.video-js.video-js:lang(en-NZ) .vjs-subs-caps-button .vjs-icon-placeholder,.vjs-icon-subtitles{font-family:VideoJS;font-weight:400;font-style:normal}.video-js .vjs-subs-caps-button .vjs-icon-placeholder:before,.video-js .vjs-subtitles-button .vjs-icon-placeholder:before,.video-js.video-js:lang(en-AU) .vjs-subs-caps-button .vjs-icon-placeholder:before,.video-js.video-js:lang(en-GB) .vjs-subs-caps-button .vjs-icon-placeholder:before,.video-js.video-js:lang(en-IE) .vjs-subs-caps-button .vjs-icon-placeholder:before,.video-js.video-js:lang(en-NZ) .vjs-subs-caps-button .vjs-icon-placeholder:before,.vjs-icon-subtitles:before{content:"\\\\f10c"}.video-js .vjs-captions-button .vjs-icon-placeholder,.video-js:lang(en) .vjs-subs-caps-button .vjs-icon-placeholder,.video-js:lang(fr-CA) .vjs-subs-caps-button .vjs-icon-placeholder,.vjs-icon-captions{font-family:VideoJS;font-weight:400;font-style:normal}.video-js .vjs-captions-button .vjs-icon-placeholder:before,.video-js:lang(en) .vjs-subs-caps-button .vjs-icon-placeholder:before,.video-js:lang(fr-CA) .vjs-subs-caps-button .vjs-icon-placeholder:before,.vjs-icon-captions:before{content:"\\\\f10d"}.video-js .vjs-chapters-button .vjs-icon-placeholder,.vjs-icon-chapters{font-family:VideoJS;font-weight:400;font-style:normal}.video-js .vjs-chapters-button .vjs-icon-placeholder:before,.vjs-icon-chapters:before{content:"\\\\f10e"}
1.vjs-icon-share{font-family:VideoJS;font-weight:400;font-style:normal}.vjs-icon-share:before{content:"\\\\f10f"}.vjs-icon-cog{font-family:VideoJS;font-weight:400;font-style:normal}.vjs-icon-cog:before{content:"\\\\f110"}.video-js .vjs-play-progress,.video-js .vjs-volume-level,.vjs-icon-circle,.vjs-seek-to-live-control .vjs-icon-placeholder{font-family:VideoJS;font-weight:400;font-style:normal}.video-js .vjs-play-progress:before,.video-js .vjs-volume-level:before,.vjs-icon-circle:before,.vjs-seek-to-live-control .vjs-icon-placeholder:before{content:"\\\\f111"}.vjs-icon-circle-outline{font-family:VideoJS;font-weight:400;font-style:normal}.vjs-icon-circle-outline:before{content:"\\\\f112"}.vjs-icon-circle-inner-circle{font-family:VideoJS;font-weight:400;font-style:normal}.vjs-icon-circle-inner-circle:before{content:"\\\\f113"}.vjs-icon-hd{font-family:VideoJS;font-weight:400;font-style:normal}.vjs-icon-hd:before{content:"\\\\f114"}.video-js .vjs-control.vjs-close-button .vjs-icon-placeholder,.vjs-icon-cancel{font-family:VideoJS;font-weight:400;font-style:normal}.video-js .vjs-control.vjs-close-button .vjs-icon-placeholder:before,.vjs-icon-cancel:before{content:"\\\\f115"}.video-js .vjs-play-control.vjs-ended .vjs-icon-placeholder,.vjs-icon-replay{font-family:VideoJS;font-weight:400;font-style:normal}.video-js .vjs-play-control.vjs-ended .vjs-icon-placeholder:before,.vjs-icon-replay:before{content:"\\\\f116"}.vjs-icon-facebook{font-family:VideoJS;font-weight:400;font-style:normal}.vjs-icon-facebook:before{content:"\\\\f117"}.vjs-icon-gplus{font-family:VideoJS;font-weight:400;font-style:normal}.vjs-icon-gplus:before{content:"\\\\f118"}.vjs-icon-linkedin{font-family:VideoJS;font-weight:400;font-style:normal}.vjs-icon-linkedin:before{content:"\\\\f119"}.vjs-icon-twitter{font-family:VideoJS;font-weight:400;font-style:normal}.vjs-icon-twitter:before{content:"\\\\f11a"}.vjs-icon-tumblr{font-family:VideoJS;font-weight:400;font-style:normal}.vjs-icon-tumblr:before{content:"\\\\f11b"}.vjs-icon-pinterest{font-family:VideoJS;font-weight:400;font-style:normal}.vjs-icon-pinterest:before{content:"\\\\f11c"}.video-js .vjs-descriptions-button .vjs-icon-placeholder,.vjs-icon-audio-description{font-family:VideoJS;font-weight:400;font-style:normal}.video-js .vjs-descriptions-button .vjs-icon-placeholder:before,.vjs-icon-audio-description:before{content:"\\\\f11d"}.video-js .vjs-audio-button .vjs-icon-placeholder,.vjs-icon-audio{font-family:VideoJS;font-weight:400;font-style:normal}.video-js .vjs-audio-button .vjs-icon-placeholder:before,.vjs-icon-audio:before{content:"\\\\f11e"}.vjs-icon-next-item{font-family:VideoJS;font-weight:400;font-style:normal}.vjs-icon-next-item:before{content:"\\\\f11f"}.vjs-icon-previous-item{font-family:VideoJS;font-weight:400;font-style:normal}.vjs-icon-previous-item:before{content:"\\\\f120"}.video-js .vjs-picture-in-picture-control .vjs-icon-placeholder,.vjs-icon-picture-in-picture-enter{font-family:VideoJS;font-weight:400;font-style:normal}.video-js .vjs-picture-in-picture-control .vjs-icon-placeholder:before,.vjs-icon-picture-in-picture-enter:before{content:"\\\\f121"}.video-js.vjs-picture-in-picture .vjs-picture-in-picture-control .vjs-icon-placeholder,.vjs-icon-picture-in-picture-exit{font-family:VideoJS;font-weight:400;font-style:normal}.video-js.vjs-picture-in-picture .vjs-picture-in-picture-control .vjs-icon-placeholder:before,.vjs-icon-picture-in-picture-exit:before{content:"\\\\f122"}.video-js{display:block;vertical-align:top;box-sizing:border-box;color:#fff;background-color:#000;position:relative;padding:0;font-size:10px;line-height:1;font-weight:400;font-style:normal;font-family:Arial,Helvetica,sans-serif;word-break:initial}.video-js:-moz-full-screen{position:absolute}.video-js:-webkit-full-screen{width:100%!important;height:100%!important}.video-js[tabindex="-1"]{outline:0}.video-js *,.video-js :after,.video-js :before{box-sizing:inherit}.video-js ul{font-family:inherit;font-size:inherit;line-height:inherit;list-style-position:outside;margin-left:0;margin-right:0;margin-top:0;margin-bottom:0}.video-js.vjs-16-9,.video-js.vjs-4-3,.video-js.vjs-fluid{width:100%;max-width:100%;height:0}.video-js.vjs-16-9{padding-top:56.25%}.video-js.vjs-4-3{padding-top:75%}.video-js.vjs-fill{width:100%;height:100%}.video-js .vjs-tech{position:absolute;top:0;left:0;width:100%;height:100%}body.vjs-full-window{padding:0;margin:0;height:100%}.vjs-full-window .video-js.vjs-fullscreen{position:fixed;overflow:hidden;z-index:1000;left:0;top:0;bottom:0;right:0}.video-js.vjs-fullscreen:not(.vjs-ios-native-fs){width:100%!important;height:100%!important;padding-top:0!important}.video-js.vjs-fullscreen.vjs-user-inactive{cursor:none}.vjs-hidden{display:none!important}.vjs-disabled{opacity:.5;cursor:default}.video-js .vjs-offscreen{height:1px;left:-9999px;position:absolute;top:0;width:1px}.vjs-lock-showing{display:block!important;opacity:1;visibility:visible}.vjs-no-js{padding:20px;color:#fff;background-color:#000;font-size:18px;font-family:Arial,Helvetica,sans-serif;text-align:center;width:300px;height:150px;margin:0 auto}.vjs-no-js a,.vjs-no-js a:visited{color:#66a8cc}.video-js .vjs-big-play-button{font-size:3em;line-height:1.5em;height:1.63332em;width:3em;display:block;position:absolute;top:10px;left:10px;padding:0;cursor:pointer;opacity:1;border:.06666em solid #fff;background-color:#2b333f;background-color:rgba(43,51,63,.7);border-radius:.3em;transition:all .4s}.vjs-big-play-centered .vjs-big-play-button{top:50%;left:50%;margin-top:-.81666em;margin-left:-1.5em}.video-js .vjs-big-play-button:focus,.video-'),t[1].s.push('(function(e,t){if(typeof define==="function"&&define.amd){define("bc",[],function(){var i=t.apply(this,arguments);e.videojs.log.warn("DEPRECATION: Using the default named RequireJS module in the Brightcove Player is deprecated. See: https://support.brightcove.com/requirejs-and-brightcove-player#Future_implementation");return i})}else if(typeof exports==="object"){module.exports=t()}else{e.bc=t(e)}})(this,function(e){var t=\'@charset "UTF-8";.video-js .vjs-big-play-button .vjs-icon-placeholder:before,.video-js .vjs-modal-dialog,.vjs-button>.vjs-icon-placeholder:before,.vjs-modal-dialog .vjs-modal-dialog-content{position:absolute;top:0;left:0;width:100%;height:100%}.video-js .vjs-big-play-button .vjs-icon-placeholder:before,.vjs-button>.vjs-icon-placeholder:before{text-align:center}@font-face{font-family:VideoJS;src:url(data:application/font-woff;charset=utf-8;base64,d09GRgABAAAAABDkAAsAAAAAG6gAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAABHU1VCAAABCAAAADsAAABUIIslek9TLzIAAAFEAAAAPgAAAFZRiV3hY21hcAAAAYQAAADaAAADPv749/pnbHlmAAACYAAAC3AAABHQZg6OcWhlYWQAAA3QAAAAKwAAADYZw251aGhlYQAADfwAAAAdAAAAJA+RCLFobX
1R4AAAOHAAAABMAAACM744AAGxvY2EAAA4wAAAASAAAAEhF6kqubWF4cAAADngAAAAfAAAAIAE0AIFuYW1lAAAOmAAAASUAAAIK1cf1oHBvc3QAAA/AAAABJAAAAdPExYuNeJxjYGRgYOBiMGCwY2BycfMJYeDLSSzJY5BiYGGAAJA8MpsxJzM9kYEDxgPKsYBpDiBmg4gCACY7BUgAeJxjYGS7wTiBgZWBgaWQ5RkDA8MvCM0cwxDOeI6BgYmBlZkBKwhIc01hcPjI+FGJHcRdyA4RZgQRADK3CxEAAHic7dFZbsMgAEXRS0ycyZnnOeG7y+qC8pU1dHusIOXxuoxaOlwZYWQB0Aea4quIEN4E9LzKbKjzDeM6H/mua6Lmc/p8yhg0lvdYx15ZG8uOLQOGjMp3EzqmzJizYMmKNRu27Nhz4MiJMxeu3Ljz4Ekqm7T8P52G8PP3lnTOVk++Z6iN6QZzNN1F7ptuN7eGOjDUoaGODHVsuvU8MdTO9Hd5aqgzQ50b6sJQl4a6MtS1oW4MdWuoO0PdG+rBUI+GejLUs6FeDPVqqDdDvRvqw1CfhpqM9At0iFLaAAB4nJ1YDXBTVRZ+5/22TUlJ8we0pHlJm7RJf5O8F2j6EymlSPkpxaL8U2xpa3DKj0CBhc2IW4eWKSokIoLsuMqssM64f+jA4HSdWXXXscBq67IOs3FXZ1ZYWVyRFdo899yXtIBQZ90k7717zz3v3HPPOfd854YCCj9cL9dL0RQFOqCbGJnrHb5EayiKIWN8iA/hWBblo6hUWm8TtCDwE80WMJus/irwyxOdxeB0MDb14VNJHnXYoLLSl6FfCUYO9nYPTA8Epg9090LprfbBbZ2hY0UlJUXHQp3/vtWkS6EBv8+rPMq5u9692f/dNxJNiqwC1xPE9TCUgCsSdQWgE3XQD25lkG4CN2xmTcOXWBOyser6RN6KnGbKSbmQ3+d0OI1m2W8QzLLkI2sykrWAgJJEtA8vGGW/2Q+CmT3n8zS9wZwu2DCvtuZKZN3xkrLh36yCZuUomQSqGpY8t/25VfHVhw8z4ebGBtfLb0ya9PCaDc+8dGTvk2dsh6z7WzvowlXKUSWo9MJ15a3KrEP2loOr2Ojhw6iW6hf2BDdEccQvZGpaAy7YovSwq8kr7HGllxpd71rkS6G0Sf11sl9OvMK1+jwPPODxjUwkOim9CU3ix1wNjXDfmJSEn618Bs6lpWwUpU+8PCqLMY650zjq8VhCIP17NEKTx3eaLL+s5Pi6yJWaWjTHLR1jYzPSV9VF/6Ojdb/1kO3Mk3uhHC0x6gc1BjlKQ+nQFxTYdaJkZ7ySVxLBbhR1dsboNXp1tCYKW2LRaEzpYcIx2BKNxaL0ZaUnSqfFoiNhHKR/GkX6PWUSAaJelQaqZL1EpoHNsajSEyPSoJ9IjhIxTdjHLmwZvhRDOiFTY/YeQnvrVZmiTQtGncECXtFTBZLOVwwMRgoXHAkXzMzPn1nAJJ8jYSbMDaqN2waGLzNhih/bZynUBMpIWSg7VYi7
1DRx2m8ALkIdRCJwI6ArJx2EI8kaDWeTQKeAFk9fjl/1AvwktjQ1P7NjyMGQyfd4vjipX6M/i52D7Cq80kqlcxEcGXRr/FEcgs0u5uGgB4VWuMFfpdn2Re6Hi3PqzmxWKsz6+ae2Pn9hXXw/fqM859UiGC0oKYYILJBqJrsn1Z1E5qOs9rQCiUQRREjm8yJcbHF5cUJufX1vAHlefw0XgUoboS3ETfQlTxBC4SOtuE8VPRJTBSCQSjZCpk7Gqzu+masaZ2y7Zjehho4F3g82BNDkAHpORG4+OCS+f6JTPmtRn/PH1kch6d04sp7AQb25aQ/pqUyXeQ8vrebG8OYQdXOQ+585u0sdW9rqalzRURiJ+9F4MweRFrKUjl1GUYhH1A27WOHw5cTFSFPMo9EeUIGnQTZHIaJ7AHLaOKsOODaNF9jkBjYG2QEsQ2xjMUAx2bBEbeTBWMHwskBjngq56S/yfgkBnWBa4K9sqKtq2t1UI8S9He5XuBRbawAdatrQEAi30Aks2+LM8WeCbalVZkWNylvJ+dqJnzVb+OHlSoKW8nPCP7Rd+CcZ2DdWAGqJ2CBFOphgywFFCFBNtfAbGtNPBCwxvygHeYMZMY9ZboBqwq/pVrsbgN5tkv152ODlbMfiqwGMBgxa4Exz3QhovRIUp6acqZmQzRq0ypDXS2TPLT02YIkQETnOE445oOGxOmXAqUJNNG7XgupMjPq2ua9asrj5yY/yuKteO1Kx0YNJTufrirLe1mZnat7OL6rnUdCWenpW6I8mAnbsY8KWs1PuSovCW9A/Z25PQ24a7cNOqgmTkLmBMgh4THgc4b9k2IVv1/g/F5nGljwPLfOgHAzJzh45V/4+WenTzmMtR5Z7us2Tys909UHqrPY7KbckoxRvRHhmVc3cJGE97uml0R1S0jdULVl7EvZtDFVBF35N9cEdjpgmAiOlFZ+Dtoh93+D3zzHr8RRNZQhnCNMNbcegOvpEwZoL+06cJQ07h+th3fZ/7PVbVC6ngTAV/KoLFuO6+2KFcU651gEb5ugPSIb1D+Xp8V4+k3sEIGnw5mYe4If4k1lFYr6SCzmM2EQ8iWtmwjnBI9kTwe1TlfAmXh7H02by9fW2gsjKwtv0aaURKil4OdV7rDL1MXIFNrhdxohcZXYTnq47WisrKitaObbf5+yvkLi5J6lCNZZ+B6GC38VNBZBDidSS/+mSvh6s+srgC8pyKMvDtt+de3c9fU76ZPfuM8ud4Kv0fyP/LqfepMT/3oZxSqpZaTa1DaQYLY8TFsHYbWYsPoRhRWfL5eSSQbhUGgGC3YLbVMk6PitTFNGpAsNrC6D1VNBKgBHMejaiuRWEWGgsSDBTJjqWIl8kJLlsaLJ2tXDr6xGfT85bM2Q06a46x2HTgvdnV8z5YDy/27J4zt6x2VtkzjoYpkq36kaBr4eQSg7tyiVweWubXZugtadl58ydapfbORfKsDTuZ0OBgx4cfdjCf5tbWNITnL120fdOi1RV1C3uKGzNdwYLcMvZ3BxoPyTOCD1XvXTp7U10gWCVmTV9b3r2z0SkGWovb2hp9I89O8a2smlyaO8muMU+dRmtzp60IzAoFpjLr1n388boLyf0dRvxhsHZ0qbWqDkwqvvpkj4l0fY6EIXRi5sQSrAvsVYwXRy4qJ2EVtD1AN7a0HWth9ymvL1xc3WTUKK/TAHA/bXDVtVWfOMfuGxGZv4Ln/jVr9jc3j1yMv0tndmyt9Vq88Y9gH1wtLX3KWjot5++jWHgAoZZkQ14wGQ20Fli71UmKJAy4xKMSTGbVdybW7FDDAut9XpD5AzWrYO7zQ8qffqF8+Ynd/clrHcdyxGy3a/3+mfNnzC/cBsveTjnTvXf1o6vzOlZw7WtqtdmPK/Errz/6NNtD72zmNOZfbmYdTGHfoofqI79Oc+R2n1lrnL6pOm0Up7kwxhTW12Amm7WYkXR2qYrF2AmgmbAsxZjwy1xpg/m1Je2vrp8v/nz2xpmlBg4E9hrMU341wVpTOh/OfmGvAnra8q6uctr60ZQHV3Q+WMQJykMj8ZsWn2QBOmmHMB+m5pDIpTFonYigiaKAhGEiAHF7EliVnQkjoLVIMPtJpBKHYd3A8GYH9jJzrWwmHx5Qjp7vDAX0suGRym1vtm/9W1/HyR8vczfMs6Sk8DSv855/5dlX9oQq52hT8syyp2rx5Id17IAyAM3wIjQPMOHzytEB64q6D5zT91yNbnx3V/nqnd017S9Y0605k3izoXLpsxde2n38yoOV9s1LcjwzNjbdX6asnBVaBj/6/DwKwPkpcqbDG7BnsXoSqWnUAmottYF6jMSdVyYZh3zVXCjwTiwwHH6sGuRiEHQGzuRX6whZkp123oy1BWE2mEfJ/tvIRtM4ZM5bDXiMsPMaAKOTyc5uL57rqyyc5y5JE5pm1i2S2iUX0CcaQ6lC6Zog7JqSqZmYlosl2K6pwNA84zRnQW6SaALYZQGW5lhCtU/W34N6o+bKfZ8cf3/Cl/+iTX3wBzpOY4mRkeNf3rptycGSshQWgGbYt5jFc2e0+DglIrwl6DVWQ7BuwaJ3Xk1J4VL5urnLl/Wf+gHU/hZoZdKNym6lG+I34FaNeZKcSpJIo2IeCVvpdsDGfKvzJnAwmeD37Ow65ZWwSowpgwX5T69s/rB55dP5BcpgDKFV8p7q2sn/1uc93bVzT/w6UrCqDTWvfCq/oCD/qZXNoUj8BL5Kp6GU017frfNXkAtiiyf/SOCEeLqnd8R/Ql9GlCRfctS6k5chvIBuQ1zCCjoCHL2DHNHIXxMJ3kQeO8lbsUXONeSfA5EjcG6/E+KdhN4bP04vBhdi883+BFBzQbxFbvZzQeY9LNBZc0FNfn5NwfDn6rCTnTw6R8o+gfpf5hCom33cRuiTlss3KHmZjD+BPN+5gXuA2ziS/Q73mLxUkpbKN/eqwz5uK0X9F3h2d1V4nGNgZGBgAOJd776+iue3+crAzc4AAje5Bfcg0xz9YHEOBiYQBQA8FQlFAHicY2BkYGBnAAGOPgaG//85+hkYGVCBMgBGGwNYAAAAeJxjYGBgYB8EmKOPgQEAQ04BfgAAAAAAAA4AaAB+AMwA4AECAUIBbAGYAcICGAJYArQC4AMwA7AD3gQwBJYE3AUkBWYFigYgBmYGtAbqB1gIEghYCG4IhAi2COh4nGNgZGBgUGYoZWBnAAEmIOYCQgaG/2A+AwAYCQG2AHicXZBNaoNAGIZfE5PQCKFQ2lUps2oXBfOzzAESyDKBQJdGR2NQR3QSSE/QE/QEPUUPUHqsvsrXjTMw83zPvPMNCuAWP3DQDAejdm1GjzwS7pMmwi75XngAD4/CQ/oX4TFe4Qt7uMMbOzjuDc0EmXCP/C7cJ38Iu+RP4QEe8CU8pP8WHmOPX2EPz87TPo202ey2OjlnQSXV/6arOjWFmvszMWtd6CqwOlKHq6ovycLaWMWVydXKFFZnmVFlZU46tP7R2nI5ncbi/dDkfDtFBA2DDXbYkhKc+V0Bqs5Zt9JM1HQGBRTm/EezTmZNKtpcAMs9Yu6AK9caF76zoLWIWcfMGOSkVduvSWechqZsz040Ib2PY3urxBJTzriT95lipz+TN1fmAAAAeJxtkMl2wjAMRfOAhABlKm2h80C3+ajgCKKDY6cegP59TYBzukAL+z1Zsq8ctaJTTKPrsUQLbXQQI0EXKXroY4AbDDHCGBNMcYsZ7nCPB8yxwCOe8IwXvOIN7/jAJ76wxHfUqWX+OzgumWAjJMV17i0Ndlr6irLKO+qftdT7i6y4uFSUvCknay+lFYZIZaQcmfH/xIFdYn98bqhra1aKTM/6lWMnyaYirx1rFUQZFBkb2zJUtoXeJCeg0WnLtHeSFc3OtrnozNwqi0TkSpBMDB1nSde5oJXW23hTS2/T0LilglXX7dmFVxLnq5U0vYATHFk3zX3BOisoQHNDFDeZnqKDy9hRNawN7Vh727hFzcJ5c8TILrKZfH7tIPxAFP0BpLeJPA==) format("woff");font-weight:400;font-style:normal}.video-js .vjs-big-play-button .vjs-icon-placeholder:before,.video-js .vjs-play-control .vjs-icon-placeholder,.vjs-icon-play{font-family:VideoJS;font-weight:400;font-style:normal}.video-js .vjs-big-play-button .vjs-icon-placeholder:before,.video-js .vjs-play-control .vjs-icon-placeholder:before,.vjs-icon-play:before{content:"\\\\f101"}.vjs-icon-play-circle{font-family:VideoJS;font-weight:400;font-style:normal}.vjs-icon-play-circle:before{content:"\\\\f102"}.video-js .vjs-play-control.vjs-playing .vjs-icon-placeholder,.vjs-icon-pause{font-family:VideoJS;font-weight:400;font-style:normal}.video-js .vjs-play-control.vjs-playing .vjs-icon-placeholder:before,.vjs-icon-pause:before{content:"\\\\f103"}.video-js .vjs-mute-control.vjs-vol-0 .vjs-icon-placeholder,.vjs-icon-volume-mute{font-family:VideoJS;font-weight:400;font-style:normal}.video-js .vjs-mute-control.vjs-vol-0 .vjs-icon-placeholder:before,.vjs-icon-volume-mute:before{content:"\\\\f104"}.video-js .vjs-mute-control.vjs-vol-1 .vjs-icon-placeholder,.vjs-icon-volume-low{font-family:VideoJS;font-weight:400;font-style:normal}.video-js .vjs-mute-control.vjs-vol-1 .vjs-icon-placeholder:before,.vjs-icon-volume-low:before{content:"\\\\f105"}.video-js .vjs-mute-control.vjs-vol-2 .vjs-icon-placeholder,.vjs-icon-volume-mid{font-family:VideoJS;font-weight:400;font-style:normal}.video-js .vjs-mute-control.vjs-vol-2 .vjs-icon-placeholder:before,.vjs-icon-volume-mid:before{content:"\\\\f106"}.video-js .vjs-mute-control .vjs-icon-placeholder,.vjs-icon-volume-high{font-family:VideoJS;font-weight:400;font-style:normal}.video-js .vjs-mute-control .vjs-icon-placeholder:before,.vjs-icon-volume-high:before{content:"\\\\f107"}.video-js .vjs-fullscreen-control .vjs-icon-placeholder,.vjs-icon-fullscreen-enter{font-family:VideoJS;font-weight:400;font-style:normal}.video-js .vjs-fullscreen-control .vjs-icon-placeholder:before,.vjs-icon-fullscreen-enter:before{content:"\\\\f108"}.video-js.vjs-fullscreen .vjs-fullscreen-control .vjs-icon-placeholder,.vjs-icon-fullscreen-exit{font-family:VideoJS;font-weight:400;font-style:normal}.video-js.vjs-fullscreen .vjs-fullscreen-control .vjs-icon-placeholder:before,.vjs-icon-fullscreen-exit:before{content:"\\\\f109"}.vjs-icon-square{font-family:VideoJS;font-weight:400;font-style:normal}.vjs-icon-square:before{content:"\\\\f10a"}.vjs-icon-spinner{font-family:VideoJS;font-weight:400;font-style:normal}.vjs-icon-spinner:before{content:"\\\\f10b"}.video-js .vjs-subs-caps-button .vjs-icon-placeholder,.video-js .vjs-subtitles-button .vjs-icon-placeholder,.video-js.video-js:lang(en-AU) .vjs-subs-caps-button .vjs-icon-placeholder,.video-js.video-js:lang(en-GB) .vjs-subs-caps-button .vjs-icon-placeholder,.video-js.video-js:lang(en-IE) .vjs-subs-caps-button .vjs-icon-placeholder,.video-js.video-js:lang(en-NZ) .vjs-subs-caps-button .vjs-icon-placeholder,.vjs-icon-subtitles{font-family:VideoJS;font-weight:400;font-style:normal}.video-js .vjs-subs-caps-button .vjs-icon-placeholder:before,.video-js .vjs-subtitles-button .vjs-icon-placeholder:before,.video-js.video-js:lang(en-AU) .vjs-subs-caps-button .vjs-icon-placeholder:before,.video-js.video-js:lang(en-GB) .vjs-subs-caps-button .vjs-icon-placeholder:before,.video-js.video-js:lang(en-IE) .vjs-subs-caps-button .vjs-icon-placeholder:before,.video-js.video-js:lang(en-NZ) .vjs-subs-caps-button .vjs-icon-placeholder:before,.vjs-icon-subtitles:before{content:"\\\\f10c"}.video-js .vjs-captions-button .vjs-icon-placeholder,.video-js:lang(en) .vjs-subs-caps-button .vjs-icon-placeholder,.video-js:lang(fr-CA) .vjs-subs-caps-button .vjs-icon-placeholder,.vjs-icon-captions{font-family:VideoJS;font-weight:400;font-style:normal}.video-js .vjs-captions-button .vjs-icon-placeholder:before,.video-js:lang(en) .vjs-subs-caps-button .vjs-icon-placeholder:before,.video-js:lang(fr-CA) .vjs-subs-caps-button .vjs-icon-placeholder:before,.vjs-icon-captions:before{content:"\\\\f10d"}.video-js .vjs-chapters-button .vjs-icon-placeholder,.vjs-icon-chapters{font-family:VideoJS;font-weight:400;font-style:normal}.video-js .vjs-chapters-button .vjs-icon-placeholder:before,.vjs-icon-chapters:before{content:"\\\\f10e"}
1.vjs-icon-share{font-family:VideoJS;font-weight:400;font-style:normal}.vjs-icon-share:before{content:"\\\\f10f"}.vjs-icon-cog{font-family:VideoJS;font-weight:400;font-style:normal}.vjs-icon-cog:before{content:"\\\\f110"}.video-js .vjs-play-progress,.video-js .vjs-volume-level,.vjs-icon-circle,.vjs-seek-to-live-control .vjs-icon-placeholder{font-family:VideoJS;font-weight:400;font-style:normal}.video-js .vjs-play-progress:before,.video-js .vjs-volume-level:before,.vjs-icon-circle:before,.vjs-seek-to-live-control .vjs-icon-placeholder:before{content:"\\\\f111"}.vjs-icon-circle-outline{font-family:VideoJS;font-weight:400;font-style:normal}.vjs-icon-circle-outline:before{content:"\\\\f112"}.vjs-icon-circle-inner-circle{font-family:VideoJS;font-weight:400;font-style:normal}.vjs-icon-circle-inner-circle:before{content:"\\\\f113"}.vjs-icon-hd{font-family:VideoJS;font-weight:400;font-style:normal}.vjs-icon-hd:before{content:"\\\\f114"}.video-js .vjs-control.vjs-close-button .vjs-icon-placeholder,.vjs-icon-cancel{font-family:VideoJS;font-weight:400;font-style:normal}.video-js .vjs-control.vjs-close-button .vjs-icon-placeholder:before,.vjs-icon-cancel:before{content:"\\\\f115"}.video-js .vjs-play-control.vjs-ended .vjs-icon-placeholder,.vjs-icon-replay{font-family:VideoJS;font-weight:400;font-style:normal}.video-js .vjs-play-control.vjs-ended .vjs-icon-placeholder:before,.vjs-icon-replay:before{content:"\\\\f116"}.vjs-icon-facebook{font-family:VideoJS;font-weight:400;font-style:normal}.vjs-icon-facebook:before{content:"\\\\f117"}.vjs-icon-gplus{font-family:VideoJS;font-weight:400;font-style:normal}.vjs-icon-gplus:before{content:"\\\\f118"}.vjs-icon-linkedin{font-family:VideoJS;font-weight:400;font-style:normal}.vjs-icon-linkedin:before{content:"\\\\f119"}.vjs-icon-twitter{font-family:VideoJS;font-weight:400;font-style:normal}.vjs-icon-twitter:before{content:"\\\\f11a"}.vjs-icon-tumblr{font-family:VideoJS;font-weight:400;font-style:normal}.vjs-icon-tumblr:before{content:"\\\\f11b"}.vjs-icon-pinterest{font-family:VideoJS;font-weight:400;font-style:normal}.vjs-icon-pinterest:before{content:"\\\\f11c"}.video-js .vjs-descriptions-button .vjs-icon-placeholder,.vjs-icon-audio-description{font-family:VideoJS;font-weight:400;font-style:normal}.video-js .vjs-descriptions-button .vjs-icon-placeholder:before,.vjs-icon-audio-description:before{content:"\\\\f11d"}.video-js .vjs-audio-button .vjs-icon-placeholder,.vjs-icon-audio{font-family:VideoJS;font-weight:400;font-style:normal}.video-js .vjs-audio-button .vjs-icon-placeholder:before,.vjs-icon-audio:before{content:"\\\\f11e"}.vjs-icon-next-item{font-family:VideoJS;font-weight:400;font-style:normal}.vjs-icon-next-item:before{content:"\\\\f11f"}.vjs-icon-previous-item{font-family:VideoJS;font-weight:400;font-style:normal}.vjs-icon-previous-item:before{content:"\\\\f120"}.video-js .vjs-picture-in-picture-control .vjs-icon-placeholder,.vjs-icon-picture-in-picture-enter{font-family:VideoJS;font-weight:400;font-style:normal}.video-js .vjs-picture-in-picture-control .vjs-icon-placeholder:before,.vjs-icon-picture-in-picture-enter:before{content:"\\\\f121"}.video-js.vjs-picture-in-picture .vjs-picture-in-picture-control .vjs-icon-placeholder,.vjs-icon-picture-in-picture-exit{font-family:VideoJS;font-weight:400;font-style:normal}.video-js.vjs-picture-in-picture .vjs-picture-in-picture-control .vjs-icon-placeholder:before,.vjs-icon-picture-in-picture-exit:before{content:"\\\\f122"}.video-js{display:block;vertical-align:top;box-sizing:border-box;color:#fff;background-color:#000;position:relative;padding:0;font-size:10px;line-height:1;font-weight:400;font-style:normal;font-family:Arial,Helvetica,sans-serif;word-break:initial}.video-js:-moz-full-screen{position:absolute}.video-js:-webkit-full-screen{width:100%!important;height:100%!important}.video-js[tabindex="-1"]{outline:0}.video-js *,.video-js :after,.video-js :before{box-sizing:inherit}.video-js ul{font-family:inherit;font-size:inherit;line-height:inherit;list-style-position:outside;margin-left:0;margin-right:0;margin-top:0;margin-bottom:0}.video-js.vjs-16-9,.video-js.vjs-4-3,.video-js.vjs-fluid{width:100%;max-width:100%;height:0}.video-js.vjs-16-9{padding-top:56.25%}.video-js.vjs-4-3{padding-top:75%}.video-js.vjs-fill{width:100%;height:100%}.video-js .vjs-tech{position:absolute;top:0;left:0;width:100%;height:100%}body.vjs-full-window{padding:0;margin:0;height:100%}.vjs-full-window .video-js.vjs-fullscreen{position:fixed;overflow:hidden;z-index:1000;left:0;top:0;bottom:0;right:0}.video-js.vjs-fullscreen:not(.vjs-ios-native-fs){width:100%!important;height:100%!important;padding-top:0!important}.video-js.vjs-fullscreen.vjs-user-inactive{cursor:none}.vjs-hidden{display:none!important}.vjs-disabled{opacity:.5;cursor:default}.video-js .vjs-offscreen{height:1px;left:-9999px;position:absolute;top:0;width:1px}.vjs-lock-showing{display:block!important;opacity:1;visibility:visible}.vjs-no-js{padding:20px;color:#fff;background-color:#000;font-size:18px;font-family:Arial,Helvetica,sans-serif;text-align:center;width:300px;height:150px;margin:0 auto}.vjs-no-js a,.vjs-no-js a:visited{color:#66a8cc}.video-js .vjs-big-play-button{font-size:3em;line-height:1.5em;height:1.63332em;width:3em;display:block;position:absolute;top:10px;left:10px;padding:0;cursor:pointer;opacity:1;border:.06666em solid #fff;background-color:#2b333f;background-color:rgba(43,51,63,.7);border-radius:.3em;transition:all .4s}.vjs-big-play-centered .vjs-big-play-button{top:50%;left:50%;margin-top:-.81666em;margin-left:-1.5em}.video-js .vjs-big-play-button:focus,.video-'),t[0].s.push('js:hover .vjs-big-play-button{border-color:#fff;background-color:#73859f;background-color:rgba(115,133,159,.5);transition:all 0s}.vjs-controls-disabled .vjs-big-play-button,.vjs-error .vjs-big-play-button,.vjs-has-started .vjs-big-play-button,.vjs-using-native-control
1s .vjs-big-play-button{display:none}.vjs-has-started.vjs-paused.vjs-show-big-play-button-on-pause .vjs-big-play-button{display:block}.video-js button{background:0 0;border:none;color:inherit;display:inline-block;font-size:inherit;line-height:inherit;text-transform:none;text-decoration:none;transition:none;-webkit-appearance:none;-moz-appearance:none;appearance:none}.vjs-control .vjs-button{width:100%;height:100%}.video-js .vjs-control.vjs-close-button{cursor:pointer;height:3em;position:absolute;right:0;top:.5em;z-index:2}.video-js .vjs-modal-dialog{background:rgba(0,0,0,.8);background:linear-gradient(180deg,rgba(0,0,0,.8),rgba(255,255,255,0));overflow:auto}.video-js .vjs-modal-dialog>*{box-sizing:border-box}.vjs-modal-dialog .vjs-modal-dialog-content{font-size:1.2em;line-height:1.5;padding:20px 24px;z-index:1}.vjs-menu-button{cursor:pointer}.vjs-menu-button.vjs-disabled{cursor:default}.vjs-workinghover .vjs-menu-button.vjs-disabled:hover .vjs-menu{display:none}.vjs-menu .vjs-menu-content{display:block;padding:0;margin:0;font-family:Arial,Helvetica,sans-serif;overflow:auto}.vjs-menu .vjs-menu-content>*{box-sizing:border-box}.vjs-scrubbing .vjs-control.vjs-menu-button:hover .vjs-menu{display:none}.vjs-menu li{list-style:none;margin:0;padding:.2em 0;line-height:1.4em;font-size:1.2em;text-align:center;text-transform:lowercase}.js-focus-visible .vjs-menu li.vjs-menu-item:hover,.vjs-menu li.vjs-menu-item:focus,.vjs-menu li.vjs-menu-item:hover{background-color:#73859f;background-color:rgba(115,133,159,.5)}.js-focus-visible .vjs-menu li.vjs-selected:hover,.vjs-menu li.vjs-selected,.vjs-menu li.vjs-selected:focus,.vjs-menu li.vjs-selected:hover{background-color:#fff;color:#2b333f}.vjs-menu li.vjs-menu-title{text-align:center;text-transform:uppercase;font-size:1em;line-height:2em;padding:0;margin:0 0 .3em 0;font-weight:700;cursor:default}.vjs-menu-button-popup .vjs-menu{display:none;position:absolute;bottom:0;width:10em;left:-3em;height:0;margin-bottom:1.5em;border-top-color:rgba(43,51,63,.7)}.vjs-menu-button-popup .vjs-menu .vjs-menu-content{background-color:#2b333f;background-color:rgba(43,51,63,.7);position:absolute;width:100%;bottom:1.5em;max-height:15em}.vjs-layout-tiny .vjs-menu-button-popup .vjs-menu .vjs-menu-content,.vjs-layout-x-small .vjs-menu-button-popup .vjs-menu .vjs-menu-content{max-height:5em}.vjs-layout-small .vjs-menu-button-popup .vjs-menu .vjs-menu-content{max-height:10em}.vjs-layout-medium .vjs-menu-button-popup .vjs-menu .vjs-menu-content{max-height:14em}.vjs-layout-huge .vjs-menu-button-popup .vjs-menu .vjs-menu-content,.vjs-layout-large .vjs-menu-button-popup .vjs-menu .vjs-menu-content,.vjs-layout-x-large .vjs-menu-button-popup .vjs-menu .vjs-menu-content{max-height:25em}.vjs-menu-button-popup .vjs-menu.vjs-lock-showing,.vjs-workinghover .vjs-menu-button-popup.vjs-hover .vjs-menu{display:block}.video-js .vjs-menu-button-inline{transition:all .4s;overflow:hidden}.video-js .vjs-menu-button-inline:before{width:2.222222222em}.video-js .vjs-menu-button-inline.vjs-slider-active,.video-js .vjs-menu-button-inline:focus,.video-js .vjs-menu-button-inline:hover,.video-js.vjs-no-flex .vjs-menu-button-inline{width:12em}.vjs-menu-button-inline .vjs-menu{opacity:0;height:100%;width:auto;position:absolute;left:4em;top:0;padding:0;margin:0;transition:all .4s}.vjs-menu-button-inline.vjs-slider-active .vjs-menu,.vjs-menu-button-inline:focus .vjs-menu,.vjs-menu-button-inline:hover .vjs-menu{display:block;opacity:1}.vjs-no-flex .vjs-menu-button-inline .vjs-menu{display:block;opacity:1;position:relative;width:auto}.vjs-no-flex .vjs-menu-button-inline.vjs-slider-active .vjs-menu,.vjs-no-flex .vjs-menu-button-inline:focus .vjs-menu,.vjs-no-flex .vjs-menu-button-inline:hover .vjs-menu{width:auto}.vjs-menu-button-inline .vjs-menu-content{width:auto;height:100%;margin:0;overflow:hidden}.video-js .vjs-control-bar{display:none;width:100%;position:absolute;bottom:0;left:0;right:0;height:3em;background-color:#2b333f;background-color:rgba(43,51,63,.7)}.vjs-has-started .vjs-control-bar{display:flex;visibility:visible;opacity:1;transition:visibility .1s,opacity .1s}.vjs-has-started.vjs-user-inactive.vjs-playing .vjs-control-bar{visibility:visible;opacity:0;transition:visibility 1s,opacity 1s}.vjs-controls-disabled .vjs-control-bar,.vjs-error .vjs-control-bar,.vjs-using-native-control
1s .vjs-control-bar{display:none!important}.vjs-audio.vjs-has-started.vjs-user-inactive.vjs-playing .vjs-control-bar{opacity:1;visibility:visible}.vjs-has-started.vjs-no-flex .vjs-control-bar{display:table}.video-js .vjs-control{position:relative;text-align:center;margin:0;padding:0;height:100%;width:4em;flex:none}.vjs-button>.vjs-icon-placeholder:before{font-size:1.8em;line-height:1.67}.video-js .vjs-control:focus,.video-js .vjs-control:focus:before,.video-js .vjs-control:hover:before{text-shadow:0 0 1em #fff}.video-js .vjs-control-text{border:0;clip:rect(0 0 0 0);height:1px;overflow:hidden;padding:0;position:absolute;width:1px}.vjs-no-flex .vjs-control{display:table-cell;vertical-align:middle}.video-js .vjs-custom-control-spacer{display:none}.video-js .vjs-progress-control{cursor:pointer;flex:auto;display:flex;align-items:center;min-width:4em;touch-action:none}.video-js .vjs-progress-control.disabled{cursor:default}.vjs-live .vjs-progress-control{display:none}.vjs-liveui .vjs-progress-control{display:flex;align-items:center}.vjs-no-flex .vjs-progress-control{width:auto}.video-js .vjs-progress-holder{flex:auto;transition:all .2s;height:.3em}.video-js .vjs-progress-control .vjs-progress-holder{margin:0 10px}.video-js .vjs-progress-control:hover .vjs-progress-holder{font-size:1.6666666667em}.video-js .vjs-progress-control:hover .vjs-progress-holder.disabled{font-size:1em}.video-js .vjs-progress-holder .vjs-load-progress,.video-js .vjs-progress-holder .vjs-load-progress div,.video-js .vjs-progress-holder .vjs-play-progress{position:absolute;display:block;height:100%;margin:0;padding:0;width:0}.video-js .vjs-play-progress{background-color:#fff}.video-js .vjs-play-progress:before{font-size:.9em;position:absolute;right:-.5em;top:-.3333333333em;z-index:1}.video-js .vjs-load-progress{background:rgba(115,133,159,.5)}.video-js .vjs-load-progress div{background:rgba(115,133,159,.75)}.video-js .vjs-time-tooltip{background-color:#fff;background-color:rgba(255,255,255,.8);border-radius:.3em;color:#000;float:right;font-family:Arial,Helvetica,sans-serif;font-size:1em;padding:6px 8px 8px 8px;pointer-events:none;position:absolute;top:-3.4em;visibility:hidden;z-index:1}.video-js .vjs-progress-holder:focus .vjs-time-tooltip{display:none}.video-js .vjs-progress-control:hover .vjs-progress-holder:focus .vjs-time-tooltip,.video-js .vjs-progress-control:hover .vjs-time-tooltip{display:block;font-size:.6em;visibility:visible}.video-js .vjs-progress-control.disabled:hover .vjs-time-tooltip{font-size:1em}.video-js .vjs-progress-control .vjs-mouse-display{display:none;position:absolute;width:1px;height:100%;background-color:#000;z-index:1}.vjs-no-flex .vjs-progress-control .vjs-mouse-display{z-index:0}.video-js .vjs-progress-control:hover .vjs-mouse-display{display:block}.video-js.vjs-user-inactive .vjs-progress-control .vjs-mouse-display{visibility:hidden;opacity:0;transition:visibility 1s,opacity 1s}.video-js.vjs-user-inactive.vjs-no-flex .vjs-progress-control .vjs-mouse-display{display:none}.vjs-mouse-display .vjs-time-tooltip{color:#fff;background-color:#000;background-color:rgba(0,0,0,.8)}.video-js .vjs-slider{position:relative;cursor:pointer;padding:0;margin:0 .45em 0 .45em;-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;background-color:#73859f;background-color:rgba(115,133,159,.5)}.video-js .vjs-slider.disabled{cursor:default}.video-js .vjs-slider:focus{text-shadow:0 0 1em #fff;box-shadow:0 0 1em #fff}.video-js .vjs-mute-control{cursor:pointer;flex:none}.video-js .vjs-volume-control{cursor:pointer;margin-right:1em;display:flex}.video-js .vjs-volume-control.vjs-volume-horizontal{width:5em}.video-js .vjs-volume-panel .vjs-volume-control{visibility:visible;opacity:0;width:1px;height:1px;margin-left:-1px}.video-js .vjs-volume-panel{transition:width 1s}.video-js .vjs-volume-panel .vjs-volume-control.vjs-slider-active,.video-js .vjs-volume-panel .vjs-volume-control:active,.video-js .vjs-volume-panel.vjs-hover .vjs-mute-control~.vjs-volume-control,.video-js .vjs-volume-panel.vjs-hover .vjs-volume-control,.video-js .vjs-volume-panel:active .vjs-volume-control,.video-js .vjs-volume-panel:focus .vjs-volume-control{visibility:visible;opacity:1;position:relative;transition:visibility .1s,opacity .1s,height .1s,width .1s,left 0s,top 0s}.video-js .vjs-volume-panel .vjs-volume-control.vjs-slider-active.vjs-volume-horizontal,.video-js .vjs-volume-panel .vjs-volume-control:active.vjs-volume-horizontal,.video-js .vjs-volume-panel.vjs-hover .vjs-mute-control~.vjs-volume-control.vjs-volume-horizontal,.video-js .vjs-volume-panel.vjs-hover .vjs-volume-control.vjs-volume-horizontal,.video-js .vjs-volume-panel:active .vjs-volume-control.vjs-volume-horizontal,.video-js .vjs-volume-panel:focus .vjs-volume-control.vjs-volume-horizontal{width:5em;height:3em;margin-right:0}.video-js .vjs-volume-panel .vjs-volume-control.vjs-slider-active.vjs-volume-vertical,.video-js .vjs-volume-panel .vjs-volume-control:active.vjs-volume-vertical,.video-js .vjs-volume-panel.vjs-hover .vjs-mute-control~.vjs-volume-control.vjs-volume-vertical,.video-js .vjs-volume-panel.vjs-hover .vjs-volume-control.vjs-volume-vertical,.video-js .vjs-volume-panel:active .vjs-volume-control.vjs-volume-vertical,.video-js .vjs-volume-panel:focus .vjs-volume-control.vjs-volume-vertical{left
1:-3.5em;transition:left 0s}.video-js .vjs-volume-panel.vjs-volume-panel-horizontal.vjs-hover,.video-js .vjs-volume-panel.vjs-volume-panel-horizontal.vjs-slider-active,.video-js .vjs-volume-panel.vjs-volume-panel-horizontal:active{width:10em;transition:width .1s}.video-js .vjs-volume-panel.vjs-volume-panel-horizontal.vjs-mute-toggle-only{width:4em}.video-js .vjs-volume-panel .vjs-volume-control.vjs-volume-vertical{height:8em;width:3em;left:-3000em;transition:visibility 1s,opacity 1s,height 1s 1s,width 1s 1s,left 1s 1s,top 1s 1s}.video-js .vjs-volume-panel .vjs-volume-control.vjs-volume-horizontal{transition:visibility 1s,opacity 1s,height 1s 1s,width 1s,left 1s 1s,top 1s 1s}.video-js.vjs-no-flex .vjs-volume-panel .vjs-volume-control.vjs-volume-horizontal{width:5em;height:3em;visibility:visible;opacity:1;position:relative;transition:none}.video-js.vjs-no-flex .vjs-volume-control.vjs-volume-vertical,.video-js.vjs-no-flex .vjs-volume-panel .vjs-volume-control.vjs-volume-vertical{position:absolute;bottom:3em;left:.5em}.video-js .vjs-volume-panel{display:flex}.video-js .vjs-volume-bar{margin:1.35em .45em}.vjs-volume-bar.vjs-slider-horizontal{width:5em;height:.3em}.vjs-volume-bar.vjs-slider-vertical{width:.3em;height:5em;margin:1.35em auto}.video-js .vjs-volume-level{position:absolute;bottom:0;left:0;background-color:#fff}.video-js .vjs-volume-level:before{position:absolute;font-size:.9em}.vjs-slider-vertical .vjs-volume-level{width:.3em}.vjs-slider-vertical .vjs-volume-level:before{top:-.5em;left:-.3em}.vjs-slider-horizontal .vjs-volume-level{height:.3em}.vjs-slider-horizontal .vjs-volume-level:before{top:-.3em;right:-.5em}.video-js .vjs-volume-panel.vjs-volume-panel-vertical{width:4em}.vjs-volume-bar.vjs-slider-vertical .vjs-volume-level{height:100%}.vjs-volume-bar.vjs-slider-horizontal .vjs-volume-level{width:100%}.video-js .vjs-volume-vertical{width:3em;height:8em;bottom:8em;background-color:#2b333f;background-color:rgba(43,51,63,.7)}.video-js .vjs-volume-horizontal .vjs-menu{left:-2em}.vjs-poster{display:inline-block;vertical-align:middle;background-repeat:no-repeat;background-position:50% 50%;background-size:contain;background-color:#000;cursor:pointer;margin:0;padding:0;position:absolute;top:0;right:0;bottom:0;left:0;height:100%}.vjs-has-started .vjs-poster{display:none}.vjs-audio.vjs-has-started .vjs-poster{display:block}.vjs-using-native-controls .vjs-poster{display:none}.video-js .vjs-live-control{display:flex;align-items:flex-start;flex:auto;font-size:1em;line-height:3em}.vjs-no-flex .vjs-live-control{display:table-cell;width:auto;text-align:left}.video-js.vjs-liveui .vjs-live-control,.video-js:not(.vjs-live) .vjs-live-control{display:none}.video-js .vjs-seek-to-live-control{align-items:center;cursor:pointer;flex:none;display:inline-flex;height:100%;padding-left:.5em;padding-right:.5em;font-size:1em;line-height:3em;width:auto;min-width:4em}.vjs-no-flex .vjs-seek-to-live-control{display:table-cell;width:auto;text-align:left}.video-js.vjs-live:not(.vjs-liveui) .vjs-seek-to-live-control,.video-js:not(.vjs-live) .vjs-seek-to-live-control{display:none}.vjs-seek-to-live-control.vjs-control.vjs-at-live-edge{cursor:auto}.vjs-seek-to-live-control .vjs-icon-placeholder{margin-right:.5em;color:#888}.vjs-seek-to-live-control.vjs-control.vjs-at-live-edge .vjs-icon-placeholder{color:red}.video-js .vjs-time-control{flex:none;font-size:1em;line-height:3em;min-width:2em;width:auto;padding-left:1em;padding-right:1em}.vjs-live .vjs-time-control{display:none}.video-js .vjs-current-time,.vjs-no-flex .vjs-current-time{display:none}.video-js .vjs-duration,.vjs-no-flex .vjs-duration{display:none}.vjs-time-divider{display:none;line-height:3em}.vjs-live .vjs-time-divider{display:none}.video-js .vjs-play-control{cursor:pointer}.video-js .vjs-play-control .vjs-icon-placeholder{flex:none}.vjs-text-track-display{position:absolute;bottom:3em;left:0;right:0;top:0;pointer-events:none}.video-js.vjs-user-inactive.vjs-playing .vjs-text-track-display{bottom:1em}.video-js .vjs-text-track{font-size:1.4em;text-align:center;margin-bottom:.1em}.vjs-subtitles{color:#fff}.vjs-captions{color:#fc6}.vjs-tt-cue{display:block}video::-webkit-media-text-track-display{transform:translateY(-3em)}.video-js.vjs-user-inactive.vjs-playing video::-webkit-media-text-track-display{transform:translateY(-1.5em)}.video-js .vjs-picture-in-picture-control{cursor:pointer;flex:none}.video-js .vjs-fullscreen-control{cursor:pointer;flex:none}.vjs-playback-rate .vjs-playback-rate-value,.vjs-playback-rate>.vjs-menu-button{position:absolute;top:0;left:0;width:100%;height:100%}.vjs-playback-rate .vjs-playback-rate-value{pointer-events:none;font-size:1.5em;line-height:2;text-align:center}.vjs-playback-rate .vjs-menu{width:4em;left:0}.vjs-error .vjs-error-display .vjs-modal-dialog-content{font-size:1.4em;text-align:center}.vjs-error .vjs-error-display:before{color:#fff;content:"X";font-family:Arial,Helvetica,sans-serif;font-size:4em;left:0;line-height:1;margin-top:-.5em;position:absolute;text-shadow:.05em .05em .1em #000;text-align:center;top:50%;vertical-align:middle;width:100%}.vjs-loading-spinner{display:none;position:absolute;top:50%;left:50%;margin:-25px 0 0 -25px;opacity:.85;text-align:left;border:6px solid rgba(43,51,63,.7);box-sizing:border-box;background-clip:padding-box;width:50px;height:50px;border-radius:25px;visibility:hidden}.vjs-seeking .vjs-loading-spinner,.vjs-waiting .vjs-loading-spinner{display:block;
1-webkit-animation:vjs-spinner-show 0s linear .3s forwards;animation:vjs-spinner-show 0s linear .3s forwards}.vjs-loading-spinner:after,.vjs-loading-spinner:before{content:"";position:absolute;margin:-6px;box-sizing:inherit;width:inherit;height:inherit;border-radius:inherit;opacity:1;border:inherit;border-color:transparent;border-top-color:#fff}.vjs-seeking .vjs-loading-spinner:after,.vjs-seeking .vjs-loading-spinner:before,.vjs-waiting .vjs-loading-spinner:after,.vjs-waiting .vjs-loading-spinner:before{-webkit-animation:vjs-spinner-spin 1.1s cubic-bezier(.6,.2,0,.8) infinite,vjs-spinner-fade 1.1s linear infinite;animation:vjs-spinner-spin 1.1s cubic-bezier(.6,.2,0,.8) infinite,vjs-spinner-fade 1.1s linear infinite}.vjs-seeking .vjs-loading-spinner:before,.vjs-waiting .vjs-loading-spinner:before{border-top-color:#fff}.vjs-seeking .vjs-loading-spinner:after,.vjs-waiting .vjs-loading-spinner:after{border-top-color:#fff;-webkit-animation-del'),t[1].s.push('js:hover .vjs-big-play-button{border-color:#fff;background-color:#73859f;background-color:rgba(115,133,159,.5);transition:all 0s}.vjs-controls-disabled .vjs-big-play-button,.vjs-error .vjs-big-play-button,.vjs-has-started .vjs-big-play-button,.vjs-using-native-controls .vjs-big-play-button{display:none}.vjs-has-started.vjs-paused.vjs-show-big-play-button-on-pause .vjs-big-play-button{display:block}.video-js button{background:0 0;border:none;color:inherit;display:inline-block;font-size:inherit;line-height:inherit;text-transform:none;text-decoration:none;transition:none;-webkit-appearance:none;-moz-appearance:none;appearance:none}.vjs-control .vjs-button{width:100%;height:100%}.video-js .vjs-control.vjs-close-button{cursor:pointer;height:3em;position:absolute;right:0;top:.5em;z-index:2}.video-js .vjs-modal-dialog{background:rgba(0,0,0,.8);background:linear-gradient(180deg,rgba(0,0,0,.8),rgba(255,255,255,0));overflow:auto}.video-js .vjs-modal-dialog>*{box-sizing:border-box}.vjs-modal-dialog .vjs-modal-dialog-content{font-size:1.2em;line-height:1.5;padding:20px 24px;z-index:1}.vjs-menu-button{cursor:pointer}.vjs-menu-button.vjs-disabled{cursor:default}.vjs-workinghover .vjs-menu-button.vjs-disabled:hover .vjs-menu{display:none}.vjs-menu .vjs-menu-content{display:block;padding:0;margin:0;font-family:Arial,Helvetica,sans-serif;overflow:auto}.vjs-menu .vjs-menu-content>*{box-sizing:border-box}.vjs-scrubbing .vjs-control.vjs-menu-button:hover .vjs-menu{display:none}.vjs-menu li{list-style:none;margin:0;padding:.2em 0;line-height:1.4em;font-size:1.2em;text-align:center;text-transform:lowercase}.js-focus-visible .vjs-menu li.vjs-menu-item:hover,.vjs-menu li.vjs-menu-item:focus,.vjs-menu li.vjs-menu-item:hover{background-color:#73859f;background-color:rgba(115,133,159,.5)}.js-focus-visible .vjs-menu li.vjs-selected:hover,.vjs-menu li.vjs-selected,.vjs-menu li.vjs-selected:focus,.vjs-menu li.vjs-selected:hover{background-color:#fff;color:#2b333f}.vjs-menu li.vjs-menu-title{text-align:center;text-transform:uppercase;font-size:1em;line-height:2em;padding:0;margin:0 0 .3em 0;font-weight:700;cursor:default}.vjs-menu-button-popup .vjs-menu{display:none;position:absolute;bottom:0;width:10em;left:-3em;height:0;margin-bottom:1.5em;border-top-color:rgba(43,51,63,.7)}.vjs-menu-button-popup .vjs-menu .vjs-menu-content{background-color:#2b333f;background-color:rgba(43,51,63,.7);position:absolute;width:100%;bottom:1.5em;max-height:15em}.vjs-layout-tiny .vjs-menu-button-popup .vjs-menu .vjs-menu-content,.vjs-layout-x-small .vjs-menu-button-popup .vjs-menu .vjs-menu-content{max-height:5em}.vjs-layout-small .vjs-menu-button-popup .vjs-menu .vjs-menu-content{max-height:10em}.vjs-layout-medium .vjs-menu-button-popup .vjs-menu .vjs-menu-content{max-height:14em}.vjs-layout-huge .vjs-menu-button-popup .vjs-menu .vjs-menu-content,.vjs-layout-large .vjs-menu-button-popup .vjs-menu .vjs-menu-content,.vjs-layout-x-large .vjs-menu-button-popup .vjs-menu .vjs-menu-content{max-height:25em}.vjs-menu-button-popup .vjs-menu.vjs-lock-showing,.vjs-workinghover .vjs-menu-button-popup.vjs-hover .vjs-menu{display:block}.video-js .vjs-menu-button-inline{transition:all .4s;overflow:hidden}.video-js .vjs-menu-button-inline:before{width:2.222222222em}.video-js .vjs-menu-button-inline.vjs-slider-active,.video-js .vjs-menu-button-inline:focus,.video-js .vjs-menu-button-inline:hover,.video-js.vjs-no-flex .vjs-menu-button-inline{width:12em}.vjs-menu-button-inline .vjs-menu{opacity:0;height:100%;width:auto;position:absolute;
1left:4em;top:0;padding:0;margin:0;transition:all .4s}.vjs-menu-button-inline.vjs-slider-active .vjs-menu,.vjs-menu-button-inline:focus .vjs-menu,.vjs-menu-button-inline:hover .vjs-menu{display:block;opacity:1}.vjs-no-flex .vjs-menu-button-inline .vjs-menu{display:block;opacity:1;position:relative;width:auto}.vjs-no-flex .vjs-menu-button-inline.vjs-slider-active .vjs-menu,.vjs-no-flex .vjs-menu-button-inline:focus .vjs-menu,.vjs-no-flex .vjs-menu-button-inline:hover .vjs-menu{width:auto}.vjs-menu-button-inline .vjs-menu-content{width:auto;height:100%;margin:0;overflow:hidden}.video-js .vjs-control-bar{display:none;width:100%;position:absolute;bottom:0;left:0;right:0;height:3em;background-color:#2b333f;background-color:rgba(43,51,63,.7)}.vjs-has-started .vjs-control-bar{display:flex;visibility:visible;opacity:1;transition:visibility .1s,opacity .1s}.vjs-has-started.vjs-user-inactive.vjs-playing .vjs-control-bar{visibility:visible;opacity:0;transition:visibility 1s,opacity 1s}.vjs-controls-disabled .vjs-control-bar,.vjs-error .vjs-control-bar,.vjs-using-native-controls .vjs-control-bar{display:none!important}.vjs-audio.vjs-has-started.vjs-user-inactive.vjs-playing .vjs-control-bar{opacity:1;visibility:visible}.vjs-has-started.vjs-no-flex .vjs-control-bar{display:table}.video-js .vjs-control{position:relative;text-align:center;margin:0;padding:0;height:100%;width:4em;flex:none}.vjs-button>.vjs-icon-placeholder:before{font-size:1.8em;line-height:1.67}.video-js .vjs-control:focus,.video-js .vjs-control:focus:before,.video-js .vjs-control:hover:before{text-shadow:0 0 1em #fff}.video-js .vjs-control-text{border:0;clip:rect(0 0 0 0);height:1px;overflow:hidden;padding:0;position:absolute;width:1px}.vjs-no-flex .vjs-control{display:table-cell;vertical-align:middle}.video-js .vjs-custom-control-spacer{display:none}.video-js .vjs-progress-control{cursor:pointer;flex:auto;display:flex;align-items:center;min-width:4em;touch-action:none}.video-js .vjs-progress-control.disabled{cursor:default}.vjs-live .vjs-progress-control{display:none}.vjs-liveui .vjs-progress-control{display:flex;align-items:center}.vjs-no-flex .vjs-progress-control{width:auto}.video-js .vjs-progress-holder{flex:auto;transition:all .2s;height:.3em}.video-js .vjs-progress-control .vjs-progress-holder{margin:0 10px}.video-js .vjs-progress-control:hover .vjs-progress-holder{font-size:1.6666666667em}.video-js .vjs-progress-control:hover .vjs-progress-holder.disabled{font-size:1em}.video-js .vjs-progress-holder .vjs-load-progress,.video-js .vjs-progress-holder .vjs-load-progress div,.video-js .vjs-progress-holder .vjs-play-progress{position:absolute;display:block;height:100%;margin:0;padding:0;width:0}.video-js .vjs-play-progress{background-color:#fff}.video-js .vjs-play-progress:before{font-size:.9em;position:absolute;right:-.5em;top:-.3333333333em;z-index:1}.video-js .vjs-load-progress{background:rgba(115,133,159,.5)}.video-js .vjs-load-progress div{background:rgba(115,133,159,.75)}.video-js .vjs-time-tooltip{background-color:#fff;background-color:rgba(255,255,255,.8);border-radius:.3em;color:#000;float:right;font-family:Arial,Helvetica,sans-serif;font-size:1em;padding:6px 8px 8px 8px;pointer-events:none;position:absolute;top:-3.4em;visibility:hidden;z-index:1}.video-js .vjs-progress-holder:focus .vjs-time-tooltip{display:none}.video-js .vjs-progress-control:hover .vjs-progress-holder:focus .vjs-time-tooltip,.video-js .vjs-progress-control:hover .vjs-time-tooltip{display:block;font-size:.6em;visibility:visible}.video-js .vjs-progress-control.disabled:hover .vjs-time-tooltip{font-size:1em}.video-js .vjs-progress-control .vjs-mouse-display{display:none;position:absolute;width:1px;height:100%;background-color:#000;z-index:1}.vjs-no-flex .vjs-progress-control .vjs-mouse-display{z-index:0}.video-js .vjs-progress-control:hover .vjs-mouse-display{display:block}.video-js.vjs-user-inactive .vjs-progress-control .vjs-mouse-display{visibility:hidden;opacity:0;transition:visibility 1s,opacity 1s}.video-js.vjs-user-inactive.vjs-no-flex .vjs-progress-control .vjs-mouse-display{display:none}.vjs-mouse-display .vjs-time-tooltip{color:#fff;background-color:#000;background-color:rgba(0,0,0,.8)}.video-js .vjs-slider{position:relative;cursor:pointer;padding:0;margin:0 .45em 0 .45em;-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;background-color:#73859f;background-color:rgba(115,133,159,.5)}.video-js .vjs-slider.disabled{cursor:default}.video-js .vjs-slider:focus{text-shadow:0 0 1em #fff;box-shadow:0 0 1em #fff}.video-js .vjs-mute-control{cursor:pointer;flex:none}.video-js .vjs-volume-control{cursor:pointer;margin-right:1em;display:flex}.video-js .vjs-volume-control.vjs-volume-horizontal{width:5em}.video-js .vjs-volume-panel .vjs-volume-control{visibility:visible;opacity:0;width:1px;height:1px;margin-left:-1px}.video-js .vjs-volume-panel{transition:width 1s}.video-js .vjs-volume-panel .vjs-volume-control.vjs-slider-active,.video-js .vjs-volume-panel .vjs-volume-control:active,.video-js .vjs-volume-panel.vjs-hover .vjs-mute-control~.vjs-volume-control,.video-js .vjs-volume-panel.vjs-hover .vjs-volume-control,.video-js .vjs-volume-panel:active .vjs-volume-control,.video-js .vjs-volume-panel:focus .vjs-volume-control{visibility:visible;opacity:1;position:relative;transition:visibility .1s,opacity .1s,height .1s,width .1s,left 0s,top 0s}.video-js .vjs-volume-panel .vjs-volume-control.vjs-slider-active.vjs-volume-horizontal,.video-js .vjs-volume-panel .vjs-volume-control:active.vjs-volume-horizontal,.video-js .vjs-volume-panel.vjs-hover .vjs-mute-control~.vjs-volume-control.vjs-volume-horizontal,.video-js .vjs-volume-panel.vjs-hover .vjs-volume-control.vjs-volume-horizontal,.video-js .vjs-volume-panel:active .vjs-volume-control.vjs-volume-horizontal,.video-js .vjs-volume-panel:focus .vjs-volume-control.vjs-volume-horizontal{width:5em;height:3em;margin-right:0}.video-js .vjs-volume-panel .vjs-volume-control.vjs-slider-active.vjs-volume-vertical,.video-js .vjs-volume-panel .vjs-volume-control:active.vjs-volume-vertical,.video-js .vjs-volume-panel.vjs-hover .vjs-mute-control~.vjs-volume-control.vjs-volume-vertical,.video-js .vjs-volume-panel.vjs-hover .vjs-volume-control.vjs-volume-vertical,.video-js .vjs-volume-panel:active .vjs-volume-control.vjs-volume-vertical,.video-js .vjs-volume-panel:focus .vjs-volume-control.vjs-volume-vertical{left
1:-3.5em;transition:left 0s}.video-js .vjs-volume-panel.vjs-volume-panel-horizontal.vjs-hover,.video-js .vjs-volume-panel.vjs-volume-panel-horizontal.vjs-slider-active,.video-js .vjs-volume-panel.vjs-volume-panel-horizontal:active{width:10em;transition:width .1s}.video-js .vjs-volume-panel.vjs-volume-panel-horizontal.vjs-mute-toggle-only{width:4em}.video-js .vjs-volume-panel .vjs-volume-control.vjs-volume-vertical{height:8em;width:3em;left:-3000em;transition:visibility 1s,opacity 1s,height 1s 1s,width 1s 1s,left 1s 1s,top 1s 1s}.video-js .vjs-volume-panel .vjs-volume-control.vjs-volume-horizontal{transition:visibility 1s,opacity 1s,height 1s 1s,width 1s,left 1s 1s,top 1s 1s}.video-js.vjs-no-flex .vjs-volume-panel .vjs-volume-control.vjs-volume-horizontal{width:5em;height:3em;visibility:visible;opacity:1;position:relative;transition:none}.video-js.vjs-no-flex .vjs-volume-control.vjs-volume-vertical,.video-js.vjs-no-flex .vjs-volume-panel .vjs-volume-control.vjs-volume-vertical{position:absolute;bottom:3em;left:.5em}.video-js .vjs-volume-panel{display:flex}.video-js .vjs-volume-bar{margin:1.35em .45em}.vjs-volume-bar.vjs-slider-horizontal{width:5em;height:.3em}.vjs-volume-bar.vjs-slider-vertical{width:.3em;height:5em;margin:1.35em auto}.video-js .vjs-volume-level{position:absolute;bottom:0;left:0;background-color:#fff}.video-js .vjs-volume-level:before{position:absolute;font-size:.9em}.vjs-slider-vertical .vjs-volume-level{width:.3em}.vjs-slider-vertical .vjs-volume-level:before{top:-.5em;left:-.3em}.vjs-slider-horizontal .vjs-volume-level{height:.3em}.vjs-slider-horizontal .vjs-volume-level:before{top:-.3em;right:-.5em}.video-js .vjs-volume-panel.vjs-volume-panel-vertical{width:4em}.vjs-volume-bar.vjs-slider-vertical .vjs-volume-level{height:100%}.vjs-volume-bar.vjs-slider-horizontal .vjs-volume-level{width:100%}.video-js .vjs-volume-vertical{width:3em;height:8em;bottom:8em;background-color:#2b333f;background-color:rgba(43,51,63,.7)}.video-js .vjs-volume-horizontal .vjs-menu{left:-2em}.vjs-poster{display:inline-block;vertical-align:middle;background-repeat:no-repeat;background-position:50% 50%;background-size:contain;background-color:#000;cursor:pointer;margin:0;padding:0;position:absolute;top:0;right:0;bottom:0;left:0;height:100%}.vjs-has-started .vjs-poster{display:none}.vjs-audio.vjs-has-started .vjs-poster{display:block}.vjs-using-native-controls .vjs-poster{display:none}.video-js .vjs-live-control{display:flex;align-items:flex-start;flex:auto;font-size:1em;line-height:3em}.vjs-no-flex .vjs-live-control{display:table-cell;width:auto;text-align:left}.video-js.vjs-liveui .vjs-live-control,.video-js:not(.vjs-live) .vjs-live-control{display:none}.video-js .vjs-seek-to-live-control{align-items:center;cursor:pointer;flex:none;display:inline-flex;height:100%;padding-left:.5em;padding-right:.5em;font-size:1em;line-height:3em;width:auto;min-width:4em}.vjs-no-flex .vjs-seek-to-live-control{display:table-cell;width:auto;text-align:left}.video-js.vjs-live:not(.vjs-liveui) .vjs-seek-to-live-control,.video-js:not(.vjs-live) .vjs-seek-to-live-control{display:none}.vjs-seek-to-live-control.vjs-control.vjs-at-live-edge{cursor:auto}.vjs-seek-to-live-control .vjs-icon-placeholder{margin-right:.5em;color:#888}.vjs-seek-to-live-control.vjs-control.vjs-at-live-edge .vjs-icon-placeholder{color:red}.video-js .vjs-time-control{flex:none;font-size:1em;line-height:3em;min-width:2em;width:auto;padding-left:1em;padding-right:1em}.vjs-live .vjs-time-control{display:none}.video-js .vjs-current-time,.vjs-no-flex .vjs-current-time{display:none}.video-js .vjs-duration,.vjs-no-flex .vjs-duration{display:none}.vjs-time-divider{display:none;line-height:3em}.vjs-live .vjs-time-divider{display:none}.video-js .vjs-play-control{cursor:pointer}.video-js .vjs-play-control .vjs-icon-placeholder{flex:none}.vjs-text-track-display{position:absolute;bottom:3em;left:0;right:0;top:0;pointer-events:none}.video-js.vjs-user-inactive.vjs-playing .vjs-text-track-display{bottom:1em}.video-js .vjs-text-track{font-size:1.4em;text-align:center;margin-bottom:.1em}.vjs-subtitles{color:#fff}.vjs-captions{color:#fc6}.vjs-tt-cue{display:block}video::-webkit-media-text-track-display{transform:translateY(-3em)}.video-js.vjs-user-inactive.vjs-playing video::-webkit-media-text-track-display{transform:translateY(-1.5em)}.video-js .vjs-picture-in-picture-control{cursor:pointer;flex:none}.video-js .vjs-fullscreen-control{cursor:pointer;flex:none}.vjs-playback-rate .vjs-playback-rate-value,.vjs-playback-rate>.vjs-menu-button{position:absolute;top:0;left:0;width:100%;height:100%}.vjs-playback-rate .vjs-playback-rate-value{pointer-events:none;font-size:1.5em;line-height:2;text-align:center}.vjs-playback-rate .vjs-menu{width:4em;left:0}.vjs-error .vjs-error-display .vjs-modal-dialog-content{font-size:1.4em;text-align:center}.vjs-error .vjs-error-display:before{color:#fff;content:"X";font-family:Arial,Helvetica,sans-serif;font-size:4em;left:0;line-height:1;margin-top:-.5em;position:absolute;text-shadow:.05em .05em .1em #000;text-align:center;top:50%;vertical-align:middle;width:100%}.vjs-loading-spinner{display:none;position:absolute;top:50%;left:50%;margin:-25px 0 0 -25px;opacity:.85;text-align:left;border:6px solid rgba(43,51,63,.7);box-sizing:border-box;background-clip:padding-box;width:50px;height:50px;border-radius:25px;visibility:hidden}.vjs-seeking .vjs-loading-spinner,.vjs-waiting .vjs-loading-spinner{display:block;
1-webkit-animation:vjs-spinner-show 0s linear .3s forwards;animation:vjs-spinner-show 0s linear .3s forwards}.vjs-loading-spinner:after,.vjs-loading-spinner:before{content:"";position:absolute;margin:-6px;box-sizing:inherit;width:inherit;height:inherit;border-radius:inherit;opacity:1;border:inherit;border-color:transparent;border-top-color:#fff}.vjs-seeking .vjs-loading-spinner:after,.vjs-seeking .vjs-loading-spinner:before,.vjs-waiting .vjs-loading-spinner:after,.vjs-waiting .vjs-loading-spinner:before{-webkit-animation:vjs-spinner-spin 1.1s cubic-bezier(.6,.2,0,.8) infinite,vjs-spinner-fade 1.1s linear infinite;animation:vjs-spinner-spin 1.1s cubic-bezier(.6,.2,0,.8) infinite,vjs-spinner-fade 1.1s linear infinite}.vjs-seeking .vjs-loading-spinner:before,.vjs-waiting .vjs-loading-spinner:before{border-top-color:#fff}.vjs-seeking .vjs-loading-spinner:after,.vjs-waiting .vjs-loading-spinner:after{border-top-color:#fff;-webkit-animation-del'),t[0].s.push('ay:.44s;animation-delay:.44s}@keyframes vjs-spinner-show{to{visibility:visible}}@-webkit-keyframes vjs-spinner-show{to{visibility:visible}}@keyframes vjs-spinner-spin{100%{transform:rotate(360deg)}}@-webkit-keyframes vjs-spinner-spin{100%{-webkit-transform:rotate(360deg)}}@keyframes vjs-spinner-fade{0%{border-top-color:#73859f}20%{border-top-color:#73859f}35%{border-top-color:#fff}60%{border-top-color:#73859f}100%{border-top-color:#73859f}}@-webkit-keyframes vjs-spinner-fade{0%{border-top-color:#73859f}20%{border-top-color:#73859f}35%{border-top-color:#fff}60%{border-top-color:#73859f}100%{border-top-color:#73859f}}.vjs-chapters-button .vjs-menu ul{width:24em}.video-js .vjs-subs-caps-button+.vjs-menu .vjs-captions-menu-item .vjs-menu-item-text .vjs-icon-placeholder{vertical-align:middle;display:inline-block;margin-bottom:-.1em}.video-js .vjs-subs-caps-button+.vjs-menu .vjs-captions-menu-item .vjs-menu-item-text .vjs-icon-placeholder:before{font-family:VideoJS;content:"\\uf10d";font-size:1.5em;line-height:inherit}.video-js .vjs-audio-button+.vjs-menu .vjs-main-desc-menu-item .vjs-menu-item-text .vjs-icon-placeholder{vertical-align:middle;display:inline-block;margin-bottom:-.1em}.video-js .vjs-audio-button+.vjs-menu .vjs-main-desc-menu-item .vjs-menu-item-text .vjs-icon-placeholder:before{font-family:VideoJS;content:" \\uf11d";font-size:1.5em;line-height:inherit}.video-js:not(.vjs-fullscreen).vjs-layout-small .vjs-audio-button,.video-js:not(.vjs-fullscreen).vjs-layout-small .vjs-captions-button,.video-js:not(.vjs-fullscreen).vjs-layout-small .vjs-chapters-button,.video-js:not(.vjs-fullscreen).vjs-layout-small .vjs-current-time,.video-js:not(.vjs-fullscreen).vjs-layout-small .vjs-descriptions-button,.video-js:not(.vjs-fullscreen).vjs-layout-small .vjs-duration,.video-js:not(.vjs-fullscreen).vjs-layout-small .vjs-playback-rate,.video-js:not(.vjs-fullscreen).vjs-layout-small .vjs-remaining-time,.video-js:not(.vjs-fullscreen).vjs-layout-small .vjs-subtitles-button,.video-js:not(.vjs-fullscreen).vjs-layout-small .vjs-time-divider,.video-js:not(.vjs-fullscreen).vjs-layout-small .vjs-volume-control,.video-js:not(.vjs-fullscreen).vjs-layout-tiny .vjs-audio-button,.video-js:not(.vjs-fullscreen).vjs-layout-tiny .vjs-captions-button,.video-js:not(.vjs-fullscreen).vjs-layout-tiny .vjs-chapters-button,.video-js:not(.vjs-fullscreen).vjs-layout-tiny .vjs-current-time,.video-js:not(.vjs-fullscreen).vjs-layout-tiny .vjs-descriptions-button,.video-js:not(.vjs-fullscreen).vjs-layout-tiny .vjs-duration,.video-js:not(.vjs-fullscreen).vjs-layout-tiny .vjs-playback-rate,.video-js:not(.vjs-fullscreen).vjs-layout-tiny .vjs-remaining-time,.video-js:not(.vjs-fullscreen).vjs-layout-tiny .vjs-subtitles-button,.video-js:not(.vjs-fullscreen).vjs-layout-tiny .vjs-time-divider,.video-js:not(.vjs-fullscreen).vjs-layout-tiny .vjs-volume-control,.video-js:not(.vjs-fullscreen).vjs-layout-x-small .vjs-audio-button,.video-js:not(.vjs-fullscreen).vjs-layout-x-small .vjs-captions-button,.video-js:not(.vjs-fullscreen).vjs-layout-x-small .vjs-chapters-button,.video-js:not(.vjs-fullscreen).vjs-layout-x-small .vjs-current-time,.video-js:not(.vjs-fullscreen).vjs-layout-x-small .vjs-descriptions-button,.video-js:not(.vjs-fullscreen).vjs-layout-x-small .vjs-duration,.video-js:not(.vjs-fullscreen).vjs-layout-x-small .vjs-playback-rate,.video-js:not(.vjs-fullscreen).vjs-layout-x-small .vjs-remaining-time,.video-js:not(.vjs-fullscreen).vjs-layout-x-small .vjs-subtitles-button,.video-js:not(.vjs-fullscreen).vjs-layout-x-small .vjs-time-divider,.video-js:not(.vjs-fullscreen).vjs-layout-x-small .vjs-volume-control{display:none}.video-js:not(.vjs-fullscreen).vjs-layout-small .vjs-volume-panel.vjs-volume-panel-horizontal.vjs-slider-active,.video-js:not(.vjs-fullscreen).vjs-layout-small .vjs-volume-panel.vjs-volume-panel-horizontal:active,.video-js:not(.vjs-fullscreen).vjs-layout-small .vjs-volume-panel.vjs-volume-panel-horizontal:hover,.video-js:not(.vjs-fullscreen).vjs-layout-tiny .vjs-volume-panel.vjs-volume-panel-horizontal.vjs-slider-active,.video-js:not(.vjs-fullscreen).vjs-layout-tiny .vjs-volume-panel.vjs-volume-panel-horizontal:active,.video-js:not(.vjs-fullscreen).vjs-layout-tiny .vjs-volume-panel.vjs-volume-panel-horizontal:hover,.video-js:not(.vjs-fullscreen).vjs-layout-x-small .vjs-volume-panel.vjs-volume-panel-horizontal.vjs-slider-active,.video-js:not(.vjs-fullscreen).vjs-layout-x-small .vjs-volume-panel.vjs-volume-panel-horizontal:active,.video-js:not(.vjs-fullscreen).vjs-layout-x-small .vjs-volume-panel.vjs-volume-panel-horizontal:hover{width:auto;width:initial}.video-js:not(.vjs-fullscreen).vjs-layout-tiny .vjs-subs-caps-button,.video-js:not(.vjs-fullscreen).vjs-layout-x-small:not(.vjs-live) .vjs-subs-caps-button,.video-js:not(.vjs-fullscreen).vjs-layout-x-small:not(.vjs-liveui) .vjs-subs-caps-button{display:none}.video-js:not(.vjs-fullscreen).vjs-layout-tiny .vjs-custom-control-spacer,.video-js:not(.vjs-fullscreen).vjs-layout-x-small.vjs-liveui .vjs-custom-control-spacer{flex:auto;display:block}.video-js:not(.vjs-fullscreen).vjs-layout-tiny.vjs-no-flex .vjs-custom-control-spacer,.video-js:not(.vjs-fullscreen).vjs-layout-x-small.vjs-liveui.vjs-no-flex .vjs-custom-control-spacer{width:auto}.video-js:not(.vjs-fullscreen).vjs-layout-tiny .vjs-progress-control,.video-js:not(.vjs-fullscreen).vjs-layout-x-small.vjs-liveui .vjs-progress-control{display:none}.vjs-modal-dialog.vjs-text-track-settings{background-color:#2b333f;background-color:rgba(43,51,63,.75);color:#fff;height:70%}.vjs-text-track-settings .vjs-modal-dialog-content{display:table}.vjs-text-track-settings .vjs-track-settings-colors,.vjs-text-track-settings .vjs-track-settings-controls,.vjs-text-track-settings .vjs-track-settings-font{display:table-cell}.vjs-text-track-settings .vjs-track-settings-controls{text-align:right;vertical-align:bottom}@supports (display:grid){.vjs-text-track-settings .vjs-modal-dialog-content{display:grid;grid-template-columns:1fr 1fr;grid-template-rows:1fr;padding:20px 24px 0 24px}.vjs-track-settings-controls .vjs-default-button{margin-bottom:20px}.vjs-text-track-settings .vjs-track-settings-controls{grid-column:1/-1}.vjs-layout-small .vjs-text-track-settings .vjs-modal-dialog-content,.vjs-layout-tiny .vjs-text-track-settings .vjs-modal-dialog-content,.vjs-layout-x-small .vjs-text-track-settings .vjs-modal-dialog-content{grid-template-columns:1fr}}.vjs-track-setting>select{margin-right:1em;margin-bottom:.5em}.vjs-text-track-settings fieldset{margin:5px;padding:3px;border:none}
1.vjs-text-track-settings fieldset span{display:inline-block}.vjs-text-track-settings fieldset span>select{max-width:7.3em}.vjs-text-track-settings legend{color:#fff;margin:0 0 5px 0}.vjs-text-track-settings .vjs-label{position:absolute;clip:rect(1px 1px 1px 1px);clip:rect(1px,1px,1px,1px);display:block;margin:0 0 5px 0;padding:0;border:0;height:1px;width:1px;overflow:hidden}.vjs-track-settings-controls button:active,.vjs-track-settings-controls button:focus{outline-style:solid;outline-width:medium;background-image:linear-gradient(0deg,#fff 88%,#73859f 100%)}.vjs-track-settings-controls button:hover{color:rgba(43,51,63,.75)}.vjs-track-settings-controls button{background-color:#fff;background-image:linear-gradient(-180deg,#fff 88%,#73859f 100%);color:#2b333f;cursor:pointer;border-radius:2px}.vjs-track-settings-controls .vjs-default-button{margin-right:1em}@media print{.video-js>:not(.vjs-tech):not(.vjs-poster){visibility:hidden}}.vjs-resize-manager{position:absolute;top:0;left:0;width:100%;height:100%;border:none;z-index:-1000}.js-focus-visible .video-js :focus:not(.focus-visible){outline:0;background:0 0}.video-js .vjs-menu :focus:not(:focus-visible),.video-js :focus:not(:focus-visible){outline:0;background:0 0}\',i=\'.bc-player-cENsmHkkB_default *,.bc-player-cENsmHkkB_default :after,.bc-player-cENsmHkkB_default :before{box-sizing:inherit;font-size:inherit;color:inherit;line-height:inherit}.bc-player-cENsmHkkB_default{width:300px;height:150px;font-size:14px;overflow:hidden}.bc-player-cENsmHkkB_default.vjs-fluid,.bc-player-cENsmHkkB_default.vjs-fluid.vjs-16-9{padding-top:56.25%}.bc-player-cENsmHkkB_default.vjs-fluid.vjs-4-3{padding-top:75%}.bc-player-cENsmHkkB_default.vjs-fill{width:100%;height:100%}.bc-iframe,.bc-iframe body,.bc-player-cENsmHkkB_default,.bc-player-cENsmHkkB_default .vjs-poster{background-color:#151B17}.bc-iframe,.bc-iframe .bc-player-cENsmHkkB_default,.bc-iframe body{margin:0;width:100%;height:100%;overflow:hidden}.bc-player-cENsmHkkB_default.vjs-fullscreen,.bc-player-cENsmHkkB_default.vjs-fullscreen .vjs-tech{width:100%!important;height:100%!important}.bc-player-cENsmHkkB_default .vjs-track-setting select{color:#000;background-color:#fff}.bc-player-cENsmHkkB_default .vjs-audio-button .vjs-menu-item,.bc-player-cENsmHkkB_default .vjs-chapters-button .vjs-menu-item,.bc-player-cENsmHkkB_default .vjs-descriptions-button .vjs-menu-item,.bc-player-cENsmHkkB_default .vjs-subs-caps-button .vjs-menu-item{text-transform:none}.bc-player-cENsmHkkB_default.vjs-waiting-for-autoplay .vjs-big-play-button{opacity:0}.bc-player-cENsmHkkB_default .vjs-progress-control .vjs-mouse-display{z-index:2}/*! @name @brightcove/player-core @version 0.21.0 @license UNLICENSED */.vjs-modal-dialog.vjs-player-info-modal{background:rgba(0,0,0,.9);font-size:10px}.vjs-modal-dialog.vjs-player-info-modal .vjs-modal-dialog-content{overflow:auto}.vjs-modal-dialog.vjs-player-info-modal .vjs-pi-section{float:left;width:49%}.vjs-modal-dialog.vjs-player-info-modal .vjs-pi-section:nth-child(2n+1){float:right}.vjs-modal-dialog.vjs-player-info-modal .vjs-pi-section.vjs-pi-section--source{float:none;clear:both;width:auto}.vjs-modal-dialog.vjs-player-info-modal .vjs-pi-section.vjs-pi-section--source td:first-child{min-width:150px}.vjs-modal-dialog.vjs-player-info-modal table{border-collapse:collapse;margin-bottom:1em;width:100%}.vjs-modal-dialog.vjs-player-info-modal th{font-weight:400;text-align:left}.vjs-modal-dialog.vjs-player-info-modal td{border-bottom:1px solid rgba(255,255,255,.2);opacity:.5}.vjs-modal-dialog.vjs-player-info-modal tr:last-child td{border-bottom:0}.vjs-modal-dialog.vjs-player-info-modal tr:hover td{opacity:1}.vjs-error-display{color:#fff;display:none;font-family:Helvetica,Arial,sans serif;font-size:16px;line-height:1.428}.vjs-error .vjs-error-display{display:block;position:absolute;top:0;left:0;right:0;bottom:0;background:rgba(0,0,0,.5)}.vjs-error .vjs-error-display .vjs-modal-dialog-content{font-size:14px}.vjs-errors-dialog{text-align:left;border:1px #999 solid;overflow:hidden;position:absolute;top:2%;bottom:2%;left:5%;right:5%;padding-left:1%;padding-right:1%;background:rgba(24,24,24,.8);-ms-filter:"progid:DXImageTransform.Microsoft.gradient(startColorstr=#CC000000, endColorstr=#CC000000)"}.vjs-errors-details{margin-top:15px}.vjs-errors-message{border:1px #999 solid;background-color:#2c2c2c;overflow:auto;margin-top:15px;padding:15px}.vjs-errors-ok-button-container{display:block;position:absolute;bottom:15px;left:15px;right:15px;text-align:center}.vjs-errors-ok-button{display:block;margin:0 auto;width:80px;height:36px;background-color:#000;border:1px #999 solid;border-radius:5px;color:#999;font-size:14px;cursor:pointer}
1.vjs-errors-ok-button:hover{border:1px #FFF solid;color:#CCC}.vjs-errors-content-container{overflow:auto;position:absolute;padding-bottom:15px;top:0;left:15px;right:15px;bottom:61px}.vjs-errors-headline{font-size:14px;font-weight:700;padding-right:3em}.vjs-errors-dialog .vjs-control.vjs-close-button{width:3em;height:3em;top:0}.vjs-errors-flashmessage{float:right;font-size:9px;font-style:italic}.vjs-xs.vjs-error-display{font-size:14px;background-color:#000}.vjs-xs.vjs-error-display .vjs-errors-details,.vjs-xs.vjs-error-display .vjs-errors-message{display:none}.vjs-xs .vjs-errors-content-container{top:0}.vjs-xs .vjs-errors-headline{font-size:16px;font-weight:700}.vjs-xs .vjs-errors-dialog{border:none;top:0;bottom:0;left:0;right:0}.vjs-xs.vjs-errors-flashmessage{display:none}@media (max-width:600px),(max-height:250px){.vjs-error-display{font-size:14px;background-color:#000}.vjs-error-display .vjs-errors-details,.vjs-error-display .vjs-errors-message{display:none}.vjs-error-display .vjs-errors-content-container{top:15px}.vjs-error-display .vjs-errors-headline{font-size:16px;font-weight:700}.vjs-error-display .vjs-errors-dialog{border:none;top:0;bottom:0;left:0;right:0}.vjs-errors-flashmessage{display:none}}.vjs-errors-ref-id{color:rgba(255,255,255,.5);font-size:.75em;margin:.5em 0 0}.video-js .vjs-dock-shelf,.video-js .vjs-dock-text{font-size:1.8em;font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;pointer-events:none;position:absolute;top:0;-webkit-transition:opacity .1s;-moz-transition:opacity .1s;-o-transition:opacity .1s;transition:opacity .1s}.video-js .vjs-dock-text{left:0;margin:0;width:100%;background:rgba(0,0,0,.8);background:-webkit-linear-gradient(to bottom,rgba(0,0,0,.8) 0,rgba(0,0,0,.7) 30%,rgba(0,0,0,.7) 70%,transparent 100%);background:linear-gradient(to bottom,rgba(0,0,0,.8) 0,rgba(0,0,0,.7) 30%,rgba(0,0,0,.7) 70%,transparent 100%);padding:1em 25% 2em 1em}.video-js.vjs-no-flex .vjs-dock-text{padding-bottom:1em}.video-js .vjs-dock-shelf{padding:1em 1em;right:0;text-align:right;width:25%}.video-js .vjs-dock-shelf *{pointer-events:auto}.video-js .vjs-dock-description,.video-js .vjs-dock-title{margin:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.video-js .vjs-dock-title{font-weight:700;letter-spacing:1px;line-height:1.333;margin-bottom:.333em}.video-js .vjs-dock-description{font-weight:400;line-height:1.5}.vjs-playing.vjs-user-inactive .vjs-dock-shelf,.vjs-playing.vjs-user-inactive .vjs-dock-text{opacity:0;-webkit-transition:opacity 1s;-moz-transition:opacity 1s;-o-transition:opacity 1s;transition:opacity 1s}.vjs-playing.vjs-no-flex.vjs-user-inactive .vjs-dock-shelf,.vjs-playing.vjs-no-flex.vjs-user-inactive .vjs-dock-text{display:none}.video-js .vjs-dock-shelf,.video-js .vjs-dock-text{font-size:1em}.vjs-has-started:not(:hover) .vjs-dock-shelf,.vjs-has-started:not(:hover) .vjs-dock-text{opacity:0;-webkit-transition:opacity 1s;-moz-transition:opacity 1s;-ms-transition:opacity 1s;-o-transition:opacity 1s;transition:opacity 1s}/*! @name videojs-contextmenu-ui @version 5.2.0 @license Apache-2.0 */.vjs-contextmenu-ui-menu{position:absolute}.vjs-contextmenu-ui-menu .vjs-menu-content{background-color:#2b333f;background-color:rgba(43,51,63,.7);border-radius:.3em;padding:.25em}.vjs-contextmenu-ui-menu .vjs-menu-item{border-radius:.3em;cursor:pointer;margin:0 0 1px;padding:.5em 1em;font-size:1em;line-height:1.2;text-transform:none}.vjs-contextmenu-ui-menu .vjs-menu-item:active,.vjs-contextmenu-ui-menu .vjs-menu-item:hover{background-color:rgba(0,0,0,.5);text-shadow:0 0 1em #fff}.bc-player-cENsmHkkB_default .vjs-control-bar{background-color:rgba(0,0,0,.45);color:#fff}.bc-player-cENsmHkkB_default .vjs-control{color:inherit}.bc-player-cENsmHkkB_default .vjs-mouse-display:after,.bc-player-cENsmHkkB_default .vjs-play-progress:after{border-radius:0}.bc-player-cENsmHkkB_default .vjs-menu-button-inline:hover,.bc-player-cENsmHkkB_default.vjs-no-flex .vjs-menu-button-inline{width:8.35em}.bc-player-cENsmHkkB_default .vjs-control:focus:before,.bc-player-cENsmHkkB_default .vjs-control:hover:before{text-shadow:0 0 1em #fff,0 0 1em #fff,0 0 1em #fff}.bc-player-cENsmHkkB_default .vjs-spacer{display:-webkit-box;display:-moz-box;display:-ms-flexbox;display:-webkit-flex;display:flex;-webkit-box-flex:1 1 auto;-moz-box-flex:1 1 auto;-webkit-flex:1 1 auto;-ms-flex:1 1 auto;flex:1 1 auto}.bc-player-cENsmHkkB_default .vjs-time-control{display:-webkit-box;display:-moz-box;display:-ms-flexbox;display:-webkit-flex;display:flex;-webkit-box-flex:0 1 auto;-moz-box-flex:0 1 auto;-webkit-flex:0 1 auto;-ms-flex:0 1 auto;flex:0 1 auto;width:auto}.bc-player-cENsmHkkB_default .vjs-time-control.vjs-time-divider{width:14px}.bc-player-cENsmHkkB_default .vjs-time-control.vjs-time-divider div{width:100%;text-align:center}.bc-player-cENsmHkkB_default .vjs-time-control.vjs-current-time{margin-left:1em}.bc-player-cENsmHkkB_default .vjs-time-control .vjs-current-time-display,.bc-player-cENsmHkkB_default .vjs-time-control .vjs-duration-display{width:100%}.bc-player-cENsmHkkB_default .vjs-time-control .vjs-current-time-display{text-align:right}.bc-player-cENsmHkkB_default .vjs-time'),t[1].s.push('ay:.44s;animation-delay:.44s}@keyframes vjs-spinner-show{to{visibility:visible}}@-webkit-keyframes vjs-spinner-show{to{visibility:visible}}@keyframes vjs-spinner-spin{100%{transform:rotate(360deg)}}@-webkit-keyframes vjs-spinner-spin{100%{-webkit-transform:rotate(360deg)}}@keyframes vjs-spinner-fade{0%{border-top-color:#73859f}20%{border-top-color:#73859f}35%{border-top-color:#fff}60%{border-top-color:#73859f}100%{border-top-color:#73859f}}@-webkit-keyframes vjs-spinner-fade{0%{border-top-color:#73859f}20%{border-top-color:#73859f}35%{border-top-color:#fff}60%{border-top-color:#73859f}100%{border-top-color:#73859f}}.vjs-chapters-button .vjs-menu ul{width:24em}.video-js .vjs-subs-caps-button+.vjs-menu .vjs-captions-menu-item .vjs-menu-item-text .vjs-icon-placeholder{vertical-align:middle;display:inline-block;margin-bottom:-.1em}.video-js .vjs-subs-caps-button+.vjs-menu .vjs-captions-menu-item .vjs-menu-item-text .vjs-icon-placeholder:before{font-family:VideoJS;content:"\\uf10d";font-size:1.5em;line-height:inherit}.video-js .vjs-audio-button+.vjs-menu .vjs-main-desc-menu-item .vjs-menu-item-text .vjs-icon-placeholder{vertical-align:middle;display:inline-block;margin-bottom:-.1em}.video-js .vjs-audio-button+.vjs-menu .vjs-main-desc-menu-item .vjs-menu-item-text .vjs-icon-placeholder:before{font-family:VideoJS;content:" \\uf11d";font-size:1.5em;line-height:inherit}.video-js:not(.vjs-fullscreen).vjs-layout-small .vjs-audio-button,.video-js:not(.vjs-fullscreen).vjs-layout-small .vjs-captions-button,.video-js:not(.vjs-fullscreen).vjs-layout-small .vjs-chapters-button,.video-js:not(.vjs-fullscreen).vjs-layout-small .vjs-current-time,.video-js:not(.vjs-fullscreen).vjs-layout-small .vjs-descriptions-button,.video-js:not(.vjs-fullscreen).vjs-layout-small .vjs-duration,.video-js:not(.vjs-fullscreen).vjs-layout-small .vjs-playback-rate,.video-js:not(.vjs-fullscreen).vjs-layout-small .vjs-remaining-time,.video-js:not(.vjs-fullscreen).vjs-layout-small .vjs-subtitles-button,.video-js:not(.vjs-fullscreen).vjs-layout-small .vjs-time-divider,.video-js:not(.vjs-fullscreen).vjs-layout-small .vjs-volume-control,.video-js:not(.vjs-fullscreen).vjs-layout-tiny .vjs-audio-button,.video-js:not(.vjs-fullscreen).vjs-layout-tiny .vjs-captions-button,.video-js:not(.vjs-fullscreen).vjs-layout-tiny .vjs-chapters-button,.video-js:not(.vjs-fullscreen).vjs-layout-tiny .vjs-current-time,.video-js:not(.vjs-fullscreen).vjs-layout-tiny .vjs-descriptions-button,.video-js:not(.vjs-fullscreen).vjs-layout-tiny .vjs-duration,.video-js:not(.vjs-fullscreen).vjs-layout-tiny .vjs-playback-rate,.video-js:not(.vjs-fullscreen).vjs-layout-tiny .vjs-remaining-time,.video-js:not(.vjs-fullscreen).vjs-layout-tiny .vjs-subtitles-button,.video-js:not(.vjs-fullscreen).vjs-layout-tiny .vjs-time-divider,.video-js:not(.vjs-fullscreen).vjs-layout-tiny .vjs-volume-control,.video-js:not(.vjs-fullscreen).vjs-layout-x-small .vjs-audio-button,.video-js:not(.vjs-fullscreen).vjs-layout-x-small .vjs-captions-button,.video-js:not(.vjs-fullscreen).vjs-layout-x-small .vjs-chapters-button,.video-js:not(.vjs-fullscreen).vjs-layout-x-small .vjs-current-time,.video-js:not(.vjs-fullscreen).vjs-layout-x-small .vjs-descriptions-button,.video-js:not(.vjs-fullscreen).vjs-layout-x-small .vjs-duration,.video-js:not(.vjs-fullscreen).vjs-layout-x-small .vjs-playback-rate,.video-js:not(.vjs-fullscreen).vjs-layout-x-small .vjs-remaining-time,.video-js:not(.vjs-fullscreen).vjs-layout-x-small .vjs-subtitles-button,.video-js:not(.vjs-fullscreen).vjs-layout-x-small .vjs-time-divider,.video-js:not(.vjs-fullscreen).vjs-layout-x-small .vjs-volume-control{display:none}.video-js:not(.vjs-fullscreen).vjs-layout-small .vjs-volume-panel.vjs-volume-panel-horizontal.vjs-slider-active,.video-js:not(.vjs-fullscreen).vjs-layout-small .vjs-volume-panel.vjs-volume-panel-horizontal:active,.video-js:not(.vjs-fullscreen).vjs-layout-small .vjs-volume-panel.vjs-volume-panel-horizontal:hover,.video-js:not(.vjs-fullscreen).vjs-layout-tiny .vjs-volume-panel.vjs-volume-panel-horizontal.vjs-slider-active,.video-js:not(.vjs-fullscreen).vjs-layout-tiny .vjs-volume-panel.vjs-volume-panel-horizontal:active,.video-js:not(.vjs-fullscreen).vjs-layout-tiny .vjs-volume-panel.vjs-volume-panel-horizontal:hover,.video-js:not(.vjs-fullscreen).vjs-layout-x-small .vjs-volume-panel.vjs-volume-panel-horizontal.vjs-slider-active,.video-js:not(.vjs-fullscreen).vjs-layout-x-small .vjs-volume-panel.vjs-volume-panel-horizontal:active,.video-js:not(.vjs-fullscreen).vjs-layout-x-small .vjs-volume-panel.vjs-volume-panel-horizontal:hover{width:auto;width:initial}.video-js:not(.vjs-fullscreen).vjs-layout-tiny .vjs-subs-caps-button,.video-js:not(.vjs-fullscreen).vjs-layout-x-small:not(.vjs-live) .vjs-subs-caps-button,.video-js:not(.vjs-fullscreen).vjs-layout-x-small:not(.vjs-liveui) .vjs-subs-caps-button{display:none}.video-js:not(.vjs-fullscreen).vjs-layout-tiny .vjs-custom-control-spacer,.video-js:not(.vjs-fullscreen).vjs-layout-x-small.vjs-liveui .vjs-custom-control-spacer{flex:auto;display:block}.video-js:not(.vjs-fullscreen).vjs-layout-tiny.vjs-no-flex .vjs-custom-control-spacer,.video-js:not(.vjs-fullscreen).vjs-layout-x-small.vjs-liveui.vjs-no-flex .vjs-custom-control-spacer{width:auto}.video-js:not(.vjs-fullscreen).vjs-layout-tiny .vjs-progress-control,.video-js:not(.vjs-fullscreen).vjs-layout-x-small.vjs-liveui .vjs-progress-control{display:none}.vjs-modal-dialog.vjs-text-track-settings{background-color:#2b333f;background-color:rgba(43,51,63,.75);color:#fff;height:70%}.vjs-text-track-settings .vjs-modal-dialog-content{display:table}.vjs-text-track-settings .vjs-track-settings-colors,.vjs-text-track-settings .vjs-track-settings-controls,.vjs-text-track-settings .vjs-track-settings-font{display:table-cell}.vjs-text-track-settings .vjs-track-settings-controls{text-align:right;vertical-align:bottom}@supports (display:grid){.vjs-text-track-settings .vjs-modal-dialog-content{display:grid;grid-template-columns:1fr 1fr;grid-template-rows:1fr;padding:20px 24px 0 24px}.vjs-track-settings-controls .vjs-default-button{margin-bottom:20px}.vjs-text-track-settings .vjs-track-settings-controls{grid-column:1/-1}.vjs-layout-small .vjs-text-track-settings .vjs-modal-dialog-content,.vjs-layout-tiny .vjs-text-track-settings .vjs-modal-dialog-content,.vjs-layout-x-small .vjs-text-track-settings .vjs-modal-dialog-content{grid-template-columns:1fr}}.vjs-track-setting>select{margin-right:1em;margin-bottom:.5em}.vjs-text-track-settings fieldset{margin:5px;padding:3px;border:none}
1.vjs-text-track-settings fieldset span{display:inline-block}.vjs-text-track-settings fieldset span>select{max-width:7.3em}.vjs-text-track-settings legend{color:#fff;margin:0 0 5px 0}.vjs-text-track-settings .vjs-label{position:absolute;clip:rect(1px 1px 1px 1px);clip:rect(1px,1px,1px,1px);display:block;margin:0 0 5px 0;padding:0;border:0;height:1px;width:1px;overflow:hidden}.vjs-track-settings-controls button:active,.vjs-track-settings-controls button:focus{outline-style:solid;outline-width:medium;background-image:linear-gradient(0deg,#fff 88%,#73859f 100%)}.vjs-track-settings-controls button:hover{color:rgba(43,51,63,.75)}.vjs-track-settings-controls button{background-color:#fff;background-image:linear-gradient(-180deg,#fff 88%,#73859f 100%);color:#2b333f;cursor:pointer;border-radius:2px}.vjs-track-settings-controls .vjs-default-button{margin-right:1em}@media print{.video-js>:not(.vjs-tech):not(.vjs-poster){visibility:hidden}}.vjs-resize-manager{position:absolute;top:0;left:0;width:100%;height:100%;border:none;z-index:-1000}.js-focus-visible .video-js :focus:not(.focus-visible){outline:0;background:0 0}.video-js .vjs-menu :focus:not(:focus-visible),.video-js :focus:not(:focus-visible){outline:0;background:0 0}\',i=\'.bc-player-cENsmHkkB_default *,.bc-player-cENsmHkkB_default :after,.bc-player-cENsmHkkB_default :before{box-sizing:inherit;font-size:inherit;color:inherit;line-height:inherit}.bc-player-cENsmHkkB_default{width:300px;height:150px;font-size:14px;overflow:hidden}.bc-player-cENsmHkkB_default.vjs-fluid,.bc-player-cENsmHkkB_default.vjs-fluid.vjs-16-9{padding-top:56.25%}.bc-player-cENsmHkkB_default.vjs-fluid.vjs-4-3{padding-top:75%}.bc-player-cENsmHkkB_default.vjs-fill{width:100%;height:100%}.bc-iframe,.bc-iframe body,.bc-player-cENsmHkkB_default,.bc-player-cENsmHkkB_default .vjs-poster{background-color:#151B17}.bc-iframe,.bc-iframe .bc-player-cENsmHkkB_default,.bc-iframe body{margin:0;width:100%;height:100%;overflow:hidden}.bc-player-cENsmHkkB_default.vjs-fullscreen,.bc-player-cENsmHkkB_default.vjs-fullscreen .vjs-tech{width:100%!important;height:100%!important}.bc-player-cENsmHkkB_default .vjs-track-setting select{color:#000;background-color:#fff}.bc-player-cENsmHkkB_default .vjs-audio-button .vjs-menu-item,.bc-player-cENsmHkkB_default .vjs-chapters-button .vjs-menu-item,.bc-player-cENsmHkkB_default .vjs-descriptions-button .vjs-menu-item,.bc-player-cENsmHkkB_default .vjs-subs-caps-button .vjs-menu-item{text-transform:none}.bc-player-cENsmHkkB_default.vjs-waiting-for-autoplay .vjs-big-play-button{opacity:0}.bc-player-cENsmHkkB_default .vjs-progress-control .vjs-mouse-display{z-index:2}/*! @name @brightcove/player-core @version 0.21.0 @license UNLICENSED */.vjs-modal-dialog.vjs-player-info-modal{background:rgba(0,0,0,.9);font-size:10px}.vjs-modal-dialog.vjs-player-info-modal .vjs-modal-dialog-content{overflow:auto}.vjs-modal-dialog.vjs-player-info-modal .vjs-pi-section{float:left;width:49%}.vjs-modal-dialog.vjs-player-info-modal .vjs-pi-section:nth-child(2n+1){float:right}.vjs-modal-dialog.vjs-player-info-modal .vjs-pi-section.vjs-pi-section--source{float:none;clear:both;width:auto}.vjs-modal-dialog.vjs-player-info-modal .vjs-pi-section.vjs-pi-section--source td:first-child{min-width:150px}.vjs-modal-dialog.vjs-player-info-modal table{border-collapse:collapse;margin-bottom:1em;width:100%}.vjs-modal-dialog.vjs-player-info-modal th{font-weight:400;text-align:left}.vjs-modal-dialog.vjs-player-info-modal td{border-bottom:1px solid rgba(255,255,255,.2);opacity:.5}.vjs-modal-dialog.vjs-player-info-modal tr:last-child td{border-bottom:0}.vjs-modal-dialog.vjs-player-info-modal tr:hover td{opacity:1}.vjs-error-display{color:#fff;display:none;font-family:Helvetica,Arial,sans serif;font-size:16px;line-height:1.428}.vjs-error .vjs-error-display{display:block;position:absolute;top:0;left:0;right:0;bottom:0;background:rgba(0,0,0,.5)}.vjs-error .vjs-error-display .vjs-modal-dialog-content{font-size:14px}.vjs-errors-dialog{text-align:left;border:1px #999 solid;overflow:hidden;position:absolute;top:2%;bottom:2%;left:5%;right:5%;padding-left:1%;padding-right:1%;background:rgba(24,24,24,.8);-ms-filter:"progid:DXImageTransform.Microsoft.gradient(startColorstr=#CC000000, endColorstr=#CC000000)"}.vjs-errors-details{margin-top:15px}.vjs-errors-message{border:1px #999 solid;background-color:#2c2c2c;overflow:auto;margin-top:15px;padding:15px}.vjs-errors-ok-button-container{display:block;position:absolute;bottom:15px;left:15px;right:15px;text-align:center}.vjs-errors-ok-button{display:block;margin:0 auto;width:80px;height:36px;background-color:#000;border:1px #999 solid;border-radius:5px;color:#999;font-size:14px;cursor:pointer}
1.vjs-errors-ok-button:hover{border:1px #FFF solid;color:#CCC}.vjs-errors-content-container{overflow:auto;position:absolute;padding-bottom:15px;top:0;left:15px;right:15px;bottom:61px}.vjs-errors-headline{font-size:14px;font-weight:700;padding-right:3em}.vjs-errors-dialog .vjs-control.vjs-close-button{width:3em;height:3em;top:0}.vjs-errors-flashmessage{float:right;font-size:9px;font-style:italic}.vjs-xs.vjs-error-display{font-size:14px;background-color:#000}.vjs-xs.vjs-error-display .vjs-errors-details,.vjs-xs.vjs-error-display .vjs-errors-message{display:none}.vjs-xs .vjs-errors-content-container{top:0}.vjs-xs .vjs-errors-headline{font-size:16px;font-weight:700}.vjs-xs .vjs-errors-dialog{border:none;top:0;bottom:0;left:0;right:0}.vjs-xs.vjs-errors-flashmessage{display:none}@media (max-width:600px),(max-height:250px){.vjs-error-display{font-size:14px;background-color:#000}.vjs-error-display .vjs-errors-details,.vjs-error-display .vjs-errors-message{display:none}.vjs-error-display .vjs-errors-content-container{top:15px}.vjs-error-display .vjs-errors-headline{font-size:16px;font-weight:700}.vjs-error-display .vjs-errors-dialog{border:none;top:0;bottom:0;left:0;right:0}.vjs-errors-flashmessage{display:none}}.vjs-errors-ref-id{color:rgba(255,255,255,.5);font-size:.75em;margin:.5em 0 0}.video-js .vjs-dock-shelf,.video-js .vjs-dock-text{font-size:1.8em;font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;pointer-events:none;position:absolute;top:0;-webkit-transition:opacity .1s;-moz-transition:opacity .1s;-o-transition:opacity .1s;transition:opacity .1s}.video-js .vjs-dock-text{left:0;margin:0;width:100%;background:rgba(0,0,0,.8);background:-webkit-linear-gradient(to bottom,rgba(0,0,0,.8) 0,rgba(0,0,0,.7) 30%,rgba(0,0,0,.7) 70%,transparent 100%);background:linear-gradient(to bottom,rgba(0,0,0,.8) 0,rgba(0,0,0,.7) 30%,rgba(0,0,0,.7) 70%,transparent 100%);padding:1em 25% 2em 1em}.video-js.vjs-no-flex .vjs-dock-text{padding-bottom:1em}.video-js .vjs-dock-shelf{padding:1em 1em;right:0;text-align:right;width:25%}.video-js .vjs-dock-shelf *{pointer-events:auto}.video-js .vjs-dock-description,.video-js .vjs-dock-title{margin:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.video-js .vjs-dock-title{font-weight:700;letter-spacing:1px;line-height:1.333;margin-bottom:.333em}.video-js .vjs-dock-description{font-weight:400;line-height:1.5}.vjs-playing.vjs-user-inactive .vjs-dock-shelf,.vjs-playing.vjs-user-inactive .vjs-dock-text{opacity:0;-webkit-transition:opacity 1s;-moz-transition:opacity 1s;-o-transition:opacity 1s;transition:opacity 1s}.vjs-playing.vjs-no-flex.vjs-user-inactive .vjs-dock-shelf,.vjs-playing.vjs-no-flex.vjs-user-inactive .vjs-dock-text{display:none}.video-js .vjs-dock-shelf,.video-js .vjs-dock-text{font-size:1em}.vjs-has-started:not(:hover) .vjs-dock-shelf,.vjs-has-started:not(:hover) .vjs-dock-text{opacity:0;-webkit-transition:opacity 1s;-moz-transition:opacity 1s;-ms-transition:opacity 1s;-o-transition:opacity 1s;transition:opacity 1s}/*! @name videojs-contextmenu-ui @version 5.2.0 @license Apache-2.0 */.vjs-contextmenu-ui-menu{position:absolute}.vjs-contextmenu-ui-menu .vjs-menu-content{background-color:#2b333f;background-color:rgba(43,51,63,.7);border-radius:.3em;padding:.25em}.vjs-contextmenu-ui-menu .vjs-menu-item{border-radius:.3em;cursor:pointer;margin:0 0 1px;padding:.5em 1em;font-size:1em;line-height:1.2;text-transform:none}.vjs-contextmenu-ui-menu .vjs-menu-item:active,.vjs-contextmenu-ui-menu .vjs-menu-item:hover{background-color:rgba(0,0,0,.5);text-shadow:0 0 1em #fff}.bc-player-cENsmHkkB_default .vjs-control-bar{background-color:rgba(0,0,0,.45);color:#fff}.bc-player-cENsmHkkB_default .vjs-control{color:inherit}.bc-player-cENsmHkkB_default .vjs-mouse-display:after,.bc-player-cENsmHkkB_default .vjs-play-progress:after{border-radius:0}.bc-player-cENsmHkkB_default .vjs-menu-button-inline:hover,.bc-player-cENsmHkkB_default.vjs-no-flex .vjs-menu-button-inline{width:8.35em}.bc-player-cENsmHkkB_default .vjs-control:focus:before,.bc-player-cENsmHkkB_default .vjs-control:hover:before{text-shadow:0 0 1em #fff,0 0 1em #fff,0 0 1em #fff}.bc-player-cENsmHkkB_default .vjs-spacer{display:-webkit-box;display:-moz-box;display:-ms-flexbox;display:-webkit-flex;display:flex;-webkit-box-flex:1 1 auto;-moz-box-flex:1 1 auto;-webkit-flex:1 1 auto;-ms-flex:1 1 auto;flex:1 1 auto}.bc-player-cENsmHkkB_default .vjs-time-control{display:-webkit-box;display:-moz-box;display:-ms-flexbox;display:-webkit-flex;display:flex;-webkit-box-flex:0 1 auto;-moz-box-flex:0 1 auto;-webkit-flex:0 1 auto;-ms-flex:0 1 auto;flex:0 1 auto;width:auto}.bc-player-cENsmHkkB_default .vjs-time-control.vjs-time-divider{width:14px}.bc-player-cENsmHkkB_default .vjs-time-control.vjs-time-divider div{width:100%;text-align:center}.bc-player-cENsmHkkB_default .vjs-time-control.vjs-current-time{margin-left:1em}.bc-player-cENsmHkkB_default .vjs-time-control .vjs-current-time-display,.bc-player-cENsmHkkB_default .vjs-time-control .vjs-duration-display{width:100%}.bc-player-cENsmHkkB_default .vjs-time-control .vjs-current-time-display{text-align:right}.bc-player-cENsmHkkB_default .vjs-time'),t[0].s.push('-control .vjs-duration-display{text-align:left}.bc-player-cENsmHkkB_default .vjs-remaining-time{display:none}.bc-player-cENsmHkkB_default.vjs-no-flex .vjs-time-control.vjs-remaining-time{display:none}.bc-player-cENsmHkkB_default.vjs-no-flex .vjs-time-control{display:table-cell;width:4em}.bc-player-cENsmHkkB_default .vjs-play-progress,.bc-player-cENsmHkkB_default .vjs-volume-level{background-color:#d52484}.bc-player-cENsmHkkB_default.vjs-ad-playing .vjs-play-progress,.bc-player-cENsmHkkB_default.vjs-ad-playing .vjs-volume-level{background-color:#ffe400}.bc-player-cENsmHkkB_default .vjs-play-progress:before,.bc-player-cENsmHkkB_default .vjs-volume-level:before{display:none}.bc-player-cENsmHkkB_default .vjs-volume-level:after{display:none}.bc-player-cENsmHkkB_default .vjs-progress-control{position:absolute;
1left:0;right:0;width:100%;height:1.5em;top:-1.5em}.bc-player-cENsmHkkB_default .vjs-progress-control .vjs-load-progress,.bc-player-cENsmHkkB_default .vjs-progress-control .vjs-play-progress,.bc-player-cENsmHkkB_default .vjs-progress-control .vjs-progress-holder{height:100%}.bc-player-cENsmHkkB_default .vjs-progress-control .vjs-progress-holder{margin:0}.bc-player-cENsmHkkB_default .vjs-progress-control:hover{height:1.5em;top:-1.5em}.bc-player-cENsmHkkB_default .vjs-control-bar:not(.vjs-focus-within){-webkit-transition:-webkit-transform .1s ease 0s;-moz-transition:-moz-transform .1s ease 0s;-ms-transition:-ms-transform .1s ease 0s;-o-transition:-o-transform .1s ease 0s;transition:transform .1s ease 0s}.bc-player-cENsmHkkB_default.not-hover.vjs-has-started.vjs-paused.vjs-user-active .vjs-control-bar:not(.vjs-focus-within):not(.vjs-control-bar-visible),.bc-player-cENsmHkkB_default.not-hover.vjs-has-started.vjs-paused.vjs-user-inactive .vjs-control-bar:not(.vjs-focus-within):not(.vjs-control-bar-visible),.bc-player-cENsmHkkB_default.not-hover.vjs-has-started.vjs-playing.vjs-user-active .vjs-control-bar:not(.vjs-focus-within):not(.vjs-control-bar-visible),.bc-player-cENsmHkkB_default.not-hover.vjs-has-started.vjs-playing.vjs-user-inactive .vjs-control-bar:not(.vjs-focus-within):not(.vjs-control-bar-visible),.bc-player-cENsmHkkB_default.vjs-has-started.vjs-paused.vjs-ad-playing.vjs-user-inactive .vjs-control-bar,.bc-player-cENsmHkkB_default.vjs-has-started.vjs-playing.vjs-user-inactive .vjs-control-bar:not(.vjs-focus-within):not(.vjs-control-bar-visible){visibility:visible;opacity:1;-webkit-backface-visibility:hidden;-webkit-transform:translateY(3em);-moz-transform:translateY(3em);-ms-transform:translateY(3em);-o-transform:translateY(3em);transform:translateY(3em);-webkit-transition:-webkit-transform 1s ease 0s;-moz-transition:-moz-transform 1s ease 0s;-ms-transition:-ms-transform 1s ease 0s;-o-transition:-o-transform 1s ease 0s;transition:transform 1s ease 0s}.bc-player-cENsmHkkB_default.not-hover.vjs-has-started.vjs-paused.vjs-user-active .vjs-progress-control,.bc-player-cENsmHkkB_default.not-hover.vjs-has-started.vjs-paused.vjs-user-inactive .vjs-progress-control,.bc-player-cENsmHkkB_default.not-hover.vjs-has-started.vjs-playing.vjs-user-active .vjs-progress-control,.bc-player-cENsmHkkB_default.not-hover.vjs-has-started.vjs-playing.vjs-user-inactive .vjs-progress-control,.bc-player-cENsmHkkB_default.vjs-has-started.vjs-paused.vjs-ad-playing.vjs-user-inactive .vjs-progress-control,.bc-player-cENsmHkkB_default.vjs-has-started.vjs-playing.vjs-user-inactive .vjs-progress-control{height:.3em;top:-.3em;pointer-events:none;-webkit-transition:height 1s,top 1s;-moz-transition:height 1s,top 1s;-ms-transition:height 1s,top 1s;-o-transition:height 1s,top 1s;transition:height 1s,top 1s}.bc-player-cENsmHkkB_default.not-hover.vjs-has-started.vjs-paused.vjs-user-active.vjs-fullscreen .vjs-progress-control,.bc-player-cENsmHkkB_default.not-hover.vjs-has-started.vjs-paused.vjs-user-inactive.vjs-fullscreen .vjs-progress-control,.bc-player-cENsmHkkB_default.not-hover.vjs-has-started.vjs-playing.vjs-user-active.vjs-fullscreen .vjs-progress-control,.bc-player-cENsmHkkB_default.not-hover.vjs-has-started.vjs-playing.vjs-user-inactive.vjs-fullscreen .vjs-progress-control,.bc-player-cENsmHkkB_default.vjs-has-started.vjs-playing.vjs-user-inactive.vjs-fullscreen .vjs-progress-control{opacity:0;-webkit-transition:opacity 1s;-moz-transition:opacity 1s;-ms-transition:opacity 1s;-o-transition:opacity 1s;transition:opacity 1s}.bc-player-cENsmHkkB_default.not-hover.vjs-has-started.vjs-paused.vjs-user-active .vjs-menu,.bc-player-cENsmHkkB_default.not-hover.vjs-has-started.vjs-paused.vjs-user-active .vjs-volume-vertical,.bc-player-cENsmHkkB_default.not-hover.vjs-has-started.vjs-paused.vjs-user-inactive .vjs-menu,.bc-player-cENsmHkkB_default.not-hover.vjs-has-started.vjs-paused.vjs-user-inactive .vjs-volume-vertical,.bc-player-cENsmHkkB_default.not-hover.vjs-has-started.vjs-playing.vjs-user-active .vjs-menu,.bc-player-cENsmHkkB_default.not-hover.vjs-has-started.vjs-playing.vjs-user-active .vjs-volume-vertical,.bc-player-cENsmHkkB_default.not-hover.vjs-has-started.vjs-playing.vjs-user-inactive .vjs-menu,.bc-player-cENsmHkkB_default.not-hover.vjs-has-started.vjs-playing.vjs-user-inactive .vjs-volume-vertical,.bc-player-cENsmHkkB_default.vjs-has-started.vjs-paused.vjs-ad-playing.vjs-user-inactive .vjs-menu,.bc-player-cENsmHkkB_default.vjs-has-started.vjs-paused.vjs-ad-playing.vjs-user-inactive .vjs-volume-vertical,.bc-player-cENsmHkkB_default.vjs-has-started.vjs-playing.vjs-user-inactive .vjs-menu,.bc-player-cENsmHkkB_default.vjs-has-started.vjs-playing.vjs-user-inactive .vjs-volume-vertical{opacity:0;-webkit-transition:opacity 1s;-moz-transition:opacity 1s;-ms-transition:opacity 1s;-o-transition:opacity 1s;transition:opacity 1s}.bc-player-cENsmHkkB_default.not-hover.vjs-has-started.vjs-paused.vjs-user-active .vjs-control-bar-visible .vjs-menu,.bc-player-cENsmHkkB_default.not-hover.vjs-has-started.vjs-paused.vjs-user-inactive .vjs-control-bar-visible .vjs-menu,.bc-player-cENsmHkkB_default.not-hover.vjs-has-started.vjs-playing.vjs-user-active .vjs-control-bar-visible .vjs-menu,.bc-player-cENsmHkkB_default.not-hover.vjs-has-started.vjs-playing.vjs-user-inactive .vjs-control-bar-visible .vjs-menu,.bc-player-cENsmHkkB_default.vjs-has-started.vjs-paused.vjs-ad-playing.vjs-user-inactive .vjs-control-bar-visible .vjs-menu-item,.bc-player-cENsmHkkB_default.vjs-has-started.vjs-playing.vjs-user-inactive .vjs-control-bar-visible .vjs-menu{opacity:1}.bc-player-cENsmHkkB_default.vjs-live .vjs-live-control{margin-left:1em}.bc-player-cENsmHkkB_default.vjs-live .vjs-time-control.vjs-current-time,.bc-player-cENsmHkkB_default.vjs-live .vjs-time-control.vjs-duration,.bc-player-cENsmHkkB_default.vjs-live .vjs-time-control.vjs-time-divider{display:none}.bc-player-cENsmHkkB_default .vjs-big-play-button{top:50%;left:50%;margin-left:-1em;margin-top:-1em;width:2em;height:2em;line-height:2em;border:none;border-radius:50%;font-size:3.5em;background-color:rgba(0,0,0,.45);color:#fff;-webkit-transition:border-color .4s,outline .4s,background-color .4s;
1-moz-transition:border-color .4s,outline .4s,background-color .4s;-ms-transition:border-color .4s,outline .4s,background-color .4s;-o-transition:border-color .4s,outline .4s,background-color .4s;transition:border-color .4s,outline .4s,background-color .4s}.bc-player-cENsmHkkB_default .vjs-big-play-button:active,.bc-player-cENsmHkkB_default .vjs-big-play-button:focus,.bc-player-cENsmHkkB_default:active .vjs-big-play-button,.bc-player-cENsmHkkB_default:hover .vjs-big-play-button{background-color:#d52484}.bc-player-cENsmHkkB_default .vjs-menu-button-popup .vjs-menu{left:-3em}.bc-player-cENsmHkkB_default .vjs-menu-button-popup .vjs-menu .vjs-menu-content{background-color:transparent;width:12em;left:-1.5em;padding-bottom:.5em}.bc-player-cENsmHkkB_default .vjs-menu-button-popup .vjs-menu .vjs-menu-item,.bc-player-cENsmHkkB_default .vjs-menu-button-popup .vjs-menu .vjs-menu-title{background-color:#151B17;margin:.3em 0;padding:.5em;border-radius:.3em}.bc-player-cENsmHkkB_default .vjs-menu-button-popup .vjs-menu .vjs-menu-item.vjs-selected{background-color:#d52484}.bc-player-cENsmHkkB_default .vjs-menu-button-popup .vjs-menu .vjs-menu-item:active,.bc-player-cENsmHkkB_default .vjs-menu-button-popup .vjs-menu .vjs-menu-item:focus,.bc-player-cENsmHkkB_default .vjs-menu-button-popup .vjs-menu .vjs-menu-item:hover{text-shadow:0 0 1em #fff,0 0 1em #fff,0 0 1em #fff;color:#fff}.bc-player-cENsmHkkB_default.vjs-ad-playing .vjs-mouse-display,.bc-player-cENsmHkkB_default.vjs-ad-playing .vjs-mouse-display:after{display:none}.bc-player-cENsmHkkB_default.vjs-ad-playing.vjs-ad-playing .vjs-progress-control:after{pointer-events:auto;width:100%;height:100%;position:absolute;left:0;bottom:0;content:" ";user-select:none;-ms-user-select:none;-moz-user-select:none;-webkit-user-select:none}.bc-player-cENsmHkkB_default.vjs-ad-playing .vjs-picture-in-picture-control{display:none}.bc-player-cENsmHkkB_default.vjs-no-flex .vjs-spacer{display:table-cell}.bc-player-cENsmHkkB_default.vjs-no-flex .vjs-time-control{display:table-cell;width:4em}.bc-player-cENsmHkkB_default.vjs-no-flex .vjs-remaining-time{display:none}.vjs-mouse.bc-player-cENsmHkkB_default .vjs-control-bar{font-size:10px}.vjs-mouse.bc-player-cENsmHkkB_default .vjs-progress-control{height:.5em;top:-.5em}.vjs-mouse.bc-player-cENsmHkkB_default .vjs-progress-control:hover{height:1.5em;top:-1.5em}.bc-player-cENsmHkkB_default select{width:inherit}.bc-player-cENsmHkkB_default.video-js:not(.vjs-fullscreen).vjs-layout-tiny .vjs-progress-control,.bc-player-cENsmHkkB_default.video-js:not(.vjs-fullscreen).vjs-layout-x-small.vjs-liveui .vjs-progress-control{display:block}/*! @name @brightcove/videojs-thumbnails @version 1.2.0 @license UNLICENSED */.video-js.vjs-thumbnails{display:block}.video-js.vjs-thumbnails .remove-me,.video-js.vjs-thumbnails .remove-me-too,.video-js.vjs-thumbnails.finally-remove-me{color:red;font-size:504px}.video-js .vjs-thumbnail-display{display:none;position:absolute}.video-js .vjs-progress-control:hover .vjs-thumbnail-display{display:block;position:absolute;width:150px;height:84px;bottom:2.2em;box-shadow:1px 1px 5px rgba(0,0,0,.35);background-color:#000}.video-js.vjs-ad-playing .vjs-progress-control:hover .vjs-thumbnail-display{display:none}.video-js .vjs-progress-control .vjs-thumbnail-display .vjs-thumbnail-image{width:100%;height:100%}.video-js.vjs-user-inactive .vjs-progress-control .vjs-thumbnail-display{visibility:hidden;opacity:0;transition:visibility 1s,opacity 1s}\',r="bc-style-cENsmHkkB-default",n,a="bc-style-vjs",s,o,l,u,c=document.querySelector("head"),d=c.firstChild,f=function(e,t){var i=document.createElement("style");i.type="text/css";i.appendChild(document.createTextNode(e));if(t){c.insertBefore(i,t)}else{c.appendChild(i)}return i};o=function(e,t){var i=undefined;var r=e.define;var n=e.videojs;e.VIDEOJS_NO_DYNAMIC_STYLE=true;var a=function(i,r){"use strict";i=i&&Object.prototype.hasOwnProperty.call(i,"default")?i["default"]:i;r=r&&Object.prototype.hasOwnProperty.call(r,"default")?r["default"]:r;var n="0.21.0";var a=typeof globalThis!=="undefined"?globalThis:typeof e!=="undefined"?e:typeof global!=="undefined"?global:typeof self!=="undefined"?self:{};function s(){throw new Error("Dynamic requires are not currently supported by rollup-plugin-commonjs")}function o(e,t){return t={exports:{}},e(t,t.exports),t.exports}var l=o(function(e){function t(){e.exports=t=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var r in i){if(Object.prototype.hasOwnProperty.call(i,r)){e[r]=i[r]}}}return e};return t.apply(this,arguments)}
1e.exports=t});var u=new Blob([new Uint8Array([255,227,24,196,0,0,0,3,72,1,64,0,0,4,132,16,31,227,192,225,76,255,67,12,255,221,27,255,228,97,73,63,255,195,131,69,192,232,223,255,255,207,102,239,255,255,255,101,158,206,70,20,59,255,254,95,70,149,66,4,16,128,0,2,2,32,240,138,255,36,106,183,255,227,24,196,59,11,34,62,80,49,135,40,0,253,29,191,209,200,141,71,7,255,252,152,74,15,130,33,185,6,63,255,252,195,70,203,86,53,15,255,255,247,103,76,121,64,32,47,255,34,227,194,209,138,76,65,77,69,51,46,57,55,170,170,170,170,170,170,170,170,170,170,255,227,24,196,73,13,153,210,100,81,135,56,0,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170])],{type:"audio/mpeg"});var c=new Blob([new Uint8Array([0,0,0,28,102,116,121,112,105,115,111,109,0,0,2,0,105,115,111,109,105,115,111,50,109,112,52,49,0,0,0,8,102,114,101,101,0,0,2,239,109,100,97,116,33,16,5,32,164,27,255,192,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,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,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,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,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,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,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,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,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,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,55,167,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,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,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,0,0,0,0,0,0,0,0,0,0,0,112,33,16,5,32,164,27,255,192,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,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,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,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,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,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,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,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,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,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,55,167,128,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,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,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,0,0,0,0,0,0,0,0,0,0,0,112,0,0,2,194,109,111,111,118,0,0,0,108,109,118,104,100,0,0,0,0,0,0,0,0,0,0,0,0,0,0,3,232,0,0,0,47,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,0,0,0,3,0,0,1,236,116,114,97,107,0,0,0,92,116,107,104,100,0,0,0,3,0,0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,47,0,0,0,0,0,0,0,0,0,0,0,1,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,0,0,0,0,0,0,0,0,0,0,0,36,101,100,116,115,0,0,0,28,101,108,115,116,0,0,0,0,0,0,0,1,0,0,0,47,0,0,0,0,0,1,0,0,0,0,1,100,109,100,105,97,0,0,0,32,109,100,104,100,0,0,0,0,0,0,0,0,0,0,0,0,0,0,172,68,0,0,8,0,85,196,0,0,0,0,0,45,104,100,108,114,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,0,0,1,15,109,105,110,102,0,0,0,16,115,109,104,100,0,0,0,0,0,0,0,0,0,0,0,36,100,105,110,102,0,0,0,28,100,114,101,102,0,0,0,0,0,0,0,1,0,0,0,12,117,114,108,32,0,0,0,1,0,0,0,211,115,116,98,108,0,0,0,103,115,116,115,100,0,0,0,0,0,0,0,1,0,0,0,87,109,112,52,97,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,2,0,16,0,0,0,0,172,68,0,0,0,0,0,51,101,115,100,115,0,0,0,0,3,128,128,128,34,0,2,0,4,128,128,128,20,64,21,0,0,0,0,1,244,0,0,1,243,249,5,128,128,128,2,18,16,6,128,128,128,1,2,0,0,0,24,115,116,116,115,0,0,0,0,0,0,0,1,0,0,0,2,0,0,4,0,0,0,0,28,115,116,115,99,0,0,0,0,0,0,0,1,0,0,0,1,0,0,0,2,0,0,0,1,0,0,0,28,115,116,115,122,0,0,0,0,0,0,0,0,0,0,0,2,0,0,1,115,0,0,1,116,0,0,0,20,115,116,99,111,0,0,0,0,0,0,0,1,0,0,0,44,0,0,0,98,117,100,116,97,0,0,0,90,109,101,116,97,0,0,0,0,0,0,0,33,104,100,108,114,0,0,0,0,0,0,0,0,109,100,105,114,97,112,112,108,0,0,0,0,0,0,0,0,0,0,0,0,45,105,108,115,116,0,0,0,37,169,116,111,111,0,0,0,29,100,97,116,97,0,0,0,1,0,0,0,0,76,97,118,102,53,54,46,52,48,46,49,48,49])],{type:"video/mp4"});function d(e){return Object.assign({muted:false,timeout:250,inline:false},e)}function f(e,t){var i=e.muted,r=e.timeout,n=e.inline;var a=t(),s=a.element,o=a.source;var l=void 0;var u=void 0;var c=void 0;s.muted=i;if(i===true){s.setAttribute("muted","muted")}if(n===true){s.setAttribute("playsinline","playsinline")}s.src=o;return new Promise(function(e){l=s.play();u=setTimeout(function(){c(false,new Error("Timeout "+r+" ms has been reached"))},r);c=fu'),t[1].s.push('-control .vjs-duration-display{text-align:left}.bc-player-cENsmHkkB_default .vjs-remaining-time{display:none}.bc-player-cENsmHkkB_default.vjs-no-flex .vjs-time-control.vjs-remaining-time{display:none}.bc-player-cENsmHkkB_default.vjs-no-flex .vjs-time-control{display:table-cell;width:4em}.bc-player-cENsmHkkB_default .vjs-play-progress,.bc-player-cENsmHkkB_default .vjs-volume-level{background-color:#d52484}.bc-player-cENsmHkkB_default.vjs-ad-playing .vjs-play-progress,.bc-player-cENsmHkkB_default.vjs-ad-playing .vjs-volume-level{background-color:#ffe400}.bc-player-cENsmHkkB_default .vjs-play-progress:before,.bc-player-cENsmHkkB_default .vjs-volume-level:before{display:none}.bc-player-cENsmHkkB_default .vjs-volume-level:after{display:none}.bc-player-cENsmHkkB_default .vjs-progress-control{position:absolute;
1left:0;right:0;width:100%;height:1.5em;top:-1.5em}.bc-player-cENsmHkkB_default .vjs-progress-control .vjs-load-progress,.bc-player-cENsmHkkB_default .vjs-progress-control .vjs-play-progress,.bc-player-cENsmHkkB_default .vjs-progress-control .vjs-progress-holder{height:100%}.bc-player-cENsmHkkB_default .vjs-progress-control .vjs-progress-holder{margin:0}.bc-player-cENsmHkkB_default .vjs-progress-control:hover{height:1.5em;top:-1.5em}.bc-player-cENsmHkkB_default .vjs-control-bar:not(.vjs-focus-within){-webkit-transition:-webkit-transform .1s ease 0s;-moz-transition:-moz-transform .1s ease 0s;-ms-transition:-ms-transform .1s ease 0s;-o-transition:-o-transform .1s ease 0s;transition:transform .1s ease 0s}.bc-player-cENsmHkkB_default.not-hover.vjs-has-started.vjs-paused.vjs-user-active .vjs-control-bar:not(.vjs-focus-within):not(.vjs-control-bar-visible),.bc-player-cENsmHkkB_default.not-hover.vjs-has-started.vjs-paused.vjs-user-inactive .vjs-control-bar:not(.vjs-focus-within):not(.vjs-control-bar-visible),.bc-player-cENsmHkkB_default.not-hover.vjs-has-started.vjs-playing.vjs-user-active .vjs-control-bar:not(.vjs-focus-within):not(.vjs-control-bar-visible),.bc-player-cENsmHkkB_default.not-hover.vjs-has-started.vjs-playing.vjs-user-inactive .vjs-control-bar:not(.vjs-focus-within):not(.vjs-control-bar-visible),.bc-player-cENsmHkkB_default.vjs-has-started.vjs-paused.vjs-ad-playing.vjs-user-inactive .vjs-control-bar,.bc-player-cENsmHkkB_default.vjs-has-started.vjs-playing.vjs-user-inactive .vjs-control-bar:not(.vjs-focus-within):not(.vjs-control-bar-visible){visibility:visible;opacity:1;-webkit-backface-visibility:hidden;-webkit-transform:translateY(3em);-moz-transform:translateY(3em);-ms-transform:translateY(3em);-o-transform:translateY(3em);transform:translateY(3em);-webkit-transition:-webkit-transform 1s ease 0s;-moz-transition:-moz-transform 1s ease 0s;-ms-transition:-ms-transform 1s ease 0s;-o-transition:-o-transform 1s ease 0s;transition:transform 1s ease 0s}.bc-player-cENsmHkkB_default.not-hover.vjs-has-started.vjs-paused.vjs-user-active .vjs-progress-control,.bc-player-cENsmHkkB_default.not-hover.vjs-has-started.vjs-paused.vjs-user-inactive .vjs-progress-control,.bc-player-cENsmHkkB_default.not-hover.vjs-has-started.vjs-playing.vjs-user-active .vjs-progress-control,.bc-player-cENsmHkkB_default.not-hover.vjs-has-started.vjs-playing.vjs-user-inactive .vjs-progress-control,.bc-player-cENsmHkkB_default.vjs-has-started.vjs-paused.vjs-ad-playing.vjs-user-inactive .vjs-progress-control,.bc-player-cENsmHkkB_default.vjs-has-started.vjs-playing.vjs-user-inactive .vjs-progress-control{height:.3em;top:-.3em;pointer-events:none;-webkit-transition:height 1s,top 1s;-moz-transition:height 1s,top 1s;-ms-transition:height 1s,top 1s;-o-transition:height 1s,top 1s;transition:height 1s,top 1s}.bc-player-cENsmHkkB_default.not-hover.vjs-has-started.vjs-paused.vjs-user-active.vjs-fullscreen .vjs-progress-control,.bc-player-cENsmHkkB_default.not-hover.vjs-has-started.vjs-paused.vjs-user-inactive.vjs-fullscreen .vjs-progress-control,.bc-player-cENsmHkkB_default.not-hover.vjs-has-started.vjs-playing.vjs-user-active.vjs-fullscreen .vjs-progress-control,.bc-player-cENsmHkkB_default.not-hover.vjs-has-started.vjs-playing.vjs-user-inactive.vjs-fullscreen .vjs-progress-control,.bc-player-cENsmHkkB_default.vjs-has-started.vjs-playing.vjs-user-inactive.vjs-fullscreen .vjs-progress-control{opacity:0;-webkit-transition:opacity 1s;-moz-transition:opacity 1s;-ms-transition:opacity 1s;-o-transition:opacity 1s;transition:opacity 1s}.bc-player-cENsmHkkB_default.not-hover.vjs-has-started.vjs-paused.vjs-user-active .vjs-menu,.bc-player-cENsmHkkB_default.not-hover.vjs-has-started.vjs-paused.vjs-user-active .vjs-volume-vertical,.bc-player-cENsmHkkB_default.not-hover.vjs-has-started.vjs-paused.vjs-user-inactive .vjs-menu,.bc-player-cENsmHkkB_default.not-hover.vjs-has-started.vjs-paused.vjs-user-inactive .vjs-volume-vertical,.bc-player-cENsmHkkB_default.not-hover.vjs-has-started.vjs-playing.vjs-user-active .vjs-menu,.bc-player-cENsmHkkB_default.not-hover.vjs-has-started.vjs-playing.vjs-user-active .vjs-volume-vertical,.bc-player-cENsmHkkB_default.not-hover.vjs-has-started.vjs-playing.vjs-user-inactive .vjs-menu,.bc-player-cENsmHkkB_default.not-hover.vjs-has-started.vjs-playing.vjs-user-inactive .vjs-volume-vertical,.bc-player-cENsmHkkB_default.vjs-has-started.vjs-paused.vjs-ad-playing.vjs-user-inactive .vjs-menu,.bc-player-cENsmHkkB_default.vjs-has-started.vjs-paused.vjs-ad-playing.vjs-user-inactive .vjs-volume-vertical,.bc-player-cENsmHkkB_default.vjs-has-started.vjs-playing.vjs-user-inactive .vjs-menu,.bc-player-cENsmHkkB_default.vjs-has-started.vjs-playing.vjs-user-inactive .vjs-volume-vertical{opacity:0;-webkit-transition:opacity 1s;-moz-transition:opacity 1s;-ms-transition:opacity 1s;-o-transition:opacity 1s;transition:opacity 1s}.bc-player-cENsmHkkB_default.not-hover.vjs-has-started.vjs-paused.vjs-user-active .vjs-control-bar-visible .vjs-menu,.bc-player-cENsmHkkB_default.not-hover.vjs-has-started.vjs-paused.vjs-user-inactive .vjs-control-bar-visible .vjs-menu,.bc-player-cENsmHkkB_default.not-hover.vjs-has-started.vjs-playing.vjs-user-active .vjs-control-bar-visible .vjs-menu,.bc-player-cENsmHkkB_default.not-hover.vjs-has-started.vjs-playing.vjs-user-inactive .vjs-control-bar-visible .vjs-menu,.bc-player-cENsmHkkB_default.vjs-has-started.vjs-paused.vjs-ad-playing.vjs-user-inactive .vjs-control-bar-visible .vjs-menu-item,.bc-player-cENsmHkkB_default.vjs-has-started.vjs-playing.vjs-user-inactive .vjs-control-bar-visible .vjs-menu{opacity:1}.bc-player-cENsmHkkB_default.vjs-live .vjs-live-control{margin-left:1em}.bc-player-cENsmHkkB_default.vjs-live .vjs-time-control.vjs-current-time,.bc-player-cENsmHkkB_default.vjs-live .vjs-time-control.vjs-duration,.bc-player-cENsmHkkB_default.vjs-live .vjs-time-control.vjs-time-divider{display:none}.bc-player-cENsmHkkB_default .vjs-big-play-button{top:50%;left:50%;margin-left:-1em;margin-top:-1em;width:2em;height:2em;line-height:2em;border:none;border-radius:50%;font-size:3.5em;background-color:rgba(0,0,0,.45);color:#fff;-webkit-transition:border-color .4s,outline .4s,background-color .4s;
1-moz-transition:border-color .4s,outline .4s,background-color .4s;-ms-transition:border-color .4s,outline .4s,background-color .4s;-o-transition:border-color .4s,outline .4s,background-color .4s;transition:border-color .4s,outline .4s,background-color .4s}.bc-player-cENsmHkkB_default .vjs-big-play-button:active,.bc-player-cENsmHkkB_default .vjs-big-play-button:focus,.bc-player-cENsmHkkB_default:active .vjs-big-play-button,.bc-player-cENsmHkkB_default:hover .vjs-big-play-button{background-color:#d52484}.bc-player-cENsmHkkB_default .vjs-menu-button-popup .vjs-menu{left:-3em}.bc-player-cENsmHkkB_default .vjs-menu-button-popup .vjs-menu .vjs-menu-content{background-color:transparent;width:12em;left:-1.5em;padding-bottom:.5em}.bc-player-cENsmHkkB_default .vjs-menu-button-popup .vjs-menu .vjs-menu-item,.bc-player-cENsmHkkB_default .vjs-menu-button-popup .vjs-menu .vjs-menu-title{background-color:#151B17;margin:.3em 0;padding:.5em;border-radius:.3em}.bc-player-cENsmHkkB_default .vjs-menu-button-popup .vjs-menu .vjs-menu-item.vjs-selected{background-color:#d52484}.bc-player-cENsmHkkB_default .vjs-menu-button-popup .vjs-menu .vjs-menu-item:active,.bc-player-cENsmHkkB_default .vjs-menu-button-popup .vjs-menu .vjs-menu-item:focus,.bc-player-cENsmHkkB_default .vjs-menu-button-popup .vjs-menu .vjs-menu-item:hover{text-shadow:0 0 1em #fff,0 0 1em #fff,0 0 1em #fff;color:#fff}.bc-player-cENsmHkkB_default.vjs-ad-playing .vjs-mouse-display,.bc-player-cENsmHkkB_default.vjs-ad-playing .vjs-mouse-display:after{display:none}.bc-player-cENsmHkkB_default.vjs-ad-playing.vjs-ad-playing .vjs-progress-control:after{pointer-events:auto;width:100%;height:100%;position:absolute;left:0;bottom:0;content:" ";user-select:none;-ms-user-select:none;-moz-user-select:none;-webkit-user-select:none}.bc-player-cENsmHkkB_default.vjs-ad-playing .vjs-picture-in-picture-control{display:none}.bc-player-cENsmHkkB_default.vjs-no-flex .vjs-spacer{display:table-cell}.bc-player-cENsmHkkB_default.vjs-no-flex .vjs-time-control{display:table-cell;width:4em}.bc-player-cENsmHkkB_default.vjs-no-flex .vjs-remaining-time{display:none}.vjs-mouse.bc-player-cENsmHkkB_default .vjs-control-bar{font-size:10px}.vjs-mouse.bc-player-cENsmHkkB_default .vjs-progress-control{height:.5em;top:-.5em}.vjs-mouse.bc-player-cENsmHkkB_default .vjs-progress-control:hover{height:1.5em;top:-1.5em}.bc-player-cENsmHkkB_default select{width:inherit}.bc-player-cENsmHkkB_default.video-js:not(.vjs-fullscreen).vjs-layout-tiny .vjs-progress-control,.bc-player-cENsmHkkB_default.video-js:not(.vjs-fullscreen).vjs-layout-x-small.vjs-liveui .vjs-progress-control{display:block}/*! @name @brightcove/videojs-thumbnails @version 1.2.0 @license UNLICENSED */.video-js.vjs-thumbnails{display:block}.video-js.vjs-thumbnails .remove-me,.video-js.vjs-thumbnails .remove-me-too,.video-js.vjs-thumbnails.finally-remove-me{color:red;font-size:504px}.video-js .vjs-thumbnail-display{display:none;position:absolute}.video-js .vjs-progress-control:hover .vjs-thumbnail-display{display:block;position:absolute;width:150px;height:84px;bottom:2.2em;box-shadow:1px 1px 5px rgba(0,0,0,.35);background-color:#000}.video-js.vjs-ad-playing .vjs-progress-control:hover .vjs-thumbnail-display{display:none}.video-js .vjs-progress-control .vjs-thumbnail-display .vjs-thumbnail-image{width:100%;height:100%}.video-js.vjs-user-inactive .vjs-progress-control .vjs-thumbnail-display{visibility:hidden;opacity:0;transition:visibility 1s,opacity 1s}\',r="bc-style-cENsmHkkB-default",n,a="bc-style-vjs",s,o,l,u,c=document.querySelector("head"),d=c.firstChild,f=function(e,t){var i=document.createElement("style");i.type="text/css";i.appendChild(document.createTextNode(e));if(t){c.insertBefore(i,t)}else{c.appendChild(i)}return i};o=function(e,t){var i=undefined;var r=e.define;var n=e.videojs;e.VIDEOJS_NO_DYNAMIC_STYLE=true;var a=function(i,r){"use strict";i=i&&Object.prototype.hasOwnProperty.call(i,"default")?i["default"]:i;r=r&&Object.prototype.hasOwnProperty.call(r,"default")?r["default"]:r;var n="0.21.0";var a=typeof globalThis!=="undefined"?globalThis:typeof e!=="undefined"?e:typeof global!=="undefined"?global:typeof self!=="undefined"?self:{};function s(){throw new Error("Dynamic requires are not currently supported by rollup-plugin-commonjs")}function o(e,t){return t={exports:{}},e(t,t.exports),t.exports}var l=o(function(e){function t(){e.exports=t=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var r in i){if(Object.prototype.hasOwnProperty.call(i,r)){e[r]=i[r]}}}return e};return t.apply(this,arguments)}
1e.exports=t});var u=new Blob([new Uint8Array([255,227,24,196,0,0,0,3,72,1,64,0,0,4,132,16,31,227,192,225,76,255,67,12,255,221,27,255,228,97,73,63,255,195,131,69,192,232,223,255,255,207,102,239,255,255,255,101,158,206,70,20,59,255,254,95,70,149,66,4,16,128,0,2,2,32,240,138,255,36,106,183,255,227,24,196,59,11,34,62,80,49,135,40,0,253,29,191,209,200,141,71,7,255,252,152,74,15,130,33,185,6,63,255,252,195,70,203,86,53,15,255,255,247,103,76,121,64,32,47,255,34,227,194,209,138,76,65,77,69,51,46,57,55,170,170,170,170,170,170,170,170,170,170,255,227,24,196,73,13,153,210,100,81,135,56,0,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170])],{type:"audio/mpeg"});var c=new Blob([new Uint8Array([0,0,0,28,102,116,121,112,105,115,111,109,0,0,2,0,105,115,111,109,105,115,111,50,109,112,52,49,0,0,0,8,102,114,101,101,0,0,2,239,109,100,97,116,33,16,5,32,164,27,255,192,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,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,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,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,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,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,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,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,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,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,55,167,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,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,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,0,0,0,0,0,0,0,0,0,0,0,112,33,16,5,32,164,27,255,192,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,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,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,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,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,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,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,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,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,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,55,167,128,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,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,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,0,0,0,0,0,0,0,0,0,0,0,112,0,0,2,194,109,111,111,118,0,0,0,108,109,118,104,100,0,0,0,0,0,0,0,0,0,0,0,0,0,0,3,232,0,0,0,47,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,0,0,0,3,0,0,1,236,116,114,97,107,0,0,0,92,116,107,104,100,0,0,0,3,0,0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,47,0,0,0,0,0,0,0,0,0,0,0,1,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,0,0,0,0,0,0,0,0,0,0,0,36,101,100,116,115,0,0,0,28,101,108,115,116,0,0,0,0,0,0,0,1,0,0,0,47,0,0,0,0,0,1,0,0,0,0,1,100,109,100,105,97,0,0,0,32,109,100,104,100,0,0,0,0,0,0,0,0,0,0,0,0,0,0,172,68,0,0,8,0,85,196,0,0,0,0,0,45,104,100,108,114,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,0,0,1,15,109,105,110,102,0,0,0,16,115,109,104,100,0,0,0,0,0,0,0,0,0,0,0,36,100,105,110,102,0,0,0,28,100,114,101,102,0,0,0,0,0,0,0,1,0,0,0,12,117,114,108,32,0,0,0,1,0,0,0,211,115,116,98,108,0,0,0,103,115,116,115,100,0,0,0,0,0,0,0,1,0,0,0,87,109,112,52,97,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,2,0,16,0,0,0,0,172,68,0,0,0,0,0,51,101,115,100,115,0,0,0,0,3,128,128,128,34,0,2,0,4,128,128,128,20,64,21,0,0,0,0,1,244,0,0,1,243,249,5,128,128,128,2,18,16,6,128,128,128,1,2,0,0,0,24,115,116,116,115,0,0,0,0,0,0,0,1,0,0,0,2,0,0,4,0,0,0,0,28,115,116,115,99,0,0,0,0,0,0,0,1,0,0,0,1,0,0,0,2,0,0,0,1,0,0,0,28,115,116,115,122,0,0,0,0,0,0,0,0,0,0,0,2,0,0,1,115,0,0,1,116,0,0,0,20,115,116,99,111,0,0,0,0,0,0,0,1,0,0,0,44,0,0,0,98,117,100,116,97,0,0,0,90,109,101,116,97,0,0,0,0,0,0,0,33,104,100,108,114,0,0,0,0,0,0,0,0,109,100,105,114,97,112,112,108,0,0,0,0,0,0,0,0,0,0,0,0,45,105,108,115,116,0,0,0,37,169,116,111,111,0,0,0,29,100,97,116,97,0,0,0,1,0,0,0,0,76,97,118,102,53,54,46,52,48,46,49,48,49])],{type:"video/mp4"});function d(e){return Object.assign({muted:false,timeout:250,inline:false},e)}function f(e,t){var i=e.muted,r=e.timeout,n=e.inline;var a=t(),s=a.element,o=a.source;var l=void 0;var u=void 0;var c=void 0;s.muted=i;if(i===true){s.setAttribute("muted","muted")}if(n===true){s.setAttribute("playsinline","playsinline")}s.src=o;return new Promise(function(e){l=s.play();u=setTimeout(function(){c(false,new Error("Timeout "+r+" ms has been reached"))},r);c=fu'),t[0].s.push('nction t(i){var r=arguments.length>1&&arguments[1]!==undefined?arguments[1]:null;clearTimeout(u);e({result:i,error:r})};if(l!==undefined){l.then(function(){return c(true)}
vendor: 5,148 bytes, line 1
1).catch(function(e){return c(false,e)})}else{c(true)}})}function h(e){e=d(e);return f(e,function(){return{element:t.createElement("video"),source:URL.createObjectURL(c)}})}function p(e){e=d(e);return f(e,function(){return{element:t.createElement("audio"),source:URL.createObjectURL(u)}})}var v={audio:p,video:h};var m=o(function(i,r){(function(e,t){i.exports=t()})(a,function(){function i(e){var t=typeof e;return e!==null&&(t==="object"||t==="function")}function r(e){return typeof e==="function"}var n=void 0;if(Array.isArray){n=Array.isArray}else{n=function(e){return Object.prototype.toString.call(e)==="[object Array]"}}var o=n;var l=0;var u=void 0;var c=void 0;var d=function e(t,i){E[l]=t;E[l+1]=i;l+=2;if(l===2){if(c){c(j)}else{C()}}};function f(e){c=e}function h(e){d=e}var p=typeof e!=="undefined"?e:undefined;var v=p||{};var m=v.MutationObserver||v.WebKitMutationObserver;var g=typeof self==="undefined"&&typeof process!=="undefined"&&{}.toString.call(process)==="[object process]";var y=typeof Uint8ClampedArray!=="undefined"&&typeof importScripts!=="undefined"&&typeof MessageChannel!=="undefined";function _(){return function(){return process.nextTick(j)}}function b(){if(typeof u!=="undefined"){return function(){u(j)}}return k()}function T(){var e=0;var i=new m(j);var r=t.createTextNode("");i.observe(r,{characterData:true});return function(){r.data=e=++e%2}}function S(){var e=new MessageChannel;e.port1.onmessage=j;return function(){return e.port2.postMessage(0)}}function k(){var e=setTimeout;return function(){return e(j,1)}}var E=new Array(1e3);function j(){for(var e=0;e<l;e+=2){var t=E[e];var i=E[e+1];t(i);E[e]=undefined;E[e+1]=undefined}l=0}function w(){try{var e=Function("return this")().require("vertx");u=e.runOnLoop||e.runOnContext;return b()}catch(e){return k()}}var C=void 0;if(g){C=_()}else if(m){C=T()}else if(y){C=S()}else if(p===undefined&&typeof s==="function"){C=w()}else{C=k()}function I(e,t){var i=this;var r=new this.constructor(P);if(r[x]===undefined){J(r)}var n=i._state;if(n){var a=arguments[n-1];d(function(){return Y(n,r,a,i._result)})}else{W(i,r,e,t)}return r}function A(e){var t=this;if(e&&typeof e==="object"&&e.constructor===t){return e}var i=new t(P);H(i,e);return i}var x=Math.random().toString(36).substring(2);function P(){}var O=void 0;var L=1;var D=2;function R(){return new TypeError("You cannot resolve a promise with itself")}function N(){return new TypeError("A promises callback cannot return that same promise.")}function M(e,t,i,r){try{e.call(t,i,r)}catch(e){return e}}function U(e,t,i){d(function(e){var r=false;var n=M(i,t,function(i){if(r){return}r=true;if(t!==i){H(e,i)}else{q(e,i)}},function(t){if(r){return}r=true;z(e,t)},"Settle: "+(e._label||" unknown promise"));if(!r&&n){r=true;z(e,n)}},e)}function B(e,t){if(t._state===L){q(e,t._result)}else if(t._state===D){z(e,t._result)}else{W(t,undefined,function(t){return H(e,t)},function(t){return z(e,t)})}}function F(e,t,i){if(t.constructor===e.constructor&&i===I&&t.constructor.resolve===A){B(e,t)}else{if(i===undefined){q(e,t)}else if(r(i)){U(e,t,i)}else{q(e,t)}}}function H(e,t){if(e===t){z(e,R())}else if(i(t)){var r=void 0;try{r=t.then}catch(t){z(e,t);return}F(e,t,r)}else{q(e,t)}}function V(e){if(e._onerror){e._onerror(e._result)}G(e)}function q(e,t){if(e._state!==O){return}e._result=t;e._state=L;if(e._subscribers.length!==0){d(G,e)}}function z(e,t){if(e._state!==O){return}e._state=D;e._result=t;d(V,e)}function W(e,t,i,r){var n=e._subscribers;var a=n.length;e._onerror=null;n[a]=t;n[a+L]=i;n[a+D]=r;if(a===0&&e._state){d(G,e)}}function G(e){var t=e._subscribers;var i=e._state;if(t.length===0){return}var r=void 0,n=void 0,a=e._result;for(var s=0;s<t.length;s+=3){r=t[s];n=t[s+i];if(r){Y(i,r,n,a)}else{n(a)}}e._subscribers.length=0}function Y(e,t,i,n){var a=r(i),s=void 0,o=void 0,l=true;if(a){try{s=i(n)}catch(e){l=false;o=e}if(t===s){z(t,N());return}}else{s=n}if(t._state!==O);else if(a&&l){H(t,s)}else if(l===false){z(t,o)}else if(e===L){q(t,s)}else if(e===D){z(t,s)}}function K(e,t){try{t(function t(i){H(e,i)},function t(i){z(e,i)})}catch(t){z(e,t)}}var X=0;function Q(){return X++}function J(e){e[x]=X++;e._state=undefined;e._result=undefined;e._subscribers=[]}function Z(){return new Error("Array Methods must be provided an Array")}var $=function(){function e(e,t){this._instanceConstructor=e;this.promise=new e(P);if(!this.promise[x]){J(this.promise)}if(o(t)){this.length=t.length;this._remaining=t.length;this._result=new Array(this.length);if(this.length===0){q(this.promise,this._result)}else{this.length=this.length||0;this._enumerate(t);if(this._remaining===0){q(this.promise,this._result)}}}else{z(this.promise,Z())}}e.prototype._enumerate=function e(t){for(var i=0;this._state===O&&i<t.length;i++){this._eachEntry(t[i],i)}};e.prototype._eachEntry=function e(t,i){var r=this._instanceConstructor;var n=r.resolve;if(n===A){var a=void 0;var s=void 0;var o=false;try{a=t.then}catch(e){o=true;s=e}if(a===I&&t._state!==O){this._settledAt(t._state,i,t._result)}else if(typeof a!=="function"){this._remaining--;this._result[i]=t}else if(r===ae){var l=new r(P);if(o){z(l,s)}else{F(l,t,a)}this._willSettleAt(l,i)}
vendor: 2,288 bytes, line 1
1else{this._willSettleAt(new r(function(e){return e(t)}),i)}}else{this._willSettleAt(n(t),i)}};e.prototype._settledAt=function e(t,i,r){var n=this.promise;if(n._state===O){this._remaining--;if(t===D){z(n,r)}else{this._result[i]=r}}if(this._remaining===0){q(n,this._result)}};e.prototype._willSettleAt=function e(t,i){var r=this;W(t,undefined,function(e){return r._settledAt(L,i,e)},function(e){return r._settledAt(D,i,e)})};return e}();function ee(e){return new $(this,e).promise}function te(e){var t=this;if(!o(e)){return new t(function(e,t){return t(new TypeError("You must pass an array to race."))})}else{return new t(function(i,r){var n=e.length;for(var a=0;a<n;a++){t.resolve(e[a]).then(i,r)}})}}function ie(e){var t=this;var i=new t(P);z(i,e);return i}function re(){throw new TypeError("You must pass a resolver function as the first argument to the promise constructor")}function ne(){throw new TypeError("Failed to construct \'Promise\': Please use the \'new\' operator, this object constructor cannot be called as a function.")}var ae=function(){function e(t){this[x]=Q();this._result=this._state=undefined;this._subscribers=[];if(P!==t){typeof t!=="function"&&re();this instanceof e?K(this,t):ne()}}e.prototype.catch=function e(t){return this.then(null,t)};e.prototype.finally=function e(t){var i=this;var n=i.constructor;if(r(t)){return i.then(function(e){return n.resolve(t()).then(function(){return e})},function(e){return n.resolve(t()).then(function(){throw e})})}return i.then(t,t)};return e}();ae.prototype.then=I;ae.all=ee;ae.race=te;ae.resolve=A;ae.reject=ie;ae._setScheduler=f;ae._setAsap=h;ae._asap=d;function se(){var e=void 0;if(typeof a!=="undefined"){e=a}else if(typeof self!=="undefined"){e=self}else{try{e=Function("return this")()}catch(e){throw new Error("polyfill failed because global object is unavailable in this environment")}}var t=e.Promise;if(t){var i=null;try{i=Object.prototype.toString.call(t.resolve())}catch(e){}if(i==="[object Promise]"&&!t.cast){return}}e.Promise=ae}ae.polyfill=se;ae.Promise=ae;return ae})});var g=r.performance;var y={};["memory","navigation","timing"].forEach(function(e){y[e]=g&&g[e]||{}});["clearMarks","clearMeasures","clearResourceTimings","getEntries","getEntriesByName","getEntriesByType","mark","measure","now","setRe
1sourceTimingBufferSize","toJSON"].forEach(function(e){y[e]=function(){if(g&&g[e]){return g[e].apply(g,arguments)}}});function _(e,t){return Object.prototype.hasOwnProperty.call(e,t)}var b=Array.isArray||function(e){return Object.prototype.toString.call(e)==="[object Array]"};function T(e){switch(typeof e){case"string":return e;case"boolean":return e?"true":"false";case"number":return isFinite(e)?e:"";default:return""}}function S(e,t,i,r){t=t||"&";i=i||"=";if(e===null){e=undefined}if(typeof e==="object"){return k(E(e),function(r){var n=encodeURIComponent(T(r))+i;if(b(e[r])){return k(e[r],function(e){return n+encodeURIComponent(T(e))}).join(t)}else{return n+encodeURIComponent(T(e[r]))}}).join(t)}if(!r)return"";return encodeURIComponent(T(r))+i+encodeURIComponent(T(e))}function k(e,t){if(e.map)return e.map(t);var i=[];for(var r=0;r<e.length;r++){i.push(t(e[r],r))}return i}var E=Object.keys||function(e){var t=[];for(var i in e){if(Object.prototype.hasOwnProperty.call(e,i))t.push(i)}return t};function j(e,t,i,r){t=t||"&";i=i||"=";var n={};if(typeof e!=="string"||e.length===0){return n}var a=/\\+/g;e=e.split(t);var s=1e3;if(r&&typeof r.maxKeys==="number"){s=r.maxKeys}var o=e.length;if(s>0&&o>s){o=s}for(var l=0;l<o;++l){var u=e[l].replace(a,"%20"),c=u.indexOf(i),d,f,h,p;if(c>=0){d=u.substr(0,c);f=u.substr(c+1)}else{d=u;f=""}h=decodeURIComponent(d);p=decodeURIComponent(f);if(!_(n,h)){n[h]=p}else if(b(n[h])){n[h].push(p)}else{n[h]=[n[h],p]}}return n}var w={encode:S,stringify:S,decode:j,parse:j};function C(e){if(e===void 0){e=r&&r.location||{}}return l({hash:w.parse((e.hash||"#").substr(1)),search:w.parse((e.search||"?").substr(1))},w)}var I={isArr:function e(t){return Array.isArray(t)},isFn:function e(t){return typeof t==="function"},isNil:function e(t){return t===null||t===undefined},isNum:function e(t){return typeof t==="number"&&t===t},isNonEmptyStr:function e(t){return typeof t==="string"&&/\\S/.test(t)},isObj:function e(t){return Object.prototype.toString.call(t)==="[object Object]"}};var A={perf:y,Promise:m,qs:C,assign:function e(){return l.apply(void 0,arguments)},get:function e(t,i,r){var n=t;var a=i.split(".");if(!n){return r}for(var s=0;s<a.length;s++){var o=a[s];if(n[o]===undefined){return r}if(s+1<a.length){n=n[o]}else{return n[o]}}},withoutNilValues:function e(t){var i=t;if(I.isArr(t)){i=t.filter(function(e){return!I.isNil(e)}).map(A.withoutNilValues)}else if(I.isObj(t)){i={};Object.keys(t).forEach(function(e){if(!I.isNil(t[e])){i[e]=A.withoutNilValues(t[e])}})}return i},debounce:function e(t,i,n,a){if(a===void 0){a=r}var s;return function(){var e=this;var r=arguments;var o=function i(){s=null;o=null;if(!n){t.apply(e,r)}};if(!s&&n){t.apply(e,r)}a.clearTimeout(s);s=a.setTimeout(o,i)}},throttle:function e(t,i){var r=Date.now();return function(){var e=Date.now();if(e-r>=i){t.apply(void 0,arguments);r=e}}}};A.assign(A,I);A.VERSION="n/a";var x={};var P=[{inline:false,muted:false},{inline:true,muted:false},{inline:false,muted:true},{inline:true,muted:true}];function O(e){var t=e.filter(function(e){return e.passed})[0];if(!t){return{always:false,sometimes:false,never:true,inline:false,muted:false}}var i=t.inline,r=t.muted;var n=!i&&!r;return{always:n,sometimes:!n,never:false,inline:i,muted:r}}function L(e){var t;if(e.IE_VERSION||r.cast&&r.cast.receiver){t={always:true,sometimes:false,never:false,inline:false,muted:false}}if(e.ANDROID_VERSION||e.IS_IOS){t={always:false,sometimes:true,never:false,inline:false,muted:true};if(e.IS_IPHONE){t.inline=true}}if(t){return A.Promise.resolve(t)}}function D(e,t){if(e!=="video"&&e!=="audio"){throw new Error("invalid autoplay type: "+e)}if(x[e]){return x[e]}var i=L(t.browser);if(i){x[e]=i;return i}var r=P.map(function(t){return v[e](t).then(function(e){var i=e.result;return l({passed:i},t)})});x[e]=A.Promise.all(r).then(function(e){return O(e)});return x[e]}var R="bc-style-vjs";function N(e,t,n){var a=e.classNames;if(!t&&!n&&t!==0&&n!==0){return}var s=i.querySelector("."+a.playerInstanceDimensions);if(!s){s=i.createElement("style");s.className=a.playerInstanceDimensions;var o=i.querySelector("."+a.playerStyle)||i.querySelector("."+R);if(o){o.parentNode.insertBefore(s,o.nextSibling)}else{i.head.appendChild(s)}}else if(s.innerText){if(!t&&t!==0){var l=/width:(\\d+)px;/g.exec(s.innerText);if(l&&l[1]){t=r.parseInt(l[1],10)}}else if(!n&&n!==0){var u=/height:(\\d+)px;/g.exec(s.innerText);if(u&&u[1]){n=r.parseInt(u[1],10)}}}var c="."+a.playerInstance+"{";if(t||t===0){c+="width:"+r.parseInt(t,10)+"px;"}if(n||n===0){c+="height:"+r.parseInt(n,10)+"px;"}c+="}";s.innerText=c}var M=3;var U=50;var B=function e(t){var n=i.body;var a=i.createElement("div");a.className="pub_300x250 pub_300x250m pub_728x90 text-ad textAd text_ad text_ads text_ads_2 text-ads text-ad-links";a.innerHTML="&nbsp;";a.setAttribute("style","height:10px!important;font-size:20px;color:transparent;position:absolute;bottom:0;left:-10000px");var s=0;var o=function e(){s++;var i=a.offsetHeight===0||!n.contains(a)||a.style.display==="none"||a.style.visibility==="hidden";if(i||s===M){if(a.parentNode){a.parentNode.removeChild(a)}return t(i)}r.setTimeout(e,U)};n.appendChild(a);o()};var F=null;var H;function V(e){if(e||!H){H=new m(function(e){if(i.readyState==="complete"||i.readyState!=="loading"&&!i.documentElement.doScroll){B(e)}else{i.addEventListener("DOMContentLoaded",function(){B(e)})}})}return H.then(function(e){F=e;return e})}Object.defineProperties(V,{VERSION:{enumerable:true,value:"n/a"},lastResult:{enumerable:true,get:function e(){return F}},mightBe:{enumerable:true,get:function e(){return F!==false}},mightNotBe:{enumerable:true,get:function e(){return F!==true}}});var q="vjs-waiting-for-autoplay";function z(e,t,i,r){return e.hasAttribute("data-debug")||t.debug!==undefined||i.debug||r.debug}function W(e,t,n,a){var s=t.settings,o=t.environment;var l=s.embedId,u=s.playerId;var c=o.isInBcFrame,d=o.queryString,f=o.urlHash;var h="bc-player-"+u+"_"+l;var p=h+"-index-"+s.playerIndex;A.perf.mark("bcInitStart");s.classNames={player:h,playerStyle:"bc-style-"+u+"-"+l,playerInstance:p,playerInstanceDimensions:p+"-video-dimensions"};s.embedState={controls:n.hasAttribute("controls"),loop:n.hasAttribute("loop"),muted:n.hasAttribute("muted"),playsinline:n.hasAttribute("playsinline"),poster:n.hasAttribute("poster"),sources:!!n.querySelector("source"),tracks:!!n.querySelector("track")};a.debug=z(n,d,a,s);if(n.hasAttribute("data-vttjs")&&A.isNonEmptyStr(n.getAttribute("data-vttjs"))){a["vtt.js"]=n.getAttribute("data-vttjs")}else if(d.vttjs&&A.isNonEmptyStr(d.vttjs)){a["vtt.js"]=d.vttjs}else if(a.hasOwnProperty("vtt.js")||a.hasOwnProperty("vttjs")){a["vtt.js"]=a["vtt.js"]||a.vttjs}else if(s["vtt.js"]||s.vttjs){a["vtt.js"]=s["vtt.js"]||s.vttjs}else{a["vtt.js"]="https://vjs.zencdn.net/vttjs/0.12.5/vtt.global.min.js"}if(s.playButton){var v=s.playButton,m=v.hover,g=v.shape,y=v.position;if(m==="glow"){e.dom.addClass(n,"vjs-play-button-hover-glow")}else if(m==="darken"){e.dom.addClass(n,"vjs-play-button-hover-darken")}if(g==="square"){e.dom.addClass(n,"vjs-play-button-shape-square")}else if(g==="rectangle"){e.dom.addClass(n,"vjs-play-button-shape-rectangle")}if(y==="topRight"){e.dom.addClass(n,"vjs-play-button-position-top-right")}else if(y==="topLeft"){e.dom.addClass(n,"vjs-play-button-position-top-left")}}if(d.crossorigin!==undefined||s.media&&s.media.tracks&&e.browser.IS_ANY_SAFARI){s.crossorigin=true}if(s.crossorigin){n.setAttribute("crossorigin","anonymous")}var _=f.t||d.t||n.getAttribute("data-start-time");if(/^[\\d]+$/.test(_)){s.startTime=Number(_)}else if(/^(\\d+h)?(\\d+m)?(\\d+s)?$/.test(_)){s.startTime=_}var b=d.adConfigId;var T=n.getAttribute("data-ad-config-id");if(A.isNonEmptyStr(b)){s.adConfigId=b}else if(A.isNonEmptyStr(T)){s.adConfigId=T}
1if(typeof s.adConfigId==="string"){s.adConfigId=s.adConfigId.trim()}if(!A.isNonEmptyStr(s.adConfigId)){s.adConfigId=null}if(s.usingAdFailover&&!V.mightBe){s.adConfigId=null}var S=d.deliveryConfigId;var k=n.getAttribute("data-delivery-config-id");if(A.isNonEmptyStr(S)){s.deliveryConfigId=S}else if(A.isNonEmptyStr(k)){s.deliveryConfigId=k}if(typeof s.deliveryConfigId==="string"){s.deliveryConfigId=s.deliveryConfigId.trim()}if(!A.isNonEmptyStr(s.deliveryConfigId)){s.deliveryConfigId=null}s.applicationId=d.applicationId||n.getAttribute("data-application-id")||s.applicationId;var E=A.qs();if(n.hasAttribute("autoplay")){a.autoplay=true}else if(E.hash.hasOwnProperty("autoplay")||E.search.hasOwnProperty("autoplay")){a.autoplay=E.hash.autoplay||E.search.autoplay||true;if(!c){e.log.warn("DEPRECATION: Using the `autoplay` query parameter or URL hash value to request autoplay for advanced, in-page embeds is deprecated and will be removed in Brightcove Player 7. Please use the player configuration or Video.js option ins'),t[1].s.push('nction t(i){var r=arguments.length>1&&arguments[1]!==undefined?arguments[1]:null;clearTimeout(u);e({result:i,error:r})};if(l!==undefined){l.then(function(){return c(true)}).catch(function(e){return c(false,e)})}else{c(true)}})}function h(e){e=d(e);return f(e,function(){return{element:t.createElement("video"),source:URL.createObjectURL(c)}})}function p(e){e=d(e);return f(e,function(){return{element:t.createElement("audio"),source:URL.createObjectURL(u)}})}var v={audio:p,video:h};var m=o(function(i,r){(function(e,t){i.exports=t()})(a,function(){function i(e){var t=typeof e;return e!==null&&(t==="object"||t==="function")}function r(e){return typeof e==="function"}var n=void 0;if(Array.isArray){n=Array.isArray}else{n=function(e){return Object.prototype.toString.call(e)==="[object Array]"}}var o=n;var l=0;var u=void 0;var c=void 0;var d=function e(t,i){E[l]=t;E[l+1]=i;l+=2;if(l===2){if(c){c(j)}else{C()}}};function f(e){c=e}function h(e){d=e}var p=typeof e!=="undefined"?e:undefined;var v=p||{};var m=v.MutationObserver||v.WebKitMutationObserver;var g=typeof self==="undefined"&&typeof process!=="undefined"&&{}.toString.call(process)==="[object process]";var y=typeof Uint8ClampedArray!=="undefined"&&typeof importScripts!=="undefined"&&typeof MessageChannel!=="undefined";function _(){return function(){return process.nextTick(j)}}function b(){if(typeof u!=="undefined"){return function(){u(j)}}return k()}function T(){var e=0;var i=new m(j);var r=t.createTextNode("");i.observe(r,{characterData:true});return function(){r.data=e=++e%2}}function S(){var e=new MessageChannel;e.port1.onmessage=j;return function(){return e.port2.postMessage(0)}}function k(){var e=setTimeout;return function(){return e(j,1)}}var E=new Array(1e3);function j(){for(var e=0;e<l;e+=2){var t=E[e];var i=E[e+1];t(i);E[e]=undefined;E[e+1]=undefined}l=0}function w(){try{var e=Function("return this")().require("vertx");u=e.runOnLoop||e.runOnContext;return b()}catch(e){return k()}}var C=void 0;if(g){C=_()}else if(m){C=T()}else if(y){C=S()}else if(p===undefined&&typeof s==="function"){C=w()}else{C=k()}function I(e,t){var i=this;var r=new this.constructor(P);if(r[x]===undefined){J(r)}var n=i._state;if(n){var a=arguments[n-1];d(function(){return Y(n,r,a,i._result)})}else{W(i,r,e,t)}return r}function A(e){var t=this;if(e&&typeof e==="object"&&e.constructor===t){return e}var i=new t(P);H(i,e);return i}var x=Math.random().toString(36).substring(2);function P(){}var O=void 0;var L=1;var D=2;function R(){return new TypeError("You cannot resolve a promise with itself")}function N(){return new TypeError("A promises callback cannot return that same promise.")}function M(e,t,i,r){try{e.call(t,i,r)}catch(e){return e}}function U(e,t,i){d(function(e){var r=false;var n=M(i,t,function(i){if(r){return}r=true;if(t!==i){H(e,i)}else{q(e,i)}},function(t){if(r){return}r=true;z(e,t)},"Settle: "+(e._label||" unknown promise"));if(!r&&n){r=true;z(e,n)}},e)}function B(e,t){if(t._state===L){q(e,t._result)}else if(t._state===D){z(e,t._result)}else{W(t,undefined,function(t){return H(e,t)},function(t){return z(e,t)})}}function F(e,t,i){if(t.constructor===e.constructor&&i===I&&t.constructor.resolve===A){B(e,t)}else{if(i===undefined){q(e,t)}else if(r(i)){U(e,t,i)}else{q(e,t)}}}function H(e,t){if(e===t){z(e,R())}else if(i(t)){var r=void 0;try{r=t.then}catch(t){z(e,t);return}F(e,t,r)}else{q(e,t)}}
vendor: 2,936 bytes, line 1
1function V(e){if(e._onerror){e._onerror(e._result)}G(e)}function q(e,t){if(e._state!==O){return}e._result=t;e._state=L;if(e._subscribers.length!==0){d(G,e)}}function z(e,t){if(e._state!==O){return}e._state=D;e._result=t;d(V,e)}function W(e,t,i,r){var n=e._subscribers;var a=n.length;e._onerror=null;n[a]=t;n[a+L]=i;n[a+D]=r;if(a===0&&e._state){d(G,e)}}function G(e){var t=e._subscribers;var i=e._state;if(t.length===0){return}var r=void 0,n=void 0,a=e._result;for(var s=0;s<t.length;s+=3){r=t[s];n=t[s+i];if(r){Y(i,r,n,a)}else{n(a)}}e._subscribers.length=0}function Y(e,t,i,n){var a=r(i),s=void 0,o=void 0,l=true;if(a){try{s=i(n)}catch(e){l=false;o=e}if(t===s){z(t,N());return}}else{s=n}if(t._state!==O);else if(a&&l){H(t,s)}else if(l===false){z(t,o)}else if(e===L){q(t,s)}else if(e===D){z(t,s)}}function K(e,t){try{t(function t(i){H(e,i)},function t(i){z(e,i)})}catch(t){z(e,t)}}var X=0;function Q(){return X++}function J(e){e[x]=X++;e._state=undefined;e._result=undefined;e._subscribers=[]}function Z(){return new Error("Array Methods must be provided an Array")}var $=function(){function e(e,t){this._instanceConstructor=e;this.promise=new e(P);if(!this.promise[x]){J(this.promise)}if(o(t)){this.length=t.length;this._remaining=t.length;this._result=new Array(this.length);if(this.length===0){q(this.promise,this._result)}else{this.length=this.length||0;this._enumerate(t);if(this._remaining===0){q(this.promise,this._result)}}}else{z(this.promise,Z())}}e.prototype._enumerate=function e(t){for(var i=0;this._state===O&&i<t.length;i++){this._eachEntry(t[i],i)}};e.prototype._eachEntry=function e(t,i){var r=this._instanceConstructor;var n=r.resolve;if(n===A){var a=void 0;var s=void 0;var o=false;try{a=t.then}catch(e){o=true;s=e}if(a===I&&t._state!==O){this._settledAt(t._state,i,t._result)}else if(typeof a!=="function"){this._remaining--;this._result[i]=t}else if(r===ae){var l=new r(P);if(o){z(l,s)}else{F(l,t,a)}this._willSettleAt(l,i)}else{this._willSettleAt(new r(function(e){return e(t)}),i)}}else{this._willSettleAt(n(t),i)}};e.prototype._settledAt=function e(t,i,r){var n=this.promise;if(n._state===O){this._remaining--;if(t===D){z(n,r)}else{this._result[i]=r}}if(this._remaining===0){q(n,this._result)}};e.prototype._willSettleAt=function e(t,i){var r=this;W(t,undefined,function(e){return r._settledAt(L,i,e)},function(e){return r._settledAt(D,i,e)})};return e}();function ee(e){return new $(this,e).promise}function te(e){var t=this;if(!o(e)){return new t(function(e,t){return t(new TypeError("You must pass an array to race."))})}else{return new t(function(i,r){var n=e.length;for(var a=0;a<n;a++){t.resolve(e[a]).then(i,r)}})}}function ie(e){var t=this;var i=new t(P);z(i,e);return i}function re(){throw new TypeError("You must pass a resolver function as the first argument to the promise constructor")}function ne(){throw new TypeError("Failed to construct \'Promise\': Please use the \'new\' operator, this object c
1onstructor cannot be called as a function.")}var ae=function(){function e(t){this[x]=Q();this._result=this._state=undefined;this._subscribers=[];if(P!==t){typeof t!=="function"&&re();this instanceof e?K(this,t):ne()}}e.prototype.catch=function e(t){return this.then(null,t)};e.prototype.finally=function e(t){var i=this;var n=i.constructor;if(r(t)){return i.then(function(e){return n.resolve(t()).then(function(){return e})},function(e){return n.resolve(t()).then(function(){throw e})})}return i.then(t,t)};return e}();ae.prototype.then=I;ae.all=ee;ae.race=te;ae.resolve=A;ae.reject=ie;ae._setScheduler=f;ae._setAsap=h;ae._asap=d;function se(){var e=void 0;if(typeof a!=="undefined"){e=a}else if(typeof self!=="undefined"){e=self}else{try{e=Function("return this")()}catch(e){throw new Error("polyfill failed because global object is unavailable in this environment")}}var t=e.Promise;if(t){var i=null;try{i=Object.prototype.toString.call(t.resolve())}catch(e){}if(i==="[object Promise]"&&!t.cast){return}}e.Promise=ae}ae.polyfill=se;ae.Promise=ae;return ae})});var g=r.performance;var y={};["memory","navigation","timing"].forEach(function(e){y[e]=g&&g[e]||{}});["clearMarks","clearMeasures","clearResourceTimings","getEntries","getEntriesByName","getEntriesByType","mark","measure","now","setRe
1sourceTimingBufferSize","toJSON"].forEach(function(e){y[e]=function(){if(g&&g[e]){return g[e].apply(g,arguments)}}});function _(e,t){return Object.prototype.hasOwnProperty.call(e,t)}var b=Array.isArray||function(e){return Object.prototype.toString.call(e)==="[object Array]"};function T(e){switch(typeof e){case"string":return e;case"boolean":return e?"true":"false";case"number":return isFinite(e)?e:"";default:return""}}function S(e,t,i,r){t=t||"&";i=i||"=";if(e===null){e=undefined}if(typeof e==="object"){return k(E(e),function(r){var n=encodeURIComponent(T(r))+i;if(b(e[r])){return k(e[r],function(e){return n+encodeURIComponent(T(e))}).join(t)}else{return n+encodeURIComponent(T(e[r]))}}).join(t)}if(!r)return"";return encodeURIComponent(T(r))+i+encodeURIComponent(T(e))}function k(e,t){if(e.map)return e.map(t);var i=[];for(var r=0;r<e.length;r++){i.push(t(e[r],r))}return i}var E=Object.keys||function(e){var t=[];for(var i in e){if(Object.prototype.hasOwnProperty.call(e,i))t.push(i)}return t};function j(e,t,i,r){t=t||"&";i=i||"=";var n={};if(typeof e!=="string"||e.length===0){return n}var a=/\\+/g;e=e.split(t);var s=1e3;if(r&&typeof r.maxKeys==="number"){s=r.maxKeys}var o=e.length;if(s>0&&o>s){o=s}for(var l=0;l<o;++l){var u=e[l].replace(a,"%20"),c=u.indexOf(i),d,f,h,p;if(c>=0){d=u.substr(0,c);f=u.substr(c+1)}else{d=u;f=""}h=decodeURIComponent(d);p=decodeURIComponent(f);if(!_(n,h)){n[h]=p}else if(b(n[h])){n[h].push(p)}else{n[h]=[n[h],p]}}return n}var w={encode:S,stringify:S,decode:j,parse:j};function C(e){if(e===void 0){e=r&&r.location||{}}return l({hash:w.parse((e.hash||"#").substr(1)),search:w.parse((e.search||"?").substr(1))},w)}var I={isArr:function e(t){return Array.isArray(t)},isFn:function e(t){return typeof t==="function"},isNil:function e(t){return t===null||t===undefined},isNum:function e(t){return typeof t==="number"&&t===t},isNonEmptyStr:function e(t){return typeof t==="string"&&/\\S/.test(t)},isObj:function e(t){return Object.prototype.toString.call(t)==="[object Object]"}};var A={perf:y,Promise:m,qs:C,assign:function e(){return l.apply(void 0,arguments)},get:function e(t,i,r){var n=t;var a=i.split(".");if(!n){return r}for(var s=0;s<a.length;s++){var o=a[s];if(n[o]===undefined){return r}if(s+1<a.length){n=n[o]}else{return n[o]}}},withoutNilValues:function e(t){var i=t;if(I.isArr(t)){i=t.filter(function(e){return!I.isNil(e)}).map(A.withoutNilValues)}else if(I.isObj(t)){i={};Object.keys(t).forEach(function(e){if(!I.isNil(t[e])){i[e]=A.withoutNilValues(t[e])}})}return i},debounce:function e(t,i,n,a){if(a===void 0){a=r}var s;return function(){var e=this;var r=arguments;var o=function i(){s=null;o=null;if(!n){t.apply(e,r)}};if(!s&&n){t.apply(e,r)}a.clearTimeout(s);s=a.setTimeout(o,i)}},throttle:function e(t,i){var r=Date.now();return function(){var e=Date.now();if(e-r>=i){t.apply(void 0,arguments);r=e}}}};A.assign(A,I);A.VERSION="n/a";var x={};var P=[{inline:false,muted:false},{inline:true,muted:false},{inline:false,muted:true},{inline:true,muted:true}];function O(e){var t=e.filter(function(e){return e.passed})[0];if(!t){return{always:false,sometimes:false,never:true,inline:false,muted:false}}var i=t.inline,r=t.muted;var n=!i&&!r;return{always:n,sometimes:!n,never:false,inline:i,muted:r}}function L(e){var t;if(e.IE_VERSION||r.cast&&r.cast.receiver){t={always:true,sometimes:false,never:false,inline:false,muted:false}}if(e.ANDROID_VERSION||e.IS_IOS){t={always:false,sometimes:true,never:false,inline:false,muted:true};if(e.IS_IPHONE){t.inline=true}}if(t){return A.Promise.resolve(t)}}function D(e,t){if(e!=="video"&&e!=="audio"){throw new Error("invalid autoplay type: "+e)}if(x[e]){return x[e]}var i=L(t.browser);if(i){x[e]=i;return i}var r=P.map(function(t){return v[e](t).then(function(e){var i=e.result;return l({passed:i},t)})});x[e]=A.Promise.all(r).then(function(e){return O(e)});return x[e]}var R="bc-style-vjs";function N(e,t,n){var a=e.classNames;if(!t&&!n&&t!==0&&n!==0){return}var s=i.querySelector("."+a.playerInstanceDimensions);if(!s){s=i.createElement("style");s.className=a.playerInstanceDimensions;var o=i.querySelector("."+a.playerStyle)||i.querySelector("."+R);if(o){o.parentNode.insertBefore(s,o.nextSibling)}else{i.head.appendChild(s)}}else if(s.innerText){if(!t&&t!==0){var l=/width:(\\d+)px;/g.exec(s.innerText);if(l&&l[1]){t=r.parseInt(l[1],10)}}else if(!n&&n!==0){var u=/height:(\\d+)px;/g.exec(s.innerText);if(u&&u[1]){n=r.parseInt(u[1],10)}}}var c="."+a.playerInstance+"{";if(t||t===0){c+="width:"+r.parseInt(t,10)+"px;"}if(n||n===0){c+="height:"+r.parseInt(n,10)+"px;"}c+="}";s.innerText=c}var M=3;var U=50;var B=function e(t){var n=i.body;var a=i.createElement("div");a.className="pub_300x250 pub_300x250m pub_728x90 text-ad textAd text_ad text_ads text_ads_2 text-ads text-ad-links";a.innerHTML="&nbsp;";a.setAttribute("style","height:10px!important;font-size:20px;color:transparent;position:absolute;bottom:0;left:-10000px");var s=0;var o=function e(){s++;var i=a.offsetHeight===0||!n.contains(a)||a.style.display==="none"||a.style.visibility==="hidden";if(i||s===M){if(a.parentNode){a.parentNode.removeChild(a)}return t(i)}r.setTimeout(e,U)};n.appendChild(a);o()};var F=null;var H;function V(e){if(e||!H){H=new m(function(e){if(i.readyState==="complete"||i.readyState!=="loading"&&!i.documentElement.doScroll){B(e)}else{i.addEventListener("DOMContentLoaded",function(){B(e)})}})}return H.then(function(e){F=e;return e})}Object.defineProperties(V,{VERSION:{enumerable:true,value:"n/a"},lastResult:{enumerable:true,get:function e(){return F}},mightBe:{enumerable:true,get:function e(){return F!==false}},mightNotBe:{enumerable:true,get:function e(){return F!==true}}});var q="vjs-waiting-for-autoplay";function z(e,t,i,r){return e.hasAttribute("data-debug")||t.debug!==undefined||i.debug||r.debug}function W(e,t,n,a){var s=t.settings,o=t.environment;var l=s.embedId,u=s.playerId;var c=o.isInBcFrame,d=o.queryString,f=o.urlHash;var h="bc-player-"+u+"_"+l;var p=h+"-index-"+s.playerIndex;A.perf.mark("bcInitStart");s.classNames={player:h,playerStyle:"bc-style-"+u+"-"+l,playerInstance:p,playerInstanceDimensions:p+"-video-dimensions"};s.embedState={controls:n.hasAttribute("controls"),loop:n.hasAttribute("loop"),muted:n.hasAttribute("muted"),playsinline:n.hasAttribute("playsinline"),poster:n.hasAttribute("poster"),sources:!!n.querySelector("source"),tracks:!!n.querySelector("track")};a.debug=z(n,d,a,s);if(n.hasAttribute("data-vttjs")&&A.isNonEmptyStr(n.getAttribute("data-vttjs"))){a["vtt.js"]=n.getAttribute("data-vttjs")}else if(d.vttjs&&A.isNonEmptyStr(d.vttjs)){a["vtt.js"]=d.vttjs}else if(a.hasOwnProperty("vtt.js")||a.hasOwnProperty("vttjs")){a["vtt.js"]=a["vtt.js"]||a.vttjs}else if(s["vtt.js"]||s.vttjs){a["vtt.js"]=s["vtt.js"]||s.vttjs}else{a["vtt.js"]="https://vjs.zencdn.net/vttjs/0.12.5/vtt.global.min.js"}if(s.playButton){var v=s.playButton,m=v.hover,g=v.shape,y=v.position;if(m==="glow"){e.dom.addClass(n,"vjs-play-button-hover-glow")}else if(m==="darken"){e.dom.addClass(n,"vjs-play-button-hover-darken")}if(g==="square"){e.dom.addClass(n,"vjs-play-button-shape-square")}else if(g==="rectangle"){e.dom.addClass(n,"vjs-play-button-shape-rectangle")}if(y==="topRight"){e.dom.addClass(n,"vjs-play-button-position-top-right")}else if(y==="topLeft"){e.dom.addClass(n,"vjs-play-button-position-top-left")}}if(d.crossorigin!==undefined||s.media&&s.media.tracks&&e.browser.IS_ANY_SAFARI){s.crossorigin=true}if(s.crossorigin){n.setAttribute("crossorigin","anonymous")}var _=f.t||d.t||n.getAttribute("data-start-time");if(/^[\\d]+$/.test(_)){s.startTime=Number(_)}else if(/^(\\d+h)?(\\d+m)?(\\d+s)?$/.test(_)){s.startTime=_}var b=d.adConfigId;var T=n.getAttribute("data-ad-config-id");if(A.isNonEmptyStr(b)){s.adConfigId=b}else if(A.isNonEmptyStr(T)){s.adConfigId=T}
1if(typeof s.adConfigId==="string"){s.adConfigId=s.adConfigId.trim()}if(!A.isNonEmptyStr(s.adConfigId)){s.adConfigId=null}if(s.usingAdFailover&&!V.mightBe){s.adConfigId=null}var S=d.deliveryConfigId;var k=n.getAttribute("data-delivery-config-id");if(A.isNonEmptyStr(S)){s.deliveryConfigId=S}else if(A.isNonEmptyStr(k)){s.deliveryConfigId=k}if(typeof s.deliveryConfigId==="string"){s.deliveryConfigId=s.deliveryConfigId.trim()}if(!A.isNonEmptyStr(s.deliveryConfigId)){s.deliveryConfigId=null}s.applicationId=d.applicationId||n.getAttribute("data-application-id")||s.applicationId;var E=A.qs();if(n.hasAttribute("autoplay")){a.autoplay=true}else if(E.hash.hasOwnProperty("autoplay")||E.search.hasOwnProperty("autoplay")){a.autoplay=E.hash.autoplay||E.search.autoplay||true;if(!c){e.log.warn("DEPRECATION: Using the `autoplay` query parameter or URL hash value to request autoplay for advanced, in-page embeds is deprecated and will be removed in Brightcove Player 7. Please use the player configuration or Video.js option ins'),t[0].s.push('tead!")}}else if(!a.hasOwnProperty("autoplay")){a.autoplay=s.autoplay||false}if(a.autoplay){e.dom.addClass(n,q)}if(d.preload){a.preload=d.preload}else if(!a.hasOwnProperty("preload")&&s.preload){a.preload=s.preload}a.height=n.getAttribute("height")||undefined;a.width=n.getAttribute("width")||undefined;if(!c&&n&&(a.width||a.height)){N(s,a.width,a.height)}["loop","muted","playsinline"].forEach(function(e){if(d[e]!==undefined||s[e]||s.embedState[e]||a[e]){a[e]=true}else{a[e]=false}});if(a.playsinline){n.setAttribute("playsinline","playsinline")}if(a.muted){n.setAttribute("muted","muted");n.muted=true}if(c){if(d.language){a.language=d.language}else if(A.isNonEmptyStr(i.documentElement.lang)){a.language=i.documentElement.lang}else{a.language=r.navigator.language}i.documentElement.lang=a.language}else if(n.hasAttribute("language")){a.language=n.getAttribute("language");e.log.warn("Use of the language attribute on the video embed is invalid. Please use the lang attribute instead.")}else if(!a.hasOwnProperty("language")&&A.isNonEmptyStr(s.language)){a.language=s.language}var j=s.media;if(j&&j.poster&&j.poster.highres&&!n.poster){if(/(https?:)?\\/\\//.test(j.poster.highres)){a.poster=j.poster.highres}else{a.poster=t.environment.scriptBaseUrl+"/"+j.poster.highres}if(e.browser.IS_IPHONE){n.poster=a.poster}}if(j&&j.tracks){j.tracks.forEach(function(t){n.appendChild(e.dom.createEl("track",{},{default:t.default?t.default:"",label:t.label?t.label:"",kind:"captions",src:t.src,srclang:t.srclang}))})}if(j&&j.src){a.sources=[j.src]}else if(j&&j.sources){a.sources=j.sources}a.runtime_=t;if(!(e.browser.IS_ANY_SAFARI||e.browser.IS_IOS)){a.html5=a.html5||{};a.html5.nativeCaptions=false}if(s.vhs!==false){if(!a.flash){a.flash={}}if(!a.flash.swf){a.flash.swf=s.playersCDN+"/videojs-flashls-source-handler/1.4.8/video-js.swf"}}e.options.vhs=e.options.vhs||{};a.html5=a.html5||{};a.html5.vhs=a.html5.vhs||{};if(s.vhs&&typeof s.vhs==="object"){a.html5.vhs=s.vhs}if(e.browser.IS_ANDROID&&(e.options.vhs.enableLowInitialPlaylist===undefined||a.html5.vhs.enableLowInitialPlaylist===undefined)){a.html5.vhs.enableLowInitialPlaylist=true}if(!e.browser.IS_ANY_SAFARI&&e.options.vhs.overrideNative===undefined&&a.html5.vhs.overrideNative===undefined){a.html5.vhs.overrideNative=true}a.inactivityTimeout=5e3;if(e.browser.TOUCH_ENABLED){a.inactivityTimeout=0}a.controls=c?true:s.embedState.controls;a.persistTextTrackSettings=true;a.sourceOrder=true;a.userActions={hotkeys:{}};if(s.fullscreenControl===false){a.userActions.doubleClick=false}var w=t.environment.userAgent.match(/applewebkit\\/(\\d*).*Version\\/(\\d*.\\d*)/i);a.nativeControlsForTouch=e.browser.IS_ANDROID&&e.browser.ANDROID_VERSION<5&&w&&w[2]>0;["controlBar","flash","liveui","playbackRates","responsive","suppressNotSupportedError","techOrder"].forEach(function(e){if(s.hasOwnProperty(e)){a[e]=s[e]}});return a}var G=function e(t){var i=t.registerPlugin||t.plugin;i("urlparams",function(e){e=e||{};var i=function e(t){var i=0,r;t=(t||"").replace(/^\\s+|\\s+$/g,"");if(!t||!/^(\\d+h)?(\\d+m)?(\\d+s)?$/.test(t)){return-1}r=t.match(/^(\\d+)h/);if(r){i+=parseFloat(r[1])*3600;t=t.replace(/^(\\d+)h/,"")}r=t.match(/^(\\d+)m/);if(r){i+=parseFloat(r[1])*60;t=t.replace(/^(\\d+)m/,"")}r=t.match(/^(\\d+)s/);if(r){i+=parseFloat(r[1])}return i},r=.9,n=function e(t,i){var n=t-i;if(isNaN(n)){return false}return Math.abs(n)<r},a=function e(t){s.ready(function(){if(s.networkState()===2){t()}else{s.one("loadedmetadata",function(){s.setTimeout(t,0)})}})},s=this,o=A.qs(),l=o.hash.t||o.search.t,u;if(typeof e.time==="number"){u=e.time}else{u=i(e.time)}if(l){if(/^[\\d]+$/.test(l)){u=Number(l)}else{u=i(l)}if(!e.iframe&&u!==-1){t.log.warn("DEPRECATION: Using the `t` query parameter or URL hash value to set an initial playback start time for advanced, in-page embeds is deprecated and will be removed in Brightcove Player 7. Please add a `data-start-time` attribute going forward!")}}if(u>0){(function(){var t=e.delay||250,i,r=false,o=function e(){if(r||n(s.currentTime(),u)){r=true;l()}else{s.currentTime(u);i=s.setTimeout(e,t)}},l=function e(){s.clearTimeout(i);s.off("timeupdate",e);if(!r){s.currentTime(u)}};s.on("timeupdate",l);a(o)})()}if(o.hash.captions!==undefined||o.search.captions!==undefined){(function(){var e=o.hash.captions||o.search.captions;s.one("play",function(){var t=s.textTracks(),i,r;if(t){for(r=0;r<t.length;r++){i=t[r];if(i.language===e){i.mode="showing";break}}}})})()}})};function Y(e){if(e===void 0){throw new ReferenceError("this hasn\'t been initialised - super() hasn\'t been called")}return e}var K=Y;function X(e,t){e.prototype=Object.create(t.prototype);e.prototype.constructor=e;e.__proto__=t}var Q=X;var J={activeCues:null,cues:null,id:"",inBandMetadataTrackDispatchType:undefined,kind:"metadata",label:"",language:"",mode:"",oncuechange:undefined};var Z=["activeCues","cues","id","inBandMetadataTrackDispatchType","kind","label","language"];var $=["mode"];var ee=function e(t,i){if(t==="media"&&i.kind==="metadata"&&i.label==="media-cues"){return true}if(t==="id3"&&typeof i.inBandMetadataTrackDispatchType==="string"&&i.inBandMetadataTrackDispatchType.trim().length>0){return true}return false};var te=function e(t){var i=function(e){Q(i,e);function i(i,r,n){var a;if(n===void 0){n=function e(){}}a=e.call(this)||this;var s=K(a);s.player_=i;s.reTriggerEvent_=t.bind(s,s.reTriggerEvent_);s.update_=t.bind(s,s.update_);s.type_=r;s.logger_=n;Z.concat($).forEach(function(e){var t={get:function t(){return s.track_&&s.track_[e]||J[e]},enumerable:true};if($.indexOf(e)!==-1){t.set=function(t){if(!s.track_){return}s.track_[e]=t}}Object.defineProperty(s,e,t)});s.update_();var o=i.textTracks();var l=function e(t){if(!s.track_){s.update_(t)}else if(s.track_.mode!=="hidden"){s.track_.mode="hidden";s.logger_("timeupdate -> type:"+s.type_+(s.track_?",mode:"+s.track_.mode:"")+" -> track was set to hidden")}};["addtrack","removetrack"].forEach(function(e){return o.addEventListener(e,s.update_)});s.player_.on("timeupdate",l);return s||K(a)}var r=i.prototype;r.addCue=function e(){var t=this;var i=arguments;if(!this.track_){this.one("trackexists",function(){return t.addCue.apply(t,i)});return}return this.track_.addCue.apply(this.track_,i)};r.removeCue=function e(){var t=this;var i=arguments;if(!this.track_){return this.one("trackexists",function(){return t.removeCue.apply(t,i)})}return this.track_.removeCue.apply(this.track_,i)};r.reTriggerEvent_=function e(t){this.trigger(t)};r.update_=function e(t){if(t===void 0){t={}}var i;if(t.type==="removetrack"&&t.track&&t.track===this.track_){i=null}
1else if(t.type==="addtrack"&&t.track&&!this.track_&&ee(this.type_,t.track)){i=t.track}else{var r=this.player_.textTracks();var n=r.length;while(n--){if(ee(this.type_,r[n])){i=r[n];break}}}this.logger_("update -> type:"+this.type_+", mode:"+(i?i.mode:"?")+" -> event:"+(t.type||"constructor"));if(this.track_===i){this.logger_("update -> type:"+this.type_+", mode:"+(i?i.mode:"?")+" -> "+(i?"already proxied":"no track to proxy"));return}if(this.track_){this.track_.removeEventListener("cuechange",this.reTriggerEvent_)}this.track_=i;if(!this.track_){this.logger_("update -> type:"+this.type_+", mode:"+(i?i.mode:"?")+" -> track changed, but no new track exists");return}if(this.track_.mode!=="hidden"){this.track_.mode="hidden"}this.track_.addEventListener("cuechange",this.reTriggerEvent_);this.trigger("trackexists");this.logger_("update -> type:"+this.type_+", mode:"+(i?i.mode:"?")+" -> track exists")};return i}(t.EventTarget);i.prototype.allowedEvents_={cuechange:"cuechange"};return i};var ie=function e(t){var i=te(t);var r={id3CuePointsTrack:function e(t){var r=this.proxyTracks_.id3;if(!r){r=this.proxyTracks_.id3=new i(this,"id3",t)}return r},mediaCuePointsTrack:function e(t){var r=this.proxyTracks_.media;if(r){return r}r=this.proxyTracks_.media=new i(this,"media",t);if(r.track_){return r}this.addTextTrack("metadata","media-cues");r.update_();return r}};function a(e){var i=this;if(e===void 0){e={}}this.proxyTracks_={};var n=t.createLogger("proxyTracks");if(!e.debug){n=function e(){}}n("initialized");Object.keys(r).forEach(function(e){i[e]=function(){return r[e].call(i,n)}});this.ready(function(){Object.keys(r).forEach(function(t){var r=i[t]();if(e.debug){r.on("cuechange",function(){for(var e=0;e<r.activeCues.length;e++){var t=r.activeCues[e];n(r.type_+" -> cuechange -> activeCues["+e+"]: "+(t.value&&t.value.key||t.frame&&t.frame.id))}})}})})}t.registerPlugin("proxyTracks",a);a.VERSION=n};var re={verbose:false,maxSavedSeekEvents:10,debounceTimeout:1e3,playbackRateTolerance:1.5,stableTimeUpdate
1Count:3,minInterval:1};var ne=function e(t){t.trigger("seek")};var ae=function e(t){var i=function e(i){var r=t.mergeOptions(re,i);var n;var a=false;var s;var o;var l;var u;var c=0;var d=[];var f=0;var h={};var p={};var v=r.verbose?function(){var e;for(var i=arguments.length,r=new Array(i),n=0;n<i;n++){r[n]=arguments[n]}return(e=t.log).call.apply(e,[t,"seek-events:"].concat(r))}:function(){};var m=function e(){h.seek=this.seekEvents.last().seekEnd;a=false;v("event seekStart: ",this.seekEvents.last().seekStart);v("event seekEnd: ",this.seekEvents.last().seekEnd)};var g=function e(){v("stable");this.seekEvents.stable=true};var y=function e(){v("unstable");this.seekEvents.stable=false};var _=function e(t){h.seek=this.currentTime();h.clock=t.timeStamp||Date.now();p.seek=h.seek;p.clock=h.clock};var b=A.debounce(ne,r.debounceTimeout);var T=function e(t){s=this.currentTime();o=t.timeStamp||+new Date;l=s-p.seek;if(o===p.clock||s===h.seek){return}u=Math.abs(l)/(Math.abs(o-p.clock)*.001);if(u/this.playbackRate()>this.seekEvents.playbackRateTolerance){if(Math.abs(s-h.seek)>=this.seekEvents.minInterval){this.trigger("unstable");c=0;if(!a){f=Number(h.seek)}d.push({timeStamp:o,seekStart:f,seekEnd:s,seekInterval:s-f});if(d.length>r.maxSavedSeekEvents){d.shift()}a=true;b(this)}}else{c++;v(s+": "+c);if(c>
1=this.seekEvents.stableTimeUpdateCount&&!this.seekEvents.stable&&!a){this.trigger("stable")}h.seek=s}p.seek=s;p.clock=o};this.seekEvents={stableTimeUpdateCount:r.stableTimeUpdateCount,playbackRateTolerance:r.playbackRateTolerance,debounceTimeout:r.debounceTimeout,minInterval:r.minInterval,stable:false,enabled:function e(){return n},enable:t.bind(this,function(){if(n){return}n=true;h.seek=0;h.clock=Date.now();p.seek=0;p.clock=h.clock;this.on("seek",m);this.on("stable",g);this.on("unstable",y);this.on(["loadstart","playing","adplaying"],_);this.on(["timeupdate","adtimeupdate"],T)}),disable:t.bind(this,function(){if(!n){return}n=false;this.off("seek",m);this.off("stable",g);this.off("unstable",y);this.off(["loadstart","playing","adplaying"],_);this.off(["timeupdate","adtimeupdate"],T)}),last:function e(){return d[d.length-1]},all:function e(){return d}};this.seekEvents.enable()};var r=t.registerPlugin||t.plugin;i.VERSION=n;r("seekEvents",i)};var se=new r.Blob([new Uint8Array([0,0,0,28,102,116,121,112,105,115,111,109,0,0,2,0,105,115,111,109,105,115,111,50,109,112,52,49,0,0,0,8,102,114,101,101,0,0,2,239,109,100,97,116,33,16,5,32,164,27,255,192,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,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,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,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,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,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,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,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,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,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,55,167,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,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,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,0,0,0,0,0,0,0,0,0,0,0,112,33,16,5,32,164,27,255,192,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,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,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,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,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,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,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,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,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,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,55,167,128,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,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,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,0,0,0,0,0,0,0,0,0,0,0,112,0,0,2,194,109,111,111,118,0,0,0,108,109,118,104,100,0,0,0,0,0,0,0,0,0,0,0,0,0,0,3,232,0,0,0,47,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,0,0,0,3,0,0,1,236,116,114,97,107,0,0,0,92,116,107,104,100,0,0,0,3,0,0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,47,0,0,0,0,0,0,0,0,0,0,0,1,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,0,0,0,0,0,0,0,0,0,0,0,36,101,100,116,115,0,0,0,28,101,108,115,116,0,0,0,0,0,0,0,1,0,0,0,47,0,0,0,0,0,1,0,0,0,0,1,100,109,100,105,97,0,0,0,32,109,100,104,100,0,0,0,0,0,0,0,0,0,0,0,0,0,0,172,68,0,0,8,0,85,196,0,0,0,0,0,45,104,100,108,114,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,0,0,1,15,109,105,110,102,0,0,0,16,115,109,104,100,0,0,0,0,0,0,0,0,0,0,0,36,100,105,110,102,0,0,0,28,100,114,101,102,0,0,0,0,0,0,0,1,0,0,0,12,117,114,108,32,0,0,0,1,0,0,0,211,115,116,98,108,0,0,0,103,115,116,115,100,0,0,0,0,0,0,0,1,0,0,0,87,109,112,52,97,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,2,0,16,0,0,0,0,172,68,0,0,0,0,0,51,101,115,100,115,0,0,0,0,3,128,128,128,34,0,2,0,4,128,128,128,20,64,21,0,0,0,0,1,244,0,0,1,243,249,5,128,128,128,2,18,16,6,128,128,128,1,2,0,0,0,24,115,116,116,115,0,0,0,0,0,0,0,1,0,0,0,2,0,0,4,0,0,0,0,28,115,116,115,99,0,0,0,0,0,0,0,1,0,0,0,1,0,0,0,2,0,0,0,1,0,0,0,28,115,116,115,122,0,0,0,0,0,0,0,0,0,0,0,2,0,0,1,115,0,0,1,116,0,0,0,20,115,116,99,111,0,0,0,0,0,0,0,1,0,0,0,44,0,0,0,98,117,100,116,97,0,0,0,90,109,101,116,97,0,0,0,0,0,0,0,33,104,100,108,114,0,0,0,0,0,0,0,0,109,100,105,114,97,112,112,108,0,0,0,0,0,0,0,0,0,0,0,0,45,105,108,115,116,0,0,0,37,169,116,111,111,0,0,0,29,100,97,116,97,0,0,0,1,0,0,0,0,76,97,118,102,53,54,46,52,48,46,49,48,49])],{type:"video/mp4"});var oe=URL.createObjectURL(se);
1var le=["perSourceBehaviors","contextmenu","contextmenuUI","bcAnalytics","errors","catalog","playerInfo","dock","plugin","reloadSourceOnError","playlist","endscreen","proxyTracks","seekEvents","touchActive","urlparams"];var ue=function e(t,n,a){var s=a.settings;var o=a.environment;var l=o.queryString;var u={};var c=Boolean(n.options_.debug);var d={bcAnalytics:{applicationId:s.applicationId,mr:Boolean(r.bc_isManagedRelease),referrer:l.referrer,usage:l.usage,verbose:c},chromecastReceiver:{debug:c},ima3:{debugContribAds:c},ssai:{debug:c},vr:{debug:c}};n.on("pluginsetup",function(e,i){var r=i.name;if(le.indexOf(r)!==-1){return}n.trigger({type:"usage",name:r+"!"+t.getPluginVersion(r)})});if(s.contextMenu!==false){var f=[{label:n.localize("Player Information"),listener:function e(){return n.usingPlugin("playerInfo")&&n.playerInfo.modal.open()}}];if(s.contextMenu.brightcoveBranding!==false){f.push({href:"https://www.brightcove.com/en/why-brightcove?utm_type=player",label:n.localize("About Brightcove")})}d.contextmenuUI={content:f}}var h=function e(i,r){if(r===void 0){r={}}var a=d[i]||{};if(!n.hasPlugin(i)){t.log.error(\'Plugin "\'+i+\'" is missing. Please check your player configuration.\');return}if(n.usingPlugin(i)){return}var s=t.mergeOptions(a,r);try{n[i](s)}catch(e){t.log.error(\'Unable to initialize "\'+i+\'" plugin:\',e)}};if(s.usingAdFailover&&s.usingIMAPrerollWithSSAI){t.log.warn("Ad failover is not compatible with SSAI and client-side preroll. "+"Please configure only one. This player will use ad failover behavior.");delete s.usingIMAPrerollWithSSAI}if(s.usingAdFailover){n.trigger({type:"usage",name:"ad-failover"});var p=n.usingAdBlocker.mightBe?s.serverSideAdPlugin:s.clientSideAdPlugin,v=p.name,m=p.options;h(v,m)}else if(s.usingIMAPrerollWithSSAI){if(r.bc.disposedAfterPreroll_){var g=s.serverSideAdPlugin.name;var y=s.serverSideAdPlugin.options;var _=s.clientSideAdPlugin.name;t.deregisterPlugin(_);t.registerPlugin(g,r.bc.ssaiPluginCache_);h(g,y)}else{n.trigger({type:"usage",name:"ssai-wit'),t[1].s.push('tead!")}}else if(!a.hasOwnProperty("autoplay")){a.autoplay=s.autoplay||false}if(a.autoplay){e.dom.addClass(n,q)}if(d.preload){a.preload=d.preload}else if(!a.hasOwnProperty("preload")&&s.preload){a.preload=s.preload}a.height=n.getAttribute("height")||undefined;a.width=n.getAttribute("width")||undefined;if(!c&&n&&(a.width||a.height)){N(s,a.width,a.height)}["loop","muted","playsinline"].forEach(function(e){if(d[e]!==undefined||s[e]||s.embedState[e]||a[e]){a[e]=true}else{a[e]=false}});if(a.playsinline){n.setAttribute("playsinline","playsinline")}if(a.muted){n.setAttribute("muted","muted");n.muted=true}if(c){if(d.language){a.language=d.language}else if(A.isNonEmptyStr(i.documentElement.lang)){a.language=i.documentElement.lang}else{a.language=r.navigator.language}i.documentElement.lang=a.language}else if(n.hasAttribute("language")){a.language=n.getAttribute("language");e.log.warn("Use of the language attribute on the video embed is invalid. Please use the lang attribute instead.")}else if(!a.hasOwnProperty("language")&&A.isNonEmptyStr(s.language)){a.language=s.language}var j=s.media;if(j&&j.poster&&j.poster.highres&&!n.poster){if(/(https?:)?\\/\\//.test(j.poster.highres)){a.poster=j.poster.highres}else{a.poster=t.environment.scriptBaseUrl+"/"+j.poster.highres}if(e.browser.IS_IPHONE){n.poster=a.poster}}if(j&&j.tracks){j.tracks.forEach(function(t){n.appendChild(e.dom.createEl("track",{},{default:t.default?t.default:"",label:t.label?t.label:"",kind:"captions",src:t.src,srclang:t.srclang}))})}if(j&&j.src){a.sources=[j.src]}else if(j&&j.sources){a.sources=j.sources}a.runtime_=t;if(!(e.browser.IS_ANY_SAFARI||e.browser.IS_IOS)){a.html5=a.html5||{};a.html5.nativeCaptions=false}if(s.vhs!==false){if(!a.flash){a.flash={}}if(!a.flash.swf){a.flash.swf=s.playersCDN+"/videojs-flashls-source-handler/1.4.8/video-js.swf"}}e.options.vhs=e.options.vhs||{};a.html5=a.html5||{};a.html5.vhs=a.html5.vhs||{};if(s.vhs&&typeof s.vhs==="object"){a.html5.vhs=s.vhs}if(e.browser.IS_ANDROID&&(e.options.vhs.enableLowInitialPlaylist===undefined||a.html5.vhs.enableLowInitialPlaylist===undefined)){a.html5.vhs.enableLowInitialPlaylist=true}if(!e.browser.IS_ANY_SAFARI&&e.options.vhs.overrideNative===undefined&&a.html5.vhs.overrideNative===undefined){a.html5.vhs.overrideNative=true}a.inactivityTimeout=5e3;if(e.browser.TOUCH_ENABLED){a.inactivityTimeout=0}a.controls=c?true:s.embedState.controls;a.persistTextTrackSettings=true;a.sourceOrder=true;a.userActions={hotkeys:{}};if(s.fullscreenControl===false){a.userActions.doubleClick=false}var w=t.environment.userAgent.match(/applewebkit\\/(\\d*).*Version\\/(\\d*.\\d*)/i);a.nativeControlsForTouch=e.browser.IS_ANDROID&&e.browser.ANDROID_VERSION<5&&w&&w[2]>0;["controlBar","flash","liveui","playbackRates","responsive","suppressNotSupportedError","techOrder"].forEach(function(e){if(s.hasOwnProperty(e)){a[e]=s[e]}});return a}var G=function e(t){var i=t.registerPlugin||t.plugin;i("urlparams",function(e){e=e||{};var i=function e(t){var i=0,r;t=(t||"").replace(/^\\s+|\\s+$/g,"");if(!t||!/^(\\d+h)?(\\d+m)?(\\d+s)?$/.test(t)){return-1}r=t.match(/^(\\d+)h/);if(r){i+=parseFloat(r[1])*3600;t=t.replace(/^(\\d+)h/,"")}r=t.match(/^(\\d+)m/);if(r){i+=parseFloat(r[1])*60;t=t.replace(/^(\\d+)m/,"")}r=t.match(/^(\\d+)s/);if(r){i+=parseFloat(r[1])}return i},r=.9,n=function e(t,i){var n=t-i;if(isNaN(n)){return false}return Math.abs(n)<r},a=function e(t){s.ready(function(){if(s.networkState()===2){t()}else{s.one("loadedmetadata",function(){s.setTimeout(t,0)})}})},s=this,o=A.qs(),l=o.hash.t||o.search.t,u;if(typeof e.time==="number"){u=e.time}else{u=i(e.time)}if(l){if(/^[\\d]+$/.test(l)){u=Number(l)}else{u=i(l)}if(!e.iframe&&u!==-1){t.log.warn("DEPRECATION: Using the `t` query parameter or URL hash value to set an initial playback start time for advanced, in-page embeds is deprecated and will be removed in Brightcove Player 7. Please add a `data-start-time` attribute going forward!")}}if(u>0){(function(){var t=e.delay||250,i,r=false,o=function e(){if(r||n(s.currentTime(),u)){r=true;l()}else{s.currentTime(u);i=s.setTimeout(e,t)}},l=function e(){s.clearTimeout(i);s.off("timeupdate",e);if(!r){s.currentTime(u)}};s.on("timeupdate",l);a(o)})()}if(o.hash.captions!==undefined||o.search.captions!==undefined){(function(){var e=o.hash.captions||o.search.captions;s.one("play",function(){var t=s.textTracks(),i,r;if(t){for(r=0;r<t.length;r++){i=t[r];if(i.language===e){i.mode="showing";break}}}})})()}})};function Y(e){if(e===void 0){throw new ReferenceError("this hasn\'t been initialised - super() hasn\'t been called")}return e}var K=Y;function X(e,t){e.prototype=Object.create(t.prototype);e.prototype.constructor=e;e.__proto__=t}var Q=X;var J={activeCues:null,cues:null,id:"",inBandMetadataTrackDispatchType:undefined,kind:"metadata",label:"",language:"",mode:"",oncuechange:undefined};var Z=["activeCues","cues","id","inBandMetadataTrackDispatchType","kind","label","language"];var $=["mode"];var ee=function e(t,i){if(t==="media"&&i.kind==="metadata"&&i.label==="media-cues"){return true}if(t==="id3"&&typeof i.inBandMetadataTrackDispatchType==="string"&&i.inBandMetadataTrackDispatchType.trim().length>0){return true}return false};var te=function e(t){var i=function(e){Q(i,e);function i(i,r,n){var a;if(n===void 0){n=function e(){}}a=e.call(this)||this;var s=K(a);s.player_=i;s.reTriggerEvent_=t.bind(s,s.reTriggerEvent_);s.update_=t.bind(s,s.update_);s.type_=r;s.logger_=n;Z.concat($).forEach(function(e){var t={get:function t(){return s.track_&&s.track_[e]||J[e]},enumerable:true};if($.indexOf(e)!==-1){t.set=function(t){if(!s.track_){return}s.track_[e]=t}}Object.defineProperty(s,e,t)});s.update_();var o=i.textTracks();var l=function e(t){if(!s.track_){s.update_(t)}else if(s.track_.mode!=="hidden"){s.track_.mode="hidden";s.logger_("timeupdate -> type:"+s.type_+(s.track_?",mode:"+s.track_.mode:"")+" -> track was set to hidden")}};["addtrack","removetrack"].forEach(function(e){return o.addEventListener(e,s.update_)});s.player_.on("timeupdate",l);return s||K(a)}var r=i.prototype;r.addCue=function e(){var t=this;var i=arguments;if(!this.track_){this.one("trackexists",function(){return t.addCue.apply(t,i)});return}return this.track_.addCue.apply(this.track_,i)};r.removeCue=function e(){var t=this;var i=arguments;if(!this.track_){return this.one("trackexists",function(){return t.removeCue.apply(t,i)})}return this.track_.removeCue.apply(this.track_,i)};r.reTriggerEvent_=function e(t){this.trigger(t)};r.update_=function e(t){if(t===void 0){t={}}var i;if(t.type==="removetrack"&&t.track&&t.track===this.track_){i=null}
1else if(t.type==="addtrack"&&t.track&&!this.track_&&ee(this.type_,t.track)){i=t.track}else{var r=this.player_.textTracks();var n=r.length;while(n--){if(ee(this.type_,r[n])){i=r[n];break}}}this.logger_("update -> type:"+this.type_+", mode:"+(i?i.mode:"?")+" -> event:"+(t.type||"constructor"));if(this.track_===i){this.logger_("update -> type:"+this.type_+", mode:"+(i?i.mode:"?")+" -> "+(i?"already proxied":"no track to proxy"));return}if(this.track_){this.track_.removeEventListener("cuechange",this.reTriggerEvent_)}this.track_=i;if(!this.track_){this.logger_("update -> type:"+this.type_+", mode:"+(i?i.mode:"?")+" -> track changed, but no new track exists");return}if(this.track_.mode!=="hidden"){this.track_.mode="hidden"}this.track_.addEventListener("cuechange",this.reTriggerEvent_);this.trigger("trackexists");this.logger_("update -> type:"+this.type_+", mode:"+(i?i.mode:"?")+" -> track exists")};return i}(t.EventTarget);i.prototype.allowedEvents_={cuechange:"cuechange"};return i};var ie=function e(t){var i=te(t);var r={id3CuePointsTrack:function e(t){var r=this.proxyTracks_.id3;if(!r){r=this.proxyTracks_.id3=new i(this,"id3",t)}return r},mediaCuePointsTrack:function e(t){var r=this.proxyTracks_.media;if(r){return r}r=this.proxyTracks_.media=new i(this,"media",t);if(r.track_){return r}this.addTextTrack("metadata","media-cues");r.update_();return r}};function a(e){var i=this;if(e===void 0){e={}}this.proxyTracks_={};var n=t.createLogger("proxyTracks");if(!e.debug){n=function e(){}}n("initialized");Object.keys(r).forEach(function(e){i[e]=function(){return r[e].call(i,n)}});this.ready(function(){Object.keys(r).forEach(function(t){var r=i[t]();if(e.debug){r.on("cuechange",function(){for(var e=0;e<r.activeCues.length;e++){var t=r.activeCues[e];n(r.type_+" -> cuechange -> activeCues["+e+"]: "+(t.value&&t.value.key||t.frame&&t.frame.id))}})}})})}t.registerPlugin("proxyTracks",a);a.VERSION=n};var re={verbose:false,maxSavedSeekEvents:10,debounceTimeout:1e3,playbackRateTolerance:1.5,stableTimeUpdate
1Count:3,minInterval:1};var ne=function e(t){t.trigger("seek")};var ae=function e(t){var i=function e(i){var r=t.mergeOptions(re,i);var n;var a=false;var s;var o;var l;var u;var c=0;var d=[];var f=0;var h={};var p={};var v=r.verbose?function(){var e;for(var i=arguments.length,r=new Array(i),n=0;n<i;n++){r[n]=arguments[n]}return(e=t.log).call.apply(e,[t,"seek-events:"].concat(r))}:function(){};var m=function e(){h.seek=this.seekEvents.last().seekEnd;a=false;v("event seekStart: ",this.seekEvents.last().seekStart);v("event seekEnd: ",this.seekEvents.last().seekEnd)};var g=function e(){v("stable");this.seekEvents.stable=true};var y=function e(){v("unstable");this.seekEvents.stable=false};var _=function e(t){h.seek=this.currentTime();h.clock=t.timeStamp||Date.now();p.seek=h.seek;p.clock=h.clock};var b=A.debounce(ne,r.debounceTimeout);var T=function e(t){s=this.currentTime();o=t.timeStamp||+new Date;l=s-p.seek;if(o===p.clock||s===h.seek){return}u=Math.abs(l)/(Math.abs(o-p.clock)*.001);if(u/this.playbackRate()>this.seekEvents.playbackRateTolerance){if(Math.abs(s-h.seek)>=this.seekEvents.minInterval){this.trigger("unstable");c=0;if(!a){f=Number(h.seek)}d.push({timeStamp:o,seekStart:f,seekEnd:s,seekInterval:s-f});if(d.length>r.maxSavedSeekEvents){d.shift()}a=true;b(this)}}else{c++;v(s+": "+c);if(c>
1=this.seekEvents.stableTimeUpdateCount&&!this.seekEvents.stable&&!a){this.trigger("stable")}h.seek=s}p.seek=s;p.clock=o};this.seekEvents={stableTimeUpdateCount:r.stableTimeUpdateCount,playbackRateTolerance:r.playbackRateTolerance,debounceTimeout:r.debounceTimeout,minInterval:r.minInterval,stable:false,enabled:function e(){return n},enable:t.bind(this,function(){if(n){return}n=true;h.seek=0;h.clock=Date.now();p.seek=0;p.clock=h.clock;this.on("seek",m);this.on("stable",g);this.on("unstable",y);this.on(["loadstart","playing","adplaying"],_);this.on(["timeupdate","adtimeupdate"],T)}),disable:t.bind(this,function(){if(!n){return}n=false;this.off("seek",m);this.off("stable",g);this.off("unstable",y);this.off(["loadstart","playing","adplaying"],_);this.off(["timeupdate","adtimeupdate"],T)}),last:function e(){return d[d.length-1]},all:function e(){return d}};this.seekEvents.enable()};var r=t.registerPlugin||t.plugin;i.VERSION=n;r("seekEvents",i)};var se=new r.Blob([new Uint8Array([0,0,0,28,102,116,121,112,105,115,111,109,0,0,2,0,105,115,111,109,105,115,111,50,109,112,52,49,0,0,0,8,102,114,101,101,0,0,2,239,109,100,97,116,33,16,5,32,164,27,255,192,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,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,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,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,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,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,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,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,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,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,55,167,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,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,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,0,0,0,0,0,0,0,0,0,0,0,112,33,16,5,32,164,27,255,192,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,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,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,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,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,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,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,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,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,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,55,167,128,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,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,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,0,0,0,0,0,0,0,0,0,0,0,112,0,0,2,194,109,111,111,118,0,0,0,108,109,118,104,100,0,0,0,0,0,0,0,0,0,0,0,0,0,0,3,232,0,0,0,47,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,0,0,0,3,0,0,1,236,116,114,97,107,0,0,0,92,116,107,104,100,0,0,0,3,0,0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,47,0,0,0,0,0,0,0,0,0,0,0,1,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,0,0,0,0,0,0,0,0,0,0,0,36,101,100,116,115,0,0,0,28,101,108,115,116,0,0,0,0,0,0,0,1,0,0,0,47,0,0,0,0,0,1,0,0,0,0,1,100,109,100,105,97,0,0,0,32,109,100,104,100,0,0,0,0,0,0,0,0,0,0,0,0,0,0,172,68,0,0,8,0,85,196,0,0,0,0,0,45,104,100,108,114,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,0,0,1,15,109,105,110,102,0,0,0,16,115,109,104,100,0,0,0,0,0,0,0,0,0,0,0,36,100,105,110,102,0,0,0,28,100,114,101,102,0,0,0,0,0,0,0,1,0,0,0,12,117,114,108,32,0,0,0,1,0,0,0,211,115,116,98,108,0,0,0,103,115,116,115,100,0,0,0,0,0,0,0,1,0,0,0,87,109,112,52,97,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,2,0,16,0,0,0,0,172,68,0,0,0,0,0,51,101,115,100,115,0,0,0,0,3,128,128,128,34,0,2,0,4,128,128,128,20,64,21,0,0,0,0,1,244,0,0,1,243,249,5,128,128,128,2,18,16,6,128,128,128,1,2,0,0,0,24,115,116,116,115,0,0,0,0,0,0,0,1,0,0,0,2,0,0,4,0,0,0,0,28,115,116,115,99,0,0,0,0,0,0,0,1,0,0,0,1,0,0,0,2,0,0,0,1,0,0,0,28,115,116,115,122,0,0,0,0,0,0,0,0,0,0,0,2,0,0,1,115,0,0,1,116,0,0,0,20,115,116,99,111,0,0,0,0,0,0,0,1,0,0,0,44,0,0,0,98,117,100,116,97,0,0,0,90,109,101,116,97,0,0,0,0,0,0,0,33,104,100,108,114,0,0,0,0,0,0,0,0,109,100,105,114,97,112,112,108,0,0,0,0,0,0,0,0,0,0,0,0,45,105,108,115,116,0,0,0,37,169,116,111,111,0,0,0,29,100,97,116,97,0,0,0,1,0,0,0,0,76,97,118,102,53,54,46,52,48,46,49,48,49])],{type:"video/mp4"});var oe=URL.createObjectURL(se);
1var le=["perSourceBehaviors","contextmenu","contextmenuUI","bcAnalytics","errors","catalog","playerInfo","dock","plugin","reloadSourceOnError","playlist","endscreen","proxyTracks","seekEvents","touchActive","urlparams"];var ue=function e(t,n,a){var s=a.settings;var o=a.environment;var l=o.queryString;var u={};var c=Boolean(n.options_.debug);var d={bcAnalytics:{applicationId:s.applicationId,mr:Boolean(r.bc_isManagedRelease),referrer:l.referrer,usage:l.usage,verbose:c},chromecastReceiver:{debug:c},ima3:{debugContribAds:c},ssai:{debug:c},vr:{debug:c}};n.on("pluginsetup",function(e,i){var r=i.name;if(le.indexOf(r)!==-1){return}n.trigger({type:"usage",name:r+"!"+t.getPluginVersion(r)})});if(s.contextMenu!==false){var f=[{label:n.localize("Player Information"),listener:function e(){return n.usingPlugin("playerInfo")&&n.playerInfo.modal.open()}}];if(s.contextMenu.brightcoveBranding!==false){f.push({href:"https://www.brightcove.com/en/why-brightcove?utm_type=player",label:n.localize("About Brightcove")})}d.contextmenuUI={content:f}}var h=function e(i,r){if(r===void 0){r={}}var a=d[i]||{};if(!n.hasPlugin(i)){t.log.error(\'Plugin "\'+i+\'" is missing. Please check your player configuration.\');return}if(n.usingPlugin(i)){return}var s=t.mergeOptions(a,r);try{n[i](s)}catch(e){t.log.error(\'Unable to initialize "\'+i+\'" plugin:\',e)}};if(s.usingAdFailover&&s.usingIMAPrerollWithSSAI){t.log.warn("Ad failover is not compatible with SSAI and client-side preroll. "+"Please configure only one. This player will use ad failover behavior.");delete s.usingIMAPrerollWithSSAI}if(s.usingAdFailover){n.trigger({type:"usage",name:"ad-failover"});var p=n.usingAdBlocker.mightBe?s.serverSideAdPlugin:s.clientSideAdPlugin,v=p.name,m=p.options;h(v,m)}else if(s.usingIMAPrerollWithSSAI){if(r.bc.disposedAfterPreroll_){var g=s.serverSideAdPlugin.name;var y=s.serverSideAdPlugin.options;var _=s.clientSideAdPlugin.name;t.deregisterPlugin(_);t.registerPlugin(g,r.bc.ssaiPluginCache_);h(g,y)}else{n.trigger({type:"usage",name:"ssai-wit'),t[0].s.push('h-ima-preroll"});var b=s.clientSideAdPlugin.name;var T=s.clientSideAdPlugin.options;var S=s.serverSideAdPlugin.name;r.bc.ssaiPluginCache_=t.getPlugin("ssai");t.deregisterPlugin(S);h(b,T);var k=n.tagAttributes;n.one(["adend","adtimeout","adserror"],function(e){n.one("playing",function(){var t=n.volume();var a=n.muted();if(e.type==="adend"){t=n.ima3.adPlayer.volume();a=n.ima3.adPlayer.muted()}var s=n.el();var o=s.parentNode;var l=i.createElement("div");l.setAttribute("id","bc-player-placeholder");o.replaceChild(l,s);n.dispose();r.bc.disposedAfterPreroll_=true;var u=i.createElement("video");Object.keys(k).forEach(function(e){u.setAttribute(e,k[e])});o.replaceChild(u,l);var c=r.bc(k.id);c.bigPlayButton.hide();c.ready(function(){c.one("playing",function(){r.bc.disposedAfterPreroll_=false});var e=c.play();if(e.then){e.catch(function(){c.bigPlayButton.show()})}c.volume(t);c.muted(a)})})})}}s.plugins.forEach(function(e){var t=e.autoInit,i=e.name,r=e.options;if(!t){return}h(i,r)});var E=s.media,j=s.videoCloud;var w=E&&!!(E.sources||E.length&&E[0].sources);if(j&&j.policy_key&&!w){var C={embedHasPoster:s.embedState.poster,embedHasSources:s.embedState.sources,embedHasTracks:s.embedState.tracks,adConfigId:s.adConfigId,deliveryConfigId:s.deliveryConfigId};if(j.playlist){n.trigger({type:"usage",name:"catalog-playlist"});C.playlistId=j.playlist}if(j.video){n.trigger({type:"usage",name:"catalog-video"});C.videoId=j.video}if(j.search){n.trigger({type:"usage",name:"catalog-search"});C.search=j.search}if(j.sequence){n.trigger({type:"usage",name:"catalog-sequence"});C.sequence=j.sequence}var I;if(s.usingIMAPrerollWithSSAI&&!r.bc.disposedAfterPreroll_){n.src({src:oe,type:"video/mp4"})}else{I=u.catalogMedia=n.catalog.autoFindAndLoadMedia(C)}if(I&&I.type==="video"){if(/^[\\d]+$/.test(I.id)){n.mediainfo.id=I.id}else{n.mediainfo.referenceId=n.mediainfo.reference_id=I.id}}n.on("loadstart",function(){if(n.language()&&n.catalog.getMetadata({lang:n.language()})){n.trigger({type:"usage",name:"variant:"+n.language()})}})}if(n.usingPlugin("bcAnalytics")){var x=function e(){return(new Date).toISOString().split("T")[0]+":"+n.bcAnalytics.client.getSession()};n.ready(function(){A.perf.mark("bcInitEnd");A.perf.measure("bcInit","bcInitStart","bcInitEnd");if(n.usingPlugin("playerInfo")){n.playerInfo.modal.on("modalfill",function(){var e=x();var t=n.playerInfo.modal.$(".vjs-pi-section--player tbody");if(!e||!t){return}var r=i.createElement("tr");var a=i.createElement("tr");r.innerHTML="<td>"+n.localize("Session ID")+"</td> <td>"+e+"</td>";t.appendChild(r);a.innerHTML="<td>"+n.localize("Player Element ID")+"</td> <td>"+n.id()+"</td>";t.appendChild(a)})}});if(n.usingPlugin("errors")){n.errorDisplay.on("modalfill",function(){var e=x();var i=n.errorDisplay.$(".vjs-errors-content-container");if(!e||!i){return}i.appendChild(t.dom.createEl("div",{className:"vjs-errors-ref-id",innerHTML:"<b>"+n.localize("Session ID:")+"</b> "+e+" "+"<b>"+n.localize("Player Element ID:")+"</b> "+n.id()}))})}}if(n.usingPlugin("playerInfo")){n.on("vjs-contextmenu",function(){if(n.playerInfo.modal){n.playerInfo.modal.close()}})}if(n.hasPlugin("dock")){var P=E&&(E[0]&&E[0].title||E.title)||"";var O=E&&(E[0]&&E[0].description||E.description)||"";var L=function e(){if(n.controls()){var t=n.mediainfo;var i=n.language()||"";var r;if(n.usingPlugin("catalog")){r=n.catalog.getMetadata({lang:i});if(!r){r=n.catalog.getMetadata({lang:i.substring(0,2)})}}n.dock({title:r&&r.name||t&&t.name||P,description:r&&r.description||t&&t.description||O})}};L();n.on(["loadedmetadata","languagechange"],L)}return u};var ce=function e(t){var i=t.registerPlugin||t.plugin;i("touchActive",function(){if(!t.browser.TOUCH_ENABLED){return}var e=this;var i=false;var r=function t(){if(!i){e.userActive(false)}};e.one("play",function(){var t=e.options_.inactivityTimeout>0?e.options_.inactivityTimeout:5e3;e.el().className+=" vjs-user-active";e.one(["click","tap"],function(){i=true});e.setTimeout(r,t)})})};var de=A.get;var fe="unknown";
1var he=function e(t){var i=t.getComponent("ModalDialog");var n=t.dom;var a={adonly:"Ad-Only",ampSupport:"AMP Support",bcAa:"Adobe Analytics",bcGa:"Google Analytics",bcGtm:"Google Tag Manager",bcPlaylistUi:"Brightcove Playlist UI",bcTealium:"Tealium",chromecastReceiver:"Chromecast Receiver",customEndscreen:"Custom Endscreen",dash:"DASH",eme:"DRM",dvrux:"Live DVRUX",FreeWheelPlugin:"FreeWheel",ima3:"IMA3",kollective:"Kollective",onceux:"OnceUX",pip:"Picture-in-Picture",qualityMenu:"Quality Menu",social:"Social",ssai:"SSAI",thumbnails:"Thumbnails",vr:"VR"};var s=function e(){for(var t=arguments.length,i=new Array(t),r=0;r<t;r++){i[r]=arguments[r]}return"<tr>"+i.map(function(e){return"<td>"+e+"</td>"}).join("")+"</tr>"};var o=function(e){Q(i,e);function i(){return e.apply(this,arguments)||this}var o=i.prototype;o.buildCSSClass=function t(){return"vjs-player-info-modal "+e.prototype.buildCSSClass.call(this)};o.dataForPlugins_=function e(){var i=this;return Object.keys(a).filter(t.getPlugin).sort().map(function(e){var r=i.player();var n=t.getPluginVersion(e)||de(r,e+".VERSION",fe);if(e==="eme"&&n===fe&&t.drm&&t.drm.VERSION){n=t.drm.VERSION}return{active:r.usingPlugin(e),displayName:a[e],version:n}})};o.dataForSource_=function e(){var t=this.player();var i=t.tech_.vhs,r=t.mediainfo;var n={mediainfo:r,tech:t.techName_,type:t.currentType()};if(!i){return n}var a=de(i,"playlists",{media:function e(){}}).media();n.vhs={bandwidth:de(i,"stats.bandwidth",fe),mediaBytesTransferred:de(i,"stats.mediaBytesTransferred",fe),mediaTransferDuration:de(i,"stats.mediaTransferDuration",fe),mediaRequests:de(i,"stats.mediaRequests",fe)};if(a){n.vhs.rendition={height:de(a,"attributes.RESOLUTION.height",fe),width:de(a,"attributes.RESOLUTION.width",fe)}}return n};o.data=function e(){var t=this.player();var i=n.getAttributes(t.el());var a=de(t,"bcinfo.accountId",de(i,"data-account",fe));var s=de(t,"bcinfo.playerId",de(i,"data-player",fe));var o=de(t,"bcinfo.embedId",de(i,"data-embed",fe));var l=de(t,"bcinfo.applicationId",de(i,"data-application-id",""));var u=de(r,"bc."+s+"_"+o+".VERSION",de(r,"bc.VERSION",fe));var c=de(r,"bc."+s+"_"+o+".videojs.VERSION",de(r,"videojs.VERSION",fe));return{player:{accountId:a,playerId:s,embedId:o,applicationId:l,playerVersion:u,videojsVersion:c},plugins:this.dataForPlugins_(),source:this.dataForSource_()}};o.contentForPlugins_=function e(t){var i=this;var r=(\'\\n        <tr>\\n          <td colspan="3">\'+this.localize("No plugins available.")+"</td>\\n        </tr>\\n      ").trim();if(t.plugins.length){r=t.plugins.map(function(e){return s(e.displayName,e.version,e.active?i.localize("yes"):i.localize("no"))}).join("")}return("\\n        <table>\\n          <thead>\\n            <tr>\\n              <th>"+this.localize("Name")+"</th>\\n              <th>"+this.localize("Version")+"</th>\\n              <th>"+this.localize("Active")+"</th>\\n            </tr>\\n          </thead>\\n          <tbody>"+r+"</tbody>\\n        </table>\\n      ").trim()};o.contentForSource_=function e(t){var i=["<table><tbody>",s(this.localize("Current Playback Tech"),t.source.tech),s(this.localize("Current Media Type"),t.source.type)];if(t.source.mediainfo){i.push(s(this.localize("Video Name"),t.source.mediainfo.name),s(this.localize("Video ID"),t.source.mediainfo.id))}if(t.source.vhs){i.push(s(this.localize("Current Bandwidth"),t.source.vhs.bandwidth),s(this.localize("Media Bytes Transferred"),t.source.vhs.mediaBytesTransferred),s(this.localize("Media Requests"),t.source.vhs.mediaRequests),s(this.localize("Media Transfer Duration"),t.source.vhs.mediaTransferDuration));if(t.source.vhs.rendition){i.push(s(this.localize("Rendition Width"),t.source.vhs.rendition.width),s(this.localize("Rendition Height"),t.source.vhs.rendition.height))}}return i.concat("</tbody></table>").join("")};o.content=function e(){var t=this.data();return[n.createEl("h1",{innerHTML:this.localize("Player Information")}),n.createEl("div",{className:"vjs-pi-section vjs-pi-section--player",innerHTML:["<h2>"+this.localize("General")+"</h2>","<table><tbody>",s(this.localize("Brightcove Player Version"),t.player.playerVersion),s(this.localize("Video.js Version"),t.player.videojsVersion),s(this.localize("Account ID"),t.player.accountId),s(this.localize("Player ID"),t.player.playerId),s(this.localize("Embed ID"),t.player.embedId),s(this.localize("Application ID"),t.player.applicationId),"</tbody></table>"].join("")}),n.createEl("div",{className:"vjs-pi-section vjs-pi-section--plugins",innerHTML:["<h2>"+this.localize("Plugins")+"</h2>",this.contentForPlugins_(t)].join("")}),n.createEl("div",{className:"vjs-pi-section vjs-pi-section--source",innerHTML:["<h2>"+this.localize("Source")+"</h2>",this.contentForSource_(t)].join("")})]};return i}(i);t.registerComponent("PlayerInfoModal",o);return o};var pe=function e(t){he(t);function i(){var e=this;
1if(this.playerInfo.modal){this.playerInfo.modal.dispose()}this.playerInfo=function(){i.apply(this,arguments)};this.ready(function(){e.addClass("vjs-player-info");e.playerInfo.modal=e.addChild("playerInfoModal",{fillAlways:true,label:e.localize("Player Information Dialog"),temporary:false});e.playerInfo.modal.on("dispose",function(){delete e.playerInfo})})}t.registerPlugin("playerInfo",i);i.VERSION=n};var ve=function e(t){var i=function e(t,i){if(typeof t.usingPlugin==="function"){return t.usingPlugin(i)}return!!t[i]};var r=function e(t){t.postrollFinished=false;t.postrollTimedOut=false;t.sawNoPostrollEvent=false};var a=function e(t){if(!i(t,"ads")){return false}var r=t.endscreenState_;if(r.sawNoPostrollEvent){return false}return!r.postrollFinished&&!r.postrollTimedOut};var s=function e(t){if(!i(t,"playlist")){return false}var r=t.playlist;var n=r();if(r.autoadvance_.delay!==0||!n.length){return false}return r.repeat()||r.currentItem()!==n.length-1};var o=function e(){var t=this;if(this.endscreenState_){return}var i=this.endscreenState_={};var n=function e(){t.trigger("endscreen")};r(i);this.on("adstart",function(){var e=t.ended();i.postrollFinished=!e});this.on("adend",function(){i.postrollFinished=t.ended()});this.on("adtimeout",function(){i.postrollTimedOut=t.ended()});this.on(["endscreen","loadstart"],function(){t.off("adend",n);r(i)});this.on("nopostroll",function(){i.sawNoPostrollEvent=true});this.on("ended",function(){if(s(t)){return}if(a(t)){t.one("adend",n);return}n()})};o.VERSION=n;if(t.registerPlugin){if(!t.getPlugin("endscreen")){t.registerPlugin("endscreen",o)}}else{t.plugin("endscreen",o)}};var me=["audioTracks","textTracks","videoTracks","remoteTextTracks","addTextTrack","addRemoteTextTrack","removeRemoteTextTrack","scrubbing","ended"];var ge=["handleKeyDown"];var ye=function e(t,i){var r=function e(t){return function(e){if(e.isAdPlayerPatched_){return}var i=e.prototype;e.isAdPlayerPatched_=true;Object.defineProperty(i,"fsApi_",{get:function e(){return this.options_&&this.options_.contentPlayer&&this.options_.contentPlayer.fsApi_}});me.forEach(function(e){if(!(e in i)){i[e]=function(){}}});ge.forEach(function(e){if(!i.hasOwnProperty(e)){i[e]=function(){}}});Object.defineProperty(t,"AdPlayer",{configurable:true,enumerable:true,get:function t(){return e},set:function e(){}});return e}};var n=function e(i){if(!i){Object.defineProperty(t,"ima3",{configurable:true,enumerable:true,get:function e(){},set:function i(r){e(r);Object.defineProperty(t,"ima3",{value:r})}});return}var n=r(i);if(!i.AdPlayer){Object.defineProperty(i,"AdPlayer",{configurable:true,enumerable:true,get:function e(){},set:n});return}n(i.AdPlayer)};if(t.ima3){n(t.ima3)}else{i.one("beforepluginsetup:ima3",function(){n(t.ima3)})}};var _e="vjs-waiting-for-autoplay";function be(e,t,r,n){var a=r.options_;var s=t.settings,o=t.environment;var l=s.accountId,u=s.applicationId,c=s.css,d=s.embedId,f=s.playerId;var h;r.mediainfo={accountId:l,account_id:l};r.bcinfo={accountId:l,applicationId:u,css:c,embedId:d,playerId:f,scriptUrl:o.scriptUrl,scriptBaseUrl:o.scriptBaseUrl};Object.defineProperty(r,"usingAdBlocker",{enumerable:true,value:V});Object.defineProperty(r,"getAutoplayConditions",{enumerable:true,value:function e(t){return n.getAutoplayConditions(t)}});Object.defineProperty(r,"getAccountId",{enumerable:true,value:function e(){return n.runtime.settings.accountId}});if(t.settings.allowAccountOverride){Object.defineProperty(r,"setAccountId",{enumerable:true,value:function t(i){if(A.isNil(i)){e.log.warn("account ID must be a string or number");return}n.runtime.settings.accountId=i;this.bcinfo.accountId=i;this.mediainfo.accountId=this.mediainfo.account_id=i}})}V().then(function(e){if(e){r.trigger({type:"usage",name:"using-ad-blocker"})}});r.addClass(s.classNames.player);r.addClass(s.classNames.playerInstance);var p=e.bind(r,r.dimension);r.dimension=function(e,t){if(e==="width"){N(s,t,null)}else if(e==="height"){N(s,null,t)}return p(e,t)};r.ready(function(){if(!a.autoplay){return}function t(){r.removeClass(_e)}function i(){if(!r.autoplay()){r.removeClass(_e);return}var e=r.play();if(e===undefined){t()}else{e.then(t,t)}}var n=["canplay","error","durationchange"];function s(a){if(a.type==="error"){t();r.off(n,s);return}if(a.type==="durationchange"&&r.duration()===Infinity&&!e.browser.IS_ANY_SAFARI){i();r.off(n,s);return}if(a.type==="canplay"){i();r.off(n,s)}}if(!r.currentSrc()&&!h){t()}else if(r.readyState()===4){i()}else{r.one(n,s)}});if(s.fullscreenControl===false&&r.controls()){r.on("loadedmetadata",function(){if(!r.controlBar){return}var e=r.controlBar.children();if(!e||!e.length){return}for(var t=e.length-1;t>0;t--){if(e[t].hasClass("vjs-menu-button-popup")&&!e[t].hasClass("vjs-hidden")){e[t].addClass("vjs-menu-popup-last-visible");break}}})}if(e.browser.IS_IPHONE){r.on("fullscreenchange",function(){var e=r.$(".vjs-tech");if(e.hasAttribute("controls")){e.removeAttribute("controls")}});if(s.embedState.playsinline&&s.embedState.muted){r.addClass("vjs-iphone")}}if(e.browser.IS_IOS&&s.embedState.muted){r.addClass("vjs-ios")}if(r.controls()){r.one("play",function(){if(!r.controlBar||!r.controls()){return}var e=r.controlBar.children();if(!e||!e.length){return}var t=["Enter","ArrowDown","ArrowUp","Up","Down"," ","Spacebar"];for(var i=0;i<e.length;i++){if(e[i].hasClass("vjs-menu-button-popup")&&!e[i].hasClass("vjs-hidden")){e[i].on("keyup",function(e){if(t.indexOf(e.key)>=0){r.controlBar.addClass("vjs-control-bar-visible")}})}}});if(r.controlBar){var v=r.controlBar.el();var m;var g=function e(){var t=i.activeElement;if(m!==t){m=t;r.controlBar.toggleClass("vjs-focus-within",v.contains(t))}};var y=function e(){v.removeEventListener("focus",g,true);v.removeEventListener("blur",g,true)};v.addEventListener("focus",g,true);v.addEventListener("blur",g,true);r.on("dispose",y);r.controlBar.on("dispose",y)}}ye(e,r);r.one("beforepluginsetup:ads",function(){var t=r.getChild("controlBar");if(t){t.removeChild("pictureInPictureToggle")}e.getComponent("Component").prototype.fsApi_=r.fsApi_});if(!e.browser.TOUCH_ENABLED){r.addClass("vjs-mouse");if(o.isInBcFrame){e.dom.addClass(i.documentElement,"vjs-mouse")}}else if(e.browser.IS_IPHONE){r.addClass("vjs-native")}r.requestAnimationFrame(function(){var e=i.querySelector(".bc-wrap");r.addClass("vjs-plugins-ready");if(e){e.style.opacity=0}});r.on(["mouseenter","ended","touchend"],function(){r.removeClass("not-hover")});r.on("mouseleave",function(){r.addClass("not-hover");if(!r.controlBar||!r.controlBar.el()){return}if(r.controlBar.hasClass("vjs-control-bar-visible")){r.controlBar.removeClass("vjs-control-bar-visible")}});if(!e.browser.IS_ANY_SAFARI){r.one("loadeddata",function(){if(r.language()!==undefined&&r.catalog&&r.catalog.getMetadata().variants!==undefined){var e=r.language()||"";var t=r.textTracks();if(t){var i=Array.prototype.filter.call(t,function(e){return(e.kind==="captions"||e.kind==="subtitles")&&e.mode==="showing"});var n;var a;if(!i.length){for(a=0;a<t.length;a++){n=t[a];if((n.kind==="captions"||n.kind==="subtitles")&&n.language===e){n.mode="showing";return}}for(a=0;a<t.length;a++){n=t[a];if((n.kind==="captions"||n.kind==="subtitles")&&n.language===e.substring(0,2)){n.mode="showing";return}}}}}})}var _=o.bcShimDestripeTime;if(_!==undefined){if(_>1){r.trigger({type:"usage",name:"sdt-"+(Math.log(_)/Math.LN10).toFixed(1)})}else{r.trigger({type:"usage",name:"sdt-0.0"})}}r.ready(function(){if(r.bcinfo&&r.bcinfo.PLAYER_LOADER||o.brightcovePlayerLoader){r.trigger({type:"usage",name:"player-'),t[1].s.push('h-ima-preroll"});var b=s.clientSideAdPlugin.name;var T=s.clientSideAdPlugin.options;var S=s.serverSideAdPlugin.name;r.bc.ssaiPluginCache_=t.getPlugin("ssai");t.deregisterPlugin(S);h(b,T);var k=n.tagAttributes;n.one(["adend","adtimeout","adserror"],function(e){n.one("playing",function(){var t=n.volume();var a=n.muted();if(e.type==="adend"){t=n.ima3.adPlayer.volume();a=n.ima3.adPlayer.muted()}var s=n.el();var o=s.parentNode;var l=i.createElement("div");l.setAttribute("id","bc-player-placeholder");o.replaceChild(l,s);n.dispose();r.bc.disposedAfterPreroll_=true;var u=i.createElement("video");
1Object.keys(k).forEach(function(e){u.setAttribute(e,k[e])});o.replaceChild(u,l);var c=r.bc(k.id);c.bigPlayButton.hide();c.ready(function(){c.one("playing",function(){r.bc.disposedAfterPreroll_=false});var e=c.play();if(e.then){e.catch(function(){c.bigPlayButton.show()})}c.volume(t);c.muted(a)})})})}}s.plugins.forEach(function(e){var t=e.autoInit,i=e.name,r=e.options;if(!t){return}h(i,r)});var E=s.media,j=s.videoCloud;var w=E&&!!(E.sources||E.length&&E[0].sources);if(j&&j.policy_key&&!w){var C={embedHasPoster:s.embedState.poster,embedHasSources:s.embedState.sources,embedHasTracks:s.embedState.tracks,adConfigId:s.adConfigId,deliveryConfigId:s.deliveryConfigId};if(j.playlist){n.trigger({type:"usage",name:"catalog-playlist"});C.playlistId=j.playlist}if(j.video){n.trigger({type:"usage",name:"catalog-video"});C.videoId=j.video}if(j.search){n.trigger({type:"usage",name:"catalog-search"});C.search=j.search}if(j.sequence){n.trigger({type:"usage",name:"catalog-sequence"});C.sequence=j.sequence}var I;if(s.usingIMAPrerollWithSSAI&&!r.bc.disposedAfterPreroll_){n.src({src:oe,type:"video/mp4"})}else{I=u.catalogMedia=n.catalog.autoFindAndLoadMedia(C)}if(I&&I.type==="video"){if(/^[\\d]+$/.test(I.id)){n.mediainfo.id=I.id}else{n.mediainfo.referenceId=n.mediainfo.reference_id=I.id}}n.on("loadstart",function(){if(n.language()&&n.catalog.getMetadata({lang:n.language()})){n.trigger({type:"usage",name:"variant:"+n.language()})}})}if(n.usingPlugin("bcAnalytics")){var x=function e(){return(new Date).toISOString().split("T")[0]+":"+n.bcAnalytics.client.getSession()};n.ready(function(){A.perf.mark("bcInitEnd");A.perf.measure("bcInit","bcInitStart","bcInitEnd");if(n.usingPlugin("playerInfo")){n.playerInfo.modal.on("modalfill",function(){var e=x();var t=n.playerInfo.modal.$(".vjs-pi-section--player tbody");if(!e||!t){return}var r=i.createElement("tr");var a=i.createElement("tr");r.innerHTML="<td>"+n.localize("Session ID")+"</td> <td>"+e+"</td>";t.appendChild(r);a.innerHTML="<td>"+n.localize("Player Element ID")+"</td> <td>"+n.id()+"</td>";t.appendChild(a)})}});if(n.usingPlugin("errors")){n.errorDisplay.on("modalfill",function(){var e=x();var i=n.errorDisplay.$(".vjs-errors-content-container");if(!e||!i){return}i.appendChild(t.dom.createEl("div",{className:"vjs-errors-ref-id",innerHTML:"<b>"+n.localize("Session ID:")+"</b> "+e+" "+"<b>"+n.localize("Player Element ID:")+"</b> "+n.id()}))})}}if(n.usingPlugin("playerInfo")){n.on("vjs-contextmenu",function(){if(n.playerInfo.modal){n.playerInfo.modal.close()}})}if(n.hasPlugin("dock")){var P=E&&(E[0]&&E[0].title||E.title)||"";var O=E&&(E[0]&&E[0].description||E.description)||"";var L=function e(){if(n.controls()){var t=n.mediainfo;var i=n.language()||"";var r;if(n.usingPlugin("catalog")){r=n.catalog.getMetadata({lang:i});if(!r){r=n.catalog.getMetadata({lang:i.substring(0,2)})}}n.dock({title:r&&r.name||t&&t.name||P,description:r&&r.description||t&&t.description||O})}};L();n.on(["loadedmetadata","languagechange"],L)}return u};var ce=function e(t){var i=t.registerPlugin||t.plugin;i("touchActive",function(){if(!t.browser.TOUCH_ENABLED){return}var e=this;var i=false;var r=function t(){if(!i){e.userActive(false)}};e.one("play",function(){var t=e.options_.inactivityTimeout>0?e.options_.inactivityTimeout:5e3;e.el().className+=" vjs-user-active";e.one(["click","tap"],function(){i=true});e.setTimeout(r,t)})})};var de=A.get;var fe="unknown";var he=function e(t){var i=t.getComponent("ModalDialog");var n=t.dom;var a={adonly:"Ad-Only",ampSupport:"AMP Support",bcAa:"Adobe Analytics",bcGa:"Google Analytics",bcGtm:"Google Tag Manager",bcPlaylistUi:"Brightcove Playlist UI",bcTealium:"Tealium",chromecastReceiver:"Chromecast Receiver",customEndscreen:"Custom Endscreen",dash:"DASH",eme:"DRM",dvrux:"Live DVRUX",FreeWheelPlugin:"FreeWheel",ima3:"IMA3",kollective:"Kollective",onceux:"OnceUX",pip:"Picture-in-Picture",qualityMenu:"Quality Menu",social:"Social",ssai:"SSAI",thumbnails:"Thumbnails",vr:"VR"};var s=function e(){for(var t=arguments.length,i=new Array(t),r=0;r<t;r++){i[r]=arguments[r]}return"<tr>"+i.map(function(e){return"<td>"+e+"</td>"}).join("")+"</tr>"};var o=function(e){Q(i,e);function i(){return e.apply(this,arguments)||this}var o=i.prototype;o.buildCSSClass=function t(){return"vjs-player-info-modal "+e.prototype.buildCSSClass.call(this)};o.dataForPlugins_=function e(){var i=this;return Object.keys(a).filter(t.getPlugin).sort().map(function(e){var r=i.player();var n=t.getPluginVersion(e)||de(r,e+".VERSION",fe);if(e==="eme"&&n===fe&&t.drm&&t.drm.VERSION){n=t.drm.VERSION}return{active:r.usingPlugin(e),displayName:a[e],version:n}})};o.dataForSource_=function e(){var t=this.player();var i=t.tech_.vhs,r=t.mediainfo;var n={mediainfo:r,tech:t.techName_,type:t.currentType()};if(!i){return n}var a=de(i,"playlists",{media:function e(){}}).media();n.vhs={bandwidth:de(i,"stats.bandwidth",fe),mediaBytesTransferred:de(i,"stats.mediaBytesTransferred",fe),mediaTransferDuration:de(i,"stats.mediaTransferDuration",fe),mediaRequests:de(i,"stats.mediaRequests",fe)};if(a){n.vhs.rendition={height:de(a,"attributes.RESOLUTION.height",fe),width:de(a,"attributes.RESOLUTION.width",fe)}}return n};o.data=function e(){var t=this.player();var i=n.getAttributes(t.el());var a=de(t,"bcinfo.accountId",de(i,"data-account",fe));var s=de(t,"bcinfo.playerId",de(i,"data-player",fe));var o=de(t,"bcinfo.embedId",de(i,"data-embed",fe));var l=de(t,"bcinfo.applicationId",de(i,"data-application-id",""));var u=de(r,"bc."+s+"_"+o+".VERSION",de(r,"bc.VERSION",fe));var c=de(r,"bc."+s+"_"+o+".videojs.VERSION",de(r,"videojs.VERSION",fe));return{player:{accountId:a,playerId:s,embedId:o,applicationId:l,playerVersion:u,videojsVersion:c},plugins:this.dataForPlugins_(),source:this.dataForSource_()}};o.contentForPlugins_=function e(t){var i=this;var r=(\'\\n        <tr>\\n          <td colspan="3">\'+this.localize("No plugins available.")+"</td>\\n        </tr>\\n      ").trim();if(t.plugins.length){r=t.plugins.map(function(e){return s(e.displayName,e.version,e.active?i.localize("yes"):i.localize("no"))}).join("")}return("\\n        <table>\\n          <thead>\\n            <tr>\\n              <th>"+this.localize("Name")+"</th>\\n              <th>"+this.localize("Version")+"</th>\\n              <th>"+this.localize("Active")+"</th>\\n            </tr>\\n          </thead>\\n          <tbody>"+r+"</tbody>\\n        </table>\\n      ").trim()};o.contentForSource_=function e(t){var i=["<table><tbody>",s(this.localize("Current Playback Tech"),t.source.tech),s(this.localize("Current Media Type"),t.source.type)];if(t.source.mediainfo){i.push(s(this.localize("Video Name"),t.source.mediainfo.name),s(this.localize("Video ID"),t.source.mediainfo.id))}if(t.source.vhs){i.push(s(this.localize("Current Bandwidth"),t.source.vhs.bandwidth),s(this.localize("Media Bytes Transferred"),t.source.vhs.mediaBytesTransferred),s(this.localize("Media Requests"),t.source.vhs.mediaRequests),s(this.localize("Media Transfer Duration"),t.source.vhs.mediaTransferDuration));if(t.source.vhs.rendition){i.push(s(this.localize("Rendition Width"),t.source.vhs.rendition.width),s(this.localize("Rendition Height"),t.source.vhs.rendition.height))}}return i.concat("</tbody></table>").join("")};o.content=function e(){var t=this.data();return[n.createEl("h1",{innerHTML:this.localize("Player Information")}),n.createEl("div",{className:"vjs-pi-section vjs-pi-section--player",innerHTML:["<h2>"+this.localize("General")+"</h2>","<table><tbody>",s(this.localize("Brightcove Player Version"),t.player.playerVersion),s(this.localize("Video.js Version"),t.player.videojsVersion),s(this.localize("Account ID"),t.player.accountId),s(this.localize("Player ID"),t.player.playerId),s(this.localize("Embed ID"),t.player.embedId),s(this.localize("Application ID"),t.player.applicationId),"</tbody></table>"].join("")}),n.createEl("div",{className:"vjs-pi-section vjs-pi-section--plugins",innerHTML:["<h2>"+this.localize("Plugins")+"</h2>",this.contentForPlugins_(t)].join("")}),n.createEl("div",{className:"vjs-pi-section vjs-pi-section--source",innerHTML:["<h2>"+this.localize("Source")+"</h2>",this.contentForSource_(t)].join("")})]};return i}(i);t.registerComponent("PlayerInfoModal",o);return o};var pe=function e(t){he(t);function i(){var e=this;
1if(this.playerInfo.modal){this.playerInfo.modal.dispose()}this.playerInfo=function(){i.apply(this,arguments)};this.ready(function(){e.addClass("vjs-player-info");e.playerInfo.modal=e.addChild("playerInfoModal",{fillAlways:true,label:e.localize("Player Information Dialog"),temporary:false});e.playerInfo.modal.on("dispose",function(){delete e.playerInfo})})}t.registerPlugin("playerInfo",i);i.VERSION=n};var ve=function e(t){var i=function e(t,i){if(typeof t.usingPlugin==="function"){return t.usingPlugin(i)}return!!t[i]};var r=function e(t){t.postrollFinished=false;t.postrollTimedOut=false;t.sawNoPostrollEvent=false};var a=function e(t){if(!i(t,"ads")){return false}var r=t.endscreenState_;if(r.sawNoPostrollEvent){return false}return!r.postrollFinished&&!r.postrollTimedOut};var s=function e(t){if(!i(t,"playlist")){return false}var r=t.playlist;var n=r();if(r.autoadvance_.delay!==0||!n.length){return false}return r.repeat()||r.currentItem()!==n.length-1};var o=function e(){var t=this;if(this.endscreenState_){return}var i=this.endscreenState_={};var n=function e(){t.trigger("endscreen")};r(i);this.on("adstart",function(){var e=t.ended();i.postrollFinished=!e});this.on("adend",function(){i.postrollFinished=t.ended()});this.on("adtimeout",function(){i.postrollTimedOut=t.ended()});this.on(["endscreen","loadstart"],function(){t.off("adend",n);r(i)});this.on("nopostroll",function(){i.sawNoPostrollEvent=true});this.on("ended",function(){if(s(t)){return}if(a(t)){t.one("adend",n);return}n()})};o.VERSION=n;if(t.registerPlugin){if(!t.getPlugin("endscreen")){t.registerPlugin("endscreen",o)}}else{t.plugin("endscreen",o)}};var me=["audioTracks","textTracks","videoTracks","remoteTextTracks","addTextTrack","addRemoteTextTrack","removeRemoteTextTrack","scrubbing","ended"];var ge=["handleKeyDown"];var ye=function e(t,i){var r=function e(t){return function(e){if(e.isAdPlayerPatched_){return}var i=e.prototype;e.isAdPlayerPatched_=true;Object.defineProperty(i,"fsApi_",{get:function e(){return this.options_&&this.options_.contentPlayer&&this.options_.contentPlayer.fsApi_}});me.forEach(function(e){if(!(e in i)){i[e]=function(){}}});ge.forEach(function(e){if(!i.hasOwnProperty(e)){i[e]=function(){}}});Object.defineProperty(t,"AdPlayer",{configurable:true,enumerable:true,get:function t(){return e},set:function e(){}});return e}};var n=function e(i){if(!i){Object.defineProperty(t,"ima3",{configurable:true,enumerable:true,get:function e(){},set:function i(r){e(r);Object.defineProperty(t,"ima3",{value:r})}});return}var n=r(i);if(!i.AdPlayer){Object.defineProperty(i,"AdPlayer",{configurable:true,enumerable:true,get:function e(){},set:n});return}n(i.AdPlayer)};if(t.ima3){n(t.ima3)}else{i.one("beforepluginsetup:ima3",function(){n(t.ima3)})}};var _e="vjs-waiting-for-autoplay";function be(e,t,r,n){var a=r.options_;var s=t.settings,o=t.environment;var l=s.accountId,u=s.applicationId,c=s.css,d=s.embedId,f=s.playerId;var h;r.mediainfo={accountId:l,account_id:l};r.bcinfo={accountId:l,applicationId:u,css:c,embedId:d,playerId:f,scriptUrl:o.scriptUrl,scriptBaseUrl:o.scriptBaseUrl};Object.defineProperty(r,"usingAdBlocker",{enumerable:true,value:V});Object.defineProperty(r,"getAutoplayConditions",{enumerable:true,value:function e(t){return n.getAutoplayConditions(t)}});Object.defineProperty(r,"getAccountId",{enumerable:true,value:function e(){return n.runtime.settings.accountId}});if(t.settings.allowAccountOverride){Object.defineProperty(r,"setAccountId",{enumerable:true,value:function t(i){if(A.isNil(i)){e.log.warn("account ID must be a string or number");return}n.runtime.settings.accountId=i;this.bcinfo.accountId=i;this.mediainfo.accountId=this.mediainfo.account_id=i}})}V().then(function(e){if(e){r.trigger({type:"usage",name:"using-ad-blocker"})}});r.addClass(s.classNames.player);r.addClass(s.classNames.playerInstance);var p=e.bind(r,r.dimension);r.dimension=function(e,t){if(e==="width"){N(s,t,null)}else if(e==="height"){N(s,null,t)}return p(e,t)};r.ready(function(){if(!a.autoplay){return}function t(){r.removeClass(_e)}function i(){if(!r.autoplay()){r.removeClass(_e);return}var e=r.play();if(e===undefined){t()}else{e.then(t,t)}}var n=["canplay","error","durationchange"];function s(a){if(a.type==="error"){t();r.off(n,s);return}if(a.type==="durationchange"&&r.duration()===Infinity&&!e.browser.IS_ANY_SAFARI){i();r.off(n,s);return}if(a.type==="canplay"){i();r.off(n,s)}}if(!r.currentSrc()&&!h){t()}else if(r.readyState()===4){i()}else{r.one(n,s)}});if(s.fullscreenControl===false&&r.controls()){r.on("loadedmetadata",function(){if(!r.controlBar){return}var e=r.controlBar.children();if(!e||!e.length){return}for(var t=e.length-1;t>0;t--){if(e[t].hasClass("vjs-menu-button-popup")&&!e[t].hasClass("vjs-hidden")){e[t].addClass("vjs-menu-popup-last-visible");break}}})}if(e.browser.IS_IPHONE){r.on("fullscreenchange",function(){var e=r.$(".vjs-tech");if(e.hasAttribute("controls")){e.removeAttribute("controls")}});if(s.embedState.playsinline&&s.embedState.muted){r.addClass("vjs-iphone")}}if(e.browser.IS_IOS&&s.embedState.muted){r.addClass("vjs-ios")}if(r.controls()){r.one("play",function(){if(!r.controlBar||!r.controls()){return}var e=r.controlBar.children();if(!e||!e.length){return}var t=["Enter","ArrowDown","ArrowUp","Up","Down"," ","Spacebar"];for(var i=0;i<e.length;i++){if(e[i].hasClass("vjs-menu-button-popup")&&!e[i].hasClass("vjs-hidden")){e[i].on("keyup",function(e){if(t.indexOf(e.key)>=0){r.controlBar.addClass("vjs-control-bar-visible")}})}}});if(r.controlBar){var v=r.controlBar.el();var m;var g=function e(){var t=i.activeElement;if(m!==t){m=t;r.controlBar.toggleClass("vjs-focus-within",v.contains(t))}};var y=function e(){v.removeEventListener("focus",g,true);v.removeEventListener("blur",g,true)};v.addEventListener("focus",g,true);v.addEventListener("blur",g,true);r.on("dispose",y);r.controlBar.on("dispose",y)}}ye(e,r);r.one("beforepluginsetup:ads",function(){var t=r.getChild("controlBar");if(t){t.removeChild("pictureInPictureToggle")}e.getComponent("Component").prototype.fsApi_=r.fsApi_});if(!e.browser.TOUCH_ENABLED){r.addClass("vjs-mouse");if(o.isInBcFrame){e.dom.addClass(i.documentElement,"vjs-mouse")}}else if(e.browser.IS_IPHONE){r.addClass("vjs-native")}r.requestAnimationFrame(function(){var e=i.querySelector(".bc-wrap");r.addClass("vjs-plugins-ready");if(e){e.style.opacity=0}});r.on(["mouseenter","ended","touchend"],function(){r.removeClass("not-hover")});r.on("mouseleave",function(){r.addClass("not-hover");if(!r.controlBar||!r.controlBar.el()){return}if(r.controlBar.hasClass("vjs-control-bar-visible")){r.controlBar.removeClass("vjs-control-bar-visible")}});if(!e.browser.IS_ANY_SAFARI){r.one("loadeddata",function(){if(r.language()!==undefined&&r.catalog&&r.catalog.getMetadata().variants!==undefined){var e=r.language()||"";var t=r.textTracks();if(t){var i=Array.prototype.filter.call(t,function(e){return(e.kind==="captions"||e.kind==="subtitles")&&e.mode==="showing"});var n;var a;if(!i.length){for(a=0;a<t.length;a++){n=t[a];if((n.kind==="captions"||n.kind==="subtitles")&&n.language===e){n.mode="showing";return}}for(a=0;a<t.length;a++){n=t[a];if((n.kind==="captions"||n.kind==="subtitles")&&n.language===e.substring(0,2)){n.mode="showing";return}}}}}})}var _=o.bcShimDestripeTime;if(_!==undefined){if(_>1){r.trigger({type:"usage",name:"sdt-"+(Math.log(_)/Math.LN10).toFixed(1)})}else{r.trigger({type:"usage",name:"sdt-0.0"})}}r.ready(function(){if(r.bcinfo&&r.bcinfo.PLAYER_LOADER||o.brightcovePlayerLoader){r.trigger({type:"usage",name:"player-'),t[0].s.push('loader"})}if(r.bcinfo&&r.bcinfo.REACT_PLAYER_LOADER||o.BrightcoveReactPlayerLoader){r.trigger({type:"usage",name:"react-player
1-loader"})}});if(r.options_.debug){r.log.level("debug");r.log.history.enable()}else{r.log.level("off");r.log.history.disable()}var b=[{name:"proxyTracks",register:ie,opts:{debug:r.options_.debug}},{name:"seekEvents",register:ae,opts:{verbose:r.options_.debug}},{name:"touchActive",register:ce},{name:"urlparams",register:G,opts:{iframe:o.isInBcFrame,time:s.startTime}},{name:"playerInfo",register:pe},{name:"endscreen",register:ve}];b.forEach(function(t){var i=t.name,n=t.opts,a=t.register;if(!r.hasPlugin(i)){a(e)}if(!r.usingPlugin(i)){r[i](n)}});ue(e,r,t);r.on("dispose",function(){r=a.runtime_=null;e.log.history.clear()})}function Te(e,t,i){var r=e.videojs;var n=-1;return function a(s){var o=r.getPlayer(s);if(o){o.trigger({type:"usage",name:"bc-used-as-getter"});return o}n++;var l=e.getRuntime({playerIndex:n});r.hookOnce("beforesetup",function(e,i){i=W(r,l,e,i);if(A.isFn(t)){return t(r,l,e,i)}return i});r.hookOnce("setup",function(t){be(r,l,t,e);if(A.isFn(i)){i(r,l,t)}});return r.apply(void 0,arguments)}}var Se={accountId:"",adConfigId:"",applicationId:"",playsinline:false,loop:false,muted:false,autoplay:false,crossorigin:false,css:{},plugins:[],debug:false,contextMenu:{},deliveryConfigId:"",embedId:"default",misconfiguredWithMultipleAdPlugins:false,playerId:"default",skin:"luna",usingAdFailover:false,usingIMAPrerollWithSSAI:false,version:"0.0.0"};var ke={brightcovePlayerLoader:r.brightcovePlayerLoader,BrightcoveReactPlayerLoader:r.BrightcoveReactPlayerLoader,bcShimDestripeTime:r.bcShimDestripeTime,userAgent:r.navigator.userAgent};var Ee=function(){function e(t,i){if(t===void 0){t={}}if(i===void 0){i={}}var r=e.shared.videojs;if(!r){throw new Error("missing videojs")}this.runtime={environment:r.mergeOptions(ke,i),settings:r.mergeOptions(Se,t)};if(this.runtime.settings.misconfiguredWithMultipleAdPlugins){r.log.warn(\'Brightcove Player "\'+this.runtime.settings.playerId+\'" is mis-configured with multiple ad plugins.\')}this.videojs=r;this.util=A;r.bc_=A;this.getAutoplayConditions();this.detectRuntimeEnvironment();this.setupGlobalEnv();A.perf.mark("bcAdBlockDetectStart");V().then(function(e){A.perf.mark("bcAdBlockDetectEnd");A.perf.measure("bcAdBlockDetect","bcAdBlockDetectStart","bcAdBlockDetectEnd")})}var t=e.prototype;t.getRuntime=function e(t){return this.videojs.mergeOptions(this.runtime,{settings:t})};t.getAutoplayConditions=function e(t){if(t===void 0){t="video"}var i=this.runtime.environment;if(!i.autoplay){i.autoplay={}}return D(t,this.videojs).then(function(e){i.autoplay[t]=e;return e})};t.detectRuntimeEnvironment=function e(){var t=this.videojs.dom;var n=this.runtime.environment;var a=t.hasClass(i.documentElement,"bc-iframe");var s=A.qs();n.usingRequireJs=A.isFn(r.define)&&r.define.amd&&A.isFn(r.require&&r.require.toUrl);n.isInAnyFrame=t.isInFrame();n.isInBcFrame=a;n.queryString=a?s.search:{};n.urlHash=a?s.hash:{};this.setScriptUrl();this.setScriptBaseUrl()};t.setScriptUrl=function e(){var t=this.runtime.environment;if(t.isInBcFrame){t.scriptUrl=""}else if(t.usingRequireJs){t.scriptUrl=r.require.toUrl("bc")}else if(i.currentScript){t.scriptUrl=i.currentScript.src}else{var n=i.getElementsByTagName("script");t.scriptUrl=n.length&&n[n.length-1].src||""}};t.setScriptBaseUrl=function e(){var t=this.runtime.environment;if(t.scriptUrl){t.scriptBaseUrl=t.scriptUrl.split("/").slice(0,-1).join("/")}else{t.scriptBaseUrl="."}};t.safeSetGlobal=function e(t,i){if(!A.isNil(r[t])){return this.videojs.log.warn("setting window."+t+" would overwrite an existing global, skipping")}r[t]=i};t.setupGlobalEnv=function e(){var t=this;var i=this.videojs;var r=this.runtime.environment;var n=r.queryStringToWindow;if(!n||!r.isInBcFrame){return}var a=i.mergeOptions(r.queryString);if(n.target){this.safeSetGlobal(n.target,a)}if(Array.isArray(n.globals)){n.globals.forEach(function(e){t.safeSetGlobal(e,a[e])})}};t.createInitializer=function e(t,i){var n=this;var a=this.videojs;var s=r.bc;var o=this.runtime.settings,l=o.embedId,u=o.playerId,c=o.skin,d=o.version;var f=Te(this,t,i);f.SKIN=c;f.VERSION=d;f.videojs=a;f[u+"_"+l]=f;
1if(s){Object.keys(s).forEach(function(e){var t=s[e];if(typeof t==="function"&&typeof t.videojs==="function"){f[e]=t;delete s[e]}})}Object.defineProperty(f,"usingAdBlocker",{enumerable:true,value:V});Object.defineProperty(f,"getAutoplayConditions",{enumerable:true,value:function e(t){return n.getAutoplayConditions(t)}});r.bc=f;return f};e.dedupeVideojs=function t(i,n){var a=i;e.shared.firstVideojs=n||i;if(n&&n.VERSION===i.VERSION){a=n}else if(r.bc){var s=Object.keys(r.bc);for(var o=0;o<s.length;o++){var l=s[o];var u=r.bc[l];if(typeof u==="function"&&typeof u.videojs==="function"){if(u.videojs.VERSION===i.VERSION){a=u.videojs;break}}}}r.videojs=a;e.shared.videojs=a;return a};e.restoreFirstVideojs=function t(){r.videojs=e.shared.firstVideojs};return e}();Ee.defaultSettings=Se;Ee.shared={};Ee.VERSION=n;return Ee}(t,e);(function(e,t){typeof exports==="object"&&typeof module!=="undefined"?module.exports=t():typeof i==="function"&&i.amd?i(t):(e=e||self,e.videojs=t())})(this,function(){"use strict";var i="7.11.5";var r=typeof globalThis!=="undefined"?globalThis:typeof e!=="undefined"?e:typeof global!=="undefined"?global:typeof self!=="undefined"?self:{};function n(e,t){return t={exports:{}},e(t,t.exports),t.exports}var a;if(typeof e!=="undefined"){a=e}else if(typeof r!=="undefined"){a=r}else if(typeof self!=="undefined"){a=self}else{a={}}var s=a;var o={};var l=typeof r!=="undefined"?r:typeof e!=="undefined"?e:{};var u;if(typeof t!=="undefined"){u=t}else{u=l["__GLOBAL_DOCUMENT_CACHE@4"];if(!u){u=l["__GLOBAL_DOCUMENT_CACHE@4"]=o}}var c=u;var d={prefixed:true};var f=[["requestFullscreen","exitFullscreen","fullscreenElement","fullscreenEnabled","fullscreenchange","fullscreenerror","fullscreen"],["webkitRequestFullscreen","webkitExitFullscreen","webkitFullscreenElement","webkitFullscreenEnabled","webkitfullscreenchange","webkitfullscreenerror","-webkit-full-screen"],["mozRequestFullScreen","mozCancelFullScreen","mozFullScreenElement","mozFullScreenEnabled","mozfullscreenchange","mozfullscreenerror","-moz-full-screen"],["msRequestFullscreen","msExitFullscreen","msFullscreenElement","msFullscreenEnabled","MSFullscreenChange","MSFullscreenError","-ms-fullscreen"]];var h=f[0];var p;for(var v=0;v<f.length;v++){if(f[v][1]in c){p=f[v];break}}if(p){for(var m=0;m<p.length;m++){d[h[m]]=p[m]}d.prefixed=p[0]!==h[0]}var g=[];var y=function e(t,i){return function(e,r,n){var a=i.levels[r];var o=new RegExp("^("+a+")$");if(e!=="log"){n.unshift(e.toUpperCase()+":")}n.unshift(t+":");if(g){g.push([].concat(n));var l=g.length-1e3;g.splice(0,l>0?l:0)}if(!s.console){return}var u=s.console[e];if(!u&&e==="debug"){u=s.console.info||s.console.log}if(!u||!a||!o.test(e)){return}u[Array.isArray(n)?"apply":"call"](s.console,n)}};function _(e){var t="info";var i;var r=function e(){for(var r=arguments.length,n=new Array(r),a=0;a<r;a++){n[a]=arguments[a]}i("log",t,n)};i=y(e,r);r.createLogger=function(t){return _(e+": "+t)};r.levels={all:"debug|log|warn|error",off:"",debug:"debug|log|warn|error",info:"log|warn|error",warn:"warn|error",error:"error",DEFAULT:t};r.level=function(e){if(typeof e==="string"){if(!r.levels.hasOwnProperty(e)){throw new Error(\'"\'+e+\'" in not a valid log level\')}t=e}return t};r.history=function(){return g?[].concat(g):[]};r.history.filter=function(e){return(g||[]).filter(function(t){return new RegExp(".*"+e+".*").test(t[0])})};r.history.clear=function(){if(g){g.length=0}};r.history.disable=function(){if(g!==null){g.length=0;g=null}};r.history.enable=function(){if(g===null){g=[]}};r.error=function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++){r[n]=arguments[n]}return i("error",t,r)};r.warn=function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++){r[n]=arguments[n]}return i("warn",t,r)};r.debug=function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++){r[n]=arguments[n]}return i("debug",t,r)};return r}var b=_("VIDEOJS");var T=b.createLogger;var S=n(function(e){function t(){e.exports=t=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var r in i){if(Object.prototype.hasOwnProperty.call(i,r)){e[r]=i[r]}}}return e};return t.apply(this,arguments)}
1e.exports=t});var k=Object.prototype.toString;var E=function e(t){return I(t)?Object.keys(t):[]};function j(e,t){E(e).forEach(function(i){return t(e[i],i)})}function w(e,t,i){if(i===void 0){i=0}return E(e).reduce(function(i,r){return t(i,e[r],r)},i)}function C(e){for(var t=arguments.length,i=new Array(t>1?t-1:0),r=1;r<t;r++){i[r-1]=arguments[r]}if(Object.assign){return S.apply(void 0,[e].concat(i))}i.forEach(function(t){if(!t){return}j(t,function(t,i){e[i]=t})});return e}function I(e){return!!e&&typeof e==="object"}function A(e){return I(e)&&k.call(e)==="[object Object]"&&e.constructor===Object}function x(e,t){if(!e||!t){return""}if(typeof s.getComputedStyle==="function"){var i=s.getComputedStyle(e);return i?i.getPropertyValue(t)||i[t]:""}return""}var P=s.navigator&&s.navigator.userAgent||"";var O=/AppleWebKit\\/([\\d.]+)/i.exec(P);var L=O?parseFloat(O.pop()):null;var D=/iPod/i.test(P);var R=function(){var e=P.match(/OS (\\d+)_/i);if(e&&e[1]){return e[1]}return null}();var N=/Android/i.test(P);var M=function(){var e=P.match(/Android (\\d+)(?:\\.(\\d+))?(?:\\.(\\d+))*/i);if(!e){return null}var t=e[1]&&parseFloat(e[1]);var i=e[2]&&parseFloat(e[2]);if(t&&i){return parseFloat(e[1]+"."+e[2])}else if(t){return t}return null}();var U=N&&M<5&&L<537;var B=/Firefox/i.test(P);var F=/Edg/i.test(P);var H=!F&&(/Chrome/i.test(P)||/CriOS/i.test(P));var V=function(){var e=P.match(/(Chrome|CriOS)\\/(\\d+)/);if(e&&e[2]){return parseFloat(e[2])}return null}();var q=function(){var e=/MSIE\\s(\\d+)\\.\\d/.exec(P);var t=e&&parseFloat(e[1]);if(!t&&/Trident\\/7.0/i.test(P)&&/rv:11.0/.test(P)){t=11}return t}();var z=/Safari/i.test(P)&&!H&&!N&&!F;var W=/Windows/i.test(P);var G=Boolean(te()&&("ontouchstart"in s||s.navigator.maxTouchPoints||s.DocumentTouch&&s.document instanceof s.DocumentTouch));var Y=/iPad/i.test(P)||z&&G&&!/iPhone/i.test(P);var K=/iPhone/i.test(P)&&!Y;var X=K||Y||D;var Q=(z||X)&&!H;var J=Object.freeze({__proto__:null,IS_IPOD:D,IOS_VERSION:R,IS_ANDROID:N,ANDROID_VERSION:M,IS_NATIVE_ANDROID:U,IS_FIREFOX:B,IS_EDGE:F,IS_CHROME:H,CHROME_VERSION:V,IE_VERSION:q,IS_SAFARI:z,IS_WINDOWS:W,TOUCH_ENABLED:G,IS_IPAD:Y,IS_IPHONE:K,IS_IOS:X,IS_ANY_SAFARI:Q});function Z(e){return typeof e==="string"&&Boolean(e.trim())}function $(e){if(e.indexOf(" ")>=0){throw new Error("class has illegal whitespace characters")}}function ee(e){return new RegExp("(^|\\\\s)"+e+"($|\\\\s)")}function te(){return c===s.document}function ie(e){return I(e)&&e.nodeType===1}function re(){try{return s.parent!==s.self}catch(e){return true}}function ne(e){return function(t,i){if(!Z(t)){return c[e](null)}if(Z(i)){i=c.querySelector(i)}var r=ie(i)?i:c;return r[e]&&r[e](t)}}function ae(e,t,i,r){if(e===void 0){e="div"}if(t===void 0){t={}}if(i===void 0){i={}}var n=c.createElement(e);Object.getOwnPropertyNames(t).forEach(function(e){var i=t[e];if(e.indexOf("aria-")!==-1||e==="role"||e==="type"){b.warn("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 "+e+" to "+i+"."));n.setAttribute(e,i)}else if(e==="textContent"){se(n,i)}else if(n[e]!==i||e==="tabIndex"){n[e]=i}});Object.getOwnPropertyNames(i).forEach(function(e){n.setAttribute(e,i[e])});if(r){je(n,r)}return n}function se(e,t){if(typeof e.textContent==="undefined"){e.innerText=t}else{e.textContent=t}return e}function oe(e,t){if(t.firstChild){t.insertBefore(e,t.firstChild)}else{t.appendChild(e)}}function le(e,t){$(t);if(e.classList){return e.classList.contains(t)}return ee(t).test(e.className)}function ue(e,t){if(e.classList){e.classList.add(t)}else if(!le(e,t)){e.className=(e.className+" "+t).trim()}return e}function ce(e,t){if(e.classList){e.classList.remove(t)}else{$(t);e.className=e.className.split(/\\s+/).filter(function(e){return e!==t}).join(" ")}return e}function de(e,t,i){var r=le(e,t);if(typeof i==="function"){i=i(e,t)}if(typeof i!=="boolean"){i=!r}if(i===r){return}if(i){ue(e,t)}else{ce(e,t)}return e}function fe(e,t){Object.getOwnPropertyNames(t).forEach(function(i){var r=t[i];if(r===null||typeof r==="undefined"||r===false){e.removeAttribute(i)}else{e.setAttribute(i,r===true?"":r)}})}function he(e){var t={};var i=","+"autoplay,controls,playsinline,loop,muted,default,defaultMuted"+",";if(e&&e.attributes&&e.attributes.length>0){var r=e.attributes;for(var n=r.length-1;n>=0;n--){var a=r[n].name;var s=r[n].value;if(typeof e[a]==="boolean"||i.indexOf(","+a+",")!==-1){s=s!==null?true:false}t[a]=s}}return t}function pe(e,t){return e.getAttribute(t)}function ve(e,t,i){e.setAttribute(t,i)}function me(e,t){e.removeAttribute(t)}function ge(){c.body.focus();c.onselectstart=function(){return false}}function ye(){c.onselectstart=function(){return true}}function _e(e){if(e&&e.getBoundingClientRect&&e.parentNode){var t=e.getBoundingClientRect();var i={};["bottom","height","left","right","top","width"].forEach(function(e){if(t[e]!==undefined){i[e]=t[e]}});if(!i.height){i.height=parseFloat(x(e,"height"))}if(!i.width){i.width=parseFloat(x(e,"width"))}return i}}function be(e){if(!e||e&&!e.offsetParent){return{left:0,top:0,width:0,height:0}}var t=e.offsetWidth;var i=e.offsetHeight;var r=0;var n=0;while(e.offsetParent&&e!==c[d.fullscreenElement]){r+=e.offsetLeft;n+=e.offsetTop;e=e.offsetParent}return{left:r,top:n,width:t,height:i}}function Te(e,t){var i={x:0,y:0};if(X){var r=e;while(r&&r.nodeName.toLowerCase()!=="html"){var n=x(r,"transform");if(/^matrix/.test(n)){var a=n.slice(7,-1).split(/,\\s/).map(Number);i.x+=a[4];i.y+=a[5]}else if(/^matrix3d/.test(n)){var s=n.slice(9,-1).split(/,\\s/).map(Number);i.x+=s[12];i.y+=s[13]}r=r.parentNode}}var o={};var l=be(t.target);var u=be(e);var c=u.width;
1var d=u.height;var f=t.offsetY-(u.top-l.top);var h=t.offsetX-(u.left-l.left);if(t.changedTouches){h=t.changedTouches[0].pageX-u.left;f=t.changedTouches[0].pageY+u.top;if(X){h-=i.x;f-=i.y}}o.y=1-Math.max(0,Math.min(1,f/d));o.x=Math.max(0,Math.min(1,h/c));return o}function Se(e){return I(e)&&e.nodeType===3}function ke(e){while(e.firstChild){e.removeChild(e.firstChild)}return e}function Ee(e){if(typeof e==="function"){e=e()}return(Array.isArray(e)?e:[e]).map(function(e){if(typeof e==="function"){e=e()}if(ie(e)||Se(e)){return e}if(typeof e==="string"&&/\\S/.test(e)){return c.createTextNode(e)}}).filter(function(e){return e})}function je(e,t){Ee(t).forEach(function(t){return e.appendChild(t)});return e}function we(e,t){return je(ke(e),t)}function Ce(e){if(e.button===undefined&&e.buttons===undefined){return true}if(e.button===0&&e.buttons===undefined){return true}if(e.type==="mouseup"&&e.button===0&&e.buttons===0){return true}if(e.button!==0||e.buttons!==1){return false}return true}var Ie=ne("querySelector");var Ae=ne("querySelectorAll");var xe=Object.freeze({__proto__:null,isReal:te,isEl:ie,isInFrame:re,createEl:ae,textContent:se,prependTo:oe,hasClass:le,addClass:ue,removeClass:ce,toggleClass:de,setAttributes:fe,getAttributes:he,getAttribute:pe,setAttribute:ve,removeAttribute:me,blockTextSelection:ge,unblockTextSelection:ye,getBoundingClientRect:_e,findPosition:be,getPointerPosition:Te,isTextNode:Se,emptyEl:ke,normalizeContent:Ee,appendContent:je,insertContent:we,isSingleLeftClick:Ce,$:Ie,$$:Ae});var Pe=false;var Oe;var Le=function e(){if(!te()||Oe.options.autoSetup===false){return}var t=Array.prototype.slice.call(c.getElementsByTagName("video"));var i=Array.prototype.slice.call(c.getElementsByTagName("audio"));var r=Array.prototype.slice.call(c.getElementsByTagName("video-js"));var n=t.concat(i,r);if(n&&n.length>0){for(var a=0,s=n.length;a<s;a++){var o=n[a];if(o&&o.getAttribute){if(o.player===undefined){var l=o.getAttribute("data-setup");if(l!==null){Oe(o)}}}else{De(1);break}}}else if(!Pe){De(1)}};function De(e,t){if(t){Oe=t}s.setTimeout(Le,e)}function Re(){Pe=true;s.removeEventListener("load",Re)}if(te()){if(c.readyState==="complete"){Re()}else{s.addEventListener("load",Re)}}var Ne=function e(t){var i=c.createElement("style");i.className=t;return i};var Me=function e(t,i){if(t.styleSheet){t.styleSheet.cssText=i}else{t.t'),t[1].s.push('loader"})}if(r.bcinfo&&r.bcinfo.REACT_PLAYER_LOADER||o.BrightcoveReactPlayerLoader){r.trigger({type:"usage",name:"react-player-loader"})}});if(r.options_.debug){r.log.level("debug");r.log.history.enable()}else{r.log.level("off");r.log.history.disable()}var b=[{name:"proxyTracks",register:ie,opts:{debug:r.options_.debug}},{name:"seekEvents",register:ae,opts:{verbose:r.options_.debug}},{name:"touchActive",register:ce},{name:"urlparams",register:G,opts:{iframe:o.isInBcFrame,time:s.startTime}},{name:"playerInfo",register:pe},{name:"endscreen",register:ve}];b.forEach(function(t){var i=t.name,n=t.opts,a=t.register;if(!r.hasPlugin(i)){a(e)}if(!r.usingPlugin(i)){r[i](n)}});ue(e,r,t);r.on("dispose",function(){r=a.runtime_=null;e.log.history.clear()})}function Te(e,t,i){var r=e.videojs;var n=-1;return function a(s){var o=r.getPlayer(s);if(o){o.trigger({type:"usage",name:"bc-used-as-getter"});return o}n++;var l=e.getRuntime({playerIndex:n});r.hookOnce("beforesetup",function(e,i){i=W(r,l,e,i);if(A.isFn(t)){return t(r,l,e,i)}return i});r.hookOnce("setup",function(t){be(r,l,t,e);if(A.isFn(i)){i(r,l,t)}});return r.apply(void 0,arguments)}}var Se={accountId:"",adConfigId:"",applicationId:"",playsinline:false,loop:false,muted:false,autoplay:false,crossorigin:false,css:{},plugins:[],debug:false,contextMenu:{},deliveryConfigId:"",embedId:"default",misconfiguredWithMultipleAdPlugins:false,playerId:"default",skin:"luna",usingAdFailover:false,usingIMAPrerollWithSSAI:false,version:"0.0.0"};var ke={brightcovePlayerLoader:r.brightcovePlayerLoader,BrightcoveReactPlayerLoader:r.BrightcoveReactPlayerLoader,bcShimDestripeTime:r.bcShimDestripeTime,userAgent:r.navigator.userAgent};var Ee=function(){function e(t,i){if(t===void 0){t={}}if(i===void 0){i={}}var r=e.shared.videojs;if(!r){throw new Error("missing videojs")}this.runtime={environment:r.mergeOptions(ke,i),settings:r.mergeOptions(Se,t)};if(this.runtime.settings.misconfiguredWithMultipleAdPlugins){r.log.warn(\'Brightcove Player "\'+this.runtime.settings.playerId+\'" is mis-configured with multiple ad plugins.\')}this.videojs=r;this.util=A;r.bc_=A;this.getAutoplayConditions();this.detectRuntimeEnvironment();this.setupGlobalEnv();A.perf.mark("bcAdBlockDetectStart");V().then(function(e){A.perf.mark("bcAdBlockDetectEnd");A.perf.measure("bcAdBlockDetect","bcAdBlockDetectStart","bcAdBlockDetectEnd")})}var t=e.prototype;t.getRuntime=function e(t){return this.videojs.mergeOptions(this.runtime,{settings:t})};t.getAutoplayConditions=function e(t){if(t===void 0){t="video"}var i=this.runtime.environment;if(!i.autoplay){i.autoplay={}}return D(t,this.videojs).then(function(e){i.autoplay[t]=e;return e})};t.detectRuntimeEnvironment=function e(){var t=this.videojs.dom;var n=this.runtime.environment;var a=t.hasClass(i.documentElement,"bc-iframe");var s=A.qs();n.usingRequireJs=A.isFn(r.define)&&r.define.amd&&A.isFn(r.require&&r.require.toUrl);n.isInAnyFrame=t.isInFrame();n.isInBcFrame=a;n.queryString=a?s.search:{};n.urlHash=a?s.hash:{};this.setScriptUrl();this.setScriptBaseUrl()};t.setScriptUrl=function e(){var t=this.runtime.environment;if(t.isInBcFrame){t.scriptUrl=""}else if(t.usingRequireJs){t.scriptUrl=r.require.toUrl("bc")}else if(i.currentScript){t.scriptUrl=i.currentScript.src}else{var n=i.getElementsByTagName("script");t.scriptUrl=n.length&&n[n.length-1].src||""}};t.setScriptBaseUrl=function e(){var t=this.runtime.environment;if(t.scriptUrl){t.scriptBaseUrl=t.scriptUrl.split("/").slice(0,-1).join("/")}else{t.scriptBaseUrl="."}};t.safeSetGlobal=function e(t,i){if(!A.isNil(r[t])){return this.videojs.log.warn("setting window."+t+" would overwrite an existing global, skipping")}r[t]=i};t.setupGlobalEnv=function e(){var t=this;var i=this.videojs;var r=this.runtime.environment;var n=r.queryStringToWindow;if(!n||!r.isInBcFrame){return}var a=i.mergeOptions(r.queryString);if(n.target){this.safeSetGlobal(n.target,a)}
1if(Array.isArray(n.globals)){n.globals.forEach(function(e){t.safeSetGlobal(e,a[e])})}};t.createInitializer=function e(t,i){var n=this;var a=this.videojs;var s=r.bc;var o=this.runtime.settings,l=o.embedId,u=o.playerId,c=o.skin,d=o.version;var f=Te(this,t,i);f.SKIN=c;f.VERSION=d;f.videojs=a;f[u+"_"+l]=f;if(s){Object.keys(s).forEach(function(e){var t=s[e];if(typeof t==="function"&&typeof t.videojs==="function"){f[e]=t;delete s[e]}})}Object.defineProperty(f,"usingAdBlocker",{enumerable:true,value:V});Object.defineProperty(f,"getAutoplayConditions",{enumerable:true,value:function e(t){return n.getAutoplayConditions(t)}});r.bc=f;return f};e.dedupeVideojs=function t(i,n){var a=i;e.shared.firstVideojs=n||i;if(n&&n.VERSION===i.VERSION){a=n}else if(r.bc){var s=Object.keys(r.bc);for(var o=0;o<s.length;o++){var l=s[o];var u=r.bc[l];if(typeof u==="function"&&typeof u.videojs==="function"){if(u.videojs.VERSION===i.VERSION){a=u.videojs;break}}}}r.videojs=a;e.shared.videojs=a;return a};e.restoreFirstVideojs=function t(){r.videojs=e.shared.firstVideojs};return e}();Ee.defaultSettings=Se;Ee.shared={};Ee.VERSION=n;return Ee}(t,e);(function(e,t){typeof exports==="object"&&typeof module!=="undefined"?module.exports=t():typeof i==="function"&&i.amd?i(t):(e=e||self,e.videojs=t())})(this,function(){"use strict";var i="7.11.5";var r=typeof globalThis!=="undefined"?globalThis:typeof e!=="undefined"?e:typeof global!=="undefined"?global:typeof self!=="undefined"?self:{};function n(e,t){return t={exports:{}},e(t,t.exports),t.exports}var a;if(typeof e!=="undefined"){a=e}else if(typeof r!=="undefined"){a=r}else if(typeof self!=="undefined"){a=self}else{a={}}var s=a;var o={};var l=typeof r!=="undefined"?r:typeof e!=="undefined"?e:{};var u;if(typeof t!=="undefined"){u=t}else{u=l["__GLOBAL_DOCUMENT_CACHE@4"];if(!u){u=l["__GLOBAL_DOCUMENT_CACHE@4"]=o}}var c=u;var d={prefixed:true};var f=[["requestFullscreen","exitFullscreen","fullscreenElement","fullscreenEnabled","fullscreenchange","fullscreenerror","fullscreen"],["webkitRequestFullscreen","webkitExitFullscreen","webkitFullscreenElement","webkitFullscreenEnabled","webkitfullscreenchange","webkitfullscreenerror","-webkit-full-screen"],["mozRequestFullScreen","mozCancelFullScreen","mozFullScreenElement","mozFullScreenEnabled","mozfullscreenchange","mozfullscreenerror","-moz-full-screen"],["msRequestFullscreen","msExitFullscreen","msFullscreenElement","msFullscreenEnabled","MSFullscreenChange","MSFullscreenError","-ms-fullscreen"]];var h=f[0];var p;for(var v=0;v<f.length;v++){if(f[v][1]in c){p=f[v];break}}if(p){for(var m=0;m<p.length;m++){d[h[m]]=p[m]}d.prefixed=p[0]!==h[0]}var g=[];var y=function e(t,i){return function(e,r,n){var a=i.levels[r];var o=new RegExp("^("+a+")$");if(e!=="log"){n.unshift(e.toUpperCase()+":")}n.unshift(t+":");if(g){g.push([].concat(n));var l=g.length-1e3;g.splice(0,l>0?l:0)}if(!s.console){return}var u=s.console[e];if(!u&&e==="debug"){u=s.console.info||s.console.log}if(!u||!a||!o.test(e)){return}u[Array.isArray(n)?"apply":"call"](s.console,n)}};function _(e){var t="info";var i;var r=function e(){for(var r=arguments.length,n=new Array(r),a=0;a<r;a++){n[a]=arguments[a]}i("log",t,n)};i=y(e,r);r.createLogger=function(t){return _(e+": "+t)};r.levels={all:"debug|log|warn|error",off:"",debug:"debug|log|warn|error",info:"log|warn|error",warn:"warn|error",error:"error",DEFAULT:t};r.level=function(e){if(typeof e==="string"){if(!r.levels.hasOwnProperty(e)){throw new Error(\'"\'+e+\'" in not a valid log level\')}t=e}return t};r.history=function(){return g?[].concat(g):[]};r.history.filter=function(e){return(g||[]).filter(function(t){return new RegExp(".*"+e+".*").test(t[0])})};r.history.clear=function(){if(g){g.length=0}};r.history.disable=function(){if(g!==null){g.length=0;g=null}};r.history.enable=function(){if(g===null){g=[]}};r.error=function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++){r[n]=arguments[n]}return i("error",t,r)};r.warn=function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++){r[n]=arguments[n]}return i("warn",t,r)};r.debug=function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++){r[n]=arguments[n]}return i("debug",t,r)};return r}var b=_("VIDEOJS");var T=b.createLogger;var S=n(function(e){function t(){e.exports=t=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var r in i){if(Object.prototype.hasOwnProperty.call(i,r)){e[r]=i[r]}}}return e};return t.apply(this,arguments)}
1e.exports=t});var k=Object.prototype.toString;var E=function e(t){return I(t)?Object.keys(t):[]};function j(e,t){E(e).forEach(function(i){return t(e[i],i)})}function w(e,t,i){if(i===void 0){i=0}return E(e).reduce(function(i,r){return t(i,e[r],r)},i)}function C(e){for(var t=arguments.length,i=new Array(t>1?t-1:0),r=1;r<t;r++){i[r-1]=arguments[r]}if(Object.assign){return S.apply(void 0,[e].concat(i))}i.forEach(function(t){if(!t){return}j(t,function(t,i){e[i]=t})});return e}function I(e){return!!e&&typeof e==="object"}function A(e){return I(e)&&k.call(e)==="[object Object]"&&e.constructor===Object}function x(e,t){if(!e||!t){return""}if(typeof s.getComputedStyle==="function"){var i=s.getComputedStyle(e);return i?i.getPropertyValue(t)||i[t]:""}return""}var P=s.navigator&&s.navigator.userAgent||"";var O=/AppleWebKit\\/([\\d.]+)/i.exec(P);var L=O?parseFloat(O.pop()):null;var D=/iPod/i.test(P);var R=function(){var e=P.match(/OS (\\d+)_/i);if(e&&e[1]){return e[1]}return null}();var N=/Android/i.test(P);var M=function(){var e=P.match(/Android (\\d+)(?:\\.(\\d+))?(?:\\.(\\d+))*/i);if(!e){return null}var t=e[1]&&parseFloat(e[1]);var i=e[2]&&parseFloat(e[2]);if(t&&i){return parseFloat(e[1]+"."+e[2])}else if(t){return t}return null}();var U=N&&M<5&&L<537;var B=/Firefox/i.test(P);var F=/Edg/i.test(P);var H=!F&&(/Chrome/i.test(P)||/CriOS/i.test(P));var V=function(){var e=P.match(/(Chrome|CriOS)\\/(\\d+)/);if(e&&e[2]){return parseFloat(e[2])}return null}();var q=function(){var e=/MSIE\\s(\\d+)\\.\\d/.exec(P);var t=e&&parseFloat(e[1]);if(!t&&/Trident\\/7.0/i.test(P)&&/rv:11.0/.test(P)){t=11}return t}();var z=/Safari/i.test(P)&&!H&&!N&&!F;var W=/Windows/i.test(P);var G=Boolean(te()&&("ontouchstart"in s||s.navigator.maxTouchPoints||s.DocumentTouch&&s.document instanceof s.DocumentTouch));var Y=/iPad/i.test(P)||z&&G&&!/iPhone/i.test(P);var K=/iPhone/i.test(P)&&!Y;var X=K||Y||D;var Q=(z||X)&&!H;var J=Object.freeze({__proto__:null,IS_IPOD:D,IOS_VERSION:R,IS_ANDROID:N,ANDROID_VERSION:M,IS_NATIVE_ANDROID:U,IS_FIREFOX:B,IS_EDGE:F,IS_CHROME:H,CHROME_VERSION:V,IE_VERSION:q,IS_SAFARI:z,IS_WINDOWS:W,TOUCH_ENABLED:G,IS_IPAD:Y,IS_IPHONE:K,IS_IOS:X,IS_ANY_SAFARI:Q});function Z(e){return typeof e==="string"&&Boolean(e.trim())}function $(e){if(e.indexOf(" ")>=0){throw new Error("class has illegal whitespace characters")}}function ee(e){return new RegExp("(^|\\\\s)"+e+"($|\\\\s)")}function te(){return c===s.document}function ie(e){return I(e)&&e.nodeType===1}function re(){try{return s.parent!==s.self}catch(e){return true}}function ne(e){return function(t,i){if(!Z(t)){return c[e](null)}if(Z(i)){i=c.querySelector(i)}var r=ie(i)?i:c;return r[e]&&r[e](t)}}function ae(e,t,i,r){if(e===void 0){e="div"}if(t===void 0){t={}}if(i===void 0){i={}}var n=c.createElement(e);Object.getOwnPropertyNames(t).forEach(function(e){var i=t[e];if(e.indexOf("aria-")!==-1||e==="role"||e==="type"){b.warn("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 "+e+" to "+i+"."));n.setAttribute(e,i)}else if(e==="textContent"){se(n,i)}else if(n[e]!==i||e==="tabIndex"){n[e]=i}});Object.getOwnPropertyNames(i).forEach(function(e){n.setAttribute(e,i[e])});if(r){je(n,r)}return n}function se(e,t){if(typeof e.textContent==="undefined"){e.innerText=t}else{e.textContent=t}return e}function oe(e,t){if(t.firstChild){t.insertBefore(e,t.firstChild)}else{t.appendChild(e)}}function le(e,t){$(t);if(e.classList){return e.classList.contains(t)}return ee(t).test(e.className)}function ue(e,t){if(e.classList){e.classList.add(t)}else if(!le(e,t)){e.className=(e.className+" "+t).trim()}return e}function ce(e,t){if(e.classList){e.classList.remove(t)}else{$(t);e.className=e.className.split(/\\s+/).filter(function(e){return e!==t}).join(" ")}return e}function de(e,t,i){var r=le(e,t);if(typeof i==="function"){i=i(e,t)}if(typeof i!=="boolean"){i=!r}if(i===r){return}if(i){ue(e,t)}else{ce(e,t)}return e}function fe(e,t){Object.getOwnPropertyNames(t).forEach(function(i){var r=t[i];if(r===null||typeof r==="undefined"||r===false){e.removeAttribute(i)}else{e.setAttribute(i,r===true?"":r)}})}function he(e){var t={};var i=","+"autoplay,controls,playsinline,loop,muted,default,defaultMuted"+",";if(e&&e.attributes&&e.attributes.length>0){var r=e.attributes;for(var n=r.length-1;n>=0;n--){var a=r[n].name;var s=r[n].value;if(typeof e[a]==="boolean"||i.indexOf(","+a+",")!==-1){s=s!==null?true:false}t[a]=s}}return t}function pe(e,t){return e.getAttribute(t)}function ve(e,t,i){e.setAttribute(t,i)}function me(e,t){e.removeAttribute(t)}function ge(){c.body.focus();c.onselectstart=function(){return false}}function ye(){c.onselectstart=function(){return true}}function _e(e){if(e&&e.getBoundingClientRect&&e.parentNode){var t=e.getBoundingClientRect();var i={};["bottom","height","left","right","top","width"].forEach(function(e){if(t[e]!==undefined){i[e]=t[e]}});if(!i.height){i.height=parseFloat(x(e,"height"))}if(!i.width){i.width=parseFloat(x(e,"width"))}return i}}function be(e){if(!e||e&&!e.offsetParent){return{left:0,top:0,width:0,height:0}}var t=e.offsetWidth;var i=e.offsetHeight;var r=0;var n=0;while(e.offsetParent&&e!==c[d.fullscreenElement]){r+=e.offsetLeft;n+=e.offsetTop;e=e.offsetParent}return{left:r,top:n,width:t,height:i}}function Te(e,t){var i={x:0,y:0};if(X){var r=e;while(r&&r.nodeName.toLowerCase()!=="html"){var n=x(r,"transform");if(/^matrix/.test(n)){var a=n.slice(7,-1).split(/,\\s/).map(Number);i.x+=a[4];i.y+=a[5]}else if(/^matrix3d/.test(n)){var s=n.slice(9,-1).split(/,\\s/).map(Number);i.x+=s[12];i.y+=s[13]}r=r.parentNode}}var o={};var l=be(t.target);var u=be(e);var c=u.width;
1var d=u.height;var f=t.offsetY-(u.top-l.top);var h=t.offsetX-(u.left-l.left);if(t.changedTouches){h=t.changedTouches[0].pageX-u.left;f=t.changedTouches[0].pageY+u.top;if(X){h-=i.x;f-=i.y}}o.y=1-Math.max(0,Math.min(1,f/d));o.x=Math.max(0,Math.min(1,h/c));return o}function Se(e){return I(e)&&e.nodeType===3}function ke(e){while(e.firstChild){e.removeChild(e.firstChild)}return e}function Ee(e){if(typeof e==="function"){e=e()}return(Array.isArray(e)?e:[e]).map(function(e){if(typeof e==="function"){e=e()}if(ie(e)||Se(e)){return e}if(typeof e==="string"&&/\\S/.test(e)){return c.createTextNode(e)}}).filter(function(e){return e})}function je(e,t){Ee(t).forEach(function(t){return e.appendChild(t)});return e}function we(e,t){return je(ke(e),t)}function Ce(e){if(e.button===undefined&&e.buttons===undefined){return true}if(e.button===0&&e.buttons===undefined){return true}if(e.type==="mouseup"&&e.button===0&&e.buttons===0){return true}if(e.button!==0||e.buttons!==1){return false}return true}var Ie=ne("querySelector");var Ae=ne("querySelectorAll");var xe=Object.freeze({__proto__:null,isReal:te,isEl:ie,isInFrame:re,createEl:ae,textContent:se,prependTo:oe,hasClass:le,addClass:ue,removeClass:ce,toggleClass:de,setAttributes:fe,getAttributes:he,getAttribute:pe,setAttribute:ve,removeAttribute:me,blockTextSelection:ge,unblockTextSelection:ye,getBoundingClientRect:_e,findPosition:be,getPointerPosition:Te,isTextNode:Se,emptyEl:ke,normalizeContent:Ee,appendContent:je,insertContent:we,isSingleLeftClick:Ce,$:Ie,$$:Ae});var Pe=false;var Oe;var Le=function e(){if(!te()||Oe.options.autoSetup===false){return}var t=Array.prototype.slice.call(c.getElementsByTagName("video"));var i=Array.prototype.slice.call(c.getElementsByTagName("audio"));var r=Array.prototype.slice.call(c.getElementsByTagName("video-js"));var n=t.concat(i,r);if(n&&n.length>0){for(var a=0,s=n.length;a<s;a++){var o=n[a];if(o&&o.getAttribute){if(o.player===undefined){var l=o.getAttribute("data-setup");if(l!==null){Oe(o)}}}else{De(1);break}}}else if(!Pe){De(1)}};function De(e,t){if(t){Oe=t}s.setTimeout(Le,e)}function Re(){Pe=true;s.removeEventListener("load",Re)}if(te()){if(c.readyState==="complete"){Re()}else{s.addEventListener("load",Re)}}var Ne=function e(t){var i=c.createElement("style");i.className=t;return i};var Me=function e(t,i){if(t.styleSheet){t.styleSheet.cssText=i}else{t.t'),t[0].s.push('extContent=i}};var Ue=3;var Be=Ue;function Fe(){return Be++}var He;if(!s.WeakMap){He=function(){function e(){this.vdata="vdata"+Math.floor(s.performance&&s.performance.now()||Date.now());this.data={}}var t=e.prototype;t.set=function e(t,i){var r=t[this.vdata]||Fe();if(!t[this.vdata]){t[this.vdata]=r}this.data[r]=i;return this};t.get=function e(t){var i=t[this.vdata];if(i){return this.data[i]}b("We have no data for this element",t);return undefined};t.has=function e(t){var i=t[this.vdata];return i in this.data};t["delete"]=function e(t){var i=t[this.vdata];if(i){delete this.data[i];delete t[this.vdata]}};return e}()}var Ve=s.WeakMap?new WeakMap:new He;function qe(e,t){if(!Ve.has(e)){return}var i=Ve.get(e);if(i.handlers[t].length===0){delete i.handlers[t];if(e.removeEventListener){e.removeEventListener(t,i.dispatcher,false)}else if(e.detachEvent){e.detachEvent("on"+t,i.dispatcher)}}if(Object.getOwnPropertyNames(i.handlers).length<=0){delete i.handlers;delete i.dispatcher;delete i.disabled}if(Object.getOwnPropertyNames(i).length===0){Ve["delete"](e)}}function ze(e,t,i,r){i.forEach(function(i){e(t,i,r)})}function We(e){if(e.fixed_){return e}function t(){return true}function i(){return false}if(!e||!e.isPropagationStopped){var r=e||s.event;e={};for(var n in r){if(n!=="layerX"&&n!=="layerY"&&n!=="keyLocation"&&n!=="webkitMovementX"&&n!=="webkitMovementY"){if(!(n==="returnValue"&&r.preventDefault)){e[n]=r[n]}}}if(!e.target){e.target=e.srcElement||c}if(!e.relatedTarget){e.relatedTarget=e.fromElement===e.target?e.toElement:e.fromElement}e.preventDefault=function(){if(r.preventDefault){r.preventDefault()}e.returnValue=false;r.returnValue=false;e.defaultPrevented=true};e.defaultPrevented=false;e.stopPropagation=function(){if(r.stopPropagation){r.stopPropagation()}e.cancelBubble=true;r.cancelBubble=true;e.isPropagationStopped=t};e.isPropagationStopped=i;e.stopImmediatePropagation=function(){if(r.stopImmediatePropagation){r.stopImmediatePropagation()}e.isImmediatePropagationStopped=t;e.stopPropagation()};e.isImmediatePropagationStopped=i;if(e.clientX!==null&&e.clientX!==undefined){var a=c.documentElement;var o=c.body;e.pageX=e.clientX+(a&&a.scrollLeft||o&&o.scrollLeft||0)-(a&&a.clientLeft||o&&o.clientLeft||0);e.pageY=e.clientY+(a&&a.scrollTop||o&&o.scrollTop||0)-(a&&a.clientTop||o&&o.clientTop||0)}e.which=e.charCode||e.keyCode;if(e.button!==null&&e.button!==undefined){e.button=e.button&1?0:e.button&4?1:e.button&2?2:0}}e.fixed_=true;return e}var Ge;var Ye=function e(){if(typeof Ge!=="boolean"){Ge=false;try{var t=Object.defineProperty({},"passive",{get:function e(){Ge=true}});s.addEventListener("test",null,t);s.removeEventListener("test",null,t)}catch(e){}}return Ge};var Ke=["touchstart","touchmove"];function Xe(e,t,i){if(Array.isArray(t)){return ze(Xe,e,t,i)}if(!Ve.has(e)){Ve.set(e,{})}
1var r=Ve.get(e);if(!r.handlers){r.handlers={}}if(!r.handlers[t]){r.handlers[t]=[]}if(!i.guid){i.guid=Fe()}r.handlers[t].push(i);if(!r.dispatcher){r.disabled=false;r.dispatcher=function(t,i){if(r.disabled){return}t=We(t);var n=r.handlers[t.type];if(n){var a=n.slice(0);for(var s=0,o=a.length;s<o;s++){if(t.isImmediatePropagationStopped()){break}else{try{a[s].call(e,t,i)}catch(e){b.error(e)}}}}}}if(r.handlers[t].length===1){if(e.addEventListener){var n=false;if(Ye()&&Ke.indexOf(t)>-1){n={passive:true}}e.addEventListener(t,r.dispatcher,n)}else if(e.attachEvent){e.attachEvent("on"+t,r.dispatcher)}}}function Qe(e,t,i){if(!Ve.has(e)){return}var r=Ve.get(e);if(!r.handlers){return}if(Array.isArray(t)){return ze(Qe,e,t,i)}var n=function e(t,i){r.handlers[i]=[];qe(t,i)};if(t===undefined){for(var a in r.handlers){if(Object.prototype.hasOwnProperty.call(r.handlers||{},a)){n(e,a)}}return}var s=r.handlers[t];if(!s){return}if(!i){n(e,t);return}if(i.guid){for(var o=0;o<s.length;o++){if(s[o].guid===i.guid){s.splice(o--,1)}}}qe(e,t)}function Je(e,t,i){var r=Ve.has(e)?Ve.get(e):{};var n=e.parentNode||e.ownerDocument;if(typeof t==="string"){t={type:t,target:e}}else if(!t.target){t.target=e}t=We(t);if(r.dispatcher){r.dispatcher.call(e,t,i)}if(n&&!t.isPropagationStopped()&&t.bubbles===true){Je.call(null,n,t,i)}else if(!n&&!t.defaultPrevented&&t.target&&t.target[t.type]){if(!Ve.has(t.target)){Ve.set(t.target,{})}var a=Ve.get(t.target);if(t.target[t.type]){a.disabled=true;if(typeof t.target[t.type]==="function"){t.target[t.type]()}a.disabled=false}}return!t.defaultPrevented}function Ze(e,t,i){if(Array.isArray(t)){return ze(Ze,e,t,i)}var r=function r(){Qe(e,t,r);i.apply(this,arguments)};r.guid=i.guid=i.guid||Fe();Xe(e,t,r)}function $e(e,t,i){var r=function r(){Qe(e,t,r);i.apply(this,arguments)};r.guid=i.guid=i.guid||Fe();Xe(e,t,r)}var et=Object.freeze({__proto__:null,fixEvent:We,on:Xe,off:Qe,trigger:Je,one:Ze,any:$e});var tt=30;var it=function e(t,i,r){if(!i.guid){i.guid=Fe()}var n=i.bind(t);n.guid=r?r+"_"+i.guid:i.guid;return n};var rt=function e(t,i){var r=s.performance.now();var n=function e(){var n=s.performance.now();if(n-r>=i){t.apply(void 0,arguments);r=n}};return n};var nt=function e(t,i,r,n){if(n===void 0){n=s}var a;var o=function e(){n.clearTimeout(a);a=null};var l=function e(){var s=this;var o=arguments;var l=function e(){a=null;l=null;if(!r){t.apply(s,o)}};if(!a&&r){t.apply(s,o)}n.clearTimeout(a);a=n.setTimeout(l,i)};l.cancel=o;return l};var at=function e(){};at.prototype.allowedEvents_={};at.prototype.on=function(e,t){var i=this.addEventListener;this.addEventListener=function(){};Xe(this,e,t);this.addEventListener=i};at.prototype.addEventListener=at.prototype.on;at.prototype.off=function(e,t){Qe(this,e,t)};at.prototype.removeEventListener=at.prototype.off;at.prototype.one=function(e,t){var i=this.addEventListener;this.addEventListener=function(){};Ze(this,e,t);this.addEventListener=i};at.prototype.any=function(e,t){var i=this.addEventListener;this.addEventListener=function(){};$e(this,e,t);this.addEventListener=i};at.prototype.trigger=function(e){var t=e.type||e;if(typeof e==="string"){e={type:t}}e=We(e);if(this.allowedEvents_[t]&&this["on"+t]){this["on"+t](e)}Je(this,e)};at.prototype.dispatchEvent=at.prototype.trigger;var st;at.prototype.queueTrigger=function(e){var t=this;if(!st){st=new Map}var i=e.type||e;var r=st.get(this);if(!r){r=new Map;st.set(this,r)}var n=r.get(i);r["delete"](i);s.clearTimeout(n);var a=s.setTimeout(function(){if(r.size===0){r=null;st["delete"](t)}t.trigger(e)},0);r.set(i,a)};var ot=function e(t){if(typeof t.name==="function"){return t.name()}if(typeof t.name==="string"){return t.name}if(t.name_){return t.name_}if(t.constructor&&t.constructor.name){return t.constructor.name}return typeof t};var lt=function e(t){return t instanceof at||!!t.eventBusEl_&&["on","one","off","trigger"].every(function(e){return typeof t[e]==="function"})};var ut=function e(t,i){if(lt(t)){i()}else{if(!t.eventedCallbacks){t.eventedCallbacks=[]}t.eventedCallbacks.push(i)}};var ct=function e(t){return typeof t==="string"&&/\\S/.test(t)||Array.isArray(t)&&!!t.length};var dt=function e(t,i,r){if(!t||!t.nodeName&&!lt(t)){throw new Error("Invalid target for "+ot(i)+"#"+r+"; must be a DOM node or evented object.")}};var ft=function e(t,i,r){if(!ct(t)){throw new Error("Invalid event type for "+ot(i)+"#"+r+"; must be a non-empty string or array.")}};var ht=function e(t,i,r){if(typeof t!=="function"){throw new Error("Invalid listener for "+ot(i)+"#"+r+"; must be a function.")}};var pt=function e(t,i,r){var n=i.length<3||i[0]===t||i[0]===t.eventBusEl_;var a;var s;var o;if(n){a=t.eventBusEl_;if(i.length>=3){i.shift()}s=i[0];o=i[1]}else{a=i[0];s=i[1];o=i[2]}dt(a,t,r);ft(s,t,r);ht(o,t,r);o=it(t,o);return{isTargetingSelf:n,target:a,type:s,listener:o}};var vt=function e(t,i,r,n){dt(t,t,i);
1if(t.nodeName){et[i](t,r,n)}else{t[i](r,n)}};var mt={on:function e(){var t=this;for(var i=arguments.length,r=new Array(i),n=0;n<i;n++){r[n]=arguments[n]}var a=pt(this,r,"on"),s=a.isTargetingSelf,o=a.target,l=a.type,u=a.listener;vt(o,"on",l,u);if(!s){var c=function e(){return t.off(o,l,u)};c.guid=u.guid;var d=function e(){return t.off("dispose",c)};d.guid=u.guid;vt(this,"on","dispose",c);vt(o,"on","dispose",d)}},one:function e(){var t=this;for(var i=arguments.length,r=new Array(i),n=0;n<i;n++){r[n]=arguments[n]}var a=pt(this,r,"one"),s=a.isTargetingSelf,o=a.target,l=a.type,u=a.listener;if(s){vt(o,"one",l,u)}else{var c=function e(){t.off(o,l,e);for(var i=arguments.length,r=new Array(i),n=0;n<i;n++){r[n]=arguments[n]}u.apply(null,r)};c.guid=u.guid;vt(o,"one",l,c)}},any:function e(){var t=this;for(var i=arguments.length,r=new Array(i),n=0;n<i;n++){r[n]=arguments[n]}var a=pt(this,r,"any"),s=a.isTargetingSelf,o=a.target,l=a.type,u=a.listener;if(s){vt(o,"any",l,u)}else{var c=function e(){t.off(o,l,e);for(var i=arguments.length,r=new Array(i),n=0;n<i;n++){r[n]=arguments[n]}u.apply(null,r)};c.guid=u.guid;vt(o,"any",l,c)}},off:function e(t,i,r){if(!t||ct(t)){Qe(this.eventBusEl_,t,i)}else{var n=t;var a=i;dt(n,this,"off");ft(a,this,"off");ht(r,this,"off");r=it(this,r);this.off("dispose",r);if(n.nodeName){Qe(n,a,r);Qe(n,"dispose",r)}else if(lt(n)){n.off(a,r);n.off("dispose",r)}}},trigger:function e(t,i){dt(this.eventBusEl_,this,"trigger");var r=t&&typeof t!=="string"?t.type:t;if(!ct(r)){var n="Invalid event type for "+ot(this)+"#trigger; "+"must be a non-empty string or object with a type key that has a non-empty value.";if(t){(this.log||b).error(n)}else{throw new Error(n)}}return Je(this.eventBusEl_,t,i)}};function gt(e,t){if(t===void 0){t={}}var i=t,r=i.eventBusKey;if(r){if(!e[r].nodeName){throw new Error(\'The eventBusKey "\'+r+\'" does not refer to an element.\')}e.eventBusEl_=e[r]}else{e.eventBusEl_=ae("span",{className:"vjs-event-bus"})}C(e,mt);if(e.eventedCallbacks){e.eventedCallbacks.forEach(function(e){e()})}e.on("dispose",function(){e.off();s.setTimeout(function(){e.eventBusEl_=null},0)});return e}var yt={state:{},setState:function e(t){var i=this;if(typeof t==="function"){t=t()}var r;j(t,function(e,t){if(i.state[t]!==e){r=r||{};r[t]={from:i.state[t],to:e}}i.state[t]=e});if(r&&lt(this)){this.trigger({changes:r,type:"statechanged"})}return r}};function _t(e,t){C(e,yt);e.state=C({},e.state,t);if(typeof e.handleStateChanged==="function"&&lt(e)){e.on("statechanged",e.handleStateChanged)}return e}var bt=function e(t){if(typeof t!=="string"){return t}return t.replace(/./,function(e){return e.toLowerCase()})};var Tt=function e(t){if(typeof t!=="string"){return t}return t.replace(/./,function(e){return e.toUpperCase()})};var St=function e(t,i){return Tt(t)===Tt(i)};function kt(){var e={};for(var t=arguments.length,i=new Array(t),r=0;r<t;r++){i[r]=arguments[r]}i.forEach(function(t){if(!t){return}j(t,function(t,i){if(!A(t)){e[i]=t;return}if(!A(e[i])){e[i]={}}e[i]=kt(e[i],t)})});return e}var Et=function(){function e(){this.map_={}}var t=e.prototype;t.has=function e(t){return t in this.map_};t["delete"]=function e(t){var i=this.has(t);delete this.map_[t];return i};t.set=function e(t,i){this.map_[t]=i;return this};t.forEach=function e(t,i){for(var r in this.map_){t.call(i,this.map_[r],r,this)}};return e}();var jt=s.Map?s.Map:Et;var wt=function(){function e(){this.set_={}}var t=e.prototype;t.has=function e(t){return t in this.set_};t["delete"]=function e(t){var i=this.has(t);delete this.set_[t];return i};t.add=function e(t){this.set_[t]=1;return this};t.forEach=function e(t,i){for(var r in this.set_){t.call(i,r,r,this)}};return e}();var Ct=s.Set?s.Set:wt;var It=function(){function e(e,t,i){if(!e&&this.play){this.player_=e=this}else{this.player_=e}this.isDisposed_=false;this.parentComponent_=null;this.options_=kt({},this.options_);t=this.options_=kt(this.options_,t);this.id_=t.id||t.el&&t.el.id;if(!this.id_){var r=e&&e.id&&e.id()||"no_player";this.id_=r+"_component_"+Fe()}this.name_=t.name||null;if(t.el){this.el_=t.el}else if(t.createEl!==false){this.el_=this.createEl()}if(t.evented!==false){gt(this,{eventBusKey:this.el_?"el_":null});this.handleLanguagechange=this.handleLanguagechange.bind(this);this.on(this.player_,"languagechange",this.handleLanguagechange)}_t(this,this.constructor.defaultState);this.children_=[];this.childIndex_={};this.childNameIndex_={};this.setTimeoutIds_=new Ct;this.setIntervalIds_=new Ct;this.rafIds_=new Ct;this.namedRafs_=new jt;this.clearingTimersOnDispose_=false;if(t.initChildren!==false){this.initChildren()}this.ready(i);if(t.reportTouchActivity!==false){this.enableTouchActivity()}}var t=e.prototype;t.dispose=function e(){if(this.isDisposed_){return}if(this.readyQueue_){this.readyQueue_.length=0}this.trigger({type:"dispose",bubbles:false});this.isDisposed_=true;if(this.children_){for(var t=this.children_.length-1;t>=0;t--){if(this.children_[t].dispose){this.children_[t].dispose()}}}this.children_=null;this.childIndex_=null;this.childNameIndex_=null;this.parentComponent_=null;if(this.el_){if(this.el_.parentNode){this.el_.parentNode.removeChild(this.el_)}if(Ve.has(this.el_)){Ve["delete"](this.el_)}this.el_=null}this.player_=null};t.isDisposed=function e(){return Boolean(this.isDisposed_)};t.player=function e(){return this.player_};t.options=function e(t){if(!t){return this.options_}this.options_=kt(this.options_,t);return this.options_};t.el=function e(){return this.el_};t.createEl=function e(t,i,r){return ae(t,i,r)};t.localize=function e(t,i,r){if(r===void 0){r=t}var n=this.player_.language&&this.player_.language();var a=this.player_.languages&&this.player_.languages();var s=a&&a[n];var o=n&&n.split("-")[0];var l=a&&a[o];var u=r;if(s&&s[t]){u=s[t]}else if(l&&l[t]){u=l[t]}if(i){u=u.replace(/\\{(\\d+)\\}/g,function(e,t){var r=i[t-1];var n=r;if(typeof r==="undefined"){n=e}return n})}return u};t.handleLanguagechange=function e(){};t.contentEl=function e(){return this.contentEl_||this.el_};t.id=function e(){return this.id_};t.name=function e(){return this.name_};t.children=function e(){return this.children_};t.getChildById=function e(t){return this.childIndex_[t]};t.getChild=function e(t){if(!t){return}return this.childNameIndex_[t]};t.getDescendant=function e(){for(var t=arguments.length,i=new Array(t),r=0;r<t;r++){i[r]=arguments[r]}i=i.reduce(function(e,t){return e.concat(t)},[]);var n=this;for(var a=0;a<i.length;a++){n=n.getChild(i[a]);if(!n||!n.getChild){return}}return n};t.addChild=function t(i,r,n){if(r===void 0){r={}}if(n===void 0){n=this.children_.length}var a;var s;
1if(typeof i==="string"){s=Tt(i);var o=r.componentClass||s;r.name=s;var l=e.getComponent(o);if(!l){throw new Error("Component "+o+" does not exist")}if(typeof l!=="function"){return null}a=new l(this.player_||this,r)}else{a=i}if(a.parentComponent_){a.parentComponent_.removeChild(a)}this.children_.splice(n,0,a);a.parentComponent_=this;if(typeof a.id==="function"){this.childIndex_[a.id()]=a}s=s||a.name&&Tt(a.name());if(s){this.childNameIndex_[s]=a;this.childNameIndex_[bt(s)]=a}if(typeof a.el==="function"&&a.el()){var u=null;if(this.children_[n+1]){if(this.children_[n+1].el_){u=this.children_[n+1].el_}else if(ie(this.children_[n+1])){u=this.children_[n+1]}}this.contentEl().insertBefore(a.el(),u)}return a};t.removeChild=function e(t){if(typeof t==="string"){t=this.getChild(t)}if(!t||!this.children_){return}var i=false;for(var r=this.children_.length-1;r>=0;r--){if(this.children_[r]===t){i=true;this.children_.splice(r,1);break}}if(!i){return}t.parentComponent_=null;this.childIndex_[t.id()]=null;this.childNameIndex_[Tt(t.name())]=null;this.childNameIndex_[bt(t.name())]=null;var n=t.el();if(n&&n.parentNode===this.contentEl()){this.contentEl().removeChild(t.el())}};t.initChildren=function t(){var i=this;var r=this.options_.children;if(r){var n=this.options_;var a=function e(t){var r=t.name;var a=t.opts;if(n[r]!==undefined){a=n[r]}if(a===false){return}if(a===true){a={}}a.playerOptions=i.options_.playerOptions;var s=i.addChild(r,a);if(s){i[r]=s}};var s;var o=e.getComponent("Tech");if(Array.isArray(r)){s=r}else{s=Object.keys(r)}s.concat(Object.keys(this.options_).filter(function(e){return!s.some(function(t){if(typeof t==="string"){return e===t}return e===t.name})})).map(function(e){var t;var n;if(typeof e==="string"){t=e;n=r[t]||i.options_[t]||{}}else{t=e.name;n=e}return{name:t,opts:n}}).filter(function(t){var i=e.getComponent(t.opts.componentClass||Tt(t.name));return i&&!o.isTech(i)}).forEach(a)}};t.buildCSSClass=function e(){return""};t.ready=function e(t,i){if(i===void 0){i=false}if(!t){return}if(!this.isReady_){this.readyQueue_=this.readyQueue_||[];this.readyQueue_.push(t);return}if(i){t'),t[1].s.push('extContent=i}};var Ue=3;var Be=Ue;function Fe(){return Be++}var He;if(!s.WeakMap){He=function(){function e(){this.vdata="vdata"+Math.floor(s.performance&&s.performance.now()||Date.now());this.data={}}var t=e.prototype;t.set=function e(t,i){var r=t[this.vdata]||Fe();if(!t[this.vdata]){t[this.vdata]=r}this.data[r]=i;return this};t.get=function e(t){var i=t[this.vdata];if(i){return this.data[i]}b("We have no data for this element",t);return undefined};t.has=function e(t){var i=t[this.vdata];return i in this.data};t["delete"]=function e(t){var i=t[this.vdata];if(i){delete this.data[i];delete t[this.vdata]}};return e}()}var Ve=s.WeakMap?new WeakMap:new He;function qe(e,t){if(!Ve.has(e)){return}var i=Ve.get(e);if(i.handlers[t].length===0){delete i.handlers[t];if(e.removeEventListener){e.removeEventListener(t,i.dispatcher,false)}else if(e.detachEvent){e.detachEvent("on"+t,i.dispatcher)}}if(Object.getOwnPropertyNames(i.handlers).length<=0){delete i.handlers;delete i.dispatcher;delete i.disabled}if(Object.getOwnPropertyNames(i).length===0){Ve["delete"](e)}}function ze(e,t,i,r){i.forEach(function(i){e(t,i,r)})}function We(e){if(e.fixed_){return e}function t(){return true}function i(){return false}if(!e||!e.isPropagationStopped){var r=e||s.event;e={};for(var n in r){if(n!=="layerX"&&n!=="layerY"&&n!=="keyLocation"&&n!=="webkitMovementX"&&n!=="webkitMovementY"){if(!(n==="returnValue"&&r.preventDefault)){e[n]=r[n]}}}if(!e.target){e.target=e.srcElement||c}if(!e.relatedTarget){e.relatedTarget=e.fromElement===e.target?e.toElement:e.fromElement}e.preventDefault=function(){if(r.preventDefault){r.preventDefault()}e.returnValue=false;r.returnValue=false;e.defaultPrevented=true};e.defaultPrevented=false;e.stopPropagation=function(){if(r.stopPropagation){r.stopPropagation()}e.cancelBubble=true;r.cancelBubble=true;e.isPropagationStopped=t};e.isPropagationStopped=i;e.stopImmediatePropagation=function(){if(r.stopImmediatePropagation){r.stopImmediatePropagation()}e.isImmediatePropagationStopped=t;e.stopPropagation()};e.isImmediatePropagationStopped=i;if(e.clientX!==null&&e.clientX!==undefined){var a=c.documentElement;var o=c.body;e.pageX=e.clientX+(a&&a.scrollLeft||o&&o.scrollLeft||0)-(a&&a.clientLeft||o&&o.clientLeft||0);e.pageY=e.clientY+(a&&a.scrollTop||o&&o.scrollTop||0)-(a&&a.clientTop||o&&o.clientTop||0)}e.which=e.charCode||e.keyCode;if(e.button!==null&&e.button!==undefined){e.button=e.button&1?0:e.button&4?1:e.button&2?2:0}}e.fixed_=true;return e}var Ge;var Ye=function e(){if(typeof Ge!=="boolean"){Ge=false;try{var t=Object.defineProperty({},"passive",{get:function e(){Ge=true}});s.addEventListener("test",null,t);s.removeEventListener("test",null,t)}catch(e){}}return Ge};var Ke=["touchstart","touchmove"];function Xe(e,t,i){if(Array.isArray(t)){return ze(Xe,e,t,i)}if(!Ve.has(e)){Ve.set(e,{})}
1var r=Ve.get(e);if(!r.handlers){r.handlers={}}if(!r.handlers[t]){r.handlers[t]=[]}if(!i.guid){i.guid=Fe()}r.handlers[t].push(i);if(!r.dispatcher){r.disabled=false;r.dispatcher=function(t,i){if(r.disabled){return}t=We(t);var n=r.handlers[t.type];if(n){var a=n.slice(0);for(var s=0,o=a.length;s<o;s++){if(t.isImmediatePropagationStopped()){break}else{try{a[s].call(e,t,i)}catch(e){b.error(e)}}}}}}if(r.handlers[t].length===1){if(e.addEventListener){var n=false;if(Ye()&&Ke.indexOf(t)>-1){n={passive:true}}e.addEventListener(t,r.dispatcher,n)}else if(e.attachEvent){e.attachEvent("on"+t,r.dispatcher)}}}function Qe(e,t,i){if(!Ve.has(e)){return}var r=Ve.get(e);if(!r.handlers){return}if(Array.isArray(t)){return ze(Qe,e,t,i)}var n=function e(t,i){r.handlers[i]=[];qe(t,i)};if(t===undefined){for(var a in r.handlers){if(Object.prototype.hasOwnProperty.call(r.handlers||{},a)){n(e,a)}}return}var s=r.handlers[t];if(!s){return}if(!i){n(e,t);return}if(i.guid){for(var o=0;o<s.length;o++){if(s[o].guid===i.guid){s.splice(o--,1)}}}qe(e,t)}function Je(e,t,i){var r=Ve.has(e)?Ve.get(e):{};var n=e.parentNode||e.ownerDocument;if(typeof t==="string"){t={type:t,target:e}}else if(!t.target){t.target=e}t=We(t);if(r.dispatcher){r.dispatcher.call(e,t,i)}if(n&&!t.isPropagationStopped()&&t.bubbles===true){Je.call(null,n,t,i)}else if(!n&&!t.defaultPrevented&&t.target&&t.target[t.type]){if(!Ve.has(t.target)){Ve.set(t.target,{})}var a=Ve.get(t.target);if(t.target[t.type]){a.disabled=true;if(typeof t.target[t.type]==="function"){t.target[t.type]()}a.disabled=false}}return!t.defaultPrevented}function Ze(e,t,i){if(Array.isArray(t)){return ze(Ze,e,t,i)}var r=function r(){Qe(e,t,r);i.apply(this,arguments)};r.guid=i.guid=i.guid||Fe();Xe(e,t,r)}function $e(e,t,i){var r=function r(){Qe(e,t,r);i.apply(this,arguments)};r.guid=i.guid=i.guid||Fe();Xe(e,t,r)}var et=Object.freeze({__proto__:null,fixEvent:We,on:Xe,off:Qe,trigger:Je,one:Ze,any:$e});var tt=30;var it=function e(t,i,r){if(!i.guid){i.guid=Fe()}var n=i.bind(t);n.guid=r?r+"_"+i.guid:i.guid;return n};var rt=function e(t,i){var r=s.performance.now();var n=function e(){var n=s.performance.now();if(n-r>=i){t.apply(void 0,arguments);r=n}};return n};var nt=function e(t,i,r,n){if(n===void 0){n=s}var a;var o=function e(){n.clearTimeout(a);a=null};var l=function e(){var s=this;var o=arguments;var l=function e(){a=null;l=null;if(!r){t.apply(s,o)}};if(!a&&r){t.apply(s,o)}n.clearTimeout(a);a=n.setTimeout(l,i)};l.cancel=o;return l};var at=function e(){};at.prototype.allowedEvents_={};at.prototype.on=function(e,t){var i=this.addEventListener;this.addEventListener=function(){};Xe(this,e,t);this.addEventListener=i};at.prototype.addEventListener=at.prototype.on;at.prototype.off=function(e,t){Qe(this,e,t)};at.prototype.removeEventListener=at.prototype.off;at.prototype.one=function(e,t){var i=this.addEventListener;this.addEventListener=function(){};Ze(this,e,t);this.addEventListener=i};at.prototype.any=function(e,t){var i=this.addEventListener;this.addEventListener=function(){};$e(this,e,t);this.addEventListener=i};at.prototype.trigger=function(e){var t=e.type||e;if(typeof e==="string"){e={type:t}}e=We(e);if(this.allowedEvents_[t]&&this["on"+t]){this["on"+t](e)}Je(this,e)};at.prototype.dispatchEvent=at.prototype.trigger;var st;at.prototype.queueTrigger=function(e){var t=this;if(!st){st=new Map}var i=e.type||e;var r=st.get(this);if(!r){r=new Map;st.set(this,r)}var n=r.get(i);r["delete"](i);s.clearTimeout(n);var a=s.setTimeout(function(){if(r.size===0){r=null;st["delete"](t)}t.trigger(e)},0);r.set(i,a)};var ot=function e(t){if(typeof t.name==="function"){return t.name()}if(typeof t.name==="string"){return t.name}if(t.name_){return t.name_}if(t.constructor&&t.constructor.name){return t.constructor.name}return typeof t};var lt=function e(t){return t instanceof at||!!t.eventBusEl_&&["on","one","off","trigger"].every(function(e){return typeof t[e]==="function"})};var ut=function e(t,i){if(lt(t)){i()}else{if(!t.eventedCallbacks){t.eventedCallbacks=[]}t.eventedCallbacks.push(i)}};var ct=function e(t){return typeof t==="string"&&/\\S/.test(t)||Array.isArray(t)&&!!t.length};var dt=function e(t,i,r){if(!t||!t.nodeName&&!lt(t)){throw new Error("Invalid target for "+ot(i)+"#"+r+"; must be a DOM node or evented object.")}};var ft=function e(t,i,r){if(!ct(t)){throw new Error("Invalid event type for "+ot(i)+"#"+r+"; must be a non-empty string or array.")}};var ht=function e(t,i,r){if(typeof t!=="function"){throw new Error("Invalid listener for "+ot(i)+"#"+r+"; must be a function.")}};var pt=function e(t,i,r){var n=i.length<3||i[0]===t||i[0]===t.eventBusEl_;var a;var s;var o;if(n){a=t.eventBusEl_;if(i.length>=3){i.shift()}s=i[0];o=i[1]}else{a=i[0];s=i[1];o=i[2]}dt(a,t,r);ft(s,t,r);ht(o,t,r);o=it(t,o);return{isTargetingSelf:n,target:a,type:s,listener:o}};var vt=function e(t,i,r,n){dt(t,t,i);
1if(t.nodeName){et[i](t,r,n)}else{t[i](r,n)}};var mt={on:function e(){var t=this;for(var i=arguments.length,r=new Array(i),n=0;n<i;n++){r[n]=arguments[n]}var a=pt(this,r,"on"),s=a.isTargetingSelf,o=a.target,l=a.type,u=a.listener;vt(o,"on",l,u);if(!s){var c=function e(){return t.off(o,l,u)};c.guid=u.guid;var d=function e(){return t.off("dispose",c)};d.guid=u.guid;vt(this,"on","dispose",c);vt(o,"on","dispose",d)}},one:function e(){var t=this;for(var i=arguments.length,r=new Array(i),n=0;n<i;n++){r[n]=arguments[n]}var a=pt(this,r,"one"),s=a.isTargetingSelf,o=a.target,l=a.type,u=a.listener;if(s){vt(o,"one",l,u)}else{var c=function e(){t.off(o,l,e);for(var i=arguments.length,r=new Array(i),n=0;n<i;n++){r[n]=arguments[n]}u.apply(null,r)};c.guid=u.guid;vt(o,"one",l,c)}},any:function e(){var t=this;for(var i=arguments.length,r=new Array(i),n=0;n<i;n++){r[n]=arguments[n]}var a=pt(this,r,"any"),s=a.isTargetingSelf,o=a.target,l=a.type,u=a.listener;if(s){vt(o,"any",l,u)}else{var c=function e(){t.off(o,l,e);for(var i=arguments.length,r=new Array(i),n=0;n<i;n++){r[n]=arguments[n]}u.apply(null,r)};c.guid=u.guid;vt(o,"any",l,c)}},off:function e(t,i,r){if(!t||ct(t)){Qe(this.eventBusEl_,t,i)}else{var n=t;var a=i;dt(n,this,"off");ft(a,this,"off");ht(r,this,"off");r=it(this,r);this.off("dispose",r);if(n.nodeName){Qe(n,a,r);Qe(n,"dispose",r)}else if(lt(n)){n.off(a,r);n.off("dispose",r)}}},trigger:function e(t,i){dt(this.eventBusEl_,this,"trigger");var r=t&&typeof t!=="string"?t.type:t;if(!ct(r)){var n="Invalid event type for "+ot(this)+"#trigger; "+"must be a non-empty string or object with a type key that has a non-empty value.";if(t){(this.log||b).error(n)}else{throw new Error(n)}}return Je(this.eventBusEl_,t,i)}};function gt(e,t){if(t===void 0){t={}}var i=t,r=i.eventBusKey;if(r){if(!e[r].nodeName){throw new Error(\'The eventBusKey "\'+r+\'" does not refer to an element.\')}e.eventBusEl_=e[r]}else{e.eventBusEl_=ae("span",{className:"vjs-event-bus"})}C(e,mt);if(e.eventedCallbacks){e.eventedCallbacks.forEach(function(e){e()})}e.on("dispose",function(){e.off();s.setTimeout(function(){e.eventBusEl_=null},0)});return e}var yt={state:{},setState:function e(t){var i=this;if(typeof t==="function"){t=t()}var r;j(t,function(e,t){if(i.state[t]!==e){r=r||{};r[t]={from:i.state[t],to:e}}i.state[t]=e});if(r&&lt(this)){this.trigger({changes:r,type:"statechanged"})}return r}};function _t(e,t){C(e,yt);e.state=C({},e.state,t);if(typeof e.handleStateChanged==="function"&&lt(e)){e.on("statechanged",e.handleStateChanged)}return e}var bt=function e(t){if(typeof t!=="string"){return t}return t.replace(/./,function(e){return e.toLowerCase()})};var Tt=function e(t){if(typeof t!=="string"){return t}return t.replace(/./,function(e){return e.toUpperCase()})};var St=function e(t,i){return Tt(t)===Tt(i)};function kt(){var e={};for(var t=arguments.length,i=new Array(t),r=0;r<t;r++){i[r]=arguments[r]}i.forEach(function(t){if(!t){return}j(t,function(t,i){if(!A(t)){e[i]=t;return}if(!A(e[i])){e[i]={}}e[i]=kt(e[i],t)})});return e}var Et=function(){function e(){this.map_={}}var t=e.prototype;t.has=function e(t){return t in this.map_};t["delete"]=function e(t){var i=this.has(t);delete this.map_[t];return i};t.set=function e(t,i){this.map_[t]=i;return this};t.forEach=function e(t,i){for(var r in this.map_){t.call(i,this.map_[r],r,this)}};return e}();var jt=s.Map?s.Map:Et;var wt=function(){function e(){this.set_={}}var t=e.prototype;t.has=function e(t){return t in this.set_};t["delete"]=function e(t){var i=this.has(t);delete this.set_[t];return i};t.add=function e(t){this.set_[t]=1;return this};t.forEach=function e(t,i){for(var r in this.set_){t.call(i,r,r,this)}};return e}();var Ct=s.Set?s.Set:wt;var It=function(){function e(e,t,i){if(!e&&this.play){this.player_=e=this}else{this.player_=e}this.isDisposed_=false;this.parentComponent_=null;this.options_=kt({},this.options_);t=this.options_=kt(this.options_,t);this.id_=t.id||t.el&&t.el.id;if(!this.id_){var r=e&&e.id&&e.id()||"no_player";this.id_=r+"_component_"+Fe()}this.name_=t.name||null;if(t.el){this.el_=t.el}else if(t.createEl!==false){this.el_=this.createEl()}if(t.evented!==false){gt(this,{eventBusKey:this.el_?"el_":null});this.handleLanguagechange=this.handleLanguagechange.bind(this);this.on(this.player_,"languagechange",this.handleLanguagechange)}_t(this,this.constructor.defaultState);this.children_=[];this.childIndex_={};this.childNameIndex_={};this.setTimeoutIds_=new Ct;this.setIntervalIds_=new Ct;this.rafIds_=new Ct;this.namedRafs_=new jt;this.clearingTimersOnDispose_=false;if(t.initChildren!==false){this.initChildren()}this.ready(i);if(t.reportTouchActivity!==false){this.enableTouchActivity()}}var t=e.prototype;t.dispose=function e(){if(this.isDisposed_){return}if(this.readyQueue_){this.readyQueue_.length=0}this.trigger({type:"dispose",bubbles:false});this.isDisposed_=true;if(this.children_){for(var t=this.children_.length-1;t>=0;t--){if(this.children_[t].dispose){this.children_[t].dispose()}}}this.children_=null;this.childIndex_=null;this.childNameIndex_=null;this.parentComponent_=null;if(this.el_){if(this.el_.parentNode){this.el_.parentNode.removeChild(this.el_)}if(Ve.has(this.el_)){Ve["delete"](this.el_)}this.el_=null}this.player_=null};t.isDisposed=function e(){return Boolean(this.isDisposed_)};t.player=function e(){return this.player_};t.options=function e(t){if(!t){return this.options_}this.options_=kt(this.options_,t);return this.options_};t.el=function e(){return this.el_};t.createEl=function e(t,i,r){return ae(t,i,r)};t.localize=function e(t,i,r){if(r===void 0){r=t}var n=this.player_.language&&this.player_.language();var a=this.player_.languages&&this.player_.languages();var s=a&&a[n];var o=n&&n.split("-")[0];var l=a&&a[o];var u=r;if(s&&s[t]){u=s[t]}else if(l&&l[t]){u=l[t]}if(i){u=u.replace(/\\{(\\d+)\\}/g,function(e,t){var r=i[t-1];var n=r;if(typeof r==="undefined"){n=e}return n})}return u};t.handleLanguagechange=function e(){};t.contentEl=function e(){return this.contentEl_||this.el_};t.id=function e(){return this.id_};t.name=function e(){return this.name_};t.children=function e(){return this.children_};t.getChildById=function e(t){return this.childIndex_[t]};t.getChild=function e(t){if(!t){return}return this.childNameIndex_[t]};t.getDescendant=function e(){for(var t=arguments.length,i=new Array(t),r=0;r<t;r++){i[r]=arguments[r]}i=i.reduce(function(e,t){return e.concat(t)},[]);var n=this;for(var a=0;a<i.length;a++){n=n.getChild(i[a]);if(!n||!n.getChild){return}}return n};t.addChild=function t(i,r,n){if(r===void 0){r={}}if(n===void 0){n=this.children_.length}var a;var s;
1if(typeof i==="string"){s=Tt(i);var o=r.componentClass||s;r.name=s;var l=e.getComponent(o);if(!l){throw new Error("Component "+o+" does not exist")}if(typeof l!=="function"){return null}a=new l(this.player_||this,r)}else{a=i}if(a.parentComponent_){a.parentComponent_.removeChild(a)}this.children_.splice(n,0,a);a.parentComponent_=this;if(typeof a.id==="function"){this.childIndex_[a.id()]=a}s=s||a.name&&Tt(a.name());if(s){this.childNameIndex_[s]=a;this.childNameIndex_[bt(s)]=a}if(typeof a.el==="function"&&a.el()){var u=null;if(this.children_[n+1]){if(this.children_[n+1].el_){u=this.children_[n+1].el_}else if(ie(this.children_[n+1])){u=this.children_[n+1]}}this.contentEl().insertBefore(a.el(),u)}return a};t.removeChild=function e(t){if(typeof t==="string"){t=this.getChild(t)}if(!t||!this.children_){return}var i=false;for(var r=this.children_.length-1;r>=0;r--){if(this.children_[r]===t){i=true;this.children_.splice(r,1);break}}if(!i){return}t.parentComponent_=null;this.childIndex_[t.id()]=null;this.childNameIndex_[Tt(t.name())]=null;this.childNameIndex_[bt(t.name())]=null;var n=t.el();if(n&&n.parentNode===this.contentEl()){this.contentEl().removeChild(t.el())}};t.initChildren=function t(){var i=this;var r=this.options_.children;if(r){var n=this.options_;var a=function e(t){var r=t.name;var a=t.opts;if(n[r]!==undefined){a=n[r]}if(a===false){return}if(a===true){a={}}a.playerOptions=i.options_.playerOptions;var s=i.addChild(r,a);if(s){i[r]=s}};var s;var o=e.getComponent("Tech");if(Array.isArray(r)){s=r}else{s=Object.keys(r)}s.concat(Object.keys(this.options_).filter(function(e){return!s.some(function(t){if(typeof t==="string"){return e===t}return e===t.name})})).map(function(e){var t;var n;if(typeof e==="string"){t=e;n=r[t]||i.options_[t]||{}}else{t=e.name;n=e}return{name:t,opts:n}}).filter(function(t){var i=e.getComponent(t.opts.componentClass||Tt(t.name));return i&&!o.isTech(i)}).forEach(a)}};t.buildCSSClass=function e(){return""};t.ready=function e(t,i){if(i===void 0){i=false}if(!t){return}if(!this.isReady_){this.readyQueue_=this.readyQueue_||[];this.readyQueue_.push(t);return}if(i){t'),t[0].s.push('.call(this)}else{this.setTimeout(t,1)}};t.triggerReady=function e(){this.isReady_=true;this.setTimeout(function(){var e=this.readyQueue_;this.readyQueue_=[];if(e&&e.length>0){e.forEach(function(e){e.call(this)},this)}this.trigger("ready")},1)};t.$=function e(t,i){return Ie(t,i||this.contentEl())};t.$$=function e(t,i){return Ae(t,i||this.contentEl())};t.hasClass=function e(t){return le(this.el_,t)};t.addClass=function e(t){ue(this.el_,t)};t.removeClass=function e(t){ce(this.el_,t)};t.toggleClass=function e(t,i){de(this.el_,t,i)};t.show=function e(){this.removeClass("vjs-hidden")};t.hide=function e(){this.addClass("vjs-hidden")};t.lockShowing=function e(){this.addClass("vjs-lock-showing")};t.unlockShowing=function e(){this.removeClass("vjs-lock-showing")};t.getAttribute=function e(t){return pe(this.el_,t)};t.setAttribute=function e(t,i){ve(this.el_,t,i)};t.removeAttribute=function e(t){me(this.el_,t)};t.width=function e(t,i){return this.dimension("width",t,i)};t.height=function e(t,i){return this.dimension("height",t,i)};t.dimensions=function e(t,i){this.width(t,true);this.height(i)};t.dimension=function e(t,i,r){if(i!==undefined){if(i===null||i!==i){i=0}if((""+i).indexOf("%")!==-1||(""+i).indexOf("px")!==-1){this.el_.style[t]=i}else if(i==="auto"){this.el_.style[t]=""}else{this.el_.style[t]=i+"px"}if(!r){this.trigger("componentresize")}return}if(!this.el_){return 0}var n=this.el_.style[t];var a=n.indexOf("px");if(a!==-1){return parseInt(n.slice(0,a),10)}return parseInt(this.el_["offset"+Tt(t)],10)};t.currentDimension=function e(t){var i=0;if(t!=="width"&&t!=="height"){throw new Error("currentDimension only accepts width or height value")}i=x(this.el_,t);i=parseFloat(i);if(i===0||isNaN(i)){var r="offset"+Tt(t);i=this.el_[r]}return i};t.currentDimensions=function e(){return{width:this.currentDimension("width"),height:this.currentDimension("height")}};t.currentWidth=function e(){return this.currentDimension("width")};t.currentHeight=function e(){return this.currentDimension("height")};t.focus=function e(){this.el_.focus()};t.blur=function e(){this.el_.blur()};t.handleKeyDown=function e(t){if(this.player_){t.stopPropagation();this.player_.handleKeyDown(t)}};t.handleKeyPress=function e(t){this.handleKeyDown(t)};t.emitTapEvents=function e(){var t=0;var i=null;var r=10;var n=200;var a;this.on("touchstart",function(e){if(e.touches.length===1){i={pageX:e.touches[0].pageX,pageY:e.touches[0].pageY};t=s.performance.now();a=true}});this.on("touchmove",function(e){if(e.touches.length>1){a=false}else if(i){var t=e.touches[0].pageX-i.pageX;var n=e.touches[0].pageY-i.pageY;var s=Math.sqrt(t*t+n*n);if(s>r){a=false}}});var o=function e(){a=false};this.on("touchleave",o);this.on("touchcancel",o);this.on("touchend",function(e){i=null;if(a===true){var r=s.performance.now()-t;if(r<n){e.preventDefault();this.trigger("tap")}}})};t.enableTouchActivity=function e(){if(!this.player()||!this.player().reportUserActivity){return}var t=it(this.player(),this.player().reportUserActivity);var i;this.on("touchstart",function(){t();this.clearInterval(i);i=this.setInterval(t,250)});var r=function e(r){t();this.clearInterval(i)};this.on("touchmove",t);this.on("touchend",r);this.on("touchcancel",r)};t.setTimeout=function e(t,i){var r=this;var n;t=it(this,t);this.clearTimersOnDispose_();n=s.setTimeout(function(){if(r.setTimeoutIds_.has(n)){r.setTimeoutIds_["delete"](n)}t()},i);this.setTimeoutIds_.add(n);return n};t.clearTimeout=function e(t){if(this.setTimeoutIds_.has(t)){this.setTimeoutIds_["delete"](t);s.clearTimeout(t)}return t};t.setInterval=function e(t,i){t=it(this,t);this.clearTimersOnDispose_();
1var r=s.setInterval(t,i);this.setIntervalIds_.add(r);return r};t.clearInterval=function e(t){if(this.setIntervalIds_.has(t)){this.setIntervalIds_["delete"](t);s.clearInterval(t)}return t};t.requestAnimationFrame=function e(t){var i=this;if(!this.supportsRaf_){return this.setTimeout(t,1e3/60)}this.clearTimersOnDispose_();var r;t=it(this,t);r=s.requestAnimationFrame(function(){if(i.rafIds_.has(r)){i.rafIds_["delete"](r)}t()});this.rafIds_.add(r);return r};t.requestNamedAnimationFrame=function e(t,i){var r=this;if(this.namedRafs_.has(t)){return}this.clearTimersOnDispose_();i=it(this,i);var n=this.requestAnimationFrame(function(){i();if(r.namedRafs_.has(t)){r.namedRafs_["delete"](t)}});this.namedRafs_.set(t,n);return t};t.cancelNamedAnimationFrame=function e(t){if(!this.namedRafs_.has(t)){return}this.cancelAnimationFrame(this.namedRafs_.get(t));this.namedRafs_["delete"](t)};t.cancelAnimationFrame=function e(t){if(!this.supportsRaf_){return this.clearTimeout(t)}if(this.rafIds_.has(t)){this.rafIds_["delete"](t);s.cancelAnimationFrame(t)}return t};t.clearTimersOnDispose_=function e(){var t=this;if(this.clearingTimersOnDispose_){return}this.clearingTimersOnDispose_=true;this.one("dispose",function(){[["namedRafs_","cancelNamedAnimationFrame"],["rafIds_","cancelAnimationFrame"],["setTimeoutIds_","clearTimeout"],["setIntervalIds_","clearInterval"]].forEach(function(e){var i=e[0],r=e[1];t[i].forEach(function(e,i){return t[r](i)})});t.clearingTimersOnDispose_=false})};e.registerComponent=function t(i,r){if(typeof i!=="string"||!i){throw new Error(\'Illegal component name, "\'+i+\'"; must be a non-empty string.\')}var n=e.getComponent("Tech");var a=n&&n.isTech(r);var s=e===r||e.prototype.isPrototypeOf(r.prototype);if(a||!s){var o;if(a){o="techs must be registered using Tech.registerTech()"}else{o="must be a Component subclass"}throw new Error(\'Illegal component, "\'+i+\'"; \'+o+".")}i=Tt(i);if(!e.components_){e.components_={}}var l=e.getComponent("Player");if(i==="Player"&&l&&l.players){var u=l.players;var c=Object.keys(u);if(u&&c.length>0&&c.map(function(e){return u[e]}).every(Boolean)){throw new Error("Can not register Player component after player has been created.")}}e.components_[i]=r;e.components_[bt(i)]=r;return r};e.getComponent=function t(i){if(!i||!e.components_){return}return e.components_[i]};return e}();It.prototype.supportsRaf_=typeof s.requestAnimationFrame==="function"&&typeof s.cancelAnimationFrame==="function";It.registerComponent("Component",It);function At(e){if(e===void 0){throw new ReferenceError("this hasn\'t been initialised - super() hasn\'t been called")}return e}var xt=At;var Pt=n(function(e){function t(i){"@babel/helpers - typeof";if(typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"){e.exports=t=function e(t){return typeof t}}else{e.exports=t=function e(t){return t&&typeof Symbol==="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t}}return t(i)}e.exports=t});var Ot=n(function(e){function t(i){e.exports=t=Object.setPrototypeOf?Object.getPrototypeOf:function e(t){return t.__proto__||Object.getPrototypeOf(t)};return t(i)}e.exports=t});function Lt(e,t){e.prototype=Object.create(t.prototype);e.prototype.constructor=e;e.__proto__=t}var Dt=Lt;function Rt(e,t,i){if(typeof t!=="number"||t<0||t>i){throw new Error("Failed to execute \'"+e+"\' on \'TimeRanges\': The index provided ("+t+") is non-numeric or out of bounds (0-"+i+").")}}function Nt(e,t,i,r){Rt(e,r,i.length-1);return i[r][t]}function Mt(e){if(e===undefined||e.length===0){return{length:0,start:function e(){throw new Error("This TimeRanges object is empty")},end:function e(){throw new Error("This TimeRanges object is empty")}}}return{length:e.length,start:Nt.bind(null,"start",0,e),end:Nt.bind(null,"end",1,e)}}function Ut(e,t){if(Array.isArray(e)){return Mt(e)}else if(e===undefined||t===undefined){return Mt()}return Mt([[e,t]])}function Bt(e,t){var i=0;var r;var n;if(!t){return 0}if(!e||!e.length){e=Ut(0,0)}for(var a=0;a<e.length;a++){r=e.start(a);n=e.end(a);if(n>t){n=t}i+=n-r}return i/t}function Ft(e){if(e instanceof Ft){return e}
1if(typeof e==="number"){this.code=e}else if(typeof e==="string"){this.message=e}else if(I(e)){if(typeof e.code==="number"){this.code=e.code}C(this,e)}if(!this.message){this.message=Ft.defaultMessages[this.code]||""}}Ft.prototype.code=0;Ft.prototype.message="";Ft.prototype.status=null;Ft.errorTypes=["MEDIA_ERR_CUSTOM","MEDIA_ERR_ABORTED","MEDIA_ERR_NETWORK","MEDIA_ERR_DECODE","MEDIA_ERR_SRC_NOT_SUPPORTED","MEDIA_ERR_ENCRYPTED"];Ft.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."};for(var Ht=0;Ht<Ft.errorTypes.length;Ht++){Ft[Ft.errorTypes[Ht]]=Ht;Ft.prototype[Ft.errorTypes[Ht]]=Ht}var Vt=qt;function qt(e,t){var i;var r=null;try{i=JSON.parse(e,t)}catch(e){r=e}return[r,i]}function zt(e){return e!==undefined&&e!==null&&typeof e.then==="function"}function Wt(e){if(zt(e)){e.then(null,function(e){})}}var Gt=function e(t){var i=["kind","label","language","id","inBandMetadataTrackDispatchType","mode","src"].reduce(function(e,i,r){if(t[i]){e[i]=t[i]}return e},{cues:t.cues&&Array.prototype.map.call(t.cues,function(e){return{startTime:e.startTime,endTime:e.endTime,text:e.text,id:e.id}})});return i};var Yt=function e(t){var i=t.$$("track");var r=Array.prototype.map.call(i,function(e){return e.track});var n=Array.prototype.map.call(i,function(e){var t=Gt(e.track);if(e.src){t.src=e.src}return t});return n.concat(Array.prototype.filter.call(t.textTracks(),function(e){return r.indexOf(e)===-1}).map(Gt))};var Kt=function e(t,i){t.forEach(function(e){var t=i.addRemoteTextTrack(e).track;if(!e.src&&e.cues){e.cues.forEach(function(e){return t.addCue(e)})}});return i.textTracks()};var Xt={textTracksToJson:Yt,jsonToTextTracks:Kt,trackToJson_:Gt};var Qt=n(function(e,t){function i(e){if(e&&"object"===typeof e){var t=e.which||e.keyCode||e.charCode;if(t)e=t}if("number"===typeof e)return s[e];var i=String(e);var a=r[i.toLowerCase()];if(a)return a;var a=n[i.toLowerCase()];if(a)return a;if(i.length===1)return i.charCodeAt(0);return undefined}i.isEventKey=function e(t,i){if(t&&"object"===typeof t){var a=t.which||t.keyCode||t.charCode;if(a===null||a===undefined){return false}if(typeof i==="string"){var s=r[i.toLowerCase()];if(s){return s===a}var s=n[i.toLowerCase()];if(s){return s===a}}else if(typeof i==="number"){return i===a}return false}};t=e.exports=i;var r=t.code=t.codes={backspace:8,tab:9,enter:13,shift:16,ctrl:17,alt:18,"pause/break":19,"caps lock":20,esc:27,space:32,"page up":33,"page down":34,end:35,home:36,left:37,up:38,right:39,down:40,insert:45,delete:46,command:91,"left command":91,"right command":93,"numpad *":106,"numpad +":107,"numpad -":109,"numpad .":110,"numpad /":111,"num lock":144,"scroll lock":145,"my computer":182,"my calculator":183,";":186,"=":187,",":188,"-":189,".":190,"/":191,"`":192,"[":219,"\\\\":220,"]":221,"\'":222};var n=t.aliases={windows:91,"\\u21e7":16,"\\u2325":18,"\\u2303":17,"\\u2318":91,ctl:17,control:17,option:18,pause:19,break:19,caps:20,return:13,escape:27,spc:32,spacebar:32,pgup:33,pgdn:34,ins:45,del:46,cmd:91};for(a=97;a<123;a++){r[String.fromCharCode(a)]=a-32}for(var a=48;a<58;a++){r[a-48]=a}for(a=1;a<13;a++){r["f"+a]=a+111}for(a=0;a<10;a++){r["numpad "+a]=a+96}var s=t.names=t.title={};for(a in r){s[r[a]]=a}for(var o in n){r[o]=n[o]}});var Jt=Qt.code;var Zt=Qt.codes;var $t=Qt.aliases;var ei=Qt.names;var ti=Qt.title;var ii="vjs-modal-dialog";var ri=function(e){Dt(t,e);function t(t,i){var r;r=e.call(this,t,i)||this;r.opened_=r.hasBeenOpened_=r.hasBeenFilled_=false;r.closeable(!r.options_.uncloseable);r.content(r.options_.content);r.contentEl_=ae("div",{className:ii+"-content"},{role:"document"});r.descEl_=ae("p",{className:ii+"-description vjs-control-text",id:r.el().getAttribute("aria-describedby")});se(r.descEl_,r.description());r.el_.appendChild(r.descEl_);r.el_.appendChild(r.contentEl_);return r}var i=t.prototype;i.createEl=function t(){return e.prototype.createEl.call(this,"div",{className:this.buildCSSClass(),tabIndex:-1},{"aria-describedby":this.id()+"_description","aria-hidden":"true","aria-label":this.label(),role:"dialog"})};i.dispose=function t(){this.contentEl_=null;this.descEl_=null;this.previouslyActiveEl_=null;e.prototype.dispose.call(this)};i.buildCSSClass=function t(){return ii+" vjs-hidden "+e.prototype.buildCSSClass.call(this)};i.label=function e(){return this.localize(this.options_.label||"Modal Window")};i.description=function e(){var t=this.options_.description||this.localize("This is a modal window.");
1if(this.closeable()){t+=" "+this.localize("This modal can be closed by pressing the Escape key or activating the close button.")}return t};i.open=function e(){if(!this.opened_){var t=this.player();this.trigger("beforemodalopen");this.opened_=true;if(this.options_.fillAlways||!this.hasBeenOpened_&&!this.hasBeenFilled_){this.fill()}this.wasPlaying_=!t.paused();if(this.options_.pauseOnOpen&&this.wasPlaying_){t.pause()}this.on("keydown",this.handleKeyDown);this.hadControls_=t.controls();t.controls(false);this.show();this.conditionalFocus_();this.el().setAttribute("aria-hidden","false");this.trigger("modalopen");this.hasBeenOpened_=true}};i.opened=function e(t){if(typeof t==="boolean"){this[t?"open":"close"]()}return this.opened_};i.close=function e(){if(!this.opened_){return}var t=this.player();this.trigger("beforemodalclose");this.opened_=false;if(this.wasPlaying_&&this.options_.pauseOnOpen){t.play()}this.off("keydown",this.handleKeyDown);if(this.hadControls_){t.controls(true)}this.hide();this.el().setAttribute("aria-hidden","true");this.trigger("modalclose");this.conditionalBlur_();if(this.options_.temporary){this.dispose()}};i.closeable=function e(t){if(typeof t==="boolean"){var e=this.closeable_=!!t;var i=this.getChild("closeButton");if(e&&!i){var r=this.contentEl_;this.contentEl_=this.el_;i=this.addChild("closeButton",{controlText:"Close Modal Dialog"});this.contentEl_=r;this.on(i,"close",this.close)}if(!e&&i){this.off(i,"close",this.close);this.removeChild(i);i.dispose()}}return this.closeable_};i.fill=function e(){this.fillWith(this.content())};i.fillWith=function e(t){var i=this.contentEl();var r=i.parentNode;var n=i.nextSibling;this.trigger("beforemodalfill");this.hasBeenFilled_=true;r.removeChild(i);this.empty();we(i,t);this.trigger("modalfill");if(n){r.insertBefore(i,n)}else{r.appendChild(i)}var a=this.getChild("closeButton");if(a){r.appendChild(a.el_)}};i.empty=function e(){this.trigger("beforemodalempty");ke(this.contentEl());this.trigger("modalempty")};i.content=function e(t){if(typeof t!=="undefined"){this.content_=t}return this.content_};i.conditionalFocus_=function e(){var t=c.activeElement;var i=this.player_.el_;this.previouslyActiveEl_=null;if(i.contains(t)||i===t){this.previouslyActiveEl_=t;this.focus()}};i.conditionalBlur_=function e(){if(this.previouslyActiveEl_){this.previouslyActiveEl_.focus();this.previouslyActiveEl_=null}};i.handleKeyDown=function e(t){t.stopPropagation();if(Qt.isEventKey(t,"Escape")&&this.closeable()){t.preventDefault();this.close();return}if(!Qt.isEventKey(t,"Tab")){return}var i=this.focusableEls_();var r=this.el_.querySelector(":focus");var n;for(var a=0;a<i.length;a++){if(r===i[a]){n=a;break}}if(c.activeElement===this.el_){n=0}if(t.shiftKey&&n===0){i[i.length-1].focus();t.preventDefault()}else if(!t.shiftKey&&n===i.length-1){i[0].focus();t.preventDefault()}};i.focusableEls_=function e(){var t=this.el_.querySelectorAll("*");return Array.prototype.filter.call(t,function(e){return(e instanceof s.HTMLAnchorElement||e instanceof s.HTMLAreaElement)&&e.hasAttribute("href")||(e instanceof s.HTMLInputElement||e instanceof s.HTMLSelectElement||e instanceof s.HTMLTextAreaElement||e instanceof s.HTMLButtonElement)&&!e.hasAttribute("disabled")||e instanceof s.HTMLIFrameElement||e instanceof s.HTMLObjectElement||e instanceof s.HTMLEmbedElement||e.hasAttribute("tabindex")&&e.getAttribute("tabindex")!==-1||e.hasAttribute("contenteditable")})};return t}(It);ri.prototype.options_={pauseOnOpen:true,temporary:true};It.registerComponent("ModalDialog",ri);var ni=function(e){Dt(t,e);function t(t){var i;if(t===void 0){t=[]}i=e.call(this)||this;i.tracks_=[];Object.defineProperty(xt(i),"length",{get:function e(){return this.tracks_.length}});for(var r=0;r<t.length;r++){i.addTrack(t[r])}return i}var i=t.prototype;i.addTrack=function e(t){var i=this;var r=this.tracks_.length;if(!(""+r'),t[1].s.push('.call(this)}else{this.setTimeout(t,1)}};t.triggerReady=function e(){this.isReady_=true;this.setTimeout(function(){var e=this.readyQueue_;this.readyQueue_=[];if(e&&e.length>0){e.forEach(function(e){e.call(this)},this)}this.trigger("ready")},1)};t.$=function e(t,i){return Ie(t,i||this.contentEl())};t.$$=function e(t,i){return Ae(t,i||this.contentEl())};t.hasClass=function e(t){return le(this.el_,t)};t.addClass=function e(t){ue(this.el_,t)};t.removeClass=function e(t){ce(this.el_,t)};t.toggleClass=function e(t,i){de(this.el_,t,i)};t.show=function e(){this.removeClass("vjs-hidden")};t.hide=function e(){this.addClass("vjs-hidden")};
1t.lockShowing=function e(){this.addClass("vjs-lock-showing")};t.unlockShowing=function e(){this.removeClass("vjs-lock-showing")};t.getAttribute=function e(t){return pe(this.el_,t)};t.setAttribute=function e(t,i){ve(this.el_,t,i)};t.removeAttribute=function e(t){me(this.el_,t)};t.width=function e(t,i){return this.dimension("width",t,i)};t.height=function e(t,i){return this.dimension("height",t,i)};t.dimensions=function e(t,i){this.width(t,true);this.height(i)};t.dimension=function e(t,i,r){if(i!==undefined){if(i===null||i!==i){i=0}if((""+i).indexOf("%")!==-1||(""+i).indexOf("px")!==-1){this.el_.style[t]=i}else if(i==="auto"){this.el_.style[t]=""}else{this.el_.style[t]=i+"px"}if(!r){this.trigger("componentresize")}return}if(!this.el_){return 0}var n=this.el_.style[t];var a=n.indexOf("px");if(a!==-1){return parseInt(n.slice(0,a),10)}return parseInt(this.el_["offset"+Tt(t)],10)};t.currentDimension=function e(t){var i=0;if(t!=="width"&&t!=="height"){throw new Error("currentDimension only accepts width or height value")}i=x(this.el_,t);i=parseFloat(i);if(i===0||isNaN(i)){var r="offset"+Tt(t);i=this.el_[r]}return i};t.currentDimensions=function e(){return{width:this.currentDimension("width"),height:this.currentDimension("height")}};t.currentWidth=function e(){return this.currentDimension("width")};t.currentHeight=function e(){return this.currentDimension("height")};t.focus=function e(){this.el_.focus()};t.blur=function e(){this.el_.blur()};t.handleKeyDown=function e(t){if(this.player_){t.stopPropagation();this.player_.handleKeyDown(t)}};t.handleKeyPress=function e(t){this.handleKeyDown(t)};t.emitTapEvents=function e(){var t=0;var i=null;var r=10;var n=200;var a;this.on("touchstart",function(e){if(e.touches.length===1){i={pageX:e.touches[0].pageX,pageY:e.touches[0].pageY};t=s.performance.now();a=true}});this.on("touchmove",function(e){if(e.touches.length>1){a=false}else if(i){var t=e.touches[0].pageX-i.pageX;var n=e.touches[0].pageY-i.pageY;var s=Math.sqrt(t*t+n*n);if(s>r){a=false}}});var o=function e(){a=false};this.on("touchleave",o);this.on("touchcancel",o);this.on("touchend",function(e){i=null;if(a===true){var r=s.performance.now()-t;if(r<n){e.preventDefault();this.trigger("tap")}}})};t.enableTouchActivity=function e(){if(!this.player()||!this.player().reportUserActivity){return}var t=it(this.player(),this.player().reportUserActivity);var i;this.on("touchstart",function(){t();this.clearInterval(i);i=this.setInterval(t,250)});var r=function e(r){t();this.clearInterval(i)};this.on("touchmove",t);this.on("touchend",r);this.on("touchcancel",r)};t.setTimeout=function e(t,i){var r=this;var n;t=it(this,t);this.clearTimersOnDispose_();n=s.setTimeout(function(){if(r.setTimeoutIds_.has(n)){r.setTimeoutIds_["delete"](n)}t()},i);this.setTimeoutIds_.add(n);return n};t.clearTimeout=function e(t){if(this.setTimeoutIds_.has(t)){this.setTimeoutIds_["delete"](t);s.clearTimeout(t)}return t};t.setInterval=function e(t,i){t=it(this,t);this.clearTimersOnDispose_();var r=s.setInterval(t,i);this.setIntervalIds_.add(r);return r};t.clearInterval=function e(t){if(this.setIntervalIds_.has(t)){this.setIntervalIds_["delete"](t);s.clearInterval(t)}return t};t.requestAnimationFrame=function e(t){var i=this;if(!this.supportsRaf_){return this.setTimeout(t,1e3/60)}this.clearTimersOnDispose_();var r;t=it(this,t);r=s.requestAnimationFrame(function(){if(i.rafIds_.has(r)){i.rafIds_["delete"](r)}t()});this.rafIds_.add(r);return r};t.requestNamedAnimationFrame=function e(t,i){var r=this;if(this.namedRafs_.has(t)){return}this.clearTimersOnDispose_();i=it(this,i);var n=this.requestAnimationFrame(function(){i();if(r.namedRafs_.has(t)){r.namedRafs_["delete"](t)}});this.namedRafs_.set(t,n);return t};t.cancelNamedAnimationFrame=function e(t){if(!this.namedRafs_.has(t)){return}this.cancelAnimationFrame(this.namedRafs_.get(t));this.namedRafs_["delete"](t)};t.cancelAnimationFrame=function e(t){if(!this.supportsRaf_){return this.clearTimeout(t)}if(this.rafIds_.has(t)){this.rafIds_["delete"](t);s.cancelAnimationFrame(t)}return t};t.clearTimersOnDispose_=function e(){var t=this;if(this.clearingTimersOnDispose_){return}this.clearingTimersOnDispose_=true;this.one("dispose",function(){[["namedRafs_","cancelNamedAnimationFrame"],["rafIds_","cancelAnimationFrame"],["setTimeoutIds_","clearTimeout"],["setIntervalIds_","clearInterval"]].forEac
1h(function(e){var i=e[0],r=e[1];t[i].forEach(function(e,i){return t[r](i)})});t.clearingTimersOnDispose_=false})};e.registerComponent=function t(i,r){if(typeof i!=="string"||!i){throw new Error(\'Illegal component name, "\'+i+\'"; must be a non-empty string.\')}var n=e.getComponent("Tech");var a=n&&n.isTech(r);var s=e===r||e.prototype.isPrototypeOf(r.prototype);if(a||!s){var o;if(a){o="techs must be registered using Tech.registerTech()"}else{o="must be a Component subclass"}throw new Error(\'Illegal component, "\'+i+\'"; \'+o+".")}i=Tt(i);if(!e.components_){e.components_={}}var l=e.getComponent("Player");if(i==="Player"&&l&&l.players){var u=l.players;var c=Object.keys(u);if(u&&c.length>0&&c.map(function(e){return u[e]}).every(Boolean)){throw new Error("Can not register Player component after player has been created.")}}e.components_[i]=r;e.components_[bt(i)]=r;return r};e.getComponent=function t(i){if(!i||!e.components_){return}return e.components_[i]};return e}();It.prototype.supportsRaf_=typeof s.requestAnimationFrame==="function"&&typeof s.cancelAnimationFrame==="function";It.registerComponent("Component",It);function At(e){if(e===void 0){throw new ReferenceError("this hasn\'t been initialised - super() hasn\'t been called")}return e}var xt=At;var Pt=n(function(e){function t(i){"@babel/helpers - typeof";if(typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"){e.exports=t=function e(t){return typeof t}}else{e.exports=t=function e(t){return t&&typeof Symbol==="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t}}return t(i)}e.exports=t});var Ot=n(function(e){function t(i){e.exports=t=Object.setPrototypeOf?Object.getPrototypeOf:function e(t){return t.__proto__||Object.getPrototypeOf(t)};return t(i)}e.exports=t});function Lt(e,t){e.prototype=Object.create(t.prototype);e.prototype.constructor=e;e.__proto__=t}var Dt=Lt;function Rt(e,t,i){if(typeof t!=="number"||t<0||t>i){throw new Error("Failed to execute \'"+e+"\' on \'TimeRanges\': The index provided ("+t+") is non-numeric or out of bounds (0-"+i+").")}}function Nt(e,t,i,r){Rt(e,r,i.length-1);return i[r][t]}function Mt(e){if(e===undefined||e.length===0){return{length:0,start:function e(){throw new Error("This TimeRanges object is empty")},end:function e(){throw new Error("This TimeRanges object is empty")}}}return{length:e.length,start:Nt.bind(null,"start",0,e),end:Nt.bind(null,"end",1,e)}}function Ut(e,t){if(Array.isArray(e)){return Mt(e)}else if(e===undefined||t===undefined){return Mt()}return Mt([[e,t]])}function Bt(e,t){var i=0;var r;var n;if(!t){return 0}if(!e||!e.length){e=Ut(0,0)}for(var a=0;a<e.length;a++){r=e.start(a);n=e.end(a);if(n>t){n=t}i+=n-r}return i/t}function Ft(e){if(e instanceof Ft){return e}if(typeof e==="number"){this.code=e}else if(typeof e==="string"){this.message=e}else if(I(e)){if(typeof e.code==="number"){this.code=e.code}C(this,e)}if(!this.message){this.message=Ft.defaultMessages[this.code]||""}}Ft.prototype.code=0;Ft.prototype.message="";Ft.prototype.status=null;Ft.errorTypes=["MEDIA_ERR_CUSTOM","MEDIA_ERR_ABORTED","MEDIA_ERR_NETWORK","MEDIA_ERR_DECODE","MEDIA_ERR_SRC_NOT_SUPPORTED","MEDIA_ERR_ENCRYPTED"];Ft.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."};for(var Ht=0;Ht<Ft.errorTypes.length;Ht++){Ft[Ft.errorTypes[Ht]]=Ht;Ft.prototype[Ft.errorTypes[Ht]]=Ht}var Vt=qt;function qt(e,t){var i;var r=null;try{i=JSON.parse(e,t)}catch(e){r=e}return[r,i]}function zt(e){return e!==undefined&&e!==null&&typeof e.then==="function"}function Wt(e){if(zt(e)){e.then(null,function(e){})}}var Gt=function e(t){var i=["kind","label","language","id","inBandMetadataTrackDispatchType","mode","src"].reduce(function(e,i,r){if(t[i]){e[i]=t[i]}return e},{cues:t.cues&&Array.prototype.map.call(t.cues,function(e){return{startTime:e.startTime,endTime:e.endTime,text:e.text,id:e.id}})});return i};var Yt=function e(t){var i=t.$$("track");var r=Array.prototype.map.call(i,function(e){return e.track});var n=Array.prototype.map.call(i,function(e){var t=Gt(e.track);if(e.src){t.src=e.src}return t});return n.concat(Array.prototype.filter.call(t.textTracks(),function(e){return r.indexOf(e)===-1}).map(Gt))};var Kt=function e(t,i){t.forEach(function(e){var t=i.addRemoteTextTrack(e).track;
1if(!e.src&&e.cues){e.cues.forEach(function(e){return t.addCue(e)})}});return i.textTracks()};var Xt={textTracksToJson:Yt,jsonToTextTracks:Kt,trackToJson_:Gt};var Qt=n(function(e,t){function i(e){if(e&&"object"===typeof e){var t=e.which||e.keyCode||e.charCode;if(t)e=t}if("number"===typeof e)return s[e];var i=String(e);var a=r[i.toLowerCase()];if(a)return a;var a=n[i.toLowerCase()];if(a)return a;if(i.length===1)return i.charCodeAt(0);return undefined}i.isEventKey=function e(t,i){if(t&&"object"===typeof t){var a=t.which||t.keyCode||t.charCode;if(a===null||a===undefined){return false}if(typeof i==="string"){var s=r[i.toLowerCase()];if(s){return s===a}var s=n[i.toLowerCase()];if(s){return s===a}}else if(typeof i==="number"){return i===a}return false}};t=e.exports=i;var r=t.code=t.codes={backspace:8,tab:9,enter:13,shift:16,ctrl:17,alt:18,"pause/break":19,"caps lock":20,esc:27,space:32,"page up":33,"page down":34,end:35,home:36,left:37,up:38,right:39,down:40,insert:45,delete:46,command:91,"left command":91,"right command":93,"numpad *":106,"numpad +":107,"numpad -":109,"numpad .":110,"numpad /":111,"num lock":144,"scroll lock":145,"my computer":182,"my calculator":183,";":186,"=":187,",":188,"-":189,".":190,"/":191,"`":192,"[":219,"\\\\":220,"]":221,"\'":222};var n=t.aliases={windows:91,"\\u21e7":16,"\\u2325":18,"\\u2303":17,"\\u2318":91,ctl:17,control:17,option:18,pause:19,break:19,caps:20,return:13,escape:27,spc:32,spacebar:32,pgup:33,pgdn:34,ins:45,del:46,cmd:91};for(a=97;a<123;a++){r[String.fromCharCode(a)]=a-32}for(var a=48;a<58;a++){r[a-48]=a}for(a=1;a<13;a++){r["f"+a]=a+111}for(a=0;a<10;a++){r["numpad "+a]=a+96}var s=t.names=t.title={};for(a in r){s[r[a]]=a}for(var o in n){r[o]=n[o]}});var Jt=Qt.code;var Zt=Qt.codes;var $t=Qt.aliases;var ei=Qt.names;var ti=Qt.title;var ii="vjs-modal-dialog";var ri=function(e){Dt(t,e);function t(t,i){var r;r=e.call(this,t,i)||this;r.opened_=r.hasBeenOpened_=r.hasBeenFilled_=false;r.closeable(!r.options_.uncloseable);r.content(r.options_.content);r.contentEl_=ae("div",{className:ii+"-content"},{role:"document"});r.descEl_=ae("p",{className:ii+"-description vjs-control-text",id:r.el().getAttribute("aria-describedby")});se(r.descEl_,r.description());r.el_.appendChild(r.descEl_);r.el_.appendChild(r.contentEl_);return r}var i=t.prototype;i.createEl=function t(){return e.prototype.createEl.call(this,"div",{className:this.buildCSSClass(),tabIndex:-1},{"aria-describedby":this.id()+"_description","aria-hidden":"true","aria-label":this.label(),role:"dialog"})};i.dispose=function t(){this.contentEl_=null;this.descEl_=null;this.previouslyActiveEl_=null;e.prototype.dispose.call(this)};i.buildCSSClass=function t(){return ii+" vjs-hidden "+e.prototype.buildCSSClass.call(this)};i.label=function e(){return this.localize(this.options_.label||"Modal Window")};i.description=function e(){var t=this.options_.description||this.localize("This is a modal window.");if(this.closeable()){t+=" "+this.localize("This modal can be closed by pressing the Escape key or activating the close button.")}return t};i.open=function e(){if(!this.opened_){var t=this.player();this.trigger("beforemodalopen");this.opened_=true;if(this.options_.fillAlways||!this.hasBeenOpened_&&!this.hasBeenFilled_){this.fill()}this.wasPlaying_=!t.paused();if(this.options_.pauseOnOpen&&this.wasPlaying_){t.pause()}this.on("keydown",this.handleKeyDown);this.hadControls_=t.controls();t.controls(false);this.show();this.conditionalFocus_();this.el().setAttribute("aria-hidden","false");this.trigger("modalopen");this.hasBeenOpened_=true}};i.opened=function e(t){if(typeof t==="boolean"){this[t?"open":"close"]()}return this.opened_};i.close=function e(){if(!this.opened_){return}var t=this.player();this.trigger("beforemodalclose");this.opened_=false;if(this.wasPlaying_&&this.options_.pauseOnOpen){t.play()}this.off("keydown",this.handleKeyDown);if(this.hadControls_){t.controls(true)}this.hide();this.el().setAttribute("aria-hidden","true");this.trigger("modalclose");this.conditionalBlur_();if(this.options_.temporary){this.dispose()}};i.closeable=function e(t){if(typeof t==="boolean"){var e=this.closeable_=!!t;var i=this.getChild("closeButton");if(e&&!i){var r=this.contentEl_;this.contentEl_=this.el_;
1i=this.addChild("closeButton",{controlText:"Close Modal Dialog"});this.contentEl_=r;this.on(i,"close",this.close)}if(!e&&i){this.off(i,"close",this.close);this.removeChild(i);i.dispose()}}return this.closeable_};i.fill=function e(){this.fillWith(this.content())};i.fillWith=function e(t){var i=this.contentEl();var r=i.parentNode;var n=i.nextSibling;this.trigger("beforemodalfill");this.hasBeenFilled_=true;r.removeChild(i);this.empty();we(i,t);this.trigger("modalfill");if(n){r.insertBefore(i,n)}else{r.appendChild(i)}var a=this.getChild("closeButton");if(a){r.appendChild(a.el_)}};i.empty=function e(){this.trigger("beforemodalempty");ke(this.contentEl());this.trigger("modalempty")};i.content=function e(t){if(typeof t!=="undefined"){this.content_=t}return this.content_};i.conditionalFocus_=function e(){var t=c.activeElement;var i=this.player_.el_;this.previouslyActiveEl_=null;if(i.contains(t)||i===t){this.previouslyActiveEl_=t;this.focus()}};i.conditionalBlur_=function e(){if(this.previouslyActiveEl_){this.previouslyActiveEl_.focus();this.previouslyActiveEl_=null}};i.handleKeyDown=function e(t){t.stopPropagation();if(Qt.isEventKey(t,"Escape")&&this.closeable()){t.preventDefault();this.close();return}if(!Qt.isEventKey(t,"Tab")){return}var i=this.focusableEls_();var r=this.el_.querySelector(":focus");var n;for(var a=0;a<i.length;a++){if(r===i[a]){n=a;break}}if(c.activeElement===this.el_){n=0}if(t.shiftKey&&n===0){i[i.length-1].focus();t.preventDefault()}else if(!t.shiftKey&&n===i.length-1){i[0].focus();t.preventDefault()}};i.focusableEls_=function e(){var t=this.el_.querySelectorAll("*");return Array.prototype.filter.call(t,function(e){return(e instanceof s.HTMLAnchorElement||e instanceof s.HTMLAreaElement)&&e.hasAttribute("href")||(e instanceof s.HTMLInputElement||e instanceof s.HTMLSelectElement||e instanceof s.HTMLTextAreaElement||e instanceof s.HTMLButtonElement)&&!e.hasAttribute("disabled")||e instanceof s.HTMLIFrameElement||e instanceof s.HTMLObjectElement||e instanceof s.HTMLEmbedElement||e.hasAttribute("tabindex")&&e.getAttribute("tabindex")!==-1||e.hasAttribute("contenteditable")})};return t}(It);ri.prototype.options_={pauseOnOpen:true,temporary:true};It.registerComponent("ModalDialog",ri);var ni=function(e){Dt(t,e);function t(t){var i;if(t===void 0){t=[]}i=e.call(this)||this;i.tracks_=[];Object.defineProperty(xt(i),"length",{get:function e(){return this.tracks_.length}});for(var r=0;r<t.length;r++){i.addTrack(t[r])}return i}var i=t.prototype;i.addTrack=function e(t){var i=this;var r=this.tracks_.length;if(!(""+r'),t[0].s.push(' in this)){Object.defineProperty(this,r,{get:function e(){return this.tracks_[r]}})}if(this.tracks_.indexOf(t)===-1){this.tracks_.push(t);this.trigger({track:t,type:"addtrack",target:this})}t.labelchange_=function(){i.trigger({track:t,type:"labelchange",target:i})};if(lt(t)){t.addEventListener("labelchange",t.labelchange_)}};i.removeTrack=function e(t){var i;for(var r=0,n=this.length;r<n;r++){if(this[r]===t){i=this[r];if(i.off){i.off()}this.tracks_.splice(r,1);break}}if(!i){return}this.trigger({track:i,type:"removetrack",target:this})};i.getTrackById=function e(t){var i=null;for(var r=0,n=this.length;r<n;r++){var a=this[r];if(a.id===t){i=a;break}}return i};return t}(at);ni.prototype.allowedEvents_={change:"change",addtrack:"addtrack",removetrack:"removetrack",labelchange:"labelchange"};for(var ai in ni.prototype.allowedEvents_){ni.prototype["on"+ai]=null}var si=function e(t,i){for(var r=0;r<t.length;r++){if(!Object.keys(t[r]).length||i.id===t[r].id){continue}t[r].enabled=false}};var oi=function(e){Dt(t,e);function t(t){var i;if(t===void 0){t=[]}for(var r=t.length-1;r>=0;r--){if(t[r].enabled){si(t,t[r]);break}}i=e.call(this,t)||this;i.changing_=false;return i}var i=t.prototype;i.addTrack=function t(i){var r=this;if(i.enabled){si(this,i)}e.prototype.addTrack.call(this,i);if(!i.addEventListener){return}i.enabledChange_=function(){if(r.changing_){return}r.changing_=true;si(r,i);r.changing_=false;r.trigger("change")};i.addEventListener("enabledchange",i.enabledChange_)};i.removeTrack=function t(i){e.prototype.removeTrack.call(this,i);if(i.removeEventListener&&i.enabledChange_){i.removeEventListener("enabledchange",i.enabledChange_);i.enabledChange_=null}};return t}(ni);var li=function e(t,i){for(var r=0;r<t.length;r++){if(!Object.keys(t[r]).length||i.id===t[r].id){continue}t[r].selected=false}};var ui=function(e){Dt(t,e);function t(t){var i;if(t===void 0){t=[]}for(var r=t.length-1;r>=0;r--){if(t[r].selected){li(t,t[r]);break}}i=e.call(this,t)||this;i.changing_=false;Object.defineProperty(xt(i),"selectedIndex",{get:function e(){for(var t=0;t<this.length;t++){if(this[t].selected){return t}}return-1},set:function e(){}});return i}var i=t.prototype;i.addTrack=function t(i){var r=this;if(i.selected){li(this,i)}e.prototype.addTrack.call(this,i);if(!i.addEventListener){return}i.selectedChange_=function(){if(r.changing_){return}r.changing_=true;li(r,i);r.changing_=false;r.trigger("change")};i.addEventListener("selectedchange",i.selectedChange_)};i.removeTrack=function t(i){e.prototype.removeTrack.call(this,i);if(i.removeEventListener&&i.selectedChange_){i.removeEventListener("selectedchange",i.selectedChange_);i.selectedChange_=null}};return t}(ni);var ci=function(e){Dt(t,e);function t(){return e.apply(this,arguments)||this}var i=t.prototype;i.addTrack=function t(i){var r=this;e.prototype.addTrack.call(this,i);if(!this.queueChange_){this.queueChange_=function(){return r.queueTrigger("change")}}if(!this.triggerSelectedlanguagechange){this.triggerSelectedlanguagechange_=function(){return r.trigger("selectedlanguagechange")}}i.addEventListener("modechange",this.queueChange_);var n=["metadata","chapters"];if(n.indexOf(i.kind)===-1){i.addEventListener("modechange",this.triggerSelectedlanguagechange_)}};i.removeTrack=function t(i){e.prototype.removeTrack.call(this,i);if(i.removeEventListener){if(this.queueChange_){i.removeEventListener("modechange",this.queueChange_)}if(this.selectedlanguagechange_){i.removeEventListener("modechange",this.triggerSelectedlanguagechange_)}}};return t}(ni);var di=function(){function e(e){if(e===void 0){e=[]}this.trackElements_=[];Object.defineProperty(this,"length",{get:function e(){return this.trackElements_.length}});for(var t=0,i=e.length;t<i;t++){this.addTrackElement_(e[t])}}var t=e.prototype;t.addTrackElement_=function e(t){var i=this.trackElements_.length;if(!(""+i in this)){Object.defineProperty(this,i,{get:function e(){return this.trackElements_[i]}})}
1if(this.trackElements_.indexOf(t)===-1){this.trackElements_.push(t)}};t.getTrackElementByTrack_=function e(t){var i;for(var r=0,n=this.trackElements_.length;r<n;r++){if(t===this.trackElements_[r].track){i=this.trackElements_[r];break}}return i};t.removeTrackElement_=function e(t){for(var i=0,r=this.trackElements_.length;i<r;i++){if(t===this.trackElements_[i]){if(this.trackElements_[i].track&&typeof this.trackElements_[i].track.off==="function"){this.trackElements_[i].track.off()}if(typeof this.trackElements_[i].off==="function"){this.trackElements_[i].off()}this.trackElements_.splice(i,1);break}}};return e}();var fi=function(){function e(t){e.prototype.setCues_.call(this,t);Object.defineProperty(this,"length",{get:function e(){return this.length_}})}var t=e.prototype;t.setCues_=function e(t){var i=this.length||0;var r=0;var n=t.length;this.cues_=t;this.length_=t.length;var a=function e(t){if(!(""+t in this)){Object.defineProperty(this,""+t,{get:function e(){return this.cues_[t]}})}};if(i<n){r=i;for(;r<n;r++){a.call(this,r)}}};t.getCueById=function e(t){var i=null;for(var r=0,n=this.length;r<n;r++){var a=this[r];if(a.id===t){i=a;break}}return i};return e}();var hi={alternative:"alternative",captions:"captions",main:"main",sign:"sign",subtitles:"subtitles",commentary:"commentary"};var pi={alternative:"alternative",descriptions:"descriptions",main:"main","main-desc":"main-desc",translation:"translation",commentary:"commentary"};var vi={subtitles:"subtitles",captions:"captions",descriptions:"descriptions",chapters:"chapters",metadata:"metadata"};var mi={disabled:"disabled",hidden:"hidden",showing:"showing"};var gi=function(e){Dt(t,e);function t(t){var i;if(t===void 0){t={}}i=e.call(this)||this;var r={id:t.id||"vjs_track_"+Fe(),kind:t.kind||"",language:t.language||""};var n=t.label||"";var a=function e(t){Object.defineProperty(xt(i),t,{get:function e(){return r[t]},set:function e(){}})};for(var s in r){a(s)}Object.defineProperty(xt(i),"label",{get:function e(){return n},set:function e(t){if(t!==n){n=t;this.trigger("labelchange")}}});return i}return t}(at);var yi=function e(t){var i=["protocol","hostname","port","pathname","search","hash","host"];var r=c.createElement("a");r.href=t;var n=r.host===""&&r.protocol!=="file:";var a;if(n){a=c.createElement("div");a.innerHTML=\'<a href="\'+t+\'"></a>\';r=a.firstChild;a.setAttribute("style","display:none; position:absolute;");c.body.appendChild(a)}var o={};for(var l=0;l<i.length;l++){o[i[l]]=r[i[l]]}if(o.protocol==="http:"){o.host=o.host.replace(/:80$/,"")}if(o.protocol==="https:"){o.host=o.host.replace(/:443$/,"")}if(!o.protocol){o.protocol=s.location.protocol}if(n){c.body.removeChild(a)}return o};var _i=function e(t){if(!t.match(/^https?:\\/\\//)){var i=c.createElement("div");i.innerHTML=\'<a href="\'+t+\'">x</a>\';t=i.firstChild.href}return t};var bi=function e(t){if(typeof t==="string"){var i=/^(\\/?)([\\s\\S]*?)((?:\\.{1,2}|[^\\/]+?)(\\.([^\\.\\/\\?]+)))(?:[\\/]*|[\\?].*)$/;var r=i.exec(t);if(r){return r.pop().toLowerCase()}}return""};var Ti=function e(t,i){if(i===void 0){i=s.location}var r=yi(t);var n=r.protocol===":"?i.protocol:r.protocol;var a=n+r.host!==i.protocol+i.host;return a};var Si=Object.freeze({__proto__:null,parseUrl:yi,getAbsoluteURL:_i,getFileExtension:bi,isCrossOrigin:Ti});var ki;if(typeof e!=="undefined"){ki=e}else if(typeof r!=="undefined"){ki=r}else if(typeof self!=="undefined"){ki=self}else{ki={}}var Ei=ki;var ji=Ci;var wi=Object.prototype.toString;function Ci(t){var i=wi.call(t);return i==="[object Function]"||typeof t==="function"&&i!=="[object RegExp]"||typeof e!=="undefined"&&(t===e.setTimeout||t===e.alert||t===e.confirm||t===e.prompt)}var Ii=function e(t){var i={};if(!t){return i}t.trim().split("\\n").forEach(function(e){var t=e.indexOf(":");var r=e.slice(0,t).trim().toLowerCase();var n=e.slice(t+1).trim();if(typeof i[r]==="undefined"){i[r]=n}else if(Array.isArray(i[r])){i[r].push(n)}else{i[r]=[i[r],n]}});return i};var Ai=Di;var xi=Di;Di.XMLHttpRequest=Ei.XMLHttpRequest||Mi;Di.XDomainRequest="withCredentials"in new Di.XMLHttpRequest?Di.XMLHttpRequest:Ei.XDomainRequest;Pi(["get","put","post","patch","head","delete"],function(e){Di[e==="delete"?"del":e]=function(t,i,r){i=Li(t,i,r);i.method=e.toUpperCase();return Ri(i)}});function Pi(e,t){for(var i=0;i<e.length;i++){t(e[i])}}function Oi(e){for(var t in e){if(e.hasOwnProperty(t))return false}return true}function Li(e,t,i){var r=e;if(ji(t)){i=t;if(typeof e==="string"){r={uri:e}}}else{r=S({},t,{uri:e})}r.callback=i;return r}function Di(e,t,i){t=Li(e,t,i);return Ri(t)}function Ri(e){if(typeof e.callback==="undefined"){throw new Error("callback argument missing")}var t=false;var i=function i(r,n,a){if(!t){t=true;e.callback(r,n,a)}};function r(){if(o.readyState===4){setTimeout(s,0)}}function n(){var e=undefined;if(o.response){e=o.response}else{e=o.responseText||Ni(o)}if(v){try{e=JSON.parse(e)}catch(e){}}return e}function a(e){clearTimeout(m);if(!(e instanceof Error)){e=new Error(""+(e||"Unknown XMLHttpRequest Error"))}e.statusCode=0;return i(e,g)}function s(){if(u)return;var t;clearTimeout(m);if(e.useXDR&&o.status===undefined){t=200}else{t=o.status===1223?204:o.status}
1var r=g;var a=null;if(t!==0){r={body:n(),statusCode:t,method:d,headers:{},url:c,rawRequest:o};if(o.getAllResponseHeaders){r.headers=Ii(o.getAllResponseHeaders())}}else{a=new Error("Internal XMLHttpRequest Error")}return i(a,r,r.body)}var o=e.xhr||null;if(!o){if(e.cors||e.useXDR){o=new Di.XDomainRequest}else{o=new Di.XMLHttpRequest}}var l;var u;var c=o.url=e.uri||e.url;var d=o.method=e.method||"GET";var f=e.body||e.data;var h=o.headers=e.headers||{};var p=!!e.sync;var v=false;var m;var g={body:undefined,headers:{},statusCode:0,method:d,url:c,rawRequest:o};if("json"in e&&e.json!==false){v=true;h["accept"]||h["Accept"]||(h["Accept"]="application/json");if(d!=="GET"&&d!=="HEAD"){h["content-type"]||h["Content-Type"]||(h["Content-Type"]="application/json");f=JSON.stringify(e.json===true?f:e.json)}}o.onreadystatechange=r;o.onload=s;o.onerror=a;o.onprogress=function(){};o.onabort=function(){u=true};o.ontimeout=a;o.open(d,c,!p,e.username,e.password);if(!p){o.withCredentials=!!e.withCredentials}if(!p&&e.timeout>0){m=setTimeout(function(){if(u)return;u=true;o.abort("timeout");var e=new Error("XMLHttpRequest timeout");e.code="ETIMEDOUT";a(e)},e.timeout)}if(o.setRequestHeader){for(l in h){if(h.hasOwnProperty(l)){o.setRequestHeader(l,h[l])}}}else if(e.headers&&!Oi(e.headers)){throw new Error("Headers cannot be set on an XDomainRequest object")}if("responseType"in e){o.responseType=e.responseType}if("beforeSend"in e&&typeof e.beforeSend==="function"){e.beforeSend(o)}o.send(f||null);return o}function Ni(e){try{if(e.responseType==="document"){return e.responseXML}var t=e.responseXML&&e.responseXML.documentElement.nodeName==="parsererror";if(e.responseType===""&&!t){return e.responseXML}}catch(e){}return null}function Mi(){}Ai["default"]=xi;var Ui=function e(t,i){var r=new s.WebVTT.Parser(s,s.vttjs,s.WebVTT.StringDecoder());var n=[];r.oncue=function(e){i.addCue(e)};r.onparsingerror=function(e){n.push(e)};r.onflush=function(){i.trigger({type:"loadeddata",target:i})};r.parse(t);if(n.length>0){if(s.console&&s.console.groupCollapsed){s.console.groupCollapsed("Text Track parsing errors for "+i.src)}n.forEach(function(e){return b.error(e)});if(s.console&&s.console.groupEnd){s.console.groupEnd()}}r.flush()};var Bi=function e(t,i){var r={uri:t};var n=Ti(t);if(n){r.cors=n}var a=i.tech_.crossOrigin()==="use-credentials";if(a){r.withCredentials=a}Ai(r,it(this,function(e,t,r){if(e){return b.error(e,t)}i.loaded_=true;if(typeof s.WebVTT!=="function"){if(i.tech_){i.tech_.any(["vttjsloaded","vttjserror"],function(e){if(e.type==="vttjserror"){b.error("vttjs failed to load, stopping trying to process "+i.src);return}return Ui(r,i)})}}else{Ui(r,i)}}))};var Fi=function(e){Dt(t,e);function t(t){var i;if(t===void 0){t={}}if(!t.tech){throw new Error("A tech was not provided.")}var r=kt(t,{kind:vi[t.kind]||"subtitles",language:t.language||t.srclang||""});var n=mi[r.mode]||"disabled";var a=r["default"];if(r.kind==="metadata"||r.kind==="chapters"){n="hidden"}i=e.call(this,r)||this;i.tech_=r.tech;i.cues_=[];i.activeCues_=[];i.preload_=i.tech_.preloadTextTracks!==false;var s=new fi(i.cues_);var o=new fi(i.activeCues_);var l=false;var u=it(xt(i),function(){if(!this.tech_.isReady_||this.tech_.isDisposed()){return}this.activeCues=this.activeCues;if(l){this.trigger("cuechange");l=false}});var c=function e(){i.tech_.off("timeupdate",u)};i.tech_.one("dispose",c);if(n!=="disabled"){i.tech_.on("timeupdate",u)}Object.defineProperties(xt(i),{default:{get:function e(){return a}
1,set:function e(){}},mode:{get:function e(){return n},set:function e(t){if(!mi[t]){return}if(n===t){return}n=t;if(!this.preload_&&n!=="disabled"&&this.cues.length===0){Bi(this.src,this)}this.tech_.off("timeupdate",u);if(n!=="disabled"){this.tech_.on("timeupdate",u)}this.trigger("modechange")}},cues:{get:function e(){if(!this.loaded_){return null}return s},set:function e(){}},activeCues:{get:function e(){if(!this.loaded_){return null}if(this.cues.length===0){return o}var t=this.tech_.currentTime();var i=[];for(var r=0,n=this.cues.length;r<n;r++){var a=this.cues[r];if(a.startTime<=t&&a.endTime>=t){i.push(a)}else if(a.startTime===a.endTime&&a.startTime<=t&&a.startTime+.5>=t){i.push(a)}}l=false;if(i.length!==this.activeCues_.length){l=true}else{for(var s=0;s<i.length;s++){if(this.activeCues_.indexOf(i[s])===-1){l=true}}}this.activeCues_=i;o.setCues_(this.activeCues_);return o},set:function e(){}}});if(r.src){i.src=r.src;if(!i.preload_){i.loaded_=true}if(i.preload_||a||r.kind!=="subtitles"&&r.kind!=="captions"){Bi(i.src,xt(i))}}else{i.loaded_=true}return i}var i=t.prototype;i.addCue=function e(t){var i=t;if(s.vttjs&&!(t instanceof s.vttjs.VTTCue)){i=new s.vttjs.VTTCue(t.startTime,t.endTime,t.text);for(var r in t){if(!(r in i)){i[r]=t[r]}}i.id=t.id;i.originalCue_=t}var n=this.tech_.textTracks();for(var a=0;a<n.length;a++){if(n[a]!==this){n[a].removeCue(i)}}this.cues_.push(i);this.cues.setCues_(this.cues_)};i.removeCue=function e(t){var i=this.cues_.length;while(i--){var r=this.cues_[i];if(r===t||r.originalCue_&&r.originalCue_===t){this.cues_.splice(i,1);this.cues.setCues_(this.cues_);break}}};return t}(gi);Fi.prototype.allowedEvents_={cuechange:"cuechange"};var Hi=function(e){Dt(t,e);function t(t){var i;if(t===void 0){t={}}var r=kt(t,{kind:pi[t.kind]||""});i=e.call(this,r)||this;var n=false;Object.defineProperty(xt(i),"enabled",{get:function e(){return n},set:function e(t){if(typeof t!=="boolean"||t===n){return}n=t;this.trigger("enabledchange")}});if(r.enabled){i.enabled=r.enabled}i.loaded_=true;return i}return t}(gi);var Vi=function(e){Dt(t,e);function t(t){var i;if(t===void 0){t={}}var r=kt(t,{kind:hi[t.kind]||""});i=e.call(this,r)||this;var n=false;Object.defineProperty(xt(i),"selected",{get:function e(){return n},set:function e(t){if(typeof t!=="boolean"||t===n){return}n=t;this.trigger("selectedchange")}});if(r.selected){i.selected=r.selected}return i}return t}(gi);var qi=0;var zi=1;var Wi=2;var Gi=3;var Yi=function(e){Dt(t,e);function t(t){var i;if(t===void 0){t={}}i=e.call(this)||this;var r;var n=new Fi(t);i.kind=n.kind;i.src=n.src;i.srclang=n.language;i.label=n.label;i["default"]=n["default"];Object.defineProperties(xt(i),{readyState:{get:function e(){return r}},track:{get:function e(){return n}}});r=qi;n.addEventListener("loadeddata",function(){r=Wi;i.trigger({type:"load",target:xt(i)})});return i}return t}(at);Yi.prototype.allowedEvents_={load:"load"};Yi.NONE=qi;Yi.LOADING=zi;Yi.LOADED=Wi;Yi.ERROR=Gi;var Ki={audio:{ListClass:oi,TrackClass:Hi,capitalName:"Audio"},video:{ListClass:ui,TrackClass:Vi,capitalName:"Video"},text:{ListClass:ci,TrackClass:Fi,capitalName:"Text"}};Object.keys(Ki).forEach(function(e){Ki[e].getterName=e+"Tracks";Ki[e].privateName=e+"Tracks_"});var Xi={remoteText:{ListClass:ci,TrackClass:Fi,capitalName:"RemoteText",getterName:"remoteTextTracks",privateName:"remoteTextTracks_"},remoteTextEl:{ListClass:di,TrackClass:Yi,capitalName:"RemoteTextTrackEls",getterName:"remoteTextTrackEls",privateName:"remoteTextTrackEls_"}};var Qi=S({},Ki,Xi);Xi.names=Object.keys(Xi);Ki.names=Object.keys(Ki);Qi.names=[].concat(Xi.names).concat(Ki.names);var Ji={};function Zi(e,t,i,r,n){if(n===void 0){n={}}var a=e.textTracks();n.kind=t;if(i){n.label=i}if(r){n.language=r}n.tech=e;var s=new Qi.text.TrackClass(n);a.addTrack(s);return s}var $i'),t[1].s.push(' in this)){Object.defineProperty(this,r,{get:function e(){return this.tracks_[r]}})}if(this.tracks_.indexOf(t)===-1){this.tracks_.push(t);this.trigger({track:t,type:"addtrack",target:this})}t.labelchange_=function(){i.trigger({track:t,type:"labelchange",target:i})};if(lt(t)){t.addEventListener("labelchange",t.labelchange_)}};i.removeTrack=function e(t){var i;for(var r=0,n=this.length;r<n;r++){if(this[r]===t){i=this[r];if(i.off){i.off()}this.tracks_.splice(r,1);break}}if(!i){return}this.trigger({track:i,type:"removetrack",target:this})};i.getTrackById=function e(t){var i=null;for(var r=0,n=this.length;r<n;r++){var a=this[r];if(a.id===t){i=a;break}}return i};return t}(at);ni.prototype.allowedEvents_={change:"change",addtrack:"addtrack",removetrack:"removetrack",labelchange:"labelchange"};for(var ai in ni.prototype.allowedEvents_){ni.prototype["on"+ai]=null}var si=function e(t,i){for(var r=0;r<t.length;r++){if(!Object.keys(t[r]).length||i.id===t[r].id){continue}t[r].enabled=false}};var oi=function(e){Dt(t,e);function t(t){var i;if(t===void 0){t=[]}for(var r=t.length-1;r>=0;r--){if(t[r].enabled){si(t,t[r]);break}}i=e.call(this,t)||this;i.changing_=false;return i}var i=t.prototype;i.addTrack=function t(i){var r=this;if(i.enabled){si(this,i)}e.prototype.addTrack.call(this,i);if(!i.addEventListener){return}i.enabledChange_=function(){if(r.changing_){return}r.changing_=true;si(r,i);r.changing_=false;r.trigger("change")};i.addEventListener("enabledchange",i.enabledChange_)};i.removeTrack=function t(i){e.prototype.removeTrack.call(this,i);if(i.removeEventListener&&i.enabledChange_){i.removeEventListener("enabledchange",i.enabledChange_);i.enabledChange_=null}};return t}(ni);var li=function e(t,i){for(var r=0;r<t.length;r++){if(!Object.keys(t[r]).length||i.id===t[r].id){continue}t[r].selected=false}};var ui=function(e){Dt(t,e);function t(t){var i;if(t===void 0){t=[]}for(var r=t.length-1;r>=0;r--){if(t[r].selected){li(t,t[r]);break}}i=e.call(this,t)||this;i.changing_=false;Object.defineProperty(xt(i),"selectedIndex",{get:function e(){for(var t=0;t<this.length;t++){if(this[t].selected){return t}}return-1},set:function e(){}});return i}var i=t.prototype;i.addTrack=function t(i){var r=this;if(i.selected){li(this,i)}e.prototype.addTrack.call(this,i);if(!i.addEventListener){return}i.selectedChange_=function(){if(r.changing_){return}r.changing_=true;li(r,i);r.changing_=false;r.trigger("change")};i.addEventListener("selectedchange",i.selectedChange_)};i.removeTrack=function t(i){e.prototype.removeTrack.call(this,i);if(i.removeEventListener&&i.selectedChange_){i.removeEventListener("selectedchange",i.selectedChange_);i.selectedChange_=null}};return t}(ni);var ci=function(e){Dt(t,e);function t(){return e.apply(this,arguments)||this}var i=t.prototype;i.addTrack=function t(i){var r=this;e.prototype.addTrack.call(this,i);if(!this.queueChange_){this.queueChange_=function(){return r.queueTrigger("change")}}if(!this.triggerSelectedlanguagechange){this.triggerSelectedlanguagechange_=function(){return r.trigger("selectedlanguagechange")}}i.addEventListener("modechange",this.queueChange_);var n=["metadata","chapters"];if(n.indexOf(i.kind)===-1){i.addEventListener("modechange",this.triggerSelectedlanguagechange_)}};i.removeTrack=function t(i){e.prototype.removeTrack.call(this,i);if(i.removeEventListener){if(this.queueChange_){i.removeEventListener("modechange",this.queueChange_)}if(this.selectedlanguagechange_){i.removeEventListener("modechange",this.triggerSelectedlanguagechange_)}}};return t}(ni);var di=function(){function e(e){if(e===void 0){e=[]}this.trackElements_=[];Object.defineProperty(this,"length",{get:function e(){return this.trackElements_.length}});for(var t=0,i=e.length;t<i;t++){this.addTrackElement_(e[t])}}var t=e.prototype;t.addTrackElement_=function e(t){var i=this.trackElements_.length;if(!(""+i in this)){Object.defineProperty(this,i,{get:function e(){return this.trackElements_[i]}})}
1if(this.trackElements_.indexOf(t)===-1){this.trackElements_.push(t)}};t.getTrackElementByTrack_=function e(t){var i;for(var r=0,n=this.trackElements_.length;r<n;r++){if(t===this.trackElements_[r].track){i=this.trackElements_[r];break}}return i};t.removeTrackElement_=function e(t){for(var i=0,r=this.trackElements_.length;i<r;i++){if(t===this.trackElements_[i]){if(this.trackElements_[i].track&&typeof this.trackElements_[i].track.off==="function"){this.trackElements_[i].track.off()}if(typeof this.trackElements_[i].off==="function"){this.trackElements_[i].off()}this.trackElements_.splice(i,1);break}}};return e}();var fi=function(){function e(t){e.prototype.setCues_.call(this,t);Object.defineProperty(this,"length",{get:function e(){return this.length_}})}var t=e.prototype;t.setCues_=function e(t){var i=this.length||0;var r=0;var n=t.length;this.cues_=t;this.length_=t.length;var a=function e(t){if(!(""+t in this)){Object.defineProperty(this,""+t,{get:function e(){return this.cues_[t]}})}};if(i<n){r=i;for(;r<n;r++){a.call(this,r)}}};t.getCueById=function e(t){var i=null;for(var r=0,n=this.length;r<n;r++){var a=this[r];if(a.id===t){i=a;break}}return i};return e}();var hi={alternative:"alternative",captions:"captions",main:"main",sign:"sign",subtitles:"subtitles",commentary:"commentary"};var pi={alternative:"alternative",descriptions:"descriptions",main:"main","main-desc":"main-desc",translation:"translation",commentary:"commentary"};var vi={subtitles:"subtitles",captions:"captions",descriptions:"descriptions",chapters:"chapters",metadata:"metadata"};var mi={disabled:"disabled",hidden:"hidden",showing:"showing"};var gi=function(e){Dt(t,e);function t(t){var i;if(t===void 0){t={}}i=e.call(this)||this;var r={id:t.id||"vjs_track_"+Fe(),kind:t.kind||"",language:t.language||""};var n=t.label||"";var a=function e(t){Object.defineProperty(xt(i),t,{get:function e(){return r[t]},set:function e(){}})};for(var s in r){a(s)}Object.defineProperty(xt(i),"label",{get:function e(){return n},set:function e(t){if(t!==n){n=t;this.trigger("labelchange")}}});return i}return t}(at);var yi=function e(t){var i=["protocol","hostname","port","pathname","search","hash","host"];var r=c.createElement("a");r.href=t;var n=r.host===""&&r.protocol!=="file:";var a;if(n){a=c.createElement("div");a.innerHTML=\'<a href="\'+t+\'"></a>\';r=a.firstChild;a.setAttribute("style","display:none; position:absolute;");c.body.appendChild(a)}var o={};for(var l=0;l<i.length;l++){o[i[l]]=r[i[l]]}if(o.protocol==="http:"){o.host=o.host.replace(/:80$/,"")}if(o.protocol==="https:"){o.host=o.host.replace(/:443$/,"")}if(!o.protocol){o.protocol=s.location.protocol}if(n){c.body.removeChild(a)}return o};var _i=function e(t){if(!t.match(/^https?:\\/\\//)){var i=c.createElement("div");i.innerHTML=\'<a href="\'+t+\'">x</a>\';t=i.firstChild.href}return t};var bi=function e(t){if(typeof t==="string"){var i=/^(\\/?)([\\s\\S]*?)((?:\\.{1,2}|[^\\/]+?)(\\.([^\\.\\/\\?]+)))(?:[\\/]*|[\\?].*)$/;var r=i.exec(t);if(r){return r.pop().toLowerCase()}}return""};var Ti=function e(t,i){if(i===void 0){i=s.location}var r=yi(t);var n=r.protocol===":"?i.protocol:r.protocol;var a=n+r.host!==i.protocol+i.host;return a};var Si=Object.freeze({__proto__:null,parseUrl:yi,getAbsoluteURL:_i,getFileExtension:bi,isCrossOrigin:Ti});var ki;if(typeof e!=="undefined"){ki=e}else if(typeof r!=="undefined"){ki=r}else if(typeof self!=="undefined"){ki=self}else{ki={}}var Ei=ki;var ji=Ci;var wi=Object.prototype.toString;function Ci(t){var i=wi.call(t);return i==="[object Function]"||typeof t==="function"&&i!=="[object RegExp]"||typeof e!=="undefined"&&(t===e.setTimeout||t===e.alert||t===e.confirm||t===e.prompt)}var Ii=function e(t){var i={};if(!t){return i}t.trim().split("\\n").forEach(function(e){var t=e.indexOf(":");var r=e.slice(0,t).trim().toLowerCase();var n=e.slice(t+1).trim();if(typeof i[r]==="undefined"){i[r]=n}else if(Array.isArray(i[r])){i[r].push(n)}else{i[r]=[i[r],n]}});return i};var Ai=Di;var xi=Di;Di.XMLHttpRequest=Ei.XMLHttpRequest||Mi;Di.XDomainRequest="withCredentials"in new Di.XMLHttpRequest?Di.XMLHttpRequest:Ei.XDomainRequest;Pi(["get","put","post","patch","head","delete"],function(e){Di[e==="delete"?"del":e]=function(t,i,r){i=Li(t,i,r);i.method=e.toUpperCase();return Ri(i)}});function Pi(e,t){for(var i=0;i<e.length;i++){t(e[i])}}function Oi(e){for(var t in e){if(e.hasOwnProperty(t))return false}return true}function Li(e,t,i){var r=e;if(ji(t)){i=t;if(typeof e==="string"){r={uri:e}}}else{r=S({},t,{uri:e})}r.callback=i;return r}function Di(e,t,i){t=Li(e,t,i);return Ri(t)}function Ri(e){if(typeof e.callback==="undefined"){throw new Error("callback argument missing")}var t=false;var i=function i(r,n,a){if(!t){t=true;e.callback(r,n,a)}};function r(){if(o.readyState===4){setTimeout(s,0)}}function n(){var e=undefined;if(o.response){e=o.response}else{e=o.responseText||Ni(o)}if(v){try{e=JSON.parse(e)}catch(e){}}return e}function a(e){clearTimeout(m);if(!(e instanceof Error)){e=new Error(""+(e||"Unknown XMLHttpRequest Error"))}e.statusCode=0;return i(e,g)}function s(){if(u)return;var t;clearTimeout(m);if(e.useXDR&&o.status===undefined){t=200}else{t=o.status===1223?204:o.status}
1var r=g;var a=null;if(t!==0){r={body:n(),statusCode:t,method:d,headers:{},url:c,rawRequest:o};if(o.getAllResponseHeaders){r.headers=Ii(o.getAllResponseHeaders())}}else{a=new Error("Internal XMLHttpRequest Error")}return i(a,r,r.body)}var o=e.xhr||null;if(!o){if(e.cors||e.useXDR){o=new Di.XDomainRequest}else{o=new Di.XMLHttpRequest}}var l;var u;var c=o.url=e.uri||e.url;var d=o.method=e.method||"GET";var f=e.body||e.data;var h=o.headers=e.headers||{};var p=!!e.sync;var v=false;var m;var g={body:undefined,headers:{},statusCode:0,method:d,url:c,rawRequest:o};if("json"in e&&e.json!==false){v=true;h["accept"]||h["Accept"]||(h["Accept"]="application/json");if(d!=="GET"&&d!=="HEAD"){h["content-type"]||h["Content-Type"]||(h["Content-Type"]="application/json");f=JSON.stringify(e.json===true?f:e.json)}}o.onreadystatechange=r;o.onload=s;o.onerror=a;o.onprogress=function(){};o.onabort=function(){u=true};o.ontimeout=a;o.open(d,c,!p,e.username,e.password);if(!p){o.withCredentials=!!e.withCredentials}if(!p&&e.timeout>0){m=setTimeout(function(){if(u)return;u=true;o.abort("timeout");var e=new Error("XMLHttpRequest timeout");e.code="ETIMEDOUT";a(e)},e.timeout)}if(o.setRequestHeader){for(l in h){if(h.hasOwnProperty(l)){o.setRequestHeader(l,h[l])}}}else if(e.headers&&!Oi(e.headers)){throw new Error("Headers cannot be set on an XDomainRequest object")}if("responseType"in e){o.responseType=e.responseType}if("beforeSend"in e&&typeof e.beforeSend==="function"){e.beforeSend(o)}o.send(f||null);return o}function Ni(e){try{if(e.responseType==="document"){return e.responseXML}var t=e.responseXML&&e.responseXML.documentElement.nodeName==="parsererror";if(e.responseType===""&&!t){return e.responseXML}}catch(e){}return null}function Mi(){}Ai["default"]=xi;var Ui=function e(t,i){var r=new s.WebVTT.Parser(s,s.vttjs,s.WebVTT.StringDecoder());var n=[];r.oncue=function(e){i.addCue(e)};r.onparsingerror=function(e){n.push(e)};r.onflush=function(){i.trigger({type:"loadeddata",target:i})};r.parse(t);if(n.length>0){if(s.console&&s.console.groupCollapsed){s.console.groupCollapsed("Text Track parsing errors for "+i.src)}n.forEach(function(e){return b.error(e)});if(s.console&&s.console.groupEnd){s.console.groupEnd()}}r.flush()};var Bi=function e(t,i){var r={uri:t};var n=Ti(t);if(n){r.cors=n}var a=i.tech_.crossOrigin()==="use-credentials";if(a){r.withCredentials=a}Ai(r,it(this,function(e,t,r){if(e){return b.error(e,t)}i.loaded_=true;if(typeof s.WebVTT!=="function"){if(i.tech_){i.tech_.any(["vttjsloaded","vttjserror"],function(e){if(e.type==="vttjserror"){b.error("vttjs failed to load, stopping trying to process "+i.src);return}return Ui(r,i)})}}else{Ui(r,i)}}))};var Fi=function(e){Dt(t,e);function t(t){var i;if(t===void 0){t={}}if(!t.tech){throw new Error("A tech was not provided.")}var r=kt(t,{kind:vi[t.kind]||"subtitles",language:t.language||t.srclang||""});var n=mi[r.mode]||"disabled";var a=r["default"];if(r.kind==="metadata"||r.kind==="chapters"){n="hidden"}i=e.call(this,r)||this;i.tech_=r.tech;i.cues_=[];i.activeCues_=[];i.preload_=i.tech_.preloadTextTracks!==false;var s=new fi(i.cues_);var o=new fi(i.activeCues_);var l=false;var u=it(xt(i),function(){if(!this.tech_.isReady_||this.tech_.isDisposed()){return}this.activeCues=this.activeCues;if(l){this.trigger("cuechange");l=false}});var c=function e(){i.tech_.off("timeupdate",u)};i.tech_.one("dispose",c);if(n!=="disabled"){i.tech_.on("timeupdate",u)}Object.defineProperties(xt(i),{default:{get:function e(){return a}
1,set:function e(){}},mode:{get:function e(){return n},set:function e(t){if(!mi[t]){return}if(n===t){return}n=t;if(!this.preload_&&n!=="disabled"&&this.cues.length===0){Bi(this.src,this)}this.tech_.off("timeupdate",u);if(n!=="disabled"){this.tech_.on("timeupdate",u)}this.trigger("modechange")}},cues:{get:function e(){if(!this.loaded_){return null}return s},set:function e(){}},activeCues:{get:function e(){if(!this.loaded_){return null}if(this.cues.length===0){return o}var t=this.tech_.currentTime();var i=[];for(var r=0,n=this.cues.length;r<n;r++){var a=this.cues[r];if(a.startTime<=t&&a.endTime>=t){i.push(a)}else if(a.startTime===a.endTime&&a.startTime<=t&&a.startTime+.5>=t){i.push(a)}}l=false;if(i.length!==this.activeCues_.length){l=true}else{for(var s=0;s<i.length;s++){if(this.activeCues_.indexOf(i[s])===-1){l=true}}}this.activeCues_=i;o.setCues_(this.activeCues_);return o},set:function e(){}}});if(r.src){i.src=r.src;if(!i.preload_){i.loaded_=true}if(i.preload_||a||r.kind!=="subtitles"&&r.kind!=="captions"){Bi(i.src,xt(i))}}else{i.loaded_=true}return i}var i=t.prototype;i.addCue=function e(t){var i=t;if(s.vttjs&&!(t instanceof s.vttjs.VTTCue)){i=new s.vttjs.VTTCue(t.startTime,t.endTime,t.text);for(var r in t){if(!(r in i)){i[r]=t[r]}}i.id=t.id;i.originalCue_=t}var n=this.tech_.textTracks();for(var a=0;a<n.length;a++){if(n[a]!==this){n[a].removeCue(i)}}this.cues_.push(i);this.cues.setCues_(this.cues_)};i.removeCue=function e(t){var i=this.cues_.length;while(i--){var r=this.cues_[i];if(r===t||r.originalCue_&&r.originalCue_===t){this.cues_.splice(i,1);this.cues.setCues_(this.cues_);break}}};return t}(gi);Fi.prototype.allowedEvents_={cuechange:"cuechange"};var Hi=function(e){Dt(t,e);function t(t){var i;if(t===void 0){t={}}var r=kt(t,{kind:pi[t.kind]||""});i=e.call(this,r)||this;var n=false;Object.defineProperty(xt(i),"enabled",{get:function e(){return n},set:function e(t){if(typeof t!=="boolean"||t===n){return}n=t;this.trigger("enabledchange")}});if(r.enabled){i.enabled=r.enabled}i.loaded_=true;return i}return t}(gi);var Vi=function(e){Dt(t,e);function t(t){var i;if(t===void 0){t={}}var r=kt(t,{kind:hi[t.kind]||""});i=e.call(this,r)||this;var n=false;Object.defineProperty(xt(i),"selected",{get:function e(){return n},set:function e(t){if(typeof t!=="boolean"||t===n){return}n=t;this.trigger("selectedchange")}});if(r.selected){i.selected=r.selected}return i}return t}(gi);var qi=0;var zi=1;var Wi=2;var Gi=3;var Yi=function(e){Dt(t,e);function t(t){var i;if(t===void 0){t={}}i=e.call(this)||this;var r;var n=new Fi(t);i.kind=n.kind;i.src=n.src;i.srclang=n.language;i.label=n.label;i["default"]=n["default"];Object.defineProperties(xt(i),{readyState:{get:function e(){return r}},track:{get:function e(){return n}}});r=qi;n.addEventListener("loadeddata",function(){r=Wi;i.trigger({type:"load",target:xt(i)})});return i}return t}(at);Yi.prototype.allowedEvents_={load:"load"};Yi.NONE=qi;Yi.LOADING=zi;Yi.LOADED=Wi;Yi.ERROR=Gi;var Ki={audio:{ListClass:oi,TrackClass:Hi,capitalName:"Audio"},video:{ListClass:ui,TrackClass:Vi,capitalName:"Video"},text:{ListClass:ci,TrackClass:Fi,capitalName:"Text"}};Object.keys(Ki).forEach(function(e){Ki[e].getterName=e+"Tracks";Ki[e].privateName=e+"Tracks_"});var Xi={remoteText:{ListClass:ci,TrackClass:Fi,capitalName:"RemoteText",getterName:"remoteTextTracks",privateName:"remoteTextTracks_"},remoteTextEl:{ListClass:di,TrackClass:Yi,capitalName:"RemoteTextTrackEls",getterName:"remoteTextTrackEls",privateName:"remoteTextTrackEls_"}};var Qi=S({},Ki,Xi);Xi.names=Object.keys(Xi);Ki.names=Object.keys(Ki);Qi.names=[].concat(Xi.names).concat(Ki.names);var Ji={};function Zi(e,t,i,r,n){if(n===void 0){n={}}var a=e.textTracks();n.kind=t;if(i){n.label=i}if(r){n.language=r}n.tech=e;var s=new Qi.text.TrackClass(n);a.addTrack(s);return s}var $i'),t[0].s.push('=function(e){Dt(t,e);function t(t,i){var r;if(t===void 0){t={}}if(i===void 0){i=function e(){}}t.reportTouchActivity=false;r=e.call(this,null,t,i)||this;r.hasStarted_=false;r.on("playing",function(){this.hasStarted_=true});r.on("loadstart",function(){this.hasStarted_=false});
1Qi.names.forEach(function(e){var i=Qi[e];if(t&&t[i.getterName]){r[i.privateName]=t[i.getterName]}});if(!r.featuresProgressEvents){r.manualProgressOn()}if(!r.featuresTimeupdateEvents){r.manualTimeUpdatesOn()}["Text","Audio","Video"].forEach(function(e){if(t["native"+e+"Tracks"]===false){r["featuresNative"+e+"Tracks"]=false}});if(t.nativeCaptions===false||t.nativeTextTracks===false){r.featuresNativeTextTracks=false}else if(t.nativeCaptions===true||t.nativeTextTracks===true){r.featuresNativeTextTracks=true}if(!r.featuresNativeTextTracks){r.emulateTextTracks()}r.preloadTextTracks=t.preloadTextTracks!==false;r.autoRemoteTextTracks_=new Qi.text.ListClass;r.initTrackListeners();if(!t.nativeControlsForTouch){r.emitTapEvents()}if(r.constructor){r.name_=r.constructor.name||"Unknown Tech"}return r}var i=t.prototype;i.triggerSourceset=function e(t){var i=this;if(!this.isReady_){this.one("ready",function(){return i.setTimeout(function(){return i.triggerSourceset(t)},1)})}this.trigger({src:t,type:"sourceset"})};i.manualProgressOn=function e(){this.on("durationchange",this.onDurationChange);this.manualProgress=true;this.one("ready",this.trackProgress)};i.manualProgressOff=function e(){this.manualProgress=false;this.stopTrackingProgress();this.off("durationchange",this.onDurationChange)};i.trackProgress=function e(t){this.stopTrackingProgress();this.progressInterval=this.setInterval(it(this,function(){var e=this.bufferedPercent();if(this.bufferedPercent_!==e){this.trigger("progress")}this.bufferedPercent_=e;if(e===1){this.stopTrackingProgress()}}),500)};i.onDurationChange=function e(t){this.duration_=this.duration()};i.buffered=function e(){return Ut(0,0)};i.bufferedPercent=function e(){return Bt(this.buffered(),this.duration_)};i.stopTrackingProgress=function e(){this.clearInterval(this.progressInterval)};i.manualTimeUpdatesOn=function e(){this.manualTimeUpdates=true;this.on("play",this.trackCurrentTime);this.on("pause",this.stopTrackingCurrentTime)};i.manualTimeUpdatesOff=function e(){this.manualTimeUpdates=false;this.stopTrackingCurrentTime();this.off("play",this.trackCurrentTime);this.off("pause",this.stopTrackingCurrentTime)};i.trackCurrentTime=function e(){if(this.currentTimeInterval){this.stopTrackingCurrentTime()}this.currentTimeInterval=this.setInterval(function(){this.trigger({type:"timeupdate",target:this,manuallyTriggered:true})},250)};i.stopTrackingCurrentTime=function e(){this.clearInterval(this.currentTimeInterval);this.trigger({type:"timeupdate",target:this,manuallyTriggered:true})};i.dispose=function t(){this.clearTracks(Ki.names);if(this.manualProgress){this.manualProgressOff()}if(this.manualTimeUpdates){this.manualTimeUpdatesOff()}e.prototype.dispose.call(this)};i.clearTracks=function e(t){var i=this;t=[].concat(t);t.forEach(function(e){var t=i[e+"Tracks"]()||[];var r=t.length;while(r--){var n=t[r];if(e==="text"){i.removeRemoteTextTrack(n)}t.removeTrack(n)}})};i.cleanupAutoTextTracks=function e(){var t=this.autoRemoteTextTracks_||[];var i=t.length;while(i--){var r=t[i];this.removeRemoteTextTrack(r)}};i.reset=function e(){};i.crossOrigin=function e(){};i.setCrossOrigin=function e(){};i.error=function e(t){if(t!==undefined){this.error_=new Ft(t);this.trigger("error")}return this.error_};i.played=function e(){if(this.hasStarted_){return Ut(0,0)}return Ut()};i.play=function e(){};i.setScrubbing=function e(){};i.scrubbing=function e(){};i.setCurrentTime=function e(){if(this.manualTimeUpdates){this.trigger({type:"timeupdate",target:this,manuallyTriggered:true})}};i.initTrackListeners=function e(){var t=this;Ki.names.forEach(function(e){var i=Ki[e];var r=function i(){t.trigger(e+"trackchange")};var n=t[i.getterName]();n.addEventListener("removetrack",r);n.addEventListener("addtrack",r);t.on("dispose",function(){n.removeEventListener("removetrack",r);n.removeEventListener("addtrack",r)})})};i.addWebVttScript_=function e(){var t=this;if(s.WebVTT){return}if(c.body.contains(this.el())){if(!this.options_["vtt.js"]&&A(Ji)&&Object.keys(Ji).length>0){this.trigger("vttjsloaded");return}var i=c.createElement("script");i.src=this.options_["vtt.js"]||"https://vjs.zencdn.net/vttjs/0.14.1/vtt.min.js";i.onload=function(){t.trigger("vttjsloaded")};i.onerror=function(){t.trigger("vttjserror")};this.on("dispose",function(){i.onload=null;i.onerror=null});s.WebVTT=true;this.el().parentNode.appendChild(i)}else{this.ready(this.addWebVttScript_)}};i.emulateTextTracks=function e(){var t=this;var i=this.textTracks();var r=this.remoteTextTracks();var n=function e(t){return i.addTrack(t.track)};var a=function e(t){return i.removeTrack(t.track)};r.on("addtrack",n);r.on("removetrack",a);this.addWebVttScript_();var s=function e(){return t.trigger("texttrackchange")};var o=function e(){s();for(var t=0;t<i.length;t++){var r=i[t];r.removeEventListener("cuechange",s);if(r.mode==="showing"){r.addEventListener("cuechange",s)}}};o();i.addEventListener("change",o);i.addEventListener("addtrack",o);i.addEventListener("removetrack",o);this.on("dispose",function(){r.off("addtrack",n);r.off("removetrack",a);i.removeEventListener("change",o);i.removeEventListener("addtrack",o);i.removeEventListener("removetrack",o);for(var e=0;e<i.length;e++){var t=i[e];t.removeEventListener("cuechange",s)}})};i.addTextTrack=function e(t,i,r){if(!t){throw new Error("TextTrack kind is required but was not provided")}return Zi(this,t,i,r)};i.createRemoteTextTrack=function e(t){var i=kt(t,{tech:this});return new Xi.remoteTextEl.TrackClass(i)};i.addRemoteTextTrack=function e(t,i){var r=this;if(t===void 0){t={}}var n=this.createRemoteTextTrack(t);if(i!==true&&i!==false){b.warn(\'Calling addRemoteTextTrack without explicitly setting the "manualCleanup" parameter to `true` is deprecated and default to `false` in future version of video.js\');i=true}this.remoteTextTrackEls().addTrackElement_(n);this.remoteTextTracks().addTrack(n.track);if(i!==true){this.ready(function(){return r.autoRemoteTextTracks_.addTrack(n.track)})}return n};i.removeRemoteTextTrack=function e(t){var i=this.remoteTextTrackEls().getTrackElementByTrack_(t);this.remoteTextTrackEls().removeTrackElement_(i);this.remoteTextTracks().removeTrack(t);this.autoRemoteTextTracks_.removeTrack(t)};i.getVideoPlaybackQuality=function e(){return{}};i.requestPictureInPicture=function e(){var t=this.options_.Promise||s.Promise;if(t){return t.reject()}};i.disablePictureInPicture=function e(){return true};i.setDisablePictureInPicture=function e(){};i.setPoster=function e(){};i.playsinline=function e(){};i.setPlaysinline=function e(){};i.overrideNativeAudioTracks=function e(){};i.overrideNativeVideoTracks=function e(){};i.canPlayType=function e(){return""};t.canPlayType=function e(){return""};t.canPlaySource=function e(i,r){return t.canPlayType(i.type)};t.isTech=function e(i){return i.prototype instanceof t||i instanceof t||i===t};t.registerTech=function e(i,r){if(!t.techs_){t.techs_={}}if(!t.isTech(r)){throw new Error("Tech "+i+" must be a Tech")}if(!t.canPlayType){throw new Error("Techs must have a static canPlayType method on them")}if(!t.canPlaySource){throw new Error("Techs must have a static canPlaySource method on them")}i=Tt(i);t.techs_[i]=r;t.techs_[bt(i)]=r;if(i!=="Tech"){t.defaultTechOrder_.push(i)}return r};t.getTech=function e(i){if(!i){return}if(t.techs_&&t.techs_[i]){return t.techs_[i]}i=Tt(i);
1if(s&&s.videojs&&s.videojs[i]){b.warn("The "+i+" tech was added to the videojs object when it should be registered using videojs.registerTech(name, tech)");return s.videojs[i]}};return t}(It);Qi.names.forEach(function(e){var t=Qi[e];$i.prototype[t.getterName]=function(){this[t.privateName]=this[t.privateName]||new t.ListClass;return this[t.privateName]}});$i.prototype.featuresVolumeControl=true;$i.prototype.featuresMuteControl=true;$i.prototype.featuresFullscreenResize=false;$i.prototype.featuresPlaybackRate=false;$i.prototype.featuresProgressEvents=false;$i.prototype.featuresSourceset=false;$i.prototype.featuresTimeupdateEvents=false;$i.prototype.featuresNativeTextTracks=false;$i.withSourceHandlers=function(e){e.registerSourceHandler=function(t,i){var r=e.sourceHandlers;if(!r){r=e.sourceHandlers=[]}if(i===undefined){i=r.length}r.splice(i,0,t)};e.canPlayType=function(t){var i=e.sourceHandlers||[];var r;for(var n=0;n<i.length;n++){r=i[n].canPlayType(t);if(r){return r}}return""};e.selectSourceHandler=function(t,i){var r=e.sourceHandlers||[];var n;for(var a=0;a<r.length;a++){n=r[a].canHandleSource(t,i);if(n){return r[a]}}return null};e.canPlaySource=function(t,i){var r=e.selectSourceHandler(t,i);if(r){return r.canHandleSource(t,i)}return""};var t=["seekable","seeking","duration"];t.forEach(function(e){var t=this[e];if(typeof t!=="function"){return}this[e]=function(){if(this.sourceHandler_&&this.sourceHandler_[e]){return this.sourceHandler_[e].apply(this.sourceHandler_,arguments)}return t.apply(this,arguments)}},e.prototype);e.prototype.setSource=function(t){var i=e.selectSourceHandler(t,this.options_);if(!i){if(e.nativeSourceHandler){i=e.nativeSourceHandler}else{b.error("No source handler found for the current source.")}}this.disposeSourceHandler();this.off("dispose",this.disposeSourceHandler);if(i!==e.nativeSourceHandler){this.currentSource_=t}this.sourceHandler_=i.handleSource(t,this,this.options_);this.one("dispose",this.disposeSourceHandler)};e.prototype.disposeSourceHandler=function(){if(this.currentSource_){this.clearTracks(["audio","video"]);this.currentSource_=null}this.cleanupAutoTextTracks();if(this.sourceHandler_){if(this.sourceHandler_.dispose){this.sourceHandler_.dispose()}this.sourceHandler_=null}}};It.registerComponent("Tech",$i);$i.registerTech("Tech",$i);$i.defaultTechOrder_=[];var er={};var tr={};var ir={};function rr(e,t){er[e]=er[e]||[];er[e].push(t)}function nr(e,t,i){e.setTimeout(function(){return mr(t,er[t.type],i,e)},1)}function ar(e,t){e.forEach(function(e){return e.setTech&&e.setTech(t)})}function sr(e,t,i){return e.reduceRight(fr(i),t[i]())}function or(e,t,i,r){return t[i](e.reduce(fr(i),r))}function lr(e,t,i,r){if(r===void 0){r=null}var n="call"+Tt(i);var a=e.reduce(fr(n),r);var s=a===ir;var o=s?null:t[i](a);hr(e,i,o,s);return o}var ur={buffered:1,currentTime:1,duration:1,muted:1,played:1,paused:1,seekable:1,volume:1};var cr={setCurrentTime:1,setMuted:1,setVolume:1};var dr={play:1,pause:1};function fr(e){return function(t,i){if(t===ir){return ir}if(i[e]){return i[e](t)}return t}}function hr(e,t,i,r){for(var n=e.length-1;n>=0;n--){var a=e[n];if(a[t]){a[t](r,i)}}}function pr(e){tr[e.id()]=null}function vr(e,t){var i=tr[e.id()];var r=null;if(i===undefined||i===null){r=t(e);tr[e.id()]=[[t,r]];return r}for(var n=0;n<i.length;n++){var a=i[n],s=a[0],o=a[1];if(s!==t){continue}r=o}if(r===null){r=t(e);i.push([t,r])}return r}function mr(e,t,i,r,n,a){if(e===void 0){e={}}if(t===void 0){t=[]}if(n===void 0){n=[]}if(a===void 0){a=false}var s=t,o=s[0],l=s.slice(1);if(typeof o==="string"){mr(e,er[o],i,r,n,a)}else if(o){var u=vr(r,o);if(!u.setSource){n.push(u);return mr(e,l,i,r,n,a)}u.setSource(C({},e),function(t,s){if(t){return mr(e,l,i,r,n,a)}n.push(u);mr(s,e.type===s.type?l:er[s.type],i,r,n,a)})}else if(l.length){mr(e,l,i,r,n,a)}else if(a){i(e,n)}else{mr(e,er["*"],i,r,n,true)}}var gr={opus:"video/ogg",ogv:"video/ogg",mp4:"video/mp4",mov:"video/mp4",m4v:"video/mp4",mkv:"video/x-matroska",m4a:"audio/mp4",mp3:"audio/mpeg",aac:"audio/aac",caf:"audio/x-caf",flac:"audio/flac",oga:"audio/ogg",wav:"audio/wav",m3u8:"application/x-mpegURL",jpg:"image/jpeg",jpeg:"image/jpeg",gif:"image/gif",png:"image/png",svg:"image/svg+xml",webp:"image/webp"};var yr=function e(t){if(t===void 0){t=""}var i=bi(t);var r=gr[i.toLowerCase()];return r||""};var _r=function e(t,i){if(!i){return""}if(t.cache_.source.src===i&&t.cache_.source.type){return t.cache_.source.type}var r=t.cache_.sources.filter(function(e){return e.src===i});if(r.length){return r[0].type}var n=t.$$("source");for(var a=0;a<n.length;a++){var s=n[a];if(s.type&&s.src&&s.src===i){return s.type}}return yr(i)};var br=function e(t){if(Array.isArray(t)){var i=[];t.forEach(function(t){t=e(t);if(Array.isArray(t)){i=i.concat(t)}else if(I(t)){i.push(t)}});t=i}else if(typeof t==="string"&&t.trim()){t=[Tr({src:t})]}
1else if(I(t)&&typeof t.src==="string"&&t.src&&t.src.trim()){t=[Tr(t)]}else{t=[]}return t};function Tr(e){if(!e.type){var t=yr(e.src);if(t){e.type=t}}return e}var Sr=function(e){Dt(t,e);function t(t,i,r){var n;var a=kt({createEl:false},i);n=e.call(this,t,a,r)||this;if(!i.playerOptions.sources||i.playerOptions.sources.length===0){for(var s=0,o=i.playerOptions.techOrder;s<o.length;s++){var l=Tt(o[s]);var u=$i.getTech(l);if(!l){u=It.getComponent(l)}if(u&&u.isSupported()){t.loadTech_(l);break}}}else{t.src(i.playerOptions.sources)}return n}return t}(It);It.registerComponent("MediaLoader",Sr);var kr=function(e){Dt(t,e);function t(t,i){var r;r=e.call(this,t,i)||this;r.emitTapEvents();r.enable();return r}var i=t.prototype;i.createEl=function t(i,r,n){if(i===void 0){i="div"}if(r===void 0){r={}}if(n===void 0){n={}}r=C({innerHTML:\'<span aria-hidden="true" class="vjs-icon-placeholder"></span>\',className:this.buildCSSClass(),tabIndex:0},r);if(i==="button"){b.error("Creating a ClickableComponent with an HTML element of "+i+" is not supported; use a Button instead.")}n=C({role:"button"},n);this.tabIndex_=r.tabIndex;var a=e.prototype.createEl.call(this,i,r,n);this.createControlTextEl(a);return a};i.dispose=function t(){this.controlTextEl_=null;e.prototype.dispose.call(this)};i.createControlTextEl=function e(t){this.controlTextEl_=ae("span",{className:"vjs-control-text"},{"aria-live":"polite"});if(t){t.appendChild(this.controlTextEl_)}this.controlText(this.controlText_,t);return this.controlTextEl_};i.controlText=function e(t,i){if(i===void 0){i=this.el()}if(t===undefined){return this.controlText_||"Need Text"}var r=this.localize(t);this.controlText_=t;se(this.controlTextEl_,r);if(!this.nonIconControl){i.setAttribute("title",r)}};i.buildCSSClass=function t(){return"vjs-control vjs-button "+e.prototype.buildCSSClass.call(this)};i.enable=function e(){if(!this.enabled_){this.enabled_=true;this.removeClass("vjs-disabled");this.el_.setAttribute("aria-disabled","false");if(typeof this.tabIndex_!=="undefined"){this.el_.setAttribute("tabIndex",this.tabIndex_)}this.on(["tap","click"],this.handleClick);this.on("keydown",this.handleKeyDown)}};i.disable=function e(){this.enabled_=false;this.addClass("vjs-disabled");this.el_.setAttribute("aria-disabled","true");if(typeof this.tabIndex_!=="undefined"){this.el_.removeAttribute("tabIndex")}this.off("mouseover",this.handleMouseOver);this.off("mouseout",this.handleMouseOut);this.off(["tap","click"],this.handleClick);this.off("keydown",this.handleKeyDown)};i.handleLanguagechange=function e(){this.controlText(this.controlText_)};i.handleClick=function e(t){if(this.options_.clickHandler){this.options_.clickHandler.call(this,arguments)}};i.handleKeyDown=function t(i){if(Qt.isEventKey(i,"Space")||Qt.isEventKey(i,"Enter")){i.preventDefault();i.stopPropagation();this.trigger("click")}else{e.prototype.handleKeyDown.call(this,i)}};return t}(It);It.registerComponent("ClickableComponent",kr);var Er=function(e){Dt(t,e);function t(t,i){var r;r=e.call(this,t,i)||this;r.update();t.on("posterchange",it(xt(r),r.update));return r}var i=t.prototype;i.dispose=function t(){this.player().off("posterchange",this.update);e.prototype.dispose.call(this)};i.createEl=function e(){var t=ae("div",{className:"vjs-poster",tabIndex:-1});return t};i.update=function e(t){var i=this.player().poster();this.setSrc(i);if(i){this.show()}else{this.hide()}};i.setSrc=function e(t){var i="";if(t){i=\'url("\'+t+\'")\'}this.el_.style.backgroundImage=i};i.handleClick=function e(t){if(!this.player_.controls()){return}var i=this.player_.usingPlugin("eme")&&this.player_.eme.sessions&&this.player_.eme.sessions.length>0;if(this.player_.tech(true)&&!((q||F)&&i)){this.player_.tech(true).focus()}if(this.player_.paused()){Wt(this.player_.play())}else{this.player_.pause()}};return t}(kr);It.registerComponent("PosterImage",Er);var jr="#222";var wr="#ccc";var Cr={monospace:"monospace",sansSerif:"sans-serif",serif:"serif'),t[1].s.push('=function(e){Dt(t,e);function t(t,i){var r;if(t===void 0){t={}}if(i===void 0){i=function e(){}}t.reportTouchActivity=false;r=e.call(this,null,t,i)||this;r.hasStarted_=false;r.on("playing",function(){this.hasStarted_=true});r.on("loadstart",function(){this.hasStarted_=false});
1Qi.names.forEach(function(e){var i=Qi[e];if(t&&t[i.getterName]){r[i.privateName]=t[i.getterName]}});if(!r.featuresProgressEvents){r.manualProgressOn()}if(!r.featuresTimeupdateEvents){r.manualTimeUpdatesOn()}["Text","Audio","Video"].forEach(function(e){if(t["native"+e+"Tracks"]===false){r["featuresNative"+e+"Tracks"]=false}});if(t.nativeCaptions===false||t.nativeTextTracks===false){r.featuresNativeTextTracks=false}else if(t.nativeCaptions===true||t.nativeTextTracks===true){r.featuresNativeTextTracks=true}if(!r.featuresNativeTextTracks){r.emulateTextTracks()}r.preloadTextTracks=t.preloadTextTracks!==false;r.autoRemoteTextTracks_=new Qi.text.ListClass;r.initTrackListeners();if(!t.nativeControlsForTouch){r.emitTapEvents()}if(r.constructor){r.name_=r.constructor.name||"Unknown Tech"}return r}var i=t.prototype;i.triggerSourceset=function e(t){var i=this;if(!this.isReady_){this.one("ready",function(){return i.setTimeout(function(){return i.triggerSourceset(t)},1)})}this.trigger({src:t,type:"sourceset"})};i.manualProgressOn=function e(){this.on("durationchange",this.onDurationChange);this.manualProgress=true;this.one("ready",this.trackProgress)};i.manualProgressOff=function e(){this.manualProgress=false;this.stopTrackingProgress();this.off("durationchange",this.onDurationChange)};i.trackProgress=function e(t){this.stopTrackingProgress();this.progressInterval=this.setInterval(it(this,function(){var e=this.bufferedPercent();if(this.bufferedPercent_!==e){this.trigger("progress")}this.bufferedPercent_=e;if(e===1){this.stopTrackingProgress()}}),500)};i.onDurationChange=function e(t){this.duration_=this.duration()};i.buffered=function e(){return Ut(0,0)};i.bufferedPercent=function e(){return Bt(this.buffered(),this.duration_)};i.stopTrackingProgress=function e(){this.clearInterval(this.progressInterval)};i.manualTimeUpdatesOn=function e(){this.manualTimeUpdates=true;this.on("play",this.trackCurrentTime);this.on("pause",this.stopTrackingCurrentTime)};i.manualTimeUpdatesOff=function e(){this.manualTimeUpdates=false;this.stopTrackingCurrentTime();this.off("play",this.trackCurrentTime);this.off("pause",this.stopTrackingCurrentTime)};i.trackCurrentTime=function e(){if(this.currentTimeInterval){this.stopTrackingCurrentTime()}this.currentTimeInterval=this.setInterval(function(){this.trigger({type:"timeupdate",target:this,manuallyTriggered:true})},250)};i.stopTrackingCurrentTime=function e(){this.clearInterval(this.currentTimeInterval);this.trigger({type:"timeupdate",target:this,manuallyTriggered:true})};i.dispose=function t(){this.clearTracks(Ki.names);if(this.manualProgress){this.manualProgressOff()}if(this.manualTimeUpdates){this.manualTimeUpdatesOff()}e.prototype.dispose.call(this)};i.clearTracks=function e(t){var i=this;t=[].concat(t);t.forEach(function(e){var t=i[e+"Tracks"]()||[];var r=t.length;while(r--){var n=t[r];if(e==="text"){i.removeRemoteTextTrack(n)}t.removeTrack(n)}})};i.cleanupAutoTextTracks=function e(){var t=this.autoRemoteTextTracks_||[];var i=t.length;while(i--){var r=t[i];this.removeRemoteTextTrack(r)}};i.reset=function e(){};i.crossOrigin=function e(){};i.setCrossOrigin=function e(){};i.error=function e(t){if(t!==undefined){this.error_=new Ft(t);this.trigger("error")}return this.error_};i.played=function e(){if(this.hasStarted_){return Ut(0,0)}return Ut()};i.play=function e(){};i.setScrubbing=function e(){};i.scrubbing=function e(){};i.setCurrentTime=function e(){if(this.manualTimeUpdates){this.trigger({type:"timeupdate",target:this,manuallyTriggered:true})}};i.initTrackListeners=function e(){var t=this;Ki.names.forEach(function(e){var i=Ki[e];var r=function i(){t.trigger(e+"trackchange")};var n=t[i.getterName]();n.addEventListener("removetrack",r);n.addEventListener("addtrack",r);t.on("dispose",function(){n.removeEventListener("removetrack",r);n.removeEventListener("addtrack",r)})})};i.addWebVttScript_=function e(){var t=this;if(s.WebVTT){return}if(c.body.contains(this.el())){if(!this.options_["vtt.js"]&&A(Ji)&&Object.keys(Ji).length>0){this.trigger("vttjsloaded");return}var i=c.createElement("script");i.src=this.options_["vtt.js"]||"https://vjs.zencdn.net/vttjs/0.14.1/vtt.min.js";i.onload=function(){t.trigger("vttjsloaded")};i.onerror=function(){t.trigger("vttjserror")};this.on("dispose",function(){i.onload=null;i.onerror=null});s.WebVTT=true;this.el().parentNode.appendChild(i)}else{this.ready(this.addWebVttScript_)}};i.emulateTextTracks=function e(){var t=this;var i=this.textTracks();var r=this.remoteTextTracks();var n=function e(t){return i.addTrack(t.track)};var a=function e(t){return i.removeTrack(t.track)};r.on("addtrack",n);r.on("removetrack",a);this.addWebVttScript_();var s=function e(){return t.trigger("texttrackchange")};var o=function e(){s();for(var t=0;t<i.length;t++){var r=i[t];r.removeEventListener("cuechange",s);if(r.mode==="showing"){r.addEventListener("cuechange",s)}}};o();i.addEventListener("change",o);i.addEventListener("addtrack",o);i.addEventListener("removetrack",o);this.on("dispose",function(){r.off("addtrack",n);r.off("removetrack",a);i.removeEventListener("change",o);i.removeEventListener("addtrack",o);i.removeEventListener("removetrack",o);for(var e=0;e<i.length;e++){var t=i[e];t.removeEventListener("cuechange",s)}})};i.addTextTrack=function e(t,i,r){if(!t){throw new Error("TextTrack kind is required but was not provided")}return Zi(this,t,i,r)};i.createRemoteTextTrack=function e(t){var i=kt(t,{tech:this});return new Xi.remoteTextEl.TrackClass(i)};i.addRemoteTextTrack=function e(t,i){var r=this;if(t===void 0){t={}}var n=this.createRemoteTextTrack(t);if(i!==true&&i!==false){b.warn(\'Calling addRemoteTextTrack without explicitly setting the "manualCleanup" parameter to `true` is deprecated and default to `false` in future version of video.js\');i=true}this.remoteTextTrackEls().addTrackElement_(n);this.remoteTextTracks().addTrack(n.track);if(i!==true){this.ready(function(){return r.autoRemoteTextTracks_.addTrack(n.track)})}return n};i.removeRemoteTextTrack=function e(t){var i=this.remoteTextTrackEls().getTrackElementByTrack_(t);this.remoteTextTrackEls().removeTrackElement_(i);this.remoteTextTracks().removeTrack(t);this.autoRemoteTextTracks_.removeTrack(t)};i.getVideoPlaybackQuality=function e(){return{}};i.requestPictureInPicture=function e(){var t=this.options_.Promise||s.Promise;if(t){return t.reject()}};i.disablePictureInPicture=function e(){return true};i.setDisablePictureInPicture=function e(){};i.setPoster=function e(){};i.playsinline=function e(){};i.setPlaysinline=function e(){};i.overrideNativeAudioTracks=function e(){};i.overrideNativeVideoTracks=function e(){};i.canPlayType=function e(){return""};t.canPlayType=function e(){return""};t.canPlaySource=function e(i,r){return t.canPlayType(i.type)};t.isTech=function e(i){return i.prototype instanceof t||i instanceof t||i===t};t.registerTech=function e(i,r){if(!t.techs_){t.techs_={}}if(!t.isTech(r)){throw new Error("Tech "+i+" must be a Tech")}if(!t.canPlayType){throw new Error("Techs must have a static canPlayType method on them")}if(!t.canPlaySource){throw new Error("Techs must have a static canPlaySource method on them")}i=Tt(i);t.techs_[i]=r;t.techs_[bt(i)]=r;if(i!=="Tech"){t.defaultTechOrder_.push(i)}return r};t.getTech=function e(i){if(!i){return}if(t.techs_&&t.techs_[i]){return t.techs_[i]}i=Tt(i);
1if(s&&s.videojs&&s.videojs[i]){b.warn("The "+i+" tech was added to the videojs object when it should be registered using videojs.registerTech(name, tech)");return s.videojs[i]}};return t}(It);Qi.names.forEach(function(e){var t=Qi[e];$i.prototype[t.getterName]=function(){this[t.privateName]=this[t.privateName]||new t.ListClass;return this[t.privateName]}});$i.prototype.featuresVolumeControl=true;$i.prototype.featuresMuteControl=true;$i.prototype.featuresFullscreenResize=false;$i.prototype.featuresPlaybackRate=false;$i.prototype.featuresProgressEvents=false;$i.prototype.featuresSourceset=false;$i.prototype.featuresTimeupdateEvents=false;$i.prototype.featuresNativeTextTracks=false;$i.withSourceHandlers=function(e){e.registerSourceHandler=function(t,i){var r=e.sourceHandlers;if(!r){r=e.sourceHandlers=[]}if(i===undefined){i=r.length}r.splice(i,0,t)};e.canPlayType=function(t){var i=e.sourceHandlers||[];var r;for(var n=0;n<i.length;n++){r=i[n].canPlayType(t);if(r){return r}}return""};e.selectSourceHandler=function(t,i){var r=e.sourceHandlers||[];var n;for(var a=0;a<r.length;a++){n=r[a].canHandleSource(t,i);if(n){return r[a]}}return null};e.canPlaySource=function(t,i){var r=e.selectSourceHandler(t,i);if(r){return r.canHandleSource(t,i)}return""};var t=["seekable","seeking","duration"];t.forEach(function(e){var t=this[e];if(typeof t!=="function"){return}this[e]=function(){if(this.sourceHandler_&&this.sourceHandler_[e]){return this.sourceHandler_[e].apply(this.sourceHandler_,arguments)}return t.apply(this,arguments)}},e.prototype);e.prototype.setSource=function(t){var i=e.selectSourceHandler(t,this.options_);if(!i){if(e.nativeSourceHandler){i=e.nativeSourceHandler}else{b.error("No source handler found for the current source.")}}this.disposeSourceHandler();this.off("dispose",this.disposeSourceHandler);if(i!==e.nativeSourceHandler){this.currentSource_=t}this.sourceHandler_=i.handleSource(t,this,this.options_);this.one("dispose",this.disposeSourceHandler)};e.prototype.disposeSourceHandler=function(){if(this.currentSource_){this.clearTracks(["audio","video"]);this.currentSource_=null}this.cleanupAutoTextTracks();if(this.sourceHandler_){if(this.sourceHandler_.dispose){this.sourceHandler_.dispose()}this.sourceHandler_=null}}};It.registerComponent("Tech",$i);$i.registerTech("Tech",$i);$i.defaultTechOrder_=[];var er={};var tr={};var ir={};function rr(e,t){er[e]=er[e]||[];er[e].push(t)}function nr(e,t,i){e.setTimeout(function(){return mr(t,er[t.type],i,e)},1)}function ar(e,t){e.forEach(function(e){return e.setTech&&e.setTech(t)})}function sr(e,t,i){return e.reduceRight(fr(i),t[i]())}function or(e,t,i,r){return t[i](e.reduce(fr(i),r))}function lr(e,t,i,r){if(r===void 0){r=null}var n="call"+Tt(i);var a=e.reduce(fr(n),r);var s=a===ir;var o=s?null:t[i](a);hr(e,i,o,s);return o}var ur={buffered:1,currentTime:1,duration:1,muted:1,played:1,paused:1,seekable:1,volume:1};var cr={setCurrentTime:1,setMuted:1,setVolume:1};var dr={play:1,pause:1};function fr(e){return function(t,i){if(t===ir){return ir}if(i[e]){return i[e](t)}return t}}function hr(e,t,i,r){for(var n=e.length-1;n>=0;n--){var a=e[n];if(a[t]){a[t](r,i)}}}function pr(e){tr[e.id()]=null}function vr(e,t){var i=tr[e.id()];var r=null;if(i===undefined||i===null){r=t(e);tr[e.id()]=[[t,r]];return r}for(var n=0;n<i.length;n++){var a=i[n],s=a[0],o=a[1];if(s!==t){continue}r=o}if(r===null){r=t(e);i.push([t,r])}return r}function mr(e,t,i,r,n,a){if(e===void 0){e={}}if(t===void 0){t=[]}if(n===void 0){n=[]}if(a===void 0){a=false}var s=t,o=s[0],l=s.slice(1);if(typeof o==="string"){mr(e,er[o],i,r,n,a)}else if(o){var u=vr(r,o);if(!u.setSource){n.push(u);return mr(e,l,i,r,n,a)}u.setSource(C({},e),function(t,s){if(t){return mr(e,l,i,r,n,a)}n.push(u);mr(s,e.type===s.type?l:er[s.type],i,r,n,a)})}else if(l.length){mr(e,l,i,r,n,a)}else if(a){i(e,n)}else{mr(e,er["*"],i,r,n,true)}}var gr={opus:"video/ogg",ogv:"video/ogg",mp4:"video/mp4",mov:"video/mp4",m4v:"video/mp4",mkv:"video/x-matroska",m4a:"audio/mp4",mp3:"audio/mpeg",aac:"audio/aac",caf:"audio/x-caf",flac:"audio/flac",oga:"audio/ogg",wav:"audio/wav",m3u8:"application/x-mpegURL",jpg:"image/jpeg",jpeg:"image/jpeg",gif:"image/gif",png:"image/png",svg:"image/svg+xml",webp:"image/webp"};var yr=function e(t){if(t===void 0){t=""}var i=bi(t);var r=gr[i.toLowerCase()];return r||""};var _r=function e(t,i){if(!i){return""}if(t.cache_.source.src===i&&t.cache_.source.type){return t.cache_.source.type}var r=t.cache_.sources.filter(function(e){return e.src===i});if(r.length){return r[0].type}var n=t.$$("source");for(var a=0;a<n.length;a++){var s=n[a];if(s.type&&s.src&&s.src===i){return s.type}}return yr(i)};var br=function e(t){if(Array.isArray(t)){var i=[];t.forEach(function(t){t=e(t);if(Array.isArray(t)){i=i.concat(t)}else if(I(t)){i.push(t)}});t=i}else if(typeof t==="string"&&t.trim()){t=[Tr({src:t})]}
1else if(I(t)&&typeof t.src==="string"&&t.src&&t.src.trim()){t=[Tr(t)]}else{t=[]}return t};function Tr(e){if(!e.type){var t=yr(e.src);if(t){e.type=t}}return e}var Sr=function(e){Dt(t,e);function t(t,i,r){var n;var a=kt({createEl:false},i);n=e.call(this,t,a,r)||this;if(!i.playerOptions.sources||i.playerOptions.sources.length===0){for(var s=0,o=i.playerOptions.techOrder;s<o.length;s++){var l=Tt(o[s]);var u=$i.getTech(l);if(!l){u=It.getComponent(l)}if(u&&u.isSupported()){t.loadTech_(l);break}}}else{t.src(i.playerOptions.sources)}return n}return t}(It);It.registerComponent("MediaLoader",Sr);var kr=function(e){Dt(t,e);function t(t,i){var r;r=e.call(this,t,i)||this;r.emitTapEvents();r.enable();return r}var i=t.prototype;i.createEl=function t(i,r,n){if(i===void 0){i="div"}if(r===void 0){r={}}if(n===void 0){n={}}r=C({innerHTML:\'<span aria-hidden="true" class="vjs-icon-placeholder"></span>\',className:this.buildCSSClass(),tabIndex:0},r);if(i==="button"){b.error("Creating a ClickableComponent with an HTML element of "+i+" is not supported; use a Button instead.")}n=C({role:"button"},n);this.tabIndex_=r.tabIndex;var a=e.prototype.createEl.call(this,i,r,n);this.createControlTextEl(a);return a};i.dispose=function t(){this.controlTextEl_=null;e.prototype.dispose.call(this)};i.createControlTextEl=function e(t){this.controlTextEl_=ae("span",{className:"vjs-control-text"},{"aria-live":"polite"});if(t){t.appendChild(this.controlTextEl_)}this.controlText(this.controlText_,t);return this.controlTextEl_};i.controlText=function e(t,i){if(i===void 0){i=this.el()}if(t===undefined){return this.controlText_||"Need Text"}var r=this.localize(t);this.controlText_=t;se(this.controlTextEl_,r);if(!this.nonIconControl){i.setAttribute("title",r)}};i.buildCSSClass=function t(){return"vjs-control vjs-button "+e.prototype.buildCSSClass.call(this)};i.enable=function e(){if(!this.enabled_){this.enabled_=true;this.removeClass("vjs-disabled");this.el_.setAttribute("aria-disabled","false");if(typeof this.tabIndex_!=="undefined"){this.el_.setAttribute("tabIndex",this.tabIndex_)}this.on(["tap","click"],this.handleClick);this.on("keydown",this.handleKeyDown)}};i.disable=function e(){this.enabled_=false;this.addClass("vjs-disabled");this.el_.setAttribute("aria-disabled","true");if(typeof this.tabIndex_!=="undefined"){this.el_.removeAttribute("tabIndex")}this.off("mouseover",this.handleMouseOver);this.off("mouseout",this.handleMouseOut);this.off(["tap","click"],this.handleClick);this.off("keydown",this.handleKeyDown)};i.handleLanguagechange=function e(){this.controlText(this.controlText_)};i.handleClick=function e(t){if(this.options_.clickHandler){this.options_.clickHandler.call(this,arguments)}};i.handleKeyDown=function t(i){if(Qt.isEventKey(i,"Space")||Qt.isEventKey(i,"Enter")){i.preventDefault();i.stopPropagation();this.trigger("click")}else{e.prototype.handleKeyDown.call(this,i)}};return t}(It);It.registerComponent("ClickableComponent",kr);var Er=function(e){Dt(t,e);function t(t,i){var r;r=e.call(this,t,i)||this;r.update();t.on("posterchange",it(xt(r),r.update));return r}var i=t.prototype;i.dispose=function t(){this.player().off("posterchange",this.update);e.prototype.dispose.call(this)};i.createEl=function e(){var t=ae("div",{className:"vjs-poster",tabIndex:-1});return t};i.update=function e(t){var i=this.player().poster();this.setSrc(i);if(i){this.show()}else{this.hide()}};i.setSrc=function e(t){var i="";if(t){i=\'url("\'+t+\'")\'}this.el_.style.backgroundImage=i};i.handleClick=function e(t){if(!this.player_.controls()){return}var i=this.player_.usingPlugin("eme")&&this.player_.eme.sessions&&this.player_.eme.sessions.length>0;if(this.player_.tech(true)&&!((q||F)&&i)){this.player_.tech(true).focus()}if(this.player_.paused()){Wt(this.player_.play())}else{this.player_.pause()}};return t}(kr);It.registerComponent("PosterImage",Er);var jr="#222";var wr="#ccc";var Cr={monospace:"monospace",sansSerif:"sans-serif",serif:"serif'),t[0].s.push('",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\'};function Ir(e,t){var i;if(e.length===4){i=e[1]+e[1]+e[2]+e[2]+e[3]+e[3]}else if(e.length===7){i=e.slice(1)}else{throw new Error("Invalid color code provided, "+e+"; must be formatted as e.g. #f0e or #f604e2.")}return"rgba("+parseInt(i.slice(0,2),16)+","+parseInt(i.slice(2,4),16)+","+parseInt(i.slice(4,6),16)+","+t+")"}function Ar(e,t,i){try{e.style[t]=i}catch(e){return}}var xr=function(e){Dt(t,e);function t(t,i,r){var n;n=e.call(this,t,i,r)||this;var a=it(xt(n),n.updateDisplay);t.on("loadstart",it(xt(n),n.toggleDisplay));t.on("texttrackchange",a);t.on("loadedmetadata",it(xt(n),n.preselectTrack));t.ready(it(xt(n),function(){if(t.tech_&&t.tech_.featuresNativeTextTracks){this.hide();return}t.on("fullscreenchange",a);t.on("playerresize",a);s.addEventListener("orientationchange",a);t.on("dispose",function(){return s.removeEventListener("orientationchange",a)});var e=this.options_.playerOptions.tracks||[];for(var i=0;i<e.length;i++){this.player_.addRemoteTextTrack(e[i],true)}this.preselectTrack()}));return n}var i=t.prototype;i.preselectTrack=function e(){var t={captions:1,subtitles:1};var i=this.player_.textTracks();var r=this.player_.cache_.selectedLanguage;var n;var a;var s;for(var o=0;o<i.length;o++){var l=i[o];if(r&&r.enabled&&r.language&&r.language===l.language&&l.kind in t){if(l.kind===r.kind){s=l}else if(!s){s=l}}else if(r&&!r.enabled){s=null;n=null;a=null}else if(l["default"]){if(l.kind==="descriptions"&&!n){n=l}else if(l.kind in t&&!a){a=l}}}if(s){s.mode="showing"}else if(a){a.mode="showing"}else if(n){n.mode="showing"}};i.toggleDisplay=function e(){if(this.player_.tech_&&this.player_.tech_.featuresNativeTextTracks){this.hide()}else{this.show()}};i.createEl=function t(){return e.prototype.createEl.call(this,"div",{className:"vjs-text-track-display"},{"aria-live":"off","aria-atomic":"true"})};i.clearDisplay=function e(){if(typeof s.WebVTT==="function"){s.WebVTT.processCues(s,[],this.el_)}};i.updateDisplay=function e(){var t=this.player_.textTracks();var i=this.options_.allowMultipleShowingTracks;this.clearDisplay();if(i){var r=[];for(var n=0;n<t.length;++n){var a=t[n];if(a.mode!=="showing"){continue}r.push(a)}this.updateForTrack(r);return}var s=null;var o=null;var l=t.length;while(l--){var u=t[l];if(u.mode==="showing"){if(u.kind==="descriptions"){s=u}else{o=u}}}if(o){if(this.getAttribute("aria-live")!=="off"){this.setAttribute("aria-live","off")}this.updateForTrack(o)}else if(s){if(this.getAttribute("aria-live")!=="assertive"){this.setAttribute("aria-live","assertive")}this.updateForTrack(s)}};i.updateDisplayState=function e(t){var i=this.player_.textTrackSettings.getValues();var r=t.activeCues;var n=r.length;while(n--){var a=r[n];if(!a){continue}var o=a.displayState;if(i.color){o.firstChild.style.color=i.color}if(i.textOpacity){Ar(o.firstChild,"color",Ir(i.color||"#fff",i.textOpacity))}if(i.backgroundColor){o.firstChild.style.backgroundColor=i.backgroundColor}if(i.backgroundOpacity){Ar(o.firstChild,"backgroundColor",Ir(i.backgroundColor||"#000",i.backgroundOpacity))}if(i.windowColor){if(i.windowOpacity){Ar(o,"backgroundColor",Ir(i.windowColor,i.windowOpacity))}else{o.style.backgroundColor=i.windowColor}}if(i.edgeStyle){if(i.edgeStyle==="dropshadow"){o.firstChild.style.textShadow="2px 2px 3px "+jr+", 2px 2px 4px "+jr+", 2px 2px 5px "+jr}else if(i.edgeStyle==="raised"){o.firstChild.style.textShadow="1px 1px "+jr+", 2px 2px "+jr+", 3px 3px "+jr}else if(i.edgeStyle==="depressed"){o.firstChild.style.textShadow="1px 1px "+wr+", 0 1px "+wr+", -1px -1px "+jr+", 0 -1px "+jr}else if(i.edgeStyle==="uniform"){o.firstChild.style.textShadow="0 0 4px "+jr+", 0 0 4px "+jr+", 0 0 4px "+jr+", 0 0 4px "+jr}}if(i.fontPercent&&i.fontPercent!==1){var l=s.parseFloat(o.style.fontSize);o.style.fontSize=l*i.fontPercent+"px";o.style.height="auto";o.style.top="auto"}if(i.fontFamily&&i.fontFamily!=="default"){if(i.fontFamily==="small-caps"){o.firstChild.style.fontVariant="small-caps"}else{o.firstChild.style.fontFamily=Cr[i.fontFamily]}}}};i.updateForTrack=function e(t){if(!Array.isArray(t)){t=[t]}if(typeof s.WebVTT!=="function"||t.every(function(e){return!e.activeCues})){return}var i=[];for(var r=0;r<t.length;++r){var n=t[r];for(var a=0;a<n.activeCues.length;++a){i.push(n.activeCues[a])}}s.WebVTT.processCues(s,i,this.el_);for(var o=0;o<t.length;++o){var l=t[o];for(var u=0;u<l.activeCues.length;++u){var c=l.activeCues[u].displayState;ue(c,"vjs-text-track-cue");ue(c,"vjs-text-track-cue-"+(l.language?l.language:o))}if(this.player_.textTrackSettings){this.updateDisplayState(l)}}};return t}(It);It.registerComponent("TextTrackDisplay",xr);var Pr=function(e){Dt(t,e);function t(){return e.apply(this,arguments)||this}var i=t.prototype;i.createEl=function t(){var i=this.player_.isAudio();
1var r=this.localize(i?"Audio Player":"Video Player");var n=ae("span",{className:"vjs-control-text",innerHTML:this.localize("{1} is loading.",[r])});var a=e.prototype.createEl.call(this,"div",{className:"vjs-loading-spinner",dir:"ltr"});a.appendChild(n);return a};return t}(It);It.registerComponent("LoadingSpinner",Pr);var Or=function(e){Dt(t,e);function t(){return e.apply(this,arguments)||this}var i=t.prototype;i.createEl=function e(t,i,r){if(i===void 0){i={}}if(r===void 0){r={}}t="button";i=C({innerHTML:\'<span aria-hidden="true" class="vjs-icon-placeholder"></span>\',className:this.buildCSSClass()},i);r=C({type:"button"},r);var n=It.prototype.createEl.call(this,t,i,r);this.createControlTextEl(n);return n};i.addChild=function e(t,i){if(i===void 0){i={}}var r=this.constructor.name;b.warn("Adding an actionable (user controllable) child to a Button ("+r+") is not supported; use a ClickableComponent instead.");return It.prototype.addChild.call(this,t,i)};i.enable=function t(){e.prototype.enable.call(this);this.el_.removeAttribute("disabled")};i.disable=function t(){e.prototype.disable.call(this);this.el_.setAttribute("disabled","disabled")};i.handleKeyDown=function t(i){if(Qt.isEventKey(i,"Space")||Qt.isEventKey(i,"Enter")){i.stopPropagation();return}e.prototype.handleKeyDown.call(this,i)};return t}(kr);It.registerComponent("Button",Or);var Lr=function(e){Dt(t,e);function t(t,i){var r;r=e.call(this,t,i)||this;r.mouseused_=false;r.on("mousedown",r.handleMouseDown);return r}var i=t.prototype;i.buildCSSClass=function e(){return"vjs-big-play-button"};i.handleClick=function e(t){var i=this.player_.play();if(this.mouseused_&&t.clientX&&t.clientY){var r=this.player_.usingPlugin("eme")&&this.player_.eme.sessions&&this.player_.eme.sessions.length>0;Wt(i);if(this.player_.tech(true)&&!((q||F)&&r)){this.player_.tech(true).focus()}return}var n=this.player_.getChild("controlBar");var a=n&&n.getChild("playToggle");if(!a){this.player_.tech(true).focus();return}var s=function e(){return a.focus()};if(zt(i)){i.then(s,function(){})}else{this.setTimeout(s,1)}};i.handleKeyDown=function t(i){this.mouseused_=false;e.prototype.handleKeyDown.call(this,i)};i.handleMouseDown=function e(t){this.mouseused_=true};return t}(Or);Lr.prototype.controlText_="Play Video";It.registerComponent("BigPlayButton",Lr);var Dr=function(e){Dt(t,e);function t(t,i){var r;r=e.call(this,t,i)||this;r.controlText(i&&i.controlText||r.localize("Close"));return r}var i=t.prototype;i.buildCSSClass=function t(){return"vjs-close-button "+e.prototype.buildCSSClass.call(this)};i.handleClick=function e(t){this.trigger({type:"close",bubbles:false})};i.handleKeyDown=function t(i){if(Qt.isEventKey(i,"Esc")){i.preventDefault();i.stopPropagation();this.trigger("click")}else{e.prototype.handleKeyDown.call(this,i)}};return t}(Or);It.registerComponent("CloseButton",Dr);var Rr=function(e){Dt(t,e);function t(t,i){var r;if(i===void 0){i={}}r=e.call(this,t,i)||this;i.replay=i.replay===undefined||i.replay;r.on(t,"play",r.handlePlay);r.on(t,"pause",r.handlePause);if(i.replay){r.on(t,"ended",r.handleEnded)}return r}var i=t.prototype;i.buildCSSClass=function t(){return"vjs-play-control "+e.prototype.buildCSSClass.call(this)};i.handleClick=function e(t){if(this.player_.paused()){this.player_.play()}else{this.player_.pause()}};i.handleSeeked=function e(t){this.removeClass("vjs-ended");
1if(this.player_.paused()){this.handlePause(t)}else{this.handlePlay(t)}};i.handlePlay=function e(t){this.removeClass("vjs-ended");this.removeClass("vjs-paused");this.addClass("vjs-playing");this.controlText("Pause")};i.handlePause=function e(t){this.removeClass("vjs-playing");this.addClass("vjs-paused");this.controlText("Play")};i.handleEnded=function e(t){this.removeClass("vjs-playing");this.addClass("vjs-ended");this.controlText("Replay");this.one(this.player_,"seeked",this.handleSeeked)};return t}(Or);Rr.prototype.controlText_="Play";It.registerComponent("PlayToggle",Rr);var Nr=function e(t,i){t=t<0?0:t;var r=Math.floor(t%60);var n=Math.floor(t/60%60);var a=Math.floor(t/3600);var s=Math.floor(i/60%60);var o=Math.floor(i/3600);if(isNaN(t)||t===Infinity){a=n=r="-"}a=a>0||o>0?a+":":"";n=((a||s>=10)&&n<10?"0"+n:n)+":";r=r<10?"0"+r:r;return a+n+r};var Mr=Nr;function Ur(e){Mr=e}function Br(){Mr=Nr}function Fr(e,t){if(t===void 0){t=e}return Mr(e,t)}var Hr=function(e){Dt(t,e);function t(t,i){var r;r=e.call(this,t,i)||this;r.on(t,["timeupdate","ended"],r.updateContent);r.updateTextNode_();return r}var i=t.prototype;i.createEl=function t(){var i=this.buildCSSClass();var r=e.prototype.createEl.call(this,"div",{className:i+" vjs-time-control vjs-control",innerHTML:\'<span class="vjs-control-text" role="presentation">\'+this.localize(this.labelText_)+"\\xa0</span>"});this.contentEl_=ae("span",{className:i+"-display"},{"aria-live":"off",role:"presentation"});r.appendChild(this.contentEl_);return r};i.dispose=function t(){this.contentEl_=null;this.textNode_=null;e.prototype.dispose.call(this)};i.updateTextNode_=function e(t){var i=this;if(t===void 0){t=0}t=Fr(t);if(this.formattedTime_===t){return}this.formattedTime_=t;this.requestNamedAnimationFrame("TimeDisplay#updateTextNode_",function(){if(!i.contentEl_){return}var e=i.textNode_;if(e&&i.contentEl_.firstChild!==e){e=null;b.warn("TimeDisplay#updateTextnode_: Prevented replacement of text node element since it was no longer a child of this node. Appending a new node instead.")}i.textNode_=c.createTextNode(i.formattedTime_);if(!i.textNode_){return}if(e){i.contentEl_.replaceChild(i.textNode_,e)}else{i.contentEl_.appendChild(i.textNode_)}})};i.updateContent=function e(t){};return t}(It);Hr.prototype.labelText_="Time";Hr.prototype.controlText_="Time";It.registerComponent("TimeDisplay",Hr);var Vr=function(e){Dt(t,e);function t(){return e.apply(this,arguments)||this}var i=t.prototype;i.buildCSSClass=function e(){return"vjs-current-time"};i.updateContent=function e(t){var i;if(this.player_.ended()){i=this.player_.duration()}else{i=this.player_.scrubbing()?this.player_.getCache().currentTime:this.player_.currentTime()}this.updateTextNode_(i)};return t}(Hr);Vr.prototype.labelText_="Current Time";Vr.prototype.controlText_="Current Time";It.registerComponent("CurrentTimeDisplay",Vr);var qr=function(e){Dt(t,e);function t(t,i){var r;r=e.call(this,t,i)||this;r.on(t,"durationchange",r.updateContent);r.on(t,"loadstart",r.updateContent);r.on(t,"loadedmetadata",r.updateContent);return r}var i=t.prototype;i.buildCSSClass=function e(){return"vjs-duration"};i.updateContent=function e(t){var i=this.player_.duration();this.updateTextNode_(i)};return t}(Hr);qr.prototype.labelText_="Duration";qr.prototype.controlText_="Duration";It.registerComponent("DurationDisplay",qr);var zr=function(e){Dt(t,e);function t(){return e.apply(this,arguments)||this}var i=t.prototype;i.createEl=function t(){return e.prototype.createEl.call(this,"div",{className:"vjs-time-control vjs-time-divider",innerHTML:"<div><span>/</span></div>"},{"aria-hidden":true})};return t}(It);It.registerComponent("TimeDivider",zr);var Wr=function(e){Dt(t,e);function t(t,i){var r;r=e.call(this,t,i)||this;r.on(t,"durationchange",r.updateContent);return r}var i=t.prototype;i.buildCSSClass=function e(){return"vjs-remaining-time"};i.createEl=function t(){var i=e.prototype.createEl.call(this);i.insertBefore(ae("span",{},{"aria-hidden":true},"-"),this.contentEl_);return i};i.updateContent=function e(t){if(typeof this.player_.duration()!=="number"){return}var i;if(this.player_.ended()){i=0}else if(this.player_.remainingTimeDisplay){i=this.player_.remainingTimeDisplay()}else{i=this.player_.remainingTime()}this.updateTextNode_(i)};return t}(Hr);Wr.prototype.labelText_="Remaining Time";Wr.prototype.controlText_="Remaining Time";It.registerComponent("RemainingTimeDisplay",Wr);var Gr=function(e){Dt(t,e);function t(t,i){var r;r=e.call(this,t,i)||this;r.updateShowing();r.on(r.player(),"durationchange",r.updateShowing);return r}var i=t.prototype;i.createEl=function t(){var i=e.prototype.createEl.call(this,"div",{className:"vjs-live-control vjs-control"});this.contentEl_=ae("div",{className:"vjs-live-display",innerHTML:\'<span class="vjs-control-text">\'+this.localize("Stream Type")+"\\xa0</span>"+this.localize("LIVE")},{"aria-live":"off"});i.appendChild(this.contentEl_);return i};i.dispose=function t(){this.contentEl_=null;e.prototype.dispose.call(this)};i.updateShowing=function e(t){if(this.player().duration()===Infinity){this.show()}else{this.hide()}};return t}(It);It.registerComponent("LiveDisplay",Gr);var Yr=function(e){Dt(t,e);function t(t,i){var r;r=e.call(this,t,i)||this;r.updateLiveEdgeStatus();if(r.player_.liveTracker){r.on(r.player_.liveTracker,"liveedgechange",r.updateLiveEdgeStatus)}return r}var i=t.prototype;i.createEl=function t(){var i=e.prototype.createEl.call(this,"button",{className:"vjs-seek-to-live-control vjs-control"});this.textEl_=ae("span",{className:"vjs-seek-to-live-text",innerHTML:this.localize("LIVE")},{"aria-hidden":"true"});i.appendChild(this.textEl_);return i};i.updateLiveEdgeStatus=function e(){if(!this.player_.liveTracker||this.player_.liveTracker.atLiveEdge()){this.setAttribute("aria-disabled",true);this.addClass("vjs-at-live-edge");this.controlText("Seek to live, currently playing live")}
1else{this.setAttribute("aria-disabled",false);this.removeClass("vjs-at-live-edge");this.controlText("Seek to live, currently behind live")}};i.handleClick=function e(){this.player_.liveTracker.seekToLiveEdge()};i.dispose=function t(){if(this.player_.liveTracker){this.off(this.player_.liveTracker,"liveedgechange",this.updateLiveEdgeStatus)}this.textEl_=null;e.prototype.dispose.call(this)};return t}(Or);Yr.prototype.controlText_="Seek to live, currently playing live";It.registerComponent("SeekToLive",Yr);var Kr=function e(t,i,r){t=Number(t);return Math.min(r,Math.max(i,isNaN(t)?i:t))};var Xr=function(e){Dt(t,e);function t(t,i){var r;r=e.call(this,t,i)||this;r.bar=r.getChild(r.options_.barName);r.vertical(!!r.options_.vertical);r.enable();return r}var i=t.prototype;i.enabled=function e(){return this.enabled_};i.enable=function e(){if(this.enabled()){return}this.on("mousedown",this.handleMouseDown);this.on("touchstart",this.handleMouseDown);this.on("keydown",this.handleKeyDown);this.on("click",this.handleClick);this.on(this.player_,"controlsvisible",this.update);if(this.playerEvent){this.on(this.player_,this.playerEvent,this.update)}this.removeClass("disabled");this.setAttribute("tabindex",0);this.enabled_=true};i.disable=function e(){if(!this.enabled()){return}var t=this.bar.el_.ownerDocument;this.off("mousedown",this.handleMouseDown);this.off("touchstart",this.handleMouseDown);this.off("keydown",this.handleKeyDown);this.off("click",this.handleClick);this.off(this.player_,"controlsvisible",this.update);this.off(t,"mousemove",this.handleMouseMove);this.off(t,"mouseup",this.handleMouseUp);this.off(t,"touchmove",this.handleMouseMove);this.off(t,"touchend",this.handleMouseUp);this.removeAttribute("tabindex");this.addClass("disabled");if(this.playerEvent){this.off(this.player_,this.playerEvent,this.update)}this.enabled_=false};i.createEl=function t(i,r,n){if(r===void 0){r={}}if(n===void 0){n={}}r.className=r.className+" vjs-slider";r=C({tabIndex:0},r);n=C({role:"slider","aria-valuenow":0,"aria-valuemin":0,"aria-valuemax":100,tabIndex:0},n);return e.pro'),t[1].s.push('",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\'};function Ir(e,t){var i;if(e.length===4){i=e[1]+e[1]+e[2]+e[2]+e[3]+e[3]}else if(e.length===7){i=e.slice(1)}else{throw new Error("Invalid color code provided, "+e+"; must be formatted as e.g. #f0e or #f604e2.")}return"rgba("+parseInt(i.slice(0,2),16)+","+parseInt(i.slice(2,4),16)+","+parseInt(i.slice(4,6),16)+","+t+")"}function Ar(e,t,i){try{e.style[t]=i}catch(e){return}}var xr=function(e){Dt(t,e);function t(t,i,r){var n;n=e.call(this,t,i,r)||this;var a=it(xt(n),n.updateDisplay);t.on("loadstart",it(xt(n),n.toggleDisplay));t.on("texttrackchange",a);t.on("loadedmetadata",it(xt(n),n.preselectTrack));t.ready(it(xt(n),function(){if(t.tech_&&t.tech_.featuresNativeTextTracks){this.hide();return}t.on("fullscreenchange",a);t.on("playerresize",a);s.addEventListener("orientationchange",a);t.on("dispose",function(){return s.removeEventListener("orientationchange",a)});var e=this.options_.playerOptions.tracks||[];for(var i=0;i<e.length;i++){this.player_.addRemoteTextTrack(e[i],true)}this.preselectTrack()}));return n}var i=t.prototype;i.preselectTrack=function e(){var t={captions:1,subtitles:1};var i=this.player_.textTracks();var r=this.player_.cache_.selectedLanguage;var n;var a;var s;for(var o=0;o<i.length;o++){var l=i[o];if(r&&r.enabled&&r.language&&r.language===l.language&&l.kind in t){if(l.kind===r.kind){s=l}else if(!s){s=l}}else if(r&&!r.enabled){s=null;n=null;a=null}else if(l["default"]){if(l.kind==="descriptions"&&!n){n=l}else if(l.kind in t&&!a){a=l}}}if(s){s.mode="showing"}else if(a){a.mode="showing"}else if(n){n.mode="showing"}};i.toggleDisplay=function e(){if(this.player_.tech_&&this.player_.tech_.featuresNativeTextTracks){this.hide()}else{this.show()}};i.createEl=function t(){return e.prototype.createEl.call(this,"div",{className:"vjs-text-track-display"},{"aria-live":"off","aria-atomic":"true"})};i.clearDisplay=function e(){if(typeof s.WebVTT==="function"){s.WebVTT.processCues(s,[],this.el_)}};i.updateDisplay=function e(){var t=this.player_.textTracks();var i=this.options_.allowMultipleShowingTracks;this.clearDisplay();if(i){var r=[];for(var n=0;n<t.length;++n){var a=t[n];if(a.mode!=="showing"){continue}r.push(a)}this.updateForTrack(r);return}var s=null;var o=null;var l=t.length;while(l--){var u=t[l];if(u.mode==="showing"){if(u.kind==="descriptions"){s=u}else{o=u}}}if(o){if(this.getAttribute("aria-live")!=="off"){this.setAttribute("aria-live","off")}this.updateForTrack(o)}else if(s){if(this.getAttribute("aria-live")!=="assertive"){this.setAttribute("aria-live","assertive")}this.updateForTrack(s)}};i.updateDisplayState=function e(t){var i=this.player_.textTrackSettings.getValues();var r=t.activeCues;var n=r.length;while(n--){var a=r[n];if(!a){continue}var o=a.displayState;if(i.color){o.firstChild.style.color=i.color}if(i.textOpacity){Ar(o.firstChild,"color",Ir(i.color||"#fff",i.textOpacity))}if(i.backgroundColor){o.firstChild.style.backgroundColor=i.backgroundColor}if(i.backgroundOpacity){Ar(o.firstChild,"backgroundColor",Ir(i.backgroundColor||"#000",i.backgroundOpacity))}if(i.windowColor){if(i.windowOpacity){Ar(o,"backgroundColor",Ir(i.windowColor,i.windowOpacity))}else{o.style.backgroundColor=i.windowColor}}if(i.edgeStyle){if(i.edgeStyle==="dropshadow"){o.firstChild.style.textShadow="2px 2px 3px "+jr+", 2px 2px 4px "+jr+", 2px 2px 5px "+jr}else if(i.edgeStyle==="raised"){o.firstChild.style.textShadow="1px 1px "+jr+", 2px 2px "+jr+", 3px 3px "+jr}else if(i.edgeStyle==="depressed"){o.firstChild.style.textShadow="1px 1px "+wr+", 0 1px "+wr+", -1px -1px "+jr+", 0 -1px "+jr}else if(i.edgeStyle==="uniform"){o.firstChild.style.textShadow="0 0 4px "+jr+", 0 0 4px "+jr+", 0 0 4px "+jr+", 0 0 4px "+jr}}if(i.fontPercent&&i.fontPercent!==1){var l=s.parseFloat(o.style.fontSize);o.style.fontSize=l*i.fontPercent+"px";o.style.height="auto";o.style.top="auto"}if(i.fontFamily&&i.fontFamily!=="default"){if(i.fontFamily==="small-caps"){o.firstChild.style.fontVariant="small-caps"}else{o.firstChild.style.fontFamily=Cr[i.fontFamily]}}}};i.updateForTrack=function e(t){if(!Array.isArray(t)){t=[t]}if(typeof s.WebVTT!=="function"||t.every(function(e){return!e.activeCues})){return}var i=[];for(var r=0;r<t.length;++r){var n=t[r];for(var a=0;a<n.activeCues.length;++a){i.push(n.activeCues[a])}}s.WebVTT.processCues(s,i,this.el_);for(var o=0;o<t.length;++o){var l=t[o];for(var u=0;u<l.activeCues.length;++u){var c=l.activeCues[u].displayState;ue(c,"vjs-text-track-cue");ue(c,"vjs-text-track-cue-"+(l.language?l.language:o))}if(this.player_.textTrackSettings){this.updateDisplayState(l)}}};return t}(It);It.registerComponent("TextTrackDisplay",xr);var Pr=function(e){Dt(t,e);function t(){return e.apply(this,arguments)||this}var i=t.prototype;i.createEl=function t(){var i=this.player_.isAudio();
1var r=this.localize(i?"Audio Player":"Video Player");var n=ae("span",{className:"vjs-control-text",innerHTML:this.localize("{1} is loading.",[r])});var a=e.prototype.createEl.call(this,"div",{className:"vjs-loading-spinner",dir:"ltr"});a.appendChild(n);return a};return t}(It);It.registerComponent("LoadingSpinner",Pr);var Or=function(e){Dt(t,e);function t(){return e.apply(this,arguments)||this}var i=t.prototype;i.createEl=function e(t,i,r){if(i===void 0){i={}}if(r===void 0){r={}}t="button";i=C({innerHTML:\'<span aria-hidden="true" class="vjs-icon-placeholder"></span>\',className:this.buildCSSClass()},i);r=C({type:"button"},r);var n=It.prototype.createEl.call(this,t,i,r);this.createControlTextEl(n);return n};i.addChild=function e(t,i){if(i===void 0){i={}}var r=this.constructor.name;b.warn("Adding an actionable (user controllable) child to a Button ("+r+") is not supported; use a ClickableComponent instead.");return It.prototype.addChild.call(this,t,i)};i.enable=function t(){e.prototype.enable.call(this);this.el_.removeAttribute("disabled")};i.disable=function t(){e.prototype.disable.call(this);this.el_.setAttribute("disabled","disabled")};i.handleKeyDown=function t(i){if(Qt.isEventKey(i,"Space")||Qt.isEventKey(i,"Enter")){i.stopPropagation();return}e.prototype.handleKeyDown.call(this,i)};return t}(kr);It.registerComponent("Button",Or);var Lr=function(e){Dt(t,e);function t(t,i){var r;r=e.call(this,t,i)||this;r.mouseused_=false;r.on("mousedown",r.handleMouseDown);return r}var i=t.prototype;i.buildCSSClass=function e(){return"vjs-big-play-button"};i.handleClick=function e(t){var i=this.player_.play();if(this.mouseused_&&t.clientX&&t.clientY){var r=this.player_.usingPlugin("eme")&&this.player_.eme.sessions&&this.player_.eme.sessions.length>0;Wt(i);if(this.player_.tech(true)&&!((q||F)&&r)){this.player_.tech(true).focus()}return}var n=this.player_.getChild("controlBar");var a=n&&n.getChild("playToggle");if(!a){this.player_.tech(true).focus();return}var s=function e(){return a.focus()};if(zt(i)){i.then(s,function(){})}else{this.setTimeout(s,1)}};i.handleKeyDown=function t(i){this.mouseused_=false;e.prototype.handleKeyDown.call(this,i)};i.handleMouseDown=function e(t){this.mouseused_=true};return t}(Or);Lr.prototype.controlText_="Play Video";It.registerComponent("BigPlayButton",Lr);var Dr=function(e){Dt(t,e);function t(t,i){var r;r=e.call(this,t,i)||this;r.controlText(i&&i.controlText||r.localize("Close"));return r}var i=t.prototype;i.buildCSSClass=function t(){return"vjs-close-button "+e.prototype.buildCSSClass.call(this)};i.handleClick=function e(t){this.trigger({type:"close",bubbles:false})};i.handleKeyDown=function t(i){if(Qt.isEventKey(i,"Esc")){i.preventDefault();i.stopPropagation();this.trigger("click")}else{e.prototype.handleKeyDown.call(this,i)}};return t}(Or);It.registerComponent("CloseButton",Dr);var Rr=function(e){Dt(t,e);function t(t,i){var r;if(i===void 0){i={}}r=e.call(this,t,i)||this;i.replay=i.replay===undefined||i.replay;r.on(t,"play",r.handlePlay);r.on(t,"pause",r.handlePause);if(i.replay){r.on(t,"ended",r.handleEnded)}return r}var i=t.prototype;i.buildCSSClass=function t(){return"vjs-play-control "+e.prototype.buildCSSClass.call(this)};i.handleClick=function e(t){if(this.player_.paused()){this.player_.play()}else{this.player_.pause()}};i.handleSeeked=function e(t){this.removeClass("vjs-ended");
1if(this.player_.paused()){this.handlePause(t)}else{this.handlePlay(t)}};i.handlePlay=function e(t){this.removeClass("vjs-ended");this.removeClass("vjs-paused");this.addClass("vjs-playing");this.controlText("Pause")};i.handlePause=function e(t){this.removeClass("vjs-playing");this.addClass("vjs-paused");this.controlText("Play")};i.handleEnded=function e(t){this.removeClass("vjs-playing");this.addClass("vjs-ended");this.controlText("Replay");this.one(this.player_,"seeked",this.handleSeeked)};return t}(Or);Rr.prototype.controlText_="Play";It.registerComponent("PlayToggle",Rr);var Nr=function e(t,i){t=t<0?0:t;var r=Math.floor(t%60);var n=Math.floor(t/60%60);var a=Math.floor(t/3600);var s=Math.floor(i/60%60);var o=Math.floor(i/3600);if(isNaN(t)||t===Infinity){a=n=r="-"}a=a>0||o>0?a+":":"";n=((a||s>=10)&&n<10?"0"+n:n)+":";r=r<10?"0"+r:r;return a+n+r};var Mr=Nr;function Ur(e){Mr=e}function Br(){Mr=Nr}function Fr(e,t){if(t===void 0){t=e}return Mr(e,t)}var Hr=function(e){Dt(t,e);function t(t,i){var r;r=e.call(this,t,i)||this;r.on(t,["timeupdate","ended"],r.updateContent);r.updateTextNode_();return r}var i=t.prototype;i.createEl=function t(){var i=this.buildCSSClass();var r=e.prototype.createEl.call(this,"div",{className:i+" vjs-time-control vjs-control",innerHTML:\'<span class="vjs-control-text" role="presentation">\'+this.localize(this.labelText_)+"\\xa0</span>"});this.contentEl_=ae("span",{className:i+"-display"},{"aria-live":"off",role:"presentation"});r.appendChild(this.contentEl_);return r};i.dispose=function t(){this.contentEl_=null;this.textNode_=null;e.prototype.dispose.call(this)};i.updateTextNode_=function e(t){var i=this;if(t===void 0){t=0}t=Fr(t);if(this.formattedTime_===t){return}this.formattedTime_=t;this.requestNamedAnimationFrame("TimeDisplay#updateTextNode_",function(){if(!i.contentEl_){return}var e=i.textNode_;if(e&&i.contentEl_.firstChild!==e){e=null;b.warn("TimeDisplay#updateTextnode_: Prevented replacement of text node element since it was no longer a child of this node. Appending a new node instead.")}i.textNode_=c.createTextNode(i.formattedTime_);if(!i.textNode_){return}if(e){i.contentEl_.replaceChild(i.textNode_,e)}else{i.contentEl_.appendChild(i.textNode_)}})};i.updateContent=function e(t){};return t}(It);Hr.prototype.labelText_="Time";Hr.prototype.controlText_="Time";It.registerComponent("TimeDisplay",Hr);var Vr=function(e){Dt(t,e);function t(){return e.apply(this,arguments)||this}var i=t.prototype;i.buildCSSClass=function e(){return"vjs-current-time"};i.updateContent=function e(t){var i;if(this.player_.ended()){i=this.player_.duration()}else{i=this.player_.scrubbing()?this.player_.getCache().currentTime:this.player_.currentTime()}this.updateTextNode_(i)};return t}(Hr);Vr.prototype.labelText_="Current Time";Vr.prototype.controlText_="Current Time";It.registerComponent("CurrentTimeDisplay",Vr);var qr=function(e){Dt(t,e);function t(t,i){var r;r=e.call(this,t,i)||this;r.on(t,"durationchange",r.updateContent);r.on(t,"loadstart",r.updateContent);r.on(t,"loadedmetadata",r.updateContent);return r}var i=t.prototype;i.buildCSSClass=function e(){return"vjs-duration"};i.updateContent=function e(t){var i=this.player_.duration();this.updateTextNode_(i)};return t}(Hr);qr.prototype.labelText_="Duration";qr.prototype.controlText_="Duration";It.registerComponent("DurationDisplay",qr);var zr=function(e){Dt(t,e);function t(){return e.apply(this,arguments)||this}var i=t.prototype;i.createEl=function t(){return e.prototype.createEl.call(this,"div",{className:"vjs-time-control vjs-time-divider",innerHTML:"<div><span>/</span></div>"},{"aria-hidden":true})};return t}(It);It.registerComponent("TimeDivider",zr);var Wr=function(e){Dt(t,e);function t(t,i){var r;r=e.call(this,t,i)||this;r.on(t,"durationchange",r.updateContent);return r}var i=t.prototype;i.buildCSSClass=function e(){return"vjs-remaining-time"};i.createEl=function t(){var i=e.prototype.createEl.call(this);i.insertBefore(ae("span",{},{"aria-hidden":true},"-"),this.contentEl_);return i};i.updateContent=function e(t){if(typeof this.player_.duration()!=="number"){return}var i;if(this.player_.ended()){i=0}else if(this.player_.remainingTimeDisplay){i=this.player_.remainingTimeDisplay()}else{i=this.player_.remainingTime()}this.updateTextNode_(i)};return t}(Hr);Wr.prototype.labelText_="Remaining Time";Wr.prototype.controlText_="Remaining Time";It.registerComponent("RemainingTimeDisplay",Wr);var Gr=function(e){Dt(t,e);function t(t,i){var r;r=e.call(this,t,i)||this;r.updateShowing();r.on(r.player(),"durationchange",r.updateShowing);return r}var i=t.prototype;i.createEl=function t(){var i=e.prototype.createEl.call(this,"div",{className:"vjs-live-control vjs-control"});this.contentEl_=ae("div",{className:"vjs-live-display",innerHTML:\'<span class="vjs-control-text">\'+this.localize("Stream Type")+"\\xa0</span>"+this.localize("LIVE")},{"aria-live":"off"});i.appendChild(this.contentEl_);return i};i.dispose=function t(){this.contentEl_=null;e.prototype.dispose.call(this)};i.updateShowing=function e(t){if(this.player().duration()===Infinity){this.show()}else{this.hide()}};return t}(It);It.registerComponent("LiveDisplay",Gr);var Yr=function(e){Dt(t,e);function t(t,i){var r;r=e.call(this,t,i)||this;r.updateLiveEdgeStatus();if(r.player_.liveTracker){r.on(r.player_.liveTracker,"liveedgechange",r.updateLiveEdgeStatus)}return r}var i=t.prototype;i.createEl=function t(){var i=e.prototype.createEl.call(this,"button",{className:"vjs-seek-to-live-control vjs-control"});this.textEl_=ae("span",{className:"vjs-seek-to-live-text",innerHTML:this.localize("LIVE")},{"aria-hidden":"true"});i.appendChild(this.textEl_);return i};i.updateLiveEdgeStatus=function e(){if(!this.player_.liveTracker||this.player_.liveTracker.atLiveEdge()){this.setAttribute("aria-disabled",true);this.addClass("vjs-at-live-edge");this.controlText("Seek to live, currently playing live")}
1else{this.setAttribute("aria-disabled",false);this.removeClass("vjs-at-live-edge");this.controlText("Seek to live, currently behind live")}};i.handleClick=function e(){this.player_.liveTracker.seekToLiveEdge()};i.dispose=function t(){if(this.player_.liveTracker){this.off(this.player_.liveTracker,"liveedgechange",this.updateLiveEdgeStatus)}this.textEl_=null;e.prototype.dispose.call(this)};return t}(Or);Yr.prototype.controlText_="Seek to live, currently playing live";It.registerComponent("SeekToLive",Yr);var Kr=function e(t,i,r){t=Number(t);return Math.min(r,Math.max(i,isNaN(t)?i:t))};var Xr=function(e){Dt(t,e);function t(t,i){var r;r=e.call(this,t,i)||this;r.bar=r.getChild(r.options_.barName);r.vertical(!!r.options_.vertical);r.enable();return r}var i=t.prototype;i.enabled=function e(){return this.enabled_};i.enable=function e(){if(this.enabled()){return}this.on("mousedown",this.handleMouseDown);this.on("touchstart",this.handleMouseDown);this.on("keydown",this.handleKeyDown);this.on("click",this.handleClick);this.on(this.player_,"controlsvisible",this.update);if(this.playerEvent){this.on(this.player_,this.playerEvent,this.update)}this.removeClass("disabled");this.setAttribute("tabindex",0);this.enabled_=true};i.disable=function e(){if(!this.enabled()){return}var t=this.bar.el_.ownerDocument;this.off("mousedown",this.handleMouseDown);this.off("touchstart",this.handleMouseDown);this.off("keydown",this.handleKeyDown);this.off("click",this.handleClick);this.off(this.player_,"controlsvisible",this.update);this.off(t,"mousemove",this.handleMouseMove);this.off(t,"mouseup",this.handleMouseUp);this.off(t,"touchmove",this.handleMouseMove);this.off(t,"touchend",this.handleMouseUp);this.removeAttribute("tabindex");this.addClass("disabled");if(this.playerEvent){this.off(this.player_,this.playerEvent,this.update)}this.enabled_=false};i.createEl=function t(i,r,n){if(r===void 0){r={}}if(n===void 0){n={}}r.className=r.className+" vjs-slider";r=C({tabIndex:0},r);n=C({role:"slider","aria-valuenow":0,"aria-valuemin":0,"aria-valuemax":100,tabIndex:0},n);return e.pro'),t[0].s.push('totype.createEl.call(this,i,r,n)};i.handleMouseDown=function e(t){var i=this.bar.el_.ownerDocument;if(t.type==="mousedown"){t.preventDefault()}if(t.type==="touchstart"&&!H){t.preventDefault()}ge();this.addClass("vjs-sliding");this.trigger("slideractive");this.on(i,"mousemove",this.handleMouseMove);this.on(i,"mouseup",this.handleMouseUp);this.on(i,"touchmove",this.handleMouseMove);this.on(i,"touchend",this.handleMouseUp);this.handleMouseMove(t)};i.handleMouseMove=function e(t){};i.handleMouseUp=function e(){var t=this.bar.el_.ownerDocument;ye();this.removeClass("vjs-sliding");this.trigger("sliderinactive");this.off(t,"mousemove",this.handleMouseMove);this.off(t,"mouseup",this.handleMouseUp);this.off(t,"touchmove",this.handleMouseMove);this.off(t,"touchend",this.handleMouseUp);this.update()};i.update=function e(){var t=this;if(!this.el_||!this.bar){return}var i=this.getProgress();if(i===this.progress_){return i}this.progress_=i;this.requestNamedAnimationFrame("Slider#update",function(){var e=t.vertical()?"height":"width";t.bar.el().style[e]=(i*100).toFixed(2)+"%"});return i};i.getProgress=function e(){return Number(Kr(this.getPercent(),0,1).toFixed(4))};i.calculateDistance=function e(t){var i=Te(this.el_,t);if(this.vertical()){return i.y}return i.x};i.handleKeyDown=function t(i){if(Qt.isEventKey(i,"Left")||Qt.isEventKey(i,"Down")){i.preventDefault();i.stopPropagation();this.stepBack()}else if(Qt.isEventKey(i,"Right")||Qt.isEventKey(i,"Up")){i.preventDefault();i.stopPropagation();this.stepForward()}else{e.prototype.handleKeyDown.call(this,i)}};i.handleClick=function e(t){t.stopPropagation();t.preventDefault()};i.vertical=function e(t){if(t===undefined){return this.vertical_||false}this.vertical_=!!t;if(this.vertical_){this.addClass("vjs-slider-vertical")}else{this.addClass("vjs-slider-horizontal")}};return t}(It);It.registerComponent("Slider",Xr);var Qr=function e(t,i){return Kr(t/i*100,0,100).toFixed(2)+"%"};var Jr=function(e){Dt(t,e);function t(t,i){var r;r=e.call(this,t,i)||this;r.partEls_=[];r.on(t,"progress",r.update);return r}var i=t.prototype;i.createEl=function t(){var i=e.prototype.createEl.call(this,"div",{className:"vjs-load-progress"});var r=ae("span",{className:"vjs-control-text"});var n=ae("span",{textContent:this.localize("Loaded")});var a=c.createTextNode(": ");this.percentageEl_=ae("span",{className:"vjs-control-text-loaded-percentage",textContent:"0%"});i.appendChild(r);r.appendChild(n);r.appendChild(a);r.appendChild(this.percentageEl_);return i};i.dispose=function t(){this.partEls_=null;this.percentageEl_=null;e.prototype.dispose.call(this)};i.update=function e(t){var i=this;this.requestNamedAnimationFrame("LoadProgressBar#update",function(){var e=i.player_.liveTracker;var t=i.player_.buffered();var r=e&&e.isLive()?e.seekableEnd():i.player_.duration();var n=i.player_.bufferedEnd();var a=i.partEls_;var s=Qr(n,r);if(i.percent_!==s){i.el_.style.width=s;se(i.percentageEl_,s);i.percent_=s}for(var o=0;o<t.length;o++){var l=t.start(o);var u=t.end(o);var c=a[o];if(!c){c=i.el_.appendChild(ae());a[o]=c}if(c.dataset.start===l&&c.dataset.end===u){continue}c.dataset.start=l;c.dataset.end=u;c.style.left=Qr(l,n);c.style.width=Qr(u-l,n)}for(var d=a.length;d>t.length;d--){i.el_.removeChild(a[d-1])}a.length=t.length})};return t}(It);It.registerComponent("LoadProgressBar",Jr);var Zr=function(e){Dt(t,e);function t(t,i){var r;r=e.call(this,t,i)||this;r.update=rt(it(xt(r),r.update),tt);return r}var i=t.prototype;i.createEl=function t(){return e.prototype.createEl.call(this,"div",{className:"vjs-time-tooltip"},{"aria-hidden":"true"})};i.update=function e(t,i,r){var n=be(this.el_);var a=_e(this.player_.el());
1var s=t.width*i;if(!a||!n){return}var o=t.left-a.left+s;var l=t.width-s+(a.right-t.right);var u=n.width/2;if(o<u){u+=u-o}else if(l<u){u=l}if(u<0){u=0}else if(u>n.width){u=n.width}u=Math.round(u);this.el_.style.right="-"+u+"px";this.write(r)};i.write=function e(t){se(this.el_,t)};i.updateTime=function e(t,i,r,n){var a=this;this.requestNamedAnimationFrame("TimeTooltip#updateTime",function(){var e;var s=a.player_.duration();if(a.player_.liveTracker&&a.player_.liveTracker.isLive()){var o=a.player_.liveTracker.liveWindow();var l=o-i*o;e=(l<1?"":"-")+Fr(l,o)}else{e=Fr(r,s)}a.update(t,i,e);if(n){n()}})};return t}(It);It.registerComponent("TimeTooltip",Zr);var $r=function(e){Dt(t,e);function t(t,i){var r;r=e.call(this,t,i)||this;r.update=rt(it(xt(r),r.update),tt);return r}var i=t.prototype;i.createEl=function t(){return e.prototype.createEl.call(this,"div",{className:"vjs-play-progress vjs-slider-bar"},{"aria-hidden":"true"})};i.update=function e(t,i){var r=this.getChild("timeTooltip");if(!r){return}var n=this.player_.scrubbing()?this.player_.getCache().currentTime:this.player_.currentTime();r.updateTime(t,i,n)};return t}(It);$r.prototype.options_={children:[]};if(!X&&!N){$r.prototype.options_.children.push("timeTooltip")}It.registerComponent("PlayProgressBar",$r);var en=function(e){Dt(t,e);function t(t,i){var r;r=e.call(this,t,i)||this;r.update=rt(it(xt(r),r.update),tt);return r}var i=t.prototype;i.createEl=function t(){return e.prototype.createEl.call(this,"div",{className:"vjs-mouse-display"})};i.update=function e(t,i){var r=this;var n=i*this.player_.duration();this.getChild("timeTooltip").updateTime(t,i,n,function(){r.el_.style.left=t.width*i+"px"})};return t}(It);en.prototype.options_={children:["timeTooltip"]};It.registerComponent("MouseTimeDisplay",en);var tn=5;var rn=12;var nn=function(e){Dt(t,e);function t(t,i){var r;r=e.call(this,t,i)||this;r.setEventHandlers_();return r}var i=t.prototype;i.setEventHandlers_=function e(){this.update_=it(this,this.update);this.update=rt(this.update_,tt);this.on(this.player_,["ended","durationchange","timeupdate"],this.update);if(this.player_.liveTracker){this.on(this.player_.liveTracker,"liveedgechange",this.update)}this.updateInterval=null;this.on(this.player_,["playing"],this.enableInterval_);this.on(this.player_,["ended","pause","waiting"],this.disableInterval_);if("hidden"in c&&"visibilityState"in c){this.on(c,"visibilitychange",this.toggleVisibility_)}};i.toggleVisibility_=function e(t){if(c.hidden){this.disableInterval_(t)}else{this.enableInterval_();this.update()}};i.enableInterval_=function e(){if(this.updateInterval){return}this.updateInterval=this.setInterval(this.update,tt)};i.disableInterval_=function e(t){if(this.player_.liveTracker&&this.player_.liveTracker.isLive()&&t&&t.type!=="ended"){return}if(!this.updateInterval){return}this.clearInterval(this.updateInterval);this.updateInterval=null};i.createEl=function t(){return e.prototype.createEl.call(this,"div",{className:"vjs-progress-holder"},{"aria-label":this.localize("Progress Bar")})};i.update=function t(i){var r=this;var n=e.prototype.update.call(this);this.requestNamedAnimationFrame("SeekBar#update",function(){var e=r.player_.ended()?r.player_.duration():r.getCurrentTime_();var t=r.player_.liveTracker;var i=r.player_.duration();if(t&&t.isLive()){i=r.player_.liveTracker.liveCurrentTime()}if(r.percent_!==n){r.el_.setAttribute("aria-valuenow",(n*100).toFixed(2));r.percent_=n}if(r.currentTime_!==e||r.duration_!==i){r.el_.setAttribute("aria-valuetext",r.localize("progress bar timing: currentTime={1} duration={2}",[Fr(e,i),Fr(i,i)],"{1} of {2}"));r.currentTime_=e;r.duration_=i}if(r.bar){r.bar.update(_e(r.el()),r.getProgress())}});return n};i.getCurrentTime_=function e(){return this.player_.scrubbing()?this.player_.getCache().currentTime:this.player_.currentTime()};i.getPercent=function e(){var t=this.getCurrentTime_();var i;var r=this.player_.liveTracker;if(r&&r.isLive()){i=(t-r.seekableStart())/r.liveWindow();if(r.atLiveEdge()){i=1}}else{i=t/this.player_.duration()}return i};i.handleMouseDown=function t(i){if(!Ce(i)){return}i.stopPropagation();this.player_.scrubbing(true);this.videoWasPlaying=!this.player_.paused();this.player_.pause();e.prototype.handleMouseDown.call(this,i)};i.handleMouseMove=function e(t){if(!Ce(t)){return}var i;var r=this.calculateDistance(t);var n=this.player_.liveTracker;if(!n||!n.isLive()){i=r*this.player_.duration();if(i===this.player_.duration()){i=i-.1}}else{if(r>=.99){n.seekToLiveEdge();return}var a=n.seekableStart();var s=n.liveCurrentTime();i=a+r*n.liveWindow();if(i>=s){i=s}if(i<=a){i=a+.1}if(i===Infinity){return}}this.player_.currentTime(i)};i.enable=function t(){e.prototype.enable.call(this);var i=this.getChild("mouseTimeDisplay");if(!i){return}i.show()};i.disable=function t(){e.prototype.disable.call(this);var i=this.getChild("mouseTimeDisplay");if(!i){return}i.hide()};i.handleMouseUp=function t(i){e.prototype.handleMouseUp.call(this,i);if(i){i.stopPropagation()}this.player_.scrubbing(false);this.player_.trigger({type:"timeupdate",target:this,manuallyTriggered:true});if(this.videoWasPlaying){Wt(this.player_.play())}else{this.update_()}};i.stepForward=function e(){this.player_.currentTime(this.player_.currentTime()+tn)};i.stepBack=function e(){this.player_.currentTime(this.player_.currentTime()-tn)};i.handleAction=function e(t){if(this.player_.paused()){this.player_.play()}else{this.player_.pause()}};i.handleKeyDown=function t(i){if(Qt.isEventKey(i,"Space")||Qt.isEventKey(i,"Enter")){i.preventDefault();i.stopPropagation();this.handleAction(i)}else if(Qt.isEventKey(i,"Home")){i.preventDefault();i.stopPropagation();this.player_.currentTime(0)}else if(Qt.isEventKey(i,"End")){i.preventDefault();i.stopPropagation();this.player_.currentTime(this.player_.duration())}else if(/^[0-9]$/.test(Qt(i))){i.preventDefault();i.stopPropagation();var r=(Qt.codes[Qt(i)]-Qt.codes["0"])*10/100;this.player_.currentTime(this.player_.duration()*r)}else if(Qt.isEventKey(i,"PgDn")){i.preventDefault();i.stopPropagation();this.player_.currentTime(this.player_.currentTime()-tn*rn)}else if(Qt.isEventKey(i,"PgUp")){i.preventDefault();i.stopPropagation();this.player_.currentTime(this.player_.currentTime()+tn*rn)}else{e.prototype.handleKeyDown.call(this,i)}};i.dispose=function t(){this.disableInterval_();this.off(this.player_,["ended","durationchange","timeupdate"],this.update);if(this.player_.liveTracker){this.on(this.player_.liveTracker,"liveedgechange",this.update)}this.off(this.player_,["playing"],this.enableInterval_);this.off(this.player_,["ended","pause","waiting"],this.disableInterval_);if("hidden"in c&&"visibilityState"in c){this.off(c,"visibilitychange",this.toggleVisibility_)}e.prototype.dispose.call(this)};return t}(Xr);nn.prototype.options_={children:["loadProgressBar","playProgressBar"],barName:"playProgressBar"};if(!X&&!N){nn.prototype.options_.children.splice(1,0,"mouseTimeDisplay")}It.registerComponent("SeekBar",nn);var an=function(e){Dt(t,e);function t(t,i){var r;r=e.call(this,t,i)||this;r.handleMouseMove=rt(it(xt(r),r.handleMouseMove),tt);r.throttledHandleMouseSeek=rt(it(xt(r),r.handleMouseSeek),tt);r.enable();return r}var i=t.prototype;i.createEl=function t(){return e.prototype.createEl.call(this,"div",{className:"vjs-progress-control vjs-control"})};i.handleMouseMove=function e(t){var i=this.getChild("seekBar");if(!i){return}var r=i.getChild("playProgressBar");var n=i.getChild("mouseTimeDisplay");if(!r&&!n){return}var a=i.el();var s=be(a);var o=Te(a,t).x;o=Kr(o,0,1);if(n){n.update(s,o)}if(r){r.update(s,i.getProgress())}};i.handleMouseSeek=function e(t){var i=this.getChild("seekBar");if(i){i.handleMouseMove(t)}};i.enabled=function e(){return this.enabled_};
1i.disable=function e(){this.children().forEach(function(e){return e.disable&&e.disable()});if(!this.enabled()){return}this.off(["mousedown","touchstart"],this.handleMouseDown);this.off(this.el_,"mousemove",this.handleMouseMove);this.handleMouseUp();this.addClass("disabled");this.enabled_=false};i.enable=function e(){this.children().forEach(function(e){return e.enable&&e.enable()});if(this.enabled()){return}this.on(["mousedown","touchstart"],this.handleMouseDown);this.on(this.el_,"mousemove",this.handleMouseMove);this.removeClass("disabled");this.enabled_=true};i.handleMouseDown=function e(t){var i=this.el_.ownerDocument;var r=this.getChild("seekBar");if(r){r.handleMouseDown(t)}this.on(i,"mousemove",this.throttledHandleMouseSeek);this.on(i,"touchmove",this.throttledHandleMouseSeek);this.on(i,"mouseup",this.handleMouseUp);this.on(i,"touchend",this.handleMouseUp)};i.handleMouseUp=function e(t){var i=this.el_.ownerDocument;var r=this.getChild("seekBar");if(r){r.handleMouseUp(t)}this.off(i,"mousemove",this.throttledHandleMouseSeek);this.off(i,"touchmove",this.throttledHandleMouseSeek);this.off(i,"mouseup",this.handleMouseUp);this.off(i,"touchend",this.handleMouseUp)};return t}(It);an.prototype.options_={children:["seekBar"]};It.registerComponent("ProgressControl",an);var sn=function(e){Dt(t,e);function t(t,i){var r;r=e.call(this,t,i)||this;r.on(t,["enterpictureinpicture","leavepictureinpicture"],r.handlePictureInPictureChange);r.on(t,["disablepictureinpicturechanged","loadedmetadata"],r.handlePictureInPictureEnabledChange);r.disable();return r}var i=t.prototype;i.buildCSSClass=function t(){return"vjs-picture-in-picture-control "+e.prototype.buildCSSClass.call(this)};i.handlePictureInPictureEnabledChange=function e(){if(c.pictureInPictureEnabled&&this.player_.disablePictureInPicture()===false){this.enable()}else{this.disable()}};i.handlePictureInPictureChange=function e(t){if(this.player_.isInPictureInPicture()){this.controlText("Exit Picture-in-Picture")}else{this.controlText("Picture-in-Picture")}this.handlePictureInPictureEnabledChange()};i.handleClick=function e(t){if(!this.player_.isInPictureInPicture()){this.player_.requestPictureInPicture()}else{this.player_.exitPictureInPicture()}};return t}(Or);sn.prototype.controlText_="Picture-in-Picture";It.registerComponent("PictureInPictureToggle",sn);var on=function(e){Dt(t,e);function t(t,i){var r;r=e.call(this,t,i)||this;r.on(t,"fullscreenchange",r.handleFullscreenChange);if(c[t.fsApi_.fullscreenEnabled]===false){r.disable()}return r}var i=t.prototype;i.buildCSSClass=function t(){return"vjs-fullscreen-control "+e.prototype.buildCSSClass.call(this)};i.handleFullscreenChange=function e(t){if(this.player_.isFullscreen()){this.controlText("Non-Fullscreen")}else{this.controlText("Fullscreen")}};i.handleClick=function e(t){if(!this.player_.isFullscreen()){this.player_.requestFullscreen()}else{this.player_.exitFullscreen()}};return t}(Or);on.prototype.controlText_="Fullscreen";It.registerComponent("FullscreenToggle",on);var ln=function e(t,i){if(i.tech_&&!i.tech_.featuresVolumeControl){t.addClass("vjs-hidden")}t.on(i,"loadstart",function(){if(!i.tech_.featuresVolumeControl){t.addClass("vjs-hidden")}else{t.removeClass("vjs-hidden")}})};var un=function(e){Dt(t,e);function t(){return e.apply(this,arguments)||this}var i=t.prototype;i.createEl=function t(){return e.prototype.createEl.call(this,"div",{className:"vjs-volume-level",innerHTML:\'<span class="vjs-control-text"></span>\'})};return t}(It);It.registerComponent("VolumeLevel",un);var cn=function(e){Dt(t,e);function t(t,i){var r;r=e.call(this,t,i)||this;r.on("slideractive",r.updateLastVolume_);r.on(t,"volumechange",r.updateARIAAttributes);t.ready(function(){return r.updateARIAAttributes()});return r}var i=t.prototype;i.createEl=function t(){return e.prototype.createEl.call(this,"div",{className:"vjs-volume-bar vjs-slider-bar"},{"aria-label":this.localize("Volume Level"),"aria-live":"polite"})};i.handleMouseDown=function t(i){if(!Ce(i)){return}e.prototype.handleMouseDown.call(this,i)};i.handleMouseMove=function e(t){if(!Ce(t)){return}this.checkMuted();this.player_.volume(this.calculateDistance(t))};i.checkMuted=function e(){if(this.player_.muted()){this.player_.muted(false)}};i.getPercent=function e(){if(this.player_.muted()){return 0}return this.player_.volume()};i.stepForward=function e(){this.checkMuted();this.player_.volume(this.player_.volume()+.1)};i.stepBack=function e(){this.checkMuted();this.player_.volume(this.player_.volume()-.1)};i.updateARIAAttributes=function e(t){var i=this.player_.muted()?0:this.volumeAsPercentage_();this.el_.setAttribute("aria-valuenow",i);this.el_.setAttribute("aria-valuetext",i+"%")};i.volumeAsPercentage_=function e(){return Math.round(this.player_.volume()*100)};i.updateLastVolume_=function e(){var t=this;var i=this.player_.volume();this.one("sliderinactive",function(){if(t.player_.volume()===0){t.player_.lastVolume_(i)}})};return t}(Xr);cn.prototype.options_={children:["volumeLevel"]'),t[1].s.push('totype.createEl.call(this,i,r,n)};i.handleMouseDown=function e(t){var i=this.bar.el_.ownerDocument;if(t.type==="mousedown"){t.preventDefault()}if(t.type==="touchstart"&&!H){t.preventDefault()}
1ge();this.addClass("vjs-sliding");this.trigger("slideractive");this.on(i,"mousemove",this.handleMouseMove);this.on(i,"mouseup",this.handleMouseUp);this.on(i,"touchmove",this.handleMouseMove);this.on(i,"touchend",this.handleMouseUp);this.handleMouseMove(t)};i.handleMouseMove=function e(t){};i.handleMouseUp=function e(){var t=this.bar.el_.ownerDocument;ye();this.removeClass("vjs-sliding");this.trigger("sliderinactive");this.off(t,"mousemove",this.handleMouseMove);this.off(t,"mouseup",this.handleMouseUp);this.off(t,"touchmove",this.handleMouseMove);this.off(t,"touchend",this.handleMouseUp);this.update()};i.update=function e(){var t=this;if(!this.el_||!this.bar){return}var i=this.getProgress();if(i===this.progress_){return i}this.progress_=i;this.requestNamedAnimationFrame("Slider#update",function(){var e=t.vertical()?"height":"width";t.bar.el().style[e]=(i*100).toFixed(2)+"%"});return i};i.getProgress=function e(){return Number(Kr(this.getPercent(),0,1).toFixed(4))};i.calculateDistance=function e(t){var i=Te(this.el_,t);if(this.vertical()){return i.y}return i.x};i.handleKeyDown=function t(i){if(Qt.isEventKey(i,"Left")||Qt.isEventKey(i,"Down")){i.preventDefault();i.stopPropagation();this.stepBack()}else if(Qt.isEventKey(i,"Right")||Qt.isEventKey(i,"Up")){i.preventDefault();i.stopPropagation();this.stepForward()}else{e.prototype.handleKeyDown.call(this,i)}};i.handleClick=function e(t){t.stopPropagation();t.preventDefault()};i.vertical=function e(t){if(t===undefined){return this.vertical_||false}this.vertical_=!!t;if(this.vertical_){this.addClass("vjs-slider-vertical")}else{this.addClass("vjs-slider-horizontal")}};return t}(It);It.registerComponent("Slider",Xr);var Qr=function e(t,i){return Kr(t/i*100,0,100).toFixed(2)+"%"};var Jr=function(e){Dt(t,e);function t(t,i){var r;r=e.call(this,t,i)||this;r.partEls_=[];r.on(t,"progress",r.update);return r}var i=t.prototype;i.createEl=function t(){var i=e.prototype.createEl.call(this,"div",{className:"vjs-load-progress"});var r=ae("span",{className:"vjs-control-text"});var n=ae("span",{textContent:this.localize("Loaded")});var a=c.createTextNode(": ");this.percentageEl_=ae("span",{className:"vjs-control-text-loaded-percentage",textContent:"0%"});i.appendChild(r);r.appendChild(n);r.appendChild(a);r.appendChild(this.percentageEl_);return i};i.dispose=function t(){this.partEls_=null;this.percentageEl_=null;e.prototype.dispose.call(this)};i.update=function e(t){var i=this;this.requestNamedAnimationFrame("LoadProgressBar#update",function(){var e=i.player_.liveTracker;var t=i.player_.buffered();var r=e&&e.isLive()?e.seekableEnd():i.player_.duration();var n=i.player_.bufferedEnd();var a=i.partEls_;var s=Qr(n,r);if(i.percent_!==s){i.el_.style.width=s;se(i.percentageEl_,s);i.percent_=s}for(var o=0;o<t.length;o++){var l=t.start(o);var u=t.end(o);var c=a[o];if(!c){c=i.el_.appendChild(ae());a[o]=c}if(c.dataset.start===l&&c.dataset.end===u){continue}c.dataset.start=l;c.dataset.end=u;c.style.left=Qr(l,n);c.style.width=Qr(u-l,n)}for(var d=a.length;d>t.length;d--){i.el_.removeChild(a[d-1])}a.length=t.length})};return t}(It);It.registerComponent("LoadProgressBar",Jr);var Zr=function(e){Dt(t,e);function t(t,i){var r;r=e.call(this,t,i)||this;r.update=rt(it(xt(r),r.update),tt);return r}var i=t.prototype;i.createEl=function t(){return e.prototype.createEl.call(this,"div",{className:"vjs-time-tooltip"},{"aria-hidden":"true"})};i.update=function e(t,i,r){var n=be(this.el_);var a=_e(this.player_.el());var s=t.width*i;if(!a||!n){return}var o=t.left-a.left+s;var l=t.width-s+(a.right-t.right);var u=n.width/2;if(o<u){u+=u-o}else if(l<u){u=l}if(u<0){u=0}else if(u>n.width){u=n.width}u=Math.round(u);this.el_.style.right="-"+u+"px";this.write(r)};i.write=function e(t){se(this.el_,t)};i.updateTime=function e(t,i,r,n){var a=this;this.requestNamedAnimationFrame("TimeTooltip#updateTime",function(){var e;var s=a.player_.duration();if(a.player_.liveTracker&&a.player_.liveTracker.isLive()){var o=a.player_.liveTracker.liveWindow();var l=o-i*o;e=(l<1?"":"-")+Fr(l,o)}else{e=Fr(r,s)}a.update(t,i,e);if(n){n()}})};return t}(It);It.registerComponent("TimeTooltip",Zr);var $r=function(e){Dt(t,e);function t(t,i){var r;r=e.call(this,t,i)||this;r.update=rt(it(xt(r),r.update),tt);return r}var i=t.prototype;i.createEl=function t(){return e.prototype.createEl.call(this,"div",{className:"vjs-play-progress vjs-slider-bar"},{"aria-hidden":"true"})};i.update=function e(t,i){var r=this.getChild("timeTooltip");if(!r){return}var n=this.player_.scrubbing()?this.player_.getCache().currentTime:this.player_.currentTime();r.updateTime(t,i,n)};return t}(It);$r.prototype.options_={children:[]};if(!X&&!N){$r.prototype.options_.children.push("timeTooltip")}It.registerComponent("PlayProgressBar",$r);var en=function(e){Dt(t,e);function t(t,i){var r;r=e.call(this,t,i)||this;r.update=rt(it(xt(r),r.update),tt);return r}var i=t.prototype;i.createEl=function t(){return e.prototype.createEl.call(this,"div",{className:"vjs-mouse-display"})};i.update=function e(t,i){var r=this;var n=i*this.player_.duration();this.getChild("timeTooltip").updateTime(t,i,n,function(){r.el_.style.left=t.width*i+"px"})};return t}(It);en.prototype.options_={children:["timeTooltip"]};It.registerComponent("MouseTimeDisplay",en);var tn=5;
1var rn=12;var nn=function(e){Dt(t,e);function t(t,i){var r;r=e.call(this,t,i)||this;r.setEventHandlers_();return r}var i=t.prototype;i.setEventHandlers_=function e(){this.update_=it(this,this.update);this.update=rt(this.update_,tt);this.on(this.player_,["ended","durationchange","timeupdate"],this.update);if(this.player_.liveTracker){this.on(this.player_.liveTracker,"liveedgechange",this.update)}this.updateInterval=null;this.on(this.player_,["playing"],this.enableInterval_);this.on(this.player_,["ended","pause","waiting"],this.disableInterval_);if("hidden"in c&&"visibilityState"in c){this.on(c,"visibilitychange",this.toggleVisibility_)}};i.toggleVisibility_=function e(t){if(c.hidden){this.disableInterval_(t)}else{this.enableInterval_();this.update()}};i.enableInterval_=function e(){if(this.updateInterval){return}this.updateInterval=this.setInterval(this.update,tt)};i.disableInterval_=function e(t){if(this.player_.liveTracker&&this.player_.liveTracker.isLive()&&t&&t.type!=="ended"){return}if(!this.updateInterval){return}this.clearInterval(this.updateInterval);this.updateInterval=null};i.createEl=function t(){return e.prototype.createEl.call(this,"div",{className:"vjs-progress-holder"},{"aria-label":this.localize("Progress Bar")})};i.update=function t(i){var r=this;var n=e.prototype.update.call(this);this.requestNamedAnimationFrame("SeekBar#update",function(){var e=r.player_.ended()?r.player_.duration():r.getCurrentTime_();var t=r.player_.liveTracker;var i=r.player_.duration();if(t&&t.isLive()){i=r.player_.liveTracker.liveCurrentTime()}if(r.percent_!==n){r.el_.setAttribute("aria-valuenow",(n*100).toFixed(2));r.percent_=n}if(r.currentTime_!==e||r.duration_!==i){r.el_.setAttribute("aria-valuetext",r.localize("progress bar timing: currentTime={1} duration={2}",[Fr(e,i),Fr(i,i)],"{1} of {2}"));r.currentTime_=e;r.duration_=i}if(r.bar){r.bar.update(_e(r.el()),r.getProgress())}});return n};i.getCurrentTime_=function e(){return this.player_.scrubbing()?this.player_.getCache().currentTime:this.player_.currentTime()};i.getPercent=function e(){var t=this.getCurrentTime_();var i;var r=this.player_.liveTracker;if(r&&r.isLive()){i=(t-r.seekableStart())/r.liveWindow();if(r.atLiveEdge()){i=1}}else{i=t/this.player_.duration()}return i};i.handleMouseDown=function t(i){if(!Ce(i)){return}i.stopPropagation();this.player_.scrubbing(true);this.videoWasPlaying=!this.player_.paused();this.player_.pause();e.prototype.handleMouseDown.call(this,i)};i.handleMouseMove=function e(t){if(!Ce(t)){return}var i;var r=this.calculateDistance(t);var n=this.player_.liveTracker;if(!n||!n.isLive()){i=r*this.player_.duration();if(i===this.player_.duration()){i=i-.1}}else{if(r>=.99){n.seekToLiveEdge();return}var a=n.seekableStart();var s=n.liveCurrentTime();i=a+r*n.liveWindow();if(i>=s){i=s}if(i<=a){i=a+.1}if(i===Infinity){return}}this.player_.currentTime(i)};i.enable=function t(){e.prototype.enable.call(this);var i=this.getChild("mouseTimeDisplay");if(!i){return}i.show()};i.disable=function t(){e.prototype.disable.call(this);var i=this.getChild("mouseTimeDisplay");if(!i){return}i.hide()};i.handleMouseUp=function t(i){e.prototype.handleMouseUp.call(this,i);if(i){i.stopPropagation()}this.player_.scrubbing(false);this.player_.trigger({type:"timeupdate",target:this,manuallyTriggered:true});if(this.videoWasPlaying){Wt(this.player_.play())}else{this.update_()}};i.stepForward=function e(){this.player_.currentTime(this.player_.currentTime()+tn)};i.stepBack=function e(){this.player_.currentTime(this.player_.currentTime()-tn)};i.handleAction=function e(t){if(this.player_.paused()){this.player_.play()}else{this.player_.pause()}};i.handleKeyDown=function t(i){if(Qt.isEventKey(i,"Space")||Qt.isEventKey(i,"Enter")){i.preventDefault();i.stopPropagation();this.handleAction(i)}else if(Qt.isEventKey(i,"Home")){i.preventDefault();i.stopPropagation();this.player_.currentTime(0)}else if(Qt.isEventKey(i,"End")){i.preventDefault();i.stopPropagation();this.player_.currentTime(this.player_.duration())}else if(/^[0-9]$/.test(Qt(i))){i.preventDefault();i.stopPropagation();var r=(Qt.codes[Qt(i)]-Qt.codes["0"])*10/100;this.player_.currentTime(this.player_.duration()*r)}else if(Qt.isEventKey(i,"PgDn")){i.preventDefault();i.stopPropagation();this.player_.currentTime(this.player_.currentTime()-tn*rn)}else if(Qt.isEventKey(i,"PgUp")){i.preventDefault();i.stopPropagation();this.player_.currentTime(this.player_.currentTime()+tn*rn)}else{e.prototype.handleKeyDown.call(this,i)}};i.dispose=function t(){this.disableInterval_();this.off(this.player_,["ended","durationchange","timeupdate"],this.update);if(this.player_.liveTracker){this.on(this.player_.liveTracker,"liveedgechange",this.update)}this.off(this.player_,["playing"],this.enableInterval_);this.off(this.player_,["ended","pause","waiting"],this.disableInterval_);if("hidden"in c&&"visibilityState"in c){this.off(c,"visibilitychange",this.toggleVisibility_)}e.prototype.dispose.call(this)};return t}(Xr);nn.prototype.options_={children:["loadProgressBar","playProgressBar"],barName:"playProgressBar"};if(!X&&!N){nn.prototype.options_.children.splice(1,0,"mouseTimeDisplay")}It.registerComponent("SeekBar",nn);var an=function(e){Dt(t,e);function t(t,i){var r;r=e.call(this,t,i)||this;r.handleMouseMove=rt(it(xt(r),r.handleMouseMove),tt);r.throttledHandleMouseSeek=rt(it(xt(r),r.handleMouseSeek),tt);r.enable();return r}var i=t.prototype;i.createEl=function t(){return e.prototype.createEl.call(this,"div",{className:"vjs-progress-control vjs-control"})};i.handleMouseMove=function e(t){var i=this.getChild("seekBar");if(!i){return}var r=i.getChild("playProgressBar");var n=i.getChild("mouseTimeDisplay");if(!r&&!n){return}var a=i.el();var s=be(a);var o=Te(a,t).x;o=Kr(o,0,1);if(n){n.update(s,o)}if(r){r.update(s,i.getProgress())}};i.handleMouseSeek=function e(t){var i=this.getChild("seekBar");if(i){i.handleMouseMove(t)}};i.enabled=function e(){return this.enabled_};
1i.disable=function e(){this.children().forEach(function(e){return e.disable&&e.disable()});if(!this.enabled()){return}this.off(["mousedown","touchstart"],this.handleMouseDown);this.off(this.el_,"mousemove",this.handleMouseMove);this.handleMouseUp();this.addClass("disabled");this.enabled_=false};i.enable=function e(){this.children().forEach(function(e){return e.enable&&e.enable()});if(this.enabled()){return}this.on(["mousedown","touchstart"],this.handleMouseDown);this.on(this.el_,"mousemove",this.handleMouseMove);this.removeClass("disabled");this.enabled_=true};i.handleMouseDown=function e(t){var i=this.el_.ownerDocument;var r=this.getChild("seekBar");if(r){r.handleMouseDown(t)}this.on(i,"mousemove",this.throttledHandleMouseSeek);this.on(i,"touchmove",this.throttledHandleMouseSeek);this.on(i,"mouseup",this.handleMouseUp);this.on(i,"touchend",this.handleMouseUp)};i.handleMouseUp=function e(t){var i=this.el_.ownerDocument;var r=this.getChild("seekBar");if(r){r.handleMouseUp(t)}this.off(i,"mousemove",this.throttledHandleMouseSeek);this.off(i,"touchmove",this.throttledHandleMouseSeek);this.off(i,"mouseup",this.handleMouseUp);this.off(i,"touchend",this.handleMouseUp)};return t}(It);an.prototype.options_={children:["seekBar"]};It.registerComponent("ProgressControl",an);var sn=function(e){Dt(t,e);function t(t,i){var r;r=e.call(this,t,i)||this;r.on(t,["enterpictureinpicture","leavepictureinpicture"],r.handlePictureInPictureChange);r.on(t,["disablepictureinpicturechanged","loadedmetadata"],r.handlePictureInPictureEnabledChange);r.disable();return r}var i=t.prototype;i.buildCSSClass=function t(){return"vjs-picture-in-picture-control "+e.prototype.buildCSSClass.call(this)};i.handlePictureInPictureEnabledChange=function e(){if(c.pictureInPictureEnabled&&this.player_.disablePictureInPicture()===false){this.enable()}else{this.disable()}};i.handlePictureInPictureChange=function e(t){if(this.player_.isInPictureInPicture()){this.controlText("Exit Picture-in-Picture")}else{this.controlText("Picture-in-Picture")}this.handlePictureInPictureEnabledChange()};i.handleClick=function e(t){if(!this.player_.isInPictureInPicture()){this.player_.requestPictureInPicture()}else{this.player_.exitPictureInPicture()}};return t}(Or);sn.prototype.controlText_="Picture-in-Picture";It.registerComponent("PictureInPictureToggle",sn);var on=function(e){Dt(t,e);function t(t,i){var r;r=e.call(this,t,i)||this;r.on(t,"fullscreenchange",r.handleFullscreenChange);if(c[t.fsApi_.fullscreenEnabled]===false){r.disable()}return r}var i=t.prototype;i.buildCSSClass=function t(){return"vjs-fullscreen-control "+e.prototype.buildCSSClass.call(this)};i.handleFullscreenChange=function e(t){if(this.player_.isFullscreen()){this.controlText("Non-Fullscreen")}else{this.controlText("Fullscreen")}};i.handleClick=function e(t){if(!this.player_.isFullscreen()){this.player_.requestFullscreen()}else{this.player_.exitFullscreen()}};return t}(Or);on.prototype.controlText_="Fullscreen";It.registerComponent("FullscreenToggle",on);var ln=function e(t,i){if(i.tech_&&!i.tech_.featuresVolumeControl){t.addClass("vjs-hidden")}t.on(i,"loadstart",function(){if(!i.tech_.featuresVolumeControl){t.addClass("vjs-hidden")}else{t.removeClass("vjs-hidden")}})};var un=function(e){Dt(t,e);function t(){return e.apply(this,arguments)||this}var i=t.prototype;i.createEl=function t(){return e.prototype.createEl.call(this,"div",{className:"vjs-volume-level",innerHTML:\'<span class="vjs-control-text"></span>\'})};return t}(It);It.registerComponent("VolumeLevel",un);var cn=function(e){Dt(t,e);function t(t,i){var r;r=e.call(this,t,i)||this;r.on("slideractive",r.updateLastVolume_);r.on(t,"volumechange",r.updateARIAAttributes);t.ready(function(){return r.updateARIAAttributes()});return r}var i=t.prototype;i.createEl=function t(){return e.prototype.createEl.call(this,"div",{className:"vjs-volume-bar vjs-slider-bar"},{"aria-label":this.localize("Volume Level"),"aria-live":"polite"})};i.handleMouseDown=function t(i){if(!Ce(i)){return}e.prototype.handleMouseDown.call(this,i)};i.handleMouseMove=function e(t){if(!Ce(t)){return}this.checkMuted();this.player_.volume(this.calculateDistance(t))};i.checkMuted=function e(){if(this.player_.muted()){this.player_.muted(false)}};i.getPercent=function e(){if(this.player_.muted()){return 0}return this.player_.volume()};i.stepForward=function e(){this.checkMuted();this.player_.volume(this.player_.volume()+.1)};i.stepBack=function e(){this.checkMuted();this.player_.volume(this.player_.volume()-.1)};i.updateARIAAttributes=function e(t){var i=this.player_.muted()?0:this.volumeAsPercentage_();this.el_.setAttribute("aria-valuenow",i);this.el_.setAttribute("aria-valuetext",i+"%")};i.volumeAsPercentage_=function e(){return Math.round(this.player_.volume()*100)};i.updateLastVolume_=function e(){var t=this;var i=this.player_.volume();this.one("sliderinactive",function(){if(t.player_.volume()===0){t.player_.lastVolume_(i)}})};return t}(Xr);cn.prototype.options_={children:["volumeLevel"]'),t[0].s.push(',barName:"volumeLevel"};cn.prototype.playerEvent="volumechange";
1It.registerComponent("VolumeBar",cn);var dn=function(e){Dt(t,e);function t(t,i){var r;if(i===void 0){i={}}i.vertical=i.vertical||false;if(typeof i.volumeBar==="undefined"||A(i.volumeBar)){i.volumeBar=i.volumeBar||{};i.volumeBar.vertical=i.vertical}r=e.call(this,t,i)||this;ln(xt(r),t);r.throttledHandleMouseMove=rt(it(xt(r),r.handleMouseMove),tt);r.on("mousedown",r.handleMouseDown);r.on("touchstart",r.handleMouseDown);r.on(r.volumeBar,["focus","slideractive"],function(){r.volumeBar.addClass("vjs-slider-active");r.addClass("vjs-slider-active");r.trigger("slideractive")});r.on(r.volumeBar,["blur","sliderinactive"],function(){r.volumeBar.removeClass("vjs-slider-active");r.removeClass("vjs-slider-active");r.trigger("sliderinactive")});return r}var i=t.prototype;i.createEl=function t(){var i="vjs-volume-horizontal";if(this.options_.vertical){i="vjs-volume-vertical"}return e.prototype.createEl.call(this,"div",{className:"vjs-volume-control vjs-control "+i})};i.handleMouseDown=function e(t){var i=this.el_.ownerDocument;this.on(i,"mousemove",this.throttledHandleMouseMove);this.on(i,"touchmove",this.throttledHandleMouseMove);this.on(i,"mouseup",this.handleMouseUp);this.on(i,"touchend",this.handleMouseUp)};i.handleMouseUp=function e(t){var i=this.el_.ownerDocument;this.off(i,"mousemove",this.throttledHandleMouseMove);this.off(i,"touchmove",this.throttledHandleMouseMove);this.off(i,"mouseup",this.handleMouseUp);this.off(i,"touchend",this.handleMouseUp)};i.handleMouseMove=function e(t){this.volumeBar.handleMouseMove(t)};return t}(It);dn.prototype.options_={children:["volumeBar"]};It.registerComponent("VolumeControl",dn);var fn=function e(t,i){if(i.tech_&&!i.tech_.featuresMuteControl){t.addClass("vjs-hidden")}t.on(i,"loadstart",function(){if(!i.tech_.featuresMuteControl){t.addClass("vjs-hidden")}else{t.removeClass("vjs-hidden")}})};var hn=function(e){Dt(t,e);function t(t,i){var r;r=e.call(this,t,i)||this;fn(xt(r),t);r.on(t,["loadstart","volumechange"],r.update);return r}var i=t.prototype;i.buildCSSClass=function t(){return"vjs-mute-control "+e.prototype.buildCSSClass.call(this)};i.handleClick=function e(t){var i=this.player_.volume();var r=this.player_.lastVolume_();if(i===0){var n=r<.1?.1:r;this.player_.volume(n);this.player_.muted(false)}else{this.player_.muted(this.player_.muted()?false:true)}};i.update=function e(t){this.updateIcon_();this.updateControlText_()};i.updateIcon_=function e(){var t=this.player_.volume();var i=3;if(X&&this.player_.tech_&&this.player_.tech_.el_){this.player_.muted(this.player_.tech_.el_.muted)}if(t===0||this.player_.muted()){i=0}else if(t<.33){i=1}else if(t<.67){i=2}for(var r=0;r<4;r++){ce(this.el_,"vjs-vol-"+r)}ue(this.el_,"vjs-vol-"+i)};i.updateControlText_=function e(){var t=this.player_.muted()||this.player_.volume()===0;var i=t?"Unmute":"Mute";if(this.controlText()!==i){this.controlText(i)}};return t}(Or);hn.prototype.controlText_="Mute";It.registerComponent("MuteToggle",hn);var pn=function(e){Dt(t,e);function t(t,i){var r;if(i===void 0){i={}}if(typeof i.inline!=="undefined"){i.inline=i.inline}else{i.inline=true}if(typeof i.volumeControl==="undefined"||A(i.volumeControl)){i.volumeControl=i.volumeControl||{};i.volumeControl.vertical=!i.inline}r=e.call(this,t,i)||this;r.on(t,["loadstart"],r.volumePanelState_);r.on(r.muteToggle,"keyup",r.handleKeyPress);r.on(r.volumeControl,"keyup",r.handleVolumeControlKeyUp);r.on("keydown",r.handleKeyPress);r.on("mouseover",r.handleMouseOver);r.on("mouseout",r.handleMouseOut);r.on(r.volumeControl,["slideractive"],r.sliderActive_);r.on(r.volumeControl,["sliderinactive"],r.sliderInactive_);return r}var i=t.prototype;i.sliderActive_=function e(){this.addClass("vjs-slider-active")};i.sliderInactive_=function e(){this.removeClass("vjs-slider-active")};i.volumePanelState_=function e(){if(this.volumeControl.hasClass("vjs-hidden")&&this.muteToggle.hasClass("vjs-hidden")){this.addClass("vjs-hidden")}if(this.volumeControl.hasClass("vjs-hidden")&&!this.muteToggle.hasClass("vjs-hidden")){this.addClass("vjs-mute-toggle-only")}};i.createEl=function t(){var i="vjs-volume-panel-horizontal";if(!this.options_.inline){i="vjs-volume-panel-vertical"}return e.prototype.createEl.call(this,"div",{className:"vjs-volume-panel vjs-control "+i})};i.dispose=function t(){this.handleMouseOut();e.prototype.dispose.call(this)};i.handleVolumeControlKeyUp=function e(t){if(Qt.isEventKey(t,"Esc")){this.muteToggle.focus()}};i.handleMouseOver=function e(t){this.addClass("vjs-hover");Xe(c,"keyup",it(this,this.handleKeyPress))};i.handleMouseOut=function e(t){this.removeClass("vjs-hover");Qe(c,"keyup",it(this,this.handleKeyPress))};i.handleKeyPress=function e(t){if(Qt.isEventKey(t,"Esc")){this.handleMouseOut()}};return t}(It);pn.prototype.options_={children:["muteToggle","volumeControl"]};
1It.registerComponent("VolumePanel",pn);var vn=function(e){Dt(t,e);function t(t,i){var r;r=e.call(this,t,i)||this;if(i){r.menuButton_=i.menuButton}r.focusedChild_=-1;r.on("keydown",r.handleKeyDown);r.boundHandleBlur_=it(xt(r),r.handleBlur);r.boundHandleTapClick_=it(xt(r),r.handleTapClick);return r}var i=t.prototype;i.addEventListenerForItem=function e(t){if(!(t instanceof It)){return}this.on(t,"blur",this.boundHandleBlur_);this.on(t,["tap","click"],this.boundHandleTapClick_)};i.removeEventListenerForItem=function e(t){if(!(t instanceof It)){return}this.off(t,"blur",this.boundHandleBlur_);this.off(t,["tap","click"],this.boundHandleTapClick_)};i.removeChild=function t(i){if(typeof i==="string"){i=this.getChild(i)}this.removeEventListenerForItem(i);e.prototype.removeChild.call(this,i)};i.addItem=function e(t){var i=this.addChild(t);if(i){this.addEventListenerForItem(i)}};i.createEl=function t(){var i=this.options_.contentElType||"ul";this.contentEl_=ae(i,{className:"vjs-menu-content"});this.contentEl_.setAttribute("role","menu");var r=e.prototype.createEl.call(this,"div",{append:this.contentEl_,className:"vjs-menu"});r.appendChild(this.contentEl_);Xe(r,"click",function(e){e.preventDefault();e.stopImmediatePropagation()});return r};i.dispose=function t(){this.contentEl_=null;this.boundHandleBlur_=null;this.boundHandleTapClick_=null;e.prototype.dispose.call(this)};i.handleBlur=function e(t){var i=t.relatedTarget||c.activeElement;if(!this.children().some(function(e){return e.el()===i})){var r=this.menuButton_;if(r&&r.buttonPressed_&&i!==r.el().firstChild){r.unpressButton()}}};i.handleTapClick=function e(t){if(this.menuButton_){this.menuButton_.unpressButton();var i=this.children();if(!Array.isArray(i)){return}var r=i.filter(function(e){return e.el()===t.target})[0];if(!r){return}if(r.name()!=="CaptionSettingsMenuItem"){this.menuButton_.focus()}}};i.handleKeyDown=function e(t){if(Qt.isEventKey(t,"Left")||Qt.isEventKey(t,"Down")){t.preventDefault();t.stopPropagation();this.stepForward()}else if(Qt.isEventKey(t,"Right")||Qt.isEventKey(t,"Up")){t.preventDefault();t.stopPropagation();this.stepBack()}};i.stepForward=function e(){var t=0;if(this.focusedChild_!==undefined){t=this.focusedChild_+1}this.focus(t)};i.stepBack=function e(){var t=0;if(this.focusedChild_!==undefined){t=this.focusedChild_-1}this.focus(t)};i.focus=function e(t){if(t===void 0){t=0}var i=this.children().slice();var r=i.length&&i[0].hasClass("vjs-menu-title");if(r){i.shift()}if(i.length>0){if(t<0){t=0}else if(t>=i.length){t=i.length-1}this.focusedChild_=t;i[t].el_.focus()}};return t}(It);It.registerComponent("Menu",vn);var mn=function(e){Dt(t,e);function t(t,i){var r;if(i===void 0){i={}}r=e.call(this,t,i)||this;r.menuButton_=new Or(t,i);r.menuButton_.controlText(r.controlText_);r.menuButton_.el_.setAttribute("aria-haspopup","true");var n=Or.prototype.buildCSSClass();r.menuButton_.el_.className=r.buildCSSClass()+" "+n;r.menuButton_.removeClass("vjs-control");r.addChild(r.menuButton_);r.update();r.enabled_=true;r.on(r.menuButton_,"tap",r.handleClick);r.on(r.menuButton_,"click",r.handleClick);r.on(r.menuButton_,"keydown",r.handleKeyDown);r.on(r.menuButton_,"mouseenter",function(){r.addClass("vjs-hover");r.menu.show();Xe(c,"keyup",it(xt(r),r.handleMenuKeyUp))});r.on("mouseleave",r.handleMouseLeave);r.on("keydown",r.handleSubmenuKeyDown);return r}var i=t.prototype;i.update=function e(){var t=this.createMenu();if(this.menu){this.menu.dispose();this.removeChild(this.menu)}this.menu=t;this.addChild(t);this.buttonPressed_=false;this.menuButton_.el_.setAttribute("aria-expanded","false");if(this.items&&this.items.length<=this.hideThreshold_){this.hide()}else{this.show()}};i.createMenu=function e(){var t=new vn(this.player_,{menuButton:this});this.hideThreshold_=0;if(this.options_.title){var i=ae("li",{className:"vjs-menu-title",innerHTML:Tt(this.options_.title),tabIndex:-1});this.hideThreshold_+=1;var r=new It(this.player_,{el:i});t.addItem(r)}this.items=this.createItems();if(this.items){for(var n=0;n<this.items.length;n++){t.addItem(this.items[n])}}return t};i.createItems=function e(){};i.createEl=function t(){return e.prototype.createEl.call(this,"div",{className:this.buildWrapperCSSClass()},{})};i.buildWrapperCSSClass=function t(){var i="vjs-menu-button";if(this.options_.inline===true){i+="-inline"}else{i+="-popup"}var r=Or.prototype.buildCSSClass();return"vjs-menu-button "+i+" "+r+" "+e.prototype.buildCSSClass.call(this)};i.buildCSSClass=function t(){var i="vjs-menu-button";if(this.options_.inline===true){i+="-inline"}else{i+="-popup"}return"vjs-menu-button "+i+" "+e.prototype.buildCSSClass.call(this)};i.controlText=function e(t,i){if(i===void 0){i=this.menuButton_.el()}return this.menuButton_.controlText(t,i)};i.dispose=function t(){this.handleMouseLeave();e.prototype.dispose.call(this)};i.handleClick=function e(t){if(this.buttonPressed_){this.unpressButton()}else{this.pressButton()}};i.handleMouseLeave=function e(t){this.removeClass("vjs-hover");Qe(c,"keyup",it(this,this.handleMenuKeyUp))};i.focus=function e(){this.menuButton_.focus()};i.blur=function e(){this.menuButton_.blur()};i.handleKeyDown=function e(t){if(Qt.isEventKey(t,"Esc")||Qt.isEventKey(t,"Tab")){if(this.buttonPressed_){this.unpressButton()}if(!Qt.isEventKey(t,"Tab")){t.preventDefault();this.menuButton_.focus()}}else if(Qt.isEventKey(t,"Up")||Qt.isEventKey(t,"Down")){if(!this.buttonPressed_){t.preventDefault();this.pressButton()}}};i.handleMenuKeyUp=function e(t){if(Qt.isEventKey(t,"Esc")||Qt.isEventKey(t,"Tab")){this.removeClass("vjs-hover")}};i.handleSubmenuKeyPress=function e(t){this.handleSubmenuKeyDown(t)};i.handleSubmenuKeyDown=function e(t){if(Qt.isEventKey(t,"Esc")||Qt.isEventKey(t,"Tab")){if(this.buttonPressed_){this.unpressButton()}if(!Qt.isEventKey(t,"Tab")){t.preventDefault();this.menuButton_.focus()}}};i.pressButton=function e(){if(this.enabled_){this.buttonPressed_=true;this.menu.show();this.menu.lockShowing();this.menuButton_.el_.setAttribute("aria-expanded","true");if(X&&re()){return}this.menu.focus()}};i.unpressButton=function e(){if(this.enabled_){this.buttonPressed_=false;this.menu.unlockShowing();this.menu.hide();
1this.menuButton_.el_.setAttribute("aria-expanded","false")}};i.disable=function e(){this.unpressButton();this.enabled_=false;this.addClass("vjs-disabled");this.menuButton_.disable()};i.enable=function e(){this.enabled_=true;this.removeClass("vjs-disabled");this.menuButton_.enable()};return t}(It);It.registerComponent("MenuButton",mn);var gn=function(e){Dt(t,e);function t(t,i){var r;var n=i.tracks;r=e.call(this,t,i)||this;if(r.items.length<=1){r.hide()}if(!n){return xt(r)}var a=it(xt(r),r.update);n.addEventListener("removetrack",a);n.addEventListener("addtrack",a);n.addEventListener("labelchange",a);r.player_.on("ready",a);r.player_.on("dispose",function(){n.removeEventListener("removetrack",a);n.removeEventListener("addtrack",a);n.removeEventListener("labelchange",a)});return r}return t}(mn);It.registerComponent("TrackButton",gn);var yn=["Tab","Esc","Up","Down","Right","Left"];var _n=function(e){Dt(t,e);function t(t,i){var r;r=e.call(this,t,i)||this;r.selectable=i.selectable;r.isSelected_=i.selected||false;r.multiSelectable=i.multiSelectable;r.selected(r.isSelected_);if(r.selectable){if(r.multiSelectable){r.el_.setAttribute("role","menuitemcheckbox")}else{r.el_.setAttribute("role","menuitemradio")}}else{r.el_.setAttribute("role","menuitem")}return r}var i=t.prototype;i.createEl=function t(i,r,n){this.nonIconControl=true;return e.prototype.createEl.call(this,"li",C({className:"vjs-menu-item",innerHTML:\'<span class="vjs-menu-item-text">\'+this.localize(this.options_.label)+"</span>",tabIndex:-1},r),n)};i.handleKeyDown=function t(i){if(!yn.some(function(e){return Qt.isEventKey(i,e)})){e.prototype.handleKeyDown.call(this,i)}};i.handleClick=function e(t){this.selected(true)};i.selected=function e(t){if(this.selectable){if(t){this.addClass("vjs-selected");this.el_.setAttribute("aria-checked","true");this.controlText(", selected");this.isSelected_=true}else{this.removeClass("vjs-selected");this.el_.setAttribute("aria-checked","false");this.controlText("");this.isSelected_=false}}};return t}(kr);It.registerComponent("MenuItem",_n);var bn=function(e){Dt(t,e);function t(t,i){var r;var n=i.track;var a=t.textTracks();i.label=n.label||n.language||"Unknown";i.selected=n.mode==="showing";r=e.call(this,t,i)||this;r.track=n;r.kinds=(i.kinds||[i.kind||r.track.kind]).filter(Boolean);var o=function e(){for(var t=arguments.length,i=new Array(t),n=0;n<t;n++){i[n]=arguments[n]}r.handleTracksChange.apply(xt(r),i)};var l=function e(){for(var t=arguments.length,i=new Array(t),n=0;n<t;n++){i[n]=arguments[n]}r.handleSelectedLanguageChange.apply(xt(r),i)};t.on(["loadstart","texttrackchange"],o);a.addEventListener("change",o);a.addEventListener("selectedlanguagechange",l);r.on("dispose",function(){t.off(["loadstart","texttrackchange"],o);a.removeEventListener("change",o);a.removeEventListener("selectedlanguagechange",l)});if(a.onchange===undefined){var u;r.on(["tap","click"],function(){if(typeof s.Event!=="object"){try{u=new s.Event("change")}catch(e){}}if(!u){u=c.createEvent("Event");u.initEvent("change",true,true)}a.dispatchEvent(u)})}r.handleTracksChange();return r}var i=t.prototype;i.handleClick=function t(i){var r=this.track;var n=this.player_.textTracks();e.prototype.handleClick.call(this,i);if(!n){return}for(var a=0;a<n.length;a++){var s=n[a];if(this.kinds.indexOf(s.kind)===-1){continue}if(s===r){if(s.mode!=="showing"){s.mode="showing"}}else if(s.mode!=="disabled"){s.mode="disabled"}}};i.handleTracksChange=function e(t){var i=this.track.mode==="showing";if(i!==this.isSelected_){this.selected(i)}};i.handleSelectedLanguageChange=function e(t){if(this.track.mode==="showing"){var i=this.player_.cache_.selectedLanguage;if(i&&i.enabled&&i.language===this.track.language&&i.kind!==this.track.kind){return}this.player_.cache_.selectedLanguage={enabled:true,language:this.track.language,kind:this.track.kind}}};i.dispose=function t(){this.track=null;e.prototype.dispose.call(this)};return t}(_n);It.registerComponent("TextTrackMenuItem",bn);var Tn=function(e){Dt(t,e);function t(t,i){i.track={player:t,kind:i.kind,kinds:i.kinds,default:false,mode:"disabled"};if(!i.kinds){i.kinds=[i.kind]}if(i.label){i.track.label=i.label}else{i.track.label=i.kinds.join(" and ")+" off"}i.selectable=true;i.multiSelectable=false;return e.call(this,t,i)||this}var i=t.prototype;i.handleTracksChange=function e(t){var i=this.player().textTracks();var r=true;for(var n=0,a=i.length;n<a;n++){var s=i[n];if(this.options_.kinds.indexOf(s.kind)>-1&&s.mode==="showing"){r=false;break}}if(r!==this.isSelected_){this.selected(r)}};i.handleSelectedLanguageChange=function e(t){var i=this.player().textTracks();var r=true;for(var n=0,a=i.length;n<a;n++){var s=i[n];if(["captions","descriptions","subtitles"].indexOf(s.kind)>-1&&s.mode==="showing"){r=false;break}}if(r){this.player_.cache_.selectedLanguage={enabled:false}}};return t}(bn);It.registerComponent("OffTextTrackMenuItem",Tn);var Sn=function(e){Dt(t,e);function t(t,i){if(i===void 0){i={}}i.tracks=t.textTracks();return e.call(this,t,i)||this}var i=t.prototype;i.createItems=function e(t,i){if(t===void 0){t=[]}if(i===void 0){i=bn}var r;if(this.label_){r=this.label_+" off"}t.push(new Tn(this.player_,{kinds:this.kinds_,kind:this.kind_,label:r}));this.hideThreshold_+=1;var n=this.player_.textTracks();if(!Array.isArray(this.kinds_)){this.kinds_=[this.kind_]}for(var a=0;a<n.length;a++){var s=n[a];if('),t[1].s.push(',barName:"volumeLevel"};cn.prototype.playerEvent="volumechange";
1It.registerComponent("VolumeBar",cn);var dn=function(e){Dt(t,e);function t(t,i){var r;if(i===void 0){i={}}i.vertical=i.vertical||false;if(typeof i.volumeBar==="undefined"||A(i.volumeBar)){i.volumeBar=i.volumeBar||{};i.volumeBar.vertical=i.vertical}r=e.call(this,t,i)||this;ln(xt(r),t);r.throttledHandleMouseMove=rt(it(xt(r),r.handleMouseMove),tt);r.on("mousedown",r.handleMouseDown);r.on("touchstart",r.handleMouseDown);r.on(r.volumeBar,["focus","slideractive"],function(){r.volumeBar.addClass("vjs-slider-active");r.addClass("vjs-slider-active");r.trigger("slideractive")});r.on(r.volumeBar,["blur","sliderinactive"],function(){r.volumeBar.removeClass("vjs-slider-active");r.removeClass("vjs-slider-active");r.trigger("sliderinactive")});return r}var i=t.prototype;i.createEl=function t(){var i="vjs-volume-horizontal";if(this.options_.vertical){i="vjs-volume-vertical"}return e.prototype.createEl.call(this,"div",{className:"vjs-volume-control vjs-control "+i})};i.handleMouseDown=function e(t){var i=this.el_.ownerDocument;this.on(i,"mousemove",this.throttledHandleMouseMove);this.on(i,"touchmove",this.throttledHandleMouseMove);this.on(i,"mouseup",this.handleMouseUp);this.on(i,"touchend",this.handleMouseUp)};i.handleMouseUp=function e(t){var i=this.el_.ownerDocument;this.off(i,"mousemove",this.throttledHandleMouseMove);this.off(i,"touchmove",this.throttledHandleMouseMove);this.off(i,"mouseup",this.handleMouseUp);this.off(i,"touchend",this.handleMouseUp)};i.handleMouseMove=function e(t){this.volumeBar.handleMouseMove(t)};return t}(It);dn.prototype.options_={children:["volumeBar"]};It.registerComponent("VolumeControl",dn);var fn=function e(t,i){if(i.tech_&&!i.tech_.featuresMuteControl){t.addClass("vjs-hidden")}t.on(i,"loadstart",function(){if(!i.tech_.featuresMuteControl){t.addClass("vjs-hidden")}else{t.removeClass("vjs-hidden")}})};var hn=function(e){Dt(t,e);function t(t,i){var r;r=e.call(this,t,i)||this;fn(xt(r),t);r.on(t,["loadstart","volumechange"],r.update);return r}var i=t.prototype;i.buildCSSClass=function t(){return"vjs-mute-control "+e.prototype.buildCSSClass.call(this)};i.handleClick=function e(t){var i=this.player_.volume();var r=this.player_.lastVolume_();if(i===0){var n=r<.1?.1:r;this.player_.volume(n);this.player_.muted(false)}else{this.player_.muted(this.player_.muted()?false:true)}};i.update=function e(t){this.updateIcon_();this.updateControlText_()};i.updateIcon_=function e(){var t=this.player_.volume();var i=3;if(X&&this.player_.tech_&&this.player_.tech_.el_){this.player_.muted(this.player_.tech_.el_.muted)}if(t===0||this.player_.muted()){i=0}else if(t<.33){i=1}else if(t<.67){i=2}for(var r=0;r<4;r++){ce(this.el_,"vjs-vol-"+r)}ue(this.el_,"vjs-vol-"+i)};i.updateControlText_=function e(){var t=this.player_.muted()||this.player_.volume()===0;var i=t?"Unmute":"Mute";if(this.controlText()!==i){this.controlText(i)}};return t}(Or);hn.prototype.controlText_="Mute";It.registerComponent("MuteToggle",hn);var pn=function(e){Dt(t,e);function t(t,i){var r;if(i===void 0){i={}}if(typeof i.inline!=="undefined"){i.inline=i.inline}else{i.inline=true}if(typeof i.volumeControl==="undefined"||A(i.volumeControl)){i.volumeControl=i.volumeControl||{};i.volumeControl.vertical=!i.inline}r=e.call(this,t,i)||this;r.on(t,["loadstart"],r.volumePanelState_);r.on(r.muteToggle,"keyup",r.handleKeyPress);r.on(r.volumeControl,"keyup",r.handleVolumeControlKeyUp);r.on("keydown",r.handleKeyPress);r.on("mouseover",r.handleMouseOver);r.on("mouseout",r.handleMouseOut);r.on(r.volumeControl,["slideractive"],r.sliderActive_);r.on(r.volumeControl,["sliderinactive"],r.sliderInactive_);return r}var i=t.prototype;i.sliderActive_=function e(){this.addClass("vjs-slider-active")};i.sliderInactive_=function e(){this.removeClass("vjs-slider-active")};i.volumePanelState_=function e(){if(this.volumeControl.hasClass("vjs-hidden")&&this.muteToggle.hasClass("vjs-hidden")){this.addClass("vjs-hidden")}if(this.volumeControl.hasClass("vjs-hidden")&&!this.muteToggle.hasClass("vjs-hidden")){this.addClass("vjs-mute-toggle-only")}};i.createEl=function t(){var i="vjs-volume-panel-horizontal";if(!this.options_.inline){i="vjs-volume-panel-vertical"}return e.prototype.createEl.call(this,"div",{className:"vjs-volume-panel vjs-control "+i})};i.dispose=function t(){this.handleMouseOut();e.prototype.dispose.call(this)};i.handleVolumeControlKeyUp=function e(t){if(Qt.isEventKey(t,"Esc")){this.muteToggle.focus()}};i.handleMouseOver=function e(t){this.addClass("vjs-hover");Xe(c,"keyup",it(this,this.handleKeyPress))};i.handleMouseOut=function e(t){this.removeClass("vjs-hover");Qe(c,"keyup",it(this,this.handleKeyPress))};i.handleKeyPress=function e(t){if(Qt.isEventKey(t,"Esc")){this.handleMouseOut()}};return t}(It);pn.prototype.options_={children:["muteToggle","volumeControl"]};
1It.registerComponent("VolumePanel",pn);var vn=function(e){Dt(t,e);function t(t,i){var r;r=e.call(this,t,i)||this;if(i){r.menuButton_=i.menuButton}r.focusedChild_=-1;r.on("keydown",r.handleKeyDown);r.boundHandleBlur_=it(xt(r),r.handleBlur);r.boundHandleTapClick_=it(xt(r),r.handleTapClick);return r}var i=t.prototype;i.addEventListenerForItem=function e(t){if(!(t instanceof It)){return}this.on(t,"blur",this.boundHandleBlur_);this.on(t,["tap","click"],this.boundHandleTapClick_)};i.removeEventListenerForItem=function e(t){if(!(t instanceof It)){return}this.off(t,"blur",this.boundHandleBlur_);this.off(t,["tap","click"],this.boundHandleTapClick_)};i.removeChild=function t(i){if(typeof i==="string"){i=this.getChild(i)}this.removeEventListenerForItem(i);e.prototype.removeChild.call(this,i)};i.addItem=function e(t){var i=this.addChild(t);if(i){this.addEventListenerForItem(i)}};i.createEl=function t(){var i=this.options_.contentElType||"ul";this.contentEl_=ae(i,{className:"vjs-menu-content"});this.contentEl_.setAttribute("role","menu");var r=e.prototype.createEl.call(this,"div",{append:this.contentEl_,className:"vjs-menu"});r.appendChild(this.contentEl_);Xe(r,"click",function(e){e.preventDefault();e.stopImmediatePropagation()});return r};i.dispose=function t(){this.contentEl_=null;this.boundHandleBlur_=null;this.boundHandleTapClick_=null;e.prototype.dispose.call(this)};i.handleBlur=function e(t){var i=t.relatedTarget||c.activeElement;if(!this.children().some(function(e){return e.el()===i})){var r=this.menuButton_;if(r&&r.buttonPressed_&&i!==r.el().firstChild){r.unpressButton()}}};i.handleTapClick=function e(t){if(this.menuButton_){this.menuButton_.unpressButton();var i=this.children();if(!Array.isArray(i)){return}var r=i.filter(function(e){return e.el()===t.target})[0];if(!r){return}if(r.name()!=="CaptionSettingsMenuItem"){this.menuButton_.focus()}}};i.handleKeyDown=function e(t){if(Qt.isEventKey(t,"Left")||Qt.isEventKey(t,"Down")){t.preventDefault();t.stopPropagation();this.stepForward()}else if(Qt.isEventKey(t,"Right")||Qt.isEventKey(t,"Up")){t.preventDefault();t.stopPropagation();this.stepBack()}};i.stepForward=function e(){var t=0;if(this.focusedChild_!==undefined){t=this.focusedChild_+1}this.focus(t)};i.stepBack=function e(){var t=0;if(this.focusedChild_!==undefined){t=this.focusedChild_-1}this.focus(t)};i.focus=function e(t){if(t===void 0){t=0}var i=this.children().slice();var r=i.length&&i[0].hasClass("vjs-menu-title");if(r){i.shift()}if(i.length>0){if(t<0){t=0}else if(t>=i.length){t=i.length-1}this.focusedChild_=t;i[t].el_.focus()}};return t}(It);It.registerComponent("Menu",vn);var mn=function(e){Dt(t,e);function t(t,i){var r;if(i===void 0){i={}}r=e.call(this,t,i)||this;r.menuButton_=new Or(t,i);r.menuButton_.controlText(r.controlText_);r.menuButton_.el_.setAttribute("aria-haspopup","true");var n=Or.prototype.buildCSSClass();r.menuButton_.el_.className=r.buildCSSClass()+" "+n;r.menuButton_.removeClass("vjs-control");r.addChild(r.menuButton_);r.update();r.enabled_=true;r.on(r.menuButton_,"tap",r.handleClick);r.on(r.menuButton_,"click",r.handleClick);r.on(r.menuButton_,"keydown",r.handleKeyDown);r.on(r.menuButton_,"mouseenter",function(){r.addClass("vjs-hover");r.menu.show();Xe(c,"keyup",it(xt(r),r.handleMenuKeyUp))});r.on("mouseleave",r.handleMouseLeave);r.on("keydown",r.handleSubmenuKeyDown);return r}var i=t.prototype;i.update=function e(){var t=this.createMenu();if(this.menu){this.menu.dispose();this.removeChild(this.menu)}this.menu=t;this.addChild(t);this.buttonPressed_=false;this.menuButton_.el_.setAttribute("aria-expanded","false");if(this.items&&this.items.length<=this.hideThreshold_){this.hide()}else{this.show()}};i.createMenu=function e(){var t=new vn(this.player_,{menuButton:this});this.hideThreshold_=0;if(this.options_.title){var i=ae("li",{className:"vjs-menu-title",innerHTML:Tt(this.options_.title),tabIndex:-1});this.hideThreshold_+=1;var r=new It(this.player_,{el:i});t.addItem(r)}this.items=this.createItems();if(this.items){for(var n=0;n<this.items.length;n++){t.addItem(this.items[n])}}return t};i.createItems=function e(){};i.createEl=function t(){return e.prototype.createEl.call(this,"div",{className:this.buildWrapperCSSClass()},{})};i.buildWrapperCSSClass=function t(){var i="vjs-menu-button";if(this.options_.inline===true){i+="-inline"}else{i+="-popup"}var r=Or.prototype.buildCSSClass();return"vjs-menu-button "+i+" "+r+" "+e.prototype.buildCSSClass.call(this)};i.buildCSSClass=function t(){var i="vjs-menu-button";if(this.options_.inline===true){i+="-inline"}else{i+="-popup"}return"vjs-menu-button "+i+" "+e.prototype.buildCSSClass.call(this)};i.controlText=function e(t,i){if(i===void 0){i=this.menuButton_.el()}return this.menuButton_.controlText(t,i)};i.dispose=function t(){this.handleMouseLeave();e.prototype.dispose.call(this)};i.handleClick=function e(t){if(this.buttonPressed_){this.unpressButton()}else{this.pressButton()}};i.handleMouseLeave=function e(t){this.removeClass("vjs-hover");Qe(c,"keyup",it(this,this.handleMenuKeyUp))};i.focus=function e(){this.menuButton_.focus()};i.blur=function e(){this.menuButton_.blur()};i.handleKeyDown=function e(t){if(Qt.isEventKey(t,"Esc")||Qt.isEventKey(t,"Tab")){if(this.buttonPressed_){this.unpressButton()}if(!Qt.isEventKey(t,"Tab")){t.preventDefault();this.menuButton_.focus()}}else if(Qt.isEventKey(t,"Up")||Qt.isEventKey(t,"Down")){if(!this.buttonPressed_){t.preventDefault();this.pressButton()}}};i.handleMenuKeyUp=function e(t){if(Qt.isEventKey(t,"Esc")||Qt.isEventKey(t,"Tab")){this.removeClass("vjs-hover")}};i.handleSubmenuKeyPress=function e(t){this.handleSubmenuKeyDown(t)};i.handleSubmenuKeyDown=function e(t){if(Qt.isEventKey(t,"Esc")||Qt.isEventKey(t,"Tab")){if(this.buttonPressed_){this.unpressButton()}if(!Qt.isEventKey(t,"Tab")){t.preventDefault();this.menuButton_.focus()}}};i.pressButton=function e(){if(this.enabled_){this.buttonPressed_=true;this.menu.show();this.menu.lockShowing();this.menuButton_.el_.setAttribute("aria-expanded","true");if(X&&re()){return}this.menu.focus()}};i.unpressButton=function e(){if(this.enabled_){this.buttonPressed_=false;this.menu.unlockShowing();this.menu.hide();
1this.menuButton_.el_.setAttribute("aria-expanded","false")}};i.disable=function e(){this.unpressButton();this.enabled_=false;this.addClass("vjs-disabled");this.menuButton_.disable()};i.enable=function e(){this.enabled_=true;this.removeClass("vjs-disabled");this.menuButton_.enable()};return t}(It);It.registerComponent("MenuButton",mn);var gn=function(e){Dt(t,e);function t(t,i){var r;var n=i.tracks;r=e.call(this,t,i)||this;if(r.items.length<=1){r.hide()}if(!n){return xt(r)}var a=it(xt(r),r.update);n.addEventListener("removetrack",a);n.addEventListener("addtrack",a);n.addEventListener("labelchange",a);r.player_.on("ready",a);r.player_.on("dispose",function(){n.removeEventListener("removetrack",a);n.removeEventListener("addtrack",a);n.removeEventListener("labelchange",a)});return r}return t}(mn);It.registerComponent("TrackButton",gn);var yn=["Tab","Esc","Up","Down","Right","Left"];var _n=function(e){Dt(t,e);function t(t,i){var r;r=e.call(this,t,i)||this;r.selectable=i.selectable;r.isSelected_=i.selected||false;r.multiSelectable=i.multiSelectable;r.selected(r.isSelected_);if(r.selectable){if(r.multiSelectable){r.el_.setAttribute("role","menuitemcheckbox")}else{r.el_.setAttribute("role","menuitemradio")}}else{r.el_.setAttribute("role","menuitem")}return r}var i=t.prototype;i.createEl=function t(i,r,n){this.nonIconControl=true;return e.prototype.createEl.call(this,"li",C({className:"vjs-menu-item",innerHTML:\'<span class="vjs-menu-item-text">\'+this.localize(this.options_.label)+"</span>",tabIndex:-1},r),n)};i.handleKeyDown=function t(i){if(!yn.some(function(e){return Qt.isEventKey(i,e)})){e.prototype.handleKeyDown.call(this,i)}};i.handleClick=function e(t){this.selected(true)};i.selected=function e(t){if(this.selectable){if(t){this.addClass("vjs-selected");this.el_.setAttribute("aria-checked","true");this.controlText(", selected");this.isSelected_=true}else{this.removeClass("vjs-selected");this.el_.setAttribute("aria-checked","false");this.controlText("");this.isSelected_=false}}};return t}(kr);It.registerComponent("MenuItem",_n);var bn=function(e){Dt(t,e);function t(t,i){var r;var n=i.track;var a=t.textTracks();i.label=n.label||n.language||"Unknown";i.selected=n.mode==="showing";r=e.call(this,t,i)||this;r.track=n;r.kinds=(i.kinds||[i.kind||r.track.kind]).filter(Boolean);var o=function e(){for(var t=arguments.length,i=new Array(t),n=0;n<t;n++){i[n]=arguments[n]}r.handleTracksChange.apply(xt(r),i)};var l=function e(){for(var t=arguments.length,i=new Array(t),n=0;n<t;n++){i[n]=arguments[n]}r.handleSelectedLanguageChange.apply(xt(r),i)};t.on(["loadstart","texttrackchange"],o);a.addEventListener("change",o);a.addEventListener("selectedlanguagechange",l);r.on("dispose",function(){t.off(["loadstart","texttrackchange"],o);a.removeEventListener("change",o);a.removeEventListener("selectedlanguagechange",l)});if(a.onchange===undefined){var u;r.on(["tap","click"],function(){if(typeof s.Event!=="object"){try{u=new s.Event("change")}catch(e){}}if(!u){u=c.createEvent("Event");u.initEvent("change",true,true)}a.dispatchEvent(u)})}r.handleTracksChange();return r}var i=t.prototype;i.handleClick=function t(i){var r=this.track;var n=this.player_.textTracks();e.prototype.handleClick.call(this,i);if(!n){return}for(var a=0;a<n.length;a++){var s=n[a];if(this.kinds.indexOf(s.kind)===-1){continue}if(s===r){if(s.mode!=="showing"){s.mode="showing"}}else if(s.mode!=="disabled"){s.mode="disabled"}}};i.handleTracksChange=function e(t){var i=this.track.mode==="showing";if(i!==this.isSelected_){this.selected(i)}};i.handleSelectedLanguageChange=function e(t){if(this.track.mode==="showing"){var i=this.player_.cache_.selectedLanguage;if(i&&i.enabled&&i.language===this.track.language&&i.kind!==this.track.kind){return}this.player_.cache_.selectedLanguage={enabled:true,language:this.track.language,kind:this.track.kind}}};i.dispose=function t(){this.track=null;e.prototype.dispose.call(this)};return t}(_n);It.registerComponent("TextTrackMenuItem",bn);var Tn=function(e){Dt(t,e);function t(t,i){i.track={player:t,kind:i.kind,kinds:i.kinds,default:false,mode:"disabled"};if(!i.kinds){i.kinds=[i.kind]}if(i.label){i.track.label=i.label}else{i.track.label=i.kinds.join(" and ")+" off"}i.selectable=true;i.multiSelectable=false;return e.call(this,t,i)||this}var i=t.prototype;i.handleTracksChange=function e(t){var i=this.player().textTracks();var r=true;for(var n=0,a=i.length;n<a;n++){var s=i[n];if(this.options_.kinds.indexOf(s.kind)>-1&&s.mode==="showing"){r=false;break}}if(r!==this.isSelected_){this.selected(r)}};i.handleSelectedLanguageChange=function e(t){var i=this.player().textTracks();var r=true;for(var n=0,a=i.length;n<a;n++){var s=i[n];if(["captions","descriptions","subtitles"].indexOf(s.kind)>-1&&s.mode==="showing"){r=false;break}}if(r){this.player_.cache_.selectedLanguage={enabled:false}}};return t}(bn);It.registerComponent("OffTextTrackMenuItem",Tn);var Sn=function(e){Dt(t,e);function t(t,i){if(i===void 0){i={}}i.tracks=t.textTracks();return e.call(this,t,i)||this}var i=t.prototype;i.createItems=function e(t,i){if(t===void 0){t=[]}if(i===void 0){i=bn}var r;if(this.label_){r=this.label_+" off"}t.push(new Tn(this.player_,{kinds:this.kinds_,kind:this.kind_,label:r}));this.hideThreshold_+=1;var n=this.player_.textTracks();if(!Array.isArray(this.kinds_)){this.kinds_=[this.kind_]}for(var a=0;a<n.length;a++){var s=n[a];if('),t[0].s.push('this.kinds_.indexOf(s.kind)>-1){var o=new i(this.player_,{track:s,kinds:this.kinds_,kind:this.kind_,selectable:true,multiSelectable:false});o.addClass("vjs-"+s.kind+"-menu-item");t.push(o)}}return t};return t}(gn);It.registerComponent("TextTrackButton",Sn);var kn=function(e){Dt(t,e);function t(t,i){var r;var n=i.track;var a=i.cue;var s=t.currentTime();i.selectable=true;i.multiSelectable=false;i.label=a.text;i.selected=a.startTime<=s&&s<a.endTime;r=e.call(this,t,i)||this;r.track=n;r.cue=a;n.addEventListener("cuechange",it(xt(r),r.update));return r}var i=t.prototype;i.handleClick=function t(i){e.prototype.handleClick.call(this);this.player_.currentTime(this.cue.startTime);this.update(this.cue.startTime)};i.update=function e(t){var i=this.cue;var r=this.player_.currentTime();this.selected(i.startTime<=r&&r<i.endTime)};return t}(_n);It.registerComponent("ChaptersTrackMenuItem",kn);var En=function(e){Dt(t,e);function t(t,i,r){return e.call(this,t,i,r)||this}var i=t.prototype;i.buildCSSClass=function t(){return"vjs-chapters-button "+e.prototype.buildCSSClass.call(this)};i.buildWrapperCSSClass=function t(){return"vjs-chapters-button "+e.prototype.buildWrapperCSSClass.call(this)};i.update=function t(i){if(!this.track_||i&&(i.type==="addtrack"||i.type==="removetrack")){this.setTrack(this.findChapter
1sTrack())}e.prototype.update.call(this)};i.setTrack=function e(t){if(this.track_===t){return}if(!this.updateHandler_){this.updateHandler_=this.update.bind(this)}if(this.track_){var i=this.player_.remoteTextTrackEls().getTrackElementByTrack_(this.track_);if(i){i.removeEventListener("load",this.updateHandler_)}this.track_=null}this.track_=t;if(this.track_){this.track_.mode="hidden";var r=this.player_.remoteTextTrackEls().getTrackElementByTrack_(this.track_);if(r){r.addEventListener("load",this.updateHandler_)}}};i.findChaptersTrack=function e(){var t=this.player_.textTracks()||[];for(var i=t.length-1;i>=0;i--){var r=t[i];if(r.kind===this.kind_){return r}}};i.getMenuCaption=function e(){if(this.track_&&this.track_.label){return this.track_.label}return this.localize(Tt(this.kind_))};i.createMenu=function t(){this.options_.title=this.getMenuCaption();return e.prototype.createMenu.call(this)};i.createItems=function e(){var t=[];if(!this.track_){return t}var i=this.track_.cues;if(!i){return t}for(var r=0,n=i.length;r<n;r++){var a=i[r];var s=new kn(this.player_,{track:this.track_,cue:a});t.push(s)}return t};return t}(Sn);En.prototype.kind_="chapters";En.prototype.controlText_="Chapters";It.registerComponent("ChaptersButton",En);var jn=function(e){Dt(t,e);function t(t,i,r){var n;n=e.call(this,t,i,r)||this;var a=t.textTracks();var s=it(xt(n),n.handleTracksChange);a.addEventListener("change",s);n.on("dispose",function(){a.removeEventListener("change",s)});return n}var i=t.prototype;i.handleTracksChange=function e(t){var i=this.player().textTracks();var r=false;for(var n=0,a=i.length;n<a;n++){var s=i[n];if(s.kind!==this.kind_&&s.mode==="showing"){r=true;break}}if(r){this.disable()}else{this.enable()}};i.buildCSSClass=function t(){return"vjs-descriptions-button "+e.prototype.buildCSSClass.call(this)};i.buildWrapperCSSClass=function t(){return"vjs-descriptions-button "+e.prototype.buildWrapperCSSClass.call(this)};return t}(Sn);jn.prototype.kind_="descriptions";jn.prototype.controlText_="Descriptions";It.registerComponent("DescriptionsButton",jn);var wn=function(e){Dt(t,e);function t(t,i,r){return e.call(this,t,i,r)||this}var i=t.prototype;i.buildCSSClass=function t(){return"vjs-subtitles-button "+e.prototype.buildCSSClass.call(this)};i.buildWrapperCSSClass=function t(){return"vjs-subtitles-button "+e.prototype.buildWrapperCSSClass.call(this)};return t}(Sn);wn.prototype.kind_="subtitles";wn.prototype.controlText_="Subtitles";It.registerComponent("SubtitlesButton",wn);var Cn=function(e){Dt(t,e);function t(t,i){var r;i.track={player:t,kind:i.kind,label:i.kind+" settings",selectable:false,default:false,mode:"disabled"};i.selectable=false;i.name="CaptionSettingsMenuItem";r=e.call(this,t,i)||this;r.addClass("vjs-texttrack-settings");r.controlText(", opens "+i.kind+" settings dialog");return r}var i=t.prototype;i.handleClick=function e(t){this.player().getChild("textTrackSettings").open()};return t}(bn);It.registerComponent("CaptionSettingsMenuItem",Cn);var In=function(e){Dt(t,e);function t(t,i,r){return e.call(this,t,i,r)||this}var i=t.prototype;i.buildCSSClass=function t(){return"vjs-captions-button "+e.prototype.buildCSSClass.call(this)};i.buildWrapperCSSClass=function t(){return"vjs-captions-button "+e.prototype.buildWrapperCSSClass.call(this)};i.createItems=function t(){var i=[];if(!(this.player().tech_&&this.player().tech_.featuresNativeTextTracks)&&this.player().getChild("textTrackSettings")){i.push(new Cn(this.player_,{kind:this.kind_}));this.hideThreshold_+=1}return e.prototype.createItems.call(this,i)};return t}(Sn);In.prototype.kind_="captions";In.prototype.controlText_="Captions";It.registerComponent("CaptionsButton",In);var An=function(e){Dt(t,e);function t(){return e.apply(this,arguments)||this}var i=t.prototype;i.createEl=function t(i,r,n){var a=\'<span class="vjs-menu-item-text">\'+this.localize(this.options_.label);if(this.options_.track.kind==="captions"){a+=\'\\n        <span aria-hidden="true" class="vjs-icon-placeholder"></span>\\n        <span class="vjs-control-text"> \'+this.localize("Captions")+"</span>\\n      "}a+="</span>";var s=e.prototype.createEl.call(this,i,C({innerHTML:a},r),n);return s};return t}(bn);It.registerComponent("SubsCapsMenuItem",An);var xn=function(e){Dt(t,e);function t(t,i){var r;if(i===void 0){i={}}r=e.call(this,t,i)||this;r.label_="subtitles";if(["en","en-us","en-ca","fr-ca"].indexOf(r.player_.language_)>-1){r.label_="captions"}r.menuButton_.controlText(Tt(r.label_));return r}var i=t.prototype;i.buildCSSClass=function t(){return"vjs-subs-caps-button "+e.prototype.buildCSSClass.call(this)};i.buildWrapperCSSClass=function t(){return"vjs-subs-caps-button "+e.prototype.buildWrapperCSSClass.call(this)};i.createItems=function t(){var i=[];if(!(this.player().tech_&&this.player().tech_.featuresNativeTextTracks)&&this.player().getChild("textTrackSettings")){i.push(new Cn(this.player_,{kind:this.label_}));this.hideThreshold_+=1}i=e.prototype.createItems.call(this,i,An);return i};return t}(Sn);xn.prototype.kinds_=["captions","subtitles"];xn.prototype.controlText_="Subtitles";It.registerComponent("SubsCapsButton",xn);var Pn=function(e){Dt(t,e);function t(t,i){var r;var n=i.track;var a=t.audioTracks();i.label=n.label||n.language||"Unknown";i.selected=n.enabled;r=e.call(this,t,i)||this;r.track=n;r.addClass("vjs-"+n.kind+"-menu-item");var s=function e(){for(var t=arguments.length,i=new Array(t),n=0;n<t;n++){i[n]=arguments[n]}r.handleTracksChange.apply(xt(r),i)};a.addEventListener("change",s);r.on("dispose",function(){a.removeEventListener("change",s)});return r}var i=t.prototype;i.createEl=function t(i,r,n){var a=\'<span class="vjs-menu-item-text">\'+this.localize(this.options_.label);
1if(this.options_.track.kind==="main-desc"){a+=\'\\n        <span aria-hidden="true" class="vjs-icon-placeholder"></span>\\n        <span class="vjs-control-text"> \'+this.localize("Descriptions")+"</span>\\n      "}a+="</span>";var s=e.prototype.createEl.call(this,i,C({innerHTML:a},r),n);return s};i.handleClick=function t(i){var r=this.player_.audioTracks();e.prototype.handleClick.call(this,i);for(var n=0;n<r.length;n++){var a=r[n];a.enabled=a===this.track}};i.handleTracksChange=function e(t){this.selected(this.track.enabled)};return t}(_n);It.registerComponent("AudioTrackMenuItem",Pn);var On=function(e){Dt(t,e);function t(t,i){if(i===void 0){i={}}i.tracks=t.audioTracks();return e.call(this,t,i)||this}var i=t.prototype;i.buildCSSClass=function t(){return"vjs-audio-button "+e.prototype.buildCSSClass.call(this)};i.buildWrapperCSSClass=function t(){return"vjs-audio-button "+e.prototype.buildWrapperCSSClass.call(this)};i.createItems=function e(t){if(t===void 0){t=[]}this.hideThreshold_=1;var i=this.player_.audioTracks();for(var r=0;r<i.length;r++){var n=i[r];t.push(new Pn(this.player_,{track:n,selectable:true,multiSelectable:false}))}return t};return t}(gn);On.prototype.controlText_="Audio Track";It.registerComponent("AudioTrackButton",On);var Ln=function(e){Dt(t,e);function t(t,i){var r;var n=i.rate;var a=parseFloat(n,10);i.label=n;i.selected=a===1;i.selectable=true;i.multiSelectable=false;r=e.call(this,t,i)||this;r.label=n;r.rate=a;r.on(t,"ratechange",r.update);return r}var i=t.prototype;i.handleClick=function t(i){e.prototype.handleClick.call(this);this.player().playbackRate(this.rate)};i.update=function e(t){this.selected(this.player().playbackRate()===this.rate)};return t}(_n);Ln.prototype.contentElType="button";It.registerComponent("PlaybackRateMenuItem",Ln);var Dn=function(e){Dt(t,e);function t(t,i){var r;r=e.call(this,t,i)||this;r.updateVisibility();r.updateLabel();r.on(t,"loadstart",r.updateVisibility);r.on(t,"ratechange",r.updateLabel);return r}var i=t.prototype;i.createEl=function t(){var i=e.prototype.createEl.call(this);this.labelEl_=ae("div",{className:"vjs-playback-rate-value",innerHTML:"1x"});i.appendChild(this.labelEl_);return i};i.dispose=function t(){this.labelEl_=null;e.prototype.dispose.call(this)};i.buildCSSClass=function t(){return"vjs-playback-rate "+e.prototype.buildCSSClass.call(this)};i.buildWrapperCSSClass=function t(){return"vjs-playback-rate "+e.prototype.buildWrapperCSSClass.call(this)};i.createMenu=function e(){var t=new vn(this.player());var i=this.playbackRates();if(i){for(var r=i.length-1;r>=0;r--){t.addChild(new Ln(this.player(),{rate:i[r]+"x"}))}}return t};i.updateARIAAttributes=function e(){this.el().setAttribute("aria-valuenow",this.player().playbackRate())};i.handleClick=function e(t){var i=this.player().playbackRate();var r=this.playbackRates();var n=r[0];for(var a=0;a<r.length;a++){if(r[a]>i){n=r[a];break}}this.player().playbackRate(n)};i.playbackRates=function e(){return this.options_.playbackRates||this.options_.playerOptions&&this.options_.playerOptions.playbackRates};i.playbackRateSupported=function e(){return this.player().tech_&&this.player().tech_.featuresPlaybackRate&&this.playbackRates()&&this.playbackRates().length>0};i.updateVisibility=function e(t){if(this.playbackRateSupported()){this.removeClass("vjs-hidden")}else{this.addClass("vjs-hidden")}};i.updateLabel=function e(t){if(this.playbackRateSupported()){this.labelEl_.innerHTML=this.player().playbackRate()+"x"}};return t}(mn);Dn.prototype.controlText_="Playback Rate";It.registerComponent("PlaybackRateMenuButton",Dn);var Rn=function(e){Dt(t,e);function t(){return e.apply(this,arguments)||this}var i=t.prototype;i.buildCSSClass=function t(){return"vjs-spacer "+e.prototype.buildCSSClass.call(this)};i.createEl=function t(){return e.prototype.createEl.call(this,"div",{className:this.buildCSSClass()})};return t}(It);It.registerComponent("Spacer",Rn);var Nn=function(e){Dt(t,e);function t(){return e.apply(this,arguments)||this}var i=t.prototype;i.buildCSSClass=function t(){return"vjs-custom-control-spacer "+e.prototype.buildCSSClass.call(this)};i.createEl=function t(){var i=e.prototype.createEl.call(this,{className:this.buildCSSClass()});i.innerHTML="\\xa0";return i};return t}(Rn);It.registerComponent("CustomControlSpacer",Nn);var Mn=function(e){Dt(t,e);function t(){return e.apply(this,arguments)||this}var i=t.prototype;i.createEl=function t(){return e.prototype.createEl.call(this,"div",{className:"vjs-control-bar",dir:"ltr"})};return t}(It);Mn.prototype.options_={children:["playToggle","volumePanel","currentTimeDisplay","timeDivider","durationDisplay","progressControl","liveDisplay","seekToLive","remainingTimeDisplay","customControlSpacer","playbackRateMenuButton","chaptersButton","descriptionsButton","subsCapsButton","audioTrackButton","fullscreenToggle"]};if("exitPictureInPicture"in c){Mn.prototype.options_.children.splice(Mn.prototype.options_.children.length-1,0,"pictureInPictureToggle")}It.registerComponent("ControlBar",Mn);var Un=function(e){Dt(t,e);function t(t,i){var r;r=e.call(this,t,i)||this;r.on(t,"error",r.open);return r}var i=t.prototype;i.buildCSSClass=function t(){return"vjs-error-display "+e.prototype.buildCSSClass.call(this)};i.content=function e(){var t=this.player().error();return t?this.localize(t.message):""};return t}(ri);Un.prototype.options_=S({}
1,ri.prototype.options_,{pauseOnOpen:false,fillAlways:true,temporary:false,uncloseable:true});It.registerComponent("ErrorDisplay",Un);var Bn="vjs-text-track-settings";var Fn=["#000","Black"];var Hn=["#00F","Blue"];var Vn=["#0FF","Cyan"];var qn=["#0F0","Green"];var zn=["#F0F","Magenta"];var Wn=["#F00","Red"];var Gn=["#FFF","White"];var Yn=["#FF0","Yellow"];var Kn=["1","Opaque"];var Xn=["0.5","Semi-Transparent"];var Qn=["0","Transparent"];var Jn={backgroundColor:{selector:".vjs-bg-color > select",id:"captions-background-color-%s",label:"Color",options:[Fn,Gn,Wn,qn,Hn,Yn,zn,Vn]},backgroundOpacity:{selector:".vjs-bg-opacity > select",id:"captions-background-opacity-%s",label:"Transparency",options:[Kn,Xn,Qn]},color:{selector:".vjs-fg-color > select",id:"captions-foreground-color-%s",label:"Color",options:[Gn,Fn,Wn,qn,Hn,Yn,zn,Vn]},edgeStyle:{selector:".vjs-edge-style > select",id:"%s",label:"Text Edge Style",options:[["none","None"],["raised","Raised"],["depressed","Depressed"],["uniform","Uniform"],["dropshadow","Dropshadow"]]},fontFamily:{selector:".vjs-font-family > select",id:"captions-font-family-%s",label:"Font Family",options:[["proportionalSansSerif","Proportional Sans-Serif"],["monospaceSansSerif","Monospace Sans-Serif"],["proportionalSerif","Proportional Serif"],["monospaceSerif","Monospace Serif"],["casual","Casual"],["script","Script"],["small-caps","Small Caps"]]},fontPercent:{selector:".vjs-font-percent > select",id:"captions-font-size-%s",label:"Font Size",options:[["0.50","50%"],["0.75","75%"],["1.00","100%"],["1.25","125%"],["1.50","150%"],["1.75","175%"],["2.00","200%"],["3.00","300%"],["4.00","400%"]],default:2,parser:function e(t){return t==="1.00"?null:Number(t)}},textOpacity:{selector:".vjs-text-opacity > select",id:"captions-foreground-opacity-%s",label:"Transparency",options:[Kn,Xn]},windowColor:{selector:".vjs-window-color > select",id:"captions-window-color-%s",label:"Color"},windowOpacity:{selector:".vjs-window-opacity > select",id:"captions-window-opacity-%s",label:"Transparency",options:[Qn,Xn,Kn]}};Jn.windowColor.options=Jn.backgroundColor.options;function Zn(e,t){if(t){e=t(e)}if(e&&e!=="none"){return e}}function $n(e,t){var i=e.options[e.options.selectedIndex].value;return Zn(i,t)}function ea(e,t,i){if(!t){return}for(var r=0;r<e.options.length;r++){if(Zn(e.options[r].value,i)===t){e.selectedIndex=r;break}}}var ta=function(e){Dt(t,e);function t(t,i){var r;i.temporary=false;r=e.call(this,t,i)||this;r.updateDisplay=it(xt(r),r.updateDisplay);r.fill();r.hasBeenOpened_=r.hasBeenFilled_=true;r.endDialog=ae("p",{className:"vjs-control-text",textContent:r.localize("End of dialog window.")});r.el().appendChild(r.endDialog);r.setDefaults();if(i.persistTextTrackSettings===undefined){r.options_.persistTextTrackSettings=r.options_.playerOptions.persistTextTrackSettings}r.on(r.$(".vjs-done-button"),"click",function(){r.saveSettings();r.close()});r.on(r.$(".vjs-default-button"),"click",function(){r.setDefaults();r.updateDisplay()});j(Jn,function(e){r.on(r.$(e.selector),"change",r.updateDisplay)});if(r.options_.persistTextTrackSettings){r.restoreSettings()}return r}var i=t.prototype;i.dispose=function t(){this.endDialog=null;e.prototype.dispose.call(this)};i.createElSelect_=function e(t,i,r){var n=this;if(i===void 0){i=""}if(r===void 0){r="label"}var a=Jn[t];var s=a.id.replace("%s",this.id_);var o=[i,s].join(" ").trim();return["<"+r+\' id="\'+s+\'" class="\'+(r==="label"?"vjs-label":"")+\'">\',this.localize(a.label),"</"+r+">",\'<select aria-labelledby="\'+o+\'">\'].concat(a.options.map(function(e){var t=s+"-"+e[1].replace(/\\W+/g,"");return[\'<option id="\'+t+\'" value="\'+e[0]+\'" \',\'aria-labelledby="\'+o+" "+t+\'">\',n.localize(e[1]),"</option>"].join("")})).concat("</select>").join("")};i.createElFgColor_=function e(){var t="captions-text-legend-"+this.id_;return[\'<fieldset class="vjs-fg-color vjs-track-setting">\',\'<legend id="\'+t+\'">\',this.localize("Text"),"</legend>",this.createElSelect_("color",t),\'<span class="vjs-text-opacity vjs-opacity">\',this.cr'),t[1].s.push('this.kinds_.indexOf(s.kind)>-1){var o=new i(this.player_,{track:s,kinds:this.kinds_,kind:this.kind_,selectable:true,multiSelectable:false});o.addClass("vjs-"+s.kind+"-menu-item");t.push(o)}}return t};return t}(gn);It.registerComponent("TextTrackButton",Sn);var kn=function(e){Dt(t,e);function t(t,i){var r;var n=i.track;var a=i.cue;var s=t.currentTime();i.selectable=true;i.multiSelectable=false;i.label=a.text;i.selected=a.startTime<=s&&s<a.endTime;r=e.call(this,t,i)||this;r.track=n;r.cue=a;n.addEventListener("cuechange",it(xt(r),r.update));return r}var i=t.prototype;i.handleClick=function t(i){e.prototype.handleClick.call(this);this.player_.currentTime(this.cue.startTime);this.update(this.cue.startTime)};i.update=function e(t){var i=this.cue;var r=this.player_.currentTime();this.selected(i.startTime<=r&&r<i.endTime)};return t}(_n);It.registerComponent("ChaptersTrackMenuItem",kn);var En=function(e){Dt(t,e);function t(t,i,r){return e.call(this,t,i,r)||this}var i=t.prototype;i.buildCSSClass=function t(){return"vjs-chapters-button "+e.prototype.buildCSSClass.call(this)};i.buildWrapperCSSClass=function t(){return"vjs-chapters-button "+e.prototype.buildWrapperCSSClass.call(this)};i.update=function t(i){if(!this.track_||i&&(i.type==="addtrack"||i.type==="removetrack")){this.setTrack(this.findChapter
1sTrack())}e.prototype.update.call(this)};i.setTrack=function e(t){if(this.track_===t){return}if(!this.updateHandler_){this.updateHandler_=this.update.bind(this)}if(this.track_){var i=this.player_.remoteTextTrackEls().getTrackElementByTrack_(this.track_);if(i){i.removeEventListener("load",this.updateHandler_)}this.track_=null}this.track_=t;if(this.track_){this.track_.mode="hidden";var r=this.player_.remoteTextTrackEls().getTrackElementByTrack_(this.track_);if(r){r.addEventListener("load",this.updateHandler_)}}};i.findChaptersTrack=function e(){var t=this.player_.textTracks()||[];for(var i=t.length-1;i>=0;i--){var r=t[i];if(r.kind===this.kind_){return r}}};i.getMenuCaption=function e(){if(this.track_&&this.track_.label){return this.track_.label}return this.localize(Tt(this.kind_))};i.createMenu=function t(){this.options_.title=this.getMenuCaption();return e.prototype.createMenu.call(this)};i.createItems=function e(){var t=[];if(!this.track_){return t}var i=this.track_.cues;if(!i){return t}for(var r=0,n=i.length;r<n;r++){var a=i[r];var s=new kn(this.player_,{track:this.track_,cue:a});t.push(s)}return t};return t}(Sn);En.prototype.kind_="chapters";En.prototype.controlText_="Chapters";It.registerComponent("ChaptersButton",En);var jn=function(e){Dt(t,e);function t(t,i,r){var n;n=e.call(this,t,i,r)||this;var a=t.textTracks();var s=it(xt(n),n.handleTracksChange);a.addEventListener("change",s);n.on("dispose",function(){a.removeEventListener("change",s)});return n}var i=t.prototype;i.handleTracksChange=function e(t){var i=this.player().textTracks();var r=false;for(var n=0,a=i.length;n<a;n++){var s=i[n];if(s.kind!==this.kind_&&s.mode==="showing"){r=true;break}}if(r){this.disable()}else{this.enable()}};i.buildCSSClass=function t(){return"vjs-descriptions-button "+e.prototype.buildCSSClass.call(this)};i.buildWrapperCSSClass=function t(){return"vjs-descriptions-button "+e.prototype.buildWrapperCSSClass.call(this)};return t}(Sn);jn.prototype.kind_="descriptions";jn.prototype.controlText_="Descriptions";It.registerComponent("DescriptionsButton",jn);var wn=function(e){Dt(t,e);function t(t,i,r){return e.call(this,t,i,r)||this}var i=t.prototype;i.buildCSSClass=function t(){return"vjs-subtitles-button "+e.prototype.buildCSSClass.call(this)};i.buildWrapperCSSClass=function t(){return"vjs-subtitles-button "+e.prototype.buildWrapperCSSClass.call(this)};return t}(Sn);wn.prototype.kind_="subtitles";wn.prototype.controlText_="Subtitles";It.registerComponent("SubtitlesButton",wn);var Cn=function(e){Dt(t,e);function t(t,i){var r;i.track={player:t,kind:i.kind,label:i.kind+" settings",selectable:false,default:false,mode:"disabled"};i.selectable=false;i.name="CaptionSettingsMenuItem";r=e.call(this,t,i)||this;r.addClass("vjs-texttrack-settings");r.controlText(", opens "+i.kind+" settings dialog");return r}var i=t.prototype;i.handleClick=function e(t){this.player().getChild("textTrackSettings").open()};return t}(bn);It.registerComponent("CaptionSettingsMenuItem",Cn);var In=function(e){Dt(t,e);function t(t,i,r){return e.call(this,t,i,r)||this}var i=t.prototype;i.buildCSSClass=function t(){return"vjs-captions-button "+e.prototype.buildCSSClass.call(this)};i.buildWrapperCSSClass=function t(){return"vjs-captions-button "+e.prototype.buildWrapperCSSClass.call(this)};i.createItems=function t(){var i=[];if(!(this.player().tech_&&this.player().tech_.featuresNativeTextTracks)&&this.player().getChild("textTrackSettings")){i.push(new Cn(this.player_,{kind:this.kind_}));this.hideThreshold_+=1}return e.prototype.createItems.call(this,i)};return t}(Sn);In.prototype.kind_="captions";In.prototype.controlText_="Captions";It.registerComponent("CaptionsButton",In);var An=function(e){Dt(t,e);function t(){return e.apply(this,arguments)||this}var i=t.prototype;i.createEl=function t(i,r,n){var a=\'<span class="vjs-menu-item-text">\'+this.localize(this.options_.label);if(this.options_.track.kind==="captions"){a+=\'\\n        <span aria-hidden="true" class="vjs-icon-placeholder"></span>\\n        <span class="vjs-control-text"> \'+this.localize("Captions")+"</span>\\n      "}a+="</span>";var s=e.prototype.createEl.call(this,i,C({innerHTML:a},r),n);return s};return t}(bn);It.registerComponent("SubsCapsMenuItem",An);var xn=function(e){Dt(t,e);function t(t,i){var r;if(i===void 0){i={}}r=e.call(this,t,i)||this;r.label_="subtitles";if(["en","en-us","en-ca","fr-ca"].indexOf(r.player_.language_)>-1){r.label_="captions"}r.menuButton_.controlText(Tt(r.label_));return r}var i=t.prototype;i.buildCSSClass=function t(){return"vjs-subs-caps-button "+e.prototype.buildCSSClass.call(this)};i.buildWrapperCSSClass=function t(){return"vjs-subs-caps-button "+e.prototype.buildWrapperCSSClass.call(this)};i.createItems=function t(){var i=[];if(!(this.player().tech_&&this.player().tech_.featuresNativeTextTracks)&&this.player().getChild("textTrackSettings")){i.push(new Cn(this.player_,{kind:this.label_}));this.hideThreshold_+=1}i=e.prototype.createItems.call(this,i,An);return i};return t}(Sn);xn.prototype.kinds_=["captions","subtitles"];xn.prototype.controlText_="Subtitles";It.registerComponent("SubsCapsButton",xn);var Pn=function(e){Dt(t,e);function t(t,i){var r;var n=i.track;var a=t.audioTracks();i.label=n.label||n.language||"Unknown";i.selected=n.enabled;r=e.call(this,t,i)||this;r.track=n;r.addClass("vjs-"+n.kind+"-menu-item");var s=function e(){for(var t=arguments.length,i=new Array(t),n=0;n<t;n++){i[n]=arguments[n]}r.handleTracksChange.apply(xt(r),i)};a.addEventListener("change",s);r.on("dispose",function(){a.removeEventListener("change",s)});return r}var i=t.prototype;i.createEl=function t(i,r,n){var a=\'<span class="vjs-menu-item-text">\'+this.localize(this.options_.label);
1if(this.options_.track.kind==="main-desc"){a+=\'\\n        <span aria-hidden="true" class="vjs-icon-placeholder"></span>\\n        <span class="vjs-control-text"> \'+this.localize("Descriptions")+"</span>\\n      "}a+="</span>";var s=e.prototype.createEl.call(this,i,C({innerHTML:a},r),n);return s};i.handleClick=function t(i){var r=this.player_.audioTracks();e.prototype.handleClick.call(this,i);for(var n=0;n<r.length;n++){var a=r[n];a.enabled=a===this.track}};i.handleTracksChange=function e(t){this.selected(this.track.enabled)};return t}(_n);It.registerComponent("AudioTrackMenuItem",Pn);var On=function(e){Dt(t,e);function t(t,i){if(i===void 0){i={}}i.tracks=t.audioTracks();return e.call(this,t,i)||this}var i=t.prototype;i.buildCSSClass=function t(){return"vjs-audio-button "+e.prototype.buildCSSClass.call(this)};i.buildWrapperCSSClass=function t(){return"vjs-audio-button "+e.prototype.buildWrapperCSSClass.call(this)};i.createItems=function e(t){if(t===void 0){t=[]}this.hideThreshold_=1;var i=this.player_.audioTracks();for(var r=0;r<i.length;r++){var n=i[r];t.push(new Pn(this.player_,{track:n,selectable:true,multiSelectable:false}))}return t};return t}(gn);On.prototype.controlText_="Audio Track";It.registerComponent("AudioTrackButton",On);var Ln=function(e){Dt(t,e);function t(t,i){var r;var n=i.rate;var a=parseFloat(n,10);i.label=n;i.selected=a===1;i.selectable=true;i.multiSelectable=false;r=e.call(this,t,i)||this;r.label=n;r.rate=a;r.on(t,"ratechange",r.update);return r}var i=t.prototype;i.handleClick=function t(i){e.prototype.handleClick.call(this);this.player().playbackRate(this.rate)};i.update=function e(t){this.selected(this.player().playbackRate()===this.rate)};return t}(_n);Ln.prototype.contentElType="button";It.registerComponent("PlaybackRateMenuItem",Ln);var Dn=function(e){Dt(t,e);function t(t,i){var r;r=e.call(this,t,i)||this;r.updateVisibility();r.updateLabel();r.on(t,"loadstart",r.updateVisibility);r.on(t,"ratechange",r.updateLabel);return r}var i=t.prototype;i.createEl=function t(){var i=e.prototype.createEl.call(this);this.labelEl_=ae("div",{className:"vjs-playback-rate-value",innerHTML:"1x"});i.appendChild(this.labelEl_);return i};i.dispose=function t(){this.labelEl_=null;e.prototype.dispose.call(this)};i.buildCSSClass=function t(){return"vjs-playback-rate "+e.prototype.buildCSSClass.call(this)};i.buildWrapperCSSClass=function t(){return"vjs-playback-rate "+e.prototype.buildWrapperCSSClass.call(this)};i.createMenu=function e(){var t=new vn(this.player());var i=this.playbackRates();if(i){for(var r=i.length-1;r>=0;r--){t.addChild(new Ln(this.player(),{rate:i[r]+"x"}))}}return t};i.updateARIAAttributes=function e(){this.el().setAttribute("aria-valuenow",this.player().playbackRate())};i.handleClick=function e(t){var i=this.player().playbackRate();var r=this.playbackRates();var n=r[0];for(var a=0;a<r.length;a++){if(r[a]>i){n=r[a];break}}this.player().playbackRate(n)};i.playbackRates=function e(){return this.options_.playbackRates||this.options_.playerOptions&&this.options_.playerOptions.playbackRates};i.playbackRateSupported=function e(){return this.player().tech_&&this.player().tech_.featuresPlaybackRate&&this.playbackRates()&&this.playbackRates().length>0};i.updateVisibility=function e(t){if(this.playbackRateSupported()){this.removeClass("vjs-hidden")}else{this.addClass("vjs-hidden")}};i.updateLabel=function e(t){if(this.playbackRateSupported()){this.labelEl_.innerHTML=this.player().playbackRate()+"x"}};return t}(mn);Dn.prototype.controlText_="Playback Rate";It.registerComponent("PlaybackRateMenuButton",Dn);var Rn=function(e){Dt(t,e);function t(){return e.apply(this,arguments)||this}var i=t.prototype;i.buildCSSClass=function t(){return"vjs-spacer "+e.prototype.buildCSSClass.call(this)};i.createEl=function t(){return e.prototype.createEl.call(this,"div",{className:this.buildCSSClass()})};return t}(It);It.registerComponent("Spacer",Rn);var Nn=function(e){Dt(t,e);function t(){return e.apply(this,arguments)||this}var i=t.prototype;i.buildCSSClass=function t(){return"vjs-custom-control-spacer "+e.prototype.buildCSSClass.call(this)};i.createEl=function t(){var i=e.prototype.createEl.call(this,{className:this.buildCSSClass()});i.innerHTML="\\xa0";return i};return t}(Rn);It.registerComponent("CustomControlSpacer",Nn);var Mn=function(e){Dt(t,e);function t(){return e.apply(this,arguments)||this}var i=t.prototype;i.createEl=function t(){return e.prototype.createEl.call(this,"div",{className:"vjs-control-bar",dir:"ltr"})};return t}(It);Mn.prototype.options_={children:["playToggle","volumePanel","currentTimeDisplay","timeDivider","durationDisplay","progressControl","liveDisplay","seekToLive","remainingTimeDisplay","customControlSpacer","playbackRateMenuButton","chaptersButton","descriptionsButton","subsCapsButton","audioTrackButton","fullscreenToggle"]};if("exitPictureInPicture"in c){Mn.prototype.options_.children.splice(Mn.prototype.options_.children.length-1,0,"pictureInPictureToggle")}It.registerComponent("ControlBar",Mn);var Un=function(e){Dt(t,e);function t(t,i){var r;r=e.call(this,t,i)||this;r.on(t,"error",r.open);return r}var i=t.prototype;i.buildCSSClass=function t(){return"vjs-error-display "+e.prototype.buildCSSClass.call(this)};i.content=function e(){var t=this.player().error();return t?this.localize(t.message):""};return t}(ri);Un.prototype.options_=S({}
1,ri.prototype.options_,{pauseOnOpen:false,fillAlways:true,temporary:false,uncloseable:true});It.registerComponent("ErrorDisplay",Un);var Bn="vjs-text-track-settings";var Fn=["#000","Black"];var Hn=["#00F","Blue"];var Vn=["#0FF","Cyan"];var qn=["#0F0","Green"];var zn=["#F0F","Magenta"];var Wn=["#F00","Red"];var Gn=["#FFF","White"];var Yn=["#FF0","Yellow"];var Kn=["1","Opaque"];var Xn=["0.5","Semi-Transparent"];var Qn=["0","Transparent"];var Jn={backgroundColor:{selector:".vjs-bg-color > select",id:"captions-background-color-%s",label:"Color",options:[Fn,Gn,Wn,qn,Hn,Yn,zn,Vn]},backgroundOpacity:{selector:".vjs-bg-opacity > select",id:"captions-background-opacity-%s",label:"Transparency",options:[Kn,Xn,Qn]},color:{selector:".vjs-fg-color > select",id:"captions-foreground-color-%s",label:"Color",options:[Gn,Fn,Wn,qn,Hn,Yn,zn,Vn]},edgeStyle:{selector:".vjs-edge-style > select",id:"%s",label:"Text Edge Style",options:[["none","None"],["raised","Raised"],["depressed","Depressed"],["uniform","Uniform"],["dropshadow","Dropshadow"]]},fontFamily:{selector:".vjs-font-family > select",id:"captions-font-family-%s",label:"Font Family",options:[["proportionalSansSerif","Proportional Sans-Serif"],["monospaceSansSerif","Monospace Sans-Serif"],["proportionalSerif","Proportional Serif"],["monospaceSerif","Monospace Serif"],["casual","Casual"],["script","Script"],["small-caps","Small Caps"]]},fontPercent:{selector:".vjs-font-percent > select",id:"captions-font-size-%s",label:"Font Size",options:[["0.50","50%"],["0.75","75%"],["1.00","100%"],["1.25","125%"],["1.50","150%"],["1.75","175%"],["2.00","200%"],["3.00","300%"],["4.00","400%"]],default:2,parser:function e(t){return t==="1.00"?null:Number(t)}},textOpacity:{selector:".vjs-text-opacity > select",id:"captions-foreground-opacity-%s",label:"Transparency",options:[Kn,Xn]},windowColor:{selector:".vjs-window-color > select",id:"captions-window-color-%s",label:"Color"},windowOpacity:{selector:".vjs-window-opacity > select",id:"captions-window-opacity-%s",label:"Transparency",options:[Qn,Xn,Kn]}};Jn.windowColor.options=Jn.backgroundColor.options;function Zn(e,t){if(t){e=t(e)}if(e&&e!=="none"){return e}}function $n(e,t){var i=e.options[e.options.selectedIndex].value;return Zn(i,t)}function ea(e,t,i){if(!t){return}for(var r=0;r<e.options.length;r++){if(Zn(e.options[r].value,i)===t){e.selectedIndex=r;break}}}var ta=function(e){Dt(t,e);function t(t,i){var r;i.temporary=false;r=e.call(this,t,i)||this;r.updateDisplay=it(xt(r),r.updateDisplay);r.fill();r.hasBeenOpened_=r.hasBeenFilled_=true;r.endDialog=ae("p",{className:"vjs-control-text",textContent:r.localize("End of dialog window.")});r.el().appendChild(r.endDialog);r.setDefaults();if(i.persistTextTrackSettings===undefined){r.options_.persistTextTrackSettings=r.options_.playerOptions.persistTextTrackSettings}r.on(r.$(".vjs-done-button"),"click",function(){r.saveSettings();r.close()});r.on(r.$(".vjs-default-button"),"click",function(){r.setDefaults();r.updateDisplay()});j(Jn,function(e){r.on(r.$(e.selector),"change",r.updateDisplay)});if(r.options_.persistTextTrackSettings){r.restoreSettings()}return r}var i=t.prototype;i.dispose=function t(){this.endDialog=null;e.prototype.dispose.call(this)};i.createElSelect_=function e(t,i,r){var n=this;if(i===void 0){i=""}if(r===void 0){r="label"}var a=Jn[t];var s=a.id.replace("%s",this.id_);var o=[i,s].join(" ").trim();return["<"+r+\' id="\'+s+\'" class="\'+(r==="label"?"vjs-label":"")+\'">\',this.localize(a.label),"</"+r+">",\'<select aria-labelledby="\'+o+\'">\'].concat(a.options.map(function(e){var t=s+"-"+e[1].replace(/\\W+/g,"");return[\'<option id="\'+t+\'" value="\'+e[0]+\'" \',\'aria-labelledby="\'+o+" "+t+\'">\',n.localize(e[1]),"</option>"].join("")})).concat("</select>").join("")};i.createElFgColor_=function e(){var t="captions-text-legend-"+this.id_;return[\'<fieldset class="vjs-fg-color vjs-track-setting">\',\'<legend id="\'+t+\'">\',this.localize("Text"),"</legend>",this.createElSelect_("color",t),\'<span class="vjs-text-opacity vjs-opacity">
1\',this.cr'),t[0].s.push('eateElSelect_("textOpacity",t),"</span>","</fieldset>"].join("")};i.createElBgColor_=function e(){var t="captions-background-"+this.id_;return[\'<fieldset class="vjs-bg-color vjs-track-setting">\',\'<legend id="\'+t+\'">\',this.localize("Background"),"</legend>",this.createElSelect_("backgroundColor",t),\'<span class="vjs-bg-opacity vjs-opacity">\',this.createElSelect_("backgroundOpacity",t),"</span>","</fieldset>"].join("")};i.createElWinColor_=function e(){var t="captions-window-"+this.id_;return[\'<fieldset class="vjs-window-color vjs-track-setting">\',\'<legend id="\'+t+\'">\',this.localize("Window"),"</legend>",this.createElSelect_("windowColor",t),\'<span class="vjs-window-opacity vjs-opacity">\',this.createElSelect_("windowOpacity",t),"</span>","</fieldset>"].join("")};i.createElColors_=function e(){return ae("div",{className:"vjs-track-settings-colors",innerHTML:[this.createElFgColor_(),this.createElBgColor_(),this.createElWinColor_()].join("")})};i.createElFont_=function e(){return ae("div",{className:"vjs-track-settings-font",innerHTML:[\'<fieldset class="vjs-font-percent vjs-track-setting">\',this.createElSelect_("fontPercent","","legend"),"</fieldset>",\'<fieldset class="vjs-edge-style vjs-track-setting">\',this.createElSelect_("edgeStyle","","legend"),"</fieldset>",\'<fieldset class="vjs-font-family vjs-track-setting">\',this.createElSelect_("fontFamily","","legend"),"</fieldset>"].join("")})};i.createElControls_=function e(){var t=this.localize("restore all settings to the default values");return ae("div",{className:"vjs-track-settings-controls",innerHTML:[\'<button type="button" class="vjs-default-button" title="\'+t+\'">\',this.localize("Reset"),\'<span class="vjs-control-text"> \'+t+"</span>","</button>",\'<button type="button" class="vjs-done-button">\'+this.localize("Done")+"</button>"].join("")})};i.content=function e(){return[this.createElColors_(),this.createElFont_(),this.createElControls_()]};i.label=function e(){return this.localize("Caption Settings Dialog")};i.description=function e(){return this.localize("Beginning of dialog window. Escape will cancel and close the window.")};i.buildCSSClass=function t(){return e.prototype.buildCSSClass.call(this)+" vjs-text-track-settings"};i.getValues=function e(){var t=this;return w(Jn,function(e,i,r){var n=$n(t.$(i.selector),i.parser);if(n!==undefined){e[r]=n}return e},{})};i.setValues=function e(t){var i=this;j(Jn,function(e,r){ea(i.$(e.selector),t[r],e.parser)})};i.setDefaults=function e(){var t=this;j(Jn,function(e){var i=e.hasOwnProperty("default")?e["default"]:0;t.$(e.selector).selectedIndex=i})};i.restoreSettings=function e(){var t;try{t=JSON.parse(s.localStorage.getItem(Bn))}catch(e){b.warn(e)}if(t){this.setValues(t)}};i.saveSettings=function e(){if(!this.options_.persistTextTrackSettings){return}var t=this.getValues();try{if(Object.keys(t).length){s.localStorage.setItem(Bn,JSON.stringify(t))}else{s.localStorage.removeItem(Bn)}}catch(e){b.warn(e)}};i.updateDisplay=function e(){var t=this.player_.getChild("textTrackDisplay");if(t){t.updateDisplay()}};i.conditionalBlur_=function e(){this.previouslyActiveEl_=null;var t=this.player_.controlBar;var i=t&&t.subsCapsButton;var r=t&&t.captionsButton;if(i){i.focus()}else if(r){r.focus()}};return t}(ri);It.registerComponent("TextTrackSettings",ta);var ia=function(e){Dt(t,e);function t(t,i){var r;var n=i.ResizeObserver||s.ResizeObserver;if(i.ResizeObserver===null){n=false}var a=kt({createEl:!n,reportTouchActivity:false},i);r=e.call(this,t,a)||this;r.ResizeObserver=i.ResizeObserver||s.ResizeObserver;r.loadListener_=null;r.resizeObserver_=null;r.debouncedHandler_=nt(function(){r.resizeHandler()},100,false,xt(r));if(n){r.resizeObserver_=new r.ResizeObserver(r.debouncedHandler_);r.resizeObserver_.observe(t.el())}else{r.loadListener_=function(){if(!r.el_||!r.el_.contentWindow){return}var e=r.debouncedHandler_;var t=r.unloadListener_=function(){Qe(this,"resize",e);Qe(this,"unload",t);t=null};Xe(r.el_.contentWindow,"unload",t);Xe(r.el_.contentWindow,"resize",e)};r.one("load",r.loadListener_)}return r}var i=t.prototype;i.createEl=function t(){return e.prototype.createEl.call(this,"iframe",{className:"vjs-resize-manager",tabIndex:-1},{"aria-hidden":"true"})};i.resizeHandler=function e(){if(!this.player_||!this.player_.trigger){return}this.player_.trigger("playerresize")};i.dispose=function t(){if(this.debouncedHandler_){this.debouncedHandler_.cancel()}if(this.resizeObserver_){if(this.player_.el()){this.resizeObserver_.unobserve(this.player_.el())}this.resizeObserver_.disconnect()}if(this.loadListener_){this.off("load",this.loadListener_)}if(this.el_&&this.el_.contentWindow&&this.unloadListener_){this.unloadListener_.call(this.el_.contentWindow)}this.ResizeObserver=null;this.resizeObserver=null;this.debouncedHandler_=null;this.loadListener_=null;e.prototype.dispose.call(this)};return t}(It);It.registerComponent("ResizeManager",ia);var ra={trackingThreshold:30,liveTolerance:15};var na=function(e){Dt(t,e);function t(t,i){var r;var n=kt(ra,i,{createEl:false});r=e.call(this,t,n)||this;r.reset_();r.on(r.player_,"durationchange",r.handleDurationchange);if(q&&"hidden"in c&&"visibilityState"in c){r.on(c,"visibilitychange",r.handleVisibilityChange)}return r}var i=t.prototype;i.handleVisibilityChange=function e(){if(this.player_.duration()!==Infinity){return}if(c.hidden){this.stopTracking()}else{this.startTracking()}};i.trackLive_=function e(){var t=this.player_.seekable();if(!t||!t.length){return}var i=Number(s.performance.now().toFixed(4));var r=this.lastTime_===-1?0:(i-this.lastTime_)/1e3;this.lastTime_=i;this.pastSeekEnd_=this.pastSeekEnd()+r;var n=this.liveCurrentTime();var a=this.player_.currentTime();var o=this.player_.paused()||this.seekedBehindLive_||Math.abs(n-a)>this.options_.liveTolerance;if(!this.timeupdateSeen_||n===Infinity){o=false}if(o!==this.behindLiveEdge_){this.behindLiveEdge_=o;this.trigger("liveedgechange")}};i.handleDurationchange=function e(){if(this.player_.duration()===Infinity&&this.liveWindow()>=this.options_.trackingThreshold){if(this.player_.options_.liveui){this.player_.addClass("vjs-liveui")}this.startTracking()}else{this.player_.removeClass("vjs-liveui");this.stopTracking()}};i.startTracking=function e(){if(this.isTracking()){return}if(!this.timeupdateSeen_){this.timeupdateSeen_=this.player_.hasStarted()}this.trackingInterval_=this.setInterval(this.trackLive_,tt);this.trackLive_();this.on(this.player_,["play","pause"],this.trackLive_);if(!this.timeupdateSeen_){this.one(this.player_,"play",this.handlePlay);this.one(this.player_,"timeupdate",this.handleFirstTimeupdate)}else{this.on(this.player_,"seeked",this.handleSeeked)}};i.handleFirstTimeupdate=function e(){this.timeupdateSeen_=true;this.on(this.player_,"seeked",this.handleSeeked)};i.handleSeeked=function e(){var t=Math.abs(this.liveCurrentTime()-this.player_.currentTime());this.seekedBehindLive_=this.skipNextSeeked_?false:t>2;this.skipNextSeeked_=false;this.trackLive_()};i.handlePlay=function e(){this.one(this.player_,"timeupdate",this.seekToLiveEdge)};i.reset_=function e(){this.lastTime_=-1;this.pastSeekEnd_=0;this.lastSeekEnd_=-1;this.behindLiveEdge_=true;this.timeupdateSeen_=false;this.seekedBehindLive_=false;this.skipNextSeeked_=false;this.clearInterval(this.trackingInterval_);this.trackingInterval_=null;this.off(this.player_,["play","pause"],this.trackLive_);this.off(this.player_,"seeked",this.handleSeeked);this.off(this.player_,"play",this.handlePlay);this.off(this.player_,"timeupdate",this.handleFirstTimeupdate);this.off(this.player_,"timeupdate",this.seekToLiveEdge)};i.stopTracking=function e(){if(!this.isTracking()){return}this.reset_();this.trigger("liveedgechange")};i.seekableEnd=function e(){var t=this.player_.seekable();var i=[];var r=t?t.length:0;while(r--){i.push(t.end(r))}return i.length?i.sort()[i.length-1]:Infinity};i.seekableStart=function e(){var t=this.player_.seekable();var i=[];var r=t?t.length:0;while(r--){i.push(t.start(r))}return i.length?i.sort()[0]:0}
1;i.liveWindow=function e(){var t=this.liveCurrentTime();if(t===Infinity){return 0}return t-this.seekableStart()};i.isLive=function e(){return this.isTracking()};i.atLiveEdge=function e(){return!this.behindLiveEdge()};i.liveCurrentTime=function e(){return this.pastSeekEnd()+this.seekableEnd()};i.pastSeekEnd=function e(){var t=this.seekableEnd();if(this.lastSeekEnd_!==-1&&t!==this.lastSeekEnd_){this.pastSeekEnd_=0}this.lastSeekEnd_=t;return this.pastSeekEnd_};i.behindLiveEdge=function e(){return this.behindLiveEdge_};i.isTracking=function e(){return typeof this.trackingInterval_==="number"};i.seekToLiveEdge=function e(){this.seekedBehindLive_=false;if(this.atLiveEdge()){return}this.skipNextSeeked_=true;this.player_.currentTime(this.liveCurrentTime())};i.dispose=function t(){this.off(c,"visibilitychange",this.handleVisibilityChange);this.stopTracking();e.prototype.dispose.call(this)};return t}(It);It.registerComponent("LiveTracker",na);var aa=function e(t){var i=t.el();if(i.hasAttribute("src")){t.triggerSourceset(i.src);return true}var r=t.$$("source");var n=[];var a="";if(!r.length){return false}for(var s=0;s<r.length;s++){var o=r[s].src;if(o&&n.indexOf(o)===-1){n.push(o)}}if(!n.length){return false}if(n.length===1){a=n[0]}t.triggerSourceset(a);return true};var sa=Object.defineProperty({},"innerHTML",{get:function e(){return this.cloneNode(true).innerHTML},set:function e(t){var i=c.createElement(this.nodeName.toLowerCase());i.innerHTML=t;var r=c.createDocumentFragment();while(i.childNodes.length){r.appendChild(i.childNodes[0])}this.innerText="";s.Element.prototype.appendChild.call(this,r);return this.innerHTML}});var oa=function e(t,i){var r={};for(var n=0;n<t.length;n++){r=Object.getOwnPropertyDescriptor(t[n],i);if(r&&r.set&&r.get){break}}r.enumerable=true;r.configurable=true;return r};var la=function e(t){return oa([t.el(),s.HTMLMediaElement.prototype,s.Element.prototype,sa],"innerHTML")};var ua=function e(t){var i=t.el();if(i.resetSourceWatch_){return}var r={};var n=la(t);var a=function e(r){return function(){for(var e=arguments.length,n=new Array(e),a=0;a<e;a++){n[a]=arguments[a]}var s=r.apply(i,n);aa(t);return s}};["append","appendChild","insertAdjacentHTML"].forEach(function(e){if(!i[e]){return}r[e]=i[e];i[e]=a(r[e])});Object.defineProperty(i,"innerHTML",kt(n,{set:a(n.set)}));i.resetSourceWatch_=function(){i.resetSourceWatch_=null;Object.keys(r).forEach(function(e){i[e]=r[e]});Object.defineProperty(i,"innerHTML",n)};t.one("sourceset",i.resetSourceWatch_)};var ca=Object.defineProperty({},"src",{get:function e(){if(this.hasAttribute("src")){return _i(s.Element.prototype.getAttribute.call(this,"src"))}return""},set:function e(t){s.Element.prototype.setAttribute.call(this,"src",t);return t}});var da=function e(t){return oa([t.el(),s.HTMLMediaElement.prototype,ca],"src")};var fa=function e(t){if(!t.featuresSourceset){return}var i=t.el();if(i.resetSourceset_){return}var r=da(t);var n=i.setAttribute;var a=i.load;Object.defineProperty(i,"src",kt(r,{set:function e(n){var a=r.set.call(i,n);t.triggerSourceset(i.src);return a}}));i.setAttribute=function(e,r){var a=n.call(i,e,r);if(/src/i.test(e)){t.triggerSourceset(i.src)}return a};i.load=function(){var e=a.call(i);if(!aa(t)){t.triggerSourceset("");ua(t)}return e};if(i.currentSrc){t.triggerSourceset(i.currentSrc)}else if(!aa(t)){ua(t)}i.resetSourceset_=function(){i.resetSourceset_=null;i.load=a;i.setAttribute=n;Object.defineProperty(i,"src",r);if(i.resetSourceWatch_){i.resetSourceWatch_()}}};var ha=function e(t,i,r,n){if(n===void 0){n=true}var a=function e(r){return Object.defineProperty(t,i,{value:r,enumerable:true,writable:true})};var s={configurable:true,enumerable:true,get:function e(){var t=r();a(t);return t}};if(n){s.set=a}return Object.defineProperty(t,i,s)};var pa=function(e){Dt(t,e);function t(t,i){var r;r=e.call(this,t,i)||this;var n=t.source;var a=false;if(n&&(r.el_.currentSrc!==n.src||t.tag&&t.tag.initNetworkState_===3)){r.setSource(n)}else{r.handleLateInit_(r.el_)}if(t.enableSourceset){r.setupSourcesetHandling_()}r.isScrubbing_=false;if(r.el_.hasChildNodes()){var s=r.el_.childNodes;var o=s.length;var l=[];while(o--){var u=s[o];var c=u.nodeName.toLowerCase();if(c==="track"){if(!r.featuresNativeTextTracks){l.push(u)}else{r.remoteTextTrackEls().addTrackElement_(u);r.remoteTextTracks().addTrack(u.track);r.textTracks().addTrack(u.track);if(!a&&!r.el_.hasAttribute("crossorigin")&&Ti(u.src)){a=true}}}}for(var d=0;d<l.length;d++){r.el_.removeChild(l[d])}}r.proxyNativeTracks_();if(r.featuresNativeTextTracks&&a){b.warn("Text Tracks are being loaded from another origin but the crossorigin attribute isn\'t used.\\n"+"This may prevent text tracks from loading.")}r.restoreMetadataTracksInIOSNativePlayer_();if((G||K||U)&&t.nativeControlsForTouch===true){r.setControls(true)}r.proxyWebkitFullscreen_();r.triggerReady();return r}var i=t.prototype;i.dispose=function i(){if(this.el_&&this.el_.resetSourceset_){this.el_.resetSourceset_()}t.disposeMediaElement(this.el_);this.options_=null;e.prototype.dispose.call(this)};i.setupSourcesetHandling_=function e(){fa(this)};i.restoreMetadataTracksInIOSNativePlayer_=function e(){var t=this.textTracks();var i;var r=function e(){i=[];for(var r=0;r<t.length;r++){var n=t[r];
1if(n.kind==="metadata"){i.push({track:n,storedMode:n.mode})}}};r();t.addEventListener("change",r);this.on("dispose",function(){return t.removeEventListener("change",r)});var n=function e(){for(var r=0;r<i.length;r++){var n=i[r];if(n.track.mode==="disabled"&&n.track.mode!==n.storedMode){n.track.mode=n.storedMode}}t.removeEventListener("change",e)};this.on("webkitbeginfullscreen",function(){t.removeEventListener("change",r);t.removeEventListener("change",n);t.addEventListener("change",n)});this.on("webkitendfullscreen",function(){t.removeEventListener("change",r);t.addEventListener("change",r);t.removeEventListener("change",n)})};i.overrideNative_=function e(t,i){var r=this;if(i!==this["featuresNative"+t+"Tracks"]){return}var n=t.toLowerCase();if(this[n+"TracksListeners_"]){Object.keys(this[n+"TracksListeners_"]).forEach(function(e){var t=r.el()[n+"Tracks"];t.removeEventListener(e,r[n+"TracksListeners_"][e])})}this["featuresNative"+t+"Tracks"]=!i;this[n+"TracksListeners_"]=null;this.proxyNativeTracksForType_(n)};i.overrideNativeAudioTracks=function e(t){this.overrideNative_("Audio",t)};i.overrideNativeVideoTracks=function e(t){this.overrideNative_("Video",t)};i.proxyNativeTracksForType_=function e(t){var i=this;var r=Ki[t];var n=this.el()[r.getterName];var a=this[r.getterName]();if(!this["featuresNative"+r.capitalName+"Tracks"]||!n||!n.addEventListener){return}var s={change:function e(r){var n={type:"change",target:a,currentTarget:a,srcElement:a};a.trigger(n);if(t==="text"){i[Xi.remoteText.getterName]().trigger(n)}},addtrack:function e(t){a.addTrack(t.track)},removetrack:function e(t){a.removeTrack(t.track)}};var o=function e(){var t=[];for(var i=0;i<a.length;i++){var r=false;for(var s=0;s<n.length;s++){if(n[s]===a[i]){r=true;break}}if(!r){t.push(a[i])}}while(t.length){a.removeTrack(t.shift())}};this[r.getterName+"Listeners_"]=s;Object.keys(s).forEach(function(e){var t=s[e];n.addEventListener(e,t);i.on("dispose",function(i){return n.removeEventListener(e,t)})});this.on("loadstart",o);this.on("dispose",function(e){return i.off("loadstart",o)})};i.proxyNativeTracks_=function e(){var t=this;Ki.names.forEach(function(e){t.proxyNativeTracksForType_(e)})};i.createEl=function e(){var i=this.options_.tag;if(!i||!(this.options_.playerElIngest||this.movingMediaElementInDOM)){if(i){var r=i.cloneNode(true);if(i.parentNode){i.parentNode.insertBefore(r,i)}t.disposeMediaElement(i);i=r}else{i=c.createElement("video");var n=this.options_.tag&&he(this.options_.tag);var a=kt({},n);if(!G||this.options_.nativeControlsForTouch!==true){delete a.controls}fe(i,C(a,{id:this.options_.techId,class:"vjs-tech"}))}i.playerId=this.options_.playerId}if(typeof this.options_.preload!=="undefined"){ve(i,"preload",this.options_.preload)}if(this.options_.disablePictureInPicture!==undefined){i.disablePictureInPicture=this.options_.disablePictureInPicture}var s=["loop","muted","playsinline","autoplay"];for(var o=0;o<s.length;o++){var l=s[o];var u=this.options_[l];if(typeof u!=="undefined"){if(u){ve(i,l,l)}else{me(i,l)}i[l]=u}}return i};i.handleLateInit_=function e(t){if(t.networkState===0||t.networkState===3){return}if(t.readyState===0){var i=false;var'),t[1].s.push('eateElSelect_("textOpacity",t),"</span>","</fieldset>"].join("")};i.createElBgColor_=function e(){var t="captions-background-"+this.id_;return[\'<fieldset class="vjs-bg-color vjs-track-setting">\',\'<legend id="\'+t+\'">\',this.localize("Background"),"</legend>",this.createElSelect_("backgroundColor",t),\'<span class="vjs-bg-opacity vjs-opacity">\',this.createElSelect_("backgroundOpacity",t),"</span>","</fieldset>"].join("")};i.createElWinColor_=function e(){var t="captions-window-"+this.id_;return[\'<fieldset class="vjs-window-color vjs-track-setting">\',\'<legend id="\'+t+\'">\',this.localize("Window"),"</legend>",this.createElSelect_("windowColor",t),\'<span class="vjs-window-opacity vjs-opacity">\',this.createElSelect_("windowOpacity",t),"</span>","</fieldset>"].join("")};i.createElColors_=function e(){return ae("div",{className:"vjs-track-settings-colors",innerHTML:[this.createElFgColor_(),this.createElBgColor_(),this.createElWinColor_()].join("")})};i.createElFont_=function e(){return ae("div",{className:"vjs-track-settings-font",innerHTML:[\'<fieldset class="vjs-font-percent vjs-track-setting">\',this.createElSelect_("fontPercent","","legend"),"</fieldset>",\'<fieldset class="vjs-edge-style vjs-track-setting">\',this.createElSelect_("edgeStyle","","legend"),"</fieldset>",\'<fieldset class="vjs-font-family vjs-track-setting">\',this.createElSelect_("fontFamily","","legend"),"</fieldset>"].join("")})};i.createElControls_=function e(){var t=this.localize("restore all settings to the default values");return ae("div",{className:"vjs-track-settings-controls",innerHTML:[\'<button type="button" class="vjs-default-button" title="\'+t+\'">\',this.localize("Reset"),\'<span class="vjs-control-text"> \'+t+"</span>","</button>",\'<button type="button" class="vjs-done-button">\'+this.localize("Done")+"</button>"].join("")})};i.content=function e(){return[this.createElColors_(),this.createElFont_(),this.createElControls_()]};i.label=function e(){return this.localize("Caption Settings Dialog")};i.description=function e(){return this.localize("Beginning of dialog window. Escape will cancel and close the window.")};i.buildCSSClass=function t(){return e.prototype.buildCSSClass.call(this)+" vjs-text-track-settings"};i.getValues=function e(){var t=this;return w(Jn,function(e,i,r){var n=$n(t.$(i.selector),i.parser);
1if(n!==undefined){e[r]=n}return e},{})};i.setValues=function e(t){var i=this;j(Jn,function(e,r){ea(i.$(e.selector),t[r],e.parser)})};i.setDefaults=function e(){var t=this;j(Jn,function(e){var i=e.hasOwnProperty("default")?e["default"]:0;t.$(e.selector).selectedIndex=i})};i.restoreSettings=function e(){var t;try{t=JSON.parse(s.localStorage.getItem(Bn))}catch(e){b.warn(e)}if(t){this.setValues(t)}};i.saveSettings=function e(){if(!this.options_.persistTextTrackSettings){return}var t=this.getValues();try{if(Object.keys(t).length){s.localStorage.setItem(Bn,JSON.stringify(t))}else{s.localStorage.removeItem(Bn)}}catch(e){b.warn(e)}};i.updateDisplay=function e(){var t=this.player_.getChild("textTrackDisplay");if(t){t.updateDisplay()}};i.conditionalBlur_=function e(){this.previouslyActiveEl_=null;var t=this.player_.controlBar;var i=t&&t.subsCapsButton;var r=t&&t.captionsButton;if(i){i.focus()}else if(r){r.focus()}};return t}(ri);It.registerComponent("TextTrackSettings",ta);var ia=function(e){Dt(t,e);function t(t,i){var r;var n=i.ResizeObserver||s.ResizeObserver;if(i.ResizeObserver===null){n=false}var a=kt({createEl:!n,reportTouchActivity:false},i);r=e.call(this,t,a)||this;r.ResizeObserver=i.ResizeObserver||s.ResizeObserver;r.loadListener_=null;r.resizeObserver_=null;r.debouncedHandler_=nt(function(){r.resizeHandler()},100,false,xt(r));if(n){r.resizeObserver_=new r.ResizeObserver(r.debouncedHandler_);r.resizeObserver_.observe(t.el())}else{r.loadListener_=function(){if(!r.el_||!r.el_.contentWindow){return}var e=r.debouncedHandler_;var t=r.unloadListener_=function(){Qe(this,"resize",e);Qe(this,"unload",t);t=null};Xe(r.el_.contentWindow,"unload",t);Xe(r.el_.contentWindow,"resize",e)};r.one("load",r.loadListener_)}return r}var i=t.prototype;i.createEl=function t(){return e.prototype.createEl.call(this,"iframe",{className:"vjs-resize-manager",tabIndex:-1},{"aria-hidden":"true"})};i.resizeHandler=function e(){if(!this.player_||!this.player_.trigger){return}this.player_.trigger("playerresize")};i.dispose=function t(){if(this.debouncedHandler_){this.debouncedHandler_.cancel()}if(this.resizeObserver_){if(this.player_.el()){this.resizeObserver_.unobserve(this.player_.el())}this.resizeObserver_.disconnect()}if(this.loadListener_){this.off("load",this.loadListener_)}if(this.el_&&this.el_.contentWindow&&this.unloadListener_){this.unloadListener_.call(this.el_.contentWindow)}this.ResizeObserver=null;this.resizeObserver=null;this.debouncedHandler_=null;this.loadListener_=null;e.prototype.dispose.call(this)};return t}(It);It.registerComponent("ResizeManager",ia);var ra={trackingThreshold:30,liveTolerance:15};var na=function(e){Dt(t,e);function t(t,i){var r;var n=kt(ra,i,{createEl:false});r=e.call(this,t,n)||this;r.reset_();r.on(r.player_,"durationchange",r.handleDurationchange);if(q&&"hidden"in c&&"visibilityState"in c){r.on(c,"visibilitychange",r.handleVisibilityChange)}return r}var i=t.prototype;i.handleVisibilityChange=function e(){if(this.player_.duration()!==Infinity){return}if(c.hidden){this.stopTracking()}else{this.startTracking()}};i.trackLive_=function e(){var t=this.player_.seekable();if(!t||!t.length){return}var i=Number(s.performance.now().toFixed(4));var r=this.lastTime_===-1?0:(i-this.lastTime_)/1e3;this.lastTime_=i;this.pastSeekEnd_=this.pastSeekEnd()+r;var n=this.liveCurrentTime();var a=this.player_.currentTime();var o=this.player_.paused()||this.seekedBehindLive_||Math.abs(n-a)>this.options_.liveTolerance;if(!this.timeupdateSeen_||n===Infinity){o=false}if(o!==this.behindLiveEdge_){this.behindLiveEdge_=o;this.trigger("liveedgechange")}};i.handleDurationchange=function e(){if(this.player_.duration()===Infinity&&this.liveWindow()>=this.options_.trackingThreshold){if(this.player_.options_.liveui){this.player_.addClass("vjs-liveui")}this.startTracking()}else{this.player_.removeClass("vjs-liveui");this.stopTracking()}};i.startTracking=function e(){if(this.isTracking()){return}if(!this.timeupdateSeen_){this.timeupdateSeen_=this.player_.hasStarted()}this.trackingInterval_=this.setInterval(this.trackLive_,tt);this.trackLive_();this.on(this.player_,["play","pause"],this.trackLive_);if(!this.timeupdateSeen_){this.one(this.player_,"play",this.handlePlay);this.one(this.player_,"timeupdate",this.handleFirstTimeupdate)}else{this.on(this.player_,"seeked",this.handleSeeked)}};i.handleFirstTimeupdate=function e(){this.timeupdateSeen_=true;this.on(this.player_,"seeked",this.handleSeeked)};i.handleSeeked=function e(){var t=Math.abs(this.liveCurrentTime()-this.player_.currentTime());this.seekedBehindLive_=this.skipNextSeeked_?false:t>2;this.skipNextSeeked_=false;this.trackLive_()};i.handlePlay=function e(){this.one(this.player_,"timeupdate",this.seekToLiveEdge)};i.reset_=function e(){this.lastTime_=-1;this.pastSeekEnd_=0;this.lastSeekEnd_=-1;this.behindLiveEdge_=true;this.timeupdateSeen_=false;this.seekedBehindLive_=false;this.skipNextSeeked_=false;this.clearInterval(this.trackingInterval_);this.trackingInterval_=null;this.off(this.player_,["play","pause"],this.trackLive_);this.off(this.player_,"seeked",this.handleSeeked);this.off(this.player_,"play",this.handlePlay);this.off(this.player_,"timeupdate",this.handleFirstTimeupdate);this.off(this.player_,"timeupdate",this.seekToLiveEdge)};i.stopTracking=function e(){if(!this.isTracking()){return}this.reset_();this.trigger("liveedgechange")};i.seekableEnd=function e(){var t=this.player_.seekable();var i=[];var r=t?t.length:0;while(r--){i.push(t.end(r))}return i.length?i.sort()[i.length-1]:Infinity};i.seekableStart=function e(){var t=this.player_.seekable();var i=[];var r=t?t.length:0;while(r--){i.push(t.start(r))}return i.length?i.sort()[0]:0}
1;i.liveWindow=function e(){var t=this.liveCurrentTime();if(t===Infinity){return 0}return t-this.seekableStart()};i.isLive=function e(){return this.isTracking()};i.atLiveEdge=function e(){return!this.behindLiveEdge()};i.liveCurrentTime=function e(){return this.pastSeekEnd()+this.seekableEnd()};i.pastSeekEnd=function e(){var t=this.seekableEnd();if(this.lastSeekEnd_!==-1&&t!==this.lastSeekEnd_){this.pastSeekEnd_=0}this.lastSeekEnd_=t;return this.pastSeekEnd_};i.behindLiveEdge=function e(){return this.behindLiveEdge_};i.isTracking=function e(){return typeof this.trackingInterval_==="number"};i.seekToLiveEdge=function e(){this.seekedBehindLive_=false;if(this.atLiveEdge()){return}this.skipNextSeeked_=true;this.player_.currentTime(this.liveCurrentTime())};i.dispose=function t(){this.off(c,"visibilitychange",this.handleVisibilityChange);this.stopTracking();e.prototype.dispose.call(this)};return t}(It);It.registerComponent("LiveTracker",na);var aa=function e(t){var i=t.el();if(i.hasAttribute("src")){t.triggerSourceset(i.src);return true}var r=t.$$("source");var n=[];var a="";if(!r.length){return false}for(var s=0;s<r.length;s++){var o=r[s].src;if(o&&n.indexOf(o)===-1){n.push(o)}}if(!n.length){return false}if(n.length===1){a=n[0]}t.triggerSourceset(a);return true};var sa=Object.defineProperty({},"innerHTML",{get:function e(){return this.cloneNode(true).innerHTML},set:function e(t){var i=c.createElement(this.nodeName.toLowerCase());i.innerHTML=t;var r=c.createDocumentFragment();while(i.childNodes.length){r.appendChild(i.childNodes[0])}this.innerText="";s.Element.prototype.appendChild.call(this,r);return this.innerHTML}});var oa=function e(t,i){var r={};for(var n=0;n<t.length;n++){r=Object.getOwnPropertyDescriptor(t[n],i);if(r&&r.set&&r.get){break}}r.enumerable=true;r.configurable=true;return r};var la=function e(t){return oa([t.el(),s.HTMLMediaElement.prototype,s.Element.prototype,sa],"innerHTML")};var ua=function e(t){var i=t.el();if(i.resetSourceWatch_){return}var r={};var n=la(t);var a=function e(r){return function(){for(var e=arguments.length,n=new Array(e),a=0;a<e;a++){n[a]=arguments[a]}var s=r.apply(i,n);aa(t);return s}};["append","appendChild","insertAdjacentHTML"].forEach(function(e){if(!i[e]){return}r[e]=i[e];i[e]=a(r[e])});Object.defineProperty(i,"innerHTML",kt(n,{set:a(n.set)}));i.resetSourceWatch_=function(){i.resetSourceWatch_=null;Object.keys(r).forEach(function(e){i[e]=r[e]});Object.defineProperty(i,"innerHTML",n)};t.one("sourceset",i.resetSourceWatch_)};var ca=Object.defineProperty({},"src",{get:function e(){if(this.hasAttribute("src")){return _i(s.Element.prototype.getAttribute.call(this,"src"))}return""},set:function e(t){s.Element.prototype.setAttribute.call(this,"src",t);return t}});var da=function e(t){return oa([t.el(),s.HTMLMediaElement.prototype,ca],"src")};var fa=function e(t){if(!t.featuresSourceset){return}var i=t.el();if(i.resetSourceset_){return}var r=da(t);var n=i.setAttribute;var a=i.load;Object.defineProperty(i,"src",kt(r,{set:function e(n){var a=r.set.call(i,n);t.triggerSourceset(i.src);return a}}));i.setAttribute=function(e,r){var a=n.call(i,e,r);if(/src/i.test(e)){t.triggerSourceset(i.src)}return a};i.load=function(){var e=a.call(i);if(!aa(t)){t.triggerSourceset("");ua(t)}return e};if(i.currentSrc){t.triggerSourceset(i.currentSrc)}else if(!aa(t)){ua(t)}i.resetSourceset_=function(){i.resetSourceset_=null;i.load=a;i.setAttribute=n;Object.defineProperty(i,"src",r);if(i.resetSourceWatch_){i.resetSourceWatch_()}}};var ha=function e(t,i,r,n){if(n===void 0){n=true}var a=function e(r){return Object.defineProperty(t,i,{value:r,enumerable:true,writable:true})};var s={configurable:true,enumerable:true,get:function e(){var t=r();a(t);return t}};if(n){s.set=a}return Object.defineProperty(t,i,s)};var pa=function(e){Dt(t,e);function t(t,i){var r;r=e.call(this,t,i)||this;var n=t.source;var a=false;if(n&&(r.el_.currentSrc!==n.src||t.tag&&t.tag.initNetworkState_===3)){r.setSource(n)}else{r.handleLateInit_(r.el_)}if(t.enableSourceset){r.setupSourcesetHandling_()}r.isScrubbing_=false;if(r.el_.hasChildNodes()){var s=r.el_.childNodes;var o=s.length;var l=[];while(o--){var u=s[o];var c=u.nodeName.toLowerCase();if(c==="track"){if(!r.featuresNativeTextTracks){l.push(u)}else{r.remoteTextTrackEls().addTrackElement_(u);r.remoteTextTracks().addTrack(u.track);r.textTracks().addTrack(u.track);if(!a&&!r.el_.hasAttribute("crossorigin")&&Ti(u.src)){a=true}}}}for(var d=0;d<l.length;d++){r.el_.removeChild(l[d])}}r.proxyNativeTracks_();if(r.featuresNativeTextTracks&&a){b.warn("Text Tracks are being loaded from another origin but the crossorigin attribute isn\'t used.\\n"+"This may prevent text tracks from loading.")}r.restoreMetadataTracksInIOSNativePlayer_();if((G||K||U)&&t.nativeControlsForTouch===true){r.setControls(true)}r.proxyWebkitFullscreen_();r.triggerReady();return r}var i=t.prototype;i.dispose=function i(){if(this.el_&&this.el_.resetSourceset_){this.el_.resetSourceset_()}t.disposeMediaElement(this.el_);this.options_=null;e.prototype.dispose.call(this)};i.setupSourcesetHandling_=function e(){fa(this)};i.restoreMetadataTracksInIOSNativePlayer_=function e(){var t=this.textTracks();var i;var r=function e(){i=[];for(var r=0;r<t.length;r++){var n=t[r];
1if(n.kind==="metadata"){i.push({track:n,storedMode:n.mode})}}};r();t.addEventListener("change",r);this.on("dispose",function(){return t.removeEventListener("change",r)});var n=function e(){for(var r=0;r<i.length;r++){var n=i[r];if(n.track.mode==="disabled"&&n.track.mode!==n.storedMode){n.track.mode=n.storedMode}}t.removeEventListener("change",e)};this.on("webkitbeginfullscreen",function(){t.removeEventListener("change",r);t.removeEventListener("change",n);t.addEventListener("change",n)});this.on("webkitendfullscreen",function(){t.removeEventListener("change",r);t.addEventListener("change",r);t.removeEventListener("change",n)})};i.overrideNative_=function e(t,i){var r=this;if(i!==this["featuresNative"+t+"Tracks"]){return}var n=t.toLowerCase();if(this[n+"TracksListeners_"]){Object.keys(this[n+"TracksListeners_"]).forEach(function(e){var t=r.el()[n+"Tracks"];t.removeEventListener(e,r[n+"TracksListeners_"][e])})}this["featuresNative"+t+"Tracks"]=!i;this[n+"TracksListeners_"]=null;this.proxyNativeTracksForType_(n)};i.overrideNativeAudioTracks=function e(t){this.overrideNative_("Audio",t)};i.overrideNativeVideoTracks=function e(t){this.overrideNative_("Video",t)};i.proxyNativeTracksForType_=function e(t){var i=this;var r=Ki[t];var n=this.el()[r.getterName];var a=this[r.getterName]();if(!this["featuresNative"+r.capitalName+"Tracks"]||!n||!n.addEventListener){return}var s={change:function e(r){var n={type:"change",target:a,currentTarget:a,srcElement:a};a.trigger(n);if(t==="text"){i[Xi.remoteText.getterName]().trigger(n)}},addtrack:function e(t){a.addTrack(t.track)},removetrack:function e(t){a.removeTrack(t.track)}};var o=function e(){var t=[];for(var i=0;i<a.length;i++){var r=false;for(var s=0;s<n.length;s++){if(n[s]===a[i]){r=true;break}}if(!r){t.push(a[i])}}while(t.length){a.removeTrack(t.shift())}};this[r.getterName+"Listeners_"]=s;Object.keys(s).forEach(function(e){var t=s[e];n.addEventListener(e,t);i.on("dispose",function(i){return n.removeEventListener(e,t)})});this.on("loadstart",o);this.on("dispose",function(e){return i.off("loadstart",o)})};i.proxyNativeTracks_=function e(){var t=this;Ki.names.forEach(function(e){t.proxyNativeTracksForType_(e)})};i.createEl=function e(){var i=this.options_.tag;if(!i||!(this.options_.playerElIngest||this.movingMediaElementInDOM)){if(i){var r=i.cloneNode(true);if(i.parentNode){i.parentNode.insertBefore(r,i)}t.disposeMediaElement(i);i=r}else{i=c.createElement("video");var n=this.options_.tag&&he(this.options_.tag);var a=kt({},n);if(!G||this.options_.nativeControlsForTouch!==true){delete a.controls}fe(i,C(a,{id:this.options_.techId,class:"vjs-tech"}))}i.playerId=this.options_.playerId}if(typeof this.options_.preload!=="undefined"){ve(i,"preload",this.options_.preload)}if(this.options_.disablePictureInPicture!==undefined){i.disablePictureInPicture=this.options_.disablePictureInPicture}var s=["loop","muted","playsinline","autoplay"];for(var o=0;o<s.length;o++){var l=s[o];var u=this.options_[l];if(typeof u!=="undefined"){if(u){ve(i,l,l)}else{me(i,l)}i[l]=u}}return i};i.handleLateInit_=function e(t){if(t.networkState===0||t.networkState===3){return}if(t.readyState===0){var i=false;var'),t[0].s.push(' r=function e(){i=true};this.on("loadstart",r);var n=function e(){if(!i){this.trigger("loadstart")}};this.on("loadedmetadata",n);this.ready(function(){this.off("loadstart",r);this.off("loadedmetadata",n);if(!i){this.trigger("loadstart")}});return}var a=["loadstart"];a.push("loadedmetadata");if(t.readyState>=2){a.push("loadeddata")}if(t.readyState>=3){a.push("canplay")}if(t.readyState>=4){a.push("canplaythrough")}this.ready(function(){a.forEach(function(e){this.trigger(e)},this)})};i.setScrubbing=function e(t){this.isScrubbing_=t};i.scrubbing=function e(){return this.isScrubbing_};i.setCurrentTime=function e(t){try{if(this.isScrubbing_&&this.el_.fastSeek&&Q){this.el_.fastSeek(t)}else{this.el_.currentTime=t}}catch(e){b(e,"Video is not ready. (Video.js)")}};i.duration=function e(){var t=this;if(this.el_.duration===Infinity&&N&&H&&this.el_.currentTime===0){var i=function e(){if(t.el_.currentTime>0){if(t.el_.duration===Infinity){t.trigger("durationchange")}t.off("timeupdate",e)}};this.on("timeupdate",i);return NaN}return this.el_.duration||NaN};i.width=function e(){return this.el_.offsetWidth};i.height=function e(){return this.el_.offsetHeight};i.proxyWebkitFullscreen_=function e(){var t=this;if(!("webkitDisplayingFullscreen"in this.el_)){return}var i=function e(){this.trigger("fullscreenchange",{isFullscreen:false})};var r=function e(){if("webkitPresentationMode"in this.el_&&this.el_.webkitPresentationMode!=="picture-in-picture"){this.one("webkitendfullscreen",i);this.trigger("fullscreenchange",{isFullscreen:true,nativeIOSFullscreen:true})}};this.on("webkitbeginfullscreen",r);this.on("dispose",function(){t.off("webkitbeginfullscreen",r);t.off("webkitendfullscreen",i)})};i.supportsFullScreen=function e(){if(typeof this.el_.webkitEnterFullScreen==="function"){var t=s.navigator&&s.navigator.userAgent||"";if(/Android/.test(t)||!/Chrome|Mac OS X 10.5/.test(t)){return true}}return false};i.enterFullScreen=function e(){var t=this.el_;if(t.paused&&t.networkState<=t.HAVE_METADATA){Wt(this.el_.play());this.setTimeout(function(){t.pause();try{t.webkitEnterFullScreen()}catch(e){this.trigger("fullscreenerror",e)}},0)}else{try{t.webkitEnterFullScreen()}catch(e){this.trigger("fullscreenerror",e)}}};i.exitFullScreen=function e(){if(!this.el_.webkitDisplayingFullscreen){this.trigger("fullscreenerror",new Error("The video is not fullscreen"));return}this.el_.webkitExitFullScreen()};i.requestPictureInPicture=function e(){return this.el_.requestPictureInPicture()};i.src=function e(t){if(t===undefined){return this.el_.src}this.setSrc(t)};i.reset=function e(){t.resetMediaElement(this.el_)};i.currentSrc=function e(){if(this.currentSource_){return this.currentSource_.src}return this.el_.currentSrc};i.setControls=function e(t){this.el_.controls=!!t};i.addTextTrack=function t(i,r,n){if(!this.featuresNativeTextTracks){return e.prototype.addTextTrack.call(this,i,r,n)}return this.el_.addTextTrack(i,r,n)};i.createRemoteTextTrack=function t(i){if(!this.featuresNativeTextTracks){return e.prototype.createRemoteTextTrack.call(this,i)}var r=c.createElement("track");if(i.kind){r.kind=i.kind}if(i.label){r.label=i.label}if(i.language||i.srclang){r.srclang=i.language||i.srclang}if(i["default"]){r["default"]=i["default"]}if(i.id){r.id=i.id}if(i.src){r.src=i.src}return r};i.addRemoteTextTrack=function t(i,r){var n=e.prototype.addRemoteTextTrack.call(this,i,r);if(this.featuresNativeTextTracks){this.el().appendChild(n)}return n};i.removeRemoteTextTrack=function t(i){e.prototype.removeRemoteTextTrack.call(this,i);if(this.featuresNativeTextTracks){var r=this.$$("track");var n=r.length;while(n--){if(i===r[n]||i===r[n].track){this.el().removeChild(r[n])}}}};i.getVideoPlaybackQuality=function e(){if(typeof this.el().getVideoPlaybackQuality==="function"){return this.el().getVideoPlaybackQuality()}var t={};if(typeof this.el().webkitDroppedFrameCount!=="undefined"&&typeof this.el().webkitDecodedFrameCount!=="undefined"){t.droppedVideoFrames=this.el().webkitDroppedFrameCount;t.totalVideoFrames=this.el().webkitDecodedFrameCount}if(s.performance&&typeof s.performance.now==="function"){t.creationTime=s.performance.now()}else if(s.performance&&s.performance.timing&&typeof s.performance.timing.navigationStart==="number"){t.creationTime=s.Date.now()-s.performance.timing.navigationStart}return t};return t}($i);ha(pa,"TEST_VID",function(){if(!te()){return}var e=c.createElement("video");var t=c.createElement("track");t.kind="captions";t.srclang="en";t.label="English";e.appendChild(t);return e});pa.isSupported=function(){try{pa.TEST_VID.volume=.5}catch(e){return false}return!!(pa.TEST_VID&&pa.TEST_VID.canPlayType)};pa.canPlayType=function(e){return pa.TEST_VID.canPlayType(e)};pa.canPlaySource=function(e,t){return pa.canPlayType(e.type)};pa.canControlVolume=function(){try{var e=pa.TEST_VID.volume;pa.TEST_VID.volume=e/2+.1;return e!==pa.TEST_VID.volume}catch(e){return false}};pa.canMuteVolume=function(){try{var e=pa.TEST_VID.muted;pa.TEST_VID.muted=!e;if(pa.TEST_VID.muted){ve(pa.TEST_VID,"muted","muted")}else{me(pa.TEST_VID,"muted","muted")}return e!==pa.TEST_VID.muted}catch(e){return false}};pa.canControlPlaybackRate=function(){if(N&&H&&V<58){return false}try{var e=pa.TEST_VID.playbackRate;pa.TEST_VID.playbackRate=e/2+.1;return e!==pa.TEST_VID.playbackRate}catch(e){return false}};pa.canOverrideAttributes=function(){try{var e=function e(){};Object.defineProperty(c.createElement("video"),"src",{get:e,set:e});Object.defineProperty(c.createElement("audio"),"src",{get:e,set:e});Object.defineProperty(c.createElement("video"),"innerHTML",{get:e,set:e});Object.defineProperty(c.createElement("audio"),"innerHTML",{get:e,set:e})}catch(e){return false}return true};pa.supportsNativeTextTracks=function(){return Q||X&&H};pa.supportsNativeVideoTracks=function(){return!!(pa.TEST_VID&&pa.TEST_VID.videoTracks)};pa.supportsNativeAudioTracks=function(){return!!(pa.TEST_VID&&pa.TEST_VID.audioTracks)};pa.Events=["loadstart","suspend","abort","error","emptied","stalled","loadedmetadata","loadeddata","canplay","canplaythrough","playing","waiting","seeking","seeked","ended","durationchange","timeupdate","progress","play","pause","ratechange","resize","volumechange"];[["featuresVolumeControl","canControlVolume"],["featuresMuteControl","canMuteVolume"],["featuresPlaybackRate","canControlPlaybackRate"],["featuresSourceset","canOverrideAttributes"],["featuresNativeTextTracks","supportsNativeTextTracks"],["featuresNativeVideoTracks","supportsNativeVideoTracks"],["featuresNativeAudioTracks","supportsNativeAudioTracks"]].forEac
1h(function(e){var t=e[0],i=e[1];ha(pa.prototype,t,function(){return pa[i]()},true)});pa.prototype.movingMediaElementInDOM=!X;pa.prototype.featuresFullscreenResize=true;pa.prototype.featuresProgressEvents=true;pa.prototype.featuresTimeupdateEvents=true;var va;pa.patchCanPlayType=function(){if(M>=4&&!B&&!H){va=pa.TEST_VID&&pa.TEST_VID.constructor.prototype.canPlayType;pa.TEST_VID.constructor.prototype.canPlayType=function(e){var t=/^application\\/(?:x-|vnd\\.apple\\.)mpegurl/i;if(e&&t.test(e)){return"maybe"}return va.call(this,e)}}};pa.unpatchCanPlayType=function(){var e=pa.TEST_VID.constructor.prototype.canPlayType;if(va){pa.TEST_VID.constructor.prototype.canPlayType=va}return e};pa.patchCanPlayType();pa.disposeMediaElement=function(e){if(!e){return}if(e.parentNode){e.parentNode.removeChild(e)}while(e.hasChildNodes()){e.removeChild(e.firstChild)}e.removeAttribute("src");if(typeof e.load==="function"){(function(){try{e.load()}catch(e){}})()}};pa.resetMediaElement=function(e){if(!e){return}var t=e.querySelectorAll("source");var i=t.length;while(i--){e.removeChild(t[i])}e.removeAttribute("src");if(typeof e.load==="function"){(function(){try{e.load()}catch(e){}})()}};["muted","defaultMuted","autoplay","controls","loop","playsinline"].forEach(function(e){pa.prototype[e]=function(){return this.el_[e]||this.el_.hasAttribute(e)}});["muted","defaultMuted","autoplay","loop","playsinline"].forEach(function(e){pa.prototype["set"+Tt(e)]=function(t){this.el_[e]=t;if(t){this.el_.setAttribute(e,e)}else{this.el_.removeAttribute(e)}}});["paused","currentTime","buffered","volume","poster","preload","error","seeking","seekable","ended","playbackRate","defaultPlaybackRate","disablePictureInPicture","played","networkState","readyState","videoWidth","videoHeight","crossOrigin"].forEach(function(e){pa.prototype[e]=function(){return this.el_[e]}});["volume","src","poster","preload","playbackRate","defaultPlaybackRate","disablePictureInPicture","crossOrigin"].forEach(function(e){pa.prototype["set"+Tt(e)]=function(t){this.el_[e]=t}});["pause","load","play"].forEach(function(e){pa.prototype[e]=function(){return this.el_[e]()}});$i.withSourceHandlers(pa);pa.nativeSourceHandler={};pa.nativeSourceHandler.canPlayType=function(e){try{return pa.TEST_VID.canPlayType(e)}catch(e){return""}};pa.nativeSourceHandler.canHandleSource=function(e,t){if(e.type){return pa.nativeSourceHandler.canPlayType(e.type)}else if(e.src){var i=bi(e.src);return pa.nativeSourceHandler.canPlayType("video/"+i)}return""};pa.nativeSourceHandler.handleSource=function(e,t,i){t.setSrc(e.src)};pa.nativeSourceHandler.dispose=function(){};pa.registerSourceHandler(pa.nativeSourceHandler);$i.registerTech("Html5",pa);var ma=["progress","abort","suspend","emptied","stalled","loadedmetadata","loadeddata","timeupdate","resize","volumechange","texttrackchange"];var ga={canplay:"CanPlay",canplaythrough:"CanPlayThrough",playing:"Playing",seeked:"Seeked"};var ya=["tiny","xsmall","small","medium","large","xlarge","huge"];var _a={};ya.forEach(function(e){var t=e.charAt(0)==="x"?"x-"+e.substring(1):e;_a[e]="vjs-layout-"+t});var ba={tiny:210,xsmall:320,small:425,medium:768,large:1440,xlarge:2560,huge:Infinity};var Ta=function(e){Dt(t,e);function t(r,n,a){var s;r.id=r.id||n.id||"vjs_video_"+Fe();n=C(t.getTagSettings(r),n);n.initChildren=false;n.createEl=false;n.evented=false;n.reportTouchActivity=false;if(!n.language){if(typeof r.closest==="function"){var o=r.closest("[lang]");if(o&&o.getAttribute){n.language=o.getAttribute("lang")}}else{var l=r;while(l&&l.nodeType===1){if(he(l).hasOwnProperty("lang")){n.language=l.getAttribute("lang");break}l=l.parentNode}}}s=e.call(this,null,n,a)||this;s.boundDocumentFullscreenChange_=function(e){return s.documentFullscreenChange_(e)};s.boundFullWindowOnEscKey_=function(e){return s.fullWindowOnEscKey(e)};s.isFullscreen_=false;s.log=T(s.id_);s.fsApi_=d;s.isPosterFromTech_=false;s.queuedCallbacks_=[];s.isReady_=false;s.hasStarted_=false;s.userActive_=false;s.debugEnabled_=false;if(!s.options_||!s.options_.techOrder||!s.options_.techOrder.length){throw new Error("No techOrder specified. Did you overwrite "+"videojs.options instead of just changing the "+"properties you want to override?")}s.tag=r;s.tagAttributes=r&&he(r);s.language(s.options_.language);if(n.languages){var u={};
1Object.getOwnPropertyNames(n.languages).forEach(function(e){u[e.toLowerCase()]=n.languages[e]});s.languages_=u}else{s.languages_=t.prototype.options_.languages}s.resetCache_();s.poster_=n.poster||"";s.controls_=!!n.controls;r.controls=false;r.removeAttribute("controls");s.changingSrc_=false;s.playCallbacks_=[];s.playTerminatedQueue_=[];if(r.hasAttribute("autoplay")){s.autoplay(true)}else{s.autoplay(s.options_.autoplay)}if(n.plugins){Object.keys(n.plugins).forEach(function(e){if(typeof s[e]!=="function"){throw new Error(\'plugin "\'+e+\'" does not exist\')}})}s.scrubbing_=false;s.el_=s.createEl();gt(xt(s),{eventBusKey:"el_"});if(s.fsApi_.requestFullscreen){Xe(c,s.fsApi_.fullscreenchange,s.boundDocumentFullscreenChange_);s.on(s.fsApi_.fullscreenchange,s.boundDocumentFullscreenChange_)}if(s.fluid_){s.on(["playerreset","resize"],s.updateStyleEl_)}var f=kt(s.options_);if(n.plugins){Object.keys(n.plugins).forEach(function(e){s[e](n.plugins[e])})}if(n.debug){s.debug(true)}s.options_.playerOptions=f;s.middleware_=[];s.initChildren();s.isAudio(r.nodeName.toLowerCase()==="audio");if(s.controls()){s.addClass("vjs-controls-enabled")}else{s.addClass("vjs-controls-disabled")}s.el_.setAttribute("role","region");if(s.isAudio()){s.el_.setAttribute("aria-label",s.localize("Audio Player"))}else{s.el_.setAttribute("aria-label",s.localize("Video Player"))}if(s.isAudio()){s.addClass("vjs-audio")}if(s.flexNotSupported_()){s.addClass("vjs-no-flex")}if(G){s.addClass("vjs-touch-enabled")}if(!X){s.addClass("vjs-workinghover")}t.players[s.id_]=xt(s);var h=i.split(".")[0];s.addClass("vjs-v"+h);s.userActive(true);s.reportUserActivity();s.one("play",s.listenForUserActivity_);s.on("stageclick",s.handleStageClick_);s.on("keydown",s.handleKeyDown);s.on("languagechange",s.handleLanguagechange);s.breakpoints(s.options_.breakpoints);s.responsive(s.options_.responsive);return s}var r=t.prototype;r.dispose=function i(){var r=this;this.trigger("dispose");this.off("dispose");Qe(c,this.fsApi_.fullscreenchange,this.boundDocumentFullscreenChange_);Qe(c,"keydown",this.boundFullWindowOnEscKey_);if(this.styleEl_&&this.styleEl_.parentNode){this.styleEl_.parentNode.removeChild(this.styleEl_);this.styleEl_=null}t.players[this.id_]=null;if(this.tag&&this.tag.player){this.tag.player=null}if(this.el_&&this.el_.player){this.el_.player=null}if(this.tech_){this.tech_.dispose();this.isPosterFromTech_=false;this.poster_=""}if(this.playerElIngest_){this.playerElIngest_=null}if(this.tag){this.tag=null}pr(this);Qi.names.forEach(function(e){var t=Qi[e];var i=r[t.getterName]();if(i&&i.off){i.off()}});e.prototype.dispose.call(this)};r.createEl=function t(){var i=this.tag;var r;var n=this.playerElIngest_=i.parentNode&&i.parentNode.hasAttribute&&i.parentNode.hasAttribute("data-vjs-player");var a=this.tag.tagName.toLowerCase()==="video-js";if(n){r=this.el_=i.parentNode}else if(!a){r=this.el_=e.prototype.createEl.call(this,"div")}var o=he(i);if(a){r=this.el_=i;i=this.tag=c.createElement("video");while(r.children.length){i.appendChild(r.firstChild)}if(!le(r,"video-js")){ue(r,"video-js")}r.appendChild(i);n=this.playerElIngest_=r;Object.keys(r).forEach(function(e){try{i[e]=r[e]}catch(e){}})}i.setAttribute("tabindex","-1");o.tabindex="-1";if(q||H&&W){i.setAttribute("role","application");o.role="application"}i.removeAttribute("width");i.removeAttribute("height");if("width"in o){delete o.width}if("height"in o){delete o.height}Object.getOwnPropertyNames(o).forEach(function(e){if(!(a&&e==="class")){r.setAttribute(e,o[e])}if(a){i.setAttribute(e,o[e])}});i.playerId=i.id;i.id+="_html5_api";i.className="vjs-tech";i.player=r.player=this;this.addClass("vjs-paused");if(s.VIDEOJS_NO_DYNAMIC_STYLE!==true){this.styleEl_=Ne("vjs-styles-dimensions");var l=Ie(".vjs-styles-defaults");var u=Ie("head");u.insertBefore(this.styleEl_,l?l.nextSibling:u.firstChild)}this.fill_=false;this.fluid_=false;this.width(this.options_.width);this.height(this.options_.height);this.fill(this.options_.fill);this.fluid(this.options_.fluid);this.aspectRatio(this.options_.aspectRatio);this.crossOrigin(this.options_.crossOrigin||this.options_.crossorigin);var d=i.getElementsByTagName("a");for(var f=0;f<d.length;f++){var h=d.item(f);ue(h,"vjs-hidden");h.setAttribute("hidden","hidden")}i.initNetworkState_=i.networkState;if(i.parentNode&&!n){i.parentNode.insertBefore(r,i)}oe(i,r);this.children_.unshift(i);this.el_.setAttribute("lang",this.language_);this.el_=r;return r};r.crossOrigin=function e(t){if(!t){return this.techGet_("crossOrigin")}if(t!=="anonymous"&&t!=="use-credentials"){b.warn(\'crossOrigin must be "anonymous" or "use-credentials", given "\'+t+\'"\');return}this.techCall_("setCrossOrigin",t);return};r.width=function e(t){return this.dimension("width",t)};r.height=function e(t){return this.dimension("height",t)};r.dimension=function e(t,i){var r=t+"_";if(i===undefined){return this[r]||0}if(i===""||i==="auto"){this[r]=undefined;this.updateStyleEl_();return}var n=parseFloat(i);if(isNaN(n)){b.error(\'Improper value "\'+i+\'" supplied for for \'+t);return}this[r]=n;this.updateStyleEl_()};r.fluid=function e(t){var i=this;if(t===undefined){return!!this.fluid_}this.fluid_=!!t;if(lt(this)){this.off(["playerreset","resize"],this.updateStyleEl_)}if(t){this.addClass("vjs-fluid");this.fill(false);ut(this,function(){i.on(["playerreset","resize"],i.updateStyleEl_)})}else{this.removeClass("vjs-fluid")}this.updateStyleEl_()};r.fill=function e(t){if(t===undefined){return!!this.fill_}this.fill_=!!t;if(t){this.addClass("vjs-fill");this.fluid(false)}else{this.re'),t[1].s.push(' r=function e(){i=true};this.on("loadstart",r);var n=function e(){if(!i){this.trigger("loadstart")}};this.on("loadedmetadata",n);this.ready(function(){this.off("loadstart",r);this.off("loadedmetadata",n);if(!i){this.trigger("loadstart")}});return}var a=["loadstart"];a.push("loadedmetadata");if(t.readyState>=2){a.push("loadeddata")}if(t.readyState>=3){a.push("canplay")}if(t.readyState>=4){a.push("canplaythrough")}this.ready(function(){a.forEach(function(e){this.trigger(e)},this)})};i.setScrubbing=function e(t){this.isScrubbing_=t};i.scrubbing=function e(){return this.isScrubbing_};i.setCurrentTime=function e(t){try{if(this.isScrubbing_&&this.el_.fastSeek&&Q){this.el_.fastSeek(t)}else{this.el_.currentTime=t}}catch(e){b(e,"Video is not ready. (Video.js)")}};i.duration=function e(){var t=this;if(this.el_.duration===Infinity&&N&&H&&this.el_.currentTime===0){var i=function e(){if(t.el_.currentTime>0){if(t.el_.duration===Infinity){t.trigger("durationchange")}t.off("timeupdate",e)}};this.on("timeupdate",i);return NaN}return this.el_.duration||NaN};i.width=function e(){return this.el_.offsetWidth};i.height=function e(){return this.el_.offsetHeight};i.proxyWebkitFullscreen_=function e(){var t=this;if(!("webkitDisplayingFullscreen"in this.el_)){return}var i=function e(){this.trigger("fullscreenchange",{isFullscreen:false})};var r=function e(){if("webkitPresentationMode"in this.el_&&this.el_.webkitPresentationMode!=="picture-in-picture"){this.one("webkitendfullscreen",i);this.trigger("fullscreenchange",{isFullscreen:true,nativeIOSFullscreen:true})}};this.on("webkitbeginfullscreen",r);this.on("dispose",function(){t.off("webkitbeginfullscreen",r);t.off("webkitendfullscreen",i)})};i.supportsFullScreen=function e(){if(typeof this.el_.webkitEnterFullScreen==="function"){var t=s.navigator&&s.navigator.userAgent||"";if(/Android/.test(t)||!/Chrome|Mac OS X 10.5/.test(t)){return true}}return false};i.enterFullScreen=function e(){var t=this.el_;if(t.paused&&t.networkState<=t.HAVE_METADATA){Wt(this.el_.play());this.setTimeout(function(){t.pause();try{t.webkitEnterFullScreen()}catch(e){this.trigger("fullscreenerror",e)}},0)}else{try{t.webkitEnterFullScreen()}catch(e){this.trigger("fullscreenerror",e)}}};i.exitFullScreen=function e(){if(!this.el_.webkitDisplayingFullscreen){this.trigger("fullscreenerror",new Error("The video is not fullscreen"));return}this.el_.webkitExitFullScreen()};i.requestPictureInPicture=function e(){return this.el_.requestPictureInPicture()};i.src=function e(t){if(t===undefined){return this.el_.src}this.setSrc(t)};i.reset=function e(){t.resetMediaElement(this.el_)};i.currentSrc=function e(){if(this.currentSource_){return this.currentSource_.src}return this.el_.currentSrc};i.setControls=function e(t){this.el_.controls=!!t};i.addTextTrack=function t(i,r,n){if(!this.featuresNativeTextTracks){return e.prototype.addTextTrack.call(this,i,r,n)}return this.el_.addTextTrack(i,r,n)};i.createRemoteTextTrack=function t(i){if(!this.featuresNativeTextTracks){return e.prototype.createRemoteTextTrack.call(this,i)}var r=c.createElement("track");if(i.kind){r.kind=i.kind}if(i.label){r.label=i.label}if(i.language||i.srclang){r.srclang=i.language||i.srclang}if(i["default"]){r["default"]=i["default"]}if(i.id){r.id=i.id}if(i.src){r.src=i.src}return r};i.addRemoteTextTrack=function t(i,r){var n=e.prototype.addRemoteTextTrack.call(this,i,r);if(this.featuresNativeTextTracks){this.el().appendChild(n)}return n};i.removeRemoteTextTrack=function t(i){e.prototype.removeRemoteTextTrack.call(this,i);if(this.featuresNativeTextTracks){var r=this.$$("track");var n=r.length;while(n--){if(i===r[n]||i===r[n].track){this.el().removeChild(r[n])}}}};i.getVideoPlaybackQuality=function e(){if(typeof this.el().getVideoPlaybackQuality==="function"){return this.el().getVideoPlaybackQuality()}var t={};if(typeof this.el().webkitDroppedFrameCount!=="undefined"&&typeof this.el().webkitDecodedFrameCount!=="undefined"){t.droppedVideoFrames=this.el().webkitDroppedFrameCount;t.totalVideoFrames=this.el().webkitDecodedFrameCount}if(s.performance&&typeof s.performance.now==="function"){t.creationTime=s.performance.now()}else if(s.performance&&s.performance.timing&&typeof s.performance.timing.navigationStart==="number"){t.creationTime=s.Date.now()-s.performance.timing.navigationStart}return t};return t}($i);ha(pa,"TEST_VID",function(){if(!te()){return}var e=c.createElement("video");var t=c.createElement("track");t.kind="captions";t.srclang="en";t.label="English";e.appendChild(t);return e});pa.isSupported=function(){try{pa.TEST_VID.volume=.5}catch(e){return false}return!!(pa.TEST_VID&&pa.TEST_VID.canPlayType)};pa.canPlayType=function(e){return pa.TEST_VID.canPlayType(e)};pa.canPlaySource=function(e,t){return pa.canPlayType(e.type)};pa.canControlVolume=function(){try{var e=pa.TEST_VID.volume;pa.TEST_VID.volume=e/2+.1;return e!==pa.TEST_VID.volume}catch(e){return false}};pa.canMuteVolume=function(){try{var e=pa.TEST_VID.muted;pa.TEST_VID.muted=!e;if(pa.TEST_VID.muted){ve(pa.TEST_VID,"muted","muted")}else{me(pa.TEST_VID,"muted","muted")}return e!==pa.TEST_VID.muted}catch(e){return false}};pa.canControlPlaybackRate=function(){if(N&&H&&V<58){return false}try{var e=pa.TEST_VID.playbackRate;pa.TEST_VID.playbackRate=e/2+.1;return e!==pa.TEST_VID.playbackRate}catch(e){return false}};pa.canOverrideAttributes=function(){try{var e=function e(){};Object.defineProperty(c.createElement("video"),"src",{get:e,set:e});Object.defineProperty(c.createElement("audio"),"src",{get:e,set:e});Object.defineProperty(c.createElement("video"),"innerHTML",{get:e,set:e});Object.defineProperty(c.createElement("audio"),"innerHTML",{get:e,set:e})}catch(e){return false}return true};pa.supportsNativeTextTracks=function(){return Q||X&&H};pa.supportsNativeVideoTracks=function(){return!!(pa.TEST_VID&&pa.TEST_VID.videoTracks)};pa.supportsNativeAudioTracks=function(){return!!(pa.TEST_VID&&pa.TEST_VID.audioTracks)};pa.Events=["loadstart","suspend","abort","error","emptied","stalled","loadedmetadata","loadeddata","canplay","canplaythrough","playing","waiting","seeking","seeked","ended","durationchange","timeupdate","progress","play","pause","ratechange","resize","volumechange"];[["featuresVolumeControl","canControlVolume"],["featuresMuteControl","canMuteVolume"],["featuresPlaybackRate","canControlPlaybackRate"],["featuresSourceset","canOverrideAttributes"],["featuresNativeTextTracks","supportsNativeTextTracks"],["featuresNativeVideoTracks","supportsNativeVideoTracks"],["featuresNativeAudioTracks","supportsNativeAudioTracks"]].forEac
1h(function(e){var t=e[0],i=e[1];ha(pa.prototype,t,function(){return pa[i]()},true)});pa.prototype.movingMediaElementInDOM=!X;pa.prototype.featuresFullscreenResize=true;pa.prototype.featuresProgressEvents=true;pa.prototype.featuresTimeupdateEvents=true;var va;pa.patchCanPlayType=function(){if(M>=4&&!B&&!H){va=pa.TEST_VID&&pa.TEST_VID.constructor.prototype.canPlayType;pa.TEST_VID.constructor.prototype.canPlayType=function(e){var t=/^application\\/(?:x-|vnd\\.apple\\.)mpegurl/i;if(e&&t.test(e)){return"maybe"}return va.call(this,e)}}};pa.unpatchCanPlayType=function(){var e=pa.TEST_VID.constructor.prototype.canPlayType;if(va){pa.TEST_VID.constructor.prototype.canPlayType=va}return e};pa.patchCanPlayType();pa.disposeMediaElement=function(e){if(!e){return}if(e.parentNode){e.parentNode.removeChild(e)}while(e.hasChildNodes()){e.removeChild(e.firstChild)}e.removeAttribute("src");if(typeof e.load==="function"){(function(){try{e.load()}catch(e){}})()}};pa.resetMediaElement=function(e){if(!e){return}var t=e.querySelectorAll("source");var i=t.length;while(i--){e.removeChild(t[i])}e.removeAttribute("src");if(typeof e.load==="function"){(function(){try{e.load()}catch(e){}})()}};["muted","defaultMuted","autoplay","controls","loop","playsinline"].forEach(function(e){pa.prototype[e]=function(){return this.el_[e]||this.el_.hasAttribute(e)}});["muted","defaultMuted","autoplay","loop","playsinline"].forEach(function(e){pa.prototype["set"+Tt(e)]=function(t){this.el_[e]=t;if(t){this.el_.setAttribute(e,e)}else{this.el_.removeAttribute(e)}}});["paused","currentTime","buffered","volume","poster","preload","error","seeking","seekable","ended","playbackRate","defaultPlaybackRate","disablePictureInPicture","played","networkState","readyState","videoWidth","videoHeight","crossOrigin"].forEach(function(e){pa.prototype[e]=function(){return this.el_[e]}});["volume","src","poster","preload","playbackRate","defaultPlaybackRate","disablePictureInPicture","crossOrigin"].forEach(function(e){pa.prototype["set"+Tt(e)]=function(t){this.el_[e]=t}});["pause","load","play"].forEach(function(e){pa.prototype[e]=function(){return this.el_[e]()}});$i.withSourceHandlers(pa);pa.nativeSourceHandler={};pa.nativeSourceHandler.canPlayType=function(e){try{return pa.TEST_VID.canPlayType(e)}catch(e){return""}};pa.nativeSourceHandler.canHandleSource=function(e,t){if(e.type){return pa.nativeSourceHandler.canPlayType(e.type)}else if(e.src){var i=bi(e.src);return pa.nativeSourceHandler.canPlayType("video/"+i)}return""};pa.nativeSourceHandler.handleSource=function(e,t,i){t.setSrc(e.src)};pa.nativeSourceHandler.dispose=function(){};pa.registerSourceHandler(pa.nativeSourceHandler);$i.registerTech("Html5",pa);var ma=["progress","abort","suspend","emptied","stalled","loadedmetadata","loadeddata","timeupdate","resize","volumechange","texttrackchange"];var ga={canplay:"CanPlay",canplaythrough:"CanPlayThrough",playing:"Playing",seeked:"Seeked"};var ya=["tiny","xsmall","small","medium","large","xlarge","huge"];var _a={};ya.forEach(function(e){var t=e.charAt(0)==="x"?"x-"+e.substring(1):e;_a[e]="vjs-layout-"+t});var ba={tiny:210,xsmall:320,small:425,medium:768,large:1440,xlarge:2560,huge:Infinity};var Ta=function(e){Dt(t,e);function t(r,n,a){var s;r.id=r.id||n.id||"vjs_video_"+Fe();n=C(t.getTagSettings(r),n);n.initChildren=false;n.createEl=false;n.evented=false;n.reportTouchActivity=false;if(!n.language){if(typeof r.closest==="function"){var o=r.closest("[lang]");if(o&&o.getAttribute){n.language=o.getAttribute("lang")}}else{var l=r;while(l&&l.nodeType===1){if(he(l).hasOwnProperty("lang")){n.language=l.getAttribute("lang");break}l=l.parentNode}}}s=e.call(this,null,n,a)||this;s.boundDocumentFullscreenChange_=function(e){return s.documentFullscreenChange_(e)};s.boundFullWindowOnEscKey_=function(e){return s.fullWindowOnEscKey(e)};s.isFullscreen_=false;s.log=T(s.id_);s.fsApi_=d;s.isPosterFromTech_=false;s.queuedCallbacks_=[];s.isReady_=false;s.hasStarted_=false;s.userActive_=false;s.debugEnabled_=false;if(!s.options_||!s.options_.techOrder||!s.options_.techOrder.length){throw new Error("No techOrder specified. Did you overwrite "+"videojs.options instead of just changing the "+"properties you want to override?")}s.tag=r;s.tagAttributes=r&&he(r);s.language(s.options_.language);if(n.languages){var u={};
1Object.getOwnPropertyNames(n.languages).forEach(function(e){u[e.toLowerCase()]=n.languages[e]});s.languages_=u}else{s.languages_=t.prototype.options_.languages}s.resetCache_();s.poster_=n.poster||"";s.controls_=!!n.controls;r.controls=false;r.removeAttribute("controls");s.changingSrc_=false;s.playCallbacks_=[];s.playTerminatedQueue_=[];if(r.hasAttribute("autoplay")){s.autoplay(true)}else{s.autoplay(s.options_.autoplay)}if(n.plugins){Object.keys(n.plugins).forEach(function(e){if(typeof s[e]!=="function"){throw new Error(\'plugin "\'+e+\'" does not exist\')}})}s.scrubbing_=false;s.el_=s.createEl();gt(xt(s),{eventBusKey:"el_"});if(s.fsApi_.requestFullscreen){Xe(c,s.fsApi_.fullscreenchange,s.boundDocumentFullscreenChange_);s.on(s.fsApi_.fullscreenchange,s.boundDocumentFullscreenChange_)}if(s.fluid_){s.on(["playerreset","resize"],s.updateStyleEl_)}var f=kt(s.options_);if(n.plugins){Object.keys(n.plugins).forEach(function(e){s[e](n.plugins[e])})}if(n.debug){s.debug(true)}s.options_.playerOptions=f;s.middleware_=[];s.initChildren();s.isAudio(r.nodeName.toLowerCase()==="audio");if(s.controls()){s.addClass("vjs-controls-enabled")}else{s.addClass("vjs-controls-disabled")}s.el_.setAttribute("role","region");if(s.isAudio()){s.el_.setAttribute("aria-label",s.localize("Audio Player"))}else{s.el_.setAttribute("aria-label",s.localize("Video Player"))}if(s.isAudio()){s.addClass("vjs-audio")}if(s.flexNotSupported_()){s.addClass("vjs-no-flex")}if(G){s.addClass("vjs-touch-enabled")}if(!X){s.addClass("vjs-workinghover")}t.players[s.id_]=xt(s);var h=i.split(".")[0];s.addClass("vjs-v"+h);s.userActive(true);s.reportUserActivity();s.one("play",s.listenForUserActivity_);s.on("stageclick",s.handleStageClick_);s.on("keydown",s.handleKeyDown);s.on("languagechange",s.handleLanguagechange);s.breakpoints(s.options_.breakpoints);s.responsive(s.options_.responsive);return s}var r=t.prototype;r.dispose=function i(){var r=this;this.trigger("dispose");this.off("dispose");Qe(c,this.fsApi_.fullscreenchange,this.boundDocumentFullscreenChange_);Qe(c,"keydown",this.boundFullWindowOnEscKey_);if(this.styleEl_&&this.styleEl_.parentNode){this.styleEl_.parentNode.removeChild(this.styleEl_);this.styleEl_=null}t.players[this.id_]=null;if(this.tag&&this.tag.player){this.tag.player=null}if(this.el_&&this.el_.player){this.el_.player=null}if(this.tech_){this.tech_.dispose();this.isPosterFromTech_=false;this.poster_=""}if(this.playerElIngest_){this.playerElIngest_=null}if(this.tag){this.tag=null}pr(this);Qi.names.forEach(function(e){var t=Qi[e];var i=r[t.getterName]();if(i&&i.off){i.off()}});e.prototype.dispose.call(this)};r.createEl=function t(){var i=this.tag;var r;var n=this.playerElIngest_=i.parentNode&&i.parentNode.hasAttribute&&i.parentNode.hasAttribute("data-vjs-player");var a=this.tag.tagName.toLowerCase()==="video-js";if(n){r=this.el_=i.parentNode}else if(!a){r=this.el_=e.prototype.createEl.call(this,"div")}var o=he(i);if(a){r=this.el_=i;i=this.tag=c.createElement("video");while(r.children.length){i.appendChild(r.firstChild)}if(!le(r,"video-js")){ue(r,"video-js")}r.appendChild(i);n=this.playerElIngest_=r;Object.keys(r).forEach(function(e){try{i[e]=r[e]}catch(e){}})}i.setAttribute("tabindex","-1");o.tabindex="-1";if(q||H&&W){i.setAttribute("role","application");o.role="application"}i.removeAttribute("width");i.removeAttribute("height");if("width"in o){delete o.width}if("height"in o){delete o.height}Object.getOwnPropertyNames(o).forEach(function(e){if(!(a&&e==="class")){r.setAttribute(e,o[e])}if(a){i.setAttribute(e,o[e])}});i.playerId=i.id;i.id+="_html5_api";i.className="vjs-tech";i.player=r.player=this;this.addClass("vjs-paused");if(s.VIDEOJS_NO_DYNAMIC_STYLE!==true){this.styleEl_=Ne("vjs-styles-dimensions");var l=Ie(".vjs-styles-defaults");var u=Ie("head");u.insertBefore(this.styleEl_,l?l.nextSibling:u.firstChild)}this.fill_=false;this.fluid_=false;this.width(this.options_.width);this.height(this.options_.height);this.fill(this.options_.fill);this.fluid(this.options_.fluid);this.aspectRatio(this.options_.aspectRatio);this.crossOrigin(this.options_.crossOrigin||this.options_.crossorigin);var d=i.getElementsByTagName("a");for(var f=0;f<d.length;f++){var h=d.item(f);ue(h,"vjs-hidden");h.setAttribute("hidden","hidden")}i.initNetworkState_=i.networkState;if(i.parentNode&&!n){i.parentNode.insertBefore(r,i)}oe(i,r);this.children_.unshift(i);this.el_.setAttribute("lang",this.language_);this.el_=r;return r};r.crossOrigin=function e(t){if(!t){return this.techGet_("crossOrigin")}if(t!=="anonymous"&&t!=="use-credentials"){b.warn(\'crossOrigin must be "anonymous" or "use-credentials", given "\'+t+\'"\');return}this.techCall_("setCrossOrigin",t);return};r.width=function e(t){return this.dimension("width",t)};r.height=function e(t){return this.dimension("height",t)};r.dimension=function e(t,i){var r=t+"_";if(i===undefined){return this[r]||0}if(i===""||i==="auto"){this[r]=undefined;this.updateStyleEl_();return}var n=parseFloat(i);if(isNaN(n)){b.error(\'Improper value "\'+i+\'" supplied for for \'+t);return}this[r]=n;this.updateStyleEl_()};r.fluid=function e(t){var i=this;if(t===undefined){return!!this.fluid_}this.fluid_=!!t;if(lt(this)){this.off(["playerreset","resize"],this.updateStyleEl_)}if(t){this.addClass("vjs-fluid");this.fill(false);ut(this,function(){i.on(["playerreset","resize"],i.updateStyleEl_)})}else{this.removeClass("vjs-fluid")}this.updateStyleEl_()};r.fill=function e(t){if(t===undefined){return!!this.fill_}this.fill_=!!t;if(t){this.addClass("vjs-fill");this.fluid(false)}else{this.re'),t[0].s.push('moveClass("vjs-fill")}};r.aspectRatio=function e(t){if(t===undefined){return this.aspectRatio_}if(!/^\\d+\\:\\d+$/.test(t)){throw new Error("Improper value supplied for aspect ratio. The format should be width:height, for example 16:9.")}this.aspectRatio_=t;this.fluid(true);this.updateStyleEl_()};
1r.updateStyleEl_=function e(){if(s.VIDEOJS_NO_DYNAMIC_STYLE===true){var t=typeof this.width_==="number"?this.width_:this.options_.width;var i=typeof this.height_==="number"?this.height_:this.options_.height;var r=this.tech_&&this.tech_.el();if(r){if(t>=0){r.width=t}if(i>=0){r.height=i}}return}var n;var a;var o;var l;if(this.aspectRatio_!==undefined&&this.aspectRatio_!=="auto"){o=this.aspectRatio_}else if(this.videoWidth()>0){o=this.videoWidth()+":"+this.videoHeight()}else{o="16:9"}var u=o.split(":");var c=u[1]/u[0];if(this.width_!==undefined){n=this.width_}else if(this.height_!==undefined){n=this.height_/c}else{n=this.videoWidth()||300}if(this.height_!==undefined){a=this.height_}else{a=n*c}if(/^[^a-zA-Z]/.test(this.id())){l="dimensions-"+this.id()}else{l=this.id()+"-dimensions"}this.addClass(l);Me(this.styleEl_,"\\n      ."+l+" {\\n        width: "+n+"px;\\n        height: "+a+"px;\\n      }\\n\\n      ."+l+".vjs-fluid {\\n        padding-top: "+c*100+"%;\\n      }\\n    ")};r.loadTech_=function e(t,i){var r=this;if(this.tech_){this.unloadTech_()}var n=Tt(t);var a=t.charAt(0).toLowerCase()+t.slice(1);if(n!=="Html5"&&this.tag){$i.getTech("Html5").disposeMediaElement(this.tag);this.tag.player=null;this.tag=null}this.techName_=n;this.isReady_=false;var s=typeof this.autoplay()==="string"?false:this.autoplay();var o={source:i,autoplay:s,nativeControlsForTouch:this.options_.nativeControlsForTouch,playerId:this.id(),techId:this.id()+"_"+a+"_api",playsinline:this.options_.playsinline,preload:this.options_.preload,loop:this.options_.loop,disablePictureInPicture:this.options_.disablePictureInPicture,muted:this.options_.muted,poster:this.poster(),language:this.language(),playerElIngest:this.playerElIngest_||false,"vtt.js":this.options_["vtt.js"],canOverridePoster:!!this.options_.techCanOverridePoster,enableSourceset:this.options_.enableSourceset,Promise:this.options_.Promise};Qi.names.forEach(function(e){var t=Qi[e];o[t.getterName]=r[t.privateName]});C(o,this.options_[n]);C(o,this.options_[a]);C(o,this.options_[t.toLowerCase()]);if(this.tag){o.tag=this.tag}if(i&&i.src===this.cache_.src&&this.cache_.currentTime>0){o.startTime=this.cache_.currentTime}var l=$i.getTech(t);if(!l){throw new Error("No Tech named \'"+n+"\' exists! \'"+n+"\' should be registered using videojs.registerTech()\'")}this.tech_=new l(o);this.tech_.ready(it(this,this.handleTechReady_),true);Xt.jsonToTextTracks(this.textTracksJson_||[],this.tech_);ma.forEach(function(e){r.on(r.tech_,e,r["handleTech"+Tt(e)+"_"])});Object.keys(ga).forEach(function(e){r.on(r.tech_,e,function(t){if(r.tech_.playbackRate()===0&&r.tech_.seeking()){r.queuedCallbacks_.push({callback:r["handleTech"+ga[e]+"_"].bind(r),event:t});return}r["handleTech"+ga[e]+"_"](t)})});this.on(this.tech_,"loadstart",this.handleTechLoadStart_);this.on(this.tech_,"sourceset",this.handleTechSourceset_);this.on(this.tech_,"waiting",this.handleTechWaiting_);this.on(this.tech_,"ended",this.handleTechEnded_);this.on(this.tech_,"seeking",this.handleTechSeeking_);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_,"durationchange",this.handleTechDurationChange_);this.on(this.tech_,"fullscreenchange",this.handleTechFullscreenChange_);this.on(this.tech_,"fullscreenerror",this.handleTechFullscreenError_);this.on(this.tech_,"enterpictureinpicture",this.handleTechEnterPictureInPicture_);this.on(this.tech_,"leavepictureinpicture",this.handleTechLeavePictureInPicture_);this.on(this.tech_,"error",this.handleTechError_);this.on(this.tech_,"loadedmetadata",this.updateStyleEl_);this.on(this.tech_,"posterchange",this.handleTechPosterChange_);this.on(this.tech_,"textdata",this.handleTechTextData_);this.on(this.tech_,"ratechange",this.handleTechRateChange_);this.usingNativeControls(this.techGet_("controls"));if(this.controls()&&!this.usingNativeControls()){this.addTechControlsListeners_()}if(this.tech_.el().parentNode!==this.el()&&(n!=="Html5"||!this.tag)){oe(this.tech_.el(),this.el())}if(this.tag){this.tag.player=null;this.tag=null}};r.unloadTech_=function e(){var t=this;
1Qi.names.forEach(function(e){var i=Qi[e];t[i.privateName]=t[i.getterName]()});this.textTracksJson_=Xt.textTracksToJson(this.tech_);this.isReady_=false;this.tech_.dispose();this.tech_=false;if(this.isPosterFromTech_){this.poster_="";this.trigger("posterchange")}this.isPosterFromTech_=false};r.tech=function e(t){if(t===undefined){b.warn("Using the tech directly can be dangerous. I hope you know what you\'re doing.\\n"+"See https://github.com/videojs/video.js/issues/2617 for more info.\\n")}return this.tech_};r.addTechControlsListeners_=function e(){this.removeTechControlsListeners_();this.on(this.tech_,"mouseup",this.handleTechClick_);this.on(this.tech_,"dblclick",this.handleTechDoubleClick_);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_)};r.removeTechControlsListeners_=function e(){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_,"mouseup",this.handleTechClick_);this.off(this.tech_,"dblclick",this.handleTechDoubleClick_)};r.handleTechReady_=function e(){this.triggerReady();if(this.cache_.volume){this.techCall_("setVolume",this.cache_.volume)}this.handleTechPosterChange_();this.handleTechDurationChange_()};r.handleTechLoadStart_=function e(){this.removeClass("vjs-ended");this.removeClass("vjs-seeking");this.error(null);this.handleTechDurationChange_();if(!this.paused()){this.trigger("loadstart");this.trigger("firstplay")}else{this.hasStarted(false);this.trigger("loadstart")}this.manualAutoplay_(this.autoplay())};r.manualAutoplay_=function e(t){var i=this;if(!this.tech_||typeof t!=="string"){return}var r=function e(){var t=i.muted();i.muted(true);var r=function e(){i.muted(t)};i.playTerminatedQueue_.push(r);var n=i.play();if(!zt(n)){return}return n["catch"](r)};var n;if(t==="any"&&this.muted()!==true){n=this.play();if(zt(n)){n=n["catch"](r)}}else if(t==="muted"&&this.muted()!==true){n=r()}else{n=this.play()}if(!zt(n)){return}return n.then(function(){i.trigger({type:"autoplay-success",autoplay:t})})["catch"](function(e){i.trigger({type:"autoplay-failure",autoplay:t})})};r.updateSourceCaches_=function e(t){if(t===void 0){t=""}var i=t;var r="";if(typeof i!=="string"){i=t.src;r=t.type}this.cache_.source=this.cache_.source||{};this.cache_.sources=this.cache_.sources||[];if(i&&!r){r=_r(this,i)}this.cache_.source=kt({},t,{src:i,type:r});var n=this.cache_.sources.filter(function(e){return e.src&&e.src===i});var a=[];var s=this.$$("source");var o=[];for(var l=0;l<s.length;l++){var u=he(s[l]);a.push(u);if(u.src&&u.src===i){o.push(u.src)}}if(o.length&&!n.length){this.cache_.sources=a}else if(!n.length){this.cache_.sources=[this.cache_.source]}this.cache_.src=i};r.handleTechSourceset_=function e(t){var i=this;if(!this.changingSrc_){var r=function e(t){return i.updateSourceCaches_(t)};var n=this.currentSource().src;var a=t.src;if(n&&!/^blob:/.test(n)&&/^blob:/.test(a)){if(!this.lastSource_||this.lastSource_.tech!==a&&this.lastSource_.player!==n){r=function e(){}}}r(a);if(!t.src){this.tech_.any(["sourceset","loadstart"],function(e){if(e.type==="sourceset"){return}var t=i.techGet("currentSrc");i.lastSource_.tech=t;i.updateSourceCaches_(t)})}}this.lastSource_={player:this.currentSource().src,tech:t.src};this.trigger({src:t.src,type:"sourceset"})};r.hasStarted=function e(t){if(t===undefined){return this.hasStarted_}if(t===this.hasStarted_){return}this.hasStarted_=t;if(this.hasStarted_){this.addClass("vjs-has-started");this.trigger("firstplay")}else{this.removeClass("vjs-has-started")}};r.handleTechPlay_=function e(){this.removeClass("vjs-ended");this.removeClass("vjs-paused");this.addClass("vjs-playing");this.hasStarted(true);this.trigger("play")};r.handleTechRateChange_=function e(){if(this.tech_.playbackRate()>0&&this.cache_.lastPlaybackRate===0){this.queuedCallbacks_.forEach(function(e){return e.callback(e.event)});this.queuedCallbacks_=[]}this.cache_.lastPlaybackRate=this.tech_.playbackRate();this.trigger("ratechange")};r.handleTechWaiting_=function e(){var t=this;this.addClass("vjs-waiting");this.trigger("waiting");var i=this.currentTime();var r=function e(){if(i!==t.currentTime()){t.removeClass("vjs-waiting");t.off("timeupdate",e)}};this.on("timeupdate",r)};r.handleTechCanPlay_=function e(){this.removeClass("vjs-waiting");this.trigger("canplay")};r.handleTechCanPlayThrough_=function e(){this.removeClass("vjs-waiting");this.trigger("canplaythrough")};r.handleTechPlaying_=function e(){this.removeClass("vjs-waiting");this.trigger("playing")};r.handleTechSeeking_=function e(){this.addClass("vjs-seeking");this.trigger("seeking")};r.handleTechSeeked_=function e(){this.removeClass("vjs-seeking");this.removeClass("vjs-ended");this.trigger("seeked")};r.handleTechFirstPlay_=function e(){if(this.options_.starttime){b.warn("Passing the `starttime` option to the player will be deprecated 
1in 6.0");this.currentTime(this.options_.starttime)}this.addClass("vjs-has-started");this.trigger("firstplay")};r.handleTechPause_=function e(){this.removeClass("vjs-playing");this.addClass("vjs-paused");this.trigger("pause")};r.handleTechEnded_=function e(){this.addClass("vjs-ended");if(this.options_.loop){this.currentTime(0);this.play()}else if(!this.paused()){this.pause()}this.trigger("ended")};r.handleTechDurationChange_=function e(){this.duration(this.techGet_("duration"))};r.handleTechClick_=function e(t){if(!Ce(t)){return}if(!this.controls_){return}if(this.paused()){Wt(this.play())}else{this.pause()}};r.handleTechDoubleClick_=function e(t){if(!this.controls_){return}var i=Array.prototype.some.call(this.$$(".vjs-control-bar, .vjs-modal-dialog"),function(e){return e.contains(t.target)});if(!i){if(this.options_===undefined||this.options_.userActions===undefined||this.options_.userActions.doubleClick===undefined||this.options_.userActions.doubleClick!==false){if(this.options_!==undefined&&this.options_.userActions!==undefined&&typeof this.options_.userActions.doubleClick==="function"){this.options_.userActions.doubleClick.call(this,t)}else if(this.isFullscreen()){this.exitFullscreen()}else{this.requestFullscreen()}}}};r.handleTechTap_=function e(){this.userActive(!this.userActive())};r.handleTechTouchStart_=function e(){this.userWasActive=this.userActive()};r.handleTechTouchMove_=function e(){if(this.userWasActive){this.reportUserActivity()}};r.handleTechTouchEnd_=function e(t){if(t.cancelable){t.preventDefault()}};r.handleStageClick_=function e(){this.reportUserActivity()};r.toggleFullscreenClass_=function e(){if(this.isFullscreen()){this.addClass("vjs-fullscreen")}else{this.removeClass("vjs-fullscreen")}};r.documentFullscreenChange_=function e(t){var i=t.target.player;if(i&&i!==this){return}var r=this.el();var n=c[this.fsApi_.fullscreenElement]===r;if(!n&&r.matches){n=r.matches(":"+this.fsApi_.fullscreen)}else if(!n&&r.msMatchesSelector){n=r.msMatchesSelector(":"+this.fsApi_.fullscreen)}this.isFullscreen(n)};r.handleTechFullscreenChange_=function e(t,i){if(i){if(i.nativeIOSFullscreen){this.toggleClass("vjs-ios-native-fs")}this.isFullscreen(i.isFullscreen)}};r.handleTechFullscreenError_=function e(t,i){this.trigger("fullscreenerror",i)};r.togglePictureInPictureClass_=function e(){if(this.isInPictureInPicture()){this.addClass("vjs-picture-in-picture")}else{this.removeClass("vjs-picture-in-picture")}};r.handleTechEnterPictureInPicture_=function e(t){this.isInPictureInPicture(true)};r.handleTechLeavePictureInPicture_=function e(t){this.isInPictureInPicture(false)};r.handleTechError_=function e(){var t=this.tech_.error();this.error(t)};r.handleTechTextData_=function e(){var t=null;if(arguments.length>1){t=arguments[1]}this.trigger("textdata",t)};r.getCache=function e(){return this.cache_};r.resetCache_=function e(){this.cache_={currentTime:0,initTime:0,inactivityTimeout:this.options_.inactivityTimeout,duration:NaN,lastVolume:1,lastPlaybackRate:this.defaultPlaybackRate(),media:null,src:"",source:{},sources:[],volume:1}};r.techCall_=function e(t,i){this.ready(function(){if(t in cr){return or(this.middleware_,this.tech_,t,i)}else if(t in dr){return lr(this.middleware_,this.tech_,t,i)}try{if(this.tech_){this.tech_[t](i)}}catch(e){b(e);throw e}},true)};r.techGet_=function e(t){if(!this.tech_||!this.tech_.isReady_){return}if(t in ur){return sr(this.middleware_,this.tech_,t)}else if(t in dr){return lr(this.middleware_,this.tech_,t)}try{return this.tech_[t]()}catch(e){if(this.tech_[t]===undefined){b("Video.js: "+t+" method not defined for "+this.techName_+" playback technology.",e);throw e}if(e.name==="TypeError"){b("Video.js: "+t+" unavailable on "+this.techName_+" playback technology element.",e);this.tech_.isReady_=false;throw e}b(e);throw e}};r.play=function e(){var t=this;var i=this.options_.Promise||s.Promise;if(i){return new i(function(e){t.play_(e)})}return this.play_()};r.play_=function e(t){var i=this;if(t===void 0){t=Wt}this.playCallbacks_.push(t);var r=Boolean(!this.changingSrc_&&(this.src()||this.currentSrc()));if(this.waitToPlay_){this.off(["ready","loadstart"],this.waitToPlay_);this.waitToPlay_=null}if(!this.isReady_||!r){this.waitToPlay_=function(e){i.play_()};this.one(["ready","loadstart"],this.waitToPlay_);if(!r&&(Q||X)){this.load()}return}var n=this.techGet_("play");
1if(n===null){this.runPlayTerminatedQueue_()}else{this.runPlayCallbacks_(n)}};r.runPlayTerminatedQueue_=function e(){var t=this.playTerminatedQueue_.slice(0);this.playTerminatedQueue_=[];t.forEach(function(e){e()})};r.runPlayCallbacks_=function e(t){var i=this.playCallbacks_.slice(0);this.playCallbacks_=[];this.playTerminatedQueue_=[];i.forEach(function(e){e(t)})};r.pause=function e(){this.techCall_("pause")};r.paused=function e(){return this.techGet_("paused")===false?false:true};r.played=function e(){return this.techGet_("played")||Ut(0,0)};r.scrubbing=function e(t){if(typeof t==="undefined"){return this.scrubbing_}this.scrubbing_=!!t;this.techCall_("setScrubbing",this.scrubbing_);if(t){this.addClass("vjs-scrubbing")}else{this.removeClass("vjs-scrubbing")}};r.currentTime=function e(t){if(typeof t!=="undefined"){if(t<0){t=0}if(!this.isReady_||this.changingSrc_||!this.tech_||!this.tech_.isReady_){this.cache_.initTime=t;this.off("canplay",this.applyInitTime_);this.one("canplay",this.applyInitTime_);return}this.techCall_("setCurrentTime",t);this.cache_.initTime=0;return}this.cache_.currentTime=this.techGet_("currentTime")||0;return this.cache_.currentTime};r.applyInitTime_=function e(){this.currentTime(this.cache_.initTime)};r.duration=function e(t){if(t===undefined){return this.cache_.duration!==undefined?this.cache_.duration:NaN}t=parseFloat(t);if(t<0){t=Infinity}if(t!==this.cache_.duration){this.cache_.duration=t;if(t===Infinity){this.addClass("vjs-live")}else{this.removeClass("vjs-live")}if(!isNaN(t)){this.trigger("durationchange")}}};r.remainingTime=function e(){return this.duration()-this.currentTime()};r.remainingTimeDisplay=function e(){return Math.floor(this.duration())-Math.floor(this.currentTime())};r.buffered=function e(){var e=this.techGet_("buffered");if(!e||!e.length){e=Ut(0,0)}return e};r.bufferedPercent=function e(){return Bt(this.buffered(),this.duration())};r.bufferedEnd=function e(){var t=this.buffered();var i=this.duration();var r=t.end(t.length-1);if(r>i){r=i}return r};r.volume=function e(t){var i;if(t!==undefined){i=Math.max(0,Math.min(1,parseFloat(t)));this.cache_.volume=i;this.techCall_("setVolume",i);if(i>0){this.lastVolume_(i)}return}i=parseFloat(this.techGet_("volume"));return isNaN(i)?1:i};r.muted=function e(t){if(t!==undefined){this.techCall_("setMuted",t);return}return this.techGet_("muted")||false};r.defaultMuted=function e(t){if(t!==undefined){return this.techCall_("setDefaultMuted",t)}return this.te'),t[1].s.push('moveClass("vjs-fill")}};r.aspectRatio=function e(t){if(t===undefined){return this.aspectRatio_}if(!/^\\d+\\:\\d+$/.test(t)){throw new Error("Improper value supplied for aspect ratio. The format should be width:height, for example 16:9.")}this.aspectRatio_=t;this.fluid(true);this.updateStyleEl_()};r.updateStyleEl_=function e(){if(s.VIDEOJS_NO_DYNAMIC_STYLE===true){var t=typeof this.width_==="number"?this.width_:this.options_.width;var i=typeof this.height_==="number"?this.height_:this.options_.height;var r=this.tech_&&this.tech_.el();if(r){if(t>=0){r.width=t}if(i>=0){r.height=i}}return}var n;var a;var o;var l;if(this.aspectRatio_!==undefined&&this.aspectRatio_!=="auto"){o=this.aspectRatio_}else if(this.videoWidth()>0){o=this.videoWidth()+":"+this.videoHeight()}else{o="16:9"}var u=o.split(":");var c=u[1]/u[0];if(this.width_!==undefined){n=this.width_}else if(this.height_!==undefined){n=this.height_/c}else{n=this.videoWidth()||300}if(this.height_!==undefined){a=this.height_}else{a=n*c}if(/^[^a-zA-Z]/.test(this.id())){l="dimensions-"+this.id()}else{l=this.id()+"-dimensions"}this.addClass(l);Me(this.styleEl_,"\\n      ."+l+" {\\n        width: "+n+"px;\\n        height: "+a+"px;\\n      }\\n\\n      ."+l+".vjs-fluid {\\n        padding-top: "+c*100+"%;\\n      }\\n    ")};r.loadTech_=function e(t,i){var r=this;if(this.tech_){this.unloadTech_()}var n=Tt(t);var a=t.charAt(0).toLowerCase()+t.slice(1);if(n!=="Html5"&&this.tag){$i.getTech("Html5").disposeMediaElement(this.tag);this.tag.player=null;this.tag=null}this.techName_=n;this.isReady_=false;var s=typeof this.autoplay()==="string"?false:this.autoplay();var o={source:i,autoplay:s,nativeControlsForTouch:this.options_.nativeControlsForTouch,playerId:this.id(),techId:this.id()+"_"+a+"_api",playsinline:this.options_.playsinline,preload:this.options_.preload,loop:this.options_.loop,disablePictureInPicture:this.options_.disablePictureInPicture,muted:this.options_.muted,poster:this.poster(),language:this.language(),playerElIngest:this.playerElIngest_||false,"vtt.js":this.options_["vtt.js"],canOverridePoster:!!this.options_.techCanOverridePoster,enableSourceset:this.options_.enableSourceset,Promise:this.options_.Promise};
1Qi.names.forEach(function(e){var t=Qi[e];o[t.getterName]=r[t.privateName]});C(o,this.options_[n]);C(o,this.options_[a]);C(o,this.options_[t.toLowerCase()]);if(this.tag){o.tag=this.tag}if(i&&i.src===this.cache_.src&&this.cache_.currentTime>0){o.startTime=this.cache_.currentTime}var l=$i.getTech(t);if(!l){throw new Error("No Tech named \'"+n+"\' exists! \'"+n+"\' should be registered using videojs.registerTech()\'")}this.tech_=new l(o);this.tech_.ready(it(this,this.handleTechReady_),true);Xt.jsonToTextTracks(this.textTracksJson_||[],this.tech_);ma.forEach(function(e){r.on(r.tech_,e,r["handleTech"+Tt(e)+"_"])});Object.keys(ga).forEach(function(e){r.on(r.tech_,e,function(t){if(r.tech_.playbackRate()===0&&r.tech_.seeking()){r.queuedCallbacks_.push({callback:r["handleTech"+ga[e]+"_"].bind(r),event:t});return}r["handleTech"+ga[e]+"_"](t)})});this.on(this.tech_,"loadstart",this.handleTechLoadStart_);this.on(this.tech_,"sourceset",this.handleTechSourceset_);this.on(this.tech_,"waiting",this.handleTechWaiting_);this.on(this.tech_,"ended",this.handleTechEnded_);this.on(this.tech_,"seeking",this.handleTechSeeking_);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_,"durationchange",this.handleTechDurationChange_);this.on(this.tech_,"fullscreenchange",this.handleTechFullscreenChange_);this.on(this.tech_,"fullscreenerror",this.handleTechFullscreenError_);this.on(this.tech_,"enterpictureinpicture",this.handleTechEnterPictureInPicture_);this.on(this.tech_,"leavepictureinpicture",this.handleTechLeavePictureInPicture_);this.on(this.tech_,"error",this.handleTechError_);this.on(this.tech_,"loadedmetadata",this.updateStyleEl_);this.on(this.tech_,"posterchange",this.handleTechPosterChange_);this.on(this.tech_,"textdata",this.handleTechTextData_);this.on(this.tech_,"ratechange",this.handleTechRateChange_);this.usingNativeControls(this.techGet_("controls"));if(this.controls()&&!this.usingNativeControls()){this.addTechControlsListeners_()}if(this.tech_.el().parentNode!==this.el()&&(n!=="Html5"||!this.tag)){oe(this.tech_.el(),this.el())}if(this.tag){this.tag.player=null;this.tag=null}};r.unloadTech_=function e(){var t=this;Qi.names.forEach(function(e){var i=Qi[e];t[i.privateName]=t[i.getterName]()});this.textTracksJson_=Xt.textTracksToJson(this.tech_);this.isReady_=false;this.tech_.dispose();this.tech_=false;if(this.isPosterFromTech_){this.poster_="";this.trigger("posterchange")}this.isPosterFromTech_=false};r.tech=function e(t){if(t===undefined){b.warn("Using the tech directly can be dangerous. I hope you know 
1what you\'re doing.\\n"+"See https://github.com/videojs/video.js/issues/2617 for more info.\\n")}return this.tech_};r.addTechControlsListeners_=function e(){this.removeTechControlsListeners_();this.on(this.tech_,"mouseup",this.handleTechClick_);this.on(this.tech_,"dblclick",this.handleTechDoubleClick_);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_)};r.removeTechControlsListeners_=function e(){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_,"mouseup",this.handleTechClick_);this.off(this.tech_,"dblclick",this.handleTechDoubleClick_)};r.handleTechReady_=function e(){this.triggerReady();if(this.cache_.volume){this.techCall_("setVolume",this.cache_.volume)}this.handleTechPosterChange_();this.handleTechDurationChange_()};r.handleTechLoadStart_=function e(){this.removeClass("vjs-ended");this.removeClass("vjs-seeking");this.error(null);this.handleTechDurationChange_();if(!this.paused()){this.trigger("loadstart");this.trigger("firstplay")}else{this.hasStarted(false);this.trigger("loadstart")}this.manualAutoplay_(this.autoplay())};r.manualAutoplay_=function e(t){var i=this;if(!this.tech_||typeof t!=="string"){return}var r=function e(){var t=i.muted();i.muted(true);var r=function e(){i.muted(t)};i.playTerminatedQueue_.push(r);var n=i.play();if(!zt(n)){return}return n["catch"](r)};var n;if(t==="any"&&this.muted()!==true){n=this.play();if(zt(n)){n=n["catch"](r)}}else if(t==="muted"&&this.muted()!==true){n=r()}else{n=this.play()}if(!zt(n)){return}return n.then(function(){i.trigger({type:"autoplay-success",autoplay:t})})["catch"](function(e){i.trigger({type:"autoplay-failure",autoplay:t})})};r.updateSourceCaches_=function e(t){if(t===void 0){t=""}var i=t;var r="";if(typeof i!=="string"){i=t.src;r=t.type}this.cache_.source=this.cache_.source||{};this.cache_.sources=this.cache_.sources||[];if(i&&!r){r=_r(this,i)}this.cache_.source=kt({},t,{src:i,type:r});var n=this.cache_.sources.filter(function(e){return e.src&&e.src===i});var a=[];var s=this.$$("source");var o=[];for(var l=0;l<s.length;l++){var u=he(s[l]);a.push(u);if(u.src&&u.src===i){o.push(u.src)}}if(o.length&&!n.length){this.cache_.sources=a}else if(!n.length){this.cache_.sources=[this.cache_.source]}this.cache_.src=i};r.handleTechSourceset_=function e(t){var i=this;if(!this.changingSrc_){var r=function e(t){return i.updateSourceCaches_(t)};var n=this.currentSource().src;var a=t.src;if(n&&!/^blob:/.test(n)&&/^blob:/.test(a)){if(!this.lastSource_||this.lastSource_.tech!==a&&this.lastSource_.player!==n){r=function e(){}}}r(a);if(!t.src){this.tech_.any(["sourceset","loadstart"],function(e){if(e.type==="sourceset"){return}var t=i.techGet("currentSrc");i.lastSource_.tech=t;i.updateSourceCaches_(t)})}}this.lastSource_={player:this.currentSource().src,tech:t.src};this.trigger({src:t.src,type:"sourceset"})};r.hasStarted=function e(t){if(t===undefined){return this.hasStarted_}if(t===this.hasStarted_){return}this.hasStarted_=t;if(this.hasStarted_){this.addClass("vjs-has-started");this.trigger("firstplay")}else{this.removeClass("vjs-has-started")}};r.handleTechPlay_=function e(){this.removeClass("vjs-ended");this.removeClass("vjs-paused");this.addClass("vjs-playing");this.hasStarted(true);this.trigger("play")};r.handleTechRateChange_=function e(){if(this.tech_.playbackRate()>0&&this.cache_.lastPlaybackRate===0){this.queuedCallbacks_.forEach(function(e){return e.callback(e.event)});this.queuedCallbacks_=[]}this.cache_.lastPlaybackRate=this.tech_.playbackRate();this.trigger("ratechange")};r.handleTechWaiting_=function e(){var t=this;this.addClass("vjs-waiting");this.trigger("waiting");var i=this.currentTime();var r=function e(){if(i!==t.currentTime()){t.removeClass("vjs-waiting");t.off("timeupdate",e)}};this.on("timeupdate",r)};r.handleTechCanPlay_=function e(){this.removeClass("vjs-waiting");this.trigger("canplay")};r.handleTechCanPlayThrough_=function e(){this.removeClass("vjs-waiting");this.trigger("canplaythrough")};r.handleTechPlaying_=function e(){this.removeClass("vjs-waiting");this.trigger("playing")};r.handleTechSeeking_=function e(){this.addClass("vjs-seeking");this.trigger("seeking")};r.handleTechSeeked_=function e(){this.removeClass("vjs-seeking");this.removeClass("vjs-ended");this.trigger("seeked")};r.handleTechFirstPlay_=function e(){if(this.options_.starttime){b.warn("Passing the `starttime` option to the player will be deprecated 
1in 6.0");this.currentTime(this.options_.starttime)}this.addClass("vjs-has-started");this.trigger("firstplay")};r.handleTechPause_=function e(){this.removeClass("vjs-playing");this.addClass("vjs-paused");this.trigger("pause")};r.handleTechEnded_=function e(){this.addClass("vjs-ended");if(this.options_.loop){this.currentTime(0);this.play()}else if(!this.paused()){this.pause()}this.trigger("ended")};r.handleTechDurationChange_=function e(){this.duration(this.techGet_("duration"))};r.handleTechClick_=function e(t){if(!Ce(t)){return}if(!this.controls_){return}if(this.paused()){Wt(this.play())}else{this.pause()}};r.handleTechDoubleClick_=function e(t){if(!this.controls_){return}var i=Array.prototype.some.call(this.$$(".vjs-control-bar, .vjs-modal-dialog"),function(e){return e.contains(t.target)});if(!i){if(this.options_===undefined||this.options_.userActions===undefined||this.options_.userActions.doubleClick===undefined||this.options_.userActions.doubleClick!==false){if(this.options_!==undefined&&this.options_.userActions!==undefined&&typeof this.options_.userActions.doubleClick==="function"){this.options_.userActions.doubleClick.call(this,t)}else if(this.isFullscreen()){this.exitFullscreen()}else{this.requestFullscreen()}}}};r.handleTechTap_=function e(){this.userActive(!this.userActive())};r.handleTechTouchStart_=function e(){this.userWasActive=this.userActive()};r.handleTechTouchMove_=function e(){if(this.userWasActive){this.reportUserActivity()}};r.handleTechTouchEnd_=function e(t){if(t.cancelable){t.preventDefault()}};r.handleStageClick_=function e(){this.reportUserActivity()};r.toggleFullscreenClass_=function e(){if(this.isFullscreen()){this.addClass("vjs-fullscreen")}else{this.removeClass("vjs-fullscreen")}};r.documentFullscreenChange_=function e(t){var i=t.target.player;if(i&&i!==this){return}var r=this.el();var n=c[this.fsApi_.fullscreenElement]===r;if(!n&&r.matches){n=r.matches(":"+this.fsApi_.fullscreen)}else if(!n&&r.msMatchesSelector){n=r.msMatchesSelector(":"+this.fsApi_.fullscreen)}this.isFullscreen(n)};r.handleTechFullscreenChange_=function e(t,i){if(i){if(i.nativeIOSFullscreen){this.toggleClass("vjs-ios-native-fs")}this.isFullscreen(i.isFullscreen)}};r.handleTechFullscreenError_=function e(t,i){this.trigger("fullscreenerror",i)};r.togglePictureInPictureClass_=function e(){if(this.isInPictureInPicture()){this.addClass("vjs-picture-in-picture")}else{this.removeClass("vjs-picture-in-picture")}};r.handleTechEnterPictureInPicture_=function e(t){this.isInPictureInPicture(true)};r.handleTechLeavePictureInPicture_=function e(t){this.isInPictureInPicture(false)};r.handleTechError_=function e(){var t=this.tech_.error();this.error(t)};r.handleTechTextData_=function e(){var t=null;if(arguments.length>1){t=arguments[1]}this.trigger("textdata",t)};r.getCache=function e(){return this.cache_};r.resetCache_=function e(){this.cache_={currentTime:0,initTime:0,inactivityTimeout:this.options_.inactivityTimeout,duration:NaN,lastVolume:1,lastPlaybackRate:this.defaultPlaybackRate(),media:null,src:"",source:{},sources:[],volume:1}};r.techCall_=function e(t,i){this.ready(function(){if(t in cr){return or(this.middleware_,this.tech_,t,i)}else if(t in dr){return lr(this.middleware_,this.tech_,t,i)}try{if(this.tech_){this.tech_[t](i)}}catch(e){b(e);throw e}},true)};r.techGet_=function e(t){if(!this.tech_||!this.tech_.isReady_){return}if(t in ur){return sr(this.middleware_,this.tech_,t)}else if(t in dr){return lr(this.middleware_,this.tech_,t)}try{return this.tech_[t]()}catch(e){if(this.tech_[t]===undefined){b("Video.js: "+t+" method not defined for "+this.techName_+" playback technology.",e);throw e}if(e.name==="TypeError"){b("Video.js: "+t+" unavailable on "+this.techName_+" playback technology element.",e);this.tech_.isReady_=false;throw e}b(e);throw e}};r.play=function e(){var t=this;var i=this.options_.Promise||s.Promise;if(i){return new i(function(e){t.play_(e)})}return this.play_()};r.play_=function e(t){var i=this;if(t===void 0){t=Wt}this.playCallbacks_.push(t);var r=Boolean(!this.changingSrc_&&(this.src()||this.currentSrc()));if(this.waitToPlay_){this.off(["ready","loadstart"],this.waitToPlay_);this.waitToPlay_=null}if(!this.isReady_||!r){this.waitToPlay_=function(e){i.play_()};this.one(["ready","loadstart"],this.waitToPlay_);if(!r&&(Q||X)){this.load()}return}var n=this.techGet_("play");
1if(n===null){this.runPlayTerminatedQueue_()}else{this.runPlayCallbacks_(n)}};r.runPlayTerminatedQueue_=function e(){var t=this.playTerminatedQueue_.slice(0);this.playTerminatedQueue_=[];t.forEach(function(e){e()})};r.runPlayCallbacks_=function e(t){var i=this.playCallbacks_.slice(0);this.playCallbacks_=[];this.playTerminatedQueue_=[];i.forEach(function(e){e(t)})};r.pause=function e(){this.techCall_("pause")};r.paused=function e(){return this.techGet_("paused")===false?false:true};r.played=function e(){return this.techGet_("played")||Ut(0,0)};r.scrubbing=function e(t){if(typeof t==="undefined"){return this.scrubbing_}this.scrubbing_=!!t;this.techCall_("setScrubbing",this.scrubbing_);if(t){this.addClass("vjs-scrubbing")}else{this.removeClass("vjs-scrubbing")}};r.currentTime=function e(t){if(typeof t!=="undefined"){if(t<0){t=0}if(!this.isReady_||this.changingSrc_||!this.tech_||!this.tech_.isReady_){this.cache_.initTime=t;this.off("canplay",this.applyInitTime_);this.one("canplay",this.applyInitTime_);return}this.techCall_("setCurrentTime",t);this.cache_.initTime=0;return}this.cache_.currentTime=this.techGet_("currentTime")||0;return this.cache_.currentTime};r.applyInitTime_=function e(){this.currentTime(this.cache_.initTime)};r.duration=function e(t){if(t===undefined){return this.cache_.duration!==undefined?this.cache_.duration:NaN}t=parseFloat(t);if(t<0){t=Infinity}if(t!==this.cache_.duration){this.cache_.duration=t;if(t===Infinity){this.addClass("vjs-live")}else{this.removeClass("vjs-live")}if(!isNaN(t)){this.trigger("durationchange")}}};r.remainingTime=function e(){return this.duration()-this.currentTime()};r.remainingTimeDisplay=function e(){return Math.floor(this.duration())-Math.floor(this.currentTime())};r.buffered=function e(){var e=this.techGet_("buffered");if(!e||!e.length){e=Ut(0,0)}return e};r.bufferedPercent=function e(){return Bt(this.buffered(),this.duration())};r.bufferedEnd=function e(){var t=this.buffered();var i=this.duration();var r=t.end(t.length-1);if(r>i){r=i}return r};r.volume=function e(t){var i;if(t!==undefined){i=Math.max(0,Math.min(1,parseFloat(t)));this.cache_.volume=i;this.techCall_("setVolume",i);if(i>0){this.lastVolume_(i)}return}i=parseFloat(this.techGet_("volume"));return isNaN(i)?1:i};r.muted=function e(t){if(t!==undefined){this.techCall_("setMuted",t);return}return this.techGet_("muted")||false};r.defaultMuted=function e(t){if(t!==undefined){return this.techCall_("setDefaultMuted",t)}return this.te'),t[0].s.push('chGet_("defaultMuted")||false};r.lastVolume_=function e(t){if(t!==undefined&&t!==0){this.cache_.lastVolume=t;return}return this.cache_.lastVolume};r.supportsFullScreen=function e(){return this.techGet_("supportsFullScreen")||false};r.isFullscreen=function e(t){if(t!==undefined){var i=this.isFullscreen_;this.isFullscreen_=Boolean(t);if(this.isFullscreen_!==i&&this.fsApi_.prefixed){this.trigger("fullscreenchange")}this.toggleFullscreenClass_();return}return this.isFullscreen_};r.requestFullscreen=function e(t){var i=this.options_.Promise||s.Promise;if(i){var r=this;return new i(function(e,i){function n(){r.off("fullscreenerror",s);r.off("fullscreenchange",a)}function a(){n();e()}function s(e,t){n();i(t)}r.one("fullscreenchange",a);r.one("fullscreenerror",s);var o=r.requestFullscreenHelper_(t);if(o){o.then(n,n);return o}})}return this.requestFullscreenHelper_()};r.requestFullscreenHelper_=function e(t){var i=this;var r;if(!this.fsApi_.prefixed){r=this.options_.fullscreen&&this.options_.fullscreen.options||{};if(t!==undefined){r=t}}if(this.fsApi_.requestFullscreen){var n=this.el_[this.fsApi_.requestFullscreen](r);if(n){n.then(function(){return i.isFullscreen(true)},function(){return i.isFullscreen(false)})}return n}else if(this.tech_.supportsFullScreen()){this.techCall_("enterFullScreen")}else{this.enterFullWindow()}};r.exitFullscreen=function e(){var t=this.options_.Promise||s.Promise;if(t){var i=this;return new t(function(e,t){function r(){i.off("fullscreenerror",a);i.off("fullscreenchange",n)}function n(){r();e()}function a(e,i){r();t(i)}i.one("fullscreenchange",n);i.one("fullscreenerror",a);var s=i.exitFullscreenHelper_();if(s){s.then(r,r);return s}})}return this.exitFullscreenHelper_()};r.exitFullscreenHelper_=function e(){var t=this;if(this.fsApi_.requestFullscreen){var i=c[this.fsApi_.exitFullscreen]();if(i){i.then(function(){return t.isFullscreen(false)})}return i}else if(this.tech_.supportsFullScreen()){this.techCall_("exitFullScreen")}else{this.exitFullWindow()}};r.enterFullWindow=function e(){this.isFullscreen(true);this.isFullWindow=true;this.docOrigOverflow=c.documentElement.style.overflow;Xe(c,"keydown",this.boundFullWindowOnEscKey_);c.documentElement.style.overflow="hidden";ue(c.body,"vjs-full-window");this.trigger("enterFullWindow")};r.fullWindowOnEscKey=function e(t){if(Qt.isEventKey(t,"Esc")){if(this.isFullscreen()===true){this.exitFullscreen()}else{this.exitFullWindow()}}};r.exitFullWindow=function e(){this.isFullscreen(false);this.isFullWindow=false;Qe(c,"keydown",this.boundFullWindowOnEscKey_);c.documentElement.style.overflow=this.docOrigOverflow;ce(c.body,"vjs-full-window");this.trigger("exitFullWindow")};r.disablePictureInPicture=function e(t){if(t===undefined){return this.techGet_("disablePictureInPicture")}this.techCall_("setDisablePictureInPicture",t);this.options_.disablePictureInPicture=t;this.trigger("disablepictureinpicturechanged")};r.isInPictureInPicture=function e(t){if(t!==undefined){this.isInPictureInPicture_=!!t;this.togglePictureInPictureClass_();return}return!!this.isInPictureInPicture_};r.requestPictureInPicture=function e(){if("pictureInPictureEnabled"in c&&this.disablePictureInPicture()===false){return this.techGet_("requestPictureInPicture")}};r.exitPictureInPicture=function e(){if("pictureInPictureEnabled"in c){return c.exitPictureInPicture()}};r.handleKeyDown=function e(t){var i=this.options_.userActions;if(!i||!i.hotkeys){return}var r=function e(t){var i=t.tagName.toLowerCase();if(t.isContentEditable){return true}var r=["button","checkbox","hidden","radio","reset","submit"];if(i==="input"){return r.indexOf(t.type)===-1}var n=["textarea"];return n.indexOf(i)!==-1};if(r(this.el_.ownerDocument.activeElement)){return}if(typeof i.hotkeys==="function"){i.hotkeys.call(this,t)}else{this.handleHotkeys(t)}};r.handleHotkeys=function e(t){var i=this.options_.userActions?this.options_.userActions.hotkeys:{};var r=i.fullscreenKey,n=r===void 0?function(e){return Qt.isEventKey(e,"f")}:r,a=i.muteKey,s=a===void 0?function(e){return Qt.isEventKey(e,"m")}:a,o=i.playPauseKey,l=o===void 0?function(e){return Qt.isEventKey(e,"k")||Qt.isEventKey(e,"Space")}:o;if(n.call(this,t)){t.preventDefault();t.stopPropagation();var u=It.getComponent("FullscreenToggle");if(c[this.fsApi_.fullscreenEnabled]!==false){u.prototype.handleClick.call(this,t)}}else if(s.call(this,t)){t.preventDefault();t.stopPropagation();var d=It.getComponent("MuteToggle");d.prototype.handleClick.call(this,t)}else if(l.call(this,t)){t.preventDefault();t.stopPropagation();var f=It.getComponent("PlayToggle");f.prototype.handleClick.call(this,t)}};r.canPlayType=function e(t){var i;for(var r=0,n=this.options_.techOrder;r<n.length;r++){var a=n[r];var s=$i.getTech(a);if(!s){s=It.getComponent(a)}if(!s){b.error(\'The "\'+a+\'" tech is undefined. Skipped browser support check for that tech.\');continue}if(s.isSupported()){i=s.canPlayType(t);if(i){return i}}}return""};r.selectSource=function e(t){var i=this;var r=this.options_.techOrder.map(function(e){return[e,$i.getTech(e)]}).filter(function(e){var t=e[0],i=e[1];if(i){return i.isSupported()}b.error(\'The "\'+t+\'" tech is undefined. Skipped browser support check for that tech.\');return false});var n=function e(t,i,r){var n;
1t.some(function(e){return i.some(function(t){n=r(e,t);if(n){return true}})});return n};var a;var s=function e(t){return function(e,i){return t(i,e)}};var o=function e(t,r){var n=t[0],a=t[1];if(a.canPlaySource(r,i.options_[n.toLowerCase()])){return{source:r,tech:n}}};if(this.options_.sourceOrder){a=n(t,r,s(o))}else{a=n(r,t,o)}return a||false};r.src=function e(t){var i=this;if(typeof t==="undefined"){return this.cache_.src||""}var r=br(t);if(!r.length){this.setTimeout(function(){this.error({code:4,message:this.localize(this.options_.notSupportedMessage)})},0);return}this.changingSrc_=true;this.cache_.sources=r;this.updateSourceCaches_(r[0]);nr(this,r[0],function(e,t){i.middleware_=t;i.cache_.sources=r;i.updateSourceCaches_(e);var n=i.src_(e);if(n){if(r.length>1){return i.src(r.slice(1))}i.changingSrc_=false;i.setTimeout(function(){this.error({code:4,message:this.localize(this.options_.notSupportedMessage)})},0);i.triggerReady();return}ar(t,i.tech_)})};r.src_=function e(t){var i=this;var r=this.selectSource([t]);if(!r){return true}if(!St(r.tech,this.techName_)){this.changingSrc_=true;this.loadTech_(r.tech,r.source);this.tech_.ready(function(){i.changingSrc_=false});return false}this.ready(function(){if(this.tech_.constructor.prototype.hasOwnProperty("setSource")){this.techCall_("setSource",t)}else{this.techCall_("src",t.src)}this.changingSrc_=false},true);return false};r.load=function e(){this.techCall_("load")};r.reset=function e(){var t=this;var i=this.options_.Promise||s.Promise;if(this.paused()||!i){this.doReset_()}else{var r=this.play();Wt(r.then(function(){return t.doReset_()}))}};r.doReset_=function e(){if(this.tech_){this.tech_.clearTracks("text")}this.resetCache_();this.poster("");this.loadTech_(this.options_.techOrder[0],null);this.techCall_("reset");this.resetControlBarUI_();if(lt(this)){this.trigger("playerreset")}};r.resetControlBarUI_=function e(){this.resetProgressBar_();this.resetPlaybackRate_();this.resetVolumeBar_()};r.resetProgressBar_=function e(){this.currentTime(0);var t=this.controlBar,i=t.durationDisplay,r=t.remainingTimeDisplay;if(i){i.updateContent()}if(r){r.updateContent()}};r.resetPlaybackRate_=function e(){this.playbackRate(this.defaultPlaybackRate());this.handleTechRateChange_()};r.resetVolumeBar_=function e(){this.volume(1);this.trigger("volumechange")};r.currentSources=function e(){var t=this.currentSource();var i=[];if(Object.keys(t).length!==0){i.push(t)}return this.cache_.sources||i};r.currentSource=function e(){return this.cache_.source||{}};r.currentSrc=function e(){return this.currentSource()&&this.currentSource().src||""};r.currentType=function e(){return this.currentSource()&&this.currentSource().type||""};r.preload=function e(t){if(t!==undefined){this.techCall_("setPreload",t);this.options_.preload=t;return}return this.techGet_("preload")};r.autoplay=function e(t){if(t===undefined){return this.options_.autoplay||false}var i;if(typeof t==="string"&&/(any|play|muted)/.test(t)){this.options_.autoplay=t;this.manualAutoplay_(t);i=false}else if(!t){this.options_.autoplay=false}else{this.options_.autoplay=true}i=typeof i==="undefined"?this.options_.autoplay:i;if(this.tech_){this.techCall_("setAutoplay",i)}};r.playsinline=function e(t){if(t!==undefined){this.techCall_("setPlaysinline",t);this.options_.playsinline=t;return this}return this.techGet_("playsinline")};r.loop=function e(t){if(t!==undefined){this.techCall_("setLoop",t);this.options_.loop=t;return}return this.techGet_("loop")};r.poster=function e(t){if(t===undefined){return this.poster_}if(!t){t=""}if(t===this.poster_){return}this.poster_=t;this.techCall_("setPoster",t);this.isPosterFromTech_=false;this.trigger("posterchange")};r.handleTechPosterChange_=function e(){if((!this.poster_||this.options_.techCanOverridePoster)&&this.tech_&&this.tech_.poster){var t=this.tech_.poster()||"";if(t!==this.poster_){this.poster_=t;this.isPosterFromTech_=true;this.trigger("posterchange")}}};r.controls=function e(t){if(t===undefined){return!!this.controls_}t=!!t;if(this.controls_===t){return}this.controls_=t;if(this.usingNativeControls()){this.techCall_("setControls",t)}if(this.controls_){this.removeClass("vjs-controls-disabled");this.addClass("vjs-controls-enabled");this.trigger("controlsenabled");
1if(!this.usingNativeControls()){this.addTechControlsListeners_()}}else{this.removeClass("vjs-controls-enabled");this.addClass("vjs-controls-disabled");this.trigger("controlsdisabled");if(!this.usingNativeControls()){this.removeTechControlsListeners_()}}};r.usingNativeControls=function e(t){if(t===undefined){return!!this.usingNativeControls_}t=!!t;if(this.usingNativeControls_===t){return}this.usingNativeControls_=t;if(this.usingNativeControls_){this.addClass("vjs-using-native-controls");this.trigger("usingnativecontrols")}else{this.removeClass("vjs-using-native-controls");this.trigger("usingcustomcontrols")}};r.error=function e(t){if(t===undefined){return this.error_||null}if(this.options_.suppressNotSupportedError&&t&&t.code===4){var i=function e(){this.error(t)};this.options_.suppressNotSupportedError=false;this.any(["click","touchstart"],i);this.one("loadstart",function(){this.off(["click","touchstart"],i)});return}if(t===null){this.error_=t;this.removeClass("vjs-error");if(this.errorDisplay){this.errorDisplay.close()}return}this.error_=new Ft(t);this.addClass("vjs-error");b.error("(CODE:"+this.error_.code+" "+Ft.errorTypes[this.error_.code]+")",this.error_.message,this.error_);this.trigger("error");return};r.reportUserActivity=function e(t){this.userActivity_=true};r.userActive=function e(t){if(t===undefined){return this.userActive_}t=!!t;if(t===this.userActive_){return}this.userActive_=t;if(this.userActive_){this.userActivity_=true;this.removeClass("vjs-user-inactive");this.addClass("vjs-user-active");this.trigger("useractive");return}if(this.tech_){this.tech_.one("mousemove",function(e){e.stopPropagation();e.preventDefault()})}this.userActivity_=false;this.removeClass("vjs-user-active");this.addClass("vjs-user-inactive");this.trigger("userinactive")};r.listenForUserActivity_=function e(){var t;var i;var r;var n=it(this,this.reportUserActivity);var a=function e(t){if(t.screenX!==i||t.screenY!==r){i=t.screenX;r=t.screenY;n()}};var s=function e(){n();this.clearInterval(t);t=this.setInterval(n,250)};var o=function e(i){n();this.clearInterval(t)};this.on("mousedown",s);this.on("mousemove",a);this.on("mouseup",o);this.on("mouseleave",o);var l=this.getChild("controlBar");if(l&&!X&&!N){l.on("mouseenter",function(e){this.player().cache_.inactivityTimeout=this.player().options_.inactivityTimeout;this.player().options_.inactivityTimeout=0});l.on("mouseleave",function(e){this.player().options_.inactivityTimeout=this.player().cache_.inactivityTimeout})}this.on("keydown",n);this.on("keyup",n);var u;this.setInterval(function(){if(!this.userActivity_){return}this.userActivity_=false;this.userActive(true);this.clearTimeout(u);var e=this.options_.inactivityTimeout;if(e<=0){return}u=this.setTimeout(function(){if(!this.userActivity_){this.userActive(false)}},e)},250)};r.playbackRate=function e(t){if(t!==undefined){this.techCall_("setPlaybackRate",t);return}if(this.tech_&&this.tech_.featuresPlaybackRate){return this.cache_.lastPlaybackRate||this.techGet_("playbackRate")}return 1};r.defaultPlaybackRate=function e(t){if(t!==undefined){return this.techCall_("setDefaultPlaybackRate",t)}if(this.tech_&&this.tech_.featuresPlaybackRate){return this.techGet_("defaultPlaybackRate")}return 1};r.isAudio=function e(t){if(t!==undefined){this.isAudio_=!!t;return}return!!this.isAudio_};r.addTextTrack=function e(t,i,r){if(this.tech_){return this.tech_.addTextTrack(t,i,r)}};r.addRemoteTextTrack=function e(t,i){if(this.tech_){return this.tech_.addRemoteTextTrack(t,i)}};r.removeRemoteTextTrack=function e(t){if(t===void 0){t={}}var i=t,r=i.track;if(!r){r=t}if(this.tech_){return this.tech_.removeRemoteTextTrack(r)}};r.getVideoPlaybackQuality=function e(){return this.techGet_("getVideoPlaybackQuality")};r.videoWidth=function e(){return this.tech_&&this.tech_.videoWidth&&this.tech_.videoWidth()||0};r.videoHeight=function e(){return this.tech_&&this.tech_.videoHeight&&this.tech_.videoHeight()||0};r.language=function e(t){if(t===undefined){return this.language_}if(this.language_!==String(t).toLowerCase()){this.language_=String(t).toLowerCase();if(lt(this)){this.trigger("languagechange")}}};r.languages=function e(){return kt(t.prototype.options_.languages,this.languages_)};r.toJSON=function e(){var t=kt(this.options_);var i=t.tracks;t.tracks=[];for(var r=0;r<i.length;r++){var n=i[r];n=kt(n);n.player=undefined;t.tracks[r]=n}return t};r.createModal=function e(t,i){var r=this;i=i||{};i.content=t||"";var n=new ri(this,i);this.addChild(n);n.on("dispose",function(){r.removeChild(n)});n.open();return n};r.updateCurrentBreakpoint_=function e(){if(!this.responsive()){return}var t=this.currentBreakpoint();var i=this.currentWidth();for(var r=0;r<ya.length;r++){var n=ya[r];var a=this.breakpoints_[n];if(i<=a){if(t===n){return}if(t){this.removeClass(_a[t])}this.addClass(_a[n]);this.breakpoint_=n;break}}};r.removeCurrentBreakpoint_=function e(){var t=this.currentBreakpointClass();this.breakpoint_="";if(t){this.removeClass(t)}};r.breakpoints=function e(t){if(t===undefined){return C(this.breakpoints_)}this.breakpoint_="";this.breakpoints_=C({},ba,t);this.updateCurrentBreakpoint_();return C(this.breakpoints_)};r.responsive=function e(t){if(t===undefined){return this.responsive_}t=Boolean(t);var i=this.responsive_;if(t===i){return}this.responsive_=t;if(t){this.on("playerresize",this.updateCurrentBreakpoint_);this.updateCurrentBreakpoint_()}else{this.off("playerresize",this.updateCurrentBreakpoint_);this.removeCurrentBreakpoint_()}return t};r.currentBreakpoint=function e(){return this.breakpoint_};r.currentBreakpointClass=function e(){return _a[this.breakpoint_]||""};r.loadMedia=function e(t,i){var r=this;if(!t||typeof t!=="object"){return}this.reset();this.cache_.media=kt(t);var n=this.cache_.media,a=n.artwork,s=n.poster,o=n.src,l=n.textTracks;
1if(!a&&s){this.cache_.media.artwork=[{src:s,type:yr(s)}]}if(o){this.src(o)}if(s){this.poster(s)}if(Array.isArray(l)){l.forEach(function(e){return r.addRemoteTextTrack(e,false)})}this.ready(i)};r.getMedia=function e(){if(!this.cache_.media){var t=this.poster();var i=this.currentSources();var r=Array.prototype.map.call(this.remoteTextTracks(),function(e){return{kind:e.kind,label:e.label,language:e.language,src:e.src}});var n={src:i,textTracks:r};if(t){n.poster=t;n.artwork=[{src:n.poster,type:yr(n.poster)}]}return n}return kt(this.cache_.media)};t.getTagSettings=function e(t){var i={sources:[],tracks:[]};var r=he(t);var n=r["data-setup"];if(le(t,"vjs-fill")){r.fill=true}if(le(t,"vjs-fluid")){r.fluid=true}if(n!==null){var a=Vt(n||"{}"),s=a[0],o=a[1];if(s){b.error(s)}C(r,o)}C(i,r);if(t.hasChildNodes()){var l=t.childNodes;for(var u=0,c=l.length;u<c;u++){var d=l[u];var f=d.nodeName.toLowerCase();if(f==="source"){i.sources.push(he(d))}else if(f==="track"){i.tracks.push(he(d))}}}return i};r.flexNotSupported_=function e(){var t=c.createElement("i");return!("flexBasis"in t.style||"webkitFlexBasis"in t'),t[1].s.push('chGet_("defaultMuted")||false};r.lastVolume_=function e(t){if(t!==undefined&&t!==0){this.cache_.lastVolume=t;return}return this.cache_.lastVolume};r.supportsFullScreen=function e(){return this.techGet_("supportsFullScreen")||false};r.isFullscreen=function e(t){if(t!==undefined){var i=this.isFullscreen_;this.isFullscreen_=Boolean(t);if(this.isFullscreen_!==i&&this.fsApi_.prefixed){this.trigger("fullscreenchange")}this.toggleFullscreenClass_();return}return this.isFullscreen_};r.requestFullscreen=function e(t){var i=this.options_.Promise||s.Promise;if(i){var r=this;return new i(function(e,i){function n(){r.off("fullscreenerror",s);r.off("fullscreenchange",a)}function a(){n();e()}function s(e,t){n();i(t)}r.one("fullscreenchange",a);r.one("fullscreenerror",s);var o=r.requestFullscreenHelper_(t);if(o){o.then(n,n);return o}})}return this.requestFullscreenHelper_()};r.requestFullscreenHelper_=function e(t){var i=this;var r;if(!this.fsApi_.prefixed){r=this.options_.fullscreen&&this.options_.fullscreen.options||{};if(t!==undefined){r=t}}if(this.fsApi_.requestFullscreen){var n=this.el_[this.fsApi_.requestFullscreen](r);if(n){n.then(function(){return i.isFullscreen(true)},function(){return i.isFullscreen(false)})}return n}else if(this.tech_.supportsFullScreen()){this.techCall_("enterFullScreen")}else{this.enterFullWindow()}};r.exitFullscreen=function e(){var t=this.options_.Promise||s.Promise;if(t){var i=this;return new t(function(e,t){function r(){i.off("fullscreenerror",a);i.off("fullscreenchange",n)}function n(){r();e()}function a(e,i){r();t(i)}i.one("fullscreenchange",n);i.one("fullscreenerror",a);var s=i.exitFullscreenHelper_();if(s){s.then(r,r);return s}})}return this.exitFullscreenHelper_()};r.exitFullscreenHelper_=function e(){var t=this;if(this.fsApi_.requestFullscreen){var i=c[this.fsApi_.exitFullscreen]();if(i){i.then(function(){return t.isFullscreen(false)})}return i}else if(this.tech_.supportsFullScreen()){this.techCall_("exitFullScreen")}else{this.exitFullWindow()}};r.enterFullWindow=function e(){this.isFullscreen(true);this.isFullWindow=true;this.docOrigOverflow=c.documentElement.style.overflow;Xe(c,"keydown",this.boundFullWindowOnEscKey_);c.documentElement.style.overflow="hidden";ue(c.body,"vjs-full-window");this.trigger("enterFullWindow")};r.fullWindowOnEscKey=function e(t){if(Qt.isEventKey(t,"Esc")){if(this.isFullscreen()===true){this.exitFullscreen()}else{this.exitFullWindow()}}};r.exitFullWindow=function e(){this.isFullscreen(false);this.isFullWindow=false;Qe(c,"keydown",this.boundFullWindowOnEscKey_);c.documentElement.style.overflow=this.docOrigOverflow;ce(c.body,"vjs-full-window");this.trigger("exitFullWindow")};r.disablePictureInPicture=function e(t){if(t===undefined){return this.techGet_("disablePictureInPicture")}this.techCall_("setDisablePictureInPicture",t);this.options_.disablePictureInPicture=t;this.trigger("disablepictureinpicturechanged")};r.isInPictureInPicture=function e(t){if(t!==undefined){this.isInPictureInPicture_=!!t;this.togglePictureInPictureClass_();return}return!!this.isInPictureInPicture_};r.requestPictureInPicture=function e(){if("pictureInPictureEnabled"in c&&this.disablePictureInPicture()===false){return this.techGet_("requestPictureInPicture")}};r.exitPictureInPicture=function e(){if("pictureInPictureEnabled"in c){return c.exitPictureInPicture()}};r.handleKeyDown=function e(t){var i=this.options_.userActions;if(!i||!i.hotkeys){return}var r=function e(t){var i=t.tagName.toLowerCase();if(t.isContentEditable){return true}var r=["button","checkbox","hidden","radio","reset","submit"];if(i==="input"){return r.indexOf(t.type)===-1}var n=["textarea"];return n.indexOf(i)!==-1};if(r(this.el_.ownerDocument.activeElement)){return}if(typeof i.hotkeys==="function"){i.hotkeys.call(this,t)}else{this.handleHotkeys(t)}};r.handleHotkeys=function e(t){var i=this.options_.userActions?this.options_.userActions.hotkeys:{};var r=i.fullscreenKey,n=r===void 0?function(e){return Qt.isEventKey(e,"f")}:r,a=i.muteKey,s=a===void 0?function(e){return Qt.isEventKey(e,"m")}:a,o=i.playPauseKey,l=o===void 0?function(e){return Qt.isEventKey(e,"k")||Qt.isEventKey(e,"Space")}:o;if(n.call(this,t)){t.preventDefault();t.stopPropagation();var u=It.getComponent("FullscreenToggle");if(c[this.fsApi_.fullscreenEnabled]!==false){u.prototype.handleClick.call(this,t)}}else if(s.call(this,t)){t.preventDefault();t.stopPropagation();var d=It.getComponent("MuteToggle");d.prototype.handleClick.call(this,t)}else if(l.call(this,t)){t.preventDefault();t.stopPropagation();var f=It.getComponent("PlayToggle");f.prototype.handleClick.call(this,t)}};r.canPlayType=function e(t){var i;for(var r=0,n=this.options_.techOrder;r<n.length;r++){var a=n[r];var s=$i.getTech(a);if(!s){s=It.getComponent(a)}if(!s){b.error(\'The "\'+a+\'" tech is undefined. Skipped browser support check for that tech.\');continue}if(s.isSupported()){i=s.canPlayType(t);if(i){return i}}}return""};r.selectSource=function e(t){var i=this;var r=this.options_.techOrder.map(function(e){return[e,$i.getTech(e)]}).filter(function(e){var t=e[0],i=e[1];if(i){return i.isSupported()}b.error(\'The "\'+t+\'" tech is undefined. Skipped browser support check for that tech.\');return false});var n=function e(t,i,r){var n;
1t.some(function(e){return i.some(function(t){n=r(e,t);if(n){return true}})});return n};var a;var s=function e(t){return function(e,i){return t(i,e)}};var o=function e(t,r){var n=t[0],a=t[1];if(a.canPlaySource(r,i.options_[n.toLowerCase()])){return{source:r,tech:n}}};if(this.options_.sourceOrder){a=n(t,r,s(o))}else{a=n(r,t,o)}return a||false};r.src=function e(t){var i=this;if(typeof t==="undefined"){return this.cache_.src||""}var r=br(t);if(!r.length){this.setTimeout(function(){this.error({code:4,message:this.localize(this.options_.notSupportedMessage)})},0);return}this.changingSrc_=true;this.cache_.sources=r;this.updateSourceCaches_(r[0]);nr(this,r[0],function(e,t){i.middleware_=t;i.cache_.sources=r;i.updateSourceCaches_(e);var n=i.src_(e);if(n){if(r.length>1){return i.src(r.slice(1))}i.changingSrc_=false;i.setTimeout(function(){this.error({code:4,message:this.localize(this.options_.notSupportedMessage)})},0);i.triggerReady();return}ar(t,i.tech_)})};r.src_=function e(t){var i=this;var r=this.selectSource([t]);if(!r){return true}if(!St(r.tech,this.techName_)){this.changingSrc_=true;this.loadTech_(r.tech,r.source);this.tech_.ready(function(){i.changingSrc_=false});return false}this.ready(function(){if(this.tech_.constructor.prototype.hasOwnProperty("setSource")){this.techCall_("setSource",t)}else{this.techCall_("src",t.src)}this.changingSrc_=false},true);return false};r.load=function e(){this.techCall_("load")};r.reset=function e(){var t=this;var i=this.options_.Promise||s.Promise;if(this.paused()||!i){this.doReset_()}else{var r=this.play();Wt(r.then(function(){return t.doReset_()}))}};r.doReset_=function e(){if(this.tech_){this.tech_.clearTracks("text")}this.resetCache_();this.poster("");this.loadTech_(this.options_.techOrder[0],null);this.techCall_("reset");this.resetControlBarUI_();if(lt(this)){this.trigger("playerreset")}};r.resetControlBarUI_=function e(){this.resetProgressBar_();this.resetPlaybackRate_();this.resetVolumeBar_()};r.resetProgressBar_=function e(){this.currentTime(0);var t=this.controlBar,i=t.durationDisplay,r=t.remainingTimeDisplay;if(i){i.updateContent()}if(r){r.updateContent()}};r.resetPlaybackRate_=function e(){this.playbackRate(this.defaultPlaybackRate());this.handleTechRateChange_()};r.resetVolumeBar_=function e(){this.volume(1);this.trigger("volumechange")};r.currentSources=function e(){var t=this.currentSource();var i=[];if(Object.keys(t).length!==0){i.push(t)}return this.cache_.sources||i};r.currentSource=function e(){return this.cache_.source||{}};r.currentSrc=function e(){return this.currentSource()&&this.currentSource().src||""};r.currentType=function e(){return this.currentSource()&&this.currentSource().type||""};r.preload=function e(t){if(t!==undefined){this.techCall_("setPreload",t);this.options_.preload=t;return}return this.techGet_("preload")};r.autoplay=function e(t){if(t===undefined){return this.options_.autoplay||false}var i;if(typeof t==="string"&&/(any|play|muted)/.test(t)){this.options_.autoplay=t;this.manualAutoplay_(t);i=false}else if(!t){this.options_.autoplay=false}else{this.options_.autoplay=true}i=typeof i==="undefined"?this.options_.autoplay:i;if(this.tech_){this.techCall_("setAutoplay",i)}};r.playsinline=function e(t){if(t!==undefined){this.techCall_("setPlaysinline",t);this.options_.playsinline=t;return this}return this.techGet_("playsinline")};r.loop=function e(t){if(t!==undefined){this.techCall_("setLoop",t);this.options_.loop=t;return}return this.techGet_("loop")};r.poster=function e(t){if(t===undefined){return this.poster_}if(!t){t=""}if(t===this.poster_){return}this.poster_=t;this.techCall_("setPoster",t);this.isPosterFromTech_=false;this.trigger("posterchange")};r.handleTechPosterChange_=function e(){if((!this.poster_||this.options_.techCanOverridePoster)&&this.tech_&&this.tech_.poster){var t=this.tech_.poster()||"";if(t!==this.poster_){this.poster_=t;this.isPosterFromTech_=true;this.trigger("posterchange")}}};r.controls=function e(t){if(t===undefined){return!!this.controls_}t=!!t;if(this.controls_===t){return}this.controls_=t;if(this.usingNativeControls()){this.techCall_("setControls",t)}if(this.controls_){this.removeClass("vjs-controls-disabled");this.addClass("vjs-controls-enabled");this.trigger("controlsenabled");
1if(!this.usingNativeControls()){this.addTechControlsListeners_()}}else{this.removeClass("vjs-controls-enabled");this.addClass("vjs-controls-disabled");this.trigger("controlsdisabled");if(!this.usingNativeControls()){this.removeTechControlsListeners_()}}};r.usingNativeControls=function e(t){if(t===undefined){return!!this.usingNativeControls_}t=!!t;if(this.usingNativeControls_===t){return}this.usingNativeControls_=t;if(this.usingNativeControls_){this.addClass("vjs-using-native-controls");this.trigger("usingnativecontrols")}else{this.removeClass("vjs-using-native-controls");this.trigger("usingcustomcontrols")}};r.error=function e(t){if(t===undefined){return this.error_||null}if(this.options_.suppressNotSupportedError&&t&&t.code===4){var i=function e(){this.error(t)};this.options_.suppressNotSupportedError=false;this.any(["click","touchstart"],i);this.one("loadstart",function(){this.off(["click","touchstart"],i)});return}if(t===null){this.error_=t;this.removeClass("vjs-error");if(this.errorDisplay){this.errorDisplay.close()}return}this.error_=new Ft(t);this.addClass("vjs-error");b.error("(CODE:"+this.error_.code+" "+Ft.errorTypes[this.error_.code]+")",this.error_.message,this.error_);this.trigger("error");return};r.reportUserActivity=function e(t){this.userActivity_=true};r.userActive=function e(t){if(t===undefined){return this.userActive_}t=!!t;if(t===this.userActive_){return}this.userActive_=t;if(this.userActive_){this.userActivity_=true;this.removeClass("vjs-user-inactive");this.addClass("vjs-user-active");this.trigger("useractive");return}if(this.tech_){this.tech_.one("mousemove",function(e){e.stopPropagation();e.preventDefault()})}this.userActivity_=false;this.removeClass("vjs-user-active");this.addClass("vjs-user-inactive");this.trigger("userinactive")};r.listenForUserActivity_=function e(){var t;var i;var r;var n=it(this,this.reportUserActivity);var a=function e(t){if(t.screenX!==i||t.screenY!==r){i=t.screenX;r=t.screenY;n()}};var s=function e(){n();this.clearInterval(t);t=this.setInterval(n,250)};var o=function e(i){n();this.clearInterval(t)};this.on("mousedown",s);this.on("mousemove",a);this.on("mouseup",o);this.on("mouseleave",o);var l=this.getChild("controlBar");if(l&&!X&&!N){l.on("mouseenter",function(e){this.player().cache_.inactivityTimeout=this.player().options_.inactivityTimeout;this.player().options_.inactivityTimeout=0});l.on("mouseleave",function(e){this.player().options_.inactivityTimeout=this.player().cache_.inactivityTimeout})}this.on("keydown",n);this.on("keyup",n);var u;this.setInterval(function(){if(!this.userActivity_){return}this.userActivity_=false;this.userActive(true);this.clearTimeout(u);var e=this.options_.inactivityTimeout;if(e<=0){return}u=this.setTimeout(function(){if(!this.userActivity_){this.userActive(false)}},e)},250)};r.playbackRate=function e(t){if(t!==undefined){this.techCall_("setPlaybackRate",t);return}if(this.tech_&&this.tech_.featuresPlaybackRate){return this.cache_.lastPlaybackRate||this.techGet_("playbackRate")}return 1};r.defaultPlaybackRate=function e(t){if(t!==undefined){return this.techCall_("setDefaultPlaybackRate",t)}if(this.tech_&&this.tech_.featuresPlaybackRate){return this.techGet_("defaultPlaybackRate")}return 1};r.isAudio=function e(t){if(t!==undefined){this.isAudio_=!!t;return}return!!this.isAudio_};r.addTextTrack=function e(t,i,r){if(this.tech_){return this.tech_.addTextTrack(t,i,r)}};r.addRemoteTextTrack=function e(t,i){if(this.tech_){return this.tech_.addRemoteTextTrack(t,i)}};r.removeRemoteTextTrack=function e(t){if(t===void 0){t={}}var i=t,r=i.track;if(!r){r=t}if(this.tech_){return this.tech_.removeRemoteTextTrack(r)}};r.getVideoPlaybackQuality=function e(){return this.techGet_("getVideoPlaybackQuality")};r.videoWidth=function e(){return this.tech_&&this.tech_.videoWidth&&this.tech_.videoWidth()||0};r.videoHeight=function e(){return this.tech_&&this.tech_.videoHeight&&this.tech_.videoHeight()||0};r.language=function e(t){if(t===undefined){return this.language_}if(this.language_!==String(t).toLowerCase()){this.language_=String(t).toLowerCase();if(lt(this)){this.trigger("languagechange")}}};r.languages=function e(){return kt(t.prototype.options_.languages,this.languages_)};r.toJSON=function e(){var t=kt(this.options_);var i=t.tracks;t.tracks=[];for(var r=0;r<i.length;r++){var n=i[r];n=kt(n);n.player=undefined;t.tracks[r]=n}return t};r.createModal=function e(t,i){var r=this;i=i||{};i.content=t||"";var n=new ri(this,i);this.addChild(n);n.on("dispose",function(){r.removeChild(n)});n.open();return n};r.updateCurrentBreakpoint_=function e(){if(!this.responsive()){return}var t=this.currentBreakpoint();var i=this.currentWidth();for(var r=0;r<ya.length;r++){var n=ya[r];var a=this.breakpoints_[n];if(i<=a){if(t===n){return}if(t){this.removeClass(_a[t])}this.addClass(_a[n]);this.breakpoint_=n;break}}};r.removeCurrentBreakpoint_=function e(){var t=this.currentBreakpointClass();this.breakpoint_="";if(t){this.removeClass(t)}};r.breakpoints=function e(t){if(t===undefined){return C(this.breakpoints_)}this.breakpoint_="";this.breakpoints_=C({},ba,t);this.updateCurrentBreakpoint_();return C(this.breakpoints_)};r.responsive=function e(t){if(t===undefined){return this.responsive_}t=Boolean(t);var i=this.responsive_;if(t===i){return}this.responsive_=t;if(t){this.on("playerresize",this.updateCurrentBreakpoint_);this.updateCurrentBreakpoint_()}else{this.off("playerresize",this.updateCurrentBreakpoint_);this.removeCurrentBreakpoint_()}return t};r.currentBreakpoint=function e(){return this.breakpoint_};r.currentBreakpointClass=function e(){return _a[this.breakpoint_]||""};r.loadMedia=function e(t,i){var r=this;if(!t||typeof t!=="object"){return}this.reset();this.cache_.media=kt(t);var n=this.cache_.media,a=n.artwork,s=n.poster,o=n.src,l=n.textTracks;
1if(!a&&s){this.cache_.media.artwork=[{src:s,type:yr(s)}]}if(o){this.src(o)}if(s){this.poster(s)}if(Array.isArray(l)){l.forEach(function(e){return r.addRemoteTextTrack(e,false)})}this.ready(i)};r.getMedia=function e(){if(!this.cache_.media){var t=this.poster();var i=this.currentSources();var r=Array.prototype.map.call(this.remoteTextTracks(),function(e){return{kind:e.kind,label:e.label,language:e.language,src:e.src}});var n={src:i,textTracks:r};if(t){n.poster=t;n.artwork=[{src:n.poster,type:yr(n.poster)}]}return n}return kt(this.cache_.media)};t.getTagSettings=function e(t){var i={sources:[],tracks:[]};var r=he(t);var n=r["data-setup"];if(le(t,"vjs-fill")){r.fill=true}if(le(t,"vjs-fluid")){r.fluid=true}if(n!==null){var a=Vt(n||"{}"),s=a[0],o=a[1];if(s){b.error(s)}C(r,o)}C(i,r);if(t.hasChildNodes()){var l=t.childNodes;for(var u=0,c=l.length;u<c;u++){var d=l[u];var f=d.nodeName.toLowerCase();if(f==="source"){i.sources.push(he(d))}else if(f==="track"){i.tracks.push(he(d))}}}return i};r.flexNotSupported_=function e(){var t=c.createElement("i");return!("flexBasis"in t.style||"webkitFlexBasis"in t'),t[0].s.push('.style||"mozFlexBasis"in t.style||"msFlexBasis"in t.style||"msFlexOrder"in t.style)};r.debug=function e(t){if(t===undefined){return this.debugEnabled_}if(t){this.trigger("debugon");this.previousLogLevel_=this.log.level;this.log.level("debug");this.debugEnabled_=true}else{this.trigger("debugoff");this.log.level(this.previousLogLevel_);this.previousLogLevel_=undefined;this.debugEnabled_=false}};return t}(It);Qi.names.forEach(function(e){var t=Qi[e];Ta.prototype[t.getterName]=function(){if(this.tech_){return this.tech_[t.getterName]()}this[t.privateName]=this[t.privateName]||new t.ListClass;return this[t.privateName]}});Ta.prototype.crossorigin=Ta.prototype.crossOrigin;Ta.players={};var Sa=s.navigator;Ta.prototype.options_={techOrder:$i.defaultTechOrder_,html5:{},inactivityTimeout:2e3,playbackRates:[],liveui:false,children:["mediaLoader","posterImage","textTrackDisplay","loadingSpinner","bigPlayButton","liveTracker","controlBar","errorDisplay","textTrackSettings","resizeManager"],language:Sa&&(Sa.languages&&Sa.languages[0]||Sa.userLanguage||Sa.language)||"en",languages:{},notSupportedMessage:"No compatible source was found for this media.",fullscreen:{options:{navigationUI:"hide"}},breakpoints:{},responsive:false};["ended","seeking","seekable","networkState","readyState"].forEach(function(e){Ta.prototype[e]=function(){return this.techGet_(e)}});ma.forEach(function(e){Ta.prototype["handleTech"+Tt(e)+"_"]=function(){return this.trigger(e)}});It.registerComponent("Player",Ta);var ka=n(function(e){function t(i,r){e.exports=t=Object.setPrototypeOf||function e(t,i){t.__proto__=i;return t};return t(i,r)}e.exports=t});function Ea(){if(typeof Reflect==="undefined"||!Reflect.construct)return false;if(Reflect.construct.sham)return false;if(typeof Proxy==="function")return true;try{Date.prototype.toString.call(Reflect.construct(Date,[],function(){}));return true}catch(e){return false}}var ja=Ea;var wa=n(function(e){function t(i,r,n){if(ja()){e.exports=t=Reflect.construct}else{e.exports=t=function e(t,i,r){var n=[null];n.push.apply(n,i);var a=Function.bind.apply(t,n);var s=new a;if(r)ka(s,r.prototype);return s}}return t.apply(null,arguments)}e.exports=t});var Ca="plugin";var Ia="activePlugins_";var Aa={};var xa=function e(t){return Aa.hasOwnProperty(t)};var Pa=function e(t){return xa(t)?Aa[t]:undefined};var Oa=function e(t,i){t[Ia]=t[Ia]||{};t[Ia][i]=true};var La=function e(t,i,r){var n=(r?"before":"")+"pluginsetup";t.trigger(n,i);t.trigger(n+":"+i.name,i)};var Da=function e(t,i){var r=function e(){La(this,{name:t,plugin:i,instance:null},true);var r=i.apply(this,arguments);Oa(this,t);La(this,{name:t,plugin:i,instance:r});return r};
1Object.keys(i).forEach(function(e){r[e]=i[e]});return r};var Ra=function e(t,i){i.prototype.name=t;return function(){La(this,{name:t,plugin:i,instance:null},true);for(var e=arguments.length,r=new Array(e),n=0;n<e;n++){r[n]=arguments[n]}var a=wa(i,[this].concat(r));this[t]=function(){return a};La(this,a.getEventHash());return a}};var Na=function(){function e(t){if(this.constructor===e){throw new Error("Plugin must be sub-classed; not directly instantiated.")}this.player=t;if(!this.log){this.log=this.player.log.createLogger(this.name)}gt(this);delete this.trigger;_t(this,this.constructor.defaultState);Oa(t,this.name);this.dispose=it(this,this.dispose);t.on("dispose",this.dispose)}var t=e.prototype;t.version=function e(){return this.constructor.VERSION};t.getEventHash=function e(t){if(t===void 0){t={}}t.name=this.name;t.plugin=this.constructor;t.instance=this;return t};t.trigger=function e(t,i){if(i===void 0){i={}}return Je(this.eventBusEl_,t,this.getEventHash(i))};t.handleStateChanged=function e(t){};t.dispose=function e(){var t=this.name,i=this.player;this.trigger("dispose");this.off();i.off("dispose",this.dispose);i[Ia][t]=false;this.player=this.state=null;i[t]=Ra(t,Aa[t])};e.isBasic=function t(i){var r=typeof i==="string"?Pa(i):i;return typeof r==="function"&&!e.prototype.isPrototypeOf(r.prototype)};e.registerPlugin=function t(i,r){if(typeof i!=="string"){throw new Error(\'Illegal plugin name, "\'+i+\'", must be a string, was \'+typeof i+".")}if(xa(i)){b.warn(\'A plugin named "\'+i+\'" already exists. You may want to avoid re-registering plugins!\')}else if(Ta.prototype.hasOwnProperty(i)){throw new Error(\'Illegal plugin name, "\'+i+\'", cannot share a name with an existing player method!\')}if(typeof r!=="function"){throw new Error(\'Illegal plugin for "\'+i+\'", must be a function, was \'+typeof r+".")}Aa[i]=r;if(i!==Ca){if(e.isBasic(r)){Ta.prototype[i]=Da(i,r)}else{Ta.prototype[i]=Ra(i,r)}}return r};e.deregisterPlugin=function e(t){if(t===Ca){throw new Error("Cannot de-register base plugin.")}if(xa(t)){delete Aa[t];delete Ta.prototype[t]}};e.getPlugins=function e(t){if(t===void 0){t=Object.keys(Aa)}var i;t.forEach(function(e){var t=Pa(e);if(t){i=i||{};i[e]=t}});return i};e.getPluginVersion=function e(t){var i=Pa(t);return i&&i.VERSION||""};return e}();Na.getPlugin=Pa;Na.BASE_PLUGIN_NAME=Ca;Na.registerPlugin(Ca,Na);Ta.prototype.usingPlugin=function(e){return!!this[Ia]&&this[Ia][e]===true};Ta.prototype.hasPlugin=function(e){return!!xa(e)};function Ma(e,t){if(typeof t!=="function"&&t!==null){throw new TypeError("Super expression must either be null or a function")}e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:true,configurable:true}});if(t)ka(e,t)}var Ua=Ma;var Ba=function e(t,i){if(i===void 0){i={}}var r=function e(){t.apply(this,arguments)};var n={};if(typeof i==="object"){if(i.constructor!==Object.prototype.constructor){r=i.constructor}n=i}else if(typeof i==="function"){r=i}Ua(r,t);if(t){r.super_=t}for(var a in n){if(n.hasOwnProperty(a)){r.prototype[a]=n[a]}}return r};var Fa=function e(t){return t.indexOf("#")===0?t.slice(1):t};function Ha(e,t,i){var r=Ha.getPlayer(e);if(r){if(t){b.warn(\'Player "\'+e+\'" is already initialised. Options will not be applied.\')}if(i){r.ready(i)}return r}var n=typeof e==="string"?Ie("#"+Fa(e)):e;if(!ie(n)){throw new TypeError("The element or ID supplied is not valid. (videojs)")}if(!n.ownerDocument.defaultView||!n.ownerDocument.body.contains(n)){b.warn("The element supplied is not included in the DOM")}t=t||{};Ha.hooks("beforesetup").forEach(function(e){var i=e(n,kt(t));if(!I(i)||Array.isArray(i)){b.error("please return an object in beforesetup hooks");return}t=kt(t,i)});var a=It.getComponent("Player");r=new a(n,t,i);Ha.hooks("setup").forEach(function(e){return e(r)});return r}Ha.hooks_={};Ha.hooks=function(e,t){Ha.hooks_[e]=Ha.hooks_[e]||[];if(t){Ha.hooks_[e]=Ha.hooks_[e].concat(t)}return Ha.hooks_[e]};Ha.hook=function(e,t){Ha.hooks(e,t)};Ha.hookOnce=function(e,t){Ha.hooks(e,[].concat(t).map(function(t){var i=function i(){Ha.removeHook(e,i);return t.apply(void 0,arguments)};return i}))};
1Ha.removeHook=function(e,t){var i=Ha.hooks(e).indexOf(t);if(i<=-1){return false}Ha.hooks_[e]=Ha.hooks_[e].slice();Ha.hooks_[e].splice(i,1);return true};if(s.VIDEOJS_NO_DYNAMIC_STYLE!==true&&te()){var Va=Ie(".vjs-styles-defaults");if(!Va){Va=Ne("vjs-styles-defaults");var qa=Ie("head");if(qa){qa.insertBefore(Va,qa.firstChild)}Me(Va,"\\n      .video-js {\\n        width: 300px;\\n        height: 150px;\\n      }\\n\\n      .vjs-fluid {\\n        padding-top: 56.25%\\n      }\\n    ")}}De(1,Ha);Ha.VERSION=i;Ha.options=Ta.prototype.options_;Ha.getPlayers=function(){return Ta.players};Ha.getPlayer=function(e){var t=Ta.players;var i;if(typeof e==="string"){var r=Fa(e);var n=t[r];if(n){return n}i=Ie("#"+r)}else{i=e}if(ie(i)){var a=i,s=a.player,o=a.playerId;if(s||t[o]){return s||t[o]}}};Ha.getAllPlayers=function(){return Object.keys(Ta.players).map(function(e){return Ta.players[e]}).filter(Boolean)};Ha.players=Ta.players;Ha.getComponent=It.getComponent;Ha.registerComponent=function(e,t){if($i.isTech(t)){b.warn("The "+e+" tech was registered as a component. It should instead be registered using videojs.registerTech(name, tech)")}It.registerComponent.call(It,e,t)};Ha.getTech=$i.getTech;Ha.registerTech=$i.registerTech;Ha.use=rr;Object.defineProperty(Ha,"middleware",{value:{},writeable:false,enumerable:true});Object.defineProperty(Ha.middleware,"TERMINATOR",{value:ir,writeable:false,enumerable:true});Ha.browser=J;Ha.TOUCH_ENABLED=G;Ha.extend=Ba;Ha.mergeOptions=kt;Ha.bind=it;Ha.registerPlugin=Na.registerPlugin;Ha.deregisterPlugin=Na.deregisterPlugin;Ha.plugin=function(e,t){b.warn("videojs.plugin() is deprecated; use videojs.registerPlugin() instead");return Na.registerPlugin(e,t)};Ha.getPlugins=Na.getPlugins;Ha.getPlugin=Na.getPlugin;Ha.getPluginVersion=Na.getPluginVersion;Ha.addLanguage=function(e,t){var i;e=(""+e).toLowerCase();Ha.options.languages=kt(Ha.options.languages,(i={},i[e]=t,i));return Ha.options.languages[e]};Ha.log=b;Ha.createLogger=T;Ha.createTimeRange=Ha.createTimeRanges=Ut;Ha.formatTime=Fr;Ha.setFormatTime=Ur;Ha.resetFormatTime=Br;Ha.parseUrl=yi;Ha.isCrossOrigin=Ti;Ha.EventTarget=at;Ha.on=Xe;Ha.one=Ze;Ha.off=Qe;Ha.trigger=Je;Ha.xhr=Ai;Ha.TextTrack=Fi;Ha.AudioTrack=Hi;Ha.VideoTrack=Vi;["isEl","isTextNode","createEl","hasClass","addClass","removeClass","toggleClass","setAttributes","getAttributes","emptyEl","appendContent","insertContent"].forEach(function(e){Ha[e]=function(){b.warn("videojs."+e+"() is deprecated; use videojs.dom."+e+"() instead");return xe[e].apply(null,arguments)}});Ha.computedStyle=x;Ha.dom=xe;Ha.url=Si;Ha.defineLazyProperty=ha;return Ha});var s=a.dedupeVideojs(e.videojs,n);var o=new a({accountId:"800000612001",adConfigId:"",autoplay:"",css:{},embedId:"default",media:{poster:{}},plugins:[{name:"perSourceBehaviors",autoInit:true},{name:"contextmenu",autoInit:true},{name:"contextmenuUI",autoInit:true},{name:"bcAnalytics",autoInit:true,options:{accountId:"800000612001",embedId:"default",platformVersion:"6.48.5",playerId:"cENsmHkkB",playerName:"Age of Aerospace Video Player"}},{name:"errors",autoInit:true,options:{}},{name:"catalog",autoInit:true,options:{accountId:"800000612001",policyKey:"BCpkADawqM3kQznp_M3hiOMrHCRdUKH2qFq-VEa0K7OcgCBIMYHkK2lYT-NZr8MqP1Ax_dljZWbcLrY0JWX2G2CmUC7t6fB0-zJ3GnYpQ3d61EypC1-gYsamlrE"}},{name:"dock",autoInit:false},{name:"playlist",autoInit:false},{name:"thumbnails",autoInit:true}],contextMenu:{},playerId:"cENsmHkkB",videoCloud:{policy_key:"BCpkADawqM3kQznp_M3hiOMrHCRdUKH2qFq-VEa0K7OcgCBIMYHkK2lYT-NZr8MqP1Ax_dljZWbcLrY0JWX2G2CmUC7t6fB0-zJ3GnYpQ3d61EypC1-gYsamlrE"},skin:"luna",playersCDN:"//players.brightcove.net",responsive:true,liveui:true,controlBar:{},version:"6.48.5"},{});if(!s.getTech("flash")){(function(e,t){typeof exports==="object"&&typeof module!=="undefined"?module.exports=t(require("video.js")):typeof i==="function"&&i.amd?i(["video.js"],t):e.videojsFlash=t(e.videojs)})(this,function(t){"use strict";t=t&&t.hasOwnProperty("default")?t["default"]:t;var i="5.4.1";var r="2.1.0";function n(e){e.streamingFormats={"rtmp/mp4":"MP4","rtmp/flv":"FLV"};e.streamFromParts=function(e,t){return e+"&"+t};e.streamToParts=function(e){var t={connection:"",stream:""};if(!e){return t}var i=e.search(/&(?!\\w+=)/);var r=void 0;if(i!==-1){r=i+1}else{i=r=e.lastIndexOf("/")+1;if(i===0){i=r=e.length}}t.connection=e.substring(0,i);t.stream=e.substring(r,e.length);return t};e.isStreamingType=function(t){return t in e.streamingFormats};e.RTMP_RE=/^rtmp[set]?:\\/\\//i;e.isStreamingSrc=function(t){return e.RTMP_RE.test(t)};e.rtmpSourceHandler={};e.rtmpSourceHandler.canPlayType=function(t){if(e.isStreamingType(t)){return"maybe"}return""};e.rtmpSourceHandler.canHandleSource=function(t,i){var r=e.rtmpSourceHandler.canPlayType(t.type);if(r){return r}if(e.isStreamingSrc(t.src)){return"maybe"}return""};e.rtmpSourceHandler.handleSource=function(t,i,r){var n=e.streamToParts(t.src);
1i.setRtmpConnection(n.connection);i.setRtmpStream(n.stream)};e.registerSourceHandler(e.rtmpSourceHandler);return e}var a=typeof e!=="undefined"?e:typeof global!=="undefined"?global:typeof self!=="undefined"?self:{};var s;if(typeof e!=="undefined"){s=e}else if(typeof a!=="undefined"){s=a}else if(typeof self!=="undefined"){s=self}else{s={}}var o=s;var l=function(e,t){if(!(e instanceof t)){throw new TypeError("Cannot call a class as a function")}};var u=function(e,t){if(typeof t!=="function"&&t!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof t)}e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:false,writable:true,configurable:true}});if(t)Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t};var c=function(e,t){if(!e){throw new ReferenceError("this hasn\'t been initialised - super() hasn\'t been called")}return t&&(typeof t==="object"||typeof t==="function")?t:e};var d=t.getComponent("Tech");var f=t.dom;var h=t.url;var p=t.createTimeRange;var v=t.mergeOptions;var m=o&&o.navigator||{};var g=function(e){u(t,e);function t(i,r){l(this,t);var n=c(this,e.call(this,i,r));if(i.source){n.ready(function(){this.setSource(i.source)},true)}if(i.startTime){n.ready(function(){this.load();this.play();this.currentTime(i.startTime)},true)}o.videojs=o.videojs||{};o.videojs.Flash=o.videojs.Flash||{};o.videojs.Flash.onReady=t.onReady;o.videojs.Flash.onEvent=t.onEvent;o.videojs.Flash.onError=t.onError;n.on("seeked",function(){this.lastSeekTarget_=undefined});return n}t.prototype.createEl=function e(){var r=this.options_;if(!r.swf){r.swf="https://vjs.zencdn.net/swf/"+i+"/video-js.swf"}var n=r.techId;var a=v({readyFunction:"videojs.Flash.onReady",eventProxyFunction:"videojs.Flash.onEvent",errorEventProxyFunction:"videojs.Flash.onError",autoplay:r.autoplay,preload:r.preload,loop:r.loop,muted:r.muted},r.flashVars);var s=v({wmode:"opaque",bgcolor:"#000000"},r.params);var o=v({id:n,name:n,class:"vjs-tech"},r.attributes);this.el_=t.embed(r.swf,a,s,o);this.el_.tech=this;return this.el_};t.prototype.play=function e(){if(this.ended()){this.setCurrentTime(0)}this.el_.vjs_play()};t.prototype.pause=function e(){this.el_.vjs_pause()};t.prototype.src=function e(t){if(t===undefined){return this.currentSrc()}return this.setSrc(t)};t.prototype.setSrc=function e(t){var i=this;t=h.getAbsoluteURL(t);this.el_.vjs_src(t);if(this.autoplay()){this.setTimeout(function(){return i.play()},0)}};t.prototype.seeking=function e(){return this.lastSeekTarget_!==undefined};t.prototype.setCurrentTime=function t(i){var r=this.seekable();if(r.length){i=i>r.start(0)?i:r.start(0);i=i<r.end(r.length-1)?i:r.end(r.length-1);this.lastSeekTarget_=i;this.trigger("seeking");this.el_.vjs_setProperty("currentTime",i);e.prototype.setCurrentTime.call(this)}};t.prototype.currentTime=function e(){if(this.seeking()){return this.lastSeekTarget_||0}return this.el_.vjs_getProperty("currentTime")};t.prototype.currentSrc=function e(){if(this.currentSource_){return this.currentSource_.src}return this.el_.vjs_getProperty("currentSrc")};t.prototype.duration=function e(){if(this.readyState()===0){return NaN}var e=this.el_.vjs_getProperty("duration");return e>=0?e:Infinity};t.prototype.load=function e(){this.el_.vjs_load()};t.prototype.poster=function e(){this.el_.vjs_getProperty("poster")};t.prototype.setPoster=function e(){};t.prototype.seekable=function e(){var t=this.duration();if(t===0){return p()}return p(0,t)};t.prototype.buffered=function e(){var t=this.el_.vjs_getProperty("buffered");if(t.length===0){return p()}return p(t[0][0],t[0][1])};t.prototype.supportsFullScreen=function e(){return false};t.prototype.enterFullScreen=function e(){return false};t.prototype.getVideoPlaybackQuality=function e(){var t=this.el_.vjs_getProperty("getVideoPlaybackQuality");if(o.performance&&typeof o.performance.now==="function"){t.creationTime=o.performance.now()}else if(o.performance&&o.performance.timing&&typeof o.performance.timing.navigationStart==="number"){t.creationTime=o.Date.now()-o.performance.timing.navigationStart}return t};return t}(d);var y=["rtmpConnection","rtmpStream","preload","defaultPlaybackRate","playbackRate","autoplay","loop","controls","volume","muted","defaultMuted"];var _=["networkState","readyState","initialTime","startOffsetTime","paused","ended","videoWidth","videoHeight"];var b=g.prototype;function T(e){var t=e.charAt(0).toUpperCase()+e.slice(1);b["set"+t]=function(t){return this.el_.vjs_setProperty(e,t)}}function S(e){b[e]=function(){return this.el_.vjs_getProperty(e)}}for(var k=0;k<y.length;k++){S(y[k]);T(y[k])}for(var E=0;E<_.length;E++){S(_[E])}g.isSupported=function(){if(t.browser.IS_CHROME&&!t.browser.IS_ANDROID||t.browser.IS_SAFARI&&!t.'),t[1].s.push('.style||"mozFlexBasis"in t.style||"msFlexBasis"in t.style||"msFlexOrder"in t.style)}
1;r.debug=function e(t){if(t===undefined){return this.debugEnabled_}if(t){this.trigger("debugon");this.previousLogLevel_=this.log.level;this.log.level("debug");this.debugEnabled_=true}else{this.trigger("debugoff");this.log.level(this.previousLogLevel_);this.previousLogLevel_=undefined;this.debugEnabled_=false}};return t}(It);Qi.names.forEach(function(e){var t=Qi[e];Ta.prototype[t.getterName]=function(){if(this.tech_){return this.tech_[t.getterName]()}this[t.privateName]=this[t.privateName]||new t.ListClass;return this[t.privateName]}});Ta.prototype.crossorigin=Ta.prototype.crossOrigin;Ta.players={};var Sa=s.navigator;Ta.prototype.options_={techOrder:$i.defaultTechOrder_,html5:{},inactivityTimeout:2e3,playbackRates:[],liveui:false,children:["mediaLoader","posterImage","textTrackDisplay","loadingSpinner","bigPlayButton","liveTracker","controlBar","errorDisplay","textTrackSettings","resizeManager"],language:Sa&&(Sa.languages&&Sa.languages[0]||Sa.userLanguage||Sa.language)||"en",languages:{},notSupportedMessage:"No compatible source was found for this media.",fullscreen:{options:{navigationUI:"hide"}},breakpoints:{},responsive:false};["ended","seeking","seekable","networkState","readyState"].forEach(function(e){Ta.prototype[e]=function(){return this.techGet_(e)}});ma.forEach(function(e){Ta.prototype["handleTech"+Tt(e)+"_"]=function(){return this.trigger(e)}});It.registerComponent("Player",Ta);var ka=n(function(e){function t(i,r){e.exports=t=Object.setPrototypeOf||function e(t,i){t.__proto__=i;return t};return t(i,r)}e.exports=t});function Ea(){if(typeof Reflect==="undefined"||!Reflect.construct)return false;if(Reflect.construct.sham)return false;if(typeof Proxy==="function")return true;try{Date.prototype.toString.call(Reflect.construct(Date,[],function(){}));return true}catch(e){return false}}var ja=Ea;var wa=n(function(e){function t(i,r,n){if(ja()){e.exports=t=Reflect.construct}else{e.exports=t=function e(t,i,r){var n=[null];n.push.apply(n,i);var a=Function.bind.apply(t,n);var s=new a;if(r)ka(s,r.prototype);return s}}return t.apply(null,arguments)}e.exports=t});var Ca="plugin";var Ia="activePlugins_";var Aa={};var xa=function e(t){return Aa.hasOwnProperty(t)};var Pa=function e(t){return xa(t)?Aa[t]:undefined};var Oa=function e(t,i){t[Ia]=t[Ia]||{};t[Ia][i]=true};var La=function e(t,i,r){var n=(r?"before":"")+"pluginsetup";t.trigger(n,i);t.trigger(n+":"+i.name,i)};var Da=function e(t,i){var r=function e(){La(this,{name:t,plugin:i,instance:null},true);var r=i.apply(this,arguments);Oa(this,t);La(this,{name:t,plugin:i,instance:r});return r};
1Object.keys(i).forEach(function(e){r[e]=i[e]});return r};var Ra=function e(t,i){i.prototype.name=t;return function(){La(this,{name:t,plugin:i,instance:null},true);for(var e=arguments.length,r=new Array(e),n=0;n<e;n++){r[n]=arguments[n]}var a=wa(i,[this].concat(r));this[t]=function(){return a};La(this,a.getEventHash());return a}};var Na=function(){function e(t){if(this.constructor===e){throw new Error("Plugin must be sub-classed; not directly instantiated.")}this.player=t;if(!this.log){this.log=this.player.log.createLogger(this.name)}gt(this);delete this.trigger;_t(this,this.constructor.defaultState);Oa(t,this.name);this.dispose=it(this,this.dispose);t.on("dispose",this.dispose)}var t=e.prototype;t.version=function e(){return this.constructor.VERSION};t.getEventHash=function e(t){if(t===void 0){t={}}t.name=this.name;t.plugin=this.constructor;t.instance=this;return t};t.trigger=function e(t,i){if(i===void 0){i={}}return Je(this.eventBusEl_,t,this.getEventHash(i))};t.handleStateChanged=function e(t){};t.dispose=function e(){var t=this.name,i=this.player;this.trigger("dispose");this.off();i.off("dispose",this.dispose);i[Ia][t]=false;this.player=this.state=null;i[t]=Ra(t,Aa[t])};e.isBasic=function t(i){var r=typeof i==="string"?Pa(i):i;return typeof r==="function"&&!e.prototype.isPrototypeOf(r.prototype)};e.registerPlugin=function t(i,r){if(typeof i!=="string"){throw new Error(\'Illegal plugin name, "\'+i+\'", must be a string, was \'+typeof i+".")}if(xa(i)){b.warn(\'A plugin named "\'+i+\'" already exists. You may want to avoid re-registering plugins!\')}else if(Ta.prototype.hasOwnProperty(i)){throw new Error(\'Illegal plugin name, "\'+i+\'", cannot share a name with an existing player method!\')}if(typeof r!=="function"){throw new Error(\'Illegal plugin for "\'+i+\'", must be a function, was \'+typeof r+".")}Aa[i]=r;if(i!==Ca){if(e.isBasic(r)){Ta.prototype[i]=Da(i,r)}else{Ta.prototype[i]=Ra(i,r)}}return r};e.deregisterPlugin=function e(t){if(t===Ca){throw new Error("Cannot de-register base plugin.")}if(xa(t)){delete Aa[t];delete Ta.prototype[t]}};e.getPlugins=function e(t){if(t===void 0){t=Object.keys(Aa)}var i;t.forEach(function(e){var t=Pa(e);if(t){i=i||{};i[e]=t}});return i};e.getPluginVersion=function e(t){var i=Pa(t);return i&&i.VERSION||""};return e}();Na.getPlugin=Pa;Na.BASE_PLUGIN_NAME=Ca;Na.registerPlugin(Ca,Na);Ta.prototype.usingPlugin=function(e){return!!this[Ia]&&this[Ia][e]===true};Ta.prototype.hasPlugin=function(e){return!!xa(e)};function Ma(e,t){if(typeof t!=="function"&&t!==null){throw new TypeError("Super expression must either be null or a function")}e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:true,configurable:true}});if(t)ka(e,t)}var Ua=Ma;var Ba=function e(t,i){if(i===void 0){i={}}var r=function e(){t.apply(this,arguments)};var n={};if(typeof i==="object"){if(i.constructor!==Object.prototype.constructor){r=i.constructor}n=i}else if(typeof i==="function"){r=i}Ua(r,t);if(t){r.super_=t}for(var a in n){if(n.hasOwnProperty(a)){r.prototype[a]=n[a]}}return r};var Fa=function e(t){return t.indexOf("#")===0?t.slice(1):t};function Ha(e,t,i){var r=Ha.getPlayer(e);if(r){if(t){b.warn(\'Player "\'+e+\'" is already initialised. Options will not be applied.\')}if(i){r.ready(i)}return r}var n=typeof e==="string"?Ie("#"+Fa(e)):e;if(!ie(n)){throw new TypeError("The element or ID supplied is not valid. (videojs)")}if(!n.ownerDocument.defaultView||!n.ownerDocument.body.contains(n)){b.warn("The element supplied is not included in the DOM")}t=t||{};Ha.hooks("beforesetup").forEach(function(e){var i=e(n,kt(t));if(!I(i)||Array.isArray(i)){b.error("please return an object in beforesetup hooks");return}t=kt(t,i)});var a=It.getComponent("Player");r=new a(n,t,i);Ha.hooks("setup").forEach(function(e){return e(r)});return r}Ha.hooks_={};Ha.hooks=function(e,t){Ha.hooks_[e]=Ha.hooks_[e]||[];if(t){Ha.hooks_[e]=Ha.hooks_[e].concat(t)}return Ha.hooks_[e]};Ha.hook=function(e,t){Ha.hooks(e,t)};Ha.hookOnce=function(e,t){Ha.hooks(e,[].concat(t).map(function(t){var i=function i(){Ha.removeHook(e,i);return t.apply(void 0,arguments)};return i}))};
1Ha.removeHook=function(e,t){var i=Ha.hooks(e).indexOf(t);if(i<=-1){return false}Ha.hooks_[e]=Ha.hooks_[e].slice();Ha.hooks_[e].splice(i,1);return true};if(s.VIDEOJS_NO_DYNAMIC_STYLE!==true&&te()){var Va=Ie(".vjs-styles-defaults");if(!Va){Va=Ne("vjs-styles-defaults");var qa=Ie("head");if(qa){qa.insertBefore(Va,qa.firstChild)}Me(Va,"\\n      .video-js {\\n        width: 300px;\\n        height: 150px;\\n      }\\n\\n      .vjs-fluid {\\n        padding-top: 56.25%\\n      }\\n    ")}}De(1,Ha);Ha.VERSION=i;Ha.options=Ta.prototype.options_;Ha.getPlayers=function(){return Ta.players};Ha.getPlayer=function(e){var t=Ta.players;var i;if(typeof e==="string"){var r=Fa(e);var n=t[r];if(n){return n}i=Ie("#"+r)}else{i=e}if(ie(i)){var a=i,s=a.player,o=a.playerId;if(s||t[o]){return s||t[o]}}};Ha.getAllPlayers=function(){return Object.keys(Ta.players).map(function(e){return Ta.players[e]}).filter(Boolean)};Ha.players=Ta.players;Ha.getComponent=It.getComponent;Ha.registerComponent=function(e,t){if($i.isTech(t)){b.warn("The "+e+" tech was registered as a component. It should instead be registered using videojs.registerTech(name, tech)")}It.registerComponent.call(It,e,t)};Ha.getTech=$i.getTech;Ha.registerTech=$i.registerTech;Ha.use=rr;Object.defineProperty(Ha,"middleware",{value:{},writeable:false,enumerable:true});Object.defineProperty(Ha.middleware,"TERMINATOR",{value:ir,writeable:false,enumerable:true});Ha.browser=J;Ha.TOUCH_ENABLED=G;Ha.extend=Ba;Ha.mergeOptions=kt;Ha.bind=it;Ha.registerPlugin=Na.registerPlugin;Ha.deregisterPlugin=Na.deregisterPlugin;Ha.plugin=function(e,t){b.warn("videojs.plugin() is deprecated; use videojs.registerPlugin() instead");return Na.registerPlugin(e,t)};Ha.getPlugins=Na.getPlugins;Ha.getPlugin=Na.getPlugin;Ha.getPluginVersion=Na.getPluginVersion;Ha.addLanguage=function(e,t){var i;e=(""+e).toLowerCase();Ha.options.languages=kt(Ha.options.languages,(i={},i[e]=t,i));return Ha.options.languages[e]};Ha.log=b;Ha.createLogger=T;Ha.createTimeRange=Ha.createTimeRanges=Ut;Ha.formatTime=Fr;Ha.setFormatTime=Ur;Ha.resetFormatTime=Br;Ha.parseUrl=yi;Ha.isCrossOrigin=Ti;Ha.EventTarget=at;Ha.on=Xe;Ha.one=Ze;Ha.off=Qe;Ha.trigger=Je;Ha.xhr=Ai;Ha.TextTrack=Fi;Ha.AudioTrack=Hi;Ha.VideoTrack=Vi;["isEl","isTextNode","createEl","hasClass","addClass","removeClass","toggleClass","setAttributes","getAttributes","emptyEl","appendContent","insertContent"].forEach(function(e){Ha[e]=function(){b.warn("videojs."+e+"() is deprecated; use videojs.dom."+e+"() instead");return xe[e].apply(null,arguments)}});Ha.computedStyle=x;Ha.dom=xe;Ha.url=Si;Ha.defineLazyProperty=ha;return Ha});var s=a.dedupeVideojs(e.videojs,n);var o=new a({vhs:{experimentalBufferBasedABR:true},accountId:"800000612001",adConfigId:"",autoplay:"",css:{},embedId:"default",media:{poster:{}},plugins:[{name:"perSourceBehaviors",autoInit:true},{name:"contextmenu",autoInit:true},{name:"contextmenuUI",autoInit:true},{name:"bcAnalytics",autoInit:true,options:{accountId:"800000612001",embedId:"default",platformVersion:"6.48.5-expabr.1",playerId:"cENsmHkkB",playerName:"Age of Aerospace Video Player"}},{name:"errors",autoInit:true,options:{}},{name:"catalog",autoInit:true,options:{accountId:"800000612001",policyKey:"BCpkADawqM3kQznp_M3hiOMrHCRdUKH2qFq-VEa0K7OcgCBIMYHkK2lYT-NZr8MqP1Ax_dljZWbcLrY0JWX2G2CmUC7t6fB0-zJ3GnYpQ3d61EypC1-gYsamlrE"}},{name:"dock",autoInit:false},{name:"playlist",autoInit:false},{name:"thumbnails",autoInit:true}],contextMenu:{},playerId:"cENsmHkkB",videoCloud:{policy_key:"BCpkADawqM3kQznp_M3hiOMrHCRdUKH2qFq-VEa0K7OcgCBIMYHkK2lYT-NZr8MqP1Ax_dljZWbcLrY0JWX2G2CmUC7t6fB0-zJ3GnYpQ3d61EypC1-gYsamlrE"},skin:"luna",playersCDN:"//players.brightcove.net",responsive:true,liveui:true,controlBar:{},version:"6.48.5-expabr.1"},{});if(!s.getTech("flash")){(function(e,t){typeof exports==="object"&&typeof module!=="undefined"?module.exports=t(require("video.js")):typeof i==="function"&&i.amd?i(["video.js"],t):e.videojsFlash=t(e.videojs)})(this,function(t){"use strict";t=t&&t.hasOwnProperty("default")?t["default"]:t;var i="5.4.1";var r="2.1.0";function n(e){e.streamingFormats={"rtmp/mp4":"MP4","rtmp/flv":"FLV"};e.streamFromParts=function(e,t){return e+"&"+t};e.streamToParts=function(e){var t={connection:"",stream:""};if(!e){return t}var i=e.search(/&(?!\\w+=)/);var r=void 0;if(i!==-1){r=i+1}else{i=r=e.lastIndexOf("/")+1;if(i===0){i=r=e.length}}t.connection=e.substring(0,i);t.stream=e.substring(r,e.length);return t};e.isStreamingType=function(t){return t in e.streamingFormats};e.RTMP_RE=/^rtmp[set]?:\\/\\//i;e.isStreamingSrc=function(t){return e.RTMP_RE.test(t)};e.rtmpSourceHandler={};e.rtmpSourceHandler.canPlayType=function(t){if(e.isStreamingType(t)){return"maybe"}return""};e.rtmpSourceHandler.canHandleSource=function(t,i){var r=e.rtmpSourceHandler.canPlayType(t.type);if(r){return r}if(e.isStreamingSrc(t.src)){return"maybe"}return""};e.rtmpSourceHandler.handleSource=function(t,i,r){var n=e.streamToParts(t.src);
1i.setRtmpConnection(n.connection);i.setRtmpStream(n.stream)};e.registerSourceHandler(e.rtmpSourceHandler);return e}var a=typeof e!=="undefined"?e:typeof global!=="undefined"?global:typeof self!=="undefined"?self:{};var s;if(typeof e!=="undefined"){s=e}else if(typeof a!=="undefined"){s=a}else if(typeof self!=="undefined"){s=self}else{s={}}var o=s;var l=function(e,t){if(!(e instanceof t)){throw new TypeError("Cannot call a class as a function")}};var u=function(e,t){if(typeof t!=="function"&&t!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof t)}e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:false,writable:true,configurable:true}});if(t)Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t};var c=function(e,t){if(!e){throw new ReferenceError("this hasn\'t been initialised - super() hasn\'t been called")}return t&&(typeof t==="object"||typeof t==="function")?t:e};var d=t.getComponent("Tech");var f=t.dom;var h=t.url;var p=t.createTimeRange;var v=t.mergeOptions;var m=o&&o.navigator||{};var g=function(e){u(t,e);function t(i,r){l(this,t);var n=c(this,e.call(this,i,r));if(i.source){n.ready(function(){this.setSource(i.source)},true)}if(i.startTime){n.ready(function(){this.load();this.play();this.currentTime(i.startTime)},true)}o.videojs=o.videojs||{};o.videojs.Flash=o.videojs.Flash||{};o.videojs.Flash.onReady=t.onReady;o.videojs.Flash.onEvent=t.onEvent;o.videojs.Flash.onError=t.onError;n.on("seeked",function(){this.lastSeekTarget_=undefined});return n}t.prototype.createEl=function e(){var r=this.options_;if(!r.swf){r.swf="https://vjs.zencdn.net/swf/"+i+"/video-js.swf"}var n=r.techId;var a=v({readyFunction:"videojs.Flash.onReady",eventProxyFunction:"videojs.Flash.onEvent",errorEventProxyFunction:"videojs.Flash.onError",autoplay:r.autoplay,preload:r.preload,loop:r.loop,muted:r.muted},r.flashVars);var s=v({wmode:"opaque",bgcolor:"#000000"},r.params);var o=v({id:n,name:n,class:"vjs-tech"},r.attributes);this.el_=t.embed(r.swf,a,s,o);this.el_.tech=this;return this.el_};t.prototype.play=function e(){if(this.ended()){this.setCurrentTime(0)}this.el_.vjs_play()};t.prototype.pause=function e(){this.el_.vjs_pause()};t.prototype.src=function e(t){if(t===undefined){return this.currentSrc()}return this.setSrc(t)};t.prototype.setSrc=function e(t){var i=this;t=h.getAbsoluteURL(t);this.el_.vjs_src(t);if(this.autoplay()){this.setTimeout(function(){return i.play()},0)}};t.prototype.seeking=function e(){return this.lastSeekTarget_!==undefined};t.prototype.setCurrentTime=function t(i){var r=this.seekable();if(r.length){i=i>r.start(0)?i:r.start(0);i=i<r.end(r.length-1)?i:r.end(r.length-1);this.lastSeekTarget_=i;this.trigger("seeking");this.el_.vjs_setProperty("currentTime",i);e.prototype.setCurrentTime.call(this)}};t.prototype.currentTime=function e(){if(this.seeking()){return this.lastSeekTarget_||0}return this.el_.vjs_getProperty("currentTime")};t.prototype.currentSrc=function e(){if(this.currentSource_){return this.currentSource_.src}return this.el_.vjs_getProperty("currentSrc")};t.prototype.duration=function e(){if(this.readyState()===0){return NaN}var e=this.el_.vjs_getProperty("duration");return e>=0?e:Infinity};t.prototype.load=function e(){this.el_.vjs_load()};t.prototype.poster=function e(){this.el_.vjs_getProperty("poster")};t.prototype.setPoster=function e(){};t.prototype.seekable=function e(){var t=this.duration();if(t===0){return p()}return p(0,t)};t.prototype.buffered=function e(){var t=this.el_.vjs_getProperty("buffered");if(t.length===0){return p()}return p(t[0][0],t[0][1])};t.prototype.supportsFullScreen=function e(){return false};t.prototype.enterFullScreen=function e(){return false};t.prototype.getVideoPlaybackQuality=function e(){var t=this.el_.vjs_getProperty("getVideoPlaybackQuality");if(o.performance&&typeof o.performance.now==="function"){t.creationTime=o.performance.now()}else if(o.performance&&o.performance.timing&&typeof o.performance.timing.navigationStart==="number"){t.creationTime=o.Date.now()-o.performance.timing.navigationStart}return t};return t}(d);var y=["rtmpConnection","rtmpStream","preload","defaultPlaybackRate","playbackRate","autoplay","loop","controls","volume","muted","defaultMuted"];var _=["networkState","readyState","initialTime","startOffsetTime","paused","ended","videoWidth","videoHeight"];var b=g.prototype;function T(e){var t=e.charAt(0).toUpperCase()+e.slice(1);b["set"+t]=function(t){return this.el_.vjs_setProperty(e,t)}}function S(e){b[e]=function(){return this.el_.vjs_getProperty(e)}}for(var k=0;k<y.length;k++){S(y[k]);T(y[k])}for(var E=0;E<_.length;E++){S(_[E])}g.isSupported=function(){if(t.browser.IS'),t[0].s.push('browser.IS_IOS){return true}return g.version()[0]>=10};d.withSourceHandlers(g);g.nativeSourceHandler={};g.nativeSourceHandler.canPlayType=function(e){if(e in g.formats){return"maybe"}return""};g.nativeSourceHandler.canHandleSource=function(e,t){var i=void 0;function r(e){var t=h.getFileExtension(e);if(t){return"video/"+t}return""}if(!e.type){i=r(e.src)}else{i=e.type.replace(/;.*/,"").toLowerCase()}return g.nativeSourceHandler.canPlayType(i)};g.nativeSourceHandler.handleSource=function(e,t,i){t.setSrc(e.src)};g.nativeSourceHandler.dispose=function(){};g.registerSourceHandler(g.nativeSourceHandler);g.formats={"video/flv":"FLV","video/x-flv":"FLV","video/mp4":"MP4","video/m4v":"MP4"};g.onReady=function(e){var t=f.$("#"+e);var i=t&&t.tech;if(i&&i.el()){g.checkReady(i)}};g.checkReady=function(e){if(!e.el()){return}
1if(e.el().vjs_getProperty){e.triggerReady()}else{this.setTimeout(function(){g.checkReady(e)},50)}};g.onEvent=function(e,t){var i=f.$("#"+e).tech;var r=Array.prototype.slice.call(arguments,2);i.setTimeout(function(){i.trigger(t,r)},1)};g.onError=function(e,t){var i=f.$("#"+e).tech;if(t==="srcnotfound"){return i.error(4)}if(typeof t==="string"){i.error("FLASH: "+t)}else{t.origin="flash";i.error(t)}};g.version=function(){var e="0,0,0";try{e=new o.ActiveXObject("ShockwaveFlash.ShockwaveFlash").GetVariable("$version").replace(/\\D+/g,",").match(/^,?(.+),?$/)[1]}catch(t){try{if(m.mimeTypes["application/x-shockwave-flash"].enabledPlugin){e=(m.plugins["Shockwave Flash 2.0"]||m.plugins["Shockwave Flash"]).description.replace(/\\D+/g,",").match(/^,?(.+),?$/)[1]}}catch(e){}}return e.split(",")};g.embed=function(e,t,i,r){var n=g.getEmbedCode(e,t,i,r);var a=f.createEl("div",{innerHTML:n}).childNodes[0];return a};g.getEmbedCode=function(e,t,i,r){var n=\'<object type="application/x-shockwave-flash" \';var a="";var s="";var o="";if(t){Object.getOwnPropertyNames(t).forEach(function(e){a+=e+"="+t[e]+"&amp;"})}i=v({movie:e,flashvars:a,allowScriptAccess:"always",allowNetworking:"all"},i);Object.getOwnPropertyNames(i).forEach(function(e){s+=\'<param name="\'+e+\'" value="\'+i[e]+\'" />\'});r=v({data:e,width:"100%",height:"100%"},r);Object.getOwnPropertyNames(r).forEach(function(e){o+=e+\'="\'+r[e]+\'" \'});return""+n+o+">"+s+"</object>"};n(g);if(d.getTech("Flash")){t.log.warn("Not using videojs-flash as it appears to already be registered");t.log.warn("videojs-flash should only be used with video.js@6 and above")}else{t.registerTech("Flash",g)}g.VERSION=r;return g})}(function(e,t){typeof exports==="object"&&typeof module!=="undefined"?t(exports,require("global/window"),require("video.js")):typeof i==="function"&&i.amd?i(["exports","global/window","video.js"],t):t(e.videojsFlashlsSourceHandler={},e.window,e.videojs)})(this,function(e,t,i){"use strict";t=t&&t.hasOwnProperty("default")?t["default"]:t;i=i&&i.hasOwnProperty("default")?i["default"]:i;var r=function(){this.init=function(){var e={};this.on=function(t,i){if(!e[t]){e[t]=[]}e[t]=e[t].concat(i)};this.off=function(t,i){var r;if(!e[t]){return false}r=e[t].indexOf(i);e[t]=e[t].slice();e[t].splice(r,1);return r>-1};this.trigger=function(t){var i,r,n,a;i=e[t];if(!i){return}if(arguments.length===2){n=i.length;for(r=0;r<n;++r){i[r].call(this,arguments[1])}}else{a=[];r=arguments.length;for(r=1;r<arguments.length;++r){a.push(arguments[r])}n=i.length;for(r=0;r<n;++r){i[r].apply(this,a)}}};this.dispose=function(){e={}}}};r.prototype.pipe=function(e){this.on("data",function(t){e.push(t)});this.on("done",function(t){e.flush(t)});return e};r.prototype.push=function(e){this.trigger("data",e)};r.prototype.flush=function(e){this.trigger("done",e)};var n=r;var a=4,s=128;var o=function(e){var t=0,i={payloadType:-1,payloadSize:0},r=0,n=0;while(t<e.byteLength){if(e[t]===s){break}while(e[t]===255){r+=255;t++}r+=e[t++];while(e[t]===255){n+=255;t++}n+=e[t++];if(!i.payload&&r===a){i.payloadType=r;i.payloadSize=n;i.payload=e.subarray(t,t+n);break}t+=n;r=0;n=0}return i};var l=function(e){if(e.payload[0]!==181){return null}if((e.payload[1]<<8|e.payload[2])!==49){return null}if(String.fromCharCode(e.payload[3],e.payload[4],e.payload[5],e.payload[6])!=="GA94"){return null}if(e.payload[7]!==3){return null}return e.payload.subarray(8,e.payload.length-1)};var u=function(e,t){var i=[],r,n,a,s;if(!(t[0]&64)){return i}n=t[0]&31;for(r=0;r<n;r++){a=r*3;s={type:t[a+2]&3,pts:e};if(t[a+2]&4){s.ccData=t[a+3]<<8|t[a+4];i.push(s)}}return i};var c=function(e){var t=e.byteLength,i=[],r=1,n,a;while(r<t-2){if(e[r]===0&&e[r+1]===0&&e[r+2]===3){i.push(r+2);r+=2}else{r++}}if(i.length===0){return e}n=t-i.length;a=new Uint8Array(n);var s=0;for(r=0;r<n;s++,r++){if(s===i[0]){s++;i.shift()}a[r]=e[s]}return a};var d={parseSei:o,parseUserData:l,parseCaptionPackets:u,discardEmulationPreventionBytes:c,USER_DATA_REGISTERED_ITU_T_T35:a};var f=function(){f.prototype.init.call(this);this.captionPackets_=[];this.ccStreams_=[new y(0,0),new y(0,1),new y(1,0),new y(1,1)];this.reset();this.ccStreams_.forEach(function(e){e.on("data",this.trigger.bind(this,"data"));e.on("done",this.trigger.bind(this,"done"))},this)};f.prototype=new n;f.prototype.push=function(e){var t,i,r;if(e.nalUnitType!=="sei_rbsp"){return}t=d.parseSei(e.escapedRBSP);if(t.payloadType!==d.USER_DATA_REGISTERED_ITU_T_T35){return}i=d.parseUserData(t);
1if(!i){return}if(e.dts<this.latestDts_){this.ignoreNextEqualDts_=true;return}else if(e.dts===this.latestDts_&&this.ignoreNextEqualDts_){this.numSameDts_--;if(!this.numSameDts_){this.ignoreNextEqualDts_=false}return}r=d.parseCaptionPackets(e.pts,i);this.captionPackets_=this.captionPackets_.concat(r);if(this.latestDts_!==e.dts){this.numSameDts_=0}this.numSameDts_++;this.latestDts_=e.dts};f.prototype.flush=function(){if(!this.captionPackets_.length){this.ccStreams_.forEach(function(e){e.flush()},this);return}this.captionPackets_.forEach(function(e,t){e.presortIndex=t});this.captionPackets_.sort(function(e,t){if(e.pts===t.pts){return e.presortIndex-t.presortIndex}return e.pts-t.pts});this.captionPackets_.forEach(function(e){if(e.type<2){this.dispatchCea608Packet(e)}},this);this.captionPackets_.length=0;this.ccStreams_.forEach(function(e){e.flush()},this);return};f.prototype.reset=function(){this.latestDts_=null;this.ignoreNextEqualDts_=false;this.numSameDts_=0;this.activeCea608Channel_=[null,null];this.ccStreams_.forEach(function(e){e.reset()})};f.prototype.dispatchCea608Packet=function(e){if(this.setsChannel1Active(e)){this.activeCea608Channel_[e.type]=0}else if(this.setsChannel2Active(e)){this.activeCea608Channel_[e.type]=1}if(this.activeCea608Channel_[e.type]===null){return}this.ccStreams_[(e.type<<1)+this.activeCea608Channel_[e.type]].push(e)};f.prototype.setsChannel1Active=function(e){return(e.ccData&30720)===4096};f.prototype.setsChannel2Active=function(e){return(e.ccData&30720)===6144};var h={42:225,92:233,94:237,95:243,96:250,123:231,124:247,125:209,126:241,127:9608,304:174,305:176,306:189,307:191,308:8482,309:162,310:163,311:9834,312:224,313:160,314:232,315:226,316:234,317:238,318:244,319:251,544:193,545:201,546:211,547:218,548:220,549:252,550:8216,551:161,552:42,553:39,554:8212,555:169,556:8480,557:8226,558:8220,559:8221,560:192,561:194,562:199,563:200,564:202,565:203,566:235,567:206,568:207,569:239,570:212,571:217,572:249,573:219,574:171,575:187,800:195,801:227,802:205,803:204,804:236,805:210,806:242,807:213,808:245,809:123,810:125,811:92,812:94,813:95,814:124,815:126,816:196,817:228,818:214,819:246,820:223,821:165,822:164,823:9474,824:197,825:229,826:216,827:248,828:9484,829:9488,830:9492,831:9496};var p=function(e){if(e===null){return""}e=h[e]||e;return String.fromCharCode(e)};var v=14;var m=[4352,4384,4608,4640,5376,5408,5632,5664,5888,5920,4096,4864,4896,5120,5152];var g=function(){var e=[],t=v+1;while(t--){e.push("")}return e};var y=function(e,t){y.prototype.init.call(this);this.field_=e||0;this.dataChannel_=t||0;this.name_="CC"+((this.field_<<1|this.dataChannel_)+1);this.setConstants();this.reset();this.push=function(e){var t,i,r,n,a;t=e.ccData&32639;if(t===this.lastControlCode_){this.lastControlCode_=null;return}if((t&61440)===4096){this.lastControlCode_=t}else if(t!==this.PADDING_){this.lastControlCode_=null}r=t>>>8;n=t&255;if(t===this.PADDING_){return}else if(t===this.RESUME_CAPTION_LOADING_){this.mode_="popOn"}else if(t===this.END_OF_CAPTION_){this.mode_="popOn";this.clearFormatting(e.pts);this.flushDisplayed(e.pts);i=this.displayed_;this.displayed_=this.nonDisplayed_;this.nonDisplayed_=i;this.startPts_=e.pts}else if(t===this.ROLL_UP_2_ROWS_){this.rollUpRows_=2;this.setRollUp(e.pts)}else if(t===this.ROLL_UP_3_ROWS_){this.rollUpRows_=3;this.setRollUp(e.pts)}else if(t===this.ROLL_UP_4_ROWS_){this.rollUpRows_=4;this.setRollUp(e.pts)}else if(t===this.CARRIAGE_RETURN_){this.clearFormatting(e.pts);this.flushDisplayed(e.pts);this.shiftRowsUp_();this.startPts_=e.pts}else if(t===this.BACKSPACE_){if(this.mode_==="popOn"){this.nonDisplayed_[this.row_]=this.nonDisplayed_[this.row_].slice(0,-1)}else{this.displayed_[this.row_]=this.displayed_[this.row_].slice(0,-1)}}else if(t===this.ERASE_DISPLAYED_MEMORY_){this.flushDisplayed(e.pts);this.displayed_=g()}else if(t===this.ERASE_NON_DISPLAYED_MEMORY_){this.nonDisplayed_=g()}else if(t===this.RESUME_DIRECT_CAPTIONING_){if(this.mode_!=="paintOn"){this.flushDisplayed(e.pts);this.displayed_=g()}this.mode_="paintOn";this.startPts_=e.pts}else if(this.isSpecialCharacter(r,n)){r=(r&3)<<8;a=p(r|n);this[this.mode_](e.pts,a);this.column_++}else if(this.isExtCharacter(r,n)){if(this.mode_==="popOn"){this.nonDisplayed_[this.row_]=this.nonDisplayed_[this.row_].slice(0,-1)}else{this.displayed_[this.row_]=this.displayed_[this.row_].slice(0,-1)}r=(r&3)<<8;a=p(r|n);this[this.mode_](e.pts,a);this.column_++}else if(this.isMidRowCode(r,n)){this.clearFormatting(e.pts);this[this.mode_](e.pts," ");this.column_++;if((n&14)===14){this.addFormatting(e.pts,["i"])}if((n&1)===1){this.addFormatting(e.pts,["u"])}}else if(this.isOffsetControlCode(r,n)){this.column_+=n&3}else if(this.isPAC(r,n)){var s=m.indexOf(t&7968);
1if(this.mode_==="rollUp"){this.setRollUp(e.pts,s)}if(s!==this.row_){this.clearFormatting(e.pts);this.row_=s}if(n&1&&this.formatting_.indexOf("u")===-1){this.addFormatting(e.pts,["u"])}if((t&16)===16){this.column_=((t&14)>>1)*4}if(this.isColorPAC(n)){if((n&14)===14){this.addFormatting(e.pts,["i"])}}}else if(this.isNormalChar(r)){if(n===0){n=null}a=p(r);a+=p(n);this[this.mode_](e.pts,a);this.column_+=a.length}}};y.prototype=new n;y.prototype.flushDisplayed=function(e){var t=this.displayed_.map(function(e){return e.trim()}).join("\\n").replace(/^\\n+|\\n+$/g,"");if(t.length){this.trigger("data",{startPts:this.startPts_,endPts:e,text:t,stream:this.name_})}};y.prototype.reset=function(){this.mode_="popOn";this.topRow_=0;this.startPts_=0;this.displayed_=g();this.nonDisplayed_=g();this.lastControlCode_=null;this.column_=0;this.row_=v;this.rollUpRows_=2;this.formatting_=[]};y.prototype.setConstants=function(){if(this.dataChannel_===0){this.BASE_=16;this.EXT_=17;this.CONTROL_=(20|this.field_)<<8;this.OFFSET_=23}else if(this.dataChannel_===1){this.BASE_=24;this.EXT_=25;this.CONTROL_=(28|this.field_)<<8;this.OFFSET_=31}this.PADDING_=0;this.RESUME_CAPTION_LOADING_=this.CONTROL_|32;this.END_OF_CAPTION_=this.CONTROL_|47;this.ROLL_UP_2_ROWS_=this.CONTROL_|37;this.ROLL_UP_3_ROWS_=this.CONTROL_|38;this.ROLL_UP_4_ROWS_=this.CONTROL_|39;this.CARRIAGE_RETURN_=this.CONTROL_|45;this.RESUME_DIRECT_CAPTIONING_=this.CONTROL_|41;this.BACKSPACE_=this.CONTROL_|33;this.ERASE_DISPLAYED_MEMORY_=this.CONTROL_|44;this.ERASE_NON_DISPLAYED_MEMORY_=this.CONTROL_|46};y.prototype.isSpecialCharacter=function(e,t){return e===this.EXT_&&t>=48&&t<=63};y.prototype.isExtCharacter=function(e,t){return(e===this.EXT_+1||e===this.EXT_+2)&&(t>=32&&t<=63)};y.prototype.isMidRowCode=function(e,t){return e===this.EXT_&&(t>=32&&t<=47)};y.prototype.isOffsetControlCode=function(e,t){return e===this.OFFSET_&&(t>=33&&t<=35)};y.prototype.isPAC=function(e,t){return e>=this.BASE_&&e<this.BASE_+8&&(t>=64&&t<=127)};y.prototype.isColorPAC=function(e){return e>=64&&e<=79||e>=96&&e<=127};y.prototype.isNormalChar=function(e){return e>=32&&e<=127};y.prototype.setRollUp=function(e,t){if(this.mode_!=="rollUp"){this.row_=v;this.mode_="rollUp";this.flushDisplayed(e);this.nonDisplayed_=g();this.displayed_=g()}if(t!==undefined&&t!==this.row_){for(var i=0;i<this.rollUpRows_;i++){this.displayed_[t-i]=this.displayed_[this.row_-i];this.displayed_[this.row_-i]=""}}if(t===undefined){t=this.row_}this.topRow_=t-this.rollUpRows_+1};y.prototype.addFormatting=function(e,t){this.formatting_=this.formatting_.concat(t);var i=t.reduce(function(e,t){return e+"<"+t+">"},"");this[this.mode_](e,i)};y.prototype.clearFormatting=function(e){if(!this.formatting_.length){return}var t=this.formatting_.reverse().reduce(function(e,t){return e+"</"+t+">"},"");this.formatting_=[];this[this.mode_](e,t)};y.prototype.popOn=function(e,t){var i=this.nonDisplayed_[this.row_];i+=t;this.nonDisplayed_[this.row_]=i};y.prototype.rollUp=function(e,t){var i=this.displayed_[this.row_];i+=t;this.displayed_[this.row_]=i};y.prototype.shiftRowsUp_=function(){var e;for(e=0;e<this.topRow_;e++){this.displayed_[e]=""}for(e=this.row_+1;e<v+1;e++){this.displayed_[e]=""}for(e=this.topRow_;e<this.row_;e++){this.displayed_[e]=this.displayed_[e+1]}this.displayed_[this.row_]=""};y.prototype.paintOn=function(e,t){var i=this.displayed_[this.row_];i+=t;this.displayed_[this.row_]=i};var _={CaptionStream:f,Cea608Stream:y};var b=_.CaptionStream;var T={H264_STREAM_TYPE:27,ADTS_STREAM_TYPE:15,METADATA_STREAM_TYPE:21};var S=function(e,t,i){var r,n="";for(r=t;r<i;r++){n+="%"+("00"+e[r].toString(16)).slice(-2)}return n},k=function(e,t,i){return decodeURIComponent(S(e,t,i))},E=function(e,t,i){return unescape(S(e,t,i))},j=function(e){return e[0]<<21|e[1]<<14|e[2]<<7|e[3]},w={TXXX:function(e){var t;if(e.data[0]!==3){return}for(t=1;t<e.data.length;t++){if(e.data[t]===0){e.description=k(e.data,1,t);e.value=k(e.data,t+1,e.data.length).replace(/\\0*$/,"");break}}e.data=e.value},WXXX:function(e){var t;if(e.data[0]!==3){return}for(t=1;t<e.data.length;t++){if(e.data[t]===0){e.description=k(e.data,1,t);e.url=k(e.data,t+1,e.data.length);break}}},PRIV:function(e){var t;for(t=0;t<e.data.length;t++){if(e.data[t]===0){e.owner=E(e.data,0,t);break}}e.privateData=e.data.subarray(t+1);e.data=e.privateData}},C;C=function(e){var t={debug:!!(e&&e.debug),descriptor:e&&e.descriptor},i=0,r=[],n=0,a;C.prototype.init.call(this);this.dispatchType=T.METADATA_STREAM_TYPE.toString(16);if(t.descriptor){for(a=0;a<t.descriptor.length;a++){this.dispatchType+=("00"+t.descriptor[a].toString(16)).slice(-2)}}this.push=function(e){var a,s,o,l,u,c;if(e.type!=="timed-metadata"){return}if(e.dataAlignmentIndicator){n=0;r.length=0}if(r.length===0&&(e.data.length<10||e.data[0]!=="I".charCodeAt(0)||e.data[1]!=="D".charCodeAt(0)||e.data[2]!=="3".charCodeAt(0))){if(t.debug){console.log("Skipping unrecognized metadata packet")}return}r.push(e);n+=e.data.byteLength;if(r.length===1){i=j(e.data.subarray(6,10));i+=10}if(n<i){return}a={data:new Uint8Array(i),frames:[],pts:r[0].pts,dts:r[0].dts};for(u=0;
1u<i;){a.data.set(r[0].data.subarray(0,i-u),u);u+=r[0].data.byteLength;n-=r[0].data.byteLength;r.shift()}s=10;if(a.data[5]&64){s+=4;s+=j(a.data.subarray(10,14));i-=j(a.data.subarray(16,20))}do{o=j(a.data.subarray(s+4,s+8));if(o<1){return console.log("Malformed ID3 frame encountered. Skipping metadata parsing.")}c=String.fromCharCode(a.data[s],a.data[s+1],a.data[s+2],a.data[s+3]);l={id:c,data:a.data.subarray(s+10,s+o+10)};l.key=l.id;if(w[l.id]){w[l.id](l);if(l.owner==="com.apple.streaming.transportStreamTimestamp"){var d=l.data,f=(d[3]&1)<<30|d[4]<<22|d[5]<<14|d[6]<<6|d[7]>>>2;f*=4;f+=d[7]&3;l.timeStamp=f;if(a.pts===undefined&&a.dts===undefined){a.pts=l.timeStamp;a.dts=l.timeStamp}this.trigger("timestamp",l)}}a.frames.push(l);s+=10;s+=o}while(s<i);this.trigger("data",a)}};C.prototype=new n;var I=C;var A=function e(t,i){var r={id:i.index+"",width:i.width,height:i.height,bandwidth:i.bitrate,isEnabled_:true};r.enabled=function(e){if(typeof e==="undefined"){return r.isEnabled_}if(e===r.isEnabled_){return}if(e===true||e===false){r.isEnabled_=e;t()}};return r};var x=function e(t){var i=null;var r=function e(){var r=i.filter(function(e){return e.enabled()});if(r.length===i.length||r.length===0){t.el_.vjs_setProperty("autoLevelCapping",-1);t.el_.vjs_setProperty("level",-1);return}i'),t[1].s.push('_CHROME&&!t.browser.IS_ANDROID||t.browser.IS_SAFARI&&!t.browser.IS_IOS){return true}return g.version()[0]>=10};d.withSourceHandlers(g);g.nativeSourceHandler={};g.nativeSourceHandler.canPlayType=function(e){if(e in g.formats){return"maybe"}return""};g.nativeSourceHandler.canHandleSource=function(e,t){var i=void 0;function r(e){var t=h.getFileExtension(e);if(t){return"video/"+t}return""}if(!e.type){i=r(e.src)}else{i=e.type.replace(/;.*/,"").toLowerCase()}return g.nativeSourceHandler.canPlayType(i)};g.nativeSourceHandler.handleSource=function(e,t,i){t.setSrc(e.src)};g.nativeSourceHandler.dispose=function(){};g.registerSourceHandler(g.nativeSourceHandler);g.formats={"video/flv":"FLV","video/x-flv":"FLV","video/mp4":"MP4","video/m4v":"MP4"};g.onReady=function(e){var t=f.$("#"+e);var i=t&&t.tech;if(i&&i.el()){g.checkReady(i)}};g.checkReady=function(e){if(!e.el()){return}if(e.el().vjs_getProperty){e.triggerReady()}else{this.setTimeout(function(){g.checkReady(e)},50)}};g.onEvent=function(e,t){var i=f.$("#"+e).tech;var r=Array.prototype.slice.call(arguments,2);i.setTimeout(function(){i.trigger(t,r)},1)};g.onError=function(e,t){var i=f.$("#"+e).tech;if(t==="srcnotfound"){return i.error(4)}if(typeof t==="string"){i.error("FLASH: "+t)}else{t.origin="flash";i.error(t)}};g.version=function(){var e="0,0,0";try{e=new o.ActiveXObject("ShockwaveFlash.ShockwaveFlash").GetVariable("$version").replace(/\\D+/g,",").match(/^,?(.+),?$/)[1]}catch(t){try{if(m.mimeTypes["application/x-shockwave-flash"].enabledPlugin){e=(m.plugins["Shockwave Flash 2.0"]||m.plugins["Shockwave Flash"]).description.replace(/\\D+/g,",").match(/^,?(.+),?$/)[1]}}catch(e){}}return e.split(",")};g.embed=function(e,t,i,r){var n=g.getEmbedCode(e,t,i,r);var a=f.createEl("div",{innerHTML:n}).childNodes[0];return a};g.getEmbedCode=function(e,t,i,r){var n=\'<object type="application/x-shockwave-flash" \';var a="";var s="";var o="";if(t){Object.getOwnPropertyNames(t).forEach(function(e){a+=e+"="+t[e]+"&amp;"})}i=v({movie:e,flashvars:a,allowScriptAccess:"always",allowNetworking:"all"},i);Object.getOwnPropertyNames(i).forEach(function(e){s+=\'<param name="\'+e+\'" value="\'+i[e]+\'" />\'});r=v({data:e,width:"100%",height:"100%"},r);Object.getOwnPropertyNames(r).forEach(function(e){o+=e+\'="\'+r[e]+\'" \'});return""+n+o+">"+s+"</object>"};n(g);if(d.getTech("Flash")){t.log.warn("Not using videojs-flash as it appears to already be registered");t.log.warn("videojs-flash should only be used with video.js@6 and above")}else{t.registerTech("Flash",g)}g.VERSION=r;return g})}(function(e,t){typeof exports==="object"&&typeof module!=="undefined"?t(exports,require("global/window"),require("video.js")):typeof i==="function"&&i.amd?i(["exports","global/window","video.js"],t):t(e.videojsFlashlsSourceHandler={},e.window,e.videojs)})(this,function(e,t,i){"use strict";t=t&&t.hasOwnProperty("default")?t["default"]:t;i=i&&i.hasOwnProperty("default")?i["default"]:i;var r=function(){this.init=function(){var e={};this.on=function(t,i){if(!e[t]){e[t]=[]}e[t]=e[t].concat(i)};this.off=function(t,i){var r;if(!e[t]){return false}r=e[t].indexOf(i);e[t]=e[t].slice();e[t].splice(r,1);return r>-1};this.trigger=function(t){var i,r,n,a;i=e[t];if(!i){return}if(arguments.length===2){n=i.length;for(r=0;r<n;++r){i[r].call(this,arguments[1])}}else{a=[];r=arguments.length;for(r=1;r<arguments.length;++r){a.push(arguments[r])}n=i.length;for(r=0;r<n;++r){i[r].apply(this,a)}}};this.dispose=function(){e={}}}};r.prototype.pipe=function(e){this.on("data",function(t){e.push(t)});this.on("done",function(t){e.flush(t)});return e};r.prototype.push=function(e){this.trigger("data",e)};r.prototype.flush=function(e){this.trigger("done",e)};var n=r;var a=4,s=128;var o=function(e){var t=0,i={payloadType:-1,payloadSize:0},r=0,n=0;while(t<e.byteLength){if(e[t]===s){break}while(e[t]===255){r+=255;t++}r+=e[t++];while(e[t]===255){n+=255;t++}n+=e[t++];if(!i.payload&&r===a){i.payloadType=r;i.payloadSize=n;i.payload=e.subarray(t,t+n);break}t+=n;r=0;n=0}return i};var l=function(e){if(e.payload[0]!==181){return null}if((e.payload[1]<<8|e.payload[2])!==49){return null}if(String.fromCharCode(e.payload[3],e.payload[4],e.payload[5],e.payload[6])!=="GA94"){return null}if(e.payload[7]!==3){return null}return e.payload.subarray(8,e.payload.length-1)};var u=function(e,t){var i=[],r,n,a,s;if(!(t[0]&64)){return i}n=t[0]&31;for(r=0;r<n;r++){a=r*3;s={type:t[a+2]&3,pts:e};if(t[a+2]&4){s.ccData=t[a+3]<<8|t[a+4];i.push(s)}}return i};var c=function(e){var t=e.byteLength,i=[],r=1,n,a;while(r<t-2){if(e[r]===0&&e[r+1]===0&&e[r+2]===3){i.push(r+2);r+=2}else{r++}}if(i.length===0){return e}n=t-i.length;a=new Uint8Array(n);var s=0;for(r=0;r<n;s++,r++){if(s===i[0]){s++;i.shift()}a[r]=e[s]}return a};var d={parseSei:o,parseUserData:l,parseCaptionPackets:u,discardEmulationPreventionBytes:c,USER_DATA_REGISTERED_ITU_T_T35:a};var f=function(){f.prototype.init.call(this);this.captionPackets_=[];
1this.ccStreams_=[new y(0,0),new y(0,1),new y(1,0),new y(1,1)];this.reset();this.ccStreams_.forEach(function(e){e.on("data",this.trigger.bind(this,"data"));e.on("done",this.trigger.bind(this,"done"))},this)};f.prototype=new n;f.prototype.push=function(e){var t,i,r;if(e.nalUnitType!=="sei_rbsp"){return}t=d.parseSei(e.escapedRBSP);if(t.payloadType!==d.USER_DATA_REGISTERED_ITU_T_T35){return}i=d.parseUserData(t);if(!i){return}if(e.dts<this.latestDts_){this.ignoreNextEqualDts_=true;return}else if(e.dts===this.latestDts_&&this.ignoreNextEqualDts_){this.numSameDts_--;if(!this.numSameDts_){this.ignoreNextEqualDts_=false}return}r=d.parseCaptionPackets(e.pts,i);this.captionPackets_=this.captionPackets_.concat(r);if(this.latestDts_!==e.dts){this.numSameDts_=0}this.numSameDts_++;this.latestDts_=e.dts};f.prototype.flush=function(){if(!this.captionPackets_.length){this.ccStreams_.forEach(function(e){e.flush()},this);return}this.captionPackets_.forEach(function(e,t){e.presortIndex=t});this.captionPackets_.sort(function(e,t){if(e.pts===t.pts){return e.presortIndex-t.presortIndex}return e.pts-t.pts});this.captionPackets_.forEach(function(e){if(e.type<2){this.dispatchCea608Packet(e)}},this);this.captionPackets_.length=0;this.ccStreams_.forEach(function(e){e.flush()},this);return};f.prototype.reset=function(){this.latestDts_=null;this.ignoreNextEqualDts_=false;this.numSameDts_=0;this.activeCea608Channel_=[null,null];this.ccStreams_.forEach(function(e){e.reset()})};f.prototype.dispatchCea608Packet=function(e){if(this.setsChannel1Active(e)){this.activeCea608Channel_[e.type]=0}else if(this.setsChannel2Active(e)){this.activeCea608Channel_[e.type]=1}if(this.activeCea608Channel_[e.type]===null){return}this.ccStreams_[(e.type<<1)+this.activeCea608Channel_[e.type]].push(e)};f.prototype.setsChannel1Active=function(e){return(e.ccData&30720)===4096};f.prototype.setsChannel2Active=function(e){return(e.ccData&30720)===6144};var h={42:225,92:233,94:237,95:243,96:250,123:231,124:247,125:209,126:241,127:9608,304:174,305:176,306:189,307:191,308:8482,309:162,310:163,311:9834,312:224,313:160,314:232,315:226,316:234,317:238,318:244,319:251,544:193,545:201,546:211,547:218,548:220,549:252,550:8216,551:161,552:42,553:39,554:8212,555:169,556:8480,557:8226,558:8220,559:8221,560:192,561:194,562:199,563:200,564:202,565:203,566:235,567:206,568:207,569:239,570:212,571:217,572:249,573:219,574:171,575:187,800:195,801:227,802:205,803:204,804:236,805:210,806:242,807:213,808:245,809:123,810:125,811:92,812:94,813:95,814:124,815:126,816:196,817:228,818:214,819:246,820:223,821:165,822:164,823:9474,824:197,825:229,826:216,827:248,828:9484,829:9488,830:9492,831:9496};var p=function(e){if(e===null){return""}e=h[e]||e;return String.fromCharCode(e)};var v=14;var m=[4352,4384,4608,4640,5376,5408,5632,5664,5888,5920,4096,4864,4896,5120,5152];var g=function(){var e=[],t=v+1;while(t--){e.push("")}return e};var y=function(e,t){y.prototype.init.call(this);this.field_=e||0;this.dataChannel_=t||0;this.name_="CC"+((this.field_<<1|this.dataChannel_)+1);this.setConstants();this.reset();this.push=function(e){var t,i,r,n,a;t=e.ccData&32639;if(t===this.lastControlCode_){this.lastControlCode_=null;return}if((t&61440)===4096){this.lastControlCode_=t}else if(t!==this.PADDING_){this.lastControlCode_=null}r=t>>>8;n=t&255;if(t===this.PADDING_){return}else if(t===this.RESUME_CAPTION_LOADING_){this.mode_="popOn"}else if(t===this.END_OF_CAPTION_){this.mode_="popOn";this.clearFormatting(e.pts);this.flushDisplayed(e.pts);i=this.displayed_;this.displayed_=this.nonDisplayed_;this.nonDisplayed_=i;this.startPts_=e.pts}else if(t===this.ROLL_UP_2_ROWS_){this.rollUpRows_=2;this.setRollUp(e.pts)}else if(t===this.ROLL_UP_3_ROWS_){this.rollUpRows_=3;this.setRollUp(e.pts)}else if(t===this.ROLL_UP_4_ROWS_){this.rollUpRows_=4;this.setRollUp(e.pts)}else if(t===this.CARRIAGE_RETURN_){this.clearFormatting(e.pts);this.flushDisplayed(e.pts);this.shiftRowsUp_();this.startPts_=e.pts}else if(t===this.BACKSPACE_){if(this.mode_==="popOn"){this.nonDisplayed_[this.row_]=this.nonDisplayed_[this.row_].slice(0,-1)}else{this.displayed_[this.row_]=this.displayed_[this.row_].slice(0,-1)}}else if(t===this.ERASE_DISPLAYED_MEMORY_){this.flushDisplayed(e.pts);this.displayed_=g()}else if(t===this.ERASE_NON_DISPLAYED_MEMORY_){this.nonDisplayed_=g()}else if(t===this.RESUME_DIRECT_CAPTIONING_){if(this.mode_!=="paintOn"){this.flushDisplayed(e.pts);this.displayed_=g()}this.mode_="paintOn";this.startPts_=e.pts}else if(this.isSpecialCharacter(r,n)){r=(r&3)<<8;a=p(r|n);this[this.mode_](e.pts,a);this.column_++}else if(this.isExtCharacter(r,n)){if(this.mode_==="popOn"){this.nonDisplayed_[this.row_]=this.nonDisplayed_[this.row_].slice(0,-1)}else{this.displayed_[this.row_]=this.displayed_[this.row_].slice(0,-1)}r=(r&3)<<8;a=p(r|n);this[this.mode_](e.pts,a);this.column_++}else if(this.isMidRowCode(r,n)){this.clearFormatting(e.pts);this[this.mode_](e.pts," ");this.column_++;if((n&14)===14){this.addFormatting(e.pts,["i"])}if((n&1)===1){this.addFormatting(e.pts,["u"])}}else if(this.isOffsetControlCode(r,n)){this.column_+=n&3}else if(this.isPAC(r,n)){var s=m.indexOf(t&7968);
1if(this.mode_==="rollUp"){this.setRollUp(e.pts,s)}if(s!==this.row_){this.clearFormatting(e.pts);this.row_=s}if(n&1&&this.formatting_.indexOf("u")===-1){this.addFormatting(e.pts,["u"])}if((t&16)===16){this.column_=((t&14)>>1)*4}if(this.isColorPAC(n)){if((n&14)===14){this.addFormatting(e.pts,["i"])}}}else if(this.isNormalChar(r)){if(n===0){n=null}a=p(r);a+=p(n);this[this.mode_](e.pts,a);this.column_+=a.length}}};y.prototype=new n;y.prototype.flushDisplayed=function(e){var t=this.displayed_.map(function(e){return e.trim()}).join("\\n").replace(/^\\n+|\\n+$/g,"");if(t.length){this.trigger("data",{startPts:this.startPts_,endPts:e,text:t,stream:this.name_})}};y.prototype.reset=function(){this.mode_="popOn";this.topRow_=0;this.startPts_=0;this.displayed_=g();this.nonDisplayed_=g();this.lastControlCode_=null;this.column_=0;this.row_=v;this.rollUpRows_=2;this.formatting_=[]};y.prototype.setConstants=function(){if(this.dataChannel_===0){this.BASE_=16;this.EXT_=17;this.CONTROL_=(20|this.field_)<<8;this.OFFSET_=23}else if(this.dataChannel_===1){this.BASE_=24;this.EXT_=25;this.CONTROL_=(28|this.field_)<<8;this.OFFSET_=31}this.PADDING_=0;this.RESUME_CAPTION_LOADING_=this.CONTROL_|32;this.END_OF_CAPTION_=this.CONTROL_|47;this.ROLL_UP_2_ROWS_=this.CONTROL_|37;this.ROLL_UP_3_ROWS_=this.CONTROL_|38;this.ROLL_UP_4_ROWS_=this.CONTROL_|39;this.CARRIAGE_RETURN_=this.CONTROL_|45;this.RESUME_DIRECT_CAPTIONING_=this.CONTROL_|41;this.BACKSPACE_=this.CONTROL_|33;this.ERASE_DISPLAYED_MEMORY_=this.CONTROL_|44;this.ERASE_NON_DISPLAYED_MEMORY_=this.CONTROL_|46};y.prototype.isSpecialCharacter=function(e,t){return e===this.EXT_&&t>=48&&t<=63};y.prototype.isExtCharacter=function(e,t){return(e===this.EXT_+1||e===this.EXT_+2)&&(t>=32&&t<=63)};y.prototype.isMidRowCode=function(e,t){return e===this.EXT_&&(t>=32&&t<=47)};y.prototype.isOffsetControlCode=function(e,t){return e===this.OFFSET_&&(t>=33&&t<=35)};y.prototype.isPAC=function(e,t){return e>=this.BASE_&&e<this.BASE_+8&&(t>=64&&t<=127)};y.prototype.isColorPAC=function(e){return e>=64&&e<=79||e>=96&&e<=127};y.prototype.isNormalChar=function(e){return e>=32&&e<=127};y.prototype.setRollUp=function(e,t){if(this.mode_!=="rollUp"){this.row_=v;this.mode_="rollUp";this.flushDisplayed(e);this.nonDisplayed_=g();this.displayed_=g()}if(t!==undefined&&t!==this.row_){for(var i=0;i<this.rollUpRows_;i++){this.displayed_[t-i]=this.displayed_[this.row_-i];this.displayed_[this.row_-i]=""}}if(t===undefined){t=this.row_}this.topRow_=t-this.rollUpRows_+1};y.prototype.addFormatting=function(e,t){this.formatting_=this.formatting_.concat(t);var i=t.reduce(function(e,t){return e+"<"+t+">"},"");this[this.mode_](e,i)};y.prototype.clearFormatting=function(e){if(!this.formatting_.length){return}var t=this.formatting_.reverse().reduce(function(e,t){return e+"</"+t+">"},"");this.formatting_=[];this[this.mode_](e,t)};y.prototype.popOn=function(e,t){var i=this.nonDisplayed_[this.row_];i+=t;this.nonDisplayed_[this.row_]=i};y.prototype.rollUp=function(e,t){var i=this.displayed_[this.row_];i+=t;this.displayed_[this.row_]=i};y.prototype.shiftRowsUp_=function(){var e;for(e=0;e<this.topRow_;e++){this.displayed_[e]=""}for(e=this.row_+1;e<v+1;e++){this.displayed_[e]=""}for(e=this.topRow_;e<this.row_;e++){this.displayed_[e]=this.displayed_[e+1]}this.displayed_[this.row_]=""};y.prototype.paintOn=function(e,t){var i=this.displayed_[this.row_];i+=t;this.displayed_[this.row_]=i};var _={CaptionStream:f,Cea608Stream:y};var b=_.CaptionStream;var T={H264_STREAM_TYPE:27,ADTS_STREAM_TYPE:15,METADATA_STREAM_TYPE:21};var S=function(e,t,i){var r,n="";for(r=t;r<i;r++){n+="%"+("00"+e[r].toString(16)).slice(-2)}return n},k=function(e,t,i){return decodeURIComponent(S(e,t,i))},E=function(e,t,i){return unescape(S(e,t,i))},j=function(e){return e[0]<<21|e[1]<<14|e[2]<<7|e[3]},w={TXXX:function(e){var t;if(e.data[0]!==3){return}for(t=1;t<e.data.length;t++){if(e.data[t]===0){e.description=k(e.data,1,t);e.value=k(e.data,t+1,e.data.length).replace(/\\0*$/,"");break}}e.data=e.value},WXXX:function(e){var t;if(e.data[0]!==3){return}for(t=1;t<e.data.length;t++){if(e.data[t]===0){e.description=k(e.data,1,t);e.url=k(e.data,t+1,e.data.length);break}}},PRIV:function(e){var t;for(t=0;t<e.data.length;t++){if(e.data[t]===0){e.owner=E(e.data,0,t);break}}e.privateData=e.data.subarray(t+1);e.data=e.privateData}},C;C=function(e){var t={debug:!!(e&&e.debug),descriptor:e&&e.descriptor},i=0,r=[],n=0,a;C.prototype.init.call(this);this.dispatchType=T.METADATA_STREAM_TYPE.toString(16);if(t.descriptor){for(a=0;a<t.descriptor.length;a++){this.dispatchType+=("00"+t.descriptor[a].toString(16)).slice(-2)}}this.push=function(e){var a,s,o,l,u,c;if(e.type!=="timed-metadata"){return}if(e.dataAlignmentIndicator){n=0;r.length=0}if(r.length===0&&(e.data.length<10||e.data[0]!=="I".charCodeAt(0)||e.data[1]!=="D".charCodeAt(0)||e.data[2]!=="3".charCodeAt(0))){if(t.debug){console.log("Skipping unrecognized metadata packet")}return}r.push(e);n+=e.data.byteLength;if(r.length===1){i=j(e.data.subarray(6,10));i+=10}if(n<i){return}a={data:new Uint8Array(i),frames:[],pts:r[0].pts,dts:r[0].dts};for(u=0;
1u<i;){a.data.set(r[0].data.subarray(0,i-u),u);u+=r[0].data.byteLength;n-=r[0].data.byteLength;r.shift()}s=10;if(a.data[5]&64){s+=4;s+=j(a.data.subarray(10,14));i-=j(a.data.subarray(16,20))}do{o=j(a.data.subarray(s+4,s+8));if(o<1){return console.log("Malformed ID3 frame encountered. Skipping metadata parsing.")}c=String.fromCharCode(a.data[s],a.data[s+1],a.data[s+2],a.data[s+3]);l={id:c,data:a.data.subarray(s+10,s+o+10)};l.key=l.id;if(w[l.id]){w[l.id](l);if(l.owner==="com.apple.streaming.transportStreamTimestamp"){var d=l.data,f=(d[3]&1)<<30|d[4]<<22|d[5]<<14|d[6]<<6|d[7]>>>2;f*=4;f+=d[7]&3;l.timeStamp=f;if(a.pts===undefined&&a.dts===undefined){a.pts=l.timeStamp;a.dts=l.timeStamp}this.trigger("timestamp",l)}}a.frames.push(l);s+=10;s+=o}while(s<i);this.trigger("data",a)}};C.prototype=new n;var I=C;var A=function e(t,i){var r={id:i.index+"",width:i.width,height:i.height,bandwidth:i.bitrate,isEnabled_:true};r.enabled=function(e){if(typeof e==="undefined"){return r.isEnabled_}if(e===r.isEnabled_){return}if(e===true||e===false){r.isEnabled_=e;t()}};return r};var x=function e(t){var i=null;var r=function e(){var r=i.filter(function(e){return e.enabled()});if(r.length===i.length||r.length===0){t.el_.vjs_setProperty("autoLeve'),t[0].s.push('f(r.length===1){t.el_.vjs_setProperty("level",parseInt(r[0].id,10));t.el_.vjs_setProperty("autoLevelCapping",-1);return}var n=r[r.length-1].id;t.el_.vjs_setProperty("autoLevelCapping",parseInt(n,10));t.el_.vjs_setProperty("level",-1)};return function(){if(!i){var e=t.el_.vjs_getProperty("levels");i=e.filter(function(e){return!e.audio}).map(A.bind(null,r))}return i}};var P=function e(t){var i=t.el_.vjs_getProperty("audioTracks");var r=t.audioTracks();var n=null;for(var a=0;a<r.length;a++){if(r[a].enabled){n=r[a].id;break}}if(n===null){return}for(var s=0;s<i.length;s++){if(n===i[s].title){t.el_.vjs_setProperty("audioTrack",s);return}}};var O=function e(t){var r=t.el_.vjs_getProperty("altAudioTracks");var n=t.el_.vjs_getProperty("audioTracks");var a=t.el_.vjs_getProperty("audioTrack");n.forEach(function(e,n){var s=r[e.id];t.audioTracks().addTrack(new i.AudioTrack({id:s.name,enabled:a===n,language:s.lang,default:s.default_track,label:s.name}))})};var L="1.4.8";var D=function e(t){Object.defineProperties(t.frame,{id:{get:function e(){i.log.warn("cue.frame.id is deprecated. Use cue.value.key instead.");return t.value.key}},value:{get:function e(){i.log.warn("cue.frame.value is deprecated. Use cue.value.data instead.");return t.value.data}},privateData:{get:function e(){i.log.warn("cue.frame.privateData is deprecated. Use cue.value.data instead.");return t.value.data}}})};var R=function e(t,i,r){var n=t.remoteTextTracks()||[];for(var a=0;a<n.length;a++){var s=n[a];if(s.kind===i&&s.label===r){t.removeRemoteTextTrack(s)}}};var N=function e(t){var i=new Uint8Array(t.length);for(var r=0;r<t.length;r++){i[r]=t.charCodeAt(r)}return i};var M=function e(t,i,r){var n;var a;if(!r){return}if(!r.cues){return}n=r.cues.length;while(n--){a=r.cues[n];if(a.startTime<=i&&a.endTime>=t){r.removeCue(a)}}};var U=function e(t,i){if(t.length){M(0,t.start(0),i)}};var B=function e(t,i){var r=-1;for(var n=0;n<t.length;n++){if(t[n].id===i){r=n;break}}t.selectedIndex_=r;t.trigger({selectedIndex:r,type:"change"})};var F=1/30;var H=function e(t,r){var n=[];if(t&&t.length){for(var a=0;a<t.length;a++){if(r(t.start(a),t.end(a))){n.push([t.start(a),t.end(a)])}}}return i.createTimeRanges(n)};var V=function e(t,i){return H(t,function(e,t){return e-F<=i&&t+F>=i})};var q=function(){function e(e,t,r){var n=this;if(t.options_&&t.options_.playerId){var a=i(t.options_.playerId);if(!a.hasOwnProperty("hls")){Object.defineProperty(a,"hls",{get:function e(){i.log.warn("player.hls is deprecated. Use player.tech_.hls instead.");t.trigger({type:"usage",name:"flashls-player-access"});return n}})}}Object.defineProperties(this,{stats:{get:function e(){return this.tech_.el_.vjs_getProperty("stats")}},bandwidth:{get:function e(){return this.tech_.el_.vjs_getProperty("stats").bandwidth}}});this.tech_=t;this.metadataTrack_=null;this.inbandTextTracks_={};this.metadataStream_=new I;this.captionStream_=new b;this.offsetPts=null;this.offsetDts=null;this.onLoadedmetadata_=this.onLoadedmetadata_.bind(this);this.onSeeking_=this.onSeeking_.bind(this);this.onId3updated_=this.onId3updated_.bind(this);this.onCaptionData_=this.onCaptionData_.bind(this);this.onMetadataStreamData_=this.onMetadataStreamData_.bind(this);this.onCaptionStreamData_=this.onCaptionStreamData_.bind(this);this.onLevelSwitch_=this.onLevelSwitch_.bind(this);this.onLevelLoaded_=this.onLevelLoaded_.bind(this);this.onFragmentLoaded_=this.onFragmentLoaded_.bind(this);this.onAudioTrackChanged=this.onAudioTrackChanged.bind(this);this.onPlay_=this.onPlay_.bind(this);this.tech_.on("loadedmetadata",this.onLoadedmetadata_);this.tech_.on("seeking",this.onSeeking_);this.tech_.on("id3updated",this.onId3updated_);this.tech_.on("captiondata",this.onCaptionData_);this.tech_.on("levelswitch",this.onLevelSwitch_);this.tech_.on("levelloaded",this.onLevelLoaded_);this.tech_.on("fragmentloaded",this.onFragmentLoaded_);this.tech_.on("play",this.onPlay_);this.metadataStream_.on("data",this.onMetadataStreamData_);this.captionStream_.on("data",this.onCaptionStreamData_);this.playlists=new i.EventTarget;this.playlists.media=function(){return n.media_()}}
1var r=e.prototype;r.src=function e(t){if(!t){return}this.tech_.setSrc(t.src)};r.onPlay_=function e(){if(this.tech_.duration()===Infinity){var t=this.seekable();if(this.tech_.currentTime()<t.start(0)){return this.tech_.setCurrentTime(t.end(t.length-1))}}};r.seekable=function e(){var t=this.tech_.el_.vjs_getProperty("seekableStart");var r=this.tech_.el_.vjs_getProperty("seekableEnd");if(r===0){return i.createTimeRange()}return i.createTimeRange(t,r)};r.media_=function e(){var t=this.tech_.el_.vjs_getProperty("levels");var i=this.tech_.el_.vjs_getProperty("level");var r;if(t.length){r={resolvedUri:t[i].url,attributes:{BANDWIDTH:t[i].bitrate,RESOLUTION:{width:t[i].width,height:t[i].height}}}}return r};r.onLoadedmetadata_=function e(){var t=this;this.representations=x(this.tech_);var r=i.players[this.tech_.options_.playerId];if(r&&r.qualityLevels){this.qualityLevels_=r.qualityLevels();this.representations().forEach(function(e){t.qualityLevels_.addQualityLevel(e)});B(this.qualityLevels_,this.tech_.el_.vjs_getProperty("level")+"")}O(this.tech_);this.tech_.audioTracks().on("change",this.onAudioTrackChanged)};r.onAudioTrackChanged=function e(){P(this.tech_)};r.onLevelSwitch_=function e(t,i){if(this.qualityLevels_){B(this.qualityLevels_,i[0].levelIndex+"")}this.playlists.trigger("mediachange");this.tech_.trigger({type:"mediachange",bubbles:true})};r.onLevelLoaded_=function e(){this.playlists.trigger("loadedplaylist")};r.onFragmentLoaded_=function e(){this.tech_.trigger("bandwidthupdate");this.captionStream_.flush()};r.onSeeking_=function e(){var t=this;M(0,Infinity,this.metadataTrack_);var i=V(this.tech_.buffered(),this.tech_.currentTime());if(!i.length){Object.keys(this.inbandTextTracks_).forEach(function(e){M(0,Infinity,t.inbandTextTracks_[e])});this.captionStream_.reset()}};r.onId3updated_=function e(i,r){var n=t.atob(r[0]);var a=N(n);var s={type:"timed-metadata",dataAlignmentIndicator:true,data:a};this.metadataStream_.push(s)};r.onMetadataStreamData_=function e(i){var r=this;if(!this.metadataTrack_){this.metadataTrack_=this.tech_.addRemoteTextTrack({kind:"metadata",label:"Timed Metadata"},false).track;this.metadataTrack_.inBandMetadataTrackDispatchType="15"}U(this.tech_.buffered(),this.metadataTrack_);var n=this.tech_.currentTime();i.frames.forEach(function(e){var i=new t.VTTCue(n,n+.1,e.value||e.url||e.data||"");i.frame=e;i.value=e;D(i);r.metadataTrack_.addCue(i)});if(this.metadataTrack_.cues&&this.metadataTrack_.cues.length){var a=this.metadataTrack_.cues;var s=[];var o=this.tech_.duration();if(isNaN(o)||Math.abs(o)===Infinity){o=Number.MAX_VALUE}for(var l=0;l<a.length;l++){s.push(a[l])}s.sort(function(e,t){return e.startTime-t.startTime});for(var u=0;u<s.length-1;u++){if(s[u].endTime!==s[u+1].startTime){s[u].endTime=s[u+1].startTime}}s[s.length-1].endTime=o}};r.onCaptionData_=function e(i,r){var n=this;r[0].forEach(function(e){if(!n.offsetPts){n.offsetPts=e.pos}if(!n.offsetDts){n.offsetDts=e.dts}n.captionStream_.push({pts:(e.pos-n.offsetPts)*9e4,dts:(e.dts-n.offsetDts)*9e4,escapedRBSP:N(t.atob(e.data)),nalUnitType:"sei_rbsp"})})};r.onCaptionStreamData_=function e(i){if(i){if(!this.inbandTextTracks_[i.stream]){R(this.tech_,"captions",i.stream);this.inbandTextTracks_[i.stream]=this.tech_.addRemoteTextTrack({kind:"captions",label:i.stream,id:i.stream},false).track}U(this.tech_.buffered(),this.inbandTextTracks_[i.stream]);this.inbandTextTracks_[i.stream].addCue(new t.VTTCue(i.startPts/9e4,i.endPts/9e4,i.text))}};r.dispose=function e(){this.tech_.off("loadedmetadata",this.onLoadedmetadata_);this.tech_.off("seeked",this.onSeeking_);this.tech_.off("id3updated",this.onId3updated_);this.tech_.off("captiondata",this.onCaptionData_);this.tech_.audioTracks().off("change",this.onAudioTrackChanged);this.tech_.off("levelswitch",this.onLevelSwitch_);this.tech_.off("levelloaded",this.onLevelLoaded_);this.tech_.off("fragmentloaded",this.onFragmentLoaded_);this.tech_.off("play",this.onPlay_);if(this.qualityLevels_){this.qualityLevels_.dispose()}};return e}();var z={};var W=/^(audio|video|application)\\/(x-|vnd\\.apple\\.)?mpegurl/i;z.canPlayType=function(e){return W.test(e)?"maybe":""};z.canHandleSource=function(e,t){return z.canPlayType(e.type)==="maybe"};z.handleSource=function(e,t,i){t.hls=new q(e,t,i);t.hls.src(e);return t.hls};i.getTech("Flash").registerSourceHandler(z,0);z.VERSION=L;e.FlashlsHandler=q;e.default=z;
1Object.defineProperty(e,"__esModule",{value:true})});(function(e,t){typeof exports==="object"&&typeof module!=="undefined"?t(exports,require("global/document"),require("global/window"),require("video.js"),require("xmldom")):typeof i==="function"&&i.amd?i(["exports","global/document","global/window","video.js","xmldom"],t):(e=typeof globalThis!=="undefined"?globalThis:e||self,t(e.httpStreaming={},e.document,e.window,e.videojs,e.window))})(this,function(t,i,r,n,a){"use strict";function s(e){return e&&typeof e==="object"&&"default"in e?e:{default:e}}var o=s(i);var l=s(r);var u=s(n);function c(e){if(e===void 0){throw new ReferenceError("this hasn\'t been initialised - super() hasn\'t been called")}return e}var d=c;function f(e,t){e.prototype=Object.create(t.prototype);e.prototype.constructor=e;e.__proto__=t}var h=f;function p(e,t,i){return i={path:t,exports:{},require:function(e,t){return v(e,t===undefined||t===null?i.path:t)}},e(i,i.exports),i.exports}function v(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}var m=p(function(e,t){(function(t){var i=/^((?:[a-zA-Z0-9+\\-.]+:)?)(\\/\\/[^\\/?#]*)?((?:[^\\/?#]*\\/)*[^;?#]*)?(;[^?#]*)?(\\?[^#]*)?(#.*)?$/;var r=/^([^\\/?#]*)(.*)$/;var n=/(?:\\/|^)\\.(?=\\/)/g;var a=/(?:\\/|^)\\.\\.\\/(?!\\.\\.\\/)[^\\/]*(?=\\/)/g;var s={buildAbsoluteURL:function e(t,i,n){n=n||{};t=t.trim();i=i.trim();if(!i){if(!n.alwaysNormalize){return t}var a=s.parseURL(t);if(!a){throw new Error("Error trying to parse base URL.")}a.path=s.normalizePath(a.path);return s.buildURLFromParts(a)}var o=s.parseURL(i);if(!o){throw new Error("Error trying to parse relative URL.")}if(o.scheme){if(!n.alwaysNormalize){return i}o.path=s.normalizePath(o.path);return s.buildURLFromParts(o)}var l=s.parseURL(t);if(!l){throw new Error("Error trying to parse base URL.")}if(!l.netLoc&&l.path&&l.path[0]!=="/"){var u=r.exec(l.path);l.netLoc=u[1];l.path=u[2]}if(l.netLoc&&!l.path){l.path="/"}var c={scheme:l.scheme,netLoc:o.netLoc,path:null,params:o.params,query:o.query,fragment:o.fragment};if(!o.netLoc){c.netLoc=l.netLoc;if(o.path[0]!=="/"){if(!o.path){c.path=l.path;if(!o.params){c.params=l.params;if(!o.query){c.query=l.query}}}else{var d=l.path;var f=d.substring(0,d.lastIndexOf("/")+1)+o.path;c.path=s.normalizePath(f)}}}if(c.path===null){c.path=n.alwaysNormalize?s.normalizePath(o.path):o.path}return s.buildURLFromParts(c)},parseURL:function e(t){var r=i.exec(t);if(!r){return null}return{scheme:r[1]||"",netLoc:r[2]||"",path:r[3]||"",params:r[4]||"",query:r[5]||"",fragment:r[6]||""}},normalizePath:function e(t){t=t.split("").reverse().join("").replace(n,"");while(t.length!==(t=t.replace(a,"")).length){}return t.split("").reverse().join("")},buildURLFromParts:function e(t){return t.scheme+t.netLoc+t.path+t.params+t.query+t.fragment}};e.exports=s})()});var g=function e(t,i){if(/^[a-z]+:/i.test(i)){return i}if(!/\\/\\//i.test(t)){t=m.buildAbsoluteURL(l["default"].location&&l["default"].location.href||"",t)}return m.buildAbsoluteURL(t,i)};var y=g;var _=function e(t,i,r){if(t&&r&&r.responseURL&&i!==r.responseURL){return r.responseURL}return i};var b=function(){function e(){this.listeners={}}var t=e.prototype;t.on=function e(t,i){if(!this.listeners[t]){this.listeners[t]=[]}this.listeners[t].push(i)};t.off=function e(t,i){if(!this.listeners[t]){return false}var r=this.listeners[t].indexOf(i);this.listeners[t]=this.listeners[t].slice(0);this.listeners[t].splice(r,1);return r>-1};t.trigger=function e(t){var i=this.listeners[t];if(!i){return}if(arguments.length===2){var r=i.length;for(var n=0;n<r;++n){i[n].call(this,arguments[1])}}else{var a=Array.prototype.slice.call(arguments,1);var s=i.length;for(var o=0;o<s;++o){i[o].apply(this,a)}}};t.dispose=function e(){this.listeners={}};t.pipe=function e(t){this.on("data",function(e){t.push(e)})};return e}();var T=p(function(e){function t(){e.exports=t=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var r in i){if(Object.prototype.hasOwnProperty.call(i,r)){e[r]=i[r]}}}return e};return t.apply(this,arguments)}e.exports=t});var S=function e(t){return l["default"].atob?l["default"].atob(t):Buffer.from(t,"base64").toString("binary")};function k(e){var t=S(e);var i=new Uint8Array(t.length);for(var r=0;r<t.length;r++){i[r]=t.charCodeAt(r)}return i}var E=function(e){h(t,e);function t(){var t;t=e.call(this)||this;t.buffer="";return t}var i=t.prototype;i.push=function e(t){var i;this.buffer+=t;i=this.buffer.indexOf("\\n");for(;i>-1;i=this.buffer.indexOf("\\n")){this.trigger("data",this.buffer.substring(0,i));this.buffer=this.buffer.substring(i+1)}};return t}(b);var j=function e(){var t="[^=]*";var i=\'"[^"]*"|[^,]*\';var r="(?:"+t+")=(?:"+i+")";return new RegExp("(?:^|,)("+r+")")};var w=function e(t){var i=t.split(j());var r={};var n=i.length;var a;while(n--){if(i[n]===""){continue}a=/([^=]*)=(.*)/.exec(i[n]).slice(1);a[0]=a[0].replace(/^\\s+|\\s+$/g,"");a[1]=a[1].replace(/^\\s+|\\s+$/g,"");a[1]=a[1].replace(/^[\'"](.*)[\'"]$/g,"$1");r[a[0]]=a[1]}return r};var C=function(e){h(t,e);function t(){var t;t=e.call(this)||this;t.customParsers=[];t.tagMappers=[];return t}var i=t.prototype;i.push=function e(t){var i=this;var r;var n;
1t=t.trim();if(t.length===0){return}if(t[0]!=="#"){this.trigger("data",{type:"uri",uri:t});return}var a=this.tagMappers.reduce(function(e,i){var r=i(t);if(r===t){return e}return e.concat([r])},[t]);a.forEach(function(e){for(var t=0;t<i.customParsers.length;t++){if(i.customParsers[t].call(i,e)){return}}if(e.indexOf("#EXT")!==0){i.trigger("data",{type:"comment",text:e.slice(1)});return}e=e.replace("\\r","");r=/^#EXTM3U/.exec(e);if(r){i.trigger("data",{type:"tag",tagType:"m3u"});return}r=/^#EXTINF:?([0-9\\.]*)?,?(.*)?$/.exec(e);if(r){n={type:"tag",tagType:"inf"};if(r[1]){n.duration=parseFloat(r[1])}if(r[2]){n.title=r[2]}i.trigger("data",n);return}r=/^#EXT-X-TARGETDURATION:?([0-9.]*)?/.exec(e);if(r){n={type:"tag",tagType:"targetduration"};if(r[1]){n.duration=parseInt(r[1],10)}i.trigger("data",n);return}r=/^#ZEN-TOTAL-DURATION:?([0-9.]*)?/.exec(e);if(r){n={type:"tag",tagType:"totalduration"};if(r[1]){n.duration=parseInt(r[1],10)}i.trigger("data",n);return}r=/^#EXT-X-VERSION:?([0-9.]*)?/.exec(e);if(r){n={type:"tag",tagType:"version"};if(r[1]){n.version=parseInt(r[1],10)}i.trigger("data",n);return}r=/^#EXT-X-MEDIA-SEQUENCE:?(\\-?[0-9.]*)?/.exec(e);if(r){n={type:"tag",tagType:"media-sequence"};if(r[1]){n.number=parseInt(r[1],10)}i.trigger("data",n);return}r=/^#EXT-X-DISCONTINUITY-SEQUENCE:?(\\-?[0-9.]*)?/.exec(e);if(r){n={type:"tag",tagType:"discontinuity-sequence"};if(r[1]){n.number=parseInt(r[1],10)}i.trigger("data",n);return}r=/^#EXT-X-PLAYLIST-TYPE:?(.*)?$/.exec(e);if(r){n={type:"tag",tagType:"playlist-type"};if(r[1]){n.playlistType=r[1]}i.trigger("data",n);return}r=/^#EXT-X-BYTERANGE:?([0-9.]*)?@?([0-9.]*)?/.exec(e);if(r){n={type:"tag",tagType:"byterange"};if(r[1]){n.length=parseInt(r[1],10)}if(r[2]){n.offset=parseInt(r[2],10)}i.trigger("data",n);return}r=/^#EXT-X-ALLOW-CACHE:?(YES|NO)?/.exec(e);if(r){n={type:"tag",tagType:"allow-cache"};if(r[1]){n.allowed=!/NO/.test(r[1])}i.trigger("data",n);return}r=/^#EXT-X-MAP:?(.*)$/.exec(e);if(r){n={type:"tag",tagType:"map"};if(r[1]){var a=w(r[1]);if(a.URI){n.uri=a.URI}if(a.BYTERANGE){var s=a.BYTERANGE.split("@"),o=s[0],l=s[1];n.byterange={};if(o){n.byterange.length=parseInt(o,10)}if(l){n.byterange.offset=parseInt(l,10)}}}i.trigger("data",n);return}r=/^#EXT-X-STREAM-INF:?(.*)$/.exec(e);if(r){n={type:"tag",tagType:"stream-inf"};if(r[1]){n.attributes=w(r[1]);if(n.attributes.RESOLUTION){var u=n.attributes.RESOLUTION.split("x");var c={};if(u[0]){c.width=parseInt(u[0],10)}if(u[1]){c.height=parseInt(u[1],10)}n.attributes.RESOLUTION=c}if(n.attributes.BANDWIDTH){n.attributes.BANDWIDTH=parseInt(n.attributes.BANDWIDTH,10)}if(n.attributes["PROGRAM-ID"]){n.attributes["PROGRAM-ID"]=parseInt(n.attributes["PROGRAM-ID"],10)}}i.trigger("data",n);return}r=/^#EXT-X-MEDI'),t[1].s.push('lCapping",-1);t.el_.vjs_setProperty("level",-1);return}if(r.length===1){t.el_.vjs_setProperty("level",parseInt(r[0].id,10));t.el_.vjs_setProperty("autoLevelCapping",-1);return}var n=r[r.length-1].id;t.el_.vjs_setProperty("autoLevelCapping",parseInt(n,10));t.el_.vjs_setProperty("level",-1)};return function(){if(!i){var e=t.el_.vjs_getProperty("levels");i=e.filter(function(e){return!e.audio}).map(A.bind(null,r))}return i}};var P=function e(t){var i=t.el_.vjs_getProperty("audioTracks");var r=t.audioTracks();var n=null;for(var a=0;a<r.length;a++){if(r[a].enabled){n=r[a].id;break}}if(n===null){return}for(var s=0;s<i.length;s++){if(n===i[s].title){t.el_.vjs_setProperty("audioTrack",s);return}}};var O=function e(t){var r=t.el_.vjs_getProperty("altAudioTracks");var n=t.el_.vjs_getProperty("audioTracks");var a=t.el_.vjs_getProperty("audioTrack");n.forEach(function(e,n){var s=r[e.id];t.audioTracks().addTrack(new i.AudioTrack({id:s.name,enabled:a===n,language:s.lang,default:s.default_track,label:s.name}))})};var L="1.4.8";var D=function e(t){Object.defineProperties(t.frame,{id:{get:function e(){i.log.warn("cue.frame.id is deprecated. Use cue.value.key instead.");return t.value.key}},value:{get:function e(){i.log.warn("cue.frame.value is deprecated. Use cue.value.data instead.");return t.value.data}},privateData:{get:function e(){i.log.warn("cue.frame.privateData is deprecated. Use cue.value.data instead.");return t.value.data}}})};var R=function e(t,i,r){var n=t.remoteTextTracks()||[];for(var a=0;a<n.length;a++){var s=n[a];if(s.kind===i&&s.label===r){t.removeRemoteTextTrack(s)}}};var N=function e(t){var i=new Uint8Array(t.length);for(var r=0;r<t.length;r++){i[r]=t.charCodeAt(r)}return i};var M=function e(t,i,r){var n;var a;if(!r){return}if(!r.cues){return}n=r.cues.length;while(n--){a=r.cues[n];if(a.startTime<=i&&a.endTime>=t){r.removeCue(a)}}};var U=function e(t,i){if(t.length){M(0,t.start(0),i)}};var B=function e(t,i){var r=-1;for(var n=0;n<t.length;n++){if(t[n].id===i){r=n;break}}t.selectedIndex_=r;t.trigger({selectedIndex:r,type:"change"})};var F=1/30;var H=function e(t,r){var n=[];if(t&&t.length){for(var a=0;a<t.length;a++){if(r(t.start(a),t.end(a))){n.push([t.start(a),t.end(a)])}}}return i.createTimeRanges(n)};var V=function e(t,i){return H(t,function(e,t){return e-F<=i&&t+F>=i})};var q=function(){function e(e,t,r){var n=this;
1if(t.options_&&t.options_.playerId){var a=i(t.options_.playerId);if(!a.hasOwnProperty("hls")){Object.defineProperty(a,"hls",{get:function e(){i.log.warn("player.hls is deprecated. Use player.tech_.hls instead.");t.trigger({type:"usage",name:"flashls-player-access"});return n}})}}Object.defineProperties(this,{stats:{get:function e(){return this.tech_.el_.vjs_getProperty("stats")}},bandwidth:{get:function e(){return this.tech_.el_.vjs_getProperty("stats").bandwidth}}});this.tech_=t;this.metadataTrack_=null;this.inbandTextTracks_={};this.metadataStream_=new I;this.captionStream_=new b;this.offsetPts=null;this.offsetDts=null;this.onLoadedmetadata_=this.onLoadedmetadata_.bind(this);this.onSeeking_=this.onSeeking_.bind(this);this.onId3updated_=this.onId3updated_.bind(this);this.onCaptionData_=this.onCaptionData_.bind(this);this.onMetadataStreamData_=this.onMetadataStreamData_.bind(this);this.onCaptionStreamData_=this.onCaptionStreamData_.bind(this);this.onLevelSwitch_=this.onLevelSwitch_.bind(this);this.onLevelLoaded_=this.onLevelLoaded_.bind(this);this.onFragmentLoaded_=this.onFragmentLoaded_.bind(this);this.onAudioTrackChanged=this.onAudioTrackChanged.bind(this);this.onPlay_=this.onPlay_.bind(this);this.tech_.on("loadedmetadata",this.onLoadedmetadata_);this.tech_.on("seeking",this.onSeeking_);this.tech_.on("id3updated",this.onId3updated_);this.tech_.on("captiondata",this.onCaptionData_);this.tech_.on("levelswitch",this.onLevelSwitch_);this.tech_.on("levelloaded",this.onLevelLoaded_);this.tech_.on("fragmentloaded",this.onFragmentLoaded_);this.tech_.on("play",this.onPlay_);this.metadataStream_.on("data",this.onMetadataStreamData_);this.captionStream_.on("data",this.onCaptionStreamData_);this.playlists=new i.EventTarget;this.playlists.media=function(){return n.media_()}}var r=e.prototype;r.src=function e(t){if(!t){return}this.tech_.setSrc(t.src)};r.onPlay_=function e(){if(this.tech_.duration()===Infinity){var t=this.seekable();if(this.tech_.currentTime()<t.start(0)){return this.tech_.setCurrentTime(t.end(t.length-1))}}};r.seekable=function e(){var t=this.tech_.el_.vjs_getProperty("seekableStart");var r=this.tech_.el_.vjs_getProperty("seekableEnd");if(r===0){return i.createTimeRange()}return i.createTimeRange(t,r)};r.media_=function e(){var t=this.tech_.el_.vjs_getProperty("levels");var i=this.tech_.el_.vjs_getProperty("level");var r;if(t.length){r={resolvedUri:t[i].url,attributes:{BANDWIDTH:t[i].bitrate,RESOLUTION:{width:t[i].width,height:t[i].height}}}}return r};r.onLoadedmetadata_=function e(){var t=this;this.representations=x(this.tech_);var r=i.players[this.tech_.options_.playerId];if(r&&r.qualityLevels){this.qualityLevels_=r.qualityLevels();this.representations().forEach(function(e){t.qualityLevels_.addQualityLevel(e)});B(this.qualityLevels_,this.tech_.el_.vjs_getProperty("level")+"")}O(this.tech_);this.tech_.audioTracks().on("change",this.onAudioTrackChanged)};r.onAudioTrackChanged=function e(){P(this.tech_)};r.onLevelSwitch_=function e(t,i){if(this.qualityLevels_){B(this.qualityLevels_,i[0].levelIndex+"")}this.playlists.trigger("mediachange");this.tech_.trigger({type:"mediachange",bubbles:true})};r.onLevelLoaded_=function e(){this.playlists.trigger("loadedplaylist")};r.onFragmentLoaded_=function e(){this.tech_.trigger("bandwidthupdate");this.captionStream_.flush()};r.onSeeking_=function e(){var t=this;M(0,Infinity,this.metadataTrack_);var i=V(this.tech_.buffered(),this.tech_.currentTime());if(!i.length){Object.keys(this.inbandTextTracks_).forEach(function(e){M(0,Infinity,t.inbandTextTracks_[e])});this.captionStream_.reset()}};r.onId3updated_=function e(i,r){var n=t.atob(r[0]);var a=N(n);var s={type:"timed-metadata",dataAlignmentIndicator:true,data:a};this.metadataStream_.push(s)};r.onMetadataStreamData_=function e(i){var r=this;if(!this.metadataTrack_){this.metadataTrack_=this.tech_.addRemoteTextTrack({kind:"metadata",label:"Timed Metadata"},false).track;this.metadataTrack_.inBandMetadataTrackDispatchType="15"}U(this.tech_.buffered(),this.metadataTrack_);var n=this.tech_.currentTime();i.frames.forEach(function(e){var i=new t.VTTCue(n,n+.1,e.value||e.url||e.data||"");i.frame=e;i.value=e;D(i);r.metadataTrack_.addCue(i)});if(this.metadataTrack_.cues&&this.metadataTrack_.cues.length){var a=this.metadataTrack_.cues;var s=[];var o=this.tech_.duration();if(isNaN(o)||Math.abs(o)===Infinity){o=Number.MAX_VALUE}for(var l=0;l<a.length;l++){s.push(a[l])}s.sort(function(e,t){return e.startTime-t.startTime});for(var u=0;u<s.length-1;u++){if(s[u].endTime!==s[u+1].startTime){s[u].endTime=s[u+1].startTime}}s[s.length-1].endTime=o}};r.onCaptionData_=function e(i,r){var n=this;
1r[0].forEach(function(e){if(!n.offsetPts){n.offsetPts=e.pos}if(!n.offsetDts){n.offsetDts=e.dts}n.captionStream_.push({pts:(e.pos-n.offsetPts)*9e4,dts:(e.dts-n.offsetDts)*9e4,escapedRBSP:N(t.atob(e.data)),nalUnitType:"sei_rbsp"})})};r.onCaptionStreamData_=function e(i){if(i){if(!this.inbandTextTracks_[i.stream]){R(this.tech_,"captions",i.stream);this.inbandTextTracks_[i.stream]=this.tech_.addRemoteTextTrack({kind:"captions",label:i.stream,id:i.stream},false).track}U(this.tech_.buffered(),this.inbandTextTracks_[i.stream]);this.inbandTextTracks_[i.stream].addCue(new t.VTTCue(i.startPts/9e4,i.endPts/9e4,i.text))}};r.dispose=function e(){this.tech_.off("loadedmetadata",this.onLoadedmetadata_);this.tech_.off("seeked",this.onSeeking_);this.tech_.off("id3updated",this.onId3updated_);this.tech_.off("captiondata",this.onCaptionData_);this.tech_.audioTracks().off("change",this.onAudioTrackChanged);this.tech_.off("levelswitch",this.onLevelSwitch_);this.tech_.off("levelloaded",this.onLevelLoaded_);this.tech_.off("fragmentloaded",this.onFragmentLoaded_);this.tech_.off("play",this.onPlay_);if(this.qualityLevels_){this.qualityLevels_.dispose()}};return e}();var z={};var W=/^(audio|video|application)\\/(x-|vnd\\.apple\\.)?mpegurl/i;z.canPlayType=function(e){return W.test(e)?"maybe":""};z.canHandleSource=function(e,t){return z.canPlayType(e.type)==="maybe"};z.handleSource=function(e,t,i){t.hls=new q(e,t,i);t.hls.src(e);return t.hls};i.getTech("Flash").registerSourceHandler(z,0);z.VERSION=L;e.FlashlsHandler=q;e.default=z;Object.defineProperty(e,"__esModule",{value:true})});(function(e,t){typeof exports==="object"&&typeof module!=="undefined"?t(exports,require("global/document"),require("global/window"),require("video.js"),require("xmldom")):typeof i==="function"&&i.amd?i(["exports","global/document","global/window","video.js","xmldom"],t):(e=typeof globalThis!=="undefined"?globalThis:e||self,t(e.httpStreaming={},e.document,e.window,e.videojs,e.window))})(this,function(t,i,r,n,a){"use strict";function s(e){return e&&typeof e==="object"&&"default"in e?e:{default:e}}var o=s(i);var l=s(r);var u=s(n);function c(e){if(e===void 0){throw new ReferenceError("this hasn\'t been initialised - super() hasn\'t been called")}return e}var d=c;function f(e,t){e.prototype=Object.create(t.prototype);e.prototype.constructor=e;e.__proto__=t}var h=f;function p(e,t,i){return i={path:t,exports:{},require:function(e,t){return v(e,t===undefined||t===null?i.path:t)}},e(i,i.exports),i.exports}function v(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}var m=p(function(e,t){(function(t){var i=/^((?:[a-zA-Z0-9+\\-.]+:)?)(\\/\\/[^\\/?#]*)?((?:[^\\/?#]*\\/)*[^;?#]*)?(;[^?#]*)?(\\?[^#]*)?(#.*)?$/;var r=/^([^\\/?#]*)(.*)$/;var n=/(?:\\/|^)\\.(?=\\/)/g;var a=/(?:\\/|^)\\.\\.\\/(?!\\.\\.\\/)[^\\/]*(?=\\/)/g;var s={buildAbsoluteURL:function e(t,i,n){n=n||{};t=t.trim();i=i.trim();if(!i){if(!n.alwaysNormalize){return t}var a=s.parseURL(t);if(!a){throw new Error("Error trying to parse base URL.")}a.path=s.normalizePath(a.path);return s.buildURLFromParts(a)}var o=s.parseURL(i);if(!o){throw new Error("Error trying to parse relative URL.")}if(o.scheme){if(!n.alwaysNormalize){return i}o.path=s.normalizePath(o.path);return s.buildURLFromParts(o)}var l=s.parseURL(t);if(!l){throw new Error("Error trying to parse base URL.")}if(!l.netLoc&&l.path&&l.path[0]!=="/"){var u=r.exec(l.path);l.netLoc=u[1];l.path=u[2]}if(l.netLoc&&!l.path){l.path="/"}var c={scheme:l.scheme,netLoc:o.netLoc,path:null,params:o.params,query:o.query,fragment:o.fragment};if(!o.netLoc){c.netLoc=l.netLoc;if(o.path[0]!=="/"){if(!o.path){c.path=l.path;if(!o.params){c.params=l.params;if(!o.query){c.query=l.query}}}else{var d=l.path;var f=d.substring(0,d.lastIndexOf("/")+1)+o.path;c.path=s.normalizePath(f)}}}if(c.path===null){c.path=n.alwaysNormalize?s.normalizePath(o.path):o.path}return s.buildURLFromParts(c)},parseURL:function e(t){var r=i.exec(t);if(!r){return null}return{scheme:r[1]||"",netLoc:r[2]||"",path:r[3]||"",params:r[4]||"",query:r[5]||"",fragment:r[6]||""}},normalizePath:function e(t){t=t.split("").reverse().join("").replace(n,"");while(t.length!==(t=t.replace(a,"")).length){}return t.split("").reverse().join("")},buildURLFromParts:function e(t){return t.scheme+t.netLoc+t.path+t.params+t.query+t.fragment}};e.exports=s})()});var g=function e(t,i){if(/^[a-z]+:/i.test(i)){return i}if(!/\\/\\//i.test(t)){t=m.buildAbsoluteURL(l["default"].location&&l["default"].location.href||"",t)}return m.buildAbsoluteURL(t,i)};var y=g;var _=function e(t,i,r){if(t&&r&&r.responseURL&&i!==r.responseURL){return r.responseURL}return i};var b=function(){function e(){this.listeners={}}var t=e.prototype;t.on=function e(t,i){if(!this.listeners[t]){this.listeners[t]=[]}this.listeners[t].push(i)};t.off=function e(t,i){if(!this.listeners[t]){return false}var r=this.listeners[t].indexOf(i);this.listeners[t]=this.listeners[t].slice(0);this.listeners[t].splice(r,1);return r>-1};t.trigger=function e(t){var i=this.listeners[t];if(!i){return}if(arguments.length===2){var r=i.length;for(var n=0;n<r;++n){i[n].call(this,arguments[1])}}
1else{var a=Array.prototype.slice.call(arguments,1);var s=i.length;for(var o=0;o<s;++o){i[o].apply(this,a)}}};t.dispose=function e(){this.listeners={}};t.pipe=function e(t){this.on("data",function(e){t.push(e)})};return e}();var T=p(function(e){function t(){e.exports=t=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var r in i){if(Object.prototype.hasOwnProperty.call(i,r)){e[r]=i[r]}}}return e};return t.apply(this,arguments)}e.exports=t});var S=function e(t){return l["default"].atob?l["default"].atob(t):Buffer.from(t,"base64").toString("binary")};function k(e){var t=S(e);var i=new Uint8Array(t.length);for(var r=0;r<t.length;r++){i[r]=t.charCodeAt(r)}return i}var E=function(e){h(t,e);function t(){var t;t=e.call(this)||this;t.buffer="";return t}var i=t.prototype;i.push=function e(t){var i;this.buffer+=t;i=this.buffer.indexOf("\\n");for(;i>-1;i=this.buffer.indexOf("\\n")){this.trigger("data",this.buffer.substring(0,i));this.buffer=this.buffer.substring(i+1)}};return t}(b);var j=function e(){var t="[^=]*";var i=\'"[^"]*"|[^,]*\';var r="(?:"+t+")=(?:"+i+")";return new RegExp("(?:^|,)("+r+")")};var w=function e(t){var i=t.split(j());var r={};var n=i.length;var a;while(n--){if(i[n]===""){continue}a=/([^=]*)=(.*)/.exec(i[n]).slice(1);a[0]=a[0].replace(/^\\s+|\\s+$/g,"");a[1]=a[1].replace(/^\\s+|\\s+$/g,"");a[1]=a[1].replace(/^[\'"](.*)[\'"]$/g,"$1");r[a[0]]=a[1]}return r};var C=function(e){h(t,e);function t(){var t;t=e.call(this)||this;t.customParsers=[];t.tagMappers=[];return t}var i=t.prototype;i.push=function e(t){var i=this;var r;var n;t=t.trim();if(t.length===0){return}if(t[0]!=="#"){this.trigger("data",{type:"uri",uri:t});return}var a=this.tagMappers.reduce(function(e,i){var r=i(t);if(r===t){return e}return e.concat([r])},[t]);a.forEach(function(e){for(var t=0;t<i.customParsers.length;t++){if(i.customParsers[t].call(i,e)){return}}if(e.indexOf("#EXT")!==0){i.trigger("data",{type:"comment",text:e.slice(1)});return}e=e.replace("\\r","");r=/^#EXTM3U/.exec(e);if(r){i.trigger("data",{type:"tag",tagType:"m3u"});return}r=/^#EXTINF:?([0-9\\.]*)?,?(.*)?$/.exec(e);if(r){n={type:"tag",tagType:"inf"};if(r[1]){n.duration=parseFloat(r[1])}if(r[2]){n.title=r[2]}i.trigger("data",n);return}r=/^#EXT-X-TARGETDURATION:?([0-9.]*)?/.exec(e);if(r){n={type:"tag",tagType:"targetduration"};if(r[1]){n.duration=parseInt(r[1],10)}i.trigger("data",n);return}r=/^#ZEN-TOTAL-DURATION:?([0-9.]*)?/.exec(e);if(r){n={type:"tag",tagType:"totalduration"};if(r[1]){n.duration=parseInt(r[1],10)}i.trigger("data",n);return}r=/^#EXT-X-VERSION:?([0-9.]*)?/.exec(e);if(r){n={type:"tag",tagType:"version"};if(r[1]){n.version=parseInt(r[1],10)}i.trigger("data",n);return}r=/^#EXT-X-MEDIA-SEQUENCE:?(\\-?[0-9.]*)?/.exec(e);if(r){n={type:"tag",tagType:"media-sequence"};if(r[1]){n.number=parseInt(r[1],10)}i.trigger("data",n);return}r=/^#EXT-X-DISCONTINUITY-SEQUENCE:?(\\-?[0-9.]*)?/.exec(e);if(r){n={type:"tag",tagType:"discontinuity-sequence"};if(r[1]){n.number=parseInt(r[1],10)}i.trigger("data",n);return}r=/^#EXT-X-PLAYLIST-TYPE:?(.*)?$/.exec(e);if(r){n={type:"tag",tagType:"playlist-type"};if(r[1]){n.playlistType=r[1]}i.trigger("data",n);return}r=/^#EXT-X-BYTERANGE:?([0-9.]*)?@?([0-9.]*)?/.exec(e);if(r){n={type:"tag",tagType:"byterange"};if(r[1]){n.length=parseInt(r[1],10)}if(r[2]){n.offset=parseInt(r[2],10)}i.trigger("data",n);return}r=/^#EXT-X-ALLOW-CACHE:?(YES|NO)?/.exec(e);if(r){n={type:"tag",tagType:"allow-cache"};if(r[1]){n.allowed=!/NO/.test(r[1])}i.trigger("data",n);return}r=/^#EXT-X-MAP:?(.*)$/.exec(e);if(r){n={type:"tag",tagType:"map"};if(r[1]){var a=w(r[1]);if(a.URI){n.uri=a.URI}if(a.BYTERANGE){var s=a.BYTERANGE.split("@"),o=s[0],l=s[1];n.byterange={};if(o){n.byterange.length=parseInt(o,10)}if(l){n.byterange.offset=parseInt(l,10)}}}i.trigger("data",n);return}r=/^#EXT-X-STREAM-INF:?(.*)$/.exec(e);if(r){n={type:"tag",tagType:"stream-inf"};if(r[1]){n.attributes=w(r[1]);if(n.attributes.RESOLUTION){var u=n.attributes.RESOLUTION.split("x");var c={};if(u[0]){c.width=parseInt(u[0],10)}if(u[1]){c.height=parseInt(u[1],10)}n.attributes.RESOLUTION=c}
1if(n.attributes.BANDWIDTH){n.attributes.BANDWIDTH=parseInt(n.attributes.BANDWIDTH,10)}if(n.attributes["PROGRAM-ID"]){n.attributes["PROGRAM-ID"]=parseInt(n.attributes["PROG'),t[0].s.push('A:?(.*)$/.exec(e);if(r){n={type:"tag",tagType:"media"};if(r[1]){n.attributes=w(r[1])}i.trigger("data",n);return}r=/^#EXT-X-ENDLIST/.exec(e);if(r){i.trigger("data",{type:"tag",tagType:"endlist"});return}r=/^#EXT-X-DISCONTINUITY/.exec(e);if(r){i.trigger("data",{type:"tag",tagType:"discontinuity"});return}r=/^#EXT-X-PROGRAM-DATE-TIME:?(.*)$/.exec(e);if(r){n={type:"tag",tagType:"program-date-time"};if(r[1]){n.dateTimeString=r[1];n.dateTimeObject=new Date(r[1])}i.trigger("data",n);return}r=/^#EXT-X-KEY:?(.*)$/.exec(e);if(r){n={type:"tag",tagType:"key"};if(r[1]){n.attributes=w(r[1]);if(n.attributes.IV){if(n.attributes.IV.substring(0,2).toLowerCase()==="0x"){n.attributes.IV=n.attributes.IV.substring(2)}n.attributes.IV=n.attributes.IV.match(/.{8}/g);n.attributes.IV[0]=parseInt(n.attributes.IV[0],16);n.attributes.IV[1]=parseInt(n.attributes.IV[1],16);n.attributes.IV[2]=parseInt(n.attributes.IV[2],16);n.attributes.IV[3]=parseInt(n.attributes.IV[3],16);n.attributes.IV=new Uint32Array(n.attributes.IV)}}i.trigger("data",n);return}r=/^#EXT-X-START:?(.*)$/.exec(e);if(r){n={type:"tag",tagType:"start"};if(r[1]){n.attributes=w(r[1]);n.attributes["TIME-OFFSET"]=parseFloat(n.attributes["TIME-OFFSET"]);n.attributes.PRECISE=/YES/.test(n.attributes.PRECISE)}i.trigger("data",n);return}r=/^#EXT-X-CUE-OUT-CONT:?(.*)?$/.exec(e);if(r){n={type:"tag",tagType:"cue-out-cont"};if(r[1]){n.data=r[1]}else{n.data=""}i.trigger("data",n);return}r=/^#EXT-X-CUE-OUT:?(.*)?$/.exec(e);if(r){n={type:"tag",tagType:"cue-out"};if(r[1]){n.data=r[1]}else{n.data=""}i.trigger("data",n);return}r=/^#EXT-X-CUE-IN:?(.*)?$/.exec(e);if(r){n={type:"tag",tagType:"cue-in"};if(r[1]){n.data=r[1]}else{n.data=""}i.trigger("data",n);return}i.trigger("data",{type:"tag",data:e.slice(4)})})};i.addParser=function e(t){var i=this;var r=t.expression,n=t.customType,a=t.dataParser,s=t.segment;if(typeof a!=="function"){a=function e(t){return t}}this.customParsers.push(function(e){var t=r.exec(e);if(t){i.trigger("data",{type:"custom",data:a(e),customType:n,segment:s});return true}})};i.addTagMapper=function e(t){var i=t.expression,r=t.map;var n=function e(t){if(i.test(t)){return r(t)}return t};this.tagMappers.push(n)};return t}(b);var I=function(e){h(t,e);function t(){var t;t=e.call(this)||this;t.lineStream=new E;t.parseStream=new C;t.lineStream.pipe(t.parseStream);var i=d(t);var r=[];var n={};var a;var s;var o=function e(){};var l={AUDIO:{},VIDEO:{},"CLOSED-CAPTIONS":{},SUBTITLES:{}};var u="urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed";var c=0;t.manifest={allowCache:true,discontinuityStarts:[],segments:[]};var f=0;t.parseStream.on("data",function(e){var t;var d;({tag:function h(){(({"allow-cache":function t(){this.manifest.allowCache=e.allowed;if(!("allowed"in e)){this.trigger("info",{message:"defaulting allowCache to YES"});this.manifest.allowCache=true}},byterange:function t(){var t={};if("length"in e){n.byterange=t;t.length=e.length;if(!("offset"in e)){e.offset=f}}if("offset"in e){n.byterange=t;t.offset=e.offset}f=t.offset+t.length},endlist:function e(){this.manifest.endList=true},inf:function t(){if(!("mediaSequence"in this.manifest)){this.manifest.mediaSequence=0;this.trigger("info",{message:"defaulting media sequence to zero"})}if(!("discontinuitySequence"in this.manifest)){this.manifest.discontinuitySequence=0;this.trigger("info",{message:"defaulting discontinuity sequence to zero"})}if(e.duration>0){n.duration=e.duration}if(e.duration===0){n.duration=.01;this.trigger("info",{message:"updating zero segment duration to a small value"})}this.manifest.segments=r},key:function t(){if(!e.attributes){this.trigger("warn",{message:"ignoring key declaration without attribute list"});return}if(e.attributes.METHOD==="NONE"){s=null;return}if(!e.attributes.URI){this.trigger("warn",{message:"ignoring key declaration without URI"});return}if(e.attributes.KEYFORMAT===u){var i=["SAMPLE-AES","SAMPLE-AES-CTR","SAMPLE-AES-CENC"];if(i.indexOf(e.attributes.METHOD)===-1){this.trigger("warn",{message:"invalid key method provided for Widevine"});return}if(e.attributes.METHOD==="SAMPLE-AES-CENC"){this.trigger("warn",{message:"SAMPLE-AES-CENC is deprecated, please use SAMPLE-AES-CTR instead"})}if(e.attributes.URI.substring(0,23)!=="data:text/plain;base64,"){this.trigger("warn",{message:"invalid key URI provided for Widevine"});return}if(!(e.attributes.KEYID&&e.attributes.KEYID.substring(0,2)==="0x")){this.trigger("warn",{message:"invalid key ID provided for Widevine"});return}this.manifest.contentProtection={"com.widevine.alpha":{attributes:{schemeIdUri:e.attributes.KEYFORMAT,keyId:e.attributes.KEYID.substring(2)},pssh:k(e.attributes.URI.split(",")[1])}};return}if(!e.attributes.METHOD){this.trigger("warn",{message:"defaulting key method to AES-128"})}s={method:e.attributes.METHOD||"AES-128",uri:e.attributes.URI};if(typeof e.attributes.IV!=="undefined"){s.iv=e.attributes.IV}},"media-sequence":function t(){if(!isFinite(e.number)){this.trigger("warn",{message:"ignoring invalid media sequence: "+e.number});return}this.manifest.mediaSequence=e.number},"discontinuity-sequence":function t(){if(!isFinite(e.number)){this.trigger("warn",{message:"ignoring invalid discontinuity sequence: "+e.number});return}this.manifest.discontinuitySequence=e.number;c=e.number},"playlist-type":function t(){if(!/VOD|EVENT/.test(e.playlistType)){this.trigger("warn",{message:"ignoring unknown playlist type: "+e.playlist});return}this.manifest.playlistType=e.playlistType},map:function t(){a={};
1if(e.uri){a.uri=e.uri}if(e.byterange){a.byterange=e.byterange}},"stream-inf":function t(){this.manifest.playlists=r;this.manifest.mediaGroups=this.manifest.mediaGroups||l;if(!e.attributes){this.trigger("warn",{message:"ignoring empty stream-inf attributes"});return}if(!n.attributes){n.attributes={}}T(n.attributes,e.attributes)},media:function i(){this.manifest.mediaGroups=this.manifest.mediaGroups||l;if(!(e.attributes&&e.attributes.TYPE&&e.attributes["GROUP-ID"]&&e.attributes.NAME)){this.trigger("warn",{message:"ignoring incomplete or missing media group"});return}var r=this.manifest.mediaGroups[e.attributes.TYPE];r[e.attributes["GROUP-ID"]]=r[e.attributes["GROUP-ID"]]||{};t=r[e.attributes["GROUP-ID"]];d={default:/yes/i.test(e.attributes.DEFAULT)};if(d.default){d.autoselect=true}else{d.autoselect=/yes/i.test(e.attributes.AUTOSELECT)}if(e.attributes.LANGUAGE){d.language=e.attributes.LANGUAGE}if(e.attributes.URI){d.uri=e.attributes.URI}if(e.attributes["INSTREAM-ID"]){d.instreamId=e.attributes["INSTREAM-ID"]}if(e.attributes.CHARACTERISTICS){d.characteristics=e.attributes.CHARACTERISTICS}if(e.attributes.FORCED){d.forced=/yes/i.test(e.attributes.FORCED)}t[e.attributes.NAME]=d},discontinuity:function e(){c+=1;n.discontinuity=true;this.manifest.discontinuityStarts.push(r.length)},"program-date-time":function t(){if(typeof this.manifest.dateTimeString==="undefined"){this.manifest.dateTimeString=e.dateTimeString;this.manifest.dateTimeObject=e.dateTimeObject}n.dateTimeString=e.dateTimeString;n.dateTimeObject=e.dateTimeObject},targetduration:function t(){if(!isFinite(e.duration)||e.duration<0){this.trigger("warn",{message:"ignoring invalid target duration: "+e.duration});return}this.manifest.targetDuration=e.duration},totalduration:function t(){if(!isFinite(e.duration)||e.duration<0){this.trigger("warn",{message:"ignoring invalid total duration: "+e.duration});return}this.manifest.totalDuration=e.duration},start:function t(){if(!e.attributes||isNaN(e.attributes["TIME-OFFSET"])){this.trigger("warn",{message:"ignoring start declaration without appropriate attribute list"});return}this.manifest.start={timeOffset:e.attributes["TIME-OFFSET"],precise:e.attributes.PRECISE}},"cue-out":function t(){n.cueOut=e.data},"cue-out-cont":function t(){n.cueOutCont=e.data},"cue-in":function t(){n.cueIn=e.data}})[e.tagType]||o).call(i)},uri:function t(){n.uri=e.uri;r.push(n);if(this.manifest.targetDuration&&!("duration"in n)){this.trigger("warn",{message:"defaulting segment duration to the target duration"});n.duration=this.manifest.targetDuration}if(s){n.key=s}n.timeline=c;if(a){n.map=a}n={}},comment:function e(){},custom:function t(){if(e.segment){n.custom=n.custom||{};n.custom[e.customType]=e.data}else{this.manifest.custom=this.manifest.custom||{};this.manifest.custom[e.customType]=e.data}}})[e.type].call(i)});return t}var i=t.prototype;i.push=function e(t){this.lineStream.push(t)};i.end=function e(){this.lineStream.push("\\n")};i.addParser=function e(t){this.parseStream.addParser(t)};i.addTagMapper=function e(t){this.parseStream.addTagMapper(t)};return t}(b);var A=u["default"].log;var x=function e(t,i){return t+"-"+i};var P=function e(t){var i=t.manifestString,r=t.customTagParsers,n=r===void 0?[]:r,a=t.customTagMappers,s=a===void 0?[]:a;var o=new I;n.forEach(function(e){return o.addParser(e)});s.forEach(function(e){return o.addTagMapper(e)});o.push(i);o.end();return o.manifest};var O=function e(t,i){["AUDIO","SUBTITLES"].forEach(function(e){for(var r in t.mediaGroups[e]){for(var n in t.mediaGroups[e][r]){var a=t.mediaGroups[e][r][n];i(a,e,r,n)}}})};var L=function e(t){var i=t.playlist,r=t.uri,n=t.id;i.id=n;if(r){i.uri=r}i.attributes=i.attributes||{}};var D=function e(t){var i=t.playlists.length;while(i--){var r=t.playlists[i];L({playlist:r,id:x(i,r.uri)});r.resolvedUri=y(t.uri,r.uri);t.playlists[r.id]=r;t.playlists[r.uri]=r;if(!r.attributes.BANDWIDTH){A.warn("Invalid playlist STREAM-INF detected. Missing BANDWIDTH attribute.")}}};var R=function e(t){O(t,function(e){if(e.uri){e.resolvedUri=y(t.uri,e.uri)}})};var N=function e(t,i){var r=x(0,i);var n={mediaGroups:{AUDIO:{},VIDEO:{},"CLOSED-CAPTIONS":{},SUBTITLES:{}},uri:l["default"].location.href,resolvedUri:l["default"].location.href,playlists:[{uri:i,id:r,resolvedUri:i,attributes:{}}]};n.playlists[r]=n.playlists[0];n.playlists[i]=n.playlists[0];return n};
1var M=function e(t,i){t.uri=i;for(var r=0;r<t.playlists.length;r++){if(!t.playlists[r].uri){var n="placeholder-uri-"+r;t.playlists[r].uri=n}}O(t,function(e,i,r,n){if(!e.playlists||!e.playlists.length||e.playlists[0].uri){return}var a="placeholder-uri-"+i+"-"+r+"-"+n;var s=x(0,a);e.playlists[0].uri=a;e.playlists[0].id=s;t.playlists[s]=e.playlists[0];t.playlists[a]=e.playlists[0]});D(t);R(t)};var U=u["default"].mergeOptions,B=u["default"].EventTarget;var F=function e(t,i,r){var n=i.slice();r=r||0;var a=Math.min(t.length,i.length+r);for(var s=r;s<a;s++){n[s-r]=U(t[s],n[s-r])}return n};var H=function e(t,i){if(!t.resolvedUri){t.resolvedUri=y(i,t.uri)}if(t.key&&!t.key.resolvedUri){t.key.resolvedUri=y(i,t.key.uri)}if(t.map&&!t.map.resolvedUri){t.map.resolvedUri=y(i,t.map.uri)}};var V=function e(t,i){var r=U(t,{});var n=r.playlists[i.id];if(!n){return null}if(n.segments&&i.segments&&n.segments.length===i.segments.length&&n.endList===i.endList&&n.mediaSequence===i.mediaSequence){return null}var a=U(n,i);if(n.segments){a.segments=F(n.segments,i.segments,i.mediaSequence-n.mediaSequence)}a.segments.forEach(function(e){H(e,a.resolvedUri)});for(var s=0;s<r.playlists.length;s++){if(r.playlists[s].id===i.id){r.playlists[s]=a}}r.playlists[i.id]=a;r.playlists[i.uri]=a;return r};var q=function e(t,i){var r=t.segments[t.segments.length-1];var n;if(i&&r&&r.duration){n=r.duration*1e3}else{n=(t.targetDuration||10)*500}return n};var z=function(e){h(t,e);function t(t,i,r){var n;if(r===void 0){r={}}n=e.call(this)||this;if(!t){throw new Error("A non-empty playlist URL or object is required")}var a=r,s=a.withCredentials,o=s===void 0?false:s,l=a.handleManifestRedirects,u=l===void 0?false:l;n.src=t;n.vhs_=i;n.withCredentials=o;n.handleManifestRedirects=u;var c=i.options_;n.customTagParsers=c&&c.customTagParsers||[];n.customTagMappers=c&&c.customTagMappers||[];n.state="HAVE_NOTHING";n.on("mediaupdatetimeout",function(){if(n.state!=="HAVE_METADATA"){return}n.state="HAVE_CURRENT_METADATA";n.request=n.vhs_.xhr({uri:y(n.master.uri,n.media().uri),withCredentials:n.withCredentials},function(e,t){if(!n.request){return}if(e){return n.playlistRequestError(n.request,n.media(),"HAVE_METADATA")}n.haveMetadata({playlistString:n.request.responseText,url:n.media().uri,id:n.media().id})})});return n}var i=t.prototype;i.playlistRequestError=function e(t,i,r){var n=i.uri,a=i.id;this.request=null;if(r){this.state=r}this.error={playlist:this.master.playlists[a],status:t.status,message:"HLS playlist request error at URL: "+n+".",responseText:t.responseText,code:t.status>=500?4:2};this.trigger("error")};i.haveMetadata=function e(t){var i=this;var r=t.playlistString,n=t.playlistObject,a=t.url,s=t.id;this.request=null;this.state="HAVE_METADATA";var o=n||P({manifestString:r,customTagParsers:this.customTagParsers,customTagMappers:this.customTagMappers});o.lastRequest=Date.now();L({playlist:o,uri:a,id:s});var u=V(this.master,o);this.targetDuration=o.targetDuration;if(u){this.master=u;this.media_=this.master.playlists[s]}else{this.trigger("playlistunchanged")}if(!this.media().endList){l["default"].clearTimeout(this.mediaUpdateTimeout);this.mediaUpdateTimeout=l["default"].setTimeout(function(){i.trigger("mediaupdatetimeout")},q(this.media(),!!u))}this.trigger("loadedplaylist")};i.dispose=function e(){this.trigger("dispose");this.stopRequest();l["default"].clearTimeout(this.mediaUpdateTimeout);l["default"].clearTimeout(this.finalRenditionTimeout);this.off()};i.stopRequest=function e(){if(this.request){var t=this.request;this.request=null;t.onreadystatechange=null;t.abort()}};i.media=function e(t,i){var r=this;if(!t){return this.media_}if(this.state==="HAVE_NOTHING"){throw new Error("Cannot switch media playlist from "+this.state)}if(typeof t==="string"){if(!this.master.playlists[t]){throw new Error("Unknown playlist URI: "+t)}t=this.master.playlists[t]}l["default"].clearTimeout(this.finalRenditionTimeout);if(i){var n=t.targetDuration/2*1e3||5*1e3;this.finalRenditionTimeout=l["default"].setTimeout(this.media.bind(this,t,false),n);return}var a=this.state;var s=!this.media_||t.id!==this.media_.id;if(this.master.playlists[t.id].endList||t.endList&&t.segments.length){if(this.request){this.request.onreadystatechange=null;this.request.abort();this.request=null}this.state="HAVE_METADATA";this.media_=t;if(s){this.trigger("mediachanging");if(a==="HAVE_MASTER"){this.trigger("loadedmetadata")}else{this.trigger("mediachange")}}return}if(!s){return}this.state="SWITCHING_MEDIA";if(this.request){if(t.resolvedUri===this.request.url){return}this.request.onreadystatechange=null;this.request.abort();this.request=null}if(this.media_){this.trigger("mediachanging")}this.request=this.vhs_.xhr({uri:t.resolvedUri,withCredentials:this.withCredentials},function(e,i){if(!r.request){return}t.lastRequest=Date.now();t.resolvedUri=_(r.handleManifestRedirects,t.resolvedUri,i);if(e){return r.playlistRequestError(r.request,t,a)}r.haveMetadata({playlistString:i.responseText,url:t.uri,id:t.id});if(a==="HAVE_MASTER"){r.trigger("loadedmetadata")}else{r.trigger("mediachange")}})};i.pause=function e(){this.stopRequest();l["default"].clearTimeout(this.mediaUpdateTimeout);if(this.state==="HAVE_NOTHING"){this.started=false}if(this.state==="SWITCHING_MEDIA"){if(this.media_){this.state="HAVE_METADATA"}else{this.state="HAVE_MASTER"}}else if(this.state==="HAVE_CURRENT_METADATA"){this.state="HAVE_METADATA"}};i.load=function e(t){var i=this;l["default"].clearTimeout(this.mediaUpdateTimeout);var r=this.media();if(t){var n=r?r.targetDuration/2*1e3:5*1e3;this.mediaUpdateTimeout=l["default"].setTimeout(function(){return i.load()},n);return}if(!this.started){this.start();return}if(r&&!r.endList){this.trigger("mediaupdatetimeout")}else{this.trigger("loadedplaylist")}};i.start=function e(){var t=this;this.started=true;if(typeof this.src==="object"){if(!this.src.uri){this.src.uri=l["default"].location.href}this.src.resolvedUri=this.src.uri;setTimeout(function(){t.setupInitialPlaylist(t.src)},0);return}this.request=this.vhs_.xhr({uri:this.src,withCredentials:this.withCredentials},function(e,i){if(!t.request){return}t.request=null;if(e){t.error={status:i.status,message:"HLS playlist request error at URL: "+t.src+".",responseText:i.responseText,code:2};if(t.state==="HAVE_NOTHING"){t.started=false}return t.trigger("error")}t.src=_(t.handleManifestRedirects,t.src,i);var r=P({manifestString:i.responseText,customTagParsers:t.customTagParsers,customTagMappers:t.customTagMappers});t.setupInitialPlaylist(r)})};i.srcUri=function e(){return typeof this.src='),t[1].s.push('RAM-ID"],10)}}i.trigger("data",n);return}r=/^#EXT-X-MEDIA:?(.*)$/.exec(e);if(r){n={type:"tag",tagType:"media"};if(r[1]){n.attributes=w(r[1])}i.trigger("data",n);return}r=/^#EXT-X-ENDLIST/.exec(e);if(r){i.trigger("data",{type:"tag",tagType:"endlist"});return}r=/^#EXT-X-DISCONTINUITY/.exec(e);if(r){i.trigger("data",{type:"tag",tagType:"discontinuity"});return}r=/^#EXT-X-PROGRAM-DATE-TIME:?(.*)$/.exec(e);if(r){n={type:"tag",tagType:"program-date-time"};if(r[1]){n.dateTimeString=r[1];
1n.dateTimeObject=new Date(r[1])}i.trigger("data",n);return}r=/^#EXT-X-KEY:?(.*)$/.exec(e);if(r){n={type:"tag",tagType:"key"};if(r[1]){n.attributes=w(r[1]);if(n.attributes.IV){if(n.attributes.IV.substring(0,2).toLowerCase()==="0x"){n.attributes.IV=n.attributes.IV.substring(2)}n.attributes.IV=n.attributes.IV.match(/.{8}/g);n.attributes.IV[0]=parseInt(n.attributes.IV[0],16);n.attributes.IV[1]=parseInt(n.attributes.IV[1],16);n.attributes.IV[2]=parseInt(n.attributes.IV[2],16);n.attributes.IV[3]=parseInt(n.attributes.IV[3],16);n.attributes.IV=new Uint32Array(n.attributes.IV)}}i.trigger("data",n);return}r=/^#EXT-X-START:?(.*)$/.exec(e);if(r){n={type:"tag",tagType:"start"};if(r[1]){n.attributes=w(r[1]);n.attributes["TIME-OFFSET"]=parseFloat(n.attributes["TIME-OFFSET"]);n.attributes.PRECISE=/YES/.test(n.attributes.PRECISE)}i.trigger("data",n);return}r=/^#EXT-X-CUE-OUT-CONT:?(.*)?$/.exec(e);if(r){n={type:"tag",tagType:"cue-out-cont"};if(r[1]){n.data=r[1]}else{n.data=""}i.trigger("data",n);return}r=/^#EXT-X-CUE-OUT:?(.*)?$/.exec(e);if(r){n={type:"tag",tagType:"cue-out"};if(r[1]){n.data=r[1]}else{n.data=""}i.trigger("data",n);return}r=/^#EXT-X-CUE-IN:?(.*)?$/.exec(e);if(r){n={type:"tag",tagType:"cue-in"};if(r[1]){n.data=r[1]}else{n.data=""}i.trigger("data",n);return}i.trigger("data",{type:"tag",data:e.slice(4)})})};i.addParser=function e(t){var i=this;var r=t.expression,n=t.customType,a=t.dataParser,s=t.segment;if(typeof a!=="function"){a=function e(t){return t}}this.customParsers.push(function(e){var t=r.exec(e);if(t){i.trigger("data",{type:"custom",data:a(e),customType:n,segment:s});return true}})};i.addTagMapper=function e(t){var i=t.expression,r=t.map;var n=function e(t){if(i.test(t)){return r(t)}return t};this.tagMappers.push(n)};return t}(b);var I=function(e){h(t,e);function t(){var t;t=e.call(this)||this;t.lineStream=new E;t.parseStream=new C;t.lineStream.pipe(t.parseStream);var i=d(t);var r=[];var n={};var a;var s;var o=function e(){};var l={AUDIO:{},VIDEO:{},"CLOSED-CAPTIONS":{},SUBTITLES:{}};var u="urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed";var c=0;t.manifest={allowCache:true,discontinuityStarts:[],segments:[]};var f=0;t.parseStream.on("data",function(e){var t;var d;({tag:function h(){(({"allow-cache":function t(){this.manifest.allowCache=e.allowed;if(!("allowed"in e)){this.trigger("info",{message:"defaulting allowCache to YES"});this.manifest.allowCache=true}},byterange:function t(){var t={};if("length"in e){n.byterange=t;t.length=e.length;if(!("offset"in e)){e.offset=f}}if("offset"in e){n.byterange=t;t.offset=e.offset}f=t.offset+t.length},endlist:function e(){this.manifest.endList=true},inf:function t(){if(!("mediaSequence"in this.manifest)){this.manifest.mediaSequence=0;this.trigger("info",{message:"defaulting media sequence to zero"})}if(!("discontinuitySequence"in this.manifest)){this.manifest.discontinuitySequence=0;this.trigger("info",{message:"defaulting discontinuity sequence to zero"})}if(e.duration>0){n.duration=e.duration}if(e.duration===0){n.duration=.01;this.trigger("info",{message:"updating zero segment duration to a small value"})}this.manifest.segments=r},key:function t(){if(!e.attributes){this.trigger("warn",{message:"ignoring key declaration without attribute list"});return}if(e.attributes.METHOD==="NONE"){s=null;return}if(!e.attributes.URI){this.trigger("warn",{message:"ignoring key declaration without URI"});return}if(e.attributes.KEYFORMAT===u){var i=["SAMPLE-AES","SAMPLE-AES-CTR","SAMPLE-AES-CENC"];if(i.indexOf(e.attributes.METHOD)===-1){this.trigger("warn",{message:"invalid key method provided for Widevine"});return}if(e.attributes.METHOD==="SAMPLE-AES-CENC"){this.trigger("warn",{message:"SAMPLE-AES-CENC is deprecated, please use SAMPLE-AES-CTR instead"})}if(e.attributes.URI.substring(0,23)!=="data:text/plain;base64,"){this.trigger("warn",{message:"invalid key URI provided for Widevine"});return}if(!(e.attributes.KEYID&&e.attributes.KEYID.substring(0,2)==="0x")){this.trigger("warn",{message:"invalid key ID provided for Widevine"});return}this.manifest.contentProtection={"com.widevine.alpha":{attributes:{schemeIdUri:e.attributes.KEYFORMAT,keyId:e.attributes.KEYID.substring(2)},pssh:k(e.attributes.URI.split(",")[1])}};return}if(!e.attributes.METHOD){this.trigger("warn",{message:"defaulting key method to AES-128"})}s={method:e.attributes.METHOD||"AES-128",uri:e.attributes.URI};if(typeof e.attributes.IV!=="undefined"){s.iv=e.attributes.IV}},"media-sequence":function t(){if(!isFinite(e.number)){this.trigger("warn",{message:"ignoring invalid media sequence: "+e.number});return}this.manifest.mediaSequence=e.number},"discontinuity-sequence":function t(){if(!isFinite(e.number)){this.trigger("warn",{message:"ignoring invalid discontinuity sequence: "+e.number});return}this.manifest.discontinuitySequence=e.number;c=e.number},"playlist-type":function t(){if(!/VOD|EVENT/.test(e.playlistType)){this.trigger("warn",{message:"ignoring unknown playlist type: "+e.playlist});return}this.manifest.playlistType=e.playlistType},map:function t(){a={};
1if(e.uri){a.uri=e.uri}if(e.byterange){a.byterange=e.byterange}},"stream-inf":function t(){this.manifest.playlists=r;this.manifest.mediaGroups=this.manifest.mediaGroups||l;if(!e.attributes){this.trigger("warn",{message:"ignoring empty stream-inf attributes"});return}if(!n.attributes){n.attributes={}}T(n.attributes,e.attributes)},media:function i(){this.manifest.mediaGroups=this.manifest.mediaGroups||l;if(!(e.attributes&&e.attributes.TYPE&&e.attributes["GROUP-ID"]&&e.attributes.NAME)){this.trigger("warn",{message:"ignoring incomplete or missing media group"});return}var r=this.manifest.mediaGroups[e.attributes.TYPE];r[e.attributes["GROUP-ID"]]=r[e.attributes["GROUP-ID"]]||{};t=r[e.attributes["GROUP-ID"]];d={default:/yes/i.test(e.attributes.DEFAULT)};if(d.default){d.autoselect=true}else{d.autoselect=/yes/i.test(e.attributes.AUTOSELECT)}if(e.attributes.LANGUAGE){d.language=e.attributes.LANGUAGE}if(e.attributes.URI){d.uri=e.attributes.URI}if(e.attributes["INSTREAM-ID"]){d.instreamId=e.attributes["INSTREAM-ID"]}if(e.attributes.CHARACTERISTICS){d.characteristics=e.attributes.CHARACTERISTICS}if(e.attributes.FORCED){d.forced=/yes/i.test(e.attributes.FORCED)}t[e.attributes.NAME]=d},discontinuity:function e(){c+=1;n.discontinuity=true;this.manifest.discontinuityStarts.push(r.length)},"program-date-time":function t(){if(typeof this.manifest.dateTimeString==="undefined"){this.manifest.dateTimeString=e.dateTimeString;this.manifest.dateTimeObject=e.dateTimeObject}n.dateTimeString=e.dateTimeString;n.dateTimeObject=e.dateTimeObject},targetduration:function t(){if(!isFinite(e.duration)||e.duration<0){this.trigger("warn",{message:"ignoring invalid target duration: "+e.duration});return}this.manifest.targetDuration=e.duration},totalduration:function t(){if(!isFinite(e.duration)||e.duration<0){this.trigger("warn",{message:"ignoring invalid total duration: "+e.duration});return}this.manifest.totalDuration=e.duration},start:function t(){if(!e.attributes||isNaN(e.attributes["TIME-OFFSET"])){this.trigger("warn",{message:"ignoring start declaration without appropriate attribute list"});return}this.manifest.start={timeOffset:e.attributes["TIME-OFFSET"],precise:e.attributes.PRECISE}},"cue-out":function t(){n.cueOut=e.data},"cue-out-cont":function t(){n.cueOutCont=e.data},"cue-in":function t(){n.cueIn=e.data}})[e.tagType]||o).call(i)},uri:function t(){n.uri=e.uri;r.push(n);if(this.manifest.targetDuration&&!("duration"in n)){this.trigger("warn",{message:"defaulting segment duration to the target duration"});n.duration=this.manifest.targetDuration}if(s){n.key=s}n.timeline=c;if(a){n.map=a}n={}},comment:function e(){},custom:function t(){if(e.segment){n.custom=n.custom||{};n.custom[e.customType]=e.data}else{this.manifest.custom=this.manifest.custom||{};this.manifest.custom[e.customType]=e.data}}})[e.type].call(i)});return t}var i=t.prototype;i.push=function e(t){this.lineStream.push(t)};i.end=function e(){this.lineStream.push("\\n")};i.addParser=function e(t){this.parseStream.addParser(t)};i.addTagMapper=function e(t){this.parseStream.addTagMapper(t)};return t}(b);var A=u["default"].log;var x=function e(t,i){return t+"-"+i};var P=function e(t){var i=t.manifestString,r=t.customTagParsers,n=r===void 0?[]:r,a=t.customTagMappers,s=a===void 0?[]:a;var o=new I;n.forEach(function(e){return o.addParser(e)});s.forEach(function(e){return o.addTagMapper(e)});o.push(i);o.end();return o.manifest};var O=function e(t,i){["AUDIO","SUBTITLES"].forEach(function(e){for(var r in t.mediaGroups[e]){for(var n in t.mediaGroups[e][r]){var a=t.mediaGroups[e][r][n];i(a,e,r,n)}}})};var L=function e(t){var i=t.playlist,r=t.uri,n=t.id;i.id=n;if(r){i.uri=r}i.attributes=i.attributes||{}};var D=function e(t){var i=t.playlists.length;while(i--){var r=t.playlists[i];L({playlist:r,id:x(i,r.uri)});r.resolvedUri=y(t.uri,r.uri);t.playlists[r.id]=r;t.playlists[r.uri]=r;if(!r.attributes.BANDWIDTH){A.warn("Invalid playlist STREAM-INF detected. Missing BANDWIDTH attribute.")}}};var R=function e(t){O(t,function(e){if(e.uri){e.resolvedUri=y(t.uri,e.uri)}})};var N=function e(t,i){var r=x(0,i);var n={mediaGroups:{AUDIO:{},VIDEO:{},"CLOSED-CAPTIONS":{},SUBTITLES:{}},uri:l["default"].location.href,resolvedUri:l["default"].location.href,playlists:[{uri:i,id:r,resolvedUri:i,attributes:{}}]};n.playlists[r]=n.playlists[0];n.playlists[i]=n.playlists[0];return n};
1var M=function e(t,i){t.uri=i;for(var r=0;r<t.playlists.length;r++){if(!t.playlists[r].uri){var n="placeholder-uri-"+r;t.playlists[r].uri=n}}O(t,function(e,i,r,n){if(!e.playlists||!e.playlists.length||e.playlists[0].uri){return}var a="placeholder-uri-"+i+"-"+r+"-"+n;var s=x(0,a);e.playlists[0].uri=a;e.playlists[0].id=s;t.playlists[s]=e.playlists[0];t.playlists[a]=e.playlists[0]});D(t);R(t)};var U=u["default"].mergeOptions,B=u["default"].EventTarget;var F=function e(t,i,r){var n=i.slice();r=r||0;var a=Math.min(t.length,i.length+r);for(var s=r;s<a;s++){n[s-r]=U(t[s],n[s-r])}return n};var H=function e(t,i){if(!t.resolvedUri){t.resolvedUri=y(i,t.uri)}if(t.key&&!t.key.resolvedUri){t.key.resolvedUri=y(i,t.key.uri)}if(t.map&&!t.map.resolvedUri){t.map.resolvedUri=y(i,t.map.uri)}};var V=function e(t,i){var r=U(t,{});var n=r.playlists[i.id];if(!n){return null}if(n.segments&&i.segments&&n.segments.length===i.segments.length&&n.endList===i.endList&&n.mediaSequence===i.mediaSequence){return null}var a=U(n,i);if(n.segments){a.segments=F(n.segments,i.segments,i.mediaSequence-n.mediaSequence)}a.segments.forEach(function(e){H(e,a.resolvedUri)});for(var s=0;s<r.playlists.length;s++){if(r.playlists[s].id===i.id){r.playlists[s]=a}}r.playlists[i.id]=a;r.playlists[i.uri]=a;return r};var q=function e(t,i){var r=t.segments[t.segments.length-1];var n;if(i&&r&&r.duration){n=r.duration*1e3}else{n=(t.targetDuration||10)*500}return n};var z=function(e){h(t,e);function t(t,i,r){var n;if(r===void 0){r={}}n=e.call(this)||this;if(!t){throw new Error("A non-empty playlist URL or object is required")}var a=r,s=a.withCredentials,o=s===void 0?false:s,l=a.handleManifestRedirects,u=l===void 0?false:l;n.src=t;n.vhs_=i;n.withCredentials=o;n.handleManifestRedirects=u;var c=i.options_;n.customTagParsers=c&&c.customTagParsers||[];n.customTagMappers=c&&c.customTagMappers||[];n.state="HAVE_NOTHING";n.on("mediaupdatetimeout",function(){if(n.state!=="HAVE_METADATA"){return}n.state="HAVE_CURRENT_METADATA";n.request=n.vhs_.xhr({uri:y(n.master.uri,n.media().uri),withCredentials:n.withCredentials},function(e,t){if(!n.request){return}if(e){return n.playlistRequestError(n.request,n.media(),"HAVE_METADATA")}n.haveMetadata({playlistString:n.request.responseText,url:n.media().uri,id:n.media().id})})});return n}var i=t.prototype;i.playlistRequestError=function e(t,i,r){var n=i.uri,a=i.id;this.request=null;if(r){this.state=r}this.error={playlist:this.master.playlists[a],status:t.status,message:"HLS playlist request error at URL: "+n+".",responseText:t.responseText,code:t.status>=500?4:2};this.trigger("error")};i.haveMetadata=function e(t){var i=this;var r=t.playlistString,n=t.playlistObject,a=t.url,s=t.id;this.request=null;this.state="HAVE_METADATA";var o=n||P({manifestString:r,customTagParsers:this.customTagParsers,customTagMappers:this.customTagMappers});o.lastRequest=Date.now();L({playlist:o,uri:a,id:s});var u=V(this.master,o);this.targetDuration=o.targetDuration;if(u){this.master=u;this.media_=this.master.playlists[s]}else{this.trigger("playlistunchanged")}if(!this.media().endList){l["default"].clearTimeout(this.mediaUpdateTimeout);this.mediaUpdateTimeout=l["default"].setTimeout(function(){i.trigger("mediaupdatetimeout")},q(this.media(),!!u))}this.trigger("loadedplaylist")};i.dispose=function e(){this.trigger("dispose");this.stopRequest();l["default"].clearTimeout(this.mediaUpdateTimeout);l["default"].clearTimeout(this.finalRenditionTimeout);this.off()};i.stopRequest=function e(){if(this.request){var t=this.request;this.request=null;t.onreadystatechange=null;t.abort()}};i.media=function e(t,i){var r=this;if(!t){return this.media_}if(this.state==="HAVE_NOTHING"){throw new Error("Cannot switch media playlist from "+this.state)}if(typeof t==="string"){if(!this.master.playlists[t]){throw new Error("Unknown playlist URI: "+t)}t=this.master.playlists[t]}l["default"].clearTimeout(this.finalRenditionTimeout);if(i){var n=t.targetDuration/2*1e3||5*1e3;this.finalRenditionTimeout=l["default"].setTimeout(this.media.bind(this,t,false),n);return}var a=this.state;var s=!this.media_||t.id!==this.media_.id;if(this.master.playlists[t.id].endList||t.endList&&t.segments.length){if(this.request){this.request.onreadystatechange=null;this.request.abort();this.request=null}this.state="HAVE_METADATA";this.media_=t;if(s){this.trigger("mediachanging");if(a==="HAVE_MASTER"){this.trigger("loadedmetadata")}else{this.trigger("mediachange")}}return}if(!s){return}this.state="SWITCHING_MEDIA";if(this.request){if(t.resolvedUri===this.request.url){return}this.request.onreadystatechange=null;this.request.abort();this.request=null}if(this.media_){this.trigger("mediachanging")}this.request=this.vhs_.xhr({uri:t.resolvedUri,withCredentials:this.withCredentials},function(e,i){if(!r.request){return}t.lastRequest=Date.now();t.resolvedUri=_(r.handleManifestRedirects,t.resolvedUri,i);if(e){return r.playlistRequestError(r.request,t,a)}r.haveMetadata({playlistString:i.responseText,url:t.uri,id:t.id});if(a==="HAVE_MASTER"){r.trigger("loadedmetadata")}else{r.trigger("mediachange")}})};i.pause=function e(){this.stopRequest();l["default"].clearTimeout(this.mediaUpdateTimeout);if(this.state==="HAVE_NOTHING"){this.started=false}if(this.state==="SWITCHING_MEDIA"){if(this.media_){this.state="HAVE_METADATA"}else{this.state="HAVE_MASTER"}}else if(this.state==="HAVE_CURRENT_METADATA"){this.state="HAVE_METADATA"}};i.load=function e(t){var i=this;l["default"].clearTimeout(this.mediaUpdateTimeout);var r=this.media();if(t){var n=r?r.targetDuration/2*1e3:5*1e3;this.mediaUpdateTimeout=l["default"].setTimeout(function(){return i.load()},n);return}if(!this.started){this.start();return}if(r&&!r.endList){this.trigger("mediaupdatetimeout")}else{this.trigger("loadedplaylist")}};i.start=function e(){var t=this;this.started=true;if(typeof this.src==="object"){if(!this.src.uri){this.src.uri=l["default"].location.href}this.src.resolvedUri=this.src.uri;setTimeout(function(){t.setupInitialPlaylist(t.src)},0);return}this.request=this.vhs_.xhr({uri:this.src,withCredentials:this.withCredentials},function(e,i){if(!t.request){return}t.request=null;if(e){t.error={status:i.status,message:"HLS playlist request error at URL: "+t.src+".",responseText:i.responseText,code:2};if(t.state==="HAVE_NOTHING"){t.started=false}return t.trigger("error")}t.src=_(t.handleManifestRedirects,t.src,i);var r=P({manifestString:i.responseText,customTagParsers:t.customTagParsers,customTagMappers:t.customTagMappers});t.setupInitialPlay'),t[0].s.push('=="string"?this.src:this.src.uri};i.setupInitialPlaylist=function e(t){this.state="HAVE_MASTER";if(t.playlists){this.master=t;M(this.master,this.srcUri());
1t.playlists.forEach(function(e){if(e.segments){e.segments.forEach(function(t){H(t,e.resolvedUri)})}});this.trigger("loadedplaylist");if(!this.request){this.media(this.master.playlists[0])}return}var i=this.srcUri()||l["default"].location.href;this.master=N(t,i);this.haveMetadata({playlistObject:t,url:i,id:this.master.playlists[0].id});this.trigger("loadedmetadata")};return t}(B);var W=1/30;var G=W*3;var Y=function e(t,i){var r=[];var n;if(t&&t.length){for(n=0;n<t.length;n++){if(i(t.start(n),t.end(n))){r.push([t.start(n),t.end(n)])}}}return u["default"].createTimeRanges(r)};var K=function e(t,i){return Y(t,function(e,t){return e-G<=i&&t+G>=i})};var X=function e(t,i){return Y(t,function(e){return e-W>=i})};var Q=function e(t){if(t.length<2){return u["default"].createTimeRanges()}var i=[];for(var r=1;r<t.length;r++){var n=t.end(r-1);var a=t.start(r);i.push([n,a])}return u["default"].createTimeRanges(i)};var J=function e(t,i){var r=null;var n=null;var a=0;var s=[];var o=[];if(!t||!t.length||!i||!i.length){return u["default"].createTimeRange()}var l=t.length;while(l--){s.push({time:t.start(l),type:"start"});s.push({time:t.end(l),type:"end"})}l=i.length;while(l--){s.push({time:i.start(l),type:"start"});s.push({time:i.end(l),type:"end"})}s.sort(function(e,t){return e.time-t.time});for(l=0;l<s.length;l++){if(s[l].type==="start"){a++;if(a===2){r=s[l].time}}else if(s[l].type==="end"){a--;if(a===1){n=s[l].time}}if(r!==null&&n!==null){o.push([r,n]);r=null;n=null}}return u["default"].createTimeRanges(o)};var Z=function e(t){var i=[];if(!t||!t.length){return""}for(var r=0;r<t.length;r++){i.push(t.start(r)+" => "+t.end(r))}return i.join(", ")};var $=function e(t,i,r){if(r===void 0){r=1}var n=t.length?t.end(t.length-1):0;return(n-i)/r};var ee=function e(t){var i=[];for(var r=0;r<t.length;r++){i.push({start:t.start(r),end:t.end(r)})}return i};var te=function e(t,i){if(t===i){return false}if(!t&&i||!i&&t){return true}if(t.length!==i.length){return true}for(var r=0;r<t.length;r++){if(t.start(r)!==i.start(r)||t.end(r)!==i.end(r)){return true}}return false};var ie=u["default"].createTimeRange;var re=function e(t,i){var r=0;var n=i-t.mediaSequence;var a=t.segments[n];if(a){if(typeof a.start!=="undefined"){return{result:a.start,precise:true}}if(typeof a.end!=="undefined"){return{result:a.end-a.duration,precise:true}}}while(n--){a=t.segments[n];if(typeof a.end!=="undefined"){return{result:r+a.end,precise:true}}r+=a.duration;if(typeof a.start!=="undefined"){return{result:r+a.start,precise:true}}}return{result:r,precise:false}};var ne=function e(t,i){var r=0;var n;var a=i-t.mediaSequence;for(;a<t.segments.length;a++){n=t.segments[a];if(typeof n.start!=="undefined"){return{result:n.start-r,precise:true}}r+=n.duration;if(typeof n.end!=="undefined"){return{result:n.end-r,precise:true}}}return{result:-1,precise:false}};var ae=function e(t,i,r){if(typeof i==="undefined"){i=t.mediaSequence+t.segments.length}if(i<t.mediaSequence){return 0}var n=re(t,i);if(n.precise){return n.result}var a=ne(t,i);if(a.precise){return a.result}return n.result+r};var se=function e(t,i,r){if(!t){return 0}if(typeof r!=="number"){r=0}if(typeof i==="undefined"){if(t.totalDuration){return t.totalDuration}if(!t.endList){return l["default"].Infinity}}return ae(t,i,r)};var oe=function e(t,i,r){var n=0;if(i>r){var a=[r,i];i=a[0];r=a[1]}if(i<0){for(var s=i;s<Math.min(0,r);s++){n+=t.targetDuration}i=0}for(var o=i;o<r;o++){n+=t.segments[o].duration}return n};var le=function e(t,i){if(!t.segments.length){return 0}var r=t.segments.length;var n=t.segments[r-1].duration||t.targetDuration;var a=typeof i==="number"?i:n+t.targetDuration*2;if(a===0){return r}var s=0;while(r--){s+=t.segments[r].duration;if(s>=a){break}}return Math.max(0,r)};var ue=function e(t,i,r,n){if(!t||!t.segments){return null}if(t.endList){return se(t)}if(i===null){return null}i=i||0;var a=r?le(t,n):t.segments.length;return ae(t,t.mediaSequence+a,i)};var ce=function e(t,i,r){var n=true;var a=i||0;var s=ue(t,i,n,r);if(s===null){return ie()}return ie(a,s)};var de=function e(t,i,r,n){var a;var s;var o=t.segments.length;var l=i-n;if(l<0){if(r>0){for(a=r-1;a>=0;a--){s=t.segments[a];l+=s.duration+W;if(l>0){return{mediaIndex:a,startTime:n-oe(t,r,a)}}}}return{mediaIndex:0,startTime:i}}if(r<0){for(a=r;a<0;a++){l-=t.targetDuration;if(l<0){return{mediaIndex:0,startTime:i}}}r=0}for(a=r;a<o;a++){s=t.segments[a];l-=s.duration+W;if(l<0){return{mediaIndex:a,startTime:n+oe(t,r,a)}}}return{mediaIndex:o-1,startTime:i}};var fe=function e(t){return t.excludeUntil&&t.excludeUntil>Date.now()};var he=function e(t){return t.excludeUntil&&t.excludeUntil===Infinity};var pe=function e(t){var i=fe(t);return!t.disabled&&!i};var ve=function e(t){return t.disabled};var me=function e(t){for(var i=0;i<t.segments.length;i++){if(t.segments[i].key){return true}}return false};var ge=function e(t,i){return i.attributes&&i.attributes[t]};var ye=function e(t,i,r,n){if(n===void 0){n=0}if(!ge("BANDWIDTH",r)){return NaN}var a=t*r.attributes.BANDWIDTH;return(a-n*8)/i};var _e=function e(t,i){if(t.playlists.length===1){return true}var r=i.attributes.BANDWIDTH||Number.MAX_VALUE;return t.playlists.filter(function(e){if(!pe(e)){return false}return(e.attributes.BANDWIDTH||0)<r}).length===0};
1var be={duration:se,seekable:ce,safeLiveIndex:le,getMediaInfoForTime:de,isEnabled:pe,isDisabled:ve,isBlacklisted:fe,isIncompatible:he,playlistEnd:ue,isAes:me,hasAttribute:ge,estimateSegmentRequestTime:ye,isLowestEnabledRendition:_e};var Te=u["default"].xhr,Se=u["default"].mergeOptions;var ke=function e(t,i,r,n){var a=t.responseType==="arraybuffer"?t.response:t.responseText;if(!i&&a){t.responseTime=Date.now();t.roundTripTime=t.responseTime-t.requestTime;t.bytesReceived=a.byteLength||a.length;if(!t.bandwidth){t.bandwidth=Math.floor(t.bytesReceived/t.roundTripTime*8*1e3)}}if(r.headers){t.responseHeaders=r.headers}if(i&&i.code==="ETIMEDOUT"){t.timedout=true}if(!i&&!t.aborted&&r.statusCode!==200&&r.statusCode!==206&&r.statusCode!==0){i=new Error("XHR Failed with a response of: "+(t&&(a||t.responseText)))}n(i,t)};var Ee=function e(){var t=function e(t,i){t=Se({timeout:45e3},t);var r=e.beforeRequest||u["default"].Vhs.xhr.beforeRequest;if(r&&typeof r==="function"){var n=r(t);if(n){t=n}}var a=Te(t,function(e,t){return ke(a,e,t,i)});var s=a.abort;a.abort=function(){a.aborted=true;return s.apply(a,arguments)};a.uri=t.uri;a.requestTime=Date.now();return a};return t};var je=function e(t){var i=t.offset+t.length-1;var r=t.offset;return"bytes="+r+"-"+i};var we=function e(t){var i={};if(t.byterange){i.Range=je(t.byterange)}return i};var Ce=/^(audio|video|application)\\/(x-|vnd\\.apple\\.)?mpegurl/i;var Ie=/^application\\/dash\\+xml/i;var Ae=function e(t){if(Ce.test(t)){return"hls"}if(Ie.test(t)){return"dash"}if(t==="application/vnd.videojs.vhs+json"){return"vhs-json"}return null};var xe=function e(t,i){return t.start(i)+"-"+t.end(i)};var Pe=function e(t,i){var r=t.toString(16);return"00".substring(0,2-r.length)+r+(i%2?" ":"")};var Oe=function e(t){if(t>=32&&t<126){return String.fromCharCode(t)}return"."};var Le=function e(t){var i={};Object.keys(t).forEach(function(e){var r=t[e];if(ArrayBuffer.isView(r)){i[e]={bytes:r.buffer,byteOffset:r.byteOffset,byteLength:r.byteLength}}else{i[e]=r}});return i};var De=function e(t){var i=t.byterange||{length:Infinity,offset:0};return[i.length,i.offset,t.resolvedUri].join(",")};var Re=function e(t){return t.resolvedUri};var Ne=function e(t){var i=Array.prototype.slice.call(t);var r=16;var n="";var a;var s;for(var o=0;o<i.length/r;o++){a=i.slice(o*r,o*r+r).map(Pe).join("");s=i.slice(o*r,o*r+r).map(Oe).join("");n+=a+" "+s+"\\n"}return n};var Me=function e(t){var i=t.bytes;return Ne(i)};var Ue=function e(t){var i="";var r;for(r=0;r<t.length;r++){i+=xe(t,r)+" "}return i};var Be=Object.freeze({__proto__:null,createTransferableMessage:Le,initSegmentId:De,segmentKeyId:Re,hexDump:Ne,tagDump:Me,textRanges:Ue});var Fe=.25;var He=function e(t,i){if(!i.dateTimeObject){return null}var r=i.videoTimingInfo.transmuxerPrependedSeconds;var n=i.videoTimingInfo.transmuxedPresentationStart;var a=n+r;var s=t-a;return new Date(i.dateTimeObject.getTime()+s*1e3)};var Ve=function e(t){return t.transmuxedPresentationEnd-t.transmuxedPresentationStart-t.transmuxerPrependedSeconds};var qe=function e(t,i){var r;try{r=new Date(t)}catch(e){return null}if(!i||!i.segments||i.segments.length===0){return null}var n=i.segments[0];if(r<n.dateTimeObject){return null}for(var a=0;a<i.segments.length-1;a++){n=i.segments[a];var s=i.segments[a+1].dateTimeObject;if(r<s){break}}var o=i.segments[i.segments.length-1];var l=o.dateTimeObject;var u=o.videoTimingInfo?Ve(o.videoTimingInfo):o.duration+o.duration*Fe;var c=new Date(l.getTime()+u*1e3);if(r>c){return null}if(r>l){n=o}return{segment:n,estimatedStart:n.videoTimingInfo?n.videoTimingInfo.transmuxedPresentationStart:be.duration(i,i.mediaSequence+i.segments.indexOf(n)),type:n.videoTimingInfo?"accurate":"estimate"}};var ze=function e(t,i){if(!i||!i.segments||i.segments.length===0){return null}var r=0;var n;for(var a=0;a<i.segments.length;a++){n=i.segments[a];r=n.videoTimingInfo?n.videoTimingInfo.transmuxedPresentationEnd:r+n.duration;if(t<=r){break}}var s=i.segments[i.segments.length-1];if(s.videoTimingInfo&&s.videoTimingInfo.transmuxedPresentationEnd<t){return null}if(t>r){if(t>r+s.duration*Fe){return null}n=s}return{segment:n,estimatedStart:n.videoTimingInfo?n.videoTimingInfo.transmuxedPresentationStart:r-n.duration,type:n.videoTimingInfo?"accurate":"estimate"}};var We=function e(t,i){var r;var n;try{r=new Date(t);n=new Date(i)}catch(e){}var a=r.getTime();var s=n.getTime();return(s-a)/1e3};var Ge=function e(t){if(!t.segments||t.segments.length===0){return false}for(var i=0;i<t.segments.length;i++){var r=t.segments[i];if(!r.dateTimeObject){return false}}return true};var Ye=function e(t){var i=t.playlist,r=t.time,n=r===void 0?undefined:r,a=t.callback;if(!a){throw new Error("getProgramTime: callback must be provided")}if(!i||n===undefined){return a({message:"getProgramTime: playlist and time must be provided"})}var s=ze(n,i);if(!s){return a({message:"valid programTime was not found"})}if(s.type==="estimate"){return a({message:"Accurate programTime could not be determined."+" Please seek to e.seekTime and try again",seekTime:s.estimatedStart})}var o={mediaSeconds:n};var l=He(n,s.segment);if(l){o.programDateTime=l.toISOString()}return a(null,o)};var Ke=function e(t){var i=t.programTime,r=t.playlist,n=t.retryCount,a=n===void 0?2:n,s=t.seekTo,o=t.pauseAfterSeek,l=o===void 0?true:o,u=t.tech,c=t.callback;if(!c){throw new Error("seekToProgramTime: callback must be provided")}if(typeof i==="undefined"||!r||!s){return c({message:"seekToProgramTime: programTime, seekTo and playlist must be provided"})}if(!r.endList&&!u.hasStarted_){return c({message:"player must be playing a live stream to start buffering"})}if(!Ge(r)){return c({message:"programDateTime tags must be provided in the manifest "+r.resolvedUri})}var d=qe(i,r);if(!d){return c({message:i+" was not found in the stream"})}var f=d.segment;var h=We(f.dateTimeObject,i);if(d.type==="estimate"){if(a===0){return c({message:i+" is not buffered yet. Try again"})}s(d.estimatedStart+h);u.one("seeked",function(){e({programTime:i,playlist:r,retryCount:a-1,seekTo:s,pauseAfterSeek:l,tech:u,callback:c})});return}var p=f.start+h;var v=function e(){return c(null,u.currentTime())};u.one("seeked",v);if(l){u.pause()}s(p)};var Xe=function e(t){return!!t&&typeof t==="object"};var Qe=function e(){for(var t=arguments.length,i=new Array(t),r=0;r<t;r++){i[r]=arguments[r]}return i.reduce(function(t,i){if(typeof i!=="object"){return t}
1Object.keys(i).forEach(function(r){if(Array.isArray(t[r])&&Array.isArray(i[r])){t[r]=t[r].concat(i[r])}else if(Xe(t[r])&&Xe(i[r])){t[r]=e(t[r],i[r])}else{t[r]=i[r]}});return t},{})};var Je=function e(t){return Object.keys(t).map(function(e){return t[e]})};var Ze=function e(t,i){var r=[];for(var n=t;n<i;n++){r.push(n)}return r};var $e=function e(t){return t.reduce(function(e,t){return e.concat(t)},[])};var et=function e(t){if(!t.length){return[]}var i=[];for(var r=0;r<t.length;r++){i.push(t[r])}return i};var tt=function e(t,i){return t.reduce(function(e,t,r){if(t[i]){e.push(r)}return e},[])};var it={INVALID_NUMBER_OF_PERIOD:"INVALID_NUMBER_OF_PERIOD",DASH_EMPTY_MANIFEST:"DASH_EMPTY_MANIFEST",DASH_INVALID_XML:"DASH_INVALID_XML",NO_BASE_URL:"NO_BASE_URL",MISSING_SEGMENT_INFORMATION:"MISSING_SEGMENT_INFORMATION",SEGMENT_TIME_UNSPECIFIED:"SEGMENT_TIME_UNSPECIFIED",UNSUPPORTED_UTC_TIMING_SCHEME:"UNSUPPORTED_UTC_TIMING_SCHEME"};var rt=function e(t){var i=t.baseUrl,r=i===void 0?"":i,n=t.source,a=n===void 0?"":n,s=t.range,o=s===void 0?"":s,l=t.indexRange,u=l===void 0?"":l;var c={uri:a,resolvedUri:g(r||"",a)};if(o||u){var d=o?o:u;var f=d.split("-");var h=parseInt(f[0],10);var p=parseInt(f[1],10);c.byterange={length:p-h+1,offset:h}}return c};var nt=function e(t){var i=t.offset+t.length-1;return t.offset+"-"+i};var at={static:function e(t){var i=t.duration,r=t.timescale,n=r===void 0?1:r,a=t.sourceDuration;return{start:0,end:Math.ceil(a/(i/n))}},dynamic:function e(t){var i=t.NOW,r=t.clientOffset,n=t.availabilityStartTime,a=t.timescale,s=a===void 0?1:a,o=t.duration,l=t.start,u=l===void 0?0:l,c=t.minimumUpdatePeriod,d=c===void 0?0:c,f=t.timeShiftBufferDepth,h=f===void 0?Infinity:f;var p=(i+r)/1e3;var v=n+u;var m=p+d;var g=m-v;var y=Math.ceil(g*s/o);var _=Math.floor((p-v-h)*s/o);var b=Math.floor((p-v)*s/o);return{start:Math.max(0,_),end:Math.min(y,b)}}};var st=function e(t){return function(e,i){var r=t.duration,n=t.timescale,a=n===void 0?1:n,s=t.periodIndex,o=t.startNumber,l=o===void 0?1:o;return{number:l+e,duration:r/a,timeline:s,time:i*r}}};var ot=function e(t){var i=t.type,r=i===void 0?"static":i,n=t.duration,a=t.timescale,s=a===void 0?1:a,o=t.sourceDuration;var l=at[r](t),u=l.start,c=l.end;var d=Ze(u,c).map(st(t));if(r==="static"){var f=d.length-1;d[f].duration=o-n/s*f}return d};var lt=function e(t){var i=t.baseUrl,r=t.initialization,n=r===void 0?{}:r,a=t.sourceDuration,s=t.indexRange,o=s===void 0?"":s,l=t.duration;if(!i){throw new Error(it.NO_BASE_URL)}var u=rt({baseUrl:i,source:n.sourceURL,range:n.range});var c=rt({baseUrl:i,source:i,indexRange:o});c.map=u;if(l){var d=ot(t);if(d.length){c.duration=d[0].duration;c.timeline=d[0].timeline}}else if(a){c.duration=a;c.timeline=0}c.number=0;return[c]};var ut=function e(t,i,r){var n=t.sidx.map?t.sidx.map:null;var a=t.sidx.duration;var s=t.timeline||0;var o=t.sidx.byterange;var l=o.offset+o.length;var u=i.timescale;var c=i.references.filter(function(e){return e.referenceType!==1});var d=[];var f=l+i.firstOffset;for(var h=0;h<c.length;h++){var p=i.references[h];var v=p.referencedSize;var m=p.subsegmentDuration;var g=f+v-1;var y=f+"-"+g;var _={baseUrl:r,timescale:u,timeline:s,periodIndex:s,duration:m,sourceDuration:a,indexRange:y};var b=lt(_)[0];if(n){b.map=n}d.push(b);f+=v}t.segments=d;return t};var ct=function e(t){var i=Je(t.reduce(function(e,t){var i=t.attributes.id+(t.attributes.lang||"");if(e[i]){var r;if(t.segments[0]){t.segments[0].discontinuity=true}(r=e[i].segments).push.apply(r,t.segments);if(t.attributes.contentProtection){e[i].attributes.contentProtection=t.attributes.contentProtection}}else{e[i]=t}return e},{}));return i.map(function(e){e.discontinuityStarts=tt(e.segments,"discontinuity");return e})};var dt=function e(t,i){if(i===void 0){i={}}if(!Object.keys(i).length){return t}for(var r in t){var n=t[r];if(!n.sidx){continue}var a=n.sidx.uri+"-"+nt(n.sidx.byterange);var s=i[a]&&i[a].sidx;if(n.sidx&&s){ut(n,s,n.sidx.resolvedUri)}}return t};var ft=function e(t){var i;var r=t.attributes,n=t.segments,a=t.sidx;var s={attributes:(i={NAME:r.id,BANDWIDTH:r.bandwidth,CODECS:r.codecs},i["PROGRAM-ID"]=1,i),uri:"",endList:(r.type||"static")==="static",timeline:r.periodIndex,resolvedUri:"",targetDuration:r.duration,segments:n,mediaSequence:n.length?n[0].number:1};if(r.contentProtection){s.contentProtection=r.contentProtection}if(a){s.sidx=a}return s};var ht=function e(t){var i;var r=t.attributes,n=t.segments;if(typeof n==="undefined"){n=[{uri:r.baseUrl,timeline:r.periodIndex,resolvedUri:r.baseUrl||"",duration:r.sourceDuration,number:0}];r.duration=r.sourceDuration}var a=(i={NAME:r.i'),t[1].s.push('list(r)})};
1i.srcUri=function e(){return typeof this.src==="string"?this.src:this.src.uri};i.setupInitialPlaylist=function e(t){this.state="HAVE_MASTER";if(t.playlists){this.master=t;M(this.master,this.srcUri());t.playlists.forEach(function(e){if(e.segments){e.segments.forEach(function(t){H(t,e.resolvedUri)})}});this.trigger("loadedplaylist");if(!this.request){this.media(this.master.playlists[0])}return}var i=this.srcUri()||l["default"].location.href;this.master=N(t,i);this.haveMetadata({playlistObject:t,url:i,id:this.master.playlists[0].id});this.trigger("loadedmetadata")};return t}(B);var W=1/30;var G=W*3;var Y=function e(t,i){var r=[];var n;if(t&&t.length){for(n=0;n<t.length;n++){if(i(t.start(n),t.end(n))){r.push([t.start(n),t.end(n)])}}}return u["default"].createTimeRanges(r)};var K=function e(t,i){return Y(t,function(e,t){return e-G<=i&&t+G>=i})};var X=function e(t,i){return Y(t,function(e){return e-W>=i})};var Q=function e(t){if(t.length<2){return u["default"].createTimeRanges()}var i=[];for(var r=1;r<t.length;r++){var n=t.end(r-1);var a=t.start(r);i.push([n,a])}return u["default"].createTimeRanges(i)};var J=function e(t,i){var r=null;var n=null;var a=0;var s=[];var o=[];if(!t||!t.length||!i||!i.length){return u["default"].createTimeRange()}var l=t.length;while(l--){s.push({time:t.start(l),type:"start"});s.push({time:t.end(l),type:"end"})}l=i.length;while(l--){s.push({time:i.start(l),type:"start"});s.push({time:i.end(l),type:"end"})}s.sort(function(e,t){return e.time-t.time});for(l=0;l<s.length;l++){if(s[l].type==="start"){a++;if(a===2){r=s[l].time}}else if(s[l].type==="end"){a--;if(a===1){n=s[l].time}}if(r!==null&&n!==null){o.push([r,n]);r=null;n=null}}return u["default"].createTimeRanges(o)};var Z=function e(t){var i=[];if(!t||!t.length){return""}for(var r=0;r<t.length;r++){i.push(t.start(r)+" => "+t.end(r))}return i.join(", ")};var $=function e(t,i,r){if(r===void 0){r=1}var n=t.length?t.end(t.length-1):0;return(n-i)/r};var ee=function e(t){var i=[];for(var r=0;r<t.length;r++){i.push({start:t.start(r),end:t.end(r)})}return i};var te=function e(t,i){if(t===i){return false}if(!t&&i||!i&&t){return true}if(t.length!==i.length){return true}for(var r=0;r<t.length;r++){if(t.start(r)!==i.start(r)||t.end(r)!==i.end(r)){return true}}return false};var ie=u["default"].createTimeRange;var re=function e(t,i){var r=0;var n=i-t.mediaSequence;var a=t.segments[n];if(a){if(typeof a.start!=="undefined"){return{result:a.start,precise:true}}if(typeof a.end!=="undefined"){return{result:a.end-a.duration,precise:true}}}while(n--){a=t.segments[n];if(typeof a.end!=="undefined"){return{result:r+a.end,precise:true}}r+=a.duration;if(typeof a.start!=="undefined"){return{result:r+a.start,precise:true}}}return{result:r,precise:false}};var ne=function e(t,i){var r=0;var n;var a=i-t.mediaSequence;for(;a<t.segments.length;a++){n=t.segments[a];if(typeof n.start!=="undefined"){return{result:n.start-r,precise:true}}r+=n.duration;if(typeof n.end!=="undefined"){return{result:n.end-r,precise:true}}}return{result:-1,precise:false}};var ae=function e(t,i,r){if(typeof i==="undefined"){i=t.mediaSequence+t.segments.length}if(i<t.mediaSequence){return 0}var n=re(t,i);if(n.precise){return n.result}var a=ne(t,i);if(a.precise){return a.result}return n.result+r};var se=function e(t,i,r){if(!t){return 0}if(typeof r!=="number"){r=0}if(typeof i==="undefined"){if(t.totalDuration){return t.totalDuration}if(!t.endList){return l["default"].Infinity}}return ae(t,i,r)};var oe=function e(t,i,r){var n=0;if(i>r){var a=[r,i];i=a[0];r=a[1]}if(i<0){for(var s=i;s<Math.min(0,r);s++){n+=t.targetDuration}i=0}for(var o=i;o<r;o++){n+=t.segments[o].duration}return n};var le=function e(t,i){if(!t.segments.length){return 0}var r=t.segments.length;var n=t.segments[r-1].duration||t.targetDuration;var a=typeof i==="number"?i:n+t.targetDuration*2;if(a===0){return r}var s=0;while(r--){s+=t.segments[r].duration;if(s>=a){break}}return Math.max(0,r)};var ue=function e(t,i,r,n){if(!t||!t.segments){return null}if(t.endList){return se(t)}if(i===null){return null}i=i||0;var a=r?le(t,n):t.segments.length;return ae(t,t.mediaSequence+a,i)};var ce=function e(t,i,r){var n=true;
1var a=i||0;var s=ue(t,i,n,r);if(s===null){return ie()}return ie(a,s)};var de=function e(t,i,r,n){var a;var s;var o=t.segments.length;var l=i-n;if(l<0){if(r>0){for(a=r-1;a>=0;a--){s=t.segments[a];l+=s.duration+W;if(l>0){return{mediaIndex:a,startTime:n-oe(t,r,a)}}}}return{mediaIndex:0,startTime:i}}if(r<0){for(a=r;a<0;a++){l-=t.targetDuration;if(l<0){return{mediaIndex:0,startTime:i}}}r=0}for(a=r;a<o;a++){s=t.segments[a];l-=s.duration+W;if(l<0){return{mediaIndex:a,startTime:n+oe(t,r,a)}}}return{mediaIndex:o-1,startTime:i}};var fe=function e(t){return t.excludeUntil&&t.excludeUntil>Date.now()};var he=function e(t){return t.excludeUntil&&t.excludeUntil===Infinity};var pe=function e(t){var i=fe(t);return!t.disabled&&!i};var ve=function e(t){return t.disabled};var me=function e(t){for(var i=0;i<t.segments.length;i++){if(t.segments[i].key){return true}}return false};var ge=function e(t,i){return i.attributes&&i.attributes[t]};var ye=function e(t,i,r,n){if(n===void 0){n=0}if(!ge("BANDWIDTH",r)){return NaN}var a=t*r.attributes.BANDWIDTH;return(a-n*8)/i};var _e=function e(t,i){if(t.playlists.length===1){return true}var r=i.attributes.BANDWIDTH||Number.MAX_VALUE;return t.playlists.filter(function(e){if(!pe(e)){return false}return(e.attributes.BANDWIDTH||0)<r}).length===0};var be={duration:se,seekable:ce,safeLiveIndex:le,getMediaInfoForTime:de,isEnabled:pe,isDisabled:ve,isBlacklisted:fe,isIncompatible:he,playlistEnd:ue,isAes:me,hasAttribute:ge,estimateSegmentRequestTime:ye,isLowestEnabledRendition:_e};var Te=u["default"].xhr,Se=u["default"].mergeOptions;var ke=function e(t,i,r,n){var a=t.responseType==="arraybuffer"?t.response:t.responseText;if(!i&&a){t.responseTime=Date.now();t.roundTripTime=t.responseTime-t.requestTime;t.bytesReceived=a.byteLength||a.length;if(!t.bandwidth){t.bandwidth=Math.floor(t.bytesReceived/t.roundTripTime*8*1e3)}}if(r.headers){t.responseHeaders=r.headers}if(i&&i.code==="ETIMEDOUT"){t.timedout=true}if(!i&&!t.aborted&&r.statusCode!==200&&r.statusCode!==206&&r.statusCode!==0){i=new Error("XHR Failed with a response of: "+(t&&(a||t.responseText)))}n(i,t)};var Ee=function e(){var t=function e(t,i){t=Se({timeout:45e3},t);var r=e.beforeRequest||u["default"].Vhs.xhr.beforeRequest;if(r&&typeof r==="function"){var n=r(t);if(n){t=n}}var a=Te(t,function(e,t){return ke(a,e,t,i)});var s=a.abort;a.abort=function(){a.aborted=true;return s.apply(a,arguments)};a.uri=t.uri;a.requestTime=Date.now();return a};return t};var je=function e(t){var i=t.offset+t.length-1;var r=t.offset;return"bytes="+r+"-"+i};var we=function e(t){var i={};if(t.byterange){i.Range=je(t.byterange)}return i};var Ce=/^(audio|video|application)\\/(x-|vnd\\.apple\\.)?mpegurl/i;var Ie=/^application\\/dash\\+xml/i;var Ae=function e(t){if(Ce.test(t)){return"hls"}if(Ie.test(t)){return"dash"}if(t==="application/vnd.videojs.vhs+json"){return"vhs-json"}return null};var xe=function e(t,i){return t.start(i)+"-"+t.end(i)};var Pe=function e(t,i){var r=t.toString(16);return"00".substring(0,2-r.length)+r+(i%2?" ":"")};var Oe=function e(t){if(t>=32&&t<126){return String.fromCharCode(t)}return"."};var Le=function e(t){var i={};Object.keys(t).forEach(function(e){var r=t[e];if(ArrayBuffer.isView(r)){i[e]={bytes:r.buffer,byteOffset:r.byteOffset,byteLength:r.byteLength}}else{i[e]=r}});return i};var De=function e(t){var i=t.byterange||{length:Infinity,offset:0};return[i.length,i.offset,t.resolvedUri].join(",")};var Re=function e(t){return t.resolvedUri};var Ne=function e(t){var i=Array.prototype.slice.call(t);var r=16;var n="";var a;var s;for(var o=0;o<i.length/r;o++){a=i.slice(o*r,o*r+r).map(Pe).join("");s=i.slice(o*r,o*r+r).map(Oe).join("");n+=a+" "+s+"\\n"}return n};var Me=function e(t){var i=t.bytes;return Ne(i)};var Ue=function e(t){var i="";var r;for(r=0;r<t.length;r++){i+=xe(t,r)+" "}return i};var Be=Object.freeze({__proto__:null,createTransferableMessage:Le,initSegmentId:De,segmentKeyId:Re,hexDump:Ne,tagDump:Me,textRanges:Ue});var Fe=.25;var He=function e(t,i){if(!i.dateTimeObject){return null}var r=i.videoTimingInfo.transmuxerPrependedSeconds;var n=i.videoTimingInfo.transmuxedPresentationStart;var a=n+r;var s=t-a;return new Date(i.dateTimeObject.getTime()+s*1e3)};var Ve=function e(t){return t.transmuxedPresentationEnd-t.transmuxedPresentationStart-t.transmuxerPrependedSeconds};var qe=function e(t,i){var r;try{r=new Date(t)}catch(e){return null}if(!i||!i.segments||i.segments.length===0){return null}var n=i.segments[0];if(r<n.dateTimeObject){return null}for(var a=0;a<i.segments.length-1;a++){n=i.segments[a];var s=i.segments[a+1].dateTimeObject;if(r<s){break}}var o=i.segments[i.segments.length-1];var l=o.dateTimeObject;var u=o.videoTimingInfo?Ve(o.videoTimingInfo):o.duration+o.duration*Fe;var c=new Date(l.getTime()+u*1e3);if(r>c){return null}if(r>l){n=o}return{segment:n,estimatedStart:n.videoTimingInfo?n.videoTimingInfo.transmuxedPresentationStart:be.duration(i,i.mediaSequence+i.segments.indexOf(n)),type:n.videoTimingInfo?"accurate":"estimate"}};var ze=function e(t,i){if(!i||!i.segments||i.segments.length===0){return null}var r=0;var n;for(var a=0;a<i.segments.length;a++){n=i.segments[a];r=n.videoTimingInfo?n.videoTimingInfo.transmuxedPresentationEnd:r+n.duration;if(t<=r){break}}var s=i.segments[i.segments.length-1];if(s.videoTimingInfo&&s.videoTimingInfo.transmuxedPresentationEnd<t){return null}if(t>r){if(t>r+s.duration*Fe){return null}n=s}return{segment:n,estimatedStart:n.videoTimingInfo?n.videoTimingInfo.transmuxedPresentationStart:r-n.duration,type:n.videoTimingInfo?"accurate":"estimate"}};var We=function e(t,i){var r;var n;try{r=new Date(t);n=new Date(i)}catch(e){}var a=r.getTime();var s=n.getTime();return(s-a)/1e3};var Ge=function e(t){if(!t.segments||t.segments.length===0){return false}for(var i=0;i<t.segments.length;i++){var r=t.segments[i];if(!r.dateTimeObject){return false}}return true};var Ye=function e(t){var i=t.playlist,r=t.time,n=r===void 0?undefined:r,a=t.callback;if(!a){throw new Error("getProgramTime: callback must be provided")}if(!i||n===undefined){return a({message:"getProgramTime: playlist and time must be provided"})}var s=ze(n,i);if(!s){return a({message:"valid programTime was not found"})}if(s.type==="estimate"){return a({message:"Accurate programTime could not be determined."+" Please seek to e.seekTime and try again",seekTime:s.estimatedStart})}var o={mediaSeconds:n};var l=He(n,s.segment);if(l){o.programDateTime=l.toISOString()}return a(null,o)};var Ke=function e(t){var i=t.programTime,r=t.playlist,n=t.retryCount,a=n===void 0?2:n,s=t.seekTo,o=t.pauseAfterSeek,l=o===void 0?true:o,u=t.tech,c=t.callback;if(!c){throw new Error("seekToProgramTime: callback must be provided")}if(typeof i==="undefined"||!r||!s){return c({message:"seekToProgramTime: programTime, seekTo and playlist must be provided"})}if(!r.endList&&!u.hasStarted_){return c({message:"player must be playing a live stream to start buffering"})}if(!Ge(r)){return c({message:"programDateTime tags must be provided in the manifest "+r.resolvedUri})}var d=qe(i,r);if(!d){return c({message:i+" was not found in the stream"})}var f=d.segment;var h=We(f.dateTimeObject,i);if(d.type==="estimate"){if(a===0){return c({message:i+" is not buffered yet. Try again"})}s(d.estimatedStart+h);u.one("seeked",function(){e({programTime:i,playlist:r,retryCount:a-1,seekTo:s,pauseAfterSeek:l,tech:u,callback:c})});return}var p=f.start+h;var v=function e(){return c(null,u.currentTime())};u.one("seeked",v);if(l){u.pause()}s(p)};var Xe=function e(t){return!!t&&typeof t==="object"};var Qe=function e(){for(var t=arguments.length,i=new Array(t),r=0;r<t;r++){i[r]=arguments[r]}return i.reduce(function(t,i){if(typeof i!=="object"){return t}
1Object.keys(i).forEach(function(r){if(Array.isArray(t[r])&&Array.isArray(i[r])){t[r]=t[r].concat(i[r])}else if(Xe(t[r])&&Xe(i[r])){t[r]=e(t[r],i[r])}else{t[r]=i[r]}});return t},{})};var Je=function e(t){return Object.keys(t).map(function(e){return t[e]})};var Ze=function e(t,i){var r=[];for(var n=t;n<i;n++){r.push(n)}return r};var $e=function e(t){return t.reduce(function(e,t){return e.concat(t)},[])};var et=function e(t){if(!t.length){return[]}var i=[];for(var r=0;r<t.length;r++){i.push(t[r])}return i};var tt=function e(t,i){return t.reduce(function(e,t,r){if(t[i]){e.push(r)}return e},[])};var it={INVALID_NUMBER_OF_PERIOD:"INVALID_NUMBER_OF_PERIOD",DASH_EMPTY_MANIFEST:"DASH_EMPTY_MANIFEST",DASH_INVALID_XML:"DASH_INVALID_XML",NO_BASE_URL:"NO_BASE_URL",MISSING_SEGMENT_INFORMATION:"MISSING_SEGMENT_INFORMATION",SEGMENT_TIME_UNSPECIFIED:"SEGMENT_TIME_UNSPECIFIED",UNSUPPORTED_UTC_TIMING_SCHEME:"UNSUPPORTED_UTC_TIMING_SCHEME"};var rt=function e(t){var i=t.baseUrl,r=i===void 0?"":i,n=t.source,a=n===void 0?"":n,s=t.range,o=s===void 0?"":s,l=t.indexRange,u=l===void 0?"":l;var c={uri:a,resolvedUri:g(r||"",a)};if(o||u){var d=o?o:u;var f=d.split("-");var h=parseInt(f[0],10);var p=parseInt(f[1],10);c.byterange={length:p-h+1,offset:h}}return c};var nt=function e(t){var i=t.offset+t.length-1;return t.offset+"-"+i};var at={static:function e(t){var i=t.duration,r=t.timescale,n=r===void 0?1:r,a=t.sourceDuration;return{start:0,end:Math.ceil(a/(i/n))}},dynamic:function e(t){var i=t.NOW,r=t.clientOffset,n=t.availabilityStartTime,a=t.timescale,s=a===void 0?1:a,o=t.duration,l=t.start,u=l===void 0?0:l,c=t.minimumUpdatePeriod,d=c===void 0?0:c,f=t.timeShiftBufferDepth,h=f===void 0?Infinity:f;var p=(i+r)/1e3;var v=n+u;var m=p+d;var g=m-v;var y=Math.ceil(g*s/o);var _=Math.floor((p-v-h)*s/o);var b=Math.floor((p-v)*s/o);return{start:Math.max(0,_),end:Math.min(y,b)}}};var st=function e(t){return function(e,i){var r=t.duration,n=t.timescale,a=n===void 0?1:n,s=t.periodIndex,o=t.startNumber,l=o===void 0?1:o;return{number:l+e,duration:r/a,timeline:s,time:i*r}}};var ot=function e(t){var i=t.type,r=i===void 0?"static":i,n=t.duration,a=t.timescale,s=a===void 0?1:a,o=t.sourceDuration;var l=at[r](t),u=l.start,c=l.end;var d=Ze(u,c).map(st(t));if(r==="static"){var f=d.length-1;d[f].duration=o-n/s*f}return d};var lt=function e(t){var i=t.baseUrl,r=t.initialization,n=r===void 0?{}:r,a=t.sourceDuration,s=t.indexRange,o=s===void 0?"":s,l=t.duration;if(!i){throw new Error(it.NO_BASE_URL)}var u=rt({baseUrl:i,source:n.sourceURL,range:n.range});var c=rt({baseUrl:i,source:i,indexRange:o});c.map=u;if(l){var d=ot(t);if(d.length){c.duration=d[0].duration;c.timeline=d[0].timeline}}else if(a){c.duration=a;c.timeline=0}c.number=0;return[c]};var ut=function e(t,i,r){var n=t.sidx.map?t.sidx.map:null;var a=t.sidx.duration;var s=t.timeline||0;var o=t.sidx.byterange;var l=o.offset+o.length;var u=i.timescale;var c=i.references.filter(function(e){return e.referenceType!==1});var d=[];var f=l+i.firstOffset;for(var h=0;h<c.length;h++){var p=i.references[h];var v=p.referencedSize;var m=p.subsegmentDuration;var g=f+v-1;var y=f+"-"+g;var _={baseUrl:r,timescale:u,timeline:s,periodIndex:s,duration:m,sourceDuration:a,indexRange:y};var b=lt(_)[0];if(n){b.map=n}d.push(b);f+=v}t.segments=d;return t};var ct=function e(t){var i=Je(t.reduce(function(e,t){var i=t.attributes.id+(t.attributes.lang||"");if(e[i]){var r;if(t.segments[0]){t.segments[0].discontinuity=true}(r=e[i].segments).push.apply(r,t.segments);if(t.attributes.contentProtection){e[i].attributes.contentProtection=t.attributes.contentProtection}}else{e[i]=t}return e},{}));return i.map(function(e){e.discontinuityStarts=tt(e.segments,"discontinuity");return e})};var dt=function e(t,i){if(i===void 0){i={}}if(!Object.keys(i).length){return t}for(var r in t){var n=t[r];if(!n.sidx){continue}var a=n.sidx.uri+"-"+nt(n.sidx.byterange);var s=i[a]&&i[a].sidx;if(n.sidx&&s){ut(n,s,n.sidx.resolvedUri)}}return t};var ft=function e(t){var i;var r=t.attributes,n=t.segments,a=t.sidx;var s={attributes:(i={NAME:r.id,BANDWIDTH:r.bandwidth,CODECS:r.codecs},i["PROGRAM-ID"]=1,i),uri:"",endList:(r.type||"static")==="static",timeline:r.periodIndex,resolvedUri:"",targetDuration:r.duration,segments:n,mediaSequence:n.length?n[0].number:1};if(r.contentProtection){s.contentProtection=r.contentProtection}if(a){s.sidx=a}return s};var ht=function e(t){var i;var r=t.attributes,n=t.segments;if(typeof n==="undefined"){n=[{uri:r.baseUrl,timeline:r.periodIndex,resolvedUri:r.baseUrl||"",duration:r.sourceDuration,n'),t[0].s.push('d,BANDWIDTH:r.bandwidth},i["PROGRAM-ID"]=1,i);if(r.codecs){a.CODECS=r.codecs}return{attributes:a,uri:"",endList:(r.type||"static")==="static",timeline:r.periodIndex,resolvedUri:r.baseUrl||"",targetDuration:r.duration,segments:n,mediaSequence:n.length?n[0].number:1}};var pt=function e(t,i){if(i===void 0){i={}}var r;var n=t.reduce(function(e,t){var n=t.attributes.role&&t.attributes.role.value||"";var a=t.attributes.lang||"";var s="main";if(a){var o=n?" ("+n+")":"";s=""+t.attributes.lang+o}if(e[s]&&e[s].playlists[0].attributes.BANDWIDTH>t.attributes.bandwidth){return e}e[s]={language:a,autoselect:true,default:n==="main",playlists:dt([ft(t)],i),uri:""};if(typeof r==="undefined"&&n==="main"){r=t;r.default=true}return e},{});if(!r){var a=Object.keys(n)[0];n[a].default=true}return n};var vt=function e(t,i){if(i===void 0){i={}}return t.reduce(function(e,t){var r=t.attributes.lang||"text";if(e[r]){return e}e[r]={language:r,default:false,autoselect:false,playlists:dt([ht(t)],i),uri:""};return e},{})};var mt=function e(t){var i;var r=t.attributes,n=t.segments,a=t.sidx;var s={attributes:(i={NAME:r.id,AUDIO:"audio",SUBTITLES:"subs",RESOLUTION:{width:r.width,height:r.height},CODECS:r.codecs,BANDWIDTH:r.bandwidth},i["PROGRAM-ID"]=1,i),uri:"",endList:(r.type||"static")==="static",timeline:r.periodIndex,resolvedUri:"",targetDuration:r.duration,segments:n,mediaSequence:n.length?n[0].number:1};if(r.contentProtection){s.contentProtection=r.contentProtection}if(a){s.sidx=a}return s};var gt=function e(t,i,r){var n;if(r===void 0){r={}}if(!t.length){return{}}var a=t[0].attributes,s=a.sourceDuration,o=a.type,l=o===void 0?"static":o,u=a.suggestedPresentationDelay,c=a.minimumUpdatePeriod;var d=function e(t){var i=t.attributes;return i.mimeType==="video/mp4"||i.mimeType==="video/webm"||i.contentType==="video"};var f=function e(t){var i=t.attributes;return i.mimeType==="audio/mp4"||i.mimeType==="audio/webm"||i.contentType==="audio"};var h=function e(t){var i=t.attributes;return i.mimeType==="text/vtt"||i.contentType==="text"};var p=ct(t.filter(d)).map(mt);var v=ct(t.filter(f));var m=t.filter(h);var g={allowCache:true,discontinuityStarts:[],segments:[],endList:true,mediaGroups:(n={AUDIO:{},VIDEO:{}},n["CLOSED-CAPTIONS"]={},n.SUBTITLES={},n),uri:"",duration:s,playlists:dt(p,r)};if(c>=0){g.minimumUpdatePeriod=c*1e3}if(i){g.locations=i}if(l==="dynamic"){g.suggestedPresentationDelay=u}if(v.length){g.mediaGroups.AUDIO.audio=pt(v,r)}if(m.length){g.mediaGroups.SUBTITLES.subs=vt(m,r)}return g};var yt=function e(t,i,r){var n=t.NOW,a=t.clientOffset,s=t.availabilityStartTime,o=t.timescale,l=o===void 0?1:o,u=t.start,c=u===void 0?0:u,d=t.minimumUpdatePeriod,f=d===void 0?0:d;var h=(n+a)/1e3;var p=s+c;var v=h+f;var m=v-p;return Math.ceil((m*l-i)/r)};var _t=function e(t,i){var r=t.type,n=r===void 0?"static":r,a=t.minimumUpdatePeriod,s=a===void 0?0:a,o=t.media,l=o===void 0?"":o,u=t.sourceDuration,c=t.timescale,d=c===void 0?1:c,f=t.startNumber,h=f===void 0?1:f,p=t.periodIndex;var v=[];var m=-1;for(var g=0;g<i.length;g++){var y=i[g];var _=y.d;var b=y.r||0;var T=y.t||0;if(m<0){m=T}if(T&&T>m){m=T}var S=void 0;if(b<0){var k=g+1;if(k===i.length){if(n==="dynamic"&&s>0&&l.indexOf("$Number$")>0){S=yt(t,m,_)}else{S=(u*d-m)/_}}else{S=(i[k].t-m)/_}}else{S=b+1}var E=h+v.length+S;var j=h+v.length;while(j<E){v.push({number:j,duration:_/d,time:m,timeline:p});m+=_;j++}}return v};var bt=/\\$([A-z]*)(?:(%0)([0-9]+)d)?\\$/g;var Tt=function e(t){return function(e,i,r,n){if(e==="$$"){return"$"}if(typeof t[i]==="undefined"){return e}var a=""+t[i];if(i==="RepresentationID"){return a}if(!r){n=1}else{n=parseInt(n,10)}
1if(a.length>=n){return a}return""+new Array(n-a.length+1).join("0")+a}};var St=function e(t,i){return t.replace(bt,Tt(i))};var kt=function e(t,i){if(!t.duration&&!i){return[{number:t.startNumber||1,duration:t.sourceDuration,time:0,timeline:t.periodIndex}]}if(t.duration){return ot(t)}return _t(t,i)};var Et=function e(t,i){var r={RepresentationID:t.id,Bandwidth:t.bandwidth||0};var n=t.initialization,a=n===void 0?{sourceURL:"",range:""}:n;var s=rt({baseUrl:t.baseUrl,source:St(a.sourceURL,r),range:a.range});var o=kt(t,i);return o.map(function(e){r.Number=e.number;r.Time=e.time;var i=St(t.media||"",r);return{uri:i,timeline:e.timeline,duration:e.duration,resolvedUri:g(t.baseUrl||"",i),map:s,number:e.number}})};var jt=function e(t,i){var r=t.baseUrl,n=t.initialization,a=n===void 0?{}:n;var s=rt({baseUrl:r,source:a.sourceURL,range:a.range});var o=rt({baseUrl:r,source:i.media,range:i.mediaRange});o.map=s;return o};var wt=function e(t,i){var r=t.duration,n=t.segmentUrls,a=n===void 0?[]:n;if(!r&&!i||r&&i){throw new Error(it.SEGMENT_TIME_UNSPECIFIED)}var s=a.map(function(e){return jt(t,e)});var o;if(r){o=ot(t)}if(i){o=_t(t,i)}var l=o.map(function(e,t){if(s[t]){var i=s[t];i.timeline=e.timeline;i.duration=e.duration;i.number=e.number;return i}}).filter(function(e){return e});return l};var Ct=function e(t){var i=t.attributes,r=t.segmentInfo;var n;var a;if(r.template){a=Et;n=Qe(i,r.template)}else if(r.base){a=lt;n=Qe(i,r.base)}else if(r.list){a=wt;n=Qe(i,r.list)}var s={attributes:i};if(!a){return s}var o=a(n,r.timeline);if(n.duration){var l=n,u=l.duration,c=l.timescale,d=c===void 0?1:c;n.duration=u/d}else if(o.length){n.duration=o.reduce(function(e,t){return Math.max(e,Math.ceil(t.duration))},0)}else{n.duration=0}s.attributes=n;s.segments=o;if(r.base&&n.indexRange){s.sidx=o[0];s.segments=[]}return s};var It=function e(t){return t.map(Ct)};var At=function e(t,i){return et(t.childNodes).filter(function(e){var t=e.tagName;return t===i})};var xt=function e(t){return t.textContent.trim()};var Pt=function e(t){var i=365*24*60*60;var r=30*24*60*60;var n=24*60*60;var a=60*60;var s=60;var o=/P(?:(\\d*)Y)?(?:(\\d*)M)?(?:(\\d*)D)?(?:T(?:(\\d*)H)?(?:(\\d*)M)?(?:([\\d.]*)S)?)?/;var l=o.exec(t);if(!l){return 0}var u=l.slice(1),c=u[0],d=u[1],f=u[2],h=u[3],p=u[4],v=u[5];return parseFloat(c||0)*i+parseFloat(d||0)*r+parseFloat(f||0)*n+parseFloat(h||0)*a+parseFloat(p||0)*s+parseFloat(v||0)};var Ot=function e(t){var i=/^\\d+-\\d+-\\d+T\\d+:\\d+:\\d+(\\.\\d+)?$/;if(i.test(t)){t+="Z"}return Date.parse(t)};var Lt={mediaPresentationDuration:function e(t){return Pt(t)},availabilityStartTime:function e(t){return Ot(t)/1e3},minimumUpdatePeriod:function e(t){return Pt(t)},suggestedPresentationDelay:function e(t){return Pt(t)},type:function e(t){return t},timeShiftBufferDepth:function e(t){return Pt(t)},start:function e(t){return Pt(t)},width:function e(t){return parseInt(t,10)},height:function e(t){return parseInt(t,10)},bandwidth:function e(t){return parseInt(t,10)},startNumber:function e(t){return parseInt(t,10)},timescale:function e(t){return parseInt(t,10)},duration:function e(t){var i=parseInt(t,10);if(isNaN(i)){return Pt(t)}return i},d:function e(t){return parseInt(t,10)},t:function e(t){return parseInt(t,10)},r:function e(t){return parseInt(t,10)},DEFAULT:function e(t){return t}};var Dt=function e(t){if(!(t&&t.attributes)){return{}}return et(t.attributes).reduce(function(e,t){var i=Lt[t.name]||Lt.DEFAULT;e[t.name]=i(t.value);return e},{})};var Rt={"urn:uuid:1077efec-c0b2-4d02-ace3-3c1e52e2fb4b":"org.w3.clearkey","urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed":"com.widevine.alpha","urn:uuid:9a04f079-9840-4286-ab92-e65be0885f95":"com.microsoft.playready","urn:uuid:f239e769-efa3-4850-9c16-a903c6932efb":"com.adobe.primetime"};var Nt=function e(t,i){if(!i.length){return t}return $e(t.map(function(e){return i.map(function(t){return g(e,xt(t))})}))};var Mt=function e(t){var i=At(t,"SegmentTemplate")[0];var r=At(t,"SegmentList")[0];var n=r&&At(r,"SegmentURL").map(function(e){return Qe({tag:"SegmentURL"},Dt(e))});var a=At(t,"SegmentBase")[0];var s=r||i;var o=s&&At(s,"SegmentTimeline")[0];var l=r||a||i;var u=l&&At(l,"Initialization")[0];var c=i&&Dt(i);if(c&&u){c.initialization=u&&Dt(u)}else if(c&&c.initialization){c.initialization={sourceURL:c.initialization}}var d={template:c,timeline:o&&At(o,"S").map(function(e){return Dt(e)}),list:r&&Qe(Dt(r),{segmentUrls:n,initialization:Dt(u)}),base:a&&Qe(Dt(a),{initialization:Dt(u)})};
1Object.keys(d).forEach(function(e){if(!d[e]){delete d[e]}});return d};var Ut=function e(t,i,r){return function(e){var n=At(e,"BaseURL");var a=Nt(i,n);var s=Qe(t,Dt(e));var o=Mt(e);return a.map(function(e){return{segmentInfo:Qe(r,o),attributes:Qe(s,{baseUrl:e})}})}};var Bt=function e(t){return t.reduce(function(e,t){var i=Dt(t);var r=Rt[i.schemeIdUri];if(r){e[r]={attributes:i};var n=At(t,"cenc:pssh")[0];if(n){var a=xt(n);var s=a&&k(a);e[r].pssh=s}}return e},{})};var Ft=function e(t,i,r){return function(e){var n=Dt(e);var a=Nt(i,At(e,"BaseURL"));var s=At(e,"Role")[0];var o={role:Dt(s)};var l=Qe(t,n,o);var u=Bt(At(e,"ContentProtection"));if(Object.keys(u).length){l=Qe(l,{contentProtection:u})}var c=Mt(e);var d=At(e,"Representation");var f=Qe(r,c);return $e(d.map(Ut(l,a,f)))}};var Ht=function e(t,i){return function(e,r){var n=Nt(i,At(e,"BaseURL"));var a=Dt(e);var s=parseInt(a.id,10);var o=l["default"].isNaN(s)?r:s;var u=Qe(t,{periodIndex:o});var c=At(e,"AdaptationSet");var d=Mt(e);return $e(c.map(Ft(u,n,d)))}};var Vt=function e(t,i){if(i===void 0){i={}}var r=i,n=r.manifestUri,a=n===void 0?"":n,s=r.NOW,o=s===void 0?Date.now():s,l=r.clientOffset,u=l===void 0?0:l;var c=At(t,"Period");if(!c.length){throw new Error(it.INVALID_NUMBER_OF_PERIOD)}var d=At(t,"Location");var f=Dt(t);var h=Nt([a],At(t,"BaseURL"));f.sourceDuration=f.mediaPresentationDuration||0;f.NOW=o;f.clientOffset=u;if(d.length){f.locations=d.map(xt)}return{locations:f.locations,representationInfo:$e(c.map(Ht(f,h)))}};var qt=function e(t){if(t===""){throw new Error(it.DASH_EMPTY_MANIFEST)}var i=new a.DOMParser;var r;var n;try{r=i.parseFromString(t,"application/xml");n=r&&r.documentElement.tagName==="MPD"?r.documentElement:null}catch(e){}if(!n||n&&n.getElementsByTagName("parsererror").length>0){throw new Error(it.DASH_INVALID_XML)}return n};var zt=function e(t){var i=At(t,"UTCTiming")[0];if(!i){return null}var r=Dt(i);switch(r.schemeIdUri){case"urn:mpeg:dash:utc:http-head:2014":case"urn:mpeg:dash:utc:http-head:2012":r.method="HEAD";break;case"urn:mpeg:dash:utc:http-xsdate:2014":case"urn:mpeg:dash:utc:http-iso:2014":case"urn:mpeg:dash:utc:http-xsdate:2012":case"urn:mpeg:dash:utc:http-iso:2012":r.method="GET";break;case"urn:mpeg:dash:utc:direct:2014":case"urn:mpeg:dash:utc:direct:2012":r.method="DIRECT";r.value=Date.parse(r.value);break;case"urn:mpeg:dash:utc:http-ntp:2014":case"urn:mpeg:dash:utc:ntp:2014":case"urn:mpeg:dash:utc:sntp:2014":default:throw new Error(it.UNSUPPORTED_UTC_TIMING_SCHEME)}return r};var Wt=function e(t,i){if(i===void 0){i={}}var r=Vt(qt(t),i);var n=It(r.representationInfo);return gt(n,r.locations,i.sidxMapping)};var Gt=function e(t){return zt(qt(t))};var Yt=ut;var Kt=Math.pow(2,32);var Xt=function e(t){var i=new DataView(t.buffer,t.byteOffset,t.byteLength),r={version:t[0],flags:new Uint8Array(t.subarray(1,4)),references:[],referenceId:i.getUint32(4),timescale:i.getUint32(8)},n=12;if(r.version===0){r.earliestPresentationTime=i.getUint32(n);r.firstOffset=i.getUint32(n+4);n+=8}else{r.earliestPresentationTime=i.getUint32(n)*Kt+i.getUint32(n+4);r.firstOffset=i.getUint32(n+8)*Kt+i.getUint32(n+12);n+=16}n+=2;var a=i.getUint16(n);n+=2;for(;a>0;n+=12,a--){r.references.push({referenceType:(t[n]&128)>>>7,referencedSize:i.getUint32(n)&2147483647,subsegmentDuration:i.getUint32(n+4),startsWithSap:!!(t[n+8]&128),sapType:(t[n+8]&112)>>>4,sapDeltaTime:i.getUint32(n+8)&268435455})}return r};var Qt=Xt;var Jt=function e(t){return t.toString(2).length};var Zt=function e(t){return Math.ceil(Jt(t)/8)};var $t=function e(t){return ArrayBuffer.isView(t)};var ei=function e(t){if(t instanceof Uint8Array){return t}if(!Array.isArray(t)&&!$t(t)&&!(t instanceof ArrayBuffer)){if(typeof t!=="number"||typeof t==="number"&&t!==t){t=0}else{t=[t]}}return new Uint8Array(t&&t.buffer||t,t&&t.byteOffset||0,t&&t.byteLength||0)};var ti=l["default"].BigInt||Number;var ii=[ti("0x1"),ti("0x100"),ti("0x10000"),ti("0x1000000"),ti("0x100000000"),ti("0x10000000000"),ti("0x1000000000000"),ti("0x100000000000000"),ti("0x10000000000000000")];var ri=function e(t,i){var r=i===void 0?{}:i,n=r.signed,a=n===void 0?false:n,s=r.le,o=s===void 0?false:s;t=ei(t);var l=o?"reduce":"reduceRight";var u=t[l]?t[l]:Array.prototype[l];var c=u.call(t,function(e,i,r){var n=o?r:Math.abs(r+1-t.length);return e+ti(i)*ii[n]},ti(0));if(a){var d=ii[t.length]/ti(2)-ti(1);c=ti(c);if(c>d){c-=d;c-=d;c-=ti(2)}}return Number(c)};var ni=function e(t,i){var r=i===void 0?{}:i,n=r.le,a=n===void 0?false:n;if(typeof t!=="bigint"&&typeof t!=="number"||typeof t==="number"&&t!==t){t=0}t=ti(t);var s=Zt(t);var o=new Uint8Array(new ArrayBuffer(s));for(var l=0;l<s;l++){var u=a?l:Math.abs(l+1-o.length);o[u]=Number(t/ii[l]&ti(255));if(t<0){o[u]=Math.abs(~o[u]);o[u]-=l===0?1:2}}return o};var ai=function e(t,i){if(typeof t!=="string"&&t&&typeof t.toString==="function"){t=t.toString()}if(typeof t!=="string"){return new Uint8Array}if(!i){t=unescape(encodeURIComponent(t))}
1var r=new Uint8Array(t.length);for(var n=0;n<t.length;n++){r[n]=t.charCodeAt(n)}return r};var si=function e(){for(var t=arguments.length,i=new Array(t),r=0;r<t;r++){i[r]=arguments[r]}i=i.filter(function(e){return e&&(e.byteLength||e.length)&&typeof e!=="string"});if(i.length<=1){return ei(i[0])}var n=i.reduce(function(e,t,i){return e+(t.byteLength||t.length)},0);var a=new Uint8Array(n);var s=0;i.forEach(function(e){e=ei(e);a.set(e,s);s+=e.byteLength});return a};var oi=function e(t,i,r){var n=r===void 0?{}:r,a=n.offset,s=a===void 0?0:a,o=n.mask,l=o===void 0?[]:o;t=ei(t);i=ei(i);var u=i.every?i.every:Array.prototype.every;return i.length&&t.length-s>=i.length&&u.call(i,function(e,i){var r=l[i]?l[i]&t[s+i]:t[s+i];return e===r})};var li=ei([73,68,51]);var ui=function e(t,i){if(i===void 0){i=0}t=ei(t);var r=t[i+5];var n=t[i+6]<<21|t[i+7]<<14|t[i+8]<<7|t[i+9];var a=(r&16)>>4;if(a){return n+20}return n+10};var ci=function e(t,i){if(i===void 0){i=0}t=ei(t);if(t.length-i<10||!oi(t,li,{offset:i})){return i}i+=ui(t,i);return e(t,i)};var di=function e(t){if(typeof t==="string"){return ai(t)}if(typeof t==="number"){return t}return t};var fi=function e(t){if(!Array.isArray(t)){return[di(t)]}return t.map(function(e){return di(e)})};var hi=function e(t,i,r){if(r===void 0){r=false}i=fi(i);t=ei(t);var n=[];if(!i.length){return n}var a=0;while(a<t.length){var s=(t[a]<<24|t[a+1]<<16|t[a+2]<<8|t[a+3])>>>0;var o=t.subarray(a+4,a+8);if(s===0){break}var l=a+s;if(l>t.length){if(r){break}l=t.length}var u=t.subarray(a+8,l);if(oi(o,i[0])){if(i.length===1){n.push(u)}else{n.push.apply(n,e(u,i.slice(1),r))}}a=l}return n};var pi={EBML:ei([26,69,223,163]),DocType:ei([66,130]),Segment:ei([24,83,128,103]),SegmentInfo:ei([21,73,169,102]),Tracks:ei([22,84,174,107]),Track:ei([174]),TrackNumber:ei([215]),DefaultDuration:ei([35,227,131]),TrackEntry:ei([174]),TrackType:ei([131]),FlagDefault:ei([136]),CodecID:ei([134]),CodecPrivate:ei([99,162]),VideoTrack:ei([224]),AudioTrack:ei([225]),Cluster:ei([31,67,182,117]),Timestamp:ei([231]),TimestampScale:ei([42,215,177]),BlockGroup:ei([160]),BlockDuration:ei([155]),Block:ei([161]),SimpleBlock:ei([163])};var vi=[128,64,32,16,8,4,2,1];var mi=function e(t){var i=1;for(var r=0;r<vi.length;r++){if(t&vi[r]){break}i++}return i};var gi=function e(t,i,r,n){if(r===void 0){r=true}if(n===void 0){n=false}var a=mi(t[i]);var s=t.subarray(i,i+a);if(r){s=Array.prototype.slice.call(t,i,i+a);s[0]^=vi[a-1]}return{length:a,value:ri(s,{signed:n}),bytes:s}};var yi=function e(t){if(typeof t==="string"){return t.match(/.{1,2}/g).map(function(t){return e(t)})}if(typeof t==="number"){return ni(t)}return t};var _i=function e(t){if(!Array.isArray(t)){return[yi(t)]}return t.map(function(e){return yi(e)})};var bi=function e(t,i,r){if(r>=i.length){return i.length}var n=gi(i,r,false);if(oi(t.bytes,n.bytes)){return r}var a=gi(i,r+n.length);return e(t,i,r+a.length+a.value+n.length)};var Ti=function e(t,i){i=_i(i);t=ei(t);var r=[];if(!i.length){return r}var n=0;while(n<t.length){var a=gi(t,n,false);var s=gi(t,n+a.length);var o=n+a.length+s.length;if(s.value===127){s.value=bi(a,t,o);if(s.value!==t.length){s.value-=o}}var l=o+s.value>t.length?t.length:o+s.value;var u=t.subarray(o,l);if(oi(i[0],a.bytes)){if(i.length===1){r.push(u)}else{r=r.concat(e(u,i.slice(1)))}}var c=a.length+s.length+u.length;n+=c}return r};var Si=ei([0,0,0,1]);var ki=ei([0,0,1]);var Ei=ei([0,0,3]'),t[1].s.push('umber:0}];r.duration=r.sourceDuration}var a=(i={NAME:r.id,BANDWIDTH:r.bandwidth},i["PROGRAM-ID"]=1,i);if(r.codecs){a.CODECS=r.codecs}return{attributes:a,uri:"",endList:(r.type||"static")==="static",timeline:r.periodIndex,resolvedUri:r.baseUrl||"",targetDuration:r.duration,segments:n,mediaSequence:n.length?n[0].number:1}};var pt=function e(t,i){if(i===void 0){i={}}var r;var n=t.reduce(function(e,t){var n=t.attributes.role&&t.attributes.role.value||"";var a=t.attributes.lang||"";var s="main";if(a){var o=n?" ("+n+")":"";s=""+t.attributes.lang+o}if(e[s]&&e[s].playlists[0].attributes.BANDWIDTH>t.attributes.bandwidth){return e}e[s]={language:a,autoselect:true,default:n==="main",playlists:dt([ft(t)],i),uri:""};if(typeof r==="undefined"&&n==="main"){r=t;r.default=true}return e},{});if(!r){var a=Object.keys(n)[0];n[a].default=true}return n};var vt=function e(t,i){if(i===void 0){i={}}return t.reduce(function(e,t){var r=t.attributes.lang||"text";if(e[r]){return e}e[r]={language:r,default:false,autoselect:false,playlists:dt([ht(t)],i),uri:""};return e},{})};var mt=function e(t){var i;var r=t.attributes,n=t.segments,a=t.sidx;var s={attributes:(i={NAME:r.id,AUDIO:"audio",SUBTITLES:"subs",RESOLUTION:{width:r.width,height:r.height},CODECS:r.codecs,BANDWIDTH:r.bandwidth},i["PROGRAM-ID"]=1,i),uri:"",endList:(r.type||"static")==="static",timeline:r.periodIndex,resolvedUri:"",targetDuration:r.duration,segments:n,mediaSequence:n.length?n[0].number:1};if(r.contentProtection){s.contentProtection=r.contentProtection}if(a){s.sidx=a}return s};var gt=function e(t,i,r){var n;if(r===void 0){r={}}if(!t.length){return{}}var a=t[0].attributes,s=a.sourceDuration,o=a.type,l=o===void 0?"static":o,u=a.suggestedPresentationDelay,c=a.minimumUpdatePeriod;var d=function e(t){var i=t.attributes;return i.mimeType==="video/mp4"||i.mimeType==="video/webm"||i.contentType==="video"};var f=function e(t){var i=t.attributes;return i.mimeType==="audio/mp4"||i.mimeType==="audio/webm"||i.contentType==="audio"};var h=function e(t){var i=t.attributes;return i.mimeType==="text/vtt"||i.contentType==="text"};var p=ct(t.filter(d)).map(mt);var v=ct(t.filter(f));var m=t.filter(h);var g={allowCache:true,discontinuityStarts:[],segments:[],endList:true,mediaGroups:(n={AUDIO:{},VIDEO:{}},n["CLOSED-CAPTIONS"]={},n.SUBTITLES={},n),uri:"",duration:s,playlists:dt(p,r)};if(c>=0){g.minimumUpdatePeriod=c*1e3}if(i){g.locations=i}if(l==="dynamic"){g.suggestedPresentationDelay=u}if(v.length){g.mediaGroups.AUDIO.audio=pt(v,r)}if(m.length){g.mediaGroups.SUBTITLES.subs=vt(m,r)}return g};var yt=function e(t,i,r){var n=t.NOW,a=t.clientOffset,s=t.availabilityStartTime,o=t.timescale,l=o===void 0?1:o,u=t.start,c=u===void 0?0:u,d=t.minimumUpdatePeriod,f=d===void 0?0:d;var h=(n+a)/1e3;var p=s+c;var v=h+f;var m=v-p;return Math.ceil((m*l-i)/r)};var _t=function e(t,i){var r=t.type,n=r===void 0?"static":r,a=t.minimumUpdatePeriod,s=a===void 0?0:a,o=t.media,l=o===void 0?"":o,u=t.sourceDuration,c=t.timescale,d=c===void 0?1:c,f=t.startNumber,h=f===void 0?1:f,p=t.periodIndex;var v=[];var m=-1;for(var g=0;g<i.length;g++){var y=i[g];var _=y.d;var b=y.r||0;var T=y.t||0;if(m<0){m=T}if(T&&T>m){m=T}var S=void 0;if(b<0){var k=g+1;if(k===i.length){if(n==="dynamic"&&s>0&&l.indexOf("$Number$")>0){S=yt(t,m,_)}else{S=(u*d-m)/_}}else{S=(i[k].t-m)/_}}else{S=b+1}var E=h+v.length+S;var j=h+v.length;while(j<E){v.push({number:j,duration:_/d,time:m,timeline:p});m+=_;j++}}return v};var bt=/\\$([A-z]*)(?:(%0)([0-9]+)d)?\\$/g;var Tt=function e(t){return function(e,i,r,n){if(e==="$$"){return"$"}if(typeof t[i]==="undefined"){return e}var a=""+t[i];if(i==="RepresentationID"){return a}if(!r){n=1}else{n=parseInt(n,10)}
1if(a.length>=n){return a}return""+new Array(n-a.length+1).join("0")+a}};var St=function e(t,i){return t.replace(bt,Tt(i))};var kt=function e(t,i){if(!t.duration&&!i){return[{number:t.startNumber||1,duration:t.sourceDuration,time:0,timeline:t.periodIndex}]}if(t.duration){return ot(t)}return _t(t,i)};var Et=function e(t,i){var r={RepresentationID:t.id,Bandwidth:t.bandwidth||0};var n=t.initialization,a=n===void 0?{sourceURL:"",range:""}:n;var s=rt({baseUrl:t.baseUrl,source:St(a.sourceURL,r),range:a.range});var o=kt(t,i);return o.map(function(e){r.Number=e.number;r.Time=e.time;var i=St(t.media||"",r);return{uri:i,timeline:e.timeline,duration:e.duration,resolvedUri:g(t.baseUrl||"",i),map:s,number:e.number}})};var jt=function e(t,i){var r=t.baseUrl,n=t.initialization,a=n===void 0?{}:n;var s=rt({baseUrl:r,source:a.sourceURL,range:a.range});var o=rt({baseUrl:r,source:i.media,range:i.mediaRange});o.map=s;return o};var wt=function e(t,i){var r=t.duration,n=t.segmentUrls,a=n===void 0?[]:n;if(!r&&!i||r&&i){throw new Error(it.SEGMENT_TIME_UNSPECIFIED)}var s=a.map(function(e){return jt(t,e)});var o;if(r){o=ot(t)}if(i){o=_t(t,i)}var l=o.map(function(e,t){if(s[t]){var i=s[t];i.timeline=e.timeline;i.duration=e.duration;i.number=e.number;return i}}).filter(function(e){return e});return l};var Ct=function e(t){var i=t.attributes,r=t.segmentInfo;var n;var a;if(r.template){a=Et;n=Qe(i,r.template)}else if(r.base){a=lt;n=Qe(i,r.base)}else if(r.list){a=wt;n=Qe(i,r.list)}var s={attributes:i};if(!a){return s}var o=a(n,r.timeline);if(n.duration){var l=n,u=l.duration,c=l.timescale,d=c===void 0?1:c;n.duration=u/d}else if(o.length){n.duration=o.reduce(function(e,t){return Math.max(e,Math.ceil(t.duration))},0)}else{n.duration=0}s.attributes=n;s.segments=o;if(r.base&&n.indexRange){s.sidx=o[0];s.segments=[]}return s};var It=function e(t){return t.map(Ct)};var At=function e(t,i){return et(t.childNodes).filter(function(e){var t=e.tagName;return t===i})};var xt=function e(t){return t.textContent.trim()};var Pt=function e(t){var i=365*24*60*60;var r=30*24*60*60;var n=24*60*60;var a=60*60;var s=60;var o=/P(?:(\\d*)Y)?(?:(\\d*)M)?(?:(\\d*)D)?(?:T(?:(\\d*)H)?(?:(\\d*)M)?(?:([\\d.]*)S)?)?/;var l=o.exec(t);if(!l){return 0}var u=l.slice(1),c=u[0],d=u[1],f=u[2],h=u[3],p=u[4],v=u[5];return parseFloat(c||0)*i+parseFloat(d||0)*r+parseFloat(f||0)*n+parseFloat(h||0)*a+parseFloat(p||0)*s+parseFloat(v||0)};var Ot=function e(t){var i=/^\\d+-\\d+-\\d+T\\d+:\\d+:\\d+(\\.\\d+)?$/;if(i.test(t)){t+="Z"}return Date.parse(t)};var Lt={mediaPresentationDuration:function e(t){return Pt(t)},availabilityStartTime:function e(t){return Ot(t)/1e3},minimumUpdatePeriod:function e(t){return Pt(t)},suggestedPresentationDelay:function e(t){return Pt(t)},type:function e(t){return t},timeShiftBufferDepth:function e(t){return Pt(t)},start:function e(t){return Pt(t)},width:function e(t){return parseInt(t,10)},height:function e(t){return parseInt(t,10)},bandwidth:function e(t){return parseInt(t,10)},startNumber:function e(t){return parseInt(t,10)},timescale:function e(t){return parseInt(t,10)},duration:function e(t){var i=parseInt(t,10);if(isNaN(i)){return Pt(t)}return i},d:function e(t){return parseInt(t,10)},t:function e(t){return parseInt(t,10)},r:function e(t){return parseInt(t,10)},DEFAULT:function e(t){return t}};var Dt=function e(t){if(!(t&&t.attributes)){return{}}return et(t.attributes).reduce(function(e,t){var i=Lt[t.name]||Lt.DEFAULT;e[t.name]=i(t.value);return e},{})};var Rt={"urn:uuid:1077efec-c0b2-4d02-ace3-3c1e52e2fb4b":"org.w3.clearkey","urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed":"com.widevine.alpha","urn:uuid:9a04f079-9840-4286-ab92-e65be0885f95":"com.microsoft.playready","urn:uuid:f239e769-efa3-4850-9c16-a903c6932efb":"com.adobe.primetime"};var Nt=function e(t,i){if(!i.length){return t}return $e(t.map(function(e){return i.map(function(t){return g(e,xt(t))})}))};var Mt=function e(t){var i=At(t,"SegmentTemplate")[0];var r=At(t,"SegmentList")[0];var n=r&&At(r,"SegmentURL").map(function(e){return Qe({tag:"SegmentURL"},Dt(e))});var a=At(t,"SegmentBase")[0];var s=r||i;var o=s&&At(s,"SegmentTimeline")[0];var l=r||a||i;var u=l&&At(l,"Initialization")[0];var c=i&&Dt(i);if(c&&u){c.initialization=u&&Dt(u)}else if(c&&c.initialization){c.initialization={sourceURL:c.initialization}}var d={template:c,timeline:o&&At(o,"S").map(function(e){return Dt(e)}),list:r&&Qe(Dt(r),{segmentUrls:n,initialization:Dt(u)}),base:a&&Qe(Dt(a),{initialization:Dt(u)})};
1Object.keys(d).forEach(function(e){if(!d[e]){delete d[e]}});return d};var Ut=function e(t,i,r){return function(e){var n=At(e,"BaseURL");var a=Nt(i,n);var s=Qe(t,Dt(e));var o=Mt(e);return a.map(function(e){return{segmentInfo:Qe(r,o),attributes:Qe(s,{baseUrl:e})}})}};var Bt=function e(t){return t.reduce(function(e,t){var i=Dt(t);var r=Rt[i.schemeIdUri];if(r){e[r]={attributes:i};var n=At(t,"cenc:pssh")[0];if(n){var a=xt(n);var s=a&&k(a);e[r].pssh=s}}return e},{})};var Ft=function e(t,i,r){return function(e){var n=Dt(e);var a=Nt(i,At(e,"BaseURL"));var s=At(e,"Role")[0];var o={role:Dt(s)};var l=Qe(t,n,o);var u=Bt(At(e,"ContentProtection"));if(Object.keys(u).length){l=Qe(l,{contentProtection:u})}var c=Mt(e);var d=At(e,"Representation");var f=Qe(r,c);return $e(d.map(Ut(l,a,f)))}};var Ht=function e(t,i){return function(e,r){var n=Nt(i,At(e,"BaseURL"));var a=Dt(e);var s=parseInt(a.id,10);var o=l["default"].isNaN(s)?r:s;var u=Qe(t,{periodIndex:o});var c=At(e,"AdaptationSet");var d=Mt(e);return $e(c.map(Ft(u,n,d)))}};var Vt=function e(t,i){if(i===void 0){i={}}var r=i,n=r.manifestUri,a=n===void 0?"":n,s=r.NOW,o=s===void 0?Date.now():s,l=r.clientOffset,u=l===void 0?0:l;var c=At(t,"Period");if(!c.length){throw new Error(it.INVALID_NUMBER_OF_PERIOD)}var d=At(t,"Location");var f=Dt(t);var h=Nt([a],At(t,"BaseURL"));f.sourceDuration=f.mediaPresentationDuration||0;f.NOW=o;f.clientOffset=u;if(d.length){f.locations=d.map(xt)}return{locations:f.locations,representationInfo:$e(c.map(Ht(f,h)))}};var qt=function e(t){if(t===""){throw new Error(it.DASH_EMPTY_MANIFEST)}var i=new a.DOMParser;var r;var n;try{r=i.parseFromString(t,"application/xml");n=r&&r.documentElement.tagName==="MPD"?r.documentElement:null}catch(e){}if(!n||n&&n.getElementsByTagName("parsererror").length>0){throw new Error(it.DASH_INVALID_XML)}return n};var zt=function e(t){var i=At(t,"UTCTiming")[0];if(!i){return null}var r=Dt(i);switch(r.schemeIdUri){case"urn:mpeg:dash:utc:http-head:2014":case"urn:mpeg:dash:utc:http-head:2012":r.method="HEAD";break;case"urn:mpeg:dash:utc:http-xsdate:2014":case"urn:mpeg:dash:utc:http-iso:2014":case"urn:mpeg:dash:utc:http-xsdate:2012":case"urn:mpeg:dash:utc:http-iso:2012":r.method="GET";break;case"urn:mpeg:dash:utc:direct:2014":case"urn:mpeg:dash:utc:direct:2012":r.method="DIRECT";r.value=Date.parse(r.value);break;case"urn:mpeg:dash:utc:http-ntp:2014":case"urn:mpeg:dash:utc:ntp:2014":case"urn:mpeg:dash:utc:sntp:2014":default:throw new Error(it.UNSUPPORTED_UTC_TIMING_SCHEME)}return r};var Wt=function e(t,i){if(i===void 0){i={}}var r=Vt(qt(t),i);var n=It(r.representationInfo);return gt(n,r.locations,i.sidxMapping)};var Gt=function e(t){return zt(qt(t))};var Yt=ut;var Kt=Math.pow(2,32);var Xt=function e(t){var i=new DataView(t.buffer,t.byteOffset,t.byteLength),r={version:t[0],flags:new Uint8Array(t.subarray(1,4)),references:[],referenceId:i.getUint32(4),timescale:i.getUint32(8)},n=12;if(r.version===0){r.earliestPresentationTime=i.getUint32(n);r.firstOffset=i.getUint32(n+4);n+=8}else{r.earliestPresentationTime=i.getUint32(n)*Kt+i.getUint32(n+4);r.firstOffset=i.getUint32(n+8)*Kt+i.getUint32(n+12);n+=16}n+=2;var a=i.getUint16(n);n+=2;for(;a>0;n+=12,a--){r.references.push({referenceType:(t[n]&128)>>>7,referencedSize:i.getUint32(n)&2147483647,subsegmentDuration:i.getUint32(n+4),startsWithSap:!!(t[n+8]&128),sapType:(t[n+8]&112)>>>4,sapDeltaTime:i.getUint32(n+8)&268435455})}return r};var Qt=Xt;var Jt=function e(t){return t.toString(2).length};var Zt=function e(t){return Math.ceil(Jt(t)/8)};var $t=function e(t){return ArrayBuffer.isView(t)};var ei=function e(t){if(t instanceof Uint8Array){return t}if(!Array.isArray(t)&&!$t(t)&&!(t instanceof ArrayBuffer)){if(typeof t!=="number"||typeof t==="number"&&t!==t){t=0}else{t=[t]}}return new Uint8Array(t&&t.buffer||t,t&&t.byteOffset||0,t&&t.byteLength||0)};var ti=l["default"].BigInt||Number;var ii=[ti("0x1"),ti("0x100"),ti("0x10000"),ti("0x1000000"),ti("0x100000000"),ti("0x10000000000"),ti("0x1000000000000"),ti("0x100000000000000"),ti("0x10000000000000000")];var ri=function e(t,i){var r=i===void 0?{}:i,n=r.signed,a=n===void 0?false:n,s=r.le,o=s===void 0?false:s;t=ei(t);var l=o?"reduce":"reduceRight";var u=t[l]?t[l]:Array.prototype[l];var c=u.call(t,function(e,i,r){var n=o?r:Math.abs(r+1-t.length);return e+ti(i)*ii[n]},ti(0));if(a){var d=ii[t.length]/ti(2)-ti(1);c=ti(c);if(c>d){c-=d;c-=d;c-=ti(2)}}return Number(c)};var ni=function e(t,i){var r=i===void 0?{}:i,n=r.le,a=n===void 0?false:n;if(typeof t!=="bigint"&&typeof t!=="number"||typeof t==="number"&&t!==t){t=0}t=ti(t);var s=Zt(t);var o=new Uint8Array(new ArrayBuffer(s));for(var l=0;l<s;l++){var u=a?l:Math.abs(l+1-o.length);o[u]=Number(t/ii[l]&ti(255));if(t<0){o[u]=Math.abs(~o[u]);o[u]-=l===0?1:2}}return o};var ai=function e(t,i){if(typeof t!=="string"&&t&&typeof t.toString==="function"){t=t.toString()}if(typeof t!=="string"){return new Uint8Array}if(!i){t=unescape(encodeURIComponent(t))}
1var r=new Uint8Array(t.length);for(var n=0;n<t.length;n++){r[n]=t.charCodeAt(n)}return r};var si=function e(){for(var t=arguments.length,i=new Array(t),r=0;r<t;r++){i[r]=arguments[r]}i=i.filter(function(e){return e&&(e.byteLength||e.length)&&typeof e!=="string"});if(i.length<=1){return ei(i[0])}var n=i.reduce(function(e,t,i){return e+(t.byteLength||t.length)},0);var a=new Uint8Array(n);var s=0;i.forEach(function(e){e=ei(e);a.set(e,s);s+=e.byteLength});return a};var oi=function e(t,i,r){var n=r===void 0?{}:r,a=n.offset,s=a===void 0?0:a,o=n.mask,l=o===void 0?[]:o;t=ei(t);i=ei(i);var u=i.every?i.every:Array.prototype.every;return i.length&&t.length-s>=i.length&&u.call(i,function(e,i){var r=l[i]?l[i]&t[s+i]:t[s+i];return e===r})};var li=ei([73,68,51]);var ui=function e(t,i){if(i===void 0){i=0}t=ei(t);var r=t[i+5];var n=t[i+6]<<21|t[i+7]<<14|t[i+8]<<7|t[i+9];var a=(r&16)>>4;if(a){return n+20}return n+10};var ci=function e(t,i){if(i===void 0){i=0}t=ei(t);if(t.length-i<10||!oi(t,li,{offset:i})){return i}i+=ui(t,i);return e(t,i)};var di=function e(t){if(typeof t==="string"){return ai(t)}if(typeof t==="number"){return t}return t};var fi=function e(t){if(!Array.isArray(t)){return[di(t)]}return t.map(function(e){return di(e)})};var hi=function e(t,i,r){if(r===void 0){r=false}i=fi(i);t=ei(t);var n=[];if(!i.length){return n}var a=0;while(a<t.length){var s=(t[a]<<24|t[a+1]<<16|t[a+2]<<8|t[a+3])>>>0;var o=t.subarray(a+4,a+8);if(s===0){break}var l=a+s;if(l>t.length){if(r){break}l=t.length}var u=t.subarray(a+8,l);if(oi(o,i[0])){if(i.length===1){n.push(u)}else{n.push.apply(n,e(u,i.slice(1),r))}}a=l}return n};var pi={EBML:ei([26,69,223,163]),DocType:ei([66,130]),Segment:ei([24,83,128,103]),SegmentInfo:ei([21,73,169,102]),Tracks:ei([22,84,174,107]),Track:ei([174]),TrackNumber:ei([215]),DefaultDuration:ei([35,227,131]),TrackEntry:ei([174]),TrackType:ei([131]),FlagDefault:ei([136]),CodecID:ei([134]),CodecPrivate:ei([99,162]),VideoTrack:ei([224]),AudioTrack:ei([225]),Cluster:ei([31,67,182,117]),Timestamp:ei([231]),TimestampScale:ei([42,215,177]),BlockGroup:ei([160]),BlockDuration:ei([155]),Block:ei([161]),SimpleBlock:ei([163])};var vi=[128,64,32,16,8,4,2,1];var mi=function e(t){var i=1;for(var r=0;r<vi.length;r++){if(t&vi[r]){break}i++}return i};var gi=function e(t,i,r,n){if(r===void 0){r=true}if(n===void 0){n=false}var a=mi(t[i]);var s=t.subarray(i,i+a);if(r){s=Array.prototype.slice.call(t,i,i+a);s[0]^=vi[a-1]}return{length:a,value:ri(s,{signed:n}),bytes:s}};var yi=function e(t){if(typeof t==="string"){return t.match(/.{1,2}/g).map(function(t){return e(t)})}if(typeof t==="number"){return ni(t)}return t};var _i=function e(t){if(!Array.isArray(t)){return[yi(t)]}return t.map(function(e){return yi(e)})};var bi=function e(t,i,r){if(r>=i.length){return i.length}var n=gi(i,r,false);if(oi(t.bytes,n.bytes)){return r}var a=gi(i,r+n.length);return e(t,i,r+a.length+a.value+n.length)};var Ti=function e(t,i){i=_i(i);t=ei(t);var r=[];if(!i.length){return r}var n=0;while(n<t.length){var a=gi(t,n,false);var s=gi(t,n+a.length);var o=n+a.length+s.length;if(s.value===127){s.value=bi(a,t,o);if(s.value!==t.length){s.value-=o}}var l=o+s.value>t.length?t.length:o+s.value;var u=t.subarray(o,l);if(oi(i[0],a.bytes)){if(i.length===1){r.push(u)}else{r=r.concat(e(u,i.slice(1)))}}var c=a.length+s.length+u.length;n+=c}return r};v'),t[0].s.push(');var ji=function e(t){var i=[];var r=1;while(r<t.length-2){if(oi(t.subarray(r,r+3),Ei)){i.push(r+2);r++}r++}if(i.length===0){return t}var n=t.length-i.length;var a=new Uint8Array(n);var s=0;for(r=0;r<n;s++,r++){if(s===i[0]){s++;i.shift()}a[r]=t[s]}return a};var wi=function e(t,i,r,n){if(n===void 0){n=Infinity}t=ei(t);r=[].concat(r);var a=0;var s;var o=0;while(a<t.length&&(o<n||s)){var l=void 0;if(oi(t.subarray(a),Si)){l=4}else if(oi(t.subarray(a),ki)){l=3}if(!l){a++;continue}o++;if(s){return ji(t.subarray(s,a))}var u=void 0;if(i==="h264"){u=t[a+l]&31}else if(i==="h265"){u=t[a+l]>>1&63}if(r.indexOf(u)!==-1){s=a+l}a+=l+(i==="h264"?1:2)}return t.subarray(0,0)};var Ci=function e(t,i,r){return wi(t,"h264",i,r)};var Ii=function e(t,i,r){return wi(t,"h265",i,r)};var Ai={webm:ei([119,101,98,109]),matroska:ei([109,97,116,114,111,115,107,97]),flac:ei([102,76,97,67]),ogg:ei([79,103,103,83]),ac3:ei([11,119]),riff:ei([82,73,70,70]),avi:ei([65,86,73]),wav:ei([87,65,86,69]),"3gp":ei([102,116,121,112,51,103]),mp4:ei([102,116,121,112]),fmp4:ei([115,116,121,112]),mov:ei([102,116,121,112,113,116])};var xi={aac:function e(t){var i=ci(t);return oi(t,[255,16],{offset:i,mask:[255,22]})},mp3:function e(t){var i=ci(t);return oi(t,[255,2],{offset:i,mask:[255,6]})},webm:function e(t){var i=Ti(t,[pi.EBML,pi.DocType])[0];return oi(i,Ai.webm)},mkv:function e(t){var i=Ti(t,[pi.EBML,pi.DocType])[0];return oi(i,Ai.matroska)},mp4:function e(t){return!xi["3gp"](t)&&!xi.mov(t)&&(oi(t,Ai.mp4,{offset:4})||oi(t,Ai.fmp4,{offset:4}))},mov:function e(t){return oi(t,Ai.mov,{offset:4})},"3gp":function e(t){return oi(t,Ai["3gp"],{offset:4})},ac3:function e(t){var i=ci(t);return oi(t,Ai.ac3,{offset:i})},ts:function e(t){if(t.length<189&&t.length>=1){return t[0]===71}var i=0;while(i+188<t.length&&i<188){if(t[i]===71&&t[i+188]===71){return true}i+=1}return false},flac:function e(t){var i=ci(t);return oi(t,Ai.flac,{offset:i})},ogg:function e(t){return oi(t,Ai.ogg)},avi:function e(t){return oi(t,Ai.riff)&&oi(t,Ai.avi,{offset:8})},wav:function e(t){return oi(t,Ai.riff)&&oi(t,Ai.wav,{offset:8})},h264:function e(t){return Ci(t,7,3).length},h265:function e(t){return Ii(t,[32,33],3).length}};var Pi=Object.keys(xi).filter(function(e){return e!=="ts"&&e!=="h264"&&e!=="h265"}).concat(["ts","h264","h265"]);
1Pi.forEach(function(e){var t=xi[e];xi[e]=function(e){return t(ei(e))}});var Oi=xi;var Li=function e(t){t=ei(t);for(var i=0;i<Pi.length;i++){var r=Pi[i];if(Oi[r](t)){return r}}return""};var Di=function e(t){return hi(t,["moof"]).length>0};var Ri=function e(t,i){if(t.readyState===4){return i()}return};var Ni=function e(t,i,r){var n=[];var a;var s=false;var o=function e(t,i,n,a){i.abort();s=true;return r(t,i,n,a)};var l=function e(t,i){if(s){return}if(t){return o(t,i,"",n)}var r=i.responseText.substring(n&&n.byteLength||0,i.responseText.length);n=si(n,ai(r,true));a=a||ci(n);if(n.length<10||a&&n.length<a+2){return Ri(i,function(){return o(t,i,"",n)})}var l=Li(n);if(l==="ts"&&n.length<188){return Ri(i,function(){return o(t,i,"",n)})}if(!l&&n.length<376){return Ri(i,function(){return o(t,i,"",n)})}return o(null,i,l,n)};var u={uri:t,beforeSend:function e(t){t.overrideMimeType("text/plain; charset=x-user-defined");t.addEventListener("progress",function(e){var i=e.total,r=e.loaded;return ke(t,null,{statusCode:t.status},l)})}};var c=i(u,function(e,t){return ke(c,e,t,l)});return c};var Mi=u["default"].EventTarget,Ui=u["default"].mergeOptions;var Bi=function e(t){var i=t.masterXml,r=t.srcUrl,n=t.clientOffset,a=t.sidxMapping;var s=Wt(i,{manifestUri:r,clientOffset:n,sidxMapping:a});M(s,r);return s};var Fi=function e(t){var i=t.byterange.offset+t.byterange.length-1;return t.uri+"-"+t.byterange.offset+"-"+i};var Hi=function e(t,i,r){var n=true;var a=Ui(t,{duration:i.duration,minimumUpdatePeriod:i.minimumUpdatePeriod});for(var s=0;s<i.playlists.length;s++){var o=i.playlists[s];if(o.sidx){var l=Fi(o.sidx);if(r&&r[l]){Yt(o,r[l].sidx,o.sidx.resolvedUri)}}var u=V(a,o);if(u){a=u;n=false}}O(i,function(e,t,i,r){if(e.playlists&&e.playlists.length){var s=e.playlists[0].id;var o=V(a,e.playlists[0]);if(o){a=o;a.mediaGroups[t][i][r].playlists[0]=a.playlists[s];n=false}}});if(i.minimumUpdatePeriod!==t.minimumUpdatePeriod){n=false}if(n){return null}return a};var Vi=function e(t,i){var r=Boolean(!t.map&&!i.map);var n=r||Boolean(t.map&&i.map&&t.map.byterange.offset===i.map.byterange.offset&&t.map.byterange.length===i.map.byterange.length);return n&&t.uri===i.uri&&t.byterange.offset===i.byterange.offset&&t.byterange.length===i.byterange.length};var qi=function e(t,i){var r={};for(var n in t){var a=t[n];var s=a.sidx;if(s){var o=Fi(s);if(!i[o]){break}var l=i[o].sidxInfo;if(Vi(l,s)){r[o]=i[o]}}}return r};var zi=function e(t,i){var r=qi(t.playlists,i);var n=r;O(t,function(e,t,r,a){if(e.playlists&&e.playlists.length){var s=e.playlists;n=Ui(n,qi(s,i))}});return n};var Wi=function(e){h(t,e);function t(t,i,r,n){var a;if(r===void 0){r={}}a=e.call(this)||this;a.masterPlaylistLoader_=n||d(a);if(!n){a.isMaster_=true}var s=r,o=s.withCredentials,l=o===void 0?false:o,u=s.handleManifestRedirects,c=u===void 0?false:u;a.vhs_=i;a.withCredentials=l;a.handleManifestRedirects=c;if(!t){throw new Error("A non-empty playlist URL or object is required")}a.on("minimumUpdatePeriod",function(){a.refreshXml_()});a.on("mediaupdatetimeout",function(){a.refreshMedia_(a.media().id)});a.state="HAVE_NOTHING";a.loadedPlaylists_={};if(a.isMaster_){a.masterPlaylistLoader_.srcUrl=t;a.masterPlaylistLoader_.sidxMapping_={}}else{a.childPlaylist_=t}return a}var i=t.prototype;i.requestErrored_=function e(t,i,r){if(!this.request){return true}this.request=null;if(t){this.error=typeof t==="object"&&!(t instanceof Error)?t:{status:i.status,message:"DASH request error at URL: "+i.uri,response:i.response,code:2};if(r){this.state=r}this.trigger("error");return true}};i.addSidxSegments_=function e(t,i,r){var n=this;var a=t.sidx&&Fi(t.sidx);if(!t.sidx||!a||this.masterPlaylistLoader_.sidxMapping_[a]){this.mediaRequest_=l["default"].setTimeout(function(){return r(false)},0);return}var s=_(this.handleManifestRedirects,t.sidx.resolvedUri);var o=this.masterPlaylistLoader_.sidxMapping_;o[a]={sidxInfo:t.sidx};var u=function e(s,l){if(n.requestErrored_(s,l,i)){return}var u=Qt(ei(l.response).subarray(8));o[a].sidx=u;Yt(t,u,t.sidx.resolvedUri);return r(true)};this.request=Ni(s,this.vhs_.xhr,function(e,i,r,a){if(e){return u(e,i)}if(!r||r!=="mp4"){return u({status:i.status,message:"Unsupported "+(r||"unknown")+" container type for sidx segment at URL: "+s,response:"",playlist:t,internal:true,blacklistDuration:Infinity,code:2},i)}var o=t.sidx.byterange,l=o.offset,c=o.length;if(a.length>=c+l){return u(e,{response:a.subarray(l,l+c),status:i.status,uri:i.uri})}n.request=n.vhs_.xhr({uri:s,responseType:"arraybuffer",headers:we({byterange:t.sidx.byterange})},u)})};i.dispose=function e(){this.trigger("dispose");this.stopRequest();this.loadedPlaylists_={};l["default"].clearTimeout(this.minimumUpdatePeriodTimeout_);l["default"].clearTimeout(this.mediaRequest_);l["default"].clearTimeout(this.mediaUpdateTimeout);this.off()};i.hasPendingRequest=function e(){return this.request||this.mediaRequest_};i.stopRequest=function e(){if(this.request){var t=this.request;this.request=null;t.onreadystatechange=null;t.abort()}};i.media=function e(t){var i=this;if(!t){return this.media_}if(this.state==="HAVE_NOTHING"){throw new Error("Cannot switch media playlist from "+this.state)}var r=this.state;if(typeof t==="string"){if(!this.masterPlaylistLoader_.master.playlists[t]){throw new Error("Unknown playlist URI: "+t)}t=this.masterPlaylistLoader_.master.playlists[t]}var n=!this.media_||t.id!==this.media_.id;if(n&&this.loadedPlaylists_[t.id]&&this.loadedPlaylists_[t.id].endList){this.state="HAVE_METADATA";this.media_=t;if(n){this.trigger("mediachanging");this.trigger("mediachange")}return}if(!n){return}if(this.media_){this.trigger("mediachanging")}this.addSidxSegments_(t,r,function(e){i.haveMetadata({startingState:r,playlist:t})})};i.haveMetadata=function e(t){var i=t.startingState,r=t.playlist;this.state="HAVE_METADATA";this.loadedPlaylists_[r.id]=r;this.mediaRequest_=null;this.refreshMedia_(r.id);if(i==="HAVE_MASTER"){this.trigger("loadedmetadata")}else{this.trigger("mediachange")}};i.pause=function e(){this.stopRequest();l["default"].clearTimeout(this.mediaUpdateTimeout);l["default"].clearTimeout(this.minimumUpdatePeriodTimeout_);if(this.state==="HAVE_NOTHING"){this.started=false}};i.load=function e(t){var i=this;l["default"].clearTimeout(this.mediaUpdateTimeout);l["default"].clearTimeout(this.minimumUpdatePeriodTimeout_);var r=this.media();if(t){var n=r?r.targetDuration/2*1e3:5*1e3;this.mediaUpdateTimeout=l["default"].setTimeout(function(){return i.load()},n);return}if(!this.started){this.start();return}if(r&&!r.endList){this.trigger("mediaupdatetimeout")}else{this.trigger("loadedplaylist")}};i.start=function e(){var t=this;this.started=true;if(!this.isMaster_){this.mediaRequest_=l["default"].setTimeout(function(){return t.haveMaster_()},0);return}this.requestMaster_(function(e,i){t.haveMaster_();if(!t.hasPendingRequest()&&!t.media_){t.media(t.masterPlaylistLoader_.master.playlists[0])}})};i.requestMaster_=function e(t){var i=this;this.request=this.vhs_.xhr({uri:this.masterPlaylistLoader_.srcUrl,withCredentials:this.withCredentials},function(e,r){if(i.requestErrored_(e,r)){if(i.state==="HAVE_NOTHING"){i.started=false}return}var n=r.responseText!==i.masterPlaylistLoader_.masterXml_;i.masterPlaylistLoader_.masterXml_=r.responseText;if(r.responseHeaders&&r.responseHeaders.date){i.masterLoaded_=Date.parse(r.responseHeaders.date)}else{i.masterLoaded_=Date.now()}i.masterPlaylistLoader_.srcUrl=_(i.handleManifestRedirects,i.masterPlaylistLoader_.srcUrl,r);if(n){i.handleMaster_();i.syncClientServerClock_(function(){return t(r,n)});return}return t(r,n)})};i.syncClientServerClock_=function e(t){var i=this;var r=Gt(this.masterPlaylistLoader_.masterXml_);if(r===null){this.masterPlaylistLoader_.clientOffset_=this.masterLoaded_-Date.now();return t()}if(r.method==="DIRECT"){this.masterPlaylistLoader_.clientOffset_=r.value-Date.now();return t()}this.request=this.vhs_.xhr({uri:y(this.masterPlaylistLoader_.srcUrl,r.value),method:r.method,withCredentials:this.withCredentials},function(e,n){if(!i.request){return}if(e){i.masterPlaylistLoader_.clientOffset_=i.masterLoaded_-Date.now();return t()}var a;if(r.method==="HEAD"){if(!n.responseHeaders||!n.responseHeaders.date){a=i.masterLoaded_}else{a=Date.parse(n.responseHeaders.date)}}else{a=Date.parse(n.responseText)}i.masterPlaylistLoader_.clientOffset_=a-Date.now();t()})};i.haveMaster_=function e(){this.state="HAVE_MASTER";if(this.isMaster_){this.trigger("loadedplaylist")}else if(!this.media_){this.media(this.childPlaylist_)}};i.handleMaster_=function e(){this.mediaRequest_=null;var t=Bi({masterXml:this.masterPlaylistLoader_.masterXml_,srcUrl:this.masterPlaylistLoader_.srcUrl,clientOffset:this.masterPlaylistLoader_.clientOffset_,sidxMapping:this.masterPlaylistLoader_.sidxMapping_});var i=this.masterPlaylistLoader_.master;if(i){t=Hi(i,t,this.masterPlaylistLoader_.sidxMapping_)}this.masterPlaylistLoader_.master=t?t:i;var r=this.masterPlaylistLoader_.master.locations&&this.masterPlaylistLoader_.master.locations[0];if(r&&r!==this.masterPlaylistLoader_.srcUrl){this.masterPlaylistLoader_.srcUrl=r}if(!i||t&&i.minimumUpdatePeriod!==t.minimumUpdatePeriod){this.updateMinimumUpdatePeriodTimeout_()}return Boolean(t)};i.updateMinimumUpdatePeriodTimeout_=function e(){var t=this;l["default"].clearTimeout(this.minimumUpdatePeriodTimeout_);var i=function e(i){t.minimumUpdatePeriodTimeout_=l["default"].setTimeout(function(){t.trigger("minimumUpdatePeriod");e(i)},i)};var r=this.masterPlaylistLoader_.master&&this.masterPlaylistLoader_.master.minimumUpdatePeriod;if(r>0){i(r)}else if(r===0){if(!this.media()){this.one("loadedplaylist",function(){i(t.media().targetDuration*1e3)})}else{i(this.media().targetDuration*1e3)}}};i.refreshXml_=function e(){var t=this;this.requestMaster_(function(e,i){if(!i){return}if(t.media_){t.media_=t.masterPlaylistLoader_.master.playlists[t.media_.id]}t.masterPlaylistLoader_.sidxMapping_=zi(t.masterPlaylistLoader_.master,t.masterPlaylistLoader_.sidxMapping_);t.addSidxSegments_(t.media(),t.state,function(e){t.refreshMedia_(t.media().id)})})};i.refreshMedia_=function e(t){var i=this;if(!t){throw new Error("refreshMedia_ must take a media id")}if(this.media_&&this.isMaster_){this.handleMaster_()}var r=this.masterPlaylistLoader_.master.playlists;var n=!this.media_||this.media_!==r[t];if(n){this.media_=r[t]}else{this.trigger("playlistunchanged")}if(!this.media().endList){this.mediaUpdateTimeout=l["default"].setTimeout(function(){i.trigger("mediaupdatetimeout")}
1,q(this.media(),Boolean(n)))}this.trigger("loadedplaylist")};return t}(Mi);var Gi={GOAL_BUFFER_LENGTH:30,MAX_GOAL_BUFFER_LENGTH:60,BACK_BUFFER_LENGTH:30,GOAL_BUFFER_LENGTH_RATE:1,INITIAL_BANDWIDTH:4194304,BANDWIDTH_VARIANCE:1.2,BUFFER_LOW_WATER_LINE:0,MAX_BUFFER_LOW_WATER_LINE:30,EXPERIMENTAL_MAX_BUFFER_LOW_WATER_LINE:16,BUFFER_LOW_WATER_LINE_RATE:1,BUFFER_HIGH_WATER_LINE:30};var Yi=function e(t){var i=new Uint8Array(new ArrayBuffer(t.length));for(var r=0;r<t.length;r++){i[r]=t.charCodeAt(r)}return i.buffer};var Ki=[];var Xi;var Qi=function e(t,i,r){var n=t.data.segment,a=n.type,s=n.initSegment,o=n.captions,l=n.captionStreams,u=n.metadata,c=n.videoFrameDtsTime,d=n.videoFramePtsTime;i.buffer.push({captions:o,captionStreams:l,metadata:u});var f=t.data.segment.boxes||{data:t.data.segment.data};var h={type:a,data:new Uint8Array(f.data,f.data.byteOffset,f.data.byteLength),initSegment:new Uint8Array(s.data,s.byteOffset,s.byteLength)};if(typeof c!=="undefined"){h.videoFrameDtsTime=c}if(typeof d!=="undefined"){h.videoFramePtsTime=d}r(h)};var Ji=function e(t){var i=t.transmuxedData,r=t.callback;i.buffer=[];r(i)};var Zi=function e(t,i){i.gopInfo=t.data.gopInfo};var $i=function e(t){var i=t.transmuxer,r=t.bytes,n=t.audioAppendStart,a=t.gopsToAlignWith,s=t.isPartial,o=t.remux,l=t.onData,u=t.onTrackInfo,c=t.onAudioTimingInfo,d=t.onVideoTimingInfo,f=t.onVideoSegmentTimingInfo,h=t.onAudioSegmentTimingInfo,p=t.onId3,v=t.onCaptions,m=t.onDone;var g={isPartial:s,buffer:[]};var y=function e(t){if(!Xi){return}if(t.data.action==="data"){Qi(t,g,l)}if(t.data.action==="trackinfo"){u(t.data.trackInfo)}if(t.data.action==="gopInfo"){Zi(t,g)}if(t.data.action==="audioTimingInfo"){c(t.data.audioTimingInfo)}if(t.data.action==="videoTimingInfo"){d(t.data.videoTimingInfo)}if(t.data.action==="videoSegmentTimingInfo"){f(t.data.videoSegmentTimingInfo)}if(t.data.action==="audioSegmentTimingInfo"){h(t.data.audioSegmentTimingInfo)}if(t.data.action==="id3Frame"){p([t.data.id3Frame],t.data.id3Frame.dispatchType)}if(t.data.action==="caption"){v(t.data.caption)}if(t.data.type!=="transmuxed"){return}i.onmessage=null;Ji({transmuxedData:g,callback:m});er()};i.onmessage=y;if(n){i.postMessage({action:"setAudioAppendStart",appendStart:n})}if(Array.isArray(a)){i.postMessage({action:"alignGopsWith",gopsToAlignWith:a})}if(typeof o!=="undefined"){i.postMessage({action:"setRemux",remux:o})}if(r.byteLength){var _=r instanceof ArrayBuffer?r:r.buffer;var b=r instanceof ArrayBuffer?0:r.byteOffset;i.postMessage({action:"push",data:_,byteOffset:b,byteLength:r.byteLength},[_])}i.postMessage({action:s?"partialFlush":"flush"})};var er=function e(){Xi=null;if(Ki.length){Xi=Ki.shift();if(typeof Xi==="function"){Xi()}else{$i(Xi)}}};var tr=function e(t,i){t.postMessage({action:i});er()};var ir=function e(t,i){if(!Xi){Xi=t;tr(i,t);return}Ki.push(tr.bind(null,i,t))};var rr=function e(t){ir("reset",t)};var nr=function e(t){ir("endTimeline",t)};var ar=function e(t){if(!Xi){Xi=t;$i(t);return}Ki.push(t)};var sr=function e(){Xi=null;Ki.length=0};var or={reset:rr,dispose:sr,endTimeline:nr,transmux:ar};var lr={H264_STREAM_TYPE:27,ADTS_STREAM_TYPE:15,METADATA_STREAM_TYPE:21};var ur=function e(){this.init=function(){var e={};this.on=function(t,i){if(!e[t]){e[t]=[]}e[t]=e[t].concat(i)};this.off=function(t,i){var r;if(!e[t]){return false}r=e[t].indexOf(i);e[t]=e[t].slice();e[t].splice(r,1);return r>-1};this.trigger=function(t){var i,r,n,a;i=e[t];if(!i){return}if(arguments.length===2){n=i.length;for(r=0;r<n;++r){i[r].call(this,arguments[1])}}else{a=[];r=arguments.length;for(r=1;r<arguments.length;++r){a.push(arguments[r])}n=i.length;for(r=0;r<n;'),t[1].s.push('ar Si=ei([0,0,0,1]);var ki=ei([0,0,1]);var Ei=ei([0,0,3]);var ji=function e(t){var i=[];var r=1;while(r<t.length-2){if(oi(t.subarray(r,r+3),Ei)){i.push(r+2);r++}r++}if(i.length===0){return t}var n=t.length-i.length;var a=new Uint8Array(n);var s=0;for(r=0;r<n;s++,r++){if(s===i[0]){s++;i.shift()}a[r]=t[s]}return a};var wi=function e(t,i,r,n){if(n===void 0){n=Infinity}t=ei(t);r=[].concat(r);var a=0;var s;var o=0;while(a<t.length&&(o<n||s)){var l=void 0;if(oi(t.subarray(a),Si)){l=4}else if(oi(t.subarray(a),ki)){l=3}if(!l){a++;continue}o++;if(s){return ji(t.subarray(s,a))}var u=void 0;if(i==="h264"){u=t[a+l]&31}else if(i==="h265"){u=t[a+l]>>1&63}if(r.indexOf(u)!==-1){s=a+l}a+=l+(i==="h264"?1:2)}return t.subarray(0,0)};
1var Ci=function e(t,i,r){return wi(t,"h264",i,r)};var Ii=function e(t,i,r){return wi(t,"h265",i,r)};var Ai={webm:ei([119,101,98,109]),matroska:ei([109,97,116,114,111,115,107,97]),flac:ei([102,76,97,67]),ogg:ei([79,103,103,83]),ac3:ei([11,119]),riff:ei([82,73,70,70]),avi:ei([65,86,73]),wav:ei([87,65,86,69]),"3gp":ei([102,116,121,112,51,103]),mp4:ei([102,116,121,112]),fmp4:ei([115,116,121,112]),mov:ei([102,116,121,112,113,116])};var xi={aac:function e(t){var i=ci(t);return oi(t,[255,16],{offset:i,mask:[255,22]})},mp3:function e(t){var i=ci(t);return oi(t,[255,2],{offset:i,mask:[255,6]})},webm:function e(t){var i=Ti(t,[pi.EBML,pi.DocType])[0];return oi(i,Ai.webm)},mkv:function e(t){var i=Ti(t,[pi.EBML,pi.DocType])[0];return oi(i,Ai.matroska)},mp4:function e(t){return!xi["3gp"](t)&&!xi.mov(t)&&(oi(t,Ai.mp4,{offset:4})||oi(t,Ai.fmp4,{offset:4}))},mov:function e(t){return oi(t,Ai.mov,{offset:4})},"3gp":function e(t){return oi(t,Ai["3gp"],{offset:4})},ac3:function e(t){var i=ci(t);return oi(t,Ai.ac3,{offset:i})},ts:function e(t){if(t.length<189&&t.length>=1){return t[0]===71}var i=0;while(i+188<t.length&&i<188){if(t[i]===71&&t[i+188]===71){return true}i+=1}return false},flac:function e(t){var i=ci(t);return oi(t,Ai.flac,{offset:i})},ogg:function e(t){return oi(t,Ai.ogg)},avi:function e(t){return oi(t,Ai.riff)&&oi(t,Ai.avi,{offset:8})},wav:function e(t){return oi(t,Ai.riff)&&oi(t,Ai.wav,{offset:8})},h264:function e(t){return Ci(t,7,3).length},h265:function e(t){return Ii(t,[32,33],3).length}};var Pi=Object.keys(xi).filter(function(e){return e!=="ts"&&e!=="h264"&&e!=="h265"}).concat(["ts","h264","h265"]);Pi.forEach(function(e){var t=xi[e];xi[e]=function(e){return t(ei(e))}});var Oi=xi;var Li=function e(t){t=ei(t);for(var i=0;i<Pi.length;i++){var r=Pi[i];if(Oi[r](t)){return r}}return""};var Di=function e(t){return hi(t,["moof"]).length>0};var Ri=function e(t,i){if(t.readyState===4){return i()}return};var Ni=function e(t,i,r){var n=[];var a;var s=false;var o=function e(t,i,n,a){i.abort();s=true;return r(t,i,n,a)};var l=function e(t,i){if(s){return}if(t){return o(t,i,"",n)}var r=i.responseText.substring(n&&n.byteLength||0,i.responseText.length);n=si(n,ai(r,true));a=a||ci(n);if(n.length<10||a&&n.length<a+2){return Ri(i,function(){return o(t,i,"",n)})}var l=Li(n);if(l==="ts"&&n.length<188){return Ri(i,function(){return o(t,i,"",n)})}if(!l&&n.length<376){return Ri(i,function(){return o(t,i,"",n)})}return o(null,i,l,n)};var u={uri:t,beforeSend:function e(t){t.overrideMimeType("text/plain; charset=x-user-defined");t.addEventListener("progress",function(e){var i=e.total,r=e.loaded;return ke(t,null,{statusCode:t.status},l)})}};var c=i(u,function(e,t){return ke(c,e,t,l)});return c};var Mi=u["default"].EventTarget,Ui=u["default"].mergeOptions;var Bi=function e(t){var i=t.masterXml,r=t.srcUrl,n=t.clientOffset,a=t.sidxMapping;var s=Wt(i,{manifestUri:r,clientOffset:n,sidxMapping:a});M(s,r);return s};var Fi=function e(t){var i=t.byterange.offset+t.byterange.length-1;return t.uri+"-"+t.byterange.offset+"-"+i};var Hi=function e(t,i,r){var n=true;var a=Ui(t,{duration:i.duration,minimumUpdatePeriod:i.minimumUpdatePeriod});for(var s=0;s<i.playlists.length;s++){var o=i.playlists[s];if(o.sidx){var l=Fi(o.sidx);if(r&&r[l]){Yt(o,r[l].sidx,o.sidx.resolvedUri)}}var u=V(a,o);if(u){a=u;n=false}}O(i,function(e,t,i,r){if(e.playlists&&e.playlists.length){var s=e.playlists[0].id;var o=V(a,e.playlists[0]);if(o){a=o;a.mediaGroups[t][i][r].playlists[0]=a.playlists[s];n=false}}});if(i.minimumUpdatePeriod!==t.minimumUpdatePeriod){n=false}if(n){return null}return a};var Vi=function e(t,i){var r=Boolean(!t.map&&!i.map);var n=r||Boolean(t.map&&i.map&&t.map.byterange.offset===i.map.byterange.offset&&t.map.byterange.length===i.map.byterange.length);return n&&t.uri===i.uri&&t.byterange.offset===i.byterange.offset&&t.byterange.length===i.byterange.length};var qi=function e(t,i){var r={};for(var n in t){var a=t[n];var s=a.sidx;if(s){var o=Fi(s);if(!i[o]){break}var l=i[o].sidxInfo;if(Vi(l,s)){r[o]=i[o]}}}return r};var zi=function e(t,i){var r=qi(t.playlists,i);var n=r;O(t,function(e,t,r,a){if(e.playlists&&e.playlists.length){var s=e.playlists;n=Ui(n,qi(s,i))}});return n};var Wi=function(e){h(t,e);function t(t,i,r,n){var a;if(r===void 0){r={}}a=e.call(this)||this;a.masterPlaylistLoader_=n||d(a);if(!n){a.isMaster_=true}var s=r,o=s.withCredentials,l=o===void 0?false:o,u=s.handleManifestRedirects,c=u===void 0?false:u;
1a.vhs_=i;a.withCredentials=l;a.handleManifestRedirects=c;if(!t){throw new Error("A non-empty playlist URL or object is required")}a.on("minimumUpdatePeriod",function(){a.refreshXml_()});a.on("mediaupdatetimeout",function(){a.refreshMedia_(a.media().id)});a.state="HAVE_NOTHING";a.loadedPlaylists_={};if(a.isMaster_){a.masterPlaylistLoader_.srcUrl=t;a.masterPlaylistLoader_.sidxMapping_={}}else{a.childPlaylist_=t}return a}var i=t.prototype;i.requestErrored_=function e(t,i,r){if(!this.request){return true}this.request=null;if(t){this.error=typeof t==="object"&&!(t instanceof Error)?t:{status:i.status,message:"DASH request error at URL: "+i.uri,response:i.response,code:2};if(r){this.state=r}this.trigger("error");return true}};i.addSidxSegments_=function e(t,i,r){var n=this;var a=t.sidx&&Fi(t.sidx);if(!t.sidx||!a||this.masterPlaylistLoader_.sidxMapping_[a]){this.mediaRequest_=l["default"].setTimeout(function(){return r(false)},0);return}var s=_(this.handleManifestRedirects,t.sidx.resolvedUri);var o=this.masterPlaylistLoader_.sidxMapping_;o[a]={sidxInfo:t.sidx};var u=function e(s,l){if(n.requestErrored_(s,l,i)){return}var u=Qt(ei(l.response).subarray(8));o[a].sidx=u;Yt(t,u,t.sidx.resolvedUri);return r(true)};this.request=Ni(s,this.vhs_.xhr,function(e,i,r,a){if(e){return u(e,i)}if(!r||r!=="mp4"){return u({status:i.status,message:"Unsupported "+(r||"unknown")+" container type for sidx segment at URL: "+s,response:"",playlist:t,internal:true,blacklistDuration:Infinity,code:2},i)}var o=t.sidx.byterange,l=o.offset,c=o.length;if(a.length>=c+l){return u(e,{response:a.subarray(l,l+c),status:i.status,uri:i.uri})}n.request=n.vhs_.xhr({uri:s,responseType:"arraybuffer",headers:we({byterange:t.sidx.byterange})},u)})};i.dispose=function e(){this.trigger("dispose");this.stopRequest();this.loadedPlaylists_={};l["default"].clearTimeout(this.minimumUpdatePeriodTimeout_);l["default"].clearTimeout(this.mediaRequest_);l["default"].clearTimeout(this.mediaUpdateTimeout);this.off()};i.hasPendingRequest=function e(){return this.request||this.mediaRequest_};i.stopRequest=function e(){if(this.request){var t=this.request;this.request=null;t.onreadystatechange=null;t.abort()}};i.media=function e(t){var i=this;if(!t){return this.media_}if(this.state==="HAVE_NOTHING"){throw new Error("Cannot switch media playlist from "+this.state)}var r=this.state;if(typeof t==="string"){if(!this.masterPlaylistLoader_.master.playlists[t]){throw new Error("Unknown playlist URI: "+t)}t=this.masterPlaylistLoader_.master.playlists[t]}var n=!this.media_||t.id!==this.media_.id;if(n&&this.loadedPlaylists_[t.id]&&this.loadedPlaylists_[t.id].endList){this.state="HAVE_METADATA";this.media_=t;if(n){this.trigger("mediachanging");this.trigger("mediachange")}return}if(!n){return}if(this.media_){this.trigger("mediachanging")}this.addSidxSegments_(t,r,function(e){i.haveMetadata({startingState:r,playlist:t})})};i.haveMetadata=function e(t){var i=t.startingState,r=t.playlist;this.state="HAVE_METADATA";this.loadedPlaylists_[r.id]=r;this.mediaRequest_=null;this.refreshMedia_(r.id);if(i==="HAVE_MASTER"){this.trigger("loadedmetadata")}else{this.trigger("mediachange")}};i.pause=function e(){this.stopRequest();l["default"].clearTimeout(this.mediaUpdateTimeout);l["default"].clearTimeout(this.minimumUpdatePeriodTimeout_);if(this.state==="HAVE_NOTHING"){this.started=false}};i.load=function e(t){var i=this;l["default"].clearTimeout(this.mediaUpdateTimeout);l["default"].clearTimeout(this.minimumUpdatePeriodTimeout_);var r=this.media();if(t){var n=r?r.targetDuration/2*1e3:5*1e3;this.mediaUpdateTimeout=l["default"].setTimeout(function(){return i.load()},n);return}if(!this.started){this.start();return}if(r&&!r.endList){this.trigger("mediaupdatetimeout")}else{this.trigger("loadedplaylist")}};i.start=function e(){var t=this;this.started=true;if(!this.isMaster_){this.mediaRequest_=l["default"].setTimeout(function(){return t.haveMaster_()},0);return}this.requestMaster_(function(e,i){t.haveMaster_();if(!t.hasPendingRequest()&&!t.media_){t.media(t.masterPlaylistLoader_.master.playlists[0])}})};i.requestMaster_=function e(t){var i=this;this.request=this.vhs_.xhr({uri:this.masterPlaylistLoader_.srcUrl,withCredentials:this.withCredentials},function(e,r){if(i.requestErrored_(e,r)){if(i.state==="HAVE_NOTHING"){i.started=false}return}var n=r.responseText!==i.masterPlaylistLoader_.masterXml_;i.masterPlaylistLoader_.masterXml_=r.responseText;if(r.responseHeaders&&r.responseHeaders.date){i.masterLoaded_=Date.parse(r.responseHeaders.date)}else{i.masterLoaded_=Date.now()}i.masterPlaylistLoader_.srcUrl=_(i.handleManifestRedirects,i.masterPlaylistLoader_.srcUrl,r);if(n){i.handleMaster_();i.syncClientServerClock_(function(){return t(r,n)});return}return t(r,n)})};i.syncClientServerClock_=function e(t){var i=this;var r=Gt(this.masterPlaylistLoader_.masterXml_);if(r===null){this.masterPlaylistLoader_.clientOffset_=this.masterLoaded_-Date.now();return t()}if(r.method==="DIRECT"){this.masterPlaylistLoader_.clientOffset_=r.value-Date.now();return t()}this.request=this.vhs_.xhr({uri:y(this.masterPlaylistLoader_.srcUrl,r.value),method:r.method,withCredentials:this.withCredentials},function(e,n){if(!i.request){return}if(e){i.masterPlaylistLoader_.clientOffset_=i.masterLoaded_-Date.now();return t()}var a;if(r.method==="HEAD"){if(!n.responseHeaders||!n.responseHeaders.date){a=i.masterLoaded_}else{a=Date.parse(n.responseHeaders.date)}}else{a=Date.parse(n.responseText)}i.masterPlaylistLoader_.clientOffset_=a-Date.now();t()})};i.haveMaster_=function e(){this.state="HAVE_MASTER";if(this.isMaster_){this.trigger("loadedplaylist")}else if(!this.media_){this.media(this.childPlaylist_)}};i.handleMaster_=function e(){this.mediaRequest_=null;var t=Bi({masterXml:this.masterPlaylistLoader_.masterXml_,srcUrl:this.masterPlaylistLoader_.srcUrl,clientOffset:this.masterPlaylistLoader_.clientOffset_,sidxMapping:this.masterPlaylistLoader_.sidxMapping_});var i=this.masterPlaylistLoader_.master;if(i){t=Hi(i,t,this.masterPlaylistLoader_.sidxMapping_)}this.masterPlaylistLoader_.master=t?t:i;var r=this.masterPlaylistLoader_.master.locations&&this.masterPlaylistLoader_.master.locations[0];if(r&&r!==this.masterPlaylistLoader_.srcUrl){this.masterPlaylistLoader_.srcUrl=r}if(!i||t&&i.minimumUpdatePeriod!==t.minimumUpdatePeriod){this.updateMinimumUpdatePeriodTimeout_()}return Boolean(t)};i.updateMinimumUpdatePeriodTimeout_=function e(){var t=this;l["default"].clearTimeout(this.minimumUpdatePeriodTimeout_);var i=function e(i){t.minimumUpdatePeriodTimeout_=l["default"].setTimeout(function(){t.trigger("minimumUpdatePeriod");e(i)},i)};var r=this.masterPlaylistLoader_.master&&this.masterPlaylistLoader_.master.minimumUpdatePeriod;if(r>0){i(r)}else if(r===0){if(!this.media()){this.one("loadedplaylist",function(){i(t.media().targetDuration*1e3)})}else{i(this.media().targetDuration*1e3)}}};i.refreshXml_=function e(){var t=this;this.requestMaster_(function(e,i){if(!i){return}if(t.media_){t.media_=t.masterPlaylistLoader_.master.playlists[t.media_.id]}t.masterPlaylistLoader_.sidxMapping_=zi(t.masterPlaylistLoader_.master,t.masterPlaylistLoader_.sidxMapping_);t.addSidxSegments_(t.media(),t.state,function(e){t.refreshMedia_(t.media().id)})})};i.refreshMedia_=function e(t){var i=this;if(!t){throw new Error("refreshMedia_ must take a media id")}if(this.media_&&this.isMaster_){this.handleMaster_()}var r=this.masterPlaylistLoader_.master.playlists;var n=!this.media_||this.media_!==r[t];if(n){this.media_=r[t]}else{this.trigger("playlistunchanged")}if(!this.media().endList){this.mediaUpdateTimeout=l["default"].setTimeout(function(){i.trigger("mediaupdatetimeout")}
1,q(this.media(),Boolean(n)))}this.trigger("loadedplaylist")};return t}(Mi);var Gi={GOAL_BUFFER_LENGTH:30,MAX_GOAL_BUFFER_LENGTH:60,BACK_BUFFER_LENGTH:30,GOAL_BUFFER_LENGTH_RATE:1,INITIAL_BANDWIDTH:4194304,BANDWIDTH_VARIANCE:1.2,BUFFER_LOW_WATER_LINE:0,MAX_BUFFER_LOW_WATER_LINE:30,EXPERIMENTAL_MAX_BUFFER_LOW_WATER_LINE:16,BUFFER_LOW_WATER_LINE_RATE:1,BUFFER_HIGH_WATER_LINE:30};var Yi=function e(t){var i=new Uint8Array(new ArrayBuffer(t.length));for(var r=0;r<t.length;r++){i[r]=t.charCodeAt(r)}return i.buffer};var Ki=[];var Xi;var Qi=function e(t,i,r){var n=t.data.segment,a=n.type,s=n.initSegment,o=n.captions,l=n.captionStreams,u=n.metadata,c=n.videoFrameDtsTime,d=n.videoFramePtsTime;i.buffer.push({captions:o,captionStreams:l,metadata:u});var f=t.data.segment.boxes||{data:t.data.segment.data};var h={type:a,data:new Uint8Array(f.data,f.data.byteOffset,f.data.byteLength),initSegment:new Uint8Array(s.data,s.byteOffset,s.byteLength)};if(typeof c!=="undefined"){h.videoFrameDtsTime=c}if(typeof d!=="undefined"){h.videoFramePtsTime=d}r(h)};var Ji=function e(t){var i=t.transmuxedData,r=t.callback;i.buffer=[];r(i)};var Zi=function e(t,i){i.gopInfo=t.data.gopInfo};var $i=function e(t){var i=t.transmuxer,r=t.bytes,n=t.audioAppendStart,a=t.gopsToAlignWith,s=t.isPartial,o=t.remux,l=t.onData,u=t.onTrackInfo,c=t.onAudioTimingInfo,d=t.onVideoTimingInfo,f=t.onVideoSegmentTimingInfo,h=t.onAudioSegmentTimingInfo,p=t.onId3,v=t.onCaptions,m=t.onDone;var g={isPartial:s,buffer:[]};var y=function e(t){if(!Xi){return}if(t.data.action==="data"){Qi(t,g,l)}if(t.data.action==="trackinfo"){u(t.data.trackInfo)}if(t.data.action==="gopInfo"){Zi(t,g)}if(t.data.action==="audioTimingInfo"){c(t.data.audioTimingInfo)}if(t.data.action==="videoTimingInfo"){d(t.data.videoTimingInfo)}if(t.data.action==="videoSegmentTimingInfo"){f(t.data.videoSegmentTimingInfo)}if(t.data.action==="audioSegmentTimingInfo"){h(t.data.audioSegmentTimingInfo)}if(t.data.action==="id3Frame"){p([t.data.id3Frame],t.data.id3Frame.dispatchType)}if(t.data.action==="caption"){v(t.data.caption)}if(t.data.type!=="transmuxed"){return}i.onmessage=null;Ji({transmuxedData:g,callback:m});er()};i.onmessage=y;if(n){i.postMessage({action:"setAudioAppendStart",appendStart:n})}if(Array.isArray(a)){i.postMessage({action:"alignGopsWith",gopsToAlignWith:a})}if(typeof o!=="undefined"){i.postMessage({action:"setRemux",remux:o})}if(r.byteLength){var _=r instanceof ArrayBuffer?r:r.buffer;var b=r instanceof ArrayBuffer?0:r.byteOffset;i.postMessage({action:"push",data:_,byteOffset:b,byteLength:r.byteLength},[_])}i.postMessage({action:s?"partialFlush":"flush"})};var er=function e(){Xi=null;if(Ki.length){Xi=Ki.shift();if(typeof Xi==="function"){Xi()}else{$i(Xi)}}};var tr=function e(t,i){t.postMessage({action:i});er()};var ir=function e(t,i){if(!Xi){Xi=t;tr(i,t);return}Ki.push(tr.bind(null,i,t))};var rr=function e(t){ir("reset",t)};var nr=function e(t){ir("endTimeline",t)};var ar=function e(t){if(!Xi){Xi=t;$i(t);return}Ki.push(t)};var sr=function e(){Xi=null;Ki.length=0};var or={reset:rr,dispose:sr,endTimeline:nr,transmux:ar};var lr={H264_STREAM_TYPE:27,ADTS_STREAM_TYPE:15,METADATA_STREAM_TYPE:21};var ur=function e(){this.init=function(){var e={};this.on=function(t,i){if(!e[t]){e[t]=[]}e[t]=e[t].concat(i)};this.off=function(t,i){var r;if(!e[t]){return false}r=e[t].indexOf(i);e[t]=e[t].slice();e[t].splice(r,1);return r>-1};this.trigger=function(t){var i,r,n,a;i=e[t];if(!i){return}if(arguments.length===2){n=i.length;for(r=0;r<n;++r){i[r].call(this,arguments[1])}}else{a=[];r=arguments.length;for(r=1;r<arguments.'),t[0].s.push('++r){i[r].apply(this,a)}}};this.dispose=function(){e={}}}};ur.prototype.pipe=function(e){this.on("data",function(t){e.push(t)});this.on("done",function(t){e.flush(t)});this.on("partialdone",function(t){e.partialFlush(t)});this.on("endedtimeline",function(t){e.endTimeline(t)});this.on("reset",function(t){e.reset(t)});return e};ur.prototype.push=function(e){this.trigger("data",e)};ur.prototype.flush=function(e){this.trigger("done",e)};ur.prototype.partialFlush=function(e){this.trigger("partialdone",e)};ur.prototype.endTimeline=function(e){this.trigger("endedtimeline",e)};ur.prototype.reset=function(e){this.trigger("reset",e)};var cr=ur;var dr=8589934592;var fr=4294967296;var hr="shared";var pr=function e(t,i){var r=1;if(t>i){r=-1}while(Math.abs(i-t)>fr){t+=r*dr}return t};var vr=function e(t){var i,r;e.prototype.init.call(this);this.type_=t||hr;
1this.push=function(e){if(this.type_!==hr&&e.type!==this.type_){return}if(r===undefined){r=e.dts}e.dts=pr(e.dts,r);e.pts=pr(e.pts,r);i=e.dts;this.trigger("data",e)};this.flush=function(){r=i;this.trigger("done")};this.endTimeline=function(){this.flush();this.trigger("endedtimeline")};this.discontinuity=function(){r=void 0;i=void 0};this.reset=function(){this.discontinuity();this.trigger("reset")}};vr.prototype=new cr;var mr={TimestampRolloverStream:vr,handleRollover:pr};var gr=function e(t){var i=t[1]&31;i<<=8;i|=t[2];return i};var yr=function e(t){return!!(t[1]&64)};var _r=function e(t){var i=0;if((t[3]&48)>>>4>1){i+=t[4]+1}return i};var br=function e(t,i){var r=gr(t);if(r===0){return"pat"}else if(r===i){return"pmt"}else if(i){return"pes"}return null};var Tr=function e(t){var i=yr(t);var r=4+_r(t);if(i){r+=t[r]+1}return(t[r+10]&31)<<8|t[r+11]};var Sr=function e(t){var i={};var r=yr(t);var n=4+_r(t);if(r){n+=t[n]+1}if(!(t[n+5]&1)){return}var a,s,o;a=(t[n+1]&15)<<8|t[n+2];s=3+a-4;o=(t[n+10]&15)<<8|t[n+11];var l=12+o;while(l<s){var u=n+l;i[(t[u+1]&31)<<8|t[u+2]]=t[u];l+=((t[u+3]&15)<<8|t[u+4])+5}return i};var kr=function e(t,i){var r=gr(t);var n=i[r];switch(n){case lr.H264_STREAM_TYPE:return"video";case lr.ADTS_STREAM_TYPE:return"audio";case lr.METADATA_STREAM_TYPE:return"timed-metadata";default:return null}};var Er=function e(t){var i=yr(t);if(!i){return null}var r=4+_r(t);if(r>=t.byteLength){return null}var n=null;var a;a=t[r+7];if(a&192){n={};n.pts=(t[r+9]&14)<<27|(t[r+10]&255)<<20|(t[r+11]&254)<<12|(t[r+12]&255)<<5|(t[r+13]&254)>>>3;n.pts*=4;n.pts+=(t[r+13]&6)>>>1;n.dts=n.pts;if(a&64){n.dts=(t[r+14]&14)<<27|(t[r+15]&255)<<20|(t[r+16]&254)<<12|(t[r+17]&255)<<5|(t[r+18]&254)>>>3;n.dts*=4;n.dts+=(t[r+18]&6)>>>1}}return n};var jr=function e(t){switch(t){case 5:return"slice_layer_without_partitioning_rbsp_idr";case 6:return"sei_rbsp";case 7:return"seq_parameter_set_rbsp";case 8:return"pic_parameter_set_rbsp";case 9:return"access_unit_delimiter_rbsp";default:return null}};var wr=function e(t){var i=4+_r(t);var r=t.subarray(i);var n=0;var a=0;var s=false;var o;for(;a<r.byteLength-3;a++){if(r[a+2]===1){n=a+5;break}}while(n<r.byteLength){switch(r[n]){case 0:if(r[n-1]!==0){n+=2;break}else if(r[n-2]!==0){n++;break}if(a+3!==n-2){o=jr(r[a+3]&31);if(o==="slice_layer_without_partitioning_rbsp_idr"){s=true}}do{n++}while(r[n]!==1&&n<r.length);a=n-2;n+=3;break;case 1:if(r[n-1]!==0||r[n-2]!==0){n+=3;break}o=jr(r[a+3]&31);if(o==="slice_layer_without_partitioning_rbsp_idr"){s=true}a=n-2;n+=3;break;default:n+=3;break}}r=r.subarray(a);n-=a;a=0;if(r&&r.byteLength>3){o=jr(r[a+3]&31);if(o==="slice_layer_without_partitioning_rbsp_idr"){s=true}}return s};var Cr={parseType:br,parsePat:Tr,parsePmt:Sr,parsePayloadUnitStartIndicator:yr,parsePesType:kr,parsePesTime:Er,videoPacketContainsKeyFrame:wr};var Ir=[96e3,88200,64e3,48e3,44100,32e3,24e3,22050,16e3,12e3,11025,8e3,7350];var Ar=function e(t,i){var r=t[i+6]<<21|t[i+7]<<14|t[i+8]<<7|t[i+9],n=t[i+5],a=(n&16)>>4;r=r>=0?r:0;if(a){return r+20}return r+10};var xr=function e(t,i){if(t.length-i<10||t[i]!=="I".charCodeAt(0)||t[i+1]!=="D".charCodeAt(0)||t[i+2]!=="3".charCodeAt(0)){return i}i+=Ar(t,i);return e(t,i)};var Pr=function e(t){var i=xr(t,0);return t.length>=i+2&&(t[i]&255)===255&&(t[i+1]&240)===240&&(t[i+1]&22)===16};var Or=function e(t){return t[0]<<21|t[1]<<14|t[2]<<7|t[3]};var Lr=function e(t,i,r){var n,a="";for(n=i;n<r;n++){a+="%"+("00"+t[n].toString(16)).slice(-2)}return a};var Dr=function e(t,i,r){return unescape(Lr(t,i,r))};var Rr=function e(t,i){var r=(t[i+5]&224)>>5,n=t[i+4]<<3,a=t[i+3]&3<<11;return a|n|r};var Nr=function e(t,i){if(t[i]==="I".charCodeAt(0)&&t[i+1]==="D".charCodeAt(0)&&t[i+2]==="3".charCodeAt(0)){return"timed-metadata"}else if(t[i]&255===255&&(t[i+1]&240)===240){return"audio"}return null};var Mr=function e(t){var i=0;while(i+5<t.length){if(t[i]!==255||(t[i+1]&246)!==240){i++;continue}return Ir[(t[i+2]&60)>>>2]}return null};var Ur=function e(t){var i,r,n,a;i=10;if(t[5]&64){i+=4;i+=Or(t.subarray(10,14))}do{r=Or(t.subarray(i+4,i+8));if(r<1){return null}a=String.fromCharCode(t[i],t[i+1],t[i+2],t[i+3]);if(a==="PRIV"){n=t.subarray(i+10,i+r+10);for(var s=0;s<n.byteLength;s++){if(n[s]===0){var o=Dr(n,0,s);if(o==="com.apple.streaming.transportStreamTimestamp"){var l=n.subarray(s+1);var u=(l[3]&1)<<30|l[4]<<22|l[5]<<14|l[6]<<6|l[7]>>>2;u*=4;u+=l[7]&3;return u}break}}}i+=10;i+=r}while(i<t.byteLength);return null};var Br={isLikelyAacData:Pr,parseId3TagSize:Ar,parseAdtsSize:Rr,parseType:Nr,parseSampleRate:
1Mr,parseAacTimestamp:Ur};var Fr=9e4,Hr,Vr,qr,zr,Wr,Gr,Yr;Hr=function e(t){return t*Fr};Vr=function e(t,i){return t*i};qr=function e(t){return t/Fr};zr=function e(t,i){return t/i};Wr=function e(t,i){return Hr(zr(t,i))};Gr=function e(t,i){return Vr(qr(t),i)};Yr=function e(t,i,r){return qr(r?t:t-i)};var Kr={ONE_SECOND_IN_TS:Fr,secondsToVideoTs:Hr,secondsToAudioTs:Vr,videoTsToSeconds:qr,audioTsToSeconds:zr,audioTsToVideoTs:Wr,videoTsToAudioTs:Gr,metadataTsToSeconds:Yr};var Xr=mr.handleRollover;var Qr={};Qr.ts=Cr;Qr.aac=Br;var Jr=Kr.ONE_SECOND_IN_TS;var Zr=188,$r=71;var en=function e(t,i){var r=0,n=Zr,a,s;while(n<t.byteLength){if(t[r]===$r&&t[n]===$r){a=t.subarray(r,n);s=Qr.ts.parseType(a,i.pid);switch(s){case"pat":if(!i.pid){i.pid=Qr.ts.parsePat(a)}break;case"pmt":if(!i.table){i.table=Qr.ts.parsePmt(a)}break}if(i.pid&&i.table){return}r+=Zr;n+=Zr;continue}r++;n++}};var tn=function e(t,i,r){var n=0,a=Zr,s,o,l,u,c;var d=false;while(a<=t.byteLength){if(t[n]===$r&&(t[a]===$r||a===t.byteLength)){s=t.subarray(n,a);o=Qr.ts.parseType(s,i.pid);switch(o){case"pes":l=Qr.ts.parsePesType(s,i.table);u=Qr.ts.parsePayloadUnitStartIndicator(s);if(l==="audio"&&u){c=Qr.ts.parsePesTime(s);if(c){c.type="audio";r.audio.push(c);d=true}}break}if(d){break}n+=Zr;a+=Zr;continue}n++;a++}a=t.byteLength;n=a-Zr;d=false;while(n>=0){if(t[n]===$r&&(t[a]===$r||a===t.byteLength)){s=t.subarray(n,a);o=Qr.ts.parseType(s,i.pid);switch(o){case"pes":l=Qr.ts.parsePesType(s,i.table);u=Qr.ts.parsePayloadUnitStartIndicator(s);if(l==="audio"&&u){c=Qr.ts.parsePesTime(s);if(c){c.type="audio";r.audio.push(c);d=true}}break}if(d){break}n-=Zr;a-=Zr;continue}n--;a--}};var rn=function e(t,i,r){var n=0,a=Zr,s,o,l,u,c,d,f,h;var p=false;var v={data:[],size:0};while(a<t.byteLength){if(t[n]===$r&&t[a]===$r){s=t.subarray(n,a);o=Qr.ts.parseType(s,i.pid);switch(o){case"pes":l=Qr.ts.parsePesType(s,i.table);u=Qr.ts.parsePayloadUnitStartIndicator(s);if(l==="video"){if(u&&!p){c=Qr.ts.parsePesTime(s);if(c){c.type="video";r.video.push(c);p=true}}if(!r.firstKeyFrame){if(u){if(v.size!==0){d=new Uint8Array(v.size);f=0;while(v.data.length){h=v.data.shift();d.set(h,f);f+=h.byteLength}if(Qr.ts.videoPacketContainsKeyFrame(d)){var m=Qr.ts.parsePesTime(d);if(m){r.firstKeyFrame=m;r.firstKeyFrame.type="video"}else{console.warn("Failed to extract PTS/DTS from PES at first keyframe. "+"This could be an unusual TS segment, or else mux.js did not "+"parse your TS segment correctly. If you know your TS "+"segments do contain PTS/DTS on keyframes please file a bug "+"report! You can try ffprobe to double check for yourself.")}}v.size=0}}v.data.push(s);v.size+=s.byteLength}}break}if(p&&r.firstKeyFrame){break}n+=Zr;a+=Zr;continue}n++;a++}a=t.byteLength;n=a-Zr;p=false;while(n>=0){if(t[n]===$r&&t[a]===$r){s=t.subarray(n,a);o=Qr.ts.parseType(s,i.pid);switch(o){case"pes":l=Qr.ts.parsePesType(s,i.table);u=Qr.ts.parsePayloadUnitStartIndicator(s);if(l==="video"&&u){c=Qr.ts.parsePesTime(s);if(c){c.type="video";r.video.push(c);p=true}}break}if(p){break}n-=Zr;a-=Zr;continue}n--;a--}};var nn=function e(t,i){if(t.audio&&t.audio.length){var r=i;if(typeof r==="undefined"){r=t.audio[0].dts}t.audio.forEach(function(e){e.dts=Xr(e.dts,r);e.pts=Xr(e.pts,r);e.dtsTime=e.dts/Jr;e.ptsTime=e.pts/Jr})}if(t.video&&t.video.length){var n=i;if(typeof n==="undefined"){n=t.video[0].dts}t.video.forEach(function(e){e.dts=Xr(e.dts,n);e.pts=Xr(e.pts,n);e.dtsTime=e.dts/Jr;e.ptsTime=e.pts/Jr});if(t.firstKeyFrame){var a=t.firstKeyFrame;a.dts=Xr(a.dts,n);a.pts=Xr(a.pts,n);a.dtsTime=a.dts/Jr;a.ptsTime=a.dts/Jr}}};var an=function e(t){var i=false,r=0,n=null,a=null,s=0,o=0,l;while(t.length-o>=3){var u=Qr.aac.parseType(t,o);switch(u){case"timed-metadata":if(t.length-o<10){i=true;break}s=Qr.aac.parseId3TagSize(t,o);if(s>t.length){i=true;break}if(a===null){l=t.subarray(o,o+s);a=Qr.aac.parseAacTimestamp(l)}o+=s;break;case"audio":if(t.length-o<7){i=true;break}s=Qr.aac.parseAdtsSize(t,o);if(s>t.length){i=true;break}if(n===null){l=t.subarray(o,o+s);n=Qr.aac.parseSampleRate(l)}r++;o+=s;break;default:o++;break}if(i){return null}}if(n===null||a===null){return null}var c=Jr/n;var d={audio:[{type:"audio",dts:a,pts:a},{type:"audio",dts:a+r*1024*c,pts:a+r*1024*c}]};return d};var sn=function e(t){var i={pid:null,table:null};var r={};en(t,i);for(var n in i.table){if(i.table.hasOwnProperty(n)){var a=i.table[n];switch(a){case lr.H264_STREAM_TYPE:r.video=[];rn(t,i,r);if(r.video.length===0){delete r.video}break;case lr.ADTS_STREAM_TYPE:r.audio=[];tn(t,i,r);if(r.audio.length===0){delete r.audio}break}}}return r};var on=function e(t,i){var r=Qr.aac.isLikelyAacData(t);var n;if(r){n=an(t)}else{n=sn(t)}if(!n||!n.audio&&!n.video){return null}nn(n,i);return n};var ln={inspect:on,parseAudioPes_:tn};var un=function e(t,i){var r=ln.inspect(t,i*Kr.ONE_SECOND_IN_TS);if(!r){return null}var n={hasVideo:r.video&&r.video.length===2||false,hasAudio:r.audio&&r.audio.length===2||false};if(n.hasVideo){n.videoStart=r.video[0].ptsTime}if(n.hasAudio){n.audioStart=r.audio[0].ptsTime}return n};var cn=function e(t){var i=0;var r;if(t.bytes){r=new Uint8Array(t.bytes);
1t.segments.forEach(function(e){r.set(e,i);i+=e.byteLength})}return r};var dn=function e(t){return t>>>0};var fn=function e(t){return("00"+t.toString(16)).slice(-2)};var hn={toUnsigned:dn,toHexString:fn};var pn=function e(t){var i="";i+=String.fromCharCode(t[0]);i+=String.fromCharCode(t[1]);i+=String.fromCharCode(t[2]);i+=String.fromCharCode(t[3]);return i};var vn=pn;var mn=hn.toUnsigned;var gn=function e(t,i){var r=[],n,a,s,o,l;if(!i.length){return null}for(n=0;n<t.byteLength;){a=mn(t[n]<<24|t[n+1]<<16|t[n+2]<<8|t[n+3]);s=vn(t.subarray(n+4,n+8));o=a>1?n+a:t.byteLength;if(s===i[0]){if(i.length===1){r.push(t.subarray(n+8,o))}else{l=e(t.subarray(n+8,o),i.slice(1));if(l.length){r=r.concat(l)}}}n=o}return r};var yn=gn;var _n=function e(t){var i=new DataView(t.buffer,t.byteOffset,t.byteLength),r={version:t[0],flags:new Uint8Array(t.subarray(1,4)),trackId:i.getUint32(4)},n=r.flags[2]&1,a=r.flags[2]&2,s=r.flags[2]&8,o=r.flags[2]&16,l=r.flags[2]&32,u=r.flags[0]&65536,c=r.flags[0]&131072,d;d=8;if(n){d+=4;r.baseDataOffset=i.getUint32(12);d+=4}if(a){r.sampleDescriptionIndex=i.getUint32(d);d+=4}if(s){r.defaultSampleDuration=i.getUint32(d);d+=4}if(o){r.defaultSampleSize=i.getUint32(d);d+=4}if(l){r.defaultSampleFlags=i.getUint32(d)}if(u){r.durationIsEmpty=true}if(!n&&c){r.baseDataOffsetIsMoof=true}return r};var bn=_n;var Tn=function e(t){return{isLeading:(t[0]&12)>>>2,dependsOn:t[0]&3,isDependedOn:(t[1]&192)>>>6,hasRedundancy:(t[1]&48)>>>4,paddingValue:(t[1]&14)>>>1,isNonSyncSample:t[1]&1,degradationPriority:t[2]<<8|t[3]}};var Sn=Tn;var kn=function e(t){var i={version:t[0],flags:new Uint8Array(t.subarray(1,4)),samples:[]},r=new DataView(t.buffer,t.byteOffset,t.byteLength),n=i.flags[2]&1,a=i.flags[2]&4,s=i.flags[1]&1,o=i.flags[1]&2,l=i.flags[1]&4,u=i.flags[1]&8,c=r.getUint32(4),d=8,f;if(n){i.dataOffset=r.getInt32(d);d+=4}if(a&&c){f={flags:Sn(t.subarray(d,d+4))};d+=4;if(s){f.duration=r.getUint32(d);d+=4}if(o){f.size=r.getUint32(d);d+=4}if(u){if(i.version===1){f.compositionTimeOffset=r.getInt32(d)}else{f.compositionTimeOffset=r.getUint32(d)}d+=4}i.samples.push(f);c--}while(c--){f={};if(s){f.duration=r.getUint32(d);d+=4}if(o){f.size=r.getUint32(d);d+=4}if(l){f.flags=Sn(t.subarray(d,d+4));d+=4}if(u){if(i.version===1){f.compositionTimeOffset=r.getInt32(d)}else{f.compositionTimeOffset=r.getUint32(d)}d+=4}i.samples.push(f)}return i};var En=kn;var jn=hn.toUnsigned;var wn=function e(t){var i={version:t[0],flags:new Uint8Array(t.subarray(1,4)),baseMediaDecodeTime:jn(t[4]<<24|t[5]<<16|t[6]<<8|t[7])};if(i.version===1){i.baseMediaDecodeTime*=Math.pow(2,32);i.baseMediaDecodeTime+=jn(t[8]<<24|t[9]<<16|t[10]<<8|t[11])}return i};var Cn=wn;var In=hn.toUnsigned;var An=hn.toHexString;var xn,Pn,On,Ln,Dn,Rn;xn=function e(t){var i={},r=yn(t,["moov","trak"]);return r.reduce(function(e,t){var i,r,n,a,s;i=yn(t,["tkhd"])[0];if(!i){return null}r=i[0];n=r===0?12:20;a=In(i[n]<<24|i[n+1]<<16|i[n+2]<<8|i[n+3]);s=yn(t,["mdia","mdhd"])[0];if(!s){return null}r=s[0];n=r===0?12:20;e[a]=In(s[n]<<24|s[n+1]<<16|s[n+2]<<8|s[n+3]);return e},i)};Pn=function e(t,i){var r,n,a;r=yn(i,["moof","traf"]);n=[].concat.apply([],r.map(function(e){return yn(e,["tfhd"]).map(function(i){var r,n,a;r=In(i[4]<<24|i[5]<<16|i[6]<<8|i[7]);n=t[r]||9e4;a=yn(e,["tfdt"]).map(function(e){var t,i;t=e[0];i=In(e[4]<<24|e[5]<<16|e[6]<<8|e[7]);if(t===1){i*=Math.pow(2,32);i+=In(e[8]<<24|e[9]<<16|e[10]<<8|e[11])}return i})[0];a=typeof a==="number"&&!isNaN(a)?a:Infinity;return a/n})}));a=Math.min.apply(null,n);return isFinite(a)?a:0};On=function e(t,i){var r=yn(i,["moof","traf"]);var n=0;var a=0;var s;if(r&&r.length){var o=yn(r[0],["tfhd"])[0];var l=yn(r[0],["trun"])[0];var u=yn(r[0],["tfdt"])[0];if(o){var c=bn(o);s=c.trackId}if(u){var d=Cn(u);n=d.baseMediaDecodeTime}if(l){var f=En(l);if(f.samples&&f.samples.length){a=f.samples[0].compositionTimeOffset||0}}}var h=t[s]||9e4;return(n+a)/h};Ln=function e(t){var i=yn(t,["moov","trak"]);var r=[];i.forEach(function(e){var t=yn(e,["mdia","hdlr"]);var i=yn(e,["tkhd"]);t.forEach(function(e,t){var n=vn(e.subarray(8,12));var a=i[t];var s;var o;var l;if(n==="vide"){s=new DataView(a.buffer,a.byteOffset,a.byteLength);o=s.getUint8(0);l=o===0?s.getUint32(12):s.getUint32(20);r.push(l)}})});return r};Rn=function e(t){var i=t[0];var r=i===0?12:20;return In(t[r]<<24|t[r+1]<<16|t[r+2]<<8|t[r+3])};Dn=function e(t){var i=yn(t,["moov","trak"]);var r=[];
1i.forEach(function(e){var t={};var i=yn(e,["tkhd"])[0];var n,a;if(i){n=new DataView(i.buffer,i.byteOffset,i.byteLength);a=n.getUint8(0);t.id=a===0?n.getUint32(12):n.getUint32(20)}var s=yn(e,["mdia","hdlr"])[0];if(s){var o=vn(s.subarray(8,12));if(o==="vide"){t.type="video"}else if(o==="soun"){t.type="audio"}else{t.type=o}}var l=yn(e,["mdia","minf","stbl","stsd"])[0];if(l){var u=l.subarray(8);t.codec=vn(u.subarray(4,8));var c=yn(u,[t.codec])[0];var d,f;if(c){if(/^[a-z]vc[1-9]$/i.test(t.codec)){d=c.subarray(78);f=vn(d.subarray(4,8));if(f==="avcC"&&d.length>11){t.codec+=".";t.codec+=An(d[9]);t.codec+=An(d[10]);t.codec+=An(d[11])}else{t.codec="avc1.4d400d"}}else if(/^mp4[a,v]$/i.test(t.codec)){d=c.subarray(28);f=vn(d.subarray(4,8));if(f==="esds"&&d.length>20&&d[19]!==0){t.codec+="."+An(d[19]);t.codec+="."+An(d[20]>>>2&63).replace(/^0/,"")}else{t.codec="mp4a.40.2"}}else{t.codec=t.codec.toLowerCase()}}}var h=yn(e,["mdia","mdhd"])[0];if(h){t.timescale=Rn(h)}r.push(t)});return r};var Nn={findBox:yn,parseType:vn,timescale:xn,startTime:Pn,compositionStartTime:On,videoTrackIds:Ln,tracks:Dn,getTimescaleFromMediaHeader:Rn};var Mn={FAILURE:2,TIMEOUT:-101,ABORTED:-102};var Un=function e(t){t.forEach(function(e){e.abort()})};var Bn=function e(t){return{bandwidth:t.bandwidth,bytesReceived:t.bytesReceived||0,roundTripTime:t.roundTripTime||0}};var Fn=function e(t){var i=t.target;var r=Date.now()-i.requestTime;var n={bandwidth:Infinity,bytesReceived:0,roundTripTime:r||0};n.bytesReceived=t.loaded;n.bandwidth=Math.floor(n.bytesReceived/n.roundTripTime'),t[1].s.push('length;++r){a.push(arguments[r])}n=i.length;for(r=0;r<n;++r){i[r].apply(this,a)}}};this.dispose=function(){e={}}}};ur.prototype.pipe=function(e){this.on("data",function(t){e.push(t)});this.on("done",function(t){e.flush(t)});this.on("partialdone",function(t){e.partialFlush(t)});this.on("endedtimeline",function(t){e.endTimeline(t)});this.on("reset",function(t){e.reset(t)});return e};ur.prototype.push=function(e){this.trigger("data",e)};ur.prototype.flush=function(e){this.trigger("done",e)};ur.prototype.partialFlush=function(e){this.trigger("partialdone",e)};ur.prototype.endTimeline=function(e){this.trigger("endedtimeline",e)};ur.prototype.reset=function(e){this.trigger("reset",e)};var cr=ur;var dr=8589934592;var fr=4294967296;var hr="shared";var pr=function e(t,i){var r=1;if(t>i){r=-1}while(Math.abs(i-t)>fr){t+=r*dr}return t};var vr=function e(t){var i,r;e.prototype.init.call(this);this.type_=t||hr;this.push=function(e){if(this.type_!==hr&&e.type!==this.type_){return}if(r===undefined){r=e.dts}e.dts=pr(e.dts,r);e.pts=pr(e.pts,r);i=e.dts;this.trigger("data",e)};this.flush=function(){r=i;this.trigger("done")};this.endTimeline=function(){this.flush();this.trigger("endedtimeline")};this.discontinuity=function(){r=void 0;i=void 0};this.reset=function(){this.discontinuity();this.trigger("reset")}};vr.prototype=new cr;var mr={TimestampRolloverStream:vr,handleRollover:pr};var gr=function e(t){var i=t[1]&31;i<<=8;i|=t[2];return i};var yr=function e(t){return!!(t[1]&64)};var _r=function e(t){var i=0;if((t[3]&48)>>>4>1){i+=t[4]+1}return i};var br=function e(t,i){var r=gr(t);if(r===0){return"pat"}else if(r===i){return"pmt"}else if(i){return"pes"}return null};var Tr=function e(t){var i=yr(t);var r=4+_r(t);if(i){r+=t[r]+1}return(t[r+10]&31)<<8|t[r+11]};var Sr=function e(t){var i={};var r=yr(t);var n=4+_r(t);if(r){n+=t[n]+1}if(!(t[n+5]&1)){return}var a,s,o;a=(t[n+1]&15)<<8|t[n+2];s=3+a-4;o=(t[n+10]&15)<<8|t[n+11];var l=12+o;while(l<s){var u=n+l;i[(t[u+1]&31)<<8|t[u+2]]=t[u];l+=((t[u+3]&15)<<8|t[u+4])+5}return i};var kr=function e(t,i){var r=gr(t);var n=i[r];switch(n){case lr.H264_STREAM_TYPE:return"video";case lr.ADTS_STREAM_TYPE:return"audio";case lr.METADATA_STREAM_TYPE:return"timed-metadata";default:return null}};var Er=function e(t){var i=yr(t);if(!i){return null}var r=4+_r(t);if(r>=t.byteLength){return null}var n=null;var a;a=t[r+7];if(a&192){n={};n.pts=(t[r+9]&14)<<27|(t[r+10]&255)<<20|(t[r+11]&254)<<12|(t[r+12]&255)<<5|(t[r+13]&254)>>>3;n.pts*=4;n.pts+=(t[r+13]&6)>>>1;n.dts=n.pts;if(a&64){n.dts=(t[r+14]&14)<<27|(t[r+15]&255)<<20|(t[r+16]&254)<<12|(t[r+17]&255)<<5|(t[r+18]&254)>>>3;n.dts*=4;n.dts+=(t[r+18]&6)>>>1}}return n};var jr=function e(t){switch(t){case 5:return"slice_layer_without_partitioning_rbsp_idr";case 6:return"sei_rbsp";case 7:return"seq_parameter_set_rbsp";case 8:return"pic_parameter_set_rbsp";case 9:return"access_unit_delimiter_rbsp";default:return null}};var wr=function e(t){var i=4+_r(t);var r=t.subarray(i);var n=0;var a=0;var s=false;var o;for(;a<r.byteLength-3;a++){if(r[a+2]===1){n=a+5;break}}while(n<r.byteLength){switch(r[n]){case 0:if(r[n-1]!==0){n+=2;break}else if(r[n-2]!==0){n++;break}if(a+3!==n-2){o=jr(r[a+3]&31);if(o==="slice_layer_without_partitioning_rbsp_idr"){s=true}}do{n++}while(r[n]!==1&&n<r.length);a=n-2;n+=3;break;case 1:if(r[n-1]!==0||r[n-2]!==0){n+=3;break}o=jr(r[a+3]&31);if(o==="slice_layer_without_partitioning_rbsp_idr"){s=true}a=n-2;n+=3;break;default:n+=3;break}}r=r.subarray(a);n-=a;a=0;if(r&&r.byteLength>3){o=jr(r[a+3]&31);if(o==="slice_layer_without_partitioning_rbsp_idr"){s=true}}return s};
1var Cr={parseType:br,parsePat:Tr,parsePmt:Sr,parsePayloadUnitStartIndicator:yr,parsePesType:kr,parsePesTime:Er,videoPacketContainsKeyFrame:wr};var Ir=[96e3,88200,64e3,48e3,44100,32e3,24e3,22050,16e3,12e3,11025,8e3,7350];var Ar=function e(t,i){var r=t[i+6]<<21|t[i+7]<<14|t[i+8]<<7|t[i+9],n=t[i+5],a=(n&16)>>4;r=r>=0?r:0;if(a){return r+20}return r+10};var xr=function e(t,i){if(t.length-i<10||t[i]!=="I".charCodeAt(0)||t[i+1]!=="D".charCodeAt(0)||t[i+2]!=="3".charCodeAt(0)){return i}i+=Ar(t,i);return e(t,i)};var Pr=function e(t){var i=xr(t,0);return t.length>=i+2&&(t[i]&255)===255&&(t[i+1]&240)===240&&(t[i+1]&22)===16};var Or=function e(t){return t[0]<<21|t[1]<<14|t[2]<<7|t[3]};var Lr=function e(t,i,r){var n,a="";for(n=i;n<r;n++){a+="%"+("00"+t[n].toString(16)).slice(-2)}return a};var Dr=function e(t,i,r){return unescape(Lr(t,i,r))};var Rr=function e(t,i){var r=(t[i+5]&224)>>5,n=t[i+4]<<3,a=t[i+3]&3<<11;return a|n|r};var Nr=function e(t,i){if(t[i]==="I".charCodeAt(0)&&t[i+1]==="D".charCodeAt(0)&&t[i+2]==="3".charCodeAt(0)){return"timed-metadata"}else if(t[i]&255===255&&(t[i+1]&240)===240){return"audio"}return null};var Mr=function e(t){var i=0;while(i+5<t.length){if(t[i]!==255||(t[i+1]&246)!==240){i++;continue}return Ir[(t[i+2]&60)>>>2]}return null};var Ur=function e(t){var i,r,n,a;i=10;if(t[5]&64){i+=4;i+=Or(t.subarray(10,14))}do{r=Or(t.subarray(i+4,i+8));if(r<1){return null}a=String.fromCharCode(t[i],t[i+1],t[i+2],t[i+3]);if(a==="PRIV"){n=t.subarray(i+10,i+r+10);for(var s=0;s<n.byteLength;s++){if(n[s]===0){var o=Dr(n,0,s);if(o==="com.apple.streaming.transportStreamTimestamp"){var l=n.subarray(s+1);var u=(l[3]&1)<<30|l[4]<<22|l[5]<<14|l[6]<<6|l[7]>>>2;u*=4;u+=l[7]&3;return u}break}}}i+=10;i+=r}while(i<t.byteLength);return null};var Br={isLikelyAacData:Pr,parseId3TagSize:Ar,parseAdtsSize:Rr,parseType:Nr,parseSampleRate:Mr,parseAacTimestamp:Ur};var Fr=9e4,Hr,Vr,qr,zr,Wr,Gr,Yr;Hr=function e(t){return t*Fr};Vr=function e(t,i){return t*i};qr=function e(t){return t/Fr};zr=function e(t,i){return t/i};Wr=function e(t,i){return Hr(zr(t,i))};Gr=function e(t,i){return Vr(qr(t),i)};Yr=function e(t,i,r){return qr(r?t:t-i)};var Kr={ONE_SECOND_IN_TS:Fr,secondsToVideoTs:Hr,secondsToAudioTs:Vr,videoTsToSeconds:qr,audioTsToSeconds:zr,audioTsToVideoTs:Wr,videoTsToAudioTs:Gr,metadataTsToSeconds:Yr};var Xr=mr.handleRollover;var Qr={};Qr.ts=Cr;Qr.aac=Br;var Jr=Kr.ONE_SECOND_IN_TS;var Zr=188,$r=71;var en=function e(t,i){var r=0,n=Zr,a,s;while(n<t.byteLength){if(t[r]===$r&&t[n]===$r){a=t.subarray(r,n);s=Qr.ts.parseType(a,i.pid);switch(s){case"pat":if(!i.pid){i.pid=Qr.ts.parsePat(a)}break;case"pmt":if(!i.table){i.table=Qr.ts.parsePmt(a)}break}if(i.pid&&i.table){return}r+=Zr;n+=Zr;continue}r++;n++}};var tn=function e(t,i,r){var n=0,a=Zr,s,o,l,u,c;var d=false;while(a<=t.byteLength){if(t[n]===$r&&(t[a]===$r||a===t.byteLength)){s=t.subarray(n,a);o=Qr.ts.parseType(s,i.pid);switch(o){case"pes":l=Qr.ts.parsePesType(s,i.table);u=Qr.ts.parsePayloadUnitStartIndicator(s);if(l==="audio"&&u){c=Qr.ts.parsePesTime(s);if(c){c.type="audio";r.audio.push(c);d=true}}break}if(d){break}n+=Zr;a+=Zr;continue}n++;a++}a=t.byteLength;n=a-Zr;d=false;while(n>=0){if(t[n]===$r&&(t[a]===$r||a===t.byteLength)){s=t.subarray(n,a);o=Qr.ts.parseType(s,i.pid);switch(o){case"pes":l=Qr.ts.parsePesType(s,i.table);u=Qr.ts.parsePayloadUnitStartIndicator(s);if(l==="audio"&&u){c=Qr.ts.parsePesTime(s);if(c){c.type="audio";r.audio.push(c);d=true}}break}if(d){break}n-=Zr;a-=Zr;continue}n--;a--}};var rn=function e(t,i,r){var n=0,a=Zr,s,o,l,u,c,d,f,h;var p=false;var v={data:[],size:0};while(a<t.byteLength){if(t[n]===$r&&t[a]===$r){s=t.subarray(n,a);o=Qr.ts.parseType(s,i.pid);switch(o){case"pes":l=Qr.ts.parsePesType(s,i.table);u=Qr.ts.parsePayloadUnitStartIndicator(s);if(l==="video"){if(u&&!p){c=Qr.ts.parsePesTime(s);if(c){c.type="video";r.video.push(c);p=true}}if(!r.firstKeyFrame){if(u){if(v.size!==0){d=new Uint8Array(v.size);f=0;while(v.data.length){h=v.data.shift();d.set(h,f);f+=h.byteLength}if(Qr.ts.videoPacketContainsKeyFrame(d)){var m=Qr.ts.parsePesTime(d);if(m){r.firstKeyFrame=m;r.firstKeyFrame.type="video"}else{console.warn("Failed to extract PTS/DTS from PES at first keyframe. "+"This could be an unusual TS segment, or else mux.js did not "+"parse your TS segment correctly. If you know your TS "+"segments do contain PTS/DTS on keyframes please file a bug "+"report! You can try ffprobe to double check for yourself.")}}v.size=0}}v.data.push(s);v.size+=s.byteLength}}break}if(p&&r.firstKeyFrame){break}n+=Zr;a+=Zr;continue}n++;a++}a=t.byteLength;n=a-Zr;p=false;while(n>=0){if(t[n]===$r&&t[a]===$r){s=t.subarray(n,a);o=Qr.ts.parseType(s,i.pid);switch(o){case"pes":l=Qr.ts.parsePesType(s,i.table);u=Qr.ts.parsePayloadUnitStartIndicator(s);if(l==="video"&&u){c=Qr.ts.parsePesTime(s);if(c){c.type="video";r.video.push(c);p=true}}break}if(p){break}n-=Zr;a-=Zr;continue}n--;a--}};var nn=function e(t,i){if(t.audio&&t.audio.length){var r=i;if(typeof r==="undefined"){r=t.audio[0].dts}
1t.audio.forEach(function(e){e.dts=Xr(e.dts,r);e.pts=Xr(e.pts,r);e.dtsTime=e.dts/Jr;e.ptsTime=e.pts/Jr})}if(t.video&&t.video.length){var n=i;if(typeof n==="undefined"){n=t.video[0].dts}t.video.forEach(function(e){e.dts=Xr(e.dts,n);e.pts=Xr(e.pts,n);e.dtsTime=e.dts/Jr;e.ptsTime=e.pts/Jr});if(t.firstKeyFrame){var a=t.firstKeyFrame;a.dts=Xr(a.dts,n);a.pts=Xr(a.pts,n);a.dtsTime=a.dts/Jr;a.ptsTime=a.dts/Jr}}};var an=function e(t){var i=false,r=0,n=null,a=null,s=0,o=0,l;while(t.length-o>=3){var u=Qr.aac.parseType(t,o);switch(u){case"timed-metadata":if(t.length-o<10){i=true;break}s=Qr.aac.parseId3TagSize(t,o);if(s>t.length){i=true;break}if(a===null){l=t.subarray(o,o+s);a=Qr.aac.parseAacTimestamp(l)}o+=s;break;case"audio":if(t.length-o<7){i=true;break}s=Qr.aac.parseAdtsSize(t,o);if(s>t.length){i=true;break}if(n===null){l=t.subarray(o,o+s);n=Qr.aac.parseSampleRate(l)}r++;o+=s;break;default:o++;break}if(i){return null}}if(n===null||a===null){return null}var c=Jr/n;var d={audio:[{type:"audio",dts:a,pts:a},{type:"audio",dts:a+r*1024*c,pts:a+r*1024*c}]};return d};var sn=function e(t){var i={pid:null,table:null};var r={};en(t,i);for(var n in i.table){if(i.table.hasOwnProperty(n)){var a=i.table[n];switch(a){case lr.H264_STREAM_TYPE:r.video=[];rn(t,i,r);if(r.video.length===0){delete r.video}break;case lr.ADTS_STREAM_TYPE:r.audio=[];tn(t,i,r);if(r.audio.length===0){delete r.audio}break}}}return r};var on=function e(t,i){var r=Qr.aac.isLikelyAacData(t);var n;if(r){n=an(t)}else{n=sn(t)}if(!n||!n.audio&&!n.video){return null}nn(n,i);return n};var ln={inspect:on,parseAudioPes_:tn};var un=function e(t,i){var r=ln.inspect(t,i*Kr.ONE_SECOND_IN_TS);if(!r){return null}var n={hasVideo:r.video&&r.video.length===2||false,hasAudio:r.audio&&r.audio.length===2||false};if(n.hasVideo){n.videoStart=r.video[0].ptsTime}if(n.hasAudio){n.audioStart=r.audio[0].ptsTime}return n};var cn=function e(t){var i=0;var r;if(t.bytes){r=new Uint8Array(t.bytes);t.segments.forEach(function(e){r.set(e,i);i+=e.byteLength})}return r};var dn=function e(t){return t>>>0};var fn=function e(t){return("00"+t.toString(16)).slice(-2)};var hn={toUnsigned:dn,toHexString:fn};var pn=function e(t){var i="";i+=String.fromCharCode(t[0]);i+=String.fromCharCode(t[1]);i+=String.fromCharCode(t[2]);i+=String.fromCharCode(t[3]);return i};var vn=pn;var mn=hn.toUnsigned;var gn=function e(t,i){var r=[],n,a,s,o,l;if(!i.length){return null}for(n=0;n<t.byteLength;){a=mn(t[n]<<24|t[n+1]<<16|t[n+2]<<8|t[n+3]);s=vn(t.subarray(n+4,n+8));o=a>1?n+a:t.byteLength;if(s===i[0]){if(i.length===1){r.push(t.subarray(n+8,o))}else{l=e(t.subarray(n+8,o),i.slice(1));if(l.length){r=r.concat(l)}}}n=o}return r};var yn=gn;var _n=function e(t){var i=new DataView(t.buffer,t.byteOffset,t.byteLength),r={version:t[0],flags:new Uint8Array(t.subarray(1,4)),trackId:i.getUint32(4)},n=r.flags[2]&1,a=r.flags[2]&2,s=r.flags[2]&8,o=r.flags[2]&16,l=r.flags[2]&32,u=r.flags[0]&65536,c=r.flags[0]&131072,d;d=8;if(n){d+=4;r.baseDataOffset=i.getUint32(12);d+=4}if(a){r.sampleDescriptionIndex=i.getUint32(d);d+=4}if(s){r.defaultSampleDuration=i.getUint32(d);d+=4}if(o){r.defaultSampleSize=i.getUint32(d);d+=4}if(l){r.defaultSampleFlags=i.getUint32(d)}if(u){r.durationIsEmpty=true}if(!n&&c){r.baseDataOffsetIsMoof=true}return r};var bn=_n;var Tn=function e(t){return{isLeading:(t[0]&12)>>>2,dependsOn:t[0]&3,isDependedOn:(t[1]&192)>>>6,hasRedundancy:(t[1]&48)>>>4,paddingValue:(t[1]&14)>>>1,isNonSyncSample:t[1]&1,degradationPriority:t[2]<<8|t[3]}};var Sn=Tn;var kn=function e(t){var i={version:t[0],flags:new Uint8Array(t.subarray(1,4)),samples:[]},r=new DataView(t.buffer,t.byteOffset,t.byteLength),n=i.flags[2]&1,a=i.flags[2]&4,s=i.flags[1]&1,o=i.flags[1]&2,l=i.flags[1]&4,u=i.flags[1]&8,c=r.getUint32(4),d=8,f;if(n){i.dataOffset=r.getInt32(d);d+=4}if(a&&c){f={flags:Sn(t.subarray(d,d+4))};d+=4;if(s){f.duration=r.getUint32(d);d+=4}if(o){f.size=r.getUint32(d);d+=4}if(u){if(i.version===1){f.compositionTimeOffset=r.getInt32(d)}else{f.compositionTimeOffset=r.getUint32(d)}d+=4}i.samples.push(f);c--}while(c--){f={};if(s){f.duration=r.getUint32(d);d+=4}if(o){f.size=r.getUint32(d);d+=4}if(l){f.flags=Sn(t.subarray(d,d+4));d+=4}if(u){if(i.version===1){f.compositionTimeOffset=r.getInt32(d)}else{f.compositionTimeOffset=r.getUint32(d)}d+=4}i.samples.push(f)}return i};var En=kn;var jn=hn.toUnsigned;var wn=function e(t){var i={version:t[0],flags:new Uint8Array(t.subarray(1,4)),baseMediaDecodeTime:jn(t[4]<<24|t[5]<<16|t[6]<<8|t[7])};if(i.version===1){i.baseMediaDecodeTime*=Math.pow(2,32);i.baseMediaDecodeTime+=jn(t[8]<<24|t[9]<<16|t[10]<<8|t[11])}return i};
1var Cn=wn;var In=hn.toUnsigned;var An=hn.toHexString;var xn,Pn,On,Ln,Dn,Rn;xn=function e(t){var i={},r=yn(t,["moov","trak"]);return r.reduce(function(e,t){var i,r,n,a,s;i=yn(t,["tkhd"])[0];if(!i){return null}r=i[0];n=r===0?12:20;a=In(i[n]<<24|i[n+1]<<16|i[n+2]<<8|i[n+3]);s=yn(t,["mdia","mdhd"])[0];if(!s){return null}r=s[0];n=r===0?12:20;e[a]=In(s[n]<<24|s[n+1]<<16|s[n+2]<<8|s[n+3]);return e},i)};Pn=function e(t,i){var r,n,a;r=yn(i,["moof","traf"]);n=[].concat.apply([],r.map(function(e){return yn(e,["tfhd"]).map(function(i){var r,n,a;r=In(i[4]<<24|i[5]<<16|i[6]<<8|i[7]);n=t[r]||9e4;a=yn(e,["tfdt"]).map(function(e){var t,i;t=e[0];i=In(e[4]<<24|e[5]<<16|e[6]<<8|e[7]);if(t===1){i*=Math.pow(2,32);i+=In(e[8]<<24|e[9]<<16|e[10]<<8|e[11])}return i})[0];a=typeof a==="number"&&!isNaN(a)?a:Infinity;return a/n})}));a=Math.min.apply(null,n);return isFinite(a)?a:0};On=function e(t,i){var r=yn(i,["moof","traf"]);var n=0;var a=0;var s;if(r&&r.length){var o=yn(r[0],["tfhd"])[0];var l=yn(r[0],["trun"])[0];var u=yn(r[0],["tfdt"])[0];if(o){var c=bn(o);s=c.trackId}if(u){var d=Cn(u);n=d.baseMediaDecodeTime}if(l){var f=En(l);if(f.samples&&f.samples.length){a=f.samples[0].compositionTimeOffset||0}}}var h=t[s]||9e4;return(n+a)/h};Ln=function e(t){var i=yn(t,["moov","trak"]);var r=[];i.forEach(function(e){var t=yn(e,["mdia","hdlr"]);var i=yn(e,["tkhd"]);t.forEach(function(e,t){var n=vn(e.subarray(8,12));var a=i[t];var s;var o;var l;if(n==="vide"){s=new DataView(a.buffer,a.byteOffset,a.byteLength);o=s.getUint8(0);l=o===0?s.getUint32(12):s.getUint32(20);r.push(l)}})});return r};Rn=function e(t){var i=t[0];var r=i===0?12:20;return In(t[r]<<24|t[r+1]<<16|t[r+2]<<8|t[r+3])};Dn=function e(t){var i=yn(t,["moov","trak"]);var r=[];i.forEach(function(e){var t={};var i=yn(e,["tkhd"])[0];var n,a;if(i){n=new DataView(i.buffer,i.byteOffset,i.byteLength);a=n.getUint8(0);t.id=a===0?n.getUint32(12):n.getUint32(20)}var s=yn(e,["mdia","hdlr"])[0];if(s){var o=vn(s.subarray(8,12));if(o==="vide"){t.type="video"}else if(o==="soun"){t.type="audio"}else{t.type=o}}var l=yn(e,["mdia","minf","stbl","stsd"])[0];if(l){var u=l.subarray(8);t.codec=vn(u.subarray(4,8));var c=yn(u,[t.codec])[0];var d,f;if(c){if(/^[a-z]vc[1-9]$/i.test(t.codec)){d=c.subarray(78);f=vn(d.subarray(4,8));if(f==="avcC"&&d.length>11){t.codec+=".";t.codec+=An(d[9]);t.codec+=An(d[10]);t.codec+=An(d[11])}else{t.codec="avc1.4d400d"}}else if(/^mp4[a,v]$/i.test(t.codec)){d=c.subarray(28);f=vn(d.subarray(4,8));if(f==="esds"&&d.length>20&&d[19]!==0){t.codec+="."+An(d[19]);t.codec+="."+An(d[20]>>>2&63).replace(/^0/,"")}else{t.codec="mp4a.40.2"}}else{t.codec=t.codec.toLowerCase()}}}var h=yn(e,["mdia","mdhd"])[0];if(h){t.timescale=Rn(h)}r.push(t)});return r};var Nn={findBox:yn,parseType:vn,timescale:xn,startTime:Pn,compositionStartTime:On,videoTrackIds:Ln,tracks:Dn,getTimescaleFromMediaHeader:Rn};var Mn={FAILURE:2,TIMEOUT:-101,ABORTED:-102};var Un=function e(t){t.forEach(function(e){e.abort()})};var Bn=function e(t){return{bandwidth:t.bandwidth,bytesReceived:t.bytesReceived||0,roundTripTime:t.roundTripTime||0}};var Fn=function e(t){var i=t.target;var r=Date.now()-i.requestTime;var n={bandwidth:Infinity,bytesReceived:0,roundTripTime:r||0};n.bytesReceived=t.loade'),t[0].s.push('*8*1e3);return n};var Hn=function e(t,i){if(i.timedout){return{status:i.status,message:"HLS request timed-out at URL: "+i.uri,code:Mn.TIMEOUT,xhr:i}}if(i.aborted){return{status:i.status,message:"HLS request aborted at URL: "+i.uri,code:Mn.ABORTED,xhr:i}}if(t){return{status:i.status,message:"HLS request errored at URL: "+i.uri,code:Mn.FAILURE,xhr:i}}return null};var Vn=function e(t,i){return function(e,r){var n=r.response;var a=Hn(e,r);if(a){return i(a,t)}if(n.byteLength!==16){return i({status:r.status,message:"Invalid HLS key at URL: "+r.uri,code:Mn.FAILURE,xhr:r},t)}var s=new DataView(n);t.key.bytes=new Uint32Array([s.getUint32(0),s.getUint32(4),s.getUint32(8),s.getUint32(12)]);return i(null,t)}};var qn=function e(t){var i=t.segment,r=t.finishProcessingFn;return function(e,t){var n=t.response;var a=Hn(e,t);if(a){return r(a,i)}if(n.byteLength===0){return r({status:t.status,message:"Empty HLS segment content at URL: "+t.uri,code:Mn.FAILURE,xhr:t},i)}i.map.bytes=new Uint8Array(t.response);var s=Li(i.map.bytes);if(s!=="mp4"){return r({status:t.status,message:"Found unsupported "+(s||"unknown")+" container for initialization segment at URL: "+t.uri,code:Mn.FAILURE,internal:true,xhr:t},i)}var o=Nn.tracks(i.map.bytes);o.forEach(function(e){i.map.tracks=i.map.tracks||{};if(i.map.tracks[e.type]){return}i.map.tracks[e.type]=e;if(typeof e.id==="number"&&e.timescale){i.map.timescales=i.map.timescales||{};i.map.timescales[e.id]=e.timescale}});return r(null,i)}};var zn=function e(t){var i=t.segment,r=t.finishProcessingFn,n=t.responseType;return function(e,t){var a=t.response;var s=Hn(e,t);if(s){return r(s,i)}var o=n==="arraybuffer"||!t.responseText?t.response:Yi(t.responseText.substring(i.lastReachedChar||0));if(a.byteLength===0){return r({status:t.status,message:"Empty HLS segment content at URL: "+t.uri,code:Mn.FAILURE,xhr:t},i)}i.stats=Bn(t);if(i.key){i.encryptedBytes=new Uint8Array(o)}else{i.bytes=new Uint8Array(o)}return r(null,i)}};var Wn=function e(t){var i=t.segment,r=t.bytes,n=t.isPartial,a=t.trackInfoFn,s=t.timingInfoFn,o=t.videoSegmentTimingInfoFn,l=t.audioSegmentTimingInfoFn,u=t.id3Fn,c=t.captionsFn,d=t.dataFn,f=t.doneFn;var h=i.map&&i.map.tracks||{};var p=Boolean(h.audio&&h.video);var v=s.bind(null,i,"audio","start");var m=s.bind(null,i,"audio","end");var g=s.bind(null,i,"video","start");var y=s.bind(null,i,"video","end");if(!n&&!i.lastReachedChar){var _=un(r,i.baseStartTime);
1if(_){a(i,{hasAudio:_.hasAudio,hasVideo:_.hasVideo,isMuxed:p});a=null;if(_.hasAudio&&!p){v(_.audioStart)}if(_.hasVideo){g(_.videoStart)}v=null;g=null}}ar({bytes:r,transmuxer:i.transmuxer,audioAppendStart:i.audioAppendStart,gopsToAlignWith:i.gopsToAlignWith,isPartial:n,remux:p,onData:function e(t){t.type=t.type==="combined"?"video":t.type;d(i,t)},onTrackInfo:function e(t){if(a){if(p){t.isMuxed=true}a(i,t)}},onAudioTimingInfo:function e(t){if(v&&typeof t.start!=="undefined"){v(t.start);v=null}if(m&&typeof t.end!=="undefined"){m(t.end)}},onVideoTimingInfo:function e(t){if(g&&typeof t.start!=="undefined"){g(t.start);g=null}if(y&&typeof t.end!=="undefined"){y(t.end)}},onVideoSegmentTimingInfo:function e(t){o(t)},onAudioSegmentTimingInfo:function e(t){l(t)},onId3:function e(t,r){u(i,t,r)},onCaptions:function e(t){c(i,[t])},onDone:function e(t){if(!f||n){return}t.type=t.type==="combined"?"video":t.type;f(null,i,t)}})};var Gn=function e(t){var i=t.segment,r=t.bytes,n=t.isPartial,a=t.trackInfoFn,s=t.timingInfoFn,o=t.videoSegmentTimingInfoFn,l=t.audioSegmentTimingInfoFn,u=t.id3Fn,c=t.captionsFn,d=t.dataFn,f=t.doneFn;var h=new Uint8Array(r);if(Di(h)){i.isFmp4=true;var p=i.map.tracks;var v={isFmp4:true,hasVideo:!!p.video,hasAudio:!!p.audio};if(p.audio&&p.audio.codec&&p.audio.codec!=="enca"){v.audioCodec=p.audio.codec}if(p.video&&p.video.codec&&p.video.codec!=="encv"){v.videoCodec=p.video.codec}if(p.video&&p.audio){v.isMuxed=true}a(i,v);var m=Nn.startTime(i.map.timescales,h);if(v.hasAudio&&!v.isMuxed){s(i,"audio","start",m)}if(v.hasVideo){s(i,"video","start",m)}var g=function e(t){d(i,{data:r,type:v.hasAudio&&!v.isMuxed?"audio":"video"});if(t&&t.length){c(i,t)}f(null,i,{})};if(!p.video||!r.byteLength||!i.transmuxer){g();return}var y=r instanceof ArrayBuffer?r:r.buffer;var _=r instanceof ArrayBuffer?0:r.byteOffset;var b=function e(t){if(t.data.action!=="mp4Captions"){return}i.transmuxer.removeEventListener("message",e);var n=t.data.data;i.bytes=r=new Uint8Array(n,n.byteOffset||0,n.byteLength);g(t.data.captions)};i.transmuxer.addEventListener("message",b);i.transmuxer.postMessage({action:"pushMp4Captions",timescales:i.map.timescales,trackIds:[p.video.id],data:y,byteOffset:_,byteLength:r.byteLength},[y]);return}if(!i.transmuxer){f(null,i,{});return}if(typeof i.container==="undefined"){i.container=Li(h)}if(i.container!=="ts"&&i.container!=="aac"){a(i,{hasAudio:false,hasVideo:false});f(null,i,{});return}Wn({segment:i,bytes:r,isPartial:n,trackInfoFn:a,timingInfoFn:s,videoSegmentTimingInfoFn:o,audioSegmentTimingInfoFn:l,id3Fn:u,captionsFn:c,dataFn:d,doneFn:f})};var Yn=function e(t){var i=t.decryptionWorker,r=t.segment,n=t.trackInfoFn,a=t.timingInfoFn,s=t.videoSegmentTimingInfoFn,o=t.audioSegmentTimingInfoFn,l=t.id3Fn,u=t.captionsFn,c=t.dataFn,d=t.doneFn;var f=function e(t){if(t.data.source===r.requestId){i.removeEventListener("message",e);var f=t.data.decrypted;r.bytes=new Uint8Array(f.bytes,f.byteOffset,f.byteLength);Gn({segment:r,bytes:r.bytes,isPartial:false,trackInfoFn:n,timingInfoFn:a,videoSegmentTimingInfoFn:s,audioSegmentTimingInfoFn:o,id3Fn:l,captionsFn:u,dataFn:c,doneFn:d})}};i.addEventListener("message",f);var h;if(r.key.bytes.slice){h=r.key.bytes.slice()}else{h=new Uint32Array(Array.prototype.slice.call(r.key.bytes))}i.postMessage(Le({source:r.requestId,encrypted:r.encryptedBytes,key:h,iv:r.key.iv}),[r.encryptedBytes.buffer,h.buffer])};var Kn=function e(t){var i=t.activeXhrs,r=t.decryptionWorker,n=t.trackInfoFn,a=t.timingInfoFn,s=t.videoSegmentTimingInfoFn,o=t.audioSegmentTimingInfoFn,l=t.id3Fn,u=t.captionsFn,c=t.dataFn,d=t.doneFn;var f=0;var h=false;return function(e,t){if(h){return}if(e){h=true;Un(i);return d(e,t)}f+=1;if(f===i.length){t.endOfAllRequests=Date.now();if(t.encryptedBytes){return Yn({decryptionWorker:r,segment:t,trackInfoFn:n,timingInfoFn:a,videoSegmentTimingInfoFn:s,audioSegmentTimingInfoFn:o,id3Fn:l,captionsFn:u,dataFn:c,doneFn:d})}Gn({segment:t,bytes:t.bytes,isPartial:false,trackInfoFn:n,timingInfoFn:a,videoSegmentTimingInfoFn:s,audioSegmentTimingInfoFn:o,id3Fn:l,captionsFn:u,dataFn:c,doneFn:d})}}};var Xn=function e(t){var i=t.loadendState,r=t.abortFn;return function(e){var t=e.target;if(t.aborted&&r&&!i.calledAbortFn){r();i.calledAbortFn=true}}};var Qn=function e(t){var i=t.segment,r=t.progressFn,n=t.trackInfoFn,a=t.timingInfoFn,s=t.videoSegmentTimingInfoFn,o=t.audioSegmentTimingInfoFn,l=t.id3Fn,c=t.captionsFn,d=t.dataFn,f=t.handlePartialData;return function(e){var t=e.target;if(t.aborted){return}if(f&&!i.key&&t.responseText&&t.responseText.length>=8){var h=Yi(t.responseText.substring(i.lastReachedChar||0));if(i.lastReachedChar||!Di(new Uint8Array(h))){i.lastReachedChar=t.responseText.length;Gn({segment:i,bytes:h,isPartial:true,trackInfoFn:n,timingInfoFn:a,videoSegmentTimingInfoFn:s,audioSegmentTimingInfoFn:o,id3Fn:l,captionsFn:c,dataFn:d})}}i.stats=u["default"].mergeOptions(i.stats,Fn(e));if(!i.stats.firstBytesReceivedAt&&i.stats.bytesReceived){i.stats.firstBytesReceivedAt=Date.now()}return r(e,i)}};var Jn=function e(t){var i=t.xhr,r=t.xhrOptions,n=t.decryptionWorker,a=t.segment,s=t.abortFn,o=t.progressFn,l=t.trackInfoFn,c=t.timingInfoFn,d=t.videoSegmentTimingInfoFn,f=t.audioSegmentTimingInfoFn,h=t.id3Fn,p=t.captionsFn,v=t.dataFn,m=t.doneFn,g=t.handlePartialData;var y=[];var _=Kn({activeXhrs:y,decryptionWorker:n,trackInfoFn:l,timingInfoFn:c,videoSegmentTimingInfoFn:d,audioSegmentTimingInfoFn:f,id3Fn:h,captionsFn:p,dataFn:v,doneFn:m});if(a.key&&!a.key.bytes){var b=u["default"].mergeOptions(r,{uri:a.key.resolvedUri,responseType:"arraybuffer"});var T=Vn(a,_);var S=i(b,T);y.push(S)}if(a.map&&!a.map.bytes){var k=u["default"].mergeOptions(r,{uri:a.map.resolvedUri,responseType:"arraybuffer",headers:we(a.map)});var E=qn({segment:a,finishProcessingFn:_});var j=i(k,E);y.push(j)}var w=u["default"].mergeOptions(r,{uri:a.resolvedUri,responseType:"arraybuffer",headers:we(a)});if(g){w.responseType="text";w.beforeSend=function(e){e.overrideMimeType("text/plain;
1 charset=x-user-defined")}}var C=zn({segment:a,finishProcessingFn:_,responseType:w.responseType});var I=i(w,C);I.addEventListener("progress",Qn({segment:a,progressFn:o,trackInfoFn:l,timingInfoFn:c,videoSegmentTimingInfoFn:d,audioSegmentTimingInfoFn:f,id3Fn:h,captionsFn:p,dataFn:v,handlePartialData:g}));y.push(I);var A={};y.forEach(function(e){e.addEventListener("loadend",Xn({loadendState:A,abortFn:s}))});return function(){return Un(y)}};var Zn=typeof e!=="undefined"?e:{},$n=typeof Symbol==="undefined"?"__target":Symbol(),ea="application/javascript",ta=Zn.BlobBuilder||Zn.WebKitBlobBuilder||Zn.MozBlobBuilder||Zn.MSBlobBuilder,ia=Zn.URL||Zn.webkitURL||ia&&ia.msURL,ra=Zn.Worker;function na(e,t){return function i(r){var n=this;if(!t){return new ra(e)}else if(ra&&!r){var a=t.toString().replace(/^function.+?{/,"").slice(0,-1),s=la(a);this[$n]=new ra(s);ua(this[$n],s);return this[$n]}else{var o={postMessage:function e(t){if(n.onmessage){setTimeout(function(){n.onmessage({data:t,target:o})})}}};t.call(o);this.postMessage=function(e){setTimeout(function(){o.onmessage({data:e,target:n})})};this.isThisThread=true}}}if(ra){var aa,sa=la("self.onmessage = function () {}"),oa=new Uint8Array(1);try{aa=new ra(sa);aa.postMessage(oa,[oa.buffer])}catch(e){ra=null}finally{ia.revokeObjectURL(sa);if(aa){aa.terminate()}}}function la(e){try{return ia.createObjectURL(new Blob([e],{type:ea}))}catch(i){var t=new ta;t.append(e);return ia.createObjectURL(t.getBlob(type))}}function ua(e,t){if(!e||!t)return;var i=e.terminate;e.objURL=t;e.terminate=function(){if(e.objURL)ia.revokeObjectURL(e.objURL);i.call(e)}}var ca=new na("./transmuxer-worker.worker.js",function(e,t){var i=this;var r=function(){var e=function e(){this.init=function(){var e={};this.on=function(t,i){if(!e[t]){e[t]=[]}e[t]=e[t].concat(i)};this.off=function(t,i){var r;if(!e[t]){return false}r=e[t].indexOf(i);e[t]=e[t].slice();e[t].splice(r,1);return r>-1};this.trigger=function(t){var i,r,n,a;i=e[t];if(!i){return}if(arguments.length===2){n=i.length;for(r=0;r<n;++r){i[r].call(this,arguments[1])}}else{a=[];r=arguments.length;for(r=1;r<arguments.length;++r){a.push(arguments[r])}n=i.length;for(r=0;r<n;++r){i[r].apply(this,a)}}};this.dispose=function(){e={}}}};e.prototype.pipe=function(e){this.on("data",function(t){e.push(t)});this.on("done",function(t){e.flush(t)});this.on("partialdone",function(t){e.partialFlush(t)});this.on("endedtimeline",function(t){e.endTimeline(t)});this.on("reset",function(t){e.reset(t)});return e};e.prototype.push=function(e){this.trigger("data",e)};e.prototype.flush=function(e){this.trigger("done",e)};e.prototype.partialFlush=function(e){this.trigger("partialdone",e)};e.prototype.endTimeline=function(e){this.trigger("endedtimeline",e)};e.prototype.reset=function(e){this.trigger("reset",e)};var t=e;var r=Math.pow(2,32)-1;var n,a,s,o,l,u,c,d,f,h,p,v,m,g,y,_,b,T,S,k,E,j,w,C,I,A,x,P,O,L,D,R,N,M,U,B;(function(){var e;w={avc1:[],avcC:[],btrt:[],dinf:[],dref:[],esds:[],ftyp:[],hdlr:[],mdat:[],mdhd:[],mdia:[],mfhd:[],minf:[],moof:[],moov:[],mp4a:[],mvex:[],mvhd:[],pasp:[],sdtp:[],smhd:[],stbl:[],stco:[],stsc:[],stsd:[],stsz:[],stts:[],styp:[],tfdt:[],tfhd:[],traf:[],trak:[],trun:[],trex:[],tkhd:[],vmhd:[]};if(typeof Uint8Array==="undefined"){return}for(e in w){if(w.hasOwnProperty(e)){w[e]=[e.charCodeAt(0),e.charCodeAt(1),e.charCodeAt(2),e.charCodeAt(3)]}}C=new Uint8Array(["i".charCodeAt(0),"s".charCodeAt(0),"o".charCodeAt(0),"m".charCodeAt(0)]);A=new Uint8Array(["a".charCodeAt(0),"v".charCodeAt(0),"c".charCodeAt(0),"1".charCodeAt(0)]);I=new Uint8Array([0,0,0,1]);x=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]);P=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]);O={video:x,audio:P};R=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,12,117,114,108,32,0,0,0,1]);D=new Uint8Array([0,0,0,0,0,0,0,0]);N=new Uint8Array([0,0,0,0,0,0,0,0]);M=N;U=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0]);B=N;L=new Uint8Array([0,0,0,1,0,0,0,0,0,0,0,0])})();n=function e(t){var i=[],r=0,n,a,s;for(n=1;n<arguments.length;n++){i.push(arguments[n])}n=i.length;while(n--){r+=i[n].byteLength}a=new Uint8Array(r+8);s=new DataView(a.buffer,a.byteOffset,a.byteLength);s.setUint32(0,a.byteLength);a.set(t,4);for(n=0,r=8;n<i.length;n++){a.set(i[n],r);r+=i[n].byteLength}return a};a=function e(){return n(w.dinf,n(w.dref,R))};s=function e(t){return n(w.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,t.audioobjecttype<<3|t.samplingfrequencyindex>>>1,t.samplingfrequencyindex<<7|t.channelcount<<3,6,1,2]))};o=function e(){return n(w.ftyp,C,I,C,A)};_=function e(t){return n(w.hdlr,O[t])};l=function e(t){return n(w.mdat,t)};y=function e(t){var i=new Uint8Array([0,0,0,0,0,0,0,2,0,0,0,3,0,1,95,144,t.duration>>>24&255,t.duration>>>16&255,t.duration>>>8&255,t.duration&255,85,196,0,0]);if(t.samplerate){i[12]=t.samplerate>>>24&255;i[13]=t.samplerate>>>16&255;i[14]=t.samplerate>>>8&255;i[15]=t.samplerate&255}return n(w.mdhd,i)};g=function e(t){return n(w.mdia,y(t),_(t.type),c(t))};u=function e(t){return n(w.mfhd,new Uint8Array([0,0,0,0,(t&4278190080)>>24,(t&16711680)>>16,(t&65280)>>8,t&255]))};c=function e(t){return n(w.minf,t.type==="video"?n(w.vmhd,L):n(w.smhd,D),a(),T(t))};d=function e(t,i){var r=[],a=i.length;while(a--){r[a]=k(i[a])}return n.apply(null,[w.moof,u(t)].concat(r))};f=function e(t){var i=t.length,r=[];while(i--){r[i]=v(t[i])}return n.apply(null,[w.moov,p(4294967295)].concat(r).concat(h(t)))};h=function e(t){var i=t.length,r=[];while(i--){r[i]=E(t[i])}return n.apply(null,[w.mvex].concat(r))};p=function e(t){var i=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,2,0,1,95,144,(t&4278190080)>>24,(t&16711680)>>16,(t&65280)>>8,t&255,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 n(w.mvhd,i)};b=function e(t){var i=t.samples||[],r=new Uint8Array(4+i.length),a,s;for(s=0;s<i.length;s++){a=i[s].flags;r[s+4]=a.dependsOn<<4|a.isDependedOn<<2|a.hasRedundancy}return n(w.sdtp,r)};T=function e(t){return n(w.stbl,S(t),n(w.stts,B),n(w.stsc,M),n(w.stsz,U),n(w.stco,N))};(function(){var e,t;S=function i(r){return n(w.stsd,new Uint8Array([0,0,0,0,0,0,0,1]),r.type==="video"?e(r):t(r))};e=function e(t){var i=t.sps||[],r=t.pps||[],a=[],s=[],o,l;for(o=0;o<i.length;o++){a.push((i[o].byteLength&65280)>>>8);a.push(i[o].byteLength&255);a=a.concat(Array.prototype.slice.call(i[o]))}for(o=0;o<r.length;o++){s.push((r[o].byteLength&65280)>>>8);s.push(r[o].byteLength&255);s=s.concat(Array.prototype.slice.call(r[o]))}l=[w.avc1,new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,(t.width&65280)>>8,t.width&255,(t.height&65280)>>8,t.height&255,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]),n(w.avcC,new Uint8Array([1,t.profileIdc,t.profileCompatibility,t.levelIdc,255].concat([i.length],a,[r.length],s))),n(w.btrt,new Uint8Array([0,28,156,128,0,45,198,192,0,45,198,192]))];if(t.sarRatio){var u=t.sarRatio[0],c=t.sarRatio[1];l.push(n(w.pasp,new Uint8Array([(u&4278190080)>>24,(u&16711680)>>16,(u&65280)>>8,u&255,(c&4278190080)>>24,(c&16711680)>>16,(c&65280)>>8,c&255])))}return n.apply(null,l)};t=function e(t){return n(w.mp4a,new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,(t.channelcount&65280)>>8,t.channelcount&255,(t.samplesize&65280)>>8,t.samplesize&255,0,0,0,0,(t.samplerate&65280)>>8,t.samplerate&255,0,0]),s(t))}})();m=function e(t){var i=new Uint8Array([0,0,0,7,0,0,0,0,0,0,0,0,(t.id&4278190080)>>24,(t.id&16711680)>>16,(t.id&65280)>>8,t.id&255,0,0,0,0,(t.duration&4278190080)>>24,(t.duration&16711680)>>16,(t.duration&65280)>>8,t.duration&255,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,(t.width&65280)>>8,t.width&255,0,0,(t.height&65280)>>8,t.he'),t[1].s.push('d;n.bandwidth=Math.floor(n.bytesReceived/n.roundTripTime*8*1e3);return n};var Hn=function e(t,i){if(i.timedout){return{status:i.status,message:"HLS request timed-out at URL: "+i.uri,code:Mn.TIMEOUT,xhr:i}}if(i.aborted){return{status:i.status,message:"HLS request aborted at URL: "+i.uri,code:Mn.ABORTED,xhr:i}}if(t){return{status:i.status,message:"HLS request errored at URL: "+i.uri,code:Mn.FAILURE,xhr:i}}return null};var Vn=function e(t,i){return function(e,r){var n=r.response;var a=Hn(e,r);if(a){return i(a,t)}if(n.byteLength!==16){return i({status:r.status,message:"Invalid HLS key at URL: "+r.uri,code:Mn.FAILURE,xhr:r},t)}var s=new DataView(n);
1t.key.bytes=new Uint32Array([s.getUint32(0),s.getUint32(4),s.getUint32(8),s.getUint32(12)]);return i(null,t)}};var qn=function e(t){var i=t.segment,r=t.finishProcessingFn;return function(e,t){var n=t.response;var a=Hn(e,t);if(a){return r(a,i)}if(n.byteLength===0){return r({status:t.status,message:"Empty HLS segment content at URL: "+t.uri,code:Mn.FAILURE,xhr:t},i)}i.map.bytes=new Uint8Array(t.response);var s=Li(i.map.bytes);if(s!=="mp4"){return r({status:t.status,message:"Found unsupported "+(s||"unknown")+" container for initialization segment at URL: "+t.uri,code:Mn.FAILURE,internal:true,xhr:t},i)}var o=Nn.tracks(i.map.bytes);o.forEach(function(e){i.map.tracks=i.map.tracks||{};if(i.map.tracks[e.type]){return}i.map.tracks[e.type]=e;if(typeof e.id==="number"&&e.timescale){i.map.timescales=i.map.timescales||{};i.map.timescales[e.id]=e.timescale}});return r(null,i)}};var zn=function e(t){var i=t.segment,r=t.finishProcessingFn,n=t.responseType;return function(e,t){var a=t.response;var s=Hn(e,t);if(s){return r(s,i)}var o=n==="arraybuffer"||!t.responseText?t.response:Yi(t.responseText.substring(i.lastReachedChar||0));if(a.byteLength===0){return r({status:t.status,message:"Empty HLS segment content at URL: "+t.uri,code:Mn.FAILURE,xhr:t},i)}i.stats=Bn(t);if(i.key){i.encryptedBytes=new Uint8Array(o)}else{i.bytes=new Uint8Array(o)}return r(null,i)}};var Wn=function e(t){var i=t.segment,r=t.bytes,n=t.isPartial,a=t.trackInfoFn,s=t.timingInfoFn,o=t.videoSegmentTimingInfoFn,l=t.audioSegmentTimingInfoFn,u=t.id3Fn,c=t.captionsFn,d=t.dataFn,f=t.doneFn;var h=i.map&&i.map.tracks||{};var p=Boolean(h.audio&&h.video);var v=s.bind(null,i,"audio","start");var m=s.bind(null,i,"audio","end");var g=s.bind(null,i,"video","start");var y=s.bind(null,i,"video","end");if(!n&&!i.lastReachedChar){var _=un(r,i.baseStartTime);if(_){a(i,{hasAudio:_.hasAudio,hasVideo:_.hasVideo,isMuxed:p});a=null;if(_.hasAudio&&!p){v(_.audioStart)}if(_.hasVideo){g(_.videoStart)}v=null;g=null}}ar({bytes:r,transmuxer:i.transmuxer,audioAppendStart:i.audioAppendStart,gopsToAlignWith:i.gopsToAlignWith,isPartial:n,remux:p,onData:function e(t){t.type=t.type==="combined"?"video":t.type;d(i,t)},onTrackInfo:function e(t){if(a){if(p){t.isMuxed=true}a(i,t)}},onAudioTimingInfo:function e(t){if(v&&typeof t.start!=="undefined"){v(t.start);v=null}if(m&&typeof t.end!=="undefined"){m(t.end)}},onVideoTimingInfo:function e(t){if(g&&typeof t.start!=="undefined"){g(t.start);g=null}if(y&&typeof t.end!=="undefined"){y(t.end)}},onVideoSegmentTimingInfo:function e(t){o(t)},onAudioSegmentTimingInfo:function e(t){l(t)},onId3:function e(t,r){u(i,t,r)},onCaptions:function e(t){c(i,[t])},onDone:function e(t){if(!f||n){return}t.type=t.type==="combined"?"video":t.type;f(null,i,t)}})};var Gn=function e(t){var i=t.segment,r=t.bytes,n=t.isPartial,a=t.trackInfoFn,s=t.timingInfoFn,o=t.videoSegmentTimingInfoFn,l=t.audioSegmentTimingInfoFn,u=t.id3Fn,c=t.captionsFn,d=t.dataFn,f=t.doneFn;var h=new Uint8Array(r);if(Di(h)){i.isFmp4=true;var p=i.map.tracks;var v={isFmp4:true,hasVideo:!!p.video,hasAudio:!!p.audio};if(p.audio&&p.audio.codec&&p.audio.codec!=="enca"){v.audioCodec=p.audio.codec}if(p.video&&p.video.codec&&p.video.codec!=="encv"){v.videoCodec=p.video.codec}if(p.video&&p.audio){v.isMuxed=true}a(i,v);var m=Nn.startTime(i.map.timescales,h);if(v.hasAudio&&!v.isMuxed){s(i,"audio","start",m)}if(v.hasVideo){s(i,"video","start",m)}var g=function e(t){d(i,{data:r,type:v.hasAudio&&!v.isMuxed?"audio":"video"});if(t&&t.length){c(i,t)}f(null,i,{})};if(!p.video||!r.byteLength||!i.transmuxer){g();return}var y=r instanceof ArrayBuffer?r:r.buffer;var _=r instanceof ArrayBuffer?0:r.byteOffset;var b=function e(t){if(t.data.action!=="mp4Captions"){return}i.transmuxer.removeEventListener("message",e);var n=t.data.data;i.bytes=r=new Uint8Array(n,n.byteOffset||0,n.byteLength);g(t.data.captions)};i.transmuxer.addEventListener("message",b);i.transmuxer.postMessage({action:"pushMp4Captions",timescales:i.map.timescales,trackIds:[p.video.id],data:y,byteOffset:_,byteLength:r.byteLength},[y]);return}if(!i.transmuxer){f(null,i,{});return}if(typeof i.container==="undefined"){i.container=Li(h)}if(i.container!=="ts"&&i.container!=="aac"){a(i,{hasAudio:false,hasVideo:false});f(null,i,{});return}Wn({segment:i,bytes:r,isPartial:n,trackInfoFn:a,timingInfoFn:s,videoSegmentTimingInfoFn:o,audioSegmentTimingInfoFn:l,id3Fn:u,captionsFn:c,dataFn:d,doneFn:f})};var Yn=function e(t){var i=t.decryptionWorker,r=t.segment,n=t.trackInfoFn,a=t.timingInfoFn,s=t.videoSegmentTimingInfoFn,o=t.audioSegmentTimingInfoFn,l=t.id3Fn,u=t.captionsFn,c=t.dataFn,d=t.doneFn;var f=function e(t){if(t.data.source===r.requestId){i.removeEventListener("message",e);var f=t.data.decrypted;r.bytes=new Uint8Array(f.bytes,f.byteOffset,f.byteLength);Gn({segment:r,bytes:r.bytes,isPartial:false,trackInfoFn:n,timingInfoFn:a,videoSegmentTimingInfoFn:s,audioSegmentTimingInfoFn:o,id3Fn:l,captionsFn:u,dataFn:c,doneFn:d})}};i.addEventListener("message",f);var h;if(r.key.bytes.slice){h=r.key.bytes.slice()}else{h=new Uint32Array(Array.prototype.slice.call(r.key.bytes))}i.postMessage(Le({source:r.requestId,encrypted:r.encryptedBytes,key:h,iv:r.key.iv}),[r.encryptedBytes.buffer,h.buffer])};var Kn=function e(t){var i=t.activeXhrs,r=t.decryptionWorker,n=t.trackInfoFn,a=t.timingInfoFn,s=t.videoSegmentTimingInfoFn,o=t.audioSegmentTimingInfoFn,l=t.id3Fn,u=t.captionsFn,c=t.dataFn,d=t.doneFn;var f=0;var h=false;return function(e,t){if(h){return}if(e){h=true;Un(i);return d(e,t)}f+=1;if(f===i.length){t.endOfAllRequests=Date.now();if(t.encryptedBytes){return Yn({decryptionWorker:r,segment:t,trackInfoFn:n,timingInfoFn:a,videoSegmentTimingInfoFn:s,audioSegmentTimingInfoFn:o,id3Fn:l,captionsFn:u,dataFn:c,doneFn:d})}Gn({segment:t,bytes:t.bytes,isPartial:false,trackInfoFn:n,timingInfoFn:a,videoSegmentTimingInfoFn:s,audioSegmentTimingInfoFn:o,id3Fn:l,captionsFn:u,dataFn:c,doneFn:d})}}};var Xn=function e(t){var i=t.loadendState,r=t.abortFn;return function(e){var t=e.target;if(t.aborted&&r&&!i.calledAbortFn){r();i.calledAbortFn=true}}};var Qn=function e(t){var i=t.segment,r=t.progressFn,n=t.trackInfoFn,a=t.timingInfoFn,s=t.videoSegmentTimingInfoFn,o=t.audioSegmentTimingInfoFn,l=t.id3Fn,c=t.captionsFn,d=t.dataFn,f=t.handlePartialData;return function(e){var t=e.target;if(t.aborted){return}if(f&&!i.key&&t.responseText&&t.responseText.length>=8){var h=Yi(t.responseText.substring(i.lastReachedChar||0));if(i.lastReachedChar||!Di(new Uint8Array(h))){i.lastReachedChar=t.responseText.length;Gn({segment:i,bytes:h,isPartial:true,trackInfoFn:n,timingInfoFn:a,videoSegmentTimingInfoFn:s,audioSegmentTimingInfoFn:o,id3Fn:l,captionsFn:c,dataFn:d})}}i.stats=u["default"].mergeOptions(i.stats,Fn(e));if(!i.stats.firstBytesReceivedAt&&i.stats.bytesReceived){i.stats.firstBytesReceivedAt=Date.now()}return r(e,i)}};var Jn=function e(t){var i=t.xhr,r=t.xhrOptions,n=t.decryptionWorker,a=t.segment,s=t.abortFn,o=t.progressFn,l=t.trackInfoFn,c=t.timingInfoFn,d=t.videoSegmentTimingInfoFn,f=t.audioSegmentTimingInfoFn,h=t.id3Fn,p=t.captionsFn,v=t.dataFn,m=t.doneFn,g=t.handlePartialData;var y=[];var _=Kn({activeXhrs:y,decryptionWorker:n,trackInfoFn:l,timingInfoFn:c,videoSegmentTimingInfoFn:d,audioSegmentTimingInfoFn:f,id3Fn:h,captionsFn:p,dataFn:v,doneFn:m});if(a.key&&!a.key.bytes){var b=u["default"].mergeOptions(r,{uri:a.key.resolvedUri,responseType:"arraybuffer"});var T=Vn(a,_);var S=i(b,T);y.push(S)}if(a.map&&!a.map.bytes){var k=u["default"].mergeOptions(r,{uri:a.map.resolvedUri,responseType:"arraybuffer",headers:we(a.map)});var E=qn({segment:a,finishProcessingFn:_});var j=i(k,E);y.push(j)}var w=u["default"].mergeOptions(r,{uri:a.resolvedUri,responseType:"arraybuffer",headers:we(a)});if(g){w.responseType="text";w.beforeSend=function(e){e.overrideMimeType("text/plain;
1 charset=x-user-defined")}}var C=zn({segment:a,finishProcessingFn:_,responseType:w.responseType});var I=i(w,C);I.addEventListener("progress",Qn({segment:a,progressFn:o,trackInfoFn:l,timingInfoFn:c,videoSegmentTimingInfoFn:d,audioSegmentTimingInfoFn:f,id3Fn:h,captionsFn:p,dataFn:v,handlePartialData:g}));y.push(I);var A={};y.forEach(function(e){e.addEventListener("loadend",Xn({loadendState:A,abortFn:s}))});return function(){return Un(y)}};var Zn=typeof e!=="undefined"?e:{},$n=typeof Symbol==="undefined"?"__target":Symbol(),ea="application/javascript",ta=Zn.BlobBuilder||Zn.WebKitBlobBuilder||Zn.MozBlobBuilder||Zn.MSBlobBuilder,ia=Zn.URL||Zn.webkitURL||ia&&ia.msURL,ra=Zn.Worker;function na(e,t){return function i(r){var n=this;if(!t){return new ra(e)}else if(ra&&!r){var a=t.toString().replace(/^function.+?{/,"").slice(0,-1),s=la(a);this[$n]=new ra(s);ua(this[$n],s);return this[$n]}else{var o={postMessage:function e(t){if(n.onmessage){setTimeout(function(){n.onmessage({data:t,target:o})})}}};t.call(o);this.postMessage=function(e){setTimeout(function(){o.onmessage({data:e,target:n})})};this.isThisThread=true}}}if(ra){var aa,sa=la("self.onmessage = function () {}"),oa=new Uint8Array(1);try{aa=new ra(sa);aa.postMessage(oa,[oa.buffer])}catch(e){ra=null}finally{ia.revokeObjectURL(sa);if(aa){aa.terminate()}}}function la(e){try{return ia.createObjectURL(new Blob([e],{type:ea}))}catch(i){var t=new ta;t.append(e);return ia.createObjectURL(t.getBlob(type))}}function ua(e,t){if(!e||!t)return;var i=e.terminate;e.objURL=t;e.terminate=function(){if(e.objURL)ia.revokeObjectURL(e.objURL);i.call(e)}}var ca=new na("./transmuxer-worker.worker.js",function(e,t){var i=this;var r=function(){var e=function e(){this.init=function(){var e={};this.on=function(t,i){if(!e[t]){e[t]=[]}e[t]=e[t].concat(i)};this.off=function(t,i){var r;if(!e[t]){return false}r=e[t].indexOf(i);e[t]=e[t].slice();e[t].splice(r,1);return r>-1};this.trigger=function(t){var i,r,n,a;i=e[t];if(!i){return}if(arguments.length===2){n=i.length;for(r=0;r<n;++r){i[r].call(this,arguments[1])}}else{a=[];r=arguments.length;for(r=1;r<arguments.length;++r){a.push(arguments[r])}n=i.length;for(r=0;r<n;++r){i[r].apply(this,a)}}};this.dispose=function(){e={}}}};e.prototype.pipe=function(e){this.on("data",function(t){e.push(t)});this.on("done",function(t){e.flush(t)});this.on("partialdone",function(t){e.partialFlush(t)});this.on("endedtimeline",function(t){e.endTimeline(t)});this.on("reset",function(t){e.reset(t)});return e};e.prototype.push=function(e){this.trigger("data",e)};e.prototype.flush=function(e){this.trigger("done",e)};e.prototype.partialFlush=function(e){this.trigger("partialdone",e)};e.prototype.endTimeline=function(e){this.trigger("endedtimeline",e)};e.prototype.reset=function(e){this.trigger("reset",e)};var t=e;var r=Math.pow(2,32)-1;var n,a,s,o,l,u,c,d,f,h,p,v,m,g,y,_,b,T,S,k,E,j,w,C,I,A,x,P,O,L,D,R,N,M,U,B;(function(){var e;w={avc1:[],avcC:[],btrt:[],dinf:[],dref:[],esds:[],ftyp:[],hdlr:[],mdat:[],mdhd:[],mdia:[],mfhd:[],minf:[],moof:[],moov:[],mp4a:[],mvex:[],mvhd:[],pasp:[],sdtp:[],smhd:[],stbl:[],stco:[],stsc:[],stsd:[],stsz:[],stts:[],styp:[],tfdt:[],tfhd:[],traf:[],trak:[],trun:[],trex:[],tkhd:[],vmhd:[]};if(typeof Uint8Array==="undefined"){return}for(e in w){if(w.hasOwnProperty(e)){w[e]=[e.charCodeAt(0),e.charCodeAt(1),e.charCodeAt(2),e.charCodeAt(3)]}}C=new Uint8Array(["i".charCodeAt(0),"s".charCodeAt(0),"o".charCodeAt(0),"m".charCodeAt(0)]);A=new Uint8Array(["a".charCodeAt(0),"v".charCodeAt(0),"c".charCodeAt(0),"1".charCodeAt(0)]);I=new Uint8Array([0,0,0,1]);x=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]);P=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]);O={video:x,audio:P};R=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,12,117,114,108,32,0,0,0,1]);D=new Uint8Array([0,0,0,0,0,0,0,0]);N=new Uint8Array([0,0,0,0,0,0,0,0]);M=N;U=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0]);B=N;L=new Uint8Array([0,0,0,1,0,0,0,0,0,0,0,0])})();n=function e(t){var i=[],r=0,n,a,s;for(n=1;n<arguments.length;n++){i.push(arguments[n])}n=i.length;while(n--){r+=i[n].byteLength}a=new Uint8Array(r+8);s=new DataView(a.buffer,a.byteOffset,a.byteLength);s.setUint32(0,a.byteLength);a.set(t,4);for(n=0,r=8;n<i.length;n++){a.set(i[n],r);r+=i[n].byteLength}return a};a=function e(){return n(w.dinf,n(w.dref,R))};s=function e(t){return n(w.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,t.audioobjecttype<<3|t.samplingfrequencyindex>>>1,t.samplingfrequencyindex<<7|t.channelcount<<3,6,1,2]))};o=function e(){return n(w.ftyp,C,I,C,A)};_=function e(t){return n(w.hdlr,O[t])};l=function e(t){return n(w.mdat,t)};y=function e(t){var i=new Uint8Array([0,0,0,0,0,0,0,2,0,0,0,3,0,1,95,144,t.duration>>>24&255,t.duration>>>16&255,t.duration>>>8&255,t.duration&255,85,196,0,0]);if(t.samplerate){i[12]=t.samplerate>>>24&255;i[13]=t.samplerate>>>16&255;i[14]=t.samplerate>>>8&255;i[15]=t.samplerate&255}return n(w.mdhd,i)};g=function e(t){return n(w.mdia,y(t),_(t.type),c(t))};u=function e(t){return n(w.mfhd,new Uint8Array([0,0,0,0,(t&4278190080)>>24,(t&16711680)>>16,(t&65280)>>8,t&255]))};c=function e(t){return n(w.minf,t.type==="video"?n(w.vmhd,L):n(w.smhd,D),a(),T(t))};d=function e(t,i){var r=[],a=i.length;while(a--){r[a]=k(i[a])}return n.apply(null,[w.moof,u(t)].concat(r))};f=function e(t){var i=t.length,r=[];while(i--){r[i]=v(t[i])}return n.apply(null,[w.moov,p(4294967295)].concat(r).concat(h(t)))};h=function e(t){var i=t.length,r=[];while(i--){r[i]=E(t[i])}return n.apply(null,[w.mvex].concat(r))};p=function e(t){var i=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,2,0,1,95,144,(t&4278190080)>>24,(t&16711680)>>16,(t&65280)>>8,t&255,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 n(w.mvhd,i)};b=function e(t){var i=t.samples||[],r=new Uint8Array(4+i.length),a,s;for(s=0;s<i.length;s++){a=i[s].flags;r[s+4]=a.dependsOn<<4|a.isDependedOn<<2|a.hasRedundancy}return n(w.sdtp,r)};T=function e(t){return n(w.stbl,S(t),n(w.stts,B),n(w.stsc,M),n(w.stsz,U),n(w.stco,N))};(function(){var e,t;S=function i(r){return n(w.stsd,new Uint8Array([0,0,0,0,0,0,0,1]),r.type==="video"?e(r):t(r))};e=function e(t){var i=t.sps||[],r=t.pps||[],a=[],s=[],o,l;for(o=0;o<i.length;o++){a.push((i[o].byteLength&65280)>>>8);a.push(i[o].byteLength&255);a=a.concat(Array.prototype.slice.call(i[o]))}for(o=0;o<r.length;o++){s.push((r[o].byteLength&65280)>>>8);s.push(r[o].byteLength&255);s=s.concat(Array.prototype.slice.call(r[o]))}l=[w.avc1,new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,(t.width&65280)>>8,t.width&255,(t.height&65280)>>8,t.height&255,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]),n(w.avcC,new Uint8Array([1,t.profileIdc,t.profileCompatibility,t.levelIdc,255].concat([i.length],a,[r.length],s))),n(w.btrt,new Uint8Array([0,28,156,128,0,45,198,192,0,45,198,192]))];if(t.sarRatio){var u=t.sarRatio[0],c=t.sarRatio[1];l.push(n(w.pasp,new Uint8Array([(u&4278190080)>>24,(u&16711680)>>16,(u&65280)>>8,u&255,(c&4278190080)>>24,(c&16711680)>>16,(c&65280)>>8,c&255])))}return n.apply(null,l)};t=function e(t){return n(w.mp4a,new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,(t.channelcount&65280)>>8,t.channelcount&255,(t.samplesize&65280)>>8,t.samplesize&255,0,0,0,0,(t.samplerate&65280)>>8,t.samplerate&255,0,0]),s(t))}})();m=function e(t){var i=new Uint8Array([0,0,0,7,0,0,0,0,0,0,0,0,(t.id&4278190080)>>24,(t.id&16711680)>>16,(t.id&65280)>>8,t.id&255,0,0,0,0,(t.duration&4278190080)>>24,(t.duration&16711680)>>16,(t.duration&65280)>>8,t.duration&255,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,(t.'),t[0].s.push('ight&255,0,0]);return n(w.tkhd,i)};k=function e(t){var i,a,s,o,l,u,c;i=n(w.tfhd,new Uint8Array([0,0,0,58,(t.id&4278190080)>>24,(t.id&16711680)>>16,(t.id&65280)>>8,t.id&255,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0]));u=Math.floor(t.baseMediaDecodeTime/(r+1));c=Math.floor(t.baseMediaDecodeTime%(r+1));a=n(w.tfdt,new Uint8Array([1,0,0,0,u>>>24&255,u>>>16&255,u>>>8&255,u&255,c>>>24&255,c>>>16&255,c>>>8&255,c&255]));l=32+20+8+16+8+8;if(t.type==="audio"){s=j(t,l);return n(w.traf,i,a,s)}o=b(t);s=j(t,o.length+l);return n(w.traf,i,a,s,o)};v=function e(t){t.duration=t.duration||4294967295;return n(w.trak,m(t),g(t))};E=function e(t){var i=new Uint8Array([0,0,0,0,(t.id&4278190080)>>24,(t.id&16711680)>>16,(t.id&65280)>>8,t.id&255,0,0,0,1,0,0,0,0,0,0,0,0,0,1,0,1]);if(t.type!=="video"){i[i.length-1]=0}return n(w.trex,i)};(function(){var e,t,i;i=function e(t,i){var r=0,n=0,a=0,s=0;
1if(t.length){if(t[0].duration!==undefined){r=1}if(t[0].size!==undefined){n=2}if(t[0].flags!==undefined){a=4}if(t[0].compositionTimeOffset!==undefined){s=8}}return[0,0,r|n|a|s,1,(t.length&4278190080)>>>24,(t.length&16711680)>>>16,(t.length&65280)>>>8,t.length&255,(i&4278190080)>>>24,(i&16711680)>>>16,(i&65280)>>>8,i&255]};t=function e(t,r){var a,s,o,l,u,c;l=t.samples||[];r+=8+12+16*l.length;o=i(l,r);s=new Uint8Array(o.length+l.length*16);s.set(o);a=o.length;for(c=0;c<l.length;c++){u=l[c];s[a++]=(u.duration&4278190080)>>>24;s[a++]=(u.duration&16711680)>>>16;s[a++]=(u.duration&65280)>>>8;s[a++]=u.duration&255;s[a++]=(u.size&4278190080)>>>24;s[a++]=(u.size&16711680)>>>16;s[a++]=(u.size&65280)>>>8;s[a++]=u.size&255;s[a++]=u.flags.isLeading<<2|u.flags.dependsOn;s[a++]=u.flags.isDependedOn<<6|u.flags.hasRedundancy<<4|u.flags.paddingValue<<1|u.flags.isNonSyncSample;s[a++]=u.flags.degradationPriority&240<<8;s[a++]=u.flags.degradationPriority&15;s[a++]=(u.compositionTimeOffset&4278190080)>>>24;s[a++]=(u.compositionTimeOffset&16711680)>>>16;s[a++]=(u.compositionTimeOffset&65280)>>>8;s[a++]=u.compositionTimeOffset&255}return n(w.trun,s)};e=function e(t,r){var a,s,o,l,u,c;l=t.samples||[];r+=8+12+8*l.length;o=i(l,r);a=new Uint8Array(o.length+l.length*8);a.set(o);s=o.length;for(c=0;c<l.length;c++){u=l[c];a[s++]=(u.duration&4278190080)>>>24;a[s++]=(u.duration&16711680)>>>16;a[s++]=(u.duration&65280)>>>8;a[s++]=u.duration&255;a[s++]=(u.size&4278190080)>>>24;a[s++]=(u.size&16711680)>>>16;a[s++]=(u.size&65280)>>>8;a[s++]=u.size&255}return n(w.trun,a)};j=function i(r,n){if(r.type==="audio"){return e(r,n)}return t(r,n)}})();var F={ftyp:o,mdat:l,moof:d,moov:f,initSegment:function e(t){var i=o(),r=f(t),n;n=new Uint8Array(i.byteLength+r.byteLength);n.set(i);n.set(r,i.byteLength);return n}};var H=function e(t){var i,r,n=[],a=[];a.byteLength=0;a.nalCount=0;a.duration=0;n.byteLength=0;for(i=0;i<t.length;i++){r=t[i];if(r.nalUnitType==="access_unit_delimiter_rbsp"){if(n.length){n.duration=r.dts-n.dts;a.byteLength+=n.byteLength;a.nalCount+=n.length;a.duration+=n.duration;a.push(n)}n=[r];n.byteLength=r.data.byteLength;n.pts=r.pts;n.dts=r.dts}else{if(r.nalUnitType==="slice_layer_without_partitioning_rbsp_idr"){n.keyFrame=true}n.duration=r.dts-n.dts;n.byteLength+=r.data.byteLength;n.push(r)}}if(a.length&&(!n.duration||n.duration<=0)){n.duration=a[a.length-1].duration}a.byteLength+=n.byteLength;a.nalCount+=n.length;a.duration+=n.duration;a.push(n);return a};var V=function e(t){var i,r,n=[],a=[];n.byteLength=0;n.nalCount=0;n.duration=0;n.pts=t[0].pts;n.dts=t[0].dts;a.byteLength=0;a.nalCount=0;a.duration=0;a.pts=t[0].pts;a.dts=t[0].dts;for(i=0;i<t.length;i++){r=t[i];if(r.keyFrame){if(n.length){a.push(n);a.byteLength+=n.byteLength;a.nalCount+=n.nalCount;a.duration+=n.duration}n=[r];n.nalCount=r.length;n.byteLength=r.byteLength;n.pts=r.pts;n.dts=r.dts;n.duration=r.duration}else{n.duration+=r.duration;n.nalCount+=r.length;n.byteLength+=r.byteLength;n.push(r)}}if(a.length&&n.duration<=0){n.duration=a[a.length-1].duration}a.byteLength+=n.byteLength;a.nalCount+=n.nalCount;a.duration+=n.duration;a.push(n);return a};var q=function e(t){var i;if(!t[0][0].keyFrame&&t.length>1){i=t.shift();t.byteLength-=i.byteLength;t.nalCount-=i.nalCount;t[0][0].dts=i.dts;t[0][0].pts=i.pts;t[0][0].duration+=i.duration}return t};var z=function e(){return{size:0,flags:{isLeading:0,dependsOn:1,isDependedOn:0,hasRedundancy:0,degradationPriority:0,isNonSyncSample:1}}};var W=function e(t,i){var r=z();r.dataOffset=i;r.compositionTimeOffset=t.pts-t.dts;r.duration=t.duration;r.size=4*t.length;r.size+=t.byteLength;if(t.keyFrame){r.flags.dependsOn=2;r.flags.isNonSyncSample=0}return r};var G=function e(t,i){var r,n,a,s,o,l=i||0,u=[];for(r=0;r<t.length;r++){s=t[r];for(n=0;n<s.length;n++){o=s[n];a=W(o,l);l+=a.size;u.push(a)}}return u};var Y=function e(t){var i,r,n,a,s,o,l=0,u=t.byteLength,c=t.nalCount,d=u+4*c,f=new Uint8Array(d),h=new DataView(f.buffer);for(i=0;i<t.length;i++){a=t[i];for(r=0;r<a.length;r++){s=a[r];for(n=0;n<s.length;n++){o=s[n];h.setUint32(l,o.data.byteLength);l+=4;f.set(o.data,l);l+=o.data.byteLength}}}return f};var K=function e(t,i){var r,n=i||0,a=[];r=W(t,n);a.push(r);return a};var X=function e(t){var i,r,n=0,a=t.byteLength,s=t.length,o=a+4*s,l=new Uint8Array(o),u=new DataView(l.buffer);for(i=0;i<t.length;i++){r=t[i];u.setUint32(n,r.data.byteLength);n+=4;l.set(r.data,n);n+=r.data.byteLength}return l};var Q={groupNalsIntoFrames:H,groupFramesIntoGops:V,extendFirstKeyFrame:q,generateSampleTable:G,concatenateNalData:Y,generateSampleTableForFrame:K,concatenateNalDataForFrame:X};var J=[33,16,5,32,164,27];var Z=[33,65,108,84,1,2,4,8,168,2,4,8,17,191,252];var $=function e(t){var i=[];while(t--){i.push(0)}return i};var ee=function e(t){return Object.keys(t).reduce(function(e,i){e[i]=new Uint8Array(t[i].reduce(function(e,t){return e.concat(t)},[]));return e},{})};var te;var ie=function e(){if(!te){var t={96000:[J,[227,64],$(154),[56]],88200:[J,[231],$(170),[56]],64000:[J,[248,192],$(240),[56]],48000:[J,[255,192],$(268),[55,148,128],$(54),[112]],44100:[J,[255,192],$(268),[55,163,128],$(84),[112]],32000:[J,[255,192],$(268),[55,234],$(226),[112]],24000:[J,[255,192],$(268),[55,255,128],$(268),[111,112],$(126),[224]],16000:[J,[255,192],$(268),[55,255,128],$(268),[111,255],$(269),[223,108],$(195),[1,192]],12000:[Z,$(268),[3,127,248],$(268),[6,255,240],$(268),[13,255,224],$(268),[27,253,128],$(259),[56]],11025:[Z,$(268),[3,127,248],$(268),[6,255,240],$(268),[13,255,224],$(268),[27,255,192],$(268),[55,175,128],$(108),[112]],8000:[Z,$(268),[3,121,16],$(47),[7]]};te=ee(t)}return te};var re=9e4,ne,ae,se,oe,le,ue,ce;ne=function e(t){return t*re};ae=function e(t,i){return t*i};se=function e(t){return t/re};oe=function e(t,i){return t/i};le=function e(t,i){return ne(oe(t,i))};ue=function e(t,i){return ae(se(t),i)};ce=function e(t,i,r){return se(r?t:t-i)};var de={ONE_SECOND_IN_TS:re,secondsToVideoTs:ne,secondsToAudioTs:ae,videoTsToSeconds:se,audioTsToSeconds:oe,audioTsToVideoTs:le,videoTsToAudioTs:ue,metadataTsToSeconds:ce};var fe=function e(t){var i,r,n=0;for(i=0;i<t.length;i++){r=t[i];n+=r.data.byteLength}return n};var he=function e(t,i,r,n){var a,s=0,o=0,l=0,u=0,c,d,f;if(!i.length){return}a=de.audioTsToVideoTs(t.baseMediaDecodeTime,t.samplerate);s=Math.ceil(de.ONE_SECOND_IN_TS/(t.samplerate/1024));if(r&&n){o=a-Math.max(r,n);l=Math.floor(o/s);u=l*s}if(l<1||u>de.ONE_SECOND_IN_TS/2){return}c=ie()[t.samplerate];if(!c){c=i[0].data}for(d=0;d<l;d++){f=i[0];i.splice(0,0,{data:c,dts:f.dts-s,pts:f.pts-s})}t.baseMediaDecodeTime-=Math.floor(de.videoTsToAudioTs(u,t.samplerate));return u};var pe=function e(t,i,r){if(i.minSegmentDts>=r){return t}i.minSegmentDts=Infinity;return t.filter(function(e){if(e.dts>=r){i.minSegmentDts=Math.min(i.minSegmentDts,e.dts);i.minSegmentPts=i.minSegmentDts;return true}return false})};var ve=function e(t){var i,r,n=[];for(i=0;i<t.length;i++){r=t[i];n.push({size:r.data.byteLength,duration:1024})}return n};var me=function e(t){var i,r,n=0,a=new Uint8Array(fe(t));for(i=0;i<t.length;i++){r=t[i];a.set(r.data,n);n+=r.data.byteLength}return a};var ge={prefixWithSilence:he,trimAdtsFramesByEarliestDts:pe,generateSampleTable:ve,concatenateFrameData:me};var ye=de.ONE_SECOND_IN_TS;var _e=function e(t,i){if(typeof i.pts==="number"){if(t.timelineStartInfo.pts===undefined){t.timelineStartInfo.pts=i.pts}
1if(t.minSegmentPts===undefined){t.minSegmentPts=i.pts}else{t.minSegmentPts=Math.min(t.minSegmentPts,i.pts)}if(t.maxSegmentPts===undefined){t.maxSegmentPts=i.pts}else{t.maxSegmentPts=Math.max(t.maxSegmentPts,i.pts)}}if(typeof i.dts==="number"){if(t.timelineStartInfo.dts===undefined){t.timelineStartInfo.dts=i.dts}if(t.minSegmentDts===undefined){t.minSegmentDts=i.dts}else{t.minSegmentDts=Math.min(t.minSegmentDts,i.dts)}if(t.maxSegmentDts===undefined){t.maxSegmentDts=i.dts}else{t.maxSegmentDts=Math.max(t.maxSegmentDts,i.dts)}}};var be=function e(t){delete t.minSegmentDts;delete t.maxSegmentDts;delete t.minSegmentPts;delete t.maxSegmentPts};var Te=function e(t,i){var r,n,a=t.minSegmentDts;if(!i){a-=t.timelineStartInfo.dts}r=t.timelineStartInfo.baseMediaDecodeTime;r+=a;r=Math.max(0,r);if(t.type==="audio"){n=t.samplerate/ye;r*=n;r=Math.floor(r)}return r};var Se={clearDtsInfo:be,calculateTrackBaseMediaDecodeTime:Te,collectDtsInfo:_e};var ke=4,Ee=128;var je=function e(t){var i=0,r={payloadType:-1,payloadSize:0},n=0,a=0;while(i<t.byteLength){if(t[i]===Ee){break}while(t[i]===255){n+=255;i++}n+=t[i++];while(t[i]===255){a+=255;i++}a+=t[i++];if(!r.payload&&n===ke){var s=String.fromCharCode(t[i+3],t[i+4],t[i+5],t[i+6]);if(s==="GA94"){r.payloadType=n;r.payloadSize=a;r.payload=t.subarray(i,i+a);break}else{r.payload=void 0}}i+=a;n=0;a=0}return r};var we=function e(t){if(t.payload[0]!==181){return null}if((t.payload[1]<<8|t.payload[2])!==49){return null}if(String.fromCharCode(t.payload[3],t.payload[4],t.payload[5],t.payload[6])!=="GA94"){return null}if(t.payload[7]!==3){return null}return t.payload.subarray(8,t.payload.length-1)};var Ce=function e(t,i){var r=[],n,a,s,o;if(!(i[0]&64)){return r}a=i[0]&31;for(n=0;n<a;n++){s=n*3;o={type:i[s+2]&3,pts:t};if(i[s+2]&4){o.ccData=i[s+3]<<8|i[s+4];r.push(o)}}return r};var Ie=function e(t){var i=t.byteLength,r=[],n=1,a,s;while(n<i-2){if(t[n]===0&&t[n+1]===0&&t[n+2]===3){r.push(n+2);n+=2}else{n++}}if(r.length===0){return t}a=i-r.length;s=new Uint8Array(a);var o=0;for(n=0;n<a;o++,n++){if(o===r[0]){o++;r.shift()}s[n]=t[o]}return s};var Ae={parseSei:je,parseUserData:we,parseCaptionPackets:Ce,discardEmulationPreventionBytes:Ie,USER_DATA_REGISTERED_ITU_T_T35:ke};var xe=function e(t){t=t||{};e.prototype.init.call(this);this.parse708captions_=typeof t.parse708captions==="boolean"?t.parse708captions:true;this.captionPackets_=[];this.ccStreams_=[new Ve(0,0),new Ve(0,1),new Ve(1,0),new Ve(1,1)];if(this.parse708captions_){this.cc708Stream_=new Ne}this.reset();this.ccStreams_.forEach(function(e){e.on("data",this.trigger.bind(this,"data"));e.on("partialdone",this.trigger.bind(this,"partialdone"));e.on("done",this.trigger.bind(this,"done"))},this);if(this.parse708captions_){this.cc708Stream_.on("data",this.trigger.bind(this,"data"));this.cc708Stream_.on("partialdone",this.trigger.bind(this,"partialdone"));this.cc708Stream_.on("done",this.trigger.bind(this,"done"))}};xe.prototype=new t;xe.prototype.push=function(e){var t,i,r;if(e.nalUnitType!=="sei_rbsp"){return}t=Ae.parseSei(e.escapedRBSP);if(!t.payload){return}if(t.payloadType!==Ae.USER_DATA_REGISTERED_ITU_T_T35){return}i=Ae.parseUserData(t);if(!i){return}if(e.dts<this.latestDts_){this.ignoreNextEqualDts_=true;return}else if(e.dts===this.latestDts_&&this.ignoreNextEqualDts_){this.numSameDts_--;if(!this.numSameDts_){this.ignoreNextEqualDts_=false}return}r=Ae.parseCaptionPackets(e.pts,i);this.captionPackets_=this.captionPackets_.concat(r);if(this.latestDts_!==e.dts){this.numSameDts_=0}this.numSameDts_++;this.latestDts_=e.dts};xe.prototype.flushCCStreams=function(e){this.ccStreams_.forEach(function(t){return e==="flush"?t.flush():t.partialFlush()},this)};xe.prototype.flushStream=function(e){if(!this.captionPackets_.length){this.flushCCStreams(e);return}this.captionPackets_.forEach(function(e,t){e.presortIndex=t});this.captionPackets_.sort(function(e,t){if(e.pts===t.pts){return e.presortIndex-t.presortIndex}return e.pts-t.pts});this.captionPackets_.forEach(function(e){if(e.type<2){this.dispatchCea608Packet(e)}else{this.dispatchCea708Packet(e)}},this);this.captionPackets_.length=0;
1this.flushCCStreams(e)};xe.prototype.flush=function(){return this.flushStream("flush")};xe.prototype.partialFlush=function(){return this.flushStream("partialFlush")};xe.prototype.reset=function(){this.latestDts_=null;this.ignoreNextEqualDts_=false;this.numSameDts_=0;this.activeCea608Channel_=[null,null];this.ccStreams_.forEach(function(e){e.reset()})};xe.prototype.dispatchCea608Packet=function(e){if(this.setsTextOrXDSActive(e)){this.activeCea608Channel_[e.type]=null}else if(this.setsChannel1Active(e)){this.activeCea608Channel_[e.type]=0}else if(this.setsChannel2Active(e)){this.activeCea608Channel_[e.type]=1}if(this.activeCea608Channel_[e.type]===null){return}this.ccStreams_[(e.type<<1)+this.activeCea608Channel_[e.type]].push(e)};xe.prototype.setsChannel1Active=function(e){return(e.ccData&30720)===4096};xe.prototype.setsChannel2Active=function(e){return(e.ccData&30720)===6144};xe.prototype.setsTextOrXDSActive=function(e){return(e.ccData&28928)===256||(e.ccData&30974)===4138||(e.ccData&30974)===6186};xe.prototype.dispatchCea708Packet=function(e){if(this.parse708captions_){this.cc708Stream_.push(e)}};var Pe={127:9834,4128:32,4129:160,4133:8230,4138:352,4140:338,4144:9608,4145:8216,4146:8217,4147:8220,4148:8221,4149:8226,4153:8482,4154:353,4156:339,4157:8480,4159:376,4214:8539,4215:8540,4216:8541,4217:8542,4218:9168,4219:9124,4220:9123,4221:9135,4222:9126,4223:9121,4256:12600};var Oe=function e(t){var i=Pe[t]||t;if(t&4096&&t===i){return""}return String.fromCharCode(i)};var Le=function e(t){return 32<=t&&t<=127||160<=t&&t<=255};var De=function e(t){this.windowNum=t;this.reset()};De.prototype.reset=function(){this.clearText();this.pendingNewLine=false;this.winAttr={};this.penAttr={};this.penLoc={};this.penColor={};this.visible=0;this.rowLock=0;this.columnLock=0;this.priority=0;this.relativePositioning=0;this.anchorVertical=0;this.anchorHorizontal=0;this.anchorPoint=0;this.rowCount=1;this.virtualRowCount=this.rowCount+1;this.columnCount=41;this.windowStyle=0;this.penStyle=0};De.prototype.getText=function(){return this.rows.join("\\n")};De.prototype.clearText=function(){this.rows=[""];this.rowIdx=0};De.prototype.newLine=function(e){if(this.rows.length>=this.virtualRowCount&&typeof this.beforeRowOverflow==="function"){this.beforeRowOverflow(e)}if(this.rows.length>0){this.rows.push("");this.rowIdx++}while(this.rows.length>this.virtualRowCount){this.rows.shift();this.rowIdx--}};De.prototype.isEmpty=function(){if(this.rows.length===0){return true}else if(this.rows.length===1){return this.rows[0]===""}return false};De.prototype.addText=function(e){this.rows[this.rowIdx]+=e};De.prototype.backspace=function(){if(!this.isEmpty()){var e=this.rows[this.rowIdx];this.rows[this.rowIdx]=e.substr(0,e.length-1)}};var Re=function e(t){this.serviceNum=t;this.text="";this.currentWindow=new De(-1);this.windows=[]};Re.prototype.init=function(e,t){this.startPts=e;for(var i=0;i<8;i++){this.windows[i]=new De(i);if(typeof t==="function"){this.windows[i].beforeRowOverflow=t}}};Re.prototype.setCurrentWindow=function(e){this.currentWindow=this.windows[e]};var Ne=function e(){e.prototype.init.call(this);var t=this;this.current708Packet=null;this.services={};this.push=function(e){if(e.type===3){t.new708Packet();t.add708Bytes(e)}else{if(t.current708Packet===null){t.new708Packet()}t.add708Bytes(e)}}};Ne.prototype=new t;Ne.prototype.new708Packet=function(){if(this.current708Packet!==null){this.push708Packet()}this.current708Packet={data:[],ptsVals:[]}};Ne.prototype.add708Bytes=function(e){var t=e.ccData;var i=t>>>8;var r=t&255;this.current708Packet.ptsVals.push(e.pts);this.current708Packet.data.push(i);this.current708Packet.data.push(r)};Ne.prototype.push708Packet=function(){var e=this.current708Packet;var t=e.data;var i=null;var r=null;var n=0;var a=t[n++];e.seq=a>>6;e.sizeCode=a&63;for(;n<t.length;n++){a=t[n++];i=a>>5;r=a&31;if(i===7&&r>0){a=t[n++];i=a}this.pushServiceBlock(i,n,r);if(r>0){n+=r-1}}};Ne.prototype.pushServiceBlock=function(e,t,i){var r;var n=t;var a=this.current708Packet.data;var s=this.servi'),t[1].s.push('width&65280)>>8,t.width&255,0,0,(t.height&65280)>>8,t.height&255,0,0]);return n(w.tkhd,i)};k=function e(t){var i,a,s,o,l,u,c;i=n(w.tfhd,new Uint8Array([0,0,0,58,(t.id&4278190080)>>24,(t.id&16711680)>>16,(t.id&65280)>>8,t.id&255,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0]));u=Math.floor(t.baseMediaDecodeTime/(r+1));c=Math.floor(t.baseMediaDecodeTime%(r+1));a=n(w.tfdt,new Uint8Array([1,0,0,0,u>>>24&255,u>>>16&255,u>>>8&255,u&255,c>>>24&255,c>>>16&255,c>>>8&255,c&255]));l=32+20+8+16+8+8;if(t.type==="audio"){s=j(t,l);return n(w.traf,i,a,s)}o=b(t);s=j(t,o.length+l);return n(w.traf,i,a,s,o)};v=function e(t){t.duration=t.duration||4294967295;return n(w.trak,m(t),g(t))};E=function e(t){var i=new Uint8Array([0,0,0,0,(t.id&4278190080)>>24,(t.id&16711680)>>16,(t.id&65280)>>8,t.id&255,0,0,0,1,0,0,0,0,0,0,0,0,0,1,0,1]);if(t.type!=="video"){i[i.length-1]=0}return n(w.trex,i)};(function(){var e,t,i;i=function e(t,i){var r=0,n=0,a=0,s=0;
1if(t.length){if(t[0].duration!==undefined){r=1}if(t[0].size!==undefined){n=2}if(t[0].flags!==undefined){a=4}if(t[0].compositionTimeOffset!==undefined){s=8}}return[0,0,r|n|a|s,1,(t.length&4278190080)>>>24,(t.length&16711680)>>>16,(t.length&65280)>>>8,t.length&255,(i&4278190080)>>>24,(i&16711680)>>>16,(i&65280)>>>8,i&255]};t=function e(t,r){var a,s,o,l,u,c;l=t.samples||[];r+=8+12+16*l.length;o=i(l,r);s=new Uint8Array(o.length+l.length*16);s.set(o);a=o.length;for(c=0;c<l.length;c++){u=l[c];s[a++]=(u.duration&4278190080)>>>24;s[a++]=(u.duration&16711680)>>>16;s[a++]=(u.duration&65280)>>>8;s[a++]=u.duration&255;s[a++]=(u.size&4278190080)>>>24;s[a++]=(u.size&16711680)>>>16;s[a++]=(u.size&65280)>>>8;s[a++]=u.size&255;s[a++]=u.flags.isLeading<<2|u.flags.dependsOn;s[a++]=u.flags.isDependedOn<<6|u.flags.hasRedundancy<<4|u.flags.paddingValue<<1|u.flags.isNonSyncSample;s[a++]=u.flags.degradationPriority&240<<8;s[a++]=u.flags.degradationPriority&15;s[a++]=(u.compositionTimeOffset&4278190080)>>>24;s[a++]=(u.compositionTimeOffset&16711680)>>>16;s[a++]=(u.compositionTimeOffset&65280)>>>8;s[a++]=u.compositionTimeOffset&255}return n(w.trun,s)};e=function e(t,r){var a,s,o,l,u,c;l=t.samples||[];r+=8+12+8*l.length;o=i(l,r);a=new Uint8Array(o.length+l.length*8);a.set(o);s=o.length;for(c=0;c<l.length;c++){u=l[c];a[s++]=(u.duration&4278190080)>>>24;a[s++]=(u.duration&16711680)>>>16;a[s++]=(u.duration&65280)>>>8;a[s++]=u.duration&255;a[s++]=(u.size&4278190080)>>>24;a[s++]=(u.size&16711680)>>>16;a[s++]=(u.size&65280)>>>8;a[s++]=u.size&255}return n(w.trun,a)};j=function i(r,n){if(r.type==="audio"){return e(r,n)}return t(r,n)}})();var F={ftyp:o,mdat:l,moof:d,moov:f,initSegment:function e(t){var i=o(),r=f(t),n;n=new Uint8Array(i.byteLength+r.byteLength);n.set(i);n.set(r,i.byteLength);return n}};var H=function e(t){var i,r,n=[],a=[];a.byteLength=0;a.nalCount=0;a.duration=0;n.byteLength=0;for(i=0;i<t.length;i++){r=t[i];if(r.nalUnitType==="access_unit_delimiter_rbsp"){if(n.length){n.duration=r.dts-n.dts;a.byteLength+=n.byteLength;a.nalCount+=n.length;a.duration+=n.duration;a.push(n)}n=[r];n.byteLength=r.data.byteLength;n.pts=r.pts;n.dts=r.dts}else{if(r.nalUnitType==="slice_layer_without_partitioning_rbsp_idr"){n.keyFrame=true}n.duration=r.dts-n.dts;n.byteLength+=r.data.byteLength;n.push(r)}}if(a.length&&(!n.duration||n.duration<=0)){n.duration=a[a.length-1].duration}a.byteLength+=n.byteLength;a.nalCount+=n.length;a.duration+=n.duration;a.push(n);return a};var V=function e(t){var i,r,n=[],a=[];n.byteLength=0;n.nalCount=0;n.duration=0;n.pts=t[0].pts;n.dts=t[0].dts;a.byteLength=0;a.nalCount=0;a.duration=0;a.pts=t[0].pts;a.dts=t[0].dts;for(i=0;i<t.length;i++){r=t[i];if(r.keyFrame){if(n.length){a.push(n);a.byteLength+=n.byteLength;a.nalCount+=n.nalCount;a.duration+=n.duration}n=[r];n.nalCount=r.length;n.byteLength=r.byteLength;n.pts=r.pts;n.dts=r.dts;n.duration=r.duration}else{n.duration+=r.duration;n.nalCount+=r.length;n.byteLength+=r.byteLength;n.push(r)}}if(a.length&&n.duration<=0){n.duration=a[a.length-1].duration}a.byteLength+=n.byteLength;a.nalCount+=n.nalCount;a.duration+=n.duration;a.push(n);return a};var q=function e(t){var i;if(!t[0][0].keyFrame&&t.length>1){i=t.shift();t.byteLength-=i.byteLength;t.nalCount-=i.nalCount;t[0][0].dts=i.dts;t[0][0].pts=i.pts;t[0][0].duration+=i.duration}return t};var z=function e(){return{size:0,flags:{isLeading:0,dependsOn:1,isDependedOn:0,hasRedundancy:0,degradationPriority:0,isNonSyncSample:1}}};var W=function e(t,i){var r=z();r.dataOffset=i;r.compositionTimeOffset=t.pts-t.dts;r.duration=t.duration;r.size=4*t.length;r.size+=t.byteLength;if(t.keyFrame){r.flags.dependsOn=2;r.flags.isNonSyncSample=0}return r};var G=function e(t,i){var r,n,a,s,o,l=i||0,u=[];for(r=0;r<t.length;r++){s=t[r];for(n=0;n<s.length;n++){o=s[n];a=W(o,l);l+=a.size;u.push(a)}}return u};var Y=function e(t){var i,r,n,a,s,o,l=0,u=t.byteLength,c=t.nalCount,d=u+4*c,f=new Uint8Array(d),h=new DataView(f.buffer);for(i=0;i<t.length;i++){a=t[i];for(r=0;r<a.length;r++){s=a[r];for(n=0;n<s.length;n++){o=s[n];h.setUint32(l,o.data.byteLength);l+=4;f.set(o.data,l);l+=o.data.byteLength}}}return f};var K=function e(t,i){var r,n=i||0,a=[];r=W(t,n);a.push(r);return a};var X=function e(t){var i,r,n=0,a=t.byteLength,s=t.length,o=a+4*s,l=new Uint8Array(o),u=new DataView(l.buffer);for(i=0;i<t.length;i++){r=t[i];u.setUint32(n,r.data.byteLength);n+=4;l.set(r.data,n);n+=r.data.byteLength}return l};var Q={groupNalsIntoFrames:H,groupFramesIntoGops:V,extendFirstKeyFrame:q,generateSampleTable:G,concatenateNalData:Y,generateSampleTableForFrame:K,concatenateNalDataForFrame:X};var J=[33,16,5,32,164,27];var Z=[33,65,108,84,1,2,4,8,168,2,4,8,17,191,252];var $=function e(t){var i=[];while(t--){i.push(0)}return i};var ee=function e(t){return Object.keys(t).reduce(function(e,i){e[i]=new Uint8Array(t[i].reduce(function(e,t){return e.concat(t)},[]));return e},{})};var te;var ie=function e(){if(!te){var t={96000:[J,[227,64],$(154),[56]],88200:[J,[231],$(170),[56]],64000:[J,[248,192],$(240),[56]],48000:[J,[255,192],$(268),[55,148,128],$(54),[112]],44100:[J,[255,192],$(268),[55,163,128],$(84),[112]],32000:[J,[255,192],$(268),[55,234],$(226),[112]],24000:[J,[255,192],$(268),[55,255,128],$(268),[111,112],$(126),[224]],16000:[J,[255,192],$(268),[55,255,128],$(268),[111,255],$(269),[223,108],$(195),[1,192]],12000:[Z,$(268),[3,127,248],$(268),[6,255,240],$(268),[13,255,224],$(268),[27,253,128],$(259),[56]],11025:[Z,$(268),[3,127,248],$(268),[6,255,240],$(268),[13,255,224],$(268),[27,255,192],$(268),[55,175,128],$(108),[112]],8000:[Z,$(268),[3,121,16],$(47),[7]]};te=ee(t)}return te};var re=9e4,ne,ae,se,oe,le,ue,ce;ne=function e(t){return t*re};ae=function e(t,i){return t*i};se=function e(t){return t/re};oe=function e(t,i){return t/i};le=function e(t,i){return ne(oe(t,i))};ue=function e(t,i){return ae(se(t),i)};ce=function e(t,i,r){return se(r?t:t-i)};var de={ONE_SECOND_IN_TS:re,secondsToVideoTs:ne,secondsToAudioTs:ae,videoTsToSeconds:se,audioTsToSeconds:oe,audioTsToVideoTs:le,videoTsToAudioTs:ue,metadataTsToSeconds:ce};var fe=function e(t){var i,r,n=0;for(i=0;i<t.length;i++){r=t[i];n+=r.data.byteLength}return n};var he=function e(t,i,r,n){var a,s=0,o=0,l=0,u=0,c,d,f;if(!i.length){return}a=de.audioTsToVideoTs(t.baseMediaDecodeTime,t.samplerate);s=Math.ceil(de.ONE_SECOND_IN_TS/(t.samplerate/1024));if(r&&n){o=a-Math.max(r,n);l=Math.floor(o/s);u=l*s}if(l<1||u>de.ONE_SECOND_IN_TS/2){return}c=ie()[t.samplerate];if(!c){c=i[0].data}for(d=0;d<l;d++){f=i[0];i.splice(0,0,{data:c,dts:f.dts-s,pts:f.pts-s})}t.baseMediaDecodeTime-=Math.floor(de.videoTsToAudioTs(u,t.samplerate));return u};var pe=function e(t,i,r){if(i.minSegmentDts>=r){return t}i.minSegmentDts=Infinity;return t.filter(function(e){if(e.dts>=r){i.minSegmentDts=Math.min(i.minSegmentDts,e.dts);i.minSegmentPts=i.minSegmentDts;return true}return false})};var ve=function e(t){var i,r,n=[];for(i=0;i<t.length;i++){r=t[i];n.push({size:r.data.byteLength,duration:1024})}return n};var me=function e(t){var i,r,n=0,a=new Uint8Array(fe(t));for(i=0;i<t.length;i++){r=t[i];a.set(r.data,n);n+=r.data.byteLength}return a};var ge={prefixWithSilence:he,trimAdtsFramesByEarliestDts:pe,generateSampleTable:ve,concatenateFrameData:me};var ye=de.ONE_SECOND_IN_TS;var _e=function e(t,i){if(typeof i.pts==="number"){if(t.timelineStartInfo.pts===undefined){t.timelineStartInfo.pts=i.pts}
1if(t.minSegmentPts===undefined){t.minSegmentPts=i.pts}else{t.minSegmentPts=Math.min(t.minSegmentPts,i.pts)}if(t.maxSegmentPts===undefined){t.maxSegmentPts=i.pts}else{t.maxSegmentPts=Math.max(t.maxSegmentPts,i.pts)}}if(typeof i.dts==="number"){if(t.timelineStartInfo.dts===undefined){t.timelineStartInfo.dts=i.dts}if(t.minSegmentDts===undefined){t.minSegmentDts=i.dts}else{t.minSegmentDts=Math.min(t.minSegmentDts,i.dts)}if(t.maxSegmentDts===undefined){t.maxSegmentDts=i.dts}else{t.maxSegmentDts=Math.max(t.maxSegmentDts,i.dts)}}};var be=function e(t){delete t.minSegmentDts;delete t.maxSegmentDts;delete t.minSegmentPts;delete t.maxSegmentPts};var Te=function e(t,i){var r,n,a=t.minSegmentDts;if(!i){a-=t.timelineStartInfo.dts}r=t.timelineStartInfo.baseMediaDecodeTime;r+=a;r=Math.max(0,r);if(t.type==="audio"){n=t.samplerate/ye;r*=n;r=Math.floor(r)}return r};var Se={clearDtsInfo:be,calculateTrackBaseMediaDecodeTime:Te,collectDtsInfo:_e};var ke=4,Ee=128;var je=function e(t){var i=0,r={payloadType:-1,payloadSize:0},n=0,a=0;while(i<t.byteLength){if(t[i]===Ee){break}while(t[i]===255){n+=255;i++}n+=t[i++];while(t[i]===255){a+=255;i++}a+=t[i++];if(!r.payload&&n===ke){var s=String.fromCharCode(t[i+3],t[i+4],t[i+5],t[i+6]);if(s==="GA94"){r.payloadType=n;r.payloadSize=a;r.payload=t.subarray(i,i+a);break}else{r.payload=void 0}}i+=a;n=0;a=0}return r};var we=function e(t){if(t.payload[0]!==181){return null}if((t.payload[1]<<8|t.payload[2])!==49){return null}if(String.fromCharCode(t.payload[3],t.payload[4],t.payload[5],t.payload[6])!=="GA94"){return null}if(t.payload[7]!==3){return null}return t.payload.subarray(8,t.payload.length-1)};var Ce=function e(t,i){var r=[],n,a,s,o;if(!(i[0]&64)){return r}a=i[0]&31;for(n=0;n<a;n++){s=n*3;o={type:i[s+2]&3,pts:t};if(i[s+2]&4){o.ccData=i[s+3]<<8|i[s+4];r.push(o)}}return r};var Ie=function e(t){var i=t.byteLength,r=[],n=1,a,s;while(n<i-2){if(t[n]===0&&t[n+1]===0&&t[n+2]===3){r.push(n+2);n+=2}else{n++}}if(r.length===0){return t}a=i-r.length;s=new Uint8Array(a);var o=0;for(n=0;n<a;o++,n++){if(o===r[0]){o++;r.shift()}s[n]=t[o]}return s};var Ae={parseSei:je,parseUserData:we,parseCaptionPackets:Ce,discardEmulationPreventionBytes:Ie,USER_DATA_REGISTERED_ITU_T_T35:ke};var xe=function e(t){t=t||{};e.prototype.init.call(this);this.parse708captions_=typeof t.parse708captions==="boolean"?t.parse708captions:true;this.captionPackets_=[];this.ccStreams_=[new Ve(0,0),new Ve(0,1),new Ve(1,0),new Ve(1,1)];if(this.parse708captions_){this.cc708Stream_=new Ne}this.reset();this.ccStreams_.forEach(function(e){e.on("data",this.trigger.bind(this,"data"));e.on("partialdone",this.trigger.bind(this,"partialdone"));e.on("done",this.trigger.bind(this,"done"))},this);if(this.parse708captions_){this.cc708Stream_.on("data",this.trigger.bind(this,"data"));this.cc708Stream_.on("partialdone",this.trigger.bind(this,"partialdone"));this.cc708Stream_.on("done",this.trigger.bind(this,"done"))}};xe.prototype=new t;xe.prototype.push=function(e){var t,i,r;if(e.nalUnitType!=="sei_rbsp"){return}t=Ae.parseSei(e.escapedRBSP);if(!t.payload){return}if(t.payloadType!==Ae.USER_DATA_REGISTERED_ITU_T_T35){return}i=Ae.parseUserData(t);if(!i){return}if(e.dts<this.latestDts_){this.ignoreNextEqualDts_=true;return}else if(e.dts===this.latestDts_&&this.ignoreNextEqualDts_){this.numSameDts_--;if(!this.numSameDts_){this.ignoreNextEqualDts_=false}return}r=Ae.parseCaptionPackets(e.pts,i);this.captionPackets_=this.captionPackets_.concat(r);if(this.latestDts_!==e.dts){this.numSameDts_=0}this.numSameDts_++;this.latestDts_=e.dts};xe.prototype.flushCCStreams=function(e){this.ccStreams_.forEach(function(t){return e==="flush"?t.flush():t.partialFlush()},this)};xe.prototype.flushStream=function(e){if(!this.captionPackets_.length){this.flushCCStreams(e);return}this.captionPackets_.forEach(function(e,t){e.presortIndex=t});this.captionPackets_.sort(function(e,t){if(e.pts===t.pts){return e.presortIndex-t.presortIndex}return e.pts-t.pts});this.captionPackets_.forEach(function(e){if(e.type<2){this.dispatchCea608Packet(e)}else{this.dispatchCea708Packet(e)}},this);this.captionPackets_.length=0;
1this.flushCCStreams(e)};xe.prototype.flush=function(){return this.flushStream("flush")};xe.prototype.partialFlush=function(){return this.flushStream("partialFlush")};xe.prototype.reset=function(){this.latestDts_=null;this.ignoreNextEqualDts_=false;this.numSameDts_=0;this.activeCea608Channel_=[null,null];this.ccStreams_.forEach(function(e){e.reset()})};xe.prototype.dispatchCea608Packet=function(e){if(this.setsTextOrXDSActive(e)){this.activeCea608Channel_[e.type]=null}else if(this.setsChannel1Active(e)){this.activeCea608Channel_[e.type]=0}else if(this.setsChannel2Active(e)){this.activeCea608Channel_[e.type]=1}if(this.activeCea608Channel_[e.type]===null){return}this.ccStreams_[(e.type<<1)+this.activeCea608Channel_[e.type]].push(e)};xe.prototype.setsChannel1Active=function(e){return(e.ccData&30720)===4096};xe.prototype.setsChannel2Active=function(e){return(e.ccData&30720)===6144};xe.prototype.setsTextOrXDSActive=function(e){return(e.ccData&28928)===256||(e.ccData&30974)===4138||(e.ccData&30974)===6186};xe.prototype.dispatchCea708Packet=function(e){if(this.parse708captions_){this.cc708Stream_.push(e)}};var Pe={127:9834,4128:32,4129:160,4133:8230,4138:352,4140:338,4144:9608,4145:8216,4146:8217,4147:8220,4148:8221,4149:8226,4153:8482,4154:353,4156:339,4157:8480,4159:376,4214:8539,4215:8540,4216:8541,4217:8542,4218:9168,4219:9124,4220:9123,4221:9135,4222:9126,4223:9121,4256:12600};var Oe=function e(t){var i=Pe[t]||t;if(t&4096&&t===i){return""}return String.fromCharCode(i)};var Le=function e(t){return 32<=t&&t<=127||160<=t&&t<=255};var De=function e(t){this.windowNum=t;this.reset()};De.prototype.reset=function(){this.clearText();this.pendingNewLine=false;this.winAttr={};this.penAttr={};this.penLoc={};this.penColor={};this.visible=0;this.rowLock=0;this.columnLock=0;this.priority=0;this.relativePositioning=0;this.anchorVertical=0;this.anchorHorizontal=0;this.anchorPoint=0;this.rowCount=1;this.virtualRowCount=this.rowCount+1;this.columnCount=41;this.windowStyle=0;this.penStyle=0};De.prototype.getText=function(){return this.rows.join("\\n")};De.prototype.clearText=function(){this.rows=[""];this.rowIdx=0};De.prototype.newLine=function(e){if(this.rows.length>=this.virtualRowCount&&typeof this.beforeRowOverflow==="function"){this.beforeRowOverflow(e)}if(this.rows.length>0){this.rows.push("");this.rowIdx++}while(this.rows.length>this.virtualRowCount){this.rows.shift();this.rowIdx--}};De.prototype.isEmpty=function(){if(this.rows.length===0){return true}else if(this.rows.length===1){return this.rows[0]===""}return false};De.prototype.addText=function(e){this.rows[this.rowIdx]+=e};De.prototype.backspace=function(){if(!this.isEmpty()){var e=this.rows[this.rowIdx];this.rows[this.rowIdx]=e.substr(0,e.length-1)}};var Re=function e(t){this.serviceNum=t;this.text="";this.currentWindow=new De(-1);this.windows=[]};Re.prototype.init=function(e,t){this.startPts=e;for(var i=0;i<8;i++){this.windows[i]=new De(i);if(typeof t==="function"){this.windows[i].beforeRowOverflow=t}}};Re.prototype.setCurrentWindow=function(e){this.currentWindow=this.windows[e]};var Ne=function e(){e.prototype.init.call(this);var t=this;this.current708Packet=null;this.services={};this.push=function(e){if(e.type===3){t.new708Packet();t.add708Bytes(e)}else{if(t.current708Packet===null){t.new708Packet()}t.add708Bytes(e)}}};Ne.prototype=new t;Ne.prototype.new708Packet=function(){if(this.current708Packet!==null){this.push708Packet()}this.current708Packet={data:[],ptsVals:[]}};Ne.prototype.add708Bytes=function(e){var t=e.ccData;var i=t>>>8;var r=t&255;this.current708Packet.ptsVals.push(e.pts);this.current708Packet.data.push(i);this.current708Packet.data.push(r)};Ne.prototype.push708Packet=function(){var e=this.current708Packet;var t=e.data;var i=null;var r=null;var n=0;var a=t[n++];e.seq=a>>6;e.sizeCode=a&63;for(;n<t.length;n++){a=t[n++];i=a>>5;r=a&31;if(i===7&&r>0){a=t[n++];i=a}this.pushServiceBlock(i,n,r);if(r>0){n+=r-1}}};Ne.prototype.pushServiceBlock=function(e,t,i){var r;v'),t[0].s.push('ces[e];if(!s){s=this.initService(e,n)}for(;n<t+i&&n<a.length;n++){r=a[n];if(Le(r)){n=this.handleText(n,s)}else if(r===16){n=this.extendedCommands(n,s)}else if(128<=r&&r<=135){n=this.setCurrentWindow(n,s)}else if(152<=r&&r<=159){n=this.defineWindow(n,s)}else if(r===136){n=this.clearWindows(n,s)}else if(r===140){n=this.deleteWindows(n,s)}else if(r===137){n=this.displayWindows(n,s)}else if(r===138){n=this.hideWindows(n,s)}else if(r===139){n=this.toggleWindows(n,s)}else if(r===151){n=this.setWindowAttributes(n,s)}else if(r===144){n=this.setPenAttributes(n,s)}else if(r===145){n=this.setPenColor(n,s)}else if(r===146){n=this.setPenLocation(n,s)}else if(r===143){s=this.reset(n,s)}else if(r===8){s.currentWindow.backspace()}else if(r===12){s.currentWindow.clearText()}else if(r===13){s.currentWindow.pendingNewLine=true}else if(r===14){s.currentWindow.clearText()}else if(r===141){n++}else;}};Ne.prototype.extendedCommands=function(e,t){var i=this.current708Packet.data;
1var r=i[++e];if(Le(r)){e=this.handleText(e,t,true)}return e};Ne.prototype.getPts=function(e){return this.current708Packet.ptsVals[Math.floor(e/2)]};Ne.prototype.initService=function(e,t){var i=this;this.services[e]=new Re(e);this.services[e].init(this.getPts(t),function(t){i.flushDisplayed(t,i.services[e])});return this.services[e]};Ne.prototype.handleText=function(e,t,i){var r=this.current708Packet.data;var n=r[e];var a=i?4096:0;var s=Oe(a|n);var o=t.currentWindow;if(o.pendingNewLine&&!o.isEmpty()){o.newLine(this.getPts(e))}o.pendingNewLine=false;o.addText(s);return e};Ne.prototype.setCurrentWindow=function(e,t){var i=this.current708Packet.data;var r=i[e];var n=r&7;t.setCurrentWindow(n);return e};Ne.prototype.defineWindow=function(e,t){var i=this.current708Packet.data;var r=i[e];var n=r&7;t.setCurrentWindow(n);var a=t.currentWindow;r=i[++e];a.visible=(r&32)>>5;a.rowLock=(r&16)>>4;a.columnLock=(r&8)>>3;a.priority=r&7;r=i[++e];a.relativePositioning=(r&128)>>7;a.anchorVertical=r&127;r=i[++e];a.anchorHorizontal=r;r=i[++e];a.anchorPoint=(r&240)>>4;a.rowCount=r&15;r=i[++e];a.columnCount=r&63;r=i[++e];a.windowStyle=(r&56)>>3;a.penStyle=r&7;a.virtualRowCount=a.rowCount+1;return e};Ne.prototype.setWindowAttributes=function(e,t){var i=this.current708Packet.data;var r=i[e];var n=t.currentWindow.winAttr;r=i[++e];n.fillOpacity=(r&192)>>6;n.fillRed=(r&48)>>4;n.fillGreen=(r&12)>>2;n.fillBlue=r&3;r=i[++e];n.borderType=(r&192)>>6;n.borderRed=(r&48)>>4;n.borderGreen=(r&12)>>2;n.borderBlue=r&3;r=i[++e];n.borderType+=(r&128)>>5;n.wordWrap=(r&64)>>6;n.printDirection=(r&48)>>4;n.scrollDirection=(r&12)>>2;n.justify=r&3;r=i[++e];n.effectSpeed=(r&240)>>4;n.effectDirection=(r&12)>>2;n.displayEffect=r&3;return e};Ne.prototype.flushDisplayed=function(e,t){var i=[];for(var r=0;r<8;r++){if(t.windows[r].visible&&!t.windows[r].isEmpty()){i.push(t.windows[r].getText())}}t.endPts=e;t.text=i.join("\\n\\n");this.pushCaption(t);t.startPts=e};Ne.prototype.pushCaption=function(e){if(e.text!==""){this.trigger("data",{startPts:e.startPts,endPts:e.endPts,text:e.text,stream:"cc708_"+e.serviceNum});e.text="";e.startPts=e.endPts}};Ne.prototype.displayWindows=function(e,t){var i=this.current708Packet.data;var r=i[++e];var n=this.getPts(e);this.flushDisplayed(n,t);for(var a=0;a<8;a++){if(r&1<<a){t.windows[a].visible=1}}return e};Ne.prototype.hideWindows=function(e,t){var i=this.current708Packet.data;var r=i[++e];var n=this.getPts(e);this.flushDisplayed(n,t);for(var a=0;a<8;a++){if(r&1<<a){t.windows[a].visible=0}}return e};Ne.prototype.toggleWindows=function(e,t){var i=this.current708Packet.data;var r=i[++e];var n=this.getPts(e);this.flushDisplayed(n,t);for(var a=0;a<8;a++){if(r&1<<a){t.windows[a].visible^=1}}return e};Ne.prototype.clearWindows=function(e,t){var i=this.current708Packet.data;var r=i[++e];var n=this.getPts(e);this.flushDisplayed(n,t);for(var a=0;a<8;a++){if(r&1<<a){t.windows[a].clearText()}}return e};Ne.prototype.deleteWindows=function(e,t){var i=this.current708Packet.data;var r=i[++e];var n=this.getPts(e);this.flushDisplayed(n,t);for(var a=0;a<8;a++){if(r&1<<a){t.windows[a].reset()}}return e};Ne.prototype.setPenAttributes=function(e,t){var i=this.current708Packet.data;var r=i[e];var n=t.currentWindow.penAttr;r=i[++e];n.textTag=(r&240)>>4;n.offset=(r&12)>>2;n.penSize=r&3;r=i[++e];n.italics=(r&128)>>7;n.underline=(r&64)>>6;n.edgeType=(r&56)>>3;n.fontStyle=r&7;return e};Ne.prototype.setPenColor=function(e,t){var i=this.current708Packet.data;var r=i[e];var n=t.currentWindow.penColor;r=i[++e];n.fgOpacity=(r&192)>>6;n.fgRed=(r&48)>>4;n.fgGreen=(r&12)>>2;n.fgBlue=r&3;r=i[++e];n.bgOpacity=(r&192)>>6;n.bgRed=(r&48)>>4;n.bgGreen=(r&12)>>2;n.bgBlue=r&3;r=i[++e];n.edgeRed=(r&48)>>4;n.edgeGreen=(r&12)>>2;n.edgeBlue=r&3;return e};Ne.prototype.setPenLocation=function(e,t){var i=this.current708Packet.data;var r=i[e];var n=t.currentWindow.penLoc;t.currentWindow.pendingNewLine=true;r=i[++e];n.row=r&15;r=i[++e];n.column=r&63;return e};Ne.prototype.reset=function(e,t){var i=this.getPts(e);this.flushDisplayed(i,t);return this.initService(t.serviceNum,e)};var Me={42:225,92:233,94:237,95:243,96:250,123:231,124:247,125:209,126:241,127:9608,304:174,305:176,306:189,307:191,308:8482,309:162,310:163,311:9834,312:224,313:160,314:232,315:226,316:234,317:238,318:244,319:251,544:193,545:201,546:211,547:218,548:220,549:252,550:8216,551:161,552:42,553:39,554:8212,555:169,556:8480,557:8226,558:8220,559:8221,560:192,561:194,562:199,563:200,564:202,565:203,566:235,567:206,568:207,569:239,570:212,571:217,572:249,573:219,574:171,575:187,800:195,801:227,802:205,803:204,804:236,805:210,806:242,807:213,808:245,809:123,810:125,811:92,812:94,813:95,814:124,815:126,816:196,817:228,818:214,819:246,820:223,821:165,822:164,823:9474,824:197,825:229,826:216,827:248,828:9484,829:9488,830:9492,831:9496};var Ue=function e(t){if(t===null){return""}t=Me[t]||t;return String.fromCharCode(t)};var Be=14;var Fe=[4352,4384,4608,4640,5376,5408,5632,5664,5888,5920,4096,4864,4896,5120,5152];var He=function e(){var t=[],i=Be+1;while(i--){t.push("")}return t};var Ve=function e(t,i){e.prototype.init.call(this);this.field_=t||0;this.dataChannel_=i||0;this.name_="CC"+((this.field_<<1|this.dataChannel_)+1);this.setConstants();this.reset();this.push=function(e){var t,i,r,n,a;t=e.ccData&32639;if(t===this.lastControlCode_){this.lastControlCode_=null;return}if((t&61440)===4096){this.lastControlCode_=t}else if(t!==this.PADDING_){this.lastControlCode_=null}r=t>>>8;n=t&255;if(t===this.PADDING_){return}else if(t===this.RESUME_CAPTION_LOADING_){this.mode_="popOn"}else if(t===this.END_OF_CAPTION_){this.mode_="popOn";this.clearFormatting(e.pts);this.flushDisplayed(e.pts);i=this.displayed_;this.displayed_=this.nonDisplayed_;this.nonDisplayed_=i;this.startPts_=e.pts}else if(t===this.ROLL_UP_2_ROWS_){this.rollUpRows_=2;this.setRollUp(e.pts)}else if(t===this.ROLL_UP_3_ROWS_){this.rollUpRows_=3;this.setRollUp(e.pts)}else if(t===this.ROLL_UP_4_ROWS_){this.rollUpRows_=4;this.setRollUp(e.pts)}else if(t===this.CARRIAGE_RETURN_){this.clearFormatting(e.pts);this.flushDisplayed(e.pts);this.shiftRowsUp_();this.startPts_=e.pts}else if(t===this.BACKSPACE_){if(this.mode_==="popOn"){this.nonDisplayed_[this.row_]=this.nonDisplayed_[this.row_].slice(0,-1)}else{this.displayed_[this.row_]=this.displayed_[this.row_].slice(0,-1)}}else if(t===this.ERASE_DISPLAYED_MEMORY_){this.flushDisplayed(e.pts);this.displayed_=He()}else if(t===this.ERASE_NON_DISPLAYED_MEMORY_){this.nonDisplayed_=He()}else if(t===this.RESUME_DIRECT_CAPTIONING_){if(this.mode_!=="paintOn"){this.flushDisplayed(e.pts);this.displayed_=He()}this.mode_="paintOn";this.startPts_=e.pts}else if(this.isSpecialCharacter(r,n)){r=(r&3)<<8;a=Ue(r|n);this[this.mode_](e.pts,a);this.column_++}else if(this.isExtCharacter(r,n)){if(this.mode_==="popOn"){this.nonDisplayed_[this.row_]=this.nonDisplayed_[this.row_].slice(0,-1)}else{this.displayed_[this.row_]=this.displayed_[this.row_].slice(0,-1)}r=(r&3)<<8;a=Ue(r|n);this[this.mode_](e.pts,a);this.column_++}else if(this.isMidRowCode(r,n)){this.clearFormatting(e.pts);this[this.mode_](e.pts," ");this.column_++;if((n&14)===14){this.addFormatting(e.pts,["i"])}if((n&1)===1){this.addFormatting(e.pts,["u"])}}else if(this.isOffsetControlCode(r,n)){this.column_+=n&3}else if(this.isPAC(r,n)){var s=Fe.indexOf(t&7968);
1if(this.mode_==="rollUp"){if(s-this.rollUpRows_+1<0){s=this.rollUpRows_-1}this.setRollUp(e.pts,s)}if(s!==this.row_){this.clearFormatting(e.pts);this.row_=s}if(n&1&&this.formatting_.indexOf("u")===-1){this.addFormatting(e.pts,["u"])}if((t&16)===16){this.column_=((t&14)>>1)*4}if(this.isColorPAC(n)){if((n&14)===14){this.addFormatting(e.pts,["i"])}}}else if(this.isNormalChar(r)){if(n===0){n=null}a=Ue(r);a+=Ue(n);this[this.mode_](e.pts,a);this.column_+=a.length}}};Ve.prototype=new t;Ve.prototype.flushDisplayed=function(e){var t=this.displayed_.map(function(e){try{return e.trim()}catch(e){console.error("Skipping malformed caption.");return""}}).join("\\n").replace(/^\\n+|\\n+$/g,"");if(t.length){this.trigger("data",{startPts:this.startPts_,endPts:e,text:t,stream:this.name_})}};Ve.prototype.reset=function(){this.mode_="popOn";this.topRow_=0;this.startPts_=0;this.displayed_=He();this.nonDisplayed_=He();this.lastControlCode_=null;this.column_=0;this.row_=Be;this.rollUpRows_=2;this.formatting_=[]};Ve.prototype.setConstants=function(){if(this.dataChannel_===0){this.BASE_=16;this.EXT_=17;this.CONTROL_=(20|this.field_)<<8;this.OFFSET_=23}else if(this.dataChannel_===1){this.BASE_=24;this.EXT_=25;this.CONTROL_=(28|this.field_)<<8;this.OFFSET_=31}this.PADDING_=0;this.RESUME_CAPTION_LOADING_=this.CONTROL_|32;this.END_OF_CAPTION_=this.CONTROL_|47;this.ROLL_UP_2_ROWS_=this.CONTROL_|37;this.ROLL_UP_3_ROWS_=this.CONTROL_|38;this.ROLL_UP_4_ROWS_=this.CONTROL_|39;this.CARRIAGE_RETURN_=this.CONTROL_|45;this.RESUME_DIRECT_CAPTIONING_=this.CONTROL_|41;this.BACKSPACE_=this.CONTROL_|33;this.ERASE_DISPLAYED_MEMORY_=this.CONTROL_|44;this.ERASE_NON_DISPLAYED_MEMORY_=this.CONTROL_|46};Ve.prototype.isSpecialCharacter=function(e,t){return e===this.EXT_&&t>=48&&t<=63};Ve.prototype.isExtCharacter=function(e,t){return(e===this.EXT_+1||e===this.EXT_+2)&&t>=32&&t<=63};Ve.prototype.isMidRowCode=function(e,t){return e===this.EXT_&&t>=32&&t<=47};Ve.prototype.isOffsetControlCode=function(e,t){return e===this.OFFSET_&&t>=33&&t<=35};Ve.prototype.isPAC=function(e,t){return e>=this.BASE_&&e<this.BASE_+8&&t>=64&&t<=127};Ve.prototype.isColorPAC=function(e){return e>=64&&e<=79||e>=96&&e<=127};Ve.prototype.isNormalChar=function(e){return e>=32&&e<=127};Ve.prototype.setRollUp=function(e,t){if(this.mode_!=="rollUp"){this.row_=Be;this.mode_="rollUp";this.flushDisplayed(e);this.nonDisplayed_=He();this.displayed_=He()}if(t!==undefined&&t!==this.row_){for(var i=0;i<this.rollUpRows_;i++){this.displayed_[t-i]=this.displayed_[this.row_-i];this.displayed_[this.row_-i]=""}}if(t===undefined){t=this.row_}this.topRow_=t-this.rollUpRows_+1};Ve.prototype.addFormatting=function(e,t){this.formatting_=this.formatting_.concat(t);var i=t.reduce(function(e,t){return e+"<"+t+">"},"");this[this.mode_](e,i)};Ve.prototype.clearFormatting=function(e){if(!this.formatting_.length){return}var t=this.formatting_.reverse().reduce(function(e,t){return e+"</"+t+">"},"");this.formatting_=[];this[this.mode_](e,t)};Ve.prototype.popOn=function(e,t){var i=this.nonDisplayed_[this.row_];i+=t;this.nonDisplayed_[this.row_]=i};Ve.prototype.rollUp=function(e,t){var i=this.displayed_[this.row_];i+=t;this.displayed_[this.row_]=i};Ve.prototype.shiftRowsUp_=function(){var e;for(e=0;e<this.topRow_;e++){this.displayed_[e]=""}for(e=this.row_+1;e<Be+1;e++){this.displayed_[e]=""}for(e=this.topRow_;e<this.row_;e++){this.displayed_[e]=this.displayed_[e+1]}this.displayed_[this.row_]=""};Ve.prototype.paintOn=function(e,t){var i=this.displayed_[this.row_];i+=t;this.displayed_[this.row_]=i};var qe={CaptionStream:xe,Cea608Stream:Ve,Cea708Stream:Ne};var ze={H264_STREAM_TYPE:27,ADTS_STREAM_TYPE:15,METADATA_STREAM_TYPE:21};var We=8589934592;var Ge=4294967296;var Ye="shared";var Ke=function e(t,i){var r=1;if(t>i){r=-1}while(Math.abs(i-t)>Ge){t+=r*We}return t};var Xe=function e(t){var i,r;e.prototype.init.call(this);this.type_=t||Ye;this.push=function(e){if(this.type_!==Ye&&e.type!==this.type_){return}if(r===undefined){r=e.dts}e.dts=Ke(e.dts,r);e.pts=Ke(e.pts,r);i=e.dts;this.trigger("data",e)};this.flush=function(){r=i;this.trigger("done")};this.endTimeline=function(){this.flush();this.trigger("endedtimeline")};this.discontinuity=function(){r=void 0;i=void 0};this.reset=function(){this.discontinuity();this.trigger("reset")}};Xe.prototype=new t;var Qe={TimestampRolloverStream:Xe,handleRollover:Ke};var Je=function e(t,i,r){var n,a="";for(n=i;n<r;n++){a+="%"+("00"+t[n].toString(16)).slice(-2)}return a},Ze=function e(t,i,r){return decodeURIComponent(Je(t,i,r))},$e=function e(t,i,r){return unescape(Je(t,i,r))},et=function e(t){return t[0]<<21|t[1]<<14|t[2]<<7|t[3]},tt={TXXX:function e(t){var i;if(t.data[0]!==3){return}for(i=1;i<t.data.length;i++){if(t.data[i]===0){t.description=Ze(t.data,1,i);t.value=Ze(t.data,i+1,t.data.length).replace(/\\0*$/,"");break}}t.data=t.value},WXXX:function e(t){var i;if(t.data[0]!==3){return}for(i=1;i<t.data.length;i++){if(t.data[i]===0){t.description=Ze(t.data,1,i);t.url=Ze(t.data,i+1,t.data.length);break}}},PRIV:function e(t){var i;for(i=0;i<t.data.length;i++){if(t.data[i]===0){t.owner=$e(t.data,0,i);break}}t.privateData=t.data.subarray(i+1);t.data=t.privateData}},it;it=function e(t){var i={debug:!!(t&&t.debug),descriptor:t&&t.descriptor},r=0,n=[],a=0,s;it.prototype.init.call(this);this.dispatchType=ze.METADATA_STREAM_TYPE.toString(16);if(i.descriptor){for(s=0;s<i.descriptor.length;s++){this.dispatchType+=("00"+i.descriptor[s].toString(16)).slice(-2)}}this.push=function(e){var t,s,o,l,u,c;if(e.type!=="timed-metadata"){return}if(e.dataAlignmentIndicator){a=0;n.length=0}if(n.length===0&&(e.data.length<10||e.data[0]!=="I".charCodeAt(0)||e.data[1]!=="D".charCodeAt(0)||e.data[2]!=="3".charCodeAt(0))){if(i.debug){console.log("Skipping unrecognized metadata packet")}return}n.push(e);a+=e.data.byteLength;if(n.length===1){r=et(e.data.subarray(6,10));r+=10}if(a<r){return}t={data:new Uint8Array(r),frames:[],pts:n[0].pts,dts:n[0].dts};for(u=0;
1u<r;){t.data.set(n[0].data.subarray(0,r-u),u);u+=n[0].data.byteLength;a-=n[0].data.byteLength;n.shift()}s=10;if(t.data[5]&64){s+=4;s+=et(t.data.subarray(10,14));r-=et(t.data.subarray(16,20))}do{o=et(t.data.subarray(s+4,s+8));if(o<1){return console.log("Malformed ID3 frame encountered. Skipping metadata parsing.")}c=String.fromCharCode(t.data[s],t.data[s+1],t.data[s+2],t.data[s+3]);l={id:c,data:t.data.subarray(s+10,s+o+10)};l.key=l.id;if(tt[l.id]){tt[l.id](l);if(l.owner==="com.apple.streaming.transportStreamTimestamp"){var d=l.data,f=(d[3]&1)<<30|d[4]<<22|d[5]<<14|d[6]<<6|d[7]>>>2;f*=4;f+=d[7]&3;l.timeStamp=f;if(t.pts===undefined&&t.dts===undefined){t.pts=l.timeStamp;t.dts=l.timeStamp}this.trigger("timestamp",l)}}t.frames.push(l);s+=10;s+=o}while(s<r);this.trigger("data",t)}};it.prototype=new t;var rt=it;var nt=Qe.TimestampRolloverStream;var at,st,ot;var lt=188,ut=71;at=function e(){var t=new Uint8Array(lt),i=0;at.prototype.init.call(this);this.push=function(e){var r=0,n=lt,a;if(i){a=new Uint8Array(e.byteLength+i);a.set(t.subarray(0,i));a.set(e,i);i=0}else{a=e}while(n<a.byteLength){if(a[r]===ut&&a[n]===ut){this.trigger("data",a.subarray(r,n));r+=lt;n+=lt;continue}r++;n++}if(r<a.byteLength){t.set(a.subarray(r),0);i=a.byteLength-r}};this.flush=function(){if(i===lt&&t[0]===ut){this.trigger("data",t);i=0}this.trigger("done")};this.endTimeline=function(){this.flush();this.trigger("endedtimeline")};this.reset=function(){i=0;this.trigger("reset")}};at.prototype=new t;st=function e(){var t,i,r,n;st.prototype.init.call(this);n=this;this.packetsWaitingForPmt=[];this.programMapTable=undefined;t=function e(t,n){var a=0;if(n.payloadUnitStartIndicator){a+=t[a]+1}if(n.type==="pat"){i(t.subarray(a),n)}else{r(t.subarray(a),n)}};i=function e(t,i){i.section_number=t[7];i.last_section_number=t[8];n.pmtPid=(t[10]&31)<<8|t[11];i.pmtPid=n.pmtPid};r=function e(t,i){var r,a,s,o;if(!(t[5]&1)){return}n.programMapTable={video:null,audio:null,"timed-metadata":{}};r=(t[1]&15)<<8|t[2];a=3+r-4;s=(t[10]&15)<<8|t[11];o=12+s;while(o<a){var l=t[o];var u=(t[o+1]&31)<<8|t[o+2];if(l===ze.H264_STREAM_TYPE&&n.programMapTable.video===null){n.programMapTable.video='),t[1].s.push('ar n=t;var a=this.current708Packet.data;var s=this.services[e];if(!s){s=this.initService(e,n)}for(;n<t+i&&n<a.length;n++){r=a[n];if(Le(r)){n=this.handleText(n,s)}else if(r===16){n=this.extendedCommands(n,s)}else if(128<=r&&r<=135){n=this.setCurrentWindow(n,s)}else if(152<=r&&r<=159){n=this.defineWindow(n,s)}else if(r===136){n=this.clearWindows(n,s)}else if(r===140){n=this.deleteWindows(n,s)}else if(r===137){n=this.displayWindows(n,s)}else if(r===138){n=this.hideWindows(n,s)}else if(r===139){n=this.toggleWindows(n,s)}else if(r===151){n=this.setWindowAttributes(n,s)}else if(r===144){n=this.setPenAttributes(n,s)}else if(r===145){n=this.setPenColor(n,s)}else if(r===146){n=this.setPenLocation(n,s)}else if(r===143){s=this.reset(n,s)}else if(r===8){s.currentWindow.backspace()}else if(r===12){s.currentWindow.clearText()}else if(r===13){s.currentWindow.pendingNewLine=true}else if(r===14){s.currentWindow.clearText()}else if(r===141){n++}else;}};Ne.prototype.extendedCommands=function(e,t){var i=this.current708Packet.data;var r=i[++e];if(Le(r)){e=this.handleText(e,t,true)}return e};Ne.prototype.getPts=function(e){return this.current708Packet.ptsVals[Math.floor(e/2)]};Ne.prototype.initService=function(e,t){var i=this;this.services[e]=new Re(e);this.services[e].init(this.getPts(t),function(t){i.flushDisplayed(t,i.services[e])});return this.services[e]};Ne.prototype.handleText=function(e,t,i){var r=this.current708Packet.data;var n=r[e];var a=i?4096:0;var s=Oe(a|n);var o=t.currentWindow;if(o.pendingNewLine&&!o.isEmpty()){o.newLine(this.getPts(e))}o.pendingNewLine=false;o.addText(s);return e};Ne.prototype.setCurrentWindow=function(e,t){var i=this.current708Packet.data;var r=i[e];var n=r&7;t.setCurrentWindow(n);return e};Ne.prototype.defineWindow=function(e,t){var i=this.current708Packet.data;var r=i[e];var n=r&7;t.setCurrentWindow(n);var a=t.currentWindow;r=i[++e];a.visible=(r&32)>>5;a.rowLock=(r&16)>>4;a.columnLock=(r&8)>>3;a.priority=r&7;r=i[++e];a.relativePositioning=(r&128)>>7;a.anchorVertical=r&127;r=i[++e];a.anchorHorizontal=r;r=i[++e];a.anchorPoint=(r&240)>>4;a.rowCount=r&15;r=i[++e];a.columnCount=r&63;r=i[++e];a.windowStyle=(r&56)>>3;a.penStyle=r&7;a.virtualRowCount=a.rowCount+1;return e};Ne.prototype.setWindowAttributes=function(e,t){var i=this.current708Packet.data;var r=i[e];var n=t.currentWindow.winAttr;r=i[++e];n.fillOpacity=(r&192)>>6;n.fillRed=(r&48)>>4;n.fillGreen=(r&12)>>2;n.fillBlue=r&3;r=i[++e];n.borderType=(r&192)>>6;n.borderRed=(r&48)>>4;n.borderGreen=(r&12)>>2;n.borderBlue=r&3;r=i[++e];n.borderType+=(r&128)>>5;n.wordWrap=(r&64)>>6;n.printDirection=(r&48)>>4;n.scrollDirection=(r&12)>>2;n.justify=r&3;r=i[++e];n.effectSpeed=(r&240)>>4;n.effectDirection=(r&12)>>2;n.displayEffect=r&3;return e};Ne.prototype.flushDisplayed=function(e,t){var i=[];for(var r=0;r<8;r++){if(t.windows[r].visible&&!t.windows[r].isEmpty()){i.push(t.windows[r].getText())}}t.endPts=e;t.text=i.join("\\n\\n");this.pushCaption(t);t.startPts=e};Ne.prototype.pushCaption=function(e){if(e.text!==""){this.trigger("data",{startPts:e.startPts,endPts:e.endPts,text:e.text,stream
1:"cc708_"+e.serviceNum});e.text="";e.startPts=e.endPts}};Ne.prototype.displayWindows=function(e,t){var i=this.current708Packet.data;var r=i[++e];var n=this.getPts(e);this.flushDisplayed(n,t);for(var a=0;a<8;a++){if(r&1<<a){t.windows[a].visible=1}}return e};Ne.prototype.hideWindows=function(e,t){var i=this.current708Packet.data;var r=i[++e];var n=this.getPts(e);this.flushDisplayed(n,t);for(var a=0;a<8;a++){if(r&1<<a){t.windows[a].visible=0}}return e};Ne.prototype.toggleWindows=function(e,t){var i=this.current708Packet.data;var r=i[++e];var n=this.getPts(e);this.flushDisplayed(n,t);for(var a=0;a<8;a++){if(r&1<<a){t.windows[a].visible^=1}}return e};Ne.prototype.clearWindows=function(e,t){var i=this.current708Packet.data;var r=i[++e];var n=this.getPts(e);this.flushDisplayed(n,t);for(var a=0;a<8;a++){if(r&1<<a){t.windows[a].clearText()}}return e};Ne.prototype.deleteWindows=function(e,t){var i=this.current708Packet.data;var r=i[++e];var n=this.getPts(e);this.flushDisplayed(n,t);for(var a=0;a<8;a++){if(r&1<<a){t.windows[a].reset()}}return e};Ne.prototype.setPenAttributes=function(e,t){var i=this.current708Packet.data;var r=i[e];var n=t.currentWindow.penAttr;r=i[++e];n.textTag=(r&240)>>4;n.offset=(r&12)>>2;n.penSize=r&3;r=i[++e];n.italics=(r&128)>>7;n.underline=(r&64)>>6;n.edgeType=(r&56)>>3;n.fontStyle=r&7;return e};Ne.prototype.setPenColor=function(e,t){var i=this.current708Packet.data;var r=i[e];var n=t.currentWindow.penColor;r=i[++e];n.fgOpacity=(r&192)>>6;n.fgRed=(r&48)>>4;n.fgGreen=(r&12)>>2;n.fgBlue=r&3;r=i[++e];n.bgOpacity=(r&192)>>6;n.bgRed=(r&48)>>4;n.bgGreen=(r&12)>>2;n.bgBlue=r&3;r=i[++e];n.edgeRed=(r&48)>>4;n.edgeGreen=(r&12)>>2;n.edgeBlue=r&3;return e};Ne.prototype.setPenLocation=function(e,t){var i=this.current708Packet.data;var r=i[e];var n=t.currentWindow.penLoc;t.currentWindow.pendingNewLine=true;r=i[++e];n.row=r&15;r=i[++e];n.column=r&63;return e};Ne.prototype.reset=function(e,t){var i=this.getPts(e);this.flushDisplayed(i,t);return this.initService(t.serviceNum,e)};var Me={42:225,92:233,94:237,95:243,96:250,123:231,124:247,125:209,126:241,127:9608,304:174,305:176,306:189,307:191,308:8482,309:162,310:163,311:9834,312:224,313:160,314:232,315:226,316:234,317:238,318:244,319:251,544:193,545:201,546:211,547:218,548:220,549:252,550:8216,551:161,552:42,553:39,554:8212,555:169,556:8480,557:8226,558:8220,559:8221,560:192,561:194,562:199,563:200,564:202,565:203,566:235,567:206,568:207,569:239,570:212,571:217,572:249,573:219,574:171,575:187,800:195,801:227,802:205,803:204,804:236,805:210,806:242,807:213,808:245,809:123,810:125,811:92,812:94,813:95,814:124,815:126,816:196,817:228,818:214,819:246,820:223,821:165,822:164,823:9474,824:197,825:229,826:216,827:248,828:9484,829:9488,830:9492,831:9496};var Ue=function e(t){if(t===null){return""}t=Me[t]||t;return String.fromCharCode(t)};var Be=14;var Fe=[4352,4384,4608,4640,5376,5408,5632,5664,5888,5920,4096,4864,4896,5120,5152];var He=function e(){var t=[],i=Be+1;while(i--){t.push("")}return t};var Ve=function e(t,i){e.prototype.init.call(this);this.field_=t||0;this.dataChannel_=i||0;this.name_="CC"+((this.field_<<1|this.dataChannel_)+1);this.setConstants();this.reset();this.push=function(e){var t,i,r,n,a;t=e.ccData&32639;if(t===this.lastControlCode_){this.lastControlCode_=null;return}if((t&61440)===4096){this.lastControlCode_=t}else if(t!==this.PADDING_){this.lastControlCode_=null}r=t>>>8;n=t&255;if(t===this.PADDING_){return}else if(t===this.RESUME_CAPTION_LOADING_){this.mode_="popOn"}else if(t===this.END_OF_CAPTION_){this.mode_="popOn";this.clearFormatting(e.pts);this.flushDisplayed(e.pts);i=this.displayed_;this.displayed_=this.nonDisplayed_;this.nonDisplayed_=i;this.startPts_=e.pts}else if(t===this.ROLL_UP_2_ROWS_){this.rollUpRows_=2;this.setRollUp(e.pts)}else if(t===this.ROLL_UP_3_ROWS_){this.rollUpRows_=3;this.setRollUp(e.pts)}else if(t===this.ROLL_UP_4_ROWS_){this.rollUpRows_=4;this.setRollUp(e.pts)}else if(t===this.CARRIAGE_RETURN_){this.clearFormatting(e.pts);this.flushDisplayed(e.pts);this.shiftRowsUp_();this.startPts_=e.pts}else if(t===this.BACKSPACE_){if(this.mode_==="popOn"){this.nonDisplayed_[this.row_]=this.nonDisplayed_[this.row_].slice(0,-1)}else{this.displayed_[this.row_]=this.displayed_[this.row_].slice(0,-1)}}else if(t===this.ERASE_DISPLAYED_MEMORY_){this.flushDisplayed(e.pts);this.displayed_=He()}else if(t===this.ERASE_NON_DISPLAYED_MEMORY_){this.nonDisplayed_=He()}else if(t===this.RESUME_DIRECT_CAPTIONING_){if(this.mode_!=="paintOn"){this.flushDisplayed(e.pts);this.displayed_=He()}this.mode_="paintOn";this.startPts_=e.pts}else if(this.isSpecialCharacter(r,n)){r=(r&3)<<8;a=Ue(r|n);this[this.mode_](e.pts,a);this.column_++}else if(this.isExtCharacter(r,n)){if(this.mode_==="popOn"){this.nonDisplayed_[this.row_]=this.nonDisplayed_[this.row_].slice(0,-1)}else{this.displayed_[this.row_]=this.displayed_[this.row_].slice(0,-1)}r=(r&3)<<8;a=Ue(r|n);this[this.mode_](e.pts,a);this.column_++}else if(this.isMidRowCode(r,n)){this.clearFormatting(e.pts);this[this.mode_](e.pts," ");this.column_++;if((n&14)===14){this.addFormatting(e.pts,["i"])}if((n&1)===1){this.addFormatting(e.pts,["u"])}}else if(this.isOffsetControlCode(r,n)){this.column_+=n&3}else if(this.isPAC(r,n)){var s=Fe.indexOf(t&7968);
1if(this.mode_==="rollUp"){if(s-this.rollUpRows_+1<0){s=this.rollUpRows_-1}this.setRollUp(e.pts,s)}if(s!==this.row_){this.clearFormatting(e.pts);this.row_=s}if(n&1&&this.formatting_.indexOf("u")===-1){this.addFormatting(e.pts,["u"])}if((t&16)===16){this.column_=((t&14)>>1)*4}if(this.isColorPAC(n)){if((n&14)===14){this.addFormatting(e.pts,["i"])}}}else if(this.isNormalChar(r)){if(n===0){n=null}a=Ue(r);a+=Ue(n);this[this.mode_](e.pts,a);this.column_+=a.length}}};Ve.prototype=new t;Ve.prototype.flushDisplayed=function(e){var t=this.displayed_.map(function(e){try{return e.trim()}catch(e){console.error("Skipping malformed caption.");return""}}).join("\\n").replace(/^\\n+|\\n+$/g,"");if(t.length){this.trigger("data",{startPts:this.startPts_,endPts:e,text:t,stream:this.name_})}};Ve.prototype.reset=function(){this.mode_="popOn";this.topRow_=0;this.startPts_=0;this.displayed_=He();this.nonDisplayed_=He();this.lastControlCode_=null;this.column_=0;this.row_=Be;this.rollUpRows_=2;this.formatting_=[]};Ve.prototype.setConstants=function(){if(this.dataChannel_===0){this.BASE_=16;this.EXT_=17;this.CONTROL_=(20|this.field_)<<8;this.OFFSET_=23}else if(this.dataChannel_===1){this.BASE_=24;this.EXT_=25;this.CONTROL_=(28|this.field_)<<8;this.OFFSET_=31}this.PADDING_=0;this.RESUME_CAPTION_LOADING_=this.CONTROL_|32;this.END_OF_CAPTION_=this.CONTROL_|47;this.ROLL_UP_2_ROWS_=this.CONTROL_|37;this.ROLL_UP_3_ROWS_=this.CONTROL_|38;this.ROLL_UP_4_ROWS_=this.CONTROL_|39;this.CARRIAGE_RETURN_=this.CONTROL_|45;this.RESUME_DIRECT_CAPTIONING_=this.CONTROL_|41;this.BACKSPACE_=this.CONTROL_|33;this.ERASE_DISPLAYED_MEMORY_=this.CONTROL_|44;this.ERASE_NON_DISPLAYED_MEMORY_=this.CONTROL_|46};Ve.prototype.isSpecialCharacter=function(e,t){return e===this.EXT_&&t>=48&&t<=63};Ve.prototype.isExtCharacter=function(e,t){return(e===this.EXT_+1||e===this.EXT_+2)&&t>=32&&t<=63};Ve.prototype.isMidRowCode=function(e,t){return e===this.EXT_&&t>=32&&t<=47};Ve.prototype.isOffsetControlCode=function(e,t){return e===this.OFFSET_&&t>=33&&t<=35};Ve.prototype.isPAC=function(e,t){return e>=this.BASE_&&e<this.BASE_+8&&t>=64&&t<=127};Ve.prototype.isColorPAC=function(e){return e>=64&&e<=79||e>=96&&e<=127};Ve.prototype.isNormalChar=function(e){return e>=32&&e<=127};Ve.prototype.setRollUp=function(e,t){if(this.mode_!=="rollUp"){this.row_=Be;this.mode_="rollUp";this.flushDisplayed(e);this.nonDisplayed_=He();this.displayed_=He()}if(t!==undefined&&t!==this.row_){for(var i=0;i<this.rollUpRows_;i++){this.displayed_[t-i]=this.displayed_[this.row_-i];this.displayed_[this.row_-i]=""}}if(t===undefined){t=this.row_}this.topRow_=t-this.rollUpRows_+1};Ve.prototype.addFormatting=function(e,t){this.formatting_=this.formatting_.concat(t);var i=t.reduce(function(e,t){return e+"<"+t+">"},"");this[this.mode_](e,i)};Ve.prototype.clearFormatting=function(e){if(!this.formatting_.length){return}var t=this.formatting_.reverse().reduce(function(e,t){return e+"</"+t+">"},"");this.formatting_=[];this[this.mode_](e,t)};Ve.prototype.popOn=function(e,t){var i=this.nonDisplayed_[this.row_];i+=t;this.nonDisplayed_[this.row_]=i};Ve.prototype.rollUp=function(e,t){var i=this.displayed_[this.row_];i+=t;this.displayed_[this.row_]=i};Ve.prototype.shiftRowsUp_=function(){var e;for(e=0;e<this.topRow_;e++){this.displayed_[e]=""}for(e=this.row_+1;e<Be+1;e++){this.displayed_[e]=""}for(e=this.topRow_;e<this.row_;e++){this.displayed_[e]=this.displayed_[e+1]}this.displayed_[this.row_]=""};Ve.prototype.paintOn=function(e,t){var i=this.displayed_[this.row_];i+=t;this.displayed_[this.row_]=i};var qe={CaptionStream:xe,Cea608Stream:Ve,Cea708Stream:Ne};var ze={H264_STREAM_TYPE:27,ADTS_STREAM_TYPE:15,METADATA_STREAM_TYPE:21};var We=8589934592;var Ge=4294967296;var Ye="shared";var Ke=function e(t,i){var r=1;if(t>i){r=-1}while(Math.abs(i-t)>Ge){t+=r*We}return t};var Xe=function e(t){var i,r;e.prototype.init.call(this);this.type_=t||Ye;this.push=function(e){if(this.type_!==Ye&&e.type!==this.type_){return}if(r===undefined){r=e.dts}e.dts=Ke(e.dts,r);e.pts=Ke(e.pts,r);i=e.dts;this.trigger("data",e)};this.flush=function(){r=i;this.trigger("done")};this.endTimeline=function(){this.flush();this.trigger("endedtimeline")};this.discontinuity=function(){r=void 0;i=void 0};this.reset=function(){this.discontinuity();this.trigger("reset")}};Xe.prototype=new t;var Qe={TimestampRolloverStream:Xe,handleRollover:Ke};var Je=function e(t,i,r){var n,a="";for(n=i;n<r;n++){a+="%"+("00"+t[n].toString(16)).slice(-2)}return a},Ze=function e(t,i,r){return decodeURIComponent(Je(t,i,r))},$e=function e(t,i,r){return unescape(Je(t,i,r))},et=function e(t){return t[0]<<21|t[1]<<14|t[2]<<7|t[3]},tt={TXXX:function e(t){var i;if(t.data[0]!==3){return}for(i=1;i<t.data.length;i++){if(t.data[i]===0){t.description=Ze(t.data,1,i);t.value=Ze(t.data,i+1,t.data.length).replace(/\\0*$/,"");break}}t.data=t.value},WXXX:function e(t){var i;if(t.data[0]!==3){return}for(i=1;i<t.data.length;i++){if(t.data[i]===0){t.description=Ze(t.data,1,i);t.url=Ze(t.data,i+1,t.data.length);break}}},PRIV:function e(t){var i;for(i=0;i<t.data.length;i++){if(t.data[i]===0){t.owner=$e(t.data,0,i);break}}t.privateData=t.data.subarray(i+1);t.data=t.privateData}},it;it=function e(t){var i={debug:!!(t&&t.debug),descriptor:t&&t.descriptor},r=0,n=[],a=0,s;it.prototype.init.call(this);this.dispatchType=ze.METADATA_STREAM_TYPE.toString(16);if(i.descriptor){for(s=0;s<i.descriptor.length;s++){this.dispatchType+=("00"+i.descriptor[s].toString(16)).slice(-2)}}this.push=function(e){var t,s,o,l,u,c;if(e.type!=="timed-metadata"){return}if(e.dataAlignmentIndicator){a=0;n.length=0}if(n.length===0&&(e.data.length<10||e.data[0]!=="I".charCodeAt(0)||e.data[1]!=="D".charCodeAt(0)||e.data[2]!=="3".charCodeAt(0))){if(i.debug){console.log("Skipping unrecognized metadata packet")}return}n.push(e);a+=e.data.byteLength;if(n.length===1){r=et(e.data.subarray(6,10));r+=10}if(a<r){return}t={data:new Uint8Array(r),frames:[],pts:n[0].pts,dts:n[0].dts};for(u=0;
1u<r;){t.data.set(n[0].data.subarray(0,r-u),u);u+=n[0].data.byteLength;a-=n[0].data.byteLength;n.shift()}s=10;if(t.data[5]&64){s+=4;s+=et(t.data.subarray(10,14));r-=et(t.data.subarray(16,20))}do{o=et(t.data.subarray(s+4,s+8));if(o<1){return console.log("Malformed ID3 frame encountered. Skipping metadata parsing.")}c=String.fromCharCode(t.data[s],t.data[s+1],t.data[s+2],t.data[s+3]);l={id:c,data:t.data.subarray(s+10,s+o+10)};l.key=l.id;if(tt[l.id]){tt[l.id](l);if(l.owner==="com.apple.streaming.transportStreamTimestamp"){var d=l.data,f=(d[3]&1)<<30|d[4]<<22|d[5]<<14|d[6]<<6|d[7]>>>2;f*=4;f+=d[7]&3;l.timeStamp=f;if(t.pts===undefined&&t.dts===undefined){t.pts=l.timeStamp;t.dts=l.timeStamp}this.trigger("timestamp",l)}}t.frames.push(l);s+=10;s+=o}while(s<r);this.trigger("data",t)}};it.prototype=new t;var rt=it;var nt=Qe.TimestampRolloverStream;var at,st,ot;var lt=188,ut=71;at=function e(){var t=new Uint8Array(lt),i=0;at.prototype.init.call(this);this.push=function(e){var r=0,n=lt,a;if(i){a=new Uint8Array(e.byteLength+i);a.set(t.subarray(0,i));a.set(e,i);i=0}else{a=e}while(n<a.byteLength){if(a[r]===ut&&a[n]===ut){this.trigger("data",a.subarray(r,n));r+=lt;n+=lt;continue}r++;n++}if(r<a.byteLength){t.set(a.subarray(r),0);i=a.byteLength-r}};this.flush=function(){if(i===lt&&t[0]===ut){this.trigger("data",t);i=0}this.trigger("done")};this.endTimeline=function(){this.flush();this.trigger("endedtimeline")};this.reset=function(){i=0;this.trigger("reset")}};at.prototype=new t;st=function e(){var t,i,r,n;st.prototype.init.call(this);n=this;this.packetsWaitingForPmt=[];this.programMapTable=undefined;t=function e(t,n){var a=0;if(n.payloadUnitStartIndicator){a+=t[a]+1}if(n.type==="pat"){i(t.subarray(a),n)}else{r(t.subarray(a),n)}};i=function e(t,i){i.section_number=t[7];i.last_section_number=t[8];n.pmtPid=(t[10]&31)<<8|t[11];i.pmtPid=n.pmtPid};r=function e(t,i){var r,a,s,o;if(!(t[5]&1)){return}n.programMapTable={video:null,audio:null,"timed-metadata":{}};r=(t[1]&15)<<8|t[2];a=3+r-4;s=(t[10]&15)<<8|t[11];o=12+s;while(o<a){var l=t[o];var u=(t[o+1]&31)<<8|t[o+2];if(l===ze.H264_STREAM_TYPE&&'),t[0].s.push('u}else if(l===ze.ADTS_STREAM_TYPE&&n.programMapTable.audio===null){n.programMapTable.audio=u}else if(l===ze.METADATA_STREAM_TYPE){n.programMapTable["timed-metadata"][u]=l}o+=((t[o+3]&15)<<8|t[o+4])+5}i.programMapTable=n.programMapTable};this.push=function(e){var i={},r=4;i.payloadUnitStartIndicator=!!(e[1]&64);i.pid=e[1]&31;i.pid<<=8;i.pid|=e[2];if((e[3]&48)>>>4>1){r+=e[r]+1}if(i.pid===0){i.type="pat";t(e.subarray(r),i);this.trigger("data",i)}else if(i.pid===this.pmtPid){i.type="pmt";t(e.subarray(r),i);this.trigger("data",i);while(this.packetsWaitingForPmt.length){this.processPes_.apply(this,this.packetsWaitingForPmt.shift())}}else if(this.programMapTable===undefined){this.packetsWaitingForPmt.push([e,r,i])}else{this.processPes_(e,r,i)}};this.processPes_=function(e,t,i){if(i.pid===this.programMapTable.video){i.streamType=ze.H264_STREAM_TYPE}else if(i.pid===this.programMapTable.audio){i.streamType=ze.ADTS_STREAM_TYPE}else{i.streamType=this.programMapTable["timed-metadata"][i.pid]}i.type="pes";i.data=e.subarray(t);this.trigger("data",i)}};st.prototype=new t;st.STREAM_TYPES={h264:27,adts:15};ot=function e(){var t=this,i={data:[],size:0},r={data:[],size:0},n={data:[],size:0},a,s=function e(t,i){var r;i.packetLength=6+(t[4]<<8|t[5]);i.dataAlignmentIndicator=(t[6]&4)!==0;r=t[7];if(r&192){i.pts=(t[9]&14)<<27|(t[10]&255)<<20|(t[11]&254)<<12|(t[12]&255)<<5|(t[13]&254)>>>3;i.pts*=4;i.pts+=(t[13]&6)>>>1;i.dts=i.pts;if(r&64){i.dts=(t[14]&14)<<27|(t[15]&255)<<20|(t[16]&254)<<12|(t[17]&255)<<5|(t[18]&254)>>>3;i.dts*=4;i.dts+=(t[18]&6)>>>1}}i.data=t.subarray(9+t[8])},o=function e(i,r,n){var a=new Uint8Array(i.size),o={type:r},l=0,u=0,c=false,d;if(!i.data.length||i.size<9){return}o.trackId=i.data[0].pid;for(l=0;l<i.data.length;l++){d=i.data[l];a.set(d.data,u);u+=d.data.byteLength}s(a,o);c=r==="video"||o.packetLength<=i.size;if(n||c){i.size=0;i.data.length=0}if(c){t.trigger("data",o)}};ot.prototype.init.call(this);this.push=function(e){({pat:function e(){},pes:function t(){var a,s;switch(e.streamType){case ze.H264_STREAM_TYPE:a=i;s="video";break;case ze.ADTS_STREAM_TYPE:a=r;s="audio";break;case ze.METADATA_STREAM_TYPE:a=n;s="timed-metadata";break;default:return}if(e.payloadUnitStartIndicator){o(a,s,true)}a.data.push(e);a.size+=e.data.byteLength},pmt:function i(){var r={type:"metadata",tracks:[]};a=e.programMapTable;if(a.video!==null){r.tracks.push({timelineStartInfo:{baseMediaDecodeTime:0},id:+a.video,codec:"avc",type:"video"})}if(a.audio!==null){r.tracks.push({timelineStartInfo:{baseMediaDecodeTime:0},id:+a.audio,codec:"adts",type:"audio"})}t.trigger("data",r)}})[e.type]()};this.reset=function(){i.size=0;i.data.length=0;r.size=0;r.data.length=0;this.trigger("reset")};this.flushStreams_=function(){o(i,"video");o(r,"audio");o(n,"timed-metadata")};this.flush=function(){this.flushStreams_();this.trigger("done")}};ot.prototype=new t;var ct={PAT_PID:0,MP2T_PACKET_LENGTH:lt,TransportPacketStream:at,TransportParseStream
1:st,ElementaryStream:ot,TimestampRolloverStream:nt,CaptionStream:qe.CaptionStream,Cea608Stream:qe.Cea608Stream,Cea708Stream:qe.Cea708Stream,MetadataStream:rt};for(var dt in ze){if(ze.hasOwnProperty(dt)){ct[dt]=ze[dt]}}var ft=ct;var ht=de.ONE_SECOND_IN_TS;var pt;var vt=[96e3,88200,64e3,48e3,44100,32e3,24e3,22050,16e3,12e3,11025,8e3,7350];pt=function e(t){var i,r=0;pt.prototype.init.call(this);this.push=function(e){var n=0,a,s,o,l,u,c;if(!t){r=0}if(e.type!=="audio"){return}if(i){l=i;i=new Uint8Array(l.byteLength+e.data.byteLength);i.set(l);i.set(e.data,l.byteLength)}else{i=e.data}while(n+5<i.length){if(i[n]!==255||(i[n+1]&246)!==240){n++;continue}s=(~i[n+1]&1)*2;a=(i[n+3]&3)<<11|i[n+4]<<3|(i[n+5]&224)>>5;u=((i[n+6]&3)+1)*1024;c=u*ht/vt[(i[n+2]&60)>>>2];o=n+a;if(i.byteLength<o){return}this.trigger("data",{pts:e.pts+r*c,dts:e.dts+r*c,sampleCount:u,audioobjecttype:(i[n+2]>>>6&3)+1,channelcount:(i[n+2]&1)<<2|(i[n+3]&192)>>>6,samplerate:vt[(i[n+2]&60)>>>2],samplingfrequencyindex:(i[n+2]&60)>>>2,samplesize:16,data:i.subarray(n+7+s,o)});r++;if(i.byteLength===o){i=undefined;return}i=i.subarray(o)}};this.flush=function(){r=0;this.trigger("done")};this.reset=function(){i=void 0;this.trigger("reset")};this.endTimeline=function(){i=void 0;this.trigger("endedtimeline")}};pt.prototype=new t;var mt=pt;var gt;gt=function e(t){var i=t.byteLength,r=0,n=0;this.length=function(){return 8*i};this.bitsAvailable=function(){return 8*i+n};this.loadWord=function(){var e=t.byteLength-i,a=new Uint8Array(4),s=Math.min(4,i);if(s===0){throw new Error("no bytes available")}a.set(t.subarray(e,e+s));r=new DataView(a.buffer).getUint32(0);n=s*8;i-=s};this.skipBits=function(e){var t;if(n>e){r<<=e;n-=e}else{e-=n;t=Math.floor(e/8);e-=t*8;i-=t;this.loadWord();r<<=e;n-=e}};this.readBits=function(e){var t=Math.min(n,e),a=r>>>32-t;n-=t;if(n>0){r<<=t}else if(i>0){this.loadWord()}t=e-t;if(t>0){return a<<t|this.readBits(t)}return a};this.skipLeadingZeros=function(){var e;for(e=0;e<n;++e){if((r&2147483648>>>e)!==0){r<<=e;n-=e;return e}}this.loadWord();return e+this.skipLeadingZeros()};this.skipUnsignedExpGolomb=function(){this.skipBits(1+this.skipLeadingZeros())};this.skipExpGolomb=function(){this.skipBits(1+this.skipLeadingZeros())};this.readUnsignedExpGolomb=function(){var e=this.skipLeadingZeros();return this.readBits(e+1)-1};this.readExpGolomb=function(){var e=this.readUnsignedExpGolomb();if(1&e){return 1+e>>>1}return-1*(e>>>1)};this.readBoolean=function(){return this.readBits(1)===1};this.readUnsignedByte=function(){return this.readBits(8)};this.loadWord()};var yt=gt;var _t,bt;var Tt;bt=function e(){var t=0,i,r;bt.prototype.init.call(this);this.push=function(e){var n;if(!r){r=e.data}else{n=new Uint8Array(r.byteLength+e.data.byteLength);n.set(r);n.set(e.data,r.byteLength);r=n}var a=r.byteLength;for(;t<a-3;t++){if(r[t+2]===1){i=t+5;break}}while(i<a){switch(r[i]){case 0:if(r[i-1]!==0){i+=2;break}else if(r[i-2]!==0){i++;break}if(t+3!==i-2){this.trigger("data",r.subarray(t+3,i-2))}do{i++}while(r[i]!==1&&i<a);t=i-2;i+=3;break;case 1:if(r[i-1]!==0||r[i-2]!==0){i+=3;break}this.trigger("data",r.subarray(t+3,i-2));t=i-2;i+=3;break;default:i+=3;break}}r=r.subarray(t);i-=t;t=0};this.reset=function(){r=null;t=0;this.trigger("reset")};this.flush=function(){if(r&&r.byteLength>3){this.trigger("data",r.subarray(t+3))}r=null;t=0;this.trigger("done")};this.endTimeline=function(){this.flush();this.trigger("endedtimeline")}};bt.prototype=new t;Tt={100:true,110:true,122:true,244:true,44:true,83:true,86:true,118:true,128:true,138:true,139:true,134:true};_t=function e(){var t=new bt,i,r,n,a,s,o,l;_t.prototype.init.call(this);i=this;this.push=function(e){if(e.type!=="video"){return}r=e.trackId;n=e.pts;a=e.dts;t.push(e)};t.on("data",function(e){var t={trackId:r,pts:n,dts:a,data:e};switch(e[0]&31){case 5:t.nalUnitType="slice_layer_without_partitioning_rbsp_idr";break;case 6:t.nalUnitType="sei_rbsp";t.escapedRBSP=s(e.subarray(1));break;case 7:t.nalUnitType="seq_parameter_set_rbsp";t.escapedRBSP=s(e.subarray(1));t.config=o(t.escapedRBSP);break;case 8:t.nalUnitType="pic_parameter_set_rbsp";break;case 9:t.nalUnitType="access_unit_delimiter_rbsp";break}i.trigger("data",t)});t.on("done",function(){i.trigger("done")});t.on("partialdone",function(){i.trigger("partialdone")});t.on("reset",function(){i.trigger("reset")});t.on("endedtimeline",function(){i.trigger("endedtimeline")});this.flush=function(){t.flush()};this.partialFlush=function(){t.partialFlush()};this.reset=function(){t.reset()};this.endTimeline=function(){t.endTimeline()};l=function e(t,i){var r=8,n=8,a,s;for(a=0;a<t;a++){if(n!==0){s=i.readExpGolomb();n=(r+s+256)%256}r=n===0?r:n}};s=function e(t){var i=t.byteLength,r=[],n=1,a,s;while(n<i-2){if(t[n]===0&&t[n+1]===0&&t[n+2]===3){r.push(n+2);n+=2}else{n++}}if(r.length===0){return t}a=i-r.length;s=new Uint8Array(a);var o=0;for(n=0;n<a;o++,n++){if(o===r[0]){o++;r.shift()}s[n]=t[o]}return s};o=function e(t){var i=0,r=0,n=0,a=0,s=1,o,u,c,d,f,h,p,v,m,g,y,_,b,T;o=new yt(t);u=o.readUnsignedByte();d=o.readUnsignedByte();c=o.readUnsignedByte();o.skipUnsignedExpGolomb();if(Tt[u]){f=o.readUnsignedExpGolomb();if(f===3){o.skipBits(1)}o.skipUnsignedExpGolomb();o.skipUnsignedExpGolomb();o.skipBits(1);if(o.readBoolean()){y=f!==3?8:12;for(T=0;T<y;T++){if(o.readBoolean()){if(T<6){l(16,o)}else{l(64,o)}}}}}o.skipUnsignedExpGolomb();h=o.readUnsignedExpGolomb();if(h===0){o.readUnsignedExpGolomb()}else if(h===1){o.skipBits(1);o.skipExpGolomb();o.skipExpGolomb();p=o.readUnsignedExpGolomb();for(T=0;T<p;T++){o.skipExpGolomb()}}o.skipUnsignedExpGolomb();o.skipBits(1);v=o.readUnsignedExpGolomb();m=o.readUnsignedExpGolomb();g=o.readBits(1);if(g===0){o.skipBits(1)}o.skipBits(1);if(o.readBoolean()){i=o.readUnsignedExpGolomb();
1r=o.readUnsignedExpGolomb();n=o.readUnsignedExpGolomb();a=o.readUnsignedExpGolomb()}if(o.readBoolean()){if(o.readBoolean()){b=o.readUnsignedByte();switch(b){case 1:_=[1,1];break;case 2:_=[12,11];break;case 3:_=[10,11];break;case 4:_=[16,11];break;case 5:_=[40,33];break;case 6:_=[24,11];break;case 7:_=[20,11];break;case 8:_=[32,11];break;case 9:_=[80,33];break;case 10:_=[18,11];break;case 11:_=[15,11];break;case 12:_=[64,33];break;case 13:_=[160,99];break;case 14:_=[4,3];break;case 15:_=[3,2];break;case 16:_=[2,1];break;case 255:{_=[o.readUnsignedByte()<<8|o.readUnsignedByte(),o.readUnsignedByte()<<8|o.readUnsignedByte()];break}}if(_){s=_[0]/_[1]}}}return{profileIdc:u,levelIdc:c,profileCompatibility:d,width:Math.ceil(((v+1)*16-i*2-r*2)*s),height:(2-g)*(m+1)*16-n*2-a*2,sarRatio:_}}};_t.prototype=new t;var St={H264Stream:_t,NalByteStream:bt};var kt=[96e3,88200,64e3,48e3,44100,32e3,24e3,22050,16e3,12e3,11025,8e3,7350];var Et=function e(t,i){var r=t[i+6]<<21|t[i+7]<<14|t[i+8]<<7|t[i+9],n=t[i+5],a=(n&16)>>4;r=r>=0?r:0;if(a){return r+20}return r+10};var jt=function e(t,i){if(t.length-i<10||t[i]!=="I".charCodeAt(0)||t[i+1]!=="D".charCodeAt(0)||t[i+2]!=="3".charCodeAt(0)){return i}i+=Et(t,i);return e(t,i)};var wt=function e(t){var i=jt(t,0);return t.length>=i+2&&(t[i]&255)===255&&(t[i+1]&240)===240&&(t[i+1]&22)===16};var Ct=function e(t){return t[0]<<21|t[1]<<14|t[2]<<7|t[3]};var It=function e(t,i,r){var n,a="";for(n=i;n<r;n++){a+="%"+("00"+t[n].toString(16)).slice(-2)}return a};var At=function e(t,i,r){return unescape(It(t,i,r))};var xt=function e(t,i){var r=(t[i+5]&224)>>5,n=t[i+4]<<3,a=t[i+3]&3<<11;return a|n|r};var Pt=function e(t,i){if(t[i]==="I".charCodeAt(0)&&t[i+1]==="D".charCodeAt(0)&&t[i+2]==="3".charCodeAt(0)){return"timed-metadata"}else if(t[i]&255===255&&(t[i+1]&240)===240){return"audio"}return null};var Ot=function e(t){var i=0;while(i+5<t.length){if(t[i]!==255||(t[i+1]&246)!==240){i++;continue}return kt[(t[i+2]&60)>>>2]}return null};var Lt=function e(t){var i,r,n,a;i=10;if(t[5]&64){i+=4;i+=Ct(t.subarray(10,14))}do{r=Ct(t.subarray(i+4,i+8));if(r<1){return null}a=String.fromCharCode(t[i],t[i+1],t[i+2],t[i+3]);if(a==="PRIV"){n=t.subarray(i+10,i+r+10);for(var s=0;s<n.byteLength;s++){if(n[s]===0){var o=At(n,0,s);if(o==="com.apple.streaming.transportStreamTimestamp"){var l=n.subarray(s+1);var u=(l[3]&1)<<30|l[4]<<22|l[5]<<14|l[6]<<6|l[7]>>>2;u*=4;u+=l[7]&3;return u}break}}}i+=10;i+=r}while(i<t.byteLength);return null};var Dt={isLikelyAacData:wt,parseId3TagSize:Et,parseAdtsSize:xt,parseType:Pt,parseSampleRate:Ot,parseAacTimestamp:Lt};var Rt;Rt=function e(){var t=new Uint8Array,i=0;Rt.prototype.init.call(this);this.setTimestamp=function(e){i=e};this.push=function(e){var r=0,n=0,a,s,o,l;if(t.length){l=t.length;t=new Uint8Array(e.byteLength+l);t.set(t.subarray(0,l));t.set(e,l)}else{t=e}while(t.length-n>=3){if(t[n]==="I".charCodeAt(0)&&t[n+1]==="D".charCodeAt(0)&&t[n+2]==="3".charCodeAt(0)){if(t.length-n<10){break}r=Dt.parseId3TagSize(t,n);if(n+r>t.length){break}s={type:"timed-metadata",data:t.subarray(n,n+r)};this.trigger("data",s);n+=r;continue}else if((t[n]&255)===255&&(t[n+1]&240)===240){if(t.length-n<7){break}r=Dt.parseAdtsSize(t,n);if(n+r>t.length){break}o={type:"audio",data:t.subarray(n,n+r),pts:i,dts:i};this.trigger("data",o);n+=r;continue}n++}a=t.length-n;if(a>0){t=t.subarray(n)}else{t=new Uint8Array}};this.reset=function(){t=new Uint8Array;this.trigger("reset")};this.endTimeline=function(){t=new Uint8Array;this.trigger("endedtimeline")}};Rt.prototype=new t;var Nt=Rt;var Mt=["audioobjecttype","channelcount","samplerate","samplingfrequencyindex","samplesize"];var Ut=Mt;var Bt=["width","height","profileIdc","levelIdc","profileCompatibility","sarRatio"];var Ft=Bt;var Ht=St.H264Stream;var Vt=Dt.isLikelyAacData;var qt=de.ONE_SECOND_IN_TS;var zt,Wt,Gt,Yt;var Kt=function e(t,i){var r;if(t.length!==i.length){return false}for(r=0;r<t.length;r++){if(t[r]!==i[r]){return false}}return true};var Xt=function e(t,i,r,n,a,s){var o=r-i,l=n-i,u=a-r;return{start:{dts:t,pts:t+o},end:{dts:t+l,pts:t+u},prependedContentDuration:s,baseMediaDecodeTime:t}};Wt=function e(t,i){var r=[],n=0,a=0,s=0,o=Infinity;i=i||{};Wt.prototype.init.call(this);
1this.push=function(e){Se.collectDtsInfo(t,e);if(t){Ut.forEach(function(i){t[i]=e[i]})}r.push(e)};this.setEarliestDts=function(e){a=e};this.setVideoBaseMediaDecodeTime=function(e){o=e};this.setAudioAppendStart=function(e){s=e};this.flush=function(){var e,l,u,c,d,f,h;if(r.length===0){this.trigger("done","AudioSegmentStream");return}e=ge.trimAdtsFramesByEarliestDts(r,t,a);t.baseMediaDecodeTime=Se.calculateTrackBaseMediaDecodeTime(t,i.keepOriginalTimestamps);h=ge.prefixWithSilence(t,e,s,o);t.samples=ge.generateSampleTable(e);u=F.mdat(ge.concatenateFrameData(e));r=[];l=F.moof(n,[t]);c=new Uint8Array(l.byteLength+u.byteLength);n++;c.set(l);c.set(u,l.byteLength);Se.clearDtsInfo(t);d=Math.ceil(qt*1024/t.samplerate);if(e.length){f=e.length*d;this.trigger("segmentTimingInfo",Xt(de.audioTsToVideoTs(t.baseMediaDecodeTime,t.samplerate),e[0].dts,e[0].pts,e[0].dts+f,e[0].pts+f,h||0));this.trigger("timingInfo",{start:e[0].pts,end:e[0].pts+f})}this.trigger("data",{track:t,boxes:c});this.trigger("done","AudioSegmentStream")};this.reset=function(){Se.clearDtsInfo(t);r=[];this.trigger("reset")}};Wt.prototype=new t;zt=function e(t,i){var r=0,n=[],a=[],s,o;i=i||{};zt.prototype.init.call(this);delete t.minPTS;this.gopCache_=[];this.push=function(e){Se.collectDtsInfo(t,e);if(e.nalUnitType==="seq_parameter_set_rbsp"&&!s){s=e.config;t.sps=[e.data];Ft.forEach(function(e){t[e]=s[e]},this)}if(e.nalUnitType==="pic_parameter_set_rbsp"&&!o){o=e.data;t.pps=[e.data]}n.push(e)};this.flush=function(){var e,s,o,l,u,c,d=0,f,h;while(n.length){if(n[0].nalUnitType==="access_unit_delimiter_rbsp"){break}n.shift()}if(n.length===0){this.resetStream_();this.trigger("done","VideoSegmentStream");return}e=Q.groupNalsIntoFrames(n);o=Q.groupFramesIntoGops(e);if(!o[0][0].keyFrame){s=this.getGopForFusion_(n[0],t);if(s){d=s.duration;o.unshift(s);o.byteLength+=s.byteLength;o.nalCount+=s.nalCount;o.pts=s.pts;o.dts=s.dts;o.duration+=s.duration}else{o=Q.extendFirstKeyFrame(o)}}if(a.length){var p;if(i.alignGopsAtEnd){p=this.alignGopsAtEnd_(o)}else{p=this.alignGopsAtStart_(o)}if(!p){this.gopCache_.unshift({gop:o.pop(),pps:t.pps,sps:t.sps});this.gopCache_.length=Math.min(6,this.gopCache_.length);n=[];this.resetStream_();this.trigger("done","VideoSegmentStream");return}Se.clearDtsInfo(t);o=p}Se.collectDtsInfo(t,o);t.samples=Q.generateSampleTable(o);u=F.mdat(Q.concatenateNalData(o));t.baseMediaDecodeTime=Se.calculateTrackBaseMediaDecodeTime(t,i.keepOriginalTimestamps);this.trigger("processedGopsInfo",o.map(function(e){return{pts:e.pts,dts:e.dts,byteLength:e.byteLength}}));f=o[0];h=o[o.length-1];this.trigger("segmentTimingInfo",Xt(t.baseMediaDecodeTime,f.dts,f.pts,h.dts+h.duration,h.pts+h.duration,d));this.trigger("timingInfo",{start:o[0].pts,end:o[o.length-1].pts+o[o.length-1].duration});this.gopCache_.unshift({gop:o.pop(),pps:t.pps,sps:t.sps});this.gopCache_.length=Math.min(6,this.gopCache_.length);n=[];this.trigger("baseMediaDecodeTime",t.baseMediaDecodeTime);this.trigger("timelineStartInfo",t.timelineStartInfo);l=F.moof(r,[t]);c=new Uint8Array(l.byteLength+u.byteLength);r++;c.set(l);c.set(u,l.byteLength);this.trigger("data",{track:t,boxes:c});this.resetStream_();this.trigger("done","VideoSegmentStream")};this.reset=function(){this.resetStream_();n=[];this.gopCache_.length=0;a.length=0;this.trigger("reset")};this.resetStream_=function(){Se.clearDtsInfo(t);s=undefined;o=undefined};this.getGopForFusion_=function(e){var i=45e3,r=1e4,n=Infinity,a,s,o,l,u;for(u=0;u<this.gopCache_.length;u++){l=this.gop'),t[1].s.push('n.programMapTable.video===null){n.programMapTable.video=u}else if(l===ze.ADTS_STREAM_TYPE&&n.programMapTable.audio===null){n.programMapTable.audio=u}else if(l===ze.METADATA_STREAM_TYPE){n.programMapTable["timed-metadata"][u]=l}o+=((t[o+3]&15)<<8|t[o+4])+5}i.programMapTable=n.programMapTable};this.push=function(e){var i={},r=4;i.payloadUnitStartIndicator=!!(e[1]&64);i.pid=e[1]&31;i.pid<<=8;i.pid|=e[2];if((e[3]&48)>>>4>1){r+=e[r]+1}if(i.pid===0){i.type="pat";t(e.subarray(r),i);this.trigger("data",i)}else if(i.pid===this.pmtPid){i.type="pmt";t(e.subarray(r),i);this.trigger("data",i);while(this.packetsWaitingForPmt.length){this.processPes_.apply(this,this.packetsWaitingForPmt.shift())}}else if(this.programMapTable===undefined){this.packetsWaitingForPmt.pu
1sh([e,r,i])}else{this.processPes_(e,r,i)}};this.processPes_=function(e,t,i){if(i.pid===this.programMapTable.video){i.streamType=ze.H264_STREAM_TYPE}else if(i.pid===this.programMapTable.audio){i.streamType=ze.ADTS_STREAM_TYPE}else{i.streamType=this.programMapTable["timed-metadata"][i.pid]}i.type="pes";i.data=e.subarray(t);this.trigger("data",i)}};st.prototype=new t;st.STREAM_TYPES={h264:27,adts:15};ot=function e(){var t=this,i={data:[],size:0},r={data:[],size:0},n={data:[],size:0},a,s=function e(t,i){var r;i.packetLength=6+(t[4]<<8|t[5]);i.dataAlignmentIndicator=(t[6]&4)!==0;r=t[7];if(r&192){i.pts=(t[9]&14)<<27|(t[10]&255)<<20|(t[11]&254)<<12|(t[12]&255)<<5|(t[13]&254)>>>3;i.pts*=4;i.pts+=(t[13]&6)>>>1;i.dts=i.pts;if(r&64){i.dts=(t[14]&14)<<27|(t[15]&255)<<20|(t[16]&254)<<12|(t[17]&255)<<5|(t[18]&254)>>>3;i.dts*=4;i.dts+=(t[18]&6)>>>1}}i.data=t.subarray(9+t[8])},o=function e(i,r,n){var a=new Uint8Array(i.size),o={type:r},l=0,u=0,c=false,d;if(!i.data.length||i.size<9){return}o.trackId=i.data[0].pid;for(l=0;l<i.data.length;l++){d=i.data[l];a.set(d.data,u);u+=d.data.byteLength}s(a,o);c=r==="video"||o.packetLength<=i.size;if(n||c){i.size=0;i.data.length=0}if(c){t.trigger("data",o)}};ot.prototype.init.call(this);this.push=function(e){({pat:function e(){},pes:function t(){var a,s;switch(e.streamType){case ze.H264_STREAM_TYPE:a=i;s="video";break;case ze.ADTS_STREAM_TYPE:a=r;s="audio";break;case ze.METADATA_STREAM_TYPE:a=n;s="timed-metadata";break;default:return}if(e.payloadUnitStartIndicator){o(a,s,true)}a.data.push(e);a.size+=e.data.byteLength},pmt:function i(){var r={type:"metadata",tracks:[]};a=e.programMapTable;if(a.video!==null){r.tracks.push({timelineStartInfo:{baseMediaDecodeTime:0},id:+a.video,codec:"avc",type:"video"})}if(a.audio!==null){r.tracks.push({timelineStartInfo:{baseMediaDecodeTime:0},id:+a.audio,codec:"adts",type:"audio"})}t.trigger("data",r)}})[e.type]()};this.reset=function(){i.size=0;i.data.length=0;r.size=0;r.data.length=0;this.trigger("reset")};this.flushStreams_=function(){o(i,"video");o(r,"audio");o(n,"timed-metadata")};this.flush=function(){this.flushStreams_();this.trigger("done")}};ot.prototype=new t;var ct={PAT_PID:0,MP2T_PACKET_LENGTH:lt,TransportPacketStream:at,TransportParseStream:st,ElementaryStream:ot,TimestampRolloverStream:nt,CaptionStream:qe.CaptionStream,Cea608Stream:qe.Cea608Stream,Cea708Stream:qe.Cea708Stream,MetadataStream:rt};for(var dt in ze){if(ze.hasOwnProperty(dt)){ct[dt]=ze[dt]}}var ft=ct;var ht=de.ONE_SECOND_IN_TS;var pt;var vt=[96e3,88200,64e3,48e3,44100,32e3,24e3,22050,16e3,12e3,11025,8e3,7350];pt=function e(t){var i,r=0;pt.prototype.init.call(this);this.push=function(e){var n=0,a,s,o,l,u,c;if(!t){r=0}if(e.type!=="audio"){return}if(i){l=i;i=new Uint8Array(l.byteLength+e.data.byteLength);i.set(l);i.set(e.data,l.byteLength)}else{i=e.data}while(n+5<i.length){if(i[n]!==255||(i[n+1]&246)!==240){n++;continue}s=(~i[n+1]&1)*2;a=(i[n+3]&3)<<11|i[n+4]<<3|(i[n+5]&224)>>5;u=((i[n+6]&3)+1)*1024;c=u*ht/vt[(i[n+2]&60)>>>2];o=n+a;if(i.byteLength<o){return}this.trigger("data",{pts:e.pts+r*c,dts:e.dts+r*c,sampleCount:u,audioobjecttype:(i[n+2]>>>6&3)+1,channelcount:(i[n+2]&1)<<2|(i[n+3]&192)>>>6,samplerate:vt[(i[n+2]&60)>>>2],samplingfrequencyindex:(i[n+2]&60)>>>2,samplesize:16,data:i.subarray(n+7+s,o)});r++;if(i.byteLength===o){i=undefined;return}i=i.subarray(o)}};this.flush=function(){r=0;this.trigger("done")};this.reset=function(){i=void 0;this.trigger("reset")};this.endTimeline=function(){i=void 0;this.trigger("endedtimeline")}};pt.prototype=new t;var mt=pt;var gt;gt=function e(t){var i=t.byteLength,r=0,n=0;this.length=function(){return 8*i};this.bitsAvailable=function(){return 8*i+n};this.loadWord=function(){var e=t.byteLength-i,a=new Uint8Array(4),s=Math.min(4,i);if(s===0){throw new Error("no bytes available")}a.set(t.subarray(e,e+s));r=new DataView(a.buffer).getUint32(0);n=s*8;i-=s};this.skipBits=function(e){var t;if(n>e){r<<=e;n-=e}else{e-=n;t=Math.floor(e/8);e-=t*8;i-=t;this.loadWord();r<<=e;n-=e}};this.readBits=function(e){var t=Math.min(n,e),a=r>>>32-t;n-=t;if(n>0){r<<=t}else if(i>0){this.loadWord()}t=e-t;if(t>0){return a<<t|this.readBits(t)}return a};this.skipLeadingZeros=function(){var e;
1for(e=0;e<n;++e){if((r&2147483648>>>e)!==0){r<<=e;n-=e;return e}}this.loadWord();return e+this.skipLeadingZeros()};this.skipUnsignedExpGolomb=function(){this.skipBits(1+this.skipLeadingZeros())};this.skipExpGolomb=function(){this.skipBits(1+this.skipLeadingZeros())};this.readUnsignedExpGolomb=function(){var e=this.skipLeadingZeros();return this.readBits(e+1)-1};this.readExpGolomb=function(){var e=this.readUnsignedExpGolomb();if(1&e){return 1+e>>>1}return-1*(e>>>1)};this.readBoolean=function(){return this.readBits(1)===1};this.readUnsignedByte=function(){return this.readBits(8)};this.loadWord()};var yt=gt;var _t,bt;var Tt;bt=function e(){var t=0,i,r;bt.prototype.init.call(this);this.push=function(e){var n;if(!r){r=e.data}else{n=new Uint8Array(r.byteLength+e.data.byteLength);n.set(r);n.set(e.data,r.byteLength);r=n}var a=r.byteLength;for(;t<a-3;t++){if(r[t+2]===1){i=t+5;break}}while(i<a){switch(r[i]){case 0:if(r[i-1]!==0){i+=2;break}else if(r[i-2]!==0){i++;break}if(t+3!==i-2){this.trigger("data",r.subarray(t+3,i-2))}do{i++}while(r[i]!==1&&i<a);t=i-2;i+=3;break;case 1:if(r[i-1]!==0||r[i-2]!==0){i+=3;break}this.trigger("data",r.subarray(t+3,i-2));t=i-2;i+=3;break;default:i+=3;break}}r=r.subarray(t);i-=t;t=0};this.reset=function(){r=null;t=0;this.trigger("reset")};this.flush=function(){if(r&&r.byteLength>3){this.trigger("data",r.subarray(t+3))}r=null;t=0;this.trigger("done")};this.endTimeline=function(){this.flush();this.trigger("endedtimeline")}};bt.prototype=new t;Tt={100:true,110:true,122:true,244:true,44:true,83:true,86:true,118:true,128:true,138:true,139:true,134:true};_t=function e(){var t=new bt,i,r,n,a,s,o,l;_t.prototype.init.call(this);i=this;this.push=function(e){if(e.type!=="video"){return}r=e.trackId;n=e.pts;a=e.dts;t.push(e)};t.on("data",function(e){var t={trackId:r,pts:n,dts:a,data:e};switch(e[0]&31){case 5:t.nalUnitType="slice_layer_without_partitioning_rbsp_idr";break;case 6:t.nalUnitType="sei_rbsp";t.escapedRBSP=s(e.subarray(1));break;case 7:t.nalUnitType="seq_parameter_set_rbsp";t.escapedRBSP=s(e.subarray(1));t.config=o(t.escapedRBSP);break;case 8:t.nalUnitType="pic_parameter_set_rbsp";break;case 9:t.nalUnitType="access_unit_delimiter_rbsp";break}i.trigger("data",t)});t.on("done",function(){i.trigger("done")});t.on("partialdone",function(){i.trigger("partialdone")});t.on("reset",function(){i.trigger("reset")});t.on("endedtimeline",function(){i.trigger("endedtimeline")});this.flush=function(){t.flush()};this.partialFlush=function(){t.partialFlush()};this.reset=function(){t.reset()};this.endTimeline=function(){t.endTimeline()};l=function e(t,i){var r=8,n=8,a,s;for(a=0;a<t;a++){if(n!==0){s=i.readExpGolomb();n=(r+s+256)%256}r=n===0?r:n}};s=function e(t){var i=t.byteLength,r=[],n=1,a,s;while(n<i-2){if(t[n]===0&&t[n+1]===0&&t[n+2]===3){r.push(n+2);n+=2}else{n++}}if(r.length===0){return t}a=i-r.length;s=new Uint8Array(a);var o=0;for(n=0;n<a;o++,n++){if(o===r[0]){o++;r.shift()}s[n]=t[o]}return s};o=function e(t){var i=0,r=0,n=0,a=0,s=1,o,u,c,d,f,h,p,v,m,g,y,_,b,T;o=new yt(t);u=o.readUnsignedByte();d=o.readUnsignedByte();c=o.readUnsignedByte();o.skipUnsignedExpGolomb();if(Tt[u]){f=o.readUnsignedExpGolomb();if(f===3){o.skipBits(1)}o.skipUnsignedExpGolomb();o.skipUnsignedExpGolomb();o.skipBits(1);if(o.readBoolean()){y=f!==3?8:12;for(T=0;T<y;T++){if(o.readBoolean()){if(T<6){l(16,o)}else{l(64,o)}}}}}o.skipUnsignedExpGolomb();h=o.readUnsignedExpGolomb();if(h===0){o.readUnsignedExpGolomb()}else if(h===1){o.skipBits(1);o.skipExpGolomb();o.skipExpGolomb();p=o.readUnsignedExpGolomb();for(T=0;T<p;T++){o.skipExpGolomb()}}o.skipUnsignedExpGolomb();o.skipBits(1);v=o.readUnsignedExpGolomb();m=o.readUnsignedExpGolomb();g=o.readBits(1);if(g===0){o.skipBits(1)}o.skipBits(1);if(o.readBoolean()){i=o.readUnsignedExpGolomb();r=o.readUnsignedExpGolomb();n=o.readUnsignedExpGolomb();a=o.readUnsignedExpGolomb()}if(o.readBoolean()){if(o.readBoolean()){b=o.readUnsignedByte();switch(b){case 1:_=[1,1];break;case 2:_=[12,11];break;case 3:_=[10,11];break;case 4:_=[16,11];break;case 5:_=[40,33];break;case 6:_=[24,11];break;case 7:_=[20,11];break;case 8:_=[32,11];break;case 9:_=[80,33];break;case 10:_=[18,11];break;case 11:_=[15,11];break;case 12:_=[64,33];break;case 13:_=[160,99];break;case 14:_=[4,3];break;case 15:_=[3,2];break;case 16:_=[2,1];break;case 255:{_=[o.readUnsignedByte()<<8|o.readUnsignedByte(),o.readUnsignedByte()<<8|o.readUnsignedByte()];break}}if(_){s=_[0]/_[1]}}}return{profileIdc:u,levelIdc:c,profileCompatibility:d,width:Math.ceil(((v+1)*16-i*2-r*2)*s),height:(2-g)*(m+1)*16-n*2-a*2,sarRatio:_}}};_t.prototype=new t;var St={H264Stream:_t,NalByteStream:bt};var kt=[96e3,88200,64e3,48e3,44100,32e3,24e3,22050,16e3,12e3,11025,8e3,7350];var Et=function e(t,i){var r=t[i+6]<<21|t[i+7]<<14|t[i+8]<<7|t[i+9],n=t[i+5],a=(n&16)>>4;r=r>=0?r:0;if(a){return r+20}return r+10};var jt=function e(t,i){if(t.length-i<10||t[i]!=="I".charCodeAt(0)||t[i+1]!=="D".charCodeAt(0)||t[i+2]!=="3".charCodeAt(0)){return i}i+=Et(t,i);return e(t,i)};var wt=function e(t){var i=jt(t,0);return t.length>=i+2&&(t[i]&255)===255&&(t[i+1]&240)===240&&(t[i+1]&22)===16};var Ct=function e(t){return t[0]<<21|t[1]<<14|t[2]<<7|t[3]};var It=function e(t,i,r){var n,a="";for(n=i;n<r;n++){a+="%"+("00"+t[n].toString(16)).slice(-2)}return a};var At=function e(t,i,r){return unescape(It(t,i,r))};var xt=function e(t,i){var r=(t[i+5]&224)>>5,n=t[i+4]<<3,a=t[i+3]&3<<11;return a|n|r};var Pt=function e(t,i){if(t[i]==="I".charCodeAt(0)&&t[i+1]==="D".charCodeAt(0)&&t[i+2]==="3".charCodeAt(0)){return"timed-metadata"}else if(t[i]&255===255&&(t[i+1]&240)===240){return"audio"}return null};var Ot=function e(t){var i=0;while(i+5<t.length){if(t[i]!==255||(t[i+1]&246)!==240){i++;continue}return kt[(t[i+2]&60)>>>2]}return null};var Lt=function e(t){var i,r,n,a;i=10;if(t[5]&64){i+=4;i+=Ct(t.subarray(10,14))}do{r=Ct(t.subarray(i+4,i+8));if(r<1){return null}a=String.fromCharCode(t[i],t[i+1],t[i+2],t[i+3]);if(a==="PRIV"){n=t.subarray(i+10,i+r+10);for(var s=0;s<n.byteLength;s++){if(n[s]===0){var o=At(n,0,s);if(o==="com.apple.streaming.transportStreamTimestamp"){var l=n.subarray(s+1);var u=(l[3]&1)<<30|l[4]<<22|l[5]<<14|l[6]<<6|l[7]>>>2;u*=4;u+=l[7]&3;return u}break}}}i+=10;i+=r}while(i<t.byteLength);return null};var Dt={isLikelyAacData:wt,parseId3TagSize:Et,parseAdtsSize:xt,parseType:Pt,parseSampleRate:Ot,parseAacTimestamp:Lt};var Rt;Rt=function e(){var t=new Uint8Array,i=0;Rt.prototype.init.call(this);this.setTimestamp=function(e){i=e};this.push=function(e){var r=0,n=0,a,s,o,l;if(t.length){l=t.length;t=new Uint8Array(e.byteLength+l);t.set(t.subarray(0,l));t.set(e,l)}else{t=e}while(t.length-n>=3){if(t[n]==="I".charCodeAt(0)&&t[n+1]==="D".charCodeAt(0)&&t[n+2]==="3".charCodeAt(0)){if(t.length-n<10){break}r=Dt.parseId3TagSize(t,n);if(n+r>t.length){break}s={type:"timed-metadata",data:t.subarray(n,n+r)};this.trigger("data",s);n+=r;
1continue}else if((t[n]&255)===255&&(t[n+1]&240)===240){if(t.length-n<7){break}r=Dt.parseAdtsSize(t,n);if(n+r>t.length){break}o={type:"audio",data:t.subarray(n,n+r),pts:i,dts:i};this.trigger("data",o);n+=r;continue}n++}a=t.length-n;if(a>0){t=t.subarray(n)}else{t=new Uint8Array}};this.reset=function(){t=new Uint8Array;this.trigger("reset")};this.endTimeline=function(){t=new Uint8Array;this.trigger("endedtimeline")}};Rt.prototype=new t;var Nt=Rt;var Mt=["audioobjecttype","channelcount","samplerate","samplingfrequencyindex","samplesize"];var Ut=Mt;var Bt=["width","height","profileIdc","levelIdc","profileCompatibility","sarRatio"];var Ft=Bt;var Ht=St.H264Stream;var Vt=Dt.isLikelyAacData;var qt=de.ONE_SECOND_IN_TS;var zt,Wt,Gt,Yt;var Kt=function e(t,i){var r;if(t.length!==i.length){return false}for(r=0;r<t.length;r++){if(t[r]!==i[r]){return false}}return true};var Xt=function e(t,i,r,n,a,s){var o=r-i,l=n-i,u=a-r;return{start:{dts:t,pts:t+o},end:{dts:t+l,pts:t+u},prependedContentDuration:s,baseMediaDecodeTime:t}};Wt=function e(t,i){var r=[],n=0,a=0,s=0,o=Infinity;i=i||{};Wt.prototype.init.call(this);this.push=function(e){Se.collectDtsInfo(t,e);if(t){Ut.forEach(function(i){t[i]=e[i]})}r.push(e)};this.setEarliestDts=function(e){a=e};this.setVideoBaseMediaDecodeTime=function(e){o=e};this.setAudioAppendStart=function(e){s=e};this.flush=function(){var e,l,u,c,d,f,h;if(r.length===0){this.trigger("done","AudioSegmentStream");return}e=ge.trimAdtsFramesByEarliestDts(r,t,a);t.baseMediaDecodeTime=Se.calculateTrackBaseMediaDecodeTime(t,i.keepOriginalTimestamps);h=ge.prefixWithSilence(t,e,s,o);t.samples=ge.generateSampleTable(e);u=F.mdat(ge.concatenateFrameData(e));r=[];l=F.moof(n,[t]);c=new Uint8Array(l.byteLength+u.byteLength);n++;c.set(l);c.set(u,l.byteLength);Se.clearDtsInfo(t);d=Math.ceil(qt*1024/t.samplerate);if(e.length){f=e.length*d;this.trigger("segmentTimingInfo",Xt(de.audioTsToVideoTs(t.baseMediaDecodeTime,t.samplerate),e[0].dts,e[0].pts,e[0].dts+f,e[0].pts+f,h||0));this.trigger("timingInfo",{start:e[0].pts,end:e[0].pts+f})}this.trigger("data",{track:t,boxes:c});this.trigger("done","AudioSegmentStream")};this.reset=function(){Se.clearDtsInfo(t);r=[];this.trigger("reset")}};Wt.prototype=new t;zt=function e(t,i){var r=0,n=[],a=[],s,o;i=i||{};zt.prototype.init.call(this);delete t.minPTS;this.gopCache_=[];this.push=function(e){Se.collectDtsInfo(t,e);if(e.nalUnitType==="seq_parameter_set_rbsp"&&!s){s=e.config;t.sps=[e.data];Ft.forEach(function(e){t[e]=s[e]},this)}if(e.nalUnitType==="pic_parameter_set_rbsp"&&!o){o=e.data;t.pps=[e.data]}n.push(e)};this.flush=function(){var e,s,o,l,u,c,d=0,f,h;while(n.length){if(n[0].nalUnitType==="access_unit_delimiter_rbsp"){break}n.shift()}if(n.length===0){this.resetStream_();this.trigger("done","VideoSegmentStream");return}e=Q.groupNalsIntoFrames(n);o=Q.groupFramesIntoGops(e);if(!o[0][0].keyFrame){s=this.getGopForFusion_(n[0],t);if(s){d=s.duration;o.unshift(s);o.byteLength+=s.byteLength;o.nalCount+=s.nalCount;o.pts=s.pts;o.dts=s.dts;o.duration+=s.duration}else{o=Q.extendFirstKeyFrame(o)}}if(a.length){var p;if(i.alignGopsAtEnd){p=this.alignGopsAtEnd_(o)}else{p=this.alignGopsAtStart_(o)}if(!p){this.gopCache_.unshift({gop:o.pop(),pps:t.pps,sps:t.sps});this.gopCache_.length=Math.min(6,this.gopCache_.length);n=[];this.resetStream_();this.trigger("done","VideoSegmentStream");return}Se.clearDtsInfo(t);o=p}Se.collectDtsInfo(t,o);t.samples=Q.generateSampleTable(o);u=F.mdat(Q.concatenateNalData(o));t.baseMediaDecodeTime=Se.calculateTrackBaseMediaDecodeTime(t,i.keepOriginalTimestamps);this.trigger("processedGopsInfo",o.map(function(e){return{pts:e.pts,dts:e.dts,byteLength:e.byteLength}}));f=o[0];h=o[o.length-1];this.trigger("segmentTimingInfo",Xt(t.baseMediaDecodeTime,f.dts,f.pts,h.dts+h.duration,h.pts+h.duration,d));this.trigger("timingInfo",{start:o[0].pts,end:o[o.length-1].pts+o[o.length-1].duration});this.gopCache_.unshift({gop:o.pop(),pps:t.pps,sps:t.sps});this.gopCache_.length=Math.min(6,this.gopCache_.length);n=[];this.trigger("baseMediaDecodeTime",t.baseMediaDecodeTime);this.trigger("timelineStartInfo",t.timelineStartInfo);l=F.moof(r,[t]);c=new Uint8Array(l.byteLength+u.byteLength);r++;c.set(l);c.set(u,l.byteLength);this.trigger("data",{track:t,boxes:c});
1this.resetStream_();this.trigger("done","VideoSegmentStream")};this.reset=function(){this.resetStream_();n=[];this.gopCache_.length=0;a.length=0;this.trigger("reset")};this.resetStream_=function(){Se.clearDtsInfo(t);s=undefined;o=undefined};this.getGopForFusion_=function(e){var i=45e3,r=1e4,n=Infinity,a'),t[0].s.push('Cache_[u];o=l.gop;if(!(t.pps&&Kt(t.pps[0],l.pps[0]))||!(t.sps&&Kt(t.sps[0],l.sps[0]))){continue}if(o.dts<t.timelineStartInfo.dts){continue}a=e.dts-o.dts-o.duration;if(a>=-r&&a<=i){if(!s||n>a){s=l;n=a}}}if(s){return s.gop}return null};this.alignGopsAtStart_=function(e){var t,i,r,n,s,o,l,u;s=e.byteLength;o=e.nalCount;l=e.duration;t=i=0;while(t<a.length&&i<e.length){r=a[t];n=e[i];if(r.pts===n.pts){break}if(n.pts>r.pts){t++;continue}i++;s-=n.byteLength;o-=n.nalCount;l-=n.duration}if(i===0){return e}if(i===e.length){return null}u=e.slice(i);u.byteLength=s;u.duration=l;u.nalCount=o;u.pts=u[0].pts;u.dts=u[0].dts;return u};this.alignGopsAtEnd_=function(e){var t,i,r,n,s,o;t=a.length-1;i=e.length-1;s=null;o=false;while(t>=0&&i>=0){r=a[t];n=e[i];if(r.pts===n.pts){o=true;break}if(r.pts>n.pts){t--;continue}if(t===a.length-1){s=i}i--}if(!o&&s===null){return null}var l;if(o){l=i}else{l=s}if(l===0){return e}var u=e.slice(l);var c=u.reduce(function(e,t){e.byteLength+=t.byteLength;e.duration+=t.duration;e.nalCount+=t.nalCount;return e},{byteLength:0,duration:0,nalCount:0});u.byteLength=c.byteLength;u.duration=c.duration;u.nalCount=c.nalCount;u.pts=u[0].pts;u.dts=u[0].dts;return u};this.alignGopsWith=function(e){a=e}};zt.prototype=new t;Yt=function e(t,i){this.numberOfTracks=0;this.metadataStream=i;t=t||{};if(typeof t.remux!=="undefined"){this.remuxTracks=!!t.remux}else{this.remuxTracks=true}if(typeof t.keepOriginalTimestamps==="boolean"){this.keepOriginalTimestamps=t.keepOriginalTimestamps}else{this.keepOriginalTimestamps=false}this.pendingTracks=[];this.videoTrack=null;this.pendingBoxes=[];this.pendingCaptions=[];this.pendingMetadata=[];this.pendingBytes=0;this.emittedTracks=0;Yt.prototype.init.call(this);this.push=function(e){if(e.text){return this.pendingCaptions.push(e)}if(e.frames){return this.pendingMetadata.push(e)}this.pendingTracks.push(e.track);this.pendingBytes+=e.boxes.byteLength;if(e.track.type==="video"){this.videoTrack=e.track;this.pendingBoxes.push(e.boxes)}if(e.track.type==="audio"){this.audioTrack=e.track;this.pendingBoxes.unshift(e.boxes)}}};Yt.prototype=new t;Yt.prototype.flush=function(e){var t=0,i={captions:[],captionStreams:{},metadata:[],info:{}},r,n,a,s=0,o;if(this.pendingTracks.length<this.numberOfTracks){if(e!=="VideoSegmentStream"&&e!=="AudioSegmentStream"){return}else if(this.remuxTracks){return}else if(this.pendingTracks.length===0){this.emittedTracks++;if(this.emittedTracks>=this.numberOfTracks){this.trigger("done");this.emittedTracks=0}return}}if(this.videoTrack){s=this.videoTrack.timelineStartInfo.pts;Ft.forEach(function(e){i.info[e]=this.videoTrack[e]},this)}else if(this.audioTrack){s=this.audioTrack.timelineStartInfo.pts;Ut.forEach(function(e){i.info[e]=this.audioTrack[e]},this)}if(this.videoTrack||this.audioTrack){if(this.pendingTracks.length===1){i.type=this.pendingTracks[0].type}else{i.type="combined"}this.emittedTracks+=this.pendingTracks.length;a=F.initSegment(this.pendingTracks);i.initSegment=new Uint8Array(a.byteLength);i.initSegment.set(a);i.data=new Uint8Array(this.pendingBytes);for(o=0;o<this.pendingBoxes.length;o++){i.data.set(this.pendingBoxes[o],t);t+=this.pendingBoxes[o].byteLength}for(o=0;o<this.pendingCaptions.length;o++){r=this.pendingCaptions[o];r.startTime=de.metadataTsToSeconds(r.startPts,s,this.keepOriginalTimestamps);r.endTime=de.metadataTsToSeconds(r.endPts,s,this.keepOriginalTimestamps);i.captionStreams[r.stream]=true;i.captions.push(r)}for(o=0;o<this.pendingMetadata.length;o++){n=this.pendingMetadata[o];n.cueTime=de.metadataTsToSeconds(n.pts,s,this.keepOriginalTimestamps);i.metadata.push(n)}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);for(o=0;o<i.captions.length;o++){r=i.captions[o];this.trigger("caption",r)}for(o=0;o<i.metadata.length;o++){n=i.metadata[o];this.trigger("id3Frame",n)}}if(this.emittedTracks>=this.numberOfTracks){this.trigger("done");this.emittedTracks=0}};Yt.prototype.setRemux=function(e){this.remuxTracks=e};Gt=function e(t){var i=this,r=true,n,a;Gt.prototype.init.call(this);
1t=t||{};this.baseMediaDecodeTime=t.baseMediaDecodeTime||0;this.transmuxPipeline_={};this.setupAacPipeline=function(){var e={};this.transmuxPipeline_=e;e.type="aac";e.metadataStream=new ft.MetadataStream;e.aacStream=new Nt;e.audioTimestampRolloverStream=new ft.TimestampRolloverStream("audio");e.timedMetadataTimestampRolloverStream=new ft.TimestampRolloverStream("timed-metadata");e.adtsStream=new mt;e.coalesceStream=new Yt(t,e.metadataStream);e.headOfPipeline=e.aacStream;e.aacStream.pipe(e.audioTimestampRolloverStream).pipe(e.adtsStream);e.aacStream.pipe(e.timedMetadataTimestampRolloverStream).pipe(e.metadataStream).pipe(e.coalesceStream);e.metadataStream.on("timestamp",function(t){e.aacStream.setTimestamp(t.timeStamp)});e.aacStream.on("data",function(r){if(r.type!=="timed-metadata"&&r.type!=="audio"||e.audioSegmentStream){return}a=a||{timelineStartInfo:{baseMediaDecodeTime:i.baseMediaDecodeTime},codec:"adts",type:"audio"};e.coalesceStream.numberOfTracks++;e.audioSegmentStream=new Wt(a,t);e.audioSegmentStream.on("timingInfo",i.trigger.bind(i,"audioTimingInfo"));e.adtsStream.pipe(e.audioSegmentStream).pipe(e.coalesceStream);i.trigger("trackinfo",{hasAudio:!!a,hasVideo:!!n})});e.coalesceStream.on("data",this.trigger.bind(this,"data"));e.coalesceStream.on("done",this.trigger.bind(this,"done"))};this.setupTsPipeline=function(){var e={};this.transmuxPipeline_=e;e.type="ts";e.metadataStream=new ft.MetadataStream;e.packetStream=new ft.TransportPacketStream;e.parseStream=new ft.TransportParseStream;e.elementaryStream=new ft.ElementaryStream;e.timestampRolloverStream=new ft.TimestampRolloverStream;e.adtsStream=new mt;e.h264Stream=new Ht;e.captionStream=new ft.CaptionStream(t);e.coalesceStream=new Yt(t,e.metadataStream);e.headOfPipeline=e.packetStream;e.packetStream.pipe(e.parseStream).pipe(e.elementaryStream).pipe(e.timestampRolloverStream);e.timestampRolloverStream.pipe(e.h264Stream);e.timestampRolloverStream.pipe(e.adtsStream);e.timestampRolloverStream.pipe(e.metadataStream).pipe(e.coalesceStream);e.h264Stream.pipe(e.captionStream).pipe(e.coalesceStream);e.elementaryStream.on("data",function(r){var s;if(r.type==="metadata"){s=r.tracks.length;while(s--){if(!n&&r.tracks[s].type==="video"){n=r.tracks[s];n.timelineStartInfo.baseMediaDecodeTime=i.baseMediaDecodeTime}else if(!a&&r.tracks[s].type==="audio"){a=r.tracks[s];a.timelineStartInfo.baseMediaDecodeTime=i.baseMediaDecodeTime}}if(n&&!e.videoSegmentStream){e.coalesceStream.numberOfTracks++;e.videoSegmentStream=new zt(n,t);e.videoSegmentStream.on("timelineStartInfo",function(r){if(a&&!t.keepOriginalTimestamps){a.timelineStartInfo=r;e.audioSegmentStream.setEarliestDts(r.dts-i.baseMediaDecodeTime)}});e.videoSegmentStream.on("processedGopsInfo",i.trigger.bind(i,"gopInfo"));e.videoSegmentStream.on("segmentTimingInfo",i.trigger.bind(i,"videoSegmentTimingInfo"));e.videoSegmentStream.on("baseMediaDecodeTime",function(t){if(a){e.audioSegmentStream.setVideoBaseMediaDecodeTime(t)}});e.videoSegmentStream.on("timingInfo",i.trigger.bind(i,"videoTimingInfo"));e.h264Stream.pipe(e.videoSegmentStream).pipe(e.coalesceStream)}if(a&&!e.audioSegmentStream){e.coalesceStream.numberOfTracks++;e.audioSegmentStream=new Wt(a,t);e.audioSegmentStream.on("timingInfo",i.trigger.bind(i,"audioTimingInfo"));e.audioSegmentStream.on("segmentTimingInfo",i.trigger.bind(i,"audioSegmentTimingInfo"));e.adtsStream.pipe(e.audioSegmentStream).pipe(e.coalesceStream)}i.trigger("trackinfo",{hasAudio:!!a,hasVideo:!!n})}});e.coalesceStream.on("data",this.trigger.bind(this,"data"));e.coalesceStream.on("id3Frame",function(t){t.dispatchType=e.metadataStream.dispatchType;i.trigger("id3Frame",t)});e.coalesceStream.on("caption",this.trigger.bind(this,"caption"));e.coalesceStream.on("done",this.trigger.bind(this,"done"))};this.setBaseMediaDecodeTime=function(e){var i=this.transmuxPipeline_;if(!t.keepOriginalTimestamps){this.baseMediaDecodeTime=e}if(a){a.timelineStartInfo.dts=undefined;a.timelineStartInfo.pts=undefined;Se.clearDtsInfo(a);if(i.audioTimestampRolloverStream){i.audioTimestampRolloverStream.discontinuity()}}if(n){if(i.videoSegmentStream){i.videoSegmentStream.gopCache_=[]}n.timelineStartInfo.dts=undefined;
1n.timelineStartInfo.pts=undefined;Se.clearDtsInfo(n);i.captionStream.reset()}if(i.timestampRolloverStream){i.timestampRolloverStream.discontinuity()}};this.setAudioAppendStart=function(e){if(a){this.transmuxPipeline_.audioSegmentStream.setAudioAppendStart(e)}};this.setRemux=function(e){var i=this.transmuxPipeline_;t.remux=e;if(i&&i.coalesceStream){i.coalesceStream.setRemux(e)}};this.alignGopsWith=function(e){if(n&&this.transmuxPipeline_.videoSegmentStream){this.transmuxPipeline_.videoSegmentStream.alignGopsWith(e)}};this.push=function(e){if(r){var t=Vt(e);if(t&&this.transmuxPipeline_.type!=="aac"){this.setupAacPipeline()}else if(!t&&this.transmuxPipeline_.type!=="ts"){this.setupTsPipeline()}r=false}this.transmuxPipeline_.headOfPipeline.push(e)};this.flush=function(){r=true;this.transmuxPipeline_.headOfPipeline.flush()};this.endTimeline=function(){this.transmuxPipeline_.headOfPipeline.endTimeline()};this.reset=function(){if(this.transmuxPipeline_.headOfPipeline){this.transmuxPipeline_.headOfPipeline.reset()}};this.resetCaptions=function(){if(this.transmuxPipeline_.captionStream){this.transmuxPipeline_.captionStream.reset()}}};Gt.prototype=new t;var Qt={Transmuxer:Gt,VideoSegmentStream:zt,AudioSegmentStream:Wt,AUDIO_PROPERTIES:Ut,VIDEO_PROPERTIES:Ft,generateSegmentTimingInfo:Xt};var Jt={Adts:mt,h264:St};var Zt=de.ONE_SECOND_IN_TS;var $t=function e(t,i){var r=[],n=0,a=0,s=0,o=Infinity,l=null,u=null;i=i||{};e.prototype.init.call(this);this.push=function(e){Se.collectDtsInfo(t,e);if(t){Ut.forEach(function(i){t[i]=e[i]})}r.push(e)};this.setEarliestDts=function(e){a=e};this.setVideoBaseMediaDecodeTime=function(e){o=e};this.setAudioAppendStart=function(e){s=e};this.processFrames_=function(){var e,c,d,f,h;if(r.length===0){return}e=ge.trimAdtsFramesByEarliestDts(r,t,a);if(e.length===0){return}t.baseMediaDecodeTime=Se.calculateTrackBaseMediaDecodeTime(t,i.keepOriginalTimestamps);ge.prefixWithSilence(t,e,s,o);t.samples=ge.generateSampleTable(e);d=F.mdat(ge.concatenateFrameData(e));r=[];c=F.moof(n,[t]);n++;t.initSegment=F.initSegment([t]);f=new Uint8Array(c.byteLength+d.byteLength);f.set(c);f.set(d,c.byteLength);Se.clearDtsInfo(t);if(l===null){u=l=e[0].pts}u+=e.length*(Zt*1024/t.samplerate);h={start:l};this.trigger("timingInfo",h);this.trigger("data",{track:t,boxes:f})};this.flush=function(){this.processFrames_();this.trigger("timingInfo",{start:l,end:u});this.resetTiming_();this.trigger("done","AudioSegmentStream")};this.partialFlush=function(){this.processFrames_();this.trigger("partialdone","AudioSegmentStream")};this.endTimeline=function(){this.flush();this.trigger("endedtimeline","AudioSegmentStream")};this.resetTiming_=function(){Se.clearDtsInfo(t);l=null;u=null};this.reset=function(){this.resetTiming_();r=[];this.trigger("reset")}};$t.prototype=new t;var ei=$t;var ti=function e(t,i){var r=0,n=[],a=[],s,o,l=null,u=null,c,d=true;i=i||{};e.prototype.init.call(this);this.push=function(e){Se.collectDtsInfo(t,e);if(typeof t.timelineStartInfo.dts==="undefined"){t.timelineStartInfo.dts=e.dts}if(e.nalUnitType==="seq_parameter_set_rbsp"&&!s){s=e.config;t.sps=[e.data];Ft.forEach(function(e){t[e]=s[e]},this)}if(e.nalUnitType==="pic_parameter_set_rbsp"&&!o){o=e.data;t.pps=[e.data]}n.push(e)};this.processNals_=function(e){var s;n=a.concat(n);while(n.length){if(n[0].nalUnitType==="access_unit_delimiter_rbsp"){break}n.shift()}if(n.length===0){return}var o=Q.groupNalsIntoFrames(n);if(!o.length){return}a=o[o.length-1];if(e){o.pop();o.duration-=a.duration;o.nalCount-=a.length;o.byteLength-=a.byteLength}if(!o.length){n=[];return}this.trigger("timelineStartInfo",t.timelineStartInfo);if(d){c=Q.groupFramesIntoGops(o);if(!c[0][0].keyFrame){c=Q.extendFirstKeyFrame(c);if(!c[0][0].keyFrame){n=[].concat.apply([],o).concat(a);a=[];return}o=[].concat.apply([],c);o.duration=c.duration}d=false}if(l===null){l=o[0].pts;u=l}u+=o.duration;this.trigger("timingInfo",{start:l,end:u});for(s=0;s<o.length;s++){var f=o[s];t.samples=Q.generateSampleTableForFrame(f);var h=F.mdat(Q.concatenateNalDataForFrame(f));Se.clearDtsInfo(t);Se.collectDtsInfo(t,f);t.baseMediaDecodeTime=Se.calculateTrackBaseMediaDecodeTime(t,i.keepOriginalTimestamps);var p=F.moof(r,[t]);r++;t.initSegment=F.initSegment([t]);var v=new Uint8Array(p.byteLength+h.byteLength);v.set(p);v.set(h,p.byteLength);this.trigger("data",{track:t,boxes:v,sequence:r,videoFrameDts:f.dts,videoFramePts:f.pts})}n=[]};this.resetTimingAndConfig_=function(){s=undefined;o=undefined;l=null;u=null};this.partialFlush=function(){this.processNals_(true);this.trigger("partialdone","VideoSegmentStream")};this.flush=function(){this.processNals_(false);
1this.resetTimingAndConfig_();this.trigger("done","VideoSegmentStream")};this.endTimeline=function(){this.flush();this.trigger("endedtimeline","VideoSegmentStream")};this.reset=function(){this.resetTimingAndConfig_();a=[];n=[];d=true;this.trigger("reset")}};ti.prototype=new t;var ii=ti;var ri=Dt.isLikelyAacData;var ni=function e(i){i.prototype=new t;i.prototype.init.call(i);return i};var ai=function e(t){var i={type:"ts",tracks:{audio:null,video:null},packet:new ft.TransportPacketStream,parse:new ft.TransportParseStream,elementary:new ft.ElementaryStream,timestampRollover:new ft.TimestampRolloverStream,adts:new Jt.Adts,h264:new Jt.h264.H264Stream,captionStream:new ft.CaptionStream(t),metadataStream:new ft.MetadataStream};i.headOfPipeline=i.packet;i.packet.pipe(i.parse).pipe(i.elementary).pipe(i.timestampRollover);i.timestampRollover.pipe(i.h264);i.h264.pipe(i.captionStream);i.timestampRollover.pipe(i.metadataStream);i.timestampRollover.pipe(i.adts);i.elementary.on("data",function(e){if(e.type!=="metadata"){return}for(var r=0;r<e.tracks.length;r++){if(!i.tracks[e.tracks[r].type]){i.tracks[e.tracks[r].type]=e.tracks[r];i.tracks[e.tracks[r].type].timelineStartInfo.baseMediaDecodeTime=t.baseMediaDecodeTime}}if(i.tracks.video&&!i.videoSegmentStream){i.videoSegmentStream=new ii(i.tracks.video,t);i.videoSegmentStream.on("timelineStartInfo",function(e){if(i.tracks.audio&&!t.keepOriginalTimestamps){i.audioSegmentStream.setEarliestDts(e.dts-t.baseMediaDecodeTime)}});i.videoSegmentStream.on("timingInfo",i.trigger.bind(i,"videoTimingInfo"));i.videoSegmentStream.on("data",function(e){i.trigger("data",{type:"video",data:e})});i.videoSegmentStream.on("done",i.trigger.bind(i,"done"));i.videoSegmentStream.on("partialdone",i.trigger.bind(i,"partialdone"));i.videoSegmentStream.on("endedtimeline",i.trigger.bind(i,"endedtimeline"));i.h264.pipe(i.videoSegmentStream)}if(i.tracks.audio&&!i.audioSegmentStream){i.audioSegmentStream=new ei(i.tracks.audio,t);i.audioSegmentStream.on("data",function(e){i.trigger("data",{type:"audio",data:e})});i.audioSegmentStream.on("done",i.trigger.bind(i,"done"));i.audioSegmentStream.on("partialdone",i.trigger.bind(i,"partialdone"));i.audioSegmentStream.on("endedtimeline",i.trigger.bind(i,"endedtimeline"));i.audioSegmentStream.on("timingInfo",i.trigger.bind(i,"audioTimingInfo"));i.adts.pipe(i.audioSegmentStream)}i.trigger("trackinfo",{hasAudio:!!i.tracks.audio,hasVideo:!!i.tracks.video})});i.captionStream.on("data",function(e){var r;if(i.tracks.video){r=i.tracks.video.timelineStartInfo.pts||0}else{r=0}e.startTime=de.metadataTsToSeconds(e.startPts,r,t.keepOriginalTimestamps);e.endTime=de.metadataTsToSeconds(e.endPts,r,t.keepOriginalTimestamps);i.trigger("caption",e)});i=ni(i);i.metadataStream.on("data",i.trigger.bind(i,"id3Frame"));return i};var si=function e(t){var i={type:"aac",tracks:{audio:null},metadataStream:new ft.MetadataStream,aacStream:new Nt,audioRollover:new ft.TimestampRolloverStream("audio"),timedMetadataRollover:new ft.TimestampRolloverStream("timed-metadata"),adtsStream:new mt(true)};i.headOfPipeline=i.aacStream;i.aacStream.pipe(i.audioRollover).pipe(i.adtsStream);i.aacStream.pipe(i.timedMetadataRollover).pipe(i.metadataStream);i.metadataStream.on("timestamp",function(e){i.aacStream.setTimestamp(e.timeStamp)});i.aacStream.on("data",function(e){if(e.type!=="timed-metadata"&&e.type!=="audio"||i.audioSegmentS'),t[1].s.push(',s,o,l,u;for(u=0;u<this.gopCache_.length;u++){l=this.gopCache_[u];o=l.gop;if(!(t.pps&&Kt(t.pps[0],l.pps[0]))||!(t.sps&&Kt(t.sps[0],l.sps[0]))){continue}if(o.dts<t.timelineStartInfo.dts){continue}a=e.dts-o.dts-o.duration;if(a>=-r&&a<=i){if(!s||n>a){s=l;n=a}}}if(s){return s.gop}return null};this.alignGopsAtStart_=function(e){var t,i,r,n,s,o,l,u;s=e.byteLength;o=e.nalCount;l=e.duration;t=i=0;while(t<a.length&&i<e.length){r=a[t];n=e[i];if(r.pts===n.pts){break}if(n.pts>r.pts){t++;continue}i++;s-=n.byteLength;o-=n.nalCount;l-=n.duration}if(i===0){return e}if(i===e.length){return null}u=e.slice(i);u.byteLength=s;u.duration=l;u.nalCount=o;u.pts=u[0].pts;u.dts=u[0].dts;return u};this.alignGopsAtEnd_=function(e){var t,i,r,n,s,o;t=a.length-1;i=e.length-1;s=null;o=false;while(t>=0&&i>=0){r=a[t];n=e[i];if(r.pts===n.pts){o=true;break}if(r.pts>n.pts){t--;continue}if(t===a.length-1){s=i}i--}if(!o&&s===null){return null}var l;if(o){l=i}else{l=s}if(l===0){return e}var u=e.slice(l);var c=u.reduce(function(e,t){e.byteLength+=t.byteLength;e.duration+=t.duration;e.nalCount+=t.nalCount;return e},{byteLength:0,duration:0,nalCount:0});u.byteLength=c.byteLength;u.duration=c.duration;u.nalCount=c.nalCount;u.pts=u[0].pts;u.dts=u[0].dts;return u};this.alignGopsWith=function(e){a=e}};zt.prototype=new t;Yt=function e(t,i){this.numberOfTracks=0;this.metadataStream=i;t=t||{};if(typeof t.remux!=="undefined"){this.remuxTracks=!!t.remux}else{this.remuxTracks=true}if(typeof t.keepOriginalTimestamps==="boolean"){this.keepOriginalTimestamps=t.keepOriginalTimestamps}else{this.keepOriginalTimestamps=false}this.pendingTracks=[];this.videoTrack=null;this.pendingBoxes=[];this.pendingCaptions=[];this.pendingMetadata=[];this.pendingBytes=0;this.emittedTracks=0;Yt.prototype.init.call(this);this.push=function(e){if(e.text){return this.pendingCaptions.push(e)}if(e.frames){return this.pendingMetadata.push(e)}this.pendingTracks.push(e.track);this.pendingBytes+=e.boxes.byteLength;if(e.track.type==="video"){this.videoTrack=e.track;this.pendingBoxes.push(e.boxes)}if(e.track.type==="audio"){this.audioTrack=e.track;this.pendingBoxes.unshift(e.boxes)}}};Yt.prototype=new t;Yt.prototype.flush=function(e){var t=0,i={captions:[],captionStream
1s:{},metadata:[],info:{}},r,n,a,s=0,o;if(this.pendingTracks.length<this.numberOfTracks){if(e!=="VideoSegmentStream"&&e!=="AudioSegmentStream"){return}else if(this.remuxTracks){return}else if(this.pendingTracks.length===0){this.emittedTracks++;if(this.emittedTracks>=this.numberOfTracks){this.trigger("done");this.emittedTracks=0}return}}if(this.videoTrack){s=this.videoTrack.timelineStartInfo.pts;Ft.forEach(function(e){i.info[e]=this.videoTrack[e]},this)}else if(this.audioTrack){s=this.audioTrack.timelineStartInfo.pts;Ut.forEach(function(e){i.info[e]=this.audioTrack[e]},this)}if(this.videoTrack||this.audioTrack){if(this.pendingTracks.length===1){i.type=this.pendingTracks[0].type}else{i.type="combined"}this.emittedTracks+=this.pendingTracks.length;a=F.initSegment(this.pendingTracks);i.initSegment=new Uint8Array(a.byteLength);i.initSegment.set(a);i.data=new Uint8Array(this.pendingBytes);for(o=0;o<this.pendingBoxes.length;o++){i.data.set(this.pendingBoxes[o],t);t+=this.pendingBoxes[o].byteLength}for(o=0;o<this.pendingCaptions.length;o++){r=this.pendingCaptions[o];r.startTime=de.metadataTsToSeconds(r.startPts,s,this.keepOriginalTimestamps);r.endTime=de.metadataTsToSeconds(r.endPts,s,this.keepOriginalTimestamps);i.captionStreams[r.stream]=true;i.captions.push(r)}for(o=0;o<this.pendingMetadata.length;o++){n=this.pendingMetadata[o];n.cueTime=de.metadataTsToSeconds(n.pts,s,this.keepOriginalTimestamps);i.metadata.push(n)}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);for(o=0;o<i.captions.length;o++){r=i.captions[o];this.trigger("caption",r)}for(o=0;o<i.metadata.length;o++){n=i.metadata[o];this.trigger("id3Frame",n)}}if(this.emittedTracks>=this.numberOfTracks){this.trigger("done");this.emittedTracks=0}};Yt.prototype.setRemux=function(e){this.remuxTracks=e};Gt=function e(t){var i=this,r=true,n,a;Gt.prototype.init.call(this);t=t||{};this.baseMediaDecodeTime=t.baseMediaDecodeTime||0;this.transmuxPipeline_={};this.setupAacPipeline=function(){var e={};this.transmuxPipeline_=e;e.type="aac";e.metadataStream=new ft.MetadataStream;e.aacStream=new Nt;e.audioTimestampRolloverStream=new ft.TimestampRolloverStream("audio");e.timedMetadataTimestampRolloverStream=new ft.TimestampRolloverStream("timed-metadata");e.adtsStream=new mt;e.coalesceStream=new Yt(t,e.metadataStream);e.headOfPipeline=e.aacStream;e.aacStream.pipe(e.audioTimestampRolloverStream).pipe(e.adtsStream);e.aacStream.pipe(e.timedMetadataTimestampRolloverStream).pipe(e.metadataStream).pipe(e.coalesceStream);e.metadataStream.on("timestamp",function(t){e.aacStream.setTimestamp(t.timeStamp)});e.aacStream.on("data",function(r){if(r.type!=="timed-metadata"&&r.type!=="audio"||e.audioSegmentStream){return}a=a||{timelineStartInfo:{baseMediaDecodeTime:i.baseMediaDecodeTime},codec:"adts",type:"audio"};e.coalesceStream.numberOfTracks++;e.audioSegmentStream=new Wt(a,t);e.audioSegmentStream.on("timingInfo",i.trigger.bind(i,"audioTimingInfo"));e.adtsStream.pipe(e.audioSegmentStream).pipe(e.coalesceStream);i.trigger("trackinfo",{hasAudio:!!a,hasVideo:!!n})});e.coalesceStream.on("data",this.trigger.bind(this,"data"));e.coalesceStream.on("done",this.trigger.bind(this,"done"))};this.setupTsPipeline=function(){var e={};this.transmuxPipeline_=e;e.type="ts";e.metadataStream=new ft.MetadataStream;e.packetStream=new ft.TransportPacketStream;e.parseStream=new ft.TransportParseStream;e.elementaryStream=new ft.ElementaryStream;e.timestampRolloverStream=new ft.TimestampRolloverStream;e.adtsStream=new mt;e.h264Stream=new Ht;e.captionStream=new ft.CaptionStream(t);e.coalesceStream=new Yt(t,e.metadataStream);e.headOfPipeline=e.packetStream;e.packetStream.pipe(e.parseStream).pipe(e.elementaryStream).pipe(e.timestampRolloverStream);e.timestampRolloverStream.pipe(e.h264Stream);e.timestampRolloverStream.pipe(e.adtsStream);e.timestampRolloverStream.pipe(e.metadataStream).pipe(e.coalesceStream);e.h264Stream.pipe(e.captionStream).pipe(e.coalesceStream);e.elementaryStream.on("data",function(r){var s;if(r.type==="metadata"){s=r.tracks.length;while(s--){if(!n&&r.tracks[s].type==="video"){n=r.tracks[s];n.timelineStartInfo.baseMediaDecodeTime=i.baseMediaDecodeTime}else if(!a&&r.tracks[s].type==="audio"){a=r.tracks[s];a.timelineStartInfo.baseMediaDecodeTime=i.baseMediaDecodeTime}}if(n&&!e.videoSegmentStream){e.coalesceStream.numberOfTracks++;e.videoSegmentStream=new zt(n,t);e.videoSegmentStream.on("timelineStartInfo",function(r){if(a&&!t.keepOriginalTimestamps){a.timelineStartInfo=r;e.audioSegmentStream.setEarliestDts(r.dts-i.baseMediaDecodeTime)}});e.videoSegmentStream.on("processedGopsInfo",i.trigger.bind(i,"gopInfo"));e.videoSegmentStream.on("segmentTimingInfo",i.trigger.bind(i,"videoSegmentTimingInfo"));e.videoSegmentStream.on("baseMediaDecodeTime",function(t){if(a){e.audioSegmentStream.setVideoBaseMediaDecodeTime(t)}});e.videoSegmentStream.on("timingInfo",i.trigger.bind(i,"videoTimingInfo"));e.h264Stream.pipe(e.videoSegmentStream).pipe(e.coalesceStream)}if(a&&!e.audioSegmentStream){e.coalesceStream.numberOfTracks++;e.audioSegmentStream=new Wt(a,t);e.audioSegmentStream.on("timingInfo",i.trigger.bind(i,"audioTimingInfo"));e.audioSegmentStream.on("segmentTimingInfo",i.trigger.bind(i,"audioSegmentTimingInfo"));e.adtsStream.pipe(e.audioSegmentStream).pipe(e.coalesceStream)}i.trigger("trackinfo",{hasAudio:!!a,hasVideo:!!n})}});e.coalesceStream.on("data",this.trigger.bind(this,"data"));
1e.coalesceStream.on("id3Frame",function(t){t.dispatchType=e.metadataStream.dispatchType;i.trigger("id3Frame",t)});e.coalesceStream.on("caption",this.trigger.bind(this,"caption"));e.coalesceStream.on("done",this.trigger.bind(this,"done"))};this.setBaseMediaDecodeTime=function(e){var i=this.transmuxPipeline_;if(!t.keepOriginalTimestamps){this.baseMediaDecodeTime=e}if(a){a.timelineStartInfo.dts=undefined;a.timelineStartInfo.pts=undefined;Se.clearDtsInfo(a);if(i.audioTimestampRolloverStream){i.audioTimestampRolloverStream.discontinuity()}}if(n){if(i.videoSegmentStream){i.videoSegmentStream.gopCache_=[]}n.timelineStartInfo.dts=undefined;n.timelineStartInfo.pts=undefined;Se.clearDtsInfo(n);i.captionStream.reset()}if(i.timestampRolloverStream){i.timestampRolloverStream.discontinuity()}};this.setAudioAppendStart=function(e){if(a){this.transmuxPipeline_.audioSegmentStream.setAudioAppendStart(e)}};this.setRemux=function(e){var i=this.transmuxPipeline_;t.remux=e;if(i&&i.coalesceStream){i.coalesceStream.setRemux(e)}};this.alignGopsWith=function(e){if(n&&this.transmuxPipeline_.videoSegmentStream){this.transmuxPipeline_.videoSegmentStream.alignGopsWith(e)}};this.push=function(e){if(r){var t=Vt(e);if(t&&this.transmuxPipeline_.type!=="aac"){this.setupAacPipeline()}else if(!t&&this.transmuxPipeline_.type!=="ts"){this.setupTsPipeline()}r=false}this.transmuxPipeline_.headOfPipeline.push(e)};this.flush=function(){r=true;this.transmuxPipeline_.headOfPipeline.flush()};this.endTimeline=function(){this.transmuxPipeline_.headOfPipeline.endTimeline()};this.reset=function(){if(this.transmuxPipeline_.headOfPipeline){this.transmuxPipeline_.headOfPipeline.reset()}};this.resetCaptions=function(){if(this.transmuxPipeline_.captionStream){this.transmuxPipeline_.captionStream.reset()}}};Gt.prototype=new t;var Qt={Transmuxer:Gt,VideoSegmentStream:zt,AudioSegmentStream:Wt,AUDIO_PROPERTIES:Ut,VIDEO_PROPERTIES:Ft,generateSegmentTimingInfo:Xt};var Jt={Adts:mt,h264:St};var Zt=de.ONE_SECOND_IN_TS;var $t=function e(t,i){var r=[],n=0,a=0,s=0,o=Infinity,l=null,u=null;i=i||{};e.prototype.init.call(this);this.push=function(e){Se.collectDtsInfo(t,e);if(t){Ut.forEach(function(i){t[i]=e[i]})}r.push(e)};this.setEarliestDts=function(e){a=e};this.setVideoBaseMediaDecodeTime=function(e){o=e};this.setAudioAppendStart=function(e){s=e};this.processFrames_=function(){var e,c,d,f,h;if(r.length===0){return}e=ge.trimAdtsFramesByEarliestDts(r,t,a);if(e.length===0){return}t.baseMediaDecodeTime=Se.calculateTrackBaseMediaDecodeTime(t,i.keepOriginalTimestamps);ge.prefixWithSilence(t,e,s,o);t.samples=ge.generateSampleTable(e);d=F.mdat(ge.concatenateFrameData(e));r=[];c=F.moof(n,[t]);n++;t.initSegment=F.initSegment([t]);f=new Uint8Array(c.byteLength+d.byteLength);f.set(c);f.set(d,c.byteLength);Se.clearDtsInfo(t);if(l===null){u=l=e[0].pts}u+=e.length*(Zt*1024/t.samplerate);h={start:l};this.trigger("timingInfo",h);this.trigger("data",{track:t,boxes:f})};this.flush=function(){this.processFrames_();this.trigger("timingInfo",{start:l,end:u});this.resetTiming_();this.trigger("done","AudioSegmentStream")};this.partialFlush=function(){this.processFrames_();this.trigger("partialdone","AudioSegmentStream")};this.endTimeline=function(){this.flush();this.trigger("endedtimeline","AudioSegmentStream")};this.resetTiming_=function(){Se.clearDtsInfo(t);l=null;u=null};this.reset=function(){this.resetTiming_();r=[];this.trigger("reset")}};$t.prototype=new t;var ei=$t;var ti=function e(t,i){var r=0,n=[],a=[],s,o,l=null,u=null,c,d=true;i=i||{};e.prototype.init.call(this);this.push=function(e){Se.collectDtsInfo(t,e);if(typeof t.timelineStartInfo.dts==="undefined"){t.timelineStartInfo.dts=e.dts}if(e.nalUnitType==="seq_parameter_set_rbsp"&&!s){s=e.config;t.sps=[e.data];Ft.forEach(function(e){t[e]=s[e]},this)}if(e.nalUnitType==="pic_parameter_set_rbsp"&&!o){o=e.data;t.pps=[e.data]}n.push(e)};this.processNals_=function(e){var s;n=a.concat(n);while(n.length){if(n[0].nalUnitType==="access_unit_delimiter_rbsp"){break}n.shift()}if(n.length===0){return}var o=Q.groupNalsIntoFrames(n);if(!o.length){return}a=o[o.length-1];if(e){o.pop();o.duration-=a.duration;o.nalCount-=a.length;o.byteLength-=a.byteLength}if(!o.length){n=[];return}this.trigger("timelineStartInfo",t.timelineStartInfo);if(d){c=Q.groupFramesIntoGops(o);if(!c[0][0].keyFrame){c=Q.extendFirstKeyFrame(c);if(!c[0][0].keyFrame){n=[].concat.apply([],o).concat(a);a=[];return}o=[].concat.apply([],c);o.duration=c.duration}d=false}if(l===null){l=o[0].pts;u=l}u+=o.duration;this.trigger("timingInfo",{start:l,end:u});for(s=0;s<o.length;s++){var f=o[s];t.samples=Q.generateSampleTableForFrame(f);var h=F.mdat(Q.concatenateNalDataForFrame(f));Se.clearDtsInfo(t);Se.collectDtsInfo(t,f);t.baseMediaDecodeTime=Se.calculateTrackBaseMediaDecodeTime(t,i.keepOriginalTimestamps);var p=F.moof(r,[t]);r++;t.initSegment=F.initSegment([t]);var v=new Uint8Array(p.byteLength+h.byteLength);v.set(p);v.set(h,p.byteLength);this.trigger("data",{track:t,boxes:v,sequence:r,videoFrameDts:f.dts,videoFramePts:f.pts})}n=[]};this.resetTimingAndConfig_=function(){s=undefined;o=undefined;l=null;u=null};this.partialFlush=function(){this.processNals_(true);this.trigger("partialdone","VideoSegmentStream")};this.flush=function(){this.processNals_(false);
1this.resetTimingAndConfig_();this.trigger("done","VideoSegmentStream")};this.endTimeline=function(){this.flush();this.trigger("endedtimeline","VideoSegmentStream")};this.reset=function(){this.resetTimingAndConfig_();a=[];n=[];d=true;this.trigger("reset")}};ti.prototype=new t;var ii=ti;var ri=Dt.isLikelyAacData;var ni=function e(i){i.prototype=new t;i.prototype.init.call(i);return i};var ai=function e(t){var i={type:"ts",tracks:{audio:null,video:null},packet:new ft.TransportPacketStream,parse:new ft.TransportParseStream,elementary:new ft.ElementaryStream,timestampRollover:new ft.TimestampRolloverStream,adts:new Jt.Adts,h264:new Jt.h264.H264Stream,captionStream:new ft.CaptionStream(t),metadataStream:new ft.MetadataStream};i.headOfPipeline=i.packet;i.packet.pipe(i.parse).pipe(i.elementary).pipe(i.timestampRollover);i.timestampRollover.pipe(i.h264);i.h264.pipe(i.captionStream);i.timestampRollover.pipe(i.metadataStream);i.timestampRollover.pipe(i.adts);i.elementary.on("data",function(e){if(e.type!=="metadata"){return}for(var r=0;r<e.tracks.length;r++){if(!i.tracks[e.tracks[r].type]){i.tracks[e.tracks[r].type]=e.tracks[r];i.tracks[e.tracks[r].type].timelineStartInfo.baseMediaDecodeTime=t.baseMediaDecodeTime}}if(i.tracks.video&&!i.videoSegmentStream){i.videoSegmentStream=new ii(i.tracks.video,t);i.videoSegmentStream.on("timelineStartInfo",function(e){if(i.tracks.audio&&!t.keepOriginalTimestamps){i.audioSegmentStream.setEarliestDts(e.dts-t.baseMediaDecodeTime)}});i.videoSegmentStream.on("timingInfo",i.trigger.bind(i,"videoTimingInfo"));i.videoSegmentStream.on("data",function(e){i.trigger("data",{type:"video",data:e})});i.videoSegmentStream.on("done",i.trigger.bind(i,"done"));i.videoSegmentStream.on("partialdone",i.trigger.bind(i,"partialdone"));i.videoSegmentStream.on("endedtimeline",i.trigger.bind(i,"endedtimeline"));i.h264.pipe(i.videoSegmentStream)}if(i.tracks.audio&&!i.audioSegmentStream){i.audioSegmentStream=new ei(i.tracks.audio,t);i.audioSegmentStream.on("data",function(e){i.trigger("data",{type:"audio",data:e})});i.audioSegmentStream.on("done",i.trigger.bind(i,"done"));i.audioSegmentStream.on("partialdone",i.trigger.bind(i,"partialdone"));i.audioSegmentStream.on("endedtimeline",i.trigger.bind(i,"endedtimeline"));i.audioSegmentStream.on("timingInfo",i.trigger.bind(i,"audioTimingInfo"));i.adts.pipe(i.audioSegmentStream)}i.trigger("trackinfo",{hasAudio:!!i.tracks.audio,hasVideo:!!i.tracks.video})});i.captionStream.on("data",function(e){var r;if(i.tracks.video){r=i.tracks.video.timelineStartInfo.pts||0}else{r=0}e.startTime=de.metadataTsToSeconds(e.startPts,r,t.keepOriginalTimestamps);e.endTime=de.metadataTsToSeconds(e.endPts,r,t.keepOriginalTimestamps);i.trigger("caption",e)});i=ni(i);i.metadataStream.on("data",i.trigger.bind(i,"id3Frame"));return i};var si=function e(t){var i={type:"aac",tracks:{audio:null},metadataStream:new ft.MetadataStream,aacStream:new Nt,audioRollover:new ft.TimestampRolloverStream("audio"),timedMetadataRollover:new ft.TimestampRolloverStream("timed-metadata"),adtsStream:new mt(true)};i.headOfPipeline=i.aacStream;i.aacStream.pipe(i.audioRollover).pipe(i.adtsStream);i.aacStream.pipe(i.timedMetadataRollover).pipe(i.metadataStream);i.metadataStream.on("timestamp",function(e){i.aacStream.setTimestamp(e.timeStamp)});i.aacStream.on("data",function(e){if(e.ty'),t[0].s.push('tream){return}i.tracks.audio=i.tracks.audio||{timelineStartInfo:{baseMediaDecodeTime:t.baseMediaDecodeTime},codec:"adts",type:"audio"};i.audioSegmentStream=new ei(i.tracks.audio,t);i.audioSegmentStream.on("data",function(e){i.trigger("data",{type:"audio",data:e})});i.audioSegmentStream.on("partialdone",i.trigger.bind(i,"partialdone"));i.audioSegmentStream.on("done",i.trigger.bind(i,"done"));i.audioSegmentStream.on("endedtimeline",i.trigger.bind(i,"endedtimeline"));i.audioSegmentStream.on("timingInfo",i.trigger.bind(i,"audioTimingInfo"));i.adtsStream.pipe(i.audioSegmentStream);i.trigger("trackinfo",{hasAudio:!!i.tracks.audio,hasVideo:!!i.tracks.video})});i=ni(i);i.metadataStream.on("data",i.trigger.bind(i,"id3Frame"));return i};var oi=function e(t,i){t.on("data",i.trigger.bind(i,"data"));t.on("done",i.trigger.bind(i,"done"));t.on("partialdone",i.trigger.bind(i,"partialdone"));t.on("endedtimeline",i.trigger.bind(i,"endedtimeline"));t.on("audioTimingInfo",i.trigger.bind(i,"audioTimingInfo"));t.on("videoTimingInfo",i.trigger.bind(i,"videoTimingInfo"));t.on("trackinfo",i.trigger.bind(i,"trackinfo"));t.on("id3Frame",function(e){e.dispatchType=t.metadataStream.dispatchType;e.cueTime=de.videoTsToSeconds(e.pts);i.trigger("id3Frame",e)});t.on("caption",function(e){i.trigger("caption",e)})};var li=function e(t){var i=null,r=true;t=t||{};e.prototype.init.call(this);t.baseMediaDecodeTime=t.baseMediaDecodeTime||0;this.push=function(e){if(r){var n=ri(e);if(n&&(!i||i.type!=="aac")){i=si(t);oi(i,this)}else if(!n&&(!i||i.type!=="ts")){i=ai(t);oi(i,this)}r=false}i.headOfPipeline.push(e)};this.flush=function(){if(!i){return}r=true;i.headOfPipeline.flush()};this.partialFlush=function(){if(!i){return}i.headOfPipeline.partialFlush()};this.endTimeline=function(){if(!i){return}i.headOfPipeline.endTimeline()};this.reset=function(){if(!i){return}i.headOfPipeline.reset()};this.setBaseMediaDecodeTime=function(e){if(!t.keepOriginalTimestamps){t.baseMediaDecodeTime=e}if(!i){return}if(i.tracks.audio){i.tracks.audio.timelineStartInfo.dts=undefined;
1i.tracks.audio.timelineStartInfo.pts=undefined;Se.clearDtsInfo(i.tracks.audio);if(i.audioRollover){i.audioRollover.discontinuity()}}if(i.tracks.video){if(i.videoSegmentStream){i.videoSegmentStream.gopCache_=[]}i.tracks.video.timelineStartInfo.dts=undefined;i.tracks.video.timelineStartInfo.pts=undefined;Se.clearDtsInfo(i.tracks.video)}if(i.timestampRollover){i.timestampRollover.discontinuity()}};this.setRemux=function(e){t.remux=e;if(i&&i.coalesceStream){i.coalesceStream.setRemux(e)}};this.setAudioAppendStart=function(e){if(!i||!i.tracks.audio||!i.audioSegmentStream){return}i.audioSegmentStream.setAudioAppendStart(e)};this.alignGopsWith=function(e){return}};li.prototype=new t;var ui=li;var ci=function e(t){return t>>>0};var di=function e(t){return("00"+t.toString(16)).slice(-2)};var fi={toUnsigned:ci,toHexString:di};var hi=function e(t){var i="";i+=String.fromCharCode(t[0]);i+=String.fromCharCode(t[1]);i+=String.fromCharCode(t[2]);i+=String.fromCharCode(t[3]);return i};var pi=hi;var vi=fi.toUnsigned;var mi=function e(t,i){var r=[],n,a,s,o,l;if(!i.length){return null}for(n=0;n<t.byteLength;){a=vi(t[n]<<24|t[n+1]<<16|t[n+2]<<8|t[n+3]);s=pi(t.subarray(n+4,n+8));o=a>1?n+a:t.byteLength;if(s===i[0]){if(i.length===1){r.push(t.subarray(n+8,o))}else{l=e(t.subarray(n+8,o),i.slice(1));if(l.length){r=r.concat(l)}}}n=o}return r};var gi=mi;var yi=fi.toUnsigned;var _i=function e(t){var i={version:t[0],flags:new Uint8Array(t.subarray(1,4)),baseMediaDecodeTime:yi(t[4]<<24|t[5]<<16|t[6]<<8|t[7])};if(i.version===1){i.baseMediaDecodeTime*=Math.pow(2,32);i.baseMediaDecodeTime+=yi(t[8]<<24|t[9]<<16|t[10]<<8|t[11])}return i};var bi=_i;var Ti=function e(t){return{isLeading:(t[0]&12)>>>2,dependsOn:t[0]&3,isDependedOn:(t[1]&192)>>>6,hasRedundancy:(t[1]&48)>>>4,paddingValue:(t[1]&14)>>>1,isNonSyncSample:t[1]&1,degradationPriority:t[2]<<8|t[3]}};var Si=Ti;var ki=function e(t){var i={version:t[0],flags:new Uint8Array(t.subarray(1,4)),samples:[]},r=new DataView(t.buffer,t.byteOffset,t.byteLength),n=i.flags[2]&1,a=i.flags[2]&4,s=i.flags[1]&1,o=i.flags[1]&2,l=i.flags[1]&4,u=i.flags[1]&8,c=r.getUint32(4),d=8,f;if(n){i.dataOffset=r.getInt32(d);d+=4}if(a&&c){f={flags:Si(t.subarray(d,d+4))};d+=4;if(s){f.duration=r.getUint32(d);d+=4}if(o){f.size=r.getUint32(d);d+=4}if(u){if(i.version===1){f.compositionTimeOffset=r.getInt32(d)}else{f.compositionTimeOffset=r.getUint32(d)}d+=4}i.samples.push(f);c--}while(c--){f={};if(s){f.duration=r.getUint32(d);d+=4}if(o){f.size=r.getUint32(d);d+=4}if(l){f.flags=Si(t.subarray(d,d+4));d+=4}if(u){if(i.version===1){f.compositionTimeOffset=r.getInt32(d)}else{f.compositionTimeOffset=r.getUint32(d)}d+=4}i.samples.push(f)}return i};var Ei=ki;var ji=function e(t){var i=new DataView(t.buffer,t.byteOffset,t.byteLength),r={version:t[0],flags:new Uint8Array(t.subarray(1,4)),trackId:i.getUint32(4)},n=r.flags[2]&1,a=r.flags[2]&2,s=r.flags[2]&8,o=r.flags[2]&16,l=r.flags[2]&32,u=r.flags[0]&65536,c=r.flags[0]&131072,d;d=8;if(n){d+=4;r.baseDataOffset=i.getUint32(12);d+=4}if(a){r.sampleDescriptionIndex=i.getUint32(d);d+=4}if(s){r.defaultSampleDuration=i.getUint32(d);d+=4}if(o){r.defaultSampleSize=i.getUint32(d);d+=4}if(l){r.defaultSampleFlags=i.getUint32(d)}if(u){r.durationIsEmpty=true}if(!n&&c){r.baseDataOffsetIsMoof=true}return r};var wi=ji;var Ci=Ae.discardEmulationPreventionBytes;var Ii=qe.CaptionStream;var Ai=function e(t,i){var r=t;for(var n=0;n<i.length;n++){var a=i[n];if(r<a.size){return a}r-=a.size}return null};var xi=function e(t,i,r){var n=new DataView(t.buffer,t.byteOffset,t.byteLength),a=[],s,o,l,u;for(o=0;o+4<t.length;o+=l){l=n.getUint32(o);o+=4;if(l<=0){continue}switch(t[o]&31){case 6:var c=t.subarray(o+1,o+1+l);var d=Ai(o,i);s={nalUnitType:"sei_rbsp",size:l,data:c,escapedRBSP:Ci(c),trackId:r};if(d){s.pts=d.pts;s.dts=d.dts;u=d}else if(u){s.pts=u.pts;s.dts=u.dts}else{console.log("We\'ve encountered a nal unit without data. See mux.js#233.");break}a.push(s);break}}return a};var Pi=function e(t,i,r){var n=i;var a=r.defaultSampleDuration||0;var s=r.defaultSampleSize||0;var o=r.trackId;var l=[];t.forEach(function(e){var t=Ei(e);var i=t.samples;
1i.forEach(function(e){if(e.duration===undefined){e.duration=a}if(e.size===undefined){e.size=s}e.trackId=o;e.dts=n;if(e.compositionTimeOffset===undefined){e.compositionTimeOffset=0}e.pts=n+e.compositionTimeOffset;n+=e.duration});l=l.concat(i)});return l};var Oi=function e(t,i){var r=gi(t,["moof","traf"]);var n=gi(t,["mdat"]);var a={};var s=[];n.forEach(function(e,t){var i=r[t];s.push({mdat:e,traf:i})});s.forEach(function(e){var t=e.mdat;var r=e.traf;var n=gi(r,["tfhd"]);var s=wi(n[0]);var o=s.trackId;var l=gi(r,["tfdt"]);var u=l.length>0?bi(l[0]).baseMediaDecodeTime:0;var c=gi(r,["trun"]);var d;var f;if(i===o&&c.length>0){d=Pi(c,u,s);f=xi(t,d,o);if(!a[o]){a[o]=[]}a[o]=a[o].concat(f)}});return a};var Li=function e(t,i,r){var n;if(i===null){return null}n=Oi(t,i);return{seiNals:n[i],timescale:r}};var Di=function e(){var t=false;var i;var r;var n;var a;var s;var o;this.isInitialized=function(){return t};this.init=function(e){i=new Ii;t=true;o=e?e.isPartial:false;i.on("data",function(e){e.startTime=e.startPts/a;e.endTime=e.endPts/a;s.captions.push(e);s.captionStreams[e.stream]=true})};this.isNewInit=function(e,t){if(e&&e.length===0||t&&typeof t==="object"&&Object.keys(t).length===0){return false}return n!==e[0]||a!==t[n]};this.parse=function(e,t,i){var o;if(!this.isInitialized()){return null}else if(!t||!i){return null}else if(this.isNewInit(t,i)){n=t[0];a=i[n]}else if(n===null||!a){r.push(e);return null}while(r.length>0){var l=r.shift();this.parse(l,t,i)}o=Li(e,n,a);if(o===null||!o.seiNals){return null}this.pushNals(o.seiNals);this.flushStream();return s};this.pushNals=function(e){if(!this.isInitialized()||!e||e.length===0){return null}e.forEach(function(e){i.push(e)})};this.flushStream=function(){if(!this.isInitialized()){return null}if(!o){i.flush()}else{i.partialFlush()}};this.clearParsedCaptions=function(){s.captions=[];s.captionStreams={}};this.resetCaptionStream=function(){if(!this.isInitialized()){return null}i.reset()};this.clearAllCaptions=function(){this.clearParsedCaptions();this.resetCaptionStream()};this.reset=function(){r=[];n=null;a=null;if(!s){s={captions:[],captionStreams:{}}}else{this.clearParsedCaptions()}this.resetCaptionStream()};this.reset()};var Ri=Di;var Ni=function e(t){if(t==="AudioSegmentStream"){return"audio"}return t==="VideoSegmentStream"?"video":""};var Mi=function e(t,i){i.on("data",function(e){var i=e.initSegment;e.initSegment={data:i.buffer,byteOffset:i.byteOffset,byteLength:i.byteLength};var r=e.data;e.data=r.buffer;t.postMessage({action:"data",segment:e,byteOffset:r.byteOffset,byteLength:r.byteLength},[e.data])});i.on("done",function(e){t.postMessage({action:"done"})});i.on("gopInfo",function(e){t.postMessage({action:"gopInfo",gopInfo:e})});i.on("videoSegmentTimingInfo",function(e){var i={start:{decode:de.videoTsToSeconds(e.start.dts),presentation:de.videoTsToSeconds(e.start.pts)},end:{decode:de.videoTsToSeconds(e.end.dts),presentation:de.videoTsToSeconds(e.end.pts)},baseMediaDecodeTime:de.videoTsToSeconds(e.baseMediaDecodeTime)};if(e.prependedContentDuration){i.prependedContentDuration=de.videoTsToSeconds(e.prependedContentDuration)}t.postMessage({action:"videoSegmentTimingInfo",videoSegmentTimingInfo:i})});i.on("audioSegmentTimingInfo",function(e){var i={start:{decode:de.videoTsToSeconds(e.start.dts),presentation:de.videoTsToSeconds(e.start.pts)},end:{decode:de.videoTsToSeconds(e.end.dts),presentation:de.videoTsToSeconds(e.end.pts)},baseMediaDecodeTime:de.videoTsToSeconds(e.baseMediaDecodeTime)};if(e.prependedContentDuration){i.prependedContentDuration=de.videoTsToSeconds(e.prependedContentDuration)}t.postMessage({action:"audioSegmentTimingInfo",audioSegmentTimingInfo:i})});i.on("id3Frame",function(e){t.postMessage({action:"id3Frame",id3Frame:e})});i.on("caption",function(e){t.postMessage({action:"caption",caption:e})});i.on("trackinfo",function(e){t.postMessage({action:"trackinfo",trackInfo:e})});i.on("audioTimingInfo",function(e){t.postMessage({action:"audioTimingInfo",audioTimingInfo:{start:de.videoTsToSeconds(e.start),end:de.videoTsToSeconds(e.end)}})});i.on("videoTimingInfo",function(e){t.postMessage({action:"videoTimingInfo",videoTimingInfo:{start:de.videoTsToSeconds(e.start),end:de.videoTsToSeconds(e.end)}})})};var Ui=function e(t,i){i.on("data",function(e){var i={data:e.data.track.initSegment.buffer,byteOffset:e.data.track.initSegment.byteOffset,byteLength:e.data.track.initSegment.byteLength};var r={data:e.data.boxes.buffer,byteOffset:e.data.boxes.byteOffset,byteLength:e.data.boxes.byteLength};var n={boxes:r,initSegment:i,type:e.type,sequence:e.data.sequence};if(typeof e.data.videoFrameDts!=="undefined"){n.videoFrameDtsTime=de.videoTsToSeconds(e.data.videoFrameDts)}if(typeof e.data.videoFramePts!=="undefined"){n.videoFramePtsTime=de.videoTsToSeconds(e.data.videoFramePts)}t.postMessage({action:"data",segment:n},[n.boxes.data,n.initSegment.data])});i.on("id3Frame",function(e){t.postMessage({action:"id3Frame",id3Frame:e})});i.on("caption",function(e){t.postMessage({action:"caption",caption:e})});i.on("done",function(e){t.postMessage({action:"done",type:Ni(e)})});i.on("partialdone",function(e){t.postMessage({action:"partialdone",type:Ni(e)})});i.on("endedsegment",function(e){t.postMessage({action:"endedSegment",type:Ni(e)})});i.on("trackinfo",function(e){t.postMessage({action:"trackinfo",trackInfo:e})});i.on("audioTimingInfo",function(e){if(e.start===null){t.postMessage({action:"audioTimingInfo",audioTimingInfo:e});return}var i={start:de.videoTsToSeconds(e.start)};if(e.end){i.end=de.videoTsToSeconds(e.end)}t.postMessage({action:"audioTimingInfo",audioTimingInfo:i})});i.on("videoTimingInfo",function(e){var i={start:de.videoTsToSeconds(e.start)};if(e.end){i.end=de.videoTsToSeconds(e.end)}t.postMessage({action:"videoTimingInfo",videoTimingInfo:i})})};var Bi=function(){function e(e,t){this.options=t||{};this.self=e;this.init()}var t=e.prototype;t.init=function e(){if(this.transmuxer){this.transmuxer.dispose()}this.transmuxer=this.options.handlePartialData?new ui(this.options):new Qt.Transmuxer(this.options);if(this.options.handlePartialData){Ui(this.self,this.transmuxer)}else{Mi(this.self,this.transmuxer)}};t.pushMp4Captions=function e(t){if(!this.captionParser){this.captionParser=new Ri;this.captionParser.init()}var i=new Uint8Array(t.data,t.byteOffset,t.byteLength);var r=this.captionParser.parse(i,t.trackIds,t.timescales);this.self.postMessage({action:"mp4Captions",captions:r&&r.captions||[],data:i.buffer},[i.buffer])};t.clearAllMp4Captions=function e(){if(this.captionParser){this.captionParser.clearAllCaptions()}};t.clearParsedMp4Captions=function e(){if(this.captionParser){this.captionParser.clearParsedCaptions()}};t.push=function e(t){var i=new Uint8Array(t.data,t.byteOffset,t.byteLength);this.transmuxer.push(i)};t.reset=function e(){this.transmuxer.reset()};t.setTimestampOffset=function e(t){var i=t.timestampOffset||0;this.transmuxer.setBaseMediaDecodeTime(Math.round(de.secondsToVideoTs(i)))};t.setAudioAppendStart=function e(t){this.transmuxer.setAudioAppendStart(Math.ceil(de.secondsToVideoTs(t.appendStart)))};t.setRemux=function e(t){this.transmuxer.setRemux(t.remux)};t.flush=function e(t){this.transmuxer.flush();i.postMessage({action:"done",type:"transmuxed"})};t.partialFlush=function e(t){this.transmuxer.partialFlush();i.postMessage({action:"partialdone",type:"transmuxed"})};t.endTimeline=function e(){this.transmuxer.endTimeline();i.postMessage({action:"endedtimeline",type:"transmuxed"})};t.alignGopsWith=function e(t){this.transmuxer.alignGopsWith(t.gopsToAlignWith.slice())};return e}();var Fi=function e(t){t.onmessage=function(e){if(e.data.action==="init"&&e.data.options){this.messageHandlers=new Bi(t,e.data.options);return}if(!this.messageHandlers){this.messageHandlers=new Bi(t)}if(e.data&&e.data.action&&e.data.action!=="init"){if(this.messageHandlers[e.data.action]){this.messageHandlers[e.data.action](e.data)}}}};var Hi=new Fi(i);return Hi}()});var da={mp4:/^(av0?1|avc0?[1234]|vp0?9|flac|opus|mp3|mp4a|mp4v|stpp.ttml.im1t)/,webm:/^(vp0?[89]|av0?1|opus|vorbis)/,ogg:/^(vp0?[89]|theora|flac|opus|vorbis)/,video:/^(av0?1|avc0?[1234]|vp0?[89]|hvc1|hev1|theora|mp4v)/,audio:/^(mp4a|flac|vorbis|opus|ac-[34]|ec-3|alac|mp3|speex|aac)/,text:/^(stpp.ttml.im1t)/,muxerVideo:/^(avc0?1)/,muxerAudio:/^(mp4a)/,muxerText:/a^/};var fa=["video","audio","text"];var ha=["Video","Audio","Text"];var pa=function e(t){if(!t){return t}return t.replace(/avc1\\.(\\d+)\\.(\\d+)/i,function(e,t,i){var r=("00"+Number(t).toString(16)).slice(-2);var n=("00"+Number(i).toString(16)).slice(-2);
1return"avc1."+r+"00"+n})};var va=function e(t){if(t===void 0){t=""}var i=t.split(",");var r=[];i.forEach(function(e){e=e.trim();var t;fa.forEach(function(i){var n=da[i].exec(e.toLowerCase());if(!n||n.length<=1){return}t=i;var a=e.substring(0,n[1].length);var s=e.replace(a,"");r.push({type:a,details:s,mediaType:i})});if(!t){r.push({type:e,details:"",mediaType:"unknown"})}});return r};var ma=function e(t,i){if(!t.mediaGroups.AUDIO||!i){return null}var r=t.mediaGroups.AUDIO[i];if(!r){return null}for(var n in r){var a=r[n];if(a.default&&a.playlists){return va(a.playlists[0].attributes.CODECS)}}return null};var ga=function e(t){if(t===void 0){t=""}return da.video.test(t.trim().toLowerCase())};var ya=function e(t){if(t===void 0){t=""}return da.audio.test(t.trim().toLowerCase())};var _a=function e(t){if(t===void 0){t=""}return da.text.test(t.trim().toLowerCase())};var ba=function e(t){if(!t||typeof t!=="string"){return}var i=t.toLowerCase().split(",").map(function(e){return pa(e.trim())});var r="video";if(i.length===1&&ya(i[0])){r="audio"}else if(i.length===1&&_a(i[0])){r="application"}var n="mp4";if(i.every(function(e){return da.mp4.test(e)})){n="mp4"}else if(i.every(function(e){return da.webm.test(e)})){n="webm"}else if(i.every(function(e){return da.ogg.test(e)})){n="ogg"}return r+"/"+n+\';codecs="\'+t+\'"\'};var Ta=function e(t){if(t===void 0){t=""}return l["default"].MediaSource&&l["default"].MediaSource.isTypeSupported&&l["default"].MediaSource.isTypeSupported(ba(t))||false};var Sa=function e(t){if(t===void 0){t=""}return t.toLowerCase().split(",").every(function(e){e=e.trim();for(var t=0;t<ha.length;t++){var i=ha[t];if(da["muxer"+i].test(e)){return '),t[1].s.push('pe!=="timed-metadata"&&e.type!=="audio"||i.audioSegmentStream){return}i.tracks.audio=i.tracks.audio||{timelineStartInfo:{baseMediaDecodeTime:t.baseMediaDecodeTime},codec:"adts",type:"audio"};i.audioSegmentStream=new ei(i.tracks.audio,t);i.audioSegmentStream.on("data",function(e){i.trigger("data",{type:"audio",data:e})});i.audioSegmentStream.on("partialdone",i.trigger.bind(i,"partialdone"));i.audioSegmentStream.on("done",i.trigger.bind(i,"done"));i.audioSegmentStream.on("endedtimeline",i.trigger.bind(i,"endedtimeline"));i.audioSegmentStream.on("timingInfo",i.trigger.bind(i,"audioTimingInfo"));i.adtsStream.pipe(i.audioSegmentStream);i.trigger("trackinfo",{hasAudio:!!i.tracks.audio,hasVideo:!!i.tracks.video})});i=ni(i);i.metadataStream.on("data",i.trigger.bind(i,"id3Frame"));return i};var oi=function e(t,i){t.on("data",i.trigger.bind(i,"data"));t.on("done",i.trigger.bind(i,"done"));t.on("partialdone",i.trigger.bind(i,"partialdone"));t.on("endedtimeline",i.trigger.bind(i,"endedtimeline"));t.on("audioTimingInfo",i.trigger.bind(i,"audioTimingInfo"));t.on("videoTimingInfo",i.trigger.bind(i,"videoTimingInfo"));t.on("trackinfo",i.trigger.bind(i,"trackinfo"));t.on("id3Frame",function(e){e.dispatchType=t.metadataStream.dispatchType;e.cueTime=de.videoTsToSeconds(e.pts);i.trigger("id3Frame",e)});t.on("caption",function(e){i.trigger("caption",e)})};var li=function e(t){var i=null,r=true;t=t||{};e.prototype.init.call(this);t.baseMediaDecodeTime=t.baseMediaDecodeTime||0;this.push=function(e){if(r){var n=ri(e);if(n&&(!i||i.type!=="aac")){i=si(t);oi(i,this)}else if(!n&&(!i||i.type!=="ts")){i=ai(t);oi(i,this)}r=false}i.headOfPipeline.push(e)};this.flush=function(){if(!i){return}r=true;i.headOfPipeline.flush()};this.partialFlush=function(){if(!i){return}i.headOfPipeline.partialFlush()};this.endTimeline=function(){if(!i){return}i.headOfPipeline.endTimeline()};this.reset=function(){if(!i){return}i.headOfPipeline.reset()};this.setBaseMediaDecodeTime=function(e){if(!t.keepOriginalTimestamps){t.baseMediaDecodeTime=e}if(!i){return}if(i.tracks.audio){i.tracks.audio.timelineStartInfo.dts=undefined;i.tracks.audio.timelineStartInfo.pts=undefined;Se.clearDtsInfo(i.tracks.audio);if(i.audioRollover){i.audioRollover.discontinuity()}}if(i.tracks.video){if(i.videoSegmentStream){i.videoSegmentStream.gopCache_=[]}i.tracks.video.timelineStartInfo.dts=undefined;i.tracks.video.timelineStartInfo.pts=undefined;Se.clearDtsInfo(i.tracks.video)}if(i.timestampRollover){i.timestampRollover.discontinuity()}};this.setRemux=function(e){t.remux=e;if(i&&i.coalesceStream){i.coalesceStream.setRemux(e)}};this.setAudioAppendStart=function(e){if(!i||!i.tracks.audio||!i.audioSegmentStream){return}i.audioSegmentStream.setAudioAppendStart(e)};this.alignGopsWith=function(e){return}};li.prototype=new t;var ui=li;var ci=function e(t){return t>>>0};var di=function e(t){return("00"+t.toString(16)).slice(-2)};var fi={toUnsigned:ci,toHexString:di};var hi=function e(t){var i="";i+=String.fromCharCode(t[0]);i+=String.fromCharCode(t[1]);i+=String.fromCharCode(t[2]);i+=String.fromCharCode(t[3]);return i};
1var pi=hi;var vi=fi.toUnsigned;var mi=function e(t,i){var r=[],n,a,s,o,l;if(!i.length){return null}for(n=0;n<t.byteLength;){a=vi(t[n]<<24|t[n+1]<<16|t[n+2]<<8|t[n+3]);s=pi(t.subarray(n+4,n+8));o=a>1?n+a:t.byteLength;if(s===i[0]){if(i.length===1){r.push(t.subarray(n+8,o))}else{l=e(t.subarray(n+8,o),i.slice(1));if(l.length){r=r.concat(l)}}}n=o}return r};var gi=mi;var yi=fi.toUnsigned;var _i=function e(t){var i={version:t[0],flags:new Uint8Array(t.subarray(1,4)),baseMediaDecodeTime:yi(t[4]<<24|t[5]<<16|t[6]<<8|t[7])};if(i.version===1){i.baseMediaDecodeTime*=Math.pow(2,32);i.baseMediaDecodeTime+=yi(t[8]<<24|t[9]<<16|t[10]<<8|t[11])}return i};var bi=_i;var Ti=function e(t){return{isLeading:(t[0]&12)>>>2,dependsOn:t[0]&3,isDependedOn:(t[1]&192)>>>6,hasRedundancy:(t[1]&48)>>>4,paddingValue:(t[1]&14)>>>1,isNonSyncSample:t[1]&1,degradationPriority:t[2]<<8|t[3]}};var Si=Ti;var ki=function e(t){var i={version:t[0],flags:new Uint8Array(t.subarray(1,4)),samples:[]},r=new DataView(t.buffer,t.byteOffset,t.byteLength),n=i.flags[2]&1,a=i.flags[2]&4,s=i.flags[1]&1,o=i.flags[1]&2,l=i.flags[1]&4,u=i.flags[1]&8,c=r.getUint32(4),d=8,f;if(n){i.dataOffset=r.getInt32(d);d+=4}if(a&&c){f={flags:Si(t.subarray(d,d+4))};d+=4;if(s){f.duration=r.getUint32(d);d+=4}if(o){f.size=r.getUint32(d);d+=4}if(u){if(i.version===1){f.compositionTimeOffset=r.getInt32(d)}else{f.compositionTimeOffset=r.getUint32(d)}d+=4}i.samples.push(f);c--}while(c--){f={};if(s){f.duration=r.getUint32(d);d+=4}if(o){f.size=r.getUint32(d);d+=4}if(l){f.flags=Si(t.subarray(d,d+4));d+=4}if(u){if(i.version===1){f.compositionTimeOffset=r.getInt32(d)}else{f.compositionTimeOffset=r.getUint32(d)}d+=4}i.samples.push(f)}return i};var Ei=ki;var ji=function e(t){var i=new DataView(t.buffer,t.byteOffset,t.byteLength),r={version:t[0],flags:new Uint8Array(t.subarray(1,4)),trackId:i.getUint32(4)},n=r.flags[2]&1,a=r.flags[2]&2,s=r.flags[2]&8,o=r.flags[2]&16,l=r.flags[2]&32,u=r.flags[0]&65536,c=r.flags[0]&131072,d;d=8;if(n){d+=4;r.baseDataOffset=i.getUint32(12);d+=4}if(a){r.sampleDescriptionIndex=i.getUint32(d);d+=4}if(s){r.defaultSampleDuration=i.getUint32(d);d+=4}if(o){r.defaultSampleSize=i.getUint32(d);d+=4}if(l){r.defaultSampleFlags=i.getUint32(d)}if(u){r.durationIsEmpty=true}if(!n&&c){r.baseDataOffsetIsMoof=true}return r};var wi=ji;var Ci=Ae.discardEmulationPreventionBytes;var Ii=qe.CaptionStream;var Ai=function e(t,i){var r=t;for(var n=0;n<i.length;n++){var a=i[n];if(r<a.size){return a}r-=a.size}return null};var xi=function e(t,i,r){var n=new DataView(t.buffer,t.byteOffset,t.byteLength),a=[],s,o,l,u;for(o=0;o+4<t.length;o+=l){l=n.getUint32(o);o+=4;if(l<=0){continue}switch(t[o]&31){case 6:var c=t.subarray(o+1,o+1+l);var d=Ai(o,i);s={nalUnitType:"sei_rbsp",size:l,data:c,escapedRBSP:Ci(c),trackId:r};if(d){s.pts=d.pts;s.dts=d.dts;u=d}else if(u){s.pts=u.pts;s.dts=u.dts}else{console.log("We\'ve encountered a nal unit without data. See mux.js#233.");break}a.push(s);break}}return a};var Pi=function e(t,i,r){var n=i;var a=r.defaultSampleDuration||0;var s=r.defaultSampleSize||0;var o=r.trackId;var l=[];t.forEach(function(e){var t=Ei(e);var i=t.samples;i.forEach(function(e){if(e.duration===undefined){e.duration=a}if(e.size===undefined){e.size=s}e.trackId=o;e.dts=n;if(e.compositionTimeOffset===undefined){e.compositionTimeOffset=0}e.pts=n+e.compositionTimeOffset;n+=e.duration});l=l.concat(i)});return l};var Oi=function e(t,i){var r=gi(t,["moof","traf"]);var n=gi(t,["mdat"]);var a={};var s=[];n.forEach(function(e,t){var i=r[t];s.push({mdat:e,traf:i})});s.forEach(function(e){var t=e.mdat;var r=e.traf;var n=gi(r,["tfhd"]);var s=wi(n[0]);var o=s.trackId;var l=gi(r,["tfdt"]);var u=l.length>0?bi(l[0]).baseMediaDecodeTime:0;var c=gi(r,["trun"]);var d;var f;if(i===o&&c.length>0){d=Pi(c,u,s);f=xi(t,d,o);if(!a[o]){a[o]=[]}a[o]=a[o].concat(f)}});return a};var Li=function e(t,i,r){var n;if(i===null){return null}n=Oi(t,i);return{seiNals:n[i],timescale:r}};var Di=function e(){var t=false;var i;var r;var n;var a;var s;var o;this.isInitialized=function(){return t};this.init=function(e){i=new Ii;t=true;o=e?e.isPartial:false;i.on("data",function(e){e.startTime=e.startPts/a;e.endTime=e.endPts/a;s.captions.push(e);
1s.captionStreams[e.stream]=true})};this.isNewInit=function(e,t){if(e&&e.length===0||t&&typeof t==="object"&&Object.keys(t).length===0){return false}return n!==e[0]||a!==t[n]};this.parse=function(e,t,i){var o;if(!this.isInitialized()){return null}else if(!t||!i){return null}else if(this.isNewInit(t,i)){n=t[0];a=i[n]}else if(n===null||!a){r.push(e);return null}while(r.length>0){var l=r.shift();this.parse(l,t,i)}o=Li(e,n,a);if(o===null||!o.seiNals){return null}this.pushNals(o.seiNals);this.flushStream();return s};this.pushNals=function(e){if(!this.isInitialized()||!e||e.length===0){return null}e.forEach(function(e){i.push(e)})};this.flushStream=function(){if(!this.isInitialized()){return null}if(!o){i.flush()}else{i.partialFlush()}};this.clearParsedCaptions=function(){s.captions=[];s.captionStreams={}};this.resetCaptionStream=function(){if(!this.isInitialized()){return null}i.reset()};this.clearAllCaptions=function(){this.clearParsedCaptions();this.resetCaptionStream()};this.reset=function(){r=[];n=null;a=null;if(!s){s={captions:[],captionStreams:{}}}else{this.clearParsedCaptions()}this.resetCaptionStream()};this.reset()};var Ri=Di;var Ni=function e(t){if(t==="AudioSegmentStream"){return"audio"}return t==="VideoSegmentStream"?"video":""};var Mi=function e(t,i){i.on("data",function(e){var i=e.initSegment;e.initSegment={data:i.buffer,byteOffset:i.byteOffset,byteLength:i.byteLength};var r=e.data;e.data=r.buffer;t.postMessage({action:"data",segment:e,byteOffset:r.byteOffset,byteLength:r.byteLength},[e.data])});i.on("done",function(e){t.postMessage({action:"done"})});i.on("gopInfo",function(e){t.postMessage({action:"gopInfo",gopInfo:e})});i.on("videoSegmentTimingInfo",function(e){var i={start:{decode:de.videoTsToSeconds(e.start.dts),presentation:de.videoTsToSeconds(e.start.pts)},end:{decode:de.videoTsToSeconds(e.end.dts),presentation:de.videoTsToSeconds(e.end.pts)},baseMediaDecodeTime:de.videoTsToSeconds(e.baseMediaDecodeTime)};if(e.prependedContentDuration){i.prependedContentDuration=de.videoTsToSeconds(e.prependedContentDuration)}t.postMessage({action:"videoSegmentTimingInfo",videoSegmentTimingInfo:i})});i.on("audioSegmentTimingInfo",function(e){var i={start:{decode:de.videoTsToSeconds(e.start.dts),presentation:de.videoTsToSeconds(e.start.pts)},end:{decode:de.videoTsToSeconds(e.end.dts),presentation:de.videoTsToSeconds(e.end.pts)},baseMediaDecodeTime:de.videoTsToSeconds(e.baseMediaDecodeTime)};if(e.prependedContentDuration){i.prependedContentDuration=de.videoTsToSeconds(e.prependedContentDuration)}t.postMessage({action:"audioSegmentTimingInfo",audioSegmentTimingInfo:i})});i.on("id3Frame",function(e){t.postMessage({action:"id3Frame",id3Frame:e})});i.on("caption",function(e){t.postMessage({action:"caption",caption:e})});i.on("trackinfo",function(e){t.postMessage({action:"trackinfo",trackInfo:e})});i.on("audioTimingInfo",function(e){t.postMessage({action:"audioTimingInfo",audioTimingInfo:{start:de.videoTsToSeconds(e.start),end:de.videoTsToSeconds(e.end)}})});i.on("videoTimingInfo",function(e){t.postMessage({action:"videoTimingInfo",videoTimingInfo:{start:de.videoTsToSeconds(e.start),end:de.videoTsToSeconds(e.end)}})})};var Ui=function e(t,i){i.on("data",function(e){var i={data:e.data.track.initSegment.buffer,byteOffset:e.data.track.initSegment.byteOffset,byteLength:e.data.track.initSegment.byteLength};var r={data:e.data.boxes.buffer,byteOffset:e.data.boxes.byteOffset,byteLength:e.data.boxes.byteLength};var n={boxes:r,initSegment:i,type:e.type,sequence:e.data.sequence};if(typeof e.data.videoFrameDts!=="undefined"){n.videoFrameDtsTime=de.videoTsToSeconds(e.data.videoFrameDts)}if(typeof e.data.videoFramePts!=="undefined"){n.videoFramePtsTime=de.videoTsToSeconds(e.data.videoFramePts)}t.postMessage({action:"data",segment:n},[n.boxes.data,n.initSegment.data])});i.on("id3Frame",function(e){t.postMessage({action:"id3Frame",id3Frame:e})});i.on("caption",function(e){t.postMessage({action:"caption",caption:e})});i.on("done",function(e){t.postMessage({action:"done",type:Ni(e)})});i.on("partialdone",function(e){t.postMessage({action:"partialdone",type:Ni(e)})});i.on("endedsegment",function(e){t.postMessage({action:"endedSegment",type:Ni(e)})});i.on("trackinfo",function(e){t.postMessage({action:"trackinfo",trackInfo:e})});i.on("audioTimingInfo",function(e){if(e.start===null){t.postMessage({action:"audioTimingInfo",audioTimingInfo:e});return}var i={start:de.videoTsToSeconds(e.start)};if(e.end){i.end=de.videoTsToSeconds(e.end)}t.postMessage({action:"audioTimingInfo",audioTimingInfo:i})});i.on("videoTimingInfo",function(e){var i={start:de.videoTsToSeconds(e.start)};if(e.end){i.end=de.videoTsToSeconds(e.end)}t.postMessage({action:"videoTimingInfo",videoTimingInfo:i})})};var Bi=function(){function e(e,t){this.options=t||{};this.self=e;this.init()}var t=e.prototype;t.init=function e(){if(this.transmuxer){this.transmuxer.dispose()}this.transmuxer=this.options.handlePartialData?new ui(this.options):new Qt.Transmuxer(this.options);if(this.options.handlePartialData){Ui(this.self,this.transmuxer)}else{Mi(this.self,this.transmuxer)}};t.pushMp4Captions=function e(t){if(!this.captionParser){this.captionParser=new Ri;this.captionParser.init()}var i=new Uint8Array(t.data,t.byteOffset,t.byteLength);var r=this.captionParser.parse(i,t.trackIds,t.timescales);this.self.postMessage({action:"mp4Captions",captions:r&&r.captions||[],data:i.buffer},[i.buffer])};t.clearAllMp4Captions=function e(){if(this.captionParser){this.captionParser.clearAllCaptions()}};t.clearParsedMp4Captions=function e(){if(this.captionParser){this.captionParser.clearParsedCaptions()}};t.push=function e(t){var i=new Uint8Array(t.data,t.byteOffset,t.byteLength);this.transmuxer.push(i)};t.reset=function e(){this.transmuxer.reset()};t.setTimestampOffset=function e(t){var i=t.timestampOffset||0;this.transmuxer.setBaseMediaDecodeTime(Math.round(de.secondsToVideoTs(i)))};t.setAudioAppendStart=function e(t){this.transmuxer.setAudioAppendStart(Math.ceil(de.secondsToVideoTs(t.appendStart)))};t.setRemux=function e(t){this.transmuxer.setRemux(t.remux)};t.flush=function e(t){this.transmuxer.flush();i.postMessage({action:"done",type:"transmuxed"})};t.partialFlush=function e(t){this.transmuxer.partialFlush();i.postMessage({action:"partialdone",type:"transmuxed"})};t.endTimeline=function e(){this.transmuxer.endTimeline();i.postMessage({action:"endedtimeline",type:"transmuxed"})};t.alignGopsWith=function e(t){this.transmuxer.alignGopsWith(t.gopsToAlignWith.slice())};return e}();var Fi=function e(t){t.onmessage=function(e){if(e.data.action==="init"&&e.data.options){this.messageHandlers=new Bi(t,e.data.options);return}if(!this.messageHandlers){this.messageHandlers=new Bi(t)}if(e.data&&e.data.action&&e.data.action!=="init"){if(this.messageHandlers[e.data.action]){this.messageHandlers[e.data.action](e.data)}}}};var Hi=new Fi(i);return Hi}()});var da={mp4:/^(av0?1|avc0?[1234]|vp0?9|flac|opus|mp3|mp4a|mp4v|stpp.ttml.im1t)/,webm:/^(vp0?[89]|av0?1|opus|vorbis)/,ogg:/^(vp0?[89]|theora|flac|opus|vorbis)/,video:/^(av0?1|avc0?[1234]|vp0?[89]|hvc1|hev1|theora|mp4v)/,audio:/^(mp4a|flac|vorbis|opus|ac-[34]|ec-3|alac|mp3|speex|aac)/,text:/^(stpp.ttml.im1t)/,muxerVideo:/^(avc0?1)/,muxerAudio:/^(mp4a)/,muxerText:/a^/};var fa=["video","audio","text"];var ha=["Video","Audio","Text"];var pa=function e(t){if(!t){return t}return t.replace(/avc1\\.(\\d+)\\.(\\d+)/i,function(e,t,i){var r=("00"+Number(t).toString(16)).slice(-2);var n=("00"+Number(i).toString(16)).slice(-2);
1return"avc1."+r+"00"+n})};var va=function e(t){if(t===void 0){t=""}var i=t.split(",");var r=[];i.forEach(function(e){e=e.trim();var t;fa.forEach(function(i){var n=da[i].exec(e.toLowerCase());if(!n||n.length<=1){return}t=i;var a=e.substring(0,n[1].length);var s=e.replace(a,"");r.push({type:a,details:s,mediaType:i})});if(!t){r.push({type:e,details:"",mediaType:"unknown"})}});return r};var ma=function e(t,i){if(!t.mediaGroups.AUDIO||!i){return null}var r=t.mediaGroups.AUDIO[i];if(!r){return null}for(var n in r){var a=r[n];if(a.default&&a.playlists){return va(a.playlists[0].attributes.CODECS)}}return null};var ga=function e(t){if(t===void 0){t=""}return da.video.test(t.trim().toLowerCase())};var ya=function e(t){if(t===void 0){t=""}return da.audio.test(t.trim().toLowerCase())};var _a=function e(t){if(t===void 0){t=""}return da.text.test(t.trim().toLowerCase())};var ba=function e(t){if(!t||typeof t!=="string"){return}var i=t.toLowerCase().split(",").map(function(e){return pa(e.trim())});var r="video";if(i.length===1&&ya(i[0])){r="audio"}else if(i.length===1&&_a(i[0])){r="application"}var n="mp4";if(i.every(function(e){return da.mp4.test(e)})){n="mp4"}else if(i.every(function(e){return da.webm.test(e)})){n="webm"}else if(i.every(function(e){return da.ogg.test(e)})){n="ogg"}return r+"/"+n+\';codecs="\'+t+\'"\'};var Ta=function e(t){if(t===void 0){t=""}return l["default"].MediaSource&&l["default"].MediaSource.isTypeSupported&&l["default"].MediaSource.isTypeSupported(ba(t))||false};var Sa=function e(t){if(t===void 0){t=""}return t.toLowerCase().split(",").every(function(e){e=e.trim();for(var t=0;t<ha.l'),t[0].s.push('true}}return false})};var ka="mp4a.40.2";var Ea="avc1.4d400d";var ja=function e(t){if(u["default"].log.debug){return u["default"].log.debug.bind(u["default"],"VHS:",t+" >")}return function(){}};var wa=ja("CodecUtils");var Ca=function e(t){var i=t.attributes||{};if(i.CODECS){return va(i.CODECS)}};var Ia=function e(t,i){var r=i.attributes||{};return t&&t.mediaGroups&&t.mediaGroups.AUDIO&&r.AUDIO&&t.mediaGroups.AUDIO[r.AUDIO]};var Aa=function e(t,i){if(!Ia(t,i)){return true}var r=i.attributes||{};var n=t.mediaGroups.AUDIO[r.AUDIO];for(var a in n){if(!n[a].uri&&!n[a].playlists){return true}}return false};var xa=function e(t){var i={};t.forEach(function(e){var t=e.mediaType,r=e.type,n=e.details;i[t]=i[t]||[];i[t].push(pa(""+r+n))});
1Object.keys(i).forEach(function(e){if(i[e].length>1){wa("multiple "+e+" codecs found as attributes: "+i[e].join(", ")+". Setting playlist codecs to null so that we wait for mux.js to probe segments for real codecs.");i[e]=null;return}i[e]=i[e][0]});return i};var Pa=function e(t){var i=0;if(t.audio){i++}if(t.video){i++}return i};var Oa=function e(t,i){var r=i.attributes||{};var n=xa(Ca(i)||[]);if(Ia(t,i)&&!n.audio){if(!Aa(t,i)){var a=xa(ma(t,r.AUDIO)||[]);if(a.audio){n.audio=a.audio}}}return n};var La=ja("PlaylistSelector");var Da=function e(t){if(!t||!t.playlist){return}var i=t.playlist;return JSON.stringify({id:i.id,bandwidth:t.bandwidth,width:t.width,height:t.height,codecs:i.attributes&&i.attributes.CODECS||""})};var Ra=function e(t,i){if(!t){return""}var r=l["default"].getComputedStyle(t);if(!r){return""}return r[i]};var Na=function e(t,i){var r=t.slice();t.sort(function(e,t){var n=i(e,t);if(n===0){return r.indexOf(e)-r.indexOf(t)}return n})};var Ma=function e(t,i){var r;var n;if(t.attributes.BANDWIDTH){r=t.attributes.BANDWIDTH}r=r||l["default"].Number.MAX_VALUE;if(i.attributes.BANDWIDTH){n=i.attributes.BANDWIDTH}n=n||l["default"].Number.MAX_VALUE;return r-n};var Ua=function e(t,i){var r;var n;if(t.attributes.RESOLUTION&&t.attributes.RESOLUTION.width){r=t.attributes.RESOLUTION.width}r=r||l["default"].Number.MAX_VALUE;if(i.attributes.RESOLUTION&&i.attributes.RESOLUTION.width){n=i.attributes.RESOLUTION.width}n=n||l["default"].Number.MAX_VALUE;if(r===n&&t.attributes.BANDWIDTH&&i.attributes.BANDWIDTH){return t.attributes.BANDWIDTH-i.attributes.BANDWIDTH}return r-n};var Ba=function e(t,i,r,n,a){if(!t){return}var s={bandwidth:i,width:r,height:n,limitRenditionByPlayerDimensions:a};var o=t.playlists.map(function(e){var t;var i=e.attributes.RESOLUTION&&e.attributes.RESOLUTION.width;var r=e.attributes.RESOLUTION&&e.attributes.RESOLUTION.height;t=e.attributes.BANDWIDTH;t=t||l["default"].Number.MAX_VALUE;return{bandwidth:t,width:i,height:r,playlist:e}});Na(o,function(e,t){return e.bandwidth-t.bandwidth});o=o.filter(function(e){return!be.isIncompatible(e.playlist)});var u=o.filter(function(e){return be.isEnabled(e.playlist)});if(!u.length){u=o.filter(function(e){return!be.isDisabled(e.playlist)})}var c=u.filter(function(e){return e.bandwidth*Gi.BANDWIDTH_VARIANCE<i});var d=c[c.length-1];var f=c.filter(function(e){return e.bandwidth===d.bandwidth})[0];if(a===false){var h=f||u[0]||o[0];if(h&&h.playlist){var p="sortedPlaylistReps";if(f){p="bandwidthBestRep"}if(u[0]){p="enabledPlaylistReps"}La("choosing "+Da(h)+" using "+p+" with options",s);return h.playlist}La("could not choose a playlist with options",s);return null}var v=c.filter(function(e){return e.width&&e.height});Na(v,function(e,t){return e.width-t.width});var m=v.filter(function(e){return e.width===r&&e.height===n});d=m[m.length-1];var g=m.filter(function(e){return e.bandwidth===d.bandwidth})[0];var y;var _;var b;if(!g){y=v.filter(function(e){return e.width>r||e.height>n});_=y.filter(function(e){return e.width===y[0].width&&e.height===y[0].height});d=_[_.length-1];b=_.filter(function(e){return e.bandwidth===d.bandwidth})[0]}var T=b||g||f||u[0]||o[0];if(T&&T.playlist){var S="sortedPlaylistReps";if(b){S="resolutionPlusOneRep"}else if(g){S="resolutionBestRep"}else if(f){S="bandwidthBestRep"}else if(u[0]){S="enabledPlaylistReps"}La("choosing "+Da(T)+" using "+S+" with options",s);return T.playlist}La("could not choose a playlist with options",s);return null};var Fa=function e(){var t=this.useDevicePixelRatio?l["default"].devicePixelRatio||1:1;return Ba(this.playlists.master,this.systemBandwidth,parseInt(Ra(this.tech_.el(),"width"),10)*t,parseInt(Ra(this.tech_.el(),"height"),10)*t,this.limitRenditionByPlayerDimensions)};var Ha=function e(t){var i=-1;if(t<0||t>1){throw new Error("Moving average bandwidth decay must be between 0 and 1.")}return function(){var e=this.useDevicePixelRatio?l["default"].devicePixelRatio||1:1;if(i<0){i=this.systemBandwidth}i=t*this.systemBandwidth+(1-t)*i;return Ba(this.playlists.master,i,parseInt(Ra(this.tech_.el(),"width"),10)*e,parseInt(Ra(this.tech_.el(),"height"),10)*e,this.limitRenditionByPlayerDimensions)}};var Va=function e(t){var i=t.master,r=t.currentTime,n=t.bandwidth,a=t.duration,s=t.segmentDuration,o=t.timeUntilRebuffer,l=t.currentTimeline,u=t.syncController;var c=i.playlists.filter(function(e){return!be.isIncompatible(e)}
1);var d=c.filter(be.isEnabled);if(!d.length){d=c.filter(function(e){return!be.isDisabled(e)})}var f=d.filter(be.hasAttribute.bind(null,"BANDWIDTH"));var h=f.map(function(e){var t=u.getSyncPoint(e,a,l,r);var i=t?1:2;var c=be.estimateSegmentRequestTime(s,n,e);var d=c*i-o;return{playlist:e,rebufferingImpact:d}});var p=h.filter(function(e){return e.rebufferingImpact<=0});Na(p,function(e,t){return Ma(t.playlist,e.playlist)});if(p.length){return p[0]}Na(h,function(e,t){return e.rebufferingImpact-t.rebufferingImpact});return h[0]||null};var qa=function e(){var t=this;var i=this.playlists.master.playlists.filter(be.isEnabled);Na(i,function(e,t){return Ma(e,t)});var r=i.filter(function(e){return!!Oa(t.playlists.master,e).video});return r[0]||null};var za=function e(t,i,r){if(!t[r]){i.trigger({type:"usage",name:"vhs-608"});i.trigger({type:"usage",name:"hls-608"});var n=i.textTracks().getTrackById(r);if(n){t[r]=n}else{t[r]=i.addRemoteTextTrack({kind:"captions",id:r,label:r},false).track}}};var Wa=function e(t){var i=t.inbandTextTracks,r=t.captionArray,n=t.timestampOffset;if(!r){return}var a=l["default"].WebKitDataCue||l["default"].VTTCue;r.forEach(function(e){var t=e.stream;i[t].addCue(new a(e.startTime+n,e.endTime+n,e.text))})};var Ga=function e(t){Object.defineProperties(t.frame,{id:{get:function e(){u["default"].log.warn("cue.frame.id is deprecated. Use cue.value.key instead.");return t.value.key}},value:{get:function e(){u["default"].log.warn("cue.frame.value is deprecated. Use cue.value.data instead.");return t.value.data}},privateData:{get:function e(){u["default"].log.warn("cue.frame.privateData is deprecated. Use cue.value.data instead.");return t.value.data}}})};var Ya=function e(t){var i=t.inbandTextTracks,r=t.metadataArray,n=t.timestampOffset,a=t.videoDuration;if(!r){return}var s=l["default"].WebKitDataCue||l["default"].VTTCue;var o=i.metadataTrack_;if(!o){return}r.forEach(function(e){var t=e.cueTime+n;if(typeof t!=="number"||l["default"].isNaN(t)||t<0||!(t<Infinity)){return}e.frames.forEach(function(e){var i=new s(t,t,e.value||e.url||e.data||"");i.frame=e;i.value=e;Ga(i);o.addCue(i)})});if(!o.cues||!o.cues.length){return}var u=o.cues;var c=[];for(var d=0;d<u.length;d++){if(u[d]){c.push(u[d])}}var f=c.reduce(function(e,t){var i=e[t.startTime]||[];i.push(t);e[t.startTime]=i;return e},{});var h=Object.keys(f).sort(function(e,t){return Number(e)-Number(t)});h.forEach(function(e,t){var i=f[e];var r=Number(h[t+1])||a;i.forEach(function(e){e.endTime=r})})};var Ka=function e(t,i,r){if(t.metadataTrack_){return}t.metadataTrack_=r.addRemoteTextTrack({kind:"metadata",label:"Timed Metadata"},false).track;t.metadataTrack_.inBandMetadataTrackDispatchType=i};var Xa=function e(t,i,r){var n;var a;if(!r){return}if(!r.cues){return}n=r.cues.length;while(n--){a=r.cues[n];if(a.startTime>=t&&a.endTime<=i){r.removeCue(a)}}};var Qa=function e(t){var i=t.cues;if(!i){return}for(var r=0;r<i.length;r++){var n=[];var a=0;for(var s=0;s<i.length;s++){if(i[r].startTime===i[s].startTime&&i[r].endTime===i[s].endTime&&i[r].text===i[s].text){a++;if(a>1){n.push(i[s])}}}if(n.length){n.forEach(function(e){return t.removeCue(e)})}}};var Ja=function e(t,i,r){if(typeof i==="undefined"||i===null||!t.length){return[]}var n=Math.ceil((i-r+3)*Kr.ONE_SECOND_IN_TS);var a;for(a=0;a<t.length;a++){if(t[a].pts>n){break}}return t.slice(a)};var Za=function e(t,i,r){if(!i.length){return t}if(r){return i.slice()}var n=i[0].pts;var a=0;for(a;a<t.length;a++){if(t[a].pts>=n){break}}return t.slice(0,a).concat(i)};var $a=function e(t,i,r,n){var a=Math.ceil((i-n)*Kr.ONE_SECOND_IN_TS);var s=Math.ceil((r-n)*Kr.ONE_SECOND_IN_TS);var o=t.slice();var l=t.length;while(l--){if(t[l].pts<=s){break}}if(l===-1){return o}var u=l+1;while(u--){if(t[u].pts<=a){break}}u=Math.max(u,0);o.splice(u,l-u+1);return o};var es=function e(t,i){if(!t&&!i||!t&&i||t&&!i){return false}if(t===i){return true}var r=Object.keys(t).sort();var n=Object.keys(i).sort();if(r.length!==n.length){return false}for(var a=0;a<r.length;a++){var s=r[a];if(s!==n[a]){return false}if(t[s]!==i[s]){return false}}return true};var ts=500;var is=function e(t){return typeof t==="number"&&isFinite(t)}
1;var rs=1/60;var ns=function e(t,i,r){if(t!=="main"||!i||!r){return null}if(!r.hasAudio&&!r.hasVideo){return"Neither audio nor video found in segment."}if(i.hasVideo&&!r.hasVideo){return"Only audio found in segment when we expected video."+" We can\'t switch to audio only from a stream that had video."+" To get rid of this message, please add codec information to the manifest."}if(!i.hasVideo&&r.hasVideo){return"Video found in segment when we expected only audio."+" We can\'t switch to a stream with video from an audio only stream."+" To get rid of this message, please add codec information to the manifest."}return null};var as=function e(t,i,r){var n=i-Gi.BACK_BUFFER_LENGTH;if(t.length){n=Math.max(n,t.start(0))}var a=i-r;return Math.min(a,n)};var ss=function e(t){var i=t.segment,r=i.start,n=i.end,a=t.playlist,s=a.mediaSequence,o=a.id,l=a.segments,u=l===void 0?[]:l,c=t.mediaIndex,d=t.timeline;return["appending ["+c+"] of ["+s+", "+(s+u.length)+"] from playlist ["+o+"]","["+r+" => "+n+"] in timeline ["+d+"]"].join(" ")};var os=function e(t){return t+"TimingInfo"};var ls=function e(t){var i=t.segmentTimeline,r=t.currentTimeline,n=t.startOfSegment,a=t.buffered,s=t.overrideCheck;if(!s&&i===r){return null}if(i<r){return n}return a.length?a.end(a.length-1):n};var us=function e(t){var i=t.timelineChangeController,r=t.currentTimeline,n=t.segmentTimeline,a=t.loaderType,s=t.audioDisabled;if(r===n){return false}if(a==="audio"){var o=i.lastTimelineChange({type:"main"});return!o||o.to!==n}if(a==="main"&&s){var l=i.pendingTimelineChange({type:"audio"});if(l&&l.to===n){return false}return true}return false};var cs=function e(t,i){var r=t&&typeof t.start==="number"&&typeof t.end==="number"?t.end-t.start:0;var n=i&&typeof i.start==="number"&&typeof i.end==="number"?i.end-i.start:0;return Math.max(r,n)};var ds=function e(t){var i=t.segmentDuration,r=t.maxDuration;if(!i){return false}return Math.round(i)>r+W};var fs=function e(t,i){if(i!=="hls"){return null}var r=cs(t.audioTimingInfo,t.videoTimingInfo);if(!r){return null}var n=t.playlist.targetDuration;var a=ds({segmentDuration:r,maxDuration:n*2});var s=ds({segmentDuration:r,maxDuration:n});var o="Segment with index "+t.mediaIndex+" "+("from playlist "+t.playlist.id+" ")+("has a duration of "+r+" ")+("when the reported duration is "+t.duration+" ")+("and the target duration is "+n+". ")+"For HLS content, a duration in excess of the target duration may result in "+"playback issues. See the HLS specification section on EXT-X-TARGETDURATION for "+"more details: "+"https://tools.ietf.org/html/draft-pantos-http-live-streaming-23#section-4.3.3.1";if(a||s){return{severity:a?"warn":"info",message:o}}return null};var hs=function(e){h(t,e);function t(t,i){var r;r=e.call(this)||this;if(!t){throw new TypeError("Initialization settings are required")}if(typeof t.currentTime!=="function"){throw new TypeError("No currentTime getter specified")}if(!t.mediaSource){throw new TypeError("No MediaSource specified")}r.bandwidth=t.bandwidth;r.throughput={rate:0,count:0};r.roundTrip=NaN;r.resetStats_();r.mediaIndex=null;r.hasPlayed_=t.hasPlayed;r.currentTime_=t.currentTime;r.seekable_=t.seekable;r.seeking_=t.seeking;r.duration_=t.duration;r.mediaSource_=t.mediaSource;r.vhs_=t.vhs;r.loaderType_=t.loaderType;r.currentMediaInfo_=void 0;r.startingMediaInfo_=void 0;r.segmentMetadataTrack_=t.segmentMetadataTrack;r.goalBufferLength_=t.goalBufferLength;r.sourceType_=t.sourceType;r.sourceUpdater_=t.sourceUpdater;r.inbandTextTracks_=t.inbandTextTracks;r.state_="INIT";r.handlePartialData_=t.handlePartialData;r.timelineChangeController_=t.timelineChangeController;r.shouldSaveSegmentTimingInfo_=true;r.parse708captions_=t.parse708captions;r.checkBufferTimeout_=null;r.error_=void 0;r.currentTimeline_=-1;r.pendingSegment_=null;r.xhrOptions_=null;r.pendingSegments_=[];r.audioDisabled_=false;r.isPendingTimestampOffset_=false;r.gopBuffer_=[];r.timeMapping_=0;r.safeAppend_=u["default"].browser.IE_VERSION>=11;r.appendInitSegment_={audio:true,video:true};r.playlistOfLastInitSegment_={audio:null,video:null};r.callQueue_=[];r.loadQueue_=[];r.metadataQueue_={id3:[],caption:[]};r.activeInitSegmentId_=null;r.initSegments_={};
1r.cacheEncryptionKeys_=t.cacheEncryptionKeys;r.keyCache_={};r.decrypter_=t.decrypter;r.syncController_=t.syncController;r.syncPoint_={segmentIndex:0,time:0};r.transmuxer_=r.createTransmuxer_();r.triggerSyncInfoUpdate_=function(){return r.trigger("syncinfoupdate")};r.syncController_.on("syncinfoupdate",r.triggerSyncInfoUpdate_);r.mediaSource_.addEventListener("sourceopen",function(){if(!r.isEndOfStream_()){r.ended_=false}});r.fetchAtBuffer_=false;r.logger_=ja("SegmentLoader["+r.loaderType_+"]");Object.defineProperty(d(r),"state",{get:function e(){return this.state_},set:function e(t){if(t!==this.state_){this.logger_(this.state_+" -> "+t);this.state_=t;this.trigger("statechange")}}});r.sourceUpdater_.on("ready",function(){if(r.hasEnoughInfoToAppend_()){r.processCallQueue_()}});if(r.loaderType_==="main"){r.timelineChangeController_.on("pendingtimelinechange",function(){if(r.hasEnoughInfoToAppend_()){r.processCallQueue_()}})}if(r.loaderType_==="audio"){r.timelineChangeController_.on("timelinechange",function(){if(r.hasEnoughInfoToLoad_()){r.processLoadQueue_()}if(r.hasEnoughInfoToAppend_()){r.processCallQueue_()}})}return r}var i=t.prototype;i.createTransmuxer_=function e(){var t=new ca;t.postMessage({action:"init",options:{parse708captions:this.parse708captions_,remux:false,alignGopsAtEnd:this.safeAppend_,keepOriginalTimestamps:true,handlePartialData:this.handlePartialData_}});return t};i.resetStats_=function e(){this.mediaBytesTransferred=0;this.mediaRequests=0;this.mediaRequestsAborted=0;this.mediaRequestsTimedout=0;this.mediaRequestsErrored=0;this.mediaTransferDuration=0;this.mediaSecondsLoaded=0};i.dispose=function e(){this.trigger("dispose");this.state="DISPOSED";this.pause();this.abort_();if(this.transmuxer_){this.transmuxer_.terminate();or.dispose()}this.resetStats_();if(this.checkBufferTimeout_){l["default"].clearTimeout(this.checkBufferTimeout_)}if(this.syncController_&&this.triggerSyncInfoUpdate_){this.syncController_.off("syncinfoupdate",this.triggerSyncInfoUpdate_)}this.off()};i.setAudio=function e(t){this.audioDisabled_=!t;if(t){this.appendInitSegment_.audio=true}else{this.sourceUpdater_.removeAudio(0,this.duration_())}};i.abort=function e(){if(this.state!=="WAITING"){if(this.pendingSegment_){this.pendingSegment_=null}return}this.abort_();this.state="READY";if(!this.paused()){this.monitorBuffer_()}};i.abort_=function e(){if(this.pendingSegment_&&this.pendingSegment_.abortRequests){this.pendingSegment_.abortRequests()}this.pendingSegment_=null;this.callQueue_=[];this.loadQueue_=[];this.metadataQueue_.id3=[];this.metadataQueue_.caption=[];this.timelineChangeController_.clearPendingTimelineChange(this.loaderType_)};i.checkForAbort_=function e(t){if(this.state==="APPENDING"&&!this.pendingSegment_){this.state="READY";return true}if(!this.pendingSegment_||this.pendingSegment_.requestId!==t){return true}return false};i.error=function e(t){if(typeof t!=="undefined"){t'),t[1].s.push('ength;t++){var i=ha[t];if(da["muxer"+i].test(e)){return true}}return false})};var ka="mp4a.40.2";var Ea="avc1.4d400d";var ja=function e(t){if(u["default"].log.debug){return u["default"].log.debug.bind(u["default"],"VHS:",t+" >")}return function(){}};var wa=ja("CodecUtils");var Ca=function e(t){var i=t.attributes||{};if(i.CODECS){return va(i.CODECS)}};var Ia=function e(t,i){var r=i.attributes||{};return t&&t.mediaGroups&&t.mediaGroups.AUDIO&&r.AUDIO&&t.mediaGroups.AUDIO[r.AUDIO]};var Aa=function e(t,i){if(!Ia(t,i)){return true}var r=i.attributes||{};var n=t.mediaGroups.AUDIO[r.AUDIO];for(var a in n){if(!n[a].uri&&!n[a].playlists){return true}}return false};var xa=function e(t){var i={};t.forEach(function(e){var t=e.mediaType,r=e.type,n=e.details;i[t]=i[t]||[];i[t].push(pa(""+r+n))});
1Object.keys(i).forEach(function(e){if(i[e].length>1){wa("multiple "+e+" codecs found as attributes: "+i[e].join(", ")+". Setting playlist codecs to null so that we wait for mux.js to probe segments for real codecs.");i[e]=null;return}i[e]=i[e][0]});return i};var Pa=function e(t){var i=0;if(t.audio){i++}if(t.video){i++}return i};var Oa=function e(t,i){var r=i.attributes||{};var n=xa(Ca(i)||[]);if(Ia(t,i)&&!n.audio){if(!Aa(t,i)){var a=xa(ma(t,r.AUDIO)||[]);if(a.audio){n.audio=a.audio}}}return n};var La=ja("PlaylistSelector");var Da=function e(t){if(!t||!t.playlist){return}var i=t.playlist;return JSON.stringify({id:i.id,bandwidth:t.bandwidth,width:t.width,height:t.height,codecs:i.attributes&&i.attributes.CODECS||""})};var Ra=function e(t,i){if(!t){return""}var r=l["default"].getComputedStyle(t);if(!r){return""}return r[i]};var Na=function e(t,i){var r=t.slice();t.sort(function(e,t){var n=i(e,t);if(n===0){return r.indexOf(e)-r.indexOf(t)}return n})};var Ma=function e(t,i){var r;var n;if(t.attributes.BANDWIDTH){r=t.attributes.BANDWIDTH}r=r||l["default"].Number.MAX_VALUE;if(i.attributes.BANDWIDTH){n=i.attributes.BANDWIDTH}n=n||l["default"].Number.MAX_VALUE;return r-n};var Ua=function e(t,i){var r;var n;if(t.attributes.RESOLUTION&&t.attributes.RESOLUTION.width){r=t.attributes.RESOLUTION.width}r=r||l["default"].Number.MAX_VALUE;if(i.attributes.RESOLUTION&&i.attributes.RESOLUTION.width){n=i.attributes.RESOLUTION.width}n=n||l["default"].Number.MAX_VALUE;if(r===n&&t.attributes.BANDWIDTH&&i.attributes.BANDWIDTH){return t.attributes.BANDWIDTH-i.attributes.BANDWIDTH}return r-n};var Ba=function e(t,i,r,n,a){if(!t){return}var s={bandwidth:i,width:r,height:n,limitRenditionByPlayerDimensions:a};var o=t.playlists.map(function(e){var t;var i=e.attributes.RESOLUTION&&e.attributes.RESOLUTION.width;var r=e.attributes.RESOLUTION&&e.attributes.RESOLUTION.height;t=e.attributes.BANDWIDTH;t=t||l["default"].Number.MAX_VALUE;return{bandwidth:t,width:i,height:r,playlist:e}});Na(o,function(e,t){return e.bandwidth-t.bandwidth});o=o.filter(function(e){return!be.isIncompatible(e.playlist)});var u=o.filter(function(e){return be.isEnabled(e.playlist)});if(!u.length){u=o.filter(function(e){return!be.isDisabled(e.playlist)})}var c=u.filter(function(e){return e.bandwidth*Gi.BANDWIDTH_VARIANCE<i});var d=c[c.length-1];var f=c.filter(function(e){return e.bandwidth===d.bandwidth})[0];if(a===false){var h=f||u[0]||o[0];if(h&&h.playlist){var p="sortedPlaylistReps";if(f){p="bandwidthBestRep"}if(u[0]){p="enabledPlaylistReps"}La("choosing "+Da(h)+" using "+p+" with options",s);return h.playlist}La("could not choose a playlist with options",s);return null}var v=c.filter(function(e){return e.width&&e.height});Na(v,function(e,t){return e.width-t.width});var m=v.filter(function(e){return e.width===r&&e.height===n});d=m[m.length-1];var g=m.filter(function(e){return e.bandwidth===d.bandwidth})[0];var y;var _;var b;if(!g){y=v.filter(function(e){return e.width>r||e.height>n});_=y.filter(function(e){return e.width===y[0].width&&e.height===y[0].height});d=_[_.length-1];b=_.filter(function(e){return e.bandwidth===d.bandwidth})[0]}var T=b||g||f||u[0]||o[0];if(T&&T.playlist){var S="sortedPlaylistReps";if(b){S="resolutionPlusOneRep"}else if(g){S="resolutionBestRep"}else if(f){S="bandwidthBestRep"}else if(u[0]){S="enabledPlaylistReps"}La("choosing "+Da(T)+" using "+S+" with options",s);return T.playlist}La("could not choose a playlist with options",s);return null};var Fa=function e(){var t=this.useDevicePixelRatio?l["default"].devicePixelRatio||1:1;return Ba(this.playlists.master,this.systemBandwidth,parseInt(Ra(this.tech_.el(),"width"),10)*t,parseInt(Ra(this.tech_.el(),"height"),10)*t,this.limitRenditionByPlayerDimensions)};var Ha=function e(t){var i=-1;if(t<0||t>1){throw new Error("Moving average bandwidth decay must be between 0 and 1.")}return function(){var e=this.useDevicePixelRatio?l["default"].devicePixelRatio||1:1;if(i<0){i=this.systemBandwidth}i=t*this.systemBandwidth+(1-t)*i;return Ba(this.playlists.master,i,parseInt(Ra(this.tech_.el(),"width"),10)*e,parseInt(Ra(this.tech_.el(),"height"),10)*e,this.limitRenditionByPlayerDimensions)}};var Va=function e(t){var i=t.master,r=t.currentTime,n=t.bandwidth,a=t.duration,s=t.segmentDuration,o=t.timeUntilRebuffer,l=t.currentTimeline,u=t.syncController;var c=i.playlists.filter(function(e){return!be.isIncompatible(e)}
1);var d=c.filter(be.isEnabled);if(!d.length){d=c.filter(function(e){return!be.isDisabled(e)})}var f=d.filter(be.hasAttribute.bind(null,"BANDWIDTH"));var h=f.map(function(e){var t=u.getSyncPoint(e,a,l,r);var i=t?1:2;var c=be.estimateSegmentRequestTime(s,n,e);var d=c*i-o;return{playlist:e,rebufferingImpact:d}});var p=h.filter(function(e){return e.rebufferingImpact<=0});Na(p,function(e,t){return Ma(t.playlist,e.playlist)});if(p.length){return p[0]}Na(h,function(e,t){return e.rebufferingImpact-t.rebufferingImpact});return h[0]||null};var qa=function e(){var t=this;var i=this.playlists.master.playlists.filter(be.isEnabled);Na(i,function(e,t){return Ma(e,t)});var r=i.filter(function(e){return!!Oa(t.playlists.master,e).video});return r[0]||null};var za=function e(t,i,r){if(!t[r]){i.trigger({type:"usage",name:"vhs-608"});i.trigger({type:"usage",name:"hls-608"});var n=i.textTracks().getTrackById(r);if(n){t[r]=n}else{t[r]=i.addRemoteTextTrack({kind:"captions",id:r,label:r},false).track}}};var Wa=function e(t){var i=t.inbandTextTracks,r=t.captionArray,n=t.timestampOffset;if(!r){return}var a=l["default"].WebKitDataCue||l["default"].VTTCue;r.forEach(function(e){var t=e.stream;i[t].addCue(new a(e.startTime+n,e.endTime+n,e.text))})};var Ga=function e(t){Object.defineProperties(t.frame,{id:{get:function e(){u["default"].log.warn("cue.frame.id is deprecated. Use cue.value.key instead.");return t.value.key}},value:{get:function e(){u["default"].log.warn("cue.frame.value is deprecated. Use cue.value.data instead.");return t.value.data}},privateData:{get:function e(){u["default"].log.warn("cue.frame.privateData is deprecated. Use cue.value.data instead.");return t.value.data}}})};var Ya=function e(t){var i=t.inbandTextTracks,r=t.metadataArray,n=t.timestampOffset,a=t.videoDuration;if(!r){return}var s=l["default"].WebKitDataCue||l["default"].VTTCue;var o=i.metadataTrack_;if(!o){return}r.forEach(function(e){var t=e.cueTime+n;if(typeof t!=="number"||l["default"].isNaN(t)||t<0||!(t<Infinity)){return}e.frames.forEach(function(e){var i=new s(t,t,e.value||e.url||e.data||"");i.frame=e;i.value=e;Ga(i);o.addCue(i)})});if(!o.cues||!o.cues.length){return}var u=o.cues;var c=[];for(var d=0;d<u.length;d++){if(u[d]){c.push(u[d])}}var f=c.reduce(function(e,t){var i=e[t.startTime]||[];i.push(t);e[t.startTime]=i;return e},{});var h=Object.keys(f).sort(function(e,t){return Number(e)-Number(t)});h.forEach(function(e,t){var i=f[e];var r=Number(h[t+1])||a;i.forEach(function(e){e.endTime=r})})};var Ka=function e(t,i,r){if(t.metadataTrack_){return}t.metadataTrack_=r.addRemoteTextTrack({kind:"metadata",label:"Timed Metadata"},false).track;t.metadataTrack_.inBandMetadataTrackDispatchType=i};var Xa=function e(t,i,r){var n;var a;if(!r){return}if(!r.cues){return}n=r.cues.length;while(n--){a=r.cues[n];if(a.startTime>=t&&a.endTime<=i){r.removeCue(a)}}};var Qa=function e(t){var i=t.cues;if(!i){return}for(var r=0;r<i.length;r++){var n=[];var a=0;for(var s=0;s<i.length;s++){if(i[r].startTime===i[s].startTime&&i[r].endTime===i[s].endTime&&i[r].text===i[s].text){a++;if(a>1){n.push(i[s])}}}if(n.length){n.forEach(function(e){return t.removeCue(e)})}}};var Ja=function e(t,i,r){if(typeof i==="undefined"||i===null||!t.length){return[]}var n=Math.ceil((i-r+3)*Kr.ONE_SECOND_IN_TS);var a;for(a=0;a<t.length;a++){if(t[a].pts>n){break}}return t.slice(a)};var Za=function e(t,i,r){if(!i.length){return t}if(r){return i.slice()}var n=i[0].pts;var a=0;for(a;a<t.length;a++){if(t[a].pts>=n){break}}return t.slice(0,a).concat(i)};var $a=function e(t,i,r,n){var a=Math.ceil((i-n)*Kr.ONE_SECOND_IN_TS);var s=Math.ceil((r-n)*Kr.ONE_SECOND_IN_TS);var o=t.slice();var l=t.length;while(l--){if(t[l].pts<=s){break}}if(l===-1){return o}var u=l+1;while(u--){if(t[u].pts<=a){break}}u=Math.max(u,0);o.splice(u,l-u+1);return o};var es=function e(t,i){if(!t&&!i||!t&&i||t&&!i){return false}if(t===i){return true}var r=Object.keys(t).sort();var n=Object.keys(i).sort();if(r.length!==n.length){return false}for(var a=0;a<r.length;a++){var s=r[a];if(s!==n[a]){return false}if(t[s]!==i[s]){return false}}return true};var ts=500;var is=function e(t){return typeof t==="number"&&isFinite(t)}
1;var rs=1/60;var ns=function e(t,i,r){if(t!=="main"||!i||!r){return null}if(!r.hasAudio&&!r.hasVideo){return"Neither audio nor video found in segment."}if(i.hasVideo&&!r.hasVideo){return"Only audio found in segment when we expected video."+" We can\'t switch to audio only from a stream that had video."+" To get rid of this message, please add codec information to the manifest."}if(!i.hasVideo&&r.hasVideo){return"Video found in segment when we expected only audio."+" We can\'t switch to a stream with video from an audio only stream."+" To get rid of this message, please add codec information to the manifest."}return null};var as=function e(t,i,r){var n=i-Gi.BACK_BUFFER_LENGTH;if(t.length){n=Math.max(n,t.start(0))}var a=i-r;return Math.min(a,n)};var ss=function e(t){var i=t.segment,r=i.start,n=i.end,a=t.playlist,s=a.mediaSequence,o=a.id,l=a.segments,u=l===void 0?[]:l,c=t.mediaIndex,d=t.timeline;return["appending ["+c+"] of ["+s+", "+(s+u.length)+"] from playlist ["+o+"]","["+r+" => "+n+"] in timeline ["+d+"]"].join(" ")};var os=function e(t){return t+"TimingInfo"};var ls=function e(t){var i=t.segmentTimeline,r=t.currentTimeline,n=t.startOfSegment,a=t.buffered,s=t.overrideCheck;if(!s&&i===r){return null}if(i<r){return n}return a.length?a.end(a.length-1):n};var us=function e(t){var i=t.timelineChangeController,r=t.currentTimeline,n=t.segmentTimeline,a=t.loaderType,s=t.audioDisabled;if(r===n){return false}if(a==="audio"){var o=i.lastTimelineChange({type:"main"});return!o||o.to!==n}if(a==="main"&&s){var l=i.pendingTimelineChange({type:"audio"});if(l&&l.to===n){return false}return true}return false};var cs=function e(t,i){var r=t&&typeof t.start==="number"&&typeof t.end==="number"?t.end-t.start:0;var n=i&&typeof i.start==="number"&&typeof i.end==="number"?i.end-i.start:0;return Math.max(r,n)};var ds=function e(t){var i=t.segmentDuration,r=t.maxDuration;if(!i){return false}return Math.round(i)>r+W};var fs=function e(t,i){if(i!=="hls"){return null}var r=cs(t.audioTimingInfo,t.videoTimingInfo);if(!r){return null}var n=t.playlist.targetDuration;var a=ds({segmentDuration:r,maxDuration:n*2});var s=ds({segmentDuration:r,maxDuration:n});var o="Segment with index "+t.mediaIndex+" "+("from playlist "+t.playlist.id+" ")+("has a duration of "+r+" ")+("when the reported duration is "+t.duration+" ")+("and the target duration is "+n+". ")+"For HLS content, a duration in excess of the target duration may result in "+"playback issues. See the HLS specification section on EXT-X-TARGETDURATION for "+"more details: "+"https://tools.ietf.org/html/draft-pantos-http-live-streaming-23#section-4.3.3.1";if(a||s){return{severity:a?"warn":"info",message:o}}return null};var hs=function(e){h(t,e);function t(t,i){var r;r=e.call(this)||this;if(!t){throw new TypeError("Initialization settings are required")}if(typeof t.currentTime!=="function"){throw new TypeError("No currentTime getter specified")}if(!t.mediaSource){throw new TypeError("No MediaSource specified")}r.bandwidth=t.bandwidth;r.throughput={rate:0,count:0};r.roundTrip=NaN;r.resetStats_();r.mediaIndex=null;r.hasPlayed_=t.hasPlayed;r.currentTime_=t.currentTime;r.seekable_=t.seekable;r.seeking_=t.seeking;r.duration_=t.duration;r.mediaSource_=t.mediaSource;r.vhs_=t.vhs;r.loaderType_=t.loaderType;r.currentMediaInfo_=void 0;r.startingMediaInfo_=void 0;r.segmentMetadataTrack_=t.segmentMetadataTrack;r.goalBufferLength_=t.goalBufferLength;r.sourceType_=t.sourceType;r.sourceUpdater_=t.sourceUpdater;r.inbandTextTracks_=t.inbandTextTracks;r.state_="INIT";r.handlePartialData_=t.handlePartialData;r.timelineChangeController_=t.timelineChangeController;r.shouldSaveSegmentTimingInfo_=true;r.parse708captions_=t.parse708captions;r.checkBufferTimeout_=null;r.error_=void 0;r.currentTimeline_=-1;r.pendingSegment_=null;r.xhrOptions_=null;r.pendingSegments_=[];r.audioDisabled_=false;r.isPendingTimestampOffset_=false;r.gopBuffer_=[];r.timeMapping_=0;r.safeAppend_=u["default"].browser.IE_VERSION>=11;r.appendInitSegment_={audio:true,video:true};r.playlistOfLastInitSegment_={audio:null,video:null};r.callQueue_=[];r.loadQueue_=[];r.metadataQueue_={id3:[],caption:[]};r.activeInitSegmentId_=null;r.initSegments_={};
1r.cacheEncryptionKeys_=t.cacheEncryptionKeys;r.keyCache_={};r.decrypter_=t.decrypter;r.syncController_=t.syncController;r.syncPoint_={segmentIndex:0,time:0};r.transmuxer_=r.createTransmuxer_();r.triggerSyncInfoUpdate_=function(){return r.trigger("syncinfoupdate")};r.syncController_.on("syncinfoupdate",r.triggerSyncInfoUpdate_);r.mediaSource_.addEventListener("sourceopen",function(){if(!r.isEndOfStream_()){r.ended_=false}});r.fetchAtBuffer_=false;r.logger_=ja("SegmentLoader["+r.loaderType_+"]");Object.defineProperty(d(r),"state",{get:function e(){return this.state_},set:function e(t){if(t!==this.state_){this.logger_(this.state_+" -> "+t);this.state_=t;this.trigger("statechange")}}});r.sourceUpdater_.on("ready",function(){if(r.hasEnoughInfoToAppend_()){r.processCallQueue_()}});if(r.loaderType_==="main"){r.timelineChangeController_.on("pendingtimelinechange",function(){if(r.hasEnoughInfoToAppend_()){r.processCallQueue_()}})}if(r.loaderType_==="audio"){r.timelineChangeController_.on("timelinechange",function(){if(r.hasEnoughInfoToLoad_()){r.processLoadQueue_()}if(r.hasEnoughInfoToAppend_()){r.processCallQueue_()}})}return r}var i=t.prototype;i.createTransmuxer_=function e(){var t=new ca;t.postMessage({action:"init",options:{parse708captions:this.parse708captions_,remux:false,alignGopsAtEnd:this.safeAppend_,keepOriginalTimestamps:true,handlePartialData:this.handlePartialData_}});return t};i.resetStats_=function e(){this.mediaBytesTransferred=0;this.mediaRequests=0;this.mediaRequestsAborted=0;this.mediaRequestsTimedout=0;this.mediaRequestsErrored=0;this.mediaTransferDuration=0;this.mediaSecondsLoaded=0};i.dispose=function e(){this.trigger("dispose");this.state="DISPOSED";this.pause();this.abort_();if(this.transmuxer_){this.transmuxer_.terminate();or.dispose()}this.resetStats_();if(this.checkBufferTimeout_){l["default"].clearTimeout(this.checkBufferTimeout_)}if(this.syncController_&&this.triggerSyncInfoUpdate_){this.syncController_.off("syncinfoupdate",this.triggerSyncInfoUpdate_)}this.off()};i.setAudio=function e(t){this.audioDisabled_=!t;if(t){this.appendInitSegment_.audio=true}else{this.sourceUpdater_.removeAudio(0,this.duration_())}};i.abort=function e(){if(this.state!=="WAITING"){if(this.pendingSegment_){this.pendingSegment_=null}return}this.abort_();this.state="READY";if(!this.paused()){this.monitorBuffer_()}};i.abort_=function e(){if(this.pendingSegment_&&this.pendingSegment_.abortRequests){this.pendingSegment_.abortRequests()}this.pendingSegment_=null;this.callQueue_=[];this.loadQueue_=[];this.metadataQueue_.id3=[];this.metadataQueue_.caption=[];this.timelineChangeController_.clearPendingTimelineChange(this.loaderType_)};i.checkForAbort_=function e(t){if(this.state==="APPENDING"&&!this.pendingSegment_){this.state="READY";return true}if(!this.pendingSegment_||this.pendingSegment_.requestId!==t){return true}return f'),t[0].s.push('his.logger_("error occurred:",t);this.error_=t}this.pendingSegment_=null;return this.error_};i.endOfStream=function e(){this.ended_=true;if(this.transmuxer_){or.reset(this.transmuxer_)}this.gopBuffer_.length=0;this.pause();this.trigger("ended")};i.buffered_=function e(){if(!this.sourceUpdater_||!this.startingMediaInfo_){return u["default"].createTimeRanges()}if(this.loaderType_==="main"){var t=this.startingMediaInfo_,i=t.hasAudio,r=t.hasVideo,n=t.isMuxed;if(r&&i&&!this.audioDisabled_&&!n){return this.sourceUpdater_.buffered()}if(r){return this.sourceUpdater_.videoBuffered()}}return this.sourceUpdater_.audioBuffered()};i.initSegmentForMap=function e(t,i){if(i===void 0){i=false}if(!t){return null}var r=De(t);var n=this.initSegments_[r];if(i&&!n&&t.bytes){this.initSegments_[r]=n={resolvedUri:t.resolvedUri,byterange:t.byterange,bytes:t.bytes,tracks:t.tracks,timescales:t.timescales}}return n||t};i.segmentKey=function e(t,i){if(i===void 0){i=false}if(!t){return null}var r=Re(t);var n=this.keyCache_[r];if(this.cacheEncryptionKeys_&&i&&!n&&t.bytes){this.keyCache_[r]=n={resolvedUri:t.resolvedUri,bytes:t.bytes}}var a={resolvedUri:(n||t).resolvedUri};if(n){a.bytes=n.bytes}return a};i.couldBeginLoading_=function e(){return this.playlist_&&!this.paused()};i.load=function e(){this.monitorBuffer_();if(!this.playlist_){return}this.syncController_.setDateTimeMapping(this.playlist_);if(this.state==="INIT"&&this.couldBeginLoading_()){return this.init_()}if(!this.couldBeginLoading_()||this.state!=="READY"&&this.state!=="INIT"){return}this.state="READY"};
1i.init_=function e(){this.state="READY";this.resetEverything();return this.monitorBuffer_()};i.playlist=function e(t,i){if(i===void 0){i={}}if(!t){return}var r=this.playlist_;var n=this.pendingSegment_;this.playlist_=t;this.xhrOptions_=i;if(this.state==="INIT"){t.syncInfo={mediaSequence:t.mediaSequence,time:0}}var a=null;if(r){if(r.id){a=r.id}else if(r.uri){a=r.uri}}this.logger_("playlist update ["+a+" => "+(t.id||t.uri)+"]");this.trigger("syncinfoupdate");if(this.state==="INIT"&&this.couldBeginLoading_()){return this.init_()}if(!r||r.uri!==t.uri){if(this.mediaIndex!==null||this.handlePartialData_){this.resyncLoader()}this.currentMediaInfo_=void 0;this.trigger("playlistupdate");return}var s=t.mediaSequence-r.mediaSequence;this.logger_("live window shift ["+s+"]");if(this.mediaIndex!==null){this.mediaIndex-=s}if(n){n.mediaIndex-=s;if(n.mediaIndex>=0){n.segment=t.segments[n.mediaIndex]}}this.syncController_.saveExpiredSegmentInfo(r,t)};i.pause=function e(){if(this.checkBufferTimeout_){l["default"].clearTimeout(this.checkBufferTimeout_);this.checkBufferTimeout_=null}};i.paused=function e(){return this.checkBufferTimeout_===null};i.resetEverything=function e(t){this.ended_=false;this.appendInitSegment_={audio:true,video:true};this.resetLoader();this.remove(0,Infinity,t);if(this.transmuxer_){this.transmuxer_.postMessage({action:"clearAllMp4Captions"})}};i.resetLoader=function e(){this.fetchAtBuffer_=false;this.resyncLoader()};i.resyncLoader=function e(){if(this.transmuxer_){or.reset(this.transmuxer_)}this.mediaIndex=null;this.syncPoint_=null;this.isPendingTimestampOffset_=false;this.callQueue_=[];this.loadQueue_=[];this.metadataQueue_.id3=[];this.metadataQueue_.caption=[];this.abort();if(this.transmuxer_){this.transmuxer_.postMessage({action:"clearParsedMp4Captions"})}};i.remove=function e(t,i,r){if(r===void 0){r=function e(){}}if(i===Infinity){i=this.duration_()}if(!this.sourceUpdater_||!this.currentMediaInfo_){return}var n=1;var a=function e(){n--;if(n===0){r()}};if(!this.audioDisabled_){n++;this.sourceUpdater_.removeAudio(t,i,a)}if(this.loaderType_==="main"&&this.currentMediaInfo_&&this.currentMediaInfo_.hasVideo){this.gopBuffer_=$a(this.gopBuffer_,t,i,this.timeMapping_);n++;this.sourceUpdater_.removeVideo(t,i,a)}for(var s in this.inbandTextTracks_){Xa(t,i,this.inbandTextTracks_[s])}Xa(t,i,this.segmentMetadataTrack_);a()};i.monitorBuffer_=function e(){if(this.checkBufferTimeout_){l["default"].clearTimeout(this.checkBufferTimeout_)}this.checkBufferTimeout_=l["default"].setTimeout(this.monitorBufferTick_.bind(this),1)};i.monitorBufferTick_=function e(){if(this.state==="READY"){this.fillBuffer_()}if(this.checkBufferTimeout_){l["default"].clearTimeout(this.checkBufferTimeout_)}this.checkBufferTimeout_=l["default"].setTimeout(this.monitorBufferTick_.bind(this),ts)};i.fillBuffer_=function e(){if(this.sourceUpdater_.updating()){return}if(!this.syncPoint_){this.syncPoint_=this.syncController_.getSyncPoint(this.playlist_,this.duration_(),this.currentTimeline_,this.currentTime_())}var t=this.buffered_();var i=this.checkBuffer_(t,this.playlist_,this.mediaIndex,this.hasPlayed_(),this.currentTime_(),this.syncPoint_);if(!i){return}i.timestampOffset=ls({segmentTimeline:i.timeline,currentTimeline:this.currentTimeline_,startOfSegment:i.startOfSegment,buffered:t,overrideCheck:this.isPendingTimestampOffset_});this.isPendingTimestampOffset_=false;if(typeof i.timestampOffset==="number"){this.timelineChangeController_.pendingTimelineChange({type:this.loaderType_,from:this.currentTimeline_,to:i.timeline})}this.loadSegment_(i)};i.isEndOfStream_=function e(t,i){if(t===void 0){t=this.mediaIndex}if(i===void 0){i=this.playlist_}if(!i||!this.mediaSource_){return false}var r=t+1===i.segments.length;return i.endList&&this.mediaSource_.readyState==="open"&&r};i.checkBuffer_=function e(t,i,r,n,a,s){var o=0;if(t.length){o=t.end(t.length-1)}var l=Math.max(0,o-a);if(!i.segments.length){return null}if(l>=this.goalBufferLength_()){return null}if(!n&&l>=1){return null}var u=null;var c;var d=false;if(s===null){u=this.getSyncSegmentCandidate_(i);d=true}else if(r!==null){var f=i.segments[r];if(f&&f.end){c=f.end}else{c=o}u=r+1}else if(this.fetchAtBuffer_){var h=be.getMediaInfoForTime(i,o,s.segmentIndex,s.time);u=h.mediaIndex;c=h.startTime}else{var p=be.getMediaInfoForTime(i,a,s.segmentIndex,s.time);u=p.mediaIndex;c=p.startTime}var v=this.generateSegmentInfo_(i,u,c,d);if(!v){return}if(this.mediaSource_&&this.playlist_&&v.mediaIndex===this.playlist_.segments.length-1&&this.mediaSource_.readyState==="ended"&&!this.seeking_()){return}this.logger_("checkBuffer_ returning "+v.uri,{segmentInfo:v,playlist:i,currentMediaIndex:r,nextMediaIndex:u,startOfSegment:c,isSyncRequest:d});return v};i.getSyncSegmentCandidate_=function e(t){var i=this;if(this.currentTimeline_===-1){return 0}
1var r=t.segments.map(function(e,t){return{timeline:e.timeline,segmentIndex:t}}).filter(function(e){return e.timeline===i.currentTimeline_});if(r.length){return r[Math.min(r.length-1,1)].segmentIndex}return Math.max(t.segments.length-1,0)};i.generateSegmentInfo_=function e(t,i,r,n){if(i<0||i>=t.segments.length){return null}var a=t.segments[i];var s=this.sourceUpdater_.audioBuffered();var o=this.sourceUpdater_.videoBuffered();var l;var u;if(s.length){l=s.end(s.length-1)-this.sourceUpdater_.audioTimestampOffset()}if(o.length){u=Ja(this.gopBuffer_,this.currentTime_()-this.sourceUpdater_.videoTimestampOffset(),this.timeMapping_)}return{requestId:"segment-loader-"+Math.random(),uri:a.resolvedUri,mediaIndex:i,isSyncRequest:n,startOfSegment:r,playlist:t,bytes:null,encryptedBytes:null,timestampOffset:null,timeline:a.timeline,duration:a.duration,segment:a,byteLength:0,transmuxer:this.transmuxer_,audioAppendStart:l,gopsToAlignWith:u}};i.earlyAbortWhenNeeded_=function e(t){if(this.vhs_.tech_.paused()||!this.xhrOptions_.timeout||!this.playlist_.attributes.BANDWIDTH){return}if(Date.now()-(t.firstBytesReceivedAt||Date.now())<1e3){return}var i=this.currentTime_();var r=t.bandwidth;var n=this.pendingSegment_.duration;var a=be.estimateSegmentRequestTime(n,r,this.playlist_,t.bytesReceived);var s=$(this.buffered_(),i,this.vhs_.tech_.playbackRate())-1;if(a<=s){return}var o=Va({master:this.vhs_.playlists.master,currentTime:i,bandwidth:r,duration:this.duration_(),segmentDuration:n,timeUntilRebuffer:s,currentTimeline:this.currentTimeline_,syncController:this.syncController_});if(!o){return}var l=a-s;var u=l-o.rebufferingImpact;var c=.5;if(s<=W){c=1}if(!o.playlist||o.playlist.uri===this.playlist_.uri||u<c){return}this.bandwidth=o.playlist.attributes.BANDWIDTH*Gi.BANDWIDTH_VARIANCE+1;this.trigger("earlyabort")};i.handleAbort_=function e(){this.mediaRequestsAborted+=1};i.handleProgress_=function e(t,i){this.earlyAbortWhenNeeded_(i.stats);if(this.checkForAbort_(i.requestId)){return}this.trigger("progress")};i.handleTrackInfo_=function e(t,i){this.earlyAbortWhenNeeded_(t.stats);if(this.checkForAbort_(t.requestId)){return}if(this.checkForIllegalMediaSwitch(i)){return}i=i||{};if(!es(this.currentMediaInfo_,i)){this.appendInitSegment_={audio:true,video:true};this.startingMediaInfo_=i;this.currentMediaInfo_=i;this.logger_("trackinfo update",i);this.trigger("trackinfo")}if(this.checkForAbort_(t.requestId)){return}this.pendingSegment_.trackInfo=i;if(this.hasEnoughInfoToAppend_()){this.processCallQueue_()}};i.handleTimingInfo_=function e(t,i,r,n){this.earlyAbortWhenNeeded_(t.stats);if(this.checkForAbort_(t.requestId)){return}var a=this.pendingSegment_;var s=os(i);a[s]=a[s]||{};a[s][r]=n;this.logger_("timinginfo: "+i+" - "+r+" - "+n);if(this.hasEnoughInfoToAppend_()){this.processCallQueue_()}};i.handleCaptions_=function e(t,i){var r=this;this.earlyAbortWhenNeeded_(t.stats);if(this.checkForAbort_(t.requestId)){return}if(i.length===0){this.logger_("SegmentLoader received no captions from a caption event");return}var n=this.pendingSegment_;if(!n.hasAppendedData_){this.metadataQueue_.caption.push(this.handleCaptions_.bind(this,t,i));return}var a=this.sourceUpdater_.videoTimestampOffset()===null?this.sourceUpdater_.audioTimestampOffset():this.sourceUpdater_.videoTimestampOffset();var s={};i.forEach(function(e){s[e.stream]=s[e.stream]||{startTime:Infinity,captions:[],endTime:0};var t=s[e.stream];t.startTime=Math.min(t.startTime,e.startTime+a);t.endTime=Math.max(t.endTime,e.endTime+a);t.captions.push(e)});Object.keys(s).forEach(function(e){var t=s[e],i=t.startTime,n=t.endTime,o=t.captions;var l=r.inbandTextTracks_;r.logger_("adding cues from "+i+" -> "+n+" for "+e);za(l,r.vhs_.tech_,e);Xa(i,n,l[e]);Wa({captionArray:o,inbandTextTracks:l,timestampOffset:a})});if(this.transmuxer_){this.transmuxer_.postMessage({action:"clearParsedMp4Captions"})}};i.handleId3_=function e(t,i,r){this.earlyAbortWhenNeeded_(t.stats);if(this.checkForAbort_(t.requestId)){return}var n=this.pendingSegment_;if(!n.hasAppendedData_){this.metadataQueue_.id3.push(this.handleId3_.bind(this,t,i,r));return}var a=this.sourceUpdater_.videoTimestampOffset()===null?this.sourceUpdater_.audioTimestampOffset():this.sourceUpdater_.videoTimestampOffset();Ka(this.inbandTextTracks_,r,this.vhs_.tech_);Ya({inbandTextTracks:this.inbandTextTracks_,metadataArray:i,timestampOffset:a,videoDuration:this.duration_()})};i.processMetadataQueue_=function e(){this.metadataQueue_.id3.forEach(function(e){return e()});this.metadataQueue_.caption.forEach(function(e){return e()});this.metadataQueue_.id3=[];this.metadataQueue_.caption=[]};i.processCallQueue_=function e(){var t=this.callQueue_;this.callQueue_=[];t.forEach(function(e){return e()})};i.processLoadQueue_=function e(){var t=this.loadQueue_;this.loadQueue_=[];t.forEach(function(e){return e()})};i.hasEnoughInfoToLoad_=function e(){if(this.loaderType_!=="audio"){return true}var t=this.pendingSegment_;if(!t){return false}if(!this.currentMediaInfo_){return true}if(us({timelineChangeController:this.timelineChangeController_,currentTimeline:this.currentTimeline_,segmentTimeline:t.timeline,loaderType:this.loaderType_,audioDisabled:this.audioDisabled_})){return false}return true};i.hasEnoughInfoToAppend_=function e(){if(!this.sourceUpdater_.ready()){return false}var t=this.pendingSegment_;if(!t||!t.trackInfo){return false}if(!this.handlePartialData_){var i=this.currentMediaInfo_,r=i.hasAudio,n=i.hasVideo,a=i.isMuxed;if(n&&!t.videoTimingInfo){return false}if(r&&!this.audioDisabled_&&!a&&!t.audioTimingInfo){return false}}if(us({timelineChangeController:this.timelineChangeController_,currentTimeline:this.currentTimeline_,segmentTimeline:t.timeline,loaderType:this.loaderType_,audioDisabled:this.audioDisabled_})){return false}return true};i.handleData_=function e(t,i){this.earlyAbortWhenNeeded_(t.stats);if(this.checkForAbort_(t.requestId)){return}if(this.callQueue_.length||!this.hasEnoughInfoToAppend_()){this.callQueue_.push(this.handleData_.bind(this,t,i));return}var r=this.pendingSegment_;this.setTimeMapping_(r.timeline);this.updateMediaSecondsLoaded_(r.segment);if(this.mediaSource_.readyState==="closed"){return}if(t.map){t.map=this.initSegmentForMap(t.map,true);r.segment.map=t.map}if(t.key){this.segmentKey(t.key,true)}r.isFmp4=t.isFmp4;r.timingInfo=r.timingInfo||{};if(r.isFmp4){this.trigger("fmp4");r.timingInfo.start=r[os(i.type)].start}else{var n=this.loaderType_==="main"&&this.currentMediaInfo_.hasVideo;var a;if(n){a=this.handlePartialData_?i.videoFramePtsTime:r.videoTimingInfo.start}r.timingInfo.start=this.trueSegmentStart_({currentStart:r.timingInfo.start,playlist:r.playlist,mediaIndex:r.mediaIndex,currentVideoTimestampOffset:this.sourceUpdater_.videoTimestampOffset(),useVideoTimingInfo:n,firstVideoFrameTimeForData:a,videoTimingInfo:r.videoTimingInfo,audioTimingInfo:r.audioTimingInfo})}this.updateAppendInitSegmentStatus(r,i.type);this.updateSourceBufferTimestampOffset_(r);r.hasAppendedData_=true;this.processMetadataQueue_();this.appendData_(r,i)};i.updateAppendInitSegmentStatus=function e(t,i){if(this.loaderType_==="main"&&typeof t.timestampOffset==="number"&&!t.changedTimestampOffset){this.appendInitSegment_={audio:true,video:true}}if(this.playlistOfLastInitSegment_[i]!==t.playlist){this.appendInitSegment_[i]=true}};i.getInitSegmentAndUpdateState_=function e(t){var i=t.type,r=t.initSegment,n=t.map,a=t.playlist;if(n){var s=De(n);if(this.activeInitSegmentId_===s){return null}r=this.initSegmentForMap(n,true).bytes;this.activeInitSegmentId_=s}if(r&&this.appendInitSegment_[i]){this.playlistOfLastInitSegment_[i]=a;this.appendInitSegment_[i]=n?true:false;this.activeInitSegmentId_=null;return r}return null};i.appendToSourceBuffer_=function e(t){var i=this;var r=t.segmentInfo,n=t.type,a=t.initSegment,s=t.data;var o=[s];var l=s.byteLength;if(a){o.unshift(a);l+=a.byteLength}var u=cn({bytes:l,segments:o});this.sourceUpdater_.appendBuffer({segmentInfo:r,type:n,bytes:u},function(e){if(e){i.error(n+" append of "+u.length+"b failed for segment #"+r.mediaIndex+" in playlist "+r.playlist.id);i.trigger("appenderror")}})};i.handleSegmentTimingInfo_=function e(t,i,r){if(!this.pendingSegment_||i!==this.pendingSegment_.requestId){return}var n=this.pendingSegment_.segment;var a=t+"TimingInfo";
1if(!n[a]){n[a]={}}n[a].transmuxerPrependedSeconds=r.prependedContentDuration||0;n[a].transmuxedPresentationStart=r.start.presentation;n[a].transmuxedDecodeStart=r.start.decode;n[a].transmuxedPresentationEnd=r.end.presentation;n[a].transmuxedDecodeEnd=r.end.decode;n[a].baseMediaDecodeTime=r.baseMediaDecodeTime};i.appendData_=function e(t,i){var r=i.type,n=i.data;if(!n||!n.byteLength){return}if(r==="audio"&&this.audioDisabled_){return}var a=this.getInitSegmentAndUpdateState_({type:r,initSegment:i.initSegment,playlist:t.playlist,map:t.isFmp4?t.segment.map:null});this.appendToSourceBuffer_({segmentInfo:t,type:r,initSegment:a,data:n})};i.loadSegment_=function e(t){var i=this;this.state="WAITING";this.pendingSegment_=t;this.trimBackBuffer_(t);if(typeof t.timestampOffset==="number"){if(this.transmuxer_){this.transmuxer_.postMessage({action:"clearAllMp4Captions"})}}if(!this.hasEnoughInfoToLoad_()){this.loadQueue_.push(function(){var e=i.buffered_();if(typeof t.timestampOffset==="number"){t.timestampOffset=ls({segmentTimeline:t.timeline,currentTimeline:i.currentTimeline_,startOfSegment:t.startOfSegment,buffered:e,overrideCheck:true})}delete t.audioAppendStart;var r=i.sourceUpdater_.audioBuffered();if(r.length){t.audioAppendStart=r.end(r.length-1)-i.sourceUpdater_.audioTimestampOffset()}i.updateTransmuxerAndRequestSegment_(t)});return}this.updateTransmuxerAndRequestSegment_(t)};i.updateTransmuxerAndRequestSegment_=function e(t){if(this.shouldUpdateTransmuxerTimestampOffset_(t.timestampOffset)){this.gopBuffer_.length=0;t.gopsToAlignWith=[];this.timeMapping_=0;this.transmuxer_.postMessage({action:"reset"});this.transmuxer_.postMessage({action:"setTimestampOffset",timestampOffset:t.timestampOffset})}var i=this.createSim'),t[1].s.push('alse};i.error=function e(t){if(typeof t!=="undefined"){this.logger_("error occurred:",t);this.error_=t}this.pendingSegment_=null;return this.error_};i.endOfStream=function e(){this.ended_=true;if(this.transmuxer_){or.reset(this.transmuxer_)}this.gopBuffer_.length=0;this.pause();this.trigger("ended")};i.buffered_=function e(){if(!this.sourceUpdater_||!this.startingMediaInfo_){return u["default"].createTimeRanges()}if(this.loaderType_==="main"){var t=this.startingMediaInfo_,i=t.hasAudio,r=t.hasVideo,n=t.isMuxed;if(r&&i&&!this.audioDisabled_&&!n){return this.sourceUpdater_.buffered()}if(r){return this.sourceUpdater_.videoBuffered()}}return this.sourceUpdater_.audioBuffered()};i.initSegmentForMap=function e(t,i){if(i===void 0){i=false}if(!t){return null}var r=De(t);var n=this.initSegments_[r];if(i&&!n&&t.bytes){this.initSegments_[r]=n={resolvedUri:t.resolvedUri,byterange:t.byterange,bytes:t.bytes,tracks:t.tracks,timescales:t.timescales}}return n||t};i.segmentKey=function e(t,i){if(i===void 0){i=false}if(!t){return null}var r=Re(t);var n=this.keyCache_[r];if(this.cacheEncryptionKeys_&&i&&!n&&t.bytes){this.keyCache_[r]=n={resolvedUri:t.resolvedUri,bytes:t.bytes}}var a={resolvedUri:(n||t).resolvedUri};if(n){a.bytes=n.bytes}return a};i.couldBeginLoading_=function e(){return this.playlist_&&!this.paused()};i.load=function e(){this.monitorBuffer_();if(!this.playlist_){return}this.syncController_.setDateTimeMapping(this.playlist_);if(this.state==="INIT"&&this.couldBeginLoading_()){return this.init_()}if(!this.couldBeginLoading_()||this.state!=="READY"&&this.state!=="INIT"){return}this.state="READY"};i.init_=function e(){this.state="READY";this.resetEverything();return this.monitorBuffer_()};i.playlist=function e(t,i){if(i===void 0){i={}}if(!t){return}var r=this.playlist_;var n=this.pendingSegment_;this.playlist_=t;this.xhrOptions_=i;if(this.state==="INIT"){t.syncInfo={mediaSequence:t.mediaSequence,time:0}}var a=null;if(r){if(r.id){a=r.id}else if(r.uri){a=r.uri}}this.logger_("playlist update ["+a+" => "+(t.id||t.uri)+"]");this.trigger("syncinfoupdate");if(this.state==="INIT"&&this.couldBeginLoading_()){return this.init_()}if(!r||r.uri!==t.uri){if(this.mediaIndex!==null||this.handlePartialData_){this.resyncLoader()}this.currentMediaInfo_=void 0;this.trigger("playlistupdate");return}var s=t.mediaSequence-r.mediaSequence;this.logger_("live window shift ["+s+"]");if(this.mediaIndex!==null){this.mediaIndex-=s}if(n){n.mediaIndex-=s;if(n.mediaIndex>=0){n.segment=t.segments[n.mediaIndex]}}this.syncController_.saveExpiredSegmentInfo(r,t)};i.pause=function e(){if(this.checkBufferTimeout_){l["default"].clearTimeout(this.checkBufferTimeout_);this.checkBufferTimeout_=null}};i.paused=function e(){return this.checkBufferTimeout_===null};i.resetEverything=function e(t){this.ended_=false;this.appendInitSegment_={audio:true,video:true};this.resetLoader();this.remove(0,Infinity,t);
1if(this.transmuxer_){this.transmuxer_.postMessage({action:"clearAllMp4Captions"})}};i.resetLoader=function e(){this.fetchAtBuffer_=false;this.resyncLoader()};i.resyncLoader=function e(){if(this.transmuxer_){or.reset(this.transmuxer_)}this.mediaIndex=null;this.syncPoint_=null;this.isPendingTimestampOffset_=false;this.callQueue_=[];this.loadQueue_=[];this.metadataQueue_.id3=[];this.metadataQueue_.caption=[];this.abort();if(this.transmuxer_){this.transmuxer_.postMessage({action:"clearParsedMp4Captions"})}};i.remove=function e(t,i,r){if(r===void 0){r=function e(){}}if(i===Infinity){i=this.duration_()}if(!this.sourceUpdater_||!this.currentMediaInfo_){return}var n=1;var a=function e(){n--;if(n===0){r()}};if(!this.audioDisabled_){n++;this.sourceUpdater_.removeAudio(t,i,a)}if(this.loaderType_==="main"&&this.currentMediaInfo_&&this.currentMediaInfo_.hasVideo){this.gopBuffer_=$a(this.gopBuffer_,t,i,this.timeMapping_);n++;this.sourceUpdater_.removeVideo(t,i,a)}for(var s in this.inbandTextTracks_){Xa(t,i,this.inbandTextTracks_[s])}Xa(t,i,this.segmentMetadataTrack_);a()};i.monitorBuffer_=function e(){if(this.checkBufferTimeout_){l["default"].clearTimeout(this.checkBufferTimeout_)}this.checkBufferTimeout_=l["default"].setTimeout(this.monitorBufferTick_.bind(this),1)};i.monitorBufferTick_=function e(){if(this.state==="READY"){this.fillBuffer_()}if(this.checkBufferTimeout_){l["default"].clearTimeout(this.checkBufferTimeout_)}this.checkBufferTimeout_=l["default"].setTimeout(this.monitorBufferTick_.bind(this),ts)};i.fillBuffer_=function e(){if(this.sourceUpdater_.updating()){return}if(!this.syncPoint_){this.syncPoint_=this.syncController_.getSyncPoint(this.playlist_,this.duration_(),this.currentTimeline_,this.currentTime_())}var t=this.buffered_();var i=this.checkBuffer_(t,this.playlist_,this.mediaIndex,this.hasPlayed_(),this.currentTime_(),this.syncPoint_);if(!i){return}i.timestampOffset=ls({segmentTimeline:i.timeline,currentTimeline:this.currentTimeline_,startOfSegment:i.startOfSegment,buffered:t,overrideCheck:this.isPendingTimestampOffset_});this.isPendingTimestampOffset_=false;if(typeof i.timestampOffset==="number"){this.timelineChangeController_.pendingTimelineChange({type:this.loaderType_,from:this.currentTimeline_,to:i.timeline})}this.loadSegment_(i)};i.isEndOfStream_=function e(t,i){if(t===void 0){t=this.mediaIndex}if(i===void 0){i=this.playlist_}if(!i||!this.mediaSource_){return false}var r=t+1===i.segments.length;return i.endList&&this.mediaSource_.readyState==="open"&&r};i.checkBuffer_=function e(t,i,r,n,a,s){var o=0;if(t.length){o=t.end(t.length-1)}var l=Math.max(0,o-a);if(!i.segments.length){return null}if(l>=this.goalBufferLength_()){return null}if(!n&&l>=1){return null}var u=null;var c;var d=false;if(s===null){u=this.getSyncSegmentCandidate_(i);d=true}else if(r!==null){var f=i.segments[r];if(f&&f.end){c=f.end}else{c=o}u=r+1}else if(this.fetchAtBuffer_){var h=be.getMediaInfoForTime(i,o,s.segmentIndex,s.time);u=h.mediaIndex;c=h.startTime}else{var p=be.getMediaInfoForTime(i,a,s.segmentIndex,s.time);u=p.mediaIndex;c=p.startTime}var v=this.generateSegmentInfo_(i,u,c,d);if(!v){return}if(this.mediaSource_&&this.playlist_&&v.mediaIndex===this.playlist_.segments.length-1&&this.mediaSource_.readyState==="ended"&&!this.seeking_()){return}this.logger_("checkBuffer_ returning "+v.uri,{segmentInfo:v,playlist:i,currentMediaIndex:r,nextMediaIndex:u,startOfSegment:c,isSyncRequest:d});return v};i.getSyncSegmentCandidate_=function e(t){var i=this;if(this.currentTimeline_===-1){return 0}var r=t.segments.map(function(e,t){return{timeline:e.timeline,segmentIndex:t}}).filter(function(e){return e.timeline===i.currentTimeline_});if(r.length){return r[Math.min(r.length-1,1)].segmentIndex}return Math.max(t.segments.length-1,0)};i.generateSegmentInfo_=function e(t,i,r,n){if(i<0||i>=t.segments.length){return null}var a=t.segments[i];var s=this.sourceUpdater_.audioBuffered();var o=this.sourceUpdater_.videoBuffered();var l;var u;if(s.length){l=s.end(s.length-1)-this.sourceUpdater_.audioTimestampOffset()}if(o.length){u=Ja(this.gopBuffer_,this.currentTime_()-this.sourceUpdater_.videoTimestampOffset(),this.timeMapping_)}return{requestId:"segment-loader-"+Math.random(),uri:a.resolvedUri,mediaIndex:i,isSyncRequest:n,startOfSegment:r,playlist:t,bytes:null,encryptedBytes:null,timestampOffset:null,timeline:a.timeline,duration:a.duration,segment:a,byteLength:0,transmuxer:this.transmuxer_,audioAppendStart:l,gopsToAlignWith:u}};i.earlyAbortWhenNeeded_=function e(t){if(this.vhs_.tech_.paused()||!this.xhrOptions_.timeout||!this.playlist_.attributes.BANDWIDTH){return}if(Date.now()-(t.firstBytesReceivedAt||Date.now())<1e3){return}var i=this.currentTime_();var r=t.bandwidth;var n=this.pendingSegment_.duration;var a=be.estimateSegmentRequestTime(n,r,this.playlist_,t.bytesReceived);var s=$(this.buffered_(),i,this.vhs_.tech_.playbackRate())-1;if(a<=s){return}var o=Va({master:this.vhs_.playlists.master,currentTime:i,bandwidth:r,duration:this.duration_(),segmentDuration:n,timeUntilRebuffer:s,currentTimeline:this.currentTimeline_,syncController:this.syncController_});if(!o){return}var l=a-s;var u=l-o.rebufferingImpact;var c=.5;if(s<=W){c=1}if(!o.playlist||o.playlist.uri===this.playlist_.uri||u<c){return}this.bandwidth=o.playlist.attributes.BANDWIDTH*Gi.BANDWIDTH_VARIANCE+1;this.trigger("earlyabort")};i.handleAbort_=function e(){this.mediaRequestsAborted+=1};i.handleProgress_=function e(t,i){this.earlyAbortWhenNeeded_(i.stats);if(this.checkForAbort_(i.requestId)){return}this.trigger("progress")};i.handleTrackInfo_=function e(t,i){this.earlyAbortWhenNeeded_(t.stats);if(this.checkForAbort_(t.requestId)){return}if(this.checkForIllegalMediaSwitch(i)){return}i=i||{};if(!es(this.currentMediaInfo_,i)){this.appendInitSegment_={audio:true,video:true};this.startingMediaInfo_=i;this.currentMediaInfo_=i;this.logger_("trackinfo update",i);this.trigger("trackinfo")}if(this.checkForAbort_(t.requestId)){return}this.pendingSegment_.trackInfo=i;if(this.hasEnoughInfoToAppend_()){this.processCallQueue_()}};i.handleTimingInfo_=function e(t,i,r,n){this.earlyAbortWhenNeeded_(t.stats);if(this.checkForAbort_(t.requestId)){return}var a=this.pendingSegment_;var s=os(i);a[s]=a[s]||{};a[s][r]=n;this.logger_("timinginfo: "+i+" - "+r+" - "+n);if(this.hasEnoughInfoToAppend_()){this.processCallQueue_()}};i.handleCaptions_=function e(t,i){var r=this;this.earlyAbortWhenNeeded_(t.stats);if(this.checkForAbort_(t.requestId)){return}if(i.length===0){this.logger_("SegmentLoader received no captions from a caption event");return}var n=this.pendingSegment_;if(!n.hasAppendedData_){this.metadataQueue_.caption.push(this.handleCaptions_.bind(this,t,i));return}var a=this.sourceUpdater_.videoTimestampOffset()===null?this.sourceUpdater_.audioTimestampOffset():this.sourceUpdater_.videoTimestampOffset();var s={};
1i.forEach(function(e){s[e.stream]=s[e.stream]||{startTime:Infinity,captions:[],endTime:0};var t=s[e.stream];t.startTime=Math.min(t.startTime,e.startTime+a);t.endTime=Math.max(t.endTime,e.endTime+a);t.captions.push(e)});Object.keys(s).forEach(function(e){var t=s[e],i=t.startTime,n=t.endTime,o=t.captions;var l=r.inbandTextTracks_;r.logger_("adding cues from "+i+" -> "+n+" for "+e);za(l,r.vhs_.tech_,e);Xa(i,n,l[e]);Wa({captionArray:o,inbandTextTracks:l,timestampOffset:a})});if(this.transmuxer_){this.transmuxer_.postMessage({action:"clearParsedMp4Captions"})}};i.handleId3_=function e(t,i,r){this.earlyAbortWhenNeeded_(t.stats);if(this.checkForAbort_(t.requestId)){return}var n=this.pendingSegment_;if(!n.hasAppendedData_){this.metadataQueue_.id3.push(this.handleId3_.bind(this,t,i,r));return}var a=this.sourceUpdater_.videoTimestampOffset()===null?this.sourceUpdater_.audioTimestampOffset():this.sourceUpdater_.videoTimestampOffset();Ka(this.inbandTextTracks_,r,this.vhs_.tech_);Ya({inbandTextTracks:this.inbandTextTracks_,metadataArray:i,timestampOffset:a,videoDuration:this.duration_()})};i.processMetadataQueue_=function e(){this.metadataQueue_.id3.forEach(function(e){return e()});this.metadataQueue_.caption.forEach(function(e){return e()});this.metadataQueue_.id3=[];this.metadataQueue_.caption=[]};i.processCallQueue_=function e(){var t=this.callQueue_;this.callQueue_=[];t.forEach(function(e){return e()})};i.processLoadQueue_=function e(){var t=this.loadQueue_;this.loadQueue_=[];t.forEach(function(e){return e()})};i.hasEnoughInfoToLoad_=function e(){if(this.loaderType_!=="audio"){return true}var t=this.pendingSegment_;if(!t){return false}if(!this.currentMediaInfo_){return true}if(us({timelineChangeController:this.timelineChangeController_,currentTimeline:this.currentTimeline_,segmentTimeline:t.timeline,loaderType:this.loaderType_,audioDisabled:this.audioDisabled_})){return false}return true};i.hasEnoughInfoToAppend_=function e(){if(!this.sourceUpdater_.ready()){return false}var t=this.pendingSegment_;if(!t||!t.trackInfo){return false}if(!this.handlePartialData_){var i=this.currentMediaInfo_,r=i.hasAudio,n=i.hasVideo,a=i.isMuxed;if(n&&!t.videoTimingInfo){return false}if(r&&!this.audioDisabled_&&!a&&!t.audioTimingInfo){return false}}if(us({timelineChangeController:this.timelineChangeController_,currentTimeline:this.currentTimeline_,segmentTimeline:t.timeline,loaderType:this.loaderType_,audioDisabled:this.audioDisabled_})){return false}return true};i.handleData_=function e(t,i){this.earlyAbortWhenNeeded_(t.stats);if(this.checkForAbort_(t.requestId)){return}if(this.callQueue_.length||!this.hasEnoughInfoToAppend_()){this.callQueue_.push(this.handleData_.bind(this,t,i));return}var r=this.pendingSegment_;this.setTimeMapping_(r.timeline);this.updateMediaSecondsLoaded_(r.segment);if(this.mediaSource_.readyState==="closed"){return}if(t.map){t.map=this.initSegmentForMap(t.map,true);r.segment.map=t.map}if(t.key){this.segmentKey(t.key,true)}r.isFmp4=t.isFmp4;r.timingInfo=r.timingInfo||{};if(r.isFmp4){this.trigger("fmp4");r.timingInfo.start=r[os(i.type)].start}else{var n=this.loaderType_==="main"&&this.currentMediaInfo_.hasVideo;var a;if(n){a=this.handlePartialData_?i.videoFramePtsTime:r.videoTimingInfo.start}r.timingInfo.start=this.trueSegmentStart_({currentStart:r.timingInfo.start,playlist:r.playlist,mediaIndex:r.mediaIndex,currentVideoTimestampOffset:this.sourceUpdater_.videoTimestampOffset(),useVideoTimingInfo:n,firstVideoFrameTimeForData:a,videoTimingInfo:r.videoTimingInfo,audioTimingInfo:r.audioTimingInfo})}this.updateAppendInitSegmentStatus(r,i.type);this.updateSourceBufferTimestampOffset_(r);r.hasAppendedData_=true;this.processMetadataQueue_();this.appendData_(r,i)};i.updateAppendInitSegmentStatus=function e(t,i){if(this.loaderType_==="main"&&typeof t.timestampOffset==="number"&&!t.changedTimestampOffset){this.appendInitSegment_={audio:true,video:true}}if(this.playlistOfLastInitSegment_[i]!==t.playlist){this.appendInitSegment_[i]=true}};i.getInitSegmentAndUpdateState_=function e(t){var i=t.type,r=t.initSegment,n=t.map,a=t.playlist;if(n){var s=De(n);if(this.activeInitSegmentId_===s){return null}r=this.initSegmentForMap(n,true).bytes;this.activeInitSegmentId_=s}if(r&&this.appendInitSegment_[i]){this.playlistOfLastInitSegment_[i]=a;this.appendInitSegment_[i]=n?true:false;this.activeInitSegmentId_=null;return r}return null};i.appendToSourceBuffer_=function e(t){var i=this;var r=t.segmentInfo,n=t.type,a=t.initSegment,s=t.data;var o=[s];var l=s.byteLength;if(a){o.unshift(a);l+=a.byteLength}var u=cn({bytes:l,segments:o});this.sourceUpdater_.appendBuffer({segmentInfo:r,type:n,bytes:u},function(e){if(e){i.error(n+" append of "+u.length+"b failed for segment #"+r.mediaIndex+" in playlist "+r.playlist.id);i.trigger("appenderror")}})};i.handleSegmentTimingInfo_=function e(t,i,r){if(!this.pendingSegment_||i!==this.pendingSegment_.requestId){return}var n=this.pendingSegment_.segment;var a=t+"TimingInfo";
1if(!n[a]){n[a]={}}n[a].transmuxerPrependedSeconds=r.prependedContentDuration||0;n[a].transmuxedPresentationStart=r.start.presentation;n[a].transmuxedDecodeStart=r.start.decode;n[a].transmuxedPresentationEnd=r.end.presentation;n[a].transmuxedDecodeEnd=r.end.decode;n[a].baseMediaDecodeTime=r.baseMediaDecodeTime};i.appendData_=function e(t,i){var r=i.type,n=i.data;if(!n||!n.byteLength){return}if(r==="audio"&&this.audioDisabled_){return}var a=this.getInitSegmentAndUpdateState_({type:r,initSegment:i.initSegment,playlist:t.playlist,map:t.isFmp4?t.segment.map:null});this.appendToSourceBuffer_({segmentInfo:t,type:r,initSegment:a,data:n})};i.loadSegment_=function e(t){var i=this;this.state="WAITING";this.pendingSegment_=t;this.trimBackBuffer_(t);if(typeof t.timestampOffset==="number"){if(this.transmuxer_){this.transmuxer_.postMessage({action:"clearAllMp4Captions"})}}if(!this.hasEnoughInfoToLoad_()){this.loadQueue_.push(function(){var e=i.buffered_();if(typeof t.timestampOffset==="number"){t.timestampOffset=ls({segmentTimeline:t.timeline,currentTimeline:i.currentTimeline_,startOfSegment:t.startOfSegment,buffered:e,overrideCheck:true})}delete t.audioAppendStart;var r=i.sourceUpdater_.audioBuffered();if(r.length){t.audioAppendStart=r.end(r.length-1)-i.sourceUpdater_.audioTimestampOffset()}i.updateTransmuxerAndRequestSegment_(t)});return}this.updateTransmuxerAndRequestSegment_(t)};i.updateTransmuxerAndRequestSegment_=function e(t){if(this.shouldUpdateTransmuxerTimestampOffset_(t.timestampOffset)){this.gopBuffer_.length=0;t.gopsToAlignWith=[];this.timeMapping_=0;this.transmuxer_.postMessage({action:"reset"});this.transmuxer_.postMessage({action:"setTimestampOffset",'),t[0].s.push('plifiedSegmentObj_(t);t.abortRequests=Jn({xhr:this.vhs_.xhr,xhrOptions:this.xhrOptions_,decryptionWorker:this.decrypter_,segment:i,handlePartialData:this.handlePartialData_,abortFn:this.handleAbort_.bind(this),progressFn:this.handleProgress_.bind(this),trackInfoFn:this.handleTrackInfo_.bind(this),timingInfoFn:this.handleTimingInfo_.bind(this),videoSegmentTimingInfoFn:this.handleSegmentTimingInfo_.bind(this,"video",t.requestId),audioSegmentTimingInfoFn:this.handleSegmentTimingInfo_.bind(this,"audio",t.requestId),captionsFn:this.handleCaptions_.bind(this),id3Fn:this.handleId3_.bind(this),dataFn:this.handleData_.bind(this),doneFn:this.segmentRequestFinished_.bind(this)})};i.trimBackBuffer_=function e(t){var i=as(this.seekable_(),this.currentTime_(),this.playlist_.targetDuration||10);if(i>0){this.remove(0,i)}};i.createSimplifiedSegmentObj_=function e(t){var i=t.segment;var r={resolvedUri:i.resolvedUri,byterange:i.byterange,requestId:t.requestId,transmuxer:t.transmuxer,audioAppendStart:t.audioAppendStart,gopsToAlignWith:t.gopsToAlignWith};var n=t.playlist.segments[t.mediaIndex-1];if(n&&n.timeline===i.timeline){if(n.videoTimingInfo){r.baseStartTime=n.videoTimingInfo.transmuxedDecodeEnd}else if(n.audioTimingInfo){r.baseStartTime=n.audioTimingInfo.transmuxedDecodeEnd}}if(i.key){var a=i.key.iv||new Uint32Array([0,0,0,t.mediaIndex+t.playlist.mediaSequence]);r.key=this.segmentKey(i.key);r.key.iv=a}if(i.map){r.map=this.initSegmentForMap(i.map)}return r};i.saveTransferStats_=function e(t){this.mediaRequests+=1;if(t){this.mediaBytesTransferred+=t.bytesReceived;this.mediaTransferDuration+=t.roundTripTime}};i.saveBandwidthRelatedStats_=function e(t,i){this.pendingSegment_.byteLength=i.bytesReceived;if(t<rs){this.logger_("Ignoring segment\'s bandwidth because its duration of "+t+(" is less than the min to record "+rs));return}this.bandwidth=i.bandwidth;this.roundTrip=i.roundTripTime};i.handleTimeout_=function e(){this.mediaRequestsTimedout+=1;this.bandwidth=1;this.roundTrip=NaN;this.trigger("bandwidthupdate")};i.segmentRequestFinished_=function e(t,i,r){if(this.callQueue_.length){this.callQueue_.push(this.segmentRequestFinished_.bind(this,t,i,r));return}this.saveTransferStats_(i.stats);if(!this.pendingSegment_){return}if(i.requestId!==this.pendingSegment_.requestId){return}if(t){this.pendingSegment_=null;this.state="READY";if(t.code===Mn.ABORTED){return}this.pause();if(t.code===Mn.TIMEOUT){this.handleTimeout_();return}this.mediaRequestsErrored+=1;this.error(t);this.trigger("error");return}var n=this.pendingSegment_;this.saveBandwidthRelatedStats_(n.duration,i.stats);n.endOfAllRequests=i.endOfAllRequests;if(r.gopInfo){this.gopBuffer_=Za(this.gopBuffer_,r.gopInfo,this.safeAppend_)}this.state="APPENDING";
1var a=this.isEndOfStream_(n.mediaIndex,n.playlist);var s=this.mediaIndex!==null;var o=n.timeline!==this.currentTimeline_&&n.timeline>0;if(!n.isFmp4&&(a||s&&o)){or.endTimeline(this.transmuxer_)}this.trigger("appending");this.waitForAppendsToComplete_(n)};i.setTimeMapping_=function e(t){var i=this.syncController_.mappingForTimeline(t);if(i!==null){this.timeMapping_=i}};i.updateMediaSecondsLoaded_=function e(t){if(typeof t.start==="number"&&typeof t.end==="number"){this.mediaSecondsLoaded+=t.end-t.start}else{this.mediaSecondsLoaded+=t.duration}};i.shouldUpdateTransmuxerTimestampOffset_=function e(t){if(t===null){return false}if(this.loaderType_==="main"&&t!==this.sourceUpdater_.videoTimestampOffset()){return true}if(!this.audioDisabled_&&t!==this.sourceUpdater_.audioTimestampOffset()){return true}return false};i.trueSegmentStart_=function e(t){var i=t.currentStart,r=t.playlist,n=t.mediaIndex,a=t.firstVideoFrameTimeForData,s=t.currentVideoTimestampOffset,o=t.useVideoTimingInfo,l=t.videoTimingInfo,u=t.audioTimingInfo;if(typeof i!=="undefined"){return i}if(!o){return u.start}var c=r.segments[n-1];if(n===0||!c||typeof c.start==="undefined"||c.end!==a+s){return a}return l.start};i.waitForAppendsToComplete_=function e(t){if(!this.currentMediaInfo_){this.error({message:"No starting media returned, likely due to an unsupported media format.",blacklistDuration:Infinity});this.trigger("error");return}var i=this.currentMediaInfo_,r=i.hasAudio,n=i.hasVideo,a=i.isMuxed;var s=this.loaderType_==="main"&&n;var o=!this.audioDisabled_&&r&&!a;t.waitingOnAppends=0;if(!t.hasAppendedData_){if(!t.timingInfo&&typeof t.timestampOffset==="number"){this.isPendingTimestampOffset_=true}t.timingInfo={start:0};t.waitingOnAppends++;if(!this.isPendingTimestampOffset_){this.updateSourceBufferTimestampOffset_(t);this.processMetadataQueue_()}this.checkAppendsDone_(t);return}if(s){t.waitingOnAppends++}if(o){t.waitingOnAppends++}if(s){this.sourceUpdater_.videoQueueCallback(this.checkAppendsDone_.bind(this,t))}if(o){this.sourceUpdater_.audioQueueCallback(this.checkAppendsDone_.bind(this,t))}};i.checkAppendsDone_=function e(t){if(this.checkForAbort_(t.requestId)){return}t.waitingOnAppends--;if(t.waitingOnAppends===0){this.handleAppendsDone_()}};i.checkForIllegalMediaSwitch=function e(t){var i=ns(this.loaderType_,this.currentMediaInfo_,t);if(i){this.error({message:i,blacklistDuration:Infinity});this.trigger("error");return true}return false};i.updateSourceBufferTimestampOffset_=function e(t){if(t.timestampOffset===null||typeof t.timingInfo.start!=="number"||t.changedTimestampOffset||this.loaderType_!=="main"){return}var i=false;t.timestampOffset-=t.timingInfo.start;t.changedTimestampOffset=true;if(t.timestampOffset!==this.sourceUpdater_.videoTimestampOffset()){this.sourceUpdater_.videoTimestampOffset(t.timestampOffset);i=true}if(t.timestampOffset!==this.sourceUpdater_.audioTimestampOffset()){this.sourceUpdater_.audioTimestampOffset(t.timestampOffset);i=true}if(i){this.trigger("timestampoffset")}};i.updateTimingInfoEnd_=function e(t){t.timingInfo=t.timingInfo||{};var i=this.loaderType_==="main"&&this.currentMediaInfo_.hasVideo;var r=i&&t.videoTimingInfo?t.videoTimingInfo:t.audioTimingInfo;if(!r){return}t.timingInfo.end=typeof r.end==="number"?r.end:r.start+t.duration};i.handleAppendsDone_=function e(){if(this.pendingSegment_){this.trigger("appendsdone")}if(!this.pendingSegment_){this.state="READY";if(!this.paused()){this.monitorBuffer_()}return}var t=this.pendingSegment_;this.updateTimingInfoEnd_(t);if(this.shouldSaveSegmentTimingInfo_){this.syncController_.saveSegmentTimingInfo({segmentInfo:t,shouldSaveTimelineMapping:this.loaderType_==="main"})}this.logger_(ss(t));var i=fs(t,this.sourceType_);if(i){if(i.severity==="warn"){u["default"].log.warn(i.message)}else{this.logger_(i.message)}}this.recordThroughput_(t);this.pendingSegment_=null;this.state="READY";if(t.isSyncRequest){this.trigger("syncinfoupdate");return}this.addSegmentMetadataCue_(t);this.fetchAtBuffer_=true;if(this.currentTimeline_!==t.timeline){this.timelineChangeController_.lastTimelineChange({type:this.loaderType_,from:this.currentTimeline_,to:t.timeline});if(this.loaderType_==="main"&&!this.audioDisabled_){this.timelineChangeController_.lastTimelineChange({type:"audio",from:this.currentTimeline_,to:t.timeline})}}this.currentTimeline_=t.timeline;this.trigger("syncinfoupdate");var r=t.segment;if(r.end&&this.currentTime_()-r.end>t.playlist.targetDuration*3){this.resetEverything();return}var n=this.mediaIndex!==null;if(n){this.trigger("bandwidthupdate")}this.trigger("progress");this.mediaIndex=t.mediaIndex;
1if(this.isEndOfStream_(t.mediaIndex,t.playlist)){this.endOfStream()}this.trigger("appended");if(!this.paused()){this.monitorBuffer_()}};i.recordThroughput_=function e(t){if(t.duration<rs){this.logger_("Ignoring segment\'s throughput because its duration of "+t.duration+(" is less than the min to record "+rs));return}var i=this.throughput.rate;var r=Date.now()-t.endOfAllRequests+1;var n=Math.floor(t.byteLength/r*8*1e3);this.throughput.rate+=(n-i)/++this.throughput.count};i.addSegmentMetadataCue_=function e(t){if(!this.segmentMetadataTrack_){return}var i=t.segment;var r=i.start;var n=i.end;if(!is(r)||!is(n)){return}Xa(r,n,this.segmentMetadataTrack_);var a=l["default"].WebKitDataCue||l["default"].VTTCue;var s={custom:i.custom,dateTimeObject:i.dateTimeObject,dateTimeString:i.dateTimeString,bandwidth:t.playlist.attributes.BANDWIDTH,resolution:t.playlist.attributes.RESOLUTION,codecs:t.playlist.attributes.CODECS,byteLength:t.byteLength,uri:t.uri,timeline:t.timeline,playlist:t.playlist.id,start:r,end:n};var o=JSON.stringify(s);var u=new a(r,n,o);u.value=s;this.segmentMetadataTrack_.addCue(u)};return t}(u["default"].EventTarget);function ps(){}var vs=function e(t){if(typeof t!=="string"){return t}return t.replace(/./,function(e){return e.toUpperCase()})};var ms=["video","audio"];var gs=function e(t,i){var r=i[t+"Buffer"];return r&&r.updating||i.queuePending[t]};var ys=function e(t,i){for(var r=0;r<i.length;r++){var n=i[r];if(n.type==="mediaSource"){return null}if(n.type===t){return r}}return null};var _s=function e(t,i){if(i.queue.length===0){return}var r=0;var n=i.queue[r];if(n.type==="mediaSource"){if(!i.updating()&&i.mediaSource.readyState!=="closed"){i.queue.shift();n.action(i);if(n.doneFn){n.doneFn()}e("audio",i);e("video",i)}return}if(t==="mediaSource"){return}if(!i.ready()||i.mediaSource.readyState==="closed"||gs(t,i)){return}if(n.type!==t){r=ys(t,i.queue);if(r===null){return}n=i.queue[r]}i.queue.splice(r,1);n.action(t,i);if(!n.doneFn){e(t,i);return}i.queuePending[t]=n};var bs=function e(t,i){var r=i[t+"Buffer"];var n=vs(t);if(!r){return}r.removeEventListener("updateend",i["on"+n+"UpdateEnd_"]);r.removeEventListener("error",i["on"+n+"Error_"]);i.codecs[t]=null;i[t+"Buffer"]=null};var Ts=function e(t,i){return t&&i&&Array.prototype.indexOf.call(t.sourceBuffers,i)!==-1};var Ss={appendBuffer:function e(t,i){return function(e,r){var n=r[e+"Buffer"];if(!Ts(r.mediaSource,n)){return}
1r.logger_("Appending segment "+i.mediaIndex+"\'s "+t.length+" bytes to "+e+"Buffer");n.appendBuffer(t)}},remove:function e(t,i){return function(e,r){var n=r[e+"Buffer"];if(!Ts(r.mediaSource,n)){return}r.logger_("Removing "+t+" to "+i+" from "+e+"Buffer");n.remove(t,i)}},timestampOffset:function e(t){return function(e,i){var r=i[e+"Buffer"];if(!Ts(i.mediaSource,r)){return}i.logger_("Setting "+e+"timestampOffset to "+t);r.timestampOffset=t}},callback:function e(t){return function(e,i){t()}},endOfStream:function e(t){return function(e){if(e.mediaSource.readyState!=="open"){return}e.logger_("Calling mediaSource endOfStream("+(t||"")+")");try{e.mediaSource.endOfStream(t)}catch(e){u["default"].log.warn("Failed to call media source endOfStream",e)}}},duration:function e(t){return function(e){e.logger_("Setting mediaSource duration to "+t);try{e.mediaSource.duration=t}catch(e){u["default"].log.warn("Failed to set media source duration",e)}}},abort:function e(){return function(e,t){if(t.mediaSource.readyState!=="open"){return}var i=t[e+"Buffer"];if(!Ts(t.mediaSource,i)){return}t.logger_("calling abort on "+e+"Buffer");try{i.abort()}catch(t){u["default"].log.warn("Failed to abort on "+e+"Buffer",t)}}},addSourceBuffer:function e(t,i){return function(e){var r=vs(t);var n=ba(i);e.logger_("Adding "+t+"Buffer with codec "+i+" to mediaSource");var a=e.mediaSource.addSourceBuffer(n);a.addEventListener("updateend",e["on"+r+"UpdateEnd_"]);a.addEventListener("error",e["on"+r+"Error_"]);e.codecs[t]=i;e[t+"Buffer"]=a}},removeSourceBuffer:function e(t){return function(e){var i=e[t+"Buffer"];bs(t,e);if(!Ts(e.mediaSource,i)){return}e.logger_("Removing "+t+"Buffer with codec "+e.codecs[t]+" from mediaSource");try{e.mediaSource.removeSourceBuffer(i)}catch(e){u["default"].log.warn("Failed to removeSourceBuffer "+t+"Buffer",e)}}},changeType:function e(t){return function(e,i){var r=i[e+"Buffer"];var n=ba(t);if(!Ts(i.mediaSource,r)){return}if(i.codecs[e]===t){return}i.logger_("changing "+e+"Buffer codec from "+i.codecs[e]+" to "+t);r.changeType(n);i.codecs[e]=t}}};var ks=function e(t){var i=t.type,r=t.sourceUpdater,n=t.action,a=t.doneFn,s=t.name;r.queue.push({type:i,action:n,doneFn:a,name:s});_s(i,r)};var Es=function e(t,i){return function(e){if(i.queuePending[t]){var r=i.queuePending[t].doneFn;i.queuePending[t]=null;if(r){r(i[t+"Error_"])}}_s(t,i)}};var js=function(e){h(t,e);function t(t){var i;i=e.call(this)||this;i.mediaSource=t;i.sourceopenListener_=function(){return _s("mediaSource",d(i))};i.mediaSource.addEventListener("sourceopen",i.sourceopenListener_);i.logger_=ja("SourceUpdater");i.audioTimestampOffset_=0;i.videoTimestampOffset_=0;i.queue=[];i.queuePending={audio:null,video:null};i.delayedAudioAppendQueue_=[];i.videoAppendQueued_=false;i.codecs={};i.onVideoUpdateEnd_=Es("video",d(i));i.onAudioUpdateEnd_=Es("audio",d(i));i.onVideoError_=function(e){i.videoError_=e};i.onAudioError_=function(e){i.audioError_=e};i.createdSourceBuffers_=false;i.initializedEme_=false;i.triggeredReady_=false;return i}var i=t.prototype;i.initializedEme=function e(){this.initializedEme_=true;this.triggerReady()};i.hasCreatedSourceBuffers=function e(){return this.createdSourceBuffers_};i.hasInitializedAnyEme=function e(){return this.initializedEme_};i.ready=function e(){return this.hasCreatedSourceBuffers()&&this.hasInitializedAnyEme()};i.createSourceBuffers=function e(t){if(this.hasCreatedSourceBuffers()){return}this.addOrChangeSourceBuffers(t);this.createdSourceBuffers_=true;this.trigger("createdsourcebuffers");this.triggerReady()};
1i.triggerReady=function e(){if(this.ready()&&!this.triggeredReady_){this.triggeredReady_=true;this.trigger("ready")}};i.addSourceBuffer=function e(t,i){ks({type:"mediaSource",sourceUpdater:this,action:Ss.addSourceBuffer(t,i),name:"addSourceBuffer"})};i.abort=function e(t){ks({type:t,sourceUpdater:this,action:Ss.abort(t),name:"abort"})};i.removeSourceBuffer=function e(t){if(!this.canRemoveSourceBuffer()){u["default"].log.error("removeSourceBuffer is not supported!");return}ks({type:"mediaSource",sourceUpdater:this,action:Ss.removeSourceBuffer(t),name:"removeSourceBuffer"})};i.canRemoveSourceBuffer=function e(){return!u["default"].browser.IE_VERSION&&!u["default"].browser.IS_FIREFOX&&l["default"].MediaSource&&l["default"].MediaSource.prototype&&typeof l["default"].MediaSource.prototype.removeSourceBuffer==="function"};t.canChangeType=function e(){return l["default"].SourceBuffer&&l["default"].SourceBuffer.prototype&&typeof l["default"].SourceBuffer.prototype.changeType==="function"};i.canChangeType=function e(){return this.constructor.canChangeType()};i.changeType=function e(t,i){if(!this.canChangeType()){u["default"].log.error("changeType is not supported!");return}ks({type:t,sourceUpdater:this,action:Ss.changeType(i),name:"changeType"})};i.addOrChangeSourceBuffers=function e(t){var i=this;if(!t||typeof t!=="object"||Object.keys(t).length===0){throw new Error("Cannot addOrChangeSourceBuffers to undefined codecs")}Object.keys(t).forEach(function(e){var r=t[e];if(!i.hasCreatedSourceBuffers()){return i.addSourceBuffer(e,r)}if(i.canChangeType()){i.changeType(e,r)}})};i.appendBuffer=function e(t,i){var r=this;var n=t.segmentInfo,a=t.type,s=t.bytes;this.processedAppend_=true;if(a==="audio"&&this.videoBuffer&&!this.videoAppendQueued_){this.delayedAudioAppendQueue_.push([t,i]);this.logger_("delayed audio append of "+s.length+" until video append");return}ks({type:a,sourceUpdater:this,action:Ss.appendBuffer(s,n||{mediaIndex:-1}),doneFn:i,name:"appendBuffer"});if(a==="video"){this.videoAppendQueued_=true;if(!this.delayedAudioAppendQueue_.length){return}var o=this.delayedAudioAppendQueue_.slice();this.logger_("queuing delayed audio "+o.length+" appendBuffers");this.delayedAudioAppendQueue_.length=0;o.forEach(function(e){r.appendBuffer.apply(r,e)})}};i.audioBuffered=function e(){if(!Ts(this.mediaSource,this.audioBuffer)){return u["default"].createTimeRange()}return this.audioBuffer.buffered?this.audioBuffer.buffered:u["default"].createTimeRange()};i.videoBuffered=function e(){if(!Ts(this.mediaSource,this.videoBuffer)){return u["default"].createTimeRange()}return this.videoBuffer.buffered?this.videoBuffer.buffered:u["default"].createTimeRange()};i.buffered=function e(){var t=Ts(this.mediaSource,this.videoBuffer)?this.videoBuffer:null;var i=Ts(this.mediaSource,this.audioBuffer)?this.audioBuffer:null;if(i&&!t){return this.audioBuffered()}if(t&&!i){return this.videoBuffered()}return J(this.audioBuffered(),this.videoBuffered())};i.setDuration=function e(t,i){if(i===void 0){i=ps}ks({type:"mediaSource",sourceUpdater:this,action:Ss.duration('),t[1].s.push('timestampOffset:t.timestampOffset})}var i=this.createSimplifiedSegmentObj_(t);t.abortRequests=Jn({xhr:this.vhs_.xhr,xhrOptions:this.xhrOptions_,decryptionWorker:this.decrypter_,segment:i,handlePartialData:this.handlePartialData_,abortFn:this.handleAbort_.bind(this),progressFn:this.handleProgress_.bind(this),trackInfoFn:this.handleTrackInfo_.bind(this),timingInfoFn:this.handleTimingInfo_.bind(this),videoSegmentTimingInfoFn:this.handleSegmentTimingInfo_.bind(this,"video",t.requestId),audioSegmentTimingInfoFn:this.handleSegmentTimingInfo_.bind(this,"audio",t.requestId),captionsFn:this.handleCaptions_.bind(this),id3Fn:this.handleId3_.bind(this),dataFn:this.handleData_.bind(this),doneFn:this.segmentRequestFinished_.bind(this)})};i.trimBackBuffer_=function e(t){var i=as(this.seekable_(),this.currentTime_(),this.playlist_.targetDuration||10);if(i>0){this.remove(0,i)}};i.createSimplifiedSegmentObj_=function e(t){var i=t.segment;var r={resolvedUri:i.resolvedUri,byterange:i.byterange,requestId:t.requestId,transmuxer:t.transmuxer,audioAppendStart:t.audioAppendStart,gopsToAlignWith:t.gopsToAlignWith};var n=t.playlist.segments[t.mediaIndex-1];if(n&&n.timeline===i.timeline){if(n.videoTimingInfo){r.baseStartTime=n.videoTimingInfo.transmuxedDecodeEnd}else if(n.audioTimingInfo){r.baseStartTime=n.audioTimingInfo.transmuxedDecodeEnd}}if(i.key){var a=i.key.iv||new Uint32Array([0,0,0,t.mediaIndex+t.playlist.mediaSequence]);r.key=this.segmentKey(i.key);r.key.iv=a}if(i.map){r.map=this.initSegmentForMap(i.map)}return r};i.saveTransferStats_=function e(t){this.mediaRequests+=1;if(t){this.mediaBytesTransferred+=t.bytesReceived;this.mediaTransferDuration+=t.roundTripTime}};i.saveBandwidthRelatedStats_=function e(t,i){this.pendingSegment_.byteLength=i.bytesReceived;if(t<rs){this.logger_("Ignoring segment\'s bandwidth because its duration of "+t+(" is less than the min to record "+rs));return}this.bandwidth=i.bandwidth;this.roundTrip=i.roundTripTime};i.handleTimeout_=function e(){this.mediaRequestsTimedout+=1;this.bandwidth=1;this.roundTrip=NaN;this.trigger("bandwidthupdate")};i.segmentRequestFinished_=function e(t,i,r){if(this.callQueue_.length){this.callQueue_.push(this.segmentRequestFinished_.bind(this,t,i,r));return}this.saveTransferStats_(i.stats);if(!this.pendingSegment_){return}if(i.requestId!==this.pendingSegment_.requestId){return}if(t){this.pendingSegment_=null;this.state="READY";if(t.code===Mn.ABORTED){return}this.pause();if(t.code===Mn.TIMEOUT){this.handleTimeout_();return}this.mediaRequestsErrored+=1;this.error(t);this.trigger("error");return}var n=this.pendingSegment_;this.saveBandwidthRelatedStats_(n.duration,i.stats);n.endOfAllRequests=i.endOfAllRequests;if(r.gopInfo){this.gopBuffer_=Za(this.gopBuffer_,r.gopInfo,this.safeAppend_)}this.state="APPENDING";
1var a=this.isEndOfStream_(n.mediaIndex,n.playlist);var s=this.mediaIndex!==null;var o=n.timeline!==this.currentTimeline_&&n.timeline>0;if(!n.isFmp4&&(a||s&&o)){or.endTimeline(this.transmuxer_)}this.trigger("appending");this.waitForAppendsToComplete_(n)};i.setTimeMapping_=function e(t){var i=this.syncController_.mappingForTimeline(t);if(i!==null){this.timeMapping_=i}};i.updateMediaSecondsLoaded_=function e(t){if(typeof t.start==="number"&&typeof t.end==="number"){this.mediaSecondsLoaded+=t.end-t.start}else{this.mediaSecondsLoaded+=t.duration}};i.shouldUpdateTransmuxerTimestampOffset_=function e(t){if(t===null){return false}if(this.loaderType_==="main"&&t!==this.sourceUpdater_.videoTimestampOffset()){return true}if(!this.audioDisabled_&&t!==this.sourceUpdater_.audioTimestampOffset()){return true}return false};i.trueSegmentStart_=function e(t){var i=t.currentStart,r=t.playlist,n=t.mediaIndex,a=t.firstVideoFrameTimeForData,s=t.currentVideoTimestampOffset,o=t.useVideoTimingInfo,l=t.videoTimingInfo,u=t.audioTimingInfo;if(typeof i!=="undefined"){return i}if(!o){return u.start}var c=r.segments[n-1];if(n===0||!c||typeof c.start==="undefined"||c.end!==a+s){return a}return l.start};i.waitForAppendsToComplete_=function e(t){if(!this.currentMediaInfo_){this.error({message:"No starting media returned, likely due to an unsupported media format.",blacklistDuration:Infinity});this.trigger("error");return}var i=this.currentMediaInfo_,r=i.hasAudio,n=i.hasVideo,a=i.isMuxed;var s=this.loaderType_==="main"&&n;var o=!this.audioDisabled_&&r&&!a;t.waitingOnAppends=0;if(!t.hasAppendedData_){if(!t.timingInfo&&typeof t.timestampOffset==="number"){this.isPendingTimestampOffset_=true}t.timingInfo={start:0};t.waitingOnAppends++;if(!this.isPendingTimestampOffset_){this.updateSourceBufferTimestampOffset_(t);this.processMetadataQueue_()}this.checkAppendsDone_(t);return}if(s){t.waitingOnAppends++}if(o){t.waitingOnAppends++}if(s){this.sourceUpdater_.videoQueueCallback(this.checkAppendsDone_.bind(this,t))}if(o){this.sourceUpdater_.audioQueueCallback(this.checkAppendsDone_.bind(this,t))}};i.checkAppendsDone_=function e(t){if(this.checkForAbort_(t.requestId)){return}t.waitingOnAppends--;if(t.waitingOnAppends===0){this.handleAppendsDone_()}};i.checkForIllegalMediaSwitch=function e(t){var i=ns(this.loaderType_,this.currentMediaInfo_,t);if(i){this.error({message:i,blacklistDuration:Infinity});this.trigger("error");return true}return false};i.updateSourceBufferTimestampOffset_=function e(t){if(t.timestampOffset===null||typeof t.timingInfo.start!=="number"||t.changedTimestampOffset||this.loaderType_!=="main"){return}var i=false;t.timestampOffset-=t.timingInfo.start;t.changedTimestampOffset=true;if(t.timestampOffset!==this.sourceUpdater_.videoTimestampOffset()){this.sourceUpdater_.videoTimestampOffset(t.timestampOffset);i=true}if(t.timestampOffset!==this.sourceUpdater_.audioTimestampOffset()){this.sourceUpdater_.audioTimestampOffset(t.timestampOffset);i=true}if(i){this.trigger("timestampoffset")}};i.updateTimingInfoEnd_=function e(t){t.timingInfo=t.timingInfo||{};var i=this.loaderType_==="main"&&this.currentMediaInfo_.hasVideo;var r=i&&t.videoTimingInfo?t.videoTimingInfo:t.audioTimingInfo;if(!r){return}t.timingInfo.end=typeof r.end==="number"?r.end:r.start+t.duration};i.handleAppendsDone_=function e(){if(this.pendingSegment_){this.trigger("appendsdone")}if(!this.pendingSegment_){this.state="READY";if(!this.paused()){this.monitorBuffer_()}return}var t=this.pendingSegment_;this.updateTimingInfoEnd_(t);if(this.shouldSaveSegmentTimingInfo_){this.syncController_.saveSegmentTimingInfo({segmentInfo:t,shouldSaveTimelineMapping:this.loaderType_==="main"})}this.logger_(ss(t));var i=fs(t,this.sourceType_);if(i){if(i.severity==="warn"){u["default"].log.warn(i.message)}else{this.logger_(i.message)}}this.recordThroughput_(t);this.pendingSegment_=null;this.state="READY";if(t.isSyncRequest){this.trigger("syncinfoupdate");return}this.addSegmentMetadataCue_(t);this.fetchAtBuffer_=true;if(this.currentTimeline_!==t.timeline){this.timelineChangeController_.lastTimelineChange({type:this.loaderType_,from:this.currentTimeline_,to:t.timeline});if(this.loaderType_==="main"&&!this.audioDisabled_){this.timelineChangeController_.lastTimelineChange({type:"audio",from:this.currentTimeline_,to:t.timeline})}}this.currentTimeline_=t.timeline;this.trigger("syncinfoupdate");var r=t.segment;if(r.end&&this.currentTime_()-r.end>t.playlist.targetDuration*3){this.resetEverything();return}var n=this.mediaIndex!==null;if(n){this.trigger("bandwidthupdate")}this.trigger("progress");this.mediaIndex=t.mediaIndex;
1if(this.isEndOfStream_(t.mediaIndex,t.playlist)){this.endOfStream()}this.trigger("appended");if(!this.paused()){this.monitorBuffer_()}};i.recordThroughput_=function e(t){if(t.duration<rs){this.logger_("Ignoring segment\'s throughput because its duration of "+t.duration+(" is less than the min to record "+rs));return}var i=this.throughput.rate;var r=Date.now()-t.endOfAllRequests+1;var n=Math.floor(t.byteLength/r*8*1e3);this.throughput.rate+=(n-i)/++this.throughput.count};i.addSegmentMetadataCue_=function e(t){if(!this.segmentMetadataTrack_){return}var i=t.segment;var r=i.start;var n=i.end;if(!is(r)||!is(n)){return}Xa(r,n,this.segmentMetadataTrack_);var a=l["default"].WebKitDataCue||l["default"].VTTCue;var s={custom:i.custom,dateTimeObject:i.dateTimeObject,dateTimeString:i.dateTimeString,bandwidth:t.playlist.attributes.BANDWIDTH,resolution:t.playlist.attributes.RESOLUTION,codecs:t.playlist.attributes.CODECS,byteLength:t.byteLength,uri:t.uri,timeline:t.timeline,playlist:t.playlist.id,start:r,end:n};var o=JSON.stringify(s);var u=new a(r,n,o);u.value=s;this.segmentMetadataTrack_.addCue(u)};return t}(u["default"].EventTarget);function ps(){}var vs=function e(t){if(typeof t!=="string"){return t}return t.replace(/./,function(e){return e.toUpperCase()})};var ms=["video","audio"];var gs=function e(t,i){var r=i[t+"Buffer"];return r&&r.updating||i.queuePending[t]};var ys=function e(t,i){for(var r=0;r<i.length;r++){var n=i[r];if(n.type==="mediaSource"){return null}if(n.type===t){return r}}return null};var _s=function e(t,i){if(i.queue.length===0){return}var r=0;var n=i.queue[r];if(n.type==="mediaSource"){if(!i.updating()&&i.mediaSource.readyState!=="closed"){i.queue.shift();n.action(i);if(n.doneFn){n.doneFn()}e("audio",i);e("video",i)}return}if(t==="mediaSource"){return}if(!i.ready()||i.mediaSource.readyState==="closed"||gs(t,i)){return}if(n.type!==t){r=ys(t,i.queue);if(r===null){return}n=i.queue[r]}i.queue.splice(r,1);n.action(t,i);if(!n.doneFn){e(t,i);return}i.queuePending[t]=n};var bs=function e(t,i){var r=i[t+"Buffer"];var n=vs(t);if(!r){return}r.removeEventListener("updateend",i["on"+n+"UpdateEnd_"]);r.removeEventListener("error",i["on"+n+"Error_"]);i.codecs[t]=null;i[t+"Buffer"]=null};var Ts=function e(t,i){return t&&i&&Array.prototype.indexOf.call(t.sourceBuffers,i)!==-1};var Ss={appendBuffer:function e(t,i){return function(e,r){var n=r[e+"Buffer"];if(!Ts(r.mediaSource,n)){return}
1r.logger_("Appending segment "+i.mediaIndex+"\'s "+t.length+" bytes to "+e+"Buffer");n.appendBuffer(t)}},remove:function e(t,i){return function(e,r){var n=r[e+"Buffer"];if(!Ts(r.mediaSource,n)){return}r.logger_("Removing "+t+" to "+i+" from "+e+"Buffer");n.remove(t,i)}},timestampOffset:function e(t){return function(e,i){var r=i[e+"Buffer"];if(!Ts(i.mediaSource,r)){return}i.logger_("Setting "+e+"timestampOffset to "+t);r.timestampOffset=t}},callback:function e(t){return function(e,i){t()}},endOfStream:function e(t){return function(e){if(e.mediaSource.readyState!=="open"){return}e.logger_("Calling mediaSource endOfStream("+(t||"")+")");try{e.mediaSource.endOfStream(t)}catch(e){u["default"].log.warn("Failed to call media source endOfStream",e)}}},duration:function e(t){return function(e){e.logger_("Setting mediaSource duration to "+t);try{e.mediaSource.duration=t}catch(e){u["default"].log.warn("Failed to set media source duration",e)}}},abort:function e(){return function(e,t){if(t.mediaSource.readyState!=="open"){return}var i=t[e+"Buffer"];if(!Ts(t.mediaSource,i)){return}t.logger_("calling abort on "+e+"Buffer");try{i.abort()}catch(t){u["default"].log.warn("Failed to abort on "+e+"Buffer",t)}}},addSourceBuffer:function e(t,i){return function(e){var r=vs(t);var n=ba(i);e.logger_("Adding "+t+"Buffer with codec "+i+" to mediaSource");var a=e.mediaSource.addSourceBuffer(n);a.addEventListener("updateend",e["on"+r+"UpdateEnd_"]);a.addEventListener("error",e["on"+r+"Error_"]);e.codecs[t]=i;e[t+"Buffer"]=a}},removeSourceBuffer:function e(t){return function(e){var i=e[t+"Buffer"];bs(t,e);if(!Ts(e.mediaSource,i)){return}e.logger_("Removing "+t+"Buffer with codec "+e.codecs[t]+" from mediaSource");try{e.mediaSource.removeSourceBuffer(i)}catch(e){u["default"].log.warn("Failed to removeSourceBuffer "+t+"Buffer",e)}}},changeType:function e(t){return function(e,i){var r=i[e+"Buffer"];var n=ba(t);if(!Ts(i.mediaSource,r)){return}if(i.codecs[e]===t){return}i.logger_("changing "+e+"Buffer codec from "+i.codecs[e]+" to "+t);r.changeType(n);i.codecs[e]=t}}};var ks=function e(t){var i=t.type,r=t.sourceUpdater,n=t.action,a=t.doneFn,s=t.name;r.queue.push({type:i,action:n,doneFn:a,name:s});_s(i,r)};var Es=function e(t,i){return function(e){if(i.queuePending[t]){var r=i.queuePending[t].doneFn;i.queuePending[t]=null;if(r){r(i[t+"Error_"])}}_s(t,i)}};var js=function(e){h(t,e);function t(t){var i;i=e.call(this)||this;i.mediaSource=t;i.sourceopenListener_=function(){return _s("mediaSource",d(i))};i.mediaSource.addEventListener("sourceopen",i.sourceopenListener_);i.logger_=ja("SourceUpdater");i.audioTimestampOffset_=0;i.videoTimestampOffset_=0;i.queue=[];i.queuePending={audio:null,video:null};i.delayedAudioAppendQueue_=[];i.videoAppendQueued_=false;i.codecs={};i.onVideoUpdateEnd_=Es("video",d(i));i.onAudioUpdateEnd_=Es("audio",d(i));i.onVideoError_=function(e){i.videoError_=e};i.onAudioError_=function(e){i.audioError_=e};i.createdSourceBuffers_=false;i.initializedEme_=false;i.triggeredReady_=false;return i}var i=t.prototype;i.initializedEme=function e(){this.initializedEme_=true;this.triggerReady()};i.hasCreatedSourceBuffers=function e(){return this.createdSourceBuffers_};i.hasInitializedAnyEme=function e(){return this.initializedEme_};i.ready=function e(){return this.hasCreatedSourceBuffers()&&this.hasInitializedAnyEme()};i.createSourceBuffers=function e(t){if(this.hasCreatedSourceBuffers()){return}this.addOrChangeSourceBuffers(t);this.createdSourceBuffers_=true;this.trigger("createdsourcebuffers");this.triggerReady()};
1i.triggerReady=function e(){if(this.ready()&&!this.triggeredReady_){this.triggeredReady_=true;this.trigger("ready")}};i.addSourceBuffer=function e(t,i){ks({type:"mediaSource",sourceUpdater:this,action:Ss.addSourceBuffer(t,i),name:"addSourceBuffer"})};i.abort=function e(t){ks({type:t,sourceUpdater:this,action:Ss.abort(t),name:"abort"})};i.removeSourceBuffer=function e(t){if(!this.canRemoveSourceBuffer()){u["default"].log.error("removeSourceBuffer is not supported!");return}ks({type:"mediaSource",sourceUpdater:this,action:Ss.removeSourceBuffer(t),name:"removeSourceBuffer"})};i.canRemoveSourceBuffer=function e(){return!u["default"].browser.IE_VERSION&&!u["default"].browser.IS_FIREFOX&&l["default"].MediaSource&&l["default"].MediaSource.prototype&&typeof l["default"].MediaSource.prototype.removeSourceBuffer==="function"};t.canChangeType=function e(){return l["default"].SourceBuffer&&l["default"].SourceBuffer.prototype&&typeof l["default"].SourceBuffer.prototype.changeType==="function"};i.canChangeType=function e(){return this.constructor.canChangeType()};i.changeType=function e(t,i){if(!this.canChangeType()){u["default"].log.error("changeType is not supported!");return}ks({type:t,sourceUpdater:this,action:Ss.changeType(i),name:"changeType"})};i.addOrChangeSourceBuffers=function e(t){var i=this;if(!t||typeof t!=="object"||Object.keys(t).length===0){throw new Error("Cannot addOrChangeSourceBuffers to undefined codecs")}Object.keys(t).forEach(function(e){var r=t[e];if(!i.hasCreatedSourceBuffers()){return i.addSourceBuffer(e,r)}if(i.canChangeType()){i.changeType(e,r)}})};i.appendBuffer=function e(t,i){var r=this;var n=t.segmentInfo,a=t.type,s=t.bytes;this.processedAppend_=true;if(a==="audio"&&this.videoBuffer&&!this.videoAppendQueued_){this.delayedAudioAppendQueue_.push([t,i]);this.logger_("delayed audio append of "+s.length+" until video append");return}ks({type:a,sourceUpdater:this,action:Ss.appendBuffer(s,n||{mediaIndex:-1}),doneFn:i,name:"appendBuffer"});if(a==="video"){this.videoAppendQueued_=true;if(!this.delayedAudioAppendQueue_.length){return}var o=this.delayedAudioAppendQueue_.slice();this.logger_("queuing delayed audio "+o.length+" appendBuffers");this.delayedAudioAppendQueue_.length=0;o.forEach(function(e){r.appendBuffer.apply(r,e)})}};i.audioBuffered=function e(){if(!Ts(this.mediaSource,this.audioBuffer)){return u["default"].createTimeRange()}return this.audioBuffer.buffered?this.audioBuffer.buffered:u["default"].createTimeRange()};i.videoBuffered=function e(){if(!Ts(this.mediaSource,this.videoBuffer)){return u["default"].createTimeRange()}return this.videoBuffer.buffered?this.videoBuffer.buffered:u["default"].createTimeRange()};i.buffered=function e(){var t=Ts(this.mediaSource,this.videoBuffer)?this.videoBuffer:null;var i=Ts(this.mediaSource,this.audioBuffer)?this.audioBuffer:null;if(i&&!t){return this.audioBuffered()}if(t&&!i){return this.videoBuffered()}return J(this.audioBuffered(),this.videoBuffered())};i.setDuration=function e(t,i){if(i===void 0){i=ps}ks({t'),t[0].s.push('t),name:"duration",doneFn:i})};i.endOfStream=function e(t,i){if(t===void 0){t=null}if(i===void 0){i=ps}if(typeof t!=="string"){t=undefined}ks({type:"mediaSource",sourceUpdater:this,action:Ss.endOfStream(t),name:"endOfStream",doneFn:i})};i.removeAudio=function e(t,i,r){if(r===void 0){r=ps}if(!this.audioBuffered().length||this.audioBuffered().end(0)===0){r();return}ks({type:"audio",sourceUpdater:this,action:Ss.remove(t,i),doneFn:r,name:"remove"})};i.removeVideo=function e(t,i,r){if(r===void 0){r=ps}if(!this.videoBuffered().length||this.videoBuffered().end(0)===0){r();return}ks({type:"video",sourceUpdater:this,action:Ss.remove(t,i),doneFn:r,name:"remove"})};i.updating=function e(){if(gs("audio",this)||gs("video",this)){return true}return false};i.audioTimestampOffset=function e(t){if(typeof t!=="undefined"&&this.audioBuffer&&this.audioTimestampOffset_!==t){ks({type:"audio",sourceUpdater:this,action:Ss.timestampOffset(t),name:"timestampOffset"});this.audioTimestampOffset_=t}return this.audioTimestampOffset_};i.videoTimestampOffset=function e(t){if(typeof t!=="undefined"&&this.videoBuffer&&this.videoTimestampOffset!==t){ks({type:"video",sourceUpdater:this,action:Ss.timestampOffset(t),name:"timestampOffset"});this.videoTimestampOffset_=t}return this.videoTimestampOffset_};i.audioQueueCallback=function e(t){if(!this.audioBuffer){return}ks({type:"audio",sourceUpdater:this,action:Ss.callback(t),name:"callback"})};i.videoQueueCallback=function e(t){if(!this.videoBuffer){return}ks({type:"video",sourceUpdater:this,action:Ss.callback(t),name:"callback"})};i.dispose=function e(){var t=this;this.trigger("dispose");
1ms.forEach(function(e){t.abort(e);if(t.canRemoveSourceBuffer()){t.removeSourceBuffer(e)}else{t[e+"QueueCallback"](function(){return bs(e,t)})}});this.videoAppendQueued_=false;this.delayedAudioAppendQueue_.length=0;if(this.sourceopenListener_){this.mediaSource.removeEventListener("sourceopen",this.sourceopenListener_)}this.off()};return t}(u["default"].EventTarget);var ws=function e(t){return decodeURIComponent(escape(String.fromCharCode.apply(null,t)))};var Cs=new Uint8Array("\\n\\n".split("").map(function(e){return e.charCodeAt(0)}));var Is=function(e){h(t,e);function t(t,i){var r;if(i===void 0){i={}}r=e.call(this,t,i)||this;r.handlePartialData_=false;r.mediaSource_=null;r.subtitlesTrack_=null;r.loaderType_="subtitle";r.featuresNativeTextTracks_=t.featuresNativeTextTracks;r.shouldSaveSegmentTimingInfo_=false;return r}var i=t.prototype;i.createTransmuxer_=function e(){return null};i.buffered_=function e(){if(!this.subtitlesTrack_||!this.subtitlesTrack_.cues.length){return u["default"].createTimeRanges()}var t=this.subtitlesTrack_.cues;var i=t[0].startTime;var r=t[t.length-1].startTime;return u["default"].createTimeRanges([[i,r]])};i.initSegmentForMap=function e(t,i){if(i===void 0){i=false}if(!t){return null}var r=De(t);var n=this.initSegments_[r];if(i&&!n&&t.bytes){var a=Cs.byteLength+t.bytes.byteLength;var s=new Uint8Array(a);s.set(t.bytes);s.set(Cs,t.bytes.byteLength);this.initSegments_[r]=n={resolvedUri:t.resolvedUri,byterange:t.byterange,bytes:s}}return n||t};i.couldBeginLoading_=function e(){return this.playlist_&&this.subtitlesTrack_&&!this.paused()};i.init_=function e(){this.state="READY";this.resetEverything();return this.monitorBuffer_()};i.track=function e(t){if(typeof t==="undefined"){return this.subtitlesTrack_}this.subtitlesTrack_=t;if(this.state==="INIT"&&this.couldBeginLoading_()){this.init_()}return this.subtitlesTrack_};i.remove=function e(t,i){Xa(t,i,this.subtitlesTrack_)};i.fillBuffer_=function e(){var t=this;if(!this.syncPoint_){this.syncPoint_=this.syncController_.getSyncPoint(this.playlist_,this.duration_(),this.currentTimeline_,this.currentTime_())}var i=this.checkBuffer_(this.buffered_(),this.playlist_,this.mediaIndex,this.hasPlayed_(),this.currentTime_(),this.syncPoint_);i=this.skipEmptySegments_(i);if(!i){return}if(this.syncController_.timestampOffsetForTimeline(i.timeline)===null){var r=function e(){t.state="READY";if(!t.paused()){t.monitorBuffer_()}};this.syncController_.one("timestampoffset",r);this.state="WAITING_ON_TIMELINE";return}this.loadSegment_(i)};i.skipEmptySegments_=function e(t){while(t&&t.segment.empty){t=this.generateSegmentInfo_(t.playlist,t.mediaIndex+1,t.startOfSegment+t.duration,t.isSyncRequest)}return t};i.stopForError=function e(t){this.error(t);this.state="READY";this.pause();this.trigger("error")};i.segmentRequestFinished_=function e(t,i,r){var n=this;if(!this.subtitlesTrack_){this.state="READY";return}this.saveTransferStats_(i.stats);if(!this.pendingSegment_){this.state="READY";this.mediaRequestsAborted+=1;return}if(t){if(t.code===Mn.TIMEOUT){this.handleTimeout_()}if(t.code===Mn.ABORTED){this.mediaRequestsAborted+=1}else{this.mediaRequestsErrored+=1}this.stopForError(t);return}var a=this.pendingSegment_;this.saveBandwidthRelatedStats_(a.duration,i.stats);this.state="APPENDING";this.trigger("appending");var s=a.segment;if(s.map){s.map.bytes=i.map.bytes}a.bytes=i.bytes;if(typeof l["default"].WebVTT!=="function"&&this.subtitlesTrack_&&this.subtitlesTrack_.tech_){var o;var u=function e(){n.subtitlesTrack_.tech_.off("vttjsloaded",o);n.stopForError({message:"Error loading vtt.js"});return};o=function e(){n.subtitlesTrack_.tech_.off("vttjserror",u);n.segmentRequestFinished_(t,i,r)};this.state="WAITING_ON_VTTJS";this.subtitlesTrack_.tech_.one("vttjsloaded",o);this.subtitlesTrack_.tech_.one("vttjserror",u);return}s.requested=true;try{this.parseVTTCues_(a)}catch(e){this.stopForError({message:e.message});return}this.updateTimeMapping_(a,this.syncController_.timelines[a.timeline],this.playlist_);if(a.cues.length){a.timingInfo={start:a.cues[0].startTime,end:a.cues[a.cues.length-1].endTime}}else{a.timingInfo={start:a.startOfSegment,end:a.startOfSegment+a.duration}}if(a.isSyncRequest){this.trigger("syncinfoupdate");this.pendingSegment_=null;this.state="READY";return}a.byteLength=a.bytes.byteLength;this.mediaSecondsLoaded+=s.duration;
1a.cues.forEach(function(e){n.subtitlesTrack_.addCue(n.featuresNativeTextTracks_?new l["default"].VTTCue(e.startTime,e.endTime,e.text):e)});Qa(this.subtitlesTrack_);this.handleAppendsDone_()};i.handleData_=function e(){};i.updateTimingInfoEnd_=function e(){};i.parseVTTCues_=function e(t){var i;var r=false;if(typeof l["default"].TextDecoder==="function"){i=new l["default"].TextDecoder("utf8")}else{i=l["default"].WebVTT.StringDecoder();r=true}var n=new l["default"].WebVTT.Parser(l["default"],l["default"].vttjs,i);t.cues=[];t.timestampmap={MPEGTS:0,LOCAL:0};n.oncue=t.cues.push.bind(t.cues);n.ontimestampmap=function(e){t.timestampmap=e};n.onparsingerror=function(e){u["default"].log.warn("Error encountered when parsing cues: "+e.message)};if(t.segment.map){var a=t.segment.map.bytes;if(r){a=ws(a)}n.parse(a)}var s=t.bytes;if(r){s=ws(s)}n.parse(s);n.flush()};i.updateTimeMapping_=function e(t,i,r){var n=t.segment;if(!i){return}if(!t.cues.length){n.empty=true;return}var a=t.timestampmap;var s=a.MPEGTS/Kr.ONE_SECOND_IN_TS-a.LOCAL+i.mapping;t.cues.forEach(function(e){e.startTime+=s;e.endTime+=s});if(!r.syncInfo){var o=t.cues[0].startTime;var l=t.cues[t.cues.length-1].startTime;r.syncInfo={mediaSequence:r.mediaSequence+t.mediaIndex,time:Math.min(o,l-n.duration)}}};return t}(hs);var As=function e(t,i){var r=t.cues;for(var n=0;n<r.length;n++){var a=r[n];if(i>=a.adStartTime&&i<=a.adEndTime){return a}}return null};var xs=function e(t,i,r){if(r===void 0){r=0}if(!t.segments){return}var n=r;var a;for(var s=0;s<t.segments.length;s++){var o=t.segments[s];if(!a){a=As(i,n+o.duration/2)}if(a){if("cueIn"in o){a.endTime=n;a.adEndTime=n;n+=o.duration;a=null;continue}if(n<a.endTime){n+=o.duration;continue}a.endTime+=o.duration}else{if("cueOut"in o){a=new l["default"].VTTCue(n,n+o.duration,o.cueOut);a.adStartTime=n;a.adEndTime=n+parseFloat(o.cueOut);i.addCue(a)}if("cueOutCont"in o){var u=o.cueOutCont.split("/").map(parseFloat),c=u[0],d=u[1];a=new l["default"].VTTCue(n,n+o.duration,"");a.adStartTime=n-c;a.adEndTime=a.adStartTime+d;i.addCue(a)}}n+=o.duration}};var Ps=[{name:"VOD",run:function e(t,i,r,n,a){if(r!==Infinity){var s={time:0,segmentIndex:0};return s}return null}},{name:"ProgramDateTime",run:function e(t,i,r,n,a){if(!t.datetimeToDisplayTime){return null}var s=i.segments||[];var o=null;var l=null;a=a||0;for(var u=0;u<s.length;u++){var c=s[u];if(c.dateTimeObject){var d=c.dateTimeObject.getTime()/1e3;var f=d+t.datetimeToDisplayTime;var h=Math.abs(a-f);if(l!==null&&(h===0||l<h)){break}l=h;o={time:f,segmentIndex:u}}}return o}},{name:"Segment",run:function e(t,i,r,n,a){var s=i.segments||[];var o=null;var l=null;a=a||0;for(var u=0;u<s.length;u++){var c=s[u];if(c.timeline===n&&typeof c.start!=="undefined"){var d=Math.abs(a-c.start);if(l!==null&&l<d){break}if(!o||l===null||l>=d){l=d;o={time:c.start,segmentIndex:u}}}}return o}},{name:"Discontinuity",run:function e(t,i,r,n,a){var s=null;a=a||0;if(i.discontinuityStarts&&i.discontinuityStarts.length){var o=null;for(var l=0;l<i.discontinuityStarts.length;l++){var u=i.discontinuityStarts[l];var c=i.discontinuitySequence+l+1;var d=t.discontinuities[c];if(d){var f=Math.abs(a-d.time);if(o!==null&&o<f){break}if(!s||o===null||o>=f){o=f;s={time:d.time,segmentIndex:u}}}}}return s}},{name:"Playlist",run:function e(t,i,r,n,a){if(i.syncInfo){var s={time:i.syncInfo.time,segmentIndex:i.syncInfo.mediaSequence-i.mediaSequence};return s}return null}}];var Os=function(e){h(t,e);function t(t){var i;i=e.call(this)||this;i.timelines=[];i.discontinuities=[];i.datetimeToDisplayTime=null;i.logger_=ja("SyncController");return i}var i=t.prototype;i.getSyncPoint=function e(t,i,r,n){var a=this.runStrategies_(t,i,r,n);if(!a.length){return null}return this.selectSyncPoint_(a,{key:"time",value:n})};i.getExpiredTime=function e(t,i){if(!t||!t.segments){return null}var r=this.runStrategies_(t,i,t.discontinuitySequence,0);if(!r.length){return null}var n=this.selectSyncPoint_(r,{key:"segmentIndex",value:0});if(n.segmentIndex>0){n.time*=-1}return Math.abs(n.time+oe(t,n.segmentIndex,0))};i.runStrategies_=function e(t,i,r,n){var a=[];for(var s=0;s<Ps.length;s++){var o=Ps[s];var l=o.run(this,t,i,r,n);if(l){l.strategy=o.name;a.push({strategy:o.name,syncPoint:l})}}return a};i.selectSyncPoint_=function e(t,i){var r=t[0].syncPoint;var n=Math.abs(t[0].syncPoint[i.key]-i.value);var a=t[0].strategy;for(var s=1;s<t.length;s++){var o=Math.abs(t[s].syncPoint[i.key]-i.value);if(o<n){n=o;r=t[s].syncPoint;a=t[s].strategy}}this.logger_("syncPoint for ["+i.key+": "+i.value+"] chosen with strategy"+(" ["+a+"]: [time:"+r.time+",")+(" segmentIndex:"+r.segmentIndex+"]"));return r};i.saveExpiredSegmentInfo=function e(t,i){var r=i.mediaSequence-t.mediaSequence;for(var n=r-1;n>=0;n--){var a=t.segments[n];if(a&&typeof a.start!=="undefined"){i.syncInfo={mediaSequence:t.mediaSequence+n,time:a.start};
1this.logger_("playlist refresh sync: [time:"+i.syncInfo.time+","+(" mediaSequence: "+i.syncInfo.mediaSequence+"]"));this.trigger("syncinfoupdate");break}}};i.setDateTimeMapping=function e(t){if(!this.datetimeToDisplayTime&&t.segments&&t.segments.length&&t.segments[0].dateTimeObject){var i=t.segments[0].dateTimeObject.getTime()/1e3;this.datetimeToDisplayTime=-i}};i.saveSegmentTimingInfo=function e(t){var i=t.segmentInfo,r=t.shouldSaveTimelineMapping;var n=this.calculateSegmentTimeMapping_(i,i.timingInfo,r);if(n){this.saveDiscontinuitySyncInfo_(i);if(!i.playlist.syncInfo){i.playlist.syncInfo={mediaSequence:i.playlist.mediaSequence+i.mediaIndex,time:i.segment.start}}}};i.timestampOffsetForTimeline=function e(t){if(typeof this.timelines[t]==="undefined"){return null}return this.timelines[t].time};i.mappingForTimeline=function e(t){if(typeof this.timelines[t]==="undefined"){return null}return this.timelines[t].mapping};i.calculateSegmentTimeMapping_=function e(t,i,r){var n=t.segment;var a=this.timelines[t.timeline];if(t.timestampOffset!==null){a={time:t.startOfSegment,mapping:t.startOfSegment-i.start};if(r){this.timelines[t.timeline]=a;this.trigger("timestampoffset");this.logger_("time mapping for timeline "+t.timeline+": "+("[time: "+a.time+"] [mapping: "+a.mapping+"]"))}n.start=t.startOfSegment;n.end=i.end+a.mapping}else if(a){n.start=i.start+a.mapping;n.end=i.end+a.mapping}else{return false}return true};i.saveDiscontinuitySyncInfo_=function e(t){var i=t.playlist;var r=t.segment;if(r.discontinuity){this.discontinuities[r.timeline]={time:r.start,accuracy:0}}else if(i.discontinuityStarts&&i.discontinuityStarts.length){for(var n=0;n<i.discontinuityStarts.length;n++){var a=i.discontinuityStarts[n];var s=i.discontinuitySequence+n+1;var o=a-t.mediaIndex;var l=Math.abs(o);if(!this.discontinuities[s]||this.discontinuities[s].accuracy>l){var u=void 0;if(o<0){u=r.start-oe(i,t.mediaIndex,a)}else{u=r.end+oe(i,t.mediaIndex+1,a)}this.discontinuities[s]={time:u,accuracy:l}}}}};i.dispose=function e(){this.trigger("dispose");this.off()};return t}(u["default"].EventTarget);var Ls=function(e){h(t,e);function t(){var t;t=e.call(this)||this;t.pendingTimelineChanges_={};t.lastTimelineChanges_={};return t}var i=t.prototype;i.clearPendingTimelineChange=function e(t){this.pendingTimelineChanges_[t]=null;this.trigger("pendingtimelinechange")};i.pendingTimelineChange=function e(t){var i=t.type,r=t.from,n=t.to;if(typeof r==="number"&&typeof n==="number"){this.pendingTimelineChanges_[i]={type:i,from:r,to:n};this.trigger("pendingtimelinechange")}return this.pendingTimelineChanges_[i]};i.lastTimelineChange=function e(t){var i=t.type,r=t.from,n=t.to;if(typeof r==="number"&&typeof n==="number"){this.lastTimelineChanges_[i]={type:i,from:r,to:n};delete this.pendingTimelineChanges_[i];this.trigger("timelinechange")}return this.lastTimelineChanges_[i]};i.dispose=function e(){this.trigger("dispose");this.pendingTimelineChanges_={};this.lastTimelineChanges_={};this.off()};return t}(u["default"].EventTarget);var Ds=new na("./decrypter-worker.worker.js",function(e,t){var i=this;var r=function(){function e(e,t){for(var i=0;i<t.length;i++){var r=t[i];r.enumerable=r.enumerable||false;r.configurable=true;if("value"in r)r.writable=true;Object.defineProperty(e,r.key,r)}}function t(t,i,r){if(i)e(t.prototype,i);if(r)e(t,r);return t}var r=t;function n(e,t){e.prototype=Object.create(t.prototype);e.prototype.constructor=e;e.__proto__=t}var a=n;var s=function(){function e(){this.listeners={}}var t=e.prototype;t.on=function e(t,i){if(!this.listeners[t]){this.listeners[t]=[]}this.listeners[t].push(i)};t.off=function e(t,i){if(!this.listeners[t]){return false}var r=this.listeners[t].indexOf(i);this.listeners[t]=this.listeners[t].slice(0);this.listeners[t].splice(r,1);return r>-1};t.trigger=function e(t){var i=this.listeners[t];if(!i){return}if(arguments.length===2){var r=i.length;for(var n=0;n<r;++n){i[n].call(this,arguments[1])}}else{var a=Array.prototype.slice.call(arguments,1);var s=i.length;for(var o=0;o<s;++o){i[o].apply(this,a)}}};t.dispose=function e(){this.listeners={}};t.pipe=function e(t){this.on("data",function(e){t.push(e)})};return e}();function o(e){return e.subarray(0,e.byteLength-e[e.byteLength-1])}var l=function e(){var t=[[[],[],[],[],[]],[[],[],[],[],[]]];var i=t[0];var r=t[1];var n=i[4];var a=r[4];var s;var o;var l;var u=[];var c=[];var d;var f;var h;var p;var v;var m;for(s=0;s<256;s++){c[(u[s]=s<<1^(s>>7)*283)^s]=s}for(o=l=0;!n[o];o^=d||1,l=c[l]||1){p=l^l<<1^l<<2^l<<3^l<<4;p=p>>8^p&255^99;n[o]=p;a[p]=o;h=u[f=u[d=u[o]]];m=h*16843009^f*65537^d*257^o*16843008;v=u[p]*257^p*16843008;for(s=0;s<4;s++){i[s][o]=v=v<<24^v>>>8;r[s][p]=m=m<<24^m>>>8}}for(s=0;s<5;s++){i[s]=i[s].slice(0);r[s]=r[s].slice(0)}return t};var u=null;var c=function(){function e(e){if(!u){u=l()}this._tables=[[u[0][0].slice(),u[0][1].slice(),u[0][2].slice(),u[0][3].slice(),u[0][4].slice()],[u[1][0].slice(),u[1][1].slice(),u[1][2].slice(),u[1][3].slice(),u[1][4].slice()]];var t;var i;var r;var n=this._tables[0][4];var a=this._tables[1];var s=e.length;var o=1;if(s!==4&&s!==6&&s!==8){throw new Error("Invalid aes key size")}var c=e.slice(0);var d=[];this._key=[c,d];for(t=s;t<4*s+28;t++){r=c[t-1];if(t%s===0||s===8&&t%s===4){r=n[r>>>24]<<24^n[r>>16&255]<<16^n[r>>8&255]<<8^n[r&255];if(t%s===0){r=r<<8^r>>>24^o<<24;o=o<<1^(o>>7)*283}}c[t]=c[t-s]^r}for(i=0;t;i++,t--){r=c[i&3?t:t-4];if(t<=4||i<4){d[i]=r}else{d[i]=a[0][n[r>>>24]]^a[1][n[r>>16&255]]^a[2][n[r>>8&255]]^a[3][n[r&255]]}}}var t=e.prototype;t.decrypt=function e(t,i,r,n,a,s){var o=this._key[1];'),t[1].s.push('ype:"mediaSource",sourceUpdater:this,action:Ss.duration(t),name:"duration",doneFn:i})};i.endOfStream=function e(t,i){if(t===void 0){t=null}if(i===void 0){i=ps}if(typeof t!=="string"){t=undefined}ks({type:"mediaSource",sourceUpdater:this,action:Ss.endOfStream(t),name:"endOfStream",doneFn:i})};i.removeAudio=function e(t,i,r){if(r===void 0){r=ps}if(!this.audioBuffered().length||this.audioBuffered().end(0)===0){r();return}ks({type:"audio",sourceUpdater:this,action:Ss.remove(t,i),doneFn:r,name:"remove"})};i.removeVideo=function e(t,i,r){if(r===void 0){r=ps}if(!this.videoBuffered().length||this.videoBuffered().end(0)===0){r();return}ks({type:"video",sourceUpdater:this,action:Ss.remove(t,i),doneFn:r,name:"remove"})};i.updating=function e(){if(gs("audio",this)||gs("video",this)){return true}return false};i.audioTimestampOffset=function e(t){if(typeof t!=="undefined"&&this.audioBuffer&&this.audioTimestampOffset_!==t){ks({type:"audio",sourceUpdater:this,action:Ss.timestampOffset(t),name:"timestampOffset"});this.audioTimestampOffset_=t}return this.audioTimestampOffset_};i.videoTimestampOffset=function e(t){if(typeof t!=="undefined"&&this.videoBuffer&&this.videoTimestampOffset!==t){ks({type:"video",sourceUpdater:this,action:Ss.timestampOffset(t),name:"timestampOffset"});this.videoTimestampOffset_=t}return this.videoTimestampOffset_};i.audioQueueCallback=function e(t){if(!this.audioBuffer){return}ks({type:"audio",sourceUpdater:this,action:Ss.callback(t),name:"callback"})};i.videoQueueCallback=function e(t){if(!this.videoBuffer){return}ks({type:"video",sourceUpdater:this,action:Ss.callback(t),name:"callback"})};i.dispose=function e(){var t=this;this.trigger("dispose");
1ms.forEach(function(e){t.abort(e);if(t.canRemoveSourceBuffer()){t.removeSourceBuffer(e)}else{t[e+"QueueCallback"](function(){return bs(e,t)})}});this.videoAppendQueued_=false;this.delayedAudioAppendQueue_.length=0;if(this.sourceopenListener_){this.mediaSource.removeEventListener("sourceopen",this.sourceopenListener_)}this.off()};return t}(u["default"].EventTarget);var ws=function e(t){return decodeURIComponent(escape(String.fromCharCode.apply(null,t)))};var Cs=new Uint8Array("\\n\\n".split("").map(function(e){return e.charCodeAt(0)}));var Is=function(e){h(t,e);function t(t,i){var r;if(i===void 0){i={}}r=e.call(this,t,i)||this;r.handlePartialData_=false;r.mediaSource_=null;r.subtitlesTrack_=null;r.loaderType_="subtitle";r.featuresNativeTextTracks_=t.featuresNativeTextTracks;r.shouldSaveSegmentTimingInfo_=false;return r}var i=t.prototype;i.createTransmuxer_=function e(){return null};i.buffered_=function e(){if(!this.subtitlesTrack_||!this.subtitlesTrack_.cues.length){return u["default"].createTimeRanges()}var t=this.subtitlesTrack_.cues;var i=t[0].startTime;var r=t[t.length-1].startTime;return u["default"].createTimeRanges([[i,r]])};i.initSegmentForMap=function e(t,i){if(i===void 0){i=false}if(!t){return null}var r=De(t);var n=this.initSegments_[r];if(i&&!n&&t.bytes){var a=Cs.byteLength+t.bytes.byteLength;var s=new Uint8Array(a);s.set(t.bytes);s.set(Cs,t.bytes.byteLength);this.initSegments_[r]=n={resolvedUri:t.resolvedUri,byterange:t.byterange,bytes:s}}return n||t};i.couldBeginLoading_=function e(){return this.playlist_&&this.subtitlesTrack_&&!this.paused()};i.init_=function e(){this.state="READY";this.resetEverything();return this.monitorBuffer_()};i.track=function e(t){if(typeof t==="undefined"){return this.subtitlesTrack_}this.subtitlesTrack_=t;if(this.state==="INIT"&&this.couldBeginLoading_()){this.init_()}return this.subtitlesTrack_};i.remove=function e(t,i){Xa(t,i,this.subtitlesTrack_)};i.fillBuffer_=function e(){var t=this;if(!this.syncPoint_){this.syncPoint_=this.syncController_.getSyncPoint(this.playlist_,this.duration_(),this.currentTimeline_,this.currentTime_())}var i=this.checkBuffer_(this.buffered_(),this.playlist_,this.mediaIndex,this.hasPlayed_(),this.currentTime_(),this.syncPoint_);i=this.skipEmptySegments_(i);if(!i){return}if(this.syncController_.timestampOffsetForTimeline(i.timeline)===null){var r=function e(){t.state="READY";if(!t.paused()){t.monitorBuffer_()}};this.syncController_.one("timestampoffset",r);this.state="WAITING_ON_TIMELINE";return}this.loadSegment_(i)};i.skipEmptySegments_=function e(t){while(t&&t.segment.empty){t=this.generateSegmentInfo_(t.playlist,t.mediaIndex+1,t.startOfSegment+t.duration,t.isSyncRequest)}return t};i.stopForError=function e(t){this.error(t);this.state="READY";this.pause();this.trigger("error")};i.segmentRequestFinished_=function e(t,i,r){var n=this;if(!this.subtitlesTrack_){this.state="READY";return}this.saveTransferStats_(i.stats);if(!this.pendingSegment_){this.state="READY";this.mediaRequestsAborted+=1;return}if(t){if(t.code===Mn.TIMEOUT){this.handleTimeout_()}if(t.code===Mn.ABORTED){this.mediaRequestsAborted+=1}else{this.mediaRequestsErrored+=1}this.stopForError(t);return}var a=this.pendingSegment_;this.saveBandwidthRelatedStats_(a.duration,i.stats);this.state="APPENDING";this.trigger("appending");var s=a.segment;if(s.map){s.map.bytes=i.map.bytes}a.bytes=i.bytes;if(typeof l["default"].WebVTT!=="function"&&this.subtitlesTrack_&&this.subtitlesTrack_.tech_){var o;var u=function e(){n.subtitlesTrack_.tech_.off("vttjsloaded",o);n.stopForError({message:"Error loading vtt.js"});return};o=function e(){n.subtitlesTrack_.tech_.off("vttjserror",u);n.segmentRequestFinished_(t,i,r)};this.state="WAITING_ON_VTTJS";this.subtitlesTrack_.tech_.one("vttjsloaded",o);this.subtitlesTrack_.tech_.one("vttjserror",u);return}s.requested=true;try{this.parseVTTCues_(a)}catch(e){this.stopForError({message:e.message});return}this.updateTimeMapping_(a,this.syncController_.timelines[a.timeline],this.playlist_);if(a.cues.length){a.timingInfo={start:a.cues[0].startTime,end:a.cues[a.cues.length-1].endTime}}else{a.timingInfo={start:a.startOfSegment,end:a.startOfSegment+a.duration}}if(a.isSyncRequest){this.trigger("syncinfoupdate");this.pendingSegment_=null;this.state="READY";return}a.byteLength=a.bytes.byteLength;this.mediaSecondsLoaded+=s.duration;
1a.cues.forEach(function(e){n.subtitlesTrack_.addCue(n.featuresNativeTextTracks_?new l["default"].VTTCue(e.startTime,e.endTime,e.text):e)});Qa(this.subtitlesTrack_);this.handleAppendsDone_()};i.handleData_=function e(){};i.updateTimingInfoEnd_=function e(){};i.parseVTTCues_=function e(t){var i;var r=false;if(typeof l["default"].TextDecoder==="function"){i=new l["default"].TextDecoder("utf8")}else{i=l["default"].WebVTT.StringDecoder();r=true}var n=new l["default"].WebVTT.Parser(l["default"],l["default"].vttjs,i);t.cues=[];t.timestampmap={MPEGTS:0,LOCAL:0};n.oncue=t.cues.push.bind(t.cues);n.ontimestampmap=function(e){t.timestampmap=e};n.onparsingerror=function(e){u["default"].log.warn("Error encountered when parsing cues: "+e.message)};if(t.segment.map){var a=t.segment.map.bytes;if(r){a=ws(a)}n.parse(a)}var s=t.bytes;if(r){s=ws(s)}n.parse(s);n.flush()};i.updateTimeMapping_=function e(t,i,r){var n=t.segment;if(!i){return}if(!t.cues.length){n.empty=true;return}var a=t.timestampmap;var s=a.MPEGTS/Kr.ONE_SECOND_IN_TS-a.LOCAL+i.mapping;t.cues.forEach(function(e){e.startTime+=s;e.endTime+=s});if(!r.syncInfo){var o=t.cues[0].startTime;var l=t.cues[t.cues.length-1].startTime;r.syncInfo={mediaSequence:r.mediaSequence+t.mediaIndex,time:Math.min(o,l-n.duration)}}};return t}(hs);var As=function e(t,i){var r=t.cues;for(var n=0;n<r.length;n++){var a=r[n];if(i>=a.adStartTime&&i<=a.adEndTime){return a}}return null};var xs=function e(t,i,r){if(r===void 0){r=0}if(!t.segments){return}var n=r;var a;for(var s=0;s<t.segments.length;s++){var o=t.segments[s];if(!a){a=As(i,n+o.duration/2)}if(a){if("cueIn"in o){a.endTime=n;a.adEndTime=n;n+=o.duration;a=null;continue}if(n<a.endTime){n+=o.duration;continue}a.endTime+=o.duration}else{if("cueOut"in o){a=new l["default"].VTTCue(n,n+o.duration,o.cueOut);a.adStartTime=n;a.adEndTime=n+parseFloat(o.cueOut);i.addCue(a)}if("cueOutCont"in o){var u=o.cueOutCont.split("/").map(parseFloat),c=u[0],d=u[1];a=new l["default"].VTTCue(n,n+o.duration,"");a.adStartTime=n-c;a.adEndTime=a.adStartTime+d;i.addCue(a)}}n+=o.duration}};var Ps=[{name:"VOD",run:function e(t,i,r,n,a){if(r!==Infinity){var s={time:0,segmentIndex:0};return s}return null}},{name:"ProgramDateTime",run:function e(t,i,r,n,a){if(!t.datetimeToDisplayTime){return null}var s=i.segments||[];var o=null;var l=null;a=a||0;for(var u=0;u<s.length;u++){var c=s[u];if(c.dateTimeObject){var d=c.dateTimeObject.getTime()/1e3;var f=d+t.datetimeToDisplayTime;var h=Math.abs(a-f);if(l!==null&&(h===0||l<h)){break}l=h;o={time:f,segmentIndex:u}}}return o}},{name:"Segment",run:function e(t,i,r,n,a){var s=i.segments||[];var o=null;var l=null;a=a||0;for(var u=0;u<s.length;u++){var c=s[u];if(c.timeline===n&&typeof c.start!=="undefined"){var d=Math.abs(a-c.start);if(l!==null&&l<d){break}if(!o||l===null||l>=d){l=d;o={time:c.start,segmentIndex:u}}}}return o}},{name:"Discontinuity",run:function e(t,i,r,n,a){var s=null;a=a||0;if(i.discontinuityStarts&&i.discontinuityStarts.length){var o=null;for(var l=0;l<i.discontinuityStarts.length;l++){var u=i.discontinuityStarts[l];var c=i.discontinuitySequence+l+1;var d=t.discontinuities[c];if(d){var f=Math.abs(a-d.time);if(o!==null&&o<f){break}if(!s||o===null||o>=f){o=f;s={time:d.time,segmentIndex:u}}}}}return s}},{name:"Playlist",run:function e(t,i,r,n,a){if(i.syncInfo){var s={time:i.syncInfo.time,segmentIndex:i.syncInfo.mediaSequence-i.mediaSequence};return s}return null}}];var Os=function(e){h(t,e);function t(t){var i;i=e.call(this)||this;i.timelines=[];i.discontinuities=[];i.datetimeToDisplayTime=null;i.logger_=ja("SyncController");return i}var i=t.prototype;i.getSyncPoint=function e(t,i,r,n){var a=this.runStrategies_(t,i,r,n);if(!a.length){return null}return this.selectSyncPoint_(a,{key:"time",value:n})};i.getExpiredTime=function e(t,i){if(!t||!t.segments){return null}var r=this.runStrategies_(t,i,t.discontinuitySequence,0);if(!r.length){return null}var n=this.selectSyncPoint_(r,{key:"segmentIndex",value:0});if(n.segmentIndex>0){n.time*=-1}return Math.abs(n.time+oe(t,n.segmentIndex,0))};i.runStrategies_=function e(t,i,r,n){var a=[];for(var s=0;s<Ps.length;s++){var o=Ps[s];var l=o.run(this,t,i,r,n);if(l){l.strategy=o.name;a.push({strategy:o.name,syncPoint:l})}}return a};i.selectSyncPoint_=function e(t,i){var r=t[0].syncPoint;var n=Math.abs(t[0].syncPoint[i.key]-i.value);var a=t[0].strategy;for(var s=1;s<t.length;s++){var o=Math.abs(t[s].syncPoint[i.key]-i.value);if(o<n){n=o;r=t[s].syncPoint;a=t[s].strategy}}this.logger_("syncPoint for ["+i.key+": "+i.value+"] chosen with strategy"+(" ["+a+"]: [time:"+r.time+",")+(" segmentIndex:"+r.segmentIndex+"]"));return r};i.saveExpiredSegmentInfo=function e(t,i){var r=i.mediaSequence-t.mediaSequence;for(var n=r-1;n>=0;n--){var a=t.segments[n];if(a&&typeof a.start!=="undefined"){i.syncInfo={mediaSequence:t.mediaSequence+n,time:a.start};
1this.logger_("playlist refresh sync: [time:"+i.syncInfo.time+","+(" mediaSequence: "+i.syncInfo.mediaSequence+"]"));this.trigger("syncinfoupdate");break}}};i.setDateTimeMapping=function e(t){if(!this.datetimeToDisplayTime&&t.segments&&t.segments.length&&t.segments[0].dateTimeObject){var i=t.segments[0].dateTimeObject.getTime()/1e3;this.datetimeToDisplayTime=-i}};i.saveSegmentTimingInfo=function e(t){var i=t.segmentInfo,r=t.shouldSaveTimelineMapping;var n=this.calculateSegmentTimeMapping_(i,i.timingInfo,r);if(n){this.saveDiscontinuitySyncInfo_(i);if(!i.playlist.syncInfo){i.playlist.syncInfo={mediaSequence:i.playlist.mediaSequence+i.mediaIndex,time:i.segment.start}}}};i.timestampOffsetForTimeline=function e(t){if(typeof this.timelines[t]==="undefined"){return null}return this.timelines[t].time};i.mappingForTimeline=function e(t){if(typeof this.timelines[t]==="undefined"){return null}return this.timelines[t].mapping};i.calculateSegmentTimeMapping_=function e(t,i,r){var n=t.segment;var a=this.timelines[t.timeline];if(t.timestampOffset!==null){a={time:t.startOfSegment,mapping:t.startOfSegment-i.start};if(r){this.timelines[t.timeline]=a;this.trigger("timestampoffset");this.logger_("time mapping for timeline "+t.timeline+": "+("[time: "+a.time+"] [mapping: "+a.mapping+"]"))}n.start=t.startOfSegment;n.end=i.end+a.mapping}else if(a){n.start=i.start+a.mapping;n.end=i.end+a.mapping}else{return false}return true};i.saveDiscontinuitySyncInfo_=function e(t){var i=t.playlist;var r=t.segment;if(r.discontinuity){this.discontinuities[r.timeline]={time:r.start,accuracy:0}}else if(i.discontinuityStarts&&i.discontinuityStarts.length){for(var n=0;n<i.discontinuityStarts.length;n++){var a=i.discontinuityStarts[n];var s=i.discontinuitySequence+n+1;var o=a-t.mediaIndex;var l=Math.abs(o);if(!this.discontinuities[s]||this.discontinuities[s].accuracy>l){var u=void 0;if(o<0){u=r.start-oe(i,t.mediaIndex,a)}else{u=r.end+oe(i,t.mediaIndex+1,a)}this.discontinuities[s]={time:u,accuracy:l}}}}};i.dispose=function e(){this.trigger("dispose");this.off()};return t}(u["default"].EventTarget);var Ls=function(e){h(t,e);function t(){var t;t=e.call(this)||this;t.pendingTimelineChanges_={};t.lastTimelineChanges_={};return t}var i=t.prototype;i.clearPendingTimelineChange=function e(t){this.pendingTimelineChanges_[t]=null;this.trigger("pendingtimelinechange")};i.pendingTimelineChange=function e(t){var i=t.type,r=t.from,n=t.to;if(typeof r==="number"&&typeof n==="number"){this.pendingTimelineChanges_[i]={type:i,from:r,to:n};this.trigger("pendingtimelinechange")}return this.pendingTimelineChanges_[i]};i.lastTimelineChange=function e(t){var i=t.type,r=t.from,n=t.to;if(typeof r==="number"&&typeof n==="number"){this.lastTimelineChanges_[i]={type:i,from:r,to:n};delete this.pendingTimelineChanges_[i];this.trigger("timelinechange")}return this.lastTimelineChanges_[i]};i.dispose=function e(){this.trigger("dispose");this.pendingTimelineChanges_={};this.lastTimelineChanges_={};this.off()};return t}(u["default"].EventTarget);var Ds=new na("./decrypter-worker.worker.js",function(e,t){var i=this;var r=function(){function e(e,t){for(var i=0;i<t.length;i++){var r=t[i];r.enumerable=r.enumerable||false;r.configurable=true;if("value"in r)r.writable=true;Object.defineProperty(e,r.key,r)}}function t(t,i,r){if(i)e(t.prototype,i);if(r)e(t,r);return t}var r=t;function n(e,t){e.prototype=Object.create(t.prototype);e.prototype.constructor=e;e.__proto__=t}var a=n;var s=function(){function e(){this.listeners={}}var t=e.prototype;t.on=function e(t,i){if(!this.listeners[t]){this.listeners[t]=[]}this.listeners[t].push(i)};t.off=function e(t,i){if(!this.listeners[t]){return false}var r=this.listeners[t].indexOf(i);this.listeners[t]=this.listeners[t].slice(0);this.listeners[t].splice(r,1);return r>-1};t.trigger=function e(t){var i=this.listeners[t];if(!i){return}if(arguments.length===2){var r=i.length;for(var n=0;n<r;++n){i[n].call(this,arguments[1])}}else{var a=Array.prototype.slice.call(arguments,1);var s=i.length;for(var o=0;o<s;++o){i[o].apply(this,a)}}};t.dispose=function e(){this.listeners={}};t.pipe=function e(t){this.on("data",function(e){t.push(e)})};return e}();function o(e){return e.subarray(0,e.byteLength-e[e.byteLength-1])}var l=function e(){var t=[[[],[],[],[],[]],[[],[],[],[],[]]];var i=t[0];var r=t[1];var n=i[4];var a=r[4];var s;var o;var l;var u=[];var c=[];var d;var f;var h;var p;var v;var m;for(s=0;s<256;s++){c[(u[s]=s<<1^(s>>7)*283)^s]=s}for(o=l=0;!n[o];o^=d||1,l=c[l]||1){p=l^l<<1^l<<2^l<<3^l<<4;p=p>>8^p&255^99;n[o]=p;a[p]=o;h=u[f=u[d=u[o]]];m=h*16843009^f*65537^d*257^o*16843008;v=u[p]*257^p*16843008;for(s=0;s<4;s++){i[s][o]=v=v<<24^v>>>8;r[s][p]=m=m<<24^m>>>8}}for(s=0;s<5;s++){i[s]=i[s].slice(0);r[s]=r[s].slice(0)}return t};var u=null;var c=function(){function e(e){if(!u){u=l()}this._tables=[[u[0][0].slice(),u[0][1].slice(),u[0][2].slice(),u[0][3].slice(),u[0][4].slice()],[u[1][0].slice(),u[1][1].slice(),u[1][2].slice(),u[1][3].slice(),u[1][4].slice()]];var t;var i;var r;var n=this._tables[0][4];var a=this._tables[1];var s=e.length;var o=1;if(s!==4&&s!==6&&s!==8){throw new Error("Invalid aes key size")}var c=e.slice(0);var d=[];this._key=[c,d];for(t=s;t<4*s+28;t++){r=c[t-1];if(t%s===0||s===8&&t%s===4){r=n[r>>>24]<<24^n[r>>16&255]<<16^n[r>>8&255]<<8^n[r&255];if(t%s===0){r=r<<8^r>>>24^o<<24;o=o<<1^(o>>7)*283}}c[t]=c[t-s]^r}for(i=0;t;i++,t--){r=c[i&3?t:t-4];if(t<=4||i<4){d[i]=r}else{d[i]=a[0][n[r>>>24]]^a[1][n[r>>16&255]]^a[2][n[r>>8&255]]^a[3][n[r&255]]}}}var t=e.prototy'),t[0].s.push('var l=t^o[0];var u=n^o[1];var c=r^o[2];var d=i^o[3];var f;var h;var p;var v=o.length/4-2;var m;var g=4;var y=this._tables[1];var _=y[0];var b=y[1];var T=y[2];var S=y[3];var k=y[4];for(m=0;m<v;m++){f=_[l>>>24]^b[u>>16&255]^T[c>>
18&255]^S[d&255]^o[g];h=_[u>>>24]^b[c>>16&255]^T[d>>8&255]^S[l&255]^o[g+1];p=_[c>>>24]^b[d>>16&255]^T[l>>8&255]^S[u&255]^o[g+2];d=_[d>>>24]^b[l>>16&255]^T[u>>8&255]^S[c&255]^o[g+3];g+=4;l=f;u=h;c=p}for(m=0;m<4;m++){a[(3&-m)+s]=k[l>>>24]<<24^k[u>>16&255]<<16^k[c>>8&255]<<8^k[d&255]^o[g++];f=l;l=u;u=c;c=d;d=f}};return e}();var d=function(e){a(t,e);function t(){var t;t=e.call(this,s)||this;t.jobs=[];t.delay=1;t.timeout_=null;return t}var i=t.prototype;i.processJob_=function e(){this.jobs.shift()();if(this.jobs.length){this.timeout_=setTimeout(this.processJob_.bind(this),this.delay)}else{this.timeout_=null}};i.push=function e(t){this.jobs.push(t);if(!this.timeout_){this.timeout_=setTimeout(this.processJob_.bind(this),this.delay)}};return t}(s);var f=function e(t){return t<<24|(t&65280)<<8|(t&16711680)>>8|t>>>24};var h=function e(t,i,r){var n=new Int32Array(t.buffer,t.byteOffset,t.byteLength>>2);var a=new c(Array.prototype.slice.call(i));var s=new Uint8Array(t.byteLength);var o=new Int32Array(s.buffer);var l;var u;var d;var h;var p;var v;var m;var g;var y;l=r[0];u=r[1];d=r[2];h=r[3];for(y=0;y<n.length;y+=4){p=f(n[y]);v=f(n[y+1]);m=f(n[y+2]);g=f(n[y+3]);a.decrypt(p,v,m,g,o,y);o[y]=f(o[y]^l);o[y+1]=f(o[y+1]^u);o[y+2]=f(o[y+2]^d);o[y+3]=f(o[y+3]^h);l=p;u=v;d=m;h=g}return s};var p=function(){function e(t,i,r,n){var a=e.STEP;var s=new Int32Array(t.buffer);var l=new Uint8Array(t.byteLength);var u=0;this.asyncStream_=new d;this.asyncStream_.push(this.decryptChunk_(s.subarray(u,u+a),i,r,l));for(u=a;u<s.length;u+=a){r=new Uint32Array([f(s[u-4]),f(s[u-3]),f(s[u-2]),f(s[u-1])]);this.asyncStream_.push(this.decryptChunk_(s.subarray(u,u+a),i,r,l))}this.asyncStream_.push(function(){n(null,o(l))})}var t=e.prototype;t.decryptChunk_=function e(t,i,r,n){return function(){var e=h(t,i,r);n.set(e,t.byteOffset)}};r(e,null,[{key:"STEP",get:function e(){return 32e3}}]);return e}();var v=function e(t){var i={};Object.keys(t).forEach(function(e){var r=t[e];if(ArrayBuffer.isView(r)){i[e]={bytes:r.buffer,byteOffset:r.byteOffset,byteLength:r.byteLength}}else{i[e]=r}});return i};var m=function e(t){t.onmessage=function(e){var i=e.data;var r=new Uint8Array(i.encrypted.bytes,i.encrypted.byteOffset,i.encrypted.byteLength);var n=new Uint32Array(i.key.bytes,i.key.byteOffset,i.key.byteLength/4);var a=new Uint32Array(i.iv.bytes,i.iv.byteOffset,i.iv.byteLength/4);new p(r,n,a,function(e,r){t.postMessage(v({source:i.source,decrypted:r}),[r.buffer])})}};var g=new m(i);return g}()});var Rs=function e(t){var i=t.default?"main":"alternative";if(t.characteristics&&t.characteristics.indexOf("public.accessibility.describes-video")>=0){i="main-desc"}return i};var Ns=function e(t,i){t.abort();t.pause();if(i&&i.activePlaylistLoader){i.activePlaylistLoader.pause();i.activePlaylistLoader=null}};var Ms=function e(t,i){i.activePlaylistLoader=t;t.load()};var Us=function e(t,i){return function(){var e=i.segmentLoaders,r=e[t],n=e.main,a=i.mediaTypes[t];var s=a.activeTrack();var o=a.activeGroup(s);var l=a.activePlaylistLoader;Ns(r,a);if(!o){return}if(!o.playlistLoader){if(l){n.resetEverything()}return}r.resyncLoader();Ms(o.playlistLoader,a)}};var Bs=function e(t,i){return function(){var e=i.segmentLoaders[t];e.abort();e.pause()}};var Fs=function e(t,i){return function(){var e=i.segmentLoaders,r=e[t],n=e.main,a=i.mediaTypes[t];var s=a.activeTrack();var o=a.activeGroup(s);var l=a.activePlaylistLoader;Ns(r,a);if(!o){return}if(t==="AUDIO"){if(!o.playlistLoader){n.setAudio(true);n.resetEverything();return}r.setAudio(true);n.setAudio(false)}if(l===o.playlistLoader){Ms(o.playlistLoader,a);return}if(r.track){r.track(s)}r.resetEverything();Ms(o.playlistLoader,a)}};var Hs={AUDIO:function e(t,i){return function(){var e=i.segmentLoaders[t],r=i.mediaTypes[t],n=i.blacklistCurrentPlaylist;Ns(e,r);var a=r.activeTrack();var s=r.activeGroup();var o=(s.filter(function(e){return e.default})[0]||s[0]).id;var l=r.tracks[o];if(a===l){n({message:"Problem encountered loading the default audio track."});return}u["default"].log.warn("Problem encountered loading the alternate audio track."+"Switching back to default.");for(var c in r.tracks){r.tracks[c].enabled=r.tracks[c]===l}r.onTrackChanged()}},SUBTITLES:function e(t,i){return function(){var e=i.segmentLoaders[t],r=i.mediaTypes[t];u["default"].log.warn("Problem encountered loading the subtitle track."+"Disabling subtitle track.");Ns(e,r);var n=r.activeTrack();if(n){n.mode="disabled"}r.onTrackChanged()}}};var Vs={AUDIO:function e(t,i,r){if(!i){return}var n=r.tech,a=r.requestOptions,s=r.segmentLoaders[t];i.on("loadedmetadata",function(){var e=i.media();s.playlist(e,a);if(!n.paused()||e.endList&&n.preload()!=="none"){s.load()}});i.on("loadedplaylist",function(){s.playlist(i.media(),a);if(!n.paused()){s.load()}});i.on("error",Hs[t](t,r))},SUBTITLES:function e(t,i,r){var n=r.tech,a=r.requestOptions,s=r.segmentLoaders[t],o=r.mediaTypes[t];i.on("loadedmetadata",function(){var e=i.media();s.playlist(e,a);s.track(o.activeTrack());if(!n.paused()||e.endList&&n.preload()!=="none"){s.load()}});i.on("loadedplaylist",function(){s.playlist(i.media(),a);if(!n.paused()){s.load()}});i.on("error",Hs[t](t,r))}};var qs={AUDIO:function e(t,i){var r=i.vhs,n=i.sourceType,a=i.segmentLoaders[t],s=i.requestOptions,o=i.master,l=o.mediaGroups,c=o.playlists,d=i.mediaTypes[t],f=d.groups,h=d.tracks,p=i.masterPlaylistLoader;if(!l[t]||Object.keys(l[t]).length===0){l[t]={main:{default:{default:true}}}}var v=function e(a){if(!f[a]){f[a]=[]}var o=c.filter(function(e){return e.attributes[t]===a});var d=function e(c){var d=l[t][a][c];var v=o.filter(function(e){return e.resolvedUri!==d.resolvedUri});if(!v.length&&o.length){delete d.resolvedUri}var m=void 0;if(n==="vhs-json"&&d.playlists){m=new z(d.playlists[0],r,s)}else if(d.resolvedUri){m=new z(d.resolvedUri,r,s)}else if(d.playlists&&n==="dash"){m=new Wi(d.playlists[0],r,s,p)}else{m=null}d=u["default"].mergeOptions({id:c,playlistLoader:m},d);Vs[t](t,d.playlistLoader,i);f[a].push(d);if(typeof h[c]==="undefined"){var g=new u["default"].AudioTrack({id:c,kind:Rs(d),enabled:false,language:d.language,default:d.default,label:c});h[c]=g}};for(var v in l[t][a]){d(v)}};for(var m in l[t]){v(m)}a.on("error",Hs[t](t,i))},SUBTITLES:function e(t,i){var r=i.tech,n=i.vhs,a=i.sourceType,s=i.segmentLoaders[t],o=i.requestOptions,l=i.master.mediaGroups,c=i.mediaTypes[t],d=c.groups,f=c.tracks,h=i.masterPlaylistLoader;for(var p in l[t]){if(!d[p]){d[p]=[]}for(var v in l[t][p]){if(l[t][p][v].forced){continue}var m=l[t][p][v];var g=void 0;if(a==="hls"){g=new z(m.resolvedUri,n,o)}else if(a==="dash"){var y=m.playlists.filter(function(e){return e.excludeUntil!==Infinity});if(!y.length){return}g=new Wi(m.playlists[0],n,o,h)}else if(a==="vhs-json"){g=new z(m.playlists?m.playlists[0]:m.resolvedUri,n,o)}m=u["default"].mergeOptions({id:v,playlistLoader:g},m);Vs[t](t,m.playlistLoader,i);d[p].push(m);if(typeof f[v]==="undefined"){var _=r.addRemoteTextTrack({id:v,kind:"subtitles",default:m.default&&m.autoselect,language:m.language,label:v},false).track;f[v]=_}}}s.on("error",Hs[t](t,i))},"CLOSED-CAPTIONS":function e(t,i){var r=i.tech,n=i.master.mediaGroups,a=i.mediaTypes[t],s=a.groups,o=a.tracks;for(var l in n[t]){if(!s[l]){s[l]=[]}for(var c in n[t][l]){var d=n[t][l][c];
1if(!d.instreamId.match(/CC\\d/)){continue}s[l].push(u["default"].mergeOptions({id:c},d));if(typeof o[c]==="undefined"){var f=r.addRemoteTextTrack({id:d.instreamId,kind:"captions",default:d.default&&d.autoselect,language:d.language,label:c},false).track;o[c]=f}}}}};var zs=function e(t,i){return function(e){var r=i.masterPlaylistLoader,n=i.mediaTypes[t].groups;var a=r.media();if(!a){return null}var s=null;if(a.attributes[t]){s=n[a.attributes[t]]}s=s||n.main;if(typeof e==="undefined"){return s}if(e===null){return null}return s.filter(function(t){return t.id===e.id})[0]||null}};var Ws={AUDIO:function e(t,i){return function(){var e=i.mediaTypes[t].tracks;for(var r in e){if(e[r].enabled){return e[r]}}return null}},SUBTITLES:function e(t,i){return function(){var e=i.mediaTypes[t].tracks;for(var r in e){if(e[r].mode==="showing"||e[r].mode==="hidden"){return e[r]}}return null}}};var Gs=function e(t){["AUDIO","SUBTITLES","CLOSED-CAPTIONS"].forEach(function(e){qs[e](e,t)});var i=t.mediaTypes,r=t.masterPlaylistLoader,n=t.tech,a=t.vhs;["AUDIO","SUBTITLES"].forEach(function(e){i[e].activeGroup=zs(e,t);i[e].activeTrack=Ws[e](e,t);i[e].onGroupChanged=Us(e,t);i[e].onGroupChanging=Bs(e,t);i[e].onTrackChanged=Fs(e,t)});var s=i.AUDIO.activeGroup();if(s){var o=(s.filter(function(e){return e.default})[0]||s[0]).id;i.AUDIO.tracks[o].enabled=true;i.AUDIO.onTrackChanged()}r.on("mediachange",function(){["AUDIO","SUBTITLES"].forEach(function(e){return i[e].onGroupChanged()})});r.on("mediachanging",function(){["AUDIO","SUBTITLES"].forEach(function(e){return i[e].onGroupChanging()})});var l=function e(){i.AUDIO.onTrackChanged();n.trigger({type:"usage",name:"vhs-audio-change"});n.trigger({type:"usage",name:"hls-audio-change"})};n.audioTracks().addEventListener("change",l);n.remoteTextTracks().addEventListener("change",i.SUBTITLES.onTrackChanged);a.on("dispose",function(){n.audioTracks().removeEventListener("change",l);n.remoteTextTracks().removeEventListener("change",i.SUBTITLES.onTrackChanged)});n.clearTracks("audio");for(var u in i.AUDIO.tracks){n.audioTracks().addTrack(i.AUDIO.tracks[u])}};var Ys=function e(){var t={};["AUDIO","SUBTITLES","CLOSED-CAPTIONS"].forEach(function(e){t[e]={groups:{},tracks:{},activePlaylistLoader:null,activeGroup:ps,activeTrack:ps,onGroupChanged:ps,onTrackChanged:ps}});return t};var Ks=60*2;var Xs;var Qs=["mediaRequests","mediaRequestsAborted","mediaRequestsTimedout","mediaRequestsErrored","mediaTransferDuration","mediaBytesTransferred"];var Js=function e(t){return this.audioSegmentLoader_[t]+this.mainSegmentLoader_[t]};var Zs=function e(t){var i=t.currentPlaylist,r=t.nextPlaylist,n=t.forwardBuffer,a=t.bufferLowWaterLine,s=t.bufferHighWaterLine,o=t.duration,l=t.experimentalBufferBasedABR,c=t.log;if(!r){u["default"].log.warn("We received no playlist to switch to. Please check your stream.");return false}var d="allowing switch "+(i&&i.id||"null")+" -> "+r.id;if(!i||!i.endList){c(d+" as current playlist "+(!i?"is not set":"is live"));return true}if(r.id===i.id){return false}var f=l?Gi.EXPERIMENTAL_MAX_BUFFER_LOW_WATER_LINE:Gi.MAX_BUFFER_LOW_WATER_LINE;if(o<f){c(d+" as duration < max low water line ("+o+" < "+f+")");return true}var h=r.attributes.BANDWIDTH;var p=i.attributes.BANDWIDTH;if(h<p&&(!l||n<s)){var v=d+" as next bandwidth < current bandwidth ("+h+" < "+p+")";if(l){v+=" and forwardBuffer < bufferHighWaterLine ("+n+" < "+s+")"}c(v);return true}if((!l||h>p)&&n>=a){var m=d+" as forwardBuffer >= bufferLowWaterLine ("+n+" >= "+a+")";if(l){m+=" and next bandwidth > current bandwidth ("+h+" > "+p+")"}c(m);return true}c("not "+d+" as no switching criteria met");return false};var $s=function(e){h(t,e);function t(t){var i;i=e.call(this)||this;var r=t.src,n=t.handleManifestRedirects,a=t.withCredentials,s=t.tech,o=t.bandwidth,c=t.externVhs,f=t.useCueTags,h=t.blacklistDuration,p=t.enableLowInitialPlaylist,v=t.sourceType,m=t.cacheEncryptionKeys,g=t.handlePartialData,y=t.experimentalBufferBasedABR;if(!r){throw new Error("A non-empty playlist URL or JSON manifest string is required")}Xs=c;i.experimentalBufferBasedABR=Boolean(y);i.withCredentials=a;i.tech_=s;i.vhs_=s.vhs;i.sourceType_=v;i.useCueTags_=f;i.blacklistDuration=h;i.enableLowInitialPlaylist=p;if(i.useCueTags_){i.cueTagsTrack_=i.tech_.addTextTrack("metadata","ad-cues");i.cueTagsTrack_.inBandMetadataTrackDispatchType=""}i.requestOptions_={withCredentials:a,handleManifestRedirects:n,timeout:null};i.on("error",i.pauseLoading);i.mediaTypes_=Ys();i.mediaSource=new l["default"].MediaSource;i.handleDurationChange_=i.handleDurationChange_.bind(d(i));i.handleSourceOpen_=i.handleSourceOpen_.bind(d(i));i.handleSourceEnded_=i.handleSourceEnded_.bind(d(i));i.mediaSource.addEventListener("durationchange",i.handleDurationChange_);i.mediaSource.addEventListener("sourceopen",i.handleSourceOpen_);i.mediaSource.addEventListener("sourceended",i.handleSourceEnded_);i.seekable_=u["default"].createTimeRanges();i.hasPlayed_=false;i.syncController_=new Os(t);i.segmentMetadataTrack_=s.addRemoteTextTrack({kind:"metadata",label:"segment-metadata"},false).track;i.decrypter_=new Ds;i.sourceUpdater_=new js(i.mediaSource);i.inbandTextTracks_={};i.timelineChangeController_=new Ls;var _={vhs:i.vhs_,parse708captions:t.parse708captions,mediaSource:i.mediaSource,currentTime:i.tech_.currentTime.bind(i.tech_),seekable:function e(){return i.seekable()},seeking:function e(){return i.tech_.seeking()},duration:function e(){return i.duration()},hasPlayed:function e(){return i.hasPlayed_},goalBufferLength:function e(){return i.goalBufferLength()},bandwidth:o,syncController:i.syncController_,decrypter:i.decrypter_,sourceType:i.sourceType_,inbandTextTracks:i.inbandTextTracks_,cacheEncryptionKeys:m,handlePartialData:g,sourceUpdater:i.sourceUpdater_,timelineChangeController:i.timelineChangeController_};i.masterPlaylistLoader_=i.sourceType_==="dash"?new Wi(r,i.vhs_,i.requestOptions_):new z(r,i.vhs_,i.requestOptions_);i.setupMasterPlaylistLoaderListeners_();i.mainSegmentLoader_=new hs(u["default"].mergeOptions(_,{segmentMetadataTrack:i.segmentMetadataTrack_,loaderType:"main"}),t);i.audioSegmentLoader_=new hs(u["default"].mergeOptions(_,{loaderType:"audio"}),t);i.subtitleSegmentLoader_=new Is(u["default"].mergeOptions(_,{loaderType:"vtt",featuresNativeTextTracks:i.tech_.featuresNativeTextTracks}),t);i.setupSegmentLoaderListeners_();if(i.experimentalBufferBasedABR){i.masterPlaylistLoader_.one("loadedplaylist",function(){return i.startABRTimer_()});i.tech_.on("pause",function(){return i.stopABRTimer_()});i.tech_.on("play",function(){return i.startABRTimer_()})}Qs.forEach(function(e){i[e+"_"]=Js.bind(d(i),e)});i.logger_=ja("MPC");i.triggeredFmp4Usage=false;i.masterPlaylistLoader_.load();return i}var i=t.prototype;i.checkABR_=function e(){var t=this.selectPlaylist();if(this.shouldSwitchToMedia_(t)){this.masterPlaylistLoader_.media(t)}};i.startABRTimer_=function e(){var t=this;this.stopABRTimer_();this.abrTimer_=l["default"].setInterval(function(){return t.checkABR_()},250)};i.stopABRTimer_=function e(){if(this.tech_.scrubbing&&this.tech_.scrubbing()){return}l["default"].clearInterval(this.abrTimer_);this.abrTimer_=null};i.setupMasterPlaylistLoaderListeners_=function e(){var t=this;this.masterPlaylistLoader_.on("loadedmetadata",function(){var e=t.masterPlaylistLoader_.media();var i=e.targetDuration*1.5*1e3;if(_e(t.masterPlaylistLoader_.master,t.masterPlaylistLoader_.media())){t.requestOptions_.timeout=0}else{t.requestOptions_.timeout=i}if(e.endList&&t.tech_.preload()!=="none"){t.mainSegmentLoader_.playlist(e,t.requestOptions_);t.mainSegmentLoader_.load()}Gs({sourceType:t.sourceType_,segmentLoaders:{AUDIO:t.audioSegmentLoader_,SUBTITLES:t.subtitleSegmentLoader_,main:t.mainSegmentLoader_},tech:t.tech_,requestOptions:t.requestOptions_,masterPlaylistLoader:t.masterPlaylistLoader_,vhs:t.vhs_,master:t.master(),mediaTypes:t.mediaTypes_,blacklistCurrentPlaylist:t.blacklistCurrentPlaylist.bind(t)});t.triggerPresenceUsage_(t.master(),e);t.setupFirstPlay();if(!t.mediaTypes_.AUDIO.activePlaylistLoader||t.mediaTypes_.AUDIO.activePlaylistLoader.media()){t.trigger("selectedinitialmedia")}else{t.mediaTypes_.AUDIO.activePlaylistLoader.one("loadedmetadata",function(){t.trigger("selectedinitialmedia")})}});this.masterPlaylistLoader_.on("loadedplaylist",function(){var e=t.masterPlaylistLoader_.media();if(!e){t.excludeUnsupportedVariants_();var i;if(t.enableLowInitialPlaylist){i=t.selectInitialPlaylist()}if(!i){i=t.selectPlaylist()}if(!i||!t.shouldSwitchToMedia_(i)){return}t.initialMedia_=i;t.masterPlaylistLoader_.media(t.initialMedia_);var r=t.sourceType_==="vhs-json"&&t.initialMedia_.segments;if(!r){return}e=t.initialMedia_}t.handleUpdatedMediaPlaylist(e)}
1);this.masterPlaylistLoader_.on("error",function(){t.blacklistCurrentPlaylist(t.masterPlaylistLoader_.error)});this.masterPlaylistLoader_.on("mediachanging",function(){t.mainSegmentLoader_.abort();t.mainSegmentLoader_.paus'),t[1].s.push('pe;t.decrypt=function e(t,i,r,n,a,s){var o=this._key[1];var l=t^o[0];var u=n^o[1];var c=r^o[2];var d=i^o[3];var f;var h;var p;var v=o.length/4-2;var m;var g=4;var y=this._tables[1];var _=y[0];var b=y[1];var T=y[2];var S=y[3];var k=y[4];for(m=0;m<v;m++){f=_[l>>>24]^b[u>>16&255]^T[c>>8&255]^S[d&255]^o[g];h=_[u>>>24]^b[c>>16&255]^T[d>>8&255]^S[l&255]^o[g+1];p=_[c>>>24]^b[d>>16&255]^T[l>>8&255]^S[u&255]^o[g+2];d=_[d>>>24]^b[l>>16&255]^T[u>>8&255]^S[c&255]^o[g+3];g+=4;l=f;u=h;c=p}for(m=0;m<4;m++){a[(3&-m)+s]=k[l>>>24]<<24^k[u>>16&255]<<16^k[c>>8&255]<<8^k[d&255]^o[g++];f=l;l=u;u=c;c=d;d=f}};return e}();var d=function(e){a(t,e);function t(){var t;t=e.call(this,s)||this;t.jobs=[];t.delay=1;t.timeout_=null;return t}var i=t.prototype;i.processJob_=function e(){this.jobs.shift()();if(this.jobs.length){this.timeout_=setTimeout(this.processJob_.bind(this),this.delay)}else{this.timeout_=null}};i.push=function e(t){this.jobs.push(t);if(!this.timeout_){this.timeout_=setTimeout(this.processJob_.bind(this),this.delay)}};return t}(s);var f=function e(t){return t<<24|(t&65280)<<8|(t&16711680)>>8|t>>>24};var h=function e(t,i,r){var n=new Int32Array(t.buffer,t.byteOffset,t.byteLength>>2);var a=new c(Array.prototype.slice.call(i));var s=new Uint8Array(t.byteLength);var o=new Int32Array(s.buffer);var l;var u;var d;var h;var p;var v;var m;var g;var y;l=r[0];u=r[1];d=r[2];h=r[3];for(y=0;y<n.length;y+=4){p=f(n[y]);v=f(n[y+1]);m=f(n[y+2]);g=f(n[y+3]);a.decrypt(p,v,m,g,o,y);o[y]=f(o[y]^l);o[y+1]=f(o[y+1]^u);o[y+2]=f(o[y+2]^d);o[y+3]=f(o[y+3]^h);l=p;u=v;d=m;h=g}return s};var p=function(){function e(t,i,r,n){var a=e.STEP;var s=new Int32Array(t.buffer);var l=new Uint8Array(t.byteLength);var u=0;this.asyncStream_=new d;this.asyncStream_.push(this.decryptChunk_(s.subarray(u,u+a),i,r,l));for(u=a;u<s.length;u+=a){r=new Uint32Array([f(s[u-4]),f(s[u-3]),f(s[u-2]),f(s[u-1])]);this.asyncStream_.push(this.decryptChunk_(s.subarray(u,u+a),i,r,l))}this.asyncStream_.push(function(){n(null,o(l))})}var t=e.prototype;t.decryptChunk_=function e(t,i,r,n){return function(){var e=h(t,i,r);n.set(e,t.byteOffset)}};r(e,null,[{key:"STEP",get:function e(){return 32e3}}]);return e}();var v=function e(t){var i={};Object.keys(t).forEach(function(e){var r=t[e];if(ArrayBuffer.isView(r)){i[e]={bytes:r.buffer,byteOffset:r.byteOffset,byteLength:r.byteLength}}else{i[e]=r}});return i};var m=function e(t){t.onmessage=function(e){var i=e.data;var r=new Uint8Array(i.encrypted.bytes,i.encrypted.byteOffset,i.encrypted.byteLength);var n=new Uint32Array(i.key.bytes,i.key.byteOffset,i.key.byteLength/4);var a=new Uint32Array(i.iv.bytes,i.iv.byteOffset,i.iv.byteLength/4);new p(r,n,a,function(e,r){t.postMessage(v({source:i.source,decrypted:r}),[r.buffer])})}};var g=new m(i);return g}()});var Rs=function e(t){var i=t.default?"main":"alternative";if(t.characteristics&&t.characteristics.indexOf("public.accessibility.describes-video")>=0){i="main-desc"}return i};var Ns=function e(t,i){t.abort();t.pause();if(i&&i.activePlaylistLoader){i.activePlaylistLoader.pause();i.activePlaylistLoader=null}};var Ms=function e(t,i){i.activePlaylistLoader=t;t.load()};var Us=function e(t,i){return function(){var e=i.segmentLoaders,r=e[t],n=e.main,a=i.mediaTypes[t];var s=a.activeTrack();var o=a.activeGroup(s);var l=a.activePlaylistLoader;Ns(r,a);if(!o){return}if(!o.playlistLoader){if(l){n.resetEverything()}return}r.resyncLoader();Ms(o.playlistLoader,a)}};var Bs=function e(t,i){return function(){var e=i.segmentLoaders[t];e.abort();e.pause()}};var Fs=function e(t,i){return function(){var e=i.segmentLoaders,r=e[t],n=e.main,a=i.mediaTypes[t];var s=a.activeTrack();var o=a.activeGroup(s);var l=a.activePlaylistLoader;Ns(r,a);if(!o){return}if(t==="AUDIO"){if(!o.playlistLoader){n.setAudio(true);n.resetEverything();return}r.setAudio(true);n.setAudio(false)}if(l===o.playlistLoader){Ms(o.playlistLoader,a);return}if(r.track){r.track(s)}r.resetEverything();Ms(o.playlistLoader,a)}};var Hs={AUDIO:function e(t,i){return function(){var e=i.segmentLoaders[t],r=i.mediaTypes[t],n=i.blackl
1istCurrentPlaylist;Ns(e,r);var a=r.activeTrack();var s=r.activeGroup();var o=(s.filter(function(e){return e.default})[0]||s[0]).id;var l=r.tracks[o];if(a===l){n({message:"Problem encountered loading the default audio track."});return}u["default"].log.warn("Problem encountered loading the alternate audio track."+"Switching back to default.");for(var c in r.tracks){r.tracks[c].enabled=r.tracks[c]===l}r.onTrackChanged()}},SUBTITLES:function e(t,i){return function(){var e=i.segmentLoaders[t],r=i.mediaTypes[t];u["default"].log.warn("Problem encountered loading the subtitle track."+"Disabling subtitle track.");Ns(e,r);var n=r.activeTrack();if(n){n.mode="disabled"}r.onTrackChanged()}}};var Vs={AUDIO:function e(t,i,r){if(!i){return}var n=r.tech,a=r.requestOptions,s=r.segmentLoaders[t];i.on("loadedmetadata",function(){var e=i.media();s.playlist(e,a);if(!n.paused()||e.endList&&n.preload()!=="none"){s.load()}});i.on("loadedplaylist",function(){s.playlist(i.media(),a);if(!n.paused()){s.load()}});i.on("error",Hs[t](t,r))},SUBTITLES:function e(t,i,r){var n=r.tech,a=r.requestOptions,s=r.segmentLoaders[t],o=r.mediaTypes[t];i.on("loadedmetadata",function(){var e=i.media();s.playlist(e,a);s.track(o.activeTrack());if(!n.paused()||e.endList&&n.preload()!=="none"){s.load()}});i.on("loadedplaylist",function(){s.playlist(i.media(),a);if(!n.paused()){s.load()}});i.on("error",Hs[t](t,r))}};var qs={AUDIO:function e(t,i){var r=i.vhs,n=i.sourceType,a=i.segmentLoaders[t],s=i.requestOptions,o=i.master,l=o.mediaGroups,c=o.playlists,d=i.mediaTypes[t],f=d.groups,h=d.tracks,p=i.masterPlaylistLoader;if(!l[t]||Object.keys(l[t]).length===0){l[t]={main:{default:{default:true}}}}var v=function e(a){if(!f[a]){f[a]=[]}var o=c.filter(function(e){return e.attributes[t]===a});var d=function e(c){var d=l[t][a][c];var v=o.filter(function(e){return e.resolvedUri!==d.resolvedUri});if(!v.length&&o.length){delete d.resolvedUri}var m=void 0;if(n==="vhs-json"&&d.playlists){m=new z(d.playlists[0],r,s)}else if(d.resolvedUri){m=new z(d.resolvedUri,r,s)}else if(d.playlists&&n==="dash"){m=new Wi(d.playlists[0],r,s,p)}else{m=null}d=u["default"].mergeOptions({id:c,playlistLoader:m},d);Vs[t](t,d.playlistLoader,i);f[a].push(d);if(typeof h[c]==="undefined"){var g=new u["default"].AudioTrack({id:c,kind:Rs(d),enabled:false,language:d.language,default:d.default,label:c});h[c]=g}};for(var v in l[t][a]){d(v)}};for(var m in l[t]){v(m)}a.on("error",Hs[t](t,i))},SUBTITLES:function e(t,i){var r=i.tech,n=i.vhs,a=i.sourceType,s=i.segmentLoaders[t],o=i.requestOptions,l=i.master.mediaGroups,c=i.mediaTypes[t],d=c.groups,f=c.tracks,h=i.masterPlaylistLoader;for(var p in l[t]){if(!d[p]){d[p]=[]}for(var v in l[t][p]){if(l[t][p][v].forced){continue}var m=l[t][p][v];var g=void 0;if(a==="hls"){g=new z(m.resolvedUri,n,o)}else if(a==="dash"){var y=m.playlists.filter(function(e){return e.excludeUntil!==Infinity});if(!y.length){return}g=new Wi(m.playlists[0],n,o,h)}else if(a==="vhs-json"){g=new z(m.playlists?m.playlists[0]:m.resolvedUri,n,o)}m=u["default"].mergeOptions({id:v,playlistLoader:g},m);Vs[t](t,m.playlistLoader,i);d[p].push(m);if(typeof f[v]==="undefined"){var _=r.addRemoteTextTrack({id:v,kind:"subtitles",default:m.default&&m.autoselect,language:m.language,label:v},false).track;f[v]=_}}}s.on("error",Hs[t](t,i))},"CLOSED-CAPTIONS":function e(t,i){var r=i.tech,n=i.master.mediaGroups,a=i.mediaTypes[t],s=a.groups,o=a.tracks;for(var l in n[t]){if(!s[l]){s[l]=[]}for(var c in n[t][l]){var d=n[t][l][c];if(!d.instreamId.match(/CC\\d/)){continue}s[l].push(u["default"].mergeOptions({id:c},d));if(typeof o[c]==="undefined"){var f=r.addRemoteTextTrack({id:d.instreamId,
1kind:"captions",default:d.default&&d.autoselect,language:d.language,label:c},false).track;o[c]=f}}}}};var zs=function e(t,i){return function(e){var r=i.masterPlaylistLoader,n=i.mediaTypes[t].groups;var a=r.media();if(!a){return null}var s=null;if(a.attributes[t]){s=n[a.attributes[t]]}s=s||n.main;if(typeof e==="undefined"){return s}if(e===null){return null}return s.filter(function(t){return t.id===e.id})[0]||null}};var Ws={AUDIO:function e(t,i){return function(){var e=i.mediaTypes[t].tracks;for(var r in e){if(e[r].enabled){return e[r]}}return null}},SUBTITLES:function e(t,i){return function(){var e=i.mediaTypes[t].tracks;for(var r in e){if(e[r].mode==="showing"||e[r].mode==="hidden"){return e[r]}}return null}}};var Gs=function e(t){["AUDIO","SUBTITLES","CLOSED-CAPTIONS"].forEach(function(e){qs[e](e,t)});var i=t.mediaTypes,r=t.masterPlaylistLoader,n=t.tech,a=t.vhs;["AUDIO","SUBTITLES"].forEach(function(e){i[e].activeGroup=zs(e,t);i[e].activeTrack=Ws[e](e,t);i[e].onGroupChanged=Us(e,t);i[e].onGroupChanging=Bs(e,t);i[e].onTrackChanged=Fs(e,t)});var s=i.AUDIO.activeGroup();if(s){var o=(s.filter(function(e){return e.default})[0]||s[0]).id;i.AUDIO.tracks[o].enabled=true;i.AUDIO.onTrackChanged()}r.on("mediachange",function(){["AUDIO","SUBTITLES"].forEach(function(e){return i[e].onGroupChanged()})});r.on("mediachanging",function(){["AUDIO","SUBTITLES"].forEach(function(e){return i[e].onGroupChanging()})});var l=function e(){i.AUDIO.onTrackChanged();n.trigger({type:"usage",name:"vhs-audio-change"});n.trigger({type:"usage",name:"hls-audio-change"})};n.audioTracks().addEventListener("change",l);n.remoteTextTracks().addEventListener("change",i.SUBTITLES.onTrackChanged);a.on("dispose",function(){n.audioTracks().removeEventListener("change",l);n.remoteTextTracks().removeEventListener("change",i.SUBTITLES.onTrackChanged)});n.clearTracks("audio");for(var u in i.AUDIO.tracks){n.audioTracks().addTrack(i.AUDIO.tracks[u])}};var Ys=function e(){var t={};["AUDIO","SUBTITLES","CLOSED-CAPTIONS"].forEach(function(e){t[e]={groups:{},tracks:{},activePlaylistLoader:null,activeGroup:ps,activeTrack:ps,onGroupChanged:ps,onTrackChanged:ps}});return t};var Ks=60*2;var Xs;var Qs=["mediaRequests","mediaRequestsAborted","mediaRequestsTimedout","mediaRequestsErrored","mediaTransferDuration","mediaBytesTransferred"];var Js=function e(t){return this.audioSegmentLoader_[t]+this.mainSegmentLoader_[t]};var Zs=function e(t){var i=t.currentPlaylist,r=t.nextPlaylist,n=t.forwardBuffer,a=t.bufferLowWaterLine,s=t.bufferHighWaterLine,o=t.duration,l=t.experimentalBufferBasedABR,c=t.log;if(!r){u["default"].log.warn("We received no playlist to switch to. Please check your stream.");return false}var d="allowing switch "+(i&&i.id||"null")+" -> "+r.id;if(!i||!i.endList){c(d+" as current playlist "+(!i?"is not set":"is live"));return true}if(r.id===i.id){return false}var f=l?Gi.EXPERIMENTAL_MAX_BUFFER_LOW_WATER_LINE:Gi.MAX_BUFFER_LOW_WATER_LINE;if(o<f){c(d+" as duration < max low water line ("+o+" < "+f+")");return true}var h=r.attributes.BANDWIDTH;var p=i.attributes.BANDWIDTH;if(h<p&&(!l||n<s)){var v=d+" as next bandwidth < current bandwidth ("+h+" < "+p+")";if(l){v+=" and forwardBuffer < bufferHighWaterLine ("+n+" < "+s+")"}c(v);return true}if((!l||h>p)&&n>=a){var m=d+" as forwardBuffer >= bufferLowWaterLine ("+n+" >= "+a+")";if(l){m+=" and next bandwidth > current bandwidth ("+h+" > "+p+")"}c(m);return true}c("not "+d+" as no switching criteria met");return false};var $s=function(e){h(t,e);function t(t){var i;i=e.call(this)||this;var r=t.src,n=t.handleManifestRedirects,a=t.withCredentials,s=t.tech,o=t.bandwidth,c=t.externVhs,f=t.useCueTags,h=t.blacklistDuration,p=t.enableLowInitialPlaylist,v=t.sourceType,m=t.cacheEncryptionKeys,g=t.handlePartialData,y=t.experimentalBufferBasedABR;if(!r){throw new Error("A non-empty playlist URL or JSON manifest string is required")}Xs=c;i.experimentalBufferBasedABR=Boolean(y);i.withCredentials=a;i.tech_=s;i.vhs_=s.vhs;i.sourceType_=v;i.useCueTags_=f;i.blacklistDuration=h;i.enableLowInitialPlaylist=p;if(i.useCueTags_){i.cueTagsTrack_=i.tech_.addTextTrack("metadata","ad-cues");i.cueTagsTrack_.inBandMetadataTrackDispatchType=""}i.requestOptions_={withCredentials:a,handleManifestRedirects:n,timeout:null};i.on("error",i.pauseLoading);i.mediaTypes_=Ys();i.mediaSource=new l["default"].MediaSource;i.handleDurationChange_=i.handleDurationChange_.bind(d(i));i.handleSourceOpen_=i.handleSourceOpen_.bind(d(i));i.handleSourceEnded_=i.handleSourceEnded_.bind(d(i));i.mediaSource.addEventListener("durationchange",i.handleDurationChange_);i.mediaSource.addEventListener("sourceopen",i.handleSourceOpen_);i.mediaSource.addEventListener("sourceended",i.handleSourceEnded_);i.seekable_=u["default"].createTimeRanges();i.hasPlayed_=false;i.syncController_=new Os(t);i.segmentMetadataTrack_=s.addRemoteTextTrack({kind:"metadata",label:"segment-metadata"},false).track;i.decrypter_=new Ds;i.sourceUpdater_=new js(i.mediaSource);i.inbandTextTracks_={};i.timelineChangeController_=new Ls;var _={vhs:i.vhs_,parse708captions:t.parse708captions,mediaSource:i.mediaSource,currentTime:i.tech_.currentTime.bind(i.tech_),seekable:function e(){return i.seekable()},seeking:function e(){return i.tech_.seeking()},duration:function e(){return i.duration()},hasPlayed:function e(){return i.hasPlayed_},goalBufferLength:function e(){return i.goalBufferLength()},bandwidth:o,syncController:i.syncController_,decrypter:i.decrypter_,sourceType:i.sourceType_,inbandTextTracks:i.inbandTextTracks_,cacheEncryptionKeys:m,handlePartialData:g,sourceUpdater:i.sourceUpdater_,timelineChangeController:i.timelineChangeController_};i.masterPlaylistLoader_=i.sourceType_==="dash"?new Wi(r,i.vhs_,i.requestOptions_):new z(r,i.vhs_,i.requestOptions_);i.setupMasterPlaylistLoaderListeners_();i.mainSegmentLoader_=new hs(u["default"].mergeOptions(_,{segmentMetadataTrack:i.segmentMetadataTrack_,loaderType:"main"}),t);i.audioSegmentLoader_=new hs(u["default"].mergeOptions(_,{loaderType:"audio"}),t);i.subtitleSegmentLoader_=new Is(u["default"].mergeOptions(_,{loaderType:"vtt",featuresNativeTextTracks:i.tech_.featuresNativeTextTracks}),t);i.setupSegmentLoaderListeners_();if(i.experimentalBufferBasedABR){i.masterPlaylistLoader_.one("loadedplaylist",function(){return i.startABRTimer_()});i.tech_.on("pause",function(){return i.stopABRTimer_()});i.tech_.on("play",function(){return i.startABRTimer_()})}Qs.forEach(function(e){i[e+"_"]=Js.bind(d(i),e)});i.logger_=ja("MPC");i.triggeredFmp4Usage=false;i.masterPlaylistLoader_.load();return i}var i=t.prototype;i.checkABR_=function e(){var t=this.selectPlaylist();if(this.shouldSwitchToMedia_(t)){this.masterPlaylistLoader_.media(t)}};i.startABRTimer_=function e(){var t=this;this.stopABRTimer_();this.abrTimer_=l["default"].setInterval(function(){return t.checkABR_()},250)};i.stopABRTimer_=function e(){if(this.tech_.scrubbing&&this.tech_.scrubbing()){return}l["default"].clearInterval(this.abrTimer_);this.abrTimer_=null};i.setupMasterPlaylistLoaderListeners_=function e(){var t=this;this.masterPlaylistLoader_.on("loadedmetadata",function(){var e=t.masterPlaylistLoader_.media();var i=e.targetDuration*1.5*1e3;if(_e(t.masterPlaylistLoader_.master,t.masterPlaylistLoader_.media())){t.requestOptions_.timeout=0}else{t.requestOptions_.timeout=i}if(e.endList&&t.tech_.preload()!=="none"){t.mainSegmentLoader_.playlist(e,t.requestOptions_);t.mainSegmentLoader_.load()}Gs({sourceType:t.sourceType_,segmentLoaders:{AUDIO:t.audioSegmentLoader_,SUBTITLES:t.subtitleSegmentLoader_,main:t.mainSegmentLoader_},tech:t.tech_,requestOptions:t.requestOptions_,masterPlaylistLoader:t.masterPlaylistLoader_,vhs:t.vhs_,master:t.master(),mediaTypes:t.mediaTypes_,blacklistCurrentPlaylist:t.blacklistCurrentPlaylist.bind(t)});t.triggerPresenceUsage_(t.master(),e);t.setupFirstPlay();if(!t.mediaTypes_.AUDIO.activePlaylistLoader||t.mediaTypes_.AUDIO.activePlaylistLoader.media()){t.trigger("selectedinitialmedia")}else{t.mediaTypes_.AUDIO.activePlaylistLoader.one("loadedmetadata",function(){t.trigger("selectedinitialmedia")})}});this.masterPlaylistLoader_.on("loadedplaylist",function(){var e=t.masterPlaylistLoader_.media();if(!e){t.excludeUnsupportedVariants_();var i;if(t.enableLowInitialPlaylist){i=t.selectInitialPlaylist()}if(!i){i=t.selectPlaylist()}if(!i||!t.shouldSwitchToMedia_(i)){return}t.initialMedia_=i;t.masterPlaylistLoader_.media(t.initialMedia_);var r=t.sourceType_==="vhs-json"&&t.initialMedia_.segments;if(!r){return}e=t.initialMedia_}t.handleUpdatedMediaPlaylist(e)}
1);this.masterPlaylistLoader_.on("error",function(){t.blacklistCurrentPlaylist(t.masterPlaylistLoader_.error)});this.masterPlaylistLoader_.on("mediachanging",function('),t[0].s.push('e()});this.masterPlaylistLoader_.on("mediachange",function(){var e=t.masterPlaylistLoader_.media();var i=e.targetDuration*1.5*1e3;if(_e(t.masterPlaylistLoader_.master,t.masterPlaylistLoader_.media())){t.requestOptions_.timeout=0}else{t.requestOptions_.timeout=i}t.mainSegmentLoader_.playlist(e,t.requestOptions_);t.mainSegmentLoader_.load();t.tech_.trigger({type:"mediachange",bubbles:true})});this.masterPlaylistLoader_.on("playlistunchanged",function(){var e=t.masterPlaylistLoader_.media();var i=t.stuckAtPlaylistEnd_(e);if(i){t.blacklistCurrentPlaylist({message:"Playlist no longer updating."});t.tech_.trigger("playliststuck")}});this.masterPlaylistLoader_.on("renditiondisabled",function(){t.tech_.trigger({type:"usage",name:"vhs-rendition-disabled"});t.tech_.trigger({type:"usage",name:"hls-rendition-disabled"})});this.masterPlaylistLoader_.on("renditionenabled",function(){t.tech_.trigger({type:"usage",name:"vhs-rendition-enabled"});t.tech_.trigger({type:"usage",name:"hls-rendition-enabled"})})};i.handleUpdatedMediaPlaylist=function e(t){if(this.useCueTags_){this.updateAdCues_(t)}this.mainSegmentLoader_.playlist(t,this.requestOptions_);this.updateDuration(!t.endList);if(!this.tech_.paused()){this.mainSegmentLoader_.load();if(this.audioSegmentLoader_){this.audioSegmentLoader_.load()}}};i.triggerPresenceUsage_=function e(t,i){var r=t.mediaGroups||{};var n=true;var a=Object.keys(r.AUDIO);for(var s in r.AUDIO){for(var o in r.AUDIO[s]){var l=r.AUDIO[s][o];if(!l.uri){n=false}}}if(n){this.tech_.trigger({type:"usage",name:"vhs-demuxed"});this.tech_.trigger({type:"usage",name:"hls-demuxed"})}if(Object.keys(r.SUBTITLES).length){this.tech_.trigger({type:"usage",name:"vhs-webvtt"});this.tech_.trigger({type:"usage",name:"hls-webvtt"})}if(Xs.Playlist.isAes(i)){this.tech_.trigger({type:"usage",name:"vhs-aes"});this.tech_.trigger({type:"usage",name:"hls-aes"})}if(a.length&&Object.keys(r.AUDIO[a[0]]).length>1){this.tech_.trigger({type:"usage",name:"vhs-alternate-audio"});this.tech_.trigger({type:"usage",name:"hls-alternate-audio"})}if(this.useCueTags_){this.tech_.trigger({type:"usage",name:"vhs-playlist-cue-tags"});this.tech_.trigger({type:"usage",name:"hls-playlist-cue-tags"})}};i.shouldSwitchToMedia_=function e(t){var i=this.masterPlaylistLoader_.media();var r=this.tech_.buffered();var n=r.length?r.end(r.length-1)-this.tech_.currentTime():0;var a=this.bufferLowWaterLine();var s=this.bufferHighWaterLine();return Zs({currentPlaylist:i,nextPlaylist:t,forwardBuffer:n,bufferLowWaterLine:a,bufferHighWaterLine:s,duration:this.duration(),experimentalBufferBasedABR:this.experimentalBufferBasedABR,log:this.logger_})};i.setupSegmentLoaderListeners_=function e(){var t=this;if(!this.experimentalBufferBasedABR){this.mainSegmentLoader_.on("bandwidthupdate",function(){var e=t.selectPlaylist();if(t.shouldSwitchToMedia_(e)){t.masterPlaylistLoader_.media(e)}t.tech_.trigger("bandwidthupdate")});this.mainSegmentLoader_.on("progress",function(){t.trigger("progress")})}this.mainSegmentLoader_.on("error",function(){t.blacklistCurrentPlaylist(t.mainSegmentLoader_.error())});this.mainSegmentLoader_.on("appenderror",function(){t.error=t.mainSegmentLoader_.error_;t.trigger("error")});this.mainSegmentLoader_.on("syncinfoupdate",function(){t.onSyncInfoUpdate_()});this.mainSegmentLoader_.on("timestampoffset",function(){t.tech_.trigger({type:"usage",name:"vhs-timestamp-offset"});t.tech_.trigger({type:"usage",name:"hls-timestamp-offset"})});this.audioSegmentLoader_.on("syncinfoupdate",function(){t.onSyncInfoUpdate_()});this.audioSegmentLoader_.on("appenderror",function(){t.error=t.audioSegmentLoader_.error_;t.trigger("error")});this.mainSegmentLoader_.on("ended",function(){t.logger_("main segment loader ended");t.onEndOfStream()});this.mainSegmentLoader_.on("earlyabort",function(e){if(t.experimentalBufferBasedABR){return}t.delegateLoaders_("all",["abort"]);t.blacklistCurrentPlaylist({message:"Aborted early because there isn\'t enough bandwidth to complete the "+"request without rebuffering."},Ks)});var i=function e(){if(!t.sourceUpdater_.hasCreatedSourceBuffers()){return t.tryToCreateSourceBuffers_()}var i=t.getCodecsOrExclude_();if(!i){return}t.sourceUpdater_.addOrChangeSourceBuffers(i)};this.mainSegmentLoader_.on("trackinfo",i);this.audioSegmentLoader_.on("trackinfo",i);this.mainSegmentLoader_.on("fmp4",function(){if(!t.triggeredFmp4Usage){t.tech_.trigger({type:"usage",name:"vhs-fmp4"});t.tech_.trigger({type:"usage",name:"hls-fmp4"});t.triggeredFmp4Usage=true}});this.audioSegmentLoader_.on("fmp4",function(){if(!t.triggeredFmp4Usage){t.tech_.trigger({type:"usage",name:"vhs-fmp4"});t.tech_.trigger({type:"usage",name:"hls-fmp4"});t.triggeredFmp4Usage=true}});this.audioSegmentLoader_.on("ended",function(){t.logger_("audioSegmentLoader ended");t.onEndOfStream()})};i.mediaSecondsLoaded_=function e(){return Math.max(this.audioSegmentLoader_.mediaSecondsLoaded+this.mainSegmentLoader_.mediaSecondsLoaded)};i.load=function e(){this.mainSegmentLoader_.load();if(this.mediaTypes_.AUDIO.activePlaylistLoader){this.audioSegmentLoader_.load()}if(this.mediaTypes_.SUBTITLES.activePlaylistLoader){this.subtitleSegmentLoader_.load()}};i.smoothQualityChange_=function e(t){if(t===void 0){t=this.selectPlaylist()}if(t===this.masterPlaylistLoader_.media()){return}this.masterPlaylistLoader_.media(t);this.mainSegmentLoader_.resetLoader()};i.fastQualityChange_=function e(t){var i=this;if(t===void 0){t=this.selectPlaylist()}if(t===this.masterPlaylistLoader_.media()){return}this.masterPlaylistLoader_.media(t);this.mainSegmentLoader_.resetEverything(function(){if(u["default"].browser.IE_VERSION||u["default"].browser.IS_EDGE){i.tech_.setCurrentTime(i.tech_.currentTime()+.04)}else{i.tech_.setCurrentTime(i.tech_.currentTime())}})};i.play=function e(){if(this.setupFirstPlay()){return}if(this.tech_.ended()){this.tech_.setCurrentTime(0)}if(this.hasPlayed_){this.load()}var t=this.tech_.seekable();
1if(this.tech_.duration()===Infinity){if(this.tech_.currentTime()<t.start(0)){return this.tech_.setCurrentTime(t.end(t.length-1))}}};i.setupFirstPlay=function e(){var t=this;var i=this.masterPlaylistLoader_.media();if(!i||this.tech_.paused()||this.hasPlayed_){return false}if(!i.endList){var r=this.seekable();if(!r.length){return false}if(u["default"].browser.IE_VERSION&&this.tech_.readyState()===0){this.tech_.one("loadedmetadata",function(){t.trigger("firstplay");t.tech_.setCurrentTime(r.end(0));t.hasPlayed_=true});return false}this.trigger("firstplay");this.tech_.setCurrentTime(r.end(0))}this.hasPlayed_=true;this.load();return true};i.handleSourceOpen_=function e(){this.tryToCreateSourceBuffers_();if(this.tech_.autoplay()){var t=this.tech_.play();if(typeof t!=="undefined"&&typeof t.then==="function"){t.then(null,function(e){})}}this.trigger("sourceopen")};i.handleSourceEnded_=function e(){if(!this.inbandTextTracks_.metadataTrack_){return}var t=this.inbandTextTracks_.metadataTrack_.cues;if(!t||!t.length){return}var i=this.duration();t[t.length-1].endTime=isNaN(i)||Math.abs(i)===Infinity?Number.MAX_VALUE:i};i.handleDurationChange_=function e(){this.tech_.trigger("durationchange")};i.onEndOfStream=function e(){var t=this.mainSegmentLoader_.ended_;if(this.mediaTypes_.AUDIO.activePlaylistLoader){if(!this.mainSegmentLoader_.currentMediaInfo_||this.mainSegmentLoader_.currentMediaInfo_.hasVideo){t=t&&this.audioSegmentLoader_.ended_}else{t=this.audioSegmentLoader_.ended_}}if(!t){return}this.stopABRTimer_();this.sourceUpdater_.endOfStream()};i.stuckAtPlaylistEnd_=function e(t){var i=this.seekable();if(!i.length){return false}var r=this.syncController_.getExpiredTime(t,this.duration());if(r===null){return false}var n=Xs.Playlist.playlistEnd(t,r);var a=this.tech_.currentTime();var s=this.tech_.buffered();if(!s.length){return n-a<=G}var o=s.end(s.length-1);return o-a<=G&&n-o<=G};i.blacklistCurrentPlaylist=function e(t,i){if(t===void 0){t={}}var r=t.playlist||this.masterPlaylistLoader_.media();
1i=i||t.blacklistDuration||this.blacklistDuration;if(!r){this.error=t;if(this.mediaSource.readyState!=="open"){this.trigger("error")}else{this.sourceUpdater_.endOfStream("network")}return}var n=this.masterPlaylistLoader_.master.playlists;var a=n.filter(pe);var s=a.length===1&&a[0]===r;if(n.length===1&&i!==Infinity){u["default"].log.warn("Problem encountered with playlist "+r.id+". "+"Trying again since it is the only playlist.");this.tech_.trigger("retryplaylist");return this.masterPlaylistLoader_.load(s)}if(s){var o=false;n.forEach(function(e){if(e===r){return}var t=e.excludeUntil;if(typeof t!=="undefined"&&t!==Infinity){o=true;delete e.excludeUntil}});if(o){u["default"].log.warn("Removing other playlists from the exclusion list because the last "+"rendition is about to be excluded.");this.tech_.trigger("retryplaylist")}}r.excludeUntil=Date.now()+i*1e3;this.tech_.trigger("blacklistplaylist");this.tech_.trigger({type:"usage",name:"vhs-rendition-blacklisted"});this.tech_.trigger({type:"usage",name:"hls-rendition-blacklisted"});var l=this.selectPlaylist();if(!l){this.error="Playback cannot continue. No available working or supported playlists.";this.trigger("error");return}var c=t.internal?this.logger_:u["default"].log.warn;var d=t.message?" "+t.message:"";c((t.internal?"Internal problem":"Problem")+" encountered with playlist "+r.id+"."+(d+" Switching to playlist "+l.id+"."));if(l.attributes.AUDIO!==r.attributes.AUDIO){this.delegateLoaders_("audio",["abort","pause"])}if(l.attributes.SUBTITLES!==r.attributes.SUBTITLES){this.delegateLoaders_("subtitle",["abort","pause"])}this.delegateLoaders_("main",["abort","pause"]);var f=l.targetDuration/2*1e3||5*1e3;var h=typeof l.lastRequest==="number"&&Date.now()-l.lastRequest<=f;return this.masterPlaylistLoader_.media(l,s||h)};i.pauseLoading=function e(){this.delegateLoaders_("all",["abort","pause"]);this.stopABRTimer_()};i.delegateLoaders_=function e(t,i){var r=this;var n=[];var a=t==="all";if(a||t==="main"){n.push(this.masterPlaylistLoader_)}
1var s=[];if(a||t==="audio"){s.push("AUDIO")}if(a||t==="subtitle"){s.push("CLOSED-CAPTIONS");s.push("SUBTITLES")}s.forEach(function(e){var t=r.mediaTypes_[e]&&r.mediaTypes_[e].activePlaylistLoader;if(t){n.push(t)}});["main","audio","subtitle"].forEach(function(e){var i=r[e+"SegmentLoader_"];if(i&&(t===e||t==="all")){n.push(i)}});n.forEach(function(e){return i.forEach(function(t){if(typeof e[t]==="function"){e[t]()}})})};i.setCurrentTime=function e(t){var i=K(this.tech_.buffered(),t);if(!(this.masterPlaylistLoader_&&this.masterPlaylistLoader_.media())){return 0}if(!this.masterPlaylistLoader_.media().segments){return 0}if(i&&i.length){return t}this.mainSegmentLoader_.resetEverything();this.mainSegmentLoader_.abort();if(this.mediaTypes_.AUDIO.activePlaylistLoader){this.audioSegmentLoader_.resetEverything();this.audioSegmentLoader_.abort()}if(this.mediaTypes_.SUBTITLES.activePlaylistLoader){this.subtitleSegmentLoader_.resetEverything();this.subtitleSegmentLoader_.abort()}this.load()};i.duration=function e(){if(!this.masterPlaylistLoader_){return 0}var t=this.masterPlaylistLoader_.media();if(!t){return 0}if(!t.endList){return Infinity}if(this.mediaSource){return this.mediaSource.duration}return Xs.Playlist.duration(t)};i.seekable=function e(){return this.seekable_};i.onSyncInfoUpdate_=function e(){var t;if(!this.masterPlaylistLoader_){return}var i=this.masterPlaylistLoader_.media();if(!i){return}var r=this.syncController_.getExpiredTime(i,this.duration());if(r===null){return}var n=this.masterPlaylistLoader_.master.suggestedPresentationDelay;var a=Xs.Playlist.seekable(i,r,n);if(a.length===0){return}if(this.mediaTypes_.AUDIO.activePlaylistLoader){i=this.mediaTypes_.AUDIO.activePlaylistLoader.media();r=this.syncController_.getExpiredTime(i,this.duration());if(r===null){return}t=Xs.Playlist.seekable(i,r,n);if(t.length===0){return}}var s;var o;if(this.seekable_&&this.seekable_.length){s=this.seekable_.end(0);o=this.seekable_.start(0)}if(!t){this.seekable_=a}else if(t.start(0)>a.end(0)||a.start(0)>t.end(0)){this.seekable_=a}else{this.seekable_=u["default"].createTimeRanges([[t.start(0)>a.start(0)?t.start(0):a.start(0),t.end(0)<a.end(0)?t.end(0):a.end(0)]])}if(this.seekable_&&this.seekable_.length){if(this.seekable_.end(0)===s&&this.seekable_.start(0)===o){return}}this.logger_("seekable updated ["+Z(this.seekable_)+"]");this.tech_.trigger("seekablechanged")};i.updateDuration=function e(t){if(this.updateDuration_){this.mediaSource.removeEventListener("sourceopen",this.updateDuration_);this.updateDuration_=null}if(this.mediaSource.readyState!=="open"){this.updateDuration_=this.updateDuration.bind(this,t);this.mediaSource.addEventListener("sourceopen",this.updateDuration_);return}if(t){var i=this.seekable();if(!i.length){return}if(isNaN(this.mediaSource.duration)||this.mediaSource.duration<i.end(i.length-1)){this.sourceUpdater_.setDuration(i.end(i.length-1))}return}var r=this.tech_.buffered();var n=Xs.Playlist.duration(this.masterPlaylistLoader_.media());if(r.length>0){n=Math.max(n,r.end(r.length-1))}if(this.mediaSource.duration!==n){this.sourceUpdater_.setDuration(n)}};i.dispose=function e(){var t=this;this.trigger("dispose");this.decrypter_.terminate();this.masterPlaylistLoader_.dispose();this.mainSegmentLoader_.dispose();["AUDIO","SUBTITLES"].forEach(function(e){var i=t.mediaTypes_[e].groups;for(var r in i){i[r].forEach(function(e){if(e.playlistLoader){e.playlistLoader.dispose()}})}});this.audioSegmentLoader_.dispose();this.subtitleSegmentLoader_.dispose();this.sourceUpdater_.dispose();this.timelineChangeController_.dispose();this.stopABRTimer_();if(this.updateDuration_){this.mediaSource.removeEventListener("sourceopen",this.updateDuration_)}this.mediaSource.removeEventListener("durationchange",this.handleDurationChange_);this.mediaSource.removeEventListener("sourceopen",this.handleSourceOpen_);this.mediaSource.removeEventListener("sourceended",this.handleSourceEnded_);this.off()};i.master=function e(){return this.masterPlaylistLoader_.master};i.media=function e(){return this.masterPlaylistLoader_.media()||this.initialMedia_};i.areMediaTypesKnown_=function e(){var t=!!this.mediaTypes_.AUDIO.activePlaylistLoader;if(!this.mainSegmentLoader_.currentMediaInfo_||t&&!this.audioSegmentLoader_.currentMediaInfo_){return false}return true};i.getCodecsOrExclude_=function e(){var t=this;var i={main:this.mainSegmentLoader_.currentMediaInfo_||{},audio:this.audioSegmentLoader_.currentMediaInfo_||{}};i.video=i.main;var r=Oa(this.master(),this.media());var n={};var a=!!this.mediaTypes_.AUDIO.activePlaylistLoader;if(i.main.hasVideo){n.video=r.video||i.main.videoCodec||Ea}if(i.main.isMuxed){n.video+=","+(r.audio||i.main.audioCodec||ka)}if(i.main.hasAudio&&!i.main.isMuxed||i.audio.hasAudio||a){n.audio=r.audio||i.main.audioCodec||i.audio.audioCodec||ka;i.audio.isFmp4=i.main.hasAudio&&!i.main.isMuxed?i.main.isFmp4:i.audio.isFmp4}
1if(!n.audio&&!n.video){this.blacklistCurrentPlaylist({playlist:this.media(),message:"Could not determine codecs for playlist.",blacklistDuration:Infinity});return}var s=function e(t,i){return t?Ta(i):Sa(i)};var o={};var l;["video","audio"].forEach(function(e){if(n.hasOwnProperty(e)&&!s(i[e].isFmp4,n[e])){var t=i[e].isFmp4?"browser":"muxer";o[t]=o[t]||[];o[t].push(n[e]);if(e==="audio"){l=t}}});if(a&&l&&this.media().attributes.AUDIO){var u=this.media().attributes.AUDIO;this.master().playlists.forEach(function(e){var i=e.attributes&&e.attributes.AUDIO;if(i===u&&e!==t.media()){e.excludeUntil=Infinity}});this.logger_("excluding audio group "+u+" as "+l+\' does not support codec(s): "\'+n.audio+\'"\')}if(Object.keys(o).length){var c=Object.keys(o).reduce(function(e,t){if(e){e+=", "}e+=t+\' does not support codec(s): "\'+o[t].join(",")+\'"\';return e},"")+".";this.blacklistCurrentPlaylist({playlist:this.media(),internal:true,message:c,blacklistDuration:Infinity});return}if(this.sourceUpdater_.hasCreatedSourceBuffers()&&!this.sourceUpdater_.canChangeType()){var d=[];["video","audio"].forEach(function(e){var i=(va(t.sourceUpdater_.codecs[e]||"")[0]||{}).type;var r=(va(n[e]||"")[0]||{}).type;if(i&&r&&i.toLowerCase()!==r.toLowerCase()){d.push(\'"\'+t.sourceUpdater_.codecs[e]+\'" -> "\'+n[e]+\'"\')}});if(d.length){this.blacklistCurrentPlaylist({playlist:this.media(),message:"Codec switching not supported: "+d.join(", ")+".",blacklistDuration:Infinity,internal:true});return}}return n};i.tryToCreateSourceBuffers_=function e(){if(this.mediaSource.readyS'),t[1].s.push('){t.mainSegmentLoader_.abort();t.mainSegmentLoader_.pause()});this.masterPlaylistLoader_.on("mediachange",function(){var e=t.masterPlaylistLoader_.media();var i=e.targetDuration*1.5*1e3;if(_e(t.masterPlaylistLoader_.master,t.masterPlaylistLoader_.media())){t.requestOptions_.timeout=0}else{t.requestOptions_.timeout=i}t.mainSegmentLoader_.playlist(e,t.requestOptions_);t.mainSegmentLoader_.load();t.tech_.trigger({type:"mediachange",bubbles:true})});this.masterPlaylistLoader_.on("playlistunchanged",function(){var e=t.masterPlaylistLoader_.media();var i=t.stuckAtPlaylistEnd_(e);if(i){t.blacklistCurrentPlaylist({message:"Playlist no longer updating."});t.tech_.trigger("playliststuck")}});this.masterPlaylistLoader_.on("renditiondisabled",function(){t.tech_.trigger({type:"usage",name:"vhs-rendition-disabled"});t.tech_.trigger({type:"usage",name:"hls-rendition-disabled"})});this.masterPlaylistLoader_.on("renditionenabled",function(){t.tech_.trigger({type:"usage",name:"vhs-rendition-enabled"});t.tech_.trigger({type:"usage",name:"hls-rendition-enabled"})})};i.handleUpdatedMediaPlaylist=function e(t){if(this.useCueTags_){this.updateAdCues_(t)}this.mainSegmentLoader_.playlist(t,this.requestOptions_);this.updateDuration(!t.endList);if(!this.tech_.paused()){this.mainSegmentLoader_.load();if(this.audioSegmentLoader_){this.audioSegmentLoader_.load()}}};i.triggerPresenceUsage_=function e(t,i){var r=t.mediaGroups||{};var n=true;var a=Object.keys(r.AUDIO);for(var s in r.AUDIO){for(var o in r.AUDIO[s]){var l=r.AUDIO[s][o];if(!l.uri){n=false}}}if(n){this.tech_.trigger({type:"usage",name:"vhs-demuxed"});this.tech_.trigger({type:"usage",name:"hls-demuxed"})}if(Object.keys(r.SUBTITLES).length){this.tech_.trigger({type:"usage",name:"vhs-webvtt"});this.tech_.trigger({type:"usage",name:"hls-webvtt"})}if(Xs.Playlist.isAes(i)){this.tech_.trigger({type:"usage",name:"vhs-aes"});this.tech_.trigger({type:"usage",name:"hls-aes"})}if(a.length&&Object.keys(r.AUDIO[a[0]]).length>1){this.tech_.trigger({type:"usage",name:"vhs-alternate-audio"});this.tech_.trigger({type:"usage",name:"hls-alternate-audio"})}if(this.useCueTags_){this.tech_.trigger({type:"usage",name:"vhs-playlist-cue-tags"});this.tech_.trigger({type:"usage",name:"hls-playlist-cue-tags"})}};i.shouldSwitchToMedia_=function e(t){var i=this.masterPlaylistLoader_.media();var r=this.tech_.buffered();var n=r.length?r.end(r.length-1)-this.tech_.currentTime():0;var a=this.bufferLowWaterLine();var s=this.bufferHighWaterLine();return Zs({currentPlaylist:i,nextPlaylist:t,forwardBuffer:n,bufferLowWaterLine:a,bufferHighWaterLine:s,duration:this.duration(),experimentalBufferBasedABR:this.experimentalBufferBasedABR,log:this.logger_})};i.setupSegmentLoaderListeners_=function e(){var t=this;if(!this.experimentalBufferBasedABR){this.mainSegmentLoader_.on("bandwidthupdate",function(){var e=t.selectPlaylist();if(t.shouldSwitchToMedia_(e)){t.masterPlaylistLoader_.media(e)}t.tech_.trigger("bandwidthupdate")});this.mainSegmentLoader_.on("progress",function(){t.trigger("progress")})}this.mainSegmentLoader_.on("error",function(){t.blacklistCurrentPlaylist(t.mainSegmentLoader_.error())});this.mainSegmentLoader_.on("appenderror",function(){t.error=t.mainSegmentLoader_.error_;t.trigger("error")});this.mainSegmentLoader_.on("syncinfoupdate",function(){t.onSyncInfoUpdate_()});this.mainSegmentLoader_.on("timestampoffset",function(){t.tech_.trigger({type:"usage",name:"vhs-timestamp-offset"});t.tech_.trigger({type:"usage",name:"hls-timestamp-offset"})});this.audioSegmentLoader_.on("syncinfoupdate",function(){t.onSyncInfoUpdate_()});this.audioSegmentLoader_.on("appenderror",function(){t.error=t.audioSegmentLoader_.error_;t.trigger("error")});this.mainSegmentLoader_.on("ended",function(){t.logger_("main segment loader ended");t.onEndOfStream()});this.mainSegmentLoader_.on("earlyabort",function(e){if(t.experimentalBufferBasedABR){return}t.delegateLoaders_("all",["abort"]);t.blacklistCurrentPlaylist({message:"Aborted early because there isn\'t enough bandwidth to complete the "+"request without rebuffering."},Ks)});var i=function e(){if(!t.sourceUpdater_.hasCreatedSourceBuffers()){return t.tryToCreateSourceBuffers_()}var i=t.getCodecsOrExclude_();if(!i){return}t.sourceUpdater_.addOrChangeSourceBuffers(i)};this.mainSegmentLoader_.on("trackinfo",i);this.audioSegmentLoader_.on("trackinfo",i);this.mainSegmentLoader_.on("fmp4",function(){if(!t.triggeredFmp4Usage){t.tech_.trigger({type:"usage",name:"vhs-fmp4"});t.tech_.trigger({type:"usage",name:"hls-fmp4"});t.triggeredFmp4Usage=true}});this.audioSegmentLoader_.on("fmp4",function(){if(!t.triggeredFmp4Usage){t.tech_.trigger({type:"usage",name:"vhs-fmp4"});t.tech_.trigger({type:"usage",name:"hls-fmp4"});t.triggeredFmp4Usage=true}});this.audioSegmentLoader_.on("ended",function(){t.logger_("audioSegmentLoader ended");t.onEndOfStream()})};i.mediaSecondsLoaded_=function e(){return Math.max(this.audioSegmentLoader_.mediaSecondsLoaded+this.mainSegmentLoader_.mediaSecondsLoaded)};i.load=function e(){this.mainSegmentLoader_.load();if(this.mediaTypes_.AUDIO.activePlaylistLoader){this.audioSegmentLoader_.load()}if(this.mediaTypes_.SUBTITLES.activePlaylistLoader){this.subtitleSegmentLoader_.load()}};i.smoothQualityChange_=function e(t){if(t===void 0){t=this.selectPlaylist()}if(t===this.masterPlaylistLoader_.media()){return}this.masterPlaylistLoader_.media(t);this.mainSegmentLoader_.resetLoader()};i.fastQualityChange_=function e(t){var i=this;if(t===void 0){t=this.selectPlaylist()}if(t===this.masterPlaylistLoader_.media()){return}this.masterPlaylistLoader_.media(t);this.mainSegmentLoader_.resetEverything(function(){if(u["default"].browser.IE_VERSION||u["default"].browser.IS_EDGE){i.tech_.setCurrentTime(i.tech_.currentTime()+.04)}else{i.tech_.setCurrentTime(i.tech_.currentTime())}})};i.play=function e(){if(this.setupFirstPlay()){return}if(this.tech_.ended()){this.tech_.setCurrentTime(0)}if(this.hasPlayed_){this.load()}var t=this.tech_.seekable();
1if(this.tech_.duration()===Infinity){if(this.tech_.currentTime()<t.start(0)){return this.tech_.setCurrentTime(t.end(t.length-1))}}};i.setupFirstPlay=function e(){var t=this;var i=this.masterPlaylistLoader_.media();if(!i||this.tech_.paused()||this.hasPlayed_){return false}if(!i.endList){var r=this.seekable();if(!r.length){return false}if(u["default"].browser.IE_VERSION&&this.tech_.readyState()===0){this.tech_.one("loadedmetadata",function(){t.trigger("firstplay");t.tech_.setCurrentTime(r.end(0));t.hasPlayed_=true});return false}this.trigger("firstplay");this.tech_.setCurrentTime(r.end(0))}this.hasPlayed_=true;this.load();return true};i.handleSourceOpen_=function e(){this.tryToCreateSourceBuffers_();if(this.tech_.autoplay()){var t=this.tech_.play();if(typeof t!=="undefined"&&typeof t.then==="function"){t.then(null,function(e){})}}this.trigger("sourceopen")};i.handleSourceEnded_=function e(){if(!this.inbandTextTracks_.metadataTrack_){return}var t=this.inbandTextTracks_.metadataTrack_.cues;if(!t||!t.length){return}var i=this.duration();t[t.length-1].endTime=isNaN(i)||Math.abs(i)===Infinity?Number.MAX_VALUE:i};i.handleDurationChange_=function e(){this.tech_.trigger("durationchange")};i.onEndOfStream=function e(){var t=this.mainSegmentLoader_.ended_;if(this.mediaTypes_.AUDIO.activePlaylistLoader){if(!this.mainSegmentLoader_.currentMediaInfo_||this.mainSegmentLoader_.currentMediaInfo_.hasVideo){t=t&&this.audioSegmentLoader_.ended_}else{t=this.audioSegmentLoader_.ended_}}if(!t){return}this.stopABRTimer_();this.sourceUpdater_.endOfStream()};i.stuckAtPlaylistEnd_=function e(t){var i=this.seekable();if(!i.length){return false}var r=this.syncController_.getExpiredTime(t,this.duration());if(r===null){return false}var n=Xs.Playlist.playlistEnd(t,r);var a=this.tech_.currentTime();var s=this.tech_.buffered();if(!s.length){return n-a<=G}var o=s.end(s.length-1);return o-a<=G&&n-o<=G};i.blacklistCurrentPlaylist=function e(t,i){if(t===void 0){t={}}var r=t.playlist||this.masterPlaylistLoader_.media();
1i=i||t.blacklistDuration||this.blacklistDuration;if(!r){this.error=t;if(this.mediaSource.readyState!=="open"){this.trigger("error")}else{this.sourceUpdater_.endOfStream("network")}return}var n=this.masterPlaylistLoader_.master.playlists;var a=n.filter(pe);var s=a.length===1&&a[0]===r;if(n.length===1&&i!==Infinity){u["default"].log.warn("Problem encountered with playlist "+r.id+". "+"Trying again since it is the only playlist.");this.tech_.trigger("retryplaylist");return this.masterPlaylistLoader_.load(s)}if(s){var o=false;n.forEach(function(e){if(e===r){return}var t=e.excludeUntil;if(typeof t!=="undefined"&&t!==Infinity){o=true;delete e.excludeUntil}});if(o){u["default"].log.warn("Removing other playlists from the exclusion list because the last "+"rendition is about to be excluded.");this.tech_.trigger("retryplaylist")}}r.excludeUntil=Date.now()+i*1e3;this.tech_.trigger("blacklistplaylist");this.tech_.trigger({type:"usage",name:"vhs-rendition-blacklisted"});this.tech_.trigger({type:"usage",name:"hls-rendition-blacklisted"});var l=this.selectPlaylist();if(!l){this.error="Playback cannot continue. No available working or supported playlists.";this.trigger("error");return}var c=t.internal?this.logger_:u["default"].log.warn;var d=t.message?" "+t.message:"";c((t.internal?"Internal problem":"Problem")+" encountered with playlist "+r.id+"."+(d+" Switching to playlist "+l.id+"."));if(l.attributes.AUDIO!==r.attributes.AUDIO){this.delegateLoaders_("audio",["abort","pause"])}if(l.attributes.SUBTITLES!==r.attributes.SUBTITLES){this.delegateLoaders_("subtitle",["abort","pause"])}this.delegateLoaders_("main",["abort","pause"]);var f=l.targetDuration/2*1e3||5*1e3;var h=typeof l.lastRequest==="number"&&Date.now()-l.lastRequest<=f;return this.masterPlaylistLoader_.media(l,s||h)};i.pauseLoading=function e(){this.delegateLoaders_("all",["abort","pause"]);this.stopABRTimer_()};i.delegateLoaders_=function e(t,i){var r=this;var n=[];var a=t==="all";if(a||t==="main"){n.push(this.masterPlaylistLoader_)}
1var s=[];if(a||t==="audio"){s.push("AUDIO")}if(a||t==="subtitle"){s.push("CLOSED-CAPTIONS");s.push("SUBTITLES")}s.forEach(function(e){var t=r.mediaTypes_[e]&&r.mediaTypes_[e].activePlaylistLoader;if(t){n.push(t)}});["main","audio","subtitle"].forEach(function(e){var i=r[e+"SegmentLoader_"];if(i&&(t===e||t==="all")){n.push(i)}});n.forEach(function(e){return i.forEach(function(t){if(typeof e[t]==="function"){e[t]()}})})};i.setCurrentTime=function e(t){var i=K(this.tech_.buffered(),t);if(!(this.masterPlaylistLoader_&&this.masterPlaylistLoader_.media())){return 0}if(!this.masterPlaylistLoader_.media().segments){return 0}if(i&&i.length){return t}this.mainSegmentLoader_.resetEverything();this.mainSegmentLoader_.abort();if(this.mediaTypes_.AUDIO.activePlaylistLoader){this.audioSegmentLoader_.resetEverything();this.audioSegmentLoader_.abort()}if(this.mediaTypes_.SUBTITLES.activePlaylistLoader){this.subtitleSegmentLoader_.resetEverything();this.subtitleSegmentLoader_.abort()}this.load()};i.duration=function e(){if(!this.masterPlaylistLoader_){return 0}var t=this.masterPlaylistLoader_.media();if(!t){return 0}if(!t.endList){return Infinity}if(this.mediaSource){return this.mediaSource.duration}return Xs.Playlist.duration(t)};i.seekable=function e(){return this.seekable_};i.onSyncInfoUpdate_=function e(){var t;if(!this.masterPlaylistLoader_){return}var i=this.masterPlaylistLoader_.media();if(!i){return}var r=this.syncController_.getExpiredTime(i,this.duration());if(r===null){return}var n=this.masterPlaylistLoader_.master.suggestedPresentationDelay;var a=Xs.Playlist.seekable(i,r,n);if(a.length===0){return}if(this.mediaTypes_.AUDIO.activePlaylistLoader){i=this.mediaTypes_.AUDIO.activePlaylistLoader.media();r=this.syncController_.getExpiredTime(i,this.duration());if(r===null){return}t=Xs.Playlist.seekable(i,r,n);if(t.length===0){return}}var s;var o;if(this.seekable_&&this.seekable_.length){s=this.seekable_.end(0);o=this.seekable_.start(0)}if(!t){this.seekable_=a}else if(t.start(0)>a.end(0)||a.start(0)>t.end(0)){this.seekable_=a}else{this.seekable_=u["default"].createTimeRanges([[t.start(0)>a.start(0)?t.start(0):a.start(0),t.end(0)<a.end(0)?t.end(0):a.end(0)]])}if(this.seekable_&&this.seekable_.length){if(this.seekable_.end(0)===s&&this.seekable_.start(0)===o){return}}this.logger_("seekable updated ["+Z(this.seekable_)+"]");this.tech_.trigger("seekablechanged")};i.updateDuration=function e(t){if(this.updateDuration_){this.mediaSource.removeEventListener("sourceopen",this.updateDuration_);this.updateDuration_=null}if(this.mediaSource.readyState!=="open"){this.updateDuration_=this.updateDuration.bind(this,t);this.mediaSource.addEventListener("sourceopen",this.updateDuration_);return}if(t){var i=this.seekable();if(!i.length){return}if(isNaN(this.mediaSource.duration)||this.mediaSource.duration<i.end(i.length-1)){this.sourceUpdater_.setDuration(i.end(i.length-1))}return}var r=this.tech_.buffered();var n=Xs.Playlist.duration(this.masterPlaylistLoader_.media());if(r.length>0){n=Math.max(n,r.end(r.length-1))}if(this.mediaSource.duration!==n){this.sourceUpdater_.setDuration(n)}};i.dispose=function e(){var t=this;this.trigger("dispose");this.decrypter_.terminate();this.masterPlaylistLoader_.dispose();this.mainSegmentLoader_.dispose();["AUDIO","SUBTITLES"].forEach(function(e){var i=t.mediaTypes_[e].groups;for(var r in i){i[r].forEach(function(e){if(e.playlistLoader){e.playlistLoader.dispose()}})}});this.audioSegmentLoader_.dispose();this.subtitleSegmentLoader_.dispose();this.sourceUpdater_.dispose();this.timelineChangeController_.dispose();this.stopABRTimer_();if(this.updateDuration_){this.mediaSource.removeEventListener("sourceopen",this.updateDuration_)}this.mediaSource.removeEventListener("durationchange",this.handleDurationChange_);this.mediaSource.removeEventListener("sourceopen",this.handleSourceOpen_);this.mediaSource.removeEventListener("sourceended",this.handleSourceEnded_);this.off()};i.master=function e(){return this.masterPlaylistLoader_.master};i.media=function e(){return this.masterPlaylistLoader_.media()||this.initialMedia_};i.areMediaTypesKnown_=function e(){var t=!!this.mediaTypes_.AUDIO.activePlaylistLoader;if(!this.mainSegmentLoader_.currentMediaInfo_||t&&!this.audioSegmentLoader_.currentMediaInfo_){return false}return true};i.getCodecsOrExclude_=function e(){var t=this;var i={main:this.mainSegmentLoader_.currentMediaInfo_||{},audio:this.audioSegmentLoader_.currentMediaInfo_||{}};i.video=i.main;var r=Oa(this.master(),this.media());var n={};var a=!!this.mediaTypes_.AUDIO.activePlaylistLoader;if(i.main.hasVideo){n.video=r.video||i.main.videoCodec||Ea}if(i.main.isMuxed){n.video+=","+(r.audio||i.main.audioCodec||ka)}if(i.main.hasAudio&&!i.main.isMuxed||i.audio.hasAudio||a){n.audio=r.audio||i.main.audioCodec||i.audio.audioCodec||ka;i.audio.isFmp4=i.main.hasAudio&&!i.main.isMuxed?i.main.isFmp4:i.audio.isFmp4}
1if(!n.audio&&!n.video){this.blacklistCurrentPlaylist({playlist:this.media(),message:"Could not determine codecs for playlist.",blacklistDuration:Infinity});return}var s=function e(t,i){return t?Ta(i):Sa(i)};var o={};var l;["video","audio"].forEach(function(e){if(n.hasOwnProperty(e)&&!s(i[e].isFmp4,n[e])){var t=i[e].isFmp4?"browser":"muxer";o[t]=o[t]||[];o[t].push(n[e]);if(e==="audio"){l=t}}});if(a&&l&&this.media().attributes.AUDIO){var u=this.media().attributes.AUDIO;this.master().playlists.forEach(function(e){var i=e.attributes&&e.attributes.AUDIO;if(i===u&&e!==t.media()){e.excludeUntil=Infinity}});this.logger_("excluding audio group "+u+" as "+l+\' does not support codec(s): "\'+n.audio+\'"\')}if(Object.keys(o).length){var c=Object.keys(o).reduce(function(e,t){if(e){e+=", "}e+=t+\' does not support codec(s): "\'+o[t].join(",")+\'"\';return e},"")+".";this.blacklistCurrentPlaylist({playlist:this.media(),internal:true,message:c,blacklistDuration:Infinity});return}if(this.sourceUpdater_.hasCreatedSourceBuffers()&&!this.sourceUpdater_.canChangeType()){var d=[];["video","audio"].forEach(function(e){var i=(va(t.sourceUpdater_.codecs[e]||"")[0]||{}).type;var r=(va(n[e]||"")[0]||{}).type;if(i&&r&&i.toLowerCase()!==r.toLowerCase()){d.push(\'"\'+t.sourceUpdater_.codecs[e]+\'" -> "\'+n[e]+\'"\')}});if(d.length){this.blacklistCurrentPlaylist({playlist:this.media(),message:"Codec switching not supported: "+d.join(", ")+".",blacklistDuration:Infinity,internal:true});return}}return n};i.tryToCrea'),t[0].s.push('tate!=="open"||this.sourceUpdater_.hasCreatedSourceBuffers()){return}if(!this.areMediaTypesKnown_()){return}var t=this.getCodecsOrExclude_();if(!t){return}this.sourceUpdater_.createSourceBuffers(t);var i=[t.video,t.audio].filter(Boolean).join(",");this.excludeIncompatibleVariants_(i)};i.excludeUnsupportedVariants_=function e(){var t=this;var i=this.master().playlists;var r=[];
1Object.keys(i).forEach(function(e){var n=i[e];if(r.indexOf(n.id)!==-1){return}r.push(n.id);var a=Oa(t.master,n);var s=[];if(a.audio&&!Sa(a.audio)&&!Ta(a.audio)){s.push("audio codec "+a.audio)}if(a.video&&!Sa(a.video)&&!Ta(a.video)){s.push("video codec "+a.video)}if(a.text&&a.text==="stpp.ttml.im1t"){s.push("text codec "+a.text)}if(s.length){n.excludeUntil=Infinity;t.logger_("excluding "+n.id+" for unsupported: "+s.join(", "))}})};i.excludeIncompatibleVariants_=function e(t){var i=this;var r=[];var n=this.master().playlists;var a=xa(va(t));var s=Pa(a);var o=a.video&&va(a.video)[0]||null;var l=a.audio&&va(a.audio)[0]||null;Object.keys(n).forEach(function(e){var t=n[e];if(r.indexOf(t.id)!==-1||t.excludeUntil===Infinity){return}r.push(t.id);var a=[];var u=Oa(i.masterPlaylistLoader_.master,t);var c=Pa(u);if(!u.audio&&!u.video){return}if(c!==s){a.push(\'codec count "\'+c+\'" !== "\'+s+\'"\')}if(!i.sourceUpdater_.canChangeType()){var d=u.video&&va(u.video)[0]||null;var f=u.audio&&va(u.audio)[0]||null;if(d&&o&&d.type.toLowerCase()!==o.type.toLowerCase()){a.push(\'video codec "\'+d.type+\'" !== "\'+o.type+\'"\')}if(f&&l&&f.type.toLowerCase()!==l.type.toLowerCase()){a.push(\'audio codec "\'+f.type+\'" !== "\'+l.type+\'"\')}}if(a.length){t.excludeUntil=Infinity;i.logger_("blacklisting "+t.id+": "+a.join(" && "))}})};i.updateAdCues_=function e(t){var i=0;var r=this.seekable();if(r.length){i=r.start(0)}xs(t,this.cueTagsTrack_,i)};i.goalBufferLength=function e(){var t=this.tech_.currentTime();var i=Gi.GOAL_BUFFER_LENGTH;var r=Gi.GOAL_BUFFER_LENGTH_RATE;var n=Math.max(i,Gi.MAX_GOAL_BUFFER_LENGTH);return Math.min(i+t*r,n)};i.bufferLowWaterLine=function e(){var t=this.tech_.currentTime();var i=Gi.BUFFER_LOW_WATER_LINE;var r=Gi.BUFFER_LOW_WATER_LINE_RATE;var n=Math.max(i,Gi.MAX_BUFFER_LOW_WATER_LINE);var a=Math.max(i,Gi.EXPERIMENTAL_MAX_BUFFER_LOW_WATER_LINE);return Math.min(i+t*r,this.experimentalBufferBasedABR?a:n)};i.bufferHighWaterLine=function e(){return Gi.BUFFER_HIGH_WATER_LINE};return t}(u["default"].EventTarget);var eo=function e(t,i,r){return function(e){var n=t.master.playlists[i];var a=he(n);var s=pe(n);if(typeof e==="undefined"){return s}if(e){delete n.disabled}else{n.disabled=true}if(e!==s&&!a){r();if(e){t.trigger("renditionenabled")}else{t.trigger("renditiondisabled")}}return e}};var to=function e(t,i,r){var n=t.masterPlaylistController_,a=t.options_.smoothQualityChange;var s=a?"smooth":"fast";var o=n[s+"QualityChange_"].bind(n);if(i.attributes.RESOLUTION){var l=i.attributes.RESOLUTION;this.width=l.width;this.height=l.height}this.bandwidth=i.attributes.BANDWIDTH;this.codecs=Oa(n.master(),i);this.playlist=i;this.id=r;this.enabled=eo(t.playlists,i.id,o)};var io=function e(t){var i=t.playlists;t.representations=function(){if(!i||!i.master||!i.master.playlists){return[]}return i.master.playlists.filter(function(e){return!he(e)}).map(function(e,i){return new to(t,e,e.id)})}};var ro=["seeking","seeked","pause","playing","error"];var no=function e(t){var i=t.buffered,r=t.targetDuration,n=t.currentTime;if(!i.length){return false}if(i.end(0)-i.start(0)<r*2){return false}if(n>i.start(0)){return false}return i.start(0)-n<r};var ao=function(){function e(e){var t=this;this.masterPlaylistController_=e.masterPlaylistController;this.tech_=e.tech;this.seekable=e.seekable;this.allowSeeksWithinUnsafeLiveWindow=e.allowSeeksWithinUnsafeLiveWindow;this.liveRangeSafeTimeDelta=e.liveRangeSafeTimeDelta;this.media=e.media;this.consecutiveUpdates=0;this.lastRecordedTime=null;this.timer_=null;this.checkCurrentTimeTimeout_=null;this.logger_=ja("PlaybackWatcher");this.logger_("initialize");var i=function e(){return t.monitorCurrentTime_()};var r=function e(){return t.techWaiting_()};var n=function e(){return t.cancelTimer_()};var a=function e(){return t.fixesBadSeeks_()};var s=this.masterPlaylistController_;var o=["main","subtitle","audio"];var u={};o.forEach(function(e){u[e]={reset:function i(){return t.resetSegmentDownloads_(e)},updateend:function i(){return t.checkSegmentDownloads_(e)}};s[e+"SegmentLoader_"].on("appendsdone",u[e].updateend);s[e+"SegmentLoader_"].on("playlistupdate",u[e].reset);t.tech_.on(["seeked","seeking"],u[e].reset)});this.tech_.on("seekablechanged",a);this.tech_.on("waiting",r);this.tech_.on(ro,n);this.tech_.on("canplay",i);this.dispose=function(){t.logger_("dispose");t.tech_.off("seekablechanged",a);t.tech_.off("waiting",r);t.tech_.off(ro,n);t.tech_.off("canplay",i);o.forEach(function(e){s[e+"SegmentLoader_"].off("appendsdone",u[e].updateend);s[e+"SegmentLoader_"].off("playlistupdate",u[e].reset);t.tech_.off(["seeked","seeking"],u[e].reset)});if(t.checkCurrentTimeTimeout_){l["default"].clearTimeout(t.checkCurrentTimeTimeout_)}t.cancelTimer_()}}var t=e.prototype;t.monitorCurrentTime_=function e(){this.checkCurrentTime_();if(this.checkCurrentTimeTimeout_){l["default"].clearTimeout(this.checkCurrentTimeTimeout_)}this.checkCurrentTimeTimeout_=l["default"].setTimeout(this.monitorCurrentTime_.bind(this),250)};t.resetSegmentDownloads_=function e(t){var i=this.masterPlaylistController_[t+"SegmentLoader_"];if(this[t+"StalledDownloads_"]>0){this.logger_("resetting possible stalled download count for "+t+" loader")}this[t+"StalledDownloads_"]=0;this[t+"Buffered_"]=i.buffered_()};t.checkSegmentDownloads_=function e(t){var i=this.masterPlaylistController_;var r=i[t+"SegmentLoader_"];var n=r.buffered_();var a=te(this[t+"Buffered_"],n);this[t+"Buffered_"]=n;if(a){this.resetSegmentDownloads_(t);return}this[t+"StalledDownloads_"]++;this.logger_("found #"+this[t+"StalledDownloads_"]+" "+t+" appends that did not increase buffer (possible stalled download)",{playlistId:r.playlist_&&r.playlist_.id,buffered:ee(n)});if(this[t+"StalledDownloads_"]<10){return}this.logger_(t+" loader stalled download exclusion");this.resetSegmentDownloads_(t);this.tech_.trigger({type:"usage",name:"vhs-"+t+"-download-exclusion"});if(t==="subtitle"){return}
1i.blacklistCurrentPlaylist({message:"Excessive "+t+" segment downloading detected."},Infinity)};t.checkCurrentTime_=function e(){if(this.tech_.seeking()&&this.fixesBadSeeks_()){this.consecutiveUpdates=0;this.lastRecordedTime=this.tech_.currentTime();return}if(this.tech_.paused()||this.tech_.seeking()){return}var t=this.tech_.currentTime();var i=this.tech_.buffered();if(this.lastRecordedTime===t&&(!i.length||t+G>=i.end(i.length-1))){return this.techWaiting_()}if(this.consecutiveUpdates>=5&&t===this.lastRecordedTime){this.consecutiveUpdates++;this.waiting_()}else if(t===this.lastRecordedTime){this.consecutiveUpdates++}else{this.consecutiveUpdates=0;this.lastRecordedTime=t}};t.cancelTimer_=function e(){this.consecutiveUpdates=0;if(this.timer_){this.logger_("cancelTimer_");clearTimeout(this.timer_)}this.timer_=null};t.fixesBadSeeks_=function e(){var t=this.tech_.seeking();if(!t){return false}var i=this.seekable();var r=this.tech_.currentTime();var n=this.afterSeekableWindow_(i,r,this.media(),this.allowSeeksWithinUnsafeLiveWindow);var a;if(n){var s=i.end(i.length-1);a=s}if(this.beforeSeekableWindow_(i,r)){var o=i.start(0);a=o+(o===i.end(0)?0:G)}if(typeof a!=="undefined"){this.logger_("Trying to seek outside of seekable at time "+r+" with "+("seekable range "+Z(i)+". Seeking to ")+(a+"."));this.tech_.setCurrentTime(a);return true}var l=this.tech_.buffered();if(no({buffered:l,targetDuration:this.media().targetDuration,currentTime:r})){a=l.start(0)+G;this.logger_("Buffered region starts ("+l.start(0)+") "+(" just beyond seek point ("+r+"). Seeking to "+a+"."));this.tech_.setCurrentTime(a);return true}return false};t.waiting_=function e(){if(this.techWaiting_()){return}var t=this.tech_.currentTime();var i=this.tech_.buffered();var r=K(i,t);if(r.length&&t+3<=r.end(0)){this.cancelTimer_();this.tech_.setCurrentTime(t);this.logger_("Stopped at "+t+" while inside a buffered region "+("["+r.start(0)+" -> "+r.end(0)+"]. Attempting to resume ")+"playback by seeking to the current time.");this.tech_.trigger({type:"usage",name:"vhs-unknown-waiting"});this.tech_.trigger({type:"usage",name:"hls-unknown-waiting"});return}};t.techWaiting_=function e(){var t=this.seekable();var i=this.tech_.currentTime();if(this.tech_.seeking()&&this.fixesBadSeeks_()){return true}if(this.tech_.seeking()||this.timer_!==null){return true}if(this.beforeSeekableWindow_(t,i)){var r=t.end(t.length-1);this.logger_("Fell out of live window at time "+i+". Seeking to "+("live point (seekable end) "+r));this.cancelTimer_();this.tech_.setCurrentTime(r);this.tech_.trigger({type:"usage",name:"vhs-live-resync"});this.tech_.trigger({type:"usage",name:"hls-live-resync"});return true}var n=this.tech_.vhs.masterPlaylistController_.sourceUpdater_;var a=this.tech_.buffered();var s=this.videoUnderflow_({audioBuffered:n.audioBuffered(),videoBuffered:n.videoBuffered(),currentTime:i});if(s){this.cancelTimer_();this.tech_.setCurrentTime(i);this.tech_.trigger({type:"usage",name:"vhs-video-underflow"});this.tech_.trigger({type:"usage",name:"hls-video-underflow"});return true}var o=X(a,i);if(o.length>0){var l=o.start(0)-i;this.logger_("Stopped at "+i+", setting timer for "+l+", seeking "+("to "+o.start(0)));this.cancelTimer_();this.timer_=setTimeout(this.skipTheGap_.bind(this),l*1e3,i);return true}return false};t.afterSeekableWindow_=function e(t,i,r,n){if(n===void 0){n=false}if(!t.length){return false}var a=t.end(t.length-1)+G;var s=!r.endList;if(s&&n){a=t.end(t.length-1)+r.targetDuration*3}if(i>a){return true}return false};t.beforeSeekableWindow_=function e(t,i){if(t.length&&t.start(0)>0&&i<t.start(0)-this.liveRangeSafeTimeDelta){return true}return false};t.videoUnderflow_=function e(t){var i=t.videoBuffered,r=t.audioBuffered,n=t.currentTime;if(!i){return}var a;if(i.length&&r.length){var s=K(i,n-3);var o=K(i,n);var l=K(r,n);if(l.length&&!o.length&&s.length){a={start:s.end(0),end:l.end(0)}}}else{var u=X(i,n);if(!u.length){a=this.gapFromVideoUnderflow_(i,n)}}if(a){this.logger_("Encountered a gap in video from "+a.start+" to "+a.end+". "+("Seeking to current time "+n));return true}return false};t.skipTheGap_=function e(t){var i=this.tech_.buffered();var r=this.tech_.currentTime();var n=X(i,r);this.cancelTimer_();if(n.length===0||r!==t){return}this.logger_("skipTheGap_:","currentTime:",r,"scheduled currentTime:",t,"nextRange start:",n.start(0));this.tech_.setCurrentTime(n.start(0)+W);this.tech_.trigger({type:"usage",name:"vhs-gap-skip"});this.tech_.trigger({type:"usage",name:"hls-gap-skip"})};t.gapFromVideoUnderflow_=function e(t,i){var r=Q(t);for(var n=0;n<r.length;n++){var a=r.start(n);var s=r.end(n);if(i-a<4&&i-a>2){return{start:a,end:s}}}return null};return e}();var so={errorInterval:30,getSource:function e(t){var i=this.tech({IWillNotUseThisInPlugins:true});var r=i.currentSource_||this.currentSource();return t(r)}};var oo=function e(t,i){var r=0;var n=0;var a=u["default"].mergeOptions(so,i);t.ready(function(){t.trigger({type:"usage",name:"vhs-error-reload-initialized"});t.trigger({type:"usage",name:"hls-error-reload-initialized"})});var s=function e(){if(n){t.currentTime(n)}};var o=function e(i){if(i===null||i===undefined){return}n=t.duration()!==Infinity&&t.currentTime()||0;t.one("loadedmetadata",s);t.src(i);t.trigger({type:"usage",name:"vhs-error-reload"});t.trigger({type:"usage",name:"hls-error-reload"});t.play()};var l=function e(){if(Date.now()-r<a.errorInterval*1e3){t.trigger({type:"usage",name:"vhs-error-reload-canceled"});t.trigger({type:"usage",name:"hls-error-reload-canceled"});return}if(!a.getSource||typeof a.getSource!=="function"){u["default"].log.error("ERROR: reloadSourceOnError - The option getSource must be a function!");return}r=Date.now();return a.getSource.call(t,o)};var c=function e(){t.off("loadedmetadata",s);t.off("error",l);t.off("dispose",e)};var d=function i(r){c();e(t,r)};t.on("error",l);t.on("dispose",c);t.reloadSourceOnError=d};var lo=function e(t){oo(this,t)};var uo="2.5.0";var co="5.9.1";var fo="0.15.2";var ho="4.5.2";var po="3.1.2";var vo={PlaylistLoader:z,Playlist:be,utils:Be,STANDARD_PLAYLIST_SELECTOR:Fa,INITIAL_PLAYLIST_SELECTOR:qa,lastBandwidthSelector:Fa,movingAverageBandwidthSelector:Ha,c
1omparePlaylistBandwidth:Ma,comparePlaylistResolution:Ua,xhr:Ee()};Object.keys(Gi).forEach(function(e){Object.defineProperty(vo,e,{get:function t(){u["default"].log.warn("using Vhs."+e+" is UNSAFE be sure you know what you are doing");return Gi[e]},set:function t(i){u["default"].log.warn("using Vhs."+e+" is UNSAFE be sure you know what you are doing");if(typeof i!=="number"||i<0){u["default"].log.warn("value of Vhs."+e+" must be greater than or equal to 0");return}Gi[e]=i}})});var mo="videojs-vhs";var go=function e(t,i){var r=i.media();var n=-1;for(var a=0;a<t.length;a++){if(t[a].id===r.id){n=a;break}}t.selectedIndex_=n;t.trigger({selectedIndex:n,type:"change"})};var yo=function e(t,i){i.representations().forEach(function(e){t.addQualityLevel(e)});go(t,i.playlists)};vo.canPlaySource=function(){return u["default"].log.warn("HLS is no longer a tech. Please remove it from "+"your player\'s techOrder.")};var _o=function e(t,i,r){if(!t){return t}var n={video:i&&i.attributes&&i.attributes.CODECS,audio:r&&r.attributes&&r.attributes.CODECS};if(!n.audio&&n.video&&n.video.split(",").length>1){n.video.split(",").forEach(function(e){e=e.trim();if(ya(e)){n.audio=e}else if(ga(e)){n.video=e}})}var a=n.video?\'video/mp4;codecs="\'+n.video+\'"\':null;var s=n.audio?\'audio/mp4;codecs="\'+n.audio+\'"\':null;var o={};for(var l in t){o[l]={audioContentType:s,videoContentType:a};if(i.contentProtection&&i.contentProtection[l]&&i.contentProtection[l].pssh){o[l].pssh=i.contentProtection[l].pssh}if(typeof t[l]==="string"){o[l].url=t[l]}}return u["default"].mergeOptions(t,o)};var bo=function e(t,i){return t.reduce(function(e,t){if(!t.contentProtection){return e}var r=i.reduce(function(e,i){var r=t.contentProtection[i];if(r&&r.pssh){e[i]={pssh:r.pssh}}return e},{});if(Object.keys(r).length){e.push(r)}return e},[])};var To=function e(t){var i=t.player,r=t.sourceKeySystems,n=t.audioMedia,a=t.mainPlaylists;if(!i.eme.initializeMediaKeys){return Promise.resolve()}var s=n?a.concat([n]):a;var o=bo(s,Object.keys(r));var l=[];var u=[];o.forEach(function(e){u.push(new Promise(function(e,t){i.tech_.one("keysessioncreated",e)}));l.push(new Promise(function(t,r){i.eme.initializeMediaKeys({keySystems:e},function(e){if(e){r(e);return}t()})}))});return Promise.race([Promise.all(l),Promise.race(u)])};var So=function e(t){var i=t.player,r=t.sourceKeySystems,n=t.media,a=t.audioMedia;var s=_o(r,n,a);if(!s){return false}i.currentSource().keySystems=s;if(s&&!i.eme){u["default"].log.warn("DRM encrypted source cannot be decrypted without a DRM plugin");return false}return true};var ko=function e(){if(!l["default"].localStorage){return null}var t=l["default"].localStorage.getItem(mo);if(!t){return null}try{return JSON.parse(t)}catch(e){return null}};var Eo=function e(t){if(!l["default"].localStorage){return false}var i=ko();i=i?u["default"].mergeOptions(i,t):t;try{l["default"].localStorage.setItem(mo,JSON.stringify(i))}catch(e){return false}return i};var jo=function e(t){if(t.toLowerCase().indexOf("data:application/vnd.videojs.vhs+json,")===0){return JSON.parse(t.substring(t.indexOf(",")+1))}return t};vo.supportsNativeHls=function(){if(!o["default"]||!o["default"].createElement){return false}var e=o["default"].createElement("video");if(!u["default"].getTech("Html5").isSupported()){return false}var t=["application/vnd.apple.mpegurl","audio/mpegurl","audio/x-mpegurl","application/x-mpegurl","video/x-mpegurl","video/mpegurl","application/mpegurl"];return t.some(function(t){return/maybe|probably/i.test(e.canPlayType(t))})}();vo.supportsNativeDash=function(){if(!o["default"]||!o["default"].createElement||!u["default"].getTech("Html5").isSupported()){return false}return/maybe|probably/i.test(o["default"].createElement("video").canPlayType("application/dash+xml"))}();vo.supportsTypeNatively=function(e){if(e==="hls"){return vo.supportsNativeHls}if(e==="dash"){return vo.supportsNativeDash}return false};vo.isSupported=function(){'),t[1].s.push('teSourceBuffers_=function e(){if(this.mediaSource.readyState!=="open"||this.sourceUpdater_.hasCreatedSourceBuffers()){return}if(!this.areMediaTypesKnown_()){return}var t=this.getCodecsOrExclude_();if(!t){return}this.sourceUpdater_.createSourceBuffers(t);
1var i=[t.video,t.audio].filter(Boolean).join(",");this.excludeIncompatibleVariants_(i)};i.excludeUnsupportedVariants_=function e(){var t=this;var i=this.master().playlists;var r=[];Object.keys(i).forEach(function(e){var n=i[e];if(r.indexOf(n.id)!==-1){return}r.push(n.id);var a=Oa(t.master,n);var s=[];if(a.audio&&!Sa(a.audio)&&!Ta(a.audio)){s.push("audio codec "+a.audio)}if(a.video&&!Sa(a.video)&&!Ta(a.video)){s.push("video codec "+a.video)}if(a.text&&a.text==="stpp.ttml.im1t"){s.push("text codec "+a.text)}if(s.length){n.excludeUntil=Infinity;t.logger_("excluding "+n.id+" for unsupported: "+s.join(", "))}})};i.excludeIncompatibleVariants_=function e(t){var i=this;var r=[];var n=this.master().playlists;var a=xa(va(t));var s=Pa(a);var o=a.video&&va(a.video)[0]||null;var l=a.audio&&va(a.audio)[0]||null;Object.keys(n).forEach(function(e){var t=n[e];if(r.indexOf(t.id)!==-1||t.excludeUntil===Infinity){return}r.push(t.id);var a=[];var u=Oa(i.masterPlaylistLoader_.master,t);var c=Pa(u);if(!u.audio&&!u.video){return}if(c!==s){a.push(\'codec count "\'+c+\'" !== "\'+s+\'"\')}if(!i.sourceUpdater_.canChangeType()){var d=u.video&&va(u.video)[0]||null;var f=u.audio&&va(u.audio)[0]||null;if(d&&o&&d.type.toLowerCase()!==o.type.toLowerCase()){a.push(\'video codec "\'+d.type+\'" !== "\'+o.type+\'"\')}if(f&&l&&f.type.toLowerCase()!==l.type.toLowerCase()){a.push(\'audio codec "\'+f.type+\'" !== "\'+l.type+\'"\')}}if(a.length){t.excludeUntil=Infinity;i.logger_("blacklisting "+t.id+": "+a.join(" && "))}})};i.updateAdCues_=function e(t){var i=0;var r=this.seekable();if(r.length){i=r.start(0)}xs(t,this.cueTagsTrack_,i)};i.goalBufferLength=function e(){var t=this.tech_.currentTime();var i=Gi.GOAL_BUFFER_LENGTH;var r=Gi.GOAL_BUFFER_LENGTH_RATE;var n=Math.max(i,Gi.MAX_GOAL_BUFFER_LENGTH);return Math.min(i+t*r,n)};i.bufferLowWaterLine=function e(){var t=this.tech_.currentTime();var i=Gi.BUFFER_LOW_WATER_LINE;var r=Gi.BUFFER_LOW_WATER_LINE_RATE;var n=Math.max(i,Gi.MAX_BUFFER_LOW_WATER_LINE);var a=Math.max(i,Gi.EXPERIMENTAL_MAX_BUFFER_LOW_WATER_LINE);return Math.min(i+t*r,this.experimentalBufferBasedABR?a:n)};i.bufferHighWaterLine=function e(){return Gi.BUFFER_HIGH_WATER_LINE};return t}(u["default"].EventTarget);var eo=function e(t,i,r){return function(e){var n=t.master.playlists[i];var a=he(n);var s=pe(n);if(typeof e==="undefined"){return s}if(e){delete n.disabled}else{n.disabled=true}if(e!==s&&!a){r();if(e){t.trigger("renditionenabled")}else{t.trigger("renditiondisabled")}}return e}};var to=function e(t,i,r){var n=t.masterPlaylistController_,a=t.options_.smoothQualityChange;var s=a?"smooth":"fast";var o=n[s+"QualityChange_"].bind(n);if(i.attributes.RESOLUTION){var l=i.attributes.RESOLUTION;this.width=l.width;this.height=l.height}this.bandwidth=i.attributes.BANDWIDTH;this.codecs=Oa(n.master(),i);this.playlist=i;this.id=r;this.enabled=eo(t.playlists,i.id,o)};var io=function e(t){var i=t.playlists;t.representations=function(){if(!i||!i.master||!i.master.playlists){return[]}return i.master.playlists.filter(function(e){return!he(e)}).map(function(e,i){return new to(t,e,e.id)})}};var ro=["seeking","seeked","pause","playing","error"];var no=function e(t){var i=t.buffered,r=t.targetDuration,n=t.currentTime;if(!i.length){return false}if(i.end(0)-i.start(0)<r*2){return false}if(n>i.start(0)){return false}return i.start(0)-n<r};var ao=function(){function e(e){var t=this;this.masterPlaylistController_=e.masterPlaylistController;this.tech_=e.tech;this.seekable=e.seekable;this.allowSeeksWithinUnsafeLiveWindow=e.allowSeeksWithinUnsafeLiveWindow;this.liveRangeSafeTimeDelta=e.liveRangeSafeTimeDelta;this.media=e.media;this.consecutiveUpdates=0;this.lastRecordedTime=null;this.timer_=null;this.checkCurrentTimeTimeout_=null;this.logger_=ja("PlaybackWatcher");this.logger_("initialize");var i=function e(){return t.monitorCurrentTime_()};var r=function e(){return t.techWaiting_()};var n=function e(){return t.cancelTimer_()};var a=function e(){return t.fixesBadSeeks_()};var s=this.masterPlaylistController_;var o=["main","subtitle","audio"];var u={};o.forEach(function(e){u[e]={reset:function i(){return t.resetSegmentDownloads_(e)},updateend:function i(){return t.checkSegmentDownloads_(e)}};s[e+"SegmentLoader_"].on("appendsdone",u[e].updateend);s[e+"SegmentLoader_"].on("playlistupdate",u[e].reset);t.tech_.on(["seeked","seeking"],u[e].reset)});this.tech_.on("seekablechanged",a);this.tech_.on("waiting",r);this.tech_.on(ro,n);this.tech_.on("canplay",i);this.dispose=function(){t.logger_("dispose");t.tech_.off("seekablechanged",a);t.tech_.off("waiting",r);t.tech_.off(ro,n);t.tech_.off("canplay",i);o.forEach(function(e){s[e+"SegmentLoader_"].off("appendsdone",u[e].updateend);s[e+"SegmentLoader_"].off("playlistupdate",u[e].reset);t.tech_.off(["seeked","seeking"],u[e].reset)});if(t.checkCurrentTimeTimeout_){l["default"].clearTimeout(t.checkCurrentTimeTimeout_)}t.cancelTimer_()}}var t=e.prototype;t.monitorCurrentTime_=function e(){this.checkCurrentTime_();if(this.checkCurrentTimeTimeout_){l["default"].clearTimeout(this.checkCurrentTimeTimeout_)}this.checkCurrentTimeTimeout_=l["default"].setTimeout(this.monitorCurrentTime_.bind(this),250)};t.resetSegmentDownloads_=function e(t){var i=this.masterPlaylistController_[t+"SegmentLoader_"];if(this[t+"StalledDownloads_"]>0){this.logger_("resetting possible stalled download count for "+t+" loader")}this[t+"StalledDownloads_"]=0;this[t+"Buffered_"]=i.buffered_()};t.checkSegmentDownloads_=function e(t){var i=this.masterPlaylistController_;var r=i[t+"SegmentLoader_"];var n=r.buffered_();var a=te(this[t+"Buffered_"],n);this[t+"Buffered_"]=n;if(a){this.resetSegmentDownloads_(t);return}this[t+"StalledDownloads_"]++;this.logger_("found #"+this[t+"StalledDownloads_"]+" "+t+" appends that did not increase buffer (possible stalled download)",{playlistId:r.playlist_&&r.playlist_.id,buffered:ee(n)});if(this[t+"StalledDownloads_"]<10){return}this.logger_(t+" loader stalled download exclusion");this.resetSegmentDownloads_(t);this.tech_.trigger({type:"usage",name:"vhs-"+t+"-download-exclusion"});if(t==="subtitle"){return}
1i.blacklistCurrentPlaylist({message:"Excessive "+t+" segment downloading detected."},Infinity)};t.checkCurrentTime_=function e(){if(this.tech_.seeking()&&this.fixesBadSeeks_()){this.consecutiveUpdates=0;this.lastRecordedTime=this.tech_.currentTime();return}if(this.tech_.paused()||this.tech_.seeking()){return}var t=this.tech_.currentTime();var i=this.tech_.buffered();if(this.lastRecordedTime===t&&(!i.length||t+G>=i.end(i.length-1))){return this.techWaiting_()}if(this.consecutiveUpdates>=5&&t===this.lastRecordedTime){this.consecutiveUpdates++;this.waiting_()}else if(t===this.lastRecordedTime){this.consecutiveUpdates++}else{this.consecutiveUpdates=0;this.lastRecordedTime=t}};t.cancelTimer_=function e(){this.consecutiveUpdates=0;if(this.timer_){this.logger_("cancelTimer_");clearTimeout(this.timer_)}this.timer_=null};t.fixesBadSeeks_=function e(){var t=this.tech_.seeking();if(!t){return false}var i=this.seekable();var r=this.tech_.currentTime();var n=this.afterSeekableWindow_(i,r,this.media(),this.allowSeeksWithinUnsafeLiveWindow);var a;if(n){var s=i.end(i.length-1);a=s}if(this.beforeSeekableWindow_(i,r)){var o=i.start(0);a=o+(o===i.end(0)?0:G)}if(typeof a!=="undefined"){this.logger_("Trying to seek outside of seekable at time "+r+" with "+("seekable range "+Z(i)+". Seeking to ")+(a+"."));this.tech_.setCurrentTime(a);return true}var l=this.tech_.buffered();if(no({buffered:l,targetDuration:this.media().targetDuration,currentTime:r})){a=l.start(0)+G;this.logger_("Buffered region starts ("+l.start(0)+") "+(" just beyond seek point ("+r+"). Seeking to "+a+"."));this.tech_.setCurrentTime(a);return true}return false};t.waiting_=function e(){if(this.techWaiting_()){return}var t=this.tech_.currentTime();var i=this.tech_.buffered();var r=K(i,t);if(r.length&&t+3<=r.end(0)){this.cancelTimer_();this.tech_.setCurrentTime(t);this.logger_("Stopped at "+t+" while inside a buffered region "+("["+r.start(0)+" -> "+r.end(0)+"]. Attempting to resume ")+"playback by seeking to the current time.");this.tech_.trigger({type:"usage",name:"vhs-unknown-waiting"});this.tech_.trigger({type:"usage",name:"hls-unknown-waiting"});return}};t.techWaiting_=function e(){var t=this.seekable();var i=this.tech_.currentTime();if(this.tech_.seeking()&&this.fixesBadSeeks_()){return true}if(this.tech_.seeking()||this.timer_!==null){return true}if(this.beforeSeekableWindow_(t,i)){var r=t.end(t.length-1);this.logger_("Fell out of live window at time "+i+". Seeking to "+("live point (seekable end) "+r));this.cancelTimer_();this.tech_.setCurrentTime(r);this.tech_.trigger({type:"usage",name:"vhs-live-resync"});this.tech_.trigger({type:"usage",name:"hls-live-resync"});return true}var n=this.tech_.vhs.masterPlaylistController_.sourceUpdater_;var a=this.tech_.buffered();var s=this.videoUnderflow_({audioBuffered:n.audioBuffered(),videoBuffered:n.videoBuffered(),currentTime:i});if(s){this.cancelTimer_();this.tech_.setCurrentTime(i);this.tech_.trigger({type:"usage",name:"vhs-video-underflow"});this.tech_.trigger({type:"usage",name:"hls-video-underflow"});return true}var o=X(a,i);if(o.length>0){var l=o.start(0)-i;this.logger_("Stopped at "+i+", setting timer for "+l+", seeking "+("to "+o.start(0)));this.cancelTimer_();this.timer_=setTimeout(this.skipTheGap_.bind(this),l*1e3,i);return true}return false};t.afterSeekableWindow_=function e(t,i,r,n){if(n===void 0){n=false}if(!t.length){return false}var a=t.end(t.length-1)+G;var s=!r.endList;if(s&&n){a=t.end(t.length-1)+r.targetDuration*3}if(i>a){return true}return false};t.beforeSeekableWindow_=function e(t,i){if(t.length&&t.start(0)>0&&i<t.start(0)-this.liveRangeSafeTimeDelta){return true}return false};t.videoUnderflow_=function e(t){var i=t.videoBuffered,r=t.audioBuffered,n=t.currentTime;if(!i){return}var a;if(i.length&&r.length){var s=K(i,n-3);var o=K(i,n);var l=K(r,n);if(l.length&&!o.length&&s.length){a={start:s.end(0),end:l.end(0)}}}else{var u=X(i,n);if(!u.length){a=this.gapFromVideoUnderflow_(i,n)}}if(a){this.logger_("Encountered a gap in video from "+a.start+" to "+a.end+". "+("Seeking to current time "+n));return true}return false};t.skipTheGap_=function e(t){var i=this.tech_.buffered();var r=this.tech_.currentTime();var n=X(i,r);this.cancelTimer_();if(n.length===0||r!==t){return}this.logger_("skipTheGap_:","currentTime:",r,"scheduled currentTime:",t,"nextRange start:",n.start(0));this.tech_.setCurrentTime(n.start(0)+W);this.tech_.trigger({type:"usage",name:"vhs-gap-skip"});this.tech_.trigger({type:"usage",name:"hls-gap-skip"})};t.gapFromVideoUnderflow_=function e(t,i){var r=Q(t);for(var n=0;n<r.length;n++){var a=r.start(n);var s=r.end(n);if(i-a<4&&i-a>2){return{start:a,end:s}}}return null};return e}();var so={errorInterval:30,getSource:function e(t){var i=this.tech({IWillNotUseThisInPlugins:true});var r=i.currentSource_||this.currentSource();return t(r)}};var oo=function e(t,i){var r=0;var n=0;var a=u["default"].mergeOptions(so,i);t.ready(function(){t.trigger({type:"usage",name:"vhs-error-reload-initialized"});t.trigger({type:"usage",name:"hls-error-reload-initialized"})});var s=function e(){if(n){t.currentTime(n)}};var o=function e(i){if(i===null||i===undefined){return}n=t.duration()!==Infinity&&t.currentTime()||0;t.one("loadedmetadata",s);t.src(i);t.trigger({type:"usage",name:"vhs-error-reload"});t.trigger({type:"usage",name:"hls-error-reload"});t.play()};var l=function e(){if(Date.now()-r<a.errorInterval*1e3){t.trigger({type:"usage",name:"vhs-error-reload-canceled"});t.trigger({type:"usage",name:"hls-error-reload-canceled"});return}if(!a.getSource||typeof a.getSource!=="function"){u["default"].log.error("ERROR: reloadSourceOnError - The option getSource must be a function!");return}r=Date.now();return a.getSource.call(t,o)};var c=function e(){t.off("loadedmetadata",s);t.off("error",l);t.off("dispose",e)};var d=function i(r){c();e(t,r)};t.on("error",l);t.on("dispose",c);t.reloadSourceOnError=d};var lo=function e(t){oo(this,t)};var uo="2.5.0";var co="5.9.1";var fo="0.15.2";var ho="4.5.2";var po="3.1.2";var vo={PlaylistLoader:z,Playlist:be,utils:Be,STANDARD_PLAYLIST_SELECTOR:Fa,INITIAL_PLAYLIST_SELECTOR:qa,lastBandwidthSelector:Fa,movingAverageBandwidthSelector:Ha,c
1omparePlaylistBandwidth:Ma,comparePlaylistResolution:Ua,xhr:Ee()};Object.keys(Gi).forEach(function(e){Object.defineProperty(vo,e,{get:function t(){u["default"].log.warn("using Vhs."+e+" is UNSAFE be sure you know what you are doing");return Gi[e]},set:function t(i){u["default"].log.warn("using Vhs."+e+" is UNSAFE be sure you know what you are doing");if(typeof i!=="number"||i<0){u["default"].log.warn("value of Vhs."+e+" must be greater than or equal to 0");return}Gi[e]=i}})});var mo="videojs-vhs";var go=function e(t,i){var r=i.media();var n=-1;for(var a=0;a<t.length;a++){if(t[a].id===r.id){n=a;break}}t.selectedIndex_=n;t.trigger({selectedIndex:n,type:"change"})};var yo=function e(t,i){i.representations().forEach(function(e){t.addQualityLevel(e)});go(t,i.playlists)};vo.canPlaySource=function(){return u["default"].log.warn("HLS is no longer a tech. Please remove it from "+"your player\'s techOrder.")};var _o=function e(t,i,r){if(!t){return t}var n={video:i&&i.attributes&&i.attributes.CODECS,audio:r&&r.attributes&&r.attributes.CODECS};if(!n.audio&&n.video&&n.video.split(",").length>1){n.video.split(",").forEach(function(e){e=e.trim();if(ya(e)){n.audio=e}else if(ga(e)){n.video=e}})}var a=n.video?\'video/mp4;codecs="\'+n.video+\'"\':null;var s=n.audio?\'audio/mp4;codecs="\'+n.audio+\'"\':null;var o={};for(var l in t){o[l]={audioContentType:s,videoContentType:a};if(i.contentProtection&&i.contentProtection[l]&&i.contentProtection[l].pssh){o[l].pssh=i.contentProtection[l].pssh}if(typeof t[l]==="string"){o[l].url=t[l]}}return u["default"].mergeOptions(t,o)};var bo=function e(t,i){return t.reduce(function(e,t){if(!t.contentProtection){return e}var r=i.reduce(function(e,i){var r=t.contentProtection[i];if(r&&r.pssh){e[i]={pssh:r.pssh}}return e},{});if(Object.keys(r).length){e.push(r)}return e},[])};var To=function e(t){var i=t.player,r=t.sourceKeySystems,n=t.audioMedia,a=t.mainPlaylists;if(!i.eme.initializeMediaKeys){return Promise.resolve()}var s=n?a.concat([n]):a;var o=bo(s,Object.keys(r));var l=[];var u=[];o.forEach(function(e){u.push(new Promise(function(e,t){i.tech_.one("keysessioncreated",e)}));l.push(new Promise(function(t,r){i.eme.initializeMediaKeys({keySystems:e},function(e){if(e){r(e);return}t()})}))});return Promise.race([Promise.all(l),Promise.race(u)])};var So=function e(t){var i=t.player,r=t.sourceKeySystems,n=t.media,a=t.audioMedia;var s=_o(r,n,a);if(!s){return false}i.currentSource().keySystems=s;if(s&&!i.eme){u["default"].log.warn("DRM encrypted source cannot be decrypted without a DRM plugin");return false}return true};var ko=function e(){if(!l["default"].localStorage){return null}var t=l["default"].localStorage.getItem(mo);if(!t){return null}try{return JSON.parse(t)}catch(e){return null}};var Eo=function e(t){if(!l["default"].localStorage){return false}var i=ko();i=i?u["default"].mergeOptions(i,t):t;try{l["default"].localStorage.setItem(mo,JSON.stringify(i))}catch(e){return false}return i};var jo=function e(t){if(t.toLowerCase().indexOf("data:application/vnd.videojs.vhs+json,")===0){return JSON.parse(t.substring(t.indexOf(",")+1))}return t};vo.supportsNativeHls=function(){if(!o["default"]||!o["default"].createElement){return false}var e=o["default"].createElement("video");if(!u["default"].getTech("Html5").isSupported()){return false}var t=["application/vnd.apple.mpegurl","audio/mpegurl","audio/x-mpegurl","application/x-mpegurl","video/x-mpegurl","video/mpegurl","application/mpegurl"];return t.some(function(t){return/maybe|probably/i.test(e.canPlayType(t))})}();vo.supportsNativeDash=function(){if(!o["default"]||!o["default"].createElement||!u["default"].getTech("Html5").isSupported()){return false}return/maybe|probably/i.test(o["default"].createElement("video").canPlayType("application/dash+xml"))}();vo.supportsTypeNatively=function(e){if(e==="hls"){return vo.supportsNativeHls}if(e==="dash"){return vo.sup'),t[0].s.push('return u["default"].log.warn("HLS is no longer a tech. Please remove it from "+"your player\'s techOrder.")};var wo=u["default"].getComponent("Component");var Co=function(e){h(t,e);function t(t,i,r){var n;n=e.call(this,i,u["default"].mergeOptions(r.hls,r.vhs))||this;if(r.hls&&Object.keys(r.hls).length){u["default"].log.warn("Using hls options is deprecated. Use vhs instead.")}n.logger_=ja("VhsHandler");if(i.options_&&i.options_.playerId){var a=u["default"](i.options_.playerId);if(!a.hasOwnProperty("hls")){Object.defineProperty(a,"hls",{get:function e(){u["default"].log.warn("player.hls is deprecated. Use player.tech().vhs instead.");i.trigger({type:"usage",name:"hls-player-access"});return d(n)},configurable:true})}if(!a.hasOwnProperty("vhs")){Object.defineProperty(a,"vhs",{get:function e(){u["default"].log.warn("player.vhs is deprecated. Use player.tech().vhs instead.");i.trigger({type:"usage",name:"vhs-player-access"});return d(n)},configurable:true})}if(!a.hasOwnProperty("dash")){Object.defineProperty(a,"dash",{get:function e(){u["default"].log.warn("player.dash is deprecated. Use player.tech().vhs instead.");return d(n)},configurable:true})}n.player_=a}n.tech_=i;n.source_=t;n.stats={};n.ignoreNextSeekingEvent_=false;n.setOptions_();if(n.options_.overrideNative&&i.overrideNativeAudioTracks&&i.overrideNativeVideoTracks){i.overrideNativeAudioTracks(true);i.overrideNativeVideoTracks(true)}else if(n.options_.overrideNative&&(i.featuresNativeVideoTracks||i.featuresNativeAudioTracks)){throw new Error("Overriding native HLS requires emulated tracks. "+"See https://git.io/vMpjB")}n.on(o["default"],["fullscreenchange","webkitfullscreenchange","mozfullscreenchange","MSFullscreenChange"],function(e){var t=o["default"].fullscreenElement||o["default"].webkitFullscreenElement||o["default"].mozFullScreenElement||o["default"].msFullscreenElement;if(t&&t.contains(n.tech_.el())){n.masterPlaylistController_.smoothQualityChange_()}});n.on(n.tech_,"seeking",function(){if(this.ignoreNextSeekingEvent_){this.ignoreNextSeekingEvent_=false;return}this.setCurrentTime(this.tech_.currentTime())});n.on(n.tech_,"error",function(){if(this.tech_.error()&&this.masterPlaylistController_){this.masterPlaylistController_.pauseLoading()}});n.on(n.tech_,"play",n.play);return n}var i=t.prototype;i.setOptions_=function e(){var t=this;this.options_.withCredentials=this.options_.withCredentials||false;this.options_.handleManifestRedirects=this.options_.handleManifestRedirects===false?false:true;this.options_.limitRenditionByPlayerDimensions=this.options_.limitRenditionByPlayerDimensions===false?false:true;this.options_.useDevicePixelRatio=this.options_.useDevicePixelRatio||false;this.options_.smoothQualityChange=this.options_.smoothQualityChange||false;this.options_.useBandwidthFromLocalStorage=typeof this.source_.useBandwidthFromLocalStorage!=="undefined"?this.source_.useBandwidthFromLocalStorage:this.options_.useBandwidthFromLocalStorage||false;this.options_.customTagParsers=this.options_.customTagParsers||[];this.options_.customTagMappers=this.options_.customTagMappers||[];this.options_.cacheEncryptionKeys=this.options_.cacheEncryptionKeys||false;this.options_.handlePartialData=this.options_.handlePartialData||false;if(typeof this.options_.blacklistDuration!=="number"){this.options_.blacklistDuration=5*60}if(typeof this.options_.bandwidth!=="number"){if(this.options_.useBandwidthFromLocalStorage){var i=ko();if(i&&i.bandwidth){this.options_.bandwidth=i.bandwidth;this.tech_.trigger({type:"usage",name:"vhs-bandwidth-from-local-storage"});this.tech_.trigger({type:"usage",name:"hls-bandwidth-from-local-storage"})}if(i&&i.throughput){this.options_.throughput=i.throughput;this.tech_.trigger({type:"usage",name:"vhs-throughput-from-local-storage"});this.tech_.trigger({type:"usage",name:"hls-throughput-from-local-storage"})}}}if(typeof this.options_.bandwidth!=="number"){this.options_.bandwidth=Gi.INITIAL_BANDWIDTH}this.options_.enableLowInitialPlaylist=this.options_.enableLowInitialPlaylist&&this.options_.bandwidth===Gi.INITIAL_BANDWIDTH;["withCredentials","useDevicePixelRatio","limitRenditionByPlayerDimensions","bandwidth","smoothQualityChange","customTagParsers","customTagMappers","handleManifestRedirects","cacheEncryptionKeys","handlePartialData","playlistSelector","initialPlaylistSelector","experimentalBufferBasedABR","liveRangeSafeTimeDelta"].forEach(function(e){if(typeof t.source_[e]!=="undefined"){t.options_[e]=t.source_[e]}});this.limitRenditionByPlayerDimensions=this.options_.limitRenditionByPlayerDimensions;this.useDevicePixelRatio=this.options_.useDevicePixelRatio};i.src=function e(t,i){var r=this;if(!t){return}this.setOptions_();this.options_.src=jo(this.source_.src);this.options_.tech=this.tech_;this.options_.externVhs=vo;this.options_.sourceType=Ae(i);this.options_.seekTo=function(e){r.tech_.setCurrentTime(e)};this.masterPlaylistController_=new $s(this.options_);var n=u["default"].mergeOptions({liveRangeSafeTimeDelta:G},this.options_,{seekable:function e(){return r.seekable()},media:function e(){return r.masterPlaylistController_.media()},masterPlaylistController:this.masterPlaylistController_});this.playbackWatcher_=new ao(n);this.masterPlaylistController_.on("error",function(){var e=u["default"].players[r.tech_.options_.playerId];var t=r.masterPlaylistController_.error;if(typeof t==="object"&&!t.code){t.code=3}else if(typeof t==="string"){t={message:t,code:3}}e.error(t)});var a=this.options_.experimentalBufferBasedABR?vo.movingAverageBandwidthSelector(.55):vo.STANDARD_PLAYLIST_SELECTOR;this.masterPlaylistController_.selectPlaylist=this.selectPlaylist?this.selectPlaylist.bind(this):a.bind(this);this.masterPlaylistController_.selectInitialPlaylist=vo.INITIAL_PLAYLIST_SELECTOR.bind(this);this.playlists=this.masterPlaylistController_.masterPlaylistLoader_;this.mediaSource=this.masterPlaylistController_.mediaSource;Object.defineProperties(this,{selectPlaylist:{get:function e(){return this.masterPlaylistController_.selectPlaylist},set:function e(t){this.masterPlaylistController_.selectPlaylist=t.bind(this)}},throughput:{get:function e(){return this.masterPlaylistController_.mainSegmentLoader_.throughput.rate},set:function e(t){this.masterPlaylistController_.mainSegmentLoader_.throughput.rate=t;this.masterPlaylistController_.mainSegmentLoader_.throughput.count=1}},bandwidth:{get:function e(){return this.masterPlaylistController_.mainSegmentLoader_.bandwidth}
1,set:function e(t){this.masterPlaylistController_.mainSegmentLoader_.bandwidth=t;this.masterPlaylistController_.mainSegmentLoader_.throughput={rate:0,count:0}}},systemBandwidth:{get:function e(){var t=1/(this.bandwidth||1);var i;if(this.throughput>0){i=1/this.throughput}else{i=0}var r=Math.floor(1/(t+i));return r},set:function e(){u["default"].log.error(\'The "systemBandwidth" property is read-only\')}}});if(this.options_.bandwidth){this.bandwidth=this.options_.bandwidth}if(this.options_.throughput){this.throughput=this.options_.throughput}Object.defineProperties(this.stats,{bandwidth:{get:function e(){return r.bandwidth||0},enumerable:true},mediaRequests:{get:function e(){return r.masterPlaylistController_.mediaRequests_()||0},enumerable:true},mediaRequestsAborted:{get:function e(){return r.masterPlaylistController_.mediaRequestsAborted_()||0},enumerable:true},mediaRequestsTimedout:{get:function e(){return r.masterPlaylistController_.mediaRequestsTimedout_()||0},enumerable:true},mediaRequestsErrored:{get:function e(){return r.masterPlaylistController_.mediaRequestsErrored_()||0},enumerable:true},mediaTransferDuration:{get:function e(){return r.masterPlaylistController_.mediaTransferDuration_()||0},enumerable:true},mediaBytesTransferred:{get:function e(){return r.masterPlaylistController_.mediaBytesTransferred_()||0},enumerable:true},mediaSecondsLoaded:{get:function e(){return r.masterPlaylistController_.mediaSecondsLoaded_()||0},enumerable:true},buffered:{get:function e(){return ee(r.tech_.buffered())},enumerable:true},currentTime:{get:function e(){return r.tech_.currentTime()},enumerable:true},currentSource:{get:function e(){return r.tech_.currentSource_},enumerable:true},currentTech:{get:function e(){return r.tech_.name_},enumerable:true},duration:{get:function e(){return r.tech_.duration()},enumerable:true},master:{get:function e(){return r.playlists.master},enumerable:true},playerDimensions:{get:function e(){return r.tech_.currentDimensions()},enumerable:true},seekable:{get:function e(){return ee(r.tech_.seekable())},enumerable:true},timestamp:{get:function e(){return Date.now()},enumerable:true},videoPlaybackQuality:{get:function e(){return r.tech_.getVideoPlaybackQuality()},enumerable:true}});this.tech_.one("canplay",this.masterPlaylistController_.setupFirstPlay.bind(this.masterPlaylistController_));this.tech_.on("bandwidthupdate",function(){if(r.options_.useBandwidthFromLocalStorage){Eo({bandwidth:r.bandwidth,throughput:Math.round(r.throughput)})}});this.masterPlaylistController_.on("selectedinitialmedia",function(){io(r)});this.masterPlaylistController_.sourceUpdater_.on("createdsourcebuffers",function(){r.setupEme_()});this.on(this.masterPlaylistController_,"progress",function(){this.tech_.trigger("progress")});this.on(this.masterPlaylistController_,"firstplay",function(){this.ignoreNextSeekingEvent_=true});this.setupQualityLevels_();if(!this.tech_.el()){return}this.mediaSourceUrl_=l["default"].URL.createObjectURL(this.masterPlaylistController_.mediaSource);this.tech_.src(this.mediaSourceUrl_)};i.setupEme_=function e(){var t=this;var i=this.masterPlaylistController_.mediaTypes_.AUDIO.activePlaylistLoader;var r=So({player:this.player_,sourceKeySystems:this.source_.keySystems,media:this.playlists.media(),audioMedia:i&&i.media()});if(u["default"].browser.IE_VERSION===11||!r){this.masterPlaylistController_.sourceUpdater_.initializedEme();return}this.logger_("waiting for EME key session creation");To({player:this.player_,sourceKeySystems:this.source_.keySystems,audioMedia:i&&i.media(),mainPlaylists:this.playlists.master.playlists}).then(function(){t.logger_("created EME key session");t.masterPlaylistController_.sourceUpdater_.initializedEme()}).catch(function(e){t.logger_("error while creating EME key session",e);t.player_.error({message:"Failed to initialize media keys for EME",code:3})})};i.setupQualityLevels_=function e(){var t=this;var i=u["default"].players[this.tech_.options_.playerId];if(!i||!i.qualityLevels||this.qualityLevels_){return}this.qualityLevels_=i.qualityLevels();this.masterPlaylistController_.on("selectedinitialmedia",function(){yo(t.qualityLevels_,t)});this.playlists.on("mediachange",function(){go(t.qualityLevels_,t.playlists)})};t.version=function e(){return{"@videojs/http-streaming":uo,"mux.js":co,"mpd-parser":fo,"m3u8-parser":ho,"aes-decrypter":po}};i.version=function e(){return this.constructor.version()};i.canChangeType=function e(){return js.canChangeType()};i.play=function e(){this.masterPlaylistController_.play()};i.setCurrentTime=function e(t){this.masterPlaylistController_.setCurrentTime(t)};i.duration=function e(){return this.masterPlaylistController_.duration()};i.seekable=function e(){return this.masterPlaylistController_.seekable()};i.dispose=function t(){if(this.playbackWatcher_){this.playbackWatcher_.dispose()}if(this.masterPlaylistController_){this.masterPlaylistController_.dispose()}
1if(this.qualityLevels_){this.qualityLevels_.dispose()}if(this.player_){delete this.player_.vhs;delete this.player_.dash;delete this.player_.hls}if(this.tech_&&this.tech_.vhs){delete this.tech_.vhs}if(this.tech_){delete this.tech_.hls}if(this.mediaSourceUrl_&&l["default"].URL.revokeObjectURL){l["default"].URL.revokeObjectURL(this.mediaSourceUrl_);this.mediaSourceUrl_=null}e.prototype.dispose.call(this)};i.convertToProgramTime=function e(t,i){return Ye({playlist:this.masterPlaylistController_.media(),time:t,callback:i})};i.seekToProgramTime=function e(t,i,r,n){if(r===void 0){r=true}if(n===void 0){n=2}return Ke({programTime:t,playlist:this.masterPlaylistController_.media(),retryCount:n,pauseAfterSeek:r,seekTo:this.options_.seekTo,tech:this.options_.tech,callback:i})};return t}(wo);var Io={name:"videojs-http-streaming",VERSION:uo,canHandleSource:function e(t,i){if(i===void 0){i={}}var r=u["default"].mergeOptions(u["default"].options,i);return Io.canPlayType(t.type,r)},handleSource:function e(t,i,r){if(r===void 0){r={}}var n=u["default"].mergeOptions(u["default"].options,r);i.vhs=new Co(t,i,n);if(!u["default"].hasOwnProperty("hls")){Object.defineProperty(i,"hls",{get:function e(){u["default"].log.warn("player.tech().hls is deprecated. Use player.tech().vhs instead.");return i.vhs},configurable:true})}i.vhs.xhr=Ee();i.vhs.src(t.src,t.type);return i.vhs},canPlayType:function e(t,i){if(i===void 0){i={}}var r=u["default"].mergeOptions(u["default"].options,i),n=r.vhs.overrideNative,a=n===void 0?!u["default"].browser.IS_ANY_SAFARI:n;var s=Ae(t);var o=s&&(!vo.supportsTypeNatively(s)||a);return o?"maybe":""}};var Ao=function e(){return Ta("avc1.4d400d,mp4a.40.2")};if(Ao()){u["default"].getTech("Html5").registerSourceHandler(Io,0)}u["default"].VhsHandler=Co;Object.defineProperty(u["default"],"HlsHandler",{get:function e(){u["default"].log.warn("videojs.HlsHandler is deprecated. Use videojs.VhsHandler instead.");return Co},configurable:true});u["default"].VhsSourceHandler=Io;Object.defineProperty(u["default"],"HlsSourceHandler",{get:function e(){u["default"].log.warn("videojs.HlsSourceHandler is deprecated. "+"Use videojs.VhsSourceHandler instead.");return Io},configurable:true});u["default"].Vhs=vo;Object.defineProperty(u["default"],"Hls",{get:function e(){u["default"].log.warn("videojs.Hls is deprecated. Use videojs.Vhs instead.");return vo},configurable:true});if(!u["default"].use){u["default"].registerComponent("Hls",vo);u["default"].registerComponent("Vhs",vo)}u["default"].options.vhs=u["default"].options.vhs||{};u["default"].options.hls=u["default"].options.hls||{};if(u["default"].registerPlugin){u["default"].registerPlugin("reloadSourceOnError",lo)}else{u["default"].plugin("reloadSourceOnError",lo)}t.LOCAL_STORAGE_KEY=mo;t.Vhs=vo;t.VhsHandler=Co;t.VhsSourceHandler=Io;t.emeKeySystems=_o;t.expandDataUri=jo;t.getAllPsshKeySystemsOptions=bo;t.setupEmeOptions=So;t.simpleTypeFromSourceType=Ae;t.waitForKeySessionCreation=To;Object.defineProperty(t,"__esModule",{value:true})});(function(){if(s.getPlugin("perSourceBehaviors")){return}(function(e,t){typeof exports==="object"&&typeof module!=="undefined"?module.exports=t(require("video.js")):typeof i==="function"&&i.amd?i(["video.js"],t):e.videojsPerSourceBehaviors=t(e.videojs)})(typeof self!=="undefined"?self:this,function(e){"use strict";e=e&&e.hasOwnProperty("default")?e["default"]:e;var t="2.1.0";var i=e.getTech("Html5");var r=e.registerPlugin||e.plugin;var n=["abort","emptied","loadstart","play"];var a=["abort","emptied"];var s=["ad-playback","ads-ready?","postroll?","preroll?"];var o=function e(t){return s.indexOf(t)>-1};var l=function e(t){return t.usingPlugin("ads")&&typeof t.ads.inAdBreak==="function"};var u=function e(t,i){if(!t.usingPlugin("ads")){return false}if(l(t)){return t.ads.isInAdMode()&&i.type!=="loadstart"}return o(t.ads.state)};var c=function r(){var s=this;var o=[];var l;var c=false;var d;var f=true;var h=function t(i){return function(t,r){var n=this;if(this.perSourceBehaviors.disabled()){return}var a=arguments.length===2;var s=this.currentSrc();var l=[t];var u=e.bind(a?this:t,arguments[arguments.length-1]);var c=function e(){var t=n.currentSrc()!==s;if(n.perSourceBehaviors.disabled()){return}if(t||i){n.off.apply(n,l)}if(!t){u.apply(void 0,arguments)}};c.guid=u.guid;if(!a){l.push(r)}l.push(c);o.push(l);return this.on.apply(this,l)}};this.perSourceBehaviors={disable:e.bind(this,function e(){this.clearTimeout(d);d=null;c=true;return c}),disabled:function e(){return c},enable:function e(){c=false;return c},enabled:function e(){return!c},isSrcStable:function e(){return f},VERSION:t};this.onPerSrc=h();this.onePerSrc=h(true);this.on("dispose",function(){o.length=0});this.on(n,function(e){if(s.perSourceBehaviors.disabled()||d||u(s,e)){return}if(f&&a.indexOf(e.type)>-1){f=false;s.trigger("sourceunstable")}var t=[];var r=function e(i){return t.push({time:Date.now(),event:i})};r(e);s.on(i.Events,r);d=s.setTimeout(function(){var e=s.currentSrc();f=true;d=null;s.off(i.Events,r);if(e&&e!==l){o'),t[1].s.push('portsNativeDash}return false};vo.isSupported=function(){return u["default"].log.warn("HLS is no longer a tech. Please remove it from "+"your player\'s techOrder.")};var wo=u["default"].getComponent("Component");var Co=function(e){h(t,e);function t(t,i,r){var n;n=e.call(this,i,u["default"].mergeOptions(r.hls,r.vhs))||this;if(r.hls&&Object.keys(r.hls).length){u["default"].log.warn("Using hls options is deprecated. Use vhs instead.")}n.logger_=ja("VhsHandler");if(i.options_&&i.options_.playerId){var a=u["default"](i.options_.playerId);if(!a.hasOwnProperty("hls")){Object.defineProperty(a,"hls",{get:function e(){u["default"].log.warn("player.hls is deprecated. Use player.tech().vhs instead.");i.trigger({type:"usage",name:"hls-player-access"});return d(n)},configurable:true})}if(!a.hasOwnProperty("vhs")){Object.defineProperty(a,"vhs",{get:function e(){u["default"].log.warn("player.vhs is deprecated. Use player.tech().vhs instead.");i.trigger({type:"usage",name:"vhs-player-access"});return d(n)},configurable:true})}if(!a.hasOwnProperty("dash")){Object.defineProperty(a,"dash",{get:function e(){u["default"].log.warn("player.dash is deprecated. Use player.tech().vhs instead.");return d(n)},configurable:true})}n.player_=a}n.tech_=i;n.source_=t;n.stats={};n.ignoreNextSeekingEvent_=false;n.setOptions_();if(n.options_.overrideNative&&i.overrideNativeAudioTracks&&i.overrideNativeVideoTracks){i.overrideNativeAudioTracks(true);i.overrideNativeVideoTracks(true)}else if(n.options_.overrideNative&&(i.featuresNativeVideoTracks||i.featuresNativeAudioTracks)){throw new Error("Overriding native HLS requires emulated tracks. "+"See https://git.io/vMpjB")}n.on(o["default"],["fullscreenchange","webkitfullscreenchange","mozfullscreenchange","MSFullscreenChange"],function(e){var t=o["default"].fullscreenElement||o["default"].webkitFullscreenElement||o["default"].mozFullScreenElement||o["default"].msFullscreenElement;if(t&&t.contains(n.tech_.el())){n.masterPlaylistController_.smoothQualityChange_()}});n.on(n.tech_,"seeking",function(){if(this.ignoreNextSeekingEvent_){this.ignoreNextSeekingEvent_=false;return}this.setCurrentTime(this.tech_.currentTime())});n.on(n.tech_,"error",function(){if(this.tech_.error()&&this.masterPlaylistController_){this.masterPlaylistController_.pauseLoading()}});n.on(n.tech_,"play",n.play);return n}var i=t.prototype;i.setOptions_=function e(){var t=this;this.options_.withCredentials=this.options_.withCredentials||false;this.options_.handleManifestRedirects=this.options_.handleManifestRedirects===false?false:true;this.options_.limitRenditionByPlayerDimensions=this.options_.limitRenditionByPlayerDimensions===false?false:true;this.options_.useDevicePixelRatio=this.options_.useDevicePixelRatio||false;this.options_.smoothQualityChange=this.options_.smoothQualityChange||false;this.options_.useBandwidthFromLocalStorage=typeof this.source_.useBandwidthFromLocalStorage!=="undefined"?this.source_.useBandwidthFromLocalStorage:this.options_.useBandwidthFromLocalStorage||false;this.options_.customTagParsers=this.options_.customTagParsers||[];this.options_.customTagMappers=this.options_.customTagMappers||[];this.options_.cacheEncryptionKeys=this.options_.cacheEncryptionKeys||false;this.options_.handlePartialData=this.options_.handlePartialData||false;if(typeof this.options_.blacklistDuration!=="number"){this.options_.blacklistDuration=5*60}if(typeof this.options_.bandwidth!=="number"){if(this.options_.useBandwidthFromLocalStorage){var i=ko();if(i&&i.bandwidth){this.options_.bandwidth=i.bandwidth;this.tech_.trigger({type:"usage",name:"vhs-bandwidth-from-local-storage"});this.tech_.trigger({type:"usage",name:"hls-bandwidth-from-local-storage"})}if(i&&i.throughput){this.options_.throughput=i.throughput;this.tech_.trigger({type:"usage",name:"vhs-throughput-from-local-storage"});this.tech_.trigger({type:"usage",name:"hls-throughput-from-local-storage"})}}}if(typeof this.options_.bandwidth!=="number"){this.options_.bandwidth=Gi.INITIAL_BANDWIDTH}this.options_.enableLowInitialPlaylist=this.options_.enableLowInitialPlaylist&&this.options_.bandwidth===Gi.INITIAL_BANDWIDTH;["withCredentials","useDevicePixelRatio","limitRenditionByPlayerDimensions","bandwidth","smoothQualityChange","customTagParsers","customTagMappers","handleManifestRedirects","cacheEncryptionKeys","handlePartialData","playlistSelector","initialPlaylistSelector","experimentalBufferBasedABR","liveRangeSafeTimeDelta"].forEach(function(e){if(typeof t.source_[e]!=="undefined"){t.options_[e]=t.source_[e]}});this.limitRenditionByPlayerDimensions=this.options_.limitRenditionByPlayerDimensions;this.useDevicePixelRatio=this.options_.useDevicePixelRatio};i.src=function e(t,i){var r=this;if(!t){return}this.setOptions_();this.options_.src=jo(this.source_.src);this.options_.tech=this.tech_;this.options_.externVhs=vo;this.options_.sourceType=Ae(i);this.options_.seekTo=function(e){r.tech_.setCurrentTime(e)};this.masterPlaylistController_=new $s(this.options_);var n=u["default"].mergeOptions({liveRangeSafeTimeDelta:G},this.options_,{seekable:function e(){return r.seekable()},media:function e(){return r.masterPlaylistController_.media()},masterPlaylistController:this.masterPlaylistController_});this.playbackWatcher_=new ao(n);this.masterPlaylistController_.on("error",function(){var e=u["default"].players[r.tech_.options_.playerId];var t=r.masterPlaylistController_.error;if(typeof t==="object"&&!t.code){t.code=3}else if(typeof t==="string"){t={message:t,code:3}}e.error(t)});var a=this.options_.experimentalBufferBasedABR?vo.movingAverageBandwidthSelector(.55):vo.STANDARD_PLAYLIST_SELECTOR;this.masterPlaylistController_.selectPlaylist=this.selectPlaylist?this.selectPlaylist.bind(this):a.bind(this);this.masterPlaylistController_.selectInitialPlaylist=vo.INITIAL_PLAYLIST_SELECTOR.bind(this);this.playlists=this.masterPlaylistController_.masterPlaylistLoader_;this.mediaSource=this.masterPlaylistController_.mediaSource;Object.defineProperties(this,{selectPlaylist:{get:function e(){return this.masterPlaylistController_.selectPlaylist},set:function e(t){this.masterPlaylistController_.selectPlaylist=t.bind(this)}},throughput:{get:function e(){return this.masterPlaylistController_.mainSegmentLoader_.throughput.rate},set:function e(t){this.masterPlaylistController_.mainSegmentLoader_.throughput.rate=t;this.masterPlaylistController_.mainSegmentLoader_.throughput.count=1}},bandwidth:{get:function e(){return this.masterPlaylistController_.mainSegmentLoader_.bandwidth}
1,set:function e(t){this.masterPlaylistController_.mainSegmentLoader_.bandwidth=t;this.masterPlaylistController_.mainSegmentLoader_.throughput={rate:0,count:0}}},systemBandwidth:{get:function e(){var t=1/(this.bandwidth||1);var i;if(this.throughput>0){i=1/this.throughput}else{i=0}var r=Math.floor(1/(t+i));return r},set:function e(){u["default"].log.error(\'The "systemBandwidth" property is read-only\')}}});if(this.options_.bandwidth){this.bandwidth=this.options_.bandwidth}if(this.options_.throughput){this.throughput=this.options_.throughput}Object.defineProperties(this.stats,{bandwidth:{get:function e(){return r.bandwidth||0},enumerable:true},mediaRequests:{get:function e(){return r.masterPlaylistController_.mediaRequests_()||0},enumerable:true},mediaRequestsAborted:{get:function e(){return r.masterPlaylistController_.mediaRequestsAborted_()||0},enumerable:true},mediaRequestsTimedout:{get:function e(){return r.masterPlaylistController_.mediaRequestsTimedout_()||0},enumerable:true},mediaRequestsErrored:{get:function e(){return r.masterPlaylistController_.mediaRequestsErrored_()||0},enumerable:true},mediaTransferDuration:{get:function e(){return r.masterPlaylistController_.mediaTransferDuration_()||0},enumerable:true},mediaBytesTransferred:{get:function e(){return r.masterPlaylistController_.mediaBytesTransferred_()||0},enumerable:true},mediaSecondsLoaded:{get:function e(){return r.masterPlaylistController_.mediaSecondsLoaded_()||0},enumerable:true},buffered:{get:function e(){return ee(r.tech_.buffered())},enumerable:true},currentTime:{get:function e(){return r.tech_.currentTime()},enumerable:true},currentSource:{get:function e(){return r.tech_.currentSource_},enumerable:true},currentTech:{get:function e(){return r.tech_.name_},enumerable:true},duration:{get:function e(){return r.tech_.duration()},enumerable:true},master:{get:function e(){return r.playlists.master},enumerable:true},playerDimensions:{get:function e(){return r.tech_.currentDimensions()},enumerable:true},seekable:{get:function e(){return ee(r.tech_.seekable())},enumerable:true},timestamp:{get:function e(){return Date.now()},enumerable:true},videoPlaybackQuality:{get:function e(){return r.tech_.getVideoPlaybackQuality()},enumerable:true}});this.tech_.one("canplay",this.masterPlaylistController_.setupFirstPlay.bind(this.masterPlaylistController_));this.tech_.on("bandwidthupdate",function(){if(r.options_.useBandwidthFromLocalStorage){Eo({bandwidth:r.bandwidth,throughput:Math.round(r.throughput)})}});this.masterPlaylistController_.on("selectedinitialmedia",function(){io(r)});this.masterPlaylistController_.sourceUpdater_.on("createdsourcebuffers",function(){r.setupEme_()});this.on(this.masterPlaylistController_,"progress",function(){this.tech_.trigger("progress")});this.on(this.masterPlaylistController_,"firstplay",function(){this.ignoreNextSeekingEvent_=true});this.setupQualityLevels_();if(!this.tech_.el()){return}this.mediaSourceUrl_=l["default"].URL.createObjectURL(this.masterPlaylistController_.mediaSource);this.tech_.src(this.mediaSourceUrl_)};i.setupEme_=function e(){var t=this;var i=this.masterPlaylistController_.mediaTypes_.AUDIO.activePlaylistLoader;var r=So({player:this.player_,sourceKeySystems:this.source_.keySystems,media:this.playlists.media(),audioMedia:i&&i.media()});if(u["default"].browser.IE_VERSION===11||!r){this.masterPlaylistController_.sourceUpdater_.initializedEme();return}this.logger_("waiting for EME key session creation");To({player:this.player_,sourceKeySystems:this.source_.keySystems,audioMedia:i&&i.media(),mainPlaylists:this.playlists.master.playlists}).then(function(){t.logger_("created EME key session");t.masterPlaylistController_.sourceUpdater_.initializedEme()}).catch(function(e){t.logger_("error while creating EME key session",e);t.player_.error({message:"Failed to initialize media keys for EME",code:3})})};i.setupQualityLevels_=function e(){var t=this;var i=u["default"].players[this.tech_.options_.playerId];if(!i||!i.qualityLevels||this.qualityLevels_){return}this.qualityLevels_=i.qualityLevels();this.masterPlaylistController_.on("selectedinitialmedia",function(){yo(t.qualityLevels_,t)});this.playlists.on("mediachange",function(){go(t.qualityLevels_,t.playlists)})};t.version=function e(){return{"@videojs/http-streaming":uo,"mux.js":co,"mpd-parser":fo,"m3u8-parser":ho,"aes-decrypter":po}};i.version=function e(){return this.constructor.version()};i.canChangeType=function e(){return js.canChangeType()};i.play=function e(){this.masterPlaylistController_.play()};i.setCurrentTime=function e(t){this.masterPlaylistController_.setCurrentTime(t)};i.duration=function e(){return this.masterPlaylistController_.duration()};i.seekable=function e(){return this.masterPlaylistController_.seekable()};i.dispose=function t(){if(this.playbackWatcher_){this.playbackWatcher_.dispose()}if(this.masterPlaylistController_){this.masterPlaylistController_.dispose()}
1if(this.qualityLevels_){this.qualityLevels_.dispose()}if(this.player_){delete this.player_.vhs;delete this.player_.dash;delete this.player_.hls}if(this.tech_&&this.tech_.vhs){delete this.tech_.vhs}if(this.tech_){delete this.tech_.hls}if(this.mediaSourceUrl_&&l["default"].URL.revokeObjectURL){l["default"].URL.revokeObjectURL(this.mediaSourceUrl_);this.mediaSourceUrl_=null}e.prototype.dispose.call(this)};i.convertToProgramTime=function e(t,i){return Ye({playlist:this.masterPlaylistController_.media(),time:t,callback:i})};i.seekToProgramTime=function e(t,i,r,n){if(r===void 0){r=true}if(n===void 0){n=2}return Ke({programTime:t,playlist:this.masterPlaylistController_.media(),retryCount:n,pauseAfterSeek:r,seekTo:this.options_.seekTo,tech:this.options_.tech,callback:i})};return t}(wo);var Io={name:"videojs-http-streaming",VERSION:uo,canHandleSource:function e(t,i){if(i===void 0){i={}}var r=u["default"].mergeOptions(u["default"].options,i);return Io.canPlayType(t.type,r)},handleSource:function e(t,i,r){if(r===void 0){r={}}var n=u["default"].mergeOptions(u["default"].options,r);i.vhs=new Co(t,i,n);if(!u["default"].hasOwnProperty("hls")){Object.defineProperty(i,"hls",{get:function e(){u["default"].log.warn("player.tech().hls is deprecated. Use player.tech().vhs instead.");return i.vhs},configurable:true})}i.vhs.xhr=Ee();i.vhs.src(t.src,t.type);return i.vhs},canPlayType:function e(t,i){if(i===void 0){i={}}var r=u["default"].mergeOptions(u["default"].options,i),n=r.vhs.overrideNative,a=n===void 0?!u["default"].browser.IS_ANY_SAFARI:n;var s=Ae(t);var o=s&&(!vo.supportsTypeNatively(s)||a);return o?"maybe":""}};var Ao=function e(){return Ta("avc1.4d400d,mp4a.40.2")};if(Ao()){u["default"].getTech("Html5").registerSourceHandler(Io,0)}u["default"].VhsHandler=Co;Object.defineProperty(u["default"],"HlsHandler",{get:function e(){u["default"].log.warn("videojs.HlsHandler is deprecated. Use videojs.VhsHandler instead.");return Co},configurable:true});u["default"].VhsSourceHandler=Io;Object.defineProperty(u["default"],"HlsSourceHandler",{get:function e(){u["default"].log.warn("videojs.HlsSourceHandler is deprecated. "+"Use videojs.VhsSourceHandler instead.");return Io},configurable:true});u["default"].Vhs=vo;Object.defineProperty(u["default"],"Hls",{get:function e(){u["default"].log.warn("videojs.Hls is deprecated. Use videojs.Vhs instead.");return vo},configurable:true});if(!u["default"].use){u["default"].registerComponent("Hls",vo);u["default"].registerComponent("Vhs",vo)}u["default"].options.vhs=u["default"].options.vhs||{};u["default"].options.hls=u["default"].options.hls||{};if(u["default"].registerPlugin){u["default"].registerPlugin("reloadSourceOnError",lo)}else{u["default"].plugin("reloadSourceOnError",lo)}t.LOCAL_STORAGE_KEY=mo;t.Vhs=vo;t.VhsHandler=Co;t.VhsSourceHandler=Io;t.emeKeySystems=_o;t.expandDataUri=jo;t.getAllPsshKeySystemsOptions=bo;t.setupEmeOptions=So;t.simpleTypeFromSourceType=Ae;t.waitForKeySessionCreation=To;Object.defineProperty(t,"__esModule",{value:true})});s.Vhs.EXPERIMENTAL_MAX_BUFFER_LOW_WATER_LINE=30;s.Vhs.BUFFER_HIGH_WATER_LINE=20;(function(){if(s.getPlugin("perSourceBehaviors")){return}(function(e,t){typeof exports==="object"&&typeof module!=="undefined"?module.exports=t(require("video.js")):typeof i==="function"&&i.amd?i(["video.js"],t):e.videojsPerSourceBehaviors=t(e.videojs)})(typeof self!=="undefined"?self:this,function(e){"use strict";e=e&&e.hasOwnProperty("default")?e["default"]:e;var t="2.1.0";var i=e.getTech("Html5");var r=e.registerPlugin||e.plugin;var n=["abort","emptied","loadstart","play"];var a=["abort","emptied"];var s=["ad-playback","ads-ready?","postroll?","preroll?"];var o=function e(t){return s.indexOf(t)>-1};var l=function e(t){return t.usingPlugin("ads")&&typeof t.ads.inAdBreak==="function"};var u=function e(t,i){if(!t.usingPlugin("ads")){return false}if(l(t)){return t.ads.isInAdMode()&&i.type!=="loadstart"}return o(t.ads.state)};var c=function r(){var s=this;var o=[];var l;var c=false;var d;var f=true;var h=function t(i){return function(t,r){var n=this;if(this.perSourceBehaviors.disabled()){return}var a=arguments.length===2;var s=this.currentSrc();var l=[t];var u=e.bind(a?this:t,arguments[arguments.length-1]);var c=function e(){var t=n.currentSrc()!==s;if(n.perSourceBehaviors.disabled()){return}if(t||i){n.off.apply(n,l)}if(!t){u.apply(void 0,arguments)}};c.guid=u.guid;if(!a){l.push(r)}l.push(c);o.push(l);return this.on.apply(this,l)}};this.perSourceBehaviors={disable:e.bind(this,function e(){this.clearTimeout(d);d=null;c=true;return c}),disabled:function e(){return c},enable:function e(){c=false;return c},enabled:function e(){return!c},isSrcStable:function e(){return f},VERSION:t};this.onPerSrc=h();this.onePerSrc=h(true);this.on("dispose",function(){o.length=0});this.on(n,function(e){if(s.perSourceBehaviors.disabled()||d||u(s,e)){return}if(f&&a.indexOf(e.type)>-1){f=false;s.trigger("sourceunstable")}var t=[];var r=function e(i){return t.push({time:D'),t[0].s.push('.forEach(function(e){return s.off.apply(s,e)});o.length=0;s.trigger("sourcechanged",{interimEvents:t,from:l,to:e});l=e}},1)})};c.VERSION=t;r("perSourceBehaviors",c);return c})})();
1(function(){if(s.getPlugin("contextmenu")){return}(function(e,t){typeof exports==="object"&&typeof module!=="undefined"?module.exports=t(require("video.js")):typeof i==="function"&&i.amd?i(["video.js"],t):e.videojsContextmenu=t(e.videojs)})(this,function(e){"use strict";e=e&&e.hasOwnProperty("default")?e["default"]:e;var t="2.0.2";var i=e.registerPlugin||e.plugin;var r={cancel:true,sensitivity:10,wait:500,disabled:false};var n="vjs-contextmenu";function a(e,t){if(e.contextmenu.options.disabled){return e}var i={target:e,type:n};["clientX","clientY","pageX","pageY","screenX","screenY"].forEach(function(e){i[e]=t[e]});return e.trigger(i)}function s(e){var t=this.contextmenu.current;if(!t){return}var i=this.contextmenu.options.wait;if(e.type==="touchend"&&Number(new Date)-t.time>=i){a(this,e)}this.contextmenu.current=null}function o(e){var t=this.contextmenu.current;if(!t){return}var i=e.touches[0];var r=this.contextmenu.options.sensitivity;if(i.screenX-t.screenX>r||i.screenY-t.screenY>r){this.contextmenu.current=null}}function l(e){if(this.contextmenu.current){return}var t=e.touches[0];this.contextmenu.current={screenX:t.screenX,screenY:t.screenY,time:Number(new Date)}}function u(e){if(this.contextmenu.options.cancel&&!this.contextmenu.options.disabled){e.preventDefault()}a(this,e);this.off(["touchcancel","touchend"],s);this.off("touchmove",o);this.off("touchstart",l)}function c(t){var i=this;this.contextmenu.options=e.mergeOptions(r,t);this.contextmenu.VERSION="__VERSION__";this.on("contextmenu",u);this.on(["touchcancel","touchend"],s);this.on("touchmove",o);this.on("touchstart",l);this.ready(function(){return i.addClass(n)})}i("contextmenu",c);c.VERSION=t;return c})})();(function(){if(s.getPlugin("contextmenuUI")){return}(function(e,t){typeof exports==="object"&&typeof module!=="undefined"?module.exports=t(require("video.js"),require("global/document"),require("global/window")):typeof i==="function"&&i.amd?i(["video.js","global/document","global/window"],t):e.videojsContextmenuUi=t(e.videojs,e.document,e.window)})(this,function(e,t,i){"use strict";e=e&&e.hasOwnProperty("default")?e["default"]:e;t=t&&t.hasOwnProperty("default")?t["default"]:t;i=i&&i.hasOwnProperty("default")?i["default"]:i;function r(e,t){e.prototype=Object.create(t.prototype);e.prototype.constructor=e;e.__proto__=t}function n(e){if(e===void 0){throw new ReferenceError("this hasn\'t been initialised - super() hasn\'t been called")}return e}var a=e.getComponent("MenuItem");var s=function(e){r(t,e);function t(){return e.apply(this,arguments)||this}var n=t.prototype;n.handleClick=function t(r){var n=this;e.prototype.handleClick.call(this);this.options_.listener();i.setTimeout(function(){n.player().contextmenuUI.menu.dispose()},1)};return t}(a);var o=e.getComponent("Menu");var l=e.dom||e;var u=function(t){r(a,t);function a(r,a){var o;o=t.call(this,r,a)||this;o.dispose=e.bind(n(o),o.dispose);a.content.forEach(function(t){var n=function e(){};if(typeof t.listener==="function"){n=t.listener}else if(typeof t.href==="string"){n=function e(){return i.open(t.href)}}o.addItem(new s(r,{label:t.label,listener:e.bind(r,n)}))});return o}var o=a.prototype;o.createEl=function e(){var i=t.prototype.createEl.call(this);l.addClass(i,"vjs-contextmenu-ui-menu");i.style.left=this.options_.position.left+"px";i.style.top=this.options_.position.top+"px";return i};return a}(o);function c(e){var r;if(e.getBoundingClientRect&&e.parentNode){r=e.getBoundingClientRect()}if(!r){return{left:0,top:0}}var n=t.documentElement;var a=t.body;var s=n.clientLeft||a.clientLeft||0;var o=i.pageXOffset||a.scrollLeft;var l=r.left+o-s;var u=n.clientTop||a.clientTop||0;var c=i.pageYOffset||a.scrollTop;var d=r.top+c-u;return{left:Math.round(l),top:Math.round(d)}}function d(e,t){var i={};var r=c(e);var n=e.offsetWidth;var a=e.offsetHeight;var s=r.top;var o=r.left;var l=t.pageY;var u=t.pageX;if(t.changedTouches){u=t.changedTouches[0].pageX;l=t.changedTouches[0].pageY}i.y=Math.max(0,Math.min(1,(s-l+a)/a));i.x=Math.max(0,Math.min(1,(u-o)/n));return i}var f="5.2.0";
1function h(e){return e.hasOwnProperty("contextmenuUI")&&e.contextmenuUI.hasOwnProperty("menu")&&e.contextmenuUI.menu.el()}function p(e){var t=e.tagName.toLowerCase();return t==="input"||t==="textarea"}function v(e,t){return{left:Math.round(t.width*e.x),top:Math.round(t.height-t.height*e.y)}}function m(i){var r=this;if(h(this)){this.contextmenuUI.menu.dispose();return}if(this.contextmenuUI.options_.excludeElements(i.target)){return}var n=d(this.el(),i);var a=this.el().getBoundingClientRect();var s=v(n,a);var o=e.browser.IS_FIREFOX?t.documentElement:t;i.preventDefault();var l=this.contextmenuUI.menu=new u(this,{content:this.contextmenuUI.content,position:s});this.contextmenuUI.closeMenu=function(){e.log.warn("player.contextmenuUI.closeMenu() is deprecated, please use player.contextmenuUI.menu.dispose() instead!");l.dispose()};l.on("dispose",function(){e.off(o,["click","tap"],l.dispose);r.removeChild(l);delete r.contextmenuUI.menu});this.addChild(l);var c=l.el_.getBoundingClientRect();var f=t.body.getBoundingClientRect();if(this.contextmenuUI.keepInside||c.right>f.width||c.bottom>f.height){l.el_.style.left=Math.floor(Math.min(s.left,this.player_.currentWidth()-l.currentWidth()))+"px";l.el_.style.top=Math.floor(Math.min(s.top,this.player_.currentHeight()-l.currentHeight()))+"px"}e.on(o,["click","tap"],l.dispose)}function g(t){var i=this;var r={keepInside:true,excludeElements:p};t=e.mergeOptions(r,t);if(!Array.isArray(t.content)){throw new Error(\'"content" required\')}if(h(this)){this.contextmenuUI.menu.dispose();this.off("contextmenu",this.contextmenuUI.onContextMenu);delete this.contextmenuUI}var n=this.contextmenuUI=function(){g.apply(this,arguments)};n.onContextMenu=e.bind(this,m);n.content=t.content;n.keepInside=t.keepInside;n.options_=t;n.VERSION=f;this.on("contextmenu",n.onContextMenu);this.ready(function(){return i.addClass("vjs-contextmenu-ui")})}e.registerPlugin("contextmenuUI",g);g.VERSION=f;return g})})();(function(){if(s.getPlugin("bcAnalytics")){return}(function(e,t){typeof exports==="object"&&typeof module!=="undefined"?module.exports=t(require("global/window"),require("global/document"),require("video.js"),require("@brightcove/loscore")):typeof i==="function"&&i.amd?i(["global/window","global/document","video.js","@brightcove/loscore"],t):(e=e||self,e.videojsBcAnalytics=t(e.window,e.document,e.videojs,e.videojs.bc_))})(this,function(e,t,i,r){"use strict";e=e&&e.hasOwnProperty("default")?e["default"]:e;t=t&&t.hasOwnProperty("default")?t["default"]:t;i=i&&i.hasOwnProperty("default")?i["default"]:i;r=r&&r.hasOwnProperty("default")?r["default"]:r;var n=function(e,t,i){if(i===void 0){i={}}t.forEach(function(t){if(e[t]!==undefined){i[t]=e[t]}});return i};var a=function e(t,n){if(n===void 0){n=[]}var a={};Object.keys(t).forEach(function(s){var o=t[s];n.push(s);if(r.isObj(o)){a=i.mergeOptions(a,e(o,n))}else{a[n.join(".")]=o}n.pop()});return a};var s=function e(t){return t.charAt(0).toUpperCase()+t.slice(1)};var o=function e(t,i){return t+"x"+i};var l={memory:["jsHeapSizeLimit","usedJSHeapSize","totalJSHeapSize"],navigation:["redirectCount","type","directedMigration"],timing:["loadEventEnd","loadEventStart","domComplete","domContentLoadedEventEnd","domContentLoadedEventStart","domInteractive","domLoading","responseEnd","responseStart","requestStart","secureConnectionStart","connectEnd","connectStart","domainLookupEnd","domainLookupStart","fetchStart","redirectEnd","redirectStart","unloadEventEnd","unloadEventStart","navigationStart"]};var u={bitrate:"bitrates",event:"events"};var c=function(){function t(){this.data_={bitrates:{bitrates:[],playlists:[],rendered:[],throughput:[]},events:[],mr:0,performance:{},content:{},player:{dimensions:[],pixelratio:[],screendimensions:[]},frames:{}}}var c=t.prototype;c.keys=function e(){return Object.keys(this.data_)};c.append=function e(t){t=u.hasOwnProperty(t)?u[t]:t;if(!this.data_.hasOwnProperty(t)){throw new Error(\'"\'+t+\'" is not a known QosBuffer key\')}for(var i=arguments.length,r=new Array(i>1?i-1:0),n=1;n<i;n++){r[n-1]=arguments[n]}this["append"+s(t)+"_"].apply(this,r)};c.flush=function e(){var t=this;for(var n=arguments.length,a=new Array(n),o=0;o<n;o++){a[o]=arguments[o]}if(!a.length){a=this.keys()}for(var l=0;l<a.length;l++){if(!this.data_.hasOwnProperty(a[l])){throw new Error(\'"\'+a[l]+\'" is not a known QosBuffer key\')}}var u=a.map(function(e){return t["flush"+s(e)+"_"]()});var c=i.mergeOptions.apply(i,u);var d=r.qs().stringify(c).length;if(d>3e3&&c["qos.bitrates"]){c["qos.bitrates"]=JSON.stringify({bitrates:[],playlists:[],rendered:[],throughput:[]})}return c};c.appendBitrates_=function e(t){var i=this;if(typeof t.playlists!=="undefined"){this.data_.bitrates.playlists.push([Date.now(),t.bitrates,t.playlists]);delete t.bitrates;delete t.playlists}Object.keys(t).forEach(function(e){i.data_.bitrates[e].push([Date.now(),t[e]])})};c.appendMr_=function e(t){this.data_.mr=t?1:null};c.appendPerformance_=function t(i){var a=this;var s=e.performance;if(r.isNil(s)){return}Object.keys(l).forEach(function(e){if(!r.isNil(s[e])){a.data_.performance[e]=n(s[e],l[e])}});if(r.isFn(s.measure)){["bcParse","bcInit"].forEach(function(e){s.getEntriesByName(e,"measure").forEach(function(t){a.data_.performance[e]=t.duration})})}if(this.data_.performance.navigation){this.data_.performance.navigation.directedMigration=i?r.qs().parse(i).directedMigration==="true":false}};c.appendFrames_=function e(t){this.data_.frames={dropped:t.droppedVideoFrames,corrupted:t.corruptedVideoFrames,total:t.totalVideoFrames}};c.appendPlayer_=function t(i,r){if(r===void 0){r=Date.now()}this.data_.player.dimensions.push([r,o(i.width,i.height),o(i.computedWidth,i.c
1omputedHeight)]);this.data_.player.pixelratio.push([r,e.devicePixelRatio]);this.data_.player.screendimensions.push([r,o(e.screen.width,e.screen.height)])};c.appendEvents_=function e(){for(var t=arguments.length,i=new Array(t),r=0;r<t;r++){i[r]=arguments[r]}this.data_.events.push({type:i.join("."),time:Date.now()})};c.appendContent_=function e(t){this.data_.content={sourceMimeType:t.sourceMimeType}};c.flushBitrates_=function e(){var t=this.data_.bitrates;var i={};if(t.bitrates.length||t.playlists.length||t.rendered.length||t.throughput.length){i["qos.bitrates"]=JSON.stringify(t)}t.bitrates.length=0;t.playlists.length=0;t.rendered.length=0;t.throughput.length=0;return i};c.flushEvents_=function e(){var t=this.data_.events;var i={};t.forEach(function(e){var t=e.time,r=e.type;var n="qos.events."+r;if(Array.isArray(i[n])){i[n].push(t)}else if(i.hasOwnProperty(n)){i[n]=[i[n],t]}else{i[n]=t}});Object.keys(i).forEach(function(e){if(Array.isArray(i[e])){i[e]=JSON.stringify(i[e])}});t.length=0;return i};c.flushMr_=function e(){return{"qos.mr":this.data_.mr}};c.flushFrames_=function e(){var t=a(this.data_.frames,["qos","frames"]);this.data_.frames={};return t};c.flushPerformance_=function e(){return a(this.data_.performance,["qos","performance"])};c.flushPlayer_=function e(){var t=this.data_.player;var i={};Object.keys(t).forEach(function(e){var r=t[e];if(r.length){i["qos.player."+e]=JSON.stringify(r);r.length=0}});return i};c.flushContent_=function e(){return a(this.data_.content,["qos","content"])};return t}();var d=["ad-playback","ads-ready?","postroll?","preroll?"];var f=function e(t){return t.usingPlugin("ads")?t.ads.state:undefined};var h=function e(t){return t.usingPlugin("ads")&&!!t.adonly};var p=function e(t){return d.indexOf(t)>-1};var v=function e(t){return t.usingPlugin("ads")&&r.isFn(t.ads.inAdBreak)};var m=function e(t){if(!t.usingPlugin("ads")){return false}if(h(t)){return true}if(v(t)){return t.ads.isInAdMode()}return p(t.ads.state)};var g=function e(t){if(!t.usingPlugin("ads")){return false}return t.ads.isContentResuming()};var y=function e(t,i){if(v(i)&&t&&t.type==="loadstart"){return true}return!m(i)};var _=function e(t){var i={};if(t.ima3){var a=t.ima3.currentAdEventInfo;i.plugin="ima3";if(r.isFn(t.ima3)){return i}i.pluginVersion=t.ima3.VERSION||t.ima3.version;i.adTech=t.ima3.adTech;i.requestMode=t.ima3.settings.requestMode;i.timeout=t.ima3.settings.timeout;if(a){n(a,["adType","adPodLength","adPodId","creativeFormat","creativeLength","creativeId","creativeIndex","advertiserName","wrapperCreativeIds","dealId","adId","adTitle","adSystem","creativeAdId"],i);var s=a.creativeIndex;if(s&&s.length){i.firstPlayedAdIndex=s[0]}i.startedInAdPod=a.started;i.completedInAdPod=a.completed}}else if(t.FreeWheelPlugin){i.plugin="freewheel";if(r.isFn(t.FreeWheelPlugin)){return i}i.pluginVersion=t.FreeWheelPlugin.VERSION||t.FreeWheelPlugin.getVersion()}return i};var b=function e(t){t.adBreakIndex=null;t.hasAdBreakStarted=false;t["ads-request"]=null;t["ads-response-received"]=null;t["ads-loading"]=[];t["ads-ad-started"]=[];t["ads-ad-ended"]=[]};var T=function e(){var t={};b(t);return t};var S=function e(t,i,r){var n=t.currentAdSequence_;var a=["ads-loading","ads-ad-started","ads-ad-ended"];if(i==="ads-request"){b(n)}else if(i==="adstart"||i==="ads-loading"){if(!n.hasAdBreakStarted){if(n.adBreakIndex===null){n.adBreakIndex=0}else{n.adBreakIndex++}n.hasAdBreakStarted=true;a.forEach(function(e){n[e].push([])})}}else if(i==="adend"){n.hasAdBreakStarted=false}if(a.indexOf(i)>-1){n[i][n.adBreakIndex].push(r)}else if(i==="ads-request"||i==="ads-response-received"){n[i]=r}};var k="sendBeacon"in e.navigator;var E=e.Set;var j="lbu";var w=4e3;var C=new E;["account","domain","event","player"].forEach(function(e){return C.add(e)});var I=new E;["account","catalog_url","destination","domain","dropped_frames","error_code","event","feature","file_size_bytes","forward_buffer_seconds","load_time_ms","measured_bps","platform","platform_version","player","player_height","player_name","player_width","range","rebuffering_count","rebuffering_seconds","rendition_height","rendition_indicated_bps","rendition_mime_type","rendition_url","rendition_width","response_time_ms","session","start_time_ms","source","time","video","video_duration","video_name","video_seconds_viewed"].forEach(function(e){return I.add(e)});var A=function e(t,i){return Math.floor(t)+".."+(Math.floor(i)-1)};var x=function e(t){var i=2166136261;var r=i;for(var n=0;n<t.length;++n){r^=t.charCodeAt(n);r*=16777619}return r>>>0};var P=function e(t,i,r,n){var a="players.brightcove.com/"+t+"/"+i+"_"+r;if(n){a+="/"+n}return a};var O=function e(t,i){var n=r.qs();
1Object.keys(i).forEach(function(e){if(r.isNil(i[e])){delete i[e]}});var a=t+"?"+n.stringify(i);if(a.length<=w){return a}Object.keys(i).forEach(function(e){if(!I.has(e)){delete i[e]}});i.usage=j;return t+"?"+n.stringify(i)};var L=function e(t,i,r,n,a){var s=i-t;if(a!==undefined&&a<i){s-=a-t}else if(r!==undefined&&n!==undefined){if(r<t){r=t}if(n>i){n=i}s-=n-r}return s};var D=function e(t){for(var r=arguments.length,n=new Array(r>1?r-1:0),a=1;a<r;a++){n[a-1]=arguments[a]}var s=i.mergeOptions.apply(i,[t.params||{}].concat(n));delete t.params;return s};var R=function e(t,i){var n=t.mediainfo;var a=n&&n.duration||t.duration();if(n){if(i.video===undefined){i.video=n.id}if(i.video_name===undefined){i.video_name=n.name}}if(r.isNum(a)&&i.video_duration===undefined){i.video_duration=Math.floor(a);if(i.video_duration<1||i.video_duration===Infinity){i.video_duration=null}}return i};var N=function e(t,i){var r=t.preload();if(typeof r!=="string"){r=t.el().getAttribute("preload")}if(typeof r==="string"&&r.length===0){r="auto"}if(r){i.preload=r}};var M=function(){function a(e,t,i,r){if(r===void 0){r={}}this.baseUrl_=i;this.logger_=r.logger;this.history_=t;this.currentAdSequence_=T();this.player_=e;this.metrics_=[];this.playerId=r.playerId;this.embedId=r.embedId;this.applicationId=r.applicationId;this.eventCount_=0;this.streamCount_=-1;this.hashUser_=true;this.playerUrl_=null;this.user(r.user||null);this.device(r.device||null);this.corpCommsApp(r.corpCommsApp||null);this.defaultParams_={domain:"videocloud",platform:"video-js",session:""};for(var n=0;n<3;n++){this.defaultParams_.session+=(Math.random()*4294967295>>>0).toString(16)}this.qos=new c(this);this.resetTimesOf()}var s=a.prototype;s.logger=function e(){if(this.logger_);};s.metrics=function e(){return this.metrics_.map(i.mergeOptions)};s.resetTimesOf'),t[1].s.push('ate.now(),event:i})};r(e);s.on(i.Events,r);d=s.setTimeout(function(){var e=s.currentSrc();f=true;d=null;s.off(i.Events,r);if(e&&e!==l){o.forEach(function(e){return s.off.apply(s,e)});o.length=0;s.trigger("sourcechanged",{interimEvents:t,from:l,to:e});l=e}},1)})};c.VERSION=t;r("perSourceBehaviors",c);return c})})();(function(){if(s.getPlugin("contextmenu")){return}(function(e,t){typeof exports==="object"&&typeof module!=="undefined"?module.exports=t(require("video.js")):typeof i==="function"&&i.amd?i(["video.js"],t):e.videojsContextmenu=t(e.videojs)})(this,function(e){"use strict";e=e&&e.hasOwnProperty("default")?e["default"]:e;var t="2.0.2";var i=e.registerPlugin||e.plugin;var r={cancel:true,sensitivity:10,wait:500,disabled:false};var n="vjs-contextmenu";function a(e,t){if(e.contextmenu.options.disabled){return e}var i={target:e,type:n};["clientX","clientY","pageX","pageY","screenX","screenY"].forEach(function(e){i[e]=t[e]});return e.trigger(i)}function s(e){var t=this.contextmenu.current;if(!t){return}var i=this.contextmenu.options.wait;if(e.type==="touchend"&&Number(new Date)-t.time>=i){a(this,e)}this.contextmenu.current=null}function o(e){var t=this.contextmenu.current;if(!t){return}var i=e.touches[0];var r=this.contextmenu.options.sensitivity;if(i.screenX-t.screenX>r||i.screenY-t.screenY>r){this.contextmenu.current=null}}function l(e){if(this.contextmenu.current){return}var t=e.touches[0];this.contextmenu.current={screenX:t.screenX,screenY:t.screenY,time:Number(new Date)}}function u(e){if(this.contextmenu.options.cancel&&!this.contextmenu.options.disabled){e.preventDefault()}a(this,e);this.off(["touchcancel","touchend"],s);this.off("touchmove",o);this.off("touchstart",l)}function c(t){var i=this;this.contextmenu.options=e.mergeOptions(r,t);this.contextmenu.VERSION="__VERSION__";this.on("contextmenu",u);this.on(["touchcancel","touchend"],s);this.on("touchmove",o);this.on("touchstart",l);this.ready(function(){return i.addClass(n)})}i("contextmenu",c);c.VERSION=t;return c})})();(function(){if(s.getPlugin("contextmenuUI")){return}(function(e,t){typeof exports==="object"&&typeof module!=="undefined"?module.exports=t(require("video.js"),require("global/document"),require("global/window")):typeof i==="function"&&i.amd?i(["video.js","global/document","global/window"],t):e.videojsContextmenu
1Ui=t(e.videojs,e.document,e.window)})(this,function(e,t,i){"use strict";e=e&&e.hasOwnProperty("default")?e["default"]:e;t=t&&t.hasOwnProperty("default")?t["default"]:t;i=i&&i.hasOwnProperty("default")?i["default"]:i;function r(e,t){e.prototype=Object.create(t.prototype);e.prototype.constructor=e;e.__proto__=t}function n(e){if(e===void 0){throw new ReferenceError("this hasn\'t been initialised - super() hasn\'t been called")}return e}var a=e.getComponent("MenuItem");var s=function(e){r(t,e);function t(){return e.apply(this,arguments)||this}var n=t.prototype;n.handleClick=function t(r){var n=this;e.prototype.handleClick.call(this);this.options_.listener();i.setTimeout(function(){n.player().contextmenuUI.menu.dispose()},1)};return t}(a);var o=e.getComponent("Menu");var l=e.dom||e;var u=function(t){r(a,t);function a(r,a){var o;o=t.call(this,r,a)||this;o.dispose=e.bind(n(o),o.dispose);a.content.forEach(function(t){var n=function e(){};if(typeof t.listener==="function"){n=t.listener}else if(typeof t.href==="string"){n=function e(){return i.open(t.href)}}o.addItem(new s(r,{label:t.label,listener:e.bind(r,n)}))});return o}var o=a.prototype;o.createEl=function e(){var i=t.prototype.createEl.call(this);l.addClass(i,"vjs-contextmenu-ui-menu");i.style.left=this.options_.position.left+"px";i.style.top=this.options_.position.top+"px";return i};return a}(o);function c(e){var r;if(e.getBoundingClientRect&&e.parentNode){r=e.getBoundingClientRect()}if(!r){return{left:0,top:0}}var n=t.documentElement;var a=t.body;var s=n.clientLeft||a.clientLeft||0;var o=i.pageXOffset||a.scrollLeft;var l=r.left+o-s;var u=n.clientTop||a.clientTop||0;var c=i.pageYOffset||a.scrollTop;var d=r.top+c-u;return{left:Math.round(l),top:Math.round(d)}}function d(e,t){var i={};var r=c(e);var n=e.offsetWidth;var a=e.offsetHeight;var s=r.top;var o=r.left;var l=t.pageY;var u=t.pageX;if(t.changedTouches){u=t.changedTouches[0].pageX;l=t.changedTouches[0].pageY}i.y=Math.max(0,Math.min(1,(s-l+a)/a));i.x=Math.max(0,Math.min(1,(u-o)/n));return i}var f="5.2.0";function h(e){return e.hasOwnProperty("contextmenuUI")&&e.contextmenuUI.hasOwnProperty("menu")&&e.contextmenuUI.menu.el()}function p(e){var t=e.tagName.toLowerCase();return t==="input"||t==="textarea"}function v(e,t){return{left:Math.round(t.width*e.x),top:Math.round(t.height-t.height*e.y)}}function m(i){var r=this;if(h(this)){this.contextmenuUI.menu.dispose();return}if(this.contextmenuUI.options_.excludeElements(i.target)){return}var n=d(this.el(),i);var a=this.el().getBoundingClientRect();var s=v(n,a);var o=e.browser.IS_FIREFOX?t.documentElement:t;i.preventDefault();var l=this.contextmenuUI.menu=new u(this,{content:this.contextmenuUI.content,position:s});this.contextmenuUI.closeMenu=function(){e.log.warn("player.contextmenuUI.closeMenu() is deprecated, please use player.contextmenuUI.menu.dispose() instead!");l.dispose()};l.on("dispose",function(){e.off(o,["click","tap"],l.dispose);r.removeChild(l);delete r.contextmenuUI.menu});this.addChild(l);var c=l.el_.getBoundingClientRect();var f=t.body.getBoundingClientRect();if(this.contextmenuUI.keepInside||c.right>f.width||c.bottom>f.height){l.el_.style.left=Math.floor(Math.min(s.left,this.player_.currentWidth()-l.currentWidth()))+"px";l.el_.style.top=Math.floor(Math.min(s.top,this.player_.currentHeight()-l.currentHeight()))+"px"}e.on(o,["click","tap"],l.dispose)}function g(t){var i=this;var r={keepInside:true,excludeElements:p};t=e.mergeOptions(r,t);if(!Array.isArray(t.content)){throw new Error(\'"content" required\')}if(h(this)){this.contextmenuUI.menu.dispose();this.off("contextmenu",this.contextmenuUI.onContextMenu);delete this.contextmenuUI}var n=this.contextmenuUI=function(){g.apply(this,arguments)};n.onContextMenu=e.bind(this,m);n.content=t.content;n.keepInside=t.keepInside;n.options_=t;n.VERSION=f;this.on("contextmenu",n.onContextMenu);this.ready(function(){return i.addClass("vjs-contextmenu-ui")})}e.registerPlugin("contextmenuUI",g);g.VERSION=f;return g})})();(function(){if(s.getPlugin("bcAnalytics")){return}(function(e,t){typeof exports==="object"&&typeof module!=="undefined"?module.exports=t(require("global/window"),require("global/document"),require("video.js"),require("@brightcove/loscore")):typeof i==="function"&&i.amd?i(["global/window","global/document","video.js","@brightcove/loscore"],t):(e=e||self,e.videojsBcAnalytics=t(e.window,e.document,e.videojs,e.videojs.bc_))})(this,function(e,t,i,r){"use strict";e=e&&e.hasOwnProperty("default")?e["default"]:e;t=t&&t.hasOwnProperty("default")?t["default"]:t;i=i&&i.hasOwnProperty("default")?i["default"]:i;r=r&&r.hasOwnProperty("default")?r["default"]:r;var n=function(e,t,i){if(i===void 0){i={}}
1t.forEach(function(t){if(e[t]!==undefined){i[t]=e[t]}});return i};var a=function e(t,n){if(n===void 0){n=[]}var a={};Object.keys(t).forEach(function(s){var o=t[s];n.push(s);if(r.isObj(o)){a=i.mergeOptions(a,e(o,n))}else{a[n.join(".")]=o}n.pop()});return a};var s=function e(t){return t.charAt(0).toUpperCase()+t.slice(1)};var o=function e(t,i){return t+"x"+i};var l={memory:["jsHeapSizeLimit","usedJSHeapSize","totalJSHeapSize"],navigation:["redirectCount","type","directedMigration"],timing:["loadEventEnd","loadEventStart","domComplete","domContentLoadedEventEnd","domContentLoadedEventStart","domInteractive","domLoading","responseEnd","responseStart","requestStart","secureConnectionStart","connectEnd","connectStart","domainLookupEnd","domainLookupStart","fetchStart","redirectEnd","redirectStart","unloadEventEnd","unloadEventStart","navigationStart"]};var u={bitrate:"bitrates",event:"events"};var c=function(){function t(){this.data_={bitrates:{bitrates:[],playlists:[],rendered:[],throughput:[]},events:[],mr:0,performance:{},content:{},player:{dimensions:[],pixelratio:[],screendimensions:[]},frames:{}}}var c=t.prototype;c.keys=function e(){return Object.keys(this.data_)};c.append=function e(t){t=u.hasOwnProperty(t)?u[t]:t;if(!this.data_.hasOwnProperty(t)){throw new Error(\'"\'+t+\'" is not a known QosBuffer key\')}for(var i=arguments.length,r=new Array(i>1?i-1:0),n=1;n<i;n++){r[n-1]=arguments[n]}this["append"+s(t)+"_"].apply(this,r)};c.flush=function e(){var t=this;for(var n=arguments.length,a=new Array(n),o=0;o<n;o++){a[o]=arguments[o]}if(!a.length){a=this.keys()}for(var l=0;l<a.length;l++){if(!this.data_.hasOwnProperty(a[l])){throw new Error(\'"\'+a[l]+\'" is not a known QosBuffer key\')}}var u=a.map(function(e){return t["flush"+s(e)+"_"]()});var c=i.mergeOptions.apply(i,u);var d=r.qs().stringify(c).length;if(d>3e3&&c["qos.bitrates"]){c["qos.bitrates"]=JSON.stringify({bitrates:[],playlists:[],rendered:[],throughput:[]})}return c};c.appendBitrates_=function e(t){var i=this;if(typeof t.playlists!=="undefined"){this.data_.bitrates.playlists.push([Date.now(),t.bitrates,t.playlists]);delete t.bitrates;delete t.playlists}Object.keys(t).forEach(function(e){i.data_.bitrates[e].push([Date.now(),t[e]])})};c.appendMr_=function e(t){this.data_.mr=t?1:null};c.appendPerformance_=function t(i){var a=this;var s=e.performance;if(r.isNil(s)){return}Object.keys(l).forEach(function(e){if(!r.isNil(s[e])){a.data_.performance[e]=n(s[e],l[e])}});if(r.isFn(s.measure)){["bcParse","bcInit"].forEach(function(e){s.getEntriesByName(e,"measure").forEach(function(t){a.data_.performance[e]=t.duration})})}if(this.data_.performance.navigation){this.data_.performance.navigation.directedMigration=i?r.qs().parse(i).directedMigration==="true":false}};c.appendFrames_=function e(t){this.data_.frames={dropped:t.droppedVideoFrames,corrupted:t.corruptedVideoFrames,total:t.totalVideoFrames}};c.appendPlayer_=function t(i,r){if(r===void 0){r=Date.now()}this.data_.player.dimensions.push([r,o(i.width,i.height),o(i.computedWidth,i.computedHeight)]);this.data_.player.pixelratio.push([r,e.devicePixelRatio]);this.data_.player.screendimensions.push([r,o(e.screen.width,e.screen.height)])};c.appendEvents_=function e(){for(var t=arguments.length,i=new Array(t),r=0;r<t;r++){i[r]=arguments[r]}this.data_.events.push({type:i.join("."),time:Date.now()})};c.appendContent_=function e(t){this.data_.content={sourceMimeType:t.sourceMimeType}};c.flushBitrates_=function e(){var t=this.data_.bitrates;var i={};if(t.bitrates.length||t.playlists.length||t.rendered.length||t.throughput.length){i["qos.bitrates"]=JSON.stringify(t)}t.bitrates.length=0;t.playlists.length=0;t.rendered.length=0;t.throughput.length=0;return i};c.flushEvents_=function e(){var t=this.data_.events;var i={};t.forEach(function(e){var t=e.time,r=e.type;var n="qos.events."+r;if(Array.isArray(i[n])){i[n].push(t)}else if(i.hasOwnProperty(n)){i[n]=[i[n],t]}else{i[n]=t}});
1Object.keys(i).forEach(function(e){if(Array.isArray(i[e])){i[e]=JSON.stringify(i[e])}});t.length=0;return i};c.flushMr_=function e(){return{"qos.mr":this.data_.mr}};c.flushFrames_=function e(){var t=a(this.data_.frames,["qos","frames"]);this.data_.frames={};return t};c.flushPerformance_=function e(){return a(this.data_.performance,["qos","performance"])};c.flushPlayer_=function e(){var t=this.data_.player;var i={};Object.keys(t).forEach(function(e){var r=t[e];if(r.length){i["qos.player."+e]=JSON.stringify(r);r.length=0}});return i};c.flushContent_=function e(){return a(this.data_.content,["qos","content"])};return t}();var d=["ad-playback","ads-ready?","postroll?","preroll?"];var f=function e(t){return t.usingPlugin("ads")?t.ads.state:undefined};var h=function e(t){return t.usingPlugin("ads")&&!!t.adonly};var p=function e(t){return d.indexOf(t)>-1};var v=function e(t){return t.usingPlugin("ads")&&r.isFn(t.ads.inAdBreak)};var m=function e(t){if(!t.usingPlugin("ads")){return false}if(h(t)){return true}if(v(t)){return t.ads.isInAdMode()}return p(t.ads.state)};var g=function e(t){if(!t.usingPlugin("ads")){return false}return t.ads.isContentResuming()};var y=function e(t,i){if(v(i)&&t&&t.type==="loadstart"){return true}return!m(i)};var _=function e(t){var i={};if(t.ima3){var a=t.ima3.currentAdEventInfo;i.plugin="ima3";if(r.isFn(t.ima3)){return i}i.pluginVersion=t.ima3.VERSION||t.ima3.version;i.adTech=t.ima3.adTech;i.requestMode=t.ima3.settings.requestMode;i.timeout=t.ima3.settings.timeout;if(a){n(a,["adType","adPodLength","adPodId","creativeFormat","creativeLength","creativeId","creativeIndex","advertiserName","wrapperCreativeIds","dealId","adId","adTitle","adSystem","creativeAdId"],i);var s=a.creativeIndex;if(s&&s.length){i.firstPlayedAdIndex=s[0]}i.startedInAdPod=a.started;i.completedInAdPod=a.completed}}else if(t.FreeWheelPlugin){i.plugin="freewheel";if(r.isFn(t.FreeWheelPlugin)){return i}i.pluginVersion=t.FreeWheelPlugin.VERSION||t.FreeWheelPlugin.getVersion()}return i};var b=function e(t){t.adBreakIndex=null;t.hasAdBreakStarted=false;t["ads-request"]=null;t["ads-response-received"]=null;t["ads-loading"]=[];t["ads-ad-started"]=[];t["ads-ad-ended"]=[]};var T=function e(){var t={};b(t);return t};var S=function e(t,i,r){var n=t.currentAdSequence_;var a=["ads-loading","ads-ad-started","ads-ad-ended"];if(i==="ads-request"){b(n)}else if(i==="adstart"||i==="ads-loading"){if(!n.hasAdBreakStarted){if(n.adBreakIndex===null){n.adBreakIndex=0}else{n.adBreakIndex++}n.hasAdBreakStarted=true;a.forEach(function(e){n[e].push([])})}}else if(i==="adend"){n.hasAdBreakStarted=false}if(a.indexOf(i)>-1){n[i][n.adBreakIndex].push(r)}else if(i==="ads-request"||i==="ads-response-received"){n[i]=r}};var k="sendBeacon"in e.navigator;var E=e.Set;var j="lbu";var w=4e3;var C=new E;["account","domain","event","player"].forEach(function(e){return C.add(e)});var I=new E;["account","catalog_url","destination","domain","dropped_frames","error_code","event","feature","file_size_bytes","forward_buffer_seconds","load_time_ms","measured_bps","platform","platform_version","player","player_height","player_name","player_width","range","rebuffering_count","rebuffering_seconds","rendition_height","rendition_indicated_bps","rendition_mime_type","rendition_url","rendition_width","response_time_ms","session","start_time_ms","source","time","video","video_duration","video_name","video_seconds_viewed"].forEach(function(e){return I.add(e)});var A=function e(t,i){return Math.floor(t)+".."+(Math.floor(i)-1)};var x=function e(t){var i=2166136261;var r=i;for(var n=0;n<t.length;++n){r^=t.charCodeAt(n);r*=16777619}return r>>>0};var P=function e(t,i,r,n){var a="players.brightcove.com/"+t+"/"+i+"_"+r;if(n){a+="/"+n}return a};var O=function e(t,i){var n=r.qs();
1Object.keys(i).forEach(function(e){if(r.isNil(i[e])){delete i[e]}});var a=t+"?"+n.stringify(i);if(a.length<=w){return a}Object.keys(i).forEach(function(e){if(!I.has(e)){delete i[e]}});i.usage=j;return t+"?"+n.stringify(i)};var L=function e(t,i,r,n,a){var s=i-t;if(a!==undefined&&a<i){s-=a-t}else if(r!==undefined&&n!==undefined){if(r<t){r=t}if(n>i){n=i}s-=n-r}return s};var D=function e(t){for(var r=arguments.length,n=new Array(r>1?r-1:0),a=1;a<r;a++){n[a-1]=arguments[a]}var s=i.mergeOptions.apply(i,[t.params||{}].concat(n));delete t.params;return s};var R=function e(t,i){var n=t.mediainfo;var a=n&&n.duration||t.duration();if(n){if(i.video===undefined){i.video=n.id}if(i.video_name===undefined){i.video_name=n.name}}if(r.isNum(a)&&i.video_duration===undefined){i.video_duration=Math.floor(a);if(i.video_duration<1||i.video_duration===Infinity){i.video_duration=null}}return i};var N=function e(t,i){var r=t.preload();if(typeof r!=="string"){r=t.el().getAttribute("preload")}if(typeof r==="string"&&r.length===0){r="auto"}if(r){i.preload=r}};var M=function(){function a(e,t,i,r){if(r===void 0){r={}}this.baseUrl_=i;this.logger_=r.logger;this.history_=t;this.currentAdSequence_=T();this.player_=e;this.metrics_=[];this.playerId=r.playerId;this.embedId=r.embedId;this.applicationId=r.applicationId;this.eventCount_=0;this.streamCount_=-1;this.hashUser_=true;this.playerUrl_=null;this.user(r.user||null);this.device(r.device||null);this.corpCommsApp(r.corpCommsApp||null);this.defaultParams_={domain:"videocloud",platform:"video-js",session:""};for(var n=0;n<3;n++){this.defaultParams_.session+=(Math.random()*4294967295>>>0).toString(16)}this.qos=new c(this);this.resetTimesOf()}va'),t[0].s.push('=function e(){this.timeOfImpression=null;this.timeOfView=null};s.defaultParams=function e(t){if(t){if(t.player){this.playerUrl_=t.player}t=r.isFn(t)?t():t;this.defaultParams_=i.mergeOptions(this.defaultParams_,t)}return this.defaultParams_};s.getSession=function e(){return this.defaultParams_.session};s.user=function e(t){if(t===null||r.isNonEmptyStr(t)||r.isNum(t)){this.user_=t;this.hashUser_=true}return this.user_};s.setUser=function e(t){if(t===null||r.isNonEmptyStr(t)){this.user_=t;this.hashUser_=false}};s.getUser=function e(){return this.user_};s.corpCommsApp=function e(t){if(t===null||r.isNonEmptyStr(t)||r.isNum(t)){this.corpCommsApp_=t}return this.corpCommsApp_};s.device=function e(t){if(t===null||r.isNonEmptyStr(t)||r.isNum(t)){this.device_=t}return this.device_};s.player=function e(t){if(t===null||r.isNonEmptyStr(t)){this.defaultParams_.player=t;this.playerUrl_=t}return this.playerUrl_||this.defaultParams_.player};s.send=function n(a,s){var o;if(a===void 0){a={}}if(s===void 0){s={}}if(this.user()){if(this.hashUser_){a.user=x(this.user())}else{a.user=this.user()}}if(this.corpCommsApp()){a.application=this.corpCommsApp();a.user=this.user()||this.device()}if(r.isNil(a.time)){a.time=Date.now()}s.qos=Array.isArray(s.qos)?s.qos:[];s.qos.push("mr");a=i.mergeOptions(this.defaultParams_,a,(o=this.qos).flush.apply(o,s.qos));a.seq=""+this.eventCount_;this.eventCount_++;if("streamCount"in s){a.seq+="_"+s.streamCount}if(typeof this.player_.getAccountId==="function"){var l=this.player_.getAccountId();a.account=l;a.player=this.playerUrl_||P(l,this.playerId,this.embedId,this.applicationId)}C.forEach(function(e){if(r.isNil(a[e])){throw new Error(\'the "\'+e+\'" param is required\')}});var u=O(this.baseUrl_,a);if(s.useSendBeaconOnly){if(k){e.navigator.sendBeacon(u)}else{return null}}else{var c=t.createElement("img");c.src=u}this.metrics_.push(a);this.player_.trigger({params:a,type:"analytics_request"});this.player_.trigger({params:a,type:"analytics_request_"+a.event});return{params:a,url:u}};s.sendCatalog_=function e(t,i){if(i===void 0){i={}}var r=i,n=r.error,a=r.xhr;if(n&&a){n.status=a.status}if(n){t.error=JSON.stringify(n)}return this.send(t,i)};s.sendVideoImpression=function e(t){if(t===void 0){t={}}var n=D(t,{event:"video_impression"});var a=_(this.player_);if(Object.keys(a).length>0){n.web_ad_info=JSON.stringify(a)}var s=r.isNonEmptyStr(this.player_.currentSrc());if(!s||this.timeOfImpression){return null}if(i.bc_.isNonEmptyStr(this.player_.currentType())){this.qos.append("content",{sourceMimeType:this.player_.currentType()});t.qos=t.qos||["content"]}this.streamCount_++;t.streamCount=this.streamCount_;R(this.player_,n);
1n.autoplay=this.player_.autoplay();N(this.player_,n);var o=this.send(n,t);if(o){this.timeOfImpression=Number(o.params.time)}return o};s.sendVideoView=function e(t){if(t===void 0){t={}}var i=D(t,{event:"video_view"});var n=r.isNonEmptyStr(this.player_.currentSrc());if(!n||this.timeOfView||!this.timeOfImpression){return null}var a=this.history_;var s=a.first("canplay");var o=a.first("loadstart");var l=a.first("play");if(s){i.load_time_ms=s-this.timeOfImpression}i.start_time_ms=L(l||o,i.time,a.first("adstart",true),a.first("adend",true),a.first("adtimeout",true));R(this.player_,i);if(this.player_.usingPlugin("pluginDev")){i.feature="iris"}t.streamCount=this.streamCount_;var u=this.send(i,t);if(u){this.timeOfView=Number(u.params.time)}return u};s.sendVideoEngagement=function e(t,i,n){if(n===void 0){n={}}var a=D(n,{event:"video_engagement"});var s=i.buffered,o=i.duration,l=i.playbackEndTime,u=i.height,c=i.mediainfo,d=i.playbackRate,f=i.rebufferingCount,h=i.rendition,p=i.playbackStartTime,v=i.rangeStart,m=i.rangeEnd,g=i.stats,y=i.width;var _=l-p;n.qos=n.qos||["bitrates","events","player","frames"];t.length=t.end-t.start;a.player_height=u;a.player_width=y;a.video_duration=o;if(c){a.video=c.id;a.video_name=c.name}if(h){a.rendition_url=h.url;a.rendition_indicated_bps=h.indicatedBPS;a.rendition_mime_type=h.mimeType;a.rendition_height=h.height;a.rendition_width=h.width}if(g){if(!r.isNil(g.mediaRequests)){a.media_requests=g.mediaRequests}if(!r.isNil(g.mediaTransferDuration)){a.media_transfer_duration=g.mediaTransferDuration}if(!r.isNil(g.mediaBytesTransferred)){a.media_bytes_transferred=g.mediaBytesTransferred}if(!r.isNil(g.bandwidth)){a.measured_bps=g.bandwidth}if(!r.isNil(g.mediaSecondsLoaded)){a.media_seconds_loaded=g.mediaSecondsLoaded}}var b=_/d*1e3;var T=t.end-t.start;var S=100;var k=Math.floor((T-b)/S)*S/1e3;if(f>0){a.rebuffering_count=f}if(k>0){a.rebuffering_seconds=k}if(s){var E=0;for(var j=0;j<s.length;j++){var w=s.start(j);var C=s.end(j);if(l>=w&&l<=C){E=C-l;break}}a.forward_buffer_seconds=E}if(_<1&&!a.rebuffering_seconds){return null}var I=this.history_.filter(function(e){return e.name==="licenserequestattempted"&&e.time>=t.start&&e.time<t.end});if(I.length){a.license_request_attempts=I.length}R(this.player_,a);n.streamCount=this.streamCount_;if(a.video_duration===Infinity){a.video_seconds_viewed=Math.round(_);delete a.video_duration}else if(_>=1){a["qos.derived_range"]=A(p,l);a.range=v+".."+m}return this.send(a,n)};s.sendVideoComplete=function e(t){if(t===void 0){t={}}var i=D(t,{event:"video_complete"});R(this.player_,i);t.streamCount=this.streamCount_;return this.send(i,t)};s.sendError=function e(t){if(t===void 0){t={}}var i=this.player_.error();if(!i){return null}var n=D(t,{event:"error"});var a=r.isFn(this.player_.errors)&&r.isFn(this.player_.errors.getAll)&&this.player_.errors.getAll()||{unknown:{type:"MEDIA_ERR_UNKNOWN"}};if(i&&a.hasOwnProperty(String(i.code))){n.error_code=a[String(i.code)].type}else if(i.type!==undefined){n.error_code=i.type}else{n.error_code=a.unknown.type}R(this.player_,n);t.streamCount=this.streamCount_;return this.send(n,t)};s.sendCatalogRequest=function e(t,i){if(i===void 0){i={}}var r=D(i,{event:"catalog_request",url:t});return this.sendCatalog_(r,i)};s.sendCatalogRequestError=function e(t,i){if(i===void 0){i={}}var r=D(i,{event:"catalog_request_error",url:t});if(i.error){i.error=n(i.error,["code","message","type"])}return this.sendCatalog_(r,i)};s.sendCatalogResponse=function e(t,i){if(i===void 0){i={}}var r=D(i,{event:"catalog_response",url:t});r.time=Date.now();r.response_time_ms=r.time-this.history_.last("catalog_request");return this.sendCatalog_(r,i)};s.sendAdEnd=function e(t){if(t===void 0){t={}}var i=_(this.player_);var r=this.currentAdSequence_["ads-ad-started"];var n=this.currentAdSequence_.adBreakIndex;if(i.plugin!==undefined){if(i.adType==="preroll"&&r.length>0&&r[0].length>0){var a=this.history_.first("play",true);i.prerollDelay=r[0][0]-a;i.firstPlayInSession=a}i.adsRequest=this.currentAdSequence_["ads-request"];i.adsResponseReceived=this.currentAdSequence_["ads-response-received"];i.adsLoading=this.currentAdSequence_["ads-loading"][n];i.adsAdStarted=this.currentAdSequence_["ads-ad-started"][n];i.adsAdEnded=this.currentAdSequence_["ads-ad-ended"][n]}else{i.plugin="unknown"}var s={event:"ad_end",web_ad_info:JSON.stringify(i)};t.streamCount=this.streamCount_;return this.send(R(this.player_,D(t,s)),t)};s.sendAdHardTimeout=function e(t){if(t===void 0){t={}}t.streamCount=this.streamCount_;return this.send(R(this.player_,D(t,{event:"ad_hard_timeout"})),t)};s.sendAdStart=function e(t){if(t===void 0){t={}}t.streamCount=this.streamCount_;return this.send(R(this.player_,D(t,{event:"ad_start"})),t)};s.sendAdTimeout=function e(t){if(t===void 0){t={}}t.streamCount=this.streamCount_;return this.send(R(this.player_,D(t,{event:"ad_timeout"})),t)};s.sendPlayRequest=function e(t){if(t===void 0){t={}}t.streamCount=this.streamCount_;return this.send(R(this.player_,D(t,{event:"play_request"})),t)};s.sendPlayerInit=function e(t){if(t===void 0){t={}}return this.send(D(t,{event:"player_init"}),t)};s.sendPlayerLoad=function e(t){if(t===void 0){t={}}return this.send(D(t,{event:"player_load"}),t)};return a}();var U=function(e){var t=e.bcAnalyticsLogger&&e.bcAnalyticsLogger();var i=function e(){return t&&t.add.apply(t,arguments)};return i};function B(e,t){e.prototype=Object.create(t.prototype);e.prototype.constructor=e;e.__proto__=t}var F=function e(t){return typeof t==="number"&&!isNaN(t)&&t>=0&&t<Infinity};var H=function e(t){return t.map(function(e){return Math.floor(e)}).reduce(function(e,t){var i=e[e.length-1];if(t!==i){e.push(t)}return e},[])};var V=function e(t){return t.reduce(function(e,t){var i=e[e.length-1];if(i){if(i.end+1===t){i.end=t}else{e.push({start:t,end:t})}}else{e.push({start:t,end:t})}return e},[])};var q=function e(t){return t.map(function(e){var t=e.start,i=e.end;var r=i-t;if(r>0){return{start:t,end:i-1,remainder:i}}return{start:t,end:i,remainder:i}})};var z=function e(t){var i=[];var r=t.shift()||{},n=r.start,a=r.end,s=r.remainder;while(F(n)&&F(a)&&F(s)&&n===a&&n===s){var o=t.shift()||{};n=o.start;a=o.end;s=o.remainder}if(t.length===0){i.push(s)}for(var l=0;l<t.length;l++){var u=t[l],c=u.start,d=u.end,f=u.remainder;for(var h=c;h<=(f||d);h++){i.push(h)}}return{start:n,end:a,remainders:i,ranges:t.length}};var W=function e(t){return z(q(V(H(t))))};var G=1;function Y(){return G++}var K=[];var X=function e(t,i,r,n,a){if(a===void 0){a=true}var s=[].concat(r).sort();if(i!=="removeEventListener"){t.off(s,n)}
1else{s.forEach(function(e){t.removeEventListener(e,n)})}if(!a){return}var o=K.length;var l=function e(){var i=K[o];if(i.context===t&&(i.fn.guid===n.guid||i.fn===n)&&s.every(function(e,t){return i.events[t]})){K.splice(o,1);return"break"}};while(o--){var u=l();if(u==="break")break}};var Q=function e(){var t=K.length;while(t--){var i=K.shift(),r=i.context,n=i.mode,a=i.events,s=i.fn;var o="off";if(n==="addEventListener"){o="removeEventListener"}X(r,o,a,s,false)}};var J=function e(t,i,r,n){var a=[].concat(r).sort();var s={events:a,fn:n,mode:i,context:t};if(i==="one"||i==="onePerSrc"){s.fn=function(){var e="off";if(s.mode==="addEventListener"){e="removeEventListener"}X(s.context,e,s.events,s.fn);for(var t=arguments.length,i=new Array(t),r=0;r<t;r++){i[r]=arguments[r]}return n.apply(this,i)};if(!n.guid){n.guid=Y()}s.fn.guid=n.guid}K.push(s);if(i==="addEventListener"){s.events.forEach(function(e){s.context.addEventListener(e,s.fn)})}else{s.context[s.mode](s.events,s.fn)}};var Z=function e(){var t=K.slice(0);Q();t.forEach(function(e){var t=e.context,i=e.mode,r=e.events,n=e.fn;J(t,i,r,n)})};var $=1e4;var ee=function e(t){return Boolean(t.onceux&&t.onceux.currentTime&&t.onceux.timeline)};var te=function(e){B(t,e);function t(t,i){var r;r=e.call(this)||this;r.player_=t;r.logger_=i;r.stateBySrc_={};r.lastStateRecord_=0;
1r.disposed_=false;return r}var r=t.prototype;r.logger=function e(){};r.stateBySrc=function e(t){if(t===void 0){t=this.player_.currentSrc()}if(!this.stateBySrc_.hasOwnProperty(t)){this.stateBySrc_[t]={buffered:null,duration:0,end:0,height:0,mediainfo:null,playbackRate:1,rebufferingCount:0,src:t,start:0,width:0,playbackStartTime:0,playbackEndTime:0,stats:null,rendition:null,videoPlaybackQuality:null,times:[]}}var i=this.player_.tech_&&this.player_.tech_.vhs;this.stateBySrc_[t].stats=i&&i.stats||null;return this.stateBySrc_[t]};r.clearStateBySrc=function e(t){if(t===void 0){t=this.player_.currentSrc()}delete this.stateBySrc_[t]};r.recordState=function e(){var t=this.player_;var i=this.stateBySrc();i.mediainfo=t.mediainfo;i.playbackEndTime=t.currentTime();i.times.push(i.playbackEndTime);if(ee(t)){i.duration=t.onceux.timeline.contentDuration}else{i.duration=t.duration()}i.buffered=t.buffered();i.playbackRate=t.playbackRate()};r.isTracking=function e(){return!!this.timerId_};r.start=function e(t){var i=this;if(t===void 0){t={}}if(this.disposed_){return}var r=t,n=r.reason,a=r.src;if(!a){a=this.player_.currentSrc()}var s=this.stateBySrc(a);s.playbackStartTime=s.playbackEndTime=this.player_.currentTime();if(ee(this.player_)){s.duration=this.player_.onceux.timeline.contentDuration}else{s.duration=this.player_.duration()}s.rebufferingCount=0;this.player_.clearTimeout(this.timerId_);this.timerCreatedAt_=Date.now();this.timerId_=this.player_.setTimeout(function(){return i.stop({src:a,reason:"engagement timer fired"})},$);return this};r.prepareState_=function e(t){var r=this.player_;var n=this.stateBySrc(t);n.height=Math.round(r.currentHeight());n.width=Math.round(r.currentWidth());var a=r.tech_&&r.tech_.vhs;if(a&&a.playlists&&a.playlists.media()){var s=a.playlists.media();var o=n.rendition={url:s.resolvedUri,mimeType:r.currentType()};if(s.attributes){o.indicatedBPS=s.attributes.BANDWIDTH;if(s.attributes.RESOLUTION){o.height=s.attributes.RESOLUTION.height;o.width=s.attributes.RESOLUTION.width}}}n.videoPlaybackQuality=r.getVideoPlaybackQuality();if(n.mediainfo){var l={};Object.keys(n.mediainfo).forEach(function(e){if(!/_/.test(e)){l[e]=n.mediainfo[e]}});n.mediainfo=l}n.times.push(r.currentTime());var u=W(n.times),c=u.start,d=u.end,f=u.remainders,h=u.ranges;n.times=f;return i.mergeOptions({rangeExtras:h,rangeStart:c,rangeEnd:d},n)};r.stop=function e(t){var i=this;if(t===void 0){t={}}if(!t.src){t.src=this.player_.currentSrc()}if(this.isTracking()){this.player_.clearTimeout(this.timerId_);this.timerId_=null;var r=this.stateBySrc(t.src);var n=(r.duration-r.playbackEndTime)*1e3;if(!this.player_.ended()&&n<1500){this.timerId_=true;J(this.player_,"one","ended",function(){i.recordState();i.stop({reason:"content ended after we delayed the engager"})});return this}t.state=this.prepareState_(t.src);t.period=t.period||{};t.period.start=t.period.start||this.timerCreatedAt_;t.period.end=t.period.end||Date.now();this.trigger({type:"engagement",engagement:t})}return this};r.dispose=function e(){this.disposed_=true;this.stop({ignoreAdState:true,reason:"player disposed"});this.off();return this};return t}(i.EventTarget);var ie=["progress","seeking","suspend","timeupdate"];var re=["seek","stable","unstable"];var ne=["adend","adscanceled","adserror","adskip","adsready","adstart","adtimeout","contentplayback","contentupdate","nopostroll","nopreroll","readyforpreroll"];var ae=[].concat(i.getTech("Html5").Events);var se=ae.filter(function(e){return ie.indexOf(e)===-1});var oe=["ads-request","ads-response-received","adstart","ads-loading","ads-ad-started","ads-ad-ended","adend"];var le=["NETWORK_EMPTY","NETWORK_IDLE","NETWORK_LOADING","NETWORK_NO_SOURCE"];var ue=["HAVE_NOTHING","HAVE_METADATA","HAVE_CURRENT_DATA","HAVE_FUTURE_DATA","HAVE_ENOUGH_DATA"];var ce=function(){function e(e){this.logger_=e;this.events_=[]}var t=e.prototype;t.add=function e(t,r,n){if(r===void 0){r=Date.now()}var a=i.mergeOptions(n,{name:t,time:r});this.events_.push(a);return r};t.record=function e(t,i){var r=Date.now();this.add(t,r,{adState:f(i),isInAdState:m(i),networkState:le[i.networkState()],readyState:ue[i.readyState()]});return r};t.reset=function e(){this.events_.length=0};t.filter=function e(t){if(!r.isFn(t)){return this.events_.filter(function(e){return e.name===t})}return this.events_.filter(t)};t.map=function e(t){return this.events_.map(t)};t.names=function e(){return this.map(function(e){return e.name})};t.first=function e(t,i){for(var r=0;r<this.events_.length;r++){var n=this.events_[r];if(!i&&n.isInAdState){continue}if(n.name===t){return n.time}}};t.last=function e(t,i){var r=this.events_.length;while(r--){var n=this.events_[r];if(!i&&n.isInAdState){continue}if(n.name===t){return n.time}}};return e}();var de=function(){function e(){this.log_={}}var t=e.prototype;t.put=function e(t){this.log_[t]=true};t.peek=function e(){return Object.keys(this.log_)};t.flush=function e(){var t=Object.keys(this.log_);this.log_={};return t};return e}();var fe="3.14.0";var he={production:"https://metrics.brightcove.com/v2/tracker",qa:"https://metrics.juju.qa.brightcove.com/v2/tracker",staging:"https://metrics.juju.staging.brightcove.com/v2/tracker"};
1var pe=function e(t,i,n){Object.keys(n).forEach(function(e){i[e]=String(i[e]||"");if(e==="accountId"&&!r.isNonEmptyStr(i[e])){i[e]=String(i.account||"")}if(!r.isNonEmptyStr(i[e])){i[e]=t.getAttribute("data-"+n[e])||""}});return i};var ve=function t(i,n){var a=pe(i.el(),n,{accountId:"account",applicationId:"application-id",embedId:"embed",playerId:"player",playerName:"name",usage:"usage"}),s=a.accountId,o=a.applicationId,l=a.embedId,u=a.playerId;if(!r.isNonEmptyStr(n.player)){if(e.location.hostname==="players.api.brightcove.com"){n.player="players.api.brightcove.com/"+u+"_"+l;return}n.player=P(s,u,l);if(o){n.player+="/"+o}}if(o){if(r.isNonEmptyStr(n.p'),t[1].s.push('r s=a.prototype;s.logger=function e(){if(this.logger_);};s.metrics=function e(){return this.metrics_.map(i.mergeOptions)};s.resetTimesOf=function e(){this.timeOfImpression=null;this.timeOfView=null};s.defaultParams=function e(t){if(t){if(t.player){this.playerUrl_=t.player}t=r.isFn(t)?t():t;this.defaultParams_=i.mergeOptions(this.defaultParams_,t)}return this.defaultParams_};s.getSession=function e(){return this.defaultParams_.session};s.user=function e(t){if(t===null||r.isNonEmptyStr(t)||r.isNum(t)){this.user_=t;this.hashUser_=true}return this.user_};s.setUser=function e(t){if(t===null||r.isNonEmptyStr(t)){this.user_=t;this.hashUser_=false}};s.getUser=function e(){return this.user_};s.corpCommsApp=function e(t){if(t===null||r.isNonEmptyStr(t)||r.isNum(t)){this.corpCommsApp_=t}return this.corpCommsApp_};s.device=function e(t){if(t===null||r.isNonEmptyStr(t)||r.isNum(t)){this.device_=t}return this.device_};s.player=function e(t){if(t===null||r.isNonEmptyStr(t)){this.defaultParams_.player=t;this.playerUrl_=t}return this.playerUrl_||this.defaultParams_.player};s.send=function n(a,s){var o;if(a===void 0){a={}}if(s===void 0){s={}}if(this.user()){if(this.hashUser_){a.user=x(this.user())}else{a.user=this.user()}}if(this.corpCommsApp()){a.application=this.corpCommsApp();a.user=this.user()||this.device()}if(r.isNil(a.time)){a.time=Date.now()}s.qos=Array.isArray(s.qos)?s.qos:[];s.qos.push("mr");a=i.mergeOptions(this.defaultParams_,a,(o=this.qos).flush.apply(o,s.qos));a.seq=""+this.eventCount_;this.eventCount_++;if("streamCount"in s){a.seq+="_"+s.streamCount}if(typeof this.player_.getAccountId==="function"){var l=this.player_.getAccountId();a.account=l;a.player=this.playerUrl_||P(l,this.playerId,this.embedId,this.applicationId)}C.forEach(function(e){if(r.isNil(a[e])){throw new Error(\'the "\'+e+\'" param is required\')}});var u=O(this.baseUrl_,a);if(s.useSendBeaconOnly){if(k){e.navigator.sendBeacon(u)}else{return null}}else{var c=t.createElement("img");c.src=u}this.metrics_.push(a);this.player_.trigger({params:a,type:"analytics_request"});this.player_.trigger({params:a,type:"analytics_request_"+a.event});return{params:a,url:u}};s.sendCatalog_=function e(t,i){if(i===void 0){i={}}var r=i,n=r.error,a=r.xhr;if(n&&a){n.status=a.status}if(n){t.error=JSON.stringify(n)}return this.send(t,i)};s.sendVideoImpression=function e(t){if(t===void 0){t={}}var n=D(t,{event:"video_impression"});var a=_(this.player_);if(Object.keys(a).length>0){n.web_ad_info=JSON.stringify(a)}var s=r.isNonEmptyStr(this.player_.currentSrc());if(!s||this.timeOfImpression){return null}if(i.bc_.isNonEmptyStr(this.player_.currentType())){this.qos.append("content",{sourceMimeType:this.player_.currentType()});t.qos=t.qos||["content"]}this.streamCount_++;t.streamCount=this.streamCount_;R(this.player_,n);n.autoplay=this.player_.autoplay();N(this.player_,n);var o=this.send(n,t);if(o){this.timeOfImpression=Number(o.params.time)}return o};s.sendVideoView=function e(t){if(t===void 0){t={}}var i=D(t,{event:"video_view"});var n=r.isNonEmptyStr(this.player_.currentSrc());if(!n||this.timeOfView||!this.timeOfImpression){return null}var a=this.history_;var s=a.first("canplay");var o=a.first("loadstart");var l=a.first("play");if(s){i.load_time_ms=s-this.timeOfImpression}i.start_time_ms=L(l||o,i.time,a.first("adstart",true),a.first("adend",true),a.first("adtimeout",true));R(this.player_,i);if(this.player_.usingPlugin("pluginDev")){i.feature="iris"}t.streamCount=this.streamCount_;var u=this.send(i,t);if(u){this.timeOfView=Number(u.params.time)}return u};s.sendVideoEngagement=function e(t,i,n){if(n===void 0){n={}}var a=D(n,{event:"video_engagement"});var s=i.buffered,o=i.duration,l=i.playbackEndTime,u=i.height,c=i.mediainfo,d=i.playbackRate,f=i.rebufferingCount,h=i.rendition,p=i.playbackStartTime,v=i.rangeStart,m=i.rangeEnd,g=i.stats,y=i.width;var _=l-p;n.qos=n.qos||["bitrates","events","player","frames"];t.length=t.end-t.start;a.player_height=u;a.player_width=y;a.video_duration=o;if(c){a.video=c.id;a.video_name=c.name}if(h){a.rendition_url=h.url;a.rendition_indicated_bps=h.indicatedBPS;a.rendition_mime_type=h.mimeType;a.rendition_height=h.height;a.rendition_width=h.width}if(g){if(!r.isNil(g.mediaRequests)){a.media_requests=g.mediaRequests}if(!r.isNil(g.mediaTransferDuration)){a.media_transfer_duration=g.mediaTransferDuration}if(!r.isNil(g.mediaBytesTransferred)){a.media_bytes_transferred=g.mediaBytesTransferred}if(!r.isNil(g.bandwidth)){a.measured_bps=g.bandwidth}if(!r.isNil(g.mediaSecondsLoaded)){a.media_seconds_loaded=g.mediaSecondsLoaded}}var b=_/d*1e3;var T=t.end-t.start;var S=100;var k=Math.floor((T-b)/S)*S/1e3;if(f>0){a.rebuffering_count=f}if(k>0){a.rebuffering_seconds=k}if(s){var E=0;for(var j=0;j<s.length;j++){var w=s.start(j);var C=s.end(j);if(l>=w&&l<=C){E=C-l;break}}a.forward_buffer_seconds=E}if(_<1&&!a.rebuffering_seconds){return null}var I=this.history_.filter(function(e){return e.name==="licenserequestattempted"&&e.time>=t.start&&e.time<t.end});if(I.length){a.license_request_attempts=I.length}R(this.player_,a);n.streamCount=this.streamCount_;if(a.video_duration===Infinity){a.video_seconds_viewed=Math.round(_);delete a.video_duration}else if(_>=1){a["qos.derived_range"]=A(p,l);a.range=v+".."+m}return this.send(a,n)};s.sendVideoComplete=function e(t){if(t===void 0){t={}}var i=D(t,{event:"video_complete"});R(this.player_,i);t.streamCount=this.streamCount_;return this.send(i,t)};s.sendError=function e(t){if(t===void 0){t={}}var i=this.player_.error();if(!i){return null}var n=D(t,{event:"error"});var a=r.isFn(this.player_.errors)&&r.isFn(this.player_.errors.getAll)&&this.player_.errors.getAll()||{unknown:{type:"MEDIA_ERR_UNKNOWN"}};
1if(i&&a.hasOwnProperty(String(i.code))){n.error_code=a[String(i.code)].type}else if(i.type!==undefined){n.error_code=i.type}else{n.error_code=a.unknown.type}R(this.player_,n);t.streamCount=this.streamCount_;return this.send(n,t)};s.sendCatalogRequest=function e(t,i){if(i===void 0){i={}}var r=D(i,{event:"catalog_request",url:t});return this.sendCatalog_(r,i)};s.sendCatalogRequestError=function e(t,i){if(i===void 0){i={}}var r=D(i,{event:"catalog_request_error",url:t});if(i.error){i.error=n(i.error,["code","message","type"])}return this.sendCatalog_(r,i)};s.sendCatalogResponse=function e(t,i){if(i===void 0){i={}}var r=D(i,{event:"catalog_response",url:t});r.time=Date.now();r.response_time_ms=r.time-this.history_.last("catalog_request");return this.sendCatalog_(r,i)};s.sendAdEnd=function e(t){if(t===void 0){t={}}var i=_(this.player_);var r=this.currentAdSequence_["ads-ad-started"];var n=this.currentAdSequence_.adBreakIndex;if(i.plugin!==undefined){if(i.adType==="preroll"&&r.length>0&&r[0].length>0){var a=this.history_.first("play",true);i.prerollDelay=r[0][0]-a;i.firstPlayInSession=a}i.adsRequest=this.currentAdSequence_["ads-request"];i.adsResponseReceived=this.currentAdSequence_["ads-response-received"];i.adsLoading=this.currentAdSequence_["ads-loading"][n];i.adsAdStarted=this.currentAdSequence_["ads-ad-started"][n];i.adsAdEnded=this.currentAdSequence_["ads-ad-ended"][n]}else{i.plugin="unknown"}var s={event:"ad_end",web_ad_info:JSON.stringify(i)};t.streamCount=this.streamCount_;return this.send(R(this.player_,D(t,s)),t)};s.sendAdHardTimeout=function e(t){if(t===void 0){t={}}t.streamCount=this.streamCount_;return this.send(R(this.player_,D(t,{event:"ad_hard_timeout"})),t)};s.sendAdStart=function e(t){if(t===void 0){t={}}t.streamCount=this.streamCount_;return this.send(R(this.player_,D(t,{event:"ad_start"})),t)};s.sendAdTimeout=function e(t){if(t===void 0){t={}}t.streamCount=this.streamCount_;return this.send(R(this.player_,D(t,{event:"ad_timeout"})),t)};s.sendPlayRequest=function e(t){if(t===void 0){t={}}t.streamCount=this.streamCount_;return this.send(R(this.player_,D(t,{event:"play_request"})),t)};s.sendPlayerInit=function e(t){if(t===void 0){t={}}return this.send(D(t,{event:"player_init"}),t)};s.sendPlayerLoad=function e(t){if(t===void 0){t={}}return this.send(D(t,{event:"player_load"}),t)};return a}();var U=function(e){var t=e.bcAnalyticsLogger&&e.bcAnalyticsLogger();var i=function e(){return t&&t.add.apply(t,arguments)};return i};function B(e,t){e.prototype=Object.create(t.prototype);e.prototype.constructor=e;e.__proto__=t}var F=function e(t){return typeof t==="number"&&!isNaN(t)&&t>=0&&t<Infinity};var H=function e(t){return t.map(function(e){return Math.floor(e)}).reduce(function(e,t){var i=e[e.length-1];if(t!==i){e.push(t)}return e},[])};var V=function e(t){return t.reduce(function(e,t){var i=e[e.length-1];if(i){if(i.end+1===t){i.end=t}else{e.push({start:t,end:t})}}else{e.push({start:t,end:t})}return e},[])};var q=function e(t){return t.map(function(e){var t=e.start,i=e.end;var r=i-t;if(r>0){return{start:t,end:i-1,remainder:i}}return{start:t,end:i,remainder:i}})};var z=function e(t){var i=[];var r=t.shift()||{},n=r.start,a=r.end,s=r.remainder;while(F(n)&&F(a)&&F(s)&&n===a&&n===s){var o=t.shift()||{};n=o.start;a=o.end;s=o.remainder}if(t.length===0){i.push(s)}for(var l=0;l<t.length;l++){var u=t[l],c=u.start,d=u.end,f=u.remainder;for(var h=c;h<=(f||d);h++){i.push(h)}}return{start:n,end:a,remainders:i,ranges:t.length}};var W=function e(t){return z(q(V(H(t))))};var G=1;function Y(){return G++}var K=[];var X=function e(t,i,r,n,a){if(a===void 0){a=true}var s=[].concat(r).sort();if(i!=="removeEventListener"){t.off(s,n)}else{s.forEach(function(e){t.removeEventListener(e,n)})}if(!a){return}var o=K.length;var l=function e(){var i=K[o];if(i.context===t&&(i.fn.guid===n.guid||i.fn===n)&&s.every(function(e,t){return i.events[t]})){K.splice(o,1);return"break"}};while(o--){var u=l();if(u==="break")break}};var Q=function e(){var t=K.length;while(t--){var i=K.shift(),r=i.context,n=i.mode,a=i.events,s=i.fn;var o="off";if(n==="addEventListener"){o="removeEventListener"}X(r,o,a,s,false)}};var J=function e(t,i,r,n){var a=[].concat(r).sort();var s={events:a,fn:n,mode:i,context:t};if(i==="one"||i==="onePerSrc"){s.fn=function(){var e="off";if(s.mode==="addEventListener"){e="removeEventListener"}X(s.context,e,s.events,s.fn);for(var t=arguments.length,i=new Array(t),r=0;r<t;r++){i[r]=arguments[r]}return n.apply(this,i)};
1if(!n.guid){n.guid=Y()}s.fn.guid=n.guid}K.push(s);if(i==="addEventListener"){s.events.forEach(function(e){s.context.addEventListener(e,s.fn)})}else{s.context[s.mode](s.events,s.fn)}};var Z=function e(){var t=K.slice(0);Q();t.forEach(function(e){var t=e.context,i=e.mode,r=e.events,n=e.fn;J(t,i,r,n)})};var $=1e4;var ee=function e(t){return Boolean(t.onceux&&t.onceux.currentTime&&t.onceux.timeline)};var te=function(e){B(t,e);function t(t,i){var r;r=e.call(this)||this;r.player_=t;r.logger_=i;r.stateBySrc_={};r.lastStateRecord_=0;r.disposed_=false;return r}var r=t.prototype;r.logger=function e(){};r.stateBySrc=function e(t){if(t===void 0){t=this.player_.currentSrc()}if(!this.stateBySrc_.hasOwnProperty(t)){this.stateBySrc_[t]={buffered:null,duration:0,end:0,height:0,mediainfo:null,playbackRate:1,rebufferingCount:0,src:t,start:0,width:0,playbackStartTime:0,playbackEndTime:0,stats:null,rendition:null,videoPlaybackQuality:null,times:[]}}var i=this.player_.tech_&&this.player_.tech_.vhs;this.stateBySrc_[t].stats=i&&i.stats||null;return this.stateBySrc_[t]};r.clearStateBySrc=function e(t){if(t===void 0){t=this.player_.currentSrc()}delete this.stateBySrc_[t]};r.recordState=function e(){var t=this.player_;var i=this.stateBySrc();i.mediainfo=t.mediainfo;i.playbackEndTime=t.currentTime();i.times.push(i.playbackEndTime);if(ee(t)){i.duration=t.onceux.timeline.contentDuration}else{i.duration=t.duration()}i.buffered=t.buffered();i.playbackRate=t.playbackRate()};r.isTracking=function e(){return!!this.timerId_};r.start=function e(t){var i=this;if(t===void 0){t={}}if(this.disposed_){return}var r=t,n=r.reason,a=r.src;if(!a){a=this.player_.currentSrc()}var s=this.stateBySrc(a);s.playbackStartTime=s.playbackEndTime=this.player_.currentTime();if(ee(this.player_)){s.duration=this.player_.onceux.timeline.contentDuration}else{s.duration=this.player_.duration()}s.rebufferingCount=0;this.player_.clearTimeout(this.timerId_);this.timerCreatedAt_=Date.now();this.timerId_=this.player_.setTimeout(function(){return i.stop({src:a,reason:"engagement timer fired"})},$);return this};r.prepareState_=function e(t){var r=this.player_;var n=this.stateBySrc(t);n.height=Math.round(r.currentHeight());n.width=Math.round(r.currentWidth());var a=r.tech_&&r.tech_.vhs;if(a&&a.playlists&&a.playlists.media()){var s=a.playlists.media();var o=n.rendition={url:s.resolvedUri,mimeType:r.currentType()};if(s.attributes){o.indicatedBPS=s.attributes.BANDWIDTH;if(s.attributes.RESOLUTION){o.height=s.attributes.RESOLUTION.height;o.width=s.attributes.RESOLUTION.width}}}n.videoPlaybackQuality=r.getVideoPlaybackQuality();if(n.mediainfo){var l={};Object.keys(n.mediainfo).forEach(function(e){if(!/_/.test(e)){l[e]=n.mediainfo[e]}});n.mediainfo=l}n.times.push(r.currentTime());var u=W(n.times),c=u.start,d=u.end,f=u.remainders,h=u.ranges;n.times=f;return i.mergeOptions({rangeExtras:h,rangeStart:c,rangeEnd:d},n)};r.stop=function e(t){var i=this;if(t===void 0){t={}}if(!t.src){t.src=this.player_.currentSrc()}if(this.isTracking()){this.player_.clearTimeout(this.timerId_);this.timerId_=null;var r=this.stateBySrc(t.src);var n=(r.duration-r.playbackEndTime)*1e3;if(!this.player_.ended()&&n<1500){this.timerId_=true;J(this.player_,"one","ended",function(){i.recordState();i.stop({reason:"content ended after we delayed the engager"})});return this}t.state=this.prepareState_(t.src);t.period=t.period||{};t.period.start=t.period.start||this.timerCreatedAt_;t.period.end=t.period.end||Date.now();this.trigger({type:"engagement",engagement:t})}return this};r.dispose=function e(){this.disposed_=true;this.stop({ignoreAdState:true,reason:"player disposed"});this.off();return this};return t}(i.EventTarget);var ie=["progress","seeking","suspend","timeupdate"];var re=["seek","stable","unstable"];var ne=["adend","adscanceled","adserror","adskip","adsready","adstart","adtimeout","contentplayback","contentupdate","nopostroll","nopreroll","readyforpreroll"];var ae=[].concat(i.getTech("Html5").Events);var se=ae.filter(function(e){return ie.indexOf(e)===-1});var oe=["ads-request","ads-response-received","adstart","ads-loading","ads-ad-started","ads-ad-ended","adend"];var le=["NETWORK_EMPTY","NETWORK_IDLE","NETWORK_LOADING","NETWORK_NO_SOURCE"];var ue=["HAVE_NOTHING","HAVE_METADATA","HAVE_CURRENT_DATA","HAVE_FUTURE_DATA","HAVE_ENOUGH_DATA"];var ce=function(){function e(e){this.logger_=e;this.events_=[]}var t=e.prototype;t.add=function e(t,r,n){if(r===void 0){r=Date.now()}var a=i.mergeOptions(n,{name:t,time:r});
1this.events_.push(a);return r};t.record=function e(t,i){var r=Date.now();this.add(t,r,{adState:f(i),isInAdState:m(i),networkState:le[i.networkState()],readyState:ue[i.readyState()]});return r};t.reset=function e(){this.events_.length=0};t.filter=function e(t){if(!r.isFn(t)){return this.events_.filter(function(e){return e.name===t})}return this.events_.filter(t)};t.map=function e(t){return this.events_.map(t)};t.names=function e(){return this.map(function(e){return e.name})};t.first=function e(t,i){for(var r=0;r<this.events_.length;r++){var n=this.events_[r];if(!i&&n.isInAdState){continue}if(n.name===t){return n.time}}};t.last=function e(t,i){var r=this.events_.length;while(r--){var n=this.events_[r];if(!i&&n.isInAdState){continue}if(n.name===t){return n.time}}};return e}();var de=function(){function e(){this.log_={}}var t=e.prototype;t.put=function e(t){this.log_[t]=true};t.peek=function e(){return Object.keys(this.log_)};t.flush=function e(){var t=Object.keys(this.log_);this.log_={};return t};return e}();var fe="3.14.0";var he={production:"https://metrics.brightcove.com/v2/tracker",qa:"https://metrics.juju.qa.brightcove.com/v2/tracker",staging:"https://metrics.juju.staging.brightcove.com/v2/tracker"};var pe=function e(t,i,n){Object.keys(n).forEach(function(e){i[e]=String(i[e]||"");if(e==="accountId"&&!r.isNonEmptyStr(i[e])){i[e]=String(i.account||"")}if(!r.isNonEmptyStr(i[e])){i[e]=t.getAttribute("data-"+n[e])||""}});return i};var ve=function t(i,n){var a=pe(i.el(),n,{accountId:"account",applicationId:"application-id",embedId:"embed",playerId:"player",playerName:"name",usage:"usage"}),s=a.accountId,o=a.applicationId,l=a.embedId,u=a.playerId;if(!r.isNonEmptyStr(n.player)){if(e.location.hostname==="players.api.brig'),t[0].s.push('layerName)){n.playerName+=" - "+o}else{n.playerName=o}}};var me=function e(t){return{computedHeight:t.currentHeight(),computedWidth:t.currentWidth(),height:t.height(),width:t.width()}};var ge=function t(r){if(typeof r==="boolean"){i.log.warn("The __iframe__ option should only be used in tests!");return r}try{return e.parent!==e.self}catch(e){return true}};var ye=function n(a){var s=this;if(a===void 0){a={}}var o=false;var l=false;var u={};a=i.mergeOptions(a);a.env=he.hasOwnProperty(a.env)?a.env:"production";ve(this,a);var c=U(this);var d=new te(this,c);var p=new ce(c);var _=new de;var b=r.isNonEmptyStr(a.usage)?a.usage.split(","):[];b.forEach(function(e){_.put(e)});var T=new M(this,p,r.isNonEmptyStr(a.analyticsUrl)?a.analyticsUrl:he[a.env],{logger:c,user:a.user,corpCommsApp:a.corpCommsApp,device:a.device,playerId:a.playerId,embedId:a.embedId,applicationId:a.applicationId});T.defaultParams(function(){var i={account:a.accountId||null,destination:e.location.href,platform_version:a.platformVersion,player:a.player,player_name:a.playerName,source:t.referrer};if(ge(a.__iframe__)){i.destination=t.referrer;if(r.isNonEmptyStr(a.referrer)){i.source=a.referrer}else{try{i.source=e.parent.document.referrer}catch(e){i.source=null}}}return i});J(this,"on","pluginsetup:ads",Z);this.bcAnalytics={client:T,engager:d,history:p,settings:a,VERSION:fe};J(this,"on","usage",function(e){if(!e.name){return i.log.warn("Ignored usage event without a `name` parameter")}_.put(e.name)}
1);var k=function e(){_.put("unload");d.stop({fromUnload:true,ignoreAdState:true,reason:"unload called"})};J(e,"addEventListener","unload",k);var E=function e(t){if(!y(t,s)){return}var i=p.first("loadstart",v(s));var r=p.first("play");var n=p.last("playing");if((r||n)&&!d.isTracking()&&!s.paused()){d.start({period:{start:r||n},reason:"workflow detected that it is playing"})}if(T.timeOfImpression&&T.timeOfView){return}u.workflow=u.workflow||s.setTimeout(function(){u.workflow=null;i=p.first("loadstart",v(s));r=p.first("play");n=p.last("playing");if((i||r)&&!T.timeOfImpression){T.sendVideoImpression({params:{time:Math.min(i||Infinity,r||Infinity)}})}if(i&&n&&!T.timeOfView){T.sendVideoView({params:{time:n}})}},1)};d.on("engagement",function(t){var i=t.engagement,r=i.fromUnload,n=i.ignoreAdState,a=i.period,o=i.restartAlways,l=i.state;var u=m(s);var c={useSendBeaconOnly:r,params:{time:a.end}};if(l.rangeExtras>=2){_.put("disco-engmnt")}var f=_.peek();if(f&&f.length){c.params.usage=f.map(e.encodeURIComponent).sort().join(",")}if(!u||n){T.qos.append("frames",l.videoPlaybackQuality);var h=T.sendVideoEngagement(a,l,c);if(o||h&&!s.paused()){if(u){return}_.flush();d.start({reason:"sent engagement and still playing"})}}});J(this,"on","dispose",function(){Q();_.put("disposed");d.dispose()});J(this,"on",se.concat(ne,re).concat("sourceunstable"),function(e){p.record(e.type,s)});J(this,"on",se.concat("ads-ad-started"),function(e){T.qos.append("event",m(s)?"ad":"content",e.type)});J(this,"on",["loadedmetadata","resize"],function(){T.qos.append("player",me(s))});J(this,"on","fullscreenchange",function(){var e=Date.now();u.fullscreen=s.setTimeout(function(){u.fullscreen=null;T.qos.append("player",me(s),e)},500)});J(this,"on","mediachange",function(){if(s.tech_.vhs){var e=s.tech_.vhs.playlists.media();T.qos.append("bitrate",{bitrates:s.tech_.vhs.bandwidth,playlists:e&&e.attributes&&e.attributes.BANDWIDTH})}});J(this,"on","ratechange",function(){var e=s.playbackRate().toFixed(2);_.put("pr:"+e)});J(this,"on","ready",function(){J(s.tech_,"on","usage",function(e){if(!e.name){return i.log.warn("Ignored usage event without a `name` parameter")}_.put(e.name)}
1);J(s.tech_,"on","bandwidthupdate",function(){T.qos.append("bitrate",{bitrates:s.tech_.vhs.bandwidth,throughput:Math.round(s.tech_.vhs.throughput)})});J(s.tech_,"on","liveresync",function(){s.trigger({type:"usage",name:"hls-live-resync"})});J(s.tech_,"on","videounderflow",function(){s.trigger({type:"usage",name:"hls-video-underflow"})});J(s.tech_,"on","licenserequestattempted",function(){p.add("licenserequestattempted")});J(s,"on","loadedmetadata",function(){var e=s.textTracks();for(var t=0;t<e.length;t++){if(e[t].label==="segment-metadata"){(function(){var i=e[t];var r=void 0;J(i,"addEventListener","cuechange",function(){var e=i.activeCues[0];if(e){var t=s.tech_.vhs.playlists.master.playlists[e.value.playlist];if(r!==t.uri){if(t.attributes&&t.attributes.BANDWIDTH){T.qos.append("bitrate",{rendered:t.attributes.BANDWIDTH})}if(r!==undefined){d.stop({reason:"rendition on screen changed",restartAlways:true})}}r=t.uri}})})()}}})});J(this,"on","waiting",function(e){if(!l&&!m(s)){d.stateBySrc().rebufferingCount++}});J(this,"on","sourcechanged",function(e,t){var i=t.interimEvents;var r=i[0].event;var n=function e(){if(!l&&!m(s)){d.recordState()}};if(t.from){d.stop({reason:"changing sources",period:{end:i[0].time},ignoreAdState:true,src:t.from});d.clearStateBySrc(t.from)}o=false;l=false;T.resetTimesOf();p.reset();i.forEach(function(e){return p.add(e.event.type,e.time)});E();J(s,"onPerSrc","timeupdate",n);J(s,"onePerSrc","sourceunstable",function(){if(f(s)==="content-resuming"){return}var e=s.currentSrc();d.stop({ignoreAdState:true,reason:"sourceunstable",src:e});if(!m(s)){X(s,"off","timeupdate",n)}});J(s,"onPerSrc",["loadstart","play","playing"],E);
1J(s,"onPerSrc",["pause","ratechange"],function(e){if(!l&&!m(s)&&!s.ended()){d.stop({reason:\'saw "\'+e.type+\'"\'});if(s.paused()){J(s,"onePerSrc","playing",function(){d.start({reason:"playback began after a pause"})})}else if(e.type==="ratechange"){u.ratechange=s.setTimeout(function(){u.ratechange=null;d.start({reason:"the playback rate changed"})},1)}}});J(s,"onPerSrc","unstable",function(){if(!l&&!m(s)){l=true;d.stop({reason:"seeking"})}});J(s,"onPerSrc","seek",function(){if(l&&!m(s)){l=false;d.start({reason:"stopped seeking"})}});J(s,"onePerSrc","adstart",function(){if(!h(s)){T.sendVideoImpression({params:{time:p.last("adstart",true)-100}})}});J(s,"onPerSrc","adstart",function(){o=s.ended();d.stop({ignoreAdState:true,period:{end:p.last("adstart",true)},reason:"saw adstart"})});J(s,"onePerSrc","adend",function(){if(!s.paused()&&!s.ended()){E()}});J(s,"onPerSrc","adend",function(){if(!o){d.start({reason:\'saw "adend"\'})}});J(s,"onePerSrc","ended",function(){d.stop({reason:"end of content"});T.sendVideoComplete()})});J(this,"on","catalog_request",function(e){p.record(e.type,s);T.sendCatalogRequest(e.url)});J(this,"on","catalog_request_error",function(e){p.record(e.type,s);T.sendCatalogRequestError(e.url,{error:e.error,xhr:e.response})});J(this,"on","catalog_response",function(e){p.record(e.type,s);T.sendCatalogResponse(e.url,{xhr:e.response})});J(this,"on","play",function(e){if(g(s)){return}var t={params:{time:Date.now()}};if(s.perSourceBehaviors.isSrcStable()){T.sendPlayRequest(t)}else{J(s,"one","sourcechanged",function(){T.sendPlayRequest(t)})}});J(this,"on","error",function(){if(!m(s)){T.sendError()}});J(this,"on","adstart",function(e){T.sendAdStart();u.perSrcDisable=s.setTimeout(function(){u.perSrcDisable=null;s.perSourceBehaviors.disable()},1)});J(this,"on","adend",function(e){T.sendAdEnd();if(u.perSrcDisable){s.clearTimeout(u.perSrcDisable)}else{s.perSourceBehaviors.enable()}});J(this,"on","adtimeout",function(){T.sendAdTimeout()});J(this,"on","ad-hard-timeout",function(){T.sendAdHardTimeout()});J(this,"on",oe,function(e){S(T,e.type,Date.now())});T.qos.append("mr",a.mr);T.sendPlayerInit();T.sendError();J(this,"on","ready",function(){T.defaultParams({feature:h(s)?"adonly":null});T.qos.append("performance",(e.location.href||"").split("?")[1]);T.qos.append("player",me(s));if("hidden"in t&&"visibilityState"in t){if(t.hidden){s.trigger({type:"usage",name:"document-hidden"})}var i=function e(){s.trigger({type:"usage",name:"document-"+t.visibilityState})};J(t,"addEventListener","visibilitychange",i)}if(t.querySelector(".bc-iframe")){s.trigger({type:"usage",name:"iframe-embed"})}else{s.trigger({type:"usage",name:"inpage-embed"})}T.sendPlayerLoad({qos:T.qos.keys(),params:{usage:_.flush()}})})};ye.VERSION=fe;if(i.registerPlugin){i.registerPlugin("bcAnalytics",ye)}else{i.plugin("bcAnalytics",ye)}return ye})})();(function(){if(s.getPlugin("errors")){return}(function(e,t){typeof exports==="object"&&typeof module!=="undefined"?module.exports=t(require("video.js"),require("global/document")):typeof i==="function"&&i.amd?i(["video.js","global/document"],t):(e=e||self,e.videojsErrors=t(e.videojs,e.document))})(this,function(e,t){"use strict";e=e&&e.hasOwnProperty("default")?e["default"]:e;t=t&&t.hasOwnProperty("default")?t["default"]:t;var i="4.3.2";var r=e.getComponent("Flash");var n=!e.browser.IS_IPHONE;var a=e.registerPlugin||e.plugin;var s={header:"",code:"",message:"",timeout:45*1e3,dismiss:n,errors:{1:{type:"MEDIA_ERR_ABORTED",headline:"The video download was cancelled"},2:{type:"MEDIA_ERR_NETWORK",headline:"The video connection was lost, please confirm you are "+"connected to the internet"},3:{type:"MEDIA_ERR_DECODE",headline:"The video is bad or in a format that cannot be played on your browser"},4:{type:"MEDIA_ERR_SRC_NOT_SUPPORTED",headline:"This video is either unavailable or not supported in this browser"},5:{type:"MEDIA_ERR_ENCRYPTED",headline:"The video you are trying to watch is encrypted and we do not know how "+"to decrypt it"},unknown:{type:"MEDIA_ERR_UNKNOWN",headline:"An unanticipated problem was encountered, check back soon and try again"},"-1":{type:"PLAYER_ERR_NO_SRC",headline:"No video has been loaded"},"-2":{type:"PLAYER_ERR_TIMEOUT",headline:"Could not download the video"},PLAYER_ERR_DOMAIN_RESTRICTED:{headline:"This video is restricted from playing on your current domain"},PLAYER_ERR_IP_RESTRICTED:{headline:"This video is restricted at your current IP address"},PLAYER_ERR_GEO_RESTRICTED:{headline:"This video is restricted from playing in your current geographic region"},FLASHLS_ERR_CROSS_DOMAIN:{headline:"The video could not be loaded: crossdomain access denied."}}
1};var o=function n(a,o){var l;var u;var c;var d=[];var f=function t(i){o.errors=e.mergeOptions(o.errors,i);Object.keys(o.errors).forEach(function(e){var t=o.errors[e];if(!t.type){t.type=e}})};f();var h=function e(){a.clearTimeout(u);if(c){c=false;a.removeClass("vjs-waiting")}u=a.setTimeout(function(){if(a.error()||a.paused()||a.ended()){return}c=true;a.addClass("vjs-waiting")},1e3);a.clearTimeout(l);l=a.setTimeout(function(){if(a.error()||a.paused()||a.ended()){return}a.error({code:-2,type:"PLAYER_ERR_TIMEOUT"})},o.timeout);if(a.error()&&a.error().code===-2){a.error(null)}};var p=function e(){var t;while(d.length){t=d.shift();a.off(t[0],t[1])}a.clearTimeout(l);a.clearTimeout(u)};var v=function e(t,i){var r=function e(){if(!a.error()){var t=a.$(".vjs-tech");if(t&&t.type==="application/x-shockwave-flash"&&!t.vjs_getProperty){a.error({code:-2,type:"PLAYER_ERR_TIMEOUT"});return}if(a.paused()){return h()}if(a.ended()){return h()}}i.call(this)};a.on(t,r);d.push([t,r])};var m=function e(){var t=0;p();h();v(["timeupdate","adtimeupdate"],function(){var e=a.currentTime();if(e!==t){t=e;h()}})};var g=function e(){if(!a.currentSrc()){a.error({code:-1,type:"PLAYER_ERR_NO_SRC"})}};var y=function i(){var n="";var s=a.error();var l=t.createElement("div");var u="";if(!s){return}s=e.mergeOptions(s,o.errors[s.code||s.type||0]);if(s.message){n=\'<div class="vjs-errors-details">\'+a.localize("Technical details")+\'\\n        : <div class="vjs-errors-message">\'+a.localize(s.message)+"</div>\\n        </div>"}if(s.code===4&&r&&!r.isSupported()){var c=a.localize("If you are using an older browser please try upgrading or installing Flash.");n+=\'<span class="vjs-errors-flashmessage">\'+c+"</span>"}var d=a.getChild("errorDisplay");l.className="vjs-errors-dialog";l.id="vjs-errors-dialog";u=\'<div class="vjs-errors-content-container">\\n      <h2 class="vjs-errors-headline">\'+this.localize(s.headline)+\'</h2>\\n        <div class="vjs-errors-code"><b>\'+this.localize("Error Code")+":</b> "+(s.type||s.code)+"</div>\\n        "+n+"\\n      </div>";var f=d.closeable(!("dismiss"in s)||s.dismiss);if(f){u+=\'<div class="vjs-errors-ok-button-container">\\n          <button class="vjs-errors-ok-button">\'+this.localize("OK")+"</button>\\n        </div>";l.innerHTML=u;d.fillWith(l);d.contentEl().firstChild.appendChild(d.getChild("closeButton").el());var h=d.el().querySelector(".vjs-errors-ok-button");a.on(h,"click",function(){d.close()})}else{l.innerHTML=u;d.fillWith(l)}if(a.currentWidth()<=600||a.currentHeight()<=250){d.addClass("vjs-xs")}d.one("modalclose",function(){return a.error(null)})};var _=function e(){p();a.removeClass("vjs-errors");a.off("play",m);a.off("play",g);a.off("dispose",e);a.off(["aderror","error"],y)};var b=function t(i){_();n(a,e.mergeOptions(s,i))};b.extend=function(e){return f(e)};b.getAll=function(){return e.mergeOptions(o.errors)};b.timeout=function(e){if(typeof e==="undefined"){return o.timeout}if(e!==o.timeout){o.timeout=e;if(!a.paused()){m()}}};b.disableProgress=function(){};a.on("play",m);a.on("play",g);a.on("dispose",_);a.on(["aderror","contenterror","error"],y);a.ready(function(){a.addClass("vjs-errors")});if(!a.paused()){m()}b.VERSION=i;a.errors=b};var l=function t(i){o(this,e.mergeOptions(s,i))};["extend","getAll"].forEach(function(t){l[t]=function(){e.log.warn("The errors."+t+"() method is not available until the plugin has been initialized!")}});l.VERSION=i;a("errors",l);return l})})();(function(){if(s.getPlugin("catalog")){return}(function(e,t){typeof exports==="object"&&typeof module!=="undefined"?module.exports=t(require("video.js"),require("global/window"),require("global/document"),require("@brightcove/loscore")):typeof i==="function"&&i.amd?i(["video.js","global/window","global/document","@brightcove/loscore"],t):(e=e||self,e.videojsBcCatalog=t(e.videojs,e.window,e.document,e.videojs.bc_))})(this,function(e,t,i,r){"use strict";e=e&&Object.prototype.hasOwnProperty.call(e,"default")?e["default"]:e;t=t&&Object.prototype.hasOwnProperty.call(t,"default")?t["default"]:t;i=i&&Object.prototype.hasOwnProperty.call(i,"default")?i["default"]:i;r=r&&Object.prototype.hasOwnProperty.call(r,"default")?r["default"]:r;var n="3.38.5";var a="video";var s="playlist";var o="search";var l="lazySequence";var u="related";var c=[{attr:"data-video-id",query:"videoId",config:"videoId",type:a},{attr:"data-playlist-id",query:"playlistId",config:"playlistId",type:s},{attr:"data-catalog-search",query:"catalogSearch",config:"search",type:o},{attr:"data-catalog-sequence",query:"catalogSequence",config:"sequence",type:l}];var d=function e(t,i,r){for(var n=0;n<c.length;n++){var a=c[n];var o=a[t];if(i[o]){var l={id:i[o],type:a.type};if(l.type===s){l.playlistVideoId=r}return l}}};var f=function t(i,n,a){var s=n.options_;var u=Boolean(n.el().ownerDocument.querySelector(".bc-iframe"));var f=r.qs();a=a?f.parse(a):f.search;c.concat({query:"playlistVideoId"}
1).forEach(function(e){var t=e.query;if(Array.isArray(a[t])){a[t]=a[t].pop()}});if(c.filter(function(e){return!!i[e.config]}).length>1||c.filter(function(e){return!!s[e.attr]}).length>1){n.error({headline:"Bad Request: Multiple catalog media queries provided. Please only provide one",type:"PLAYER_ERR_CONFLICTING_DATA",code:-3,message:"Too many catalog media parameters were provided in this player. "+"Please use only one of the following: videoId, playlistId, catalogSequence, or catalogSearch."});return}var h=u&&d("query",a,a.playlistVideoId)||d("attr",s,s["data-playlist-video-id"]||a.playlistVideoId)||d("config",i,a.playlistVideoId||i.playlistVideoId);if(!h){return}if(typeof h.id==="string"&&(h.type===o||h.type===l)){var p=h.id;try{h.id=JSON.parse(p)}catch(t){if(h.type===l){e.log.error("sequence must be valid JSON or an object",t);return}}if(!r.isObj(h.id)&&!Array.isArray(h.id)){h.id=p}}["adConfigId","deliveryConfigId"].forEach(function(e){var t=i[e];if(!r.isNonEmptyStr(t)){return}if(r.isObj(h.id)){h.id[e]=t}else if(Array.isArray(h.id)){h.id.forEach(function(i){i[e]=t})}else{h[e]=i[e]}});return h};var h={VIDEO_CLOUD_ERR_ACCOUNT_NOT_FOUND:{headline:"The Video Cloud account was not found."},VIDEO_CLOUD_ERR_RESOURCE_NOT_FOUND:{headline:"The Video Cloud resource was not found."},VIDEO_CLOUD_ERR_VIDEO_NOT_FOUND:{headline:"The Video Cloud video was not found."},VIDEO_CLOUD_ERR_NOT_PLAYABLE:{headline:"The Video Cloud video is not playable."},VIDEO_CLOUD_ERR_AD_CONFIG_ID_NOT_FOUND:{headline:"The Vid'),t[1].s.push('htcove.com"){n.player="players.api.brightcove.com/"+u+"_"+l;return}n.player=P(s,u,l);if(o){n.player+="/"+o}}if(o){if(r.isNonEmptyStr(n.playerName)){n.playerName+=" - "+o}else{n.playerName=o}}};var me=function e(t){return{computedHeight:t.currentHeight(),computedWidth:t.currentWidth(),height:t.height(),width:t.width()}};var ge=function t(r){if(typeof r==="boolean"){i.log.warn("The __iframe__ option should only be used in tests!");return r}try{return e.parent!==e.self}catch(e){return true}};var ye=function n(a){var s=this;if(a===void 0){a={}}var o=false;var l=false;var u={};a=i.mergeOptions(a);a.env=he.hasOwnProperty(a.env)?a.env:"production";ve(this,a);var c=U(this);var d=new te(this,c);var p=new ce(c);var _=new de;var b=r.isNonEmptyStr(a.usage)?a.usage.split(","):[];b.forEach(function(e){_.put(e)});var T=new M(this,p,r.isNonEmptyStr(a.analyticsUrl)?a.analyticsUrl:he[a.env],{logger:c,user:a.user,corpCommsApp:a.corpCommsApp,device:a.device,playerId:a.playerId,embedId:a.embedId,applicationId:a.applicationId});T.defaultParams(function(){var i={account:a.accountId||null,destination:e.location.href,platform_version:a.platformVersion,player:a.player,player_name:a.playerName,source:t.referrer};if(ge(a.__iframe__)){i.destination=t.referrer;if(r.isNonEmptyStr(a.referrer)){i.source=a.referrer}else{try{i.source=e.parent.document.referrer}catch(e){i.source=null}}}return i});J(this,"on","pluginsetup:ads",Z);this.bcAnalytics={client:T,engager:d,history:p,settings:a,VERSION:fe};J(this,"on","usage",function(e){if(!e.name){return i.log.warn("Ignored usage event without a `name` parameter")}_.put(e.name)}
1);var k=function e(){_.put("unload");d.stop({fromUnload:true,ignoreAdState:true,reason:"unload called"})};J(e,"addEventListener","unload",k);var E=function e(t){if(!y(t,s)){return}var i=p.first("loadstart",v(s));var r=p.first("play");var n=p.last("playing");if((r||n)&&!d.isTracking()&&!s.paused()){d.start({period:{start:r||n},reason:"workflow detected that it is playing"})}if(T.timeOfImpression&&T.timeOfView){return}u.workflow=u.workflow||s.setTimeout(function(){u.workflow=null;i=p.first("loadstart",v(s));r=p.first("play");n=p.last("playing");if((i||r)&&!T.timeOfImpression){T.sendVideoImpression({params:{time:Math.min(i||Infinity,r||Infinity)}})}if(i&&n&&!T.timeOfView){T.sendVideoView({params:{time:n}})}},1)};d.on("engagement",function(t){var i=t.engagement,r=i.fromUnload,n=i.ignoreAdState,a=i.period,o=i.restartAlways,l=i.state;var u=m(s);var c={useSendBeaconOnly:r,params:{time:a.end}};if(l.rangeExtras>=2){_.put("disco-engmnt")}var f=_.peek();if(f&&f.length){c.params.usage=f.map(e.encodeURIComponent).sort().join(",")}if(!u||n){T.qos.append("frames",l.videoPlaybackQuality);var h=T.sendVideoEngagement(a,l,c);if(o||h&&!s.paused()){if(u){return}_.flush();d.start({reason:"sent engagement and still playing"})}}});J(this,"on","dispose",function(){Q();_.put("disposed");d.dispose()});J(this,"on",se.concat(ne,re).concat("sourceunstable"),function(e){p.record(e.type,s)});J(this,"on",se.concat("ads-ad-started"),function(e){T.qos.append("event",m(s)?"ad":"content",e.type)});J(this,"on",["loadedmetadata","resize"],function(){T.qos.append("player",me(s))});J(this,"on","fullscreenchange",function(){var e=Date.now();u.fullscreen=s.setTimeout(function(){u.fullscreen=null;T.qos.append("player",me(s),e)},500)});J(this,"on","mediachange",function(){if(s.tech_.vhs){var e=s.tech_.vhs.playlists.media();T.qos.append("bitrate",{bitrates:s.tech_.vhs.bandwidth,playlists:e&&e.attributes&&e.attributes.BANDWIDTH})}});J(this,"on","ratechange",function(){var e=s.playbackRate().toFixed(2);_.put("pr:"+e)});J(this,"on","ready",function(){J(s.tech_,"on","usage",function(e){if(!e.name){return i.log.warn("Ignored usage event without a `name` parameter")}_.put(e.name)}
1);J(s.tech_,"on","bandwidthupdate",function(){T.qos.append("bitrate",{bitrates:s.tech_.vhs.bandwidth,throughput:Math.round(s.tech_.vhs.throughput)})});J(s.tech_,"on","liveresync",function(){s.trigger({type:"usage",name:"hls-live-resync"})});J(s.tech_,"on","videounderflow",function(){s.trigger({type:"usage",name:"hls-video-underflow"})});J(s.tech_,"on","licenserequestattempted",function(){p.add("licenserequestattempted")});J(s,"on","loadedmetadata",function(){var e=s.textTracks();for(var t=0;t<e.length;t++){if(e[t].label==="segment-metadata"){(function(){var i=e[t];var r=void 0;J(i,"addEventListener","cuechange",function(){var e=i.activeCues[0];if(e){var t=s.tech_.vhs.playlists.master.playlists[e.value.playlist];if(r!==t.uri){if(t.attributes&&t.attributes.BANDWIDTH){T.qos.append("bitrate",{rendered:t.attributes.BANDWIDTH})}if(r!==undefined){d.stop({reason:"rendition on screen changed",restartAlways:true})}}r=t.uri}})})()}}})});J(this,"on","waiting",function(e){if(!l&&!m(s)){d.stateBySrc().rebufferingCount++}});J(this,"on","sourcechanged",function(e,t){var i=t.interimEvents;var r=i[0].event;var n=function e(){if(!l&&!m(s)){d.recordState()}};if(t.from){d.stop({reason:"changing sources",period:{end:i[0].time},ignoreAdState:true,src:t.from});d.clearStateBySrc(t.from)}o=false;l=false;T.resetTimesOf();p.reset();i.forEach(function(e){return p.add(e.event.type,e.time)});E();J(s,"onPerSrc","timeupdate",n);J(s,"onePerSrc","sourceunstable",function(){if(f(s)==="content-resuming"){return}var e=s.currentSrc();d.stop({ignoreAdState:true,reason:"sourceunstable",src:e});if(!m(s)){X(s,"off","timeupdate",n)}});J(s,"onPerSrc",["loadstart","play","playing"],E);
1J(s,"onPerSrc",["pause","ratechange"],function(e){if(!l&&!m(s)&&!s.ended()){d.stop({reason:\'saw "\'+e.type+\'"\'});if(s.paused()){J(s,"onePerSrc","playing",function(){d.start({reason:"playback began after a pause"})})}else if(e.type==="ratechange"){u.ratechange=s.setTimeout(function(){u.ratechange=null;d.start({reason:"the playback rate changed"})},1)}}});J(s,"onPerSrc","unstable",function(){if(!l&&!m(s)){l=true;d.stop({reason:"seeking"})}});J(s,"onPerSrc","seek",function(){if(l&&!m(s)){l=false;d.start({reason:"stopped seeking"})}});J(s,"onePerSrc","adstart",function(){if(!h(s)){T.sendVideoImpression({params:{time:p.last("adstart",true)-100}})}});J(s,"onPerSrc","adstart",function(){o=s.ended();d.stop({ignoreAdState:true,period:{end:p.last("adstart",true)},reason:"saw adstart"})});J(s,"onePerSrc","adend",function(){if(!s.paused()&&!s.ended()){E()}});J(s,"onPerSrc","adend",function(){if(!o){d.start({reason:\'saw "adend"\'})}});J(s,"onePerSrc","ended",function(){d.stop({reason:"end of content"});T.sendVideoComplete()})});J(this,"on","catalog_request",function(e){p.record(e.type,s);T.sendCatalogRequest(e.url)});J(this,"on","catalog_request_error",function(e){p.record(e.type,s);T.sendCatalogRequestError(e.url,{error:e.error,xhr:e.response})});J(this,"on","catalog_response",function(e){p.record(e.type,s);T.sendCatalogResponse(e.url,{xhr:e.response})});J(this,"on","play",function(e){if(g(s)){return}var t={params:{time:Date.now()}};if(s.perSourceBehaviors.isSrcStable()){T.sendPlayRequest(t)}else{J(s,"one","sourcechanged",function(){T.sendPlayRequest(t)})}});J(this,"on","error",function(){if(!m(s)){T.sendError()}});J(this,"on","adstart",function(e){T.sendAdStart();u.perSrcDisable=s.setTimeout(function(){u.perSrcDisable=null;s.perSourceBehaviors.disable()},1)});J(this,"on","adend",function(e){T.sendAdEnd();if(u.perSrcDisable){s.clearTimeout(u.perSrcDisable)}else{s.perSourceBehaviors.enable()}});J(this,"on","adtimeout",function(){T.sendAdTimeout()});J(this,"on","ad-hard-timeout",function(){T.sendAdHardTimeout()});J(this,"on",oe,function(e){S(T,e.type,Date.now())});T.qos.append("mr",a.mr);T.sendPlayerInit();T.sendError();J(this,"on","ready",function(){T.defaultParams({feature:h(s)?"adonly":null});T.qos.append("performance",(e.location.href||"").split("?")[1]);T.qos.append("player",me(s));if("hidden"in t&&"visibilityState"in t){if(t.hidden){s.trigger({type:"usage",name:"document-hidden"})}var i=function e(){s.trigger({type:"usage",name:"document-"+t.visibilityState})};J(t,"addEventListener","visibilitychange",i)}if(t.querySelector(".bc-iframe")){s.trigger({type:"usage",name:"iframe-embed"})}else{s.trigger({type:"usage",name:"inpage-embed"})}T.sendPlayerLoad({qos:T.qos.keys(),params:{usage:_.flush()}})})};ye.VERSION=fe;if(i.registerPlugin){i.registerPlugin("bcAnalytics",ye)}else{i.plugin("bcAnalytics",ye)}return ye})})();(function(){if(s.getPlugin("errors")){return}(function(e,t){typeof exports==="object"&&typeof module!=="undefined"?module.exports=t(require("video.js"),require("global/document")):typeof i==="function"&&i.amd?i(["video.js","global/document"],t):(e=e||self,e.videojsErrors=t(e.videojs,e.document))})(this,function(e,t){"use strict";e=e&&e.hasOwnProperty("default")?e["default"]:e;t=t&&t.hasOwnProperty("default")?t["default"]:t;var i="4.3.2";var r=e.getComponent("Flash");var n=!e.browser.IS_IPHONE;var a=e.registerPlugin||e.plugin;var s={header:"",code:"",message:"",timeout:45*1e3,dismiss:n,errors:{1:{type:"MEDIA_ERR_ABORTED",headline:"The video download was cancelled"},2:{type:"MEDIA_ERR_NETWORK",headline:"The video connection was lost, please confirm you are "+"connected to the internet"},3:{type:"MEDIA_ERR_DECODE",headline:"The video is bad or in a format that cannot be played on your browser"},4:{type:"MEDIA_ERR_SRC_NOT_SUPPORTED",headline:"This video is either unavailable or not supported in this browser"},5:{type:"MEDIA_ERR_ENCRYPTED",headline:"The video you are trying to watch is encrypted and we do not know how "+"to decrypt it"},unknown:{type:"MEDIA_ERR_UNKNOWN",headline:"An unanticipated problem was encountered, check back soon and try again"},"-1":{type:"PLAYER_ERR_NO_SRC",headline:"No video has been loaded"},"-2":{type:"PLAYER_ERR_TIMEOUT",headline:"Could not download the video"},PLAYER_ERR_DOMAIN_RESTRICTED:{headline:"This video is restricted from playing on your current domain"},PLAYER_ERR_IP_RESTRICTED:{headline:"This video is restricted at your current IP address"},PLAYER_ERR_GEO_RESTRICTED:{headline:"This video is restricted from playing in your current geographic region"},FLASHLS_ERR_CROSS_DOMAIN:{headline:"The video could not be loaded: crossdomain access denied."}}
1};var o=function n(a,o){var l;var u;var c;var d=[];var f=function t(i){o.errors=e.mergeOptions(o.errors,i);Object.keys(o.errors).forEach(function(e){var t=o.errors[e];if(!t.type){t.type=e}})};f();var h=function e(){a.clearTimeout(u);if(c){c=false;a.removeClass("vjs-waiting")}u=a.setTimeout(function(){if(a.error()||a.paused()||a.ended()){return}c=true;a.addClass("vjs-waiting")},1e3);a.clearTimeout(l);l=a.setTimeout(function(){if(a.error()||a.paused()||a.ended()){return}a.error({code:-2,type:"PLAYER_ERR_TIMEOUT"})},o.timeout);if(a.error()&&a.error().code===-2){a.error(null)}};var p=function e(){var t;while(d.length){t=d.shift();a.off(t[0],t[1])}a.clearTimeout(l);a.clearTimeout(u)};var v=function e(t,i){var r=function e(){if(!a.error()){var t=a.$(".vjs-tech");if(t&&t.type==="application/x-shockwave-flash"&&!t.vjs_getProperty){a.error({code:-2,type:"PLAYER_ERR_TIMEOUT"});return}if(a.paused()){return h()}if(a.ended()){return h()}}i.call(this)};a.on(t,r);d.push([t,r])};var m=function e(){var t=0;p();h();v(["timeupdate","adtimeupdate"],function(){var e=a.currentTime();if(e!==t){t=e;h()}})};var g=function e(){if(!a.currentSrc()){a.error({code:-1,type:"PLAYER_ERR_NO_SRC"})}};var y=function i(){var n="";var s=a.error();var l=t.createElement("div");var u="";if(!s){return}s=e.mergeOptions(s,o.errors[s.code||s.type||0]);if(s.message){n=\'<div class="vjs-errors-details">\'+a.localize("Technical details")+\'\\n        : <div class="vjs-errors-message">\'+a.localize(s.message)+"</div>\\n        </div>"}if(s.code===4&&r&&!r.isSupported()){var c=a.localize("If you are using an older browser please try upgrading or installing Flash.");n+=\'<span class="vjs-errors-flashmessage">\'+c+"</span>"}var d=a.getChild("errorDisplay");l.className="vjs-errors-dialog";l.id="vjs-errors-dialog";u=\'<div class="vjs-errors-content-container">\\n      <h2 class="vjs-errors-headline">\'+this.localize(s.headline)+\'</h2>\\n        <div class="vjs-errors-code"><b>\'+this.localize("Error Code")+":</b> "+(s.type||s.code)+"</div>\\n        "+n+"\\n      </div>";var f=d.closeable(!("dismiss"in s)||s.dismiss);if(f){u+=\'<div class="vjs-errors-ok-button-container">\\n          <button class="vjs-errors-ok-button">\'+this.localize("OK")+"</button>\\n        </div>";l.innerHTML=u;d.fillWith(l);d.contentEl().firstChild.appendChild(d.getChild("closeButton").el());var h=d.el().querySelector(".vjs-errors-ok-button");a.on(h,"click",function(){d.close()})}else{l.innerHTML=u;d.fillWith(l)}if(a.currentWidth()<=600||a.currentHeight()<=250){d.addClass("vjs-xs")}d.one("modalclose",function(){return a.error(null)})};var _=function e(){p();a.removeClass("vjs-errors");a.off("play",m);a.off("play",g);a.off("dispose",e);a.off(["aderror","error"],y)};var b=function t(i){_();n(a,e.mergeOptions(s,i))};b.extend=function(e){return f(e)};b.getAll=function(){return e.mergeOptions(o.errors)};b.timeout=function(e){if(typeof e==="undefined"){return o.timeout}if(e!==o.timeout){o.timeout=e;if(!a.paused()){m()}}};b.disableProgress=function(){};a.on("play",m);a.on("play",g);a.on("dispose",_);a.on(["aderror","contenterror","error"],y);a.ready(function(){a.addClass("vjs-errors")});if(!a.paused()){m()}b.VERSION=i;a.errors=b};var l=function t(i){o(this,e.mergeOptions(s,i))};["extend","getAll"].forEach(function(t){l[t]=function(){e.log.warn("The errors."+t+"() method is not available until the plugin has been initialized!")}});l.VERSION=i;a("errors",l);return l})})();(function(){if(s.getPlugin("catalog")){return}(function(e,t){typeof exports==="object"&&typeof module!=="undefined"?module.exports=t(require("video.js"),require("global/window"),require("global/document"),require("@brightcove/loscore")):typeof i==="function"&&i.amd?i(["video.js","global/window","global/document","@brightcove/loscore"],t):(e=e||self,e.videojsBcCatalog=t(e.videojs,e.window,e.document,e.videojs.bc_))})(this,function(e,t,i,r){"use strict";e=e&&Object.prototype.hasOwnProperty.call(e,"default")?e["default"]:e;t=t&&Object.prototype.hasOwnProperty.call(t,"default")?t["default"]:t;i=i&&Object.prototype.hasOwnProperty.call(i,"default")?i["default"]:i;r=r&&Object.prototype.hasOwnProperty.call(r,"default")?r["default"]:r;var n="3.38.5";var a="video";var s="playlist";var o="search";var l="lazySequence";var u="related";var c=[{attr:"data-video-id",query:"videoId",config:"videoId",type:a},{attr:"data-playlist-id",query:"playlistId",config:"playlistId",type:s},{attr:"data-catalog-search",query:"catalogSearch",config:"search",type:o},{attr:"data-catalog-sequence",query:"catalogSequence",config:"sequence",type:l}];var d=function e(t,i,r){for(var n=0;n<c.length;n++){var a=c[n];var o=a[t];if(i[o]){var l={id:i[o],type:a.type};if(l.type===s){l.playlistVideoId=r}return l}}};var f=function t(i,n,a){var s=n.options_;var u=Boolean(n.el().ownerDocument.querySelector(".bc-iframe"));var f=r.qs();a=a?f.parse(a):f.search;c.concat({query:"playlistVideoId"}
1).forEach(function(e){var t=e.query;if(Array.isArray(a[t])){a[t]=a[t].pop()}});if(c.filter(function(e){return!!i[e.config]}).length>1||c.filter(function(e){return!!s[e.attr]}).length>1){n.error({headline:"Bad Request: Multiple catalog media queries provided. Please only provide one",type:"PLAYER_ERR_CONFLICTING_DATA",code:-3,message:"Too many catalog media parameters were provided in this player. "+"Please use only one of the following: videoId, playlistId, catalogSequence, or catalogSearch."});return}var h=u&&d("query",a,a.playlistVideoId)||d("attr",s,s["data-playlist-video-id"]||a.playlistVideoId)||d("config",i,a.playlistVideoId||i.playlistVideoId);if(!h){return}if(typeof h.id==="string"&&(h.type===o||h.type===l)){var p=h.id;try{h.id=JSON.parse(p)}catch(t){if(h.type===l){e.log.error("sequence must be valid JSON or an object",t);return}}if(!r.isObj(h.id)&&!Array.isArray(h.id)){h.id=p}}["adConfigId","deliveryConfigId"].forEach(function(e){var t=i[e];if(!r.isNonEmptyStr(t)){return}if(r.isObj(h.id)){h.id[e]=t}else if(Array.isArray(h.id)){h.id.forEach(function(i){i[e]=t})}else{h[e]=i[e]}});return h};var h={VIDEO_CLOUD_ERR_ACCOUNT_NOT_FOUND:{headline:"The Video Cloud account was not found."},VIDEO_CLOUD_ERR_RESOURCE_NOT_FOUND:{headline:"The Video Cloud resource was not found."},VIDEO_CLOUD_ERR_VIDEO_NOT_FOUND:{headline:"The Video Cloud video was not found."},VI'),t[0].s.push('eo Cloud SSAI ad config id was not found."},VIDEO_CLOUD_ERR_TOKEN_REQUIRED:{headline:"A JWT is required, but was not provided."},VIDEO_CLOUD_ERR_TOKEN_INVALID:{headline:"The JWT provided did not pass validation."},VIDEO_CLOUD_ERR_SERVER:{headline:"There was a server error that prevented playback."}};var p=function e(t){var i=function e(){return t.errors.extend(h)};var n=r.isFn(t.usingPlugin)?t.usingPlugin("errors"):r.isFn(t.errors)&&r.isFn(t.errors.extend);if(!n){t.on("pluginsetup:errors",i);t.on("dispose",function(){t.off("pluginsetup:errors",i)});return}i()};var v={400:{AD_CONFIG_NOT_FOUND:"VIDEO_CLOUD_ERR_AD_CONFIG_ID_NOT_FOUND"},401:{TOKEN_REQUIRED:"VIDEO_CLOUD_ERR_TOKEN_REQUIRED",TOKEN_VALIDATION:"VIDEO_CLOUD_ERR_TOKEN_INVALID"},403:{ACCESS_DENIED:{DOMAIN:"PLAYER_ERR_DOMAIN_RESTRICTED",CLIENT_IP:"PLAYER_ERR_IP_RESTRICTED",CLIENT_GEO:"PLAYER_ERR_GEO_RESTRICTED",OFFERS:"PLAYER_ERR_OFFER_RESTRICTED",TAGS:"PLAYER_ERR_TAG_RESTRICTED"},VIDEO_NOT_PLAYABLE:"VIDEO_CLOUD_ERR_NOT_PLAYABLE",PLAYLIST_NOT_PLAYABLE:"VIDEO_CLOUD_ERR_NOT_PLAYABLE"},404:{ACCOUNT_NOT_FOUND:"VIDEO_CLOUD_ERR_ACCOUNT_NOT_FOUND",RESOURCE_NOT_FOUND:"VIDEO_CLOUD_ERR_RESOURCE_NOT_FOUND",VIDEO_NOT_FOUND:"VIDEO_CLOUD_ERR_VIDEO_NOT_FOUND",PLAYLIST_NOT_FOUND:"VIDEO_CLOUD_ERR_RESOURCE_NOT_FOUND"},500:{SERVER_ERROR:"VIDEO_CLOUD_ERR_SERVER"},502:{SERVER_ERROR:"VIDEO_CLOUD_ERR_SERVER",VIDEO_RETRIEVE_FAILURE:"VIDEO_CLOUD_ERR_SERVER",VIDEO_URLS_RETRIEVE_FAILURE:"VIDEO_CLOUD_ERR_SERVER",PLAYLIST_RETRIEVE_FAILURE:"VIDEO_CLOUD_ERR_SERVER",ACCOUNT_RETRIEVE_FAILURE:"VIDEO_CLOUD_ERR_SERVER",PLAYBACK_RIGHT_RETRIEVE_FAILURE:"VIDEO_CLOUD_ERR_SERVER",LICENSE_RETRIEVE_FAILURE:"VIDEO_CLOUD_ERR_SERVER",OFFERS_RETRIEVE_FAILURE:"VIDEO_CLOUD_ERR_SERVER",RIGHTS_RETRIEVE_FAILURE:"VIDEO_CLOUD_ERR_SERVER"},503:{SERVICE_UNAVAILABLE:"VIDEO_CLOUD_ERR_SERVER"},504:{SERVER_TIMEOUT:"VIDEO_CLOUD_ERR_SERVER"}};var m=function e(t,i){var n=i.shift();if(r.isNonEmptyStr(t[n])){return t[n]}if(!n||!t[n]){return"unknown"}return e(t[n],i)};var g=function e(t,i){i=Array.isArray(i)?i[0]:i||{};return{code:m(v,[t,i.error_code,i.error_subcode])}};var y=function t(i,r,n){if(n.embedHasPoster){i.poster=r.options_.poster}if(n.embedHasSources){i.sources=r.options_.sources}if(n.embedHasTracks){i.textTracks=r.options_.tracks}if(i.textTracks&&i.textTracks.length>0&&e.browser.IS_ANY_SAFARI){r.$(".vjs-tech").setAttribute("crossorigin","anonymous")}return i};var _=function e(t,i){return function(e,r){if(e){e.data=r;t.catalog.error=e;t.error(g(e.status,r));return t.trigger("bc-catalog-error")}t.ready(function(){return t.catalog.load(i(r))})}};var b=function t(i,r,n){if(i===a){return _(r,function(e){return y(e,r,n)})}return _(r,function(t){var a=y({},r,n);if(Array.isArray(t.videos)){var o=t.videos[0]||{};t.videos[0]=e.mergeOptions(o,a,{rawItem:o})}else{t.videos=[a]}if(n.playlistVideoId&&i===s){for(var l=0;l<t.length;l++){if(t[l].id===n.playlistVideoId||"ref:"+t[l].referenceId===n.playlistVideoId){t.startingIndex=l;break}}}return t})};var T=function e(){return Number.MAX_SAFE_INTEGER||Math.pow(2,53)-2};var S=function e(t,i){var r=t.cuePoints;var n=r[i];var a;for(i++;i<r.length;i++){if(r[i].time>n.time){a=r[i];break}}var s=isFinite(t.duration)?t.duration:T();n.startTime=n.time;if(a&&a.time<s){n.endTime=a.time}else{n.endTime=s}return n};var k=function e(t){var i=t.remoteTextTracks();if(i){var r=i.length;while(r--){t.removeRemoteTextTrack(i[r])}}var n=t.textTracks();if(n){var a=n.length;while(a--){var s=n[a];if(s.kind==="metadata"&&s.cues){var o=s.cues.length;while(o--){s.removeCue(s.cues[o])}}s.mode="disabled"}}};var E=function e(i,r){k(i);if(!r.cuePoints){return}var n=i.mediaCuePointsTrack();var a=t.VTTCue||t.vttjs&&t.vttjs.VTTCue||t.TextTrackCue;for(var s=0;s<r.cuePoints.length;s++){var o=r.cuePoints[s];var l=new a(o.startTime,o.endTime,o.type);l.originalCuePoint=o;n.addCue(l)}n.mode="hidden"};var j=function e(t,i,r){var n=0;for(;n<t.length;n++){if(i(t[n])){return t[n]}}return r};function w(e){var t=w.windowLocationProtocol();var i=function e(i){return i.src&&i.src.indexOf(t)===0};if(e&&e.length&&e.length>0){return j(e,i,e[0]).src}}w.windowLocationProtocol=function(){return t.location.protocol};var C=function e(t,i){return"https://"+t+".api."+(i?i+".":"")+"brightcove.com/playback/v1/"};var I={production:{papi:C("edge"),epa:C("edge-auth")},qa:{papi:C("edge","qa"),epa:C("edge-auth","qa")},staging:{papi:C("edge","staging"),epa:C("edge-auth","staging")}};var A=function e(i){return t.encodeURIComponent(i)};var x=function e(t){return typeof t==="string"&&/^BCpk/.test(t)};var P=function e(t){var i={ad_config_id:"adConfigId",config_id:"deliveryConfigId"};var n=["ad_config_id","config_id","tveToken"];if(t.type!==a){n.push("limit");n.push("offset")}if(t.type===o){n.push("q");n.push("sort")}var s={};
1n.forEach(function(e){var r=i[e]||e;if(t[r]){s[e]=t[r]}});var l=r.qs().stringify(s);return l?"?"+l:""};var O=function e(t,i){var n=i.env,a=i.type;if(!n){n="production"}var l;if(r.isNonEmptyStr(i.baseUrl)){l=i.baseUrl}else if(x(i.policyKey)){l=I[n].papi}else{l=I[n].epa}if(l.slice(-1)==="/"){l=l.slice(0,-1)}var c;c=l+"/accounts/"+A(t)+"/"+(a===s?"playlists":"videos");if(a!==o){c+="/"+A(i.id)}if(a===u){c+="/related"}c+=P(i);return c};var L=function t(i,n,l,c){if(c===void 0){c=function e(){}}var d=l.deliveryConfigId,f=l.adConfigId,h=l.id,p=l.bcovAuthToken,v=l.policyKey,m=l.q,g=l.type;if(!n||!g){return c(new Error("accountId and type are required"))}if(g===o&&!m){return c(new Error("q is required when performing a search"))}else if(g!==o&&!h){return c(new Error("id is required when getting a video or playlist"))}var y=O(n,l);var _=function e(t,l){i.trigger(r.assign({type:"catalog_"+t,accountId:n,deliveryConfigId:d,adConfigId:f,playlistId:g===s?h:undefined,related:g===u?h:undefined,search:g===o?m:undefined,url:y,videoId:g===a?h:undefined},l))};var b=function e(t,i,r){return _("request_error",{error:t,response:i,body:r})};_("request");var T={};if(x(v)){T.Accept="application/json;pk="+v}else if(p){T.Authorization="Bearer "+p}var S=e.xhr({headers:T,json:true,url:y},function(e,t,i){if(e){b(e,S,i);return c(e,i)}if(S.status>=400){b(new Error("Request Failed"),S,i);return c(S,i)}_("response",{response:S});c(null,i)});var k=S.onabort.bind(S);S.onabort=function(){var e=new Error("Request Aborted");k();b(e,S,null);return c(e,null)};return S};var D=function e(){var i=t.GestureEvent;return!!(i&&t.WebKitMediaKeys&&t.WebKitMediaKeys.isTypeSupported("com.apple.fps.1_0","video/mp4"))};var R=function i(){return e.browser.IS_EDGE&&/Chrome/i.test(t.navigator.userAgent)};var N=function i(){return t.navigator.requestMediaKeySystemAccess&&!e.browser.IS_IOS&&(e.browser.IS_FIREFOX||e.browser.IS_CHROME||R())};var M=function e(t){var i=t.tech(true).vhs;return i&&i.canChangeType&&i.canChangeType()};var U=function e(){return t.MediaSource&&t.MediaSource.isTypeSupported&&t.MediaSource.isTypeSupported(\'video/mp4; codecs="hvc1.1.6.L60.90"\')};var B=function e(t){return t==="application/vnd.apple.mpegurl"||t==="application/x-mpegURL"};var F=function t(i){var r=e.parseUrl(i);return r.hostname.indexOf("boltdns.net")!==-1&&r.pathname.indexOf("/aes128/")!==-1};var H=function e(t){return t.isSecureContext||!/^http:/.test(t.location.href)};var V={isSafariWithFairplaySupport:D,isChromiumEdge:R,isBrowserWithWidevineSupport:N,isHlsType:B,isCodecSwitchingSupported:M,isHEVCSupported:U,isBoltEncryptedHls:F,preferHttps:H};var q="https://fps.brightcove.com/v1/application_certificate";var z="com.apple.fps.1_0";var W=function e(i){return t.btoa(String.fromCharCode.apply(null,i))};var G=function e(t){return String.fromCharCode.apply(null,new Uint16Array(t.buffer))};var Y=function e(t){var i=t.source,r=t.publisherId,n=t.applicationId;var a=i.key_systems[z].certificate_url;if(a){return a}if(n&&r){return q+"/"+r+"/"+n}return null};var K=function t(i,r){var n=Y({source:i.source,publisherId:i.publisherId,applicationId:i.applicationId});e.xhr({uri:n,responseType:"arraybuffer"},function(e,t,i){if(e){r(e);return}r(null,new Uint8Array(i))})};var X=function e(t,i){return G(i).split("//")[1]};var Q=function t(i){return function(t,r,n,a){var s={"Content-Type":"application/json",Accept:"application/octet-stream"};if(t.emeHeaders&&t.emeHeaders["BCOV-Auth"]){s["BCOV-Auth"]=t.emeHeaders["BCOV-Auth"]}e.xhr({uri:i,method:"POST",responseType:"arraybuffer",json:{publisher_id:t.publisherId,application_id:t.applicationId,key_id:r.split("/")[3],server_playback_context:W(n)},headers:s},function(e,t,i){if(e){a(e);return}if(t.statusCode>=400&&t.statusCode<=599){a({});return}a(null,i)})}};var J={getCertificateUri:Y,getCertificate:K,getContentId:X,createGetLicenseFunc:Q,base64EncodeUint8Array:W,FAIRPLAY_KEY_SYSTEM:z};var Z=function e(t){if(t===void 0){t=[]}return t.filter(function(e){return e.keySystems&&e.keySystems[J.FAIRPLAY_KEY_SYSTEM]})};var $=function e(t,i,r){var n=Z(i);if(!n.length||!t.eme){r();return}
1var a=t.eme.options||{};var s=0;var o=[];var l={};var u=function e(t){var i=n[t];var u=J.getCertificateUri({source:i,publisherId:a.publisherId,applicationId:a.applicationId});if(!u){return"continue"}if(l[u]){l[u].push(i);return"continue"}s++;l[u]=[i];i.keySystems[J.FAIRPLAY_KEY_SYSTEM].getCertificate({source:i,publisherId:a.publisherId,applicationId:a.applicationId},function(e,t){if(e){o.push({message:"Unable to resolve FairPlay certificate",error:e})}else{var i=l[u];for(var n=0;n<i.length;n++){var a=i[n];a.keySystems[J.FAIRPLAY_KEY_SYSTEM].getCertificate=function(e,i){i(null,t)}}}s--;if(!s){if(o.length){r(o);return}r()}})};for(var c=0;c<n.length;c++){var d=u(c);if(d==="continue")continue}};var ee=function e(t){if(!V.isHlsType(t.type)||!t.key_systems||!t.key_systems[J.FAIRPLAY_KEY_SYSTEM]){return null}var i=t.key_systems[J.FAIRPLAY_KEY_SYSTEM];var r=i.key_request_url;var n={};n[J.FAIRPLAY_KEY_SYSTEM]={getCertificate:J.getCertificate,getLicense:J.createGetLicenseFunc(r),getContentId:J.getContentId};return n};var te=function e(t){return ee(t)};var ie={getKeySystemOptions:te,getFairPlaySources:Z,resolveFairPlayCertificates:$};var re=function e(t,i){i=i||t&&t.mediainfo||{};return t&&t.hasPlugin&&t.hasPlugin("vr")&&i&&i.projection};var ne=50*1024*1024;var ae=3*1024*1024;var se=.5*1024*1024;var oe={http:{nativeHls:{http:{"application/vnd.apple.mpegurl":1,"video/mp4":5,"application/dash+xml":3},https:{"application/vnd.apple.mpegurl":2,"video/mp4":6,"application/dash+xml":4}},noNativeHls:{http:{"application/vnd.apple.mpegurl":1,"video/mp4":5,"application/dash+xml":3},https:{"application/vnd.apple.mpegurl":2,"video/mp4":6,"application/dash+xml":4}},preferMp4:{http:{"application/vnd.apple.mpegurl":3,"video/mp4":1,"application/dash+xml":5},https:{"application/vnd.apple.mpegurl":4,"video/mp4":2,"application/dash+xml":6}}},https:{nativeHls:{http:{"application/vnd.apple.mpegurl":2,"video/mp4":6,"application/dash+xml":5},https:{"application/vnd.apple.mpegurl":1,"video/mp4":4,"application/dash+xml":3}},noNativeHls:{http:{"application/vnd.apple.mpegurl":5,"video/mp4":4,"application/dash+xml":6},https:{"application/vnd.apple.mpegurl":1,"video/mp4":3,"application/dash+xml":2}},preferMp4:{http:{"application/vnd.apple.mpegurl":5,"video/mp4":4,"application/dash+xml":6},https:{"application/vnd.apple.mpegurl":2,"video/mp4":1,"application/dash+xml":3}}},codecs:{switching:{hevc:{combined:1,hevc:2,avc:3},nohevc:{combined:5,hevc:6,avc:4}},noswitching:{hevc:{combined:3,hevc:5,avc:2},nohevc:{combined:4,hevc:6,avc:1}}}};var le={1:3,2:3.2,3:4.2,4:5,5:6,6:7,7:8};var ue=function e(t,i){return i.type==="application/vnd.apple.mpegurl"&&i.key_systems&&V.isSafariWithFairplaySupport()&&t.eme&&t.eme.options};var ce=function e(t,i){return i.type==="application/vnd.apple.mpegurl"&&i.key_systems&&V.isBrowserWithWidevineSupport()&&t.eme&&t.eme.options};var de=function t(i,r,n,a){if(!r.src){return 9999}if(r.type==="application/vnd.apple.mpegurl"&&r.key_systems&&(r.key_systems["com.apple.fps.1_0"]&&!ue(n,r)||r.key_systems["com.widevine.alpha"]&&!ce(n,r))){return 9999}if(r.profiles&&r.profiles.match(/hbbtv/i)){return 9999}if(e.browser.IS_IOS&&r.type==="application/vnd.apple.mpegurl"&&le[r.ext_x_version]>parseFloat(e.browser.IOS_VERSION)){return 9999}i=i[/^[^:]*/.exec(r.src)];if(!i){return 9999}var s=i[r.type]||9999;var o=r.codecs&&r.codecs.indexOf("avc1")!==-1;var l=r.codecs&&r.codecs.indexOf("hvc1")!==-1;var u=o&&l;var c;if(u){c=a.combined}else if(l){c=a.hevc}else{c=a.avc}return s+c};var fe=function t(i,r,n,a,s){var o=he.preferHttps()?oe.https:oe.http;var l;if(re(i,r)){l=ne}else if(e.browser.IS_IOS||e.browser.IS_ANDROID){l=se}else{l=ae}if(he.preferMp4(i,r)){o=o.preferMp4}else if(he.supportsNativeHls()){o=o.nativeHls}else{o=o.noNativeHls}var u=de(o,a,i,n)-de(o,s,i,n);if(u){return u}if(a.type==="video/mp4"&&s.type==="video/mp4"){if(a.avg_bitrate&&s.avg_bitrate){return Math.abs(a.avg_bitrate-l)-Math.abs(s.avg_bitrate-l)}if(a.avg_bitrate||s.avg_bitrate){u=a.avg_bitrate?-1:1}}if(a.type==="application/vnd.apple.mpegurl"&&s.type==="application/vnd.apple.mpegurl"){if(a.ext_x_version&&s.ext_x_version){return s.ext_x_version-a.ext_x_version}if(a.ext_x_version||s.ext_x_version){u=a.ext_x_version?-1:1}}return u};function he(t,i,n){if(n===void 0){n={}}var a=i.sources||[];var s=[];var o=n,l=o.bcovAuthToken,u=o.policyKey,c=o.allowPlayreadyInChromiumEdge;var d=!!l&&u===null;if(l&&!r.isNonEmptyStr(l)){e.log.error("The bcovAuthToken catalog property must be a string");l=null}for(var f=0;f<a.length;f++){var h=a[f];if(h.key_systems&&h.key_systems["com.microsoft.playready"]&&V.isChromiumEdge()&&(d&&typeof c==="undefined"||c===false)){if(Object.keys(h.key_systems).length>1){delete h.key_systems["com.microsoft.playready"]}else{a.splice(f,1);f--;continue}}if(l&&h.key_systems){h.emeHeaders={"BCOV-Auth":l}}if(h.src&&h.container==="MP4"){h.type="video/mp4"}else if(h.src&&(h.container==="M2TS"||V.isHlsType(h.type))){h.type="application/vnd.apple.mpegurl";if(ue(t,h)){h.keySystems=ie.getKeySystemOptions(h)}if(V.isBoltEncryptedHls(h.src)&&l){if(h.vmap&&t.hasPlugin("ssai")){h.bcovAuthToken=l}else{var p=e.parseUrl(h.src);var v="bcov_auth="+l;if(!p.search){v="?"+v}else if(!(p.search[p.search.length-1]==="&")){v="&"+v}h.src+=v}}}s.push(h)}var m=he.supportsSwitchingCodecs(t)?"switching":"noswitching";var g=he.supportsHEVC()?"hevc":"nohevc";var y=oe.codecs[m][g];return s.sort(fe.bind(null,t,i,y))}he.supportsNativeHls=function(){var t=i.createElement("video");var r=e.options.hls&&e.options.hls.overrideNative;if(t&&t.canPlayType){return!r&&/probably|maybe/i.test(t.canPlayType("application/vnd.apple.mpegurl"))}return false};he.preferHttps=function(){return V.preferHttps(t)};he.supportsHEVC=function(){return V.isHEVCSupported()};he.supportsSwitchingCodecs=function(e){return V.isCodecSwitchingSupported(e)};he.preferMp4=function(t,i){return e.browser.IS_ANDROID&&e.browser.ANDROID_VERSION<5||re(t,i)};var pe=function(){function e(){this.defaults_={}}var t=e.prototype;t.normalize=function e(t,i,n){var a=r.assign({},this.defaults_);if(t&&!r.isObj(t)){a.id=t}else{r.assign(a,t);
1if(r.isObj(t.id)){r.assign(a,t.id);if(!t.id.hasOwnProperty("id")){delete a.id}}}if(typeof i==="string"){a.type=i}if(a.type===o){if(!a.q){a.q=a.id}delete a.id}if(typeof t.deliveryConfigId==="string"){a.deliveryConfigId=t.deliveryConfigId}if(typeof n==="string"){a.adConfigId=n}if((a.type===s||a.type===o)&&a.limit===undefined){a.limit="100"}return a};t.setDefaults=function e(t){if(t===null){this.defaults_={}}else{r.assign(this.defaults_,t)}};t.getDefault=function e(t){return r.isObj(this.defaults_)&&this.defaults_[t]||undefined};t.getDefaults=function e(){return r.isObj(this.defaults_)&&r.assign({},this.defaults_)||{}};return e}();var ve=/([A-Za-z0-9])_([A-Za-z0-9])/g;var me=function e(t){return t.replace(ve,function(e,t,i){return t+i.toUpperCase()})};var ge=function t(i){var r=e.mergeOptions(i);Object.keys(r).filter(function(e){return e.match(ve)}).forEach(function(e){r[me(e)]=r[e]});return r};var ye=function e(t,r){if(!r){return}t.mediainfo=ge(r);var n=Boolean(t.el().ownerDocument.querySelector(".bc-iframe"));var a=t.mediainfo.name;if(n&&a){i.title=a}};var _e=function e(t,i){if(!i){return}t.playlistinfo=ge(i);delete t.playlistinfo.videos};var be=function e(t,i){return(t.type==="application/vnd.apple.mpegurl"||t.type==="application/dash+xml")&&i.toLowerCase()==="html5"};function Te(i){var n=this;var u=function e(t){if(t&&t.accountId){n.trigger({type:"usage",name:"catalog-get-account-'),t[1].s.push('DEO_CLOUD_ERR_NOT_PLAYABLE:{headline:"The Video Cloud video is not playable."},VIDEO_CLOUD_ERR_AD_CONFIG_ID_NOT_FOUND:{headline:"The Video Cloud SSAI ad config id was not found."},VIDEO_CLOUD_ERR_TOKEN_REQUIRED:{headline:"A JWT is required, but was not provided."},VIDEO_CLOUD_ERR_TOKEN_INVALID:{headline:"The JWT provided did not pass validation."},VIDEO_CLOUD_ERR_SERVER:{headline:"There was a server error that prevented playback."}};var p=function e(t){var i=function e(){return t.errors.extend(h)};var n=r.isFn(t.usingPlugin)?t.usingPlugin("errors"):r.isFn(t.errors)&&r.isFn(t.errors.extend);if(!n){t.on("pluginsetup:errors",i);t.on("dispose",function(){t.off("pluginsetup:errors",i)});return}i()};var v={400:{AD_CONFIG_NOT_FOUND:"VIDEO_CLOUD_ERR_AD_CONFIG_ID_NOT_FOUND"},401:{TOKEN_REQUIRED:"VIDEO_CLOUD_ERR_TOKEN_REQUIRED",TOKEN_VALIDATION:"VIDEO_CLOUD_ERR_TOKEN_INVALID"},403:{ACCESS_DENIED:{DOMAIN:"PLAYER_ERR_DOMAIN_RESTRICTED",CLIENT_IP:"PLAYER_ERR_IP_RESTRICTED",CLIENT_GEO:"PLAYER_ERR_GEO_RESTRICTED",OFFERS:"PLAYER_ERR_OFFER_RESTRICTED",TAGS:"PLAYER_ERR_TAG_RESTRICTED"},VIDEO_NOT_PLAYABLE:"VIDEO_CLOUD_ERR_NOT_PLAYABLE",PLAYLIST_NOT_PLAYABLE:"VIDEO_CLOUD_ERR_NOT_PLAYABLE"},404:{ACCOUNT_NOT_FOUND:"VIDEO_CLOUD_ERR_ACCOUNT_NOT_FOUND",RESOURCE_NOT_FOUND:"VIDEO_CLOUD_ERR_RESOURCE_NOT_FOUND",VIDEO_NOT_FOUND:"VIDEO_CLOUD_ERR_VIDEO_NOT_FOUND",PLAYLIST_NOT_FOUND:"VIDEO_CLOUD_ERR_RESOURCE_NOT_FOUND"},500:{SERVER_ERROR:"VIDEO_CLOUD_ERR_SERVER"},502:{SERVER_ERROR:"VIDEO_CLOUD_ERR_SERVER",VIDEO_RETRIEVE_FAILURE:"VIDEO_CLOUD_ERR_SERVER",VIDEO_URLS_RETRIEVE_FAILURE:"VIDEO_CLOUD_ERR_SERVER",PLAYLIST_RETRIEVE_FAILURE:"VIDEO_CLOUD_ERR_SERVER",ACCOUNT_RETRIEVE_FAILURE:"VIDEO_CLOUD_ERR_SERVER",PLAYBACK_RIGHT_RETRIEVE_FAILURE:"VIDEO_CLOUD_ERR_SERVER",LICENSE_RETRIEVE_FAILURE:"VIDEO_CLOUD_ERR_SERVER",OFFERS_RETRIEVE_FAILURE:"VIDEO_CLOUD_ERR_SERVER",RIGHTS_RETRIEVE_FAILURE:"VIDEO_CLOUD_ERR_SERVER"},503:{SERVICE_UNAVAILABLE:"VIDEO_CLOUD_ERR_SERVER"},504:{SERVER_TIMEOUT:"VIDEO_CLOUD_ERR_SERVER"}};var m=function e(t,i){var n=i.shift();if(r.isNonEmptyStr(t[n])){return t[n]}if(!n||!t[n]){return"unknown"}return e(t[n],i)};var g=function e(t,i){i=Array.isArray(i)?i[0]:i||{};return{code:m(v,[t,i.error_code,i.error_subcode])}};var y=function t(i,r,n){if(n.embedHasPoster){i.poster=r.options_.poster}if(n.embedHasSources){i.sources=r.options_.sources}if(n.embedHasTracks){i.textTracks=r.options_.tracks}if(i.textTracks&&i.textTracks.length>0&&e.browser.IS_ANY_SAFARI){r.$(".vjs-tech").setAttribute("crossorigin","anonymous")}return i};var _=function e(t,i){return function(e,r){if(e){e.data=r;t.catalog.error=e;t.error(g(e.status,r));return t.trigger("bc-catalog-error")}t.ready(function(){return t.catalog.load(i(r))})}};var b=function t(i,r,n){if(i===a){return _(r,function(e){return y(e,r,n)})}return _(r,function(t){var a=y({},r,n);if(Array.isArray(t.videos)){var o=t.videos[0]||{};t.videos[0]=e.mergeOptions(o,a,{rawItem:o})}else{t.videos=[a]}if(n.playlistVideoId&&i===s){for(var l=0;l<t.length;l++){if(t[l].id===n.playlistVideoId||"ref:"+t[l].referenceId===n.playlistVideoId){t.startingIndex=l;break}}}return t})};var T=function e(){return Number.MAX_SAFE_INTEGER||Math.pow(2,53)-2};var S=function e(t,i){var r=t.cuePoints;var n=r[i];var a;for(i++;i<r.length;i++){if(r[i].time>n.time){a=r[i];break}}var s=isFinite(t.duration)?t.duration:T();n.startTime=n.time;if(a&&a.time<s){n.endTime=a.time}else{n.endTime=s}return n};var k=function e(t){var i=t.remoteTextTracks();if(i){var r=i.length;while(r--){t.removeRemoteTextTrack(i[r])}}var n=t.textTracks();if(n){var a=n.length;while(a--){var s=n[a];if(s.kind==="metadata"&&s.cues){var o=s.cues.length;while(o--){s.removeCue(s.cues[o])}}s.mode="disabled"}}};var E=function e(i,r){k(i);if(!r.cuePoints){return}var n=i.mediaCuePointsTrack();var a=t.VTTCue||t.vttjs&&t.vttjs.VTTCue||t.TextTrackCue;for(var s=0;s<r.cuePoints.length;s++){var o=r.cuePoints[s];var l=new a(o.startTime,o.endTime,o.type);l.originalCuePoint=o;n.addCue(l)}n.mode="hidden"};var j=function e(t,i,r){var n=0;for(;n<t.length;n++){if(i(t[n])){return t[n]}}return r};function w(e){var t=w.windowLocationProtocol();var i=function e(i){return i.src&&i.src.indexOf(t)===0};if(e&&e.length&&e.length>0){return j(e,i,e[0]).src}}w.windowLocationProtocol=function(){return t.location.protocol};var C=function e(t,i){return"https://"+t+".api."+(i?i+".":"")+"brightcove.com/playback/v1/"};var I={production:{papi:C("edge"),epa:C("edge-auth")},qa:{papi:C("edge","qa"),epa:C("edge-auth","qa")},staging:{papi:C("edge","staging"),epa:C("edge-auth","staging")}};var A=function e(i){return t.encodeURIComponent(i)};var x=function e(t){return typeof t==="string"&&/^BCpk/.test(t)};var P=function e(t){var i={ad_config_id:"adConfigId",config_id:"deliveryConfigId"};var n=["ad_config_id","config_id","tveToken"];if(t.type!==a){n.push("limit");n.push("offset")}if(t.type===o){n.push("q");n.push("sort")}var s={};
1n.forEach(function(e){var r=i[e]||e;if(t[r]){s[e]=t[r]}});var l=r.qs().stringify(s);return l?"?"+l:""};var O=function e(t,i){var n=i.env,a=i.type;if(!n){n="production"}var l;if(r.isNonEmptyStr(i.baseUrl)){l=i.baseUrl}else if(x(i.policyKey)){l=I[n].papi}else{l=I[n].epa}if(l.slice(-1)==="/"){l=l.slice(0,-1)}var c;c=l+"/accounts/"+A(t)+"/"+(a===s?"playlists":"videos");if(a!==o){c+="/"+A(i.id)}if(a===u){c+="/related"}c+=P(i);return c};var L=function t(i,n,l,c){if(c===void 0){c=function e(){}}var d=l.deliveryConfigId,f=l.adConfigId,h=l.id,p=l.bcovAuthToken,v=l.policyKey,m=l.q,g=l.type;if(!n||!g){return c(new Error("accountId and type are required"))}if(g===o&&!m){return c(new Error("q is required when performing a search"))}else if(g!==o&&!h){return c(new Error("id is required when getting a video or playlist"))}var y=O(n,l);var _=function e(t,l){i.trigger(r.assign({type:"catalog_"+t,accountId:n,deliveryConfigId:d,adConfigId:f,playlistId:g===s?h:undefined,related:g===u?h:undefined,search:g===o?m:undefined,url:y,videoId:g===a?h:undefined},l))};var b=function e(t,i,r){return _("request_error",{error:t,response:i,body:r})};_("request");var T={};if(x(v)){T.Accept="application/json;pk="+v}else if(p){T.Authorization="Bearer "+p}var S=e.xhr({headers:T,json:true,url:y},function(e,t,i){if(e){b(e,S,i);return c(e,i)}if(S.status>=400){b(new Error("Request Failed"),S,i);return c(S,i)}_("response",{response:S});c(null,i)});var k=S.onabort.bind(S);S.onabort=function(){var e=new Error("Request Aborted");k();b(e,S,null);return c(e,null)};return S};var D=function e(){var i=t.GestureEvent;return!!(i&&t.WebKitMediaKeys&&t.WebKitMediaKeys.isTypeSupported("com.apple.fps.1_0","video/mp4"))};var R=function i(){return e.browser.IS_EDGE&&/Chrome/i.test(t.navigator.userAgent)};var N=function i(){return t.navigator.requestMediaKeySystemAccess&&!e.browser.IS_IOS&&(e.browser.IS_FIREFOX||e.browser.IS_CHROME||R())};var M=function e(t){var i=t.tech(true).vhs;return i&&i.canChangeType&&i.canChangeType()};var U=function e(){return t.MediaSource&&t.MediaSource.isTypeSupported&&t.MediaSource.isTypeSupported(\'video/mp4; codecs="hvc1.1.6.L60.90"\')};var B=function e(t){return t==="application/vnd.apple.mpegurl"||t==="application/x-mpegURL"};var F=function t(i){var r=e.parseUrl(i);return r.hostname.indexOf("boltdns.net")!==-1&&r.pathname.indexOf("/aes128/")!==-1};var H=function e(t){return t.isSecureContext||!/^http:/.test(t.location.href)};var V={isSafariWithFairplaySupport:D,isChromiumEdge:R,isBrowserWithWidevineSupport:N,isHlsType:B,isCodecSwitchingSupported:M,isHEVCSupported:U,isBoltEncryptedHls:F,preferHttps:H};var q="https://fps.brightcove.com/v1/application_certificate";var z="com.apple.fps.1_0";var W=function e(i){return t.btoa(String.fromCharCode.apply(null,i))};var G=function e(t){return String.fromCharCode.apply(null,new Uint16Array(t.buffer))};var Y=function e(t){var i=t.source,r=t.publisherId,n=t.applicationId;var a=i.key_systems[z].certificate_url;if(a){return a}if(n&&r){return q+"/"+r+"/"+n}return null};var K=function t(i,r){var n=Y({source:i.source,publisherId:i.publisherId,applicationId:i.applicationId});e.xhr({uri:n,responseType:"arraybuffer"},function(e,t,i){if(e){r(e);return}r(null,new Uint8Array(i))})};var X=function e(t,i){return G(i).split("//")[1]};var Q=function t(i){return function(t,r,n,a){var s={"Content-Type":"application/json",Accept:"application/octet-stream"};if(t.emeHeaders&&t.emeHeaders["BCOV-Auth"]){s["BCOV-Auth"]=t.emeHeaders["BCOV-Auth"]}e.xhr({uri:i,method:"POST",responseType:"arraybuffer",json:{publisher_id:t.publisherId,application_id:t.applicationId,key_id:r.split("/")[3],server_playback_context:W(n)},headers:s},function(e,t,i){if(e){a(e);return}if(t.statusCode>=400&&t.statusCode<=599){a({});return}a(null,i)})}};var J={getCertificateUri:Y,getCertificate:K,getContentId:X,createGetLicenseFunc:Q,base64EncodeUint8Array:W,FAIRPLAY_KEY_SYSTEM:z};var Z=function e(t){if(t===void 0){t=[]}return t.filter(function(e){return e.keySystems&&e.keySystems[J.FAIRPLAY_KEY_SYSTEM]})};var $=function e(t,i,r){var n=Z(i);if(!n.length||!t.eme){r();return}
1var a=t.eme.options||{};var s=0;var o=[];var l={};var u=function e(t){var i=n[t];var u=J.getCertificateUri({source:i,publisherId:a.publisherId,applicationId:a.applicationId});if(!u){return"continue"}if(l[u]){l[u].push(i);return"continue"}s++;l[u]=[i];i.keySystems[J.FAIRPLAY_KEY_SYSTEM].getCertificate({source:i,publisherId:a.publisherId,applicationId:a.applicationId},function(e,t){if(e){o.push({message:"Unable to resolve FairPlay certificate",error:e})}else{var i=l[u];for(var n=0;n<i.length;n++){var a=i[n];a.keySystems[J.FAIRPLAY_KEY_SYSTEM].getCertificate=function(e,i){i(null,t)}}}s--;if(!s){if(o.length){r(o);return}r()}})};for(var c=0;c<n.length;c++){var d=u(c);if(d==="continue")continue}};var ee=function e(t){if(!V.isHlsType(t.type)||!t.key_systems||!t.key_systems[J.FAIRPLAY_KEY_SYSTEM]){return null}var i=t.key_systems[J.FAIRPLAY_KEY_SYSTEM];var r=i.key_request_url;var n={};n[J.FAIRPLAY_KEY_SYSTEM]={getCertificate:J.getCertificate,getLicense:J.createGetLicenseFunc(r),getContentId:J.getContentId};return n};var te=function e(t){return ee(t)};var ie={getKeySystemOptions:te,getFairPlaySources:Z,resolveFairPlayCertificates:$};var re=function e(t,i){i=i||t&&t.mediainfo||{};return t&&t.hasPlugin&&t.hasPlugin("vr")&&i&&i.projection};var ne=50*1024*1024;var ae=3*1024*1024;var se=.5*1024*1024;var oe={http:{nativeHls:{http:{"application/vnd.apple.mpegurl":1,"video/mp4":5,"application/dash+xml":3},https:{"application/vnd.apple.mpegurl":2,"video/mp4":6,"application/dash+xml":4}},noNativeHls:{http:{"application/vnd.apple.mpegurl":1,"video/mp4":5,"application/dash+xml":3},https:{"application/vnd.apple.mpegurl":2,"video/mp4":6,"application/dash+xml":4}},preferMp4:{http:{"application/vnd.apple.mpegurl":3,"video/mp4":1,"application/dash+xml":5},https:{"application/vnd.apple.mpegurl":4,"video/mp4":2,"application/dash+xml":6}}},https:{nativeHls:{http:{"application/vnd.apple.mpegurl":2,"video/mp4":6,"application/dash+xml":5},https:{"application/vnd.apple.mpegurl":1,"video/mp4":4,"application/dash+xml":3}},noNativeHls:{http:{"application/vnd.apple.mpegurl":5,"video/mp4":4,"application/dash+xml":6},https:{"application/vnd.apple.mpegurl":1,"video/mp4":3,"application/dash+xml":2}},preferMp4:{http:{"application/vnd.apple.mpegurl":5,"video/mp4":4,"application/dash+xml":6},https:{"application/vnd.apple.mpegurl":2,"video/mp4":1,"application/dash+xml":3}}},codecs:{switching:{hevc:{combined:1,hevc:2,avc:3},nohevc:{combined:5,hevc:6,avc:4}},noswitching:{hevc:{combined:3,hevc:5,avc:2},nohevc:{combined:4,hevc:6,avc:1}}}};var le={1:3,2:3.2,3:4.2,4:5,5:6,6:7,7:8};var ue=function e(t,i){return i.type==="application/vnd.apple.mpegurl"&&i.key_systems&&V.isSafariWithFairplaySupport()&&t.eme&&t.eme.options};var ce=function e(t,i){return i.type==="application/vnd.apple.mpegurl"&&i.key_systems&&V.isBrowserWithWidevineSupport()&&t.eme&&t.eme.options};var de=function t(i,r,n,a){if(!r.src){return 9999}if(r.type==="application/vnd.apple.mpegurl"&&r.key_systems&&(r.key_systems["com.apple.fps.1_0"]&&!ue(n,r)||r.key_systems["com.widevine.alpha"]&&!ce(n,r))){return 9999}if(r.profiles&&r.profiles.match(/hbbtv/i)){return 9999}if(e.browser.IS_IOS&&r.type==="application/vnd.apple.mpegurl"&&le[r.ext_x_version]>parseFloat(e.browser.IOS_VERSION)){return 9999}i=i[/^[^:]*/.exec(r.src)];if(!i){return 9999}var s=i[r.type]||9999;var o=r.codecs&&r.codecs.indexOf("avc1")!==-1;var l=r.codecs&&r.codecs.indexOf("hvc1")!==-1;var u=o&&l;var c;if(u){c=a.combined}else if(l){c=a.hevc}else{c=a.avc}return s+c};var fe=function t(i,r,n,a,s){var o=he.preferHttps()?oe.https:oe.http;var l;if(re(i,r)){l=ne}else if(e.browser.IS_IOS||e.browser.IS_ANDROID){l=se}else{l=ae}if(he.preferMp4(i,r)){o=o.preferMp4}else if(he.supportsNativeHls()){o=o.nativeHls}else{o=o.noNativeHls}var u=de(o,a,i,n)-de(o,s,i,n);if(u){return u}if(a.type==="video/mp4"&&s.type==="video/mp4"){if(a.avg_bitrate&&s.avg_bitrate){return Math.abs(a.avg_bitrate-l)-Math.abs(s.avg_bitrate-l)}if(a.avg_bitrate||s.avg_bitrate){u=a.avg_bitrate?-1:1}}if(a.type==="application/vnd.apple.mpegurl"&&s.type==="application/vnd.apple.mpegurl"){if(a.ext_x_version&&s.ext_x_version){return s.ext_x_version-a.ext_x_version}if(a.ext_x_version||s.ext_x_version){u=a.ext_x_version?-1:1}}return u};function he(t,i,n){if(n===void 0){n={}}var a=i.sources||[];var s=[];var o=n,l=o.bcovAuthToken,u=o.policyKey,c=o.allowPlayreadyInChromiumEdge;var d=!!l&&u===null;if(l&&!r.isNonEmptyStr(l)){e.log.error("The bcovAuthToken catalog property must be a string");l=null}for(var f=0;f<a.length;f++){var h=a[f];if(h.key_systems&&h.key_systems["com.microsoft.playready"]&&V.isChromiumEdge()&&(d&&typeof c==="undefined"||c===false)){if(Object.keys(h.key_systems).length>1){delete h.key_systems["com.microsoft.playready"]}else{a.splice(f,1);f--;continue}}if(l&&h.key_systems){h.emeHeaders={"BCOV-Auth":l}}if(h.src&&h.container==="MP4"){h.type="video/mp4"}else if(h.src&&(h.container==="M2TS"||V.isHlsType(h.type))){h.type="application/vnd.apple.mpegurl";if(ue(t,h)){h.keySystems=ie.getKeySystemOptions(h)}if(V.isBoltEncryptedHls(h.src)&&l){if(h.vmap&&t.hasPlugin("ssai")){h.bcovAuthToken=l}else{var p=e.parseUrl(h.src);var v="bcov_auth="+l;if(!p.search){v="?"+v}else if(!(p.search[p.search.length-1]==="&")){v="&"+v}h.src+=v}}}s.push(h)}var m=he.supportsSwitchingCodecs(t)?"switching":"noswitching";var g=he.supportsHEVC()?"hevc":"nohevc";var y=oe.codecs[m][g];return s.sort(fe.bind(null,t,i,y))}he.supportsNativeHls=function(){var t=i.createElement("video");var r=e.options.hls&&e.options.hls.overrideNative;if(t&&t.canPlayType){return!r&&/probably|maybe/i.test(t.canPlayType("application/vnd.apple.mpegurl"))}return false};he.preferHttps=function(){return V.preferHttps(t)};he.supportsHEVC=function(){return V.isHEVCSupported()};he.supportsSwitchingCodecs=function(e){return V.isCodecSwitchingSupported(e)};he.preferMp4=function(t,i){return e.browser.IS_ANDROID&&e.browser.ANDROID_VERSION<5||re(t,i)};var pe=function(){function e(){this.defaults_={}}var t=e.prototype;t.normalize=function e(t,i,n){var a=r.assign({},this.defaults_);if(t&&!r.isObj(t)){a.id=t}else{r.assign(a,t);
1if(r.isObj(t.id)){r.assign(a,t.id);if(!t.id.hasOwnProperty("id")){delete a.id}}}if(typeof i==="string"){a.type=i}if(a.type===o){if(!a.q){a.q=a.id}delete a.id}if(typeof t.deliveryConfigId==="string"){a.deliveryConfigId=t.deliveryConfigId}if(typeof n==="string"){a.adConfigId=n}if((a.type===s||a.type===o)&&a.limit===undefined){a.limit="100"}return a};t.setDefaults=function e(t){if(t===null){this.defaults_={}}else{r.assign(this.defaults_,t)}};t.getDefault=function e(t){return r.isObj(this.defaults_)&&this.defaults_[t]||undefined};t.getDefaults=function e(){return r.isObj(this.defaults_)&&r.assign({},this.defaults_)||{}};return e}();var ve=/([A-Za-z0-9])_([A-Za-z0-9])/g;var me=function e(t){return t.replace(ve,function(e,t,i){return t+i.toUpperCase()})};var ge=function t(i){var r=e.mergeOptions(i);Object.keys(r).filter(function(e){return e.match(ve)}).forEach(function(e){r[me(e)]=r[e]});return r};var ye=function e(t,r){if(!r){return}t.mediainfo=ge(r);var n=Boolean(t.el().ownerDocument.querySelector(".bc-iframe"));var a=t.mediainfo.name;if(n&&a){i.title=a}};var _e=function e(t,i){if(!i){return}t.playlistinfo=ge(i);delete t.playlistinfo.videos};var be=function e(t,i){return(t.type==="application/vnd.apple.mpegurl"||t.type==="application/dash+xml")&&i.toLo'),t[0].s.push('id"});return t.accountId}if(typeof n.getAccountId==="function"){return n.getAccountId()}return i.accountId||n.options_["data-account"]};var c=new pe;var d={};var h;var v={policyKey:n.options_["data-policy-key"],bcovAuthToken:n.options_["data-bcov-auth-token"]};var m=Object.keys(v).reduce(function(e,t){if(v[t]){e[t]=v[t]}return e},{});["baseUrl","bcovAuthToken","env","policyKey","allowPlayreadyInChromiumEdge"].forEach(function(e){if(i.hasOwnProperty(e)){m[e]=i[e]}});c.setDefaults(m);p(n);n.on("loadstart",function(){if(!r.isFn(n.playlist)||!n.playlist()||!n.playlist().length){return}ye(n,n.playlist()[n.playlist.indexOf(n.currentSrc())])});n.on("dispose",function(){return k(n)});var y=function t(i,r){var a=ie.getFairPlaySources(i);if(!a.length){r();return}ie.resolveFairPlayCertificates(n,a,function(t){if(t){e.log("Unable to resolve FairPlay certificates",t)}r()})};var _=function t(i){if(!n.hasPlugin||!n.hasPlugin("ssai")||!i){return i}return i.map(function(t){if(t.vmap){t.type=e.getPlugin("ssai").MIME_TYPE;t.originalHlsSource=t.src;t.src=t.vmap}return t})};var T=function t(i){if(!i.variants){return i}var r=i.name,n=i.description,a=i.longDescription,s=i.customFields;var o=null;var l={name:r,description:n,longDescription:a,language:o};l.customFields=e.mergeOptions(s);var u=i.variants.map(ge);i.variants=[].concat(u,[l]);return i};var j=function e(t){if(!t){return}if(Array.isArray(t)){h=t.map(function(e){return T(ge(e))})}else{h=T(ge(t))}};var C=function t(i,r){if(!i||!i.variants){return e.mergeOptions(i)}var n;for(var a=0;a<i.variants.length;a++){if(i.variants[a].language===null){n=i.variants[a]}if(i.variants[a].language===r){n=i.variants[a];break}}return e.mergeOptions(i,n)};var I=function e(i){var r=function e(){var r=false;ye(n,i);j(i);if(re(n)){var a=n.el().querySelector("video");a.setAttribute("crossorigin","anonymous")}n.el().setAttribute("data-video-id",i.id);if(t.bc&&!t.bc.disposedAfterPreroll_){n.poster(i.poster)}if(i.sources){for(var s=0;s<i.sources.length;s++){if(i.sources[s].vmap!==undefined){r=true;break}}}if(r&&n.onceux!==undefined){n.onceux.loadSourcesFromCatalog(i.sources)}else{if(r){i.sources=_(i.sources)}n.src(i.sources)}E(n,i);if(i.textTracks){var o=new RegExp("^"+t.location.protocol);var l=new RegExp("^https:");var u=null;var c=null;for(var d=0;d<i.textTracks.length;d++){var f=i.textTracks[d];if(f.label==="thumbnails"){if(n.usingPlugin("thumbnails")&&f.width<=480){if(o.test(f.src)){u=f}else if(l.test(f.src)){c=f}}}else{n.addRemoteTextTrack(f)}}var h=u||c;if(h){n.addRemoteTextTrack({src:h.src,label:"thumbnails",kind:"metadata",mode:"hidden"},false)}}};y(i.sources,r)};var A=function e(t){var i=function e(){n.on("beforeplaylistitem",function(e,t){return E(n,t)});for(var i=0;i<t.length;i++){t[i].sources=_(t[i].sources)}var r=t.startingIndex||0;j(t);ye(n,t[r]);_e(n,n.catalog.data);if(re(n)){var a=n.el().querySelector("video");a.setAttribute("crossorigin","anonymous")}n.playlist(t,r)};var r=t.filter(function(e){return e.sources}).reduce(function(e,t){return e.concat(t.sources)},[]);y(r,i)};var x=function e(t,r){var a;var s=ge(t);if(s.sources){s.rawSources_=s.sources;s.sources=(i.getSources||he)(n,s,r);a=n.selectSource(s.sources)}if(s.posterSources){s.poster=w(s.posterSources)}if(s.thumbnailSources){s.thumbnail=w(s.thumbnailSources)}if(s.textTracks){var o=a&&be(a.source,a.tech);s.textTracks=s.textTracks.filter(function(e){return!(o&&e.in_band_metadata_track_dispatch_type!==undefined)}).map(function(e){if(e.sources){e.src=w(e.sources)}return e})}if(s.duration){s.duration=s.duration*.001}if(s.cuePoints){for(var l=0;l<s.cuePoints.length;l++){S(s,l)}}return s};n.catalog={transformCatalogError:g,transformVideoResponse:x,mediaCuePointsTrack:function t(){if(!n.catalog.mediaCuePointsTrack.hasWarned_){e.log.warn("player.catalog.mediaCuePointsTrack() is deprecated, please use player.mediaCuePointsTrack() instead!");n.catalog.mediaCuePointsTrack.hasWarned_=true}return n.mediaCuePointsTrack()},get:function t(i,s){i=c.normalize(i);
1if(n.catalog.tveToken){i.tveToken=n.catalog.tveToken}d=i;n.catalog.loading++;var l;var f=new r.Promise(function(t,r){l=L(n,u(i),i,function(s,l){n.catalog.loading--;if(i.type===o&&l&&(!l.videos||!l.videos.length)){s=new Error("No videos returned from search")}if(s){s.data=l;n.catalog.error=s;return r(s)}if(!l){return t(null)}n.catalog.data=e.mergeOptions({},l);if(i.adConfigId){n.catalog.data.adConfigId=i.adConfigId}var u={policyKey:i.policyKey,allowPlayreadyInChromiumEdge:i.allowPlayreadyInChromiumEdge};if(i.bcovAuthToken){u.bcovAuthToken=i.bcovAuthToken}if(i.type===a){n.catalog.sources=l.sources;n.catalog.poster=l.poster;return t(x(l,u))}var c=l.videos.filter(function(e){return!e.hasOwnProperty("errors")}).map(function(e){return x(e,u)});if(c.length){return t(c)}return r(new Error("No videos returned from playlist"))})});if(!r.isFn(s)){return f}f.then(function(e){s(null,e)}).catch(function(e){s(e,e.data)});return l},getVideo:function e(t,i,r){if(i===void 0){i=function e(){}}return this.get(c.normalize(t,a,r),i)},getSequence:function t(i,r,a){var s=this;if(r===void 0){r=function e(){}}if(!Array.isArray(i)){i=[i]}i=i.filter(function(t){if(!/^(search|video|playlist)$/i.test(t.type)){e.log.error("invalid sequence type, please use search, video, or playlist. for:",t);return false}return true});if(!i.length){r(new Error("No valid sequences"),null);return}var o=i.length;var l=new Array(i.length);return i.map(function(t,u){return s.get(c.normalize(t,t.type,a),function(a,s){o--;if(a){e.log.error("failed to request sequence",t);e.log.error("with error",a)}else if(s){if(!Array.isArray(s)){s=[s]}l[u]=s}if(o===0){n.catalog.data=l;var c=l.reduce(function(e,t){return t&&e.concat(t)},[]);if(!c.length){r(new Error("No data was loaded for the sequence "+JSON.stringify(i),null))}else{r(null,c)}}},a)})},getLazySequence:function e(t,i,r){var a=this;if(i===void 0){i=function e(){}}if(!Array.isArray(t)){t=[t]}var s=function e(i){return a.getSequence(t.shift(),function(r,n){if((r||!n)&&t&&t.length){return e(i)}i(r,n)},r)};var o=function e(){if(!t.length){n.off("playlistitem",e);return}var i=n.playlist;var r=i.currentIndex&&i.currentIndex()||i.currentItem&&i.currentItem()||0;var a=i.lastIndex&&i.lastIndex()||i().length-1||0;if(r!==a){return}s(function(e,t){if(e||!t){return}n.playlist(n.playlist().concat(t),r)})};n.on("playlistitem",o);return s(i)},getSearch:function e(t,i,r){if(i===void 0){i=function e(){}}return this.get(c.normalize(t,o,r),i)},getPlaylist:function e(t,i,r){if(i===void 0){i=function e(){}}return this.get(c.normalize(t,s,r),i)},load:function e(t){if(Array.isArray(t)){A(t)}else{I(t)}},autoFindAndLoadMedia:function e(t){var i=f(t,n);if(!i){return}t.playlistVideoId=i.playlistVideoId;var r=b(i.type,n,t);if(i.type===l){this.getLazySequence(i.id,r)}else{this.get(c.normalize(i),r)}return i},setBcovAuthToken:function t(i){if(i!==null&&!r.isNonEmptyStr(i)){e.log.warn("Authorization Token must be a valid string or null");return}c.setDefaults({bcovAuthToken:i})},setPolicyKey:function t(i){if(i!==null&&!r.isNonEmptyStr(i)){e.log.warn("Policy key must be a valid string or null");return}c.setDefaults({policyKey:i})},getCatalogParamDefault_:function e(t){if(t==="accountId"){return u()}return c.getDefault(t)},getLastParams:function t(){return e.mergeOptions(d)},getLastData:function t(){return e.mergeOptions(n.catalog.data)},getMetadata:function e(t){var i=t?t:{},r=i.type,a=i.lang;if(!h){n.log.debug("getMetadata() called with no cached metadata");return r===s?[]:{}}var o=n.usingPlugin("playlist")?n.playlist():[];if(r===s&&o.length){return h.map(function(e){return C(e,a)})}if(o.length&&Array.isArray(h)){var l=n.playlist.indexOf(n.currentSrc());if(l===-1){return{}}return C(h[l],a)}return C(h,a)},loading:0}}e.registerPlugin("catalog",Te);Te.VERSION=n;return Te})})();(function(){if(s.getPlugin("dock")){return}(function(e,t){typeof exports==="object"&&typeof module!=="undefined"?t(exports,require("video.js")):typeof i==="function"&&i.amd?i(["exports","video.js"],t):t(e.videojsDock=e.videojsDock||{},e.videojs)})(this,function(i,r){"use strict";r="default"in r?r["default"]:r;var n=typeof e!=="undefined"?e:typeof global!=="undefined"?global:typeof self!=="undefined"?self:{};var a={};var s=(Object.freeze||Object)({default:a});var o=s&&a||s;var l=typeof n!=="undefined"?n:typeof e!=="undefined"?e:{};var u;if(typeof t!=="undefined"){u=t}else{u=l["__GLOBAL_DOCUMENT_CACHE@4"];if(!u){u=l["__GLOBAL_DOCUMENT_CACHE@4"]=o}}var c=u;var d=1;var f=function e(){return d++};var h=function(e,t){if(!(e instanceof t)){throw new TypeError("Cannot call a class as a function")}};var p=function(e,t){if(typeof t!=="function"&&t!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof t)}e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:false,writable:true,configurable:true}});
1if(t)Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t};var v=function(e,t){if(!e){throw new ReferenceError("this hasn\'t been initialised - super() hasn\'t been called")}return t&&(typeof t==="object"||typeof t==="function")?t:e};var m=r.dom||r;var g=r.registerPlugin||r.plugin;var y=r.getComponent("Component");var _=function(e){p(t,e);function t(i,r){h(this,t);var n=v(this,e.call(this,i,r));var a=i.$(".vjs-tech");a.setAttribute("aria-labelledby",n.title.id);a.setAttribute("aria-describedby",n.description.id);return n}t.prototype.createEl=function t(){var i=m.createEl("div",{className:"vjs-dock-title",title:this.options_.title,innerHTML:this.options_.title},{id:"vjs-dock-title-"+f()});var r=m.createEl("div",{className:"vjs-dock-description",title:this.options_.description,innerHTML:this.options_.description},{id:"vjs-dock-description-"+f()});var n=e.prototype.createEl.call(this,"div",{className:"vjs-dock-text"});this.title=i;this.description=r;n.appendChild(i);n.appendChild(r);return n};t.prototype.update=function e(t,i){this.title.innerHTML="";this.description.innerHTML="";this.title.appendChild(c.createTextNode(t));this.description.appendChild(c.createTextNode(i))};return t}(y);var b=function(e){p(t,e);function t(){h(this,t);return v(this,e.apply(this,arguments))}t.prototype.createEl=function t(){return e.prototype.createEl.call(this,"div",{className:"vjs-dock-shelf"})};return t}(y);r.registerComponent("Title",_);r.registerComponent("Shelf",b);var T=function e(t){var i=t||{};var r={title:{title:i.title||"",description:i.description||""}};var n=this.title;var a=this.shelf;this.addClass("vjs-dock");var s=this.children().indexOf(this.getChild("bigPlayButton"));var o=s>0?s-1:null;if(!a){a=this.shelf=this.addChild("shelf",r,o)}if(!n){n=this.title=this.addChild("title",r.title,o)}else{n.update(r.title.title,r.title.description)}this.one(n,"dispose",function(){this.title=null});this.one(a,"dispose",function(){this.shelf=null})};g("dock",T);i.Title=_;i.Shelf=b;i["default"]=T})})();(function(){if(s.getPlugin("playlist")){return}(function(e,t){typeof exports==="object"&&typeof module!=="undefined"?module.exports=t(require("video.js")):typeof i==="function"&&i.amd?i(["video.js"],t):(e=e||self,e.videojsPlaylist=t(e.videojs))})(this,function(e){"use strict";e=e&&e.hasOwnProperty("default")?e["default"]:e;var t=function e(t){return typeof t==="number"&&!isNaN(t)&&t>=0&&t<Infinity};var i=function e(t){var i=t.playlist.autoadvance_;if(i.timeout){t.clearTimeout(i.timeout)}if(i.trigger){t.off("ended",i.trigger)}i.timeout=null;i.trigger=null};var r=function e(r,n){i(r);if(!t(n)){r.playlist.autoadvance_.delay=null;return}r.playlist.autoadvance_.delay=n;r.playlist.autoadvance_.trigger=function(){var t=function t(){return e(r,n)};r.one("play",t);r.playlist.autoadvance_.timeout=r.setTimeout(function(){i(r);r.off("play",t);r.playlist.next()},n*1e3)};r.one("ended",r.playlist.autoadvance_.trigger)};var n=function e(t){var i=t.remoteTextTracks();var r=i&&i.length||0;while(r--){t.removeRemoteTextTrack(i[r])}};var a=function e(t,i){var a=!t.paused()||t.ended();t.trigger("beforeplaylistitem",i.originalValue||i);if(i.playlistItemId_){t.playlist.currentPlaylistItemId_=i.playlistItemId_}t.poster(i.poster||"");t.src(i.sources);n(t);t.ready(function(){(i.textTracks||[]).forEach(t.addRemoteTextTrack.bind(t));t.trigger("playlistitem",i.originalValue||i);if(a){var e=t.play();if(typeof e!=="undefined"&&typeof e.then==="function"){e.then(null,function(e){})}}r(t,t.playlist.autoadvance_.delay)});return t};var s=function e(t){return!!t&&typeof t==="object"};var o=function e(t){var i=[];var r;t.forEach(function(e){if(!s(e)){r=Object(e);r.originalValue=e}else{r=e}i.push(r)});return i};var l=function e(t){var i=1;t.forEach(function(e){e.playlistItemId_=i++})};var u=function e(t,i){for(var r=0;r<t.length;r++){if(t[r].playlistItemId_===i){return r}}return-1};var c=function e(t,i){var r=t;var n=i;if(typeof t==="object"){r=t.src}if(typeof i==="object"){n=i.src}if(/^\\/\\//.test(r)){n=n.slice(n.indexOf("//"))}if(/^\\/\\//.test(n)){r=r.slice(r.indexOf("//"))}return r===n};var d=function e(t,i){for(var r=0;r<t.length;r++){var n=t[r].sources;if(Array.isArray(n)){for(var a=0;a<n.length;a++){var s=n[a];if(s&&c(s,i)){return r}}}}return-1};var f=function e(t){var i=-1;var r=t.length-1;while(++i<t.length){var n=i+Math.floor(Math.random()*(r-i+1));var a=t[n];t[n]=t[i];t[i]=a}return t};function h(t,n,c){if(c===void 0){c=0}var h=null;var p=false;var v=t.playlist=function(e,i){if(i===void 0){i=0}if(p){throw new Error("do not call playlist() during a playlist change")}if(Array.isArray(e)){var r=Array.isArray(h)?h.slice():null;var n=e.slice();h=n.slice();if(h.filter(function(e){return s(e)}).length!==h.length){h=o(h)}l(h);p=true;t.trigger({type:"duringplaylistchange",nextIndex:i,nextPlaylist:n,previousIndex:v.currentIndex_,previousPlaylist:r||[]});p=false;if(i!==-1){v.currentItem(i)}if(r){t.setTimeout(function(){t.trigger("playlistchange")},0)}}return h.map(function(e){return e.originalValue||e}).slice()};t.on("loadstart",function(){if(v.currentItem()===-1){i(t)}});v.currentIndex_=-1;v.player_=t;v.autoadvance_={};v.repeat_=false;v.currentPlaylistItemId_=null;v.currentItem=function(e){if(p){return v.currentIndex_}if(typeof e==="number"&&v.currentIndex_!==e&&e>=0&&e<h.length){v.currentIndex_=e;a(v.player_,h[v.currentIndex_]);return v.currentIndex_}var t=v.player_.currentSrc()||"";if(v.currentPlaylistItemId_){var i=u(h,v.currentPlaylistItemId_);var r=h[i];if(r&&Array.isArray(r.sources)&&d([r],t)>-1){v.currentIndex_=i;return v.currentIndex_}v.currentPlaylistItemId_=null}v.currentIndex_=v.indexOf(t);return v.currentIndex_};v.contains=function(e){return v.indexOf(e)!==-1};v.indexOf=function(e){if(typeof e==="string"){return d(h,e)}var t=Array.isArray(e)?e:e.sources;for(var i=0;i<t.length;i++){var r=t[i];if(typeof r==="string"){return d(h,r)}else if(r.src){return d(h,r.src)}}return-1};v.currentIndex=function(){return v.currentItem()};v.lastIndex=function(){return h.length-1};v.nextIndex=function(){var e=v.currentItem();if(e===-1){return-1}var t=v.lastIndex();if(v.repeat_&&e===t){return 0}return Math.min(e+1,t)};v.previousIndex=function(){var e=v.currentItem();if(e===-1){return-1}if(v.repeat_&&e===0){return v.lastIndex()}return Math.max(e-1,0)};v.first=function(){if(p){return}var e=v.currentItem(0);if(h.length){return h[e].originalValue||h[e]}v.currentIndex_=-1}
1;v.last=function(){if(p){return}var e=v.currentItem(v.lastIndex());if(h.length){return h[e].originalValue||h[e]}v.currentIndex_=-1};v.next=function(){if(p){return}var e=v.nextIndex();if(e!==v.currentIndex_){var t=v.currentItem(e);return h[t].originalValue||h[t]}};v.previous=function(){if(p){return}var e=v.previousIndex();if(e!==v.currentIndex_){var t=v.currentItem(e);return h[t].originalValue||h[t]}};v.autoadvance=function(e){r(v.player_,e)};v.repeat=function(t){if(t===undefined){return v.repeat_}if(typeof t!=="boolean"){e.log.error("videojs-playlist: Invalid value for repeat",t);return}v.repeat_=!!t;return v.repeat_};v.sort=function(e){if(!h.length){return}h.sort(e);if(p){return}t.trigger("playlistsorted")};v.reverse=function(){if(!h.length){return}h.reverse();if(p){return}t.trigger("playlistsorted")};v.shuffle=function(e){var i=e===void 0?{}:e,r=i.rest;var n=0;var a=h;if(r){n=v.currentIndex_+1;a=h.slice(n)}if(a.length<=1){return}f(a);if(r){var s;(s=h).splice.apply(s,[n,a.length].concat(a))}if(p){return}t.trigger("playlistsorted")};if(Array.isArray(n)){v(n.slice(),c)}else{h=[]'),t[1].s.push('werCase()==="html5"};function Te(i){var n=this;var u=function e(t){if(t&&t.accountId){n.trigger({type:"usage",name:"catalog-get-account-id"});return t.accountId}if(typeof n.getAccountId==="function"){return n.getAccountId()}return i.accountId||n.options_["data-account"]};var c=new pe;var d={};var h;var v={policyKey:n.options_["data-policy-key"],bcovAuthToken:n.options_["data-bcov-auth-token"]};var m=Object.keys(v).reduce(function(e,t){if(v[t]){e[t]=v[t]}return e},{});["baseUrl","bcovAuthToken","env","policyKey","allowPlayreadyInChromiumEdge"].forEach(function(e){if(i.hasOwnProperty(e)){m[e]=i[e]}});c.setDefaults(m);p(n);n.on("loadstart",function(){if(!r.isFn(n.playlist)||!n.playlist()||!n.playlist().length){return}ye(n,n.playlist()[n.playlist.indexOf(n.currentSrc())])});n.on("dispose",function(){return k(n)});var y=function t(i,r){var a=ie.getFairPlaySources(i);if(!a.length){r();return}ie.resolveFairPlayCertificates(n,a,function(t){if(t){e.log("Unable to resolve FairPlay certificates",t)}r()})};var _=function t(i){if(!n.hasPlugin||!n.hasPlugin("ssai")||!i){return i}return i.map(function(t){if(t.vmap){t.type=e.getPlugin("ssai").MIME_TYPE;t.originalHlsSource=t.src;t.src=t.vmap}return t})};var T=function t(i){if(!i.variants){return i}var r=i.name,n=i.description,a=i.longDescription,s=i.customFields;var o=null;var l={name:r,description:n,longDescription:a,language:o};l.customFields=e.mergeOptions(s);var u=i.variants.map(ge);i.variants=[].concat(u,[l]);return i};var j=function e(t){if(!t){return}if(Array.isArray(t)){h=t.map(function(e){return T(ge(e))})}else{h=T(ge(t))}};var C=function t(i,r){if(!i||!i.variants){return e.mergeOptions(i)}var n;for(var a=0;a<i.variants.length;a++){if(i.variants[a].language===null){n=i.variants[a]}if(i.variants[a].language===r){n=i.variants[a];break}}return e.mergeOptions(i,n)};var I=function e(i){var r=function e(){var r=false;ye(n,i);j(i);if(re(n)){var a=n.el().querySelector("video");a.setAttribute("crossorigin","anonymous")}n.el().setAttribute("data-video-id",i.id);if(t.bc&&!t.bc.disposedAfterPreroll_){n.poster(i.poster)}if(i.sources){for(var s=0;s<i.sources.length;s++){if(i.sources[s].vmap!==undefined){r=true;break}}}if(r&&n.onceux!==undefined){n.onceux.loadSourcesFromCatalog(i.sources)}else{if(r){i.sources=_(i.sources)}n.src(i.sources)}E(n,i);if(i.textTracks){var o=new RegExp("^"+t.location.protocol);var l=new RegExp("^https:");var u=null;var c=null;for(var d=0;d<i.textTracks.length;d++){var f=i.textTracks[d];if(f.label==="thumbnails"){if(n.usingPlugin("thumbnails")&&f.width<=480){if(o.test(f.src)){u=f}else if(l.test(f.src)){c=f}}}else{n.addRemoteTextTrack(f)}}var h=u||c;if(h){n.addRemoteTextTrack({src:h.src,label:"thumbnails",kind:"metadata",mode:"hidden"},false)}}};y(i.sources,r)};var A=function e(t){var i=function e(){n.on("beforeplaylistitem",function(e,t){return E(n,t)});for(var i=0;i<t.length;i++){t[i].sources=_(t[i].sources)}var r=t.startingIndex||0;j(t);ye(n,t[r]);_e(n,n.catalog.data);if(re(n)){var a=n.el().querySelector("video");a.setAttribute("crossorigin","anonymous")}n.playlist(t,r)};var r=t.filter(function(e){return e.sources}).reduce(function(e,t){return e.concat(t.sources)},[]);y(r,i)};var x=function e(t,r){var a;var s=ge(t);if(s.sources){s.rawSources_=s.sources;s.sources=(i.getSources||he)(n,s,r);a=n.selectSource(s.sources)}if(s.posterSources){s.poster=w(s.posterSources)}if(s.thumbnailSources){s.thumbnail=w(s.thumbnailSources)}if(s.textTracks){var o=a&&be(a.source,a.tech);s.textTracks=s.textTracks.filter(function(e){return!(o&&e.in_band_metadata_track_dispatch_type!==undefined)}).map(function(e){if(e.sources){e.src=w(e.sources)}return e})}if(s.duration){s.duration=s.duration*.001}if(s.cuePoints){for(var l=0;l<s.cuePoints.length;l++){S(s,l)}}return s};n.catalog={transformCatalogError:g,transformVideoResponse:x,mediaCuePointsTrack:function t(){if(!n.catalog.mediaCuePointsTrack.hasWarned_){e.log.warn("player.catalog.mediaCuePointsTrack() is deprecated, please use player.mediaCuePointsTrack() instead!");n.catalog.mediaCuePointsTrack.hasWarned_=true}return n.mediaCuePointsTrack()},get:function t(i,s){i=c.normalize(i);
1if(n.catalog.tveToken){i.tveToken=n.catalog.tveToken}d=i;n.catalog.loading++;var l;var f=new r.Promise(function(t,r){l=L(n,u(i),i,function(s,l){n.catalog.loading--;if(i.type===o&&l&&(!l.videos||!l.videos.length)){s=new Error("No videos returned from search")}if(s){s.data=l;n.catalog.error=s;return r(s)}if(!l){return t(null)}n.catalog.data=e.mergeOptions({},l);if(i.adConfigId){n.catalog.data.adConfigId=i.adConfigId}var u={policyKey:i.policyKey,allowPlayreadyInChromiumEdge:i.allowPlayreadyInChromiumEdge};if(i.bcovAuthToken){u.bcovAuthToken=i.bcovAuthToken}if(i.type===a){n.catalog.sources=l.sources;n.catalog.poster=l.poster;return t(x(l,u))}var c=l.videos.filter(function(e){return!e.hasOwnProperty("errors")}).map(function(e){return x(e,u)});if(c.length){return t(c)}return r(new Error("No videos returned from playlist"))})});if(!r.isFn(s)){return f}f.then(function(e){s(null,e)}).catch(function(e){s(e,e.data)});return l},getVideo:function e(t,i,r){if(i===void 0){i=function e(){}}return this.get(c.normalize(t,a,r),i)},getSequence:function t(i,r,a){var s=this;if(r===void 0){r=function e(){}}if(!Array.isArray(i)){i=[i]}i=i.filter(function(t){if(!/^(search|video|playlist)$/i.test(t.type)){e.log.error("invalid sequence type, please use search, video, or playlist. for:",t);return false}return true});if(!i.length){r(new Error("No valid sequences"),null);return}var o=i.length;var l=new Array(i.length);return i.map(function(t,u){return s.get(c.normalize(t,t.type,a),function(a,s){o--;if(a){e.log.error("failed to request sequence",t);e.log.error("with error",a)}else if(s){if(!Array.isArray(s)){s=[s]}l[u]=s}if(o===0){n.catalog.data=l;var c=l.reduce(function(e,t){return t&&e.concat(t)},[]);if(!c.length){r(new Error("No data was loaded for the sequence "+JSON.stringify(i),null))}else{r(null,c)}}},a)})},getLazySequence:function e(t,i,r){var a=this;if(i===void 0){i=function e(){}}if(!Array.isArray(t)){t=[t]}var s=function e(i){return a.getSequence(t.shift(),function(r,n){if((r||!n)&&t&&t.length){return e(i)}i(r,n)},r)};var o=function e(){if(!t.length){n.off("playlistitem",e);return}var i=n.playlist;var r=i.currentIndex&&i.currentIndex()||i.currentItem&&i.currentItem()||0;var a=i.lastIndex&&i.lastIndex()||i().length-1||0;if(r!==a){return}s(function(e,t){if(e||!t){return}n.playlist(n.playlist().concat(t),r)})};n.on("playlistitem",o);return s(i)},getSearch:function e(t,i,r){if(i===void 0){i=function e(){}}return this.get(c.normalize(t,o,r),i)},getPlaylist:function e(t,i,r){if(i===void 0){i=function e(){}}return this.get(c.normalize(t,s,r),i)},load:function e(t){if(Array.isArray(t)){A(t)}else{I(t)}},autoFindAndLoadMedia:function e(t){var i=f(t,n);if(!i){return}t.playlistVideoId=i.playlistVideoId;var r=b(i.type,n,t);if(i.type===l){this.getLazySequence(i.id,r)}else{this.get(c.normalize(i),r)}return i},setBcovAuthToken:function t(i){if(i!==null&&!r.isNonEmptyStr(i)){e.log.warn("Authorization Token must be a valid string or null");return}c.setDefaults({bcovAuthToken:i})},setPolicyKey:function t(i){if(i!==null&&!r.isNonEmptyStr(i)){e.log.warn("Policy key must be a valid string or null");return}c.setDefaults({policyKey:i})},getCatalogParamDefault_:function e(t){if(t==="accountId"){return u()}return c.getDefault(t)},getLastParams:function t(){return e.mergeOptions(d)},getLastData:function t(){return e.mergeOptions(n.catalog.data)},getMetadata:function e(t){var i=t?t:{},r=i.type,a=i.lang;if(!h){n.log.debug("getMetadata() called with no cached metadata");return r===s?[]:{}}var o=n.usingPlugin("playlist")?n.playlist():[];if(r===s&&o.length){return h.map(function(e){return C(e,a)})}if(o.length&&Array.isArray(h)){var l=n.playlist.indexOf(n.currentSrc());if(l===-1){return{}}return C(h[l],a)}return C(h,a)},loading:0}}e.registerPlugin("catalog",Te);Te.VERSION=n;return Te})})();(function(){if(s.getPlugin("dock")){return}(function(e,t){typeof exports==="object"&&typeof module!=="undefined"?t(exports,require("video.js")):typeof i==="function"&&i.amd?i(["exports","video.js"],t):t(e.videojsDock=e.videojsDock||{},e.videojs)})(this,function(i,r){"use strict";r="default"in r?r["default"]:r;var n=typeof e!=="undefined"?e:typeof global!=="undefined"?global:typeof self!=="undefined"?self:{};var a={};var s=(Object.freeze||Object)({default:a});var o=s&&a||s;var l=typeof n!=="undefined"?n:typeof e!=="undefined"?e:{};var u;if(typeof t!=="undefined"){u=t}else{u=l["__GLOBAL_DOCUMENT_CACHE@4"];if(!u){u=l["__GLOBAL_DOCUMENT_CACHE@4"]=o}}var c=u;var d=1;var f=function e(){return d++};var h=function(e,t){if(!(e instanceof t)){throw new TypeError("Cannot call a class as a function")}};var p=function(e,t){if(typeof t!=="function"&&t!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof t)}e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:false,writable:true,configurable:true}});
1if(t)Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t};var v=function(e,t){if(!e){throw new ReferenceError("this hasn\'t been initialised - super() hasn\'t been called")}return t&&(typeof t==="object"||typeof t==="function")?t:e};var m=r.dom||r;var g=r.registerPlugin||r.plugin;var y=r.getComponent("Component");var _=function(e){p(t,e);function t(i,r){h(this,t);var n=v(this,e.call(this,i,r));var a=i.$(".vjs-tech");a.setAttribute("aria-labelledby",n.title.id);a.setAttribute("aria-describedby",n.description.id);return n}t.prototype.createEl=function t(){var i=m.createEl("div",{className:"vjs-dock-title",title:this.options_.title,innerHTML:this.options_.title},{id:"vjs-dock-title-"+f()});var r=m.createEl("div",{className:"vjs-dock-description",title:this.options_.description,innerHTML:this.options_.description},{id:"vjs-dock-description-"+f()});var n=e.prototype.createEl.call(this,"div",{className:"vjs-dock-text"});this.title=i;this.description=r;n.appendChild(i);n.appendChild(r);return n};t.prototype.update=function e(t,i){this.title.innerHTML="";this.description.innerHTML="";this.title.appendChild(c.createTextNode(t));this.description.appendChild(c.createTextNode(i))};return t}(y);var b=function(e){p(t,e);function t(){h(this,t);return v(this,e.apply(this,arguments))}t.prototype.createEl=function t(){return e.prototype.createEl.call(this,"div",{className:"vjs-dock-shelf"})};return t}(y);r.registerComponent("Title",_);r.registerComponent("Shelf",b);var T=function e(t){var i=t||{};var r={title:{title:i.title||"",description:i.description||""}};var n=this.title;var a=this.shelf;this.addClass("vjs-dock");var s=this.children().indexOf(this.getChild("bigPlayButton"));var o=s>0?s-1:null;if(!a){a=this.shelf=this.addChild("shelf",r,o)}if(!n){n=this.title=this.addChild("title",r.title,o)}else{n.update(r.title.title,r.title.description)}this.one(n,"dispose",function(){this.title=null});this.one(a,"dispose",function(){this.shelf=null})};g("dock",T);i.Title=_;i.Shelf=b;i["default"]=T})})();(function(){if(s.getPlugin("playlist")){return}(function(e,t){typeof exports==="object"&&typeof module!=="undefined"?module.exports=t(require("video.js")):typeof i==="function"&&i.amd?i(["video.js"],t):(e=e||self,e.videojsPlaylist=t(e.videojs))})(this,function(e){"use strict";e=e&&e.hasOwnProperty("default")?e["default"]:e;var t=function e(t){return typeof t==="number"&&!isNaN(t)&&t>=0&&t<Infinity};var i=function e(t){var i=t.playlist.autoadvance_;if(i.timeout){t.clearTimeout(i.timeout)}if(i.trigger){t.off("ended",i.trigger)}i.timeout=null;i.trigger=null};var r=function e(r,n){i(r);if(!t(n)){r.playlist.autoadvance_.delay=null;return}r.playlist.autoadvance_.delay=n;r.playlist.autoadvance_.trigger=function(){var t=function t(){return e(r,n)};r.one("play",t);r.playlist.autoadvance_.timeout=r.setTimeout(function(){i(r);r.off("play",t);r.playlist.next()},n*1e3)};r.one("ended",r.playlist.autoadvance_.trigger)};var n=function e(t){var i=t.remoteTextTracks();var r=i&&i.length||0;while(r--){t.removeRemoteTextTrack(i[r])}};var a=function e(t,i){var a=!t.paused()||t.ended();t.trigger("beforeplaylistitem",i.originalValue||i);if(i.playlistItemId_){t.playlist.currentPlaylistItemId_=i.playlistItemId_}t.poster(i.poster||"");t.src(i.sources);n(t);t.ready(function(){(i.textTracks||[]).forEach(t.addRemoteTextTrack.bind(t));t.trigger("playlistitem",i.originalValue||i);if(a){var e=t.play();if(typeof e!=="undefined"&&typeof e.then==="function"){e.then(null,function(e){})}}r(t,t.playlist.autoadvance_.delay)});return t};var s=function e(t){return!!t&&typeof t==="object"};var o=function e(t){var i=[];var r;t.forEach(function(e){if(!s(e)){r=Object(e);r.originalValue=e}else{r=e}i.push(r)});return i};var l=function e(t){var i=1;t.forEach(function(e){e.playlistItemId_=i++})};var u=function e(t,i){for(var r=0;r<t.length;r++){if(t[r].playlistItemId_===i){return r}}return-1};var c=function e(t,i){var r=t;var n=i;if(typeof t==="object"){r=t.src}if(typeof i==="object"){n=i.src}if(/^\\/\\//.test(r)){n=n.slice(n.indexOf("//"))}if(/^\\/\\//.test(n)){r=r.slice(r.indexOf("//"))}return r===n};var d=function e(t,i){for(var r=0;r<t.length;r++){var n=t[r].sources;if(Array.isArray(n)){for(var a=0;a<n.length;a++){var s=n[a];if(s&&c(s,i)){return r}}}}return-1};var f=function e(t){var i=-1;var r=t.length-1;while(++i<t.length){var n=i+Math.floor(Math.random()*(r-i+1));var a=t[n];t[n]=t[i];t[i]=a}return t};function h(t,n,c){if(c===void 0){c=0}var h=null;var p=false;var v=t.playlist=function(e,i){if(i===void 0){i=0}if(p){throw new Error("do not call playlist() during a playlist change")}if(Array.isArray(e)){var r=Array.isArray(h)?h.slice():null;var n=e.slice();h=n.slice();if(h.filter(function(e){return s(e)}).length!==h.length){h=o(h)}l(h);p=true;t.trigger({type:"duringplaylistchange",nextIndex:i,nextPlaylist:n,previousIndex:v.currentIndex_,previousPlaylist:r||[]});p=false;if(i!==-1){v.currentItem(i)}if(r){t.setTimeout(function(){t.trigger("playlistchange")},0)}}return h.map(function(e){return e.originalValue||e}).slice()};t.on("loadstart",function(){if(v.currentItem()===-1){i(t)}});v.currentIndex_=-1;v.player_=t;v.autoadvance_={};v.repeat_=false;v.currentPlaylistItemId_=null;v.currentItem=function(e){if(p){return v.currentIndex_}if(typeof e==="number"&&v.currentIndex_!==e&&e>=0&&e<h.length){v.currentIndex_=e;a(v.player_,h[v.currentIndex_]);return v.currentIndex_}var t=v.player_.currentSrc()||"";if(v.currentPlaylistItemId_){var i=u(h,v.currentPlaylistItemId_);var r=h[i];if(r&&Array.isArray(r.sources)&&d([r],t)>-1){v.currentIndex_=i;return v.currentIndex_}v.currentPlaylistItemId_=null}v.currentIndex_=v.indexOf(t);return v.currentIndex_};v.contains=function(e){return v.indexOf(e)!==-1};v.indexOf=function(e){if(typeof e==="string"){return d(h,e)}var t=Array.isArray(e)?e:e.sources;for(var i=0;i<t.length;i++){var r=t[i];if(typeof r==="string"){return d(h,r)}else if(r.src){return d(h,r.src)}}return-1};v.currentIndex=function(){return v.currentItem()};v.lastIndex=function(){return h.length-1};v.nextIndex=function(){var e=v.currentItem();if(e===-1){return-1}var t=v.lastIndex();if(v.repeat_&&e===t){return 0}return Math.min(e+1,t)};v.previousIndex=function(){var e=v.currentItem();if(e===-1){return-1}if(v.repeat_&&e===0){return v.lastIndex()}return Math.max(e-1,0)};v.first=function(){if(p){return}var e=v.currentItem(0);if(h.length){return h[e].originalValue||h[e]}v.currentIndex_=-1}
1;v.last=function(){if(p){return}var e=v.currentItem(v.lastIndex());if(h.length){return h[e].originalValue||h[e]}v.currentIndex_=-1};v.next=function(){if(p){return}var e=v.nextIndex();if(e!==v.currentIndex_){var t=v.currentItem(e);return h[t].originalValue||h[t]}};v.previous=function(){if(p){return}var e=v.previousIndex();if(e!==v.currentIndex_){var t=v.currentItem(e);return h[t].originalValue||h[t]}};v.autoadvance=function(e){r(v.player_,e)};v.repeat=function(t){if(t===undefined){return v.repeat_}if(typeof t!=="boolean"){e.log.error("videojs-playlist: Invalid value for repeat",t);return}v.repeat_=!!t;return v.repeat_};v.sort=function(e){if(!h.length){return}h.sort(e);if(p){return}t.trigger("playlistsorted")};v.reverse=function(){if(!h.length){return}h.reverse();if(p){return}t.trigger("playlistsorted")};v.shuffle=function(e){var i=e===void 0?{}:e,r=i.rest;var n=0;var a=h;if(r){n=v.currentIndex_+1;a=h.slice(n)}if(a.length<=1){return}f(a);if(r){va'),t[0].s.push('}return v}var p="4.3.1";var v=e.registerPlugin||e.plugin;var m=function e(t,i){h(this,t,i)};v("playlist",m);m.VERSION=p;return m})})();(function(){if(s.getPlugin("thumbnails")){return}(function(e,t){typeof exports==="object"&&typeof module!=="undefined"?module.exports=t(require("global/window"),require("global/document"),require("video.js")):typeof i==="function"&&i.amd?i(["global/window","global/document","video.js"],t):(e=e||self,e.videojsThumbnails=t(e.window,e.document,e.videojs))})(this,function(e,t,i){"use strict";e=e&&e.hasOwnProperty("default")?e["default"]:e;t=t&&t.hasOwnProperty("default")?t["default"]:t;i=i&&i.hasOwnProperty("default")?i["default"]:i;function r(e,t){e.prototype=Object.create(t.prototype);e.prototype.constructor=e;e.__proto__=t}function n(e){if(e===void 0){throw new ReferenceError("this hasn\'t been initialised - super() hasn\'t been called")}return e}var a=i.getComponent("Component");var s=function(e){r(t,e);function t(t,i){var r;r=e.call(this,t,i)||this;r.isImageLoading_=false;return r}var n=t.prototype;n.createEl=function t(){var r=e.prototype.createEl.call(this,"div",{className:"vjs-thumbnail-display"});this.imageEl_=i.dom.createEl("img",{className:"vjs-thumbnail-image",style:"display: none;"});r.appendChild(this.imageEl_);return r};n.setThumbnailImage=function e(t){var i=this;if(!t||this.isImageLoading_){return}this.imageEl_.onload=function(){i.isImageLoading_=false;if(!i.imageEl_.naturalWidth||!i.imageEl_.naturalHeight){i.imageEl_.style.display="none";return}var e=i.imageEl_.naturalWidth/i.imageEl_.naturalHeight;i.el_.style.height=Math.round(150/e)+"px";if(i.imageEl_.style.display==="none"){i.imageEl_.style.display="block"}};this.imageEl_.onerror=function(){i.isImageLoading_=false;i.imageEl_.style.display="none"};this.imageEl_.src=t;this.isImageLoading_=true};n.updatePosition=function e(t){var r=i.dom.getBoundingClientRect(this.el_);var n=r.width/2;var a=this.player_.getChild("ControlBar");if(!a){return}var s=a.getChild("ProgressControl");if(!s){return}var o=s.getChild("seekBar");if(!o){return}var l=i.dom.getBoundingClientRect(o.el());var u=l.width*t;var c=o.getChild("MouseTimeDisplay");if(!c){return}var d=i.dom.getBoundingClientRect(c.el());var f=i.dom.getBoundingClientRect(this.player_.el());if(d.left+n>=f.right-5){this.el_.style.left=f.width-r.width-2+"px";return}else if(d.right-n<=f.left+5){this.el_.style.left="2px";return}this.el_.style.left=u-Math.round(n)+"px"};return t}(a);a.registerComponent("ThumbnailDisplay",s);var o="1.2.0";var l=i.getPlugin("plugin");var u=30;var c=function t(i,r){var n=e.performance.now();var a=function t(){var a=e.performance.now();if(a-n>=r){i.apply(void 0,arguments);n=a}};return a};var d={};var f=function(e){r(a,e);function a(t,r){var a;a=e.call(this,t)||this;a.options=i.mergeOptions(d,r);a.metadataTrackEl_=null;a.thumbnailComponent_=null;a.currentThumbnail_=null;a.throttledHandleMouseMove=c(a.handleMouseMove.bind(n(a)),30);a.player.ready(function(){a.player.addClass("vjs-thumbnails");var e=a.player.textTracks();e.addEventListener("removetrack",function(){if(!a.player){return}if(!a.metadataTrackEl_){return}for(var t=0;t<e.length;t++){if(e[t].label==="thumbnails"){return}}a.thumbnailComponent_.dispose();a.thumbnailComponent_=null;a.metadataTrackEl_=null;
1a.currentThumbnail_=null;var i=a.player.getChild("ControlBar");if(!i){return}var r=i.getChild("ProgressControl");if(!r){return}var n=r.el();a.off(n,"mousemove",a.throttledHandleMouseMove)});e.addEventListener("addtrack",function(){if(a.metadataTrackEl_){return}a.metadataTrackEl_=a.getThumbnailsTrackEl();if(!a.metadataTrackEl_){return}a.metadataTrackEl_.track.mode="hidden";a.metadataTrackEl_.addEventListener("load",function(){if(!(a.metadataTrackEl_.track.cues&&a.metadataTrackEl_.track.cues.length)){i.log.warn("Unable to parse cues out of thumbnail vtt file.");return}if(i.browser.IS_IOS||i.browser.IS_ANDROID){return}if(a.player.hasClass("vjs-ssai-enabled")){a.adjustCueTimingForSSAI(a.metadataTrackEl_.track.cues)}var e=function e(){a.filterThumbnailsBasedOnPlayerWidth(a.metadataTrackEl_.track);a.preloadThumbnailImages(a.metadataTrackEl_.track.cues);a.setupThumbnailScrubbing()};if(a.player.readyState()>=1){e()}else{a.player.on("loadedmetadata",e)}})})});return a}var s=a.prototype;s.filterThumbnailsBasedOnPlayerWidth=function e(t){var i=this.player.currentWidth()||640;var r=Math.round(i/u)||1;var n=Math.floor(t.cues.length/r)-1;if(n<1){return}for(var a=0;a<t.cues.length;a++){var s=n;while(s>0){if(t.cues.length>r&&t.cues[a+1]){t.removeCue(t.cues[a+1])}s--}}for(var o=0;o<t.cues.length-1;o++){t.cues[o].endTime=t.cues[o+1].startTime}t.cues[t.cues.length-1].endTime=this.player.usingPlugin("ssai")&&this.player.hasClass("vjs-ssai-enabled")?this.player.ssai().contentDuration():this.player.duration()};s.preloadThumbnailImages=function e(i){for(var r=0;r<i.length;r++){var n=t.createElement("link");n.rel="prefetch";n.as="image";n.href=i[r].text;t.head.appendChild(n)}};s.adjustCueTimingForSSAI=function e(t){if(t[0].startTime!==0){var i=t[0].endTime*1e3-t[0].startTime*1e3;t[0].startTime=0;t[0].endTime=i/1e3}for(var r=1;r<t.length;r++){var n=t[r].endTime*1e3-t[r].startTime*1e3;t[r].startTime=t[r-1].endTime;t[r].endTime=(t[r].startTime*1e3+n)/1e3}};s.getThumbnailsTrackEl=function e(){var t=this.player.remoteTextTrackEls();for(var i=0;i<t.length;i++){var r=t[i].track;if(r.kind==="metadata"&&r.label==="thumbnails"){return t[i]}}};s.setupThumbnailScrubbing=function e(){var t=this.player.getChild("ControlBar");if(!t){return}var i=t.getChild("ProgressControl");if(!i){return}var r=i.getChild("seekBar");if(!r){return}this.thumbnailComponent_=r.addChild("ThumbnailDisplay");var n=i.el();this.on(n,"mousemove",this.throttledHandleMouseMove)};s.handleMouseMove=function e(t){if(this.player.ads&&this.player.ads.isInAdMode()){return}var r=this.player.getChild("ControlBar");if(!r){return}var n=r.getChild("ProgressControl");if(!n){return}var a=n.el();var s=i.dom.getPointerPosition(a,t).x;this.updateThumbnailImageAndPosition(s)};s.updateThumbnailImageAndPosition=function e(t){var i=t*this.player.duration();if(this.metadataTrackEl_.track.mode==="disabled"){this.metadataTrackEl_.track.mode="hidden"}if(this.metadataTrackEl_.track.cues){for(var r=0;r<this.metadataTrackEl_.track.cues.length;r++){var n=this.metadataTrackEl_.track.cues[r];if(i>=n.startTime&&i<=n.endTime&&n.text!==this.currentThumbnail_){this.thumbnailComponent_.setThumbnailImage(n.text);this.currentThumbnail_=n.text;break}}this.thumbnailComponent_.updatePosition(t)}};return a}(l);f.defaultState={};f.VERSION=o;i.registerPlugin("thumbnails",f);return f})})();var l=o.createInitializer(null,function(e,t,i){var r;var n=parseInt(undefined,10);var a=false;i.playlist();if(n===n&&isFinite(n)&&n>=0){i.playlist.autoadvance(n)}});a.restoreFirstVideojs();return l}(window,document);if(typeof t!=="undefined"){s=document.querySelector("#"+a);if(s){(function(){var e=function(e){return(e||"0.0.0").split(".").map(function(e){return Number(e)})};var t=e(s.getAttribute("data-vjs-version"));var i=e(o.videojs.VERSION);if(i[0]>t[0]||i[0]===t[0]&&i[1]>t[1]||i[0]===t[0]&&i[1]===t[1]&&i[2]>t[2]){s.parentNode.removeChild(s);s=null;d=c.firstChild}})()}if(!s){s=f(t,d);s.id=a;s.setAttribute("data-vjs-version",o.videojs.VERSION)}d=s.nextSibling}if(typeof i!=="undefined"){n=document.querySelector("."+r);if(!n){n=f(i,d);n.className=r}}function h(){var e=[].concat(Array.prototype.slice.call(document.querySelectorAll("video")),Array.prototype.slice.call(document.querySelectorAll("video-js")));for(u=0;
1u<e.length;u++){l=e[u];if(l.getAttribute("data-player")==="cENsmHkkB"&&l.getAttribute("data-embed")==="default"){if(o.videojs.getPlayer(l)){o.videojs.log("Ignoring already initialized player");continue}o(l)}}}h();return o});'),t[1].s.push('r s;(s=h).splice.apply(s,[n,a.length].concat(a))}if(p){return}t.trigger("playlistsorted")};if(Array.isArray(n)){v(n.slice(),c)}else{h=[]}return v}var p="4.3.1";var v=e.registerPlugin||e.plugin;var m=function e(t,i){h(this,t,i)};v("playlist",m);m.VERSION=p;return m})})();(function(){if(s.getPlugin("thumbnails")){return}(function(e,t){typeof exports==="object"&&typeof module!=="undefined"?module.exports=t(require("global/window"),require("global/document"),require("video.js")):typeof i==="function"&&i.amd?i(["global/window","global/document","video.js"],t):(e=e||self,e.videojsThumbnails=t(e.window,e.document,e.videojs))})(this,function(e,t,i){"use strict";e=e&&e.hasOwnProperty("default")?e["default"]:e;t=t&&t.hasOwnProperty("default")?t["default"]:t;i=i&&i.hasOwnProperty("default")?i["default"]:i;function r(e,t){e.prototype=Object.create(t.prototype);e.prototype.constructor=e;e.__proto__=t}function n(e){if(e===void 0){throw new ReferenceError("this hasn\'t been initialised - super() hasn\'t been called")}return e}var a=i.getComponent("Component");var s=function(e){r(t,e);function t(t,i){var r;r=e.call(this,t,i)||this;r.isImageLoading_=false;return r}var n=t.prototype;n.createEl=function t(){var r=e.prototype.createEl.call(this,"div",{className:"vjs-thumbnail-display"});this.imageEl_=i.dom.createEl("img",{className:"vjs-thumbnail-image",style:"display: none;"});r.appendChild(this.imageEl_);return r};n.setThumbnailImage=function e(t){var i=this;if(!t||this.isImageLoading_){return}this.imageEl_.onload=function(){i.isImageLoading_=false;if(!i.imageEl_.naturalWidth||!i.imageEl_.naturalHeight){i.imageEl_.style.display="none";return}var e=i.imageEl_.naturalWidth/i.imageEl_.naturalHeight;i.el_.style.height=Math.round(150/e)+"px";if(i.imageEl_.style.display==="none"){i.imageEl_.style.display="block"}};this.imageEl_.onerror=function(){i.isImageLoading_=false;i.imageEl_.style.display="none"};this.imageEl_.src=t;this.isImageLoading_=true};n.updatePosition=function e(t){var r=i.dom.getBoundingClientRect(this.el_);var n=r.width/2;var a=this.player_.getChild("ControlBar");if(!a){return}var s=a.getChild("ProgressControl");if(!s){return}var o=s.getChild("seekBar");if(!o){return}var l=i.dom.getBoundingClientRect(o.el());var u=l.width*t;var c=o.getChild("MouseTimeDisplay");if(!c){return}var d=i.dom.getBoundingClientRect(c.el());var f=i.dom.getBoundingClientRect(this.player_.el());if(d.left+n>=f.right-5){this.el_.style.left=f.width-r.width-2+"px";return}else if(d.right-n<=f.left+5){this.el_.style.left="2px";return}this.el_.style.left=u-Math.round(n)+"px"};return t}(a);a.registerComponent("ThumbnailDisplay",s);var o="1.2.0";var l=i.getPlugin("plugin");var u=30;var c=function t(i,r){var n=e.performance.now();var a=function t(){var a=e.performance.now();if(a-n>=r){i.apply(void 0,arguments);n=a}};return a};var d={};var f=function(e){r(a,e);function a(t,r){var a;a=e.call(this,t)||this;a.options=i.mergeOptions(d,r);a.metadataTrackEl_=null;a.thumbnailComponent_=null;a.currentThumbnail_=null;a.throttledHandleMouseMove=c(a.handleMouseMove.bind(n(a)),30);a.player.ready(function(){a.player.addClass("vjs-thumbnails");var e=a.player.textTracks();e.addEventListener("removetrack",function(){if(!a.player){return}if(!a.metadataTrackEl_){return}for(var t=0;t<e.length;t++){if(e[t].label==="thumbnails"){return}}a.thumbnailComponent_.dispose();a.thumbnailComponent_=null;a.metadataTrackEl_=null;a.currentThumbnail_=null;var i=a.player.getChild("ControlBar");if(!i){return}var r=i.getChild("ProgressControl");if(!r){return}var n=r.el();a.off(n,"mousemove",a.throttledHandleMouseMove)});e.addEventListener("addtrack",function(){if(a.metadataTrackEl_){return}a.metadataTrackEl_=a.getThumbnailsTrackEl();if(!a.metadataTrackEl_){return}a.metadataTrackEl_.track.mode="hidden";a.metadataTrackEl_.addEventListener("load",function(){if(!(a.metadataTrackEl_.track.cues&&a.metadataTrackEl_.track.cues.length)){i.log.warn("Unable to parse cues out of thumbnail vtt file.");return}if(i.browser.IS_IOS||i.browser.IS_ANDROID){return}if(a.player.hasClass("vjs-ssai-enabled")){a.adjustCueTimingForSSAI(a.metadataTrackEl_.track.cues)}var e=function e(){a.filterThumbnailsBasedOnPlayerWidth(a.metadataTrackEl_.track);a.preloadThumbnailImages(a.metadataTrackEl_.track.cues);a.setupThumbnailScrubbing()};if(a.player.readyState()>=1){e()}else{a.player.on("loadedmetadata",e)}})})});return a}var s=a.prototype;s.filterThumbnailsBasedOnPlayerWidth=function e(t){var i=this.player.currentWidth()||640;var r=Math.round(i/u)||1;var n=Math.floor(t.cues.length/r)-1;if(n<1){return}for(var a=0;a<t.cues.length;a++){var s=n;while(s>0){if(t.cues.length>r&&t.cues[a+1]){t.removeCue(t.cues[a+1])}s--}}for(var o=0;o<t.cues.length-1;o++){t.cues[o].endTime=t.cues[o+1].startTime}t.cues[t.cues.length-1].endTime=this.player.usingPlugin("ssai")&&this.player.hasClass("vjs-ssai-enabled")?this.player.ssai().contentDuration():this.player.duration()};s.preloadThumbnailImages=function e(i){for(var r=0;r<i.length;r++){var n=t.createElement("link");n.rel="prefetch";n.as="image";n.href=i[r].text;t.head.appendChild(n)}};s.adjustCueTimingForSSAI=function e(t){if(t[0].startTime!==0){var i=t[0].endTime*1e3-t[0].startTime*1e3;t[0].startTime=0;t[0].endTime=i/1e3}for(var r=1;r<t.length;r++){var n=t[r].endTime*1e3-t[r].startTime*1e3;t[r].startTime=t[r-1].endTime;t[r].endTime=(t[r].startTime*1e3+n)/1e3}};s.getThumbnailsTrackEl=function e(){var t=this.player.remoteTextTrackEls();for(var i=0;i<t.length;i++){var r=t[i].track;if(r.kind==="metadata"&&r.label==="thumbnails"){return t[i]}}};s.setupThumbnailScrubbing=function e(){var t=this.player.getChild("ControlBar");if(!t){return}var i=t.getChild("ProgressControl");if(!i){return}var r=i.getChild("seekBar");if(!r){return}
1this.thumbnailComponent_=r.addChild("ThumbnailDisplay");var n=i.el();this.on(n,"mousemove",this.throttledHandleMouseMove)};s.handleMouseMove=function e(t){if(this.player.ads&&this.player.ads.isInAdMode()){return}var r=this.player.getChild("ControlBar");if(!r){return}var n=r.getChild("ProgressControl");if(!n){return}var a=n.el();var s=i.dom.getPointerPosition(a,t).x;this.updateThumbnailImageAndPosition(s)};s.updateThumbnailImageAndPosition=function e(t){var i=t*this.player.duration();if(this.metadataTrackEl_.track.mode==="disabled"){this.metadataTrackEl_.track.mode="hidden"}if(this.metadataTrackEl_.track.cues){for(var r=0;r<this.metadataTrackEl_.track.cues.length;r++){var n=this.metadataTrackEl_.track.cues[r];if(i>=n.startTime&&i<=n.endTime&&n.text!==this.currentThumbnail_){this.thumbnailComponent_.setThumbnailImage(n.text);this.currentThumbnail_=n.text;break}}this.thumbnailComponent_.updatePosition(t)}};return a}(l);f.defaultState={};f.VERSION=o;i.registerPlugin("thumbnails",f);return f})})();var l=o.createInitializer(null,function(e,t,i){var r;var n=parseInt(undefined,10);var a=false;i.playlist();if(n===n&&isFinite(n)&&n>=0){i.playlist.autoadvance(n)}});a.restoreFirstVideojs();return l}(window,document);if(typeof t!=="undefined"){s=document.querySelector("#"+a);if(s){(function(){var e=function(e){return(e||"0.0.0").split(".").map(function(e){return Number(e)})};var t=e(s.getAttribute("data-vjs-version"));var i=e(o.videojs.VERSION);if(i[0]>t[0]||i[0]===t[0]&&i[1]>t[1]||i[0]===t[0]&&i[1]===t[1]&&i[2]>t[2]){s.parentNode.removeChild(s);s=null;d=c.firstChild}})()}if(!s){s=f(t,d);s.id=a;s.setAttribute("data-vjs-version",o.videojs.VERSION)}d=s.nextSibling}if(typeof i!=="undefined"){n=document.querySelector("."+r);if(!n){n=f(i,d);n.className=r}}function h(){var e=[].concat(Array.prototype.slice.call(document.querySelectorAll("video")),Array.prototype.slice.call(document.querySelectorAll("video-js")));for(u=0;u<e.length;u++){l=e[u];if(l.getAttribute("data-player")==="cENsmHkkB"&&l.getAttribute("data-embed")==="default"){if(o.videojs.getPlayer(l)){o.videojs.log("Ignoring already initialized player");continue}o(l)}}}h();return o}
1);'),p=t[ci].s.join("");var after=timer.now();bcShimDestripeTime=after-before,eval(p)}(),define("bc",function(){}),define("app/modules/home/views/episode-stage-content-view",["require","underscore","jquery","app/base-classes/base-view","text!app/modules/home/views/templates/episode-stage-content-tmpl.html","mustache","TweenMax","DrawSvgPlugin","bc"],function(e){var t=e("underscore"),n=e("jquery"),r=e("app/base-classes/base-view"),i=e("text!app/modules/home/views/templates/episode-stage-content-tmpl.html"),s=e("mustache"),o=e("TweenMax"),u=e("DrawSvgPlugin"),a=e("bc"),f=r.extend({el:"#home-stage-container",vid:null,videoID:6214052019001,initialize:function(e,n){this.debug=!1,this.init(),this.Evt=e,this.model=n,this.episodeNum=this.model.get("episode_num"),this.id_num=t.random(1,1e5),this.id="#episode-stage-content-"+this.id_num,this.model.attributes.id_num=this.id_num,this.render(),this.Evt.listenTo(this,"LAUNCH_PLAYER_EVENT",this.Evt.onLaunchPlayerEvent),this.listenTo(this.Evt,"REMOVE_DESKTOP_SUBVIEWS_EVENT",this.cleanUp.bind(this)),this.console.log("finding num is ",this.model),this.videoPausedOnMenu=!1},events:{"click #my-button":"onBtnClick"},onBtnClick:function(e){var t={myval:"ubu"};this.trigger("BUTTON_EVENT",t)},cleanUp:function(){this.undelegateEvents(),this.tempTimeout!=undefined&&window.clearTimeout(this.tempTimeout),n(this.id).remove()},fadeOut:function(){o.to(n(this.id),.5,{opacity:0,ease:Power2.easeInOut,onComplete:this.cleanUp.bind(this)})},onClickPlayBtn:function(e){var n=this.model.get("episode_num"),r=0,i=boeing_globals.userDataCollection.where({episode_num:n});i!==undefined&&i.length>=1&&t.has(i[0],"attributes")&&(i[0].attributes.viewed_percentage*1>=1&&i[0].resetWatchedChapters(),r=i[0].attributes.last_chapter_viewed);var s={currentEpisode:n,currentChapter:r,currentPage:"player"},o=this.gaMixins.getEventLabel(n+1,r+1);this.gaMixins.sendClickEvent("episode-nav-click",o),boeing_globals.videoPlayed=!0,this.trigger("LAUNCH_PLAYER_EVENT",s)},animatePercentage:function(e){var t=String(e)+"%",r=n(this.el).find(".pct-path");o.fromTo(r,1,{drawSVG:"0"},{drawSVG:t,ease:Power2.easeInOut})},onToggleVideo:function(e){var t=e.get("loadMenu"),n=this.vid.paused==0;if(t==1&&n==1){this.videoPausedOnMenu=!0;var r=function(){this.vid.pause()};this.tempTimeout=window.setTimeout(r.bind(this),500)}else if(t==0&&n==0&&this.videoPausedOnMenu==1){var i=function(){this.vid.play()};this.tempTimeout=window.setTimeout(i.bind(this),500)}},afterRender:function(){n(this.id).css({opacity:"0"});var e=function(){n(this.el).find(".timestamp").addClass("reveal")};o.to(n(this.id),.25,{opacity:1,ease:Power2.easeInOut});try{this.vid!=null&&this.vid.dispose(),this.vid=a("episode-stage-video")}catch(t){console.error("Brightcove Error: ",t)}this.vid==null&&(this.vid=a("episode-stage-video"));var r=n("#episode-stage-video");r.addClass("hide-player"),this.vid.play(),this.vid.on("loadedmetadata",function(){r.removeClass("hide-player")});var i=100;n(".pct-path").on("click",this.onClickPlayBtn.bind(this));if(boeing_globals.userdata[this.episodeNum]!==undefined){var s=boeing_globals.userdata[this.episodeNum].viewed_percentage;this.animatePercentage(Math.ceil(s*100))}else this.animatePercentage(0);i=s*600,window.setTimeout(e.bind(this),i);if(this.episodeNum==4&&boeing_globals.hideEpisode5==1){var u=n("#circle-percentage svg");n(u).empty()}this.listenTo(boeing_globals.state,"change:loadMenu",this.onToggleVideo.bind(this))},addDurationInfo:function(){var e="",t=this.model.get("episode_duration");if(boeing_globals.userdata[this.episodeNum]!==undefined){var n=boeing_globals.userdata[this.episodeNum].last_viewed_time,r=boeing_globals.userdata[this.episodeNum].episode_duration;r!==0&&(t=r),n!==undefined&&n.length>1&&(e=n+" : ")}return boeing_globals.userdata[this.episodeNum].viewed_percentage*1>=1?"REPLAY":e+t},render:function(){var e=this.model.toJSON();e.timestamp=this.addDurationInfo(),e.episode=this.uiTextModel.get("episode"),this.videoID=e.episode_video_id;var t=s.to_html(i,e);n(this.el).append(t),this.afterRender()}});return f}),define("text!app/modules/home/views/templates/episode-stage-tmpl.html",[],function(){return'<li id="home-stage-container" class="list-stage FlexEmbed FlexEmbed--16by9">\n    <!--img class="FlexEmbed FlexEmbed--16by9" src="assets/images/boeing-test-stage.jpg" /-->\n</li>'}),define("app/modules/home/views/episode-stage-view",["require","underscore","jquery","app/base-classes/base-view","app/modules/home/views/episode-stage-content-view","text!app/modules/home/views/templates/episode-stage-tmpl.html","mustache","a
1pp/utils/ga-mixins"],function(e){var t=e("underscore"),n=e("jquery"),r=e("app/base-classes/base-view"),i=e("app/modules/home/views/episode-stage-content-view"),s=e("text!app/modules/home/views/templates/episode-stage-tmpl.html"),o=e("mustache"),u=e("app/utils/ga-mixins"),a=r.extend({el:"#home-content",initialize:function(e,t){this.debug=!1,this.Evt=e,this.collection=t;var n=this.collection.at(0);this.init(),this.render(),this.Evt.on("THUMB_CLICKED_EVENT",this.onThumbClicked.bind(this)),this.content=new i(this.Evt,n),this.listenTo(this.Evt,"REMOVE_DESKTOP_SUBVIEWS_EVENT",this.cleanUp.bind(this))},onThumbClicked:function(e){this.resetStage(e)},resetStage:function(e){var r=this.content;if(n("#episode-stage-video").length){var s=videojs("episode-stage-video");s.dispose()}t.isUndefined(r)||r.fadeOut(),this.content=new i(this.Evt,e)},events:{"click #my-button":"onBtnClick"},onBtnClick:function(e){var t={myval:"ubu"};this.trigger("BUTTON_EVENT",t)},cleanUp:function(){this.undelegateEvents()},afterRender:function(){},render:function(){var e=o.to_html(s);n(this.el).append(e),this.afterRender()}});return a}),define("app/modules/home/views/view",["require","jquery","app/base-classes/base-view","text!app/modules/home/views/templates/tmpl.html","app/modules/home/views/episode-desktop-menu-y2-view","app/modules/home/views/episode-topics-surfacing-view","app/modules/home/views/episode-stage-view","mustache","TweenMax","app/utils/ga-mixins"],function(e){var t=e("jquery"),n=e("app/base-classes/base-view"),r=e("text!app/modules/home/views/templates/tmpl.html"),i=e("app/modules/home/views/episode-desktop-menu-y2-view"),s=e("app/modules/home/views/episode-topics-surfacing-view"),o=e("app/modules/home/views/episode-stage-view"),u=e("mustache"),a=e("TweenMax"),f=e("app/utils/ga-mixins"),l=n.extend({el:"#bng-home",initialize:function(e,t){this.debug=!0,this.Evt=e,this.collection=t,this.Evt.listenTo(this,"BUTTON_EVENT",this.Evt.onSubviewEvent),this.init(),this.render(),this.userData=boeing_globals.userdata,this.episodeDesktopMenu=new i(this.Evt,this.collection,this.userData),this.episodeStage=new o(this.Evt,this.collection,this.userData),this.episodeTopicsSurfacingView=new s(this.Evt,"#home-content")},events:{"click #my-button":"onBtnClick"},onBtnClick:function(e){var t={myval:"ubu"};this.trigger("BUTTON_EVENT",t)},removeFromStage:function(){a.to(t(this.id),1,{x:t(document).width()*-1,ease:Power2.easeInOut,onComplete:this.cleanUp.bind(this)})},cleanUp:function(){this.undelegateEvents(),t(this.id).remove()},afterRender:function(){},render:function(){var e=u.to_html(r);t(this.el).append(e),this.id="#home-content",this.afterRender()}});return l}),define("app/modules/home/models/model",["require","underscore","jquery","backbone"],function(e){var t=e("underscore"),n=e("jquery"),r=e("backbone"),i=r.Model.extend({defaults:{type:"Feature",text:"home loaded data from model"},parse:function(e){},initialize:function(e){console.log("model initialized ",e)}});return i}),define("text!app/modules/home/views/templates/tmpl-mobile-header-default-y2-view.html",[],function(){return'\n    <header style="background: url({{logo_lockup}}) no-repeat; background-position:center; background-size:70%;">\n        <!--\n        <svg xmlns="//www.w3.org/2000/svg" xmlns:xlink="//www.w3.org/1999/xlink" preserveAspectRatio="xMidYMid" width="480" height="232" viewBox="0 0 480	232">\n			<path fill-rule="evenodd"  fill="rgb(255, 255, 255)"\n			 d="M479.000,223.767 L479.000,231.191 L443.815,231.191 L443.815,183.950 L478.664,183.950 L478.664,191.374 L452.074,191.374 L452.074,203.656 L475.643,203.656 L475.643,211.080 L452.074,211.080 L452.074,223.767 L479.000,223.767 ZM439.288,13.321 L431.664,13.321 L432.471,12.207 C432.502,12.106 432.502,11.998 432.471,11.898 C432.471,11.624 432.254,11.403 431.987,11.403 L429.829,11.403 C429.305,11.401 428.811,11.654 428.498,12.083 L423.456,18.909 C423.426,19.003 423.426,19.104 423.456,19.198 C423.456,19.471 423.672,19.693 423.939,19.693 L426.098,19.693 C426.622,19.694 427.116,19.442 427.429,19.012 L430.394,14.888 L439.792,14.888 L437.573,17.899 L435.718,17.899 L434.205,19.961 C432.989,21.611 431.084,22.581 429.062,22.580 L416.779,22.580 C415.743,22.580 414.903,21.721 414.903,20.662 C414.903,20.244 415.038,19.838 415.287,19.507 L421.619,10.9
108 C422.834,9.255 424.740,8.284 426.763,8.289 L439.046,8.289 L439.147,8.433 C439.539,8.438 439.920,8.567 440.236,8.804 C441.072,9.431 441.252,10.631 440.639,11.485 L439.288,13.321 ZM402.560,22.559 L400.947,15.383 L395.642,22.559 L390.600,22.559 L401.128,8.268 L407.098,8.268 L408.732,15.527 L414.077,8.268 L419.119,8.268 L408.591,22.559 L402.560,22.559 ZM378.095,22.559 L388.623,8.268 L396.268,8.268 L385.739,22.559 L378.095,22.559 ZM374.425,11.258 L372.529,13.815 L380.193,13.815 L377.994,16.826 L370.330,16.826 L368.293,19.569 L375.957,19.569 L373.759,22.559 L358.451,22.559 L368.979,8.268 L384.287,8.268 L382.089,11.258 L374.425,11.258 ZM355.990,19.940 C354.773,21.591 352.869,22.561 350.847,22.559 L338.584,22.559 C338.178,22.558 337.784,22.422 337.459,22.172 C336.633,21.534 336.468,20.332 337.092,19.486 L343.424,10.887 C344.641,9.236 346.546,8.267 348.568,8.268 L360.830,8.268 C361.866,8.268 362.706,9.127 362.706,10.186 C362.706,10.604 362.572,11.009 362.323,11.341 L355.990,19.940 ZM354.276,11.753 C354.276,11.480 354.059,11.258 353.792,11.258 L351.633,11.258 C351.111,11.263 350.619,11.514 350.302,11.939 L345.260,18.765 C345.190,18.854 345.153,18.965 345.154,19.079 C345.157,19.353 345.376,19.572 345.643,19.569 L347.801,19.569 C348.325,19.571 348.819,19.318 349.132,18.888 L354.175,12.063 L354.276,12.063 C354.306,11.962 354.306,11.854 354.276,11.753 ZM337.556,13.300 C336.666,14.510 335.390,15.358 333.954,15.718 C334.289,16.011 334.490,16.434 334.490,16.888 C334.493,17.223 334.386,17.550 334.187,17.816 L332.695,19.878 C331.461,21.525 329.540,22.480 327.512,22.456 L311.498,22.456 L322.026,8.165 L337.515,8.165 C337.921,8.166 338.316,8.302 338.640,8.552 C339.467,9.190 339.632,10.392 339.008,11.238 L337.556,13.300 ZM321.360,19.548 L324.486,19.548 C325.011,19.550 325.504,19.297 325.818,18.868 L326.765,17.589 L326.866,17.569 C326.896,17.475 326.896,17.374 326.866,17.280 C326.866,17.007 326.650,16.785 326.382,16.785 L323.377,16.785 L321.360,19.548 ZM330.920,11.753 C330.920,11.480 330.704,11.258 330.436,11.258 L327.431,11.258 L325.535,13.815 L328.662,13.815 C329.185,13.814 329.677,13.562 329.993,13.135 L330.799,12.042 L330.920,12.063 C330.951,11.962 330.951,11.854 330.920,11.753 ZM297.399,24.003 C306.939,27.797 318.577,27.013 318.576,28.065 C318.576,28.065 301.009,28.539 295.120,29.034 L294.636,28.106 C289.910,32.871 282.500,33.422 277.150,29.405 C275.778,33.138 275.778,35.757 277.452,36.396 C280.155,37.427 285.076,32.890 285.076,32.890 C281.890,37.716 276.424,40.644 274.144,39.077 C271.865,37.510 272.329,32.911 274.911,27.199 C271.333,22.920 270.652,16.850 273.189,11.854 C276.628,5.082 284.785,2.443 291.409,5.959 C293.980,3.744 296.725,1.751 299.618,-0.001 C297.137,2.144 294.777,4.391 292.619,6.680 C298.177,10.456 300.207,17.814 297.399,24.003 ZM285.120,6.045 C278.548,6.031 273.210,11.468 273.197,18.187 L273.257,18.084 C273.213,20.781 274.051,23.415 275.637,25.570 C279.314,18.595 284.184,12.350 290.018,7.134 C288.479,6.419 286.809,6.048 285.120,6.045 ZM277.714,27.735 C279.812,29.425 282.406,30.341 285.076,30.333 L285.136,30.189 C288.390,30.215 291.511,28.873 293.769,26.477 L290.179,19.610 C291.859,21.154 293.764,22.420 295.826,23.363 C298.391,17.808 296.495,11.168 291.409,7.897 C285.848,13.729 281.227,20.425 277.714,27.735 ZM262.470,170.210 C255.785,170.210 251.390,165.425 251.390,159.167 L251.390,159.105 C251.390,153.092 255.968,148.000 262.409,148.000 C266.132,148.000 268.422,149.043 270.619,150.914 L268.239,153.767 C266.590,152.356 264.973,151.466 262.256,151.466 C258.318,151.466 255.327,154.933 255.327,159.044 L255.327,159.105 C255.327,163.523 258.227,166.775 262.592,166.775 C264.606,166.775 266.438,166.131 267.750,165.149 L267.750,161.130 L262.286,161.130 L262.286,157.847 L271.382,157.847 L271.382,166.867 C269.277,168.677 266.255,170.210 262.470,170.210 ZM261.759,74.762 L259.018,74.762 L259.018,78.783 L257.744,78.783 L257.744,67.389 L261.968,67.389 C264.516,67.389 266.191,68.756 266.191,71.003 L266.191,71.036 C266.191,73.493 264.161,74.762 261.759,74.762 ZM264.902,71.051 C264.902,69.423 263.693,68.577 261.871,68.577 L259.018,68.577 L259.018,73.590 L261.806,73.590 C263.677,73.590 264.902,72.581 264.902,71.084 L264.902,71.051 ZM266.022,189.214 L261.590,195.490 C257.360,192.318 253.130,190.631 248.832,190.631 C243.998,190.631 241.178,193.128 241.178,196.233 L241.178,196.368 C241.178,200.012 243.327,201.631 252.391,203.791 C262.329,206.220 267.432,209.797 267.432,217.626 L267.432,217.761 C267.432,226.601 260.516,231.865 250.645,231.865 C243.461,231.865 236.679,229.368 231.039,224.307 L236.007,218.368 C240.506,222.282 245.072,224.509 250.847,224.509 C255.950,224.509 259.173,222.080 259.173,218.570 L259.173,218.436 C259.173,215.062 257.293,213.239 248.564,211.215 C238.559,208.785 232.918,205.816 232.918,197.110 L232.918,196.975 C232.918,188.876 239.633,183.275 248.967,183.275 C255.816,183.275 261.255,185.367 266.022,189.214 ZM233.271,78.783 L231.981,78.783 L231.981,74.274 L227.289,67.389 L228.836,67.389 L232.641,73.086 L236.479,67.389 L237.961,67.389 L233.271,74.258 L233.271,78.783 ZM231.750,1.174 L233.343,1.174 L233.343,40.665 L231.750,40.665 L231.750,1.174 ZM214.109,67.389 L215.383,67.389 L215.383,77.596 L221.735,77.596 L221.735,78.783 L214.109,78.783 L214.109,67.389 ZM218.033,148.215 L227.434,169.842 L223.466,169.842 L221.299,164.658 L211.196,164.658 L208.998,169.842 L205.152,169.842 L214.554,148.215 L2
118.033,148.215 ZM219.926,161.314 L216.232,152.724 L212.570,161.314 L219.926,161.314 ZM198.960,78.783 L195.042,78.783 L195.042,67.389 L198.960,67.389 C202.507,67.389 204.956,69.847 204.956,73.054 L204.956,73.086 C204.956,76.293 202.507,78.783 198.960,78.783 ZM203.635,73.086 C203.635,70.563 201.814,68.577 198.960,68.577 L196.316,68.577 L196.316,77.596 L198.960,77.596 C201.814,77.596 203.635,75.642 203.635,73.119 L203.635,73.086 ZM183.989,34.746 C182.216,35.276 180.364,35.472 178.523,35.324 L178.523,32.169 C179.746,32.290 180.979,32.164 182.154,31.798 C183.193,30.545 183.993,29.104 184.513,27.549 L184.513,27.426 L178.463,10.660 L182.497,10.660 L186.530,23.033 L190.766,10.660 L194.578,10.660 C194.578,10.660 187.357,29.818 186.409,31.777 C185.988,33.038 185.127,34.096 183.989,34.746 ZM171.485,18.187 C171.182,19.131 171.046,20.123 171.082,21.115 L171.082,27.529 L167.310,27.529 L167.310,10.660 L171.021,10.660 L171.021,13.465 C172.401,11.983 174.254,11.054 176.245,10.846 L177.536,14.063 C174.938,14.219 172.625,15.796 171.485,18.187 ZM161.422,78.978 C157.988,78.978 155.682,76.261 155.682,73.119 L155.682,73.086 C155.682,69.944 158.019,67.193 161.453,67.193 C164.888,67.193 167.193,69.912 167.193,73.054 L167.193,73.086 C167.193,76.228 164.856,78.978 161.422,78.978 ZM165.870,73.086 C165.870,70.498 164.001,68.381 161.422,68.381 C158.842,68.381 157.003,70.465 157.003,73.054 L157.003,73.086 C157.003,75.674 158.874,77.790 161.453,77.790 C164.033,77.790 165.870,75.707 165.870,73.119 L165.870,73.086 ZM153.938,23.652 C154.820,24.400 155.939,24.796 157.084,24.765 C157.926,24.786 158.761,24.610 159.525,24.250 C160.271,23.862 160.952,23.353 161.542,22.745 L163.760,24.807 C162.979,25.761 162.019,26.546 160.937,27.116 C159.719,27.721 158.378,28.018 157.024,27.982 C155.886,27.990 154.755,27.773 153.697,27.343 C151.660,26.510 150.044,24.864 149.219,22.786 C148.768,21.654 148.541,20.441 148.554,19.218 C148.543,18.050 148.741,16.890 149.138,15.795 C149.515,14.759 150.083,13.806 150.813,12.991 C151.527,12.190 152.391,11.545 153.354,11.093 C154.376,10.629 155.484,10.397 156.601,10.413 C157.791,10.390 158.970,10.644 160.050,11.155 C161.012,11.645 161.853,12.350 162.511,13.217 C163.136,14.024 163.614,14.939 163.922,15.919 C164.260,17.041 164.430,18.209 164.426,19.383 C164.426,19.548 164.426,19.734 164.426,19.919 C164.426,20.105 164.426,20.291 164.426,20.476 L152.324,20.476 C152.454,21.704 153.030,22.837 153.938,23.652 ZM160.674,17.507 C160.619,17.039 160.482,16.585 160.271,16.166 C160.074,15.644 159.787,15.162 159.424,14.743 C159.071,14.339 158.637,14.016 158.153,13.795 C157.625,13.564 157.054,13.452 156.479,13.465 C155.389,13.437 154.339,13.887 153.595,14.702 C152.813,15.433 152.318,16.430 152.204,17.507 L160.674,17.507 ZM132.212,148.368 L148.053,148.368 L148.053,151.743 L135.966,151.743 L135.966,157.326 L146.679,157.326 L146.679,160.700 L135.966,160.700 L135.966,166.468 L148.205,166.468 L148.205,169.842 L132.212,169.842 L132.212,148.368 ZM138.066,78.783 L138.066,67.389 L142.919,67.389 C144.306,67.389 145.418,67.812 146.127,68.528 C146.675,69.081 146.998,69.879 146.998,70.775 L146.998,70.807 C146.998,72.696 145.708,73.802 143.934,74.128 L147.401,78.783 L145.838,78.783 L142.563,74.356 L139.340,74.356 L139.340,78.783 L138.066,78.783 ZM142.805,73.200 C144.499,73.200 145.708,72.321 145.708,70.856 L145.708,70.824 C145.708,69.423 144.645,68.577 142.821,68.577 L139.340,68.577 L139.340,73.200 L142.805,73.200 ZM137.924,27.673 L131.147,10.660 L135.201,10.660 L139.638,23.075 L144.116,10.660 L148.089,10.660 L141.332,27.673 L137.924,27.673 ZM125.681,27.240 C123.429,28.169 120.913,28.169 118.662,27.240 C117.624,26.805 116.679,26.168 115.879,25.364 C115.092,24.570 114.468,23.624 114.044,22.580 C113.602,21.509 113.376,20.359 113.378,19.198 C113.368,18.022 113.594,16.857 114.044,15.774 C114.922,13.649 116.580,11.961 118.662,11.073 C119.773,10.597 120.967,10.359 122.172,10.372 C123.374,10.357 124.568,10.589 125.681,11.052 C127.780,11.922 129.451,13.616 130.320,15.754 C130.764,16.830 130.991,17.988 130.985,19.157 C130.992,20.318 130.765,21.470 130.320,22.538 C129.441,24.670 127.774,26.360 125.681,27.240 ZM126.810,17.156 C126.573,16.515 126.217,15.927 125.761,15.424 C125.311,14.929 124.770,14.529 124.168,14.249 C122.879,13.692 121.424,13.692 120.134,14.249 C119.541,14.524 119.006,14.917 118.561,15.403 C118.115,15.890 117.772,16.466 117.553,17.094 C117.325,17.757 117.209,18.454 117.210,19.157 C117.212,19.862 117.342,20.561 117.593,21.219 C117.831,21.866 118.187,22.460 118.642,22.971 C119.089,23.470 119.632,23.869 120.235,24.147 C120.869,24.440 121.557,24.587 122.252,24.580 C122.947,24.582 123.634,24.435 124.269,24.147 C124.866,23.869 125.402,23.469 125.842,22.971 C126.286,22.475 126.629,21.893 126.851,21.260 C127.080,20.602 127.195,19.908 127.192,19.209 C127.188,18.507 127.059,17.811 126.810,17.156 ZM105.916,24.559 C107.589,24.498 109.155,23.701 110.212,22.373 L112.491,24.683 C110.867,26.668 108.473,27.827 105.941,27.852 C101.163,27.901 97.251,23.980 97.203,19.095 C97.202,19.032 97.201,18.970 97.202,18.908 C97.225,14.102 101.054,10.224 105.755,10.248 C108.272,10.136 110.701,11.207 112.350,13.156 L110.010,15.754 C108.957,14.449 107.389,13.693 105.735,13.692 C105.689,13.694 105.644,13.696 105.599,13.699 C102.865,13.883 100.794,16.299 100.974,19.095 C100.969,19.181 100.965,19.267 100.964,19.353 C100.926,22.189 103.143,24.520 105.916,24.559 ZM87.784,16.599 C88.167,16.796 88.565,16.962 88.974,17.094 L90.365,17.569 C90.970,17.775 91.575,18.002 92.180,18.249 C92.761,18.495 93.310,18.814 93.814,19.198 C94.305,19.551 94.723,19.999 95.044,20.518 C95.373,21.114 95.533,21.792 95.508,22.477 C95.528,23.279 95.370,24.076 95.044,24.807 C94.746,25.452 94.304,26.018 93.753,26.457 C93.151,26.917 92.466,27.253 91.737,27.446 C90.956,27.673 90.148,27.784 89.337,27.776 C88.107,27.770 86.887,27.554 85.726,27.137 C84.502,26.710 83.357,26.075 82.338,25.260 L84.033,22.642 C84.870,23.288 85.794,23.809 86.776,24.188 C87.625,24.528 88.527,24.710 89.438,24.724 C90.106,24.767 90.769,24.594 91.334,24.229 C91.761,23.934 92.013,23.437 92.000,22.910 C92.001,22.606 91.894,22.312 91.698,22.085 C91.469,21.828 91.196,21.618 90.891,21.466 C90.509,21.272 90.110,21.113 89.701,20.992 L88.309,20.559 C87.704,20.394 87.092,20.194 86.474,19.961 C85.883,19.740 85.326,19.435 84.820,19.053 C84.328,18.683 83.916,18.213 83.610,17.672 C83.282,17.037 83.122,16.327 83.146,15.610 C83.107,14.151 83.733,12.757 84.840,11.836 C85.395,11.372 86.032,11.022 86.716,10.805 C87.460,10.567 88.236,10.448 89.015,10.454 C90.090,10.459 91.158,10.633 92.181,10.970 C93.210,11.293 94.188,11.765 95.086,12.372 L93.593,15.115 C92.836,14.637 92.031,14.243 91.193,13.939 C90.469,13.667 89.706,13.520 88.934,13.506 C88.334,13.470 87.738,13.637 87.240,13.980 C86.854,14.259 86.627,14.714 86.634,15.197 C86.634,15.492 86.751,15.775 86.957,15.981 C87.196,16.234 87.476,16.443 87.784,16.599 ZM76.005,10.660 L79.797,10.660 L79.797,27.529 L76.005,27.529 L76.005,10.660 ZM62.915,27.446 C62.680,27.447 62.444,27.440 62.209,27.426 L55.553,27.426 C56.901,26.505 58.019,25.277 58.821,23.838 L62.209,23.838 C66.144,24.103 69.544,21.056 69.803,17.033 C69.819,16.779 69.823,16.524 69.813,16.269 C69.976,12.218 66.896,8.799 62.934,8.632 C62.693,8.622 62.450,8.624 62.209,8.639 L57.893,8.639 L57.893,11.939 C56.873,10.615 55.550,9.567 54.041,8.887 L54.041,5.051 L62.109,5.051 C68.118,4.596 73.351,9.208 73.796,15.353 C73.817,15.637 73.828,15.922 73.827,16.207 C73.849,22.392 68.963,27.424 62.915,27.446 ZM58.660,18.249 C58.660,22.953 54.930,26.766 50.329,26.766 C45.729,26.766 42.000,22.953 42.000,18.249 C42.000,13.545 45.729,9.732 50.330,9.732 C54.931,9.733 58.660,13.546 58.660,18.249 L58.660,18.249 ZM46.741,23.013 C46.882,23.013 46.882,23.013 46.882,23.013 C46.887,23.102 46.887,23.192 46.882,23.281 C46.841,23.343 46.841,23.425 46.882,23.487 C46.933,23.556 47.004,23.606 47.084,23.631 C47.211,23.616 47.340,23.616 47.467,23.631 C47.371,23.659 47.277,23.693 47.185,23.735 C47.185,23.796 47.185,23.899 47.185,23.899 C47.252,23.893 47.320,23.893 47.387,23.899 L47.790,24.188 C47.834,24.317 47.930,24.422 48.052,24.477 C48.180,24.457 48.308,24.503 48.395,24.601 C48.421,24.688 48.421,24.781 48.395,24.869 C48.416,24.957 48.416,25.049 48.395,25.137 C48.233,25.260 48.233,25.260 48.233,25.260 C48.279,25.303 48.349,25.303 48.395,25.260 C48.515,25.246 48.637,25.246 48.758,25.260 C48.870,25.231 48.988,25.231 49.100,25.260 C49.203,25.334 49.320,25.383 49.443,25.405 C49.604,25.385 49.767,25.385 49.927,25.405 C50.013,25.425 50.103,25.425 50.189,25.405 C50.281,25.418 50.366,25.461 50.431,25.529 L50.613,25.652 L50.815,25.776 C50.956,25.879 50.654,25.982 50.674,25.982 C50.694,25.982 50.855,25.982 50.855,25.982 L51.259,25.982 C51.422,25.980 51.577,25.904 51.682,25.776 C51.741,25.651 51.831,25.544 51.944,25.467 C52.141,25.396 52.326,25.291 52.489,25.157 C52.489,25.054 52.610,24.951 52.489,24.910 C52.368,24.869 52.287,24.745 52.368,24.745 C52.448,24.745 52.690,24.745 52.811,24.745 C52.914,24.662 53.021,24.587 53.134,24.518 L53.456,24.518 L53.456,24.456 C53.517,24.477 53.538,24.188 53.538,24.188 C53.435,24.123 53.380,24.002 53.397,23.879 C53.440,23.788 53.440,23.681 53.397,23.590 C53.397,23.508 53.397,23.384 53.397,23.384 C53.344,23.300 53.267,23.235 53.175,23.198 C53.087,23.102 52.993,23.013 52.893,22.930 C52.779,22.945 52.664,22.945 52.550,22.930 C52.444,22.827 52.321,22.743 52.187,22.683 C52.036,22.730 51.875,22.730 51.723,22.683 L51.017,22.353 C50.928,22.262 50.826,22.186 50.715,22.126 C50.546,22.051 50.385,21.961 50.231,21.858 C50.090,21.755 50.046,21.560 50.130,21.404 C50.251,21.239 50.675,20.909 50.675,20.806 C50.680,20.717 50.680,20.627 50.675,20.538 C50.723,20.478 50.757,20.408 50.776,20.332 C50.802,20.254 50.877,20.203 50.957,20.208 C51.078,20.167 51.200,20.002 51.078,20.002 C51.009,20.039 50.926,20.039 50.856,20.002 C50.827,19.931 50.768,19.877 50.695,19.858 C50.621,19.853 50.558,19.805 50.533,19.734 C50.575,19.635 50.575,19.523 50.533,19.424 C50.457,19.375 50.412,19.289 50.412,19.198 C50.425,19.129 50.425,19.060 50.412,18.991 C50.395,18.945 50.395,18.894 50.412,18.847 C50.412,18.806 50.412,18.600 50.412,18.600 C50.348,18.572 50.275,18.572 50.210,18.600 C50.
1134,18.559 50.044,18.559 49.968,18.600 C49.993,18.666 49.993,18.740 49.968,18.806 C49.870,18.893 49.724,18.893 49.625,18.806 C49.577,18.708 49.499,18.629 49.403,18.579 C49.376,18.499 49.376,18.412 49.403,18.332 C49.436,18.274 49.436,18.203 49.403,18.146 C49.390,18.085 49.390,18.021 49.403,17.960 C49.355,17.926 49.290,17.926 49.242,17.960 C49.176,17.984 49.105,17.984 49.040,17.960 C48.967,17.944 48.891,17.944 48.818,17.960 C48.767,18.011 48.732,18.075 48.717,18.146 C48.699,18.220 48.699,18.298 48.717,18.373 C48.741,18.446 48.741,18.526 48.717,18.600 C48.626,18.571 48.553,18.503 48.515,18.414 C48.546,18.571 48.546,18.732 48.515,18.888 C48.454,18.888 48.313,18.888 48.313,18.888 C48.289,18.997 48.289,19.110 48.313,19.218 C48.342,19.340 48.342,19.468 48.313,19.590 C48.275,19.682 48.275,19.786 48.313,19.878 C48.149,20.173 48.113,20.524 48.214,20.847 C48.246,20.921 48.303,20.979 48.375,21.012 C48.483,21.061 48.585,21.123 48.677,21.198 C48.706,21.271 48.706,21.352 48.677,21.425 C48.700,21.520 48.700,21.619 48.677,21.714 C48.637,21.775 48.375,21.940 48.375,21.940 C48.308,21.986 48.220,21.986 48.153,21.940 L47.851,21.940 C47.779,21.965 47.700,21.965 47.629,21.940 C47.620,22.005 47.570,22.055 47.507,22.064 C47.446,22.022 47.367,22.022 47.306,22.064 C47.272,22.161 47.225,22.251 47.164,22.332 C47.151,22.386 47.151,22.443 47.164,22.497 C47.164,22.642 47.265,22.642 47.164,22.642 C47.091,22.625 47.016,22.625 46.942,22.642 C46.851,22.695 46.757,22.743 46.660,22.786 C46.539,22.827 46.539,23.013 46.539,23.013 C46.604,23.036 46.675,23.036 46.741,23.013 ZM53.457,17.899 C53.430,17.833 53.430,17.758 53.457,17.692 C53.477,17.589 53.335,17.589 53.335,17.589 C53.203,17.592 53.080,17.521 53.013,17.404 C53.029,17.329 53.029,17.252 53.013,17.177 C52.954,17.130 52.912,17.065 52.892,16.991 C52.872,16.991 52.690,16.991 52.690,16.991 L52.690,16.929 C52.626,16.980 52.582,17.054 52.569,17.135 C52.549,17.217 52.549,17.302 52.569,17.383 C52.589,17.490 52.656,17.581 52.751,17.630 C52.847,17.627 52.938,17.673 52.993,17.754 C52.975,17.836 52.975,17.920 52.993,18.002 C53.093,17.985 53.195,17.985 53.295,18.002 C53.457,18.084 53.457,18.002 53.457,17.899 ZM47.828,15.445 C47.769,15.467 47.705,15.467 47.646,15.445 C47.465,15.403 47.465,15.630 47.465,15.630 L47.465,15.754 L47.586,15.754 C47.626,15.747 47.667,15.747 47.707,15.754 C47.708,15.768 47.706,15.781 47.707,15.795 C47.687,15.795 47.808,15.795 47.808,15.795 C47.831,15.744 47.875,15.706 47.929,15.692 C48.002,15.662 48.064,15.612 48.111,15.548 C48.190,15.524 48.274,15.524 48.353,15.548 C48.419,15.524 48.489,15.524 48.555,15.548 C48.555,15.573 48.555,15.584 48.555,15.589 C48.587,15.576 48.623,15.576 48.656,15.589 C48.701,15.606 48.751,15.606 48.797,15.589 C48.918,15.589 48.918,15.589 48.918,15.589 C48.957,15.605 49.000,15.605 49.039,15.589 L49.039,15.465 C49.071,15.465 49.080,15.465 49.095,15.465 C49.093,15.465 49.101,15.465 49.099,15.465 C49.089,15.465 49.086,15.465 49.140,15.465 C49.141,15.462 49.140,15.458 49.140,15.454 C49.425,15.415 49.639,15.165 49.623,14.866 C49.610,14.626 49.451,14.431 49.240,14.361 C49.252,14.447 49.193,14.411 49.058,14.352 C48.917,14.290 49.017,14.372 48.917,14.537 C48.816,14.702 48.755,14.599 48.634,14.537 C48.514,14.475 48.352,14.599 48.352,14.723 C48.264,14.815 48.153,14.879 48.030,14.908 C47.954,15.035 47.954,15.194 48.030,15.321 C48.050,15.445 47.929,15.445 47.828,15.445 ZM46.740,16.971 C46.702,17.036 46.625,17.193 46.572,17.273 C46.602,17.297 46.640,17.306 46.660,17.342 C46.643,17.403 46.643,17.467 46.660,17.527 C46.660,17.672 46.498,17.672 46.660,17.672 C46.821,17.672 46.700,17.610 46.821,17.672 C46.942,17.734 46.942,17.878 46.942,17.878 L46.944,17.876 C46.999,17.819 46.998,17.728 46.942,17.672 C46.852,17.632 46.779,17.558 46.740,17.465 C46.841,17.465 46.841,17.465 46.841,17.465 C46.887,17.481 46.937,17.481 46.983,17.465 C47.104,17.465 47.104,17.610 47.104,17.465 C47.104,17.321 47.205,17.321 47.104,17.321 C47.035,17.362 46.951,17.362 46.882,17.321 C46.838,17.295 46.784,17.295 46.740,17.321 C46.732,17.259 46.732,17.197 46.740,17.135 C46.740,16.971 46.801,16.868 46.740,16.971 ZM47.058,17.069 C47.092,17.129 47.166,17.149 47.224,17.115 C47.224,17.012 47.224,17.012 47.224,17.012 L47.042,17.012 C47.043,17.032 47.049,17.052 47.058,17.069 ZM47.062,18.558 C46.994,18.647 46.920,18.729 46.840,18.806 L46.961,18.806 C47.020,18.734 47.061,18.649 47.082,18.558 C47.137,
118.472 47.205,18.395 47.284,18.332 C47.350,18.250 47.404,18.160 47.445,18.063 L47.607,17.816 C47.688,17.816 47.728,17.981 47.728,17.899 C47.728,17.816 47.728,17.837 47.728,17.692 C47.700,17.722 47.665,17.743 47.631,17.766 C47.653,17.770 47.672,17.816 47.607,17.816 C47.607,17.793 47.613,17.785 47.618,17.777 C47.600,17.789 47.586,17.806 47.567,17.816 C47.509,17.892 47.462,17.975 47.425,18.063 C47.393,18.159 47.337,18.244 47.264,18.311 C47.182,18.380 47.114,18.464 47.062,18.558 ZM46.336,19.136 L46.321,19.120 C46.321,19.130 46.319,19.146 46.317,19.160 C46.325,19.153 46.329,19.143 46.336,19.136 ZM46.296,17.221 C46.373,17.192 46.447,17.196 46.518,17.230 C46.498,17.163 46.476,17.091 46.518,17.032 C46.680,16.950 46.680,16.744 46.680,16.744 C46.585,16.794 46.507,16.873 46.458,16.971 C46.389,17.008 46.333,17.066 46.296,17.135 C46.279,17.161 46.299,17.191 46.296,17.221 ZM46.177,19.878 C46.277,19.878 46.277,19.878 46.277,19.878 C46.265,19.845 46.265,19.808 46.277,19.775 C46.241,19.763 46.203,19.765 46.166,19.775 C46.156,19.835 46.155,19.878 46.177,19.878 ZM46.054,15.630 C46.030,15.690 46.030,15.756 46.054,15.816 C46.074,15.960 46.175,15.960 46.175,15.960 C46.216,15.958 46.256,15.958 46.296,15.960 C46.175,15.919 46.276,15.589 46.276,15.589 C46.227,15.554 46.192,15.503 46.175,15.445 C46.136,15.433 46.093,15.433 46.054,15.445 C46.080,15.503 46.080,15.571 46.054,15.630 ZM45.287,17.239 C45.278,17.272 45.278,17.308 45.287,17.342 C45.301,17.403 45.301,17.466 45.287,17.527 C45.272,17.616 45.272,17.707 45.287,17.796 C45.299,17.857 45.299,17.920 45.287,17.981 C45.269,18.035 45.269,18.093 45.287,18.146 C45.309,18.206 45.309,18.272 45.287,18.332 C45.267,18.392 45.267,18.457 45.287,18.517 C45.271,18.557 45.271,18.601 45.287,18.641 L45.489,18.641 C45.590,18.641 45.590,18.641 45.590,18.641 L45.671,18.744 C45.629,18.551 45.700,18.350 45.852,18.229 C45.839,18.182 45.839,18.131 45.852,18.084 C45.885,18.071 45.921,18.071 45.953,18.084 C45.953,17.960 45.953,17.960 45.953,17.960 C45.901,17.934 45.858,17.891 45.832,17.837 C45.841,17.803 45.841,17.767 45.832,17.734 C45.807,17.682 45.807,17.621 45.832,17.569 C45.832,17.445 45.832,17.445 45.832,17.445 C45.803,17.394 45.803,17.331 45.832,17.280 C45.832,17.135 45.832,17.135 45.832,17.135 C45.788,17.161 45.735,17.161 45.691,17.135 C45.645,17.147 45.596,17.147 45.550,17.135 C45.556,17.095 45.556,17.053 45.550,17.012 C45.509,17.009 45.469,17.009 45.429,17.012 C45.383,17.029 45.333,17.029 45.287,17.012 C45.301,17.087 45.301,17.164 45.287,17.239 ZM44.138,19.486 C44.179,19.535 44.227,19.576 44.279,19.610 L44.459,19.610 L44.487,19.610 C44.459,19.561 44.440,19.505 44.400,19.466 C44.317,19.428 44.221,19.428 44.138,19.466 C44.139,19.473 44.136,19.480 44.138,19.486 ZM47.124,10.949 C46.982,11.052 46.760,11.135 46.619,11.258 C46.423,11.408 46.214,11.539 45.994,11.650 L45.953,11.630 C45.772,11.753 45.632,11.753 45.632,11.753 C45.750,11.828 45.898,11.828 46.016,11.753 C46.144,11.651 46.297,11.587 46.459,11.568 C46.640,11.568 46.620,11.712 46.782,11.568 C46.895,11.458 47.024,11.368 47.165,11.300 C47.277,11.286 47.375,11.216 47.427,11.114 C47.427,10.990 47.285,10.805 47.427,10.805 C47.435,10.797 47.445,10.793 47.454,10.785 C47.344,10.840 47.227,10.881 47.124,10.949 ZM47.546,14.063 L47.445,14.063 L46.923,14.063 L46.782,14.063 L46.439,14.063 L46.318,14.063 L46.177,14.063 L46.055,14.063 L45.914,14.063 C45.900,14.110 45.900,14.160 45.914,14.207 L45.793,14.207 L45.551,14.207 C45.563,14.240 45.563,14.277 45.551,14.310 C45.517,14.302 45.483,14.299 45.450,14.310 C45.409,14.316 45.369,14.316 45.329,14.310 L45.147,14.310 C45.114,14.324 45.079,14.319 45.046,14.310 L45.026,14.310 L44.905,14.455 C44.858,14.517 44.804,14.572 44.743,14.620 L44.582,14.620 C44.535,14.611 44.487,14.611 44.440,14.620 C44.432,14.653 44.432,14.689 44.440,14.723 C44.398,14.699 44.363,14.663 44.339,14.620 C44.218,14.496 44.218,14.496 44.218,14.496 C44.185,14.493 44.151,14.493 44.117,14.496 C44.133,14.536 44.133,14.580 44.117,14.620 C43.976,14.620 43.976,14.620 43.976,14.620 C44.044,14.493 44.105,14.362 44.158,14.228 C44.150,14.180 44.150,14.131 44.158,14.084 C44.279,13.980 44.279,13.980 44.279,13.980 C44.239,13.989 44.198,13.989 44.158,13.980 L44.037,13.980 L43.775,14.104 C43.745,14.189 43.696,14.267 43.633,14.331 C43.594,14.317 43.552,14.317 43.512,14.331 C43.537,14.412 43.537,14.498 43.512,14.579 C43.343,14.714 43.211,14.891 43.129,15.094 C43.106,15.244 43.106,15.397 43.129,15.548 C43.129,15.651 43.129,15.651 43.129,15.651 C43.034,15.720 42.958,15.812 42.907,15.919 C42.925,15.993 42.925,16.071 42.907,16.146 C42.907,16.207 42.907,16.538 42.907,16.538 C42.882,16.582 42.882,16.637 42.907,16.682 C42.925,16.735 42.925,16.793 42.907,16.847 C42.879,16.941 42.879,17.042 42.907,17.135 C42.870,17.214 42.870,17.305 42.907,17.383 C42.947,17.378 42.988,17.378 43.028,17.383 C43.028,17.376 43.029,17.369 43.028,17.362 C43.063,17.275 43.119,17.197 43.189,17.135 C43.189,17.074 43.129,16.950 43.189,16.847 C43.250,16.744 43.412,16.599 43.412,16.599 C43.435,16.572 43.472,16.569 43.501,16.550 C43.931,17.122 44.729,17.249 45.307,16.825 C45.875,16.408 46.008,15.619 45.640,15.022 C45.564,15.083 45.488,15.144 45.407,15.197 C45.413,15.118 45.449,15.044 45.508,14.991 C45.565,14.955 45.614,14.906 45.649,14.846 C45.669,14.840 45.689,14.849 45.709,14.846 C45.717,14.841 45.721,14.831 45.729,14.826 C45.731,14.833 45.728,14.840 45.729,14.846 C45.770,14.844 45.812,14.833 45.851,14.846 C45.937,14.865 46.027,14.865 46.113,14.846 C46.194,14.805 46.194,14.640 46.315,14.640 C46.436,14.640 46.436,14.640 46.436,14.640 C46.446,14.736 46.446,14.833 46.436,14.929 C46.426,14.970 46.426,15.012 46.436,15.053 C46.451,15.100 46.451,15.150 46.436,15.197 C46.510,15.186 46.584,15.186 46.658,15.197 C46.641,15.144 46.641,15.086 46.658,15.032 C46.625,15.040 46.590,15.040 46.557,15.032 C46.557,14.908 46.557,14.908 46.557,14.908 C46.604,14.898 46.652,14.898 46.698,14.908 C46.697,14.867 46.686,14.825 46.698,14.785 C46.755,14.751 46.824,14.751 46.880,14.785 L47.062,14.785 L47.183,14.785 C47.192,14.737 47.192,14.688 47.183,14.640 C47.178,14.606 47.178,14.571 47.183,14.537 L47.324,14.537 C47.324,14.434 47.324,14.434 47.324,14.434 L47.466,14.434 L47.587,14.434 L47.708,14.434 L47.809,14.434 L48.172,14.434 C48.178,14.400 48.178,14.365 48.172,14.331 L48.171,14.331 L48.070,14.331 L47.949,14.331 L47.546,14.331 C47.546,14.249 47.546,14.063 47.546,14.063 ZM50.209,10.
1186 L49.867,10.186 C49.719,10.167 49.570,10.167 49.423,10.186 C49.181,10.172 48.939,10.172 48.697,10.186 C48.477,10.196 48.262,10.259 48.071,10.372 C48.029,10.501 47.920,10.596 47.789,10.619 C47.750,10.633 47.716,10.659 47.677,10.675 C47.695,10.671 47.711,10.662 47.729,10.660 C47.769,10.722 47.689,10.846 47.628,10.846 C47.568,10.846 47.749,10.846 47.749,10.846 C47.840,10.769 47.942,10.707 48.052,10.660 C48.165,10.646 48.281,10.646 48.394,10.660 C48.560,10.701 48.733,10.701 48.898,10.660 C49.034,10.600 49.187,10.600 49.322,10.660 C49.375,10.730 49.458,10.769 49.544,10.763 L49.907,10.763 C50.016,10.748 50.120,10.705 50.209,10.640 C50.209,10.516 50.209,10.640 50.209,10.516 C50.209,10.392 50.209,10.454 50.209,10.392 C50.209,10.330 50.331,10.186 50.209,10.186 ZM53.335,10.660 L52.892,10.372 C52.243,10.120 51.565,9.961 50.875,9.897 L50.834,9.897 C50.512,9.938 50.713,10.104 50.713,10.104 C50.767,10.095 50.821,10.095 50.875,10.104 C50.834,10.248 50.915,10.124 51.016,10.248 C51.116,10.372 50.935,10.372 50.834,10.372 C50.869,10.372 50.923,10.372 50.996,10.372 C51.154,10.396 51.301,10.468 51.419,10.578 C51.589,10.671 51.773,10.734 51.964,10.763 C52.125,10.784 52.125,10.660 52.125,10.660 C52.049,10.586 51.969,10.517 51.883,10.454 C51.863,10.454 52.045,10.454 52.045,10.454 C52.085,10.457 52.125,10.457 52.166,10.454 C52.340,10.475 52.510,10.524 52.670,10.599 C52.878,10.669 53.070,10.781 53.235,10.928 C53.355,10.928 53.497,10.928 53.497,10.928 L53.335,10.660 ZM54.826,13.176 C54.685,13.114 54.221,12.619 54.100,12.619 C53.753,12.453 53.422,12.252 53.112,12.021 C52.952,11.852 52.736,11.749 52.506,11.733 C52.506,11.836 52.506,11.836 52.506,11.836 C52.385,11.836 52.385,11.836 52.385,11.836 C52.421,11.876 52.462,11.910 52.506,11.939 C52.576,11.968 52.629,12.029 52.648,12.104 L52.446,12.104 
1C52.363,12.083 52.286,12.040 52.224,11.980 C52.170,11.994 52.115,11.994 52.062,11.980 C52.062,11.856 52.183,11.856 52.062,11.856 C51.941,11.856 51.941,11.856 51.941,11.856 C51.913,11.770 51.827,11.718 51.739,11.733 L51.316,11.733 L50.912,11.733 C50.820,11.704 50.722,11.704 50.630,11.733 C50.593,11.802 50.545,11.864 50.489,11.918 C50.428,12.021 50.307,12.021 50.307,12.021 C50.331,12.081 50.331,12.147 50.307,12.207 C50.316,12.296 50.316,12.386 50.307,12.475 C50.307,12.516 50.307,12.619 50.307,12.619 C50.357,12.679 50.410,12.734 50.469,12.784 C50.489,12.845 50.489,12.910 50.469,12.970 C50.533,12.985 50.586,13.031 50.610,13.094 C50.599,13.141 50.599,13.191 50.610,13.238 C50.622,13.278 50.622,13.322 50.610,13.362 C50.610,13.444 50.610,13.589 50.610,13.589 C50.711,13.617 50.802,13.674 50.872,13.754 C50.894,13.826 50.945,13.887 51.013,13.918 C51.155,13.960 50.993,14.104 51.155,14.104 C51.316,14.104 51.316,14.104 51.316,14.104 C51.269,14.164 51.269,14.250 51.316,14.310 C51.335,14.371 51.335,14.436 51.316,14.496 C51.300,14.536 51.300,14.580 51.316,14.620 C51.341,14.664 51.341,14.719 51.316,14.764 C51.302,14.804 51.302,14.848 51.316,14.888 C51.417,14.888 51.316,14.888 51.417,14.888 C51.518,14.888 51.619,14.888 51.619,14.888 C51.651,15.029 51.721,15.157 51.821,15.259 C51.890,15.350 51.991,15.409 52.103,15.424 C52.190,15.414 52.278,15.414 52.365,15.424 C52.431,15.409 52.501,15.409 52.567,15.424 C52.708,15.424 52.567,15.424 52.708,15.424 C52.779,15.390 52.860,15.390 52.930,15.424 C52.995,15.452 53.068,15.452 53.132,15.424 C53.218,15.396 53.309,15.396 53.394,15.424 C53.439,15.446 53.491,15.446 53.536,15.424 C53.601,15.399 53.672,15.399 53.737,15.424 C53.817,15.514 53.905,15.597 53.999,15.671 C54.073,15.720 54.168,15.720 54.242,15.671 C54.296,15.621 54.357,15.580 54.423,15.548 L54.524,15.548 C54.549,15.600 54.549,15.661 54.524,15.713 C54.510,15.801 54.510,15.892 54.524,15.981 C54.564,16.058 54.564,16.151 54.524,16.228 C54.412,16.264 54.304,16.312 54.202,16.373 C54.178,16.432 54.178,16.499 54.202,16.558 C54.234,16.623 54.234,16.700 54.202,16.764 C54.202,16.888 54.202,16.764 54.202,16.888 C54.202,17.012 54.202,17.012 54.202,17.012 L54.424,17.012 C54.485,17.054 54.565,17.054 54.626,17.012 C54.684,16.923 54.752,16.840 54.828,16.764 C54.924,16.717 55.007,16.646 55.070,16.558 C55.108,16.466 55.171,16.387 55.252,16.331 L55.251,16.269 C55.295,16.459 55.445,16.605 55.633,16.641 C55.648,16.483 55.648,16.324 55.633,16.166 C55.619,16.022 55.619,15.877 55.633,15.733 C55.679,15.621 55.679,15.495 55.633,15.383 C55.539,15.283 55.488,15.150 55.492,15.012 C55.492,14.888 55.674,14.826 55.492,14.620 C55.314,14.502 55.163,14.348 55.048,14.166 C54.979,13.974 54.938,13.772 54.927,13.568 C54.967,13.428 54.929,13.277 54.826,13.176 ZM56.280,14.455 C56.147,14.228 56.026,13.994 55.917,13.754 C55.911,13.553 55.832,13.361 55.695,13.217 C55.545,13.080 55.416,12.920 55.312,12.743 L55.271,12.743 C55.190,12.599 55.009,12.475 55.090,12.557 C55.089,12.699 55.148,12.834 55.252,12.929 C55.327,13.036 55.363,13.168 55.352,13.300 C55.309,13.434 55.309,13.578 55.352,13.712 C55.492,13.818 55.608,13.951 55.695,14.104 C55.770,14.263 55.857,14.415 55.957,14.558 C56.034,14.691 56.145,14.798 56.280,14.867 C56.280,14.950 56.401,14.723 56.280,14.455 ZM58.076,17.135 C57.948,16.241 57.654,15.380 57.209,14.599 C57.093,14.964 56.999,15.336 56.927,15.713 C56.900,15.883 56.900,16.057 56.927,16.228 C56.984,16.479 56.984,16.740 56.927,16.991 C56.785,17.135 56.927,17.404 56.785,17.404 C56.756,17.408 56.729,17.420 56.707,17.439 C56.638,17.497 56.628,17.601 56.684,17.672 C56.737,17.860 56.737,18.060 56.684,18.249 C56.648,18.440 56.648,18.636 56.684,18.826 C56.732,19.009 56.732,19.201 56.684,19.383 C56.614,19.569 56.567,19.763 56.543,19.961 C56.513,20.187 56.437,20.405 56.321,20.600 C56.266,20.711 56.225,20.829 56.200,20.951 C56.099,21.136 56.301,21.136 56.099,21.136 C55.972,21.116 55.843,21.116 55.716,21.136 C55.641,21.180 55.548,21.180 55.474,21.136 C55.447,21.132 55.419,21.138 55.395,21.152 C55.337,21.187 55.319,21.263 55.352,21.322 C55.502,21.436 55.615,21.594 55.675,21.775 C55.665,21.957 55.740,22.133 55.877,22.250 C55.995,22.334 56.064,22.474 56.059,22.621 C56.059,22.621 56.200,22.786 56.200,22.621 C56.276,22.387 56.416,22.179 56.603,22.023 C56.747,22.049 56.894,21.994 56.986,21.879 C57.054,21.783 57.155,21.717 57.268,21.693 L57.349,21.631 C57.683,21.159 57.930,20.627 58.076,20.064 C58.222,19.093 58.222,18.106 58.076,17.135 ZM45.590,15.589 C45.590,15.589 45.590,15.589 45.590,15.486 C45.590,15.486 45.610,15.616 45.629,15.695 L45.590,15.589 ZM43.559,16.517 C43.538,16.526 43.520,16.537 43.501,16.550 C43.492,16.538 43.481,16.529 43.473,16.517 L43.559,16.517 ZM43.634,16.517 L43.559,16.517 C43.586,16.506 43.605,16.480 43.634,16.476 C43.638,16.489 43.631,16.503 43.634,16.517 ZM49.140,15.454 C49.126,15.456 49.114,15.464 49.099,15.465 L49.140,15.445 C49.140,15.448 49.141,15.451 49.140,15.454 ZM40.288,231.191 L35.521,219.785 L13.295,219.785 L8.461,231.191 L0.000,231.191 L20.681,183.613 L28.336,183.613 L49.017,23
11.191 L40.288,231.191 ZM24.375,193.533 L16.317,212.429 L32.499,212.429 L24.375,193.533 ZM42.545,148.368 L59.882,148.368 L59.882,151.865 L53.106,151.865 L53.106,169.842 L49.321,169.842 L49.321,151.865 L42.545,151.865 L42.545,148.368 ZM98.635,191.374 L72.045,191.374 L72.045,203.656 L95.613,203.656 L95.613,211.080 L72.045,211.080 L72.045,223.767 L98.971,223.767 L98.971,231.191 L63.786,231.191 L63.786,183.950 L98.635,183.950 L98.635,191.374 ZM90.186,169.842 L86.432,169.842 L86.432,148.368 L90.186,148.368 L90.186,157.295 L100.382,157.295 L100.382,148.368 L104.136,148.368 L104.136,169.842 L100.382,169.842 L100.382,160.792 L90.186,160.792 L90.186,169.842 ZM120.837,78.783 L120.837,67.389 L125.061,67.389 C127.609,67.389 129.285,68.756 129.285,71.003 L129.285,71.036 C129.285,73.493 127.255,74.762 124.852,74.762 L122.111,74.762 L122.111,78.783 L120.837,78.783 ZM124.900,73.590 C126.770,73.590 127.995,72.581 127.995,71.084 L127.995,71.051 C127.995,69.423 126.786,68.577 124.965,68.577 L122.111,68.577 L122.111,73.590 L124.900,73.590 ZM149.999,188.674 C152.484,191.239 153.894,194.748 153.894,198.865 L153.894,198.999 C153.894,206.761 149.261,211.417 142.747,213.307 L155.438,231.191 L145.635,231.191 L134.086,214.724 L123.745,214.724 L123.745,231.191 L115.486,231.191 L115.486,183.950 L136.436,183.950 C142.345,183.950 146.978,185.705 149.999,188.674 ZM123.745,191.509 L123.745,207.368 L135.831,207.368 C141.740,207.368 145.500,204.264 145.500,199.472 L145.500,199.337 C145.500,194.275 141.874,191.509 135.764,191.509 L123.745,191.509 ZM185.568,67.389 L185.568,73.916 C185.568,77.237 183.681,78.962 180.860,78.962 C178.071,78.962 176.169,77.237 176.169,74.014 L176.169,67.389 L177.441,67.389 L177.441,73.932 C177.441,76.391 178.749,77.774 180.891,77.774 C182.972,77.774 184.294,76.505 184.294,74.014 L184.294,67.389 L185.568,67.389 ZM193.305,183.140 C207.742,183.140 217.814,194.141 217.814,207.435 L217.814,207.570 C217.814,220.865 207.608,232.000 193.171,232.000 C178.735,232.000 168.663,221.000 168.663,207.705 L168.663,207.570 C168.663,194.275 178.869,183.140 193.305,183.140 ZM177.325,207.570 C177.325,216.748 183.972,224.307 193.305,224.307 C202.638,224.307 209.152,216.883 209.152,207.705 L209.152,207.570 C209.152,198.392 202.504,190.766 193.171,190.766 C183.838,190.766 177.325,198.257 177.325,207.435 L177.325,207.570 ZM283.034,68.528 C283.581,69.081 283.904,69.879 283.904,70.775 L283.904,70.807 C283.904,72.696 282.614,73.802 280.840,74.128 L284.308,78.783 L282.744,78.783 L279.470,74.356 L276.246,74.356 L276.246,78.783 L274.972,78.783 L274.972,67.389 L279.826,67.389 C281.212,67.389 282.325,67.812 283.034,68.528 ZM276.246,68.577 L276.246,73.200 L279.712,73.200 C281.405,73.200 282.614,72.321 282.614,70.856 L282.614,70.824 C282.614,69.423 281.551,68.577 279.728,68.577 L276.246,68.577 ZM314.690,151.743 L302.602,151.743 L302.602,157.326 L313.316,157.326 L313.316,160.700 L302.602,160.700 L302.602,166.468 L314.842,166.468 L314.842,169.842 L298.848,169.842 L298.848,148.368 L314.690,148.368 L314.690,151.743 ZM301.327,77.611 L301.327,78.783 L293.088,78.783 L293.088,67.389 L301.247,67.389 L301.247,68.560 L294.362,68.560 L294.362,72.451 L300.520,72.451 L300.520,73.623 L294.362,73.623 L294.362,77.611 L301.327,77.611 ZM314.395,72.467 C316.910,73.021 318.071,73.949 318.071,75.691 L318.071,75.724 C318.071,77.676 316.458,78.947 314.218,78.947 C312.428,78.947 310.961,78.344 309.608,77.123 L310.397,76.179 C311.573,77.254 312.703,77.790 314.267,77.790 C315.781,77.790 316.781,76.976 316.781,75.853 L316.781,75.821 C316.781,74.762 316.216,74.161 313.847,73.656 C311.252,73.086 310.059,72.239 310.059,70.367 L310.059,70.335 C310.059,68.544 311.622,67.226 313.767,67.226 C315.411,67.226 316.589,67.698 317.733,68.626 L316.990,69.619 C315.943,68.756 314.895,68.381 313.735,68.381 C312.266,68.381 311.333,69.195 311.333,70.221 L311.333,70.254 C311.333,71.328 311.912,71.930 314.395,72.467 ZM320.274,199.742 L320.274,199.877 C320.274,210.472 311.813,216.006 301.473,216.006 L292.140,216.006 L292.140,231.191 L283.881,231.191 L283.881,183.950 L302.413,183.950 C313.425,183.950 320.274,190.226 320.274,199.742 ZM292.140,191.509 L292.140,208.515 L301.741,208.515 C307.986,208.515 3
111.881,205.006 311.881,200.079 L311.881,199.945 C311.881,194.410 307.919,191.509 301.741,191.509 L292.140,191.509 ZM335.364,77.611 L335.364,78.783 L327.126,78.783 L327.126,67.389 L335.284,67.389 L335.284,68.560 L328.400,68.560 L328.400,72.451 L334.557,72.451 L334.557,73.623 L328.400,73.623 L328.400,77.611 L335.364,77.611 ZM353.930,67.389 L353.930,78.783 L352.914,78.783 L345.628,69.440 L345.628,78.783 L344.385,78.783 L344.385,67.389 L345.579,67.389 L352.689,76.521 L352.689,67.389 L353.930,67.389 ZM366.564,78.783 L366.564,68.577 L362.775,68.577 L362.775,67.389 L371.642,67.389 L371.642,68.577 L367.854,68.577 L367.854,78.783 L366.564,78.783 ZM355.054,183.613 L375.735,231.191 L367.006,231.191 L362.238,219.785 L340.013,219.785 L335.178,231.191 L326.718,231.191 L347.399,183.613 L355.054,183.613 ZM359.217,212.429 L351.092,193.533 L343.035,212.429 L359.217,212.429 ZM372.674,159.105 C372.674,153.062 377.314,148.000 383.876,148.000 C390.439,148.000 395.017,153.000 395.017,159.044 L395.017,159.105 C395.017,165.149 390.378,170.210 383.815,170.210 C377.253,170.210 372.674,165.210 372.674,159.167 L372.674,159.105 ZM376.612,159.105 C376.612,163.277 379.633,166.713 383.876,166.713 C388.119,166.713 391.079,163.339 391.079,159.167 L391.079,159.105 C391.079,154.933 388.058,151.466 383.815,151.466 C379.572,151.466 376.612,154.872 376.612,159.044 L376.612,159.105 ZM409.709,183.140 C418.370,183.140 423.608,186.177 428.107,190.496 L422.802,196.637 C419.042,193.128 415.013,190.766 409.641,190.766 C400.711,190.766 394.131,198.190 394.131,207.435 L394.131,207.570 C394.131,216.816 400.644,224.307 409.641,224.307 C415.416,224.307 419.109,222.013 423.138,218.233 L428.443,223.632 C423.541,228.761 418.169,232.000 409.373,232.000 C395.675,232.000 385.469,221.270 385.469,207.705 L385.469,207.570 C385.469,194.141 395.474,183.140 409.709,183.140 ZM436.675,157.663 L436.675,161.099 L425.900,161.099 L425.900,169.842 L422.146,169.842 L422.146,148.368 L438.049,148.368 L438.049,151.804 L425.900,151.804 L425.900,157.663 L436.675,157.663 Z"/>\n		</svg>\n-->\n    </header>\n\n    <div id="background-img" style="background: url({{episode_image}})no-repeat; background-size:cover;"  ></div>'}),define("text!app/modules/home/views/templates/tmpl-mobile-header-y2-view.html",[],function(){return'<header>\n    <h5>{{episode}}
1 {{episode_num_string}}</h5>\n    <h2>{{episode_title}}</h2>\n\n    {{#episode_description_mobile}}\n    <p>{{{.}}}</p>\n    {{/episode_description_mobile}}\n</header>\n\n<div id="background-img" style="background: url({{episode_image}})no-repeat; background-size:cover;"></div>\n<!-- <div id="background-img" style="background: url({{episode_stage}})no-repeat; background-size:cover;"> -->\n    <div id="background-img">\n        <video playsinline autoplay muted loop class="bg-vid" class="video-js vjs-fluid" data-account="800000612001" data-player="cENsmHkkB" data-embed="default" controls="" data-video-id="{{episode_video_id}}">\n            <!-- <source src="{{episode_video_mobile}}"> -->\n        </video>\n    </div>\n</div>\n'}),define("text!app/modules/home/views/templates/tmpl-mobile-accordion.html",[],function(){return'<dt data-num="{{episode_num}}">\n    <div class="selected"></div>\n    <header>\n        <h4>{{episode}} {{number}}</h4>\n        <h2>{{episode_title}}</h2>\n\n        <!-- <div class="drop-down-icon">\n            <svg xmlns="//www.w3.org/2000/svg" xmlns:xlink="//www.w3.org/1999/xlink" preserveAspectRatio="xMidYMid" width="59" height="23" viewBox="0 0 59 23">\n                <defs>\n                    <style>\n                        .cls-1 {\n                            opacity: 0.7;\n                        }\n                    </style>\n                </defs>\n                <image\n                    xlink:href="data:img/png;base64,iVBORw0KGgoAAAANSUhEUgAAADsAAAAXCAMAAACClcfMAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAz1BMVEUAAAD///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////8AAACoNrhVAAAARHRSTlMABGV6E2YairOfMgaxXwNnQqgbi6dAYLJtCWw0oJUkEX6tTwFRr3wQJ5gwCnBeQ4mIpj8FbmE1oZQSD5cLjKkcYjiPOZLyZNEAAAABYktHRACIBR1IAAAACXBIWXMAAAsSAAALEgHS3X78AAABNElEQVQ4y5WR6XKCMBRGk6oY3AqupSouuKAirUu1VnFp3/+dmpvgjGCA8P2B3O8eJsNBCOGXTBalSzaTw/BU8oSohVRoQSUkryBUzBGaUrkiTVbKJUBei/Rd0+EVviMVuCchusZP1Rqc6g0ptFGH5Vr1fsbNFgzejETSeIfFVhM/zNodmHXNBNTswlqnHZz2+jAdDGPR4QCW+r3w3BqNoZhMI8npBBbGI0vQ2TPo1HkEOlehntniduFAS5ZY0OEl65xF5LVcpvrjWbXyyaS6cX+Dq16tQ+P1KihVnA1XvX1UbWyZ1K8NSspuH1JtfsNgv0skaQ6+au7C8qUeZNCg6p8YqeLYR181l3q0pUmaE1Ote8yZc0qD0mhnwnN2U5I0F4+h3iU9SlVfKXpNlirO7fcvrv4HuU4adbqz+kIAAAAASUVORK5CYII="\n                    width="59"\n                    height="23"\n                    class="cls-1"\n                />\n            </svg>\n        </div> -->\n    </header>\n\n    <img src="{{episode_image}}" height="auto" />\n    <div class="progress"></div>\n</dt>\n'});var FTScroller,CubicBezier;(function(){"use strict";var e,t,n,r,i,s,o,u,a;document.createElement("div").style.transform!==undefined?(e="",t="",n="transform"):window.opera&&Object.prototype.toString.call(window.opera)==="[object Opera]"?(e="-o-",t="O",n="OTransform"):document.documentElement.style.MozTransform!==undefined?(e="-moz-",t="Moz",n="MozTransform"):document.documentElement.style.webkitTransform!==undefined?(e="-webkit-",t="webkit",n="-webkit-transform"):typeof navigator.cpuClass=="string"&&(e="-ms-",t="ms",n="-ms-transform"),"pointerEnabled"in window.navigator?(r=!1,u=window.navigator.pointerEnabled,i="setPointerCapture",s="releasePointerCapture",o="lostpointercapture",a="touch"):"msPointerEnabled"in window.navigator&&(r=!0,u=window.navigator.msPointerEnabled,i="msSetPointerCapture",s="msReleasePointerCapture",o="MSLostPointerCapture",a=2);var f=!1,l=!u,c=!1;"hasOwnProperty"in window&&(c=!window.hasOwnProperty("ArrayBuffer"));var h=window.Selection&&window.Selection.prototype.removeAllRanges;!c&&document.createElement("div").style[t+(t?"P":"p")+"erspective"]===undefined&&(c=!0);var p=t+(t?"T":"t")+"ransform",d=t+(t?"T":"t")+"ransition",v=c?"translate(":"translate3d(",m={x:"",y:"0,"},g={x:",0"+(c?")":",0)"),y:c?")":",0)"},y=.998,b=.01;(function(){var t=document.getElementsByTagName("head")[0]||document.documentElement,n=document.createElement("style"),r,i;n.type="text/css",c?r=e+"transform-style: preserve-3d;":r=e+"transform: translateZ(0);",i=[".ftscroller_container { overflow: hidden; position: relative; max-height: 100%; -webkit-tap-highlight-color: rgba(0, 0, 0, 0); -ms-touch-action: none }",".ftscroller_hwaccelerated { "+r+" }",".ftscroller_x, .ftscroller_y { position: relative; min-width: 100%; min-height: 100%; overflow: hidden }",".ftscroller_x { display: inline-block }",".ftscroller_scrollbar { pointer-events: none; position: absolute; width: 5px; height: 5px; border: 1px solid rgba(255, 255, 255, 0.3); -webkit-border-radius: 3px; border-radius: 6px; opacity: 0; "+e+"transition: opacity 350ms; z-index: 10; -webkit-box-sizing: content-box; -moz-box-sizing: content-box; box-sizing: content-box }",".ftscroller_scrollbarx { bottom: 2px; left: 2px }",".ftscroller_scrollbary { right: 2px; top: 2px }",".ftscroller_scrollbarinner { height: 100%; background: #000; -webkit-border-radius: 2px; border-radius: 4px / 6px }",".ftscroller_scrollbar.active { opacity: 0.5; "+e+"transition: none; -o-transition: all 0 none }"],n.styleSheet?n.styleSheet.cssText=i.join("\n"):n.appendChild(document.createTextNode(i.join("\n"))),t.insertBefore(n,t.firstChild)})(),FTScroller=function(c,w){var E,S,x,T,N,C,k,L,A,O,M,_,D,P,H,B,j,F,I,q,R,U,z,W,X,V,$,J,K,Q,G,Y,Z,et,tt,nt,rt,it,st,ot,ut,at,ft,lt,ct,ht,pt,dt,vt,mt,gt,yt,bt,wt,Et,St,xt={scrollbars:!0,scrollingX:!0,scrollingY:!0,scrollBoundary:1,scrollResponseBoundary:1,alwaysScroll:!1,contentWidth:undefined,contentHeight:undefined,snapping:!1,snapSizeX:undefined,snapSizeY:undefined,singlePageScrolls:!1,bouncing:!0,flinging:!0,updateOnChanges:!0,updateOnWindowResize:!1,baseAlignments:{x:-1,y:-1},windowScrollingActiveFlag:undefined,hwAccelerationClass:"ftscroller_hwaccelerated",enableRequestAnimationFrameSupport:!0,maxFlingDuration:1e3,disabledInputMethods:{mouse:!1,touch:!1,scroll:!1,pointer:!1,focus:!1},scrollingClassName:undefined,flingBezier:new CubicBezier(.103,.389,.307,.966),bounceDecelerationBezier:new CubicBezier(0,.5,.5,1),bounceBezier:new CubicBezier(.7,0,.9,.6)},Tt,Nt=this,Ct=c,kt,Lt,At={x:null,y:null},Ot={x:null,y:null},Mt={container:{x:null,y:null},content:{x:null,y:null,rawX:null,rawY:null},scrollEnd:{x:null,y:null}},_t={x:!1,y:!1,userX:!1,userY:!1},Dt={x:0,y:0},Pt={x:0,y:0},Ht={x:0,y:0},Bt=!1,jt=0,Ft=!1,It=!1,qt=!1,Rt=!1,Ut={x:0,y:0},zt={x:0,y:0},Wt={x:0,y:0},Xt={x:null,y:null},Vt=!1,$t=[],Jt=!1,Kt={},Qt={x:!0,y:!0},Gt={x:0,y:0,t:0},Yt={x:0,y:0},Zt=[],en=!1,tn=!1,nn=!1,rn=window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||window.msRequestAnimationFrame||!1,sn=window.cancelAnimationFrame||window.cancelRequestAnimationFrame||window.mozCancelAnimationFrame||window.mozCancelRequestAnimationFrame||window.webkitCancelAnimationFrame||window.webkitCancelRequestAnimationFrame||window.msCancelAnimationFrame||window.msCancelRequestAnimationFrame||!1,on={scrollstart:[],scroll:[],scrollend:[],segmentwillchange:[],segmentdidchange:[],reachedstart:[],reachedend:[],scrollinteractionend:[]},un;if(typeof FTScrollerOptions=="object"&&FTScrollerOptions)for(E in FTScrollerOptions)FTScrollerOptions.hasOwnProperty(E)&&xt.hasOwnProperty(E)&&(xt[E]=FTScrollerOptions[E]);if(w){for(E in w)if(w.hasOwnProperty(E)){if("paginatedSnap"===E){console.warn('FTScroller: "paginatedSnap" is deprecated; converting to "singlePageScrolls"'),xt.singlePageScrolls=w.paginatedSnap;continue}xt.hasOwnProperty(E)&&(xt[E]=w[E])}w.hasOwnProperty("snapSizeX")&&!isNaN(w.snapSizeX)&&(_t.userX=_t.x=w.snapSizeX),w.hasOwnProperty("snapSizeY")&&!isNaN(w.snapSizeY)&&(_t.userY=_t.y=w.snapSizeY),w.contentWidth&&w.contentHeight&&(w.updateOnChanges=!1)}return xt.scrollResponseBoundary=Math.min(xt.scrollBoundary,xt.scrollResponseBoundary),xt.scrollingX&&(Kt.x=!0),xt.scrollingY&&(Kt.y=!0),rn=xt.enableRequestAnimationFrameSupport&&rn,sn=rn&&sn,S=function(t){var n,r;st(),rt(),en&&(window.clearTimeout(en),en=!1);for(n=0,r=$t.length;n<r;n+=1)window.clearTimeout($t[n]);$t.length=0;if(t&&Ct){while(Lt.firstChild)Ct.appendChild(Lt.firstChild);Ct.removeChild(kt)}Ct=null,kt=null,Lt=null,At.x=null,At.y=null,Ot.x=null,Ot.y=null;for(n in on)on.hasOwnProperty(n)&&(on[n].length=0);
1f&&f===Nt&&(f=!1,xt.windowScrollingActiveFlag&&(window[xt.windowScrollingActiveFlag]=!1))},x=function(t,n){_t.userX=t,_t.userY=n,_t.x=t,_t.y=n,Mt.content.x=Math.ceil(Mt.content.rawX/t)*t,Mt.content.y=Math.ceil(Mt.content.rawY/n)*n,Mt.scrollEnd.x=Mt.container.x-Mt.content.x,Mt.scrollEnd.y=Mt.container.y-Mt.content.y,X(),B(),$(!0)},T=function(t,n,r){var i,s,o,u,a=0,f={};_(Date.now()),o={x:-t,y:-n};for(u in Kt)if(Kt.hasOwnProperty(u)){i=o[u];if(i===!1)continue;i=Math.min(0,Math.max(Mt.scrollEnd[u],i)),xt.snapping&&_t[u]&&(i=Math.round(i/_t[u])*_t[u]),s=r||0,s===!0&&(s=Math.sqrt(Math.abs(Ut[u]-i))*20),J(u,i,s),f[u]=i,a=Math.max(a,s)}if(Ut.x!==o.x||Ut.y!==o.y)Jt=!0,G("scrollstart",K()),G("scroll",K());a?$t.push(setTimeout(function(){var e;for(e in f)f.hasOwnProperty(e)&&(zt[e]=f[e]);D()},a)):D()},N=function(t,n,r){T(parseFloat(t)-Ut.x,parseFloat(n)-Ut.y,r)},C=function(t,n,r){w.contentWidth=t||w.contentWidth,w.contentHeight=n||w.contentHeight,W(!!r)},k=function(t,n){return on.hasOwnProperty(t)?(on[t].push(n),!0):!1},L=function(t,n){var r;if(!on.hasOwnProperty(t))return!1;for(r=on[t].length;r>=0;r-=1)on[t][r]===n&&on[t].splice(r,1);return!0},A=function(t){var n,r;for(n in xt.disabledInputMethods)t[n]=!!t[n],xt.disabledInputMethods[n]!==t[n]&&(r=!0),xt.disabledInputMethods[n]=t[n];r&&ot()},O=function(t,n,r,i){var s=Rt;return r<=0&&(r=Date.now()),xt.windowScrollingActiveFlag&&window[xt.windowScrollingActiveFlag]?!1:(s?P():Vt=!1,Gt.x=t,Gt.y=n,Gt.t=r,Wt.x=zt.x,Wt.y=zt.y,Zt.length=0,Zt.push({x:t,y:n,t:r}),s&&M(t,n,r,i,s),!0)},M=function(t,n,r,i,s){var o,u,a,l=!1,c={x:t-Gt.x,y:n-Gt.y};r<=0&&(r=Date.now()),Wt.x=Ut.x+c.x,Wt.y=Ut.y+c.y;if(!It){f&&f!==Nt?u=!0:xt.windowScrollingActiveFlag&&window[xt.windowScrollingActiveFlag]&&(u=!0);if(u){Et(),Bt=!1,qt&&(rt(),B(!0)||D(!0));return}}if(!qt){a=et(Wt),(xt.bouncing||s||Qt.x&&c.x&&a.x<0||Qt.y&&c.y&&a.y<0)&&i.preventDefault();if(!s&&(!Qt.x||Math.abs(c.x)<xt.scrollResponseBoundary)&&(!Qt.y||Math.abs(c.y)<xt.scrollResponseBoundary))return;if(!xt.bouncing&&!s&&(!Qt.x||!c.x||a.x>0)&&(!Qt.y||!c.y||a.y>0)){Vt=!0;return}tt(),qt=!0,Jt=!0,Rt=!0,l=!0}else i.preventDefault();!It&&(s&&xt.snapping||Qt.x&&Math.abs(c.x)>=xt.scrollBoundary||Qt.y&&Math.abs(c.y)>=xt.scrollBoundary)&&(It=!0,Vt=!0,f=Nt,xt.windowScrollingActiveFlag&&(window[xt.windowScrollingActiveFlag]=Nt),G("scrollstart",K())),It&&wt(),h&&window.getSelection().removeAllRanges(),I();if(l){c.x>0?Ut.x-=xt.scrollResponseBoundary:c.x<0&&(Ut.x+=xt.scrollResponseBoundary),c.y>0?Ut.y-=xt.scrollResponseBoundary:c.y<0&&(Ut.y+=xt.scrollResponseBoundary),Wt.x=Ut.x+c.x,Wt.y=Ut.y+c.y,xt.scrollingClassName&&(kt.className+=" "+xt.scrollingClassName);if(xt.scrollbars)for(o in Qt)Qt.hasOwnProperty(o)&&(Ot[o].className+=" active")}Zt.push({x:t,y:n,t:r}),Zt.length>30&&Zt.splice(0,15)},_=function(t,n){Et(),Bt=!1,rt(),G("scrollinteractionend",{});if(!It){!B(!0)&&qt&&D(!0);return}Zt[Zt.length-1].t=t,It=!1,qt=!1,f=!1,xt.windowScrollingActiveFlag&&(window[xt.windowScrollingActiveFlag]=!1),n&&n.preventDefault(),!H()&&!B()&&D()},D=function(t){var n,r,i,s,o;Rt=!1,qt=!1,xt.scrollingClassName&&(o=new RegExp("(?:^|\\s)"+xt.scrollingClassName+"(?!\\S)","g"),kt.className=kt.className.replace(o,""));if(xt.scrollbars)for(i in Qt)Qt.hasOwnProperty(i)&&(Ot[i].className=Ot[i].className.replace(/ ?active/g,""));Ut.x=zt.x,Ut.y=zt.y,s=K(),t||(G("scroll",s),$(!0)),s.cancelled=t,G("scrollend",s);for(i in Qt)Qt.hasOwnProperty(i)&&(At[i].style[d]="",xt.scrollbars&&(Ot[i].style[d]=""));for(n=0,r=$t.length;n<r;n+=1)window.clearTimeout($t[n]);$t.length=0},P=function(){var t,n,r;Rt=!1,V();for(t in Qt)Qt.hasOwnProperty(t)&&J(t,Ut[t],16,xt.bounceDecelerationBezier);$(!1);for(n=0,r=$t.length;n<r;n+=1)window.clearTimeout($t[n]);$t.length=0},H=function(){var t,n,r,i,s,o,u,a,f,l,c,h,p,d,v,m,g,w,E,S,x,T=0,N=!1,C={};if(Zt.length===1||!xt.flinging||Bt==="scrollwheel")return!1;for(n in Qt)if(Qt.hasOwnProperty(n)){h=350,c=0,d=!1,p=!1,w=undefined,m=xt.flingBezier,s=Zt[Zt.length-1],o=Zt[Zt.length-2];for(t=Zt.length-3;t>=0;t-=1){if(s.t-Zt[t].t>100)break;o=Zt[t]}r=s.t-o.t,r||(r=16),i=(s[n]-o[n])/r,Math.abs(i)<b?(u=0,a=0):(u=Math.log(b/Math.abs(i))/Math.log(y),a=i*(1-Math.pow(y,u+1))/(1-y)),f=Math.floor(zt[n]+a),xt.bouncing||(zt[n]===0&&f>0?f=0:zt[n]===Mt.scrollEnd[n]&&f<zt[n]&&(f=zt[n])),xt.singlePageScrolls&&xt.snapping?(E=-zt[n]/_t[n],Pt[n]<E?E=Math.floor(E):E=Math.ceil(E),f>-(Pt[n]-1)*_t[n]?c=f+(Pt[n]-1)*_t[n]:f<-(Pt[n]+1)*_t[n]?c=f+(Pt[n]+1)*_t[n]:Math.abs(i)>
1b&&(i<0?f=Math.floor(zt[n]/_t[n])*_t[n]:f=Math.ceil(zt[n]/_t[n])*_t[n],u=Math.min(xt.maxFlingDuration,u*(f-zt[n])/a))):xt.snapping&&(c=f-Math.round(f/_t[n])*_t[n]),f-c>0?(c=f,d=!0):f-c<Mt.scrollEnd[n]&&(c=f-Mt.scrollEnd[n],d=!0);if(c)if(d&&xt.bouncing&&a)a=Math.floor(a),f>0?S=f-Math.max(0,zt[n]):S=f-Math.min(Mt.scrollEnd[n],zt[n]),x=a-S,!a||!u?g=0:(g=m._getCoordinateForT(m.getTForY((a-S)/a,1/u),m._p1.x,m._p2.x),w=g*u),v=Math.ceil(S/8),Math.abs(v)>Mt.container[n]/2&&(v<0?v=-Math.floor(Mt.container[n]/2):v=Math.floor(Mt.container[n]/2)),f>0?p=0:p=Mt.scrollEnd[n],g===0?(u/=6,f=zt[n]+x+v,l=u):(l=(g+(1-g)/6)*u,Q(n,zt[n]+x+v,(1-g)*u/6,xt.bounceDecelerationBezier,w),m=m.divideAtX(l/u,1/u)[0],u=l,f=zt[n]+x+v);else if(a<0&&c<a||a>0&&c>a)f-=Math.floor(a/2),c-=Math.floor(a/2),h=Math.sqrt(Math.abs(c))*50,p=f-c,u=350,l=u*.97;else{f-=c;if(!a)u=h;else if(a<0&&c<0||a>0&&c>0)g=m._getCoordinateForT(m.getTForY((Math.abs(a)-Math.abs(c))/Math.abs(a),1/u),m._p1.x,m._p2.x),m=m.divideAtX(g,1/u)[0],u=Math.round(u*g);c=0,h=0}if(f===zt[n]&&!c)continue;N=!0,J(n,f,u,m,w),c&&h&&Q(n,p,h,xt.bounceBezier,l),T=Math.max(T,c?l+h:u),C[n]=p===!1?f:p}return N&&T&&$t.push(setTimeout(function(){var e;for(e in C)C.hasOwnProperty(e)&&(zt[e]=C[e]);D()},T)),N},B=function(t){var n,r=t?100:350,i=zt;xt.snapping&&(Dt=F(i),i=j(Dt,i)),i=q(i);var s=!1;for(n in Kt)Kt.hasOwnProperty(n)&&i[n]!==zt[n]&&(s=!0);if(!s)return!1;for(n in Kt)Kt.hasOwnProperty(n)&&J(n,i[n],r);return $t.push(setTimeout(function(){zt=i,D(t)},r)),!0},F=function(t){var n,r={x:0,y:0};for(n in Qt)Qt.hasOwnProperty(n)&&_t[n]&&(r[n]=Math.round(t[n]/_t[n]));return r},j=function(t,n){var r,i={x:n.x,y:n.y};for(r in Qt)Qt.hasOwnProperty(r)&&(i[r]=t[r]*_t[r]);return i},I=function(){var t,n,r;for(t in Qt)Qt.hasOwnProperty(t)&&(n=0,r=Mt.scrollEnd[t],xt.singlePageScrolls&&xt.snapping&&(n=Math.min(n,-(Pt[t]-1)*_t[t]),r=Math.max(r,-(Pt[t]+1)*_t[t])),Wt[t]>n?Wt[t]=n+Z(Wt[t]-n,t):Wt[t]<r&&(Wt[t]=r+Z(Wt[t]-r,t)));rn||nt()},q=function(t){var n,r={x:t.x,y:t.y};for(n in Qt)if(Qt.hasOwnProperty(n)){if(t[n]>0){r[n]=0;continue}if(t[n]<Mt.scrollEnd[n]){r[n]=Mt.scrollEnd[n];continue}}return r},R=function(){var t,n,r;if(U())return;t=Ct.ownerDocument.createDocumentFragment(),n=document.createElement("DIV"),t.appendChild(n),n.innerHTML=FTScroller.prototype.getPrependedHTML(!xt.scrollingX,!xt.scrollingY,xt.hwAccelerationClass)+FTScroller.prototype.getAppendedHTML(!xt.scrollingX,!xt.scrollingY,xt.hwAccelerationClass,xt.scrollbars),kt=n.firstElementChild,r=kt,xt.scrollingX&&(At.x=kt.firstElementChild,r=At.x,xt.scrollbars&&(Ot.x=kt.getElementsByClassName("ftscroller_scrollbarx")[0])),xt.scrollingY?(At.y=r.firstElementChild,xt.scrollbars&&(Ot.y=kt.getElementsByClassName("ftscroller_scrollbary")[0]),Lt=At.y):Lt=At.x;while(Ct.firstChild)Lt.appendChild(Ct.firstChild);Ct.appendChild(kt)},U=function(){var t,n,r,i,s,o,u,a,f;t=Ct.firstElementChild;if(!t||t.className.indexOf("ftscroller_container")===-1)return;if(xt.scrollingX){n=t.firstElementChild;if(!n||n.className.indexOf("ftscroller_x")===-1)return;i=n;if(xt.scrollbars){u=t.getElementsByClassName("ftscroller_scrollbarx");if(u)for(a=0,f=u.length;a<f;a+=1)if(u[a].parentNode===t){s=u[a];break}if(!s)return}}else i=t;if(xt.scrollingY){r=i.firstElementChild;if(!r||r.className.indexOf("ftscroller_y")===-1)return;if(xt.scrollbars){u=t.getElementsByClassName("ftscroller_scrollbary");if(u)for(a=0,f=u.length;a<f;a+=1)if(u[a].parentNode===t){o=u[a];break}if(!o)return}}return kt=t,n&&(At.x=n),r&&(At.y=r),s&&(Ot.x=s),o&&(Ot.y=o),xt.scrollingY?Lt=r:Lt=n,!0},z=function(t){en&&window.clearTimeout(en),t&&t.type==="resize"?W():en=setTimeout(function(){W()},100)},W=function(t){var n;if(!kt||!Lt)return!1;en&&(window.clearTimeout(en),en=!1);var r,i,s;s={x:!1,y:!1};for(n in s)s.hasOwnProperty(n)&&(zt[n]===0?s[n]=-1:zt[n]<=Mt.scrollEnd[n]?s[n]=1:zt[n]*2<=Mt.scrollEnd[n]+5&&zt[n]*2>=Mt.scrollEnd[n]-5&&(s[n]=0));r=kt.offsetWidth,i=kt.offsetHeight;var o=w.contentWidth||Lt.offsetWidth,u=w.contentHeight||Lt.offsetHeight,a=o,f=u,l={x:zt.x,y:zt.y};_t.userX||(_t.x=r),_t.userY||(_t.y=i),xt.snapping&&(_t.userX?a=Math.ceil(a/_t.userX)*_t.userX:a=Math.ceil(a/_t.x)*_t.x,_t.userY?f=Math.ceil(f/_t.userY)*_t.userY:f=Math.ceil(f/_t.y)*_t.y);if(Mt.container.x===r&&Mt.container.y===i&&Mt.content.x===a&&Mt.content.y===f)return;Mt.container.x=r,Mt.container.y=i,Mt.content.x=a,Mt.content.rawX=o,Mt.content.y=f,Mt.content.rawY=u,Mt.scrollEnd.x=r-a,Mt.scrollEnd.y=i-f,X();if(It)zt.x--,zt.y--,I();else{!t&&xt.snapping&&($(),l=j(Dt,zt));for(n in l)if(l.hasOwnProperty(n)){if(Mt.container[n]<Mt.content[n]&&Jt&&xt.baseAlignments[n]!==s[n])continue;xt.baseAlignments[n]===1?l[n]=Mt.scrollEnd[n]:xt.baseAlignments[n]===0?l[n]=Math.floor(Mt.scrollEnd[n]/2):xt.baseAlignments[n]===-1&&(l[n]=0)}l=q(l),xt.scrollingX&&l.x!==zt.x&&(J("x",l.x,0),Ut.x=l.x),xt.scrollingY&&l.y!==zt.y&&(J("y",l.y,0),Ut.y=l.y)}},X=function(){xt.scrollbars&&(xt.scrollingX&&(Ot.x.style.width=Math.max(6,Math.round(Mt.container.x*(Mt.container.x/Mt.content.x)-4))+"px"),xt.scrollingY&&(Ot.y.style.height=Math.max(6,Math.round(Mt.container.y*(Mt.container.y/Mt.content.y)-4))+"px")),Qt={},xt.scrollingX&&(Mt.content.x>Mt.container.x||xt.alwaysScroll)&&(Qt.x=!0),xt.scrollingY&&(Mt.content.y>Mt.container.y||xt.alwaysScroll)&&(Qt.y=!0)},V=function(){var t,r,i;for(t in Qt)Qt.hasOwnProperty(t)&&(r=window.getComputedStyle(At[t],null)[n],i=r.split(", "),i.length===6?Ut[t]=parseInt(i[t==="y"?5:4],10):Ut[t]=parseInt(i[t==="y"?13:12],10),zt[t]=Ut[t])},$=function(t){var n,r={x:0,y:0};if(!xt.snapping)return;for(n in Qt)Qt.hasOwnProperty(n)&&(r[n]=Math.max(0,Math.min(Math.ceil(Mt.content[n]/_t[n])-1,Math.round(-zt[n]/_t[n]))));if(r.x!==Ht.x||r.y!==Ht.y)Ht.x=r.x,Ht.y=r.y,G("segmentwillchange",{segmentX:r.x,segmentY:r.y});t&&(r.x!==Pt.x||r.y!==Pt.y)&&(Pt.x=r.x,Pt.y=r.y,G("segmentdidchange",{segmentX:r.x,segmentY:r.y}))},J=function(n,r,i,s,o){var u,a=null;if(!At[n])return!1;i?(s||(s=xt.flingBezier),u=e+"transform "+i+"ms "+s.toString()):u="",At[n].style[d
1]=u,xt.scrollbars&&(Ot[n].style[d]=u),At[n].style[p]=v+m[n]+r+"px"+g[n],xt.scrollbars&&(Ot[n].style[p]=v+m[n]+ -r*Mt.container[n]/Mt.content[n]+"px"+g[n]),r>=0?a="start":r<=Mt.scrollEnd[n]&&(a="end"),a!==Xt[n]&&(a!==null&&(i?$t.push(setTimeout(function(){G("reached"+a,{axis:n})},o||i)):G("reached"+a,{axis:n})),Xt[n]=a),i||(zt[n]=r)},K=function(){return{scrollLeft:-zt.x,scrollTop:-zt.y}},Q=function(t,n,r,i,s){$t.push(setTimeout(function(){J(t,n,r,i)},s))},G=function(t,n){var r,i;n.srcObject=Tt;for(r=0,i=on[t].length;r<i;r+=1)try{on[t][r](n)}catch(s){window.console&&window.console.error&&(s.message?window.console.error(s.message+" ("+s.sourceURL+", line "+s.line+")"):(window.console.error("Error encountered executing FTScroller event listener callback for ["+t+']. Add a "debugger" statement here to obtain a full backtrace.'),window.console.dir&&window.console.dir(s)))}},Y=function(t){var n,r,i,s=St(t.target),o=St(kt),u={x:"left",y:"top"},a={x:"right",y:"bottom"},f={x:"width",y:"height"};if(Bt!==!1)return;for(r in Qt)if(Qt.hasOwnProperty(r)){if(s[u[r]]>=o[u[r]]&&s[a[r]]<=o[a[r]])continue;if(s[f[r]]>o[f[r]]){i=s[f[r]]-Math.max(0,o[u[r]]-s[u[r]])-Math.max(0,s[a[r]]-o[a[r]]);if(i>=o[f[r]]/2)continue}n=-Math.round(s[f[r]]/2-zt[r]+s[u[r]]-o[u[r]]-o[f[r]]/2),n=Math.min(0,Math.max(Mt.scrollEnd[r],n)),J(r,n,0),Ut[r]=n}G("scroll",K())},Z=function(t,n){if(!xt.bouncing)return 0;var r=Math.exp(t/Mt.container[n]);return Math.round(Mt.container[n]*.6*(r-1)/(r+1))},et=function(t){var n,r,i={};for(n in t)t.hasOwnProperty(n)&&(r=t[n],r>=0?i[n]=r:r>Mt.scrollEnd[n]?i[n]=-1:i[n]=Mt.scrollEnd[n]-r);return i},tt=function(){rn&&(rt(),nn=rn(nt))},nt=function an(){var e,t;rn&&(nn=rn(an));for(e in Qt)Qt.hasOwnProperty(e)&&Wt[e]!==zt[e]&&(J(e,Wt[e]),t=!0);It&&t&&(G("scroll",K()),$(!1))},rt=function(){if(nn===!1||!sn)return;sn(nn),nn=!1},ot=function(){st(),it()},it=function(){var n;if(!kt)return;u&&!xt.disabledInputMethods.pointer?r?(kt.addEventListener("MSPointerDown",pt),kt.addEventListener("MSPointerMove",dt),kt.addEventListener("MSPointerUp",vt),kt.addEventListener("MSPointerCancel",mt)):(kt.addEventListener("pointerdown",pt),kt.addEventListener("pointermove",dt),kt.addEventListener("pointerup",vt),kt.addEventListener("pointercancel",mt)):(l&&!xt.disabledInputMethods.touch&&(kt.addEventListener("touchstart",ut),kt.addEventListener("touchmove",at),kt.addEventListener("touchend",ft),kt.addEventListener("touchcancel",ft)),xt.disabledInputMethods.mouse||kt.addEventListener("mousedown",lt)),xt.disabledInputMethods.scroll||(kt.addEventListener("DOMMouseScroll",bt),kt.addEventListener("mousewheel",bt));if(!xt.disabledInputMethods.mouse||!xt.disabledInputMethods.touch||!xt.disabledInputMethods.pointer)u?document.addEventListener("click",yt,!0):kt.addEventListener("click",yt,!0);xt.disabledInputMethods.focus||Lt.addEventListener("focus",Y),xt.updateOnChanges&&(un||(n=window.MutationObserver||window.WebKitMutationObserver||window[t+"MutationObserver"],n&&(un=new n(z))),un?un.observe(Lt,{childList:!0,characterData:!0,subtree:!0}):Lt.addEventListener("DOMSubtreeModified",function(e){if(!(!e||e.srcElement!==Lt&&e.srcElement.className.indexOf("ftscroller_")===-1))return;z()},!0),Lt.addEventListener("load",z)),xt.updateOnWindowResize&&window.addEventListener("resize",z)},st=function(){kt&&(kt.removeEventListener("MSPointerDown",pt),kt.removeEventListener("MSPointerMove",dt),kt.removeEventListener("MSPointerUp",vt),kt.removeEventListener("MSPointerCancel",mt),kt.removeEventListener("pointerdown",pt),kt.removeEventListener("pointermove",dt),kt.removeEventListener("pointerup",vt),kt.removeEventListener("pointercancel",mt),kt.removeEventListener("touchstart",ut),kt.removeEventListener("touchmove",at),kt.removeEventListener("touchend",ft),kt.removeEventListener("touchcancel",ft),kt.removeEventListener("mousedown",lt),kt.removeEventListener("DOMMouseScroll",bt),kt.removeEventListener("mousewheel",bt),kt.removeEventListener("click",yt,!0)),Lt&&(Lt.removeEventListener("focus",Y),Lt.removeEventListener("DOMSubtreeModified",z),Lt.removeEventListener("load",z)),un&&un.disconnect(),document.removeEventListener("mousemove",ct),document.removeEventListener("mouseup",ht),document.removeEventListener("click",yt,!0),window.removeEventListener("resize",z)},ut=function(t){var n,r,i;if(Bt){for(n=0,r=t.touches.length;n<r;n+=1)t.touches[n].identifier===Bt&&(jt=n);return}i=t.touches[0],Bt=i.identifier,jt=0,O(i.clientX,i.clientY,t.timeStamp,t)},at=function(t){if(Bt===!1)return;var n=t.touches[jt];M(n.clientX,n.clientY,t.timeStamp,t)},ft=function(t){var n,r;if(t.touches)for(n=0,r=t.touches.length;n<r;n+=1)if(t.touches[n].identifier===Bt){jt=n;return}_(t.timeStamp,t)},lt=function(t){if(t.button&&t.button===2||t.ctrlKey)return;kt.setCapture&&kt.setCapture(),document.addEventListener("mousemove",ct,!0),document.addEventListener("mouseup",ht,!0),Bt=t.button||1,jt=0,O(t.clientX,t.clientY,t.timeStamp,t)},ct=function(t){if(!Bt)return;M(t.clientX,t.clientY,t.timeStamp,t)},ht=function fn(e){if(e.button&&e.button!==Bt)return;document.removeEventListener("mousemove",ct,!0),document.removeEventListener("mouseup",fn,!0),kt.releaseCapture&&kt.releaseCapture(),_(e.timeStamp,e)},pt=function(t){if(Bt&&!t.isPrimary)return;if(t.pointerType===a){if(xt.disabledInputMethods.touch)return}else if(xt.disabledInputMethods.mouse)return;Bt=t.pointerId,O(t.clientX,t.clientY,t.timeStamp,t)},dt=function(t){if(Bt!==t.pointerId)return;M(t.clientX,t.clientY,t.timeStamp,t)},vt=function(t){if(Bt!==t.pointerId)return;_(t.timeStamp,t)},mt=function(t){_(t.timeStamp,t)},gt=function(t){Ft=!1},yt=function(t){return Vt?(t.preventDefault(),t.stopPropagation(),Bt||(Vt=!1),!1):!0},bt=function(t){var n,r;if(Bt!=="scrollwheel"){if(Bt!==!1)return!0;Bt="scrollwheel",Yt.x=0,Yt.y=0;if(!O(t.clientX,t.clientY,Date.now(),t))return}t.wheelDelta?t.wheelDeltaX?(n=t.wheelDeltaX/2,r=t.wheelDeltaY/2):(n=0,r=t.wheelDelta/2):t.axis&&t.axis===t.HORIZONTAL_AXIS?(n=t.detail*-10,r=0):(n=0,r=t.detail*-10),!xt.scrollingY&&!n&&(n=r,r=0),Yt.x=Math.round(Yt.x+n),Yt.y=Math.round(Yt.y+r),M(Gt.x+Yt.x,Gt.y+Yt.y,t.timeStamp,t),tn&&clearTimeout(tn),tn=setTimeout(function(){Et(),Bt=!1,It=!1,Vt=!1,qt=!1,f=!1,xt.windowScrollingActiveFlag&&(window[xt.windowScrollingActiveFlag]=!1),rt(),B()||D()},300)},wt=function(){if(Ft||Bt===!1||Bt==="scrollwheel")return;u&&(kt[i](Bt),kt.addEventListener(o,gt,!1)),Ft=!0},Et=function(){if(!Ft)return;u&&(kt.removeEventListener(o,gt,!1),kt[s](Bt)),Ft=!1},St=function(t){if(t.getBoundingClientRect)return t.getBoundingClientRect();var n=0,r=0,i=t;while(i)n=n+i.offsetLeft-i.scrollLeft,r=r+i.offsetTop-i.scrollTop,i=i.offsetParent;return{left:n,top:r,width:t.offsetWidth,height:t.offsetHeight}},R(),W(),it(),Tt={destroy:S,setSnapSize:x,scrollTo:T,scrollBy:N,updateDimensions:C,addEventListener:k,removeEventListener:L,setDisabledInputMethods:A},Object.defineProperties&&Object.defineProperties(Tt,{scrollHeight:{get:function(){return Mt.content.y},set:function(e){throw new SyntaxError("scrollHeight is currently read-only - ignoring "+e)}},scrollLeft:{get:function(){return-zt.x},set:function(e){return T(e,!1,!1),-zt.x}},scrollTop:{get:function(){return-zt.y},set:function(e){return T(!1,e,!1),-zt.y}},scrollWidth:{get:function(){return Mt.content.x}
1,set:function(e){throw new SyntaxError("scrollWidth is currently read-only - ignoring "+e)}},segmentCount:{get:function(){return xt.snapping?{x:Math.ceil(Mt.content.x/_t.x),y:Math.ceil(Mt.content.y/_t.y)}:{x:NaN,y:NaN}},set:function(e){throw new SyntaxError("segmentCount is currently read-only - ignoring "+e)}},currentSegment:{get:function(){return{x:Ht.x,y:Ht.y}},set:function(e){throw new SyntaxError("currentSegment is currently read-only - ignoring "+e)}},contentContainerNode:{get:function(){return Lt},set:function(e){throw new SyntaxError("contentContainerNode is currently read-only - ignoring "+e)}}}),Tt},FTScroller.prototype.getPrependedHTML=function(e,t,n){n||(typeof FTScrollerOptions=="object"&&FTScrollerOptions.hwAccelerationClass?n=FTScrollerOptions.hwAccelerationClass:n="ftscroller_hwaccelerated");var r='<div class="ftscroller_container">';return e||(r+='<div class="ftscroller_x '+n+'">'),t||(r+='<div class="ftscroller_y '+n+'">'),r},FTScroller.prototype.getAppendedHTML=function(e,t,n,r){n||(typeof FTScrollerOptions=="object"&&FTScrollerOptions.hwAccelerationClass?n=FTScrollerOptions.hwAccelerationClass:n="ftscroller_hwaccelerated");var i="";return e||(i+="</div>"),t||(i+="</div>"),r&&(e||(i+='<div class="ftscroller_scrollbar ftscroller_scrollbarx '+n+'"><div class="ftscroller_scrollbarinner"></div></div>'),t||(i+='<div class="ftscroller_scrollbar ftscroller_scrollbary '+n+'"><div class="ftscroller_scrollbarinner"></div></div>')),i+="</div>",i}})(),function(){"use strict";function e(e){return e>1?1:e<0?0:e}CubicBezier=function(t,n,r,i){this._p1={x:e(t),y:e(n)},this._p2={x:e(r),y:e(i)}},CubicBezier.prototype._getCoordinateForT=function(e,t,n){var r=3*t,i=3*(n-t)-r,s=1-r-i;return((s*e+i)*e+r)*e},CubicBezier.prototype._getCoordinateDerivateForT=function(e,t,n){var r=3*t,i=3*(n-t)-r,s=1-r-i;return(3*s*e+2*i)*e+r},CubicBezier.prototype._getTForCoordinate=function(e,t,n,r){if(!isFinite(r)||r<=0)throw new RangeError('"epsilon" must be a number greater than 0.');var i,s,o,u;for(i=e,s=0;s<8;s+=1){o=this._getCoordinateForT(i,t,n)-e;if(Math.abs(o)<r)return i;u=this._getCoordinateDerivateForT(i,t,n);if(Math.abs(u)<1e-6)break;i-=o/u}i=e;var a=0,f=1;if(i<a)return a;if(i>f)return f;while(a<f){o=this._getCoordinateForT(i,t,n);if(Math.abs(o-e)<r)return i;e>o?a=i:f=i,i=(f-a)*.5+a}return i},CubicBezier.prototype.getPointForT=function(e){return e===0||e===1?{x:e,y:e}:((e<0||e>1)&&_throwRangeError("t",e),{x:this._getCoordinateForT(e,this._p1.x,this._p2.x),y:this._getCoordinateForT(e,this._p1.y,this._p2.y)})},CubicBezier.prototype.getTForX=function(e,t){return this._getTForCoordinate(e,this._p1.x,this._p2.x,t)},CubicBezier.prototype.getTForY=function(e,t){return this._getTForCoordinate(e,this._p1.y,this._p2.y,t)},CubicBezier.prototype._getAuxPoints=function(e){(e<=0||e>=1)&&_throwRangeError("t",e);var t={x:e*this._p1.x,y:e*this._p1.y},n={x:this._p1.x+e*(this._p2.x-this._p1.x),y:this._p1.y+e*(this._p2.y-this._p1.y)},r={x:this._p2.x+e*(1-this._p2.x),y:this._p2.y+e*(1-this._p2.y)},i={x:t.x+e*(n.x-t.x),y:t.y+e*(n.y-t.y)},s={x:n.x+e*(r.x-n.x),y:n.y+e*(r.y-n.y)},o={x:i.x+e*(s.x-i.x),y:i.y+e*(s.y-i.y)};return{i0:t,i1:n,i2:r,j0:i,j1:s,k:o}},CubicBezier.prototype.divideAtT=function(e){(e<0||e>1)&&_throwRangeError("t",e);if(e===0||e===1){var t=[];return t[e]=CubicBezier.linear(),t[1-e]=this.clone(),t}var n={},r={},i=this._getAuxPoints(e),s=i.i0,o=i.i2,u=i.j0,a=i.j1,f=i.k,l=f.x,c=f.y;return n.p1={x:s.x/l,y:s.y/c},n.p2={x:u.x/l,y:u.y/c},r.p1={x:(a.x-l)/(1-l),y:(a.y-c)/(1-c)},r.p2={x:(o.x-l)/(1-l),y:(o.y-c)/(1-c)},[new CubicBezier(n.p1.x,n.p1.y,n.p2.x,n.p2.y),new CubicBezier(r.p1.x,r.p1.y,r.p2.x,r.p2.y)]},CubicBezier.prototype.divideAtX=function(e,t){(e<0||e>1)&&_throwRangeError("x",e);var n=this.getTForX(e,t);return this.divideAtT(n)},CubicBezier.prototype.divideAtY=function(e,t){(e<0||e>1)&&_throwRangeError("y",e);var n=this.getTForY(e,t);return this.divideAtT(n)},CubicBezier.prototype.clone=function(){return new CubicBezier(this._p1.x,this._p1.y,this._p2.x,this._p2.y)},CubicBezier.prototype.toString=function(){return"cubic-bezier("+[this._p1.x,this._p1.y,this._p2.x,this._p2.y].join(", ")+")"},CubicBezier.linear=function(){return new CubicBezier},CubicBezier.ease=function(){return new CubicBezier(.25,.1,.25,1)},CubicBezier.linear=function(){return new CubicBezier(0,0,1,1)},CubicBezier.easeIn=function(){return new CubicBezier(.42,0,1,1)},CubicBezier.easeOut=function(){return new CubicBezier(0,0,.58,1)},CubicBezier.easeInOut=function(){return new CubicBezier(.42,0,.58,1)}}(),typeof define!="undefined"&&define.amd?define("FTScroller",[],function(){"use strict";return{FTScroller:FTScroller,CubicBezier:CubicBezier}}):typeof module!="undefined"&&module.exports&&(module.exports=function(e,t){"use strict";return new FTScroller(e,t)},module.exports.FTScroller=FTScroller,module.exports.CubicBezier=CubicBezier),function(e,t){"use strict";var n=e.GreenSockGlobals=e.GreenSockGlobals||e;if(n.TweenLite)return;var r=function(e){var t=e.split("."),r=n,i;for(i=0;i<t.length;i++)r[t[i]]=r=r[t[i]]||{};return r},i=r("com.greensock"),s=1e-10,o=function(e){var t=[],n=e.length,r;for(r=0;r!==n;t.push(e[r++]));return t},u=function(){},a=function(){var e=Object.prototype.toString,t=e.call([]);return function(n){return n!=null&&(n instanceof Array||typeof n=="object"&&!!n.push&&e.call(n)===t)}}(),f,l,c,h,p,d={},v=function(i,s,o,u){this.sc=d[i]?d[i].sc:[],d[i]=this,this.gsClass=null,this.func=o;var a=[];this.check=function(f){var l=s.length,c=l,h,p,m,g,y;while(--l>-1)(h=d[s[l]]||new v(s[l],[])).gsClass?(a[l]=h.gsClass,c--):f&&h.sc.push(this);if(c===0&&o){p=("com.greensock."+i).split("."),m=p.pop(),g=r(p.join("."))[m]=this.gsClass=o.apply(o,a),u&&(n[m]=g,y=typeof module!="undefined"&&module.exports,!y&&typeof define=="function"&&define.amd?define((e.GreenSockAMDPath?e.GreenSockAMDPath+"/":"")+i.split(".").pop(),[],function(){return g}):i===t&&y&&(module.exports=g));for(l=0;l<this.sc.length;l++)this.sc[l].check()}},this.check(!0)},m=e._gsDefine=function(e,t,n,r){return new v(e,t,n,r)},g=i._class=function(e,t,n){return t=t||function(){},m(e,[],function(){return t},n),t};m.globals=n;var y=[0,0,1,1],b=[],w=g("easing.Ease",function(e,t,n,r){this._func=e,this._type=n||0,this._power=r||0,this._params=t?y.concat(t):y},!0),E=w.map={},S=w.register=function(e,t,n,r){var s=t.split(","),o=s.length,u=(n||"easeIn,easeOut,easeInOut").split(","),a,f,l,c;while(--o>-1){f=s[o],a=r?g("easing."+f,null,!0):i.easing[f]||{},l=u.length;while(--l>
1-1)c=u[l],E[f+"."+c]=E[c+f]=a[c]=e.getRatio?e:e[c]||new e}};c=w.prototype,c._calcEnd=!1,c.getRatio=function(e){if(this._func)return this._params[0]=e,this._func.apply(null,this._params);var t=this._type,n=this._power,r=t===1?1-e:t===2?e:e<.5?e*2:(1-e)*2;return n===1?r*=r:n===2?r*=r*r:n===3?r*=r*r*r:n===4&&(r*=r*r*r*r),t===1?1-r:t===2?r:e<.5?r/2:1-r/2},f=["Linear","Quad","Cubic","Quart","Quint,Strong"],l=f.length;while(--l>-1)c=f[l]+",Power"+l,S(new w(null,null,1,l),c,"easeOut",!0),S(new w(null,null,2,l),c,"easeIn"+(l===0?",easeNone":"")),S(new w(null,null,3,l),c,"easeInOut");E.linear=i.easing.Linear.easeIn,E.swing=i.easing.Quad.easeInOut;var x=g("events.EventDispatcher",function(e){this._listeners={},this._eventTarget=e||this});c=x.prototype,c.addEventListener=function(e,t,n,r,i){i=i||0;var s=this._listeners[e],o=0,u,a;s==null&&(this._listeners[e]=s=[]),a=s.length;while(--a>-1)u=s[a],u.c===t&&u.s===n?s.splice(a,1):o===0&&u.pr<i&&(o=a+1);s.splice(o,0,{c:t,s:n,up:r,pr:i}),this===h&&!p&&h.wake()},c.removeEventListener=function(e,t){var n=this._listeners[e],r;if(n){r=n.length;while(--r>-1)if(n[r].c===t){n.splice(r,1);return}}},c.dispatchEvent=function(e){var t=this._listeners[e],n,r,i;if(t){n=t.length,r=this._eventTarget;while(--n>-1)i=t[n],i&&(i.up?i.c.call(i.s||r,{type:e,target:r}):i.c.call(i.s||r))}};var T=e.requestAnimationFrame,N=e.cancelAnimationFrame,C=Date.now||function(){return(new Date).getTime()},k=C();f=["ms","moz","webkit","o"],l=f.length;while(--l>-1&&!T)T=e[f[l]+"RequestAnimationFrame"],N=e[f[l]+"CancelAnimationFrame"]||e[f[l]+"CancelRequestAnimationFrame"];g("Ticker",function(e,t){var n=this,r=C(),i=t!==!1&&T?"auto":!1,o=500,a=33,f="tick",l,c,d,v,m,g=function(e){var t=C()-k,i,s;t>o&&(r+=t-a),k+=t,n.time=(k-r)/1e3,i=n.time-m;if(!l||i>0||e===!0)n.frame++,m+=i+(i>=v?.004:v-i),s=!0;e!==!0&&(d=c(g)),s&&n.dispatchEvent(f)};x.call(n),n.time=n.frame=0,n.tick=function(){g(!0)},n.lagSmoothing=function(e,t){o=e||1/s,a=Math.min(t,o,0)},n.sleep=function(){if(d==null)return;!i||!N?clearTimeout(d):N(d),c=u,d=null,n===h&&(p=!1)},n.wake=function(e){d!==null?n.sleep():e?r+=-k+(k=C()):n.frame>10&&(k=C()-o+5),c=l===0?u:!i||!T?function(e){return setTimeout(e,(m-n.time)*1e3+1|0)}:T,n===h&&(p=!0),g(2)},n.fps=function(e){if(!arguments.length)return l;l=e,v=1/(l||60),m=this.time+v,n.wake()},n.useRAF=function(e){if(!arguments.length)return i;n.sleep(),i=e,n.fps(l)},n.fps(e),setTimeout(function(){i==="auto"&&n.frame<5&&document.visibilityState!=="hidden"&&n.useRAF(!1)},1500)}),c=i.Ticker.prototype=new i.events.EventDispatcher,c.constructor=i.Ticker;var L=g("core.Animation",function(e,t){this.vars=t=t||{},this._duration=this._totalDuration=e||0,this._delay=Number(t.delay)||0,this._timeScale=1,this._active=t.immediateRender===!0,this.data=t.data,this._reversed=t.reversed===!0;if(!$)return;p||h.wake();var n=this.vars.useFrames?V:$;n.add(this,n._time),this.vars.paused&&this.paused(!0)});h=L.ticker=new i.Ticker,c=L.prototype,c._dirty=c._gc=c._initted=c._paused=!1,c._totalTime=c._time=0,c._rawPrevTime=-1,c._next=c._last=c._onUpdate=c._timeline=c.timeline=null,c._paused=!1;var A=function(){p&&C()-k>2e3&&h.wake(),setTimeout(A,2e3)};A(),c.play=function(e,t){return e!=null&&this.seek(e,t),this.reversed(!1).paused(!1)},c.pause=function(e,t){return e!=null&&this.seek(e,t),this.paused(!0)},c.resume=function(e,t){return e!=null&&this.seek(e,t),this.paused(!1)},c.seek=function(e,t){return this.totalTime(Number(e),t!==!1)},c.restart=function(e,t){return this.reversed(!1).paused(!1).totalTime(e?-this._delay:0,t!==!1,!0)},c.reverse=function(e,t){return e!=null&&this.seek(e||this.totalDuration(),t),this.reversed(!0).paused(!1)},c.render=function(e,t,n){},c.invalidate=function(){return this._time=this._totalTime=0,this._initted=this._gc=!1,this._rawPrevTime=-1,(this._gc||!this.timeline)&&this._enabled(!0),this},c.isActive=function(){var e=this._timeline,t=this._startTime,n;return!e||!this._gc&&!this._paused&&e.isActive()&&(n=e.rawTime())>=t&&n<t+this.totalDuration()/this._timeScale},c._enabled=function(e,t){return p||h.wake(),this._gc=!e,this._active=this.isActive(),t!==!0&&(e&&!this.timeline?this._timeline.add(this,this._startTime-this._delay):!e&&this.timeline&&this._timeline._remove(this,!0)),!1},c._kill=function(e,t){return this._enabled(!1,!1)},c.kill=function(e,t){return this._kill(e,t),this},c._uncache=function(e){var t=e?this:this.timeline;while(t)t._dirty=!0,t=t.timeline;return this},c._swapSelfInParams=function(e){var t=e.length,n=e.concat();while(--t>-1)e[t]==="{self}"&&(n[t]=this);return n},c._callback=function(e){var t=this.vars;
1t[e].apply(t[e+"Scope"]||t.callbackScope||this,t[e+"Params"]||b)},c.eventCallback=function(e,t,n,r){if((e||"").substr(0,2)==="on"){var i=this.vars;if(arguments.length===1)return i[e];t==null?delete i[e]:(i[e]=t,i[e+"Params"]=a(n)&&n.join("").indexOf("{self}")!==-1?this._swapSelfInParams(n):n,i[e+"Scope"]=r),e==="onUpdate"&&(this._onUpdate=t)}return this},c.delay=function(e){return arguments.length?(this._timeline.smoothChildTiming&&this.startTime(this._startTime+e-this._delay),this._delay=e,this):this._delay},c.duration=function(e){return arguments.length?(this._duration=this._totalDuration=e,this._uncache(!0),this._timeline.smoothChildTiming&&this._time>0&&this._time<this._duration&&e!==0&&this.totalTime(this._totalTime*(e/this._duration),!0),this):(this._dirty=!1,this._duration)},c.totalDuration=function(e){return this._dirty=!1,arguments.length?this.duration(e):this._totalDuration},c.time=function(e,t){return arguments.length?(this._dirty&&this.totalDuration(),this.totalTime(e>this._duration?this._duration:e,t)):this._time},c.totalTime=function(e,t,n){p||h.wake();if(!arguments.length)return this._totalTime;if(this._timeline){e<0&&!n&&(e+=this.totalDuration());if(this._timeline.smoothChildTiming){this._dirty&&this.totalDuration();var r=this._totalDuration,i=this._timeline;e>r&&!n&&(e=r),this._startTime=(this._paused?this._pauseTime:i._time)-(this._reversed?r-e:e)/this._timeScale,i._dirty||this._uncache(!1);if(i._timeline)while(i._timeline)i._timeline._time!==(i._startTime+i._totalTime)/i._timeScale&&i.totalTime(i._totalTime,!0),i=i._timeline}this._gc&&this._enabled(!0,!1);if(this._totalTime!==e||this._duration===0)P.length&&K(),this.render(e,t,!1),P.length&&K()}return this},c.progress=c.totalProgress=function(e,t){var n=this.duration();return arguments.length?this.totalTime(n*e,t):n?this._time/n:this.ratio},c.startTime=function(e){return arguments.length?(e!==this._startTime&&(this._startTime=e,this.timeline&&this.timeline._sortChildren&&this.timeline.add(this,e-this._delay)),this):this._startTime},c.endTime=function(e){return this._startTime+(e!=0?this.totalDuration():this.duration())/this._timeScale},c.timeScale=function(e){if(!arguments.length)return this._timeScale;e=e||s;if(this._timeline&&this._timeline.smoothChildTiming){var t=this._pauseTime,n=t||t===0?t:this._timeline.totalTime();this._startTime=n-(n-this._startTime)*this._timeScale/e}return this._timeScale=e,this._uncache(!1)},c.reversed=function(e){return arguments.length?(e!=this._reversed&&(this._reversed=e,this.totalTime(this._timeline&&!this._timeline.smoothChildTiming?this.totalDuration()-this._totalTime:this._totalTime,!0)),this):this._reversed},c.paused=function(e){if(!arguments.length)return this._paused;var t=this._timeline,n,r;return e!=this._paused&&t&&(!p&&!e&&h.wake(),n=t.rawTime(),r=n-this._pauseTime,!e&&t.smoothChildTiming&&(this._startTime+=r,this._uncache(!1)),this._pauseTime=e?n:null,this._paused=e,this._active=this.isActive(),!e&&r!==0&&this._initted&&this.duration()&&(n=t.smoothChildTiming?this._totalTime:(n-this._startTime)/this._timeScale,this.render(n,n===this._totalTime,!0))),this._gc&&!e&&this._enabled(!0,!1),this};var O=g("core.SimpleTimeline",function(e){L.call(this,0,e),this.autoRemoveChildren=this.smoothChildTiming=!0});c=O.prototype=new L,c.constructor=O,c.kill()._gc=!1,c._first=c._last=c._recent=null,c._sortChildren=!1,c.add=c.insert=function(e,t,n,r){var i,s;e._startTime=Number(t||0)+e._delay,e._paused&&this!==e._timeline&&(e._pauseTime=e._startTime+(this.rawTime()-e._startTime)/e._timeScale),e.timeline&&e.timeline._remove(e,!0),e.timeline=e._timeline=this,e._gc&&e._enabled(!0,!0),i=this._last;if(this._sortChildren){s=e._startTime;while(i&&i._startTime>s)i=i._prev}return i?(e._next=i._next,i._next=e):(e._next=this._first,this._first=e),e._next?e._next._prev=e:this._last=e,e._prev=i,this._recent=e,this._timeline&&this._uncache(!0),this},c._remove=function(e,t){return e.timeline===this&&(t||e._enabled(!1,!0),e._prev?e._prev._next=e._next:this._first===e&&(this._first=e._next),e._next?e._next._prev=e._prev:this._last===e&&(this._last=e._prev),e._next=e._prev=e.timeline=null,e===this._recent&&(this._recent=this._last),this._timeline&&this._uncache(!0)),this}
1,c.render=function(e,t,n){var r=this._first,i;this._totalTime=this._time=this._rawPrevTime=e;while(r){i=r._next;if(r._active||e>=r._startTime&&!r._paused)r._reversed?r.render((r._dirty?r.totalDuration():r._totalDuration)-(e-r._startTime)*r._timeScale,t,n):r.render((e-r._startTime)*r._timeScale,t,n);r=i}},c.rawTime=function(){return p||h.wake(),this._totalTime};var M=g("TweenLite",function(t,n,r){L.call(this,n,r),this.render=M.prototype.render;if(t==null)throw"Cannot tween a null target.";this.target=t=typeof t!="string"?t:M.selector(t)||t;var i=t.jquery||t.length&&t!==e&&t[0]&&(t[0]===e||t[0].nodeType&&t[0].style&&!t.nodeType),u=this.vars.overwrite,f,l,c;this._overwrite=u=u==null?X[M.defaultOverwrite]:typeof u=="number"?u>>0:X[u];if((i||t instanceof Array||t.push&&a(t))&&typeof t[0]!="number"){this._targets=c=o(t),this._propLookup=[],this._siblings=[];for(f=0;f<c.length;f++){l=c[f];if(!l){c.splice(f--,1);continue}if(typeof l=="string"){l=c[f--]=M.selector(l),typeof l=="string"&&c.splice(f+1,1);continue}if(l.length&&l!==e&&l[0]&&(l[0]===e||l[0].nodeType&&l[0].style&&!l.nodeType)){c.splice(f--,1),this._targets=c=c.concat(o(l));continue}this._siblings[f]=Q(l,this,!1),u===1&&this._siblings[f].length>1&&Y(l,this,null,1,this._siblings[f])}}else this._propLookup={},this._siblings=Q(t,this,!1),u===1&&this._siblings.length>1&&Y(t,this,null,1,this._siblings);if(this.vars.immediateRender||n===0&&this._delay===0&&this.vars.immediateRender!==!1)this._time=-s,this.render(-this._delay)},!0),_=function(t){return t&&t.length&&t!==e&&t[0]&&(t[0]===e||t[0].nodeType&&t[0].style&&!t.nodeType)},D=function(e,t){var n={},r;for(r in e)!W[r]&&(!(r in t)||r==="transform"||r==="x"||r==="y"||r==="width"||r==="height"||r==="className"||r==="border")&&(!R[r]||R[r]&&R[r]._autoCSS)&&(n[r]=e[r],delete e[r]);e.css=n};c=M.prototype=new L,c.constructor=M,c.kill()._gc=!1,c.ratio=0,c._firstPT=c._targets=c._overwrittenProps=c._startAt=null,c._notifyPluginsOfEnabled=c._lazy=!1,M.version="1.18.2",M.defaultEase=c._ease=new w(null,null,1,1),M.defaultOverwrite="auto",M.ticker=h,M.autoSleep=120,M.lagSmoothing=function(e,t){h.lagSmoothing(e,t)},M.selector=e.$||e.jQuery||function(t){var n=e.$||e.jQuery;return n?(M.selector=n,n(t)):typeof document=="undefined"?t:document.querySelectorAll?document.querySelectorAll(t):document.getElementById(t.charAt(0)==="#"?t.substr(1):t)};var P=[],H={},B=/(?:(-|-=|\+=)?\d*\.?\d*(?:e[\-+]?\d+)?)[0-9]/ig,j=function(e){var t=this._firstPT,n=1e-6,r;while(t)r=t.blob?e?this.join(""):this.start:t.c*e+t.s,t.r?r=Math.round(r):r<n&&r>-n&&(r=0),t.f?t.fp?t.t[t.p](t.fp,r):t.t[t.p](r):t.t[t.p]=r,t=t._next},F=function(e,t,n,r){var i=[e,t],s=0,o="",u=0,a,f,l,c,h,p,d;i.start=e,n&&(n(i),e=i[0],t=i[1]),i.length=0,a=e.match(B)||[],f=t.match(B)||[],r&&(r._next=null,r.blob=1,i._firstPT=r),h=f.length;for(c=0;c<h;c++)d=f[c],p=t.substr(s,t.indexOf(d,s)-s),o+=p||!c?p:",",s+=p.length,u?u=(u+1)%5:p.substr(-5)==="rgba("&&(u=1),d===a[c]||a.length<=c?o+=d:(o&&(i.push(o),o=""),l=parseFloat(a[c]),i.push(l),i._firstPT={_next:i._firstPT,t:i,p:i.length-1,s:l,c:(d.charAt(1)==="="?parseInt(d.charAt(0)+"1",10)*parseFloat(d.substr(2)):parseFloat(d)-l)||0,f:0,r:u&&u<4}),s+=d.length;return o+=t.substr(s),o&&i.push(o),i.setRatio=j,i},I=function(e,t,n,r,i,s,o,u){var a=n==="get"?e[t]:n,f=typeof e[t],l=typeof r=="string"&&r.charAt(1)==="=",c={t:e,p:t,s:a,f:f==="function",pg:0,n:i||t,r:s,pr:0,c:l?parseInt(r.charAt(0)+"1",10)*parseFloat(r.substr(2)):parseFloat(r)-a||0},h,p;f!=="number"&&(f==="function"&&n==="get"&&(p=t.indexOf("set")||typeof e["get"+t.substr(3)]!="function"?t:"get"+t.substr(3),c.s=a=o?e[p](o):e[p]()),typeof a=="string"&&(o||isNaN(a))?(c.fp=o,h=F(a,r,u||M.defaultStringFilter,c),c={t:h,p:"setRatio",s:0,c:1,f:2,pg:0,n:i||t,pr:0}):l||(c.s=parseFloat(a),c.c=parseFloat(r)-c.s||0));if(c.c){if(c._next=this._firstPT)c._next._prev=c;return this._firstPT=c,c}},q=M._internals={isArray:a,isSelector:_,lazyTweens:P,blobDif:F},R=M._plugins={},U=q.tweenLookup={},z=0,W=q.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,onOverwrite:1,callbackScope:1,stringFilter:1},X={none:0,all:1,auto:2,concurrent:3,allOnStart:4,preexisting:5,"true":1,"false":0},V=L._rootFramesTimeline=new O,$=L._rootTimeline=new O,J=30,K=q.lazyRender=function(){var e=P.length,t;H={};while(--e>-1)t=P[e],t&&t._lazy!==!1&&(t.render(t._lazy[0],t._lazy[1],!0),t._lazy=!1);P.length=0};$._startTime=h.time,V._startTime=h.frame,$._active=V._active=!0,setTimeout(K,1),L._updateRoot=M.render=function(){var e,t,n;P.length&&K(),$.render((h.time-$._startTime)*$._timeScale,!1,!1),V.render((h.frame-V._startTime)*V._timeScale,!1,!1),P.length&&K();if(h.frame>=J){J=h.frame+(parseInt(M.autoSleep,10)||120);for(n in U){t=U[n].tweens,e=t.length;while(--e>-1)t[e]._gc&&t.splice(e,1);t.length===0&&delete U[n]}n=$._first;if(!n||n._paused)if(M.autoSleep&&!V._first&&h._listeners.tick.length===1){while(n&&n._paused)n=n._next;n||h.sleep()}}},h.addEventListener("tick",L._updateRoot);var Q=function(e,t,n){var r=e._gsTweenID,i,s;U[r||(e._gsTweenID=r="t"+z++)]||(U[r]={target:e,tweens:[]});if(t){i=U[r].tweens,i[s=i.length]=t;if(n)while(--s>-1)i[s]===t&&i.splice(s,1)}return U[r].tweens},G=function(e,t,n,r){var i=e.vars.onOverwrite,s,o;return i&&(s=i(e,t,n,r)),i=M.onOverwrite,i&&(o=i(e,t,n,r)),s!==!1&&o!==!1},Y=function(e,t,n,r,i){var o,u,a,f;if(r===1||r>=4){f=i.length;for(o=0;o<f;o++)if((a=i[o])!==t)a._gc||a._kill(null,e,t)&&(u=!0);else if(r===5)break;return u}var l=t._startTime+s,c=[],h=0,p=t._duration===0,d;o=i.length;while(--o>-1)(a=i[o])!==t&&!a._gc&&!a._paused&&(a._timeline!==t._timeline?(d=d||Z(t,0,p),Z(a,d,p)===0&&(c[h++]=a)):a._startTime<=l&&a._startTime+a.totalDuration()/a._timeScale>l&&((p||!a._initted)&&l-a._startTime<=2e-10||(c[h++]=a)));o=h;while(--o>-1){a=c[o],r===2&&a._kill(n,e,t)&&(u=!0);if(r!==2||!a._firstPT&&a._initted){if(r!==2&&!G(a,t))continue;a._enabled(!1,!1)&&(u=!0)}}return u},Z=function(e,t,n){var r=e._timeline,i=r._timeScale,o=e._startTime;while(r._timeline){o+=r._startTime,i*=r._timeScale;if(r._paused)return-100;r=r._timeline}return o/=i,o>t?o-t:n&&o===t||!e._initted&&o-t<2*s?s:(o+=e.totalDuration()/e._timeScale/i)>t+s?0:o-t-s};c._init=function(){var e=this.vars,t=this._overwrittenProps,n=this._duration,r=!!e.immediateRender,i=e.ease,s,o,u,a,f;if(e.startAt){this._startAt&&(this._startAt.render(-1,!0),this._startAt.kill()),f={};for(a in e.startAt)f[a]=e.startAt[a];f.overwrite=!1,f.immediateRender=!0,f.lazy=r&&e.lazy!==!1,f.startAt=f.delay=null,this._startAt=M.to(this.target,0,f);if(r)if(this._time>0)this._startAt=null;else if(n!==0)return}else if(e.runBackwards&&n!==0)if(this._startAt)this._startAt.render(-1,!0),this._startAt.kill(),this._startAt=null;else{this._time!==0&&(r=!1),u={};for(a in e)if(!W[a]||a==="autoCSS")u[a]=e[a];u.overwrite=0,u.data="isFromStart",u.lazy=r&&e.lazy!==!1,u.immediateRender=r,this._startAt=M.to(this.target,0,u);if(!r)this._startAt._init(),this._startAt._enabled(!1),this.vars.immediateRender&&(this._startAt=null);else if(this._time===0)return}this._ease=i=i?i instanceof w?i:typeof i=="function"?new w(i,e.easeParams):E[i]||M.defaultEase:M.defaultEase,e.easeParams instanceof Array&&i.config&&(this._ease=i.config.apply(i,e.easeParams)),this._easeType=this._ease._type,this._easePower=this._ease._power,this._firstPT=null;if(this._targets){s=this._targets.length;while(--s>-1)this._initProps(this._targets[s],this._propLookup[s]={},this._siblings[s],t?t[s]:null)&&(o=!0)}else o=this._initProps(this.target,this._propLookup,this._siblings,t);o&&M._onPluginEvent("_onInitAllProps",this),t&&(this._firstPT||typeof this.target!="function"&&this._enabled(!1,!1));if(e.runBackwards){u=this._firstPT;while(u)u.s+=u.c,u.c=-u.c,u=u._next}this._onUpdate=e.onUpdate,this._initted=!0}
1,c._initProps=function(t,n,r,i){var s,o,u,f,l,c;if(t==null)return!1;H[t._gsTweenID]&&K(),this.vars.css||t.style&&t!==e&&t.nodeType&&R.css&&this.vars.autoCSS!==!1&&D(this.vars,t);for(s in this.vars){c=this.vars[s];if(W[s])c&&(c instanceof Array||c.push&&a(c))&&c.join("").indexOf("{self}")!==-1&&(this.vars[s]=c=this._swapSelfInParams(c,this));else if(R[s]&&(f=new R[s])._onInitTween(t,this.vars[s],this)){this._firstPT=l={_next:this._firstPT,t:f,p:"setRatio",s:0,c:1,f:1,n:s,pg:1,pr:f._priority},o=f._overwriteProps.length;while(--o>-1)n[f._overwriteProps[o]]=this._firstPT;if(f._priority||f._onInitAllProps)u=!0;if(f._onDisable||f._onEnable)this._notifyPluginsOfEnabled=!0;l._next&&(l._next._prev=l)}else n[s]=I.call(this,t,s,"get",c,s,0,null,this.vars.stringFilter)}return i&&this._kill(i,t)?this._initProps(t,n,r,i):this._overwrite>1&&this._firstPT&&r.length>1&&Y(t,this,n,this._overwrite,r)?(this._kill(n,t),this._initProps(t,n,r,i)):(this._firstPT&&(this.vars.lazy!==!1&&this._duration||this.vars.lazy&&!this._duration)&&(H[t._gsTweenID]=!0),u)},c.render=function(e,t,n){var r=this._time,i=this._duration,o=this._rawPrevTime,u,a,f,l;if(e>=i-1e-7)this._totalTime=this._time=i,this.ratio=this._ease._calcEnd?this._ease.getRatio(1):1,this._reversed||(u=!0,a="onComplete",n=n||this._timeline.autoRemoveChildren),i===0&&(this._initted||!this.vars.lazy||n)&&(this._startTime===this._timeline._duration&&(e=0),(o<0||e<=0&&e>=-1e-7||o===s&&this.data!=="isPause")&&o!==e&&(n=!0,o>s&&(a="onReverseComplete")),this._rawPrevTime=l=!t||e||o===e?e:s);else if(e<1e-7){this._totalTime=this._time=0,this.ratio=this._ease._calcEnd?this._ease.getRatio(0):0;if(r!==0||i===0&&o>0)a="onReverseComplete",u=this._reversed;e<0&&(this._active=!1,i===0&&(this._initted||!this.vars.lazy||n)&&(o>=0&&(o!==s||this.data!=="isPause")&&(n=!0),this._rawPrevTime=l=!t||e||o===e?e:s)),this._initted||(n=!0)}else{this._totalTime=this._time=e;if(this._easeType){var c=e/i,h=this._easeType,p=this._easePower;if(h===1||h===3&&c>=.5)c=1-c;h===3&&(c*=2),p===1?c*=c:p===2?c*=c*c:p===3?c*=c*c*c:p===4&&(c*=c*c*c*c),h===1?this.ratio=1-c:h===2?this.ratio=c:e/i<.5?this.ratio=c/2:this.ratio=1-c/2}else this.ratio=this._ease.getRatio(e/i)}if(this._time===r&&!n)return;if(!this._initted){this._init();if(!this._initted||this._gc)return;if(!n&&this._firstPT&&(this.vars.lazy!==!1&&this._duration||this.vars.lazy&&!this._duration)){this._time=this._totalTime=r,this._rawPrevTime=o,P.push(this),this._lazy=[e,t];return}this._time&&!u?this.ratio=this._ease.getRatio(this._time/i):u&&this._ease._calcEnd&&(this.ratio=this._ease.getRatio(this._time===0?0:1))}this._lazy!==!1&&(this._lazy=!1),this._active||!this._paused&&this._time!==r&&e>=0&&(this._active=!0),r===0&&(this._startAt&&(e>=0?this._startAt.render(e,t,n):a||(a="_dummyGS")),this.vars.onStart&&(this._time!==0||i===0)&&(t||this._callback("onStart"))),f=this._firstPT;while(f)f.f?f.t[f.p](f.c*this.ratio+f.s):f.t[f.p]=f.c*this.ratio+f.s,f=f._next;this._onUpdate&&(e<0&&this._startAt&&e!==-0.0001&&this._startAt.render(e,t,n),t||(this._time!==r||u)&&this._callback("onUpdate")),a&&(!this._gc||n)&&(e<0&&this._startAt&&!this._onUpdate&&e!==-0.0001&&this._startAt.render(e,t,n),u&&(this._timeline.autoRemoveChildren&&this._enabled(!1,!1),this._active=!1),!t&&this.vars[a]&&this._callback(a),i===0&&this._rawPrevTime===s&&l!==s&&(this._rawPrevTime=0))},c._kill=function(e,t,n){e==="all"&&(e=null);if(e==null)if(t==null||t===this.target)return this._lazy=!1,this._enabled(!1,!1);t=typeof t!="string"?t||this._targets||this.target:M.selector(t)||t;var r=n&&this._time&&n._startTime===this._startTime&&this._timeline===n._timeline,i,s,o,u,f,l,c,h,p;if((a(t)||_(t))&&typeof t[0]!="number"){i=t.length;while(--i>
1-1)this._kill(e,t[i],n)&&(l=!0)}else{if(this._targets){i=this._targets.length;while(--i>-1)if(t===this._targets[i]){f=this._propLookup[i]||{},this._overwrittenProps=this._overwrittenProps||[],s=this._overwrittenProps[i]=e?this._overwrittenProps[i]||{}:"all";break}}else{if(t!==this.target)return!1;f=this._propLookup,s=this._overwrittenProps=e?this._overwrittenProps||{}:"all"}if(f){c=e||f,h=e!==s&&s!=="all"&&e!==f&&(typeof e!="object"||!e._tempKill);if(n&&(M.onOverwrite||this.vars.onOverwrite)){for(o in c)f[o]&&(p||(p=[]),p.push(o));if((p||!e)&&!G(this,n,t,p))return!1}for(o in c){if(u=f[o]){r&&(u.f?u.t[u.p](u.s):u.t[u.p]=u.s,l=!0),u.pg&&u.t._kill(c)&&(l=!0);if(!u.pg||u.t._overwriteProps.length===0)u._prev?u._prev._next=u._next:u===this._firstPT&&(this._firstPT=u._next),u._next&&(u._next._prev=u._prev),u._next=u._prev=null;delete f[o]}h&&(s[o]=1)}!this._firstPT&&this._initted&&this._enabled(!1,!1)}}return l},c.invalidate=function(){return this._notifyPluginsOfEnabled&&M._onPluginEvent("_onDisable",this),this._firstPT=this._overwrittenProps=this._startAt=this._onUpdate=null,this._notifyPluginsOfEnabled=this._active=this._lazy=!1,this._propLookup=this._targets?{}:[],L.prototype.invalidate.call(this),this.vars.immediateRender&&(this._time=-s,this.render(-this._delay)),this},c._enabled=function(e,t){p||h.wake();if(e&&this._gc){var n=this._targets,r;if(n){r=n.length;while(--r>-1)this._siblings[r]=Q(n[r],this,!0)}else this._siblings=Q(this.target,this,!0)}return L.prototype._enabled.call(this,e,t),this._notifyPluginsOfEnabled&&this._firstPT?M._onPluginEvent(e?"_onEnable":"_onDisable",this):!1},M.to=function(e,t,n){return new M(e,t,n)},M.from=function(e,t,n){return n.runBackwards=!0,n.immediateRender=n.immediateRender!=0,new M(e,t,n)},M.fromTo=function(e,t,n,r){return r.startAt=n,r.immediateRender=r.immediateRender!=0&&n.immediateRender!=0,new M(e,t,r)},M.delayedCall=function(e,t,n,r,i){return new M(t,0,{delay:e,onComplete:t,onCompleteParams:n,callbackScope:r,onReverseComplete:t,onReverseCompleteParams:n,immediateRender:!1,lazy:!1,useFrames:i,overwrite:0})},M.set=function(e,t){return new M(e,0,t)},M.getTweensOf=function(e,t){if(e==null)return[];e=typeof e!="string"?e:M.selector(e)||e;var n,r,i,s;if((a(e)||_(e))&&typeof e[0]!="number"){n=e.length,r=[];while(--n>-1)r=r.concat(M.getTweensOf(e[n],t));n=r.length;while(--n>-1){s=r[n],i=n;while(--i>-1)s===r[i]&&r.splice(n,1)}}else{r=Q(e).concat(),n=r.length;while(--n>-1)(r[n]._gc||t&&!r[n].isActive())&&r.splice(n,1)}return r},M.killTweensOf=M.killDelayedCallsTo=function(e,t,n){typeof t=="object"&&(n=t,t=!1);var r=M.getTweensOf(e,t),i=r.length;while(--i>-1)r[i]._kill(n,e)};var et=g("plugins.TweenPlugin",function(e,t){this._overwriteProps=(e||"").split(","),this._propName=this._overwriteProps[0],this._priority=t||0,this._super=et.prototype},!0);c=et.prototype,et.version="1.18.0",et.API=2,c._firstPT=null,c._addTween=I,c.setRatio=j,c._kill=function(e){var t=this._overwriteProps,n=this._firstPT,r;if(e[this._propName]!=null)this._overwriteProps=[];else{r=t.length;while(--r>-1)e[t[r]]!=null&&t.splice(r,1)}while(n)e[n.n]!=null&&(n._next&&(n._next._prev=n._prev),n._prev?(n._prev._next=n._next,n._prev=null):this._firstPT===n&&(this._firstPT=n._next)),n=n._next;return!1},c._roundProps=function(e,t){var n=this._firstPT;while(n){if(e[this._propName]||n.n!=null&&e[n.n.split(this._propName+"_").join("")])n.r=t;n=n._next}},M._onPluginEvent=function(e,t){var n=t._firstPT,r,i,s,o,u;if(e==="_onInitAllProps"){while(n){u=n._next,i=s;while(i&&i.pr>n.pr)i=i._next;(n._prev=i?i._prev:o)?n._prev._next=n:s=n,(n._next=i)?i._prev=n:o=n,n=u}n=t._firstPT=s}while(n)n.pg&&typeof n.t[e]=="function"&&n.t[e]()&&(r=!0),n=n._next;return r},et.activate=function(e){var t=e.length;while(--t>-1)e[t].API===et.API&&(R[(new e[t])._propName]=e[t]);return!0},m.plugin=function(e){if(!e||!e.propName||!e.init||!e.API)throw"illegal plugin definition.";var t=e.propName,n=e.priority||0,r=e.overwriteProps,i={init:"_onInitTween",set:"setRatio",kill:"_kill",round:"_roundProps",initAll:"_onInitAllProps"},s=g("plugins."+t.charAt(0).toUpperCase()+t.substr(1)+"Plugin",function(){et.call(this,t,n),this._overwriteProps=r||[]},e.global===!0),o=s.prototype=new et(t),u;o.constructor=s,s.API=e.API;for(u in i)typeof e[u]=="function"&&(o[i[u]]=e[u]);return s.version=e.version,et.activate([s]),s},f=e._gsQueue;if(f){for(l=0;l<f.length;l++)f[l]();
1for(c in d)d[c].func||e.console.log("GSAP encountered missing dependency: com.greensock."+c)}p=!1}(typeof module!="undefined"&&module.exports&&typeof global!="undefined"?global:this||window,"TweenLite"),define("TweenLite",function(){});var _gsScope=typeof module!="undefined"&&module.exports&&typeof global!="undefined"?global:this||window;(_gsScope._gsQueue||(_gsScope._gsQueue=[])).push(function(){"use strict";_gsScope._gsDefine("utils.Draggable",["events.EventDispatcher","TweenLite","plugins.CSSPlugin"],function(e,t,n){var r={css:{}},i={css:{}},s={css:{}},o={css:{}},u=_gsScope._gsDefine.globals,a={},f=document,l=f.documentElement||{},c=function(e){return f.createElementNS?f.createElementNS("http://www.w3.org/1999/xhtml",e):f.createElement(e)},h=c("div"),p=[],d=function(){return!1},v=180/Math.PI,m=999999999999999,g=Date.now||function(){return(new Date).getTime()},y=!f.addEventListener&&!!f.all,b=f.createElement("div"),w=[],E={},S=0,x=/^(?:a|input|textarea|button|select)$/i,T=0,N,C,k=navigator.userAgent.toLowerCase().indexOf("android")!==-1,L=0,A={},O={},M={},_=function(e){typeof e=="string"&&(e=t.selector(e));if(!e||e.nodeType)return[e];var n=[],r=e.length,i;for(i=0;i!==r;n.push(e[i++]));return n},D=function(e){var t={},n;for(n in e)t[n]=e[n];return t},P,H=function(){var e=w.length;while(--e>-1)w[e]()},B=function(e){w.push(e),w.length===1&&t.ticker.addEventListener("tick",H,this,!1,1)},j=function(e){var n=w.length;while(--n>-1)w[n]===e&&w.splice(n,1);t.to(F,0,{overwrite:"all",delay:15,onComplete:F})},F=function(){w.length||t.ticker.removeEventListener("tick",H)},I=function(e,t){var n;for(n in t)e[n]===undefined&&(e[n]=t[n]);return e},q=function(){return window.pageYOffset!=null?window.pageYOffset:f.scrollTop!=null?f.scrollTop:l.scrollTop||f.body.scrollTop||0},R=function(){return window.pageXOffset!=null?window.pageXOffset:f.scrollLeft!=null?f.scrollLeft:l.scrollLeft||f.body.scrollLeft||0},U=function(e,t){Dt(e,"scroll",t),W(e.parentNode)||U(e.parentNode,t)},z=function(e,t){Pt(e,"scroll",t),W(e.parentNode)||z(e.parentNode,t)},W=function(e){return!e||e===l||e===f||e===f.body||e===window||!e.nodeType||!e.parentNode},X=function(e,t){var n=t==="x"?"Width":"Height",r="scroll"+n,i="client"+n,s=f.body;return Math.max(0,W(e)?Math.max(l[r],s[r])-(window["inner"+n]||l[i]||s[i]):e[r]-e[i])},V=function(e){var t=W(e),n=X(e,"x"),r=X(e,"y");t?e=M:V(e.parentNode),e._gsMaxScrollX=n,e._gsMaxScrollY=r,e._gsScrollX=e.scrollLeft||0,e._gsScrollY=e.scrollTop||0},$=function(e,t){return e=e||window.event,a.pageX=e.clientX+f.body.scrollLeft+l.scrollLeft,a.pageY=e.clientY+f.body.scrollTop+l.scrollTop,t&&(e.returnValue=!1),a},J=function(e){return e?(typeof e=="string"&&(e=t.selector(e)),e.length&&e!==window&&e[0]&&e[0].style&&!e.nodeType&&(e=e[0]),e===window||e.nodeType&&e.style?e:null):e},K=function(e,t){var n=e.style,r,i,s;if(n[t]===undefined){s=["O","Moz","ms","Ms","Webkit"],i=5,r=t.charAt(0).toUpperCase()+t.substr(1);while(--i>-1&&n[s[i]+r]===undefined);if(i<0)return"";N=i===3?"ms":s[i],t=N+r}return t},Q=function(e,t,n){var r=e.style;if(!r)return;r[t]===undefined&&(t=K(e,t)),n==null?r.removeProperty?r.removeProperty(t.replace(/([A-Z])/g,"-$1").toLowerCase()):r.removeAttribute(t):r[t]!==undefined&&(r[t]=n)},G=f.defaultView?f.defaultView.getComputedStyle:d,Y=/(?:Left|Right|Width)/i,Z=/(?:\d|\-|\+|=|#|\.)*/g,et=function(e,t,n,r,i){if(r==="px"||!r)return n;if(r==="auto"||!n)return 0;var s=Y.test(t),o=e,u=h.style,a=n<0,l;return a&&(n=-n),r==="%"&&t.indexOf("border")!==-1?l=n/100*(s?e.clientWidth:e.clientHeight):(u.cssText="border:0 solid red;position:"+nt(e,"position",!0)+";line-height:0;",r==="%"||!o.appendChild?(o=e.parentNode||f.body,u[s?"width":"height"]=n+r):u[s?"borderLeftWidth":"borderTopWidth"]=n+r,o.appendChild(h),l=parseFloat(h[s?"offsetWidth":"offsetHeight"]),o.removeChild(h),l===0&&!i&&(l=et(e,t,n,r,!0))),a?-l:l},tt=function(e,t){if(nt(e,"position",!0)!=="absolute")return 0;var n=t==="left"?"Left":"Top",r=nt(e,"margin"+n,!0);return e["offset"+n]-(et(e,t,parseFloat(r),(r+"").replace(Z,""))||0)},nt=function(e,t,n){var r=(e._gsTransform||{})[t],i;return r||r===0?r:(e.style[t]?r=e.style[t]:(i=G(e))?(r=i.getPropertyValue(t.replace(/([A-Z])/g,"-$1").toLowerCase()),r=r||i.length?r:i[t]):e.currentStyle&&(r=e.currentStyle[t]),r==="auto"&&(t==="top"||t==="left")&&(r=tt(e,t)),n?r:parseFloat(r)||0)},rt=function(e,t,n){var r=e.vars,i=r[n],s=e._listeners[t];typeof i=="function"&&i.apply(r[n+"Scope"]||r.callbackScope||e,r[n+"Params"]||[e.pointerEvent]),s&&e.dispatchEvent(t)},it=function(e,t){var n=J(e),r,i,s;return n?Lt(n,t):e.left!==undefined?(s=St(t),{left:e.left-s.x,top:e.top-s.y,width:e.width,height:e.height}):(i=e.min||e.minX||e.minRotation||0,r=e.min||e.minY||0,{left:i,top:r,width:(e.max||e.maxX||e.maxRotation||0)-i,height:(e.max||e.maxY||0)-r})},st,ot,ut,at,ft=function(){if(!f.createElementNS){st=0,ot=!1;return}var e=c("div"),t=f.createElementNS("http://www.w3.org/2000/svg","svg"),n=c("div"),r=e.style,i=f.body||l,s,o,u,a;f.body&&ht&&(r.position=n.style.position="absolute",i.appendChild(n),n.appendChild(e),r.he
1ight="10px",a=e.offsetTop,n.style.border="5px solid red",at=a!==e.offsetTop,i.removeChild(n)),r=t.style,t.setAttributeNS(null,"width","400px"),t.setAttributeNS(null,"height","400px"),t.setAttributeNS(null,"viewBox","0 0 400 400"),r.display="block",r.boxSizing="border-box",r.border="0px solid red",r.transform="none",e.style.cssText="width:100px;height:100px;overflow:scroll;-ms-overflow-style:none;",i.appendChild(e),e.appendChild(t),u=t.createSVGPoint().matrixTransform(t.getScreenCTM()),o=u.y,e.scrollTop=100,u.x=u.y=0,u=u.matrixTransform(t.getScreenCTM()),ut=o-u.y<100.1?0:o-u.y-150,e.removeChild(t),i.removeChild(e),i.appendChild(t),s=t.getScreenCTM(),o=s.e,r.border="50px solid red",s=t.getScreenCTM(),o===0&&s.e===0&&s.f===0&&s.a===1?(st=1,ot=!0):(st=o!==s.e?1:0,ot=s.a!==1),i.removeChild(t)},lt=K(h,"perspective")!=="",ct=K(h,"transformOrigin").replace(/^ms/g,"Ms").replace(/([A-Z])/g,"-$1").toLowerCase(),ht=K(h,"transform"),pt=ht.replace(/^ms/g,"Ms").replace(/([A-Z])/g,"-$1").toLowerCase(),dt={},vt={},mt=window.SVGElement,gt=function(e){return!!(mt&&typeof e.getBBox=="function"&&e.getCTM&&(!e.parentNode||e.parentNode.getBBox&&e.parentNode.getCTM))},yt=(/MSIE ([0-9]{1,}[\.0-9]{0,})/.exec(navigator.userAgent)||/Trident\/.*rv:([0-9]{1,}[\.0-9]{0,})/.exec(navigator.userAgent))&&parseFloat(RegExp.$1)<11,bt=[],wt=[],Et=function(e){if(!e.getBoundingClientRect||!e.parentNode||!ht)return{offsetTop:0,offsetLeft:0,scaleX:1,scaleY:1,offsetParent:l};if(Wt.cacheSVGData!==!1&&e._gsCache&&e._gsCache.lastUpdate===t.ticker.frame)return e._gsCache;var n=e,r=xt(e),i,s,o,u,a,c,h,p,d,v,m,g;r.lastUpdate=t.ticker.frame;if(e.getBBox&&!r.isSVGRoot){n=e.parentNode,i=e.getBBox();while(n&&(n.nodeName+"").toLowerCase()!=="svg")n=n.parentNode;return u=Et(n),r.offsetTop=i.y*u.scaleY,r.offsetLeft=i.x*u.scaleX,r.scaleX=u.scaleX,r.scaleY=u.scaleY,r.offsetParent=n||l,r}o=r.offsetParent,o===f.body&&(o=l),wt.length=bt.length=0;while(n){a=nt(n,ht,!0),a!=="matrix(1, 0, 0, 1, 0, 0)"&&a!=="none"&&a!=="translate3d(0px, 0px, 0px)"&&(wt.push(n),bt.push(n.style[ht]),n.style[ht]="none");if(n===o)break;n=n.parentNode}s=o.getBoundingClientRect(),a=e.getScreenCTM(),p=e.createSVGPoint(),h=p.matrixTransform(a),p.x=p.y=10,p=p.matrixTransform(a),r.scaleX=(p.x-h.x)/10,r.scaleY=(p.y-h.y)/10,st===undefined&&ft(),r.borderBox&&!ot&&e.getAttribute("width")&&(u=G(e)||{},d=parseFloat(u.borderLeftWidth)+parseFloat(u.borderRightWidth)||0,v=parseFloat(u.borderTopWidth)+parseFloat(u.borderBottomWidth)||0,m=parseFloat(u.width)||0,g=parseFloat(u.height)||0,r.scaleX*=(m-d)/m,r.scaleY*=(g-v)/g),ut?(i=e.getBoundingClientRect(),r.offsetLeft=i.left-s.left,r.offsetTop=i.top-s.top):(r.offsetLeft=h.x-s.left,r.offsetTop=h.y-s.top),r.offsetParent=o,c=wt.length;while(--c>-1)wt[c].style[ht]=bt[c];return r}
1,St=function(e,n){n=n||{};if(!e||e===l||!e.parentNode||e===window)return{x:0,y:0};var r=G(e),i=ct&&r?r.getPropertyValue(ct):"50% 50%",s=i.split(" "),o=i.indexOf("left")!==-1?"0%":i.indexOf("right")!==-1?"100%":s[0],u=i.indexOf("top")!==-1?"0%":i.indexOf("bottom")!==-1?"100%":s[1];if(u==="center"||u==null)u="50%";if(o==="center"||isNaN(parseFloat(o)))o="50%";return e.getBBox&&gt(e)?(e._gsTransform||(t.set(e,{x:"+=0",overwrite:!1}),e._gsTransform.xOrigin===undefined&&console.log("Draggable requires at least GSAP 1.17.0")),i=e.getBBox(),n.x=e._gsTransform.xOrigin-i.x,n.y=e._gsTransform.yOrigin-i.y):(e.getBBox&&!e.offsetWidth&&(o+u).indexOf("%")!==-1&&(e=e.getBBox(),e={offsetWidth:e.width,offsetHeight:e.height}),n.x=o.indexOf("%")!==-1?e.offsetWidth*parseFloat(o)/100:parseFloat(o),n.y=u.indexOf("%")!==-1?e.offsetHeight*parseFloat(u)/100:parseFloat(u)),n},xt=function(e){if(Wt.cacheSVGData!==!1&&e._gsCache&&e._gsCache.lastUpdate===t.ticker.frame)return e._gsCache;var n=e._gsCache=e._gsCache||{},r=G(e),i=e.getBBox&&gt(e),s=(e.nodeName+"").toLowerCase()==="svg",o;n.isSVG=i,n.isSVGRoot=s,n.borderBox=r.boxSizing==="border-box",n.computedStyle=r;if(s)(n.offsetParent=e.offsetParent)||(o=e.parentNode||l,o.insertBefore(h,e),n.offsetParent=h.offsetParent||l,o.removeChild(h));else if(i){o=e.parentNode;while(o&&(o.nodeName+"").toLowerCase()!=="svg")o=o.parentNode;n.offsetParent=o}return n},Tt=function(e,t,n,r){if(e===window||!e||!e.style||!e.parentNode)return[1,0,0,1,0,0];var i=e._gsCache||xt(e),s=e.parentNode,o=s._gsCache||xt(s),u=i.computedStyle,a=i.isSVG?o.offsetParent:s.offsetParent,c,h,p,d,v,m,g,y,b,w,E,S,x,T;return c=i.isSVG&&(e.style[ht]+"").indexOf("matrix")!==-1?e.style[ht]:u?u.getPropertyValue(pt):e.currentStyle?e.currentStyle[ht]:"1,0,0,1,0,0",e.getBBox&&(e.getAttribute("transform")+"").indexOf("matrix")!==-1&&(c=e.getAttribute("transform")),c=(c+"").match(/(?:\-|\b)[\d\-\.e]+\b/g)||[1,0,0,1,0,0],c.length>6&&(c=[c[0],c[1],c[4],c[5],c[12],c[13]]),r?c[4]=c[5]=0:i.isSVG&&(v=e._gsTransform)&&(v.xOrigin||v.yOrigin)&&(c[0]=parseFloat(c[0]),c[1]=parseFloat(c[1]),c[2]=parseFloat(c[2]),c[3]=parseFloat(c[3]),c[4]=parseFloat(c[4])-(v.xOrigin-(v.xOrigin*c[0]+v.yOrigin*c[2])),c[5]=parseFloat(c[5])-(v.yOrigin-(v.xOrigin*c[1]+v.yOrigin*c[3]))),t&&(st===undefined&&ft(),p=i.isSVG||i.isSVGRoot?Et(e):e,i.isSVG?(d=e.getBBox(),w=o.isSVGRoot?{x:0,y:0}:s.getBBox(),p={offsetLeft:d.x-w.x,offsetTop:d.y-w.y,offsetParent:i.offsetParent}):i.isSVGRoot?(E=parseInt(u.borderTopWidth,10)||0,S=parseInt(u.borderLeftWidth,10)||0,x=(c[0]-st)*S+c[2]*E,T=c[1]*S+(c[3]-st)*E,m=t.x,g=t.y,y=m-(m*c[0]+g*c[2]),b=g-(m*c[1]+g*c[3]),c[4]=parseFloat(c[4])+y,c[5]=parseFloat(c[5])+b,t.x-=y,t.y-=b,m=p.scaleX,g=p.scaleY,t.x*=m,t.y*=g,c[0]*=m,c[1]*=g,c[2]*=m,c[3]*=g,yt||(t.x+=x,t.y+=T)):!at&&e.offsetParent&&(t.x+=parseInt(nt(e.offsetParent,"borderLeftWidth"),10)||0,t.y+=parseInt(nt(e.offsetParent,"borderTopWidth"),10)||0),h=s===l||s===f.body,c[4]=Number(c[4])+t.x+(p.offsetLeft||0)-n.x-(h?0:s.scrollLeft||0),c[5]=Number(c[5])+t.y+(p.offsetTop||0)-n.y-(h?0:s.scrollTop||0),s&&nt(e,"position",u)==="fixed"&&(c[4]+=R(),c[5]+=q()),s&&s!==l&&a===p.offsetParent&&(c[4]-=s.offsetLeft||0,c[5]-=s.offsetTop||0,!at&&s.offsetParent&&!i.isSVG&&!i.isSVGRoot&&(c[4]-=parseInt(nt(s.offsetParent,"borderLeftWidth"),10)||0,c[5]-=parseInt(nt(s.offsetParent,"borderTopWidth"),10)||0))),c},Nt=function(e,t){if(!e||e===window||!e.parentNode)return[1,0,0,1,0,0];var n=St(e,dt),r=St(e.parentNode,vt),i=Tt(e,n,r),s,o,u,a,f,c,h,p;while((e=e.parentNode)&&e.parentNode&&e!==l)n=r,r=St(e.parentNode,n===dt?vt:dt),h=Tt(e,n,r),s=i[0],o=i[1],u=i[2],a=i[3],f=i[4],c=i[5],i[0]=s*h[0]+o*h[2],i[1]=s*h[1]+o*h[3],i[2]=u*h[0]+a*h[2],i[3]=u*h[1]+a*h[3],i[4]=f*h[0]+c*h[2]+h[4],i[5]=f*h[1]+c*h[3]+h[5];return t&&(s=i[0],o=i[1],u=i[2],a=i[3],f=i[4],c=i[5],p=s*a-o*u,i[0]=a/p,i[1]=-o/p,i[2]=-u/p,i[3]=s/p,i[4]=(u*c-a*f)/p,i[5]=-(s*c-o*f)/p),i},Ct=function(e,t,n,r,i){e=J(e);var s=Nt(e,!1,i),o=t.x,u=t.y;return n&&(St(e,t),o-=t.x,u-=t.y),r=r===!0?t:r||{},r.x=o*s[0]+u*s[2]+s[4],r.y=o*s[1]+u*s[3]+s[5],r},kt=function(e,t,n){var r=e.x*t[0]+e.y*t[2]+t[4],i=e.x*t[1]+e.y*t[3]+t[5];return e.x=r*n[0]+i*n[2]+n[4],e.y=r*n[1]+i*n[3]+n[5],e},Lt=function(e,t,n){if(!(e=J(e)))return null;t=J(t);var r=e.getBBox&&gt(e),i,s,o,u,a,c,h,p,d,v,m,g,b,w,E,S,x,T,N,C,k,L;if(e===window)u=q(),s=R(),o=s+(l.clientWidth||e.innerWidth||f.body.clientWidth||0),a=u+((e.innerHe
1ight||0)-20<l.clientHeight?l.clientHeight:e.innerHeight||f.body.clientHeight||0);else{if(t===undefined||t===window)return e.getBoundingClientRect();i=St(e),s=-i.x,u=-i.y,r?(g=e.getBBox(),b=g.width,w=g.height):e.offsetWidth?(b=e.offsetWidth,w=e.offsetHeight):(k=G(e),b=parseFloat(k.width),w=parseFloat(k.height)),o=s+b,a=u+w,e.nodeName.toLowerCase()==="svg"&&!y&&(E=Et(e),L=E.computedStyle||{},T=(e.getAttribute("viewBox")||"0 0").split(" "),N=parseFloat(T[0]),C=parseFloat(T[1]),S=parseFloat(L.borderLeftWidth)||0,x=parseFloat(L.borderTopWidth)||0,o-=b-(b-S)/E.scaleX-N,a-=w-(w-x)/E.scaleY-C,s-=S/E.scaleX-N,u-=x/E.scaleY-C,k&&(o+=(parseFloat(L.borderRightWidth)+S)/E.scaleX,a+=(x+parseFloat(L.borderBottomWidth))/E.scaleY))}return e===t?{left:s,top:u,width:o-s,height:a-u}:(c=Nt(e),h=Nt(t,!0),p=kt({x:s,y:u},c,h),d=kt({x:o,y:u},c,h),v=kt({x:o,y:a},c,h),m=kt({x:s,y:a},c,h),s=Math.min(p.x,d.x,v.x,m.x),u=Math.min(p.y,d.y,v.y,m.y),A.x=A.y=0,n&&St(t,A),{left:s+A.x,top:u+A.y,width:Math.max(p.x,d.x,v.x,m.x)-s,height:Math.max(p.y,d.y,v.y,m.y)-u})},At=function(e){return e&&e.length&&e[0]&&(e[0].nodeType&&e[0].style&&!e.nodeType||e[0].length&&e[0][0])?!0:!1},Ot=function(e){var t=[],n=e.length,r,i,s;for(r=0;r<n;r++){i=e[r];if(At(i)){s=i.length;for(s=0;s<i.length;s++)t.push(i[s])}else i&&i.length!==0&&t.push(i)}return t},Mt="ontouchstart"in l&&"orientation"in window,_t=function(e){var t=e.split(","),n=(h.onpointerdown!==undefined?"pointerdown,pointermove,pointerup,pointercancel":h.onmspointerdown!==undefined?"MSPointerDown,MSPointerMove,MSPointerUp,MSPointerCancel":e).split(","),r={},i=8;while(--i>-1)r[t[i]]=n[i],r[n[i]]=t[i];return r}("touchstart,touchmove,touchend,touchcancel"),Dt=function(e,t,n,r){e.addEventListener?e.addEventListener(_t[t]||t,n,r):e.attachEvent&&e.attachEvent("on"+t,n)},Pt=function(e,t,n){e.removeEventListener?e.removeEventListener(_t[t]||t,n):e.detachEvent&&e.detachEvent("on"+t,n)},Ht=function(e,t){var n=e.length;while(--n>-1)if(e[n].identifier===t)return!0;return!1},Bt=function(e){C=e.touches&&T<e.touches.length,Pt(e.target,"touchend",Bt)},jt=function(e){C=e.touches&&T<e.touches.length,Dt(e.target,"touchend",Bt)},Ft=function(e,t,n,r,i,s){var o={},u,a,f;if(t)if(i!==1&&t instanceof Array){o.end=u=[],f=t.length;for(a=0;a<f;a++)u[a]=t[a]*i;n+=1.1,r-=1.1}else typeof t=="function"?o.end=function(n){return t.call(e,n)*i}:o.end=t;if(n||n===0)o.max=n;if(r||r===0)o.min=r;return s&&(o.velocity=0),o},It=function(e){var t;return!e||!e.getAttribute||e.nodeName==="BODY"?!1:(t=e.getAttribute("data-clickable"))==="true"||t!=="false"&&(e.onclick||x.test(e.nodeName+"")||e.getAttribute("contentEditable")==="true")?!0:It(e.parentNode)},qt=function(e,t){var n=e.length,r;while(--n>-1)r=e[n],r.ondragstart=r.onselectstart=t?null:d,Q(r,"userSelect",t?"text":"none")},Rt,Ut=function(){var e=f.createElement("div"),t=f.createElement("div"),n=t.style,r=f.body||h,i;return n.display="inline-block",n.position="relative",e.style.cssText=t.innerHTML="width:90px; height:40px; padding:10px; overflow:auto; visibility: hidden",e.appendChild(t),r.appendChild(e),Rt=t.offsetHeight+18>e.scrollHeight,n.width="100%",ht||(n.paddingRight="500px",i=e.scrollLeft=e.scrollWidth-e.clientWidth,n.left="-90px",i=i!==e.scrollLeft),r.removeChild(e),i}(),zt=function(e,n){e=J(e),n=n||{};var r=f.createElement("div"),i=r.style,s=e.firstChild,o=0,u=0,a=e.scrollTop,l=e.scrollLeft,c=e.scrollWidth,h=e.scrollHeight,p=0,d=0,v=0,m,g,b,w,E,S;lt&&n.force3D!==!1?(E="translate3d(",S="px,0px)"):ht&&(E="translate(",S="px)"),this.scrollTop=function(e,t){if(!arguments.length)return-this.top();this.top(-e,t)},this.scrollLeft=function(e,t){if(!arguments.length)return-this.left();this.left(-e,t)},this.left=function(r,s){if(!arguments.length)return-(e.scrollLeft+u);var a=e.scrollLeft-l,f=u;if((a>2||a<-2)&&!s){l=e.scrollLeft,t.killTweensOf(this,!0,{left:1,scrollLeft:1}),this.left(-l),n.onKill&&n.onKill();return}r=-r,r<0?(u=r-.5|0,r=0):r>d?(u=r-d|0,r=d):u=0;if(u||f)E?this._suspendTransforms||(i[ht]=E+ -u+"px,"+ -o+S):i.left=-u+"px",Ut&&u+p>=0&&(i.paddingRight=u+p+"px");e.scrollLeft=r|0,l=e.scrollLeft},this.top=function(r,s){if(!arguments.length)return-(e.scrollTop+o);var f=e.scrollTop-a,l=o;if((f>2||f<-2)&&!s){a=e.scrollTop,t.killTweensOf(this,!0,{top:1,scrollTop:1}),this.top(-a),n.onKill&&n.onKill();return}r=-r,r<0?(o=r-.5|0,r=0):r>v?(o=r-v|0,r=v):o=0;if(o||l)E?this._suspendTransforms||(i[ht]=E+ -u+"px,"+ -o+S):i.top=-o+"px";e.scrollTop=r|0,a=e.scrollTop},this.maxScrollTop=function(){return v},this.maxScrollLeft=function(){return d},this.disable=function(){s=r.firstChild;while(s)w=s.nextSibling,e.appendChild(s),s=w;e===r.parentNode&&e.removeChild(r)},this.enable=function(){s=e.firstChild;if(s===r)return;while(s)w=s.nextSibling,r.appendChild(s),s=w;e.appendChild(r),this.calibrate()},this.calibrate=function(t){var n=e.clientWidth===m,s,f;a=e.scrollTop,l=e.scrollLeft;if(n&&e.clientHeight===g&&r.offsetHeight===b&&c===e.scrollWidth&&h===e.scrollHeight&&!t)return;if(o||u)s=this.left(),f=this.top(),this.left(-e.scrollLeft),this.top(-e.scrollTop);if(!n||t)i.display="block",i.width="auto",i.paddingRight="0px",p=Math.max(0,e.scrollWidth-e.clientWidth),p&&(p+=nt(e,"paddingLeft")+(Rt?nt(e,"paddingRight"):0));i.display="inline-block",i.position="relative",i.overflow="visible",i.verticalAlign="top",i.width="100%",i.paddingRight=p+"px",Rt&&(i.paddingBottom=nt(e,"paddingBottom",!0)),y&&(i.zoom="1"),m=e.clientWidth,g=e.clientHeight,c=e.scrollWidth,h=e.scrollHeight,d=e.scrollWidth-m,v=e.scrollHeight-g,b=r.offsetHeight,i.display="block";if(s||f)this.left(s),this.top(f)},this.content=r,this.element=e,this._suspendTransforms=!1,this.enable()}
1,Wt=function(a,c){e.call(this,a),a=J(a),P||(P=u.com.greensock.plugins.ThrowPropsPlugin),this.vars=c=D(c||{}),this.target=a,this.x=this.y=this.rotation=0,this.dragResistance=parseFloat(c.dragResistance)||0,this.edgeResistance=isNaN(c.edgeResistance)?1:parseFloat(c.edgeResistance)||0,this.lockAxis=c.lockAxis,this.autoScroll=c.autoScroll||0,this.lockedAxis=null,this.allowEventDefault=!!c.allowEventDefault;var h=(c.type||(y?"top,left":"x,y")).toLowerCase(),d=h.indexOf("x")!==-1||h.indexOf("y")!==-1,w=h.indexOf("rotation")!==-1,x=w?"rotation":d?"x":"left",N=d?"y":"top",A=h.indexOf("x")!==-1||h.indexOf("left")!==-1||h==="scroll",O=h.indexOf("y")!==-1||h.indexOf("top")!==-1||h==="scroll",H=c.minimumMovement||2,F=this,q=_(c.trigger||c.handle||a),R={},X=0,K=!1,G=c.clickableTest||It,Y,Z,et,tt,st,ot,ut,at,ft,lt,ct,ht,pt,dt,vt,mt,gt,yt,bt,wt,Et,St,xt,Tt,kt,Lt,At,Ot,Bt,Rt,Ut,Xt,Vt,$t=function(e){if(F.autoScroll&&(K||F.isDragging&&yt)){var t=a,n=F.autoScroll*15,r,i,s,o,u,c,h,p;K=!1,M.scrollTop=window.pageYOffset!=null?window.pageYOffset:l.scrollTop!=null?l.scrollTop:f.body.scrollTop,M.scrollLeft=window.pageXOffset!=null?window.pageXOffset:l.scrollLeft!=null?l.scrollLeft:f.body.scrollLeft,o=F.pointerX-M.scrollLeft,u=F.pointerY-M.scrollTop;while(t&&!i)i=W(t.parentNode),r=i?M:t.parentNode,s=i?{bottom:Math.max(l.clientHeight,window.innerHeight||0),right:Math.max(l.clientWidth,window.innerWidth||0),left:0,top:0}:r.getBoundingClientRect(),c=h=0,O&&(p=r._gsMaxScrollY-r.scrollTop,p<0?h=p:u>s.bottom-40&&p?(K=!0,h=Math.min(p,n*(1-Math.max(0,s.bottom-u)/40)|0)):u<s.top+40&&r.scrollTop&&(K=!0,h=-Math.min(r.scrollTop,n*(1-Math.max(0,u-s.top)/40)|0)),h&&(r.scrollTop+=h)),A&&(p=r._gsMaxScrollX-r.scrollLeft,p<0?c=p:o>s.right-40&&p?(K=!0,c=Math.min(p,n*(1-Math.max(0,s.right-o)/40)|0)):o<s.left+40&&r.scrollLeft&&(K=!0,c=-Math.min(r.scrollLeft,n*(1-Math.max(0,o-s.left)/40)|0)),c&&(r.scrollLeft+=c)),i&&(c||h)&&(window.scrollTo(r.scrollLeft,r.scrollTop),un(F.pointerX+c,F.pointerY+h)),t=r}if(yt){var v=F.x,m=F.y,g=1e-6;v<g&&v>-g&&(v=0),m<g&&m>-g&&(m=0),w?(Bt.data.rotation=F.rotation=v,Bt.setRatio(1)):Z?(O&&Z.top(m),A&&Z.left(v)):d?(O&&(Bt.data.y=m),A&&(Bt.data.x=v),Bt.setRatio(1)):(O&&(a.style.top=m+"px"),A&&(a.style.left=v+"px")),at&&!e&&!Xt&&(Xt=!0,rt(F,"drag","onDrag"),Xt=!1)}yt=!1},Kt=function(e,n){var r=F.x,i=F.y,s;!a._gsTransform&&(d||w)&&t.set(a,{x:"+=0",overwrite:!1}),d?(F.y=a._gsTransform.y,F.x=a._gsTransform.x):w?F.x=F.rotation=a._gsTransform.rotation:Z?(F.y=Z.top(),F.x=Z.left()):(F.y=parseInt(a.style.top,10)||0,F.x=parseInt(a.style.left,10)||0),(wt||Et)&&!n&&(wt&&(s=wt(F.x),s!==F.x&&(F.x=s,w&&(F.rotation=s))),Et&&(s=Et(F.y),s!==F.y&&(F.y=s))),(r!==F.x||i!==F.y)&&$t(!0),e||rt(F,"throwupdate","onThrowUpdate")},Qt=function(){var e,t,n,r;ut=!1,Z?(Z.calibrate(),F.minX=lt=-Z.maxScrollLeft(),F.minY=ht=-Z.maxScrollTop(),F.maxX=ft=F.maxY=ct=0,ut=!0):!c.bounds||(e=it(c.bounds,a.parentNode),w?(F.minX=lt=e.left,F.maxX=ft=e.left+e.width,F.minY=ht=F.maxY=ct=0):c.bounds.maxX!==undefined||c.bounds.maxY!==undefined?(e=c.bounds,F.minX=lt=e.minX,F.minY=ht=e.minY,F.maxX=ft=e.maxX,F.maxY=ct=e.maxY):(t=it(a,a.parentNode),F.minX=lt=nt(a,x)+e.left-t.left,F.minY=ht=nt(a,N)+e.top-t.top,F.maxX=ft=lt+(e.width-t.width),F.maxY=ct=ht+(e.height-t.height)),lt>ft&&(F.minX=ft,F.maxX=ft=lt,lt=F.minX),ht>ct&&(F.minY=ct,F.maxY=ct=ht,ht=F.minY),w&&(F.minRotation=lt,F.maxRotation=ft),ut=!0),c.liveSnap&&(n=c.liveSnap===!0?c.snap||{}:c.liveSnap,r=n instanceof Array||typeof n=="function",w?(wt=rn(r?n:n.rotation,lt,ft,1),Et=null):(A&&(wt=rn(r?n:n.x||n.left||n.scrollLeft,lt,ft,Z?-1:1)),O&&(Et=rn(r?n:n.y||n.top||n.scrollTop,ht,ct,Z?-1:1))))},Gt=function(){F.isThrowing=!1,rt(F,"throwcomplete","onThrowComplete")},Yt=function(){F.isThrowing=!1},Zt=function(e,t){var n,r,i,s;e&&P?(e===!0&&(n=c.snap||{},r=n instanceof Array||typeof n=="function",e={resistance:(c.throwResistance||c.resistance||1e3)/(w?10:1)},w?e.rotation=Ft(F,r?n:n.rotation,ft,lt,1,t):(A&&(e[x]=Ft(F,r?n:n.x||n.left||n.scrollLeft,ft,lt,Z?-1:1,t||F.lockedAxis==="x")),O&&(e[N]=Ft(F,r?n:n.y||n.top||n.scrollTop,ct,ht,Z?-1:1,t||F.lockedAxis==="y")))),F.isThrowing=!0,s=isNaN(c.overshootTolerance)?c.edgeResistance===1?0:1-F.edgeResistance+.2:c.overshootTolerance,F.tween=i=P.to(Z||a,{throwProps:e,ease:c.ease||u.Power3.easeOut,onComplete:Gt,onOverwrite:Yt,onUpdate:c.fastMode?rt:Kt,onUpdateParams:c.fastMode?[F,"onthrowupdate","onThrowUpdate"]:p},isNaN(c.maxDuration)?2:c.maxDuration,isNaN(c.minDuration)?s===0?0:.5:c.minDuration,s),c.fastMode||(Z&&(Z._suspendTransforms=!0),i.render(i.duration(),!0,!0),Kt(!0,!0),F.endX=F.x,F.endY=F.y,w&&(F.endRotation=F.x),i.play(0),Kt(!0,!0),Z&&(Z._suspendTransforms=!1))):ut&&F.applyBounds()},en=function(){var e=Tt||[1,0,0,1,0,0],t,n,r,i,s,o,u,f,l;Tt=Nt(a.parentNode,!0),F.isPressed&&e.join(",")!==Tt.join(",")&&(t=e[0],n=e[1],r=e[2],i=e[3],s=e[4],o=e[5],u=t*i-n*r,f=et*(i/u)+tt*(-r/u)+(r*o-i*s)/u,l=et*(-n/u)+tt*(t/u)+ -(t*o-n*s)/u,tt=f*Tt[1]+l*Tt[3]+Tt[5],et=f*Tt[0]+l*Tt[2]+Tt[4]),!Tt[1]&&!Tt[2]&&Tt[0]==1&&Tt[3]==1&&Tt[4]==0&&Tt[5]==0&&(Tt=null)},tn=function(){var e=1-F.edgeResistance;en(),Z?(Qt(),ot=Z.top(),st=Z.left()):(nn()?(Kt(!0,!0),Qt()):F.applyBounds(),w?(gt=Ct(a,{x:0,y:0}),Kt(!0,!0),st=F.x,ot=F.y=Math.atan2(gt.y-tt,et-gt.x)*v):(At=a.parentNode?a.parentNode.scrollTop||0:0,Ot=a.parentNode?a.parentNode.scrollLeft||0:0,ot=nt(a,N),st=nt(a,x))),ut&&e&&(st>ft?st=ft+(st-ft)/e:st<lt&&(st=lt-(lt-st)/e),w||(ot>ct?ot=ct+(ot-ct)/e:ot<ht&&(ot=ht-(ht-ot)/e)))},nn=function(){return F.tween&&F.tween.isActive()},rn=function(e,t,n,r){return typeof e=="function"?function(i){var s=F.isPressed?1-F.edgeResistance:1;return e.call(F,i>n?n+(i-n)*s:i<t?t+(i-t)*s:i)*r}:e instanceof Array?function(r){var i=e.length,s=0,o=m,u,a;while(--i>-1)u=e[i],a=u-r,a<0&&(a=-a),a<o&&u>=t&&u<=n&&(s=i,o=a);return e[s]}:isNaN(e)?function(e){return e}:function(){return e*r}},sn=function(e){var n,r;if(!Y||F.isPressed||!e||e.type==="mousedown"&&g()-Lt<30&&_t[F.pointerEvent.type])return;kt=nn(),F.pointerEvent=e,_t[e.type]?(xt=e.type.indexOf("touch")!==-1?e.currentTarget||e.target:f,Dt(xt,"touchend",an),Dt(xt,"touchmove",on),Dt(xt,"touchcancel",an),Dt(f,"touchstart",jt)):(xt=null,Dt(f,"mousemove",on)),Ut=null,Dt(f,"mouseup",an),e&&e.target&&Dt(e.target,"mouseup",an),St=G.call(F,e.target)&&!c.dragClickables;if(St){Dt(e.target,"change",an),rt(F,"press","onPress"),qt(q,!0);return}Rt=!xt||A===O||Z||F.vars.allowNativeTouchScrolling===!1?!1:A?"y":"x",y?e=$(e,!0):!Rt&&!F.allowEventDefault&&(e.preventDefault(),e.preventManipulation&&e.preventManipulation()),e.changedTouches?(e=vt=e.changedTouches[0],mt=e.identifier):e.pointerId?mt=e.pointerId:vt=mt
1=null,T++,B($t),tt=F.pointerY=e.pageY,et=F.pointerX=e.pageX,(Rt||F.autoScroll)&&V(a.parentNode),F.autoScroll&&!w&&!Z&&a.parentNode&&!a.getBBox&&a.parentNode._gsMaxScrollX&&!b.parentNode&&(b.style.width=a.parentNode.scrollWidth+"px",a.parentNode.appendChild(b)),tn(),Tt&&(n=et*Tt[0]+tt*Tt[2]+Tt[4],tt=et*Tt[1]+tt*Tt[3]+Tt[5],et=n),F.tween&&F.tween.kill(),F.isThrowing=!1,t.killTweensOf(Z||a,!0,R),Z&&t.killTweensOf(a,!0,{scrollTo:1}),F.tween=F.lockedAxis=null;if(c.zIndexBoost||!w&&!Z&&c.zIndexBoost!==!1)a.style.zIndex=Wt.zIndex++;F.isPressed=!0,at=!!c.onDrag||!!F._listeners.drag;if(!w){r=q.length;while(--r>-1)Q(q[r],"cursor",c.cursor||"move")}rt(F,"press","onPress")},on=function(e){var t=e,n,r,i,s;if(!Y||C||!F.isPressed||!e)return;F.pointerEvent=e,n=e.changedTouches;if(n){e=n[0];if(e!==vt&&e.identifier!==mt){s=n.length;while(--s>-1&&(e=n[s]).identifier!==mt);if(s<0)return}}else if(e.pointerId&&mt&&e.pointerId!==mt)return;if(y)e=$(e,!0);else{if(xt&&Rt&&!Ut){r=e.pageX,i=e.pageY,Tt&&(s=r*Tt[0]+i*Tt[2]+Tt[4],i=r*Tt[1]+i*Tt[3]+Tt[5],r=s),Ut=Math.abs(r-et)>Math.abs(i-tt)&&A?"x":"y",F.vars.lockAxisOnTouchScroll!==!1&&(F.lockedAxis=Ut==="x"?"y":"x",typeof F.vars.onLockAxis=="function"&&F.vars.onLockAxis.call(F,t));if(k&&Rt===Ut){an(t);return}}!F.allowEventDefault&&(!Rt||Ut&&Rt!==Ut)&&t.cancelable!==!1&&(t.preventDefault(),t.preventManipulation&&t.preventManipulation())}F.autoScroll&&(K=!0),un(e.pageX,e.pageY)},un=function(e,t){var n=1-F.dragResistance,r=1-F.edgeResistance,i,s,o,u,a,f;F.pointerX=e,F.pointerY=t,w?(u=Math.atan2(gt.y-t,e-gt.x)*v,a=F.y-u,F.y=u,a>180?ot-=360:a<-180&&(ot+=360),o=st+(ot-u)*n):(Tt&&(f=e*Tt[0]+t*Tt[2]+Tt[4],t=e*Tt[1]+t*Tt[3]+Tt[5],e=f),s=t-tt,i=e-et,s<H&&s>-H&&(s=0),i<H&&i>-H&&(i=0),(F.lockAxis||F.lockedAxis)&&(i||s)&&(f=F.lockedAxis,f||(F.lockedAxis=f=A&&Math.abs(i)>Math.abs(s)?"y":O?"x":null,f&&typeof F.vars.onLockAxis=="function"&&F.vars.onLockAxis.call(F,F.pointerEvent)),f==="y"?s=0:f==="x"&&(i=0)),o=st+i*n,u=ot+s*n),wt||Et?(wt&&(o=wt(o)),Et&&(u=Et(u))):ut&&(o>ft?o=ft+(o-ft)*r:o<lt&&(o=lt+(o-lt)*r),w||(u>ct?u=ct+(u-ct)*r:u<ht&&(u=ht+(u-ht)*r))),w||(o=Math.round(o),u=Math.round(u));if(F.x!==o||F.y!==u&&!w)w?F.endRotation=F.x=F.endX=o:(O&&(F.y=F.endY=u),A&&(F.x=F.endX=o)),yt=!0,!F.isDragging&&F.isPressed&&(F.isDragging=!0,rt(F,"dragstart","onDragStart"))},an=function(e,n){if(!Y||!F.isPressed||e&&mt!=null&&!n&&(e.pointerId&&e.pointerId!==mt||e.changedTouches&&!Ht(e.changedTouches,mt)))return;F.isPressed=!1;var r=e,i=F.isDragging,s,o,u,l;xt?(Pt(xt,"touchend",an),Pt(xt,"touchmove",on),Pt(xt,"touchcancel",an),Pt(f,"touchstart",jt)):Pt(f,"mousemove",on),Pt(f,"mouseup",an),e&&e.target&&Pt(e.target,"mouseup",an),yt=!1,b.parentNode&&b.parentNode.removeChild(b);if(St){e&&Pt(e.target,"change",an),qt(q,!1),rt(F,"release","onRelease"),rt(F,"click","onClick"),St=!1;return}j($t);if(!w){o=q.length;while(--o>-1)Q(q[o],"cursor",c.cursor||"move")}i&&(X=L=g(),F.isDragging=!1),T--;if(e){y&&(e=$(e,!1)),s=e.changedTouches;if(s){e=s[0];if(e!==vt&&e.identifier!==mt){o=s.length;while(--o>-1&&(e=s[o]).identifier!==mt);if(o<0)return}}F.pointerEvent=r,F.pointerX=e.pageX,F.pointerY=e.pageY}if(r&&!i){kt&&(c.snap||c.bounds)&&Zt(c.throwProps),rt(F,"release","onRelease");if(!k||r.type!=="touchmove")rt(F,"click","onClick"),l=r.target||r.srcElement||a,Lt=g(),t.delayedCall(1e-5,function(){Lt!==Vt&&F.enabled()&&!F.isPressed&&(l.click?l.click():f.createEvent&&(u=f.createEvent("MouseEvents"),u.initMouseEvent("click",!0,!0,window,1,F.pointerEvent.screenX,F.pointerEvent.screenY,F.pointerX,F.pointerY,!1,!1,!1,!1,0,null),l.dispatchEvent(u)))})}else Zt(c.throwProps),!y&&!F.allowEventDefault&&r&&(c.dragClickables||
1!G.call(F,r.target))&&i&&(!Rt||Ut&&Rt===Ut)&&r.cancelable!==!1&&(r.preventDefault(),r.preventManipulation&&r.preventManipulation()),rt(F,"release","onRelease");return i&&rt(F,"dragend","onDragEnd"),!0},fn=function(e){if(e&&F.isDragging){var t=e.target||e.srcElement||a.parentNode,n=t.scrollLeft-t._gsScrollX,r=t.scrollTop-t._gsScrollY;if(n||r)et-=n,tt-=r,t._gsScrollX+=n,t._gsScrollY+=r,un(F.pointerX,F.pointerY)}},ln=function(e){var t=g(),n=t-Lt<40,r=t-X<40;if(n&&Vt!==Lt){Vt=Lt;return}if(F.isPressed||r||n)e.preventDefault?(e.preventDefault(),(n||r&&F.vars.suppressClickOnDrag!==!1)&&e.stopImmediatePropagation()):e.returnValue=!1,e.preventManipulation&&e.preventManipulation()};bt=Wt.get(this.target),bt&&bt.kill(),this.startDrag=function(e){sn(e),F.isDragging||(F.isDragging=!0,rt(F,"dragstart","onDragStart"))},this.drag=on,this.endDrag=function(e){an(e,!0)},this.timeSinceDrag=function(){return F.isDragging?0:(g()-X)/1e3},this.hitTest=function(e,t){return Wt.hitTest(F.target,e,t)},this.getDirection=function(e,t){var n=e==="velocity"&&P?e:typeof e=="object"&&!w?"element":"start",r,i,s,o,u,a;return n==="element"&&(u=Jt(F.target),a=Jt(e)),r=n==="start"?F.x-st:n==="velocity"?P.getVelocity(this.target,x):u.left+u.width/2-(a.left+a.width/2),w?r<0?"counter-clockwise":"clockwise":(t=t||2,i=n==="start"?F.y-ot:n==="velocity"?P.getVelocity(this.target,N):u.top+u.height/2-(a.top+a.height/2),s=Math.abs(r/i),o=s<1/t?"":r<0?"left":"right",s<t&&(o!==""&&(o+="-"),o+=i<0?"up":"down"),o)},this.applyBounds=function(e){var t,n,r;if(e&&c.bounds!==e)return c.bounds=e,F.update(!0);Kt(!0),Qt();if(ut){t=F.x,n=F.y,ut&&(t>ft?t=ft:t<lt&&(t=lt),n>ct?n=ct:n<ht&&(n=ht));if(F.x!==t||F.y!==n)r=!0,F.x=F.endX=t,w?F.endRotation=t:F.y=F.endY=n,yt=!0,$t();F.isThrowing&&(r||F.endX>ft||F.endX<lt||F.endY>ct||F.endY<ht)&&Zt(c.throwProps,r)}return F},this.update=function(e,t){var n=F.x,r=F.y;return en(),e?F.applyBounds():(yt&&t&&$t(),Kt(!0)),F.isPressed&&(A&&Math.abs(n-F.x)>.01||O&&Math.abs(r-F.y)>.01&&!w)&&tn(),F.autoScroll&&(V(a.parentNode),K=!0,$t()),F},this.enable=function(e){var r,i,s;if(e!=="soft"){i=q.length;while(--i>-1)s=q[i],Dt(s,"mousedown",sn),Dt(s,"touchstart",sn),Dt(s,"click",ln,!0),w||Q(s,"cursor",c.cursor||"move"),Q(s,"touchCallout","none"),Q(s,"touchAction",A===O||Z?"none":A?"pan-y":"pan-x");qt(q,!1)}return U(F.target,fn),Y=!0,P&&e!=="soft"&&P.track(Z||a,d?"x,y":w?"rotation":"top,left"),Z&&Z.enable(),a._gsDragID=r="d"+S++,E[r]=this,Z&&(Z.element._gsDragID=r),t.set(a,{x:"+=0",overwrite:!1}),Bt={t:a,data:y?dt:a._gsTransform,tween:{},setRatio:y?function(){t.set(a,pt)}:n._internals.setTransformRatio||n._internals.set3DTransformRatio},F.update(!0),F},this.disable=function(e){var t=F.isDragging,n,r;if(!w){n=q.length;while(--n>-1)Q(q[n],"cursor",null)}if(e!=="soft"){n=q.length;while(--n>-1)r=q[n],Q(r,"touchCallout",null),Q(r,"touchAction",null),Pt(r,"mousedown",sn),Pt(r,"touchstart",sn),Pt(r,"click",ln);qt(q,!0),xt&&(Pt(xt,"touchcancel",an),Pt(xt,"touchend",an),Pt(xt,"touchmove",on)),Pt(f,"mouseup",an),Pt(f,"mousemove",on)}return z(a,fn),Y=!1,P&&e!=="soft"&&P.untrack(Z||a,d?"x,y":w?"rotation":"top,left"),Z&&Z.disable(),j($t),F.isDragging=F.isPressed=St=!1,t&&rt(F,"dragend","onDragEnd"),F},this.enabled=function(e,t){return arguments.length?e?F.enable(t):F.disable(t):Y},this.kill=function(){return F.isThrowing=!1,t.killTweensOf(Z||a,!0,R),F.disable(),delete E[a._gsDragID],F},h.indexOf("scroll")!==-1&&(Z=this.scrollProxy=new zt(a,I({onKill:function(){F.isPressed&&an(null)}},c)),a.style.overflowY=O&&!Mt?"auto":"hidden",a.style.overflowX=A&&!Mt?"auto":"hidden",a=Z.content),c.force3D!==!1&&t.set(a,{force3D:!0}),w?R.rotation=1:(A&&(R[x]=1),O&&(R[N]=1)),w?(pt=o,dt=pt.css,pt.overwrite=!1):d&&(pt=A&&O?r:A?i:s,dt=pt.css,pt.overwrite=!1),this.enable()},Xt=Wt.prototype=new e;Xt.constructor=Wt,Xt.pointerX=Xt.pointerY=0,Xt.isDragging=Xt.isPressed=!1,Wt.version="0.14.3",Wt.zIndex=1e3,Dt(f,"touchcancel",function(){}),Dt(f,"contextmenu",function(e){var t;for(t in E)E[t].isPressed&&E[t].endDrag()}),Wt.create=function(e,n){typeof e=="string"&&(e=t.selector(e));var r=!e||e.length===0?[]:At(e)?Ot(e):[e],i=r.length;while(--i>-1)r[i]=new Wt(r[i],n);return r},Wt.get=function(e){return E[(J(e)||{})._gsDragID]},Wt.timeSinceDrag=function(){return(g()-L)/1e3};var Vt={},$t=function(e){var t=0,n=0,r,i;e=J(e),r=e.offsetWidth,i=e.offsetHeight;while(e)t+=e.offsetTop,n+=e.offsetLeft,e=e.offsetParent;return{top:t,left:n,width:r,height:i}},Jt=function(e,t){if(e===window)return Vt.left=Vt.top=0,Vt.width=Vt.right=l.clientWidth||e.innerWidth||f.body.clientWidth||0,Vt.height=Vt.bottom=(e.innerHe
1ight||0)-20<l.clientHeight?l.clientHeight:e.innerHeight||f.body.clientHeight||0,Vt;var n=e.pageX!==t?{left:e.pageX-R(),top:e.pageY-q(),right:e.pageX-R()+1,bottom:e.pageY-q()+1}:!e.nodeType&&e.left!==t&&e.top!==t?e:y?$t(e):J(e).getBoundingClientRect();return n.right===t&&n.width!==t?(n.right=n.left+n.width,n.bottom=n.top+n.height):n.width===t&&(n={width:n.right-n.left,height:n.bottom-n.top,right:n.right,left:n.left,bottom:n.bottom,top:n.top}),n};return Wt.hitTest=function(e,t,n){if(e===t)return!1;var r=Jt(e),i=Jt(t),s=i.left>r.right||i.right<r.left||i.top>r.bottom||i.bottom<r.top,o,u,a;return s||!n?!s:(a=(n+"").indexOf("%")!==-1,n=parseFloat(n)||0,o={left:Math.max(r.left,i.left),top:Math.max(r.top,i.top)},o.width=Math.min(r.right,i.right)-o.left,o.height=Math.min(r.bottom,i.bottom)-o.top,o.width<0||o.height<0?!1:a?(n*=.01,u=o.width*o.height,u>=r.width*r.height*n||u>=i.width*i.height*n):o.width>n&&o.height>n)},b.style.cssText="visibility:hidden;height:1px;top:-1px;pointer-events:none;position:relative;clear:both;",Wt},!0)}),_gsScope._gsDefine&&_gsScope._gsQueue.pop()(),function(e){"use strict";var t=function(){return(_gsScope.GreenSockGlobals||_gsScope)[e]};typeof define=="function"&&define.amd?define("Draggable",["TweenLite"],t):typeof module!="undefined"&&module.exports&&(require("../TweenLite.js"),require("../plugins/CSSPlugin.js"),module.exports=t())}("Draggable"),function(e,t,n){typeof define=="function"&&define.amd?define("jquery-mobile",["jquery"],function(r){return n(r,e,t),r.mobile}):n(e.jQuery,e,t)}(this,document,function(e,t,n,r){(function(e,t,r){"$:nomunge";function i(e){return e=e||location.href,"#"+e.replace(/^[^#]*#?(.*)$/,"$1")}var s="hashchange",o=n,u,a=e.event.special,f=o.documentMode,l="on"+s in t&&(f===r||f>7);e.fn[s]=function(e){return e?this.bind(s,e):this.trigger(s)},e.fn[s].delay=50,a[s]=e.extend(a[s],{setup:function(){if(l)return!1;e(u.start)},teardown:function(){if(l)return!1;e(u.stop)}}),u=function(){function n(){var r=i(),o=p(f);r!==f?(h(f=r,o),e(t).trigger(s)):o!==f&&(location.href=location.href.replace(/#.*/,"")+o),a=setTimeout(n,e.fn[s].delay)}var u={},a,f=i(),c=function(e){return e},h=c,p=c;return u.start=function(){a||n()},u.stop=function(){a&&clearTimeout(a),a=r},t.attachEvent&&!t.addEventListener&&!l&&function(){var t,r;u.start=function(){t||(r=e.fn[s].src,r=r&&r+i(),t=e('<iframe tabindex="-1" title="empty"/>').hide().one("load",function(){r||h(i()),n()}).attr("src",r||"javascript:0").insertAfter("body")[0].contentWindow,o.onpropertychange=function(){try{event.propertyName==="title"&&(t.document.title=o.title)}catch(e){}})},u.stop=c,p=function(){return i(t.location.href)},h=function(n,r){var i=t.document,u=e.fn[s].domain;n!==r&&(i.title=o.title,i.open(),u&&i.write('<script>document.domain="'+u+'"</script>'),i.close(),t.location.hash=n)}}(),u}()})(e,this),function(e){e.mobile={}}(e),function(e,t,n){e.extend(e.mobile,{version:"1.4.5",subPageUrlKey:"ui-page",hideUrlBar:!0,keepNative:":jqmData(role='none'), :jqmData(role='nojs')",activePageClass:"ui-page-active",activeBtnClass:"ui-btn-active",focusClass:"ui-focus",ajaxEnabled:!0,hashListeningEnabled:!0,linkBindingEnabled:!0,defaultPageTransition:"fade",maxTransitionWidth:!1,minScrollBack:0,defaultDialogTransition:"pop",pageLoadErrorMessage:"Error Loading Page",pageLoadErrorMessageTheme:"a",phonegapNavigationEnabled:!1,autoInitializePage:!0,pushStateEnabled:!0,ignoreContentEnabled:!1,buttonMarkup:{hoverDelay:200},dynamicBaseEnabled:!0,pageContainer:e(),allowCrossDomainPages:!1,dialogHashKey:"&ui-state=dialog"})}(e,this),function(e,t,n){var r={},i=e.find,s=/(?:\{[\s\S]*\}|\[[\s\S]*\])$/,o=/:jqmData\(([^)]*)\)/g;e.extend(e.mobile,{ns:"",getAttribute:function(t,n){var r;t=t.jquery?t[0]:t,t&&t.getAttribute&&(r=t.getAttribute("data-"+e.mobile.ns+n));try{r=r==="true"?!0:r==="false"?!1:r==="null"?null:+r+""===r?+r:s.test(r)?JSON.parse(r):r}catch(i){}return r},nsNormalizeDict:r,nsNormalize:function(t){return r[t]||(r[t]=e.camelCase(e.mobile.ns+t))},closestPageData:function(e){return e.closest(":jqmData(role='page'), :jqmData(role='dialog')").data("mobile-page")}}),e.fn.jqmData=function(t,r){var i;return typeof t!="undefined"&&(t&&(t=e.mobile.nsNormalize(t)),arguments.length<2||r===n?i=this.data(t):i=this.data(t,r)),i},e.jqmData=function(t,n,r){var i;return typeof n!="undefined"&&(i=e.data(t,n?e.mobile.nsNormalize(n):n,r)),i},e.fn.jqmRemoveData=function(t){return this.removeData(e.mobile.nsNormalize(t))},e.jqmRemoveData=function(t,n){return e.removeData(t,e.mobile.nsNormalize(n))},e.find=function(t,n,r,s){return t.indexOf(":jqmData")>-1&&(t=t.replace(o,"[data-"+(e.mobile.ns||"")+"$1]")),i.call(this,t,n,r,s)},e.extend(e.find,i)}(e,this),function(e,t){function r(t,n){var r,s,o,u=t.nodeName.toLowerCase();return"area"===u?(r=t.parentNode,s=r.name,!t.href||!s||r.nodeName.toLowerCase()!=="map"?!1:(o=e("img[usemap=#"+s+"]")[0],!!o&&i(o))):(/input|select|textarea|button|object/.test(u)?!t.disabled:"a"===u?t.href||n:n)&&i(t)}function i(t){return e.expr.filters.visible(t)&&!e(t).parents().addBack().filter(function(){return e.css(this,"visibility")==="hidden"}).length}var s=0,o=/^ui-id-\d+$/;e.ui=e.ui||{},e.extend(e.ui,{version:"c0ab71056b936627e8a7821f03c044aec6280a40",keyCode:{BACKSPACE:8,COMMA:188,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,LEFT:37,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SPACE:32,TAB:9,UP:38}}),e.fn.extend({focus:function(t){return function(n,r){return typeof n=="number"?this.each(function(){var t=this;setTimeout(function(){e(t).focus(),r&&r.call(t)},n)}):t.apply(this,arguments)}}(e.fn.focus),scrollParent:function(){var t;return e.ui.ie&&/(static|relative)/.test(this.css("position"))||/absolute/.test(this.css("position"))?t=this.parents().filter(function(){return/(relative|absolute|fixed)/.test(e.css(this,"position"))&&/(auto|scroll)/.test(e.css(this,"overflow")+e.css(this,"overflow-y")+e.css(this,"overflow-x"))}).eq(0):t=this.parents().filter(function(){return/(auto|scroll)/.test(e.css(this,"overflow")+e.css(this,"overflow-y")+e.css(this,"overflow-x"))}).eq(0),/fixed/.test(this.css("position"))||!t.length?e(this[0].ownerDocument||n):t},uniqueId:function(){return this.each(function(){this.id||(this.id="ui-id-"+ ++s)})},removeUniqueId:function(){return this.each(function(){o.test(this.id
1)&&e(this).removeAttr("id")})}}),e.extend(e.expr[":"],{data:e.expr.createPseudo?e.expr.createPseudo(function(t){return function(n){return!!e.data(n,t)}}):function(t,n,r){return!!e.data(t,r[3])},focusable:function(t){return r(t,!isNaN(e.attr(t,"tabindex")))},tabbable:function(t){var n=e.attr(t,"tabindex"),i=isNaN(n);return(i||n>=0)&&r(t,!i)}}),e("<a>").outerWidth(1).jquery||e.each(["Width","Height"],function(n,r){function i(t,n,r,i){return e.each(s,function(){n-=parseFloat(e.css(t,"padding"+this))||0,r&&(n-=parseFloat(e.css(t,"border"+this+"Width"))||0),i&&(n-=parseFloat(e.css(t,"margin"+this))||0)}),n}var s=r==="Width"?["Left","Right"]:["Top","Bottom"],o=r.toLowerCase(),u={innerWidth:e.fn.innerWidth,innerHeight:e.fn.innerHeight,outerWidth:e.fn.outerWidth,outerHeight:e.fn.outerHeight};e.fn["inner"+r]=function(n){return n===t?u["inner"+r].call(this):this.each(function(){e(this).css(o,i(this,n)+"px")})},e.fn["outer"+r]=function(t,n){return typeof t!="number"?u["outer"+r].call(this,t):this.each(function(){e(this).css(o,i(this,t,!0,n)+"px")})}}),e.fn.addBack||(e.fn.addBack=function(e){return this.add(e==null?this.prevObject:this.prevObject.filter(e))}),e("<a>").data("a-b","a").removeData("a-b").data("a-b")&&(e.fn.removeData=function(t){return function(n){return arguments.length?t.call(this,e.camelCase(n)):t.call(this)}}(e.fn.removeData)),e.ui.ie=!!/msie [\w.]+/.exec(navigator.userAgent.toLowerCase()),e.support.selectstart="onselectstart"in n.createElement("div"),e.fn.extend({disableSelection:function(){return this.bind((e.support.selectstart?"selectstart":"mousedown")+".ui-disableSelection",function(e){e.preventDefault()})},enableSelection:function(){return this.unbind(".ui-disableSelection")},zIndex:function(r){if(r!==t)return this.css("zIndex",r);if(this.length){var i=e(this[0]),s,o;while(i.length&&i[0]!==n){s=i.css("position");if(s==="absolute"||s==="relative"||s==="fixed"){o=parseInt(i.css("zIndex"),10);if(!isNaN(o)&&o!==0)return o}i=i.parent()}}return 0}}),e.ui.plugin={add:function(t,n,r){var i,s=e.ui[t].prototype;for(i in r)s.plugins[i]=s.plugins[i]||[],s.plugins[i].push([n,r[i]])},call:function(e,t,n,r){var i,s=e.plugins[t];if(!s)return;if(!r&&(!e.element[0].parentNode||e.element[0].parentNode.nodeType===11))return;for(i=0;i<s.length;i++)e.options[s[i][0]]&&s[i][1].apply(e.element,n)}}}(e),function(e,t,r){var i=function(t,n){var r=t.parent(),i=[],s=function(){var t=e(this),n=e.mobile.toolbar&&t.data("mobile-toolbar")?t.toolbar("option"):{position:t.attr("data-"+e.mobile.ns+"position"),updatePagePadding:t.attr("data-"+e.mobile.ns+"update-page-padding")!==!1};return n.position!=="fixed"||n.updatePagePadding!==!0},o=r.children(":jqmData(role='header')").filter(s),u=t.children(":jqmData(role='header')"),a=r.children(":jqmData(role='footer')").filter(s),f=t.children(":jqmData(role='footer')");return u.length===0&&o.length>0&&(i=i.concat(o.toArray())),f.length===0&&a.length>0&&(i=i.concat(a.toArray())),e.each(i,function(t,r){n-=e(r).outerHeight()}),Math.max(0,n)};e.extend(e.mobile,{window:e(t),document:e(n),keyCode:e.ui.keyCode,behaviors:{},silentScroll:function(n){e.type(n)!=="number"&&(n=e.mobile.defaultHomeScroll),e.event.special.scrollstart.enabled=!1,setTimeout(function(){t.scrollTo(0,n),e.mobile.document.trigger("silentscroll",{x:0,y:n})},20),setTimeout(function(){e.event.special.scrollstart.enabled=!0},150)},getClosestBaseUrl:function(t){var n=e(t).closest(".ui-page").jqmData("url"),r=e.mobile.path.documentBase.hrefNoHash;if(!e.mobile.dynamicBaseEnabled||!n||!e.mobile.path.isPath(n))n=r;return e.mobile.path.makeUrlAbsolute(n,r)},removeActiveLinkClass:function(t){!!e.mobile.activeClickedLink&&(!e.mobile.activeClickedLink.closest("."+e.mobile.activePageClass).length||t)&&e.mobile.activeClickedLink.removeClass(e.mobile.activeBtnClass),e.mobile.activeClickedLink=null},getInheritedTheme:function(e,t){var n=e[0],r="",i=/ui-(bar|body|overlay)-([a-z])\b/,s,o;while(n){s=n.className||"";if(s&&(o=i.exec(s))&&(r=o[2]))break;n=n.parentNode}return r||t||"a"},enhanceable:function(e){return this.haveParents(e,"enhance")},hijackable:function(e){return this.haveParents(e,"ajax")},haveParents:function(t,n){if(!e.mobile.ignoreContentEnabled)return t;var r=t.length,i=e(),s,o,u,a,f;for(a=0;a<r;a++){o=t.eq(a),u=!1,s=t[a];while(s){f=s.getAttribute?s.getAttribute("data-"+e.mobile.ns+n):"";if(f==="false"){u=!0;break}s=s.parentNode}u||(i=i.add(o))}return i}
1,getScreenHeight:function(){return t.innerHeight||e.mobile.window.height()},resetActivePageHeight:function(t){var n=e("."+e.mobile.activePageClass),r=n.height(),s=n.outerHeight(!0);t=i(n,typeof t=="number"?t:e.mobile.getScreenHeight()),n.css("min-height",""),n.height()<t&&n.css("min-height",t-(s-r))},loading:function(){var t=this.loading._widget||e(e.mobile.loader.prototype.defaultHtml).loader(),n=t.loader.apply(t,arguments);return this.loading._widget=t,n}}),e.addDependents=function(t,n){var r=e(t),i=r.jqmData("dependents")||e();r.jqmData("dependents",e(i).add(n))},e.fn.extend({removeWithDependents:function(){e.removeWithDependents(this)},enhanceWithin:function(){var t,n={},r=e.mobile.page.prototype.keepNativeSelector(),i=this;e.mobile.nojs&&e.mobile.nojs(this),e.mobile.links&&e.mobile.links(this),e.mobile.degradeInputsWithin&&e.mobile.degradeInputsWithin(this),e.fn.buttonMarkup&&this.find(e.fn.buttonMarkup.initSelector).not(r).jqmEnhanceable().buttonMarkup(),e.fn.fieldcontain&&this.find(":jqmData(role='fieldcontain')").not(r).jqmEnhanceable().fieldcontain(),e.each(e.mobile.widgets,function(t,s){if(s.initSelector){var o=e.mobile.enhanceable(i.find(s.initSelector));o.length>0&&(o=o.not(r)),o.length>0&&(n[s.prototype.widgetName]=o)}});for(t in n)n[t][t]();return this},addDependents:function(t){e.addDependents(this,t)},getEncodedText:function(){return e("<a>").text(this.text()).html()},jqmEnhanceable:function(){return e.mobile.enhanceable(this)},jqmHijackable:function(){return e.mobile.hijackable(this)}}),e.removeWithDependents=function(t){var n=e(t);(n.jqmData("dependents")||e()).remove(),n.remove()},e.addDependents=function(t,n){var r=e(t),i=r.jqmData("dependents")||e();r.jqmData("dependents",e(i).add(n))},e.find.matches=function(t,n){return e.find(t,null,null,n)},e.find.matchesSelector=function(t,n){return e.find(n,null,null,[t]).length>0}}(e,this),function(e,r){t.matchMedia=t.matchMedia||function(e,t){var n,r=e.documentElement,i=r.firstElementChild||r.firstChild,s=e.createElement("body"),o=e.createElement("div");return o.id="mq-test-1",o.style.cssText="position:absolute;top:-100em",s.style.background="none",s.appendChild(o),function(e){return o.innerHTML='&shy;<style media="'+e+'"> #mq-test-1 { width: 42px; }</style>',r.insertBefore(s,i),n=o.offsetWidth===42,r.removeChild(s),{matches:n,media:e}}}(n),e.mobile.media=function(e){return t.matchMedia(e).matches}}(e),function(e,t){var r={touch:"ontouchend"in n};e.mobile.support=e.mobile.support||{},e.extend(e.support,r),e.extend(e.mobile.support,r)}(e),function(e,n){e.extend(e.support,{orientation:"orientation"in t&&"onorientationchange"in t})}(e),function(e,r){function i(e){var t=e.charAt(0).toUpperCase()+e.substr(1),n=(e+" "+p.join(t+" ")+t).split(" "),i;for(i in n)if(h[n[i]]!==r)return!0}function s(){var n=t,r=!!n.document.createElementNS&&!!n.document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGRect&&(!n.opera||navigator.userAgent.indexOf("Chrome")!==-1),i=function(t){(!t||!r)&&e("html").addClass("ui-nosvg")},s=new n.Image;s.onerror=function(){i(!1)},s.onload=function(){i(s.width===1&&s.height===1)},s.src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///ywAAAAAAQABAAACAUwAOw=="}function o(){var i="transform-3d",s=e.mobile.media("(-"+p.join("-"+i+"),(-")+"-"+i+"),("+i+")"),o,u,a;if(s)return!!s;o=n.createElement("div"),u={MozTransform:"-moz-transform",transform:"transform"},c.append(o);for(a in u)o.style[a]!==r&&(o.style[a]="translate3d( 100px, 1px, 1px )",s=t.getComputedStyle(o).getPropertyValue(u[a]));return!!s&&s!=="none"}function u(){var t=location.protocol+"//"+location.host+location.pathname+"ui-dir/",n=e("head base"),r=null,i="",s,o;return n.length?i=n.attr("href"):n=r=e("<base>",{href:t}).appendTo("head"),s=e("<a href='testurl' />").prependTo(c),o=s[0].href,n[0].href=i||location.pathname,r&&r.remove(),o.indexOf(t)===0}function a(){var e=n.createElement("x"),r=n.documentElement,i=t.getComputedStyle,s;return"pointerEvents"in e.style?(e.style.pointerEvents="auto",e.style.pointerEvents="x",r.appendChild(e),s=i&&i(e,"").pointerEvents==="auto",r.removeChild(e),!!s):!1}function f(){var e=n.createElement("div");return typeof e.getBoundingClientRect!="undefined"}function l(){var e=t,n=navigator.userAgent,r=navigator.platform,i=n.match(/AppleWeb
vendor: 10,297 bytes, line 1
1Kit\/([0-9]+)/),s=!!i&&i[1],o=n.match(/Fennec\/([0-9]+)/),u=!!o&&o[1],a=n.match(/Opera Mobi\/([0-9]+)/),f=!!a&&a[1];return(r.indexOf("iPhone")>-1||r.indexOf("iPad")>-1||r.indexOf("iPod")>-1)&&s&&s<534||e.operamini&&{}.toString.call(e.operamini)==="[object OperaMini]"||a&&f<7458||n.indexOf("Android")>-1&&s&&s<533||u&&u<6||"palmGetResource"in t&&s&&s<534||n.indexOf("MeeGo")>-1&&n.indexOf("NokiaBrowser/8.5.0")>-1?!1:!0}var c=e("<body>").prependTo("html"),h=c[0].style,p=["Webkit","Moz","O"],d="palmGetResource"in t,v=t.operamini&&{}.toString.call(t.operamini)==="[object OperaMini]",m=t.blackberry&&!i("-webkit-transform"),g;e.extend(e.mobile,{browser:{}}),e.mobile.browser.oldIE=function(){var e=3,t=n.createElement("div"),r=t.all||[];do t.innerHTML="<!--[if gt IE "+ ++e+"]><br><![endif]-->";while(r[0]);return e>4?e:!e}(),e.extend(e.support,{pushState:"pushState"in history&&"replaceState"in history&&!(t.navigator.userAgent.indexOf("Firefox")>=0&&t.top!==t)&&t.navigator.userAgent.search(/CriOS/)===-1,mediaquery:e.mobile.media("only all"),cssPseudoElement:!!i("content"),touchOverflow:!!i("overflowScrolling"),cssTransform3d:o(),boxShadow:!!i("boxShadow")&&!m,fixedPosition:l(),scrollTop:("pageXOffset"in t||"scrollTop"in n.documentElement||"scrollTop"in c[0])&&!d&&!v,dynamicBaseTag:u(),cssPointerEvents:a(),boundingRect:f(),inlineSVG:s}),c.remove(),g=function(){var e=t.navigator.userAgent;return e.indexOf("Nokia")>-1&&(e.indexOf("Symbian/3")>-1||e.indexOf("Series60/5")>-1)&&e.indexOf("AppleWebKit")>-1&&e.match(/(BrowserNG|NokiaBrowser)\/7\.[0-3]/)}(),e.mobile.gradeA=function(){return(e.support.mediaquery&&e.support.cssPseudoElement||e.mobile.browser.oldIE&&e.mobile.browser.oldIE>=8)&&(e.support.boundingRect||e.fn.jquery.match(/1\.[0-7+]\.[0-9+]?/)!==null)},e.mobile.ajaxBlacklist=t.blackberry&&!t.WebKitPoint||v||g,g&&e(function(){e("head link[rel='stylesheet']").attr("rel","alternate stylesheet").attr("rel","stylesheet")}),e.support.boxShadow||e("html").addClass("ui-noboxshadow")}(e),function(e,t){var n=e.mobile.window,r,i=function(){};e.event.special.beforenavigate={setup:function(){n.on("navigate",i)},teardown:function(){n.off("navigate",i)}},e.event.special.navigate=r={bound:!1,pushStateEnabled:!0,originalEventName:t,isPushStateEnabled:function(){return e.support.pushState&&e.mobile.pushStateEnabled===!0&&this.isHashChangeEnabled()},isHashChangeEnabled:function(){return e.mobile.hashListeningEnabled===!0},popstate:function(t){var r=new e.Event("navigate"),i=new e.Event("beforenavigate"),s=t.originalEvent.state||{};i.originalEvent=t,n.trigger(i);if(i.isDefaultPrevented())return;t.historyState&&e.extend(s,t.historyState),r.originalEvent=t,setTimeout(function(){n.trigger(r,{state:s})},0)},hashchange:function(t){var r=new e.Event("navigate"),i=new e.Event("beforenavigate");i.originalEvent=t,n.trigger(i);if(i.isDefaultPrevented())return;r.originalEvent=t,n.trigger(r,{state:t.hashchangeState||{}})},setup:function(){if(r.bound)return;r.bound=!0,r.isPushStateEnabled()?(r.originalEventName="popstate",n.bind("popstate.navigate",r.popstate)):r.isHashChangeEnabled()&&(r.originalEventName="hashchange",n.bind("hashchange.navigate",r.hashchange))}}}(e),function(e){e.event.special.throttledresize={setup:function(){e(this).bind("resize",n)},teardown:function(){e(this).unbind("resize",n)}};var t=250,n=function(){s=(new Date).getTime(),o=s-r,o>=t?(r=s,e(this).trigger("throttledresize")):(i&&clearTimeout(i),i=setTimeout(n,t-o))},r=0,i,s,o}(e),function(e,t){function r(){var e=o();e!==u&&(u=e,i.trigger(s))}var i=e(t),s="orientationchange",o,u,a,f,l={0:!0,180:!0},c,h,p;if(e.support.orientation){c=t.innerWidth||i.width(),h=t.innerHeight||i.height(),p=50,a=c>h&&c-h>p,f=l[t.orientation];if(a&&f||!a&&!f)l={"-90":!0,90:!0}}e.event.special.orientationchange=e.extend({},e.event.special.orientationchange,{setup:function(){if(e.support.orientation&&!e.event.special.orientationchange.disabled)return!1;u=o(),i.bind("throttledresize",r)},teardown:function(){if(e.support.orientation&&!e.event.special.orientationchange.disabled)return!1;i.unbind("throttledresize",r)},add:function(e){var t=e.handler;e.handler=function(e){return e.orientation=o(),t.apply(this,arguments)}}}),e.event.special.orientationchange.orientation=o=function(){var r=!0,i=n.documentElement;return e.support.orientation?r=l[t.orientation]:r=i&&i.clientWidth/i.clientHeight<1.1,r?"portrait":"landscape"},e.fn[s]=function(e){return e?this.bind(s,e):this.trigger(s)},e.attrFn&&(e.attrFn[s]=!0)}(e,this),function(e,t,n,r){function i(e){while(e&&typeof e.originalEvent!="undefined")e=e.originalEvent;return e}function s(t,n){var s=t.type,o,u,a,f,l,c,h,p,d;t=e.Event(t),t.type=n,o=t.originalEvent,u=e.event.props,s.search(/^(mouse|click)/)>-1&&(u=L);if(o)for(h=u.length,f;h;)f=u[--h],t[f]=o[f];s.search(/mouse(down|up)|click/)>-1&&!t.which&&(t.which=1);if(s.search(/^touch/)!==-1){a=i(o),s=a.touches,l=a.changedTouches,c=s&&s.length?s[0]:l&&l.length?l[0]:r;if(c)for(p=0,d=C.length;p<d;p++)f=C[p],t[f]=c[f]}return t}function o(t){var n={},r,i;while(t){r=e.data(t,x);for(i in r)r[i]&&(n[i]=n.hasVirtualBinding=!0);t=t.parentNode}return n}function u(t,n){var r;while(t){r=e.data(t,x);if(r&&(!n||r[n]))return t;t=t.parentNode}return null}function a(){B=!1}function f(){B=!0}function l(){q=0,P.length=0,H=!1,f()}function c(){a()}function h(){p(),O=setTimeout(function(){O=0,l()},e.vmouse.resetTimerDuration)}function p(){O&&(clearTimeout(O),O=0)}function d(t,n,r){var i;if(r&&r[t]||!r&&u(n.target,t))i=s(n,t),e(n.target).trigger(i);return i}function v(t){var n=e.data(t.target,T),r;!H&&(!q||q!==n)&&(r=d("v"+t.type,t),r&&(r.isDefaultPrevented()&&t.preventDefault(),r.isPropagationStopped()&&t.stopPropagation(),r.isImmediatePropagationStopped()&&t.stopImmediatePropagation()))}function m(t){var n=i(t).touches,r,s,u;n&&n.length===1&&(r=t.target,s=o(r),s.hasVirtualBinding&&(q=I++,e.data(r,T,q),p(),c(),D=!1,u=i(t).touches[0],M=u.pageX,_=u.pageY,d("vmouseover",t,s),d("vmousedown",t,s)))}function g(e){if(B)return;D||d("vmousecancel",e,o(e.target)),D=!0,h()}function y(t){if(B)return;var n=i(t).touches[0],r=D,s=e.vmouse.moveDistanceThreshold,u=o(t.target);D=D||Math.abs(n.pageX-M)>s||Math.abs(n.pageY-_)>s,D&&!r&&d("vmousecancel",t,u),d("vmousemove",t,u),h()}function b(e){if(B)return;f();var t=o(e.target),n,r;d("vmouseup",e,t),D||(n=d("vclick",e,t),n&&n.isDefaultPrevented()&&(r=i(e).changedTouches[0],P.push({touchID:q,x:r.clientX,y:r.clientY}),H=!0)),d("vmouseout",e,t),D=!1,h()}function w(t){var n=e.data(t,x),r;if(n)for(r in n)if(n[r])return!0;return!1}function E(){}function S(t){var n=t.substr(1);return{setup:function(){w(this)||e.data(this,x,{});var r=e.data(this,x);r[t]=!0,A[t]=(A[t]||0)+1,A[t]===1&&F.bind(n,v),e(this).bind(n,E),j&&(A.touchstart=(A.touchstart||0)+1,A.touchstart===1&&F.bind("touchstart",m).bind("touchend",b).bind("touchmove",y).bind("scroll",g))},teardown:function(){--A[t],A[t]||F.unbind(n,v),j&&(--A.touchstart,A.touchstart||F.unbind("touchstart",m).unbind("touchmove",y).unbind("touchend",b).unbind("scroll",g));var r=e(this),i=e.data(this,x);i&&(i[t]=!1),r.unbind(n,E),w(this)||r.removeData(x)}}}var x="virtualMouseBindings",T="virtualTouchID",N="vmouseover vmousedown vmousemove vmouseup vclick vmouseout vmousecancel".split(" "),C="clientX clientY pageX pageY screenX screenY".split(" "),k=e.event.mouseHooks?e.event.mouseHooks.props:[],L=e.event.props.concat(k),A={},O=0,M=0,_=0,D=!1,P=[],H=!1,B=!1,j="addEventListener"in n,F=e(n),I=1,q=0,R,U;e.vmouse={moveDistanceThreshold:10,clickDistanceThreshold:10,resetTimerDuration:1500};for(U=0;U<N.length;U++)e.event.special[N[U]]=S(N[U]);j&&n.addEventListener("click",function(t){var n=P.length,r=t.target,i,s,o,u,a,f;if(n){i=t.clientX,s=t.clientY,R=e.vmouse.clickDistanceThreshold,o=r;while(o){for(u=0;u<n;u++){a=P[u],f=0;if(o===r&&Math.abs(a.x-i)<R&&Math.abs(a.y-s)<R||e.data(o,T)===a.touchID){t.preventDefault(),t.stopPropagation();return}}o=o.parentNode}}},!0)}(e,t,n),function(e,t,r){function i(t,n,i,s){var o=i.type;i.type=n,s?e.event.trigger(i,r,t):e.event.dispatch.call(t,i),i.type=o}var s=e(n),o=e.mobile.support.touch,u="touchmove scroll",a=o?"touchstart":"mousedown",f=o?"touchend":"mouseup",l=o?"touchmove":"mousemove";e.each("touchstart touchmove touchend tap taphold swipe swipeleft swiperight scrollstart scrollstop".split(" "),function(t,n){e.fn[n]=function(e){return e?this.bind(n,e):this.trigger(n)},e.attrFn&&(e.attrFn[n]=!0)}),e.event.special.scrollstart={enabled:!0,setup:function(){function t(e,t){s=t,i(n,s?"scrollstart":"scrollstop",e)}var n=this,r=e(n),s,o;r.bind(u,function(n){if(!e.event.special.scrollstart.enabled)return;s||t(n,!0),clearTimeout(o),o=setTimeout(function(){t(n,!1)},50)})},teardown:function(){e(this).unbind(u)}},e.event.special.tap={tapholdThreshold:750,emitTapOnTaphold:!0,setup:function(){var t=this,n=e(t),r=!1;n.bind("vmousedown",function(o){function u(){clearTimeout(c)}function a(){u(),n.unbind("vclick",f).unbind("vmouseup",u),s.unbind("vmousecancel",a)}function f(e){a(),!r&&l===e.target?i(t,"tap",e):r&&e.preventDefault()}r=!1;if(o.which&&o.which!==1)return!1;var l=o.target,c;n.bind("vmouseup",u).bind("vclick",f),s.bind("vmousecancel",a),c=setTimeout(function(){e.event.special.tap.emitTapOnTaphold||(r=!0),i(t,"taphold",e.Event("taphold",{target:l}))},e.event.special.tap.tapholdThreshold)})},teardown:function(){e(this).unbind("vmousedown").unbind("vclick").unbind("vmouseup"),s.unbind("vmousecancel")}},e.event.special.swipe={scrollSupressionThreshold:30,durationThreshold:1e3,horizontalDistanceThreshold:30,verticalDistanceThreshold:30,getLocation:function(e){var n=t.pageXOffset,r=t.pageYOffset,i=e.clientX,s=e.clientY;if(e.pageY===0&&Math.floor(s)>Math.floor(e.pageY)||e.pageX===0&&Math.floor(i)>Math.floor(e.pageX))i-=n,s-=r;else if(s<e.pageY-r||i<e.pageX-n)i=e.pageX-n,s=e.pageY-r;return{x:i,y:s}},start:function(t){var n=t.originalEvent.touches?t.originalEvent.touches[0]:t,r=e.event.special.swipe.getLocation(n);return{time:(new Date).getTime(),coords:[r.x,r.y],origin:e(t.target)}},stop:function(t){var n=t.originalEvent.touches?t.originalEvent.touches[0]:t,r=e.event.special.swipe.getLocation(n);return{time:(new Date).getTime(),coords:[r.x,r.y]}},handleSwipe:function(t,n,r,s){if(n.time-t.time<e.event.special.swipe.durationThreshold&&Math.abs(t.coords[0]-n.
1coords[0])>e.event.special.swipe.horizontalDistanceThreshold&&Math.abs(t.coords[1]-n.coords[1])<e.event.special.swipe.verticalDistanceThreshold){var o=t.coords[0]>n.coords[0]?"swipeleft":"swiperight";return i(r,"swipe",e.Event("swipe",{target:s,swipestart:t,swipestop:n}),!0),i(r,o,e.Event(o,{target:s,swipestart:t,swipestop:n}),!0),!0}return!1},eventInProgress:!1,setup:function(){var t,n=this,r=e(n),i={};t=e.data(this,"mobile-events"),t||(t={length:0},e.data(this,"mobile-events",t)),t.length++,t.swipe=i,i.start=function(t){if(e.event.special.swipe.eventInProgress)return;e.event.special.swipe.eventInProgress=!0;var r,o=e.event.special.swipe.start(t),u=t.target,a=!1;i.move=function(t){if(!o||t.isDefaultPrevented())return;r=e.event.special.swipe.stop(t),a||(a=e.event.special.swipe.handleSwipe(o,r,n,u),a&&(e.event.special.swipe.eventInProgress=!1)),Math.abs(o.coords[0]-r.coords[0])>e.event.special.swipe.scrollSupressionThreshold&&t.preventDefault()},i.stop=function(){a=!0,e.event.special.swipe.eventInProgress=!1,s.off(l,i.move),i.move=null},s.on(l,i.move).one(f,i.stop)},r.on(a,i.start)},teardown:function(){var t,n;t=e.data(this,"mobile-events"),t&&(n=t.swipe,delete t.swipe,t.length--,t.length===0&&e.removeData(this,"mobile-events")),n&&(n.start&&e(this).off(a,n.start),n.move&&s.off(l,n.move),n.stop&&s.off(f,n.stop))}},e.each({scrollstop:"scrollstart",taphold:"tap",swipeleft:"swipe.left",swiperight:"swipe.right"},function(t,n){e.event.special[t]={setup:function(){e(this).bind(n,e.noop)},teardown:function(){e(this).unbind(n)}}})}(e,this)}),define("app/modules/home/views/mobile-views/year2/episode-thumb-item-y2-view",["require","underscore","jquery","backbone","app/base-classes/base-view","app/modules/home/models/model","text!app/modules/home/views/templates/tmpl-mobile-accordion.html","mustache","FTScroller","Draggable","jquery-mobile","TweenMax"],function(e){var t=e("underscore"),n=e("jquery"),r=e("backbone"),i=e("app/base-classes/base-view"),s=e("app/modules/home/models/model"),o=e("text!app/modules/home/views/templates/tmpl-mobile-accordion.html"),u=e("mustache"),a=e("FTScroller"),f=e("Draggable"),l=e("jquery-mobile"),c=e("TweenMax"),h=i.extend({tagName:"dl",className:"mobile-episode-thumb-view",initialize:function(e,t,r,i,s){this.debug=!0,this.Evt=e,this.num=t,this.episodeNum=t,this.collection=r,this.pct=i,this.parentId=s,this.init(),this.$parent=n("#home-content"),n(this.el).data("num",this.num),n(this.el).addClass("accordion a-"+this.num),this.Evt.listenTo(this,"BUTTON_EVENT",this.Evt.onSubviewEvent),this.Evt.listenTo(this,"EPISODE_THUMB_CLICKED_EVENT",this.Evt.onEpisodeThumbClicked),this.listenTo(this.Evt,"REMOVE_SUBVIEWS_EVENT",this.cleanUp.bind(this)),this.listenTo(this.Evt,"REMOVE_MOBILE_SUBVIEWS_EVENT",this.onRemoveMobileSubviewsEvent.bind(this))},events:{},onRemoveMobileSubviewsEvent:function(e){var t=e.id;t===this.parentId&&this.removeFromStage()},removeFromStage:function(){this.cleanUp()},cleanUp:function(){this.undelegateEvents(),this.remove()},onEpisodeClicked:function(e){var t={num:this.num+1};this.trigger("EPISODE_THUMB_CLICKED_EVENT",t),this.sendEpisodeClickEvent()},sendEpisodeClickEvent:function(){var e=function(e){return e.replace(/[^A-Z\d\s]/gi,"").replace(/\s/g,"-").toLowerCase()},t=function(t){var n=t+1,r=boeing_globals.episodesCollection.at(t).toJSON().episode_title;return n+"-"+e(r)};this.gaMixins.sendClickEvent("mobile-episode-nav-click",t(this.num))},addEvents:function(){n(this.el).find("dt").on("tap",this.onEpisodeClicked.bind(this))},animatePercentage:function(e){var t=String(e)+"%",r=n(this.el).find("div.progress")[0];r.style.cssText="width: "+t+";"},afterRender:function(){this.addEvents();if(boeing_globals.userdata[this.episodeNum]!==undefined){var e=this.pct;this.animatePercentage(Math.ceil(e*100))}},render:function(){this.data=this.collection.toJSON(),this.data.number=this.num+1,this.data.episode=this.uiTextModel.get("episode");var e=u.to_html(o,this.data);return n(this.el).html(e),this.afterRender(),this.el}});return h}),define("app/modules/home/views/mobile-views/year2/episode-header-image-y2-view",["require","underscore","jquery","backbone","app/base-classes/base-view","app/modules/home/models/model","text!app/modules/home/views/templates/tmpl-mobile-header-default-y2-view.html","text!app/modules/home/views/templates/tmpl-mobile-header-y2-view.html","app/modules/home/views/mobile-views/year2/episode-thumb-item-y2-view","mustache","FTScroller","Draggable","jquery-mobile","TweenMax"],function(e){var t=e("underscore"),n=e("jquery"),r=e("backbone"),i=e("app/base-classes/base-view"),s=e("app/modules/home/models/model"),o=e("text!app/modules/home/views/templates/tmpl-mobile-header-default-y2-view.html"),u=e("text!app/modules/home/views/templates/tmpl-mobile-header-y2-view.html"),a=e("app/modules/home/views/mobile-views/year2/episode-thumb-item-y2-view"),f=e("mustache"),l=e("FTScroller"),c=e("Draggable"),h=e("jquery-mobile"),p=e("TweenMax"),d=i.extend({tagName:"article",className:"mobile-header-image",id:"mobile-header-image-view",initialize:function(e,t,n,r){this.debug=!0,this.Evt=e,this.parentId=r,n!==undefined&&(this.num=n),this.collection=t,this.init(),this.listenTo(e,"TESTER_EVENT",function(e){console.log("HEADER EP CLICK ",e)}),this.listenTo(this.Evt,"REMOVE_MOBILE_SUBVIEWS_EVENT",this.onRemoveMobileSubviewsEvent.bind(this))},events:{},onRemoveMobileSubviewsEvent:function(e){var t=e.id;t===this.parentId&&this.removeFromStage()},removeFromStage:function(){this.cleanUp()},cleanUp:function(){this.undelegateEvents(),this.remove()},addScrolling:function(){var e=document.getElementById("bng-home");this.scroller=new FTScroller(e,{scrollingY:!1,scrollbars:!0})},animateArrow:function(e){n(".drop-down-icon").removeClass("active");var t=n(e.currentTarget).find(".drop-down-icon");t.addClass("active")}
1,resetDraggable:function(){boeing_globals.homeDraggable.update()},onEpisodeClicked:function(e){var t=e.num,r=this.collection.at(t);n(this.el).removeClass("default"),this.reRender(r)},addEvents:function(){n(this.el).on("click",this.onClick.bind(this))},main:function(){var e=document.getElementById("mobile-header-image-view"),t=document.getElementById("home-content"),r=Rx.Observable.fromEvent(e,"touchend"),i=Rx.Observable.fromEvent(t,"touchmove"),s=Rx.Observable.fromEvent(e,"touchstart"),o=s.flatMap(function(e){console.log("MOUSEDRAG ",e);var t=e.pageX,s=e.pageY;return n("#home-content").addClass("nodrag"),i.map(function(e){return console.log("MOUSEMOVE ",e),e.preventDefault?e.preventDefault():event.returnValue=!1,{left:e.pageX-t,top:e.pageY-s}}).takeUntil(r)});subscription=o.subscribe(function(t){e.style.left=t.left+"px"})},addSwiping:function(){this.draggable=Draggable.create(n(this.el),{type:"x",cursor:"auto",edgeResistance:1,resistance:.2,zIndexBoost:!1,minimumMovement:6,force3D:!0,ease:Strong.easeOut,throwProps:!0})[0]},afterRender:function(){this.addEvents()},onClick:function(){this.trigger("HEADER_RESET_EPISODES_EVENT")},onResetEpisodes:function(){this.renderDefault(),n(this.el).addClass("default")},reRender:function(e){var t=["ONE","TWO","THREE","FOUR","FIVE","SIX","SEVEN","EIGHT","NINE","TEN","ELEVEN","TWELVE","THIRTEEN","FOURTEEN"],r=e.toJSON();r.episode_num_string=t[r.episode_num],r.episode=this.uiTextModel.get("episode");var i=f.to_html(u,r);n(this.el).html(i)},getLogoLockup:function(){var e="assets/images/",t="-mobile-intro.svg";return e+boeing_globals.subDirectory+t},renderDefault:function(){this.defaultData={logo_lockup:this.getLogoLockup(),ageOfAero_lockup:"assets/images/aerospace-logo-02-nospace.svg",episode_image:"assets/images/mobile-episodes-background.jpg"};var e=f.to_html(o,this.defaultData);n(this.el).html(e)},render:function(){if(this.num!==undefined){var e=this.collection.at(this.num);e.episode=this.uiTextModel.get("episode"),this.reRender(e)}else this.renderDefault();var t=this.num!==undefined?this.num:"default";return n(this.el).addClass("episode-"+t),this.el},renderOld:function(){this.data=this.collection.toJSON(),this.data.number=this.num+1,this.data.episode=this.uiTextModel.get("episode");var e=f.to_html(u,this.data);return n(this.el).html(e),this.afterRender(),this.el}});return d}),define("text!app/modules/home/views/templates/tmpl-mobile-episodes-holder-y2.html",[],function(){return'<ul class="toggler-menu" id="chapter-topics-toggle">\n    <li class="toggler selected" data-type="episodes">{{episodeStr}}</li>\n</ul>\n'}),define("app/modules/home/views/mobile-views/year2/episode-thumbs-holder-y2-view",["require","underscore","jquery","backbone","app/base-classes/base-view","app/modules/home/models/model","text!app/modules/home/views/templates/tmpl-mobile-episodes-holder-y2.html","app/modules/home/views/mobile-views/year2/episode-thumb-item-y2-view","mustache","FTScroller","Draggable","jquery-mobile","TweenMax"],function(e){var t=e("underscore"),n=e("jquery"),r=e("backbone"),i=e("app/base-classes/base-view"),s=e("app/modules/home/models/model"),o=e("text!app/modules/home/views/templates/tmpl-mobile-episodes-holder-y2.html"),u=e("app/modules/home/views/mobile-views/year2/episode-thumb-item-y2-view"),a=e("mustache"),f=e("FTScroller"),l=e("Draggable"),c=e("jquery-mobile"),h=e("TweenMax"),p=i.extend({tagName:"section",id:"mobile-episode-thumbs-holder-view",initialize:function(e,t,r){this.debug=!1,this.Evt=e,this.collection=t,this.parentId=r,this.init(),this.$parent=n("#home-content"),n(this.el).data("num",this.num),this.Evt.listenTo(this,"BUTTON_EVENT",this.Evt.onSubviewEvent),this.listenTo(this.Evt,"REMOVE_SUBVIEWS_EVENT",this.cleanUp.bind(this)),this.listenTo(this.Evt,"RESET_EPISODES_EVENT",this.onResetEpisodes.bind(this)),this.listenTo(this.Evt,"EPISODE_NUM_CHANGED_EVENT",this.onEpisodeNumUpdated.bind(this)),this.listenTo(this.Evt,"REMOVE_MOBILE_SUBVIEWS_EVENT",this.onRemoveMobileSubviewsEvent.bind(this))},events:{},onRemoveMobileSubviewsEvent:function(e){var t=e.id;t===this.parentId&&this.removeFromStage()},removeFromStage:function(){this.cleanUp()},cleanUp:function(){this.undelegateEvents(),this.remove()},addScrolling:function(){var e=document.getElementById("bng-home");this.scroller=new FTScroller(e,{scrollingY:!1,scrollbars:!0})},animateArrow:function(e){n(".drop-down-icon").removeClass("active");var t=n(e.currentTarget).find(".drop-down-icon");t.addClass("active")}
1,resetDraggable:function(){boeing_globals.homeDraggable.update()},onResetEpisodes:function(){n(this.el).removeClass("hide")},onEpisodeNumUpdated:function(e){e.num===0&&n(this.el).removeClass("hide")},addEvents:function(){},afterRender:function(){},getPercentagesArr:function(){var e=[0,0,0,0,0,0,0,0],n=window.localStorage.getItem("boeingUserData"),r=JSON.parse(n);return r!==undefined&&(e=t.pluck(r,"viewed_percentage"),e.push(0)),console.log("PCT ARR IS ",e,r),e},addEpsiodeThumbs:function(){var e=this.getPercentagesArr(),t=this.collection.length,r,i;for(var s=0;s<t;s++)i=e[s]*1,r=new u(this.Evt,s,this.collection.models[s],i,this.parentId),n(this.el).append(r.render())},render:function(){var e=this.uiTextModel.get("episodes").initCap(),t={episodeStr:e},r=a.to_html(o,t);return n(this.el).html(r),this.addEpsiodeThumbs(),this.afterRender(),this.el},renderOld:function(){this.data=this.collection.toJSON(),this.data.number=this.num+1,this.data.episode=this.uiTextModel.get("episode");var e=a.to_html(o,this.data);return n(this.el).html(e),this.afterRender(),this.el}});return p}),define("text!app/modules/home/views/templates/tmpl-mobile-chapter-topics-holder-y2.html",[],function(){return'\n<ul class="toggler-menu" id="chapter-topics-toggle">\n    <li class="toggler chapters selected" data-type="chapters">{{chaptersStr}}</li>\n    <li class="toggler topics" data-type="topics">{{interactiveLibrary}}</li>\n</ul>\n'}),define("text!app/modules/home/views/templates/tmpl-mobile-chapters-y2.html",[],function(){return'    {{#chapters}}\n\n <dl class="mobile-sub-item mobile-chapter-item {{replayClass}}" data-episode_num="{{ episode_num }}" data-num="{{chapter_number}}"   >\n     <dd>\n         <img src="{{chapter_thumbnail}}" width="100%" />\n\n         <div id="circle-percentage">\n            <!-- <svg version="1.1" width="80" height="80" id="Layer_1" xmlns="//www.w3.org/2000/svg" xmlns:xlink="//www.w3.org/1999/xlink" x="0px" y="0px"\n  	 viewBox="0 0 80 80" style="enable-background:new 0 0 74 74;" xml:space="preserve">\n                  <circle stroke-width="2" stroke="#ffffff"  fill="none" class="pct-thin-path"  cx="36" cy="36" r="34"/>\n\\                  <path class="st2" stroke="none" fill="#ffffff" d="M35.4,48.7L46.6,31H24.2L35.4,48.7z"/>\n              </svg>-->\n\n\n         </div>\n\n     </dd>\n\n    <dt class="menu-chapter-item {{ viewedClass }}">\n        <h4>{{chapterStr}} {{chapter_number}}</h4>\n        <h2>{{chapter_title}}</h2>\n    </dt>\n\n\n\n\n</dl>\n{{/chapters}}'}),define("text!app/modules/player/views/templates/tmpl-audience-card.html",[],function(){return'<div class="audience-card-img">\n\n</div>'}),define("app/modules/player/views/player-audience-view",["require","underscore","jquery","backbone","app/base-classes/base-view","mustache","text!app/modules/player/views/templates/tmpl-audience-card.html","TweenMax"],function(e){var t=e("underscore"),n=e("jquery"),r=e("backbone"),i=e("app/base-classes/base-view"),s=e("mustache"),o=e("text!app/modules/player/views/templates/tmpl-audience-card.html"),u=e("TweenMax"),a=i.extend({className:"audience-card",tagName:"div",initialize:function(e){this.debug=!1,this.init(),this.Evt=e,boeing_globals.addAudienceCardBool=!1,this.Evt.listenToOnce(this,"AUDIENCE_CARD_FADEOUT_EVENT",this.Evt.onAudienceCardFadeout)},events:{},start:function(){},removeFromStage:function(){this.cleanUp()},cleanUp:function(){this.undelegateEvents(),this.remove()},afterChapterRender:function(){},sendFadeOutEvent:function(){this.trigger("AUDIENCE_CARD_FADEOUT_EVENT")},afterRender:function(){var e=3400,t=e-250;window.setTimeout(this.sendFadeOutEvent.bind(this),t),u.set(this.el,{opacity:0});var n=new TimelineMax;n.to(this.el,.5,{opacity:1,ease:Sine.easeInOut}),n.to(this.el,.75,{opacity:0,ease:Sine.easeInOut,delay:2.5,onComplete:this.removeFromStage.bind(this)})},render:function(){var e=s.to_html(o);return n(this.el).html(e),this.afterRender(),this.el}});return a}),define("app/modules/home/views/mobile-views/year2/mobile-chapters-y2-view",["require","underscore","jquery","backbone","app/base-classes/base-view","app/modules/home/models/model","text!app/modules/home/views/templates/tmpl-mobile-chapter
1s-y2.html","app/modules/home/views/mobile-views/year2/episode-thumb-item-y2-view","app/modules/player/views/player-audience-view","mustache","FTScroller","Draggable","jquery-mobile","TweenMax"],function(e){var t=e("underscore"),n=e("jquery"),r=e("backbone"),i=e("app/base-classes/base-view"),s=e("app/modules/home/models/model"),o=e("text!app/modules/home/views/templates/tmpl-mobile-chapters-y2.html"),u=e("app/modules/home/views/mobile-views/year2/episode-thumb-item-y2-view"),a=e("app/modules/player/views/player-audience-view"),f=e("mustache"),l=e("FTScroller"),c=e("Draggable"),h=e("jquery-mobile"),p=e("TweenMax"),d=i.extend({tagName:"article",className:"sub-items-view",id:"mobile-chapters-view",initialize:function(e,t,r,i){this.debug=!0,this.Evt=e,this.num=t,this.collection=r,this.parentId=i,this.init(),this.$parent=n("#mobile-chapter-topics-holder-view"),this.Evt.listenTo(this,"BUTTON_EVENT",this.Evt.onSubviewEvent),this.listenTo(this.Evt,"REMOVE_SUBVIEWS_EVENT",this.cleanUp.bind(this)),this.listenTo(this.Evt,"RESET_EPISODES_EVENT",this.onResetEpisodes.bind(this)),this.listenTo(this.Evt,"REMOVE_MOBILE_CONTENT_EVENT",this.cleanUp.bind(this)),this.Evt.listenTo(this,"LAUNCH_PLAYER_EVENT",this.Evt.onLaunchPlayerEvent),this.listenTo(this.Evt,"REMOVE_MOBILE_SUBVIEWS_EVENT",this.onRemoveMobileSubviewsEvent.bind(this))},events:{},onRemoveMobileSubviewsEvent:function(e){var t=e.id;t===this.parentId&&this.removeFromStage()},removeFromStage:function(){this.cleanUp()},cleanUp:function(){this.undelegateEvents(),this.remove()},onResetEpisodes:function(){this.cleanUp()},resetDraggable:function(){boeing_globals.homeDraggable.update()},onEpisodeClicked:function(e){this.cleanUp()},addEvents:function(){},getUserDataArray:function(){var e=[],t=window.localStorage.getItem("boeingUserData");if(t!==null){var n=JSON.parse(t)[this.num];n!==undefined&&n.viewed_chapters!==undefined&&(e=n.viewed_chapters)}return e},addChapters:function(){var e=this.collection.toJSON().chapters,r=this.getUserDataArray(),i=function(e){var n=t.has(r,e);return n===!0?"replay":""},s=boeing_globals.uiTextModel.get("chapter"),u=function(e,t){e.chapter_number=t+1,e.episode_num=this.num,e.chapterStr=s,e.replayClass=i(t)};t.map(e,u.bind(this));var a={chapterStr:s,chapters:e},l=f.to_html(o,a);n(this.el).append(l),n(this.el).find("dl").on("tap",this.onChapterItemsClicked.bind(this))},onChapterItemsClicked:function(e){var t=n(e.currentTarget),r=t.data(),i=r.num*1-1,s=r.episode_num;t.addClass("replay");var o={currentPage:"player",currentChapter:i,currentEpisode:s},u=this.gaMixins.getEventLabel(s+1,i+1);this.gaMixins.sendClickEvent("click","nav-menuchapters"),this.trigger("LAUNCH_PLAYER_EVENT",o),console.log("the data launch player 7 is ",o,t),this.trigger("LAUNCH_PLAYER_EVENT",o);var f=function(){if(boeing_globals.state.get("currentPage")==="player")if(window.vidjs!==undefined&&window.vidjs.el()!==null)if(boeing_globals.addAudienceCardBool!==undefined&&boeing_globals.addAudienceCardBool===!0){var e=new a(this.Evt);n("#bng-ui").append(e.render()),window.setTimeout(f.bind(this),3e3)}else window.vidjs.play();else window.setTimeout(f.bind(this),1e3);console.log("click finding video js video is ",window.vidjs)};boeing_globals.device==="mobile"&&boeing_globals.state.get("currentPage")==="player"&&window.setTimeout(f.bind(this),1e3)},afterRender:function(){this.addChapters()},render:function(){return this.afterRender(),this.el}});return d}),define("text!app/modules/home/views/templates/tmpl-mobile-topics-y2.html",[],function(){return'    {{#topics}}\n\n <dl class="mobile-sub-item mobile-topics-item"   data-type="topic" data-topic="{{num}}"  data-topic-escaped-title="{{escaped_title}}"   >\n     <dd>\n         <img src="{{topic_thumbnail}}" width="100%" />\n     </dd>\n\n    <dt>\n        <h2>{{title}}</h2>\n    </dt>\n\n\n\n</dl>\n{{/topics}}'}),define("app/modules/home/views/mobile-views/year2/mobile-topics-y2-view",["require","underscore","jquery","backbone","app/base-classes/base-view","app/modules/home/models/model","text!app/modules/home/views/templates/tmpl-mobile-topics-y2.html","app/modules/home/views/mobile-views/year2/episode-thumb-item-y2-view","mustache","FTScroller","Draggable","jquery-mobile","TweenMax"],function(e){var t=e("underscore"),n=e("jquery"),r=e("backbone"),i=e("app/base-classes/base-view"),s=e("app/modules/home/models/model"),o=e("text!app/modules/home/views/templates/tmpl-mobile-topics-y2.html"),u=e("app/modules/home/views/mobile-views/year2/episode-thumb-item-y2-view"),a=e("mustache"),f=e("FTScroller"),l=e("Draggable"),c=e("jquery-mobile"),h=e("TweenMax"),p=i.extend({tagName:"article",className:"sub-items-view hide",id:"mobile-topics-view",initialize:function(e,t,r){this.debug=!1,this.Evt=e,this.num=t,this.parentId=r,this.init(),this.$parent=n("#home-content"),this.Evt.listenTo(this,"BUTTON_EVENT",this.Evt.onSubviewEvent),this.listenTo(this.Evt,"REMOVE_SUBVIEWS_EVENT",this.cleanUp.bind(this)),this.listenTo(this.Evt,"REMOVE_MOBILE_CONTENT_EVENT",this.cleanUp.bind(this)),this.listenTo(this.Evt,"RESET_EPISODES_EVENT",this.onResetEpisodes.bind(this)),this.listenTo(this.Evt,"REMOVE_MOBILE_SUBVIEWS_EVENT",this.onRemoveMobileSubviewsEvent.bind(this)),this.Evt.listenTo(this,"LAUNCH_PLAYER_EVENT",this.Evt.onLaunchPlayerEvent)},events:{},onRemoveMobileSubviewsEvent:function(e){var t=e.id;t===this.parentId&&this.removeFromStage()},removeFromStage:function(){this.cleanUp()},onResetEpisodes:function(){this.cleanUp()},cleanUp:function(){this.undelegateEvents(),this.remove()},onEpisodeClicked:function(e){},addEvents:function(){},getTopics:function(){var e=boeing_globals.topicsCollection,n=this.num*1+1,r=e.where({topic_episode_number:String(n)}),i=[],s=function(e,t){var n=e.attributes;n.topic_thumbnail=n.image.sizes["boeing-thumb-600"],i.push(n)};return t.map(r,s),i},addTopics:function(){var e=this.getTopics(),t={topics:e},r=a.to_html(o,t);n(this.el).append(r),n(this.el).find("dl").on("click",this.onTopicItemsClicked.bind(this))},onTopicItemsClicked:function(e){var t=n(e.currentTarget),r=t.data(),i={topic_num:r.topic,currentTopic:r.topic,topicEscapedTitle:r.topicEscapedTitle,currentPage:"topics",loadMenu:!1,theEl:t};console.log("DATA TGT ",t,i),this.trigger("LAUNCH_PLAYER_EVENT",i),console.log("the data is ",i,t);var s=function(){window.vidjs!=undefined&&vidjs.el()!=undefined?window.vidjs.pause():window.setTimeout(s.bind(this),1e3)};boeing_globals.device=="mobile"&&window.setTimeout(s.bind(this),1e3)},afterRender:function(){this.addEvents(),this.addTopics()},render:function(){return this.afterRender(),this.el}});return p}),define("app/modules/home/views/mobile-views/year2/mobile-chapter
1s-topics-holder-y2-view",["require","underscore","jquery","backbone","app/base-classes/base-view","app/modules/home/models/model","text!app/modules/home/views/templates/tmpl-mobile-chapter-topics-holder-y2.html","app/modules/home/views/mobile-views/year2/mobile-chapters-y2-view","app/modules/home/views/mobile-views/year2/mobile-topics-y2-view","mustache","FTScroller","Draggable","jquery-mobile","TweenMax"],function(e){var t=e("underscore"),n=e("jquery"),r=e("backbone"),i=e("app/base-classes/base-view"),s=e("app/modules/home/models/model"),o=e("text!app/modules/home/views/templates/tmpl-mobile-chapter-topics-holder-y2.html"),u=e("app/modules/home/views/mobile-views/year2/mobile-chapters-y2-view"),a=e("app/modules/home/views/mobile-views/year2/mobile-topics-y2-view"),f=e("mustache"),l=e("FTScroller"),c=e("Draggable"),h=e("jquery-mobile"),p=e("TweenMax"),d=i.extend({tagName:"section",id:"mobile-chapter-topics-holder-view",initialize:function(e,t,r,i){this.debug=!0,this.Evt=e,this.num=r,this.parentId=i,this.collection=t,this.init(),this.$parent=n("#home-content"),this.Evt.listenTo(this,"BUTTON_EVENT",this.Evt.onSubviewEvent),this.listenTo(this.Evt,"REMOVE_SUBVIEWS_EVENT",this.cleanUp.bind(this)),this.listenTo(this.Evt,"REMOVE_MOBILE_SUBVIEWS_EVENT",this.onRemoveMobileSubviewsEvent.bind(this))},events:{},onResetEpisodes:function(){n(this.el).addClass("hide")},onRemoveMobileSubviewsEvent:function(e){var t=e.id;t===this.parentId&&this.removeFromStage()},removeFromStage:function(){this.cleanUp()},cleanUp:function(){this.undelegateEvents(),this.remove()},addScrolling:function(){var e=document.getElementById("bng-home");this.scroller=new FTScroller(e,{scrollingY:!1,scrollbars:!0})},resetDraggable:function(){boeing_globals.homeDraggable.update()},onEpisodeNumUpdated:function(e){if(e.num<=0)n(this.el).addClass("hide");else{n(this.el).removeClass("hide");var t=e.num-1,r=this.collection.at(t);this.Evt.trigger("REMOVE_MOBILE_CONTENT_EVENT"),this.reRender(t,r)}},reRender:function(e,t){var r=t,i=e,s=new u(this.Evt,i,r,this.parentId),o=new a(this.Evt,i,this.parentId);n(this.el).append(o.render()),n(this.el).append(s.render())},onToggleSections:function(e){var t=n(e.currentTarget).data("type"),r=t==="topics",i=n(this.el).find("li.toggler.chapters"),s=n(this.el).find("li.toggler.topics"),o=n(this.el).find("#mobile-topics-view"),u=n(this.el).find("#mobile-chapters-view");r===!0?(i.removeClass("selected"),u.addClass("hide"),s.addClass("selected"),o.removeClass("hide")):(i.addClass("selected"),u.removeClass("hide"),s.removeClass("selected"),o.addClass("hide"))},addEvents:function(){n(this.el).find("li.toggler").on("click",this.onToggleSections.bind(this))},afterRender:function(){this.addEvents(),this.reRender(this.num,this.collection)},render:function(){var e=boeing_globals.uiTextModel.get("chapter").initCap(),t=boeing_globals.uiTextModel.get("interactive-library").initCap();e==="Chapter"&&(e+="s");var r={chaptersStr:e,interactiveLibrary:t},i=f.to_html(o,r);return n(this.el).html(i),this.afterRender(),this.el},renderOld:function(){this.data=this.collection.toJSON(),this.data.number=this.num+1,this.data.episode=this.uiTextModel.get("episode");var e=f.to_html(o,this.data);return n(this.el).html(e),this.afterRender(),this.el}});return d}),define("text!app/modules/home/views/templates/tmpl-mobile-episodes-bottom-y2.html",[],function(){return'<h4>{{episodesStr}}</h4>\n<article id="mobile-bottom-nav-holder">\n    <div id="btn-left" class="nav-btn left" data-dir="-1">\n    	<svg xmlns="//www.w3.org/2000/svg" xmlns:xlink="//www.w3.org/1999/xlink" width="11px" height="18px" preserveAspectRatio="xMidYMid" viewBox="0 0 11 18">\n			<path fill-rule="evenodd"  fill="rgb(255, 255, 255)" d="M10.985,15.960 L8.959,17.987 L2.049,11.033 L2.017,11.065 L-0.008,9.038 L0.030,9.000 L-0.008,8.962 L2.017,6.935 L2.049,6.967 L8.959,0.013 L10.985,2.040 L4.069,9.000 L10.985,15.960 Z"/>\n		</svg>\n\n    </div>\n    <ul id="num-nav">\n        {{#data}}\n        <li class="num-{{num}}" data-menu-episode-num="{{episodeNum}}"   >{{num}}</li>\n        {{/data}}\n    </ul>
1\n    <div id="btn-right" class="nav-btn right" data-dir="1">\n    	<svg xmlns="//www.w3.org/2000/svg" xmlns:xlink="//www.w3.org/1999/xlink" width="11px" height="18px" preserveAspectRatio="xMidYMid" viewBox="0 0 11 18">\n			<path fill-rule="evenodd"  fill="rgb(255, 255, 255)" d="M11.008,9.038 L8.983,11.065 L8.951,11.033 L2.041,17.987 L0.015,15.960 L6.931,9.000 L0.015,2.040 L2.041,0.013 L8.951,6.967 L8.983,6.935 L11.008,8.962 L10.970,9.000 L11.008,9.038 Z"/>\n		</svg>\n    </div>\n\n</article>\n\n'}),define("app/modules/home/views/mobile-views/year2/mobile-episode-bottom-y2-view",["require","underscore","jquery","backbone","app/base-classes/base-view","app/modules/home/models/model","text!app/modules/home/views/templates/tmpl-mobile-episodes-bottom-y2.html","mustache","TweenMax"],function(e){var t=e("underscore"),n=e("jquery"),r=e("backbone"),i=e("app/base-classes/base-view"),s=e("app/modules/home/models/model"),o=e("text!app/modules/home/views/templates/tmpl-mobile-episodes-bottom-y2.html"),u=e("mustache"),a=e("TweenMax"),f=i.extend({tagName:"section",id:"mobile-episode-bottom-view",initialize:function(e,t){this.debug=!0,this.Evt=e,this.parentId=t,this.init(),this.$parent=n("#home-content"),this.listenTo(e,"EPISODE_NUM_CHANGED_EVENT",this.onEpisodeNumUpdated.bind(this)),this.Evt.listenTo(this,"EPISODE_THUMB_CLICKED_EVENT",this.Evt.onEpisodeThumbClicked),this.Evt.listenTo(this,"INC_DEC_EPISODES_EVENT",this.Evt.onIncDecEpisodesEvent),this.listenTo(this.Evt,"REMOVE_MOBILE_SUBVIEWS_EVENT",this.onRemoveMobileSubviewsEvent.bind(this))},events:{},onRemoveMobileSubviewsEvent:function(e){var t=e.id;t===this.parentId&&this.removeFromStage()},removeFromStage:function(){this.cleanUp()},cleanUp:function(){this.undelegateEvents(),this.remove()},removeAllSected:function(){this.numItems.removeClass("selected")},onEpisodeNumUpdated:function(e){this.removeAllSected(),e.num>=1&&n(this.el).find("#num-nav li")[e.num-1].classList.add("selected")},onResetEpisodes:function(){},addEvents:function(){},onNumItemClicked:function(e){var t=n(e.currentTarget),r=t.data(),i=r.menuEpisodeNum,s={num:i};this.trigger("EPISODE_THUMB_CLICKED_EVENT",s),this.sendEpisodeClickEvent(i)},sendEpisodeClickEvent:function(e){var t=function(e){return e.replace(/[^A-Z\d\s]/gi,"").replace(/\s/g,"-").toLowerCase()},n=function(e){var n=e+1,r=boeing_globals.episodesCollection.at(e).toJSON().episode_title;return n+"-"+t(r)};this.gaMixins.sendClickEvent("bottom-mobile-episode-nav-click",n(e))},onNavBtnClicked:function(e){var t=n(e.currentTarget),r=t.data(),i=r.dir,s={dir:i};this.trigger("INC_DEC_EPISODES_EVENT",s)},initBottomNav:function(){var e=boeing_globals.state.get("currentMenuEpisodeNumber")*1,t={num:e};this.onEpisodeNumUpdated(t)},afterRender:function(){this.numItems=n(this.el).find("#num-nav li"),this.numItems.on("click",this.onNumItemClicked.bind(this)),this.navBtns=n(this.el).find(".nav-btn"),this.navBtns.on("click",this.onNavBtnClicked.bind(this)),window.setTimeout(this.initBottomNav.bind(this),1e3)},copyright:function(){},getEpisodesData:function(){var e=boeing_globals.episodes_length,t=[],n=function(e){return{episodeNum:e,num:e+1}};for(var r=0;r<e;r++)t.push(n(r));return t},render:function(){var e=boeing_globals.uiTextModel.get("episodes"),t={episodesStr:e,data:this.getEpisodesData()},r=u.to_html(o,t);return n(this.el).html(r),this.afterRender(),this.el}});return f}),define("text!app/modules/home/views/templates/tmpl-mobile-footer.html",[],function(){return'\n<section id="mobile-footer">\n    <ul>\n        <li class="copyright"><p>{{copyright}}</p></li>\n        <li>\n            <ul>\n                <li class="social" data-title="facebook" data-event="link" data-val="https://www.facebook.com/sharer/sharer.php?u=http%3A%2F%2Ftheageofaerospace.com">\n                    <a href="#" title="Facebook" class="facebook-cta">\n                        <svg xmlns="//www.w3.org/2000/svg" xmlns:xlink="//www.w3.org/1999/xlink" preserveAspectRatio="xMidYMid" width="6.72" height="14.031" viewBox="0 0 6.72 14.031">\n                            <defs>\n                            <style>\n                                .cls-1 {\n                                fill: #fff;\n                                opacity: 0.54;\n                                fill-rule: evenodd;\n                                }\n                            </style>\n                            </defs>\n                            <path d="M2.210,14.014 L2.195,7.474 L0.002,7.474 L0.002,4.813 L2.190,4.813 L2.190,1.749 C2.190,1.749 2.308,0.015 3.519,0.015 C4.731,0.015 6.724,0.015 6.724,0.015 L6.724,2.071 L4.692,2.071 L4.692,4.773 L6.685,4.773 L6.685,7.394 L4.731,7.394 L4.731,14.046 L2.210,14.014 Z" class="cls-1"/>\n                        </svg>\n                    </a>\n                </li>\n                <li class="social" data-title="twitter" data-event="link" data-val="https://twitter.com/intent/tweet?text=The%20epic%20five-part%20series%20explores%20100%20years%20
1of%20flight.%20Watch%20%23TheAgeofAerospace%20at%20THEAGEOFAEROSPACE.COM">\n                    <a href="#" title="Twitter" class="twitter-cta">\n                        <svg xmlns="//www.w3.org/2000/svg" xmlns:xlink="//www.w3.org/1999/xlink" preserveAspectRatio="xMidYMid" width="13.53" height="11.156" viewBox="0 0 13.53 11.156">\n                            <defs>\n                            <style>\n                                .cls-1 {\n                                fill: #fff;\n                                opacity: 0.54;\n                                fill-rule: evenodd;\n                                }\n                            </style>\n                            </defs>\n                            <path d="M13.517,1.334 C13.020,1.558 12.485,1.709 11.924,1.777 C12.497,1.429 12.936,0.877 13.144,0.220 C12.607,0.542 12.014,0.777 11.382,0.903 C10.876,0.356 10.155,0.014 9.357,0.014 C7.825,0.014 6.583,1.274 6.583,2.829 C6.583,3.049 6.607,3.264 6.655,3.470 C4.349,3.353 2.305,2.232 0.936,0.529 C0.698,0.945 0.561,1.428 0.561,1.944 C0.561,2.921 1.051,3.782 1.795,4.287 C1.340,4.272 0.913,4.146 0.539,3.935 C0.538,3.947 0.538,3.959 0.538,3.970 C0.538,5.334 1.495,6.472 2.764,6.730 C2.531,6.795 2.286,6.829 2.033,6.829 C1.854,6.829 1.680,6.811 1.511,6.779 C1.864,7.897 2.888,8.711 4.102,8.733 C3.153,9.488 1.957,9.938 0.657,9.938 C0.433,9.938 0.212,9.925 -0.005,9.899 C1.223,10.698 2.681,11.164 4.248,11.164 C9.350,11.164 12.141,6.875 12.141,3.155 C12.141,3.033 12.138,2.912 12.133,2.791 C12.675,2.394 13.145,1.898 13.517,1.334 Z" class="cls-1"/>\n                        </svg>\n                    </a>\n                </li>\n            </ul>\n        </li>\n    </ul>\n</section>'}),define("app/modules/home/views/mobile-views/year2/episode-page-y2-view",["require","underscore","jquery","app/base-classes/base-view","mustache","app/modules/home/views/mobile-views/year2/episode-header-image-y2-view","app/modules/home/views/mobile-views/year2/episode-thumbs-holder-y2-view","app/modules/home/views/mobile-views/year2/mobile-chapters-topics-holder-y2-view","app/modules/home/views/episode-topics-surfacing-view","app/modules/home/views/mobile-views/year2/mobile-episode-bottom-y2-view","text!app/modules/home/views/templates/tmpl-mobile-footer.html"],function(e){var t=e("underscore"),n=e("jquery"),r=e("app/base-classes/base-view"),i=e("mustache"),s=e("app/modules/home/views/mobile-views/year2/episode-header-image-y2-view"),o=e("app/modules/home/views/mobile-views/year2/episode-thumbs-holder-y2-view"),u=e("app/modules/home/views/mobile-views/year2/mobile-chapters-topics-holder-y2-view"),a=e("app/modules/home/views/episode-topics-surfacing-view"),f=e("app/modules/home/views/mobile-views/year2/mobile-episode-bottom-y2-view"),l=e("text!app/modules/home/views/templates/tmpl-mobile-footer.html"),c=r.extend({tagName:"li",className:"",id:"mobile-page-view",initialize:function(e,t,n){this.debug=!0,this.Evt=e,this.collection=t,this.customId=this.createCustomId(),this.num=undefined,n!==undefined&&(this.num=n,this.model=this.collection.at(this.num)),this.init(),this.listenTo(this.Evt,"PAGES_HOLDER_EVENT",this.onPagesHolderEvent.bind(this)),this.Evt.listenTo(this,"REMOVE_MOBILE_SUBVIEWS_EVENT",this.Evt.onRemoveMobileSubviewsEvent)},createCustomId:function(){var e=Math.floor(Math.random(1e6)*1e6);return"cid-"+e},events:{},onPagesHolderEvent:function(e){var r=e.carouselArr,i=t.contains(r,this.num)!==!0,s=n(this.el).hasClass("remove");(i===!0||s===!0)&&this.removeFromStage()},removeFromStage:function(){this.trigger("REMOVE_MOBILE_SUBVIEWS_EVENT",{id:this.customId}),this.cleanUp()},cleanUp:function(){this.undelegateEvents(),this.remove()},onRelease:function(e){},onDragComplete:function(e){var t=window.innerWidth,r=Math.abs(n("#mobile-header-image-holder-view").position().left),i=r-t,s=0;if(i!==0){s=i<0?-1:1;var o={dir:s};this.trigger("INC_DEC_EPISODES_EVENT",o)}},addSwiping:function(){var e=window.innerWidth;this.draggable=Draggable.create(n(this.el),{type:"x",cursor:"auto",edgeResistance:1,resistance:.2,zIndexBoost:!1,minimumMovement:6,force3D:!0,maxDuration:.5,onRelease:this.onRelease.bind(this),onThrowComplete:this.onDragComplete.bind(this),bounds:{minX:window.innerWidth*-1,maxX:window.innerWidth},ease:Strong.easeOut,throwProps:!0,snap:{x:function(t){return Math.round(t/e)*e}}})[0],console.log("SWIPING ADDED ",this.draggable)},onResetEpisodes:function(){this.renderDefault(),n(this.el).addClass("default")},getEpisodesArr:function(e){var t=e,n=function(e){var t=boeing_globals.episodes_length-1,n=0;return e>t?n:e<n?t:e};return[n(t-1),t,n(t+1)]},addEpisodeImageView:function(e){var t=new s(this.Evt,this.collection,e);this.el.append(t.render())},onEpisodeNumUpdated:function(e){if(e.num===null||e.num===0)this.renderDefault();else{this.allowEpisodeCarouselBool===!1,this.allowEpisodeCarouselBool=!0;var n=e.num-1,r=this.getEpisodesArr(n);t.each(r,this.addEpisodeImageView.bind(this)),this.setPosition()}},afterRender:function(){this.num===undefined&&n(this.el).addClass("default");var e=function(){var e=new s(this.Evt,this.collection,this.num,this.customId);n(this.el).prepend(e.render())};window.setTimeout(e.bind(this),10);if(this.num!==undefined){var t=new u(this.Evt,this.model,this.num,this.customId);n(this.el).append(t.render())}else{var r=new o(this.Evt,this.collection,this.customId);n(this.el).append(r.render())}var c="mobile "+this.customId;n(this.el).addClass(c);
1if(this.episodeTopicsSurfacingView===undefined){var h=this.num!==undefined?this.num:undefined;this.episodeTopicsSurfacingView=new a(this.Evt,".mobile."+this.customId,this.customId,h)}var p=function(){var e=new f(this.Evt,this.customId);n(this.el).append(e.render());var t=boeing_globals.brand=="boeing"?"copyright-boeing":"copyright",r=i.to_html(l,{copyright:this.uiTextModel.get(t)});n(this.el).append(r)};window.setTimeout(p.bind(this),500)},setPosition:function(e){},renderDefault:function(){window.setTimeout(this.setPosition.bind(this),10)},render:function(){return this.afterRender(),this.el}});return c}),define("app/modules/home/views/mobile-views/year2/episode-proxy-page-y2-view",["require","underscore","jquery","backbone","app/base-classes/base-view","app/modules/home/models/model","mustache","Draggable","jquery-mobile","TweenMax"],function(e){var t=e("underscore"),n=e("jquery"),r=e("backbone"),i=e("app/base-classes/base-view"),s=e("app/modules/home/models/model"),o=e("mustache"),u=e("Draggable"),a=e("jquery-mobile"),f=e("TweenMax"),l=i.extend({tagName:"li",className:"proxy",id:"mobile-page-view",initialize:function(e){this.debug=!0,this.Evt=e,this.init(),this.listenTo(this.Evt,"PAGES_HOLDER_EVENT",this.removeFromStage.bind(this))},events:{},removeFromStage:function(){this.cleanUp()},cleanUp:function(){this.undelegateEvents(),this.remove()},render:function(){return this.el}});return l}),define("app/modules/home/views/mobile-views/year2/episode-page-holder-y2-view",["require","underscore","jquery","app/base-classes/base-view","app/modules/home/views/mobile-views/year2/episode-page-y2-view","app/modules/home/views/mobile-views/year2/episode-proxy-page-y2-view","TweenMax"],function(e){var t=e("underscore"),n=e("jquery"),r=e("app/base-classes/base-view"),i=e("app/modules/home/views/mobile-views/year2/episode-page-y2-view"),s=e("app/modules/home/views/mobile-views/year2/episode-proxy-page-y2-view"),o=e("TweenMax"),u=r.extend({tagName:"ul",className:"default",id:"mobile-pages-holder-view",initialize:function(e,t){this.debug=!0,this.Evt=e,this.collection=t,this.init(),this.episodeNum=boeing_globals.state.get("currentMenuEpisodeNumber"),this.dir=undefined,this.changedFromDragBool=!1,this.$parent=n("#home-content"),this.listenTo(e,"TESTER_EVENT",function(e){console.log("HEADER EP CLICK ",e)}),this.allowEpisodeCarouselBool=!1,this.Evt.listenTo(this,"INC_DEC_EPISODES_EVENT",this.Evt.onIncDecEpisodesEvent),this.Evt.listenTo(this,"PAGES_HOLDER_EVENT",this.Evt.onPagesHolderEvent),this.listenTo(e,"EPISODE_NUM_CHANGED_EVENT",this.onEpisodeNumUpdated.bind(this))},events:{},removeFromStage:function(){this.cleanUp()},cleanUp:function(){this.undelegateEvents(),this.remove()},onRelease:function(e){},onDragComplete:function(e){n("#mobile-pages-holder-view #mobile-page-view").removeClass("scale-down");var t=window.innerWidth,r=Math.abs(n(this.el).position().left),i=r-t,s=0;if(i!==0){s=i<0?-1:1;var o={dir:s};this.dir=s,this.changedFromDragBool=!0,this.trigger("INC_DEC_EPISODES_EVENT",o)}n("#mobile-pages-holder-view #mobile-page-view").attr("style",""),this.draggable.applyBounds({minX:window.innerWidth*-1,maxX:window.innerWidth,minY:0,maxY:this.getMaxHeight()})},onDragStart:function(e){var t=this.draggable.getDirection(),n=t==="left"||t==="right",r=this.episodeNum===null||this.episodeNum*1<0;n===!0&&r===!0&&this.draggable.endDrag()},onDragging:function(e){var t=this.draggable.getDirection(),r=9.7,i=280,s=r/i,o=0,u=.8,a=1,f=t==="left"||t==="right",l=this.episodeNum===null||this.episodeNum*1<0;if(f===!0)if(l===!0)this.draggable.endDrag();else{var c=document.querySelectorAll("#mobile-pages-holder-view #mobile-page-view")[1];o=this.draggable.x*u,a=1-Math.abs(o*s/100),a=a>=.8?a:.8,c.style.cssText="transform:scale("+a+"); opacity: "+a*.7+";"}var h=n("#ui-branding header");this.branding=n(".branding");var p=boeing_globals.state.get("currentMenuEpisodeNumber"),d=p===null||p==="0"&&l,v=Math.abs(n(this.el).position().top);v<100?(h.removeClass("black-bg"),this.hideHeaderBranding(d)):(h.addClass("black-bg"),this.branding.removeClass("hide"))},getMaxHeight:function(){this.containerHeight=n(this.el).height();var e=this.containerHeight-window.innerHeight*.92;return e*=-1,e},setBrandingState:function(){var e=n("#ui-branding header"),t=boeing_globals.state.get("currentPage"),r=boeing_globals.state.get("currentMenuEpisodeNumber"),i=(r===null||r===-1||r==="0")&&t==="home";this.hideHeaderBranding(i),t==="topics"&&e.addClass("black-bg")},hideHeaderBranding:function(e){this.branding=n(".branding"),e?this.branding.addClass("hide"):this.branding.removeClass("hide")},addSwiping:function(){var e=window.innerWidth,t=2;this.draggable=Draggable.create(n(this.el),{type:"x,y",cursor:"auto",edgeResistance:1,dragResistance:.2,zIndexBoost:!1,minimumMovement:t,force3D:!0,lockAxis:!0,maxDuration:.5,onDragStart:this.onDragStart.bind(this),onDrag:this.onDragging.bind(this),onRelease:this.onRelease.bind(this),onThrowComplete:this.onDragComplete.bind(this),bounds:{minX:window.innerWidth*-1,maxX:window.innerWidth,minY:0,maxY:this.getMaxHeight()},ease:Strong.easeOut,throwProps:!0,snap:{x:function(t){return Math.round(t/e)*e}}})[0]},onEpisodeClicked:function(e){console.log("EP CLICKED ",e)},onResetEpisodes:function(){this.renderDefault(),n(this.el).addClass("default")},getEpisodesArr:function(e){var t=e,n=function(e){var t=boeing_globals.episodes_length-1,n=0;return e>t?n:e<n?t:e};return[n(t-1),t,n(t+1)]},addEpisodeImageView:function(e){},getMenuEpisodeData:function(e){var t=this.episodeNum===null,n=this.getEpisodesArr(e),r=e-this.episodeNum*1>=1,i=e-this.episodeNum*1,s=r===!0?1:-1;this.dir!==undefined&&(s=this.dir);if(Math.abs(i)===7||this.changedFromDragBool===!0)i=1;return{isFromHomepage:t,carouselArr:n,dir:s,diff:Math.abs(i),num:e}},addPageFromUpdate:function(e){var t=function(){this.trigger("PAGES_HOLDER_EVENT",e);var t=e.carouselArr;this.setPosition(),this.addItem(t[0],-1),t[2]!=="proxy"&&this.addItem(t[2],1)};n("#mobile-pages-holder-view li#mobile-page-view").addClass("remove"),o.to(n(this.el),.5,{x:-375,ease:Power1.easeInOut,onComplete:t.bind(this)}),e.carouselArr[1]===undefined&&n("#mobile-pages-holder-view li#mobile-page-view")[2]!==undefined&&(n("#mobile-pages-holder-view li#mobile-page-view")[2].style.cssText="display:none"),this.addItem(e.carouselArr[1],1)},onEpisodeNumUpdated:function(e){var t=this.episodeNum===e.num-1;if(e.num===null||e.num===0||t===!0){var n=["proxy",undefined,"proxy"],r={carouselArr:n};this.episodeNum=null,this.addPageFromUpdate(r)}else{var i=this.getMenuEpisodeData(e.num-1);this.episodeNum=e.num-1,this.allowEpisodeCarouselBool=!0;if(i.isFromHomepage===!0||this.changedFromDragBool===!1)this.addPageFromUpdate(i);else{var s=i.dir===-1?i.carouselArr[0]:i.carouselArr[2];this.addItem(s,i.dir),this.trigger("PAGES_HOLDER_EVENT",i),this.setPosition()}}this.dir=undefined,this.changedFromDragBool=!1},setPosition:function(e){var t=document.getElementById("mobile-pages-holder-view");t.hasOwnProperty("_gsTransform")&&(t._gsTransform.x=0,t._gsTransform.y=0),t.setAttribute("style","left:-100%")},renderDefault:function(){},addProxyLi:function(){return n("<li></li>")},addItem:function(e,t){var r;
1e==="proxy"?r=new s(this.Evt):r=new i(this.Evt,this.collection,e),t===1?n(this.el).append(r.render()):n(this.el).prepend(r.render())},reviseCarouselDom:function(e){var r=[this.addProxyLi(),e],i=function(e){n(this.el).append(e)};t.each(r,i.bind(this))},getAllPageViews:function(){var e=this.getEpisodesArr(this.episodeNum),n=[],r=function(e){var t=new i(this.Evt,this.collection,e);n.push(t.render())};return t.each(e,r.bind(this)),n},getHomePageViews:function(){return[(new s(this.Evt)).render(),(new i(this.Evt,this.collection)).render()]},renderViews:function(){var e=this.episodeNum===null,r=this.getHomePageViews();e===!1&&(r=this.getAllPageViews());var i=function(e){n(this.el).append(e)};t.each(r,i.bind(this))},afterRender:function(){window.setTimeout(this.addSwiping.bind(this),1e3),window.setTimeout(this.setBrandingState.bind(this),1e3)},render:function(){return this.afterRender(),this.el}});return u}),define("app/modules/menus/models/model",["require","underscore","jquery","backbone"],function(e){var t=e("underscore"),n=e("jquery"),r=e("backbone"),i=r.Model.extend({defaults:{type:"Feature",text:"ui loaded data from model"},parse:function(e){},initialize:function(e){console.log("model initialized ",e)}});return i}),define("text!app/modules/menus/views/templates/mobile-menu-about-tmpl.html",[],function(){return'<div class="header-close-btn"></div>\n\n<div class="about-content">\n    <div id="scroller" class="centered mobile-about-content">\n        <h3>{{the-age-of}}</h3>\n        <h2>{{aerospace}}</h2>\n\n        <ul>\n            <li>\n                <div class="video">\n                    <video id="about-video" class="video-js vjs-fluid" data-account="800000612001" data-player="cENsmHkkB" data-embed="default" controls="" autoplay muted data-video-id="6215191647001"></video>\n                </div>\n                <div class="copy">\n                    <p>{{about_text_0}}</p>\n                </div>\n            </li>\n\n            <li>\n                <div class="logo">\n                    <img src="../assets/images/Boeing-centennial-logo.png" />\n                </div>\n                <div class="copy">\n                    <p>{{about_text_1}}</p>\n                </div>\n                <div class="link">\n                    <p>{{visit}} <a href="//www.boeing.com/history" title="boeing.com" target="_blank">boeing.com</a></p>\n                </div>\n            </li>\n\n            <li>\n                <div class="logo">\n                    <img src="../assets/images/Doc-Group-logo.png" />\n                </div>\n                <div class="copy">\n                    <p>{{about_text_2}}</p>\n                </div>\n                <div class="link">\n                    <p>{{visit}} <a href="//www.thedocumentarygroup.com" title="thedocumentarygroup.com" target="_blank">thedocumentarygroup.com</a></p>\n                </div>\n            </li>\n\n            <!-- <li id="about-discovery">\n                <div class="logo">\n                    <img src="../assets/images/Discovery-Communications-logo.png" />\n                </div>\n                <div class="copy">\n                    <p>{{about_text_3}}</p>\n                </div>\n                <div class="link">\n                    <p>{{visit}} <a href="//www.discovery.com" title="www.Discovery.com" target="_blank">discovery.com</a></p>\n                </div>\n            </li> -->\n        </ul>\n    </div>\n</div>\n'});var _gsScope="undefined"!=typeof module&&module.exports&&"undefined"!=typeof global?global:this||window;(_gsScope._gsQueue||(_gsScope._gsQueue=[])).push(function(){"use strict";var e=document.documentElement,t=_gsScope,n=function(n,r){var i="x"===r?"Width":"Height",s="scroll"+i,o="client"+i,u=document.body;return n===t||n===e||n===u?Math.max(e[s],u[s])-(t["inner"+i]||e[o]||u[o]):n[s]-n["offset"+i]},r=function(e){return"string"==typeof e&&(e=TweenLite.selector(e)),e.length&&e!==t&&e[0]&&e[0].style&&!e.nodeType&&(e=e[0]),e===t||e.nodeType&&e.style?e:null},i=function(n,r){var i="scroll"+("x"===r?"Left":"Top");return n===t&&(null!=n.pageXOffset?i="page"+r.toUpperCase()+"Offset":n=null!=e[i]?e:document.body),function(){return n[i]}},s=function(n,s){var o=r(n).getBoundingClientRect(),u=!s||s===t||s===document.body,a=(u?e:s).getBoundingClientRect(),f={x:o.left-a.left,y:o.top-a.top};return!u&&s&&(f.x+=i(s,"x")(),f.y+=i(s,"y")()),f},o=function(e,t,r){var i=typeof e;return"number"===i||"string"===i&&"="===e.charAt(1)?e:"max"===e?n(t,r):Math.min(n(t,r),s(e,t)[r])},u=_gsScope._gsDefine.plugin({propName:"scrollTo",API:2,global:!0,version:"1.8.1",init:function(e,n,r){return this._wdw=e===t,this._target=e,this._tween=r,"object"!=typeof n?(n={y:n},"string"==typeof n.y&&"max"!==n.y&&"="!==n.y.charAt(1)&&(n.x=n.y)):n.nodeType&&(n={y:n,x:n}),this.vars=n,this._autoKill=n.autoKill!==!1,this.getX=i(e,"x"),this.getY=i(e,"y"),this.x=this.xPrev=this.getX(),this.y=this.yPrev=this.getY(),null!=n.x?(this._addTween(this,"x",this.x,o(n.x,e,"x")-(n.offsetX||0),"scrollTo_x",!0),this._overwriteProps.push("scrollTo_x")):this.skipX=!0,null!=n.y?(this._addTween(this,"y",this.y,o(n.y,e,"y")-(n.offsetY||0),"scrollTo_y",!0),this._overwriteProps.push("scrollTo_y")):this.skipY=!0,!0},set:function(e){this._super.setRatio.call(this,e);var r=this._wdw||!this.skipX?this.getX():this.xPrev,i=this._wdw||!this.skipY?this.getY():this.yPrev,s=i-this.yPrev,o=r-this.xPrev,a=u.autoKillThreshold;this.x<0&&(this.x=0),this.y<0&&(this.y=0),this._autoKill&&(!this.skipX&&(o>a||-a>o)&&r<n(this._target,"x")&&(this.skipX=!0),!this.skipY&&(s>a||-a>s)&&i<n(this._target,"y")&&(this.skipY=!0),this.skipX&&this.skipY&&(this._tween.kill(),this.vars.onAutoKill&&this.vars.onAutoKill.apply(this.vars.onAutoKillScope||this._tween,this.vars.onAutoKillParam
1s||[]))),this._wdw?t.scrollTo(this.skipX?r:this.x,this.skipY?i:this.y):(this.skipY||(this._target.scrollTop=this.y),this.skipX||(this._target.scrollLeft=this.x)),this.xPrev=this.x,this.yPrev=this.y}}),a=u.prototype;u.max=n,u.getOffset=s,u.autoKillThreshold=7,a._kill=function(e){return e.scrollTo_x&&(this.skipX=!0),e.scrollTo_y&&(this.skipY=!0),this._super._kill.call(this,e)}}),_gsScope._gsDefine&&_gsScope._gsQueue.pop()(),function(e){"use strict";var t=function(){return(_gsScope.GreenSockGlobals||_gsScope)[e]};"function"==typeof define&&define.amd?define("ScrollToPlugin",["TweenLite"],t):"undefined"!=typeof module&&module.exports&&(require("../TweenLite.js"),module.exports=t())}("ScrollToPlugin"),define("app/modules/menus/views/mobile-menu-about-view",["require","underscore","jquery","backbone","app/base-classes/base-view","app/utils/event-mixins","app/modules/menus/models/model","text!app/modules/menus/views/templates/mobile-menu-about-tmpl.html","bc","mustache","TweenMax","Draggable","FTScroller","ScrollToPlugin"],function(e){var t=e("underscore"),n=e("jquery"),r=e("backbone"),i=e("app/base-classes/base-view"),s=e("app/utils/event-mixins"),o=e("app/modules/menus/models/model"),u=e("text!app/modules/menus/views/templates/mobile-menu-about-tmpl.html"),a=e("bc"),f=e("mustache"),l=e("TweenMax"),c=e("Draggable"),h=e("FTScroller"),p=e("ScrollToPlugin"),d=i.extend({id:"mobile-about",className:"mobile-about",tagName:"aside",initialize:function(e){this.debug=!0,this.Evt=e,this.init(),this.formatEventData=s.formatEventData,this.overlayId="about",boeing_globals.state.on("change:loadMenu",this.onLoadMenuChange.bind(this))},onMenuEvent:function(e){e!=this.overlayId&&this.removeFromStage()},events:{},onLoadMenuChange:function(e){var t=boeing_globals.state.get("loadMenu");t==0&&this.removeFromStage()},removeFromStage:function(){l.to(n(this.el),1,{x:n(document).width()*-1,ease:Power2.easeInOut,onComplete:this.cleanUp.bind(this)})},cleanUp:function(){this.aboutVidjs!=undefined&&this.aboutVidjs.dispose(),this.undelegateEvents(),this.Evt.stopListening(this),this.remove()},addScroller:function(){var e=document.getElementById("scroller");e!=undefined&&(this.scroller=new FTScroller(e,{scrollbars:!0,scrollingX:!1}))},setUpVideoJs:function(){var e={controlBar:{volumeMenuButton:{inline:!1,vertical:!0},volumePanel:{inline:!1,vertical:!0}}};try{this.aboutVidjs=a("about-video")}catch(t){console.error("Brightcove Error: ",t)}this.aboutVidjs==null&&(this.aboutVidjs=a("about-video"))},onVideoEndEvent:function(e){this.aboutVidjs.off("ended",this.onVideoEndEvent.bind(this)),this.aboutVidjs.exitFullscreen()},removePlayIcon:function(e){n(".about-posterframe").remove(),n("#about-video")[0].play()},addSwiping:function(){var e=n(".about-content").height()*-1;e=e/2-750,this.draggable=Draggable.create(n(this.el).find(".about-content"),{type:"y",cursor:"auto",edgeResistance:.5,zIndexBoost:!0,minimumMovement:6,bounds:{minY:e,maxY:0},lockAxis:!0,throwProps:!0})[0]},afterRender:function(){this.videoEl="#about-video";var e=function(){this.videoDom=document.querySelector(this.videoEl);var e=function(){this.videoDom.webkitExitFullScreen()};this.videoDom.addEventListener("ended",e.bind(this),!1)},t=function(){n(this.el).find(".video").on("click",this.removePlayIcon.bind(this)),this.addSwiping(),boeing_globals.isInternational=="true"&&n("#about-discovery").remove(),n("#about-discovery-link").remove()},r=function(){this.setUpVideoJs()};window.setTimeout(r.bind(this),100),window.setTimeout(t.bind(this),1e3),window.setTimeout(e.bind(this),2e3),n(this.el).find(".close-btn").on("click",this.onCloseBtnClick.bind(this))},onCloseBtnClick:function(){this.removeFromStage()},afterRenderOld:function(){var e=window.innerWidth*-1;l.from(n(this.id),1,{x:e,ease:Power2.easeInOut}),this.videoEl="#about-video",this.setUpVideoJs(),n("#about-video").on("click",this.removePlayIcon.bind(this)),n(this.el).find(".close-btn").on("click",this.onCloseBtnClick.bind(this))},getAboutData:function(){var e=this.uiTextModel.get("visit"),n={};n["the-age-of"]=this.uiTextModel.get("the-age-of"),n.aerospace=this.uiTextModel.get("aerospace"),n.visit=e;var r=function(e,t){var r="about_text_"+String(t);n[r]=e},i=this.uiTextModel.get("about-text");return t.each(i,r.bind(this)),n},render:function(){this.data=this.getAboutData();var e=f.to_html(u,this.data);return n(this.el).append(e),this.afterRender(),this.el}});return d}),define("text!app/modules/menus/views/templates/mobile-menu-overlay-tmpl.html",[],function(){return'<section id="menu-scroll-holder">\n    <ol class="mobile-menu-items-list">\n        <li class="mobile-menu-item home-btn" id="home-nav" data-event="closeMenu" data-value="false">\n            <a>{{home}}</a>\n        </li>\n\n        <li class="mobile-menu-item toggle episodes" data-event="episodes">\n            <a>{{episodeStr}}<span class="arrow"></span></a>\n            <dl>\n                {{#episodes}}\n                <dd data-type="episodes" data-episode="{{episode_num}}">{{episode_label}}. {{episode_title}}</dd>\n                {{/episodes}}\n            </dl>\n        </li>\n\n        <li class="mobile-menu-item toggle library" data-event="interactive-library">\n            <a>{{interactiveLibrary}}<span class="arrow"></span></a>\n            <dl>\n                {{#topics}}\n                <dd data-type="topics" data-topic="{{num}}" data-topic-escaped-title="{{escaped_title}}">{{title}}</dd>\n                {{/topics}}\n            </dl>\n        </li>\n\n        <li class="mobile-menu-item about" data-event="about">\n            <a>{{about}}</a>\n        </li>\n    </ol>\n</section>\n\n<section class="nav-links">\n    <ul class="menu-link-outs">\n        <li data-event="link" data-val="//boeing.com/history">\n            <a>Boeing</a>\n        </li>\n\n        <!-- <li id="about-discovery-link" class="branding" data-event="link" data-val="//discovery.com">\n            <a>Discovery</a>\n        </li> -->\n\n        <li class="social" data-title="facebook" data-event="link" data-val="https://www.facebook.com/sharer/sharer.php?u=http%3A%2F%2Ftheageofaerospace.com">\n            <a href="#" title="Facebook" class="facebook-cta"\n                >Facebook\n                <svg xmlns="//www.w3.org/2000/svg" xmlns:xlink="//www.w3.org/1999/xlink" preserveAspectRatio="xMidYMid" width="6.72" height="14.031" viewBox="0 0 6.72 14.031">\n                    <defs>\n                        <style>\n                            .cls-1 {\n                                fill: #fff;\n                                opacity: 0.54;\n                                fill-rule: evenodd;\n                            }\n                        </style>\n                    </defs>\n                    <path\n                        d="M2.210,14.014 L2.195,7.474 L0.002,7.474 L0.002,4.813 L2.190,4.813 L2.190,1.749 C2.190,1.749 2.308,0.015 3.519,0.015 C4.731,0.015 6.724,0.015 6.724,0.015 L6.724,2.071 L4.692,2.071 L4.692,4.773 L6.685,4.773 L6.685,7.394 L4.731,7.394 L4.731,14.046 L2.210,14.014 Z"\n                        class="cls-1"\n                    />\n                </svg>\n            </a>\n        </li>\n        <li\n            class="social right"\n            data-title="twitter"\n            data-event="link"\n            data-val="https://twitter.com/intent/tweet?text=The%20epic%20five-part%20series%20explores%20100%20years%20
1of%20flight.%20Watch%20%23TheAgeofAerospace%20at%20THEAGEOFAEROSPACE.COM"\n        >\n            <a href="#" title="Twitter" class="twitter-cta"\n                >Twitter\n                <svg xmlns="//www.w3.org/2000/svg" xmlns:xlink="//www.w3.org/1999/xlink" preserveAspectRatio="xMidYMid" width="13.53" height="11.156" viewBox="0 0 13.53 11.156">\n                    <defs>\n                        <style>\n                            .cls-1 {\n                                fill: #fff;\n                                opacity: 0.54;\n                                fill-rule: evenodd;\n                            }\n                        </style>\n                    </defs>\n                    <path\n                        d="M13.517,1.334 C13.020,1.558 12.485,1.709 11.924,1.777 C12.497,1.429 12.936,0.877 13.144,0.220 C12.607,0.542 12.014,0.777 11.382,0.903 C10.876,0.356 10.155,0.014 9.357,0.014 C7.825,0.014 6.583,1.274 6.583,2.829 C6.583,3.049 6.607,3.264 6.655,3.470 C4.349,3.353 2.305,2.232 0.936,0.529 C0.698,0.945 0.561,1.428 0.561,1.944 C0.561,2.921 1.051,3.782 1.795,4.287 C1.340,4.272 0.913,4.146 0.539,3.935 C0.538,3.947 0.538,3.959 0.538,3.970 C0.538,5.334 1.495,6.472 2.764,6.730 C2.531,6.795 2.286,6.829 2.033,6.829 C1.854,6.829 1.680,6.811 1.511,6.779 C1.864,7.897 2.888,8.711 4.102,8.733 C3.153,9.488 1.957,9.938 0.657,9.938 C0.433,9.938 0.212,9.925 -0.005,9.899 C1.223,10.698 2.681,11.164 4.248,11.164 C9.350,11.164 12.141,6.875 12.141,3.155 C12.141,3.033 12.138,2.912 12.133,2.791 C12.675,2.394 13.145,1.898 13.517,1.334 Z"\n                        class="cls-1"\n                    />\n                </svg>\n            </a>\n        </li>\n    </ul>\n    <ul class="menu-link-outs">\n        <li style="max-width: none" data-event="link" data-title="Privacy and Cookie Statement" data-val="//www.boeing.com/privacy-and-cookie-policy.page">\n            <a>Privacy and Cookie Statement</a>\n        </li>\n    </ul>\n    <div class="copyright">\n        <p>{{copyright}}</p>\n    </div>\n</section>\n'}),define("app/utils/helper-mixins",["require"],function(e){var t={openSocialLink:function(e,t,n){e=="facebook"?this.openFacebookShareLink():e=="twitter"&&this.openTwitterIntentLink()},openFacebookShareLink:function(e,t){var n=!1;e!=undefined&&(n=e);var r=this.getFacebookShareLink(n);window.open(r)},getFacebookShareLink:function(e,t){var n=!1;e!=undefined&&(n=e);var r="http://"+window.location.hostname,i=window.location.pathname,s="https://www.facebook.com/sharer/sharer.php?u="+encodeURIComponent(r);return n==1&&(s+=i),s},openTwitterIntentLink:function(e,t){var n=!1;e!=undefined&&(n=e);var r=this.getDefaultTwitterText();r=encodeURIComponent(r);var i="https://twitter.com/intent/tweet?text=";window.open(i+r)},getTwitterUrl:function(){var e="https://twitter.com/intent/tweet?text=",t=this.getTwitterText();return e+t},getTwitterText:function(){var e=this.getTopicsTwitterText();return e!=undefined&&e.length>1?e=$(e).text():e=this.getDefaultTwitterText(),encodeURIComponent(e)},getDefaultTwitterText:function(){return boeing_globals.uiTextModel.get("page-og-description")},getTopicsTwitterText:function(){var e=boeing_globals.topicsCollection,t=boeing_globals.state.get("currentTopic");return e.at(t).toJSON().twitter_text},get_GA_UI_Object:function(e){},cleanUpBoolean:function(e){return e==="true"?!0:e==="false"?!1:e}};return t}),define("app/modules/menus/views/mobile-menu-overlay",["require","underscore","jquery","backbone","app/base-classes/base-view","app/modules/menus/views/mobile-menu-about-view","text!app/modules/menus/views/templates/mobile-menu-overlay-tmpl.html","app/utils/helper-mixins","mustache","bc","TweenMax"],function(e){var t=e("underscore"),n=e("jquery"),r=e("backbone"),i=e("app/base-classes/base-view"),s=e("app/modules/menus/views/mobile-menu-about-view"),o=e("text!app/modules/menus/views/templates/mobile-menu-overlay-tmpl.html"),u=e("app/utils/helper-mixins"),a=e("mustache"),f=e("bc"),l=e("TweenMax"),c=i.extend({id:"mobile-menu-overlay",tagName:"div",initialize:function(e,t){this.debug=!0,this.Evt=e,this.Evt.listenTo(this,"LAUNCH_PLAYER_EVENT",this.Evt.onLaunchPlayerEvent),boeing_globals.state.on("change:loadMenu",this.onLoadMenuChange.bind(this)),this.init()},onMenuEvent:function(e){},events:{"click #my-button":"onBtnClick","click dl.menu-item":"onClickTopicItem","click .episode-content span svg":"tabletPortrait_openSubMenu","click .close-sub-menu-btn svg":"tabletPortrait_closeSubMenu"},onLoadMenuChange:function(e){this.resetAllPulldowns(),n(".mobile-menu-items-list").attr("style",""),this.draggable.y=0,e.attributes.loadMenu===!0?n("#mobile-menu-overlay").addClass("active"):n("#mobile-menu-overlay").removeClass("active")},removeFromStage:function(){this.cleanUp()},cleanUp:function(){this.undelegateEvents(),this.contentView!=undefined&&(this.contentView.cleanUp(),this.contentView==undefined),this.Evt.off("MENU_EVENT"),this.remove()},onCloseBtnClick:function(e){var t=n(e.currentTarget),r=t.data("event"),i=t.data("val");if(n(t).parent().hasClass("active")===!0||n("#mobile-menu-overlay").hasClass("active")===!0)n(t).parent().removeClass("active"),boeing_globals.state.set({loadMenu:!1,currentPage:"home",currentMenuEpisodeNumber:-1});this.hideMenuOverlay()},hideMenuOverlay:function(){n("#mobile-menu-overlay").removeClass("active"),n(".mobile-menu-items-list").attr("style",""),n(".menu-icon img").attr("src","../assets/images/icons/hamburger.svg");if(boeing_globals.state.get("currentPage")==="topics"){var e=n("#ui-branding header");e.addClass("black-bg");var t=n(".branding");t.removeClass("hide")}this.resetAllPulldowns()},onButtonsClick:function(e){var t=n(e.currentTarget),r=t.data("event"),i=t.data("val");if(r==="about"){var o=function(){var e=new s(this.Evt);n("#bng-ui").prepend(e.render())};window.setTimeout(o.bind(this),100)}else if(r==="link"){var a=t.data("title");a=="facebook"||a=="twitter"?u.openSocialLink(a):(this.gaMixins.sendClickEvent("click","nav-linkout"),this.openWindowEvent(i)),e.preventDefault()}},openWindowEvent:function(e){window.open(e)},onButtonsClick2:function(e){var t=n(e.currentTarget),r=t.data("event"),i=t.data("val");r=="closeMenu"&&n(t).parent().hasClass("active")==1&&(n(t).parent().removeClass("active"),boeing_globals.state.set("loadMenu",!1),n(".menu-icon img").attr("src","../assets/images/icons/hamburger.svg"));if(r=="about"){this.console.log("ABOUT IS ABOUT TO HAPPEN ",r,e);var o=new s(this.Evt);n(this.el).append(o.render())}n(e.preventDefault()),this.console.log("target is ",t,t.data("val"))},openWindowEvent:function(e){window.open(e)},setUpVideoJs:function(){var e={controlBar:{volumeMenuButton:{inline:!1,vertical:!0},volumePanel:{inline:!1,vertical:!0}}};try{this.aboutVidjs=f(this.videoEl)}catch(t){console.error("Brightcove Error: ",t)}this.aboutVidjs==null&&(this.aboutVidjs=f(this.videoEl)),window.aboutVidjs=this.aboutVidjs},removePlayIcon:function(e){n(".about-posterframe").remove(),n("#about-video")[0].play(),this.console.log("here is a thing ",e)},fadeInBranding:function(e){var t,r;t="Boeing",r="//boeing.com",n(".branding").attr("data-val",r),n(".branding").data("title",t),n(".branding").find("a").text(t)},getMaxHeight:function(){this.containerHeight=n(".mobile-menu-items-list").height();var e=this.containerHeight-window.innerHeight*.8;return e*=-1,e},onDragEnd:function(e){var t=function(){this.draggable.applyBounds({minY:this.getMaxHeight(),maxY:0})};window.setTimeout(t.bind(this),500)},addSwiping:function(){this.draggable=Draggable.create(".mobile-menu-items-list",{type:"y",cursor:"auto",edgeResistance:1,bounds:{minY:this.getMaxHeight(),maxY:0},resistance:.2,zIndexBoost:!1,minimumMovement:6,force3D:!0,ease:Strong.easeOut,throwProps:!0})[0],this.draggable.addEventListener("dragend",this.onDragEnd.bind(this)),boeing_globals.homeDraggable=this.draggable,this.console.log("  SWIPING METHOD: ",this.draggable,this)},checkBottomLinkPos:function(){var e=function(){var e=n(".mobile-menu-items-list"),t=e.height(),r=window.innerHeight-t>0,i=n(this.el).find("li.nav-links"),s="0px";if(r===!0){var o=window.innerHeight-t-140;s=o+"px"}i.css("margin-top",s)};window.setTimeout(e.bind(this),100)},resetAllPulldowns:function(){n(this.el).find(".mobile-menu-item").removeClass("active")},onTogglePulldown:function(e){var t=n(e.currentTarget).parent(),r=t.data("event");this.checkBottomLinkPos(),r==="episodes"?n(this.el).find(".mobile-menu-item.toggle.library").removeClass("active"):n(this.el).find(".mobile-menu-item.toggle.episodes").removeClass("active"),t.toggleClass("active"),this.onDragEnd(null)},onEpisodeAndTopicClick:function(e){var t=n(e.currentTarget),r=t.data();console.log("tgt data",t,r),r.type==="topics"?(this.onTopicItemsClicked(r),this.resetAllPulldowns()):(boeing_globals.state.set({loadMenu:!1,currentPage:"home",currentMenuEpisodeNumber:r.episode+1}),this.sendEpisodeClickEvent(r.episode),this.hideMenuOverlay(),this.resetAllPulldowns())},sendEpisodeClickEvent:function(e){var t=function(e){return e.replace(/[^A-Z\d\s]/gi,"").replace(/\s/g,"-").toLowerCase()},n=function(e){var n=e+1,r=boeing_globals.episodesCollection.at(e).toJSON().episode_title;return n+"-"+t(r)};this.gaMixins.sendClickEvent("mobile-menu-episode-nav-click",n(e))},afterRender:function(){this.videoEl="#about-video";var e=function(){n("#mobile-menu-overlay .video").on("click",this.removePlayIcon.bind(this)),n(this.el).find(".home-btn").on("click",this.onCloseBtnClick.bind(this)),n(this.el).find(".mobile-menu-item.toggle a").on("click",this.onTogglePulldown.bind(this)),n(this.el).find(".mobile-menu-item.toggle dd").on("click",this.onEpisodeAndTopicClick.bind(this));var e=boeing_globals.subDirectory;this.fadeInBranding(e),boeing_globals.isInternational=="true"&&(n("#about-discovery-link").remove(),n("#about-discovery").remove()),this.addSwiping(),this.checkBottomLinkPos(),this.onLoadMenuChange(boeing_globals.state)};window.setTimeout(e.bind(this),1e3),n(this.el).find(".menu-link-outs li").on("click",this.onButtonsClick.bind(this)),n(this.el).find("li.mobile-menu-item.about").on("click",this.onButtonsClick.bind(this))},getEpsiodesData:function(){return boeing_globals.episodesCollection.toJSON()},getTopicsData:function(){return boeing_globals.topicsCollection.toJSON()},getData:function(){var e=boeing_globals.brand=="boeing"?"copyright-boeing":"copyright",t=this.uiTextModel.get(e),n=boeing_globals.uiTextModel.get("home"),r=boeing_globals.uiTextModel.get("about"),i=boeing_globals.uiTextModel.get("episodes"),s=boeing_globals.uiTextModel.get("interactive-library");return{home:n.toUpperCase(),about:r.toUpperCase(),episodeStr:i.toUpperCase(),interactiveLibrary:s.toUpperCase(),copyright:t,episodes:this.getEpsiodesData(),topics:this.getTopicsData()}},render:function(){var e=this.getData(),t=a.to_html(o,e);return n(this.el).append(t),this.afterRender(),this.el},onTopicItemsClicked:function(e){var t={topic_num:e.topic,currentTopic:e.topic,topicEscapedTitle:e.topicEscapedTitle,currentPage:"topics",loadMenu:!1};this.trigger("LAUNCH_PLAYER_EVENT",t);var n=function(){window.vidjs!=undefined&&vidjs.el()!=undefined?window.vidjs.pause():window.setTimeout(n.bind(this),1e3)};boeing_globals.device==="mobile",this.hideMenuOverlay()},onLaunchPlayer:function(e){var t={currentMenuEpisodeNumber:e-1,loadMenu:!1,currentPage:"home"};this.trigger("LAUNCH_PLAYER_EVENT",t)}});return c}),define("app/modules/home/views/view-mobile",["require","jquery","app/base-classes/base-view","app/modules/home/views/mobile-views/year2/episode-page-holder-y2-view","app/modules/menus/views/mobile-menu-overlay","TweenMax"],function(e){var t=e("jquery"),n=e("app/base-classes/base-view"),r=e("app/modules/home/views/mobile-views/year2/episode-page-holder-y2-view"),i=e("app/modules/menus/views/mobile-menu-overlay"),s=e("TweenMax"),o;return o=n.extend({id:"home-content",className:"list-content",initialize:function(e,n){this.debug=!0,this.init(),this.Evt=e,this.collection=n,this.Evt.listenTo(this,"BUTTON_EVENT",this.Evt.onSubviewEvent),this.$parent=t("#bng-home"),this.render(),this.listenTo(this.Evt,"REMOVE_SUBVIEWS_EVENT",this.cleanUp.bind(this)),boeing_globals.state.on("change:loadMenu",this.onLoadMenuChange.bind(this)),this.initialized=!1,this.currentEpisode=boeing_globals.state.get("currentEpisode")},events:{},start:function(){this.initialized===!1&&(this.mobileMenuOverlay=new i(this.Evt),t("#bng-ui").append(this.mobileMenuOverlay.render()),this.afterRender()),this.initialized=!0},onLoadMenuChange:function(){s.to(this.$el,.75,{y:0,ease:Power1.easeOut}),this.hideHeaderBranding()},onMenuLoaded:function(){var e=boeing_globals.state.get("loadMenu"),n=boeing_globals.state.get("currentPage")==="home",r=boeing_globals.state.get("currentPage")==="topics";boeing_globals.state.get("orientation")==="landscape"&&boeing_globals.device==="mobile"&&(e===!0?t("#ui-branding").addClass("menu-loaded"):t("#ui-branding").removeClass("menu-loaded")),e===!0||n===!0?(this.$parent.addClass("layer-up"),this.$parent.removeClass("hide-for-topics")):e===!1&&n===!1&&(this.$parent.removeClass("layer-up"),r===!0&&this.$parent.addClass("hide-for-topics"))},addSwiping:function(){this.setBrandingState();var e=this;this.draggable=Draggable.create("#home-content",{type:"y",cursor:"auto",edgeResistance:1,lockAxis:!0,resistance:.2,zIndexBoost:!1,minimumMovement:6,force3D:!0,ease:Strong.easeOut,throwProps:!0,onDrag:function(){var n=t("#ui-branding header");if(this.y>-100){var r=boeing_globals.state.get("currentPage")==="home",i=boeing_globals.state.get("currentMenuEpisodeNumber"),s=i===null&&r;n.removeClass("black-bg"),e.hideHeaderBranding(s)}else n.addClass("black-bg"),e.branding.removeClass("hide")}})[0],this.draggable.addEventListener("dragend",this.onDragEnd.bind(this)),boeing_globals.homeDraggable=this.draggable},onDragEnd:function(e){this.draggable.applyBounds({minY:this.getMaxHeight()*-1,maxY:0})},getMaxHeight:function(){this.containerHeight=t("#home-content").height();var e=8e3;return e*=-1,e},removeFromStage:function(){this.cleanUp()},cleanUp:function(){this.undelegateEvents(),t(this.el).html("")},addEpsiodeAccordions:function(){var e=this.collection.length,n;for(var r=0;r<e;r++)n=new EpisodeThumbsView(this.Evt,r,this.collection.models[r]),t(this.el).append(n.render())},addEpisodesThumbsHolder:function(){var e=new EpisodeThumbsView(this.Evt,this.collection);t(this.el).append(e.render())},addScrolling1:function(){var e=document.getElementById("bng-home");this.scroller=new FTScroller(e,{scrollingY:!0,scrollbars:!0})},afterRender:function(){var e=new r(this.Evt,this.collection);t(this.el).append(e.render()),t(this.el).addClass("mobile"),window.setTimeout(this.setBrandingState.bind(this),500)},afterRendeOrig:function(){},render:function(){return this.$parent.append(this.el),this.el},setBrandingState:function(){var e=t("#ui-branding header"),n=boeing_globals.state.get("currentPage"),r=boeing_globals.state.get("currentMenuEpisodeNumber"),i=(r===null||r===-1)&&n==="home";this.hideHeaderBranding(i),n==="topics"&&e.addClass("black-bg")},hideHeaderBranding:function(e){boeing_globals.state.get("currentPage")!=="topics"&&(e=!1),this.branding=t(".branding"),e?this.branding.addClass("hide"):this.branding.removeClass("hide")},afterRenderOld:function(){this.addEpsiodeAccordions(),t(this.el).addClass("mobile");var e=function(){t(".accordion.a-4 dt header h2").html("THE DREAMLINER <br/> COMING SOON"),t(".accordion.a-4 dt .drop-down-icon").css("opacity","0"),t(".accordion.a-4").css({"pointer-events":"none",cursor:"auto"}),t(".accordion.a-4 dt").css({"pointer-events":"none",cursor:"auto"}),t(".accordion.a-4 dd").css({"pointer-events":"none",cursor:"auto"})};boeing_globals.hideEpisode5===!0&&window.setTimeout(e.bind(this),1500),this.$parent.addClass("mobile"),boeing_globals.state.on("change",this.onMenuLoaded.bind(this)),window.setTimeout(this.addSwiping.bind(this),100)}}),o}),define("app/modules/home/home-controller",["require","app/modules/home/events","app/base-classes/view-controller","app/modules/home/views/view","app/modules/home/views/view-mobile","app/utils/ga-mixins"],function(e){var t=e("app/modules/home/events"),n=e("app/base-classes/view-controller"),r=e("app/modules/home/views/view"),i=e("app/modules/home/views/view-mobile"),s=e("app/utils/ga-mixins"),o=r,u=n.extend({id:"bng-home",className:"bng-list "+boeing_globals.device,tagName:"section",initialize:function(){thi
1s.debug=!0,this.init(),this.isMobile===!0?(o=i,this.currentEpisodeNumber=-1,this.listenTo(t,"UPDATE_EPISODE_EVENT",this.onUpdateEpisode.bind(this)),this.listenTo(t,"INC_DEC_EPISODES_EVENT",this.onIncDecEpisodesEvent.bind(this))):$(this.el).addClass("desktop"),t.init(),t.on("SUBVIEW_EVENT",this.onSubviewEvent.bind(this)),t.on("LAUNCH_PLAYER_EVENT",this.onLaunchPlayer.bind(this)),t.listenTo(this,"REMOVE_SUBVIEWS_EVENT",t.onRemoveDesktopSubviewsEvent)},onLaunchPlayer:function(e){var t=e;t=this.formatEventData("STATE_UPDATE_EVENT",t),this.trigger("HOMECONTROLLER_EVENT",t)},onIncDecEpisodesEvent:function(e){var t=e.dir,n=boeing_globals.episodes_length-1,r=boeing_globals.state.toJSON().currentMenuEpisodeNumber*1-1,i=r+t;i>n?i=0:i<0&&(i=n);var s={currentMenuEpisodeNumber:i};s=this.formatEventData("STATE_UPDATE_EVENT",s),this.trigger("HOMECONTROLLER_EVENT",s)},onUpdateEpisode:function(e){var t=e;t=this.formatEventData("STATE_UPDATE_EVENT",t),this.trigger("HOMECONTROLLER_EVENT",t)},updateStateFromDataLoad:function(e){s.sendEpisodePctWatchedEvent(),this.allLoaded()===!0&&this.updateHomeState()},onStateChanged:function(e){this.currentPage=this.state.get("currentPage"),this.addCurrentPageClass(this.currentPage),this.allLoaded()===!0&&this.updateHomeState()},updateHomeState:function(){this.currentPage==="home"||boeing_globals.device==="mobile"?this.loadViews():this.removeViews()},allLoaded:function(e){return this.currentPage!==undefined&&this.collection!==undefined&&boeing_globals.topicsCollection!==undefined},removeViews:function(){this.view!==undefined&&boeing_globals.device==="desktop"&&(this.trigger("REMOVE_SUBVIEWS_EVENT",!0),this.view.removeFromStage(),this.view=undefined)},sendLocalEpsiodeChangeEvent:function(){var e=boeing_globals.state.toJSON().currentMenuEpisodeNumber*1;e<0&&(e=0);var n=e>=0,r=e!==this.currentEpisodeNumber;if(n===!0&&r===!0){var i={num:e};t.trigger("EPISODE_NUM_CHANGED_EVENT",i)}this.currentEpisodeNumber=e},addCurrentPageClass:function(e){if(boeing_globals.device==="mobile"){var t=["topics","player","home"],n=function(t){t===e?$(this.el).addClass(t):$(this.el).removeClass(t)};_.each(t,n.bind(this))}},loadViews:function(){this.view===undefined&&(this.view=new o(t,this.collection),boeing_globals.device==="mobile"&&this.view.start());if(boeing_globals.device==="mobile"){var e=_.has(boeing_globals.state.changed,"loadMenu")&&boeing_globals.state.changed.loadMenu===!1,n=$("#ui-branding header"),r=boeing_globals.state.get("currentPage"),i=boeing_globals.state.toJSON().currentMenuEpisodeNumber;i===null||i===-1||i==="0"&&r!=="topics"?(this.view.hideHeaderBranding(!0),$(this.el).find("#mobile-pages-holder-view").position().top<80&&n.removeClass("black-bg")):this.view.hideHeaderBranding(!1),this.sendLocalEpsiodeChangeEvent()}},onSubviewEvent:function(e){}});return u}),define("app/modules/menus/events",["require","underscore","backbone"],function(e,t,n){var r={init:function(){},onStateEvent:function(e){this.trigger("STATE_EVENT",e)},onRemoveMobileSubviewsEvent:function(){this.trigger("REMOVE_MOBILE_SUBVIEWS_EVENT",!0)},onRouterEvent:function(e){this.trigger(ROUTER_EVENT,e)},onMenuEvent:function(e){this.trigger("MENU_EVENT",e)},cleanUp:function(e){this.off()},onSubviewEvent:function(e){this.trigger("SUBVIEW_EVENT",e)},onThumbClick:function(e){this.trigger("THUMB_CLICKED_EVENT",e)}};return t.extend(r,n.Events),r}),define("text!app/modules/menus/views/templates/tmpl.html",[],function(){return'<ul id="menu-content" class="list-content" >\n\n    <li id="menu-list" class="list-thumbs">\n        <nav id="menu" class=\'list-thumbs-content\'></nav>\n\n    </li>\n\n    <li id="menu-stage-container" class="list-stage FlexEmbed FlexEmbed--16by9">\n        <!--img class="FlexEmbed FlexEmbed--16by9" src="assets/images/boeing-test-stage.jpg" /-->\n    </li>\n\n<!--    <li id="canvas-background">\n        <canvas id="blur-background"></canvas>\n    </li>-->\n\n\n</ul>'}),define("text!app/modules/menus/views/templates/menu-list-tmpl.html",[],function(){return'<li class="close-btn" id="close-nav" data-event="loadMenu" data-value="false">\n    <a\n        >Close\n        <svg xmlns="//www.w3.org/2000/svg" xmlns:xlink="//www.w3.org/1999/xlink" preserveAspectRatio="xMidYMid" width="18.375" height="18.375" viewBox="0 0 18.375 18.375">\n            <defs>\n                <style>\n                    .cls-1 {\n                        fill: #fff;\n                        fill-rule: evenodd;\n                    }\n                </style>\n            </defs>\n            <path d="M18.380,16.966 L16.966,18.380 L9.188,10.602 L1.409,18.380 L-0.005,16.966 L7.773,9.187 L-0.005,1.409 L1.409,-0.005 L9.188,7.773 L16.966,-0.005 L18.380,1.409 L10.602,9.187 L18.380,16.966 Z" class="cls-1" />\n        </svg>\n    </a>\n</li>\n<li data-event="currentPage" data-val="home">\n    <a>{{home}}</a>\n</li>\n<li id="overlay-episodes" class="menu-overlay" data-event="menu" data-val="episodes">\n    <a\n        >{{episodes}}\n        <svg xmlns="//www.w3.org/2000/svg" xmlns:xlink="//www.w3.org/1999/xlink" preserveAspectRatio="xMidYMid" width="6" height="10" viewB
1ox="0 0 6 10">\n            <defs>\n                <style>\n                    .cls-1 {\n                        fill: #fff;\n                        fill-rule: evenodd;\n                    }\n                </style>\n            </defs>\n            <path d="M5.990,5.160 L1.321,9.994 L-0.003,8.622 L3.496,5.000 L-0.003,1.378 L1.321,0.006 L5.990,4.840 L5.836,5.000 L5.990,5.160 Z" class="cls-1" />\n        </svg>\n    </a>\n</li>\n<li id="overlay-interactives" class="menu-overlay" data-event="menu" data-val="interactives">\n    <a\n        >{{interactive-library}}\n        <svg xmlns="//www.w3.org/2000/svg" xmlns:xlink="//www.w3.org/1999/xlink" preserveAspectRatio="xMidYMid" width="6" height="10" viewBox="0 0 6 10">\n            <defs>\n                <style>\n                    .cls-1 {\n                        fill: #fff;\n                        fill-rule: evenodd;\n                    }\n                </style>\n            </defs>\n            <path d="M5.990,5.160 L1.321,9.994 L-0.003,8.622 L3.496,5.000 L-0.003,1.378 L1.321,0.006 L5.990,4.840 L5.836,5.000 L5.990,5.160 Z" class="cls-1" />\n        </svg>\n    </a>\n</li>\n<li id="overlay-about" data-event="menu" data-val="about">\n    <a\n        >{{about}}\n        <svg xmlns="//www.w3.org/2000/svg" xmlns:xlink="//www.w3.org/1999/xlink" preserveAspectRatio="xMidYMid" width="6" height="10" viewBox="0 0 6 10">\n            <defs>\n                <style>\n                    .cls-1 {\n                        fill: #fff;\n                        fill-rule: evenodd;\n                    }\n                </style>\n            </defs>\n            <path d="M5.990,5.160 L1.321,9.994 L-0.003,8.622 L3.496,5.000 L-0.003,1.378 L1.321,0.006 L5.990,4.840 L5.836,5.000 L5.990,5.160 Z" class="cls-1" />\n        </svg>\n    </a>\n</li>\n<li class="nav-links">\n    <ul>\n        <li data-event="link" data-title="Boeing" data-val="//boeing.com/history">\n            <a>Boeing</a>\n        </li>\n\n        <li data-event="link" data-title="facebook" data-val="https://www.facebook.com/sharer/sharer.php?u=http%3A%2F%2Ftheageofaerospace.com">\n            <a href="#" title="Facebook" class="facebook-cta"\n                >Facebook\n                <svg xmlns="//www.w3.org/2000/svg" xmlns:xlink="//www.w3.org/1999/xlink" preserveAspectRatio="xMidYMid" width="6.72" height="14.031" viewBox="0 0 6.72 14.031">\n                    <defs>\n                        <style>\n                            .cls-1 {\n                                fill: #fff;\n                                opacity: 0.54;\n                                fill-rule: evenodd;\n                            }\n                        </style>\n                    </defs>\n                    <path\n                        d="M2.210,14.014 L2.195,7.474 L0.002,7.474 L0.002,4.813 L2.190,4.813 L2.190,1.749 C2.190,1.749 2.308,0.015 3.519,0.015 C4.731,0.015 6.724,0.015 6.724,0.015 L6.724,2.071 L4.692,2.071 L4.692,4.773 L6.685,4.773 L6.685,7.394 L4.731,7.394 L4.731,14.046 L2.210,14.014 Z"\n                        class="cls-1"\n                    />\n                </svg>\n            </a>\n        </li>\n        <li data-event="link" data-title="twitter" data-val="https://twitter.com/intent/tweet?text=The%20epic%20five-part%20series%20explores%20100%20years%20
1of%20flight.%20Watch%20%23TheAgeofAerospace%20at%20THEAGEOFAEROSPACE.COM">\n            <a href="#" title="Twitter" class="twitter-cta"\n                >Twitter\n                <svg xmlns="//www.w3.org/2000/svg" xmlns:xlink="//www.w3.org/1999/xlink" preserveAspectRatio="xMidYMid" width="13.53" height="11.156" viewBox="0 0 13.53 11.156">\n                    <defs>\n                        <style>\n                            .cls-1 {\n                                fill: #fff;\n                                opacity: 0.54;\n                                fill-rule: evenodd;\n                            }\n                        </style>\n                    </defs>\n                    <path\n                        d="M13.517,1.334 C13.020,1.558 12.485,1.709 11.924,1.777 C12.497,1.429 12.936,0.877 13.144,0.220 C12.607,0.542 12.014,0.777 11.382,0.903 C10.876,0.356 10.155,0.014 9.357,0.014 C7.825,0.014 6.583,1.274 6.583,2.829 C6.583,3.049 6.607,3.264 6.655,3.470 C4.349,3.353 2.305,2.232 0.936,0.529 C0.698,0.945 0.561,1.428 0.561,1.944 C0.561,2.921 1.051,3.782 1.795,4.287 C1.340,4.272 0.913,4.146 0.539,3.935 C0.538,3.947 0.538,3.959 0.538,3.970 C0.538,5.334 1.495,6.472 2.764,6.730 C2.531,6.795 2.286,6.829 2.033,6.829 C1.854,6.829 1.680,6.811 1.511,6.779 C1.864,7.897 2.888,8.711 4.102,8.733 C3.153,9.488 1.957,9.938 0.657,9.938 C0.433,9.938 0.212,9.925 -0.005,9.899 C1.223,10.698 2.681,11.164 4.248,11.164 C9.350,11.164 12.141,6.875 12.141,3.155 C12.141,3.033 12.138,2.912 12.133,2.791 C12.675,2.394 13.145,1.898 13.517,1.334 Z"\n                        class="cls-1"\n                    />\n                </svg>\n            </a>\n        </li>\n    </ul>\n    <ul style="padding-top: 20px">\n        <li style="max-width: none" data-event="link" data-title="Privacy and Cookie Statement" data-val="//www.boeing.com/privacy-and-cookie-policy.page">\n            <a>Privacy and Cookie Statement</a>\n        </li>\n    </ul>\n    <div class="copyright">\n        <p>{{copyright}}</p>\n    </div>\n</li>\n'}),define("app/modules/menus/views/menu-list-view",["require","jquery","app/base-classes/base-view","text!app/modules/menus/views/templates/menu-list-tmpl.html","app/utils/helper-mixins","mustache","TweenMax"],function(e){var t=e("jquery"),n=e("app/base-classes/base-view"),r=e("text!app/modules/menus/views/templates/menu-list-tmpl.html"),i=e("app/utils/helper-mixins"),s=e("mustache"),o=e("TweenMax"),u=n.extend({el:"#menu-list .list-thumbs-content",initialize:function(e){this.debug=!1,this.Evt=e,this.Evt.listenTo(this,"STATE_EVENT",this.Evt.onStateEvent),this.Evt.listenTo(this,"MENU_EVENT",this.Evt.onMenuEvent),this.init(),this.render()},events:{"click #my-button":"onBtnClick"},onButtonsClick:function(e){var n=t(e.currentTarget),r=n.data("event"),s=n.data("val");console.log("THE TGT IS ",n,r,s);if(r=="loadMenu")this.gaMixins.sendUIEvent("nav-click","home"),this.sendStateEvent(r,s);else if(r=="currentPage")this.gaMixins.sendUIEvent("nav-click",s),this.sendStateEvent(r,s);else if(r=="menu")this.gaMixins.sendUIEvent("nav-click",s),this.sendMenuEvent(s);else if(r=="link"){var o=n.data("title");o=="facebook"||o=="twitter"?i.openSocialLink(o):(this.gaMixins.sendClickEvent("click","nav-linkout"),this.openWindowEvent(s)),e.preventDefault()}},sendStateEvent:function(e,t){var n={loadMenu:t};e=="currentPage"&&(n={currentPage:t,loadLibrary:!1}),this.setOverlayButtons(),this.trigger("STATE_EVENT",n)},sendMenuEvent:function(e){var t={overlay:e};this.trigger("MENU_EVENT",e),this.setOverlayButtons(e)},removeSelectedStateFromMenuItems:function(){t("#menu-list nav li").removeClass("selected")},setOverlayButtons:function(e){this.removeSelectedStateFromMenuItems(),console.log("setOverlayButtons"),e=="episodes"?t("#overlay-episodes").addClass("selected"):e=="interactives"?t("#overlay-interactives").addClass("selected"):e=="about"?t("#overlay-about").addClass("selected"):e==undefined&&t(".menu-overlay").removeClass("selected")},openWindowEvent:function(e){window.open(e)},removeFromStage:function(){},cleanUp:function(){this.undelegateEvents(),this.Evt.stopListening(this),this.remove()},fadeInBranding:function(e){this.console.log("*** fadeInBranding",e);var n,r;n="Boeing",r="//boeing.com",t(".branding").attr("data-val",r),t(".branding").data("title",n),t(".branding").find("a").text(n)}
1,afterRender:function(){o.to(t(this.id),.5,{opacity:1,ease:Power2.easeInOut}),t(this.id).find("li").on("click",this.onButtonsClick.bind(this));var e=boeing_globals.subDirectory;this.fadeInBranding(e),document.title="Age of Aerospace | Episodes",this.gaMixins.sendPageView()},render:function(){var e=this.uiTextModel.toJSON(),n="copyright-boeing";e.copyright=this.uiTextModel.get(n);var i=s.to_html(r,e);t(this.el).append(i),boeing_globals.brand=="boeing"&&t(this.el).find("#discovery-link").remove(),this.id="#menu-list .list-thumbs-content",this.afterRender()}});return u}),define("text!app/modules/menus/views/templates/menu-episode-tmpl.html",[],function(){return'<ul id="menu-episode-content" >\n    {{#data}}\n    <li id="menu-episode-{{episode_num}}" class="menu-episode-item" data-episode="{{episode_num}}" >\n        <dl class="menu-item" data-episode="{{episode_label}}">\n\n            <dt id="menu-episode-thumb-{{episode_num}}" class="CoverImage FlexEmbed FlexEmbed--3by1" style="background:url({{episode_image}});\n background-position: 50%;\n  background-repeat: no-repeat;\n  background-size: cover;\n  margin: 0 auto;\n  max-height: 600px;\n  max-width: 800px;\n" >\n\n\n            <!--\n            <dt id="menu-episode-thumb-{{num}}"  class="CoverImage FlexEmbed FlexEmbed--3by1">\n            <img src="{{episode_image}}" />\n            -->\n            </dt>\n            <dd class="off-state">\n                <div class="episode-content">\n                    <h4>{{episode}} {{episode_label}}</h4>\n                    <h3>{{episode_title}}</h3>\n                    <span id="info-btn" class="hide-on-desktop">\n                        <svg height="24px" version="1.1" viewBox="0 0 24 24" width="24px"><title/><desc/><defs/><g fill="none" fill-rule="evenodd" stroke="none" stroke-width="1"><g transform="translate(-755.000000, -119.000000)"><g transform="translate(215.000000, 119.000000)"/><path d="M756,130.5 C756,124.148725 761.148725,119 767.5,119 C773.851275,119 779,124.148725 779,130.5 C779,136.851275 773.851275,142 767.5,142 C761.148725,142 756,136.851275 756,130.5 Z M767.75,126 C768.440356,126 769,125.440356 769,124.75 C769,124.059644 768.440356,123.5 767.75,123.5 C767.059644,123.5 766.5,124.059644 766.5,124.75 C766.5,125.440356 767.059644,126 767.75,126 Z M765,127 L765,128 L766.5,128 L766.5,135 L765,135 L765,136 L770.5,136 L770.5,135 L769,135 L769,127 L765,127 Z" fill="#ffffff"/></g></g></svg>\n                    </span>\n                </div>\n            </dd>\n            <dd class="on-state">\n                <div> <!-- DIV IS USED TO VERTICALLY CENTER CONTENT IN DD -->\n                    <div class="thumb-content">\n                        <h4>{{episode}} {{episode_label}}</h4>\n                        <h3>{{episode_title}}</h3>\n\n\n                        <svg version="1.1" width="80" height="80" id="circle-percentage" xmlns="//www.w3.org/2000/svg" xmlns:xlink="//www.w3.org/1999/xlink" x="0px" y="0px"\n  	 viewBox="0 0 80 80" style="enable-background:new 0 0 74 74;" xml:space="preserve">\n                  <circle stroke-width="2" stroke="#ffffff"  fill="none" class="pct-thin-path"  cx="36" cy="36" r="34"/>\n                  <circle stroke-width="6" stroke="#0098db"  fill="none" class="pct-path"      cx="36.25" cy="36.25" r="34"/>\n                  <path class="st2" stroke="none" fill="#ffffff" d="M35.4,48.7L46.6,31H24.2L35.4,48.7z"/>\n              </svg>\n\n\n\n\n\n                        <!--<svg class="resume" xmlns="//www.w3.org/2000/svg" xmlns:xlink="//www.w3.org/1999/xlink" preserveAspectRatio="xMidYMid" width="74" height="74" viewBox="0 0 74 74">\n                          <image xlink:href="data:img/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEoAAABKCAMAAAArDjJDAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAABvFBMVEUAAAD///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////8AAACqZs+GAAAAknRSTlMAAi1gh67S5vMma61sDnS+/tOfeVIaDSOc7Z1YFlfsJAr9tU8Fbtz7oCdvHLO56eNVVOqsEKuq+Auy6zs6BiH5Nx205A/i3UrlE7iw/Jenpra78Ahac7FQ72EEHjDQ8WgBY78ikfRwkEvELvZ16BjJLBnnfH3K93bF9fJpH2IbWxe3DN6ioyAlBzlTnptWeBEobZBSOpIAAAABYktHRACIBR1IAAAACXBIWXMAAAsSAAALEgHS3X78AAADh0lEQVRYw62Y6V8SYRDHRzRCxfJEIiFREkWUxAuoBAysSLOyw0xLrazsvu/DrKy06/cX9yyCiu4+BzAvgJ1n9vtZnmeuHSKOlJhKy3aZd1sAy27zrrJSUwnlJeUVldghldZyVU7Vnr3sxuqa2rp6U4ONyNZgqq+rralmyr17qhRAjXZ2yz7H/qbtC01Oh4st2Q9IgpodgLul1aO/6mltcQOOZhnSwTZ42zt4Fh21XrT5hKBOP9Al3NryLsDfybdxdiNwSObZewIIOnkGbJd6+2RIRH39bMcMVz0DGLTKgTSxDmLA4GxCYUQOy5OIjkQQDuktHA0j0KFCYkcZQPiojr4fgSE1EtFQAP07tXYElcOLeUUQ9u06J6IxdRJRLIr9uZp4NxTObqtUoDueoxhGb34kol4Mb7304VgiX1QiibrNq9AIevIlER3HiZMbF3ak8icRndo8xU64FX0zVzpGkd35MZwuhEQ0jrH1HzZUmwpDmaqxnu+tOFMYiagl45Vnwclh/U0yKCfOal/lODdhbATXeQnUxDloAXyBkwwZCrjYIGY5cIF9+nGJj8LkZSHqkhY9UxjtE6CA1BUBKjGKKZrGDAlRuHptls+awTTN7cxdOihg/joXZccc3YBPCoWbPl5LtIBbzLtuy6GAO5xIvY0WMmNRFoW796aM7BZhpvt4II0CHj4ysHuMJ2SBTQGF6FP9gmyDhdmSCgpoNzJURUWfeQxR
1an/wuVFm0/6gyra/eGl4gtq2KzjDK45fac4g7aKvF3jerrmobODMN/LM0oEjF85v3s5ySelwlkoyqXckEC3JsNSXEKAm38+KSOnUx5oYQUIOfxCBMglZVCZcH8WgbJngF6/eTzKkTPHil1Q5yZTUYhb6IrYfrCkaLwy10RRRvHitGvP6pUJQWxpI+rxctLaWNdsBldf0HKnKaba10/ySL+ory1RbZcjCkkReMoc333I1pRiM5UOKDaJ0u86B4Io6aSWolwyK92pJ38NIqr7wJhH+rrcQ8iNyRIX0IwJ/SH+peMMBSo8sBiRHFokBcNMvOSNISsXQzyQigoypjXdSQq9YWQKG4yIr8o3Au8ofOjm8WF6QefbQKuD2G4/C/G5g9bMMSXt+bUDnWnPuHND9WksP6FSGG33ZseHvetPjZvL8GVqs/50dG0qe8ab8teoNM//9VeWsy/qI9cldeCeXxSPW/2yLYmcVUi8nAAAAAElFTkSuQmCC" width="74" height="74"/>\n                        </svg>-->\n                        <span class="resume">{{timeViewedInfo}}</span>\n                    </div>\n\n                    <div class="close-sub-menu-btn hide-on-desktop">\n                        <svg xmlns="//www.w3.org/2000/svg" xmlns:xlink="//www.w3.org/1999/xlink" preserveAspectRatio="xMidYMid" width="10" height="6" viewBox="0 0 10 6">\n                          <defs>\n                            <style>\n                              .cls-1 {\n                                fill: #fff;\n                                fill-rule: evenodd;\n                              }\n                            </style>\n                          </defs>\n                          <path d="M9.994,1.321 L5.160,5.990 L5.000,5.836 L4.840,5.990 L0.006,1.321 L1.378,-0.003 L5.000,3.496 L8.622,-0.003 L9.994,1.321 Z" class="cls-1"/>\n                        </svg>\n                    </div>\n                    <h4>{{chapters_val}}</h4>\n                    <ol>\n                        {{#chapters}}\n                            <li >\n                                <article data-chapter="{{num}}" class="menu-chapter-item {{viewedClass}}">\n                                    <p>\n                                        <svg xmlns="//www.w3.org/2000/svg" xmlns:xlink="//www.w3.org/1999/xlink" width="8" height="8" viewBox="0 0 8 8">\n                                          <image width="8" height="8" xlink:href="data:img/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAIBAMAAAA2IaO4AAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAJFBMVEUAAAAAmNsAmNsAmNsAmNsAmNsAmNsAmNsAmNsAmNsAmNsAAAD32gBqAAAACnRSTlMACrzgvls5yt25nERvEQAAAAFiS0dEAIgFHUgAAAAJcEhZcwAACxIAAAsSAdLdfvwAAAArSURBVAjXY2BgYFRmYGAQWcQQxujlyLBEZIkAw3Igg2EVkMGwCshg6AQyAIbNBz1CIR3rAAAAAElFTkSuQmCC"/>\n                                        </svg>\n                                        {{num}}.\n                                    </p>\n                                    <p>{{chapter_title}}</p>\n                                    <p>{{chapter_duration}}</p>\n                                </article>\n                            </li>\n                        {{/chapters}}\n\n                    </ol>\n                <div>\n\n            </dd>\n\n        </dl>\n\n\n    </li>\n    {{/data}}\n\n\n\n</ul>'}),define("app/modules/menus/views/menu-episode-view",["require","underscore","jquery","backbone","app/base-classes/base-view","app/utils/event-mixins","app/modules/menus/models/model","text!app/modules/menus/views/templates/menu-episode-tmpl.html","mustache","TweenMax","FTScroller","ScrollToPlugin"],function(e){var t=e("underscore"),n=e("jquery"),r=e("backbone"),i=e("app/base-classes/base-view"),s=e("app/utils/event-mixins"),o=e("app/modules/menus/models/model"),u=e("text!app/modules/menus/views/templates/menu-episode-tmpl.html"),a=e("mustache"),f=e("TweenMax"),l=e("FTScroller"),c=e("ScrollToPlugin"),h=i.extend({el:"#menu-stage-container",initialize:function(e,t){this.debug=!1,this.Evt=e,this.collection=t,this.init(),this.Evt.listenTo(this,"STATE_EVENT",this.Evt.onStateEvent),this.listenTo(this.Evt,"MENU_EVENT",this.onMenuEvent.bind(this));var n={data:this.collection.toJSON()};this.render(),this.formatEventData=s.formatEventData,this.overlayId="episodes"},onMenuEvent:function(e){e!=this.overlayId&&this.removeFromStage()},events:{"click dt":"onClickThumbnail","click #my-button":"onBtnClick","click article.menu-chapter-item":"onClickChapterItem","click #info-btn":"tabletPortrait_openSubMenu","click .close-sub-menu-btn svg":"tabletPortrait_closeSubMenu","mouseover #menu-episode-content li":"addHoverAnimation","mouseout #menu-episode-content li":"removeHoverAnimation"},onClickThumbnail:function(e){var r=n(e.currentTarget),i=r.closest("dl").data("episode");i-=1;if(i==4&&boeing_globals.hideEpisode5==1)return;var s=0,o=boeing_globals.userDataCollection.where({episode_num:i});this.console.log("EPISODE NUM IS ",i,o),o!==undefined&&o.length>=1&&t.has(o[0],"attributes")&&(o[0].attributes.viewed_percentage*1>=1&&o[0].resetWatchedChapters(),s=o[0].attributes.last_chapter_viewed);var u={currentEpisode:i,currentChapter:s,loadLibrary:!1},a=i,f=s;a+=1,f+=1;var l=this.gaMixins.getEventLabel(a,f);this.console.log("EPISODES CLICK IS ",l),this.gaMixins.sendClickEvent("menuchapters",l),this.trigger("STATE_EVENT",u)},onClickChapterItem:function(e){var t=n(e.currentTarget);console.log("documentWidth",n(document).width(),t.closest(".view-list-item").length);var r=t.closest("dl.menu-item").data("episode")*1,i=t.data("chapter")*1,s={currentEpisode:r-1,currentChapter:i-1,loadLibrary:!1};if(r==5&&boeing_globals.hideEpisode5==1)return;boeing_globals.videoPlayed=!0;var o=this.gaMixins.getEventLabel(r,i);this.console.log("EPISODES CLICK IS ",o,s),this.gaMixins.sendClickEvent("menuchapters",o),this.trigger("STATE_EVENT",s)},addHoverAnimation:function(e){var r=n(e.currentTarget),i=n("#menu-episode-content li"),s=r.data("episode")*1;t.isNaN(s)===!0&&(s=0),s!==undefined&&this.animatePercentage(r,s),i.addClass("shrink-list-items"),r.removeClass("shrink-list-items"),r.addClass("view-list-item")},removeHoverAnimation:function(){var e=n("#menu-episode-content li");e.removeClass("view-list-item"),e.removeClass("shrink-list-items")},tabletPortrait_setHeights:function(e){var t=n(".menu-episode-item");t.css("height","18.4vh")},tabletPortrait_openSubMenu:function(e){var t=n(e.currentTarget).parent().parent(),r=n(e.currentTarget).parent().parent().siblings(".on-state");n(t).addClass("active"),n(r).addClass("active")},tabletPortrait_closeSubMenu:function(e){var t=n(e.currentTarget).parent().parent().parent(),r=n(e.currentTarget).parent().parent().parent().siblings(".off-state");n(t).removeClass("active"),n(r).removeClass("active")},removeFromStage:function(){this.id="#menu-episode-content",console.log("remov
1ing from stage"),f.to(n(this.id),1,{x:n(document).width()*-1,ease:Power2.easeInOut,onComplete:this.cleanUp.bind(this)})},cleanUp:function(){this.undelegateEvents(),this.Evt.stopListening(this),n(this.id).remove()},afterRender:function(){var e=n(window).width(),t=n(window).height();e<=1024&&t<=768&&this.tabletPortrait_setHeights();if(boeing_globals.hideEpisode5==1){var r=n("#menu-episode-content li:nth-child(5)"),i=n(r).find(".on-state"),s=n(i).find(".thumb-content");n(i).find("h4").css({display:"none"}),n(i).find("ol").css({display:"none"}),n(s).empty(),n(s).append("<h3>COMING SOON</h3>")}},addViewedClassInfo:function(){var e=boeing_globals.userdata,n,r,i,s=function(s,o){this.console.log("configure is ",s,o),n=s.episode_num,r=t.where(e,{episode_num:n});var u=function(e){var n=e.num-1;e.viewedClass=t.contains(i,n)==1?"viewed":"unviewed",this.console.log("the c is ",e)};r.length>=1&&(r=r[0],i=r.viewedChapters)};this.collection.each(s.bind(this)),this.console.log("viewed class set up ",this.collection.toJSON(),e)},addScroller:function(){var e=document.getElementById("menu-episode-content");e!=undefined&&(this.scroller=new FTScroller(e,{scrollbars:!0,scrollingX:!1}))},animatePercentage:function(e,t){var n=function(t){var n=String(t)+"%",r=e.find(".pct-path");f.fromTo(r,1,{drawSVG:"0"},{drawSVG:n,ease:Power2.easeInOut})};if(boeing_globals.userdata[t]!==undefined){var r=boeing_globals.userdata[t].viewed_percentage;n(Math.ceil(r*100))}else n(0)},afterRender:function(){this.addScroller(),document.title="Age of Aerospace | Episodes",this.gaMixins.sendPageView()},render:function(){boeing_globals.episodesCollection.updateViewedChapters();var e=this.uiTextModel.get("episode"),r=this.uiTextModel.get("chapters"),i=boeing_globals.userdata,s=function(e,t){var n=t;return i!==undefined&&i[e]!==undefined&&i[e].episode_duration!==0&&(n=i[e].episode_duration),n},o=function(e,t){var n="",r=0;if(i!==undefined&&i[e]!==undefined&&i[e].last_viewed_time!==undefined){n=i[e].last_viewed_time,r=i[e].viewed_percentage*1,n.length>=1&&(n+=" : ");if(r>=1)return"REPLAY"}var o=s(e,t);return n+o},f=function(t,n){return t.episode=e,t.chapters_val=r,t.timeViewedInfo=o(n,t.episode_duration),t},l=this.collection.toJSON();l.episode=e,t.each(l,f.bind(this));var c={data:l},h=a.to_html(u,c);n(this.el).append(h),this.id="#menu-episode-content",this.afterRender()}});return h}),define("text!app/modules/menus/views/templates/menu-topic-tmpl.html",[],function(){return'<ul id="menu-topic-content" >\n    {{#data}}\n    <li id="menu-topic-{{num}}" data-topic-num="{{num}}" data-topic-escaped-title="{{escaped_title}}" class="menu-episode-item" >\n        <dl class="menu-item" data-topic="{{num}}">\n\n            <dt id="menu-episode-thumb-{{num}}" class="CoverImage FlexEmbed FlexEmbed--3by1" style="background:url({{topic_image}});\n background-position: 50%;\n  background-repeat: no-repeat;\n  background-size: cover;\n  margin: 0 auto;\n  max-height: 600px;\n  max-width: 800px;\n" >\n\n\n            <!--\n            <dt id="menu-episode-thumb-{{num}}"  class="CoverImage FlexEmbed FlexEmbed--3by1">\n            <img src="{{episode_image}}" />\n            -->\n            </dt>\n            <dd class="off-state">\n                <div class="episode-content">\n                    <h4>{{episode}} {{topic_episode_number}}</h4>\n                    <h3>{{title}}</h3>\n                    <span class="hide-on-desktop">\n                        <svg height="24px" version="1.1" viewBox="0 0 24 24" width="24px"><title/><desc/><defs/><g fill="none" fill-rule="evenodd" stroke="none" stroke-width="1"><g transform="translate(-755.000000, -119.000000)"><g transform="translate(215.000000, 119.000000)"/><path d="M756,130.5 C756,124.148725 761.148725,119 767.5,119 C773.851275,119 779,124.148725 779,130.5 C779,136.851275 773.851275,142 767.5,142 C761.148725,142 756,136.851275 756,130.5 Z M767.75,126 C768.440356,126 769,125.440356 769,124.75 C769,124.059644 768.440356,123.5 767.75,123.5 C767.059644,123.5 766.5,124.059644 766.5,124.75 C766.5,125.440356 767.059644,126 767.75,126 Z M765,127 L765,128 L766.5,128 L766.5,135 L765,135 L765,136 L770.5,136 L770.5,135 L769,135 L769,127 L765,127 Z" fill="#ffffff"/></g></g></svg>\n                    </span>\n                </div>\n            </dd>\n            <dd class="on-state">\n                <div> <!-- DIV IS USED TO VERTICALLY CENTER CONTENT IN DD -->\n                    <div class="thumb-content">\n                        <!--h4>Ep. {{topic_episode_number}}</h4>\n                        <h3>{{title}}</h3-->\n                    </div>\n                    <section class="info-content">\n                        <h4>{{episode}}
1 {{topic_episode_number}}</h4>\n                        <h3>{{title}}</h3>\n                        <div class="close-sub-menu-btn hide-on-desktop">\n                            <svg xmlns="//www.w3.org/2000/svg" xmlns:xlink="//www.w3.org/1999/xlink" preserveAspectRatio="xMidYMid" width="10" height="6" viewBox="0 0 10 6">\n                              <defs>\n                                <style>\n                                  .cls-1 {\n                                    fill: #fff;\n                                    fill-rule: evenodd;\n                                  }\n                                </style>\n                              </defs>\n                              <path d="M9.994,1.321 L5.160,5.990 L5.000,5.836 L4.840,5.990 L0.006,1.321 L1.378,-0.003 L5.000,3.496 L8.622,-0.003 L9.994,1.321 Z" class="cls-1"/>\n                            </svg>\n                        </div>\n                        <div class="interactive-icon">\n                            <section class="sonar-icon">\n                                <div></div>\n                            </section>\n                            <p>{{explore}}</p>\n                        </div>\n                        <p>{{{description}}}</p>\n                    </section>\n                <div>\n\n            </dd>\n\n        </dl>\n\n\n    </li>\n    {{/data}}\n\n\n\n</ul>'}),define("app/modules/menus/views/menu-topic-view",["require","underscore","jquery","backbone","app/base-classes/base-view","app/utils/event-mixins","app/modules/menus/models/model","text!app/modules/menus/views/templates/menu-topic-tmpl.html","mustache","TweenMax","FTScroller","ScrollToPlugin"],function(e){var t=e("underscore"),n=e("jquery"),r=e("backbone"),i=e("app/base-classes/base-view"),s=e("app/utils/event-mixins"),o=e("app/modules/menus/models/model"),u=e("text!app/modules/menus/views/templates/menu-topic-tmpl.html"),a=e("mustache"),f=e("TweenMax"),l=e("FTScroller"),c=e("ScrollToPlugin"),h=i.extend({el:"#menu-stage-container",initialize:function(e){this.debug=!1,this.Evt=e,this.collection=boeing_globals.topicsCollection,this.Evt.listenTo(this,"STATE_EVENT",this.Evt.onStateEvent),this.Evt.on("MENU_EVENT",this.onMenuEvent.bind(this));var t={data:this.collection.toJSON()};this.init(),this.render(),this.formatEventData=s.formatEventData,this.overlayId="interactives"},onMenuEvent:function(e){e!=this.overlayId&&this.removeFromStage()},events:{"click #my-button":"onBtnClick","click dl.menu-item":"onClickTopicItem","click .episode-content span svg":"tabletPortrait_openSubMenu","click .close-sub-menu-btn svg":"tabletPortrait_closeSubMenu"},getChapterNum:function(e){var n=e,r=0,i=boeing_globals.userDataCollection.where({episode_num:n});return i!==undefined&&i.length>=1&&t.has(i[0],"attributes")&&(i[0].attributes.viewed_percentage*1>=1&&i[0].resetWatchedChapters(),r=i[0].attributes.last_chapter_viewed),r},onClickTopicItem:function(e){var t=n(e.currentTarget),r=t.data("topic"),i=t.parent().data("topic-escaped-title"),s=boeing_globals.topicsCollection.at(r).toJSON().topic_episode_number*1-1;boeing_globals.state.get("currentEpisode")!==s&&(boeing_globals.state.attributes.currentEpisode=s),boeing_globals.state.attributes.currentChapter=0;var o={topic_num:r,currentTopic:r,topicEscapedTitle:i,loadLibrary:!1,currentPage:"topics"};this.console.log("MENU TOPICS GA IS ",o.topicEscapedTitle,o);var u=boeing_globals.state.get("currentEpisode")+1,a=u+"-"+i.toLowerCase();this.gaMixins.sendClickEvent("nav-topic-click",a),this.trigger("STATE_EVENT",o);var f=function(){s!==u};console.log("EPISODE INFO  epNum: ",u," epiosdeNumber ",s),window.setTimeout(f.bind(this),500)},tabletPortrait_openSubMenu:function(e){var t=n(e.currentTarget),r=n(e.currentTarget).parent().parent().parent(),i=n(e.currentTarget).parent().parent().parent().siblings(".on-state");this.console.log(i),n(r).addClass("active"),n(i).addClass("active")},tabletPortrait_closeSubMenu:function(e){var t=n(e.currentTarget),r=n(e.currentTarget).parent().parent().parent().parent(),i=n(e.currentTarget).parent().parent().parent().parent().siblings(".off-state");n(r).removeClass("active"),n(i).removeClass("active")},removeFromStage:function(){this.id="#menu-topic-content",f.to(n(this.id),1,{x:n(document).width()*-1,ease:Power2.easeInOut,onComplete:this.cleanUp.bind(this)})},cleanUp:function(){this.console.log("cleaning up topic content view"),this.undelegateEvents(),this.Evt.stopListening(this),n(this.id).remove()},addScroller:function(){var e=document.getElementById("menu-topic-content");e!=undefined&&(this.scroller=new FTScroller(e,{scrollbars:!0,scrollingX:!1}))},afterRender:function(){this.addScroller(),document.title="Age of Aerospace | Library",this.gaMixins.sendPageView()},render:function(){var e=this.uiTextModel.get("episode"),r=this.uiTextModel.get("chapters"),i=this.uiTextModel.get("explore"),s=function(t){return t.episode=e,t.chapters_val=r,t.explore=i,t},o=this.collection.toJSON();o.episode=e,t.each(o,s);var f={data:o},l=a.to_html(u,f);n(this.el).append(l),this.id="#menu-topic-content",this.afterRender()}});return h}),define("text!app/modules/menus/views/templates/menu-about-tmpl.html",[],function(){return'<div id="menu-about-content">\r\n    <article id="about-content">\r\n        <div id="scroller" class="centered">\r\n            <h3>{{the-age-of}}</h3>\r\n            <h2>{{aerospace}}</h2>\r\n\r\n            <ul>\r\n                <li>\r\n                    <div class="video">\r\n                        <video id="about-video" class="video-js vjs-fluid" data-account="800000612001" data-player="cENsmHkkB" data-embed="default" controls="" data-video-id="6215191647001"></video>\r\n\r\n                        <div class="play-icon centered">\r\n                            <svg xmlns="//www.w3.org/2000/svg" xmlns:xlink="//www.w3.org/1999/xlink" preserveAspectRatio="xMidYMid" width="74" height="74" viewBox="0 0 74 74">\r\n                                <image\r\n                                    xlink:href="data:img/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEoAAABKCAMAAAArDjJDAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAABvFBMVEUAAAD///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////8AAACqZs+GAAAAknRSTlMAAi1gh67S5vMma61sDnS+/tOfeVIaDSOc7Z1YFlfsJAr9tU8Fbtz7oCdvHLO56eNVVOqsEKuq+Auy6zs6BiH5Nx205A/i3UrlE7iw/Jenpra78Ahac7FQ72EEHjDQ8WgBY78ikfRwkEvELvZ16BjJLBnnfH3K93bF9fJpH2IbWxe3DN6ioyAlBzlTnptWeBEobZBSOpIAAAABYktHRACIBR1IAAAACXBIWXMAAAsSAAALEgHS3X78AAADh0lEQVRYw62Y6V8SYRDHRzRCxfJEIiFREkWUxAuoBAysSLOyw0xLrazsvu/DrKy06/cX9yyCiu4+BzAvgJ1n9vtZnmeuHSKOlJhKy3aZd1sAy27zrrJSUwnlJeUVldghldZyVU7Vnr3sxuqa2rp6U4ONyNZgqq+rralmyr17qhRAjXZ2yz7H/qbtC01Oh4st2Q9IgpodgLul1aO/6mltcQOOZhnSwTZ42zt4Fh21XrT5hKBOP9Al3NryLsDfybdxdiNwSObZewIIOnkGbJd6+2RIRH39bMcMVz0DGLTKgTSxDmLA4GxCYUQOy5OIjkQQDuktHA0j0KFCYkcZQPiojr4fgSE1EtFQAP07tXYElcOLeUUQ9u06J6IxdRJRLIr9uZp4NxTObqtUoDueoxhGb34kol4Mb7304VgiX1QiibrNq9AIevIlER3HiZMbF3ak8icRndo8xU64FX0zVzpGkd35MZwuhEQ0jrH1HzZUmwpDmaqxnu+tOFMYiagl45Vnwclh/U0yKCfOal/lODdhbATXeQnUxDloAXyBkwwZCrjYIGY5cIF9+nGJj8LkZSHqkhY9UxjtE6CA1BUBKjGKKZrGDAlRuHptls+awTTN7cxdOihg/joXZccc3YBPCoWbPl5LtIBbzLtuy6GAO5xIvY0WMmNRFoW796aM7BZhpvt4II0CHj4ysHuMJ2SBTQGF6FP9gmyDhdmSCgpoNzJURUWfeQxR
1an/wuVFm0/6gyra/eGl4gtq2KzjDK45fac4g7aKvF3jerrmobODMN/LM0oEjF85v3s5ySelwlkoyqXckEC3JsNSXEKAm38+KSOnUx5oYQUIOfxCBMglZVCZcH8WgbJngF6/eTzKkTPHil1Q5yZTUYhb6IrYfrCkaLwy10RRRvHitGvP6pUJQWxpI+rxctLaWNdsBldf0HKnKaba10/ySL+ory1RbZcjCkkReMoc333I1pRiM5UOKDaJ0u86B4Io6aSWolwyK92pJ38NIqr7wJhH+rrcQ8iNyRIX0IwJ/SH+peMMBSo8sBiRHFokBcNMvOSNISsXQzyQigoypjXdSQq9YWQKG4yIr8o3Au8ofOjm8WF6QefbQKuD2G4/C/G5g9bMMSXt+bUDnWnPuHND9WksP6FSGG33ZseHvetPjZvL8GVqs/50dG0qe8ab8teoNM//9VeWsy/qI9cldeCeXxSPW/2yLYmcVUi8nAAAAAElFTkSuQmCC"\r\n                                    width="74"\r\n                                    height="74"\r\n                                />\r\n                            </svg>\r\n                            <!--h4>The Age of Areospace</h4-->\r\n                        </div>\r\n                    </div>\r\n                    <div class="copy">\r\n                        <p>{{about_text_0}}</p>\r\n                    </div>\r\n                </li>\r\n\r\n                <li>\r\n                    <div class="logo">\r\n                        <img src="../assets/images/Boeing-centennial-logo.png" />\r\n                    </div>\r\n                    <div class="copy">\r\n                        <p>{{about_text_1}}</p>\r\n                    </div>\r\n                    <div class="link">\r\n                        <p>{{visit}} <a href="//www.boeing.com/history" title="boeing.com" target="_blank">boeing.com</a></p>\r\n                    </div>\r\n                </li>\r\n\r\n                <li>\r\n                    <div class="logo">\r\n                        <img src="../assets/images/Doc-Group-logo.png" />\r\n                    </div>\r\n                    <div class="copy">\r\n                        <p>{{about_text_2}}</p>\r\n                    </div>\r\n                    <div class="link">\r\n                        <p>{{visit}} <a href="//www.thedocumentarygroup.com" title="thedocumentarygroup.com" target="_blank">thedocumentarygroup.com</a></p>\r\n                    </div>\r\n                </li>\r\n\r\n                <!-- <li id="about-discovery">\r\n                    <div class="logo">\r\n                        <img src="../assets/images/Discovery-Communications-logo.png" />\r\n                    </div>\r\n                    <div class="copy">\r\n                        <p>{{about_text_3}}</p>\r\n                    </div>\r\n                    <div class="link">\r\n                        <p>{{visit}} <a href="//www.discovery.com" title="www.Discovery.com" target="_blank">discovery.com</a></p>\r\n                    </div>\r\n                </li> -->\r\n            </ul>\r\n        </div>\r\n\r\n        <!--h2>\r\n            Boeing is the world\'s largest aerospace company and leading manufacturer of commercial jetliners and defense, space and security systems.\r\n        </h2-->\r\n    </article>\r\n</div>\r\n'}),define("app/modules/menus/views/menu-about-view",["require","underscore","jquery","app/base-classes/base-view","app/utils/event-mixins","text!app/modules/menus/views/templates/menu-about-tmpl.html","mustache","TweenMax","app/utils/ga-mixins","bc"],function(e){var t=e("underscore"),n=e("jquery"),r=e("app/base-classes/base-view"),i=e("app/utils/event-mixins"),s=e("text!app/modules/menus/views/templates/menu-about-tmpl.html"),o=e("mustache"),u=e("TweenMax"),a=e("app/utils/ga-mixins"),f=e("bc"),l=r.extend({el:"#menu-stage-container",aboutVidjs:null,initialize:function(e){this.debug=!1,this.Evt=e,this.Evt.listenTo(this,"STATE_EVENT",this.Evt.onStateEvent),this.Evt.on("MENU_EVENT",this.onMenuEvent.bind(this)),this.init(),this.render(),this.formatEventData=i.formatEventData,this.overlayId="about"},onMenuEvent:function(e){e!=this.overlayId&&this.removeFromStage()},events:{},removeFromStage:function(){this.id="#menu-about-content",u.to(n(this.id),1,{x:n(document).width()*-1,ease:Power2.easeInOut,onComplete:this.cleanUp.bind(this)})},cleanUp:function(){this.console.log("cleaning up about video view"),this.aboutVidjs!==undefined&&this.aboutVidjs!==null&&this.aboutVidjs.dispose(),this.undelegateEvents(),this.Evt.stopListening(this),n(this.id).remove()},addScroller:function(){var e=document.getElementById("scroller");e!=undefined&&(this.scroller=new FTScroller(e,{scrollbars:!0,scrollingX:!1}))},setUpVideoJs:function(){var e={controlBar:{volumeMenuButton:{inline:!1,vertical:!0},volumePanel:{inline:!1,vertical:!0}}};try{this.aboutVidjs=f("about-video")}catch(t){console.error("Brightcove Error: ",t)}this.aboutVidjs==null&&(this.aboutVidjs=f("about-video"))},removePlayIcon:function(e){var t=e.currentTarget,r=n(t).siblings(".play-icon");n(r).hasClass("active")==1?n(r).removeClass("active"):n(r).addClass("active")},afterRender:function(){var e=window.innerWidth*-1;u.from(n(this.id),1,{x:e,ease:Power2.easeInOut}),this.videoEl="#about-video",this.setUpVideoJs(),n("#about-video").on("click",this.removePlayIcon.bind(this));var t=function(){n("#about-discovery").remove()};boeing_globals.isInternational=="true"&&window.setTimeout(t.bind(this),1e3),console.log("%cHere","color:orange"),document.title="Age of Aerospace | About",a.sendPageView()},getAboutData:function(){var e=this.uiTextModel.get("visit"),n={};n["the-age-of"]=this.uiTextModel.get("the-age-of"),n.aerospace=this.uiTextModel.get("aerospace"),n.visit=e;var r=function(e,t){var r="about_text_"+String(t);n[r]=e},i=this.uiTextModel.get("about-text");return t.each(i,r.bind(this)),n},render:function(){this.data=this.getAboutData();var e=o.to_html(s,this.data);n(this.el).append(e),this.id="#menu-about-content",this.afterRender()}});return l}),define("app/modules/menus/views/menu-stage-content-view",["require","underscore","jquery","backbone","app/base-classes/base-view","app/modules/menus/models/model","app/modules/menus/views/menu-episode-view","app/modules/menus/views/menu-topic-view","app/modules/menus/views/menu-about-view","mustache","TweenMax"],function(e){var t=e("underscore"),n=e("jquery"),r=e("backbone"),i=e("app/base-classes/base-view"),s=e("app/modules/menus/models/model"),o=e("app/modules/menus/views/menu-episode-view"),u=e("app/modules/menus/views/menu-topic-view"),a=e("app/modules/menus/views/menu-about-view"),f=e("mustache"),l=e("TweenMax"),c=i.extend({el:"#menu-stage-container",initialize:function(e,t){this.debug=!1,this.Evt=e,this.collection=t,this.listenTo(this.Evt,"MENU_EVENT",this.onMenuEvent.bind(this)),this.init(),this.menuType=boeing_globals.state.toJSON().menuType,this.menuType!=undefined&&this.onMenuEvent(this.menuType)},getMenuView:function(e){if(e=="episodes")return new o(this.Evt,this.collection);if(e=="interactives")return new u(this.Evt,this.collection);if(e=="about")return new a(this.Evt)},onMenuEvent:function(e){this.console.log("stage content menu ",e,this);var t;this.menuContentView!=undefined&&this.menuContentView.overlayId!=e?(this.oldMenuContentView=this.menuContentView,this.oldMenuContentView.removeFromStage(),this.mainContentView=this.getMenuView(e),boeing_globals.state.set("menuType",e)):this.menuContentView==undefined&&(this.mainContentView=this.getMenuView(e))},events:{"click #my-button":"onBtnClick"},removeFromStage:function(){this.cleanUp()},cleanUp:function(){this.undelegateEvents(),this.contentView!=undefined&&(this.contentView.cleanUp(),this.contentView==undefined),this.Evt.off("MENU_EVENT"),this.remove()},afterRender:function(){},render:function(){var e=f.to_html(tmpl);n(this.el).append(e),this.id="#menu-list .list-thumbs-content",this.afterRender()}});return c}),define("app/modules/menus/views/view",["require","jquery","app/base-classes/base-view","text!app/modules/menus/views/templates/tmpl.html","app/modules/menus/views/menu-list-view","app/modules/menus/views/menu-stage-content-view","mustache"],function(e){var t=e("jquery"),n=e("app/base-classes/base-view"),r=e("text!app/modules/menus/views/templates/tmpl.html"),i=e("app/modules/menus/views/menu-list-view"),s=e("app/modules/menus/views/menu-stage-content-view"),o=e("mustache"),u=n.extend({el:"#bng-menu",initialize:function(e,t){this.debug=!1,this.Evt=e,this.collection=t,this.init(),this.render(),this.menuListView=new i(this.Evt),this.menuListView.setOverlayButtons("episodes");var n=boeing_globals.state.get("menuType");this.menuStageContentView=new s(this.Evt,this.collection,n),this.Evt.onMenuEvent("episodes")},events:{"click #my-button":"onBtnClick"},onBtnClick:function(e){var t={myval:"ubu"};console.log("%cClicked","color:cyan"),this.trigger("BUTTON_EVENT",t)},removeFromStage:function(){t(this.el).removeClass("reveal"),window.setTimeout(this.cleanUp.bind(this),700)},cleanUp:function(){this.menuListView.cleanUp(),this.menuStageContentView.removeFromStage(),this.menuListView=undefined,this.menuStageContentView=undefined,this.undelegateEvents(),t(this.el).removeClass("reveal"),t(this.el).html("")},fadeInBranding:function(e){e==""&&(e="boeing"),t(".brand-"+e).addClass("active")},afterRender:function(){t(this.el).addClass("reveal");var e=boeing_globals.subDirectory;this.fadeInBranding(e)},render:function(){var e=o.to_html(r);
1t(this.el).append(e),this.id="#bng-menu",window.setTimeout(this.afterRender.bind(this),100)}});return u}),define("app/modules/menus/menus-controller",["require","app/modules/menus/events","app/utils/ga-mixins","app/base-classes/view-controller","app/modules/menus/views/view"],function(e){var t=e("app/modules/menus/events"),n=e("app/utils/ga-mixins"),r=e("app/base-classes/view-controller"),i=e("app/modules/menus/views/view"),s=r.extend({id:"bng-menu",className:"bng-list",tagName:"section",initialize:function(){this.debug=!0,this.init(),t.on("STATE_EVENT",this.onStateEvent.bind(this)),this.listenTo(t,"MENU_EVENT",this.onMenuEvent.bind(this))},updateStateFromDataLoad:function(){this.allLoaded()==1&&this.updateMenu()},onStateChanged:function(e){if(this.changed.menuType==="language")return;this.changed.hasOwnProperty("loadMenu")==1&&this.allLoaded()==1&&(console.log("update menu"),this.updateMenu())},onStateEvent:function(e){boeing_globals.state.get("currentEpisode")>-1;var t=e;e.loadMenu=!1,t=this.formatEventData("STATE_UPDATE_EVENT",t),this.trigger("MENUSCONTROLLER_EVENT",t)},updateMenu:function(){this.changed.loadMenu==1?this.loadViews():this.removeViews(),this.blurLowerEls(this.changed.loadMenu)},blurLowerEls:function(e){if(typeof e=="undefined"||e===!1){$("#bng-home, #bng-ui, #bng-player, #bng-library, #bng-topics, #bng-article").removeClass("blur");return}$("#bng-home, #bng-ui, #bng-player, #bng-library, #bng-topics, #bng-article").addClass("blur")},allLoaded:function(e){return this.changed!=undefined&&this.collection!=undefined},removeViews:function(){this.view!=undefined&&(this.view.removeFromStage(),this.view=undefined)},loadViews:function(){this.view==undefined&&(this.view=new i(t,this.collection))},onMenuEvent:function(e){}});return s}),define("app/modules/ui/events",["require","underscore","backbone"],function(e,t,n){var r={init:function(){console.log("events is ",this)},onSubviewEvent:function(e){console.log("subviewEvent func called ",e),this.trigger("SUBVIEW_EVENT",e)},onMenuClick:function(e){this.trigger("MENU_CLICKED",e)},onPullDownItemClicked:function(e){this.trigger("PULLDOWN_ITEM_CLICKED",e)},onLanguageEvent:function(e){this.trigger("LANGUAGE_MODAL_EVENT",e)}};return t.extend(r,n.Events),r}),define("app/modules/ui/models/model",["require","underscore","jquery","backbone"],function(e){var t=e("underscore"),n=e("jquery"),r=e("backbone"),i=r.Model.extend({defaults:{type:"Feature",text:"ui loaded data from model"},parse:function(e){},initialize:function(e){console.log("model initialized ",e)}});return i}),define("text!app/modules/ui/views/templates/tmpl.html",[],function(){return'<ul id="ui-content" class="list-content desktop">\n    <li id="ui-branding" class="top">\n        <header class="logo-container">\n            <div class="branding">\n                <div class="front {{brand}}">\n                    <div class="logos">\n                        <img class="ui-logo no-hide" src="" />\n                    </div>\n                    <h5>Proudly Present</h5>\n                </div>\n\n                <div class="back">\n                    <h3>The Age of</h3>\n                    <h2>Aerospace</h2>\n                </div>\n            </div>\n        </header>\n    </li>\n\n    <li id="hamburger-icon" class="left top {{hamburgerBranding}}">\n        <svg xmlns="//www.w3.org/2000/svg" xmlns:xlink="//www.w3.org/1999/xlink" preserveAspectRatio="xMidYMid" width="20" height="18" viewBox="0 0 20 18">\n            <defs>\n                <style>\n                    .cls-1 {\n                        fill: #fff;\n                        fill-rule: evenodd;\n                    }\n                </style>\n            </defs>\n            <path\n                d="M0.000,18.000 L0.000,16.000 L20.000,16.000 L20.000,18.000 L0.000,18.000 ZM0.000,8.000 L20.000,8.000 L20.000,10.000 L0.000,10.000 L0.000,8.000 ZM0.000,0.000 L20.000,0.000 L20.000,2.000 L0.000,2.000 L0.000,0.000 Z"\n                class="cls-1"\n            />\n        </svg>\n    </li>\n\n    <li id="language-pulldown" class="right top">\n        <!--\n        <select>\n            <option value="arabic">Arabic</option>\n            <option value="chinese">Chinese</option>\n            <option selected value="english">English</option>\n            <option value="french">French</option>\n            <option value="italian">Italian</option>\n        </select> \n        <svg xmlns="//www.w3.org/2000/svg" xmlns:xlink="//www.w3.org/1999/xlink" preserveAspectRatio="xMidYMid" width="10" height="6" viewBox="0 0 10 6">\n          <defs>\n            <style>\n              .cls-1 {\n                fill: #fff;\n                fill-rule: evenodd;\n              }\n            </style>\n          </defs>\n          <path d="M9.994,1.321 L5.160,5.990 L5.000,5.836 L4.840,5.990 L0.006,1.321 L1.378,-0.003 L5.000,3.496 L8.622,-0.003 L9.994,1.321 Z" class="cls-1"/>\n        </svg>\n        -->\n    </li>\n\n    <li id="footer" class="left bottom">\n        <p>{{copyright}}</p>\n    </li>\n\n    <li id="social-share" class="right bottom">\n        <div class="footer-social">\n            <a href="#" title="Facebook" data-title="facebook" data-event="link" data-val="https://www.facebook.com/sharer/sharer.php?u=http%3A%2F%2Ftheageofaerospace.com" class="facebook-cta"\n                >Facebook\n                <svg xmlns="//www.w3.org/2000/svg" xmlns:xlink="//www.w3.org/1999/xlink" preserveAspectRatio="xMidYMid" width="6.72" height="14.031" viewBox="0 0 6.72 14.031">\n                    <defs>\n                        <style>\n                            .cls-1 {\n                                fill: #fff;\n                                opacity: 0.54;\n                                fill-rule: evenodd;\n                            }\n                        </style>\n                    </defs>\n                    <path\n                        d="M2.210,14.014 L2.195,7.474 L0.002,7.474 L0.002,4.813 L2.190,4.813 L2.190,1.749 C2.190,1.749 2.308,0.015 3.519,0.015 C4.731,0.015 6.724,0.015 6.724,0.015 L6.724,2.071 L4.692,2.071 L4.692,4.773 L6.685,4.773 L6.685,7.394 L4.731,7.394 L4.731,14.046 L2.210,14.014 Z"\n                        class="cls-1"\n                    />\n                </svg>\n            </a>\n            <a\n                href="#"\n                title="Twitter"\n                data-title="twitter"\n                data-event="link"\n                data-val="https://twitter.com/intent/tweet?text=The%20epic%20five-part%20series%20explores%20100%20years%20
1of%20flight.%20Watch%20%23TheAgeofAerospace%20at%20THEAGEOFAEROSPACE.COM"\n                class="twitter-cta"\n                >Twitter\n                <svg xmlns="//www.w3.org/2000/svg" xmlns:xlink="//www.w3.org/1999/xlink" preserveAspectRatio="xMidYMid" width="13.53" height="11.156" viewBox="0 0 13.53 11.156">\n                    <defs>\n                        <style>\n                            .cls-1 {\n                                fill: #fff;\n                                opacity: 0.54;\n                                fill-rule: evenodd;\n                            }\n                        </style>\n                    </defs>\n                    <path\n                        d="M13.517,1.334 C13.020,1.558 12.485,1.709 11.924,1.777 C12.497,1.429 12.936,0.877 13.144,0.220 C12.607,0.542 12.014,0.777 11.382,0.903 C10.876,0.356 10.155,0.014 9.357,0.014 C7.825,0.014 6.583,1.274 6.583,2.829 C6.583,3.049 6.607,3.264 6.655,3.470 C4.349,3.353 2.305,2.232 0.936,0.529 C0.698,0.945 0.561,1.428 0.561,1.944 C0.561,2.921 1.051,3.782 1.795,4.287 C1.340,4.272 0.913,4.146 0.539,3.935 C0.538,3.947 0.538,3.959 0.538,3.970 C0.538,5.334 1.495,6.472 2.764,6.730 C2.531,6.795 2.286,6.829 2.033,6.829 C1.854,6.829 1.680,6.811 1.511,6.779 C1.864,7.897 2.888,8.711 4.102,8.733 C3.153,9.488 1.957,9.938 0.657,9.938 C0.433,9.938 0.212,9.925 -0.005,9.899 C1.223,10.698 2.681,11.164 4.248,11.164 C9.350,11.164 12.141,6.875 12.141,3.155 C12.141,3.033 12.138,2.912 12.133,2.791 C12.675,2.394 13.145,1.898 13.517,1.334 Z"\n                        class="cls-1"\n                    />\n                </svg>\n            </a>\n        </div>\n    </li>\n</ul>\n'}),define("app/modules/ui/models/model-pulldown",["require","underscore","jquery","backbone"],function(e){var t=e("underscore"),n=e("jquery"),r=e("backbone"),i=r.Model.extend({initialize:function(){this.attributes["selected-language-abbr"]=boeing_globals.selectedLanguage,window.modelPulldown=this},defaults:{"selected-language-abbr":"fr"},getDomainSuffix:function(e){},parse:function(e){return e["languages-arr"]=t.sortBy(e["languages-arr"],"name"),e},getSelectedLanguage:function(){var e=boeing_globals.selectedLanguage;this.attributes["selected-language"]=t.where(this.get("languages-arr"),{abbr:e})[0].name}});return i}),define("text!app/modules/ui/views/templates/tmpl-pulldown.html",[],function(){return""}),define("text!app/modules/ui/views/templates/tmpl-pulldown-container.html",[],function(){return""}),define("text!app/modules/ui/views/templates/tmpl-pulldown-selected.html",[],function(){return' <h3>{{selected-language}}</h3>\n\n\n <div id="xbtn" class="hide-item">\n     <svg id="pulldown-xbtn"  xmlns="//www.w3.org/2000/svg" xmlns:xlink="//www.w3.org/1999/xlink"  width="10" height="12" viewBox="0 5 10 6">\n         <defs>\n             <style>\n                 .cls-1 {\n                     fill: #fff;\n                     fill-rule: evenodd;\n                     transform: scale(1.2);\n                 }\n             </style>\n         </defs>\n         <g class="cls-1">\n             <line class="st0" x1="0.7" y1="1.5" x2="9.3" y2="10.2"/>\n             <rect x="4.3" y="-0.3" transform="matrix(0.5071 -0.5071 0.5071 0.5071 -2.6578 5.2528)" class="st0" width="1.5" height="12.2"/>\n         </g>\n\n\n         <g class="cls-1">\n             <line class="st0" x1="0.7" y1="10.2" x2="9.3" y2="1.5"/>\n             <rect x="-1.1" y="5.1" transform="matrix(0.5071 -0.5071 0.5071 0.5071 -2.6578 5.2528)" class="st0" width="12.2" height="1.5"/>\n         </g>\n\n     </svg>\n</div>'}),define("app/modules/ui/views/subviews-pulldown/view-pulldown-selected",["require","underscore","jquery","backbone","app/base-classes/base-view","app/modules/ui/models/model-pulldown","text!app/modules/ui/views/templates/tmpl-pulldown-selected.html","mustache","TweenMax"],function(e){var t=e("underscore"),n=e("jquery"),r=e("backbone"),i=e("app/base-classes/base-view"),s=e("app/modules/ui/models/model-pulldown"),o=e("text!app/modules/ui/views/templates/tmpl-pulldown-selected.html"),u=e("mustache"),a=e("TweenMax"),f=i.extend({id:"pulldown-selected",initialize:function(e,t){this.debug=!1,this.Evt=e,this.model=t,this.init()},events:{},cleanUp:function(){this.undelegateEvents(),this.remove()},afterRender:function(){var e=function(){this.listenTo(this.Evt,"PULLDOWN_CLEANUP",this.cleanUp.bind(this))};window.setTimeout(e.bind(this),1e3)},render:function(){var e=this.model.toJSON(),t=u.to_html(o,e);return n(this.el).html(t),this.afterRender(),this.console.log("PULLDOWN CONTAINER THIS IS STUB RENDER ",this.el,t),this.el}});return f}),define("text!app/modules/ui/views/templates/tmpl-pulldown-items.html",[],function(){return'    <dt class="pd-space"></dt>\n'}),define("text!app/modules/ui/views/templates/tmpl-pulldown-item.html",[],function(){return"<h3>{{name}}</h3>\n\n"}),define("app/modules/ui/views/subviews-pulldown/view-pulldown-item",["require","underscore","jquery","backbone","app/base-classes/base-view","app/modules/ui/models/model-pulldown","text!app/modules/ui/views/templates/tmpl-pulldown-item.html","mustache","TweenMax"],function(e){var t=e("underscore"),n=e("jquery"),r=e("backbone"),i=e("app/base-classes/base-view"),s=e("app/modules/ui/models/model-pulldown"),o=e("text!app/modules/ui/views/templates/tmpl-pulldown-item.html"),u=e("mustache"),a=e("TweenMax"),f=i.extend({tagName:"dd",className:"pulldown-item",initialize:function(e,t){this.debug=!0,this.Evt=e,this.data=t,this.init()},events:{},removeFromStage:function(){console.log("remove from the stage"),a.to(n(this.el),.5,{opacity:0,ease:Power2.easeInOut,onComplete:this.cleanUp.bind(this)})},cleanUp:function(){this.undelegateEvents(),this.remove()},onClick:function(e){this.console.log("this was clicked ",e,this.data),this.trigger("PULLDOWN_ITEM_CLICKED",this.data)},afterRender:function(){var e=function(){this.listenTo(this.Evt,"PULLDOWN_CLEANUP",this.cleanUp.bind(this)),this.Evt.listenTo(this,"PULLDOWN_ITEM_CLICKED",this.Evt.onPullDownItemClicked),n(this.el).on("vclick",this.onClick.bind(this))};a.set(this.$el,{css:{y:10,opacity:0}
1}),window.setTimeout(e.bind(this),1e3)},render:function(){var e={};e.name=this.data.name,t.has(this.data,"subname")==1&&(e.name=this.data.name+" "+this.data.subname);var r=u.to_html(o,e);return n(this.el).html(r),this.afterRender(),this.el}});return f}),define("app/modules/ui/views/subviews-pulldown/view-pulldown-items",["require","underscore","jquery","backbone","app/base-classes/base-view","app/modules/ui/models/model-pulldown","text!app/modules/ui/views/templates/tmpl-pulldown-items.html","app/modules/ui/views/subviews-pulldown/view-pulldown-item","mustache","TweenMax"],function(e){var t=e("underscore"),n=e("jquery"),r=e("backbone"),i=e("app/base-classes/base-view"),s=e("app/modules/ui/models/model-pulldown"),o=e("text!app/modules/ui/views/templates/tmpl-pulldown-items.html"),u=e("app/modules/ui/views/subviews-pulldown/view-pulldown-item"),a=e("mustache"),f=e("TweenMax"),l=i.extend({tagName:"dl",id:"pulldown-items",className:"languages",initialize:function(e,t){this.debug=!1,this.Evt=e,this.model=t,this.init()},events:{},removeFromStage:function(){f.to(n(this.el),.5,{opacity:0,ease:Power2.easeInOut,onComplete:this.cleanUp.bind(this)})},cleanUp:function(){this.undelegateEvents(),this.remove()},addItem:function(e,t){var r=new u(e,t);n(this.el).append(r.render())},addLanguageItems:function(){var e,r=function(e){return e.abbr==boeing_globals.selectedLanguage},i=function(){var t=this.loadArr.shift();e=new u(this.Evt,t),n(this.el).append(e.render())};this.languageDataArr=this.model.get("languages-arr"),window.languageArr=this.languageDataArr,this.languageDataArr=t.reject(this.languageDataArr,r),this.loadArr=this.languageDataArr.slice(),boeing_globals.selectedLanguage!=="en"&&this.loadArr.unshift(this.loadArr.splice(this.loadArr.findIndex(function(e){return e.abbr==="en"}),1)[0]),console.log("loadarr ",this.loadArr),this.gaMixins.sendUIEvent("language-click","language-pulldown");var s=this;this.loadArr.forEach(function(e){s.addItem(s.Evt,e)});var o=this.$el.find(".pulldown-item");f.staggerTo(o,.06,{css:{y:0,opacity:1},autoKill:!0,force3D:!0,ease:Quad.easeInOut,delay:.5},.02)},afterRender:function(){var e=function(){this.listenTo(this.Evt,"PULLDOWN_CLEANUP",this.cleanUp.bind(this)),this.listenTo(this.Evt,"REMOVE_PULLDOWN_ITEMS",this.cleanUp.bind(this))};window.setTimeout(e.bind(this),1e3),this.addLanguageItems()},render:function(){var e={},t=a.to_html(o,e);return n(this.el).html(t),this.afterRender(),this.el}});return l}),Array.prototype.findIndex||Object.defineProperty(Array.prototype,"findIndex",{value:function(e){if(this==null)throw new TypeError('"this" is null or not defined');var t=Object(this),n=t.length>>>0;if(typeof e!="function")throw new TypeError("predicate must be a function");var r=arguments[1],i=0;while(i<n){var s=t[i];if(e.call(r,s,i,t))return i;i++}return-1}}),define("text!app/modules/ui/views/templates/tmpl-pulldown-modal.html",[],function(){return'<div id="close-btn" >\n    <svg xmlns="//www.w3.org/2000/svg" xmlns:xlink="//www.w3.org/1999/xlink" preserveAspectRatio="xMidYMid" width="18.375" height="18.375" viewBox="0 0 18.375 18.375">\n      <defs>\n        <style>\n          .cls-1 {\n            fill: #fff;\n            fill-rule: evenodd;\n            opacity: 1;\n          }\n        </style>\n      </defs>\n      <path d="M18.380,16.966 L16.966,18.380 L9.188,10.602 L1.409,18.380 L-0.005,16.966 L7.773,9.187 L-0.005,1.409 L1.409,-0.005 L9.188,7.773 L16.966,-0.005 L18.380,1.409 L10.602,9.187 L18.380,16.966 Z" class="cls-1"></path>\n    </svg>\n</div>'}),define("app/modules/ui/views/subviews-pulldown/view-pulldown-modal",["require","underscore","jquery","backbone","app/base-classes/base-view","text!app/modules/ui/views/templates/tmpl-pulldown-modal.html","app/modules/ui/views/subviews-pulldown/view-pulldown-items","mustache","TweenMax"],function(e){var t=e("underscore"),n=e("jquery"),r=e("backbone"),i=e("app/base-classes/base-view"),s=e("text!app/modules/ui/views/templates/tmpl-pulldown-modal.html"),o=e("app/modules/ui/views/subviews-pulldown/view-pulldown-items"),u=e("mustache"),a=e("TweenMax"),f=i.extend({id:"language-modal-menu",tagName:"div",initialize:function(e,t){this.debug=!0,this.Evt=e,this.model=t,this.init()},events:{"click #close-btn":"removeFromStage"},removeFromStage:function(){a.to(n(this.el),.5,{opacity:0,ease:Power2.easeInOut,onComplete:this.cleanUp.bind(this)})},cleanUp:function(){this.Evt.onLanguageEvent({type:"close"}),this.remove()},afterRender:function(){var e=this.$el.find("#close-btn"),t=function(){e.addClass("active")};setTimeout(t.bind(this),1100)},render:function(){var e=u.to_html(s);return this.pulldownItems=new o(this.Evt,this.model),n(this.el).html(e),n(this.el).append(this.pulldownItems.render()),this.afterRender(),this.el}});return f}),define("app/modules/ui/views/subviews-pulldown/view-pulldown-container",["require","underscore","jquery","backbone","app/base-classes/base-view","app/modules/ui/models/model-pulldown","text!app/modules/ui/views/templates/tmpl-pulldown-container.html","app/modules/ui/views/subviews-pulldown/view-pulldown-selected","app/modules/ui/views/subviews-pulldown/view-pulldown-items","app/modules/ui/views/subviews-pulldown/view-pulldown-modal","mustache","TweenMax"],function(e){var t=e("underscore"),n=e("jquery"),r=e("backbone"),i=e("app/base-classes/base-view"),s=e("app/modules/ui/models/model-pulldown"),o=e("text!app/modules/ui/views/templates/tmpl-pulldown-container.html"),u=e("app/modules/ui/views/subviews-pulldown/view-pulldown-selected"),a=e("app/modules/ui/views/subviews-pulldown/view-pulldown-items"),f=e("app/modules/ui/views/subviews-pulldown/view-pulldown-modal"),l=e("mustache"),c=e("TweenMax"),h=i.extend({tagName:"nav",id:"pulldown-container",initialize:function(e){this.debug=!1,this.Evt=e,this.Evt.listenTo(this,"PULLDOWN_CLICKED",this.Evt.onMenuClick),this.isTouchDevice=boeing_globals.isTouchDevice,this.eventTypeStart=this.isTouchDevice==1?"touchstart":"click",this.model=new s,this.model.fetch({url:"assets/data/languages.json",success:this.onDataLoaded.bind(this),error:function(e,t){console.log("languages data not loaded ",e)}}),this.listenTo(this.Evt,"PULLDOWN_ITEM_CLICKED",this.onPullDownItemClicked),this.latestPathName=window.location.pathname},checkForInternational:function(e){var t=this.latestPathName,n=boeing_globals.isInternational=="true";if(e!="en"){var r=new RegExp("/discovery"),i=new RegExp("/ahctv"),s=new RegExp("/sciencechannel"),o=new RegExp("/sci");t.match(r)!=undefined?t=t.replace(r,"/boeing"):t.match(i)!=undefined?t=t.replace(i,"/boeing"):t.match(s)!=undefined?t=t.replace(s,"/boeing"):t.match(o)!=undefined&&(t=t.replace(o,"/boeing"))}return t+"?lang="},getLanguageName:function(e){var t=e.name;return e.subname!==undefined&&(t+="-"+e.subname),t.toLowerCase()},onPullDownItemClicked:function(e){var t=this.checkForInternational(e.abbr),n=e.abbr,r=t+n;this.gaMixins.sendClickEvent("language-click",this.getLanguageName(e)),window.location.replace(r)},onDataLoaded:function(e,t){this.model.getSelectedLanguage(),this.loadSubviews()},loadSubviews:function(){this.pulldownSelected=new u(this.Evt,this.model),n(this.el).append(this.pulldownSelected.render())},addMouseOut:function(){},makeSelectedStateActive:function(e){var t=!0;e!=undefined&&(t=e),t==1?(n("#pulldown-selected #arrow").addClass("hide-item"),n("#pulldown-selected #xbtn").removeClass("hide-item")):(n("#pulldown-selected #xbtn").addClass("hide-item"),n("#pulldown-selected #arrow").removeClass("hide-item"))},loadItems:function(e){this.latestPathName=window.location.pathname,this.clearRemoveItem(),this.modal=new f(this.Evt,this.model),n("#bng-ui").append(this.modal.render()),this.Evt.listenTo(this,"PULLDOWN_CLICKED",this.Evt.onMenuClick),this.Evt.onLanguageEvent({type:"open"})},startRemoveItem:function(e){this.removeItemsTimeout=window.setTimeout(this.removeItems.bind(this),200)}
1,clearRemoveItem:function(){this.removeItemsTimeout!=undefined&&window.clearTimeout(this.removeItemsTimeout)},removeItems:function(e){console.log("removeItems"),this.Evt.trigger("REMOVE_PULLDOWN_ITEMS")},events:{},cleanUp:function(){this.undelegateEvents(),this.remove()},afterRender:function(){var e=function(){this.listenTo(this.Evt,"PULLDOWN_CLEANUP",this.cleanUp.bind(this)),n(this.el).on(this.eventTypeStart,this.loadItems.bind(this)),n(this.el).on(this.eventTypeEnd,this.startRemoveItem.bind(this))};window.setTimeout(e.bind(this),1e3)},render:function(){var e={},t=l.to_html(o,e);return n(this.el).html(t),this.afterRender(),this.el}});return h}),define("app/modules/ui/views/view-pulldown",["require","underscore","jquery","backbone","app/base-classes/base-view","app/modules/ui/models/model-pulldown","text!app/modules/ui/views/templates/tmpl-pulldown.html","app/modules/ui/views/subviews-pulldown/view-pulldown-container","mustache","TweenMax"],function(e){var t=e("underscore"),n=e("jquery"),r=e("backbone"),i=e("app/base-classes/base-view"),s=e("app/modules/ui/models/model-pulldown"),o=e("text!app/modules/ui/views/templates/tmpl-pulldown.html"),u=e("app/modules/ui/views/subviews-pulldown/view-pulldown-container"),a=e("mustache"),f=e("TweenMax"),l=i.extend({initialize:function(e,t){this.debug=!0,this.Evt=t,this.Evt.listenTo(this,"PULLDOWN_CLICKED",this.Evt.onMenuClick),this.init(),this.render(),this.console.log("this pulldown is ",this)},cleanUp:function(){this.undelegateEvents()},events:{},onUpdate:function(e){this.el="#"+e,this.console.log("PULLDOWN VIEW IS ",e,this.el);var t=function(){n(this.el).html(n(this.el).html(this.pulldownContainer.render())),this.console.log("THIS EL VIEW PULLDOWN IS ",this.el,this)};window.setTimeout(t.bind(this),3500)},afterRender:function(){var e=function(){this.listenTo(this.Evt,"PULLDOWN_CLEANUP",this.cleanUp.bind(this))};window.setTimeout(e.bind(this),1e3),this.pulldownContainer=new u(this.Evt),n(this.el).html(this.pulldownContainer.render())},render:function(){var e={},t=a.to_html(o,e);this.afterRender()}});return l}),define("app/modules/ui/views/view",["require","underscore","jquery","backbone","app/base-classes/base-view","app/modules/ui/models/model","text!app/modules/ui/views/templates/tmpl.html","app/modules/ui/views/view-pulldown","app/utils/helper-mixins","mustache","TweenMax"],function(e){var t=e("underscore"),n=e("jquery"),r=e("backbone"),i=e("app/base-classes/base-view"),s=e("app/modules/ui/models/model"),o=e("text!app/modules/ui/views/templates/tmpl.html"),u=e("app/modules/ui/views/view-pulldown"),a=e("app/utils/helper-mixins"),f=e("mustache"),l=e("TweenMax"),c=i.extend({el:"#home-stage-container",initialize:function(e,t){this.debug=!0,this.Evt=e,this.Evt.listenTo(this,"MENU_CLICKED",this.Evt.onMenuClick),this.id="#ui-content",this.init(),this.domContainers={home:"#home-stage-container","default":"#bng-ui"},this.console.log("HELPER MIXINS",a),this.currentPage=undefined,this.oldPage=-1,this.updateUI(t),this.listenTo(this.Evt,"TOPICS_PAGE_CHANGE_EVENT",this.onTopicsPageChangeEvent.bind(this))},getImageSrc:function(e){var t=boeing_globals.subDirectory,n=e==1?t+"_bk":t,r="../assets/images/branding/",i={boeing:"brand-boeing.svg",discovery:"brand-discovery.svg",sciencechannel:"brand-science.png",sci:"brand-science.png",ahctv:"brand-ahctv.svg",boeing_bk:"brand-boeing-bk.svg",discovery_bk:"brand-discovery-bk.svg",sciencechannel_bk:"brand-science-bk.png",sci_bk:"brand-science-bk.png",ahctv_bk:"brand-ahctv-bk.svg"},s=i[n];return r+s},onTopicsPageChangeEvent:function(e){var t=e.isArticle!=undefined&&e.isArticle==1,r=this.getImageSrc(t),i=n(".logo-container .branding");t==1?i.addClass("black"):i.removeClass("black"),this.console.log("UI COLOR CHECK: backgroundIsWhite: ",t,"  e is: ",e),i.find("img").attr("src",r)},getDomEl:function(e){var t=e,n=e=="home"?this.domContainers.home:this.domContainers.default;return n},updateUI:function(e){this.console.log("PAGES UI VIEW UPDATE, page: ",e,this.currentPage,this.oldPage);if(this.oldPage==-1||e!=this.oldPage)this.currentPage=e,this.el=this.getDomEl(this.currentPage),this.oldPage=e,this.console.log("update UI VIEW ",this.el),window.setTimeout(this.render.bind(this),200)},checkFooterState:function(){this.footer=n("#ui-content #footer"),this.socialFooter=n("#ui-content #social-share"),this.console.log("FOOTER STATE IN UI ",this.currentPage,this.footer),this.currentPage=="home"?(this.footer.removeClass("hide"),this.socialFooter.removeClass("hide"),n(".footer-social a").on("click",this.onSocialShareClick.bind(this))):(this.footer.addClass("hide"),this.socialFooter.addClass("hide"))},events:{"click #my-button":"onBtnClick"},onSocialShareClick:function(e){var t=n(e.currentTarget),r=t.data("event");
1if(r=="link"){var i=t.data("val"),s=t.data("title");s=="facebook"?a.openFacebookShareLink(!1):a.openTwitterIntentLink(i)}this.console.log("social share was clicked ",r,t),e.preventDefault()},onMenuClick:function(e){var t={loadMenu:!0};this.gaMixins.sendUIEvent("nav-click","menu"),this.trigger("MENU_CLICKED",t)},removeFromStage:function(){},cleanUp:function(){this.undelegateEvents()},fadeInBranding:function(e){this.console.log("fadeInBranding ",e);var t="../assets/images/branding/brand-",r=".svg",i=".png",s,o;switch(e){case"boeing":default:s="Boeing",e="boeing",n(".front.boeing h5").text("Proudly Presents"),o=t+e+r}n(".branding").find("img").attr("src",o)},onClickBrandingLogos:function(e){boeing_globals.state.set({currentPage:"home",loadMenu:!1,loadLibrary:!1}),this.gaMixins.sendUIEvent("nav-click","home")},addPulldown:function(){this.languagePulldown!=undefined&&this.Evt.trigger("PULLDOWN_CLEANUP"),this.languagePulldown=new u({el:"#language-pulldown"},this.Evt)},afterRender:function(){l.to(n(this.el+" "+this.id),.5,{opacity:1,ease:Power2.easeInOut}),n(this.el+" #hamburger-icon").on("click",this.onMenuClick.bind(this)),this.checkFooterState();var e=boeing_globals.subDirectory;this.fadeInBranding(e),n("#ui-branding").on("click",this.onClickBrandingLogos.bind(this)),this.addPulldown(),n("#language-pulldown").hide()},render:function(){n(this.id).remove();var e=boeing_globals.brand=="boeing"?"copyright-boeing":"copyright",t="";this.uiTextModel&&(t=this.uiTextModel.get(e));var r={hamburgerBranding:boeing_globals.subDirectory,copyright:t,brand:boeing_globals.subDirectory};n("#hamburger-icon").off();var i=f.to_html(o,r);n(this.el).append(i),window.setTimeout(this.afterRender.bind(this),500)}});return c}),define("text!app/modules/ui/views/templates/tmpl-mobile.html",[],function(){return'<ul id="ui-content" class="list-content mobile">\n    <!--\n    <li id="ui-branding" class="left">\n        <header class="logo-container">\n            \n            <div class="menu-icon">\n                <img src="../assets/images/icons/hamburger.svg" />\n            </div>\n            \n            <div class="branding">\n              <h5><span>Discovery</span> &amp; Boeing Proudly Present</h5>\n              <h3>The Age of Aerospace</h3>\n            </div>\n\n        </header>\n    </li>\n    -->\n\n    <li id="ui-branding" class="top">\n        <header class="logo-container">\n            <div class="menu-icon">\n                <img src="../assets/images/icons/hamburger.svg" />\n            </div>\n            <div class="branding">\n                <div class="front {{brand}}">\n                    <div class="logos">\n                        <img class="ui-logo no-hide" src="{{brand_svg}}" />\n                    </div>\n                    <h5>Proudly Present</h5>\n                </div>\n\n                <div class="back">\n                    <h3>The Age of</h3>\n                    <h2>Aerospace</h2>\n                </div>\n            </div>\n        </header>\n    </li>\n\n    <li id="language-pulldown" class="right top">\n        <!--\n        <select>\n            <option value="arabic">Arabic</option>\n            <option value="chinese">Chinese</option>\n            <option selected value="english">English</option>\n            <option value="french">French</option>\n            <option value="italian">Italian</option>\n        </select>\n        <svg xmlns="//www.w3.org/2000/svg" xmlns:xlink="//www.w3.org/1999/xlink" preserveAspectRatio="xMidYMid" width="10" height="6" viewBox="0 0 10 6">\n            <defs>\n                <style>\n                    .cls-1 {\n                        fill: #fff;\n                        fill-rule: evenodd;\n                    }\n                </style>\n            </defs>\n            <path d="M9.994,1.321 L5.160,5.990 L5.000,5.836 L4.840,5.990 L0.006,1.321 L1.378,-0.003 L5.000,3.496 L8.622,-0.003 L9.994,1.321 Z" class="cls-1"/>\n        </svg>\n        -->\n    </li>\n\n    <li id="footer" class="bottom">\n        <div class="links">\n            <a href="#" title="About" class="about-cta">About </a>\n            <a href="#" title="Boeing" class="boeing-cta">Boeing </a>\n            <!-- <a href="#" title="Discovery" class="discovery-cta">Discovery\n            </a> -->\n            <a href="#" title="Facebook" class="facebook-cta social-icon"\n                >Facebook\n                <svg xmlns="//www.w3.org/2000/svg" xmlns:xlink="//www.w3.org/1999/xlink" preserveAspectRatio="xMidYMid" width="6.72" height="14.031" viewBox="0 0 6.72 14.031">\n                    <defs>\n                        <style>\n                            .cls-1 {\n                                fill: #fff;\n                                opacity: 0.54;\n                                fill-rule: evenodd;\n                            }\n                        </style>\n                    </defs>\n                    <path\n                        d="M2.210,14.014 L2.195,7.474 L0.002,7.474 L0.002,4.813 L2.190,4.813 L2.190,1.749 C2.190,1.749 2.308,0.015 3.519,0.015 C4.731,0.015 6.724,0.015 6.724,0.015 L6.724,2.071 L4.692,2.071 L4.692,4.773 L6.685,4.773 L6.685,7.394 L4.731,7.394 L4.731,14.046 L2.210,14.014 Z"\n                        class="cls-1"\n                    />\n                </svg>\n            </a>\n            <a href="#" title="Twitter" class="twitter-cta social-icon"\n                >Twitter\n                <svg xmlns="//www.w3.org/2000/svg" xmlns:xlink="//www.w3.org/1999/xlink" preserveAspectRatio="xMidYMid" width="13.53" height="11.156" viewB
1ox="0 0 13.53 11.156">\n                    <defs>\n                        <style>\n                            .cls-1 {\n                                fill: #fff;\n                                opacity: 0.54;\n                                fill-rule: evenodd;\n                            }\n                        </style>\n                    </defs>\n                    <path\n                        d="M13.517,1.334 C13.020,1.558 12.485,1.709 11.924,1.777 C12.497,1.429 12.936,0.877 13.144,0.220 C12.607,0.542 12.014,0.777 11.382,0.903 C10.876,0.356 10.155,0.014 9.357,0.014 C7.825,0.014 6.583,1.274 6.583,2.829 C6.583,3.049 6.607,3.264 6.655,3.470 C4.349,3.353 2.305,2.232 0.936,0.529 C0.698,0.945 0.561,1.428 0.561,1.944 C0.561,2.921 1.051,3.782 1.795,4.287 C1.340,4.272 0.913,4.146 0.539,3.935 C0.538,3.947 0.538,3.959 0.538,3.970 C0.538,5.334 1.495,6.472 2.764,6.730 C2.531,6.795 2.286,6.829 2.033,6.829 C1.854,6.829 1.680,6.811 1.511,6.779 C1.864,7.897 2.888,8.711 4.102,8.733 C3.153,9.488 1.957,9.938 0.657,9.938 C0.433,9.938 0.212,9.925 -0.005,9.899 C1.223,10.698 2.681,11.164 4.248,11.164 C9.350,11.164 12.141,6.875 12.141,3.155 C12.141,3.033 12.138,2.912 12.133,2.791 C12.675,2.394 13.145,1.898 13.517,1.334 Z"\n                        class="cls-1"\n                    />\n                </svg>\n            </a>\n        </div>\n\n        <div class="copy">\n            <!-- <p>Copyright &copy; 2016 Boeing and Discovery Communications, Inc. All Rights Reserved.</p> -->\n            <p>Copyright &copy; 2021 Boeing, Inc. All Rights Reserved.</p>\n        </div>\n    </li>\n</ul>\n'}),define("app/modules/ui/views/view-mobile",["require","underscore","jquery","backbone","app/base-classes/base-view","app/modules/ui/models/model","text!app/modules/ui/views/templates/tmpl-mobile.html","app/modules/ui/views/view-pulldown","mustache","TweenMax"],function(e){var t=e("underscore"),n=e("jquery"),r=e("backbone"),i=e("app/base-classes/base-view"),s=e("app/modules/ui/models/model"),o=e("text!app/modules/ui/views/templates/tmpl-mobile.html"),u=e("app/modules/ui/views/view-pulldown"),a=e("mustache"),f=e("TweenMax"),l=i.extend({el:"#bng-ui",initialize:function(e,r){this.debug=!0,this.Evt=e,this.Evt.listenTo(this,"MENU_CLICKED",this.Evt.onMenuClick),this.id="#ui-content",this.init(),this.render(),n(this.el).addClass("mobile"),this.console.log("mobile ui is loaded ",this.el),t.bindAll(this,"onScroll")},getDomEl:function(e){var t=e,n=e=="home"?this.domContainers.home:this.domContainers.default;return n},updateUI:function(e){},events:{"click #my-button":"onBtnClick",scroll:"onScroll"},onBrandingLogoClicked:function(e){boeing_globals.state.set({currentPage:"home",currentMenuEpisodeNumber:-1})},onMenuClick:function(e){var t={loadMenu:!0,loadLibrary:!1,currentPage:"home"};this.trigger("MENU_CLICKED",t)},onBtnClick:function(e){var t={myval:"ubu"};this.trigger("BUTTON_EVENT",t)},onScroll:function(e){console.log("scroll")},removeFromStage:function(){},cleanUp:function(){this.undelegateEvents()},fadeInBranding:function(e){var t;switch(e){case"ahctv":t="American Heros Channel",linkVal="//ahctv.com";break;case"sciencechannel":t="Science Channel",linkVal="//sciencechannel.com";break;case"sci":t="Science Channel",linkVal="//sciencechannel.com";break;case"boeing":t="Boeing",linkVal="//boeing.com";break;default:t="Discovery",linkVal="//discovery.com"}n(".branding").find("span").text(t),n("li.branding").attr("data-val",linkVal),n("li.branding").find("a").text(t)},openMenu:function(){var e=!boeing_globals.state.get("loadMenu"),t=function(){n("#mobile-menu-overlay").removeClass("active"),n(".menu-icon img").attr("src","../assets/images/icons/hamburger.svg");var e=n("#ui-branding header");e.addClass("black-bg");var t=n(".branding");t.removeClass("hide")};e===!0?n(".menu-icon img").attr("src","../assets/images/icons/hamburger-close.svg"):t(),boeing_globals.state.set("loadMenu",e)},addPulldown:function(){this.languagePulldown=new u({el:"#language-pulldown"},this.Evt)},afterRender:function(){var e=boeing_globals.subDirectory;this.fadeInBranding(e),n(".menu-icon").on("click",this.openMenu.bind(this)),n("div.branding").on("click",this.onBrandingLogoClicked.bind(this))},getLogoSvg:function(){var e=boeing_globals.subDirectory,t="assets/images/branding/brand-",n=".svg",r=".png",i=e!=="sciencechannel"||e!=="sci"?n:r;return e==="sciencechannel"?t+"science.png":e==="sci"?t+"science.png":t+e+i},render:function(){var e=boeing_globals.brand,t="Proudly Present",r="Proudly Presents",i=e=="boeing"?r:t,s={brand:e,brand_svg:this.getLogoSvg()};n(this.id).remove();var u=a.to_html(o,s);n(this.el).append(u),n(".branding h5").html(i),this.afterRender()}});return l}),define("app/modules/ui/ui-controller",["require","app/modules/ui/events","app/base-classes/view-controller","app/modules/ui/views/view","app/modules/ui/views/view-mobile"],function(e){var t=e("app/modules/ui/events"),n=e("app/base-classes/view-controller"),r=e("app/modules/ui/views/view"),i=e("app/modules/ui/views/view-mobile"),s=r,o=n.extend({id:"bng-ui",tagName:"section",initialize:function(){this.debug=!1,this.init(),this.isMobile==1&&(s=i),t.on("MENU_CLICKED",this.onMenuClick.bind(this)),this.listenTo(this.AppEvents,"TOPICS_PAGE_CHANGE_EVENT",this.onTopicsPageChangeEvent.bind(this)),this.listenTo(t,"LANGUAGE_MODAL_EVENT",this.onLanguageModalEvent.bind(this))},onTopicsPageChangeEvent:function(e){t.trigger("TOPICS_PAGE_CHANGE_EVENT",e)},updateStateFromDataLoad:function(){},onStateChanged:function(){this.updateUI()},onLanguageModalEvent:function(e){var t=e.type==="open"?!0:!1;this.blurLowerEls(t);var n={loadMenu:t,menuType:t?"language":""};
1n=this.formatEventData("STATE_UPDATE_EVENT",n),this.trigger("UICONTROLLER_EVENT",n)},blurLowerEls:function(e){if(boeing_globals.device==="mobile")return;if(typeof e=="undefined"||e===!1){$("#bng-home, #bng-player, #bng-library, #bng-topics").removeClass("blur");return}$("#bng-home, #bng-player, #bng-library, #bng-topics").addClass("blur")},onMenuClick:function(e){var t=e;t=this.formatEventData("STATE_UPDATE_EVENT",t),this.trigger("UICONTROLLER_EVENT",t)},updateUI:function(){var e=this.changed.currentPage;this.view==undefined?this.view=new s(t,e):this.view.updateUI(e)},updateUIState:function(){this.changed.currentPage=="ui"?this.loadViews():this.removeViews()},allLoaded:function(e){return this.changed!=undefined&&this.collection!=undefined},removeViews:function(){this.view!=undefined&&this.view.removeFromStage()},onSubviewEvent:function(e){}});return o}),define("app/modules/player/events",["require","underscore","backbone"],function(e,t,n){var r={init:function(){console.log("events is ",this),this.playHeadTime=0},onStateEvent:function(e){this.trigger("STATE_EVENT",e)},onUpNextEvent:function(e){this.trigger("UPNEXT_CLICK_EVENT",e)},onplayerEvent:function(e){this.trigger("PLAYER_EVENT",e)},onVideoPausedEvent:function(e){this.trigger("MAIN_VIDEO_PAUSED_EVENT")},onModalEvent:function(e){this.trigger("MODAL_WINDOW_EVENT",e)},onHideModalMenuEvent:function(e){this.trigger("MODAL_MENU_HIDE_EVENT",e)},onLocalStateEvent:function(e){this.trigger("LOCAL_STATE_EVENT",e)},onAudienceCardFadeout:function(e){console.log("card fade out in events ",e),console.log("audience card fadeout in events"),this.trigger("AUDIENCE_CARD_FADEOUT_EVENT")},onCardFadeout:function(e){this.trigger("TITLECARD_FADEOUT_EVENT",e)},onChapterUpdatedEvent:function(e){this.trigger("CHAPTER_UPDATED_EVENT",e)},checkForWatchedVideoEvent:function(e){var t=5;e==t&&this.trigger("WATCHED_VIDEO_EVENT")},onVideoPlayHeadEvent:function(e){e.hasOwnProperty("srcElement")===!1&&(e.srcElement=e.target);var t=Math.ceil(e.srcElement.currentTime);t!=this.playHeadTime&&(this.playHeadTime=t,this.trigger("VIDEO_EVENT",{currentTime:this.playHeadTime}),this.checkForWatchedVideoEvent(this.playHeadTime))},onVideoEndedEvent:function(e){console.log("VIDEO ENDED EVETN ",e,"  --->  ",this),this.trigger("VIDEO_ENDED_EVENT",e)},onChromeExtrasEvent:function(e){this.trigger("CHROME_EXTRAS_PAUSE_EVENT")},onTenSecondCountdown:function(){console.log("TEN SECOND CNT EVENT"),this.trigger("TEN_SECOND_COUNTDOWN_EVENT")}
1,onAddModalMenuEvent:function(e){this.trigger("ADD_MODAL_MENU_EVENT",e)},cleanUp:function(e){this.off()},onSubviewEvent:function(e){console.log("subviewEvent func called ",e),this.trigger("SUBVIEW_EVENT",e)},onThumbClick:function(e){console.log("event captured ",e),this.trigger("THUMB_CLICKED_EVENT",e)}};return t.extend(r,n.Events),r}),define("text!app/modules/player/views/templates/tmpl-action-sheets.html",[],function(){return'\n<div id="action-sheets">\n    <div id="resume-btn"></div>\n    <div id="modal-btn">\n        <p>Browse All Episodes</p>\n    </div>\n</div>\n'}),define("app/modules/player/views/player-icon-fs-view",["require","underscore","jquery","backbone","app/base-classes/base-view","mustache","TweenMax"],function(e){var t=e("underscore"),n=e("jquery"),r=e("backbone"),i=e("app/base-classes/base-view"),s=e("mustache"),o=e("TweenMax"),u=i.extend({id:"main-player-fs-icon",className:"icon-fullscreen",tagName:"div",initialize:function(e){this.debug=!1,this.Evt=e,this.init()},events:{},removeFromStage:function(){this.remove()},start:function(){n(this.el).on("click",this.onClickFullscreen.bind(this))},onClickFullscreen:function(e){console.log("clicked:",this.el,n(this.el).closest("#main-player").find(".bc-player-cENsmHkkB_default").length);if(n(this.el).siblings(".bc-player-cENsmHkkB_default").length){var t=n(this.el).closest("#main-player").find(".bc-player-cENsmHkkB_default");t.attr("style",""),t.removeAttr("style")}var r=boeing_globals.state.toJSON(),i=r.currentEpisode+1,s=r.currentChapter+1,o="topic-episode-expand",u=this.gaMixins.getEventLabel(i,s);this.gaMixins.sendUIEvent(o,u),this.trigger("CLICKED")}});return u}),define("text!app/modules/player/views/templates/tmpl-videotray.html",[],function(){return'<div id="tab-icon">\n        <svg xmlns="//www.w3.org/2000/svg" xmlns:xlink="//www.w3.org/1999/xlink" preserveAspectRatio="xMidYMid" width="6" height="10" viewBox="0 0 6 10">\n      <defs>\n        <style>\n          .cls-1 {\n            fill: #828688;\n            fill-rule: evenodd;\n          }\n        </style>\n      </defs>\n      <path d="M5.990,5.160 L1.321,9.994 L-0.003,8.622 L3.496,5.000 L-0.003,1.378 L1.321,0.006 L5.990,4.840 L5.836,5.000 L5.990,5.160 Z" class="cls-1"/>\n    </svg>\n</div>'}),define("app/modules/player/views/player-videotray-view",["require","underscore","jquery","backbone","app/base-classes/base-view","text!app/modules/player/views/templates/tmpl-videotray.html","mustache","TweenMax"],function(e){var t=e("underscore"),n=e("jquery"),r=e("backbone"),i=e("app/base-classes/base-view"),s=e("text!app/modules/player/views/templates/tmpl-videotray.html"),o=e("mustache"),u=e("TweenMax"),a=i.extend({id:"video-tray",className:"tray",tagName:"div",initialize:function(e){this.debug=!1,this.Evt=e,this.init(),boeing_globals.AppEvents.on("CLOSE_TRAY_EVENT",this.onClickTray.bind(this))},events:{},start:function(){},onClickTray:function(e){var t=n("#main-player"),r={};n(t).hasClass("stow")==1?(n(t).removeClass("stow"),r.type="play"):(n(t).addClass("stow"),r.type="pause"),this.trigger("WINDOW_SHADE_EVENT",r)},onClickFullscreen:function(e){this.trigger("tray was clicked")},removeFromStage:function(){this.cleanUp()},cleanUp:function(){this.undelegateEvents(),this.Evt.stopListening(this),n(this.el).remove(),this.remove()},afterRender:function(){n(this.el).on("click",this.onClickTray.bind(this))},render:function(){var e=o.to_html(s);return n(this.el).html(e),this.afterRender(),this.el}});return a}),define("text!app/modules/player/views/templates/tmpl-title.html",[],function(){return'<header class="player-title-header chapter">\n    <h3 class="chapter">{{chapter}} {{chapter_label}}</h3>\n    <h1 class="chapter">{{chapter_title}}</h1>\n</header>\n\n<img class=\'player-title-img chapter\' src="{{image}}" />\n'}),define("text!app/modules/player/views/templates/tmpl-title-episode.html",[],function(){return'<div class="episode-holder">\n<header class="player-title-header episode">\n    <h3>{{episode}} {{episode_label}}</h3>\n    <h1 class="episode">{{episode_title}}</h1>\n</header>\n\n<img class=\'player-title-img episode\' src="{{episode_image}}" />\n</div>'}
1),define("app/modules/player/views/player-videocard-view",["require","underscore","jquery","backbone","app/base-classes/base-view","app/modules/player/views/player-audience-view","mustache","text!app/modules/player/views/templates/tmpl-title.html","text!app/modules/player/views/templates/tmpl-title-episode.html","TweenMax"],function(e){var t=e("underscore"),n=e("jquery"),r=e("backbone"),i=e("app/base-classes/base-view"),s=e("app/modules/player/views/player-audience-view"),o=e("mustache"),u=e("text!app/modules/player/views/templates/tmpl-title.html"),a=e("text!app/modules/player/views/templates/tmpl-title-episode.html"),f=e("TweenMax"),l=i.extend({className:"player-title",tagName:"aside",initialize:function(e,t){this.debug=!1,this.init(),this.Evt=e,this.model=t,this.episode=boeing_globals.state.get("currentEpisode"),this.chapter=boeing_globals.state.get("currentChapter"),this.console.log("thie data is ",this.episode,this.chapter),this.data=this.getData();var n=this.uiTextModel.get("episode"),r=this.uiTextModel.get("chapter");this.data.episode=n,this.data.chapter=r,this.Evt.listenToOnce(this,"TITLECARD_FADEOUT_EVENT",this.Evt.onCardFadeout),this.listenTo(this.Evt,"CHAPTER_UPDATED_EVENT",this.onRemoveCards.bind(this))},events:{},getData:function(){var e=boeing_globals.episodesCollection;this.episode<0&&(this.episode=0),this.console.log("EPISODES COL AT VIDEO CARD ",boeing_globals.episodesCollection,e);var t=e.at(this.episode).toJSON(),n=t.chapters[this.chapter],r=Math.ceil(this.episode*1)+1,i=boeing_globals.cdn+"assets/images/episode-insert-"+r+".jpg";return n.episode_label=t.episode_label,n.episode_title=t.episode_title,n.chapter_label=this.chapter*1+1,n.episode_image=i,n.image="assets/images/gray-bg-4.jpg",this.console.log("chapter is ",n),n},start:function(){},onRemoveCards:function(){this.removeFromStage()},removeFromStage:function(){this.cleanUp()},cleanUp:function(){this.undelegateEvents(),this.remove()},onTitleRendered:function(){var e=function(){this.trigger("TITLECARD_FADEOUT_EVENT",!0)};f.to(n(this.el),1,{opacity:0,delay:1,ease:Power1.easeInOut,onComplete:this.removeFromStage.bind(this)}),window.setTimeout(e.bind(this),2200)},removeEpisodeFromStage:function(){n(".episode-holder").remove()},onAfterEpisodeRendered:function(){var e=new TimelineMax({delay:1,onComplete:this.removeEpisodeFromStage.bind(this)}),t=n("header.player-title-header.episode h3"),r=n("header.player-title-header.episode h1"),i=n("img.player-title-img.episode");window.setTimeout(this.renderChapter.bind(this),1200),e.to(t,.5,{opacity:0,ease:Power1.easeOut}),e.to(r,.5,{opacity:0,ease:Power1.easeOut},"-=0.5"),e.to(i,1.5,{opacity:0,ease:Power1.easeOut}),e.play()},afterEpisodeRender:function(){var e=new TimelineMax({onComplete:this.onAfterEpisodeRendered.bind(this)}),t=n("img.player-title-img.episode"),r=n("header.player-title-header.episode h3"),i=n("header.player-title-header.episode h1");e.to(t,.5,{opacity:1,ease:Power1.easeInOut}),e.to(r,1,{opacity:1,ease:Power1.easeInOut},"-=0.25"),e.to(i,1,{opacity:1,ease:Power1.easeInOut},"-=0.25"),e.play(),f.from(t,5,{scale:1.3,ease:Power1.easeInOut})},afterChapterRender:function(){var e=new TimelineMax({onComplete:this.onTitleRendered.bind(this)}),t=n("img.player-title-img.chapter"),r=n("header.player-title-header.chapter h3"),i=n("header.player-title-header.chapter h1");e.to(t,.5,{opacity:1,ease:Power1.easeIn}),e.to(r,1,{opacity:1,ease:Power1.easeIn},"-=0.25"),e.to(i,1,{opacity:1,ease:Power1.easeIn},"-=0.25"),f.from(t,5,{scale:1.3,ease:Power1.easeInOut}),e.play()},renderEpisode:function(){this.console.log("RENDER EPISODE ");var e=o.to_html(a,this.data);n(this.el).html(e);var t=function(){var e=".player-title-img.episode",t=n(e);t.prop("complete")?(console.log("IMAGE HAS LOADED ALREADY"),window.setTimeout(this.afterEpisodeRender.bind(this),10)):t.load(function(e){window.setTimeout(this.afterEpisodeRender.bind(this),10)}),console.log("IMAGE IS THIS ",t)};boeing_globals.addAudienceCardBool!==undefined&&boeing_globals.addAudienceCardBool===!0?this.addAudienceCard():document.querySelectorAll("div.audience-card").length>=1?this.listenToOnce(this.Evt,"AUDIENCE_CARD_FADEOUT_EVENT",this.onAudienceCardFadeout):window.setTimeout(this.after
1EpisodeRender.bind(this),200)},onAudienceCardFadeout:function(){console.log("audience card fadeout in player cards"),window.setTimeout(this.afterEpisodeRender.bind(this),200)},addAudienceCard:function(){var e=new s(this.Evt);n("#bng-ui").append(e.render()),this.listenToOnce(this.Evt,"AUDIENCE_CARD_FADEOUT_EVENT",this.onAudienceCardFadeout),console.log("this is ",boeing_globals.addAudienceCardBool,this.cid,this.el,this)},renderChapter:function(){var e=o.to_html(u,this.data);this.chapter==0?n(this.el).append(e):n(this.el).html(e),window.setTimeout(this.afterChapterRender.bind(this),100)},render:function(){return this.console.log("the render data is ",this.data,this.chapter),this.chapter==0?this.renderEpisode():this.renderChapter(),this.el}});return l}),define("text!app/modules/video/views/templates/tmpl-popup.html",[],function(){return'<ul class=\'player-popup-content\' data-topic-num="{{topic_num}}">\n\n    <li class="img">\n\n        <div class="blue-stroke">\n            <svg id="svgR" class="svgloader" height="100" width="100">\n                <circle id="pathR" cx="50" cy="50" r="35"   transform="rotate(-90, 50, 50)" /></circle>\n            </svg>\n        </div>\n        <img src="{{topic_image}}" width="180"/>\n\n    </li>\n\n</ul>\n\n<header class="popup-text">\n    <h4 class="title">{{{topic_title}}}</h4>\n    <h4 class="explore">{{explore}}</h4>\n</header>\n\n<div class="player-popup-background"></div>\n\n'});var _gsScope="undefined"!=typeof module&&module.exports&&"undefined"!=typeof global?global:this||window;(_gsScope._gsQueue||(_gsScope._gsQueue=[])).push(function(){"use strict";var e=Math.PI/180,t=180/Math.PI,n=/[achlmqstvz]|(-?\d*\.?\d*(?:e[\-+]?\d+)?)[0-9]/gi,r=/(?:(-|-=|\+=)?\d*\.?\d*(?:e[\-+]?\d+)?)[0-9]/gi,i=/[achlmqstvz]/gi,s=_gsScope.TweenLite,o=function(e){window.console&&console.log(e)},u=function(t,n){var r,i,s,o,u,a,f=Math.ceil(Math.abs(n)/90),l=0,c=[];for(t*=e,n*=e,r=n/f,i=4/3*Math.sin(r/2)/(1+Math.cos(r/2)),a=0;f>a;a++)s=t+a*r,o=Math.cos(s),u=Math.sin(s),c[l++]=o-i*u,c[l++]=u+i*o,s+=r,o=Math.cos(s),u=Math.sin(s),c[l++]=o+i*u,c[l++]=u-i*o,c[l++]=o,c[l++]=u;return c},a=function(n,r,i,s,o,a,f,l,c){if(n!==l||r!==c){i=Math.abs(i),s=Math.abs(s);var h=o%360*e,p=Math.cos(h),d=Math.sin(h),v=(n-l)/2,m=(r-c)/2,g=p*v+d*m,y=-d*v+p*m,b=i*i,w=s*s,E=g*g,S=y*y,x=E/b+S/w;x>1&&(i=Math.sqrt(x)*i,s=Math.sqrt(x)*s,b=i*i,w=s*s);var T=a===f?-1:1,N=(b*w-b*S-w*E)/(b*S+w*E);0>N&&(N=0);var C=T*Math.sqrt(N),k=C*(i*y/s),L=C*-(s*g/i),A=(n+l)/2,O=(r+c)/2,M=A+(p*k-d*L),_=O+(d*k+p*L),D=(g-k)/i,P=(y-L)/s,H=(-g-k)/i,B=(-y-L)/s,j=Math.sqrt(D*D+P*P),F=D;T=0>P?-1:1;var I=T*Math.acos(F/j)*t;j=Math.sqrt((D*D+P*P)*(H*H+B*B)),F=D*H+P*B,T=0>D*B-P*H?-1:1;var q=T*Math.acos(F/j)*t;!f&&q>0?q-=360:f&&0>q&&(q+=360),q%=360,I%=360;var R,U,z,W=u(I,q),X=p*i,V=d*i,$=d*-s,J=p*s,K=W.length-2;for(R=0;K>R;R+=2)U=W[R],z=W[R+1],W[R]=U*X+z*$+M,W[R+1]=U*V+z*J+_;return W[W.length-2]=l,W[W.length-1]=c,W}},f=function(e){var t,r,i,s,u,f,l,c,h,p,d,v,m,g=(e+"").match(n)||[],y=[],b=0,w=0,E=g.length,S=2,x=0;if(!e||!isNaN(g[0])||isNaN(g[1]))return o("ERROR: malformed path data: "+e),y;for(t=0;E>t;t++)if(m=u,isNaN(g[t])?(u=g[t].toUpperCase(),f=u!==g[t]):t--,i=+g[t+1],s=+g[t+2],f&&(i+=b,s+=w),0===t&&(c=i,h=s),"M"===u)l&&l.length<8&&(y.length-=1,S=0),b=c=i,w=h=s,l=[i,s],x+=S,S=2,y.push(l),t+=2,u="L";else if("C"===u)l||(l=[0,0]),l[S++]=i,l[S++]=s,f||(b=w=0),l[S++]=b+1*g[t+3],l[S++]=w+1*g[t+4],l[S++]=b+=1*g[t+5],l[S++]=w+=1*g[t+6],t+=6;else if("S"===u)"C"===m||"S"===m?(p=b-l[S-4],d=w-l[S-3],l[S++]=b+p,l[S++]=w+d):(l[S++]=b,l[S++]=w),l[S++]=i,l[S++]=s,f||(b=w=0),l[S++]=b+=1*g[t+3],l[S++]=w+=1*g[t+4],t+=4;else if("Q"===u)p=i-b,d=s-w,l[S++]=b+2*p/3,l[S++]=w+2*d/3,f||(b=w=0),b+=1*g[t+3],w+=1*g[t+4],p=i-b,d=s-w,l[S++]=b+2*p/3,l[S++]=w+2*d/3,l[S++]=b,l[S++]=w,t+=4;else if("T"===u)p=b-l[S-4],d=w-l[S-3],l[S++]=b+p,l[S++]=w+d,p=b+1.5*p-i,d=w+1.5*d-s,l[S++]=i+2*p/3,l[S++]=s+2*d/3,l[S++]=b=i,l[S++]=w=s,t+=2;else if("H"===u)s=w,l[S++]=b+(i-b)/3,l[S++]=w+(s-w)/3,l[S++]=b+2*(i-b)/3,l[S++]=w+2*(s-w)/3,l[S++]=b=i,l[S++]=s,t+=1;else if("V"===u)s=i,i=b,f&&(s+=w-b),l[S++]=i,l[S++]=w+(s-w)/3,l[S++]=i,l[S++]=w+2*(s-w)/3,l[S++]=i,l[S++]=w=s,t+=1;else if("L"===u||"Z"===u)"Z"===u&&(i=c,s=h,l.closed=!0),("L"===u||Math.abs(b-i)>.5||Math.abs(w-s)>.5)&&(l[S++]=b+(i-b)/3,l[S++]=w+(s-w)/3,l[S++]=b+2*(i-b)/3,l[S++]=w+2*(s-w)/3,l[S++]=i,l[S++]=s,"L"===u&&(t+=2)),b=i,w=s;else if("A"===u){for(v=a(b,w,1*g[t+1],1*g[t+2],1*g[t+3],1*g[t+4],1*g[t+5],(f?b:0)+1*g[t+6],(f?w:0)+1*g[t+7]),r=0;r<v.length;r++)l[S++]=v[r];b=l[S-2],w=l[S-1],t+=7}else o("Error: malformed path data: "+e);return y.totalPoints=x+S,y},l=function(e,t){var n,r,i,s,o,u,a,f,l,c,h,p,d,v,m=0,g=.999999,y=e.length,b=t/((y-2)/6);for(d=2;y>d;d+=6)for(m+=b;m>g;)n=e[d-2],r=e[d-1],i=e[d],s=e[d+1],o=e[d+2],u=e[d+3],a=e[d+4],f=e[d+5],v=1/(Math.floor(m)+1),l=n+(i-n)*v,h=i+(o-i)*v,l+=(h-l)*v,h+=(o+(a-o)*v-h)*v,c=r+(s-r)*v,p=s+(u-s)*v,c+=(p-c)*v,p+=(u+(f-u)*v-p)*v,e.splice(d,4,n+(i-n)*v,r+(s-r)*v,l,c,l+(h-l)*v,c+(p-c)*v,h,p,o+(a-o)*v,u+(f-u)*v),d+=6,y+=6,m--;return e},c=function(e){var t,n,r,i,s="",o=e.length,u=100;for(n=0;o>n;n++){for(i=e[n],s+="M"+i[0]+","+i[1]+" C",t=i.length,r=2;t>r;r++)s+=(i[r++]*u|0)/u+","+(i[r++]*u|0)/u+" "+(i[r++]*u|0)/u+","+(i[r++]*u|0)/u+" "+(i[r++]*u|0)/u+","+(i[r]*u|0)/u+" ";i.closed&&(s+="z")}return s},h=function(e){for(var t=[],n=e.length-1,r=0;--n>-1;)t[r++]=e[n],t[r++]=e[n+1],n--;for(n=0;r>n;n++)e[n]=t[n];e.reversed=e.reversed?!1:!0},p=function(e){var t,n=e.length,r=0,i=0;for(t=0;n>t;t++)r+=e[t++],i+=e[t];return[r/(n/2),i/(n/2)]},d=function(e){var t,n,r,i=e.length,s=e[0],o=s,u=e[1],a=u;for(r=6;i>r;r+=6)t=e[r],n=e[r+1],t>s?s=t:o>t&&(o=t),n>u?u=n:a>n&&(a=n);return e.centerX=(s+o)/2,e.centerY=(u+a)/2,e.size=(s-o)*(u-a)},v=function(e){for(var t,n,r,i,s,o=e.length,u=e[0][0],a=u,f=e[0][1],l=f;--o>-1;)for(s=e[o],t=s.length,i=6;t>i;i+=6)n=s[i],r=s[i+1],n>u?u=n:a>n&&(a=n),r>f?f=r:l>r&&(l=r);
1return e.centerX=(u+a)/2,e.centerY=(f+l)/2,e.size=(u-a)*(f-l)},m=function(e,t){return t.length-e.length},g=function(e,t){var n=e.size||d(e),r=t.size||d(t);return Math.abs(r-n)<(n+r)/20?t.centerX-e.centerX||t.centerY-e.centerY:r-n},y=function(e,t){var n,r,i=e.slice(0),s=e.length,o=s-2;for(t=0|t,n=0;s>n;n++)r=(n+t)%o,e[n++]=i[r],e[n]=i[r+1]},b=function(e,t,n,r,i){var s,o,u,a,f=e.length,l=0,c=f-2;for(n*=6,o=0;f>o;o+=6)s=(o+n)%c,a=e[s]-(t[o]-r),u=e[s+1]-(t[o+1]-i),l+=Math.sqrt(u*u+a*a);return l},w=function(e,t,n){var r,i,s,o=e.length,u=p(e),a=p(t),f=a[0]-u[0],l=a[1]-u[1],c=b(e,t,0,f,l),d=0;for(s=6;o>s;s+=6)i=b(e,t,s/6,f,l),c>i&&(c=i,d=s);if(n)for(r=e.slice(0),h(r),s=6;o>s;s+=6)i=b(r,t,s/6,f,l),c>i&&(c=i,d=-s);return d/6},E=function(e,t,n){for(var r,i,s,o,u,a,f=e.length,l=99999999999,c=0,h=0;--f>-1;)for(r=e[f],a=r.length,u=0;a>u;u+=6)i=r[u]-t,s=r[u+1]-n,o=Math.sqrt(i*i+s*s),l>o&&(l=o,c=r[u],h=r[u+1]);return[c,h]},S=function(e,t,n,r,i,s){var o,u,a,f,l,c=t.length,h=0,p=Math.min(e.size||d(e),t[n].size||d(t[n]))*r,v=999999999999,m=e.centerX+i,g=e.centerY+s;for(u=n;c>u&&(o=t[u].size||d(t[u]),!(p>o));u++)a=t[u].centerX-m,f=t[u].centerY-g,l=Math.sqrt(a*a+f*f),v>l&&(h=u,v=l);return l=t[h],t.splice(h,1),l},x=function(e,t,n,r){var i,s,u,a,f,c,p,b=t.length-e.length,x=b>0?t:e,T=b>0?e:t,N=0,C="complexity"===r?m:g,k="position"===r?0:"number"==typeof r?r:.8,L=T.length,A="object"==typeof n&&n.push?n.slice(0):[n],O="reverse"===A[0]||A[0]<0,M="log"===n;if(T[0]){if(x.length>1&&(e.sort(C),t.sort(C),c=x.size||v(x),c=T.size||v(T),c=x.centerX-T.centerX,p=x.centerY-T.centerY,C===g))for(L=0;L<T.length;L++)x.splice(L,0,S(T[L],x,L,k,c,p));if(b)for(0>b&&(b=-b),x[0].length>T[0].length&&l(T[0],(x[0].length-T[0].length)/6|0),L=T.length;b>N;)a=x[L].size||d(x[L]),u=E(T,x[L].centerX,x[L].centerY),a=u[0],f=u[1],T[L++]=[a,f,a,f,a,f,a,f],T.totalPoints+=8,N++;for(L=0;L<e.length;L++)i=t[L],s=e[L],b=i.length-s.length,0>b?l(i,-b/6|0):b>0&&l(s,b/6|0),O&&!s.reversed&&h(s),n=A[L]||0===A[L]?A[L]:"auto",n&&(s.closed||Math.abs(s[0]-s[s.length-2])<.5&&Math.abs(s[1]-s[s.length-1])<.5?"auto"===n||"log"===n?(A[L]=n=w(s,i,0===L),0>n&&(O=!0,h(s),n=-n),y(s,6*n)):"reverse"!==n&&(L&&0>n&&h(s),y(s,6*(0>n?-n:n))):!O&&("auto"===n&&Math.abs(i[0]-s[0])+Math.abs(i[1]-s[1])+Math.abs(i[i.length-2]-s[s.length-2])+Math.abs(i[i.length-1]-s[s.length-1])>Math.abs(i[0]-s[s.length-2])+Math.abs(i[1]-s[s.length-1])+Math.abs(i[i.length-2]-s[0])+Math.abs(i[i.length-1]-s[1])||n%2)?(h(s),A[L]=-1,O=!0):"auto"===n?A[L]=0:"reverse"===n&&(A[L]=-1),s.closed!==i.closed&&(s.closed=i.closed=!1));return M&&o("shapeIndex:["+A.join(",")+"]"),A}},T=function(e,t,n,r){var i=f(e[0]),s=f(e[1]);x(i,s,t||0===t?t:"auto",n)&&(e[0]=c(i),e[1]=c(s),("log"===r||r===!0)&&o('precompile:["'+e[0]+'","'+e[1]+'"]'))},N=function(e,t,n){return t||n||e||0===e?function(r){T(r,e,t,n)}:T},C=function(e,t){if(!t)return e;var n,i,s,o=e.match(r)||[],u=o.length,a="";for("reverse"===t?(i=u-1,n=-2):(i=(2*(parseInt(t,10)||0)+1+100*u)%u,n=2),s=0;u>s;s+=2)a+=o[i-1]+","+o[i]+" ",i=(i+n)%u;return a},k=function(e,t){var n,r,i,s,o,u,a,f=0,l=parseFloat(e[0]),c=parseFloat(e[1]),h=l+","+c+" ",p=.999999;for(i=e.length,n=.5*t/(.5*i-1),r=0;i-2>r;r+=2){if(f+=n,u=parseFloat(e[r+2]),a=parseFloat(e[r+3]),f>p)for(o=1/(Math.floor(f)+1),s=1;f>p;)h+=(l+(u-l)*o*s).toFixed(2)+","+(c+(a-c)*o*s).toFixed(2)+" ",f--,s++;h+=u+","+a+" ",l=u,c=a}return h},L=function(e){var t=e[0].match(r)||[],n=e[1].match(r)||[],i=n.length-t.length;i>0?e[0]=k(t,i):e[1]=k(n,-i)},A=function(e){return isNaN(e)?L:function(t){L(t),t[1]=C(t[1],parseInt(e,10))}},O=function(e,t){var n=document.createElementNS("http://www.w3.org/2000/svg","path"),r=Array.prototype.slice.call(e.attributes),i=r.length;for(t=","+t+",";--i>-1;)-1===t.indexOf(","+r[i].nodeName+",")&&n.setAttributeNS(null,r[i].nodeName,r[i].nodeValue);return n},M=function(e,t){var n,i,s,o,u,a,f,l,c,h,p,d,v,m,g,y,b,w,E,S,x,T=e.tagName.toLowerCase(),N=.552284749831;return"path"!==T&&e.getBBox?(a=O(e,"x,y,width,height,cx,cy,rx,ry,r,x1,x2,y1,y2,points"),"rect"===T?(o=+e.getAttribute("rx")||0,u=+e.getAttribute("ry")||0,i=+e.getAttribute("x")||0,s=+e.getAttribute("y")||0,h=(+e.getAttribute("width")||0)-2*o,p=(+e.getAttribute("height")||0)-2*u,o||u?(d=i+o*(1-N),v=i+o,m=v+h,g=m+o*N,y=m+o,b=s+u*(1-N),w=s+u,E=w+p,S=E+u*N,x=E+u,n="M"+y+","+w+" V"+E+" C"+[y,S,g,x,m,x,m-(m-v)/3,x,v+(m-v)/3,x,v,x,d,x,i,S,i,E,i,E-(E-w)/3,i,w+(E-w)/3,i,w,i,b,d,s,v,s,v+(m-v)/3,s,m-(m-v)/3,s,m,s,g,s,y,b,y,w].join(",")+"z"):n="M"+(i+h)+","+s+" v"+p+" h"+ -h+" v"+ -p+" h"+h+"z"):"circle"===T||"ellipse"===T?("circle"===T?(o=u=+e.getAttribute("r")||0,l=o*N):(o=+e.getAttribute("rx")||0,u=+e.getAttribute("ry")||0,l=u*N),i=+e.getAttribute("cx")||0,s=+e.getAttribute("cy")||0,f=o*N,n="M"+(i+o)+","+s+" C"+[i+o,s+l,i+f,s+u,i,s+u,i-f,s+u,i-o,s+l,i-o,s,i-o,s-l,i-f,s-u,i,s-u,i+f,s-u,i+o,s-l,i+o,s].join(",")+"z"):"line"===T?n="M"+e.getAttribute("x1")+","+e.getAttribute("y1")+" L"+e.getAttribute("x2")+","+e.getAttribute("y2"):("polyline"===T||"polygon"===T)&&(c=(e.getAttribute("points")+"").match(r)||[],i=c.shift(),s=c.shift(),n="M"+i+","+s+" L"+c.join(","),"polygon"===T&&(n+=","+i+","+s+"z")),a.setAttribute("d",n),t&&e.parentNode&&(e.parentNode.insertBefore(a,e),e.parentNode.removeChild(e)),a):e},_=function(e,t,n){var i,u,a="string"==typeof e;return(!a||(e.match(r)||[]).length<3)&&(i=a?s.selector(e):[e],i&&i[0]?(i=i[0],u=i.nodeName.toUpperCase(),t&&"PATH"!==u&&(i=M(i,!1),u="PATH"),e=i.getAttribute("PATH"===u?"d":"points")||"",i===n&&(e=i.getAttributeNS(null,"data-original")||e)):(o("WARNING: invalid morph to: "+e),e=!1)),e},D="Use MorphSVGPlugin.convertToPath(elementOrSelectorText) to convert to a path before morphing.",P=_gsScope._gsDefine.plugin({propName:"morphSVG",API:2,global:!0,version:"0.8.1",init:function(e,t,n){var r,s,u,a,f;return"function"!=typeof e.setAttribute?!1:(r=e.nodeName.toUpperCase(),f="POLYLINE"===r||"POLYGON"===r,"PATH"===r||f?(s="PATH"===r?"d":"points",("string"==typeof t||t.getBBox||t[0])&&(t={shape:t}),a=_(t.shape||t.d||t.points||"","d"===s,e),f&&i.test(a)?(o("WARNING: a <"+r+"> cannot accept path data. "+D),!1):(a&&(this._target=e,e.getAttributeNS(null,"data-original")||e.setAttributeNS(null,"data-original",e.getAttribute(s)),u=this._addTween(e,"setAttribute",e.getAttribute(s)+"",a+"","morphSVG",!1,s,"object"==typeof t.precompile?function(e){e[0]=t.precompile[0],e[1]=t.precompile[1]}:"d"===s?N(t.shapeIndex,t.map||P.defaultMap,t.precompile):A(t.shapeIndex)),u&&(this._overwriteProps.push("morphSVG"),u.end=a,u.endProp=s)),!0)):(o("WARNING: cannot morph a <"+r+"> SVG element. "+D),!1))},set:function(e){var t;if(this._super.setRatio.call(this,e),1===e)for(t=this._firstPT;t;)t.end&&this._target.setAttribute(t.endProp,t.end),t=t._next}});P.pathFilter=T,P.pointsFilter=L,P.subdivideRawBezier=l,P.defaultMap="size",P.pathDataToRawBezier=function(e){return f(_(e,!0))},P.equalizeSegmentQuantity=x,P.convertToPath=function(e,t){"string"==typeof e&&(e=s.selector(e));for(var n=e&&0!==e.length?e.length&&e[0]&&e[0].nodeType?Array.prototype.slice.call(e,0):[e]:[],r=n.length;--r>-1;)n[r]=M(n[r],t!==!1);return n},P.pathDataToBezier=function(e,t){var n,r,i,o,u,a,l,c,h=f(_(e,!0))[0]||[],p=0;if(t=t||{},c=t.align||t.relative,o=t.matrix||[1,0,0,1,0,0],u=t.offsetX||0,a=t.offsetY||0,"relative"===c||c===!0?(u-=h[0]*o[0]+h[1]*o[2],a-=h[0]*o[1]+h[1]*o[3],p="+="):(u+=o[4],a+=o[5],c&&(c="string"==typeof c?s.selector(c):[c],c&&c[0]&&(l=c[0].getBBox()||{x:0,y:0},u-=l.x,a-=l.y))),n=[],i=h.length,o)for(r=0;i>r;r+=2)n.push({x:p+(h[r]*o[0]+h[r+1]*o[2]+u),y:p+(h[r]*o[1]+h[r+1]*o[3]+a)});else for(r=0;i>r;r+=2)n.push({x:p+(h[r]+u),y:p+(h[r+1]+a)});return n}}),_gsScope._gsDefine&&_gsScope._gsQueue.pop()(),define("MorphSvgPlugin",["TweenMax"],function(){}),define("app/modules/video/views/video-popup-view",["require","underscore","jquery","backbone","app/base-classes/base-view","mustache","text!app/modules/video/views/templates/tmpl-popup.html","MorphSvgPlugin","TweenMax"],function(e){var t=e("underscore"),n=e("jquery"),r=e("backbone"),i=e("app/base-classes/base-view"),s=e("mustache"),o=e("text!app/modules/video/views/templates/tmpl-popup.html"),u=e("MorphSvgPlugin"),a=e("TweenMax"),f=i.extend({className:"player-popup",tagName:"li",initialize:function(e){this.data=e,this.leftPos=this.data.leftPos,this.debug=!1,this.init(),this.setDebugEnv(),this.removeFromStage=function(){a.to(n(this.el),.5,{opacity:0,ease:Power2.easeInOut,onComplete:this.cleanUp.bind(this)})}},events:{"mouseover .player-popup-hotspot":"onHotSpotOver"},onClicked:function(e){this.trigger("CLICKED")},onHotSpotOver:function(e){this.console.log("on hotspot over ",e)},afterRender:function(){n(this.el).on("click",this.onClicked.bind(this));if(this.data.hideProgressCircleBool!==!0){var e=n(this.el).find("#pathR");a.set(e,{drawSVG:0}),a.to(e,9.9,{drawSVG:"100%",ease:Power2.easeOut}),n(this.el).find("#svgR").css("display","block")}else n(this.el).find("#svgR").css("display","none")},removeFromStage:function(){console.log("popup remove from stage ",this),a.to(n(this.el),.5,{opacity:0,ease:Power2.easeInOut,onComplete:this.cleanUp.bind(this)})},cleanUp:function(){this.trigger("PLAYER_POPUP_EVENT",{type:"removed"}),this.undelegateEvents(),n(this.el).removeClass("reveal"),n(this.el).html(""),this.remove()},onClicked:function(e){var t=n(this.el).data("topic-num");this.console.log("tgt and data ",t);var r={type:"clicked",topic_num:t,currentTopic:t};this.trigger("PLAYER_POPUP_EVENT",r)},start:function(){var e=new TimelineMax;e.to(n(".player-popup-content"),.5,{css:{opacity:1},ease:Power2.easeOut}),e.to(n(".player-popup-content li.img"),.5,{css:{opacity:1},ease:Power2.easeOut},"-=.4"),e.to(n(".popup-text"),.5,{css:{opacity:1},ease:Power2.easeOut},"-=.2"),this.trigger("PLAYER_POPUP_EVENT",{type:"launched"}),n(this.el).on("click",this.onClicked.bind(this)),n(this.el).css("left",this.leftPos),n(this.el).data("topic-num",this.data.topic_num)},render:function(){this.data.explore=this.uiTextModel.get("explore");var e=s.to_html(o,this.data);return n(this.el).html(e),this.afterRender(),this.el}});return f}),define("text!app/modules/video/views/templates/tmpl-up-next.html",[],function(){return'<div class="icon">\n    <svg id="svgR" class="svgloader" height="30" width="30">\n        <circle id="pathR" cx="20" cy="20" r="10"></circle>\n    </svg>\n\n    <header></header>\n</div>\n'}),define("app/modules/video/views/up-next-view",["require","underscore","jquery","backbone","app/base-classes/base-view","mustache","text!app/modules/video/views/templates/tmpl-up-next.html","TweenMax"],function(e){var t=e("underscore"),n=e("jquery"),r=e("backbone"),i=e("app/base-classes/base-view"),s=e("mustache"),o=e("text!app/modules/video/views/templates/tmpl-up-next.html"),u;TweenMax=e("TweenMax");var a=i.extend({className:"up-next bng-chrome-item hide",initialize:function(e){this.debug=!1,this.init(),this.Evt=e,this.listenTo(this.Evt,"TITLECARD_FADEOUT_EVENT",this.updateText.bind(this)),this.Evt.listenTo(this,"UPNEXT_CLICK_EVENT",this.Evt.onUpNextEvent),this.listenTo(this.Evt,"TEN_SECOND_COUNTDOWN_EVENT",this.onRevealUpNext.bind(this)),window.setTimeout(this.addStream.bind(this),1e3)},getParentStream:function(){var e=function(e){return e},t=function(e){return e[0].time=Math.floor(e[0].time),e},n=function(){return document.querySelector("video#player-video_html5_api")!==null},r=boeing_globals.vidSubject.switchMap(e.bind(this)).takeWhile(n.bind(this)).map(t),i=function(e){return e[0].time};return r},addStream:function(){this.parentVid$=this.getParentStream();var e=function(e){var t=e[0].time,n=e[0].duration,r=t>=n-10,i={upNextBool:r,time:t,duration:n};return i},t=function(e){return e.upNextBool};this.vid$=this.parentVid$.map(e).distinctUntilChanged(t).subscribe(this.onUpNextBool.bind(this))},onUpNextBool:function(e){var t=e.upNextBool;t===!0?this.onRevealUpNext(null):n(this.el).addClass("hide")},start:function(){},events:{},makeUserActive:function(e){},removeFromStage:function(){this.cleanUp()},onRevealUpNext:function(e){n(this.el).removeClass("hide"),this.resetCircle()},cleanUp:function(){this.vid$!==undefined&&this.vid$.dispose(),this.undelegateEvents(),this.Evt.stopListening(this),n(this.el).removeClass("reveal"),n(this.el).remove(),this.remove()},onUpNextClick:function(){var e={currentChapter:this.nextChapter,currentEpisode:this.episode};
1this.trigger("UPNEXT_CLICK_EVENT",e),this.console.log("up next is here ",e)},afterRender:function(){this.updateText()},resetCircle:function(){var e=function(){n(this.el).addClass("hide")},t=n(this.el).find("#pathR");TweenMax.set(this.el,{opacity:0,right:-380}),TweenMax.set(t,{drawSVG:0});var r=new TimelineMax;r.to(this.el,1,{opacity:1,right:-80,ease:Power1.easeInOut}),r.to(t,7.5,{drawSVG:"100%",ease:Power2.easeOut},"-=.35"),r.to(this.el,1,{opacity:0,right:-380,ease:Power1.easeOut,onComplete:e.bind(this)})},addClickEvent:function(){n(this.el).on("click",this.onUpNextClick.bind(this))},getNextTitle:function(){var e=boeing_globals.state.get("currentEpisode");if(boeing_globals.episodesCollection==undefined)return undefined;var t=boeing_globals.episodesCollection.at(e).toJSON(),n=boeing_globals.state.get("currentChapter"),r=n+1;if(r<t.chapters.length){var i=t.chapters[r].chapter_title;return this.nextChapter=r,this.episode=e,i}if(r>=t.chapters.length){var s=boeing_globals.state.get("currentEpisode"),o=boeing_globals.episodesCollection.length;boeing_globals.hideEpisode5==1&&(s-=1),s+=1,this.nextChapter=0,this.episode=0;if(s<o&&boeing_globals.hideEpisode5!=1){this.episode=s,s+=1;var u=this.uiTextModel.get("episode");return u+" "+String(s)}}return undefined},updateText:function(){var e=this.getNextTitle();this.console.log("NEXT TITLE IS ",e),e!=undefined?(this.renderText(e),n(this.el).data({currentChapter:this.nextChapter,currentEpisode:this.episode})):n(this.el).data({currentChapter:undefined,currentEpisode:undefined}),this.addClickEvent()},renderText:function(e){n(this.el).addClass("hide");var t=s.to_html(o);n(this.el).html(t);var r=this.uiTextModel.get("up-next"),i="<p><span>"+r+" : </span>",u="</p>",a=n(i+e+u);this.console.log("NEXT TEXT IS ",a,this.el),n(this.el).append(a)},render:function(){return window.setTimeout(this.afterRender.bind(this),300),window.setTimeout(this.resetCircle.bind(this),8e3),this.el}});return a}),define("text!app/modules/video/views/templates/video-chrome-extras-tmpl.html",[],function(){return'<li class="pause-btn"></li>\n<li class="episode-info">\n    <h4>{{eyebrow}}<br>\n    {{title}}\n    </h4>\n\n</li>\n<li class="prev-next-btn prev" data-dir="-1"></li>\n<li class="prev-next-btn next" data-dir="1"></li>\n'}),define("app/modules/video/views/video-chrome-extras-view",["require","jquery","app/base-classes/base-view","mustache","text!app/modules/video/views/templates/video-chrome-extras-tmpl.html"],function(e){var t=e("jquery"),n=e("app/base-classes/base-view"),r=e("mustache"),i=e("text!app/modules/video/views/templates/video-chrome-extras-tmpl.html"),s=n.extend({tagName:"ul",className:"chrome-extras",initialize:function(e){this.debug=!1,this.init(),this.Evt=e,this.listenTo(this.Evt,"TITLECARD_FADEOUT_EVENT",this.updateChromeExtrasInfo.bind(this)),this.Evt.listenTo(this,"UPNEXT_CLICK_EVENT",this.Evt.onUpNextEvent),this.Evt.listenTo(this,"CHROME_EXTRAS_PAUSE_EVENT",this.Evt.onChromeExtrasEvent),this.Evt.listenTo(this,"ADD_MODAL_MENU_EVENT",this.Evt.onAddModalMe
1nuEvent)},start:function(){},events:{},removeFromStage:function(){this.cleanUp()},cleanUp:function(){this.undelegateEvents(),this.Evt.stopListening(this),t(this.el).remove(),this.remove()},getCorrectEpisodeNum:function(e){var t=e,n=boeing_globals.episodes_length;return t>=n?t=0:t<0&&(t=n-1),t},getChromeInfoData:function(){var e=boeing_globals.state.get("currentEpisode"),t=boeing_globals.state.get("currentChapter"),n=boeing_globals.episodesCollection.at(e).toJSON(),r=e*1+1,i=t*1+1,s=boeing_globals.uiTextModel.get("episode"),o=s+" "+r,u="CH "+i+": "+n.chapters[t].chapter_title;return{eNum:e,cNum:t,title:u,eyebrow:o}},updateChromeExtrasInfo:function(e,n,r){var i=t(this.el).find(".episode-info h4"),s=this.getChromeInfoData(),o="<span>"+s.eyebrow+"</span>"+s.title;i.html(o)},updatePlayerChapter:function(e){var t=boeing_globals.state.get("currentChapter"),n=t+e,r=boeing_globals.state.get("currentEpisode"),i=r,s=boeing_globals.episodesCollection.at(r).toJSON(),o=s.chapters.length;n>=o?(n=0,i=this.getCorrectEpisodeNum(r+1),s=boeing_globals.episodesCollection.at(i).toJSON()):n<0&&(i=this.getCorrectEpisodeNum(r-1),s=boeing_globals.episodesCollection.at(i).toJSON(),o=s.chapters.length,n=o-1);var u={currentChapter:n,currentEpisode:i},a=function(){this.updateChromeExtrasInfo(r+1,t+1,s.chapters[t].chapter_title)};window.setTimeout(a.bind(this),500),this.trigger("UPNEXT_CLICK_EVENT",u)},onPrevNextClick:function(e){var n=t(e.currentTarget),r=n.data(),i=r.dir;this.updatePlayerChapter(i)},onPauseClick:function(e){this.trigger("ADD_MODAL_MENU_EVENT")},afterRender:function(){t(this.el).find(".prev-next-btn").on("click",this.onPrevNextClick.bind(this)),t(this.el).find(".pause-btn").on("click",this.onPauseClick.bind(this))},render:function(){var e=this.getChromeInfoData(),n=r.to_html(i,e);return t(this.el).html(n),this.afterRender(),this.el}});return s}),!function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define("videojs",[],e);else{var t;t="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this,t.videojs=e()}}(function(){var e;return function t(e,n,r){function i(o,u){if(!n[o]){if(!e[o]){var l="function"==typeof require&&require;if(!u&&l)return l(o,!0);if(s)return s(o,!0);var h=new Error("Cannot find module '"+o+"'");throw h.code="MODULE_NOT_FOUND",h}var p=n[o]={exports:{}};e[o][0].call(p.exports,function(t){var n=e[o][1][t];return i(n?n:t)},p,p.exports,t,e,n,r)}return n[o].exports}for(var s="function"==typeof require&&require,o=0;o<r.length;o++)i(r[o]);return i}({1:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}n.__esModule=!0;var u=e(2),a=r(u),f=e(5),l=r(f),c=function(e){function t(){return i(this,t),s(this,e.apply(this,arguments))}return o(t,e),t.prototype.buildCSSClass=function(){return"vjs-big-play-button"},t.prototype.handleClick=function(e){this.player_.play();var t=this.player_.getChild("controlBar"),n=t&&t.getChild("playToggle");if(!n)return void this.player_.focus();this.setTimeout(function(){n.focus()},1)},t}(a["default"]);c.prototype.controlText_="Play Video",l["default"].registerComponent("BigPlayButton",c),n["default"]=c},{2:2,5:5}],2:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}n.__esModule=!0;var u=e(3),a=r(u),f=e(5),l=r(f),c=e(86),h=r(c),p=e(88),d=function(e){function t(){return i(this,t),s(this,e.apply(this,arguments))}return o(t,e),t.prototype.createEl=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"button",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};t=(0,p.assign)({className:this.buildCSSClass()},t),"button"!==e&&(h["default"].warn("Creating a Button with an HTML element of "+e+" is deprecated; use ClickableComponent instead."),t=(0,p.assign)({tabIndex:0},t),n=(0,p.assign)({role:"button"},n)),n=(0,p.assign)({type:"button","aria-live":"polite"},n);var r=l["default"].prototype.createEl.call(this,e,t,n);return this.createControlTextEl(r),r},t.prototype.addChild=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this.constructor.name;return h["default"].warn("Adding an actionable (user controllable) child to a Button ("+n+") is not supported; use a ClickableComponent instead."),l["default"].prototype.addChild.call(this,e,t)},t.prototype.enable=function(){e.prototype.enable.call(this),this.el_.removeAttribute("disabled")},t.prototype.disable=function(){e.prototype.disable.call(this),this.el_.setAttribute("disabled","disabled")},t.prototype.handleKeyPress=function(t){32!==t.which&&13!==t.which&&e.prototype.handleKeyPress.call(this,t)},t}(a["default"]);l["default"].registerComponent("Button",d),n["default"]=d},{3:3,5:5,86:86,88:88}],3:[function(e,t,n){"use strict";
vendor: 8,942 bytes, line 1
1function r(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t["default"]=e,t}function i(e){return e&&e.__esModule?e:{"default":e}}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function u(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}n.__esModule=!0;var a=e(5),f=i(a),l=e(81),c=r(l),h=e(82),p=r(h),d=e(83),v=r(d),m=e(86),g=i(m),y=e(94),b=i(y),w=e(88),E=function(e){function t(n,r){s(this,t);var i=o(this,e.call(this,n,r));return i.emitTapEvents(),i.enable(),i}return u(t,e),t.prototype.createEl=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"div",n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};n=(0,w.assign)({className:this.buildCSSClass(),tabIndex:0},n),"button"===t&&g["default"].error("Creating a ClickableComponent with an HTML element of "+t+" is not supported; use a Button instead."),r=(0,w.assign)({role:"button","aria-live":"polite"},r),this.tabIndex_=n.tabIndex;var i=e.prototype.createEl.call(this,t,n,r);return this.createControlTextEl(i),i},t.prototype.createControlTextEl=function(e){return this.controlTextEl_=c.createEl("span",{className:"vjs-control-text"}),e&&e.appendChild(this.controlTextEl_),this.controlText(this.controlText_,e),this.controlTextEl_},t.prototype.controlText=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.el();if(!e)return this.controlText_||"Need Text";var n=this.localize(e);return this.controlText_=e,this.controlTextEl_.innerHTML=n,this.nonIconControl||t.setAttribute("title",n),this},t.prototype.buildCSSClass=function(){return"vjs-control vjs-button "+e.prototype.buildCSSClass.call(this)},t.prototype.enable=function(){return this.removeClass("vjs-disabled"),this.el_.setAttribute("aria-disabled","false"),"undefined"!=typeof this.tabIndex_&&this.el_.setAttribute("tabIndex",this.tabIndex_),this.on("tap",this.handleClick),this.on("click",this.handleClick),this.on("focus",this.handleFocus),this.on("blur",this.handleBlur),this},t.prototype.disable=function(){return this.addClass("vjs-disabled"),this.el_.setAttribute("aria-disabled","true"),"undefined"!=typeof this.tabIndex_&&this.el_.removeAttribute("tabIndex"),this.off("tap",this.handleClick),this.off("click",this.handleClick),this.off("focus",this.handleFocus),this.off("blur",this.handleBlur),this},t.prototype.handleClick=function(e){},t.prototype.handleFocus=function(e){p.on(b["default"],"keydown",v.bind(this,this.handleKeyPress))},t.prototype.handleKeyPress=function(t){32===t.which||13===t.which?(t.preventDefault(),this.handleClick(t)):e.prototype.handleKeyPress&&e.prototype.handleKeyPress.call(this,t)},t.prototype.handleBlur=function(e){p.off(b["default"],"keydown",v.bind(this,this.handleKeyPress))},t}(f["default"]);f["default"].registerComponent("ClickableComponent",E),n["default"]=E},{5:5,81:81,82:82,83:83,86:86,88:88,94:94}],4:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}n.__esModule=!0;var u=e(2),a=r(u),f=e(5),l=r(f),c=function(e){function t(n,r){i(this,t);var o=s(this,e.call(this,n,r));return o.controlText(r&&r.controlText||o.localize("Close")),o}return o(t,e),t.prototype.buildCSSClass=function(){return"vjs-close-button "+e.prototype.buildCSSClass.call(this)},t.prototype.handleClick=function(e){this.trigger({type:"close",bubbles:!1})},t}(a["default"]);l["default"].registerComponent("CloseButton",c),n["default"]=c},{2:2,5:5}],5:[function(e,t,n){"use strict";function r(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t["default"]=e,t}function i(e){return e&&e.__esModule?e:{"default":e}}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}n.__esModule=!0;var o=e(95),u=i(o),a=e(81),f=r(a),l=e(83),c=r(l),h=e(85),p=r(h),d=e(82),v=r(d),m=e(86),g=i(m),y=e(91),b=i(y),w=e(87),E=i(w),S=function(){function e(t,n,r){if(s(this,e),!t&&this.play?this.player_=t=this:this.player_=t,this.options_=(0,E["default"])({},this.options_),n=this.options_=(0,E["default"])(this.options_,n),this.id_=n.id||n.el&&n.el.id,!this.id_){var i=t&&t.id&&t.id()||"no_player";this.id_=i+"_component_"+p.newGUID()}this.name_=n.name||null,n.el?this.el_=n.el:n.createEl!==!1&&(this.el_=this.createEl()),this.children_=[],this.childIndex_={},this.childNameIndex_={},n.initChildren!==!1&&this.initChildren(),this.ready(r),n.reportTouchActivity!==!1&&this.enableTouchActivity()}return e.prototype.dispose=function(){if(this.trigger({type:"dispose",bubbles:!1}),this.children_)for(var e=this.children_.length-1;e>=0;e--)this.children_[e].dispose&&this.children_[e].dispose();this.children_=null,this.childIndex_=null,this.childNameIndex_=null,this.off(),this.el_.parentNode&&this.el_.parentNode.removeChild(this.el_),f.removeElData(this.el_),this.el_=null},e.prototype.player=function(){return this.player_},e.prototype.options=function(e){return g["default"].warn("this.options() has been deprecated and will be moved to the constructor in 6.0"),e?(this.options_=(0,E["default"])(this.options_,e),this.options_):this.options_},e.prototype.el=function(){return this.el_},e.prototype.createEl=function(e,t,n){return f.createEl(e,t,n)},e.prototype.localize=function(e){var t=this.player_.language&&this.player_.language(),n=this.player_.languages&&this.player_.languages();if(!t||!n)return e;var r=n[t];if(r&&r[e])return r[e];var i=t.split("-")[0],s=n[i];return s&&s[e]?s[e]:e},e.prototype.contentEl=function(){return this.contentEl_||this.el_},e.prototype.id=function(){return this.id_},e.prototype.name=function(){return this.name_},e.prototype.children=function(){return this.children_},e.prototype.getChildById=function(e){return this.childIndex_[e]},e.prototype.getChild=function(e){if(e)return e=(0,b["default"])(e),this.childNameIndex_[e]},e.prototype.addChild=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.children_.length,i=void 0,s=void 0;if("string"==typeof t){s=(0,b["default"])(t),n||(n={}),n===!0&&(g["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`."),n={});var o=n.componentClass||s;n.name=s;var u=e.getComponent(o);if(!u)throw new Error("Component "+o+" does not exist");if("function"!=typeof u)return null;i=new u(this.player_||this,n)}else i=t;if(this.children_.splice(r,0,i),"function"==typeof i.id&&(this.childIndex_[i.id()]=i),s=s||i.name&&(0,b["default"])(i.name()),s&&(this.childNameIndex_[s]=i),"function"==typeof i.el&&i.el()){var a=this.contentEl().children,f=a[r]||null;this.contentEl().insertBefore(i.el(),f)}return i},e.prototype.removeChild=function(e){if("string"==typeof e&&(e=this.getChild(e)),e&&this.children_){for(var t=!1,n=this.children_.length-1;n>=0;n--)if(this.children_[n]===e){t=!0,this.children_.splice(n,1);break}if(t){this.childIndex_[e.id()]=null,this.childNameIndex_[e.name()]=null;var r=e.el();r&&r.parentNode===this.contentEl()&&this.contentEl().removeChild(e.el())}}},e.prototype.initChildren=function(){var t=this,n=this.options_.children;if(n){var r=this.options_,i=function(e){var n=e.name,i=e.opts;if(void 0!==r[n]&&(i=r[n]),i!==!1){i===!0&&(i={}),i.playerOptions=t.options_.playerOptions;var s=t.addChild(n,i);s&&(t[n]=s)}},s=void 0,o=e.getComponent("Tech");s=Array.isArray(n)?n:Object.keys(n),s.concat(Object.keys(this.options_).filter(function(e){return!s.some(function(t){return"string"==typeof t?e===t:e===t.name})})).map(function(e){var r=void 0,i=void 0;return"string"==typeof e?(r=e,i=n[r]||t.options_[r]||{}):(r=e.name,i=e),{name:r,opts:i}}).filter(function(t){var n=e.getComponent(t.opts.componentClass||(0,b["default"])(t.name));return n&&!o.isTech(n)}
1).forEach(i)}},e.prototype.buildCSSClass=function(){return""},e.prototype.on=function(e,t,n){var r=this;if("string"==typeof e||Array.isArray(e))v.on(this.el_,e,c.bind(this,t));else{var i=e,s=t,o=c.bind(this,n),u=function(){return r.off(i,s,o)};u.guid=o.guid,this.on("dispose",u);var a=function(){return r.off("dispose",u)};a.guid=o.guid,e.nodeName?(v.on(i,s,o),v.on(i,"dispose",a)):"function"==typeof e.on&&(i.on(s,o),i.on("dispose",a))}return this},e.prototype.off=function(e,t,n){if(!e||"string"==typeof e||Array.isArray(e))v.off(this.el_,e,t);else{var r=e,i=t,s=c.bind(this,n);this.off("dispose",s),e.nodeName?(v.off(r,i,s),v.off(r,"dispose",s)):(r.off(i,s),r.off("dispose",s))}return this},e.prototype.one=function(e,t,n){var r=this,i=arguments;if("string"==typeof e||Array.isArray(e))v.one(this.el_,e,c.bind(this,t));else{var s=e,o=t,u=c.bind(this,n),a=function f(){r.off(s,o,f),u.apply(null,i)};a.guid=u.guid,this.on(s,o,a)}return this},e.prototype.trigger=function(e,t){return v.trigger(this.el_,e,t),this},e.prototype.ready=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return e&&(this.isReady_?t?e.call(this):this.setTimeout(e,1):(this.readyQueue_=this.readyQueue_||[],this.readyQueue_.push(e))),this},e.prototype.triggerReady=function(){this.isReady_=!0,this.setTimeout(function(){var e=this.readyQueue_;this.readyQueue_=[],e&&e.length>0&&e.forEach(function(e){e.call(this)},this),this.trigger("ready")},1)},e.prototype.$=function(e,t){return f.$(e,t||this.contentEl())},e.prototype.$$=function(e,t){return f.$$(e,t||this.contentEl())},e.prototype.hasClass=function(e){return f.hasElClass(this.el_,e)},e.prototype.addClass=function(e){return f.addElClass(this.el_,e),this},e.prototype.removeClass=function(e){return f.removeElClass(this.el_,e),this},e.prototype.toggleClass=function(e,t){return f.toggleElClass(this.el_,e,t),this},e.prototype.show=function(){return this.removeClass("vjs-hidden"),this},e.prototype.hide=function(){return this.addClass("vjs-hidden"),this},e.prototype.lockShowing=function(){return this.addClass("vjs-lock-showing"),this},e.prototype.unlockShowing=function(){return this.removeClass("vjs-lock-showing"),this},e.prototype.getAttribute=function(e){return f.getAttribute(this.el_,e)},e.prototype.setAttribute=function(e,t){return f.setAttribute(this.el_,e,t),this},e.prototype.removeAttribute=function(e){return f.removeAttribute(this.el_,e),this},e.prototype.width=function(e,t){return this.dimension("width",e,t)},e.prototype.height=function(e,t){return this.dimension("height",e,t)},e.prototype.dimensions=function(e,t){return this.width(e,!0).height(t)},e.prototype.dimension=function(e,t,n){if(void 0!==t)return null!==t&&t===t||(t=0),(""+t).indexOf("%")!==-1||(""+t).indexOf("px")!==-1?this.el_.style[e]=t:this.el_.style[e]="auto"===t?"":t+"px",n||this.trigger("resize"),this;if(!this.el_)return 0;var r=this.el_.style[e],i=r.indexOf("px");return i!==-1?parseInt(r.slice(0,i),10):parseInt(this.el_["offset"+(0,b["default"])(e)],10)},e.prototype.currentDimension=function(e){var t=0;if("width"!==e&&"height"!==e)throw new Error("currentDimension only accepts width or height value");if("function"==typeof u["default"].getComputedStyle){var n=u["default"].getComputedStyle(this.el_);t=n.getPropertyValue(e)||n[e]}if(t=parseFloat(t),0===t){var r="offset"+(0,b["default"])(e);t=this.el_[r]}return t},e.prototype.currentDimensions=function(){return{width:this.currentDimension("width"),height:this.currentDimension("height")}},e.prototype.currentWidth=function(){return this.currentDimension("width")},e.prototype.currentHeight=function(){return this.currentDimension("height")},e.prototype.focus=function(){this.el_.focus()},e.prototype.blur=function(){this.el_.blur()},e.prototype.emitTapEvents=function(){var e=0,t=null,n=void 0;this.on("touchstart",function(r){1===r.touches.length&&(t={pageX:r.touches[0].pageX,pageY:r.touches[0].pageY},e=(new Date).getTime(),n=!0)}),this.on("touchmove",function(e){if(e.touches.length>1)n=!1;else if(t){var r=e.touches[0].pageX-t.pageX,i=e.touches[0].pageY-t.pageY,s=Math.sqrt(r*r+i*i);s>10&&(n=!1)}});var r=function(){n=!1};this.on("touchleave",r),this.on("touchcancel",r),this.on("touchend",function(r){(t=null,n===!0)&&(new Date).getTime()-e<200&&(r.preventDefault(),this.trigger("tap"))})},e.prototype.enableTouchActivity=function(){if(this.player()&&this.player().reportUserActivity){var e=c.bind(this.player(),this.player().reportUserActivity),t=void 0;this.on("touchstart",function(){e(),this.clearInterval(t),t=this.setInterval(e,250)});var n=function(n){e(),this.clearInterval(t)};this.on("touchmove",e),this.on("touchend",n),this.on("touchcancel",n)}},e.prototype.setTimeout=function(e,t){e=c.bind(this,e);var n=u["default"].setTimeout(e,t),r=function(){this.clearTimeout(n)};return r.guid="vjs-timeout-"+n,this.on("dispose",r),n},e.prototype.clearTimeout=function(e){u["default"].clearTimeout(e);var t=function(){};return t.guid="vjs-timeout-"+e,this.off("dispose",t),e},e.prototype.setInterval=function(e,t){e=c.bind(this,e);var n=u["default"].setInterval(e,t),r=function(){this.clearInterval(n)};return r.guid="vjs-interval-"+n,this.on("dispose",r),n},e.prototype.clearInterval=function(e){u["default"].clearInterval(e);var t=function(){};return t.guid="vjs-interval-"+e,this.off("dispose",t),e},e.registerComponent=function(t,n){if(t){if(t=(0,b["default"])(t),e.components_||(e.components_={}),"Player"===t&&e.components_[t]){var r=e.components_[t];if(r.players&&Object.keys(r.players).length>0&&Object.keys(r.players).map(function(e){return r.players[e]}).every(Boolean))throw new Error("Can not register Player component after player has been created")}return e.components_[t]=n,n}},e.getComponent=function(t){if(t)return t=(0,b["default"])(t),e.components_&&e.components_[t]?e.components_[t]:u["default"]&&u["default"].videojs&&u["default"].videojs[t]?(g["default"].warn("The "+t+" component was added to the videojs object when it should be registered using videojs.registerComponent(name, component)"),u["default"].videojs[t]):void 0},e.extend=function(t){t=t||{},g["default"].warn("Component.extend({}) has been deprecated,  use videojs.extend(Component, {}) instead");var n=t.init||t.init||this.prototype.init||this.prototype.init||function(){},r=function(){n.apply(this,arguments)};r.prototype=Object.create(this.prototype),r.prototype.constructor=r,r.extend=e.extend;for(var i in t)t.hasOwnProperty(i)&&(r.prototype[i]=t[i]);return r},e}();S.registerComponent("Component",S),n["default"]=S},{81:81,82:82,83:83,85:85,86:86,87:87,91:91,95:95}],6:[function(e,t,n){"use strict";
vendor: 30,690 bytes, line 1
1function r(e){return e&&e.__esModule?e:{"default":e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}n.__esModule=!0;var u=e(36),a=r(u),f=e(5),l=r(f),c=e(7),h=r(c),p=function(e){function t(n){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};i(this,t),r.tracks=n.audioTracks&&n.audioTracks();var o=s(this,e.call(this,n,r));return o.el_.setAttribute("aria-label","Audio Menu"),o}return o(t,e),t.prototype.buildCSSClass=function(){return"vjs-audio-button "+e.prototype.buildCSSClass.call(this)},t.prototype.createItems=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];this.hideThreshold_=1;var t=this.player_.audioTracks&&this.player_.audioTracks();if(!t)return e;for(var n=0;n<t.length;n++){var r=t[n];e.push(new h["default"](this.player_,{track:r,selectable:!0}))}return e},t}(a["default"]);p.prototype.controlText_="Audio Track",l["default"].registerComponent("AudioTrackButton",p),n["default"]=p},{36:36,5:5,7:7}],7:[function(e,t,n){"use strict";function r(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t["default"]=e,t}function i(e){return e&&e.__esModule?e:{"default":e}}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function u(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}n.__esModule=!0;var a=e(48),f=i(a),l=e(5),c=i(l),h=e(83),p=r(h),d=function(e){function t(n,r){s(this,t);var i=r.track,u=n.audioTracks();r.label=i.label||i.language||"Unknown",r.selected=i.enabled;var a=o(this,e.call(this,n,r));if(a.track=i,u){var f=p.bind(a,a.handleTracksChange);u.addEventListener("change",f),a.on("dispose",function(){u.removeEventListener("change",f)})}return a}return u(t,e),t.prototype.handleClick=function(t){var n=this.player_.audioTracks();if(e.prototype.handleClick.call(this,t),n)for(var r=0;r<n.length;r++){var i=n[r];i.enabled=i===this.track}},t.prototype.handleTracksChange=function(e){this.selected(this.track.enabled)},t}(f["default"]);c["default"].registerComponent("AudioTrackMenuItem",d),n["default"]=d},{48:48,5:5,83:83}],8:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}n.__esModule=!0;var u=e(5),a=r(u);e(12),e(32),e(33),e(35),e(34),e(10),e(18),e(9),e(38),e(40),e(11),e(25),e(27),e(29),e(24),e(6),e(13),e(21);var f=function(e){function t(){return i(this,t),s(this,e.apply(this,arguments))}return o(t,e),t.prototype.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-control-bar",dir:"ltr"},{role:"group"})},t}(a["default"]);f.prototype.options_={children:["playToggle","volumeMenuButton","currentTimeDisplay","timeDivider","durationDisplay","progressControl","liveDisplay","remainingTimeDisplay","customControlSpacer","playbackRateMenuButton","chaptersButton","descriptionsButton","subtitlesButton","captionsButton","audioTrackButton","fullscreenToggle"]},a["default"].registerComponent("ControlBar",f),n["default"]=f},{10:10,11:11,12:12,13:13,18:18,21:21,24:24,25:25,27:27,29:29,32:32,33:33,34:34,35:35,38:38,40:40,5:5,6:6,9:9}],9:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}n.__esModule=!0;var u=e(2),a=r(u),f=e(5),l=r(f),c=function(e){function t(n,r){i(this,t);var o=s(this,e.call(this,n,r));return o.on(n,"fullscreenchange",o.handleFullscreenChange),o}return o(t,e),t.prototype.buildCSSClass=function(){return"vjs-fullscreen-control "+e.prototype.buildCSSClass.call(this)},t.prototype.handleFullscreenChange=function(e){this.player_.isFullscreen()?this.controlText("Non-Fullscreen"):this.controlText("Fullscreen")},t.prototype.handleClick=function(e){this.player_.isFullscreen()?this.player_.exitFullscreen():this.player_.requestFullscreen()},t}(a["default"]);c.prototype.controlText_="Fullscreen",l["default"].registerComponent("FullscreenToggle",c),n["default"]=c},{2:2,5:5}],10:[function(e,t,n){"use strict";function r(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t["default"]=e,t}function i(e){return e&&e.__esModule?e:{"default":e}}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function u(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}n.__esModule=!0;var a=e(5),f=i(a),l=e(81),c=r(l),h=function(e){function t(n,r){s(this,t);var i=o(this,e.call(this,n,r));return i.updateShowing(),i.on(i.player(),"durationchange",i.updateShowing),i}return u(t,e),t.prototype.createEl=function(){var t=e.prototype.createEl.call(this,"div",{className:"vjs-live-control vjs-control"});return this.contentEl_=c.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(e){this.player().duration()===1/0?this.show():this.hide()},t}(f["default"]);f["default"].registerComponent("LiveDisplay",h),n["default"]=h},{5:5,81:81}],11:[function(e,t,n){"use strict";function r(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t["default"]=e,t}function i(e){return e&&e.__esModule?e:{"default":e}}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function u(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}n.__esModule=!0;var a=e(2),f=i(a),l=e(5),c=i(l),h=e(81),p=r(h),d=function(e){function t(n,r){s(this,t);var i=o(this,e.call(this,n,r));return i.on(n,"volumechange",i.update),n.tech_&&n.tech_.featuresVolumeControl===!1&&i.addClass("vjs-hidden"),i.on(n,"loadstart",function(){this.update(),n.tech_.featuresVolumeControl===!1?this.addClass("vjs-hidden"):this.removeClass("vjs-hidden")}),i}return u(t,e),t.prototype.buildCSSClass=function(){return"vjs-mute-control "+e.prototype.buildCSSClass.call(this)},t.prototype.handleClick=function(e){this.player_.muted(!this.player_.muted())},t.prototype.update=function(e){var t=this.player_.volume(),n=3;0===t||this.player_.muted()?n=0:t<.33?n=1:t<.67&&(n=2);var r=this.player_.muted()?"Unmute":"Mute";this.controlText()!==r&&this.controlText(r);for(var i=0;i<4;i++)p.removeElClass(this.el_,"vjs-vol-"+i);p.addElClass(this.el_,"vjs-vol-"+n)},t}(f["default"]);d.prototype.controlText_="Mute",c["default"].registerComponent("MuteToggle",d),n["default"]=d},{2:2,5:5,81:81}],12:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}n.__esModule=!0;var u=e(2),a=r(u),f=e(5),l=r(f),c=function(e){function t(n,r){i(this,t);var o=s(this,e.call(this,n,r));return o.on(n,"play",o.handlePlay),o.on(n,"pause",o.handlePause),o}return o(t,e),t.prototype.buildCSSClass=function(){return"vjs-play-control "+e.prototype.buildCSSClass.call(this)},t.prototype.handleClick=function(e){this.player_.paused()?this.player_.play():this.player_.pause()},t.prototype.handlePlay=function(e){this.removeClass("vjs-paused"),this.addClass("vjs-playing"),this.controlText("Pause")},t.prototype.handlePause=function(e){this.removeClass("vjs-playing"),this.addClass("vjs-paused"),this.controlText("Play")},t}(a["default"]);c.prototype.controlText_="Play",l["default"].registerComponent("PlayToggle",c),n["default"]=c},{2:2,5:5}],13:[function(e,t,n){"use strict";function r(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t["default"]=e,t}function i(e){return e&&e.__esModule?e:{"default":e}}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function u(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}n.__esModule=!0;var a=e(47),f=i(a),l=e(49),c=i(l),h=e(14),p=i(h),d=e(5),v=i(d),m=e(81),g=r(m),y=function(e){function t(n,r){s(this,t);var i=o(this,e.call(this,n,r));return i.updateVisibility(),i.updateLabel(),i.on(n,"loadstart",i.updateVisibility),i.on(n,"ratechange",i.updateLabel),i}return u(t,e),t.prototype.createEl=function(){var t=e.prototype.createEl.call(this);return this.labelEl_=g.createEl("div",{className:"vjs-playback-rate-value",innerHTML:1}),t.appendChild(this.labelEl_),t},t.prototype.buildCSSClass=function(){return"vjs-playback-rate "+e.prototype.buildCSSClass.call(this)},t.prototype.createMenu=function(){var e=new c["default"](this.player()),t=this.playbackRates();if(t)for(var n=t.length-1;n>=0;n--)e.addChild(new p["default"](this.player(),{rate:t[n]+"x"}));return e},t.prototype.updateARIAAttributes=function(){this.el().setAttribute("aria-valuenow",this.player().playbackRate())},t.prototype.handleClick=function(e){for(var t=this.player().playbackRate(),n=this.playbackRates(),r=n[0],i=0;i<n.length;i++)if(n[i]>t){r=n[i];break}this.player().playbackRate(r)},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(e){this.playbackRateSupported()?this.removeClass("vjs-hidden"):this.addClass("vjs-hidden")},t.prototype.updateLabel=function(e){this.playbackRateSupported()&&(this.labelEl_.innerHTML=this.player().playbackRate()+"x")},t}(f["default"]);y.prototype.controlText_="Playback Rate",v["default"].registerComponent("PlaybackRateMenuButton",y),n["default"]=y},{14:14,47:47,49:49,5:5,81:81}],14:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}n.__esModule=!0;var u=e(48),a=r(u),f=e(5),l=r(f),c=function(e){function t(n,r){i(this,t);var o=r.rate,u=parseFloat(o,10);r.label=o,r.selected=1===u,r.selectable=!0;var a=s(this,e.call(this,n,r));return a.label=o,a.rate=u,a.on(n,"ratechange",a.update),a}return o(t,e),t.prototype.handleClick=function(t){e.prototype.handleClick.call(this),this.player().playbackRate(this.rate)},t.prototype.update=function(e){this.selected(this.player().playbackRate()===this.rate)},t}(a["default"]);c.prototype.contentElType="button",l["default"].registerComponent("PlaybackRateMenuItem",c),n["default"]=c},{48:48,5:5}],15:[function(e,t,n){"use strict";function r(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t["default"]=e,t}function i(e){return e&&e.__esModule?e:{"default":e}}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function u(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}n.__esModule=!0;var a=e(5),f=i(a),l=e(81),c=r(l),h=function(e){function t(n,r){s(this,t);var i=o(this,e.call(this,n,r));return i.partEls_=[],i.on(n,"progress",i.update),i}return u(t,e),t.prototype.createEl=function(){return e.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(e){var t=this.player_.buffered(),n=this.player_.duration(),r=this.player_.bufferedEnd(),i=this.partEls_,s=function(e,t){var n=e/t||0;return 100*(n>=1?1:n)+"%"};this.el_.style.width=s(r,n);for(var o=0;o<t.length;o++){var u=t.start(o),a=t.end(o),f=i[o];f||(f=this.el_.appendChild(c.createEl()),i[o]=f),f.style.left=s(u,r),f.style.width=s(a-u,r)}for(var l=i.length;l>t.length;l--)this.el_.removeChild(i[l-1]);i.length=t.length},t}(f["default"]);f["default"].registerComponent("LoadProgressBar",h),n["default"]=h},{5:5,81:81}],16:[function(e,t,n){"use strict";function r(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t["default"]=e,t}function i(e){return e&&e.__esModule?e:{"default":e}}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function u(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}n.__esModule=!0;var a=e(5),f=i(a),l=e(81),c=r(l),h=e(83),p=r(h),d=e(84),v=i(d),m=e(80),g=i(m),y=function(e){function t(n,r){s(this,t);var i=o(this,e.call(this,n,r));return r.playerOptions&&r.playerOptions.controlBar&&r.playerOptions.controlBar.progressControl&&r.playerOptions.controlBar.progressControl.keepTooltipsInside&&(i.keepTooltipsInside=r.playerOptions.controlBar.progressControl.keepTooltipsInside),i.keepTooltipsInside&&(i.tooltip=c.createEl("div",{className:"vjs-time-tooltip"}),i.el().appendChild(i.tooltip),i.addClass("vjs-keep-tooltips-inside")),i.update(0,0),n.on("ready",function(){i.on(n.controlBar.progressControl.el(),"mousemove",p.throttle(p.bind(i,i.handleMouseMove),25))}),i}return u(t,e),t.prototype.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-mouse-display"})},t.prototype.handleMouseMove=function(e){var t=this.player_.duration(),n=this.calculateDistance(e)*t,r=e.pageX-c.findElPosition(this.el().parentNode).left;this.update(n,r)},t.prototype.update=function(e,t){var n=(0,v["default"])(e,this.player_.duration());if(this.el().style.left=t+"px",this.el().setAttribute("data-current-time",n),this.keepTooltipsInside){var r=this.clampPosition_(t),i=t-r+1,s=parseFloat((0,g["default"])(this.tooltip,"width")),o=s/2;this.tooltip.innerHTML=n,this.tooltip.style.right="-"+(o-i)+"px"}},t.prototype.calculateDistance=function(e){return c.getPointerPosition(this.el().parentNode,e).x},t.prototype.clampPosition_=function(e){if(!this.keepTooltipsInside)return e;var t=parseFloat((0,g["default"])(this.player().el(),"width")),n=parseFloat((0,g["default"])(this.tooltip,"width")),r=n/2,i=e;return e<r?i=Math.ceil(r):e>t-r&&(i=Math.floor(t-r)),i},t}(f["default"]);f["default"].registerComponent("MouseTimeDisplay",y),n["default"]=y},{5:5,80:80,81:81,83:83,84:84}],17:[function(e,t,n){"use strict";function r(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t["default"]=e,t}function i(e){return e&&e.__esModule?e:{"default":e}}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function u(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}n.__esModule=!0;var a=e(5),f=i(a),l=e(83),c=r(l),h=e(84),p=i(h),d=function(e){function t(n,r){s(this,t);var i=o(this,e.call(this,n,r));return i.updateDataAttr(),i.on(n,"timeupdate",i.updateDataAttr),n.ready(c.bind(i,i.updateDataAttr)),r.playerOptions&&r.playerOptions.controlBar&&r.playerOptions.controlBar.progressControl&&r.playerOptions.controlBar.progressControl.keepTooltipsInside&&(i.keepTooltipsInside=r.playerOptions.controlBar.progressControl.keepTooltipsInside),i.keepTooltipsInside&&i.addClass("vjs-keep-tooltips-inside"),i}return u(t,e),t.prototype.createEl=function(){return e.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(e){var t=this.player_.scrubbing()?this.player_.getCache().currentTime:this.player_.currentTime();this.el_.setAttribute("data-current-time",(0,p["default"])(t,this.player_.duration()))},t}(f["default"]);f["default"].registerComponent("PlayProgressBar",d),n["default"]=d},{5:5,83:83,84:84}],18:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}n.__esModule=!0;var u=e(5),a=r(u);e(19),e(16);var f=function(e){function t(){return i(this,t),s(this,e.apply(this,arguments))}return o(t,e),t.prototype.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-progress-control vjs-control"})},t}(a["default"]);f.prototype.options_={children:["seekBar"]},a["default"].registerComponent("ProgressControl",f),n["default"]=f},{16:16,19:19,5:5}],19:[function(e,t,n){"use strict";function r(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t["default"]=e,t}function i(e){return e&&e.__esModule?e:{"default":e}}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function u(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}n.__esModule=!0;var a=e(57),f=i(a),l=e(5),c=i(l),h=e(83),p=r(h),d=e(84),v=i(d),m=e(80),g=i(m);e(15),e(17),e(20);var y=function(e){function t(n,r){s(this,t);var i=o(this,e.call(this,n,r));return i.on(n,"timeupdate",i.updateProgress),i.on(n,"ended",i.updateProgress),n.ready(p.bind(i,i.updateProgress)),r.playerOptions&&r.playerOptions.controlBar&&r.playerOptions.controlBar.progressControl&&r.playerOptions.controlBar.progressControl.keepTooltipsInside&&(i.keepTooltipsInside=r.playerOptions.controlBar.progressControl.keepTooltipsInside),i.keepTooltipsInside&&(i.tooltipProgressBar=i.addChild("TooltipProgressBar")),i}return u(t,e),t.prototype.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-progress-holder"},{"aria-label":"progress bar"})},t.prototype.updateProgress=function(e){if(this.updateAriaAttributes(this.el_),this.keepTooltipsInside){this.updateAriaAttributes(this.tooltipProgressBar.el_),this.tooltipProgressBar.el_.style.width=this.bar.el_.style.width;var t=parseFloat((0,g["default"])(this.player().el(),"width")),n=parseFloat((0,g["default"])(this.tooltipProgressBar.tooltip,"width")),r=this.tooltipProgressBar.el().style;r.maxWidth=Math.floor(t-n/2)+"px",r.minWidth=Math.ceil(n/2)+"px",r.right="-"+n/2+"px"}},t.prototype.updateAriaAttributes=function(e){var t=this.player_.scrubbing()?this.player_.getCache().currentTime:this.player_.currentTime();e.setAttribute("aria-valuenow",(100*this.getPercent()).toFixed(2)),e.setAttribute("aria-valuetext",(0,v["default"])(t,this.player_.duration()))},t.prototype.getPercent=function(){var e=this.player_.currentTime()/this.player_.duration();return e>=1?1:e},t.prototype.handleMouseDown=function(t){this.player_.scrubbing(!0),this.videoWasPlaying=!this.player_.paused(),this.player_.pause(),e.prototype.handleMouseDown.call(this,t)},t.prototype.handleMouseMove=function(e){var t=this.calculateDistance(e)*this.player_.duration();t===this.player_.duration()&&(t-=.1),this.player_.currentTime(t)},t.prototype.handleMouseUp=function(t){e.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}(f["default"]);y.prototype.options_={children:["loadProgressBar","mouseTimeDisplay","playProgressBar"],barName:"playProgressBar"},y.prototype.playerEvent="timeupdate",c["default"].registerComponent("SeekBar",y),n["default"]=y},{15:15,17:17,20:20,5:5,57:57,80:80,83:83,84:84}],20:[function(e,t,n){"use strict";function r(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t["default"]=e,t}function i(e){return e&&e.__esModule?e:{"default":e}}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function u(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}n.__esModule=!0;var a=e(5),f=i(a),l=e(83),c=r(l),h=e(84),p=i(h),d=function(e){function t(n,r){s(this,t);var i=o(this,e.call(this,n,r));return i.updateDataAttr(),i.on(n,"timeupdate",i.updateDataAttr),n.ready(c.bind(i,i.updateDataAttr)),i}return u(t,e),t.prototype.createEl=function(){var t=e.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(e){var t=this.player_.scrubbing()?this.player_.getCache().currentTime:this.player_.currentTime(),n=(0,p["default"])(t,this.player_.duration());this.el_.setAttribute("data-current-time",n),this.tooltip.innerHTML=n},t}(f["default"]);f["default"].registerComponent("TooltipProgressBar",d),n["default"]=d},{5:5,83:83,84:84}],21:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}n.__esModule=!0;var u=e(22),a=r(u),f=e(5),l=r(f),c=function(e){function t(){return i(this,t),s(this,e.apply(this,arguments))}return o(t,e),t.prototype.buildCSSClass=function(){return"vjs-custom-control-spacer "+e.prototype.buildCSSClass.call(this)},t.prototype.createEl=function(){var t=e.prototype.createEl.call(this,{className:this.buildCSSClass()});return t.innerHTML="&nbsp;",t},t}(a["default"]);l["default"].registerComponent("CustomControlSpacer",c),n["default"]=c},{22:22,5:5}],22:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}n.__esModule=!0;var u=e(5),a=r(u),f=function(e){function t(){return i(this,t),s(this,e.apply(this,arguments))}return o(t,e),t.prototype.buildCSSClass=function(){return"vjs-spacer "+e.prototype.buildCSSClass.call(this)},t.prototype.createEl=function(){return e.prototype.createEl.call(this,"div",{className:this.buildCSSClass()})},t}(a["default"]);a["default"].registerComponent("Spacer",f),n["default"]=f},{5:5}],23:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}n.__esModule=!0;var u=e(31),a=r(u),f=e(5),l=r(f),c=function(e){function t(n,r){i(this,t),r.track={player:n,kind:r.kind,label:r.kind+" settings",selectable:!1,"default":!1,mode:"disabled"},r.selectable=!1;var o=s(this,e.call(this,n,r));return o.addClass("vjs-texttrack-settings"),o.controlText(", opens "+r.kind+" settings dialog"),o}return o(t,e),t.prototype.handleClick=function(e){this.player().getChild("textTrackSettings").show(),this.player().getChild("textTrackSettings").el_.focus()},t}(a["default"]);l["default"].registerComponent("CaptionSettingsMenuItem",c),n["default"]=c},{31:31,5:5}],24:[function(e,t,n){"use strict";
1function r(e){return e&&e.__esModule?e:{"default":e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}n.__esModule=!0;var u=e(30),a=r(u),f=e(5),l=r(f),c=e(23),h=r(c),p=function(e){function t(n,r,o){i(this,t);var u=s(this,e.call(this,n,r,o));return u.el_.setAttribute("aria-label","Captions Menu"),u}return o(t,e),t.prototype.buildCSSClass=function(){return"vjs-captions-button "+e.prototype.buildCSSClass.call(this)},t.prototype.createItems=function(){var t=[];return this.player().tech_&&this.player().tech_.featuresNativeTextTracks||(t.push(new h["default"](this.player_,{kind:this.kind_})),this.hideThreshold_+=1),e.prototype.createItems.call(this,t)},t}(a["default"]);p.prototype.kind_="captions",p.prototype.controlText_="Captions",l["default"].registerComponent("CaptionsButton",p),n["default"]=p},{23:23,30:30,5:5}],25:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}n.__esModule=!0;var u=e(30),a=r(u),f=e(5),l=r(f),c=e(26),h=r(c),p=e(91),d=r(p),v=function(e){function t(n,r,o){i(this,t);var u=s(this,e.call(this,n,r,o));return u.el_.setAttribute("aria-label","Chapters Menu"),u}return o(t,e),t.prototype.buildCSSClass=function(){return"vjs-chapters-button "+e.prototype.buildCSSClass.call(this)},t.prototype.update=function(t){this.track_&&(!t||"addtrack"!==t.type&&"removetrack"!==t.type)||this.setTrack(this.findChaptersTrack()),e.prototype.update.call(this)},t.prototype.setTrack=function(e){if(this.track_!==e){if(this.updateHandler_||(this.updateHandler_=this.update.bind(this)),this.track_){var t=this.player_.remoteTextTrackEls().getTrackElementByTrack_(this.track_);t&&t.removeEventListener("load",this.updateHandler_),this.track_=null}if(this.track_=e,this.track_){this.track_.mode="hidden";var n=this.player_.remoteTextTrackEls().getTrackElementByTrack_(this.track_);n&&n.addEventListener("load",this.updateHandler_)}}}
vendor: 19,712 bytes, line 1
1,t.prototype.findChaptersTrack=function(){for(var e=this.player_.textTracks()||[],t=e.length-1;t>=0;t--){var n=e[t];if(n.kind===this.kind_)return n}},t.prototype.getMenuCaption=function(){return this.track_&&this.track_.label?this.track_.label:this.localize((0,d["default"])(this.kind_))},t.prototype.createMenu=function(){return this.options_.title=this.getMenuCaption(),e.prototype.createMenu.call(this)},t.prototype.createItems=function(){var e=[];if(!this.track_)return e;var t=this.track_.cues;if(!t)return e;for(var n=0,r=t.length;n<r;n++){var i=t[n],s=new h["default"](this.player_,{track:this.track_,cue:i});e.push(s)}return e},t}(a["default"]);v.prototype.kind_="chapters",v.prototype.controlText_="Chapters",l["default"].registerComponent("ChaptersButton",v),n["default"]=v},{26:26,30:30,5:5,91:91}],26:[function(e,t,n){"use strict";function r(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t["default"]=e,t}function i(e){return e&&e.__esModule?e:{"default":e}}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function u(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}n.__esModule=!0;var a=e(48),f=i(a),l=e(5),c=i(l),h=e(83),p=r(h),d=function(e){function t(n,r){s(this,t);var i=r.track,u=r.cue,a=n.currentTime();r.selectable=!0,r.label=u.text,r.selected=u.startTime<=a&&a<u.endTime;var f=o(this,e.call(this,n,r));return f.track=i,f.cue=u,i.addEventListener("cuechange",p.bind(f,f.update)),f}return u(t,e),t.prototype.handleClick=function(t){e.prototype.handleClick.call(this),this.player_.currentTime(this.cue.startTime),this.update(this.cue.startTime)},t.prototype.update=function(e){var t=this.cue,n=this.player_.currentTime();this.selected(t.startTime<=n&&n<t.endTime)},t}(f["default"]);c["default"].registerComponent("ChaptersTrackMenuItem",d),n["default"]=d},{48:48,5:5,83:83}],27:[function(e,t,n){"use strict";function r(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t["default"]=e,t}function i(e){return e&&e.__esModule?e:{"default":e}}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function u(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}n.__esModule=!0;var a=e(30),f=i(a),l=e(5),c=i(l),h=e(83),p=r(h),d=function(e){function t(n,r,i){s(this,t);var u=o(this,e.call(this,n,r,i));u.el_.setAttribute("aria-label","Descriptions Menu");var a=n.textTracks();if(a){var f=p.bind(u,u.handleTracksChange);a.addEventListener("change",f),u.on("dispose",function(){a.removeEventListener("change",f)})}return u}return u(t,e),t.prototype.handleTracksChange=function(e){for(var t=this.player().textTracks(),n=!1,r=0,i=t.length;r<i;r++){var s=t[r];if(s.kind!==this.kind_&&"showing"===s.mode){n=!0;break}}n?this.disable():this.enable()},t.prototype.buildCSSClass=function(){return"vjs-descriptions-button "+e.prototype.buildCSSClass.call(this)},t}(f["default"]);d.prototype.kind_="descriptions",d.prototype.controlText_="Descriptions",c["default"].registerComponent("DescriptionsButton",d),n["default"]=d},{30:30,5:5,83:83}],28:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}n.__esModule=!0;var u=e(31),a=r(u),f=e(5),l=r(f),c=function(e){function t(n,r){i(this,t),r.track={player:n,kind:r.kind,label:r.kind+" off","default":!1,mode:"disabled"},r.selectable=!0;var o=s(this,e.call(this,n,r));return o.selected(!0),o}return o(t,e),t.prototype.handleTracksChange=function(e){for(var t=this.player().textTracks(),n=!0,r=0,i=t.length;r<i;r++){var s=t[r];if(s.kind===this.track.kind&&"showing"===s.mode){n=!1;break}}this.selected(n)},t}(a["default"]);l["default"].registerComponent("OffTextTrackMenuItem",c),n["default"]=c},{31:31,5:5}],29:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}n.__esModule=!0;var u=e(30),a=r(u),f=e(5),l=r(f),c=function(e){function t(n,r,o){i(this,t);var u=s(this,e.call(this,n,r,o));return u.el_.setAttribute("aria-label","Subtitles Menu"),u}return o(t,e),t.prototype.buildCSSClass=function(){return"vjs-subtitles-button "+e.prototype.buildCSSClass.call(this)},t}(a["default"]);c.prototype.kind_="subtitles",c.prototype.controlText_="Subtitles",l["default"].registerComponent("SubtitlesButton",c),n["default"]=c},{30:30,5:5}],30:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}n.__esModule=!0;var u=e(36),a=r(u),f=e(5),l=r(f),c=e(31),h=r(c),p=e(28),d=r(p),v=function(e){function t(n){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return i(this,t),r.tracks=n.textTracks(),s(this,e.call(this,n,r))}return o(t,e),t.prototype.createItems=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];e.push(new d["default"](this.player_,{kind:this.kind_})),this.hideThreshold_+=1;var t=this.player_.textTracks();if(!t)return e;for(var n=0;n<t.length;n++){var r=t[n];r.kind===this.kind_&&e.push(new h["default"](this.player_,{track:r,selectable:!0}))}return e},t}(a["default"]);l["default"].registerComponent("TextTrackButton",v),n["default"]=v},{28:28,31:31,36:36,5:5}],31:[function(e,t,n){"use strict";function r(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t["default"]=e,t}function i(e){return e&&e.__esModule?e:{"default":e}}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function u(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}n.__esModule=!0;var a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},f=e(48),l=i(f),c=e(5),h=i(c),p=e(83),d=r(p),v=e(95),m=i(v),g=e(94),y=i(g),b=function(e){function t(n,r){s(this,t);var i=r.track,u=n.textTracks();r.label=i.label||i.language||"Unknown",r.selected=i["default"]||"showing"===i.mode;var f=o(this,e.call(this,n,r));if(f.track=i,u){var l=d.bind(f,f.handleTracksChange);n.on(["loadstart","texttrackchange"],l),u.addEventListener("change",l),f.on("dispose",function(){u.removeEventListener("change",l)})}if(u&&void 0===u.onchange){var c=void 0;f.on(["tap","click"],function(){if("object"!==a(m["default"].Event))try{c=new m["default"].Event("change")}catch(e){}c||(c=y["default"].createEvent("Event"),c.initEvent("change",!0,!0)),u.dispatchEvent(c)})}return f}return u(t,e),t.prototype.handleClick=function(t){var n=this.track.kind,r=this.player_.textTracks();if(e.prototype.handleClick.call(this,t),r)for(var i=0;i<r.length;i++){var s=r[i];s.kind===n&&(s===this.track?s.mode="showing":s.mode="disabled")}},t.prototype.handleTracksChange=function(e){this.selected("showing"===this.track.mode)},t}(l["default"]);h["default"].registerComponent("TextTrackMenuItem",b),n["default"]=b},{48:48,5:5,83:83,94:94,95:95}],32:[function(e,t,n){"use strict";function r(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t["default"]=e,t}function i(e){return e&&e.__esModule?e:{"default":e}}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function u(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}n.__esModule=!0;var a=e(5),f=i(a),l=e(81),c=r(l),h=e(84),p=i(h),d=function(e){function t(n,r){s(this,t);var i=o(this,e.call(this,n,r));return i.on(n,"timeupdate",i.updateContent),i}return u(t,e),t.prototype.createEl=function(){var t=e.prototype.createEl.call(this,"div",{className:"vjs-current-time vjs-time-control vjs-control"});return this.contentEl_=c.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(e){var t=this.player_.scrubbing()?this.player_.getCache().currentTime:this.player_.currentTime(),n=this.localize("Current Time"),r=(0,p["default"])(t,this.player_.duration());r!==this.formattedTime_&&(this.formattedTime_=r,this.contentEl_.innerHTML='<span class="vjs-control-text">'+n+"</span> "+r)},t}(f["default"]);f["default"].registerComponent("CurrentTimeDisplay",d),n["default"]=d},{5:5,81:81,84:84}],33:[function(e,t,n){"use strict";function r(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t["default"]=e,t}function i(e){return e&&e.__esModule?e:{"default":e}}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function u(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}n.__esModule=!0;var a=e(5),f=i(a),l=e(81),c=r(l),h=e(84),p=i(h),d=function(e){function t(n,r){s(this,t);var i=o(this,e.call(this,n,r));return i.on(n,"durationchange",i.updateContent),i.on(n,"timeupdate",i.updateContent),i.on(n,"loadedmetadata",i.updateContent),i}return u(t,e),t.prototype.createEl=function(){var t=e.prototype.createEl.call(this,"div",{className:"vjs-duration vjs-time-control vjs-control"});return this.contentEl_=c.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(e){var t=this.player_.duration();if(t&&this.duration_!==t){this.duration_=t;var n=this.localize("Duration Time"),r=(0,p["default"])(t);this.contentEl_.innerHTML='<span class="vjs-control-text">'+n+"</span> "+r}},t}(f["default"]);f["default"].registerComponent("DurationDisplay",d),n["default"]=d},{5:5,81:81,84:84}],34:[function(e,t,n){"use strict";function r(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t["default"]=e,t}function i(e){return e&&e.__esModule?e:{"default":e}}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function u(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}n.__esModule=!0;var a=e(5),f=i(a),l=e(81),c=r(l),h=e(84),p=i(h),d=function(e){function t(n,r){s(this,t);var i=o(this,e.call(this,n,r));return i.on(n,"timeupdate",i.updateContent),i.on(n,"durationchange",i.updateContent),i}return u(t,e),t.prototype.createEl=function(){var t=e.prototype.createEl.call(this,"div",{className:"vjs-remaining-time vjs-time-control vjs-control"});return this.contentEl_=c.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(e){if(this.player_.duration()){var t=this.localize("Remaining Time"),n=(0,p["default"])(this.player_.remainingTime());n!==this.formattedTime_&&(this.formattedTime_=n,this.contentEl_.innerHTML='<span class="vjs-control-text">'+t+"</span> "+n)}},t}(f["default"]);f["default"].registerComponent("RemainingTimeDisplay",d),n["default"]=d},{5:5,81:81,84:84}],35:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}n.__esModule=!0;var u=e(5),a=r(u),f=function(e){function t(){return i(this,t),s(this,e.apply(this,arguments))}return o(t,e),t.prototype.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-time-control vjs-time-divider",innerHTML:"<div><span>/</span></div>"})},t}(a["default"]);a["default"].registerComponent("TimeDivider",f),n["default"]=f},{5:5}],36:[function(e,t,n){"use strict";function r(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t["default"]=e,t}function i(e){return e&&e.__esModule?e:{"default":e}}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function u(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}n.__esModule=!0;var a=e(47),f=i(a),l=e(5),c=i(l),h=e(83),p=r(h),d=function(e){function t(n,r){s(this,t);var i=r.tracks,u=o(this,e.call(this,n,r));if(u.items.length<=1&&u.hide(),!i)return o(u);var a=p.bind(u,u.update);return i.addEventListener("removetrack",a),i.addEventListener("addtrack",a),u.player_.on("dispose",function(){i.removeEventListener("removetrack",a),i.removeEventListener("addtrack",a)}),u}return u(t,e),t}(f["default"]);c["default"].registerComponent("TrackButton",d),n["default"]=d},{47:47,5:5,83:83}],37:[function(e,t,n){"use strict";function r(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t["default"]=e,t}function i(e){return e&&e.__esModule?e:{"default":e}}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function u(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}n.__esModule=!0;var a=e(57),f=i(a),l=e(5),c=i(l),h=e(83),p=r(h);e(39);var d=function(e){function t(n,r){s(this,t);var i=o(this,e.call(this,n,r));return i.on(n,"volumechange",i.updateARIAAttributes),n.ready(p.bind(i,i.updateARIAAttributes)),i}return u(t,e),t.prototype.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-volume-bar vjs-slider-bar"},{"aria-label":"volume level"})},t.prototype.handleMouseMove=function(e){this.checkMuted(),this.player_.volume(this.calculateDistance(e))},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(e){var t=(100*this.player_.volume()).toFixed(2);this.el_.setAttribute("aria-valuenow",t),this.el_.setAttribute("aria-valuetext",t+"%")},t}(f["default"]);d.prototype.options_={children:["volumeLevel"],barName:"volumeLevel"},d.prototype.playerEvent="volumechange",c["default"].registerComponent("
1VolumeBar",d),n["default"]=d},{39:39,5:5,57:57,83:83}],38:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}n.__esModule=!0;var u=e(5),a=r(u);e(37);var f=function(e){function t(n,r){i(this,t);var o=s(this,e.call(this,n,r));return n.tech_&&n.tech_.featuresVolumeControl===!1&&o.addClass("vjs-hidden"),o.on(n,"loadstart",function(){n.tech_.featuresVolumeControl===!1?this.addClass("vjs-hidden"):this.removeClass("vjs-hidden")}),o}return o(t,e),t.prototype.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-volume-control vjs-control"})},t}(a["default"]);f.prototype.options_={children:["volumeBar"]},a["default"].registerComponent("VolumeControl",f),n["default"]=f},{37:37,5:5}],39:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}n.__esModule=!0;var u=e(5),a=r(u),f=function(e){function t(){return i(this,t),s(this,e.apply(this,arguments))}return o(t,e),t.prototype.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-volume-level",innerHTML:'<span class="vjs-control-text"></span>'})},t}(a["default"]);a["default"].registerComponent("VolumeLevel",f),n["default"]=f},{5:5}],40:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function i(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t["default"]=e,t}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function u(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}n.__esModule=!0;var a=e(83),f=i(a),l=e(5),c=r(l),h=e(54),p=r(h),d=e(53),v=r(d),m=e(11),g=r(m),y=e(37),b=r(y),w=function(e){function t(n){function r(){n.tech_&&n.tech_.featuresVolumeControl===!1?this.addClass("vjs-hidden"):this.removeClass("vjs-hidden")}var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};s(this,t),void 0===i.inline&&(i.inline=!0),void 0===i.vertical&&(i.inline?i.vertical=!1:i.vertical=!0),i.volumeBar=i.volumeBar||{},i.volumeBar.vertical=!!i.vertical;var u=o(this,e.call(this,n,i));return u.on(n,"volumechange",u.volumeUpdate),u.on(n,"loadstart",u.volumeUpdate),r.call(u),u.on(n,"loadstart",r),u.on(u.volumeBar,["slideractive","focus"],function(){this.addClass("vjs-slider-active")}),u.on(u.volumeBar,["sliderinactive","blur"],function(){this.removeClass("vjs-slider-active")}),u.on(u.volumeBar,["focus"],function(){this.addClass("vjs-lock-showing")}),u.on(u.volumeBar,["blur"],function(){this.removeClass("vjs-lock-showing")}),u}return u(t,e),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 "+e.prototype.buildCSSClass.call(this)+" "+t},t.prototype.createPopup=function(){var e=new p["default"](this.player_,{contentElType:"div"}),t=new b["default"](this.player_,this.options_.volumeBar);return e.addChild(t),this.menuContent=e,this.volumeBar=t,this.attachVolumeBarEvents(),e},t.prototype.handleClick=function(t){g["default"].prototype.handleClick.call(this),e.prototype.handleClick.call(this)},t.prototype.attachVolumeBarEvents=function(){this.menuContent.on(["mousedown","touchdown"],f.bind(this,this.handleMouseDown))},t.prototype.handleMouseDown=function(e){this.on(["mousemove","touchmove"],f.bind(this.volumeBar,this.volumeBar.handleMouseMove)),this.on(this.el_.ownerDocument,["mouseup","touchend"],this.handleMouseUp)},t.prototype.handleMouseUp=function(e){this.off(["mousemove","touchmove"],f.bind(this.volumeBar,this.volumeBar.handleMouseMove))},t}(v["default"]);w.prototype.volumeUpdate=g["default"].prototype.update,w.prototype.controlText_="Mute",c["default"].registerComponent("
1VolumeMenuButton",w),n["default"]=w},{11:11,37:37,5:5,53:53,54:54,83:83}],41:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}n.__esModule=!0;var u=e(5),a=r(u),f=e(50),l=r(f),c=e(87),h=r(c),p=function(e){function t(n,r){i(this,t);var o=s(this,e.call(this,n,r));return o.on(n,"error",o.open),o}return o(t,e),t.prototype.buildCSSClass=function(){return"vjs-error-display "+e.prototype.buildCSSClass.call(this)},t.prototype.content=function(){var e=this.player().error();return e?this.localize(e.message):""},t}(l["default"]);p.prototype.options_=(0,h["default"])(l["default"].prototype.options_,{pauseOnOpen:!1,fillAlways:!0,temporary:!1,uncloseable:!0}),a["default"].registerComponent("ErrorDisplay",p),n["default"]=p},{5:5,50:50,87:87}],42:[function(e,t,n){"use strict";function r(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t["default"]=e,t}n.__esModule=!0;var i=e(82),s=r(i),o=function(){};o.prototype.allowedEvents_={},o.prototype.on=function(e,t){var n=this.addEventListener;this.addEventListener=function(){},s.on(this,e,t),this.addEventListener=n},o.prototype.addEventListener=o.prototype.on,o.prototype.off=function(e,t){s.off(this,e,t)},o.prototype.removeEventListener=o.prototype.off,o.prototype.one=function(e,t){var n=this.addEventListener;this.addEventListener=function(){},s.one(this,e,t),this.addEventListener=n},o.prototype.trigger=function(e){var t=e.type||e;"string"==typeof e&&(e={type:t}),e=s.fixEvent(e),this.allowedEvents_[t]&&this["on"+t]&&this["on"+t](e),s.trigger(this,e)},o.prototype.dispatchEvent=o.prototype.trigger,n["default"]=o},{82:82}],43:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}n.__esModule=!0;var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},s=e(86),o=r(s),u=e(88),a=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+(void 0===t?"undefined":i(t)));e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(e.super_=t)},f=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=function(){e.apply(this,arguments)},r={};(0,u.isObject)(t)?("function"==typeof t.init&&(o["default"].warn("Constructor logic via init() is deprecated; please use constructor() instead."),t.constructor=t.init),t.constructor!==Object.prototype.constructor&&(n=t.constructor),r=t):"function"==typeof t&&(n=t),a(n,e);for(var i in r)r.hasOwnProperty(i)&&(n.prototype[i]=r[i]);return n};n["default"]=f},{86:86,88:88}],44:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}n.__esModule=!0;for(var i=e(94),s=r(i),o={},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"]],a=u[0],f=void 0,l=0;l<u.length;l++)if(u[l][1]in s["default"]){f=u[l];break}if(f)for(var c=0;c<f.length;c++)o[a[c]]=f[c];n["default"]=o},{94:94}],45:[function(e,t,n){"use strict";
vendor: 5,214 bytes, line 1
1function r(e){return e&&e.__esModule?e:{"default":e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}n.__esModule=!0;var u=e(5),a=r(u),f=function(e){function t(){return i(this,t),s(this,e.apply(this,arguments))}return o(t,e),t.prototype.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-loading-spinner",dir:"ltr"})},t}(a["default"]);a["default"].registerComponent("LoadingSpinner",f),n["default"]=f},{5:5}],46:[function(e,t,n){"use strict";function r(e){if(e instanceof r)return e;"number"==typeof e?this.code=e:"string"==typeof e?this.message=e:(0,i.isObject)(e)&&("number"==typeof e.code&&(this.code=e.code),(0,i.assign)(this,e)),this.message||(this.message=r.defaultMessages[this.code]||"")}n.__esModule=!0;var i=e(88);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."};for(var s=0;s<r.errorTypes.length;s++)r[r.errorTypes[s]]=s,r.prototype[r.errorTypes[s]]=s;n["default"]=r},{88:88}],47:[function(e,t,n){"use strict";function r(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t["default"]=e,t}function i(e){return e&&e.__esModule?e:{"default":e}}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function u(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}n.__esModule=!0;var a=e(3),f=i(a),l=e(5),c=i(l),h=e(49),p=i(h),d=e(81),v=r(d),m=e(83),g=r(m),y=e(91),b=i(y),w=function(e){function t(n){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};s(this,t);var i=o(this,e.call(this,n,r));return i.update(),i.enabled_=!0,i.el_.setAttribute("aria-haspopup","true"),i.el_.setAttribute("role","menuitem"),i.on("keydown",i.handleSubmenuKeyPress),i}return u(t,e),t.prototype.update=function(){var e=this.createMenu();this.menu&&this.removeChild(this.menu),this.menu=e,this.addChild(e),this.buttonPressed_=!1,this.el_.setAttribute("aria-expanded","false"),this.items&&this.items.length<=this.hideThreshold_?this.hide():this.show()},t.prototype.createMenu=function(){var e=new p["default"](this.player_);if(this.hideThreshold_=0,this.options_.title){var t=v.createEl("li",{className:"vjs-menu-title",innerHTML:(0,b["default"])(this.options_.title),tabIndex:-1});this.hideThreshold_+=1,e.children_.unshift(t),v.insertElFirst(t,e.contentEl())}if(this.items=this.createItems(),this.items)for(var n=0;n<this.items.length;n++)e.addItem(this.items[n]);return e},t.prototype.createItems=function(){},t.prototype.createEl=function(){return e.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+" "+e.prototype.buildCSSClass.call(this)},t.prototype.handleClick=function(e){this.one(this.menu.contentEl(),"mouseleave",g.bind(this,function(e){this.unpressButton(),this.el_.blur()})),this.buttonPressed_?this.unpressButton():this.pressButton()},t.prototype.handleKeyPress=function(t){27===t.which||9===t.which?(this.buttonPressed_&&this.unpressButton(),9!==t.which&&t.preventDefault()):38===t.which||40===t.which?this.buttonPressed_||(this.pressButton(),t.preventDefault()):e.prototype.handleKeyPress.call(this,t)},t.prototype.handleSubmenuKeyPress=function(e){27!==e.which&&9!==e.which||(this.buttonPressed_&&this.unpressButton(),9!==e.which&&e.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","fal
1se"),this.el_.focus())},t.prototype.disable=function(){return this.buttonPressed_=!1,this.menu.unlockShowing(),this.el_.setAttribute("aria-expanded","false"),this.enabled_=!1,e.prototype.disable.call(this)},t.prototype.enable=function(){return this.enabled_=!0,e.prototype.enable.call(this)},t}(f["default"]);c["default"].registerComponent("MenuButton",w),n["default"]=w},{3:3,49:49,5:5,81:81,83:83,91:91}],48:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}n.__esModule=!0;var u=e(3),a=r(u),f=e(5),l=r(f),c=e(88),h=function(e){function t(n,r){i(this,t);var o=s(this,e.call(this,n,r));return o.selectable=r.selectable,o.selected(r.selected),o.selectable?o.el_.setAttribute("role","menuitemcheckbox"):o.el_.setAttribute("role","menuitem"),o}return o(t,e),t.prototype.createEl=function(t,n,r){return this.nonIconControl=!0,e.prototype.createEl.call(this,"li",(0,c.assign)({className:"vjs-menu-item",innerHTML:this.localize(this.options_.label),tabIndex:-1},n),r)},t.prototype.handleClick=function(e){this.selected(!0)},t.prototype.selected=function(e){this.selectable&&(e?(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}(a["default"]);l["default"].registerComponent("MenuItem",h),n["default"]=h},{3:3,5:5,88:88}],49:[function(e,t,n){"use strict";function r(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t["default"]=e,t}function i(e){return e&&e.__esModule?e:{"default":e}}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function u(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}n.__esModule=!0;var a=e(5),f=i(a),l=e(81),c=r(l),h=e(83),p=r(h),d=e(82),v=r(d),m=function(e){function t(n,r){s(this,t);var i=o(this,e.call(this,n,r));return i.focusedChild_=-1,i.on("keydown",i.handleKeyPress),i}return u(t,e),t.prototype.addItem=function(e){this.addChild(e),e.on("click",p.bind(this,function(e){this.unlockShowing()}))},t.prototype.createEl=function(){var t=this.options_.contentElType||"ul";this.contentEl_=c.createEl(t,{className:"vjs-menu-content"}),this.contentEl_.setAttribute("role","menu");var n=e.prototype.createEl.call(this,"div",{append:this.contentEl_,className:"vjs-menu"});return n.setAttribute("role","presentation"),n.appendChild(this.contentEl_),v.on(n,"click",function(e){e.preventDefault(),e.stopImmediatePropagation()}),n},t.prototype.handleKeyPress=function(e){37===e.which||40===e.which?(e.preventDefault(),this.stepForward()):38!==e.which&&39!==e.which||(e.preventDefault(),this.stepBack())},t.prototype.stepForward=function(){var e=0;void 0!==this.focusedChild_&&(e=this.focusedChild_+1),this.focus(e)},t.prototype.stepBack=function(){var e=0;void 0!==this.focusedChild_&&(e=this.focusedChild_-1),this.focus(e)},t.prototype.focus=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=this.children().slice();t.length&&t[0].className&&/vjs-menu-title/.test(t[0].className)&&t.shift(),t.length>0&&(e<0?e=0:e>=t.length&&(e=t.length-1),this.focusedChild_=e,t[e].el_.focus())},t}(f["default"]);f["default"].registerComponent("Menu",m),n["default"]=m},{5:5,81:81,82:82,83:83}],50:[function(e,t,n){"use strict";
vendor: 16,529 bytes, line 1
1function r(e){return e&&e.__esModule?e:{"default":e}}function i(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t["default"]=e,t}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function u(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}n.__esModule=!0;var a=e(81),f=i(a),l=e(83),c=i(l),h=e(5),p=r(h),d=function(e){function t(n,r){s(this,t);var i=o(this,e.call(this,n,r));return i.opened_=i.hasBeenOpened_=i.hasBeenFilled_=!1,i.closeable(!i.options_.uncloseable),i.content(i.options_.content),i.contentEl_=f.createEl("div",{className:"vjs-modal-dialog-content"},{role:"document"}),i.descEl_=f.createEl("p",{className:"vjs-modal-dialog-description vjs-offscreen",id:i.el().getAttribute("aria-describedby")}),f.textContent(i.descEl_,i.description()),i.el_.appendChild(i.descEl_),i.el_.appendChild(i.contentEl_),i}return u(t,e),t.prototype.createEl=function(){return e.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"vjs-modal-dialog vjs-hidden "+e.prototype.buildCSSClass.call(this)},t.prototype.handleKeyPress=function(e){27===e.which&&this.closeable()&&this.close()},t.prototype.label=function(){return this.options_.label||this.localize("Modal Window")},t.prototype.description=function(){var e=this.options_.description||this.localize("This is a modal window.");return this.closeable()&&(e+=" "+this.localize("This modal can be closed by pressing the Escape key or activating the close button.")),e},t.prototype.open=function(){if(!this.opened_){var e=this.player();this.trigger("beforemodalopen"),this.opened_=!0,(this.options_.fillAlways||!this.hasBeenOpened_&&!this.hasBeenFilled_)&&this.fill(),this.wasPlaying_=!e.paused(),this.options_.pauseOnOpen&&this.wasPlaying_&&e.pause(),this.closeable()&&this.on(this.el_.ownerDocument,"keydown",c.bind(this,this.handleKeyPress)),e.controls(!1),this.show(),this.el().setAttribute("aria-hidden","false"),this.trigger("modalopen"),this.hasBeenOpened_=!0}return this},t.prototype.opened=function(e){return"boolean"==typeof e&&this[e?"open":"close"](),this.opened_},t.prototype.close=function(){if(this.opened_){var e=this.player();this.trigger("beforemodalclose"),this.opened_=!1,this.wasPlaying_&&this.options_.pauseOnOpen&&e.play(),this.closeable()&&this.off(this.el_.ownerDocument,"keydown",c.bind(this,this.handleKeyPress)),e.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(e){if("boolean"==typeof e){var n=this.closeable_=!!e,t=this.getChild("closeButton");if(n&&!t){var r=this.contentEl_;this.contentEl_=this.el_,t=this.addChild("closeButton",{controlText:"Close Modal Dialog"}),this.contentEl_=r,this.on(t,"close",this.close)}!n&&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(e){var t=this.contentEl(),n=t.parentNode,r=t.nextSibling;return this.trigger("beforemodalfill"),this.hasBeenFilled_=!0,n.removeChild(t),this.empty(),f.insertContent(t,e),this.trigger("modalfill"),r?n.insertBefore(t,r):n.appendChild(t),this},t.prototype.empty=function(){return this.trigger("beforemodalempty"),f.emptyEl(this.contentEl()),this.trigger("modalempty"),this},t.prototype.content=function(e){return void 0!==e&&(this.content_=e),this.content_},t}(p["default"]);d.prototype.options_={pauseOnOpen:!0,temporary:!0},p["default"].registerComponent("ModalDialog",d),n["default"]=d},{5:5,81:81,83:83}],51:[function(e,t,n){"use strict";function r(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t["default"]=e,t}function i(e){return e&&e.__esModule?e:{"default":e}}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function u(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}n.__esModule=!0;var a=e(5),f=i(a),l=e(94),c=i(l),h=e(95),p=i(h),d=e(82),v=r(d),m=e(81),g=r(m),y=e(83),b=r(y),w=e(85),E=r(w),S=e(78),x=r(S),T=e(86),N=i(T),C=e(91),k=i(C),L=e(90),A=e(79),O=e(89),M=r(O),_=e(44),D=i(_),P=e(46),H=i(P),B=e(97),j=i(B),F=e(88),I=e(87),q=i(I),R=e(69),U=i(R),z=e(50),W=i(z),X=e(62),V=i(X),$=e(63),J=i($),K=e(76),Q=i(K);e(61),e(59),e(55),e(68),e(45),e(1),e(4),e(8),e(41),e(71),e(60);var G=["progress","abort","suspend","emptied","stalled","loadedmetadata","loadeddata","timeupdate","ratechange","volumechange","texttrackchange"],Y=function(e){function t(n,r,i){if(s(this,t),n.id=n.id||"vjs_video_"+E.newGUID(),r=(0,F.assign)(t.getTagSettings(n),r),r.initChildren=!1,r.createEl=!1,r.reportTouchActivity=!1,!r.language)if("function"==typeof n.closest){var u=n.closest("[lang]");u&&(r.language=u.getAttribute("lang"))}else for(var a=n;a&&1===a.nodeType;){if(g.getElAttributes(a).hasOwnProperty("lang")){r.language=a.getAttribute("lang");break}a=a.parentNode}var f=o(this,e.call(this,null,r,i));if(!f.options_||!f.options_.techOrder||!f.options_.techOrder.length)throw new Error("No techOrder specified. Did you overwrite videojs.options instead of just changing the properties you want to override?");if(f.tag=n,f.tagAttributes=n&&g.getElAttributes(n),f.language(f.options_.language),r.languages){var l={};Object.getOwnPropertyNames(r.languages).forEach(function(e){l[e.toLowerCase()]=r.languages[e]}),f.languages_=l}else f.languages_=t.prototype.options_.languages;f.cache_={},f.poster_=r.poster||"",f.controls_=!!r.controls,n.controls=!1,f.scrubbing_=!1,f.el_=f.createEl();var c=(0,q["default"])(f.options_);if(r.plugins){var h=r.plugins;Object.getOwnPropertyNames(h).forEach(function(e){"function"==typeof this[e]?this[e](h[e]):N["default"].error("Unable to find plugin:",e)},f)}return f.options_.playerOptions=c,f.initChildren(),f.isAudio("audio"===n.nodeName.toLowerCase()),f.controls()?f.addClass("vjs-controls-enabled"):f.addClass("vjs-controls-disabled"),f.el_.setAttribute("role","region"),f.isAudio()?f.el_.setAttribute("aria-label","audio player"):f.el_.setAttribute("aria-label","video player"),f.isAudio()&&f.addClass("vjs-audio"),f.flexNotSupported_()&&f.addClass("vjs-no-flex"),x.IS_IOS||f.addClass("vjs-workinghover"),t.players[f.id_]=f,f.userActive(!0),f.reportUserActivity(),f.listenForUserActivity_(),f.on("fullscreenchange",f.handleFullscreenChange_),f.on("stageclick",f.handleStageClick_),f}return u(t,e),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(),e.prototype.dispose.call(this)},t.prototype.createEl=function(){var t=this.tag,n=void 0,r=this.playerElIngest_=t.parentNode&&t.parentNode.hasAttribute&&t.parentNode.hasAttribute("data-vjs-player");n=this.el_=r?t.parentNode:e.prototype.createEl.call(this,"div"),t.setAttribute("tabindex","-1"),t.removeAttribute("width"),t.removeAttribute("height");var i=g.getElAttributes(t);if(Object.getOwnPropertyNames(i).forEach(function(e){"class"===e?n.className+=" "+i[e]:n.setAttribute(e,i[e])}),t.playerId=t.id,t.id+="_html5_api",t.className="vjs-tech",t.player=n.player=this,this.addClass("vjs-paused"),p["default"].VIDEOJS_NO_DYNAMIC_STYLE!==!0){this.styleEl_=M.createStyleElement("vjs-styles-dimensions");var s=g.$(".vjs-styles-defaults"),o=g.$("head");o.insertBefore(this.styleEl_,s?s.nextSibling:o.firstChild)}this.width(this.options_.width),this.height(this.options_.height),this.fluid(this.options_.fluid),this.aspectRatio(this.options_.aspectRatio);for(var u=t.getElementsByTagName("a"),a=0;a<u.length;a++){var f=u.item(a);g.addElClass(f,"vjs-hidden"),f.setAttribute("hidden","hidden")}return t.initNetworkState_=t.networkState,t.parentNode&&!r&&t.parentNode.insertBefore(n,t),g.insertElFirst(t,n),this.children_.unshift(t),this.el_=n,n},t.prototype.width=function(e){return this.dimension("width",e)},t.prototype.height=function(e){return this.dimension("height",e)},t.prototype.dimension=function(e,t){var n=e+"_";if(void 0===t)return this[n]||0;if(""===t)this[n]=void 0;else{var r=parseFloat(t);if(isNaN(r))return N["default"].error('Improper value "'+t+'" supplied for for '+e),this;this[n]=r}return this.updateStyleEl_(),this},t.prototype.fluid=function(e){if(void 0===e)return!!this.fluid_;this.fluid_=!!e,e?this.addClass("vjs-fluid"):this.removeClass("vjs-fluid"),this.updateStyleEl_()},t.prototype.aspectRatio=function(e){if(void 0===e)return this.aspectRatio_;if(!/^\d+\:\d+$/.test(e))throw new Error("Improper value supplied for aspect ratio. The format should be width:height, for example 16:9.");this.aspectRatio_=e,this.fluid(!0),this.updateStyleEl_()},t.prototype.updateStyleEl_=function(){if(p["default"].VIDEOJS_NO_DYNAMIC_STYLE===!0){var e="number"==typeof this.width_?this.width_:this.options_.width,t="number"==typeof this.height_?this.height_:this.options_.height,n=this.tech_&&this.tech_.el();return void (n&&(e>=0&&(n.width=e),t>=0&&(n.height=t)))}var r=void 0,i=void 0,s=void 0,o=void 0;s=void 0!==this.aspectRatio_&&"auto"!==this.aspectRatio_?this.aspectRatio_:this.videoWidth()>0?this.videoWidth()+":"+this.videoHeight():"16:9";var u=s.split(":"),a=u[1]/u[0];r=void 0!==this.width_?this.width_:void 0!==this.height_?this.height_/a:this.videoWidth()||300,i=void 0!==this.height_?this.height_:r*a,o=/^[^a-zA-Z]/.test(this.id())?"dimensions-"+this.id():this.id()+"-dimensions",this.addClass(o),M.setTextContent(this.styleEl_,"\n      ."+o+" {\n        width: "+r+"px;\n        height: "+i+"px;\n      }\n\n      ."+o+".vjs-fluid {\n        padding-top: "+100*a+"%;\n      }\n    ")},t.prototype.loadTech_=function(e,t){var n=this;this.tech_&&this.unloadTech_(),"Html5"!==e&&this.tag&&(V["default"].getTech("Html5").disposeMediaElement(this.tag),this.tag.player=null,this.tag=null),this.techName_=e,this.isReady_=!1;var r=(0,F.assign)({source:t,nativeControlsForTouch:this.options_.nativeControlsForTouch,playerId:this.id(),techId:this.id()+"_"+e+"_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(),playerElIngest:this.playerElIngest_||!1,"vtt.js":this.options_["vtt.js"]},this.options_[e.toLowerCase()]);this.tag&&(r.tag=this.tag),t&&(this.currentType_=t.type,t.src===this.cache_.src&&this.cache_.currentTime>0&&(r.startTime=this.cache_.currentTime),this.cache_.sources=null,this.cache_.source=t,this.cache_.src=t.src);var i=V["default"].getTech(e);i||(i=f["default"].getComponent(e)),this.tech_=new i(r),this.tech_.ready(b.bind(this,this.handleTechReady_),!0),U["default"].jsonToTextTracks(this.textTracksJson_||[],this.tech_),G.forEach(function(e){n.on(n.tech_,e,n["handleTech"+(0,k["default"])(e)+"_"])}),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_,"durationchange",this.handleTechDurationChange_),this.on(this.tech_,"fullscreenchange",this.handleTechFullscreenChange_),this.on(this.tech_,"error",this.handleTechError_),this.on(this.tech_,"loadedmetadata",this.updateStyleEl_),this.on(this.tech_,"posterchange",this.handleTechPosterChange_),this.on(this.tech_,"textdata",this.handleTechTextData_),this.usingNativeControls(this.techGet_("controls")),this.controls()&&!this.usingNativeControls()&&this.addTechControlsListeners_(),this.tech_.el().parentNode===this.el()||"Html5"===e&&this.tag||g.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_=U["default"].textTracksToJson(this.tech_),this.isReady_=!1,this.tech_.dispose(),this.tech_=!1},t.prototype.tech=function(e){if(e&&e.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    ";throw p["default"].alert(t),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.currentSrc())&&this.tag&&this.options_.autoplay&&this.paused()){try{delete this.tag.poster}catch(e){(0,N["default"])("deleting tag.poster throws in some browsers",e)}this.play()}},t.prototype.handleTechLoadStart_=function(){this.removeClass("vjs-ended"),this.removeClass("vjs-seeking"),this.error(null),this.paused()?(this.hasStarted(!1),this.trigger("loadstart")):(this.trigger("loadstart"),this.trigger("firstplay"))},t.prototype.hasStarted=function(e){return void 0!==e?(this.hasStarted_!==e&&(this.hasStarted_=e,e?(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 e=this;this.addClass("vjs-waiting"),this.trigger("waiting"),this.one("timeupdate",function(){return e.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&&(N["default"].warn("Passing the `starttime` option to the player will be deprecated 
1in 6.0"),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.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(e){0===e.button&&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(e){e.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(e,t){t&&this.isFullscreen(t.isFullscreen),this.trigger("fullscreenchange")},t.prototype.handleTechError_=function(){var e=this.tech_.error();this.error(e)},t.prototype.handleTechTextData_=function(){var e=null;arguments.length>1&&(e=arguments[1]),this.trigger("textdata",e)},t.prototype.getCache=function(){return this.cache_},t.prototype.techCall_=function(e,t){if(this.tech_&&!this.tech_.isReady_)this.tech_.ready(function(){this[e](t)},!0);else try{this.tech_&&this.tech_[e](t)}catch(n){throw(0,N["default"])(n),n}},t.prototype.techGet_=function(e){if(this.tech_&&this.tech_.isReady_)try{return this.tech_[e]()}catch(t){throw void 0===this.tech_[e]?(0,N["default"])("Video.js: "+e+" method not defined for "+this.techName_+" playback technology.",t):"TypeError"===t.name?((0,N["default"])("Video.js: "+e+" unavailable on "+this.techName_+" playback technology element.",t),this.tech_.isReady_=!1):(0,N["default"])(t),t}},t.prototype.play=function(){return this.src()||this.currentSrc()?this.techCall_("play"):this.tech_.one("loadstart",function(){this.play()}),this},t.prototype.pause=function(){return this.techCall_("pause"),this},t.prototype.paused=function(){return this.techGet_("paused")!==!1},t.prototype.scrubbing=function(e){return void 0!==e?(this.scrubbing_=!!e,e?this.addClass("vjs-scrubbing"):this.removeClass("vjs-scrubbing"),this):this.scrubbing_},t.prototype.currentTime=function(e){return void 0!==e?(this.techCall_("setCurrentTime",e),this):(this.cache_.currentTime=this.techGet_("currentTime")||0,this.cache_.currentTime)},t.prototype.duration=function(e){return void 0===e?this.cache_.duration||0:(e=parseFloat(e)||0,e<0&&(e=1/0),e!==this.cache_.duration&&(this.cache_.duration=e,e===1/0?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 n(){var n=this.techGet_("buffered");return n&&n.length||(n=(0,L.createTimeRange)(0,0)),n},t.prototype.bufferedPercent=function(){return(0,A.bufferedPercent)(this.buffered(),this.duration())},t.prototype.bufferedEnd=function(){var e=this.buffered(),t=this.duration(),n=e.end(e.length-1);return n>t&&(n=t),n},t.prototype.volume=function(e){var t=void 0;return void 0!==e?(t=Math.max(0,Math.min(1,parseFloat(e))),this.cache_.volume=t,this.techCall_("setVolume",t),this):(t=parseFloat(this.techGet_("volume")),isNaN(t)?1:t)},t.prototype.muted=function(e){return void 0!==e?(this.techCall_("setMuted",e),this):this.techGet_("muted")||!1},t.prototype.supportsFullScreen=function(){return this.techGet_("supportsFullScreen")||!1},t.prototype.isFullscreen=function(e){return void 0!==e?(this.isFullscreen_=!!e,this):!!this.isFullscreen_},t.prototype.requestFullscreen=function(){var e=D["default"];return this.isFullscreen(!0),e.requestFullscreen?(v.on(c["default"],e.fullscreenchange,b.bind(this,function t(n){this.isFullscreen(c["default"][e.fullscreenElement]),this.isFullscreen()===!1&&v.off(c["default"],e.fullscreenchange,t),this.trigger("fullscreenchange")})),this.el_[e.requestFullscreen]()):this.tech_.supportsFullScreen()?this.techCall_("enterFullScreen"):(this.enterFullWindow(),this.trigger("fullscreenchange")),this},t.prototype.exitFullscreen=function(){var e=D["default"];return this.isFullscreen(!1),e.requestFullscreen?c["default"][e.exitFullscreen]():this.tech_.supportsFullScreen()?this.techCall_("exitFullScreen"):(this.exitFullWindow(),this.trigger("fullscreenchange")),this},t.prototype.enterFullWindow=function(){this.isFullWindow=!0,this.docOrigOverflow=c["default"].documentElement.style.overflow,v.on(c["default"],"keydown",b.bind(this,this.fullWindowOnEscKey)),c["default"].documentElement.style.overflow="hidden",g.addElClass(c["default"].body,"vjs-full-window"),this.trigger("enterFullWindow")}
vendor: 31,765 bytes, line 1
1,t.prototype.fullWindowOnEscKey=function(e){27===e.keyCode&&(this.isFullscreen()===!0?this.exitFullscreen():this.exitFullWindow())},t.prototype.exitFullWindow=function(){this.isFullWindow=!1,v.off(c["default"],"keydown",this.fullWindowOnEscKey),c["default"].documentElement.style.overflow=this.docOrigOverflow,g.removeElClass(c["default"].body,"vjs-full-window"),this.trigger("exitFullWindow")},t.prototype.canPlayType=function(e){for(var t=void 0,n=0,r=this.options_.techOrder;n<r.length;n++){var i=(0,k["default"])(r[n]),s=V["default"].getTech(i);if(s||(s=f["default"].getComponent(i)),s){if(s.isSupported()&&(t=s.canPlayType(e)))return t}else N["default"].error('The "'+i+'" tech is undefined. Skipped browser support check for that tech.')}return""},t.prototype.selectSource=function(e){var t=this,n=this.options_.techOrder.map(k["default"]).map(function(e){return[e,V["default"].getTech(e)||f["default"].getComponent(e)]}).filter(function(e){var t=e[0],n=e[1];return n?n.isSupported():(N["default"].error('The "'+t+'" tech is undefined. Skipped browser support check for that tech.'),!1)}),r=function(e,t,n){var r=void 0;return e.some(function(e){return t.some(function(t){if(r=n(e,t))return!0})}),r},i=void 0,s=function(e){return function(t,n){return e(n,t)}},o=function(e,n){var r=e[0];if(e[1].canPlaySource(n,t.options_[r.toLowerCase()]))return{source:n,tech:r}};return i=this.options_.sourceOrder?r(e,n,s(o)):r(n,e,o),i||!1},t.prototype.src=function(e){if(void 0===e)return this.techGet_("src");var t=V["default"].getTech(this.techName_);return t||(t=f["default"].getComponent(this.techName_)),Array.isArray(e)?this.sourceList_(e):"string"==typeof e?this.src({src:e}):e instanceof Object&&(e.type&&!t.canPlaySource(e,this.options_[this.techName_.toLowerCase()])?this.sourceList_([e]):(this.cache_.sources=null,this.cache_.source=e,this.cache_.src=e.src,this.currentType_=e.type||"",this.ready(function(){t.prototype.hasOwnProperty("setSource")?this.techCall_("setSource",e):this.techCall_("src",e.src),"auto"===this.options_.preload&&this.load(),this.options_.autoplay&&this.play()},!0))),this},t.prototype.sourceList_=function(e){var t=this.selectSource(e);t?(t.tech===this.techName_?this.src(t.source):this.loadTech_(t.tech,t.source),this.cache_.sources=e):(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_((0,k["default"])(this.options_.techOrder[0]),null),this.techCall_("reset"),this},t.prototype.currentSources=function(){var e=this.currentSource(),t=[];return 0!==Object.keys(e).length&&t.push(e),this.cache_.sources||t},t.prototype.currentSource=function(){var e={},t=this.currentSrc();return t&&(e.src=t),this.cache_.source||e},t.prototype.currentSrc=function(){return this.techGet_("currentSrc")||this.cache_.src||""},t.prototype.currentType=function(){return this.currentType_||""},t.prototype.preload=function(e){return void 0!==e?(this.techCall_("setPreload",e),this.options_.preload=e,this):this.techGet_("preload")},t.prototype.autoplay=function(e){return void 0!==e?(this.techCall_("setAutoplay",e),this.options_.autoplay=e,this):this.techGet_("autoplay",e)},t.prototype.loop=function(e){return void 0!==e?(this.techCall_("setLoop",e),this.options_.loop=e,this):this.techGet_("loop")},t.prototype.poster=function(e){return void 0===e?this.poster_:(e||(e=""),this.poster_=e,this.techCall_("setPoster",e),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(e){return void 0!==e?(e=!!e,this.controls_!==e&&(this.controls_=e,this.usingNativeControls()&&this.techCall_("setControls",e),e?(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(e){return void 0!==e?(e=!!e,this.usingNativeControls_!==e&&(this.usingNativeControls_=e,e?(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(e){return void 0===e?this.error_||null:null===e?(this.error_=e,this.removeClass("vjs-error"),this.errorDisplay&&this.errorDisplay.close(),this):(this.error_=new H["default"](e),this.addClass("vjs-error"),N["default"].error("(CODE:"+this.error_.code+" "+H["default"].errorTypes[this.error_.code]+")",this.error_.message,this.error_),this.trigger("error"),this)},t.prototype.reportUserActivity=function(e){this.userActivity_=!0},t.prototype.userActive=function(e){return void 0!==e?(e=!!e,e!==this.userActive_&&(this.userActive_=e,e?(this.userActivity_=!0,this.removeClass("vjs-user-inactive"),this.addClass("vjs-user-active"),this.trigger("useractive")):(this.userActivity_=!1,this.tech_&&this.tech_.one("mousemove",function(e){e.stopPropagation(),e.preventDefault()}),this.removeClass("vjs-user-active"),this.addClass("vjs-user-inactive"),this.trigger("userinactive"))),this):this.userActive_},t.prototype.listenForUserActivity_=function(){var e=void 0,t=void 0,n=void 0,r=b.bind(this,this.reportUserActivity),i=function(e){e.screenX===t&&e.screenY===n||(t=e.screenX,n=e.screenY,r())},s=function(){r(),this.clearInterval(e),e=this.setInterval(r,250)},o=function(t){r(),this.clearInterval(e)};this.on("mousedown",s),this.on("mousemove",i),this.on("mouseup",o),this.on("keydown",r),this.on("keyup",r);var u=void 0;this.setInterval(function(){if(this.userActivity_){this.userActivity_=!1,this.userActive(!0),this.clearTimeout(u);var e=this.options_.inactivityTimeout;e>0&&(u=this.setTimeout(function(){this.userActivity_||this.userActive(!1)},e))}},250)},t.prototype.playbackRate=function(e){return void 0!==e?(this.techCall_("setPlaybackRate",e),this):this.tech_&&this.tech_.featuresPlaybackRate?this.techGet_("playbackRate"):1},t.prototype.isAudio=function(e){return void 0!==e?(this.isAudio_=!!e,this):!!this.isAudio_},t.prototype.videoTracks=function(){return this.tech_?this.tech_.videoTracks():(this.videoTracks_=this.videoTracks_||new Q["default"],this.videoTracks_)},t.prototype.audioTracks=function(){return this.tech_?this.tech_.audioTracks():(this.audioTracks_=this.audioTracks_||new J["default"],this.audioTracks_)},t.prototype.textTracks=function(){if(this.tech_)return this.tech_.textTracks()},t.prototype.remoteTextTracks=function(){if(this.tech_)return this.tech_.remoteTextTracks()},t.prototype.remoteTextTrackEls=function(){if(this.tech_)return this.tech_.remoteTextTrackEls()},t.prototype.addTextTrack=function(e,t,n){if(this.tech_)return this.tech_.addTextTrack(e,t,n)},t.prototype.addRemoteTextTrack=function(e,t){if(this.tech_)return this.tech_.addRemoteTextTrack(e,t)},t.prototype.removeRemoteTextTrack=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.track,n=void 0===t?arguments[0]:t;if(this.tech_)return this.tech_.removeRemoteTextTrack(n)},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(e){return void 0===e?this.language_:(this.language_=String(e).toLowerCase(),this)},t.prototype.languages=function(){return(0,q["default"])(t.prototype.options_.languages,this.languages_)},t.prototype.toJSON=function(){var e=(0,q["default"])(this.options_),t=e.tracks;e.tracks=[];for(var n=0;n<t.length;n++){var r=t[n];r=(0,q["default"])(r),r.player=void 0,e.tracks[n]=r}return e},t.prototype.createModal=function(e,t){var n=this;t=t||{},t.content=e||"";var r=new W["default"](this,t);return this.addChild(r),r.on("dispose",function(){n.removeChild(r)}),r.open()},t.getTagSettings=function(e){var t={sources:[],tracks:[]},n=g.getElAttributes(e),r=n["data-setup"];if(g.hasElClass(e,"vjs-fluid")&&(n.fluid=!0),null!==r){var i=(0,j["default"])(r||"{}"),s=i[0],o=i[1];s&&N["default"].error(s),(0,F.assign)(n,o)}if((0,F.assign)(t,n),e.hasChildNodes())for(var u=e.childNodes,a=0,f=u.length;a<f;a++){var l=u[a],c=l.nodeName.toLowerCase();"source"===c?t.sources.push(g.getElAttributes(l)):"track"===c&&t.tracks.push(g.getElAttributes(l))}return t},t.prototype.flexNotSupported_=function(){var e=c["default"].createElement("i");return!("flexBasis"in e.style||"webkitFlexBasis"in e.style||"mozFlexBasis"in e.style||"msFlexBasis"in e.style||"msFlexOrder"in e.style)},t}(f["default"]);Y.players={};var Z=p["default"].navigator;Y.prototype.options_={techOrder:["html5","flash"],html5:{},flash:{},defaultVolume:0,inactivityTimeout:2e3,playbackRates:[],children:["mediaLoader","posterImage","textTrackDisplay","loadingSpinner","bigPlayButton","controlBar","errorDisplay","textTrackSettings"],language:Z&&(Z.languages&&Z.languages[0]||Z.userLanguage||Z.language)||"en",languages:{},notSupportedMessage:"No compatible source was found for this media."},["ended","seeking","seekable","networkState","readyState"].forEach(function(e){Y.prototype[e]=function(){return this.techGet_(e)}}),G.forEach(function(e){Y.prototype["handleTech"+(0,k["default"])(e)+"_"]=function(){return this.trigger(e)}}),f["default"].registerComponent("Player",Y),n["default"]=Y},{1:1,4:4,41:41,44:44,45:45,46:46,5:5,50:50,55:55,59:59,60:60,61:61,62:62,63:63,68:68,69:69,71:71,76:76,78:78,79:79,8:8,81:81,82:82,83:83,85:85,86:86,87:87,88:88,89:89,90:90,91:91,94:94,95:95,97:97}],52:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}n.__esModule=!0;var i=e(51),s=r(i),o=function(e,t){s["default"].prototype[e]=t};n["default"]=o},{51:51}],53:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}n.__esModule=!0;var u=e(3),a=r(u),f=e(5),l=r(f),c=function(e){function t(n){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};i(this,t);var o=s(this,e.call(this,n,r));return o.update(),o}return o(t,e),t.prototype.update=function(){var e=this.createPopup();this.popup&&this.removeChild(this.popup),this.popup=e,this.addChild(e),this.items&&0===this.items.length?this.hide():this.items&&this.items.length>1&&this.show()},t.prototype.createPopup=function(){},t.prototype.createEl=function(){return e.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+" "+e.prototype.buildCSSClass.call(this)},t}(a["default"]);l["default"].registerComponent("PopupButton",c),n["default"]=c},{3:3,5:5}],54:[function(e,t,n){"use strict";function r(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t["default"]=e,t}function i(e){return e&&e.__esModule?e:{"default":e}}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function u(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}n.__esModule=!0;var a=e(5),f=i(a),l=e(81),c=r(l),h=e(83),p=r(h),d=e(82),v=r(d),m=function(e){function t(){return s(this,t),o(this,e.apply(this,arguments))}return u(t,e),t.prototype.addItem=function(e){this.addChild(e),e.on("click",p.bind(this,function(){this.unlockShowing()}))},t.prototype.createEl=function(){var t=this.options_.contentElType||"ul";this.contentEl_=c.createEl(t,{className:"vjs-menu-content"});var n=e.prototype.createEl.call(this,"div",{append:this.contentEl_,className:"vjs-menu"});return n.appendChild(this.contentEl_),v.on(n,"click",function(e){e.preventDefault(),e.stopImmediatePropagation()}),n},t}(f["default"]);f["default"].registerComponent("Popup",m),n["default"]=m},{5:5,81:81,82:82,83:83}],55:[function(e,t,n){"use strict";function r(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t["default"]=e,t}function i(e){return e&&e.__esModule?e:{"default":e}}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function u(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}n.__esModule=!0;var a=e(3),f=i(a),l=e(5),c=i(l),h=e(83),p=r(h),d=e(81),v=r(d),m=e(78),g=r(m),y=function(e){function t(n,r){s(this,t);var i=o(this,e.call(this,n,r));return i.update(),n.on("posterchange",p.bind(i,i.update)),i}return u(t,e),t.prototype.dispose=function(){this.player().off("posterchange",this.update),e.prototype.dispose.call(this)},t.prototype.createEl=function(){var e=v.createEl("div",{className:"vjs-poster",tabIndex:-1});return g.BACKGROUND_SIZE_SUPPORTED||(this.fallbackImg_=v.createEl("img"),e.appendChild(this.fallbackImg_)),e},t.prototype.update=function(e){var t=this.player().poster();this.setSrc(t),t?this.show():this.hide()},t.prototype.setSrc=function(e){if(this.fallbackImg_)this.fallbackImg_.src=e;else{var t="";e&&(t='url("'+e+'")'),this.el_.style.backgroundImage=t}},t.prototype.handleClick=function(e){this.player_.controls()&&(this.player_.paused()?this.player_.play():this.player_.pause())},t}(f["default"]);c["default"].registerComponent("PosterImage",y),n["default"]=y},{3:3,5:5,78:78,81:81,83:83}],56:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function i(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t["default"]=e,t}function s(e,t){t&&(v=t),p["default"].setTimeout(m,e)}n.__esModule=!0,n.hasLoaded=n.autoSetupTimeout=n.autoSetup=void 0;var o=e(81),u=i(o),a=e(82),f=i(a),l=e(94),c=r(l),h=e(95),p=r(h),d=!1,v=void 0,m=function(){if(u.isReal()){var e=c["default"].getElementsByTagName("video"),t=c["default"].getElementsByTagName("audio"),n=[];if(e&&e.length>0)for(var r=0,i=e.length;r<i;r++)n.push(e[r]);if(t&&t.length>0)for(var o=0,a=t.length;o<a;o++)n.push(t[o]);if(n&&n.length>0)for(var f=0,l=n.length;f<l;f++){var h=n[f];if(!h||!h.getAttribute){s(1);break}if(void 0===h.player){var p=h.getAttribute("data-setup");null!==p&&v(h)}}else d||s(1)}};u.isReal()&&"complete"===c["default"].readyState?d=!0:f.one(p["default"],"load",function(){d=!0});var g=function(){return d};n.autoSetup=m,n.autoSetupTimeout=s,n.hasLoaded=g},{81:81,82:82,94:94,95:95}],57:[function(e,t,n){"use strict";function r(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t["default"]=e,t}function i(e){return e&&e.__esModule?e:{"default":e}}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function u(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}n.__esModule=!0;var a=e(5),f=i(a),l=e(81),c=r(l),h=e(88),p=function(e){function t(n,r){s(this,t);var i=o(this,e.call(this,n,r));return i.bar=i.getChild(i.options_.barName),i.vertical(!!i.options_.vertical),i.on("mousedown",i.handleMouseDown),i.on("touchstart",i.handleMouseDown),i.on("focus",i.handleFocus),i.on("blur",i.handleBlur),i.on("click",i.handleClick),i.on(n,"controlsvisible",i.update),i.on(n,i.playerEvent,i.update),i}return u(t,e),t.prototype.createEl=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return n.className=n.className+" vjs-slider",n=(0,h.assign)({tabIndex:0},n),r=(0,h.assign)({role:"slider","aria-valuenow":0,"aria-valuemin":0,"aria-valuemax":100,tabIndex:0},r),e.prototype.createEl.call(this,t,n,r)},t.prototype.handleMouseDown=function(e){var t=this.bar.el_.ownerDocument;e.preventDefault(),c.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(e)},t.prototype.handleMouseMove=function(e){},t.prototype.handleMouseUp=function(){var e=this.bar.el_.ownerDocument;c.unblockTextSelection(),this.removeClass("vjs-sliding"),this.trigger("sliderinactive"),this.off(e,"mousemove",this.handleMouseMove),this.off(e,"mouseup",this.handleMouseUp),this.off(e,"touchmove",this.handleMouseMove),this.off(e,"touchend",this.handleMouseUp),this.update()},t.prototype.update=function(){if(this.el_){var e=this.getPercent(),t=this.bar;if(t){("number"!=typeof e||e!==e||e<0||e===1/0)&&(e=0);var n=(100*e).toFixed(2)+"%";this.vertical()?t.el().style.height=n:t.el().style.width=n}}},t.prototype.calculateDistance=function(e){var t=c.getPointerPosition(this.el_,e);return this.vertical()?t.y:t.x},t.prototype.handleFocus=function(){this.on(this.bar.el_.ownerDocument,"keydown",this.handleKeyPress)},t.prototype.handleKeyPress=function(e){37===e.which||40===e.which?(e.preventDefault(),this.stepBack()):38!==e.which&&39!==e.which||(e.preventDefault(),this.stepForward())},t.prototype.handleBlur=function(){this.off(this.bar.el_.ownerDocument,"keydown",this.handleKeyPress)},t.prototype.handleClick=function(e){e.stopImmediatePropagation(),e.preventDefault()},t.prototype.vertical=function(e){return void 0===e?this.vertical_||!1:(this.vertical_=!!e,this.vertical_?this.addClass("vjs-slider-vertical"):this.addClass("vjs-slider-horizontal"),this)},t}(f["default"]);f["default"].registerComponent("Slider",p),n["default"]=p},{5:5,81:81,88:88}],58:[function(e,t,n){"use strict";function r(e){return e.streamingFormats={"rtmp/mp4":"MP4","rtmp/flv":"FLV"},e.streamFromParts=function(e,t){return e+"&"+t},e.streamToParts=function(e){var t={connection:"",stream:""};if(!e)return t;var n=e.search(/&(?!\w+=)/),r=void 0;return n!==-1?r=n+1:(n=r=e.lastIndexOf("/")+1,0===n&&(n=r=e.length)),t.connection=e.substring(0,n),t.stream=e.substring(r,e.length),t},e.isStreamingType=function(t){return t in e.streamingFormats},e.RTMP_RE=/^rtmp[set]?:\/\//i,e.isStreamingSrc=function(t){return e.RTMP_RE.test(t)},e.rtmpSourceHandler={},e.rtmpSourceHandler.canPlayType=function(t){return e.isStreamingType(t)?"maybe":""},e.rtmpSourceHandler.canHandleSource=function(t,n){var r=e.rtmpSourceHandler.canPlayType(t.type);return r?r:e.isStreamingSrc(t.src)?"maybe":""},e.rtmpSourceHandler.handleSource=function(t,n,r){var i=e.streamToParts(t.src);n.setRtmpConnection(i.connection),n.setRtmpStream(i.stream)},e.registerSourceHandler(e.rtmpSourceHandler),e}n.__esModule=!0,n["default"]=r},{}],59:[function(e,t,n){"use strict";function r(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t["default"]=e,t}function i(e){return e&&e.__esModule?e:{"default":e}}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function u(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function a(e){C["set"+(e.charAt(0).toUpperCase()+e.slice(1))]=function(t){return this.el_.vjs_setProperty(e,t)}}function f(e){C[e]=function(){return this.el_.vjs_getProperty(e)}}n.__esModule=!0;for(var l=e(62),c=i(l),h=e(81),p=r(h),d=e(92),v=r(d),m=e(90),g=e(58),y=i(g),b=e(5),w=i(b),E=e(95),S=i(E),x=e(88),T=S["default"].navigator,N=function(e){function t(n,r){s(this,t);var i=o(this,e.call(this,n,r));return n.source&&i.ready(function(){this.setSource(n.source)},!0),n.startTime&&i.ready(function(){this.load(),this.play(),this.currentTime(n.startTime)},!0),S["default"].videojs=S["default"].videojs||{},S["default"].videojs.Flash=S["default"].videojs.Flash||{},S["default"].videojs.Flash.onReady=t.onReady,S["default"].videojs.Flash.onEvent=t.onEvent,S["default"].videojs.Flash.onError=t.onError,i.on("seeked",function(){this.lastSeekTarget_=void 0}),i}return u(t,e),t.prototype.createEl=function(){var e=this.options_;e.swf||(e.swf="//vjs.zencdn.net/swf/5.3.0/video-js.swf");var n=e.techId,r=(0,x.assign)({readyFunction:"videojs.Flash.onReady",eventProxyFunction:"videojs.Flash.onEvent",errorEventProxyFunction:"videojs.Flash.onError",autoplay:e.autoplay,preload:e.preload,loop:e.loop,muted:e.muted},e.flashVars),i=(0,x.assign)({wmode:"opaque",bgcolor:"#000000"},e.params),s=(0,x.assign)({id:n,name:n,"class":"vjs-tech"},e.attributes);return this.el_=t.embed(e.swf,r,i,s),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(e){return void 0===e?this.currentSrc():this.setSrc(e)},t.prototype.setSrc=function(e){var t=this;e=v.getAbsoluteURL(e),this.el_.vjs_src(e),this.autoplay()&&this.setTimeout(function(){return t.play()},0)},t.prototype.seeking=function(){return void 0!==this.lastSeekTarget_},t.prototype.setCurrentTime=function(t){var n=this.seekable();n.length&&(t=t>n.start(0)?t:n.start(0),t=t<n.end(n.length-1)?t:n.end(n.length-1),this.lastSeekTarget_=t,this.trigger("seeking"),this.el_.vjs_setProperty("currentTime",t),e.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.duration=function n(){if(0===this.readyState())return NaN;var n=this.el_.vjs_getProperty("duration");return n>=0?n:1/0},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 e=this.duration();return 0===e?(0,m.createTimeRange)():(0,m.createTimeRange)(0,e)},t.prototype.buffered=function(){var e=this.el_.vjs_getProperty("buffered");return 0===e.length?(0,m.createTimeRange)():(0,m.createTimeRange)(e[0][0],e[0][1])},t.prototype.supportsFullScreen=function(){return!1},t.prototype.enterFullScreen=function(){return!1},t}(c["default"]),C=N.prototype,k="rtmpConnection,rtmpStream,preload,defaultPlaybackRate,playbackRate,autoplay,loop,mediaGroup,controller,controls,volume,muted,defaultMuted".split(","),L="networkState,readyState,initialTime,startOffsetTime,paused,ended,videoWidth,videoHeight".split(","),A=0;A<k.length;A++)f(k[A]),a(k[A]);for(var O=0;O<L.length;O++)f(L[O]);N.isSupported=function(){return N.version()[0]>=10},c["default"].withSourceHandlers(N),N.nativeSourceHandler={},N.nativeSourceHandler.canPlayType=function(e){return e in N.formats?"maybe":""},N.nativeSourceHandler.canHandleSource=function(e,t){function n(e){var t=v.getFileExtension(e);return t?"video/"+t:""}var r=void 0;return r=e.type?e.type.replace(/;.*/,"").toLowerCase():n(e.src),N.nativeSourceHandler.canPlayType(r)},N.nativeSourceHandler.handleSource=function(e,t,n){t.setSrc(e.src)},N.nativeSourceHandler.dispose=function(){},N.registerSourceHandler(N.nativeSourceHandler),N.formats={"video/flv":"FLV","video/x-flv":"FLV","video/mp4":"MP4","video/m4v":"MP4"},N.onReady=function(e){var t=p.getEl(e),n=t&&t.tech;n&&n.el()&&N.checkReady(n)},N.checkReady=function(e){e.el()&&(e.el().vjs_getProperty?e.triggerReady():this.setTimeout(function(){N.checkReady(e)},50))},N.onEvent=function(e,t){var n=p.getEl(e).tech,r=Array.prototype.slice.call(arguments,2);n.setTimeout(function(){n.trigger(t,r)},1)},N.onError=function(e,t){var n=p.getEl(e).tech;if("srcnotfound"===t)return n.error(4);n.error("FLASH: "+t)},N.version=function(){var e="0,0,0";try{e=(new S["default"].ActiveXObject("ShockwaveFlash.ShockwaveFlash")).GetVariable("$version").replace(/\D+/g,",").match(/^,?(.+),?$/)[1]}catch(t){try{T.mimeTypes["application/x-shockwave-flash"].enabledPlugin&&(e=(T.plugins["Shockwave Flash 2.0"]||T.plugins["Shockwave Flash"]).description.replace(/\D+/g,",").match(/^,?(.+),?$/)[1])}catch(n){}}return e.split(",")},N.embed=function(e,t,n,r){var i=N.getEmbedCode(e,t,n,r);return p.createEl("div",{innerHTML:i}).childNodes[0]},N.getEmbedCode=function(e,t,n,r){var i="",s="",o="";return t&&Object.getOwnPropertyNames(t).forEach(function(e){i+=e+"="+t[e]+"&amp;"}),n=(0,x.assign)({movie:e,flashvars:i,allowScriptAccess:"always",allowNetworking:"all"},n),Object.getOwnPropertyNames(n).forEach(function(e){s+='<param name="'+e+'" value="'+n[e]+'" />'}),r=(0,x.assign)({data:e,width:"100%",height:"100%"},r),Object.getOwnPropertyNames(r).forEach(function(e){o+=e+'="'+r[e]+'" '}),'<object type="application/x-shockwave-flash" '+o+">"+s+"</object>"},(0,y["default"])(N),w["default"].registerComponent("Flash",N),c["default"].registerTech("Flash",N),n["default"]=N},{5:5,58:58,62:62,81:81,88:88,90:90,92:92,95:95}],60:[function(e,t,n){"use strict";function r(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t["default"]=e,t}function i(e){return e&&e.__esModule?e:{"default":e}}function s(e,t){return e.raw=t,e}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}n.__esModule=!0;var f=s(["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."]),l=e(62),c=i(l),h=e(5),p=i(h),d=e(81),v=r(d),m=e(92),g=r(m),y=e(83),b=r(y),w=e(86),E=i(w),S=e(98),x=i(S),T=e(78),N=r(T),C=e(94),k=i(C),L=e(95),A=i(L),O=e(88),M=e(87),_=i(M),D=e(91),P=i(D),H=function(e){function t(n,r){o(this,t);var i=u(this,e.call(this,n,r)),s=n.source,a=!1;if(s&&(i.el_.currentSrc!==s.src||n.tag&&3===n.tag.initNetworkState_)?i.setSource(s):i.handleLateInit_(i.el_),i.el_.hasChildNodes()){for(var l=i.el_.childNodes,c=l.length,h=[];c--;){var p=l[c];"track"===p.nodeName.toLowerCase()&&(i.featuresNativeTextTracks?(i.remoteTextTrackEls().addTrackElement_(p),i.remoteTextTracks().addTrack_(p.track),a||i.el_.hasAttribute("crossorigin")||!g.isCrossOrigin(p.src)||(a=!0)):h.push(p))}for(var d=0;d<h.length;d++)i.el_.removeChild(h[d])}return["audio","video"].forEach(function(e){var t=i.el()[e+"Tracks"],n=i[e+"Tracks"](),r=(0,P["default"])(e);i["featuresNative"+r+"Tracks"]&&t&&t.addEventListener&&(i["handle"+r+"TrackChange_"]=function(e){n.trigger({type:"change",target:n,currentTarget:n,srcElement:n})},i["handle"+r+"TrackAdd_"]=function(e){return n.addTrack(e.track)},i["handle"+r+"TrackRemove_"]=function(e){return n.removeTrack(e.track)},t.addEventListener("change",i["handle"+r+"TrackChange_"]),t.addEventListener("addtrack",i["handle"+r+"TrackAdd_"]),t.addEventListener("removetrack",i["handle"+r+"TrackRemove_"]),i["removeOld"+r+"Tracks_"]=function(e){return i.removeOldTracks_(n,t)},i.on("loadstart",i["removeOld"+r+"Tracks_"]))}),i.featuresNativeTextTracks&&(a&&E["default"].warn((0,x["default"])(f)),i.handleTextTrackChange_=b.bind(i,i.handleTextTrackChange),i.handleTextTrackAdd_=b.bind(i,i.handleTextTrackAdd),i.handleTextTrackRemove_=b.bind(i,i.handleTextTrackRemove),i.proxyNativeTextTracks_()),(N.TOUCH_ENABLED||N.IS_IPHONE||N.IS_NATIVE_ANDROID)&&n.nativeControlsForTouch===!0&&i.setControls(!0),i.proxyWebkitFullscreen_(),i.triggerReady(),i}return a(t,e),t.prototype.dispose=function(){var n=this;["audio","video","text"].forEach(function(e){var t=(0,P["default"])(e),r=n.el_[e+"Tracks"];r&&r.removeEventListener&&(r.removeEventListener("change",n["handle"+t+"TrackChange_"]),r.removeEventListener("addtrack",n["handle"+t+"TrackAdd_"]),r.removeEventListener("removetrack",n["handle"+t+"TrackRemove_"])),r&&n.off("loadstart",n["removeOld"+t+"Tracks_"])}),t.disposeMediaElement(this.el_),e.prototype.dispose.call(this)},t.prototype.createEl=function(){var e=this.options_.tag;if(!e||!this.options_.playerElIngest&&!this.movingMediaElementInDOM){if(e){var n=e.cloneNode(!0);e.parentNode&&e.parentNode.insertBefore(n,e),t.disposeMediaElement(e),e=n}else{e=k["default"].createElement("video");var r=this.options_.tag&&v.getElAttributes(this.options_.tag),i=(0,_["default"])({},r);N.TOUCH_ENABLED&&this.options_.nativeControlsForTouch===!0||delete i.controls,v.setElAttributes(e,(0,O.assign)(i,{id:this.options_.techId,"class":"vjs-tech"}))}e.playerId=this.options_.playerId}for(var s=["autoplay","preload","loop","muted"],o=s.length-1;o>=0;o--){var u=s[o],a={};"undefined"!=typeof this.options_[u]&&(a[u]=this.options_[u]),v.setElAttributes(e,a)}return e},t.prototype.handleLateInit_=function(e){if(0!==e.networkState&&3!==e.networkState){if(0===e.readyState){var t=!1,n=function(){t=!0};this.on("loadstart",n);var r=function(){t||this.trigger("loadstart")};return this.on("loadedmetadata",r),void this.ready(function(){this.off("loadstart",n),this.off("loadedmetadata",r),t||this.trigger("loadstart")})}var i=["loadstart"];i.push("loadedmetadata"),e.readyState>=2&&i.push("loadeddata"),e.readyState>=3&&i.push("canplay"),e.readyState>
1=4&&i.push("canplaythrough"),this.ready(function(){i.forEach(function(e){this.trigger(e)},this)})}},t.prototype.proxyNativeTextTracks_=function(){var e=this.el().textTracks;if(e){for(var t=0;t<e.length;t++)this.textTracks().addTrack_(e[t]);e.addEventListener&&(e.addEventListener("change",this.handleTextTrackChange_),e.addEventListener("addtrack",this.handleTextTrackAdd_),e.addEventListener("removetrack",this.handleTextTrackRemove_)),this.on("loadstart",this.removeOldTextTracks_)}},t.prototype.handleTextTrackChange=function(e){var t=this.textTracks();this.textTracks().trigger({type:"change",target:t,currentTarget:t,srcElement:t})},t.prototype.handleTextTrackAdd=function(e){this.textTracks().addTrack_(e.track)},t.prototype.handleTextTrackRemove=function(e){this.textTracks().removeTrack_(e.track)},t.prototype.removeOldTracks_=function(e,t){var n=[];if(t){for(var r=0;r<e.length;r++){for(var i=e[r],s=!1,o=0;o<t.length;o++)if(t[o]===i){s=!0;break}s||n.push(i)}for(var u=0;u<n.length;u++){var a=n[u];e.removeTrack_(a)}}},t.prototype.removeOldTextTracks_=function(e){var t=this.textTracks(),n=this.el().textTracks;this.removeOldTracks_(t,n)},t.prototype.play=function(){var e=this.el_.play();void 0!==e&&"function"==typeof e.then&&e.then(null,function(e){})},t.prototype.setCurrentTime=function(e){try{this.el_.currentTime=e}catch(t){(0,E["default"])(t,"Video is not ready. (Video.js)")}},t.prototype.duration=function(){var e=this;if(this.el_.duration===1/0&&N.IS_ANDROID&&N.IS_CHROME&&0===this.el_.currentTime){var t=function n(){e.el_.currentTime>0&&(e.el_.duration===1/0&&e.trigger("durationchange"),e.off("timeupdate",n))};return this.on("timeupdate",t),NaN}return this.el_.duration||NaN},t.prototype.width=function(){return this.el_.offsetWidth},t.prototype.height=function(){return this.el_.offsetHeight},t.prototype.proxyWebkitFullscreen_=function(){var e=this;if("webkitDisplayingFullscreen"in this.el_){var t=function(){this.trigger("fullscreenchange",{isFullscreen:!1})},n=function(){this.one("webkitendfullscreen",t),this.trigger("fullscreenchange",{isFullscreen:!0})};this.on("webkitbeginfullscreen",n),this.on("dispose",function(){e.off("webkitbeginfullscreen",n),e.off("webkitendfullscreen",t)})}},t.prototype.supportsFullScreen=function(){if("function"==typeof this.el_.webkitEnterFullScreen){var e=A["default"].navigator&&A["default"].navigator.userAgent||"";if(/Android/.test(e)||!/Chrome|Mac OS X 10.5/.test(e))return!0}return!1},t.prototype.enterFullScreen=function(){var e=this.el_;e.paused&&e.networkState<=e.HAVE_METADATA?(this.el_.play(),this.setTimeout(function(){e.pause(),e.webkitEnterFullScreen()},0)):e.webkitEnterFullScreen()},t.prototype.exitFullScreen=function(){this.el_.webkitExitFullScreen()},t.prototype.src=function(e){if(void 0===e)return this.el_.src;this.setSrc(e)},t.prototype.reset=function(){t.resetMediaElement(this.el_)},t.prototype.currentSrc=function(){return this.currentSource_?this.currentSource_.src:this.el_.currentSrc},t.prototype.setControls=function(e){this.el_.controls=!!e},t.prototype.addTextTrack=function(t,n,r){return this.featuresNativeTextTracks?this.el_.addTextTrack(t,n,r):e.prototype.addTextTrack.call(this,t,n,r)},t.prototype.createRemoteTextTrack=function(t){if(!this.featuresNativeTextTracks)return e.prototype.createRemoteTextTrack.call(this,t);var n=k["default"].createElement("track");return t.kind&&(n.kind=t.kind),t.label&&(n.label=t.label),(t.language||t.srclang)&&(n.srclang=t.language||t.srclang),t["default"]&&(n["default"]=t["default"]),t.id&&(n.id=t.id),t.src&&(n.src=t.src),n},t.prototype.addRemoteTextTrack=function(t,n){var r=e.prototype.addRemoteTextTrack.call(this,t,n);return this.featuresNativeTextTracks&&this.el().appendChild(r),r},t.prototype.removeRemoteTextTrack=function(t){if(e.prototype.removeRemoteTextTrack.call(this,t),this.featuresNativeTextTracks)for(var n=this.$$("track"),r=n.length;r--;)t!==n[r]&&t!==n[r].track||this.el().removeChild(n[r])},t}(c["default"]);if(v.isReal()){H.TEST_VID=k["default"].createElement("video");var B=k["default"].createElement("track");B.kind="captions",B.srclang="en",B.label="English",H.TEST_VID.appendChild(B)}H.isSupported=function(){try{H.TEST_VID.volume=.5}catch(e){return!1}return!!H.TEST_VID&&!!H.TEST_VID.canPlayType},H.canControlVolume=function(){try{var e=H.TEST_VID.volume;return H.TEST_VID.volume=e/2+.1,e!==H.TEST_VID.volume}catch(t){return!1}},H.canControlPlaybackRate=function(){if(N.IS_ANDROID&&N.IS_CHROME)return!1;try{var e=H.TEST_VID.playbackRate;return H.TEST_VID.playbackRate=e/2+.1,e!==H.TEST_VID.playbackRate}catch(t){return!1}},H.supportsNativeTextTracks=function(){return N.IS_ANY_SAFARI},H.supportsNativeVideoTracks=function(){return!!H.TEST_VID&&!!H.TEST_VID.videoTracks},H.supportsNativeAudioTracks=function(){return!!H.TEST_VID&&!!H.TEST_VID.audioTracks},H.Events=["loadstart","suspend","abort","error","emptied","stalled","loadedmetadata","loadeddata","canplay","canplaythrough","playing","waiting","seeking","seeked","ended","durationchange","timeupdate","progress","play","pause","ratechange","volumechange"],H.prototype.featuresVolumeControl=H.canControlVolume(),H.prototype.featuresPlaybackRate=H.canControlPlaybackRate(),H.prototype.movingMediaElementInDOM=!N.IS_IOS,H.prototype.featuresFullscreenResize=!0,H.prototype.featuresProgressEvents=!0,H.prototype.featuresTimeupdateEvents=!0,H.prototype.featuresNativeTextTracks=H.supportsNativeTextTracks(),H.prototype.featuresNativeVideoTracks=H.supportsNativeVideoTracks(),H.prototype.featuresNativeAudioTracks=H.supportsNativeAudioTracks();
vendor: 8,734 bytes, line 1
1var j=H.TEST_VID&&H.TEST_VID.constructor.prototype.canPlayType,F=/^application\/(?:x-|vnd\.apple\.)mpegurl/i,I=/^video\/mp4/i;H.patchCanPlayType=function(){N.ANDROID_VERSION>=4&&!N.IS_FIREFOX?H.TEST_VID.constructor.prototype.canPlayType=function(e){return e&&F.test(e)?"maybe":j.call(this,e)}:N.IS_OLD_ANDROID&&(H.TEST_VID.constructor.prototype.canPlayType=function(e){return e&&I.test(e)?"maybe":j.call(this,e)})},H.unpatchCanPlayType=function(){var e=H.TEST_VID.constructor.prototype.canPlayType;return H.TEST_VID.constructor.prototype.canPlayType=j,e},H.patchCanPlayType(),H.disposeMediaElement=function(e){if(e){for(e.parentNode&&e.parentNode.removeChild(e);e.hasChildNodes();)e.removeChild(e.firstChild);e.removeAttribute("src"),"function"==typeof e.load&&function(){try{e.load()}catch(t){}}()}},H.resetMediaElement=function(e){if(e){for(var t=e.querySelectorAll("source"),n=t.length;n--;)e.removeChild(t[n]);e.removeAttribute("src"),"function"==typeof e.load&&function(){try{e.load()}catch(t){}}()}},["paused","currentTime","buffered","volume","muted","poster","preload","autoplay","controls","loop","error","seeking","seekable","ended","defaultMuted","playbackRate","played","networkState","readyState","videoWidth","videoHeight"].forEach(function(e){H.prototype[e]=function(){return this.el_[e]}}),["volume","muted","src","poster","preload","autoplay","loop","playbackRate"].forEach(function(e){H.prototype["set"+(0,P["default"])(e)]=function(t){this.el_[e]=t}}),["pause","load"].forEach(function(e){H.prototype[e]=function(){return this.el_[e]()}}),c["default"].withSourceHandlers(H),H.nativeSourceHandler={},H.nativeSourceHandler.canPlayType=function(e){try{return H.TEST_VID.canPlayType(e)}catch(t){return""}},H.nativeSourceHandler.canHandleSource=function(e,t){if(e.type)return H.nativeSourceHandler.canPlayType(e.type);if(e.src){var n=g.getFileExtension(e.src);return H.nativeSourceHandler.canPlayType("video/"+n)}return""},H.nativeSourceHandler.handleSource=function(e,t,n){t.setSrc(e.src)},H.nativeSourceHandler.dispose=function(){},H.registerSourceHandler(H.nativeSourceHandler),p["default"].registerComponent("Html5",H),c["default"].registerTech("Html5",H),n["default"]=H},{5:5,62:62,78:78,81:81,83:83,86:86,87:87,88:88,91:91,92:92,94:94,95:95,98:98}],61:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}n.__esModule=!0;var u=e(5),a=r(u),f=e(62),l=r(f),c=e(91),h=r(c),p=function(e){function t(n,r,o){i(this,t);var u=s(this,e.call(this,n,r,o));if(r.playerOptions.sources&&0!==r.playerOptions.sources.length)n.src(r.playerOptions.sources);else for(var f=0,c=r.playerOptions.techOrder;f<c.length;f++){var p=(0,h["default"])(c[f]),d=l["default"].getTech(p);if(p||(d=a["default"].getComponent(p)),d&&d.isSupported()){n.loadTech_(p);break}}return u}return o(t,e),t}(a["default"]);a["default"].registerComponent("MediaLoader",p),n["default"]=p},{5:5,62:62,91:91}],62:[function(e,t,n){"use strict";function r(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t["default"]=e,t}function i(e){return e&&e.__esModule?e:{"default":e}}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function u(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function a(e,t,n,r){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},s=e.textTracks();i.kind=t,n&&(i.label=n),r&&(i.language=r),i.tech=e;var o=new y["default"](i);return s.addTrack_(o),o}n.__esModule=!0;var f=e(5),l=i(f),c=e(66),h=i(c),p=e(65),d=i(p),v=e(87),m=i(v),g=e(72),y=i(g),b=e(70),w=i(b),E=e(76),S=i(E),x=e(63),T=i(x),N=e(83),C=r(N),k=e(86),L=i(k),A=e(90),O=e(79),M=e(46),_=i(M),D=e(95),P=i(D),H=e(94),B=i(H),j=e(88),F=function(t){function n(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){};s(this,n),e.reportTouchActivity=!1;var i=o(this,t.call(this,null,e,r));return i.hasStarted_=!1,i.on("playing",function(){this.hasStarted_=!0}),i.on("loadstart",function(){this.hasStarted_=!1}),i.textTracks_=e.textTracks,i.videoTracks_=e.videoTracks,i.audioTracks_=e.audioTracks,i.featuresProgressEvents||i.manualProgressOn(),i.featuresTimeupdateEvents||i.manualTimeUpdatesOn(),["Text","Audio","Video"].forEach(function(t){e["native"+t+"Tracks"]===!1&&(i["featuresNative"+t+"Tracks"]=!1)}),e.nativeCaptions===!1&&(i.featuresNativeTextTracks=!1),i.featuresNativeTextTracks||i.emulateTextTracks(),i.autoRemoteTextTracks_=new w["default"],i.initTextTrackListeners(),i.initTrackListeners(),e.nativeControlsForTouch||i.emitTapEvents(),i.constructor&&(i.name_=i.constructor.name||"Unknown Tech"),i}return u(n,t),n.prototype.manualProgressOn=function(){this.on("durationchange",this.onDurationChange),this.manualProgress=!0,this.one("ready",this.trackProgress)},n.prototype.manualProgressOff=function(){this.manualProgress=!1,this.stopTrackingProgress(),this.off("durationchange",this.onDurationChange)},n.prototype.trackProgress=function(e){this.stopTrackingProgress(),this.progressInterval=this.setInterval(C.bind(this,function(){var e=this.bufferedPercent();this.bufferedPercent_!==e&&this.trigger("progress"),this.bufferedPercent_=e,1===e&&this.stopTrackingProgress()}),500)},n.prototype.onDurationChange=function(e){this.duration_=this.duration()},n.prototype.buffered=function(){return(0,A.createTimeRange)(0,0)},n.prototype.bufferedPercent=function(){return(0,O.bufferedPercent)(this.buffered(),this.duration_)},n.prototype.stopTrackingProgress=function(){this.clearInterval(this.progressInterval)},n.prototype.manualTimeUpdatesOn=function(){this.manualTimeUpdates=!0,this.on("play",this.trackCurrentTime),this.on("pause",this.stopTrackingCurrentTime)},n.prototype.manualTimeUpdatesOff=function(){this.manualTimeUpdates=!1,this.stopTrackingCurrentTime(),this.off("play",this.trackCurrentTime),this.off("pause",this.stopTrackingCurrentTime)},n.prototype.trackCurrentTime=function(){this.currentTimeInterval&&this.stopTrackingCurrentTime(),this.currentTimeInterval=this.setInterval(function(){this.trigger({type:"timeupdate",target:this,manuallyTriggered:!0})},250)},n.prototype.stopTrackingCurrentTime=function(){this.clearInterval(this.currentTimeInterval),this.trigger({type:"timeupdate",target:this,manuallyTriggered:!0})},n.prototype.dispose=function(){this.clearTracks(["audio","video","text"]),this.manualProgress&&this.manualProgressOff(),this.manualTimeUpdates&&this.manualTimeUpdatesOff(),t.prototype.dispose.call(this)},n.prototype.clearTracks=function(e){var t=this;e=[].concat(e),e.forEach(function(e){for(var n=t[e+"Tracks"]()||[],r=n.length;r--;){var i=n[r];"text"===e&&t.removeRemoteTextTrack(i),n.removeTrack_(i)}})},n.prototype.cleanupAutoTextTracks=function(){for(var e=this.autoRemoteTextTracks_||[],t=e.length;t--;){var n=e[t];this.removeRemoteTextTrack(n)}},n.prototype.reset=function(){},n.prototype.error=function(e){return void 0!==e&&(this.error_=new _["default"](e),this.trigger("error")),this.error_},n.prototype.played=function(){return this.hasStarted_?(0,A.createTimeRange)(0,0):(0,A.createTimeRange)()},n.prototype.setCurrentTime=function(){this.manualTimeUpdates&&this.trigger({type:"timeupdate",target:this,manuallyTriggered:!0})},n.prototype.initTextTrackListeners=function(){var e=C.bind(this,function(){this.trigger("texttrackchange")}),t=this.textTracks();t&&(t.addEventListener("removetrack",e),t.addEventListener("addtrack",e),this.on("dispose",C.bind(this,function(){t.removeEventListener("removetrack",e),t.removeEventListener("addtrack",e)})))},n.prototype.initTrackListeners=function(){var e=this;["video","audio"].forEach(function(t){var n=function(){e.trigger(t+"trackchange")},r=e[t+"Tracks"]();
1r.addEventListener("removetrack",n),r.addEventListener("addtrack",n),e.on("dispose",function(){r.removeEventListener("removetrack",n),r.removeEventListener("addtrack",n)})})},n.prototype.addWebVttScript_=function(){var t=this;if(!P["default"].WebVTT)if(B["default"].body.contains(this.el())){var n=e(105);if(!this.options_["vtt.js"]&&(0,j.isPlain)(n)&&Object.keys(n).length>0)return void this.trigger("vttjsloaded");var r=B["default"].createElement("script");r.src=this.options_["vtt.js"]||"https://vjs.zencdn.net/vttjs/0.12.3/vtt.min.js",r.onload=function(){t.trigger("vttjsloaded")},r.onerror=function(){t.trigger("vttjserror")},this.on("dispose",function(){r.onload=null,r.onerror=null}),P["default"].WebVTT=!0,this.el().parentNode.appendChild(r)}else this.ready(this.addWebVttScript_)},n.prototype.emulateTextTracks=function(){var e=this,t=this.textTracks();if(t){var n=this.remoteTextTracks(),r=function(e){return t.addTrack_(e.track)},i=function(e){return t.removeTrack_(e.track)};n.on("addtrack",r),n.on("removetrack",i),this.addWebVttScript_();var s=function(){return e.trigger("texttrackchange")},o=function(){s();for(var e=0;e<t.length;e++){var n=t[e];n.removeEventListener("cuechange",s),"showing"===n.mode&&n.addEventListener("cuechange",s)}};o(),t.addEventListener("change",o),t.addEventListener("addtrack",o),t.addEventListener("removetrack",o),this.on("dispose",function(){n.off("addtrack",r),n.off("removetrack",i),t.removeEventListener("change",o),t.removeEventListener("addtrack",o),t.removeEventListener("removetrack",o);for(var e=0;e<t.length;e++)t[e].removeEventListener("cuechange",s)})}},n.prototype.videoTracks=function(){return this.videoTracks_=this.videoTracks_||new S["default"],this.videoTracks_},n.prototype.audioTracks=function(){return this.audioTracks_=this.audioTracks_||new T["default"],this.audioTracks_},n.prototype.textTracks=function(){return this.textTracks_=this.textTracks_||new w["default"],this.textTracks_},n.prototype.remoteTextTracks=function(){return this.remoteTextTracks_=this.remoteTextTracks_||new w["default"],this.remoteTextTracks_},n.prototype.remoteTextTrackEls=function(){return this.remoteTextTrackEls_=this.remoteTextTrackEls_||new d["default"],this.remoteTextTrackEls_},n.prototype.addTextTrack=function(e,t,n){if(!e)throw new Error("TextTrack kind is required but was not provided");return a(this,e,t,n)},n.prototype.createRemoteTextTrack=function(e){var t=(0,m["default"])(e,{tech:this});return new h["default"](t)},n.prototype.addRemoteTextTrack=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1],n=this.createRemoteTextTrack(e);return t!==!0&&t!==!1&&(L["default"].warn('Calling addRemoteTextTrack without explicitly setting the "manualCleanup" parameter to `true` is deprecated and default to `false` in future version of video.js'),t=!0),this.remoteTextTrackEls().addTrackElement_(n),this.remoteTextTracks().addTrack_(n.track),t!==!0&&this.autoRemoteTextTracks_.addTrack_(n.track),n},n.prototype.removeRemoteTextTrack=function(e){var t=this.remoteTextTrackEls().getTrackElementByTrack_(e);this.remoteTextTrackEls().removeTrackElement_(t),this.remoteTextTracks().removeTrack_(e),this.autoRemoteTextTracks_.removeTrack_(e)},n.prototype.setPoster=function(){},n.prototype.canPlayType=function(){return""},n.isTech=function(e){return e.prototype instanceof n||e instanceof n||e===n},n.registerTech=function(e,t){if(n.techs_||(n.techs_={}),!n.isTech(t))throw new Error("Tech "+e+" must be a Tech");return n.techs_[e]=t,t},n.getTech=function(e){return n.techs_&&n.techs_[e]?n.techs_[e]:P["default"]&&P["default"].videojs&&P["default"].videojs[e]?(L["default"].warn("The "+e+" tech was added to the videojs object when it should be registered using videojs.registerTech(name, tech)"),P["default"].videojs[e]):void 0},n}(l["default"]);F.prototype.textTracks_,F.prototype.audioTracks_,F.prototype.videoTracks_,F.prototype.featuresVolumeControl=!0,F.prototype.featuresFullscreenResize=!1,F.prototype.featuresPlaybackRate=!1,F.prototype.featuresProgressEvents=!1,F.prototype.featuresTimeupdateEvents=!1,F.prototype.featuresNativeTextTracks=!1,F.withSourceHandlers=function(e){e.registerSourceHandler=function(t,n){var r=e.sourceHandlers;r||(r=e.sourceHandlers=[]),void 0===n&&(n=r.length),r.splice(n,0,t)},e.canPlayType=function(t){for(var n=e.sourceHandlers||[],r=void 0,i=0;i<n.length;i++)if(r=n[i].canPlayType(t))return r;return""},e.selectSourceHandler=function(t,n){for(var r=e.sourceHandlers||[],i=0;i<r.length;i++)if(r[i].canHandleSource(t,n))return r[i];return null},e.canPlaySource=function(t,n){var r=e.selectSourceHandler(t,n);return r?r.canHandleSource(t,n):""},["seekable","duration"].forEach(function(e){var t=this[e];"function"==typeof t&&(this[e]=function(){return this.sourceHandler_&&this.sourceHandler_[e]?this.sourceHandler_[e].apply(this.sourceHandler_,arguments):t.apply(this,arguments)})},e.prototype),e.prototype.setSource=function(t){var n=e.selectSourceHandler(t,this.options_);return n||(e.nativeSourceHandler?n=e.nativeSourceHandler:L["default"].error("No source hander found for the current source.")),this.disposeSourceHandler(),this.off("dispose",this.disposeSourceHandler),n!==e.nativeSourceHandler&&(this.currentSource_=t,this.off(this.el_,"loadstart",e.prototype.firstLoadStartListener_),this.off(this.el_,"loadstart",e.prototype.successiveLoadStartListener_),this.one(this.el_,"loadstart",e.prototype.firstLoadStartListener_)),this.sourceHandler_=n.handleSource(t,this,this.options_),this.on("dispose",this.disposeSourceHandler),this},e.prototype.firstLoadStartListener_=function(){this.one(this.el_,"loadstart",e.prototype.successiveLoadStartListener_)},e.prototype.successiveLoadStartListener_=function(){this.disposeSourceHandler(),this.one(this.el_,"loadstart",e.prototype.successiveLoadStartListener_)},e.prototype.disposeSourceHandler=function(){this.currentSource_&&(this.clearTracks(["audio","video"]),this.currentSource_=null),this.cleanupAutoTextTracks(),this.sourceHandler_&&(this.off(this.el_,"loadstart",e.prototype.firstLoadStartListener_),this.off(this.el_,"loadstart",e.prototype.successiveLoadStartListener_),this.sourceHandler_.dispose&&this.sourceHandler_.dispose(),this.sourceHandler_=null)}},l["default"].registerComponent("Tech",F),l["default"].registerComponent("MediaTechController",F),F.registerTech("Tech",F),n["default"]=F},{105:105,46:46,5:5,63:63,65:65,66:66,70:70,72:72,76:76,79:79,83:83,86:86,87:87,88:88,90:90,94:94,95:95}],63:[function(e,t,n){"use strict";
vendor: 15,390 bytes, line 1
1function r(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t["default"]=e,t}function i(e){return e&&e.__esModule?e:{"default":e}}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function u(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}n.__esModule=!0;var a=e(74),f=i(a),l=e(78),c=r(l),h=e(94),p=i(h),d=function(e,t){for(var n=0;n<e.length;n++)t.id!==e[n].id&&(e[n].enabled=!1)},v=function(e){function t(){var n,r,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];s(this,t);for(var u=void 0,a=i.length-1;a>=0;a--)if(i[a].enabled){d(i,i[a]);break}if(c.IS_IE8){u=p["default"].createElement("custom");for(var l in f["default"].prototype)"constructor"!==l&&(u[l]=f["default"].prototype[l]);for(var h in t.prototype)"constructor"!==h&&(u[h]=t.prototype[h])}return u=n=o(this,e.call(this,i,u)),u.changing_=!1,r=u,o(n,r)}return u(t,e),t.prototype.addTrack_=function(t){var n=this;t.enabled&&d(this,t),e.prototype.addTrack_.call(this,t),t.addEventListener&&t.addEventListener("enabledchange",function(){n.changing_||(n.changing_=!0,d(n,t),n.changing_=!1,n.trigger("change"))})},t.prototype.addTrack=function(e){this.addTrack_(e)},t.prototype.removeTrack=function(t){e.prototype.removeTrack_.call(this,t)},t}(f["default"]);n["default"]=v},{74:74,78:78,94:94}],64:[function(e,t,n){"use strict";function r(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t["default"]=e,t}function i(e){return e&&e.__esModule?e:{"default":e}}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function u(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}n.__esModule=!0;var a=e(73),f=e(75),l=i(f),c=e(87),h=i(c),p=e(78),d=r(p),v=function(e){function t(){var n,r,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};s(this,t);var u=(0,h["default"])(i,{kind:a.AudioTrackKind[i.kind]||""}),f=n=o(this,e.call(this,u)),l=!1;if(d.IS_IE8)for(var c in t.prototype)"constructor"!==c&&(f[c]=t.prototype[c]);return Object.defineProperty(f,"enabled",{get:function(){return l},set:function(e){"boolean"==typeof e&&e!==l&&(l=e,this.trigger("enabledchange"))}}),u.enabled&&(f.enabled=u.enabled),f.loaded_=!0,r=f,o(n,r)}return u(t,e),t}(l["default"]);n["default"]=v},{73:73,75:75,78:78,87:87}],65:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function i(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t["default"]=e,t}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}n.__esModule=!0;var o=e(78),u=i(o),a=e(94),f=r(a),l=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];s(this,e);var n=this;if(u.IS_IE8){n=f["default"].createElement("custom");for(var r in e.prototype)"constructor"!==r&&(n[r]=e.prototype[r])}n.trackElements_=[],Object.defineProperty(n,"length",{get:function(){return this.trackElements_.length}});for(var i=0,o=t.length;i<o;i++)n.addTrackElement_(t[i]);if(u.IS_IE8)return n}return e.prototype.addTrackElement_=function(e){var t=this.trackElements_.length;""+t in this||Object.defineProperty(this,t,{get:function(){return this.trackElements_[t]}}),this.trackElements_.indexOf(e)===-1&&this.trackElements_.push(e)},e.prototype.getTrackElementByTrack_=function(e){for(var t=void 0,n=0,r=this.trackElements_.length;n<r;n++)if(e===this.trackElements_[n].track){t=this.trackElements_[n];break}return t},e.prototype.removeTrackElement_=function(e){for(var t=0,n=this.trackElements_.length;t<n;t++)if(e===this.trackElements_[t]){this.trackElements_.splice(t,1);break}},e}();n["default"]=l},{78:78,94:94}],66:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function i(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t["default"]=e,t}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function u(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}n.__esModule=!0;var a=e(78),f=i(a),l=e(94),c=r(l),h=e(42),p=r(h),d=e(72),v=r(d),m=function(e){function t(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};s(this,t);var r=o(this,e.call(this)),i=void 0,u=r;if(f.IS_IE8){u=c["default"].createElement("custom");for(var a in t.prototype)"constructor"!==a&&(u[a]=t.prototype[a])}var l=new v["default"](n);if(u.kind=l.kind,u.src=l.src,u.srclang=l.language,u.label=l.label,u["default"]=l["default"],Object.defineProperty(u,"readyState",{get:function(){return i}}),Object.defineProperty(u,"track",{get:function(){return l}}),i=0,l.addEventListener("loadeddata",function(){i=2,u.trigger({type:"load",target:u})}),f.IS_IE8){var h;return h=u,o(r,h)}return r}return u(t,e),t}(p["default"]);m.prototype.allowedEvents_={load:"load"},m.NONE=0,m.LOADING=1,m.LOADED=2,m.ERROR=3,n["default"]=m},{42:42,72:72,78:78,94:94}],67:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function i(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t["default"]=e,t}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}n.__esModule=!0;var o=e(78),u=i(o),a=e(94),f=r(a),l=function(){function e(t){s(this,e);var n=this;if(u.IS_IE8){n=f["default"].createElement("custom");for(var r in e.prototype)"constructor"!==r&&(n[r]=e.prototype[r])}if(e.prototype.setCues_.call(n,t),Object.defineProperty(n,"length",{get:function(){return this.length_}}),u.IS_IE8)return n}return e.prototype.setCues_=function(e){var t=this.length||0,n=0,r=e.length;this.cues_=e,this.length_=e.length;var i=function(e){""+e in this||Object.defineProperty(this,""+e,{get:function(){return this.cues_[e]}})};if(t<r)for(n=t;n<r;n++)i.call(this,n)},e.prototype.getCueById=function(e){for(var t=null,n=0,r=this.length;n<r;n++){var i=this[n];if(i.id===e){t=i;break}}return t},e}();n["default"]=l},{78:78,94:94}],68:[function(e,t,n){"use strict";function r(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t["default"]=e,t}function i(e){return e&&e.__esModule?e:{"default":e}}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function u(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function a(e,t){return"rgba("+parseInt(e[1]+e[1],16)+","+parseInt(e[2]+e[2],16)+","+parseInt(e[3]+e[3],16)+","+t+")"}function f(e,t,n){try{e.style[t]=n}catch(r){return}}n.__esModule=!0;var l=e(5),c=i(l),h=e(83),p=r(h),d=e(95),v=i(d),m={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'},g=function(e){function t(n,r,i){s(this,t);var u=o(this,e.call(this,n,r,i));return n.on("loadstart",p.bind(u,u.toggleDisplay)),n.on("texttrackchange",p.bind(u,u.updateDisplay)),n.ready(p.bind(u,function(){if(n.tech_&&n.tech_.featuresNativeTextTracks)return void this.hide();n.on("fullscreenchange",p.bind(this,this.updateDisplay));for(var e=this.options_.playerOptions.tracks||[],t=0;t<e.length;t++)this.player_.addRemoteTextTrack(e[t],!0);var r={captions:1,subtitles:1},i=this.player_.textTracks(),s=void 0,o=void 0;if(i){for(var u=0;u<i.length;u++){var a=i[u];a["default"]&&("descriptions"!==a.kind||s?a.kind in r&&!o&&(o=a):s=a)}o?o.mode="showing":s&&(s.mode="showing")}})),u}return u(t,e),t.prototype.toggleDisplay=function(){this.player_.tech_&&this.player_.tech_.featuresNativeTextTracks?this.hide():this.show()},t.prototype.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-text-track-display"},{"aria-live":"off","aria-atomic":"true"})},t.prototype.clearDisplay=function(){"function"==typeof v["default"].WebVTT&&v["default"].WebVTT.processCues(v["default"],[],this.el_)},t.prototype.updateDisplay=function(){var e=this.player_.textTracks();if(this.clearDisplay(),e){for(var t=null,n=null,r=e.length;r--;){var i=e[r];"showing"===i.mode&&("descriptions"===i.kind?t=i:n=i)}n?("off"!==this.getAttribute("aria-live")&&this.setAttribute("aria-live","off"),this.updateForTrack(n)):t&&("assertive"!==this.getAttribute("aria-live")&&this.setAttribute("aria-live","assertive"),this.updateForTrack(t))}},t.prototype.updateForTrack=function(e){if("function"==typeof v["default"].WebVTT&&e.activeCues){for(var t=this.player_.textTrackSettings.getValues(),n=[],r=0;r<e.activeCues.length;r++)n.push(e.activeCues[r]);v["default"].WebVTT.processCues(v["default"],n,this.el_);for(var i=n.length;i--;){var s=n[i];if(s){var o=s.displayState;if(t.color&&(o.firstChild.style.color=t.color),t.textOpacity&&f(o.firstChild,"color",a(t.color||"#fff",t.textOpacity)),t.backgroundColor&&(o.firstChild.style.backgroundColor=t.backgroundColor),t.backgroundOpacity&&f(o.firstChild,"backgroundColor",a(t.backgroundColor||"#000",t.backgroundOpacity)),t.windowColor&&(t.windowOpacity?f(o,"backgroundColor",a(t.windowColor,t.windowOpacity)):o.style.backgroundColor=t.windowColor),t.edgeStyle&&("dropshadow"===t.edgeStyle?o.firstChild.style.textShadow="2px 2px 3px #222, 2px 2px 4px #222, 2px 2px 5px #222":"raised"===t.edgeStyle?o.firstChild.style.textShadow="1px 1px #222, 2px 2px #222, 3px 3px #222":"depressed"===t.edgeStyle?o.firstChild.style.textShadow="1px 1px #ccc, 0 1px #ccc, -1px -1px #222, 0 -1px #222":"uniform"===t.edgeStyle&&(o.firstChild.style.textShadow="0 0 4px #222, 0 0 4px #222, 0 0 4px #222, 0 0 4px #222")),t.fontPercent&&1!==t.fontPercent){var u=v["default"].parseFloat(o.style.fontSize);o.style.fontSize=u*t.fontPercent+"px",o.style.height="auto",o.style.top="auto",o.style.bottom="2px"}t.fontFamily&&"default"!==t.fontFamily&&("small-caps"===t.fontFamily?o.firstChild.style.fontVariant="small-caps":o.firstChild.style.fontFamily=m[t.fontFamily])}}}},t}(c["default"]);c["default"].registerComponent("TextTrackDisplay",g),n["default"]=g},{5:5,83:83,95:95}],69:[function(e,t,n){"use strict";n.__esModule=!0;var r=function(e){return["kind","label","language","id","inBandMetadataTrackDispatchType","mode","src"].reduce(function(t,n,r){return e[n]&&(t[n]=e[n]),t},{cues:e.cues&&Array.prototype.map.call(e.cues,function(e){return{startTime:e.startTime,endTime:e.endTime,text:e.text,id:e.id}})})},i=function(e){var t=e.$$("track"),n=Array.prototype.map.call(t,function(e){return e.track});return Array.prototype.map.call(t,function(e){var t=r(e.track);return e.src&&(t.src=e.src),t}).concat(Array.prototype.filter.call(e.textTracks(),function(e){return n.indexOf(e)===-1}).map(r))},s=function(e,t){return e.forEach(function(e){var n=t.addRemoteTextTrack(e).track;!e.src&&e.cues&&e.cues.forEach(function(e){return n.addCue(e)})}),t.textTracks()};n["default"]={textTracksToJson:i,jsonToTextTracks:s,trackToJson_:r}},{}],70:[function(e,t,n){"use strict";function r(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t["default"]=e,t}function i(e){return e&&e.__esModule?e:{"default":e}}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function u(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}n.__esModule=!0;var a=e(74),f=i(a),l=e(83),c=r(l),h=e(78),p=r(h),d=e(94),v=i(d),m=function(e){function t(){var n,r,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];s(this,t);var u=void 0;if(p.IS_IE8){u=v["default"].createElement("custom");for(var a in f["default"].prototype)"constructor"!==a&&(u[a]=f["default"].prototype[a]);for(var l in t.prototype)"constructor"!==l&&(u[l]=t.prototype[l])}return u=n=o(this,e.call(this,i,u)),r=u,o(n,r)}return u(t,e),t.prototype.addTrack_=function(t){e.prototype.addTrack_.call(this,t),t.addEventListener("modechange",c.bind(this,function(){this.trigger("change")}))},t}(f["default"]);n["default"]=m},{74:74,78:78,83:83,94:94}],71:[function(e,t,n){"use strict";function r(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t["default"]=e,t}function i(e){return e&&e.__esModule?e:{"default":e}}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function u(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function a(e,t){if(t&&(e=t(e)),e&&"none"!==e)return e}function f(e,t){return a(e.options[e.options.selectedIndex].value,t)}function l(e,t,n){if(t)for(var r=0;r<e.options.length;
1r++)if(a(e.options[r].value,n)===t){e.selectedIndex=r;break}}n.__esModule=!0;var c=e(95),h=i(c),p=e(5),d=i(p),v=e(81),m=e(83),g=r(m),y=e(88),b=r(y),w=e(86),E=i(w),S=["#000","Black"],x=["#00F","Blue"],T=["#0FF","Cyan"],N=["#0F0","Green"],C=["#F0F","Magenta"],k=["#F00","Red"],L=["#FFF","White"],A=["#FF0","Yellow"],O=["1","Opaque"],M=["0.5","Semi-Transparent"],_=["0","Transparent"],D={backgroundColor:{selector:".vjs-bg-color > select",id:"captions-background-color-%s",label:"Color",options:[S,L,k,N,x,A,C,T]},backgroundOpacity:{selector:".vjs-bg-opacity > select",id:"captions-background-opacity-%s",label:"Transparency",options:[O,M,_]},color:{selector:".vjs-fg-color > select",id:"captions-foreground-color-%s",label:"Color",options:[L,S,k,N,x,A,C,T]},edgeStyle:{selector:".vjs-edge-style > select",id:"%s",label:"Text Edge Style",options:[["none","None"],["raised","Raised"],["depressed","Depressed"],["uniform","Uniform"],["dropshadow","Dropshadow"]]},fontFamily:{selector:".vjs-font-family > select",id:"captions-font-family-%s",label:"Font Family",options:[["proportionalSansSerif","Proportional Sans-Serif"],["monospaceSansSerif","Monospace Sans-Serif"],["proportionalSerif","Proportional Serif"],["monospaceSerif","Monospace Serif"],["casual","Casual"],["script","Script"],["small-caps","Small Caps"]]},fontPercent:{selector:".vjs-font-percent > select",id:"captions-font-size-%s",label:"Font Size",options:[["0.50","50%"],["0.75","75%"],["1.00","100%"],["1.25","125%"],["1.50","150%"],["1.75","175%"],["2.00","200%"],["3.00","300%"],["4.00","400%"]],"default":2,parser:function(e){return"1.00"===e?null:Number(e)}},textOpacity:{selector:".vjs-text-opacity > select",id:"captions-foreground-opacity-%s",label:"Transparency",options:[O,M]},windowColor:{selector:".vjs-window-color > select",id:"captions-window-color-%s",label:"Color"},windowOpacity:{selector:".vjs-window-opacity > select",id:"captions-window-opacity-%s",label:"Transparency",options:[_,M,O]}};D.windowColor.options=D.backgroundColor.options;var P=function(e){function t(n,r){s(this,t);var i=o(this,e.call(this,n,r));return i.setDefaults(),i.hide(),i.updateDisplay=g.bind(i,i.updateDisplay),void 0===r.persistTextTrackSettings&&(i.options_.persistTextTrackSettings=i.options_.playerOptions.persistTextTrackSettings),i.on(i.$(".vjs-done-button"),"click",function(){i.saveSettings(),i.hide()}),i.on(i.$(".vjs-default-button"),"click",function(){i.setDefaults(),i.updateDisplay()}),b.each(D,function(e){i.on(i.$(e.selector),"change",i.updateDisplay)}),i.options_.persistTextTrackSettings&&i.restoreSettings(),i}return u(t,e),t.prototype.createElSelect_=function(e){var t=this,n=D[e],r=n.id.replace("%s",this.id_);return[(0,v.createEl)("label",{className:"vjs-label",textContent:n.label},{"for":r}),(0,v.createEl)("select",{id:r},void 0,n.options.map(function(e){return(0,v.createEl)("option",{textContent:t.localize(e[1]),value:e[0]})}))]},t.prototype.createElFgColor_=function(){var e=(0,v.createEl)("legend",{textContent:this.localize("Text")}),t=this.createElSelect_("color"),n=(0,v.createEl)("span",{className:"vjs-text-opacity vjs-opacity"},void 0,this.createElSelect_("textOpacity"));return(0,v.createEl)("fieldset",{className:"vjs-fg-color vjs-tracksetting"},void 0,[e].concat(t,n))},t.prototype.createElBgColor_=function(){var e=(0,v.createEl)("legend",{textContent:this.localize("Background")}),t=this.createElSelect_("backgroundColor"),n=(0,v.createEl)("span",{className:"vjs-bg-opacity vjs-opacity"},void 0,this.createElSelect_("backgroundOpacity"));return(0,v.createEl)("fieldset",{className:"vjs-bg-color vjs-tracksetting"},void 0,[e].concat(t,n))},t.prototype.createElWinColor_=function(){var e=(0,v.createEl)("legend",{textContent:this.localize("Window")}),t=this.createElSelect_("windowColor"),n=(0,v.createEl)("span",{className:"vjs-window-opacity vjs-opacity"},void 0,this.createElSelect_("windowOpacity"));return(0,v.createEl)("fieldset",{className:"vjs-window-color vjs-tracksetting"},void 0,[e].concat(t,n))},t.prototype.createElColors_=function(){return(0,v.createEl)("div",{className:"vjs-tracksettings-colors"},void 0,[this.createElFgColor_(),this.createElBgColor_(),this.createElWinColor_()])},t.prototype.createElFont_=function(){var e=(0,v.createEl)("div",{className:"vjs-font-percent vjs-tracksetting"},void 0,this.createElSelect_("fontPercent")),t=(0,v.createEl)("div",{className:"vjs-edge-style vjs-tracksetting"},void 0,this.createElSelect_("edgeStyle")),n=(0,v.createEl)("div",{className:"vjs-font-family vjs-tracksetting"},void 0,this.createElSelect_("fontFamily"));return(0,v.createEl)("div",{className:"vjs-tracksettings-font"},void 0,[e,t,n])},t.prototype.createElControls_=function(){var e=(0,v.createEl)("button",{className:"vjs-default-button",textContent:this.localize("Defaults")}),t=(0,v.createEl)("button",{className:"vjs-done-button",textContent:"Done"});return(0,v.createEl)("div",{className:"vjs-tracksettings-controls"},void 0,[e,t])},t.prototype.createEl=function(){var e=(0,v.createEl)("div",{className:"vjs-tracksettings"},void 0,[this.createElColors_(),this.createElFont_(),this.createElControls_()]),t=(0,v.createEl)("div",{className:"vjs-control-text",id:"TTsettingsDialogLabel-"+this.id_,textContent:"Caption Settings Dialog"},{"aria-level":"1",role:"heading"}),n=(0,v.createEl)("div",{className:"vjs-control-text",id:"TTsettingsDialogDescription-"+this.id_,textContent:"Beginning of dialog window. Escape will cancel and close the window."}),r=(0,v.createEl)("div",void 0,{role:"document"},[t,n,e]);return(0,v.createEl)("div",{className:"vjs-caption-settings vjs-modal-overlay",tabIndex:-1},{role:"dialog","aria-labelledby":t.id,"aria-describedby":n.id},r)},t.prototype.getValues=function(){var e=this;return b.reduce(D,function(t,n,r){var i=f(e.$(n.selector),n.parser);return void 0!==i&&(t[r]=i),t},{})},t.prototype.setValues=function(e){var t=this;b.each(D,function(n,r){l(t.$(n.selector),e[r],n.parser)})},t.prototype.setDefaults=function(){var e=this;b.each(D,function(t){var n=t.hasOwnProperty("default")?t["default"]:0;e.$(t.selector).selectedIndex=n})},t.prototype.restoreSettings=function(){var e=void 0;try{e=JSON.parse(h["default"].localStorage.getItem("vjs-text-track-settings"))}catch(t){E["default"].warn(t)}e&&this.setValues(e)},t.prototype.saveSettings=function(){if(this.options_.persistTextTrackSettings){var e=this.getValues();try{Object.keys(e).length?h["default"].localStorage.setItem("vjs-text-track-settings",JSON.stringify(e)):h["default"].localStorage.removeItem("vjs-text-track-settings")}catch(t){E["default"].warn(t)}}},t.prototype.updateDisplay=function(){var e=this.player_.getChild("textTrackDisplay");e&&e.updateDisplay()},t}(d["default"]);d["default"].registerComponent("TextTrackSettings",P),n["default"]=P},{5:5,81:81,83:83,86:86,88:88,95:95}],72:[function(e,t,n){"use strict";
vendor: 11,345 bytes, line 1
1function r(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t["default"]=e,t}function i(e){return e&&e.__esModule?e:{"default":e}}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function u(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}n.__esModule=!0;var a=e(67),f=i(a),l=e(83),c=r(l),h=e(73),p=e(86),d=i(p),v=e(95),m=i(v),g=e(75),y=i(g),b=e(92),w=e(99),E=i(w),S=e(87),x=i(S),T=e(78),N=r(T),C=function(e,t){var n=new m["default"].WebVTT.Parser(m["default"],m["default"].vttjs,m["default"].WebVTT.StringDecoder()),r=[];n.oncue=function(e){t.addCue(e)},n.onparsingerror=function(e){r.push(e)},n.onflush=function(){t.trigger({type:"loadeddata",target:t})},n.parse(e),r.length>0&&(m["default"].console&&m["default"].console.groupCollapsed&&m["default"].console.groupCollapsed("Text Track parsing errors for "+t.src),r.forEach(function(e){return d["default"].error(e)}),m["default"].console&&m["default"].console.groupEnd&&m["default"].console.groupEnd()),n.flush()},k=function(e,t){var n={uri:e},r=(0,b.isCrossOrigin)(e);r&&(n.cors=r),(0,E["default"])(n,c.bind(this,function(e,n,r){if(e)return d["default"].error(e,n);if(t.loaded_=!0,"function"!=typeof m["default"].WebVTT){if(t.tech_){var i=function(){return C(r,t)};t.tech_.on("vttjsloaded",i),t.tech_.on("vttjserror",function(){d["default"].error("vttjs failed to load, stopping trying to process "+t.src),t.tech_.off("vttjsloaded",i)})}}else C(r,t)}))},L=function(e){function t(){var n,r,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(s(this,t),!i.tech)throw new Error("A tech was not provided.");var u=(0,x["default"])(i,{kind:h.TextTrackKind[i.kind]||"subtitles",language:i.language||i.srclang||""}),a=h.TextTrackMode[u.mode]||"disabled",l=u["default"];"metadata"!==u.kind&&"chapters"!==u.kind||(a="hidden");var p=n=o(this,e.call(this,u));if(p.tech_=u.tech,N.IS_IE8)for(var d in t.prototype)"constructor"!==d&&(p[d]=t.prototype[d]);p.cues_=[],p.activeCues_=[];var v=new f["default"](p.cues_),m=new f["default"](p.activeCues_),g=!1,y=c.bind(p,function(){this.activeCues,g&&(this.trigger("cuechange"),g=!1)});return"disabled"!==a&&p.tech_.ready(function(){p.tech_.on("timeupdate",y)},!0),Object.defineProperty(p,"default",{get:function(){return l},set:function(){}}),Object.defineProperty(p,"mode",{get:function(){return a},set:function(e){var t=this;h.TextTrackMode[e]&&(a=e,"showing"===a&&this.tech_.ready(function(){t.tech_.on("timeupdate",y)},!0),this.trigger("modechange"))}}),Object.defineProperty(p,"cues",{get:function(){return this.loaded_?v:null},set:function(){}}),Object.defineProperty(p,"activeCues",{get:function(){if(!this.loaded_)return null;if(0===this.cues.length)return m;for(var e=this.tech_.currentTime(),t=[],n=0,r=this.cues.length;n<r;n++){var i=this.cues[n];i.startTime<=e&&i.endTime>=e?t.push(i):i.startTime===i.endTime&&i.startTime<=e&&i.startTime+.5>=e&&t.push(i)}if(g=!1,t.length!==this.activeCues_.length)g=!0;else for(var s=0;s<t.length;s++)this.activeCues_.indexOf(t[s])===-1&&(g=!0);return this.activeCues_=t,m.setCues_(this.activeCues_),m},set:function(){}}),u.src?(p.src=u.src,k(u.src,p)):p.loaded_=!0,r=p,o(n,r)}return u(t,e),t.prototype.addCue=function(e){var t=e;if(m["default"].vttjs&&!(e instanceof m["default"].vttjs.VTTCue)){t=new m["default"].vttjs.VTTCue(e.startTime,e.endTime,e.text);for(var n in e)n in t||(t[n]=e[n]);t.id=e.id,t.originalCue_=e}var r=this.tech_.textTracks();if(r)for(var i=0;i<r.length;i++)r[i]!==this&&r[i].removeCue(t);this.cues_.push(t),this.cues.setCues_(this.cues_)},t.prototype.removeCue=function(e){for(var t=this.cues_.length;t--;){var n=this.cues_[t];if(n===e||n.originalCue_&&n.originalCue_===e){this.cues_.splice(t,1),this.cues.setCues_(this.cues_);break}}},t}(y["default"]);L.prototype.allowedEvents_={cuechange:"cuechange"},n["default"]=L},{67:67,73:73,75:75,78:78,83:83,86:86,87:87,92:92,95:95,99:99}],73:[function(e,t,n){"use strict";n.__esModule=!0,n.VideoTrackKind={alternative:"alternative",captions:"captions",main:"main",sign:"sign",subtitles:"subtitles",commentary:"commentary"},n.AudioTrackKind={alternative:"alternative",descriptions:"descriptions",main:"main","main-desc":"main-desc",translation:"translation",commentary:"commentary"},n.TextTrackKind={subtitles:"subtitles",captions:"captions",descriptions:"descriptions",chapters:"chapters",metadata:"metadata"},n.TextTrackMode={disabled:"disabled",hidden:"hidden",showing:"showing"}},{}],74:[function(e,t,n){"use strict";function r(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t["default"]=e,t}function i(e){return e&&e.__esModule?e:{"default":e}}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function u(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}n.__esModule=!0;var a=e(42),f=i(a),l=e(78),c=r(l),h=e(94),p=i(h),d=function(e){function t(){var n,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;s(this,t);var u=o(this,e.call(this));if(!i&&(i=u,c.IS_IE8)){i=p["default"].createElement("custom");for(var a in t.prototype)"constructor"!==a&&(i[a]=t.prototype[a])}i.tracks_=[],Object.defineProperty(i,"length",{get:function(){return this.tracks_.length}});for(var f=0;f<r.length;f++)i.addTrack_(r[f]);return n=i,o(u,n)}return u(t,e),t.prototype.addTrack_=function(e){var t=this.tracks_.length;""+t in this||Object.defineProperty(this,t,{get:function(){return this.tracks_[t]}}),this.tracks_.indexOf(e)===-1&&(this.tracks_.push(e),this.trigger({track:e,type:"addtrack"}))},t.prototype.removeTrack_=function(e){for(var t=void 0,n=0,r=this.length;n<r;n++)if(this[n]===e){t=this[n],t.off&&t.off(),this.tracks_.splice(n,1);break}t&&this.trigger({track:t,type:"removetrack"})},t.prototype.getTrackById=function(e){for(var t=null,n=0,r=this.length;n<r;n++){var i=this[n];if(i.id===e){t=i;break}}return t},t}(f["default"]);d.prototype.allowedEvents_={change:"change",addtrack:"addtrack",removetrack:"removetrack"};for(var v in d.prototype.allowedEvents_)d.prototype["on"+v]=null;n["default"]=d},{42:42,78:78,94:94}],75:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function i(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t["default"]=e,t}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function u(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}n.__esModule=!0;var a=e(78),f=i(a),l=e(94),c=r(l),h=e(85),p=i(h),d=e(42),v=r(d),m=function(e){function t(){var n,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};s(this,t);var i=o(this,e.call(this)),u=i;if(f.IS_IE8){u=c["default"].createElement("custom");for(var a in t.prototype)"constructor"!==a&&(u[a]=t.prototype[a])}var l={id:r.id||"vjs_track_"+p.newGUID(),kind:r.kind||"",label:r.label||"",language:r.language||""},h=function(e){Object.defineProperty(u,e,{get:function(){return l[e]},set:function(){}})};for(var d in l)h(d);return n=u,o(i,n)}return u(t,e),t}(v["default"]);n["default"]=m},{42:42,78:78,85:85,94:94}],76:[function(e,t,n){"use strict";function r(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t["default"]=e,t}function i(e){return e&&e.__esModule?e:{"default":e}}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function u(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}n.__esModule=!0;var a=e(74),f=i(a),l=e(78),c=r(l),h=e(94),p=i(h),d=function(e,t){for(var n=0;n<e.length;n++)t.id!==e[n].id&&(e[n].selected=!1)},v=function(e){function t(){var n,r,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];s(this,t);for(var u=void 0,a=i.length-1;a>=0;a--)if(i[a].selected){d(i,i[a]);break}if(c.IS_IE8){u=p["default"].createElement("custom");for(var l in f["default"].prototype)"constructor"!==l&&(u[l]=f["default"].prototype[l]);for(var h in t.prototype)"constructor"!==h&&(u[h]=t.prototype[h])}return u=n=o(this,e.call(this,i,u)),u.changing_=!1,Object.defineProperty(u,"selectedIndex",{get:function(){for(var e=0;e<this.length;e++)if(this[e].selected)return e;return-1},set:function(){}}),r=u,o(n,r)}return u(t,e),t.prototype.addTrack_=function(t){var n=this;t.selected&&d(this,t),e.prototype.addTrack_.call(this,t),t.addEventListener&&t.addEventListener("selectedchange",function(){n.changing_||(n.changing_=!0,d(n,t),n.changing_=!1,n.trigger("change"))})},t.prototype.addTrack=function(e){this.addTrack_(e)},t.prototype.removeTrack=function(t){e.prototype.removeTrack_.call(this,t)},t}(f["default"]);n["default"]=v},{74:74,78:78,94:94}],77:[function(e,t,n){"use strict";function r(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t["default"]=e,t}function i(e){return e&&e.__esModule?e:{"default":e}}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function u(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}n.__esModule=!0;
1var a=e(73),f=e(75),l=i(f),c=e(87),h=i(c),p=e(78),d=r(p),v=function(e){function t(){var n,r,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};s(this,t);var u=(0,h["default"])(i,{kind:a.VideoTrackKind[i.kind]||""}),f=n=o(this,e.call(this,u)),l=!1;if(d.IS_IE8)for(var c in t.prototype)"constructor"!==c&&(f[c]=t.prototype[c]);return Object.defineProperty(f,"selected",{get:function(){return l},set:function(e){"boolean"==typeof e&&e!==l&&(l=e,this.trigger("selectedchange"))}}),u.selected&&(f.selected=u.selected),r=f,o(n,r)}return u(t,e),t}(l["default"]);n["default"]=v},{73:73,75:75,78:78,87:87}],78:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function i(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t["default"]=e,t}n.__esModule=!0,n.BACKGROUND_SIZE_SUPPORTED=n.TOUCH_ENABLED=n.IS_ANY_SAFARI=n.IS_SAFARI=n.IE_VERSION=n.IS_IE8=n.IS_CHROME=n.IS_EDGE=n.IS_FIREFOX=n.IS_NATIVE_ANDROID=n.IS_OLD_ANDROID=n.ANDROID_VERSION=n.IS_ANDROID=n.IOS_VERSION=n.IS_IOS=n.IS_IPOD=n.IS_IPHONE=n.IS_IPAD=void 0;var s=e(81),o=i(s),u=e(95),a=r(u),f=a["default"].navigator&&a["default"].navigator.userAgent||"",l=/AppleWebKit\/([\d.]+)/i.exec(f),c=l?parseFloat(l.pop()):null,h=n.IS_IPAD=/iPad/i.test(f),p=n.IS_IPHONE=/iPhone/i.test(f)&&!h,d=n.IS_IPOD=/iPod/i.test(f),v=n.IS_IOS=p||h||d,m=(n.IOS_VERSION=function(){var e=f.match(/OS (\d+)_/i);return e&&e[1]?e[1]:null}(),n.IS_ANDROID=/Android/i.test(f)),g=n.ANDROID_VERSION=function(){var e=f.match(/Android (\d+)(?:\.(\d+))?(?:\.(\d+))*/i);if(!e)return null;var t=e[1]&&parseFloat(e[1]),n=e[2]&&parseFloat(e[2]);return t&&n?parseFloat(e[1]+"."+e[2]):t?t:null}(),y=(n.IS_OLD_ANDROID=m&&/webkit/i.test(f)&&g<2.3,n.IS_NATIVE_ANDROID=m&&g<5&&c<537,n.IS_FIREFOX=/Firefox/i.test(f),n.IS_EDGE=/Edge/i.test(f)),b=n.IS_CHROME=!y&&/Chrome/i.test(f),w=(n.IS_IE8=/MSIE\s8\.0/.test(f),n.IE_VERSION=function(){var e=/MSIE\s(\d+)\.\d/.exec(f),t=e&&parseFloat(e[1]);return!t&&/Trident\/7.0/i.test(f)&&/rv:11.0/.test(f)&&(t=11),t}(),n.IS_SAFARI=/Safari/i.test(f)&&!b&&!m&&!y);n.IS_ANY_SAFARI=w||v,n.TOUCH_ENABLED=o.isReal()&&("ontouchstart"in a["default"]||a["default"].DocumentTouch&&a["default"].document instanceof a["default"].DocumentTouch),n.BACKGROUND_SIZE_SUPPORTED=o.isReal()&&"backgroundSize"in a["default"].document.createElement("video").style},{81:81,95:95}],79:[function(e,t,n){"use strict";function r(e,t){var n=0,r=void 0,s=void 0;if(!t)return 0;e&&e.length||(e=(0,i.createTimeRange)(0,0));for(var o=0;o<e.length;o++)r=e.start(o),s=e.end(o),s>t&&(s=t),n+=s-r;return n/t}n.__esModule=!0,n.bufferedPercent=r;var i=e(90)},{90:90}],80:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function i(e,t){if(!e||!t)return"";if("function"==typeof o["default"].getComputedStyle){var n=o["default"].getComputedStyle(e);return n?n[t]:""}return e.currentStyle[t]||""}n.__esModule=!0,n["default"]=i;var s=e(95),o=r(s)},{95:95}],81:[function(e,t,n){"use strict";function r(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t["default"]=e,t}function i(e){return e&&e.__esModule?e:{"default":e}}function s(e,t){return e.raw=t,e}function o(e){return"string"==typeof e&&/\S/.test(e)}function u(e){if(/\s/.test(e))throw new Error("class has illegal whitespace characters")}function a(e){return new RegExp("(^|\\s)"+e+"($|\\s)")}function f(){return I["default"]===R["default"].document&&"undefined"!=typeof I["default"].createElement}function l(e){return(0,J.isObject)(e)&&1===e.nodeType}function c(e){return function(t,n){if(!o(t))return I["default"][e](null);o(n)&&(n=I["default"].querySelector(n));var r=l(n)?n:I["default"];return r[e]&&r[e](t)}}function h(e){return 0===e.indexOf("#")&&(e=e.slice(1)),I["default"].getElementById(e)}function p(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"div",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments[3],i=I["default"].createElement(e);return Object.getOwnPropertyNames(t).forEach(function(e){var n=t[e];e.indexOf("aria-")!==-1||"role"===e||"type"===e?(X["default"].warn((0,$["default"])(j,e,n)),i.setAttribute(e,n)):"textContent"===e?d(i,n):i[e]=n}
vendor: 9,529 bytes, line 1
1),Object.getOwnPropertyNames(n).forEach(function(e){i.setAttribute(e,n[e])}),r&&H(i,r),i}function d(e,t){return"undefined"==typeof e.textContent?e.innerText=t:e.textContent=t,e}function v(e,t){t.firstChild?t.insertBefore(e,t.firstChild):t.appendChild(e)}function m(e){var t=e[Q];return t||(t=e[Q]=z.newGUID()),K[t]||(K[t]={}),K[t]}function g(e){var t=e[Q];return!!t&&!!Object.getOwnPropertyNames(K[t]).length}function y(e){var t=e[Q];if(t){delete K[t];try{delete e[Q]}catch(n){e.removeAttribute?e.removeAttribute(Q):e[Q]=null}}}function b(e,t){return u(t),e.classList?e.classList.contains(t):a(t).test(e.className)}function w(e,t){return e.classList?e.classList.add(t):b(e,t)||(e.className=(e.className+" "+t).trim()),e}function E(e,t){return e.classList?e.classList.remove(t):(u(t),e.className=e.className.split(/\s+/).filter(function(e){return e!==t}).join(" ")),e}function S(e,t,n){var r=b(e,t);if("function"==typeof n&&(n=n(e,t)),"boolean"!=typeof n&&(n=!r),n!==r)return n?w(e,t):E(e,t),e}function x(e,t){Object.getOwnPropertyNames(t).forEach(function(n){var r=t[n];null===r||void 0===r||r===!1?e.removeAttribute(n):e.setAttribute(n,r===!0?"":r)})}function T(e){var t={};if(e&&e.attributes&&e.attributes.length>0)for(var n=e.attributes,r=n.length-1;r>=0;r--){var i=n[r].name,s=n[r].value;"boolean"!=typeof e[i]&&",autoplay,controls,loop,muted,default,".indexOf(","+i+",")===-1||(s=null!==s),t[i]=s}return t}function N(e,t){return e.getAttribute(t)}function C(e,t,n){e.setAttribute(t,n)}function k(e,t){e.removeAttribute(t)}function L(){I["default"].body.focus(),I["default"].onselectstart=function(){return!1}}function A(){I["default"].onselectstart=function(){return!0}}function O(e){var t=void 0;if(e.getBoundingClientRect&&e.parentNode&&(t=e.getBoundingClientRect()),!t)return{left:0,top:0};var n=I["default"].documentElement,r=I["default"].body,i=n.clientLeft||r.clientLeft||0,s=R["default"].pageXOffset||r.scrollLeft,o=t.left+s-i,u=n.clientTop||r.clientTop||0,a=R["default"].pageYOffset||r.scrollTop,f=t.top+a-u;return{left:Math.round(o),top:Math.round(f)}}function M(e,t){var n={},r=O(e),i=e.offsetWidth,s=e.offsetHeight,o=r.top,u=r.left,a=t.pageY,f=t.pageX;return t.changedTouches&&(f=t.changedTouches[0].pageX,a=t.changedTouches[0].pageY),n.y=Math.max(0,Math.min(1,(o-a+s)/s)),n.x=Math.max(0,Math.min(1,(f-u)/i)),n}function _(e){return(0,J.isObject)(e)&&3===e.nodeType}function D(e){for(;e.firstChild;)e.removeChild(e.firstChild);return e}function P(e){return"function"==typeof e&&(e=e()),(Array.isArray(e)?e:[e]).map(function(e){return"function"==typeof e&&(e=e()),l(e)||_(e)?e:"string"==typeof e&&/\S/.test(e)?I["default"].createTextNode(e):void 0}).filter(function(e){return e})}function H(e,t){return P(t).forEach(function(t){return e.appendChild(t)}),e}function B(e,t){return H(D(e),t)}n.__esModule=!0,n.$$=n.$=void 0;var j=s(["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 ","."]);n.isReal=f,n.isEl=l,n.getEl=h,n.createEl=p,n.textContent=d,n.insertElFirst=v,n.getElData=m,n.hasElData=g,n.removeElData=y,n.hasElClass=b,n.addElClass=w,n.removeElClass=E,n.toggleElClass=S,n.setElAttributes=x,n.getElAttributes=T,n.getAttribute=N,n.setAttribute=C,n.removeAttribute=k,n.blockTextSelection=L,n.unblockTextSelection=A,n.findElPosition=O,n.getPointerPosition=M,n.isTextNode=_,n.emptyEl=D,n.normalizeContent=P,n.appendContent=H,n.insertContent=B;var F=e(94),I=i(F),q=e(95),R=i(q),U=e(85),z=r(U),W=e(86),X=i(W),V=e(98),$=i(V),J=e(88),K={},Q="vdata"+(new Date).getTime();n.$=c("querySelector"),n.$$=c("querySelectorAll")},{85:85,86:86,88:88,94:94,95:95,98:98}],82:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function i(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t["default"]=e,t}function s(e,t){var n=p.getElData(e);0===n.handlers[t].length&&(delete n.handlers[t],e.removeEventListener?e.removeEventListener(t,n.dispatcher,!1):e.detachEvent&&e.detachEvent("on"+t,n.dispatcher)),Object.getOwnPropertyNames(n.handlers).length<=0&&(delete n.handlers,delete n.dispatcher,delete n.disabled),0===Object.getOwnPropertyNames(n).length&&p.removeElData(e)}function o(e,t,n,r){n.forEach(function(n){e(t,n,r)})}function u(e){function t(){return!0}function n(){return!1}if(!e||!e.isPropagationStopped){var r=e||b["default"].event;e={};for(var i in r)"layerX"!==i&&"layerY"!==i&&"keyLocation"!==i&&"webkitMovementX"!==i&&"webkitMovementY"!==i&&("returnValue"===i&&r.preventDefault||(e[i]=r[i]));if(e.target||(e.target=e.srcElement||E["default"]),e.relatedTarget||(e.relatedTarget=e.fromElement===e.target?e.toElement:e.fromElement),e.preventDefault=function(){r.preventDefault&&r.preventDefault(),e.returnValue=!1,r.returnValue=!1,e.defaultPrevented=!0},e.defaultPrevented=!1,e.stopPropagation=function(){r.stopPropagation&&r.stopPropagation(),e.cancelBubble=!0,r.cancelBubble=!0,e.isPropagationStopped=t},e.isPropagationStopped=n,e.stopImmediatePropagation=function(){r.stopImmediatePropagation&&r.stopImmediatePropagation(),e.isImmediatePropagationStopped=t,e.stopPropagation()},e.isImmediatePropagationStopped=n,null!==e.clientX&&void 0!==e.clientX){var s=E["default"].documentElement,o=E["default"].body;e.pageX=e.clientX+(s&&s.scrollLeft||o&&o.scrollLeft||0)-(s&&s.clientLeft||o&&o.clientLeft||0),e.pageY=e.clientY+(s&&s.scrollTop||o&&o.scrollTop||0)-(s&&s.clientTop||o&&o.clientTop||0)}e.which=e.charCode||e.keyCode,null!==e.button&&void 0!==e.button&&(e.button=1&e.button?0:4&e.button?1:2&e.button?2:0)}return e}function a(e,t,n){if(Array.isArray(t))return o(a,e,t,n);var r=p.getElData(e);r.handlers||(r.handlers={}),r.handlers[t]||(r.handlers[t]=[]),n.guid||(n.guid=v.newGUID()),r.handlers[t].push(n),r.dispatcher||(r.disabled=!1,r.dispatcher=function(t,n){if(!r.disabled){t=u(t);var i=r.handlers[t.type];if(i)for(var s=i.slice(0),o=0,a=s.length;o<a&&!t.isImmediatePropagationStopped();o++)try{s[o].call(e,t,n)}catch(f){g["default"].error(f)}}}),1===r.handlers[t].length&&(e.addEventListener?e.addEventListener(t,r.dispatcher,!1):e.attachEvent&&e.attachEvent("on"+t,r.dispatcher))}function f(e,t,n){if(p.hasElData(e)){var r=p.getElData(e);if(r.handlers){if(Array.isArray(t))return o(f,e,t,n);var i=function(t){r.handlers[t]=[],s(e,t)};if(t){var u=r.handlers[t];if(u){if(!n)return void i(t);if(n.guid)for(var a=0;a<u.length;a++)u[a].guid===n.guid&&u.splice(a--,1);s(e,t)}}else for(var l in r.handlers)i(l)}}}function l(e,t,n){var r=p.hasElData(e)?p.getElData(e):{},i=e.parentNode||e.ownerDocument;if("string"==typeof t&&(t={type:t,target:e}),t=u(t),r.dispatcher&&r.dispatcher.call(e,t,n),i&&!t.isPropagationStopped()&&t.bubbles===!0)l.call(null,i,t,n);else if(!i&&!t.defaultPrevented){var s=p.getElData(t.target);t.target[t.type]&&(s.disabled=!0,"function"==typeof t.target[t.type]&&t.target[t.type](),s.disabled=!1)}return!t.defaultPrevented}function c(e,t,n){if(Array.isArray(t))return o(c,e,t,n);var r=function i(){f(e,t,i),n.apply(this,arguments)};r.guid=n.guid=n.guid||v.newGUID(),a(e,t,r)}n.__esModule=!0,n.fixEvent=u,n.on=a,n.off=f,n.trigger=l,n.one=c;var h=e(81),p=i(h),d=e(85),v=i(d),m=e(86),g=r(m),y=e(95),b=r(y),w=e(94),E=r(w)},{81:81,85:85,86:86,94:94,95:95}],83:[function(e,t,n){"use strict";n.__esModule=!0,n.throttle=n.bind=void 0;var r=e(85);n.bind=function(e,t,n){t.guid||(t.guid=(0,r.newGUID)());var i=function(){return t.apply(e,arguments)};return i.guid=n?n+"_"+t.guid:t.guid,i},n.throttle=function(e,t){var n=Date.now();return function(){var r=Date.now();r-n>=t&&(e.apply(void 0,arguments),n=r)}}},{85:85}],84:[function(e,t,n){"use strict";function r(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e;e=e<0?0:e;var n=Math.floor(e%60),r=Math.floor(e/60%60),i=Math.floor(e/3600),s=Math.floor(t/60%60),o=Math.floor(t/3600);return(isNaN(e)||e===1/0)&&(i=r=n="-"),i=i>0||o>0?i+":":"",r=((i||s>=10)&&r<10?"0"+r:r)+":",n=n<10?"0"+n:n,i+r+n}n.__esModule=!0,n["default"]=r},{}],85:[function(e,t,n){"use strict";function r(){return i++}n.__esModule=!0,n.newGUID=r;var i=1},{}],86:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}n.__esModule=!0,n.logByType=void 0;var i=e(95),s=r(i),o=e(78),u=e(88),a=void 0,f=n.logByType=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:!!o.IE_VERSION&&o.IE_VERSION<11;"log"!==e&&t.unshift(e.toUpperCase()+":"),a.history.push(t),t.unshift("VIDEOJS:");var r=s["default"].console&&s["default"].console[e];r&&(n&&(t=t.map(function(e){if((0,u.isObject)(e)||Array.isArray(e))try{return JSON.stringify(e)}catch(t){return String(e)}return String(e)}).join(" ")),r.apply?r[Array.isArray(t)?"apply":"call"](s["default"].console,t):r(t))};a=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];f("log",t)},a.history=[],a.error=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return f("error",t)},a.warn=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return f("warn",t)},n["default"]=a},{78:78,88:88,95:95}],87:[function(e,t,n){"use strict";function r(){for(var e={},t=arguments.length,n=Array(t),s=0;s<t;s++)n[s]=arguments[s];
1return n.forEach(function(t){t&&(0,i.each)(t,function(t,n){if(!(0,i.isPlain)(t))return void (e[n]=t);(0,i.isPlain)(e[n])||(e[n]={}),e[n]=r(e[n],t)})}),e}n.__esModule=!0,n["default"]=r;var i=e(88)},{88:88}],88:[function(e,t,n){"use strict";function r(e,t){l(e).forEach(function(n){return t(e[n],n)})}function i(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return l(e).reduce(function(n,r){return t(n,e[r],r)},n)}function s(e){for(var t=arguments.length,n=Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];return Object.assign?Object.assign.apply(Object,[e].concat(n)):(n.forEach(function(t){t&&r(t,function(t,n){e[n]=t})}),e)}function o(e){return!!e&&"object"===(void 0===e?"undefined":a(e))}function u(e){return o(e)&&"[object Object]"===f.call(e)&&e.constructor===Object}n.__esModule=!0;var a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};n.each=r,n.reduce=i,n.assign=s,n.isObject=o,n.isPlain=u;var f=Object.prototype.toString,l=function(e){return o(e)?Object.keys(e):[]}},{}],89:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}n.__esModule=!0,n.setTextContent=n.createStyleElement=void 0;var i=e(94),s=r(i);n.createStyleElement=function(e){var t=s["default"].createElement("style");return t.className=e,t},n.setTextContent=function(e,t){e.styleSheet?e.styleSheet.cssText=t:e.textContent=t}},{94:94}],90:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function i(e,t,n){if(t<0||t>n)throw new Error("Failed to execute '"+e+"' on 'TimeRanges': The index provided ("+t+") is greater than or equal to the maximum bound ("+n+").")}function s(e,t,n,r){return void 0===r&&(f["default"].warn("DEPRECATED: Function '"+e+"' on 'TimeRanges' called without an index argument."),r=0),i(e,r,n.length-1),n[r][t]}function o(e){return void 0===e||0===e.length?{length:0,start:function(){throw new Error("This TimeRanges object is empty")},end:function(){throw new Error("This TimeRanges object is empty")}}:{length:e.length,start:s.bind(null,"start",0,e),end:s.bind(null,"end",1,e)}}function u(e,t){return Array.isArray(e)?o(e):void 0===e||void 0===t?o():o([[e,t]])}n.__esModule=!0,n.createTimeRange=void 0,n.createTimeRanges=u;var a=e(86),f=r(a);n.createTimeRange=u},{86:86}],91:[function(e,t,n){"use strict";function r(e){return"string"!=typeof e?e:e.charAt(0).toUpperCase()+e.slice(1)}n.__esModule=!0,n["default"]=r},{}],92:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}n.__esModule=!0,n.isCrossOrigin=n.getFileExtension=n.getAbsoluteURL=n.parseUrl=void 0;var i=e(94),s=r(i),o=e(95),u=r(o),a=n.parseUrl=function(e){var t=["protocol","hostname","port","pathname","search","hash","host"],n=s["default"].createElement("a");n.href=e;var r=""===n.host&&"file:"!==n.protocol,i=void 0;r&&(i=s["default"].createElement("div"),i.innerHTML='<a href="'+e+'"></a>',n=i.firstChild,i.setAttribute("style","display:none; position:absolute;"),s["default"].body.appendChild(i));for(var o={},u=0;u<t.length;u++)o[t[u]]=n[t[u]];return"http:"===o.protocol&&(o.host=o.host.replace(/:80$/,"")),"https:"===o.protocol&&(o.host=o.host.replace(/:443$/,"")),r&&s["default"].body.removeChild(i),o};n.getAbsoluteURL=function(e){if(!e.match(/^https?:\/\//)){var t=s["default"].createElement("div");t.innerHTML='<a href="'+e+'">x</a>',e=t.firstChild.href}return e},n.getFileExtension=function(e){if("string"==typeof e){var t=/^(\/?)([\s\S]*?)((?:\.{1,2}|[^\/]+?)(\.([^\.\/\?]+)))(?:[\/]*|[\?].*)$/i,n=t.exec(e);if(n)return n.pop().toLowerCase()}return""},n.isCrossOrigin=function(e){var t=u["default"].location,n=a(e);return(":"===n.protocol?t.protocol:n.protocol)+n.host!==t.protocol+t.host}},{94:94,95:95}],93:[function(t,n,r){"use strict";function i(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t["default"]=e,t}function s(e){return e&&e.__esModule?e:{"default":e}}function o(e,t,n){var r=void 0;if("string"==typeof e){if(0===e.indexOf("#")&&(e=e.slice(1)),o.getPlayers()[e])return t&&R["default"].warn('Player "'+e+'" is already initialised. Options will not be applied.'),n&&o.getPlayers()[e].ready(n),o.getPlayers()[e];r=z.getEl(e)}else r=e;if(!r||!r.nodeName)throw new TypeError("The element or ID supplied is not val
1id. (videojs)");if(r.player||T["default"].players[r.playerId])return r.player||T["default"].players[r.playerId];t=t||{},o.hooks("beforesetup").forEach(function(e){var n=e(r,(0,L["default"])(t));if(!(0,J.isObject)(n)||Array.isArray(n))return void R["default"].error("please return an object in beforesetup hooks");t=(0,L["default"])(t,n)});var i=y["default"].getComponent("Player"),s=new i(r,t,n);return o.hooks("setup").forEach(function(e){return e(s)}),s}r.__esModule=!0;var u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},f=t(95),l=s(f),c=t(94),h=s(c),p=t(56),d=i(p),v=t(89),m=i(v),g=t(5),y=s(g),b=t(42),w=s(b),E=t(82),S=i(E),x=t(51),T=s(x),N=t(52),C=s(N),k=t(87),L=s(k),A=t(83),O=i(A),M=t(72),_=s(M),D=t(64),P=s(D),H=t(77),B=s(H),j=t(90),F=t(84),I=s(F),q=t(86),R=s(q),U=t(81),z=i(U),W=t(78),X=i(W),V=t(92),$=i(V),J=t(88),K=t(80),Q=s(K),G=t(43),Y=s(G),Z=t(99),et=s(Z),tt=t(62),nt=s(tt);if("undefined"==typeof HTMLVideoElement&&z.isReal()&&(h["default"].createElement("video"),h["default"].createElement("audio"),h["default"].createElement("track")),o.hooks_={},o.hooks=function(e,t){return o.hooks_[e]=o.hooks_[e]||[],t&&(o.hooks_[e]=o.hooks_[e].concat(t)),o.hooks_[e]},o.hook=function(e,t){o.hooks(e,t)},o.removeHook=function(e,t){var n=o.hooks(e).indexOf(t);return!(n<=-1)&&(o.hooks_[e]=o.hooks_[e].slice(),o.hooks_[e].splice(n,1),!0)},l["default"].VIDEOJS_NO_DYNAMIC_STYLE!==!0&&z.isReal()){var rt=z.$(".vjs-styles-defaults");if(!rt){rt=m.createStyleElement("vjs-styles-defaults");var it=z.$("head");it&&it.insertBefore(rt,it.firstChild),m.setTextContent(rt,"\n      .video-js {\n        width: 300px;\n        height: 150px;\n      }\n\n      .vjs-fluid {\n        padding-top: 56.25%\n      }\n    ")}}d.autoSetupTimeout(1,o),o.VERSION="5.19.2",o.options=T["default"].prototype.options_,o.getPlayers=function(){return T["default"].players},o.players=T["default"].players,o.getComponent=y["default"].getComponent,o.registerComponent=function(e,t){nt["default"].isTech(t)&&R["default"].warn("The "+e+" tech was registered as a component. It should instead be registered using videojs.registerTech(name, tech)"),y["default"].registerComponent.call(y["default"],e,t)},o.getTech=nt["default"].getTech,o.registerTech=nt["default"].registerTech,o.browser=X,o.TOUCH_ENABLED=X.TOUCH_ENABLED,o.extend=Y["default"],o.mergeOptions=L["default"],o.bind=O.bind,o.plugin=C["default"],o.addLanguage=function(e,t){var n;return e=(""+e).toLowerCase(),o.options.languages=(0,L["default"])(o.options.languages,(n={},n[e]=t,n)),o.options.languages[e]},o.log=R["default"],o.createTimeRange=o.createTimeRanges=j.createTimeRanges,o.formatTime=I["default"],o.parseUrl=$.parseUrl,o.isCrossOrigin=$.isCrossOrigin,o.EventTarget=w["default"],o.on=S.on,o.one=S.one,o.off=S.off,o.trigger=S.trigger,o.xhr=et["default"],o.TextTrack=_["default"],o.AudioTrack=P["default"],o.VideoTrack=B["default"],o.isEl=z.isEl,o.isTextNode=z.isTextNode,o.createEl=z.createEl,o.hasClass=z.hasElClass,o.addClass=z.addElClass,o.removeClass=z.removeElClass,o.toggleClass=z.toggleElClass,o.setAttributes=z.setElAttributes,o.getAttributes=z.getElAttributes,o.emptyEl=z.emptyEl,o.appendContent=z.appendContent,o.insertContent=z.insertContent,o.computedStyle=Q["default"],"function"==typeof e&&e.amd?e("videojs",[],function(){return o}):"object"===(void 0===r?"undefined":u(r))&&"object"===(void 0===n?"undefined":u(n))&&(n.exports=o),r["default"]=o},{42:42,43:43,5:5,51:51,52:52,56:56,62:62,64:64,72:72,77:77,78:78,80:80,81:81,82:82,83:83,84:84,86:86,87:87,88:88,89:89,90:90,92:92,94:94,95:95,99:99}],94:[function(e,t,n){(function(n){var r=void 0!==n?n:"undefined"!=typeof window?window:{},i=e(96);if("undefined"!=typeof document)t.exports=document;else{var s=r["__GLOBAL_DOCUMENT_CACHE@4"];s||(s=r["__GLOBAL_DOCUMENT_CACHE@4"]=i),t.exports=s}}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{96:96}],95:[function(e,t,n){(function(e){"undefined"!=typeof window?t.exports=window:void 0!==e?t.exports=e:"undefined"!=typeof self?t.exp
1orts=self:t.exports={}}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],96:[function(e,t,n){},{}],97:[function(e,t,n){function r(e,t){var n,r=null;try{n=JSON.parse(e,t)}catch(i){r=i}return[r,n]}t.exports=r},{}],98:[function(e,t,n){function r(e){return e.replace(/\n\r?\s*/g,"")}t.exports=function(e){for(var t="",n=0;n<arguments.length;n++)t+=r(e[n])+(arguments[n+1]||"");return t}},{}],99:[function(e,t,n){"use strict";function r(e,t){for(var n=0;n<e.length;n++)t(e[n])}function i(e){for(var t in e)if(e.hasOwnProperty(t))return!1;return!0}function s(e,t,n){var r=e;return c(t)?(n=t,"string"==typeof e&&(r={uri:e})):r=p(t,{uri:e}),r.callback=n,r}function o(e,t,n){return t=s(e,t,n),u(t)}function u(e){function t(){4===l.readyState&&setTimeout(s,0)}function n(){var e=void 0;if(e=l.response?l.response:l.responseText||a(l),S)try{e=JSON.parse(e)}catch(t){}return e}function r(e){return clearTimeout(d),e instanceof Error||(e=new Error(""+(e||"Unknown XMLHttpRequest Error"))),e.statusCode=0,f(e,x)}function s(){if(!p){var t;clearTimeout(d),t=e.useXDR&&void 0===l.status?200:1223===l.status?204:l.status;var r=x,i=null;return 0!==t?(r={body:n(),statusCode:t,method:y,headers:{},url:v,rawRequest:l},l.getAllResponseHeaders&&(r.headers=h(l.getAllResponseHeaders()))):i=new Error("Internal XMLHttpRequest Error"),f(i,r,r.body)}}if("undefined"==typeof e.callback)throw new Error("callback argument missing");var u=!1,f=function(t,n,r){u||(u=!0,e.callback(t,n,r))},l=e.xhr||null;l||(l=e.cors||e.useXDR?new o.XDomainRequest:new o.XMLHttpRequest);var c,p,d,v=l.url=e.uri||e.url,y=l.method=e.method||"GET",b=e.body||e.data,w=l.headers=e.headers||{},E=!!e.sync,S=!1,x={body:void 0,headers:{},statusCode:0,method:y,url:v,rawRequest:l};if("json"in e&&e.json!==!1&&(S=!0,w.accept||w.Accept||(w.Accept="application/json"),"GET"!==y&&"HEAD"!==y&&(w["content-type"]||w["Content-Type"]||(w["Content-Type"]="application/json"),b=JSON.stringify(e.json===!0?b:e.json))),l.onreadystatechange=t,l.onload=s,l.onerror=r,l.onprogress=function(){},l.onabort=function(){p=!0},l.ontimeout=r,l.open(y,v,!E,e.username,e.password),E||(l.withCredentials=!!e.withCredentials),!E&&e.timeout>0&&(d=setTimeout(function(){if(!p){p=!0,l.abort("timeout");var e=new Error("XMLHttpRequest timeout");e.code="ETIMEDOUT",r(e)}}
vendor: 4,876 bytes, line 1
1,e.timeout)),l.setRequestHeader)for(c in w)w.hasOwnProperty(c)&&l.setRequestHeader(c,w[c]);else if(e.headers&&!i(e.headers))throw new Error("Headers cannot be set on an XDomainRequest object");return"responseType"in e&&(l.responseType=e.responseType),"beforeSend"in e&&"function"==typeof e.beforeSend&&e.beforeSend(l),l.send(b||null),l}function a(e){if("document"===e.responseType)return e.responseXML;var t=e.responseXML&&"parsererror"===e.responseXML.documentElement.nodeName;return""!==e.responseType||t?null:e.responseXML}function f(){}var l=e(95),c=e(100),h=e(103),p=e(104);t.exports=o,o.XMLHttpRequest=l.XMLHttpRequest||f,o.XDomainRequest="withCredentials"in new o.XMLHttpRequest?o.XMLHttpRequest:l.XDomainRequest,r(["get","put","post","patch","head","delete"],function(e){o["delete"===e?"del":e]=function(t,n,r){return n=s(t,n,r),n.method=e.toUpperCase(),u(n)}})},{100:100,103:103,104:104,95:95}],100:[function(e,t,n){function r(e){var t=i.call(e);return"[object Function]"===t||"function"==typeof e&&"[object RegExp]"!==t||"undefined"!=typeof window&&(e===window.setTimeout||e===window.alert||e===window.confirm||e===window.prompt)}t.exports=r;var i=Object.prototype.toString},{}],101:[function(e,t,n){function r(e,t,n){if(!u(t))throw new TypeError("iterator must be a function");arguments.length<3&&(n=this),"[object Array]"===a.call(e)?i(e,t,n):"string"==typeof e?s(e,t,n):o(e,t,n)}function i(e,t,n){for(var r=0,i=e.length;r<i;r++)f.call(e,r)&&t.call(n,e[r],r,e)}function s(e,t,n){for(var r=0,i=e.length;r<i;r++)t.call(n,e.charAt(r),r,e)}function o(e,t,n){for(var r in e)f.call(e,r)&&t.call(n,e[r],r,e)}var u=e(100);t.exports=r;var a=Object.prototype.toString,f=Object.prototype.hasOwnProperty},{100:100}],102:[function(e,t,n){function r(e){return e.replace(/^\s*|\s*$/g,"")}n=t.exports=r,n.left=function(e){return e.replace(/^\s*/,"")},n.right=function(e){return e.replace(/\s*$/,"")}},{}],103:[function(e,t,n){var r=e(102),i=e(101),s=function(e){return"[object Array]"===Object.prototype.toString.call(e)};t.exports=function(e){if(!e)return{};var t={};return i(r(e).split("\n"),function(e){var n=e.indexOf(":"),i=r(e.slice(0,n)).toLowerCase(),o=r(e.slice(n+1));"undefined"==typeof t[i]?t[i]=o:s(t[i])?t[i].push(o):t[i]=[t[i],o]}),t}},{101:101,102:102}],104:[function(e,t,n){function r(){for(var e={},t=0;t<arguments.length;t++){var n=arguments[t];for(var r in n)i.call(n,r)&&(e[r]=n[r])}return e}t.exports=r;var i=Object.prototype.hasOwnProperty},{}],105:[function(e,t,n){var r=e(109),i=t.exports={WebVTT:e(106).WebVTT,VTTCue:e(107).VTTCue,VTTRegion:e(108).VTTRegion};r.vttjs=i,r.WebVTT=i.WebVTT;var s=i.VTTCue,o=i.VTTRegion,u=r.VTTCue,a=r.VTTRegion;i.shim=function(){r.VTTCue=s,r.VTTRegion=o},i.restore=function(){r.VTTCue=u,r.VTTRegion=a},r.VTTCue||i.shim()},{106:106,107:107,108:108,109:109}],106:[function(e,t,n){!function(e){function t(e,t){this.name="ParsingError",this.code=e.code,this.message=t||e.message}function n(e){function t(e,t,n,r){return 3600*(0|e)+60*(0|t)+(0|n)+(0|r)/1e3}var n=e.match(/^(\d+):(\d{2})(:\d{2})?\.(\d{3})/);return n?n[3]?t(n[1],n[2],n[3].replace(":",""),n[4]):n[1]>59?t(n[1],n[2],0,n[4]):t(0,n[1],n[2],n[4]):null}function r(){this.values=v(null)}function i(e,t,n,r){var i=r?e.split(r):[e];for(var s in i)if("string"==typeof i[s]){var o=i[s].split(n);if(2===o.length){var u=o[0],a=o[1];t(u,a)}}}function s(e,s,o){function u(){var r=n(e);if(null===r)throw new t(t.Errors.BadTimeStamp,"Malformed timestamp: "+l);return e=e.replace(/^[^\sa-zA-Z-]+/,""),r}function a(e,t){var n=new r;i(e,function(e,t){switch(e){case"region":for(var r=o.length-1;r>=0;r--)if(o[r].id===t){n.set(e,o[r].region);break}break;case"vertical":n.alt(e,t,["rl","lr"]);break;case"line":var i=t.split(","),s=i[0];n.integer(e,s),n.percent(e,s)&&n.set("snapToLines",!1),n.alt(e,s,["auto"]),2===i.length&&n.alt("lineAlign",i[1],["start","middle","end"]);break;case"position":i=t.split(","),n.percent(e,i[0]),2===i.length&&n.alt("positionAlign",i[1],["start","middle","end"]);break;case"size":n.percent(e,t);break;case"align":n.alt(e,t,["start","middle","end","left","right"])}},/:/,/\s/),t.region=n.get("region",null),t.vertical=n.get("vertical",""),t.line=n.get("line","auto"),t.lineAlign=n.get("lineAlign","start"),t.snapToLines=n.get("snapToLines",!0),t.size=n.get("size",100),t.align=n.get("align","middle"),t.position=n.get("position",{start:0,left:0,middle:50,end:100,right:100},t.align),t.positionAlign=n.get("positionAlign",{start:"start",left:"start",middle:"middle",end:"end",right:"end"},t.align)}function f(){e=e.replace(/^\s+/,"")}var l=e;if(f(),s.startTime=u(),f(),"-->"!==e.substr(0,3))throw new t(t.Errors.BadTimeStamp,"Malformed time stamp (time stamps must be separated by '-->'): "+l);e=e.substr(3),f(),s.endTime=u(),f(),a(e,s)}function o(e,t){function r(){function e(e){return t=t.substr(e.length),e}if(!t)return null;var n=t.match(/^([^<]*)(<[^>
1]+>?)?/);return e(n[1]?n[1]:n[2])}function i(e){return m[e]}function s(e){for(;d=e.match(/&(amp|lt|gt|lrm|rlm|nbsp);/);)e=e.replace(d[0],i);return e}function o(e,t){return!b[t.localName]||b[t.localName]===e.localName}function u(t,n){var r=g[t];if(!r)return null;var i=e.document.createElement(r);i.localName=r;var s=y[t];return s&&n&&(i[s]=n.trim()),i}for(var a,f=e.document.createElement("div"),l=f,c=[];null!==(a=r());)if("<"!==a[0])l.appendChild(e.document.createTextNode(s(a)));else{if("/"===a[1]){c.length&&c[c.length-1]===a.substr(2).replace(">","")&&(c.pop(),l=l.parentNode);continue}var h,p=n(a.substr(1,a.length-2));if(p){h=e.document.createProcessingInstruction("timestamp",p),l.appendChild(h);continue}var d=a.match(/^<([^.\s\/0-9>]+)(\.[^\s\\>]+)?([^>\\]+)?(\\?)>?$/);if(!d)continue;if(h=u(d[1],d[3]),!h)continue;if(!o(l,h))continue;d[2]&&(h.className=d[2].substr(1).replace("."," ")),c.push(d[1]),l.appendChild(h),l=h}return f}function u(e){for(var t=0;t<w.length;t++){var n=w[t];if(e>=n[0]&&e<=n[1])return!0}return!1}function a(e){function t(e,t){for(var n=t.childNodes.length-1;n>=0;n--)e.push(t.childNodes[n])}function n(e){if(!e||!e.length)return null;var r=e.pop(),i=r.textContent||r.innerText;if(i){var s=i.match(/^.*(\n|\r)/);return s?(e.length=0,s[0]):i}return"ruby"===r.tagName?n(e):r.childNodes?(t(e,r),n(e)):void 0}var r,i=[],s="";if(!e||!e.childNodes)return"ltr";for(t(i,e);s=n(i);)for(var o=0;o<s.length;o++)if(r=s.charCodeAt(o),u(r))return"rtl";return"ltr"}function f(e){if("number"==typeof e.line&&(e.snapToLines||e.line>=0&&e.line<=100))return e.line;if(!e.track||!e.track.textTrackList||!e.track.textTrackList.mediaElement)return-1;for(var t=e.track,n=t.textTrackList,r=0,i=0;i<n.length&&n[i]!==t;i++)"showing"===n[i].mode&&r++;return++r*-1}function l(){}function c(e,t,n){var r=/MSIE\s8\.0/.test(navigator.userAgent),i="rgba(255, 255, 255, 1)",s="rgba(0, 0, 0, 0.8)";r&&(i="rgb(255, 255, 255)",s="rgb(0, 0, 0)"),l.call(this),this.cue=t,this.cueDiv=o(e,t.text);var u={color:i,backgroundColor:s,position:"relative",left:0,right:0,top:0,bottom:0,display:"inline"};r||(u.writingMode=""===t.vertical?"horizontal-tb":"lr"===t.vertical?"vertical-lr":"vertical-rl",u.unicodeBidi="plaintext"),this.applyStyles(u,this.cueDiv),this.div=e.document.createElement("div"),u={textAlign:"middle"===t.align?"center":t.align,font:n.font,whiteSpace:"pre-line",position:"absolute"},r||(u.direction=a(this.cueDiv),u.writingMode=""===t.vertical?"horizontal-tb":"lr"===t.vertical?"vertical-lr":"vertical-rl".stylesunicodeBidi="plaintext"),this.applyStyles(u),this.div.appendChild(this.cueDiv);var f=0;switch(t.positionAlign){case"start":f=t.position;break;case"middle":f=t.position-t.size/2;break;case"end":f=t.position-t.size}""===t.vertical?this.applyStyles({left:this.formatStyle(f,"%"),width:this.formatStyle(t.size,"%")}):this.applyStyles({top:this.formatStyle(f,"%"),height:this.formatStyle(t.size,"%")}),this.move=function(e){this.applyStyles({top:this.formatStyle(e.top,"px"),bottom:this.formatStyle(e.bottom,"px"),left:this.formatStyle(e.left,"px"),right:this.formatStyle(e.right,"px"),height:this.formatStyle(e.height,"px"),width:this.formatStyle(e.width,"px")})}}function h(e){var t,n,r,i,s=/MSIE\s8\.0/.test(navigator.userAgent);if(e.div){n=e.div.offsetHeight,r=e.div.offsetWidth,i=e.div.offsetTop;var o=(o=e.div.childNodes)&&(o=o[0])&&o.getClientRects&&o.getClientRects();e=e.div.getBoundingClientRect(),t=o?Math.max(o[0]&&o[0].height||0,e.height/o.length):0}this.left=e.left,this.right=e.right,this.top=e.top||i,this.height=e.height||n,this.bottom=e.bottom||i+(e.height||n),this.width=e.width||r,this.lineHeight=void 0!==t?t:e.lineHeight,s&&!this.lineHeight&&(this.lineHeight=13)}function p(e,t,n,r){function i(e,t){for(var i,s=new h(e),o=1,u=0;u<t.length;u++){for(;e.overlapsOppositeAxis(n,t[u])||e.within(n)&&e.overlapsAny(r);)e.move(t[u]);if(e.within(n))return e;var a=e.intersectPercentage(n);o>a&&(i=new h(e),o=a),e=new h(s)}return i||s}var s=new h(t),o=t.cue,u=f(o),a=[];if(o.snapToLines){var l;switch(o.vertical){case"":a=["+y","-y"],l="height";break;case"rl":a=["+x","-x"],l="width";break;case"lr":a=["-x","+x"],l="width"}var c=s.lineHeight,p=c*Math.round(u),d=n[l]+c,v=a[0];Math.abs(p)>d&&(p=p<0?-1:1,p*=Math.ceil(d/c)*c),u<0&&(p+=""===o.vertical?n.height:n.width,a=a.reverse()),s.move(v,p)}else{var m=s.lineHeight/n.height*100;switch(o.lineAlign){case"middle":u-=m/2;break;case"end":u-=m}switch(o.vertical){case"":t.applyStyles({top:t.formatStyle(u,"%")});break;case"rl":t.applyStyles({left:t.formatStyle(u,"%")});break;case"lr":t.applyStyles({right:t.formatStyle(u,"%")})}a=["+y","-x","+x","-y"],s=new h(t)}var g=i(s,a);t.move(g.toCSSCompatValues(n))}function d(){}var v=Object.create||function(){function e(){}return function(t){if(1!==arguments.length)throw new Error("Object.create shim only accepts one parameter.");return e.prototype=t,new e}}();t.prototype=v(Error.prototype),t.prototype.constructor=t,t.Errors={BadSignature:{code:0,message:"Malformed WebVTT signature."},BadTimeStamp:{code:1,message:"Malformed time stamp."}},r.prototype={set:function(e,t){this.get(e)||""===t||(this.values[e]=t)},get:function(e,t,n){return n?this.has(e)?this.values[e]:t[n]:this.has(e)?this.values[e]:t},has:function(e){return e in this.values},alt:function(e,t,n){for(var r=0;r<n.length;++r)if(t===n[r]){this.set(e,t);break}},integer:function(e,t){/^-?\d+$/.test(t)&&this.set(e,parseInt(t,10))},percent:function(e,t){return!!(t.match(/^([\d]{1,3})(\.[\d]*)?%$/)&&(t=parseFloat(t),t>=0&&t<=100))&&(this.set(e,t),!0)}};var m={"&amp;":"&","&lt;":"<","&gt;":">","&lrm;":"‎","&rlm;":"‏","&nbsp;":" "},g={c:"span",i:"i",b:"b",u:"u",ruby:"ruby",rt:"rt",v:"span",lang:"span"},y={v:"title",lang:"lang"},b={rt:"ruby"},w=[[1470,1470],[1472,1472],[1475,1475],[1478,1478],[1488,1514],[1520,1524],[1544,1544],[1547,1547],[1549,1549],[1563,1563],[1566,1610],[1645,1647],[1649,1749],[1765,1766],[1774,1775],[1786,1805],[1807,1808],[1810,1839],[1869,1957],[1969,1969],[1984,2026],[2036,2037],[2042,2042],[2048,2069],[2074,2074],[2084,2084],[2088,2088],[2096,2110],[2112,2136],[2142,2142],[2208,2208],[2210,2220],[8207,8207],[64285,64285],[64287,64296],[64298,64310],[64312,64316],[64318,64318],[64320,64321],[64323,64324],[64326,64449],[64467,64829],[64848,64911],[64914,64967],[65008,65020],[65136,65140],[65142,65276],[67584,67589],[67592,67592],[67594,67637],[67639,67640],[67644,67644],[67647,67669],[67671,67679],[67840,67867],[67872,67897],[67903,67903],[67968,68023],[68030,68031],[68096,68096],[68112,68115],[68117,68119],[68121,68147],[68160,68167],[68176,68184],[68192,68223],[68352,68405],[68416,68437],[68440,68466],[68472,68479],[68608,68680],[126464,126467],[126469,126495],[126497,126498],[126500,126500],[126503,126503],[126505,126514],[126516,126519],[126521,126521],[126523,126523],[126530,126530],[126535,126535],[126537,126537],[126539,126539],[126541,126543],[126545,126546],[126548,126548],[126551,126551
vendor: 4,244 bytes, line 1
1],[126553,126553],[126555,126555],[126557,126557],[126559,126559],[126561,126562],[126564,126564],[126567,126570],[126572,126578],[126580,126583],[126585,126588],[126590,126590],[126592,126601],[126603,126619],[126625,126627],[126629,126633],[126635,126651],[1114109,1114109]];l.prototype.applyStyles=function(e,t){t=t||this.div;for(var n in e)e.hasOwnProperty(n)&&(t.style[n]=e[n])},l.prototype.formatStyle=function(e,t){return 0===e?0:e+t},c.prototype=v(l.prototype),c.prototype.constructor=c,h.prototype.move=function(e,t){switch(t=void 0!==t?t:this.lineHeight,e){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}},h.prototype.overlaps=function(e){return this.left<e.right&&this.right>e.left&&this.top<e.bottom&&this.bottom>e.top},h.prototype.overlapsAny=function(e){for(var t=0;t<e.length;t++)if(this.overlaps(e[t]))return!0;return!1},h.prototype.within=function(e){return this.top>=e.top&&this.bottom<=e.bottom&&this.left>=e.left&&this.right<=e.right},h.prototype.overlapsOppositeAxis=function(e,t){switch(t){case"+x":return this.left<e.left;case"-x":return this.right>e.right;case"+y":return this.top<e.top;case"-y":return this.bottom>e.bottom}},h.prototype.intersectPercentage=function(e){return Math.max(0,Math.min(this.right,e.right)-Math.max(this.left,e.left))*Math.max(0,Math.min(this.bottom,e.bottom)-Math.max(this.top,e.top))/(this.height*this.width)},h.prototype.toCSSCompatValues=function(e){return{top:this.top-e.top,bottom:e.bottom-this.bottom,left:this.left-e.left,right:e.right-this.right,height:this.height,width:this.width}},h.getSimpleBoxPosition=function(e){var t=e.div?e.div.offsetHeight:e.tagName?e.offsetHeight:0,n=e.div?e.div.offsetWidth:e.tagName?e.offsetWidth:0,r=e.div?e.div.offsetTop:e.tagName?e.offsetTop:0;return e=e.div?e.div.getBoundingClientRect():e.tagName?e.getBoundingClientRect():e,{left:e.left,right:e.right,top:e.top||r,height:e.height||t,bottom:e.bottom||r+(e.height||t),width:e.width||n}},d.StringDecoder=function(){return{decode:function(e){if(!e)return"";if("string"!=typeof e)throw new Error("Error - expected string data.");return decodeURIComponent(encodeURIComponent(e))}}},d.convertCueToDOMTree=function(e,t){return e&&t?o(e,t):null},d.processCues=function(e,t,n){function r(e){for(var t=0;t<e.length;t++)if(e[t].hasBeenReset||!e[t].displayState)return!0;return!1}if(!e||!t||!n)return null;for(;n.firstChild;)n.removeChild(n.firstChild);var i=e.document.createElement("div");if(i.style.position="absolute",i.style.left="0",i.style.right="0",i.style.top="0",i.style.bottom="0",i.style.margin="1.5%",n.appendChild(i),r(t)){var s=[],o=h.getSimpleBoxPosition(i),u=Math.round(.05*o.height*100)/100,a={font:u+"px sans-serif"};!function(){for(var n,r,u=0;u<t.length;u++)r=t[u],n=new c(e,r,a),i.appendChild(n.div),p(e,n,o,s),r.displayState=n.div,s.push(h.getSimpleBoxPosition(n))}()}else for(var f=0;f<t.length;f++)i.appendChild(t[f].displayState)},d.Parser=function(e,t,n){n||(n=t,t={}),t||(t={}),this.window=e,this.vttjs=t,this.state="INITIAL",this.buffer="",this.decoder=n||new TextDecoder("utf8"),this.regionList=[]},d.Parser.prototype={reportOrThrowError:function(e){if(!(e instanceof t))throw e;this.onparsingerror&&this.onparsingerror(e)},parse:function(e){function o(){for(var e=l.buffer,t=0;t<e.length&&"\r"!==e[t]&&"\n"!==e[t];)++t;var n=e.substr(0,t);return"\r"===e[t]&&++t,"\n"===e[t]&&++t,l.buffer=e.substr(t),n}function u(e){var t=new r;if(i(e,function(e,n){switch(e){case"id":t.set(e,n);break;case"width":t.percent(e,n);break;case"lines":t.integer(e,n);break;case"regionanchor":case"viewportanchor":var i=n.split(",");if(2!==i.length)break;var s=new r;if(s.percent("x",i[0]),s.percent("y",i[1]),!s.has("x")||!s.has("y"))break;t.set(e+"X",s.get("x")),t.set(e+"Y",s.get("y"));break;case"scroll":t.alt(e,n,["up"])}},/=/,/\s/),t.has("id")){var n=new(l.vttjs.VTTRegion||l.window.VTTRegion);n.width=t.get("width",100),n.lines=t.get("lines",3),n.regionAnchorX=t.get("regionanchorX",0),n.regionAnchorY=t.get("regionanchorY",100),n.viewportAnchorX=t.get("viewportanchorX",0),n.viewportAnchorY=t.get("viewportanchorY",100),n.scroll=t.get("scroll",""),l.onregion&&l.onregion(n),l.regi
vendor: 5,915 bytes, line 1
1onList.push({id:t.get("id"),region:n})}}function a(e){var t=new r;i(e,function(e,r){switch(e){case"MPEGT":t.integer(e+"S",r);break;case"LOCA":t.set(e+"L",n(r))}},/[^\d]:/,/,/),l.ontimestampmap&&l.ontimestampmap({MPEGTS:t.get("MPEGTS"),LOCAL:t.get("LOCAL")})}function f(e){e.match(/X-TIMESTAMP-MAP/)?i(e,function(e,t){switch(e){case"X-TIMESTAMP-MAP":a(t)}},/=/):i(e,function(e,t){switch(e){case"Region":u(t)}},/:/)}var l=this;e&&(l.buffer+=l.decoder.decode(e,{stream:!0}));try{var c;if("INITIAL"===l.state){if(!/\r\n|\n/.test(l.buffer))return this;c=o();var h=c.match(/^WEBVTT([ \t].*)?$/);if(!h||!h[0])throw new t(t.Errors.BadSignature);l.state="HEADER"}for(var p=!1;l.buffer;){if(!/\r\n|\n/.test(l.buffer))return this;switch(p?p=!1:c=o(),l.state){case"HEADER":/:/.test(c)?f(c):c||(l.state="ID");continue;case"NOTE":c||(l.state="ID");continue;case"ID":if(/^NOTE($|[ \t])/.test(c)){l.state="NOTE";break}if(!c)continue;if(l.cue=new(l.vttjs.VTTCue||l.window.VTTCue)(0,0,""),l.state="CUE",c.indexOf("-->")===-1){l.cue.id=c;continue};case"CUE":try{s(c,l.cue,l.regionList)}catch(d){l.reportOrThrowError(d),l.cue=null,l.state="BADCUE";continue}l.state="CUETEXT";continue;case"CUETEXT":var v=c.indexOf("-->")!==-1;if(!c||v&&(p=!0)){l.oncue&&l.oncue(l.cue),l.cue=null,l.state="ID";continue}l.cue.text&&(l.cue.text+="\n"),l.cue.text+=c;continue;case"BADCUE":c||(l.state="ID");continue}}}catch(d){l.reportOrThrowError(d),"CUETEXT"===l.state&&l.cue&&l.oncue&&l.oncue(l.cue),l.cue=null,l.state="INITIAL"===l.state?"BADWEBVTT":"BADCUE"}return this},flush:function(){var e=this;try{if(e.buffer+=e.decoder.decode(),(e.cue||"HEADER"===e.state)&&(e.buffer+="\n\n",e.parse()),"INITIAL"===e.state)throw new t(t.Errors.BadSignature)}catch(n){e.reportOrThrowError(n)}return e.onflush&&e.onflush(),this}},e.WebVTT=d}(this,this.vttjs)},{}],107:[function(e,t,n){!function(e,t){function n(e){return"string"==typeof e&&!!o[e.toLowerCase()]&&e.toLowerCase()}function r(e){return"string"==typeof e&&!!u[e.toLowerCase()]&&e.toLowerCase()}function i(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)e[r]=n[r]}return e}function s(e,t,s){var o=this,u=/MSIE\s8\.0/.test(navigator.userAgent),a={};u?o=document.createElement("custom"):a.enumerable=!0,o.hasBeenReset=!1;var f="",l=!1,h=e,p=t,v=s,m=null,g="",y=!0,b="auto",w="start",E=50,S="middle",x=50,T="middle";if(Object.defineProperty(o,"id",i({},a,{get:function(){return f},set:function(e){f=""+e}})),Object.defineProperty(o,"pauseOnExit",i({},a,{get:function(){return l},set:function(e){l=!!e}})),Object.defineProperty(o,"startTime",i({},a,{get:function(){return h},set:function(e){if("number"!=typeof e)throw new TypeError("Start time must be set to a number.");h=e,this.hasBeenReset=!0}})),Object.defineProperty(o,"endTime",i({},a,{get:function(){return p},set:function(e){if("number"!=typeof e)throw new TypeError("End time must be set to a number.");p=e,this.hasBeenReset=!0}})),Object.defineProperty(o,"text",i({},a,{get:function(){return v},set:function(e){v=""+e,this.hasBeenReset=!0}})),Object.defineProperty(o,"region",i({},a,{get:function(){return m},set:function(e){m=e,this.hasBeenReset=!0}})),Object.defineProperty(o,"vertical",i({},a,{get:function(){return g},set:function(e){var t=n(e);if(t===!1)throw new SyntaxError("An invalid or illegal string was specified.");g=t,this.hasBeenReset=!0}})),Object.defineProperty(o,"snapToLines",i({},a,{get:function(){return y},set:function(e){y=!!e,this.hasBeenReset=!0}})),Object.defineProperty(o,"line",i({},a,{get:function(){return b},set:function(e){if("number"!=typeof e&&"auto"!==e)throw new SyntaxError("An invalid number or illegal string was specified.");b=e,this.hasBeenReset=!0}})),Object.defineProperty(o,"lineAlign",i({},a,{get:function(){return w},set:function(e){var t=r(e);if(!t)throw new SyntaxError("An invalid or illegal string was specified.");w=t,this.hasBeenReset=!0}})),Object.defineProperty(o,"position",i({},a,{get:function(){return E},set:function(e){if(e<0||e>100)throw new Error("Position must be between 0 and 100.");E=e,this.hasBeenReset=!0}})),Object.defineProperty(o,"positionAlign",i({},a,{get:function(){return S},set:function(e){var t=r(e);if(!t)throw new SyntaxError("An invalid or illegal string was specified.");S=t,this.hasBeenReset=!0}})),Object.defineProperty(o,"size",i({},a,{get:function(){return x},set:function(e){if(e<0||e>100)throw new Error("Size must be between 0 and 100.");x=e,this.hasBeenReset=!0}})),Object.defineProperty(o,"align",i({},a,{get:function(){return T},set:function(e){var t=r(e);if(!t)throw new SyntaxError("An invalid or illegal string was specified.");T=t,this.hasBeenReset=!0}})),o.displayState=void 0,u)return o}var o={"":!0,lr:!0,rl:!0},u={start:!0,middle:!0,end:!0,left:!0,right:!0};s.prototype.getCueAsHTML=function(){return WebVTT.convertCueToDOMTree(window,this.text)},e.VTTCue=e.VTTCue||s,t.VTTCue=s}(this,this.vttjs||{})},{}],108:[function(e,t,n){!function(e,t){function n(e){return"string"==typeof e&&!!s[e.toLowerCase()]&&e.toLowerCase()}function r(e){return"number"==typeof e&&e>=0&&e<=100}function i(){var e=100,t=3,i=0,s=100,o=0,u=100,a="";Object.defineProperties(this,{width:{enumerable:!0,get:function(){return e},set:function(t){if(!r(t))throw new Error("Width must be between 0 and 100.");e=t}},lines:{enumerable:!0,get:function(){return t},set:function(e){if("number"!=typeof e)throw new TypeError("Lines must be set to a number.");t=e}},regionAnchorY:{enumerable:!0,get:function(){return s},set:function(e){if(!r(e))throw new Error("RegionAnchorX must be between 0 and 100.");s=e}},regionAnchorX:{enumerable:!0,get:function(){return i},set:function(e){if(!r(e))throw new Error("RegionAnchorY must be between 0 and 100.");i=e}},viewportAnchorY:{enumerable:!0,get:function(){return u},set:function(e){if(!r(e))throw new Error("ViewportAnchorY must be between 0 and 100.");u=e}},viewportAnchorX:{enumerable:!0,get:function(){return o}
1,set:function(e){if(!r(e))throw new Error("ViewportAnchorX must be between 0 and 100.");o=e}},scroll:{enumerable:!0,get:function(){return a},set:function(e){var t=n(e);if(t===!1)throw new SyntaxError("An invalid or illegal string was specified.");a=t}}})}var s={"":!0,up:!0};e.VTTRegion=e.VTTRegion||i,t.VTTRegion=i}(this,this.vttjs||{})},{}],109:[function(e,t,n){arguments[4][95][0].apply(n,arguments)},{95:95}]},{},[93])(93)}),!function(){!function(e){var t=e&&e.videojs;if(t){t.CDN_VERSION="5.19.2";var n="https:"===e.location.protocol?"https://":"http://";t.options.flash.swf=n+"vjs.zencdn.net/swf/5.3.0/video-js.swf"}}(window),function(e,t,n,r,i,s,o){t&&t.HELP_IMPROVE_VIDEOJS!==!1&&(i.random()>.01||(s=t.location,o=t.videojs||{},e.src="//www.google-analytics.com/__utm.gif?utmwv=5.4.2&utmac=UA-16505296-3&utmn=1&utmhn="+r(s.hostname)+"&utmsr="+t.screen.availWidth+"x"+t.screen.availHeight+"&utmul="+(n.language||n.userLanguage||"").toLowerCase()+"&utmr="+r(s.href)+"&utmp="+r(s.hostname+s.pathname)+"&utmcc=__utma%3D1."+i.floor(1e10*i.random())+".1.1.1.1%3B&utme=8(vjsv*cdnv)9("+o.VERSION+"*"+o.CDN_VERSION+")"))}(new Image,window,navigator,encodeURIComponent,Math)}(),define("text!app/modules/video/views/templates/tmpl-popup-hotspots.html",[],function(){return'<li class="player-container-popup-hotspot" id="{{id}}" data-left-pos="{{leftPos}}" data-topic-num="{{num}}" style="left:{{leftPos}};">\n    <svg version="1.1" xmlns="//www.w3.org/2000/svg" xmlns:xlink="//www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 100 20" enable-background="new 0 0 100 20" xml:space="preserve">\n        <style type="text/css">\n            .st0 {\n                fill: #ffffff;\n                stroke: #000000;\n                stroke-width: 0.153;\n                stroke-miterlimit: 10;\n            }\n        </style>\n        <polygon class="st0" points="50,6.3 43.5,18 56.5,18 " />\n    </svg>\n</li>\n'}),define("app/modules/video/views/videojs-sizing",["require","underscore","jquery","backbone","mustache","videojs","TweenMax"],function(e){var t=e("underscore"),n=e("jquery"),r=e("backbone"),i=e("mustache"),s=e("videojs"),o=e("TweenMax"),u=r.View.extend({initialize:function(e){this.vidjs=e,this.videoTag=n(this.vidjs.el()).find("video"),window.vidjs=this.vidjs,this.aspectRatio=16/9,this.reverseAspectRatio=9/16,this.resizeMode=!1,window.resizeTest=this.onResize.bind(this)},removeFromStage:function(){this.undelegateEvents(),this.vidjs=undefined,this.videoTag=undefined,this.remove()},onResize:function(e,t,n){var r=window.innerWidth,i=window.innerHeight,s,o,u=r/i;u>=1.86?(o=Math.ceil(i),s=Math.ceil(i*this.aspectRatio)):u>=1.5&&u<1.86?(s=Math.ceil(r),o=Math.ceil(r*this.reverseAspectRatio)):u>1.45&&u<1.5?(o=Math.ceil(i),s=Math.ceil(i*this.aspectRatio)):(s=Math.ceil(r),o=Math.ceil(r*this.reverseAspectRatio)),t!=undefined&&(o=n,s=t),this.videoTag!=undefined&&this.videoTag.closest(".bc-player-cENsmHkkB_default").width(s).height(o)},startResizing:function(){n(window).resize(this.onResize.bind(this)),this.onResize()},stopResizing:function(e,t){n(window).off("resize"),e!=undefined&&this.onResize(undefined,e,t)},resizeOnce:function(e,t){n(window).off("resize"),this.onResize(undefined,e,t)}});return u}),define("app/modules/video/views/video-popup-container-view",["require","app/base-classes/base-view","videojs","TweenMax","text!app/modules/video/views/templates/tmpl-popup-hotspots.html","app/modules/video/views/video-popup-view","mustache","app/modules/video/views/videojs-sizing"],function(e){var t=e("app/base-classes/base-view"),n=e("videojs"),r=e("TweenMax"),i=e("text!app/modules/video/views/templates/tmpl-popup-hotspots.html"),s=e("app/modules/video/views/video-popup-view"),o=e("mustache"),u=e("app/modules/video/views/videojs-sizing"),a=t.extend({initialize:function(e,t,n,r){this.debug=!0,this.init(),this.Evt=t,this.popupData=this.getPopupSetup(),window.popupData=this.popupData,this.popupLaunched=!1,this.videoDuration=r,this.setHotspotPositions(),this.addHotspots(),this.popupTimeCheckArr=_.pluck(popupData,"time"),this.popupCheckArr=this.popupTimeCheckArr.slice().sort(function(e,t){return e-t}),this.collection=boeing_globals.topicsCollection,this.console.log("popups container is this ",this.el,this),this.currentPopupNum=-1,this.oldPopup=undefined,this.popup=undefined,this.timeoutId=undefined,window.setTimeout(this.addListeners.bind(this),500),this.addStream()},addListeners:function(){$(".player-container-popup-hotspot").on("mouseover",this.onHotspotOver.bind(this)),$(".player-container-popup-hotspot").on("mouseout",this.onHotspotOut.bind(this)),this.listenTo(this.Evt,"REMOVE_POPUP_CONTAINER_EVENT",this.removeFromStage.bind(this)),this.Evt.listenTo(this,"TEN_SECOND_COUNTDOWN_EVENT",this.Evt.onTenSecondCountdown),this.tenSecCountdownBool=!1,this.on("click",this.onPopupClicked.bind(this))},addStream:function(){var e=function(){return document.querySelector("video#player-video_html5_api")!==null};if(e()===!0){var t=function(e){return e},n=function(e){return e[0].time=Math.floor(e[0].time),e},r=function(e){return e[0]!==undefined},i=function(e){return _.contains(this.popupTimeCheckArr,e[0].time)},s=function(e){return e[0].time};this.vid$=boeing_globals.vidSubject.switchMap(t.bind(this)).takeWhile(e.bind(this)).map(n).filter(i.bind(this)).debounce(function(e){return Rx.Observable.timer(1100)}).do(function(e){console.log("e is ",e[0].time)}).subscribe(this.onVideoPlayerEvent.bind(this))}},makeUserActive:function(e){var t=126;e!==undefined&&(t=e);var n=_.range(1,t),r=50,i=0,s=function(){window.vidjs.userActive()===!1&&window.vidjs.userActive(!0)},o=function(e){i=e*r,window.setTimeout(s.bind(this),i)};_.each(n,o.bind(this)),s()},checkTenSecCountdown:function(e){var t=e.time,n=e.duration,r=n-t,i=r<=10;i===!0&&this.tenSecCountdownBool===!1&&(this.trigger("TEN_SECOND_COUNTDOWN_EVENT"),this.tenSecCountdownBool=!0,this.makeUserActive(200))},onVideoPlayerEvent:function(e){var t=e[0].time,n=Math.floor(_.indexOf(this.popupTimeCheckArr,t));this.checkTenSecCountdown(e[0]),console.log(this.popupCheckArr.length,this.popupCheckArr,n," popup thing ",t,n,this.popupTimeCheckArr,n>=0,this);if(n>=0){var r=this.popupData[n],i=r.leftPos,s=r.num;this.loadPopup(i,s),this.timeoutID=window.setTimeout(this.startTimeout.bind(this),8e3),this.makeUserActive()}},addHotspots:function(){var e,t,n,r,s=function(s){r=s.pct,r>3&&r<95&&(n="hotspot-"+String(_.random(1,1e3)),t=s,t.id=n,e=o.to_html(i,t),$(this.el).append(e))};_.each(this.popupData,s.bind(this))},startTimeout:function(){this.popup!==undefined&&this.popup.hasOwnProperty("removeFromStage")===!0&&(this.popup.removeFromStage(),this.popup=undefined)},onPopupClicked:function(e){e.type=="clicked"&&this.trigger("PLAYER_POPUP_EVENT",e)},cancelTimeout:function(){window.clearTimeout(this.timeoutID),this.timeoutID=undefined},getTopicData:function(e){var t=this.popupData[e-1];return t.hideProgressCircleBool=!1,t},addPopup:function(e){this.popup===undefined?this.startPopup(e):this.popup.hasOwnProperty("removeFromStage")===!0&&(this.popup.removeFromStage(),this.startPopup(e))},startPopup:function(e){this.popup=new s(e),$(this.el).append(this.popup.render()),this.popup.start(),this.listenTo(this.popup,"PLAYER_POPUP_EVENT",this.onPopupClicked.bind(this))},onHotspotOver:function(e){var t=$(e.currentTarget),n=t.data("left-pos"),r=t.data("topic-num"),i=!0;this.loadPopup(n,r,i),this.cancelTimeout()},resetPopupNum:function(){this.currentPopupNum=-1},loadPopup:function(e,t,n){var r=e,i=t,s=this.getTopicData(i);s.leftPos=r,s.hideProgressCircleBool=n,this.currentPopupNum!==i&&this.addPopup(s),this.currentPopupNum=i,this.oldPopup,window.setTimeout(this.resetPopupNum.bind(this),1e3)},onHotspotOut:function(e){this.timeoutID=window.setTimeout(this.startTimeout.bind(this),3e3)},start:function(e,t,n){},setHotspotPositions:function(){var e=function(e,t){var n=e.time/this.videoDuration*100;e.pct=n,e.leftPos=String(n)+"%"};_.map(this.popupData,e.bind(this))},onCheckForPopup:function(e){if(this.vidjs.currentTime()>=51&&this.popupLaunched==0&&this.popup==undefined){var t=51/this.vidjs.duration()*100;this.popup=new s(t),$(".vjs-progress-control").append(this.popup.render()),this.popup.start(),this.listenTo(this.popup,"PLAYER_POPUP_EVENT",this.onPlayerPopupEvent.bind(this)),this.vidjs.userActive(!0),this.vidjs.off("progress",this.onCheckForPopup.bind(this)),this.popupLaunched=!0}else this.vidjs.currentTime()<51&&this.popupLaunched==1&&(this.popupLaunched=!1)},onPlayerPopupEvent:function(e){if(e.type=="removed")this.popup=undefined;else if(e.type=="clicked"){var t={type:"topics",topic_num:e.topic_num,currentTopic:e.currentTopic};this.trigger("VIDEO_PLAYER_EVENT",t)}},onVideoReady:function(e){},showControls:function(){},removePopup:function(){this.popup!=undefined&&this.popup.removeFromStage()},removeFromStage:function(){this.vid$!==undefined&&this.vid$.dispose(),this.removePopup(),this.cleanUp()},cleanUp:function(){this.undelegateEvents(),this.remove()},getPopupsByEpisodeNum:function(e,t){var n=e,r=t,i=[],s=function(e,t){e.attributes.chapter_popups!=0&&e.attributes.topic_episode_number==n&&i.push(e.attributes.chapter_popups)};return boeing_globals.topicsCollection.each(s),_.flatten(i)},getPopupSetup:function(){var e=Math.ceil(boeing_globals.state.get("currentEpisode"))+1,t=Math.ceil(boeing_globals.state.get("currentChapter"))+1,n=this.getPopupsByEpisodeNum(e,t),r=function(e,t){var n=t;e.num=t*1+1};return n=_.where(n,{chapter_number:String(t)}),_.each(n,r),this.console.log("POPUPS DATA IS ",n," and the episode num is ",e,boeing_globals.state.get("currentEpisode")),n}});return a}),define("text!app/modules/player/views/templates/tmpl-play-pause.html",[],function(){return'<li class="topic-play-icon hide">\n    <header>\n        <h5>{{num}}</h5>\n        <h4>{{title}}</h4>\n    </header>\n    <svg version="1.1" xmlns="//www.w3.org/2000/svg" xmlns:xlink="//www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 70 70" style="enable-background: new 0 0 70 70" xml:space="preserve">\n        <style type="text/css">\n            .st0 {\n                enable-background: new;\n            }\n            .st1 {\n                fill: #ffffff;\n            }\n        </style>\n        <g id="Ellipse_2_1_" class="st0"></g>\n        <g id="Shape_9_1_" class="st0">\n            <path\n                class="st1"\n                d="M35,0C15.7,0,0,15.7,0,35s15.7,35,35,35s35-15.7,35-35S54.3,0,35,0z M35,68C16.8,68,2,53.2,2,35\n		C2,16.8,16.8,2,35,2c18.2,0,33,14.8,33,33C68,53.2,53.2,68,35,68z M29,47l19-12.5L29,22V47z"\n            />\n        </g>\n    </svg>\n</li>\n<li class="topic-pause-icon">\n    <svg version="1.1" xmlns="//www.w3.org/2000/svg" xmlns:xlink="//www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 70 70" style="enable-background: new 0 0 70 70" xml:space="preserve">\n        <style type="text/css">\n            .st0 {\n                enable-background: new;\n            }\n            .st1 {\n                fill: #ffffff;\n            }\n        </style>\n        <g id="Ellipse_2_1_" class="st0"></g>\n        <g id="Rectangle_27_1_" class="st0"></g>\n        <g id="Rectangle_27_copy_3_1_" class="st0">\n            <path\n                class="st1"\n                d="M35,0C15.7,0,0,15.7,0,35s15.7,35,35,35s35-15.7,35-35S54.3,0,35,0z M35,68C16.8,68,2,53.2,2,35\n		C2,16.8,16.8,2,35,2c18.2,0,33,14.8,33,33C68,53.2,53.2,68,35,68z M28,47h5V24h-5V47z M38,47h5V24h-5V47z"\n            />\n        </g>\n    </svg>\n</li>\n'}
1),define("app/modules/player/views/player-topic-play-pause-view",["require","underscore","jquery","backbone","app/base-classes/base-view","text!app/modules/player/views/templates/tmpl-play-pause.html","mustache","TweenMax"],function(e){var t=e("underscore"),n=e("jquery"),r=e("backbone"),i=e("app/base-classes/base-view"),s=e("text!app/modules/player/views/templates/tmpl-play-pause.html"),o=e("mustache"),u=e("TweenMax"),a=i.extend({id:"topics-play-pause",className:"overlay-icon",tagName:"ul",initialize:function(e){this.debug=!1,this.Evt=e,this.init(),this.episodeNum=-1,this.oldEpisodeNum=-2,this.checkForDeepLink()},events:{},start:function(){},checkForDeepLink:function(){return boeing_globals.videoPlayed===!1?this.deepLinked=!0:this.deepLinked=!1,this.deepLinked},removeFromStage:function(){this.cleanUp()},cleanUp:function(){this.undelegateEvents(),this.remove()},addNewTitle:function(){},checkIfPaused:function(e){e==1?this.pause():this.play()},play:function(){this.playBtn.addClass("hide");var e=function(){this.pauseBtn.addClass("reveal")};this.checkForDeepLink(),window.setTimeout(e.bind(this),500)},pause:function(){this.playBtn.removeClass("hide"),this.pauseBtn.removeClass("reveal"),this.checkForDeepLink()},onPlayBtnClicked:function(){var e={type:"play"};this.trigger("PLAYER_UI_EVENT",e)},onPauseBtnClicked:function(){var e={type:"pause"};this.trigger("PLAYER_UI_EVENT",e)},setFullScreen:function(){this.checkForDeepLink()==1&&(this.trigger("SET_FULLSCREEN_EVENT",!0),n("#main-player-fs-icon").removeClass("hide"),boeing_globals.videoPlayed=!0)},afterRender:function(){this.pauseBtn=n(this.el).find(".topic-pause-icon"),this.playBtn=n(this.el).find(".topic-play-icon"),this.pauseBtn.on("click",this.onPauseBtnClicked.bind(this)),this.playBtn.on("click",this.onPlayBtnClicked.bind(this));var e=function(){n("#main-player-fs-icon").addClass("hide")};this.checkForDeepLink()==1&&(window.setTimeout(e.bind(this),100),n(this.el).on("click",this.setFullScreen.bind(this)))},updatePosterText:function(){var e=boeing_globals.state.get("currentEpisode");this.oldEpisodeNum=this.episodeNum,this.episodeNum=e;var t=boeing_globals.episodesCollection.at(e),r=t.get("episode_title"),i=boeing_globals.uiTextModel.get("episode-abbr"),s=Math.ceil(e*1)+1;s=i+" "+String(s);var o={num:s,title:r},u=n(this.el).find("h5"),a=n(this.el).find("h4");n(u).text(o.num),n(a).text(o.title)},updateTopicsInfo:function(){var e,t;if(this.checkForDeepLink()==1){var r=boeing_globals.state.get("currentEpisode");this.oldEpisodeNum=this.episodeNum,this.episodeNum=r;var i=boeing_globals.episodesCollection.at(r);t=i.get("episode_title"),e=Math.ceil(r*1)+1;var s=boeing_globals.uiTextModel.get("episode-abbr");e=s+" "+String(e);if(this.oldEpisodeNum!==this.episodeNum){var o={num:e,title:t},u=n(this.el).find("h5"),a=n(this.el).find("h4");n(u).text(o.num),n(a).text(o.title)}}},render:function(){var e,t;if(this.checkForDeepLink()==1){var r=boeing_globals.state.get("currentEpisode");this.episodeNum=r;var i=boeing_globals.episodesCollection.at(r);t=i.get("episode_title"),e=Math.ceil(r*1)+1;var u=boeing_globals.uiTextModel.get("episode-abbr");e=u+" "+String(e)}var a={num:e,title:t},f=o.to_html(s,a);return n(this.el).html(f),this.checkForDeepLink(),this.afterRender(),this.el}});return a}),define("text!app/modules/player/views/templates/tmpl-library-btn.html",[],function(){return'<li class="sonar-icon">\n</li>\n<li class="library-text">{{explore}}</li>'}),define("app/modules/player/views/player-library-btn-view",["require","underscore","jquery","backbone","app/base-classes/base-view","mustache","text!app/modules/player/views/templates/tmpl-library-btn.html","TweenMax"],function(e){var t=e("underscore"),n=e("jquery"),r=e("backbone"),i=e("app/base-classes/base-view"),s=e("mustache"),o=e("text!app/modules/player/views/templates/tmpl-library-btn.html"),u=e("TweenMax"),a=i.extend({id:"main-player-library-btn",tagName:"aside",className:"bng-chrome-item",initialize:function(e){this.debug=!1,this.Evt=e,this.init(),this.Evt.listenTo(this,"LIBRARY_CLICK_EVENT",this.Evt.onStateEvent)},events:{},removeFromStage:function(){this.cleanUp()},cleanUp:function(){console.log("REMOVEING ITEM ",this),this.undelegateEvents(),this.remove()},onLibraryClick:function(e){this.console.log("library clicked");var t=function(){var e=boeing_globals.state.get("loadLibrary");return e==1?e=!1:e=!0,e},n=t(),r=boeing_globals.state.toJSON(),i=r.currentEpisode+1,s=r.currentChapter+1,o=n==1?"topic-episode-collapse":"topic-episode-expand",u=this.gaMixins.getEventLabel(i,s);this.gaMixins.sendUIEvent(o,u);var a=function(){var e={loadLibrary:n};this.trigger("LIBRARY_CLICK_EVENT",e)};e.preventDefault(),window.setTimeout(a.bind(this),100)},afterRender:function(){var e=function(){n(this.el).on("click",this.onLibraryClick.bind(this))};this.libraryBtn=n(this.el),boeing_globals.state.get("loadLibrary")===!0&&this.libraryBtn.addClass("library-mode"),this.listenTimer=window.setTimeout(e.bind(this),3e3)},render:function(){var e=boeing_globals.uiTextModel.get("explore"),t={explore:e},r=s.to_html(o,t);return n(this.el).append(r),this.afterRender(),this.el}});return a}),define("app/modules/video/video-view",["require","app/base-classes/base-view","bc","TweenMax","app/modules/video/views/video-popup-view","app/modules/video/views/up-next-view","app/modules/video/views/video-chrome-extras-view","app/modules/video/views/video-popup-container-view","app/modules/player/views/player
1-topic-play-pause-view","app/utils/ga-mixins","app/modules/player/views/player-library-btn-view","rx","rx.time","app/modules/video/views/videojs-sizing"],function(e){var t=e("app/base-classes/base-view"),n=e("bc"),r=e("TweenMax"),i=e("app/modules/video/views/video-popup-view"),s=e("app/modules/video/views/up-next-view"),o=e("app/modules/video/views/video-chrome-extras-view"),u=e("app/modules/video/views/video-popup-container-view"),a=e("app/modules/player/views/player-topic-play-pause-view"),f=e("app/utils/ga-mixins"),l=e("app/modules/player/views/player-library-btn-view"),c=e("rx"),h=e("rx.time"),p=e("app/modules/video/views/videojs-sizing"),d=t.extend({tagName:"video",vidjs:null,initialize:function(){this.myId=Math.random(),this.debug=!1,this.init(),this.popupLaunched=!1,this.videoIsReady=!1,this.firstLaunched=!1,this.videoPausedOnMenu=!1;if(boeing_globals.gaSubject!==undefined){var e=function(e){return e.eventAction!==undefined?e.eventAction==="topic-sub-nav-click"||e.eventAction==="topic-nav-click":!1};this.click$=boeing_globals.gaSubject.filter(e).delay(300).subscribe(this.checkForTopicsPosterFrame.bind(this))}},onVideoPausedEvent:function(){this.trigger("MAIN_VIDEO_PAUSED_EVENT"),this.blur(!0)},checkIfNotOkayToPlay:function(){var e=boeing_globals.device==="mobile",t=boeing_globals.state.get("currentPage");return e===!0&&t!=="player"},start:function(e,t,r){var i=6214045328001;if(e===undefined)return;i=e,t!=undefined&&(this.Evt=t,boeing_globals.device!=="mobile"&&(this.upNextView=new s(this.Evt),this.libraryBtn=new l(this.Evt),this.chromeExtras=new o(this.Evt),this.listenTo(this.Evt,"CHROME_EXTRAS_PAUSE_EVENT",this.pause.bind(this)),this.listenTo(this.Evt,"TITLECARD_FADEOUT_EVENT",this.onTitleCardFadeout.bind(this)),this.listenTo(this.Evt,"ADD_MODAL_MENU_EVENT",this.onAddModalMe
1nuEvent.bind(this)),r!==undefined&&(this.popupsData=r)),this.Evt.listenTo(this,"VIDEO_ENDED_EVENT",this.Evt.onVideoEndedEvent),this.checkIfNotOkayToPlay()===!1&&this.addPlayPause()),this.$el.attr({preload:"auto",controls:"controls",poster:"poster",type:"video/mp4","data-account":"800000612001","data-embed":"default","data-player":"cENsmHkkB","data-video-id":i});var u={inline:!0,textTrackSettings:!0,controlBar:{volumeMenuButton:{inline:!1,vertical:!0},volumePanel:{inline:!1,vertical:!0},remainingTimeDisplay:!0,currentTimeDisplay:!1,durationDisplay:!0}};this.$el.attr({playsinline:"playsinline"}),u.autoplay="any",this.checkedForCaptionsBool=!1;try{this.vidjs!=null&&this.vidjs.dispose(),this.vidjs=n(this.el,u)}catch(a){console.error("Brightcove Error: ",a)}this.vidjs==null&&(this.vidjs=n(this.el,u));var c=function(e){var t=document.querySelector("video#player-video_html5_api");f.startMainVideoGAStream(),window.boeing_globals.device!=="mobile"?(this.pause(),window.setTimeout(this.pause.bind(this),1e3)):window.boeing_globals.device==="mobile"&&boeing_globals.state.get("currentPage")==="player"&&($(".vjs-control-bar").addClass("mobile"),this.play()),this.checkForCaptions()};boeing_globals.mainPlayerIsReady=!1,this.vidjs.on("ready",c.bind(this)),boeing_globals.mainPlayerIsReady=!0,boeing_globals.device!=="mobile"&&(this.playPauseView.pause(),this.listenTo(this.playPauseView,"SET_FULLSCREEN_EVENT",this.onSetFullScreenEvent.bind(this))),this.vidjs.on("loadedmetadata",this.onVideoReady.bind(this)),this.vidjs.on("play",this.onVideoStartedPlaying.bind(this)),this.vidjs.on("pause",this.onVideoPausedEvent.bind(this)),boeing_globals.device!=="mobile"&&($("#main-player").append(this.upNextView.el),$(".vjs-control-bar").append(this.libraryBtn.render()),$(".vjs-control-bar").prepend(this.chromeExtras.render())),this.checkState(),this.resetStage();var h=function(e){if(boeing_globals.state.get("currentPage")!=="player")return;if(e.keyCode===0||e.keyCode===32){e.preventDefault();var t=this.vidjs.paused()==0;if(t==1){this.videoPausedOnMenu=!0;var n=function(){this.vidjs.pause(),this.blur(!0)};this.tempTimeout=window.setTimeout(n.bind(this),500)}else if(t==0&&this.videoPausedOnMenu==1){var r=function(){this.vidjs!==null&&this.vidjs.src!==undefined&&(this.vidjs.play(),this.videoPausedOnMenu=!1,this.blur(!1)),this.playPauseView!==undefined&&this.playPauseView.play()};this.tempTimeout=window.setTimeout(r.bind(this),500)}}};$(window).keypress(h.bind(this))}
1,onAddModalMenuEvent:function(e){this.trigger("ADD_MODAL_MENU_EVENT",e)},onSetFullScreenEvent:function(e){this.trigger("SET_FULLSCREEN_EVENT",!0)},resetStage:function(){$(this.el).css("opacity","0")},addPlayPause:function(){this.playPauseView=new a,$("#main-player").append(this.playPauseView.render()),this.console.log("play pause is ",this.playPauseView),this.listenTo(this.playPauseView,"PLAYER_UI_EVENT",this.onPlayerBtnsUIEvent.bind(this))},onPlayerBtnsUIEvent:function(e){var t=e.type;t=="play"?boeing_globals.videoPlayed==0?($(this.el).css("opacity",0),this.trigger("LOAD_CARD_EVENT",!0)):this.play():t=="pause"&&this.pause(),this.console.log("PLAYER FROM BVTN ",e)},onTitleCardFadeout:function(){r.to($(this.el),1,{opacity:1,ease:Power1.easeInOut}),boeing_globals.videoPlayed==0&&this.vidjs.currentTime(0),this.play(),this.blur(!1)},addUpNext:function(){var e=$("<div class='up-next'></div>");e.html("<p>UP NEXT <span>THE CUSTOMER</span></p>"),$(".vjs-control-bar").append(e)},pause:function(){boeing_globals.videoPlayed===!1&&this.vidjs.currentTime(1),this.console.log("vidjs current time in PAUSE is ",this.vidjs.currentTime()),this.vidjs!==undefined&&(this.vidjs.pause(),this.blur(!0)),this.playPauseView.pause()},play:function(){boeing_globals.videoPlayed===!1&&this.vidjs.currentTime(0),this.vidjs!==undefined&&(this.vidjs.play(),this.blur(!1)),boeing_globals.videoPlayed=!0,this.playPauseView.play();var e=this;setTimeout(function(){var t=$("#"+e.id);t.removeClass("vjs-user-inactive").addClass("vjs-has-started").addClass("vjs-user-active");var n=t.find(".vjs-control-bar .vjs-button");!n.hasClass("vjs-paused")&&!n.hasClass("vjs-playing")&&$("#main-player #action-sheets").addClass("show")},1500)},onVideoStartedPlaying:function(e){f.sendEpisodeChapterEvent("clip-start"),this.trigger("VIDEO_PLAYING_EVENT",this.el.id)},getPctPlayed:function(){var e=this.vidjs.currentTime()/this.vidjs.duration();return e},tempMute:function(e){if(boeing_globals.videoPlayed===!1){var t=1;this.vidjs!==null&&this.vidjs!==undefined&&this.vidjs.src!==null&&(t!==0?this.vidjs.volume():1,this.vidjs.volume(0));var n=function(){this.vidjs.volume(t)};window.setTimeout(n.bind(this),e)}},addNewVideo:function(e){if(this.vidjs!==undefined){this.checkForCaptions(),this.Evt.trigger("REMOVE_POPUP_CONTAINER_EVENT",!0),this.pause(),this.resetStage(),this.tempMute(1e3);var t=function(){var t=this.vidjs;t.catalog.getVideo(e,function(e,n){t.catalog.load(n)})};this.updateSrcTimeout=window.setTimeout(t.bind(this),500),this.playPauseView.addNewTitle(),this.videoPausedOnMenu=!1}},onCheckForPopup:function(e){this.vidjs.currentTime()>=51&&this.popupLaunched==0&&this.popup==undefined?(this.popup=new i(leftPos),$(".vjs-progress-control").append(this.popup.render()),this.popup.start(),this.listenTo(this.popup,"PLAYER_POPUP_EVENT",this.onPlayerPopupEvent.bind(this)),this.vidjs.userActive(!0),this.vidjs.off("progress",this.onCheckForPopup.bind(this)),this.vidjs.off("ended",this.onVideoEndEvent.bind(this)),this.popupLaunched=!0):this.vidjs.currentTime()<51&&this.popupLaunched==1&&(this.popupLaunched=!1)},onVideoEndEvent:function(e){this.trigger("VIDEO_ENDED_EVENT",e),this.vidjs.off("ended",this.onVideoEndEvent.bind(this)),this.vidjs.exitFullscreen()},onPlayerPopupEvent:function(e){this.console.log("player popup event ",e);if(e.type=="removed")this.popup=undefined;else if(e.type=="clicked"){var t={type:"topics",topic_num:e.topic_num,currentTopic:e.topic_num};this.trigger("VIDEO_PLAYER_EVENT",t)}},getId:function(){return this.$el.id},onToggleVideo:function(e){var t=e.get("loadMenu"),n=this.vidjs.paused()===!1,r=_.has(boeing_globals.state.changed,"currentTopic")===!1;if(t===!0&&n===!0){this.videoPausedOnMenu=!0;var i=function(){this.vidjs.pause(),this.blur(!0)};this.tempTimeout=window.setTimeout(i.bind(this),500)}else if(t==0&&n==0&&this.videoPausedOnMenu==1&&r===!0){var s=function(){this.vidjs!==null&&this.vidjs.src!==undefined&&this.vidjs.src!==null&&(this.vidjs.play(),this.videoPausedOnMenu=!1,this.blur(!1)),this.playPauseView!==undefined&&this.playPauseView.play()};this.tempTimeout=window.setTimeout(s.bind(this),500)}},onPauseAndGoHome:function(){boeing_globals.state.set("currentPage","home")},checkForTopicsPosterFrame:function(e){var t=window.boeing_globals.state.toJSON(),n=t.currentEpisode+1,r=t.currentPage==="topics",i=this.vidjs!==undefined&&this.vidjs.posterImage!==undefined,s=window.boeing_globals.videoPlayed===!1,o=window.boeing_globals.device==="desktop",u=$("#topics-stage article:nth-child(2)").hasClass("topic-type-nexttopic")===!1,a=_.contains([i,o,r,s,u],!1)===!1,f=_.contains([i,o,!s],!1)===!1;_.has(boeing_globals.state.changed,"currentTopic")===!0&&(a=!0,f=!1,this.playPauseView!==undefined&&this.playPauseView.updatePosterText());if(a===!0){var l="/assets/images/boeing-thumb-"+n+".jpg";this.vidjs.posterImage.setSrc(l),this.playPauseView!==undefined&&this.playPauseView.updateTopicsInfo()}else f===!0&&this.vidjs.posterImage.setSrc("")},checkForCaptions:function(){if(this.checkedForCaptionsBool!==undefined&&this.checkedForCaptionsBool===!0)return;var e=function(){this.checkedForCaptionsBool=!1};this.checkedForCaptionsBool=!0,window.setTimeout(e.bind(this),2e3);
1var t=function(){var e=boeing_globals.cdnPath+boeing_globals.languagesPath+"captions/",t="bng-caption-",n=".vtt",r=boeing_globals.isoLangCode,i=boeing_globals.state.get("currentEpisode")+1,s=boeing_globals.state.get("currentChapter")+1,o="ep"+i+"-",u="ch"+s+"-",a=e+t+o+u+r+n,f={kind:"captions",src:a,srclang:r,label:"CAPTIONS ON","default":"default"};this.console.log("TRACK OBJ ",f),this.vidjs.addRemoteTextTrack(f,!1)},n=$("#player-video > div.vjs-control-bar > div.vjs-captions-button"),r=boeing_globals.allowCaptionsForLang,i=boeing_globals.selectedLanguage!=="en"&&boeing_globals.state.get("currentEpisode")>=5;this.console.log("CAPTION STATUS: ",i,r,n,this.vidjs),r===!0&&i===!1?(n.removeClass("disabled"),window.setTimeout(t.bind(this),2e3)):n.addClass("disabled")},onVideoReady:function(e){this.videoIsReady=!0,this.Evt!==undefined&&(this.listenTo(boeing_globals.state,"change:loadMenu",this.onToggleVideo.bind(this)),$("#player-video_html5_api").length>=1&&$("#player-video_html5_api")[0].addEventListener("progress",this.Evt.onVideoPlayHeadEvent.bind(this.Evt),!1),this.firstLaunched===!1&&(this.vidjs.on("ended",this.onVideoEndEvent.bind(this)),boeing_globals.device==="mobile"&&$("video#player-video_html5_api").on("webkitendfullscreen",this.onPauseAndGoHome.bind(this))),this.firstLaunched=!0,this.popupsData!==undefined&&boeing_globals.device!=="mobile"&&(this.popupsContainer!==undefined&&this.popupsContainer.removeFromStage(),this.popupsContainer=new u({tagName:"ul",className:"player-popups-container"},this.Evt,this.popupsData,this.vidjs.duration()),$(".vjs-progress-control").append(this.popupsContainer.el),this.popupsContainer.start(),this.listenTo(this.popupsContainer,"PLAYER_POPUP_EVENT",this.onPlayerPopupEvent.bind(this)))),this.videoResizingView==undefined&&(this.videoResizingView=new p(this.vidjs)),window.vidjs=this.vidjs},showControls:function(){this.console.log("here is player active ")},checkState:function(){var e=boeing_globals.state.get("loadLibrary"),t=boeing_globals.state.get("currentPage")=="topics",n="player";e==1?n="library":t==1&&(n="topics"),this.console.log("CHECKING STATE ",this.currentState,e,e==1,n),this.currentState!=n&&this.setState(n)},setState:function(e){var t=e;this.console.log("CHECKING STATE IN SET STATE ",e),this.videoIsReady==1&&(t=="player"?this.setStatePlayer():t=="library"?this.setStateLibrary():t=="topics"&&this.setStateTopics()),this.currentState=t},setStatePlayer:function(){this.videoResizingView.startResizing(),this.console.log("STATE IN PLAYER ",this.videoResizingView,this.vidjs)},setStateLibrary:function(){this.videoResizingView.stopResizing(448,252),this.removePopup(),this.console.log("STATE IN LIBRARY ",this.videoResizingView,this.vidjs),boeing_globals.device=="mobile"&&this.pause()},setStateTopics:function(){this.videoResizingView.resizeOnce(192,144),this.removePopup();var e=this.vidjs.paused();this.playPauseView.checkIfPaused(e),this.console.log("STATE IN TOPICS ",this.videoResizingView,this.vidjs),boeing_globals.device=="mobile"&&vidjs.el()!=undefined&&this.pause()},blur:function(e){if(boeing_globals.state.get("currentPage")==="topics"){this.$el.removeClass("blur");return}e?this.$el.addClass("blur"):this.$el.removeClass("blur")},resize:function(){this.$el.addClass("library-mode"),$("#player-video").removeClass("player-1"),this.vidjs.width(448).height(252)},removePopup:function(){this.popup!=undefined&&this.popup.removeFromStage()},removeFromStage:function(){r.to($(this.el),.5,{opacity:0,ease:Power2.easeInOut,onComplete:this.cleanUp.bind(this)}),this.removePopup(),this.videoResizingView!=undefined&&(this.videoResizingView.removeFromStage(),this.videoResizingView=undefined,this.vidjs!==undefined&&(this.vidjs.pause(),this.vidjs.dispose())),this.chromeExtras!==undefined&&this.chromeExtras.removeFromStage(),this.click$!==undefined&&this.click$.dispose(),this.upNextView!=undefined&&this.upNextView.removeFromStage(),this.playPauseView!=undefined&&this.playPauseView.removeFromStage(),this.tempTimeout!=undefined&&window.clearTimeout(this.tempTimeout),this.updateSrcTimeout!=undefined&&window.clearTimeout(this.updateSrcTimeout)},cleanUp:function(){this.undelegateEvents(),this.remove()}});return d}),define("app/modules/player/views/view",["require","underscore","jquery","app/base-classes/base-view","text!app/modules/player/views/templates/tmpl-action-sheets.html","mustache","a
1pp/modules/player/views/player-icon-fs-view","app/modules/player/views/player-videotray-view","app/modules/player/views/player-videocard-view","app/modules/video/video-view","TweenMax"],function(e){var t=e("underscore"),n=e("jquery"),r=e("app/base-classes/base-view"),i=e("text!app/modules/player/views/templates/tmpl-action-sheets.html"),s=e("mustache"),o=e("app/modules/player/views/player-icon-fs-view"),u=e("app/modules/player/views/player-videotray-view"),a=e("app/modules/player/views/player-videocard-view"),f=e("app/modules/video/video-view"),l=e("TweenMax"),c=r.extend({id:"main-player",className:"player-mode",tagName:"div",initialize:function(e){this.debug=!1,this.Evt=e,this.init(),this.console.log("initialize"),this.Evt.listenTo(this,"MAIN_VIDEO_PAUSED_EVENT",this.Evt.onVideoPausedEvent)},onVideoPausedEvent:function(e){this.allowPause===!0&&this.trigger("MAIN_VIDEO_PAUSED_EVENT"),this.console.log("onVideoPausedEvent ",e);if(n("#player-modal-menu").length>0||boeing_globals.state.get("loadLibrary")===!0||boeing_globals.state.get("loadMenu")===!0||boeing_globals.state.get("currentPage")==="topics")return;boeing_globals.device!=="mobile"&&this.showActionSheets(!0)},onVideoPlayerEvent:function(e){console.log("type : ",e.type);if(e.type=="topics"){var t={currentPage:"topics",currentTopic:e.currentTopic};this.setTopicsMode(),this.trigger("POPUP_EVENT",t)}},updateWithGlobalEvent:function(e){var t=e.exception,n=this.videoView.el.id;t!=n&&this.videoView.pause()},start:function(){var e=this.getVideoJson(),t=this.getPopupSetup();this.videoView==undefined&&(this.videoView=new f(e),this.listenTo(this.videoView,"VIDEO_PLAYING_EVENT",this.onMediaStartedEvent.bind(this)),this.listenTo(this.videoView,"LOAD_CARD_EVENT",this.loadCardAfterDeepLinked.bind(this))),this.listenTo(this.videoView,"MAIN_VIDEO_PAUSED_EVENT",this.onVideoPausedEvent.bind(this)),this.listenTo(this.videoView,"VIDEO_PLAYER_EVENT",this.onVideoPlayerEvent.bind(this)),n(this.el).append(this.videoView.el),this.backgroundView=new r({className:"player-background"}),n(this.el).append(this.backgroundView.el);var i=this.getVideoID();this.videoView.start(i,this.Evt,t),this.listenTo(this.Evt,"LIBRARY_EVENT",this.onLibraryEvent.bind(this)),this.listenTo(this.Evt,"LOCAL_STATE_EVENT",this.onLocalStateEvent.bind(this)),this.listenTo(this.Evt,"CHAPTER_UPDATED_EVENT",this.onChapterUpdated.bind(this)),this.listenTo(this.Evt,"MODAL_MENU_HIDE_EVENT",this.onHideModalMenu.bind(this)),this.fullscreenIconView=new o,n(this.el).append(this.fullscreenIconView.el),this.fullscreenIconView.start(),this.listenTo(this.videoView,"SET_FULLSCREEN_EVENT",this.onFSClicked.bind(this)),this.listenTo(this.fullscreenIconView,"CLICKED",this.onFSClicked.bind(this)),this.addTray(),this.console.log("NEW VIDEO ADDED ",this.episodeNum,this.chapterNum),this.addVideoCard(),this.checkState(),this.setActionSheets()},onHideModalMenu:function(e){this.videoView.play()},loadCardAfterDeepLinked:function(){window.setTimeout(this.addVideoCard.bind(this),1e3)},setActionSheets:function(){var e=s.to_html(i);n(this.el).append(e),this.actionSheets=this.$el.find("#action-sheets")},showActionSheets:function(e){boeing_globals.device==="mobile"&&(e=!1),e?this.actionSheets.addClass("show"):this.actionSheets.removeClass("show")},addVideoCard:function(){var e=boeing_globals.state.get("currentPage")=="player";if(e==1&&boeing_globals.device=="desktop"){var t={episode:this.episodeNum,chapter:this.chapterNum},r=new a(this.Evt,t);n("#main-player").append(r.render())}else this.Evt.onCardFadeout(null)},onTrayEvent:function(e){var t=e.type,n=this.videoView!==undefined&&boeing_globals.videoPlayed===!0;n&&(t==="play"?this.videoView.play():t==="pause"&&this.videoView.pause()),console.log("VIDEO TRAY EVENT ",e,n)},addTray:function(){this.videoTray=new u,this.listenTo(this.videoTray,"WINDOW_SHADE_EVENT",this.onTrayEvent.bind(this)),n(this.el).append(this.videoTray.render())},getUrl:function(){var e=boeing_globals.state.get("currentEpisode"),t=boeing_globals.state.get("currentChapter"),n="https://bcsecure04-a.akamaihd.net/19/800000612001/202012/3835/800000612001_6214046824001_6214045328001.mp4?pubId=800000612001&videoId=6214045328001";return boeing_globals.episodesCollection!=undefined&&boeing_globals.episodesCollection.at(e).toJSON().chapters[t].chapter_url!=undefined&&(n=boeing_globals.episodesCollection.at(e).toJSON().chapters[t].chapter_url),this.episodeNum=e,this.chapterNum=t,n},getVideoID:function(){var e=boeing_globals.state.get("currentEpisode"),t=boeing_globals.state.get("currentChapter"),n=6214045328001;return boeing_globals.episodesCollection!=undefined&&boeing_globals.episodesCollection.at(e).toJSON().chapters[t].chapter_url!=undefined&&(n=boeing_globals.episodesCollection.at(e).toJSON().chapters[t].chapter_videoNumber),this.episodeNum=e,this.chapterNum=t,n},getVideoJson:function(){var e={id:"player-video",className:"video-js"};return e},resetAllowPause:function(){var e=function(){this.allowPause=!0};window.setTimeout(e.bind(this),1e3)},onChapterUpdated:function(e){var n=boeing_globals.device==="mobile",r=boeing_globals.state.get("currentPage"),i=["player","topics"],s=n===!0&&r!=="player",o=n===!0&&t.contains(r,i)===!1;console.log("allow video to auto update ",o,s);if(s===!1){this.allowPause=!1,this.resetAllowPause();var u=e.num,a=this.getVideoID();this.videoView!==undefined&&this.videoView.addNewVideo(a),this.chapterNum=u,this.episodeNum=e.episode_num,this.showActionSheets(!1),this.addVideoCard(),this.checkState()}},getPopupsByEpisodeNum:function(e){var n=e,r=[],i=function(e,t){e.attributes.chapter_popups!=0&&e.attributes.topic_episode_number==n&&r.push(e.attributes.chapter_popups)};return boeing_globals.topicsCollection.each(i),t.flatten(r)},getPopupSetup:function(){var e=Math.ceil(boeing_globals.state.get("currentEpisode")),n=this.getPopupsByEpisodeNum(e),r=function(e,t){e.num=t*1+1};return t.each(n,r),this.console.log("POPUPS DATA IS ",n," and the episode num is ",e,boeing_globals.state.get("currentEpisode")),n},onMediaStartedEvent:function(e){this.showActionSheets(!1),this.videoView.blur(!1);var t={media_event:"pause_all",exception:e};this.trigger("PAUSEALL_MEDIA_EVENT",t)},checkState:function(){var e=boeing_globals.state.get("loadLibrary"),t=boeing_globals.state.get("currentPage")=="topics",r=n("#main-player"),i="player";e==1?i="library":t==1&&(i="topics"),i=="player"?this.onFSClicked(null):i=="library"?(r.removeClass("player-mode"),r.removeClass("topics-mode"),r.addClass("library-mode")):i=="topics"&&(r.removeClass("player-mode"),r.removeClass("topics-mode"),r.addClass("topics-mode"))},onFSClicked:function(e){this.console.log("fullscreen is clicked ");var t=n("#main-player");t.removeClass("topics-mode"),t.removeClass("library-mode"),t.addClass("player-mode");var r={currentPage:"player",loadLibrary:"false"};this.videoView.setState("player"),this.trigger("FULLSCREEN_EVENT",r)},events:{"click .play-pause":"togglePlayPause","click #resume-btn":"onResumePlay","click #modal-btn":"onAddModalMe
1nuEvent"},onAddModalMenuEvent:function(e){this.showActionSheets(!1),this.Evt.onAddModalMenuEvent(e)},onResumePlay:function(e){this.videoView.play(),this.showActionSheets(!1)},onLibraryEvent:function(e){this.console.log("library event on player view is ",e);var t="library";e.loadLibrary==1?(n(this.el).addClass("library-mode"),n(this.el).removeClass("player-mode")):(n(this.el).removeClass("library-mode"),n(this.el).addClass("player-mode"),t="player"),this.videoView.setState(t)},onLocalStateEvent:function(e){this.console.log("local player event ",e),e.localState=="topics"&&this.setTopicsMode()},setTopicsMode:function(){n(this.el).addClass("topics-mode"),n(this.el).removeClass("library-mode"),n(this.el).removeClass("player-mode"),this.videoView.setState("topics")},removeFromStage:function(){l.to(n(this.el),.25,{opacity:0,ease:Power2.easeInOut,onComplete:this.cleanUp.bind(this)})},cleanUp:function(){this.undelegateEvents(),this.videoView!=undefined&&this.videoView.removeFromStage(),this.fullscreenIconView!=undefined&&this.fullscreenIconView.removeFromStage(),n(this.el).removeClass("reveal"),n(this.el).html(""),this.remove()}});return c}),define("app/modules/player/views/player-boomerang-close-btn-view",["require","underscore","jquery","backbone","app/base-classes/base-view","text!app/modules/player/views/templates/tmpl-videotray.html","mustache","TweenMax"],function(e){var t=e("underscore"),n=e("jquery"),r=e("backbone"),i=e("app/base-classes/base-view"),s=e("text!app/modules/player/views/templates/tmpl-videotray.html"),o=e("mustache"),u=e("TweenMax"),a=i.extend({id:"boomerang-close-btn",tagName:"div",initialize:function(){this.debug=!1,this.init()},events:{},start:function(){},onClick:function(e){this.trigger("BOOMERANG_CLOSE_EVENT"),this.removeFromStage()},removeFromStage:function(){this.cleanUp()},cleanUp:function(){this.undelegateEvents(),n(this.el).remove(),this.remove()},afterRender:function(){n(this.el).on("click",this.onClick.bind(this))},render:function(){return this.afterRender(),this.el}});return a}),define("text!app/modules/player/views/modal-menu/templates/tmpl-modal-menu.html",[],function(){return'<div id="back-btn">\n    <p>\n    	<svg xmlns="//www.w3.org/2000/svg" xmlns:xlink="//www.w3.org/1999/xlink" width="18px" height="11px" preserveAspectRatio="xMidYMid">\n			<path fill-rule="evenodd"  fill="rgb(255, 255, 255)" d="M17.987,2.041 L11.033,8.951 L11.065,8.983 L9.038,11.008 L9.000,10.970 L8.962,11.008 L6.935,8.983 L6.967,8.951 L0.013,2.041 L2.040,0.015 L9.000,6.931 L15.960,0.015 L17.987,2.041 Z"/>\n		</svg>\n    </p>\n</div>\n\n<div id="episodes-wrapper">\n</div>\n<div id="chapters-wrapper">\n</div>'}),define("app/modules/player/models/episode",["require","underscore","jquery","backbone"],function(e){var t=e("underscore"),n=e("jquery"),r=e("backbone"),i=r.Model.extend({defaults:{title:"EPISODE 1",label:"1"},parse:function(e){},initialize:function(){}});return i}),define("app/modules/player/collections/episodes",["require","underscore","jquery","app/app-events","backbone","app/modules/player/models/episode"],function(e){var t=e("underscore"),n=e("jquery"),r=e("app/app-events"),i=e("backbone"),s=e("app/modules/player/models/episode"),o=i.Collection.extend({success:function(e){console.log("success in collection ",e)},initialize:function(){},model:s});return o}),define("app/modules/player/views/modal-menu/episode-view",["require","underscore","jquery","backbone","app/base-classes/base-view","app/modules/player/models/episode","TweenMax"],function(e){var t=e("underscore"),n=e("jquery"),r=e("backbone"),i=e("app/base-classes/base-view"),s=e("app/modules/player/models/episode"),o=e("TweenMax"),u=i.extend({tagName:"li",initialize:function(){this.render()},render:function(){return this.$el.html(this.model.get("label")),this}});return u}),define("app/modules/player/views/modal-menu/episode-list-view",["require","underscore","jquery","backbone","app/base-classes/base-view","app/modules/player/views/modal-menu/episode-view","TweenMax"],function(e){var t=e("underscore"),n=e("jquery"),r=e("backbone"),i=e("app/base-classes/base-view"),s=e("app/modules/player/views/modal-menu/episode-view"),o=e("TweenMax"),u=i.extend({id:"episodes-list",tagName:"ul",initialize:function(e){this.init(),this.render()}
1,events:{"click li":"clickHandler"},clickHandler:function(e){e.preventDefault();var t=e.target,r={episodeTitle:this.collection.at(n(t).index()).toJSON().title,episodeIndex:n(t).index()};this.trigger("episode:didChange",r)},select:function(e){this.$el.find("li").each(function(){n(this).index()===e?n(this).addClass("active"):n(this).removeClass("active")})},getItemWidth:function(){return n(this.el).find("li").first().outerWidth()},getTotalItems:function(){return this.collection.length},render:function(){var e=this;return this.collection.each(function(t){e.$el.append((new s({model:t})).render().el)}),this}});return u}),define("app/modules/player/views/modal-menu/episode-title-view",["require","underscore","jquery","backbone","app/base-classes/base-view","TweenMax"],function(e){var t=e("underscore"),n=e("jquery"),r=e("backbone"),i=e("app/base-classes/base-view"),s=e("TweenMax"),o=i.extend({tagName:"h2",initialize:function(){this.render(),this.listenTo(this.model,"change",this.render)},render:function(){return this.$el.html(this.model.get("title")),this}});return o}),define("text!app/modules/player/views/modal-menu/templates/tmpl-scrubber.html",[],function(){return'<div id="bar"></div>\n<div id="scrub"></div>'}),define("app/modules/player/views/modal-menu/scrubber",["require","underscore","jquery","backbone","mustache","text!app/modules/player/views/modal-menu/templates/tmpl-scrubber.html","app/base-classes/base-view","TweenMax"],function(e){var t=e("underscore"),n=e("jquery"),r=e("backbone"),i=e("mustache"),s=e("text!app/modules/player/views/modal-menu/templates/tmpl-scrubber.html"),o=e("app/base-classes/base-view"),u=e("TweenMax"),a=o.extend({id:"scrubber",tagName:"div",initialize:function(e){this.data=e,this.render()},afterRender:function(){this.scrub=this.$el.find("#scrub"),this.bar=this.$el.find("#bar"),u.to(this.bar,.4,{css:{left:0,width:"100%"},delay:1,force3D:!0}),u.to(this.scrub,.4,{css:{width:this.data.scrubWidth+"px"},delay:1.2,force3D:!0})},update:function(e){u.to(this.scrub,.5,{css:{left:e+"%"},force3D:!0})},render:function(){var e=i.to_html(s);return n(this.el).html(e),this.afterRender(),this}});return a}),define("app/modules/player/models/chapter",["require","underscore","jquery","backbone"],function(e){var t=e("underscore"),n=e("jquery"),r=e("backbone"),i=r.Model.extend({defaults:{title:"The Startup",label:"1",thumbnail:"",episode:"",url:"url",duration:"4:43"},parse:function(e){},initialize:function(){}});return i}),define("app/modules/player/collections/chapters",["require","underscore","jquery","app/app-events","backbone","app/modules/player/models/chapter"],function(e){var t=e("underscore"),n=e("jquery"),r=e("app/app-events"),i=e("backbone"),s=e("app/modules/player/models/chapter"),o=i.Collection.extend({success:function(e){console.log("success in collection ",e)},initialize:function(){},model:s});return o}),define("text!app/modules/player/views/modal-menu/templates/tmpl-chapter.html",[],function(){return'\n\n<div class="info">\n    <div class="left">\n        <h3>{{chapter}}</h3>\n        <h4>{{title}}</h4>\n    </div>\n    <div class="right">\n        <p>{{duration}}</p>\n    </div>\n\n</div>\n<div class="thumbnail">\n    <img src="{{thumbnail}}" alt="">\n</div>\n'}),define("app/modules/player/views/modal-menu/chapter-view",["require","underscore","jquery","text!app/modules/player/views/modal-menu/templates/tmpl-chapter.html","backbone","app/base-classes/base-view","mustache","app/modules/player/models/episode","TweenMax"],function(e){var t=e("underscore"),n=e("jquery"),r=e("text!app/modules/player/views/modal-menu/templates/tmpl-chapter.html"),i=e("backbone"),s=e("app/base-classes/base-view"),o=e("mustache"),u=e("app/modules/player/models/episode"),a=e("TweenMax"),f=s.extend({tagName:"li",initialize:function(){this.render()},events:{"mouseenter .thumbnail img":"mouseOverHandler","mouseleave .thumbnail img":"mouseOutHandler"},mouseOutHandler:function(e){n(e.target).removeClass("hover")},mouseOverHandler:function(e){n(e.target).addClass("hover")},render:function(){var e=o.to_html(r,{chapter:this.model.get("label"),title:this.model.get("title"),thumbnail:this.model.get("thumbnail"),duration:this.model.get("duration")});return n(this.el).empty().html(e),a.set(this.$el,{css:{x:100,opacity:0}
1}),this}});return f}),define("app/modules/player/views/modal-menu/chapter-list-view",["require","underscore","jquery","backbone","app/base-classes/base-view","app/modules/player/views/modal-menu/chapter-view","TweenMax","Draggable"],function(e){var t=e("underscore"),n=e("jquery"),r=e("backbone"),i=e("app/base-classes/base-view"),s=e("app/modules/player/views/modal-menu/chapter-view"),o=e("TweenMax"),u=e("Draggable"),a=i.extend({id:"chapters-list",tagName:"ul",initialize:function(e){this.options=e,this.init(),this.render(),this.draggable(),this.listenTo(this.collection,"reset",this.render)},events:{"click li":"changeChapter"},changeChapter:function(e){var t=n(e.currentTarget),r={currentChapter:t.index()};this.trigger("chapter:didChange",r)},draggable:function(){var e={xMin:0,xMax:this.$el.outerWidth()+n(window).width(),yMin:0,yMax:this.$el.height()};u.create(n(this.el),{type:"x",cursor:"auto",bounds:{top:0,left:0,width:e.xMax,height:e.yMax},dragResistance:.2,edgeResistance:.1,lockAxis:!0,ease:Back.easeInOut,force3D:!0})[0]},select:function(e){this.$el.find("li").each(function(){n(this).index()===e?n(this).find(".thumbnail").addClass("active"):n(this).find(".thumbnail").removeClass("active")})},setPosition:function(e){var t=this;setTimeout(function(){var r=n(window).width(),i=t.$el.find("li").eq(t.options.index),s=t.$el.find("li").filter(function(){return n(this).position().left+n(this).width()<r}).length;e>=s?o.set(t.$el,{css:{x:-t.$el.width()+r<-(i.offset().left-i.outerWidth()/2)?-(i.offset().left-i.outerWidth()/2):-t.$el.width()+r-150}}):o.set(t.$el,{css:{x:0}});var a=u.get(t.$el);a.update()},100)},getBoundingBox:function(e){var t=e.offset(),r=e.outerWidth(),i=e.outerHeight(),s={xMin:t.left,xMax:t.left+r,yMin:t.top,yMax:t.top+i},o=this;return e.css("overflow")!=="hidden"&&e.children().each(function(){var e=n(this),t=o.getBoundingBox(e);s={xMin:Math.min(s.xMin,t.xMin),xMax:Math.max(s.xMax,t.xMax),yMin:Math.min(s.yMin,t.yMin),yMax:Math.max(s.yMax,t.yMax)}}),s},transitionIn:function(e){var t=typeof e=="undefined"?0:e,n=this.$el.find("li");o.staggerTo(n,.3,{css:{x:0,opacity:1},autoKill:!0,force3D:!0,ease:Quad.easeInOut,delay:t},.1)},render:function(){var e=this;this.$el.empty(),this.collection.each(function(t){e.$el.append((new s({model:t})).render().el)});if(this.collection.models[this.options.index]){var t=this.collection.models[this.options.index].toJSON().episode,n=boeing_globals.state.get("currentEpisode");n===t&&(this.select(this.options.index),console.log("option index ",this.options.index),this.setPosition(this.options.index))}return this}});return a}),define("app/modules/player/views/modal-menu/player-modal-menu-view",["require","underscore","jquery","text!app/modules/player/views/modal-menu/templates/tmpl-modal-menu.html","app/base-classes/base-view","mustache","TweenMax","app/modules/player/collections/episodes","app/modules/player/models/episode","app/modules/player/views/modal-menu/episode-list-view","app/modules/player/views/modal-menu/episode-title-view","app/modules/player/views/modal-menu/scrubber","app/modules/player/collections/chapters","app/modules/player/models/chapter","app/modules/player/views/modal-menu/chapter-list-view"],function(e){var t=e("underscore"),n=e("jquery"),r=e("text!app/modules/player/views/modal-menu/templates/tmpl-modal-menu.html"),i=e("app/base-classes/base-view"),s=e("mustache"),o=e("TweenMax"),u=e("app/modules/player/collections/episodes"),a=e("app/modules/player/models/episode"),f=e("app/modules/player/views/modal-menu/episode-list-view"),l=e("app/modules/player/views/modal-menu/episode-title-view"),c=e("app/modules/player/views/modal-menu/scrubber"),h=e("app/modules/player/collections/chapters"),p=e("app/modules/player/models/chapter"),d=e("app/modules/player/views/modal-menu/chapter-list-view"),v=i.extend({id:"player-modal-menu",tagName:"div",initialize:function(e){this.debug=!1,this.Evt=e,this.init(),this.data={currentEpisode:0,currentChapter:0,loadLibrary:!1},this.listenTo(this.Evt,"LOCAL_STATE_EVENT",this.onLocalStateEvent.bind(this)),this.Evt.listenTo(this,"MODAL_MENU_HIDE_EVENT",this.Evt.onHideModalMenuEvent)},events:{"click #back-btn":"backToVideoHandler"},onLocalStateEvent:function(e){e.localState==="topics"&&this.backToVideoHandler()}
1,setViews:function(){this.setTitleView(),this.setEpisodesListView(boeing_globals.state.get("currentEpisode")),this.setChaptersListView(boeing_globals.state.get("currentEpisode"),boeing_globals.state.get("currentChapter")),this.data.currentEpisode=boeing_globals.state.get("currentEpisode"),this.data.currentChapter=boeing_globals.state.get("currentChapter"),this.transitionIn()},render:function(){var e=s.to_html(r);return n(this.el).html(e),this.setViews(),this.el},backToVideoHandler:function(e){this.transitionOut()},episodeDidChange:function(e){this.chaptersListView.collection.reset(this.getChaptersAt(e.episodeIndex)),console.log("episode change ",e.episodeIndex),console.log("episode change ",boeing_globals.state.get("currentEpisode")),e.episodeIndex===boeing_globals.state.get("currentEpisode")?console.log("chapter ",boeing_globals.state.get("currentChapter")):this.chaptersListView.setPosition(0),this.chaptersListView.transitionIn(),this.titleView.model.set({title:e.episodeTitle,label:e.episodeIndex.toString()}),this.data.currentEpisode=e.episodeIndex;var t=this.episodeListView.getTotalItems(),n=this.data.currentEpisode/t*100;this.scrubber.update(n);var r=this.titleView.model.get("title"),i=r.replace(/[^A-Z\d\s]/gi,"").replace(/\s/g,"-").toLowerCase();i=String(e.episodeIndex*1+1)+"-"+i,this.gaMixins.sendClickEvent("browse-nav-episode-click",i)},chapterDidChange:function(e){this.data.currentChapter=e.currentChapter,this.transitionOut()},transitionIn:function(){var e=this.$el.find("#episodes-list"),t=this.$el.find("h2");o.set(e,{css:{y:30,opacity:0}}),o.set(t,{css:{y:30,opacity:0}}),o.set(this.$el,{css:{y:n(window).height()}}),o.to(this.$el,.5,{css:{y:0},force3D:!0,ease:Quad.easeInOut}),o.to(e,.5,{css:{y:0,opacity:1},force3D:!0,ease:Sine.easeOut,delay:.5}),o.to(t,.5,{css:{y:0,opacity:1},force3D:!0,ease:Sine.easeOut,delay:.7}),this.chaptersListView.transitionIn(1.4)},transitionOut:function(){var e=function(){this.$el.parent().css("pointer-events","none");var e={currentChapter:this.data.currentChapter,currentEpisode:this.data.currentEpisode},t=this.gaMixins.getEventLabel(e.currentEpisode+1,e.currentChapter+1);this.gaMixins.sendClickEvent("browse-nav-click",t),this.trigger("MODAL_MENU_HIDE_EVENT",e),this.remove()};o.to(this.$el,1,{css:{y:n(window).height()},force3D:!0,ease:Expo.easeInOut,onComplete:e.bind(this)})},getEpisodes:function(){var e=[],n=boeing_globals.episodesCollection.toJSON();return t.each(n,function(t){var n=new a({title:t.episode_title,label:t.episode_label});e.push(n)}),e},getChaptersAt:function(e){var n=[],r=boeing_globals.episodesCollection.models[e].toJSON(),i=boeing_globals.uiTextModel.get("chapter")+" ";return t.each(r.chapters,function(t){var r=new p({title:t.chapter_title,label:i+t.num,episode:e,thumbnail:t.chapter_thumbnail,url:"url",duration:t.chapter_duration});n.push(r)}),n},setEpisodesListView:function(e){if(this.episodeListView==undefined){var t=new u;t.reset(this.getEpisodes());var r=typeof e=="undefined"?0:e;this.episodeListView=new f({collection:t,index:r}),this.episodeListView.on("episode:didChange",this.episodeDidChange.bind(this)),n(this.el).find("#episodes-wrapper").prepend(this.episodeListView.el);var i=boeing_globals.uiTextModel.get("episode");n(this.el).prepend("<h2>"+i+"</h2>");var s=this;setTimeout(function(){s.setScrubber({scrubWidth:s.episodeListView.getItemWidth()});var e=s.episodeListView.getTotalItems(),t=s.data.currentEpisode/e*100;s.scrubber.update(t)},50)}},setChaptersListView:function(e,t){if(this.chaptersListView==undefined){var t=typeof t=="undefined"?0:t,e=typeof e=="undefined"?0:e,n=new h;n.reset(this.getChaptersAt(e)),this.chaptersListView=new d({collection:n,index:t}),this.chaptersListView.on("chapter:didChange",this.chapterDidChange.bind(this)),this.$el.find("#chapters-wrapper").empty().append(this.chaptersListView.el)}},setTitleView:function(){if(typeof this.titleView=="undefined"){var e=boeing_globals.state.get("currentEpisode")>0?boeing_globals.state.get("currentEpisode"):0,t=boeing_globals.episodesCollection.models[e].toJSON(),r=new a({title:t.episode_title,label:t.episode_label});this.titleView=new l({model:r}),n(this.titleView.el).insertBefore(n(this.el).find("#chapters-wrapper"))}boeing_globals.episodesCollection.get},setScrubber:function(e){this.scrubber===undefined&&(this.scrubber=new c(e),n(this.el).find("#episodes-wrapper").append(this.scrubber.el))}});return v}),define("app/modules/player/player-controller",["require","app/modules/player/events","app/base-classes/view-controller","app/modules/player/views/view","app/modules/player/views/player
1-boomerang-close-btn-view","app/modules/player/views/modal-menu/player-modal-menu-view","app/utils/helper-mixins"],function(e){var t=e("app/modules/player/events"),n=e("app/base-classes/view-controller"),r=e("app/modules/player/views/view"),i=e("app/modules/player/views/player-boomerang-close-btn-view"),s=e("app/modules/player/views/modal-menu/player-modal-menu-view"),o=e("app/utils/helper-mixins"),u=n.extend({id:"bng-player",tagName:"section",initialize:function(){this.debug=!1,this.pageId="player",this.showOnMenuLoad=!0,this.episodeNum=undefined,this.init(),this.listenTo(t,"STATE_EVENT",this.onStateEvent.bind(this)),this.listenTo(t,"VIDEO_ENDED_EVENT",this.onVideoEndedEvent.bind(this)),this.listenTo(t,"MEDIA_EVENT",this.onMediaEvent.bind(this)),this.listenTo(t,"WATCHED_VIDEO_EVENT",this.onVideoWatched.bind(this)),this.listenTo(t,"UPNEXT_CLICK_EVENT",this.onStateEvent.bind(this)),t.listenTo(this,"LOCAL_STATE_EVENT",t.onLocalStateEvent),t.listenTo(this,"CHAPTER_UPDATED_EVENT",t.onChapterUpdatedEvent),boeing_globals.device!=="mobile"&&(this.listenTo(t,"ADD_MODAL_MENU_EVENT",this.addModalMenu.bind(this)),t.listenTo(t,"MODAL_MENU_HIDE_EVENT",this.hideModalMenu.bind(this))),t.listenTo(this.view,"PLAYER_EVENT",this.onplayerEvent.bind(this)),boeing_globals.device==="desktop"},updateStateFromDataLoad:function(e){(boeing_globals.state.get("currentPage")=="player"||boeing_globals.state.get("currentPage")=="topics")&&this.loadViews()},onMediaEvent:function(e){},onGlobalMediaEvent:function(e){this.view!=undefined&&this.view.updateWithGlobalEvent(e)},onVideoEndedEvent:function(e){this.view.showActionSheets(!1);var t={type:"VIDEO_ENDED_EVENT"};this.trigger("PLAYERCONTROLLER_EVENT",t)},onStateChanged:function(e){var t=this.isStateChangeBool(),n=boeing_globals.state.hasChanged("currentChapter")===!0,r=boeing_globals.state.get("currentEpisode")!==this.episodeNum,i=_.any([n,r]),s=this.stateModel.get("loadMenu")===!1&&this.stateModel.get("currentPage")==="topics"&&boeing_globals.state.hasChanged("loadMenu")===!0&&boeing_globals.device==="desktop";this.sendLibraryState(),t===!0&&(this.currentPage=this.changed.currentPage,this.episodeNum=this.stateModel.get("currentEpisode"),this.updatePlayer());if(i===!0||s===!0){var o={num:this.stateModel.get("currentChapter"),episode_num:this.stateModel.get("currentEpisode"),currentPage:this.stateModel.get("currentPage")};this.console.log("PLAYER STATE TRIGGERIN CHAPTER CHANGE ",o),this.trigger("CHAPTER_UPDATED_EVENT",o)}var u={num:this.stateModel.get("currentChapter"),episode_num:this.stateModel.get("currentEpisode")};(this.changed.loadMenu===!0||boeing_globals.state.get("loadLibrary"))===!0&&this.view&&this.view.showActionSheets(!1),this.console.log("PLAYER STATE CHANGED ",i,t,u)},onPauseAllMediaEvent:function(e){var t={media_event:e.media_event,exception:e.exception};t=this.formatEventData("MEDIA_EVENT",t),this.trigger("PLAYERCONTROLLER_EVENT",t)},onVideoWatched:function(e){var t={watched:!0};t=this.formatEventData("VIDEO_WATCHED_EVENT",t),this.trigger("PLAYERCONTROLLER_EVENT",t)},onStateEvent:function(e){var t=e;t=this.formatEventData("STATE_UPDATE_EVENT",t),this.trigger("PLAYERCONTROLLER_EVENT",t)},updatePlayer:function(){this.showModuleBool(true)==1?this.loadViews():this.removeViews(),this.checkTopicsState()},checkTopicsState:function(){if(this.currentPage=="topics")if(boeing_globals.device!=="mobile"){var e={localState:"topics"};this.trigger("LOCAL_STATE_EVENT",e)}else this.removeViews()},sendLibraryState:function(){if(_.has(this.changed,"loadLibrary")){var e={loadLibrary:boeing_globals.state.get("loadLibrary")};this.console.log("loadLibrary in player controller ",this.changed.loadLibrary),t.trigger("LIBRARY_EVENT",e)}var n=$(this.el).find(".vjs-control-bar");
1n.children().each(function(){var e=$(this).attr("class").match("vjs-progress-control"),t=boeing_globals.state.get("loadLibrary")===!0;t&&!e?($(this).css("opacity",0),n.css("background-color","rgba(18, 19, 21, 0)")):($(this).removeAttr("style"),n.css("background-color","rgba(32, 33, 37, 0.85)"))})},removeViews:function(){this.view!=undefined&&(this.view.removeFromStage(),this.view=undefined)},onBoomerangClose:function(){var e={currentPage:"home",currentMenuEpisodeNumber:boeing_globals.state.get("currentEpisode")*1};this.onStateEvent(e),this.boomerangCloseBtn=undefined,boeing_globals.addBoomerangBool=!1},addBoomerangCloseBtn:function(){this.boomerangCloseBtn=new i,$(this.el).prepend(this.boomerangCloseBtn.render()),this.listenToOnce(this.boomerangCloseBtn,"BOOMERANG_CLOSE_EVENT",this.onBoomerangClose.bind(this))},checkForBoomerang:function(){boeing_globals.device==="mobile"&&boeing_globals.addBoomerangBool!==undefined&&boeing_globals.addBoomerangBool===!0?($(this.el).addClass("boomerang"),window.setTimeout(this.addBoomerangCloseBtn.bind(this),1e3)):($(this.el).removeClass("boomerang"),this.boomerangCloseBtn!==undefined&&this.boomerangCloseBtn.hasOwnProperty("cleanUp")===!0&&(this.boomerangCloseBtn.cleanUp(),this.boomerangCloseBtn=undefined))},loadViews:function(){this.view==undefined&&this.collection!=undefined&&(this.console.log("PLAYER IS ADDING VIEWS ",this.collection),this.view=new r(t),this.listenTo(this.view,"FULLSCREEN_EVENT",this.onStateEvent.bind(this)),this.listenTo(this.view,"POPUP_EVENT",this.onStateEvent.bind(this)),this.listenTo(this.view,"PAUSEALL_MEDIA_EVENT",this.onPauseAllMediaEvent.bind(this)),this.checkForBoomerang(),$("#bng-player").html(this.view.el),this.view.start())},addModalMenu:function(){var e=o.cleanUpBoolean(boeing_globals.state.get("loadLibrary"));if(!e&&$("#player-modal-menu").length===0){$("#bng-ui").css("pointer-events","all");var n=new s(t);$("#bng-ui").prepend(n.render()),this.view.videoView.pause()}},hideModalMenu:function(e){var t=e;t=this.formatEventData("STATE_UPDATE_EVENT",t),this.trigger("PLAYERCONTROLLER_EVENT",t),$("#bng-ui").css("pointer-events","none")},onplayerEvent:function(e){this.console.log("player event is  ",e)}});return u}),define("app/modules/navstrips/events",["require","underscore","backbone"],function(e,t,n){var r={init:function(){console.log("events is ",this)},onStateEvent:function(e){this.trigger("STATE_EVENT",e)},onUpdateNavstrip:function(e){this.trigger("NAV_STRIP_UPDATE_EVENT",e)},onLoadLibraryCheckEvent:function(e){this.trigger("NAVSTRIP_LIBRARY_CHECK_EVENT",e)},onUpdateEpisodeEvent:function(e){this.trigger("NAVSTRIP_UPDATE_EPISODE_EVENT",e)},onUpdateChapterEvent:function(e){this.trigger("NAVSTRIP_UPDATE_CHAPTER_EVENT",e)},onEpisodeNavstripExpanedEvent:function(e){this.trigger("EPISODE_NAVSTRIP_EXPANDED_EVENT",e)},onRemoveNavstrips:function(e){this.trigger("NAVSTRIP_REMOVE_EVENT")},onUpdateChapterHighlight:function(e){this.trigger("UPDATE_HIGHLIGHT_EVENT",e)},onEpisodeNavstripEvent:function(e){console.log("nav strip episode event is ",e),this.trigger("NAV_STRIP_EPISODE_EVENT",e)},onNavstripEvent:function(e){this.trigger("NAVSTRIP_UPDATE_EVENT",e)},onNavstripClickEvent:function(e){this.trigger("NAVSTRIP_UPDATE_EVENT",e)},cleanUp:function(e){this.off()},onSubviewEvent:function(e){console.log("subviewEvent func called ",e),this.trigger("SUBVIEW_EVENT",e)},onThumbClick:function(e){this.trigger("THUMB_CLICKED_EVENT",e)}};return t.extend(r,n.Events),r}),define("app/modules/navstrips/models/model",["require","underscore","jquery","backbone"],function(e){var t=e("underscore"),n=e("jquery"),r=e("backbone"),i=r.Model.extend({defaults:{type:"Feature",text:"ui loaded data from model"},parse:function(e){},initialize:function(e){console.log("model initialized ",e)}});return i}),define("text!app/modules/navstrips/views/templates/tmpl.html",[],function(){return'    <li id="ep-title" class="navstrip bookend">\n        <div>\n        <p>{{episode}}
1 {{episode_num}}</p>\n        <h4>{{episode_title}}</h4>\n            </div>\n        <aside id="episode-btn" class="navstrip-arrow-btn"></aside>\n    </li>\n    <li class="navstrip">\n        <ol id="chapter-navstrips">\n            {{#data}}\n            <li class="chapter-item" data-chapter="{{num}}">\n                <header>\n                    <h6>{{chapter}} {{num}}</h6>\n                    <p> {{chapter_title}}</p>\n                    <h6>{{chapter_duration}}</h6>\n                    </header>\n            </li>\n            {{/data}}\n\n\n        </ol>\n    </li>\n    <li id="interactive-library-button" class="navstrip bookend">\n        <section class="sonar-icon">\n            <article class="x-btn-base64-black"></article>\n            <div></div>\n        </section>\n        <h5>{{interactive-library}}</h5>\n\n    </li>\n\n'}),define("app/modules/navstrips/views/navstrip-chapters-view",["require","underscore","jquery","backbone","app/base-classes/base-view","app/modules/navstrips/models/model","text!app/modules/navstrips/views/templates/tmpl.html","mustache","TweenMax"],function(e){var t=e("underscore"),n=e("jquery"),r=e("backbone"),i=e("app/base-classes/base-view"),s=e("app/modules/navstrips/models/model"),o=e("text!app/modules/navstrips/views/templates/tmpl.html"),u=e("mustache"),a=e("TweenMax"),f=i.extend({tagName:"ul",id:"chapter-navstrip",className:"navstrip",initialize:function(e,t){this.debug=!0,this.Evt=e,this.init(),this.id="#chapter-navstrip",this.data=t!=undefined?t:{episode:1,chapter:1},this.collection=boeing_globals.episodesCollection,this.listenTo(this.Evt,"NAVSTRIP_UPDATE_CHAPTER_EVENT",this.onUpdateChapterFromController.bind(this)),this.listenTo(this.Evt,"EPISODE_NAVSTRIP_EXPANDED_EVENT",this.onEpisodeNavstripExpanedEvent.bind(this)),this.listenTo(this.Evt,"NAVSTRIP_LIBRARY_CHECK_EVENT",this.onNavstripLibraryCheckEvent.bind(this)),this.Evt.listenTo(this,"LIBRARY_CLICK_EVENT",this.Evt.onNavstripEvent),this.Evt.listenTo(this,"NAVSTRIP_CLICK_EVENT",this.Evt.onNavstripClickEvent),this.Evt.listenTo(this,"NAV_STRIP_EPISODE_EVENT",this.Evt.onEpisodeNavstripEvent),this.console.log("chapter navstrip is this ",this.Evt,this),this.startBasic=!1},start:function(e){e=="static"&&(this.startBasic=!0),this.setSelected(),this.afterRender()},events:{},onNavstripLibraryCheckEvent:function(e){var t=e.loadLibrary;t==1?n(this.el).find("#interactive-library-button").addClass("library-mode"):n(this.el).find("#interactive-library-button").removeClass("library-mode")},onLibraryClick:function(e){this.console.log("library clicked");var t=function(){var e=boeing_globals.state.get("loadLibrary");return e==1?e=!1:e=!0,e},n=t(),r=n==1?"scaledDown":"scaledUp";this.gaMixins.sendClickEvent("click","nav-librarybutton");var i=function(){var t={loadLibrary:n};this.trigger("LIBRARY_CLICK_EVENT",t),console.log("navscript library ",e)};e.preventDefault(),window.setTimeout(i.bind(this),100)},removeFromStage:function(){n(this.el).removeClass("slide-in"),window.setTimeout(this.cleanUp.bind(this),500)}
1,cleanUp:function(){this.listenTimer!=undefined&&clearTimeout(this.listenTimer),this.remove()},hilightChapter:function(e){var t='.chapter-item[data-chapter="'+String(e)+'"]';this.console.log("slected ",t),n(t).addClass("selected")},onUpdateChapterFromController:function(e){this.setSelected()},onEpisodeNavstripExpanedEvent:function(e){var t=e,r=n("#ep-title div"),i=n("#ep-title aside");t==1?(r.css("opacity","0"),i.css("opacity","0")):(r.css("opacity","1"),i.css("opacity","1")),this.console.log("expanded episode event ",e)},setSelected:function(){var e=boeing_globals.state.get("currentChapter")*1;e+=1;var t=function(t,r){var i=n(r).data("chapter");i==e&&n(r).addClass("selected")};this.items=n(this.el).find("li.chapter-item");var r=this.items;r.removeClass("selected"),r.each(t.bind(this))},onChapterItemClick:function(e,t){var r=n(e.currentTarget),i=r.data("chapter"),s=r.hasClass("selected");this.console.log("the item clicked is: ",i,r);if(s==0){var o=boeing_globals.state.get("currentEpisode")+1,u=this.gaMixins.getEventLabel(o,i);this.gaMixins.sendClickEvent("click","nav-bottomnavbar");var a={currentChapter:i-=1,loadLibrary:!1};this.trigger("NAVSTRIP_CLICK_EVENT",a);var f=function(){boeing_globals.state.get("currentPage")=="player"&&(window.vidjs!=undefined?window.vidjs.play():window.setTimeout(f.bind(this),1e3)),this.console.log("click finding video js video is ",vidjs)};boeing_globals.device=="mobile"&&window.setTimeout(f.bind(this),1e3)}},resetEpisodeInfo:function(){this.console.log("RESETTING STUFF")},onEpisodeTitleHover:function(e){var t=!0;this.trigger("NAV_STRIP_EPISODE_EVENT",t),this.console.log("btn hover ",this)},animateIn:function(){this.startBasic==1,n(this.el).addClass("slide-in")},afterRender:function(){var e=function(){n("#interactive-library-button").on("click",this.onLibraryClick.bind(this)),this.items.on("click",this.onChapterItemClick.bind(this));var e=n("#ep-title");window.eB=e,e.on("mouseover",this.onEpisodeTitleHover.bind(this)),this.console.log("chapter listeners added ",this)};this.libraryBtn=n(this.el).find("#interactive-library-button"),boeing_globals.state.get("loadLibrary")==1&&this.libraryBtn.addClass("library-mode"),this.listenTimer=window.setTimeout(e.bind(this),3e3),this.setSelected(),this.animateIn();if(boeing_globals.hideEpisode5==1){this.console.log("hello");var t=n("#episode-navstrips li:nth-child(5)").find("p");n(t).empty().append("COMING SOON")}},reRender:function(e){this.data=e,this.render()},render:function(){this.episodeNum=boeing_globals.state.get("currentEpisode"),this.chapterNum=boeing_globals.state.get("currentChapter"),this.episodeNum<0&&(this.episodeNum=0),this.chapterNum<0&&(this.chapterNum=0),window.navStripData=this.data,this.collection==undefined&&(this.collection=boeing_globals.episodesCollection);var e=this.collection.toJSON()[this.episodeNum];this.console.log("episode num navstrip view is ",this.episodeNum,this.data,this.collection," --> ",e);var r=this.uiTextModel.get("episode"),i=this.uiTextModel.get("chapter"),s=this.uiTextModel.get("interactive-library"),a=function(e){return e.episode=r,e.chapter=i,e["interactive-library"]=s,e};t.each(e.chapters,a),this.data={data:e.chapters,episode:r,"interactive-library":s},this.data.episode_title=e.episode_title,this.data.episode_num=this.episodeNum+1;var f=u.to_html(o,this.data);return n(this.el).html(f),this.el}});return f}),define("text!app/modules/navstrips/views/templates/tmpl-episodes.html",[],function(){return'    <li id="episode-title" class="navstrip bookend">\n\n    </li>\n    <li class="navstrip">\n        <ol id="episode-navstrips">\n            {{#data}}\n            <li class="episode-item" data-episode="{{episode_num}}">\n                <header>\n                    <h6>{{episode}} {{episode_label}}</h6>\n                    <p> {{episode_title}}</p>\n                    </header>\n            </li>\n            {{/data}}\n\n\n        </ol>\n    </li>\n    <li  class="navstrip bookend">\n\n\n        <aside id="episode-return-btn" class="navstrip-arrow-btn"></aside>\n\n    </li>\n\n'}),define("app/modules/navstrips/views/navstrip-episode-view",["require","underscore","jquery","backbone","app/base-classes/base-view","app/modules/navstrips/models/model","text!app/modules/navstrips/views/templates/tmpl-episodes.html","mustache","TweenMax"],function(e){var t=e("underscore"),n=e("jquery"),r=e("backbone"),i=e("app/base-classes/base-view"),s=e("app/modules/navstrips/models/model"),o=e("text!app/modules/navstrips/views/templates/tmpl-episodes.html"),u=e("mustache"),a=e("TweenMax"),f=i.extend({tagName:"ul",id:"episode-navstrip",className:"navstrip",initialize:function(e,t){this.debug=!1,this.Evt=e,this.id="#episode-navstrip",this.data=t!=undefined?t:{episode:1,chapter:1},this.collection=boeing_globals.episodesCollection,this.init(),this.console.log("data for episodes is ",this.data,this.collection),this.listenTo(this.Evt,"NAVSTRIP_UPDATE_EPISODE_EVENT",this.onUpdateEpisodeFromController.bind(this)),this.listenTo(this.Evt,"NAV_STRIP_EPISODE_EVENT",this.onRevealEpisode.bind(this)),this.Evt.listenTo(this,"NAVSTRIP_CLICK_EVENT",this.Evt.onNavstripClickEvent),this.Evt.listenTo(this,"EPISODE_NAVSTRIP_EXPANDED_EVENT",this.Evt.onEpisodeNavstripExpanedEvent)},start:function(){this.afterRender(),this.setSelected(this.episodeNum)},onUpdateNavStrip:function(e){this.console.log("update the navstrip in view ",e),n(this.id).html(""),this.render(e)}
1,onRevealEpisode:function(e){var t=e==1?"100%":"0%",n=e==1?"1":"0";this.console.log("reveal episode is w ",t),a.to(this.el,.5,{css:{width:t,opacity:n}}),this.trigger("EPISODE_NAVSTRIP_EXPANDED_EVENT",e)},onClickEpisodeOut:function(e){this.onClearTimeout(),this.onRevealEpisode(!1)},onHideEpisode:function(){this.onRevealEpisode(!1)},onClearTimeout:function(){this.hideNav!=undefined&&window.clearTimeout(this.hideNav)},timeoutToHide:function(){this.hideNav=window.setTimeout(this.onHideEpisode.bind(this),500)},onEpisodeNavstripOver:function(e){this.console.log("nav strip out is called"),this.onClearTimeout()},onEpisodeNavstripOut:function(e){this.console.log("nav strip out is called"),this.timeoutToHide()},events:{},removeFromStage:function(){a.to(n(this.id),.3,{x:n(document).width()*-1,ease:Power2.easeInOut,onComplete:this.cleanUp.bind(this)}),n(this.el).removeClass("reveal")},cleanUp:function(){this.undelegateEvents(),this.remove()},hilightChapter:function(e){var t='.chapter-item[data-chapter="'+String(e)+'"]';this.console.log("slected ",t),n(t).addClass("selected")},onUpdateHilight:function(e){this.console.log("update hilight ",e);var t=e.chapter;t+=1,this.setSelected(t)},setSelected:function(){var e=boeing_globals.state.get("currentEpisode"),t=function(t,r){var i=n(r).data("episode");i==e&&n(r).addClass("selected")},r=this.items;r.removeClass("selected"),r.each(t.bind(this))},onUpdateEpisodeFromController:function(){this.setSelected()},onEpisodeItemClick:function(e,t){var r=n(e.currentTarget),i=r.data("episode"),s=this.gaMixins.getEventLabel(i+1);this.gaMixins.sendClickEvent("click","nav-bottomnavbar");var o=r.hasClass("selected");this.console.log("the item clicked is: ",i,r);if(boeing_globals.hideEpisode5==1&&i==4)return;if(o==0){var u={currentEpisode:i,currentChapter:0,loadLibrary:!1};this.trigger("NAVSTRIP_CLICK_EVENT",u),this.onRevealEpisode(!1),this.onClearTimeout();var a=function(){boeing_globals.state.get("currentPage")=="player"&&(window.vidjs!=undefined?window.vidjs.play():window.setTimeout(a.bind(this),1e3))};boeing_globals.device=="mobile"&&window.setTimeout(a.bind(this),1e3)}},afterRender:function(){n(this.el).addClass("reveal"),this.items=n(this.el).find("li.episode-item"),this.console.log("items episodes are ",this.items),this.items.on("click",this.onEpisodeItemClick.bind(this)),n(this.el).on("mouseover",this.onClearTimeout.bind(this)),n(this.el).on("mouseout",this.onEpisodeNavstripOut.bind(this)),n(this.el).find("#episode-return-btn").on("click",this.onClickEpisodeOut.bind(this))},render:function(){this.console.log("render start data is ",this.data),this.episodeNum=boeing_globals.state.get("currentEpisode"),this.chapterNum=boeing_globals.state.get("currentChapter"),this.episodeNum<0&&(this.episodeNum=0),window.navStripData=this.data,this.collection==undefined&&(this.collection=boeing_globals.episodesCollection);var e=this.collection.toJSON(),r=this.uiTextModel.get("episode"),i=function(e){return e.episode=r,e};t.each(e,i),this.console.log("episode num navstrip view is ",this.episodeNum,this.data,this.collection," --> ",e),this.data={data:e},this.data.episode_title=e[this.episodeNum].episode_title,this.data.episode_label=e[this.episodeNum].episode_label;var s=u.to_html(o,this.data);return n(this.el).html(s),this.el}});return f}),define("app/modules/navstrips/views/view",["require","underscore","jquery","backbone","app/base-classes/base-view","app/modules/navstrips/models/model","mustache","app/modules/navstrips/views/navstrip-chapters-view","app/modules/navstrips/views/navstrip-episode-view","TweenMax"],function(e){var t=e("underscore"),n=e("jquery"),r=e("backbone"),i=e("app/base-classes/base-view"),s=e("app/modules/navstrips/models/model"),o=e("mustache"),u=e("app/modules/navstrips/views/navstrip-chapters-view"),a=e("app/modules/navstrips/views/navstrip-episode-view"),f=e("TweenMax"),l=i.extend({id:"navstrips-container",initialize:function(e,t){this.debug=!1,this.Evt=e;var r=t!=undefined?t:{episode:1,chapter:1};this.collection=boeing_globals.episodesCollection,this.init(),this.data=r,this.chapterNavstripView=new u(this.Evt,this.data),this.episodeNavstripView=new a(this.Evt,this.data),this.oldChapterNavstripView="",n(this.el).append(this.chapterNavstripView.render()),n(this.el).append(this.episodeNavstripView.render()),this.listenTo(this.Evt,"NAVSTRIP_UPDATE_EPISODE_EVENT",this.onUpdateEpisodeFromController.bind(this)),this.loadOnce=!0}
1,loadOnceReset:function(){this.loadOnce=!0},start:function(){this.loadOnce=!1,this.chapterNavstripView.start("static"),this.episodeNavstripView.start()},events:{},getVideoData:function(){this.data={episode:boeing_globals.state.get("currentEpisode"),chapter:boeing_globals.state.get("currentChapter")}},onUpdateEpisodeFromController:function(){this.getVideoData(),this.console.log("NAVSTRIP VIEWEPISODE EVENT ",this.chapterNavstripView,this.data);if(this.chapterNavstripView!=undefined){this.oldChapterNavstripView=this.chapterNavstripView,this.chapterNavstripView=new u(this.Evt,this.data),this.oldChapterNavstripView.removeFromStage();var e=function(){n(this.el).append(this.chapterNavstripView.render()),this.chapterNavstripView.start()};window.setTimeout(e.bind(this),100)}},removeFromStage:function(){window.setTimeout(this.cleanUp.bind(this),700)},cleanUp:function(){this.undelegateEvents(),n(this.el).removeClass("reveal"),n(this.el).html(""),this.remove()}});return l}),define("app/modules/navstrips/navstrips-controller",["require","app/modules/navstrips/events","app/base-classes/view-controller","app/modules/navstrips/views/view"],function(e){var t=e("app/modules/navstrips/events"),n=e("app/base-classes/view-controller"),r=e("app/modules/navstrips/views/view"),i=n.extend({id:"bng-navstrips",tagName:"section",initialize:function(){this.mainCollectionType="topics",this.debug=!1,this.init(),this.listenTo(t,"NAVSTRIP_UPDATE_EVENT",this.onLocalStateEvent.bind(this)),t.listenTo(this,"NAVSTRIP_UPDATE_EPISODE_EVENT",t.onUpdateEpisodeEvent),t.listenTo(this,"NAVSTRIP_UPDATE_CHAPTER_EVENT",t.onUpdateChapterEvent),t.listenTo(this,"NAVSTRIP_LIBRARY_CHECK_EVENT",t.onLoadLibraryCheckEvent)},updateStateFromDataLoad:function(e){this.checkNavState(),boeing_globals.device=="mobile"&&$("#bng-navstrips").addClass("mobile"),this.console.log("NAVSRIPT CONTROLLER MOBILE IS ",boeing_globals.device,boeing_globals.device=="mobile",$("#bng-navstrips"))},showNavStripBool:function(){var e=this.currentPage=="player",t=this.loadMenu==0,n=_.every([e]);return n},checkNavStripBool:function(){var e=_.has(this.changed,"currentPage")==1,t=_.has(this.changed,"loadMenu")==1,n=_.any([e]);return n},onStateChanged:function(){this.console.log("nav strip state changed ",this.checkNavStripBool()),this.checkNavStripBool()==1&&(this.currentPage=boeing_globals.state.get("currentPage"),this.loadMenu=boeing_globals.state.get("loadMenu"),this.checkNavState());var e=_.has(this.changed,"currentEpisode"),t=_.has(this.changed,"currentChapter"),n=_.any([e,t]),r=_.every([e,t]);e==0&&t==1?this.updateChapter():e==1&&t==0?this.updateEpisode():r==1&&this.updateEpisode();var i=boeing_globals.state.get("loadLibrary");this.trigger("NAVSTRIP_LIBRARY_CHECK_EVENT",{loadLibrary:i})},getNavStripData:function(){var e={};return e.episode=this.state.get("currentEpisode"),e.chapter=this.state.get("currentChapter"),e},updateEpisode:function(){var e=this.getNavStripData();this.trigger("NAVSTRIP_UPDATE_EPISODE_EVENT",e)},updateChapter:function(){var e=this.getNavStripData();this.trigger("NAVSTRIP_UPDATE_CHAPTER_EVENT",e)},checkNavState:function(){this.showNavStripBool()==1&&this.allLoaded()==1?this.loadViews():this.removeViews()},onLocalStateEvent:function(e){var t=e;t=this.formatEventData("STATE_UPDATE_EVENT",t),this.trigger("NAVSTRIPSCONTROLLER_EVENT",t)},removeViews:function(){this.view!=undefined&&(this.view.removeFromStage(),this.view=undefined)},loadViews:function(){if(this.view==undefined){var e=this.getNavStripData();this.view=new r(t,e),$(this.el).append(this.view.el),this.view.start()}},allLoaded:function(e){return this.currentPage!=undefined&&this.collection!=undefined},onnavstripEvent:function(e){}});return i}),define("app/modules/library/events",["require","underscore","backbone"],function(e,t,n){var r={init:function(){},onStateEvent:function(e){this.trigger("STATE_EVENT",e)},cleanUp:function(e){this.off()},onLibraryUIEvent:function(e){this.trigger("LIBRARY_UI_EVENT",e)},onLibraryCloseEvent:function(e){this.trigger("LIBRARY_CLOSE_EVENT",e)}};return t.extend(r,n.Events),r}),define("app/modules/library/models/model",["require","underscore","jquery","backbone"],function(e){var t=e("underscore"),n=e("jquery"),r=e("backbone"),i=r.Model.extend({defaults:{type:"Feature",text:"ui loaded data from model"},parse:function(e){},initialize:function(e){console.log("model initialized ",e)}});return i}),define("text!app/modules/library/views/templates/tmpl.html",[],function(){return'<div id="library" class="library" >\n    <header>\n        <h4>{{title}}</h4>
1\n        <span>{{interactive-library}}</span>\n        <div id="close-btn" class="hide-on-desktop">\n            <svg xmlns="//www.w3.org/2000/svg" xmlns:xlink="//www.w3.org/1999/xlink" preserveAspectRatio="xMidYMid" width="20" height="20" viewBox="0 0 20 20">\n              <defs>\n                <style>\n                  .cls-1 {\n                    fill: #fff;\n                    fill-rule: evenodd;\n                  }\n                </style>\n              </defs>\n              <g>\n                <image xlink:href="data:img/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUBAMAAAB/pwA+AAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAMFBMVEUAAAD///////////////////////////////////////////////////////8AAAA78yIiAAAADnRSTlMACRXUdxYKdgXILcIDeZhYpJYAAAABYktHRACIBR1IAAAACXBIWXMAAAsSAAALEgHS3X78AAAAQ0lEQVQI12NggAJGBjhQdoCxmOwM4YKPA+CCpghBBbigEUwwGS7IwG6EMFUASnMghDQXICzag9dMrILCCIt4sVjEAAA34wxK7PgXswAAAABJRU5ErkJggg==" width="20" height="20"/>\n                <path d="M20.192,18.778 L3.222,1.808 L1.808,3.222 L18.778,20.192 L20.192,18.778 Z" class="cls-1"/>\n              </g>\n            </svg>\n        </div>\n    </header>\n\n    <ul class="circle-container">\n    \n    {{#data}}\n        <li>\n            <dl data-topic-item-num="{{num}}">\n                <dt><img src="{{topic_image}}"/></dt>\n                <dd>{{menu_title}}</dd>\n            <dl>\n        </li>\n    {{/data}}\n\n    </ul>\n\n    <div class="library-episode-info">\n        <p>{{{description}}}</p>\n    </div>\n\n</div>'}),define("app/modules/library/views/view",["require","underscore","jquery","backbone","app/base-classes/base-view","app/modules/library/models/model","text!app/modules/library/views/templates/tmpl.html","mustache","TweenMax"],function(e){var t=e("underscore"),n=e("jquery"),r=e("backbone"),i=e("app/base-classes/base-view"),s=e("app/modules/library/models/model"),o=e("text!app/modules/library/views/templates/tmpl.html"),u=e("mustache"),a=e("TweenMax"),f=i.extend({el:"#bng-library",initialize:function(e){this.debug=!1,this.Evt=e,this.init(),this.render(),this.Evt.listenTo(this,"LIBRARY_UI_EVENT",this.Evt.onLibraryUIEvent),this.Evt.listenTo(this,"LIBRARY_CLOSE_EVENT",this.Evt.onLibraryCloseEvent)},events:{"click .circle-container li dl":"onThumbClick","click #close-btn":"onCloseBtnClick"},onCloseBtnClick:function(e){this.console.log("close btn is ",e);var t={loadLibrary:!1};this.trigger("LIBRARY_CLOSE_EVENT",t)},onThumbClick:function(e){var t=n(e.currentTarget),r=t.data("topic-item-num");this.console.log("TOPIC ITEM num is ",r);var i={topic_item:r,currentTopic:r,loadLibrary:!1};console.log("LIBRARY EVENT: ",i),this.gaMixins.sendClickEvent("click","nav-librarybutton"),this.trigger("LIBRARY_UI_EVENT",i)},removeFromStage:function(){n(this.el).removeClass("reveal"),window.setTimeout(this.cleanUp.bind(this),700)},cleanUp:function(){this.undelegateEvents(),n(this.el).removeClass("reveal"),n(this.el).html("")},formatCircleView:function(e){var t=["deg0","deg135","deg180","deg315"],r=["deg0","deg45","deg135","deg180","deg225"],i=["deg0","deg45","deg135","deg180","deg225","deg315"],s;e==6?s=i:e==5?s=r:s=t,n(".circle-container li").each(function(e,t){n(this).attr("class",s[e])})},afterRender:function(){n(this.el).addClass("reveal");var e=n(".circle-container").children(),t=e.length;this.formatCircleView(t),n(".circle-container").children("li").addClass("active")},render:function(){var e={episode:window.boeing_globals.state.get("currentEpisode"),chapter:window.boeing_globals.state.get("currentChapter")};this.col=boeing_globals.topicsCollection;var r=this.col.toJSON(),i=String(e.episode+1);r=t.where(r,{topic_episode_number:i});var s=boeing_globals.episodesCollection.at(e.episode),a=s.get("episode_title"),f=s.get("episode_description"),l=this.uiTextModel.get("interactive-library"),c={data:r,title:a,description:f,"interactive-library":l};this.console.log("topics library data ",c);var h=u.to_html(o,c);n(this.el).append(h),this.formatCircleView(),this.id="#bng-library",window.setTimeout(this.afterRender.bind(this),100);var p=5}});return f}),define("app/modules/library/library-controller",["require","app/modules/library/events","app/base-classes/view-controller","app/modules/library/views/view"],function(e){var t=e("app/modules/library/events"),n=e("app/base-classes/view-controller"),r=e("app/modules/library/views/view"),i=n.extend({id:"bng-library",tagName:"section",initialize:function(){this.debug=!1,this.pageId="player",this.showOnMenuLoad=!0,this.mainCollectionType="topics",this.init(),this.listenTo(t,"LIBRARY_UI_EVENT",this.onLibraryUIEvent.bind(this)),this.listenTo(t,"LIBRARY_CLOSE_EVENT",this.onLibraryCloseEvent.bind(this))},updateStateFromDataLoad:function(e){this.console.log("LIBRARY COLLECIOTN IS ",this.collection),this.loadViews()},onLibraryUIEvent:function(e){var t=e;t.currentPage="topics",t=this.formatEventData("STATE_UPDATE_EVENT",t),console.log("library controller event ",t),this.trigger("LIBRARYCONTROLLER_EVENT",t)},onLibraryCloseEvent:function(e){var t=e;t=this.formatEventData("STATE_UPDATE_EVENT",t),this.trigger("LIBRARYCONTROLLER_EVENT",t)},onStateChanged:function(){var e=this.isStateChangeBool();this.libraryLoaded=this.isLibraryLoaded(),this.console.log("library check ",this.showModuleBool(),this.libraryLoaded),this.updateLibrary(),e==1&&(this.currentPage=this.changed.currentPage)},onStateEvent:function(e){var t=e;t.currentPage="topics",t=this.formatEventData("STATE_UPDATE_EVENT",t),this.trigger("LIBRARYCONTROLLER_EVENT",t)},isLibraryLoaded:function(){var e=!1;return _.has(this.changed,"loadLibrary")&&this.changed.loadLibrary==1&&(e=!0),boeing_globals.state.get("loadLibrary")},updateLibrary:function(){this.console.log("library update ",this.showModuleBool(),this.libraryLoaded),this.libraryLoaded==1?this.loadViews():this.removeViews()},removeViews:function(){this.console.log("THIS IS LIBRARY CONTROLER REMOVEING VEIWS ",this.libraryLoaded),this.view!=undefined&&(this.view.removeFromStage(),this.view=undefined)},loadViews:function(){this.view==undefined&&this.collection!=undefined&&boeing_globals.state.get("currentPage")=="player"&&(this.view=new r(t))},onlibraryEvent:function(e){}});return i}),define("app/modules/topics-shell/events",["require","underscore","backbone"],function(e,t,n){var r={init:function(){this.oldViewsArr=[]},onStateEvent:function(e){this.trigger("STATE_EVENT",e)},onTopicsNavEvent:function(e){this.trigger("TOPICS_NAV_EVENT",e)},onTopicEndedEvent:function(e){this.trigger("TOPIC_ENDED_EVENT",e)},onTopicsItemUpdatedEvent:function(e){this.trigger("TOPICS_ITEM_COLLECTION_UPDATED",e)},onStageViewEvent:function(e){this.trigger("TOPICS_STAGE_EVENT:VIEW_RENDERED",e)},onStageReadyEvent:function(e){this.trigger("TOPICS_STAGE_EVENT:STAGE_READY",e)},onStageRemoveViewEvent:function(e){this.oldViewsArr.push(e.id),e.oldViewsArr=this.oldViewsArr,this.trigger("TOPICS_STAGE_EVENT:REMOVE_VIEW",e)},onStageViewRemoved:function(e){this.oldViewsArr=t.without(this.oldViewsArr,e)},onSwipeNavEvent:function(e){this.trigger("SWIPE_NAV_EVENT",e)},onBreakpointEvent:function(e){this.trigger("BREAKPOINT_EVENT",e)},onLocalNavigateEvent:function(e){this.trigger("LOCAL_NAVIGATE_EVENT",e)},onTopicsNavigate:function(e){this.trigger("TOPICS_NAVIGATE_EVENT",e)},cleanUp:function(e){this.off()},onSubviewEvent:function(e){console.log("subviewEvent func called ",e),this.trigger("SUBVIEW_EVENT",e)},onGlobalMediaEvent:function(e){this.trigger("GLOBAL_MEDIA_EVENT",e)},onPauseAllMediaEvent:function(e){this.trigger("MEDIA_EVENT",e)},onRemoveAllEvent:function(){this.oldViewsArr=[],this.trigger("TOPICS_REMOVE_ALL_EVENT")},onThumbClick:function(e){this.trigger("THUMB_CLICKED_EVENT",e)}};return t.extend(r,n.Events),r}),define("app/data/credits-collection",["require","app/base-classes/base-collection","app/modules/topics-views/models/model-credits","backbone"],function(e){var t=e("app/base-classes/base-collection"),n=e("app/modules/topics-views/models/model-credits"),r=e("backbone"),i=t.extend({url:"",model:n,initialize:function(){this.debug=!1,this.init(),this.console.log("CREDITS COLLECTION inint ",this),window.creditsCol=this},addMainCredits:function(){this.add(this.data.credit)},addSliderImages:function(e){var t=e,n=function(e){var t={isSlider:!0,isNotGallery:!0,image:e.image_before.sizes.thumbnail,title:e.image_before_credit_title,attribution:e.image_before_credit_attribution,url:e.image_before_credit_url,type:"image"};return t},r=function(e){var t={isSlider:!0,isNotGallery:!0,image:e.image_after.sizes.thumbnail,title:e.image_after_credit_title,attribution:e.image_after_credit_attribution,url:e.image_after_credit_url,type:"image"};return t};this.add(n(e)),this.add(r(e)),console.log("COL CREDIT ADD SLIDER IMGS")},addFactoids:function(e){var t=function(e,t){var n=e["fact_"+t+"_image"].sizes.thumbnail,r=e["fact_"+t+"_credit_title"],i=e["fact_"+t+"_credit_attribution"],s=e["fact_"+t+"_credit_url"];return{image:n,title:r,attribution:i,url:s,isNotGallery:!0,type:"image"}};this.add(t(e,1)),this.add(t(e,2)),this.add(t(e,3))},addCreditsFromPages:function(e){var t=e.acf_fc_layout;t=="gallery"?this.add(e.gallery_items):t=="article"?this.add(e):t=="section"?this.add(e):t=="timeline"?this.add(e.content):t=="fullscreen_video"?this.add(e):t=="image_reveal_slider"?this.addSliderImages(e):t=="factoid"&&this.addFactoids(e)},start:function(e){this.data=e,this.title=this.data.pages[0].title,this.addMainCredits(),_.each(this.data.pages,this.addCreditsFromPages.bind(this)),this.console.log("credits start ",this)},parse:function(e){return this.console.log("credit response is ",e),e}});return i}),define("app/modules/topics-views/models/model-fullscreen-video",["require","underscore","jquery","backbone"],function(e){var t=e("underscore"),n=e("jquery"),r=e("backbone"),i=r.Model.extend({defaults:{type:"",eyebrow:"",title:"",description:"",poster_frame:"",video:"",video_credit_title:"",video_credit_attribution:"",video_credit_url:""},parse:function(e){return this.attributes.id=this.cid,this.attributes.poster_frame=e.video_posterframe.url,e.title==undefined&&(e.title=e.video_credit_title,this.attributes.title=e.title),e},initialize:function(e){this.parse(e)}});return i}),define("app/data/topics-item-collection-maker",["require","underscore","jquery","app/app-events","backbone","app/base-classes/base-collection","app/data/credits-collection","app/modules/topics-views/models/model-intro","app/modules/topics-views/models/model-section","app/modules/topics-views/models/model-article","app/modules/topics-views/models/model-gallery","app/modules/topics-views/models/model-hotspots","app/modules/topics-views/models/model-timeline","app/modules/topics-views/models/model-slider","app/modules/topics-views/models/model-factoid","app/modules/topics-views/models/model-fullscreen-video","app/modules/topics-views/models/model-credits","app/modules/topics-views/models/model-next-topic"],function(e){var t=e("underscore"),n=e("jquery"),r=e("app/app-events"),i=e("backbone"),s=e("app/base-classes/base-collection"),o=e("app/data/credits-collection"),u=e("app/modules/topics-views/models/model-intro"),a=e("app/modules/topics-views/models/model-section"),f=e("app/modules/topics-views/models/model-article"),l=e("app/modules/topics-views/models/model-gallery"),c=e("app/modules/topics-views/models/model-hotspots"),h=e("app/modules/topics-views/models/model-timeline"),p=e("app/modules/topics-views/models/model-slider"),d=e("app/modules/topics-views/models/model-factoid"),v=e("app/modules/topics-views/models/model-fullscreen-video"),m=e("app/modules/topics-views/models/model-credits"),g=e("app/modules/topics-views/models/model-next-topic"),y=i.Collection.extend({url:"",initialize:function(e,t){this.debug=!1,this.setOptions(t),this.options=t},parse:function(e){this.console.log("RESPONSE COLLECTION MAKER IS ",e)},addIntroModel:function(){var e=this.options,t={type:"intro",eyebrow:e.eyebrow,title:e.title,de
1scription:e.description,url:e.topic_url},n=new u(t);this.add(n,{at:0}),console.log("INTRO MODEL IS ",n,this)},addModels:function(){console.log("main collection add pages ",this.pages,this),t.each(this.pages,this.modeler.bind(this))},modeler:function(e,t){},model:function(e,n){t.has(e,"acf_fc_layout")==1&&(e.type=e.acf_fc_layout);if(e.type=="intro")return new u(e,n);if(e.type=="section")return new a(e,n);if(e.type=="article")return new f(e,n);if(e.type=="gallery")return new l(e,n);if(e.type=="hotspots")return new c(e,n);if(e.type=="timeline")return new h(e,n);if(e.type=="image_reveal_slider")return e.type="slider",new p(e,n);if(e.type=="credits")return new m(e,n);if(e.type=="factoid")return new d(e,n);if(e.type=="fullscreen_video")return new v(e,n)},getAllSourcesAndCredits:function(){var e=[],t,n=function(n,r){console.log("CHECK FOR CREDIT ",n.toJSON()),n.get("credit")!=undefined&&(t=new m(n.toJSON()),e.push(t.toJSON()))},r=function(n,r){n.get("footnotes")!=undefined&&(t=new m(n.toJSON()),e.push(t.toJSON())),console.log("e and k is ",n.get("footnotes"),n.get("content_caption"))},s=new o;s.start(this.options);if(this.options.credit!=0)var u=new i.Collection(this.options.credit);return s},getTopicVideoLoop:function(){return this.options!==undefined&&this.options.topic_video_loop!==undefined?this.options.topic_video_loop:"https://bcsecure04-a.akamaihd.net/19/800000612001/202012/1690/800000612001_6214999784001_6214997476001.mp4?pubId=800000612001&videoId=6214997476001"},getTopicVideoLoopID:function(){return this.options!==undefined&&this.options.topic_video_loop_id!==undefined?this.options.topic_video_loop_id:6214997476001},getNextTopicModel:function(){var e={eyebrow:this.options.topic_eyebrow,title:this.topic_title,next_eyebrow:this.options.topic_next_eyebrow,next_title:this.options.topic_next_title,next_url:this.options.topic_next_url,credits:this.getAllSourcesAndCredits(),topic_video_loop_id:this.getTopicVideoLoopID()};console.log("data is: ",e);var t=new g(e);return t},setOptions:function(e){this.topic_num=e.topic_num,this.topic_eyebrow=e.eyebrow,this.topic_title=e.title,this.topic_description=e.description,this.topic_next_num=e.topic_num*1+1}});return y}),define("app/modules/topics-shell/models/model",["require","underscore","jquery","backbone"],function(e){var t=e("underscore"),n=e("jquery"),r=e("backbone"),i=r.Model.extend({defaults:{type:"Feature",text:"ui loaded data from model"},parse:function(e){},initialize:function(e){console.log("model initialized ",e)}});return i}),define("text!app/modules/topics-shell/views/templates/tmpl.html",[],function(){return'<section id="bng-topics-content">\n    <div id="topics-ui">\n\n        <nav id="topics-navigation">\n\n        </nav>\n\n        <div id="topics-scroll-button">\n            <header>\n                <h3>{{scroll}}</h3>\n                <h4>{{use-scrollbar}}</h4>\n            </header>\n            <svg \n                 xmlns="//www.w3.org/2000/svg"\n                 xmlns:xlink="//www.w3.org/1999/xlink"\n                 width="17px" height="9px">\n                <path fill-rule="evenodd"  fill="rgb(255, 255, 255)"\n                 d="M16.998,0.820 L8.866,8.998 L8.500,8.630 L8.134,8.998 L0.002,0.820 L0.815,0.002 L8.500,7.730 L16.185,0.002 L16.998,0.820 Z"/>\n            </svg>\n        </div>\n\n    </div>\n    <div id="topics-stage">\n\n    </div>\n</section>'}),define("text!app/modules/topics-shell/views/templates/tmpl-topics-nav.html",[],function(){return'            {{#data}}\n            <li  data-id="{{id}}" data-type="{{type}}" data-title="{{title}}" >\n              <div class="nav-topic-hover">\n                <p>{{title}}</p>\n                <span></span>\n                <div class="interactive-icon">\n                    <section class="sonar-icon">\n                        <div></div>\n                    </section>\n                </div>\n              </div>\n\n            </li>\n            {{/data}}\n'}),define("app/modules/topics-shell/views/topics-scrollbtn-view",["require","underscore","jquery","backbone","app/base-classes/base-view","mustache","TweenMax"],function(e){var t=e("underscore"),n=e("jquery"),r=e("backbone"),i=e("app/base-classes/base-view"),s=e("mustache"),o=e("TweenMax"),u=i.extend({initialize:function(e,t){this.debug=!1,this.Evt=t,this.init(),this.listenTo(this.Evt,"TOPICS_NAV_EVENT",this.onTopicsNavEvent.bind(this)),this.afterRender(),this.resetTrigger=!1},start:function(){this.render()},events:{},checkIntroScreen:function(e){e==0&&this.firstLoaded==0?n(this.el).find("header").addClass("hide"):n(this.el).find("header").removeClass("hide"),this.firstLoaded=!1},onTopicsNavEvent:function(e){this.console.log("scroll btn view is listening to nav ",e);var t=e.type=="intro";this.checkIntroScreen(t)},removeFromStage:function(){this.cleanUp()},cleanUp:function(){n(this.el).off("mouseover"),this.undelegateEvents(),n(this.el).html(""),this.Evt.stopListening(this),this.remove()},newReset:function(){var e=function(){this.resetTrigger=!1};window.setTimeout(e.bind(this),2e3)},onScrollBtnOver:function(e){this.resetTrigger==0&&(this.console.log("scroll btn is ",e),this.trigger("SCROLL_NAV_EVENT"),this.resetTrigger=!0,this.newReset()
1)},afterRender:function(){n(this.el).on("click",this.onScrollBtnOver.bind(this))},render:function(){}});return u}),define("app/modules/topics-shell/views/topics-nav-view",["require","underscore","jquery","app/base-classes/base-view","text!app/modules/topics-shell/views/templates/tmpl-topics-nav.html","app/modules/topics-shell/views/topics-scrollbtn-view","mustache"],function(e){var t=e("underscore"),n=e("jquery"),r=e("app/base-classes/base-view"),i=e("text!app/modules/topics-shell/views/templates/tmpl-topics-nav.html"),s=e("app/modules/topics-shell/views/topics-scrollbtn-view"),o=e("mustache"),u=r.extend({el:"#topics-navigation",initialize:function(e,t){this.debug=!1,this.Evt=e,this.collection=t,this.init(),this.Evt.listenTo(this,"TOPICS_NAV_EVENT",this.Evt.onTopicsNavEvent),this.Evt.listenTo(this,"TOPICS_NEXTTOPIC_EVENT",this.Evt.onTopicsNavEvent),this.listenTo(this.Evt,"TOPICS_ITEM_COLLECTION_UPDATED",this.onTopicsCollectionUpdated.bind(this)),this.listenTo(this.Evt,"SWIPE_NAV_EVENT",this.onSwipeTopicsEvent.bind(this)),this.alreadyLoaded=!1,this.mouseWheelFired=!1,this.isMouseDown=!1,this.directionArr=[],this.allowNavigateByKeysBool=!0,this.gaActionStr="topic-nav-click"},start:function(){this.render()},onTopicsCollectionUpdated:function(e){this.collection=e,this.render()},events:{"click li":"onNavItemClick"},resetNavigateByKeys:function(){this.allowNavigateByKeysBool=!0},getGA_Topics_Label:function(e){var t=boeing_globals.state.get("currentTopic"),n=boeing_globals.topicsCollection.at(t).toJSON(),r=n.topic_episode_number+"-",i=e!==0?"-"+e:"",s=String(n.escaped_title).toLowerCase();return r+s+i},getAndSetGaActionStr:function(e){if(e!==undefined)return this.gaActionStr=e,this.getActionStr;var t=this.gaActionStr;return this.gaActionStr="topic=sub-nav-click",t},sendGaTopicsEvent:function(e,t){var n=this.getGA_Topics_Label(t);n!==undefined&&this.gaMixins.sendTopicsEvent(e,n)},navigateByKeys:function(e,t){var r="topic-sub-nav-click";t!==undefined&&(r=t);if(this.allowNavigateByKeysBool===!0){var i=e,s=i==38?-1:1,o=n(this.el).find("li.selected"),u=n(this.el).find("li").index(o),a=u+s,f=n(this.el).find("li"),l=f.length;if(a>=0&&a<l){a+=1,this.getAndSetGaActionStr(r);var c=n(this.el).find("li:nth-child("+a+")");c.trigger("click"),n(this.id).removeClass("hide")}else a>=l&&(this.sendGaTopicsEvent("topic-scroll","sc"),this.onNextTopicEvent());this.allowNavigateByKeysBool=!1,window.setTimeout(this.resetNavigateByKeys.bind(this),1500)}},onScrollNavEvent:function(e){this.navigateByKeys(40,"topic-scroll")},onStartDragOld:function(){this.navigateByKeys(40)},onKeypress:function(e){var t=e.keyCode,n=t==38||t==40;n&&this.navigateByKeys(t)},getNavIndexInfo:function(e){var t=n(this.el).find("li.selected"),r=n(this.el).find("li").index(t),i=n(this.el).find("li").index(e),s=i>r?"up":"down";return this.setSelected(e),s},setSelected:function(e){n(this.el).find("li").removeClass("selected"),n(e).addClass("selected")},onNavItemClick:function(e){var t=n(e.currentTarget),r=t.data("id"),i=t.data("type"),s=t.data("title"),o={id:r,type:i,title:s,index:t.index()+1,view_position:this.getNavIndexInfo(t)};this.sendNavEvent(o)},onNextTopicEvent:function(){var e={id:"nexttopic",type:"nexttopic",title:"next topic",view_position:"up"};this.trigger("TOPICS_NEXTTOPIC_EVENT",e)},sendNavEvent:function(e){var t=e;this.sendGaTopicsEvent(this.getAndSetGaActionStr(),e.index),this.trigger("TOPICS_NAV_EVENT",t)},removeFromStage:function(){this.cleanUp()},cleanUp:function(){this.scrollBtnView!=undefined&&this.scrollBtnView.removeFromStage(),this.topicsDom!=undefined&&(this.topicsDom.removeEventListener("mousewheel",this.onMouseWheel.bind(this)),this.topicsDom.removeEventListener("wheel",this.onMouseWheel.bind(this)),this.topicsDom=undefined),this.undelegateEvents(),n(this.el).html(""),n(this.el).removeAttr("style"),n("body").off("keydown"),this.Evt.stopListening(this),this.remove()},resetMouseWheel:function(){this.mouseWheelFired=!1},checkForDrag:function(e,n){var r=t.contains(e.target.classList,"no-drag")===!0,i=t.contains(e.currentTarget.classList,"no-drag")===!0,s=t.contains(e.target.classList,"ftscroller_y")===!0,o=t.contains(e.target.classList,"ps__scrollbar-y")===!0,u=t.contains(e.target.classList,".topic-type-timeline")===!0,a=t.contains(e.currentTarget.classList,".topic-type-timeline")===!0,f=t.contains(e.target.classList,".factoid")===!0,l=[r,i,s,o,u,a,f];return n!==undefined&&n===!0&&(l=[s]),t.any(l)},onMouseWheel:function(e){var t=e.target.tagName!="P",n=e.deltaY;navigator.userAgent.toLowerCase().indexOf("firefox")>-1&&(n*=2);
1if(Math.abs(n)>5&&t===!0&&this.mouseWheelFired===!1&&this.checkForDrag(e,!0)===!1){var r=n<=0?38:40;this.navigateByKeys(r),this.mouseWheelFired=!0,window.setTimeout(this.resetMouseWheel.bind(this),1500),e.preventDefault()}},onSwipeTopicsEvent:function(e){this.console.log("SWIPING HAPPENING IN NAV ",e);var t=e,n;t==1?n=38:t==-1&&(n=40),this.navigateByKeys(n)},onSwipeEvent:function(e){},addMouseWheelEvent:function(){this.topicsDom=document.getElementById("topics-stage"),this.topicsDom.addEventListener("mousewheel",this.onMouseWheel.bind(this),!1),this.topicsDom.addEventListener("wheel",this.onMouseWheel.bind(this),!1)},onVMouseUp:function(e){this.console.log("v mouse down ",e),this.isMouseDown=!1},onVMouseDown:function(e){this.console.log("v mouse down ",e),this.isMouseDown=!0,this.directionArr=[]},doDirectionCheck:function(e){if(this.directionArr.length<=6){this.directionArr.unshift(e);if(this.directionArr.length===6){var t=this.directionArr[this.directionArr.length-1],n=this.directionArr[0],r=t>n?40:38,i=Math.abs(t-n),s=boeing_globals.isTouchDevice===!0?80:280;i>s&&this.navigateByKeys(r),this.console.log("DIRECTION FOUND ",r,Math.abs(t-n))}}},onVMouseMove:function(e){this.isMouseDown===!0&&this.doDirectionCheck(e.clientY)},sendDragNav:function(){this.navigateByKeys(this.dragDir)},onDragStart:function(e){var t=this.draggable.getDirection()=="up";this.dragDir=t==1?40:38,this.allowEndDrag=!1,this.navigateByKeys(this.dragDir),this.resetDraggable(500)},resetDraggable:function(e){this.draggable.disable(),this.allowEndDrag=!0;var t=function(){this.draggable.enable()};window.setTimeout(t.bind(this),500)},onDragEnd:function(e){this.allowEndDrag==1&&(this.sendDragNav(),this.console.log("END: ",e.target,e.currentTarget))},onDragPress:function(e){var r=n(e.currentTarget),i=r.attr("id");if(i==="topics-stage"&&r.find(".topic-type-timeline")>0)return;var s=e.target.tagName==="P",o=t.contains(e.target.classList,"no-drag")===!0,u=t.contains(e.currentTarget.classList,"no-drag")===!0,a=t.contains(e.target.classList,"ftscroller_y")===!0,f=t.contains(e.target.classList,"ps__scrollbar-y")===!0,l=n(e.target).hasClass("factoid");this.draggable.zIndex=500;if(s===!0||o===!0||u===!0||a===!0||f===!0||l===!0)console.log("RESET: ",e.target,e.currentTarget),this.resetDraggable(1e3)},onSnapDrag:function(e){return Math.round(e/window.innerHeight)*window.innerHeight},addSwiping:function(){this.draggable=Draggable.create("#topics-stage",{type:"y",cursor:"auto",edgeResistance:0,zIndexBoost:!1,minimumMovement:16,onPress:this.onDragPress.bind(this),bounds:"#bng-topics",lockAxis:!0,throwProps:!0})[0],this.draggable.addEventListener("dragstart",this.onDragStart.bind(this)),this.draggable.addEventListener("dragend",this.onDragEnd.bind(this)),this.draggable.zIndex=500,window.bowie=this.draggable},afterRender:function(){var e=n(this.el).find("li:first-child");e.trigger("click"),this.scrollBtnView=new s({el:"#topics-scroll-button"},this.Evt),this.listenTo(this.scrollBtnView,"SCROLL_NAV_EVENT",this.onScrollNavEvent.bind(this)),n("body").on("keydown",this.onKeypress.bind(this)),this.addMouseWheelEvent(),this.addSwiping()},render:function(){var e={data:this.collection.toJSON()};this.console.log("this colleciotn on nav view is ",e);var t=o.to_html(i,e);n(this.el).html(t),this.id="#topics-navigation",this.alreadyLoaded==0?this.afterRender():n(this.id).addClass("hide"),this.alreadyLoaded=!0}});return u}),define("text!app/modules/topics-shell/views/templates/tmpl-stage.html",[],function(){return'<article id="topics-landing-page">\n\n</article>\n\n\n'});var _gsScope="undefined"!=typeof module&&module.exports&&"undefined"!=typeof global?global:this||window;(_gsScope._gsQueue||(_gsScope._gsQueue=[])).push(function(){"use strict";_gsScope._gsDefine("plugins.ThrowPropsPlugin",["plugins.TweenPlugin","TweenLite","easing.Ease","utils.VelocityTracker"],function(e,t,n,r){var i,s,o,u,a=function(t,n){e.call(this,"throwProps"),this._overwriteProps.length=0},f=999999999999999,l=1e-10,c=_gsScope._gsDefine.globals,h=!1,p={x:1,y:1,z:2,scale:1,scaleX:1,scaleY:1,rotation:1,rotationZ:1,rotationX:2,rotationY:2,skewX:1,skewY:1,xPercent:1,yPercent:1},d=function(e,t,n,r){for(var i,s,o=t.length,u=0,a=f;--o>-1;)i=t[o],s=i-e,0>s&&(s=-s),a>s&&i>=r&&n>=i&&(u=o,a=s);return t[u]},v=function(e,t,n,r){if("auto"===e.end)return e;n=isNaN(n)?f:n,r=isNaN(r)?-f:r;var i="function"==typeof e.end?e.end(t):e.end instanceof Array?d(t,e.end,n,r):Number(e.end);return i>n?i=n:r>i&&(i=r),{max:i,min:i,unitFactor:e.unitFactor}},m=function(e,t,n){for(var r in t)void 0===e[r]&&r!==n&&(e[r]=t[r]);return e},g=a.calculateChange=function(e,r,i,s){null==s&&(s=.05);var o=r instanceof n?r:r?new n(r):t.defaultEase;return i*s*e/o.getRatio(s)},y=a.calculateDuration=function(e,r,i,s,o){o=o||.05;var u=s instanceof n?s:s?new n(s):t.defaultEase;return Math.abs((r-e)*u.getRatio(o)/i/o)},b=a.calculateTweenDuration=function(e,i,s,o,u,f){if("string"==typeof e&&(e=t.selector(e)),!e)return 0;null==s&&(s=10),null==o&&(o=.2),null==u&&(u=1),e.length&&(e=e[0]||e);var c,p,d,b,w,E,S,x,T,N,C=0,L=9999999999,A=i.throwProps||i,O=i.ease instanceof n?i.ease:i.ease?new n(i.ease):t.defaultEase,M=isNaN(A.checkpoint)?.05:Number(A.checkpoint),_=isNaN(A.resistance)?a.defaultResistance:Number(A.resistance);for(c in A)"resistance"!==c&&"checkpoint"!==c&&"preventOvershoot"!==c&&(p=A[c],"object"!=typeof p&&(T=T||r.getByTarget(e),T&&T.isTrackingProp(c)?p="number"==typeof p?{velocity:p}:{velocity:T.getVelocity(c)}:(b=Number(p)||0,d=b*_>0?b/_:b/-_)),"object"==typeof p&&(void 0!==p.velocity&&"number"==typeof p.velocity?b=Number(p.velocity)||0:(T=T||r.getByTarget(e),b=T&&T.isTrackingProp(c)?T.getVelocity(c):0),w=isNaN(p.resistance)?_:Number(p.resistance),d=b*w>0?b/w:b/-w,E="function"==typeof e[c]?e[c.indexOf("set")||"function"!=typeof e["get"+c.substr(3)]?c:"get"+c.substr(3)]():e[c]||0,S=E+g(b,O,d,M),void 0!==p.end&&(p=v(p,S,p.max,p.min),(f||h)&&(A[c]=m(p,A[c],"end"))),void 0!==p.max&&S>Number(p.max)+l?(N=p.unitFactor||a.defaultUnitFactors[c]||1,x=E>p.max&&p.min!==p.max||b*N>-15&&45>b*N?o+.1*(s-o):y(E,p.max,b,O,M),L>x+u&&(L=x+u)):void 0!==p.min&&S<Number(p.min)-l&&(N=p.unitFactor||a.defaultUnitFactors[c]||1,x=E<p.min&&p.min!==p.max||b*N>-45&&15>b*N?o+.1*(s-o):y(E,p.min,b,O,M),L>x+u&&(L=x+u)),x>C&&(C=x)),d>C&&(C=d));return C>L&&(C=L),C>s?s:o>C?o:C},w=a.prototype=new e("throwProps");return w.constructor=a,a.version="0.9.10",a.API=2,a._autoCSS=!0,a.defaultResistance=100,a.defaultUnitFactors={time:1e3,totalTime:1e3},a.track=function(e,t,n){return r.track(e,t,n)},a.untrack=function(e,t){r.untrack(e,t)},a.isTracking=function(e,t){return r.isTracking(e,t)},a.getVelocity=function(e,t){var n=r.getByTarget(e);return n?n.getVelocity(t):NaN},a._cssRegister=function(){var e=c.com.greensock.plugins.CSSPlugin;if(e){var t=e._internals,n=t._parseToProxy,o=t._setPluginRatio,u=t.CSSPropTween;t._registerComplexSpecialProp("throwProps",{parser:function(e,t,f,l,c,h){h=new a;var d,v,m,g,y,b={},w={},E={},S={},x={},T={};s={};for(m in t)"resistance"!==m&&"preventOvershoot"!==m&&(v=t[m],"object"==typeof v?(void 0!==v.velocity&&"number"==typeof v.velocity?b[m]=Number(v.velocity)||0:(y=y||r.getByTarget(e),b[m]=y&&y.isTrackingProp(m)?y.getVelocity(m):0),void 0!==v.end&&(S[m]=v.end),void 0!==v.min&&(w[m]=v.min),void 0!==v.max&&(E[m]=v.max),v.preventOvershoot&&(T[m]=!0),void 0!==v.resistance&&(d=!0,x[m]=v.resistance)):"number"==typeof v?b[m]=v:(y=y||r.getByTarget(e),y&&y.isTrackingProp(m)?b[m]=y.getVelocity(m):b[m]=v||0),p[m]&&l._enableTransforms(2===p[m]));g=n(e,b,l,c,h),i=g.proxy,b=g.end;for(m in i)s[m]={velocity:b[m],min:w[m],max:E[m],end:S[m],resistance:x[m],preventOvershoot:T[m]};return null!=t.resistance&&(s.resistance=t.resistance),t.preventOvershoot&&(s.preventOvershoot=!0),c=new u(e,"throwProps",0,0,g.pt,2),l._overwriteProps.pop(),c.plugin=h,c.setRatio=o,c.data=g,h._onInitTween(i,s,l._tween),c}})}},a.to=function(e,n,r,a,f){n.throwProps||(n={throwProps:n}),0===f&&(n.throwProps.preventOvershoot=!0),h=!0;var l=new t(e,a||1,n);return l.render(0,!0,!0),l.vars.css?(l.duration(b(i,{throwProps:s,ease:n.ease}
1,r,a,f)),l._delay&&!l.vars.immediateRender?l.invalidate():o._onInitTween(i,u,l),h=!1,l):(l.kill(),l=new t(e,b(e,n,r,a,f),n),h=!1,l)},w._onInitTween=function(e,t,n){this.target=e,this._props=[],o=this,u=t;var i,s,a,f,l,c,p,d,y,b=n._ease,w=isNaN(t.checkpoint)?.05:Number(t.checkpoint),E=n._duration,S=t.preventOvershoot,x=0;for(i in t)if("resistance"!==i&&"checkpoint"!==i&&"preventOvershoot"!==i){if(s=t[i],"number"==typeof s)l=Number(s)||0;else if("object"!=typeof s||isNaN(s.velocity)){if(y=y||r.getByTarget(e),!y||!y.isTrackingProp(i))throw"ERROR: No velocity was defined in the throwProps tween of "+e+" property: "+i;l=y.getVelocity(i)}else l=Number(s.velocity);c=g(l,b,E,w),d=0,f="function"==typeof e[i],a=f?e[i.indexOf("set")||"function"!=typeof e["get"+i.substr(3)]?i:"get"+i.substr(3)]():e[i],"object"==typeof s&&(p=a+c,void 0!==s.end&&(s=v(s,p,s.max,s.min),h&&(t[i]=m(s,t[i],"end"))),void 0!==s.max&&Number(s.max)<p?S||s.preventOvershoot?c=s.max-a:d=s.max-a-c:void 0!==s.min&&Number(s.min)>p&&(S||s.preventOvershoot?c=s.min-a:d=s.min-a-c)),this._overwriteProps[x]=i,this._props[x++]={p:i,s:a,c1:c,c2:d,f:f,r:!1}}return!0},w._kill=function(t){for(var n=this._props.length;--n>-1;)null!=t[this._props[n].p]&&this._props.splice(n,1);return e.prototype._kill.call(this,t)},w._roundProps=function(e,t){for(var n=this._props,r=n.length;--r>-1;)(e[n[r].p]||e.throwProps)&&(n[r].r=t)},w.setRatio=function(e){for(var t,n,r=this._props.length;--r>-1;)t=this._props[r],n=t.s+t.c1*e+t.c2*e*e,t.r?n=Math.round(n):1===e&&(n=(1e4*n+(0>n?-0.5:.5)|0)/1e4),t.f?this.target[t.p](n):this.target[t.p]=n},e.activate([a]),a},!0),_gsScope._gsDefine("utils.VelocityTracker",["TweenLite"],function(e){var t,n,r,i,s=/([A-Z])/g,o={},u={x:1,y:1,z:2,scale:1,scaleX:1,scaleY:1,rotation:1,rotationZ:1,rotationX:2,rotationY:2,skewX:1,skewY:1,xPercent:1,yPercent:1},a=document.defaultView?document.defaultView.getComputedStyle:function(){},f=function(e,t,n){var r=(e._gsTransform||o)[t];return r||0===r?r:(e.style[t]?r=e.style[t]:(n=n||a(e,null))?r=n[t]||n.getPropertyValue(t)||n.getPropertyValue(t.replace(s,"-$1").toLowerCase()):e.currentStyle&&(r=e.currentStyle[t]),parseFloat(r)||0)},l=e.ticker,c=function(e,t,n){this.p=e,this.f=t,this.v1=this.v2=0,this.t1=this.t2=l.time,this.css=!1,this.type="",this._prev=null,n&&(this._next=n,n._prev=this)},h=function(){var e,n,s=t,o=l.time;if(o-r>=.03)for(i=r,r=o;s;){for(n=s._firstVP;n;)e=n.css?f(s.target,n.p):n.f?s.target[n.p]():s.target[n.p],(e!==n.v1||o-n.t1>.15)&&(n.v2=n.v1,n.v1=e,n.t2=n.t1,n.t1=o),n=n._next;s=s._next}},p=function(e){this._lookup={},this.target=e,this.elem=e.style&&e.nodeType?!0:!1,n||(l.addEventListener("tick",h,null,!1,-100),r=i=l.time,n=!0),t&&(this._next=t,t._prev=this),t=this},d=p.getByTarget=function(e){for(var n=t;n;){if(n.target===e)return n;n=n._next}},v=p.prototype;return v.addProp=function(t,n){if(!this._lookup[t]){var r=this.target,i="function"==typeof r[t],s=i?this._altProp(t):t,o=this._firstVP;this._firstVP=this._lookup[t]=this._lookup[s]=o=new c(s!==t&&0===t.indexOf("set")?s:t,i,o),o.css=this.elem&&(void 0!==this.target.style[o.p]||u[o.p]),o.css&&u[o.p]&&!r._gsTransform&&e.set(r,{x:"+=0",overwrite:!1}),o.type=n||o.css&&0===t.indexOf("rotation")?"deg":"",o.v1=o.v2=o.css?f(r,o.p):i?r[o.p]():r[o.p]}},v.removeProp=function(e){var t=this._lookup[e];t&&(t._prev?t._prev._next=t._next:t===this._firstVP&&(this._firstVP=t._next),t._next&&(t._next._prev=t._prev),this._lookup[e]=0,t.f&&(this._lookup[this._altProp(e)]=0))},v.isTrackingProp=function(e){return this._lookup[e]instanceof c},v.getVelocity=function(e){var t,n,r,i=this._lookup[e],s=this.target;if(!i)throw"The velocity of "+e+" is not being tracked.";return t=i.css?f(s,i.p):i.f?s[i.p]():s[i.p],n=t-i.v2,("rad"===i.type||"deg"===i.type)&&(r="rad"===i.type?2*Math.PI:360,n%=r,n!==n%(r/2)&&(n=0>n?n+r:n-r)),n/(l.time-i.t2)},v._altProp=function(e){var t=e.substr(0,3),n=("get"===t?"set":"set"===t?"get":t)+e.substr(3);return"function"==typeof this.target[n]?n:e},p.getByTarget=function(n){var r=t;for("string"==typeof n&&(n=e.selector(n)),n.length&&n!==window&&n[0]&&n[0].style&&!n.nodeType&&(n=n[0]);r;){if(r.target===n)return r;r=r._next}},p.track=function(e,t,n){var r=d(e),i=t.split(","),s=i.length;for(n=(n||"").split(","),r||(r=new p(e));--s>-1;)r.addProp(i[s],n[s]||n[0]);return r},p.untrack=function(e,n){var r=d(e),i=(n||"").split(","),s=i.length;if(r){for(;--s>-1;)r.removeProp(i[s]);
1r._firstVP&&n||(r._prev?r._prev._next=r._next:r===t&&(t=r._next),r._next&&(r._next._prev=r._prev))}},p.isTracking=function(e,t){var n=d(e);return n?!t&&n._firstVP?!0:n.isTrackingProp(t):!1},p},!0)}),_gsScope._gsDefine&&_gsScope._gsQueue.pop()(),function(e){"use strict";var t=function(){return(_gsScope.GreenSockGlobals||_gsScope)[e]};"function"==typeof define&&define.amd?define("ThrowProps",["TweenLite"],t):"undefined"!=typeof module&&module.exports&&(require("../TweenLite.js"),module.exports=t())}("ThrowPropsPlugin"),define("app/modules/topics-shell/views/topics-stage-view",["require","underscore","jquery","backbone","app/base-classes/base-view","app/modules/topics-shell/models/model","text!app/modules/topics-shell/views/templates/tmpl-stage.html","mustache","TweenMax","ThrowProps","Draggable","bc"],function(e){var t=e("underscore"),n=e("jquery"),r=e("backbone"),i=e("app/base-classes/base-view"),s=e("app/modules/topics-shell/models/model"),o=e("text!app/modules/topics-shell/views/templates/tmpl-stage.html"),u=e("mustache"),a=e("TweenMax"),f=e("ThrowProps"),l=e("Draggable"),c=e("bc"),h=i.extend({el:"#topics-stage",initialize:function(e){this.debug=!0,this.Evt=e,this.elStr="#topics-stage",this.init(),this.listenTo(this.Evt,"TOPICS_NAV_EVENT",this.onTopicsNavEvent.bind(this)),this.listenTo(this.Evt,"TOPICS_NEXTTOPIC_EVENT",this.onTopicsNextEvent.bind(this)),this.listenTo(this.Evt,"TOPICS_STAGE_EVENT:VIEW_RENDERED",this.onAnimateStage.bind(this)),this.listenTo(this.Evt,"TOPICS_ITEM_COLLECTION_UPDATED",this.onTopicsCollectionUpdated.bind(this)),this.Evt.listenTo(this,"STAGE_READY",this.Evt.onStageReadyEvent),this.Evt.listenTo(this,"REMOVE_VIEW",this.Evt.onStageRemoveViewEvent),this.render(),this.viewRendering=!1,this.eventsQueue=[]},events:{},onTopicsCollectionUpdated:function(e){this.collection=e},onTopicsNavEvent:function(e){if(this.viewRendering==0){this.currentDir=e.view_position,this.findAndRemoveVideoInstances();var t=this.createStageEl();e.article_id=t,this.trigger("STAGE_READY",e),this.viewRendering=!0}else this.eventsQueue.push(e);this.console.log("topics nav event in stage ",e)},onTopicsNextEvent:function(e){this.console.log("topics next event in stage",e)},createStageEl:function(){var e=n("<article></article>"),r="topics-view-"+String(t.random(1,1e6));return e.attr("id",r),this.currentDir=="up"?(this.$stage.append(e),this.$stage.addClass("slide-up")):(this.$stage.prepend(e),this.$stage.addClass("slide-down")),r},onViewLoaded:function(e){this.currentDir=this.$stage.data("dir")},addView:function(e){e=="up"?this.$stage.addClass("slide-up"):this.$stage.addClass("slide-down");var t=this.currentDir=="up"?"-100%":"100%";a.to(this.$stage,.75,{top:t,ease:Power2.easeInOut,onComplete:this.onAnimComplete.bind(this)})},findAndRemoveVideoInstances:function(){var e=n(this.elStr+" article:nth-child(2)");this.currentDir=="up"?e=n(this.elStr+" article:first-child"):e=n(this.elStr+" article:nth-child(1)");if(e.find("video").length){var t=e.find("video").closest(".bc-player-cENsmHkkB_default").attr("id");if(t){var r=c(t);r.dispose()}else console.warn("Unable to find Brightcove player to properly dispose.")}},onAnimateStage:function(e){var t=this.currentDir=="up"?"-100%":"100%";a.to(this.$stage,.75,{top:t,ease:Power2.easeInOut,onStart:this.onAnimStart.bind(this),onComplete:this.onAnimComplete.bind(this)})},onAnimStart:function(){var e,t;this.findAndRemoveVideoInstances(),this.currentDir=="up"?(e=n(this.elStr+" article:first-child"),t="slide-up"):(e=n(this.elStr+" article:nth-child(2)"),t="slide-down")},onAnimComplete:function(){var e,t;this.currentDir=="up"?(e=n(this.elStr+" article:first-child"),t="slide-up"):(e=n(this.elStr+" article:nth-child(2)"),t="slide-down");var r=e.data("article-id");if(r!=undefined){var i={id:r};this.trigger("REMOVE_VIEW",i)}else e.remove();this.$stage.removeClass(t),this.$stage.removeAttr("style"),this.viewRendering=!1,this.checkQueue()},checkQueue:function(){this.eventsQueue.length>=1&&this.onTopicsNavEvent(this.eventsQueue.shift())},removeFromStage:function(){this.cleanUp()},cleanUp:function(){this.undelegateEvents(),n(this.el).removeClass("reveal"),n(this.el).html(""),n(this.el).removeAttr("style"),this.Evt.stopListening(this),this.remove()},afterRender:function(){this.$stage=n(this.el)},render:function(){var e=u.to_html(o);
1n(this.el).append(e),this.id="#bng-topics-content",this.afterRender()}});return h}),define("app/modules/topics-shell/views/view",["require","underscore","jquery","backbone","app/base-classes/base-view","app/modules/topics-shell/models/model","text!app/modules/topics-shell/views/templates/tmpl.html","app/modules/topics-shell/views/topics-nav-view","app/modules/topics-shell/views/topics-stage-view","jquery-mobile","mustache","TweenMax"],function(e){var t=e("underscore"),n=e("jquery"),r=e("backbone"),i=e("app/base-classes/base-view"),s=e("app/modules/topics-shell/models/model"),o=e("text!app/modules/topics-shell/views/templates/tmpl.html"),u=e("app/modules/topics-shell/views/topics-nav-view"),a=e("app/modules/topics-shell/views/topics-stage-view"),f=e("jquery-mobile"),l=e("mustache"),c=e("TweenMax"),h=i.extend({el:"#bng-topics",initialize:function(e,t,n){this.debug=!1,this.Evt=e,this.collection=t,this.addRandomModal=n,this.init(),this.firstLoaded=!0,this.render(),this.listenTo(this.Evt,"TOPICS_NAV_EVENT",this.onTopicsNavEvent.bind(this)),this.listenTo(this.Evt,"TOPICS_ITEM_COLLECTION_UPDATED",this.onTopicsCollectionUpdated.bind(this)),this.addSubviews()},onTopicsCollectionUpdated:function(e){this.collection=e},addSubviews:function(){this.console.log("topics shell collection is ",this.collection),this.nav=new u(this.Evt,this.collection),this.stage=new a(this.Evt),this.nav.start();var e=function(){this.nav=new u(this.Evt,this.collection),this.nav.start()}},checkIntroScreen:function(e){e==0&&this.firstLoaded==0&&n("#topics-scroll-button").remove(),this.firstLoaded=!1},onTopicsNavEvent:function(e){var t=e.type=="intro"},events:{},onViewLoaded:function(e){this.console.log("loaded view main controller is ",e)},removeFromStage:function(){c.to(n(this.el),.5,{opacity:0,ease:Power2.easeInOut,onComplete:this.cleanUp.bind(this)})},cleanUp:function(){this.undelegateEvents(),this.stage.removeFromStage(),this.nav.removeFromStage(),this.Evt.stopListening(this),n(this.el).removeClass("reveal"),n(this.el).html(""),n(this.el).removeAttr("style")},afterRender:function(){n(this.el).addClass("reveal"),this.$stage=n("#topics-stage");if(boeing_globals.device==="mobile"){var e=n("#ui-branding header");e.addClass("black-bg")}this.addRandomModal===!0},getData:function(){var e={num:this.collection.topic_num,title:this.collection.topic_title,description:this.collection.topic_description,url:this.collection.topic_url,scroll:boeing_globals.uiTextModel.get("scroll"),"use-scrollbar":boeing_globals.uiTextModel.get("use-scrollbar"),pages:this.collection.toJSON()};return e},render:function(){this.console.log("the collection ",this.collection);var e=this.getData(),t=l.to_html(o,e);n(this.el).append(t),this.id="#bng-topics-content",this.afterRender()}});return h}),define("text!app/modules/topics-views/views/templates/tmpl.html",[],function(){return"  <header>\n    <h1>{{title}}</h1>\n    <h2>{{type}}</h2>\n  </header>\n"}),define("text!app/modules/topics-views/views/templates/tmpl-intro.html",[],function(){return'<header>\n    <p>{{interactive-topic}}</p>\n    <span>{{title}}</span>\n    <h5>{{{description}}}</h5>\n    <div class="topic-social">\n      <svg  title="Facebook"  data-event="link" data-val="{{facebookUrl}}"  class="facebook-cta" xmlns="//www.w3.org/2000/svg" xmlns:xlink="//www.w3.org/1999/xlink" preserveAspectRatio="xMidYMid" width="24px" height="13px" viewBox="0 0 6.72 14.031">\n          <defs>\n            <style>\n              .cls-1 {\n                fill: #fff;\n                opacity: 1;\n                fill-rule: evenodd;\n              }\n            </style>\n          </defs>\n          <path d="M2.210,14.014 L2.195,7.474 L0.002,7.474 L0.002,4.813 L2.190,4.813 L2.190,1.749 C2.190,1.749 2.308,0.015 3.519,0.015 C4.731,0.015 6.724,0.015 6.724,0.015 L6.724,2.071 L4.692,2.071 L4.692,4.773 L6.685,4.773 L6.685,7.394 L4.731,7.394 L4.731,14.046 L2.210,14.014 Z" class="cls-1"/>\n        </svg>\n        <svg  title="Twitter" data-event="link" data-val="{{twitterText}}" class="twitter-cta" xmlns="//www.w3.org/2000/svg" xmlns:xlink="//www.w3.org/1999/xlink" preserveAspectRatio="xMidYMid" width="24px" height="21px" viewBox="0 0 13.53 11.156">\n          <defs>\n            <style>\n              .cls-1 {\n                fill: #fff;\n                opacity: 1;\n                fill-rule: evenodd;\n              }\n            </style>\n          </defs>\n          <path d="M13.517,1.334 C13.020,1.558 12.485,1.709 11.924,1.777 C12.497,1.429 12.936,0.877 13.144,0.220 C12.607,0.542 12.014,0.777 11.382,0.903 C10.876,0.356 10.155,0.014 9.357,0.014 C7.825,0.014 6.583,1.274 6.583,2.829 C6.583,3.049 6.607,3.264 6.655,3.470 C4.349,3.353 2.305,2.232 0.936,0.529 C0.698,0.945 0.561,1.428 0.561,1.944 C0.561,2.921 1.051,3.782 1.795,4.287 C1.340,4.272 0.913,4.146 0.539,3.935 C0.538,3.947 0.538,3.959 0.538,3.970 C0.538,5.334 1.495,6.472 2.764,6.730 C2.531,6.795 2.286,6.829 2.033,6.829 C1.854,6.829 1.680,6.811 1.511,6.779 C1.864,7.897 2.888,8.711 4.102,8.733 C3.153,9.488 1.957,9.938 0.657,9.938 C0.433,9.938 0.212,9.925 -0.
1005,9.899 C1.223,10.698 2.681,11.164 4.248,11.164 C9.350,11.164 12.141,6.875 12.141,3.155 C12.141,3.033 12.138,2.912 12.133,2.791 C12.675,2.394 13.145,1.898 13.517,1.334 Z" class="cls-1"/>\n        </svg>\n    </div>\n</header>\n\n<img src="{{url}}" />'}),define("text!app/modules/topics-views/views/templates/tmpl-section.html",[],function(){return'<ol>\n    <li class="panel article-right image">\n        <figure>\n        <img src="{{url}}" />\n        </figure>\n    </li>\n\n    <li class="panel article-left black">\n        <header class="left">\n            <h4>{{eyebrow}}</h4>\n            <span>{{title}}</span>\n            <h3>{{{description}}}</h3>\n        </header>\n    </li>\n</ol>'}),define("text!app/modules/topics-views/views/templates/tmpl-article.html",[],function(){return""}),define("text!app/modules/topics-views/views/templates/tmpl-gallery.html",[],function(){return'<ol class="gallery-ui-container">\n    <li class="panel gallery-right text black">\n        <header class="left">\n            <h4>{{eyebrow}} | {{photo-gallery}}</h4>\n            <h1>{{title}}</h1>\n            \n            <div class="content"></div>\n\n            <div class="gallery-buttons">\n                <div id="btn-left" class="gallery-btn" data-dir="-1">\n                    <svg \n                         xmlns="//www.w3.org/2000/svg"\n                         xmlns:xlink="//www.w3.org/1999/xlink"\n                         width="11px" height="18px">\n                        <path fill-rule="evenodd"  fill="rgb(255, 255, 255)"\n                         d="M10.985,15.960 L8.959,17.987 L2.049,11.033 L2.017,11.065 L-0.008,9.038 L0.030,9.000 L-0.008,8.962 L2.017,6.935 L2.049,6.967 L8.959,0.013 L10.985,2.040 L4.069,9.000 L10.985,15.960 Z"/>\n                    </svg>\n                </div>\n                <div id="btn-right" class="gallery-btn" data-dir="1">\n                    <svg \n                         xmlns="//www.w3.org/2000/svg"\n                         xmlns:xlink="//www.w3.org/1999/xlink"\n                         width="11px" height="18px">\n                        <path fill-rule="evenodd"  fill="rgb(255, 255, 255)"\n                         d="M11.008,9.038 L8.983,11.065 L8.951,11.033 L2.041,17.987 L0.015,15.960 L6.931,9.000 L0.015,2.040 L2.041,0.013 L8.951,6.967 L8.983,6.935 L11.008,8.962 L10.970,9.000 L11.008,9.038 Z"/>\n                    </svg>\n                </div>\n                <p class="gallery-count"></p>\n                \n            </div>\n        </header>\n    </li>\n</ol>\n\n\n<ol class="gallery-image-container">\n    <li class="panel gallery-left zoom-container">\n        <dl class="img-container no-drag"></dl>\n    </li>\n</ol>\n\n\n\n'}),define("text!app/modules/topics-views/views/templates/tmpl-hotspots.html",[],function(){return"<div class=\"hotspot\">\n    <figure>\n            {{{thinglink}}}\n    </figure>\n\n    <header class=\"hotspot-caption\">\n        <h4>{{eyebrow}} | {{interactive}}</h4>\n        <span>{{title}}</span>\n        <p>{{{description}}}</p>\n    </header>\n</div>\n\n<!-- Embed code for: Group 'BOEING' -->\n<script charset=\"utf-8\" type=\"text/javascript\">\n    __tlid = '746756070570983426';\n    setTimeout(function(){(function(d,t){var s=d.createElement(t),x=d.getElementsByTagName(t)[0];\n        s.type='text/javascript';s.async=true;s.src='//cdn.thinglink.me/jse/embed.js';\n        x.parentNode.insertBefore(s,x);})(document,'script');},0);\n</script>"}),define("text!app/modules/topics-views/views/templates/tmpl-timeline.html",[],function(){return'<div class="centered">\n    <header class="top-header">\n        <p>{{eyebrow}} | {{timeline}}</p>\n        <span>{{title}}</span>\n    </header>\n    \n    <div id="timeline-container">\n        <!-- <div class="shadow left"></div> -->\n        <ul>\n            {{#years}}\n            <li class="zoom-container">\n                <dl>\n                    <dt data-title="{{content.0.overlay_title}}" data-text="{{content.0.overlay_text}}" data-url="{{content.0.overlay.url}}" >\n                        <img src="{{content.0.image.url}}" />\n\n                        <div class="copy">\n                            <h4>
1\n                                <span>{{content.0.date}}</span><br>\n                                {{content.0.title}}\n                            </h4>\n                            <p>{{content.0.text}}</p>\n                        </div>\n                    </dt>\n\n                </dl>\n                <header class="bottom-border">\n                    <div class="vertical-line"></div>\n                    <h6 class="year">{{year}}</h6>\n                </header>\n            </li>\n            {{/years}}\n            \n        </ul>\n        <!-- <div class="shadow right"></div> -->\n    </div>\n</div>\n\n'}),define("text!app/modules/topics-views/views/templates/tmpl-slider.html",[],function(){return'<div class="centered">\n    <header>\n        <p>{{eyebrow}} | {{slider-gallery}}</p>\n        <h1>{{title}}</h1>\n        <h5>{{{description}}}</h5>\n    </header>\n\n    <dl>\n        <dt class="cd-handle">\n            <img src="assets/images/topic-slider-btn.png" class="no-drag" width="68" height="68" />\n            <!--span class="cd-handle"></span-->\n        </dt>\n\n\n        <dd class="slider-image before">\n            <!--\n            <img src="{{image_before}}" />\n            -->\n\n            <div class="overlay"></div>\n            \n        </dd>\n\n        <dd class="slider-image after">\n            <!--\n            <img src="{{image_after}}" />\n            -->\n            <div class="overlay"></div>\n            \n        </dd>\n\n        <!--\n            <dd  class="cd-borders"></dd>\n        -->\n    </dl>\n</div>\n'}),define("text!app/modules/topics-views/views/templates/tmpl-credits.html",[],function(){return'<div class="overlay-close-btn"></div>\n\n<ol>\n    <li class="panel article-left black">\n        <header class="left">\n            <h4>{{title}}</h4>\n            <span>{{sources-and-credits}}</span>\n        </header>\n    </li>\n\n    <li class="panel article-right no-drag">\n        <div id="credit-items" class="footnote-content no-drag">\n        {{#content}}\n        <dl class="footnote-item {{linkedClass}} no-drag" data-url="{{url}}">\n            <dt><div class="icon {{type}}"></div></dt>\n            <dd class="no-drag">\n                <p>{{title}} <span>{{attribution}}</span></p>\n            </dd>\n                {{#image}}\n               <dd class="no-drag">\n                 <img  src="{{.}}" width="100" />\n               </dd>\n                {{/image}}\n        </dl>\n\n        {{/content}}\n        </div>\n\n\n    </li>\n</ol>'}),define("text!app/modules/topics-views/views/templates/tmpl-factoid.html",[],function(){return'<div class="centered factoid">\n    <header>\n        <h4>{{eyebrow}} | {{facts-and-stats}}</h4>\n        <h2>{{title}}</h2>\n    </header>\n\n    <ul>\n        <li class="fact-1">\n            <dl>\n                <dd class="radial-lines"></dd>\n                <dd class="levels"></dd>\n                <dd class="background" style="background-image: url(\'{{fact_1_image}}\')" ></dd>\n                <dt>\n                <h1>{{fact_1_title}}</h1>\n                <p>{{{fact_1_text}}}</p>\n                </dt>\n            </dl>\n\n        </li>\n\n        <li class="fact-2">\n            <dl>\n                <dd class="radial-lines"></dd>\n                <dd class="levels"></dd>\n                <dd class="background" style="background-image: url(\'{{fact_2_image}}\')" ></dd>\n                <dt>\n                <h1>{{fact_2_title}}</h1>\n                <p>{{{fact_2_text}}}</p>\n                </dt>\n            </dl>\n\n        </li>\n\n        <li class="fact-3">\n            <dl>\n                <dd class="radial-lines"></dd>\n                <dd class="levels"></dd>\n                <dd class="background" style="background-image: url(\'{{fact_3_image}}\')" ></dd>\n                <dt>\n                <h1>{{fact_3_title}}</h1>\n                <p>{{{fact_3_text}}}</p>\n                </dt>\n            </dl>\n\n        </li>\n\n\n\n\n\n\n        {{#facts}}\n        <li>\n            <dl>\n                <dd class="radial-lines"></dd>\n                <dd class="levels"></dd>\n                <dd class="background"></dd>\n                <dt>\n                <h1>{{title}}</h1>\n                <p>{{text}}</p>\n                </dt>\n            </dl>\n\n        </li>\n        {{/facts}}\n    </ul>\n</div>'}),define("text!app/modules/topics-views/views/templates/tmpl-fullscreen-video.html",[],function(){return'<div class="video-parent">\n\n<video poster="{{poster_frame}}" src="{{video}}">\n\n\n\n</video>\n\n</div>'}),define("text!app/modules/topics-views/views/templates/tmpl-next-topic.html",[],function(){return'<div class="background-video-loop">\n    <video id="topics-view-end" data-account="800000612001" data-player="cENsmHkkB" data-video-id="{{topic_video_loop_id}}" data-embed="default" playsinline autoplay muted loop class="bg-vid-loop">\n        <!-- <source src="{{topic_video_loop}}" /> -->\n    </video>\n</div>\n\n<div class="centered">\n    <header class="up-next {{layoutClass}}">\n        <div class="desc">\n            <div class="topic-desc">\n                <h3>\n                    <svg xmlns="//www.w3.org/2000/svg" xmlns:xlink="//www.w3.org/1999/xlink" width="90px" height="90px">\n                        <path\n                            fill-rule="evenodd"\n                            fill="#0098db"\n                            d="M45.000,-0.000 C20.147,-0.000 -0.000,20.147 -0.000,45.000 C-0.000,69.853 20.147,90.000 45.000,9
10.000 C69.853,90.000 90.000,69.853 90.000,45.000 C90.000,20.147 69.853,-0.000 45.000,-0.000 ZM45.000,88.500 C21.014,88.500 1.500,68.986 1.500,45.000 C1.500,21.014 21.014,1.500 45.000,1.500 C68.986,1.500 88.500,21.014 88.500,45.000 C88.500,68.986 68.986,88.500 45.000,88.500 ZM60.810,24.381 L34.603,50.680 L34.603,41.725 C34.603,39.075 32.462,36.926 29.821,36.926 C27.180,36.926 25.039,39.075 25.039,41.725 L25.039,62.264 C25.039,64.205 26.204,65.955 27.990,66.697 C28.583,66.944 29.204,67.063 29.821,67.063 C31.065,67.063 32.287,66.576 33.202,65.657 L67.572,31.167 C69.440,29.292 69.440,26.256 67.572,24.381 C65.705,22.506 62.678,22.506 60.810,24.381 Z"\n                        /></svg\n                    >{{title}}\n                </h3>\n            </div>\n        </div>\n\n        <div class="topic-social">\n            <h5 id="credits-btn">{{sources-and-credits}}</h5>\n            <span>|</span>\n            <h5>{{share-this-topic}}</h5>\n\n            <svg\n                title="Facebook"\n                data-event="link"\n                data-val="{{facebookUrl}}"\n                class="facebook-cta social"\n                xmlns="//www.w3.org/2000/svg"\n                xmlns:xlink="//www.w3.org/1999/xlink"\n                preserveAspectRatio="xMidYMid"\n                width="24px"\n                height="21px"\n                viewB
1ox="0 0 6.72 14.031"\n            >\n                <defs>\n                    <style>\n                        .cls-1 {\n                            fill: #fff;\n                            opacity: 1;\n                            fill-rule: evenodd;\n                        }\n                    </style>\n                </defs>\n                <path\n                    d="M2.210,14.014 L2.195,7.474 L0.002,7.474 L0.002,4.813 L2.190,4.813 L2.190,1.749 C2.190,1.749 2.308,0.015 3.519,0.015 C4.731,0.015 6.724,0.015 6.724,0.015 L6.724,2.071 L4.692,2.071 L4.692,4.773 L6.685,4.773 L6.685,7.394 L4.731,7.394 L4.731,14.046 L2.210,14.014 Z"\n                    class="cls-1"\n                />\n            </svg>\n\n            <svg\n                title="Twitter"\n                data-event="link"\n                data-val="{{twitterUrl}}"\n                class="twitter-cta social"\n                xmlns="//www.w3.org/2000/svg"\n                xmlns:xlink="//www.w3.org/1999/xlink"\n                preserveAspectRatio="xMidYMid"\n                width="24px"\n                height="21px"\n                viewB
1ox="0 0 13.53 11.156"\n            >\n                <defs>\n                    <style>\n                        .cls-1 {\n                            fill: #fff;\n                            opacity: 1;\n                            fill-rule: evenodd;\n                        }\n                    </style>\n                </defs>\n                <path\n                    d="M13.517,1.334 C13.020,1.558 12.485,1.709 11.924,1.777 C12.497,1.429 12.936,0.877 13.144,0.220 C12.607,0.542 12.014,0.777 11.382,0.903 C10.876,0.356 10.155,0.014 9.357,0.014 C7.825,0.014 6.583,1.274 6.583,2.829 C6.583,3.049 6.607,3.264 6.655,3.470 C4.349,3.353 2.305,2.232 0.936,0.529 C0.698,0.945 0.561,1.428 0.561,1.944 C0.561,2.921 1.051,3.782 1.795,4.287 C1.340,4.272 0.913,4.146 0.539,3.935 C0.538,3.947 0.538,3.959 0.538,3.970 C0.538,5.334 1.495,6.472 2.764,6.730 C2.531,6.795 2.286,6.829 2.033,6.829 C1.854,6.829 1.680,6.811 1.511,6.779 C1.864,7.897 2.888,8.711 4.102,8.733 C3.153,9.488 1.957,9.938 0.657,9.938 C0.433,9.938 0.212,9.925 -0.005,9.899 C1.223,10.698 2.681,11.164 4.248,11.164 C9.350,11.164 12.141,6.875 12.141,3.155 C12.141,3.033 12.138,2.912 12.133,2.791 C12.675,2.394 13.145,1.898 13.517,1.334 Z"\n                    class="cls-1"\n                />\n            </svg>\n        </div>\n    </header>\n\n    <ul>\n        <li>\n            <img src="{{next_url}}" width="480" />\n        </li>\n        <li>\n            <aside>\n                <h4>{{up-next}}:</h4>\n                <p>{{next_eyebrow}}</p>\n                <h1>{{next_title}}</h1>\n            </aside>\n        </li>\n    </ul>\n</div>\n'}),define("app/utils/zoom-and-pan-mixins",["require"],function(e){var t={getDefaultTwitterText:function(){return"The%20epic%20five-part%20series%20explores%20100%20years%20
1of%20flight.%20Watch%20%23TheAgeofAerospace%20at%20THEAGEOFAEROSPACE.COM"},extendNavHitState:function(){$("#topics-navigation").addClass("extend-hit-state")},hideUIForZoom:function(e,t){e==undefined||e==1?this.addZoomClass():this.removeZoomClass(t)},getZoomUIItems:function(){return["#topics-navigation","#topics-scroll-button","#main-player","#language-pulldown"]},removeZoomClass:function(e){var t=this.getZoomUIItems(),n=function(e,t){$(t).removeClass("zoom-fade-out")};$(t).each(n),e!="article"&&$("#topics-navigation").removeClass("extend-hit-state")},addZoomClass:function(){var e=this.getZoomUIItems(),t=function(e,t,n){$(t).addClass("zoom-fade-out")};$(e).each(t)},startMouseMove:function(e){var t=e;t.hasOwnProperty("pageX")===!1&&(t.pageX=t.clientX,t.pageY=t.clientY);var n=t.pageX,r=t.pageY,i=window.innerWidth,s=window.innerHeight,o=$(this.zoomImgStr).width(),u=$(this.zoomImgStr).height(),a=u/s,f=o/i,l=Math.floor(100*(a-1)),c=Math.floor(100*(f-1));a=Math.floor(a*100)/2,f=Math.floor(f*100)/2;var h=n/i,p=r/s,d=f-Math.floor(c*h),v=a-Math.floor(l*p),m=String(d)+"%",g=String(v)+"%";this.moveImage==0&&(g="0",m="0"),this.moveImage==1?TweenMax.to(this.imgContainerStr,.35,{css:{top:g,left:m},ease:Power2.easeOut}):(TweenMax.killAll(),this.stopMouseMove())},swipeDetect:function(t,n){var r=t,i,s,o,u,a,f=150,l=100,c=1800,h,p,d=n||function(e){},v=boeing_globals.isTouchDevice==1?"touchstart":"mousedown",m=boeing_globals.isTouchDevice==1?"touchmove":"mousemove",g=boeing_globals.isTouchDevice==1?"touchend":"mouseup";r.addEventListener(v,function(e){console.log(" e is ",e);var t=e;i="none",dist=0,s=t.pageX,o=t.pageY,p=(new Date).getTime(),e.preventDefault()},!1),r.addEventListener(m,function(e){e.preventDefault()},!1),r.addEventListener(g,function(e){var t=e;u=t.pageX-s,a=t.pageY-o,h=(new Date).getTime()-p,h<=c&&(Math.abs(u)>=f&&Math.abs(a)<=l?i=u<0?"left":"right":Math.abs(a)>=f&&Math.abs(u)<=l&&(i=a<0?"up":"down")),d(i),e.preventDefault()},!1)}};return t}),define("app/base-classes/base-view-topics",["require","underscore","jquery","backbone","mustache","text!app/modules/topics-views/views/templates/tmpl.html","text!app/modules/topics-views/views/templates/tmpl-intro.html","text!app/modules/topics-views/views/templates/tmpl-section.html","text!app/modules/topics-views/views/templates/tmpl-article.html","text!app/modules/topics-views/views/templates/tmpl-gallery.html","text!app/modules/topics-views/views/templates/tmpl-hotspots.html","text!app/modules/topics-views/views/templates/tmpl-timeline.html","text!app/modules/topics-views/views/templates/tmpl-slider.html","text!app/modules/topics-views/views/templates/tmpl-credits.html","text!app/modules/topics-views/views/templates/tmpl-factoid.html","text!app/modules/topics-views/views/templates/tmpl-fullscreen-video.html","text!app/modules/topics-views/views/templates/tmpl-next-topic.html","app/utils/zoom-and-pan-mixins","TweenMax"],function(e){var t=e("underscore"),n=e("jquery"),r=e("backbone"),i=e("mustache"),s=e("text!app/modules/topics-views/views/templates/tmpl.html"),o=e("text!app/modules/topics-views/views/templates/tmpl-intro.html"),u=e("text!app/modules/topics-views/views/templates/tmpl-section.html"),a=e("text!app/modules/topics-views/views/templates/tmpl-article.html"),f=e("text!app/modules/topics-views/views/templates/tmpl-gallery.html"),l=e("text!app/modules/topics-views/views/templates/tmpl-hotspots.html"),c=e("text!app/modules/topics-views/views/templates/tmpl-timeline.html"),h=e("text!app/modules/topics-views/views/templates/tmpl-slider.html"),p=e("text!app/modules/topics-views/views/templates/tmpl-credits.html"),d=e("text!app/modules/topics-views/views/templates/tmpl-factoid.html"),v=e("text!app/modules/topics-views/views/templates/tmpl-fullscreen-video.html"),m=e("text!app/modules/topics-views/views/templates/tmpl-next-topic.html"),g=e("app/utils/zoom-and-pan-mixins"),y=e("TweenMax"),b=r.View.extend({init:function(){this.setDebugEnv(),this.Evt.listenTo(this,"RENDERED",this.Evt.onStageViewEvent),this.Evt.listenTo(this,"REMOVED",this.Evt.onStageViewRemoved),this.listenTo(this.Evt,"TOPICS_STAGE_EVENT:REMOVE_VIEW",this.onStageRemoveViewEvent.bind(this)),this.tmpl=this.getTemplate(),this.isMobile=window.boeing_globals.device=="mobile"},getTemplate:function(){var e=this.model.get("type"),t={intro:o,section:u,article:a,hotspots:l,gallery:f,timeline:c,slider:h,credits:p,factoid:d,nexttopic:m,fullscreen_video:v};return t[e]},onStageRemoveViewEvent:function(e){g.hideUIForZoom(!1);var r=n(this.el).attr("id"),i=e.oldViewsArr;t.contains(i,r)==1&&(this.trigger("REMOVED",r),this.cleanUp())},addUIFields:function(e){var n=function(e){this.model.attributes[e]=boeing_globals.uiTextModel.get(e)};t.each(e,n.bind(this))},addUIString:function(e,t){this.model.attributes[e]=boeing_globals.uiTextModel.get(t)},setStageInfo:function(){var e=this.model.get("type");
1n(this.el).data({"article-id":n(this.el).attr("id"),"topic-type":e});var t="topic-type-"+e;n(this.el).addClass(t)},setDebugEnv:function(){this.console={log:function(){}},this.debug!=undefined&&this.debug==1&&(this.console=window.console)}});return b}),define("app/modules/topics-views/models/model",["require","underscore","jquery","backbone"],function(e){var t=e("underscore"),n=e("jquery"),r=e("backbone"),i=r.Model.extend({defaults:{type:"",subtype:"",eyebrow:"",title:"",text:"",content_type:"",content_url:"",content_caption:"",footnotes:""},parse:function(e){this.attributes.id=this.cid},initialize:function(e){}});return i}),define("text!app/modules/topics-views/views/templates/tmpl-intro-factoid.html",[],function(){return'<div class="background-video-loop" >\n    <video playsinline autoplay muted loop  class="bg-vid-loop">\n        <source src="{{topic_video_loop}}">\n    </video>\n</div>\n\n\n\n<header class="content">\n    <div class="header">\n        <div class="icon"></div>\n        <h4>AEROSPACE HIGHLIGHTS</h4>\n<!--\n        <h4>{{eyebrow}}</h4>\n-->\n    </div>\n    <section class="info">\n        <h2>{{title}}</h2>\n        <hr/>\n        <p>{{{factoid_text}}}</p>\n    </section>\n    <footer>\n        <p>MORE ON</p>\n        <h4>"{{title}}"</h4>\n    </footer>\n</header>'}),define("app/modules/topics-views/views/view-intro",["require","underscore","jquery","backbone","app/base-classes/base-view-topics","app/modules/topics-views/models/model","app/utils/helper-mixins","text!app/modules/topics-views/views/templates/tmpl-intro-factoid.html","mustache","TweenMax"],function(e){var t=e("underscore"),n=e("jquery"),r=e("backbone"),i=e("app/base-classes/base-view-topics"),s=e("app/modules/topics-views/models/model"),o=e("app/utils/helper-mixins"),u=e("text!app/modules/topics-views/views/templates/tmpl-intro-factoid.html"),a=e("mustache"),f=e("TweenMax"),l=i.extend({initialize:function(e,t,n){this.el="#"+t,this.debug=!1,this.Evt=e,this.model=n,this.init(),this.addRandomModal=this.model.has("factoid_text"),this.addRandomModal===!0&&(this.tmpl=u),this.console.log("topic template is view-intro")},start:function(){this.render()},events:{},cleanUp:function(){this.undelegateEvents(),this.Evt.stopListening(this),n(this.el).removeClass("reveal"),n(this.el).remove(),this.remove()},afterRender:function(){var e={id:this.id};this.trigger("RENDERED",e),n(this.el).find("svg").on("click",this.onSocialShareClick.bind(this)),this.addRandomModal===!0&&n(this.el).addClass("intro-factoid")},onSocialShareClick:function(e){var t=n(e.currentTarget),r=t.data("event");if(r=="link"){var i=t.data("val");window.open(i)}this.console.log("social share was clicked ",r,t),e.preventDefault()},render:function(){var e=["interactive-topic"];this.addUIFields(e);var t=this.model.toJSON();t.facebookUrl=o.getFacebookShareLink(!0),t.twitterText=o.getTwitterUrl();var r=a.to_html(this.tmpl,t);n(this.el).html(r),this.setStageInfo(),this.afterRender()}});return l}),define("app/modules/topics-views/views/view-section",["require","underscore","jquery","backbone","app/base-classes/base-view-topics","app/modules/topics-views/models/model","mustache","TweenMax"],function(e){var t=e("underscore"),n=e("jquery"),r=e("backbone"),i=e("app/base-classes/base-view-topics"),s=e("app/modules/topics-views/models/model"),o=e("mustache"),u=e("TweenMax"),a=i.extend({initialize:function(e,t,n){this.el="#"+t,this.debug=!1,this.Evt=e,this.model=n,this.init(),this.console.log("topic template is view-section")},start:function(){this.render()},events:{},cleanUp:function(){this.undelegateEvents(),this.Evt.stopListening(this),n(this.el).removeClass("reveal"),n(this.el).remove(),this.remove()},afterRender:function(){var e={id:this.id};this.trigger("RENDERED",e)},render:function(){var e=this.model.toJSON(),t=o.to_html(this.tmpl,e);n(this.el).html(t),this.setStageInfo(),this.afterRender()}});return a}),define("text!app/modules/topics-views/views/templates/tmpl-article-content-image.html",[],function(){return'\n{{#content_caption}}\n<div class="figcaption">{{.}}</div>\n{{/content_caption}}\n<figure id="overlay-scroll">\n    <img class="draggable centered no-drag" src="{{content_url}}" />\n    <!--\n    <figcaption>{{content_caption}}</figcaption>\n      -->\n</figure>\n\n<!--div class="overlay-close-btn article"></div-->\n<!--\n<div class="overlay-close-btn btn">\n    <i class="btn-icon">\n        <div class="btn-icon-1"></div>\n        <div class="btn-icon-2"></div>\n    </i>\n</div>\n-->\n\n'}),define("app/modules/topics-views/views/subviews-article/article-content-image-view",["require","underscore","jquery","backbone","app/base-classes/base-view","text!app/modules/topics-views/views/templates/tmpl-article-content-image.html","Draggable","ThrowProps","jquery-mobile","app/utils/zoom-and-pan-mixins","mustache","TweenMax"],function(e){var t=e("underscore"),n=e("jquery"),r=e("backbone"),i=e("app/base-classes/base-view"),s=e("text!app/modules/topics-views/views/templates/tmpl-article-content-image.html"),o=e("Draggable"),u=e("ThrowProps"),a=e("jquery-mobile"),f=e("app/utils/zoom-and-pan-mixins"),l=e("mustache"),c=e("TweenMax"),h=i.extend({initialize:function(e,t,n,r){this.debug=!1,this.init(),this.data=t,this.parentId=n,this.parentEl=n,this.swipeDetect=f.swipeDetect,this.Evt=r,this.Evt.listenTo(this,"SWIPE_NAV_EVENT",this.Evt.onSwipeNavEvent)},start:function(){this.render()},events:{},removeFromStage:function(){this.moveImage=!1,n(".topic-type-article").off("mousemove"),c.killAll(),c.to(this.el,.5,{opacity:0,ease:Power1.easeIn,onComplete:this.cleanUp.bind(this)})},cleanUp:function(){this.undelegateEvents(),n(this.el).remove(),this.remove()},makeDraggable:function(e){e==1},onCheckClose:function(e){this.console.log("CLOSING WITH NEW CURSOR ",e),n(this.el).hasClass("fullscreen")&&this.onCloseBtnClick(undefined)},setClickListener:function(){var e=n(this.el).hasClass("fullscreen");e!=0?n(this.el).on("vclick",this.onCheckClose.bind(this)):n(this.el).off("vclick")},resizeToFullscreen:function(e){e==1?(n(this.el).addClass("fullscreen"),n(this.el).removeClass("zoom-container"),f.hideUIForZoom(),window.setTimeout(this.setClickListener.bind(this),500)):(n(this.el).removeClass("fullscreen"),n(this.el).addClass("zoom-container"),f.hideUIForZoom(!1,"article"),window.setTimeout(this.setClickListener.bind(this),500)),this.console.log("resize image called ",e,this.el)},onImageClicked:function(){this.console.log("image has been clicked ",this.el),this.resizeToFullscreen(!0)},onCloseBtnClick:function(e){this.console.log("close btn clicked "),this.resizeToFullscreen(!1)}
1,addZoomAndPan:function(){this.moveImage=!0,this.imgContainerStr="#overlay-scroll",this.zoomImgStr="#overlay-scroll img",this.startMouseMove=f.startMouseMove,n(".topic-type-article .main-content .panel.article-right").on("mousemove",this.startMouseMove.bind(this))},extendNavHitState:function(){f.extendNavHitState()},afterRender:function(){this.image=n(this.el).find("img.draggable"),n(this.el).addClass("zoom-out-cursor"),this.addZoomAndPan(),window.setTimeout(this.extendNavHitState.bind(this),1e3),window.setTimeout(this.initSwipeDetect.bind(this),1e3)},render:function(){var e=l.to_html(s,this.data);return n(this.el).html(e),this.console.log("article image ",this.el,e,this.data),this.afterRender(),this.el},initSwipeDetect:function(){var e=document.getElementsByClassName("draggable")[0];this.console.log("loaded swipe in article image content ",e),boeing_globals.isTouchDevice==1?e.classList.remove("no-drag"):this.swipeDetect(e,this.onSwipeDetected.bind(this))},onSwipeDetected:function(e){if(e=="up"||e=="down"){var t=1;e=="up"&&(t=-1),this.console.log("SWIPE DETECTED ",e,t),this.trigger("SWIPE_NAV_EVENT",t)}else this.onImageClicked();this.console.log("swipe event loaded ")}});return h}),define("app/modules/topics-views/views/subviews-article/article-content-videoloop-view",["require","jquery","app/base-classes/base-view","TweenMax","bc"],function(e){var t=e("jquery"),n=e("app/base-classes/base-view"),r=e("TweenMax"),i=e("bc"),s=n.extend({tagName:"video",className:"video-loop",initialize:function(e,t){this.debug=!1,this.setElement(this.el),this.vid=null,this.data=t,this.$el.attr({loop:"loop",id:"topic-loop",autoplay:"autoplay",muted:"muted","class":"video-loop","data-account":"800000612001","data-player":"cENsmHkkB","data-embed":"default","data-video-id":this.data.content_video_id}),this.init()},start:function(){this.render(),this.vid.play()},events:{},removeFromStage:function(){this.vid.pause(),this.vid.dispose(),this.vid=null,this.console.log("removing player",this.vid),r.to(this.el,.5,{opacity:0,ease:Power1.easeIn,onComplete:this.cleanUp.bind(this)})},cleanUp:function(){this.console.log("cleanup on loop"),this.undelegateEvents()},onCloseBtnClick:function(e){this.console.log("close btn click"),this.removeFromStage()},afterRender:function(){try{this.vid!=null&&this.vid.dispose(),this.vid=i("topic-loop")}catch(e){console.error("Brightcove Error: ",e)}this.vid==null&&(this.vid=i("topic-loop"))},render:function(){this.console.log("article videoloop ",this.el,this.data),this.afterRender()}});return s}),define("text!app/modules/topics-views/views/templates/tmpl-article-content-posterframe.html",[],function(){return'<aside class="video-posterframe">\n    <svg class="play-icon" xmlns="//www.w3.org/2000/svg" xmlns:xlink="//www.w3.org/1999/xlink" preserveAspectRatio="xMidYMid" width="74" height="74" viewBox="0 0 74 74">\n        <image xlink:href="data:img/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEoAAABKCAMAAAArDjJDAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAABvFBMVEUAAAD///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////8AAACqZs+GAAAAknRSTlMAAi1gh67S5vMma61sDnS+/tOfeVIaDSOc7Z1YFlfsJAr9tU8Fbtz7oCdvHLO56eNVVOqsEKuq+Auy6zs6BiH5Nx205A/i3UrlE7iw/Jenpra78Ahac7FQ72EEHjDQ8WgBY78ikfRwkEvELvZ16BjJLBnnfH3K93bF9fJpH2IbWxe3DN6ioyAlBzlTnptWeBEobZBSOpIAAAABYktHRACIBR1IAAAACXBIWXMAAAsSAAALEgHS3X78AAADh0lEQVRYw62Y6V8SYRDHRzRCxfJEIiFREkWUxAuoBAysSLOyw0xLrazsvu/DrKy06/cX9yyCiu4+BzAvgJ1n9vtZnmeuHSKOlJhKy3aZd1sAy27zrrJSUwnlJeUVldghldZyVU7Vnr3sxuqa2rp6U4ONyNZgqq+rralmyr17qhRAjXZ2yz7H/qbtC01Oh4st2Q9IgpodgLul1aO/6mltcQOOZhnSwTZ42zt4Fh21XrT5hKBOP9Al3NryLsDfybdxdiNwSObZewIIOnkGbJd6+2RIRH39bMcMVz0DGLTKgTSxDmLA4GxCYUQOy5OIjkQQDuktHA0j0KFCYkcZQPiojr4fgSE1EtFQAP07tXYElcOLeUUQ9u06J6IxdRJRLIr9uZp4NxTObqtUoDueoxhGb34kol4Mb7304VgiX1QiibrNq9AIevIlER3HiZMbF3ak8icRndo8xU64FX0zVzpGkd35MZwuhEQ0jrH1HzZUmwpDmaqxnu+tOFMYiagl45Vnwclh/U0yKCfOal/lODdhbATXeQnUxDloAXyBkwwZCrjYIGY5cIF9+nGJj8LkZSHqkhY9UxjtE6CA1BUBKjGKKZrGDAlRuHptls+awTTN7cxdOihg/joXZccc3YBPCoWbPl5LtIBbzLtuy6GAO5xIvY0WMmNRFoW796aM7BZhpvt4II0CHj4ysHuMJ2SBTQGF6FP9gmyDhdmSCgpoNzJURUWfeQxR
1an/wuVFm0/6gyra/eGl4gtq2KzjDK45fac4g7aKvF3jerrmobODMN/LM0oEjF85v3s5ySelwlkoyqXckEC3JsNSXEKAm38+KSOnUx5oYQUIOfxCBMglZVCZcH8WgbJngF6/eTzKkTPHil1Q5yZTUYhb6IrYfrCkaLwy10RRRvHitGvP6pUJQWxpI+rxctLaWNdsBldf0HKnKaba10/ySL+ory1RbZcjCkkReMoc333I1pRiM5UOKDaJ0u86B4Io6aSWolwyK92pJ38NIqr7wJhH+rrcQ8iNyRIX0IwJ/SH+peMMBSo8sBiRHFokBcNMvOSNISsXQzyQigoypjXdSQq9YWQKG4yIr8o3Au8ofOjm8WF6QefbQKuD2G4/C/G5g9bMMSXt+bUDnWnPuHND9WksP6FSGG33ZseHvetPjZvL8GVqs/50dG0qe8ab8teoNM//9VeWsy/qI9cldeCeXxSPW/2yLYmcVUi8nAAAAAElFTkSuQmCC" width="74" height="74"/>\n    </svg>\n    <img src="{{content_posterframe}}" />\n</aside>\n\n<!--div class="overlay-close-btn article"></div-->\n<div class="overlay-close-btn btn">\n    <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" preserveAspectRatio="xMidYMid" width="18.375" height="18.375" viewBox="0 0 18.375 18.375">\n      <defs>\n        <style>\n          .cls-1 {\n            fill: #fff;\n            fill-rule: evenodd;\n            opacity: 1;\n          }\n        </style>\n      </defs>\n      <path d="M18.380,16.966 L16.966,18.380 L9.188,10.602 L1.409,18.380 L-0.005,16.966 L7.773,9.187 L-0.005,1.409 L1.409,-0.005 L9.188,7.773 L16.966,-0.005 L18.380,1.409 L10.602,9.187 L18.380,16.966 Z" class="cls-1"></path>\n    </svg>\n</div>\n'}),define("app/modules/video/video-generic-view",["require","app/base-classes/base-view","bc","TweenMax","app/modules/video/views/videojs-sizing"],function(e){var t=e("app/base-classes/base-view"),n=e("bc"),r=e("TweenMax"),i=e("app/modules/video/views/videojs-sizing"),s=t.extend({tagName:"video",id:"article-video",className:"video-js vjs-fullscreen",initialize:function(){this.debug=!1,this.init(),this.videoIsReady=!1,this.firstLaunched=!1,this.videoPausedOnMenu=!1,this.vidjs=null},scrubExistingPlayer:function(){this.videojs!=null&&this.removeVideoInstance()},start:function(e){this.vidjs!=null&&this.removeVideoInstance(),this.$el.attr({preload:"auto",controls:"controls",autoplay:"autoplay","data-account":"800000612001","data-player":"cENsmHkkB","data-embed":"default","data-video-id":e});var t={fluid:!0,controlBar:{fullscreenToggle:!1,volumeMenuButton:{inline:!1,vertical:!0},volumePanel:{inline:!1,vertical:!0},remainingTimeDisplay:!1,currentTimeDisplay:!0,durationDisplay:!0}},r=this;setTimeout(function(){try{r.vidjs!=null&&r.removeVideoInstance(),r.vidjs=n(r.id,t)}catch(e){console.error("Brightcove Error: ",e)}r.vidjs==null&&(r.vidjs=n(r.id)),r.vidjs.ready(function(){r.pause()}),r.vidjs.on("loadedmetadata",r.onVideoReady.bind(r)),r.vidjs.on("play",r.onVideoStartedPlaying.bind(r)),r.vidjs.on("ended",r.onVideoEndEvent.bind(r)),r.console.log("VIDEO GENERIC ",r.vidjs,r.el)},500)},startWithMarkup:function(){this.vidjs!=null&&this.removeVideoInstance();var e={fluid:!0,controlBar:{fullscreenToggle:!1,volumeMenuButton:{inline:!1,vertical:!0},volumePanel:{inline:!1,vertical:!0},remainingTimeDisplay:!1,currentTimeDisplay:!0,durationDisplay:!0}};try{this.vidjs!=null&&this.removeVideoInstance(),this.vidjs=n(this.id,e)}catch(t){console.error("Brightcove Error: ",t)}this.vidjs==null&&(this.vidjs=n(this.id)),this.vidjs.ready(function(){this.pause()}),this.vidjs.on("loadedmetadata",this.onVideoReady.bind(this)),this.vidjs.on("play",this.onVideoStartedPlaying.bind(this)),this.vidjs.on("ended",this.onVideoEndEvent.bind(this)),this.console.log("VIDEO GENERIC ",this.vidjs,this.el)},onVideoStartedPlaying:function(e){this.console.log("this video playing from generic view is ",this.el,this.el.id,this.$el.attr("id")),this.trigger("VIDEO_PLAYING_EVENT",this.el.id)},pause:function(){if(this.vidjs!=null)try{this.vidjs.pause()}catch(e){console.error(e)}},play:function(){if(this.vidjs!=null)try{this.vidjs.play()}catch(e){console.error(e)}this.videoPausedOnMenu=!1},addNewVideo:function(e){if(this.vidjs!=undefined){var t=this.vidjs;t.catalog.getVideo(e,function(e,n){t.catalog.load(n),t.play()})}},getVideoJsObj:function(){return this.vidjs},onToggleVideo:function(e){var t=e.get("loadMenu"),n=!1;$("video#"+this.id).length<1&&(this.vidjs=null),this.vidjs!=null&&(n=this.vidjs.paused()==0);if(t==1&&n==1){this.videoPausedOnMenu=!0;var r=function(){this.vidjs.pause()};this.tempTimeout=window.setTimeout(r.bind(this),500)}else if(t==0&&n==0&&this.videoPausedOnMenu==1){var i=function(){this.vidjs.play(),this.videoPausedOnMenu=!1};this.tempTimeout=window.setTimeout(i.bind(this),500)}},onVideoEndEvent:function(e){this.trigger("VIDEO_ENDED_EVENT",e),this.vidjs.off("ended",this.onVideoEndEvent.bind(this)),this.vidjs.exitFullscreen()},onVideoReady:function(e){this.videoIsReady=!0,this.firstLaunched=!0,this.listenTo(boeing_globals.state,"change:loadMenu",this.onToggleVideo.bind(this))},showControls:function(){this.console.log("here is player active ")},removeFromStage:function(){this.cleanUp()},removeVideoInstance:function(){this.videojs!=null&&(this.videojs.dispose(),this.vidjs=null)},cleanUp:function(){this.undelegateEvents(),this.removeVideoInstance(),this.remove()}});return s}),define("app/modules/topics-views/views/subviews-article/article-content-video-view",["require","underscore","jquery","backbone","app/base-classes/base-view","text!app/modules/topics-views/views/templates/tmpl-article-content-posterframe.html","app/modules/video/video-generic-view","mustache","TweenMax"],function(e){var t=e("underscore"),n=e("jquery"),r=e("backbone"),i=e("app/base-classes/base-view"),s=e("text!app/modules/topics-views/views/templates/tmpl-article-content-posterframe.html"),o=e("app/modules/video/video-generic-view"),u=e("mustache"),a=e("TweenMax"),f=i.extend({className:"video-fullscreen",initialize:function(){this.debug=!1,this.init()},start:function(e,t){this.model=e,this.parentEl=t,this.data=this.model.toJSON()},getVideoJson:function(){var e={tagName:"video",id:"article-video",className:"video-js vjs-fullscreen"};return e},events:{},removeFromStage:function(){this.cleanUp()},cleanUp:function(){this.undelegateEvents(),this.remove()},onClickPosterFrame:function(e){this.resizeToFullscreen(!0),this.revealPosterFrame
1(!1),this.videoView.play()},pause:function(){this.onCloseBtnClick(null)},play:function(){this.onClickPosterFrame(null)},onCloseBtnClick:function(){this.resizeToFullscreen(!1),this.revealPosterFrame(!0),this.videoView.pause()},resizeToFullscreen:function(e){e==1?(n(this.parentEl).addClass("fullscreen"),this.closeBtn.addClass("reveal"),n("#bng-topics").addClass("topmost")):(n(this.parentEl).removeClass("fullscreen"),this.closeBtn.removeClass("reveal"),n("#bng-topics").removeClass("topmost"))},revealPosterFrame:function(e){e==1?this.posterFrame.removeClass("hide"):this.posterFrame.addClass("hide")},onVideoPlayedEvent:function(e){this.trigger("VIDEO_PLAYING_EVENT",this.el.id)},createVideoMarkup:function(e){var t='<video id="article-video" playsinline class="video-js vjs-fullscreen" preload="auto" controls="controls" autoplay="autoplay" data-account="800000612001" data-player="cENsmHkkB" data-embed="default" data-video-id="'+e+'"></video>';return t},afterRender:function(){this.videoView=new o(this.getVideoJson()),console.log("%cAfterRender","color:red");var e=this.model.get("content_video_id"),t=this.createVideoMarkup(e);n(this.el).prepend(t);var r=this;setTimeout(function(){r.videoView.startWithMarkup(e)},750),this.listenTo(this.videoView,"VIDEO_PLAYING_EVENT",this.onVideoPlayedEvent.bind(this)),this.posterFrame=n(this.el).find(".video-posterframe"),this.posterFrame.on("click",this.onClickPosterFrame.bind(this)),this.closeBtn=n(this.el).find(".overlay-close-btn"),this.closeBtn.on("click",this.onCloseBtnClick.bind(this))},render:function(){var e={content_posterframe:this.data.content_video_posterframe.url},t=u.to_html(s,e);return n(this.el).html(t),this.console.log("article video setup ",this.el," <----->  ",t),this.afterRender(),this.el}});return f}),define("text!app/modules/topics-views/views/templates/tmpl-article-content-image-portrait.html",[],function(){return'    <img class="draggable centered no-drag" src="{{content_url}}" />\n    <figcaption>{{content_caption}}</figcaption>\n\n'}),define("app/modules/topics-views/views/subviews-article/article-content-image-view-portrait",["require","underscore","jquery","backbone","app/base-classes/base-view","text!app/modules/topics-views/views/templates/tmpl-article-content-image-portrait.html","Draggable","ThrowProps","jquery-mobile","mustache","TweenMax"],function(e){var t=e("underscore"),n=e("jquery"),r=e("backbone"),i=e("app/base-classes/base-view"),s=e("text!app/modules/topics-views/views/templates/tmpl-article-content-image-portrait.html"),o=e("Draggable"),u=e("ThrowProps"),a=e("jquery-mobile"),f=e("mustache"),l=e("TweenMax"),c=i.extend({tagName:"figure",initialize:function(e,t,n){this.debug=!1,this.data=t,this.parentId=n,this.parentEl=n,this.init()},start:function(){this.render()},events:{},removeFromStage:function(){l.to(this.el,.5,{opacity:0,ease:Power1.easeIn,onComplete:this.cleanUp.bind(this)})},cleanUp:function(){this.undelegateEvents(),n(this.el).remove(),this.remove()},makeDraggable:function(e){e==1},resizeToFullscreen:function(e){e==1?(n(this.el).addClass("fullscreen"),n(this.el).removeClass("zoom-container"),this.closeBtn.addClass("reveal")):(n(this.el).removeClass("fullscreen"),n(this.el).addClass("zoom-container"),this.closeBtn.removeClass("reveal")),this.console.log("resize image called ",e,this.el)},onImageClicked:function(){this.console.log("image has been clicked ",this.el),this.resizeToFullscreen(!0)},onCloseBtnClick:function(e){this.console.log("close btn clicked "),this.resizeToFullscreen(!1)},getImageRatio:function(){var e=this.data.content_type,t=16,n=9;if(e=="Image")t=this.data.content_image.width,n=this.data.content_image.height;else if(e=="Loop"||e=="Video")t=this.data.content_video_posterframe.width,n=this.data.content_video_posterframe.height;return n/t},setAsVertical:function(){n(this.el).css({width:"50%","float":"right","padding-left":"20px"})},afterRender:function(){var e=this.getImageRatio();e>1&&this.setAsVertical(),this.console.log("aspect ratio is ",e)},afterRenderOld:function(){this.image=n(this.el).find("img.draggable"),this.image.on("click",this.onImageClicked.bind(this)),this.closeBtn=n(this.el).find(".overlay-close-btn"),this.closeBtn.on("click",this.onCloseBtnClick.bind(this))},render:function(){var e=f.to_html(s,this.data);return n(this.el).html(e),this.afterRender(),this.console.log("article image ",this.data),this.el}});return c}),!function t(e,n,r){function i(o,u){if(!n[o]){if(!e[o]){var a="function"==typeof require&&require;if(!u&&a)return a(o,!0);if(s)return s(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var c=n[o]={exports:{}};e[o][0].call(c.exports,function(t){var n=e[o][1][t];return i(n?n:t)},c,c.exports,t,e,n,r)}return n[o].exports}for(var s="function"==typeof require&&require,o=0;o<r.length;o++)i(r[o]);return i}({1:[function(e,t,n){"use strict";var r=e("../main");"function"==typeof define&&define.amd?define("Ps",r):(window.PerfectScrollbar=r,"undefined"==typeof window.Ps&&(window.Ps=r))},{"../main":6}],2:[function(e,t,n){"use strict";function r(e,t){return window.getComputedStyle(e)[t]}function i(e,t,n){return"number"==typeof n&&(n=n.toString()+"px"),e.style[t]=n,e}function s(e,t){for(var n in t){var r=t[n];"number"==typeof r&&(r=r.toString()+"px"),e.style[n]=r}return e}var o={};o.create=function(e,t){var n=document.createElement(e);return n.className=t,n},o.appendTo=function(e,t){return t.appendChild(e),e},o.css=function(e,t,n){return"object"==typeof t?s(e,t):"undefined"==typeof n?r(e,t):i(e,t,n)},o.matches=function(e,t){return"undefined"!=typeof e.matches?e.matches(t):e.msMatchesSelector(t)},o.remove=function(e){"undefined"!=typeof e.remove?e.remove():e.parentNode&&e.parentNode.removeChild(e)},o.queryChildren=function(e,t){return Array.prototype.filter.call(e.childNodes,function(e){return o.matches(e,t)})},t.exports=o},{}],3:[function(e,t,n){"use strict";var r=function(e){this.element=e,this.events={}};r.prototype.bind=function(e,t){"undefined"==typeof this.events[e]&&(this.events[e]=[]),this.events[e].push(t),this.element.addEventListener(e,t,!1)},r.prototype.unbind=function(e,t){var n="undefined"!=typeof t;this.events[e]=this.events[e].filter(function(r){return!!n&&r!==t||(this.element.removeEventListener(e,r,!1),!1)},this)},r.prototype.unbindAll=function(){for(var e in this.events)this.unbind(e)};var i=function(){this.eventElements=[]};i.prototype.eventElement=function(e){var t=this.eventElements.filter(function(t){return t.element===e})[0];return"undefined"==typeof t&&(t=new r(e),this.eventElements.push(t)),t},i.prototype.bind=function(e,t,n){this.eventElement(e).bind(t,n)},i.prototype.unbind=function(e,t,n){this.eventElement(e).unbind(t,n)},i.prototype.unbindAll=function(){for(var e=0;e<this.eventElements.length;e++)this.eventElements[e].unbindAll()},i.prototype.once=function(e,t,n){var r=this.eventElement(e),i=function(e){r.unbind(t,i),n(e)};r.bind(t,i)},t.exports=i},{}],4:[function(e,t,n){"use strict";
1t.exports=function(){function e(){return Math.floor(65536*(1+Math.random())).toString(16).substring(1)}return function(){return e()+e()+"-"+e()+"-"+e()+"-"+e()+"-"+e()+e()+e()}}()},{}],5:[function(e,t,n){"use strict";function r(e){var t,n=["ps--in-scrolling"];return t="undefined"==typeof e?["ps--x","ps--y"]:["ps--"+e],n.concat(t)}var i=e("./dom"),s=n.toInt=function(e){return parseInt(e,10)||0};n.isEditable=function(e){return i.matches(e,"input,[contenteditable]")||i.matches(e,"select,[contenteditable]")||i.matches(e,"textarea,[contenteditable]")||i.matches(e,"button,[contenteditable]")},n.removePsClasses=function(e){for(var t=0;t<e.classList.length;t++){var n=e.classList[t];0===n.indexOf("ps-")&&e.classList.remove(n)}},n.outerWidth=function(e){return s(i.css(e,"width"))+s(i.css(e,"paddingLeft"))+s(i.css(e,"paddingRight"))+s(i.css(e,"borderLeftWidth"))+s(i.css(e,"borderRightWidth"))},n.startScrolling=function(e,t){for(var n=r(t),i=0;i<n.length;i++)e.classList.add(n[i])},n.stopScrolling=function(e,t){for(var n=r(t),i=0;i<n.length;i++)e.classList.remove(n[i])},n.env={isWebKit:"undefined"!=typeof document&&"WebkitAppearance"in document.documentElement.style,supportsTouch:"undefined"!=typeof window&&("ontouchstart"in window||window.DocumentTouch&&document instanceof window.DocumentTouch),supportsIePointer:"undefined"!=typeof window&&null!==window.navigator.msMaxTouchPoints}},{"./dom":2}],6:[function(e,t,n){"use strict";var r=e("./plugin/destroy"),i=e("./plugin/initialize"),s=e("./plugin/update");t.exports={initialize:i,update:s,destroy:r}},{"./plugin/destroy":8,"./plugin/initialize":16,"./plugin/update":20}],7:[function(e,t,n){"use strict";t.exports=function(){return{handlers:["click-rail","drag-scrollbar","keyboard","wheel","touch"],maxScrollbarLength:null,minScrollbarLength:null,scrollXMarginOffset:0,scrollYMarginOffset:0,suppressScrollX:!1,suppressScrollY:!1,swipePropagation:!0,swipeEasing:!0,useBothWheelAxes:!1,wheelPropagation:!1,wheelSpeed:1,theme:"default"}}},{}],8:[function(e,t,n){"use strict";var r=e("../lib/helper"),i=e("../lib/dom"),s=e("./instances");t.exports=function(e){var t=s.get(e);t&&(t.event.unbindAll(),i.remove(t.scrollbarX),i.remove(t.scrollbarY),i.remove(t.scrollbarXRail),i.remove(t.scrollbarYRail),r.removePsClasses(e),s.remove(e))}},{"../lib/dom":2,"../lib/helper":5,"./instances":17}],9:[function(e,t,n){"use strict";function r(e,t){function n(e){return e.getBoundingClientRect()}var r=function(e){e.stopPropagation()};t.event.bind(t.scrollbarY,"click",r),t.event.bind(t.scrollbarYRail,"click",function(r){var i=r.pageY-window.pageYOffset-n(t.scrollbarYRail).top,u=i>t.scrollbarYTop?1:-1;o(e,"top",e.scrollTop+u*t.containerHeight),s(e),r.stopPropagation()}),t.event.bind(t.scrollbarX,"click",r),t.event.bind(t.scrollbarXRail,"click",function(r){var i=r.pageX-window.pageXOffset-n(t.scrollbarXRail).left,u=i>t.scrollbarXLeft?1:-1;o(e,"left",e.scrollLeft+u*t.containerWidth),s(e),r.stopPropagation()})}var i=e("../instances"),s=e("../update-geometry"),o=e("../update-scroll");t.exports=function(e){var t=i.get(e);r(e,t)}},{"../instances":17,"../update-geometry":18,"../update-scroll":19}],10:[function(e,t,n){"use strict";function r(e,t){function n(n){var i=r+n*t.railXRatio,o=Math.max(0,t.scrollbarXRail.getBoundingClientRect().left)+t.railXRatio*(t.railXWidth-t.scrollbarXWidth);i<0?t.scrollbarXLeft=0:i>o?t.scrollbarXLeft=o:t.scrollbarXLeft=i;var u=s.toInt(t.scrollbarXLeft*(t.contentWidth-t.containerWidth)/(t.containerWidth-t.railXRatio*t.scrollbarXWidth))-t.negativeScrollAdjustment;f(e,"left",u)}var r=null,i=null,u=function(t){n(t.pageX-i),a(e),t.stopPropagation(),t.preventDefault()},h=function(){s.stopScrolling(e,"x"),t.event.unbind(t.ownerDocument,"mousemove",u)};t.event.bind(t.scrollbarX,"mousedown",function(n){i=n.pageX,r=s.toInt(o.css(t.scrollbarX,"left"))*t.railXRatio,s.startScrolling(e,"x"),t.event.bind(t.ownerDocument,"mousemove",u),t.event.once(t.ownerDocument,"mouseup",h),n.stopPropagation(),n.preventDefault()})}function i(e,t){function n(n){var i=r+n*t.railYRatio,o=Math.max(0,t.scrollbarYRail.getBoundingClientRect().top)+t.railYRatio*(t.railYHeight-t.scrollbarYHeight);i<0?t.scrollbarYTop=0:i>o?t.scrollbarYTop=o:t.scrollbarYTop=i;var u=s.toInt(t.scrollbarYTop*(t.contentHeight-t.containerHeight)/(t.containerHeight-t.railYRatio*t.scrollbarYHeight));f(e,"top",u)}var r=null,i=null,u=function(t){n(t.pageY-i),a(e),t.stopPropagation(),t.preventDefault()},h=function(){s.stopScrolling(e,"y"),t.event.unbind(t.ownerDocument,"mousemove",u)};t.event.bind(t.scrollbarY,"mousedown",function(n){i=n.pageY,r=s.toInt(o.css(t.scrollbarY,"top"))*t.railYRatio,s.startScrolling(e,"y"),t.event.bind(t.ownerDocument,"mousemove",u),t.event.once(t.ownerDocument,"mouseup",h),n.stopPropagation(),n.preventDefault()})}var s=e("../../lib/helper"),o=e("../../lib/dom"),u=e("../instances"),a=e("../update-geometry"),f=e("../update-scroll");t.exports=function(e){var t=u.get(e);r(e,t),i(e,t)}},{"../../lib/dom":2,"../../lib/helper":5,"../instances":17,"../update-geometry":18,"../update-scroll":19}],11:[function(e,t,n){"use strict";function r(e,t){function n(n,r){var i=e.scrollTop;if(0===n){if(!t.scrollbarYActive)return!1;if(0===i&&r>0||i>=t.contentHeight-t.containerHeight&&r<0)return!t.settings.wheelPropagation}var s=e.scrollLeft;if(0===r){if(!t.scrollbarXActive)return!1;if(0===s&&n<0||s>=t.contentWidth-t.containerWidth&&n>0)return!t.settings.wheelPropagation}return!0}var r=!1;t.event.bind(e,"mouseenter",function(){r=!0}),t.event.bind(e,"mouseleave",function(){r=!1});var o=!1;t.event.bind(t.ownerDocument,"keydown",function(f){if(!(f.isDefaultPrevented&&f.isDefaultPrevented()||f.defaultPrevented)){var c=s.matches(t.scrollbarX,":focus")||s.matches(t.scrollbarY,":focus");if(r||c){var h=document.activeElement?document.activeElement:t.ownerDocument.activeElement;
1if(h){if("IFRAME"===h.tagName)h=h.contentDocument.activeElement;else for(;h.shadowRoot;)h=h.shadowRoot.activeElement;if(i.isEditable(h))return}var p=0,d=0;switch(f.which){case 37:p=f.metaKey?-t.contentWidth:f.altKey?-t.containerWidth:-30;break;case 38:d=f.metaKey?t.contentHeight:f.altKey?t.containerHeight:30;break;case 39:p=f.metaKey?t.contentWidth:f.altKey?t.containerWidth:30;break;case 40:d=f.metaKey?-t.contentHeight:f.altKey?-t.containerHeight:-30;break;case 33:d=90;break;case 32:d=f.shiftKey?90:-90;break;case 34:d=-90;break;case 35:d=f.ctrlKey?-t.contentHeight:-t.containerHeight;break;case 36:d=f.ctrlKey?e.scrollTop:t.containerHeight;break;default:return}a(e,"top",e.scrollTop-d),a(e,"left",e.scrollLeft+p),u(e),o=n(p,d),o&&f.preventDefault()}}})}var i=e("../../lib/helper"),s=e("../../lib/dom"),o=e("../instances"),u=e("../update-geometry"),a=e("../update-scroll");t.exports=function(e){var t=o.get(e);r(e,t)}},{"../../lib/dom":2,"../../lib/helper":5,"../instances":17,"../update-geometry":18,"../update-scroll":19}],12:[function(e,t,n){"use strict";function r(e,t){function n(n,r){var i=e.scrollTop;if(0===n){if(!t.scrollbarYActive)return!1;if(0===i&&r>0||i>=t.contentHeight-t.containerHeight&&r<0)return!t.settings.wheelPropagation}var s=e.scrollLeft;if(0===r){if(!t.scrollbarXActive)return!1;if(0===s&&n<0||s>=t.contentWidth-t.containerWidth&&n>0)return!t.settings.wheelPropagation}return!0}function r(e){var t=e.deltaX,n=-1*e.deltaY;return"undefined"!=typeof t&&"undefined"!=typeof n||(t=-1*e.wheelDeltaX/6,n=e.wheelDeltaY/6),e.deltaMode&&1===e.deltaMode&&(t*=10,n*=10),t!==t&&n!==n&&(t=0,n=e.wheelDelta),e.shiftKey?[-n,-t]:[t,n]}function i(t,n){var r=e.querySelector("textarea:hover, select[multiple]:hover, .ps-child:hover");if(r){var i=window.getComputedStyle(r),s=[i.overflow,i.overflowX,i.overflowY].join("");if(!s.match(/(scroll|auto)/))return!1;var o=r.scrollHeight-r.clientHeight;if(o>0&&!(0===r.scrollTop&&n>0||r.scrollTop===o&&n<0))return!0;var u=r.scrollLeft-r.clientWidth;if(u>0&&!(0===r.scrollLeft&&t<0||r.scrollLeft===u&&t>0))return!0}return!1}function u(u){var f=r(u),c=f[0],h=f[1];i(c,h)||(a=!1,t.settings.useBothWheelAxes?t.scrollbarYActive&&!t.scrollbarXActive?(h?o(e,"to
1p",e.scrollTop-h*t.settings.wheelSpeed):o(e,"top",e.scrollTop+c*t.settings.wheelSpeed),a=!0):t.scrollbarXActive&&!t.scrollbarYActive&&(c?o(e,"left",e.scrollLeft+c*t.settings.wheelSpeed):o(e,"left",e.scrollLeft-h*t.settings.wheelSpeed),a=!0):(o(e,"top",e.scrollTop-h*t.settings.wheelSpeed),o(e,"left",e.scrollLeft+c*t.settings.wheelSpeed)),s(e),a=a||n(c,h),a&&(u.stopPropagation(),u.preventDefault()))}var a=!1;"undefined"!=typeof window.onwheel?t.event.bind(e,"wheel",u):"undefined"!=typeof window.onmousewheel&&t.event.bind(e,"mousewheel",u)}var i=e("../instances"),s=e("../update-geometry"),o=e("../update-scroll");t.exports=function(e){var t=i.get(e);r(e,t)}},{"../instances":17,"../update-geometry":18,"../update-scroll":19}],13:[function(e,t,n){"use strict";function r(e,t){t.event.bind(e,"scroll",function(){s(e)})}var i=e("../instances"),s=e("../update-geometry");t.exports=function(e){var t=i.get(e);r(e,t)}},{"../instances":17,"../update-geometry":18}],14:[function(e,t,n){"use strict";function r(e,t){function n(){var e=window.getSelection?window.getSelection():document.getSelection?document.getSelection():"";return 0===e.toString().length?null:e.getRangeAt(0).commonAncestorContainer}function r(){f||(f=setInterval(function(){return s.get(e)?(u(e,"top",e.scrollTop+c.top),u(e,"left",e.scrollLeft+c.left),void o(e)):void clearInterval(f)},50))}function a(){f&&(clearInterval(f),f=null),i.stopScrolling(e)}var f=null,c={top:0,left:0},h=!1;t.event.bind(t.ownerDocument,"selectionchange",function(){e.contains(n())?h=!0:(h=!1,a())}),t.event.bind(window,"mouseup",function(){h&&(h=!1,a())}),t.event.bind(window,"keyup",function(){h&&(h=!1,a())}),t.event.bind(window,"mousemove",function(t){if(h){var n={x:t.pageX,y:t.pageY},s={left:e.offsetLeft,right:e.offsetLeft+e.offsetWidth,top:e.offsetTop,bottom:e.offsetTop+e.offsetHeight};n.x<s.left+3?(c.left=-5,i.startScrolling(e,"x")):n.x>s.right-3?(c.left=5,i.startScrolling(e,"x")):c.left=0,n.y<s.top+3?(s.top+3-n.y<5?c.top=-5:c.top=-20,i.startScrolling(e,"y")):n.y>s.bottom-3?(n.y-s.bottom+3<5?c.top=5:c.top=20,i.startScrolling(e,"y")):c.top=0,0===c.top&&0===c.left?a():r()}})}var i=e("../../lib/helper"),s=e("../instances"),o=e("../update-geometry"),u=e("../update-scroll");t.exports=function(e){var t=s.get(e);r(e,t)}},{"../../lib/helper":5,"../instances":17,"../update-geometry":18,"../update-scroll":19}],15:[function(e,t,n){"use strict";function r(e,t,n,r){function i(n,r){var i=e.scrollTop,s=e.scrollLeft,o=Math.abs(n),u=Math.abs(r);if(u>o){if(r<0&&i===t.contentHeight-t.containerHeight||r>0&&0===i)return!t.settings.swipePropagation}else if(o>u&&(n<0&&s===t.contentWidth-t.containerWidth||n>0&&0===s))return!t.settings.swipePropagation;return!0}function a(t,n){u(e,"top",e.scrollTop-n),u(e,"left",e.scrollLeft-t),o(e)}function f(){E=!0}function c(){E=!1}function h(e){return e.targetTouches?e.targetTouches[0]:e}function p(e){return!!e.targetTouches&&1===e.targetTouches.length||!!e.pointerType&&"mouse"!==e.pointerType&&e.pointerType!==e.MSPOINTER_TYPE_MOUSE}function d(e){if(p(e)){S=!0;var t=h(e);g.pageX=t.pageX,g.pageY=t.pageY,y=(new Date).getTime(),null!==w&&clearInterval(w),e.stopPropagation()}}function v(e){if(!S&&t.settings.swipePropagation&&d(e),!E&&S&&p(e)){var n=h(e),r={pageX:n.pageX,pageY:n.pageY},s=r.pageX-g.pageX,o=r.pageY-g.pageY;a(s,o),g=r;var u=(new Date).getTime(),f=u-y;f>0&&(b.x=s/f,b.y=o/f,y=u),i(s,o)&&(e.stopPropagation(),e.preventDefault())}}function m(){!E&&S&&(S=!1,t.settings.swipeEasing&&(clearInterval(w),w=setInterval(function(){return s.get(e)&&(b.x||b.y)?Math.abs(b.x)<.01&&Math.abs(b.y)<.01?void clearInterval(w):(a(30*b.x,30*b.y),b.x*=.8,void (b.y*=.8)):void clearInterval(w)},10)))}var g={},y=0,b={},w=null,E=!1,S=!1;n?(t.event.bind(window,"touchstart",f),t.event.bind(window,"touchend",c),t.event.bind(e,"touchstart",d),t.event.bind(e,"touchmove",v),t.event.bind(e,"touchend",m)):r&&(window.PointerEvent?(t.event.bind(window,"pointerdown",f),t.event.bind(window,"pointerup",c),t.event.bind(e,"pointerdown",d),t.event.bind(e,"pointermove",v),t.event.bind(e,"pointerup",m)):window.MSPointerEvent&&(t.event.bind(window,"MSPointerDown",f),t.event.bind(window,"MSPointerUp",c),t.event.bind(e,"MSPointerDown",d),t.event.bind(e,"MSPointerMove",v),t.event.bind(e,"MSPointerUp",m)))}var i=e("../../lib/helper"),s=e("../instances"),o=e("../update-geometry"),u=e("../update-scroll");t.exports=function(e){if(i.env.supportsTouch||i.env.supportsIePointer){var t=s.get(e);r(e,t,i.env.supportsTouch,i.env.supportsIePointer)}}},{"../../lib/helper":5,"../instances":17,"../update-geometry":18,"../update-scroll":19}],16:[function(e,t,n){"use strict";var r=e("./instances"),i=e("./update-geometry"),s={"click-rail":e("./
1handler/click-rail"),"drag-scrollbar":e("./handler/drag-scrollbar"),keyboard:e("./handler/keyboard"),wheel:e("./handler/mouse-wheel"),touch:e("./handler/touch"),selection:e("./handler/selection")},o=e("./handler/native-scroll");t.exports=function(e,t){e.classList.add("ps");var n=r.add(e,"object"==typeof t?t:{});e.classList.add("ps--theme_"+n.settings.theme),n.settings.handlers.forEach(function(t){s[t](e)}),o(e),i(e)}},{"./handler/click-rail":9,"./handler/drag-scrollbar":10,"./handler/keyboard":11,"./handler/mouse-wheel":12,"./handler/native-scroll":13,"./handler/selection":14,"./handler/touch":15,"./instances":17,"./update-geometry":18}],17:[function(e,t,n){"use strict";function r(e,t){function n(){e.classList.add("ps--focus")}function r(){e.classList.remove("ps--focus")}var i=this;i.settings=a();for(var s in t)i.settings[s]=t[s];i.containerWidth=null,i.containerHeight=null,i.contentWidth=null,i.contentHeight=null,i.isRtl="rtl"===f.css(e,"direction"),i.isNegativeScroll=function(){var t=e.scrollLeft,n=null;return e.scrollLeft=-1,n=e.scrollLeft<0,e.scrollLeft=t,n}(),i.negativeScrollAdjustment=i.isNegativeScroll?e.scrollWidth-e.clientWidth:0,i.event=new l,i.ownerDocument=e.ownerDocument||document,i.scrollbarXRail=f.appendTo(f.create("div","ps__scrollbar-x-rail"),e),i.scrollbarX=f.appendTo(f.create("div","ps__scrollbar-x"),i.scrollbarXRail),i.scrollbarX.setAttribute("tabindex",0),i.event.bind(i.scrollbarX,"focus",n),i.event.bind(i.scrollbarX,"blur",r),i.scrollbarXActive=null,i.scrollbarXWidth=null,i.scrollbarXLeft=null,i.scrollbarXBottom=u.toInt(f.css(i.scrollbarXRail,"bottom")),i.isScrollbarXUsingBottom=i.scrollbarXBottom===i.scrollbarXBottom,i.scrollbarXTop=i.isScrollbarXUsingBottom?null:u.toInt(f.css(i.scrollbarXRail,"top")),i.railBorderXWidth=u.toInt(f.css(i.scrollbarXRail,"borderLeftWidth"))+u.toInt(f.css(i.scrollbarXRail,"borderRightWidth")),f.css(i.scrollbarXRail,"display","block"),i.railXMarginWidth=u.toInt(f.css(i.scrollbarXRail,"marginLeft"))+u.toInt(f.css(i.scrollbarXRail,"marginRight")),f.css(i.scrollbarXRail,"display",""),i.railXWidth=null,i.railXRatio=null,i.scrollbarYRail=f.appendTo(f.create("div","ps__scrollbar-y-rail"),e),i.scrollbarY=f.appendTo(f.create("div","ps__scrollbar-y"),i.scrollbarYRail),i.scrollbarY.setAttribute("tabindex",0),i.event.bind(i.scrollbarY,"focus",n),i.event.bind(i.scrollbarY,"blur",r),i.scrollbarYActive=null,i.scrollbarYHeight=null,i.scrollbarYTop=null,i.scrollbarYRight=u.toInt(f.css(i.scrollbarYRail,"right")),i.isScrollbarYUsingRight=i.scrollbarYRight===i.scrollbarYRight,i.scrollbarYLeft=i.isScrollbarYUsingRight?null:u.toInt(f.css(i.scrollbarYRail,"left")),i.scrollbarYOuterWidth=i.isRtl?u.outerWidth(i.scrollbarY):null,i.railBorderYWidth=u.toInt(f.css(i.scrollbarYRail,"borderTopWidth"))+u.toInt(f.css(i.scrollbarYRail,"borderBottomWidth")),f.css(i.scrollbarYRail,"display","block"),i.railYMarginHeight=u.toInt(f.css(i.scrollbarYRail,"marginTop"))+u.toInt(f.css(i.scrollbarYRail,"marginBottom")),f.css(i.scrollbarYRail,"display",""),i.railYHeight=null,i.railYRatio=null}function i(e){return e.getAttribute("data-ps-id")}function s(e,t){e.setAttribute("data-ps-id",t)}function o(e){e.removeAttribute("data-ps-id")}var u=e("../lib/helper"),a=e("./default-setting"),f=e("../lib/dom"),l=e("../lib/event-manager"),c=e("../lib/guid"),h={};n.add=function(e,t){var n=c();return s(e,n),h[n]=new r(e,t),h[n]},n.remove=function(e){delete h[i(e)],o(e)},n.get=function(e){return h[i(e)]}},{"../lib/dom":2,"../lib/event-manager":3,"../lib/guid":4,"../lib/helper":5,"./default-setting":7}],18:[function(e,t,n){"use strict";function r(e,t){return e.settings.minScrollbarLength&&(t=Math.max(t,e.settings.minScrollbarLength)),e.settings.maxScrollbarLength&&(t=Math.min(t,e.settings.maxScrollbarLength)),t}function i(e,t){var n={width:t.railXWidth};t.isRtl?n.left=t.negativeScrollAdjustment+e.scrollLeft+t.containerWidth-t.contentWidth:n.left=e.scrollLeft,t.isScrollbarXUsingBottom?n.bottom=t.scrollbarXBottom-e.scrollTop:n.top=t.scrollbarXTop+e.scrollTop,o.css(t.scrollbarXRail,n);var r={top:e.scrollTop,height:t.railYHeight};t.isScrollbarYUsingRight?t.isRtl?r.right=t.contentWidth-(t.negativeScrollAdjustment+e.scrollLeft)-t.scrollbarYRight-t.scrollbarYOuterWidth:r.right=t.scrollbarYRight-e.scrollLeft:t.isRtl?r.left=t.negativeScrollAdjustment+e.scrollLeft+2*t.containerWidth-t.contentWidth-t.scrollbarYLeft-t.scrollbarYOuterWidth:r.left=t.scrollbarYLeft+e.scrollLeft,o.css(t.scrollbarYRail,r),o.css(t.scrollbarX,{left:t.scrollbarXLeft,width:t.scrollbarXWidth-t.railBorderXWidth}),o.css(t.scrollbarY,{top:t.scrollbarYTop,height:t.scrollbarYHeight-t.railBorderYWidth})}var s=e("../lib/helper"),o=e("../lib/dom"),u=e("./instances"),a=e("./update-scroll");t.exports=function(e){var t=u.get(e);t.containerWidth=e.clientWidth,t.containerHeight=e.clientHeight,t.contentWidth=e.scrollWidth,t.contentHeight=e.scrollHeight;var n;e.contains(t.scrollbarXRail)||(n=o.queryChildren(e,".ps__scrollbar-x-rail"),n.length>
10&&n.forEach(function(e){o.remove(e)}),o.appendTo(t.scrollbarXRail,e)),e.contains(t.scrollbarYRail)||(n=o.queryChildren(e,".ps__scrollbar-y-rail"),n.length>0&&n.forEach(function(e){o.remove(e)}),o.appendTo(t.scrollbarYRail,e)),!t.settings.suppressScrollX&&t.containerWidth+t.settings.scrollXMarginOffset<t.contentWidth?(t.scrollbarXActive=!0,t.railXWidth=t.containerWidth-t.railXMarginWidth,t.railXRatio=t.containerWidth/t.railXWidth,t.scrollbarXWidth=r(t,s.toInt(t.railXWidth*t.containerWidth/t.contentWidth)),t.scrollbarXLeft=s.toInt((t.negativeScrollAdjustment+e.scrollLeft)*(t.railXWidth-t.scrollbarXWidth)/(t.contentWidth-t.containerWidth))):t.scrollbarXActive=!1,!t.settings.suppressScrollY&&t.containerHeight+t.settings.scrollYMarginOffset<t.contentHeight?(t.scrollbarYActive=!0,t.railYHeight=t.containerHeight-t.railYMarginHeight,t.railYRatio=t.containerHeight/t.railYHeight,t.scrollbarYHeight=r(t,s.toInt(t.railYHeight*t.containerHeight/t.contentHeight)),t.scrollbarYTop=s.toInt(e.scrollTop*(t.railYHeight-t.scrollbarYHeight)/(t.contentHeight-t.containerHeight))):t.scrollbarYActive=!1,t.scrollbarXLeft>=t.railXWidth-t.scrollbarXWidth&&(t.scrollbarXLeft=t.railXWidth-t.scrollbarXWidth),t.scrollbarYTop>=t.railYHeight-t.scrollbarYHeight&&(t.scrollbarYTop=t.railYHeight-t.scrollbarYHeight),i(e,t),t.scrollbarXActive?e.classList.add("ps--active-x"):(e.classList.remove("ps--active-x"),t.scrollbarXWidth=0,t.scrollbarXLeft=0,a(e,"left",0)),t.scrollbarYActive?e.classList.add("ps--active-y"):(e.classList.remove("ps--active-y"),t.scrollbarYHeight=0,t.scrollbarYTop=0,a(e,"top",0))}},{"../lib/dom":2,"../lib/helper":5,"./instances":17,"./update-scroll":19}],19:[function(e,t,n){"use strict";var r=e("./instances"),i=function(e){var t=document.createEvent("Event");return t.initEvent(e,!0,!0),t};t.exports=function(e,t,n){if("undefined"==typeof e)throw"You must provide an element to the update-scroll function";if("undefined"==typeof t)throw"You must provide an axis to the update-scroll function";if("undefined"==typeof n)throw"You must provide a value to the update-scroll function";"top"===t&&n<=0&&(e.scrollTop=n=0,e.dispatchEvent(i("ps-y-reach-start"))),"left"===t&&n<=0&&(e.scrollLeft=n=0,e.dispatchEvent(i("ps-x-reach-start")));var s=r.get(e);"top"===t&&n>=s.contentHeight-s.containerHeight&&(n=s.contentHeight-s.containerHeight,n-e.scrollTop<=2?n=e.scrollTop:e.scrollTop=n,e.dispatchEvent(i("ps-y-reach-end"))),"left"===t&&n>=s.contentWidth-s.containerWidth&&(n=s.contentWidth-s.containerWidth,n-e.scrollLeft<=2?n=e.scrollLeft:e.scrollLeft=n,e.dispatchEvent(i("ps-x-reach-end"))),void 0===s.lastTop&&(s.lastTop=e.scrollTop),void 0===s.lastLeft&&(s.lastLeft=e.scrollLeft),"top"===t&&n<s.lastTop&&e.dispatchEvent(i("ps-scroll-up")),"top"===t&&n>s.lastTop&&e.dispatchEvent(i("ps-scroll-down")),"left"===t&&n<s.lastLeft&&e.dispatchEvent(i("ps-scroll-left")),"left"===t&&n>s.lastLeft&&e.dispatchEvent(i("ps-scroll-right")),"top"===t&&n!==s.lastTop&&(e.scrollTop=s.lastTop=n,e.dispatchEvent(i("ps-scroll-y"))),"left"===t&&n!==s.lastLeft&&(e.scrollLeft=s.lastLeft=n,e.dispatchEvent(i("ps-scroll-x")))}},{"./instances":17}],20:[function(e,t,n){"use strict";var r=e("../lib/helper"),i=e("../lib/dom"),s=e("./instances"),o=e("./update-geometry"),u=e("./update-scroll");t.exports=function(e){var t=s.get(e);t&&(t.negativeScrollAdjustment=t.isNegativeScroll?e.scrollWidth-e.clientWidth:0,i.css(t.scrollbarXRail,"display","block"),i.css(t.scrollbarYRail,"display","block"),t.railXMarginWidth=r.toInt(i.css(t.scrollbarXRail,"marginLeft"))+r.toInt(i.css(t.scrollbarXRail,"marginRight")),t.railYMarginHeight=r.toInt(i.css(t.scrollbarYRail,"marginTop"))+r.toInt(i.css(t.scrollbarYRail,"marginBottom")),i.css(t.scrollbarXRail,"display","none"),i.css(t.scrollbarYRail,"display","none"),o(e),u(e,"top",e.scrollTop),u(e,"left",e.scrollLeft),i.css(t.scrollbarXRail,"display",""),i.css(t.scrollbarYRail,"display",""))}},{"../lib/dom":2,"../lib/helper":5,"./instances":17,"./update-geometry":18,"./update-scroll":19}]},{},[1]),define("app/modules/topics-views/views/subviews-article/article-content-text-view",["require","underscore","jquery","backbone","app/base-classes/base-view","text!app/modules/topics-views/views/templates/tmpl-article-content-image.html","mustache","Ps","FTScroller","TweenMax"],function(e){var t=e("underscore"),n=e("jquery"),r=e("backbone"),i=e("app/base-classes/base-view"),s=e("text!app/modules/topics-views/views/templates/tmpl-article-content-image.html"),o=e("mustache"),u=e("Ps"),a=e("FTScroller"),f=e("TweenMax"),l=i.extend({initialize:function(e,t,r){this.debug=!1,this.data=t,this.parentId=r,this.containerHeight=n(".article-text").height(),this.init()},start:function(){this.render()},events:{},removeFromStage:function(){f.to(this.el,.5,{opacity:0,ease:Power1.easeIn,onComplete:this.cleanUp.bind(this)})},cleanUp:function(){this.undelegateEvents(),n(this.el).remove(),this.remove()},onCloseBtnClick:function(e){this.console.log("close btn click"),this.removeFromStage()},resetPortrait:function(){this.console.log("text article text ",n(this.el).find(".article-text"),this.$el),this.$el.attr("style","height: inherit !important")},afterRender:function(){this.orientation=boeing_globals.state.get("orientation"),this.orientation!="portrait"?window.setTimeout(this.addScrolling.bind(this),100):window.setTimeout(this.resetPortrait.bind(this),100)},decodeText:function(e){var t=e;return t=decodeURIComponent(t.replace(/\+/g," ")),t=t.replace(/&lt;br \/&gt;/g,"<br/>"),e},addScrolling:function(){console.log("scroller container is ",u);var e=this.parentId+" #article-scroll-text",t=document.getElementById("article-scroll-text");u.initialize(this.el)},addScrollbar:function(){var e=this.parentId+" #article-scroll-text",t=n(e).height();t>this.containerHeight&&n(this.parentId+" .ftscroller_scrollbar").addClass("reveal-scrollbar")},onScrollEvent:function(e){},render:function(){var e=n("<div id='article-scroll-text'></div>");return e.html(this.data.text),n(this.el).html(e),window.setTimeout(this.afterRender.bind(this),500),this.el}});return l}),define("text!app/modules/topics-views/views/templates/tmpl-article-content.html",[],function(){return'<ol>\n    <li class="panel article-left white">\n        <header class="left">\n            <h4>{{eyebrow}} | {{article}}</h4>\n            <h1>{{title}}</h1>\n            <div class="article-text"></div>\n        </header>\n    </li>\n    <!--li class="hide-on-desktop tablet-portrait-image">\n        <h1>THIS IS HIDDEN ON DESKTOP</h1>\n    </li-->\n    <li class="footnotes">\n        <aside>\n            <h5>{{further-reading}}</h5>\n            <ul>\n                {{#further_reading}}\n                <li class="further-reading" data-url="{{url}}">\n                    <svg xmlns="//www.w3.org/2000/svg" xmlns:xlink="//www.w3.org/1999/xlink" preserveAspectRatio="xMidYMid" width="17.969" height="14" viewBox="0 0 17.969 14">\n                      <defs>\n                        <style>\n                          .cls-1 {\n                            fill: #ccc;\n                            fill-rule: evenodd;\n                          }\n                        </style>\n                      </defs>\n                      <path d="M-0.004,10.144 L-0.004,7.712 L17.972,7.712 L17.972,10.144 L-0.004,10.144 ZM-0.004,0.000 L17.972,0.000 L17.972,2.432 L-0.004,2.432 L-0.004,0.000 ZM12.976,6.288 L-0.004,6.288 L-0.004,3.856 L12.976,3.856 L12.976,6.288 ZM12.976,14.000 L-0.004,14.000 L-0.004,11.568 L12.976,11.568 L12.976,14.000 Z" class="cls-1"/>\n                    </svg>\n                    <h4>{{title}}, <span>{{attribution}}</span> </h4>\n                </li>\n                {{/further_reading}}\n            </ul>\n        </aside>\n    </li>\n</ol>\n\n<ol class="main-content">\n\n    <li class="panel article-right image content-{{content-type}}">\n\n    </li>\n\n</ol>'}),define("text!app/modules/topics-views/views/templates/tmpl-article-content-portrait.html",[],function(){return'<ol class="portrait no-drag" style="position:relative; overflow:hidden;">\n    <li class="panel article-left white">\n        <header class="left">\n            <h4>{{eyebrow}} | {{article}}</h4>\n            <h1>{{title}}</h1>\n            <div class="article-text no-drag"></div>\n                <div class="footnotes">\n                    <aside>\n                        <h5>{{further-reading}}</h5>\n                        <ul>\n                            {{#further_reading}}\n                            <li class="further-reading" data-url="{{url}}">\n                                <svg xmlns="//www.w3.org/2000/svg" xmlns:xlink="//www.w3.org/1999/xlink" preserveAspectRatio="xMidYMid" width="17.969" height="14" viewBox="0 0 17.969 14">\n                                    <defs>\n                                        <style>\n                                            .cls-1 {\n                                                fill: #ccc;\n                                                fill-rule: evenodd;\n                                            }\n                                        </style>\n                                    </defs>\n                                    <path d="M-0.004,10.144 L-0.004,7.712 L17.972,7.712 L17.972,10.144 L-0.004,10.144 ZM-0.004,0.000 L17.972,0.000 L17.972,2.432 L-0.004,2.432 L-0.004,0.000 ZM12.976,6.288 L-0.004,6.288 L-0.004,3.856 L12.976,3.856 L12.976,6.288 ZM12.976,14.000 L-0.004,14.000 L-0.004,11.568 L12.976,11.568 L12.976,14.000 Z" class="cls-1"/>\n                                </svg>\n                                <h4>{{title}}, <span>{{attribution}}</span> </h4>\n                            </li>\n                            {{/further_reading}}\n                        </ul>\n                    </aside>\n                </div>\n        </header>\n    </li>\n    <!--li class="hide-on-desktop tablet-portrait-image">\n        <h1>THIS IS HIDDEN ON DESKTOP</h1>\n    </li-->\n\n</ol>\n'}),function(){var requirejs,require,define,__inflate;(function(e){function t(e,t){var n=t&&t.split("/"),r=l.map,i=r&&r["*"]||{},s,o,u,a,f,c,h;if(e&&e.charAt(0)==="."&&t){n=n.slice(0,n.length-1),e=n.concat(e.split("/"));for(f=0;h=e[f];f++)if(h===".")e.splice(f,1),f-=1;else if(h===".."){if(f===1&&(e[2]===".."||e[0]===".."))return!0;f>0&&(e.splice(f-1,2),f-=2)}e=e.join("/")}if((n||i)&&r){s=e.split("/");for(f=s.length;f>0;f-=1){o=s.slice(0,f).join("/");if(n)for(c=n.length;c>0;c-=1){u=r[n.slice(0,c).join("/")];if(u){u=u[o];if(u){a=u;break}}}a=a||i[o];if(a){s.splice(0,f,a),e=s.join("/");break}}}return e}function n(t,n){return function(){return d.apply(e,h.call(arguments,0).concat([t,n]))}}function r(e){return function(n){return t(n,e)}}function i(e){return function(t){a[e]=t}}function s(t){if(f.hasOwnProperty(t)){var n=f[t];delete f[t],c[t]=!0,p.apply(e,n)}if(!a.hasOwnProperty(t))throw new Error("No "+t);return a[t]}function o(e,n){var i,o,u=e.indexOf("!");return u!==-1?(i=t(e.slice(0,u),n),e=e.slice(u+1),o=s(i),o&&o.normalize?e=o.normalize(e,r(n)):e=t(e,n)):e=t(e,n),{f:i?i+"!"+e:e,n:e,p:o}}function u(e){return function(){return l&&l.config&&l.config[e]||{}}}var a={},f={},l={},c={},h=[].slice,p,d;p=function(t,r,l,h){var p=[],d,v,m,g,y,b;h=h||t,typeof l=="string"&&(l=__inflate(t,l));if(typeof l=="function"){r=!r.length&&l.length?["require","exports","module"]:r;for(b=0;b<r.length;b++){y=o(r[b],h),m=y.f;if(m==="require")p[b]=n(t);else if(m==="exports")p[b]=a[t]={},d=!0;else if(m==="module")v=p[b]={id:t,uri:"",exports:a[t],config:u(t)};else if(a.hasOwnProperty(m)||f.hasOwnProperty(m))p[b]=s(m);else if(y.p)y.p.load(y.n,n(h,!0),i(m),{}),p[b]=a[m];else if(!c[m])throw new Error(t+" missing "+m)}g=l.apply(a[t],p);if(t)if(v&&v.exports!==e&&v.exports!==a[t])a[t]=v.exports;else if(g!==e||!d)a[t]=g}else t&&(a[t]=l)},requirejs=require=d=function(t,n,r,i){return typeof t=="string"?s(o(t,n).f):(t.splice||(l=t,n.splice?
1(t=n,n=r,r=null):t=e),n=n||function(){},i?p(e,t,n,r):setTimeout(function(){p(e,t,n,r)},15),d)},d.config=function(e){return l=e,d},define=function(e,t,n){t.splice||(n=t,t=[]),f[e]=[e,t,n]},define.amd={jQuery:!0}})(),__inflate=function(name,src){var r;return eval(["r = function(a,b,c){","\n};\n//@ sourceURL="+name+"\n"].join(src)),r},define("lib/api/events",["require","exports","module"],function(e,t,n){t.api={LOAD_PROGRESS:"loadProgress",PLAY_PROGRESS:"playProgress",PLAY:"play",PAUSE:"pause",FINISH:"finish",SEEK:"seek",READY:"ready",OPEN_SHARE_PANEL:"sharePanelOpened",CLICK_DOWNLOAD:"downloadClicked",CLICK_BUY:"buyClicked",ERROR:"error"},t.bridge={REMOVE_LISTENER:"removeEventListener",ADD_LISTENER:"addEventListener"}}),define("lib/api/getters",["require","exports","module"],function(e,t,n){n.exports={GET_VOLUME:"getVolume",GET_DURATION:"getDuration",GET_POSITION:"getPosition",GET_SOUNDS:"getSounds",GET_CURRENT_SOUND:"getCurrentSound",GET_CURRENT_SOUND_INDEX:"getCurrentSoundIndex",IS_PAUSED:"isPaused"}}),define("lib/api/setters",["require","exports","module"],function(e,t,n){n.exports={PLAY:"play",PAUSE:"pause",TOGGLE:"toggle",SEEK_TO:"seekTo",SET_VOLUME:"setVolume",NEXT:"next",PREV:"prev",SKIP:"skip"}}),define("lib/api/api",["require","exports","module","lib/api/events","lib/api/getters","lib/api/setters"],function(e,t,n){function r(e){return!!(e===""||e&&e.charCodeAt&&e.substr)}function i(e){return!!(e&&e.constructor&&e.call&&e.apply)}function s(e){return!!e&&e.nodeType===1&&e.nodeName.toUpperCase()==="IFRAME"}function o(e){var t=!1,n;for(n in T)if(T.hasOwnProperty(n)&&T[n]===e){t=!0;break}return t}function u(e){var t,n,r;for(t=0,n=A.length;t<n;t++){r=e(A[t]);if(r===!1)break}}function a(e){var t="",n,r,i;e.substr(0,2)==="//"&&(e=window.location.protocol+e),i=e.split("/");for(n=0,r=i.length;n<r;n++){if(!(n<3))break;t+=i[n],n<2&&(t+="/")}return t}function f(e){return e.contentWindow?e.contentWindow:e.contentDocument&&"parentWindow"in e.contentDocument?e.contentDocument.parentWindow:null}function l(e){var t=[],n;for(n in e)e.hasOwnProperty(n)&&t.push(e[n]);return t}function c(e,t,n){n.callbacks[e]=n.callbacks[e]||[],n.callbacks[e].push(t)}function h(e,t){var n=!0,r;return t.callbacks[e]=[],u(function(t){r=t.callbacks[e]||[];if(r.length)return n=!1,!1}),n}function p(e,t,n){var r=f(n),i,s;if(!r.postMessage)return!1;i=n.getAttribute("src").split("?")[0],s=JSON.stringify({method:e,value:t}),i.substr(0,2)==="//"&&(i=window.location.protocol+i),i=i.replace(/http:\/\/(w|wt).soundcloud.com/,"https://$1.soundcloud.com"),r.postMessage(s,i)}function d(e){var t;return u(function(n){if(n.instance===e)return t=n,!1}),t}function v(e){var t;return u(function(n){if(f(n.element)===e)return t=n,!1}),t}function m(e,t){return function(n){var r=i(n),s=d(this),o=!r&&t?n:null,u=r&&!t?n:null;return u&&c(e,u,s),p(e,o,s.element),this}}function g(e,t,n){var r,i,s;for(r=0,i=t.length;r<i;r++)s=t[r],e[s]=m(s,n)}function y(e,t,n){return e+"?url="+t+"&"+b(n)}function b(e){var t,n,r=[];for(t in e)e.hasOwnProperty(t)&&(n=e[t],r.push(t+"="+(t==="start_track"?parseInt(n,10):n?"true":"false")));return r.join("&")}function w(e,t,n){var r=e.callbacks[t]||[],i,s;for(i=0,s=r.length;i<s;i++)r[i].apply(e.instance,n);if(o(t)||t===C.READY)e.callbacks[t]=[]}function E(e){var t,n,r,i,s;try{n=JSON.parse(e.data)}catch(o){return!1}t=v(e.source),r=n.method,i=n.value;if(t&&S(e.origin)!==S(t.domain))return!1;if(!t)return r===C.READY&&L.push(e.source),!1;r===C.READY&&(t.isReady=!0,w(t,O),h(O,t)),r===C.PLAY&&!t.playEventFired&&(t.playEventFired=!0),r===C.PLAY_PROGRESS&&!t.playEventFired&&(t.playEventFired=!0,w(t,C.PLAY,[i])),s=[],i!==undefined&&s.push(i),w(t,r,s)}function S(e){return e.replace(_,"")}var x=e("lib/api/events"),T=e("lib/api/getters"),N=e("lib/api/setters"),C=x.api,k=x.bridge,L=[],A=[],O="__LATE_BINDING__",M="http://wt.soundcloud.dev:9200/",_=/^http(?:s?)/,D,P,H;window.addEventListener?window.addEventListener("message",E,!1):window.attachEvent("onmessage",E),n.exports=H=function(e,t,n){r(e)&&(e=document.getElementById(e));if(!s(e))throw new Error("SC.Widget function should be given either iframe element or a string specifying id attribute of iframe element.");t&&(n=n||{},e.src=y(M,t,n));var i=v(f(e)),o,u;return i&&i.instance?i.instance:(o=L.indexOf(f(e))>-1,u=new D(e),A.push(new P(u,e,o)),u)},H.Events=C,window.SC=window.SC||{},window.SC.Widget=H,P=function(e,t,n){this.instance=e,this.element=t,this.domain=a(t.getAttribute("src")),this.isReady=!!n,this.callbacks={}},D=function(){},D.prototype={constructor:D,load:function(e,t){if(!e)return;t=t||{};var n=this,r=d(this),i=r.element,s=i.src,o=s.substr(0,s.indexOf("?"));r.isReady=!1,r.playEventFired=!1,i.onload=function(){n.bind(C.READY,function(){var e,n=r.callbacks;for(e in n)n.hasOwnProperty(e)&&e!==C.READY&&p(k.ADD_LISTENER,e,r.element);t.callback&&t.callback()})},i.src=y(o,e,t)},bind:function(e,t){var n=this,r=d(this);return r&&r.element&&(e===C.READY&&r.isReady?setTimeout(t,1):r.isReady?(c(e,t,r),p(k.ADD_LISTENER,e,r.element)):c(O,function(){n.bind(e,t)},r)),this},unbind:function(e){var t=d(this),n;t&&t.element&&(n=h(e,t),e!==C.READY&&n&&p(k.REMOVE_LISTENER,e,t.element))}},g(D.prototype,l(T)),g(D.prototype,l(N),!0)}),window.SC=window.SC||{},window.SC.Widget=require("lib/api/api")}(),define("soundcloud",function(){}),define("app/modules/topics-views/views/subviews-article/article-content-soundcloud-view",["require","underscore","jquery","backbone","app/base-classes/base-view","text!app/modules/topics-views/views/templates/tmpl-article-content-image.html","soundcloud","mustache","TweenMax"],function(e){var t=e("underscore"),n=e("jquery"),r=e("backbone"),i=e("app/base-classes/base-view"),s=e("text!app/modules/topics-views/views/templates/tmpl-article-content-image.html"),o=e("soundcloud"),u=e("mustache"),a=e("TweenMax"),f=i.extend({className:"soundcloud",initialize:function(e){this.debug=!1,this.data=e,this.widgetById=null,window.sndCloud=this,this.init()},start:function(){this.render()},events:{},removeFromStage:function(){this.pause(),this.cleanUp()},cleanUp:function(){this.undelegateEvents(),n(this.el).remove(),this.remove()},loadAudioEvents:function(e){this.console.log("sc is ready")},onAudioPlayedEvent:function(e){this.trigger("VIDEO_PLAYING_EVENT",this.el.id)},afterRender:function(){this.widgetById=SC.Widget(this.idStr),this.widgetById.bind(SC.Widget.Events.PLAY,this.onAudioPlayedEvent.bind(this))},play:function(){this.widgetById!=undefined&&this.widgetById!=null&&this.widgetById.play()},pause:function(){this.widgetById!=undefined&&this.widgetById!=null&&this.widgetById.pause()},render:function(){n(this.el).html(unescape(this.data.sound_file)),this.idStr="article-soundcloud";var e=this.$el.find("iframe");return n(e).attr("id",this.idStr),window.setTimeout(this.afterRender.bind(this),1e3),this.el}});return f}),define("app/modules/topics-views/views/subviews-article/view-article-content",["require","underscore","jquery","backbone","app/base-classes/base-view","app/modules/topics-views/views/subviews-article/article-content-image-view","app/modules/topics-views/views/subviews-article/article-content-image-view-portrait","app/modules/topics-views/views/subviews-article/article-content-videoloop-view","app/modules/topics-views/views/subviews-article/article-content-video-view","app/modules/topics-views/views/subviews-article/article-content-text-view","text!app/modules/topics-views/views/templates/tmpl-article-content.html","text!app/modules/topics-views/views/templates/tmpl-article-content-portrait.html","FTScroller","app/modules/video/video-generic-view","Draggable","app/modules/topics-views/views/subviews-article/article-content-soundcloud-view","app/modules/topics-views/models/model","mustache","TweenMax"],function(e){var t=e("underscore"),n=e("jquery"),r=e("backbone"),i=e("app/base-classes/base-view"),s=e("app/modules/topics-views/views/subviews-article/article-content-image-view"),o=e("app/modules/topics-views/views/subviews-article/article-content-image-view-portrait"),u=e("app/modules/topics-views/views/subviews-article/article-content-videoloop-view"),a=e("app/modules/topics-views/views/subviews-article/article-content-video-view"),f=e("app/modules/topics-views/views/subviews-article/article-content-text-view"),l=e("text!app/modules/topics-views/views/templates/tmpl-article-content.html"),c=e("text!app/modules/topics-views/views/templates/tmpl-article-content-portrait.html"),h=e("FTScroller"),p=e("app/modules/video/video-generic-view"),d=e("Draggable"),v=e("app/modules/topics-views/views/subviews-article/article-content-soundcloud-view"),m=e("app/modules/topics-views/models/model"),g=e("mustache"),y=e("TweenMax"),b=i.extend({initialize:function(e,t){this.debug=!1,this.Evt=e,this.model=t,n(this.el).attr("id",this.cid),this.idStr="#"+this.el.
1id,this.init(),this.console.log("topic template is view-article ",this.model.toJSON()),this.Evt.listenTo(this,"SWIPE_NAV_EVENT",this.Evt.onSwipeNavEvent),this.Evt.listenTo(this,"PAUSEALL_MEDIA_EVENT",this.Evt.onPauseAllMediaEvent),this.listenTo(this.Evt,"GLOBAL_MEDIA_EVENT",this.onGlobalMediaEvent.bind(this)),this.mediaArr=[],this.orientation=boeing_globals.state.get("orientation"),this.tmpl=l,this.orientation=="portrait"&&(this.tmpl=c)},onBreakpointEvent:function(e){this.console.log("breakpoint event in article is ",e),this.orientation=e.value,this.resetMainContent()},onGlobalMediaEvent:function(e){var n=e.media_event,r=e.exception,i,s,o=function(e,t){s=e,i=s.el.id,r!=i&&i!=""&&s.pause(),this.console.log(r,n,"e: ",e.el.id)};t.each(this.mediaArr,o.bind(this))},start:function(){this.render()},events:{},onMediaStartedEvent:function(e){this.console.log("the media has started ",e);var t={media_event:"pause_all",exception:e};this.trigger("PAUSEALL_MEDIA_EVENT",t)},removeFromStage:function(){this.cleanUp()},cleanUp:function(){this.mainContent!=undefined&&this.mainContent.removeFromStage(),this.soundCloudView!=undefined&&this.soundCloudView.removeFromStage(),this.undelegateEvents(),this.remove()},addText:function(){this.console.log("this el id is ",n(this.el.id),this.el.id),this.textView=new f({el:this.idStr+" li.panel.article-left header.left div.article-text"},this.data,this.idStr)},resetMainContent:function(){if(this.mainContent!=undefined){var e=this.getMainContentDom();n(e).replaceWith(this.mainContent.el),this.console.log("main content is ",this.mainContent)}},getMainContentDom:function(){var e=" ol.main-content li.panel.article-right",t=" li.hide-on-desktop.tablet-portrait-image";return this.console.log("portrait el is ",this.orientation,this.el+" "+t),e},addMainContent:function(){this.contentType=this.model.get("content_type");if(this.contentType=="Image"){var e="#"+n(this.el).attr("id")+this.getMainContentDom();this.mainContent=new s({el:e},this.data,this.idStr,this.Evt),n(this.mainContent.el).addClass("zoom-container"),this.mainContent.start(),this.console.log("MAIN CONTENT IMAGE IS ",this.mainContent)}else if(this.contentType=="Video"){var t=function(){this.mainContent=new a,this.mainContent.start(this.model,this.getMainContentDom()),this.mediaArr.push(this.mainContent),n(this.el).find(this.getMainContentDom()).append(this.mainContent.render()),this.listenTo(this.mainContent,"VIDEO_PLAYING_EVENT",this.onMediaStartedEvent.bind(this))};window.setTimeout(t.bind(this),100)}else this.contentType=="Loop"&&(this.mainContent=new u({},this.data),n(this.el).find(this.getMainContentDom()).append(this.mainContent.el),this.mainContent.start())},checkForSoundCloud:function(){this.console.log("check for soundcloud ",this.data);var e=this.data.sound_file,t=this.data.add_sound_file==1;t==1&&(this.soundCloudView=new v(this.data),this.soundCloudView!=undefined&&(this.listenTo(this.soundCloudView,"VIDEO_PLAYING_EVENT",this.onMediaStartedEvent.bind(this)),this.mediaArr.push(this.soundCloudView),n(this.el).find("li.panel.article-left header").append(this.soundCloudView.render())))},onDragEnd:function(e){var t=this.draggable.minY,n=this.draggable.y,r=this.draggable.maxY,i=n-40>r,s=n+40<t,o;i==1?(o=1,this.trigger("SWIPE_NAV_EVENT",o)):s==1&&(o=-1,this.trigger("SWIPE_NAV_EVENT",o)),this.console.log("end drag is ",n,t,r," up: ",i," down: ",s),this.draggable.applyBounds({minY:this.getMaxHeight(),maxY:0})},getMaxHeight:function(){this.containerHeight=n(this.idStr+" .article-text").height();var e=this.containerHeight-window.innerHeight*.6;return e*=-1,e},addScrolling:function(){var e=this.idStr+" ol.portrait",t=document.querySelector(e);this.console.log("container is ",e,t);var r=this.getMaxHeight();this.draggable=Draggable.create(t,{type:"y",cursor:"auto",edgeResistance:.5,zIndexBoost:!0,minimumMovement:6,bounds:{minY:r,maxY:0},lockAxis:!0,throwProps:!0})[0],this.draggable.addEventListener("dragend",this.onDragEnd.bind(this)),this.console.log("DRaggable init ",this.draggable),n(this.idStr).css({position:"absolute",width:"100%",height:"100%",overflow:"auto","background-color":"#fff"}),n(e).css("overflow","initial"),n(this.idStr+" ol li.panel").css({height:"inherit",overflow:"inherit "}),n("video#article-video_html5_api").on("webkitendfullscreen",this.onFullscreenChangeEvent.bind(this))},setThePosterFrame:function(){var e=this.model.attributes.content_video_posterframe.url,t="background-image: url("+e+"); display:block",r=n(".vjs-poster"),i=n("<div class='play-icon'></div>");r.attr("style",t),r.append(i),r.on("click",this.onVideoClick.bind(this))},onVideoClick:function(e){this.console.log("video click event "),n(".vjs-poster").remove();var t=function(){this.vidjs.play()};window.setTimeout(t.bind(this),500)},onFullscreenChangeEvent:function(e){this.addScrolling()},afterRenderPortrait:function(){var e={id:this.id};this.trigger("RENDERED",e),this.addText(),this.textView.render(),this.contentType=this.model.get("content_type");if(this.contentType=="Image"){this.mainContent=new o({},this.data,this.idStr);var t=this.idStr+" #article-scroll-text";n(t).prepend(this.mainContent.render())}else if(this.contentType=="Loop"){var r=this.data;r.content_url=r.content_video_posterframe.url,this.mainContent=new o({},r,this.idStr);var t=this.idStr+" #article-scroll-text";n(t).prepend(this.mainContent.render())}else if(this.contentType=="Video"){var i=this.idStr+" #article-scroll-text";this.videoView=new p(this.getVideoJson()),n(this.videoView.el).removeClass("vjs-fullscreen");var s=this.model.get("content_url"),u=this.model.get("content_video_id"),a=this.model.attributes.content_video_posterframe.url;n(i).prepend(this.videoView.el),this.videoView.start(u);var f=function(){n(".vjs-poster").removeClass("vjs-hidden"),this.setThePosterFrame
1(),this.console.log(a," removing Poster hidden",n(".vjs-poster"))};this.vidjs=this.videoView.getVideoJsObj(),boeing_globals.isTouchDevice==1&&window.setTimeout(f.bind(this),1e3)}this.console.log("content type in portrait is ",this.contentType,this.data),this.checkExtraViews(),window.setTimeout(this.addScrolling.bind(this),1e3)},afterRender:function(){var e={id:this.id};this.trigger("RENDERED",e),this.addText(),this.textView.render(),this.addMainContent(),this.checkExtraViews()},checkExtraViews:function(){var e=this.data.content_type=="video",t=e==1?600:500;window.setTimeout(this.checkForSoundCloud.bind(this),t);var r=this.checkFootnoteLength();r==0?n(this.el).find(".footnotes").remove():(n(this.el).find(".further-reading").each(function(e,t){var r=n(this),i=r.data("url");i==""?r.remove():r.on("click",function(e){var t=n(e.currentTarget);if(t.data("url")){var r=t.data("url");window.open(r)}})}),this.checkFootnoteLength()||n(this.el).find(".footnotes").remove())},checkFootnoteLength:function(){return n(this.el).find(".further-reading").length>0},getVideoJson:function(){var e={id:"article-video",className:"video-js vjs-fullscreen"};return e},decodeText:function(e){var t=e;return t=decodeURIComponent(t.replace(/\+/g," ")),t=t.replace(/&lt;br \/&gt;/g,"<br/>"),t},render:function(){this.data=this.model.toJSON(),this.data.article=boeing_globals.uiTextModel.get("article");var e=g.to_html(this.tmpl,this.data);return n(this.el).html(e),n(this.el).addClass(boeing_globals.device),this.orientation=="portrait"?window.setTimeout(this.afterRenderPortrait.bind(this),100):window.setTimeout(this.afterRender.bind(this),100),this.el}});return b}),define("app/modules/topics-views/views/view-article",["require","underscore","jquery","backbone","app/base-classes/base-view-topics","app/modules/topics-views/views/subviews-article/article-content-image-view","app/modules/topics-views/views/subviews-article/article-content-videoloop-view","app/modules/topics-views/views/subviews-article/article-content-video-view","app/modules/topics-views/views/subviews-article/view-article-content","app/modules/topics-views/views/subviews-article/article-content-text-view","app/modules/video/video-generic-view","app/modules/topics-views/views/subviews-article/article-content-soundcloud-view","app/modules/topics-views/models/model","mustache","TweenMax"],function(e){var t=e("underscore"),n=e("jquery"),r=e("backbone"),i=e("app/base-classes/base-view-topics"),s=e("app/modules/topics-views/views/subviews-article/article-content-image-view"),o=e("app/modules/topics-views/views/subviews-article/article-content-videoloop-view"),u=e("app/modules/topics-views/views/subviews-article/article-content-video-view"),a=e("app/modules/topics-views/views/subviews-article/view-article-content"),f=e("app/modules/topics-views/views/subviews-article/article-content-text-view"),l=e("app/modules/video/video-generic-view"),c=e("app/modules/topics-views/views/subviews-article/article-content-soundcloud-view"),h=e("app/modules/topics-views/models/model"),p=e("mustache"),d=e("TweenMax"),v=i.extend({initialize:function(e,t,n){this.el="#"+t,this.debug=!1,this.Evt=e,this.model=n,this.init(),this.console.log("topic template is view-article ",this.model.toJSON()),this.Evt.listenTo(this,"PAUSEALL_MEDIA_EVENT",this.Evt.onPauseAllMediaEvent),this.listenTo(this.Evt,"GLOBAL_MEDIA_EVENT",this.onGlobalMediaEvent.bind(this)),this.listenTo(this.Evt,"BREAKPOINT_EVENT",this.onBreakpointEvent.bind(this)),this.mediaArr=[],this.orientation="landscape"},onBreakpointEvent:function(e){this.console.log("breakpoint event in article is ",e),this.orientation=e.value,this.articleContent!=undefined&&(this.oldArticleContent=this.articleContent,this.oldArticleContent.removeFromStage(),this.articleContent=new a(this.Evt,this.model),n(this.el).append(this.articleContent.render()))},onGlobalMediaEvent:function(e){var n=e.media_event,r=e.exception,i,s,o=function(e,t){s=e,i=s.el.id,r!=i&&s.pause(),this.console.log(r,n,"e: ",e.el.id)};t.each(this.mediaArr,o.bind(this))},start:function(){this.render()},events:{},onMediaStartedEvent:function(e){this.console.log("the media has started ",e);var t={media_event:"pause_all",exception:e};this.trigger("PAUSEALL_MEDIA_EVENT",t)},cleanUp:function(){this.mainContent!=undefined&&this.mainContent.removeFromStage(),this.soundCloudView!=undefined&&this.soundCloudView.removeFromStage(),this.undelegateEvents(),this.Evt.stopListening(this),n(this.el).removeClass("reveal"),n(this.el).remove(),this.remove()},addText:function(){this.console.log("this el id is ",this.$el.attr("id")),window.articleId=this,this.textView=new f({el:"#"+n(this.el).attr("id")+" li.panel.article-left header.left div.article-text"},this.data,this.el),this.textView.render()},resetMainContent:function(){if(this.mainContent!=undefined){var e=this.getMainContentDom();n(e).replaceWith(this.mainContent.el),this.console.log("main content is ",this.mainContent)}},getMainContentDom:function(){var e=" ol li.panel.article-right",t=" li.hide-on-desktop.tablet-portrait-image";return this.console.log("portrait el is ",this.orientation,this.el+" "+t),e},addMainContent:function(){this.contentType=this.model.get("content_type");if(this.contentType=="Image"){var e="#"+n(this.el).attr("id")+this.getMainContentDom(),t={ubu:"yaya"};this.mainContent=new s({},this.data,this.el),n(this.mainContent.el).addClass("zoom-container"),this.mainContent.start(t),this.console.log("MAIN CONTENT IMAGE IS ",this.mainContent)}else if(this.contentType=="Video"){var r=function(){this.mainContent=new u,this.mainContent.start(this.model,this.getMainContentDom()),this.console.log("this content article type ",this.contentType,this.mainContent,this.model),this.mediaArr.push(this.mainContent),n(this.el).find(this.getMainContentDom()).append(this.mainContent.render()),this.listenTo(this.mainContent,"VIDEO_PLAYING_EVENT",this.onMediaStartedEvent.bind(this))};window.setTimeout(r.bind(this),100)}else this.contentType=="Loop"&&(this.mainContent=new o({},this.data),n(this.el).find(this.getMainContentDom()).append(this.mainContent.el),this.mainContent.start())},checkForSoundCloud:function(){this.console.log("check for soundcloud ",this.data);var e=this.data.sound_file,t=this.data.add_sound_file==1;t==1&&(this.soundCloudView=new c(this.data),this.soundCloudView!=undefined&&(this.listenTo(this.soundCloudView,"VIDEO_PLAYING_EVENT",this.onMediaStartedEvent.bind(this)),this.mediaArr.push(this.soundCloudView),n(this.el).find("li.panel.article-left header").append(this.soundCloudView.render())))},afterRender:function(){var e={id:this.id,isArticle:!0};this.articleContent=new a(this.Evt,this.model),n(this.el).append(this.articleContent.render()),this.trigger("RENDERED",e)},afterRenderOld:function(){var e={id:this.id,isArticle:!0};this.trigger("RENDERED",e),this.addText(),this.addMainContent();var t=this.data.content_type=="video",r=t==1?600:500;window.setTimeout(this.checkForSoundCloud.bind(this),r);var i=n(this.el).find(".further-reading").length>0;i==0?n(this.el).find(".footnotes").remove():n(this.el).find(".further-reading").on("click",function(e){var t=n(e.currentTarget);if(t.data("url")){var r=t.data("url");window.open(r)}})},getVideoJson:function(){var e={id:"article-video",className:"video-js vjs-fullscreen"};return e},decodeText:function(e){var t=e;return t=decodeURIComponent(t.replace(/\+/g," ")),t=t.replace(/&lt;br \/&gt;/g,"<br/>"),t},render:function(){var e=["article","further-reading"];this.addUIFields(e),this.data=this.model.toJSON();var t=p.to_html(this.tmpl,this.data);n(this.el).html(t),this.setStageInfo(),this.afterRender()}});return v}),define("text!app/modules/topics-views/views/templates/tmpl-gallery-image.html",[],function(){return'<img class="draggable centered no-drag" src="{{content_url}}" />\n'}),define("app/modules/topics-views/views/subviews-gallery/gallery-image-view",["require","underscore","jquery","backbone","app/base-classes/base-view","text!app/modules/topics-views/views/templates/tmpl-gallery-image.html","mustache","TweenMax"],function(e){var t=e("underscore"),n=e("jquery"),r=e("backbone"),i=e("app/base-classes/base-view"),s=e("text!app/modules/topics-views/views/templates/tmpl-gallery-image.html"),o=e("mustache"),u=e("TweenMax"),a=i.extend({tagName:"dd",className:"no-drag",id:"overlay-scroll",initialize:function(e){this.debug=!1,this.data=e,this.init()},start:function(){},events:{},removeFromStage:function(){this.cleanUp()},cleanUp:function(){this.undelegateEvents(),this.remove()},afterRender:function(){}
1,getBackgroundSize:function(){var e=this.data.image.width>=this.data.image.height;return e==1?"cover":"contain"},getBackgroundImg:function(){return"url("+this.data.image.url+")no-repeat"},getBackgroundSettings:function(){var e=boeing_globals.state.get("orientation")=="portrait",t={background:this.getBackgroundImg(),"background-size":this.getBackgroundSize(),"background-position":"50%,50%"},n={background:this.getBackgroundImg(),"background-size":this.getBackgroundSize(),"background-position":"50%,50%"},r=e==1?n:t;return r},getCaption:function(){n(this.el).append('<p class="caption">'+this.data.image.caption+"</p>")},resetImage:function(){n(this.el).html(""),this.render()},render:function(){this.data.content_url=this.data.image.url;var e=o.to_html(s,this.data);return this.isPortrait=boeing_globals.state.get("orientation")=="portrait",this.isPortrait==1?n(this.el).css(this.getBackgroundSettings()):(n(this.el).css(this.getBackgroundSettings()),n(this.el).html(e),n(this.el).addClass("landscape")),this.afterRender(),this.el}});return a}),define("app/modules/topics-views/views/subviews-gallery/gallery-images-container-view",["require","underscore","jquery","backbone","app/base-classes/base-view","mustache","app/modules/topics-views/views/subviews-gallery/gallery-image-view","app/utils/zoom-and-pan-mixins","TweenMax"],function(e){var t=e("underscore"),n=e("jquery"),r=e("backbone"),i=e("app/base-classes/base-view"),s=e("mustache"),o=e("app/modules/topics-views/views/subviews-gallery/gallery-image-view"),u=e("app/utils/zoom-and-pan-mixins"),a=e("TweenMax"),f=i.extend({initialize:function(e,t,n){this.debug=!1,this.model=t,this.galleryParent=n,this.listenTo(this.model,"GALLERY_UPDATE_EVENT",this.onModelChanged.bind(this)),this.init(),this.moveImage=!1,this.firstAnimationCompleted=!1,u.hideUIForZoom(!1),window.setTimeout(this.addEventListeners.bind(this),1e3)},addEventListeners:function(){this.listenTo(this.galleryParent,"PHOTO_ACTIVE_EVENT",this.onPhotoActiveEvent.bind(this)),this.listenTo(this.galleryParent,"REMOVE_GALLERY_SUBVIEWS_EVENT",this.cleanUp.bind(this)),u.hideUIForZoom(!1)},onPhotoActiveEvent:function(e){this.console.log("container gallery listening to active event ",e),e==1?(this.moveImage=!0,this.imgContainerStr="#overlay-scroll",this.zoomImgStr="#overlay-scroll img",n(".topic-type-gallery").on("mousemove",this.startMouseMove.bind(this)),u.hideUIForZoom()):(this.moveImage=!1,n(".topic-type-gallery").off("mousemove"),a.killAll(),this.stopMouseMove(),window.setTimeout(this.stopMouseMove.bind(this),450),u.hideUIForZoom(!1))},stopMouseMove:function(){var e=n(".panel.gallery-left dl dd");a.to(".panel.gallery-left.active dl dd",.35,{css:{top:"50%",left:"50%"},ease:Power2.easeOut}),e.removeAttr("style"),n(".panel.gallery-left.active dl dd").removeAttr("style"),this.img!=undefined&&this.img.resetImage()},startMouseMove5:function(e){var t=event.pageX,n=event.pageY,r=window.innerWidth,i=window.innerHeight,s=t/r*20,o=String(60-s)+"%",u=n/i*20,f=String(60-u)+"%";this.moveImage==0&&(f="0",o="0"),this.moveImage==1?a.to(".panel.gallery-left.active dl dd",.35,{css:{top:f,left:o},ease:Power2.easeOut}):(a.killAll(),this.stopMouseMove())},onModelChanged:function(e){this.addNewImage()},addNewImage:function(){this.img!=undefined&&(this.oldImg=this.img),this.img=new o(this.model.get("selectedContent"));var e=this.model.get("dir");this.animateImage(e)},animateImage:function(e){var t;e*=-1,this.console.log("image is animating in ",e,this),e==-1?(t="begin-anim-left",n(this.el).append(this.img.render())):(t="begin-anim-right",n(this.el).prepend(this.img.render())),this.currentDir=e;var r=this.currentDir==-1?"-100%":"0%",i=.75;this.firstAnimationCompleted==0?(n(this.el).css("opacity","0"),a.to(n(this.el),i,{opacity:1,delay:.5,ease:Power2.easeInOut,onComplete:this.onAnimComplete.bind(this)})):(n(this.el).addClass(t),a.to(n(this.el),i,{left:r,ease:Power2.easeInOut,onComplete:this.onAnimComplete.bind(this)})),this.firstAnimationCompleted=!0},onAnimComplete:function(){n(this.el).removeClass("begin-anim-left"),n(this.el).removeClass("begin-anim-right"),n(this.el).removeAttr("style"),this.oldImg!=undefined&&this.oldImg.removeFromStage()},start:function(){},events:{},removeFromStage:function(){this.cleanUp()},cleanUp:function(){this.console.log("CONTAINER VIEW REMOVE ",this),this.img!=undefined&&this.img.removeFromStage(),this.model=undefined,this.galleryParent=undefined,this.undelegateEvents(),this.remove()},afterRender:function(){},render:function(){return this.startMouseMove=u.startMouseMove,this.afterRender(),this.el}});return f}),define("text!app/modules/topics-views/views/templates/tmpl-gallery-desc.html",[],function(){return'<p class="gallery-count">{{image-str}} <span>{{num}}</span> {{of}} <span>{{total}}</span></p>\n\n<dl>\n        <dt>{{title}}</dt>\n        <dd class="gallery-text">{{{text}}}</dd>\n</dl>'}),define("app/modules/topics-views/views/subviews-gallery/gallery-image-desc-view",["require","underscore","jquery","backbone","app/base-classes/base-view","text!app/modules/topics-views/views/templates/tmpl-gallery-desc.html","mustache","TweenMax"],function(e){var t=e("underscore"),n=e("jquery"),r=e("backbone"),i=e("app/base-classes/base-view"),s=e("text!app/modules/topics-views/views/templates/tmpl-gallery-desc.html"),o=e("mustache"),u=e("TweenMax"),a=i.extend({initialize:function(e,t,n){this.debug=!1,this.model=t,this.arrLength=this.model.get("gallery_items").length,this.galleryParent=n,this.listenTo(this.model,"GALLERY_UPDATE_EVENT",this.onModelChanged.bind(this)),this.init(),this.console.log("GALLERY MODEL IS ",this.model)},onModelChanged:function(e){this.render()},start:function(){},events:{},removeFromStage:function(){this.cleanUp()},cleanUp:function(){this.undelegateEvents(),this.remove()},afterRender:function(){},getData:function(){var e=this.model.get("selectedContent");return e.num=this.model.get("selected")+1,e.total=this.arrLength,e["image-str"]=boeing_globals.uiTextModel.get("image"),e.of=boeing_globals.uiTextModel.get("of"),this.console.log("GET DATA IN GFALLERY IS ",e,this.model.get("main_title")),e},render:function(){var e=o.to_html(s,this.getData());return n(this.el).html(e),this.el}});return a}),define("text!app/modules/topics-views/views/templates/tmpl-gallery-portrait.html",[],function(){return'<ol class="gallery-portrait-container portrait">\n    <li class="gallery-portrait">\n        <div class="portrait-top">\n            <h4>{{eyebrow}} | {{photo-gallery}}</h4>\n            <h1>{{title}}</h1>\n    </div>\n\n\n                <div class="gallery-portrait no-drag">\n                    <dl class="img-container portrait no-drag"></dl>\n                </div>\n\n    <div class="portrait-bottom">\n            <div class="content"></div>\n\n            <div class="gallery-buttons">
1\n                <div id="btn-left" class="gallery-btn" data-dir="-1">\n\n                </div>\n                <div id="btn-right" class="gallery-btn" data-dir="1">\n\n                </div>\n            </div>\n    </div>\n    </li>\n\n\n\n</ol>\n\n\n\n\n'}),define("app/modules/topics-views/views/view-gallery",["require","jquery","app/base-classes/base-view-topics","app/modules/topics-views/views/subviews-gallery/gallery-images-container-view","app/modules/topics-views/views/subviews-gallery/gallery-image-desc-view","text!app/modules/topics-views/views/templates/tmpl-gallery.html","text!app/modules/topics-views/views/templates/tmpl-gallery-portrait.html","mustache","app/utils/zoom-and-pan-mixins"],function(e){var t=e("jquery"),n=e("app/base-classes/base-view-topics"),r=e("app/modules/topics-views/views/subviews-gallery/gallery-images-container-view"),i=e("app/modules/topics-views/views/subviews-gallery/gallery-image-desc-view"),s=e("text!app/modules/topics-views/views/templates/tmpl-gallery.html"),o=e("text!app/modules/topics-views/views/templates/tmpl-gallery-portrait.html"),u=e("mustache"),a=e("app/utils/zoom-and-pan-mixins"),f=n.extend({initialize:function(e,t,n){this.debug=!1,this.el="#"+t,this.theId="#"+t,this.Evt=e,this.model=n,this.swipeDetect=a.swipeDetect,this.Evt.listenTo(this,"SWIPE_NAV_EVENT",this.Evt.onSwipeNavEvent),this.init(),this.listenTo(this.Evt,"BREAKPOINT_EVENT",this.onBreakpointEvent.bind(this)),this.sendGalleryBtnEvent=!0},onBreakpointEvent:function(e){this.start()},getBreakpointEls:function(){var e=boeing_globals.state.get("orientation")=="portrait",t={imgContainer:this.theId+" .gallery-image-container .panel.gallery-left dl.img-container",descView:this.theId+" .gallery-ui-container .panel.gallery-right div.content"},n={imgContainer:this.theId+" .gallery-portrait-container .gallery-portrait dl.img-container",descView:this.theId+" .gallery-portrait-container .portrait-bottom div.content"};return e==1?n:t},start:function(){this.render();var e=this.getBreakpointEls();this.galleryImgContainerView=new r({el:e.imgContainer},this.model,this),this.galleryImgDescView=new i({el:e.descView},this.model,this),this.console.log("VIEW GALLERY: start",this.galleryImgContainerView,this.galleryImgDescView),this.galleryImgContainerView.render(),t(".gallery-btn").on("click",this.onGalleryBtnClick.bind(this)),this.model.getSelectedContent(1),this.update()},resetGalleryBtnClick:function(){this.sendGalleryBtnEvent=!1,t(".gallery-btn").addClass("animating");var e=function(){this.sendGalleryBtnEvent=!0,t(".gallery-btn").removeClass("animating")};window.setTimeout(e.bind(this),1e3)},triggerGalleryChange:function(e){e*=-1,this.sendGalleryBtnEvent==1&&(this.model.getSelectedContent(e*=-1),this.update())},onGalleryBtnClick:function(e){var n=t(e.currentTarget),r=n.data("dir");this.triggerGalleryChange(r),this.resetGalleryBtnClick()},onSwipe:function(e){var t=e.type=="swiperight",n=t==1?-1:1;this.triggerGalleryChange(n)},addSwipeEvents:function(e){t(this.el).on("swipeleft",this.onSwipe.bind(this)),t(this.el).on("swiperight",this.onSwipe.bind(this))},events:{},fullScreenImagePan:function(e){var n=".zoom-container";t(n).hasClass("active")?(t(n).removeClass("active"),this.trigger("PHOTO_ACTIVE_EVENT",!1)):(t(n).addClass("active"),this.trigger("PHOTO_ACTIVE_EVENT",!0))},cleanUp:function(){this.console.log("VIEW GALLERY: cleanUp",this,this.galleryImgContainerView,this.galleryImgDescView),this.trigger("REMOVE_GALLERY_SUBVIEWS_EVENT",!0),this.model.resetModel(),this.model=undefined,this.undelegateEvents(),this.Evt.stopListening(this),t(this.el).removeClass("reveal"),t(this.el).remove(),this.remove()},afterRender:function(){var e={id:this.id};this.trigger("RENDERED",e),boeing_globals.isTouchDevice==1&&this.addSwipeEvents(),window.setTimeout(this.initSwipeDetect.bind(this),2e3)},initSwipeDetect:function(){var e=document.getElementsByClassName("img-container")[0];boeing_globals.isTouchDevice==1?(e.classList.remove("no-drag"),t("#overlay-scroll").removeClass("no-drag"),t("img.draggable").removeClass("no-drag"),this.console.log("REMOVING NO DRAG STUFF")):this.swipeDetect(e,this.onSwipeDetected.bind(this)),this.console.log("INIT SWIPE DETECT ",boeing_globals.isTouchDevice)},onSwipeDetected:function(e){if(e=="up"||e=="down"){var t=1;e=="up"&&(t=-1),this.trigger("SWIPE_NAV_EVENT",t)}else this.fullScreenImagePan()},update:function(e){var n=this.model.get("selectedContent"),r=this.model.get("selected")+1,i=n.total,s=boeing_globals.uiTextModel.get("image"),o=boeing_globals.uiTextModel.get("of"),u=t(this.el).find(".gallery-count");u.html(s+" <span>"+r+" </span>"+o+" <span> "+i+" </span>")},render:function(){var e=["of","photo-gallery"];this.addUIFields(e),this.addUIString("image-str","image");var n=this.model.toJSON();this.tmpl=boeing_globals.state.get("orientation")=="landscape"?s:o;var r=u.to_html(this.tmpl,n);t(this.el).html(r),this.setStageInfo(),this.afterRender()}});return f}),define("text!app/modules/topics-views/views/templates/tmpl-hotspots-threejs.html",[],function(){return'<!-- <div class="hotspot">\n\n    <header class="hotspot-caption">\n        <h4>{{eyebrow}} | {{interactive}}</h4>
1\n        <span>{{title}}</span>\n        <p>{{{description}}}</p>\n    </header>\n</div> -->\n\n<!-- Embed code for: Group \'BOEING\' -->\n<!--\n<script charset="utf-8" type="text/javascript">\n    //__tlid = \'746756070570983426\';\n    setTimeout(function(){(function(d,t){var s=d.createElement(t),x=d.getElementsByTagName(t)[0];\n        s.type=\'text/javascript\';s.async=true;s.src=\'//cdn.thinglink.me/jse/embed.js\';\n        x.parentNode.insertBefore(s,x);})(document,\'script\');},0);\n</script>-->\n\n\n<iframe  width="100%" height="100%" allowfullscreen></iframe>\n\n'}),define("app/modules/topics-views/views/view-hotspots",["require","underscore","jquery","backbone","app/base-classes/base-view-topics","app/modules/topics-views/models/model","mustache","TweenMax","text!app/modules/topics-views/views/templates/tmpl-hotspots-threejs.html"],function(e){var t=e("underscore"),n=e("jquery"),r=e("backbone"),i=e("app/base-classes/base-view-topics"),s=e("app/modules/topics-views/models/model"),o=e("mustache"),u=e("TweenMax"),a=i.extend({initialize:function(e,t,n){this.el="#"+t,this.debug=!1,this.Evt=e,this.model=n,this.init(),this.console.log("topic template is view-hotspots")},start:function(){this.render()},events:{},cleanUp:function(){this.undelegateEvents(),this.Evt.stopListening(this),n(this.el).removeClass("reveal"),n(this.el).remove(),this.remove()},afterRender:function(){var e={id:this.id};this.trigger("RENDERED",e)},render:function(){var t=this.model.toJSON();this.console.log("DATA IN HOTSPOTS IS ",t);if(t.hasOwnProperty("threejs")&&t.threejs.length>=5){this.tmpl=e("text!app/modules/topics-views/views/templates/tmpl-hotspots-threejs.html");var r=t.threejs,i=function(){n(this.el).find("iframe").attr("src",r)};window.setTimeout(i.bind(this),1e3)}t.interactive=boeing_globals.uiTextModel.get("interactive");var s=o.to_html(this.tmpl,t);n(this.el).html(s),this.setStageInfo(),this.afterRender()}});return a}),define("app/modules/topics-views/views/subviews/topics-image-view",["require","underscore","jquery","backbone","app/base-classes/base-view","mustache","TweenMax"],function(e){var t=e("underscore"),n=e("jquery"),r=e("backbone"),i=e("app/base-classes/base-view"),s=e("mustache"),o=e("TweenMax"),u=i.extend({tagName:"img",initialize:function(e){this.debug=!1,this.data=e,this.init()},getBiggerDifference:function(e,t){var n="width",r=t-this.imgHeight,i=e-this.imgWidth;return r>i&&(n="height"),n},repositionTop:function(e){var t=e-this.imgHeight,r=t/2;r>=0&&(r=0),n(this.el).css("top",String(r)+"px")},repositionLeft:function(e){var t=e-this.imgWidth,r=window.innerWidth/window.innerHeight,i=t/2;i>=0&&(i=0),n(this.el).css("left",String(i)+"px")},repositionImage:function(e,t,r,i){var s=String((e-r)/2)+"px",o=String((t-i)/2)+"px";n(this.el).css({top:o,left:s})},onResize:function(e,t){var r=window.innerWidth,i=window.innerHeight,s=this.getBiggerDifference(r,i),o,u;t!=undefined&&(s=t),s=="width"?(o=r,u=r*this.widthRatio):(o=i*this.heightRatio,u=i),n(this.el).height(u),n(this.el).width(o),this.repositionImage(r,i,o,u)},startResizing:function(){n(window).resize(this.onResize.bind(this)),this.onResize()},stopResizing:function(){n(window).off("resize")},onLoad:function(e){this.imgWidth=n(this.el).width(),this.imgHeight=n(this.el).height(),this.widthRatio=this.imgHeight/this.imgWidth,this.heightRatio=this.imgWidth/this.imgHeight,this.startResizing(),this.console.log("image is ",this.imgWidth,this.imgHeight)},start:function(){},events:{},removeFromStage:function(){this.cleanUp()},cleanUp:function(){this.stopResizing(),this.undelegateEvents(),n(this.el).remove(),this.remove()},afterRender:function(){},render:function(){return n(this.el).attr("src",this.data),n(this.el).load(this.onLoad.bind(this)),this.afterRender(),this.el}});return u}),define("app/modules/topics-views/views/view-slider",["require","underscore","jquery","backbone","app/base-classes/base-view-topics","app/modules/topics-views/views/subviews/topics-image-view","mustache","jquery-mobile","TweenMax","Draggable"],function(e){var t=e("underscore"),n=e("jquery"),r=e("backbone"),i=e("app/base-classes/base-view-topics"),s=e("app/modules/topics-views/views/subviews/topics-image-view"),o=e("mustache"),u=e("jquery-mobile"),a=e("TweenMax"),f=e("Draggable"),l=i.extend({initialize:function(e,t,n){this.el="#"+t,this.debug=!1,this.Evt=e,this.model=n,this.init(),this.console.log("topic template is view-slider and jquery-mobile ",u)},updateBeforeWidth:function(e){var t=e/window.innerWidth*100;t<=4?t=4:t>=96&&(t=96);var r=String(t)+"%";n(".cd-handle").css({left:r,transform:"initial","margin-left":"-34px"}),console.log("LEFT PCT ",r),n(this.el).find(".slider-image.before").css("width",r)},onDragStart:function(e,t){this.updateBeforeWidth(this.draggable.pointerX);var r=this.normalize(this.draggable.pointerX,0,document.body.clientWidth),i=Math.abs(r-1),s=this.clamp(r,.3,1),o=this.clamp(i,.3,1);n(this.imgAfter.el).css("opacity",s),n(this.imgBefore.el).css("opacity",o);var u=this.normalize(this.draggable.pointerX,document.body.clientWidth/2,0),a=Math.abs(u-1);this.beforeOverlay.css("opacity",a),this.afterOverlay.css("opacity",u);var f=this.draggable.pointerX/document.body.clientWidth},start:function(){this.render(),this.addSubviews()},addSubviews:function(){this.imgBefore=new s(this.model.get("img_before")),this.imgAfter=new s(this.model.get("img_after")),this.beforeOverlay=n(this.el).find(".slider-image.before > .overlay"),this.afterOverlay=n(this.el).find(".slider-image.after > .overlay"),window.iBefore=this.imgBefore,window.iAfter=this.imgAfter,n(this.el).find(".slider-image.before").prepend(this.imgBefore.render()),n(this.el).find(".slider-image.after").prepend(this.imgAfter.render()),this.draggable=Draggable.create(n(this.el).find(".cd-handle"),{type:"left",edgeResistance:.65,force3D:!0,lockAxis:!0,throwProps:!1})[0],this.draggable.addEventListener("drag",this.onDragStart.bind(this)),this.draggable.addEventListener("dragend",this.onDragStart.bind(this))},events:{},clamp:function(e,t,n){return e<=t?t:e>=n?n:e},normalize:function(e,t,n){var r=(e-n)/(t-n);return this.clamp(r,0,1)},cleanUp:function(){this.undelegateEvents(),this.Evt.stopListening(this),this.imgBefore.removeFromStage(),this.imgAfter.removeFromStage(),n(this.el).removeClass("reveal"),n(this.el).remove(),this.remove()},afterRender:function(){var e={id:this.id};this.trigger("RENDERED",e)},render:function(){var e=this.model.toJSON();e["slider-gallery"]=boeing_globals.uiTextModel.get("slider-gallery");var t=o.to_html(this.tmpl,e);n(this.el).html(t),this.setStageInfo(),this.afterRender()}});return l}),define("text!app/modules/topics-views/views/templates/tmpl-timeline-overlay.html",[],function(){return'<!--div class="overlay-close-btn"></div-->\n<!--\n<div class="overlay-close-btn btn">\n\n</div>\n-->\n\n<!-- <header class="overlay">\n    <h3>{{title}}</h3>\n    <p>{{{text}}}</p>\n</header> -->\n<!--\n<div id="overlay-scroll" class="image-background no-drag" style="background: url({{url}})no-repeat;background-size: cover; background-position: center;"></div>\n-->\n\n\n    <div id="overlay-scroll" class="image-background no-drag" >\n        <img src="{{url}}"/>\n\n    </div>\n'}),define("app/modules/topics-views/views/subviews/topics-timeline-overlay-view",["require","underscore","jquery","backbone","app/base-classes/base-view","text!app/modules/topics-views/views/templates/tmpl-timeline-overlay.html","app/utils/zoom-and-pan-mixins","Draggable","mustache","TweenMax"],function(e){var t=e("underscore"),n=e("jquery"),r=e("backbone"),i=e("app/base-classes/base-view"),s=e("text!app/modules/topics-views/views/templates/tmpl-timeline-overlay.html"),o=e("app/utils/zoom-and-pan-mixins"),u=e("Draggable"),a=e("mustache"),f=e("TweenMax"),l=i.extend({tagName:"aside",initialize:function(e){this.debug=!0,this.init(),this.data=e,this.console.log("OVERLAY DATAIS",this.data)},start:function(){n(this.el).css({opacity:".5"}),f.to(this.el,.25,{opacity:1,ease:Power2.easeInOut})},events:{},removeFromStage:function(){f.to(this.el,.125,{opacity:0,ease:Power1.easeIn,onComplete:this.cleanUp.bind(this)})},cleanUp:function(){this.undelegateEvents(),n(this.el).remove(),this.remove()},onCloseBtnClick:function(e){this.moveImage=!1,n(".topic-type-timeline").off("mousemove"),n(this.el).find("img").off("vclick"),f.killAll(),o.hideUIForZoom(!1),this.console.log("close btn click"),this.removeFromStage()},onPhotoActiveEvent:function(e){this.console.log("container gallery listening to active event ",e),e==1?(this.moveImage=!0,n(".topic-type-timeline").on("mousemove",this.startMouseMove.bind(this)),o.hideUIForZoom()):(this.moveImage=!1,n(".topic-type-timeline").off("mousemove"),f.killAll(),this.stopMouseMove(),window.setTimeout(this.stopMouseMove.bind(this),450),o.hideUIForZoom(!1))},stopMouseMove:function(){var e=n("#overlay-scroll");e.removeAttr("style"),this.img!=undefined&&this.img.resetImage()},startMouseMove1:function(e){var t=event.pageX,r=event.pageY,i=window.innerWidth,s=window.innerHeight,o=n("#overlay-scroll img").width(),u=n("#overlay-scroll img").height(),a=u/s,l=o/i,c=Math.floor(100*(a-1)),h=Math.floor(100*(l-1));a=Math.floor(a*100)/2,l=Math.floor(l*100)/2;var p=t/i,d=r/s,v=l-Math.floor(h*p),m=a-Math.floor(c*d),g=String(v)+"%",y=String(m)+"%";this.moveImage==0&&(y="0",g="0"),this.moveImage==1?f.to("#overlay-scroll",.35,{css:{top:y,left:g},ease:Power2.easeOut}):(f.killAll(),this.stopMouseMove())},afterRender:function(){this.moveImage=!0,this.imgContainerStr="#overlay-scroll",this.zoomImgStr="#overlay-scroll img",this.startMouseMove=o.startMouseMove,n(this.el).find("img").on("vclick",this.onCloseBtnClick.bind(this)),n(".topic-type-timeline").on("mousemove",this.startMouseMove.bind(this)),o.hideUIForZoom()},render:function(){var e=a.to_html(s,this.data);return n(this.el).html(e),this.afterRender(),this.el}});return l}),define("app/modules/topics-views/views/view-timeline",["require","underscore","jquery","backbone","app/base-classes/base-view-topics","app/modules/topics-views/views/subviews/topics-timeline-overlay-view","app/modules/topics-views/models/model","mustache","Draggable","ThrowProps","jquery-mobile","FTScroller","TweenMax"],function(e){var t=e("underscore"),n=e("jquery"),r=e("backbone"),i=e("app/base-classes/base-view-topics"),s=e("app/modules/topics-views/views/subviews/topics-timeline-overlay-view"),o=e("app/modules/topics-views/models/model"),u=e("mustache"),a=e("Draggable"),f=e("ThrowProps"),l=e("jquery-mobile"),c=e("FTScroller"),h=e("TweenMax"),p=i.extend({initialize:function(e,t,n){this.el="#"+t,this.debug=!1,this.Evt=e,this.model=n,this.init(),this.console.log("topic template is view-timeline")},start:function(){this.render(),this.Evt.listenTo(this,"SWIPE_NAV_EVENT",this.Evt.onSwipeNavEvent)},events:{},cleanUp:function(){console.log("clean"),n(window).off("resize",this.onWindowResize.bind(this)),n(".zoom-container").off("click",this.onItemClicked.bind(this)),this.items=[],this.draggable.kill(),this.undelegateEvents(),this.Evt.stopListening(this),n(this.el).removeClass("reveal"),n(this.el).remove(),this.remove()},onWindowResize:function(){clearTimeout(this.tiemoutID),this.tiemoutID=setTimeout(this.snap.bind(this),300)},loadOverlay:function(e){var t=new s(e);n(this.el).append(t.render()),t.start()},addScrolling:function(){var e=n("#timeline-container");n(this.el).parent().addClass("no-drag");var t={xMin:0,xMax:e.find("ul").width()-n(window).width(),yMin:0,yMax:e.height()};this.tiemoutID=-1;var r=this;this.items=[],n(".zoom-container").each(function(){r.items.push(n(this))}),this.activeItem=this.items[0],this.activeZone=n(window).width()/2-this.items[0].width()/2,n(".zoom-container").on("click",this.onItemClicked.bind(this)),this.draggable=Draggable.create(e,{type:"x",cursor:"auto",edgeResistance:.5,zIndexBoost:!0,minimumMovement:6,bounds:{top:0,left:this.activeZone,width:-t.xMax,height:t.yMax},lockAxis:!0,onDrag:this.onDrag.bind(this),onDragEnd:this.onDragEnd.bind(this),throwProps:!1})[0],this.snap()},onDrag:function(e){var t=this.activeItem;this.activeItem=this.items[this.closest(this.items,this.activeZone)],t.index()!==this.activeItem.index()?n(".zoom-container").removeClass("active"):this.activeItem.hasClass("active")||this.activeItem.addClass("active")},onDragEnd:function(e){this.snap()},onItemClicked:function(e){if(boeing_globals.device=="mobile")return;var t=n(e.currentTarget);if(t.hasClass("active")){var r=n(e.target).closest("dt"),i={title:r.data("title"),text:r.data("text"),url:r.data("url")};this.loadOverlay(i)}else n(".zoom-container").removeClass("active"),this.activeItem=t,this.snap()},snap:function(){var e=this,t=n(window),r=n("#timeline-container ul"),i=this.activeItem;i.hasClass("active")||n(".zoom-container").removeClass("active"),i.addClass("active");
1var s=t.width(),o=i.outerWidth(!0),u=i.index(),a=(s-o)/2,f=o*u,l=f-a;h.to(n("#timeline-container"),.5,{css:{x:-l},onComplete:function(){e.draggable.update()}})},afterRender:function(){var e={id:this.id};this.trigger("RENDERED",e),this.addScrolling(),n(window).on("resize",this.onWindowResize.bind(this))},closest:function(e,t){if(e.length===0||e===undefined)return;var n=0,r=1e3,i;for(n in e){var s=e[n].offset().left,o=Math.abs(t-s);o<r&&(r=o,i=n)}return i},flattenYears:function(e){if(e==null||e==undefined||e["content"==undefined])return;var t=n.extend(!0,{},e),r=[];return t.content.forEach(function(e){var t=e.overlay_title.split(":"),n=t[0].trim(),i={year:e.year,content:new Array(e)};i.content[0].date=n,r.push(i)}),r},render:function(){var e=this.model.toJSON();e.timeline=boeing_globals.uiTextModel.get("timeline"),e.years=this.flattenYears(e),console.log(e);var t=u.to_html(this.tmpl,e);n(this.el).html(t),this.setStageInfo(),this.afterRender()}});return p}),define("app/modules/topics-views/views/view-factoid",["require","underscore","jquery","backbone","app/base-classes/base-view-topics","app/modules/topics-views/models/model","mustache","jquery-mobile","TweenMax"],function(e){var t=e("underscore"),n=e("jquery"),r=e("backbone"),i=e("app/base-classes/base-view-topics"),s=e("app/modules/topics-views/models/model"),o=e("mustache"),u=e("jquery-mobile"),a=e("TweenMax"),f=i.extend({initialize:function(e,t,n){this.el="#"+t,this.debug=!1,this.Evt=e,this.model=n,this.orientation=boeing_globals.state.get("orientation"),this.init(),this.console.log("FACTOID MODEL IS ",this.model.toJSON()),this.idStr=this.el,console.log("FACTOID ",t,this.idStr,this.el),this.console.log("topic template is view-slider and jquery-mobile ",u),console.log("cid ",this.cid),this.Evt.listenTo(this,"SWIPE_NAV_EVENT",this.Evt.onSwipeNavEvent)},start:function(){this.render()},events:{},cleanUp:function(){console.log("factoid is cleaning up"),this.draggable!==undefined&&(this.draggable=undefined),this.undelegateEvents(),this.Evt.stopListening(this),n(this.el).removeClass("reveal"),n(this.el).remove(),this.remove()},afterRender:function(){var e={id:this.id};this.trigger("RENDERED",e),boeing_globals.device==="mobile"&&window.setTimeout(this.addScrolling.bind(this),1500)},getFontSize:function(e){return String(e)+"px"},getFactoidImages:function(e){var t=e,n=function(e){return e.match(/\w{3}$/)[0]==="gif"},r=function(e){var r="fact_"+e+"_image";t[r]!==undefined&&t[r].url!==undefined&&n(t[r].url)===!0?t[r]=t[r].url:t[r]="/assets/images/factoid-icon-"+e+".gif"};return r(1),r(2),r(3),t},addScrolling:function(){var e=this.idStr+" .centered",t=n(e).wrap("<div class='factoid-wrapper'>");this.container=document.querySelector(e),console.log("ID STR ",e,this.container),this.draggable=Draggable.create(this.container,{type:"y",cursor:"auto",edgeResistance:.5,zIndexBoost:!0,minimumMovement:6,bounds:{minY:this.getMaxHeight(),maxY:0},lockAxis:!0,throwProps:!0})[0],this.draggable.addEventListener("dragend",this.onDragEnd.bind(this)),console.log("add scrolling ",this.draggable),n(this.idStr+" .factoid-wrapper").css({position:"absolute",width:"100%",height:"100%",overflow:"auto"})},onDragEnd:function(e){var t=this.draggable.minY,n=this.draggable.y,r=this.draggable.maxY,i=n-40>r,s=n+40<t,o;i==1?(o=1,this.trigger("SWIPE_NAV_EVENT",o),window.setTimeout(this.cleanUp.bind(this),200)):s==1&&(o=-1,this.trigger("SWIPE_NAV_EVENT",o),window.setTimeout(this.cleanUp.bind(this),1e3)),console.log("end drag is ",n,t,r," up: ",i," down: ",s),this.draggable.applyBounds({minY:this.getMaxHeight(),maxY:0})},getMaxHeight:function(){var e="#"+this.cid,t=this.container.clientHeight,n=t*.5;return n*=-1,console.log("Max height is ",n,e),n},render:function(){var e=this.model.toJSON(),t=this.model.get("fact_1_title_font_size"),r=this.model.get("fact_2_title_font_size"),i=this.model.get("fact_3_title_font_size");e.fontSize1=this.getFontSize(t),e.fontSize2=this.getFontSize(r),e.fontSize3=this.getFontSize(i),e["facts-and-stats"]=boeing_globals.uiTextModel.get("facts-and-stats"),e=this.getFactoidImages(e);var s=o.to_html(this.tmpl,e);n(this.el).html(s),this.setStageInfo(),this.afterRender()}});return f}),define("app/modules/topics-views/views/subviews/topics-credits-overlay-view",["require","underscore","jquery","backbone","app/base-classes/base-view","text!app/modules/topics-views/views/templates/tmpl-credits.html","FTScroller","mustache","TweenMax"],function(e){var t=e("underscore"),n=e("jquery"),r=e("backbone"),i=e("app/base-classes/base-view"),s=e("text!app/modules/topics-views/views/templates/tmpl-credits.html"),o=e("FTScroller"),u=e("mustache"),a=e("TweenMax"),f=i.extend({tagName:"div",className:"credits-overlay",initialize:function(e){this.debug=!0,this.init(),this.data=e,this.data["sources-and-credits"]=boeing_globals.uiTextModel.get("sources-and-credits"),this.console.log("OVERLAY DATA IS ",this.data),this.data.content.length>=1&&(this.data.content=this.data.content.toJSON()),this.console.log("CREDITS DATA is ",this.data)},start:function(){n(".overlay-close-btn").on("click",this.onCloseBtnClick.bind(this)),a.to(this.el,.25,{opacity:1}),boeing_globals.AppEvents.trigger("CLOSE_TRAY_EVENT")},events:{},removeFromStage:function(){a.to(this.el,.5,{opacity:0,ease:Power1.easeIn,onComplete:this.cleanUp.bind(this)})},cleanUp:function(){this.hideUpperElements(!1),this.undelegateEvents(),n(this.el).remove(),this.remove()},onCloseBtnClick:function(e){this.console.log("close btn click"),this.removeFromStage()},onClickFootnoteItem:function(e){var t=n(e.currentTarget),r=t.data("url");window.open(r),this.console.log("the item clicked is ",t,r)},onScrollEndEvent:function(){this.scroller.contentHeight=n(".ftscroller_y").height()+600,this.console.log("scroll end ",this.scroller)},addScrolling:function(){var e=document.getElementById("credit-items");this.scroller=new FTScroller(e,{scrollingX:!1,scrollbars:!0,updateOnChanges:!0,updateOnWindowResize:!0})},hideUpperElements:function(e){if(document.body.classList===undefined)return;var n=e!==undefined?e:!0,r=["#ui-branding","#hamburger-icon","#language-pulldown","#main-player"],i,s=function(e){i=document.querySelector(e),n===!0?i.classList.add("hide-and-make-inactive"):i.classList.remove("hide-and-make-inactive"),console.log("hiding elements: ",n,e,i,r)};t.each(r,s.bind(this))},afterRender:function(){n(".footnote-content").append("<div class='end-fill no-drag'></div>"),window.setTimeout(this.addScrolling.bind(this),1e3),n(".footnote-item.linked").on("click",this.onClickFootnoteItem.bind(this))},render:function(){var e=function(e,t){e.url!=undefined&&e.url.length>=2?e.linkedClass="linked":e.linkedClass="unlinked"};t.each(this.data.content,e),this.console.log("the data is ",this.data);var r=u.to_html(s,this.data);return n(this.el).html(r),window.setTimeout(this.afterRender.bind(this),600),this.hideUpperElements(!0),this.el}});return f}),define("app/modules/topics-views/views/view-next-topic",["require","underscore","jquery","backbone","app/base-classes/base-view-topics","app/modules/topics-views/models/model","app/modules/topics-views/views/subviews/topics-credits-overlay-view","app/utils/helper-mixins","mustache","TweenMax","bc"],function(e){var t=e("underscore"),n=e("jquery"),r=e("backbone"),i=e("app/base-classes/base-view-topics"),s=e("app/modules/topics-views/models/model"),o=e("app/modules/topics-views/views/subviews/topics-credits-overlay-view"),u=e("app/utils/helper-mixins"),a=e("mustache"),f=e("TweenMax"),l=e("bc"),c=i.extend({initialize:function(e,t,n){this.el="#"+t,this.vid=null,this.debug=!1,this.Evt=e,this.model=n,this.init(),this.console.log("topic template is view-next-topic update ",this.model)},start:function(){this.render()},events:{},onCreditsClick:function(e){this.loadOverlay({})},loadOverlay:function(e){var t={title:this.model.get("title"),content:this.model.get("credits")},r=new o(t);n(this.el).append(r.render()),r.start()},cleanUp:function(){this.vid=null,this.undelegateEvents(),this.Evt.stopListening(this),n("#credits-btn").off(),n(this.el).removeClass("reveal"),n(this.el).remove(),this.remove()},playBrightcoveVideo:function(){var e=n(this.el).find("video").attr("id");try{this.vid!=null&&this.vid.dispose(),this.vid=l(e)}catch(t){console.error("Brightcove Error: ",t)}this.vid==null&&(this.vid=l(e))},afterRender:function(){var e={id:this.id};this.trigger("RENDERED",e),n("#credits-btn").on("click",this.onCreditsClick.bind(this)),n(this.el).find("svg.social").on("click",this.onSocialShareClick.bind(this)),n(this.el).find("video").length&&this.playBrightcoveVideo(),this.hideUpperElements()},hideUpperElements:function(e){var t=e!==undefined?e:!0},onSocialShareClick:function(e){var t=n(e.currentTarget),r=t.data("event");
1if(r=="link"){var i=t.data("val");window.open(i)}this.console.log("social share was clicked ",r,t),e.preventDefault()},render:function(){var e=["up-next","sources-and-credits","share-this-topic"];this.addUIFields(e);var t=this.model.toJSON();t.layoutClass="layout-"+boeing_globals.device,t.facebookUrl=u.getFacebookShareLink(!0),t.twitterUrl=u.getTwitterUrl(),console.log("DATA IS ",t);var r=a.to_html(this.tmpl,t);n(this.el).html(r),this.setStageInfo(),this.afterRender()}});return c}),!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define("Player",t):(e.Vimeo=e.Vimeo||{},e.Vimeo.Player=t())}(this,function(){"use strict";function e(e,t){return t={exports:{}},e(t,t.exports),t.exports}function t(e,t,n){var r=S.get(e.element)||{};t in r||(r[t]=[]),r[t].push(n),S.set(e.element,r)}function n(e,t){return(S.get(e.element)||{})[t]||[]}function r(e,t,n){var r=S.get(e.element)||{};if(!r[t])return!0;if(!n)return r[t]=[],S.set(e.element,r),!0;var i=r[t].indexOf(n);return-1!==i&&r[t].splice(i,1),S.set(e.element,r),r[t]&&0===r[t].length}function i(e,t){var i=n(e,t);if(i.length<1)return!1;var s=i.shift();return r(e,t,s),s}function s(e,t){var n=S.get(e);S.set(t,n),S.delete(e)}function o(e,t){return 0===e.indexOf(t.toLowerCase())?e:""+t.toLowerCase()+e.substr(0,1).toUpperCase()+e.substr(1)}function u(e){return e instanceof window.HTMLElement}function a(e){return!isNaN(parseFloat(e))&&isFinite(e)&&Math.floor(e)==e}function f(e){return/^(https?:)?\/\/((player|www).)?vimeo.com(?=$|\/)/.test(e)}function l(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.id,n=e.url,r=t||n;if(!r)throw new Error("An id or url must be passed, either in an options object or as a data-vimeo-id or data-vimeo-url attribute.");if(a(r))return"https://vimeo.com/"+r;if(f(r))return r.replace("http:","https:");throw t?new TypeError("“"+t+"” is not a valid video id."):new TypeError("“"+r+"” is not a vimeo.com url.")}function c(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return x.reduce(function(t,n){var r=e.getAttribute("data-vimeo-"+n);return(r||""===r)&&(t[n]=""===r?1:r),t},t)}function h(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new Promise(function(n,r){if(!f(e))throw new TypeError("“"+e+"” is not a vimeo.com url.");var i="https://vimeo.com/api/oembed.json?url="+encodeURIComponent(e);for(var s in t)t.hasOwnProperty(s)&&(i+="&"+s+"="+encodeURIComponent(t[s]));var o="XDomainRequest"in window?new XDomainRequest:new XMLHttpRequest;o.open("GET",i,!0),o.onload=function(){if(404===o.status)return void r(new Error("“"+t+"” was not found."));if(403===o.status)return void r(new Error("“"+t+"” is not embeddable."));try{var e=JSON.parse(o.responseText);n(e)}catch(t){r(t)}},o.onerror=function(){var e=o.status?" ("+o.status+")":"";r(new Error("There was an error fetching the embed code from Vimeo"+e+"."))},o.send()})}function p(e,t){var n=e.html;if(!t)throw new TypeError("An element must be provided");if(null!==t.getAttribute("data-vimeo-initialized"))return t.querySelector("iframe");var r=document.createElement("div");return r.innerHTML=n,t.appendChild(r.firstChild),t.setAttribute("data-vimeo-initialized","true"),t.querySelector("iframe")}function d(e){return"string"==typeof e&&(e=JSON.parse(e)),e}function v(e,t,n){if(e.element.contentWindow&&e.element.contentWindow.postMessage){var r={method:t};void 0!==n&&(r.value=n);var i=parseFloat(navigator.userAgent.toLowerCase().replace(/^.*msie (\d+).*$/,"$1"));i>=8&&i<10&&(r=JSON.stringify(r)),e.element.contentWindow.postMessage(r,e.origin)}}function m(e,t){t=d(t);var s=[],o=void 0;if(t.event)"error"===t.event&&n(e,t.data.method).forEach(function(n){var i=new Error(t.data.message);i.name=t.data.name,n.reject(i),r(e,t.data.method,n)}),s=n(e,"event:"+t.event),o=t.data;else if(t.method){var u=i(e,t.method);u&&(s.push(u),o=t.value)}s.forEach(function(e){try{if("function"==typeof e)return void e.call(t,o);e.resolve(o)}catch(t){}})}function g(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var y=void 0!==Array.prototype.indexOf,b=void 0!==window.postMessage;if(!y||!b)throw new Error("Sorry, the Vimeo Player API is not available in this browser.");var w="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},E=(e(function(e,t){!function(e){function t(e,t){function r(e){if(!this||this.constructor!==r)return new r(e);this._keys=[],this._values=[],this._itp=[],this.objectOnly=t,e&&n.call(this,e)}return t||b(e,"size",{get:m}),e.constructor=r,r.prototype=e,r}function n(e){this.add?e.forEach(this.add,this):e.forEach(function(e){this.set(e[0],e[1])},this)}function r(e){return this.has(e)&&(this._keys.splice(y,1),this._values.splice(y,1),this._itp.forEach(function(e){y<e[0]&&e[0]--})),-1<y}function i(e){return this.has(e)?this._values[y]:void 0}function s(e,t){if(this.objectOnly&&t!==Object(t))throw new TypeError("Invalid value used as weak collection key");if(t!=t||0===t)for(y=e.length;y--&&!w(e[y],t););else y=e.indexOf(t);return-1<y}function o(e){return s.call(this,this._values,e)}function u(e){return s.call(this,this._keys,e)}function a(e,t){return this.has(e)?this._values[y]=t:this._values[this._keys.push(e)-1]=t,this}function f(e){return this.has(e)||this._values.push(e),this}function l(){(this._keys||0).length=this._values.length=0}function c(){return v(this._itp,this._keys)}function h(){return v(this._itp,this._values)}function p(){return v(this._itp,this._keys,this._values)}function d(){return v(this._itp,this._values,this._values)}function v(e,t,n){var r=[0],i=!1;return e.push(r),{next:function(){var s,o=r[0];return!i&&o<t.length?(s=n?[t[o],n[o]]:t[o],r[0]++):(i=!0,e.splice(e.indexOf(r),1)),{done:i,value:s}}}}function m(){return this._values.length}function g(e,t){for(var n=this.entries();;){var r=n.next();if(r.done)break;e.call(t,r.value[1],r.value[0],this)}}var y,b=Object.defineProperty,w=function(e,t){return e===t||e!==e&&t!==t};"undefined"==typeof WeakMap&&(e.WeakMap=t({"delete":r,clear:l,get:i,has:u,set:a},!0)),"undefined"!=typeof Map&&"function"==typeof (new Map).values&&(new Map).values().next||(e.Map=t({"delete":r,has:u,get:i,set:a,keys:c,values:h,entries:p,forEac
vendor: 4,742 bytes, line 1
1h:g,clear:l})),"undefined"!=typeof Set&&"function"==typeof (new Set).values&&(new Set).values().next||(e.Set=t({has:o,add:f,"delete":r,clear:l,keys:h,values:h,entries:d,forEach:g})),"undefined"==typeof WeakSet&&(e.WeakSet=t({"delete":r,add:f,clear:l,has:o},!0))}(void 0!==w?w:window)}),e(function(e){var t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(t,n,r){n[t]=n[t]||r(),e.exports&&(e.exports=n[t])}("Promise",w,function(){function e(e,t){p.add(e,t),h||(h=v(p.drain))}function n(e){var n,r=void 0===e?"undefined":t(e);return null==e||"object"!=r&&"function"!=r||(n=e.then),"function"==typeof n&&n}function r(){for(var e=0;e<this.chain.length;e++)i(this,1===this.state?this.chain[e].success:this.chain[e].failure,this.chain[e]);this.chain.length=0}function i(e,t,r){var i,s;try{!1===t?r.reject(e.msg):(i=!0===t?e.msg:t.call(void 0,e.msg),i===r.promise?r.reject(TypeError("Promise-chain cycle")):(s=n(i))?s.call(i,r.resolve,r.reject):r.resolve(i))}catch(e){r.reject(e)}}function s(e){var t,i=this;if(!i.triggered){i.triggered=!0,i.def&&(i=i.def);try{(t=n(e))?u(function(){var e=new a(i);try{t.call(n,function(){s.apply(e,arguments)},function(){o.apply(e,arguments)})}catch(n){o.call(e,n)}}):(i.msg=e,i.state=1,i.chain.length>0&&u(r,i))}catch(u){o.call(new a(i),u)}}}function o(t){var n=this;n.triggered||(n.triggered=!0,n.def&&(n=n.def),n.msg=t,n.state=2,n.chain.length>0&&e(r,n))}function u(e,t,n,r){for(var i=0;i<t.length;i++)!function(i){e.resolve(t[i]).then(function(e){n(i,e)},r)}(i)}function a(e){this.def=e,this.triggered=!1}function f(e){this.promise=e,this.state=0,this.triggered=!1,this.chain=[],this.msg=void 0}function l(e){if("function"!=typeof e)throw TypeError("Not a function");if(0!==this.__NPO__)throw TypeError("Not a promise");this.__NPO__=1;var t=new f(this);this.then=function(e,i){var s={success:"function"!=typeof e||e,failure:"function"==typeof i&&i};return s.promise=new this.constructor(function(e,t){if("function"!=typeof e||"function"!=typeof t)throw TypeError("Not a function");s.resolve=e,s.reject=t}),t.chain.push(s),0!==t.state&&n(r,t),s.promise},this.catch=function(e){return this.then(void 0,e)};try{e.call(void 0,function(e){s.call(t,e)},function(e){o.call(t,e)})}catch(n){o.call(t,n)}}var c,h,p,d=Object.prototype.toString,v="undefined"!=typeof setImmediate?function(e){return setImmediate(e)}:setTimeout;try{Object.defineProperty({},"x",{}),c=function(e,t,n,r){return Object.defineProperty(e,t,{value:n,writable:!0,configurable:!1!==r})}}catch(e){c=function(e,t,n){return e[t]=n,e}}p=function(){function e(e,t){this.fn=e,this.self=t,this.next=void 0}var t,n,r;return{add:function(i,s){r=new e(i,s),n?n.next=r:t=r,n=r,r=void 0},drain:function(){var e=t;for(t=n=h=void 0;e;)e.fn.call(e.self),e=e.next}}}();var m=c({},"constructor",l,!1);return l.prototype=m,c(m,"__NPO__",0,!1),c(l,"resolve",function(e){var n=this;return e&&"object"==(void 0===e?"undefined":t(e))&&1===e.__NPO__?e:new n(function(t,n){if("function"!=typeof t||"function"!=typeof n)throw TypeError("Not a function");t(e)})}),c(l,"reject",function(e){return new this(function(t,n){if("function"!=typeof t||"function"!=typeof n)throw TypeError("Not a function");n(e)})}),c(l,"all",function(e){var t=this;return"[object Array]"!=d.call(e)?t.reject(TypeError("Not an array")):0===e.length?t.resolve([]):new t(function(n,r){if("function"!=typeof n||"function"!=typeof r)throw TypeError("Not a function");var i=e.length,s=Array(i),o=0;u(t,e,function(e,t){s[e]=t,++o===i&&n(s)},r)})}),c(l,"race",function(e){var t=this;return"[object Array]"!=d.call(e)?t.reject(TypeError("Not an array")):new t(function(n,r){if("function"!=typeof n||"function"!=typeof r)throw TypeError("Not a function");u(t,e,function(e,t){n(t)},r)})}),l})})),S=new WeakMap,x=["id","url","width","maxwidth","height","maxheight","portrait","title","byline","color","autoplay","autopause","loop","responsive","speed"],T=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),N=new WeakMap,C=new WeakMap,k=function(){function e(t){var n=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(g(this,e),window.jQuery&&t instanceof jQuery&&(t.length>1&&window.console&&console.warn&&console.warn("A jQuery object with multiple elements was passed, using the first element."),t=t[0]),"string"==typeof t&&(t=document.getElementById(t)),!u(t))throw new TypeError("You must pass either a valid element or a valid id.");
1if("IFRAME"!==t.nodeName){var i=t.querySelector("iframe");i&&(t=i)}if("IFRAME"===t.nodeName&&!f(t.getAttribute("src")||""))throw new Error("The player element passed isn’t a Vimeo embed.");if(N.has(t))return N.get(t);this.element=t,this.origin="*";var o=new E(function(e,i){var o=function(t){if(f(t.origin)&&n.element.contentWindow===t.source){"*"===n.origin&&(n.origin=t.origin);var r=d(t.data),i="event"in r&&"ready"===r.event,s="method"in r&&"ping"===r.method;if(i||s)return n.element.setAttribute("data-ready","true"),void e();m(n,r)}};if(window.addEventListener?window.addEventListener("message",o,!1):window.attachEvent&&window.attachEvent("onmessage",o),"IFRAME"!==n.element.nodeName){var u=c(t,r);h(l(u),u).then(function(e){var r=p(e,t);return n.element=r,s(t,r),N.set(n.element,n),e}).catch(function(e){return i(e)})}});return C.set(this,o),N.set(this.element,this),"IFRAME"===this.element.nodeName&&v(this,"ping"),this}return T(e,[{key:"callMethod",value:function(e){var n=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new E(function(i,s){return n.ready().then(function(){t(n,e,{resolve:i,reject:s}),v(n,e,r)})})}},{key:"get",value:function(e){var n=this;return new E(function(r,i){return e=o(e,"get"),n.ready().then(function(){t(n,e,{resolve:r,reject:i}),v(n,e)})})}},{key:"set",value:function(e,n){var r=this;return E.resolve(n).then(function(n){if(e=o(e,"set"),void 0===n||null===n)throw new TypeError("There must be a value to set.");return r.ready().then(function(){return new E(function(i,s){t(r,e,{resolve:i,reject:s}),v(r,e,n)})})})}},{key:"on",value:function(e,r){if(!e)throw new TypeError("You must pass an event name.");if(!r)throw new TypeError("You must pass a callback function.");if("function"!=typeof r)throw new TypeError("The callback must be a function.");0===n(this,"event:"+e).length&&this.callMethod("addEventListener",e).catch(function(){}),t(this,"event:"+e,r)}},{key:"off",value:function(e,t){if(!e)throw new TypeError("You must pass an event name.");if(t&&"function"!=typeof t)throw new TypeError("The callback must be a function.");r(this,"event:"+e,t)&&this.callMethod("removeEventListener",e).catch(function(e){})}},{key:"loadVideo",value:function(e){return this.callMethod("loadVideo",e)}},{key:"ready",value:function(){var e=C.get(this);return E.resolve(e)}},{key:"addCuePoint",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.callMethod("addCuePoint",{time:e,data:t})}},{key:"removeCuePoint",value:function(e){return this.callMethod("removeCuePoint",e)}},{key:"enableTextTrack",value:function(e,t){if(!e)throw new TypeError("You must pass a language.");return this.callMethod("enableTextTrack",{language:e,kind:t})}},{key:"disableTextTrack",value:function(){return this.callMethod("disableTextTrack")}},{key:"pause",value:function(){return this.callMethod("pause")}},{key:"play",value:function(){return this.callMethod("play")}},{key:"unload",value:function(){return this.callMethod("unload")}},{key:"getAutopause",value:function(){return this.get("autopause")}},{key:"setAutopause",value:function(e){return this.set("autopause",e)}},{key:"getColor",value:function(){return this.get("color")}},{key:"setColor",value:function(e){return this.set("color",e)}},{key:"getCuePoints",value:function(){return this.get("cuePoints")}},{key:"getCurrentTime",value:function(){return this.get("currentTime")}},{key:"setCurrentTime",value:function(e){return this.set("currentTime",e)}},{key:"getDuration",value:function(){return this.get("duration")}},{key:"getEnded",value:function(){return this.get("ended")}},{key:"getLoop",value:function(){return this.get("loop")}},{key:"setLoop",value:function(e){return this.set("loop",e)}},{key:"getPaused",value:function(){return this.get("paused")}},{key:"getPlaybackRate",value:function(){return this.get("playbackRate")}},{key:"setPlaybackRate",value:function(e){return this.set("playbackRate",e)}},{key:"getTextTracks",value:function(){return this.get("textTracks")}},{key:"getVideoEmbedCode",value:function(){return this.get("videoEmbedCode")}},{key:"getVideoId",value:function(){return this.get("videoId")}},{key:"getVideoTitle",value:function(){return this.get("videoTitle")}},{key:"getVideoWidth",value:function(){return this.get("videoWidth")}},{key:"getVideoHeight",value:function(){return this.get("videoHeight")}},{key:"getVideoUrl",value:function(){return this.get("videoUrl")}},{key:"getVolume",value:function(){return this.get("volume")}},{key:"setVolume",value:function(e){return this.set("volume",e)}}]),e}();return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document,t=[].slice.call(e.querySelectorAll("[data-vimeo-id], [data-vimeo-url]")),n=function(e){"console"in window&&console.error&&console.error("There was an error creating an embed: "+e)};t.forEach(function(e){try{if(null!==e.getAttribute("data-vimeo-defer"))return;var t=c(e);h(l(t),t).then(function(t){return p(t,e)}).catch(n)}catch(e){n(e)}})}(),function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document,t=function(t){if(f(t.origin)&&t.data&&"spacechange"===t.data.event)for(var n=e.querySelectorAll("iframe"),r=0;r<n.length;r++)if(n[r].contentWindow===t.source){var i=n[r].parentElement;i&&-1!==i.className.indexOf("vimeo-space")&&(i.style.paddingBottom=t.data.data[0].bottom+"px");break}};window.addEventListener?window.addEventListener("message",t,!1):window.attachEvent&&window.attachEvent("onmessage",t)}(),k}),define("app/modules/video/video-360-view",["require","app/base-classes/base-view","TweenMax","Player","a
1pp/modules/video/views/videojs-sizing"],function(t){var n=t("app/base-classes/base-view"),r=t("TweenMax"),i=t("Player"),s=t("app/modules/video/views/videojs-sizing"),o=n.extend({tagName:"div",id:"article-video",initialize:function(){this.debug=!1,this.init(),this.videoIsReady=!1,this.firstLaunched=!1,this.videoPausedOnMenu=!1},getVimeoVidNumber:function(e){var t=e,n=/^(.*\/)(\d*)(.hd.mp4?.*)$/,r=n.exec(t)[2];return console.log("vid id is ",r),r},start:function(e){var t=e;console.log("%cstarting video from here","color:blue");var n={id:this.getVimeoVidNumber(t),loop:!1};window.thePlayer=i,this.vidjs=new i(this.id,n),this.vidjs.on("play",function(){console.log("played the video!")}),this.vidjs.paused=this.vidjs.getPaused,window.theVid=this.vidjs,this.vidjs.play(),this.vidjs.on("loaded",this.onVideoReady.bind(this)),this.vidjs.on("play",this.onVideoStartedPlaying.bind(this))},onVideoStartedPlaying:function(e){this.trigger("VIDEO_PLAYING_EVENT",this.el.id)},pause:function(){this.vidjs.pause()},play:function(){this.vidjs.play(),this.videoPausedOnMenu=!1},addNewVideo:function(){},getVideoJsObj:function(){return this.vidjs},onToggleVideo:function(e){var t=e.get("loadMenu"),n=this.vidjs.paused()===!1;if(t===!0&&n===!0){this.videoPausedOnMenu=!0;var r=function(){this.vidjs.pause()};this.tempTimeout=window.setTimeout(r.bind(this),500)}else if(t==0&&n==0&&this.videoPausedOnMenu==1){var i=function(){this.vidjs.play(),this.videoPausedOnMenu=!1};this.tempTimeout=window.setTimeout(i.bind(this),500)}},onVideoEndEvent:function(){this.trigger("VIDEO_ENDED_EVENT",e),this.vidjs.off("ended",this.onVideoEndEvent.bind(this))},onVideoReady:function(){this.videoIsReady=!0,this.firstLaunched=!0,this.listenTo(boeing_globals.state,"change:loadMenu",this.onToggleVideo.bind(this)),$(this.el).find("iframe").attr({width:"100%",height:"100%"})},showControls:function(){this.console.log("here is player active ")},afterRender:function(){},removeFromStage:function(){this.cleanUp()},cleanUp:function(){this.undelegateEvents(),this.vidjs.dispose(),this.remove()}});return o}),define("app/modules/topics-views/views/view-fullscreen-video",["require","underscore","jquery","backbone","app/base-classes/base-view-topics","app/modules/topics-views/models/model","mustache","app/modules/video/video-generic-view","app/modules/video/video-360-view","TweenMax"],function(e){var t=e("underscore"),n=e("jquery"),r=e("backbone"),i=e("app/base-classes/base-view-topics"),s=e("app/modules/topics-views/models/model"),o=e("mustache"),u=e("app/modules/video/video-generic-view"),a=e("app/modules/video/video-360-view"),f=e("TweenMax"),l=i.extend({initialize:function(e,t,n){this.el="#"+t,this.debug=!1,this.Evt=e,this.model=n,this.init(),this.console.log("topic template is view-intro"),this.Evt.listenTo(this,"PAUSEALL_MEDIA_EVENT",this.Evt.onPauseAllMediaEvent),this.listenTo(this.Evt,"GLOBAL_MEDIA_EVENT",this.onGlobalMediaEvent.bind(this))},start:function(){this.render()},events:{},cleanUp:function(){this.undelegateEvents(),this.Evt.stopListening(this),n(this.el).removeClass("reveal"),n(this.el).remove(),this.remove()},afterRender5:function(){var e={id:this.id};this.trigger("RENDERED",e)},getVideoJson:function(){var e={className:"video-js vjs-fullscreen",autoplay:"true",poster:this.model.get("poster_frame")};return e},afterRender:function(){var e=this.model.toJSON(),t=boeing_globals.isTouchDevice===!0,r=e.video_type!==undefined&&e.video_type==="360 Video";this.is360Bool=r===!0&&t===!1;var i=this.is360Bool?a:u;this.videoView=new i(this.getVideoJson()),this.videoView.scrubExistingPlayer(),n(this.el).append("<div class='video-parent'></div>"),n(this.el).find(".video-parent").prepend(this.videoView.el),this.videoView.start(this.model.get("video_id"));var s=function(){n(this.el).find(".topic-type-fullscreen_video").wrap("<aside class='video-parent'></aside>")},o=function(){var e=this.model.get("eyebrow")||this.model.get("eyebrow").length<1?this.model.collection.topic_title:this.model.get("eyebrow"),t=this.model.get("title").toUpperCase(),r='<div class="control play show"></div>',i='<div class="video-info show">';i+="<h4>
1"+e+" | VIDEO</h4>",i+="<h3>"+this.model.get("title")+"</h3>",i+="</div>";var s=n.parseHTML(i),o=n.parseHTML(r);n(this.el).find(".video-parent").prepend(o),n(this.el).find(".video-parent").prepend(s);var u=this,a=0;n(this.el).find(".video-parent").hover(function(){n(u.el).find(".video-info").addClass("show")},function(){u.videoView.vidjs!=null&&!u.videoView.vidjs.paused()&&(clearTimeout(a),a=setTimeout(function(){n(u.el).find(".video-info").removeClass("show")},2200))});if(this.videoView.vidjs!=null){this.videoView.vidjs.on("play",function(){n(u.el).find(".control").removeClass("play").addClass("pause")}),this.videoView.vidjs.on("pause",function(){n(u.el).find(".control").removeClass("pause").addClass("show play")});var f=this.is360Bool===!0?"timeupdate":"playing";this.videoView.vidjs.on(f,function(){n(u.el).find(".video-info").removeClass("show"),n(u.el).find(".control").removeClass("show")})}},f=function(){n(".vjs-poster").removeClass("vjs-hidden"),this.videoView.play()},l=function(){n(".vjs-poster").removeClass("vjs-hidden"),this.console.log("removing Poster hidden",n(".vjs-poster"))},c=this.videoView.getVideoJsObj();n("#bng-topics .vjs-poster").length>=1&&(n(".vjs-poster").removeClass("vjs-hidden"),c.posterImage.setSrc(this.model.get("poster_frame")),window.setTimeout(l.bind(this),5e3)),window.setTimeout(f.bind(this),1500),window.setTimeout(o.bind(this),500);var h={id:this.id};this.trigger("RENDERED",h),this.listenTo(this.videoView,"VIDEO_PLAYING_EVENT",this.onMediaStartedEvent.bind(this))},onGlobalMediaEvent:function(e){var t=e.media_event,n=e.exception,r,i;r=this.el,n!=r,this.console.log("THE FULLSCREEN VIDEO ",this.el," id --> ",this.id," --> e.id ",n)},pause:function(){this.videoView.pause()},play:function(){this.videoView.play()},onMediaStartedEvent:function(e){var t={media_event:"pause_all",exception:this.el};this.trigger("PAUSEALL_MEDIA_EVENT",t)},render:function(){var e=this.model.toJSON();this.console.log("fullscreen data is ",e);var t=o.to_html(this.tmpl,e);this.setStageInfo(),this.afterRender()}});return l}),define("app/modules/topics-views/views/view-credits",["require","underscore","jquery","backbone","app/base-classes/base-view-topics","app/modules/topics-views/models/model","mustache","TweenMax"],function(e){var t=e("underscore"),n=e("jquery"),r=e("backbone"),i=e("app/base-classes/base-view-topics"),s=e("app/modules/topics-views/models/model"),o=e("mustache"),u=e("TweenMax"),a=i.extend({initialize:function(e,t,n){this.el="#"+t,this.debug=!1,this.Evt=e,this.model=n,this.init(),this.console.log("topic template is view-credits")},start:function(){this.render()},events:{},cleanUp:function(){this.undelegateEvents(),this.Evt.stopListening(this),n(this.el).removeClass("reveal"),n(this.el).remove(),this.remove()},afterRender:function(){var e={id:this.id};this.trigger("RENDERED",e)},render:function(){var e=this.model.toJSON();this.console("CREDITS DATA IS ",e);var t=o.to_html(this.tmpl,e);n(this.el).html(t),this.setStageInfo(),this.afterRender()}});return a}),define("app/modules/topics-views/topics-view-factory",["require","app/base-classes/base-view","app/modules/topics-views/views/view-intro","app/modules/topics-views/views/view-intro","app/modules/topics-views/views/view-section","app/modules/topics-views/views/view-article","app/modules/topics-views/views/view-gallery","app/modules/topics-views/views/view-hotspots","app/modules/topics-views/views/view-slider","app/modules/topics-views/views/view-timeline","app/modules/topics-views/views/view-factoid","app/modules/topics-views/views/view-next-topic","app/modules/topics-views/views/view-fullscreen-video","app/modules/topics-views/views/view-credits"],function(e){var t=e("app/base-classes/base-view"),n=e("app/modules/topics-views/views/view-intro"),r=e("app/modules/topics-views/views/view-intro"),i=e("app/modules/topics-views/views/view-section"),s=e("app/modules/topics-views/views/view-article"),o=e("app/modules/topics-views/views/view-gallery"),u=e("app/modules/topics-views/views/view-hotspots"),a=e("app/modules/topics-views/views/view-slider"),f=e("app/modules/topics-views/views/view-timeline"),l=e("app/modules/topics-views/views/view-factoid"),c=e("app/modules/topics-views/views/view-next-topic"),h=e("app/modules/topics-views/views/view-fullscreen-video"),p=e("app/modules/topics-views/views/view-credits"),d=t.extend({initialize:function(e,t){this.debug=!1,this.init(),this.Evt=e,this.collection=t,this.listenTo(this.Evt,"TOPICS_STAGE_EVENT:STAGE_READY",this.onTopicsNavEvent.bind(this)),this.listenTo(this.Evt,"TOPICS_ITEM_COLLECTION_UPDATED",this.onTopicsCollectionUpdated.bind(this)),this.Evt.listenTo(this,"VIEW_RENDERED",this.Evt.onStageViewEvent),this.Evt.listenTo(this,"TOPIC_ENDED_EVENT",this.Evt.onTopicEndedEvent)},onTopicsCollectionUpdated:function(e){this.collection=e},removeFromStage:function(){TweenMax.to($(this.el),.5,{opacity:0,ease:Power2.easeInOut,onComplete:this.cleanUp.bind(this)})},cleanUp:function(){this.undelegateEvents(),this.Evt.stopListening(this),this.remove()},onTopicsNavEvent:function(e){this.console.log(this," factory listend to stage ready ",e,this.collection);var t=e.article_id,n=e.id,r;this.isLastTopic=e.type=="nexttopic",this.isLastTopic!=1?r=this.collection.get(n):(r=this.collection.getNextTopicModel(),this.console.log("FACTORY NEXT MODEL IS ",r));var i=r.get("type"),s=this.getViewTemplate(i),o=new s(this.Evt,t,r);this.listenToOnce(o,"RENDERED",this.onViewRendered.bind(this)),o.start()},onTopicsNextEvent:function(e){this.console.log(" this is next topic in factory ",e)},onSetEndedEvent:function(){this.trigger("TOPIC_ENDED_EVENT")},onViewRendered:function(e){this.trigger("VIEW_RENDERED",e),this.isLastTopic==1&&window.setTimeout(this.onSetEndedEvent.bind(this),1e3)},onStageReady:function(e){},getViewTemplate:function(e){var t=e;return t=="intro"?r:t=="section"?i:t=="article"?s:t=="gallery"?o:t=="hotspots"?u:t=="timeline"?f:t=="slider"?a:t=="credits"?p:t=="factoid"?l:t=="nexttopic"?c:t=="fullscreen_video"?h:n}});return d}),define("app/modules/topics-shell/topics-controller",["require","app/modules/topics-shell/events","app/base-classes/view-controller","app/data/topics-item-collection-maker","app/modules/topics-shell/views/view","app/utils/ga-mixins","app/modules/topics-views/topics-view-factory"],function(e){var t=e("app/modules/topics-shell/events"),n=e("app/base-classes/view-controller"),r=e("app/data/topics-item-collection-maker"),i=e("app/modules/topics-shell/views/view"),s=e("app/utils/ga-mixins"),o=e("app/modules/topics-views/topics-view-factory"),u=n.extend({id:"bng-topics",tagName:"section",initialize:function(){this.debug=!1,this.mainCollectionType="topics",this.pageId="topics",this.showOnMenuLoad=!1,this.addRandomModal=!1,this.prevRandomBool=null,this.allowRandomTest=!0,this.factoidText=undefined,this.init(),boeing_globals.device=="mobile"&&$(this.el).addClass("mobile"),this.listenTo(t,"TOPICS_NAVIGATE_EVENT",this.onTopicsNavigate.bind(this)),this.listenTo(t,"TOPICS_STAGE_EVENT:VIEW_RENDERED",this.onViewLoaded.bind(this)),this.listenTo(t,"TOPIC_ENDED_EVENT",this.onTopicsEndedEvent),this.listenTo(t,"MEDIA_EVENT",this.onPauseAllMediaEvent.bind(this)),t.init(),t.listenTo(this,"LOCAL_NAVIGATE_EVENT",t.onLocalNavigateEvent),t.listenTo(this,"TOPICS_REMOVE_ALL_EVENT",t.onRemoveAllEvent),t.listenTo(this,"GLOBAL_MEDIA_EVENT",t.onGlobalMediaEvent),t.listenTo(this,"TOPICS_ITEM_COLLECTION_UPDATED",t.onTopicsItemUpdatedEvent),t.listenTo(this,"BREAKPOINT_EVENT",t.onBreakpointEvent),this.currentTopicsItem=boeing_globals.state.get("currentTopic"),window.evt=t,this.currentGlobalState=this.getGlobalState(),this.oldGlobalState={}},onViewLoaded:function(e){this.console.log("controller listening to view laoded ",e),this.Ap
1pEvents.trigger("TOPICS_PAGE_CHANGE_EVENT",e)},onGlobalMediaEvent:function(e){this.trigger("GLOBAL_MEDIA_EVENT",e)},onTopicsNavigate:function(e){this.deepLinked=!0;var t=e;t.currentPage="topics",t=this.formatEventData("STATE_UPDATE_EVENT",t),this.trigger("TOPICSCONTROLLER_EVENT",t)},addNextTopicsData:function(e){var t=this.currentTopicsItem+1;t>=boeing_globals.topicsCollection.length&&(t=0);var n=this.collection.at(t).toJSON();return e.topic_next_eyebrow=n.eyebrow,e.topic_next_num=n.num,e.topic_next_title=n.title,e.topic_next_url=n.topic_image,e.next_eyebrow=n.eyebrow,e.next_num=n.num,e.next_title=n.title,e.next_url=n.topic_image,e},getItemsJson:function(){this.currentTopicsItem=boeing_globals.state.get("currentTopic"),this.console.log("GET ITEM JSON ",this.currentTopicsItem,boeing_globals.state.get("currentTopic"));var e=this.collection.at(this.currentTopicsItem).toJSON(),t=this.collection.length;return e=this.addNextTopicsData(e),e},sendGaEvent:function(){if(this.itemsCollection!=undefined&&boeing_globals.state.get("currentPage")=="topics"){var e=this.itemsCollection.topic_title;e=e.replace(/\s+/g,"-")}},getNewTopicsItem:function(){var e=this.getItemsJson(),t=function(e){return e!==undefined&&e.topic_video_loop!==undefined?e.topic_video_loop:"https://player.vimeo.com/external/231586587.hd.mp4?s=ad7386dae407ad7a6b0e2371c61b5a1c014dcd6c&profile_id=174"};if(this.addRandomModal===!0){var n=_.clone(e.pages[0]);n.factoid_text=this.factoidText,n.topic_video_loop=t(e);var i=e.pages;i.unshift(n),e.pages=i,this.console.log("itemsJSON",i," --> items: ",e)}this.addRandomModal=!1,this.itemsCollection=new r(e.pages,e),this.console.log("GET ITEM JSON GENERATED ",e,this.itemsCollection),this.sendGaEvent(),this.trigger("TOPICS_ITEM_COLLECTION_UPDATED",this.itemsCollection),this.console.log("NEW items collection is ",this.itemsCollection,this.itemsCollection.toJSON())},onTopicsEndedEvent:function(e){boeing_globals.state.updateTopicNumber(),this.getNewTopicsItem()},updateStateFromDataLoad:function(e){this.getNewTopicsItem(),this.allLoaded()===!0&&(this.updatePlayer(),window.setTimeout(this.updatePlayer.bind(this),1e3))},bufferRandomModalBool:function(){this.allowRandomTest=!0,this.factoidText=undefined},getGlobalState:function(){return _.pick(boeing_globals.state.toJSON(),"currentPage","currentTopic","topicNum","loadMenu","loadLibrary")},onStateChanged:function(e){var t=this.isStateChangeBool();if(t===!0&&this.allLoaded()===!0){this.console.log("TOPICS STATE CHANGED BEFORE: ",this.addRandomModal," evt: ",e),this.allowRandomTest===!0&&(this.addRandomModal=e.has("addRandomModal")&&e.get("addRandomModal"),this.factoidText=e.get("factoid_text"),e.unset("addRandomModal"),e.unset("factoid_text")),this.allowRandomTest=!1,window.setTimeout(this.bufferRandomModalBool.bind(this),200),this.console.log("TOPICS STATE CHANGED AFTER: ",this.addRandomModal," evt: ",e.get("addRandomModal"),e),this.currentPage=this.changed.currentPage,this.currentPage==="topics"&&this.deepLinked===!1&&this.trigger("LOCAL_NAVIGATE_EVENT",!0),this.currentGlobalState=this.getGlobalState();var n=_.isEqual(this.currentGlobalState,this.oldGlobalState)&&boeing_globals.device==="mobile";n===!1&&this.updatePlayer(),this.oldGlobalState=this.currentGlobalState,this.deepLinked=!1}},onPauseAllMediaEvent:function(e){var t={media_event:e.media_event,exception:e.exception};t=this.formatEventData("MEDIA_EVENT",t),this.trigger("TOPICSCONTROLLER_EVENT",t)},onStateEvent:function(e){var t=e;t=this.formatEventData("STATE_UPDATE_EVENT",t),this.trigger("TOPICSCONTROLLER_EVENT",t)},updatePlayer:function(){this.console.log("topics update ",this.showModuleBool()),this.showModuleBool()===!0?this.loadViews():this.removeViews()},allLoaded:function(){return this.itemsCollection!=undefined&&this.isStateChangeBool()==1},removeViews:function(){this.viewShell!=undefined&&(this.viewShell.removeFromStage(),this.viewFactory.removeFromStage(),this.viewShell=undefined,this.viewFactory=undefined,this.trigger("TOPICS_REMOVE_ALL_EVENT"))},addFactory:function(){this.console.log("view factory added "),this.viewFactory=new o(t,this.itemsCollection)},loadViews:function(){var e=this.currentTopicsItem!=boeing_globals.state.get("currentTopic");if(this.viewShell===undefined)this.getNewTopicsItem(),this.currentTopicsItem=boeing_globals.state.get("currentTopic"),this.viewFactory=new o(t,this.itemsCollection),this.viewShell=new i(t,this.itemsCollection,this.addRandomModal),this.addRandomModal=!1;else if(boeing_globals.state.get("loadMenu")===!1&&e===!0){this.currentTopicsItem=boeing_globals.state.get("currentTopic"),this.removeViews();var n=boeing_globals.device==="mobile"?2500:2500;window.setTimeout(this.loadViews.bind(this),n)}this.addRandomModal=!1},ontopicsEvent:function(e){}});return u}),define("app/app-start",["require","app/app-events","underscore","backbone","jquery","TweenMax","jquery-cookie","app/app-router","app/utils/ga-mixins","app/data-controller","app/modules/home/home-controller","app/modules/menus/menus-controller","app/modules/ui/ui-controller","app/modules/player/player-controller","app/modules/navstrips/navstrips-controller","app/modules/library/library-controller","app/modules/topics-shell/topics-controller"],function(e){window.globals={siteFirstLoaded:!0};var t=e("app/app-events"),n=e("underscore"),r=e("backbone"),i=e("jquery"),s=e("TweenMax");cookies=e("jquery-cookie"),Router=e("app/app-router"),GA_Mixins=e("app/utils/ga-mixins"),isMobile=boeing_globals.device=="mobile";var o=e("app/data-controller"),u=e("app/modules/home/home-controller"),a=e("app/modules/menus/menus-controller"),f=e("app/modules/ui/ui-controller"),l=e("app/modules/player/player-controller"),c=e("app/modules/navstrips/navstrips-controller"),h=e("app/modules/library/library-controller"),p=e("app/modules/topics-shell/topics-controller"),d=new Router,v=new o,m=new u,g=new f,y=new l,b=new h,w=new p;GA_Mixins.constructor(),t.dataController=v;var E=i("<main id='boeing-container' style='opacity:0;'></main>");E.append(m.el),E.append(g.el);if(isMobile!=1){var S=new a,x=new c;E.append(S.el),E.append(x.el)}E.append(y.el),E.append(b.el),E.append(w.el),i("body").append(E),t.init();var T=function(){};return n.extend(T.prototype,{revealAfterPreloader:function(){window.preloaderCompleted==1?window.preloaderTimeout<1e3?E.css("opacity",1):(s.to(E,1,{opacity:1,ease:Power2.easeInOut}),s.to(i("#preloaderWrapper"),1,{opacity:0,delay:1,ease:Power2.easeInOut}),this.cleanUpAnalytics(),window.setTimeout(this.cleanUpAnalytics.bind(this),4e3)):window.setTimeout(this.revealAfterPreloader.bind(this),1e3)},init:function(){this.debug=!1,this.setDebugEnv(),window.cookies=cookies,window.allowGASendBool=!0,boeing_globals.cdn="",this.initEventHooks(),this.cleanUpAnalytics(),window.setTimeout(this.revealAfterPreloader.bind(this),window.preloaderTimeout)},onAllDataLoaded:function(e){var t=e.data.dataType;t=="topics"&&(r.history.start({pushState:!0}),(window.location.pathname==""||window.location.pathname=="/"||window.location.pathname=="/boeing/")&&d.navigate("/boeing/home",{trigger:!0}))},onMapControllerEvent:function(e){},initEventHooks:function(){t.listenTo(v,"DATACONTROLLER_EVENT",t.onDataEvent),t.listenTo(m,"HOMECONTROLLER_EVENT",t.onHomeControllerEvent),isMobile!==!0&&t.listenTo(S,"MENUSCONTROLLER_EVENT",t.onMenusControllerEvent),t.listenTo(g,"UICONTROLLER_EVENT",t.onUIControllerEvent),t.listenTo(y,"PLAYERCONTROLLER_EVENT",t.onPlayerControllerEvent),t.listenTo(b,"LIBRARYCONTROLLER_EVENT",t.onNavStripsControllerEvent),t.listenTo(w,"TOPICSCONTROLLER_EVENT",t.onTopicsControllerEvent),t.listenTo(d,"ROUTER_EVENT",t.onRouterEvent),v.on("DATACONTROLLER_EVENT",this.onAllDataLoaded.bind(this)),this.checkForDevMode()},checkForDevMode:function(){var e=document.cookie.replace(/(?:(?
1:^|.*;\s*)dev_mode\s*\=\s*([^;]*).*$)|^.*$/,"$1");e=="true"&&(document.body.style.fontSize="18px",document.body.style.backgroundColor="#ccc")},onRouteEvent:function(e){},setDebugEnv:function(){this.console={log:function(){}},this.debug!=undefined&&this.debug==1&&(this.console=window.console)},cleanUpAnalytics:function(){var e=i("img");e.each(function(e,t){t!=undefined&&t.src.indexOf("researchnow")>=1&&i(t).hasClass("no-hide")==0&&i(t).css({display:"none",width:"0",height:"0"})})},checkBreakpoints:function(){var e=window.matchMedia("(orientation: portrait)"),t=window.matchMedia("(max-width: 768px)"),n=function(e){var t={type:"orientation",value:""};e.matches?t.value="portrait":t.value="landscape",this.trigger("BREAKPOINT_EVENT",t)},r=function(e){var t={type:"breakpoint"};t.value=e.matches==1?"portrait":"landscape",this.trigger("BREAKPOINT_EVENT",t)}}}),T}),requirejs.config({baseUrl:"assets/js",paths:{app:"app",Evt:"app/app-events",jquery:"lib/jquery-2.2.4.min","jquery.youtube":"lib/jquery-youtube","jquery.lazyload":"lib/jquery.lazyload.min","jquery-mousewheel":"lib/jquery.mousewheel.min","jquery-mobile":"lib/jquery.mobile.custom.min","jquery-cookie":"lib/js.cookie",Ps:"lib/perfect-scrollbar.min",underscore:"lib/underscore-min",backbone:"lib/backbone-min","backbone-subroute":"lib/backbone.subroute.min","backbone.localStorage":"lib/backbone.localStorage-min",stackblur:"lib/stackblur.min",mustache:"lib/mustache.min",text:"lib/require-text",FTScroller:"lib/ftscroller",TweenMax:"lib/greensock/TweenMax.min",ScrollToPlugin:"lib/greensock/plugins/ScrollToPlugin.min",MorphSvgPlugin:"lib/greensock/plugins/MorphSVGPlugin.min",DrawSvgPlugin:"lib/greensock/plugins/DrawSVGPlugin.min",CssPlugin:"lib/greensock/plugins/CSSPlugin.min.js",ThrowProps:"lib/greensock/plugins/ThrowPropsPlugin.min",Draggable:"lib/greensock/utils/Draggable",videojs:"lib/video.min",Player:"lib/player.min",rx:"lib/rx.all.compat.min","rx.time":"lib/rx.time",soundcloud:"lib/soundcloud-api",bc:"lib/brightcove.boeing.index.min"},shim:{"jquery.youtube":["jquery"],"jquery.lazyload":["jquery"],"jquery-mousewheel":["jquery"],"jquery-cookie":["jquery"],"jquery-mobile":["jquery"],CssPlugin:["tweenMax"],ScrollToPlugin:["TweenMax"],MorphSvgPlugin:["TweenMax"],DrawSvgPlugin:["TweenMax"],ThrowProps:["TweenMax"],Draggable:["TweenMax"],"backbone-subroute":["backbone"],"backbone.localStorage":["backbone"],backbone:{deps:["underscore"],exports:"Backbone"}}}),require(["app/app-start","app/app-events"],function(e,t){var n=function(){var e=window.localStorage.getItem("lastClearedDate");console.log("lastClearedData ",e);if(e===null){window.localStorage.clear();var t=(new Date).getTime();localStorage.setItem("lastClearedDate",t)}};n(),String.prototype.initCap=function(){return this.toLowerCase().replace(/(?:^|\s)[a-z]/g,function(e){return e.toUpperCase()})},Array.prototype.findIndex||Object.defineProperty(Array.prototype,"findIndex",{value:function(e){if(this==null)throw new TypeError('"this" is null or not defined');var t=Object(this),n=t.length>>>0;if(typeof e!="function")throw new TypeError("predicate must be a function");var r=arguments[1],i=0;while(i<n){var s=t[i];if(e.call(r,s,i,t))return i;i++}return-1}});var r=new e,i=t;boeing_globals.App=r,r.init()}),define("app",function(){})})();

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.