theoplayer
Version:
THEOplayer is the universal video player solution, enabling you to quickly deliver cross-platform content playback.
40 lines (32 loc) • 265 kB
JavaScript
/*!
THEOplayer
Usage of this software is limited by the THEOplayer License.
It is prohibited to reverse engineer, decompile, translate,
disassemble, decipher, decrypt, or otherwise attempt to
discover the source code of this software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
OTHER DEALINGS IN THE SOFTWARE.
For more information, visit https://www.theoplayer.com or contact
contact @ theoplayer . com
This product makes use of Open Source Software: video.js
(Apache 2.0 - Copyright Brightcove, Inc.), long.js (Apache 2.0),
nodejs-langs (MIT - Copyright Andrew Lawson), promise-polyfill
(MIT - Copyright (c) 2014 Taylor Hakes & Forbes Lindesay),
shaka-player (Apache 2.0 - Copyright 2016 Google LLC)
The code of these projects has been heavily modified during
integration.
More information on the licenses can be found here: Apache 2.0
(http://www.apache.org/licenses/LICENSE-2.0), MIT
(https://opensource.org/licenses/MIT)
THEOplayer is based on patented technology developed by
THEO Technologies (https://www.theoplayer.com).
Version: 10.8.0
Created: 2026-01-15T14:16:26.308Z
*/
var a="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:void 0!==s?s:"undefined"!=typeof global?global:this,s=a.window,h=a.document,u=(a.location,a.navigator,a.setTimeout),c=a.clearTimeout,v=a.setInterval,p=a.clearInterval,m=a.Error,g=a.TypeError,k=a.SyntaxError,w=a.Object,_=a.Math,x=a.parseInt,C=a.parseFloat,S=a.isNaN,j=a.Uint8Array;a.Worker,a.WorkerGlobalScope,a.XMLHttpRequest;import{$ as T,$a as M,A,Aa as P,B as N,Ba as E,C as B,Ca as I,D as F,Da as D,E as $,Ea as U,F as R,Fa as O,G as V,Ga as L,H,Ha as q,I as z,Ia as W,J as G,Ja as X,K as J,Ka as Q,L as Y,La as K,M as Z,Ma as tt,N as it,Na as d,O as st,Oa as et,P as nt,Pa as rt,Q as ht,Qa as ot,R as at,Ra as ut,S as ct,Sa as lt,T as dt,Ta as ft,U as vt,Ua as pt,V as mt,Va as gt,W as yt,Wa as bt,X as kt,Xa as wt,Y as _t,Ya as xt,Z as Ct,Za as St,_ as jt,_a as Tt,a as Mt,aa as At,ab as Pt,b as Nt,ba as Et,bb as Bt,c as f,ca as It,cb as Ft,d as Dt,da as $t,db as Ut,e as Rt,ea as Ot,eb as Vt,f as Lt,fa as Ht,fb as qt,g as zt,ga as Wt,gb as Gt,h as Xt,ha as Jt,hb as Qt,i as Yt,ia as Kt,j as Zt,ja as ti,k as ii,ka as si,l as ei,la as ni,m as ri,ma as hi,n as oi,na as ai,o as ui,oa as ci,p as li,pa as di,q as fi,qa as vi,r as pi,ra as mi,s as gi,sa as yi,t as bi,ta as ki,u as wi,ua as _i,v as xi,va as Ci,w as Si,wa as ji,x as Ti,xa as Mi,y as Ai,ya as Pi,z as Ni,za as Ei}from"./THEOplayer.common.esm.js";f(),f(),f(),f();var Bi=[];function Ii(t){Bi.push(t)}var Fi=[];function Di(t){Fi.push(t)}f(),f(),f(),f();var b=void 0!==s?s:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},$i=void 0!==h?h:{createElement:function(){}};function Ui(t,i){return i||(i=t.slice(0)),t.raw=i,t}var Ri=1;function Oi(){return Ri++}var Vi,Li=w.prototype.toString,Hi=function(t){return Wi(t)?w.keys(t):[]};function qi(t,i){Hi(t).forEach(function(s){return i(t[s],s)})}function zi(t){for(var i=arguments.length,s=new Array(i>1?i-1:0),e=1;e<i;e++)s[e-1]=arguments[e];return w.assign?w.assign.apply(w,[t].concat(s)):(s.forEach(function(i){i&&qi(i,function(i,s){t[s]=i})}),t)}function Wi(t){return!!t&&"object"==typeof t}function Gi(t){return Wi(t)&&"[object Object]"===Li.call(t)&&t.constructor===w}var Xi=function(t,i,s){void 0===s&&(s=!!Gs&&Gs<11),"log"!==t&&i.unshift(t.toUpperCase()+":"),Vi.history.push(i),i.unshift("VIDEOJS:");var e=b.console&&b.console[t];e&&(s&&(i=i.map(function(t){if(Wi(t)||Array.isArray(t))try{return JSON.stringify(t)}catch(i){return String(t)}return String(t)}).join(" ")),e.apply?e[Array.isArray(i)?"apply":"call"](b.console,i):e(i))};(Vi=function(){for(var t=arguments.length,i=new Array(t),s=0;s<t;s++)i[s]=arguments[s];Xi("log",i)}).history=[],Vi.error=function(){for(var t=arguments.length,i=new Array(t),s=0;s<t;s++)i[s]=arguments[s];return Xi("error",i)},Vi.warn=function(){for(var t=arguments.length,i=new Array(t),s=0;s<t;s++)i[s]=arguments[s];return Xi("warn",i)};var Ji=Vi,Qi="undefined"!=typeof globalThis?globalThis:void 0!==s?s:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function Yi(t){return t.replace(/\n\r?\s*/g,"")}var Ki,Zi=function(t){for(var i="",s=0;s<arguments.length;s++)i+=Yi(t[s])+(arguments[s+1]||"");return i};function ts(t){return"string"==typeof t&&/\S/.test(t)}function is(t){if(/\s/.test(t))throw new m("class has illegal whitespace characters")}function ss(){return $i===b.document&&void 0!==$i.createElement}function es(t){return Wi(t)&&1===t.nodeType}function ns(t){return function(i,s){if(!ts(i))return $i[t](null);ts(s)&&(s=$i.querySelector(s));var e=es(s)?s:$i;return e[t]&&e[t](i)}}function rs(t,i,s,e){void 0===t&&(t="div"),void 0===i&&(i={}),void 0===s&&(s={});var n=$i.createElement(t);return w.getOwnPropertyNames(i).forEach(function(t){var s=i[t];-1!==t.indexOf("aria-")||"role"===t||"type"===t?(Ji.warn(Zi(Ki||(Ki=Ui(["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 ","."])),t,s)),n.setAttribute(t,s)):"textContent"===t?hs(n,s):n[t]=s}),w.getOwnPropertyNames(s).forEach(function(t){n.setAttribute(t,s[t])}),e&&Ss(n,e),n}function hs(t,i){return void 0===t.textContent?t.innerText=i:t.textContent=i,t}function os(t,i){i.firstChild?i.insertBefore(t,i.firstChild):i.appendChild(t)}var as={},us="vdata"+(new Date).getTime();function cs(t){var i=t[us];return i||(i=t[us]=Oi()),as[i]||(as[i]={}),as[i]}function ls(t){var i=t[us];return!!i&&!!w.getOwnPropertyNames(as[i]).length}function ds(t){var i=t[us];if(i){delete as[i];try{delete t[us]}catch(i){t.removeAttribute?t.removeAttribute(us):t[us]=null}}}function fs(t,i){return is(i),t.classList?t.classList.contains(i):function(t){return new RegExp("(^|\\s)"+t+"($|\\s)")}(i).test(t.className)}function vs(t,i){return t.classList?t.classList.add(i):fs(t,i)||(t.className=(t.className+" "+i).trim()),t}function ps(t,i){return t.classList?t.classList.remove(i):(is(i),t.className=t.className.split(/\s+/).filter(function(t){return t!==i}).join(" ")),t}function ms(t,i,s){var e=fs(t,i);if("function"==typeof s&&(s=s(t,i)),"boolean"!=typeof s&&(s=!e),s!==e)return s?vs(t,i):ps(t,i),t}function gs(t,i){w.getOwnPropertyNames(i).forEach(function(s){var e=i[s];null==e||!1===e?t.removeAttribute(s):t.setAttribute(s,!0===e?"":e)})}function ys(t){var i={};if(t&&t.attributes&&t.attributes.length>0)for(var s=t.attributes,e=s.length-1;e>=0;e--){var n=s[e].name,r=s[e].value;"boolean"!=typeof t[n]&&-1===",autoplay,controls,playsinline,loop,muted,default,defaultMuted,".indexOf(","+n+",")||(r=null!==r),i[n]=r}return i}function bs(t,i,s){t.setAttribute(i,s)}function ks(t,i){t.removeAttribute(i)}function ws(t){var i;if(t.getBoundingClientRect&&t.parentNode&&(i=t.getBoundingClientRect()),!i)return{left:0,top:0};var s=$i.documentElement,e=$i.body,n=s.clientLeft||e.clientLeft||0,r=b.pageXOffset||e.scrollLeft,h=i.left+r-n,o=s.clientTop||e.clientTop||0,a=b.pageYOffset||e.scrollTop,u=i.top+a-o;return{left:_.round(h),top:_.round(u)}}function _s(t,i){var s={},e=ws(t),n=t.offsetWidth,r=t.offsetHeight,h=e.top,o=e.left,a=i.pageY,u=i.pageX;return i.changedTouches&&(u=i.changedTouches[0].pageX,a=i.changedTouches[0].pageY),s.y=_.max(0,_.min(1,(h-a+r)/r)),s.x=_.max(0,_.min(1,(u-o)/n)),s}function xs(t){return Wi(t)&&3===t.nodeType}function Cs(t){for(;t.firstChild;)t.removeChild(t.firstChild);return t}function Ss(t,i){return function(t){return"function"==typeof t&&(t=t()),(Array.isArray(t)?t:[t]).map(function(t){return"function"==typeof t&&(t=t()),es(t)||xs(t)?t:"string"==typeof t&&/\S/.test(t)?$i.createTextNode(t):void 0}).filter(function(t){return t})}(i).forEach(function(i){return t.appendChild(i)}),t}function js(t,i){return Ss(Cs(t),i)}var Ts,Ms=ns("querySelector"),As=ns("querySelectorAll"),Ps=b.navigator&&b.navigator.userAgent||"",Ns=/AppleWebKit\/([\d.]+)/i.exec(Ps),Es=Ns?C(Ns.pop()):null,Bs=/iPad/i.test(Ps),Is=/iPhone/i.test(Ps)&&!Bs,Fs=/iPod/i.test(Ps),Ds=Is||Bs||Fs,$s=(Ts=Ps.match(/OS (\d+)_/i))&&Ts[1]?Ts[1]:null,Us=/Android/i.test(Ps),Rs=function(){var t=Ps.match(/Android (\d+)(?:\.(\d+))?(?:\.(\d+))*/i);if(!t)return null;var i=t[1]&&C(t[1]),s=t[2]&&C(t[2]);return i&&s?C(t[1]+"."+t[2]):i||null}(),Os=Us&&/webkit/i.test(Ps)&&Rs<2.3,Vs=Us&&Rs<5&&Es<537,Ls=/Firefox/i.test(Ps),Hs=/Edge/i.test(Ps),qs=!Hs&&/Chrome/i.test(Ps),zs=function(){var t=Ps.match(/Chrome\/(\d+)/);return t&&t[1]?C(t[1]):null}(),Ws=/MSIE\s8\.0/.test(Ps),Gs=function(){var t=/MSIE\s(\d+)\.\d/.exec(Ps),i=t&&C(t[1]);return!i&&/Trident\/7.0/i.test(Ps)&&/rv:11.0/.test(Ps)&&(i=11),i}(),Xs=/Safari/i.test(Ps)&&!qs&&!Us&&!Hs,Js=Xs||Ds,Qs=ss()&&("ontouchstart"in b||b.DocumentTouch&&b.document instanceof b.DocumentTouch),Ys=ss()&&"backgroundSize"in b.document.createElement("video").style,Ks=w.freeze({__proto__:null,IS_IPAD:Bs,IS_IPHONE:Is,IS_IPOD:Fs,IS_IOS:Ds,IOS_VERSION:$s,IS_ANDROID:Us,ANDROID_VERSION:Rs,IS_OLD_ANDROID:Os,IS_NATIVE_ANDROID:Vs,IS_FIREFOX:Ls,IS_EDGE:Hs,IS_CHROME:qs,CHROME_VERSION:zs,IS_IE8:Ws,IE_VERSION:Gs,IS_SAFARI:Xs,IS_ANY_SAFARI:Js,TOUCH_ENABLED:Qs,BACKGROUND_SIZE_SUPPORTED:Ys});function Zs(t,i){var s=cs(t);0===s.handlers[i].length&&(delete s.handlers[i],t.removeEventListener?t.removeEventListener(i,s.dispatcher,!1):t.detachEvent&&t.detachEvent("on"+i,s.dispatcher)),w.getOwnPropertyNames(s.handlers).length<=0&&(delete s.handlers,delete s.dispatcher,delete s.disabled),0===w.getOwnPropertyNames(s).length&&ds(t)}function te(t,i,s,e){s.forEach(function(s){t(i,s,e)})}function ie(t){function i(){return!0}function s(){return!1}if(!t||!t.isPropagationStopped||!t.isImmediatePropagationStopped){var e=t||b.event;for(var n in t={},e)"layerX"!==n&&"layerY"!==n&&"keyLocation"!==n&&"webkitMovementX"!==n&&"webkitMovementY"!==n&&"path"!==n&&("returnValue"===n&&e.preventDefault||(t[n]=e[n]));if(t.target||(t.target=t.srcElement||$i),t.relatedTarget||(t.relatedTarget=t.fromElement===t.target?t.toElement:t.fromElement),t.preventDefault=function(){e.preventDefault&&e.preventDefault(),t.returnValue=!1,e.returnValue=!1,t.defaultPrevented=!0},t.defaultPrevented=!1,t.stopPropagation=function(){e.stopPropagation&&e.stopPropagation(),t.cancelBubble=!0,e.cancelBubble=!0,t.isPropagationStopped=i},t.isPropagationStopped=s,t.stopImmediatePropagation=function(){e.stopImmediatePropagation&&e.stopImmediatePropagation(),t.isImmediatePropagationStopped=i,t.stopPropagation()},t.isImmediatePropagationStopped=s,null!==t.clientX&&void 0!==t.clientX){var r=$i.documentElement,h=$i.body;t.pageX=t.clientX+(r&&r.scrollLeft||h&&h.scrollLeft||0)-(r&&r.clientLeft||h&&h.clientLeft||0),t.pageY=t.clientY+(r&&r.scrollTop||h&&h.scrollTop||0)-(r&&r.clientTop||h&&h.clientTop||0)}t.which=t.charCode||t.keyCode,null!==t.button&&void 0!==t.button&&(t.button=1&t.button?0:4&t.button?1:2&t.button?2:0)}return t}var se=!1;!function(){try{var t=w.defineProperty({},"passive",{get:function(){se=!0}});b.addEventListener("test",null,t)}catch(t){}}();var ee=["touchstart","touchmove"];function ne(t,i,s){if(Array.isArray(i))return te(ne,t,i,s);var e=cs(t);if(e.handlers||(e.handlers={}),e.handlers[i]||(e.handlers[i]=[]),s.guid||(s.guid=Oi()),e.handlers[i].push(s),e.dispatcher||(e.disabled=!1,e.dispatcher=function(i,s){if(!e.disabled){i=ie(i);var n=e.handlers[i.type];if(n)for(var r=n.slice(0),h=0,o=r.length;h<o&&!i.isImmediatePropagationStopped();h++)try{r[h].call(t,i,s)}catch(t){Ji.error(t)}}}),1===e.handlers[i].length)if(t.addEventListener){var n=!1;se&&ee.indexOf(i)>-1&&(n={passive:!0}),t.addEventListener(i,e.dispatcher,n)}else t.attachEvent&&t.attachEvent("on"+i,e.dispatcher)}function re(t,i,s){if(ls(t)){var e=cs(t);if(e.handlers){if(Array.isArray(i))return te(re,t,i,s);var n=function(i){e.handlers[i]=[],Zs(t,i)};if(i){var r=e.handlers[i];if(r)if(s){if(s.guid)for(var h=0;h<r.length;h++)r[h].guid===s.guid&&r.splice(h--,1);Zs(t,i)}else n(i)}else for(var o in e.handlers)n(o)}}}function he(t,i,s){var e=ls(t)?cs(t):{},n=t.parentNode||t.ownerDocument;if("string"==typeof i&&(i={type:i,target:t}),i=ie(i),e.dispatcher&&e.dispatcher.call(t,i,s),n&&!i.isPropagationStopped()&&!0===i.bubbles)he.call(null,n,i,s);else if(!n&&!i.defaultPrevented){var r=cs(i.target);i.target[i.type]&&(r.disabled=!0,"function"==typeof i.target[i.type]&&i.target[i.type](),r.disabled=!1)}return!i.defaultPrevented}function oe(t,i,s){if(Array.isArray(i))return te(oe,t,i,s);var e=function e(){re(t,i,e),s.apply(this,arguments)};e.guid=s.guid=s.guid||Oi(),ne(t,i,e)}var ae,ue=!1,ce=function(){if(ss()){var t=$i.getElementsByTagName("video"),i=$i.getElementsByTagName("audio"),s=[];if(t&&t.length>0)for(var e=0,n=t.length;e<n;e++)s.push(t[e]);if(i&&i.length>0)for(var r=0,h=i.length;r<h;r++)s.push(i[r]);if(s&&s.length>0)for(var o=0,a=s.length;o<a;o++){var u=s[o];if(!u||!u.getAttribute){le(1);break}void 0===u.player&&null!==u.getAttribute("data-setup")&&ae(u)}else ue||le(1)}};function le(t,i){i&&(ae=i),b.setTimeout(ce,t)}ss()&&"complete"===$i.readyState?ue=!0:oe(b,"load",function(){ue=!0});var de=function(t){var i=$i.createElement("style");return i.className=t,i},fe=function(t,i){t.styleSheet?t.styleSheet.cssText=i:t.textContent=i},n=function(t,i,s){i.guid||(i.guid=Oi());var e=function(){return i.apply(t,arguments)};return e.guid=s?s+"_"+i.guid:i.guid,e};function ve(t){return"string"!=typeof t?t:t.charAt(0).toUpperCase()+t.slice(1)}function pe(){for(var t={},i=arguments.length,s=new Array(i),e=0;e<i;e++)s[e]=arguments[e];return s.forEach(function(i){i&&qi(i,function(i,s){Gi(i)?(Gi(t[s])||(t[s]={}),t[s]=pe(t[s],i)):t[s]=i})}),t}var me=function(){function t(t,i,s){if(!t&&this.play?this.t=t=this:this.t=t,this.h=pe({},this.h),i=this.h=pe(this.h,i),this.o=i.id||i.el&&i.el.id,!this.o){var e=t&&t.id&&t.id()||"no_player";this.o=e+"u"+Oi()}this.l=i.name||null,i.el?this.v=i.el:!1!==i.createEl&&(this.v=this.createEl()),this.m=[],this.k={},this.C={},!1!==i.initChildren&&this.initChildren(),this.ready(s),!1!==i.reportTouchActivity&&this.enableTouchActivity()}var i=t.prototype;return i.dispose=function(){if(this.trigger({type:"dispose",bubbles:!1}),this.m)for(var t=this.m.length-1;t>=0;t--)this.m[t].dispose&&this.m[t].dispose();this.m=null,this.k=null,this.C=null,this.off(),this.v.parentNode&&this.v.parentNode.removeChild(this.v),ds(this.v),this.v=null},i.player=function(){return this.t},i.options=function(t){return Ji.warn("this.options() has been deprecated and will be moved to the constructor in 6.0"),t?(this.h=pe(this.h,t),this.h):this.h},i.el=function(){return this.v},i.createEl=function(t,i,s){return rs(t,i,s)},i.localize=function(t){var i=this.t.language&&this.t.language(),s=this.t.languages&&this.t.languages();if(!i||!s)return t;var e=s[i];if(e&&e[t])return e[t];var n=s[i.split("-")[0]];return n&&n[t]?n[t]:t},i.contentEl=function(){return this.S||this.v},i.id=function(){return this.o},i.name=function(){return this.l},i.children=function(){return this.m},i.getChildById=function(t){return this.k[t]},i.getChild=function(t){if(t)return t=ve(t),this.C[t]},i.addChild=function(i,s,e){var n,r;if(void 0===s&&(s={}),void 0===e&&(e=this.m.length),"string"==typeof i){r=ve(i),s||(s={}),!0===s&&(Ji.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`."),s={});var h=s.componentClass||r;s.name=r;var o=t.getComponent(h);if(!o)throw new m("Component "+h+" does not exist");if("function"!=typeof o)return null;n=new o(this.t||this,s)}else n=i;if(this.m.splice(e,0,n),"function"==typeof n.id&&(this.k[n.id()]=n),(r=r||n.name&&ve(n.name()))&&(this.C[r]=n),"function"==typeof n.el&&n.el()){var a=this.contentEl().children[e]||null;this.contentEl().insertBefore(n.el(),a)}return n},i.removeChild=function(t){if("string"==typeof t&&(t=this.getChild(t)),t&&this.m){for(var i=!1,s=this.m.length-1;s>=0;s--)if(this.m[s]===t){i=!0,this.m.splice(s,1);break}if(i){this.k[t.id()]=null,this.C[t.name()]=null;var e=t.el();e&&e.parentNode===this.contentEl()&&this.contentEl().removeChild(t.el())}}},i.initChildren=function(){var i=this,s=this.h.children;if(s){var e,n=this.h,r=t.getComponent("Tech");(e=Array.isArray(s)?s:w.keys(s)).concat(w.keys(this.h).filter(function(t){return!e.some(function(i){return"string"==typeof i?t===i:t===i.name})})).map(function(t){var e,n;return"string"==typeof t?n=s[e=t]||i.h[e]||{}:(e=t.name,n=t),{name:e,opts:n}}).filter(function(i){var s=t.getComponent(i.opts.componentClass||ve(i.name));return s&&!r.isTech(s)}).forEach(function(t){var s=t.name,e=t.opts;if(void 0!==n[s]&&(e=n[s]),!1!==e){!0===e&&(e={}),e.playerOptions=i.h.playerOptions;var r=i.addChild(s,e);r&&(i[s]=r)}})}},i.buildCSSClass=function(){return""},i.on=function(t,i,s){var e=this;if("string"==typeof t||Array.isArray(t))ne(this.v,t,n(this,i));else{var r=t,h=i,o=n(this,s),a=function(){return e.off(r,h,o)};a.guid=o.guid,this.on("dispose",a);var u=function(){return e.off("dispose",a)};u.guid=o.guid,t.nodeName?(ne(r,h,o),ne(r,"dispose",u)):"function"==typeof t.on&&(r.on(h,o),r.on("dispose",u))}return this},i.off=function(t,i,s){if(!t||"string"==typeof t||Array.isArray(t))re(this.v,t,i);else{var e=t,r=i,h=n(this,s);this.off("dispose",h),t.nodeName?(re(e,r,h),re(e,"dispose",h)):(e.off(r,h),e.off("dispose",h))}return this},i.one=function(t,i,s){var e=arguments,r=this;if("string"==typeof t||Array.isArray(t))oe(this.v,t,n(this,i));else{var h=t,o=i,a=n(this,s),u=function t(){r.off(h,o,t),a.apply(null,e)};u.guid=a.guid,this.on(h,o,u)}return this},i.trigger=function(t,i){return he(this.v,t,i),this},i.ready=function(t,i){return void 0===i&&(i=!1),t&&(this.j?i?t.call(this):this.setTimeout(t,1):(this.T=this.T||[],this.T.push(t))),this},i.triggerReady=function(){this.j=!0,this.setTimeout(function(){var t=this.T;this.T=[],t&&t.length>0&&t.forEach(function(t){t.call(this)},this),this.trigger("ready")},1)},i.$=function(t,i){return Ms(t,i||this.contentEl())},i.$$=function(t,i){return As(t,i||this.contentEl())},i.hasClass=function(t){return fs(this.v,t)},i.addClass=function(t){return vs(this.v,t),this},i.removeClass=function(t){return ps(this.v,t),this},i.toggleClass=function(t,i){return ms(this.v,t,i),this},i.show=function(){return this.removeClass("vjs-hidden"),this},i.hide=function(){return this.addClass("vjs-hidden"),this},i.lockShowing=function(){return this.addClass("vjs-lock-showing"),this},i.unlockShowing=function(){return this.removeClass("vjs-lock-showing"),this},i.getAttribute=function(t){return function(t,i){return t.getAttribute(i)}(this.v,t)},i.setAttribute=function(t,i){return bs(this.v,t,i),this},i.removeAttribute=function(t){return ks(this.v,t),this},i.width=function(t,i){return this.dimension("width",t,i)},i.height=function(t,i){return this.dimension("height",t,i)},i.dimensions=function(t,i){return this.width(t,!0).height(i)},i.dimension=function(t,i,s){if(void 0!==i)return null!==i&&i==i||(i=0),-1!==(""+i).indexOf("%")||-1!==(""+i).indexOf("px")?this.v.style[t]=i:this.v.style[t]="auto"===i?"":i+"px",s||this.trigger("resize"),this;if(!this.v)return 0;var e=this.v.style[t],n=e.indexOf("px");return x(-1!==n?e.slice(0,n):this.v["offset"+ve(t)],10)},i.currentDimension=function(t){var i=0;if("width"!==t&&"height"!==t)throw new m("currentDimension only accepts width or height value");if("function"==typeof b.getComputedStyle){var s=b.getComputedStyle(this.v);i=s.getPropertyValue(t)||s[t]}if(0===(i=C(i))){var e="offset"+ve(t);i=this.v[e]}return i},i.currentDimensions=function(){return{width:this.currentDimension("width"),height:this.currentDimension("height")}},i.currentWidth=function(){return this.currentDimension("width")},i.currentHeight=function(){return this.currentDimension("height")},i.focus=function(){this.v.focus()},i.blur=function(){this.v.blur()},i.emitTapEvents=function(){var t,i=0,s=null;this.on("touchstart",function(e){1===e.touches.length&&(s={pageX:e.touches[0].pageX,pageY:e.touches[0].pageY},i=(new Date).getTime(),t=!0)}),this.on("touchmove",function(i){if(i.touches.length>1)t=!1;else if(s){var e=i.touches[0].pageX-s.pageX,n=i.touches[0].pageY-s.pageY;_.sqrt(e*e+n*n)>10&&(t=!1)}});var e=function(){t=!1};this.on("touchleave",e),this.on("touchcancel",e),this.on("touchend",function(e){(s=null,!0===t)&&((new Date).getTime()-i<200&&(e.preventDefault(),this.trigger("tap")))})},i.enableTouchActivity=function(){if(this.player()&&this.player().reportUserActivity){var t,i=n(this.player(),this.player().reportUserActivity);this.on("touchstart",function(){i(),this.clearInterval(t),t=this.setInterval(i,250)});var s=function(s){i(),this.clearInterval(t)};this.on("touchmove",i),this.on("touchend",s),this.on("touchcancel",s)}},i.setTimeout=function(t,i){t=n(this,t);var s=b.setTimeout(t,i),e=function(){this.clearTimeout(s)};return e.guid="vjs-timeout-"+s,this.on("dispose",e),s},i.clearTimeout=function(t){b.clearTimeout(t);var i=function(){};return i.guid="vjs-timeout-"+t,this.off("dispose",i),t},i.setInterval=function(t,i){t=n(this,t);var s=b.setInterval(t,i),e=function(){this.clearInterval(s)};return e.guid="vjs-interval-"+s,this.on("dispose",e),s},i.clearInterval=function(t){b.clearInterval(t);var i=function(){};return i.guid="vjs-interval-"+t,this.off("dispose",i),t},t.registerComponent=function(i,s){if(i){if(i=ve(i),t.M||(t.M={}),"Player"===i&&t.M[i]){var e=t.M[i];if(e.players&&w.keys(e.players).length>0&&w.keys(e.players).map(function(t){return e.players[t]}).every(Boolean))throw new m("Can not register Player component after player has been created")}return t.M[i]=s,s}},t.getComponent=function(i){if(i)return i=ve(i),t.M&&t.M[i]?t.M[i]:b&&b.videojs&&b.videojs[i]?(Ji.warn("The "+i+" component was added to the videojs object when it should be registered using videojs.registerComponent(name, component)"),b.videojs[i]):void 0},t.extend=function(i){i=i||{},Ji.warn("Component.extend({}) has been deprecated, use videojs.extend(Component, {}) instead");var s=i.init||i.init||this.prototype.init||this.prototype.init||function(){},e=function(){s.apply(this,arguments)};for(var n in(e.prototype=w.create(this.prototype)).constructor=e,e.extend=t.extend,i)i.hasOwnProperty(n)&&(e.prototype[n]=i[n]);return e},t}();me.registerComponent("Component",me);var ge=function(){};function ye(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function be(t,i){return(be=w.setPrototypeOf?w.setPrototypeOf.bind():function(t,i){return t.__proto__=i,t})(t,i)}function ke(t,i){t.prototype=w.create(i.prototype),t.prototype.constructor=t,be(t,i)}function we(t,i,s,e){return void 0===e&&(Ji.warn("DEPRECATED: Function '"+t+"' on 'TimeRanges' called without an index argument."),e=0),function(t,i,s){if(i<0||i>s)throw new m("Failed to execute '"+t+"' on 'TimeRanges': The index provided ("+i+") is greater than or equal to the maximum bound ("+s+").")}(t,e,s.length-1),s[e][i]}function _e(t){return void 0===t||0===t.length?{length:0,start:function(){throw new m("This TimeRanges object is empty")},end:function(){throw new m("This TimeRanges object is empty")}}:{length:t.length,start:we.bind(null,"start",0,t),end:we.bind(null,"end",1,t)}}function xe(t,i){return Array.isArray(t)?_e(t):void 0===t||void 0===i?_e():_e([[t,i]])}function Ce(t,i){var s,e,n=0;if(!i)return 0;t&&t.length||(t=xe(0,0));for(var r=0;r<t.length;r++)s=t.start(r),(e=t.end(r))>i&&(e=i),n+=e-s;return n/i}ge.prototype.A={},ge.prototype.on=function(t,i){var s=this.addEventListener;this.addEventListener=function(){},ne(this,t,i),this.addEventListener=s},ge.prototype.addEventListener=ge.prototype.on,ge.prototype.off=function(t,i){re(this,t,i)},ge.prototype.removeEventListener=ge.prototype.off,ge.prototype.one=function(t,i){var s=this.addEventListener;this.addEventListener=function(){},oe(this,t,i),this.addEventListener=s},ge.prototype.trigger=function(t){var i=t.type||t;"string"==typeof t&&(t={type:i}),t=ie(t),this.A[i]&&this["on"+i]&&this["on"+i](t),he(this,t)},ge.prototype.dispatchEvent=ge.prototype.trigger;var Se,je,Te,Me,Ae={prefixed:!0},Pe=[["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"]],Ne=Pe[0];for(je=0;je<Pe.length;je++)if(Pe[je][1]in $i){Se=Pe[je];break}if(Se){for(Te=0;Te<Se.length;Te++)Ae[Ne[Te]]=Se[Te];Ae.prefixed=Se[0]!==Ne[0]}function Ee(t){if(t instanceof Ee)return t;"number"==typeof t?this.code=t:"string"==typeof t?this.message=t:Wi(t)&&("number"==typeof t.code&&(this.code=t.code),zi(this,t)),this.message||(this.message=Ee.defaultMessages[this.code]||"")}for(Ee.prototype.code=0,Ee.prototype.message="",Ee.prototype.status=null,Ee.errorTypes=["MEDIA_ERR_CUSTOM","MEDIA_ERR_ABORTED","MEDIA_ERR_NETWORK","MEDIA_ERR_DECODE","MEDIA_ERR_SRC_NOT_SUPPORTED","MEDIA_ERR_ENCRYPTED"],Ee.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."},Me=0;Me<Ee.errorTypes.length;Me++)Ee[Ee.errorTypes[Me]]=Me,Ee.prototype[Ee.errorTypes[Me]]=Me;var Be=function(t,i){var s,e=null;try{s=JSON.parse(t,i)}catch(t){e=t}return[e,s]};var Ie=function(t){return["kind","label","language","id","inBandMetadataTrackDispatchType","mode","src"].reduce(function(i,s,e){return t[s]&&(i[s]=t[s]),i},{cues:t.cues&&Array.prototype.map.call(t.cues,function(t){return{startTime:t.startTime,endTime:t.endTime,text:t.text,id:t.id}})})},Fe=function(t){var i=t.$$("track"),s=Array.prototype.map.call(i,function(t){return t.track});return Array.prototype.map.call(i,function(t){var i=Ie(t.track);return t.src&&(i.src=t.src),i}).concat(Array.prototype.filter.call(t.textTracks(),function(t){return-1===s.indexOf(t)}).map(Ie))},De=function(t,i){return t.forEach(function(t){var s=i.addRemoteTextTrack(t).track;!t.src&&t.cues&&t.cues.forEach(function(t){return s.addCue(t)})}),i.textTracks()},$e="vjs-modal-dialog",Ue=function(t){function i(i,s){var e;return(e=t.call(this,i,s)||this).P=e.N=e.B=!1,e.closeable(!e.h.uncloseable),e.content(e.h.content),e.S=rs("div",{className:$e+"-content"},{role:"document"}),e.I=rs("p",{className:$e+"-description vjs-offscreen",id:e.el().getAttribute("aria-describedby")}),hs(e.I,e.description()),e.v.appendChild(e.I),e.v.appendChild(e.S),e.on(i,"languagechange",e.handleLanguagechange),e}ke(i,t);var s=i.prototype;return s.createEl=function(){return t.prototype.createEl.call(this,"div",{className:this.buildCSSClass(),tabIndex:-1},{"aria-describedby":this.id()+"F","aria-hidden":"true","aria-label":this.label(),role:"dialog"})},s.buildCSSClass=function(){return $e+" vjs-hidden "+t.prototype.buildCSSClass.call(this)},s.handleKeyPress=function(t){27===t.which&&this.closeable()&&this.close()},s.label=function(){return this.h.label||this.localize("Modal Window")},s.description=function(){var t=this.h.description||this.localize("This is a modal window.");return this.closeable()&&(t+=" "+this.localize("This modal can be closed by pressing the Escape key or activating the close button.")),t},s.open=function(){if(!this.P){var t=this.player();this.trigger("beforemodalopen"),this.P=!0,(this.h.fillAlways||!this.N&&!this.B)&&this.fill(),this.D=!t.paused(),this.h.pauseOnOpen&&this.D&&t.pause(),this.closeable()&&this.on(this.v.ownerDocument,"keydown",n(this,this.handleKeyPress)),t.controls(!1),this.show(),this.el().setAttribute("aria-hidden","false"),this.trigger("modalopen"),this.N=!0}return this},s.opened=function(t){return"boolean"==typeof t&&this[t?"open":"close"](),this.P},s.close=function(){if(this.P){var t=this.player();this.trigger("beforemodalclose"),this.P=!1,this.D&&this.h.pauseOnOpen&&t.play(),this.closeable()&&this.off(this.v.ownerDocument,"keydown",n(this,this.handleKeyPress)),t.controls(!0),this.hide(),this.el().setAttribute("aria-hidden","true"),this.trigger("modalclose"),this.h.temporary&&this.dispose()}return this},s.closeable=function(t){if("boolean"==typeof t){var i=this.U=!!t,s=this.getChild("closeButton");if(i&&!s){var e=this.S;this.S=this.v,s=this.addChild("closeButton",{controlText:"Close Modal Dialog"}),this.S=e,this.on(s,"close",this.close)}!i&&s&&(this.off(s,"close",this.close),this.removeChild(s),s.dispose())}return this.U},s.fill=function(){return this.fillWith(this.content())},s.fillWith=function(t){var i=this.contentEl(),s=i.parentNode,e=i.nextSibling;return this.trigger("beforemodalfill"),this.B=!0,s.removeChild(i),this.empty(),js(i,t),this.trigger("modalfill"),e?s.insertBefore(i,e):s.appendChild(i),this},s.empty=function(){return this.trigger("beforemodalempty"),Cs(this.contentEl()),this.trigger("modalempty"),this},s.content=function(t){return void 0!==t&&(this.R=t),this.R},s.handleLanguagechange=function(){this.v.setAttribute("aria-label",this.label()),hs(this.I,this.description()),this.opened()?this.fill():(this.N||this.B)&&(this.N=!1,this.B=!1,this.empty())},i}(me);Ue.prototype.h={pauseOnOpen:!0,temporary:!0},me.registerComponent("ModalDialog",Ue);var Re=function(){function t(i){var s=this;if(Ws)for(var e in s=$i.createElement("custom"),t.prototype)"constructor"!==e&&(s[e]=t.prototype[e]);if(t.prototype.O.call(s,i),w.defineProperty(s,"length",{get:function(){return this.V}}),Ws)return s}var i=t.prototype;return i.O=function(t){var i=this.length||0,s=0,e=t.length;this.L=t,this.V=t.length;var n=function(t){""+t in this||w.defineProperty(this,""+t,{get:function(){return this.L[t]}})};if(i<e)for(s=i;s<e;s++)n.call(this,s)},i.getCueById=function(t){for(var i=null,s=0,e=this.length;s<e;s++){var n=this[s];if(n.id===t){i=n;break}}return i},t}(),Oe={alternative:"alternative",captions:"captions",main:"main",sign:"sign",subtitles:"subtitles",commentary:"commentary"},Ve={alternative:"alternative",descriptions:"descriptions",main:"main","main-desc":"main-desc",translation:"translation",commentary:"commentary"},Le={subtitles:"subtitles",captions:"captions",descriptions:"descriptions",chapters:"chapters",metadata:"metadata"},He={disabled:"disabled",hidden:"hidden",showing:"showing"},qe=function(t){function i(s){var e;void 0===s&&(s={});var n=ye(e=t.call(this)||this);if(Ws)for(var r in n=$i.createElement("custom"),i.prototype)"constructor"!==r&&(n[r]=i.prototype[r]);var h={id:s.id||["vjs_track",Oi()].join("_"),kind:s.kind||"",label:s.label||"",language:s.language||""},o=function(t){w.defineProperty(n,t,{get:function(){return h[t]},set:function(){}})};for(var a in h)o(a);return n||ye(e)}return ke(i,t),i}(ge),ze=function(t){var i=["protocol","hostname","port","pathname","search","hash","host"],s=$i.createElement("a");s.href=t;var e,n=""===s.host&&"file:"!==s.protocol;n&&((e=$i.createElement("div")).innerHTML='<a href="'+t+'"></a>',s=e.firstChild,e.setAttribute("style","display:none; position:absolute;"),$i.body.appendChild(e));for(var r={},h=0;h<i.length;h++)r[i[h]]=s[i[h]];return"http:"===r.protocol&&(r.host=r.host.replace(/:80$/,"")),"https:"===r.protocol&&(r.host=r.host.replace(/:443$/,"")),n&&$i.body.removeChild(e),r},We=function(t){var i=b.location,s=ze(t);return(":"===s.protocol?i.protocol:s.protocol)+s.host!==i.protocol+i.host},Ge={exports:{}};void 0!==s?Ge.exports=s:void 0!==Qi?Ge.exports=Qi:"undefined"!=typeof self?Ge.exports=self:Ge.exports={};var Xe=function(t){var i=Je.call(t);return"[object Function]"===i||"function"==typeof t&&"[object RegExp]"!==i||void 0!==s&&(t===s.setTimeout||t===s.alert||t===s.confirm||t===s.prompt)},Je=w.prototype.toString;var Qe,Ye,Ke,Ze,tn,sn,en,nn,rn,hn,on,an,un=Array.prototype.slice,cn=w.prototype.toString,ln=function(t){var i=this;if("function"!=typeof i||"[object Function]"!==cn.call(i))throw new g("Function.prototype.bind called on incompatible "+i);for(var s,e=un.call(arguments,1),n=_.max(0,i.length-e.length),r=[],h=0;h<n;h++)r.push("$"+h);if(s=Function("binder","return function ("+r.join(",")+"){ return binder.apply(this,arguments); }")(function(){if(this instanceof s){var n=i.apply(this,e.concat(un.call(arguments)));return w(n)===n?n:this}return i.apply(t,e.concat(un.call(arguments)))}),i.prototype){var o=function(){};o.prototype=i.prototype,s.prototype=new o,o.prototype=null}return s},dn=Function.prototype.bind||ln,fn=w.prototype.toString,vn=function(t){var i=fn.call(t),s="[object Arguments]"===i;return s||(s="[object Array]"!==i&&null!==t&&"object"==typeof t&&"number"==typeof t.length&&t.length>=0&&"[object Function]"===fn.call(t.callee)),s};w.keys||(Ye=w.prototype.hasOwnProperty,Ke=w.prototype.toString,Ze=vn,tn=w.prototype.propertyIsEnumerable,sn=!tn.call({toString:null},"toString"),en=tn.call(function(){},"prototype"),nn=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],rn=function(t){var i=t.constructor;return i&&i.prototype===t},hn={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},on=function(){if(void 0===s)return!1;for(var t in s)try{if(!hn["$"+t]&&Ye.call(s,t)&&null!==s[t]&&"object"==typeof s[t])try{rn(s[t])}catch(t){return!0}}catch(t){return!0}return!1}(),an=function(t){if(void 0===s||!on)return rn(t);try{return rn(t)}catch(t){return!1}},Qe=function(t){var i=null!==t&&"object"==typeof t,s="[object Function]"===Ke.call(t),e=Ze(t),n=i&&"[object String]"===Ke.call(t),r=[];if(!i&&!s&&!e)throw new g("Object.keys called on a non-object");var h=en&&s;if(n&&t.length>0&&!Ye.call(t,0))for(var o=0;o<t.length;++o)r.push(String(o));if(e&&t.length>0)for(var a=0;a<t.length;++a)r.push(String(a));else for(var u in t)h&&"prototype"===u||!Ye.call(t,u)||r.push(String(u));if(sn)for(var c=an(t),l=0;l<nn.length;++l)c&&"constructor"===nn[l]||!Ye.call(t,nn[l])||r.push(nn[l]);return r});var pn=Qe,mn=Array.prototype.slice,gn=vn,yn=w.keys,bn=yn?function(t){return yn(t)}:pn,kn=w.keys;bn.shim=function(){if(w.keys){var t=function(){var t=w.keys(arguments);return t&&t.length===arguments.length}(1,2);t||(w.keys=function(t){return gn(t)?kn(mn.call(t)):kn(t)})}else w.keys=bn;return w.keys||bn};var wn=bn,_n="function"==typeof Mt&&"symbol"==typeof Mt("foo"),xn=w.prototype.toString,Cn=Array.prototype.concat,Sn=w.defineProperty,jn=Sn&&function(){var t={};try{for(var i in Sn(t,"x",{enumerable:!1,value:t}),t)return!1;return t.x===t}catch(t){return!1}}(),Tn=function(t,i,s,e){(!(i in t)||function(t){return"function"==typeof t&&"[object Function]"===xn.call(t)}(e)&&e())&&(jn?Sn(t,i,{configurable:!0,enumerable:!1,value:s,writable:!0}):t[i]=s)},Mn=function(t,i){var s=arguments.length>2?arguments[2]:{},e=wn(i);_n&&(e=Cn.call(e,w.getOwnPropertySymbols(i)));for(var n=0;n<e.length;n+=1)Tn(t,e[n],i[e[n]],s[e[n]])};Mn.supportsDescriptors=!!jn;var An,Pn=Mn,Nn=w.getOwnPropertyDescriptor?function(){return w.getOwnPropertyDescriptor(arguments,"callee").get}():function(){throw new g},En="function"==typeof Mt&&"symbol"==typeof Nt,Bn=w.getPrototypeOf||function(t){return t.__proto__},In=An,Fn=An,Dn=An,$n=void 0===j?An:Bn(j),Un={"$ %Array%":Array,"$ %ArrayBuffer%":"undefined"==typeof ArrayBuffer?An:ArrayBuffer,"$ %ArrayBufferPrototype%":"undefined"==typeof ArrayBuffer?An:ArrayBuffer.prototype,"$ %ArrayIteratorPrototype%":En?Bn([][Nt]()):An,"$ %ArrayPrototype%":Array.prototype,"$ %ArrayProto_entries%":Array.prototype.entries,"$ %ArrayProto_forEach%":Array.prototype.forEach,"$ %ArrayProto_keys%":Array.prototype.keys,"$ %ArrayProto_values%":Array.prototype.values,"$ %AsyncFromSyncIteratorPrototype%":An,"$ %AsyncFunction%":Fn,"$ %AsyncFunctionPrototype%":An,"$ %AsyncGenerator%":An,"$ %AsyncGeneratorFunction%":Dn,"$ %AsyncGeneratorPrototype%":An,"$ %AsyncIteratorPrototype%":An,"$ %Atomics%":"undefined"==typeof Atomics?An:Atomics,"$ %Boolean%":Boolean,"$ %BooleanPrototype%":Boolean.prototype,"$ %DataView%":"undefined"==typeof DataView?An:DataView,"$ %DataViewPrototype%":"undefined"==typeof DataView?An:DataView.prototype,"$ %Date%":Date,"$ %DatePrototype%":Date.prototype,"$ %decodeURI%":decodeURI,"$ %decodeURIComponent%":decodeURIComponent,"$ %encodeURI%":encodeURI,"$ %encodeURIComponent%":encodeURIComponent,"$ %Error%":m,"$ %ErrorPrototype%":m.prototype,"$ %eval%":eval,"$ %EvalError%":EvalError,"$ %EvalErrorPrototype%":EvalError.prototype,"$ %Float32Array%":"undefined"==typeof Float32Array?An:Float32Array,"$ %Float32ArrayPrototype%":"undefined"==typeof Float32Array?An:Float32Array.prototype,"$ %Float64Array%":"undefined"==typeof Float64Array?An:Float64Array,"$ %Float64ArrayPrototype%":"undefined"==typeof Float64Array?An:Float64Array.prototype,"$ %Function%":Function,"$ %FunctionPrototype%":Function.prototype,"$ %Generator%":An,"$ %GeneratorFunction%":In,"$ %GeneratorPrototype%":An,"$ %Int8Array%":"undefined"==typeof Int8Array?An:Int8Array,"$ %Int8ArrayPrototype%":"undefined"==typeof Int8Array?An:Int8Array.prototype,"$ %Int16Array%":"undefined"==typeof Int16Array?An:Int16Array,"$ %Int16ArrayPrototype%":"undefined"==typeof Int16Array?An:Int8Array.prototype,"$ %Int32Array%":"undefined"==typeof Int32Array?An:Int32Array,"$ %Int32ArrayPrototype%":"undefined"==typeof Int32Array?An:Int32Array.prototype,"$ %isFinite%":isFinite,"$ %isNaN%":S,"$ %IteratorPrototype%":En?Bn(Bn([][Nt]())):An,"$ %JSON%":JSON,"$ %JSONParse%":JSON.parse,"$ %Map%":"undefined"==typeof Map?An:Map,"$ %MapIteratorPrototype%":"undefined"!=typeof Map&&En?Bn((new Map)[Nt]()):An,"$ %MapPrototype%":"undefined"==typeof Map?An:Map.prototype,"$ %Math%":_,"$ %Number%":Number,"$ %NumberPrototype%":Number.prototype,"$ %Object%":w,"$ %ObjectPrototype%":w.prototype,"$ %ObjProto_toString%":w.prototype.toString,"$ %ObjProto_valueOf%":w.prototype.valueOf,"$ %parseFloat%":C,"$ %parseInt%":x,"$ %Promise%":"undefined"==typeof Promise?An:Promise,"$ %PromisePrototype%":"undefined"==typeof Promise?An:Promise.prototype,"$ %PromiseProto_then%":"undefined"==typeof Promise?An:Promise.prototype.then,"$ %Promise_all%":"undefined"==typeof Promise?An:Promise.all,"$ %Promise_reject%":"undefined"==typeof Promise?An:Promise.reject,"$ %Promise_resolve%":"undefined"==typeof Promise?An:Promise.resolve,"$ %Proxy%":"undefined"==typeof Proxy?An:Proxy,"$ %RangeError%":RangeError,"$ %RangeErrorPrototype%":RangeError.prototype,"$ %ReferenceError%":ReferenceError,"$ %ReferenceErrorPrototype%":ReferenceError.prototype,"$ %Reflect%":"undefined"==typeof Reflect?An:Reflect,"$ %RegExp%":RegExp,"$ %RegExpPrototype%":RegExp.prototype,"$ %Set%":"undefined"==typeof Set?An:Set,"$ %SetIteratorPrototype%":"undefined"!=typeof Set&&En?Bn((new Set)[Nt]()):An,"$ %SetPrototype%":"undefined"==typeof Set?An:Set.prototype,"$ %SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?An:SharedArrayBuffer,"$ %SharedArrayBufferPrototype%":"undefined"==typeof SharedArrayBuffer?An:SharedArrayBuffer.prototype,"$ %String%":String,"$ %StringIteratorPrototype%":En?Bn(""[Nt]()):An,"$ %StringPrototype%":String.prototype,"$ %Symbol%":En?Mt:An,"$ %SymbolPrototype%":En?Mt.prototype:An,"$ %SyntaxError%":k,"$ %SyntaxErrorPrototype%":k.prototype,"$ %ThrowTypeError%":Nn,"$ %TypedArray%":$n,"$ %TypedArrayPrototype%":$n?$n.prototype:An,"$ %TypeError%":g,"$ %TypeErrorPrototype%":g.prototype,"$ %Uint8Array%":void 0===j?An:j,"$ %Uint8ArrayPrototype%":void 0===j?An:j.prototype,"$ %Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?An:Uint8ClampedArray,"$ %Uint8ClampedArrayPrototype%":"undefined"==typeof Uint8ClampedArray?An:Uint8ClampedArray.prototype,"$ %Uint16Array%":"undefined"==typeof Uint16Array?An:Uint16Array,"$ %Uint16ArrayPrototype%":"undefined"==typeof Uint16Array?An:Uint16Array.prototype,"$ %Uint32Array%":"undefined"==typeof Uint32Array?An:Uint32Array,"$ %Uint32ArrayPrototype%":"undefined"==typeof Uint32Array?An:Uint32Array.prototype,"$ %URIError%":URIError,"$ %URIErrorPrototype%":URIError.prototype,"$ %WeakMap%":"undefined"==typeof WeakMap?An:WeakMap,"$ %WeakMapPrototype%":"undefined"==typeof WeakMap?An:WeakMap.prototype,"$ %WeakSet%":"undefined"==typeof WeakSet?An:WeakSet,"$ %WeakSetPrototype%":"undefined"==typeof WeakSet?An:WeakSet.prototype},Rn=function(t,i){if(arguments.length>1&&"boolean"!=typeof i)throw new g('"allowMissing" argument must be a boolean');var s="$ "+t;if(!(s in Un))throw new k("intrinsic "+t+" does not exist!");if(void 0===Un[s]&&!i)throw new g("intrinsic "+t+" exists, but is not available. Please file an issue!");return Un[s]},On=dn.call(Function.call,w.prototype.hasOwnProperty),Vn=Rn,Ln=Vn("%TypeError%"),Hn=Vn("%SyntaxError%"),qn=On,zn={"Property Descriptor":function(t,i){if("Object"!==t.Type(i))return!1;var s={"[[Configurable]]":!0,"[[Enumerable]]":!0,"[[Get]]":!0,"[[Set]]":!0,"[[Value]]":!0,"[[Writable]]":!0};for(var e in i)if(qn(i,e)&&!s[e])return!1;var n=qn(i,"[[Value]]"),r=qn(i,"[[Get]]")||qn(i,"[[Set]]");if(n&&r)throw new Ln("Property Descriptors may not be both accessor and data descriptors");return!0}},Wn=Number.isNaN||function(t){return t!=t},Gn=Number.isNaN||function(t){return t!=t},Xn=Number.isFinite||function(t){return"number"==typeof t&&!Gn(t)&&t!==1/0&&t!==-1/0},Jn=Function.prototype.toString,Qn=/^\s*class\b/,Yn=function(t){try{var i=Jn.call(t);return Qn.test(i)}catch(t){return!1}},Kn=w.prototype.toString,Zn="function"==typeof Mt&&"symbol"==typeof Mt.toStringTag,tr=function(t){if(!t)return!1;if("function"!=typeof t&&"object"!=typeof t)return!1;if("function"==typeof t&&!t.prototype)return!0;if(Zn)return function(t){try{return!Yn(t)&&(Jn.call(t),!0)}catch(t){return!1}}(t);if(Yn(t))return!1;var i=Kn.call(t);return"[object Function]"===i||"[object GeneratorFunction]"===i},ir=w.prototype.toString,sr=function(t){return null===t||"function"!=typeof t&&"object"!=typeof t},er=tr,nr=function(t){var i;if((i=arguments.length>1?arguments[1]:"[object Date]"===ir.call(t)?String:Number)===String||i===Number){var s,e,n=i===String?["toString","valueOf"]:["valueOf","toString"];for(e=0;e<n.length;++e)if(er(t[n[e]])&&(s=t[n[e]](),sr(s)))return s;throw new g("No default value")}throw new g("invalid [[DefaultValue]] hint supplied")},rr=Rn,hr=rr("%Object%"),or=rr("%TypeError%"),ar=rr("%String%"),ur=function(t,i,s,e){var n=zn[i];if("function"!=typeof n)throw new Hn("unknown record type: "+i);if(!n(t,e))throw new Ln(s+" must be a "+i);console.log(n(t,e),e)},cr=Wn,lr=Xn,dr=function(t){return t>=0?1:-1},fr=function(t,i){var s=t%i;return _.floor(s>=0?s:s+i)},vr=On,pr={ToPrimitive:function(t){return sr(t)?t:arguments.length>1?nr(t,arguments[1]):nr(t)},ToBoolean:function(t){return!!t},ToNumber:function(t){return+t},ToInteger:function(t){var i=this.ToNumber(t);return cr(i)?0:0!==i&&lr(i)?dr(i)*_.floor(_.abs(i)):i},ToInt32:function(t){return this.ToNumber(t)|0},ToUint32:function(t){return this.ToNumber(t)>>>0},ToUint16:function(t){var i=this.ToNumber(t);if(cr(i)||0===i||!lr(i))return 0;var s=dr(i)*_.floor(_.abs(i));return fr(s,65536)},ToString:function(t){return ar(t)},ToObject:function(t){return this.CheckObjectCoercible(t),hr(t)},CheckObjectCoercible:function(t,i){if(null==t)throw new or(i||"Cannot call method on "+t);return t},IsCallable:tr,SameValue:function(t,i){return t===i?0!==t||1/t==1/i:cr(t)&&cr(i)},Type:function(t){return null===t?"Null":void 0===t?"Undefined":"function"==typeof t||"object"==typeof t?"Object":"number"==typeof t?"Number":"boolean"==typeof t?"Boolean":"string"==typeof t?"String":void 0},IsPropertyDescriptor:function(t){if("Object"!==this.Type(t))return!1;var i={"[[Configurable]]":!0,"[[Enumerable]]":!0,"[[Get]]":!0,"[[Set]]":!0,"[[Value]]":!0,"[[Writable]]":!0};for(var s in t)if(vr(t,s)&&!i[s])return!1;var e=vr(t,"[[Value]]"),n=vr(t,"[[Get]]")||vr(t,"[[Set]]");if(e&&n)throw new or("Property Descriptors may not be both accessor and data descriptors");return!0},IsAccessorDescriptor:function(t){return void 0!==t&&(ur(this,"Property Descriptor","Desc",t),!(!vr(t,"[[Get]]")&&!vr(t,"[[Set]]")))},IsDataDescriptor:function(t){return void 0!==t&&(ur(this,"Property Descriptor","Desc",t),!(!vr(t,"[[Value]]")&&!vr(t,"[[Writable]]")))},IsGenericDescriptor:function(t){return void 0!==t&&(ur(this,"Property Descriptor","Desc",t),!this.IsAccessorDescriptor(t)&&!this.IsDataDescriptor(t))},FromPropertyDescriptor:function(t){if(void 0===t)return t;if(ur(this,"Property Descriptor","Desc",t),this.IsDataDescriptor(t))return{value:t["[[Value]]"],writable:!!t["[[Writable]]"],enumerable:!!t["[[Enumerable]]"],configurable:!!t["[[Configurable]]"]};if(this.IsAccessorDescriptor(t))return{get:t["[[Get]]"],set:t["[[Set]]"],enumerable:!!t["[[Enumerable]]"],configurable:!!t["[[Configurable]]"]};throw new or("FromPropertyDescriptor must be called with a fully populated Property Descriptor")},ToPropertyDescriptor:function(t){if("Object"!==this.Type(t))throw new or("ToPropertyDescriptor requires an object");var i={};if(vr(t,"enumerable")&&(i["[[Enumerable]]"]=this.ToBoolean(t.enumerable)),vr(t,"configurable")&&(i["[[Configurable]]"]=this.ToBoolean(t.configurable)),vr(t,"value")&&(i["[[Value]]"]=t.value),vr(t,"writable")&&(i["[[Writable]]"]=this.ToBoolean(t.writable)),vr(t,"get")){var s=t.get;if(void 0!==s&&!this.IsCallable(s))throw new g("getter must be a function");i["[[Get]]"]=s}if(vr(t,"set")){var e=t.set;if(void 0!==e&&!this.IsCallable(e))throw new or("setter must be a function");i["[[Set]]"]=e}if((vr(i,"[[Get]]")||vr(i,"[[Set]]"))&&(vr(i,"[[Value]]")||vr(i,"[[Writable]]")))throw new or("Invalid property descriptor. Cannot both specify accessors and a value or writable attribute");return i}},mr=dn.call(Function.call,String.prototype.replace),gr=/^[\x09\x0A\x0B\x0C\x0D\x20\xA0\u1680\u180E\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF]+/,yr=/[\x09\x0A\x0B\x0C\x0D\x20\xA0\u1680\u180E\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF]+$/,br=function(){var t=pr.ToString(pr.CheckObjectCoercible(this));return mr(mr(t,gr,""),yr,"")},kr=br,wr=function(){return String.prototype.trim&&"\u200b"==="\u200b".trim()?String.prototype.trim:kr},_r=Pn,xr=wr,Cr=Pn,Sr=br,jr=wr,Tr=function(){var t=xr();return _r(String.prototype,{trim:t},{trim:function(){return String.prototype.trim!==t}}),t},Mr=dn.call(Function.call,jr());Cr(Mr,{getPolyfill:jr,implementation:Sr,shim:Tr});var Ar=Mr,Pr=tr,Nr=w.prototype.toString,Er=w.prototype.hasOwnProperty,Br=Ar,Ir=function(t,i,s){if(!Pr(i))throw new g("iterator must be a function");var e;arguments.length>=3&&(e=s),"[object Array]"===Nr.call(t)?function(t,i,s){for(var e=0,n=t.length;e<n;e++)Er.call(t,e)&&(null==s?i(t[e],e,t):i.call(s,t[e],e,t))}(t,i,e):"string"==typeof t?function(t,i,s){for(var e=0,n=t.length;e<n;e++)null==s?i(t.charAt(e),e,t):i.call(s,t.charAt(e),e,t)}(t,i,e):function(t,i,s){for(var e in t)Er.call(t,e)&&(null==s?i(t[e],e,t):i.call(s,t[e],e,t))}(t,i,e)},Fr=function(){for(var t={},i=0;i<arguments.length;i++){var s=arguments[i];for(var e in s)Dr.call(s,e)&&(t[e]=s[e])}return t},Dr=w.prototype.hasOwnProperty;var $r=Ge.exports,Ur=Xe,Rr=function(t){if(!t)return{};var i={};return Ir(Br(t).split("\n"),function(t){var s=t.indexOf(":"),e=Br(t.slice(0,s)).toLowerCase(),n=Br(t.slice(s+1));void 0===i[e]?i[e]=n:!function(t){return"[object Array]"===w.prototype.toString.call(t)}(i[e])?i[e]=[i[e],n]:i[e].push(n)}),i},Or=Fr,Vr=Hr;function Lr(t,i,s){var e=t;return Ur(i)?(s=i,"string"==typeof t&&(e={uri:t})):e=Or(i,{uri:t}),e.callback=s,e}function Hr(t,i,s){return qr(i=Lr(t,i,s))}function qr(t){if(void 0===t.callback)throw new m("callback argument missing");var i=!1,s=function(s,e,n){i||(i=!0,t.callback(s,e,n))};function e(){var t=void 0;if(t=l.response?l.response:l.responseText||function(t){if("document"===t.responseType)return t.responseXML;var i=204===t.status&&t.responseXML&&"parsererror"===t.responseXML.documentElement.nodeName;if(""===t.responseType&&!i)return t.responseXML;return null}(l),b)try{t=JSON.parse(t)}catch(t){}return t}var n={body:void 0,headers:{},statusCode:0,method:v,url:f,rawRequest:l};function r(t){return c(d),t instanceof m||(t=new m(""+(t||"Unknown XMLHttpRequest Error"))),t.statusCode=0,s(t,n)}function h(){if(!a){var i;c(d),i=t.useXDR&&void 0===l.status?200:1223===l.status?204:l.status;var r=n,h=null;return 0!==i?(r={body:e(),statusCode:i,method:v,headers:{},url:f,rawRequest:l},l.getAllResponseHeaders&&(r.headers=Rr(l.getAllResponseHeaders()))):h=new m("Internal XMLHttpRequest Error"),s(h,r,r.body)}}var o,a,l=t.xhr||null;l||(l=t.cors||t.useXDR?new Hr.XDomainRequest:new Hr.XMLHttpRequest);var d,f=l.url=t.uri||t.url,v=l.method=t.method||"GET",p=t.body||t.data||null,g=l.headers=t.headers||{},y=!!t.sync,b=!1;if("json"in t&&(b=!0,g.accept||g.Accept||(g.Accept="application/json"),"GET"!==v&&"HEAD"!==v&&(g["content-type"]||g["Content-Type"]||(g["Content-Type"]="application/json"),p=JSON.stringify(t.json))),l.onreadystatechange=function(){4===l.readyState&&h()},l.onlo