theoplayer
Version:
THEOplayer is the universal video player solution, enabling you to quickly deliver cross-platform content playback.
40 lines (32 loc) • 264 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: 9.10.1
Created: 2025-08-13T16:11:29.716Z
*/
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 R,F as U,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 Rt,e as Ut,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,i as Qt,ia as Yt,j as Kt,ja as Zt,k as ti,ka as ii,l as si,la as ei,m as ni,ma as ri,n as hi,na as oi,o as ai,oa as ui,p as ci,pa as li,q as di,qa as fi,r as vi,ra as pi,s as mi,sa as gi,t as yi,ta as bi,u as ki,ua as wi,v as _i,va as xi,w as Ci,wa as Si,x as ji,xa as Ti,y as Mi,ya as Ai,z as Pi,za as Ni}from"./THEOplayer.common.esm.js";f(),f(),f(),f();var Ei=[];function Bi(t){Ei.push(t)}var Ii=[];function Fi(t){Ii.push(t)}f(),f(),f(),f();var b=void 0!==s?s:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},Di=void 0!==h?h:{createElement:function(){}};function $i(t,i){return i||(i=t.slice(0)),t.raw=i,t}var Ri=1;function Ui(){return Ri++}var Oi,Vi=w.prototype.toString,Li=function(t){return zi(t)?w.keys(t):[]};function Hi(t,i){Li(t).forEach(function(s){return i(t[s],s)})}function qi(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&&Hi(i,function(i,s){t[s]=i})}),t)}function zi(t){return!!t&&"object"==typeof t}function Wi(t){return zi(t)&&"[object Object]"===Vi.call(t)&&t.constructor===w}var Gi=function(t,i,s){void 0===s&&(s=!!Ws&&Ws<11),"log"!==t&&i.unshift(t.toUpperCase()+":"),Oi.history.push(i),i.unshift("VIDEOJS:");var e=b.console&&b.console[t];e&&(s&&(i=i.map(function(t){if(zi(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))};(Oi=function(){for(var t=arguments.length,i=new Array(t),s=0;s<t;s++)i[s]=arguments[s];Gi("log",i)}).history=[],Oi.error=function(){for(var t=arguments.length,i=new Array(t),s=0;s<t;s++)i[s]=arguments[s];return Gi("error",i)},Oi.warn=function(){for(var t=arguments.length,i=new Array(t),s=0;s<t;s++)i[s]=arguments[s];return Gi("warn",i)};var Xi=Oi,Ji="undefined"!=typeof globalThis?globalThis:void 0!==s?s:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function Qi(t){return t.replace(/\n\r?\s*/g,"")}var Yi,Ki=function(t){for(var i="",s=0;s<arguments.length;s++)i+=Qi(t[s])+(arguments[s+1]||"");return i};function Zi(t){return"string"==typeof t&&/\S/.test(t)}function ts(t){if(/\s/.test(t))throw new m("class has illegal whitespace characters")}function is(){return Di===b.document&&void 0!==Di.createElement}function ss(t){return zi(t)&&1===t.nodeType}function es(t){return function(i,s){if(!Zi(i))return Di[t](null);Zi(s)&&(s=Di.querySelector(s));var e=ss(s)?s:Di;return e[t]&&e[t](i)}}function ns(t,i,s,e){void 0===t&&(t="div"),void 0===i&&(i={}),void 0===s&&(s={});var n=Di.createElement(t);return w.getOwnPropertyNames(i).forEach(function(t){var s=i[t];-1!==t.indexOf("aria-")||"role"===t||"type"===t?(Xi.warn(Ki(Yi||(Yi=$i(["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?rs(n,s):n[t]=s}),w.getOwnPropertyNames(s).forEach(function(t){n.setAttribute(t,s[t])}),e&&Cs(n,e),n}function rs(t,i){return void 0===t.textContent?t.innerText=i:t.textContent=i,t}function hs(t,i){i.firstChild?i.insertBefore(t,i.firstChild):i.appendChild(t)}var os={},as="vdata"+(new Date).getTime();function us(t){var i=t[as];return i||(i=t[as]=Ui()),os[i]||(os[i]={}),os[i]}function cs(t){var i=t[as];return!!i&&!!w.getOwnPropertyNames(os[i]).length}function ls(t){var i=t[as];if(i){delete os[i];try{delete t[as]}catch(i){t.removeAttribute?t.removeAttribute(as):t[as]=null}}}function ds(t,i){return ts(i),t.classList?t.classList.contains(i):function(t){return new RegExp("(^|\\s)"+t+"($|\\s)")}(i).test(t.className)}function fs(t,i){return t.classList?t.classList.add(i):ds(t,i)||(t.className=(t.className+" "+i).trim()),t}function vs(t,i){return t.classList?t.classList.remove(i):(ts(i),t.className=t.className.split(/\s+/).filter(function(t){return t!==i}).join(" ")),t}function ps(t,i,s){var e=ds(t,i);if("function"==typeof s&&(s=s(t,i)),"boolean"!=typeof s&&(s=!e),s!==e)return s?fs(t,i):vs(t,i),t}function ms(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 gs(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 ys(t,i,s){t.setAttribute(i,s)}function bs(t,i){t.removeAttribute(i)}function ks(t){var i;if(t.getBoundingClientRect&&t.parentNode&&(i=t.getBoundingClientRect()),!i)return{left:0,top:0};var s=Di.documentElement,e=Di.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 ws(t,i){var s={},e=ks(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 _s(t){return zi(t)&&3===t.nodeType}function xs(t){for(;t.firstChild;)t.removeChild(t.firstChild);return t}function Cs(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()),ss(t)||_s(t)?t:"string"==typeof t&&/\S/.test(t)?Di.createTextNode(t):void 0}).filter(function(t){return t})}(i).forEach(function(i){return t.appendChild(i)}),t}function Ss(t,i){return Cs(xs(t),i)}var js,Ts=es("querySelector"),Ms=es("querySelectorAll"),As=b.navigator&&b.navigator.userAgent||"",Ps=/AppleWebKit\/([\d.]+)/i.exec(As),Ns=Ps?C(Ps.pop()):null,Es=/iPad/i.test(As),Bs=/iPhone/i.test(As)&&!Es,Is=/iPod/i.test(As),Fs=Bs||Es||Is,Ds=(js=As.match(/OS (\d+)_/i))&&js[1]?js[1]:null,$s=/Android/i.test(As),Rs=function(){var t=As.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}(),Us=$s&&/webkit/i.test(As)&&Rs<2.3,Os=$s&&Rs<5&&Ns<537,Vs=/Firefox/i.test(As),Ls=/Edge/i.test(As),Hs=!Ls&&/Chrome/i.test(As),qs=function(){var t=As.match(/Chrome\/(\d+)/);return t&&t[1]?C(t[1]):null}(),zs=/MSIE\s8\.0/.test(As),Ws=function(){var t=/MSIE\s(\d+)\.\d/.exec(As),i=t&&C(t[1]);return!i&&/Trident\/7.0/i.test(As)&&/rv:11.0/.test(As)&&(i=11),i}(),Gs=/Safari/i.test(As)&&!Hs&&!$s&&!Ls,Xs=Gs||Fs,Js=is()&&("ontouchstart"in b||b.DocumentTouch&&b.document instanceof b.DocumentTouch),Qs=is()&&"backgroundSize"in b.document.createElement("video").style,Ys=w.freeze({__proto__:null,IS_IPAD:Es,IS_IPHONE:Bs,IS_IPOD:Is,IS_IOS:Fs,IOS_VERSION:Ds,IS_ANDROID:$s,ANDROID_VERSION:Rs,IS_OLD_ANDROID:Us,IS_NATIVE_ANDROID:Os,IS_FIREFOX:Vs,IS_EDGE:Ls,IS_CHROME:Hs,CHROME_VERSION:qs,IS_IE8:zs,IE_VERSION:Ws,IS_SAFARI:Gs,IS_ANY_SAFARI:Xs,TOUCH_ENABLED:Js,BACKGROUND_SIZE_SUPPORTED:Qs});function Ks(t,i){var s=us(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&&ls(t)}function Zs(t,i,s,e){s.forEach(function(s){t(i,s,e)})}function te(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||Di),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=Di.documentElement,h=Di.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 ie=!1;!function(){try{var t=w.defineProperty({},"passive",{get:function(){ie=!0}});b.addEventListener("test",null,t)}catch(t){}}();var se=["touchstart","touchmove"];function ee(t,i,s){if(Array.isArray(i))return Zs(ee,t,i,s);var e=us(t);if(e.handlers||(e.handlers={}),e.handlers[i]||(e.handlers[i]=[]),s.guid||(s.guid=Ui()),e.handlers[i].push(s),e.dispatcher||(e.disabled=!1,e.dispatcher=function(i,s){if(!e.disabled){i=te(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){Xi.error(t)}}}),1===e.handlers[i].length)if(t.addEventListener){var n=!1;ie&&se.indexOf(i)>-1&&(n={passive:!0}),t.addEventListener(i,e.dispatcher,n)}else t.attachEvent&&t.attachEvent("on"+i,e.dispatcher)}function ne(t,i,s){if(cs(t)){var e=us(t);if(e.handlers){if(Array.isArray(i))return Zs(ne,t,i,s);var n=function(i){e.handlers[i]=[],Ks(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);Ks(t,i)}else n(i)}else for(var o in e.handlers)n(o)}}}function re(t,i,s){var e=cs(t)?us(t):{},n=t.parentNode||t.ownerDocument;if("string"==typeof i&&(i={type:i,target:t}),i=te(i),e.dispatcher&&e.dispatcher.call(t,i,s),n&&!i.isPropagationStopped()&&!0===i.bubbles)re.call(null,n,i,s);else if(!n&&!i.defaultPrevented){var r=us(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 he(t,i,s){if(Array.isArray(i))return Zs(he,t,i,s);var e=function e(){ne(t,i,e),s.apply(this,arguments)};e.guid=s.guid=s.guid||Ui(),ee(t,i,e)}var oe,ae=!1,ue=function(){if(is()){var t=Di.getElementsByTagName("video"),i=Di.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){ce(1);break}void 0===u.player&&null!==u.getAttribute("data-setup")&&oe(u)}else ae||ce(1)}};function ce(t,i){i&&(oe=i),b.setTimeout(ue,t)}is()&&"complete"===Di.readyState?ae=!0:he(b,"load",function(){ae=!0});var le=function(t){var i=Di.createElement("style");return i.className=t,i},de=function(t,i){t.styleSheet?t.styleSheet.cssText=i:t.textContent=i},n=function(t,i,s){i.guid||(i.guid=Ui());var e=function(){return i.apply(t,arguments)};return e.guid=s?s+"_"+i.guid:i.guid,e};function fe(t){return"string"!=typeof t?t:t.charAt(0).toUpperCase()+t.slice(1)}function ve(){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&&Hi(i,function(i,s){Wi(i)?(Wi(t[s])||(t[s]={}),t[s]=ve(t[s],i)):t[s]=i})}),t}var pe=function(){function t(t,i,s){if(!t&&this.play?this.t=t=this:this.t=t,this.h=ve({},this.h),i=this.h=ve(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"+Ui()}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),ls(this.v),this.v=null},i.player=function(){return this.t},i.options=function(t){return Xi.warn("this.options() has been deprecated and will be moved to the constructor in 6.0"),t?(this.h=ve(this.h,t),this.h):this.h},i.el=function(){return this.v},i.createEl=function(t,i,s){return ns(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=fe(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=fe(i),s||(s={}),!0===s&&(Xi.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&&fe(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||fe(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))ee(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?(ee(r,h,o),ee(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))ne(this.v,t,i);else{var e=t,r=i,h=n(this,s);this.off("dispose",h),t.nodeName?(ne(e,r,h),ne(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))he(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 re(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 Ts(t,i||this.contentEl())},i.$$=function(t,i){return Ms(t,i||this.contentEl())},i.hasClass=function(t){return ds(this.v,t)},i.addClass=function(t){return fs(this.v,t),this},i.removeClass=function(t){return vs(this.v,t),this},i.toggleClass=function(t,i){return ps(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 ys(this.v,t,i),this},i.removeAttribute=function(t){return bs(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"+fe(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"+fe(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=fe(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=fe(i),t.M&&t.M[i]?t.M[i]:b&&b.videojs&&b.videojs[i]?(Xi.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||{},Xi.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}();pe.registerComponent("Component",pe);var me=function(){};function ge(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function ye(t,i){return(ye=w.setPrototypeOf?w.setPrototypeOf.bind():function(t,i){return t.__proto__=i,t})(t,i)}function be(t,i){t.prototype=w.create(i.prototype),t.prototype.constructor=t,ye(t,i)}function ke(t,i,s,e){return void 0===e&&(Xi.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 we(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:ke.bind(null,"start",0,t),end:ke.bind(null,"end",1,t)}}function _e(t,i){return Array.isArray(t)?we(t):void 0===t||void 0===i?we():we([[t,i]])}function xe(t,i){var s,e,n=0;if(!i)return 0;t&&t.length||(t=_e(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}me.prototype.A={},me.prototype.on=function(t,i){var s=this.addEventListener;this.addEventListener=function(){},ee(this,t,i),this.addEventListener=s},me.prototype.addEventListener=me.prototype.on,me.prototype.off=function(t,i){ne(this,t,i)},me.prototype.removeEventListener=me.prototype.off,me.prototype.one=function(t,i){var s=this.addEventListener;this.addEventListener=function(){},he(this,t,i),this.addEventListener=s},me.prototype.trigger=function(t){var i=t.type||t;"string"==typeof t&&(t={type:i}),t=te(t),this.A[i]&&this["on"+i]&&this["on"+i](t),re(this,t)},me.prototype.dispatchEvent=me.prototype.trigger;var Ce,Se,je,Te,Me={prefixed:!0},Ae=[["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"]],Pe=Ae[0];for(Se=0;Se<Ae.length;Se++)if(Ae[Se][1]in Di){Ce=Ae[Se];break}if(Ce){for(je=0;je<Ce.length;je++)Me[Pe[je]]=Ce[je];Me.prefixed=Ce[0]!==Pe[0]}function Ne(t){if(t instanceof Ne)return t;"number"==typeof t?this.code=t:"string"==typeof t?this.message=t:zi(t)&&("number"==typeof t.code&&(this.code=t.code),qi(this,t)),this.message||(this.message=Ne.defaultMessages[this.code]||"")}for(Ne.prototype.code=0,Ne.prototype.message="",Ne.prototype.status=null,Ne.errorTypes=["MEDIA_ERR_CUSTOM","MEDIA_ERR_ABORTED","MEDIA_ERR_NETWORK","MEDIA_ERR_DECODE","MEDIA_ERR_SRC_NOT_SUPPORTED","MEDIA_ERR_ENCRYPTED"],Ne.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."},Te=0;Te<Ne.errorTypes.length;Te++)Ne[Ne.errorTypes[Te]]=Te,Ne.prototype[Ne.errorTypes[Te]]=Te;var Ee=function(t,i){var s,e=null;try{s=JSON.parse(t,i)}catch(t){e=t}return[e,s]};var Be=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}})})},Ie=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=Be(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(Be))},Fe=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()},De="vjs-modal-dialog",$e=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=ns("div",{className:De+"-content"},{role:"document"}),e.I=ns("p",{className:De+"-description vjs-offscreen",id:e.el().getAttribute("aria-describedby")}),rs(e.I,e.description()),e.v.appendChild(e.I),e.v.appendChild(e.S),e.on(i,"languagechange",e.handleLanguagechange),e}be(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 De+" 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.R=!!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.R},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(),Ss(i,t),this.trigger("modalfill"),e?s.insertBefore(i,e):s.appendChild(i),this},s.empty=function(){return this.trigger("beforemodalempty"),xs(this.contentEl()),this.trigger("modalempty"),this},s.content=function(t){return void 0!==t&&(this.U=t),this.U},s.handleLanguagechange=function(){this.v.setAttribute("aria-label",this.label()),rs(this.I,this.description()),this.opened()?this.fill():(this.N||this.B)&&(this.N=!1,this.B=!1,this.empty())},i}(pe);$e.prototype.h={pauseOnOpen:!0,temporary:!0},pe.registerComponent("ModalDialog",$e);var Re=function(){function t(i){var s=this;if(zs)for(var e in s=Di.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}}),zs)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}(),Ue={alternative:"alternative",captions:"captions",main:"main",sign:"sign",subtitles:"subtitles",commentary:"commentary"},Oe={alternative:"alternative",descriptions:"descriptions",main:"main","main-desc":"main-desc",translation:"translation",commentary:"commentary"},Ve={subtitles:"subtitles",captions:"captions",descriptions:"descriptions",chapters:"chapters",metadata:"metadata"},Le={disabled:"disabled",hidden:"hidden",showing:"showing"},He=function(t){function i(s){var e;void 0===s&&(s={});var n=ge(e=t.call(this)||this);if(zs)for(var r in n=Di.createElement("custom"),i.prototype)"constructor"!==r&&(n[r]=i.prototype[r]);var h={id:s.id||["vjs_track",Ui()].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||ge(e)}return be(i,t),i}(me),qe=function(t){var i=["protocol","hostname","port","pathname","search","hash","host"],s=Di.createElement("a");s.href=t;var e,n=""===s.host&&"file:"!==s.protocol;n&&((e=Di.createElement("div")).innerHTML='<a href="'+t+'"></a>',s=e.firstChild,e.setAttribute("style","display:none; position:absolute;"),Di.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&&Di.body.removeChild(e),r},ze=function(t){var i=b.location,s=qe(t);return(":"===s.protocol?i.protocol:s.protocol)+s.host!==i.protocol+i.host},We={exports:{}};void 0!==s?We.exports=s:void 0!==Ji?We.exports=Ji:"undefined"!=typeof self?We.exports=self:We.exports={};var Ge=function(t){var i=Xe.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)},Xe=w.prototype.toString;var Je,Qe,Ye,Ke,Ze,tn,sn,en,nn,rn,hn,on,an=Array.prototype.slice,un=w.prototype.toString,cn=function(t){var i=this;if("function"!=typeof i||"[object Function]"!==un.call(i))throw new g("Function.prototype.bind called on incompatible "+i);for(var s,e=an.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(an.call(arguments)));return w(n)===n?n:this}return i.apply(t,e.concat(an.call(arguments)))}),i.prototype){var o=function(){};o.prototype=i.prototype,s.prototype=new o,o.prototype=null}return s},ln=Function.prototype.bind||cn,dn=w.prototype.toString,fn=function(t){var i=dn.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]"===dn.call(t.callee)),s};w.keys||(Qe=w.prototype.hasOwnProperty,Ye=w.prototype.toString,Ke=fn,Ze=w.prototype.propertyIsEnumerable,tn=!Ze.call({toString:null},"toString"),sn=Ze.call(function(){},"prototype"),en=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],nn=function(t){var i=t.constructor;return i&&i.prototype===t},rn={$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},hn=function(){if(void 0===s)return!1;for(var t in s)try{if(!rn["$"+t]&&Qe.call(s,t)&&null!==s[t]&&"object"==typeof s[t])try{nn(s[t])}catch(t){return!0}}catch(t){return!0}return!1}(),on=function(t){if(void 0===s||!hn)return nn(t);try{return nn(t)}catch(t){return!1}},Je=function(t){var i=null!==t&&"object"==typeof t,s="[object Function]"===Ye.call(t),e=Ke(t),n=i&&"[object String]"===Ye.call(t),r=[];if(!i&&!s&&!e)throw new g("Object.keys called on a non-object");var h=sn&&s;if(n&&t.length>0&&!Qe.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||!Qe.call(t,u)||r.push(String(u));if(tn)for(var c=on(t),l=0;l<en.length;++l)c&&"constructor"===en[l]||!Qe.call(t,en[l])||r.push(en[l]);return r});var vn=Je,pn=Array.prototype.slice,mn=fn,gn=w.keys,yn=gn?function(t){return gn(t)}:vn,bn=w.keys;yn.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 mn(t)?bn(pn.call(t)):bn(t)})}else w.keys=yn;return w.keys||yn};var kn=yn,wn="function"==typeof Mt&&"symbol"==typeof Mt("foo"),_n=w.prototype.toString,xn=Array.prototype.concat,Cn=w.defineProperty,Sn=Cn&&function(){var t={};try{for(var i in Cn(t,"x",{enumerable:!1,value:t}),t)return!1;return t.x===t}catch(t){return!1}}(),jn=function(t,i,s,e){(!(i in t)||function(t){return"function"==typeof t&&"[object Function]"===_n.call(t)}(e)&&e())&&(Sn?Cn(t,i,{configurable:!0,enumerable:!1,value:s,writable:!0}):t[i]=s)},Tn=function(t,i){var s=arguments.length>2?arguments[2]:{},e=kn(i);wn&&(e=xn.call(e,w.getOwnPropertySymbols(i)));for(var n=0;n<e.length;n+=1)jn(t,e[n],i[e[n]],s[e[n]])};Tn.supportsDescriptors=!!Sn;var Mn,An=Tn,Pn=w.getOwnPropertyDescriptor?function(){return w.getOwnPropertyDescriptor(arguments,"callee").get}():function(){throw new g},Nn="function"==typeof Mt&&"symbol"==typeof Nt,En=w.getPrototypeOf||function(t){return t.__proto__},Bn=Mn,In=Mn,Fn=Mn,Dn=void 0===j?Mn:En(j),$n={"$ %Array%":Array,"$ %ArrayBuffer%":"undefined"==typeof ArrayBuffer?Mn:ArrayBuffer,"$ %ArrayBufferPrototype%":"undefined"==typeof ArrayBuffer?Mn:ArrayBuffer.prototype,"$ %ArrayIteratorPrototype%":Nn?En([][Nt]()):Mn,"$ %ArrayPrototype%":Array.prototype,"$ %ArrayProto_entries%":Array.prototype.entries,"$ %ArrayProto_forEach%":Array.prototype.forEach,"$ %ArrayProto_keys%":Array.prototype.keys,"$ %ArrayProto_values%":Array.prototype.values,"$ %AsyncFromSyncIteratorPrototype%":Mn,"$ %AsyncFunction%":In,"$ %AsyncFunctionPrototype%":Mn,"$ %AsyncGenerator%":Mn,"$ %AsyncGeneratorFunction%":Fn,"$ %AsyncGeneratorPrototype%":Mn,"$ %AsyncIteratorPrototype%":Mn,"$ %Atomics%":"undefined"==typeof Atomics?Mn:Atomics,"$ %Boolean%":Boolean,"$ %BooleanPrototype%":Boolean.prototype,"$ %DataView%":"undefined"==typeof DataView?Mn:DataView,"$ %DataViewPrototype%":"undefined"==typeof DataView?Mn: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?Mn:Float32Array,"$ %Float32ArrayPrototype%":"undefined"==typeof Float32Array?Mn:Float32Array.prototype,"$ %Float64Array%":"undefined"==typeof Float64Array?Mn:Float64Array,"$ %Float64ArrayPrototype%":"undefined"==typeof Float64Array?Mn:Float64Array.prototype,"$ %Function%":Function,"$ %FunctionPrototype%":Function.prototype,"$ %Generator%":Mn,"$ %GeneratorFunction%":Bn,"$ %GeneratorPrototype%":Mn,"$ %Int8Array%":"undefined"==typeof Int8Array?Mn:Int8Array,"$ %Int8ArrayPrototype%":"undefined"==typeof Int8Array?Mn:Int8Array.prototype,"$ %Int16Array%":"undefined"==typeof Int16Array?Mn:Int16Array,"$ %Int16ArrayPrototype%":"undefined"==typeof Int16Array?Mn:Int8Array.prototype,"$ %Int32Array%":"undefined"==typeof Int32Array?Mn:Int32Array,"$ %Int32ArrayPrototype%":"undefined"==typeof Int32Array?Mn:Int32Array.prototype,"$ %isFinite%":isFinite,"$ %isNaN%":S,"$ %IteratorPrototype%":Nn?En(En([][Nt]())):Mn,"$ %JSON%":JSON,"$ %JSONParse%":JSON.parse,"$ %Map%":"undefined"==typeof Map?Mn:Map,"$ %MapIteratorPrototype%":"undefined"!=typeof Map&&Nn?En((new Map)[Nt]()):Mn,"$ %MapPrototype%":"undefined"==typeof Map?Mn: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?Mn:Promise,"$ %PromisePrototype%":"undefined"==typeof Promise?Mn:Promise.prototype,"$ %PromiseProto_then%":"undefined"==typeof Promise?Mn:Promise.prototype.then,"$ %Promise_all%":"undefined"==typeof Promise?Mn:Promise.all,"$ %Promise_reject%":"undefined"==typeof Promise?Mn:Promise.reject,"$ %Promise_resolve%":"undefined"==typeof Promise?Mn:Promise.resolve,"$ %Proxy%":"undefined"==typeof Proxy?Mn:Proxy,"$ %RangeError%":RangeError,"$ %RangeErrorPrototype%":RangeError.prototype,"$ %ReferenceError%":ReferenceError,"$ %ReferenceErrorPrototype%":ReferenceError.prototype,"$ %Reflect%":"undefined"==typeof Reflect?Mn:Reflect,"$ %RegExp%":RegExp,"$ %RegExpPrototype%":RegExp.prototype,"$ %Set%":"undefined"==typeof Set?Mn:Set,"$ %SetIteratorPrototype%":"undefined"!=typeof Set&&Nn?En((new Set)[Nt]()):Mn,"$ %SetPrototype%":"undefined"==typeof Set?Mn:Set.prototype,"$ %SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?Mn:SharedArrayBuffer,"$ %SharedArrayBufferPrototype%":"undefined"==typeof SharedArrayBuffer?Mn:SharedArrayBuffer.prototype,"$ %String%":String,"$ %StringIteratorPrototype%":Nn?En(""[Nt]()):Mn,"$ %StringPrototype%":String.prototype,"$ %Symbol%":Nn?Mt:Mn,"$ %SymbolPrototype%":Nn?Mt.prototype:Mn,"$ %SyntaxError%":k,"$ %SyntaxErrorPrototype%":k.prototype,"$ %ThrowTypeError%":Pn,"$ %TypedArray%":Dn,"$ %TypedArrayPrototype%":Dn?Dn.prototype:Mn,"$ %TypeError%":g,"$ %TypeErrorPrototype%":g.prototype,"$ %Uint8Array%":void 0===j?Mn:j,"$ %Uint8ArrayPrototype%":void 0===j?Mn:j.prototype,"$ %Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?Mn:Uint8ClampedArray,"$ %Uint8ClampedArrayPrototype%":"undefined"==typeof Uint8ClampedArray?Mn:Uint8ClampedArray.prototype,"$ %Uint16Array%":"undefined"==typeof Uint16Array?Mn:Uint16Array,"$ %Uint16ArrayPrototype%":"undefined"==typeof Uint16Array?Mn:Uint16Array.prototype,"$ %Uint32Array%":"undefined"==typeof Uint32Array?Mn:Uint32Array,"$ %Uint32ArrayPrototype%":"undefined"==typeof Uint32Array?Mn:Uint32Array.prototype,"$ %URIError%":URIError,"$ %URIErrorPrototype%":URIError.prototype,"$ %WeakMap%":"undefined"==typeof WeakMap?Mn:WeakMap,"$ %WeakMapPrototype%":"undefined"==typeof WeakMap?Mn:WeakMap.prototype,"$ %WeakSet%":"undefined"==typeof WeakSet?Mn:WeakSet,"$ %WeakSetPrototype%":"undefined"==typeof WeakSet?Mn: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 $n))throw new k("intrinsic "+t+" does not exist!");if(void 0===$n[s]&&!i)throw new g("intrinsic "+t+" exists, but is not available. Please file an issue!");return $n[s]},Un=ln.call(Function.call,w.prototype.hasOwnProperty),On=Rn,Vn=On("%TypeError%"),Ln=On("%SyntaxError%"),Hn=Un,qn={"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(Hn(i,e)&&!s[e])return!1;var n=Hn(i,"[[Value]]"),r=Hn(i,"[[Get]]")||Hn(i,"[[Set]]");if(n&&r)throw new Vn("Property Descriptors may not be both accessor and data descriptors");return!0}},zn=Number.isNaN||function(t){return t!=t},Wn=Number.isNaN||function(t){return t!=t},Gn=Number.isFinite||function(t){return"number"==typeof t&&!Wn(t)&&t!==1/0&&t!==-1/0},Xn=Function.prototype.toString,Jn=/^\s*class\b/,Qn=function(t){try{var i=Xn.call(t);return Jn.test(i)}catch(t){return!1}},Yn=w.prototype.toString,Kn="function"==typeof Mt&&"symbol"==typeof Mt.toStringTag,Zn=function(t){if(!t)return!1;if("function"!=typeof t&&"object"!=typeof t)return!1;if("function"==typeof t&&!t.prototype)return!0;if(Kn)return function(t){try{return!Qn(t)&&(Xn.call(t),!0)}catch(t){return!1}}(t);if(Qn(t))return!1;var i=Yn.call(t);return"[object Function]"===i||"[object GeneratorFunction]"===i},tr=w.prototype.toString,ir=function(t){return null===t||"function"!=typeof t&&"object"!=typeof t},sr=Zn,er=function(t){var i;if((i=arguments.length>1?arguments[1]:"[object Date]"===tr.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(sr(t[n[e]])&&(s=t[n[e]](),ir(s)))return s;throw new g("No default value")}throw new g("invalid [[DefaultValue]] hint supplied")},nr=Rn,rr=nr("%Object%"),hr=nr("%TypeError%"),or=nr("%String%"),ar=function(t,i,s,e){var n=qn[i];if("function"!=typeof n)throw new Ln("unknown record type: "+i);if(!n(t,e))throw new Vn(s+" must be a "+i);console.log(n(t,e),e)},ur=zn,cr=Gn,lr=function(t){return t>=0?1:-1},dr=function(t,i){var s=t%i;return _.floor(s>=0?s:s+i)},fr=Un,vr={ToPrimitive:function(t){return ir(t)?t:arguments.length>1?er(t,arguments[1]):er(t)},ToBoolean:function(t){return!!t},ToNumber:function(t){return+t},ToInteger:function(t){var i=this.ToNumber(t);return ur(i)?0:0!==i&&cr(i)?lr(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(ur(i)||0===i||!cr(i))return 0;var s=lr(i)*_.floor(_.abs(i));return dr(s,65536)},ToString:function(t){return or(t)},ToObject:function(t){return this.CheckObjectCoercible(t),rr(t)},CheckObjectCoercible:function(t,i){if(null==t)throw new hr(i||"Cannot call method on "+t);return t},IsCallable:Zn,SameValue:function(t,i){return t===i?0!==t||1/t==1/i:ur(t)&&ur(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(fr(t,s)&&!i[s])return!1;var e=fr(t,"[[Value]]"),n=fr(t,"[[Get]]")||fr(t,"[[Set]]");if(e&&n)throw new hr("Property Descriptors may not be both accessor and data descriptors");return!0},IsAccessorDescriptor:function(t){return void 0!==t&&(ar(this,"Property Descriptor","Desc",t),!(!fr(t,"[[Get]]")&&!fr(t,"[[Set]]")))},IsDataDescriptor:function(t){return void 0!==t&&(ar(this,"Property Descriptor","Desc",t),!(!fr(t,"[[Value]]")&&!fr(t,"[[Writable]]")))},IsGenericDescriptor:function(t){return void 0!==t&&(ar(this,"Property Descriptor","Desc",t),!this.IsAccessorDescriptor(t)&&!this.IsDataDescriptor(t))},FromPropertyDescriptor:function(t){if(void 0===t)return t;if(ar(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 hr("FromPropertyDescriptor must be called with a fully populated Property Descriptor")},ToPropertyDescriptor:function(t){if("Object"!==this.Type(t))throw new hr("ToPropertyDescriptor requires an object");var i={};if(fr(t,"enumerable")&&(i["[[Enumerable]]"]=this.ToBoolean(t.enumerable)),fr(t,"configurable")&&(i["[[Configurable]]"]=this.ToBoolean(t.configurable)),fr(t,"value")&&(i["[[Value]]"]=t.value),fr(t,"writable")&&(i["[[Writable]]"]=this.ToBoolean(t.writable)),fr(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(fr(t,"set")){var e=t.set;if(void 0!==e&&!this.IsCallable(e))throw new hr("setter must be a function");i["[[Set]]"]=e}if((fr(i,"[[Get]]")||fr(i,"[[Set]]"))&&(fr(i,"[[Value]]")||fr(i,"[[Writable]]")))throw new hr("Invalid property descriptor. Cannot both specify accessors and a value or writable attribute");return i}},pr=ln.call(Function.call,String.prototype.replace),mr=/^[\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]+/,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=function(){var t=vr.ToString(vr.CheckObjectCoercible(this));return pr(pr(t,mr,""),gr,"")},br=yr,kr=function(){return String.prototype.trim&&"\u200b"==="\u200b".trim()?String.prototype.trim:br},wr=An,_r=kr,xr=An,Cr=yr,Sr=kr,jr=function(){var t=_r();return wr(String.prototype,{trim:t},{trim:function(){return String.prototype.trim!==t}}),t},Tr=ln.call(Function.call,Sr());xr(Tr,{getPolyfill:Sr,implementation:Cr,shim:jr});var Mr=Tr,Ar=Zn,Pr=w.prototype.toString,Nr=w.prototype.hasOwnProperty,Er=Mr,Br=function(t,i,s){if(!Ar(i))throw new g("iterator must be a function");var e;arguments.length>=3&&(e=s),"[object Array]"===Pr.call(t)?function(t,i,s){for(var e=0,n=t.length;e<n;e++)Nr.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)Nr.call(t,e)&&(null==s?i(t[e],e,t):i.call(s,t[e],e,t))}(t,i,e)},Ir=function(){for(var t={},i=0;i<arguments.length;i++){var s=arguments[i];for(var e in s)Fr.call(s,e)&&(t[e]=s[e])}return t},Fr=w.prototype.hasOwnProperty;var Dr=We.exports,$r=Ge,Rr=function(t){if(!t)return{};var i={};return Br(Er(t).split("\n"),function(t){var s=t.indexOf(":"),e=Er(t.slice(0,s)).toLowerCase(),n=Er(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},Ur=Ir,Or=Lr;function Vr(t,i,s){var e=t;return $r(i)?(s=i,"string"==typeof t&&(e={uri:t})):e=Ur(i,{uri:t}),e.callback=s,e}function Lr(t,i,s){return Hr(i=Vr(t,i,s))}function Hr(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 Lr.XDomainRequest:new Lr.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.onload=h,l.on