cloudinary-video-player 1.9.1 → 1.9.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,2 +1,2 @@
1
1
  /*! For license information please see cld-video-player.light.min.js.LICENSE.txt */
2
- !function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.cloudinaryVideoPlayer=e():t.cloudinaryVideoPlayer=e()}(window,(function(){return function(t){var e={};function n(r){if(e[r])return e[r].exports;var o=e[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)n.d(r,o,function(e){return t[e]}.bind(null,o));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=193)}([function(t,e,n){var r=n(2),o=n(8),i=n(17),a=n(14),s=n(21),u=function(t,e,n){var c,l,f,h,p=t&u.F,d=t&u.G,v=t&u.S,y=t&u.P,g=t&u.B,m=d?r:v?r[e]||(r[e]={}):(r[e]||{}).prototype,_=d?o:o[e]||(o[e]={}),b=_.prototype||(_.prototype={});for(c in d&&(n=e),n)f=((l=!p&&m&&void 0!==m[c])?m:n)[c],h=g&&l?s(f,r):y&&"function"==typeof f?s(Function.call,f):f,m&&a(m,c,f,t&u.U),_[c]!=f&&i(_,c,h),y&&b[c]!=f&&(b[c]=f)};r.core=o,u.F=1,u.G=2,u.S=4,u.P=8,u.B=16,u.W=32,u.U=64,u.R=128,t.exports=u},function(t,e,n){(function(e){t.exports=e.videojs=n(382)}).call(this,n(35))},function(t,e){var n=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,e,n){var r=n(5);t.exports=function(t){if(!r(t))throw TypeError(t+" is not an object!");return t}},function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,e,n){var r=n(68)("wks"),o=n(39),i=n(2).Symbol,a="function"==typeof i;(t.exports=function(t){return r[t]||(r[t]=a&&i[t]||(a?i:o)("Symbol."+t))}).store=r},function(t,e,n){var r=n(23),o=Math.min;t.exports=function(t){return t>0?o(r(t),9007199254740991):0}},function(t,e){var n=t.exports={version:"2.6.12"};"number"==typeof __e&&(__e=n)},function(t,e,n){t.exports=!n(3)((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},function(t,e,n){var r=n(4),o=n(133),i=n(33),a=Object.defineProperty;e.f=n(9)?Object.defineProperty:function(t,e,n){if(r(t),e=i(e,!0),r(n),o)try{return a(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(t[e]=n.value),t}},function(t,e,n){var r=n(29);t.exports=function(t){return Object(r(t))}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.assign=function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];if(Object.assign)return Object.assign.apply(Object,[t].concat(n));return n.forEach((function(e){e&&Object.keys(e).forEach((function(n){var r=e[n];t[n]=r}))})),t}},function(t,e,n){"use strict";function r(t){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r(t)}Object.defineProperty(e,"__esModule",{value:!0}),e.isBoolean=function(t){return"boolean"==typeof t},e.isElement=function(t){return t instanceof Element},e.isFunction=function(t){return"function"==typeof t},e.isInteger=function(t){return"number"==typeof t&&t%1==0},e.isNumber=function(t){return t instanceof Number||"number"==typeof t},e.isPlainObject=function(t){return null!==t&&"object"===r(t)&&"[object Object]"===Object.prototype.toString.call(t)},e.isString=function(t){return t instanceof String||"string"==typeof t},e.noop=function(){return null}},function(t,e,n){var r=n(2),o=n(17),i=n(16),a=n(39)("src"),s=n(198),u="toString",c=(""+s).split(u);n(8).inspectSource=function(t){return s.call(t)},(t.exports=function(t,e,n,s){var u="function"==typeof n;u&&(i(n,"name")||o(n,"name",e)),t[e]!==n&&(u&&(i(n,a)||o(n,a,t[e]?""+t[e]:c.join(String(e)))),t===r?t[e]=n:s?t[e]?t[e]=n:o(t,e,n):(delete t[e],o(t,e,n)))})(Function.prototype,u,(function(){return"function"==typeof this&&this[a]||s.call(this)}))},function(t,e,n){var r=n(0),o=n(3),i=n(29),a=/"/g,s=function(t,e,n,r){var o=String(i(t)),s="<"+e;return""!==n&&(s+=" "+n+'="'+String(r).replace(a,"&quot;")+'"'),s+">"+o+"</"+e+">"};t.exports=function(t,e){var n={};n[t]=e(s),r(r.P+r.F*o((function(){var e=""[t]('"');return e!==e.toLowerCase()||e.split('"').length>3})),"String",n)}},function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},function(t,e,n){var r=n(10),o=n(38);t.exports=n(9)?function(t,e,n){return r.f(t,e,o(1,n))}:function(t,e,n){return t[e]=n,t}},function(t,e,n){var r=n(61),o=n(29);t.exports=function(t){return r(o(t))}},function(t,e,n){"use strict";var r=n(3);t.exports=function(t,e){return!!t&&r((function(){e?t.call(null,(function(){}),1):t.call(null)}))}},function(t,e,n){"use strict";function r(t,e){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];return r.reduce((function(n,r){return Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r],e&&delete t[r]),n}),{})}Object.defineProperty(e,"__esModule",{value:!0}),e.sliceAndUnsetProperties=function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),o=1;o<e;o++)n[o-1]=arguments[o];return r.apply(void 0,[t,!0].concat(n))},e.sliceProperties=function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),o=1;o<e;o++)n[o-1]=arguments[o];return r.apply(void 0,[t,!1].concat(n))}},function(t,e,n){var r=n(22);t.exports=function(t,e,n){if(r(t),void 0===e)return t;switch(n){case 1:return function(n){return t.call(e,n)};case 2:return function(n,r){return t.call(e,n,r)};case 3:return function(n,r,o){return t.call(e,n,r,o)}}return function(){return t.apply(e,arguments)}}},function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},function(t,e){var n=Math.ceil,r=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?r:n)(t)}},function(t,e,n){var r=n(62),o=n(38),i=n(18),a=n(33),s=n(16),u=n(133),c=Object.getOwnPropertyDescriptor;e.f=n(9)?c:function(t,e){if(t=i(t),e=a(e,!0),u)try{return c(t,e)}catch(t){}if(s(t,e))return o(!r.f.call(t,e),t[e])}},function(t,e,n){var r=n(0),o=n(8),i=n(3);t.exports=function(t,e){var n=(o.Object||{})[t]||Object[t],a={};a[t]=e(n),r(r.S+r.F*i((function(){n(1)})),"Object",a)}},function(t,e,n){var r=n(21),o=n(61),i=n(11),a=n(7),s=n(149);t.exports=function(t,e){var n=1==t,u=2==t,c=3==t,l=4==t,f=6==t,h=5==t||f,p=e||s;return function(e,s,d){for(var v,y,g=i(e),m=o(g),_=r(s,d,3),b=a(m.length),w=0,E=n?p(e,b):u?p(e,0):void 0;b>w;w++)if((h||w in m)&&(y=_(v=m[w],w,g),t))if(n)E[w]=y;else if(y)switch(t){case 3:return!0;case 5:return v;case 6:return w;case 2:E.push(v)}else if(l)return!1;return f?-1:c||l?l:E}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SOURCE_TYPE=e.PLAYER_EVENT=void 0;e.PLAYER_EVENT={PLAY:"play",PLAYING:"playing",PAUSE:"pause",SEEK:"seek",SEEKING:"seeking",MUTE:"mute",UNMUTE:"unmute",PAUSE_NO_SEEK:"pausenoseek",ERROR:"error",TIME_UPDATE:"timeupdate",RETRY_PLAYLIST:"retryplaylist",CAN_PLAY_THROUGH:"canplaythrough",CLD_SOURCE_CHANGED:"cldsourcechanged",SOURCE_CHANGED:"sourcechanged",LOADED_METADATA:"loadedmetadata",LOADED_DATA:"loadeddata",REFRESH_TEXT_TRACKS:"refreshTextTracks",PLAYLIST_CREATED:"playlistcreated",UP_COMING_VIDEO_SHOW:"upcomingvideoshow",UP_COMING_VIDEO_HIDE:"upcomingvideohide",PLAYLIST_ITEM_CHANGED:"playlistitemchanged",VOLUME_CHANGE:"volumechange",FLUID:"fluid",PLAYLIST_PANEL:"PlaylistPanel",ENDED:"ended",RESIZE:"resize",START:"start",VIDEO_LOAD:"videoload",PRODUCT_BAR_MIN:"productBarMin",SHOW_PRODUCTS_OVERLAY:"showProductsOverlay",SHOPPABLE_ITEM_CHANGED:"shoppableitemchanged",FULL_SCREEN_CHANGE:"fullscreenchange",PERCENTS_PLAYED:"percentsplayed",TIME_PLAYED:"timeplayed",PLAYER_LOAD:"playerload",DISPOSE:"dispose",QUALITY_CHANGED:"qualitychanged"};e.SOURCE_TYPE={AUDIO:"AudioSource",VIDEO:"VideoSource"}},function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},function(t,e){t.exports=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t}},function(t,e,n){"use strict";if(n(9)){var r=n(40),o=n(2),i=n(3),a=n(0),s=n(79),u=n(111),c=n(21),l=n(57),f=n(38),h=n(17),p=n(58),d=n(23),v=n(7),y=n(160),g=n(42),m=n(33),_=n(16),b=n(63),w=n(5),E=n(11),T=n(103),S=n(43),O=n(45),C=n(44).f,P=n(105),k=n(39),j=n(6),A=n(26),x=n(69),R=n(64),L=n(107),I=n(55),N=n(72),M=n(56),D=n(106),F=n(151),B=n(10),V=n(24),U=B.f,H=V.f,Y=o.RangeError,z=o.TypeError,W=o.Uint8Array,G="ArrayBuffer",K="SharedArrayBuffer",X="BYTES_PER_ELEMENT",q=Array.prototype,$=u.ArrayBuffer,J=u.DataView,Q=A(0),Z=A(2),tt=A(3),et=A(4),nt=A(5),rt=A(6),ot=x(!0),it=x(!1),at=L.values,st=L.keys,ut=L.entries,ct=q.lastIndexOf,lt=q.reduce,ft=q.reduceRight,ht=q.join,pt=q.sort,dt=q.slice,vt=q.toString,yt=q.toLocaleString,gt=j("iterator"),mt=j("toStringTag"),_t=k("typed_constructor"),bt=k("def_constructor"),wt=s.CONSTR,Et=s.TYPED,Tt=s.VIEW,St="Wrong length!",Ot=A(1,(function(t,e){return At(R(t,t[bt]),e)})),Ct=i((function(){return 1===new W(new Uint16Array([1]).buffer)[0]})),Pt=!!W&&!!W.prototype.set&&i((function(){new W(1).set({})})),kt=function(t,e){var n=d(t);if(n<0||n%e)throw Y("Wrong offset!");return n},jt=function(t){if(w(t)&&Et in t)return t;throw z(t+" is not a typed array!")},At=function(t,e){if(!w(t)||!(_t in t))throw z("It is not a typed array constructor!");return new t(e)},xt=function(t,e){return Rt(R(t,t[bt]),e)},Rt=function(t,e){for(var n=0,r=e.length,o=At(t,r);r>n;)o[n]=e[n++];return o},Lt=function(t,e,n){U(t,e,{get:function(){return this._d[n]}})},It=function(t){var e,n,r,o,i,a,s=E(t),u=arguments.length,l=u>1?arguments[1]:void 0,f=void 0!==l,h=P(s);if(null!=h&&!T(h)){for(a=h.call(s),r=[],e=0;!(i=a.next()).done;e++)r.push(i.value);s=r}for(f&&u>2&&(l=c(l,arguments[2],2)),e=0,n=v(s.length),o=At(this,n);n>e;e++)o[e]=f?l(s[e],e):s[e];return o},Nt=function(){for(var t=0,e=arguments.length,n=At(this,e);e>t;)n[t]=arguments[t++];return n},Mt=!!W&&i((function(){yt.call(new W(1))})),Dt=function(){return yt.apply(Mt?dt.call(jt(this)):jt(this),arguments)},Ft={copyWithin:function(t,e){return F.call(jt(this),t,e,arguments.length>2?arguments[2]:void 0)},every:function(t){return et(jt(this),t,arguments.length>1?arguments[1]:void 0)},fill:function(t){return D.apply(jt(this),arguments)},filter:function(t){return xt(this,Z(jt(this),t,arguments.length>1?arguments[1]:void 0))},find:function(t){return nt(jt(this),t,arguments.length>1?arguments[1]:void 0)},findIndex:function(t){return rt(jt(this),t,arguments.length>1?arguments[1]:void 0)},forEach:function(t){Q(jt(this),t,arguments.length>1?arguments[1]:void 0)},indexOf:function(t){return it(jt(this),t,arguments.length>1?arguments[1]:void 0)},includes:function(t){return ot(jt(this),t,arguments.length>1?arguments[1]:void 0)},join:function(t){return ht.apply(jt(this),arguments)},lastIndexOf:function(t){return ct.apply(jt(this),arguments)},map:function(t){return Ot(jt(this),t,arguments.length>1?arguments[1]:void 0)},reduce:function(t){return lt.apply(jt(this),arguments)},reduceRight:function(t){return ft.apply(jt(this),arguments)},reverse:function(){for(var t,e=this,n=jt(e).length,r=Math.floor(n/2),o=0;o<r;)t=e[o],e[o++]=e[--n],e[n]=t;return e},some:function(t){return tt(jt(this),t,arguments.length>1?arguments[1]:void 0)},sort:function(t){return pt.call(jt(this),t)},subarray:function(t,e){var n=jt(this),r=n.length,o=g(t,r);return new(R(n,n[bt]))(n.buffer,n.byteOffset+o*n.BYTES_PER_ELEMENT,v((void 0===e?r:g(e,r))-o))}},Bt=function(t,e){return xt(this,dt.call(jt(this),t,e))},Vt=function(t){jt(this);var e=kt(arguments[1],1),n=this.length,r=E(t),o=v(r.length),i=0;if(o+e>n)throw Y(St);for(;i<o;)this[e+i]=r[i++]},Ut={entries:function(){return ut.call(jt(this))},keys:function(){return st.call(jt(this))},values:function(){return at.call(jt(this))}},Ht=function(t,e){return w(t)&&t[Et]&&"symbol"!=typeof e&&e in t&&String(+e)==String(e)},Yt=function(t,e){return Ht(t,e=m(e,!0))?f(2,t[e]):H(t,e)},zt=function(t,e,n){return!(Ht(t,e=m(e,!0))&&w(n)&&_(n,"value"))||_(n,"get")||_(n,"set")||n.configurable||_(n,"writable")&&!n.writable||_(n,"enumerable")&&!n.enumerable?U(t,e,n):(t[e]=n.value,t)};wt||(V.f=Yt,B.f=zt),a(a.S+a.F*!wt,"Object",{getOwnPropertyDescriptor:Yt,defineProperty:zt}),i((function(){vt.call({})}))&&(vt=yt=function(){return ht.call(this)});var Wt=p({},Ft);p(Wt,Ut),h(Wt,gt,Ut.values),p(Wt,{slice:Bt,set:Vt,constructor:function(){},toString:vt,toLocaleString:Dt}),Lt(Wt,"buffer","b"),Lt(Wt,"byteOffset","o"),Lt(Wt,"byteLength","l"),Lt(Wt,"length","e"),U(Wt,mt,{get:function(){return this[Et]}}),t.exports=function(t,e,n,u){var c=t+((u=!!u)?"Clamped":"")+"Array",f="get"+t,p="set"+t,d=o[c],g=d||{},m=d&&O(d),_=!d||!s.ABV,E={},T=d&&d.prototype,P=function(t,n){U(t,n,{get:function(){return function(t,n){var r=t._d;return r.v[f](n*e+r.o,Ct)}(this,n)},set:function(t){return function(t,n,r){var o=t._d;u&&(r=(r=Math.round(r))<0?0:r>255?255:255&r),o.v[p](n*e+o.o,r,Ct)}(this,n,t)},enumerable:!0})};_?(d=n((function(t,n,r,o){l(t,d,c,"_d");var i,a,s,u,f=0,p=0;if(w(n)){if(!(n instanceof $||(u=b(n))==G||u==K))return Et in n?Rt(d,n):It.call(d,n);i=n,p=kt(r,e);var g=n.byteLength;if(void 0===o){if(g%e)throw Y(St);if((a=g-p)<0)throw Y(St)}else if((a=v(o)*e)+p>g)throw Y(St);s=a/e}else s=y(n),i=new $(a=s*e);for(h(t,"_d",{b:i,o:p,l:a,e:s,v:new J(i)});f<s;)P(t,f++)})),T=d.prototype=S(Wt),h(T,"constructor",d)):i((function(){d(1)}))&&i((function(){new d(-1)}))&&N((function(t){new d,new d(null),new d(1.5),new d(t)}),!0)||(d=n((function(t,n,r,o){var i;return l(t,d,c),w(n)?n instanceof $||(i=b(n))==G||i==K?void 0!==o?new g(n,kt(r,e),o):void 0!==r?new g(n,kt(r,e)):new g(n):Et in n?Rt(d,n):It.call(d,n):new g(y(n))})),Q(m!==Function.prototype?C(g).concat(C(m)):C(g),(function(t){t in d||h(d,t,g[t])})),d.prototype=T,r||(T.constructor=d));var k=T[gt],j=!!k&&("values"==k.name||null==k.name),A=Ut.values;h(d,_t,!0),h(T,Et,c),h(T,Tt,!0),h(T,bt,d),(u?new d(1)[mt]==c:mt in T)||U(T,mt,{get:function(){return c}}),E[c]=d,a(a.G+a.W+a.F*(d!=g),E),a(a.S,c,{BYTES_PER_ELEMENT:e}),a(a.S+a.F*i((function(){g.of.call(d,1)})),c,{from:It,of:Nt}),X in T||h(T,X,e),a(a.P,c,Ft),M(c),a(a.P+a.F*Pt,c,{set:Vt}),a(a.P+a.F*!j,c,Ut),r||T.toString==vt||(T.toString=vt),a(a.P+a.F*i((function(){new d(1).slice()})),c,{slice:Bt}),a(a.P+a.F*(i((function(){return[1,2].toLocaleString()!=new d([1,2]).toLocaleString()}))||!i((function(){T.toLocaleString.call([1,2])}))),c,{toLocaleString:Dt}),I[c]=j?k:A,r||j||h(T,gt,A)}}else t.exports=function(){}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.normalizeOptions=e.mergeTransformations=e.isSrcEqual=e.isRawUrl=e.h264avcToString=e.getCloudinaryUrl=e.extendCloudinaryConfig=e.codecToSrcTransformation=e.codecShorthandTrans=e.cloudinaryErrorsConverter=e.VIDEO_CODEC=e.ERROR_CODE=void 0;var r,o=n(12),i=n(20),a=n(13),s=n(118),u=n(391),c=(r=n(120))&&r.__esModule?r:{default:r},l=n(127);function f(t){return f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},f(t)}e.normalizeOptions=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.tolerateMissingId,s=void 0!==r&&r;if((0,a.isPlainObject)(t)){var u=(0,o.assign)({},t);if(t=(0,i.sliceAndUnsetProperties)(u,"publicId").publicId,!(0,a.isString)(t)&&!s)throw new Error("Source is missing 'publicId'.");e&&(e=(0,o.assign)({},u,e))}return{publicId:t,options:e}};e.isRawUrl=function(t){return s.URL_PATTERN.test(t)};e.isSrcEqual=function(t,e){var n=t,r=e;return"object"===f(t)&&(n=t.src),"object"===f(e)&&(r=e.src),/^\/\//.test(n)&&(r=r.slice(r.indexOf("//"))),/^\/\//.test(r)&&(n=n.slice(n.indexOf("//"))),n===r};e.extendCloudinaryConfig=function(t,e){return Object.assign(t,e)};e.getCloudinaryUrl=function(t,e){return(0,u.createCloudinaryLegacyURL)(t,(0,l.omit)(e,["chainTarget"]))};e.mergeTransformations=function(t,e){var n,r="Transformation"===(n=t).constructor.name&&n.toOptions?t.toOptions():t;return new c.default(r).fromOptions(e).toOptions()};var h={NO_SUPPORTED_MEDIA:6,CUSTOM:10,UNKNOWN_CUSTOMER:11,RESOURCE_NOT_FOUND:12,PRIVATE_RESOURCE:13,UNAUTHENTICATED:14};e.ERROR_CODE=h;e.cloudinaryErrorsConverter=function(t){var e=t.errorMsg,n=t.publicId,r=t.cloudName,o=t.statusCode,i="Video cannot be played",a={code:h.CUSTOM,message:"".concat(i).concat(e?"- "+e:""),statusCode:o},s=e.toLowerCase();return s.startsWith("unknown customer")&&(a.code=h.UNKNOWN_CUSTOMER,a.message="".concat(i," Unknown cloud-name ").concat(r)),s.startsWith("resource not found")&&(a.code=h.RESOURCE_NOT_FOUND,a.message="".concat(i," Public ID ").concat(n," not found")),s.startsWith("private resource")&&(a.code=h.PRIVATE_RESOURCE,a.message="".concat(i," Private video")),s.startsWith("unauthenticated access")&&(a.message="".concat(i," Requires authentication"),a.code=h.UNAUTHENTICATED),a};e.codecShorthandTrans=function(t){var e={h265:"hev1.1.6.L93.B0",vp9:"vp09.00.50.08",h264:"avc1.42E01E"};return e[t]?e[t]:t};var p={avc1:"h264",avc2:"h264",svc1:"Scalable Video Coding",mvc1:"Multiview Video Coding",mvc2:"Multiview Video Coding"},d={0:"No",42:"baseline","4d":"main",58:"extended",64:"high","6e":"high 10","7a":"high 4:2:2",f4:"high 4:4:4","2c":"CAVLC 4:4:4",53:"Scalable Baseline",56:"Scalable High",80:"Stereo High",76:"Multiview High","8a":"Multiview Depth High"};var v=function(t){var e=/(avc1|avc2|svc1|mvc1|mvc2)\.([0-9a-f]{6})/i;if(!1===e.test("avc1.42001e"))throw new Error("Codec string is not formatted according to H.264/AVC standards for example avc1.42001e (maybe an iOS friendly version...)");var n=t.match(e);if(null!==n){n.shift();return p[n[0]]+":"+function(t){var e=/([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})/i;if(!1===e.test(t))throw new Error("error: please provide a 3-bytes hex-sequence for example: 42001e");var n=t.match(e);n.shift();var r=n[0];r="string"==typeof(r=d[r])?r:"Unknown";var o=n[2];return o=parseInt(o,16),o=String(o).split("").join("."),"".concat(r,":").concat(o)}(n[1])}return t};e.h264avcToString=v;var y={VP9:"vp9",HEV1:"hev1",H265:"h265",H264:"h264"};e.VIDEO_CODEC=y;e.codecToSrcTransformation=function(t){if(!t)return{};switch(t){case y.VP9:return{video_codec:y.VP9};case y.HEV1:return{video_codec:y.H265};case y.H264:return{video_codec:"".concat(y.H264,":baseline:3.0")};default:return{video_codec:v(t)}}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r="res.cloudinary.com",o="([0-9]*)\\.([0-9]+)|([0-9]+)",i="("+o+")([%pP])?",a=RegExp("^"+i+"$"),s=RegExp("("+i+")\\.\\.("+i+")");e.AKAMAI_SHARED_CDN=r,e.CF_SHARED_CDN="d3jpl91pxevbkh.cloudfront.net",e.LAYER_KEYWORD_PARAMS={font_weight:"normal",font_style:"normal",text_decoration:"none",text_align:"",stroke:"none"},e.LEGACY_CONDITIONAL_OPERATORS={"=":"eq","!=":"ne","<":"lt",">":"gt","<=":"lte",">=":"gte","&&":"and","||":"or","*":"mul","/":"div","+":"add","-":"sub","^":"pow"},e.LEGACY_PREDEFINED_VARS={aspect_ratio:"ar",aspectRatio:"ar",current_page:"cp",currentPage:"cp",duration:"du",face_count:"fc",faceCount:"fc",height:"h",initial_aspect_ratio:"iar",initial_height:"ih",initial_width:"iw",initialAspectRatio:"iar",initialHeight:"ih",initialWidth:"iw",initial_duration:"idu",initialDuration:"idu",page_count:"pc",page_x:"px",page_y:"py",pageCount:"pc",pageX:"px",pageY:"py",tags:"tags",width:"w"},e.NUMBER_PATTERN=o,e.OFFSET_ANY_PATTERN=i,e.OFFSET_ANY_PATTERN_RE=s,e.OLD_AKAMAI_SHARED_CDN="cloudinary-a.akamaihd.net",e.RANGE_VALUE_RE=a,e.SHARED_CDN="res.cloudinary.com"},function(t,e,n){var r=n(5);t.exports=function(t,e){if(!r(t))return t;var n,o;if(e&&"function"==typeof(n=t.toString)&&!r(o=n.call(t)))return o;if("function"==typeof(n=t.valueOf)&&!r(o=n.call(t)))return o;if(!e&&"function"==typeof(n=t.toString)&&!r(o=n.call(t)))return o;throw TypeError("Can't convert object to primitive value")}},function(t,e,n){var r=n(39)("meta"),o=n(5),i=n(16),a=n(10).f,s=0,u=Object.isExtensible||function(){return!0},c=!n(3)((function(){return u(Object.preventExtensions({}))})),l=function(t){a(t,r,{value:{i:"O"+ ++s,w:{}}})},f=t.exports={KEY:r,NEED:!1,fastKey:function(t,e){if(!o(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!i(t,r)){if(!u(t))return"F";if(!e)return"E";l(t)}return t[r].i},getWeak:function(t,e){if(!i(t,r)){if(!u(t))return!0;if(!e)return!1;l(t)}return t[r].w},onFreeze:function(t){return c&&f.NEED&&u(t)&&!i(t,r)&&l(t),t}}},function(t,e){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(t){"object"==typeof window&&(n=window)}t.exports=n},function(t,e,n){"use strict";var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},r(t,e)};e.__assign=function(){return e.__assign=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},e.__assign.apply(this,arguments)},e.__extends=function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},e.__spreadArrays=function(){for(var t=0,e=0,n=arguments.length;e<n;e++)t+=arguments[e].length;var r=Array(t),o=0;for(e=0;e<n;e++)for(var i=arguments[e],a=0,s=i.length;a<s;a++,o++)r[o]=i[a];return r}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.snakeCase=function(t){return t.replace(/[A-Z]/g,(function(t){return"_"+t.toLowerCase()}))}},function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},function(t,e){var n=0,r=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++n+r).toString(36))}},function(t,e){t.exports=!1},function(t,e,n){var r=n(135),o=n(90);t.exports=Object.keys||function(t){return r(t,o)}},function(t,e,n){var r=n(23),o=Math.max,i=Math.min;t.exports=function(t,e){return(t=r(t))<0?o(t+e,0):i(t,e)}},function(t,e,n){var r=n(4),o=n(136),i=n(90),a=n(89)("IE_PROTO"),s=function(){},u=function(){var t,e=n(87)("iframe"),r=i.length;for(e.style.display="none",n(91).appendChild(e),e.src="javascript:",(t=e.contentWindow.document).open(),t.write("<script>document.F=Object<\/script>"),t.close(),u=t.F;r--;)delete u.prototype[i[r]];return u()};t.exports=Object.create||function(t,e){var n;return null!==t?(s.prototype=r(t),n=new s,s.prototype=null,n[a]=t):n=u(),void 0===e?n:o(n,e)}},function(t,e,n){var r=n(135),o=n(90).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return r(t,o)}},function(t,e,n){var r=n(16),o=n(11),i=n(89)("IE_PROTO"),a=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return t=o(t),r(t,i)?t[i]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?a:null}},function(t,e,n){var r=n(6)("unscopables"),o=Array.prototype;null==o[r]&&n(17)(o,r,{}),t.exports=function(t){o[r][t]=!0}},function(t,e,n){var r=n(5);t.exports=function(t,e){if(!r(t)||t._t!==e)throw TypeError("Incompatible receiver, "+e+" required!");return t}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isObject=function(t){return"object"==typeof t&&null!==t}},function(t,e,n){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.base64Encode=function(e){return("undefined"!=typeof window?btoa(encodeURI(decodeURI(e))):t.Buffer.from(e).toString("base64")).replace(/\+/g,"-").replace(/\//g,"_")}}).call(this,n(35))},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.smartEscape=function(t,e){return void 0===e&&(e=/([^a-zA-Z0-9_.\-\/:]+)/g),t.replace(e,(function(t){return t.split("").map((function(t){return"%"+t.charCodeAt(0).toString(16).toUpperCase()})).join("")}))}},function(t,e,n){"use strict";var r=n(37),o=function(){function t(t){var e=this;this.options={},null!=t&&["resourceType","type","publicId","format"].forEach((function(n){var o;return e.options[n]=null!=(o=t[n])?o:t[r.snakeCase(n)]}))}return t.prototype.resourceType=function(t){return this.options.resourceType=t,this},t.prototype.type=function(t){return this.options.type=t,this},t.prototype.publicId=function(t){return this.options.publicId=t,this},t.prototype.getPublicId=function(){var t;return null!=(t=this.options.publicId)?t.replace(/\//g,":"):void 0},t.prototype.getFullPublicId=function(){return null!=this.options.format?this.getPublicId()+"."+this.options.format:this.getPublicId()},t.prototype.format=function(t){return this.options.format=t,this},t.prototype.toString=function(){var t=[];if(null==this.options.publicId)throw"Must supply publicId";return"image"!==this.options.resourceType&&t.push(this.options.resourceType),"upload"!==this.options.type&&t.push(this.options.type),t.push(this.getFullPublicId()),t.filter((function(t){return!!t})).join(":")},t.prototype.clone=function(){return new t(this.options)},t}();t.exports=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isEmpty=function(t){return null==t||"object"==typeof t&&0===Object.keys(t).length||"string"==typeof t&&0===t.trim().length}},function(t,e,n){var r=n(10).f,o=n(16),i=n(6)("toStringTag");t.exports=function(t,e,n){t&&!o(t=n?t:t.prototype,i)&&r(t,i,{configurable:!0,value:e})}},function(t,e,n){var r=n(0),o=n(29),i=n(3),a=n(93),s="["+a+"]",u=RegExp("^"+s+s+"*"),c=RegExp(s+s+"*$"),l=function(t,e,n){var o={},s=i((function(){return!!a[t]()||"​…"!="​…"[t]()})),u=o[t]=s?e(f):a[t];n&&(o[n]=u),r(r.P+r.F*s,"String",o)},f=l.trim=function(t,e){return t=String(o(t)),1&e&&(t=t.replace(u,"")),2&e&&(t=t.replace(c,"")),t};t.exports=l},function(t,e){t.exports={}},function(t,e,n){"use strict";var r=n(2),o=n(10),i=n(9),a=n(6)("species");t.exports=function(t){var e=r[t];i&&e&&!e[a]&&o.f(e,a,{configurable:!0,get:function(){return this}})}},function(t,e){t.exports=function(t,e,n,r){if(!(t instanceof e)||void 0!==r&&r in t)throw TypeError(n+": incorrect invocation!");return t}},function(t,e,n){var r=n(14);t.exports=function(t,e,n){for(var o in e)r(t,o,e[o],n);return t}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.isNumberLike=function(t){return null!=t&&!isNaN(parseFloat(t))}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.PRELOAD=e.PLAYER_PARAMS=e.FLUID_CLASS_NAME=e.FLOATING_TO=e.DEFAULT_HLS_OPTIONS=e.CLOUDINARY_PARAMS=e.CLOUDINARY_CONFIG_PARAM=e.AUTO_PLAY_MODE=e.ADS_IN_PLAYLIST=void 0;var r,o=(r=n(1))&&r.__esModule?r:{default:r};var i=["cloudinaryConfig","transformation","sourceTypes","sourceTransformation","posterOptions","autoShowRecommendations","fontFace","secure"];e.CLOUDINARY_PARAMS=i;var a=i.concat(["publicId","source","autoplayMode","playedEventPercents","playedEventTimes","analytics","fluid","ima","playlistWidget","hideContextMenu","colors","floatingWhenNotVisible","ads","showJumpControls","textTracks","qualitySelector","fetchErrorUsingGet","withCredentials","seekThumbnails","queryParams"]);e.PLAYER_PARAMS=a;e.CLOUDINARY_CONFIG_PARAM=["cloud_name","secure","private_cdn","secure_distribution","cdn_subdomain","secure_cdn_subdomain","cname","shorten","sign_url","api_secret","url_suffix","use_root_path","auth_token"];var s={html5:{handlePartialData:!1,vhs:{overrideNative:!o.default||!o.default.browser||!o.default.browser.IS_IOS&&!o.default.browser.IS_SAFARI}}};e.DEFAULT_HLS_OPTIONS=s;e.FLUID_CLASS_NAME="cld-fluid";e.AUTO_PLAY_MODE={ALWAYS:"always",ON_SCROLL:"on-scroll",NEVER:"never"};e.FLOATING_TO={LEFT:"left",RIGHT:"right",NONE:"none"};e.ADS_IN_PLAYLIST={FIRST_VIDEO:"first-video",EVERY_VIDEO:"every-video"};e.PRELOAD={AUTO:"auto",METADATA:"metadata",NONE:"none"}},function(t,e,n){var r=n(28);t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==r(t)?t.split(""):Object(t)}},function(t,e){e.f={}.propertyIsEnumerable},function(t,e,n){var r=n(28),o=n(6)("toStringTag"),i="Arguments"==r(function(){return arguments}());t.exports=function(t){var e,n,a;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=function(t,e){try{return t[e]}catch(t){}}(e=Object(t),o))?n:i?r(e):"Object"==(a=r(e))&&"function"==typeof e.callee?"Arguments":a}},function(t,e,n){var r=n(4),o=n(22),i=n(6)("species");t.exports=function(t,e){var n,a=r(t).constructor;return void 0===a||null==(n=r(a)[i])?e:o(n)}},function(t,e,n){"use strict";function r(t){var e=t.getBoundingClientRect(),n=document.body,r=document.documentElement,o=window.pageYOffset||r.scrollTop||n.scrollTop,i=window.pageXOffset||r.scrollLeft||n.scrollLeft,a=r.clientTop||n.clientTop||0,s=r.clientLeft||n.clientLeft||0,u=e.top+o-a,c=e.left+i-s;return{top:Math.round(u),left:Math.round(c)}}Object.defineProperty(e,"__esModule",{value:!0}),e.getElementPosition=r,e.getPointerPosition=function(t,e){var n={},o=r(t),i=t.offsetWidth,a=t.offsetHeight,s=o.top,u=o.left,c=e.pageY,l=e.pageX;e.changedTouches&&(l=e.changedTouches[0].pageX,c=e.changedTouches[0].pageY);return n.y=Math.max(0,Math.min(1,(s-c+a)/a)),n.x=Math.max(0,Math.min(1,(l-u)/i)),n},e.isElementInViewport=function(t,e){var n=e.fraction,o=r(t),i=o.left,a=o.top,s=t.offsetHeight,u=t.offsetWidth,c=i+u,l=a+s,f=Math.max(0,Math.min(u,window.pageXOffset+window.innerWidth-i,c-window.pageXOffset)),h=Math.max(0,Math.min(u,window.pageYOffset+window.innerHeight-a,l-window.pageYOffset));return f*h/(u*s)>n},e.setPosition=function(t,e,n){t.style.left="".concat(e,"px"),t.style.top="".concat(n,"px")}},function(t,e,n){"use strict";var r=n(36),o=n(51),i=n(37),a=n(52),s=n(50),u=n(59),c=function(t){function e(e){var n=this;return n=t.call(this,e)||this,null!=e&&["resourceType","resourceType","fontFamily","fontSize","fontWeight","fontStyle","textDecoration","textAlign","stroke","letterSpacing","lineSpacing","fontHinting","fontAntialiasing","text"].forEach((function(t){var r;return n.options[t]=null!=(r=e[t])?r:e[i.snakeCase(t)]})),n.options.resourceType="text",n}return r.__extends(e,t),e.prototype.resourceType=function(t){throw"Cannot modify resourceType for text layers"},e.prototype.type=function(t){throw"Cannot modify type for text layers"},e.prototype.format=function(t){throw"Cannot modify format for text layers"},e.prototype.fontFamily=function(t){return this.options.fontFamily=t,this},e.prototype.fontSize=function(t){return this.options.fontSize=t,this},e.prototype.fontWeight=function(t){return this.options.fontWeight=t,this},e.prototype.fontStyle=function(t){return this.options.fontStyle=t,this},e.prototype.textDecoration=function(t){return this.options.textDecoration=t,this},e.prototype.textAlign=function(t){return this.options.textAlign=t,this},e.prototype.stroke=function(t){return this.options.stroke=t,this},e.prototype.letterSpacing=function(t){return this.options.letterSpacing=t,this},e.prototype.lineSpacing=function(t){return this.options.lineSpacing=t,this},e.prototype.fontHinting=function(t){return this.options.fontHinting=t,this},e.prototype.fontAntialiasing=function(t){return this.options.fontAntialiasing=t,this},e.prototype.text=function(t){return this.options.text=t,this},e.prototype.toString=function(){var t,e,n,r,o,i,u,c,l;if(u=this.textStyleIdentifier(),null!=this.options.publicId&&(n=this.getFullPublicId()),null!=this.options.text){if(t=!a.isEmpty(n),e=!a.isEmpty(u),t&&e||!t&&!e)throw"Must supply either style parameters or a public_id when providing text parameter in a text overlay/underlay, but not both!";for(r=/\$\([a-zA-Z]\w*\)/g,i=0,l=s.smartEscape(this.options.text,/[,\/]/g),c="";o=r.exec(l);)c+=s.smartEscape(l.slice(i,o.index)),c+=o[0],i=o.index+o[0].length;c+=s.smartEscape(l.slice(i))}return[this.options.resourceType,u,n,c].filter((function(t){return!!t})).join(":")},e.prototype.textStyleIdentifier=function(){var t;if(t=[],"normal"!==this.options.fontWeight&&t.push(this.options.fontWeight),"normal"!==this.options.fontStyle&&t.push(this.options.fontStyle),"none"!==this.options.textDecoration&&t.push(this.options.textDecoration),t.push(this.options.textAlign),"none"!==this.options.stroke&&t.push(this.options.stroke),a.isEmpty(this.options.letterSpacing)&&!u.isNumberLike(this.options.letterSpacing)||t.push("letter_spacing_"+this.options.letterSpacing),a.isEmpty(this.options.lineSpacing)&&!u.isNumberLike(this.options.lineSpacing)||t.push("line_spacing_"+this.options.lineSpacing),a.isEmpty(this.options.fontAntialiasing)||t.push("antialias_"+this.options.fontAntialiasing),a.isEmpty(this.options.fontHinting)||t.push("hinting_"+this.options.fontHinting),!a.isEmpty(t.filter((function(t){return!!t})))){if(a.isEmpty(this.options.fontFamily))throw"Must supply fontFamily. "+t;if(a.isEmpty(this.options.fontSize)&&!u.isNumberLike(this.options.fontSize))throw"Must supply fontSize."}return t.unshift(this.options.fontFamily,this.options.fontSize),t=t.filter((function(t){return!!t})).join("_")},e}(o);t.exports=c},function(t,e,n){"use strict";var r=function(){function t(e){this.expressions=[],null!=e&&this.expressions.push(t.normalize(e))}return t.new=function(t){return new this(t)},t.normalize=function(t){var e,n,r;return null==t?t:(t=String(t),"\\|\\||>=|<=|&&|!=|>|=|<|/|-|\\+|\\*|\\^","((\\|\\||>=|<=|&&|!=|>|=|<|/|-|\\+|\\*|\\^)(?=[ _]))",e=new RegExp("((\\|\\||>=|<=|&&|!=|>|=|<|/|-|\\+|\\*|\\^)(?=[ _]))","g"),t=t.replace(e,(function(t){return o[t]})),n="("+Object.keys(i).join("|")+")",r=new RegExp(n,"g"),(t=t.replace(r,(function(e,n,r){return"$"===t[r-1]?e:i[e]}))).replace(/[ _]+/g,"_"))},t.prototype.serialize=function(){return t.normalize(this.expressions.join("_"))},t.prototype.toString=function(){return this.serialize()},t.prototype.getParent=function(){return this.parent},t.prototype.setParent=function(t){return this.parent=t,this},t.prototype.predicate=function(t,e,n){return null!=o[e]&&(e=o[e]),this.expressions.push(t+"_"+e+"_"+n),this},t.prototype.and=function(){return this.expressions.push("and"),this},t.prototype.or=function(){return this.expressions.push("or"),this},t.prototype.then=function(){return this.getParent().if(this.toString())},t.prototype.height=function(t,e){return this.predicate("h",t,e)},t.prototype.width=function(t,e){return this.predicate("w",t,e)},t.prototype.aspectRatio=function(t,e){return this.predicate("ar",t,e)},t.prototype.pageCount=function(t,e){return this.predicate("pc",t,e)},t.prototype.faceCount=function(t,e){return this.predicate("fc",t,e)},t.prototype.value=function(t){return this.expressions.push(t),this},t.variable=function(t,e){return new this(t).value(e)},t.width=function(){return new this("width")},t.height=function(){return new this("height")},t.initialWidth=function(){return new this("initialWidth")},t.initialHeight=function(){return new this("initialHeight")},t.aspectRatio=function(){return new this("aspectRatio")},t.initialAspectRatio=function(){return new this("initialAspectRatio")},t.pageCount=function(){return new this("pageCount")},t.faceCount=function(){return new this("faceCount")},t.currentPage=function(){return new this("currentPage")},t.tags=function(){return new this("tags")},t.pageX=function(){return new this("pageX")},t.pageY=function(){return new this("pageY")},t}(),o={"=":"eq","!=":"ne","<":"lt",">":"gt","<=":"lte",">=":"gte","&&":"and","||":"or","*":"mul","/":"div","+":"add","-":"sub","^":"pow"},i={aspect_ratio:"ar",aspectRatio:"ar",current_page:"cp",currentPage:"cp","preview:duration":"preview:duration",duration:"du",face_count:"fc",faceCount:"fc",height:"h",initial_aspect_ratio:"iar",initial_duration:"idu",initial_height:"ih",initial_width:"iw",initialAspectRatio:"iar",initialDuration:"idu",initialHeight:"ih",initialWidth:"iw",page_count:"pc",page_x:"px",page_y:"py",pageCount:"pc",pageX:"px",pageY:"py",tags:"tags",width:"w"};t.exports=r},function(t,e,n){var r=n(8),o=n(2),i="__core-js_shared__",a=o[i]||(o[i]={});(t.exports=function(t,e){return a[t]||(a[t]=void 0!==e?e:{})})("versions",[]).push({version:r.version,mode:n(40)?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},function(t,e,n){var r=n(18),o=n(7),i=n(42);t.exports=function(t){return function(e,n,a){var s,u=r(e),c=o(u.length),l=i(a,c);if(t&&n!=n){for(;c>l;)if((s=u[l++])!=s)return!0}else for(;c>l;l++)if((t||l in u)&&u[l]===n)return t||l||0;return!t&&-1}}},function(t,e){e.f=Object.getOwnPropertySymbols},function(t,e,n){var r=n(28);t.exports=Array.isArray||function(t){return"Array"==r(t)}},function(t,e,n){var r=n(6)("iterator"),o=!1;try{var i=[7][r]();i.return=function(){o=!0},Array.from(i,(function(){throw 2}))}catch(t){}t.exports=function(t,e){if(!e&&!o)return!1;var n=!1;try{var i=[7],a=i[r]();a.next=function(){return{done:n=!0}},i[r]=function(){return a},t(i)}catch(t){}return n}},function(t,e,n){"use strict";var r=n(4);t.exports=function(){var t=r(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e}},function(t,e,n){"use strict";var r=n(63),o=RegExp.prototype.exec;t.exports=function(t,e){var n=t.exec;if("function"==typeof n){var i=n.call(t,e);if("object"!=typeof i)throw new TypeError("RegExp exec method returned something other than an Object or null");return i}if("RegExp"!==r(t))throw new TypeError("RegExp#exec called on incompatible receiver");return o.call(t,e)}},function(t,e,n){"use strict";n(153);var r=n(14),o=n(17),i=n(3),a=n(29),s=n(6),u=n(108),c=s("species"),l=!i((function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")})),f=function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var n="ab".split(t);return 2===n.length&&"a"===n[0]&&"b"===n[1]}();t.exports=function(t,e,n){var h=s(t),p=!i((function(){var e={};return e[h]=function(){return 7},7!=""[t](e)})),d=p?!i((function(){var e=!1,n=/a/;return n.exec=function(){return e=!0,null},"split"===t&&(n.constructor={},n.constructor[c]=function(){return n}),n[h](""),!e})):void 0;if(!p||!d||"replace"===t&&!l||"split"===t&&!f){var v=/./[h],y=n(a,h,""[t],(function(t,e,n,r,o){return e.exec===u?p&&!o?{done:!0,value:v.call(e,n,r)}:{done:!0,value:t.call(n,e,r)}:{done:!1}})),g=y[0],m=y[1];r(String.prototype,t,g),o(RegExp.prototype,h,2==e?function(t,e){return m.call(t,this,e)}:function(t){return m.call(t,this)})}}},function(t,e,n){var r=n(21),o=n(148),i=n(103),a=n(4),s=n(7),u=n(105),c={},l={};(e=t.exports=function(t,e,n,f,h){var p,d,v,y,g=h?function(){return t}:u(t),m=r(n,f,e?2:1),_=0;if("function"!=typeof g)throw TypeError(t+" is not iterable!");if(i(g)){for(p=s(t.length);p>_;_++)if((y=e?m(a(d=t[_])[0],d[1]):m(t[_]))===c||y===l)return y}else for(v=g.call(t);!(d=v.next()).done;)if((y=o(v,m,d.value,e))===c||y===l)return y}).BREAK=c,e.RETURN=l},function(t,e,n){var r=n(2).navigator;t.exports=r&&r.userAgent||""},function(t,e,n){"use strict";var r=n(2),o=n(0),i=n(14),a=n(58),s=n(34),u=n(76),c=n(57),l=n(5),f=n(3),h=n(72),p=n(53),d=n(94);t.exports=function(t,e,n,v,y,g){var m=r[t],_=m,b=y?"set":"add",w=_&&_.prototype,E={},T=function(t){var e=w[t];i(w,t,"delete"==t||"has"==t?function(t){return!(g&&!l(t))&&e.call(this,0===t?0:t)}:"get"==t?function(t){return g&&!l(t)?void 0:e.call(this,0===t?0:t)}:"add"==t?function(t){return e.call(this,0===t?0:t),this}:function(t,n){return e.call(this,0===t?0:t,n),this})};if("function"==typeof _&&(g||w.forEach&&!f((function(){(new _).entries().next()})))){var S=new _,O=S[b](g?{}:-0,1)!=S,C=f((function(){S.has(1)})),P=h((function(t){new _(t)})),k=!g&&f((function(){for(var t=new _,e=5;e--;)t[b](e,e);return!t.has(-0)}));P||((_=e((function(e,n){c(e,_,t);var r=d(new m,e,_);return null!=n&&u(n,y,r[b],r),r}))).prototype=w,w.constructor=_),(C||k)&&(T("delete"),T("has"),y&&T("get")),(k||O)&&T(b),g&&w.clear&&delete w.clear}else _=v.getConstructor(e,t,y,b),a(_.prototype,n),s.NEED=!0;return p(_,t),E[t]=_,o(o.G+o.W+o.F*(_!=m),E),g||v.setStrong(_,t,y),_}},function(t,e,n){for(var r,o=n(2),i=n(17),a=n(39),s=a("typed_array"),u=a("view"),c=!(!o.ArrayBuffer||!o.DataView),l=c,f=0,h="Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array".split(",");f<9;)(r=o[h[f++]])?(i(r.prototype,s,!0),i(r.prototype,u,!0)):l=!1;t.exports={ABV:c,CONSTR:l,TYPED:s,VIEW:u}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.camelize=function(t){return t.replace(/[_.-](\w|$)/g,(function(t,e){return e.toUpperCase()}))},e.startsWith=function(t,e,n){if(String.prototype.startsWith)return t.startsWith(e,n);var r=r||0;return t.indexOf(e,r)===r}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(32);e.legacyNormalizeExpression=function(t){if("string"!=typeof t||0===t.length||t.match(/^!.+!$/))return t?t.toString():t;t=String(t);var e=new RegExp("((\\|\\||>=|<=|&&|!=|>|=|<|/|-|\\+|\\*|\\^)(?=[ _]))","g");t=t.replace(e,(function(t){return r.LEGACY_CONDITIONAL_OPERATORS[t]}));var n="("+Object.keys(r.LEGACY_PREDEFINED_VARS).join("|")+")",o=new RegExp("(\\$_*[^_ ]+)|"+n,"g");return(t=t.replace(o,(function(t){return r.LEGACY_PREDEFINED_VARS[t]||t}))).replace(/[ _]+/g,"_")}},function(t,e,n){"use strict";(function(t,n){Object.defineProperty(e,"__esModule",{value:!0});var r="__lodash_hash_undefined__",o=9007199254740991,i="[object Arguments]",a="[object Boolean]",s="[object Date]",u="[object Function]",c="[object GeneratorFunction]",l="[object Map]",f="[object Number]",h="[object Object]",p="[object Promise]",d="[object RegExp]",v="[object Set]",y="[object String]",g="[object Symbol]",m="[object WeakMap]",_="[object ArrayBuffer]",b="[object DataView]",w="[object Float32Array]",E="[object Float64Array]",T="[object Int8Array]",S="[object Int16Array]",O="[object Int32Array]",C="[object Uint8Array]",P="[object Uint8ClampedArray]",k="[object Uint16Array]",j="[object Uint32Array]",A=/\w*$/,x=/^\[object .+?Constructor\]$/,R=/^(?:0|[1-9]\d*)$/,L={};L[i]=L["[object Array]"]=L[_]=L[b]=L[a]=L[s]=L[w]=L[E]=L[T]=L[S]=L[O]=L[l]=L[f]=L[h]=L[d]=L[v]=L[y]=L[g]=L[C]=L[P]=L[k]=L[j]=!0,L["[object Error]"]=L[u]=L[m]=!1;var I="object"==typeof t&&t&&t.Object===Object&&t,N="object"==typeof self&&self&&self.Object===Object&&self,M=I||N||Function("return this")(),D=e&&!e.nodeType&&e,F=D&&"object"==typeof n&&n&&!n.nodeType&&n,B=F&&F.exports===D;function V(t,e){return t.set(e[0],e[1]),t}function U(t,e){return t.add(e),t}function H(t,e,n,r){var o=-1,i=t?t.length:0;for(r&&i&&(n=t[++o]);++o<i;)n=e(n,t[o],o,t);return n}function Y(t){var e=!1;if(null!=t&&"function"!=typeof t.toString)try{e=!!(""+t)}catch(t){}return e}function z(t){var e=-1,n=Array(t.size);return t.forEach((function(t,r){n[++e]=[r,t]})),n}function W(t,e){return function(n){return t(e(n))}}function G(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=t})),n}var K,X=Array.prototype,q=Function.prototype,$=Object.prototype,J=M["__core-js_shared__"],Q=(K=/[^.]+$/.exec(J&&J.keys&&J.keys.IE_PROTO||""))?"Symbol(src)_1."+K:"",Z=q.toString,tt=$.hasOwnProperty,et=$.toString,nt=RegExp("^"+Z.call(tt).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),rt=B?M.Buffer:void 0,ot=M.Symbol,it=M.Uint8Array,at=W(Object.getPrototypeOf,Object),st=Object.create,ut=$.propertyIsEnumerable,ct=X.splice,lt=Object.getOwnPropertySymbols,ft=rt?rt.isBuffer:void 0,ht=W(Object.keys,Object),pt=Ft(M,"DataView"),dt=Ft(M,"Map"),vt=Ft(M,"Promise"),yt=Ft(M,"Set"),gt=Ft(M,"WeakMap"),mt=Ft(Object,"create"),_t=Yt(pt),bt=Yt(dt),wt=Yt(vt),Et=Yt(yt),Tt=Yt(gt),St=ot?ot.prototype:void 0,Ot=St?St.valueOf:void 0;function Ct(t){var e=-1,n=t?t.length:0;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function Pt(t){var e=-1,n=t?t.length:0;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function kt(t){var e=-1,n=t?t.length:0;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function jt(t){this.__data__=new Pt(t)}function At(t,e){var n=Wt(t)||function(t){return function(t){return function(t){return!!t&&"object"==typeof t}(t)&&Gt(t)}(t)&&tt.call(t,"callee")&&(!ut.call(t,"callee")||et.call(t)==i)}(t)?function(t,e){for(var n=-1,r=Array(t);++n<t;)r[n]=e(n);return r}(t.length,String):[],r=n.length,o=!!r;for(var a in t)!e&&!tt.call(t,a)||o&&("length"==a||Ut(a,r))||n.push(a);return n}function xt(t,e,n){var r=t[e];tt.call(t,e)&&zt(r,n)&&(void 0!==n||e in t)||(t[e]=n)}function Rt(t,e){for(var n=t.length;n--;)if(zt(t[n][0],e))return n;return-1}function Lt(t,e,n,r,o,p,m){var x;if(r&&(x=p?r(t,o,p,m):r(t)),void 0!==x)return x;if(!qt(t))return t;var R=Wt(t);if(R){if(x=function(t){var e=t.length,n=t.constructor(e);e&&"string"==typeof t[0]&&tt.call(t,"index")&&(n.index=t.index,n.input=t.input);return n}(t),!e)return function(t,e){var n=-1,r=t.length;e||(e=Array(r));for(;++n<r;)e[n]=t[n];return e}(t,x)}else{var I=Vt(t),N=I==u||I==c;if(Kt(t))return function(t,e){if(e)return t.slice();var n=new t.constructor(t.length);return t.copy(n),n}(t,e);if(I==h||I==i||N&&!p){if(Y(t))return p?t:{};if(x=function(t){return"function"!=typeof t.constructor||Ht(t)?{}:(e=at(t),qt(e)?st(e):{});var e}(N?{}:t),!e)return function(t,e){return Mt(t,Bt(t),e)}(t,function(t,e){return t&&Mt(e,$t(e),t)}(x,t))}else{if(!L[I])return p?t:{};x=function(t,e,n,r){var o=t.constructor;switch(e){case _:return Nt(t);case a:case s:return new o(+t);case b:return function(t,e){var n=e?Nt(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)}(t,r);case w:case E:case T:case S:case O:case C:case P:case k:case j:return function(t,e){var n=e?Nt(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)}(t,r);case l:return function(t,e,n){return H(e?n(z(t),!0):z(t),V,new t.constructor)}(t,r,n);case f:case y:return new o(t);case d:return function(t){var e=new t.constructor(t.source,A.exec(t));return e.lastIndex=t.lastIndex,e}(t);case v:return function(t,e,n){return H(e?n(G(t),!0):G(t),U,new t.constructor)}(t,r,n);case g:return i=t,Ot?Object(Ot.call(i)):{}}var i}(t,I,Lt,e)}}m||(m=new jt);var M=m.get(t);if(M)return M;if(m.set(t,x),!R)var D=n?function(t){return function(t,e,n){var r=e(t);return Wt(t)?r:function(t,e){for(var n=-1,r=e.length,o=t.length;++n<r;)t[o+n]=e[n];return t}(r,n(t))}(t,$t,Bt)}(t):$t(t);return function(t,e){for(var n=-1,r=t?t.length:0;++n<r&&!1!==e(t[n],n,t););}(D||t,(function(o,i){D&&(o=t[i=o]),xt(x,i,Lt(o,e,n,r,i,t,m))})),x}function It(t){return!(!qt(t)||(e=t,Q&&Q in e))&&(Xt(t)||Y(t)?nt:x).test(Yt(t));var e}function Nt(t){var e=new t.constructor(t.byteLength);return new it(e).set(new it(t)),e}function Mt(t,e,n,r){n||(n={});for(var o=-1,i=e.length;++o<i;){var a=e[o],s=r?r(n[a],t[a],a,n,t):void 0;xt(n,a,void 0===s?t[a]:s)}return n}function Dt(t,e){var n,r,o=t.__data__;return("string"==(r=typeof(n=e))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?o["string"==typeof e?"string":"hash"]:o.map}function Ft(t,e){var n=function(t,e){return null==t?void 0:t[e]}(t,e);return It(n)?n:void 0}Ct.prototype.clear=function(){this.__data__=mt?mt(null):{}},Ct.prototype.delete=function(t){return this.has(t)&&delete this.__data__[t]},Ct.prototype.get=function(t){var e=this.__data__;if(mt){var n=e[t];return n===r?void 0:n}return tt.call(e,t)?e[t]:void 0},Ct.prototype.has=function(t){var e=this.__data__;return mt?void 0!==e[t]:tt.call(e,t)},Ct.prototype.set=function(t,e){return this.__data__[t]=mt&&void 0===e?r:e,this},Pt.prototype.clear=function(){this.__data__=[]},Pt.prototype.delete=function(t){var e=this.__data__,n=Rt(e,t);return!(n<0)&&(n==e.length-1?e.pop():ct.call(e,n,1),!0)},Pt.prototype.get=function(t){var e=this.__data__,n=Rt(e,t);return n<0?void 0:e[n][1]},Pt.prototype.has=function(t){return Rt(this.__data__,t)>-1},Pt.prototype.set=function(t,e){var n=this.__data__,r=Rt(n,t);return r<0?n.push([t,e]):n[r][1]=e,this},kt.prototype.clear=function(){this.__data__={hash:new Ct,map:new(dt||Pt),string:new Ct}},kt.prototype.delete=function(t){return Dt(this,t).delete(t)},kt.prototype.get=function(t){return Dt(this,t).get(t)},kt.prototype.has=function(t){return Dt(this,t).has(t)},kt.prototype.set=function(t,e){return Dt(this,t).set(t,e),this},jt.prototype.clear=function(){this.__data__=new Pt},jt.prototype.delete=function(t){return this.__data__.delete(t)},jt.prototype.get=function(t){return this.__data__.get(t)},jt.prototype.has=function(t){return this.__data__.has(t)},jt.prototype.set=function(t,e){var n=this.__data__;if(n instanceof Pt){var r=n.__data__;if(!dt||r.length<199)return r.push([t,e]),this;n=this.__data__=new kt(r)}return n.set(t,e),this};var Bt=lt?W(lt,Object):function(){return[]},Vt=function(t){return et.call(t)};function Ut(t,e){return!!(e=null==e?o:e)&&("number"==typeof t||R.test(t))&&t>-1&&t%1==0&&t<e}function Ht(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||$)}function Yt(t){if(null!=t){try{return Z.call(t)}catch(t){}try{return""+t}catch(t){}}return""}function zt(t,e){return t===e||t!=t&&e!=e}(pt&&Vt(new pt(new ArrayBuffer(1)))!=b||dt&&Vt(new dt)!=l||vt&&Vt(vt.resolve())!=p||yt&&Vt(new yt)!=v||gt&&Vt(new gt)!=m)&&(Vt=function(t){var e=et.call(t),n=e==h?t.constructor:void 0,r=n?Yt(n):void 0;if(r)switch(r){case _t:return b;case bt:return l;case wt:return p;case Et:return v;case Tt:return m}return e});var Wt=Array.isArray;function Gt(t){return null!=t&&function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=o}(t.length)&&!Xt(t)}var Kt=ft||function(){return!1};function Xt(t){var e=qt(t)?et.call(t):"";return e==u||e==c}function qt(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}function $t(t){return Gt(t)?At(t):function(t){if(!Ht(t))return ht(t);var e=[];for(var n in Object(t))tt.call(t,n)&&"constructor"!=n&&e.push(n);return e}(t)}e.cloneDeep=function(t){return Lt(t,!0,!0)}}).call(this,n(35),n(393)(t))},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isString=function(t){return"string"==typeof t||t instanceof String},e.mapToSortedArray=function(t,e){var n=Array.from(t.entries());return e.forEach((function(t){n.push(["fl",t])})),n.sort().map((function(t){return t[1]}))}},function(t,e,n){"use strict";function r(t){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r(t)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o,i=(o=n(184))&&o.__esModule?o:{default:o},a=n(31),s=n(12);function u(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function c(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function l(t,e){return l=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},l(t,e)}function f(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=p(t);if(e){var o=p(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return h(this,n)}}function h(t,e){if(e&&("object"===r(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function p(t){return p=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},p(t)}var d=RegExp("\\.(".concat(["jpg","png","gif","webp"].join("|"),")$$")),v={resource_type:"image",type:"upload",transformation:[]},y=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&l(t,e)}(i,t);var e,n,r,o=f(i);function i(t){var e,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};c(this,i);var r=(0,a.normalizeOptions)(t,n);return t=r.publicId,n=r.options,t=t.replace(d,""),n=(0,s.assign)({},v,n),(e=o.call(this,t,n))._type="ImageSource",e}return e=i,n&&u(e.prototype,n),r&&u(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}(i.default),g=y;e.default=g},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.some=e.map=e.forEach=e.castArray=void 0;e.castArray=function(t){return Array.isArray(t)?t:[t]};e.forEach=function(t,e){Array.isArray(t)&&t.length&&t.forEach(e)};e.some=function(t,e){return!(!Array.isArray(t)||!t.length)&&t.some(e)};e.map=function(t,e){if(Array.isArray(t)&&t.length)return t.map(e)}},function(t,e,n){"use strict";function r(t){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r(t)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=v(n(184)),i=v(n(84)),a=n(31),s=n(20),u=n(12),c=n(131),l=v(n(1)),f=n(118),h=n(437),p=n(85),d=n(27);function v(t){return t&&t.__esModule?t:{default:t}}function y(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null==n)return;var r,o,i=[],a=!0,s=!1;try{for(n=n.call(t);!(a=(r=n.next()).done)&&(i.push(r.value),!e||i.length!==e);a=!0);}catch(t){s=!0,o=t}finally{try{a||null==n.return||n.return()}finally{if(s)throw o}}return i}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return g(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return g(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function g(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function m(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function _(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function b(t,e){return b=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},b(t,e)}function w(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=T(t);if(e){var o=T(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return E(this,n)}}function E(t,e){if(e&&("object"===r(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function T(t){return T=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},T(t)}var S=0,O=function(){return S++},C=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&b(t,e)}(v,t);var e,n,r,o=w(v);function v(t){var e,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};m(this,v);var r=(0,a.isRawUrl)(t),i=(0,a.normalizeOptions)(t,n),c=i.publicId,l=i.options;r||(c=c.replace(f.VIDEO_SUFFIX_REMOVAL_PATTERN,"")),(l=(0,u.assign)({},f.DEFAULT_VIDEO_PARAMS,l)).poster||(l.poster=(0,u.assign)({publicId:c},f.DEFAULT_POSTER_PARAMS));var h=(0,s.sliceAndUnsetProperties)(l,"poster","sourceTypes","sourceTransformation","info","recommendations","textTracks","withCredentials","interactionAreas"),p=h.poster,y=h.sourceTypes,g=h.sourceTransformation,_=h.info,b=h.recommendations,w=h.textTracks,E=h.withCredentials,T=h.interactionAreas;return(e=o.call(this,c,l))._sourceTypes=null,e._recommendations=null,e._textTracks=null,e._poster=null,e._info=null,e._sourceTransformation=null,e._interactionAreas=null,e._type=d.SOURCE_TYPE.VIDEO,e.isRawUrl=r,e._rawTransformation=l.raw_transformation,e.withCredentials=!!E,e.getInitOptions=function(){return n},e.poster(p),e.sourceTypes(y),e.sourceTransformation(g),e.info(_),e.interactionAreas(T),e.recommendations(b),e.textTracks(w),e.objectId=O(),e}return e=v,n=[{key:"textTracks",value:function(t){return void 0===t?this._textTracks:(this._textTracks=t,this)}},{key:"recommendations",value:function(t){return void 0===t?this._recommendations:(this._recommendations=t,this)}},{key:"sourceTypes",value:function(t){return t?(this._sourceTypes=t,this):this._sourceTypes}},{key:"info",value:function(t){return t?(this._info=t,this):this._info}},{key:"interactionAreas",value:function(t){return t?(this._interactionAreas=t,this):this._interactionAreas}},{key:"sourceTransformation",value:function(t){return t?(this._sourceTransformation=t,this):this._sourceTransformation}},{key:"poster",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!t)return this._poster;if(t instanceof i.default)return this._poster=t,this;var n=(0,a.normalizeOptions)(t,e,{tolerateMissingId:!0});return t=n.publicId,e=n.options,t||(t=this.publicId(),e=(0,u.assign)({},e,f.DEFAULT_POSTER_PARAMS)),e.cloudinaryConfig=e.cloudinaryConfig||this.cloudinaryConfig(),this._poster=new i.default(t,e),this}},{key:"contains",value:function(t){return this.generateSources().some((function(e){return(0,a.isSrcEqual)(e,t)}))}},{key:"generateSources",value:function(){var t=this;if(this.isRawUrl){var e=this.sourceTypes().length>1?null:this.sourceTypes()[0];return[this.generateRawSource(this.publicId(),e)]}var n=this.sourceTypes().map((function(e){var n=t.sourceTransformation()[e]||t.transformation(),r=(0,h.normalizeFormat)(e),o=-1!==["mpd","m3u8"].indexOf(r),i={};n&&(i.transformation=(0,p.castArray)(n)),(0,u.assign)(i,{resource_type:"video",format:r});var s=y((0,h.formatToMimeTypeAndTransformation)(e),2),l=s[0],f=s[1];f&&!(0,h.isCodecAlreadyExist)(i.transformation,t._rawTransformation)&&(i.transformation=(0,a.mergeTransformations)(i.transformation,f)),"auto"===i.format&&delete i.format;var d=t.queryParams()?(0,c.objectToQuerystring)(t.queryParams()):"",v=t.config().url(t.publicId(),i),g=v.indexOf("?")>-1?d.replace("?","&"):d;return{type:l,src:v+g,cldSrc:t,isAdaptive:o,withCredentials:t.withCredentials}}));return"undefined"!=typeof navigator&&(/MSIE/.test(navigator.userAgent)||/Trident\//.test(navigator.appVersion))?n.filter((function(t){return'video/mp4; codec="hev1.1.6.L93.B0"'!==t.type})):l.default.browser.IS_ANY_SAFARI?n.filter((function(t){return-1===t.type.indexOf("application/dash+xml")})):n}},{key:"generateRawSource",value:function(t,e){var n=e||t.split(".").pop(),r=!!f.CONTAINER_MIME_TYPES[n];return{type:e=r?f.CONTAINER_MIME_TYPES[n][0]:e?"video/".concat(e):null,src:t,cldSrc:this,isAdaptive:r,withCredentials:this.withCredentials}}},{key:"getInteractionAreas",value:function(){return this._interactionAreas}}],n&&_(e.prototype,n),r&&_(e,r),Object.defineProperty(e,"prototype",{writable:!1}),v}(o.default),P=C;e.default=P},function(t,e,n){var r=n(5),o=n(2).document,i=r(o)&&r(o.createElement);t.exports=function(t){return i?o.createElement(t):{}}},function(t,e,n){e.f=n(6)},function(t,e,n){var r=n(68)("keys"),o=n(39);t.exports=function(t){return r[t]||(r[t]=o(t))}},function(t,e){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(t,e,n){var r=n(2).document;t.exports=r&&r.documentElement},function(t,e,n){var r=n(5),o=n(4),i=function(t,e){if(o(t),!r(e)&&null!==e)throw TypeError(e+": can't set as prototype!")};t.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(t,e,r){try{(r=n(21)(Function.call,n(24).f(Object.prototype,"__proto__").set,2))(t,[]),e=!(t instanceof Array)}catch(t){e=!0}return function(t,n){return i(t,n),e?t.__proto__=n:r(t,n),t}}({},!1):void 0),check:i}},function(t,e){t.exports="\t\n\v\f\r   ᠎              \u2028\u2029\ufeff"},function(t,e,n){var r=n(5),o=n(92).set;t.exports=function(t,e,n){var i,a=e.constructor;return a!==n&&"function"==typeof a&&(i=a.prototype)!==n.prototype&&r(i)&&o&&o(t,i),t}},function(t,e,n){"use strict";var r=n(23),o=n(29);t.exports=function(t){var e=String(o(this)),n="",i=r(t);if(i<0||i==1/0)throw RangeError("Count can't be negative");for(;i>0;(i>>>=1)&&(e+=e))1&i&&(n+=e);return n}},function(t,e){t.exports=Math.sign||function(t){return 0==(t=+t)||t!=t?t:t<0?-1:1}},function(t,e){var n=Math.expm1;t.exports=!n||n(10)>22025.465794806718||n(10)<22025.465794806718||-2e-17!=n(-2e-17)?function(t){return 0==(t=+t)?t:t>-1e-6&&t<1e-6?t+t*t/2:Math.exp(t)-1}:n},function(t,e,n){var r=n(23),o=n(29);t.exports=function(t){return function(e,n){var i,a,s=String(o(e)),u=r(n),c=s.length;return u<0||u>=c?t?"":void 0:(i=s.charCodeAt(u))<55296||i>56319||u+1===c||(a=s.charCodeAt(u+1))<56320||a>57343?t?s.charAt(u):i:t?s.slice(u,u+2):a-56320+(i-55296<<10)+65536}}},function(t,e,n){"use strict";var r=n(40),o=n(0),i=n(14),a=n(17),s=n(55),u=n(147),c=n(53),l=n(45),f=n(6)("iterator"),h=!([].keys&&"next"in[].keys()),p="keys",d="values",v=function(){return this};t.exports=function(t,e,n,y,g,m,_){u(n,e,y);var b,w,E,T=function(t){if(!h&&t in P)return P[t];switch(t){case p:case d:return function(){return new n(this,t)}}return function(){return new n(this,t)}},S=e+" Iterator",O=g==d,C=!1,P=t.prototype,k=P[f]||P["@@iterator"]||g&&P[g],j=k||T(g),A=g?O?T("entries"):j:void 0,x="Array"==e&&P.entries||k;if(x&&(E=l(x.call(new t)))!==Object.prototype&&E.next&&(c(E,S,!0),r||"function"==typeof E[f]||a(E,f,v)),O&&k&&k.name!==d&&(C=!0,j=function(){return k.call(this)}),r&&!_||!h&&!C&&P[f]||a(P,f,j),s[e]=j,s[S]=v,g)if(b={values:O?j:T(d),keys:m?j:T(p),entries:A},_)for(w in b)w in P||i(P,w,b[w]);else o(o.P+o.F*(h||C),e,b);return b}},function(t,e,n){var r=n(101),o=n(29);t.exports=function(t,e,n){if(r(e))throw TypeError("String#"+n+" doesn't accept regex!");return String(o(t))}},function(t,e,n){var r=n(5),o=n(28),i=n(6)("match");t.exports=function(t){var e;return r(t)&&(void 0!==(e=t[i])?!!e:"RegExp"==o(t))}},function(t,e,n){var r=n(6)("match");t.exports=function(t){var e=/./;try{"/./"[t](e)}catch(n){try{return e[r]=!1,!"/./"[t](e)}catch(t){}}return!0}},function(t,e,n){var r=n(55),o=n(6)("iterator"),i=Array.prototype;t.exports=function(t){return void 0!==t&&(r.Array===t||i[o]===t)}},function(t,e,n){"use strict";var r=n(10),o=n(38);t.exports=function(t,e,n){e in t?r.f(t,e,o(0,n)):t[e]=n}},function(t,e,n){var r=n(63),o=n(6)("iterator"),i=n(55);t.exports=n(8).getIteratorMethod=function(t){if(null!=t)return t[o]||t["@@iterator"]||i[r(t)]}},function(t,e,n){"use strict";var r=n(11),o=n(42),i=n(7);t.exports=function(t){for(var e=r(this),n=i(e.length),a=arguments.length,s=o(a>1?arguments[1]:void 0,n),u=a>2?arguments[2]:void 0,c=void 0===u?n:o(u,n);c>s;)e[s++]=t;return e}},function(t,e,n){"use strict";var r=n(46),o=n(152),i=n(55),a=n(18);t.exports=n(99)(Array,"Array",(function(t,e){this._t=a(t),this._i=0,this._k=e}),(function(){var t=this._t,e=this._k,n=this._i++;return!t||n>=t.length?(this._t=void 0,o(1)):o(0,"keys"==e?n:"values"==e?t[n]:[n,t[n]])}),"values"),i.Arguments=i.Array,r("keys"),r("values"),r("entries")},function(t,e,n){"use strict";var r,o,i=n(73),a=RegExp.prototype.exec,s=String.prototype.replace,u=a,c=(r=/a/,o=/b*/g,a.call(r,"a"),a.call(o,"a"),0!==r.lastIndex||0!==o.lastIndex),l=void 0!==/()??/.exec("")[1];(c||l)&&(u=function(t){var e,n,r,o,u=this;return l&&(n=new RegExp("^"+u.source+"$(?!\\s)",i.call(u))),c&&(e=u.lastIndex),r=a.call(u,t),c&&r&&(u.lastIndex=u.global?r.index+r[0].length:e),l&&r&&r.length>1&&s.call(r[0],n,(function(){for(o=1;o<arguments.length-2;o++)void 0===arguments[o]&&(r[o]=void 0)})),r}),t.exports=u},function(t,e,n){"use strict";var r=n(98)(!0);t.exports=function(t,e,n){return e+(n?r(t,e).length:1)}},function(t,e,n){var r,o,i,a=n(21),s=n(141),u=n(91),c=n(87),l=n(2),f=l.process,h=l.setImmediate,p=l.clearImmediate,d=l.MessageChannel,v=l.Dispatch,y=0,g={},m="onreadystatechange",_=function(){var t=+this;if(g.hasOwnProperty(t)){var e=g[t];delete g[t],e()}},b=function(t){_.call(t.data)};h&&p||(h=function(t){for(var e=[],n=1;arguments.length>n;)e.push(arguments[n++]);return g[++y]=function(){s("function"==typeof t?t:Function(t),e)},r(y),y},p=function(t){delete g[t]},"process"==n(28)(f)?r=function(t){f.nextTick(a(_,t,1))}:v&&v.now?r=function(t){v.now(a(_,t,1))}:d?(i=(o=new d).port2,o.port1.onmessage=b,r=a(i.postMessage,i,1)):l.addEventListener&&"function"==typeof postMessage&&!l.importScripts?(r=function(t){l.postMessage(t+"","*")},l.addEventListener("message",b,!1)):r=m in c("script")?function(t){u.appendChild(c("script")).onreadystatechange=function(){u.removeChild(this),_.call(t)}}:function(t){setTimeout(a(_,t,1),0)}),t.exports={set:h,clear:p}},function(t,e,n){"use strict";var r=n(2),o=n(9),i=n(40),a=n(79),s=n(17),u=n(58),c=n(3),l=n(57),f=n(23),h=n(7),p=n(160),d=n(44).f,v=n(10).f,y=n(106),g=n(53),m="ArrayBuffer",_="DataView",b="Wrong index!",w=r.ArrayBuffer,E=r.DataView,T=r.Math,S=r.RangeError,O=r.Infinity,C=w,P=T.abs,k=T.pow,j=T.floor,A=T.log,x=T.LN2,R="buffer",L="byteLength",I="byteOffset",N=o?"_b":R,M=o?"_l":L,D=o?"_o":I;function F(t,e,n){var r,o,i,a=new Array(n),s=8*n-e-1,u=(1<<s)-1,c=u>>1,l=23===e?k(2,-24)-k(2,-77):0,f=0,h=t<0||0===t&&1/t<0?1:0;for((t=P(t))!=t||t===O?(o=t!=t?1:0,r=u):(r=j(A(t)/x),t*(i=k(2,-r))<1&&(r--,i*=2),(t+=r+c>=1?l/i:l*k(2,1-c))*i>=2&&(r++,i/=2),r+c>=u?(o=0,r=u):r+c>=1?(o=(t*i-1)*k(2,e),r+=c):(o=t*k(2,c-1)*k(2,e),r=0));e>=8;a[f++]=255&o,o/=256,e-=8);for(r=r<<e|o,s+=e;s>0;a[f++]=255&r,r/=256,s-=8);return a[--f]|=128*h,a}function B(t,e,n){var r,o=8*n-e-1,i=(1<<o)-1,a=i>>1,s=o-7,u=n-1,c=t[u--],l=127&c;for(c>>=7;s>0;l=256*l+t[u],u--,s-=8);for(r=l&(1<<-s)-1,l>>=-s,s+=e;s>0;r=256*r+t[u],u--,s-=8);if(0===l)l=1-a;else{if(l===i)return r?NaN:c?-O:O;r+=k(2,e),l-=a}return(c?-1:1)*r*k(2,l-e)}function V(t){return t[3]<<24|t[2]<<16|t[1]<<8|t[0]}function U(t){return[255&t]}function H(t){return[255&t,t>>8&255]}function Y(t){return[255&t,t>>8&255,t>>16&255,t>>24&255]}function z(t){return F(t,52,8)}function W(t){return F(t,23,4)}function G(t,e,n){v(t.prototype,e,{get:function(){return this[n]}})}function K(t,e,n,r){var o=p(+n);if(o+e>t[M])throw S(b);var i=t[N]._b,a=o+t[D],s=i.slice(a,a+e);return r?s:s.reverse()}function X(t,e,n,r,o,i){var a=p(+n);if(a+e>t[M])throw S(b);for(var s=t[N]._b,u=a+t[D],c=r(+o),l=0;l<e;l++)s[u+l]=c[i?l:e-l-1]}if(a.ABV){if(!c((function(){w(1)}))||!c((function(){new w(-1)}))||c((function(){return new w,new w(1.5),new w(NaN),w.name!=m}))){for(var q,$=(w=function(t){return l(this,w),new C(p(t))}).prototype=C.prototype,J=d(C),Q=0;J.length>Q;)(q=J[Q++])in w||s(w,q,C[q]);i||($.constructor=w)}var Z=new E(new w(2)),tt=E.prototype.setInt8;Z.setInt8(0,2147483648),Z.setInt8(1,2147483649),!Z.getInt8(0)&&Z.getInt8(1)||u(E.prototype,{setInt8:function(t,e){tt.call(this,t,e<<24>>24)},setUint8:function(t,e){tt.call(this,t,e<<24>>24)}},!0)}else w=function(t){l(this,w,m);var e=p(t);this._b=y.call(new Array(e),0),this[M]=e},E=function(t,e,n){l(this,E,_),l(t,w,_);var r=t[M],o=f(e);if(o<0||o>r)throw S("Wrong offset!");if(o+(n=void 0===n?r-o:h(n))>r)throw S("Wrong length!");this[N]=t,this[D]=o,this[M]=n},o&&(G(w,L,"_l"),G(E,R,"_b"),G(E,L,"_l"),G(E,I,"_o")),u(E.prototype,{getInt8:function(t){return K(this,1,t)[0]<<24>>24},getUint8:function(t){return K(this,1,t)[0]},getInt16:function(t){var e=K(this,2,t,arguments[1]);return(e[1]<<8|e[0])<<16>>16},getUint16:function(t){var e=K(this,2,t,arguments[1]);return e[1]<<8|e[0]},getInt32:function(t){return V(K(this,4,t,arguments[1]))},getUint32:function(t){return V(K(this,4,t,arguments[1]))>>>0},getFloat32:function(t){return B(K(this,4,t,arguments[1]),23,4)},getFloat64:function(t){return B(K(this,8,t,arguments[1]),52,8)},setInt8:function(t,e){X(this,1,t,U,e)},setUint8:function(t,e){X(this,1,t,U,e)},setInt16:function(t,e){X(this,2,t,H,e,arguments[2])},setUint16:function(t,e){X(this,2,t,H,e,arguments[2])},setInt32:function(t,e){X(this,4,t,Y,e,arguments[2])},setUint32:function(t,e){X(this,4,t,Y,e,arguments[2])},setFloat32:function(t,e){X(this,4,t,W,e,arguments[2])},setFloat64:function(t,e){X(this,8,t,z,e,arguments[2])}});g(w,m),g(E,_),s(E.prototype,a.VIEW,!0),e.ArrayBuffer=w,e.DataView=E},function(t,e){var n=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,e,n){t.exports=!n(165)((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.overrideDefaultVideojsComponents=e.normalizeAutoplay=e.isLight=e.getResolveVideoElement=e.extractOptions=e.addMetadataTrack=void 0;var r=c(n(1)),o=c(n(166)),i=c(n(130)),a=n(60),s=n(13),u=c(n(403));function c(t){return t&&t.__esModule?t:{default:t}}function l(t){return function(t){if(Array.isArray(t))return f(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return f(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return f(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function f(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}e.addMetadataTrack=function(t,e){return t.addRemoteTextTrack({kind:"metadata",srclang:"en",src:e,default:!0},!0).track};e.isLight=function(t){return t.class.indexOf("cld-video-player-skin-light")>-1||"light"===t.skin};e.getResolveVideoElement=function(t){if((0,s.isString)(t)){var e=t;0===e.indexOf("#")&&(e=e.slice(1));try{t=document.querySelector("#".concat((0,u.default)(e)))||r.default.getPlayer(e)}catch(e){t=null}if(!t)throw new Error("Could not find element with id ".concat(e))}if(!t.tagName)throw new Error("Must specify either an element or an element id.");if("VIDEO"!==t.tagName)throw new Error("Element is not a video tag.");return t};var h=function(t){var e=t.autoplayMode;if(e)switch(e){case a.AUTO_PLAY_MODE.ALWAYS:t.autoplay=!0;break;case a.AUTO_PLAY_MODE.ON_SCROLL:case a.AUTO_PLAY_MODE.NEVER:default:t.autoplay=!1}};e.normalizeAutoplay=h;e.extractOptions=function(t,e){var n=o.default.normalizeAttributes(t);(r.default.dom.hasClass(t,a.FLUID_CLASS_NAME)||r.default.dom.hasClass(t,"vjs-fluid"))&&(e.fluid=!0),e=o.default.assign({},a.DEFAULT_HLS_OPTIONS,i.default,n,e),h(e);var s=o.default.sliceAndUnsetProperties.apply(o.default,[e].concat(l(a.PLAYER_PARAMS)));return s.cloudinary=o.default.sliceAndUnsetProperties.apply(o.default,[s].concat(l(a.CLOUDINARY_PARAMS))),e.videojs&&(o.default.assign(e,e.videojs),delete e.videojs),{playerOptions:s,videojsOptions:e}};e.overrideDefaultVideojsComponents=function(){var t=r.default.getComponent("Player").prototype.options_.children;t.push("titleBar"),t.push("upcomingVideoOverlay"),t.push("recommendationsOverlay");var e=r.default.getComponent("ControlBar");e&&((t=e.prototype.options_.children).splice(t.indexOf("progressControl"),0,"spacer","progressControlEventsBlocker"),t.splice(t.indexOf("playToggle"),1,"playlistPreviousButton","JumpBackButton","playToggle","JumpForwardButton","playlistNextButton"),t.splice(t.indexOf("fullscreenToggle"),1,"logoButton","fullscreenToggle"))}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isKeyInTransformation=e.handleCldError=e.filterAndAddTextTracks=void 0;var r=s(n(117)),o=s(n(168)),i=n(31),a=n(128);function s(t){return t&&t.__esModule?t:{default:t}}var u=(0,o.default)({Promise:r.default}).fetch,c={method:"head"},l={method:"get",credentials:"include",headers:{"Content-Range":"bytes=0-0"}};function f(t){for(var e={strictMode:!1,key:["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"],q:{name:"queryKey",parser:/(?:^|&)([^&=]*)=?([^&]*)/g},parser:{strict:/^(?:([^:\/?#]+):)?(?:\/\/((?:(([^:@]*)(?::([^:@]*))?)?@)?([^:\/?#]*)(?::(\d*))?))?((((?:[^?#\/]*\/)*)([^?#]*))(?:\?([^#]*))?(?:#(.*))?)/,loose:/^(?:(?![^:@]+:[^:@\/]*@)([^:\/?#.]+):)?(?:\/\/)?((?:(([^:@]*)(?::([^:@]*))?)?@)?([^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/}},n=e.parser[e.strictMode?"strict":"loose"].exec(t),r={},o=14;o--;)r[e.key[o]]=n[o]||"";return r[e.q.name]={},r[e.key[12]].replace(e.q.parser,(function(t,n,o){n&&(r[e.q.name][n]=o)})),r}e.handleCldError=function(t,e){var n=e.fetchErrorUsingGet?l:c,o=t.videojs.cloudinary.getCurrentSources();o.length>0?r.default.all(o.map((function(t){return u(t.src,n)}))).then((function(e){var n=function(t){return t.reduce((function(t,e){if(e.status>=200&&e.status<399&&""!==e.url){var n=f(e.url);t.push(n.host+n.path)}return t}),[])}(e),r=e[0];if(n.length){var a=function(t,e){return t.filter((function(t){var n=f(t.src);return-1!==e.indexOf(n.host+n.path)&&!0!==t.try}))}(o,n);a&&a.length?function(t,e){JSON.stringify(e),e.forEach((function(t){t.try=!0})),t.videojs.autoplay(t.videojs.autoplay()||t.playWasCalled),t.videojs.src(e)}(t,a):t.videojs.error({code:i.ERROR_CODE.NO_SUPPORTED_MEDIA,message:"No supported media sources",statusCode:e.status})}else!function(t,e){t.videojs.error((0,i.cloudinaryErrorsConverter)({errorMsg:e.headers.get("x-cld-error")||"",publicId:t.currentPublicId(),cloudName:t.cloudinaryConfig().cloud_name,error:e,statusCode:e.status}))}(t,r)})).catch((function(e){t.videojs.error({code:7,message:e&&e.message?e.message:"Failed to test sources"})})):t.videojs.error({code:i.ERROR_CODE.NO_SUPPORTED_MEDIA,message:"No supported media sources"})};e.isKeyInTransformation=function t(e,n){return!(!e||!n)&&(Array.isArray(e)?!!(0,a.find)(e,(function(e){return t(e,n)})):e.getValue?!!e.getValue(n):!!e[n])};e.filterAndAddTextTracks=function(t,e){t.forEach((function(t){u(t.src,c).then((function(n){n.status>=200&&n.status<=399&&e.addRemoteTextTrack(t,!0)}))}))}},function(t,e,n){"use strict";n.r(e),function(t){var r=n(191),o=n(192),i=setTimeout,a=void 0!==t?t:null;function s(t){return Boolean(t&&void 0!==t.length)}function u(){}function c(t){if(!(this instanceof c))throw new TypeError("Promises must be constructed via new");if("function"!=typeof t)throw new TypeError("not a function");this._state=0,this._handled=!1,this._value=void 0,this._deferreds=[],v(t,this)}function l(t,e){for(;3===t._state;)t=t._value;0!==t._state?(t._handled=!0,c._immediateFn((function(){var n=1===t._state?e.onFulfilled:e.onRejected;if(null!==n){var r;try{r=n(t._value)}catch(t){return void h(e.promise,t)}f(e.promise,r)}else(1===t._state?f:h)(e.promise,t._value)}))):t._deferreds.push(e)}function f(t,e){try{if(e===t)throw new TypeError("A promise cannot be resolved with itself.");if(e&&("object"==typeof e||"function"==typeof e)){var n=e.then;if(e instanceof c)return t._state=3,t._value=e,void p(t);if("function"==typeof n)return void v((r=n,o=e,function(){r.apply(o,arguments)}),t)}t._state=1,t._value=e,p(t)}catch(e){h(t,e)}var r,o}function h(t,e){t._state=2,t._value=e,p(t)}function p(t){2===t._state&&0===t._deferreds.length&&c._immediateFn((function(){t._handled||c._unhandledRejectionFn(t._value)}));for(var e=0,n=t._deferreds.length;e<n;e++)l(t,t._deferreds[e]);t._deferreds=null}function d(t,e,n){this.onFulfilled="function"==typeof t?t:null,this.onRejected="function"==typeof e?e:null,this.promise=n}function v(t,e){var n=!1;try{t((function(t){n||(n=!0,f(e,t))}),(function(t){n||(n=!0,h(e,t))}))}catch(t){if(n)return;n=!0,h(e,t)}}c.prototype.catch=function(t){return this.then(null,t)},c.prototype.then=function(t,e){var n=new this.constructor(u);return l(this,new d(t,e,n)),n},c.prototype.finally=r.a,c.all=function(t){return new c((function(e,n){if(!s(t))return n(new TypeError("Promise.all accepts an array"));var r=Array.prototype.slice.call(t);if(0===r.length)return e([]);var o=r.length;function i(t,a){try{if(a&&("object"==typeof a||"function"==typeof a)){var s=a.then;if("function"==typeof s)return void s.call(a,(function(e){i(t,e)}),n)}r[t]=a,0==--o&&e(r)}catch(t){n(t)}}for(var a=0;a<r.length;a++)i(a,r[a])}))},c.allSettled=o.a,c.resolve=function(t){return t&&"object"==typeof t&&t.constructor===c?t:new c((function(e){e(t)}))},c.reject=function(t){return new c((function(e,n){n(t)}))},c.race=function(t){return new c((function(e,n){if(!s(t))return n(new TypeError("Promise.race accepts an array"));for(var r=0,o=t.length;r<o;r++)c.resolve(t[r]).then(e,n)}))},c._immediateFn="function"==typeof a&&function(t){a(t)}||function(t){i(t,0)},c._unhandledRejectionFn=function(t){"undefined"!=typeof console&&console},e.default=c}.call(this,n(389).setImmediate)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.VIDEO_SUFFIX_REMOVAL_PATTERN=e.URL_PATTERN=e.FORMAT_MAPPINGS=e.DEFAULT_VIDEO_PARAMS=e.DEFAULT_POSTER_PARAMS=e.CONTAINER_MIME_TYPES=void 0;e.DEFAULT_POSTER_PARAMS={format:"jpg",resource_type:"video"};var r=["webm/vp9","mp4/h265","mp4"],o={resource_type:"video",type:"upload",transformation:[],sourceTransformation:{},sourceTypes:r,recommendations:null,info:{},interactionAreas:{}};e.DEFAULT_VIDEO_PARAMS=o;var i=RegExp("\\.(".concat(r.join("|"),")$$"));e.VIDEO_SUFFIX_REMOVAL_PATTERN=i;var a=RegExp("https?:\\/\\/(www\\.)?[-a-zA-Z0-9@:%._+~#=]{1,256}\\.[a-zA-Z0-9()]{1,6}\\b([-a-zA-Z0-9()@:%_+.~#?&/=]*)");e.URL_PATTERN=a;e.CONTAINER_MIME_TYPES={dash:["application/dash+xml"],hls:["application/x-mpegURL"],mpd:["application/dash+xml"],m3u8:["application/x-mpegURL"]};e.FORMAT_MAPPINGS={hls:"m3u8",dash:"mpd"}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(49),o=n(48);e.processCustomFunction=function(t){if(!o.isObject(t))return t;if("remote"===t.function_type){var e=r.base64Encode(t.source).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"");return[t.function_type,e].join(":")}return[t.function_type,t.source].join(":")}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(36),o=n(121),i=n(122),a=n(82),s=n(123),u=n(37),c=n(67),l=n(51),f=n(66),h=n(124),p=n(125),d=n(48),v=n(83),y=n(52),g=n(126);n(50),n(59),n(49);var m=["accessibility","api_secret","auth_token","cdn_subdomain","cloud_name","cname","format","placeholder","private_cdn","resource_type","secure","secure_cdn_subdomain","secure_distribution","shorten","sign_url","signature","ssl_detected","type","url_suffix","use_root_path","version"];function _(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return e.forEach((function(e){Object.keys(e).forEach((function(n){null!=e[n]&&(t[n]=e[n])}))})),t}var b=function(){function t(t,e,n){void 0===n&&(n=s.identity),this.name=t,this.shortName=e,this.process=n}return t.prototype.set=function(t){return this.origValue=t,this},t.prototype.serialize=function(){var t,e;return t=this.value(),e=Array.isArray(t)||d.isObject(t)||v.isString(t)?!y.isEmpty(t):null!=t,null!=this.shortName&&e?this.shortName+"_"+t:""},t.prototype.value=function(){return this.process(this.origValue)},t.norm_color=function(t){return null!=t?t.replace(/^#/,"rgb:"):void 0},t.build_array=function(t){return null==t?[]:Array.isArray(t)?t:[t]},t.process_video_params=function(t){var e;switch(t.constructor){case Object:return e="","codec"in t&&(e=t.codec,"profile"in t&&(e+=":"+t.profile,"level"in t&&(e+=":"+t.level))),e;case String:return t;default:return null}},t}(),w=function(t){function e(e,n,r,o){void 0===r&&(r="."),void 0===o&&(o=void 0);var i=t.call(this,e,n,o)||this;return i.sep=r,i}return r.__extends(e,t),e.prototype.serialize=function(){if(null!=this.shortName){var t=this.value();if(y.isEmpty(t))return"";if(v.isString(t))return this.shortName+"_"+t;var e=t.map((function(t){return g.isFunction(t.serialize)?t.serialize():t})).join(this.sep);return this.shortName+"_"+e}return""},e.prototype.value=function(){var t=this;return Array.isArray(this.origValue)?this.origValue.map((function(e){return t.process(e)})):this.process(this.origValue)},e.prototype.set=function(e){return null==e||Array.isArray(e)?t.prototype.set.call(this,e):t.prototype.set.call(this,[e])},e}(b),E=function(t){function e(e,n,r,o){void 0===n&&(n="t"),void 0===r&&(r="."),void 0===o&&(o=void 0);var i=t.call(this,e,n,o)||this;return i.sep=r,i}return r.__extends(e,t),e.prototype.serialize=function(){var t,e=this,n="",r=this.value();if(y.isEmpty(r))return n;if((t=r).length&&t.every(v.isString)){var o=r.join(this.sep);y.isEmpty(o)||(n=this.shortName+"_"+o)}else n=r.map((function(t){return v.isString(t)&&!y.isEmpty(t)?e.shortName+"_"+t:g.isFunction(t.serialize)?t.serialize():d.isObject(t)&&!y.isEmpty(t)?new R(t).serialize():void 0})).filter((function(t){return t}));return n},e.prototype.set=function(e){return this.origValue=e,Array.isArray(this.origValue)?t.prototype.set.call(this,this.origValue):t.prototype.set.call(this,[this.origValue])},e}(b),T=function(t){function e(n,r,o){return void 0===o&&(o=e.norm_range_value),t.call(this,n,r,o)||this}return r.__extends(e,t),e.norm_range_value=function(t){var e=String(t).match(new RegExp("^(([0-9]*)\\.([0-9]+)|([0-9]+))([%pP])?$"));if(e){var n=null!=e[5]?"p":"";t=(e[1]||e[4])+n}return t},e}(b),S=function(t){function e(e,n,r){return void 0===r&&(r=s.identity),t.call(this,e,n,r)||this}return r.__extends(e,t),e.prototype.serialize=function(){return this.value()},e}(b),O=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r.__extends(e,t),e.prototype.value=function(){if(null==this.origValue)return"";var t;if(this.origValue instanceof l)t=this.origValue;else if(d.isObject(this.origValue)){var e=s.withCamelCaseKeys(this.origValue);t="text"===e.resourceType||null!=e.text?new f(e):"subtitles"===e.resourceType?new h(e):"fetch"===e.resourceType||null!=e.url?new p(e):new l(e)}else t=v.isString(this.origValue)?/^fetch:.+/.test(this.origValue)?new p(this.origValue.substr(6)):this.origValue:"";return t.toString()},e.textStyle=function(t){return new f(t).textStyleIdentifier()},e}(b),C=function(){function t(t){var e,n,r=this;e=void 0,n={},this.toOptions=function(t){var e={};if(null==t&&(t=!0),Object.keys(n).forEach((function(t){return e[t]=n[t].origValue})),_(e,r.otherOptions),t&&!y.isEmpty(r.chained)){var o=r.chained.map((function(t){return t.toOptions()}));o.push(e),_(e={},r.otherOptions),e.transformation=o}return e},this.setParent=function(t){return e=t,null!=t&&r.fromOptions("function"==typeof t.toOptions?t.toOptions():void 0),r},this.getParent=function(){return e},this.param=function(t,e,o,i,a){return null==a&&(a=g.isFunction(i)?i:s.identity),n[e]=new b(e,o,a).set(t),r},this.rawParam=function(t,e,r,o,i){return i=A(arguments),n[e]=new S(e,r,i).set(t),this},this.rangeParam=function(t,e,r,o,i){return i=A(arguments),n[e]=new T(e,r,i).set(t),this},this.arrayParam=function(t,e,r,o,i,a){return void 0===o&&(o=":"),void 0===i&&(i=[]),void 0===a&&(a=void 0),a=A(arguments),n[e]=new w(e,r,o,a).set(t),this},this.transformationParam=function(t,e,r,o,i,a){return void 0===o&&(o="."),void 0===i&&(i=void 0),void 0===a&&(a=void 0),a=A(arguments),n[e]=new E(e,r,o,a).set(t),this},this.layerParam=function(t,e,r){return n[e]=new O(e,r).set(t),this},this.getValue=function(t){var e=n[t]&&n[t].value();return null!=e?e:this.otherOptions[t]},this.get=function(t){return n[t]},this.remove=function(t){var e;switch(!1){case null==n[t]:return e=n[t],delete n[t],e.origValue;case null==this.otherOptions[t]:return e=this.otherOptions[t],delete this.otherOptions[t],e;default:return null}},this.keys=function(){var t;return function(){var e;for(t in e=[],n)null!=t&&e.push(t.match(P)?t:u.snakeCase(t));return e}().sort()},this.toPlainObject=function(){var t,e,r;for(e in t={},n)t[e]=n[e].value(),d.isObject(t[e])&&(t[e]=a.cloneDeep(t[e]));return y.isEmpty(this.chained)||((r=this.chained.map((function(t){return t.toPlainObject()}))).push(t),t={transformation:r}),t},this.chain=function(){var t;return 0!==Object.getOwnPropertyNames(n).length&&(t=new this.constructor(this.toOptions(!1)),this.resetTransformations(),this.chained.push(t)),this},this.resetTransformations=function(){return n={},this},this.otherOptions={},this.chained=[],this.fromOptions(t)}return t.prototype.fromOptions=function(e){if(void 0===e&&(e={}),e instanceof t)this.fromTransformation(e);else for(var n in(v.isString(e)||Array.isArray(e))&&(e={transformation:e}),(e=a.cloneDeep(e)).if&&(this.set("if",e.if),delete e.if),e){var r=e[n];null!=r&&(n.match(P)?"$attr"!==n&&this.set("variable",n,r):this.set(n,r))}return this},t.prototype.fromTransformation=function(e){var n=this;return e instanceof t&&e.keys().forEach((function(t){return n.set(t,e.get(t).origValue)})),this},t.prototype.set=function(t){for(var e,n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];return e=s.camelCase(t),s.contains(L,e)?this[e].apply(this,n):this.otherOptions[t]=n[0],this},t.prototype.hasLayer=function(){return this.getValue("overlay")||this.getValue("underlay")},t.prototype.serialize=function(){var t,e,n,r,o,i,a,u,l,f,h,p,d,g,m,_,b;for(f=this.chained.map((function(t){return t.serialize()})),r=this.keys(),g=null!=(o=this.get("transformation"))?o.serialize():void 0,t=null!=(i=this.get("if"))?i.serialize():void 0,_=function(t){var e,n,r,o,i,a;if(Array.isArray(t)){for(i=[],n=0,r=t.length;n<r;n++)o=(e=t[n])[0],a=e[1],i.push(o+"_"+c.normalize(a));return i}return t}(null!=(a=this.get("variables"))?a.value():void 0),r=s.difference(r,["transformation","if","variables"]),b=[],p=[],e=0,n=r.length;e<n;e++)(h=r[e]).match(P)?b.push(h+"_"+c.normalize(null!=(u=this.get(h))?u.value():void 0)):p.push(null!=(l=this.get(h))?l.serialize():void 0);switch(!1){case!v.isString(g):p.push(g);break;case!Array.isArray(g):f=f.concat(g)}return p=function(){var t,e,n;for(n=[],t=0,e=p.length;t<e;t++)m=p[t],(Array.isArray(m)&&!y.isEmpty(m)||!Array.isArray(m)&&m)&&n.push(m);return n}(),p=b.sort().concat(_).concat(p.sort()),"if_end"===t?p.push(t):y.isEmpty(t)||p.unshift(t),d=p.filter((function(t){return!!t})).join(j),y.isEmpty(d)||f.push(d),f.filter((function(t){return!!t})).join(k)},t.listNames=function(){return L},t.prototype.toHtmlAttributes=function(){var t,e,n,r,o,i,a,c,l=this;return n={},Object.keys(this.otherOptions).forEach((function(e){i=l.otherOptions[e],c=u.snakeCase(e),s.contains(I,c)||s.contains(m,c)||(t=/^html_/.test(e)?e.slice(5):e,n[t]=i)})),this.keys().forEach((function(t){/^html_/.test(t)&&(n[s.camelCase(t.slice(5))]=l.getValue(t))})),this.hasLayer()||this.getValue("angle")||s.contains(["fit","limit","lfill"],this.getValue("crop"))||(a=null!=(r=this.get("width"))?r.origValue:void 0,e=null!=(o=this.get("height"))?o.origValue:void 0,parseFloat(a)>=1&&null==n.width&&(n.width=a),parseFloat(e)>=1&&null==n.height&&(n.height=e)),n},t.isValidParamName=function(t){return L.indexOf(s.camelCase(t))>=0},t.prototype.toHtml=function(){var t;return null!=(t=this.getParent())&&"function"==typeof t.toHtml?t.toHtml():void 0},t.prototype.toString=function(){return this.serialize()},t.prototype.clone=function(){return new t(this.toOptions(!0))},t}(),P=/^\$[a-zA-Z0-9]+$/,k="/",j=",";function A(t){var e;return e=null!=t?t[t.length-1]:void 0,g.isFunction(e)?e:void 0}function x(t){var e=t.function_type,n=t.source;return"remote"===e?[e,btoa(n)].join(":"):"wasm"===e?[e,n].join(":"):void 0}var R=function(t){function e(e){return t.call(this,e)||this}return r.__extends(e,t),e.new=function(t){return new e(t)},e.prototype.angle=function(t){return this.arrayParam(t,"angle","a",".",c.normalize),this},e.prototype.audioCodec=function(t){return this.param(t,"audio_codec","ac"),this},e.prototype.audioFrequency=function(t){return this.param(t,"audio_frequency","af"),this},e.prototype.aspectRatio=function(t){return this.param(t,"aspect_ratio","ar",c.normalize),this},e.prototype.background=function(t){return this.param(t,"background","b",b.norm_color),this},e.prototype.bitRate=function(t){return this.param(t,"bit_rate","br"),this},e.prototype.border=function(t){return this.param(t,"border","bo",(function(t){return d.isObject(t)?(t=Object.assign({},{color:"black",width:2},t)).width+"px_solid_"+b.norm_color(t.color):t}))},e.prototype.color=function(t){return this.param(t,"color","co",b.norm_color),this},e.prototype.colorSpace=function(t){return this.param(t,"color_space","cs"),this},e.prototype.crop=function(t){return this.param(t,"crop","c"),this},e.prototype.customFunction=function(t){return this.param(t,"custom_function","fn",(function(){return x(t)}))},e.prototype.customPreFunction=function(t){if(!this.get("custom_function"))return this.rawParam(t,"custom_function","",(function(){return(t=x(t))?"fn_pre:"+t:t}))},e.prototype.defaultImage=function(t){return this.param(t,"default_image","d"),this},e.prototype.delay=function(t){return this.param(t,"delay","dl"),this},e.prototype.density=function(t){return this.param(t,"density","dn"),this},e.prototype.duration=function(t){return this.rangeParam(t,"duration","du"),this},e.prototype.dpr=function(t){return this.param(t,"dpr","dpr",(function(t){return(null!=(t=t.toString())?t.match(/^\d+$/):void 0)?t+".0":c.normalize(t)}))},e.prototype.effect=function(t){return this.arrayParam(t,"effect","e",":",c.normalize),this},e.prototype.else=function(){return this.if("else")},e.prototype.endIf=function(){return this.if("end")},e.prototype.endOffset=function(t){return this.rangeParam(t,"end_offset","eo"),this},e.prototype.fallbackContent=function(t){return this.param(t,"fallback_content"),this},e.prototype.fetchFormat=function(t){return this.param(t,"fetch_format","f"),this},e.prototype.format=function(t){return this.param(t,"format"),this},e.prototype.flags=function(t){return this.arrayParam(t,"flags","fl","."),this},e.prototype.gravity=function(t){return this.param(t,"gravity","g"),this},e.prototype.fps=function(t){return this.param(t,"fps","fps",(function(t){return v.isString(t)?t:Array.isArray(t)?t.join("-"):t}))},e.prototype.height=function(t){var e=this;return this.param(t,"height","h",(function(){return e.getValue("crop")||e.getValue("overlay")||e.getValue("underlay")?c.normalize(t):null}))},e.prototype.htmlHeight=function(t){return this.param(t,"html_height"),this},e.prototype.htmlWidth=function(t){return this.param(t,"html_width"),this},e.prototype.if=function(t){var n,r,i,a,s;switch(void 0===t&&(t=""),t){case"else":return this.chain(),this.param(t,"if","if");case"end":for(this.chain(),n=i=this.chained.length-1;i>=0&&"end"!==(r=this.chained[n].getValue("if"))&&(null==r||(a=e.new().if(r),this.chained[n].remove("if"),s=this.chained[n],this.chained[n]=e.new().transformation([a,s]),"else"===r));n=i+=-1);return this.param(t,"if","if");case"":return o.new().setParent(this);default:return this.param(t,"if","if",(function(t){return o.new(t).toString()}))}},e.prototype.keyframeInterval=function(t){return this.param(t,"keyframe_interval","ki"),this},e.prototype.ocr=function(t){return this.param(t,"ocr","ocr"),this},e.prototype.offset=function(t){var e,n,r;if(r=(e=g.isFunction(null!=t?t.split:void 0)?t.split(".."):Array.isArray(t)?t:[null,null])[0],n=e[1],null!=r&&this.startOffset(r),null!=n)return this.endOffset(n)},e.prototype.opacity=function(t){return this.param(t,"opacity","o",c.normalize),this},e.prototype.overlay=function(t){return this.layerParam(t,"overlay","l"),this},e.prototype.page=function(t){return this.param(t,"page","pg"),this},e.prototype.poster=function(t){return this.param(t,"poster"),this},e.prototype.prefix=function(t){return this.param(t,"prefix","p"),this},e.prototype.quality=function(t){return this.param(t,"quality","q",c.normalize),this},e.prototype.radius=function(t){return this.arrayParam(t,"radius","r",":",c.normalize),this},e.prototype.rawTransformation=function(t){return this.rawParam(t,"raw_transformation"),this},e.prototype.size=function(t){var e,n,r;if(g.isFunction(null!=t?t.split:void 0))return r=(e=t.split("x"))[0],n=e[1],this.width(r),this.height(n)},e.prototype.sourceTypes=function(t){return this.param(t,"source_types"),this},e.prototype.sourceTransformation=function(t){return this.param(t,"source_transformation")},e.prototype.startOffset=function(t){return this.rangeParam(t,"start_offset","so"),this},e.prototype.streamingProfile=function(t){return this.param(t,"streaming_profile","sp"),this},e.prototype.transformation=function(t){return this.transformationParam(t,"transformation","t"),this},e.prototype.underlay=function(t){return this.layerParam(t,"underlay","u"),this},e.prototype.variable=function(t,e){return this.param(e,t,t),this},e.prototype.variables=function(t){return this.arrayParam(t,"variables"),this},e.prototype.videoCodec=function(t){return this.param(t,"video_codec","vc",b.process_video_params),this},e.prototype.videoSampling=function(t){return this.param(t,"video_sampling","vs"),this},e.prototype.width=function(t){var e=this;return this.param(t,"width","w",(function(){return e.getValue("crop")||e.getValue("overlay")||e.getValue("underlay")?c.normalize(t):null})),this},e.prototype.x=function(t){return this.param(t,"x","x",c.normalize),this},e.prototype.y=function(t){return this.param(t,"y","y",c.normalize),this},e.prototype.zoom=function(t){return this.param(t,"zoom","z",c.normalize),this},e}(C),L=["angle","audioCodec","audioFrequency","aspectRatio","background","bitRate","border","color","colorSpace","crop","customFunction","customPreFunction","defaultImage","delay","density","duration","dpr","effect","else","endIf","endOffset","fallbackContent","fetchFormat","format","flags","gravity","fps","height","htmlHeight","htmlWidth","if","keyframeInterval","ocr","offset","opacity","overlay","page","poster","prefix","quality","radius","rawTransformation","size","sourceTypes","sourceTransformation","startOffset","streamingProfile","transformation","underlay","variable","variables","videoCodec","videoSampling","width","x","y","zoom"],I=L.map(u.snakeCase).concat(i.CONFIG_PARAMS);e.URL_KEYS=m,e.default=R},function(t,e,n){"use strict";var r=n(36),o=function(t){function e(e){return t.call(this,e)||this}return r.__extends(e,t),e.prototype.height=function(t,e){return this.predicate("h",t,e)},e.prototype.width=function(t,e){return this.predicate("w",t,e)},e.prototype.aspectRatio=function(t,e){return this.predicate("ar",t,e)},e.prototype.pageCount=function(t,e){return this.predicate("pc",t,e)},e.prototype.faceCount=function(t,e){return this.predicate("fc",t,e)},e.prototype.duration=function(t,e){return this.predicate("du",t,e)},e.prototype.initialDuration=function(t,e){return this.predicate("idu",t,e)},e}(n(67));t.exports=o},function(t,e,n){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0});var r=n(82),o=n(48),i=function(){function e(t){this.configuration=null==t?{}:r.cloneDeep(t),function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];e.reduce((function(t,e){var n,r;for(n in e)r=e[n],void 0===t[n]&&(t[n]=r);return t}),t)}(this.configuration,a)}return e.prototype.init=function(){return this.fromEnvironment(),this.fromDocument(),this},e.prototype.set=function(t,e){return this.configuration[t]=e,this},e.prototype.get=function(t){return this.configuration[t]},e.prototype.merge=function(t){return Object.assign(this.configuration,r.cloneDeep(t)),this},e.prototype.fromDocument=function(){var t,e,n,r;if(r="undefined"!=typeof document&&null!==document?document.querySelectorAll('meta[name^="cloudinary_"]'):void 0)for(e=0,n=r.length;e<n;e++)t=r[e],this.configuration[t.getAttribute("name").replace("cloudinary_","")]=t.getAttribute("content");return this},e.prototype.fromEnvironment=function(){var e,n,r,o=this;return null!=t&&Object({NODE_ENV:"production"})&&Object({NODE_ENV:"production"}).CLOUDINARY_URL&&(e=Object({NODE_ENV:"production"}).CLOUDINARY_URL,(r=/cloudinary:\/\/(?:(\w+)(?:\:([\w-]+))?@)?([\w\.-]+)(?:\/([^?]*))?(?:\?(.+))?/.exec(e))&&(null!=r[3]&&(this.configuration.cloud_name=r[3]),null!=r[1]&&(this.configuration.api_key=r[1]),null!=r[2]&&(this.configuration.api_secret=r[2]),null!=r[4]&&(this.configuration.private_cdn=null!=r[4]),null!=r[4]&&(this.configuration.secure_distribution=r[4]),null!=(n=r[5])&&n.split("&").forEach((function(t){var e=t.split("="),n=e[0],r=e[1];null==r&&(r=!0),o.configuration[n]=r})))),this},e.prototype.config=function(t,e){switch(!1){case void 0===e:return this.set(t,e),this.configuration;case"string"!=typeof t:return this.get(t);case!o.isObject(t):return this.merge(t),this.configuration;default:return this.configuration}},e.prototype.toOptions=function(){return r.cloneDeep(this.configuration)},e}(),a={responsive_class:"cld-responsive",responsive_use_breakpoints:!0,round_dpr:!0,secure:"https:"===("undefined"!=typeof window&&null!==window&&window.location?window.location.protocol:void 0)};e.CONFIG_PARAMS=["api_key","api_secret","callback","cdn_subdomain","cloud_name","cname","private_cdn","protocol","resource_type","responsive","responsive_class","responsive_use_breakpoints","responsive_width","round_dpr","secure","secure_cdn_subdomain","secure_distribution","shorten","type","upload_preset","url_suffix","use_root_path","version","externalLibraries","max_timeout_ms"],e.default=i}).call(this,n(167))},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(52),o=function(t){var e=t.match(a);return(e=e.map((function(t){return t.charAt(0).toLocaleUpperCase()+t.slice(1).toLocaleLowerCase()})))[0]=e[0].toLocaleLowerCase(),e.join("")},i=function(t,e){var n,o;for(var i in n={},t)o=t[i],e&&(i=e(i)),r.isEmpty(i)||(n[i]=o);return n},a=RegExp("[A-Z]+(?=[A-Z][a-z]+)|[A-Z]?[a-z]+|[A-Z]+|[0-9]+","g");e.camelCase=o,e.contains=function(t,e){for(var n=0;n<t.length;n++)if(t[n]===e)return!0;return!1},e.convertKeys=i,e.difference=function(t,e){return t.filter((function(t){return!e.includes(t)}))},e.identity=function(t){return t},e.reWords=a,e.withCamelCaseKeys=function(t){return i(t,o)}},function(t,e,n){"use strict";var r=n(36),o=n(66);n(51),n(37),n(52),n(50),n(59);var i=function(t){function e(e){var n=t.call(this,e)||this;return n.options.resourceType="subtitles",n}return r.__extends(e,t),e}(o);t.exports=i},function(t,e,n){"use strict";var r=n(36),o=n(51),i=n(83),a=n(49);n(37);var s=function(t){function e(e){var n=t.call(this,e)||this;return i.isString(e)?n.options.url=e:(null!=e?e.url:void 0)&&(n.options.url=e.url),n}return r.__extends(e,t),e.prototype.url=function(t){return this.options.url=t,this},e.prototype.toString=function(){return"fetch:"+a.base64Encode(this.options.url)},e}(o);t.exports=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isFunction=function(t){return t instanceof Function}},function(t,e,n){"use strict";function r(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=function(t,e){if(!t)return;if("string"==typeof t)return o(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return o(t,e)}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,s=!0,u=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return s=t.done,t},e:function(t){u=!0,a=t},f:function(){try{s||null==n.return||n.return()}finally{if(u)throw a}}}}function o(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function i(t){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i(t)}Object.defineProperty(e,"__esModule",{value:!0}),e.pick=e.omit=e.get=void 0;e.get=function(t,e,n){if(t&&"object"===i(t)){var o,a=t,s=r(e.split("."));try{for(s.s();!(o=s.n()).done;){var u=o.value;if(!Object.prototype.hasOwnProperty.call(a,u)||void 0===a[u])return n;a=a[u]}}catch(t){s.e(t)}finally{s.f()}return a}return n};e.pick=function(t,e){return e.reduce((function(e,n){var r=t[n];return void 0!==r&&(e[n]=r),e}),{})};e.omit=function(t,e){return Object.keys(t).reduce((function(n,r){var o=t[r];return e.includes(r)||(n[r]=o),n}),{})}},function(t,e,n){"use strict";function r(t,e){for(var n=0;n<t.length;n++){var r=t[n];if(e(r,n,t))return[r,n]}return[void 0,-1]}Object.defineProperty(e,"__esModule",{value:!0}),e.find=function(t,e){if(Array.prototype.find&&Array.isArray(t))return t.find(e);return r(t,e)[0]},e.findElementAndIndex=r,e.findIndex=function(t,e){if(Array.prototype.findIndex)return t.findIndex(e);return r(t,e)[1]}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.skinClassPrefix=e.skinClass=e.setSkinClassPrefix=e.playerClassPrefix=e.CLASS_PREFIX=void 0;var r,o=n(80),i=(r=n(130))&&r.__esModule?r:{default:r},a=n(128);var s="cld-video-player";e.CLASS_PREFIX=s;var u="".concat(s,"-skin-");e.playerClassPrefix=function(t){return"".concat(s,"-").concat(t.id_)};var c=function(t){return"".concat(u).concat(t)};e.skinClass=c;var l=function(t){return(0,a.find)(t.el().classList,(function(t){return(0,o.startsWith)(t,u)}))};e.skinClassPrefix=l;e.setSkinClassPrefix=function(t,e){var n=l(t),r=!!e&&e.replace(u,""),o="";(o=r?c(r):t.options_.skin?c(t.options_.skin):c(i.default.skin))!==n&&(n&&t.removeClass(n),t.addClass(o)),r&&t.options_.skin!==r&&(t.options_.skin=r)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=a(n(1)),o=a(n(401)),i=n(60);function a(t){return t&&t.__esModule?t:{default:t}}var s={logoOnclickUrl:"https://cloudinary.com/",showLogo:!0,showJumpControls:!1,playsinline:r.default.browser.IS_IOS,skin:"dark",controls:!1,controlBar:{pictureInPictureToggle:!1},preload:i.PRELOAD.AUTO,loop:!1,muted:!1,posterOptions:{},sourceTypes:["webm/vp9","mp4/h265","mp4"],contextMenu:{content:o.default},floatingWhenNotVisible:i.FLOATING_TO.NONE,hideContextMenu:!1,analytics:!1,playedEventPercents:[25,50,75,100]};e.default=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.objectToQuerystring=void 0;e.objectToQuerystring=function(t){var e=Object.keys(t);if(!e.length)return"";var n=e.map((function(e){return"".concat(e,"=").concat(t[e])})).join("&");return"?".concat(n)}},function(t,e,n){"use strict";function r(t){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r(t)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o,i=(o=n(1))&&o.__esModule?o:{default:o},a=n(186),s=n(129),u=n(27);function c(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function l(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?c(Object(n),!0).forEach((function(e){f(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function f(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function h(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function p(t,e){return p=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},p(t,e)}function d(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=_(t);if(e){var o=_(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return v(this,n)}}function v(t,e){if(e&&("object"===r(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return y(t)}function y(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function g(){return g="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var r=m(t,e);if(r){var o=Object.getOwnPropertyDescriptor(r,e);return o.get?o.get.call(arguments.length<3?t:n):o.value}},g.apply(this,arguments)}function m(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=_(t)););return t}function _(t){return _=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},_(t)}var b=i.default.dom||i.default,w=i.default.getComponent("Component"),E={wrap:!1},T=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&p(t,e)}(i,t);var e,n,r,o=d(i);function i(t,e){var n,r;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i);var s=l(l({},E),e);(r=o.call(this,t,s)).player_=t,r.setCls();var c,f=function(t,e){r.options_.fluid=e,r.removeCls(),r.setCls()};return s.wrap&&(c=r.el(),r.videoWrap_=b.createEl("div",{className:"cld-plw-col-player"}),r.contentEl_=r.contentEl_=b.createEl("div",{className:"cld-plw-col-list"}),(0,a.wrap)(r.player().el(),c),c.appendChild(r.videoWrap_),c.appendChild(r.contentEl_),(0,a.wrap)(r.player().el(),r.videoWrap_)),t.on(u.PLAYER_EVENT.FLUID,f),r.addChild(u.PLAYER_EVENT.PLAYLIST_PANEL,r.options_),r.dispose=function(){r.removeLayout(),g((n=y(r),_(i.prototype)),"dispose",n).call(n),t.off(u.PLAYER_EVENT.FLUID,f)},r}return e=i,(n=[{key:"getCls",value:function(){var t=["cld-video-player","cld-plw-layout"];return t.push((0,s.skinClassPrefix)(this.player())),t.push((0,s.playerClassPrefix)(this.player())),this.options_.fluid&&t.push("cld-plw-layout-fluid"),t}},{key:"setCls",value:function(){var t=this;this.removeClass((0,s.skinClassPrefix)(this)),this.getCls().forEach((function(e){t.addClass(e)}))}},{key:"removeCls",value:function(){var t=this;this.getCls().forEach((function(e){t.removeClass(e)}))}},{key:"update",value:function(t,e){this.options(e),this.removeChild("PlaylistPanel"),this.addChild("PlaylistPanel",this.options_),this.trigger("playlistlayoutupdate")}},{key:"removeLayout",value:function(){var t=this.el().parentElement;t&&t.appendChild(this.player().el())}},{key:"createEl",value:function(){var t=g(_(i.prototype),"createEl",this).call(this,"div");return t.style.fontFamily=this.player().el().style.fontFamily,t}}])&&h(e.prototype,n),r&&h(e,r),Object.defineProperty(e,"prototype",{writable:!1}),i}(w);i.default.registerComponent("playlistLayout",T);var S=T;e.default=S},function(t,e,n){t.exports=!n(9)&&!n(3)((function(){return 7!=Object.defineProperty(n(87)("div"),"a",{get:function(){return 7}}).a}))},function(t,e,n){var r=n(2),o=n(8),i=n(40),a=n(88),s=n(10).f;t.exports=function(t){var e=o.Symbol||(o.Symbol=i?{}:r.Symbol||{});"_"==t.charAt(0)||t in e||s(e,t,{value:a.f(t)})}},function(t,e,n){var r=n(16),o=n(18),i=n(69)(!1),a=n(89)("IE_PROTO");t.exports=function(t,e){var n,s=o(t),u=0,c=[];for(n in s)n!=a&&r(s,n)&&c.push(n);for(;e.length>u;)r(s,n=e[u++])&&(~i(c,n)||c.push(n));return c}},function(t,e,n){var r=n(10),o=n(4),i=n(41);t.exports=n(9)?Object.defineProperties:function(t,e){o(t);for(var n,a=i(e),s=a.length,u=0;s>u;)r.f(t,n=a[u++],e[n]);return t}},function(t,e,n){var r=n(18),o=n(44).f,i={}.toString,a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];t.exports.f=function(t){return a&&"[object Window]"==i.call(t)?function(t){try{return o(t)}catch(t){return a.slice()}}(t):o(r(t))}},function(t,e,n){"use strict";var r=n(9),o=n(41),i=n(70),a=n(62),s=n(11),u=n(61),c=Object.assign;t.exports=!c||n(3)((function(){var t={},e={},n=Symbol(),r="abcdefghijklmnopqrst";return t[n]=7,r.split("").forEach((function(t){e[t]=t})),7!=c({},t)[n]||Object.keys(c({},e)).join("")!=r}))?function(t,e){for(var n=s(t),c=arguments.length,l=1,f=i.f,h=a.f;c>l;)for(var p,d=u(arguments[l++]),v=f?o(d).concat(f(d)):o(d),y=v.length,g=0;y>g;)p=v[g++],r&&!h.call(d,p)||(n[p]=d[p]);return n}:c},function(t,e){t.exports=Object.is||function(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e}},function(t,e,n){"use strict";var r=n(22),o=n(5),i=n(141),a=[].slice,s={},u=function(t,e,n){if(!(e in s)){for(var r=[],o=0;o<e;o++)r[o]="a["+o+"]";s[e]=Function("F,a","return new F("+r.join(",")+")")}return s[e](t,n)};t.exports=Function.bind||function(t){var e=r(this),n=a.call(arguments,1),s=function(){var r=n.concat(a.call(arguments));return this instanceof s?u(e,r.length,r):i(e,r,t)};return o(e.prototype)&&(s.prototype=e.prototype),s}},function(t,e){t.exports=function(t,e,n){var r=void 0===n;switch(e.length){case 0:return r?t():t.call(n);case 1:return r?t(e[0]):t.call(n,e[0]);case 2:return r?t(e[0],e[1]):t.call(n,e[0],e[1]);case 3:return r?t(e[0],e[1],e[2]):t.call(n,e[0],e[1],e[2]);case 4:return r?t(e[0],e[1],e[2],e[3]):t.call(n,e[0],e[1],e[2],e[3])}return t.apply(n,e)}},function(t,e,n){var r=n(2).parseInt,o=n(54).trim,i=n(93),a=/^[-+]?0[xX]/;t.exports=8!==r(i+"08")||22!==r(i+"0x16")?function(t,e){var n=o(String(t),3);return r(n,e>>>0||(a.test(n)?16:10))}:r},function(t,e,n){var r=n(2).parseFloat,o=n(54).trim;t.exports=1/r(n(93)+"-0")!=-1/0?function(t){var e=o(String(t),3),n=r(e);return 0===n&&"-"==e.charAt(0)?-0:n}:r},function(t,e,n){var r=n(28);t.exports=function(t,e){if("number"!=typeof t&&"Number"!=r(t))throw TypeError(e);return+t}},function(t,e,n){var r=n(5),o=Math.floor;t.exports=function(t){return!r(t)&&isFinite(t)&&o(t)===t}},function(t,e){t.exports=Math.log1p||function(t){return(t=+t)>-1e-8&&t<1e-8?t-t*t/2:Math.log(1+t)}},function(t,e,n){"use strict";var r=n(43),o=n(38),i=n(53),a={};n(17)(a,n(6)("iterator"),(function(){return this})),t.exports=function(t,e,n){t.prototype=r(a,{next:o(1,n)}),i(t,e+" Iterator")}},function(t,e,n){var r=n(4);t.exports=function(t,e,n,o){try{return o?e(r(n)[0],n[1]):e(n)}catch(e){var i=t.return;throw void 0!==i&&r(i.call(t)),e}}},function(t,e,n){var r=n(288);t.exports=function(t,e){return new(r(t))(e)}},function(t,e,n){var r=n(22),o=n(11),i=n(61),a=n(7);t.exports=function(t,e,n,s,u){r(e);var c=o(t),l=i(c),f=a(c.length),h=u?f-1:0,p=u?-1:1;if(n<2)for(;;){if(h in l){s=l[h],h+=p;break}if(h+=p,u?h<0:f<=h)throw TypeError("Reduce of empty array with no initial value")}for(;u?h>=0:f>h;h+=p)h in l&&(s=e(s,l[h],h,c));return s}},function(t,e,n){"use strict";var r=n(11),o=n(42),i=n(7);t.exports=[].copyWithin||function(t,e){var n=r(this),a=i(n.length),s=o(t,a),u=o(e,a),c=arguments.length>2?arguments[2]:void 0,l=Math.min((void 0===c?a:o(c,a))-u,a-s),f=1;for(u<s&&s<u+l&&(f=-1,u+=l-1,s+=l-1);l-- >0;)u in n?n[s]=n[u]:delete n[s],s+=f,u+=f;return n}},function(t,e){t.exports=function(t,e){return{value:e,done:!!t}}},function(t,e,n){"use strict";var r=n(108);n(0)({target:"RegExp",proto:!0,forced:r!==/./.exec},{exec:r})},function(t,e,n){n(9)&&"g"!=/./g.flags&&n(10).f(RegExp.prototype,"flags",{configurable:!0,get:n(73)})},function(t,e,n){"use strict";var r,o,i,a,s=n(40),u=n(2),c=n(21),l=n(63),f=n(0),h=n(5),p=n(22),d=n(57),v=n(76),y=n(64),g=n(110).set,m=n(308)(),_=n(156),b=n(309),w=n(77),E=n(157),T="Promise",S=u.TypeError,O=u.process,C=O&&O.versions,P=C&&C.v8||"",k=u.Promise,j="process"==l(O),A=function(){},x=o=_.f,R=!!function(){try{var t=k.resolve(1),e=(t.constructor={})[n(6)("species")]=function(t){t(A,A)};return(j||"function"==typeof PromiseRejectionEvent)&&t.then(A)instanceof e&&0!==P.indexOf("6.6")&&-1===w.indexOf("Chrome/66")}catch(t){}}(),L=function(t){var e;return!(!h(t)||"function"!=typeof(e=t.then))&&e},I=function(t,e){if(!t._n){t._n=!0;var n=t._c;m((function(){for(var r=t._v,o=1==t._s,i=0,a=function(e){var n,i,a,s=o?e.ok:e.fail,u=e.resolve,c=e.reject,l=e.domain;try{s?(o||(2==t._h&&D(t),t._h=1),!0===s?n=r:(l&&l.enter(),n=s(r),l&&(l.exit(),a=!0)),n===e.promise?c(S("Promise-chain cycle")):(i=L(n))?i.call(n,u,c):u(n)):c(r)}catch(t){l&&!a&&l.exit(),c(t)}};n.length>i;)a(n[i++]);t._c=[],t._n=!1,e&&!t._h&&N(t)}))}},N=function(t){g.call(u,(function(){var e,n,r,o=t._v,i=M(t);if(i&&(e=b((function(){j?O.emit("unhandledRejection",o,t):(n=u.onunhandledrejection)?n({promise:t,reason:o}):(r=u.console)&&r.error&&r.error("Unhandled promise rejection",o)})),t._h=j||M(t)?2:1),t._a=void 0,i&&e.e)throw e.v}))},M=function(t){return 1!==t._h&&0===(t._a||t._c).length},D=function(t){g.call(u,(function(){var e;j?O.emit("rejectionHandled",t):(e=u.onrejectionhandled)&&e({promise:t,reason:t._v})}))},F=function(t){var e=this;e._d||(e._d=!0,(e=e._w||e)._v=t,e._s=2,e._a||(e._a=e._c.slice()),I(e,!0))},B=function(t){var e,n=this;if(!n._d){n._d=!0,n=n._w||n;try{if(n===t)throw S("Promise can't be resolved itself");(e=L(t))?m((function(){var r={_w:n,_d:!1};try{e.call(t,c(B,r,1),c(F,r,1))}catch(t){F.call(r,t)}})):(n._v=t,n._s=1,I(n,!1))}catch(t){F.call({_w:n,_d:!1},t)}}};R||(k=function(t){d(this,k,T,"_h"),p(t),r.call(this);try{t(c(B,this,1),c(F,this,1))}catch(t){F.call(this,t)}},(r=function(t){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1}).prototype=n(58)(k.prototype,{then:function(t,e){var n=x(y(this,k));return n.ok="function"!=typeof t||t,n.fail="function"==typeof e&&e,n.domain=j?O.domain:void 0,this._c.push(n),this._a&&this._a.push(n),this._s&&I(this,!1),n.promise},catch:function(t){return this.then(void 0,t)}}),i=function(){var t=new r;this.promise=t,this.resolve=c(B,t,1),this.reject=c(F,t,1)},_.f=x=function(t){return t===k||t===a?new i(t):o(t)}),f(f.G+f.W+f.F*!R,{Promise:k}),n(53)(k,T),n(56)(T),a=n(8).Promise,f(f.S+f.F*!R,T,{reject:function(t){var e=x(this);return(0,e.reject)(t),e.promise}}),f(f.S+f.F*(s||!R),T,{resolve:function(t){return E(s&&this===a?k:this,t)}}),f(f.S+f.F*!(R&&n(72)((function(t){k.all(t).catch(A)}))),T,{all:function(t){var e=this,n=x(e),r=n.resolve,o=n.reject,i=b((function(){var n=[],i=0,a=1;v(t,!1,(function(t){var s=i++,u=!1;n.push(void 0),a++,e.resolve(t).then((function(t){u||(u=!0,n[s]=t,--a||r(n))}),o)})),--a||r(n)}));return i.e&&o(i.v),n.promise},race:function(t){var e=this,n=x(e),r=n.reject,o=b((function(){v(t,!1,(function(t){e.resolve(t).then(n.resolve,r)}))}));return o.e&&r(o.v),n.promise}})},function(t,e,n){"use strict";var r=n(22);function o(t){var e,n;this.promise=new t((function(t,r){if(void 0!==e||void 0!==n)throw TypeError("Bad Promise constructor");e=t,n=r})),this.resolve=r(e),this.reject=r(n)}t.exports.f=function(t){return new o(t)}},function(t,e,n){var r=n(4),o=n(5),i=n(156);t.exports=function(t,e){if(r(t),o(e)&&e.constructor===t)return e;var n=i.f(t);return(0,n.resolve)(e),n.promise}},function(t,e,n){"use strict";var r=n(10).f,o=n(43),i=n(58),a=n(21),s=n(57),u=n(76),c=n(99),l=n(152),f=n(56),h=n(9),p=n(34).fastKey,d=n(47),v=h?"_s":"size",y=function(t,e){var n,r=p(e);if("F"!==r)return t._i[r];for(n=t._f;n;n=n.n)if(n.k==e)return n};t.exports={getConstructor:function(t,e,n,c){var l=t((function(t,r){s(t,l,e,"_i"),t._t=e,t._i=o(null),t._f=void 0,t._l=void 0,t[v]=0,null!=r&&u(r,n,t[c],t)}));return i(l.prototype,{clear:function(){for(var t=d(this,e),n=t._i,r=t._f;r;r=r.n)r.r=!0,r.p&&(r.p=r.p.n=void 0),delete n[r.i];t._f=t._l=void 0,t[v]=0},delete:function(t){var n=d(this,e),r=y(n,t);if(r){var o=r.n,i=r.p;delete n._i[r.i],r.r=!0,i&&(i.n=o),o&&(o.p=i),n._f==r&&(n._f=o),n._l==r&&(n._l=i),n[v]--}return!!r},forEach:function(t){d(this,e);for(var n,r=a(t,arguments.length>1?arguments[1]:void 0,3);n=n?n.n:this._f;)for(r(n.v,n.k,this);n&&n.r;)n=n.p},has:function(t){return!!y(d(this,e),t)}}),h&&r(l.prototype,"size",{get:function(){return d(this,e)[v]}}),l},def:function(t,e,n){var r,o,i=y(t,e);return i?i.v=n:(t._l=i={i:o=p(e,!0),k:e,v:n,p:r=t._l,n:void 0,r:!1},t._f||(t._f=i),r&&(r.n=i),t[v]++,"F"!==o&&(t._i[o]=i)),t},getEntry:y,setStrong:function(t,e,n){c(t,e,(function(t,n){this._t=d(t,e),this._k=n,this._l=void 0}),(function(){for(var t=this,e=t._k,n=t._l;n&&n.r;)n=n.p;return t._t&&(t._l=n=n?n.n:t._t._f)?l(0,"keys"==e?n.k:"values"==e?n.v:[n.k,n.v]):(t._t=void 0,l(1))}),n?"entries":"values",!n,!0),f(e)}}},function(t,e,n){"use strict";var r=n(58),o=n(34).getWeak,i=n(4),a=n(5),s=n(57),u=n(76),c=n(26),l=n(16),f=n(47),h=c(5),p=c(6),d=0,v=function(t){return t._l||(t._l=new y)},y=function(){this.a=[]},g=function(t,e){return h(t.a,(function(t){return t[0]===e}))};y.prototype={get:function(t){var e=g(this,t);if(e)return e[1]},has:function(t){return!!g(this,t)},set:function(t,e){var n=g(this,t);n?n[1]=e:this.a.push([t,e])},delete:function(t){var e=p(this.a,(function(e){return e[0]===t}));return~e&&this.a.splice(e,1),!!~e}},t.exports={getConstructor:function(t,e,n,i){var c=t((function(t,r){s(t,c,e,"_i"),t._t=e,t._i=d++,t._l=void 0,null!=r&&u(r,n,t[i],t)}));return r(c.prototype,{delete:function(t){if(!a(t))return!1;var n=o(t);return!0===n?v(f(this,e)).delete(t):n&&l(n,this._i)&&delete n[this._i]},has:function(t){if(!a(t))return!1;var n=o(t);return!0===n?v(f(this,e)).has(t):n&&l(n,this._i)}}),c},def:function(t,e,n){var r=o(i(e),!0);return!0===r?v(t).set(e,n):r[t._i]=n,t},ufstore:v}},function(t,e,n){var r=n(23),o=n(7);t.exports=function(t){if(void 0===t)return 0;var e=r(t),n=o(e);if(e!==n)throw RangeError("Wrong length!");return n}},function(t,e,n){var r=n(44),o=n(70),i=n(4),a=n(2).Reflect;t.exports=a&&a.ownKeys||function(t){var e=r.f(i(t)),n=o.f;return n?e.concat(n(t)):e}},function(t,e,n){var r=n(7),o=n(95),i=n(29);t.exports=function(t,e,n,a){var s=String(i(t)),u=s.length,c=void 0===n?" ":String(n),l=r(e);if(l<=u||""==c)return s;var f=l-u,h=o.call(c,Math.ceil(f/c.length));return h.length>f&&(h=h.slice(0,f)),a?h+s:s+h}},function(t,e,n){var r=n(9),o=n(41),i=n(18),a=n(62).f;t.exports=function(t){return function(e){for(var n,s=i(e),u=o(s),c=u.length,l=0,f=[];c>l;)n=u[l++],r&&!a.call(s,n)||f.push(t?[n,s[n]]:s[n]);return f}}},function(t,e){var n=t.exports={version:"2.6.12"};"number"==typeof __e&&(__e=n)},function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,e,n){"use strict";function r(t){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r(t)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=g(n(12)),i=g(n(20)),a=g(n(65)),s=g(n(80)),u=g(n(116)),c=g(n(178)),l=g(n(397)),f=g(n(179)),h=g(n(398)),p=g(n(400)),d=g(n(129)),v=g(n(402));function y(t){if("function"!=typeof WeakMap)return null;var e=new WeakMap,n=new WeakMap;return(y=function(t){return t?n:e})(t)}function g(t,e){if(!e&&t&&t.__esModule)return t;if(null===t||"object"!==r(t)&&"function"!=typeof t)return{default:t};var n=y(e);if(n&&n.has(t))return n.get(t);var o={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in t)if("default"!==a&&Object.prototype.hasOwnProperty.call(t,a)){var s=i?Object.getOwnPropertyDescriptor(t,a):null;s&&(s.get||s.set)?Object.defineProperty(o,a,s):o[a]=t[a]}return o.default=t,n&&n.set(t,o),o}var m=o.assign({},o,i,a,s,u,h,p,l,c,f,d,v);e.default=m},function(t,e){var n,r,o=t.exports={};function i(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function s(t){if(n===setTimeout)return setTimeout(t,0);if((n===i||!n)&&setTimeout)return n=setTimeout,setTimeout(t,0);try{return n(t,0)}catch(e){try{return n.call(null,t,0)}catch(e){return n.call(this,t,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:i}catch(t){n=i}try{r="function"==typeof clearTimeout?clearTimeout:a}catch(t){r=a}}();var u,c=[],l=!1,f=-1;function h(){l&&u&&(l=!1,u.length?c=u.concat(c):f=-1,c.length&&p())}function p(){if(!l){var t=s(h);l=!0;for(var e=c.length;e;){for(u=c,c=[];++f<e;)u&&u[f].run();f=-1,e=c.length}u=null,l=!1,function(t){if(r===clearTimeout)return clearTimeout(t);if((r===a||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(t);try{r(t)}catch(e){try{return r.call(null,t)}catch(e){return r.call(this,t)}}}(t)}}function d(t,e){this.fun=t,this.array=e}function v(){}o.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)e[n-1]=arguments[n];c.push(new d(t,e)),1!==c.length||l||s(p)},d.prototype.run=function(){this.fun.apply(null,this.array)},o.title="browser",o.browser=!0,o.env={},o.argv=[],o.version="",o.versions={},o.on=v,o.addListener=v,o.once=v,o.off=v,o.removeListener=v,o.removeAllListeners=v,o.emit=v,o.prependListener=v,o.prependOnceListener=v,o.listeners=function(t){return[]},o.binding=function(t){throw new Error("process.binding is not supported")},o.cwd=function(){return"/"},o.chdir=function(t){throw new Error("process.chdir is not supported")},o.umask=function(){return 0}},function(t,e,n){(function(r){var o;!function(r){"use strict";function i(t){var n=t&&t.Promise||r.Promise,o=t&&t.XMLHttpRequest||r.XMLHttpRequest;return function(){var t=Object.create(r,{fetch:{value:void 0,writable:!0}});return function(e){var r=void 0!==t&&t||"undefined"!=typeof self&&self||void 0!==r&&r,i={searchParams:"URLSearchParams"in r,iterable:"Symbol"in r&&"iterator"in Symbol,blob:"FileReader"in r&&"Blob"in r&&function(){try{return new Blob,!0}catch(t){return!1}}(),formData:"FormData"in r,arrayBuffer:"ArrayBuffer"in r};function a(t){return t&&DataView.prototype.isPrototypeOf(t)}if(i.arrayBuffer)var s=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],u=ArrayBuffer.isView||function(t){return t&&s.indexOf(Object.prototype.toString.call(t))>-1};function c(t){if("string"!=typeof t&&(t=String(t)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(t)||""===t)throw new TypeError("Invalid character in header field name");return t.toLowerCase()}function l(t){return"string"!=typeof t&&(t=String(t)),t}function f(t){var e={next:function(){var e=t.shift();return{done:void 0===e,value:e}}};return i.iterable&&(e[Symbol.iterator]=function(){return e}),e}function h(t){this.map={},t instanceof h?t.forEach((function(t,e){this.append(e,t)}),this):Array.isArray(t)?t.forEach((function(t){this.append(t[0],t[1])}),this):t&&Object.getOwnPropertyNames(t).forEach((function(e){this.append(e,t[e])}),this)}function p(t){if(t.bodyUsed)return n.reject(new TypeError("Already read"));t.bodyUsed=!0}function d(t){return new n((function(e,n){t.onload=function(){e(t.result)},t.onerror=function(){n(t.error)}}))}function v(t){var e=new FileReader,n=d(e);return e.readAsArrayBuffer(t),n}function y(t){var e=new FileReader,n=d(e);return e.readAsText(t),n}function g(t){for(var e=new Uint8Array(t),n=new Array(e.length),r=0;r<e.length;r++)n[r]=String.fromCharCode(e[r]);return n.join("")}function m(t){if(t.slice)return t.slice(0);var e=new Uint8Array(t.byteLength);return e.set(new Uint8Array(t)),e.buffer}function _(){return this.bodyUsed=!1,this._initBody=function(t){this.bodyUsed=this.bodyUsed,this._bodyInit=t,t?"string"==typeof t?this._bodyText=t:i.blob&&Blob.prototype.isPrototypeOf(t)?this._bodyBlob=t:i.formData&&FormData.prototype.isPrototypeOf(t)?this._bodyFormData=t:i.searchParams&&URLSearchParams.prototype.isPrototypeOf(t)?this._bodyText=t.toString():i.arrayBuffer&&i.blob&&a(t)?(this._bodyArrayBuffer=m(t.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):i.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(t)||u(t))?this._bodyArrayBuffer=m(t):this._bodyText=t=Object.prototype.toString.call(t):this._bodyText="",this.headers.get("content-type")||("string"==typeof t?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):i.searchParams&&URLSearchParams.prototype.isPrototypeOf(t)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},i.blob&&(this.blob=function(){var t=p(this);if(t)return t;if(this._bodyBlob)return n.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return n.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return n.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){if(this._bodyArrayBuffer){var t=p(this);return t||(ArrayBuffer.isView(this._bodyArrayBuffer)?n.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):n.resolve(this._bodyArrayBuffer))}return this.blob().then(v)}),this.text=function(){var t=p(this);if(t)return t;if(this._bodyBlob)return y(this._bodyBlob);if(this._bodyArrayBuffer)return n.resolve(g(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return n.resolve(this._bodyText)},i.formData&&(this.formData=function(){return this.text().then(T)}),this.json=function(){return this.text().then(JSON.parse)},this}h.prototype.append=function(t,e){t=c(t),e=l(e);var n=this.map[t];this.map[t]=n?n+", "+e:e},h.prototype.delete=function(t){delete this.map[c(t)]},h.prototype.get=function(t){return t=c(t),this.has(t)?this.map[t]:null},h.prototype.has=function(t){return this.map.hasOwnProperty(c(t))},h.prototype.set=function(t,e){this.map[c(t)]=l(e)},h.prototype.forEach=function(t,e){for(var n in this.map)this.map.hasOwnProperty(n)&&t.call(e,this.map[n],n,this)},h.prototype.keys=function(){var t=[];return this.forEach((function(e,n){t.push(n)})),f(t)},h.prototype.values=function(){var t=[];return this.forEach((function(e){t.push(e)})),f(t)},h.prototype.entries=function(){var t=[];return this.forEach((function(e,n){t.push([n,e])})),f(t)},i.iterable&&(h.prototype[Symbol.iterator]=h.prototype.entries);var b=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function w(t){var e=t.toUpperCase();return b.indexOf(e)>-1?e:t}function E(t,e){if(!(this instanceof E))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');var n=(e=e||{}).body;if(t instanceof E){if(t.bodyUsed)throw new TypeError("Already read");this.url=t.url,this.credentials=t.credentials,e.headers||(this.headers=new h(t.headers)),this.method=t.method,this.mode=t.mode,this.signal=t.signal,n||null==t._bodyInit||(n=t._bodyInit,t.bodyUsed=!0)}else this.url=String(t);if(this.credentials=e.credentials||this.credentials||"same-origin",!e.headers&&this.headers||(this.headers=new h(e.headers)),this.method=w(e.method||this.method||"GET"),this.mode=e.mode||this.mode||null,this.signal=e.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&n)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(n),!("GET"!==this.method&&"HEAD"!==this.method||"no-store"!==e.cache&&"no-cache"!==e.cache)){var r=/([?&])_=[^&]*/;if(r.test(this.url))this.url=this.url.replace(r,"$1_="+(new Date).getTime());else{var o=/\?/;this.url+=(o.test(this.url)?"&":"?")+"_="+(new Date).getTime()}}}function T(t){var e=new FormData;return t.trim().split("&").forEach((function(t){if(t){var n=t.split("="),r=n.shift().replace(/\+/g," "),o=n.join("=").replace(/\+/g," ");e.append(decodeURIComponent(r),decodeURIComponent(o))}})),e}function S(t){var e=new h;return t.replace(/\r?\n[\t ]+/g," ").split("\r").map((function(t){return 0===t.indexOf("\n")?t.substr(1,t.length):t})).forEach((function(t){var n=t.split(":"),r=n.shift().trim();if(r){var o=n.join(":").trim();e.append(r,o)}})),e}function O(t,e){if(!(this instanceof O))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');e||(e={}),this.type="default",this.status=void 0===e.status?200:e.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in e?e.statusText:"",this.headers=new h(e.headers),this.url=e.url||"",this._initBody(t)}E.prototype.clone=function(){return new E(this,{body:this._bodyInit})},_.call(E.prototype),_.call(O.prototype),O.prototype.clone=function(){return new O(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new h(this.headers),url:this.url})},O.error=function(){var t=new O(null,{status:0,statusText:""});return t.type="error",t};var C=[301,302,303,307,308];O.redirect=function(t,e){if(-1===C.indexOf(e))throw new RangeError("Invalid status code");return new O(null,{status:e,headers:{location:t}})},e.DOMException=r.DOMException;try{new e.DOMException}catch(t){e.DOMException=function(t,e){this.message=t,this.name=e;var n=Error(t);this.stack=n.stack},e.DOMException.prototype=Object.create(Error.prototype),e.DOMException.prototype.constructor=e.DOMException}function P(t,a){return new n((function(n,s){var u=new E(t,a);if(u.signal&&u.signal.aborted)return s(new e.DOMException("Aborted","AbortError"));var c=new o;function f(){c.abort()}function p(t){try{return""===t&&r.location.href?r.location.href:t}catch(e){return t}}c.onload=function(){var t={status:c.status,statusText:c.statusText,headers:S(c.getAllResponseHeaders()||"")};t.url="responseURL"in c?c.responseURL:t.headers.get("X-Request-URL");var e="response"in c?c.response:c.responseText;setTimeout((function(){n(new O(e,t))}),0)},c.onerror=function(){setTimeout((function(){s(new TypeError("Network request failed"))}),0)},c.ontimeout=function(){setTimeout((function(){s(new TypeError("Network request failed"))}),0)},c.onabort=function(){setTimeout((function(){s(new e.DOMException("Aborted","AbortError"))}),0)},c.open(u.method,p(u.url),!0),"include"===u.credentials?c.withCredentials=!0:"omit"===u.credentials&&(c.withCredentials=!1),"responseType"in c&&(i.blob?c.responseType="blob":i.arrayBuffer&&u.headers.get("Content-Type")&&-1!==u.headers.get("Content-Type").indexOf("application/octet-stream")&&(c.responseType="arraybuffer")),!a||"object"!=typeof a.headers||a.headers instanceof h?u.headers.forEach((function(t,e){c.setRequestHeader(e,t)})):Object.getOwnPropertyNames(a.headers).forEach((function(t){c.setRequestHeader(t,l(a.headers[t]))})),u.signal&&(u.signal.addEventListener("abort",f),c.onreadystatechange=function(){4===c.readyState&&u.signal.removeEventListener("abort",f)}),c.send(void 0===u._bodyInit?null:u._bodyInit)}))}P.polyfill=!0,r.fetch||(r.fetch=P,r.Headers=h,r.Request=E,r.Response=O),e.Headers=h,e.Request=E,e.Response=O,e.fetch=P,Object.defineProperty(e,"__esModule",{value:!0})}(e),{fetch:t.fetch,Headers:t.Headers,Request:t.Request,Response:t.Response,DOMException:t.DOMException}}()}void 0===(o=function(){return i}.call(e,n,e,t))||(t.exports=o)}("undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:void 0!==r?r:this)}).call(this,n(35))},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(48),o=n(49),i=n(32),a=n(50),s=n(66),u=n(51);function c(t){var e=[],n="";if(Object.keys(i.LAYER_KEYWORD_PARAMS).forEach((function(n){var r=i.LAYER_KEYWORD_PARAMS[n],o=t[n]||r;o!==r&&e.push(o)})),Object.keys(t).forEach((function(n){"letter_spacing"!==n&&"line_spacing"!==n||e.push(n+"_"+t[n]),"font_hinting"===n&&e.push(n.split("_").pop()+"_"+t[n]),"font_antialiasing"===n&&e.push("antialias_"+t[n])})),t.hasOwnProperty("font_size")||!e||0===e.length){if(!t.font_size)throw"Must supply font_size for text in overlay/underlay";if(!t.font_family)throw"Must supply font_family for text in overlay/underlay";e.unshift(t.font_size),e.unshift(t.font_family),n=e.filter((function(t){return t})).join("_")}return n}n(36),n(37),n(52),n(59),e.processLayer=function(t){if(t instanceof s||t instanceof u)return t.toString();var e="";if(r.isObject(t))if("fetch"===t.resource_type||null!=t.url)e="fetch:"+o.base64Encode(t.url);else{var n=t.public_id,i=t.format,l=t.resource_type||"image",f=t.type||"upload",h=t.text,p=null,d=[],v=!n||0===n.length;if(v||(n=n.replace(new RegExp("/","g"),":"),null!=i&&(n=n+"."+i)),h&&0!==h.length||"text"===l){if(l="text",f=null,p=c(t),h&&h.length>=0){var y=!p;if(!v&&!y||v&&y)throw"Must supply either style parameters or a public_id when providing text parameter in a text overlay/underlay";var g=/\$\([a-zA-Z]\w*\)/g,m=0,_=a.smartEscape(decodeURIComponent(h),/[,\/]/g);h="";for(var b=g.exec(_);b;b=g.exec(_))h+=a.smartEscape(_.slice(m,b.index)),h+=b[0],m=b.index+b[0].length;h+=encodeURIComponent(_.slice(m))}}else{if(v)throw"Must supply public_id for resource_type layer_parameter";"subtitles"===l&&(p=c(t))}"image"!==l&&d.push(l),"upload"!==f&&d.push(f),d.push(p),d.push(n),d.push(h),e=d.filter((function(t){return t})).join(":")}else e=/^fetch:.+/.test(t)?"fetch:"+o.base64Encode(t.substr(6)):t;return e},e.textStyle=c},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(81);n(32),e.process_if=function(t){return t?"if_"+r.legacyNormalizeExpression(t):t}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.toArray=function(t){switch(!0){case null==t:return[];case Array.isArray(t):return t;default:return[t]}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(81);n(32),e.processRadius=function(t){var e=t;if(!e)return e;if(Array.isArray(e)||(e=[e]),0===e.length||e.length>4)throw new Error("Radius array should contain between 1 and 4 values");if(e.findIndex((function(t){return null===t}))>=0)throw new Error("Corner: Cannot be null");return e.map(r.legacyNormalizeExpression).join(":")}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(119);n(49),n(48),e.processCustomPreFunction=function(t){var e=r.processCustomFunction(t);return"string"==typeof e?"pre:"+e:null}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(32);e.splitRange=function(t){switch(t&&t.constructor){case String:return r.OFFSET_ANY_PATTERN_RE.test(t)?t.split(".."):t;case Array:return[[t],t[t.length-1]];default:return[null,null]}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(32);e.normRangeValues=function(t){var e=String(t).match(r.RANGE_VALUE_RE);if(e){var n=e[5]?"p":"";return""+(e[1]||e[4])+n}return t}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.processVideoParams=function(t){switch(t&&t.constructor){case Object:var e="";return"codec"in t&&(e=t.codec,"profile"in t&&(e+=":"+t.profile,"level"in t&&(e+=":"+t.level))),e;case String:return t;default:return null}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(67);e.processDpr=function(t){var e=t.toString();return(null!=e?e.match(/^\d+$/):void 0)?e+".0":r.normalize(e)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.applyWithProps=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=n.order,a=void 0===i?null:i,s=e,u=function(n){var r=e[n];void 0!==r&&t[n]&&(0,o.isFunction)(t[n])&&t[n](r)};a&&(s=(0,r.assign)({},e),a.forEach((function(t){u(t),delete s[t]})));Object.keys(s).forEach((function(t){u(t)}))};var r=n(12),o=n(13)},function(t,e,n){"use strict";function r(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function o(t,e,n){return e&&r(t.prototype,e),n&&r(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0}),e.mixin=function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return e.reduce((function(t,e){return e(t)}),o((function t(){i(this,t)})))}},function(t,e,n){"use strict";n.r(e)},function(t,e,n){"use strict";function r(t){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r(t)}var o;function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function s(){return s="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var r=u(t,e);if(r){var o=Object.getOwnPropertyDescriptor(r,e);return o.get?o.get.call(arguments.length<3?t:n):o.value}},s.apply(this,arguments)}function u(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=h(t)););return t}function c(t,e){return c=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},c(t,e)}function l(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=h(t);if(e){var o=h(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return f(this,n)}}function f(t,e){if(e&&("object"===r(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function h(t){return h=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},h(t)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var p=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&c(t,e)}(u,t);var e,n,r,o=l(u);function u(){return i(this,u),o.apply(this,arguments)}return e=u,(n=[{key:"setItem",value:function(t){var e=t.action,n=t.source;this.source=n;var r=n.info();this.setTitle(r.title||n.publicId()),this.setPoster(this.source.poster().url({transformation:{aspect_ratio:"16:9",crop:"pad",background:"black"}})),this.setAction(e)}},{key:"setTitle",value:function(t){this.title.innerText=t}},{key:"setAction",value:function(t){this.action=t}},{key:"handleClick",value:function(){s(h(u.prototype),"handleClick",this).call(this),this.player().trigger("recommendationshide"),this.action()}}])&&a(e.prototype,n),r&&a(e,r),Object.defineProperty(e,"prototype",{writable:!1}),u}(((o=n(1))&&o.__esModule?o:{default:o}).default.getComponent("ClickableComponent")),d=p;e.default=d},function(t,e,n){"use strict";var r=function(t){t.style.display="none"},o=function(t){t.style.display=""};t.exports={hide:r,show:o,setText:function(t,e){if(!e||e.length<=0)return t.innerText="",void r(t);t.innerText=e,o(t)}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.throttle=e.parseTime=e.parseISO8601=e.debounce=void 0;var r=void 0;function o(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null==n)return;var r,o,i=[],a=!0,s=!1;try{for(n=n.call(t);!(a=(r=n.next()).done)&&(i.push(r.value),!e||i.length!==e);a=!0);}catch(t){s=!0,o=t}finally{try{a||null==n.return||n.return()}finally{if(s)throw o}}return i}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return i(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return i(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var a=[1,4,5,6,7,10,11];e.parseISO8601=function(t){var e=0,n=0,r=0;if(n=/^(\d{4}|[+\-]\d{6})(?:-(\d{2})(?:-(\d{2}))?)?(?:T(\d{2}):(\d{2})(?::(\d{2})(?:\.(\d{3}))?)?(?:(Z)|([+\-])(\d{2})(?::(\d{2}))?)?)?$/.exec(t)){for(var o,i=0;o=a[i];++i)n[o]=+n[o]||0;n[2]=(+n[2]||1)-1,n[3]=+n[3]||1,"Z"!==n[8]&&void 0!==n[9]&&(r=60*n[10]+n[11],"+"===n[9]&&(r=0-r)),e=Date.UTC(n[1],n[2],n[3],n[4],n[5]+r,n[6],n[7])}else e=NaN;return e};e.parseTime=function(t){var e=o(t.split(":").reverse(),3),n=e[0],r=e[1],i=e[2],a=null;return isNaN(n)||(a=60*(+i||0)*60+60*(+r||0)+ +n),a};e.debounce=function(t,e){var n=null;return function(){for(var o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];clearTimeout(n),n=setTimeout((function(){t.apply(r,i)}),e)}};e.throttle=function(t,e){var n=0;return function(){var o=new Date;if(o-n>=e){for(var i=arguments.length,a=new Array(i),s=0;s<i;s++)a[s]=arguments[s];t.apply(r,a),n=o}}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=n(31),o=n(20),i=n(131);function a(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function s(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?a(Object(n),!0).forEach((function(e){l(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function u(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function c(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function l(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var f=function(){function t(e){var n=this,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};u(this,t),l(this,"_transformation",null);var a=(0,r.normalizeOptions)(e,i),s=a.publicId,c=a.options,f=(0,o.sliceAndUnsetProperties)(c,"cloudinaryConfig"),h=f.cloudinaryConfig,p=(0,o.sliceAndUnsetProperties)(c,"transformation"),d=p.transformation,v=(0,o.sliceAndUnsetProperties)(c,"queryParams"),y=v.queryParams;if(!h)throw new Error('Source is missing "cloudinaryConfig".');this.publicId=function(){return s},this.cloudinaryConfig=function(){return h},this.resourceConfig=function(){return c},this.queryParams=function(){return y},this.getType=function(){return n._type},this.transformation(d)}var e,n,a;return e=t,n=[{key:"transformation",value:function(t){return t&&(this._transformation=t),this._transformation}},{key:"config",value:function(){var t=this,e=this.cloudinaryConfig();return{cloud_name:e.cloudName,url:function(n,o){if((0,r.isRawUrl)(n))return n;var i=(0,r.mergeTransformations)(t.resourceConfig(),o);return(0,r.getCloudinaryUrl)(n,s(s({},e),i))}}}},{key:"url",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.transformation,n=this.config().url(this.publicId(),{transformation:e||this.transformation()}),r=this.queryParams()?(0,i.objectToQuerystring)(this.queryParams()):"";return"".concat(n).concat(r)}}],n&&c(e.prototype,n),a&&c(e,a),Object.defineProperty(e,"prototype",{writable:!1}),t}(),h=f;e.default=h},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SHOPPABLE_WIDGET_OPTIONS_DEFAULTS=e.SHOPPABLE_PRODUCTS_OVERLAY_CLASS=e.SHOPPABLE_PANEL_VISIBLE_CLASS=e.SHOPPABLE_PANEL_HIDDEN_CLASS=e.SHOPPABLE_HOVER_ACTIONS=e.SHOPPABLE_CLICK_ACTIONS=e.SHOPPABLE_ANIMATION_CLASS=e.ICON_CART_CLASS=e.CLOSE_ICON_CLASS=e.CLD_SPBL_TOGGLE_ICON_CLASS=e.CLD_SPBL_TOGGLE_CUSTOM_ICON_CLASS=e.CLD_SPBL_TOGGLE_CLASS=e.CLD_SPBL_PANEL_CLASS=e.CLD_SPBL_ITEM=e.CLD_SPBL_INNER_BAR=e.CLD_SPBL_IMAGE=void 0;e.SHOPPABLE_WIDGET_OPTIONS_DEFAULTS={location:"right",toggleIcon:"",width:"20%",startState:"openOnPlay",autoClose:2,transformation:{quality:"auto",width:"auto",fetch_format:"auto",crop:"scale"},products:[],showPostPlayOverlay:!1};e.SHOPPABLE_CLICK_ACTIONS={GO_TO:"goto",SEEk:"seek"};e.SHOPPABLE_HOVER_ACTIONS={OVERLAY:"overlay"};e.SHOPPABLE_PANEL_VISIBLE_CLASS="shoppable-panel-visible";e.SHOPPABLE_PANEL_HIDDEN_CLASS="shoppable-panel-hidden";e.SHOPPABLE_PRODUCTS_OVERLAY_CLASS="shoppable-products-overlay";e.CLD_SPBL_PANEL_CLASS="cld-spbl-panel";e.CLD_SPBL_TOGGLE_CLASS="cld-spbl-toggle";e.CLD_SPBL_TOGGLE_ICON_CLASS="cld-spbl-toggle-icon";e.CLD_SPBL_INNER_BAR="cld-spbl-bar-inner";e.CLD_SPBL_TOGGLE_CUSTOM_ICON_CLASS="cld-spbl-toggle-custom-icon";e.ICON_CART_CLASS="vjs-icon-cart";e.CLOSE_ICON_CLASS="vjs-icon-close";e.SHOPPABLE_ANIMATION_CLASS="animate";e.CLD_SPBL_ITEM="cld-spbl-item";e.CLD_SPBL_IMAGE="cld-spbl-img"},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.wrap=e.styleElement=e.elementsCreator=e.createElement=e.addEventListener=void 0;var r=n(85),o=n(13);function i(t){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i(t)}e.wrap=function(t,e){return t.parentNode.insertBefore(e,t),e.appendChild(t),e};var a=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0,o=document.createElement(t);for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&o.setAttribute(i,e[i]);return(0,r.castArray)(n).forEach((function(t){return s(t,o)})),o};e.createElement=a;var s=function(t,e){if((0,o.isElement)(t))e.appendChild(t);else if(t&&"object"!==i(t)){var n=document.createTextNode(t);e.appendChild(n)}},u=function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t.style[n]=e[n]);return t};e.styleElement=u;e.elementsCreator=function t(e){var n=Array.isArray(e.children)?e.children.map(t):e.children,r=(0,o.isElement)(e)?e:a(e.tag,e.attr,n);return e.onClick&&(e.event={name:"click",callback:e.onClick}),e.event&&r.addEventListener(e.event.name,e.event.callback,!1),e.style&&u(r,e.style),r};e.addEventListener=function(t,e,n){return t.addEventListener(e,n,!1),function(){t.removeEventListener(e,n,!1)}}},function(t,e,n){"use strict";function r(t){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r(t)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o,i=(o=n(1))&&o.__esModule?o:{default:o};function a(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function s(t,e){return s=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},s(t,e)}function u(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=l(t);if(e){var o=l(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return c(this,n)}}function c(t,e){if(e&&("object"===r(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function l(t){return l=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},l(t)}var f=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&s(t,e)}(c,t);var e,n,r,o=u(c);function c(t,e){var n;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,c),n=o.call(this,t,e);var r=e.type;if(!r&&"previous"!==r&&"next"!==r)throw new Error("Type must be either 'previous' or 'next'");return n}return e=c,(n=[{key:"createEl",value:function(){var t=this.options_.type,e="vjs-icon-play-".concat(t);return i.default.dom.createEl("button",{className:"vjs-control vjs-playlist-button vjs-button ".concat(e)})}}])&&a(e.prototype,n),r&&a(e,r),Object.defineProperty(e,"prototype",{writable:!1}),c}(i.default.getComponent("ClickableComponent"));e.default=f},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.UPCOMING_VIDEO_TRANSITION=e.PLAYLIST_DEFAULTS_OPTIONS=e.DEFAULT_PRESENT_UPCOMING=e.DEFAULT_AUTO_ADVANCE=void 0;e.DEFAULT_AUTO_ADVANCE=0;e.DEFAULT_PRESENT_UPCOMING=10;e.UPCOMING_VIDEO_TRANSITION=1;e.PLAYLIST_DEFAULTS_OPTIONS={fluid:!1,show:!0,direction:"vertical",total:4,selector:!1,renderTo:[]}},function(t,e,n){"use strict";function r(t){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r(t)}Object.defineProperty(e,"__esModule",{value:!0}),e.normalizeEventsParam=e.default=void 0;var o=c(n(1)),i=c(n(449)),a=n(12),s=n(13),u=n(27);function c(t){return t&&t.__esModule?t:{default:t}}function l(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function f(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function h(t,e){return h=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},h(t,e)}function p(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=y(t);if(e){var o=y(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return d(this,n)}}function d(t,e){if(e&&("object"===r(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return v(t)}function v(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function y(t){return y=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},y(t)}var g={percentsplayed:{percents:[25,50,75,100]}},m={events:[u.PLAYER_EVENT.PERCENTS_PLAYED,u.PLAYER_EVENT.PAUSE_NO_SEEK,u.PLAYER_EVENT.SEEK,u.PLAYER_EVENT.MUTE,u.PLAYER_EVENT.UNMUTE,u.PLAYER_EVENT.QUALITY_CHANGED]},_=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&h(t,e)}(a,t);var e,n,r,i=p(a);function a(t){var e,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};f(this,a),(e=i.call(this)).player=t;var r=o.default.mergeOptions(m,n),s={lastState:void 0},c=0,l=0,h=!1,p=[],d=[],y=null,_=!1,T=function(t){e.player.muted()&&"muted"!==s.lastState?(s.lastState="muted",e.emit(u.PLAYER_EVENT.MUTE,t)):e.player.muted()||"unmuted"===s.lastState||(s.lastState="unmuted",e.emit(u.PLAYER_EVENT.UNMUTE,t))},S=function(t){var n=e.player.currentTime(),r=e.player.duration(),o=function(n,r){r.originalType="timeupdate",e.emit(n,t,r)};if(e.events.percentsplayed&&e.events.percentsplayed.percents.forEach((function(t){w(n,r,t)&&-1===p.indexOf(t)&&(p.push(t),o(u.PLAYER_EVENT.PERCENTS_PLAYED,{percent:t}))})),e.events.timeplayed){var i=e.events.timeplayed;(i.interval?[Math.floor(n/i.interval)*i.interval]:i.times).forEach((function(t){E(n,t)&&-1===d.indexOf(t)&&(d.push(t),o(u.PLAYER_EVENT.TIME_PLAYED,{time:t}))}))}e.events.seek&&(c=l,l=n,Math.abs(c-l)>1&&(h=!0,x(),o(u.PLAYER_EVENT.SEEK,{seekStart:c,seekEnd:l})))},O=function(t){Math.round(e.player.currentTime())===Math.round(e.player.duration())||h||e.emit(u.PLAYER_EVENT.PAUSE_NO_SEEK,t)},C=function(){h=!1},P=function(){_&&(e.player.trigger("replay"),_=!1)},k=function(){e.player.currentSource().src!==y&&(x(),y=e.player.currentSource().src)},j=function(t){for(var n=v(e),r=e.player.textTracks(),o=null,i=0;i<r.length;i++)"segment-metadata"===r[i].label&&(o=r[i]);var a=null;o&&o.on("cuechange",(function(){var e=o.activeCues[0];if(e){var r=e.value.resolution;if(a!==r){var i={from:a,to:r};n.emit(u.PLAYER_EVENT.QUALITY_CHANGED,t,i)}a=r}}))},A=function(){s={lastState:void 0},c=l=0,h=!1,x()},x=function(){p=[],d=[]},R=function(){_=!0};return e.events=b(r.events,g),A(),e.player.on(u.PLAYER_EVENT.PLAY,P.bind(v(e))),e.player.on(u.PLAYER_EVENT.ENDED,R.bind(v(e))),(e.events.percentsplayed||e.events.timeplayed||e.events.seek||e.events.totaltimeplayed)&&e.player.on(u.PLAYER_EVENT.TIME_UPDATE,S.bind(v(e))),(e.events.mute||e.events.unmute)&&e.player.on(u.PLAYER_EVENT.VOLUME_CHANGE,T.bind(v(e))),e.events.pausenoseek&&(e.player.on(u.PLAYER_EVENT.PAUSE,O.bind(v(e))),e.player.on(u.PLAYER_EVENT.PLAY,C.bind(v(e)))),e.player.on(u.PLAYER_EVENT.LOADED_METADATA,k.bind(v(e))),e.player.on(u.PLAYER_EVENT.LOADED_DATA,j.bind(v(e))),e}return e=a,n&&l(e.prototype,n),r&&l(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}(i.default),b=function(t,e){var n=t;return"Array"===t.constructor.name&&(n=t.reduce((function(t,n){var r=e[n]||{};return(0,s.isPlainObject)(n)?t[n.type]=(0,a.assign)({},r,n):t[n]=r,t}),{})),n};e.normalizeEventsParam=b;var w=function(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:.5,o=e*n/100;return E(t,o,r)},E=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:.5;return t<=e+n&&t>=e-n},T=_;e.default=T},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isValueValid=e.isValidConfig=e.getValidatorItem=void 0;var r=n(13),o=function(t){return(0,r.isFunction)(t)?t():t};e.getValidatorItem=o;var i=function(t,e,n){var r=o(t),i=r.value(e);return i||console.error("cloudinary video player: ".concat(r.message(n))),i};e.isValueValid=i;e.isValidConfig=function t(e,n){if((0,r.isPlainObject)(n))for(var o in e)if(Object.prototype.hasOwnProperty.call(n,o)){var a=e[o],s=n[o],u=(0,r.isPlainObject)(a);if(u&&!t(a,s))return!1;if(!u&&!i(s,a,o))return!1}return!0}},function(t,e,n){"use strict";e.a=function(t){var e=this.constructor;return this.then((function(n){return e.resolve(t()).then((function(){return n}))}),(function(n){return e.resolve(t()).then((function(){return e.reject(n)}))}))}},function(t,e,n){"use strict";e.a=function(t){return new this((function(e,n){if(!t||void 0===t.length)return n(new TypeError(typeof t+" "+t+" is not iterable(cannot read property Symbol(Symbol.iterator))"));var r=Array.prototype.slice.call(t);if(0===r.length)return e([]);var o=r.length;function i(t,n){if(n&&("object"==typeof n||"function"==typeof n)){var a=n.then;if("function"==typeof a)return void a.call(n,(function(e){i(t,e)}),(function(n){r[t]={status:"rejected",reason:n},0==--o&&e(r)}))}r[t]={status:"fulfilled",value:n},0==--o&&e(r)}for(var a=0;a<r.length;a++)i(a,r[a])}))}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.videoPlayers=e.videoPlayer=void 0,n(194),n(380);var r,o=(r=n(381))&&r.__esModule?r:{default:r},i=n(12),a=n(127),s=n(60);function u(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function c(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?u(Object(n),!0).forEach((function(e){l(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function l(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}window.cloudinary&&window.cloudinary.Cloudinary;var f=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1?arguments[1]:void 0;return(0,i.assign)((0,a.omit)(t,s.CLOUDINARY_CONFIG_PARAM),{cloudinaryConfig:e||(0,a.pick)(t,s.CLOUDINARY_CONFIG_PARAM)})},h=function(t){return function(e,n,r){return new o.default(e,f(n,t),r)}},p=function(t){return function(e,n,r){return o.default.all(e,f(n,t),r)}},d=h();e.videoPlayer=d;var v=p();e.videoPlayers=v,window.cloudinary=c(c({},window.cloudinary||{}),{},{videoPlayer:d,videoPlayers:v,Cloudinary:{new:function(t){return{videoPlayer:h(t),videoPlayers:p(t)}}}})},function(t,e,n){"use strict";n(195);var r,o=(r=n(367))&&r.__esModule?r:{default:r};o.default._babelPolyfill&&"undefined"!=typeof console&&console.warn,o.default._babelPolyfill=!0},function(t,e,n){"use strict";n(196),n(339),n(341),n(344),n(346),n(348),n(350),n(352),n(354),n(356),n(358),n(360),n(362),n(366)},function(t,e,n){n(197),n(200),n(201),n(202),n(203),n(204),n(205),n(206),n(207),n(208),n(209),n(210),n(211),n(212),n(213),n(214),n(215),n(216),n(217),n(218),n(219),n(220),n(221),n(222),n(223),n(224),n(225),n(226),n(227),n(228),n(229),n(230),n(231),n(232),n(233),n(234),n(235),n(236),n(237),n(238),n(239),n(240),n(241),n(243),n(244),n(245),n(246),n(247),n(248),n(249),n(250),n(251),n(252),n(253),n(254),n(255),n(256),n(257),n(258),n(259),n(260),n(261),n(262),n(263),n(264),n(265),n(266),n(267),n(268),n(269),n(270),n(271),n(272),n(273),n(274),n(275),n(276),n(278),n(279),n(281),n(282),n(283),n(284),n(285),n(286),n(287),n(289),n(290),n(291),n(292),n(293),n(294),n(295),n(296),n(297),n(298),n(299),n(300),n(301),n(107),n(302),n(153),n(303),n(154),n(304),n(305),n(306),n(307),n(155),n(310),n(311),n(312),n(313),n(314),n(315),n(316),n(317),n(318),n(319),n(320),n(321),n(322),n(323),n(324),n(325),n(326),n(327),n(328),n(329),n(330),n(331),n(332),n(333),n(334),n(335),n(336),n(337),n(338),t.exports=n(8)},function(t,e,n){"use strict";var r=n(2),o=n(16),i=n(9),a=n(0),s=n(14),u=n(34).KEY,c=n(3),l=n(68),f=n(53),h=n(39),p=n(6),d=n(88),v=n(134),y=n(199),g=n(71),m=n(4),_=n(5),b=n(11),w=n(18),E=n(33),T=n(38),S=n(43),O=n(137),C=n(24),P=n(70),k=n(10),j=n(41),A=C.f,x=k.f,R=O.f,L=r.Symbol,I=r.JSON,N=I&&I.stringify,M=p("_hidden"),D=p("toPrimitive"),F={}.propertyIsEnumerable,B=l("symbol-registry"),V=l("symbols"),U=l("op-symbols"),H=Object.prototype,Y="function"==typeof L&&!!P.f,z=r.QObject,W=!z||!z.prototype||!z.prototype.findChild,G=i&&c((function(){return 7!=S(x({},"a",{get:function(){return x(this,"a",{value:7}).a}})).a}))?function(t,e,n){var r=A(H,e);r&&delete H[e],x(t,e,n),r&&t!==H&&x(H,e,r)}:x,K=function(t){var e=V[t]=S(L.prototype);return e._k=t,e},X=Y&&"symbol"==typeof L.iterator?function(t){return"symbol"==typeof t}:function(t){return t instanceof L},q=function(t,e,n){return t===H&&q(U,e,n),m(t),e=E(e,!0),m(n),o(V,e)?(n.enumerable?(o(t,M)&&t[M][e]&&(t[M][e]=!1),n=S(n,{enumerable:T(0,!1)})):(o(t,M)||x(t,M,T(1,{})),t[M][e]=!0),G(t,e,n)):x(t,e,n)},$=function(t,e){m(t);for(var n,r=y(e=w(e)),o=0,i=r.length;i>o;)q(t,n=r[o++],e[n]);return t},J=function(t){var e=F.call(this,t=E(t,!0));return!(this===H&&o(V,t)&&!o(U,t))&&(!(e||!o(this,t)||!o(V,t)||o(this,M)&&this[M][t])||e)},Q=function(t,e){if(t=w(t),e=E(e,!0),t!==H||!o(V,e)||o(U,e)){var n=A(t,e);return!n||!o(V,e)||o(t,M)&&t[M][e]||(n.enumerable=!0),n}},Z=function(t){for(var e,n=R(w(t)),r=[],i=0;n.length>i;)o(V,e=n[i++])||e==M||e==u||r.push(e);return r},tt=function(t){for(var e,n=t===H,r=R(n?U:w(t)),i=[],a=0;r.length>a;)!o(V,e=r[a++])||n&&!o(H,e)||i.push(V[e]);return i};Y||(L=function(){if(this instanceof L)throw TypeError("Symbol is not a constructor!");var t=h(arguments.length>0?arguments[0]:void 0),e=function(n){this===H&&e.call(U,n),o(this,M)&&o(this[M],t)&&(this[M][t]=!1),G(this,t,T(1,n))};return i&&W&&G(H,t,{configurable:!0,set:e}),K(t)},s(L.prototype,"toString",(function(){return this._k})),C.f=Q,k.f=q,n(44).f=O.f=Z,n(62).f=J,P.f=tt,i&&!n(40)&&s(H,"propertyIsEnumerable",J,!0),d.f=function(t){return K(p(t))}),a(a.G+a.W+a.F*!Y,{Symbol:L});for(var et="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),nt=0;et.length>nt;)p(et[nt++]);for(var rt=j(p.store),ot=0;rt.length>ot;)v(rt[ot++]);a(a.S+a.F*!Y,"Symbol",{for:function(t){return o(B,t+="")?B[t]:B[t]=L(t)},keyFor:function(t){if(!X(t))throw TypeError(t+" is not a symbol!");for(var e in B)if(B[e]===t)return e},useSetter:function(){W=!0},useSimple:function(){W=!1}}),a(a.S+a.F*!Y,"Object",{create:function(t,e){return void 0===e?S(t):$(S(t),e)},defineProperty:q,defineProperties:$,getOwnPropertyDescriptor:Q,getOwnPropertyNames:Z,getOwnPropertySymbols:tt});var it=c((function(){P.f(1)}));a(a.S+a.F*it,"Object",{getOwnPropertySymbols:function(t){return P.f(b(t))}}),I&&a(a.S+a.F*(!Y||c((function(){var t=L();return"[null]"!=N([t])||"{}"!=N({a:t})||"{}"!=N(Object(t))}))),"JSON",{stringify:function(t){for(var e,n,r=[t],o=1;arguments.length>o;)r.push(arguments[o++]);if(n=e=r[1],(_(e)||void 0!==t)&&!X(t))return g(e)||(e=function(t,e){if("function"==typeof n&&(e=n.call(this,t,e)),!X(e))return e}),r[1]=e,N.apply(I,r)}}),L.prototype[D]||n(17)(L.prototype,D,L.prototype.valueOf),f(L,"Symbol"),f(Math,"Math",!0),f(r.JSON,"JSON",!0)},function(t,e,n){t.exports=n(68)("native-function-to-string",Function.toString)},function(t,e,n){var r=n(41),o=n(70),i=n(62);t.exports=function(t){var e=r(t),n=o.f;if(n)for(var a,s=n(t),u=i.f,c=0;s.length>c;)u.call(t,a=s[c++])&&e.push(a);return e}},function(t,e,n){var r=n(0);r(r.S,"Object",{create:n(43)})},function(t,e,n){var r=n(0);r(r.S+r.F*!n(9),"Object",{defineProperty:n(10).f})},function(t,e,n){var r=n(0);r(r.S+r.F*!n(9),"Object",{defineProperties:n(136)})},function(t,e,n){var r=n(18),o=n(24).f;n(25)("getOwnPropertyDescriptor",(function(){return function(t,e){return o(r(t),e)}}))},function(t,e,n){var r=n(11),o=n(45);n(25)("getPrototypeOf",(function(){return function(t){return o(r(t))}}))},function(t,e,n){var r=n(11),o=n(41);n(25)("keys",(function(){return function(t){return o(r(t))}}))},function(t,e,n){n(25)("getOwnPropertyNames",(function(){return n(137).f}))},function(t,e,n){var r=n(5),o=n(34).onFreeze;n(25)("freeze",(function(t){return function(e){return t&&r(e)?t(o(e)):e}}))},function(t,e,n){var r=n(5),o=n(34).onFreeze;n(25)("seal",(function(t){return function(e){return t&&r(e)?t(o(e)):e}}))},function(t,e,n){var r=n(5),o=n(34).onFreeze;n(25)("preventExtensions",(function(t){return function(e){return t&&r(e)?t(o(e)):e}}))},function(t,e,n){var r=n(5);n(25)("isFrozen",(function(t){return function(e){return!r(e)||!!t&&t(e)}}))},function(t,e,n){var r=n(5);n(25)("isSealed",(function(t){return function(e){return!r(e)||!!t&&t(e)}}))},function(t,e,n){var r=n(5);n(25)("isExtensible",(function(t){return function(e){return!!r(e)&&(!t||t(e))}}))},function(t,e,n){var r=n(0);r(r.S+r.F,"Object",{assign:n(138)})},function(t,e,n){var r=n(0);r(r.S,"Object",{is:n(139)})},function(t,e,n){var r=n(0);r(r.S,"Object",{setPrototypeOf:n(92).set})},function(t,e,n){"use strict";var r=n(63),o={};o[n(6)("toStringTag")]="z",o+""!="[object z]"&&n(14)(Object.prototype,"toString",(function(){return"[object "+r(this)+"]"}),!0)},function(t,e,n){var r=n(0);r(r.P,"Function",{bind:n(140)})},function(t,e,n){var r=n(10).f,o=Function.prototype,i=/^\s*function ([^ (]*)/,a="name";a in o||n(9)&&r(o,a,{configurable:!0,get:function(){try{return(""+this).match(i)[1]}catch(t){return""}}})},function(t,e,n){"use strict";var r=n(5),o=n(45),i=n(6)("hasInstance"),a=Function.prototype;i in a||n(10).f(a,i,{value:function(t){if("function"!=typeof this||!r(t))return!1;if(!r(this.prototype))return t instanceof this;for(;t=o(t);)if(this.prototype===t)return!0;return!1}})},function(t,e,n){var r=n(0),o=n(142);r(r.G+r.F*(parseInt!=o),{parseInt:o})},function(t,e,n){var r=n(0),o=n(143);r(r.G+r.F*(parseFloat!=o),{parseFloat:o})},function(t,e,n){"use strict";var r=n(2),o=n(16),i=n(28),a=n(94),s=n(33),u=n(3),c=n(44).f,l=n(24).f,f=n(10).f,h=n(54).trim,p="Number",d=r.Number,v=d,y=d.prototype,g=i(n(43)(y))==p,m="trim"in String.prototype,_=function(t){var e=s(t,!1);if("string"==typeof e&&e.length>2){var n,r,o,i=(e=m?e.trim():h(e,3)).charCodeAt(0);if(43===i||45===i){if(88===(n=e.charCodeAt(2))||120===n)return NaN}else if(48===i){switch(e.charCodeAt(1)){case 66:case 98:r=2,o=49;break;case 79:case 111:r=8,o=55;break;default:return+e}for(var a,u=e.slice(2),c=0,l=u.length;c<l;c++)if((a=u.charCodeAt(c))<48||a>o)return NaN;return parseInt(u,r)}}return+e};if(!d(" 0o1")||!d("0b1")||d("+0x1")){d=function(t){var e=arguments.length<1?0:t,n=this;return n instanceof d&&(g?u((function(){y.valueOf.call(n)})):i(n)!=p)?a(new v(_(e)),n,d):_(e)};for(var b,w=n(9)?c(v):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),E=0;w.length>E;E++)o(v,b=w[E])&&!o(d,b)&&f(d,b,l(v,b));d.prototype=y,y.constructor=d,n(14)(r,p,d)}},function(t,e,n){"use strict";var r=n(0),o=n(23),i=n(144),a=n(95),s=1..toFixed,u=Math.floor,c=[0,0,0,0,0,0],l="Number.toFixed: incorrect invocation!",f="0",h=function(t,e){for(var n=-1,r=e;++n<6;)r+=t*c[n],c[n]=r%1e7,r=u(r/1e7)},p=function(t){for(var e=6,n=0;--e>=0;)n+=c[e],c[e]=u(n/t),n=n%t*1e7},d=function(){for(var t=6,e="";--t>=0;)if(""!==e||0===t||0!==c[t]){var n=String(c[t]);e=""===e?n:e+a.call(f,7-n.length)+n}return e},v=function(t,e,n){return 0===e?n:e%2==1?v(t,e-1,n*t):v(t*t,e/2,n)};r(r.P+r.F*(!!s&&("0.000"!==8e-5.toFixed(3)||"1"!==.9.toFixed(0)||"1.25"!==1.255.toFixed(2)||"1000000000000000128"!==(0xde0b6b3a7640080).toFixed(0))||!n(3)((function(){s.call({})}))),"Number",{toFixed:function(t){var e,n,r,s,u=i(this,l),c=o(t),y="",g=f;if(c<0||c>20)throw RangeError(l);if(u!=u)return"NaN";if(u<=-1e21||u>=1e21)return String(u);if(u<0&&(y="-",u=-u),u>1e-21)if(e=function(t){for(var e=0,n=t;n>=4096;)e+=12,n/=4096;for(;n>=2;)e+=1,n/=2;return e}(u*v(2,69,1))-69,n=e<0?u*v(2,-e,1):u/v(2,e,1),n*=4503599627370496,(e=52-e)>0){for(h(0,n),r=c;r>=7;)h(1e7,0),r-=7;for(h(v(10,r,1),0),r=e-1;r>=23;)p(1<<23),r-=23;p(1<<r),h(1,1),p(2),g=d()}else h(0,n),h(1<<-e,0),g=d()+a.call(f,c);return g=c>0?y+((s=g.length)<=c?"0."+a.call(f,c-s)+g:g.slice(0,s-c)+"."+g.slice(s-c)):y+g}})},function(t,e,n){"use strict";var r=n(0),o=n(3),i=n(144),a=1..toPrecision;r(r.P+r.F*(o((function(){return"1"!==a.call(1,void 0)}))||!o((function(){a.call({})}))),"Number",{toPrecision:function(t){var e=i(this,"Number#toPrecision: incorrect invocation!");return void 0===t?a.call(e):a.call(e,t)}})},function(t,e,n){var r=n(0);r(r.S,"Number",{EPSILON:Math.pow(2,-52)})},function(t,e,n){var r=n(0),o=n(2).isFinite;r(r.S,"Number",{isFinite:function(t){return"number"==typeof t&&o(t)}})},function(t,e,n){var r=n(0);r(r.S,"Number",{isInteger:n(145)})},function(t,e,n){var r=n(0);r(r.S,"Number",{isNaN:function(t){return t!=t}})},function(t,e,n){var r=n(0),o=n(145),i=Math.abs;r(r.S,"Number",{isSafeInteger:function(t){return o(t)&&i(t)<=9007199254740991}})},function(t,e,n){var r=n(0);r(r.S,"Number",{MAX_SAFE_INTEGER:9007199254740991})},function(t,e,n){var r=n(0);r(r.S,"Number",{MIN_SAFE_INTEGER:-9007199254740991})},function(t,e,n){var r=n(0),o=n(143);r(r.S+r.F*(Number.parseFloat!=o),"Number",{parseFloat:o})},function(t,e,n){var r=n(0),o=n(142);r(r.S+r.F*(Number.parseInt!=o),"Number",{parseInt:o})},function(t,e,n){var r=n(0),o=n(146),i=Math.sqrt,a=Math.acosh;r(r.S+r.F*!(a&&710==Math.floor(a(Number.MAX_VALUE))&&a(1/0)==1/0),"Math",{acosh:function(t){return(t=+t)<1?NaN:t>94906265.62425156?Math.log(t)+Math.LN2:o(t-1+i(t-1)*i(t+1))}})},function(t,e,n){var r=n(0),o=Math.asinh;r(r.S+r.F*!(o&&1/o(0)>0),"Math",{asinh:function t(e){return isFinite(e=+e)&&0!=e?e<0?-t(-e):Math.log(e+Math.sqrt(e*e+1)):e}})},function(t,e,n){var r=n(0),o=Math.atanh;r(r.S+r.F*!(o&&1/o(-0)<0),"Math",{atanh:function(t){return 0==(t=+t)?t:Math.log((1+t)/(1-t))/2}})},function(t,e,n){var r=n(0),o=n(96);r(r.S,"Math",{cbrt:function(t){return o(t=+t)*Math.pow(Math.abs(t),1/3)}})},function(t,e,n){var r=n(0);r(r.S,"Math",{clz32:function(t){return(t>>>=0)?31-Math.floor(Math.log(t+.5)*Math.LOG2E):32}})},function(t,e,n){var r=n(0),o=Math.exp;r(r.S,"Math",{cosh:function(t){return(o(t=+t)+o(-t))/2}})},function(t,e,n){var r=n(0),o=n(97);r(r.S+r.F*(o!=Math.expm1),"Math",{expm1:o})},function(t,e,n){var r=n(0);r(r.S,"Math",{fround:n(242)})},function(t,e,n){var r=n(96),o=Math.pow,i=o(2,-52),a=o(2,-23),s=o(2,127)*(2-a),u=o(2,-126);t.exports=Math.fround||function(t){var e,n,o=Math.abs(t),c=r(t);return o<u?c*(o/u/a+1/i-1/i)*u*a:(n=(e=(1+a/i)*o)-(e-o))>s||n!=n?c*(1/0):c*n}},function(t,e,n){var r=n(0),o=Math.abs;r(r.S,"Math",{hypot:function(t,e){for(var n,r,i=0,a=0,s=arguments.length,u=0;a<s;)u<(n=o(arguments[a++]))?(i=i*(r=u/n)*r+1,u=n):i+=n>0?(r=n/u)*r:n;return u===1/0?1/0:u*Math.sqrt(i)}})},function(t,e,n){var r=n(0),o=Math.imul;r(r.S+r.F*n(3)((function(){return-5!=o(4294967295,5)||2!=o.length})),"Math",{imul:function(t,e){var n=65535,r=+t,o=+e,i=n&r,a=n&o;return 0|i*a+((n&r>>>16)*a+i*(n&o>>>16)<<16>>>0)}})},function(t,e,n){var r=n(0);r(r.S,"Math",{log10:function(t){return Math.log(t)*Math.LOG10E}})},function(t,e,n){var r=n(0);r(r.S,"Math",{log1p:n(146)})},function(t,e,n){var r=n(0);r(r.S,"Math",{log2:function(t){return Math.log(t)/Math.LN2}})},function(t,e,n){var r=n(0);r(r.S,"Math",{sign:n(96)})},function(t,e,n){var r=n(0),o=n(97),i=Math.exp;r(r.S+r.F*n(3)((function(){return-2e-17!=!Math.sinh(-2e-17)})),"Math",{sinh:function(t){return Math.abs(t=+t)<1?(o(t)-o(-t))/2:(i(t-1)-i(-t-1))*(Math.E/2)}})},function(t,e,n){var r=n(0),o=n(97),i=Math.exp;r(r.S,"Math",{tanh:function(t){var e=o(t=+t),n=o(-t);return e==1/0?1:n==1/0?-1:(e-n)/(i(t)+i(-t))}})},function(t,e,n){var r=n(0);r(r.S,"Math",{trunc:function(t){return(t>0?Math.floor:Math.ceil)(t)}})},function(t,e,n){var r=n(0),o=n(42),i=String.fromCharCode,a=String.fromCodePoint;r(r.S+r.F*(!!a&&1!=a.length),"String",{fromCodePoint:function(t){for(var e,n=[],r=arguments.length,a=0;r>a;){if(e=+arguments[a++],o(e,1114111)!==e)throw RangeError(e+" is not a valid code point");n.push(e<65536?i(e):i(55296+((e-=65536)>>10),e%1024+56320))}return n.join("")}})},function(t,e,n){var r=n(0),o=n(18),i=n(7);r(r.S,"String",{raw:function(t){for(var e=o(t.raw),n=i(e.length),r=arguments.length,a=[],s=0;n>s;)a.push(String(e[s++])),s<r&&a.push(String(arguments[s]));return a.join("")}})},function(t,e,n){"use strict";n(54)("trim",(function(t){return function(){return t(this,3)}}))},function(t,e,n){"use strict";var r=n(98)(!0);n(99)(String,"String",(function(t){this._t=String(t),this._i=0}),(function(){var t,e=this._t,n=this._i;return n>=e.length?{value:void 0,done:!0}:(t=r(e,n),this._i+=t.length,{value:t,done:!1})}))},function(t,e,n){"use strict";var r=n(0),o=n(98)(!1);r(r.P,"String",{codePointAt:function(t){return o(this,t)}})},function(t,e,n){"use strict";var r=n(0),o=n(7),i=n(100),a="endsWith",s="".endsWith;r(r.P+r.F*n(102)(a),"String",{endsWith:function(t){var e=i(this,t,a),n=arguments.length>1?arguments[1]:void 0,r=o(e.length),u=void 0===n?r:Math.min(o(n),r),c=String(t);return s?s.call(e,c,u):e.slice(u-c.length,u)===c}})},function(t,e,n){"use strict";var r=n(0),o=n(100),i="includes";r(r.P+r.F*n(102)(i),"String",{includes:function(t){return!!~o(this,t,i).indexOf(t,arguments.length>1?arguments[1]:void 0)}})},function(t,e,n){var r=n(0);r(r.P,"String",{repeat:n(95)})},function(t,e,n){"use strict";var r=n(0),o=n(7),i=n(100),a="startsWith",s="".startsWith;r(r.P+r.F*n(102)(a),"String",{startsWith:function(t){var e=i(this,t,a),n=o(Math.min(arguments.length>1?arguments[1]:void 0,e.length)),r=String(t);return s?s.call(e,r,n):e.slice(n,n+r.length)===r}})},function(t,e,n){"use strict";n(15)("anchor",(function(t){return function(e){return t(this,"a","name",e)}}))},function(t,e,n){"use strict";n(15)("big",(function(t){return function(){return t(this,"big","","")}}))},function(t,e,n){"use strict";n(15)("blink",(function(t){return function(){return t(this,"blink","","")}}))},function(t,e,n){"use strict";n(15)("bold",(function(t){return function(){return t(this,"b","","")}}))},function(t,e,n){"use strict";n(15)("fixed",(function(t){return function(){return t(this,"tt","","")}}))},function(t,e,n){"use strict";n(15)("fontcolor",(function(t){return function(e){return t(this,"font","color",e)}}))},function(t,e,n){"use strict";n(15)("fontsize",(function(t){return function(e){return t(this,"font","size",e)}}))},function(t,e,n){"use strict";n(15)("italics",(function(t){return function(){return t(this,"i","","")}}))},function(t,e,n){"use strict";n(15)("link",(function(t){return function(e){return t(this,"a","href",e)}}))},function(t,e,n){"use strict";n(15)("small",(function(t){return function(){return t(this,"small","","")}}))},function(t,e,n){"use strict";n(15)("strike",(function(t){return function(){return t(this,"strike","","")}}))},function(t,e,n){"use strict";n(15)("sub",(function(t){return function(){return t(this,"sub","","")}}))},function(t,e,n){"use strict";n(15)("sup",(function(t){return function(){return t(this,"sup","","")}}))},function(t,e,n){var r=n(0);r(r.S,"Date",{now:function(){return(new Date).getTime()}})},function(t,e,n){"use strict";var r=n(0),o=n(11),i=n(33);r(r.P+r.F*n(3)((function(){return null!==new Date(NaN).toJSON()||1!==Date.prototype.toJSON.call({toISOString:function(){return 1}})})),"Date",{toJSON:function(t){var e=o(this),n=i(e);return"number"!=typeof n||isFinite(n)?e.toISOString():null}})},function(t,e,n){var r=n(0),o=n(277);r(r.P+r.F*(Date.prototype.toISOString!==o),"Date",{toISOString:o})},function(t,e,n){"use strict";var r=n(3),o=Date.prototype.getTime,i=Date.prototype.toISOString,a=function(t){return t>9?t:"0"+t};t.exports=r((function(){return"0385-07-25T07:06:39.999Z"!=i.call(new Date(-50000000000001))}))||!r((function(){i.call(new Date(NaN))}))?function(){if(!isFinite(o.call(this)))throw RangeError("Invalid time value");var t=this,e=t.getUTCFullYear(),n=t.getUTCMilliseconds(),r=e<0?"-":e>9999?"+":"";return r+("00000"+Math.abs(e)).slice(r?-6:-4)+"-"+a(t.getUTCMonth()+1)+"-"+a(t.getUTCDate())+"T"+a(t.getUTCHours())+":"+a(t.getUTCMinutes())+":"+a(t.getUTCSeconds())+"."+(n>99?n:"0"+a(n))+"Z"}:i},function(t,e,n){var r=Date.prototype,o="Invalid Date",i="toString",a=r.toString,s=r.getTime;new Date(NaN)+""!=o&&n(14)(r,i,(function(){var t=s.call(this);return t==t?a.call(this):o}))},function(t,e,n){var r=n(6)("toPrimitive"),o=Date.prototype;r in o||n(17)(o,r,n(280))},function(t,e,n){"use strict";var r=n(4),o=n(33),i="number";t.exports=function(t){if("string"!==t&&t!==i&&"default"!==t)throw TypeError("Incorrect hint");return o(r(this),t!=i)}},function(t,e,n){var r=n(0);r(r.S,"Array",{isArray:n(71)})},function(t,e,n){"use strict";var r=n(21),o=n(0),i=n(11),a=n(148),s=n(103),u=n(7),c=n(104),l=n(105);o(o.S+o.F*!n(72)((function(t){Array.from(t)})),"Array",{from:function(t){var e,n,o,f,h=i(t),p="function"==typeof this?this:Array,d=arguments.length,v=d>1?arguments[1]:void 0,y=void 0!==v,g=0,m=l(h);if(y&&(v=r(v,d>2?arguments[2]:void 0,2)),null==m||p==Array&&s(m))for(n=new p(e=u(h.length));e>g;g++)c(n,g,y?v(h[g],g):h[g]);else for(f=m.call(h),n=new p;!(o=f.next()).done;g++)c(n,g,y?a(f,v,[o.value,g],!0):o.value);return n.length=g,n}})},function(t,e,n){"use strict";var r=n(0),o=n(104);r(r.S+r.F*n(3)((function(){function t(){}return!(Array.of.call(t)instanceof t)})),"Array",{of:function(){for(var t=0,e=arguments.length,n=new("function"==typeof this?this:Array)(e);e>t;)o(n,t,arguments[t++]);return n.length=e,n}})},function(t,e,n){"use strict";var r=n(0),o=n(18),i=[].join;r(r.P+r.F*(n(61)!=Object||!n(19)(i)),"Array",{join:function(t){return i.call(o(this),void 0===t?",":t)}})},function(t,e,n){"use strict";var r=n(0),o=n(91),i=n(28),a=n(42),s=n(7),u=[].slice;r(r.P+r.F*n(3)((function(){o&&u.call(o)})),"Array",{slice:function(t,e){var n=s(this.length),r=i(this);if(e=void 0===e?n:e,"Array"==r)return u.call(this,t,e);for(var o=a(t,n),c=a(e,n),l=s(c-o),f=new Array(l),h=0;h<l;h++)f[h]="String"==r?this.charAt(o+h):this[o+h];return f}})},function(t,e,n){"use strict";var r=n(0),o=n(22),i=n(11),a=n(3),s=[].sort,u=[1,2,3];r(r.P+r.F*(a((function(){u.sort(void 0)}))||!a((function(){u.sort(null)}))||!n(19)(s)),"Array",{sort:function(t){return void 0===t?s.call(i(this)):s.call(i(this),o(t))}})},function(t,e,n){"use strict";var r=n(0),o=n(26)(0),i=n(19)([].forEach,!0);r(r.P+r.F*!i,"Array",{forEach:function(t){return o(this,t,arguments[1])}})},function(t,e,n){var r=n(5),o=n(71),i=n(6)("species");t.exports=function(t){var e;return o(t)&&("function"!=typeof(e=t.constructor)||e!==Array&&!o(e.prototype)||(e=void 0),r(e)&&null===(e=e[i])&&(e=void 0)),void 0===e?Array:e}},function(t,e,n){"use strict";var r=n(0),o=n(26)(1);r(r.P+r.F*!n(19)([].map,!0),"Array",{map:function(t){return o(this,t,arguments[1])}})},function(t,e,n){"use strict";var r=n(0),o=n(26)(2);r(r.P+r.F*!n(19)([].filter,!0),"Array",{filter:function(t){return o(this,t,arguments[1])}})},function(t,e,n){"use strict";var r=n(0),o=n(26)(3);r(r.P+r.F*!n(19)([].some,!0),"Array",{some:function(t){return o(this,t,arguments[1])}})},function(t,e,n){"use strict";var r=n(0),o=n(26)(4);r(r.P+r.F*!n(19)([].every,!0),"Array",{every:function(t){return o(this,t,arguments[1])}})},function(t,e,n){"use strict";var r=n(0),o=n(150);r(r.P+r.F*!n(19)([].reduce,!0),"Array",{reduce:function(t){return o(this,t,arguments.length,arguments[1],!1)}})},function(t,e,n){"use strict";var r=n(0),o=n(150);r(r.P+r.F*!n(19)([].reduceRight,!0),"Array",{reduceRight:function(t){return o(this,t,arguments.length,arguments[1],!0)}})},function(t,e,n){"use strict";var r=n(0),o=n(69)(!1),i=[].indexOf,a=!!i&&1/[1].indexOf(1,-0)<0;r(r.P+r.F*(a||!n(19)(i)),"Array",{indexOf:function(t){return a?i.apply(this,arguments)||0:o(this,t,arguments[1])}})},function(t,e,n){"use strict";var r=n(0),o=n(18),i=n(23),a=n(7),s=[].lastIndexOf,u=!!s&&1/[1].lastIndexOf(1,-0)<0;r(r.P+r.F*(u||!n(19)(s)),"Array",{lastIndexOf:function(t){if(u)return s.apply(this,arguments)||0;var e=o(this),n=a(e.length),r=n-1;for(arguments.length>1&&(r=Math.min(r,i(arguments[1]))),r<0&&(r=n+r);r>=0;r--)if(r in e&&e[r]===t)return r||0;return-1}})},function(t,e,n){var r=n(0);r(r.P,"Array",{copyWithin:n(151)}),n(46)("copyWithin")},function(t,e,n){var r=n(0);r(r.P,"Array",{fill:n(106)}),n(46)("fill")},function(t,e,n){"use strict";var r=n(0),o=n(26)(5),i="find",a=!0;i in[]&&Array(1).find((function(){a=!1})),r(r.P+r.F*a,"Array",{find:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}}),n(46)(i)},function(t,e,n){"use strict";var r=n(0),o=n(26)(6),i="findIndex",a=!0;i in[]&&Array(1)[i]((function(){a=!1})),r(r.P+r.F*a,"Array",{findIndex:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}}),n(46)(i)},function(t,e,n){n(56)("Array")},function(t,e,n){var r=n(2),o=n(94),i=n(10).f,a=n(44).f,s=n(101),u=n(73),c=r.RegExp,l=c,f=c.prototype,h=/a/g,p=/a/g,d=new c(h)!==h;if(n(9)&&(!d||n(3)((function(){return p[n(6)("match")]=!1,c(h)!=h||c(p)==p||"/a/i"!=c(h,"i")})))){c=function(t,e){var n=this instanceof c,r=s(t),i=void 0===e;return!n&&r&&t.constructor===c&&i?t:o(d?new l(r&&!i?t.source:t,e):l((r=t instanceof c)?t.source:t,r&&i?u.call(t):e),n?this:f,c)};for(var v=function(t){t in c||i(c,t,{configurable:!0,get:function(){return l[t]},set:function(e){l[t]=e}})},y=a(l),g=0;y.length>g;)v(y[g++]);f.constructor=c,c.prototype=f,n(14)(r,"RegExp",c)}n(56)("RegExp")},function(t,e,n){"use strict";n(154);var r=n(4),o=n(73),i=n(9),a="toString",s=/./.toString,u=function(t){n(14)(RegExp.prototype,a,t,!0)};n(3)((function(){return"/a/b"!=s.call({source:"a",flags:"b"})}))?u((function(){var t=r(this);return"/".concat(t.source,"/","flags"in t?t.flags:!i&&t instanceof RegExp?o.call(t):void 0)})):s.name!=a&&u((function(){return s.call(this)}))},function(t,e,n){"use strict";var r=n(4),o=n(7),i=n(109),a=n(74);n(75)("match",1,(function(t,e,n,s){return[function(n){var r=t(this),o=null==n?void 0:n[e];return void 0!==o?o.call(n,r):new RegExp(n)[e](String(r))},function(t){var e=s(n,t,this);if(e.done)return e.value;var u=r(t),c=String(this);if(!u.global)return a(u,c);var l=u.unicode;u.lastIndex=0;for(var f,h=[],p=0;null!==(f=a(u,c));){var d=String(f[0]);h[p]=d,""===d&&(u.lastIndex=i(c,o(u.lastIndex),l)),p++}return 0===p?null:h}]}))},function(t,e,n){"use strict";var r=n(4),o=n(11),i=n(7),a=n(23),s=n(109),u=n(74),c=Math.max,l=Math.min,f=Math.floor,h=/\$([$&`']|\d\d?|<[^>]*>)/g,p=/\$([$&`']|\d\d?)/g;n(75)("replace",2,(function(t,e,n,d){return[function(r,o){var i=t(this),a=null==r?void 0:r[e];return void 0!==a?a.call(r,i,o):n.call(String(i),r,o)},function(t,e){var o=d(n,t,this,e);if(o.done)return o.value;var f=r(t),h=String(this),p="function"==typeof e;p||(e=String(e));var y=f.global;if(y){var g=f.unicode;f.lastIndex=0}for(var m=[];;){var _=u(f,h);if(null===_)break;if(m.push(_),!y)break;""===String(_[0])&&(f.lastIndex=s(h,i(f.lastIndex),g))}for(var b,w="",E=0,T=0;T<m.length;T++){_=m[T];for(var S=String(_[0]),O=c(l(a(_.index),h.length),0),C=[],P=1;P<_.length;P++)C.push(void 0===(b=_[P])?b:String(b));var k=_.groups;if(p){var j=[S].concat(C,O,h);void 0!==k&&j.push(k);var A=String(e.apply(void 0,j))}else A=v(S,h,O,C,k,e);O>=E&&(w+=h.slice(E,O)+A,E=O+S.length)}return w+h.slice(E)}];function v(t,e,r,i,a,s){var u=r+t.length,c=i.length,l=p;return void 0!==a&&(a=o(a),l=h),n.call(s,l,(function(n,o){var s;switch(o.charAt(0)){case"$":return"$";case"&":return t;case"`":return e.slice(0,r);case"'":return e.slice(u);case"<":s=a[o.slice(1,-1)];break;default:var l=+o;if(0===l)return n;if(l>c){var h=f(l/10);return 0===h?n:h<=c?void 0===i[h-1]?o.charAt(1):i[h-1]+o.charAt(1):n}s=i[l-1]}return void 0===s?"":s}))}}))},function(t,e,n){"use strict";var r=n(4),o=n(139),i=n(74);n(75)("search",1,(function(t,e,n,a){return[function(n){var r=t(this),o=null==n?void 0:n[e];return void 0!==o?o.call(n,r):new RegExp(n)[e](String(r))},function(t){var e=a(n,t,this);if(e.done)return e.value;var s=r(t),u=String(this),c=s.lastIndex;o(c,0)||(s.lastIndex=0);var l=i(s,u);return o(s.lastIndex,c)||(s.lastIndex=c),null===l?-1:l.index}]}))},function(t,e,n){"use strict";var r=n(101),o=n(4),i=n(64),a=n(109),s=n(7),u=n(74),c=n(108),l=n(3),f=Math.min,h=[].push,p=4294967295,d=!l((function(){RegExp(p,"y")}));n(75)("split",2,(function(t,e,n,l){var v;return v="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(t,e){var o=String(this);if(void 0===t&&0===e)return[];if(!r(t))return n.call(o,t,e);for(var i,a,s,u=[],l=(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.unicode?"u":"")+(t.sticky?"y":""),f=0,d=void 0===e?p:e>>>0,v=new RegExp(t.source,l+"g");(i=c.call(v,o))&&!((a=v.lastIndex)>f&&(u.push(o.slice(f,i.index)),i.length>1&&i.index<o.length&&h.apply(u,i.slice(1)),s=i[0].length,f=a,u.length>=d));)v.lastIndex===i.index&&v.lastIndex++;return f===o.length?!s&&v.test("")||u.push(""):u.push(o.slice(f)),u.length>d?u.slice(0,d):u}:"0".split(void 0,0).length?function(t,e){return void 0===t&&0===e?[]:n.call(this,t,e)}:n,[function(n,r){var o=t(this),i=null==n?void 0:n[e];return void 0!==i?i.call(n,o,r):v.call(String(o),n,r)},function(t,e){var r=l(v,t,this,e,v!==n);if(r.done)return r.value;var c=o(t),h=String(this),y=i(c,RegExp),g=c.unicode,m=(c.ignoreCase?"i":"")+(c.multiline?"m":"")+(c.unicode?"u":"")+(d?"y":"g"),_=new y(d?c:"^(?:"+c.source+")",m),b=void 0===e?p:e>>>0;if(0===b)return[];if(0===h.length)return null===u(_,h)?[h]:[];for(var w=0,E=0,T=[];E<h.length;){_.lastIndex=d?E:0;var S,O=u(_,d?h:h.slice(E));if(null===O||(S=f(s(_.lastIndex+(d?0:E)),h.length))===w)E=a(h,E,g);else{if(T.push(h.slice(w,E)),T.length===b)return T;for(var C=1;C<=O.length-1;C++)if(T.push(O[C]),T.length===b)return T;E=w=S}}return T.push(h.slice(w)),T}]}))},function(t,e,n){var r=n(2),o=n(110).set,i=r.MutationObserver||r.WebKitMutationObserver,a=r.process,s=r.Promise,u="process"==n(28)(a);t.exports=function(){var t,e,n,c=function(){var r,o;for(u&&(r=a.domain)&&r.exit();t;){o=t.fn,t=t.next;try{o()}catch(r){throw t?n():e=void 0,r}}e=void 0,r&&r.enter()};if(u)n=function(){a.nextTick(c)};else if(!i||r.navigator&&r.navigator.standalone)if(s&&s.resolve){var l=s.resolve(void 0);n=function(){l.then(c)}}else n=function(){o.call(r,c)};else{var f=!0,h=document.createTextNode("");new i(c).observe(h,{characterData:!0}),n=function(){h.data=f=!f}}return function(r){var o={fn:r,next:void 0};e&&(e.next=o),t||(t=o,n()),e=o}}},function(t,e){t.exports=function(t){try{return{e:!1,v:t()}}catch(t){return{e:!0,v:t}}}},function(t,e,n){"use strict";var r=n(158),o=n(47),i="Map";t.exports=n(78)(i,(function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}}),{get:function(t){var e=r.getEntry(o(this,i),t);return e&&e.v},set:function(t,e){return r.def(o(this,i),0===t?0:t,e)}},r,!0)},function(t,e,n){"use strict";var r=n(158),o=n(47);t.exports=n(78)("Set",(function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}}),{add:function(t){return r.def(o(this,"Set"),t=0===t?0:t,t)}},r)},function(t,e,n){"use strict";var r,o=n(2),i=n(26)(0),a=n(14),s=n(34),u=n(138),c=n(159),l=n(5),f=n(47),h=n(47),p=!o.ActiveXObject&&"ActiveXObject"in o,d="WeakMap",v=s.getWeak,y=Object.isExtensible,g=c.ufstore,m=function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}},_={get:function(t){if(l(t)){var e=v(t);return!0===e?g(f(this,d)).get(t):e?e[this._i]:void 0}},set:function(t,e){return c.def(f(this,d),t,e)}},b=t.exports=n(78)(d,m,_,c,!0,!0);h&&p&&(u((r=c.getConstructor(m,d)).prototype,_),s.NEED=!0,i(["delete","has","get","set"],(function(t){var e=b.prototype,n=e[t];a(e,t,(function(e,o){if(l(e)&&!y(e)){this._f||(this._f=new r);var i=this._f[t](e,o);return"set"==t?this:i}return n.call(this,e,o)}))})))},function(t,e,n){"use strict";var r=n(159),o=n(47),i="WeakSet";n(78)(i,(function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}}),{add:function(t){return r.def(o(this,i),t,!0)}},r,!1,!0)},function(t,e,n){"use strict";var r=n(0),o=n(79),i=n(111),a=n(4),s=n(42),u=n(7),c=n(5),l=n(2).ArrayBuffer,f=n(64),h=i.ArrayBuffer,p=i.DataView,d=o.ABV&&l.isView,v=h.prototype.slice,y=o.VIEW,g="ArrayBuffer";r(r.G+r.W+r.F*(l!==h),{ArrayBuffer:h}),r(r.S+r.F*!o.CONSTR,g,{isView:function(t){return d&&d(t)||c(t)&&y in t}}),r(r.P+r.U+r.F*n(3)((function(){return!new h(2).slice(1,void 0).byteLength})),g,{slice:function(t,e){if(void 0!==v&&void 0===e)return v.call(a(this),t);for(var n=a(this).byteLength,r=s(t,n),o=s(void 0===e?n:e,n),i=new(f(this,h))(u(o-r)),c=new p(this),l=new p(i),d=0;r<o;)l.setUint8(d++,c.getUint8(r++));return i}}),n(56)(g)},function(t,e,n){var r=n(0);r(r.G+r.W+r.F*!n(79).ABV,{DataView:n(111).DataView})},function(t,e,n){n(30)("Int8",1,(function(t){return function(e,n,r){return t(this,e,n,r)}}))},function(t,e,n){n(30)("Uint8",1,(function(t){return function(e,n,r){return t(this,e,n,r)}}))},function(t,e,n){n(30)("Uint8",1,(function(t){return function(e,n,r){return t(this,e,n,r)}}),!0)},function(t,e,n){n(30)("Int16",2,(function(t){return function(e,n,r){return t(this,e,n,r)}}))},function(t,e,n){n(30)("Uint16",2,(function(t){return function(e,n,r){return t(this,e,n,r)}}))},function(t,e,n){n(30)("Int32",4,(function(t){return function(e,n,r){return t(this,e,n,r)}}))},function(t,e,n){n(30)("Uint32",4,(function(t){return function(e,n,r){return t(this,e,n,r)}}))},function(t,e,n){n(30)("Float32",4,(function(t){return function(e,n,r){return t(this,e,n,r)}}))},function(t,e,n){n(30)("Float64",8,(function(t){return function(e,n,r){return t(this,e,n,r)}}))},function(t,e,n){var r=n(0),o=n(22),i=n(4),a=(n(2).Reflect||{}).apply,s=Function.apply;r(r.S+r.F*!n(3)((function(){a((function(){}))})),"Reflect",{apply:function(t,e,n){var r=o(t),u=i(n);return a?a(r,e,u):s.call(r,e,u)}})},function(t,e,n){var r=n(0),o=n(43),i=n(22),a=n(4),s=n(5),u=n(3),c=n(140),l=(n(2).Reflect||{}).construct,f=u((function(){function t(){}return!(l((function(){}),[],t)instanceof t)})),h=!u((function(){l((function(){}))}));r(r.S+r.F*(f||h),"Reflect",{construct:function(t,e){i(t),a(e);var n=arguments.length<3?t:i(arguments[2]);if(h&&!f)return l(t,e,n);if(t==n){switch(e.length){case 0:return new t;case 1:return new t(e[0]);case 2:return new t(e[0],e[1]);case 3:return new t(e[0],e[1],e[2]);case 4:return new t(e[0],e[1],e[2],e[3])}var r=[null];return r.push.apply(r,e),new(c.apply(t,r))}var u=n.prototype,p=o(s(u)?u:Object.prototype),d=Function.apply.call(t,p,e);return s(d)?d:p}})},function(t,e,n){var r=n(10),o=n(0),i=n(4),a=n(33);o(o.S+o.F*n(3)((function(){Reflect.defineProperty(r.f({},1,{value:1}),1,{value:2})})),"Reflect",{defineProperty:function(t,e,n){i(t),e=a(e,!0),i(n);try{return r.f(t,e,n),!0}catch(t){return!1}}})},function(t,e,n){var r=n(0),o=n(24).f,i=n(4);r(r.S,"Reflect",{deleteProperty:function(t,e){var n=o(i(t),e);return!(n&&!n.configurable)&&delete t[e]}})},function(t,e,n){"use strict";var r=n(0),o=n(4),i=function(t){this._t=o(t),this._i=0;var e,n=this._k=[];for(e in t)n.push(e)};n(147)(i,"Object",(function(){var t,e=this,n=e._k;do{if(e._i>=n.length)return{value:void 0,done:!0}}while(!((t=n[e._i++])in e._t));return{value:t,done:!1}})),r(r.S,"Reflect",{enumerate:function(t){return new i(t)}})},function(t,e,n){var r=n(24),o=n(45),i=n(16),a=n(0),s=n(5),u=n(4);a(a.S,"Reflect",{get:function t(e,n){var a,c,l=arguments.length<3?e:arguments[2];return u(e)===l?e[n]:(a=r.f(e,n))?i(a,"value")?a.value:void 0!==a.get?a.get.call(l):void 0:s(c=o(e))?t(c,n,l):void 0}})},function(t,e,n){var r=n(24),o=n(0),i=n(4);o(o.S,"Reflect",{getOwnPropertyDescriptor:function(t,e){return r.f(i(t),e)}})},function(t,e,n){var r=n(0),o=n(45),i=n(4);r(r.S,"Reflect",{getPrototypeOf:function(t){return o(i(t))}})},function(t,e,n){var r=n(0);r(r.S,"Reflect",{has:function(t,e){return e in t}})},function(t,e,n){var r=n(0),o=n(4),i=Object.isExtensible;r(r.S,"Reflect",{isExtensible:function(t){return o(t),!i||i(t)}})},function(t,e,n){var r=n(0);r(r.S,"Reflect",{ownKeys:n(161)})},function(t,e,n){var r=n(0),o=n(4),i=Object.preventExtensions;r(r.S,"Reflect",{preventExtensions:function(t){o(t);try{return i&&i(t),!0}catch(t){return!1}}})},function(t,e,n){var r=n(10),o=n(24),i=n(45),a=n(16),s=n(0),u=n(38),c=n(4),l=n(5);s(s.S,"Reflect",{set:function t(e,n,s){var f,h,p=arguments.length<4?e:arguments[3],d=o.f(c(e),n);if(!d){if(l(h=i(e)))return t(h,n,s,p);d=u(0)}if(a(d,"value")){if(!1===d.writable||!l(p))return!1;if(f=o.f(p,n)){if(f.get||f.set||!1===f.writable)return!1;f.value=s,r.f(p,n,f)}else r.f(p,n,u(0,s));return!0}return void 0!==d.set&&(d.set.call(p,s),!0)}})},function(t,e,n){var r=n(0),o=n(92);o&&r(r.S,"Reflect",{setPrototypeOf:function(t,e){o.check(t,e);try{return o.set(t,e),!0}catch(t){return!1}}})},function(t,e,n){n(340),t.exports=n(8).Array.includes},function(t,e,n){"use strict";var r=n(0),o=n(69)(!0);r(r.P,"Array",{includes:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}}),n(46)("includes")},function(t,e,n){n(342),t.exports=n(8).Array.flatMap},function(t,e,n){"use strict";var r=n(0),o=n(343),i=n(11),a=n(7),s=n(22),u=n(149);r(r.P,"Array",{flatMap:function(t){var e,n,r=i(this);return s(t),e=a(r.length),n=u(r,0),o(n,r,r,e,0,1,t,arguments[1]),n}}),n(46)("flatMap")},function(t,e,n){"use strict";var r=n(71),o=n(5),i=n(7),a=n(21),s=n(6)("isConcatSpreadable");t.exports=function t(e,n,u,c,l,f,h,p){for(var d,v,y=l,g=0,m=!!h&&a(h,p,3);g<c;){if(g in u){if(d=m?m(u[g],g,n):u[g],v=!1,o(d)&&(v=void 0!==(v=d[s])?!!v:r(d)),v&&f>0)y=t(e,n,d,i(d.length),y,f-1)-1;else{if(y>=9007199254740991)throw TypeError();e[y]=d}y++}g++}return y}},function(t,e,n){n(345),t.exports=n(8).String.padStart},function(t,e,n){"use strict";var r=n(0),o=n(162),i=n(77),a=/Version\/10\.\d+(\.\d+)?( Mobile\/\w+)? Safari\//.test(i);r(r.P+r.F*a,"String",{padStart:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0,!0)}})},function(t,e,n){n(347),t.exports=n(8).String.padEnd},function(t,e,n){"use strict";var r=n(0),o=n(162),i=n(77),a=/Version\/10\.\d+(\.\d+)?( Mobile\/\w+)? Safari\//.test(i);r(r.P+r.F*a,"String",{padEnd:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0,!1)}})},function(t,e,n){n(349),t.exports=n(8).String.trimLeft},function(t,e,n){"use strict";n(54)("trimLeft",(function(t){return function(){return t(this,1)}}),"trimStart")},function(t,e,n){n(351),t.exports=n(8).String.trimRight},function(t,e,n){"use strict";n(54)("trimRight",(function(t){return function(){return t(this,2)}}),"trimEnd")},function(t,e,n){n(353),t.exports=n(88).f("asyncIterator")},function(t,e,n){n(134)("asyncIterator")},function(t,e,n){n(355),t.exports=n(8).Object.getOwnPropertyDescriptors},function(t,e,n){var r=n(0),o=n(161),i=n(18),a=n(24),s=n(104);r(r.S,"Object",{getOwnPropertyDescriptors:function(t){for(var e,n,r=i(t),u=a.f,c=o(r),l={},f=0;c.length>f;)void 0!==(n=u(r,e=c[f++]))&&s(l,e,n);return l}})},function(t,e,n){n(357),t.exports=n(8).Object.values},function(t,e,n){var r=n(0),o=n(163)(!1);r(r.S,"Object",{values:function(t){return o(t)}})},function(t,e,n){n(359),t.exports=n(8).Object.entries},function(t,e,n){var r=n(0),o=n(163)(!0);r(r.S,"Object",{entries:function(t){return o(t)}})},function(t,e,n){"use strict";n(155),n(361),t.exports=n(8).Promise.finally},function(t,e,n){"use strict";var r=n(0),o=n(8),i=n(2),a=n(64),s=n(157);r(r.P+r.R,"Promise",{finally:function(t){var e=a(this,o.Promise||i.Promise),n="function"==typeof t;return this.then(n?function(n){return s(e,t()).then((function(){return n}))}:t,n?function(n){return s(e,t()).then((function(){throw n}))}:t)}})},function(t,e,n){n(363),n(364),n(365),t.exports=n(8)},function(t,e,n){var r=n(2),o=n(0),i=n(77),a=[].slice,s=/MSIE .\./.test(i),u=function(t){return function(e,n){var r=arguments.length>2,o=!!r&&a.call(arguments,2);return t(r?function(){("function"==typeof e?e:Function(e)).apply(this,o)}:e,n)}};o(o.G+o.B+o.F*s,{setTimeout:u(r.setTimeout),setInterval:u(r.setInterval)})},function(t,e,n){var r=n(0),o=n(110);r(r.G+r.B,{setImmediate:o.set,clearImmediate:o.clear})},function(t,e,n){for(var r=n(107),o=n(41),i=n(14),a=n(2),s=n(17),u=n(55),c=n(6),l=c("iterator"),f=c("toStringTag"),h=u.Array,p={CSSRuleList:!0,CSSStyleDeclaration:!1,CSSValueList:!1,ClientRectList:!1,DOMRectList:!1,DOMStringList:!1,DOMTokenList:!0,DataTransferItemList:!1,FileList:!1,HTMLAllCollection:!1,HTMLCollection:!1,HTMLFormElement:!1,HTMLSelectElement:!1,MediaList:!0,MimeTypeArray:!1,NamedNodeMap:!1,NodeList:!0,PaintRequestList:!1,Plugin:!1,PluginArray:!1,SVGLengthList:!1,SVGNumberList:!1,SVGPathSegList:!1,SVGPointList:!1,SVGStringList:!1,SVGTransformList:!1,SourceBufferList:!1,StyleSheetList:!0,TextTrackCueList:!1,TextTrackList:!1,TouchList:!1},d=o(p),v=0;v<d.length;v++){var y,g=d[v],m=p[g],_=a[g],b=_&&_.prototype;if(b&&(b[l]||s(b,l,h),b[f]||s(b,f,g),u[g]=h,m))for(y in r)b[y]||i(b,y,r[y],!0)}},function(t,e,n){var r=function(t){"use strict";var e,n=Object.prototype,r=n.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",s=o.toStringTag||"@@toStringTag";function u(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=function(t,e,n){return t[e]=n}}function c(t,e,n,r){var o=e&&e.prototype instanceof y?e:y,i=Object.create(o.prototype),a=new k(r||[]);return i._invoke=function(t,e,n){var r=f;return function(o,i){if(r===p)throw new Error("Generator is already running");if(r===d){if("throw"===o)throw i;return A()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var s=O(a,n);if(s){if(s===v)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(r===f)throw r=d,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r=p;var u=l(t,e,n);if("normal"===u.type){if(r=n.done?d:h,u.arg===v)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r=d,n.method="throw",n.arg=u.arg)}}}(t,n,a),i}function l(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}t.wrap=c;var f="suspendedStart",h="suspendedYield",p="executing",d="completed",v={};function y(){}function g(){}function m(){}var _={};u(_,i,(function(){return this}));var b=Object.getPrototypeOf,w=b&&b(b(j([])));w&&w!==n&&r.call(w,i)&&(_=w);var E=m.prototype=y.prototype=Object.create(_);function T(t){["next","throw","return"].forEach((function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function S(t,e){function n(o,i,a,s){var u=l(t[o],t,i);if("throw"!==u.type){var c=u.arg,f=c.value;return f&&"object"==typeof f&&r.call(f,"__await")?e.resolve(f.__await).then((function(t){n("next",t,a,s)}),(function(t){n("throw",t,a,s)})):e.resolve(f).then((function(t){c.value=t,a(c)}),(function(t){return n("throw",t,a,s)}))}s(u.arg)}var o;this._invoke=function(t,r){function i(){return new e((function(e,o){n(t,r,e,o)}))}return o=o?o.then(i,i):i()}}function O(t,n){var r=t.iterator[n.method];if(r===e){if(n.delegate=null,"throw"===n.method){if(t.iterator.return&&(n.method="return",n.arg=e,O(t,n),"throw"===n.method))return v;n.method="throw",n.arg=new TypeError("The iterator does not provide a 'throw' method")}return v}var o=l(r,t.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,v;var i=o.arg;return i?i.done?(n[t.resultName]=i.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,v):i:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,v)}function C(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function P(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function k(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(C,this),this.reset(!0)}function j(t){if(t){var n=t[i];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,a=function n(){for(;++o<t.length;)if(r.call(t,o))return n.value=t[o],n.done=!1,n;return n.value=e,n.done=!0,n};return a.next=a}}return{next:A}}function A(){return{value:e,done:!0}}return g.prototype=m,u(E,"constructor",m),u(m,"constructor",g),g.displayName=u(m,s,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===g||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,m):(t.__proto__=m,u(t,s,"GeneratorFunction")),t.prototype=Object.create(E),t},t.awrap=function(t){return{__await:t}},T(S.prototype),u(S.prototype,a,(function(){return this})),t.AsyncIterator=S,t.async=function(e,n,r,o,i){void 0===i&&(i=Promise);var a=new S(c(e,n,r,o),i);return t.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},T(E),u(E,s,"Generator"),u(E,i,(function(){return this})),u(E,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=[];for(var n in t)e.push(n);return e.reverse(),function n(){for(;e.length;){var r=e.pop();if(r in t)return n.value=r,n.done=!1,n}return n.done=!0,n}},t.values=j,k.prototype={constructor:k,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(P),!t)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function o(r,o){return s.type="throw",s.arg=t,n.next=r,o&&(n.method="next",n.arg=e),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var u=r.call(a,"catchLoc"),c=r.call(a,"finallyLoc");if(u&&c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(u){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,v):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),v},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),P(n),v}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;P(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:j(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),v}},t}(t.exports);try{regeneratorRuntime=r}catch(t){"object"==typeof globalThis?globalThis.regeneratorRuntime=r:Function("r","regeneratorRuntime = r")(r)}},function(t,e,n){n(368),t.exports=n(164).global},function(t,e,n){var r=n(369);r(r.G,{global:n(112)})},function(t,e,n){var r=n(112),o=n(164),i=n(370),a=n(372),s=n(379),u=function(t,e,n){var c,l,f,h=t&u.F,p=t&u.G,d=t&u.S,v=t&u.P,y=t&u.B,g=t&u.W,m=p?o:o[e]||(o[e]={}),_=m.prototype,b=p?r:d?r[e]:(r[e]||{}).prototype;for(c in p&&(n=e),n)(l=!h&&b&&void 0!==b[c])&&s(m,c)||(f=l?b[c]:n[c],m[c]=p&&"function"!=typeof b[c]?n[c]:y&&l?i(f,r):g&&b[c]==f?function(t){var e=function(e,n,r){if(this instanceof t){switch(arguments.length){case 0:return new t;case 1:return new t(e);case 2:return new t(e,n)}return new t(e,n,r)}return t.apply(this,arguments)};return e.prototype=t.prototype,e}(f):v&&"function"==typeof f?i(Function.call,f):f,v&&((m.virtual||(m.virtual={}))[c]=f,t&u.R&&_&&!_[c]&&a(_,c,f)))};u.F=1,u.G=2,u.S=4,u.P=8,u.B=16,u.W=32,u.U=64,u.R=128,t.exports=u},function(t,e,n){var r=n(371);t.exports=function(t,e,n){if(r(t),void 0===e)return t;switch(n){case 1:return function(n){return t.call(e,n)};case 2:return function(n,r){return t.call(e,n,r)};case 3:return function(n,r,o){return t.call(e,n,r,o)}}return function(){return t.apply(e,arguments)}}},function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},function(t,e,n){var r=n(373),o=n(378);t.exports=n(114)?function(t,e,n){return r.f(t,e,o(1,n))}:function(t,e,n){return t[e]=n,t}},function(t,e,n){var r=n(374),o=n(375),i=n(377),a=Object.defineProperty;e.f=n(114)?Object.defineProperty:function(t,e,n){if(r(t),e=i(e,!0),r(n),o)try{return a(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(t[e]=n.value),t}},function(t,e,n){var r=n(113);t.exports=function(t){if(!r(t))throw TypeError(t+" is not an object!");return t}},function(t,e,n){t.exports=!n(114)&&!n(165)((function(){return 7!=Object.defineProperty(n(376)("div"),"a",{get:function(){return 7}}).a}))},function(t,e,n){var r=n(113),o=n(112).document,i=r(o)&&r(o.createElement);t.exports=function(t){return i?o.createElement(t):{}}},function(t,e,n){var r=n(113);t.exports=function(t,e){if(!r(t))return t;var n,o;if(e&&"function"==typeof(n=t.toString)&&!r(o=n.call(t)))return o;if("function"==typeof(n=t.valueOf)&&!r(o=n.call(t)))return o;if(!e&&"function"==typeof(n=t.toString)&&!r(o=n.call(t)))return o;throw TypeError("Can't convert object to primitive value")}},function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},function(t,e,n){"use strict";n.r(e)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=_(n(1));n(383);var o=_(n(424)),i=_(n(166)),a=_(n(130)),s=_(n(452)),u=_(n(189)),c=_(n(453)),l=_(n(86)),f=n(13),h=n(115),p=n(60),d=n(190),v=n(457),y=n(127),g=n(27),m=n(31);function _(t){return t&&t.__esModule?t:{default:t}}function b(t,e,n){return b=k()?Reflect.construct:function(t,e,n){var r=[null];r.push.apply(r,e);var o=new(Function.bind.apply(t,r));return n&&O(o,n.prototype),o},b.apply(null,arguments)}function w(t){return function(t){if(Array.isArray(t))return E(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return E(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return E(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function E(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function T(t){return T="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},T(t)}function S(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function O(t,e){return O=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},O(t,e)}function C(t,e){if(e&&("object"===T(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return P(t)}function P(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function k(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}function j(t){return j=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},j(t)}Object.keys(o.default).forEach((function(t){r.default.registerPlugin(t,o.default[t])})),(0,h.overrideDefaultVideojsComponents)();var A=!0,x=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&O(t,e)}(R,t);var e,n,s,_,E,x=(e=R,n=k(),function(){var t,r=j(e);if(n){var o=j(this).constructor;t=Reflect.construct(r,arguments,o)}else t=r.apply(this,arguments);return C(this,t)});function R(t,e,n){var a,s,u,c;if(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,R),a=x.call(this),s=P(a),c=function(){a.videojs.clearTimeout(a.reTryId)},(u="_clearTimeOut")in s?Object.defineProperty(s,u,{value:c,enumerable:!0,configurable:!0,writable:!0}):s[u]=c,a._playlistWidget=null,a.nbCalls=0,a.videoElement=(0,h.getResolveVideoElement)(t),a.options=(0,h.extractOptions)(a.videoElement,e),a._videojsOptions=a.options.videojsOptions,a.videoElement.classList.add("video-js"),i.default.fontFace(a.videoElement,a.playerOptions),i.default.playButton(a.videoElement,a._videojsOptions),o.default.dashPlugin&&o.default.dashPlugin(),a.videojs=(0,r.default)(a.videoElement,a._videojsOptions),a._isPlayerConfigValid=!0,(0,d.isValidConfig)(a.options,v.playerValidators),!a._isPlayerConfigValid)return a.videojs.error("invalid player configuration"),C(a);a._videojsOptions.muted&&a.videojs.volume(.4),a.playerOptions.fluid&&a.fluid(a.playerOptions.fluid);var l={contribAdsLoaded:(0,f.isFunction)(a.videojs.ads),imaAdsLoaded:"object"===("undefined"==typeof google?"undefined":T(google))&&"object"===T(google.ima)};return a._setCssClasses(),a._initPlugins(l),a._initPlaylistWidget(),a._initJumpButtons(),a._setVideoJsListeners(n),a}return s=R,_=[{key:"_setVideoJsListeners",value:function(t){var e=this;this.videojs.on(g.PLAYER_EVENT.ERROR,(function(){var t=e.videojs.error();if(t){var n=e._isPlayerConfigValid&&e.videojs.cloudinary.currentSourceType();[3===t.code&&r.default.browser.IS_SAFARI,4===t.code].includes(!0)&&[g.SOURCE_TYPE.AUDIO,g.SOURCE_TYPE.VIDEO].includes(n)?(e.videojs.error(null),i.default.handleCldError(e,e.playerOptions)):e._clearTimeOut()}})),this.videojs.tech_.on(g.PLAYER_EVENT.RETRY_PLAYLIST,(function(){(0,y.get)(e.videojs,"hls.stats.mediaRequestsErrored",0)>0&&(e._clearTimeOut(),i.default.handleCldError(e,e.playerOptions))})),this.videojs.on(g.PLAYER_EVENT.PLAY,this._clearTimeOut),this.videojs.on(g.PLAYER_EVENT.CAN_PLAY_THROUGH,this._clearTimeOut),this.videojs.ready((function(){e._onReady(),t&&t(e)})),this.adsEnabled&&Object.keys(this.playerOptions.ads).length>0&&"object"===T(this.videojs.ima)&&("first-video"===this.playerOptions.ads.adsInPlaylist?this.videojs.one(g.PLAYER_EVENT.SOURCE_CHANGED,(function(){e.videojs.ima.playAd()})):this.videojs.on(g.PLAYER_EVENT.SOURCE_CHANGED,(function(){e.videojs.ima.playAd()})))}},{key:"_initPlugins",value:function(t){this._initAutoplay(),this._initContextMenu(),this._initPerSrcBehaviors(),this._initCloudinary(),this._initAnalytics(),this._initFloatingPlayer(),this._initColors(),this._initTextTracks(),this._initSeekThumbs()}},{key:"_isFullScreen",value:function(){return this.videojs.player().isFullscreen()}},{key:"_initIma",value:function(t){if(!t.contribAdsLoaded||!t.imaAdsLoaded)return this.playerOptions.ads&&(t.contribAdsLoaded,t.imaAdsLoaded),!1;this.playerOptions.ads||(this.playerOptions.ads={});var e=this.playerOptions.ads;return 0!==Object.keys(e).length&&(this.videojs.ima({id:this.el().id,adTagUrl:e.adTagUrl,disableFlashAds:!0,prerollTimeout:e.prerollTimeout||5e3,postrollTimeout:e.postrollTimeout||5e3,showCountdown:!1!==e.showCountdown,adLabel:e.adLabel||"Advertisement",locale:e.locale||"en",autoPlayAdBreaks:!1!==e.autoPlayAdBreaks,debug:!0}),!0)}},{key:"setTextTracks",value:function(t){var e=this.videojs.remoteTextTracks();if(e)for(var n=e.tracks_.length-1;n>=0;n--)this.videojs.removeRemoteTextTrack(e.tracks_[n]);if(t){for(var r=[],o=0,a=Object.keys(t);o<a.length;o++){var s=a[o];if(Array.isArray(t[s]))for(var u=t[s],c=0;c<u.length;c++)r.push(R.buildTextTrackObj(s,u[c]));else r.push(R.buildTextTrackObj(s,t[s]))}i.default.filterAndAddTextTracks(r,this.videojs)}}},{key:"_initSeekThumbs",value:function(){var t=this;this.playerOptions.seekThumbnails&&this.videojs.on(g.PLAYER_EVENT.CLD_SOURCE_CHANGED,(function(e,n){var r=n.source;if(r&&r.getType()!==g.SOURCE_TYPE.AUDIO&&!(t.videojs&&t.videojs.activePlugins_&&t.videojs.activePlugins_.vr)){var o=r.publicId(),i=r.transformation();i&&i.streaming_profile&&delete i.streaming_profile,i.flags=i.flags||[],i.flags.push("sprite");var a=r.config().url("".concat(o,".vtt"),{transformation:i});(0,f.isFunction)(t.videojs.vttThumbnails)?t.videojs.vttThumbnails({src:a}):t.videojs.vttThumbnails.src(a)}}))}},{key:"_initColors",value:function(){this.videojs.colors(this.playerOptions.colors?{colors:this.playerOptions.colors}:{})}},{key:"_initTextTracks",value:function(){var t=this;this.videojs.on(g.PLAYER_EVENT.REFRESH_TEXT_TRACKS,(function(e,n){t.setTextTracks(n)}))}},{key:"_initPerSrcBehaviors",value:function(){this.videojs.perSourceBehaviors&&this.videojs.perSourceBehaviors()}},{key:"_initJumpButtons",value:function(){!this.playerOptions.showJumpControls&&this.videojs.controlBar&&(this.videojs.controlBar.removeChild("JumpForwardButton"),this.videojs.controlBar.removeChild("JumpBackButton"))}},{key:"_initCloudinary",value:function(){var t=this.playerOptions.cloudinary.cloudinaryConfig;t.chainTarget=this,!1!==t.secure&&(0,m.extendCloudinaryConfig)(t,{secure:!0}),this.videojs.cloudinary(this.playerOptions.cloudinary)}},{key:"_initAnalytics",value:function(){var t=this.playerOptions.analytics;if(window.ga||!t){if(t){var e="object"===T(t)?t:{};this.videojs.analytics(e)}}else console.error("Google Analytics script is missing")}},{key:"reTryVideo",value:function(t,e){var n=this;if(!this.isVideoReady())if(this.nbCalls<t)this.nbCalls++,this.reTryId=this.videojs.setTimeout((function(){return n.reTryVideo(t,e)}),e);else{var r=new Error("Video is not ready please try later");this.videojs.trigger("error",r)}}},{key:"isVideoReady",value:function(){return this.videojs.readyState()>=(/iPad|iPhone|iPod/.test(navigator.userAgent)?1:4)&&(this.nbCalls=0,!0)}},{key:"_initPlaylistWidget",value:function(){var t=this;this.videojs.on(g.PLAYER_EVENT.PLAYLIST_CREATED,(function(){t._playlistWidget&&t._playlistWidget.dispose();var e=t.playerOptions.playlistWidget;(0,f.isPlainObject)(e)&&(t.playerOptions.fluid&&(e.fluid=!0),t.playerOptions.cloudinary.fontFace&&(e.fontFace=t.playerOptions.cloudinary.fontFace),t._playlistWidget=new c.default(t.videojs,e))}))}},{key:"playlistWidget",value:function(t){return!(!t&&!this._playlistWidget)&&(!t&&this._playlistWidget||(0,f.isPlainObject)(t)&&this._playlistWidget.options(t),this._playlistWidget)}},{key:"_initAutoplay",value:function(){"on-scroll"===this.playerOptions.autoplayMode&&this.videojs.autoplayOnScroll()}},{key:"_initContextMenu",value:function(){this.playerOptions.hideContextMenu||this.videojs.contextMenu(a.default.contextMenu)}},{key:"_initFloatingPlayer",value:function(){this.playerOptions.floatingWhenNotVisible!==p.FLOATING_TO.NONE&&this.videojs.floatingPlayer({floatTo:this.playerOptions.floatingWhenNotVisible})}},{key:"_setCssClasses",value:function(){this.videojs.addClass(i.default.CLASS_PREFIX),this.videojs.addClass(i.default.playerClassPrefix(this.videojs)),i.default.setSkinClassPrefix(this.videojs,i.default.skinClassPrefix(this.videojs)),11===r.default.browser.IE_VERSION&&this.videojs.addClass("cld-ie11")}},{key:"_onReady",value:function(){this._setExtendedEvents();var t=this.playerOptions.source||this.playerOptions.publicId;t&&this.source(t,this.playerOptions)}},{key:"_setExtendedEvents",value:function(){var t=this,e=[];this.playerOptions.playedEventPercents&&e.push({type:g.PLAYER_EVENT.PERCENTS_PLAYED,percents:this.playerOptions.playedEventPercents}),this.playerOptions.playedEventTimes&&e.push({type:g.PLAYER_EVENT.TIME_PLAYED,times:this.playerOptions.playedEventTimes}),e.push.apply(e,[g.PLAYER_EVENT.SEEK,g.PLAYER_EVENT.MUTE,g.PLAYER_EVENT.UNMUTE,g.PLAYER_EVENT.QUALITY_CHANGED]);var n=new u.default(this.videojs,{events:e});Object.keys(n.events).forEach((function(e){n.on(e,(function(n,r){t.videojs.trigger({type:e,eventData:r})}))}))}},{key:"cloudinaryConfig",value:function(t){return this.videojs.cloudinary.cloudinaryConfig(t)}},{key:"playerOptions",get:function(){return this.options.playerOptions}},{key:"currentPublicId",value:function(){return this.videojs.cloudinary.currentPublicId()}},{key:"currentSourceUrl",value:function(){return this.videojs.currentSource().src}},{key:"currentPoster",value:function(){return this.videojs.cloudinary.currentPoster()}},{key:"source",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(this._isPlayerConfigValid){var n=(0,d.isValidConfig)(e,v.sourceValidators);if(n){if(t instanceof l.default)return this.videojs.cloudinary.source(t,e);this.videojs.interactive&&this.videojs.interactive(this.videojs,e),R.allowUsageReport()&&(e.usageReport=!0),this.setTextTracks(e.textTracks),clearTimeout(this.reTryId),this.nbCalls=0;var r=this.videojs.options_.maxTries||3,o=this.videojs.options_.videoTimeout||55e3;return this.reTryVideo(r,o),this.videojs.cloudinary.source(t,e)}this.videojs.error("invalid source configuration")}}},{key:"posterOptions",value:function(t){return this.videojs.cloudinary.posterOptions(t)}},{key:"skin",value:function(t){if(void 0!==t&&(0,f.isString)(t)){i.default.setSkinClassPrefix(this.videojs,t);var e=this.playlistWidget();e&&e.setSkin()}return i.default.skinClassPrefix(this.videojs)}},{key:"playlist",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.videojs.cloudinary.playlist(t,e)}},{key:"playlistByTag",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.videojs.cloudinary.playlistByTag(t,e)}},{key:"sourcesByTag",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.videojs.cloudinary.sourcesByTag(t,e)}},{key:"fluid",value:function(t){return void 0===t?this.videojs.fluid():(t?this.videojs.addClass(p.FLUID_CLASS_NAME):this.videojs.removeClass(p.FLUID_CLASS_NAME),this.videojs.fluid(t),this.videojs.trigger(g.PLAYER_EVENT.FLUID,t),this)}},{key:"play",value:function(){return this.playWasCalled=!0,this.videojs.play(),this}},{key:"stop",value:function(){return this.pause(),this.currentTime(0),this}},{key:"playPrevious",value:function(){return this.playlist().playPrevious(),this}},{key:"playNext",value:function(){return this.playlist().playNext(),this}},{key:"transformation",value:function(t){return this.videojs.cloudinary.transformation(t)}},{key:"sourceTypes",value:function(t){return this.videojs.cloudinary.sourceTypes(t)}},{key:"sourceTransformation",value:function(t){return this.videojs.cloudinary.sourceTransformation(t)}},{key:"autoShowRecommendations",value:function(t){return this.videojs.cloudinary.autoShowRecommendations(t)}},{key:"duration",value:function(){return this.videojs.duration()}},{key:"height",value:function(t){return t?(this.videojs.height(t),this):this.videojs.height()}},{key:"width",value:function(t){return t?(this.videojs.width(t),this):this.videojs.width()}},{key:"volume",value:function(t){return t?(this.videojs.volume(t),this):this.videojs.volume()}},{key:"mute",value:function(){return this.isMuted()||this.videojs.muted(!0),this}},{key:"unmute",value:function(){return this.isMuted()&&this.videojs.muted(!1),this}},{key:"isMuted",value:function(){return this.videojs.muted()}},{key:"pause",value:function(){return this.videojs.pause(),this}},{key:"currentTime",value:function(t){return t||0===t?(this.videojs.currentTime(t),this):this.videojs.currentTime()}},{key:"maximize",value:function(){return this.isMaximized()||this.videojs.requestFullscreen(),this}},{key:"exitMaximize",value:function(){return this.isMaximized()&&this.videojs.exitFullscreen(),this}},{key:"isMaximized",value:function(){return this.videojs.isFullscreen()}},{key:"dispose",value:function(){this.videojs.dispose()}},{key:"controls",value:function(t){return void 0===t?this.videojs.controls():(this.videojs.controls(t),this)}},{key:"ima",value:function(){return{playAd:this.videojs.ima.playAd}}},{key:"loop",value:function(t){return void 0===t?this.videojs.loop():(this.videojs.loop(t),this)}},{key:"el",value:function(){return this.videojs.el()}}],E=[{key:"all",value:function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];var o=document.querySelectorAll(t);return w(o).map((function(t){return b(R,[t].concat(n))}))}},{key:"allowUsageReport",value:function(t){return void 0===t?A:A=!!t}},{key:"buildTextTrackObj",value:function(t,e){return{kind:t,label:e.label,srclang:e.language,default:!!e.default,src:e.url}}}],_&&S(s.prototype,_),E&&S(s,E),Object.defineProperty(s,"prototype",{writable:!1}),R}(i.default.mixin(s.default)),R=x;e.default=R},function(t,e,n){(function(e){var n;n=function(){"use strict";for(var t,n="7.17.0",r={},o=function(t,e){return r[t]=r[t]||[],e&&(r[t]=r[t].concat(e)),r[t]},i=function(t,e){var n=o(t).indexOf(e);return!(n<=-1||(r[t]=r[t].slice(),r[t].splice(n,1),0))},a={prefixed:!0},s=[["requestFullscreen","exitFullscreen","fullscreenElement","fullscreenEnabled","fullscreenchange","fullscreenerror","fullscreen"],["webkitRequestFullscreen","webkitExitFullscreen","webkitFullscreenElement","webkitFullscreenEnabled","webkitfullscreenchange","webkitfullscreenerror","-webkit-full-screen"],["mozRequestFullScreen","mozCancelFullScreen","mozFullScreenElement","mozFullScreenEnabled","mozfullscreenchange","mozfullscreenerror","-moz-full-screen"],["msRequestFullscreen","msExitFullscreen","msFullscreenElement","msFullscreenEnabled","MSFullscreenChange","MSFullscreenError","-ms-fullscreen"]],u=s[0],c=0;c<s.length;c++)if(s[c][1]in document){t=s[c];break}if(t){for(var l=0;l<t.length;l++)a[u[l]]=t[l];a.prefixed=t[0]!==u[0]}var f=[],h=function t(e){var n,r="info",o=function(){for(var t=arguments.length,e=new Array(t),o=0;o<t;o++)e[o]=arguments[o];n("log",r,e)};return n=function(t,e){return function(n,r,o){var i=e.levels[r],a=new RegExp("^("+i+")$");if("log"!==n&&o.unshift(n.toUpperCase()+":"),o.unshift(t+":"),f){f.push([].concat(o));var s=f.length-1e3;f.splice(0,s>0?s:0)}if(window.console){var u=window.console[n];u||"debug"!==n||(u=window.console.info||window.console.log),u&&i&&a.test(n)&&u[Array.isArray(o)?"apply":"call"](window.console,o)}}}(e,o),o.createLogger=function(n){return t(e+": "+n)},o.levels={all:"debug|log|warn|error",off:"",debug:"debug|log|warn|error",info:"log|warn|error",warn:"warn|error",error:"error",DEFAULT:r},o.level=function(t){if("string"==typeof t){if(!o.levels.hasOwnProperty(t))throw new Error('"'+t+'" in not a valid log level');r=t}return r},(o.history=function(){return f?[].concat(f):[]}).filter=function(t){return(f||[]).filter((function(e){return new RegExp(".*"+t+".*").test(e[0])}))},o.history.clear=function(){f&&(f.length=0)},o.history.disable=function(){null!==f&&(f.length=0,f=null)},o.history.enable=function(){null===f&&(f=[])},o.error=function(){for(var t=arguments.length,e=new Array(t),o=0;o<t;o++)e[o]=arguments[o];return n("error",r,e)},o.warn=function(){for(var t=arguments.length,e=new Array(t),o=0;o<t;o++)e[o]=arguments[o];return n("warn",r,e)},o.debug=function(){for(var t=arguments.length,e=new Array(t),o=0;o<t;o++)e[o]=arguments[o];return n("debug",r,e)},o}("VIDEOJS"),p=h.createLogger,d="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==e?e:"undefined"!=typeof self?self:{};function v(t,e){return t(e={exports:{}},e.exports),e.exports}var y=v((function(t){function e(){return t.exports=e=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},e.apply(this,arguments)}t.exports=e})),g=Object.prototype.toString,m=function(t){return w(t)?Object.keys(t):[]};function _(t,e){m(t).forEach((function(n){return e(t[n],n)}))}function b(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];return Object.assign?y.apply(void 0,[t].concat(n)):(n.forEach((function(e){e&&_(e,(function(e,n){t[n]=e}))})),t)}function w(t){return!!t&&"object"==typeof t}function E(t){return w(t)&&"[object Object]"===g.call(t)&&t.constructor===Object}function T(t,e){if(!t||!e)return"";if("function"==typeof window.getComputedStyle){var n;try{n=window.getComputedStyle(t)}catch(t){return""}return n?n.getPropertyValue(e)||n[e]:""}return""}var S,O=window.navigator&&window.navigator.userAgent||"",C=/AppleWebKit\/([\d.]+)/i.exec(O),P=C?parseFloat(C.pop()):null,k=/iPod/i.test(O),j=(S=O.match(/OS (\d+)_/i))&&S[1]?S[1]:null,A=/Android/i.test(O),x=function(){var t=O.match(/Android (\d+)(?:\.(\d+))?(?:\.(\d+))*/i);if(!t)return null;var e=t[1]&&parseFloat(t[1]),n=t[2]&&parseFloat(t[2]);return e&&n?parseFloat(t[1]+"."+t[2]):e||null}(),R=A&&x<5&&P<537,L=/Firefox/i.test(O),I=/Edg/i.test(O),N=!I&&(/Chrome/i.test(O)||/CriOS/i.test(O)),M=function(){var t=O.match(/(Chrome|CriOS)\/(\d+)/);return t&&t[2]?parseFloat(t[2]):null}(),D=function(){var t=/MSIE\s(\d+)\.\d/.exec(O),e=t&&parseFloat(t[1]);return!e&&/Trident\/7.0/i.test(O)&&/rv:11.0/.test(O)&&(e=11),e}(),F=/Safari/i.test(O)&&!N&&!A&&!I,B=/Windows/i.test(O),V=Boolean(X()&&("ontouchstart"in window||window.navigator.maxTouchPoints||window.DocumentTouch&&window.document instanceof window.DocumentTouch)),U=/iPad/i.test(O)||F&&V&&!/iPhone/i.test(O),H=/iPhone/i.test(O)&&!U,Y=H||U||k,z=(F||Y)&&!N,W=Object.freeze({__proto__:null,IS_IPOD:k,IOS_VERSION:j,IS_ANDROID:A,ANDROID_VERSION:x,IS_NATIVE_ANDROID:R,IS_FIREFOX:L,IS_EDGE:I,IS_CHROME:N,CHROME_VERSION:M,IE_VERSION:D,IS_SAFARI:F,IS_WINDOWS:B,TOUCH_ENABLED:V,IS_IPAD:U,IS_IPHONE:H,IS_IOS:Y,IS_ANY_SAFARI:z});function G(t){return"string"==typeof t&&Boolean(t.trim())}function K(t){if(t.indexOf(" ")>=0)throw new Error("class has illegal whitespace characters")}function X(){return document===window.document}function q(t){return w(t)&&1===t.nodeType}function $(){try{return window.parent!==window.self}catch(t){return!0}}function J(t){return function(e,n){if(!G(e))return document[t](null);G(n)&&(n=document.querySelector(n));var r=q(n)?n:document;return r[t]&&r[t](e)}}function Q(t,e,n,r){void 0===t&&(t="div"),void 0===e&&(e={}),void 0===n&&(n={});var o=document.createElement(t);return Object.getOwnPropertyNames(e).forEach((function(t){var n=e[t];-1!==t.indexOf("aria-")||"role"===t||"type"===t?(h.warn("Setting attributes in the second argument of createEl()\nhas been deprecated. Use the third argument instead.\ncreateEl(type, properties, attributes). Attempting to set "+t+" to "+n+"."),o.setAttribute(t,n)):"textContent"===t?Z(o,n):o[t]===n&&"tabIndex"!==t||(o[t]=n)})),Object.getOwnPropertyNames(n).forEach((function(t){o.setAttribute(t,n[t])})),r&&mt(o,r),o}function Z(t,e){return void 0===t.textContent?t.innerText=e:t.textContent=e,t}function tt(t,e){e.firstChild?e.insertBefore(t,e.firstChild):e.appendChild(t)}function et(t,e){return K(e),t.classList?t.classList.contains(e):(n=e,new RegExp("(^|\\s)"+n+"($|\\s)")).test(t.className);var n}function nt(t,e){return t.classList?t.classList.add(e):et(t,e)||(t.className=(t.className+" "+e).trim()),t}function rt(t,e){return t?(t.classList?t.classList.remove(e):(K(e),t.className=t.className.split(/\s+/).filter((function(t){return t!==e})).join(" ")),t):(h.warn("removeClass was called with an element that doesn't exist"),null)}function ot(t,e,n){var r=et(t,e);if("function"==typeof n&&(n=n(t,e)),"boolean"!=typeof n&&(n=!r),n!==r)return n?nt(t,e):rt(t,e),t}function it(t,e){Object.getOwnPropertyNames(e).forEach((function(n){var r=e[n];null==r||!1===r?t.removeAttribute(n):t.setAttribute(n,!0===r?"":r)}))}function at(t){var e={},n=",autoplay,controls,playsinline,loop,muted,default,defaultMuted,";if(t&&t.attributes&&t.attributes.length>0)for(var r=t.attributes,o=r.length-1;o>=0;o--){var i=r[o].name,a=r[o].value;"boolean"!=typeof t[i]&&-1===n.indexOf(","+i+",")||(a=null!==a),e[i]=a}return e}function st(t,e){return t.getAttribute(e)}function ut(t,e,n){t.setAttribute(e,n)}function ct(t,e){t.removeAttribute(e)}function lt(){document.body.focus(),document.onselectstart=function(){return!1}}function ft(){document.onselectstart=function(){return!0}}function ht(t){if(t&&t.getBoundingClientRect&&t.parentNode){var e=t.getBoundingClientRect(),n={};return["bottom","height","left","right","top","width"].forEach((function(t){void 0!==e[t]&&(n[t]=e[t])})),n.height||(n.height=parseFloat(T(t,"height"))),n.width||(n.width=parseFloat(T(t,"width"))),n}}function pt(t){if(!t||t&&!t.offsetParent)return{left:0,top:0,width:0,height:0};for(var e=t.offsetWidth,n=t.offsetHeight,r=0,o=0;t.offsetParent&&t!==document[a.fullscreenElement];)r+=t.offsetLeft,o+=t.offsetTop,t=t.offsetParent;return{left:r,top:o,width:e,height:n}}function dt(t,e){var n={x:0,y:0};if(Y)for(var r=t;r&&"html"!==r.nodeName.toLowerCase();){var o=T(r,"transform");if(/^matrix/.test(o)){var i=o.slice(7,-1).split(/,\s/).map(Number);n.x+=i[4],n.y+=i[5]}else if(/^matrix3d/.test(o)){var a=o.slice(9,-1).split(/,\s/).map(Number);n.x+=a[12],n.y+=a[13]}r=r.parentNode}var s={},u=pt(e.target),c=pt(t),l=c.width,f=c.height,h=e.offsetY-(c.top-u.top),p=e.offsetX-(c.left-u.left);return e.changedTouches&&(p=e.changedTouches[0].pageX-c.left,h=e.changedTouches[0].pageY+c.top,Y&&(p-=n.x,h-=n.y)),s.y=1-Math.max(0,Math.min(1,h/f)),s.x=Math.max(0,Math.min(1,p/l)),s}function vt(t){return w(t)&&3===t.nodeType}function yt(t){for(;t.firstChild;)t.removeChild(t.firstChild);return t}function gt(t){return"function"==typeof t&&(t=t()),(Array.isArray(t)?t:[t]).map((function(t){return"function"==typeof t&&(t=t()),q(t)||vt(t)?t:"string"==typeof t&&/\S/.test(t)?document.createTextNode(t):void 0})).filter((function(t){return t}))}function mt(t,e){return gt(e).forEach((function(e){return t.appendChild(e)})),t}function _t(t,e){return mt(yt(t),e)}function bt(t){return void 0===t.button&&void 0===t.buttons||0===t.button&&void 0===t.buttons||"mouseup"===t.type&&0===t.button&&0===t.buttons||0===t.button&&1===t.buttons}var wt,Et=J("querySelector"),Tt=J("querySelectorAll"),St=Object.freeze({__proto__:null,isReal:X,isEl:q,isInFrame:$,createEl:Q,textContent:Z,prependTo:tt,hasClass:et,addClass:nt,removeClass:rt,toggleClass:ot,setAttributes:it,getAttributes:at,getAttribute:st,setAttribute:ut,removeAttribute:ct,blockTextSelection:lt,unblockTextSelection:ft,getBoundingClientRect:ht,findPosition:pt,getPointerPosition:dt,isTextNode:vt,emptyEl:yt,normalizeContent:gt,appendContent:mt,insertContent:_t,isSingleLeftClick:bt,$:Et,$$:Tt}),Ot=!1,Ct=function(){if(!1!==wt.options.autoSetup){var t=Array.prototype.slice.call(document.getElementsByTagName("video")),e=Array.prototype.slice.call(document.getElementsByTagName("audio")),n=Array.prototype.slice.call(document.getElementsByTagName("video-js")),r=t.concat(e,n);if(r&&r.length>0)for(var o=0,i=r.length;o<i;o++){var a=r[o];if(!a||!a.getAttribute){Pt(1);break}void 0===a.player&&null!==a.getAttribute("data-setup")&&wt(a)}else Ot||Pt(1)}};function Pt(t,e){X()&&(e&&(wt=e),window.setTimeout(Ct,t))}function kt(){Ot=!0,window.removeEventListener("load",kt)}X()&&("complete"===document.readyState?kt():window.addEventListener("load",kt));var jt,At=function(t){var e=document.createElement("style");return e.className=t,e},xt=function(t,e){t.styleSheet?t.styleSheet.cssText=e:t.textContent=e},Rt=3;function Lt(){return Rt++}window.WeakMap||(jt=function(){function t(){this.vdata="vdata"+Math.floor(window.performance&&window.performance.now()||Date.now()),this.data={}}var e=t.prototype;return e.set=function(t,e){var n=t[this.vdata]||Lt();return t[this.vdata]||(t[this.vdata]=n),this.data[n]=e,this},e.get=function(t){var e=t[this.vdata];if(e)return this.data[e];h("We have no data for this element",t)},e.has=function(t){return t[this.vdata]in this.data},e.delete=function(t){var e=t[this.vdata];e&&(delete this.data[e],delete t[this.vdata])},t}());var It,Nt=window.WeakMap?new WeakMap:new jt;function Mt(t,e){if(Nt.has(t)){var n=Nt.get(t);0===n.handlers[e].length&&(delete n.handlers[e],t.removeEventListener?t.removeEventListener(e,n.dispatcher,!1):t.detachEvent&&t.detachEvent("on"+e,n.dispatcher)),Object.getOwnPropertyNames(n.handlers).length<=0&&(delete n.handlers,delete n.dispatcher,delete n.disabled),0===Object.getOwnPropertyNames(n).length&&Nt.delete(t)}}function Dt(t,e,n,r){n.forEach((function(n){t(e,n,r)}))}function Ft(t){if(t.fixed_)return t;function e(){return!0}function n(){return!1}if(!t||!t.isPropagationStopped||!t.isImmediatePropagationStopped){var r=t||window.event;for(var o in t={},r)"layerX"!==o&&"layerY"!==o&&"keyLocation"!==o&&"webkitMovementX"!==o&&"webkitMovementY"!==o&&("returnValue"===o&&r.preventDefault||(t[o]=r[o]));if(t.target||(t.target=t.srcElement||document),t.relatedTarget||(t.relatedTarget=t.fromElement===t.target?t.toElement:t.fromElement),t.preventDefault=function(){r.preventDefault&&r.preventDefault(),t.returnValue=!1,r.returnValue=!1,t.defaultPrevented=!0},t.defaultPrevented=!1,t.stopPropagation=function(){r.stopPropagation&&r.stopPropagation(),t.cancelBubble=!0,r.cancelBubble=!0,t.isPropagationStopped=e},t.isPropagationStopped=n,t.stopImmediatePropagation=function(){r.stopImmediatePropagation&&r.stopImmediatePropagation(),t.isImmediatePropagationStopped=e,t.stopPropagation()},t.isImmediatePropagationStopped=n,null!==t.clientX&&void 0!==t.clientX){var i=document.documentElement,a=document.body;t.pageX=t.clientX+(i&&i.scrollLeft||a&&a.scrollLeft||0)-(i&&i.clientLeft||a&&a.clientLeft||0),t.pageY=t.clientY+(i&&i.scrollTop||a&&a.scrollTop||0)-(i&&i.clientTop||a&&a.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.fixed_=!0,t}var Bt=["touchstart","touchmove"];function Vt(t,e,n){if(Array.isArray(e))return Dt(Vt,t,e,n);Nt.has(t)||Nt.set(t,{});var r=Nt.get(t);if(r.handlers||(r.handlers={}),r.handlers[e]||(r.handlers[e]=[]),n.guid||(n.guid=Lt()),r.handlers[e].push(n),r.dispatcher||(r.disabled=!1,r.dispatcher=function(e,n){if(!r.disabled){e=Ft(e);var o=r.handlers[e.type];if(o)for(var i=o.slice(0),a=0,s=i.length;a<s&&!e.isImmediatePropagationStopped();a++)try{i[a].call(t,e,n)}catch(t){h.error(t)}}}),1===r.handlers[e].length)if(t.addEventListener){var o=!1;(function(){if("boolean"!=typeof It){It=!1;try{var t=Object.defineProperty({},"passive",{get:function(){It=!0}});window.addEventListener("test",null,t),window.removeEventListener("test",null,t)}catch(t){}}return It})()&&Bt.indexOf(e)>-1&&(o={passive:!0}),t.addEventListener(e,r.dispatcher,o)}else t.attachEvent&&t.attachEvent("on"+e,r.dispatcher)}function Ut(t,e,n){if(Nt.has(t)){var r=Nt.get(t);if(r.handlers){if(Array.isArray(e))return Dt(Ut,t,e,n);var o=function(t,e){r.handlers[e]=[],Mt(t,e)};if(void 0!==e){var i=r.handlers[e];if(i)if(n){if(n.guid)for(var a=0;a<i.length;a++)i[a].guid===n.guid&&i.splice(a--,1);Mt(t,e)}else o(t,e)}else for(var s in r.handlers)Object.prototype.hasOwnProperty.call(r.handlers||{},s)&&o(t,s)}}}function Ht(t,e,n){var r=Nt.has(t)?Nt.get(t):{},o=t.parentNode||t.ownerDocument;if("string"==typeof e?e={type:e,target:t}:e.target||(e.target=t),e=Ft(e),r.dispatcher&&r.dispatcher.call(t,e,n),o&&!e.isPropagationStopped()&&!0===e.bubbles)Ht.call(null,o,e,n);else if(!o&&!e.defaultPrevented&&e.target&&e.target[e.type]){Nt.has(e.target)||Nt.set(e.target,{});var i=Nt.get(e.target);e.target[e.type]&&(i.disabled=!0,"function"==typeof e.target[e.type]&&e.target[e.type](),i.disabled=!1)}return!e.defaultPrevented}function Yt(t,e,n){if(Array.isArray(e))return Dt(Yt,t,e,n);var r=function r(){Ut(t,e,r),n.apply(this,arguments)};r.guid=n.guid=n.guid||Lt(),Vt(t,e,r)}function zt(t,e,n){var r=function r(){Ut(t,e,r),n.apply(this,arguments)};r.guid=n.guid=n.guid||Lt(),Vt(t,e,r)}var Wt,Gt=Object.freeze({__proto__:null,fixEvent:Ft,on:Vt,off:Ut,trigger:Ht,one:Yt,any:zt}),Kt=30,Xt=function(t,e,n){e.guid||(e.guid=Lt());var r=e.bind(t);return r.guid=n?n+"_"+e.guid:e.guid,r},qt=function(t,e){var n=window.performance.now();return function(){var r=window.performance.now();r-n>=e&&(t.apply(void 0,arguments),n=r)}},$t=function(){};$t.prototype.allowedEvents_={},$t.prototype.on=function(t,e){var n=this.addEventListener;this.addEventListener=function(){},Vt(this,t,e),this.addEventListener=n},$t.prototype.addEventListener=$t.prototype.on,$t.prototype.off=function(t,e){Ut(this,t,e)},$t.prototype.removeEventListener=$t.prototype.off,$t.prototype.one=function(t,e){var n=this.addEventListener;this.addEventListener=function(){},Yt(this,t,e),this.addEventListener=n},$t.prototype.any=function(t,e){var n=this.addEventListener;this.addEventListener=function(){},zt(this,t,e),this.addEventListener=n},$t.prototype.trigger=function(t){var e=t.type||t;"string"==typeof t&&(t={type:e}),t=Ft(t),this.allowedEvents_[e]&&this["on"+e]&&this["on"+e](t),Ht(this,t)},$t.prototype.dispatchEvent=$t.prototype.trigger,$t.prototype.queueTrigger=function(t){var e=this;Wt||(Wt=new Map);var n=t.type||t,r=Wt.get(this);r||(r=new Map,Wt.set(this,r));var o=r.get(n);r.delete(n),window.clearTimeout(o);var i=window.setTimeout((function(){0===r.size&&(r=null,Wt.delete(e)),e.trigger(t)}),0);r.set(n,i)};var Jt=function(t){return"function"==typeof t.name?t.name():"string"==typeof t.name?t.name:t.name_?t.name_:t.constructor&&t.constructor.name?t.constructor.name:typeof t},Qt=function(t){return t instanceof $t||!!t.eventBusEl_&&["on","one","off","trigger"].every((function(e){return"function"==typeof t[e]}))},Zt=function(t){return"string"==typeof t&&/\S/.test(t)||Array.isArray(t)&&!!t.length},te=function(t,e,n){if(!t||!t.nodeName&&!Qt(t))throw new Error("Invalid target for "+Jt(e)+"#"+n+"; must be a DOM node or evented object.")},ee=function(t,e,n){if(!Zt(t))throw new Error("Invalid event type for "+Jt(e)+"#"+n+"; must be a non-empty string or array.")},ne=function(t,e,n){if("function"!=typeof t)throw new Error("Invalid listener for "+Jt(e)+"#"+n+"; must be a function.")},re=function(t,e,n){var r,o,i,a=e.length<3||e[0]===t||e[0]===t.eventBusEl_;return a?(r=t.eventBusEl_,e.length>=3&&e.shift(),o=e[0],i=e[1]):(r=e[0],o=e[1],i=e[2]),te(r,t,n),ee(o,t,n),ne(i,t,n),{isTargetingSelf:a,target:r,type:o,listener:i=Xt(t,i)}},oe=function(t,e,n,r){te(t,t,e),t.nodeName?Gt[e](t,n,r):t[e](n,r)},ie={on:function(){for(var t=this,e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];var o=re(this,n,"on"),i=o.isTargetingSelf,a=o.target,s=o.type,u=o.listener;if(oe(a,"on",s,u),!i){var c=function(){return t.off(a,s,u)};c.guid=u.guid;var l=function(){return t.off("dispose",c)};l.guid=u.guid,oe(this,"on","dispose",c),oe(a,"on","dispose",l)}},one:function(){for(var t=this,e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];var o=re(this,n,"one"),i=o.isTargetingSelf,a=o.target,s=o.type,u=o.listener;if(i)oe(a,"one",s,u);else{var c=function e(){t.off(a,s,e);for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];u.apply(null,r)};c.guid=u.guid,oe(a,"one",s,c)}},any:function(){for(var t=this,e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];var o=re(this,n,"any"),i=o.isTargetingSelf,a=o.target,s=o.type,u=o.listener;if(i)oe(a,"any",s,u);else{var c=function e(){t.off(a,s,e);for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];u.apply(null,r)};c.guid=u.guid,oe(a,"any",s,c)}},off:function(t,e,n){if(!t||Zt(t))Ut(this.eventBusEl_,t,e);else{var r=t,o=e;te(r,this,"off"),ee(o,this,"off"),ne(n,this,"off"),n=Xt(this,n),this.off("dispose",n),r.nodeName?(Ut(r,o,n),Ut(r,"dispose",n)):Qt(r)&&(r.off(o,n),r.off("dispose",n))}},trigger:function(t,e){te(this.eventBusEl_,this,"trigger");var n=t&&"string"!=typeof t?t.type:t;if(!Zt(n)){var r="Invalid event type for "+Jt(this)+"#trigger; must be a non-empty string or object with a type key that has a non-empty value.";if(!t)throw new Error(r);(this.log||h).error(r)}return Ht(this.eventBusEl_,t,e)}};function ae(t,e){void 0===e&&(e={});var n=e.eventBusKey;if(n){if(!t[n].nodeName)throw new Error('The eventBusKey "'+n+'" does not refer to an element.');t.eventBusEl_=t[n]}else t.eventBusEl_=Q("span",{className:"vjs-event-bus"});return b(t,ie),t.eventedCallbacks&&t.eventedCallbacks.forEach((function(t){t()})),t.on("dispose",(function(){t.off(),[t,t.el_,t.eventBusEl_].forEach((function(t){t&&Nt.has(t)&&Nt.delete(t)})),window.setTimeout((function(){t.eventBusEl_=null}),0)})),t}var se={state:{},setState:function(t){var e,n=this;return"function"==typeof t&&(t=t()),_(t,(function(t,r){n.state[r]!==t&&((e=e||{})[r]={from:n.state[r],to:t}),n.state[r]=t})),e&&Qt(this)&&this.trigger({changes:e,type:"statechanged"}),e}};function ue(t,e){return b(t,se),t.state=b({},t.state,e),"function"==typeof t.handleStateChanged&&Qt(t)&&t.on("statechanged",t.handleStateChanged),t}var ce=function(t){return"string"!=typeof t?t:t.replace(/./,(function(t){return t.toLowerCase()}))},le=function(t){return"string"!=typeof t?t:t.replace(/./,(function(t){return t.toUpperCase()}))};function fe(){for(var t={},e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return n.forEach((function(e){e&&_(e,(function(e,n){E(e)?(E(t[n])||(t[n]={}),t[n]=fe(t[n],e)):t[n]=e}))})),t}var he=function(){function t(){this.map_={}}var e=t.prototype;return e.has=function(t){return t in this.map_},e.delete=function(t){var e=this.has(t);return delete this.map_[t],e},e.set=function(t,e){return this.map_[t]=e,this},e.forEach=function(t,e){for(var n in this.map_)t.call(e,this.map_[n],n,this)},t}(),pe=window.Map?window.Map:he,de=function(){function t(){this.set_={}}var e=t.prototype;return e.has=function(t){return t in this.set_},e.delete=function(t){var e=this.has(t);return delete this.set_[t],e},e.add=function(t){return this.set_[t]=1,this},e.forEach=function(t,e){for(var n in this.set_)t.call(e,n,n,this)},t}(),ve=window.Set?window.Set:de,ye=function(){function t(t,e,n){if(!t&&this.play?this.player_=t=this:this.player_=t,this.isDisposed_=!1,this.parentComponent_=null,this.options_=fe({},this.options_),e=this.options_=fe(this.options_,e),this.id_=e.id||e.el&&e.el.id,!this.id_){var r=t&&t.id&&t.id()||"no_player";this.id_=r+"_component_"+Lt()}this.name_=e.name||null,e.el?this.el_=e.el:!1!==e.createEl&&(this.el_=this.createEl()),!1!==e.evented&&(ae(this,{eventBusKey:this.el_?"el_":null}),this.handleLanguagechange=this.handleLanguagechange.bind(this),this.on(this.player_,"languagechange",this.handleLanguagechange)),ue(this,this.constructor.defaultState),this.children_=[],this.childIndex_={},this.childNameIndex_={},this.setTimeoutIds_=new ve,this.setIntervalIds_=new ve,this.rafIds_=new ve,this.namedRafs_=new pe,this.clearingTimersOnDispose_=!1,!1!==e.initChildren&&this.initChildren(),this.ready(n),!1!==e.reportTouchActivity&&this.enableTouchActivity()}var e=t.prototype;return e.dispose=function(){if(!this.isDisposed_){if(this.readyQueue_&&(this.readyQueue_.length=0),this.trigger({type:"dispose",bubbles:!1}),this.isDisposed_=!0,this.children_)for(var t=this.children_.length-1;t>=0;t--)this.children_[t].dispose&&this.children_[t].dispose();this.children_=null,this.childIndex_=null,this.childNameIndex_=null,this.parentComponent_=null,this.el_&&(this.el_.parentNode&&this.el_.parentNode.removeChild(this.el_),this.el_=null),this.player_=null}},e.isDisposed=function(){return Boolean(this.isDisposed_)},e.player=function(){return this.player_},e.options=function(t){return t?(this.options_=fe(this.options_,t),this.options_):this.options_},e.el=function(){return this.el_},e.createEl=function(t,e,n){return Q(t,e,n)},e.localize=function(t,e,n){void 0===n&&(n=t);var r=this.player_.language&&this.player_.language(),o=this.player_.languages&&this.player_.languages(),i=o&&o[r],a=r&&r.split("-")[0],s=o&&o[a],u=n;return i&&i[t]?u=i[t]:s&&s[t]&&(u=s[t]),e&&(u=u.replace(/\{(\d+)\}/g,(function(t,n){var r=e[n-1],o=r;return void 0===r&&(o=t),o}))),u},e.handleLanguagechange=function(){},e.contentEl=function(){return this.contentEl_||this.el_},e.id=function(){return this.id_},e.name=function(){return this.name_},e.children=function(){return this.children_},e.getChildById=function(t){return this.childIndex_[t]},e.getChild=function(t){if(t)return this.childNameIndex_[t]},e.getDescendant=function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];e=e.reduce((function(t,e){return t.concat(e)}),[]);for(var r=this,o=0;o<e.length;o++)if(!(r=r.getChild(e[o]))||!r.getChild)return;return r},e.addChild=function(e,n,r){var o,i;if(void 0===n&&(n={}),void 0===r&&(r=this.children_.length),"string"==typeof e){i=le(e);var a=n.componentClass||i;n.name=i;var s=t.getComponent(a);if(!s)throw new Error("Component "+a+" does not exist");if("function"!=typeof s)return null;o=new s(this.player_||this,n)}else o=e;if(o.parentComponent_&&o.parentComponent_.removeChild(o),this.children_.splice(r,0,o),o.parentComponent_=this,"function"==typeof o.id&&(this.childIndex_[o.id()]=o),(i=i||o.name&&le(o.name()))&&(this.childNameIndex_[i]=o,this.childNameIndex_[ce(i)]=o),"function"==typeof o.el&&o.el()){var u=null;this.children_[r+1]&&(this.children_[r+1].el_?u=this.children_[r+1].el_:q(this.children_[r+1])&&(u=this.children_[r+1])),this.contentEl().insertBefore(o.el(),u)}return o},e.removeChild=function(t){if("string"==typeof t&&(t=this.getChild(t)),t&&this.children_){for(var e=!1,n=this.children_.length-1;n>=0;n--)if(this.children_[n]===t){e=!0,this.children_.splice(n,1);break}if(e){t.parentComponent_=null,this.childIndex_[t.id()]=null,this.childNameIndex_[le(t.name())]=null,this.childNameIndex_[ce(t.name())]=null;var r=t.el();r&&r.parentNode===this.contentEl()&&this.contentEl().removeChild(t.el())}}},e.initChildren=function(){var e=this,n=this.options_.children;if(n){var r,o=this.options_,i=t.getComponent("Tech");(r=Array.isArray(n)?n:Object.keys(n)).concat(Object.keys(this.options_).filter((function(t){return!r.some((function(e){return"string"==typeof e?t===e:t===e.name}))}))).map((function(t){var r,o;return"string"==typeof t?o=n[r=t]||e.options_[r]||{}:(r=t.name,o=t),{name:r,opts:o}})).filter((function(e){var n=t.getComponent(e.opts.componentClass||le(e.name));return n&&!i.isTech(n)})).forEach((function(t){var n=t.name,r=t.opts;if(void 0!==o[n]&&(r=o[n]),!1!==r){!0===r&&(r={}),r.playerOptions=e.options_.playerOptions;var i=e.addChild(n,r);i&&(e[n]=i)}}))}},e.buildCSSClass=function(){return""},e.ready=function(t,e){if(void 0===e&&(e=!1),t)return this.isReady_?void(e?t.call(this):this.setTimeout(t,1)):(this.readyQueue_=this.readyQueue_||[],void this.readyQueue_.push(t))},e.triggerReady=function(){this.isReady_=!0,this.setTimeout((function(){var t=this.readyQueue_;this.readyQueue_=[],t&&t.length>0&&t.forEach((function(t){t.call(this)}),this),this.trigger("ready")}),1)},e.$=function(t,e){return Et(t,e||this.contentEl())},e.$$=function(t,e){return Tt(t,e||this.contentEl())},e.hasClass=function(t){return et(this.el_,t)},e.addClass=function(t){nt(this.el_,t)},e.removeClass=function(t){rt(this.el_,t)},e.toggleClass=function(t,e){ot(this.el_,t,e)},e.show=function(){this.removeClass("vjs-hidden")},e.hide=function(){this.addClass("vjs-hidden")},e.lockShowing=function(){this.addClass("vjs-lock-showing")},e.unlockShowing=function(){this.removeClass("vjs-lock-showing")},e.getAttribute=function(t){return st(this.el_,t)},e.setAttribute=function(t,e){ut(this.el_,t,e)},e.removeAttribute=function(t){ct(this.el_,t)},e.width=function(t,e){return this.dimension("width",t,e)},e.height=function(t,e){return this.dimension("height",t,e)},e.dimensions=function(t,e){this.width(t,!0),this.height(e)},e.dimension=function(t,e,n){if(void 0!==e)return null!==e&&e==e||(e=0),-1!==(""+e).indexOf("%")||-1!==(""+e).indexOf("px")?this.el_.style[t]=e:this.el_.style[t]="auto"===e?"":e+"px",void(n||this.trigger("componentresize"));if(!this.el_)return 0;var r=this.el_.style[t],o=r.indexOf("px");return-1!==o?parseInt(r.slice(0,o),10):parseInt(this.el_["offset"+le(t)],10)},e.currentDimension=function(t){var e=0;if("width"!==t&&"height"!==t)throw new Error("currentDimension only accepts width or height value");if(e=T(this.el_,t),0===(e=parseFloat(e))||isNaN(e)){var n="offset"+le(t);e=this.el_[n]}return e},e.currentDimensions=function(){return{width:this.currentDimension("width"),height:this.currentDimension("height")}},e.currentWidth=function(){return this.currentDimension("width")},e.currentHeight=function(){return this.currentDimension("height")},e.focus=function(){this.el_.focus()},e.blur=function(){this.el_.blur()},e.handleKeyDown=function(t){this.player_&&(t.stopPropagation(),this.player_.handleKeyDown(t))},e.handleKeyPress=function(t){this.handleKeyDown(t)},e.emitTapEvents=function(){var t,e=0,n=null;this.on("touchstart",(function(r){1===r.touches.length&&(n={pageX:r.touches[0].pageX,pageY:r.touches[0].pageY},e=window.performance.now(),t=!0)})),this.on("touchmove",(function(e){if(e.touches.length>1)t=!1;else if(n){var r=e.touches[0].pageX-n.pageX,o=e.touches[0].pageY-n.pageY;Math.sqrt(r*r+o*o)>10&&(t=!1)}}));var r=function(){t=!1};this.on("touchleave",r),this.on("touchcancel",r),this.on("touchend",(function(r){n=null,!0===t&&window.performance.now()-e<200&&(r.preventDefault(),this.trigger("tap"))}))},e.enableTouchActivity=function(){if(this.player()&&this.player().reportUserActivity){var t,e=Xt(this.player(),this.player().reportUserActivity);this.on("touchstart",(function(){e(),this.clearInterval(t),t=this.setInterval(e,250)}));var n=function(n){e(),this.clearInterval(t)};this.on("touchmove",e),this.on("touchend",n),this.on("touchcancel",n)}},e.setTimeout=function(t,e){var n,r=this;return t=Xt(this,t),this.clearTimersOnDispose_(),n=window.setTimeout((function(){r.setTimeoutIds_.has(n)&&r.setTimeoutIds_.delete(n),t()}),e),this.setTimeoutIds_.add(n),n},e.clearTimeout=function(t){return this.setTimeoutIds_.has(t)&&(this.setTimeoutIds_.delete(t),window.clearTimeout(t)),t},e.setInterval=function(t,e){t=Xt(this,t),this.clearTimersOnDispose_();var n=window.setInterval(t,e);return this.setIntervalIds_.add(n),n},e.clearInterval=function(t){return this.setIntervalIds_.has(t)&&(this.setIntervalIds_.delete(t),window.clearInterval(t)),t},e.requestAnimationFrame=function(t){var e,n=this;return this.supportsRaf_?(this.clearTimersOnDispose_(),t=Xt(this,t),e=window.requestAnimationFrame((function(){n.rafIds_.has(e)&&n.rafIds_.delete(e),t()})),this.rafIds_.add(e),e):this.setTimeout(t,1e3/60)},e.requestNamedAnimationFrame=function(t,e){var n=this;if(!this.namedRafs_.has(t)){this.clearTimersOnDispose_(),e=Xt(this,e);var r=this.requestAnimationFrame((function(){e(),n.namedRafs_.has(t)&&n.namedRafs_.delete(t)}));return this.namedRafs_.set(t,r),t}},e.cancelNamedAnimationFrame=function(t){this.namedRafs_.has(t)&&(this.cancelAnimationFrame(this.namedRafs_.get(t)),this.namedRafs_.delete(t))},e.cancelAnimationFrame=function(t){return this.supportsRaf_?(this.rafIds_.has(t)&&(this.rafIds_.delete(t),window.cancelAnimationFrame(t)),t):this.clearTimeout(t)},e.clearTimersOnDispose_=function(){var t=this;this.clearingTimersOnDispose_||(this.clearingTimersOnDispose_=!0,this.one("dispose",(function(){[["namedRafs_","cancelNamedAnimationFrame"],["rafIds_","cancelAnimationFrame"],["setTimeoutIds_","clearTimeout"],["setIntervalIds_","clearInterval"]].forEach((function(e){var n=e[0],r=e[1];t[n].forEach((function(e,n){return t[r](n)}))})),t.clearingTimersOnDispose_=!1})))},t.registerComponent=function(e,n){if("string"!=typeof e||!e)throw new Error('Illegal component name, "'+e+'"; must be a non-empty string.');var r,o=t.getComponent("Tech"),i=o&&o.isTech(n),a=t===n||t.prototype.isPrototypeOf(n.prototype);if(i||!a)throw r=i?"techs must be registered using Tech.registerTech()":"must be a Component subclass",new Error('Illegal component, "'+e+'"; '+r+".");e=le(e),t.components_||(t.components_={});var s=t.getComponent("Player");if("Player"===e&&s&&s.players){var u=s.players,c=Object.keys(u);if(u&&c.length>0&&c.map((function(t){return u[t]})).every(Boolean))throw new Error("Can not register Player component after player has been created.")}return t.components_[e]=n,t.components_[ce(e)]=n,n},t.getComponent=function(e){if(e&&t.components_)return t.components_[e]},t}();ye.prototype.supportsRaf_="function"==typeof window.requestAnimationFrame&&"function"==typeof window.cancelAnimationFrame,ye.registerComponent("Component",ye);var ge=function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t},me=function(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e};function _e(t,e,n,r){return function(t,e,n){if("number"!=typeof e||e<0||e>n)throw new Error("Failed to execute '"+t+"' on 'TimeRanges': The index provided ("+e+") is non-numeric or out of bounds (0-"+n+").")}(t,r,n.length-1),n[r][e]}function be(t){var e;return e=void 0===t||0===t.length?{length:0,start:function(){throw new Error("This TimeRanges object is empty")},end:function(){throw new Error("This TimeRanges object is empty")}}:{length:t.length,start:_e.bind(null,"start",0,t),end:_e.bind(null,"end",1,t)},window.Symbol&&window.Symbol.iterator&&(e[window.Symbol.iterator]=function(){return(t||[]).values()}),e}function we(t,e){return Array.isArray(t)?be(t):void 0===t||void 0===e?be():be([[t,e]])}function Ee(t,e){var n,r,o=0;if(!e)return 0;t&&t.length||(t=we(0,0));for(var i=0;i<t.length;i++)n=t.start(i),(r=t.end(i))>e&&(r=e),o+=r-n;return o/e}function Te(t){if(t instanceof Te)return t;"number"==typeof t?this.code=t:"string"==typeof t?this.message=t:w(t)&&("number"==typeof t.code&&(this.code=t.code),b(this,t)),this.message||(this.message=Te.defaultMessages[this.code]||"")}Te.prototype.code=0,Te.prototype.message="",Te.prototype.status=null,Te.errorTypes=["MEDIA_ERR_CUSTOM","MEDIA_ERR_ABORTED","MEDIA_ERR_NETWORK","MEDIA_ERR_DECODE","MEDIA_ERR_SRC_NOT_SUPPORTED","MEDIA_ERR_ENCRYPTED"],Te.defaultMessages={1:"You aborted the media playback",2:"A network error caused the media download to fail part-way.",3:"The media playback was aborted due to a corruption problem or because the media used features your browser did not support.",4:"The media could not be loaded, either because the server or network failed or because the format is not supported.",5:"The media is encrypted and we do not have the keys to decrypt it."};for(var Se=0;Se<Te.errorTypes.length;Se++)Te[Te.errorTypes[Se]]=Se,Te.prototype[Te.errorTypes[Se]]=Se;var Oe=function(t,e){var n,r=null;try{n=JSON.parse(t,e)}catch(t){r=t}return[r,n]};function Ce(t){return null!=t&&"function"==typeof t.then}function Pe(t){Ce(t)&&t.then(null,(function(t){}))}var ke=function(t){return["kind","label","language","id","inBandMetadataTrackDispatchType","mode","src"].reduce((function(e,n,r){return t[n]&&(e[n]=t[n]),e}),{cues:t.cues&&Array.prototype.map.call(t.cues,(function(t){return{startTime:t.startTime,endTime:t.endTime,text:t.text,id:t.id}}))})},je=function(t){var e=t.$$("track"),n=Array.prototype.map.call(e,(function(t){return t.track}));return Array.prototype.map.call(e,(function(t){var e=ke(t.track);return t.src&&(e.src=t.src),e})).concat(Array.prototype.filter.call(t.textTracks(),(function(t){return-1===n.indexOf(t)})).map(ke))},Ae=function(t,e){return t.forEach((function(t){var n=e.addRemoteTextTrack(t).track;!t.src&&t.cues&&t.cues.forEach((function(t){return n.addCue(t)}))})),e.textTracks()},xe=v((function(t,e){function n(t){if(t&&"object"==typeof t){var e=t.which||t.keyCode||t.charCode;e&&(t=e)}if("number"==typeof t)return a[t];var n,i=String(t);return(n=r[i.toLowerCase()])?n:(n=o[i.toLowerCase()])||(1===i.length?i.charCodeAt(0):void 0)}n.isEventKey=function(t,e){if(t&&"object"==typeof t){var n=t.which||t.keyCode||t.charCode;if(null==n)return!1;if("string"==typeof e){var i;if(i=r[e.toLowerCase()])return i===n;if(i=o[e.toLowerCase()])return i===n}else if("number"==typeof e)return e===n;return!1}};var r=(e=t.exports=n).code=e.codes={backspace:8,tab:9,enter:13,shift:16,ctrl:17,alt:18,"pause/break":19,"caps lock":20,esc:27,space:32,"page up":33,"page down":34,end:35,home:36,left:37,up:38,right:39,down:40,insert:45,delete:46,command:91,"left command":91,"right command":93,"numpad *":106,"numpad +":107,"numpad -":109,"numpad .":110,"numpad /":111,"num lock":144,"scroll lock":145,"my computer":182,"my calculator":183,";":186,"=":187,",":188,"-":189,".":190,"/":191,"`":192,"[":219,"\\":220,"]":221,"'":222},o=e.aliases={windows:91,"⇧":16,"⌥":18,"⌃":17,"⌘":91,ctl:17,control:17,option:18,pause:19,break:19,caps:20,return:13,escape:27,spc:32,spacebar:32,pgup:33,pgdn:34,ins:45,del:46,cmd:91};for(i=97;i<123;i++)r[String.fromCharCode(i)]=i-32;for(var i=48;i<58;i++)r[i-48]=i;for(i=1;i<13;i++)r["f"+i]=i+111;for(i=0;i<10;i++)r["numpad "+i]=i+96;var a=e.names=e.title={};for(i in r)a[r[i]]=i;for(var s in o)r[s]=o[s]}));xe.code,xe.codes,xe.aliases,xe.names,xe.title;var Re=function(t){function e(e,n){var r;return(r=t.call(this,e,n)||this).handleKeyDown_=function(t){return r.handleKeyDown(t)},r.close_=function(t){return r.close(t)},r.opened_=r.hasBeenOpened_=r.hasBeenFilled_=!1,r.closeable(!r.options_.uncloseable),r.content(r.options_.content),r.contentEl_=Q("div",{className:"vjs-modal-dialog-content"},{role:"document"}),r.descEl_=Q("p",{className:"vjs-modal-dialog-description vjs-control-text",id:r.el().getAttribute("aria-describedby")}),Z(r.descEl_,r.description()),r.el_.appendChild(r.descEl_),r.el_.appendChild(r.contentEl_),r}me(e,t);var n=e.prototype;return n.createEl=function(){return t.prototype.createEl.call(this,"div",{className:this.buildCSSClass(),tabIndex:-1},{"aria-describedby":this.id()+"_description","aria-hidden":"true","aria-label":this.label(),role:"dialog"})},n.dispose=function(){this.contentEl_=null,this.descEl_=null,this.previouslyActiveEl_=null,t.prototype.dispose.call(this)},n.buildCSSClass=function(){return"vjs-modal-dialog vjs-hidden "+t.prototype.buildCSSClass.call(this)},n.label=function(){return this.localize(this.options_.label||"Modal Window")},n.description=function(){var t=this.options_.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},n.open=function(){if(!this.opened_){var t=this.player();this.trigger("beforemodalopen"),this.opened_=!0,(this.options_.fillAlways||!this.hasBeenOpened_&&!this.hasBeenFilled_)&&this.fill(),this.wasPlaying_=!t.paused(),this.options_.pauseOnOpen&&this.wasPlaying_&&t.pause(),this.on("keydown",this.handleKeyDown_),this.hadControls_=t.controls(),t.controls(!1),this.show(),this.conditionalFocus_(),this.el().setAttribute("aria-hidden","false"),this.trigger("modalopen"),this.hasBeenOpened_=!0}},n.opened=function(t){return"boolean"==typeof t&&this[t?"open":"close"](),this.opened_},n.close=function(){if(this.opened_){var t=this.player();this.trigger("beforemodalclose"),this.opened_=!1,this.wasPlaying_&&this.options_.pauseOnOpen&&t.play(),this.off("keydown",this.handleKeyDown_),this.hadControls_&&t.controls(!0),this.hide(),this.el().setAttribute("aria-hidden","true"),this.trigger("modalclose"),this.conditionalBlur_(),this.options_.temporary&&this.dispose()}},n.closeable=function(t){if("boolean"==typeof t){var e=this.closeable_=!!t,n=this.getChild("closeButton");if(e&&!n){var r=this.contentEl_;this.contentEl_=this.el_,n=this.addChild("closeButton",{controlText:"Close Modal Dialog"}),this.contentEl_=r,this.on(n,"close",this.close_)}!e&&n&&(this.off(n,"close",this.close_),this.removeChild(n),n.dispose())}return this.closeable_},n.fill=function(){this.fillWith(this.content())},n.fillWith=function(t){var e=this.contentEl(),n=e.parentNode,r=e.nextSibling;this.trigger("beforemodalfill"),this.hasBeenFilled_=!0,n.removeChild(e),this.empty(),_t(e,t),this.trigger("modalfill"),r?n.insertBefore(e,r):n.appendChild(e);var o=this.getChild("closeButton");o&&n.appendChild(o.el_)},n.empty=function(){this.trigger("beforemodalempty"),yt(this.contentEl()),this.trigger("modalempty")},n.content=function(t){return void 0!==t&&(this.content_=t),this.content_},n.conditionalFocus_=function(){var t=document.activeElement,e=this.player_.el_;this.previouslyActiveEl_=null,(e.contains(t)||e===t)&&(this.previouslyActiveEl_=t,this.focus())},n.conditionalBlur_=function(){this.previouslyActiveEl_&&(this.previouslyActiveEl_.focus(),this.previouslyActiveEl_=null)},n.handleKeyDown=function(t){if(t.stopPropagation(),xe.isEventKey(t,"Escape")&&this.closeable())return t.preventDefault(),void this.close();if(xe.isEventKey(t,"Tab")){for(var e,n=this.focusableEls_(),r=this.el_.querySelector(":focus"),o=0;o<n.length;o++)if(r===n[o]){e=o;break}document.activeElement===this.el_&&(e=0),t.shiftKey&&0===e?(n[n.length-1].focus(),t.preventDefault()):t.shiftKey||e!==n.length-1||(n[0].focus(),t.preventDefault())}},n.focusableEls_=function(){var t=this.el_.querySelectorAll("*");return Array.prototype.filter.call(t,(function(t){return(t instanceof window.HTMLAnchorElement||t instanceof window.HTMLAreaElement)&&t.hasAttribute("href")||(t instanceof window.HTMLInputElement||t instanceof window.HTMLSelectElement||t instanceof window.HTMLTextAreaElement||t instanceof window.HTMLButtonElement)&&!t.hasAttribute("disabled")||t instanceof window.HTMLIFrameElement||t instanceof window.HTMLObjectElement||t instanceof window.HTMLEmbedElement||t.hasAttribute("tabindex")&&-1!==t.getAttribute("tabindex")||t.hasAttribute("contenteditable")}))},e}(ye);Re.prototype.options_={pauseOnOpen:!0,temporary:!0},ye.registerComponent("ModalDialog",Re);var Le=function(t){function e(e){var n;void 0===e&&(e=[]),(n=t.call(this)||this).tracks_=[],Object.defineProperty(ge(n),"length",{get:function(){return this.tracks_.length}});for(var r=0;r<e.length;r++)n.addTrack(e[r]);return n}me(e,t);var n=e.prototype;return n.addTrack=function(t){var e=this,n=this.tracks_.length;""+n in this||Object.defineProperty(this,n,{get:function(){return this.tracks_[n]}}),-1===this.tracks_.indexOf(t)&&(this.tracks_.push(t),this.trigger({track:t,type:"addtrack",target:this})),t.labelchange_=function(){e.trigger({track:t,type:"labelchange",target:e})},Qt(t)&&t.addEventListener("labelchange",t.labelchange_)},n.removeTrack=function(t){for(var e,n=0,r=this.length;n<r;n++)if(this[n]===t){(e=this[n]).off&&e.off(),this.tracks_.splice(n,1);break}e&&this.trigger({track:e,type:"removetrack",target:this})},n.getTrackById=function(t){for(var e=null,n=0,r=this.length;n<r;n++){var o=this[n];if(o.id===t){e=o;break}}return e},e}($t);for(var Ie in Le.prototype.allowedEvents_={change:"change",addtrack:"addtrack",removetrack:"removetrack",labelchange:"labelchange"},Le.prototype.allowedEvents_)Le.prototype["on"+Ie]=null;var Ne=function(t,e){for(var n=0;n<t.length;n++)Object.keys(t[n]).length&&e.id!==t[n].id&&(t[n].enabled=!1)},Me=function(t){function e(e){var n;void 0===e&&(e=[]);for(var r=e.length-1;r>=0;r--)if(e[r].enabled){Ne(e,e[r]);break}return(n=t.call(this,e)||this).changing_=!1,n}me(e,t);var n=e.prototype;return n.addTrack=function(e){var n=this;e.enabled&&Ne(this,e),t.prototype.addTrack.call(this,e),e.addEventListener&&(e.enabledChange_=function(){n.changing_||(n.changing_=!0,Ne(n,e),n.changing_=!1,n.trigger("change"))},e.addEventListener("enabledchange",e.enabledChange_))},n.removeTrack=function(e){t.prototype.removeTrack.call(this,e),e.removeEventListener&&e.enabledChange_&&(e.removeEventListener("enabledchange",e.enabledChange_),e.enabledChange_=null)},e}(Le),De=function(t,e){for(var n=0;n<t.length;n++)Object.keys(t[n]).length&&e.id!==t[n].id&&(t[n].selected=!1)},Fe=function(t){function e(e){var n;void 0===e&&(e=[]);for(var r=e.length-1;r>=0;r--)if(e[r].selected){De(e,e[r]);break}return(n=t.call(this,e)||this).changing_=!1,Object.defineProperty(ge(n),"selectedIndex",{get:function(){for(var t=0;t<this.length;t++)if(this[t].selected)return t;return-1},set:function(){}}),n}me(e,t);var n=e.prototype;return n.addTrack=function(e){var n=this;e.selected&&De(this,e),t.prototype.addTrack.call(this,e),e.addEventListener&&(e.selectedChange_=function(){n.changing_||(n.changing_=!0,De(n,e),n.changing_=!1,n.trigger("change"))},e.addEventListener("selectedchange",e.selectedChange_))},n.removeTrack=function(e){t.prototype.removeTrack.call(this,e),e.removeEventListener&&e.selectedChange_&&(e.removeEventListener("selectedchange",e.selectedChange_),e.selectedChange_=null)},e}(Le),Be=function(t){function e(){return t.apply(this,arguments)||this}me(e,t);var n=e.prototype;return n.addTrack=function(e){var n=this;t.prototype.addTrack.call(this,e),this.queueChange_||(this.queueChange_=function(){return n.queueTrigger("change")}),this.triggerSelectedlanguagechange||(this.triggerSelectedlanguagechange_=function(){return n.trigger("selectedlanguagechange")}),e.addEventListener("modechange",this.queueChange_),-1===["metadata","chapters"].indexOf(e.kind)&&e.addEventListener("modechange",this.triggerSelectedlanguagechange_)},n.removeTrack=function(e){t.prototype.removeTrack.call(this,e),e.removeEventListener&&(this.queueChange_&&e.removeEventListener("modechange",this.queueChange_),this.selectedlanguagechange_&&e.removeEventListener("modechange",this.triggerSelectedlanguagechange_))},e}(Le),Ve=function(){function t(t){void 0===t&&(t=[]),this.trackElements_=[],Object.defineProperty(this,"length",{get:function(){return this.trackElements_.length}});for(var e=0,n=t.length;e<n;e++)this.addTrackElement_(t[e])}var e=t.prototype;return e.addTrackElement_=function(t){var e=this.trackElements_.length;""+e in this||Object.defineProperty(this,e,{get:function(){return this.trackElements_[e]}}),-1===this.trackElements_.indexOf(t)&&this.trackElements_.push(t)},e.getTrackElementByTrack_=function(t){for(var e,n=0,r=this.trackElements_.length;n<r;n++)if(t===this.trackElements_[n].track){e=this.trackElements_[n];break}return e},e.removeTrackElement_=function(t){for(var e=0,n=this.trackElements_.length;e<n;e++)if(t===this.trackElements_[e]){this.trackElements_[e].track&&"function"==typeof this.trackElements_[e].track.off&&this.trackElements_[e].track.off(),"function"==typeof this.trackElements_[e].off&&this.trackElements_[e].off(),this.trackElements_.splice(e,1);break}},t}(),Ue=function(){function t(e){t.prototype.setCues_.call(this,e),Object.defineProperty(this,"length",{get:function(){return this.length_}})}var e=t.prototype;return e.setCues_=function(t){var e=this.length||0,n=0,r=t.length;this.cues_=t,this.length_=t.length;var o=function(t){""+t in this||Object.defineProperty(this,""+t,{get:function(){return this.cues_[t]}})};if(e<r)for(n=e;n<r;n++)o.call(this,n)},e.getCueById=function(t){for(var e=null,n=0,r=this.length;n<r;n++){var o=this[n];if(o.id===t){e=o;break}}return e},t}(),He={alternative:"alternative",captions:"captions",main:"main",sign:"sign",subtitles:"subtitles",commentary:"commentary"},Ye={alternative:"alternative",descriptions:"descriptions",main:"main","main-desc":"main-desc",translation:"translation",commentary:"commentary"},ze={subtitles:"subtitles",captions:"captions",descriptions:"descriptions",chapters:"chapters",metadata:"metadata"},We={disabled:"disabled",hidden:"hidden",showing:"showing"},Ge=function(t){function e(e){var n;void 0===e&&(e={}),n=t.call(this)||this;var r={id:e.id||"vjs_track_"+Lt(),kind:e.kind||"",language:e.language||""},o=e.label||"",i=function(t){Object.defineProperty(ge(n),t,{get:function(){return r[t]},set:function(){}})};for(var a in r)i(a);return Object.defineProperty(ge(n),"label",{get:function(){return o},set:function(t){t!==o&&(o=t,this.trigger("labelchange"))}}),n}return me(e,t),e}($t),Ke=function(t){var e=["protocol","hostname","port","pathname","search","hash","host"],n=document.createElement("a");n.href=t;for(var r={},o=0;o<e.length;o++)r[e[o]]=n[e[o]];return"http:"===r.protocol&&(r.host=r.host.replace(/:80$/,"")),"https:"===r.protocol&&(r.host=r.host.replace(/:443$/,"")),r.protocol||(r.protocol=window.location.protocol),r.host||(r.host=window.location.host),r},Xe=function(t){if(!t.match(/^https?:\/\//)){var e=document.createElement("a");e.href=t,t=e.href}return t},qe=function(t){if("string"==typeof t){var e=/^(\/?)([\s\S]*?)((?:\.{1,2}|[^\/]+?)(\.([^\.\/\?]+)))(?:[\/]*|[\?].*)$/.exec(t);if(e)return e.pop().toLowerCase()}return""},$e=function(t,e){void 0===e&&(e=window.location);var n=Ke(t);return(":"===n.protocol?e.protocol:n.protocol)+n.host!==e.protocol+e.host},Je=Object.freeze({__proto__:null,parseUrl:Ke,getAbsoluteURL:Xe,getFileExtension:qe,isCrossOrigin:$e}),Qe="undefined"!=typeof window?window:void 0!==d?d:"undefined"!=typeof self?self:{},Ze=function(t){if(!t)return!1;var e=tn.call(t);return"[object Function]"===e||"function"==typeof t&&"[object RegExp]"!==e||"undefined"!=typeof window&&(t===window.setTimeout||t===window.alert||t===window.confirm||t===window.prompt)},tn=Object.prototype.toString,en=function(t,e){return void 0===e&&(e=!1),function(n,r,o){if(n)t(n);else if(r.statusCode>=400&&r.statusCode<=599){var i=o;if(e)if(Qe.TextDecoder){var a=(void 0===(s=r.headers&&r.headers["content-type"])&&(s=""),s.toLowerCase().split(";").reduce((function(t,e){var n=e.split("="),r=n[0],o=n[1];return"charset"===r.trim()?o.trim():t}),"utf-8"));try{i=new TextDecoder(a).decode(o)}catch(t){}}else i=String.fromCharCode.apply(null,new Uint8Array(o));t({cause:i})}else t(null,o);var s}};an.httpHandler=en;var nn=an,rn=an;function on(t,e,n){var r=t;return Ze(e)?(n=e,"string"==typeof t&&(r={uri:t})):r=y({},e,{uri:t}),r.callback=n,r}function an(t,e,n){return sn(e=on(t,e,n))}function sn(t){if(void 0===t.callback)throw new Error("callback argument missing");var e=!1,n=function(n,r,o){e||(e=!0,t.callback(n,r,o))};function r(){var t=void 0;if(t=u.response?u.response:u.responseText||function(t){try{if("document"===t.responseType)return t.responseXML;var e=t.responseXML&&"parsererror"===t.responseXML.documentElement.nodeName;if(""===t.responseType&&!e)return t.responseXML}catch(t){}return null}(u),v)try{t=JSON.parse(t)}catch(t){}return t}function o(t){return clearTimeout(c),t instanceof Error||(t=new Error(""+(t||"Unknown XMLHttpRequest Error"))),t.statusCode=0,n(t,y)}function i(){if(!s){var e;clearTimeout(c),e=t.useXDR&&void 0===u.status?200:1223===u.status?204:u.status;var o=y,i=null;return 0!==e?(o={body:r(),statusCode:e,method:f,headers:{},url:l,rawRequest:u},u.getAllResponseHeaders&&(o.headers=function(t){var e={};return t?(t.trim().split("\n").forEach((function(t){var n=t.indexOf(":"),r=t.slice(0,n).trim().toLowerCase(),o=t.slice(n+1).trim();void 0===e[r]?e[r]=o:Array.isArray(e[r])?e[r].push(o):e[r]=[e[r],o]})),e):e}(u.getAllResponseHeaders()))):i=new Error("Internal XMLHttpRequest Error"),n(i,o,o.body)}}var a,s,u=t.xhr||null;u||(u=t.cors||t.useXDR?new an.XDomainRequest:new an.XMLHttpRequest);var c,l=u.url=t.uri||t.url,f=u.method=t.method||"GET",h=t.body||t.data,p=u.headers=t.headers||{},d=!!t.sync,v=!1,y={body:void 0,headers:{},statusCode:0,method:f,url:l,rawRequest:u};if("json"in t&&!1!==t.json&&(v=!0,p.accept||p.Accept||(p.Accept="application/json"),"GET"!==f&&"HEAD"!==f&&(p["content-type"]||p["Content-Type"]||(p["Content-Type"]="application/json"),h=JSON.stringify(!0===t.json?h:t.json))),u.onreadystatechange=function(){4===u.readyState&&setTimeout(i,0)},u.onload=i,u.onerror=o,u.onprogress=function(){},u.onabort=function(){s=!0},u.ontimeout=o,u.open(f,l,!d,t.username,t.password),d||(u.withCredentials=!!t.withCredentials),!d&&t.timeout>0&&(c=setTimeout((function(){if(!s){s=!0,u.abort("timeout");var t=new Error("XMLHttpRequest timeout");t.code="ETIMEDOUT",o(t)}}),t.timeout)),u.setRequestHeader)for(a in p)p.hasOwnProperty(a)&&u.setRequestHeader(a,p[a]);else if(t.headers&&!function(t){for(var e in t)if(t.hasOwnProperty(e))return!1;return!0}(t.headers))throw new Error("Headers cannot be set on an XDomainRequest object");return"responseType"in t&&(u.responseType=t.responseType),"beforeSend"in t&&"function"==typeof t.beforeSend&&t.beforeSend(u),u.send(h||null),u}an.XMLHttpRequest=Qe.XMLHttpRequest||function(){},an.XDomainRequest="withCredentials"in new an.XMLHttpRequest?an.XMLHttpRequest:Qe.XDomainRequest,function(t,e){for(var n=0;n<t.length;n++)e(t[n])}(["get","put","post","patch","head","delete"],(function(t){an["delete"===t?"del":t]=function(e,n,r){return(n=on(e,n,r)).method=t.toUpperCase(),sn(n)}})),nn.default=rn;var un=function(t,e){var n=new window.WebVTT.Parser(window,window.vttjs,window.WebVTT.StringDecoder()),r=[];n.oncue=function(t){e.addCue(t)},n.onparsingerror=function(t){r.push(t)},n.onflush=function(){e.trigger({type:"loadeddata",target:e})},n.parse(t),r.length>0&&(window.console&&window.console.groupCollapsed&&window.console.groupCollapsed("Text Track parsing errors for "+e.src),r.forEach((function(t){return h.error(t)})),window.console&&window.console.groupEnd&&window.console.groupEnd()),n.flush()},cn=function(t,e){var n={uri:t},r=$e(t);r&&(n.cors=r);var o="use-credentials"===e.tech_.crossOrigin();o&&(n.withCredentials=o),nn(n,Xt(this,(function(t,n,r){if(t)return h.error(t,n);e.loaded_=!0,"function"!=typeof window.WebVTT?e.tech_&&e.tech_.any(["vttjsloaded","vttjserror"],(function(t){if("vttjserror"!==t.type)return un(r,e);h.error("vttjs failed to load, stopping trying to process "+e.src)})):un(r,e)})))},ln=function(t){function e(e){var n;if(void 0===e&&(e={}),!e.tech)throw new Error("A tech was not provided.");var r=fe(e,{kind:ze[e.kind]||"subtitles",language:e.language||e.srclang||""}),o=We[r.mode]||"disabled",i=r.default;"metadata"!==r.kind&&"chapters"!==r.kind||(o="hidden"),(n=t.call(this,r)||this).tech_=r.tech,n.cues_=[],n.activeCues_=[],n.preload_=!1!==n.tech_.preloadTextTracks;var a=new Ue(n.cues_),s=new Ue(n.activeCues_),u=!1,c=Xt(ge(n),(function(){this.tech_.isReady_&&!this.tech_.isDisposed()&&(this.activeCues=this.activeCues,u&&(this.trigger("cuechange"),u=!1))}));return n.tech_.one("dispose",(function(){n.tech_.off("timeupdate",c)})),"disabled"!==o&&n.tech_.on("timeupdate",c),Object.defineProperties(ge(n),{default:{get:function(){return i},set:function(){}},mode:{get:function(){return o},set:function(t){We[t]&&o!==t&&(o=t,this.preload_||"disabled"===o||0!==this.cues.length||cn(this.src,this),this.tech_.off("timeupdate",c),"disabled"!==o&&this.tech_.on("timeupdate",c),this.trigger("modechange"))}},cues:{get:function(){return this.loaded_?a:null},set:function(){}},activeCues:{get:function(){if(!this.loaded_)return null;if(0===this.cues.length)return s;for(var t=this.tech_.currentTime(),e=[],n=0,r=this.cues.length;n<r;n++){var o=this.cues[n];(o.startTime<=t&&o.endTime>=t||o.startTime===o.endTime&&o.startTime<=t&&o.startTime+.5>=t)&&e.push(o)}if(u=!1,e.length!==this.activeCues_.length)u=!0;else for(var i=0;i<e.length;i++)-1===this.activeCues_.indexOf(e[i])&&(u=!0);return this.activeCues_=e,s.setCues_(this.activeCues_),s},set:function(){}}}),r.src?(n.src=r.src,n.preload_||(n.loaded_=!0),(n.preload_||"subtitles"!==r.kind&&"captions"!==r.kind)&&cn(n.src,ge(n))):n.loaded_=!0,n}me(e,t);var n=e.prototype;return n.addCue=function(t){var e=t;if(window.vttjs&&!(t instanceof window.vttjs.VTTCue)){for(var n in e=new window.vttjs.VTTCue(t.startTime,t.endTime,t.text),t)n in e||(e[n]=t[n]);e.id=t.id,e.originalCue_=t}for(var r=this.tech_.textTracks(),o=0;o<r.length;o++)r[o]!==this&&r[o].removeCue(e);this.cues_.push(e),this.cues.setCues_(this.cues_)},n.removeCue=function(t){for(var e=this.cues_.length;e--;){var n=this.cues_[e];if(n===t||n.originalCue_&&n.originalCue_===t){this.cues_.splice(e,1),this.cues.setCues_(this.cues_);break}}},e}(Ge);ln.prototype.allowedEvents_={cuechange:"cuechange"};var fn=function(t){function e(e){var n;void 0===e&&(e={});var r=fe(e,{kind:Ye[e.kind]||""});n=t.call(this,r)||this;var o=!1;return Object.defineProperty(ge(n),"enabled",{get:function(){return o},set:function(t){"boolean"==typeof t&&t!==o&&(o=t,this.trigger("enabledchange"))}}),r.enabled&&(n.enabled=r.enabled),n.loaded_=!0,n}return me(e,t),e}(Ge),hn=function(t){function e(e){var n;void 0===e&&(e={});var r=fe(e,{kind:He[e.kind]||""});n=t.call(this,r)||this;var o=!1;return Object.defineProperty(ge(n),"selected",{get:function(){return o},set:function(t){"boolean"==typeof t&&t!==o&&(o=t,this.trigger("selectedchange"))}}),r.selected&&(n.selected=r.selected),n}return me(e,t),e}(Ge),pn=function(t){function e(e){var n,r;void 0===e&&(e={}),n=t.call(this)||this;var o=new ln(e);return n.kind=o.kind,n.src=o.src,n.srclang=o.language,n.label=o.label,n.default=o.default,Object.defineProperties(ge(n),{readyState:{get:function(){return r}},track:{get:function(){return o}}}),r=0,o.addEventListener("loadeddata",(function(){r=2,n.trigger({type:"load",target:ge(n)})})),n}return me(e,t),e}($t);pn.prototype.allowedEvents_={load:"load"},pn.NONE=0,pn.LOADING=1,pn.LOADED=2,pn.ERROR=3;var dn={audio:{ListClass:Me,TrackClass:fn,capitalName:"Audio"},video:{ListClass:Fe,TrackClass:hn,capitalName:"Video"},text:{ListClass:Be,TrackClass:ln,capitalName:"Text"}};Object.keys(dn).forEach((function(t){dn[t].getterName=t+"Tracks",dn[t].privateName=t+"Tracks_"}));var vn={remoteText:{ListClass:Be,TrackClass:ln,capitalName:"RemoteText",getterName:"remoteTextTracks",privateName:"remoteTextTracks_"},remoteTextEl:{ListClass:Ve,TrackClass:pn,capitalName:"RemoteTextTrackEls",getterName:"remoteTextTrackEls",privateName:"remoteTextTrackEls_"}},yn=y({},dn,vn);vn.names=Object.keys(vn),dn.names=Object.keys(dn),yn.names=[].concat(vn.names).concat(dn.names);var gn,mn=void 0!==d?d:"undefined"!=typeof window?window:{};"undefined"!=typeof document?gn=document:(gn=mn["__GLOBAL_DOCUMENT_CACHE@4"])||(gn=mn["__GLOBAL_DOCUMENT_CACHE@4"]={});var _n=gn,bn=Object.create||function(){function t(){}return function(e){if(1!==arguments.length)throw new Error("Object.create shim only accepts one parameter.");return t.prototype=e,new t}}();function wn(t,e){this.name="ParsingError",this.code=t.code,this.message=e||t.message}function En(t){function e(t,e,n,r){return 3600*(0|t)+60*(0|e)+(0|n)+(0|r)/1e3}var n=t.match(/^(\d+):(\d{1,2})(:\d{1,2})?\.(\d{3})/);return n?n[3]?e(n[1],n[2],n[3].replace(":",""),n[4]):n[1]>59?e(n[1],n[2],0,n[4]):e(0,n[1],n[2],n[4]):null}function Tn(){this.values=bn(null)}function Sn(t,e,n,r){var o=r?t.split(r):[t];for(var i in o)if("string"==typeof o[i]){var a=o[i].split(n);2===a.length&&e(a[0],a[1])}}function On(t,e,n){var r=t;function o(){var e=En(t);if(null===e)throw new wn(wn.Errors.BadTimeStamp,"Malformed timestamp: "+r);return t=t.replace(/^[^\sa-zA-Z-]+/,""),e}function i(){t=t.replace(/^\s+/,"")}if(i(),e.startTime=o(),i(),"--\x3e"!==t.substr(0,3))throw new wn(wn.Errors.BadTimeStamp,"Malformed time stamp (time stamps must be separated by '--\x3e'): "+r);t=t.substr(3),i(),e.endTime=o(),i(),function(t,e){var r=new Tn;Sn(t,(function(t,e){switch(t){case"region":for(var o=n.length-1;o>=0;o--)if(n[o].id===e){r.set(t,n[o].region);break}break;case"vertical":r.alt(t,e,["rl","lr"]);break;case"line":var i=e.split(","),a=i[0];r.integer(t,a),r.percent(t,a)&&r.set("snapToLines",!1),r.alt(t,a,["auto"]),2===i.length&&r.alt("lineAlign",i[1],["start","center","end"]);break;case"position":i=e.split(","),r.percent(t,i[0]),2===i.length&&r.alt("positionAlign",i[1],["start","center","end"]);break;case"size":r.percent(t,e);break;case"align":r.alt(t,e,["start","center","end","left","right"])}}),/:/,/\s/),e.region=r.get("region",null),e.vertical=r.get("vertical","");try{e.line=r.get("line","auto")}catch(t){}e.lineAlign=r.get("lineAlign","start"),e.snapToLines=r.get("snapToLines",!0),e.size=r.get("size",100);try{e.align=r.get("align","center")}catch(t){e.align=r.get("align","middle")}try{e.position=r.get("position","auto")}catch(t){e.position=r.get("position",{start:0,left:0,center:50,middle:50,end:100,right:100},e.align)}e.positionAlign=r.get("positionAlign",{start:"start",left:"start",center:"center",middle:"center",end:"end",right:"end"},e.align)}(t,e)}wn.prototype=bn(Error.prototype),wn.prototype.constructor=wn,wn.Errors={BadSignature:{code:0,message:"Malformed WebVTT signature."},BadTimeStamp:{code:1,message:"Malformed time stamp."}},Tn.prototype={set:function(t,e){this.get(t)||""===e||(this.values[t]=e)},get:function(t,e,n){return n?this.has(t)?this.values[t]:e[n]:this.has(t)?this.values[t]:e},has:function(t){return t in this.values},alt:function(t,e,n){for(var r=0;r<n.length;++r)if(e===n[r]){this.set(t,e);break}},integer:function(t,e){/^-?\d+$/.test(e)&&this.set(t,parseInt(e,10))},percent:function(t,e){return!!(e.match(/^([\d]{1,3})(\.[\d]*)?%$/)&&(e=parseFloat(e))>=0&&e<=100)&&(this.set(t,e),!0)}};var Cn=_n.createElement&&_n.createElement("textarea"),Pn={c:"span",i:"i",b:"b",u:"u",ruby:"ruby",rt:"rt",v:"span",lang:"span"},kn={white:"rgba(255,255,255,1)",lime:"rgba(0,255,0,1)",cyan:"rgba(0,255,255,1)",red:"rgba(255,0,0,1)",yellow:"rgba(255,255,0,1)",magenta:"rgba(255,0,255,1)",blue:"rgba(0,0,255,1)",black:"rgba(0,0,0,1)"},jn={v:"title",lang:"lang"},An={rt:"ruby"};function xn(t,e){function n(){if(!e)return null;var t,n=e.match(/^([^<]*)(<[^>]*>?)?/);return t=n[1]?n[1]:n[2],e=e.substr(t.length),t}function r(t,e){return!An[e.localName]||An[e.localName]===t.localName}function o(e,n){var r=Pn[e];if(!r)return null;var o=t.document.createElement(r),i=jn[e];return i&&n&&(o[i]=n.trim()),o}for(var i,a,s=t.document.createElement("div"),u=s,c=[];null!==(i=n());)if("<"!==i[0])u.appendChild(t.document.createTextNode((a=i,Cn.innerHTML=a,a=Cn.textContent,Cn.textContent="",a)));else{if("/"===i[1]){c.length&&c[c.length-1]===i.substr(2).replace(">","")&&(c.pop(),u=u.parentNode);continue}var l,f=En(i.substr(1,i.length-2));if(f){l=t.document.createProcessingInstruction("timestamp",f),u.appendChild(l);continue}var h=i.match(/^<([^.\s/0-9>]+)(\.[^\s\\>]+)?([^>\\]+)?(\\?)>?$/);if(!h)continue;if(!(l=o(h[1],h[3])))continue;if(!r(u,l))continue;if(h[2]){var p=h[2].split(".");p.forEach((function(t){var e=/^bg_/.test(t),n=e?t.slice(3):t;if(kn.hasOwnProperty(n)){var r=e?"background-color":"color",o=kn[n];l.style[r]=o}})),l.className=p.join(" ")}c.push(h[1]),u.appendChild(l),u=l}return s}var Rn=[[1470,1470],[1472,1472],[1475,1475],[1478,1478],[1488,1514],[1520,1524],[1544,1544],[1547,1547],[1549,1549],[1563,1563],[1566,1610],[1645,1647],[1649,1749],[1765,1766],[1774,1775],[1786,1805],[1807,1808],[1810,1839],[1869,1957],[1969,1969],[1984,2026],[2036,2037],[2042,2042],[2048,2069],[2074,2074],[2084,2084],[2088,2088],[2096,2110],[2112,2136],[2142,2142],[2208,2208],[2210,2220],[8207,8207],[64285,64285],[64287,64296],[64298,64310],[64312,64316],[64318,64318],[64320,64321],[64323,64324],[64326,64449],[64467,64829],[64848,64911],[64914,64967],[65008,65020],[65136,65140],[65142,65276],[67584,67589],[67592,67592],[67594,67637],[67639,67640],[67644,67644],[67647,67669],[67671,67679],[67840,67867],[67872,67897],[67903,67903],[67968,68023],[68030,68031],[68096,68096],[68112,68115],[68117,68119],[68121,68147],[68160,68167],[68176,68184],[68192,68223],[68352,68405],[68416,68437],[68440,68466],[68472,68479],[68608,68680],[126464,126467],[126469,126495],[126497,126498],[126500,126500],[126503,126503],[126505,126514],[126516,126519],[126521,126521],[126523,126523],[126530,126530],[126535,126535],[126537,126537],[126539,126539],[126541,126543],[126545,126546],[126548,126548],[126551,126551],[126553,126553],[126555,126555],[126557,126557],[126559,126559],[126561,126562],[126564,126564],[126567,126570],[126572,126578],[126580,126583],[126585,126588],[126590,126590],[126592,126601],[126603,126619],[126625,126627],[126629,126633],[126635,126651],[1114109,1114109]];function Ln(t){for(var e=0;e<Rn.length;e++){var n=Rn[e];if(t>=n[0]&&t<=n[1])return!0}return!1}function In(t){var e=[],n="";if(!t||!t.childNodes)return"ltr";function r(t,e){for(var n=e.childNodes.length-1;n>=0;n--)t.push(e.childNodes[n])}function o(t){if(!t||!t.length)return null;var e=t.pop(),n=e.textContent||e.innerText;if(n){var i=n.match(/^.*(\n|\r)/);return i?(t.length=0,i[0]):n}return"ruby"===e.tagName?o(t):e.childNodes?(r(t,e),o(t)):void 0}for(r(e,t);n=o(e);)for(var i=0;i<n.length;i++)if(Ln(n.charCodeAt(i)))return"rtl";return"ltr"}function Nn(){}function Mn(t,e,n){Nn.call(this),this.cue=e,this.cueDiv=xn(t,e.text);var r={color:"rgba(255, 255, 255, 1)",backgroundColor:"rgba(0, 0, 0, 0.8)",position:"relative",left:0,right:0,top:0,bottom:0,display:"inline",writingMode:""===e.vertical?"horizontal-tb":"lr"===e.vertical?"vertical-lr":"vertical-rl",unicodeBidi:"plaintext"};this.applyStyles(r,this.cueDiv),this.div=t.document.createElement("div"),r={direction:In(this.cueDiv),writingMode:""===e.vertical?"horizontal-tb":"lr"===e.vertical?"vertical-lr":"vertical-rl",unicodeBidi:"plaintext",textAlign:"middle"===e.align?"center":e.align,font:n.font,whiteSpace:"pre-line",position:"absolute"},this.applyStyles(r),this.div.appendChild(this.cueDiv);var o=0;switch(e.positionAlign){case"start":o=e.position;break;case"center":o=e.position-e.size/2;break;case"end":o=e.position-e.size}""===e.vertical?this.applyStyles({left:this.formatStyle(o,"%"),width:this.formatStyle(e.size,"%")}):this.applyStyles({top:this.formatStyle(o,"%"),height:this.formatStyle(e.size,"%")}),this.move=function(t){this.applyStyles({top:this.formatStyle(t.top,"px"),bottom:this.formatStyle(t.bottom,"px"),left:this.formatStyle(t.left,"px"),right:this.formatStyle(t.right,"px"),height:this.formatStyle(t.height,"px"),width:this.formatStyle(t.width,"px")})}}function Dn(t){var e,n,r,o;if(t.div){n=t.div.offsetHeight,r=t.div.offsetWidth,o=t.div.offsetTop;var i=(i=t.div.childNodes)&&(i=i[0])&&i.getClientRects&&i.getClientRects();t=t.div.getBoundingClientRect(),e=i?Math.max(i[0]&&i[0].height||0,t.height/i.length):0}this.left=t.left,this.right=t.right,this.top=t.top||o,this.height=t.height||n,this.bottom=t.bottom||o+(t.height||n),this.width=t.width||r,this.lineHeight=void 0!==e?e:t.lineHeight}function Fn(t,e,n,r){var o=new Dn(e),i=e.cue,a=function(t){if("number"==typeof t.line&&(t.snapToLines||t.line>=0&&t.line<=100))return t.line;if(!t.track||!t.track.textTrackList||!t.track.textTrackList.mediaElement)return-1;for(var e=t.track,n=e.textTrackList,r=0,o=0;o<n.length&&n[o]!==e;o++)"showing"===n[o].mode&&r++;return-1*++r}(i),s=[];if(i.snapToLines){var u;switch(i.vertical){case"":s=["+y","-y"],u="height";break;case"rl":s=["+x","-x"],u="width";break;case"lr":s=["-x","+x"],u="width"}var c=o.lineHeight,l=c*Math.round(a),f=n[u]+c,h=s[0];Math.abs(l)>f&&(l=l<0?-1:1,l*=Math.ceil(f/c)*c),a<0&&(l+=""===i.vertical?n.height:n.width,s=s.reverse()),o.move(h,l)}else{var p=o.lineHeight/n.height*100;switch(i.lineAlign){case"center":a-=p/2;break;case"end":a-=p}switch(i.vertical){case"":e.applyStyles({top:e.formatStyle(a,"%")});break;case"rl":e.applyStyles({left:e.formatStyle(a,"%")});break;case"lr":e.applyStyles({right:e.formatStyle(a,"%")})}s=["+y","-x","+x","-y"],o=new Dn(e)}var d=function(t,e){for(var o,i=new Dn(t),a=1,s=0;s<e.length;s++){for(;t.overlapsOppositeAxis(n,e[s])||t.within(n)&&t.overlapsAny(r);)t.move(e[s]);if(t.within(n))return t;var u=t.intersectPercentage(n);a>u&&(o=new Dn(t),a=u),t=new Dn(i)}return o||i}(o,s);e.move(d.toCSSCompatValues(n))}function Bn(){}Nn.prototype.applyStyles=function(t,e){for(var n in e=e||this.div,t)t.hasOwnProperty(n)&&(e.style[n]=t[n])},Nn.prototype.formatStyle=function(t,e){return 0===t?0:t+e},Mn.prototype=bn(Nn.prototype),Mn.prototype.constructor=Mn,Dn.prototype.move=function(t,e){switch(e=void 0!==e?e:this.lineHeight,t){case"+x":this.left+=e,this.right+=e;break;case"-x":this.left-=e,this.right-=e;break;case"+y":this.top+=e,this.bottom+=e;break;case"-y":this.top-=e,this.bottom-=e}},Dn.prototype.overlaps=function(t){return this.left<t.right&&this.right>t.left&&this.top<t.bottom&&this.bottom>t.top},Dn.prototype.overlapsAny=function(t){for(var e=0;e<t.length;e++)if(this.overlaps(t[e]))return!0;return!1},Dn.prototype.within=function(t){return this.top>=t.top&&this.bottom<=t.bottom&&this.left>=t.left&&this.right<=t.right},Dn.prototype.overlapsOppositeAxis=function(t,e){switch(e){case"+x":return this.left<t.left;case"-x":return this.right>t.right;case"+y":return this.top<t.top;case"-y":return this.bottom>t.bottom}},Dn.prototype.intersectPercentage=function(t){return Math.max(0,Math.min(this.right,t.right)-Math.max(this.left,t.left))*Math.max(0,Math.min(this.bottom,t.bottom)-Math.max(this.top,t.top))/(this.height*this.width)},Dn.prototype.toCSSCompatValues=function(t){return{top:this.top-t.top,bottom:t.bottom-this.bottom,left:this.left-t.left,right:t.right-this.right,height:this.height,width:this.width}},Dn.getSimpleBoxPosition=function(t){var e=t.div?t.div.offsetHeight:t.tagName?t.offsetHeight:0,n=t.div?t.div.offsetWidth:t.tagName?t.offsetWidth:0,r=t.div?t.div.offsetTop:t.tagName?t.offsetTop:0;return{left:(t=t.div?t.div.getBoundingClientRect():t.tagName?t.getBoundingClientRect():t).left,right:t.right,top:t.top||r,height:t.height||e,bottom:t.bottom||r+(t.height||e),width:t.width||n}},Bn.StringDecoder=function(){return{decode:function(t){if(!t)return"";if("string"!=typeof t)throw new Error("Error - expected string data.");return decodeURIComponent(encodeURIComponent(t))}}},Bn.convertCueToDOMTree=function(t,e){return t&&e?xn(t,e):null},Bn.processCues=function(t,e,n){if(!t||!e||!n)return null;for(;n.firstChild;)n.removeChild(n.firstChild);var r=t.document.createElement("div");if(r.style.position="absolute",r.style.left="0",r.style.right="0",r.style.top="0",r.style.bottom="0",r.style.margin="1.5%",n.appendChild(r),function(t){for(var e=0;e<t.length;e++)if(t[e].hasBeenReset||!t[e].displayState)return!0;return!1}(e)){var o=[],i=Dn.getSimpleBoxPosition(r),a={font:Math.round(.05*i.height*100)/100+"px sans-serif"};!function(){for(var n,s,u=0;u<e.length;u++)s=e[u],n=new Mn(t,s,a),r.appendChild(n.div),Fn(0,n,i,o),s.displayState=n.div,o.push(Dn.getSimpleBoxPosition(n))}()}else for(var s=0;s<e.length;s++)r.appendChild(e[s].displayState)},Bn.Parser=function(t,e,n){n||(n=e,e={}),e||(e={}),this.window=t,this.vttjs=e,this.state="INITIAL",this.buffer="",this.decoder=n||new TextDecoder("utf8"),this.regionList=[]},Bn.Parser.prototype={reportOrThrowError:function(t){if(!(t instanceof wn))throw t;this.onparsingerror&&this.onparsingerror(t)},parse:function(t){var e=this;function n(){for(var t=e.buffer,n=0;n<t.length&&"\r"!==t[n]&&"\n"!==t[n];)++n;var r=t.substr(0,n);return"\r"===t[n]&&++n,"\n"===t[n]&&++n,e.buffer=t.substr(n),r}function r(t){t.match(/X-TIMESTAMP-MAP/)?Sn(t,(function(t,n){"X-TIMESTAMP-MAP"===t&&function(t){var n=new Tn;Sn(t,(function(t,e){switch(t){case"MPEGT":n.integer(t+"S",e);break;case"LOCA":n.set(t+"L",En(e))}}),/[^\d]:/,/,/),e.ontimestampmap&&e.ontimestampmap({MPEGTS:n.get("MPEGTS"),LOCAL:n.get("LOCAL")})}(n)}),/=/):Sn(t,(function(t,n){"Region"===t&&function(t){var n=new Tn;if(Sn(t,(function(t,e){switch(t){case"id":n.set(t,e);break;case"width":n.percent(t,e);break;case"lines":n.integer(t,e);break;case"regionanchor":case"viewportanchor":var r=e.split(",");if(2!==r.length)break;var o=new Tn;if(o.percent("x",r[0]),o.percent("y",r[1]),!o.has("x")||!o.has("y"))break;n.set(t+"X",o.get("x")),n.set(t+"Y",o.get("y"));break;case"scroll":n.alt(t,e,["up"])}}),/=/,/\s/),n.has("id")){var r=new(e.vttjs.VTTRegion||e.window.VTTRegion);r.width=n.get("width",100),r.lines=n.get("lines",3),r.regionAnchorX=n.get("regionanchorX",0),r.regionAnchorY=n.get("regionanchorY",100),r.viewportAnchorX=n.get("viewportanchorX",0),r.viewportAnchorY=n.get("viewportanchorY",100),r.scroll=n.get("scroll",""),e.onregion&&e.onregion(r),e.regionList.push({id:n.get("id"),region:r})}}(n)}),/:/)}t&&(e.buffer+=e.decoder.decode(t,{stream:!0}));try{var o;if("INITIAL"===e.state){if(!/\r\n|\n/.test(e.buffer))return this;var i=(o=n()).match(/^WEBVTT([ \t].*)?$/);if(!i||!i[0])throw new wn(wn.Errors.BadSignature);e.state="HEADER"}for(var a=!1;e.buffer;){if(!/\r\n|\n/.test(e.buffer))return this;switch(a?a=!1:o=n(),e.state){case"HEADER":/:/.test(o)?r(o):o||(e.state="ID");continue;case"NOTE":o||(e.state="ID");continue;case"ID":if(/^NOTE($|[ \t])/.test(o)){e.state="NOTE";break}if(!o)continue;e.cue=new(e.vttjs.VTTCue||e.window.VTTCue)(0,0,"");try{e.cue.align="center"}catch(t){e.cue.align="middle"}if(e.state="CUE",-1===o.indexOf("--\x3e")){e.cue.id=o;continue}case"CUE":try{On(o,e.cue,e.regionList)}catch(t){e.reportOrThrowError(t),e.cue=null,e.state="BADCUE";continue}e.state="CUETEXT";continue;case"CUETEXT":var s=-1!==o.indexOf("--\x3e");if(!o||s&&(a=!0)){e.oncue&&e.oncue(e.cue),e.cue=null,e.state="ID";continue}e.cue.text&&(e.cue.text+="\n"),e.cue.text+=o.replace(/\u2028/g,"\n").replace(/u2029/g,"\n");continue;case"BADCUE":o||(e.state="ID");continue}}}catch(t){e.reportOrThrowError(t),"CUETEXT"===e.state&&e.cue&&e.oncue&&e.oncue(e.cue),e.cue=null,e.state="INITIAL"===e.state?"BADWEBVTT":"BADCUE"}return this},flush:function(){var t=this;try{if(t.buffer+=t.decoder.decode(),(t.cue||"HEADER"===t.state)&&(t.buffer+="\n\n",t.parse()),"INITIAL"===t.state)throw new wn(wn.Errors.BadSignature)}catch(e){t.reportOrThrowError(e)}return t.onflush&&t.onflush(),this}};var Vn=Bn,Un={"":1,lr:1,rl:1},Hn={start:1,center:1,end:1,left:1,right:1,auto:1,"line-left":1,"line-right":1};function Yn(t){return"string"==typeof t&&!!Hn[t.toLowerCase()]&&t.toLowerCase()}function zn(t,e,n){this.hasBeenReset=!1;var r="",o=!1,i=t,a=e,s=n,u=null,c="",l=!0,f="auto",h="start",p="auto",d="auto",v=100,y="center";Object.defineProperties(this,{id:{enumerable:!0,get:function(){return r},set:function(t){r=""+t}},pauseOnExit:{enumerable:!0,get:function(){return o},set:function(t){o=!!t}},startTime:{enumerable:!0,get:function(){return i},set:function(t){if("number"!=typeof t)throw new TypeError("Start time must be set to a number.");i=t,this.hasBeenReset=!0}},endTime:{enumerable:!0,get:function(){return a},set:function(t){if("number"!=typeof t)throw new TypeError("End time must be set to a number.");a=t,this.hasBeenReset=!0}},text:{enumerable:!0,get:function(){return s},set:function(t){s=""+t,this.hasBeenReset=!0}},region:{enumerable:!0,get:function(){return u},set:function(t){u=t,this.hasBeenReset=!0}},vertical:{enumerable:!0,get:function(){return c},set:function(t){var e=function(t){return"string"==typeof t&&!!Un[t.toLowerCase()]&&t.toLowerCase()}(t);if(!1===e)throw new SyntaxError("Vertical: an invalid or illegal direction string was specified.");c=e,this.hasBeenReset=!0}},snapToLines:{enumerable:!0,get:function(){return l},set:function(t){l=!!t,this.hasBeenReset=!0}},line:{enumerable:!0,get:function(){return f},set:function(t){if("number"!=typeof t&&"auto"!==t)throw new SyntaxError("Line: an invalid number or illegal string was specified.");f=t,this.hasBeenReset=!0}},lineAlign:{enumerable:!0,get:function(){return h},set:function(t){var e=Yn(t);e&&(h=e,this.hasBeenReset=!0)}},position:{enumerable:!0,get:function(){return p},set:function(t){if(t<0||t>100)throw new Error("Position must be between 0 and 100.");p=t,this.hasBeenReset=!0}},positionAlign:{enumerable:!0,get:function(){return d},set:function(t){var e=Yn(t);e&&(d=e,this.hasBeenReset=!0)}},size:{enumerable:!0,get:function(){return v},set:function(t){if(t<0||t>100)throw new Error("Size must be between 0 and 100.");v=t,this.hasBeenReset=!0}},align:{enumerable:!0,get:function(){return y},set:function(t){var e=Yn(t);if(!e)throw new SyntaxError("align: an invalid or illegal alignment string was specified.");y=e,this.hasBeenReset=!0}}}),this.displayState=void 0}zn.prototype.getCueAsHTML=function(){return WebVTT.convertCueToDOMTree(window,this.text)};var Wn=zn,Gn={"":!0,up:!0};function Kn(t){return"number"==typeof t&&t>=0&&t<=100}var Xn=function(){var t=100,e=3,n=0,r=100,o=0,i=100,a="";Object.defineProperties(this,{width:{enumerable:!0,get:function(){return t},set:function(e){if(!Kn(e))throw new Error("Width must be between 0 and 100.");t=e}},lines:{enumerable:!0,get:function(){return e},set:function(t){if("number"!=typeof t)throw new TypeError("Lines must be set to a number.");e=t}},regionAnchorY:{enumerable:!0,get:function(){return r},set:function(t){if(!Kn(t))throw new Error("RegionAnchorX must be between 0 and 100.");r=t}},regionAnchorX:{enumerable:!0,get:function(){return n},set:function(t){if(!Kn(t))throw new Error("RegionAnchorY must be between 0 and 100.");n=t}},viewportAnchorY:{enumerable:!0,get:function(){return i},set:function(t){if(!Kn(t))throw new Error("ViewportAnchorY must be between 0 and 100.");i=t}},viewportAnchorX:{enumerable:!0,get:function(){return o},set:function(t){if(!Kn(t))throw new Error("ViewportAnchorX must be between 0 and 100.");o=t}},scroll:{enumerable:!0,get:function(){return a},set:function(t){var e=function(t){return"string"==typeof t&&!!Gn[t.toLowerCase()]&&t.toLowerCase()}(t);!1===e||(a=e)}}})},qn=v((function(t){var e=t.exports={WebVTT:Vn,VTTCue:Wn,VTTRegion:Xn};Qe.vttjs=e,Qe.WebVTT=e.WebVTT;var n=e.VTTCue,r=e.VTTRegion,o=Qe.VTTCue,i=Qe.VTTRegion;e.shim=function(){Qe.VTTCue=n,Qe.VTTRegion=r},e.restore=function(){Qe.VTTCue=o,Qe.VTTRegion=i},Qe.VTTCue||e.shim()}));qn.WebVTT,qn.VTTCue,qn.VTTRegion;var $n=function(t){function e(e,n){var r;return void 0===e&&(e={}),void 0===n&&(n=function(){}),e.reportTouchActivity=!1,(r=t.call(this,null,e,n)||this).onDurationChange_=function(t){return r.onDurationChange(t)},r.trackProgress_=function(t){return r.trackProgress(t)},r.trackCurrentTime_=function(t){return r.trackCurrentTime(t)},r.stopTrackingCurrentTime_=function(t){return r.stopTrackingCurrentTime(t)},r.disposeSourceHandler_=function(t){return r.disposeSourceHandler(t)},r.hasStarted_=!1,r.on("playing",(function(){this.hasStarted_=!0})),r.on("loadstart",(function(){this.hasStarted_=!1})),yn.names.forEach((function(t){var n=yn[t];e&&e[n.getterName]&&(r[n.privateName]=e[n.getterName])})),r.featuresProgressEvents||r.manualProgressOn(),r.featuresTimeupdateEvents||r.manualTimeUpdatesOn(),["Text","Audio","Video"].forEach((function(t){!1===e["native"+t+"Tracks"]&&(r["featuresNative"+t+"Tracks"]=!1)})),!1===e.nativeCaptions||!1===e.nativeTextTracks?r.featuresNativeTextTracks=!1:!0!==e.nativeCaptions&&!0!==e.nativeTextTracks||(r.featuresNativeTextTracks=!0),r.featuresNativeTextTracks||r.emulateTextTracks(),r.preloadTextTracks=!1!==e.preloadTextTracks,r.autoRemoteTextTracks_=new yn.text.ListClass,r.initTrackListeners(),e.nativeControlsForTouch||r.emitTapEvents(),r.constructor&&(r.name_=r.constructor.name||"Unknown Tech"),r}me(e,t);var n=e.prototype;return n.triggerSourceset=function(t){var e=this;this.isReady_||this.one("ready",(function(){return e.setTimeout((function(){return e.triggerSourceset(t)}),1)})),this.trigger({src:t,type:"sourceset"})},n.manualProgressOn=function(){this.on("durationchange",this.onDurationChange_),this.manualProgress=!0,this.one("ready",this.trackProgress_)},n.manualProgressOff=function(){this.manualProgress=!1,this.stopTrackingProgress(),this.off("durationchange",this.onDurationChange_)},n.trackProgress=function(t){this.stopTrackingProgress(),this.progressInterval=this.setInterval(Xt(this,(function(){var t=this.bufferedPercent();this.bufferedPercent_!==t&&this.trigger("progress"),this.bufferedPercent_=t,1===t&&this.stopTrackingProgress()})),500)},n.onDurationChange=function(t){this.duration_=this.duration()},n.buffered=function(){return we(0,0)},n.bufferedPercent=function(){return Ee(this.buffered(),this.duration_)},n.stopTrackingProgress=function(){this.clearInterval(this.progressInterval)},n.manualTimeUpdatesOn=function(){this.manualTimeUpdates=!0,this.on("play",this.trackCurrentTime_),this.on("pause",this.stopTrackingCurrentTime_)},n.manualTimeUpdatesOff=function(){this.manualTimeUpdates=!1,this.stopTrackingCurrentTime(),this.off("play",this.trackCurrentTime_),this.off("pause",this.stopTrackingCurrentTime_)},n.trackCurrentTime=function(){this.currentTimeInterval&&this.stopTrackingCurrentTime(),this.currentTimeInterval=this.setInterval((function(){this.trigger({type:"timeupdate",target:this,manuallyTriggered:!0})}),250)},n.stopTrackingCurrentTime=function(){this.clearInterval(this.currentTimeInterval),this.trigger({type:"timeupdate",target:this,manuallyTriggered:!0})},n.dispose=function(){this.clearTracks(dn.names),this.manualProgress&&this.manualProgressOff(),this.manualTimeUpdates&&this.manualTimeUpdatesOff(),t.prototype.dispose.call(this)},n.clearTracks=function(t){var e=this;(t=[].concat(t)).forEach((function(t){for(var n=e[t+"Tracks"]()||[],r=n.length;r--;){var o=n[r];"text"===t&&e.removeRemoteTextTrack(o),n.removeTrack(o)}}))},n.cleanupAutoTextTracks=function(){for(var t=this.autoRemoteTextTracks_||[],e=t.length;e--;){var n=t[e];this.removeRemoteTextTrack(n)}},n.reset=function(){},n.crossOrigin=function(){},n.setCrossOrigin=function(){},n.error=function(t){return void 0!==t&&(this.error_=new Te(t),this.trigger("error")),this.error_},n.played=function(){return this.hasStarted_?we(0,0):we()},n.play=function(){},n.setScrubbing=function(){},n.scrubbing=function(){},n.setCurrentTime=function(){this.manualTimeUpdates&&this.trigger({type:"timeupdate",target:this,manuallyTriggered:!0})},n.initTrackListeners=function(){var t=this;dn.names.forEach((function(e){var n=dn[e],r=function(){t.trigger(e+"trackchange")},o=t[n.getterName]();o.addEventListener("removetrack",r),o.addEventListener("addtrack",r),t.on("dispose",(function(){o.removeEventListener("removetrack",r),o.removeEventListener("addtrack",r)}))}))},n.addWebVttScript_=function(){var t=this;if(!window.WebVTT)if(document.body.contains(this.el())){if(!this.options_["vtt.js"]&&E(qn)&&Object.keys(qn).length>0)return void this.trigger("vttjsloaded");var e=document.createElement("script");e.src=this.options_["vtt.js"]||"https://vjs.zencdn.net/vttjs/0.14.1/vtt.min.js",e.onload=function(){t.trigger("vttjsloaded")},e.onerror=function(){t.trigger("vttjserror")},this.on("dispose",(function(){e.onload=null,e.onerror=null})),window.WebVTT=!0,this.el().parentNode.appendChild(e)}else this.ready(this.addWebVttScript_)},n.emulateTextTracks=function(){var t=this,e=this.textTracks(),n=this.remoteTextTracks(),r=function(t){return e.addTrack(t.track)},o=function(t){return e.removeTrack(t.track)};n.on("addtrack",r),n.on("removetrack",o),this.addWebVttScript_();var i=function(){return t.trigger("texttrackchange")},a=function(){i();for(var t=0;t<e.length;t++){var n=e[t];n.removeEventListener("cuechange",i),"showing"===n.mode&&n.addEventListener("cuechange",i)}};a(),e.addEventListener("change",a),e.addEventListener("addtrack",a),e.addEventListener("removetrack",a),this.on("dispose",(function(){n.off("addtrack",r),n.off("removetrack",o),e.removeEventListener("change",a),e.removeEventListener("addtrack",a),e.removeEventListener("removetrack",a);for(var t=0;t<e.length;t++)e[t].removeEventListener("cuechange",i)}))},n.addTextTrack=function(t,e,n){if(!t)throw new Error("TextTrack kind is required but was not provided");return function(t,e,n,r,o){void 0===o&&(o={});var i=t.textTracks();o.kind=e,n&&(o.label=n),r&&(o.language=r),o.tech=t;var a=new yn.text.TrackClass(o);return i.addTrack(a),a}(this,t,e,n)},n.createRemoteTextTrack=function(t){var e=fe(t,{tech:this});return new vn.remoteTextEl.TrackClass(e)},n.addRemoteTextTrack=function(t,e){var n=this;void 0===t&&(t={});var r=this.createRemoteTextTrack(t);return!0!==e&&!1!==e&&(h.warn('Calling addRemoteTextTrack without explicitly setting the "manualCleanup" parameter to `true` is deprecated and default to `false` in future version of video.js'),e=!0),this.remoteTextTrackEls().addTrackElement_(r),this.remoteTextTracks().addTrack(r.track),!0!==e&&this.ready((function(){return n.autoRemoteTextTracks_.addTrack(r.track)})),r},n.removeRemoteTextTrack=function(t){var e=this.remoteTextTrackEls().getTrackElementByTrack_(t);this.remoteTextTrackEls().removeTrackElement_(e),this.remoteTextTracks().removeTrack(t),this.autoRemoteTextTracks_.removeTrack(t)},n.getVideoPlaybackQuality=function(){return{}},n.requestPictureInPicture=function(){var t=this.options_.Promise||window.Promise;if(t)return t.reject()},n.disablePictureInPicture=function(){return!0},n.setDisablePictureInPicture=function(){},n.setPoster=function(){},n.playsinline=function(){},n.setPlaysinline=function(){},n.overrideNativeAudioTracks=function(){},n.overrideNativeVideoTracks=function(){},n.canPlayType=function(){return""},e.canPlayType=function(){return""},e.canPlaySource=function(t,n){return e.canPlayType(t.type)},e.isTech=function(t){return t.prototype instanceof e||t instanceof e||t===e},e.registerTech=function(t,n){if(e.techs_||(e.techs_={}),!e.isTech(n))throw new Error("Tech "+t+" must be a Tech");if(!e.canPlayType)throw new Error("Techs must have a static canPlayType method on them");if(!e.canPlaySource)throw new Error("Techs must have a static canPlaySource method on them");return t=le(t),e.techs_[t]=n,e.techs_[ce(t)]=n,"Tech"!==t&&e.defaultTechOrder_.push(t),n},e.getTech=function(t){if(t)return e.techs_&&e.techs_[t]?e.techs_[t]:(t=le(t),window&&window.videojs&&window.videojs[t]?(h.warn("The "+t+" tech was added to the videojs object when it should be registered using videojs.registerTech(name, tech)"),window.videojs[t]):void 0)},e}(ye);yn.names.forEach((function(t){var e=yn[t];$n.prototype[e.getterName]=function(){return this[e.privateName]=this[e.privateName]||new e.ListClass,this[e.privateName]}})),$n.prototype.featuresVolumeControl=!0,$n.prototype.featuresMuteControl=!0,$n.prototype.featuresFullscreenResize=!1,$n.prototype.featuresPlaybackRate=!1,$n.prototype.featuresProgressEvents=!1,$n.prototype.featuresSourceset=!1,$n.prototype.featuresTimeupdateEvents=!1,$n.prototype.featuresNativeTextTracks=!1,$n.withSourceHandlers=function(t){t.registerSourceHandler=function(e,n){var r=t.sourceHandlers;r||(r=t.sourceHandlers=[]),void 0===n&&(n=r.length),r.splice(n,0,e)},t.canPlayType=function(e){for(var n,r=t.sourceHandlers||[],o=0;o<r.length;o++)if(n=r[o].canPlayType(e))return n;return""},t.selectSourceHandler=function(e,n){for(var r=t.sourceHandlers||[],o=0;o<r.length;o++)if(r[o].canHandleSource(e,n))return r[o];return null},t.canPlaySource=function(e,n){var r=t.selectSourceHandler(e,n);return r?r.canHandleSource(e,n):""},["seekable","seeking","duration"].forEach((function(t){var e=this[t];"function"==typeof e&&(this[t]=function(){return this.sourceHandler_&&this.sourceHandler_[t]?this.sourceHandler_[t].apply(this.sourceHandler_,arguments):e.apply(this,arguments)})}),t.prototype),t.prototype.setSource=function(e){var n=t.selectSourceHandler(e,this.options_);n||(t.nativeSourceHandler?n=t.nativeSourceHandler:h.error("No source handler found for the current source.")),this.disposeSourceHandler(),this.off("dispose",this.disposeSourceHandler_),n!==t.nativeSourceHandler&&(this.currentSource_=e),this.sourceHandler_=n.handleSource(e,this,this.options_),this.one("dispose",this.disposeSourceHandler_)},t.prototype.disposeSourceHandler=function(){this.currentSource_&&(this.clearTracks(["audio","video"]),this.currentSource_=null),this.cleanupAutoTextTracks(),this.sourceHandler_&&(this.sourceHandler_.dispose&&this.sourceHandler_.dispose(),this.sourceHandler_=null)}},ye.registerComponent("Tech",$n),$n.registerTech("Tech",$n),$n.defaultTechOrder_=[];var Jn={},Qn={},Zn={};function tr(t,e,n){t.setTimeout((function(){return ar(e,Jn[e.type],n,t)}),1)}function er(t,e,n,r){void 0===r&&(r=null);var o="call"+le(n),i=t.reduce(ir(o),r),a=i===Zn,s=a?null:e[n](i);return function(t,e,n,r){for(var o=t.length-1;o>=0;o--){var i=t[o];i[e]&&i[e](r,n)}}(t,n,s,a),s}var nr={buffered:1,currentTime:1,duration:1,muted:1,played:1,paused:1,seekable:1,volume:1,ended:1},rr={setCurrentTime:1,setMuted:1,setVolume:1},or={play:1,pause:1};function ir(t){return function(e,n){return e===Zn?Zn:n[t]?n[t](e):e}}function ar(t,e,n,r,o,i){void 0===t&&(t={}),void 0===e&&(e=[]),void 0===o&&(o=[]),void 0===i&&(i=!1);var a=e,s=a[0],u=a.slice(1);if("string"==typeof s)ar(t,Jn[s],n,r,o,i);else if(s){var c=function(t,e){var n=Qn[t.id()],r=null;if(null==n)return r=e(t),Qn[t.id()]=[[e,r]],r;for(var o=0;o<n.length;o++){var i=n[o],a=i[0],s=i[1];a===e&&(r=s)}return null===r&&(r=e(t),n.push([e,r])),r}(r,s);if(!c.setSource)return o.push(c),ar(t,u,n,r,o,i);c.setSource(b({},t),(function(e,a){if(e)return ar(t,u,n,r,o,i);o.push(c),ar(a,t.type===a.type?u:Jn[a.type],n,r,o,i)}))}else u.length?ar(t,u,n,r,o,i):i?n(t,o):ar(t,Jn["*"],n,r,o,!0)}var sr={opus:"video/ogg",ogv:"video/ogg",mp4:"video/mp4",mov:"video/mp4",m4v:"video/mp4",mkv:"video/x-matroska",m4a:"audio/mp4",mp3:"audio/mpeg",aac:"audio/aac",caf:"audio/x-caf",flac:"audio/flac",oga:"audio/ogg",wav:"audio/wav",m3u8:"application/x-mpegURL",jpg:"image/jpeg",jpeg:"image/jpeg",gif:"image/gif",png:"image/png",svg:"image/svg+xml",webp:"image/webp"},ur=function(t){void 0===t&&(t="");var e=qe(t);return sr[e.toLowerCase()]||""},cr=function t(e){if(Array.isArray(e)){var n=[];e.forEach((function(e){e=t(e),Array.isArray(e)?n=n.concat(e):w(e)&&n.push(e)})),e=n}else e="string"==typeof e&&e.trim()?[lr({src:e})]:w(e)&&"string"==typeof e.src&&e.src&&e.src.trim()?[lr(e)]:[];return e};function lr(t){if(!t.type){var e=ur(t.src);e&&(t.type=e)}return t}var fr=function(t){function e(e,n,r){var o,i=fe({createEl:!1},n);if(o=t.call(this,e,i,r)||this,n.playerOptions.sources&&0!==n.playerOptions.sources.length)e.src(n.playerOptions.sources);else for(var a=0,s=n.playerOptions.techOrder;a<s.length;a++){var u=le(s[a]),c=$n.getTech(u);if(u||(c=ye.getComponent(u)),c&&c.isSupported()){e.loadTech_(u);break}}return o}return me(e,t),e}(ye);ye.registerComponent("MediaLoader",fr);var hr=function(t){function e(e,n){var r;return(r=t.call(this,e,n)||this).handleMouseOver_=function(t){return r.handleMouseOver(t)},r.handleMouseOut_=function(t){return r.handleMouseOut(t)},r.handleClick_=function(t){return r.handleClick(t)},r.handleKeyDown_=function(t){return r.handleKeyDown(t)},r.emitTapEvents(),r.enable(),r}me(e,t);var n=e.prototype;return n.createEl=function(t,e,n){void 0===t&&(t="div"),void 0===e&&(e={}),void 0===n&&(n={}),e=b({className:this.buildCSSClass(),tabIndex:0},e),"button"===t&&h.error("Creating a ClickableComponent with an HTML element of "+t+" is not supported; use a Button instead."),n=b({role:"button"},n),this.tabIndex_=e.tabIndex;var r=Q(t,e,n);return r.appendChild(Q("span",{className:"vjs-icon-placeholder"},{"aria-hidden":!0})),this.createControlTextEl(r),r},n.dispose=function(){this.controlTextEl_=null,t.prototype.dispose.call(this)},n.createControlTextEl=function(t){return this.controlTextEl_=Q("span",{className:"vjs-control-text"},{"aria-live":"polite"}),t&&t.appendChild(this.controlTextEl_),this.controlText(this.controlText_,t),this.controlTextEl_},n.controlText=function(t,e){if(void 0===e&&(e=this.el()),void 0===t)return this.controlText_||"Need Text";var n=this.localize(t);this.controlText_=t,Z(this.controlTextEl_,n),this.nonIconControl||this.player_.options_.noUITitleAttributes||e.setAttribute("title",n)},n.buildCSSClass=function(){return"vjs-control vjs-button "+t.prototype.buildCSSClass.call(this)},n.enable=function(){this.enabled_||(this.enabled_=!0,this.removeClass("vjs-disabled"),this.el_.setAttribute("aria-disabled","false"),void 0!==this.tabIndex_&&this.el_.setAttribute("tabIndex",this.tabIndex_),this.on(["tap","click"],this.handleClick_),this.on("keydown",this.handleKeyDown_))},n.disable=function(){this.enabled_=!1,this.addClass("vjs-disabled"),this.el_.setAttribute("aria-disabled","true"),void 0!==this.tabIndex_&&this.el_.removeAttribute("tabIndex"),this.off("mouseover",this.handleMouseOver_),this.off("mouseout",this.handleMouseOut_),this.off(["tap","click"],this.handleClick_),this.off("keydown",this.handleKeyDown_)},n.handleLanguagechange=function(){this.controlText(this.controlText_)},n.handleClick=function(t){this.options_.clickHandler&&this.options_.clickHandler.call(this,arguments)},n.handleKeyDown=function(e){xe.isEventKey(e,"Space")||xe.isEventKey(e,"Enter")?(e.preventDefault(),e.stopPropagation(),this.trigger("click")):t.prototype.handleKeyDown.call(this,e)},e}(ye);ye.registerComponent("ClickableComponent",hr);var pr=function(t){function e(e,n){var r;return(r=t.call(this,e,n)||this).update(),r.update_=function(t){return r.update(t)},e.on("posterchange",r.update_),r}me(e,t);var n=e.prototype;return n.dispose=function(){this.player().off("posterchange",this.update_),t.prototype.dispose.call(this)},n.createEl=function(){return Q("div",{className:"vjs-poster",tabIndex:-1})},n.update=function(t){var e=this.player().poster();this.setSrc(e),e?this.show():this.hide()},n.setSrc=function(t){var e="";t&&(e='url("'+t+'")'),this.el_.style.backgroundImage=e},n.handleClick=function(t){if(this.player_.controls()){var e=this.player_.usingPlugin("eme")&&this.player_.eme.sessions&&this.player_.eme.sessions.length>0;!this.player_.tech(!0)||(D||I)&&e||this.player_.tech(!0).focus(),this.player_.paused()?Pe(this.player_.play()):this.player_.pause()}},e}(hr);ye.registerComponent("PosterImage",pr);var dr={monospace:"monospace",sansSerif:"sans-serif",serif:"serif",monospaceSansSerif:'"Andale Mono", "Lucida Console", monospace',monospaceSerif:'"Courier New", monospace',proportionalSansSerif:"sans-serif",proportionalSerif:"serif",casual:'"Comic Sans MS", Impact, fantasy',script:'"Monotype Corsiva", cursive',smallcaps:'"Andale Mono", "Lucida Console", monospace, sans-serif'};function vr(t,e){var n;if(4===t.length)n=t[1]+t[1]+t[2]+t[2]+t[3]+t[3];else{if(7!==t.length)throw new Error("Invalid color code provided, "+t+"; must be formatted as e.g. #f0e or #f604e2.");n=t.slice(1)}return"rgba("+parseInt(n.slice(0,2),16)+","+parseInt(n.slice(2,4),16)+","+parseInt(n.slice(4,6),16)+","+e+")"}function yr(t,e,n){try{t.style[e]=n}catch(t){return}}var gr=function(t){function e(e,n,r){var o;o=t.call(this,e,n,r)||this;var i=function(t){return o.updateDisplay(t)};return e.on("loadstart",(function(t){return o.toggleDisplay(t)})),e.on("texttrackchange",i),e.on("loadedmetadata",(function(t){return o.preselectTrack(t)})),e.ready(Xt(ge(o),(function(){if(e.tech_&&e.tech_.featuresNativeTextTracks)this.hide();else{e.on("fullscreenchange",i),e.on("playerresize",i),window.addEventListener("orientationchange",i),e.on("dispose",(function(){return window.removeEventListener("orientationchange",i)}));for(var t=this.options_.playerOptions.tracks||[],n=0;n<t.length;n++)this.player_.addRemoteTextTrack(t[n],!0);this.preselectTrack()}}))),o}me(e,t);var n=e.prototype;return n.preselectTrack=function(){for(var t,e,n,r={captions:1,subtitles:1},o=this.player_.textTracks(),i=this.player_.cache_.selectedLanguage,a=0;a<o.length;a++){var s=o[a];i&&i.enabled&&i.language&&i.language===s.language&&s.kind in r?s.kind===i.kind?n=s:n||(n=s):i&&!i.enabled?(n=null,t=null,e=null):s.default&&("descriptions"!==s.kind||t?s.kind in r&&!e&&(e=s):t=s)}n?n.mode="showing":e?e.mode="showing":t&&(t.mode="showing")},n.toggleDisplay=function(){this.player_.tech_&&this.player_.tech_.featuresNativeTextTracks?this.hide():this.show()},n.createEl=function(){return t.prototype.createEl.call(this,"div",{className:"vjs-text-track-display"},{translate:"yes","aria-live":"off","aria-atomic":"true"})},n.clearDisplay=function(){"function"==typeof window.WebVTT&&window.WebVTT.processCues(window,[],this.el_)},n.updateDisplay=function(){var t=this.player_.textTracks(),e=this.options_.allowMultipleShowingTracks;if(this.clearDisplay(),e){for(var n=[],r=0;r<t.length;++r){var o=t[r];"showing"===o.mode&&n.push(o)}this.updateForTrack(n)}else{for(var i=null,a=null,s=t.length;s--;){var u=t[s];"showing"===u.mode&&("descriptions"===u.kind?i=u:a=u)}a?("off"!==this.getAttribute("aria-live")&&this.setAttribute("aria-live","off"),this.updateForTrack(a)):i&&("assertive"!==this.getAttribute("aria-live")&&this.setAttribute("aria-live","assertive"),this.updateForTrack(i))}},n.updateDisplayState=function(t){for(var e=this.player_.textTrackSettings.getValues(),n=t.activeCues,r=n.length;r--;){var o=n[r];if(o){var i=o.displayState;if(e.color&&(i.firstChild.style.color=e.color),e.textOpacity&&yr(i.firstChild,"color",vr(e.color||"#fff",e.textOpacity)),e.backgroundColor&&(i.firstChild.style.backgroundColor=e.backgroundColor),e.backgroundOpacity&&yr(i.firstChild,"backgroundColor",vr(e.backgroundColor||"#000",e.backgroundOpacity)),e.windowColor&&(e.windowOpacity?yr(i,"backgroundColor",vr(e.windowColor,e.windowOpacity)):i.style.backgroundColor=e.windowColor),e.edgeStyle&&("dropshadow"===e.edgeStyle?i.firstChild.style.textShadow="2px 2px 3px #222, 2px 2px 4px #222, 2px 2px 5px #222":"raised"===e.edgeStyle?i.firstChild.style.textShadow="1px 1px #222, 2px 2px #222, 3px 3px #222":"depressed"===e.edgeStyle?i.firstChild.style.textShadow="1px 1px #ccc, 0 1px #ccc, -1px -1px #222, 0 -1px #222":"uniform"===e.edgeStyle&&(i.firstChild.style.textShadow="0 0 4px #222, 0 0 4px #222, 0 0 4px #222, 0 0 4px #222")),e.fontPercent&&1!==e.fontPercent){var a=window.parseFloat(i.style.fontSize);i.style.fontSize=a*e.fontPercent+"px",i.style.height="auto",i.style.top="auto"}e.fontFamily&&"default"!==e.fontFamily&&("small-caps"===e.fontFamily?i.firstChild.style.fontVariant="small-caps":i.firstChild.style.fontFamily=dr[e.fontFamily])}}},n.updateForTrack=function(t){if(Array.isArray(t)||(t=[t]),"function"==typeof window.WebVTT&&!t.every((function(t){return!t.activeCues}))){for(var e=[],n=0;n<t.length;++n)for(var r=t[n],o=0;o<r.activeCues.length;++o)e.push(r.activeCues[o]);window.WebVTT.processCues(window,e,this.el_);for(var i=0;i<t.length;++i){for(var a=t[i],s=0;s<a.activeCues.length;++s){var u=a.activeCues[s].displayState;nt(u,"vjs-text-track-cue"),nt(u,"vjs-text-track-cue-"+(a.language?a.language:i)),a.language&&ut(u,"lang",a.language)}this.player_.textTrackSettings&&this.updateDisplayState(a)}}},e}(ye);ye.registerComponent("TextTrackDisplay",gr);var mr=function(t){function e(){return t.apply(this,arguments)||this}return me(e,t),e.prototype.createEl=function(){var e=this.player_.isAudio(),n=this.localize(e?"Audio Player":"Video Player"),r=Q("span",{className:"vjs-control-text",textContent:this.localize("{1} is loading.",[n])}),o=t.prototype.createEl.call(this,"div",{className:"vjs-loading-spinner",dir:"ltr"});return o.appendChild(r),o},e}(ye);ye.registerComponent("LoadingSpinner",mr);var _r=function(t){function e(){return t.apply(this,arguments)||this}me(e,t);var n=e.prototype;return n.createEl=function(t,e,n){void 0===e&&(e={}),void 0===n&&(n={});var r=Q("button",e=b({className:this.buildCSSClass()},e),n=b({type:"button"},n));return r.appendChild(Q("span",{className:"vjs-icon-placeholder"},{"aria-hidden":!0})),this.createControlTextEl(r),r},n.addChild=function(t,e){void 0===e&&(e={});var n=this.constructor.name;return h.warn("Adding an actionable (user controllable) child to a Button ("+n+") is not supported; use a ClickableComponent instead."),ye.prototype.addChild.call(this,t,e)},n.enable=function(){t.prototype.enable.call(this),this.el_.removeAttribute("disabled")},n.disable=function(){t.prototype.disable.call(this),this.el_.setAttribute("disabled","disabled")},n.handleKeyDown=function(e){xe.isEventKey(e,"Space")||xe.isEventKey(e,"Enter")?e.stopPropagation():t.prototype.handleKeyDown.call(this,e)},e}(hr);ye.registerComponent("Button",_r);var br=function(t){function e(e,n){var r;return(r=t.call(this,e,n)||this).mouseused_=!1,r.on("mousedown",(function(t){return r.handleMouseDown(t)})),r}me(e,t);var n=e.prototype;return n.buildCSSClass=function(){return"vjs-big-play-button"},n.handleClick=function(t){var e=this.player_.play();if(this.mouseused_&&t.clientX&&t.clientY){var n=this.player_.usingPlugin("eme")&&this.player_.eme.sessions&&this.player_.eme.sessions.length>0;return Pe(e),void(!this.player_.tech(!0)||(D||I)&&n||this.player_.tech(!0).focus())}var r=this.player_.getChild("controlBar"),o=r&&r.getChild("playToggle");if(o){var i=function(){return o.focus()};Ce(e)?e.then(i,(function(){})):this.setTimeout(i,1)}else this.player_.tech(!0).focus()},n.handleKeyDown=function(e){this.mouseused_=!1,t.prototype.handleKeyDown.call(this,e)},n.handleMouseDown=function(t){this.mouseused_=!0},e}(_r);br.prototype.controlText_="Play Video",ye.registerComponent("BigPlayButton",br);var wr=function(t){function e(e,n){var r;return(r=t.call(this,e,n)||this).controlText(n&&n.controlText||r.localize("Close")),r}me(e,t);var n=e.prototype;return n.buildCSSClass=function(){return"vjs-close-button "+t.prototype.buildCSSClass.call(this)},n.handleClick=function(t){this.trigger({type:"close",bubbles:!1})},n.handleKeyDown=function(e){xe.isEventKey(e,"Esc")?(e.preventDefault(),e.stopPropagation(),this.trigger("click")):t.prototype.handleKeyDown.call(this,e)},e}(_r);ye.registerComponent("CloseButton",wr);var Er=function(t){function e(e,n){var r;return void 0===n&&(n={}),r=t.call(this,e,n)||this,n.replay=void 0===n.replay||n.replay,r.on(e,"play",(function(t){return r.handlePlay(t)})),r.on(e,"pause",(function(t){return r.handlePause(t)})),n.replay&&r.on(e,"ended",(function(t){return r.handleEnded(t)})),r}me(e,t);var n=e.prototype;return n.buildCSSClass=function(){return"vjs-play-control "+t.prototype.buildCSSClass.call(this)},n.handleClick=function(t){this.player_.paused()?Pe(this.player_.play()):this.player_.pause()},n.handleSeeked=function(t){this.removeClass("vjs-ended"),this.player_.paused()?this.handlePause(t):this.handlePlay(t)},n.handlePlay=function(t){this.removeClass("vjs-ended"),this.removeClass("vjs-paused"),this.addClass("vjs-playing"),this.controlText("Pause")},n.handlePause=function(t){this.removeClass("vjs-playing"),this.addClass("vjs-paused"),this.controlText("Play")},n.handleEnded=function(t){var e=this;this.removeClass("vjs-playing"),this.addClass("vjs-ended"),this.controlText("Replay"),this.one(this.player_,"seeked",(function(t){return e.handleSeeked(t)}))},e}(_r);Er.prototype.controlText_="Play",ye.registerComponent("PlayToggle",Er);var Tr=function(t,e){t=t<0?0:t;var n=Math.floor(t%60),r=Math.floor(t/60%60),o=Math.floor(t/3600),i=Math.floor(e/60%60),a=Math.floor(e/3600);return(isNaN(t)||t===1/0)&&(o=r=n="-"),(o=o>0||a>0?o+":":"")+(r=((o||i>=10)&&r<10?"0"+r:r)+":")+(n=n<10?"0"+n:n)},Sr=Tr;function Or(t,e){return void 0===e&&(e=t),Sr(t,e)}var Cr=function(t){function e(e,n){var r;return(r=t.call(this,e,n)||this).on(e,["timeupdate","ended"],(function(t){return r.updateContent(t)})),r.updateTextNode_(),r}me(e,t);var n=e.prototype;return n.createEl=function(){var e=this.buildCSSClass(),n=t.prototype.createEl.call(this,"div",{className:e+" vjs-time-control vjs-control"}),r=Q("span",{className:"vjs-control-text",textContent:this.localize(this.labelText_)+" "},{role:"presentation"});return n.appendChild(r),this.contentEl_=Q("span",{className:e+"-display"},{"aria-live":"off",role:"presentation"}),n.appendChild(this.contentEl_),n},n.dispose=function(){this.contentEl_=null,this.textNode_=null,t.prototype.dispose.call(this)},n.updateTextNode_=function(t){var e=this;void 0===t&&(t=0),t=Or(t),this.formattedTime_!==t&&(this.formattedTime_=t,this.requestNamedAnimationFrame("TimeDisplay#updateTextNode_",(function(){if(e.contentEl_){var t=e.textNode_;t&&e.contentEl_.firstChild!==t&&(t=null,h.warn("TimeDisplay#updateTextnode_: Prevented replacement of text node element since it was no longer a child of this node. Appending a new node instead.")),e.textNode_=document.createTextNode(e.formattedTime_),e.textNode_&&(t?e.contentEl_.replaceChild(e.textNode_,t):e.contentEl_.appendChild(e.textNode_))}})))},n.updateContent=function(t){},e}(ye);Cr.prototype.labelText_="Time",Cr.prototype.controlText_="Time",ye.registerComponent("TimeDisplay",Cr);var Pr=function(t){function e(){return t.apply(this,arguments)||this}me(e,t);var n=e.prototype;return n.buildCSSClass=function(){return"vjs-current-time"},n.updateContent=function(t){var e;e=this.player_.ended()?this.player_.duration():this.player_.scrubbing()?this.player_.getCache().currentTime:this.player_.currentTime(),this.updateTextNode_(e)},e}(Cr);Pr.prototype.labelText_="Current Time",Pr.prototype.controlText_="Current Time",ye.registerComponent("CurrentTimeDisplay",Pr);var kr=function(t){function e(e,n){var r,o=function(t){return r.updateContent(t)};return(r=t.call(this,e,n)||this).on(e,"durationchange",o),r.on(e,"loadstart",o),r.on(e,"loadedmetadata",o),r}me(e,t);var n=e.prototype;return n.buildCSSClass=function(){return"vjs-duration"},n.updateContent=function(t){var e=this.player_.duration();this.updateTextNode_(e)},e}(Cr);kr.prototype.labelText_="Duration",kr.prototype.controlText_="Duration",ye.registerComponent("DurationDisplay",kr);var jr=function(t){function e(){return t.apply(this,arguments)||this}return me(e,t),e.prototype.createEl=function(){var e=t.prototype.createEl.call(this,"div",{className:"vjs-time-control vjs-time-divider"},{"aria-hidden":!0}),n=t.prototype.createEl.call(this,"div"),r=t.prototype.createEl.call(this,"span",{textContent:"/"});return n.appendChild(r),e.appendChild(n),e},e}(ye);ye.registerComponent("TimeDivider",jr);var Ar=function(t){function e(e,n){var r;return(r=t.call(this,e,n)||this).on(e,"durationchange",(function(t){return r.updateContent(t)})),r}me(e,t);var n=e.prototype;return n.buildCSSClass=function(){return"vjs-remaining-time"},n.createEl=function(){var e=t.prototype.createEl.call(this);return e.insertBefore(Q("span",{},{"aria-hidden":!0},"-"),this.contentEl_),e},n.updateContent=function(t){var e;"number"==typeof this.player_.duration()&&(e=this.player_.ended()?0:this.player_.remainingTimeDisplay?this.player_.remainingTimeDisplay():this.player_.remainingTime(),this.updateTextNode_(e))},e}(Cr);Ar.prototype.labelText_="Remaining Time",Ar.prototype.controlText_="Remaining Time",ye.registerComponent("RemainingTimeDisplay",Ar);var xr=function(t){function e(e,n){var r;return(r=t.call(this,e,n)||this).updateShowing(),r.on(r.player(),"durationchange",(function(t){return r.updateShowing(t)})),r}me(e,t);var n=e.prototype;return n.createEl=function(){var e=t.prototype.createEl.call(this,"div",{className:"vjs-live-control vjs-control"});return this.contentEl_=Q("div",{className:"vjs-live-display"},{"aria-live":"off"}),this.contentEl_.appendChild(Q("span",{className:"vjs-control-text",textContent:this.localize("Stream Type")+" "})),this.contentEl_.appendChild(document.createTextNode(this.localize("LIVE"))),e.appendChild(this.contentEl_),e},n.dispose=function(){this.contentEl_=null,t.prototype.dispose.call(this)},n.updateShowing=function(t){this.player().duration()===1/0?this.show():this.hide()},e}(ye);ye.registerComponent("LiveDisplay",xr);var Rr=function(t){function e(e,n){var r;return(r=t.call(this,e,n)||this).updateLiveEdgeStatus(),r.player_.liveTracker&&(r.updateLiveEdgeStatusHandler_=function(t){return r.updateLiveEdgeStatus(t)},r.on(r.player_.liveTracker,"liveedgechange",r.updateLiveEdgeStatusHandler_)),r}me(e,t);var n=e.prototype;return n.createEl=function(){var e=t.prototype.createEl.call(this,"button",{className:"vjs-seek-to-live-control vjs-control"});return this.textEl_=Q("span",{className:"vjs-seek-to-live-text",textContent:this.localize("LIVE")},{"aria-hidden":"true"}),e.appendChild(this.textEl_),e},n.updateLiveEdgeStatus=function(){!this.player_.liveTracker||this.player_.liveTracker.atLiveEdge()?(this.setAttribute("aria-disabled",!0),this.addClass("vjs-at-live-edge"),this.controlText("Seek to live, currently playing live")):(this.setAttribute("aria-disabled",!1),this.removeClass("vjs-at-live-edge"),this.controlText("Seek to live, currently behind live"))},n.handleClick=function(){this.player_.liveTracker.seekToLiveEdge()},n.dispose=function(){this.player_.liveTracker&&this.off(this.player_.liveTracker,"liveedgechange",this.updateLiveEdgeStatusHandler_),this.textEl_=null,t.prototype.dispose.call(this)},e}(_r);Rr.prototype.controlText_="Seek to live, currently playing live",ye.registerComponent("SeekToLive",Rr);var Lr=function(t,e,n){return t=Number(t),Math.min(n,Math.max(e,isNaN(t)?e:t))},Ir=function(t){function e(e,n){var r;return(r=t.call(this,e,n)||this).handleMouseDown_=function(t){return r.handleMouseDown(t)},r.handleMouseUp_=function(t){return r.handleMouseUp(t)},r.handleKeyDown_=function(t){return r.handleKeyDown(t)},r.handleClick_=function(t){return r.handleClick(t)},r.handleMouseMove_=function(t){return r.handleMouseMove(t)},r.update_=function(t){return r.update(t)},r.bar=r.getChild(r.options_.barName),r.vertical(!!r.options_.vertical),r.enable(),r}me(e,t);var n=e.prototype;return n.enabled=function(){return this.enabled_},n.enable=function(){this.enabled()||(this.on("mousedown",this.handleMouseDown_),this.on("touchstart",this.handleMouseDown_),this.on("keydown",this.handleKeyDown_),this.on("click",this.handleClick_),this.on(this.player_,"controlsvisible",this.update),this.playerEvent&&this.on(this.player_,this.playerEvent,this.update),this.removeClass("disabled"),this.setAttribute("tabindex",0),this.enabled_=!0)},n.disable=function(){if(this.enabled()){var t=this.bar.el_.ownerDocument;this.off("mousedown",this.handleMouseDown_),this.off("touchstart",this.handleMouseDown_),this.off("keydown",this.handleKeyDown_),this.off("click",this.handleClick_),this.off(this.player_,"controlsvisible",this.update_),this.off(t,"mousemove",this.handleMouseMove_),this.off(t,"mouseup",this.handleMouseUp_),this.off(t,"touchmove",this.handleMouseMove_),this.off(t,"touchend",this.handleMouseUp_),this.removeAttribute("tabindex"),this.addClass("disabled"),this.playerEvent&&this.off(this.player_,this.playerEvent,this.update),this.enabled_=!1}},n.createEl=function(e,n,r){return void 0===n&&(n={}),void 0===r&&(r={}),n.className=n.className+" vjs-slider",n=b({tabIndex:0},n),r=b({role:"slider","aria-valuenow":0,"aria-valuemin":0,"aria-valuemax":100,tabIndex:0},r),t.prototype.createEl.call(this,e,n,r)},n.handleMouseDown=function(t){var e=this.bar.el_.ownerDocument;"mousedown"===t.type&&t.preventDefault(),"touchstart"!==t.type||N||t.preventDefault(),lt(),this.addClass("vjs-sliding"),this.trigger("slideractive"),this.on(e,"mousemove",this.handleMouseMove_),this.on(e,"mouseup",this.handleMouseUp_),this.on(e,"touchmove",this.handleMouseMove_),this.on(e,"touchend",this.handleMouseUp_),this.handleMouseMove(t)},n.handleMouseMove=function(t){},n.handleMouseUp=function(){var t=this.bar.el_.ownerDocument;ft(),this.removeClass("vjs-sliding"),this.trigger("sliderinactive"),this.off(t,"mousemove",this.handleMouseMove_),this.off(t,"mouseup",this.handleMouseUp_),this.off(t,"touchmove",this.handleMouseMove_),this.off(t,"touchend",this.handleMouseUp_),this.update()},n.update=function(){var t=this;if(this.el_&&this.bar){var e=this.getProgress();return e===this.progress_||(this.progress_=e,this.requestNamedAnimationFrame("Slider#update",(function(){var n=t.vertical()?"height":"width";t.bar.el().style[n]=(100*e).toFixed(2)+"%"}))),e}},n.getProgress=function(){return Number(Lr(this.getPercent(),0,1).toFixed(4))},n.calculateDistance=function(t){var e=dt(this.el_,t);return this.vertical()?e.y:e.x},n.handleKeyDown=function(e){xe.isEventKey(e,"Left")||xe.isEventKey(e,"Down")?(e.preventDefault(),e.stopPropagation(),this.stepBack()):xe.isEventKey(e,"Right")||xe.isEventKey(e,"Up")?(e.preventDefault(),e.stopPropagation(),this.stepForward()):t.prototype.handleKeyDown.call(this,e)},n.handleClick=function(t){t.stopPropagation(),t.preventDefault()},n.vertical=function(t){if(void 0===t)return this.vertical_||!1;this.vertical_=!!t,this.vertical_?this.addClass("vjs-slider-vertical"):this.addClass("vjs-slider-horizontal")},e}(ye);ye.registerComponent("Slider",Ir);var Nr=function(t,e){return Lr(t/e*100,0,100).toFixed(2)+"%"},Mr=function(t){function e(e,n){var r;return(r=t.call(this,e,n)||this).partEls_=[],r.on(e,"progress",(function(t){return r.update(t)})),r}me(e,t);var n=e.prototype;return n.createEl=function(){var e=t.prototype.createEl.call(this,"div",{className:"vjs-load-progress"}),n=Q("span",{className:"vjs-control-text"}),r=Q("span",{textContent:this.localize("Loaded")}),o=document.createTextNode(": ");return this.percentageEl_=Q("span",{className:"vjs-control-text-loaded-percentage",textContent:"0%"}),e.appendChild(n),n.appendChild(r),n.appendChild(o),n.appendChild(this.percentageEl_),e},n.dispose=function(){this.partEls_=null,this.percentageEl_=null,t.prototype.dispose.call(this)},n.update=function(t){var e=this;this.requestNamedAnimationFrame("LoadProgressBar#update",(function(){var t=e.player_.liveTracker,n=e.player_.buffered(),r=t&&t.isLive()?t.seekableEnd():e.player_.duration(),o=e.player_.bufferedEnd(),i=e.partEls_,a=Nr(o,r);e.percent_!==a&&(e.el_.style.width=a,Z(e.percentageEl_,a),e.percent_=a);for(var s=0;s<n.length;s++){var u=n.start(s),c=n.end(s),l=i[s];l||(l=e.el_.appendChild(Q()),i[s]=l),l.dataset.start===u&&l.dataset.end===c||(l.dataset.start=u,l.dataset.end=c,l.style.left=Nr(u,o),l.style.width=Nr(c-u,o))}for(var f=i.length;f>n.length;f--)e.el_.removeChild(i[f-1]);i.length=n.length}))},e}(ye);ye.registerComponent("LoadProgressBar",Mr);var Dr=function(t){function e(e,n){var r;return(r=t.call(this,e,n)||this).update=qt(Xt(ge(r),r.update),Kt),r}me(e,t);var n=e.prototype;return n.createEl=function(){return t.prototype.createEl.call(this,"div",{className:"vjs-time-tooltip"},{"aria-hidden":"true"})},n.update=function(t,e,n){var r=pt(this.el_),o=ht(this.player_.el()),i=t.width*e;if(o&&r){var a=t.left-o.left+i,s=t.width-i+(o.right-t.right),u=r.width/2;a<u?u+=u-a:s<u&&(u=s),u<0?u=0:u>r.width&&(u=r.width),u=Math.round(u),this.el_.style.right="-"+u+"px",this.write(n)}},n.write=function(t){Z(this.el_,t)},n.updateTime=function(t,e,n,r){var o=this;this.requestNamedAnimationFrame("TimeTooltip#updateTime",(function(){var i,a=o.player_.duration();if(o.player_.liveTracker&&o.player_.liveTracker.isLive()){var s=o.player_.liveTracker.liveWindow(),u=s-e*s;i=(u<1?"":"-")+Or(u,s)}else i=Or(n,a);o.update(t,e,i),r&&r()}))},e}(ye);ye.registerComponent("TimeTooltip",Dr);var Fr=function(t){function e(e,n){var r;return(r=t.call(this,e,n)||this).update=qt(Xt(ge(r),r.update),Kt),r}me(e,t);var n=e.prototype;return n.createEl=function(){return t.prototype.createEl.call(this,"div",{className:"vjs-play-progress vjs-slider-bar"},{"aria-hidden":"true"})},n.update=function(t,e){var n=this.getChild("timeTooltip");if(n){var r=this.player_.scrubbing()?this.player_.getCache().currentTime:this.player_.currentTime();n.updateTime(t,e,r)}},e}(ye);Fr.prototype.options_={children:[]},Y||A||Fr.prototype.options_.children.push("timeTooltip"),ye.registerComponent("PlayProgressBar",Fr);var Br=function(t){function e(e,n){var r;return(r=t.call(this,e,n)||this).update=qt(Xt(ge(r),r.update),Kt),r}me(e,t);var n=e.prototype;return n.createEl=function(){return t.prototype.createEl.call(this,"div",{className:"vjs-mouse-display"})},n.update=function(t,e){var n=this,r=e*this.player_.duration();this.getChild("timeTooltip").updateTime(t,e,r,(function(){n.el_.style.left=t.width*e+"px"}))},e}(ye);Br.prototype.options_={children:["timeTooltip"]},ye.registerComponent("MouseTimeDisplay",Br);var Vr=function(t){function e(e,n){var r;return(r=t.call(this,e,n)||this).setEventHandlers_(),r}me(e,t);var n=e.prototype;return n.setEventHandlers_=function(){var t=this;this.update_=Xt(this,this.update),this.update=qt(this.update_,Kt),this.on(this.player_,["ended","durationchange","timeupdate"],this.update),this.player_.liveTracker&&this.on(this.player_.liveTracker,"liveedgechange",this.update),this.updateInterval=null,this.enableIntervalHandler_=function(e){return t.enableInterval_(e)},this.disableIntervalHandler_=function(e){return t.disableInterval_(e)},this.on(this.player_,["playing"],this.enableIntervalHandler_),this.on(this.player_,["ended","pause","waiting"],this.disableIntervalHandler_),"hidden"in document&&"visibilityState"in document&&this.on(document,"visibilitychange",this.toggleVisibility_)},n.toggleVisibility_=function(t){"hidden"===document.visibilityState?(this.cancelNamedAnimationFrame("SeekBar#update"),this.cancelNamedAnimationFrame("Slider#update"),this.disableInterval_(t)):(this.player_.ended()||this.player_.paused()||this.enableInterval_(),this.update())},n.enableInterval_=function(){this.updateInterval||(this.updateInterval=this.setInterval(this.update,Kt))},n.disableInterval_=function(t){this.player_.liveTracker&&this.player_.liveTracker.isLive()&&t&&"ended"!==t.type||this.updateInterval&&(this.clearInterval(this.updateInterval),this.updateInterval=null)},n.createEl=function(){return t.prototype.createEl.call(this,"div",{className:"vjs-progress-holder"},{"aria-label":this.localize("Progress Bar")})},n.update=function(e){var n=this;if("hidden"!==document.visibilityState){var r=t.prototype.update.call(this);return this.requestNamedAnimationFrame("SeekBar#update",(function(){var t=n.player_.ended()?n.player_.duration():n.getCurrentTime_(),e=n.player_.liveTracker,o=n.player_.duration();e&&e.isLive()&&(o=n.player_.liveTracker.liveCurrentTime()),n.percent_!==r&&(n.el_.setAttribute("aria-valuenow",(100*r).toFixed(2)),n.percent_=r),n.currentTime_===t&&n.duration_===o||(n.el_.setAttribute("aria-valuetext",n.localize("progress bar timing: currentTime={1} duration={2}",[Or(t,o),Or(o,o)],"{1} of {2}")),n.currentTime_=t,n.duration_=o),n.bar&&n.bar.update(ht(n.el()),n.getProgress())})),r}},n.userSeek_=function(t){this.player_.liveTracker&&this.player_.liveTracker.isLive()&&this.player_.liveTracker.nextSeekedFromUser(),this.player_.currentTime(t)},n.getCurrentTime_=function(){return this.player_.scrubbing()?this.player_.getCache().currentTime:this.player_.currentTime()},n.getPercent=function(){var t,e=this.getCurrentTime_(),n=this.player_.liveTracker;return n&&n.isLive()?(t=(e-n.seekableStart())/n.liveWindow(),n.atLiveEdge()&&(t=1)):t=e/this.player_.duration(),t},n.handleMouseDown=function(e){bt(e)&&(e.stopPropagation(),this.player_.scrubbing(!0),this.videoWasPlaying=!this.player_.paused(),this.player_.pause(),t.prototype.handleMouseDown.call(this,e))},n.handleMouseMove=function(t){if(bt(t)){var e,n=this.calculateDistance(t),r=this.player_.liveTracker;if(r&&r.isLive()){if(n>=.99)return void r.seekToLiveEdge();var o=r.seekableStart(),i=r.liveCurrentTime();if((e=o+n*r.liveWindow())>=i&&(e=i),e<=o&&(e=o+.1),e===1/0)return}else(e=n*this.player_.duration())===this.player_.duration()&&(e-=.1);this.userSeek_(e)}},n.enable=function(){t.prototype.enable.call(this);var e=this.getChild("mouseTimeDisplay");e&&e.show()},n.disable=function(){t.prototype.disable.call(this);var e=this.getChild("mouseTimeDisplay");e&&e.hide()},n.handleMouseUp=function(e){t.prototype.handleMouseUp.call(this,e),e&&e.stopPropagation(),this.player_.scrubbing(!1),this.player_.trigger({type:"timeupdate",target:this,manuallyTriggered:!0}),this.videoWasPlaying?Pe(this.player_.play()):this.update_()},n.stepForward=function(){this.userSeek_(this.player_.currentTime()+5)},n.stepBack=function(){this.userSeek_(this.player_.currentTime()-5)},n.handleAction=function(t){this.player_.paused()?this.player_.play():this.player_.pause()},n.handleKeyDown=function(e){var n=this.player_.liveTracker;if(xe.isEventKey(e,"Space")||xe.isEventKey(e,"Enter"))e.preventDefault(),e.stopPropagation(),this.handleAction(e);else if(xe.isEventKey(e,"Home"))e.preventDefault(),e.stopPropagation(),this.userSeek_(0);else if(xe.isEventKey(e,"End"))e.preventDefault(),e.stopPropagation(),n&&n.isLive()?this.userSeek_(n.liveCurrentTime()):this.userSeek_(this.player_.duration());else if(/^[0-9]$/.test(xe(e))){e.preventDefault(),e.stopPropagation();var r=10*(xe.codes[xe(e)]-xe.codes[0])/100;n&&n.isLive()?this.userSeek_(n.seekableStart()+n.liveWindow()*r):this.userSeek_(this.player_.duration()*r)}else xe.isEventKey(e,"PgDn")?(e.preventDefault(),e.stopPropagation(),this.userSeek_(this.player_.currentTime()-60)):xe.isEventKey(e,"PgUp")?(e.preventDefault(),e.stopPropagation(),this.userSeek_(this.player_.currentTime()+60)):t.prototype.handleKeyDown.call(this,e)},n.dispose=function(){this.disableInterval_(),this.off(this.player_,["ended","durationchange","timeupdate"],this.update),this.player_.liveTracker&&this.off(this.player_.liveTracker,"liveedgechange",this.update),this.off(this.player_,["playing"],this.enableIntervalHandler_),this.off(this.player_,["ended","pause","waiting"],this.disableIntervalHandler_),"hidden"in document&&"visibilityState"in document&&this.off(document,"visibilitychange",this.toggleVisibility_),t.prototype.dispose.call(this)},e}(Ir);Vr.prototype.options_={children:["loadProgressBar","playProgressBar"],barName:"playProgressBar"},Y||A||Vr.prototype.options_.children.splice(1,0,"mouseTimeDisplay"),ye.registerComponent("SeekBar",Vr);var Ur=function(t){function e(e,n){var r;return(r=t.call(this,e,n)||this).handleMouseMove=qt(Xt(ge(r),r.handleMouseMove),Kt),r.throttledHandleMouseSeek=qt(Xt(ge(r),r.handleMouseSeek),Kt),r.handleMouseUpHandler_=function(t){return r.handleMouseUp(t)},r.handleMouseDownHandler_=function(t){return r.handleMouseDown(t)},r.enable(),r}me(e,t);var n=e.prototype;return n.createEl=function(){return t.prototype.createEl.call(this,"div",{className:"vjs-progress-control vjs-control"})},n.handleMouseMove=function(t){var e=this.getChild("seekBar");if(e){var n=e.getChild("playProgressBar"),r=e.getChild("mouseTimeDisplay");if(n||r){var o=e.el(),i=pt(o),a=dt(o,t).x;a=Lr(a,0,1),r&&r.update(i,a),n&&n.update(i,e.getProgress())}}},n.handleMouseSeek=function(t){var e=this.getChild("seekBar");e&&e.handleMouseMove(t)},n.enabled=function(){return this.enabled_},n.disable=function(){if(this.children().forEach((function(t){return t.disable&&t.disable()})),this.enabled()&&(this.off(["mousedown","touchstart"],this.handleMouseDownHandler_),this.off(this.el_,"mousemove",this.handleMouseMove),this.removeListenersAddedOnMousedownAndTouchstart(),this.addClass("disabled"),this.enabled_=!1,this.player_.scrubbing())){var t=this.getChild("seekBar");this.player_.scrubbing(!1),t.videoWasPlaying&&Pe(this.player_.play())}},n.enable=function(){this.children().forEach((function(t){return t.enable&&t.enable()})),this.enabled()||(this.on(["mousedown","touchstart"],this.handleMouseDownHandler_),this.on(this.el_,"mousemove",this.handleMouseMove),this.removeClass("disabled"),this.enabled_=!0)},n.removeListenersAddedOnMousedownAndTouchstart=function(){var t=this.el_.ownerDocument;this.off(t,"mousemove",this.throttledHandleMouseSeek),this.off(t,"touchmove",this.throttledHandleMouseSeek),this.off(t,"mouseup",this.handleMouseUpHandler_),this.off(t,"touchend",this.handleMouseUpHandler_)},n.handleMouseDown=function(t){var e=this.el_.ownerDocument,n=this.getChild("seekBar");n&&n.handleMouseDown(t),this.on(e,"mousemove",this.throttledHandleMouseSeek),this.on(e,"touchmove",this.throttledHandleMouseSeek),this.on(e,"mouseup",this.handleMouseUpHandler_),this.on(e,"touchend",this.handleMouseUpHandler_)},n.handleMouseUp=function(t){var e=this.getChild("seekBar");e&&e.handleMouseUp(t),this.removeListenersAddedOnMousedownAndTouchstart()},e}(ye);Ur.prototype.options_={children:["seekBar"]},ye.registerComponent("ProgressControl",Ur);var Hr=function(t){function e(e,n){var r;return(r=t.call(this,e,n)||this).on(e,["enterpictureinpicture","leavepictureinpicture"],(function(t){return r.handlePictureInPictureChange(t)})),r.on(e,["disablepictureinpicturechanged","loadedmetadata"],(function(t){return r.handlePictureInPictureEnabledChange(t)})),r.disable(),r}me(e,t);var n=e.prototype;return n.buildCSSClass=function(){return"vjs-picture-in-picture-control "+t.prototype.buildCSSClass.call(this)},n.handlePictureInPictureEnabledChange=function(){document.pictureInPictureEnabled&&!1===this.player_.disablePictureInPicture()?this.enable():this.disable()},n.handlePictureInPictureChange=function(t){this.player_.isInPictureInPicture()?this.controlText("Exit Picture-in-Picture"):this.controlText("Picture-in-Picture"),this.handlePictureInPictureEnabledChange()},n.handleClick=function(t){this.player_.isInPictureInPicture()?this.player_.exitPictureInPicture():this.player_.requestPictureInPicture()},e}(_r);Hr.prototype.controlText_="Picture-in-Picture",ye.registerComponent("PictureInPictureToggle",Hr);var Yr=function(t){function e(e,n){var r;return(r=t.call(this,e,n)||this).on(e,"fullscreenchange",(function(t){return r.handleFullscreenChange(t)})),!1===document[e.fsApi_.fullscreenEnabled]&&r.disable(),r}me(e,t);var n=e.prototype;return n.buildCSSClass=function(){return"vjs-fullscreen-control "+t.prototype.buildCSSClass.call(this)},n.handleFullscreenChange=function(t){this.player_.isFullscreen()?this.controlText("Non-Fullscreen"):this.controlText("Fullscreen")},n.handleClick=function(t){this.player_.isFullscreen()?this.player_.exitFullscreen():this.player_.requestFullscreen()},e}(_r);Yr.prototype.controlText_="Fullscreen",ye.registerComponent("FullscreenToggle",Yr);var zr=function(t){function e(){return t.apply(this,arguments)||this}return me(e,t),e.prototype.createEl=function(){var e=t.prototype.createEl.call(this,"div",{className:"vjs-volume-level"});return e.appendChild(t.prototype.createEl.call(this,"span",{className:"vjs-control-text"})),e},e}(ye);ye.registerComponent("VolumeLevel",zr);var Wr=function(t){function e(e,n){var r;return(r=t.call(this,e,n)||this).update=qt(Xt(ge(r),r.update),Kt),r}me(e,t);var n=e.prototype;return n.createEl=function(){return t.prototype.createEl.call(this,"div",{className:"vjs-volume-tooltip"},{"aria-hidden":"true"})},n.update=function(t,e,n,r){if(!n){var o=ht(this.el_),i=ht(this.player_.el()),a=t.width*e;if(!i||!o)return;var s=t.left-i.left+a,u=t.width-a+(i.right-t.right),c=o.width/2;s<c?c+=c-s:u<c&&(c=u),c<0?c=0:c>o.width&&(c=o.width),this.el_.style.right="-"+c+"px"}this.write(r+"%")},n.write=function(t){Z(this.el_,t)},n.updateVolume=function(t,e,n,r,o){var i=this;this.requestNamedAnimationFrame("VolumeLevelTooltip#updateVolume",(function(){i.update(t,e,n,r.toFixed(0)),o&&o()}))},e}(ye);ye.registerComponent("VolumeLevelTooltip",Wr);var Gr=function(t){function e(e,n){var r;return(r=t.call(this,e,n)||this).update=qt(Xt(ge(r),r.update),Kt),r}me(e,t);var n=e.prototype;return n.createEl=function(){return t.prototype.createEl.call(this,"div",{className:"vjs-mouse-display"})},n.update=function(t,e,n){var r=this,o=100*e;this.getChild("volumeLevelTooltip").updateVolume(t,e,n,o,(function(){n?r.el_.style.bottom=t.height*e+"px":r.el_.style.left=t.width*e+"px"}))},e}(ye);Gr.prototype.options_={children:["volumeLevelTooltip"]},ye.registerComponent("MouseVolumeLevelDisplay",Gr);var Kr=function(t){function e(e,n){var r;return(r=t.call(this,e,n)||this).on("slideractive",(function(t){return r.updateLastVolume_(t)})),r.on(e,"volumechange",(function(t){return r.updateARIAAttributes(t)})),e.ready((function(){return r.updateARIAAttributes()})),r}me(e,t);var n=e.prototype;return n.createEl=function(){return t.prototype.createEl.call(this,"div",{className:"vjs-volume-bar vjs-slider-bar"},{"aria-label":this.localize("Volume Level"),"aria-live":"polite"})},n.handleMouseDown=function(e){bt(e)&&t.prototype.handleMouseDown.call(this,e)},n.handleMouseMove=function(t){var e=this.getChild("mouseVolumeLevelDisplay");if(e){var n=this.el(),r=ht(n),o=this.vertical(),i=dt(n,t);i=o?i.y:i.x,i=Lr(i,0,1),e.update(r,i,o)}bt(t)&&(this.checkMuted(),this.player_.volume(this.calculateDistance(t)))},n.checkMuted=function(){this.player_.muted()&&this.player_.muted(!1)},n.getPercent=function(){return this.player_.muted()?0:this.player_.volume()},n.stepForward=function(){this.checkMuted(),this.player_.volume(this.player_.volume()+.1)},n.stepBack=function(){this.checkMuted(),this.player_.volume(this.player_.volume()-.1)},n.updateARIAAttributes=function(t){var e=this.player_.muted()?0:this.volumeAsPercentage_();this.el_.setAttribute("aria-valuenow",e),this.el_.setAttribute("aria-valuetext",e+"%")},n.volumeAsPercentage_=function(){return Math.round(100*this.player_.volume())},n.updateLastVolume_=function(){var t=this,e=this.player_.volume();this.one("sliderinactive",(function(){0===t.player_.volume()&&t.player_.lastVolume_(e)}))},e}(Ir);Kr.prototype.options_={children:["volumeLevel"],barName:"volumeLevel"},Y||A||Kr.prototype.options_.children.splice(0,0,"mouseVolumeLevelDisplay"),Kr.prototype.playerEvent="volumechange",ye.registerComponent("VolumeBar",Kr);var Xr=function(t){function e(e,n){var r;return void 0===n&&(n={}),n.vertical=n.vertical||!1,(void 0===n.volumeBar||E(n.volumeBar))&&(n.volumeBar=n.volumeBar||{},n.volumeBar.vertical=n.vertical),r=t.call(this,e,n)||this,function(t,e){e.tech_&&!e.tech_.featuresVolumeControl&&t.addClass("vjs-hidden"),t.on(e,"loadstart",(function(){e.tech_.featuresVolumeControl?t.removeClass("vjs-hidden"):t.addClass("vjs-hidden")}))}(ge(r),e),r.throttledHandleMouseMove=qt(Xt(ge(r),r.handleMouseMove),Kt),r.handleMouseUpHandler_=function(t){return r.handleMouseUp(t)},r.on("mousedown",(function(t){return r.handleMouseDown(t)})),r.on("touchstart",(function(t){return r.handleMouseDown(t)})),r.on("mousemove",(function(t){return r.handleMouseMove(t)})),r.on(r.volumeBar,["focus","slideractive"],(function(){r.volumeBar.addClass("vjs-slider-active"),r.addClass("vjs-slider-active"),r.trigger("slideractive")})),r.on(r.volumeBar,["blur","sliderinactive"],(function(){r.volumeBar.removeClass("vjs-slider-active"),r.removeClass("vjs-slider-active"),r.trigger("sliderinactive")})),r}me(e,t);var n=e.prototype;return n.createEl=function(){var e="vjs-volume-horizontal";return this.options_.vertical&&(e="vjs-volume-vertical"),t.prototype.createEl.call(this,"div",{className:"vjs-volume-control vjs-control "+e})},n.handleMouseDown=function(t){var e=this.el_.ownerDocument;this.on(e,"mousemove",this.throttledHandleMouseMove),this.on(e,"touchmove",this.throttledHandleMouseMove),this.on(e,"mouseup",this.handleMouseUpHandler_),this.on(e,"touchend",this.handleMouseUpHandler_)},n.handleMouseUp=function(t){var e=this.el_.ownerDocument;this.off(e,"mousemove",this.throttledHandleMouseMove),this.off(e,"touchmove",this.throttledHandleMouseMove),this.off(e,"mouseup",this.handleMouseUpHandler_),this.off(e,"touchend",this.handleMouseUpHandler_)},n.handleMouseMove=function(t){this.volumeBar.handleMouseMove(t)},e}(ye);Xr.prototype.options_={children:["volumeBar"]},ye.registerComponent("VolumeControl",Xr);var qr=function(t){function e(e,n){var r;return r=t.call(this,e,n)||this,function(t,e){e.tech_&&!e.tech_.featuresMuteControl&&t.addClass("vjs-hidden"),t.on(e,"loadstart",(function(){e.tech_.featuresMuteControl?t.removeClass("vjs-hidden"):t.addClass("vjs-hidden")}))}(ge(r),e),r.on(e,["loadstart","volumechange"],(function(t){return r.update(t)})),r}me(e,t);var n=e.prototype;return n.buildCSSClass=function(){return"vjs-mute-control "+t.prototype.buildCSSClass.call(this)},n.handleClick=function(t){var e=this.player_.volume(),n=this.player_.lastVolume_();if(0===e){var r=n<.1?.1:n;this.player_.volume(r),this.player_.muted(!1)}else this.player_.muted(!this.player_.muted())},n.update=function(t){this.updateIcon_(),this.updateControlText_()},n.updateIcon_=function(){var t=this.player_.volume(),e=3;Y&&this.player_.tech_&&this.player_.tech_.el_&&this.player_.muted(this.player_.tech_.el_.muted),0===t||this.player_.muted()?e=0:t<.33?e=1:t<.67&&(e=2);for(var n=0;n<4;n++)rt(this.el_,"vjs-vol-"+n);nt(this.el_,"vjs-vol-"+e)},n.updateControlText_=function(){var t=this.player_.muted()||0===this.player_.volume()?"Unmute":"Mute";this.controlText()!==t&&this.controlText(t)},e}(_r);qr.prototype.controlText_="Mute",ye.registerComponent("MuteToggle",qr);var $r=function(t){function e(e,n){var r;return void 0===n&&(n={}),void 0!==n.inline?n.inline=n.inline:n.inline=!0,(void 0===n.volumeControl||E(n.volumeControl))&&(n.volumeControl=n.volumeControl||{},n.volumeControl.vertical=!n.inline),(r=t.call(this,e,n)||this).handleKeyPressHandler_=function(t){return r.handleKeyPress(t)},r.on(e,["loadstart"],(function(t){return r.volumePanelState_(t)})),r.on(r.muteToggle,"keyup",(function(t){return r.handleKeyPress(t)})),r.on(r.volumeControl,"keyup",(function(t){return r.handleVolumeControlKeyUp(t)})),r.on("keydown",(function(t){return r.handleKeyPress(t)})),r.on("mouseover",(function(t){return r.handleMouseOver(t)})),r.on("mouseout",(function(t){return r.handleMouseOut(t)})),r.on(r.volumeControl,["slideractive"],r.sliderActive_),r.on(r.volumeControl,["sliderinactive"],r.sliderInactive_),r}me(e,t);var n=e.prototype;return n.sliderActive_=function(){this.addClass("vjs-slider-active")},n.sliderInactive_=function(){this.removeClass("vjs-slider-active")},n.volumePanelState_=function(){this.volumeControl.hasClass("vjs-hidden")&&this.muteToggle.hasClass("vjs-hidden")&&this.addClass("vjs-hidden"),this.volumeControl.hasClass("vjs-hidden")&&!this.muteToggle.hasClass("vjs-hidden")&&this.addClass("vjs-mute-toggle-only")},n.createEl=function(){var e="vjs-volume-panel-horizontal";return this.options_.inline||(e="vjs-volume-panel-vertical"),t.prototype.createEl.call(this,"div",{className:"vjs-volume-panel vjs-control "+e})},n.dispose=function(){this.handleMouseOut(),t.prototype.dispose.call(this)},n.handleVolumeControlKeyUp=function(t){xe.isEventKey(t,"Esc")&&this.muteToggle.focus()},n.handleMouseOver=function(t){this.addClass("vjs-hover"),Vt(document,"keyup",this.handleKeyPressHandler_)},n.handleMouseOut=function(t){this.removeClass("vjs-hover"),Ut(document,"keyup",this.handleKeyPressHandler_)},n.handleKeyPress=function(t){xe.isEventKey(t,"Esc")&&this.handleMouseOut()},e}(ye);$r.prototype.options_={children:["muteToggle","volumeControl"]},ye.registerComponent("VolumePanel",$r);var Jr=function(t){function e(e,n){var r;return r=t.call(this,e,n)||this,n&&(r.menuButton_=n.menuButton),r.focusedChild_=-1,r.on("keydown",(function(t){return r.handleKeyDown(t)})),r.boundHandleBlur_=function(t){return r.handleBlur(t)},r.boundHandleTapClick_=function(t){return r.handleTapClick(t)},r}me(e,t);var n=e.prototype;return n.addEventListenerForItem=function(t){t instanceof ye&&(this.on(t,"blur",this.boundHandleBlur_),this.on(t,["tap","click"],this.boundHandleTapClick_))},n.removeEventListenerForItem=function(t){t instanceof ye&&(this.off(t,"blur",this.boundHandleBlur_),this.off(t,["tap","click"],this.boundHandleTapClick_))},n.removeChild=function(e){"string"==typeof e&&(e=this.getChild(e)),this.removeEventListenerForItem(e),t.prototype.removeChild.call(this,e)},n.addItem=function(t){var e=this.addChild(t);e&&this.addEventListenerForItem(e)},n.createEl=function(){var e=this.options_.contentElType||"ul";this.contentEl_=Q(e,{className:"vjs-menu-content"}),this.contentEl_.setAttribute("role","menu");var n=t.prototype.createEl.call(this,"div",{append:this.contentEl_,className:"vjs-menu"});return n.appendChild(this.contentEl_),Vt(n,"click",(function(t){t.preventDefault(),t.stopImmediatePropagation()})),n},n.dispose=function(){this.contentEl_=null,this.boundHandleBlur_=null,this.boundHandleTapClick_=null,t.prototype.dispose.call(this)},n.handleBlur=function(t){var e=t.relatedTarget||document.activeElement;if(!this.children().some((function(t){return t.el()===e}))){var n=this.menuButton_;n&&n.buttonPressed_&&e!==n.el().firstChild&&n.unpressButton()}},n.handleTapClick=function(t){if(this.menuButton_){this.menuButton_.unpressButton();var e=this.children();if(!Array.isArray(e))return;var n=e.filter((function(e){return e.el()===t.target}))[0];if(!n)return;"CaptionSettingsMenuItem"!==n.name()&&this.menuButton_.focus()}},n.handleKeyDown=function(t){xe.isEventKey(t,"Left")||xe.isEventKey(t,"Down")?(t.preventDefault(),t.stopPropagation(),this.stepForward()):(xe.isEventKey(t,"Right")||xe.isEventKey(t,"Up"))&&(t.preventDefault(),t.stopPropagation(),this.stepBack())},n.stepForward=function(){var t=0;void 0!==this.focusedChild_&&(t=this.focusedChild_+1),this.focus(t)},n.stepBack=function(){var t=0;void 0!==this.focusedChild_&&(t=this.focusedChild_-1),this.focus(t)},n.focus=function(t){void 0===t&&(t=0);var e=this.children().slice();e.length&&e[0].hasClass("vjs-menu-title")&&e.shift(),e.length>0&&(t<0?t=0:t>=e.length&&(t=e.length-1),this.focusedChild_=t,e[t].el_.focus())},e}(ye);ye.registerComponent("Menu",Jr);var Qr=function(t){function e(e,n){var r;void 0===n&&(n={}),(r=t.call(this,e,n)||this).menuButton_=new _r(e,n),r.menuButton_.controlText(r.controlText_),r.menuButton_.el_.setAttribute("aria-haspopup","true");var o=_r.prototype.buildCSSClass();r.menuButton_.el_.className=r.buildCSSClass()+" "+o,r.menuButton_.removeClass("vjs-control"),r.addChild(r.menuButton_),r.update(),r.enabled_=!0;var i=function(t){return r.handleClick(t)};return r.handleMenuKeyUp_=function(t){return r.handleMenuKeyUp(t)},r.on(r.menuButton_,"tap",i),r.on(r.menuButton_,"click",i),r.on(r.menuButton_,"keydown",(function(t){return r.handleKeyDown(t)})),r.on(r.menuButton_,"mouseenter",(function(){r.addClass("vjs-hover"),r.menu.show(),Vt(document,"keyup",r.handleMenuKeyUp_)})),r.on("mouseleave",(function(t){return r.handleMouseLeave(t)})),r.on("keydown",(function(t){return r.handleSubmenuKeyDown(t)})),r}me(e,t);var n=e.prototype;return n.update=function(){var t=this.createMenu();this.menu&&(this.menu.dispose(),this.removeChild(this.menu)),this.menu=t,this.addChild(t),this.buttonPressed_=!1,this.menuButton_.el_.setAttribute("aria-expanded","false"),this.items&&this.items.length<=this.hideThreshold_?this.hide():this.show()},n.createMenu=function(){var t=new Jr(this.player_,{menuButton:this});if(this.hideThreshold_=0,this.options_.title){var e=Q("li",{className:"vjs-menu-title",textContent:le(this.options_.title),tabIndex:-1}),n=new ye(this.player_,{el:e});t.addItem(n)}if(this.items=this.createItems(),this.items)for(var r=0;r<this.items.length;r++)t.addItem(this.items[r]);return t},n.createItems=function(){},n.createEl=function(){return t.prototype.createEl.call(this,"div",{className:this.buildWrapperCSSClass()},{})},n.buildWrapperCSSClass=function(){var e="vjs-menu-button";return!0===this.options_.inline?e+="-inline":e+="-popup","vjs-menu-button "+e+" "+_r.prototype.buildCSSClass()+" "+t.prototype.buildCSSClass.call(this)},n.buildCSSClass=function(){var e="vjs-menu-button";return!0===this.options_.inline?e+="-inline":e+="-popup","vjs-menu-button "+e+" "+t.prototype.buildCSSClass.call(this)},n.controlText=function(t,e){return void 0===e&&(e=this.menuButton_.el()),this.menuButton_.controlText(t,e)},n.dispose=function(){this.handleMouseLeave(),t.prototype.dispose.call(this)},n.handleClick=function(t){this.buttonPressed_?this.unpressButton():this.pressButton()},n.handleMouseLeave=function(t){this.removeClass("vjs-hover"),Ut(document,"keyup",this.handleMenuKeyUp_)},n.focus=function(){this.menuButton_.focus()},n.blur=function(){this.menuButton_.blur()},n.handleKeyDown=function(t){xe.isEventKey(t,"Esc")||xe.isEventKey(t,"Tab")?(this.buttonPressed_&&this.unpressButton(),xe.isEventKey(t,"Tab")||(t.preventDefault(),this.menuButton_.focus())):(xe.isEventKey(t,"Up")||xe.isEventKey(t,"Down"))&&(this.buttonPressed_||(t.preventDefault(),this.pressButton()))},n.handleMenuKeyUp=function(t){(xe.isEventKey(t,"Esc")||xe.isEventKey(t,"Tab"))&&this.removeClass("vjs-hover")},n.handleSubmenuKeyPress=function(t){this.handleSubmenuKeyDown(t)},n.handleSubmenuKeyDown=function(t){(xe.isEventKey(t,"Esc")||xe.isEventKey(t,"Tab"))&&(this.buttonPressed_&&this.unpressButton(),xe.isEventKey(t,"Tab")||(t.preventDefault(),this.menuButton_.focus()))},n.pressButton=function(){if(this.enabled_){if(this.buttonPressed_=!0,this.menu.show(),this.menu.lockShowing(),this.menuButton_.el_.setAttribute("aria-expanded","true"),Y&&$())return;this.menu.focus()}},n.unpressButton=function(){this.enabled_&&(this.buttonPressed_=!1,this.menu.unlockShowing(),this.menu.hide(),this.menuButton_.el_.setAttribute("aria-expanded","false"))},n.disable=function(){this.unpressButton(),this.enabled_=!1,this.addClass("vjs-disabled"),this.menuButton_.disable()},n.enable=function(){this.enabled_=!0,this.removeClass("vjs-disabled"),this.menuButton_.enable()},e}(ye);ye.registerComponent("MenuButton",Qr);var Zr=function(t){function e(e,n){var r,o=n.tracks;if((r=t.call(this,e,n)||this).items.length<=1&&r.hide(),!o)return ge(r);var i=Xt(ge(r),r.update);return o.addEventListener("removetrack",i),o.addEventListener("addtrack",i),o.addEventListener("labelchange",i),r.player_.on("ready",i),r.player_.on("dispose",(function(){o.removeEventListener("removetrack",i),o.removeEventListener("addtrack",i),o.removeEventListener("labelchange",i)})),r}return me(e,t),e}(Qr);ye.registerComponent("TrackButton",Zr);var to=["Tab","Esc","Up","Down","Right","Left"],eo=function(t){function e(e,n){var r;return(r=t.call(this,e,n)||this).selectable=n.selectable,r.isSelected_=n.selected||!1,r.multiSelectable=n.multiSelectable,r.selected(r.isSelected_),r.selectable?r.multiSelectable?r.el_.setAttribute("role","menuitemcheckbox"):r.el_.setAttribute("role","menuitemradio"):r.el_.setAttribute("role","menuitem"),r}me(e,t);var n=e.prototype;return n.createEl=function(e,n,r){this.nonIconControl=!0;var o=t.prototype.createEl.call(this,"li",b({className:"vjs-menu-item",tabIndex:-1},n),r);return o.replaceChild(Q("span",{className:"vjs-menu-item-text",textContent:this.localize(this.options_.label)}),o.querySelector(".vjs-icon-placeholder")),o},n.handleKeyDown=function(e){to.some((function(t){return xe.isEventKey(e,t)}))||t.prototype.handleKeyDown.call(this,e)},n.handleClick=function(t){this.selected(!0)},n.selected=function(t){this.selectable&&(t?(this.addClass("vjs-selected"),this.el_.setAttribute("aria-checked","true"),this.controlText(", selected"),this.isSelected_=!0):(this.removeClass("vjs-selected"),this.el_.setAttribute("aria-checked","false"),this.controlText(""),this.isSelected_=!1))},e}(hr);ye.registerComponent("MenuItem",eo);var no=function(t){function e(e,n){var r,o=n.track,i=e.textTracks();n.label=o.label||o.language||"Unknown",n.selected="showing"===o.mode,(r=t.call(this,e,n)||this).track=o,r.kinds=(n.kinds||[n.kind||r.track.kind]).filter(Boolean);var a,s=function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];r.handleTracksChange.apply(ge(r),e)},u=function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];r.handleSelectedLanguageChange.apply(ge(r),e)};return e.on(["loadstart","texttrackchange"],s),i.addEventListener("change",s),i.addEventListener("selectedlanguagechange",u),r.on("dispose",(function(){e.off(["loadstart","texttrackchange"],s),i.removeEventListener("change",s),i.removeEventListener("selectedlanguagechange",u)})),void 0===i.onchange&&r.on(["tap","click"],(function(){if("object"!=typeof window.Event)try{a=new window.Event("change")}catch(t){}a||(a=document.createEvent("Event")).initEvent("change",!0,!0),i.dispatchEvent(a)})),r.handleTracksChange(),r}me(e,t);var n=e.prototype;return n.handleClick=function(e){var n=this.track,r=this.player_.textTracks();if(t.prototype.handleClick.call(this,e),r)for(var o=0;o<r.length;o++){var i=r[o];-1!==this.kinds.indexOf(i.kind)&&(i===n?"showing"!==i.mode&&(i.mode="showing"):"disabled"!==i.mode&&(i.mode="disabled"))}},n.handleTracksChange=function(t){var e="showing"===this.track.mode;e!==this.isSelected_&&this.selected(e)},n.handleSelectedLanguageChange=function(t){if("showing"===this.track.mode){var e=this.player_.cache_.selectedLanguage;if(e&&e.enabled&&e.language===this.track.language&&e.kind!==this.track.kind)return;this.player_.cache_.selectedLanguage={enabled:!0,language:this.track.language,kind:this.track.kind}}},n.dispose=function(){this.track=null,t.prototype.dispose.call(this)},e}(eo);ye.registerComponent("TextTrackMenuItem",no);var ro=function(t){function e(e,n){return n.track={player:e,kind:n.kind,kinds:n.kinds,default:!1,mode:"disabled"},n.kinds||(n.kinds=[n.kind]),n.label?n.track.label=n.label:n.track.label=n.kinds.join(" and ")+" off",n.selectable=!0,n.multiSelectable=!1,t.call(this,e,n)||this}me(e,t);var n=e.prototype;return n.handleTracksChange=function(t){for(var e=this.player().textTracks(),n=!0,r=0,o=e.length;r<o;r++){var i=e[r];if(this.options_.kinds.indexOf(i.kind)>-1&&"showing"===i.mode){n=!1;break}}n!==this.isSelected_&&this.selected(n)},n.handleSelectedLanguageChange=function(t){for(var e=this.player().textTracks(),n=!0,r=0,o=e.length;r<o;r++){var i=e[r];if(["captions","descriptions","subtitles"].indexOf(i.kind)>-1&&"showing"===i.mode){n=!1;break}}n&&(this.player_.cache_.selectedLanguage={enabled:!1})},e}(no);ye.registerComponent("OffTextTrackMenuItem",ro);var oo=function(t){function e(e,n){return void 0===n&&(n={}),n.tracks=e.textTracks(),t.call(this,e,n)||this}return me(e,t),e.prototype.createItems=function(t,e){var n;void 0===t&&(t=[]),void 0===e&&(e=no),this.label_&&(n=this.label_+" off"),t.push(new ro(this.player_,{kinds:this.kinds_,kind:this.kind_,label:n})),this.hideThreshold_+=1;var r=this.player_.textTracks();Array.isArray(this.kinds_)||(this.kinds_=[this.kind_]);for(var o=0;o<r.length;o++){var i=r[o];if(this.kinds_.indexOf(i.kind)>-1){var a=new e(this.player_,{track:i,kinds:this.kinds_,kind:this.kind_,selectable:!0,multiSelectable:!1});a.addClass("vjs-"+i.kind+"-menu-item"),t.push(a)}}return t},e}(Zr);ye.registerComponent("TextTrackButton",oo);var io=function(t){function e(e,n){var r,o=n.track,i=n.cue,a=e.currentTime();return n.selectable=!0,n.multiSelectable=!1,n.label=i.text,n.selected=i.startTime<=a&&a<i.endTime,(r=t.call(this,e,n)||this).track=o,r.cue=i,o.addEventListener("cuechange",Xt(ge(r),r.update)),r}me(e,t);var n=e.prototype;return n.handleClick=function(e){t.prototype.handleClick.call(this),this.player_.currentTime(this.cue.startTime),this.update(this.cue.startTime)},n.update=function(t){var e=this.cue,n=this.player_.currentTime();this.selected(e.startTime<=n&&n<e.endTime)},e}(eo);ye.registerComponent("ChaptersTrackMenuItem",io);var ao=function(t){function e(e,n,r){return t.call(this,e,n,r)||this}me(e,t);var n=e.prototype;return n.buildCSSClass=function(){return"vjs-chapters-button "+t.prototype.buildCSSClass.call(this)},n.buildWrapperCSSClass=function(){return"vjs-chapters-button "+t.prototype.buildWrapperCSSClass.call(this)},n.update=function(e){this.track_&&(!e||"addtrack"!==e.type&&"removetrack"!==e.type)||this.setTrack(this.findChaptersTrack()),t.prototype.update.call(this)},n.setTrack=function(t){if(this.track_!==t){if(this.updateHandler_||(this.updateHandler_=this.update.bind(this)),this.track_){var e=this.player_.remoteTextTrackEls().getTrackElementByTrack_(this.track_);e&&e.removeEventListener("load",this.updateHandler_),this.track_=null}if(this.track_=t,this.track_){this.track_.mode="hidden";var n=this.player_.remoteTextTrackEls().getTrackElementByTrack_(this.track_);n&&n.addEventListener("load",this.updateHandler_)}}},n.findChaptersTrack=function(){for(var t=this.player_.textTracks()||[],e=t.length-1;e>=0;e--){var n=t[e];if(n.kind===this.kind_)return n}},n.getMenuCaption=function(){return this.track_&&this.track_.label?this.track_.label:this.localize(le(this.kind_))},n.createMenu=function(){return this.options_.title=this.getMenuCaption(),t.prototype.createMenu.call(this)},n.createItems=function(){var t=[];if(!this.track_)return t;var e=this.track_.cues;if(!e)return t;for(var n=0,r=e.length;n<r;n++){var o=e[n],i=new io(this.player_,{track:this.track_,cue:o});t.push(i)}return t},e}(oo);ao.prototype.kind_="chapters",ao.prototype.controlText_="Chapters",ye.registerComponent("ChaptersButton",ao);var so=function(t){function e(e,n,r){var o;o=t.call(this,e,n,r)||this;var i=e.textTracks(),a=Xt(ge(o),o.handleTracksChange);return i.addEventListener("change",a),o.on("dispose",(function(){i.removeEventListener("change",a)})),o}me(e,t);var n=e.prototype;return n.handleTracksChange=function(t){for(var e=this.player().textTracks(),n=!1,r=0,o=e.length;r<o;r++){var i=e[r];if(i.kind!==this.kind_&&"showing"===i.mode){n=!0;break}}n?this.disable():this.enable()},n.buildCSSClass=function(){return"vjs-descriptions-button "+t.prototype.buildCSSClass.call(this)},n.buildWrapperCSSClass=function(){return"vjs-descriptions-button "+t.prototype.buildWrapperCSSClass.call(this)},e}(oo);so.prototype.kind_="descriptions",so.prototype.controlText_="Descriptions",ye.registerComponent("DescriptionsButton",so);var uo=function(t){function e(e,n,r){return t.call(this,e,n,r)||this}me(e,t);var n=e.prototype;return n.buildCSSClass=function(){return"vjs-subtitles-button "+t.prototype.buildCSSClass.call(this)},n.buildWrapperCSSClass=function(){return"vjs-subtitles-button "+t.prototype.buildWrapperCSSClass.call(this)},e}(oo);uo.prototype.kind_="subtitles",uo.prototype.controlText_="Subtitles",ye.registerComponent("SubtitlesButton",uo);var co=function(t){function e(e,n){var r;return n.track={player:e,kind:n.kind,label:n.kind+" settings",selectable:!1,default:!1,mode:"disabled"},n.selectable=!1,n.name="CaptionSettingsMenuItem",(r=t.call(this,e,n)||this).addClass("vjs-texttrack-settings"),r.controlText(", opens "+n.kind+" settings dialog"),r}return me(e,t),e.prototype.handleClick=function(t){this.player().getChild("textTrackSettings").open()},e}(no);ye.registerComponent("CaptionSettingsMenuItem",co);var lo=function(t){function e(e,n,r){return t.call(this,e,n,r)||this}me(e,t);var n=e.prototype;return n.buildCSSClass=function(){return"vjs-captions-button "+t.prototype.buildCSSClass.call(this)},n.buildWrapperCSSClass=function(){return"vjs-captions-button "+t.prototype.buildWrapperCSSClass.call(this)},n.createItems=function(){var e=[];return this.player().tech_&&this.player().tech_.featuresNativeTextTracks||!this.player().getChild("textTrackSettings")||(e.push(new co(this.player_,{kind:this.kind_})),this.hideThreshold_+=1),t.prototype.createItems.call(this,e)},e}(oo);lo.prototype.kind_="captions",lo.prototype.controlText_="Captions",ye.registerComponent("CaptionsButton",lo);var fo=function(t){function e(){return t.apply(this,arguments)||this}return me(e,t),e.prototype.createEl=function(e,n,r){var o=t.prototype.createEl.call(this,e,n,r),i=o.querySelector(".vjs-menu-item-text");return"captions"===this.options_.track.kind&&(i.appendChild(Q("span",{className:"vjs-icon-placeholder"},{"aria-hidden":!0})),i.appendChild(Q("span",{className:"vjs-control-text",textContent:" "+this.localize("Captions")}))),o},e}(no);ye.registerComponent("SubsCapsMenuItem",fo);var ho=function(t){function e(e,n){var r;return void 0===n&&(n={}),(r=t.call(this,e,n)||this).label_="subtitles",["en","en-us","en-ca","fr-ca"].indexOf(r.player_.language_)>-1&&(r.label_="captions"),r.menuButton_.controlText(le(r.label_)),r}me(e,t);var n=e.prototype;return n.buildCSSClass=function(){return"vjs-subs-caps-button "+t.prototype.buildCSSClass.call(this)},n.buildWrapperCSSClass=function(){return"vjs-subs-caps-button "+t.prototype.buildWrapperCSSClass.call(this)},n.createItems=function(){var e=[];return this.player().tech_&&this.player().tech_.featuresNativeTextTracks||!this.player().getChild("textTrackSettings")||(e.push(new co(this.player_,{kind:this.label_})),this.hideThreshold_+=1),e=t.prototype.createItems.call(this,e,fo)},e}(oo);ho.prototype.kinds_=["captions","subtitles"],ho.prototype.controlText_="Subtitles",ye.registerComponent("SubsCapsButton",ho);var po=function(t){function e(e,n){var r,o=n.track,i=e.audioTracks();n.label=o.label||o.language||"Unknown",n.selected=o.enabled,(r=t.call(this,e,n)||this).track=o,r.addClass("vjs-"+o.kind+"-menu-item");var a=function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];r.handleTracksChange.apply(ge(r),e)};return i.addEventListener("change",a),r.on("dispose",(function(){i.removeEventListener("change",a)})),r}me(e,t);var n=e.prototype;return n.createEl=function(e,n,r){var o=t.prototype.createEl.call(this,e,n,r),i=o.querySelector(".vjs-menu-item-text");return"main-desc"===this.options_.track.kind&&(i.appendChild(t.prototype.createEl.call(this,"span",{className:"vjs-icon-placeholder"},{"aria-hidden":!0})),i.appendChild(t.prototype.createEl.call(this,"span",{className:"vjs-control-text",textContent:this.localize("Descriptions")}))),o},n.handleClick=function(e){t.prototype.handleClick.call(this,e),this.track.enabled=!0},n.handleTracksChange=function(t){this.selected(this.track.enabled)},e}(eo);ye.registerComponent("AudioTrackMenuItem",po);var vo=function(t){function e(e,n){return void 0===n&&(n={}),n.tracks=e.audioTracks(),t.call(this,e,n)||this}me(e,t);var n=e.prototype;return n.buildCSSClass=function(){return"vjs-audio-button "+t.prototype.buildCSSClass.call(this)},n.buildWrapperCSSClass=function(){return"vjs-audio-button "+t.prototype.buildWrapperCSSClass.call(this)},n.createItems=function(t){void 0===t&&(t=[]),this.hideThreshold_=1;for(var e=this.player_.audioTracks(),n=0;n<e.length;n++){var r=e[n];t.push(new po(this.player_,{track:r,selectable:!0,multiSelectable:!1}))}return t},e}(Zr);vo.prototype.controlText_="Audio Track",ye.registerComponent("AudioTrackButton",vo);var yo=function(t){function e(e,n){var r,o=n.rate,i=parseFloat(o,10);return n.label=o,n.selected=i===e.playbackRate(),n.selectable=!0,n.multiSelectable=!1,(r=t.call(this,e,n)||this).label=o,r.rate=i,r.on(e,"ratechange",(function(t){return r.update(t)})),r}me(e,t);var n=e.prototype;return n.handleClick=function(e){t.prototype.handleClick.call(this),this.player().playbackRate(this.rate)},n.update=function(t){this.selected(this.player().playbackRate()===this.rate)},e}(eo);yo.prototype.contentElType="button",ye.registerComponent("PlaybackRateMenuItem",yo);var go=function(t){function e(e,n){var r;return(r=t.call(this,e,n)||this).menuButton_.el_.setAttribute("aria-describedby",r.labelElId_),r.updateVisibility(),r.updateLabel(),r.on(e,"loadstart",(function(t){return r.updateVisibility(t)})),r.on(e,"ratechange",(function(t){return r.updateLabel(t)})),r.on(e,"playbackrateschange",(function(t){return r.handlePlaybackRateschange(t)})),r}me(e,t);var n=e.prototype;return n.createEl=function(){var e=t.prototype.createEl.call(this);return this.labelElId_="vjs-playback-rate-value-label-"+this.id_,this.labelEl_=Q("div",{className:"vjs-playback-rate-value",id:this.labelElId_,textContent:"1x"}),e.appendChild(this.labelEl_),e},n.dispose=function(){this.labelEl_=null,t.prototype.dispose.call(this)},n.buildCSSClass=function(){return"vjs-playback-rate "+t.prototype.buildCSSClass.call(this)},n.buildWrapperCSSClass=function(){return"vjs-playback-rate "+t.prototype.buildWrapperCSSClass.call(this)},n.createItems=function(){for(var t=this.playbackRates(),e=[],n=t.length-1;n>=0;n--)e.push(new yo(this.player(),{rate:t[n]+"x"}));return e},n.updateARIAAttributes=function(){this.el().setAttribute("aria-valuenow",this.player().playbackRate())},n.handleClick=function(t){for(var e=this.player().playbackRate(),n=this.playbackRates(),r=n[0],o=0;o<n.length;o++)if(n[o]>e){r=n[o];break}this.player().playbackRate(r)},n.handlePlaybackRateschange=function(t){this.update()},n.playbackRates=function(){var t=this.player();return t.playbackRates&&t.playbackRates()||[]},n.playbackRateSupported=function(){return this.player().tech_&&this.player().tech_.featuresPlaybackRate&&this.playbackRates()&&this.playbackRates().length>0},n.updateVisibility=function(t){this.playbackRateSupported()?this.removeClass("vjs-hidden"):this.addClass("vjs-hidden")},n.updateLabel=function(t){this.playbackRateSupported()&&(this.labelEl_.textContent=this.player().playbackRate()+"x")},e}(Qr);go.prototype.controlText_="Playback Rate",ye.registerComponent("PlaybackRateMenuButton",go);var mo=function(t){function e(){return t.apply(this,arguments)||this}me(e,t);var n=e.prototype;return n.buildCSSClass=function(){return"vjs-spacer "+t.prototype.buildCSSClass.call(this)},n.createEl=function(e,n,r){return void 0===e&&(e="div"),void 0===n&&(n={}),void 0===r&&(r={}),n.className||(n.className=this.buildCSSClass()),t.prototype.createEl.call(this,e,n,r)},e}(ye);ye.registerComponent("Spacer",mo);var _o=function(t){function e(){return t.apply(this,arguments)||this}me(e,t);var n=e.prototype;return n.buildCSSClass=function(){return"vjs-custom-control-spacer "+t.prototype.buildCSSClass.call(this)},n.createEl=function(){return t.prototype.createEl.call(this,"div",{className:this.buildCSSClass(),textContent:" "})},e}(mo);ye.registerComponent("CustomControlSpacer",_o);var bo=function(t){function e(){return t.apply(this,arguments)||this}return me(e,t),e.prototype.createEl=function(){return t.prototype.createEl.call(this,"div",{className:"vjs-control-bar",dir:"ltr"})},e}(ye);bo.prototype.options_={children:["playToggle","volumePanel","currentTimeDisplay","timeDivider","durationDisplay","progressControl","liveDisplay","seekToLive","remainingTimeDisplay","customControlSpacer","playbackRateMenuButton","chaptersButton","descriptionsButton","subsCapsButton","audioTrackButton","fullscreenToggle"]},"exitPictureInPicture"in document&&bo.prototype.options_.children.splice(bo.prototype.options_.children.length-1,0,"pictureInPictureToggle"),ye.registerComponent("ControlBar",bo);var wo=function(t){function e(e,n){var r;return(r=t.call(this,e,n)||this).on(e,"error",(function(t){return r.open(t)})),r}me(e,t);var n=e.prototype;return n.buildCSSClass=function(){return"vjs-error-display "+t.prototype.buildCSSClass.call(this)},n.content=function(){var t=this.player().error();return t?this.localize(t.message):""},e}(Re);wo.prototype.options_=y({},Re.prototype.options_,{pauseOnOpen:!1,fillAlways:!0,temporary:!1,uncloseable:!0}),ye.registerComponent("ErrorDisplay",wo);var Eo="vjs-text-track-settings",To=["#000","Black"],So=["#00F","Blue"],Oo=["#0FF","Cyan"],Co=["#0F0","Green"],Po=["#F0F","Magenta"],ko=["#F00","Red"],jo=["#FFF","White"],Ao=["#FF0","Yellow"],xo=["1","Opaque"],Ro=["0.5","Semi-Transparent"],Lo=["0","Transparent"],Io={backgroundColor:{selector:".vjs-bg-color > select",id:"captions-background-color-%s",label:"Color",options:[To,jo,ko,Co,So,Ao,Po,Oo]},backgroundOpacity:{selector:".vjs-bg-opacity > select",id:"captions-background-opacity-%s",label:"Transparency",options:[xo,Ro,Lo]},color:{selector:".vjs-fg-color > select",id:"captions-foreground-color-%s",label:"Color",options:[jo,To,ko,Co,So,Ao,Po,Oo]},edgeStyle:{selector:".vjs-edge-style > select",id:"%s",label:"Text Edge Style",options:[["none","None"],["raised","Raised"],["depressed","Depressed"],["uniform","Uniform"],["dropshadow","Dropshadow"]]},fontFamily:{selector:".vjs-font-family > select",id:"captions-font-family-%s",label:"Font Family",options:[["proportionalSansSerif","Proportional Sans-Serif"],["monospaceSansSerif","Monospace Sans-Serif"],["proportionalSerif","Proportional Serif"],["monospaceSerif","Monospace Serif"],["casual","Casual"],["script","Script"],["small-caps","Small Caps"]]},fontPercent:{selector:".vjs-font-percent > select",id:"captions-font-size-%s",label:"Font Size",options:[["0.50","50%"],["0.75","75%"],["1.00","100%"],["1.25","125%"],["1.50","150%"],["1.75","175%"],["2.00","200%"],["3.00","300%"],["4.00","400%"]],default:2,parser:function(t){return"1.00"===t?null:Number(t)}},textOpacity:{selector:".vjs-text-opacity > select",id:"captions-foreground-opacity-%s",label:"Transparency",options:[xo,Ro]},windowColor:{selector:".vjs-window-color > select",id:"captions-window-color-%s",label:"Color"},windowOpacity:{selector:".vjs-window-opacity > select",id:"captions-window-opacity-%s",label:"Transparency",options:[Lo,Ro,xo]}};function No(t,e){if(e&&(t=e(t)),t&&"none"!==t)return t}Io.windowColor.options=Io.backgroundColor.options;var Mo=function(t){function e(e,n){var r;return n.temporary=!1,(r=t.call(this,e,n)||this).updateDisplay=r.updateDisplay.bind(ge(r)),r.fill(),r.hasBeenOpened_=r.hasBeenFilled_=!0,r.endDialog=Q("p",{className:"vjs-control-text",textContent:r.localize("End of dialog window.")}),r.el().appendChild(r.endDialog),r.setDefaults(),void 0===n.persistTextTrackSettings&&(r.options_.persistTextTrackSettings=r.options_.playerOptions.persistTextTrackSettings),r.on(r.$(".vjs-done-button"),"click",(function(){r.saveSettings(),r.close()})),r.on(r.$(".vjs-default-button"),"click",(function(){r.setDefaults(),r.updateDisplay()})),_(Io,(function(t){r.on(r.$(t.selector),"change",r.updateDisplay)})),r.options_.persistTextTrackSettings&&r.restoreSettings(),r}me(e,t);var n=e.prototype;return n.dispose=function(){this.endDialog=null,t.prototype.dispose.call(this)},n.createElSelect_=function(t,e,n){var r=this;void 0===e&&(e=""),void 0===n&&(n="label");var o=Io[t],i=o.id.replace("%s",this.id_),a=[e,i].join(" ").trim();return["<"+n+' id="'+i+'" class="'+("label"===n?"vjs-label":"")+'">',this.localize(o.label),"</"+n+">",'<select aria-labelledby="'+a+'">'].concat(o.options.map((function(t){var e=i+"-"+t[1].replace(/\W+/g,"");return['<option id="'+e+'" value="'+t[0]+'" ','aria-labelledby="'+a+" "+e+'">',r.localize(t[1]),"</option>"].join("")}))).concat("</select>").join("")},n.createElFgColor_=function(){var t="captions-text-legend-"+this.id_;return['<fieldset class="vjs-fg-color vjs-track-setting">','<legend id="'+t+'">',this.localize("Text"),"</legend>",this.createElSelect_("color",t),'<span class="vjs-text-opacity vjs-opacity">',this.createElSelect_("textOpacity",t),"</span>","</fieldset>"].join("")},n.createElBgColor_=function(){var t="captions-background-"+this.id_;return['<fieldset class="vjs-bg-color vjs-track-setting">','<legend id="'+t+'">',this.localize("Background"),"</legend>",this.createElSelect_("backgroundColor",t),'<span class="vjs-bg-opacity vjs-opacity">',this.createElSelect_("backgroundOpacity",t),"</span>","</fieldset>"].join("")},n.createElWinColor_=function(){var t="captions-window-"+this.id_;return['<fieldset class="vjs-window-color vjs-track-setting">','<legend id="'+t+'">',this.localize("Window"),"</legend>",this.createElSelect_("windowColor",t),'<span class="vjs-window-opacity vjs-opacity">',this.createElSelect_("windowOpacity",t),"</span>","</fieldset>"].join("")},n.createElColors_=function(){return Q("div",{className:"vjs-track-settings-colors",innerHTML:[this.createElFgColor_(),this.createElBgColor_(),this.createElWinColor_()].join("")})},n.createElFont_=function(){return Q("div",{className:"vjs-track-settings-font",innerHTML:['<fieldset class="vjs-font-percent vjs-track-setting">',this.createElSelect_("fontPercent","","legend"),"</fieldset>",'<fieldset class="vjs-edge-style vjs-track-setting">',this.createElSelect_("edgeStyle","","legend"),"</fieldset>",'<fieldset class="vjs-font-family vjs-track-setting">',this.createElSelect_("fontFamily","","legend"),"</fieldset>"].join("")})},n.createElControls_=function(){var t=this.localize("restore all settings to the default values");return Q("div",{className:"vjs-track-settings-controls",innerHTML:['<button type="button" class="vjs-default-button" title="'+t+'">',this.localize("Reset"),'<span class="vjs-control-text"> '+t+"</span>","</button>",'<button type="button" class="vjs-done-button">'+this.localize("Done")+"</button>"].join("")})},n.content=function(){return[this.createElColors_(),this.createElFont_(),this.createElControls_()]},n.label=function(){return this.localize("Caption Settings Dialog")},n.description=function(){return this.localize("Beginning of dialog window. Escape will cancel and close the window.")},n.buildCSSClass=function(){return t.prototype.buildCSSClass.call(this)+" vjs-text-track-settings"},n.getValues=function(){var t,e,n,r=this;return e=function(t,e,n){var o,i,a=(o=r.$(e.selector),i=e.parser,No(o.options[o.options.selectedIndex].value,i));return void 0!==a&&(t[n]=a),t},void 0===(n={})&&(n=0),m(t=Io).reduce((function(n,r){return e(n,t[r],r)}),n)},n.setValues=function(t){var e=this;_(Io,(function(n,r){!function(t,e,n){if(e)for(var r=0;r<t.options.length;r++)if(No(t.options[r].value,n)===e){t.selectedIndex=r;break}}(e.$(n.selector),t[r],n.parser)}))},n.setDefaults=function(){var t=this;_(Io,(function(e){var n=e.hasOwnProperty("default")?e.default:0;t.$(e.selector).selectedIndex=n}))},n.restoreSettings=function(){var t;try{t=JSON.parse(window.localStorage.getItem(Eo))}catch(t){h.warn(t)}t&&this.setValues(t)},n.saveSettings=function(){if(this.options_.persistTextTrackSettings){var t=this.getValues();try{Object.keys(t).length?window.localStorage.setItem(Eo,JSON.stringify(t)):window.localStorage.removeItem(Eo)}catch(t){h.warn(t)}}},n.updateDisplay=function(){var t=this.player_.getChild("textTrackDisplay");t&&t.updateDisplay()},n.conditionalBlur_=function(){this.previouslyActiveEl_=null;var t=this.player_.controlBar,e=t&&t.subsCapsButton,n=t&&t.captionsButton;e?e.focus():n&&n.focus()},e}(Re);ye.registerComponent("TextTrackSettings",Mo);var Do=function(t){function e(e,n){var r,o=n.ResizeObserver||window.ResizeObserver;null===n.ResizeObserver&&(o=!1);var i=fe({createEl:!o,reportTouchActivity:!1},n);return(r=t.call(this,e,i)||this).ResizeObserver=n.ResizeObserver||window.ResizeObserver,r.loadListener_=null,r.resizeObserver_=null,r.debouncedHandler_=function(t,e,n,r){var o;void 0===r&&(r=window);var i=function(){var i=this,a=arguments,s=function(){o=null,s=null,n||t.apply(i,a)};!o&&n&&t.apply(i,a),r.clearTimeout(o),o=r.setTimeout(s,e)};return i.cancel=function(){r.clearTimeout(o),o=null},i}((function(){r.resizeHandler()}),100,!1,ge(r)),o?(r.resizeObserver_=new r.ResizeObserver(r.debouncedHandler_),r.resizeObserver_.observe(e.el())):(r.loadListener_=function(){if(r.el_&&r.el_.contentWindow){var t=r.debouncedHandler_,e=r.unloadListener_=function(){Ut(this,"resize",t),Ut(this,"unload",e),e=null};Vt(r.el_.contentWindow,"unload",e),Vt(r.el_.contentWindow,"resize",t)}},r.one("load",r.loadListener_)),r}me(e,t);var n=e.prototype;return n.createEl=function(){return t.prototype.createEl.call(this,"iframe",{className:"vjs-resize-manager",tabIndex:-1},{"aria-hidden":"true"})},n.resizeHandler=function(){this.player_&&this.player_.trigger&&this.player_.trigger("playerresize")},n.dispose=function(){this.debouncedHandler_&&this.debouncedHandler_.cancel(),this.resizeObserver_&&(this.player_.el()&&this.resizeObserver_.unobserve(this.player_.el()),this.resizeObserver_.disconnect()),this.loadListener_&&this.off("load",this.loadListener_),this.el_&&this.el_.contentWindow&&this.unloadListener_&&this.unloadListener_.call(this.el_.contentWindow),this.ResizeObserver=null,this.resizeObserver=null,this.debouncedHandler_=null,this.loadListener_=null,t.prototype.dispose.call(this)},e}(ye);ye.registerComponent("ResizeManager",Do);var Fo={trackingThreshold:20,liveTolerance:15},Bo=function(t){function e(e,n){var r,o=fe(Fo,n,{createEl:!1});return(r=t.call(this,e,o)||this).handleVisibilityChange_=function(t){return r.handleVisibilityChange(t)},r.trackLiveHandler_=function(){return r.trackLive_()},r.handlePlay_=function(t){return r.handlePlay(t)},r.handleFirstTimeupdate_=function(t){return r.handleFirstTimeupdate(t)},r.handleSeeked_=function(t){return r.handleSeeked(t)},r.seekToLiveEdge_=function(t){return r.seekToLiveEdge(t)},r.reset_(),r.on(r.player_,"durationchange",(function(t){return r.handleDurationchange(t)})),r.one(r.player_,"canplay",(function(){return r.toggleTracking()})),D&&"hidden"in document&&"visibilityState"in document&&r.on(document,"visibilitychange",r.handleVisibilityChange_),r}me(e,t);var n=e.prototype;return n.handleVisibilityChange=function(){this.player_.duration()===1/0&&(document.hidden?this.stopTracking():this.startTracking())},n.trackLive_=function(){var t=this.player_.seekable();if(t&&t.length){var e=Number(window.performance.now().toFixed(4)),n=-1===this.lastTime_?0:(e-this.lastTime_)/1e3;this.lastTime_=e,this.pastSeekEnd_=this.pastSeekEnd()+n;var r=this.liveCurrentTime(),o=this.player_.currentTime(),i=this.player_.paused()||this.seekedBehindLive_||Math.abs(r-o)>this.options_.liveTolerance;this.timeupdateSeen_&&r!==1/0||(i=!1),i!==this.behindLiveEdge_&&(this.behindLiveEdge_=i,this.trigger("liveedgechange"))}},n.handleDurationchange=function(){this.toggleTracking()},n.toggleTracking=function(){this.player_.duration()===1/0&&this.liveWindow()>=this.options_.trackingThreshold?(this.player_.options_.liveui&&this.player_.addClass("vjs-liveui"),this.startTracking()):(this.player_.removeClass("vjs-liveui"),this.stopTracking())},n.startTracking=function(){this.isTracking()||(this.timeupdateSeen_||(this.timeupdateSeen_=this.player_.hasStarted()),this.trackingInterval_=this.setInterval(this.trackLiveHandler_,Kt),this.trackLive_(),this.on(this.player_,["play","pause"],this.trackLiveHandler_),this.timeupdateSeen_?this.on(this.player_,"seeked",this.handleSeeked_):(this.one(this.player_,"play",this.handlePlay_),this.one(this.player_,"timeupdate",this.handleFirstTimeupdate_)))},n.handleFirstTimeupdate=function(){this.timeupdateSeen_=!0,this.on(this.player_,"seeked",this.handleSeeked_)},n.handleSeeked=function(){var t=Math.abs(this.liveCurrentTime()-this.player_.currentTime());this.seekedBehindLive_=this.nextSeekedFromUser_&&t>2,this.nextSeekedFromUser_=!1,this.trackLive_()},n.handlePlay=function(){this.one(this.player_,"timeupdate",this.seekToLiveEdge_)},n.reset_=function(){this.lastTime_=-1,this.pastSeekEnd_=0,this.lastSeekEnd_=-1,this.behindLiveEdge_=!0,this.timeupdateSeen_=!1,this.seekedBehindLive_=!1,this.nextSeekedFromUser_=!1,this.clearInterval(this.trackingInterval_),this.trackingInterval_=null,this.off(this.player_,["play","pause"],this.trackLiveHandler_),this.off(this.player_,"seeked",this.handleSeeked_),this.off(this.player_,"play",this.handlePlay_),this.off(this.player_,"timeupdate",this.handleFirstTimeupdate_),this.off(this.player_,"timeupdate",this.seekToLiveEdge_)},n.nextSeekedFromUser=function(){this.nextSeekedFromUser_=!0},n.stopTracking=function(){this.isTracking()&&(this.reset_(),this.trigger("liveedgechange"))},n.seekableEnd=function(){for(var t=this.player_.seekable(),e=[],n=t?t.length:0;n--;)e.push(t.end(n));return e.length?e.sort()[e.length-1]:1/0},n.seekableStart=function(){for(var t=this.player_.seekable(),e=[],n=t?t.length:0;n--;)e.push(t.start(n));return e.length?e.sort()[0]:0},n.liveWindow=function(){var t=this.liveCurrentTime();return t===1/0?0:t-this.seekableStart()},n.isLive=function(){return this.isTracking()},n.atLiveEdge=function(){return!this.behindLiveEdge()},n.liveCurrentTime=function(){return this.pastSeekEnd()+this.seekableEnd()},n.pastSeekEnd=function(){var t=this.seekableEnd();return-1!==this.lastSeekEnd_&&t!==this.lastSeekEnd_&&(this.pastSeekEnd_=0),this.lastSeekEnd_=t,this.pastSeekEnd_},n.behindLiveEdge=function(){return this.behindLiveEdge_},n.isTracking=function(){return"number"==typeof this.trackingInterval_},n.seekToLiveEdge=function(){this.seekedBehindLive_=!1,this.atLiveEdge()||(this.nextSeekedFromUser_=!1,this.player_.currentTime(this.liveCurrentTime()))},n.dispose=function(){this.off(document,"visibilitychange",this.handleVisibilityChange_),this.stopTracking(),t.prototype.dispose.call(this)},e}(ye);ye.registerComponent("LiveTracker",Bo);var Vo,Uo=function(t){var e=t.el();if(e.hasAttribute("src"))return t.triggerSourceset(e.src),!0;var n=t.$$("source"),r=[],o="";if(!n.length)return!1;for(var i=0;i<n.length;i++){var a=n[i].src;a&&-1===r.indexOf(a)&&r.push(a)}return!!r.length&&(1===r.length&&(o=r[0]),t.triggerSourceset(o),!0)},Ho=Object.defineProperty({},"innerHTML",{get:function(){return this.cloneNode(!0).innerHTML},set:function(t){var e=document.createElement(this.nodeName.toLowerCase());e.innerHTML=t;for(var n=document.createDocumentFragment();e.childNodes.length;)n.appendChild(e.childNodes[0]);return this.innerText="",window.Element.prototype.appendChild.call(this,n),this.innerHTML}}),Yo=function(t,e){for(var n={},r=0;r<t.length&&!((n=Object.getOwnPropertyDescriptor(t[r],e))&&n.set&&n.get);r++);return n.enumerable=!0,n.configurable=!0,n},zo=function(t){var e=t.el();if(!e.resetSourceWatch_){var n={},r=function(t){return Yo([t.el(),window.HTMLMediaElement.prototype,window.Element.prototype,Ho],"innerHTML")}(t),o=function(n){return function(){for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];var a=n.apply(e,o);return Uo(t),a}};["append","appendChild","insertAdjacentHTML"].forEach((function(t){e[t]&&(n[t]=e[t],e[t]=o(n[t]))})),Object.defineProperty(e,"innerHTML",fe(r,{set:o(r.set)})),e.resetSourceWatch_=function(){e.resetSourceWatch_=null,Object.keys(n).forEach((function(t){e[t]=n[t]})),Object.defineProperty(e,"innerHTML",r)},t.one("sourceset",e.resetSourceWatch_)}},Wo=Object.defineProperty({},"src",{get:function(){return this.hasAttribute("src")?Xe(window.Element.prototype.getAttribute.call(this,"src")):""},set:function(t){return window.Element.prototype.setAttribute.call(this,"src",t),t}}),Go=function(t){if(t.featuresSourceset){var e=t.el();if(!e.resetSourceset_){var n=function(t){return Yo([t.el(),window.HTMLMediaElement.prototype,Wo],"src")}(t),r=e.setAttribute,o=e.load;Object.defineProperty(e,"src",fe(n,{set:function(r){var o=n.set.call(e,r);return t.triggerSourceset(e.src),o}})),e.setAttribute=function(n,o){var i=r.call(e,n,o);return/src/i.test(n)&&t.triggerSourceset(e.src),i},e.load=function(){var n=o.call(e);return Uo(t)||(t.triggerSourceset(""),zo(t)),n},e.currentSrc?t.triggerSourceset(e.currentSrc):Uo(t)||zo(t),e.resetSourceset_=function(){e.resetSourceset_=null,e.load=o,e.setAttribute=r,Object.defineProperty(e,"src",n),e.resetSourceWatch_&&e.resetSourceWatch_()}}}},Ko=function(t,e,n,r){void 0===r&&(r=!0);var o=function(n){return Object.defineProperty(t,e,{value:n,enumerable:!0,writable:!0})},i={configurable:!0,enumerable:!0,get:function(){var t=n();return o(t),t}};return r&&(i.set=o),Object.defineProperty(t,e,i)},Xo=function(t){function e(e,n){var r;r=t.call(this,e,n)||this;var o=e.source,i=!1;if(o&&(r.el_.currentSrc!==o.src||e.tag&&3===e.tag.initNetworkState_)?r.setSource(o):r.handleLateInit_(r.el_),e.enableSourceset&&r.setupSourcesetHandling_(),r.isScrubbing_=!1,r.el_.hasChildNodes()){for(var a=r.el_.childNodes,s=a.length,u=[];s--;){var c=a[s];"track"===c.nodeName.toLowerCase()&&(r.featuresNativeTextTracks?(r.remoteTextTrackEls().addTrackElement_(c),r.remoteTextTracks().addTrack(c.track),r.textTracks().addTrack(c.track),i||r.el_.hasAttribute("crossorigin")||!$e(c.src)||(i=!0)):u.push(c))}for(var l=0;l<u.length;l++)r.el_.removeChild(u[l])}return r.proxyNativeTracks_(),r.featuresNativeTextTracks&&i&&h.warn("Text Tracks are being loaded from another origin but the crossorigin attribute isn't used.\nThis may prevent text tracks from loading."),r.restoreMetadataTracksInIOSNativePlayer_(),(V||H||R)&&!0===e.nativeControlsForTouch&&r.setControls(!0),r.proxyWebkitFullscreen_(),r.triggerReady(),r}me(e,t);var n=e.prototype;return n.dispose=function(){this.el_&&this.el_.resetSourceset_&&this.el_.resetSourceset_(),e.disposeMediaElement(this.el_),this.options_=null,t.prototype.dispose.call(this)},n.setupSourcesetHandling_=function(){Go(this)},n.restoreMetadataTracksInIOSNativePlayer_=function(){var t,e=this.textTracks(),n=function(){t=[];for(var n=0;n<e.length;n++){var r=e[n];"metadata"===r.kind&&t.push({track:r,storedMode:r.mode})}};n(),e.addEventListener("change",n),this.on("dispose",(function(){return e.removeEventListener("change",n)}));var r=function n(){for(var r=0;r<t.length;r++){var o=t[r];"disabled"===o.track.mode&&o.track.mode!==o.storedMode&&(o.track.mode=o.storedMode)}e.removeEventListener("change",n)};this.on("webkitbeginfullscreen",(function(){e.removeEventListener("change",n),e.removeEventListener("change",r),e.addEventListener("change",r)})),this.on("webkitendfullscreen",(function(){e.removeEventListener("change",n),e.addEventListener("change",n),e.removeEventListener("change",r)}))},n.overrideNative_=function(t,e){var n=this;if(e===this["featuresNative"+t+"Tracks"]){var r=t.toLowerCase();this[r+"TracksListeners_"]&&Object.keys(this[r+"TracksListeners_"]).forEach((function(t){n.el()[r+"Tracks"].removeEventListener(t,n[r+"TracksListeners_"][t])})),this["featuresNative"+t+"Tracks"]=!e,this[r+"TracksListeners_"]=null,this.proxyNativeTracksForType_(r)}},n.overrideNativeAudioTracks=function(t){this.overrideNative_("Audio",t)},n.overrideNativeVideoTracks=function(t){this.overrideNative_("Video",t)},n.proxyNativeTracksForType_=function(t){var e=this,n=dn[t],r=this.el()[n.getterName],o=this[n.getterName]();if(this["featuresNative"+n.capitalName+"Tracks"]&&r&&r.addEventListener){var i={change:function(n){var r={type:"change",target:o,currentTarget:o,srcElement:o};o.trigger(r),"text"===t&&e[vn.remoteText.getterName]().trigger(r)},addtrack:function(t){o.addTrack(t.track)},removetrack:function(t){o.removeTrack(t.track)}},a=function(){for(var t=[],e=0;e<o.length;e++){for(var n=!1,i=0;i<r.length;i++)if(r[i]===o[e]){n=!0;break}n||t.push(o[e])}for(;t.length;)o.removeTrack(t.shift())};this[n.getterName+"Listeners_"]=i,Object.keys(i).forEach((function(t){var n=i[t];r.addEventListener(t,n),e.on("dispose",(function(e){return r.removeEventListener(t,n)}))})),this.on("loadstart",a),this.on("dispose",(function(t){return e.off("loadstart",a)}))}},n.proxyNativeTracks_=function(){var t=this;dn.names.forEach((function(e){t.proxyNativeTracksForType_(e)}))},n.createEl=function(){var t=this.options_.tag;if(!t||!this.options_.playerElIngest&&!this.movingMediaElementInDOM){if(t){var n=t.cloneNode(!0);t.parentNode&&t.parentNode.insertBefore(n,t),e.disposeMediaElement(t),t=n}else{t=document.createElement("video");var r=fe({},this.options_.tag&&at(this.options_.tag));V&&!0===this.options_.nativeControlsForTouch||delete r.controls,it(t,b(r,{id:this.options_.techId,class:"vjs-tech"}))}t.playerId=this.options_.playerId}void 0!==this.options_.preload&&ut(t,"preload",this.options_.preload),void 0!==this.options_.disablePictureInPicture&&(t.disablePictureInPicture=this.options_.disablePictureInPicture);for(var o=["loop","muted","playsinline","autoplay"],i=0;i<o.length;i++){var a=o[i],s=this.options_[a];void 0!==s&&(s?ut(t,a,a):ct(t,a),t[a]=s)}return t},n.handleLateInit_=function(t){if(0!==t.networkState&&3!==t.networkState){if(0===t.readyState){var e=!1,n=function(){e=!0};this.on("loadstart",n);var r=function(){e||this.trigger("loadstart")};return this.on("loadedmetadata",r),void this.ready((function(){this.off("loadstart",n),this.off("loadedmetadata",r),e||this.trigger("loadstart")}))}var o=["loadstart"];o.push("loadedmetadata"),t.readyState>=2&&o.push("loadeddata"),t.readyState>=3&&o.push("canplay"),t.readyState>=4&&o.push("canplaythrough"),this.ready((function(){o.forEach((function(t){this.trigger(t)}),this)}))}},n.setScrubbing=function(t){this.isScrubbing_=t},n.scrubbing=function(){return this.isScrubbing_},n.setCurrentTime=function(t){try{this.isScrubbing_&&this.el_.fastSeek&&z?this.el_.fastSeek(t):this.el_.currentTime=t}catch(t){h(t,"Video is not ready. (Video.js)")}},n.duration=function(){var t=this;return this.el_.duration===1/0&&A&&N&&0===this.el_.currentTime?(this.on("timeupdate",(function e(){t.el_.currentTime>0&&(t.el_.duration===1/0&&t.trigger("durationchange"),t.off("timeupdate",e))})),NaN):this.el_.duration||NaN},n.width=function(){return this.el_.offsetWidth},n.height=function(){return this.el_.offsetHeight},n.proxyWebkitFullscreen_=function(){var t=this;if("webkitDisplayingFullscreen"in this.el_){var e=function(){this.trigger("fullscreenchange",{isFullscreen:!1})},n=function(){"webkitPresentationMode"in this.el_&&"picture-in-picture"!==this.el_.webkitPresentationMode&&(this.one("webkitendfullscreen",e),this.trigger("fullscreenchange",{isFullscreen:!0,nativeIOSFullscreen:!0}))};this.on("webkitbeginfullscreen",n),this.on("dispose",(function(){t.off("webkitbeginfullscreen",n),t.off("webkitendfullscreen",e)}))}},n.supportsFullScreen=function(){if("function"==typeof this.el_.webkitEnterFullScreen){var t=window.navigator&&window.navigator.userAgent||"";if(/Android/.test(t)||!/Chrome|Mac OS X 10.5/.test(t))return!0}return!1},n.enterFullScreen=function(){var t=this.el_;if(t.paused&&t.networkState<=t.HAVE_METADATA)Pe(this.el_.play()),this.setTimeout((function(){t.pause();try{t.webkitEnterFullScreen()}catch(t){this.trigger("fullscreenerror",t)}}),0);else try{t.webkitEnterFullScreen()}catch(t){this.trigger("fullscreenerror",t)}},n.exitFullScreen=function(){this.el_.webkitDisplayingFullscreen?this.el_.webkitExitFullScreen():this.trigger("fullscreenerror",new Error("The video is not fullscreen"))},n.requestPictureInPicture=function(){return this.el_.requestPictureInPicture()},n.src=function(t){if(void 0===t)return this.el_.src;this.setSrc(t)},n.reset=function(){e.resetMediaElement(this.el_)},n.currentSrc=function(){return this.currentSource_?this.currentSource_.src:this.el_.currentSrc},n.setControls=function(t){this.el_.controls=!!t},n.addTextTrack=function(e,n,r){return this.featuresNativeTextTracks?this.el_.addTextTrack(e,n,r):t.prototype.addTextTrack.call(this,e,n,r)},n.createRemoteTextTrack=function(e){if(!this.featuresNativeTextTracks)return t.prototype.createRemoteTextTrack.call(this,e);var n=document.createElement("track");return e.kind&&(n.kind=e.kind),e.label&&(n.label=e.label),(e.language||e.srclang)&&(n.srclang=e.language||e.srclang),e.default&&(n.default=e.default),e.id&&(n.id=e.id),e.src&&(n.src=e.src),n},n.addRemoteTextTrack=function(e,n){var r=t.prototype.addRemoteTextTrack.call(this,e,n);return this.featuresNativeTextTracks&&this.el().appendChild(r),r},n.removeRemoteTextTrack=function(e){if(t.prototype.removeRemoteTextTrack.call(this,e),this.featuresNativeTextTracks)for(var n=this.$$("track"),r=n.length;r--;)e!==n[r]&&e!==n[r].track||this.el().removeChild(n[r])},n.getVideoPlaybackQuality=function(){if("function"==typeof this.el().getVideoPlaybackQuality)return this.el().getVideoPlaybackQuality();var t={};return void 0!==this.el().webkitDroppedFrameCount&&void 0!==this.el().webkitDecodedFrameCount&&(t.droppedVideoFrames=this.el().webkitDroppedFrameCount,t.totalVideoFrames=this.el().webkitDecodedFrameCount),window.performance&&"function"==typeof window.performance.now?t.creationTime=window.performance.now():window.performance&&window.performance.timing&&"number"==typeof window.performance.timing.navigationStart&&(t.creationTime=window.Date.now()-window.performance.timing.navigationStart),t},e}($n);Ko(Xo,"TEST_VID",(function(){if(X()){var t=document.createElement("video"),e=document.createElement("track");return e.kind="captions",e.srclang="en",e.label="English",t.appendChild(e),t}})),Xo.isSupported=function(){try{Xo.TEST_VID.volume=.5}catch(t){return!1}return!(!Xo.TEST_VID||!Xo.TEST_VID.canPlayType)},Xo.canPlayType=function(t){return Xo.TEST_VID.canPlayType(t)},Xo.canPlaySource=function(t,e){return Xo.canPlayType(t.type)},Xo.canControlVolume=function(){try{var t=Xo.TEST_VID.volume;return Xo.TEST_VID.volume=t/2+.1,t!==Xo.TEST_VID.volume}catch(t){return!1}},Xo.canMuteVolume=function(){try{var t=Xo.TEST_VID.muted;return Xo.TEST_VID.muted=!t,Xo.TEST_VID.muted?ut(Xo.TEST_VID,"muted","muted"):ct(Xo.TEST_VID,"muted"),t!==Xo.TEST_VID.muted}catch(t){return!1}},Xo.canControlPlaybackRate=function(){if(A&&N&&M<58)return!1;try{var t=Xo.TEST_VID.playbackRate;return Xo.TEST_VID.playbackRate=t/2+.1,t!==Xo.TEST_VID.playbackRate}catch(t){return!1}},Xo.canOverrideAttributes=function(){try{var t=function(){};Object.defineProperty(document.createElement("video"),"src",{get:t,set:t}),Object.defineProperty(document.createElement("audio"),"src",{get:t,set:t}),Object.defineProperty(document.createElement("video"),"innerHTML",{get:t,set:t}),Object.defineProperty(document.createElement("audio"),"innerHTML",{get:t,set:t})}catch(t){return!1}return!0},Xo.supportsNativeTextTracks=function(){return z||Y&&N},Xo.supportsNativeVideoTracks=function(){return!(!Xo.TEST_VID||!Xo.TEST_VID.videoTracks)},Xo.supportsNativeAudioTracks=function(){return!(!Xo.TEST_VID||!Xo.TEST_VID.audioTracks)},Xo.Events=["loadstart","suspend","abort","error","emptied","stalled","loadedmetadata","loadeddata","canplay","canplaythrough","playing","waiting","seeking","seeked","ended","durationchange","timeupdate","progress","play","pause","ratechange","resize","volumechange"],[["featuresVolumeControl","canControlVolume"],["featuresMuteControl","canMuteVolume"],["featuresPlaybackRate","canControlPlaybackRate"],["featuresSourceset","canOverrideAttributes"],["featuresNativeTextTracks","supportsNativeTextTracks"],["featuresNativeVideoTracks","supportsNativeVideoTracks"],["featuresNativeAudioTracks","supportsNativeAudioTracks"]].forEach((function(t){var e=t[0],n=t[1];Ko(Xo.prototype,e,(function(){return Xo[n]()}),!0)})),Xo.prototype.movingMediaElementInDOM=!Y,Xo.prototype.featuresFullscreenResize=!0,Xo.prototype.featuresProgressEvents=!0,Xo.prototype.featuresTimeupdateEvents=!0,Xo.patchCanPlayType=function(){x>=4&&!L&&!N&&(Vo=Xo.TEST_VID&&Xo.TEST_VID.constructor.prototype.canPlayType,Xo.TEST_VID.constructor.prototype.canPlayType=function(t){return t&&/^application\/(?:x-|vnd\.apple\.)mpegurl/i.test(t)?"maybe":Vo.call(this,t)})},Xo.unpatchCanPlayType=function(){var t=Xo.TEST_VID.constructor.prototype.canPlayType;return Vo&&(Xo.TEST_VID.constructor.prototype.canPlayType=Vo),t},Xo.patchCanPlayType(),Xo.disposeMediaElement=function(t){if(t){for(t.parentNode&&t.parentNode.removeChild(t);t.hasChildNodes();)t.removeChild(t.firstChild);t.removeAttribute("src"),"function"==typeof t.load&&function(){try{t.load()}catch(t){}}()}},Xo.resetMediaElement=function(t){if(t){for(var e=t.querySelectorAll("source"),n=e.length;n--;)t.removeChild(e[n]);t.removeAttribute("src"),"function"==typeof t.load&&function(){try{t.load()}catch(t){}}()}},["muted","defaultMuted","autoplay","controls","loop","playsinline"].forEach((function(t){Xo.prototype[t]=function(){return this.el_[t]||this.el_.hasAttribute(t)}})),["muted","defaultMuted","autoplay","loop","playsinline"].forEach((function(t){Xo.prototype["set"+le(t)]=function(e){this.el_[t]=e,e?this.el_.setAttribute(t,t):this.el_.removeAttribute(t)}})),["paused","currentTime","buffered","volume","poster","preload","error","seeking","seekable","ended","playbackRate","defaultPlaybackRate","disablePictureInPicture","played","networkState","readyState","videoWidth","videoHeight","crossOrigin"].forEach((function(t){Xo.prototype[t]=function(){return this.el_[t]}})),["volume","src","poster","preload","playbackRate","defaultPlaybackRate","disablePictureInPicture","crossOrigin"].forEach((function(t){Xo.prototype["set"+le(t)]=function(e){this.el_[t]=e}})),["pause","load","play"].forEach((function(t){Xo.prototype[t]=function(){return this.el_[t]()}})),$n.withSourceHandlers(Xo),Xo.nativeSourceHandler={},Xo.nativeSourceHandler.canPlayType=function(t){try{return Xo.TEST_VID.canPlayType(t)}catch(t){return""}},Xo.nativeSourceHandler.canHandleSource=function(t,e){if(t.type)return Xo.nativeSourceHandler.canPlayType(t.type);if(t.src){var n=qe(t.src);return Xo.nativeSourceHandler.canPlayType("video/"+n)}return""},Xo.nativeSourceHandler.handleSource=function(t,e,n){e.setSrc(t.src)},Xo.nativeSourceHandler.dispose=function(){},Xo.registerSourceHandler(Xo.nativeSourceHandler),$n.registerTech("Html5",Xo);var qo=["progress","abort","suspend","emptied","stalled","loadedmetadata","loadeddata","timeupdate","resize","volumechange","texttrackchange"],$o={canplay:"CanPlay",canplaythrough:"CanPlayThrough",playing:"Playing",seeked:"Seeked"},Jo=["tiny","xsmall","small","medium","large","xlarge","huge"],Qo={};Jo.forEach((function(t){var e="x"===t.charAt(0)?"x-"+t.substring(1):t;Qo[t]="vjs-layout-"+e}));var Zo={tiny:210,xsmall:320,small:425,medium:768,large:1440,xlarge:2560,huge:1/0},ti=function(t){function e(r,o,i){var s;if(r.id=r.id||o.id||"vjs_video_"+Lt(),(o=b(e.getTagSettings(r),o)).initChildren=!1,o.createEl=!1,o.evented=!1,o.reportTouchActivity=!1,!o.language)if("function"==typeof r.closest){var u=r.closest("[lang]");u&&u.getAttribute&&(o.language=u.getAttribute("lang"))}else for(var c=r;c&&1===c.nodeType;){if(at(c).hasOwnProperty("lang")){o.language=c.getAttribute("lang");break}c=c.parentNode}if((s=t.call(this,null,o,i)||this).boundDocumentFullscreenChange_=function(t){return s.documentFullscreenChange_(t)},s.boundFullWindowOnEscKey_=function(t){return s.fullWindowOnEscKey(t)},s.boundUpdateStyleEl_=function(t){return s.updateStyleEl_(t)},s.boundApplyInitTime_=function(t){return s.applyInitTime_(t)},s.boundUpdateCurrentBreakpoint_=function(t){return s.updateCurrentBreakpoint_(t)},s.boundHandleTechClick_=function(t){return s.handleTechClick_(t)},s.boundHandleTechDoubleClick_=function(t){return s.handleTechDoubleClick_(t)},s.boundHandleTechTouchStart_=function(t){return s.handleTechTouchStart_(t)},s.boundHandleTechTouchMove_=function(t){return s.handleTechTouchMove_(t)},s.boundHandleTechTouchEnd_=function(t){return s.handleTechTouchEnd_(t)},s.boundHandleTechTap_=function(t){return s.handleTechTap_(t)},s.isFullscreen_=!1,s.log=p(s.id_),s.fsApi_=a,s.isPosterFromTech_=!1,s.queuedCallbacks_=[],s.isReady_=!1,s.hasStarted_=!1,s.userActive_=!1,s.debugEnabled_=!1,!s.options_||!s.options_.techOrder||!s.options_.techOrder.length)throw new Error("No techOrder specified. Did you overwrite videojs.options instead of just changing the properties you want to override?");if(s.tag=r,s.tagAttributes=r&&at(r),s.language(s.options_.language),o.languages){var l={};Object.getOwnPropertyNames(o.languages).forEach((function(t){l[t.toLowerCase()]=o.languages[t]})),s.languages_=l}else s.languages_=e.prototype.options_.languages;s.resetCache_(),s.poster_=o.poster||"",s.controls_=!!o.controls,r.controls=!1,r.removeAttribute("controls"),s.changingSrc_=!1,s.playCallbacks_=[],s.playTerminatedQueue_=[],r.hasAttribute("autoplay")?s.autoplay(!0):s.autoplay(s.options_.autoplay),o.plugins&&Object.keys(o.plugins).forEach((function(t){if("function"!=typeof s[t])throw new Error('plugin "'+t+'" does not exist')})),s.scrubbing_=!1,s.el_=s.createEl(),ae(ge(s),{eventBusKey:"el_"}),s.fsApi_.requestFullscreen&&(Vt(document,s.fsApi_.fullscreenchange,s.boundDocumentFullscreenChange_),s.on(s.fsApi_.fullscreenchange,s.boundDocumentFullscreenChange_)),s.fluid_&&s.on(["playerreset","resize"],s.boundUpdateStyleEl_);var f=fe(s.options_);o.plugins&&Object.keys(o.plugins).forEach((function(t){s[t](o.plugins[t])})),o.debug&&s.debug(!0),s.options_.playerOptions=f,s.middleware_=[],s.playbackRates(o.playbackRates),s.initChildren(),s.isAudio("audio"===r.nodeName.toLowerCase()),s.controls()?s.addClass("vjs-controls-enabled"):s.addClass("vjs-controls-disabled"),s.el_.setAttribute("role","region"),s.isAudio()?s.el_.setAttribute("aria-label",s.localize("Audio Player")):s.el_.setAttribute("aria-label",s.localize("Video Player")),s.isAudio()&&s.addClass("vjs-audio"),s.flexNotSupported_()&&s.addClass("vjs-no-flex"),V&&s.addClass("vjs-touch-enabled"),Y||s.addClass("vjs-workinghover"),e.players[s.id_]=ge(s);var h=n.split(".")[0];return s.addClass("vjs-v"+h),s.userActive(!0),s.reportUserActivity(),s.one("play",(function(t){return s.listenForUserActivity_(t)})),s.on("stageclick",(function(t){return s.handleStageClick_(t)})),s.on("keydown",(function(t){return s.handleKeyDown(t)})),s.on("languagechange",(function(t){return s.handleLanguagechange(t)})),s.breakpoints(s.options_.breakpoints),s.responsive(s.options_.responsive),s}me(e,t);var r=e.prototype;return r.dispose=function(){var n=this;this.trigger("dispose"),this.off("dispose"),Ut(document,this.fsApi_.fullscreenchange,this.boundDocumentFullscreenChange_),Ut(document,"keydown",this.boundFullWindowOnEscKey_),this.styleEl_&&this.styleEl_.parentNode&&(this.styleEl_.parentNode.removeChild(this.styleEl_),this.styleEl_=null),e.players[this.id_]=null,this.tag&&this.tag.player&&(this.tag.player=null),this.el_&&this.el_.player&&(this.el_.player=null),this.tech_&&(this.tech_.dispose(),this.isPosterFromTech_=!1,this.poster_=""),this.playerElIngest_&&(this.playerElIngest_=null),this.tag&&(this.tag=null),Qn[this.id()]=null,yn.names.forEach((function(t){var e=yn[t],r=n[e.getterName]();r&&r.off&&r.off()})),t.prototype.dispose.call(this)},r.createEl=function(){var e,n=this.tag,r=this.playerElIngest_=n.parentNode&&n.parentNode.hasAttribute&&n.parentNode.hasAttribute("data-vjs-player"),o="video-js"===this.tag.tagName.toLowerCase();r?e=this.el_=n.parentNode:o||(e=this.el_=t.prototype.createEl.call(this,"div"));var i=at(n);if(o){for(e=this.el_=n,n=this.tag=document.createElement("video");e.children.length;)n.appendChild(e.firstChild);et(e,"video-js")||nt(e,"video-js"),e.appendChild(n),r=this.playerElIngest_=e,Object.keys(e).forEach((function(t){try{n[t]=e[t]}catch(t){}}))}if(n.setAttribute("tabindex","-1"),i.tabindex="-1",(D||N&&B)&&(n.setAttribute("role","application"),i.role="application"),n.removeAttribute("width"),n.removeAttribute("height"),"width"in i&&delete i.width,"height"in i&&delete i.height,Object.getOwnPropertyNames(i).forEach((function(t){o&&"class"===t||e.setAttribute(t,i[t]),o&&n.setAttribute(t,i[t])})),n.playerId=n.id,n.id+="_html5_api",n.className="vjs-tech",n.player=e.player=this,this.addClass("vjs-paused"),!0!==window.VIDEOJS_NO_DYNAMIC_STYLE){this.styleEl_=At("vjs-styles-dimensions");var a=Et(".vjs-styles-defaults"),s=Et("head");s.insertBefore(this.styleEl_,a?a.nextSibling:s.firstChild)}this.fill_=!1,this.fluid_=!1,this.width(this.options_.width),this.height(this.options_.height),this.fill(this.options_.fill),this.fluid(this.options_.fluid),this.aspectRatio(this.options_.aspectRatio),this.crossOrigin(this.options_.crossOrigin||this.options_.crossorigin);for(var u=n.getElementsByTagName("a"),c=0;c<u.length;c++){var l=u.item(c);nt(l,"vjs-hidden"),l.setAttribute("hidden","hidden")}return n.initNetworkState_=n.networkState,n.parentNode&&!r&&n.parentNode.insertBefore(e,n),tt(n,e),this.children_.unshift(n),this.el_.setAttribute("lang",this.language_),this.el_.setAttribute("translate","no"),this.el_=e,e},r.crossOrigin=function(t){if(!t)return this.techGet_("crossOrigin");"anonymous"===t||"use-credentials"===t?this.techCall_("setCrossOrigin",t):h.warn('crossOrigin must be "anonymous" or "use-credentials", given "'+t+'"')},r.width=function(t){return this.dimension("width",t)},r.height=function(t){return this.dimension("height",t)},r.dimension=function(t,e){var n=t+"_";if(void 0===e)return this[n]||0;if(""===e||"auto"===e)return this[n]=void 0,void this.updateStyleEl_();var r=parseFloat(e);isNaN(r)?h.error('Improper value "'+e+'" supplied for for '+t):(this[n]=r,this.updateStyleEl_())},r.fluid=function(t){var e,n,r=this;if(void 0===t)return!!this.fluid_;this.fluid_=!!t,Qt(this)&&this.off(["playerreset","resize"],this.boundUpdateStyleEl_),t?(this.addClass("vjs-fluid"),this.fill(!1),n=function(){r.on(["playerreset","resize"],r.boundUpdateStyleEl_)},Qt(e=this)?n():(e.eventedCallbacks||(e.eventedCallbacks=[]),e.eventedCallbacks.push(n))):this.removeClass("vjs-fluid"),this.updateStyleEl_()},r.fill=function(t){if(void 0===t)return!!this.fill_;this.fill_=!!t,t?(this.addClass("vjs-fill"),this.fluid(!1)):this.removeClass("vjs-fill")},r.aspectRatio=function(t){if(void 0===t)return this.aspectRatio_;if(!/^\d+\:\d+$/.test(t))throw new Error("Improper value supplied for aspect ratio. The format should be width:height, for example 16:9.");this.aspectRatio_=t,this.fluid(!0),this.updateStyleEl_()},r.updateStyleEl_=function(){if(!0!==window.VIDEOJS_NO_DYNAMIC_STYLE){var t,e,n,r=(void 0!==this.aspectRatio_&&"auto"!==this.aspectRatio_?this.aspectRatio_:this.videoWidth()>0?this.videoWidth()+":"+this.videoHeight():"16:9").split(":"),o=r[1]/r[0];t=void 0!==this.width_?this.width_:void 0!==this.height_?this.height_/o:this.videoWidth()||300,e=void 0!==this.height_?this.height_:t*o,n=/^[^a-zA-Z]/.test(this.id())?"dimensions-"+this.id():this.id()+"-dimensions",this.addClass(n),xt(this.styleEl_,"\n ."+n+" {\n width: "+t+"px;\n height: "+e+"px;\n }\n\n ."+n+".vjs-fluid {\n padding-top: "+100*o+"%;\n }\n ")}else{var i="number"==typeof this.width_?this.width_:this.options_.width,a="number"==typeof this.height_?this.height_:this.options_.height,s=this.tech_&&this.tech_.el();s&&(i>=0&&(s.width=i),a>=0&&(s.height=a))}},r.loadTech_=function(t,e){var n=this;this.tech_&&this.unloadTech_();var r=le(t),o=t.charAt(0).toLowerCase()+t.slice(1);"Html5"!==r&&this.tag&&($n.getTech("Html5").disposeMediaElement(this.tag),this.tag.player=null,this.tag=null),this.techName_=r,this.isReady_=!1;var i=this.autoplay();("string"==typeof this.autoplay()||!0===this.autoplay()&&this.options_.normalizeAutoplay)&&(i=!1);var a={source:e,autoplay:i,nativeControlsForTouch:this.options_.nativeControlsForTouch,playerId:this.id(),techId:this.id()+"_"+o+"_api",playsinline:this.options_.playsinline,preload:this.options_.preload,loop:this.options_.loop,disablePictureInPicture:this.options_.disablePictureInPicture,muted:this.options_.muted,poster:this.poster(),language:this.language(),playerElIngest:this.playerElIngest_||!1,"vtt.js":this.options_["vtt.js"],canOverridePoster:!!this.options_.techCanOverridePoster,enableSourceset:this.options_.enableSourceset,Promise:this.options_.Promise};yn.names.forEach((function(t){var e=yn[t];a[e.getterName]=n[e.privateName]})),b(a,this.options_[r]),b(a,this.options_[o]),b(a,this.options_[t.toLowerCase()]),this.tag&&(a.tag=this.tag),e&&e.src===this.cache_.src&&this.cache_.currentTime>0&&(a.startTime=this.cache_.currentTime);var s=$n.getTech(t);if(!s)throw new Error("No Tech named '"+r+"' exists! '"+r+"' should be registered using videojs.registerTech()'");this.tech_=new s(a),this.tech_.ready(Xt(this,this.handleTechReady_),!0),Ae(this.textTracksJson_||[],this.tech_),qo.forEach((function(t){n.on(n.tech_,t,(function(e){return n["handleTech"+le(t)+"_"](e)}))})),Object.keys($o).forEach((function(t){n.on(n.tech_,t,(function(e){0===n.tech_.playbackRate()&&n.tech_.seeking()?n.queuedCallbacks_.push({callback:n["handleTech"+$o[t]+"_"].bind(n),event:e}):n["handleTech"+$o[t]+"_"](e)}))})),this.on(this.tech_,"loadstart",(function(t){return n.handleTechLoadStart_(t)})),this.on(this.tech_,"sourceset",(function(t){return n.handleTechSourceset_(t)})),this.on(this.tech_,"waiting",(function(t){return n.handleTechWaiting_(t)})),this.on(this.tech_,"ended",(function(t){return n.handleTechEnded_(t)})),this.on(this.tech_,"seeking",(function(t){return n.handleTechSeeking_(t)})),this.on(this.tech_,"play",(function(t){return n.handleTechPlay_(t)})),this.on(this.tech_,"firstplay",(function(t){return n.handleTechFirstPlay_(t)})),this.on(this.tech_,"pause",(function(t){return n.handleTechPause_(t)})),this.on(this.tech_,"durationchange",(function(t){return n.handleTechDurationChange_(t)})),this.on(this.tech_,"fullscreenchange",(function(t,e){return n.handleTechFullscreenChange_(t,e)})),this.on(this.tech_,"fullscreenerror",(function(t,e){return n.handleTechFullscreenError_(t,e)})),this.on(this.tech_,"enterpictureinpicture",(function(t){return n.handleTechEnterPictureInPicture_(t)})),this.on(this.tech_,"leavepictureinpicture",(function(t){return n.handleTechLeavePictureInPicture_(t)})),this.on(this.tech_,"error",(function(t){return n.handleTechError_(t)})),this.on(this.tech_,"posterchange",(function(t){return n.handleTechPosterChange_(t)})),this.on(this.tech_,"textdata",(function(t){return n.handleTechTextData_(t)})),this.on(this.tech_,"ratechange",(function(t){return n.handleTechRateChange_(t)})),this.on(this.tech_,"loadedmetadata",this.boundUpdateStyleEl_),this.usingNativeControls(this.techGet_("controls")),this.controls()&&!this.usingNativeControls()&&this.addTechControlsListeners_(),this.tech_.el().parentNode===this.el()||"Html5"===r&&this.tag||tt(this.tech_.el(),this.el()),this.tag&&(this.tag.player=null,this.tag=null)},r.unloadTech_=function(){var t=this;yn.names.forEach((function(e){var n=yn[e];t[n.privateName]=t[n.getterName]()})),this.textTracksJson_=je(this.tech_),this.isReady_=!1,this.tech_.dispose(),this.tech_=!1,this.isPosterFromTech_&&(this.poster_="",this.trigger("posterchange")),this.isPosterFromTech_=!1},r.tech=function(t){return void 0===t&&h.warn("Using the tech directly can be dangerous. I hope you know what you're doing.\nSee https://github.com/videojs/video.js/issues/2617 for more info.\n"),this.tech_},r.addTechControlsListeners_=function(){this.removeTechControlsListeners_(),this.on(this.tech_,"click",this.boundHandleTechClick_),this.on(this.tech_,"dblclick",this.boundHandleTechDoubleClick_),this.on(this.tech_,"touchstart",this.boundHandleTechTouchStart_),this.on(this.tech_,"touchmove",this.boundHandleTechTouchMove_),this.on(this.tech_,"touchend",this.boundHandleTechTouchEnd_),this.on(this.tech_,"tap",this.boundHandleTechTap_)},r.removeTechControlsListeners_=function(){this.off(this.tech_,"tap",this.boundHandleTechTap_),this.off(this.tech_,"touchstart",this.boundHandleTechTouchStart_),this.off(this.tech_,"touchmove",this.boundHandleTechTouchMove_),this.off(this.tech_,"touchend",this.boundHandleTechTouchEnd_),this.off(this.tech_,"click",this.boundHandleTechClick_),this.off(this.tech_,"dblclick",this.boundHandleTechDoubleClick_)},r.handleTechReady_=function(){this.triggerReady(),this.cache_.volume&&this.techCall_("setVolume",this.cache_.volume),this.handleTechPosterChange_(),this.handleTechDurationChange_()},r.handleTechLoadStart_=function(){this.removeClass("vjs-ended"),this.removeClass("vjs-seeking"),this.error(null),this.handleTechDurationChange_(),this.paused()?(this.hasStarted(!1),this.trigger("loadstart")):(this.trigger("loadstart"),this.trigger("firstplay")),this.manualAutoplay_(!0===this.autoplay()&&this.options_.normalizeAutoplay?"play":this.autoplay())},r.manualAutoplay_=function(t){var e=this;if(this.tech_&&"string"==typeof t){var n,r=function(){var t=e.muted();e.muted(!0);var n=function(){e.muted(t)};e.playTerminatedQueue_.push(n);var r=e.play();if(Ce(r))return r.catch((function(t){throw n(),new Error("Rejection at manualAutoplay. Restoring muted value. "+(t||""))}))};if("any"!==t||this.muted()?n="muted"!==t||this.muted()?this.play():r():Ce(n=this.play())&&(n=n.catch(r)),Ce(n))return n.then((function(){e.trigger({type:"autoplay-success",autoplay:t})})).catch((function(){e.trigger({type:"autoplay-failure",autoplay:t})}))}},r.updateSourceCaches_=function(t){void 0===t&&(t="");var e=t,n="";"string"!=typeof e&&(e=t.src,n=t.type),this.cache_.source=this.cache_.source||{},this.cache_.sources=this.cache_.sources||[],e&&!n&&(n=function(t,e){if(!e)return"";if(t.cache_.source.src===e&&t.cache_.source.type)return t.cache_.source.type;var n=t.cache_.sources.filter((function(t){return t.src===e}));if(n.length)return n[0].type;for(var r=t.$$("source"),o=0;o<r.length;o++){var i=r[o];if(i.type&&i.src&&i.src===e)return i.type}return ur(e)}(this,e)),this.cache_.source=fe({},t,{src:e,type:n});for(var r=this.cache_.sources.filter((function(t){return t.src&&t.src===e})),o=[],i=this.$$("source"),a=[],s=0;s<i.length;s++){var u=at(i[s]);o.push(u),u.src&&u.src===e&&a.push(u.src)}a.length&&!r.length?this.cache_.sources=o:r.length||(this.cache_.sources=[this.cache_.source]),this.cache_.src=e},r.handleTechSourceset_=function(t){var e=this;if(!this.changingSrc_){var n=function(t){return e.updateSourceCaches_(t)},r=this.currentSource().src,o=t.src;r&&!/^blob:/.test(r)&&/^blob:/.test(o)&&(!this.lastSource_||this.lastSource_.tech!==o&&this.lastSource_.player!==r)&&(n=function(){}),n(o),t.src||this.tech_.any(["sourceset","loadstart"],(function(t){if("sourceset"!==t.type){var n=e.techGet("currentSrc");e.lastSource_.tech=n,e.updateSourceCaches_(n)}}))}this.lastSource_={player:this.currentSource().src,tech:t.src},this.trigger({src:t.src,type:"sourceset"})},r.hasStarted=function(t){if(void 0===t)return this.hasStarted_;t!==this.hasStarted_&&(this.hasStarted_=t,this.hasStarted_?(this.addClass("vjs-has-started"),this.trigger("firstplay")):this.removeClass("vjs-has-started"))},r.handleTechPlay_=function(){this.removeClass("vjs-ended"),this.removeClass("vjs-paused"),this.addClass("vjs-playing"),this.hasStarted(!0),this.trigger("play")},r.handleTechRateChange_=function(){this.tech_.playbackRate()>0&&0===this.cache_.lastPlaybackRate&&(this.queuedCallbacks_.forEach((function(t){return t.callback(t.event)})),this.queuedCallbacks_=[]),this.cache_.lastPlaybackRate=this.tech_.playbackRate(),this.trigger("ratechange")},r.handleTechWaiting_=function(){var t=this;this.addClass("vjs-waiting"),this.trigger("waiting");var e=this.currentTime();this.on("timeupdate",(function n(){e!==t.currentTime()&&(t.removeClass("vjs-waiting"),t.off("timeupdate",n))}))},r.handleTechCanPlay_=function(){this.removeClass("vjs-waiting"),this.trigger("canplay")},r.handleTechCanPlayThrough_=function(){this.removeClass("vjs-waiting"),this.trigger("canplaythrough")},r.handleTechPlaying_=function(){this.removeClass("vjs-waiting"),this.trigger("playing")},r.handleTechSeeking_=function(){this.addClass("vjs-seeking"),this.trigger("seeking")},r.handleTechSeeked_=function(){this.removeClass("vjs-seeking"),this.removeClass("vjs-ended"),this.trigger("seeked")},r.handleTechFirstPlay_=function(){this.options_.starttime&&(h.warn("Passing the `starttime` option to the player will be deprecated in 6.0"),this.currentTime(this.options_.starttime)),this.addClass("vjs-has-started"),this.trigger("firstplay")},r.handleTechPause_=function(){this.removeClass("vjs-playing"),this.addClass("vjs-paused"),this.trigger("pause")},r.handleTechEnded_=function(){this.addClass("vjs-ended"),this.removeClass("vjs-waiting"),this.options_.loop?(this.currentTime(0),this.play()):this.paused()||this.pause(),this.trigger("ended")},r.handleTechDurationChange_=function(){this.duration(this.techGet_("duration"))},r.handleTechClick_=function(t){this.controls_&&(void 0!==this.options_&&void 0!==this.options_.userActions&&void 0!==this.options_.userActions.click&&!1===this.options_.userActions.click||(void 0!==this.options_&&void 0!==this.options_.userActions&&"function"==typeof this.options_.userActions.click?this.options_.userActions.click.call(this,t):this.paused()?Pe(this.play()):this.pause()))},r.handleTechDoubleClick_=function(t){this.controls_&&(Array.prototype.some.call(this.$$(".vjs-control-bar, .vjs-modal-dialog"),(function(e){return e.contains(t.target)}))||void 0!==this.options_&&void 0!==this.options_.userActions&&void 0!==this.options_.userActions.doubleClick&&!1===this.options_.userActions.doubleClick||(void 0!==this.options_&&void 0!==this.options_.userActions&&"function"==typeof this.options_.userActions.doubleClick?this.options_.userActions.doubleClick.call(this,t):this.isFullscreen()?this.exitFullscreen():this.requestFullscreen()))},r.handleTechTap_=function(){this.userActive(!this.userActive())},r.handleTechTouchStart_=function(){this.userWasActive=this.userActive()},r.handleTechTouchMove_=function(){this.userWasActive&&this.reportUserActivity()},r.handleTechTouchEnd_=function(t){t.cancelable&&t.preventDefault()},r.handleStageClick_=function(){this.reportUserActivity()},r.toggleFullscreenClass_=function(){this.isFullscreen()?this.addClass("vjs-fullscreen"):this.removeClass("vjs-fullscreen")},r.documentFullscreenChange_=function(t){var e=t.target.player;if(!e||e===this){var n=this.el(),r=document[this.fsApi_.fullscreenElement]===n;!r&&n.matches?r=n.matches(":"+this.fsApi_.fullscreen):!r&&n.msMatchesSelector&&(r=n.msMatchesSelector(":"+this.fsApi_.fullscreen)),this.isFullscreen(r)}},r.handleTechFullscreenChange_=function(t,e){e&&(e.nativeIOSFullscreen&&this.toggleClass("vjs-ios-native-fs"),this.isFullscreen(e.isFullscreen))},r.handleTechFullscreenError_=function(t,e){this.trigger("fullscreenerror",e)},r.togglePictureInPictureClass_=function(){this.isInPictureInPicture()?this.addClass("vjs-picture-in-picture"):this.removeClass("vjs-picture-in-picture")},r.handleTechEnterPictureInPicture_=function(t){this.isInPictureInPicture(!0)},r.handleTechLeavePictureInPicture_=function(t){this.isInPictureInPicture(!1)},r.handleTechError_=function(){var t=this.tech_.error();this.error(t)},r.handleTechTextData_=function(){var t=null;arguments.length>1&&(t=arguments[1]),this.trigger("textdata",t)},r.getCache=function(){return this.cache_},r.resetCache_=function(){this.cache_={currentTime:0,initTime:0,inactivityTimeout:this.options_.inactivityTimeout,duration:NaN,lastVolume:1,lastPlaybackRate:this.defaultPlaybackRate(),media:null,src:"",source:{},sources:[],playbackRates:[],volume:1}},r.techCall_=function(t,e){this.ready((function(){if(t in rr)return function(t,e,n,r){return e[n](t.reduce(ir(n),r))}(this.middleware_,this.tech_,t,e);if(t in or)return er(this.middleware_,this.tech_,t,e);try{this.tech_&&this.tech_[t](e)}catch(t){throw h(t),t}}),!0)},r.techGet_=function(t){if(this.tech_&&this.tech_.isReady_){if(t in nr)return function(t,e,n){return t.reduceRight(ir(n),e[n]())}(this.middleware_,this.tech_,t);if(t in or)return er(this.middleware_,this.tech_,t);try{return this.tech_[t]()}catch(e){if(void 0===this.tech_[t])throw h("Video.js: "+t+" method not defined for "+this.techName_+" playback technology.",e),e;if("TypeError"===e.name)throw h("Video.js: "+t+" unavailable on "+this.techName_+" playback technology element.",e),this.tech_.isReady_=!1,e;throw h(e),e}}},r.play=function(){var t=this,e=this.options_.Promise||window.Promise;return e?new e((function(e){t.play_(e)})):this.play_()},r.play_=function(t){var e=this;void 0===t&&(t=Pe),this.playCallbacks_.push(t);var n=Boolean(!this.changingSrc_&&(this.src()||this.currentSrc()));if(this.waitToPlay_&&(this.off(["ready","loadstart"],this.waitToPlay_),this.waitToPlay_=null),!this.isReady_||!n)return this.waitToPlay_=function(t){e.play_()},this.one(["ready","loadstart"],this.waitToPlay_),void(n||!z&&!Y||this.load());var r=this.techGet_("play");null===r?this.runPlayTerminatedQueue_():this.runPlayCallbacks_(r)},r.runPlayTerminatedQueue_=function(){var t=this.playTerminatedQueue_.slice(0);this.playTerminatedQueue_=[],t.forEach((function(t){t()}))},r.runPlayCallbacks_=function(t){var e=this.playCallbacks_.slice(0);this.playCallbacks_=[],this.playTerminatedQueue_=[],e.forEach((function(e){e(t)}))},r.pause=function(){this.techCall_("pause")},r.paused=function(){return!1!==this.techGet_("paused")},r.played=function(){return this.techGet_("played")||we(0,0)},r.scrubbing=function(t){if(void 0===t)return this.scrubbing_;this.scrubbing_=!!t,this.techCall_("setScrubbing",this.scrubbing_),t?this.addClass("vjs-scrubbing"):this.removeClass("vjs-scrubbing")},r.currentTime=function(t){return void 0!==t?(t<0&&(t=0),this.isReady_&&!this.changingSrc_&&this.tech_&&this.tech_.isReady_?(this.techCall_("setCurrentTime",t),void(this.cache_.initTime=0)):(this.cache_.initTime=t,this.off("canplay",this.boundApplyInitTime_),void this.one("canplay",this.boundApplyInitTime_))):(this.cache_.currentTime=this.techGet_("currentTime")||0,this.cache_.currentTime)},r.applyInitTime_=function(){this.currentTime(this.cache_.initTime)},r.duration=function(t){if(void 0===t)return void 0!==this.cache_.duration?this.cache_.duration:NaN;(t=parseFloat(t))<0&&(t=1/0),t!==this.cache_.duration&&(this.cache_.duration=t,t===1/0?this.addClass("vjs-live"):this.removeClass("vjs-live"),isNaN(t)||this.trigger("durationchange"))},r.remainingTime=function(){return this.duration()-this.currentTime()},r.remainingTimeDisplay=function(){return Math.floor(this.duration())-Math.floor(this.currentTime())},r.buffered=function(){var t=this.techGet_("buffered");return t&&t.length||(t=we(0,0)),t},r.bufferedPercent=function(){return Ee(this.buffered(),this.duration())},r.bufferedEnd=function(){var t=this.buffered(),e=this.duration(),n=t.end(t.length-1);return n>e&&(n=e),n},r.volume=function(t){var e;return void 0!==t?(e=Math.max(0,Math.min(1,parseFloat(t))),this.cache_.volume=e,this.techCall_("setVolume",e),void(e>0&&this.lastVolume_(e))):(e=parseFloat(this.techGet_("volume")),isNaN(e)?1:e)},r.muted=function(t){if(void 0===t)return this.techGet_("muted")||!1;this.techCall_("setMuted",t)},r.defaultMuted=function(t){return void 0!==t?this.techCall_("setDefaultMuted",t):this.techGet_("defaultMuted")||!1},r.lastVolume_=function(t){if(void 0===t||0===t)return this.cache_.lastVolume;this.cache_.lastVolume=t},r.supportsFullScreen=function(){return this.techGet_("supportsFullScreen")||!1},r.isFullscreen=function(t){if(void 0!==t){var e=this.isFullscreen_;return this.isFullscreen_=Boolean(t),this.isFullscreen_!==e&&this.fsApi_.prefixed&&this.trigger("fullscreenchange"),void this.toggleFullscreenClass_()}return this.isFullscreen_},r.requestFullscreen=function(t){var e=this.options_.Promise||window.Promise;if(e){var n=this;return new e((function(e,r){function o(){n.off("fullscreenerror",a),n.off("fullscreenchange",i)}function i(){o(),e()}function a(t,e){o(),r(e)}n.one("fullscreenchange",i),n.one("fullscreenerror",a);var s=n.requestFullscreenHelper_(t);s&&(s.then(o,o),s.then(e,r))}))}return this.requestFullscreenHelper_()},r.requestFullscreenHelper_=function(t){var e,n=this;if(this.fsApi_.prefixed||(e=this.options_.fullscreen&&this.options_.fullscreen.options||{},void 0!==t&&(e=t)),this.fsApi_.requestFullscreen){var r=this.el_[this.fsApi_.requestFullscreen](e);return r&&r.then((function(){return n.isFullscreen(!0)}),(function(){return n.isFullscreen(!1)})),r}this.tech_.supportsFullScreen()&&1==!this.options_.preferFullWindow?this.techCall_("enterFullScreen"):this.enterFullWindow()},r.exitFullscreen=function(){var t=this.options_.Promise||window.Promise;if(t){var e=this;return new t((function(t,n){function r(){e.off("fullscreenerror",i),e.off("fullscreenchange",o)}function o(){r(),t()}function i(t,e){r(),n(e)}e.one("fullscreenchange",o),e.one("fullscreenerror",i);var a=e.exitFullscreenHelper_();a&&(a.then(r,r),a.then(t,n))}))}return this.exitFullscreenHelper_()},r.exitFullscreenHelper_=function(){var t=this;if(this.fsApi_.requestFullscreen){var e=document[this.fsApi_.exitFullscreen]();return e&&Pe(e.then((function(){return t.isFullscreen(!1)}))),e}this.tech_.supportsFullScreen()&&1==!this.options_.preferFullWindow?this.techCall_("exitFullScreen"):this.exitFullWindow()},r.enterFullWindow=function(){this.isFullscreen(!0),this.isFullWindow=!0,this.docOrigOverflow=document.documentElement.style.overflow,Vt(document,"keydown",this.boundFullWindowOnEscKey_),document.documentElement.style.overflow="hidden",nt(document.body,"vjs-full-window"),this.trigger("enterFullWindow")},r.fullWindowOnEscKey=function(t){xe.isEventKey(t,"Esc")&&!0===this.isFullscreen()&&(this.isFullWindow?this.exitFullWindow():this.exitFullscreen())},r.exitFullWindow=function(){this.isFullscreen(!1),this.isFullWindow=!1,Ut(document,"keydown",this.boundFullWindowOnEscKey_),document.documentElement.style.overflow=this.docOrigOverflow,rt(document.body,"vjs-full-window"),this.trigger("exitFullWindow")},r.disablePictureInPicture=function(t){if(void 0===t)return this.techGet_("disablePictureInPicture");this.techCall_("setDisablePictureInPicture",t),this.options_.disablePictureInPicture=t,this.trigger("disablepictureinpicturechanged")},r.isInPictureInPicture=function(t){return void 0!==t?(this.isInPictureInPicture_=!!t,void this.togglePictureInPictureClass_()):!!this.isInPictureInPicture_},r.requestPictureInPicture=function(){if("pictureInPictureEnabled"in document&&!1===this.disablePictureInPicture())return this.techGet_("requestPictureInPicture")},r.exitPictureInPicture=function(){if("pictureInPictureEnabled"in document)return document.exitPictureInPicture()},r.handleKeyDown=function(t){var e,n,r=this.options_.userActions;r&&r.hotkeys&&(e=this.el_.ownerDocument.activeElement,n=e.tagName.toLowerCase(),e.isContentEditable||("input"===n?-1===["button","checkbox","hidden","radio","reset","submit"].indexOf(e.type):-1!==["textarea"].indexOf(n))||("function"==typeof r.hotkeys?r.hotkeys.call(this,t):this.handleHotkeys(t)))},r.handleHotkeys=function(t){var e=this.options_.userActions?this.options_.userActions.hotkeys:{},n=e.fullscreenKey,r=void 0===n?function(t){return xe.isEventKey(t,"f")}:n,o=e.muteKey,i=void 0===o?function(t){return xe.isEventKey(t,"m")}:o,a=e.playPauseKey,s=void 0===a?function(t){return xe.isEventKey(t,"k")||xe.isEventKey(t,"Space")}:a;if(r.call(this,t)){t.preventDefault(),t.stopPropagation();var u=ye.getComponent("FullscreenToggle");!1!==document[this.fsApi_.fullscreenEnabled]&&u.prototype.handleClick.call(this,t)}else i.call(this,t)?(t.preventDefault(),t.stopPropagation(),ye.getComponent("MuteToggle").prototype.handleClick.call(this,t)):s.call(this,t)&&(t.preventDefault(),t.stopPropagation(),ye.getComponent("PlayToggle").prototype.handleClick.call(this,t))},r.canPlayType=function(t){for(var e,n=0,r=this.options_.techOrder;n<r.length;n++){var o=r[n],i=$n.getTech(o);if(i||(i=ye.getComponent(o)),i){if(i.isSupported()&&(e=i.canPlayType(t)))return e}else h.error('The "'+o+'" tech is undefined. Skipped browser support check for that tech.')}return""},r.selectSource=function(t){var e,n=this,r=this.options_.techOrder.map((function(t){return[t,$n.getTech(t)]})).filter((function(t){var e=t[0],n=t[1];return n?n.isSupported():(h.error('The "'+e+'" tech is undefined. Skipped browser support check for that tech.'),!1)})),o=function(t,e,n){var r;return t.some((function(t){return e.some((function(e){if(r=n(t,e))return!0}))})),r},i=function(t,e){var r=t[0];if(t[1].canPlaySource(e,n.options_[r.toLowerCase()]))return{source:e,tech:r}};return(this.options_.sourceOrder?o(t,r,(e=i,function(t,n){return e(n,t)})):o(r,t,i))||!1},r.handleSrc_=function(t,e){var n=this;if(void 0===t)return this.cache_.src||"";this.resetRetryOnError_&&this.resetRetryOnError_();var r=cr(t);if(r.length){if(this.changingSrc_=!0,e||(this.cache_.sources=r),this.updateSourceCaches_(r[0]),tr(this,r[0],(function(t,o){var i,a;if(n.middleware_=o,e||(n.cache_.sources=r),n.updateSourceCaches_(t),n.src_(t))return r.length>1?n.handleSrc_(r.slice(1)):(n.changingSrc_=!1,n.setTimeout((function(){this.error({code:4,message:this.localize(this.options_.notSupportedMessage)})}),0),void n.triggerReady());i=o,a=n.tech_,i.forEach((function(t){return t.setTech&&t.setTech(a)}))})),this.options_.retryOnError&&r.length>1){var o=function(){n.error(null),n.handleSrc_(r.slice(1),!0)},i=function(){n.off("error",o)};this.one("error",o),this.one("playing",i),this.resetRetryOnError_=function(){n.off("error",o),n.off("playing",i)}}}else this.setTimeout((function(){this.error({code:4,message:this.localize(this.options_.notSupportedMessage)})}),0)},r.src=function(t){return this.handleSrc_(t,!1)},r.src_=function(t){var e,n,r=this,o=this.selectSource([t]);return!o||(e=o.tech,n=this.techName_,le(e)!==le(n)?(this.changingSrc_=!0,this.loadTech_(o.tech,o.source),this.tech_.ready((function(){r.changingSrc_=!1})),!1):(this.ready((function(){this.tech_.constructor.prototype.hasOwnProperty("setSource")?this.techCall_("setSource",t):this.techCall_("src",t.src),this.changingSrc_=!1}),!0),!1))},r.load=function(){this.techCall_("load")},r.reset=function(){var t=this,e=this.options_.Promise||window.Promise;this.paused()||!e?this.doReset_():Pe(this.play().then((function(){return t.doReset_()})))},r.doReset_=function(){this.tech_&&this.tech_.clearTracks("text"),this.resetCache_(),this.poster(""),this.loadTech_(this.options_.techOrder[0],null),this.techCall_("reset"),this.resetControlBarUI_(),Qt(this)&&this.trigger("playerreset")},r.resetControlBarUI_=function(){this.resetProgressBar_(),this.resetPlaybackRate_(),this.resetVolumeBar_()},r.resetProgressBar_=function(){this.currentTime(0);var t=this.controlBar,e=t.durationDisplay,n=t.remainingTimeDisplay;e&&e.updateContent(),n&&n.updateContent()},r.resetPlaybackRate_=function(){this.playbackRate(this.defaultPlaybackRate()),this.handleTechRateChange_()},r.resetVolumeBar_=function(){this.volume(1),this.trigger("volumechange")},r.currentSources=function(){var t=this.currentSource(),e=[];return 0!==Object.keys(t).length&&e.push(t),this.cache_.sources||e},r.currentSource=function(){return this.cache_.source||{}},r.currentSrc=function(){return this.currentSource()&&this.currentSource().src||""},r.currentType=function(){return this.currentSource()&&this.currentSource().type||""},r.preload=function(t){return void 0!==t?(this.techCall_("setPreload",t),void(this.options_.preload=t)):this.techGet_("preload")},r.autoplay=function(t){if(void 0===t)return this.options_.autoplay||!1;var e;"string"==typeof t&&/(any|play|muted)/.test(t)||!0===t&&this.options_.normalizeAutoplay?(this.options_.autoplay=t,this.manualAutoplay_("string"==typeof t?t:"play"),e=!1):this.options_.autoplay=!!t,e=void 0===e?this.options_.autoplay:e,this.tech_&&this.techCall_("setAutoplay",e)},r.playsinline=function(t){return void 0!==t?(this.techCall_("setPlaysinline",t),this.options_.playsinline=t,this):this.techGet_("playsinline")},r.loop=function(t){return void 0!==t?(this.techCall_("setLoop",t),void(this.options_.loop=t)):this.techGet_("loop")},r.poster=function(t){if(void 0===t)return this.poster_;t||(t=""),t!==this.poster_&&(this.poster_=t,this.techCall_("setPoster",t),this.isPosterFromTech_=!1,this.trigger("posterchange"))},r.handleTechPosterChange_=function(){if((!this.poster_||this.options_.techCanOverridePoster)&&this.tech_&&this.tech_.poster){var t=this.tech_.poster()||"";t!==this.poster_&&(this.poster_=t,this.isPosterFromTech_=!0,this.trigger("posterchange"))}},r.controls=function(t){if(void 0===t)return!!this.controls_;t=!!t,this.controls_!==t&&(this.controls_=t,this.usingNativeControls()&&this.techCall_("setControls",t),this.controls_?(this.removeClass("vjs-controls-disabled"),this.addClass("vjs-controls-enabled"),this.trigger("controlsenabled"),this.usingNativeControls()||this.addTechControlsListeners_()):(this.removeClass("vjs-controls-enabled"),this.addClass("vjs-controls-disabled"),this.trigger("controlsdisabled"),this.usingNativeControls()||this.removeTechControlsListeners_()))},r.usingNativeControls=function(t){if(void 0===t)return!!this.usingNativeControls_;t=!!t,this.usingNativeControls_!==t&&(this.usingNativeControls_=t,this.usingNativeControls_?(this.addClass("vjs-using-native-controls"),this.trigger("usingnativecontrols")):(this.removeClass("vjs-using-native-controls"),this.trigger("usingcustomcontrols")))},r.error=function(t){var e=this;if(void 0===t)return this.error_||null;if(o("beforeerror").forEach((function(n){var r=n(e,t);w(r)&&!Array.isArray(r)||"string"==typeof r||"number"==typeof r||null===r?t=r:e.log.error("please return a value that MediaError expects in beforeerror hooks")})),this.options_.suppressNotSupportedError&&t&&4===t.code){var n=function(){this.error(t)};return this.options_.suppressNotSupportedError=!1,this.any(["click","touchstart"],n),void this.one("loadstart",(function(){this.off(["click","touchstart"],n)}))}if(null===t)return this.error_=t,this.removeClass("vjs-error"),void(this.errorDisplay&&this.errorDisplay.close());this.error_=new Te(t),this.addClass("vjs-error"),h.error("(CODE:"+this.error_.code+" "+Te.errorTypes[this.error_.code]+")",this.error_.message,this.error_),this.trigger("error"),o("error").forEach((function(t){return t(e,e.error_)}))},r.reportUserActivity=function(t){this.userActivity_=!0},r.userActive=function(t){if(void 0===t)return this.userActive_;if((t=!!t)!==this.userActive_){if(this.userActive_=t,this.userActive_)return this.userActivity_=!0,this.removeClass("vjs-user-inactive"),this.addClass("vjs-user-active"),void this.trigger("useractive");this.tech_&&this.tech_.one("mousemove",(function(t){t.stopPropagation(),t.preventDefault()})),this.userActivity_=!1,this.removeClass("vjs-user-active"),this.addClass("vjs-user-inactive"),this.trigger("userinactive")}},r.listenForUserActivity_=function(){var t,e,n,r=Xt(this,this.reportUserActivity),o=function(e){r(),this.clearInterval(t)};this.on("mousedown",(function(){r(),this.clearInterval(t),t=this.setInterval(r,250)})),this.on("mousemove",(function(t){t.screenX===e&&t.screenY===n||(e=t.screenX,n=t.screenY,r())})),this.on("mouseup",o),this.on("mouseleave",o);var i,a=this.getChild("controlBar");!a||Y||A||(a.on("mouseenter",(function(t){0!==this.player().options_.inactivityTimeout&&(this.player().cache_.inactivityTimeout=this.player().options_.inactivityTimeout),this.player().options_.inactivityTimeout=0})),a.on("mouseleave",(function(t){this.player().options_.inactivityTimeout=this.player().cache_.inactivityTimeout}))),this.on("keydown",r),this.on("keyup",r),this.setInterval((function(){if(this.userActivity_){this.userActivity_=!1,this.userActive(!0),this.clearTimeout(i);var t=this.options_.inactivityTimeout;t<=0||(i=this.setTimeout((function(){this.userActivity_||this.userActive(!1)}),t))}}),250)},r.playbackRate=function(t){if(void 0===t)return this.tech_&&this.tech_.featuresPlaybackRate?this.cache_.lastPlaybackRate||this.techGet_("playbackRate"):1;this.techCall_("setPlaybackRate",t)},r.defaultPlaybackRate=function(t){return void 0!==t?this.techCall_("setDefaultPlaybackRate",t):this.tech_&&this.tech_.featuresPlaybackRate?this.techGet_("defaultPlaybackRate"):1},r.isAudio=function(t){if(void 0===t)return!!this.isAudio_;this.isAudio_=!!t},r.addTextTrack=function(t,e,n){if(this.tech_)return this.tech_.addTextTrack(t,e,n)},r.addRemoteTextTrack=function(t,e){if(this.tech_)return this.tech_.addRemoteTextTrack(t,e)},r.removeRemoteTextTrack=function(t){void 0===t&&(t={});var e=t.track;if(e||(e=t),this.tech_)return this.tech_.removeRemoteTextTrack(e)},r.getVideoPlaybackQuality=function(){return this.techGet_("getVideoPlaybackQuality")},r.videoWidth=function(){return this.tech_&&this.tech_.videoWidth&&this.tech_.videoWidth()||0},r.videoHeight=function(){return this.tech_&&this.tech_.videoHeight&&this.tech_.videoHeight()||0},r.language=function(t){if(void 0===t)return this.language_;this.language_!==String(t).toLowerCase()&&(this.language_=String(t).toLowerCase(),Qt(this)&&this.trigger("languagechange"))},r.languages=function(){return fe(e.prototype.options_.languages,this.languages_)},r.toJSON=function(){var t=fe(this.options_),e=t.tracks;t.tracks=[];for(var n=0;n<e.length;n++){var r=e[n];(r=fe(r)).player=void 0,t.tracks[n]=r}return t},r.createModal=function(t,e){var n=this;(e=e||{}).content=t||"";var r=new Re(this,e);return this.addChild(r),r.on("dispose",(function(){n.removeChild(r)})),r.open(),r},r.updateCurrentBreakpoint_=function(){if(this.responsive())for(var t=this.currentBreakpoint(),e=this.currentWidth(),n=0;n<Jo.length;n++){var r=Jo[n];if(e<=this.breakpoints_[r]){if(t===r)return;t&&this.removeClass(Qo[t]),this.addClass(Qo[r]),this.breakpoint_=r;break}}},r.removeCurrentBreakpoint_=function(){var t=this.currentBreakpointClass();this.breakpoint_="",t&&this.removeClass(t)},r.breakpoints=function(t){return void 0===t||(this.breakpoint_="",this.breakpoints_=b({},Zo,t),this.updateCurrentBreakpoint_()),b(this.breakpoints_)},r.responsive=function(t){return void 0===t?this.responsive_:(t=Boolean(t))!==this.responsive_?(this.responsive_=t,t?(this.on("playerresize",this.boundUpdateCurrentBreakpoint_),this.updateCurrentBreakpoint_()):(this.off("playerresize",this.boundUpdateCurrentBreakpoint_),this.removeCurrentBreakpoint_()),t):void 0},r.currentBreakpoint=function(){return this.breakpoint_},r.currentBreakpointClass=function(){return Qo[this.breakpoint_]||""},r.loadMedia=function(t,e){var n=this;if(t&&"object"==typeof t){this.reset(),this.cache_.media=fe(t);var r=this.cache_.media,o=r.artwork,i=r.poster,a=r.src,s=r.textTracks;!o&&i&&(this.cache_.media.artwork=[{src:i,type:ur(i)}]),a&&this.src(a),i&&this.poster(i),Array.isArray(s)&&s.forEach((function(t){return n.addRemoteTextTrack(t,!1)})),this.ready(e)}},r.getMedia=function(){if(!this.cache_.media){var t=this.poster(),e={src:this.currentSources(),textTracks:Array.prototype.map.call(this.remoteTextTracks(),(function(t){return{kind:t.kind,label:t.label,language:t.language,src:t.src}}))};return t&&(e.poster=t,e.artwork=[{src:e.poster,type:ur(e.poster)}]),e}return fe(this.cache_.media)},e.getTagSettings=function(t){var e={sources:[],tracks:[]},n=at(t),r=n["data-setup"];if(et(t,"vjs-fill")&&(n.fill=!0),et(t,"vjs-fluid")&&(n.fluid=!0),null!==r){var o=Oe(r||"{}"),i=o[0],a=o[1];i&&h.error(i),b(n,a)}if(b(e,n),t.hasChildNodes())for(var s=t.childNodes,u=0,c=s.length;u<c;u++){var l=s[u],f=l.nodeName.toLowerCase();"source"===f?e.sources.push(at(l)):"track"===f&&e.tracks.push(at(l))}return e},r.flexNotSupported_=function(){var t=document.createElement("i");return!("flexBasis"in t.style||"webkitFlexBasis"in t.style||"mozFlexBasis"in t.style||"msFlexBasis"in t.style||"msFlexOrder"in t.style)},r.debug=function(t){if(void 0===t)return this.debugEnabled_;t?(this.trigger("debugon"),this.previousLogLevel_=this.log.level,this.log.level("debug"),this.debugEnabled_=!0):(this.trigger("debugoff"),this.log.level(this.previousLogLevel_),this.previousLogLevel_=void 0,this.debugEnabled_=!1)},r.playbackRates=function(t){if(void 0===t)return this.cache_.playbackRates;Array.isArray(t)&&t.every((function(t){return"number"==typeof t}))&&(this.cache_.playbackRates=t,this.trigger("playbackrateschange"))},e}(ye);yn.names.forEach((function(t){var e=yn[t];ti.prototype[e.getterName]=function(){return this.tech_?this.tech_[e.getterName]():(this[e.privateName]=this[e.privateName]||new e.ListClass,this[e.privateName])}})),ti.prototype.crossorigin=ti.prototype.crossOrigin,ti.players={};var ei=window.navigator;ti.prototype.options_={techOrder:$n.defaultTechOrder_,html5:{},inactivityTimeout:2e3,playbackRates:[],liveui:!1,children:["mediaLoader","posterImage","textTrackDisplay","loadingSpinner","bigPlayButton","liveTracker","controlBar","errorDisplay","textTrackSettings","resizeManager"],language:ei&&(ei.languages&&ei.languages[0]||ei.userLanguage||ei.language)||"en",languages:{},notSupportedMessage:"No compatible source was found for this media.",normalizeAutoplay:!1,fullscreen:{options:{navigationUI:"hide"}},breakpoints:{},responsive:!1},["ended","seeking","seekable","networkState","readyState"].forEach((function(t){ti.prototype[t]=function(){return this.techGet_(t)}})),qo.forEach((function(t){ti.prototype["handleTech"+le(t)+"_"]=function(){return this.trigger(t)}})),ye.registerComponent("Player",ti);var ni=v((function(t){function e(n,r){return t.exports=e=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},e(n,r)}t.exports=e})),ri=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}},oi=v((function(t){function e(n,r,o){return ri()?t.exports=e=Reflect.construct:t.exports=e=function(t,e,n){var r=[null];r.push.apply(r,e);var o=new(Function.bind.apply(t,r));return n&&ni(o,n.prototype),o},e.apply(null,arguments)}t.exports=e})),ii="plugin",ai={},si=function(t){return ai.hasOwnProperty(t)},ui=function(t){return si(t)?ai[t]:void 0},ci=function(t,e){t.activePlugins_=t.activePlugins_||{},t.activePlugins_[e]=!0},li=function(t,e,n){var r=(n?"before":"")+"pluginsetup";t.trigger(r,e),t.trigger(r+":"+e.name,e)},fi=function(t,e){return e.prototype.name=t,function(){li(this,{name:t,plugin:e,instance:null},!0);for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];var i=oi(e,[this].concat(r));return this[t]=function(){return i},li(this,i.getEventHash()),i}},hi=function(){function t(e){if(this.constructor===t)throw new Error("Plugin must be sub-classed; not directly instantiated.");this.player=e,this.log||(this.log=this.player.log.createLogger(this.name)),ae(this),delete this.trigger,ue(this,this.constructor.defaultState),ci(e,this.name),this.dispose=this.dispose.bind(this),e.on("dispose",this.dispose)}var e=t.prototype;return e.version=function(){return this.constructor.VERSION},e.getEventHash=function(t){return void 0===t&&(t={}),t.name=this.name,t.plugin=this.constructor,t.instance=this,t},e.trigger=function(t,e){return void 0===e&&(e={}),Ht(this.eventBusEl_,t,this.getEventHash(e))},e.handleStateChanged=function(t){},e.dispose=function(){var t=this.name,e=this.player;this.trigger("dispose"),this.off(),e.off("dispose",this.dispose),e.activePlugins_[t]=!1,this.player=this.state=null,e[t]=fi(t,ai[t])},t.isBasic=function(e){var n="string"==typeof e?ui(e):e;return"function"==typeof n&&!t.prototype.isPrototypeOf(n.prototype)},t.registerPlugin=function(e,n){if("string"!=typeof e)throw new Error('Illegal plugin name, "'+e+'", must be a string, was '+typeof e+".");if(si(e))h.warn('A plugin named "'+e+'" already exists. You may want to avoid re-registering plugins!');else if(ti.prototype.hasOwnProperty(e))throw new Error('Illegal plugin name, "'+e+'", cannot share a name with an existing player method!');if("function"!=typeof n)throw new Error('Illegal plugin for "'+e+'", must be a function, was '+typeof n+".");return ai[e]=n,e!==ii&&(t.isBasic(n)?ti.prototype[e]=function(t,e){var n=function(){li(this,{name:t,plugin:e,instance:null},!0);var n=e.apply(this,arguments);return ci(this,t),li(this,{name:t,plugin:e,instance:n}),n};return Object.keys(e).forEach((function(t){n[t]=e[t]})),n}(e,n):ti.prototype[e]=fi(e,n)),n},t.deregisterPlugin=function(t){if(t===ii)throw new Error("Cannot de-register base plugin.");si(t)&&(delete ai[t],delete ti.prototype[t])},t.getPlugins=function(t){var e;return void 0===t&&(t=Object.keys(ai)),t.forEach((function(t){var n=ui(t);n&&((e=e||{})[t]=n)})),e},t.getPluginVersion=function(t){var e=ui(t);return e&&e.VERSION||""},t}();hi.getPlugin=ui,hi.BASE_PLUGIN_NAME=ii,hi.registerPlugin(ii,hi),ti.prototype.usingPlugin=function(t){return!!this.activePlugins_&&!0===this.activePlugins_[t]},ti.prototype.hasPlugin=function(t){return!!si(t)};var pi=function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&ni(t,e)},di=function(t){return 0===t.indexOf("#")?t.slice(1):t};function vi(t,e,n){var r=vi.getPlayer(t);if(r)return e&&h.warn('Player "'+t+'" is already initialised. Options will not be applied.'),n&&r.ready(n),r;var i="string"==typeof t?Et("#"+di(t)):t;if(!q(i))throw new TypeError("The element or ID supplied is not valid. (videojs)");i.ownerDocument.defaultView&&i.ownerDocument.body.contains(i)||h.warn("The element supplied is not included in the DOM"),e=e||{},o("beforesetup").forEach((function(t){var n=t(i,fe(e));w(n)&&!Array.isArray(n)?e=fe(e,n):h.error("please return an object in beforesetup hooks")}));var a=ye.getComponent("Player");return r=new a(i,e,n),o("setup").forEach((function(t){return t(r)})),r}if(vi.hooks_=r,vi.hooks=o,vi.hook=function(t,e){o(t,e)},vi.hookOnce=function(t,e){o(t,[].concat(e).map((function(e){return function n(){return i(t,n),e.apply(void 0,arguments)}})))},vi.removeHook=i,!0!==window.VIDEOJS_NO_DYNAMIC_STYLE&&X()){var yi=Et(".vjs-styles-defaults");if(!yi){yi=At("vjs-styles-defaults");var gi=Et("head");gi&&gi.insertBefore(yi,gi.firstChild),xt(yi,"\n .video-js {\n width: 300px;\n height: 150px;\n }\n\n .vjs-fluid {\n padding-top: 56.25%\n }\n ")}}return Pt(1,vi),vi.VERSION=n,vi.options=ti.prototype.options_,vi.getPlayers=function(){return ti.players},vi.getPlayer=function(t){var e,n=ti.players;if("string"==typeof t){var r=di(t),o=n[r];if(o)return o;e=Et("#"+r)}else e=t;if(q(e)){var i=e,a=i.player,s=i.playerId;if(a||n[s])return a||n[s]}},vi.getAllPlayers=function(){return Object.keys(ti.players).map((function(t){return ti.players[t]})).filter(Boolean)},vi.players=ti.players,vi.getComponent=ye.getComponent,vi.registerComponent=function(t,e){$n.isTech(e)&&h.warn("The "+t+" tech was registered as a component. It should instead be registered using videojs.registerTech(name, tech)"),ye.registerComponent.call(ye,t,e)},vi.getTech=$n.getTech,vi.registerTech=$n.registerTech,vi.use=function(t,e){Jn[t]=Jn[t]||[],Jn[t].push(e)},Object.defineProperty(vi,"middleware",{value:{},writeable:!1,enumerable:!0}),Object.defineProperty(vi.middleware,"TERMINATOR",{value:Zn,writeable:!1,enumerable:!0}),vi.browser=W,vi.TOUCH_ENABLED=V,vi.extend=function(t,e){void 0===e&&(e={});var n=function(){t.apply(this,arguments)},r={};for(var o in"object"==typeof e?(e.constructor!==Object.prototype.constructor&&(n=e.constructor),r=e):"function"==typeof e&&(n=e),pi(n,t),t&&(n.super_=t),r)r.hasOwnProperty(o)&&(n.prototype[o]=r[o]);return n},vi.mergeOptions=fe,vi.bind=Xt,vi.registerPlugin=hi.registerPlugin,vi.deregisterPlugin=hi.deregisterPlugin,vi.plugin=function(t,e){return h.warn("videojs.plugin() is deprecated; use videojs.registerPlugin() instead"),hi.registerPlugin(t,e)},vi.getPlugins=hi.getPlugins,vi.getPlugin=hi.getPlugin,vi.getPluginVersion=hi.getPluginVersion,vi.addLanguage=function(t,e){var n;return t=(""+t).toLowerCase(),vi.options.languages=fe(vi.options.languages,((n={})[t]=e,n)),vi.options.languages[t]},vi.log=h,vi.createLogger=p,vi.createTimeRange=vi.createTimeRanges=we,vi.formatTime=Or,vi.setFormatTime=function(t){Sr=t},vi.resetFormatTime=function(){Sr=Tr},vi.parseUrl=Ke,vi.isCrossOrigin=$e,vi.EventTarget=$t,vi.on=Vt,vi.one=Yt,vi.off=Ut,vi.trigger=Ht,vi.xhr=nn,vi.TextTrack=ln,vi.AudioTrack=fn,vi.VideoTrack=hn,["isEl","isTextNode","createEl","hasClass","addClass","removeClass","toggleClass","setAttributes","getAttributes","emptyEl","appendContent","insertContent"].forEach((function(t){vi[t]=function(){return h.warn("videojs."+t+"() is deprecated; use videojs.dom."+t+"() instead"),St[t].apply(null,arguments)}})),vi.computedStyle=T,vi.dom=St,vi.url=Je,vi.defineLazyProperty=Ko,vi.addLanguage("en",{"Non-Fullscreen":"Exit Fullscreen"}),vi},t.exports=n()}).call(this,n(35))},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"JumpBackButton",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(e,"JumpForwardButton",{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(e,"LogoButton",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(e,"PlaylistPanel",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(e,"ProgressControlEventsBlocker",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(e,"RecommendationsOverlay",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(e,"ShoppablePanel",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(e,"TitleBar",{enumerable:!0,get:function(){return l.default}});var r=f(n(384)),o=f(n(385)),i=f(n(386)),a=f(n(404)),s=f(n(408)),u=f(n(409)),c=f(n(417)),l=f(n(421));function f(t){return t&&t.__esModule?t:{default:t}}n(423)},function(t,e,n){"use strict";function r(t){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r(t)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o,i=(o=n(1))&&o.__esModule?o:{default:o};function a(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function s(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function u(){return u="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var r=c(t,e);if(r){var o=Object.getOwnPropertyDescriptor(r,e);return o.get?o.get.call(arguments.length<3?t:n):o.value}},u.apply(this,arguments)}function c(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=p(t)););return t}function l(t,e){return l=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},l(t,e)}function f(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=p(t);if(e){var o=p(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return h(this,n)}}function h(t,e){if(e&&("object"===r(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function p(t){return p=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},p(t)}var d=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&l(t,e)}(c,t);var e,n,r,o=f(c);function c(){return a(this,c),o.apply(this,arguments)}return e=c,(n=[{key:"handleClick",value:function(t){u(p(c.prototype),"handleClick",this).call(this,t),this.player().currentTime(this.player().currentTime()+10)}},{key:"createEl",value:function(){return i.default.dom.createEl("button",{className:"vjs-control vjs-icon-skip-10-plus vjs-button"})}}])&&s(e.prototype,n),r&&s(e,r),Object.defineProperty(e,"prototype",{writable:!1}),c}(i.default.getComponent("ClickableComponent"));i.default.registerComponent("JumpForwardButton",d);var v=d;e.default=v},function(t,e,n){"use strict";function r(t){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r(t)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o,i=(o=n(1))&&o.__esModule?o:{default:o};function a(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function s(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function u(){return u="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var r=c(t,e);if(r){var o=Object.getOwnPropertyDescriptor(r,e);return o.get?o.get.call(arguments.length<3?t:n):o.value}},u.apply(this,arguments)}function c(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=p(t)););return t}function l(t,e){return l=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},l(t,e)}function f(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=p(t);if(e){var o=p(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return h(this,n)}}function h(t,e){if(e&&("object"===r(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function p(t){return p=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},p(t)}var d=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&l(t,e)}(c,t);var e,n,r,o=f(c);function c(){return a(this,c),o.apply(this,arguments)}return e=c,(n=[{key:"handleClick",value:function(t){u(p(c.prototype),"handleClick",this).call(this,t),this.player().currentTime(this.player().currentTime()-10)}},{key:"createEl",value:function(){return i.default.dom.createEl("button",{className:"vjs-control vjs-icon-skip-10-min vjs-button"})}}])&&s(e.prototype,n),r&&s(e,r),Object.defineProperty(e,"prototype",{writable:!1}),c}(i.default.getComponent("ClickableComponent"));i.default.registerComponent("JumpBackButton",d);var v=d;e.default=v},function(t,e,n){"use strict";function r(t){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r(t)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o,i=(o=n(1))&&o.__esModule?o:{default:o};n(387);var a=n(388),s=n(115);function u(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function c(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function l(t,e){return l=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},l(t,e)}function f(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=p(t);if(e){var o=p(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return h(this,n)}}function h(t,e){if(e&&("object"===r(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function p(t){return p=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},p(t)}var d=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&l(t,e)}(h,t);var e,n,r,o=f(h);function h(){return u(this,h),o.apply(this,arguments)}return e=h,(n=[{key:"createEl",value:function(){var t=this.options_.playerOptions,e=t.showLogo?"block":"none",n=(0,s.isLight)(t)?a.LIGHT_BG_ICON:a.DARK_BG_ICON,r=t.logoImageUrl?t.logoImageUrl:n;return i.default.dom.createEl("a",{},{class:"vjs-control vjs-cloudinary-button vjs-button",href:t.logoOnclickUrl,target:"_blank",style:"display: ".concat(e,"; background-image: url(").concat(r,")")})}}])&&c(e.prototype,n),r&&c(e,r),Object.defineProperty(e,"prototype",{writable:!1}),h}(i.default.getComponent("ClickableComponent"));i.default.registerComponent("logoButton",d);var v=d;e.default=v},function(t,e,n){"use strict";n.r(e)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.LIGHT_BG_ICON=e.DARK_BG_ICON=void 0;e.LIGHT_BG_ICON="https://res.cloudinary.com/cloudinary-marketing/image/upload/v1597164189/creative_source/Logo/Cloud%20Glyph/cloudinary_cloud_glyph_regular.svg";e.DARK_BG_ICON="https://res.cloudinary.com/cloudinary-marketing/image/upload/v1597164191/creative_source/Logo/Cloud%20Glyph/cloudinary_cloud_glyph_white.svg"},function(t,e,n){(function(t){var r=void 0!==t&&t||"undefined"!=typeof self&&self||window,o=Function.prototype.apply;function i(t,e){this._id=t,this._clearFn=e}e.setTimeout=function(){return new i(o.call(setTimeout,r,arguments),clearTimeout)},e.setInterval=function(){return new i(o.call(setInterval,r,arguments),clearInterval)},e.clearTimeout=e.clearInterval=function(t){t&&t.close()},i.prototype.unref=i.prototype.ref=function(){},i.prototype.close=function(){this._clearFn.call(r,this._id)},e.enroll=function(t,e){clearTimeout(t._idleTimeoutId),t._idleTimeout=e},e.unenroll=function(t){clearTimeout(t._idleTimeoutId),t._idleTimeout=-1},e._unrefActive=e.active=function(t){clearTimeout(t._idleTimeoutId);var e=t._idleTimeout;e>=0&&(t._idleTimeoutId=setTimeout((function(){t._onTimeout&&t._onTimeout()}),e))},n(390),e.setImmediate="undefined"!=typeof self&&self.setImmediate||void 0!==t&&t.setImmediate||this&&this.setImmediate,e.clearImmediate="undefined"!=typeof self&&self.clearImmediate||void 0!==t&&t.clearImmediate||this&&this.clearImmediate}).call(this,n(35))},function(t,e,n){(function(t,e){!function(t,n){"use strict";if(!t.setImmediate){var r,o,i,a,s,u=1,c={},l=!1,f=t.document,h=Object.getPrototypeOf&&Object.getPrototypeOf(t);h=h&&h.setTimeout?h:t,"[object process]"==={}.toString.call(t.process)?r=function(t){e.nextTick((function(){d(t)}))}:!function(){if(t.postMessage&&!t.importScripts){var e=!0,n=t.onmessage;return t.onmessage=function(){e=!1},t.postMessage("","*"),t.onmessage=n,e}}()?t.MessageChannel?((i=new MessageChannel).port1.onmessage=function(t){d(t.data)},r=function(t){i.port2.postMessage(t)}):f&&"onreadystatechange"in f.createElement("script")?(o=f.documentElement,r=function(t){var e=f.createElement("script");e.onreadystatechange=function(){d(t),e.onreadystatechange=null,o.removeChild(e),e=null},o.appendChild(e)}):r=function(t){setTimeout(d,0,t)}:(a="setImmediate$"+Math.random()+"$",s=function(e){e.source===t&&"string"==typeof e.data&&0===e.data.indexOf(a)&&d(+e.data.slice(a.length))},t.addEventListener?t.addEventListener("message",s,!1):t.attachEvent("onmessage",s),r=function(e){t.postMessage(a+e,"*")}),h.setImmediate=function(t){"function"!=typeof t&&(t=new Function(""+t));for(var e=new Array(arguments.length-1),n=0;n<e.length;n++)e[n]=arguments[n+1];var o={callback:t,args:e};return c[u]=o,r(u),u++},h.clearImmediate=p}function p(t){delete c[t]}function d(t){if(l)setTimeout(d,0,t);else{var e=c[t];if(e){l=!0;try{!function(t){var e=t.callback,n=t.args;switch(n.length){case 0:e();break;case 1:e(n[0]);break;case 2:e(n[0],n[1]);break;case 3:e(n[0],n[1],n[2]);break;default:e.apply(void 0,n)}}(e)}finally{p(t),l=!1}}}}}("undefined"==typeof self?void 0===t?this:t:self)}).call(this,n(35),n(167))},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(392),o=n(394),i=n(395),a=n(396),s=n(82);n(169),n(48),n(49),n(32),n(50),n(66),n(36),n(51),n(37),n(52),n(59),n(170),n(81),n(171),n(172),n(119),n(173),n(174),n(175),n(176),n(120),n(121),n(67),n(122),n(123),n(124),n(125),n(83),n(126),n(177),e.createCloudinaryLegacyURL=function(t,e){var n,u,c;"fetch"===e.type&&null==e.fetch_format&&(e.fetch_format=e.format);var l=e.type,f=e.resource_type||"image",h=e.version,p="boolean"!=typeof e.force_version||e.force_version;e.long_url_signature;var d=e.format,v=e.cloud_name;if(!v)throw"cloud_name must be provided in the configuration";var y=e.private_cdn,g=e.secure_distribution,m=e.secure,_=e.cdn_subdomain,b=e.secure_cdn_subdomain,w=e.cname,E=e.shorten,T=e.sign_url;e.api_secret;var S=e.url_suffix,O=e.use_root_path,C=e.auth_token,P=/^(image|raw)\/([a-z0-9_]+)\/v(\d+)\/([^#]+)$/.exec(t);P&&(f=P[1],l=P[2],h=P[3],t=P[4]);var k=t;if(null==t)return k;if(t=t.toString(),null===l&&t.match(/^https?:\//i))return k;f=(n=o.finalize_resource_type(f,l,S,O,E))[0],l=n[1],t=(u=i.finalize_source(t,d,S))[0],c=u[1],null==h&&p&&c.indexOf("/")>=0&&!c.match(/^v[0-9]+/)&&!c.match(/^https?:\//)&&(h=1),h=null!=h?"v"+h:null;var j=r.generateTransformationString(s.cloneDeep(e)).replace(/([^:])\/\//g,"$1/");if(T&&!C){var A=[j,c].filter((function(t){return null!=t&&""!==t})).join("/");try{for(var x=0;A!==decodeURIComponent(A)&&x<10;x++)A=decodeURIComponent(A)}catch(t){}}return[a.unsigned_url_prefix(t,v,y,_,b,w,m,g),f,l,j,h,t].filter((function(t){return null!=t&&""!==t})).join("/").replace(" ","%20")}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(169),o=n(170),i=n(171),a=n(172),s=n(48),u=n(119),c=n(173),l=n(174),f=n(81),h=n(175),p=n(176),d=n(120),v=n(177);n(49),n(32),n(50),n(66),n(36),n(51),n(37),n(52),n(59),n(121),n(67),n(122),n(82),n(123),n(124),n(125),n(83),n(126),e.generateTransformationString=function t(e){if("string"==typeof e)return e;if(e instanceof d.default)return e.toString();if(Array.isArray(e))return e.map((function(e){return t(e)})).filter((function(t){return t})).join("/");var n,y,g=e.size,m=e.overlay||e.underlay,_=e.crop,b=i.toArray(e.angle).join("."),w=(e.background||"").replace(/^#/,"rgb:"),E=(e.color||"").replace(/^#/,"rgb:"),T=i.toArray(e.flags||[]).join("."),S=void 0===e.dpr?e.dpr:v.processDpr(e.dpr),O=r.processLayer(e.overlay),C=a.processRadius(e.radius),P=r.processLayer(e.underlay),k=o.process_if(e.if),j=u.processCustomFunction(e.custom_function),A=c.processCustomPreFunction(e.custom_pre_function),x=e.fps,R=[],L=i.toArray(e.transformation||[]),I=e.effect,N=m||b||"fit"===_||"limit"===_;if(g){var M=g.split("x");n=M[0],y=M[1]}else n=e.width,y=e.height;n&&(0===n.toString().indexOf("auto")||N||parseFloat(n.toString())<1)&&delete e.width,y&&(N||parseFloat(y.toString())<1)&&delete e.height,L.some((function(t){return"object"==typeof t}))?L=L.map((function(e){return s.isObject(e)?t(e):t({transformation:e})})).filter((function(t){return t})):(R=L.join("."),L=[]),Array.isArray(I)?I=I.join(":"):s.isObject(I)&&(I=Object.entries(I).map((function(t){return t[0]+":"+t[1]})));var D=e.border;s.isObject(D)?D=(null!=D.width?D.width:2)+"px_solid_"+(null!=D.color?D.color:"black").replace(/^#/,"rgb:"):/^\d+$/.exec(D)&&(e.border=D,D=void 0),Array.isArray(x)&&(x=x.join("-"));var F={a:f.legacyNormalizeExpression(b),ar:f.legacyNormalizeExpression(e.aspect_ratio),b:w,bo:D,c:_,co:E,dpr:f.legacyNormalizeExpression(S),e:f.legacyNormalizeExpression(I),fl:T,fn:j||A,fps:x,h:f.legacyNormalizeExpression(y),ki:f.legacyNormalizeExpression(e.keyframe_interval),l:O,o:f.legacyNormalizeExpression(e.opacity),q:f.legacyNormalizeExpression(e.quality),r:C,t:R,u:P,w:f.legacyNormalizeExpression(n),x:f.legacyNormalizeExpression(e.x),y:f.legacyNormalizeExpression(e.y),z:f.legacyNormalizeExpression(e.zoom),ac:e.audio_codec,af:e.audio_frequency,br:e.bit_rate,cs:e.color_space,d:e.default_image,dl:e.delay,dn:e.density,du:h.normRangeValues(e.duration),eo:h.normRangeValues(l.splitRange(e.offset)[1]),f:e.fetch_format,g:e.gravity,pg:e.page,p:e.prefix,so:h.normRangeValues(l.splitRange(e.offset)[0]),sp:e.streaming_profile,vc:p.processVideoParams(e.video_codec),vs:e.video_sampling},B=Object.entries(e).filter((function(t){var e=t[0];return t[1],e.startsWith("$")})).map((function(t){var e=t[0],n=t[1];return e+"_"+f.legacyNormalizeExpression(n)})).sort().concat((e.variables||[]).map((function(t){var e=t[0],n=t[1];return e+"_"+f.legacyNormalizeExpression(n)}))).join(","),V=Object.entries(F).filter((function(t){t[0];var e=t[1];return null!=e&&(("string"!=typeof e||0!==e.length)&&(!Array.isArray(e)||0!==e.length))})).map((function(t){return t[0]+"_"+t[1]})).sort().join(","),U=[k,B,V,e.raw_transformation].filter((function(t){return t})).join(",");return U&&L.push(U),L.join("/")}},function(t,e){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),t.webpackPolyfill=1),t}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.finalize_resource_type=function(t,e,n,r,o){if(null==e&&(e="upload"),null!=n)if("image"===t&&"upload"===e)t="images",e=null;else if("image"===t&&"private"===e)t="private_images",e=null;else if("image"===t&&"authenticated"===e)t="authenticated_images",e=null;else if("raw"===t&&"upload"===e)t="files",e=null;else{if("video"!==t||"upload"!==e)throw new Error("URL Suffix only supported for image/upload, image/private, image/authenticated, video/upload and raw/upload");t="videos",e=null}if(r){if(!("image"===t&&"upload"===e||"images"===t&&null==e))throw new Error("Root path only supported for image/upload");t=null,e=null}return o&&"image"===t&&"upload"===e&&(t="iu",e=null),[t,e]}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(50);e.finalize_source=function(t,e,n){var o;if((t=t.replace(/([^:])\/\//g,"$1/")).match(/^https?:\//i))o=t=r.smartEscape(t);else{if(o=t=encodeURIComponent(decodeURIComponent(t)).replace(/%3A/g,":").replace(/%2F/g,"/"),n){if(n.match(/[\.\/]/))throw new Error("url_suffix should not include . or /");t=t+"/"+n}null!=e&&(t=t+"."+e,o=o+"."+e)}return[t,o]}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(32);e.unsigned_url_prefix=function(t,e,n,o,i,a,s,u){var c;if(0===e.indexOf("/"))return"/res"+e;var l=!n;if(s)null!=u&&u!==r.OLD_AKAMAI_SHARED_CDN||(u=n?e+"-res.cloudinary.com":r.SHARED_CDN),null==l&&(l=u===r.SHARED_CDN),c="https://"+u;else if(a)c="http://"+a;else{c="http://"+[n?e+"-":"","res",".cloudinary.com"].join("")}return l&&(c+="/"+e),c}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.groupBy=void 0;e.groupBy=function(t,e){return t.reduce((function(t,n,r){return r=e(n),Object.prototype.hasOwnProperty.call(t,r)?t[r].push(n):t[r]=[n],t}),{})}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.fontFace=void 0;var r,o=(r=n(399))&&r.__esModule?r:{default:r};e.fontFace=function(t,e){var n=e.cloudinary.fontFace;void 0===n&&(n="Fira Sans"),n&&"inherit"!==n?(o.default.load({google:{families:[n]}}),t.style.fontFamily=n):"inherit"===n&&(t.style.fontFamily="inherit")}},function(t,e,n){var r;!function(){function o(t,e,n){return t.call.apply(t.bind,arguments)}function i(t,e,n){if(!t)throw Error();if(2<arguments.length){var r=Array.prototype.slice.call(arguments,2);return function(){var n=Array.prototype.slice.call(arguments);return Array.prototype.unshift.apply(n,r),t.apply(e,n)}}return function(){return t.apply(e,arguments)}}function a(t,e,n){return(a=Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?o:i).apply(null,arguments)}var s=Date.now||function(){return+new Date};function u(t,e){this.a=t,this.o=e||t,this.c=this.o.document}var c=!!window.FontFace;function l(t,e,n,r){if(e=t.c.createElement(e),n)for(var o in n)n.hasOwnProperty(o)&&("style"==o?e.style.cssText=n[o]:e.setAttribute(o,n[o]));return r&&e.appendChild(t.c.createTextNode(r)),e}function f(t,e,n){(t=t.c.getElementsByTagName(e)[0])||(t=document.documentElement),t.insertBefore(n,t.lastChild)}function h(t){t.parentNode&&t.parentNode.removeChild(t)}function p(t,e,n){e=e||[],n=n||[];for(var r=t.className.split(/\s+/),o=0;o<e.length;o+=1){for(var i=!1,a=0;a<r.length;a+=1)if(e[o]===r[a]){i=!0;break}i||r.push(e[o])}for(e=[],o=0;o<r.length;o+=1){for(i=!1,a=0;a<n.length;a+=1)if(r[o]===n[a]){i=!0;break}i||e.push(r[o])}t.className=e.join(" ").replace(/\s+/g," ").replace(/^\s+|\s+$/,"")}function d(t,e){for(var n=t.className.split(/\s+/),r=0,o=n.length;r<o;r++)if(n[r]==e)return!0;return!1}function v(t,e,n){function r(){s&&o&&i&&(s(a),s=null)}e=l(t,"link",{rel:"stylesheet",href:e,media:"all"});var o=!1,i=!0,a=null,s=n||null;c?(e.onload=function(){o=!0,r()},e.onerror=function(){o=!0,a=Error("Stylesheet failed to load"),r()}):setTimeout((function(){o=!0,r()}),0),f(t,"head",e)}function y(t,e,n,r){var o=t.c.getElementsByTagName("head")[0];if(o){var i=l(t,"script",{src:e}),a=!1;return i.onload=i.onreadystatechange=function(){a||this.readyState&&"loaded"!=this.readyState&&"complete"!=this.readyState||(a=!0,n&&n(null),i.onload=i.onreadystatechange=null,"HEAD"==i.parentNode.tagName&&o.removeChild(i))},o.appendChild(i),setTimeout((function(){a||(a=!0,n&&n(Error("Script load timeout")))}),r||5e3),i}return null}function g(){this.a=0,this.c=null}function m(t){return t.a++,function(){t.a--,b(t)}}function _(t,e){t.c=e,b(t)}function b(t){0==t.a&&t.c&&(t.c(),t.c=null)}function w(t){this.a=t||"-"}function E(t,e){this.c=t,this.f=4,this.a="n";var n=(e||"n4").match(/^([nio])([1-9])$/i);n&&(this.a=n[1],this.f=parseInt(n[2],10))}function T(t){var e=[];t=t.split(/,\s*/);for(var n=0;n<t.length;n++){var r=t[n].replace(/['"]/g,"");-1!=r.indexOf(" ")||/^\d/.test(r)?e.push("'"+r+"'"):e.push(r)}return e.join(",")}function S(t){return t.a+t.f}function O(t){var e="normal";return"o"===t.a?e="oblique":"i"===t.a&&(e="italic"),e}function C(t){var e=4,n="n",r=null;return t&&((r=t.match(/(normal|oblique|italic)/i))&&r[1]&&(n=r[1].substr(0,1).toLowerCase()),(r=t.match(/([1-9]00|normal|bold)/i))&&r[1]&&(/bold/i.test(r[1])?e=7:/[1-9]00/.test(r[1])&&(e=parseInt(r[1].substr(0,1),10)))),n+e}function P(t,e){this.c=t,this.f=t.o.document.documentElement,this.h=e,this.a=new w("-"),this.j=!1!==e.events,this.g=!1!==e.classes}function k(t){if(t.g){var e=d(t.f,t.a.c("wf","active")),n=[],r=[t.a.c("wf","loading")];e||n.push(t.a.c("wf","inactive")),p(t.f,n,r)}j(t,"inactive")}function j(t,e,n){t.j&&t.h[e]&&(n?t.h[e](n.c,S(n)):t.h[e]())}function A(){this.c={}}function x(t,e){this.c=t,this.f=e,this.a=l(this.c,"span",{"aria-hidden":"true"},this.f)}function R(t){f(t.c,"body",t.a)}function L(t){return"display:block;position:absolute;top:-9999px;left:-9999px;font-size:300px;width:auto;height:auto;line-height:normal;margin:0;padding:0;font-variant:normal;white-space:nowrap;font-family:"+T(t.c)+";font-style:"+O(t)+";font-weight:"+t.f+"00;"}function I(t,e,n,r,o,i){this.g=t,this.j=e,this.a=r,this.c=n,this.f=o||3e3,this.h=i||void 0}function N(t,e,n,r,o,i,a){this.v=t,this.B=e,this.c=n,this.a=r,this.s=a||"BESbswy",this.f={},this.w=o||3e3,this.u=i||null,this.m=this.j=this.h=this.g=null,this.g=new x(this.c,this.s),this.h=new x(this.c,this.s),this.j=new x(this.c,this.s),this.m=new x(this.c,this.s),t=L(t=new E(this.a.c+",serif",S(this.a))),this.g.a.style.cssText=t,t=L(t=new E(this.a.c+",sans-serif",S(this.a))),this.h.a.style.cssText=t,t=L(t=new E("serif",S(this.a))),this.j.a.style.cssText=t,t=L(t=new E("sans-serif",S(this.a))),this.m.a.style.cssText=t,R(this.g),R(this.h),R(this.j),R(this.m)}w.prototype.c=function(t){for(var e=[],n=0;n<arguments.length;n++)e.push(arguments[n].replace(/[\W_]+/g,"").toLowerCase());return e.join(this.a)},I.prototype.start=function(){var t=this.c.o.document,e=this,n=s(),r=new Promise((function(r,o){!function i(){s()-n>=e.f?o():t.fonts.load(function(t){return O(t)+" "+t.f+"00 300px "+T(t.c)}(e.a),e.h).then((function(t){1<=t.length?r():setTimeout(i,25)}),(function(){o()}))}()})),o=null,i=new Promise((function(t,n){o=setTimeout(n,e.f)}));Promise.race([i,r]).then((function(){o&&(clearTimeout(o),o=null),e.g(e.a)}),(function(){e.j(e.a)}))};var M={D:"serif",C:"sans-serif"},D=null;function F(){if(null===D){var t=/AppleWebKit\/([0-9]+)(?:\.([0-9]+))/.exec(window.navigator.userAgent);D=!!t&&(536>parseInt(t[1],10)||536===parseInt(t[1],10)&&11>=parseInt(t[2],10))}return D}function B(t,e,n){for(var r in M)if(M.hasOwnProperty(r)&&e===t.f[M[r]]&&n===t.f[M[r]])return!0;return!1}function V(t){var e,n=t.g.a.offsetWidth,r=t.h.a.offsetWidth;(e=n===t.f.serif&&r===t.f["sans-serif"])||(e=F()&&B(t,n,r)),e?s()-t.A>=t.w?F()&&B(t,n,r)&&(null===t.u||t.u.hasOwnProperty(t.a.c))?U(t,t.v):U(t,t.B):function(t){setTimeout(a((function(){V(this)}),t),50)}(t):U(t,t.v)}function U(t,e){setTimeout(a((function(){h(this.g.a),h(this.h.a),h(this.j.a),h(this.m.a),e(this.a)}),t),0)}function H(t,e,n){this.c=t,this.a=e,this.f=0,this.m=this.j=!1,this.s=n}N.prototype.start=function(){this.f.serif=this.j.a.offsetWidth,this.f["sans-serif"]=this.m.a.offsetWidth,this.A=s(),V(this)};var Y=null;function z(t){0==--t.f&&t.j&&(t.m?((t=t.a).g&&p(t.f,[t.a.c("wf","active")],[t.a.c("wf","loading"),t.a.c("wf","inactive")]),j(t,"active")):k(t.a))}function W(t){this.j=t,this.a=new A,this.h=0,this.f=this.g=!0}function G(t,e,n,r,o){var i=0==--t.h;(t.f||t.g)&&setTimeout((function(){var t=o||null,s=r||{};if(0===n.length&&i)k(e.a);else{e.f+=n.length,i&&(e.j=i);var u,c=[];for(u=0;u<n.length;u++){var l=n[u],f=s[l.c],h=e.a,d=l;if(h.g&&p(h.f,[h.a.c("wf",d.c,S(d).toString(),"loading")]),j(h,"fontloading",d),h=null,null===Y)if(window.FontFace){d=/Gecko.*Firefox\/(\d+)/.exec(window.navigator.userAgent);var v=/OS X.*Version\/10\..*Safari/.exec(window.navigator.userAgent)&&/Apple/.exec(window.navigator.vendor);Y=d?42<parseInt(d[1],10):!v}else Y=!1;h=Y?new I(a(e.g,e),a(e.h,e),e.c,l,e.s,f):new N(a(e.g,e),a(e.h,e),e.c,l,e.s,t,f),c.push(h)}for(u=0;u<c.length;u++)c[u].start()}}),0)}function K(t,e){this.c=t,this.a=e}function X(t,e){this.c=t,this.a=e}function q(t,e){this.c=t||$,this.a=[],this.f=[],this.g=e||""}H.prototype.g=function(t){var e=this.a;e.g&&p(e.f,[e.a.c("wf",t.c,S(t).toString(),"active")],[e.a.c("wf",t.c,S(t).toString(),"loading"),e.a.c("wf",t.c,S(t).toString(),"inactive")]),j(e,"fontactive",t),this.m=!0,z(this)},H.prototype.h=function(t){var e=this.a;if(e.g){var n=d(e.f,e.a.c("wf",t.c,S(t).toString(),"active")),r=[],o=[e.a.c("wf",t.c,S(t).toString(),"loading")];n||r.push(e.a.c("wf",t.c,S(t).toString(),"inactive")),p(e.f,r,o)}j(e,"fontinactive",t),z(this)},W.prototype.load=function(t){this.c=new u(this.j,t.context||this.j),this.g=!1!==t.events,this.f=!1!==t.classes,function(t,e,n){var r=[],o=n.timeout;!function(t){t.g&&p(t.f,[t.a.c("wf","loading")]),j(t,"loading")}(e);r=function(t,e,n){var r,o=[];for(r in e)if(e.hasOwnProperty(r)){var i=t.c[r];i&&o.push(i(e[r],n))}return o}(t.a,n,t.c);var i=new H(t.c,e,o);for(t.h=r.length,e=0,n=r.length;e<n;e++)r[e].load((function(e,n,r){G(t,i,e,n,r)}))}(this,new P(this.c,t),t)},K.prototype.load=function(t){function e(){if(i["__mti_fntLst"+r]){var n,o=i["__mti_fntLst"+r](),a=[];if(o)for(var s=0;s<o.length;s++){var u=o[s].fontfamily;null!=o[s].fontStyle&&null!=o[s].fontWeight?(n=o[s].fontStyle+o[s].fontWeight,a.push(new E(u,n))):a.push(new E(u))}t(a)}else setTimeout((function(){e()}),50)}var n=this,r=n.a.projectId,o=n.a.version;if(r){var i=n.c.o;y(this.c,(n.a.api||"https://fast.fonts.net/jsapi")+"/"+r+".js"+(o?"?v="+o:""),(function(o){o?t([]):(i["__MonotypeConfiguration__"+r]=function(){return n.a},e())})).id="__MonotypeAPIScript__"+r}else t([])},X.prototype.load=function(t){var e,n,r=this.a.urls||[],o=this.a.families||[],i=this.a.testStrings||{},a=new g;for(e=0,n=r.length;e<n;e++)v(this.c,r[e],m(a));var s=[];for(e=0,n=o.length;e<n;e++)if((r=o[e].split(":"))[1])for(var u=r[1].split(","),c=0;c<u.length;c+=1)s.push(new E(r[0],u[c]));else s.push(new E(r[0]));_(a,(function(){t(s,i)}))};var $="https://fonts.googleapis.com/css";function J(t){this.f=t,this.a=[],this.c={}}var Q={latin:"BESbswy","latin-ext":"çöüğş",cyrillic:"йяЖ",greek:"αβΣ",khmer:"កខគ",Hanuman:"កខគ"},Z={thin:"1",extralight:"2","extra-light":"2",ultralight:"2","ultra-light":"2",light:"3",regular:"4",book:"4",medium:"5","semi-bold":"6",semibold:"6","demi-bold":"6",demibold:"6",bold:"7","extra-bold":"8",extrabold:"8","ultra-bold":"8",ultrabold:"8",black:"9",heavy:"9",l:"3",r:"4",b:"7"},tt={i:"i",italic:"i",n:"n",normal:"n"},et=/^(thin|(?:(?:extra|ultra)-?)?light|regular|book|medium|(?:(?:semi|demi|extra|ultra)-?)?bold|black|heavy|l|r|b|[1-9]00)?(n|i|normal|italic)?$/;function nt(t,e){this.c=t,this.a=e}var rt={Arimo:!0,Cousine:!0,Tinos:!0};function ot(t,e){this.c=t,this.a=e}function it(t,e){this.c=t,this.f=e,this.a=[]}nt.prototype.load=function(t){var e=new g,n=this.c,r=new q(this.a.api,this.a.text),o=this.a.families;!function(t,e){for(var n=e.length,r=0;r<n;r++){var o=e[r].split(":");3==o.length&&t.f.push(o.pop());var i="";2==o.length&&""!=o[1]&&(i=":"),t.a.push(o.join(i))}}(r,o);var i=new J(o);!function(t){for(var e=t.f.length,n=0;n<e;n++){var r=t.f[n].split(":"),o=r[0].replace(/\+/g," "),i=["n4"];if(2<=r.length){var a;if(a=[],s=r[1])for(var s,u=(s=s.split(",")).length,c=0;c<u;c++){var l;if((l=s[c]).match(/^[\w-]+$/))if(null==(f=et.exec(l.toLowerCase())))l="";else{if(l=null==(l=f[2])||""==l?"n":tt[l],null==(f=f[1])||""==f)f="4";else var f=Z[f]||(isNaN(f)?"4":f.substr(0,1));l=[l,f].join("")}else l="";l&&a.push(l)}0<a.length&&(i=a),3==r.length&&(a=[],0<(r=(r=r[2])?r.split(","):a).length&&(r=Q[r[0]])&&(t.c[o]=r))}for(t.c[o]||(r=Q[o])&&(t.c[o]=r),r=0;r<i.length;r+=1)t.a.push(new E(o,i[r]))}}(i),v(n,function(t){if(0==t.a.length)throw Error("No fonts to load!");if(-1!=t.c.indexOf("kit="))return t.c;for(var e=t.a.length,n=[],r=0;r<e;r++)n.push(t.a[r].replace(/ /g,"+"));return e=t.c+"?family="+n.join("%7C"),0<t.f.length&&(e+="&subset="+t.f.join(",")),0<t.g.length&&(e+="&text="+encodeURIComponent(t.g)),e}(r),m(e)),_(e,(function(){t(i.a,i.c,rt)}))},ot.prototype.load=function(t){var e=this.a.id,n=this.c.o;e?y(this.c,(this.a.api||"https://use.typekit.net")+"/"+e+".js",(function(e){if(e)t([]);else if(n.Typekit&&n.Typekit.config&&n.Typekit.config.fn){e=n.Typekit.config.fn;for(var r=[],o=0;o<e.length;o+=2)for(var i=e[o],a=e[o+1],s=0;s<a.length;s++)r.push(new E(i,a[s]));try{n.Typekit.load({events:!1,classes:!1,async:!0})}catch(t){}t(r)}}),2e3):t([])},it.prototype.load=function(t){var e=this.f.id,n=this.c.o,r=this;e?(n.__webfontfontdeckmodule__||(n.__webfontfontdeckmodule__={}),n.__webfontfontdeckmodule__[e]=function(e,n){for(var o=0,i=n.fonts.length;o<i;++o){var a=n.fonts[o];r.a.push(new E(a.name,C("font-weight:"+a.weight+";font-style:"+a.style)))}t(r.a)},y(this.c,(this.f.api||"https://f.fontdeck.com/s/css/js/")+function(t){return t.o.location.hostname||t.a.location.hostname}(this.c)+"/"+e+".js",(function(e){e&&t([])}))):t([])};var at=new W(window);at.a.c.custom=function(t,e){return new X(e,t)},at.a.c.fontdeck=function(t,e){return new it(e,t)},at.a.c.monotype=function(t,e){return new K(e,t)},at.a.c.typekit=function(t,e){return new ot(e,t)},at.a.c.google=function(t,e){return new nt(e,t)};var st={load:a(at.load,at)};void 0===(r=function(){return st}.call(e,n,e,t))||(t.exports=r)}()},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.playButton=void 0;e.playButton=function(t,e){"init"===e.bigPlayButton&&(t.classList.add("vjs-big-play-button-init-only"),e.bigPlayButton=!0)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=function(t){var e=t.loop(),n=t.paused(),r=t.muted(),o=t.isFullscreen(),i={class:"player-version",label:"Cloudinary Player v1.9.1"};return t.controls()?[{label:e?"Unloop":"Loop",listener:function(){t.loop(!e)}},{label:n?"Play":"Pause",listener:function(){n?t.play():t.pause()}},{label:r?"Unmute":"Mute",listener:function(){t.muted(!r)}},{label:o?"Exit Fullscreen":"Fullscreen",listener:function(){o?t.exitFullscreen():t.requestFullscreen()}},i]:[i]};e.default=r},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.normalizeAttributes=void 0;var r=n(80),o=/^(data-cld-)(\w+)/,i={};var a=function(t){return function(t){var e=null;if(""===t)return!0;try{e=JSON.parse(t)}catch(t){}return e||(e=Number(t))||t}(t)};e.normalizeAttributes=function(t){var e={};if(t&&t.attributes&&t.attributes.length>0)for(var n=t.attributes,s=n.length-1;s>=0;s--){var u=n[s].name,c=n[s].value;if(u.match(o)&&(u=(0,r.camelize)(u.replace(o,"$2"))),"boolean"==typeof t[u])c=null!==c;else c=(i[u]||a)(c);e[u]=c}return e}},function(t,e,n){(function(e){var n;n=void 0!==e?e:this,t.exports=function(t){if(t.CSS&&t.CSS.escape)return t.CSS.escape;var e=function(t){if(0==arguments.length)throw new TypeError("`CSS.escape` requires an argument.");for(var e,n=String(t),r=n.length,o=-1,i="",a=n.charCodeAt(0);++o<r;)0!=(e=n.charCodeAt(o))?i+=e>=1&&e<=31||127==e||0==o&&e>=48&&e<=57||1==o&&e>=48&&e<=57&&45==a?"\\"+e.toString(16)+" ":0==o&&1==r&&45==e||!(e>=128||45==e||95==e||e>=48&&e<=57||e>=65&&e<=90||e>=97&&e<=122)?"\\"+n.charAt(o):n.charAt(o):i+="�";return i};return t.CSS||(t.CSS={}),t.CSS.escape=e,e}(n)}).call(this,n(35))},function(t,e,n){"use strict";function r(t){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r(t)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=s(n(1));n(180);var i=s(n(405)),a=n(27);function s(t){return t&&t.__esModule?t:{default:t}}function u(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function c(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function l(t,e){return l=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},l(t,e)}function f(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=y(t);if(e){var o=y(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return h(this,n)}}function h(t,e){if(e&&("object"===r(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return p(t)}function p(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function d(){return d="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var r=v(t,e);if(r){var o=Object.getOwnPropertyDescriptor(r,e);return o.get?o.get.call(arguments.length<3?t:n):o.value}},d.apply(this,arguments)}function v(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=y(t)););return t}function y(t){return y=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},y(t)}var g=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&l(t,e)}(h,t);var e,n,r,s=f(h);function h(t){var e,n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};u(this,h),n=s.call(this,t,r);var o=function(){n.render()};return t.on(a.PLAYER_EVENT.PLAYLIST_ITEM_CHANGED,o),n.render(),n.dispose=function(){d((e=p(n),y(h.prototype)),"dispose",e).call(e),t.off(a.PLAYER_EVENT.PLAYLIST_ITEM_CHANGED,o)},n}return e=h,(n=[{key:"createEl",value:function(){var t=d(y(h.prototype),"createEl",this).call(this);return t.classList.add("cld-plw-panel"),t}},{key:"removeAll",value:function(){for(var t=this.children(),e=t.length-1;e>=0;--e)this.removeChild(t[e])}},{key:"getItems",value:function(){var t=this.player().cloudinary.playlist(),e=t._repeat;if(this.options_.showAll)return t.list();var n=[],r=this.options_.total,o=t.currentIndex(),i=t.list()[o];for(n.push(i);n.length<r;){if(-1===(o=t.nextIndex(o))){if(!e&&n.length>0)break;o=0}i=t.list()[o],n.push(i)}return n}},{key:"render",value:function(){var t=this,e=this.getItems();this.removeAll(),e.forEach((function(e,n){var r=new i.default(t.player(),o.default.mergeOptions(t.options_,{item:e,next:1===n,current:0===n}));t.addChild(r)}))}}])&&c(e.prototype,n),r&&c(e,r),Object.defineProperty(e,"prototype",{writable:!1}),h}(o.default.getComponent("Component"));o.default.registerComponent("playlistPanel",g);var m=g;e.default=m},function(t,e,n){"use strict";function r(t){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r(t)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=a(n(1)),i=a(n(406));function a(t){return t&&t.__esModule?t:{default:t}}function s(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function u(){return u="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var r=c(t,e);if(r){var o=Object.getOwnPropertyDescriptor(r,e);return o.get?o.get.call(arguments.length<3?t:n):o.value}},u.apply(this,arguments)}function c(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=p(t)););return t}function l(t,e){return l=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},l(t,e)}function f(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=p(t);if(e){var o=p(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return h(this,n)}}function h(t,e){if(e&&("object"===r(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function p(t){return p=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},p(t)}var d=o.default.dom||o.default,v={source:null,next:!1},y=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&l(t,e)}(a,t);var e,n,r,i=f(a);function a(t,e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,a);var n=o.default.mergeOptions(v,e);return i.call(this,t,n)}return e=a,(n=[{key:"handleClick",value:function(t){u(p(a.prototype),"handleClick",this).call(this,t),this.play()}},{key:"play",value:function(){var t=this.getItem(),e=this.player().cloudinary.playlist().list().indexOf(t);if(-1===e)throw new Error("Invalid playlist item...");this.player().cloudinary.playlist().playAtIndex(e)}},{key:"isCurrent",value:function(){return this.options_.current}},{key:"getTitle",value:function(){return u(p(a.prototype),"getTitle",this).call(this)}},{key:"getDuration",value:function(){return u(p(a.prototype),"getDuration",this).call(this)}},{key:"createEl",value:function(){var t=u(p(a.prototype),"createEl",this).call(this);t.classList.add("cld-plw-panel-item");var e=d.createEl("div",{className:"cld-plw-item-info-wrap"}),n=d.createEl("div",{className:"cld-plw-item-title"});if(this.isCurrent()){t.classList.add("cld-plw-panel-item-active");var r=d.createEl("span",{className:"cld-plw-item-title-curr"},{},"Now Playing: ");n.appendChild(r)}var o=d.createEl("span",{className:"cld-plw-item-title"},{},this.getTitle());n.appendChild(o);var i=d.createEl("div",{className:"cld-plw-item-duration"},{},this.getDuration());return e.appendChild(n),e.appendChild(i),t&&t.appendChild(e),t.appendChild(e),t}}])&&s(e.prototype,n),r&&s(e,r),Object.defineProperty(e,"prototype",{writable:!1}),a}(i.default);o.default.registerComponent("playlistPanelItem",y);var g=y;e.default=g},function(t,e,n){"use strict";function r(t){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r(t)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o,i=(o=n(1))&&o.__esModule?o:{default:o};function a(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function s(){return s="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var r=u(t,e);if(r){var o=Object.getOwnPropertyDescriptor(r,e);return o.get?o.get.call(arguments.length<3?t:n):o.value}},s.apply(this,arguments)}function u(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=h(t)););return t}function c(t,e){return c=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},c(t,e)}function l(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=h(t);if(e){var o=h(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return f(this,n)}}function f(t,e){if(e&&("object"===r(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function h(t){return h=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},h(t)}n(407);var p=i.default.getComponent("ClickableComponent"),d={item:null,transformation:{width:300,aspect_ratio:"16:9",crop:"pad",background:"black"}},v=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&c(t,e)}(u,t);var e,n,r,o=l(u);function u(t,e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,u);var n=i.default.mergeOptions(d,e);return o.call(this,t,n)}return e=u,n=[{key:"getItem",value:function(){return this.options_.item}},{key:"getTitle",value:function(){return this.getItem().info().title}},{key:"getDuration",value:function(){return" "}},{key:"getThumbnail",value:function(){return this.getItem().poster().url({transformation:this.options_.transformation})}},{key:"handleClick",value:function(t){t.preventDefault()}},{key:"createControlTextEl",value:function(){}},{key:"createEl",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"a",e=s(h(u.prototype),"createEl",this).call(this,t,{className:"cld-thumbnail",href:"#"}),n=s(h(u.prototype),"createEl",this).call(this,"img",{className:"cld-thumbnail-img",src:this.getThumbnail()});return e.appendChild(n),e.style.backgroundImage="url('".concat(this.getThumbnail(),"')"),e}}],n&&a(e.prototype,n),r&&a(e,r),Object.defineProperty(e,"prototype",{writable:!1}),u}(p),y=v;e.default=y},function(t,e,n){"use strict";n.r(e)},function(t,e,n){"use strict";function r(t){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r(t)}var o,i=(o=n(1))&&o.__esModule?o:{default:o};function a(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function s(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function u(){return u="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var r=c(t,e);if(r){var o=Object.getOwnPropertyDescriptor(r,e);return o.get?o.get.call(arguments.length<3?t:n):o.value}},u.apply(this,arguments)}function c(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=p(t)););return t}function l(t,e){return l=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},l(t,e)}function f(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=p(t);if(e){var o=p(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return h(this,n)}}function h(t,e){if(e&&("object"===r(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function p(t){return p=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},p(t)}var d=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&l(t,e)}(i,t);var e,n,r,o=f(i);function i(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return a(this,i),o.call(this,t,e)}return e=i,(n=[{key:"createEl",value:function(){return u(p(i.prototype),"createEl",this).call(this,"div",{className:"vjs-progress-control-events-blocker"})}}])&&s(e.prototype,n),r&&s(e,r),Object.defineProperty(e,"prototype",{writable:!1}),i}(i.default.getComponent("Component"));i.default.registerComponent("progressControlEventsBlocker",d)},function(t,e,n){"use strict";var r;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=((r=n(410))&&r.__esModule?r:{default:r}).default;e.default=o},function(t,e,n){"use strict";function r(t){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r(t)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=s(n(1)),i=s(n(411)),a=s(n(415));function s(t){return t&&t.__esModule?t:{default:t}}function u(t){return function(t){if(Array.isArray(t))return c(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return c(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return c(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function c(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function l(t,e,n){return l=g()?Reflect.construct:function(t,e,n){var r=[null];r.push.apply(r,e);var o=new(Function.bind.apply(t,r));return n&&v(o,n.prototype),o},l.apply(null,arguments)}function f(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function h(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function p(){return p="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var r=d(t,e);if(r){var o=Object.getOwnPropertyDescriptor(r,e);return o.get?o.get.call(arguments.length<3?t:n):o.value}},p.apply(this,arguments)}function d(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=m(t)););return t}function v(t,e){return v=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},v(t,e)}function y(t,e){if(e&&("object"===r(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function g(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}function m(t){return m=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},m(t)}n(416);var _=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&v(t,e)}(_,t);var e,n,r,s,c,d=(e=_,n=g(),function(){var t,r=m(e);if(n){var o=m(this).constructor;t=Reflect.construct(r,arguments,o)}else t=r.apply(this,arguments);return y(this,t)});function _(t,e){var n;f(this,_);for(var r=arguments.length,o=new Array(r>2?r-2:0),s=2;s<r;s++)o[s-2]=arguments[s];return(n=d.call.apply(d,[this,t].concat(o)))._content=new i.default(t),n.addChild(n._content),n.addChild(l(a.default,[t,{clickHandler:function(){n.close()}}].concat(o))),n.setEvents(t),n.doNotOpen=!1,n}return r=_,s=[{key:"setEvents",value:function(t){var e=this;this.on(t,"recommendationschanged",(function(t,n){e.setItems.apply(e,u(n.items))})),this.on(t,"recommendationsnoshow",this.setDoNotOpen),this.on(t,"recommendationsshow",this.open),this.on(t,"recommendationshide",this.close),this.on(t,"cldsourcechanged",(function(){e.clearItems(),e.close()}))}},{key:"setDoNotOpen",value:function(){this.doNotOpen=!0}},{key:"open",value:function(){this.doNotOpen||(this._showControlsOnClose=this.player().controls(),this.player().controls(!1),this.el().style.visibility="visible")}},{key:"clearItems",value:function(){this._content.clearItems()}},{key:"close",value:function(){this.el().style.visibility="hidden",this._showControlsOnClose&&this.player().controls(!0)}},{key:"createEl",value:function(){var t="vjs-recommendations-overlay",e=p(m(_.prototype),"createEl",this).call(this,"div",{className:t});return o.default.dom.addClass(e,t),e}},{key:"setItems",value:function(t){for(var e,n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];this.doNotOpen=!1,r=r.slice(0,3),(e=this._content).setItems.apply(e,[t].concat(u(r)))}},{key:"handleClick",value:function(){this.stopPropagation()}},{key:"dispose",value:function(){p(m(_.prototype),"dispose",this).call(this)}}],s&&h(r.prototype,s),c&&h(r,c),Object.defineProperty(r,"prototype",{writable:!1}),_}(o.default.getComponent("Component"));o.default.registerComponent("recommendationsOverlay",_);var b=_;e.default=b},function(t,e,n){"use strict";function r(t){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r(t)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=s(n(1)),i=s(n(412)),a=s(n(413));function s(t){return t&&t.__esModule?t:{default:t}}function u(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function c(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function l(t,e,n){return e&&c(t.prototype,e),n&&c(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function f(){return f="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var r=h(t,e);if(r){var o=Object.getOwnPropertyDescriptor(r,e);return o.get?o.get.call(arguments.length<3?t:n):o.value}},f.apply(this,arguments)}function h(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=g(t)););return t}function p(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&d(t,e)}function d(t,e){return d=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},d(t,e)}function v(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=g(t);if(e){var o=g(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return y(this,n)}}function y(t,e){if(e&&("object"===r(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function g(t){return g=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},g(t)}var m=o.default.getComponent("Component"),_=function(t){p(n,t);var e=v(n);function n(t){var r;u(this,n);for(var o=arguments.length,i=new Array(o>1?o-1:0),a=1;a<o;a++)i[a-1]=arguments[a];return(r=e.call.apply(e,[this,t].concat(i)))._content=new b(t),r.addChild(r._content),r}return l(n,[{key:"setItems",value:function(t){for(var e,n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];(e=this._content).setItems.apply(e,[t].concat(r))}},{key:"clearItems",value:function(){this._content._primary.clearItem(),this._content._secondaryContainer.clearItems()}},{key:"createEl",value:function(){return f(g(n.prototype),"createEl",this).call(this,"div",{className:"vjs-recommendations-overlay-content"})}}]),n}(m),b=function(t){p(n,t);var e=v(n);function n(t){var r;u(this,n);for(var o=arguments.length,s=new Array(o>1?o-1:0),c=1;c<o;c++)s[c-1]=arguments[c];return(r=e.call.apply(e,[this,t].concat(s)))._primary=new i.default(t),r._secondaryContainer=new a.default(t),r.addChild(r._primary),r.addChild(r._secondaryContainer),r}return l(n,[{key:"setItems",value:function(t){var e;this._primary.setItem(t);for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];(e=this._secondaryContainer).setItems.apply(e,r)}},{key:"createEl",value:function(){return f(g(n.prototype),"createEl",this).call(this,"div",{className:"aspect-ratio-content"})}}]),n}(m),w=_;e.default=w},function(t,e,n){"use strict";function r(t){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r(t)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=s(n(1)),i=s(n(181)),a=s(n(182));function s(t){return t&&t.__esModule?t:{default:t}}function u(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function c(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function l(){return l="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var r=f(t,e);if(r){var o=Object.getOwnPropertyDescriptor(r,e);return o.get?o.get.call(arguments.length<3?t:n):o.value}},l.apply(this,arguments)}function f(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=v(t)););return t}function h(t,e){return h=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},h(t,e)}function p(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=v(t);if(e){var o=v(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return d(this,n)}}function d(t,e){if(e&&("object"===r(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function v(t){return v=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},v(t)}var y=o.default.dom||o.default,g=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&h(t,e)}(i,t);var e,n,r,o=p(i);function i(){return u(this,i),o.apply(this,arguments)}return e=i,(n=[{key:"setItem",value:function(t){l(v(i.prototype),"setItem",this).call(this,t);var e=this.source.info();if(this.setTitle(e.title),this.setSubtitle(e.subtitle),e.description){var n=e.description.length>300?e.description.substring(0,300)+"...":e.description;this.setDescription(n)}}},{key:"setPoster",value:function(t){this.poster.style.backgroundImage="url('".concat(t,"')")}},{key:"setTitle",value:function(t){a.default.setText(this.title,t)}},{key:"setSubtitle",value:function(t){a.default.setText(this.subtitle,t)}},{key:"setDescription",value:function(t){a.default.setText(this.description,t)}},{key:"clearItem",value:function(){this.setTitle(""),this.setSubtitle(""),this.setDescription(""),this.poster.style.backgroundImage=null}},{key:"createEl",value:function(){var t=l(v(i.prototype),"createEl",this).call(this,"div",{className:"vjs-recommendations-overlay-item vjs-recommendations-overlay-item-primary"});return this.poster=y.createEl("div",{className:"vjs-recommendations-overlay-item-primary-image"}),this.title=y.createEl("h2"),this.title.innerHTML="",this.subtitle=y.createEl("h3"),this.subtitle.innerHTML="",this.description=y.createEl("p"),this.description.innerHTML="",this.content=y.createEl("div",{className:"vjs-recommendations-overlay-item-info vjs-recommendations-overlay-item-primary-content"}),this.content.appendChild(this.title),this.content.appendChild(this.subtitle),this.content.appendChild(this.description),t.appendChild(this.poster),t.appendChild(this.content),t}}])&&c(e.prototype,n),r&&c(e,r),Object.defineProperty(e,"prototype",{writable:!1}),i}(i.default),m=g;e.default=m},function(t,e,n){"use strict";function r(t){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r(t)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=a(n(1)),i=a(n(414));function a(t){return t&&t.__esModule?t:{default:t}}function s(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function u(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function c(){return c="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var r=l(t,e);if(r){var o=Object.getOwnPropertyDescriptor(r,e);return o.get?o.get.call(arguments.length<3?t:n):o.value}},c.apply(this,arguments)}function l(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=d(t)););return t}function f(t,e){return f=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},f(t,e)}function h(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=d(t);if(e){var o=d(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return p(this,n)}}function p(t,e){if(e&&("object"===r(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function d(t){return d=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},d(t)}var v=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&f(t,e)}(a,t);var e,n,r,o=h(a);function a(){return s(this,a),o.apply(this,arguments)}return e=a,n=[{key:"setItems",value:function(){for(var t=this,e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];this.clearItems(),n&&n.forEach((function(e){var n=new i.default(t.player());n.setItem(e),t.addChild(n)}))}},{key:"clearItems",value:function(){var t=this;this.children().forEach((function(){t.removeChild(t.children()[0])}))}},{key:"createEl",value:function(){return c(d(a.prototype),"createEl",this).call(this,"div",{className:"vjs-recommendations-overlay-item-secondary-container"})}}],n&&u(e.prototype,n),r&&u(e,r),Object.defineProperty(e,"prototype",{writable:!1}),a}(o.default.getComponent("Component")),y=v;e.default=y},function(t,e,n){"use strict";function r(t){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r(t)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=a(n(1)),i=a(n(181));function a(t){return t&&t.__esModule?t:{default:t}}function s(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function u(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function c(){return c="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var r=l(t,e);if(r){var o=Object.getOwnPropertyDescriptor(r,e);return o.get?o.get.call(arguments.length<3?t:n):o.value}},c.apply(this,arguments)}function l(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=d(t)););return t}function f(t,e){return f=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},f(t,e)}function h(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=d(t);if(e){var o=d(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return p(this,n)}}function p(t,e){if(e&&("object"===r(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function d(t){return d=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},d(t)}var v=o.default.dom||o.default,y=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&f(t,e)}(i,t);var e,n,r,o=h(i);function i(){return s(this,i),o.apply(this,arguments)}return e=i,(n=[{key:"setItem",value:function(t){c(d(i.prototype),"setItem",this).call(this,t),this.setDuration("")}},{key:"setPoster",value:function(t){this.el().style.backgroundImage="url('".concat(t,"')")}},{key:"setDuration",value:function(t){this.duration.innerText=t}},{key:"createEl",value:function(){var t=c(d(i.prototype),"createEl",this).call(this,"div",{className:"vjs-recommendations-overlay-item vjs-recommendations-overlay-item-secondary"});this.title=v.createEl("span",{className:"vjs-recommendations-overlay-item-secondary-title"}),this.title.innerHTML="",this.duration=v.createEl("span",{className:"vjs-recommendations-overlay-item-secondary-duration"}),this.duration.innerHTML="";var e=v.createEl("div",{className:"vjs-recommendations-overlay-item-info"});return e.appendChild(this.title),e.appendChild(this.duration),t.appendChild(e),t}},{key:"handleClick",value:function(){c(d(i.prototype),"handleClick",this).call(this),this.action()}}])&&u(e.prototype,n),r&&u(e,r),Object.defineProperty(e,"prototype",{writable:!1}),i}(i.default),g=y;e.default=g},function(t,e,n){"use strict";function r(t){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r(t)}var o;function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function s(){return s="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var r=u(t,e);if(r){var o=Object.getOwnPropertyDescriptor(r,e);return o.get?o.get.call(arguments.length<3?t:n):o.value}},s.apply(this,arguments)}function u(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=h(t)););return t}function c(t,e){return c=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},c(t,e)}function l(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=h(t);if(e){var o=h(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return f(this,n)}}function f(t,e){if(e&&("object"===r(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function h(t){return h=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},h(t)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var p=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&c(t,e)}(u,t);var e,n,r,o=l(u);function u(){return i(this,u),o.apply(this,arguments)}return e=u,(n=[{key:"createEl",value:function(){return s(h(u.prototype),"createEl",this).call(this,"span",{className:"vjs-recommendations-overlay-hide vjs-icon-close"})}},{key:"handleClick",value:function(){this.options_.clickHandler()}}])&&a(e.prototype,n),r&&a(e,r),Object.defineProperty(e,"prototype",{writable:!1}),u}(((o=n(1))&&o.__esModule?o:{default:o}).default.getComponent("ClickableComponent")),d=p;e.default=d},function(t,e,n){"use strict";n.r(e)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=f(n(1)),o=n(12),i=n(418),a=n(183);n(180);var s=f(n(419)),u=f(n(84)),c=n(185),l=n(27);function f(t){return t&&t.__esModule?t:{default:t}}function h(t){return h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},h(t)}function p(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function d(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function v(t,e){return v=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},v(t,e)}function y(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=w(t);if(e){var o=w(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return g(this,n)}}function g(t,e){if(e&&("object"===h(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return m(t)}function m(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function _(){return _="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var r=b(t,e);if(r){var o=Object.getOwnPropertyDescriptor(r,e);return o.get?o.get.call(arguments.length<3?t:n):o.value}},_.apply(this,arguments)}function b(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=w(t)););return t}function w(t){return w=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},w(t)}var E=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&v(t,e)}(g,t);var e,n,r,f=y(g);function g(t){var e,n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};p(this,g),(n=f.call(this,t,r)).options=r;var o=function(){n.render()};return t.on(l.PLAYER_EVENT.SHOPPABLE_ITEM_CHANGED,o),n.render(),n.dispose=function(){_((e=m(n),w(g.prototype)),"dispose",e).call(e),t.off(l.PLAYER_EVENT.SHOPPABLE_ITEM_CHANGED,o)},n}return e=g,(n=[{key:"createEl",value:function(){var t=_(w(g.prototype),"createEl",this).call(this);return[c.CLD_SPBL_PANEL_CLASS,"base-color-bg"].map((function(e){return t.classList.add(e)})),t}},{key:"removeAll",value:function(){for(var t=this.children(),e=t.length-1;e>=0;--e)this.removeChild(t[e])}},{key:"getItems",value:function(){var t=this,e=this.player_.cloudinary.cloudinaryConfig();return this.options.products.map((function(n){n.onHover&&"object"===h(n.onHover.args)&&(n.onHover.args.transformation=(0,o.assign)({},t.options.transformation,n.onHover.args.transformation));var r={productId:n.productId,productName:n.productName,title:n.title,onHover:n.onHover,onClick:n.onClick,startTime:n.startTime,endTime:n.endTime};return{imageSrc:new u.default(n.publicId,{cloudinaryConfig:e,transformation:(0,o.assign)({},t.options.transformation,n.transformation)}),conf:r}}))}},{key:"scrollToActiveItem",value:function(){var t=this.el_.getElementsByClassName("active");if(t.length>0){var e=t[0].offsetTop-12;"scrollBehavior"in document.documentElement.style?this.el_.scrollTo({top:e,behavior:"smooth"}):this.el_.scrollTop=e}}},{key:"render",value:function(){var t=this;this.removeAll();var e=this.getItems(),n=(0,i.throttle)((function(){return t.scrollToActiveItem()}),1e3);e.forEach((function(e,r){var o=new s.default(t.player(),{item:e.imageSrc,conf:e.conf,next:1===r,current:0===r,clickHandler:function(e){var n=e.currentTarget||e.target,r=t.player_.ended()?"productClickPost":"productClick";if(t.player_.trigger(r,{productId:n.dataset.productId,productName:n.dataset.productName}),n.dataset.clickAction===c.SHOPPABLE_CLICK_ACTIONS.GO_TO)window.open(n.dataset.gotoUrl,"_blank");else if(n.dataset.clickAction===c.SHOPPABLE_CLICK_ACTIONS.SEEk){var o=(0,a.parseTime)(n.dataset.seek);null!==o&&(t.player_.addClass("vjs-has-started"),t.player_.postModal&&t.player_.postModal.close(),t.player_.currentTime(o),t.player_.removeClass(c.SHOPPABLE_PANEL_VISIBLE_CLASS),t.player_.addClass(c.SHOPPABLE_PANEL_HIDDEN_CLASS),t.player_.addClass(c.SHOPPABLE_PRODUCTS_OVERLAY_CLASS),t.player_.one("seeked",(function(){return t.player_.trigger("showProductsOverlay")})))}"false"!==n.dataset.pause&&(t.player_.pause(),(0,a.parseTime)(n.dataset.pause)&&setTimeout((function(){t.player_.play()}),1e3*(0,a.parseTime)(n.dataset.pause)))}});o.on("mouseover",(function(e){var n=e.currentTarget||e.target,r=t.player_.ended()?"productHoverPost":"productHover";t.player_.trigger(r,{productId:n.dataset.productId,productName:n.dataset.productName})})),void 0!==e.conf.startTime&&void 0!==e.conf.endTime&&t.player_.on(l.PLAYER_EVENT.TIME_UPDATE,(function(){var r=t.player_.currentTime();r>=e.conf.startTime&&r<e.conf.endTime?(o.el_.classList.add("active"),n()):o.el_.classList.contains("active")&&o.el_.classList.remove("active")})),t.addChild(o)}))}}])&&d(e.prototype,n),r&&d(e,r),Object.defineProperty(e,"prototype",{writable:!1}),g}(r.default.getComponent("Component"));r.default.registerComponent("shoppablePanel",E);var T=E;e.default=T},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.throttle=function(t,e){var n=window.performance.now();return function(){var r=window.performance.now();r-n>=e&&(t.apply(void 0,arguments),n=r)}}},function(t,e,n){"use strict";function r(t){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r(t)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=u(n(1)),i=n(420),a=u(n(84)),s=n(185);function u(t){return t&&t.__esModule?t:{default:t}}function c(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function l(){return l="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var r=f(t,e);if(r){var o=Object.getOwnPropertyDescriptor(r,e);return o.get?o.get.call(arguments.length<3?t:n):o.value}},l.apply(this,arguments)}function f(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=v(t)););return t}function h(t,e){return h=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},h(t,e)}function p(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=v(t);if(e){var o=v(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return d(this,n)}}function d(t,e){if(e&&("object"===r(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function v(t){return v=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},v(t)}var y=o.default.getComponent("ClickableComponent"),g=o.default.dom||o.default,m={width:132},_=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&h(t,e)}(a,t);var e,n,r,o=p(a);function a(t,e){var n;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,a),(n=o.call(this,t,e)).options_=e,n.isDragged=!1,n}return e=a,(n=[{key:"handleClick",value:function(t){t.preventDefault(),t.stopPropagation(),(0,i.elMatches)(this.el_,".dragged .".concat(s.CLD_SPBL_ITEM))||this.options_.clickHandler(t),this.isDragged=!1}},{key:"getTitle",value:function(){return this.options_.conf.title}},{key:"createEl",value:function(){var t=l(v(a.prototype),"createEl",this).call(this,"a",{className:"".concat(s.CLD_SPBL_ITEM," base-color-bg accent-color-text"),href:"#"});t.setAttribute("data-product-id",this.options_.conf.productId||""),t.setAttribute("data-product-name",this.options_.conf.productName||""),this.options_.conf.onHover&&b(t,this.options_.conf.onHover,this.options_.item.cloudinaryConfig()),this.options_.conf.onClick&&w(t,this.options_.conf.onClick);var e=l(v(a.prototype),"createEl",this).call(this,"img",{className:s.CLD_SPBL_IMAGE},{src:this.options_.item.url(m)});if(t.appendChild(e),this.getTitle()){var n=g.createEl("div",{className:"cld-spbl-item-info base-color-semi-bg text-color-text"}),r=g.createEl("span",{className:"cld-spbl-item-title"},{},this.getTitle());n.appendChild(r),t.appendChild(n)}return t}}])&&c(e.prototype,n),r&&c(e,r),Object.defineProperty(e,"prototype",{writable:!1}),a}(y),b=function(t,e,n){if(t.setAttribute("data-hover-action",e.action),e.action===s.SHOPPABLE_HOVER_ACTIONS.OVERLAY){var r=g.createEl("span",{className:"cld-spbl-overlay-text base-color-text"},{},e.args),o=g.createEl("span",{className:"cld-spbl-overlay text-color-semi-bg base-color-text"},{title:e.args},r);t.appendChild(o)}else{var i=new a.default(e.args.publicId,{cloudinaryConfig:n,transformation:e.args.transformation}),u=g.createEl("img",{className:"".concat(s.CLD_SPBL_IMAGE," cld-spbl-hover-img")},{src:i.url(m)});t.appendChild(u)}},w=function(t,e){t.setAttribute("data-click-action",e.action),t.setAttribute("data-pause",e.pause),e.action===s.SHOPPABLE_CLICK_ACTIONS.SEEk?t.setAttribute("data-seek",e.args.time):e.action===s.SHOPPABLE_CLICK_ACTIONS.GO_TO&&t.setAttribute("data-goto-url",e.args.url)};o.default.registerComponent("shoppablePanelItem",_);var E=_;e.default=E},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.elMatches=void 0;e.elMatches=function(t,e){var n=Element.prototype;return(n.matches||n.webkitMatchesSelector||n.mozMatchesSelector||n.msMatchesSelector||function(t){return-1!==[].indexOf.call(document.querySelectorAll(t),this)}).call(t,e)}},function(t,e,n){"use strict";function r(t){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r(t)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=a(n(1));n(422);var i=a(n(182));function a(t){return t&&t.__esModule?t:{default:t}}function s(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function u(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function c(){return c="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var r=l(t,e);if(r){var o=Object.getOwnPropertyDescriptor(r,e);return o.get?o.get.call(arguments.length<3?t:n):o.value}},c.apply(this,arguments)}function l(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=d(t)););return t}function f(t,e){return f=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},f(t,e)}function h(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=d(t);if(e){var o=d(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return p(this,n)}}function p(t,e){if(e&&("object"===r(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function d(t){return d=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},d(t)}var v=o.default.dom||o.default,y=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&f(t,e)}(a,t);var e,n,r,o=h(a);function a(t){var e,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return s(this,a),(e=o.call(this,t,n)).on(t,"cldsourcechanged",(function(t,n){var r=n.source;return e.setItem(r)})),e}return e=a,(n=[{key:"setItem",value:function(t){if(!t)return this.setTitle(""),void this.setSubtitle("");var e=t.info();this.setTitle(e.title),this.setSubtitle(e.subtitle)}},{key:"setTitle",value:function(t){return i.default.setText(this.titleEl,t),this.refresh(),t}},{key:"setSubtitle",value:function(t){return i.default.setText(this.subtitleEl,t),this.refresh(),t}},{key:"refresh",value:function(){var t=this;t.titleEl.innerText||t.subtitleEl.innerText?this.show():this.hide()}},{key:"createEl",value:function(){this.titleEl=v.createEl("div",{className:"vjs-title-bar-title"}),this.subtitleEl=v.createEl("div",{className:"vjs-title-bar-subtitle"});var t=c(d(a.prototype),"createEl",this).call(this,"div",{append:this.titleEl,className:"vjs-title-bar"});return t.appendChild(this.titleEl),t.appendChild(this.subtitleEl),t}}])&&u(e.prototype,n),r&&u(e,r),Object.defineProperty(e,"prototype",{writable:!1}),a}(o.default.getComponent("Component"));o.default.registerComponent("titleBar",y);var g=y;e.default=g},function(t,e,n){"use strict";n.r(e)},function(t,e,n){"use strict";n.r(e)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=l(n(425)),o=l(n(426)),i=l(n(428)),a=l(n(429)),s=l(n(434)),u=l(n(448)),c=l(n(450));function l(t){return t&&t.__esModule?t:{default:t}}var f={autoplayOnScroll:r.default,floatingPlayer:o.default,colors:i.default,contextMenu:a.default,cloudinary:s.default,analytics:u.default,vttThumbnails:c.default};e.default=f},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};new l(this,t).init()};var r=n(65),o=n(20),i=n(12);function a(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function s(t,e,n){return e&&a(t.prototype,e),n&&a(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function u(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var c={fraction:.5,isMuted:!0},l=s((function t(e){var n=this,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};u(this,t),a=(0,i.assign)({},c,a),this.player=e;var s=(0,o.sliceProperties)(a,"fraction"),l=!1,f=!1,h=null,p=null;this.init=function(){m(),g()};var d=function(){window.removeEventListener("DOMContentLoaded",g,!1),window.removeEventListener("load",g,!1),window.removeEventListener("scroll",g,!1),window.removeEventListener("resize",g,!1),n.player.off("pause",h),n.player.off("play",p)},v=function(){l=!0,f=!1,n.player.pause()},y=function(){l=!1,f=!0,n.player.play()},g=function(){(0,r.isElementInViewport)(n.player.el(),{fraction:s.fraction})?n.player.paused()&&y():n.player.paused()||n.player.activePlugins_.floatingPlayer||v()},m=function(){h=function(){n.player.waiting||l||d()},p=function(){f||d()},window.addEventListener("DOMContentLoaded",g,!1),window.addEventListener("load",g,!1),window.addEventListener("scroll",g,!1),window.addEventListener("resize",g,!1),n.player.on("pause",h),n.player.on("play",p)}}))},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};new h(this,t).init()};var r=n(65),o=n(20),i=n(12);n(427);var a=n(60);function s(t){return s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},s(t)}function u(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function c(t,e,n){return e&&u(t.prototype,e),n&&u(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function l(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var f={fraction:.5,collapsedWidth:300,floatTo:"right"},h=c((function t(e){var n=this,u=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};l(this,t),(u=(0,i.assign)({},f,u)).floatTo&&u.floatTo!==a.FLOATING_TO.LEFT&&u.floatTo!==a.FLOATING_TO.RIGHT&&(u.floatTo=f.floatTo),this.player=e;var c=this.player.el(),h=(0,o.sliceProperties)(u,"fraction"),p=null,d=!1,v=!1;this.init=function(){_(),"object"===s(n.player.ima)&&w()};var y=function(t){var e=document.createElement("div");for(t.appendChild(e);t.firstChild!==e;)e.appendChild(t.firstChild);return e},g=function(){window.removeEventListener("DOMContentLoaded",C,!1),window.removeEventListener("load",C,!1),window.removeEventListener("scroll",C,!1),window.removeEventListener("resize",C,!1)},m=function(){window.addEventListener("DOMContentLoaded",C,!1),window.addEventListener("load",C,!1),window.addEventListener("scroll",C,!1),window.addEventListener("resize",C,!1)},_=function(){n.player.on("play",C),n.player.on("play",m),n.player.on("dispose",g)},b=function(){var t=c.getBoundingClientRect();p.setAttribute("class","cld-video-player-floater cld-video-player-floater-bottom-".concat(u.floatTo)),p.setAttribute("style",["width: "+u.collapsedWidth+"px;","top: "+t.top+"px;","left: "+t.left+"px;","right: "+(document.documentElement.clientWidth-t.right)+"px;","bottom: "+(document.documentElement.clientHeight-t.bottom)+"px;"].join("")),v=!0},w=function(){var t=c.getBoundingClientRect();p=y(c);var e=y(p);e.setAttribute("class","cld-video-player-floater-inner"),e.setAttribute("style","padding-bottom: "+100*t.height/t.width+"%;");var n=document.createElement("button");n.setAttribute("class","cld-video-player-floater-close"),n.innerHTML='<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" viewBox="0 0 12 12"><polygon fill-rule="evenodd" points="370 7.41 368.59 6 364 10.59 359.41 6 358 7.41 362.59 12 358 16.59 359.41 18 364 13.41 368.59 18 370 16.59 365.41 12" transform="translate(-358 -6)"/></svg>',n.onclick=function(){S(),O()},p.appendChild(n)},E=function(){var t=n.player.ima;t&&t.adsActive&&t.getAdsManager().resize(d?p.clientWidth:c.clientWidth,d?p.clientHeight:c.clientHeight)},T=function(){p||w(),v||b(),d=!0,setTimeout((function(){p.classList.add("cld-video-player-floating"),E()}))},S=function(){p.classList.remove("cld-video-player-floating"),d=!1,E()},O=function(){g(),n.player.off("play",C),n.player.off("play",m)},C=function(){(0,r.isElementInViewport)(n.player.el(),{fraction:h.fraction})?d&&S():d||T()}}))},function(t,e,n){"use strict";n.r(e)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};new d(this,t).init()},e.getDefaultPlayerColor=void 0;var r=n(12),o=n(129),i=n(115);function a(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function s(t,e,n){return e&&a(t.prototype,e),n&&a(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function u(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var c="\n .PLAYER-CLASS-PREFIX {\n --color-accent: --accent-color;\n --color-base: --base-color;\n --color-text: --text-color;\n\n color: --text-color;\n }\n\n .PLAYER-CLASS-PREFIX .vjs-time-tooltip,\n .PLAYER-CLASS-PREFIX .vjs-mouse-display:after,\n .PLAYER-CLASS-PREFIX .vjs-play-progress:after {\n color: --base-color;\n background-color: --text-color;\n }\n\n .PLAYER-CLASS-PREFIX .vjs-slider {\n background-color: rgba(--accent-color, 0.3);\n }\n\n .PLAYER-CLASS-PREFIX .vjs-load-progress,\n .PLAYER-CLASS-PREFIX .vjs-load-progress div {\n background: rgba(--accent-color, 0.2);\n }\n\n .PLAYER-CLASS-PREFIX .vjs-volume-level,\n .PLAYER-CLASS-PREFIX .vjs-play-progress {\n background: --accent-color;\n }\n\n .PLAYER-CLASS-PREFIX .vjs-volume-vertical {\n background-color: rgba(--base-color, 0.7);\n }\n\n .PLAYER-CLASS-PREFIX .vjs-volume-panel-horizontal .vjs-control:before {\n border-color: transparent transparent rgba(--accent-color, 0.4) transparent;\n }\n\n .PLAYER-CLASS-PREFIX .vjs-volume-panel-horizontal .vjs-volume-level:before {\n border-color: transparent transparent --accent-color transparent;\n }\n\n .PLAYER-CLASS-PREFIX .vjs-title-bar {\n color: --text-color;\n }\n\n .PLAYER-CLASS-PREFIX .vjs-recommendations-overlay {\n color: --text-color;\n background-color: rgba(--base-color, 0.4);\n }\n\n .PLAYER-CLASS-PREFIX .vjs-recommendations-overlay .vjs-recommendations-overlay-item {\n box-shadow: 0 0.5em 1.2em 0px --base-color;\n color: --text-color;\n border: 1px solid --text-color !important;\n position: relative;\n }\n\n .PLAYER-CLASS-PREFIX .vjs-recommendations-overlay .vjs-recommendations-overlay-item:active,\n .PLAYER-CLASS-PREFIX .vjs-recommendations-overlay .vjs-recommendations-overlay-item:hover {\n border: 1px solid --accent-color !important;\n }\n\n .PLAYER-CLASS-PREFIX .vjs-context-menu-ui .vjs-menu-content .vjs-menu-item:active,\n .PLAYER-CLASS-PREFIX .vjs-context-menu-ui .vjs-menu-content .vjs-menu-item:hover {\n color: --text-color;\n background-color: --accent-color;\n }\n\n .PLAYER-CLASS-PREFIX.vjs-ad-playing .vjs-progress-control .vjs-play-progress {\n background: --base-color;\n }\n\n .PLAYER-CLASS-PREFIX.cld-plw-layout {\n background-color: --base-color;\n }\n\n .PLAYER-CLASS-PREFIX .cld-plw-item-info-wrap {\n color: --text-color;\n }\n\n .PLAYER-CLASS-PREFIX .cld-plw-panel-item {\n border-color: --text-color;\n }\n\n .PLAYER-CLASS-PREFIX .cld-video-player-floater-close polygon {\n fill: --base-color;\n }\n\n .PLAYER-CLASS-PREFIX .cld-spbl-product-hotspot:after {\n background: --base-color;\n box-shadow: 0 0 0 4px --accent-color, 0 0 0 8px rgba(--text-color, 0.24);\n }\n\n .PLAYER-CLASS-PREFIX .cld-spbl-product-tooltip {\n color: --base-color;\n background: --text-color;\n }\n\n .PLAYER-CLASS-PREFIX .base-color-semi-bg {\n background: rgba(--base-color, 0.7);\n }\n\n .PLAYER-CLASS-PREFIX .text-color-semi-bg {\n background: rgba(--text-color, 0.7);\n }\n\n .PLAYER-CLASS-PREFIX .text-color-text {\n color: --text-color;\n }\n\n .PLAYER-CLASS-PREFIX .base-color-text {\n color: --base-color;\n }\n\n .PLAYER-CLASS-PREFIX .accent-color-text {\n color: --accent-color;\n }\n",l="\n\n .PLAYER-CLASS-PREFIX.cld-video-player-skin-dark .base-color-bg,\n .PLAYER-CLASS-PREFIX.cld-video-player-skin-dark .vjs-control-bar,\n .PLAYER-CLASS-PREFIX.cld-video-player-skin-dark .vjs-big-play-button,\n .PLAYER-CLASS-PREFIX.cld-video-player-skin-dark .vjs-menu-button\n .vjs-menu-content {\n background-color: rgba(--base-color, 0.6);\n }\n\n .PLAYER-CLASS-PREFIX .vjs-title-bar {\n background-image: linear-gradient(--base-color, rgba(255, 255, 255, 0) 100%);\n }\n\n .PLAYER-CLASS-PREFIX .vjs-recommendations-overlay .vjs-recommendations-overlay-item.vjs-recommendations-overlay-item-primary .vjs-recommendations-overlay-item-primary-content {\n background-color: rgba(--base-color, 0.6);\n }\n\n .PLAYER-CLASS-PREFIX .vjs-recommendations-overlay .vjs-recommendations-overlay-item.vjs-recommendations-overlay-item-secondary div {\n background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent 80%);\n }\n\n .PLAYER-CLASS-PREFIX .vjs-upcoming-video {\n border: 1px solid rgba(--text-color, 0.5);\n }\n\n .PLAYER-CLASS-PREFIX .vjs-upcoming-video .vjs-upcoming-video-bar {\n background-color: rgba(--base-color, 0.6);\n }\n\n .PLAYER-CLASS-PREFIX .vjs-context-menu-ui .vjs-menu-content {\n background-color: rgba(--base-color, 0.6);\n }\n",f="\n .PLAYER-CLASS-PREFIX .vjs-title-bar {\n flex-direction: row;\n justify-content: left;\n height: 3.6em;\n background: --base-color;\n }\n\n .PLAYER-CLASS-PREFIX .vjs-title-bar div {\n width: auto;\n padding: 0 inherit;\n margin: 0;\n }\n\n .PLAYER-CLASS-PREFIX.cld-video-player-skin-light .base-color-bg,\n .PLAYER-CLASS-PREFIX.cld-video-player-skin-light .vjs-control-bar,\n .PLAYER-CLASS-PREFIX.cld-video-player-skin-light .vjs-big-play-button,\n .PLAYER-CLASS-PREFIX.cld-video-player-skin-light .vjs-menu-button .vjs-menu-content {\n background-color: --base-color;\n }\n\n .PLAYER-CLASS-PREFIX .vjs-recommendations-overlay .vjs-recommendations-overlay-item.vjs-recommendations-overlay-item-primary .vjs-recommendations-overlay-item-primary-content {\n background-color: --base-color;\n }\n\n .PLAYER-CLASS-PREFIX .vjs-recommendations-overlay .vjs-recommendations-overlay-item.vjs-recommendations-overlay-item-primary:active .vjs-recommendations-overlay-item-primary-content,\n .PLAYER-CLASS-PREFIX .vjs-recommendations-overlay .vjs-recommendations-overlay-item.vjs-recommendations-overlay-item-primary:hover .vjs-recommendations-overlay-item-primary-content {\n color: --base-color;\n background-color: rgba(--accent-color, 0.8);\n }\n\n .PLAYER-CLASS-PREFIX .vjs-recommendations-overlay .vjs-recommendations-overlay-item.vjs-recommendations-overlay-item-secondary:active div,\n .PLAYER-CLASS-PREFIX .vjs-recommendations-overlay .vjs-recommendations-overlay-item.vjs-recommendations-overlay-item-secondary:hover div {\n color: --base-color;\n background-color: rgba(--accent-color, 0.8);\n }\n\n .PLAYER-CLASS-PREFIX .vjs-recommendations-overlay .vjs-recommendations-overlay-item.vjs-recommendations-overlay-item-secondary div {\n background: --base-color;\n }\n\n .PLAYER-CLASS-PREFIX .vjs-upcoming-video {\n border: 1px solid --text-color;\n }\n\n .PLAYER-CLASS-PREFIX .vjs-upcoming-video .vjs-upcoming-video-bar {\n background-color: --base-color;\n }\n\n .PLAYER-CLASS-PREFIX .vjs-context-menu-ui .vjs-menu-content {\n background-color: --base-color;\n }\n\n .PLAYER-CLASS-PREFIX .cld-plw-item-info-wrap {\n color: --text-color;\n }\n\n @media only screen and (max-width: 768px) {\n .PLAYER-CLASS-PREFIX.cld-plw-vertical .cld-plw-item-info-wrap {\n color: --accent-color;\n }\n }\n",h={colorsDark:{base:"#000000",accent:"#FF620C",text:"#FFFFFF"},colorsLight:{base:"#FFFFFF",accent:"#0078FF",text:"#0E2F5A"}},p=function(t){return(0,i.isLight)(t)?h.colorsLight:h.colorsDark};e.getDefaultPlayerColor=p;var d=s((function t(e){var n=this,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};u(this,t),this.player=e;var a=p(this.player.options_);i.colors=(0,r.assign)({},a,i.colors),this.init=function(){s(d(c)),"light"===n.player.options_.skin?s(d(f)):s(d(l))};var s=function(t){var e=document.createElement("style");e.innerHTML=t,n.player.el_.appendChild(e)},h=function(t){t=t.replace(/^#?([a-f\d])([a-f\d])([a-f\d])$/i,(function(t,e,n,r){return e+e+n+n+r+r}));var e=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(t);return e?parseInt(e[1],16)+", "+parseInt(e[2],16)+", "+parseInt(e[3],16):null},d=function(t){return t.replace(/PLAYER\-CLASS\-PREFIX/g,(0,o.playerClassPrefix)(n.player)).replace(/rgba\(\-\-base\-color/g,"rgba("+h(i.colors.base)).replace(/rgba\(\-\-accent\-color/g,"rgba("+h(i.colors.accent)).replace(/rgba\(\-\-text\-color/g,"rgba("+h(i.colors.text)).replace(/\-\-base\-color/g,i.colors.base).replace(/\-\-accent\-color/g,i.colors.accent).replace(/\-\-text\-color/g,i.colors.text)}}))},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};new p(this,t).init()};var r=c(n(1));n(430),n(431);var o=c(n(432)),i=n(65),a=n(20),s=n(12),u=n(13);function c(t){return t&&t.__esModule?t:{default:t}}function l(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function f(t,e,n){return e&&l(t.prototype,e),n&&l(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}var h={showNativeOnRecurringEvent:!1},p=f((function t(e,n){var c=this;if(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),!Array.isArray(n.content)&&!(0,u.isFunction)(n.content))throw new Error('"content" required');var l=(0,s.assign)({},h,n);this.player=e;var f=(0,a.sliceProperties)(l,"content","showNativeOnRecurringEvent");this.init=function(){c.player.contextmenu(),c.player.on("vjs-contextmenu",p),c.player.ready((function(){return c.player.addClass("vjs-context-menu")}))};var p=function(t){if(!c.menu||(c.menu.dispose(),!f.showNativeOnRecurringEvent)){f.showNativeOnRecurringEvent&&(c.player.contextmenu.options.cancel=!1),t.preventDefault();var e=f.content;(0,u.isFunction)(e)&&(e=e(c.player)),c.menu=new o.default(c.player,{content:e});var n=function(t){var e=c.menu.el();e.style.visibility="hidden",c.player.el().appendChild(e);var n=e.getBoundingClientRect();c.player.el().removeChild(e),e.style.visibility="visible";var r=(0,i.getPointerPosition)(c.player.el(),t),o=c.player.el().getBoundingClientRect(),a=o.height-o.height*r.y+1,s=Math.round(o.width*r.x)+1,u=a,l=s;return a+n.height>o.height&&(u=a+n.height-o.height>n.height/2?a-n.height-1:o.height-n.height),s+n.width>o.width&&(l=s+n.width-o.width>n.width/2?s-n.width-1:o.width-n.width),u<a&&l<s&&(u=a-n.height-1,l=s-n.width-1),u=Math.max(0,u),{left:l=Math.max(0,l),top:u}}(t),a=n.left,s=n.top;c.menu.setPosition(a,s);var l=function(t){("click"!==t.type||3!==t.which&&2!==t.button)&&c.menu.dispose()};c.menu.on("dispose",(function(){c.player.contextmenu.options.cancel=!0,c.player.removeChild(c.menu),r.default.off(document,["click","tap"],l),delete c.menu})),c.player.addChild(c.menu),r.default.on(document,["click","tap"],l)}}}))},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r,o=(r=n(1))&&r.__esModule?r:{default:r};var i={cancel:!0,sensitivity:10,wait:500,disabled:!1},a="vjs-contextmenu";function s(t,e){if(t.contextmenu.options.disabled)return t;var n={target:t,type:a};return["clientX","clientY","pageX","pageY","screenX","screenY"].forEach((function(t){n[t]=e[t]})),t.trigger(n)}function u(t){var e=this.contextmenu.current;if(e){var n=this.contextmenu.options.wait;"touchend"===t.type&&(new Date).getTime()-e.time>=n&&s(this,t),this.contextmenu.current=null}}function c(t){var e=this.contextmenu.current;if(e){var n=t.touches[0],r=this.contextmenu.options.sensitivity;(n.screenX-e.screenX>r||n.screenY-e.screenY>r)&&(this.contextmenu.current=null)}}function l(t){if(!this.contextmenu.current){var e=t.touches[0];this.contextmenu.current={screenX:e.screenX,screenY:e.screenY,time:(new Date).getTime()}}}function f(t){this.contextmenu.options.cancel&&!this.contextmenu.options.disabled&&t.preventDefault(),s(this,t),this.off(["touchcancel","touchend"],u),this.off("touchmove",c),this.off("touchstart",l)}function h(t){var e=this;this.contextmenu.options=o.default.mergeOptions(i,t),this.on("contextmenu",f),this.on(["touchcancel","touchend"],u),this.on("touchmove",c),this.on("touchstart",l),this.ready((function(){return e.addClass(a)}))}o.default.registerPlugin("contextmenu",h);var p=h;e.default=p},function(t,e,n){"use strict";n.r(e)},function(t,e,n){"use strict";function r(t){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r(t)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=u(n(1)),i=u(n(433)),a=n(65),s=n(13);function u(t){return t&&t.__esModule?t:{default:t}}function c(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function l(){return l="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var r=f(t,e);if(r){var o=Object.getOwnPropertyDescriptor(r,e);return o.get?o.get.call(arguments.length<3?t:n):o.value}},l.apply(this,arguments)}function f(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=y(t)););return t}function h(t,e){return h=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},h(t,e)}function p(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=y(t);if(e){var o=y(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return d(this,n)}}function d(t,e){if(e&&("object"===r(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return v(t)}function v(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function y(t){return y=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},y(t)}var g=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&h(t,e)}(f,t);var e,n,r,u=p(f);function f(t,e){var n;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,f),(n=u.call(this,t,e)).dispose=o.default.bind(v(n),n.dispose),e.content.forEach((function(e){var r=null;r=(0,s.isFunction)(e.listener)?e.listener:"string"==typeof e.href?function(){return window.open(e.href)}:function(){return!0};var a=v(n);n.addItem(new i.default(t,{label:e.label,class:e.class,listener:o.default.bind(t,(function(){r(this),window.setTimeout((function(){a.dispose()}),1)}))}))})),n}return e=f,(n=[{key:"setPosition",value:function(t,e){(0,a.setPosition)(this.el(),t,e)}},{key:"createEl",value:function(){var t=l(y(f.prototype),"createEl",this).call(this);if(o.default.dom.addClass(t,"vjs-context-menu-ui"),this.options_.position){var e=this.options_.position,n=e.left,r=e.top;this.setPosition(n,r)}return t}}])&&c(e.prototype,n),r&&c(e,r),Object.defineProperty(e,"prototype",{writable:!1}),f}(o.default.getComponent("Menu"));e.default=g},function(t,e,n){"use strict";function r(t){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r(t)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o,i=(o=n(1))&&o.__esModule?o:{default:o},a=n(186);function s(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function u(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function c(){return c="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var r=l(t,e);if(r){var o=Object.getOwnPropertyDescriptor(r,e);return o.get?o.get.call(arguments.length<3?t:n):o.value}},c.apply(this,arguments)}function l(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=d(t)););return t}function f(t,e){return f=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},f(t,e)}function h(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=d(t);if(e){var o=d(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return p(this,n)}}function p(t,e){if(e&&("object"===r(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function d(t){return d=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},d(t)}var v=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&f(t,e)}(i,t);var e,n,r,o=h(i);function i(){return s(this,i),o.apply(this,arguments)}return e=i,(n=[{key:"handleClick",value:function(){c(d(i.prototype),"handleClick",this).call(this),this.options_.listener()}},{key:"createEl",value:function(){var t=(0,a.createElement)("span",{class:"vjs-menu-item-text"+(this.options_.class?" ".concat(this.options_.class):"")});return t.appendChild(document.createTextNode(this.localize(this.options_.label))),(0,a.createElement)("li",{class:"vjs-menu-item",tabIndex:-1},t)}}])&&u(e.prototype,n),r&&u(e,r),Object.defineProperty(e,"prototype",{writable:!1}),i}(i.default.getComponent("MenuItem")),y=v;e.default=y},function(t,e,n){"use strict";function r(t){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r(t)}Object.defineProperty(e,"__esModule",{value:!0}),e.CONSTRUCTOR_PARAMS=void 0,e.default=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};t.chainTarget=t.chainTarget||this,this.cloudinary=new C(this,t)};var o=y(n(1)),i=n(179),a=n(178),s=n(20),u=n(116),c=n(12),l=n(31),f=y(n(435)),h=y(n(86)),p=y(n(445)),d=y(n(446)),v=n(13);function y(t){return t&&t.__esModule?t:{default:t}}function g(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function m(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function _(t,e){return _=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},_(t,e)}function b(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=T(t);if(e){var o=T(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return w(this,n)}}function w(t,e){if(e&&("object"===r(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return E(t)}function E(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function T(t){return T=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},T(t)}var S={transformation:{},sourceTypes:[],sourceTransformation:[],posterOptions:{}},O=["cloudinaryConfig","transformation","sourceTypes","sourceTransformation","posterOptions","autoShowRecommendations"];e.CONSTRUCTOR_PARAMS=O;var C=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&_(t,e)}(f,t);var e,n,r,i=b(f);function f(t){var e,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};g(this,f),(e=i.call(this,t,n)).player=t,n=(0,c.assign)({},S,n);var r=null,y=null,m=null,_=null,b=null,w=null,T=null,C=null,P=null,k=n.chainTarget,j=null,A=null,x=!1;e.source=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(n=(0,c.assign)({},n),!t)return r;var o=null;if(t instanceof h.default)o=t;else{var i=(0,l.normalizeOptions)(t,n),a=i.publicId,u=i.options;o=e.buildSource(a,u)}if(o.recommendations()){var f=o.recommendations(),p=null,d=!1;if(n.recommendationOptions){var v=(0,s.sliceAndUnsetProperties)(n.recommendationOptions,"disableAutoShow","itemBuilder");d=v.disableAutoShow,p=v.itemBuilder}R(f,{disableAutoShow:d,itemBuilder:p})}else L();return r=o,n.skipRefresh||I(),e.player.trigger("cldsourcechanged",{source:o}),k},e.buildSource=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=(0,l.normalizeOptions)(t,n);return t=r.publicId,(n=r.options).cloudinaryConfig=(0,l.extendCloudinaryConfig)(e.cloudinaryConfig(),n.cloudinaryConfig||{}),n.transformation=(0,l.mergeTransformations)(e.transformation(),n.transformation||{}),n.sourceTransformation=n.sourceTransformation||e.sourceTransformation(),n.sourceTypes=n.sourceTypes||e.sourceTypes(),n.poster=n.poster||M(),n.queryParams=Object.assign(n.queryParams||{},n.usageReport?{_s:"vp-".concat("1.9.1")}:{}),n.sourceTypes.indexOf("audio")>-1?new d.default(t,n):new h.default(t,n)},e.posterOptions=function(t){return t?(b=t,k):b},e.cloudinaryConfig=function(t){return t?(w=t,k):w},e.transformation=function(t){return t?(T=t,k):T},e.sourceTypes=function(t){return t?(C=t,k):C},e.getCurrentSources=function(){return y},e.sourceTransformation=function(t){return t?(P=t,k):P},e.on=function(){var t;return(t=j).on.apply(t,arguments)},e.one=function(){var t;return(t=j).one.apply(t,arguments)},e.off=function(){var t;return(t=j).off.apply(t,arguments)},e.autoShowRecommendations=function(t){return void 0===t?x:(x=t,k)},e.dispose=function(){e.playlist()&&e.disposePlaylist(),L(),r=void 0,j.removeAllListeners()};var R=function(t,n){var r=n.disableAutoShow,o=void 0!==r&&r,i=n.itemBuilder,a=void 0===i?null:i;if(L(),!Array.isArray(t)&&"function"!=typeof t&&!t.then)throw new Error('"recommendations" must be either an array or a function');a=a||function(t){return{source:t instanceof h.default?t:e.buildSource(t),action:function(){return e.source(t)}}},(A={}).sourceChangedHandler=function(){var n=function(t){if(void 0!==t&&t.length>0){var n=t.map((function(t){return a(t)}));e.player.trigger("recommendationschanged",{items:n})}else e.player.trigger("recommendationsnoshow");A.sources=t};(0,v.isFunction)(t)?n(t()):t.then?t.then(n):n(t)},e.one("cldsourcechanged",A.sourceChangedHandler),A.endedHandler=function(){!o&&e.autoShowRecommendations()&&e.player.trigger("recommendationsshow")},e.on("ended",A.endedHandler)},L=function(){A&&(e.off("cldsourcechanged",A.sourceChangedHandler),e.off("ended",A.endedHandler),delete A.endedHandler,delete A.sourceChangedHandler),A=null},I=function(){var t=e.source();t.poster()&&e.player.poster(t.poster().url()),y=t.generateSources().reduce((function(t,e){if(e.isAdaptive)if((e.type.split("; ")[1]||null)&&"MediaSource"in window){var n=e.type.split("; "),r="video/mp4; ".concat(n[1]||""),i=N(r);o.default.browser.IS_ANY_SAFARI&&(e.type="".concat(n[0],"; ").concat((0,l.codecShorthandTrans)("h264"))),i&&t.push(e)}else t.push(e);else t.push(e);return t}),[]),e.player.src(y),m=t,_=e.playlist()},N=function(t){return document.createElement("video").canPlayType(t)||"MediaSource"in window&&MediaSource.isTypeSupported(t)},M=function(){var t=(0,c.assign)({},e.posterOptions());t.transformation&&(!t.transformation.width&&!t.transformation.height||t.transformation.crop||(t.transformation.crop="scale")),t.transformation=t.transformation||{};var n=e.player.el();if(n&&n.clientWidth&&n.clientHeight&&!(0,u.isKeyInTransformation)(t.transformation,"width")&&!(0,u.isKeyInTransformation)(t.transformation,"height")){var r=function(t){return 100*Math.ceil(t/100)};t.transformation=(0,l.mergeTransformations)(t.transformation,{width:r(n.clientWidth),height:r(n.clientHeight),crop:"limit"})}return t},D=function(t,n){var r=n.to;m&&m.contains(r)?e.source()||(_&&e.playlist(_),e.source(m,{skipRefresh:!0})):(e.player.trigger("cldsourcechanged",{}),e.dispose())};j=new p.default(e.player);var F=s.sliceAndUnsetProperties.apply(void 0,[n].concat(O));return(0,a.applyWithProps)(E(e),F),e.on("sourcechanged",D),e}return e=f,(n=[{key:"currentSourceType",value:function(){return this.source().getType()}},{key:"currentPublicId",value:function(){return this.source()&&this.source().publicId()}},{key:"currentPoster",value:function(){return this.source()&&this.source().poster()}}])&&m(e.prototype,n),r&&m(e,r),Object.defineProperty(e,"prototype",{writable:!1}),f}((0,i.mixin)(f.default))},function(t,e,n){"use strict";function r(t){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r(t)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=f(n(436)),i=f(n(117)),a=f(n(168)),s=n(20),u=n(444),c=n(12),l=n(31);function f(t){return t&&t.__esModule?t:{default:t}}function h(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function p(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function d(t,e){return d=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},d(t,e)}function v(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=m(t);if(e){var o=m(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return y(this,n)}}function y(t,e){if(e&&("object"===r(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return g(t)}function g(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function m(t){return m=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},m(t)}var _=(0,a.default)({Promise:i.default}).fetch,b={format:"json",resource_type:"video",type:"list"},w=function(t){return function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&d(t,e)}(a,t);var e,n,r,i=v(a);function a(t){var e,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};h(this,a),e=i.call(this);var r=(0,s.sliceProperties)(n,"chainTarget").chainTarget,u=null,c=null;e.playlist=function(n){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return void 0===n?u:(e.playlist()&&e.disposePlaylist(),l(n,o),t.trigger("playlistcreated"),r)},e.disposePlaylist=function(){t.removeClass("vjs-playlist");var n=e.playlist();u=void 0,n.dispose(),e.off("cldsourcechanged",c)};var l=function(n,r){n instanceof o.default?((u=n).resetState(),u.currentIndex(u.currentIndex())):(u=new o.default(g(e),n,r)).currentIndex(0),c=f(),t.addClass("vjs-playlist")},f=function(){var t=function(){e.playlist()&&!e.playlist().currentSource().contains(e.player.currentSource())&&e.disposePlaylist()};return e.on("cldsourcechanged",t),t};return e}return e=a,n=[{key:"playlistByTag",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.sourcesByTag(t,n).then((function(t){return e.playlist(t,n)}))}},{key:"sourcesByTag",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=(0,l.getCloudinaryUrl)(t,(0,l.extendCloudinaryConfig)(this.cloudinaryConfig(),b));return _(r).then((function(t){return t.json()})).then((function(t){var r=(0,u.normalizeJsonResponse)(t.resources);return n.sorter&&r.sort(n.sorter),r.map((function(t){var r=n.sourceParams||{};"function"==typeof r&&(r=r(t));var o=t.context&&t.context.custom||{},i=(0,c.assign)({info:o},r,{publicId:t.publicId});return e.buildSource(i)}))}))}}],n&&p(e.prototype,n),r&&p(e,r),Object.defineProperty(e,"prototype",{writable:!1}),a}(t)};e.default=w},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r,o=(r=n(86))&&r.__esModule?r:{default:r},i=n(13);n(438),n(440);var a=n(188);function s(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function u(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var c=function(){function t(e){var n=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=o.repeat,a=void 0!==i&&i,u=o.autoAdvance,c=void 0!==u&&u,l=o.presentUpcoming,f=void 0!==l&&l;s(this,t),this._context=e,this._sources=[],this._defaultRecResolverCache={},this._currentIndex=null,this._recommendationsHandler=null,this._autoAdvance=null,this._presentUpcoming=null,this.resetState=function(){n.repeat(a),n.autoAdvance(c),n.presentUpcoming(f)},r.forEach((function(t){return n.enqueue(t)})),this.resetState()}var e,n,r;return e=t,n=[{key:"list",value:function(){return this._sources}},{key:"player",value:function(){return this._context.player}},{key:"presentUpcoming",value:function(t){if(this._presentUpcoming=this._presentUpcoming||{},void 0===t)return this._presentUpcoming.delay;if(!0===t)t=a.DEFAULT_PRESENT_UPCOMING;else if(!1===t)t=!1;else if(!(0,i.isInteger)(t)||t<0)throw new Error("presentUpcoming 'delay' must be either a boolean or a positive integer.");return this._presentUpcoming.delay=t,this._setupPresentUpcoming(),this._presentUpcoming.delay}},{key:"autoAdvance",value:function(t){if(this._autoAdvance=this._autoAdvance||{},void 0===t)return this._autoAdvance.delay;if(!0===t)t=a.DEFAULT_AUTO_ADVANCE;else if(!1===t)t=!1;else if(!(0,i.isInteger)(t)||t<0)throw new Error("Auto advance 'delay' must be either a boolean or a positive integer.");return this._autoAdvance.delay=t,this._setupAutoAdvance(),this._autoAdvance.delay}},{key:"_setupAutoAdvance",value:function(){var t=this;this._resetAutoAdvance();var e=this._autoAdvance.delay;!1!==e&&(this._autoAdvance={delay:e,trigger:function(){t.player().ended()&&(t._autoAdvance.timeout=setTimeout((function(){t.playNext()}),1e3*e))}},this._context.on("ended",this._autoAdvance.trigger))}},{key:"dispose",value:function(){this._resetAutoAdvance(),this._resetPresentUpcoming(),this._resetRecommendations()}},{key:"_resetPresentUpcoming",value:function(){this.player().trigger("upcomingvideohide"),this._presentUpcoming||(this._presentUpcoming={}),this._presentUpcoming.trigger&&this._context.off("timeupdate",this._presentUpcoming.trigger),this._presentUpcoming.trigger=null,this._presentUpcoming.showTriggered=!1}},{key:"_setupPresentUpcoming",value:function(){var t=this;this._resetPresentUpcoming(),!1!==this._presentUpcoming.delay&&(this._presentUpcoming.trigger=function(){var e=t.player().currentTime(),n=t.player().duration()-e;n<a.UPCOMING_VIDEO_TRANSITION+.5?t._presentUpcoming.showTriggered&&(t.player().trigger("upcomingvideohide"),t._presentUpcoming.showTriggered=!1):n<=t._presentUpcoming.delay&&!t._presentUpcoming.showTriggered&&!t.player().loop()?(t.player().trigger("upcomingvideoshow"),t._presentUpcoming.showTriggered=!0):t._presentUpcoming.showTriggered&&(n>t._presentUpcoming.delay||t.player().loop())&&(t.player().trigger("upcomingvideohide"),t._presentUpcoming.showTriggered=!1)},this._context.on("timeupdate",this._presentUpcoming.trigger))}},{key:"_resetAutoAdvance",value:function(){this._autoAdvance||(this._autoAdvance={}),this._autoAdvance.timeout&&clearTimeout(this._autoAdvance.timeout),this._autoAdvance.trigger&&this._context.off("ended",this._autoAdvance.trigger),this._autoAdvance.timeout=null,this._autoAdvance.trigger=null}},{key:"_resetRecommendations",value:function(){this._recommendationsHandler&&this._context.off("ended",this._recommendationsHandler)}},{key:"_refreshRecommendations",value:function(){var t=this;this._resetRecommendations(),this._recommendationsHandler=function(){!1===t.autoAdvance()&&t._context.autoShowRecommendations()&&t.player().trigger("recommendationsshow")},this._context.on("ended",this._recommendationsHandler)}},{key:"_refreshTextTracks",value:function(){this.player().trigger("refreshTextTracks",this.currentSource().textTracks())}},{key:"_recommendationItemBuilder",value:function(t){var e=this,n=this._defaultRecResolverCache[t.objectId];if(!t.recommendations()||n&&t.recommendations()===n)return function(t){return{source:t,action:function(){return e.playItem(t)}}}}},{key:"currentIndex",value:function(t){if(void 0===t)return this._currentIndex;if(t>=this.length()||t<0)throw new Error("Invalid playlist index.");this._currentIndex=t;var e=this.currentSource(),n=this._recommendationItemBuilder(e);e.recommendations()||e.recommendations(this._defaultRecommendationsResolver(e)),this._context.source(e,{recommendationOptions:{disableAutoShow:!0,itemBuilder:n}});var r={playlist:this,current:e,next:this.next()};return this.player().trigger("playlistitemchanged",r),this._refreshRecommendations(),this._refreshTextTracks(),e}},{key:"_defaultRecommendationsResolver",value:function(t){var e=this,n=this._defaultRecResolverCache[t.objectId];return n||(this._defaultRecResolverCache[t.objectId]=function(){for(var n=e.list().indexOf(t),r=[],o=Math.min(4,e.length()-1);r.length<o&&-1!==(n=e.nextIndex(n));){var i=e.list()[n];r.push(i)}return r},this._defaultRecResolverCache[t.objectId])}},{key:"buildSource",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this._context.buildSource(t,e)}},{key:"enqueue",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t instanceof o.default?t:this.buildSource(t,e);return this._sources.push(n),n}},{key:"playItem",value:function(t){var e=this.list().indexOf(t);if(-1===e)throw new Error("Invalid playlist item.");this.playAtIndex(e)}},{key:"playAtIndex",value:function(t){return this.currentIndex(t),this.player().play(),this.currentSource()}},{key:"currentSource",value:function(){return this.list()[this.currentIndex()]}},{key:"removeAt",value:function(t){if(t>=this.length()||t<0)throw new Error("Invalid playlist index.");return this._sources.splice(t,1),this}},{key:"repeat",value:function(t){return void 0===t||(this._repeat=!!t),this._repeat}},{key:"first",value:function(){return this.list()[0]}},{key:"last",value:function(){return this.list()[this.length()-1]}},{key:"next",value:function(){var t=this.nextIndex();return-1===t?null:this.list()[t]}},{key:"nextIndex",value:function(t){if((t=void 0!==t?t:this.currentIndex())>=this.length()||t<0)throw new Error("Invalid playlist index.");var e=t+1;if(t===this.length()-1){if(!this.repeat())return-1;e=0}return e}},{key:"previousIndex",value:function(){return this.isFirst()?-1:this.currentIndex()-1}},{key:"playFirst",value:function(){return this.playAtIndex(0)}},{key:"playLast",value:function(){var t=this.list().length-1;return this.playAtIndex(t)}},{key:"isLast",value:function(){return this.currentIndex()>=this.length()-1}},{key:"isFirst",value:function(){return 0===this.currentIndex()}},{key:"length",value:function(){return this.list().length}},{key:"playNext",value:function(){var t=this.nextIndex();return-1===t?null:this.playAtIndex(t)}},{key:"playPrevious",value:function(){var t=this.previousIndex();return-1===t?null:this.playAtIndex(t)}}],n&&u(e.prototype,n),r&&u(e,r),Object.defineProperty(e,"prototype",{writable:!1}),t}(),l=c;e.default=l},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.formatToMimeTypeAndTransformation=function(t){var e=(c=t.toLowerCase().split("/"),l=2,function(t){if(Array.isArray(t))return t}(c)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,i=[],a=!0,s=!1;try{for(n=n.call(t);!(a=(r=n.next()).done)&&(i.push(r.value),!e||i.length!==e);a=!0);}catch(t){s=!0,o=t}finally{try{a||null==n.return||n.return()}finally{if(s)throw o}}return i}}(c,l)||function(t,e){if(t){if("string"==typeof t)return u(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?u(t,e):void 0}}(c,l)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),n=e[0],i=e[1],a=r.CONTAINER_MIME_TYPES[n],s=null;var c,l;a||(a=["video/".concat(n),s]);i&&(s=(0,o.codecToSrcTransformation)(i),a=["".concat(a[0],'; codecs="').concat((0,o.codecShorthandTrans)(i),'"'),s]);return a},e.isCodecAlreadyExist=void 0,e.normalizeFormat=function(t){t=t.toLowerCase().split("/").shift();var e=r.FORMAT_MAPPINGS[t];e||(e=t.split("/").shift());return e};var r=n(118),o=n(31),i=n(13),a=n(116),s=n(85);function u(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var c=function(t){return t&&(0,s.some)(Object.values(o.VIDEO_CODEC),(function(e){return t.includes(e)}))};e.isCodecAlreadyExist=function(t,e){return!(!t&&!e)&&(!!function(t){return(0,s.some)(["video_codec","streaming_profile"],(function(e){return(0,a.isKeyInTransformation)(t,e)}))}(t)||((0,i.isString)(e)?c(e):(0,s.some)(t,(function(t){return(0,s.some)(t,(function(t){return c((0,i.isPlainObject)(t)?t.video_codec:t)}))}))))}},function(t,e,n){"use strict";function r(t){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r(t)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o,i=(o=n(1))&&o.__esModule?o:{default:o};n(439);var a=n(27);function s(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function u(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function c(t,e,n){return e&&u(t.prototype,e),n&&u(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function l(){return l="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var r=f(t,e);if(r){var o=Object.getOwnPropertyDescriptor(r,e);return o.get?o.get.call(arguments.length<3?t:n):o.value}},l.apply(this,arguments)}function f(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=g(t)););return t}function h(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&p(t,e)}function p(t,e){return p=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},p(t,e)}function d(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=g(t);if(e){var o=g(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return v(this,n)}}function v(t,e){if(e&&("object"===r(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return y(t)}function y(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function g(t){return g=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},g(t)}function m(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var _=i.default.dom||i.default,b=i.default.getComponent("Component"),w=function(t){h(n,t);var e=d(n);function n(t){var r;s(this,n);for(var o=arguments.length,i=new Array(o>1?o-1:0),a=1;a<o;a++)i[a-1]=arguments[a];return m(y(r=e.call.apply(e,[this,t].concat(i))),"_hide",(function(){r.removeClass(n.VJS_UPCOMING_VIDEO_SHOW)})),m(y(r),"_onPlaylistItemChange",(function(t,e){r._hide(),r._disableTransition((function(){e.next&&r.setItem(e.next)}))})),m(y(r),"_show",(function(){var t=r.player().ima,e="object"===t&&t.getAdsManager();e&&e.getCurrentAd()&&!e.getCurrentAd().isLinear()||r.addClass(n.VJS_UPCOMING_VIDEO_SHOW)})),r._setEvents(t),r}return c(n,[{key:"_setEvents",value:function(t){t.on(a.PLAYER_EVENT.UP_COMING_VIDEO_SHOW,this._show),t.on(a.PLAYER_EVENT.UP_COMING_VIDEO_HIDE,this._hide),t.on(a.PLAYER_EVENT.PLAYLIST_ITEM_CHANGED,this._onPlaylistItemChange)}},{key:"_disableTransition",value:function(t){this.addClass(n.DISABLE_TRANSITION_CLASS),t(),this.removeClass(n.DISABLE_TRANSITION_CLASS)}},{key:"setTitle",value:function(t){this.getChild("upcomingVideoOverlayContent").getChild("upcomingVideoOverlayBar").getChild("upcomingVideoOverlayTitle").setContent(t.info().title||t.publicId())}},{key:"setItem",value:function(t){this._source=t;var e=parseInt(window.getComputedStyle(this.el(),null).getPropertyValue("max-width"),10),n={crop:"pad",background:"auto:predominant",width:e,height:Math.round(e*(9/16))},r=this.getChild("upcomingVideoOverlayContent");this.setTitle(t),r.el().style.backgroundImage="url(".concat(this._source.poster().url({transformation:n}),")")}},{key:"handleClick",value:function(){l(g(n.prototype),"handleClick",this).call(this,event),this.player().cloudinary.playlist().playNext()}},{key:"createEl",value:function(){return l(g(n.prototype),"createEl",this).call(this,"div",{className:"vjs-upcoming-video"})}}]),n}(i.default.getComponent("ClickableComponent"));m(w,"DISABLE_TRANSITION_CLASS","disable-transition"),m(w,"VJS_UPCOMING_VIDEO_SHOW","vjs-upcoming-video-show");var E=function(t){h(n,t);var e=d(n);function n(){return s(this,n),e.apply(this,arguments)}return c(n,[{key:"createEl",value:function(){return l(g(n.prototype),"createEl",this).call(this,"div",{className:"aspect-ratio-content"})}}]),n}(b),T=function(t){h(n,t);var e=d(n);function n(){return s(this,n),e.apply(this,arguments)}return c(n,[{key:"setContent",value:function(t){this._contentSpan.innerText=t}},{key:"createEl",value:function(){var t=l(g(n.prototype),"createEl",this).call(this,"div",{className:"vjs-control vjs-upcoming-video-title"}),e=_.createEl("div",{className:"vjs-upcoming-video-title-display",innerHTML:'<span class="vjs-control-text">Next up</span>Next up: '});return this._contentSpan=_.createEl("span",{className:"vjs-upcoming-video-title-display-label"}),e.appendChild(this._contentSpan),t.appendChild(e),t}}]),n}(b),S=function(t){h(n,t);var e=d(n);function n(){return s(this,n),e.apply(this,arguments)}return c(n,[{key:"createEl",value:function(){return l(g(n.prototype),"createEl",this).call(this,"div",{className:"vjs-upcoming-video-bar"})}}]),n}(b);w.prototype.options_={children:["upcomingVideoOverlayContent"]},i.default.registerComponent("upcomingVideoOverlay",w),E.prototype.options_={children:["upcomingVideoOverlayBar"]},i.default.registerComponent("upcomingVideoOverlayContent",E),S.prototype.options_={children:["upcomingVideoOverlayTitle","playlistNextButton"]},i.default.registerComponent("upcomingVideoOverlayBar",S),i.default.registerComponent("upcomingVideoOverlayTitle",T);var O=w;e.default=O},function(t,e,n){"use strict";n.r(e)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"PlaylistNextButton",{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(e,"PlaylistPreviousButton",{enumerable:!0,get:function(){return o.default}});var r=i(n(441)),o=i(n(442));function i(t){return t&&t.__esModule?t:{default:t}}n(443)},function(t,e,n){"use strict";function r(t){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r(t)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=a(n(187)),i=a(n(1));function a(t){return t&&t.__esModule?t:{default:t}}function s(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function u(){return u="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var r=c(t,e);if(r){var o=Object.getOwnPropertyDescriptor(r,e);return o.get?o.get.call(arguments.length<3?t:n):o.value}},u.apply(this,arguments)}function c(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=p(t)););return t}function l(t,e){return l=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},l(t,e)}function f(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=p(t);if(e){var o=p(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return h(this,n)}}function h(t,e){if(e&&("object"===r(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function p(t){return p=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},p(t)}var d=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&l(t,e)}(i,t);var e,n,r,o=f(i);function i(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i),o.call(this,t,{type:"next"})}return e=i,(n=[{key:"handleClick",value:function(t){u(p(i.prototype),"handleClick",this).call(this,t),this.player().cloudinary.playlist().playNext()}}])&&s(e.prototype,n),r&&s(e,r),Object.defineProperty(e,"prototype",{writable:!1}),i}(o.default);i.default.registerComponent("PlaylistNextButton",d);var v=d;e.default=v},function(t,e,n){"use strict";function r(t){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r(t)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=a(n(187)),i=a(n(1));function a(t){return t&&t.__esModule?t:{default:t}}function s(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function u(){return u="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var r=c(t,e);if(r){var o=Object.getOwnPropertyDescriptor(r,e);return o.get?o.get.call(arguments.length<3?t:n):o.value}},u.apply(this,arguments)}function c(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=p(t)););return t}function l(t,e){return l=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},l(t,e)}function f(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=p(t);if(e){var o=p(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return h(this,n)}}function h(t,e){if(e&&("object"===r(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function p(t){return p=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},p(t)}var d=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&l(t,e)}(i,t);var e,n,r,o=f(i);function i(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i),o.call(this,t,{type:"previous"})}return e=i,(n=[{key:"handleClick",value:function(t){u(p(i.prototype),"handleClick",this).call(this,t),this.player().cloudinary.playlist().playPrevious()}}])&&s(e.prototype,n),r&&s(e,r),Object.defineProperty(e,"prototype",{writable:!1}),i}(o.default);i.default.registerComponent("PlaylistPreviousButton",d);var v=d;e.default=v},function(t,e,n){"use strict";n.r(e)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.normalizeJsonResponse=void 0;var r=n(13),o=n(80),i=n(183),a=["created_at","updated_at"];e.normalizeJsonResponse=function t(e){var n={};return(0,r.isPlainObject)(e)?(Object.keys(e).reduce((function(n,r){var s=(0,o.camelize)(r);return-1!==a.indexOf(r)?n[s]=new Date((0,i.parseISO8601)(e[r])):n[s]=t(e[r]),n}),n),n):Array.isArray(e)?e.map((function(e){return t(e)})):e}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=n(128);function o(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var i=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this._emitter=e,this._eventHandlers=[]}var e,n,i;return e=t,n=[{key:"on",value:function(t,e){this._eventHandlers.push({type:t,handler:e}),this._emitter.on(t,e)}},{key:"one",value:function(t,e){var n=this;this._eventHandlers.push({type:t,handler:e,wrapper:function(){e.apply(void 0,arguments),n.off(t,e)}}),this._emitter.one(t,e)}},{key:"off",value:function(t,e){var n=(0,r.findIndex)(this._eventHandlers,(function(n){return n.type===t&&n.handler===e}));if(-1!==n){var o=this._eventHandlers[n];this._emitter.off(t,o.wrapper||o.handler),this._eventHandlers.splice(n,1)}}},{key:"removeAllListeners",value:function(){var t=this;this._eventHandlers.forEach((function(e){t.off(e)}))}}],n&&o(e.prototype,n),i&&o(e,i),Object.defineProperty(e,"prototype",{writable:!1}),t}(),a=i;e.default=a},function(t,e,n){"use strict";function r(t){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r(t)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=h(n(86)),i=h(n(84)),a=n(31),s=n(20),u=n(12),c=n(131),l=n(447),f=n(27);function h(t){return t&&t.__esModule?t:{default:t}}function p(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function d(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function v(t,e){return v=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},v(t,e)}function y(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=m(t);if(e){var o=m(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return g(this,n)}}function g(t,e){if(e&&("object"===r(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function m(t){return m=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},m(t)}var _=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&v(t,e)}(h,t);var e,n,r,o=y(h);function h(t){var e,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};p(this,h);var r=(0,a.normalizeOptions)(t,n);t=r.publicId,n=r.options,t=t.replace(l.AUDIO_SUFFIX_REMOVAL_PATTERN,""),n=(0,u.assign)({},l.DEFAULT_AUDIO_PARAMS,n);var i=(0,s.sliceAndUnsetProperties)(n,"poster"),c=i.poster;return(e=o.call(this,t,n))._poster=null,e._type=f.SOURCE_TYPE.AUDIO,e.poster(c),e}return e=h,n=[{key:"getPoster",value:function(){return this._poster}},{key:"poster",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!t)return this._poster;if(t instanceof i.default)return this._poster=t,this;var n=(0,a.normalizeOptions)(t,e,{tolerateMissingId:!0});return t=n.publicId,e=n.options,t||(t=this.publicId(),e=(0,u.assign)({},e,l.DEFAULT_POSTER_PARAMS)),e.cloudinaryConfig=e.cloudinaryConfig||this.cloudinaryConfig(),this._poster=new i.default(t,e),this}},{key:"generateSources",value:function(){var t=this;return this.sourceTypes().map((function(e){if("audio"===e){var n={},r=t.sourceTransformation()[e]||[t.transformation()];r&&(n.transformation=r),(0,u.assign)(n,{resource_type:"video",format:"mp3"});var o=t.queryParams()?(0,c.objectToQuerystring)(t.queryParams()):"";return{type:"video/mp4",src:"".concat(t.config().url(t.publicId(),n)).concat(o),cldSrc:t,poster:t.getPoster().url()}}return null}),this)}}],n&&d(e.prototype,n),r&&d(e,r),Object.defineProperty(e,"prototype",{writable:!1}),h}(o.default),b=_;e.default=b},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.DEFAULT_POSTER_PARAMS=e.DEFAULT_AUDIO_PARAMS=e.COMMON_AUDIO_FORMATS=e.AUDIO_SUFFIX_REMOVAL_PATTERN=void 0;e.DEFAULT_POSTER_PARAMS={format:"jpg",resource_type:"video",transformation:{flags:"waveform"}};var r=["mp3","ogg","wav","mp4"];e.COMMON_AUDIO_FORMATS=r;var o=RegExp("\\.(".concat(r.join("|"),")$$"));e.AUDIO_SUFFIX_REMOVAL_PATTERN=o;e.DEFAULT_AUDIO_PARAMS={resource_type:"video",type:"upload",transformation:[]}},function(t,e,n){"use strict";function r(t){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r(t)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};new v(this,t).init()};var o,i=(o=n(1))&&o.__esModule?o:{default:o},a=n(20),s=function(t,e){if(!e&&t&&t.__esModule)return t;if(null===t||"object"!==r(t)&&"function"!=typeof t)return{default:t};var n=c(e);if(n&&n.has(t))return n.get(t);var o={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in t)if("default"!==a&&Object.prototype.hasOwnProperty.call(t,a)){var s=i?Object.getOwnPropertyDescriptor(t,a):null;s&&(s.get||s.set)?Object.defineProperty(o,a,s):o[a]=t[a]}o.default=t,n&&n.set(t,o);return o}(n(189)),u=n(27);function c(t){if("function"!=typeof WeakMap)return null;var e=new WeakMap,n=new WeakMap;return(c=function(t){return t?n:e})(t)}function l(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function f(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var h=[u.PLAYER_EVENT.PLAY,u.PLAYER_EVENT.PAUSE,u.PLAYER_EVENT.ENDED,u.PLAYER_EVENT.VOLUME_CHANGE,u.PLAYER_EVENT.RESIZE,u.PLAYER_EVENT.ERROR,u.PLAYER_EVENT.FULL_SCREEN_CHANGE,u.PLAYER_EVENT.START,u.PLAYER_EVENT.VIDEO_LOAD,u.PLAYER_EVENT.PERCENTS_PLAYED,u.PLAYER_EVENT.SEEK,u.PLAYER_EVENT.PLAYER_LOAD],p={percentsplayed:{percents:[25,50,75,100]}},d={events:h,category:"Video",defaultLabel:function(t){return t.cloudinary&&t.cloudinary.currentPublicId()||t.currentSource().src}},v=function(){function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};l(this,t),this.player=e,this.options=i.default.mergeOptions(d,n),this.events=(0,s.normalizeEventsParam)(this.options.events,p);var r=(0,a.sliceProperties)(this.events,u.PLAYER_EVENT.PERCENTS_PLAYED,u.PLAYER_EVENT.TIME_PLAYED,u.PLAYER_EVENT.PAUSE,u.PLAYER_EVENT.SEEK);r.pause&&(delete r.pause,r.pausenoseek={}),this._extendedEvents=new s.default(e,{events:r}),this._currentSource=null,this._startTracked=null,this._endTracked=null,this.resetState()}var e,n,r;return e=t,(n=[{key:"init",value:function(){var t=this;this.events.shoppable&&(this.player.on("productHover",function(e,n){t.track({action:"productHover",label:n.productName})}.bind(this)),this.player.on("productClick",function(e,n){t.track({action:"productClick",label:n.productName})}.bind(this)),this.player.on("productHoverPost",function(e,n){t.track({action:"productHoverPostPlay",label:n.productName})}.bind(this)),this.player.on("productClickPost",function(e,n){t.track({action:"productClickPostPlay",label:n.productName})}.bind(this)),this.player.on("productBarMin",function(){t.track({action:"shoppableBar",label:"closed"})}.bind(this)),this.player.on("productBarMax",function(){t.track({action:"shoppableBar",label:"opened"})}.bind(this)),this.player.on("replay",function(){t.track({action:"replay"})}.bind(this))),this.events.play&&this.player.on(u.PLAYER_EVENT.PLAY,function(){t.track({action:"Play"})}.bind(this)),this.events.ended&&this.player.on(u.PLAYER_EVENT.ENDED,function(){t._endTracked||(t.track({action:"Ended",nonInteraction:!0}),t._endTracked=!0)}.bind(this)),this.events.volumechange&&this.player.on(u.PLAYER_EVENT.VOLUME_CHANGE,function(){var e=t.player.muted()?0:t.player.volume();t.track({action:"Volume Change",value:e})}.bind(this)),this.events.resize&&this.player.on(u.PLAYER_EVENT.RESIZE,function(){var e="Resize - ".concat(t.player.width(),"x").concat(t.player.height(),"}");t.track({action:e})}.bind(this)),this.events.error&&this.player.on(u.PLAYER_EVENT.ERROR,function(){t.track({action:"Error",nonInteraction:!0})}.bind(this)),this.events.start&&this.player.on(u.PLAYER_EVENT.PLAYING,function(){t._startTracked&&(t.track({action:"Start"}),t._startTracked=!0)}.bind(this)),this.events.fullscreenchange&&this.player.on(u.PLAYER_EVENT.FULL_SCREEN_CHANGE,function(){var e=t.player.isFullscreen()?"Enter Fullscreen":"Exit Fullscreen";t.track({action:e})}.bind(this)),this.events.percentsplayed&&this._extendedEvents.on(u.PLAYER_EVENT.PERCENTS_PLAYED,function(e,n){var r=n.percent;t.track({action:"".concat(r," Percents Played"),nonInteraction:!0})}.bind(this)),this.events.timeplayed&&this._extendedEvents.on(u.PLAYER_EVENT.TIME_PLAYED,function(e,n){var r=n.time;t.track({action:"".concat(r," Seconds Played"),value:r,nonInteraction:!0})}.bind(this)),this.events.pause&&this._extendedEvents.on(u.PLAYER_EVENT.PAUSE_NO_SEEK,function(){t.track({action:"Pause"})}.bind(this)),this.events.seek&&this._extendedEvents.on(u.PLAYER_EVENT.SEEK,function(e,n){var r=n.seekStart,o=n.seekEnd;t.track({action:"Seek Start",value:r}),t.track({action:"Seek End",value:o})}.bind(this)),this.events.playerload&&t.track({action:"Player Load",label:window.location.href,nonInteraction:!0}),this.player.on(u.PLAYER_EVENT.LOADED_METADATA,this.loadedmetadata.bind(this))}},{key:"track",value:function(t){var e=t.action,n=t.label,r=t.value,o=void 0===r?null:r,i=t.nonInteraction,a=void 0!==i&&i,s={eventCategory:this.options.category,eventAction:e,eventLabel:n||this.options.defaultLabel(this.player),eventValue:o||Math.round(this.player.currentTime()),nonInteraction:a};window.ga("send","event",s)}},{key:"videoload",value:function(){this.track({action:"Video Load",nonInteraction:!0})}},{key:"resetState",value:function(){this._currentSource="",this._startTracked=!1,this._endTracked=!1}},{key:"loadedmetadata",value:function(){var t=this.player.currentSource().src;t!==this._currentSource&&(this.resetState(),this._currentSource=t,this.events.videoload&&this.videoload())}}])&&f(e.prototype,n),r&&f(e,r),Object.defineProperty(e,"prototype",{writable:!1}),t}()},function(t,e,n){"use strict";var r,o="object"==typeof Reflect?Reflect:null,i=o&&"function"==typeof o.apply?o.apply:function(t,e,n){return Function.prototype.apply.call(t,e,n)};r=o&&"function"==typeof o.ownKeys?o.ownKeys:Object.getOwnPropertySymbols?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:function(t){return Object.getOwnPropertyNames(t)};var a=Number.isNaN||function(t){return t!=t};function s(){s.init.call(this)}t.exports=s,t.exports.once=function(t,e){return new Promise((function(n,r){function o(n){t.removeListener(e,i),r(n)}function i(){"function"==typeof t.removeListener&&t.removeListener("error",o),n([].slice.call(arguments))}g(t,e,i,{once:!0}),"error"!==e&&function(t,e,n){"function"==typeof t.on&&g(t,"error",e,n)}(t,o,{once:!0})}))},s.EventEmitter=s,s.prototype._events=void 0,s.prototype._eventsCount=0,s.prototype._maxListeners=void 0;var u=10;function c(t){if("function"!=typeof t)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof t)}function l(t){return void 0===t._maxListeners?s.defaultMaxListeners:t._maxListeners}function f(t,e,n,r){var o,i,a;if(c(n),void 0===(i=t._events)?(i=t._events=Object.create(null),t._eventsCount=0):(void 0!==i.newListener&&(t.emit("newListener",e,n.listener?n.listener:n),i=t._events),a=i[e]),void 0===a)a=i[e]=n,++t._eventsCount;else if("function"==typeof a?a=i[e]=r?[n,a]:[a,n]:r?a.unshift(n):a.push(n),(o=l(t))>0&&a.length>o&&!a.warned){a.warned=!0;var s=new Error("Possible EventEmitter memory leak detected. "+a.length+" "+String(e)+" listeners added. Use emitter.setMaxListeners() to increase limit");s.name="MaxListenersExceededWarning",s.emitter=t,s.type=e,s.count=a.length,console&&console.warn}return t}function h(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function p(t,e,n){var r={fired:!1,wrapFn:void 0,target:t,type:e,listener:n},o=h.bind(r);return o.listener=n,r.wrapFn=o,o}function d(t,e,n){var r=t._events;if(void 0===r)return[];var o=r[e];return void 0===o?[]:"function"==typeof o?n?[o.listener||o]:[o]:n?function(t){for(var e=new Array(t.length),n=0;n<e.length;++n)e[n]=t[n].listener||t[n];return e}(o):y(o,o.length)}function v(t){var e=this._events;if(void 0!==e){var n=e[t];if("function"==typeof n)return 1;if(void 0!==n)return n.length}return 0}function y(t,e){for(var n=new Array(e),r=0;r<e;++r)n[r]=t[r];return n}function g(t,e,n,r){if("function"==typeof t.on)r.once?t.once(e,n):t.on(e,n);else{if("function"!=typeof t.addEventListener)throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof t);t.addEventListener(e,(function o(i){r.once&&t.removeEventListener(e,o),n(i)}))}}Object.defineProperty(s,"defaultMaxListeners",{enumerable:!0,get:function(){return u},set:function(t){if("number"!=typeof t||t<0||a(t))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+t+".");u=t}}),s.init=function(){void 0!==this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},s.prototype.setMaxListeners=function(t){if("number"!=typeof t||t<0||a(t))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+t+".");return this._maxListeners=t,this},s.prototype.getMaxListeners=function(){return l(this)},s.prototype.emit=function(t){for(var e=[],n=1;n<arguments.length;n++)e.push(arguments[n]);var r="error"===t,o=this._events;if(void 0!==o)r=r&&void 0===o.error;else if(!r)return!1;if(r){var a;if(e.length>0&&(a=e[0]),a instanceof Error)throw a;var s=new Error("Unhandled error."+(a?" ("+a.message+")":""));throw s.context=a,s}var u=o[t];if(void 0===u)return!1;if("function"==typeof u)i(u,this,e);else{var c=u.length,l=y(u,c);for(n=0;n<c;++n)i(l[n],this,e)}return!0},s.prototype.addListener=function(t,e){return f(this,t,e,!1)},s.prototype.on=s.prototype.addListener,s.prototype.prependListener=function(t,e){return f(this,t,e,!0)},s.prototype.once=function(t,e){return c(e),this.on(t,p(this,t,e)),this},s.prototype.prependOnceListener=function(t,e){return c(e),this.prependListener(t,p(this,t,e)),this},s.prototype.removeListener=function(t,e){var n,r,o,i,a;if(c(e),void 0===(r=this._events))return this;if(void 0===(n=r[t]))return this;if(n===e||n.listener===e)0==--this._eventsCount?this._events=Object.create(null):(delete r[t],r.removeListener&&this.emit("removeListener",t,n.listener||e));else if("function"!=typeof n){for(o=-1,i=n.length-1;i>=0;i--)if(n[i]===e||n[i].listener===e){a=n[i].listener,o=i;break}if(o<0)return this;0===o?n.shift():function(t,e){for(;e+1<t.length;e++)t[e]=t[e+1];t.pop()}(n,o),1===n.length&&(r[t]=n[0]),void 0!==r.removeListener&&this.emit("removeListener",t,a||e)}return this},s.prototype.off=s.prototype.removeListener,s.prototype.removeAllListeners=function(t){var e,n,r;if(void 0===(n=this._events))return this;if(void 0===n.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==n[t]&&(0==--this._eventsCount?this._events=Object.create(null):delete n[t]),this;if(0===arguments.length){var o,i=Object.keys(n);for(r=0;r<i.length;++r)"removeListener"!==(o=i[r])&&this.removeAllListeners(o);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(e=n[t]))this.removeListener(t,e);else if(void 0!==e)for(r=e.length-1;r>=0;r--)this.removeListener(t,e[r]);return this},s.prototype.listeners=function(t){return d(this,t,!0)},s.prototype.rawListeners=function(t){return d(this,t,!1)},s.listenerCount=function(t,e){return"function"==typeof t.listenerCount?t.listenerCount(e):v.call(t,e)},s.prototype.listenerCount=v,s.prototype.eventNames=function(){return this._eventsCount>0?r(this._events):[]}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=i(n(1)),o=i(n(117));function i(t){return t&&t.__esModule?t:{default:t}}n(451);var a={},s={},u=function(){function t(t,e){return this.player=t,this.options=e,this.listenForDurationChange(),this.initializeThumbnails(),this.registeredEvents={},this}return t.prototype.src=function(t){this.resetPlugin(),this.options.src=t,this.initializeThumbnails()},t.prototype.detach=function(){this.resetPlugin()},t.prototype.resetPlugin=function(){this.thumbnailHolder&&this.thumbnailHolder.parentNode.removeChild(this.thumbnailHolder),this.progressBar&&(this.progressBar.removeEventListener("mouseenter",this.registeredEvents.progressBarMouseEnter),this.progressBar.removeEventListener("mouseleave",this.registeredEvents.progressBarMouseLeave),this.progressBar.removeEventListener("mousemove",this.registeredEvents.progressBarMouseMove)),delete this.registeredEvents.progressBarMouseEnter,delete this.registeredEvents.progressBarMouseLeave,delete this.registeredEvents.progressBarMouseMove,delete this.progressBar,delete this.vttData,delete this.thumbnailHolder,delete this.lastStyle},t.prototype.listenForDurationChange=function(){this.player.on("durationchange",(function(){}))},t.prototype.initializeThumbnails=function(){var t=this;if(this.options.src){var e=this.getBaseUrl(),n=this.getFullyQualifiedUrl(this.options.src,e);this.getVttFile(n).then((function(e){t.vttData=t.processVtt(e),t.setupThumbnailElement()}))}},t.prototype.getBaseUrl=function(){return[window.location.protocol,"//",window.location.hostname,window.location.port?":"+window.location.port:"",window.location.pathname].join("").split(/([^\/]*)$/gi).shift()},t.prototype.getVttFile=function(t){var e=this;return new o.default((function(n){var r=new XMLHttpRequest;r.data={resolve:n},r.addEventListener("load",e.vttFileLoaded),r.open("GET",t),r.send()}))},t.prototype.vttFileLoaded=function(){this.data.resolve(this.responseText)},t.prototype.setupThumbnailElement=function(){var t=this,e=this.player.$(".vjs-mouse-display");this.progressBar=this.player.$(".vjs-progress-control");var n=document.createElement("div");n.setAttribute("class","vjs-vtt-thumbnail-display"),this.progressBar.appendChild(n),this.thumbnailHolder=n;var r=document.createElement("div");r.setAttribute("class","vjs-vtt-time-display"),this.thumbnailHolder.appendChild(r),this.timeHolder=r,e&&e.classList.add("vjs-hidden"),this.registeredEvents.progressBarMouseEnter=function(){return t.onBarMouseenter()},this.registeredEvents.progressBarMouseLeave=function(){return t.onBarMouseleave()},this.progressBar.addEventListener("mouseenter",this.registeredEvents.progressBarMouseEnter),this.progressBar.addEventListener("mouseleave",this.registeredEvents.progressBarMouseLeave)},t.prototype.onBarMouseenter=function(){var t=this;this.progressBar.offsetWidth<400||(this.mouseMoveCallback=function(e){t.onBarMousemove(e)},this.registeredEvents.progressBarMouseMove=this.mouseMoveCallback,this.progressBar.addEventListener("mousemove",this.registeredEvents.progressBarMouseMove),this.showThumbnailHolder())},t.prototype.onBarMouseleave=function(){this.registeredEvents.progressBarMouseMove&&this.progressBar.removeEventListener("mousemove",this.registeredEvents.progressBarMouseMove),this.hideThumbnailHolder()},t.prototype.getXCoord=function(t,e){var n=t.getBoundingClientRect(),r=document.documentElement;return e-(n.left+(window.pageXOffset||r.scrollLeft||0))},t.prototype.onBarMousemove=function(t){this.updateThumbnailStyle(r.default.dom.getPointerPosition(this.progressBar,t).x,this.progressBar.offsetWidth)},t.prototype.getStyleForTime=function(t){for(var e=0;e<this.vttData.length;++e){var n=this.vttData[e];if(t>=n.start&&t<n.end){if(n.css.url&&!s[n.css.url]){var r=new Image;r.src=n.css.url,s[n.css.url]=r}return n.css}}},t.prototype.showThumbnailHolder=function(){this.thumbnailHolder.style.opacity="1"},t.prototype.hideThumbnailHolder=function(){this.thumbnailHolder.style.opacity="0"},t.prototype.updateThumbnailStyle=function(t,e){var n=t*this.player.duration(),r=this.getStyleForTime(n);if(!r)return this.hideThumbnailHolder();var o=t*e,i=parseInt(r.width,10),a=i/2,s=e-(o+a),u=o-a;if(u>0&&s>0?this.thumbnailHolder.style.transform="translateX("+(o-a)+"px)":u<=0?this.thumbnailHolder.style.transform="translateX(0px)":s<=0&&(this.thumbnailHolder.style.transform="translateX("+(e-i)+"px)"),this.timeHolder.innerHTML=this.getTimestampFromSeconds(n),!this.lastStyle||this.lastStyle!==r)for(var c in this.lastStyle=r,r)Object.prototype.hasOwnProperty.call(r,c)&&(this.thumbnailHolder.style[c]=r[c])},t.prototype.processVtt=function(t){var e=this,n=[];return t.split(/[\r\n][\r\n]/i).forEach((function(t){if(t.match(/([0-9]{2}:)?([0-9]{2}:)?[0-9]{2}(.[0-9]{3})?( ?--> ?)([0-9]{2}:)?([0-9]{2}:)?[0-9]{2}(.[0-9]{3})?[\r\n]{1}.*/gi)){var r=t.split(/[\r\n]/i),o=r[0].split(/ ?--> ?/i),i=o[0],a=o[1],s=r[1].split("/").pop(),u=e.getVttCss(s);n.push({start:e.getSecondsFromTimestamp(i),end:e.getSecondsFromTimestamp(a),css:u})}})),n},t.prototype.getFullyQualifiedUrl=function(t,e){return t.indexOf("//")>=0?t:0===e.indexOf("//")?[e.replace(/\/$/gi,""),this.trim(t,"/")].join("/"):e.indexOf("//")>0?[this.trim(e,"/"),this.trim(t,"/")].join("/"):t},t.prototype.getPropsFromDef=function(t){var e=t.split(/#xywh=/i),n=e[0],r=e[1].match(/[0-9]+/gi);return{x:r[0],y:r[1],w:r[2],h:r[3],image:n}},t.prototype.getVttCss=function(t){var e={},n="";if(n=this.options.src.indexOf("//")>=0?this.options.src.split(/([^\/]*)$/gi).shift():this.getBaseUrl()+this.options.src.split(/([^\/]*)$/gi).shift(),!(t=this.getFullyQualifiedUrl(t,n)).match(/#xywh=/i))return e.background='url("'+t+'")',e;var r=this.getPropsFromDef(t);return e.background='url("'+r.image+'") no-repeat -'+r.x+"px -"+r.y+"px",e.width=r.w+"px",e.height=r.h+"px",e.url=r.image,e},t.prototype.doconstructTimestamp=function(t){var e=t.split("."),n=e[0].split(":");return{milliseconds:parseInt(e[1],10)||0,seconds:parseInt(n.pop(),10)||0,minutes:parseInt(n.pop(),10)||0,hours:parseInt(n.pop(),10)||0}},t.prototype.getSecondsFromTimestamp=function(t){var e=this.doconstructTimestamp(t);return parseInt(3600*e.hours+60*e.minutes+e.seconds+e.milliseconds/1e3,10)},t.prototype.getTimestampFromSeconds=function(t){var e=Math.floor(t/60),n=Math.floor(t%60);return n<10&&(n="0"+n),e+":"+n},t.prototype.trim=function(t,e){var n=[" ","\n","\r","\t","\f","\v"," "," "," "," "," "," "," "," "," "," "," "," ","​","\u2028","\u2029"," "].join(""),r=0,o=0;for(t+="",e&&(n=(e+"").replace(/([[\]().?/*{}+$^:])/g,"$1")),r=t.length,o=0;o<r;o++)if(-1===n.indexOf(t.charAt(o))){t=t.substring(o);break}for(o=(r=t.length)-1;o>=0;o--)if(-1===n.indexOf(t.charAt(o))){t=t.substring(0,o+1);break}return-1===n.indexOf(t.charAt(0))?t:""},t}(),c=function(t){var e=this;this.ready((function(){!function(t,e){t.addClass("vjs-vtt-thumbnails"),t.vttThumbnails=new u(t,e)}(e,r.default.mergeOptions(a,t))}))};e.default=c},function(t,e,n){"use strict";n.r(e)},function(t,e,n){"use strict";function r(t){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r(t)}function o(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function i(t,e){return i=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},i(t,e)}function a(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=c(t);if(e){var o=c(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return s(this,n)}}function s(t,e){if(e&&("object"===r(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return u(t)}function u(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function c(t){return c=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},c(t)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var l=function(t){return function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&i(t,e)}(c,t);var e,n,r,s=a(c);function c(){var t;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,c),t=s.call(this);var e={data:{},handlers:{}};return t.on=function(){for(var n,r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];var a=o.length-1,s=o[a];return e.handlers[s]=function(e){e.Player=u(t);for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];s.apply(void 0,[e].concat(r))},o[a]=e.handlers[s],(n=t.videojs).on.apply(n,o)},t.one=function(){for(var n,r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];var a=o.length-1,s=o[a];return e.handlers[s]=function(n){n.Player=u(t);for(var r=arguments.length,o=new Array(r>1?r-1:0),i=1;i<r;i++)o[i-1]=arguments[i];s.apply(void 0,[n].concat(o)),delete e.handlers[s]},o[a]=e.handlers[s],(n=t.videojs).one.apply(n,o)},t.off=function(){for(var n,r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];var a=o.length-1,s=o[a];o[a]=e.handlers[s];var u=(n=t.videojs).off.apply(n,o);return delete e.handlers[s],u},t.trigger=function(){var e;(e=t.videojs).trigger.apply(e,arguments)},t}return e=c,n&&o(e.prototype,n),r&&o(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}(t)};e.default=l},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=c(n(1)),o=c(n(454)),i=c(n(455)),a=c(n(456)),s=n(188),u=n(27);function c(t){return t&&t.__esModule?t:{default:t}}function l(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function f(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function h(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function p(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?h(Object(n),!0).forEach((function(e){d(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):h(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function d(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var v=function(t,e){var n=p(p({},s.PLAYLIST_DEFAULTS_OPTIONS),e);if(n.show&&"string"==typeof n.selector&&(n.useDefaultLayout=!1,n.useCustomLayout=!0,n.renderTo=document.querySelector(n.selector),n.showAll=!0,0===!n.renderTo.length))throw new Error("Couldn't find element(s) by selector '".concat(n.selector,"' for playlist"));return n.show&&!n.selector&&(n.useDefaultLayout=!0,n.useCustomLayout=!1),n.direction="horizontal"===n.direction.toLowerCase()?"horizontal":"vertical",n.skin=t.options_.skin,n},y=function(){function t(e){var n=this,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};l(this,t),o=v(e,o),this.options_=o,this.player_=e,this.render();var i=function(t,e){n.options_.fluid=e};e.on(u.PLAYER_EVENT.FLUID,i),this.options=function(t){return t?(n.options_=r.default.mergeOptions(n.options_,t),e.trigger("playlistwidgetoption",n.options_.playlistWidget),n.options_):n.options_},this.dispose=function(){n.layout_.dispose(),e.off(u.PLAYER_EVENT.FLUID,i)}}var e,n,c;return e=t,n=[{key:"render",value:function(){this.options_.useDefaultLayout&&("horizontal"===this.options_.direction?this.layout_=new o.default(this.player_,this.options_):this.layout_=new i.default(this.player_,this.options_)),this.options_.useCustomLayout&&(this.layout_=new a.default(this.player_,this.options_))}},{key:"getLayout",value:function(){return this.layout_}},{key:"update",value:function(t,e){this.options(e),"direction"===t?(this.layout_.removeLayout(),this.layout_.dispose(),this.render()):this.layout_.update(t,this.options_)}},{key:"setSkin",value:function(){this.layout_.setCls()}},{key:"total",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:s.PLAYLIST_DEFAULTS_OPTIONS.total,e=parseInt(t,10);return e!==this.options_.total&&"number"==typeof e&&e>0&&this.update("total",{total:e}),this}},{key:"direction",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:s.PLAYLIST_DEFAULTS_OPTIONS.direction;return"horizontal"!==t&&"vertical"!==t||this.update("direction",{direction:t}),this}}],n&&f(e.prototype,n),c&&f(e,c),Object.defineProperty(e,"prototype",{writable:!1}),t}(),g=y;e.default=g},function(t,e,n){"use strict";function r(t){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r(t)}var o;function i(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function a(){return a="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var r=s(t,e);if(r){var o=Object.getOwnPropertyDescriptor(r,e);return o.get?o.get.call(arguments.length<3?t:n):o.value}},a.apply(this,arguments)}function s(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=f(t)););return t}function u(t,e){return u=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},u(t,e)}function c(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=f(t);if(e){var o=f(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return l(this,n)}}function l(t,e){if(e&&("object"===r(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function f(t){return f=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},f(t)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var h=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&u(t,e)}(s,t);var e,n,r,o=c(s);function s(t,e){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,s),e.wrap=!0,o.call(this,t,e)}return e=s,(n=[{key:"getCls",value:function(){var t=a(f(s.prototype),"getCls",this).call(this);return t.push("cld-plw-horizontal"),t}}])&&i(e.prototype,n),r&&i(e,r),Object.defineProperty(e,"prototype",{writable:!1}),s}(((o=n(132))&&o.__esModule?o:{default:o}).default);e.default=h},function(t,e,n){"use strict";function r(t){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r(t)}var o;function i(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function a(){return a="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var r=s(t,e);if(r){var o=Object.getOwnPropertyDescriptor(r,e);return o.get?o.get.call(arguments.length<3?t:n):o.value}},a.apply(this,arguments)}function s(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=f(t)););return t}function u(t,e){return u=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},u(t,e)}function c(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=f(t);if(e){var o=f(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return l(this,n)}}function l(t,e){if(e&&("object"===r(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function f(t){return f=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},f(t)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var h=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&u(t,e)}(s,t);var e,n,r,o=c(s);function s(t,e){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,s),e.wrap=!0,o.call(this,t,e)}return e=s,(n=[{key:"getCls",value:function(){var t=a(f(s.prototype),"getCls",this).call(this);return t.push("cld-plw-vertical"),t}}])&&i(e.prototype,n),r&&i(e,r),Object.defineProperty(e,"prototype",{writable:!1}),s}(((o=n(132))&&o.__esModule?o:{default:o}).default);e.default=h},function(t,e,n){"use strict";function r(t){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r(t)}var o;function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function s(){return s="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var r=u(t,e);if(r){var o=Object.getOwnPropertyDescriptor(r,e);return o.get?o.get.call(arguments.length<3?t:n):o.value}},s.apply(this,arguments)}function u(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=h(t)););return t}function c(t,e){return c=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},c(t,e)}function l(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=h(t);if(e){var o=h(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return f(this,n)}}function f(t,e){if(e&&("object"===r(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function h(t){return h=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},h(t)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var p=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&c(t,e)}(u,t);var e,n,r,o=l(u);function u(){return i(this,u),o.apply(this,arguments)}return e=u,(n=[{key:"getCls",value:function(){var t=s(h(u.prototype),"getCls",this).call(this);return t.push("cld-plw-custom"),t}},{key:"createEl",value:function(){var t=s(h(u.prototype),"createEl",this).call(this);return this.options_.renderTo.appendChild(t),t}}])&&a(e.prototype,n),r&&a(e,r),Object.defineProperty(e,"prototype",{writable:!1}),u}(((o=n(132))&&o.__esModule?o:{default:o}).default),d=p;e.default=d},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.sourceValidators=e.playerValidators=void 0;var r=n(60),o=n(458),i=n(459),a={videojsOptions:{loop:i.validator.isBoolean,controls:i.validator.isBoolean,autoplay:i.validator.isBoolean,autoplayMode:i.validator.isString(r.AUTO_PLAY_MODE),bigPlayButton:i.validator.isBoolean,playbackRates:i.validator.isArray,showLogo:i.validator.isBoolean,logoImageUrl:i.validator.isString,logoOnclickUrl:i.validator.isString,videoJS:i.validator.isPlainObject,maxTries:i.validator.isNumber,muted:i.validator.isBoolean,playsinline:i.validator.isBoolean,videoTimeout:i.validator.isNumber,preload:i.validator.isString,sourceTransformation:i.validator.isPlainObject,allowUsageReport:i.validator.isBoolean,interactionAreas:{theme:{template:i.validator.isString(o.INTERACTION_AREAS_THEME)},layout:{enable:i.validator.isBoolean,showAgain:i.validator.isBoolean}}},playerOptions:{queryParams:i.validator.isPlainObject,publicId:i.validator.isString,fluid:i.validator.isBoolean,analytics:i.validator.isBoolean,hideContextMenu:i.validator.isBoolean,playedEventPercents:i.validator.isArrayOfNumbers,showJumpControls:i.validator.isBoolean,seekThumbnails:i.validator.isBoolean,floatingWhenNotVisible:i.validator.isString(r.FLOATING_TO),playedEventTimes:i.validator.isArray,playlistWidget:{direction:i.validator.isString,total:i.validator.isNumber},colors:{base:i.validator.isString,accent:i.validator.isString,text:i.validator.isString},ads:{adTagUrl:i.validator.isString,showCountdown:i.validator.isBoolean,adLabel:i.validator.isString,locale:i.validator.isString,prerollTimeout:i.validator.isNumber,postrollTimeout:i.validator.isNumber,adsInPlaylist:i.validator.isString(r.ADS_IN_PLAYLIST)},cloudinary:{autoShowRecommendations:i.validator.isBoolean,sourceTypes:i.validator.isArrayOfStrings,transformation:i.validator.isObject,fontFace:i.validator.isString,posterOptions:{publicId:i.validator.isString,transformation:i.validator.isObject}}}};e.playerValidators=a;var s={raw_transformation:i.validator.isString,shoppable:i.validator.isPlainObject,withCredentials:i.validator.isBoolean,interactionAreas:{enable:i.validator.isBoolean,template:i.validator.or(i.validator.isString(o.INTERACTION_AREAS_TEMPLATE),i.validator.isArray),vttUrl:i.validator.isString,onClick:i.validator.isFunction},textTracks:{captions:{label:i.validator.isString,language:i.validator.isString,default:i.validator.isBoolean,url:i.validator.isString},subtitles:i.validator.isArrayOfObjects({label:i.validator.isString,language:i.validator.isString,url:i.validator.isString})},info:{title:i.validator.isString,subtitle:i.validator.isString,description:i.validator.isString},cloudinary:{sourceTypes:i.validator.isArrayOfStrings,transformation:i.validator.isObject}};e.sourceValidators=s},function(t,e,n){"use strict";var r;function o(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}Object.defineProperty(e,"__esModule",{value:!0}),e.TEMPLATE_INTERACTION_AREAS_VTT=e.INTERACTION_AREA_LAYOUT_LOCAL_STORAGE_NAME=e.INTERACTION_AREA_HAND_ICON=e.INTERACTION_AREAS_THEME=e.INTERACTION_AREAS_TEMPLATE=e.INTERACTION_AREAS_PREFIX=e.INTERACTION_AREAS_CONTAINER_CLASS_NAME=e.DEFAULT_INTERACTION_ARE_TRANSITION=e.CLOSE_INTERACTION_AREA_LAYOUT_DELAY=void 0;e.INTERACTION_AREA_LAYOUT_LOCAL_STORAGE_NAME="cld-ia-layout-state";e.INTERACTION_AREAS_PREFIX="vp-ia";e.INTERACTION_AREAS_CONTAINER_CLASS_NAME="interaction-areas-container";var i={PORTRAIT:"portrait",LANDSCAPE:"landscape",All:"all",CENTER:"center"};e.INTERACTION_AREAS_TEMPLATE=i;e.INTERACTION_AREAS_THEME={PULSING:"pulsing",SHADOWED:"shadowed"};var a=(o(r={},i.PORTRAIT,"https://res.cloudinary.com/prod/raw/upload/v1623772481/video-player/vtts/portrait.vtt"),o(r,i.LANDSCAPE,"https://res.cloudinary.com/prod/raw/upload/v1623772303/video-player/vtts/landscape.vtt"),o(r,i.All,"https://res.cloudinary.com/prod/raw/upload/v1623250266/video-player/vtts/all.vtt"),o(r,i.CENTER,"https://res.cloudinary.com/prod/raw/upload/v1623250265/video-player/vtts/center.vtt"),r);e.TEMPLATE_INTERACTION_AREAS_VTT=a;e.INTERACTION_AREA_HAND_ICON="https://res.cloudinary.com/prod/image/upload/v1626764643/video-player/interaction-area-hand.svg";e.CLOSE_INTERACTION_AREA_LAYOUT_DELAY=4500;e.DEFAULT_INTERACTION_ARE_TRANSITION=250},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.validator=void 0;var r=n(13),o=n(190),i=n(85);function a(t){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},a(t)}var s=function(t){return(0,r.isPlainObject)(t)?":(".concat(Object.values(t).join("/"),")"):""},u={isString:function(t){return{value:r.isString,message:function(e){return"'".concat(e,"' should be a string").concat(s(t))}}},isNumber:function(t){return{value:r.isNumber,message:function(e){return"'".concat(e,"' should be a number").concat(s(t))}}},isBoolean:function(){return{value:r.isBoolean,message:function(t){return"'".concat(t,"' should be a boolean")}}},isFunction:function(){return{value:r.isFunction,message:function(t){return"'".concat(t,"' should be a function")}}},isPlainObject:function(){return{value:r.isPlainObject,message:function(t){return"'".concat(t,"' should be an object")}}},isObject:function(){return{value:function(t){return t&&"object"===a(t)},message:function(t){return"'".concat(t,"' should be an object")}}},isArray:function(){return{value:Array.isArray,message:function(t){return"'".concat(t,"' should be an array")}}},isArrayOfNumbers:function(){return{value:function(t){return Array.isArray(t)&&t.every(r.isNumber)},message:function(t){return"'".concat(t,"' should be an array of numbers")}}},isArrayOfStrings:function(){return{value:function(t){return Array.isArray(t)&&t.every(r.isString)},message:function(t){return"'".concat(t,"' should be an array of strings")}}},isArrayOfObjects:function(t){return{value:function(e){return e.every((function(e){for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var r=e[n],i=t[n];if(!(i&&(0,o.isValueValid)(i(r),r,n)))return!1}return!0}))},message:function(){return"invalid array"}}},or:function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return function(){return{value:function(t){return(0,i.some)(e,(function(e){return(0,o.getValidatorItem)(e).value(t)}))},message:function(t){return(0,i.map)(e,(function(e){return(0,o.getValidatorItem)(e).message(t)})).join(" or ")}}}}};e.validator=u}])}));
2
+ !function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.cloudinaryVideoPlayer=e():t.cloudinaryVideoPlayer=e()}(window,(function(){return function(t){var e={};function n(r){if(e[r])return e[r].exports;var o=e[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)n.d(r,o,function(e){return t[e]}.bind(null,o));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=193)}([function(t,e,n){var r=n(2),o=n(8),i=n(17),a=n(14),s=n(21),u=function(t,e,n){var c,l,f,h,p=t&u.F,d=t&u.G,v=t&u.S,y=t&u.P,g=t&u.B,m=d?r:v?r[e]||(r[e]={}):(r[e]||{}).prototype,_=d?o:o[e]||(o[e]={}),b=_.prototype||(_.prototype={});for(c in d&&(n=e),n)f=((l=!p&&m&&void 0!==m[c])?m:n)[c],h=g&&l?s(f,r):y&&"function"==typeof f?s(Function.call,f):f,m&&a(m,c,f,t&u.U),_[c]!=f&&i(_,c,h),y&&b[c]!=f&&(b[c]=f)};r.core=o,u.F=1,u.G=2,u.S=4,u.P=8,u.B=16,u.W=32,u.U=64,u.R=128,t.exports=u},function(t,e,n){(function(e){t.exports=e.videojs=n(382)}).call(this,n(35))},function(t,e){var n=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,e,n){var r=n(5);t.exports=function(t){if(!r(t))throw TypeError(t+" is not an object!");return t}},function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,e,n){var r=n(68)("wks"),o=n(39),i=n(2).Symbol,a="function"==typeof i;(t.exports=function(t){return r[t]||(r[t]=a&&i[t]||(a?i:o)("Symbol."+t))}).store=r},function(t,e,n){var r=n(23),o=Math.min;t.exports=function(t){return t>0?o(r(t),9007199254740991):0}},function(t,e){var n=t.exports={version:"2.6.12"};"number"==typeof __e&&(__e=n)},function(t,e,n){t.exports=!n(3)((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},function(t,e,n){var r=n(4),o=n(133),i=n(33),a=Object.defineProperty;e.f=n(9)?Object.defineProperty:function(t,e,n){if(r(t),e=i(e,!0),r(n),o)try{return a(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(t[e]=n.value),t}},function(t,e,n){var r=n(29);t.exports=function(t){return Object(r(t))}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.assign=function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];if(Object.assign)return Object.assign.apply(Object,[t].concat(n));return n.forEach((function(e){e&&Object.keys(e).forEach((function(n){var r=e[n];t[n]=r}))})),t}},function(t,e,n){"use strict";function r(t){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r(t)}Object.defineProperty(e,"__esModule",{value:!0}),e.isBoolean=function(t){return"boolean"==typeof t},e.isElement=function(t){return t instanceof Element},e.isFunction=function(t){return"function"==typeof t},e.isInteger=function(t){return"number"==typeof t&&t%1==0},e.isNumber=function(t){return t instanceof Number||"number"==typeof t},e.isPlainObject=function(t){return null!==t&&"object"===r(t)&&"[object Object]"===Object.prototype.toString.call(t)},e.isString=function(t){return t instanceof String||"string"==typeof t},e.noop=function(){return null}},function(t,e,n){var r=n(2),o=n(17),i=n(16),a=n(39)("src"),s=n(198),u="toString",c=(""+s).split(u);n(8).inspectSource=function(t){return s.call(t)},(t.exports=function(t,e,n,s){var u="function"==typeof n;u&&(i(n,"name")||o(n,"name",e)),t[e]!==n&&(u&&(i(n,a)||o(n,a,t[e]?""+t[e]:c.join(String(e)))),t===r?t[e]=n:s?t[e]?t[e]=n:o(t,e,n):(delete t[e],o(t,e,n)))})(Function.prototype,u,(function(){return"function"==typeof this&&this[a]||s.call(this)}))},function(t,e,n){var r=n(0),o=n(3),i=n(29),a=/"/g,s=function(t,e,n,r){var o=String(i(t)),s="<"+e;return""!==n&&(s+=" "+n+'="'+String(r).replace(a,"&quot;")+'"'),s+">"+o+"</"+e+">"};t.exports=function(t,e){var n={};n[t]=e(s),r(r.P+r.F*o((function(){var e=""[t]('"');return e!==e.toLowerCase()||e.split('"').length>3})),"String",n)}},function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},function(t,e,n){var r=n(10),o=n(38);t.exports=n(9)?function(t,e,n){return r.f(t,e,o(1,n))}:function(t,e,n){return t[e]=n,t}},function(t,e,n){var r=n(61),o=n(29);t.exports=function(t){return r(o(t))}},function(t,e,n){"use strict";var r=n(3);t.exports=function(t,e){return!!t&&r((function(){e?t.call(null,(function(){}),1):t.call(null)}))}},function(t,e,n){"use strict";function r(t,e){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];return r.reduce((function(n,r){return Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r],e&&delete t[r]),n}),{})}Object.defineProperty(e,"__esModule",{value:!0}),e.sliceAndUnsetProperties=function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),o=1;o<e;o++)n[o-1]=arguments[o];return r.apply(void 0,[t,!0].concat(n))},e.sliceProperties=function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),o=1;o<e;o++)n[o-1]=arguments[o];return r.apply(void 0,[t,!1].concat(n))}},function(t,e,n){var r=n(22);t.exports=function(t,e,n){if(r(t),void 0===e)return t;switch(n){case 1:return function(n){return t.call(e,n)};case 2:return function(n,r){return t.call(e,n,r)};case 3:return function(n,r,o){return t.call(e,n,r,o)}}return function(){return t.apply(e,arguments)}}},function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},function(t,e){var n=Math.ceil,r=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?r:n)(t)}},function(t,e,n){var r=n(62),o=n(38),i=n(18),a=n(33),s=n(16),u=n(133),c=Object.getOwnPropertyDescriptor;e.f=n(9)?c:function(t,e){if(t=i(t),e=a(e,!0),u)try{return c(t,e)}catch(t){}if(s(t,e))return o(!r.f.call(t,e),t[e])}},function(t,e,n){var r=n(0),o=n(8),i=n(3);t.exports=function(t,e){var n=(o.Object||{})[t]||Object[t],a={};a[t]=e(n),r(r.S+r.F*i((function(){n(1)})),"Object",a)}},function(t,e,n){var r=n(21),o=n(61),i=n(11),a=n(7),s=n(149);t.exports=function(t,e){var n=1==t,u=2==t,c=3==t,l=4==t,f=6==t,h=5==t||f,p=e||s;return function(e,s,d){for(var v,y,g=i(e),m=o(g),_=r(s,d,3),b=a(m.length),w=0,E=n?p(e,b):u?p(e,0):void 0;b>w;w++)if((h||w in m)&&(y=_(v=m[w],w,g),t))if(n)E[w]=y;else if(y)switch(t){case 3:return!0;case 5:return v;case 6:return w;case 2:E.push(v)}else if(l)return!1;return f?-1:c||l?l:E}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SOURCE_TYPE=e.PLAYER_EVENT=void 0;e.PLAYER_EVENT={PLAY:"play",PLAYING:"playing",PAUSE:"pause",SEEK:"seek",SEEKING:"seeking",MUTE:"mute",UNMUTE:"unmute",PAUSE_NO_SEEK:"pausenoseek",ERROR:"error",TIME_UPDATE:"timeupdate",RETRY_PLAYLIST:"retryplaylist",CAN_PLAY_THROUGH:"canplaythrough",CLD_SOURCE_CHANGED:"cldsourcechanged",SOURCE_CHANGED:"sourcechanged",LOADED_METADATA:"loadedmetadata",LOADED_DATA:"loadeddata",REFRESH_TEXT_TRACKS:"refreshTextTracks",PLAYLIST_CREATED:"playlistcreated",UP_COMING_VIDEO_SHOW:"upcomingvideoshow",UP_COMING_VIDEO_HIDE:"upcomingvideohide",PLAYLIST_ITEM_CHANGED:"playlistitemchanged",VOLUME_CHANGE:"volumechange",FLUID:"fluid",PLAYLIST_PANEL:"PlaylistPanel",ENDED:"ended",RESIZE:"resize",START:"start",VIDEO_LOAD:"videoload",PRODUCT_BAR_MIN:"productBarMin",SHOW_PRODUCTS_OVERLAY:"showProductsOverlay",SHOPPABLE_ITEM_CHANGED:"shoppableitemchanged",FULL_SCREEN_CHANGE:"fullscreenchange",PERCENTS_PLAYED:"percentsplayed",TIME_PLAYED:"timeplayed",PLAYER_LOAD:"playerload",DISPOSE:"dispose",QUALITY_CHANGED:"qualitychanged"};e.SOURCE_TYPE={AUDIO:"AudioSource",VIDEO:"VideoSource"}},function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},function(t,e){t.exports=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t}},function(t,e,n){"use strict";if(n(9)){var r=n(40),o=n(2),i=n(3),a=n(0),s=n(79),u=n(111),c=n(21),l=n(57),f=n(38),h=n(17),p=n(58),d=n(23),v=n(7),y=n(160),g=n(42),m=n(33),_=n(16),b=n(63),w=n(5),E=n(11),T=n(103),S=n(43),O=n(45),C=n(44).f,P=n(105),k=n(39),j=n(6),A=n(26),x=n(69),R=n(64),L=n(107),I=n(55),N=n(72),M=n(56),D=n(106),F=n(151),B=n(10),V=n(24),U=B.f,H=V.f,Y=o.RangeError,z=o.TypeError,W=o.Uint8Array,G="ArrayBuffer",K="SharedArrayBuffer",X="BYTES_PER_ELEMENT",q=Array.prototype,$=u.ArrayBuffer,J=u.DataView,Q=A(0),Z=A(2),tt=A(3),et=A(4),nt=A(5),rt=A(6),ot=x(!0),it=x(!1),at=L.values,st=L.keys,ut=L.entries,ct=q.lastIndexOf,lt=q.reduce,ft=q.reduceRight,ht=q.join,pt=q.sort,dt=q.slice,vt=q.toString,yt=q.toLocaleString,gt=j("iterator"),mt=j("toStringTag"),_t=k("typed_constructor"),bt=k("def_constructor"),wt=s.CONSTR,Et=s.TYPED,Tt=s.VIEW,St="Wrong length!",Ot=A(1,(function(t,e){return At(R(t,t[bt]),e)})),Ct=i((function(){return 1===new W(new Uint16Array([1]).buffer)[0]})),Pt=!!W&&!!W.prototype.set&&i((function(){new W(1).set({})})),kt=function(t,e){var n=d(t);if(n<0||n%e)throw Y("Wrong offset!");return n},jt=function(t){if(w(t)&&Et in t)return t;throw z(t+" is not a typed array!")},At=function(t,e){if(!w(t)||!(_t in t))throw z("It is not a typed array constructor!");return new t(e)},xt=function(t,e){return Rt(R(t,t[bt]),e)},Rt=function(t,e){for(var n=0,r=e.length,o=At(t,r);r>n;)o[n]=e[n++];return o},Lt=function(t,e,n){U(t,e,{get:function(){return this._d[n]}})},It=function(t){var e,n,r,o,i,a,s=E(t),u=arguments.length,l=u>1?arguments[1]:void 0,f=void 0!==l,h=P(s);if(null!=h&&!T(h)){for(a=h.call(s),r=[],e=0;!(i=a.next()).done;e++)r.push(i.value);s=r}for(f&&u>2&&(l=c(l,arguments[2],2)),e=0,n=v(s.length),o=At(this,n);n>e;e++)o[e]=f?l(s[e],e):s[e];return o},Nt=function(){for(var t=0,e=arguments.length,n=At(this,e);e>t;)n[t]=arguments[t++];return n},Mt=!!W&&i((function(){yt.call(new W(1))})),Dt=function(){return yt.apply(Mt?dt.call(jt(this)):jt(this),arguments)},Ft={copyWithin:function(t,e){return F.call(jt(this),t,e,arguments.length>2?arguments[2]:void 0)},every:function(t){return et(jt(this),t,arguments.length>1?arguments[1]:void 0)},fill:function(t){return D.apply(jt(this),arguments)},filter:function(t){return xt(this,Z(jt(this),t,arguments.length>1?arguments[1]:void 0))},find:function(t){return nt(jt(this),t,arguments.length>1?arguments[1]:void 0)},findIndex:function(t){return rt(jt(this),t,arguments.length>1?arguments[1]:void 0)},forEach:function(t){Q(jt(this),t,arguments.length>1?arguments[1]:void 0)},indexOf:function(t){return it(jt(this),t,arguments.length>1?arguments[1]:void 0)},includes:function(t){return ot(jt(this),t,arguments.length>1?arguments[1]:void 0)},join:function(t){return ht.apply(jt(this),arguments)},lastIndexOf:function(t){return ct.apply(jt(this),arguments)},map:function(t){return Ot(jt(this),t,arguments.length>1?arguments[1]:void 0)},reduce:function(t){return lt.apply(jt(this),arguments)},reduceRight:function(t){return ft.apply(jt(this),arguments)},reverse:function(){for(var t,e=this,n=jt(e).length,r=Math.floor(n/2),o=0;o<r;)t=e[o],e[o++]=e[--n],e[n]=t;return e},some:function(t){return tt(jt(this),t,arguments.length>1?arguments[1]:void 0)},sort:function(t){return pt.call(jt(this),t)},subarray:function(t,e){var n=jt(this),r=n.length,o=g(t,r);return new(R(n,n[bt]))(n.buffer,n.byteOffset+o*n.BYTES_PER_ELEMENT,v((void 0===e?r:g(e,r))-o))}},Bt=function(t,e){return xt(this,dt.call(jt(this),t,e))},Vt=function(t){jt(this);var e=kt(arguments[1],1),n=this.length,r=E(t),o=v(r.length),i=0;if(o+e>n)throw Y(St);for(;i<o;)this[e+i]=r[i++]},Ut={entries:function(){return ut.call(jt(this))},keys:function(){return st.call(jt(this))},values:function(){return at.call(jt(this))}},Ht=function(t,e){return w(t)&&t[Et]&&"symbol"!=typeof e&&e in t&&String(+e)==String(e)},Yt=function(t,e){return Ht(t,e=m(e,!0))?f(2,t[e]):H(t,e)},zt=function(t,e,n){return!(Ht(t,e=m(e,!0))&&w(n)&&_(n,"value"))||_(n,"get")||_(n,"set")||n.configurable||_(n,"writable")&&!n.writable||_(n,"enumerable")&&!n.enumerable?U(t,e,n):(t[e]=n.value,t)};wt||(V.f=Yt,B.f=zt),a(a.S+a.F*!wt,"Object",{getOwnPropertyDescriptor:Yt,defineProperty:zt}),i((function(){vt.call({})}))&&(vt=yt=function(){return ht.call(this)});var Wt=p({},Ft);p(Wt,Ut),h(Wt,gt,Ut.values),p(Wt,{slice:Bt,set:Vt,constructor:function(){},toString:vt,toLocaleString:Dt}),Lt(Wt,"buffer","b"),Lt(Wt,"byteOffset","o"),Lt(Wt,"byteLength","l"),Lt(Wt,"length","e"),U(Wt,mt,{get:function(){return this[Et]}}),t.exports=function(t,e,n,u){var c=t+((u=!!u)?"Clamped":"")+"Array",f="get"+t,p="set"+t,d=o[c],g=d||{},m=d&&O(d),_=!d||!s.ABV,E={},T=d&&d.prototype,P=function(t,n){U(t,n,{get:function(){return function(t,n){var r=t._d;return r.v[f](n*e+r.o,Ct)}(this,n)},set:function(t){return function(t,n,r){var o=t._d;u&&(r=(r=Math.round(r))<0?0:r>255?255:255&r),o.v[p](n*e+o.o,r,Ct)}(this,n,t)},enumerable:!0})};_?(d=n((function(t,n,r,o){l(t,d,c,"_d");var i,a,s,u,f=0,p=0;if(w(n)){if(!(n instanceof $||(u=b(n))==G||u==K))return Et in n?Rt(d,n):It.call(d,n);i=n,p=kt(r,e);var g=n.byteLength;if(void 0===o){if(g%e)throw Y(St);if((a=g-p)<0)throw Y(St)}else if((a=v(o)*e)+p>g)throw Y(St);s=a/e}else s=y(n),i=new $(a=s*e);for(h(t,"_d",{b:i,o:p,l:a,e:s,v:new J(i)});f<s;)P(t,f++)})),T=d.prototype=S(Wt),h(T,"constructor",d)):i((function(){d(1)}))&&i((function(){new d(-1)}))&&N((function(t){new d,new d(null),new d(1.5),new d(t)}),!0)||(d=n((function(t,n,r,o){var i;return l(t,d,c),w(n)?n instanceof $||(i=b(n))==G||i==K?void 0!==o?new g(n,kt(r,e),o):void 0!==r?new g(n,kt(r,e)):new g(n):Et in n?Rt(d,n):It.call(d,n):new g(y(n))})),Q(m!==Function.prototype?C(g).concat(C(m)):C(g),(function(t){t in d||h(d,t,g[t])})),d.prototype=T,r||(T.constructor=d));var k=T[gt],j=!!k&&("values"==k.name||null==k.name),A=Ut.values;h(d,_t,!0),h(T,Et,c),h(T,Tt,!0),h(T,bt,d),(u?new d(1)[mt]==c:mt in T)||U(T,mt,{get:function(){return c}}),E[c]=d,a(a.G+a.W+a.F*(d!=g),E),a(a.S,c,{BYTES_PER_ELEMENT:e}),a(a.S+a.F*i((function(){g.of.call(d,1)})),c,{from:It,of:Nt}),X in T||h(T,X,e),a(a.P,c,Ft),M(c),a(a.P+a.F*Pt,c,{set:Vt}),a(a.P+a.F*!j,c,Ut),r||T.toString==vt||(T.toString=vt),a(a.P+a.F*i((function(){new d(1).slice()})),c,{slice:Bt}),a(a.P+a.F*(i((function(){return[1,2].toLocaleString()!=new d([1,2]).toLocaleString()}))||!i((function(){T.toLocaleString.call([1,2])}))),c,{toLocaleString:Dt}),I[c]=j?k:A,r||j||h(T,gt,A)}}else t.exports=function(){}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.normalizeOptions=e.mergeTransformations=e.isSrcEqual=e.isRawUrl=e.h264avcToString=e.getCloudinaryUrl=e.extendCloudinaryConfig=e.codecToSrcTransformation=e.codecShorthandTrans=e.cloudinaryErrorsConverter=e.VIDEO_CODEC=e.ERROR_CODE=void 0;var r,o=n(12),i=n(20),a=n(13),s=n(118),u=n(391),c=(r=n(120))&&r.__esModule?r:{default:r},l=n(127);function f(t){return f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},f(t)}e.normalizeOptions=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.tolerateMissingId,s=void 0!==r&&r;if((0,a.isPlainObject)(t)){var u=(0,o.assign)({},t);if(t=(0,i.sliceAndUnsetProperties)(u,"publicId").publicId,!(0,a.isString)(t)&&!s)throw new Error("Source is missing 'publicId'.");e&&(e=(0,o.assign)({},u,e))}return{publicId:t,options:e}};e.isRawUrl=function(t){return s.URL_PATTERN.test(t)};e.isSrcEqual=function(t,e){var n=t,r=e;return"object"===f(t)&&(n=t.src),"object"===f(e)&&(r=e.src),/^\/\//.test(n)&&(r=r.slice(r.indexOf("//"))),/^\/\//.test(r)&&(n=n.slice(n.indexOf("//"))),n===r};e.extendCloudinaryConfig=function(t,e){return Object.assign(t,e)};e.getCloudinaryUrl=function(t,e){return(0,u.createCloudinaryLegacyURL)(t,(0,l.omit)(e,["chainTarget"]))};e.mergeTransformations=function(t,e){var n,r="Transformation"===(n=t).constructor.name&&n.toOptions?t.toOptions():t;return new c.default(r).fromOptions(e).toOptions()};var h={NO_SUPPORTED_MEDIA:6,CUSTOM:10,UNKNOWN_CUSTOMER:11,RESOURCE_NOT_FOUND:12,PRIVATE_RESOURCE:13,UNAUTHENTICATED:14};e.ERROR_CODE=h;e.cloudinaryErrorsConverter=function(t){var e=t.errorMsg,n=t.publicId,r=t.cloudName,o=t.statusCode,i="Video cannot be played",a={code:h.CUSTOM,message:"".concat(i).concat(e?"- "+e:""),statusCode:o},s=e.toLowerCase();return s.startsWith("unknown customer")&&(a.code=h.UNKNOWN_CUSTOMER,a.message="".concat(i," Unknown cloud-name ").concat(r)),s.startsWith("resource not found")&&(a.code=h.RESOURCE_NOT_FOUND,a.message="".concat(i," Public ID ").concat(n," not found")),s.startsWith("private resource")&&(a.code=h.PRIVATE_RESOURCE,a.message="".concat(i," Private video")),s.startsWith("unauthenticated access")&&(a.message="".concat(i," Requires authentication"),a.code=h.UNAUTHENTICATED),a};e.codecShorthandTrans=function(t){var e={h265:"hev1.1.6.L93.B0",vp9:"vp09.00.50.08",h264:"avc1.42E01E"};return e[t]?e[t]:t};var p={avc1:"h264",avc2:"h264",svc1:"Scalable Video Coding",mvc1:"Multiview Video Coding",mvc2:"Multiview Video Coding"},d={0:"No",42:"baseline","4d":"main",58:"extended",64:"high","6e":"high 10","7a":"high 4:2:2",f4:"high 4:4:4","2c":"CAVLC 4:4:4",53:"Scalable Baseline",56:"Scalable High",80:"Stereo High",76:"Multiview High","8a":"Multiview Depth High"};var v=function(t){var e=/(avc1|avc2|svc1|mvc1|mvc2)\.([0-9a-f]{6})/i;if(!1===e.test("avc1.42001e"))throw new Error("Codec string is not formatted according to H.264/AVC standards for example avc1.42001e (maybe an iOS friendly version...)");var n=t.match(e);if(null!==n){n.shift();return p[n[0]]+":"+function(t){var e=/([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})/i;if(!1===e.test(t))throw new Error("error: please provide a 3-bytes hex-sequence for example: 42001e");var n=t.match(e);n.shift();var r=n[0];r="string"==typeof(r=d[r])?r:"Unknown";var o=n[2];return o=parseInt(o,16),o=String(o).split("").join("."),"".concat(r,":").concat(o)}(n[1])}return t};e.h264avcToString=v;var y={VP9:"vp9",HEV1:"hev1",H265:"h265",H264:"h264"};e.VIDEO_CODEC=y;e.codecToSrcTransformation=function(t){if(!t)return{};switch(t){case y.VP9:return{video_codec:y.VP9};case y.HEV1:return{video_codec:y.H265};case y.H264:return{video_codec:"".concat(y.H264,":baseline:3.0")};default:return{video_codec:v(t)}}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r="res.cloudinary.com",o="([0-9]*)\\.([0-9]+)|([0-9]+)",i="(".concat(o,")([%pP])?"),a=RegExp("^".concat(i,"$")),s=RegExp("(".concat(i,")\\.\\.(").concat(i,")"));e.AKAMAI_SHARED_CDN=r,e.CF_SHARED_CDN="d3jpl91pxevbkh.cloudfront.net",e.LAYER_KEYWORD_PARAMS={font_weight:"normal",font_style:"normal",text_decoration:"none",text_align:"",stroke:"none"},e.LEGACY_CONDITIONAL_OPERATORS={"=":"eq","!=":"ne","<":"lt",">":"gt","<=":"lte",">=":"gte","&&":"and","||":"or","*":"mul","/":"div","+":"add","-":"sub","^":"pow"},e.LEGACY_PREDEFINED_VARS={aspect_ratio:"ar",aspectRatio:"ar",current_page:"cp",currentPage:"cp",duration:"du",face_count:"fc",faceCount:"fc",height:"h",initial_aspect_ratio:"iar",initial_height:"ih",initial_width:"iw",initialAspectRatio:"iar",initialHeight:"ih",initialWidth:"iw",initial_duration:"idu",initialDuration:"idu",page_count:"pc",page_x:"px",page_y:"py",pageCount:"pc",pageX:"px",pageY:"py",tags:"tags",width:"w"},e.NUMBER_PATTERN=o,e.OFFSET_ANY_PATTERN=i,e.OFFSET_ANY_PATTERN_RE=s,e.OLD_AKAMAI_SHARED_CDN="cloudinary-a.akamaihd.net",e.RANGE_VALUE_RE=a,e.SHARED_CDN="res.cloudinary.com"},function(t,e,n){var r=n(5);t.exports=function(t,e){if(!r(t))return t;var n,o;if(e&&"function"==typeof(n=t.toString)&&!r(o=n.call(t)))return o;if("function"==typeof(n=t.valueOf)&&!r(o=n.call(t)))return o;if(!e&&"function"==typeof(n=t.toString)&&!r(o=n.call(t)))return o;throw TypeError("Can't convert object to primitive value")}},function(t,e,n){var r=n(39)("meta"),o=n(5),i=n(16),a=n(10).f,s=0,u=Object.isExtensible||function(){return!0},c=!n(3)((function(){return u(Object.preventExtensions({}))})),l=function(t){a(t,r,{value:{i:"O"+ ++s,w:{}}})},f=t.exports={KEY:r,NEED:!1,fastKey:function(t,e){if(!o(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!i(t,r)){if(!u(t))return"F";if(!e)return"E";l(t)}return t[r].i},getWeak:function(t,e){if(!i(t,r)){if(!u(t))return!0;if(!e)return!1;l(t)}return t[r].w},onFreeze:function(t){return c&&f.NEED&&u(t)&&!i(t,r)&&l(t),t}}},function(t,e){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(t){"object"==typeof window&&(n=window)}t.exports=n},function(t,e,n){"use strict";var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},r(t,e)};e.__assign=function(){return e.__assign=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},e.__assign.apply(this,arguments)},e.__extends=function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.snakeCase=function(t){return t.replace(/[A-Z]/g,(function(t){return"_".concat(t.toLowerCase())}))}},function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},function(t,e){var n=0,r=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++n+r).toString(36))}},function(t,e){t.exports=!1},function(t,e,n){var r=n(135),o=n(90);t.exports=Object.keys||function(t){return r(t,o)}},function(t,e,n){var r=n(23),o=Math.max,i=Math.min;t.exports=function(t,e){return(t=r(t))<0?o(t+e,0):i(t,e)}},function(t,e,n){var r=n(4),o=n(136),i=n(90),a=n(89)("IE_PROTO"),s=function(){},u=function(){var t,e=n(87)("iframe"),r=i.length;for(e.style.display="none",n(91).appendChild(e),e.src="javascript:",(t=e.contentWindow.document).open(),t.write("<script>document.F=Object<\/script>"),t.close(),u=t.F;r--;)delete u.prototype[i[r]];return u()};t.exports=Object.create||function(t,e){var n;return null!==t?(s.prototype=r(t),n=new s,s.prototype=null,n[a]=t):n=u(),void 0===e?n:o(n,e)}},function(t,e,n){var r=n(135),o=n(90).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return r(t,o)}},function(t,e,n){var r=n(16),o=n(11),i=n(89)("IE_PROTO"),a=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return t=o(t),r(t,i)?t[i]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?a:null}},function(t,e,n){var r=n(6)("unscopables"),o=Array.prototype;null==o[r]&&n(17)(o,r,{}),t.exports=function(t){o[r][t]=!0}},function(t,e,n){var r=n(5);t.exports=function(t,e){if(!r(t)||t._t!==e)throw TypeError("Incompatible receiver, "+e+" required!");return t}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isObject=function(t){return"object"==typeof t&&null!==t}},function(t,e,n){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.base64Encode=function(e){return("undefined"!=typeof window?btoa(encodeURI(decodeURI(e))):t.Buffer.from(e).toString("base64")).replace(/\+/g,"-").replace(/\//g,"_")}}).call(this,n(35))},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.smartEscape=function(t,e){return void 0===e&&(e=/([^a-zA-Z0-9_.\-\/:]+)/g),t.replace(e,(function(t){return t.split("").map((function(t){return"%"+t.charCodeAt(0).toString(16).toUpperCase()})).join("")}))}},function(t,e,n){"use strict";var r=n(37),o=function(){function t(t){var e=this;this.options={},null!=t&&["resourceType","type","publicId","format"].forEach((function(n){var o;return e.options[n]=null!=(o=t[n])?o:t[r.snakeCase(n)]}))}return t.prototype.resourceType=function(t){return this.options.resourceType=t,this},t.prototype.type=function(t){return this.options.type=t,this},t.prototype.publicId=function(t){return this.options.publicId=t,this},t.prototype.getPublicId=function(){var t;return null!=(t=this.options.publicId)?t.replace(/\//g,":"):void 0},t.prototype.getFullPublicId=function(){return null!=this.options.format?this.getPublicId()+"."+this.options.format:this.getPublicId()},t.prototype.format=function(t){return this.options.format=t,this},t.prototype.toString=function(){var t=[];if(null==this.options.publicId)throw"Must supply publicId";return"image"!==this.options.resourceType&&t.push(this.options.resourceType),"upload"!==this.options.type&&t.push(this.options.type),t.push(this.getFullPublicId()),t.filter((function(t){return!!t})).join(":")},t.prototype.clone=function(){return new t(this.options)},t}();t.exports=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isEmpty=function(t){return null==t||"object"==typeof t&&0===Object.keys(t).length||"string"==typeof t&&0===t.trim().length}},function(t,e,n){var r=n(10).f,o=n(16),i=n(6)("toStringTag");t.exports=function(t,e,n){t&&!o(t=n?t:t.prototype,i)&&r(t,i,{configurable:!0,value:e})}},function(t,e,n){var r=n(0),o=n(29),i=n(3),a=n(93),s="["+a+"]",u=RegExp("^"+s+s+"*"),c=RegExp(s+s+"*$"),l=function(t,e,n){var o={},s=i((function(){return!!a[t]()||"​…"!="​…"[t]()})),u=o[t]=s?e(f):a[t];n&&(o[n]=u),r(r.P+r.F*s,"String",o)},f=l.trim=function(t,e){return t=String(o(t)),1&e&&(t=t.replace(u,"")),2&e&&(t=t.replace(c,"")),t};t.exports=l},function(t,e){t.exports={}},function(t,e,n){"use strict";var r=n(2),o=n(10),i=n(9),a=n(6)("species");t.exports=function(t){var e=r[t];i&&e&&!e[a]&&o.f(e,a,{configurable:!0,get:function(){return this}})}},function(t,e){t.exports=function(t,e,n,r){if(!(t instanceof e)||void 0!==r&&r in t)throw TypeError(n+": incorrect invocation!");return t}},function(t,e,n){var r=n(14);t.exports=function(t,e,n){for(var o in e)r(t,o,e[o],n);return t}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.isNumberLike=function(t){return null!=t&&!isNaN(parseFloat(t))}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.PRELOAD=e.PLAYER_PARAMS=e.FLUID_CLASS_NAME=e.FLOATING_TO=e.DEFAULT_HLS_OPTIONS=e.CLOUDINARY_PARAMS=e.CLOUDINARY_CONFIG_PARAM=e.AUTO_PLAY_MODE=e.ADS_IN_PLAYLIST=void 0;var r,o=(r=n(1))&&r.__esModule?r:{default:r};var i=["cloudinaryConfig","transformation","sourceTypes","sourceTransformation","posterOptions","autoShowRecommendations","fontFace","secure"];e.CLOUDINARY_PARAMS=i;var a=i.concat(["publicId","source","autoplayMode","playedEventPercents","playedEventTimes","analytics","fluid","ima","playlistWidget","hideContextMenu","colors","floatingWhenNotVisible","ads","showJumpControls","textTracks","qualitySelector","fetchErrorUsingGet","withCredentials","seekThumbnails","queryParams"]);e.PLAYER_PARAMS=a;e.CLOUDINARY_CONFIG_PARAM=["cloud_name","secure","private_cdn","secure_distribution","cdn_subdomain","secure_cdn_subdomain","cname","shorten","sign_url","api_secret","url_suffix","use_root_path","auth_token"];var s={html5:{handlePartialData:!1,vhs:{overrideNative:!o.default||!o.default.browser||!o.default.browser.IS_IOS&&!o.default.browser.IS_SAFARI}}};e.DEFAULT_HLS_OPTIONS=s;e.FLUID_CLASS_NAME="cld-fluid";e.AUTO_PLAY_MODE={ALWAYS:"always",ON_SCROLL:"on-scroll",NEVER:"never"};e.FLOATING_TO={LEFT:"left",RIGHT:"right",NONE:"none"};e.ADS_IN_PLAYLIST={FIRST_VIDEO:"first-video",EVERY_VIDEO:"every-video"};e.PRELOAD={AUTO:"auto",METADATA:"metadata",NONE:"none"}},function(t,e,n){var r=n(28);t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==r(t)?t.split(""):Object(t)}},function(t,e){e.f={}.propertyIsEnumerable},function(t,e,n){var r=n(28),o=n(6)("toStringTag"),i="Arguments"==r(function(){return arguments}());t.exports=function(t){var e,n,a;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=function(t,e){try{return t[e]}catch(t){}}(e=Object(t),o))?n:i?r(e):"Object"==(a=r(e))&&"function"==typeof e.callee?"Arguments":a}},function(t,e,n){var r=n(4),o=n(22),i=n(6)("species");t.exports=function(t,e){var n,a=r(t).constructor;return void 0===a||null==(n=r(a)[i])?e:o(n)}},function(t,e,n){"use strict";function r(t){var e=t.getBoundingClientRect(),n=document.body,r=document.documentElement,o=window.pageYOffset||r.scrollTop||n.scrollTop,i=window.pageXOffset||r.scrollLeft||n.scrollLeft,a=r.clientTop||n.clientTop||0,s=r.clientLeft||n.clientLeft||0,u=e.top+o-a,c=e.left+i-s;return{top:Math.round(u),left:Math.round(c)}}Object.defineProperty(e,"__esModule",{value:!0}),e.getElementPosition=r,e.getPointerPosition=function(t,e){var n={},o=r(t),i=t.offsetWidth,a=t.offsetHeight,s=o.top,u=o.left,c=e.pageY,l=e.pageX;e.changedTouches&&(l=e.changedTouches[0].pageX,c=e.changedTouches[0].pageY);return n.y=Math.max(0,Math.min(1,(s-c+a)/a)),n.x=Math.max(0,Math.min(1,(l-u)/i)),n},e.isElementInViewport=function(t,e){var n=e.fraction,o=r(t),i=o.left,a=o.top,s=t.offsetHeight,u=t.offsetWidth,c=i+u,l=a+s,f=Math.max(0,Math.min(u,window.pageXOffset+window.innerWidth-i,c-window.pageXOffset)),h=Math.max(0,Math.min(u,window.pageYOffset+window.innerHeight-a,l-window.pageYOffset));return f*h/(u*s)>n},e.setPosition=function(t,e,n){t.style.left="".concat(e,"px"),t.style.top="".concat(n,"px")}},function(t,e,n){"use strict";var r=n(36),o=n(51),i=n(37),a=n(52),s=n(50),u=n(59),c=function(t){function e(e){var n=this;return n=t.call(this,e)||this,null!=e&&["resourceType","resourceType","fontFamily","fontSize","fontWeight","fontStyle","textDecoration","textAlign","stroke","letterSpacing","lineSpacing","fontHinting","fontAntialiasing","text"].forEach((function(t){var r;return n.options[t]=null!=(r=e[t])?r:e[i.snakeCase(t)]})),n.options.resourceType="text",n}return r.__extends(e,t),e.prototype.resourceType=function(t){throw"Cannot modify resourceType for text layers"},e.prototype.type=function(t){throw"Cannot modify type for text layers"},e.prototype.format=function(t){throw"Cannot modify format for text layers"},e.prototype.fontFamily=function(t){return this.options.fontFamily=t,this},e.prototype.fontSize=function(t){return this.options.fontSize=t,this},e.prototype.fontWeight=function(t){return this.options.fontWeight=t,this},e.prototype.fontStyle=function(t){return this.options.fontStyle=t,this},e.prototype.textDecoration=function(t){return this.options.textDecoration=t,this},e.prototype.textAlign=function(t){return this.options.textAlign=t,this},e.prototype.stroke=function(t){return this.options.stroke=t,this},e.prototype.letterSpacing=function(t){return this.options.letterSpacing=t,this},e.prototype.lineSpacing=function(t){return this.options.lineSpacing=t,this},e.prototype.fontHinting=function(t){return this.options.fontHinting=t,this},e.prototype.fontAntialiasing=function(t){return this.options.fontAntialiasing=t,this},e.prototype.text=function(t){return this.options.text=t,this},e.prototype.toString=function(){var t,e,n,r,o,i,u,c,l;if(u=this.textStyleIdentifier(),null!=this.options.publicId&&(n=this.getFullPublicId()),null!=this.options.text){if(t=!a.isEmpty(n),e=!a.isEmpty(u),t&&e||!t&&!e)throw"Must supply either style parameters or a public_id when providing text parameter in a text overlay/underlay, but not both!";for(r=/\$\([a-zA-Z]\w*\)/g,i=0,l=s.smartEscape(this.options.text,/[,\/]/g),c="";o=r.exec(l);)c+=s.smartEscape(l.slice(i,o.index)),c+=o[0],i=o.index+o[0].length;c+=s.smartEscape(l.slice(i))}return[this.options.resourceType,u,n,c].filter((function(t){return!!t})).join(":")},e.prototype.textStyleIdentifier=function(){var t;if(t=[],"normal"!==this.options.fontWeight&&t.push(this.options.fontWeight),"normal"!==this.options.fontStyle&&t.push(this.options.fontStyle),"none"!==this.options.textDecoration&&t.push(this.options.textDecoration),t.push(this.options.textAlign),"none"!==this.options.stroke&&t.push(this.options.stroke),a.isEmpty(this.options.letterSpacing)&&!u.isNumberLike(this.options.letterSpacing)||t.push("letter_spacing_"+this.options.letterSpacing),a.isEmpty(this.options.lineSpacing)&&!u.isNumberLike(this.options.lineSpacing)||t.push("line_spacing_"+this.options.lineSpacing),a.isEmpty(this.options.fontAntialiasing)||t.push("antialias_"+this.options.fontAntialiasing),a.isEmpty(this.options.fontHinting)||t.push("hinting_"+this.options.fontHinting),!a.isEmpty(t.filter((function(t){return!!t})))){if(a.isEmpty(this.options.fontFamily))throw"Must supply fontFamily. ".concat(t);if(a.isEmpty(this.options.fontSize)&&!u.isNumberLike(this.options.fontSize))throw"Must supply fontSize."}return t.unshift(this.options.fontFamily,this.options.fontSize),t=t.filter((function(t){return!!t})).join("_")},e}(o);t.exports=c},function(t,e,n){"use strict";var r=function(){function t(e){this.expressions=[],null!=e&&this.expressions.push(t.normalize(e))}return t.new=function(t){return new this(t)},t.normalize=function(t){var e,n,r;return null==t?t:(t=String(t),"\\|\\||>=|<=|&&|!=|>|=|<|/|-|\\+|\\*|\\^","((\\|\\||>=|<=|&&|!=|>|=|<|/|-|\\+|\\*|\\^)(?=[ _]))",e=new RegExp("((\\|\\||>=|<=|&&|!=|>|=|<|/|-|\\+|\\*|\\^)(?=[ _]))","g"),t=t.replace(e,(function(t){return o[t]})),n="("+Object.keys(i).join("|")+")",r=new RegExp(n,"g"),(t=t.replace(r,(function(e,n,r){return"$"===t[r-1]?e:i[e]}))).replace(/[ _]+/g,"_"))},t.prototype.serialize=function(){return t.normalize(this.expressions.join("_"))},t.prototype.toString=function(){return this.serialize()},t.prototype.getParent=function(){return this.parent},t.prototype.setParent=function(t){return this.parent=t,this},t.prototype.predicate=function(t,e,n){return null!=o[e]&&(e=o[e]),this.expressions.push("".concat(t,"_").concat(e,"_").concat(n)),this},t.prototype.and=function(){return this.expressions.push("and"),this},t.prototype.or=function(){return this.expressions.push("or"),this},t.prototype.then=function(){return this.getParent().if(this.toString())},t.prototype.height=function(t,e){return this.predicate("h",t,e)},t.prototype.width=function(t,e){return this.predicate("w",t,e)},t.prototype.aspectRatio=function(t,e){return this.predicate("ar",t,e)},t.prototype.pageCount=function(t,e){return this.predicate("pc",t,e)},t.prototype.faceCount=function(t,e){return this.predicate("fc",t,e)},t.prototype.value=function(t){return this.expressions.push(t),this},t.variable=function(t,e){return new this(t).value(e)},t.width=function(){return new this("width")},t.height=function(){return new this("height")},t.initialWidth=function(){return new this("initialWidth")},t.initialHeight=function(){return new this("initialHeight")},t.aspectRatio=function(){return new this("aspectRatio")},t.initialAspectRatio=function(){return new this("initialAspectRatio")},t.pageCount=function(){return new this("pageCount")},t.faceCount=function(){return new this("faceCount")},t.currentPage=function(){return new this("currentPage")},t.tags=function(){return new this("tags")},t.pageX=function(){return new this("pageX")},t.pageY=function(){return new this("pageY")},t}(),o={"=":"eq","!=":"ne","<":"lt",">":"gt","<=":"lte",">=":"gte","&&":"and","||":"or","*":"mul","/":"div","+":"add","-":"sub","^":"pow"},i={aspect_ratio:"ar",aspectRatio:"ar",current_page:"cp",currentPage:"cp","preview:duration":"preview:duration",duration:"du",face_count:"fc",faceCount:"fc",height:"h",initial_aspect_ratio:"iar",initial_duration:"idu",initial_height:"ih",initial_width:"iw",initialAspectRatio:"iar",initialDuration:"idu",initialHeight:"ih",initialWidth:"iw",page_count:"pc",page_x:"px",page_y:"py",pageCount:"pc",pageX:"px",pageY:"py",tags:"tags",width:"w"};t.exports=r},function(t,e,n){var r=n(8),o=n(2),i="__core-js_shared__",a=o[i]||(o[i]={});(t.exports=function(t,e){return a[t]||(a[t]=void 0!==e?e:{})})("versions",[]).push({version:r.version,mode:n(40)?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},function(t,e,n){var r=n(18),o=n(7),i=n(42);t.exports=function(t){return function(e,n,a){var s,u=r(e),c=o(u.length),l=i(a,c);if(t&&n!=n){for(;c>l;)if((s=u[l++])!=s)return!0}else for(;c>l;l++)if((t||l in u)&&u[l]===n)return t||l||0;return!t&&-1}}},function(t,e){e.f=Object.getOwnPropertySymbols},function(t,e,n){var r=n(28);t.exports=Array.isArray||function(t){return"Array"==r(t)}},function(t,e,n){var r=n(6)("iterator"),o=!1;try{var i=[7][r]();i.return=function(){o=!0},Array.from(i,(function(){throw 2}))}catch(t){}t.exports=function(t,e){if(!e&&!o)return!1;var n=!1;try{var i=[7],a=i[r]();a.next=function(){return{done:n=!0}},i[r]=function(){return a},t(i)}catch(t){}return n}},function(t,e,n){"use strict";var r=n(4);t.exports=function(){var t=r(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e}},function(t,e,n){"use strict";var r=n(63),o=RegExp.prototype.exec;t.exports=function(t,e){var n=t.exec;if("function"==typeof n){var i=n.call(t,e);if("object"!=typeof i)throw new TypeError("RegExp exec method returned something other than an Object or null");return i}if("RegExp"!==r(t))throw new TypeError("RegExp#exec called on incompatible receiver");return o.call(t,e)}},function(t,e,n){"use strict";n(153);var r=n(14),o=n(17),i=n(3),a=n(29),s=n(6),u=n(108),c=s("species"),l=!i((function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")})),f=function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var n="ab".split(t);return 2===n.length&&"a"===n[0]&&"b"===n[1]}();t.exports=function(t,e,n){var h=s(t),p=!i((function(){var e={};return e[h]=function(){return 7},7!=""[t](e)})),d=p?!i((function(){var e=!1,n=/a/;return n.exec=function(){return e=!0,null},"split"===t&&(n.constructor={},n.constructor[c]=function(){return n}),n[h](""),!e})):void 0;if(!p||!d||"replace"===t&&!l||"split"===t&&!f){var v=/./[h],y=n(a,h,""[t],(function(t,e,n,r,o){return e.exec===u?p&&!o?{done:!0,value:v.call(e,n,r)}:{done:!0,value:t.call(n,e,r)}:{done:!1}})),g=y[0],m=y[1];r(String.prototype,t,g),o(RegExp.prototype,h,2==e?function(t,e){return m.call(t,this,e)}:function(t){return m.call(t,this)})}}},function(t,e,n){var r=n(21),o=n(148),i=n(103),a=n(4),s=n(7),u=n(105),c={},l={};(e=t.exports=function(t,e,n,f,h){var p,d,v,y,g=h?function(){return t}:u(t),m=r(n,f,e?2:1),_=0;if("function"!=typeof g)throw TypeError(t+" is not iterable!");if(i(g)){for(p=s(t.length);p>_;_++)if((y=e?m(a(d=t[_])[0],d[1]):m(t[_]))===c||y===l)return y}else for(v=g.call(t);!(d=v.next()).done;)if((y=o(v,m,d.value,e))===c||y===l)return y}).BREAK=c,e.RETURN=l},function(t,e,n){var r=n(2).navigator;t.exports=r&&r.userAgent||""},function(t,e,n){"use strict";var r=n(2),o=n(0),i=n(14),a=n(58),s=n(34),u=n(76),c=n(57),l=n(5),f=n(3),h=n(72),p=n(53),d=n(94);t.exports=function(t,e,n,v,y,g){var m=r[t],_=m,b=y?"set":"add",w=_&&_.prototype,E={},T=function(t){var e=w[t];i(w,t,"delete"==t||"has"==t?function(t){return!(g&&!l(t))&&e.call(this,0===t?0:t)}:"get"==t?function(t){return g&&!l(t)?void 0:e.call(this,0===t?0:t)}:"add"==t?function(t){return e.call(this,0===t?0:t),this}:function(t,n){return e.call(this,0===t?0:t,n),this})};if("function"==typeof _&&(g||w.forEach&&!f((function(){(new _).entries().next()})))){var S=new _,O=S[b](g?{}:-0,1)!=S,C=f((function(){S.has(1)})),P=h((function(t){new _(t)})),k=!g&&f((function(){for(var t=new _,e=5;e--;)t[b](e,e);return!t.has(-0)}));P||((_=e((function(e,n){c(e,_,t);var r=d(new m,e,_);return null!=n&&u(n,y,r[b],r),r}))).prototype=w,w.constructor=_),(C||k)&&(T("delete"),T("has"),y&&T("get")),(k||O)&&T(b),g&&w.clear&&delete w.clear}else _=v.getConstructor(e,t,y,b),a(_.prototype,n),s.NEED=!0;return p(_,t),E[t]=_,o(o.G+o.W+o.F*(_!=m),E),g||v.setStrong(_,t,y),_}},function(t,e,n){for(var r,o=n(2),i=n(17),a=n(39),s=a("typed_array"),u=a("view"),c=!(!o.ArrayBuffer||!o.DataView),l=c,f=0,h="Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array".split(",");f<9;)(r=o[h[f++]])?(i(r.prototype,s,!0),i(r.prototype,u,!0)):l=!1;t.exports={ABV:c,CONSTR:l,TYPED:s,VIEW:u}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.camelize=function(t){return t.replace(/[_.-](\w|$)/g,(function(t,e){return e.toUpperCase()}))},e.startsWith=function(t,e,n){if(String.prototype.startsWith)return t.startsWith(e,n);var r=r||0;return t.indexOf(e,r)===r}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(32);e.legacyNormalizeExpression=function(t){if("string"!=typeof t||0===t.length||t.match(/^!.+!$/))return t?t.toString():t;t=String(t);var e=new RegExp("((\\|\\||>=|<=|&&|!=|>|=|<|/|-|\\+|\\*|\\^)(?=[ _]))","g");t=t.replace(e,(function(t){return r.LEGACY_CONDITIONAL_OPERATORS[t]}));var n="("+Object.keys(r.LEGACY_PREDEFINED_VARS).join("|")+")",o=new RegExp("".concat("(\\$_*[^_ ]+)","|").concat(n),"g");return(t=t.replace(o,(function(t){return r.LEGACY_PREDEFINED_VARS[t]||t}))).replace(/[ _]+/g,"_")}},function(t,e,n){"use strict";(function(t,n){Object.defineProperty(e,"__esModule",{value:!0});var r="__lodash_hash_undefined__",o=9007199254740991,i="[object Arguments]",a="[object Boolean]",s="[object Date]",u="[object Function]",c="[object GeneratorFunction]",l="[object Map]",f="[object Number]",h="[object Object]",p="[object Promise]",d="[object RegExp]",v="[object Set]",y="[object String]",g="[object Symbol]",m="[object WeakMap]",_="[object ArrayBuffer]",b="[object DataView]",w="[object Float32Array]",E="[object Float64Array]",T="[object Int8Array]",S="[object Int16Array]",O="[object Int32Array]",C="[object Uint8Array]",P="[object Uint8ClampedArray]",k="[object Uint16Array]",j="[object Uint32Array]",A=/\w*$/,x=/^\[object .+?Constructor\]$/,R=/^(?:0|[1-9]\d*)$/,L={};L[i]=L["[object Array]"]=L[_]=L[b]=L[a]=L[s]=L[w]=L[E]=L[T]=L[S]=L[O]=L[l]=L[f]=L[h]=L[d]=L[v]=L[y]=L[g]=L[C]=L[P]=L[k]=L[j]=!0,L["[object Error]"]=L[u]=L[m]=!1;var I="object"==typeof t&&t&&t.Object===Object&&t,N="object"==typeof self&&self&&self.Object===Object&&self,M=I||N||Function("return this")(),D=e&&!e.nodeType&&e,F=D&&"object"==typeof n&&n&&!n.nodeType&&n,B=F&&F.exports===D;function V(t,e){return t.set(e[0],e[1]),t}function U(t,e){return t.add(e),t}function H(t,e,n,r){var o=-1,i=t?t.length:0;for(r&&i&&(n=t[++o]);++o<i;)n=e(n,t[o],o,t);return n}function Y(t){var e=!1;if(null!=t&&"function"!=typeof t.toString)try{e=!!"".concat(t)}catch(t){}return e}function z(t){var e=-1,n=Array(t.size);return t.forEach((function(t,r){n[++e]=[r,t]})),n}function W(t,e){return function(n){return t(e(n))}}function G(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=t})),n}var K,X=Array.prototype,q=Function.prototype,$=Object.prototype,J=M["__core-js_shared__"],Q=(K=/[^.]+$/.exec(J&&J.keys&&J.keys.IE_PROTO||""))?"Symbol(src)_1.".concat(K):"",Z=q.toString,tt=$.hasOwnProperty,et=$.toString,nt=RegExp("^".concat(Z.call(tt).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?"),"$")),rt=B?M.Buffer:void 0,ot=M.Symbol,it=M.Uint8Array,at=W(Object.getPrototypeOf,Object),st=Object.create,ut=$.propertyIsEnumerable,ct=X.splice,lt=Object.getOwnPropertySymbols,ft=rt?rt.isBuffer:void 0,ht=W(Object.keys,Object),pt=Ft(M,"DataView"),dt=Ft(M,"Map"),vt=Ft(M,"Promise"),yt=Ft(M,"Set"),gt=Ft(M,"WeakMap"),mt=Ft(Object,"create"),_t=Yt(pt),bt=Yt(dt),wt=Yt(vt),Et=Yt(yt),Tt=Yt(gt),St=ot?ot.prototype:void 0,Ot=St?St.valueOf:void 0;function Ct(t){var e=-1,n=t?t.length:0;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function Pt(t){var e=-1,n=t?t.length:0;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function kt(t){var e=-1,n=t?t.length:0;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function jt(t){this.__data__=new Pt(t)}function At(t,e){var n=Wt(t)||function(t){return function(t){return function(t){return!!t&&"object"==typeof t}(t)&&Gt(t)}(t)&&tt.call(t,"callee")&&(!ut.call(t,"callee")||et.call(t)==i)}(t)?function(t,e){for(var n=-1,r=Array(t);++n<t;)r[n]=e(n);return r}(t.length,String):[],r=n.length,o=!!r;for(var a in t)!e&&!tt.call(t,a)||o&&("length"==a||Ut(a,r))||n.push(a);return n}function xt(t,e,n){var r=t[e];tt.call(t,e)&&zt(r,n)&&(void 0!==n||e in t)||(t[e]=n)}function Rt(t,e){for(var n=t.length;n--;)if(zt(t[n][0],e))return n;return-1}function Lt(t,e,n,r,o,p,m){var x;if(r&&(x=p?r(t,o,p,m):r(t)),void 0!==x)return x;if(!qt(t))return t;var R=Wt(t);if(R){if(x=function(t){var e=t.length,n=t.constructor(e);e&&"string"==typeof t[0]&&tt.call(t,"index")&&(n.index=t.index,n.input=t.input);return n}(t),!e)return function(t,e){var n=-1,r=t.length;e||(e=Array(r));for(;++n<r;)e[n]=t[n];return e}(t,x)}else{var I=Vt(t),N=I==u||I==c;if(Kt(t))return function(t,e){if(e)return t.slice();var n=new t.constructor(t.length);return t.copy(n),n}(t,e);if(I==h||I==i||N&&!p){if(Y(t))return p?t:{};if(x=function(t){return"function"!=typeof t.constructor||Ht(t)?{}:(e=at(t),qt(e)?st(e):{});var e}(N?{}:t),!e)return function(t,e){return Mt(t,Bt(t),e)}(t,function(t,e){return t&&Mt(e,$t(e),t)}(x,t))}else{if(!L[I])return p?t:{};x=function(t,e,n,r){var o=t.constructor;switch(e){case _:return Nt(t);case a:case s:return new o(+t);case b:return function(t,e){var n=e?Nt(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)}(t,r);case w:case E:case T:case S:case O:case C:case P:case k:case j:return function(t,e){var n=e?Nt(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)}(t,r);case l:return function(t,e,n){return H(e?n(z(t),!0):z(t),V,new t.constructor)}(t,r,n);case f:case y:return new o(t);case d:return function(t){var e=new t.constructor(t.source,A.exec(t));return e.lastIndex=t.lastIndex,e}(t);case v:return function(t,e,n){return H(e?n(G(t),!0):G(t),U,new t.constructor)}(t,r,n);case g:return i=t,Ot?Object(Ot.call(i)):{}}var i}(t,I,Lt,e)}}m||(m=new jt);var M=m.get(t);if(M)return M;if(m.set(t,x),!R)var D=n?function(t){return function(t,e,n){var r=e(t);return Wt(t)?r:function(t,e){for(var n=-1,r=e.length,o=t.length;++n<r;)t[o+n]=e[n];return t}(r,n(t))}(t,$t,Bt)}(t):$t(t);return function(t,e){for(var n=-1,r=t?t.length:0;++n<r&&!1!==e(t[n],n,t););}(D||t,(function(o,i){D&&(o=t[i=o]),xt(x,i,Lt(o,e,n,r,i,t,m))})),x}function It(t){return!(!qt(t)||(e=t,Q&&Q in e))&&(Xt(t)||Y(t)?nt:x).test(Yt(t));var e}function Nt(t){var e=new t.constructor(t.byteLength);return new it(e).set(new it(t)),e}function Mt(t,e,n,r){n||(n={});for(var o=-1,i=e.length;++o<i;){var a=e[o],s=r?r(n[a],t[a],a,n,t):void 0;xt(n,a,void 0===s?t[a]:s)}return n}function Dt(t,e){var n,r,o=t.__data__;return("string"==(r=typeof(n=e))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?o["string"==typeof e?"string":"hash"]:o.map}function Ft(t,e){var n=function(t,e){return null==t?void 0:t[e]}(t,e);return It(n)?n:void 0}Ct.prototype.clear=function(){this.__data__=mt?mt(null):{}},Ct.prototype.delete=function(t){return this.has(t)&&delete this.__data__[t]},Ct.prototype.get=function(t){var e=this.__data__;if(mt){var n=e[t];return n===r?void 0:n}return tt.call(e,t)?e[t]:void 0},Ct.prototype.has=function(t){var e=this.__data__;return mt?void 0!==e[t]:tt.call(e,t)},Ct.prototype.set=function(t,e){return this.__data__[t]=mt&&void 0===e?r:e,this},Pt.prototype.clear=function(){this.__data__=[]},Pt.prototype.delete=function(t){var e=this.__data__,n=Rt(e,t);return!(n<0)&&(n==e.length-1?e.pop():ct.call(e,n,1),!0)},Pt.prototype.get=function(t){var e=this.__data__,n=Rt(e,t);return n<0?void 0:e[n][1]},Pt.prototype.has=function(t){return Rt(this.__data__,t)>-1},Pt.prototype.set=function(t,e){var n=this.__data__,r=Rt(n,t);return r<0?n.push([t,e]):n[r][1]=e,this},kt.prototype.clear=function(){this.__data__={hash:new Ct,map:new(dt||Pt),string:new Ct}},kt.prototype.delete=function(t){return Dt(this,t).delete(t)},kt.prototype.get=function(t){return Dt(this,t).get(t)},kt.prototype.has=function(t){return Dt(this,t).has(t)},kt.prototype.set=function(t,e){return Dt(this,t).set(t,e),this},jt.prototype.clear=function(){this.__data__=new Pt},jt.prototype.delete=function(t){return this.__data__.delete(t)},jt.prototype.get=function(t){return this.__data__.get(t)},jt.prototype.has=function(t){return this.__data__.has(t)},jt.prototype.set=function(t,e){var n=this.__data__;if(n instanceof Pt){var r=n.__data__;if(!dt||r.length<199)return r.push([t,e]),this;n=this.__data__=new kt(r)}return n.set(t,e),this};var Bt=lt?W(lt,Object):function(){return[]},Vt=function(t){return et.call(t)};function Ut(t,e){return!!(e=null==e?o:e)&&("number"==typeof t||R.test(t))&&t>-1&&t%1==0&&t<e}function Ht(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||$)}function Yt(t){if(null!=t){try{return Z.call(t)}catch(t){}try{return"".concat(t)}catch(t){}}return""}function zt(t,e){return t===e||t!=t&&e!=e}(pt&&Vt(new pt(new ArrayBuffer(1)))!=b||dt&&Vt(new dt)!=l||vt&&Vt(vt.resolve())!=p||yt&&Vt(new yt)!=v||gt&&Vt(new gt)!=m)&&(Vt=function(t){var e=et.call(t),n=e==h?t.constructor:void 0,r=n?Yt(n):void 0;if(r)switch(r){case _t:return b;case bt:return l;case wt:return p;case Et:return v;case Tt:return m}return e});var Wt=Array.isArray;function Gt(t){return null!=t&&function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=o}(t.length)&&!Xt(t)}var Kt=ft||function(){return!1};function Xt(t){var e=qt(t)?et.call(t):"";return e==u||e==c}function qt(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}function $t(t){return Gt(t)?At(t):function(t){if(!Ht(t))return ht(t);var e=[];for(var n in Object(t))tt.call(t,n)&&"constructor"!=n&&e.push(n);return e}(t)}e.cloneDeep=function(t){return Lt(t,!0,!0)}}).call(this,n(35),n(393)(t))},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isString=function(t){return"string"==typeof t||t instanceof String},e.mapToSortedArray=function(t,e){var n=Array.from(t.entries());return e.forEach((function(t){n.push(["fl",t])})),n.sort().map((function(t){return t[1]}))}},function(t,e,n){"use strict";function r(t){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r(t)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o,i=(o=n(184))&&o.__esModule?o:{default:o},a=n(31),s=n(12);function u(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function c(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function l(t,e){return l=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},l(t,e)}function f(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=p(t);if(e){var o=p(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return h(this,n)}}function h(t,e){if(e&&("object"===r(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function p(t){return p=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},p(t)}var d=RegExp("\\.(".concat(["jpg","png","gif","webp"].join("|"),")$$")),v={resource_type:"image",type:"upload",transformation:[]},y=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&l(t,e)}(i,t);var e,n,r,o=f(i);function i(t){var e,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};c(this,i);var r=(0,a.normalizeOptions)(t,n);return t=r.publicId,n=r.options,t=t.replace(d,""),n=(0,s.assign)({},v,n),(e=o.call(this,t,n))._type="ImageSource",e}return e=i,n&&u(e.prototype,n),r&&u(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}(i.default),g=y;e.default=g},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.some=e.map=e.forEach=e.castArray=void 0;e.castArray=function(t){return Array.isArray(t)?t:[t]};e.forEach=function(t,e){Array.isArray(t)&&t.length&&t.forEach(e)};e.some=function(t,e){return!(!Array.isArray(t)||!t.length)&&t.some(e)};e.map=function(t,e){if(Array.isArray(t)&&t.length)return t.map(e)}},function(t,e,n){"use strict";function r(t){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r(t)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=v(n(184)),i=v(n(84)),a=n(31),s=n(20),u=n(12),c=n(131),l=v(n(1)),f=n(118),h=n(437),p=n(85),d=n(27);function v(t){return t&&t.__esModule?t:{default:t}}function y(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null==n)return;var r,o,i=[],a=!0,s=!1;try{for(n=n.call(t);!(a=(r=n.next()).done)&&(i.push(r.value),!e||i.length!==e);a=!0);}catch(t){s=!0,o=t}finally{try{a||null==n.return||n.return()}finally{if(s)throw o}}return i}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return g(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return g(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function g(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function m(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function _(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function b(t,e){return b=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},b(t,e)}function w(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=T(t);if(e){var o=T(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return E(this,n)}}function E(t,e){if(e&&("object"===r(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function T(t){return T=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},T(t)}var S=0,O=function(){return S++},C=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&b(t,e)}(v,t);var e,n,r,o=w(v);function v(t){var e,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};m(this,v);var r=(0,a.isRawUrl)(t),i=(0,a.normalizeOptions)(t,n),c=i.publicId,l=i.options;r||(c=c.replace(f.VIDEO_SUFFIX_REMOVAL_PATTERN,"")),(l=(0,u.assign)({},f.DEFAULT_VIDEO_PARAMS,l)).poster||(l.poster=(0,u.assign)({publicId:c},f.DEFAULT_POSTER_PARAMS));var h=(0,s.sliceAndUnsetProperties)(l,"poster","sourceTypes","sourceTransformation","info","recommendations","textTracks","withCredentials","interactionAreas"),p=h.poster,y=h.sourceTypes,g=h.sourceTransformation,_=h.info,b=h.recommendations,w=h.textTracks,E=h.withCredentials,T=h.interactionAreas;return(e=o.call(this,c,l))._sourceTypes=null,e._recommendations=null,e._textTracks=null,e._poster=null,e._info=null,e._sourceTransformation=null,e._interactionAreas=null,e._type=d.SOURCE_TYPE.VIDEO,e.isRawUrl=r,e._rawTransformation=l.raw_transformation,e.withCredentials=!!E,e.getInitOptions=function(){return n},e.poster(p),e.sourceTypes(y),e.sourceTransformation(g),e.info(_),e.interactionAreas(T),e.recommendations(b),e.textTracks(w),e.objectId=O(),e}return e=v,n=[{key:"textTracks",value:function(t){return void 0===t?this._textTracks:(this._textTracks=t,this)}},{key:"recommendations",value:function(t){return void 0===t?this._recommendations:(this._recommendations=t,this)}},{key:"sourceTypes",value:function(t){return t?(this._sourceTypes=t,this):this._sourceTypes}},{key:"info",value:function(t){return t?(this._info=t,this):this._info}},{key:"interactionAreas",value:function(t){return t?(this._interactionAreas=t,this):this._interactionAreas}},{key:"sourceTransformation",value:function(t){return t?(this._sourceTransformation=t,this):this._sourceTransformation}},{key:"poster",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!t)return this._poster;if(t instanceof i.default)return this._poster=t,this;var n=(0,a.normalizeOptions)(t,e,{tolerateMissingId:!0});return t=n.publicId,e=n.options,t||(t=this.publicId(),e=(0,u.assign)({},e,f.DEFAULT_POSTER_PARAMS)),e.cloudinaryConfig=e.cloudinaryConfig||this.cloudinaryConfig(),this._poster=new i.default(t,e),this}},{key:"contains",value:function(t){return this.generateSources().some((function(e){return(0,a.isSrcEqual)(e,t)}))}},{key:"generateSources",value:function(){var t=this;if(this.isRawUrl){var e=this.sourceTypes().length>1?null:this.sourceTypes()[0];return[this.generateRawSource(this.publicId(),e)]}var n=this.sourceTypes().map((function(e){var n=t.sourceTransformation()[e]||t.transformation(),r=(0,h.normalizeFormat)(e),o=-1!==["mpd","m3u8"].indexOf(r),i={};n&&(i.transformation=(0,p.castArray)(n)),(0,u.assign)(i,{resource_type:"video",format:r});var s=y((0,h.formatToMimeTypeAndTransformation)(e),2),l=s[0],f=s[1];f&&!(0,h.isCodecAlreadyExist)(i.transformation,t._rawTransformation)&&(i.transformation=(0,a.mergeTransformations)(i.transformation,f)),"auto"===i.format&&delete i.format;var d=t.queryParams()?(0,c.objectToQuerystring)(t.queryParams()):"",v=t.config().url(t.publicId(),i),g=v.indexOf("?")>-1?d.replace("?","&"):d;return{type:l,src:v+g,cldSrc:t,isAdaptive:o,withCredentials:t.withCredentials}}));return"undefined"!=typeof navigator&&(/MSIE/.test(navigator.userAgent)||/Trident\//.test(navigator.appVersion))?n.filter((function(t){return'video/mp4; codec="hev1.1.6.L93.B0"'!==t.type})):l.default.browser.IS_ANY_SAFARI?n.filter((function(t){return-1===t.type.indexOf("application/dash+xml")})):n}},{key:"generateRawSource",value:function(t,e){var n=e||t.split(".").pop(),r=!!f.CONTAINER_MIME_TYPES[n];return{type:e=r?f.CONTAINER_MIME_TYPES[n][0]:e?"video/".concat(e):null,src:t,cldSrc:this,isAdaptive:r,withCredentials:this.withCredentials}}},{key:"getInteractionAreas",value:function(){return this._interactionAreas}}],n&&_(e.prototype,n),r&&_(e,r),Object.defineProperty(e,"prototype",{writable:!1}),v}(o.default),P=C;e.default=P},function(t,e,n){var r=n(5),o=n(2).document,i=r(o)&&r(o.createElement);t.exports=function(t){return i?o.createElement(t):{}}},function(t,e,n){e.f=n(6)},function(t,e,n){var r=n(68)("keys"),o=n(39);t.exports=function(t){return r[t]||(r[t]=o(t))}},function(t,e){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(t,e,n){var r=n(2).document;t.exports=r&&r.documentElement},function(t,e,n){var r=n(5),o=n(4),i=function(t,e){if(o(t),!r(e)&&null!==e)throw TypeError(e+": can't set as prototype!")};t.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(t,e,r){try{(r=n(21)(Function.call,n(24).f(Object.prototype,"__proto__").set,2))(t,[]),e=!(t instanceof Array)}catch(t){e=!0}return function(t,n){return i(t,n),e?t.__proto__=n:r(t,n),t}}({},!1):void 0),check:i}},function(t,e){t.exports="\t\n\v\f\r   ᠎              \u2028\u2029\ufeff"},function(t,e,n){var r=n(5),o=n(92).set;t.exports=function(t,e,n){var i,a=e.constructor;return a!==n&&"function"==typeof a&&(i=a.prototype)!==n.prototype&&r(i)&&o&&o(t,i),t}},function(t,e,n){"use strict";var r=n(23),o=n(29);t.exports=function(t){var e=String(o(this)),n="",i=r(t);if(i<0||i==1/0)throw RangeError("Count can't be negative");for(;i>0;(i>>>=1)&&(e+=e))1&i&&(n+=e);return n}},function(t,e){t.exports=Math.sign||function(t){return 0==(t=+t)||t!=t?t:t<0?-1:1}},function(t,e){var n=Math.expm1;t.exports=!n||n(10)>22025.465794806718||n(10)<22025.465794806718||-2e-17!=n(-2e-17)?function(t){return 0==(t=+t)?t:t>-1e-6&&t<1e-6?t+t*t/2:Math.exp(t)-1}:n},function(t,e,n){var r=n(23),o=n(29);t.exports=function(t){return function(e,n){var i,a,s=String(o(e)),u=r(n),c=s.length;return u<0||u>=c?t?"":void 0:(i=s.charCodeAt(u))<55296||i>56319||u+1===c||(a=s.charCodeAt(u+1))<56320||a>57343?t?s.charAt(u):i:t?s.slice(u,u+2):a-56320+(i-55296<<10)+65536}}},function(t,e,n){"use strict";var r=n(40),o=n(0),i=n(14),a=n(17),s=n(55),u=n(147),c=n(53),l=n(45),f=n(6)("iterator"),h=!([].keys&&"next"in[].keys()),p="keys",d="values",v=function(){return this};t.exports=function(t,e,n,y,g,m,_){u(n,e,y);var b,w,E,T=function(t){if(!h&&t in P)return P[t];switch(t){case p:case d:return function(){return new n(this,t)}}return function(){return new n(this,t)}},S=e+" Iterator",O=g==d,C=!1,P=t.prototype,k=P[f]||P["@@iterator"]||g&&P[g],j=k||T(g),A=g?O?T("entries"):j:void 0,x="Array"==e&&P.entries||k;if(x&&(E=l(x.call(new t)))!==Object.prototype&&E.next&&(c(E,S,!0),r||"function"==typeof E[f]||a(E,f,v)),O&&k&&k.name!==d&&(C=!0,j=function(){return k.call(this)}),r&&!_||!h&&!C&&P[f]||a(P,f,j),s[e]=j,s[S]=v,g)if(b={values:O?j:T(d),keys:m?j:T(p),entries:A},_)for(w in b)w in P||i(P,w,b[w]);else o(o.P+o.F*(h||C),e,b);return b}},function(t,e,n){var r=n(101),o=n(29);t.exports=function(t,e,n){if(r(e))throw TypeError("String#"+n+" doesn't accept regex!");return String(o(t))}},function(t,e,n){var r=n(5),o=n(28),i=n(6)("match");t.exports=function(t){var e;return r(t)&&(void 0!==(e=t[i])?!!e:"RegExp"==o(t))}},function(t,e,n){var r=n(6)("match");t.exports=function(t){var e=/./;try{"/./"[t](e)}catch(n){try{return e[r]=!1,!"/./"[t](e)}catch(t){}}return!0}},function(t,e,n){var r=n(55),o=n(6)("iterator"),i=Array.prototype;t.exports=function(t){return void 0!==t&&(r.Array===t||i[o]===t)}},function(t,e,n){"use strict";var r=n(10),o=n(38);t.exports=function(t,e,n){e in t?r.f(t,e,o(0,n)):t[e]=n}},function(t,e,n){var r=n(63),o=n(6)("iterator"),i=n(55);t.exports=n(8).getIteratorMethod=function(t){if(null!=t)return t[o]||t["@@iterator"]||i[r(t)]}},function(t,e,n){"use strict";var r=n(11),o=n(42),i=n(7);t.exports=function(t){for(var e=r(this),n=i(e.length),a=arguments.length,s=o(a>1?arguments[1]:void 0,n),u=a>2?arguments[2]:void 0,c=void 0===u?n:o(u,n);c>s;)e[s++]=t;return e}},function(t,e,n){"use strict";var r=n(46),o=n(152),i=n(55),a=n(18);t.exports=n(99)(Array,"Array",(function(t,e){this._t=a(t),this._i=0,this._k=e}),(function(){var t=this._t,e=this._k,n=this._i++;return!t||n>=t.length?(this._t=void 0,o(1)):o(0,"keys"==e?n:"values"==e?t[n]:[n,t[n]])}),"values"),i.Arguments=i.Array,r("keys"),r("values"),r("entries")},function(t,e,n){"use strict";var r,o,i=n(73),a=RegExp.prototype.exec,s=String.prototype.replace,u=a,c=(r=/a/,o=/b*/g,a.call(r,"a"),a.call(o,"a"),0!==r.lastIndex||0!==o.lastIndex),l=void 0!==/()??/.exec("")[1];(c||l)&&(u=function(t){var e,n,r,o,u=this;return l&&(n=new RegExp("^"+u.source+"$(?!\\s)",i.call(u))),c&&(e=u.lastIndex),r=a.call(u,t),c&&r&&(u.lastIndex=u.global?r.index+r[0].length:e),l&&r&&r.length>1&&s.call(r[0],n,(function(){for(o=1;o<arguments.length-2;o++)void 0===arguments[o]&&(r[o]=void 0)})),r}),t.exports=u},function(t,e,n){"use strict";var r=n(98)(!0);t.exports=function(t,e,n){return e+(n?r(t,e).length:1)}},function(t,e,n){var r,o,i,a=n(21),s=n(141),u=n(91),c=n(87),l=n(2),f=l.process,h=l.setImmediate,p=l.clearImmediate,d=l.MessageChannel,v=l.Dispatch,y=0,g={},m="onreadystatechange",_=function(){var t=+this;if(g.hasOwnProperty(t)){var e=g[t];delete g[t],e()}},b=function(t){_.call(t.data)};h&&p||(h=function(t){for(var e=[],n=1;arguments.length>n;)e.push(arguments[n++]);return g[++y]=function(){s("function"==typeof t?t:Function(t),e)},r(y),y},p=function(t){delete g[t]},"process"==n(28)(f)?r=function(t){f.nextTick(a(_,t,1))}:v&&v.now?r=function(t){v.now(a(_,t,1))}:d?(i=(o=new d).port2,o.port1.onmessage=b,r=a(i.postMessage,i,1)):l.addEventListener&&"function"==typeof postMessage&&!l.importScripts?(r=function(t){l.postMessage(t+"","*")},l.addEventListener("message",b,!1)):r=m in c("script")?function(t){u.appendChild(c("script")).onreadystatechange=function(){u.removeChild(this),_.call(t)}}:function(t){setTimeout(a(_,t,1),0)}),t.exports={set:h,clear:p}},function(t,e,n){"use strict";var r=n(2),o=n(9),i=n(40),a=n(79),s=n(17),u=n(58),c=n(3),l=n(57),f=n(23),h=n(7),p=n(160),d=n(44).f,v=n(10).f,y=n(106),g=n(53),m="ArrayBuffer",_="DataView",b="Wrong index!",w=r.ArrayBuffer,E=r.DataView,T=r.Math,S=r.RangeError,O=r.Infinity,C=w,P=T.abs,k=T.pow,j=T.floor,A=T.log,x=T.LN2,R="buffer",L="byteLength",I="byteOffset",N=o?"_b":R,M=o?"_l":L,D=o?"_o":I;function F(t,e,n){var r,o,i,a=new Array(n),s=8*n-e-1,u=(1<<s)-1,c=u>>1,l=23===e?k(2,-24)-k(2,-77):0,f=0,h=t<0||0===t&&1/t<0?1:0;for((t=P(t))!=t||t===O?(o=t!=t?1:0,r=u):(r=j(A(t)/x),t*(i=k(2,-r))<1&&(r--,i*=2),(t+=r+c>=1?l/i:l*k(2,1-c))*i>=2&&(r++,i/=2),r+c>=u?(o=0,r=u):r+c>=1?(o=(t*i-1)*k(2,e),r+=c):(o=t*k(2,c-1)*k(2,e),r=0));e>=8;a[f++]=255&o,o/=256,e-=8);for(r=r<<e|o,s+=e;s>0;a[f++]=255&r,r/=256,s-=8);return a[--f]|=128*h,a}function B(t,e,n){var r,o=8*n-e-1,i=(1<<o)-1,a=i>>1,s=o-7,u=n-1,c=t[u--],l=127&c;for(c>>=7;s>0;l=256*l+t[u],u--,s-=8);for(r=l&(1<<-s)-1,l>>=-s,s+=e;s>0;r=256*r+t[u],u--,s-=8);if(0===l)l=1-a;else{if(l===i)return r?NaN:c?-O:O;r+=k(2,e),l-=a}return(c?-1:1)*r*k(2,l-e)}function V(t){return t[3]<<24|t[2]<<16|t[1]<<8|t[0]}function U(t){return[255&t]}function H(t){return[255&t,t>>8&255]}function Y(t){return[255&t,t>>8&255,t>>16&255,t>>24&255]}function z(t){return F(t,52,8)}function W(t){return F(t,23,4)}function G(t,e,n){v(t.prototype,e,{get:function(){return this[n]}})}function K(t,e,n,r){var o=p(+n);if(o+e>t[M])throw S(b);var i=t[N]._b,a=o+t[D],s=i.slice(a,a+e);return r?s:s.reverse()}function X(t,e,n,r,o,i){var a=p(+n);if(a+e>t[M])throw S(b);for(var s=t[N]._b,u=a+t[D],c=r(+o),l=0;l<e;l++)s[u+l]=c[i?l:e-l-1]}if(a.ABV){if(!c((function(){w(1)}))||!c((function(){new w(-1)}))||c((function(){return new w,new w(1.5),new w(NaN),w.name!=m}))){for(var q,$=(w=function(t){return l(this,w),new C(p(t))}).prototype=C.prototype,J=d(C),Q=0;J.length>Q;)(q=J[Q++])in w||s(w,q,C[q]);i||($.constructor=w)}var Z=new E(new w(2)),tt=E.prototype.setInt8;Z.setInt8(0,2147483648),Z.setInt8(1,2147483649),!Z.getInt8(0)&&Z.getInt8(1)||u(E.prototype,{setInt8:function(t,e){tt.call(this,t,e<<24>>24)},setUint8:function(t,e){tt.call(this,t,e<<24>>24)}},!0)}else w=function(t){l(this,w,m);var e=p(t);this._b=y.call(new Array(e),0),this[M]=e},E=function(t,e,n){l(this,E,_),l(t,w,_);var r=t[M],o=f(e);if(o<0||o>r)throw S("Wrong offset!");if(o+(n=void 0===n?r-o:h(n))>r)throw S("Wrong length!");this[N]=t,this[D]=o,this[M]=n},o&&(G(w,L,"_l"),G(E,R,"_b"),G(E,L,"_l"),G(E,I,"_o")),u(E.prototype,{getInt8:function(t){return K(this,1,t)[0]<<24>>24},getUint8:function(t){return K(this,1,t)[0]},getInt16:function(t){var e=K(this,2,t,arguments[1]);return(e[1]<<8|e[0])<<16>>16},getUint16:function(t){var e=K(this,2,t,arguments[1]);return e[1]<<8|e[0]},getInt32:function(t){return V(K(this,4,t,arguments[1]))},getUint32:function(t){return V(K(this,4,t,arguments[1]))>>>0},getFloat32:function(t){return B(K(this,4,t,arguments[1]),23,4)},getFloat64:function(t){return B(K(this,8,t,arguments[1]),52,8)},setInt8:function(t,e){X(this,1,t,U,e)},setUint8:function(t,e){X(this,1,t,U,e)},setInt16:function(t,e){X(this,2,t,H,e,arguments[2])},setUint16:function(t,e){X(this,2,t,H,e,arguments[2])},setInt32:function(t,e){X(this,4,t,Y,e,arguments[2])},setUint32:function(t,e){X(this,4,t,Y,e,arguments[2])},setFloat32:function(t,e){X(this,4,t,W,e,arguments[2])},setFloat64:function(t,e){X(this,8,t,z,e,arguments[2])}});g(w,m),g(E,_),s(E.prototype,a.VIEW,!0),e.ArrayBuffer=w,e.DataView=E},function(t,e){var n=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,e,n){t.exports=!n(165)((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.overrideDefaultVideojsComponents=e.normalizeAutoplay=e.isLight=e.getResolveVideoElement=e.extractOptions=e.addMetadataTrack=void 0;var r=c(n(1)),o=c(n(166)),i=c(n(130)),a=n(60),s=n(13),u=c(n(403));function c(t){return t&&t.__esModule?t:{default:t}}function l(t){return function(t){if(Array.isArray(t))return f(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return f(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return f(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function f(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}e.addMetadataTrack=function(t,e){return t.addRemoteTextTrack({kind:"metadata",srclang:"en",src:e,default:!0},!0).track};e.isLight=function(t){return t.class.indexOf("cld-video-player-skin-light")>-1||"light"===t.skin};e.getResolveVideoElement=function(t){if((0,s.isString)(t)){var e=t;0===e.indexOf("#")&&(e=e.slice(1));try{t=document.querySelector("#".concat((0,u.default)(e)))||r.default.getPlayer(e)}catch(e){t=null}if(!t)throw new Error("Could not find element with id ".concat(e))}if(!t.tagName)throw new Error("Must specify either an element or an element id.");if("VIDEO"!==t.tagName)throw new Error("Element is not a video tag.");return t};var h=function(t){var e=t.autoplayMode;if(e)switch(e){case a.AUTO_PLAY_MODE.ALWAYS:t.autoplay=!0;break;case a.AUTO_PLAY_MODE.ON_SCROLL:case a.AUTO_PLAY_MODE.NEVER:default:t.autoplay=!1}};e.normalizeAutoplay=h;e.extractOptions=function(t,e){var n=o.default.normalizeAttributes(t);(r.default.dom.hasClass(t,a.FLUID_CLASS_NAME)||r.default.dom.hasClass(t,"vjs-fluid"))&&(e.fluid=!0),e=o.default.assign({},a.DEFAULT_HLS_OPTIONS,i.default,n,e),h(e);var s=o.default.sliceAndUnsetProperties.apply(o.default,[e].concat(l(a.PLAYER_PARAMS)));return s.cloudinary=o.default.sliceAndUnsetProperties.apply(o.default,[s].concat(l(a.CLOUDINARY_PARAMS))),e.videojs&&(o.default.assign(e,e.videojs),delete e.videojs),{playerOptions:s,videojsOptions:e}};e.overrideDefaultVideojsComponents=function(){var t=r.default.getComponent("Player").prototype.options_.children;t.push("titleBar"),t.push("upcomingVideoOverlay"),t.push("recommendationsOverlay");var e=r.default.getComponent("ControlBar");e&&((t=e.prototype.options_.children).splice(t.indexOf("progressControl"),0,"spacer","progressControlEventsBlocker"),t.splice(t.indexOf("playToggle"),1,"playlistPreviousButton","JumpBackButton","playToggle","JumpForwardButton","playlistNextButton"),t.splice(t.indexOf("fullscreenToggle"),1,"logoButton","fullscreenToggle"))}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isKeyInTransformation=e.handleCldError=e.filterAndAddTextTracks=void 0;var r=s(n(117)),o=s(n(168)),i=n(31),a=n(128);function s(t){return t&&t.__esModule?t:{default:t}}var u=(0,o.default)({Promise:r.default}).fetch,c={method:"head"},l={method:"get",credentials:"include",headers:{"Content-Range":"bytes=0-0"}};function f(t){for(var e={strictMode:!1,key:["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"],q:{name:"queryKey",parser:/(?:^|&)([^&=]*)=?([^&]*)/g},parser:{strict:/^(?:([^:\/?#]+):)?(?:\/\/((?:(([^:@]*)(?::([^:@]*))?)?@)?([^:\/?#]*)(?::(\d*))?))?((((?:[^?#\/]*\/)*)([^?#]*))(?:\?([^#]*))?(?:#(.*))?)/,loose:/^(?:(?![^:@]+:[^:@\/]*@)([^:\/?#.]+):)?(?:\/\/)?((?:(([^:@]*)(?::([^:@]*))?)?@)?([^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/}},n=e.parser[e.strictMode?"strict":"loose"].exec(t),r={},o=14;o--;)r[e.key[o]]=n[o]||"";return r[e.q.name]={},r[e.key[12]].replace(e.q.parser,(function(t,n,o){n&&(r[e.q.name][n]=o)})),r}e.handleCldError=function(t,e){var n=e.fetchErrorUsingGet?l:c,o=t.videojs.cloudinary.getCurrentSources();o.length>0?r.default.all(o.map((function(t){return u(t.src,n)}))).then((function(e){var n=function(t){return t.reduce((function(t,e){if(e.status>=200&&e.status<399&&""!==e.url){var n=f(e.url);t.push(n.host+n.path)}return t}),[])}(e),r=e[0];if(n.length){var a=function(t,e){return t.filter((function(t){var n=f(t.src);return-1!==e.indexOf(n.host+n.path)&&!0!==t.try}))}(o,n);a&&a.length?function(t,e){JSON.stringify(e),e.forEach((function(t){t.try=!0})),t.videojs.autoplay(t.videojs.autoplay()||t.playWasCalled),t.videojs.src(e)}(t,a):t.videojs.error({code:i.ERROR_CODE.NO_SUPPORTED_MEDIA,message:"No supported media sources",statusCode:e.status})}else!function(t,e){t.videojs.error((0,i.cloudinaryErrorsConverter)({errorMsg:e.headers.get("x-cld-error")||"",publicId:t.currentPublicId(),cloudName:t.cloudinaryConfig().cloud_name,error:e,statusCode:e.status}))}(t,r)})).catch((function(e){t.videojs.error({code:7,message:e&&e.message?e.message:"Failed to test sources"})})):t.videojs.error({code:i.ERROR_CODE.NO_SUPPORTED_MEDIA,message:"No supported media sources"})};e.isKeyInTransformation=function t(e,n){return!(!e||!n)&&(Array.isArray(e)?!!(0,a.find)(e,(function(e){return t(e,n)})):e.getValue?!!e.getValue(n):!!e[n])};e.filterAndAddTextTracks=function(t,e){t.forEach((function(t){u(t.src,c).then((function(n){n.status>=200&&n.status<=399&&e.addRemoteTextTrack(t,!0)}))}))}},function(t,e,n){"use strict";n.r(e),function(t){var r=n(191),o=n(192),i=setTimeout,a=void 0!==t?t:null;function s(t){return Boolean(t&&void 0!==t.length)}function u(){}function c(t){if(!(this instanceof c))throw new TypeError("Promises must be constructed via new");if("function"!=typeof t)throw new TypeError("not a function");this._state=0,this._handled=!1,this._value=void 0,this._deferreds=[],v(t,this)}function l(t,e){for(;3===t._state;)t=t._value;0!==t._state?(t._handled=!0,c._immediateFn((function(){var n=1===t._state?e.onFulfilled:e.onRejected;if(null!==n){var r;try{r=n(t._value)}catch(t){return void h(e.promise,t)}f(e.promise,r)}else(1===t._state?f:h)(e.promise,t._value)}))):t._deferreds.push(e)}function f(t,e){try{if(e===t)throw new TypeError("A promise cannot be resolved with itself.");if(e&&("object"==typeof e||"function"==typeof e)){var n=e.then;if(e instanceof c)return t._state=3,t._value=e,void p(t);if("function"==typeof n)return void v((r=n,o=e,function(){r.apply(o,arguments)}),t)}t._state=1,t._value=e,p(t)}catch(e){h(t,e)}var r,o}function h(t,e){t._state=2,t._value=e,p(t)}function p(t){2===t._state&&0===t._deferreds.length&&c._immediateFn((function(){t._handled||c._unhandledRejectionFn(t._value)}));for(var e=0,n=t._deferreds.length;e<n;e++)l(t,t._deferreds[e]);t._deferreds=null}function d(t,e,n){this.onFulfilled="function"==typeof t?t:null,this.onRejected="function"==typeof e?e:null,this.promise=n}function v(t,e){var n=!1;try{t((function(t){n||(n=!0,f(e,t))}),(function(t){n||(n=!0,h(e,t))}))}catch(t){if(n)return;n=!0,h(e,t)}}c.prototype.catch=function(t){return this.then(null,t)},c.prototype.then=function(t,e){var n=new this.constructor(u);return l(this,new d(t,e,n)),n},c.prototype.finally=r.a,c.all=function(t){return new c((function(e,n){if(!s(t))return n(new TypeError("Promise.all accepts an array"));var r=Array.prototype.slice.call(t);if(0===r.length)return e([]);var o=r.length;function i(t,a){try{if(a&&("object"==typeof a||"function"==typeof a)){var s=a.then;if("function"==typeof s)return void s.call(a,(function(e){i(t,e)}),n)}r[t]=a,0==--o&&e(r)}catch(t){n(t)}}for(var a=0;a<r.length;a++)i(a,r[a])}))},c.allSettled=o.a,c.resolve=function(t){return t&&"object"==typeof t&&t.constructor===c?t:new c((function(e){e(t)}))},c.reject=function(t){return new c((function(e,n){n(t)}))},c.race=function(t){return new c((function(e,n){if(!s(t))return n(new TypeError("Promise.race accepts an array"));for(var r=0,o=t.length;r<o;r++)c.resolve(t[r]).then(e,n)}))},c._immediateFn="function"==typeof a&&function(t){a(t)}||function(t){i(t,0)},c._unhandledRejectionFn=function(t){"undefined"!=typeof console&&console},e.default=c}.call(this,n(389).setImmediate)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.VIDEO_SUFFIX_REMOVAL_PATTERN=e.URL_PATTERN=e.FORMAT_MAPPINGS=e.DEFAULT_VIDEO_PARAMS=e.DEFAULT_POSTER_PARAMS=e.CONTAINER_MIME_TYPES=void 0;e.DEFAULT_POSTER_PARAMS={format:"jpg",resource_type:"video"};var r=["webm/vp9","mp4/h265","mp4"],o={resource_type:"video",type:"upload",transformation:[],sourceTransformation:{},sourceTypes:r,recommendations:null,info:{},interactionAreas:{}};e.DEFAULT_VIDEO_PARAMS=o;var i=RegExp("\\.(".concat(r.join("|"),")$$"));e.VIDEO_SUFFIX_REMOVAL_PATTERN=i;var a=RegExp("https?:\\/\\/(www\\.)?[-a-zA-Z0-9@:%._+~#=]{1,256}\\.[a-zA-Z0-9()]{1,6}\\b([-a-zA-Z0-9()@:%_+.~#?&/=]*)");e.URL_PATTERN=a;e.CONTAINER_MIME_TYPES={dash:["application/dash+xml"],hls:["application/x-mpegURL"],mpd:["application/dash+xml"],m3u8:["application/x-mpegURL"]};e.FORMAT_MAPPINGS={hls:"m3u8",dash:"mpd"}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(49),o=n(48);e.processCustomFunction=function(t){if(!o.isObject(t))return t;if("remote"===t.function_type){var e=r.base64Encode(t.source).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"");return[t.function_type,e].join(":")}return[t.function_type,t.source].join(":")}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(36),o=n(121),i=n(122),a=n(82),s=n(123),u=n(37),c=n(67),l=n(51),f=n(66),h=n(124),p=n(125),d=n(48),v=n(83),y=n(52),g=n(126);n(50),n(59),n(49);var m=["accessibility","api_secret","auth_token","cdn_subdomain","cloud_name","cname","format","placeholder","private_cdn","resource_type","secure","secure_cdn_subdomain","secure_distribution","shorten","sign_url","signature","ssl_detected","type","url_suffix","use_root_path","version"];function _(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return e.forEach((function(e){Object.keys(e).forEach((function(n){null!=e[n]&&(t[n]=e[n])}))})),t}var b=function(){function t(t,e,n){void 0===n&&(n=s.identity),this.name=t,this.shortName=e,this.process=n}return t.prototype.set=function(t){return this.origValue=t,this},t.prototype.serialize=function(){var t,e;return t=this.value(),e=Array.isArray(t)||d.isObject(t)||v.isString(t)?!y.isEmpty(t):null!=t,null!=this.shortName&&e?"".concat(this.shortName,"_").concat(t):""},t.prototype.value=function(){return this.process(this.origValue)},t.norm_color=function(t){return null!=t?t.replace(/^#/,"rgb:"):void 0},t.build_array=function(t){return null==t?[]:Array.isArray(t)?t:[t]},t.process_video_params=function(t){var e;switch(t.constructor){case Object:return e="","codec"in t&&(e=t.codec,"profile"in t&&(e+=":"+t.profile,"level"in t&&(e+=":"+t.level))),e;case String:return t;default:return null}},t}(),w=function(t){function e(e,n,r,o){void 0===r&&(r="."),void 0===o&&(o=void 0);var i=t.call(this,e,n,o)||this;return i.sep=r,i}return r.__extends(e,t),e.prototype.serialize=function(){if(null!=this.shortName){var t=this.value();if(y.isEmpty(t))return"";if(v.isString(t))return"".concat(this.shortName,"_").concat(t);var e=t.map((function(t){return g.isFunction(t.serialize)?t.serialize():t})).join(this.sep);return"".concat(this.shortName,"_").concat(e)}return""},e.prototype.value=function(){var t=this;return Array.isArray(this.origValue)?this.origValue.map((function(e){return t.process(e)})):this.process(this.origValue)},e.prototype.set=function(e){return null==e||Array.isArray(e)?t.prototype.set.call(this,e):t.prototype.set.call(this,[e])},e}(b),E=function(t){function e(e,n,r,o){void 0===n&&(n="t"),void 0===r&&(r="."),void 0===o&&(o=void 0);var i=t.call(this,e,n,o)||this;return i.sep=r,i}return r.__extends(e,t),e.prototype.serialize=function(){var t,e=this,n="",r=this.value();if(y.isEmpty(r))return n;if((t=r).length&&t.every(v.isString)){var o=r.join(this.sep);y.isEmpty(o)||(n="".concat(this.shortName,"_").concat(o))}else n=r.map((function(t){return v.isString(t)&&!y.isEmpty(t)?"".concat(e.shortName,"_").concat(t):g.isFunction(t.serialize)?t.serialize():d.isObject(t)&&!y.isEmpty(t)?new R(t).serialize():void 0})).filter((function(t){return t}));return n},e.prototype.set=function(e){return this.origValue=e,Array.isArray(this.origValue)?t.prototype.set.call(this,this.origValue):t.prototype.set.call(this,[this.origValue])},e}(b),T=function(t){function e(n,r,o){return void 0===o&&(o=e.norm_range_value),t.call(this,n,r,o)||this}return r.__extends(e,t),e.norm_range_value=function(t){var e=String(t).match(new RegExp("^(([0-9]*)\\.([0-9]+)|([0-9]+))([%pP])?$"));if(e){var n=null!=e[5]?"p":"";t=(e[1]||e[4])+n}return t},e}(b),S=function(t){function e(e,n,r){return void 0===r&&(r=s.identity),t.call(this,e,n,r)||this}return r.__extends(e,t),e.prototype.serialize=function(){return this.value()},e}(b),O=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r.__extends(e,t),e.prototype.value=function(){if(null==this.origValue)return"";var t;if(this.origValue instanceof l)t=this.origValue;else if(d.isObject(this.origValue)){var e=s.withCamelCaseKeys(this.origValue);t="text"===e.resourceType||null!=e.text?new f(e):"subtitles"===e.resourceType?new h(e):"fetch"===e.resourceType||null!=e.url?new p(e):new l(e)}else t=v.isString(this.origValue)?/^fetch:.+/.test(this.origValue)?new p(this.origValue.substr(6)):this.origValue:"";return t.toString()},e.textStyle=function(t){return new f(t).textStyleIdentifier()},e}(b),C=function(){function t(t){var e,n,r=this;e=void 0,n={},this.toOptions=function(t){var e={};if(null==t&&(t=!0),Object.keys(n).forEach((function(t){return e[t]=n[t].origValue})),_(e,r.otherOptions),t&&!y.isEmpty(r.chained)){var o=r.chained.map((function(t){return t.toOptions()}));o.push(e),_(e={},r.otherOptions),e.transformation=o}return e},this.setParent=function(t){return e=t,null!=t&&r.fromOptions("function"==typeof t.toOptions?t.toOptions():void 0),r},this.getParent=function(){return e},this.param=function(t,e,o,i,a){return null==a&&(a=g.isFunction(i)?i:s.identity),n[e]=new b(e,o,a).set(t),r},this.rawParam=function(t,e,r,o,i){return i=A(arguments),n[e]=new S(e,r,i).set(t),this},this.rangeParam=function(t,e,r,o,i){return i=A(arguments),n[e]=new T(e,r,i).set(t),this},this.arrayParam=function(t,e,r,o,i,a){return void 0===o&&(o=":"),void 0===i&&(i=[]),void 0===a&&(a=void 0),a=A(arguments),n[e]=new w(e,r,o,a).set(t),this},this.transformationParam=function(t,e,r,o,i,a){return void 0===o&&(o="."),void 0===i&&(i=void 0),void 0===a&&(a=void 0),a=A(arguments),n[e]=new E(e,r,o,a).set(t),this},this.layerParam=function(t,e,r){return n[e]=new O(e,r).set(t),this},this.getValue=function(t){var e=n[t]&&n[t].value();return null!=e?e:this.otherOptions[t]},this.get=function(t){return n[t]},this.remove=function(t){var e;switch(!1){case null==n[t]:return e=n[t],delete n[t],e.origValue;case null==this.otherOptions[t]:return e=this.otherOptions[t],delete this.otherOptions[t],e;default:return null}},this.keys=function(){var t;return function(){var e;for(t in e=[],n)null!=t&&e.push(t.match(P)?t:u.snakeCase(t));return e}().sort()},this.toPlainObject=function(){var t,e,r;for(e in t={},n)t[e]=n[e].value(),d.isObject(t[e])&&(t[e]=a.cloneDeep(t[e]));return y.isEmpty(this.chained)||((r=this.chained.map((function(t){return t.toPlainObject()}))).push(t),t={transformation:r}),t},this.chain=function(){var t;return 0!==Object.getOwnPropertyNames(n).length&&(t=new this.constructor(this.toOptions(!1)),this.resetTransformations(),this.chained.push(t)),this},this.resetTransformations=function(){return n={},this},this.otherOptions={},this.chained=[],this.fromOptions(t)}return t.prototype.fromOptions=function(e){if(void 0===e&&(e={}),e instanceof t)this.fromTransformation(e);else for(var n in(v.isString(e)||Array.isArray(e))&&(e={transformation:e}),(e=a.cloneDeep(e)).if&&(this.set("if",e.if),delete e.if),e){var r=e[n];null!=r&&(n.match(P)?"$attr"!==n&&this.set("variable",n,r):this.set(n,r))}return this},t.prototype.fromTransformation=function(e){var n=this;return e instanceof t&&e.keys().forEach((function(t){return n.set(t,e.get(t).origValue)})),this},t.prototype.set=function(t){for(var e,n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];return e=s.camelCase(t),s.contains(L,e)?this[e].apply(this,n):this.otherOptions[t]=n[0],this},t.prototype.hasLayer=function(){return this.getValue("overlay")||this.getValue("underlay")},t.prototype.serialize=function(){var t,e,n,r,o,i,a,u,l,f,h,p,d,g,m,_,b;for(f=this.chained.map((function(t){return t.serialize()})),r=this.keys(),g=null!=(o=this.get("transformation"))?o.serialize():void 0,t=null!=(i=this.get("if"))?i.serialize():void 0,_=function(t){var e,n,r,o,i,a;if(Array.isArray(t)){for(i=[],n=0,r=t.length;n<r;n++)o=(e=t[n])[0],a=e[1],i.push("".concat(o,"_").concat(c.normalize(a)));return i}return t}(null!=(a=this.get("variables"))?a.value():void 0),r=s.difference(r,["transformation","if","variables"]),b=[],p=[],e=0,n=r.length;e<n;e++)(h=r[e]).match(P)?b.push(h+"_"+c.normalize(null!=(u=this.get(h))?u.value():void 0)):p.push(null!=(l=this.get(h))?l.serialize():void 0);switch(!1){case!v.isString(g):p.push(g);break;case!Array.isArray(g):f=f.concat(g)}return p=function(){var t,e,n;for(n=[],t=0,e=p.length;t<e;t++)m=p[t],(Array.isArray(m)&&!y.isEmpty(m)||!Array.isArray(m)&&m)&&n.push(m);return n}(),p=b.sort().concat(_).concat(p.sort()),"if_end"===t?p.push(t):y.isEmpty(t)||p.unshift(t),d=p.filter((function(t){return!!t})).join(j),y.isEmpty(d)||f.push(d),f.filter((function(t){return!!t})).join(k)},t.listNames=function(){return L},t.prototype.toHtmlAttributes=function(){var t,e,n,r,o,i,a,c,l=this;return n={},Object.keys(this.otherOptions).forEach((function(e){i=l.otherOptions[e],c=u.snakeCase(e),s.contains(I,c)||s.contains(m,c)||(t=/^html_/.test(e)?e.slice(5):e,n[t]=i)})),this.keys().forEach((function(t){/^html_/.test(t)&&(n[s.camelCase(t.slice(5))]=l.getValue(t))})),this.hasLayer()||this.getValue("angle")||s.contains(["fit","limit","lfill"],this.getValue("crop"))||(a=null!=(r=this.get("width"))?r.origValue:void 0,e=null!=(o=this.get("height"))?o.origValue:void 0,parseFloat(a)>=1&&null==n.width&&(n.width=a),parseFloat(e)>=1&&null==n.height&&(n.height=e)),n},t.isValidParamName=function(t){return L.indexOf(s.camelCase(t))>=0},t.prototype.toHtml=function(){var t;return null!=(t=this.getParent())&&"function"==typeof t.toHtml?t.toHtml():void 0},t.prototype.toString=function(){return this.serialize()},t.prototype.clone=function(){return new t(this.toOptions(!0))},t}(),P=/^\$[a-zA-Z0-9]+$/,k="/",j=",";function A(t){var e;return e=null!=t?t[t.length-1]:void 0,g.isFunction(e)?e:void 0}function x(t){var e=t.function_type,n=t.source;return"remote"===e?[e,btoa(n)].join(":"):"wasm"===e?[e,n].join(":"):void 0}var R=function(t){function e(e){return t.call(this,e)||this}return r.__extends(e,t),e.new=function(t){return new e(t)},e.prototype.angle=function(t){return this.arrayParam(t,"angle","a",".",c.normalize),this},e.prototype.audioCodec=function(t){return this.param(t,"audio_codec","ac"),this},e.prototype.audioFrequency=function(t){return this.param(t,"audio_frequency","af"),this},e.prototype.aspectRatio=function(t){return this.param(t,"aspect_ratio","ar",c.normalize),this},e.prototype.background=function(t){return this.param(t,"background","b",b.norm_color),this},e.prototype.bitRate=function(t){return this.param(t,"bit_rate","br"),this},e.prototype.border=function(t){return this.param(t,"border","bo",(function(t){return d.isObject(t)?(t=Object.assign({},{color:"black",width:2},t),"".concat(t.width,"px_solid_").concat(b.norm_color(t.color))):t}))},e.prototype.color=function(t){return this.param(t,"color","co",b.norm_color),this},e.prototype.colorSpace=function(t){return this.param(t,"color_space","cs"),this},e.prototype.crop=function(t){return this.param(t,"crop","c"),this},e.prototype.customFunction=function(t){return this.param(t,"custom_function","fn",(function(){return x(t)}))},e.prototype.customPreFunction=function(t){if(!this.get("custom_function"))return this.rawParam(t,"custom_function","",(function(){return(t=x(t))?"fn_pre:".concat(t):t}))},e.prototype.defaultImage=function(t){return this.param(t,"default_image","d"),this},e.prototype.delay=function(t){return this.param(t,"delay","dl"),this},e.prototype.density=function(t){return this.param(t,"density","dn"),this},e.prototype.duration=function(t){return this.rangeParam(t,"duration","du"),this},e.prototype.dpr=function(t){return this.param(t,"dpr","dpr",(function(t){return(null!=(t=t.toString())?t.match(/^\d+$/):void 0)?t+".0":c.normalize(t)}))},e.prototype.effect=function(t){return this.arrayParam(t,"effect","e",":",c.normalize),this},e.prototype.else=function(){return this.if("else")},e.prototype.endIf=function(){return this.if("end")},e.prototype.endOffset=function(t){return this.rangeParam(t,"end_offset","eo"),this},e.prototype.fallbackContent=function(t){return this.param(t,"fallback_content"),this},e.prototype.fetchFormat=function(t){return this.param(t,"fetch_format","f"),this},e.prototype.format=function(t){return this.param(t,"format"),this},e.prototype.flags=function(t){return this.arrayParam(t,"flags","fl","."),this},e.prototype.gravity=function(t){return this.param(t,"gravity","g"),this},e.prototype.fps=function(t){return this.param(t,"fps","fps",(function(t){return v.isString(t)?t:Array.isArray(t)?t.join("-"):t}))},e.prototype.height=function(t){var e=this;return this.param(t,"height","h",(function(){return e.getValue("crop")||e.getValue("overlay")||e.getValue("underlay")?c.normalize(t):null}))},e.prototype.htmlHeight=function(t){return this.param(t,"html_height"),this},e.prototype.htmlWidth=function(t){return this.param(t,"html_width"),this},e.prototype.if=function(t){var n,r,i,a,s;switch(void 0===t&&(t=""),t){case"else":return this.chain(),this.param(t,"if","if");case"end":for(this.chain(),n=i=this.chained.length-1;i>=0&&"end"!==(r=this.chained[n].getValue("if"))&&(null==r||(a=e.new().if(r),this.chained[n].remove("if"),s=this.chained[n],this.chained[n]=e.new().transformation([a,s]),"else"===r));n=i+=-1);return this.param(t,"if","if");case"":return o.new().setParent(this);default:return this.param(t,"if","if",(function(t){return o.new(t).toString()}))}},e.prototype.keyframeInterval=function(t){return this.param(t,"keyframe_interval","ki"),this},e.prototype.ocr=function(t){return this.param(t,"ocr","ocr"),this},e.prototype.offset=function(t){var e,n,r;if(r=(e=g.isFunction(null!=t?t.split:void 0)?t.split(".."):Array.isArray(t)?t:[null,null])[0],n=e[1],null!=r&&this.startOffset(r),null!=n)return this.endOffset(n)},e.prototype.opacity=function(t){return this.param(t,"opacity","o",c.normalize),this},e.prototype.overlay=function(t){return this.layerParam(t,"overlay","l"),this},e.prototype.page=function(t){return this.param(t,"page","pg"),this},e.prototype.poster=function(t){return this.param(t,"poster"),this},e.prototype.prefix=function(t){return this.param(t,"prefix","p"),this},e.prototype.quality=function(t){return this.param(t,"quality","q",c.normalize),this},e.prototype.radius=function(t){return this.arrayParam(t,"radius","r",":",c.normalize),this},e.prototype.rawTransformation=function(t){return this.rawParam(t,"raw_transformation"),this},e.prototype.size=function(t){var e,n,r;if(g.isFunction(null!=t?t.split:void 0))return r=(e=t.split("x"))[0],n=e[1],this.width(r),this.height(n)},e.prototype.sourceTypes=function(t){return this.param(t,"source_types"),this},e.prototype.sourceTransformation=function(t){return this.param(t,"source_transformation")},e.prototype.startOffset=function(t){return this.rangeParam(t,"start_offset","so"),this},e.prototype.streamingProfile=function(t){return this.param(t,"streaming_profile","sp"),this},e.prototype.transformation=function(t){return this.transformationParam(t,"transformation","t"),this},e.prototype.underlay=function(t){return this.layerParam(t,"underlay","u"),this},e.prototype.variable=function(t,e){return this.param(e,t,t),this},e.prototype.variables=function(t){return this.arrayParam(t,"variables"),this},e.prototype.videoCodec=function(t){return this.param(t,"video_codec","vc",b.process_video_params),this},e.prototype.videoSampling=function(t){return this.param(t,"video_sampling","vs"),this},e.prototype.width=function(t){var e=this;return this.param(t,"width","w",(function(){return e.getValue("crop")||e.getValue("overlay")||e.getValue("underlay")?c.normalize(t):null})),this},e.prototype.x=function(t){return this.param(t,"x","x",c.normalize),this},e.prototype.y=function(t){return this.param(t,"y","y",c.normalize),this},e.prototype.zoom=function(t){return this.param(t,"zoom","z",c.normalize),this},e}(C),L=["angle","audioCodec","audioFrequency","aspectRatio","background","bitRate","border","color","colorSpace","crop","customFunction","customPreFunction","defaultImage","delay","density","duration","dpr","effect","else","endIf","endOffset","fallbackContent","fetchFormat","format","flags","gravity","fps","height","htmlHeight","htmlWidth","if","keyframeInterval","ocr","offset","opacity","overlay","page","poster","prefix","quality","radius","rawTransformation","size","sourceTypes","sourceTransformation","startOffset","streamingProfile","transformation","underlay","variable","variables","videoCodec","videoSampling","width","x","y","zoom"],I=L.map(u.snakeCase).concat(i.CONFIG_PARAMS);e.URL_KEYS=m,e.default=R},function(t,e,n){"use strict";var r=n(36),o=function(t){function e(e){return t.call(this,e)||this}return r.__extends(e,t),e.prototype.height=function(t,e){return this.predicate("h",t,e)},e.prototype.width=function(t,e){return this.predicate("w",t,e)},e.prototype.aspectRatio=function(t,e){return this.predicate("ar",t,e)},e.prototype.pageCount=function(t,e){return this.predicate("pc",t,e)},e.prototype.faceCount=function(t,e){return this.predicate("fc",t,e)},e.prototype.duration=function(t,e){return this.predicate("du",t,e)},e.prototype.initialDuration=function(t,e){return this.predicate("idu",t,e)},e}(n(67));t.exports=o},function(t,e,n){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0});var r=n(82),o=n(48),i=function(){function e(t){this.configuration=null==t?{}:r.cloneDeep(t),function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];e.reduce((function(t,e){var n,r;for(n in e)r=e[n],void 0===t[n]&&(t[n]=r);return t}),t)}(this.configuration,a)}return e.prototype.init=function(){return this.fromEnvironment(),this.fromDocument(),this},e.prototype.set=function(t,e){return this.configuration[t]=e,this},e.prototype.get=function(t){return this.configuration[t]},e.prototype.merge=function(t){return Object.assign(this.configuration,r.cloneDeep(t)),this},e.prototype.fromDocument=function(){var t,e,n,r;if(r="undefined"!=typeof document&&null!==document?document.querySelectorAll('meta[name^="cloudinary_"]'):void 0)for(e=0,n=r.length;e<n;e++)t=r[e],this.configuration[t.getAttribute("name").replace("cloudinary_","")]=t.getAttribute("content");return this},e.prototype.fromEnvironment=function(){var e,n,r,o=this;return null!=t&&Object({NODE_ENV:"production"})&&Object({NODE_ENV:"production"}).CLOUDINARY_URL&&(e=Object({NODE_ENV:"production"}).CLOUDINARY_URL,(r=/cloudinary:\/\/(?:(\w+)(?:\:([\w-]+))?@)?([\w\.-]+)(?:\/([^?]*))?(?:\?(.+))?/.exec(e))&&(null!=r[3]&&(this.configuration.cloud_name=r[3]),null!=r[1]&&(this.configuration.api_key=r[1]),null!=r[2]&&(this.configuration.api_secret=r[2]),null!=r[4]&&(this.configuration.private_cdn=null!=r[4]),null!=r[4]&&(this.configuration.secure_distribution=r[4]),null!=(n=r[5])&&n.split("&").forEach((function(t){var e=t.split("="),n=e[0],r=e[1];null==r&&(r=!0),o.configuration[n]=r})))),this},e.prototype.config=function(t,e){switch(!1){case void 0===e:return this.set(t,e),this.configuration;case"string"!=typeof t:return this.get(t);case!o.isObject(t):return this.merge(t),this.configuration;default:return this.configuration}},e.prototype.toOptions=function(){return r.cloneDeep(this.configuration)},e}(),a={responsive_class:"cld-responsive",responsive_use_breakpoints:!0,round_dpr:!0,secure:"https:"===("undefined"!=typeof window&&null!==window&&window.location?window.location.protocol:void 0)};e.CONFIG_PARAMS=["api_key","api_secret","callback","cdn_subdomain","cloud_name","cname","private_cdn","protocol","resource_type","responsive","responsive_class","responsive_use_breakpoints","responsive_width","round_dpr","secure","secure_cdn_subdomain","secure_distribution","shorten","type","upload_preset","url_suffix","use_root_path","version","externalLibraries","max_timeout_ms"],e.default=i}).call(this,n(167))},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(52),o=function(t){var e=t.match(a);return(e=e.map((function(t){return t.charAt(0).toLocaleUpperCase()+t.slice(1).toLocaleLowerCase()})))[0]=e[0].toLocaleLowerCase(),e.join("")},i=function(t,e){var n,o;for(var i in n={},t)o=t[i],e&&(i=e(i)),r.isEmpty(i)||(n[i]=o);return n},a=RegExp("[A-Z]+(?=[A-Z][a-z]+)|[A-Z]?[a-z]+|[A-Z]+|[0-9]+","g");e.camelCase=o,e.contains=function(t,e){for(var n=0;n<t.length;n++)if(t[n]===e)return!0;return!1},e.convertKeys=i,e.difference=function(t,e){return t.filter((function(t){return!e.includes(t)}))},e.identity=function(t){return t},e.reWords=a,e.withCamelCaseKeys=function(t){return i(t,o)}},function(t,e,n){"use strict";var r=n(36),o=n(66);n(51),n(37),n(52),n(50),n(59);var i=function(t){function e(e){var n=t.call(this,e)||this;return n.options.resourceType="subtitles",n}return r.__extends(e,t),e}(o);t.exports=i},function(t,e,n){"use strict";var r=n(36),o=n(51),i=n(83),a=n(49);n(37);var s=function(t){function e(e){var n=t.call(this,e)||this;return i.isString(e)?n.options.url=e:(null!=e?e.url:void 0)&&(n.options.url=e.url),n}return r.__extends(e,t),e.prototype.url=function(t){return this.options.url=t,this},e.prototype.toString=function(){return"fetch:".concat(a.base64Encode(this.options.url))},e}(o);t.exports=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isFunction=function(t){return t instanceof Function}},function(t,e,n){"use strict";function r(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=function(t,e){if(!t)return;if("string"==typeof t)return o(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return o(t,e)}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,s=!0,u=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return s=t.done,t},e:function(t){u=!0,a=t},f:function(){try{s||null==n.return||n.return()}finally{if(u)throw a}}}}function o(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function i(t){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i(t)}Object.defineProperty(e,"__esModule",{value:!0}),e.pick=e.omit=e.get=void 0;e.get=function(t,e,n){if(t&&"object"===i(t)){var o,a=t,s=r(e.split("."));try{for(s.s();!(o=s.n()).done;){var u=o.value;if(!Object.prototype.hasOwnProperty.call(a,u)||void 0===a[u])return n;a=a[u]}}catch(t){s.e(t)}finally{s.f()}return a}return n};e.pick=function(t,e){return e.reduce((function(e,n){var r=t[n];return void 0!==r&&(e[n]=r),e}),{})};e.omit=function(t,e){return Object.keys(t).reduce((function(n,r){var o=t[r];return e.includes(r)||(n[r]=o),n}),{})}},function(t,e,n){"use strict";function r(t,e){for(var n=0;n<t.length;n++){var r=t[n];if(e(r,n,t))return[r,n]}return[void 0,-1]}Object.defineProperty(e,"__esModule",{value:!0}),e.find=function(t,e){if(Array.prototype.find&&Array.isArray(t))return t.find(e);return r(t,e)[0]},e.findElementAndIndex=r,e.findIndex=function(t,e){if(Array.prototype.findIndex)return t.findIndex(e);return r(t,e)[1]}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.skinClassPrefix=e.skinClass=e.setSkinClassPrefix=e.playerClassPrefix=e.CLASS_PREFIX=void 0;var r,o=n(80),i=(r=n(130))&&r.__esModule?r:{default:r},a=n(128);var s="cld-video-player";e.CLASS_PREFIX=s;var u="".concat(s,"-skin-");e.playerClassPrefix=function(t){return"".concat(s,"-").concat(t.id_)};var c=function(t){return"".concat(u).concat(t)};e.skinClass=c;var l=function(t){return(0,a.find)(t.el().classList,(function(t){return(0,o.startsWith)(t,u)}))};e.skinClassPrefix=l;e.setSkinClassPrefix=function(t,e){var n=l(t),r=!!e&&e.replace(u,""),o="";(o=r?c(r):t.options_.skin?c(t.options_.skin):c(i.default.skin))!==n&&(n&&t.removeClass(n),t.addClass(o)),r&&t.options_.skin!==r&&(t.options_.skin=r)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=a(n(1)),o=a(n(401)),i=n(60);function a(t){return t&&t.__esModule?t:{default:t}}var s={logoOnclickUrl:"https://cloudinary.com/",showLogo:!0,showJumpControls:!1,playsinline:r.default.browser.IS_IOS,skin:"dark",controls:!1,controlBar:{pictureInPictureToggle:!1},preload:i.PRELOAD.AUTO,loop:!1,muted:!1,posterOptions:{},sourceTypes:["webm/vp9","mp4/h265","mp4"],contextMenu:{content:o.default},floatingWhenNotVisible:i.FLOATING_TO.NONE,hideContextMenu:!1,analytics:!1,playedEventPercents:[25,50,75,100]};e.default=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.objectToQuerystring=void 0;e.objectToQuerystring=function(t){var e=Object.keys(t);if(!e.length)return"";var n=e.map((function(e){return"".concat(e,"=").concat(t[e])})).join("&");return"?".concat(n)}},function(t,e,n){"use strict";function r(t){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r(t)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o,i=(o=n(1))&&o.__esModule?o:{default:o},a=n(186),s=n(129),u=n(27);function c(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function l(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?c(Object(n),!0).forEach((function(e){f(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function f(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function h(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function p(t,e){return p=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},p(t,e)}function d(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=_(t);if(e){var o=_(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return v(this,n)}}function v(t,e){if(e&&("object"===r(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return y(t)}function y(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function g(){return g="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var r=m(t,e);if(r){var o=Object.getOwnPropertyDescriptor(r,e);return o.get?o.get.call(arguments.length<3?t:n):o.value}},g.apply(this,arguments)}function m(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=_(t)););return t}function _(t){return _=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},_(t)}var b=i.default.dom||i.default,w=i.default.getComponent("Component"),E={wrap:!1},T=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&p(t,e)}(i,t);var e,n,r,o=d(i);function i(t,e){var n,r;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i);var s=l(l({},E),e);(r=o.call(this,t,s)).player_=t,r.setCls();var c,f=function(t,e){r.options_.fluid=e,r.removeCls(),r.setCls()};return s.wrap&&(c=r.el(),r.videoWrap_=b.createEl("div",{className:"cld-plw-col-player"}),r.contentEl_=r.contentEl_=b.createEl("div",{className:"cld-plw-col-list"}),(0,a.wrap)(r.player().el(),c),c.appendChild(r.videoWrap_),c.appendChild(r.contentEl_),(0,a.wrap)(r.player().el(),r.videoWrap_)),t.on(u.PLAYER_EVENT.FLUID,f),r.addChild(u.PLAYER_EVENT.PLAYLIST_PANEL,r.options_),r.dispose=function(){r.removeLayout(),g((n=y(r),_(i.prototype)),"dispose",n).call(n),t.off(u.PLAYER_EVENT.FLUID,f)},r}return e=i,(n=[{key:"getCls",value:function(){var t=["cld-video-player","cld-plw-layout"];return t.push((0,s.skinClassPrefix)(this.player())),t.push((0,s.playerClassPrefix)(this.player())),this.options_.fluid&&t.push("cld-plw-layout-fluid"),t}},{key:"setCls",value:function(){var t=this;this.removeClass((0,s.skinClassPrefix)(this)),this.getCls().forEach((function(e){t.addClass(e)}))}},{key:"removeCls",value:function(){var t=this;this.getCls().forEach((function(e){t.removeClass(e)}))}},{key:"update",value:function(t,e){this.options(e),this.removeChild("PlaylistPanel"),this.addChild("PlaylistPanel",this.options_),this.trigger("playlistlayoutupdate")}},{key:"removeLayout",value:function(){var t=this.el().parentElement;t&&t.appendChild(this.player().el())}},{key:"createEl",value:function(){var t=g(_(i.prototype),"createEl",this).call(this,"div");return t.style.fontFamily=this.player().el().style.fontFamily,t}}])&&h(e.prototype,n),r&&h(e,r),Object.defineProperty(e,"prototype",{writable:!1}),i}(w);i.default.registerComponent("playlistLayout",T);var S=T;e.default=S},function(t,e,n){t.exports=!n(9)&&!n(3)((function(){return 7!=Object.defineProperty(n(87)("div"),"a",{get:function(){return 7}}).a}))},function(t,e,n){var r=n(2),o=n(8),i=n(40),a=n(88),s=n(10).f;t.exports=function(t){var e=o.Symbol||(o.Symbol=i?{}:r.Symbol||{});"_"==t.charAt(0)||t in e||s(e,t,{value:a.f(t)})}},function(t,e,n){var r=n(16),o=n(18),i=n(69)(!1),a=n(89)("IE_PROTO");t.exports=function(t,e){var n,s=o(t),u=0,c=[];for(n in s)n!=a&&r(s,n)&&c.push(n);for(;e.length>u;)r(s,n=e[u++])&&(~i(c,n)||c.push(n));return c}},function(t,e,n){var r=n(10),o=n(4),i=n(41);t.exports=n(9)?Object.defineProperties:function(t,e){o(t);for(var n,a=i(e),s=a.length,u=0;s>u;)r.f(t,n=a[u++],e[n]);return t}},function(t,e,n){var r=n(18),o=n(44).f,i={}.toString,a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];t.exports.f=function(t){return a&&"[object Window]"==i.call(t)?function(t){try{return o(t)}catch(t){return a.slice()}}(t):o(r(t))}},function(t,e,n){"use strict";var r=n(9),o=n(41),i=n(70),a=n(62),s=n(11),u=n(61),c=Object.assign;t.exports=!c||n(3)((function(){var t={},e={},n=Symbol(),r="abcdefghijklmnopqrst";return t[n]=7,r.split("").forEach((function(t){e[t]=t})),7!=c({},t)[n]||Object.keys(c({},e)).join("")!=r}))?function(t,e){for(var n=s(t),c=arguments.length,l=1,f=i.f,h=a.f;c>l;)for(var p,d=u(arguments[l++]),v=f?o(d).concat(f(d)):o(d),y=v.length,g=0;y>g;)p=v[g++],r&&!h.call(d,p)||(n[p]=d[p]);return n}:c},function(t,e){t.exports=Object.is||function(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e}},function(t,e,n){"use strict";var r=n(22),o=n(5),i=n(141),a=[].slice,s={},u=function(t,e,n){if(!(e in s)){for(var r=[],o=0;o<e;o++)r[o]="a["+o+"]";s[e]=Function("F,a","return new F("+r.join(",")+")")}return s[e](t,n)};t.exports=Function.bind||function(t){var e=r(this),n=a.call(arguments,1),s=function(){var r=n.concat(a.call(arguments));return this instanceof s?u(e,r.length,r):i(e,r,t)};return o(e.prototype)&&(s.prototype=e.prototype),s}},function(t,e){t.exports=function(t,e,n){var r=void 0===n;switch(e.length){case 0:return r?t():t.call(n);case 1:return r?t(e[0]):t.call(n,e[0]);case 2:return r?t(e[0],e[1]):t.call(n,e[0],e[1]);case 3:return r?t(e[0],e[1],e[2]):t.call(n,e[0],e[1],e[2]);case 4:return r?t(e[0],e[1],e[2],e[3]):t.call(n,e[0],e[1],e[2],e[3])}return t.apply(n,e)}},function(t,e,n){var r=n(2).parseInt,o=n(54).trim,i=n(93),a=/^[-+]?0[xX]/;t.exports=8!==r(i+"08")||22!==r(i+"0x16")?function(t,e){var n=o(String(t),3);return r(n,e>>>0||(a.test(n)?16:10))}:r},function(t,e,n){var r=n(2).parseFloat,o=n(54).trim;t.exports=1/r(n(93)+"-0")!=-1/0?function(t){var e=o(String(t),3),n=r(e);return 0===n&&"-"==e.charAt(0)?-0:n}:r},function(t,e,n){var r=n(28);t.exports=function(t,e){if("number"!=typeof t&&"Number"!=r(t))throw TypeError(e);return+t}},function(t,e,n){var r=n(5),o=Math.floor;t.exports=function(t){return!r(t)&&isFinite(t)&&o(t)===t}},function(t,e){t.exports=Math.log1p||function(t){return(t=+t)>-1e-8&&t<1e-8?t-t*t/2:Math.log(1+t)}},function(t,e,n){"use strict";var r=n(43),o=n(38),i=n(53),a={};n(17)(a,n(6)("iterator"),(function(){return this})),t.exports=function(t,e,n){t.prototype=r(a,{next:o(1,n)}),i(t,e+" Iterator")}},function(t,e,n){var r=n(4);t.exports=function(t,e,n,o){try{return o?e(r(n)[0],n[1]):e(n)}catch(e){var i=t.return;throw void 0!==i&&r(i.call(t)),e}}},function(t,e,n){var r=n(288);t.exports=function(t,e){return new(r(t))(e)}},function(t,e,n){var r=n(22),o=n(11),i=n(61),a=n(7);t.exports=function(t,e,n,s,u){r(e);var c=o(t),l=i(c),f=a(c.length),h=u?f-1:0,p=u?-1:1;if(n<2)for(;;){if(h in l){s=l[h],h+=p;break}if(h+=p,u?h<0:f<=h)throw TypeError("Reduce of empty array with no initial value")}for(;u?h>=0:f>h;h+=p)h in l&&(s=e(s,l[h],h,c));return s}},function(t,e,n){"use strict";var r=n(11),o=n(42),i=n(7);t.exports=[].copyWithin||function(t,e){var n=r(this),a=i(n.length),s=o(t,a),u=o(e,a),c=arguments.length>2?arguments[2]:void 0,l=Math.min((void 0===c?a:o(c,a))-u,a-s),f=1;for(u<s&&s<u+l&&(f=-1,u+=l-1,s+=l-1);l-- >0;)u in n?n[s]=n[u]:delete n[s],s+=f,u+=f;return n}},function(t,e){t.exports=function(t,e){return{value:e,done:!!t}}},function(t,e,n){"use strict";var r=n(108);n(0)({target:"RegExp",proto:!0,forced:r!==/./.exec},{exec:r})},function(t,e,n){n(9)&&"g"!=/./g.flags&&n(10).f(RegExp.prototype,"flags",{configurable:!0,get:n(73)})},function(t,e,n){"use strict";var r,o,i,a,s=n(40),u=n(2),c=n(21),l=n(63),f=n(0),h=n(5),p=n(22),d=n(57),v=n(76),y=n(64),g=n(110).set,m=n(308)(),_=n(156),b=n(309),w=n(77),E=n(157),T="Promise",S=u.TypeError,O=u.process,C=O&&O.versions,P=C&&C.v8||"",k=u.Promise,j="process"==l(O),A=function(){},x=o=_.f,R=!!function(){try{var t=k.resolve(1),e=(t.constructor={})[n(6)("species")]=function(t){t(A,A)};return(j||"function"==typeof PromiseRejectionEvent)&&t.then(A)instanceof e&&0!==P.indexOf("6.6")&&-1===w.indexOf("Chrome/66")}catch(t){}}(),L=function(t){var e;return!(!h(t)||"function"!=typeof(e=t.then))&&e},I=function(t,e){if(!t._n){t._n=!0;var n=t._c;m((function(){for(var r=t._v,o=1==t._s,i=0,a=function(e){var n,i,a,s=o?e.ok:e.fail,u=e.resolve,c=e.reject,l=e.domain;try{s?(o||(2==t._h&&D(t),t._h=1),!0===s?n=r:(l&&l.enter(),n=s(r),l&&(l.exit(),a=!0)),n===e.promise?c(S("Promise-chain cycle")):(i=L(n))?i.call(n,u,c):u(n)):c(r)}catch(t){l&&!a&&l.exit(),c(t)}};n.length>i;)a(n[i++]);t._c=[],t._n=!1,e&&!t._h&&N(t)}))}},N=function(t){g.call(u,(function(){var e,n,r,o=t._v,i=M(t);if(i&&(e=b((function(){j?O.emit("unhandledRejection",o,t):(n=u.onunhandledrejection)?n({promise:t,reason:o}):(r=u.console)&&r.error&&r.error("Unhandled promise rejection",o)})),t._h=j||M(t)?2:1),t._a=void 0,i&&e.e)throw e.v}))},M=function(t){return 1!==t._h&&0===(t._a||t._c).length},D=function(t){g.call(u,(function(){var e;j?O.emit("rejectionHandled",t):(e=u.onrejectionhandled)&&e({promise:t,reason:t._v})}))},F=function(t){var e=this;e._d||(e._d=!0,(e=e._w||e)._v=t,e._s=2,e._a||(e._a=e._c.slice()),I(e,!0))},B=function(t){var e,n=this;if(!n._d){n._d=!0,n=n._w||n;try{if(n===t)throw S("Promise can't be resolved itself");(e=L(t))?m((function(){var r={_w:n,_d:!1};try{e.call(t,c(B,r,1),c(F,r,1))}catch(t){F.call(r,t)}})):(n._v=t,n._s=1,I(n,!1))}catch(t){F.call({_w:n,_d:!1},t)}}};R||(k=function(t){d(this,k,T,"_h"),p(t),r.call(this);try{t(c(B,this,1),c(F,this,1))}catch(t){F.call(this,t)}},(r=function(t){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1}).prototype=n(58)(k.prototype,{then:function(t,e){var n=x(y(this,k));return n.ok="function"!=typeof t||t,n.fail="function"==typeof e&&e,n.domain=j?O.domain:void 0,this._c.push(n),this._a&&this._a.push(n),this._s&&I(this,!1),n.promise},catch:function(t){return this.then(void 0,t)}}),i=function(){var t=new r;this.promise=t,this.resolve=c(B,t,1),this.reject=c(F,t,1)},_.f=x=function(t){return t===k||t===a?new i(t):o(t)}),f(f.G+f.W+f.F*!R,{Promise:k}),n(53)(k,T),n(56)(T),a=n(8).Promise,f(f.S+f.F*!R,T,{reject:function(t){var e=x(this);return(0,e.reject)(t),e.promise}}),f(f.S+f.F*(s||!R),T,{resolve:function(t){return E(s&&this===a?k:this,t)}}),f(f.S+f.F*!(R&&n(72)((function(t){k.all(t).catch(A)}))),T,{all:function(t){var e=this,n=x(e),r=n.resolve,o=n.reject,i=b((function(){var n=[],i=0,a=1;v(t,!1,(function(t){var s=i++,u=!1;n.push(void 0),a++,e.resolve(t).then((function(t){u||(u=!0,n[s]=t,--a||r(n))}),o)})),--a||r(n)}));return i.e&&o(i.v),n.promise},race:function(t){var e=this,n=x(e),r=n.reject,o=b((function(){v(t,!1,(function(t){e.resolve(t).then(n.resolve,r)}))}));return o.e&&r(o.v),n.promise}})},function(t,e,n){"use strict";var r=n(22);function o(t){var e,n;this.promise=new t((function(t,r){if(void 0!==e||void 0!==n)throw TypeError("Bad Promise constructor");e=t,n=r})),this.resolve=r(e),this.reject=r(n)}t.exports.f=function(t){return new o(t)}},function(t,e,n){var r=n(4),o=n(5),i=n(156);t.exports=function(t,e){if(r(t),o(e)&&e.constructor===t)return e;var n=i.f(t);return(0,n.resolve)(e),n.promise}},function(t,e,n){"use strict";var r=n(10).f,o=n(43),i=n(58),a=n(21),s=n(57),u=n(76),c=n(99),l=n(152),f=n(56),h=n(9),p=n(34).fastKey,d=n(47),v=h?"_s":"size",y=function(t,e){var n,r=p(e);if("F"!==r)return t._i[r];for(n=t._f;n;n=n.n)if(n.k==e)return n};t.exports={getConstructor:function(t,e,n,c){var l=t((function(t,r){s(t,l,e,"_i"),t._t=e,t._i=o(null),t._f=void 0,t._l=void 0,t[v]=0,null!=r&&u(r,n,t[c],t)}));return i(l.prototype,{clear:function(){for(var t=d(this,e),n=t._i,r=t._f;r;r=r.n)r.r=!0,r.p&&(r.p=r.p.n=void 0),delete n[r.i];t._f=t._l=void 0,t[v]=0},delete:function(t){var n=d(this,e),r=y(n,t);if(r){var o=r.n,i=r.p;delete n._i[r.i],r.r=!0,i&&(i.n=o),o&&(o.p=i),n._f==r&&(n._f=o),n._l==r&&(n._l=i),n[v]--}return!!r},forEach:function(t){d(this,e);for(var n,r=a(t,arguments.length>1?arguments[1]:void 0,3);n=n?n.n:this._f;)for(r(n.v,n.k,this);n&&n.r;)n=n.p},has:function(t){return!!y(d(this,e),t)}}),h&&r(l.prototype,"size",{get:function(){return d(this,e)[v]}}),l},def:function(t,e,n){var r,o,i=y(t,e);return i?i.v=n:(t._l=i={i:o=p(e,!0),k:e,v:n,p:r=t._l,n:void 0,r:!1},t._f||(t._f=i),r&&(r.n=i),t[v]++,"F"!==o&&(t._i[o]=i)),t},getEntry:y,setStrong:function(t,e,n){c(t,e,(function(t,n){this._t=d(t,e),this._k=n,this._l=void 0}),(function(){for(var t=this,e=t._k,n=t._l;n&&n.r;)n=n.p;return t._t&&(t._l=n=n?n.n:t._t._f)?l(0,"keys"==e?n.k:"values"==e?n.v:[n.k,n.v]):(t._t=void 0,l(1))}),n?"entries":"values",!n,!0),f(e)}}},function(t,e,n){"use strict";var r=n(58),o=n(34).getWeak,i=n(4),a=n(5),s=n(57),u=n(76),c=n(26),l=n(16),f=n(47),h=c(5),p=c(6),d=0,v=function(t){return t._l||(t._l=new y)},y=function(){this.a=[]},g=function(t,e){return h(t.a,(function(t){return t[0]===e}))};y.prototype={get:function(t){var e=g(this,t);if(e)return e[1]},has:function(t){return!!g(this,t)},set:function(t,e){var n=g(this,t);n?n[1]=e:this.a.push([t,e])},delete:function(t){var e=p(this.a,(function(e){return e[0]===t}));return~e&&this.a.splice(e,1),!!~e}},t.exports={getConstructor:function(t,e,n,i){var c=t((function(t,r){s(t,c,e,"_i"),t._t=e,t._i=d++,t._l=void 0,null!=r&&u(r,n,t[i],t)}));return r(c.prototype,{delete:function(t){if(!a(t))return!1;var n=o(t);return!0===n?v(f(this,e)).delete(t):n&&l(n,this._i)&&delete n[this._i]},has:function(t){if(!a(t))return!1;var n=o(t);return!0===n?v(f(this,e)).has(t):n&&l(n,this._i)}}),c},def:function(t,e,n){var r=o(i(e),!0);return!0===r?v(t).set(e,n):r[t._i]=n,t},ufstore:v}},function(t,e,n){var r=n(23),o=n(7);t.exports=function(t){if(void 0===t)return 0;var e=r(t),n=o(e);if(e!==n)throw RangeError("Wrong length!");return n}},function(t,e,n){var r=n(44),o=n(70),i=n(4),a=n(2).Reflect;t.exports=a&&a.ownKeys||function(t){var e=r.f(i(t)),n=o.f;return n?e.concat(n(t)):e}},function(t,e,n){var r=n(7),o=n(95),i=n(29);t.exports=function(t,e,n,a){var s=String(i(t)),u=s.length,c=void 0===n?" ":String(n),l=r(e);if(l<=u||""==c)return s;var f=l-u,h=o.call(c,Math.ceil(f/c.length));return h.length>f&&(h=h.slice(0,f)),a?h+s:s+h}},function(t,e,n){var r=n(9),o=n(41),i=n(18),a=n(62).f;t.exports=function(t){return function(e){for(var n,s=i(e),u=o(s),c=u.length,l=0,f=[];c>l;)n=u[l++],r&&!a.call(s,n)||f.push(t?[n,s[n]]:s[n]);return f}}},function(t,e){var n=t.exports={version:"2.6.12"};"number"==typeof __e&&(__e=n)},function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,e,n){"use strict";function r(t){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r(t)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=g(n(12)),i=g(n(20)),a=g(n(65)),s=g(n(80)),u=g(n(116)),c=g(n(178)),l=g(n(397)),f=g(n(179)),h=g(n(398)),p=g(n(400)),d=g(n(129)),v=g(n(402));function y(t){if("function"!=typeof WeakMap)return null;var e=new WeakMap,n=new WeakMap;return(y=function(t){return t?n:e})(t)}function g(t,e){if(!e&&t&&t.__esModule)return t;if(null===t||"object"!==r(t)&&"function"!=typeof t)return{default:t};var n=y(e);if(n&&n.has(t))return n.get(t);var o={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in t)if("default"!==a&&Object.prototype.hasOwnProperty.call(t,a)){var s=i?Object.getOwnPropertyDescriptor(t,a):null;s&&(s.get||s.set)?Object.defineProperty(o,a,s):o[a]=t[a]}return o.default=t,n&&n.set(t,o),o}var m=o.assign({},o,i,a,s,u,h,p,l,c,f,d,v);e.default=m},function(t,e){var n,r,o=t.exports={};function i(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function s(t){if(n===setTimeout)return setTimeout(t,0);if((n===i||!n)&&setTimeout)return n=setTimeout,setTimeout(t,0);try{return n(t,0)}catch(e){try{return n.call(null,t,0)}catch(e){return n.call(this,t,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:i}catch(t){n=i}try{r="function"==typeof clearTimeout?clearTimeout:a}catch(t){r=a}}();var u,c=[],l=!1,f=-1;function h(){l&&u&&(l=!1,u.length?c=u.concat(c):f=-1,c.length&&p())}function p(){if(!l){var t=s(h);l=!0;for(var e=c.length;e;){for(u=c,c=[];++f<e;)u&&u[f].run();f=-1,e=c.length}u=null,l=!1,function(t){if(r===clearTimeout)return clearTimeout(t);if((r===a||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(t);try{r(t)}catch(e){try{return r.call(null,t)}catch(e){return r.call(this,t)}}}(t)}}function d(t,e){this.fun=t,this.array=e}function v(){}o.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)e[n-1]=arguments[n];c.push(new d(t,e)),1!==c.length||l||s(p)},d.prototype.run=function(){this.fun.apply(null,this.array)},o.title="browser",o.browser=!0,o.env={},o.argv=[],o.version="",o.versions={},o.on=v,o.addListener=v,o.once=v,o.off=v,o.removeListener=v,o.removeAllListeners=v,o.emit=v,o.prependListener=v,o.prependOnceListener=v,o.listeners=function(t){return[]},o.binding=function(t){throw new Error("process.binding is not supported")},o.cwd=function(){return"/"},o.chdir=function(t){throw new Error("process.chdir is not supported")},o.umask=function(){return 0}},function(t,e,n){(function(r){var o;!function(r){"use strict";function i(t){var n=t&&t.Promise||r.Promise,o=t&&t.XMLHttpRequest||r.XMLHttpRequest;return function(){var t=Object.create(r,{fetch:{value:void 0,writable:!0}});return function(e){var r=void 0!==t&&t||"undefined"!=typeof self&&self||void 0!==r&&r,i={searchParams:"URLSearchParams"in r,iterable:"Symbol"in r&&"iterator"in Symbol,blob:"FileReader"in r&&"Blob"in r&&function(){try{return new Blob,!0}catch(t){return!1}}(),formData:"FormData"in r,arrayBuffer:"ArrayBuffer"in r};function a(t){return t&&DataView.prototype.isPrototypeOf(t)}if(i.arrayBuffer)var s=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],u=ArrayBuffer.isView||function(t){return t&&s.indexOf(Object.prototype.toString.call(t))>-1};function c(t){if("string"!=typeof t&&(t=String(t)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(t)||""===t)throw new TypeError("Invalid character in header field name");return t.toLowerCase()}function l(t){return"string"!=typeof t&&(t=String(t)),t}function f(t){var e={next:function(){var e=t.shift();return{done:void 0===e,value:e}}};return i.iterable&&(e[Symbol.iterator]=function(){return e}),e}function h(t){this.map={},t instanceof h?t.forEach((function(t,e){this.append(e,t)}),this):Array.isArray(t)?t.forEach((function(t){this.append(t[0],t[1])}),this):t&&Object.getOwnPropertyNames(t).forEach((function(e){this.append(e,t[e])}),this)}function p(t){if(t.bodyUsed)return n.reject(new TypeError("Already read"));t.bodyUsed=!0}function d(t){return new n((function(e,n){t.onload=function(){e(t.result)},t.onerror=function(){n(t.error)}}))}function v(t){var e=new FileReader,n=d(e);return e.readAsArrayBuffer(t),n}function y(t){var e=new FileReader,n=d(e);return e.readAsText(t),n}function g(t){for(var e=new Uint8Array(t),n=new Array(e.length),r=0;r<e.length;r++)n[r]=String.fromCharCode(e[r]);return n.join("")}function m(t){if(t.slice)return t.slice(0);var e=new Uint8Array(t.byteLength);return e.set(new Uint8Array(t)),e.buffer}function _(){return this.bodyUsed=!1,this._initBody=function(t){this.bodyUsed=this.bodyUsed,this._bodyInit=t,t?"string"==typeof t?this._bodyText=t:i.blob&&Blob.prototype.isPrototypeOf(t)?this._bodyBlob=t:i.formData&&FormData.prototype.isPrototypeOf(t)?this._bodyFormData=t:i.searchParams&&URLSearchParams.prototype.isPrototypeOf(t)?this._bodyText=t.toString():i.arrayBuffer&&i.blob&&a(t)?(this._bodyArrayBuffer=m(t.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):i.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(t)||u(t))?this._bodyArrayBuffer=m(t):this._bodyText=t=Object.prototype.toString.call(t):this._bodyText="",this.headers.get("content-type")||("string"==typeof t?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):i.searchParams&&URLSearchParams.prototype.isPrototypeOf(t)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},i.blob&&(this.blob=function(){var t=p(this);if(t)return t;if(this._bodyBlob)return n.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return n.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return n.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){if(this._bodyArrayBuffer){var t=p(this);return t||(ArrayBuffer.isView(this._bodyArrayBuffer)?n.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):n.resolve(this._bodyArrayBuffer))}return this.blob().then(v)}),this.text=function(){var t=p(this);if(t)return t;if(this._bodyBlob)return y(this._bodyBlob);if(this._bodyArrayBuffer)return n.resolve(g(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return n.resolve(this._bodyText)},i.formData&&(this.formData=function(){return this.text().then(T)}),this.json=function(){return this.text().then(JSON.parse)},this}h.prototype.append=function(t,e){t=c(t),e=l(e);var n=this.map[t];this.map[t]=n?n+", "+e:e},h.prototype.delete=function(t){delete this.map[c(t)]},h.prototype.get=function(t){return t=c(t),this.has(t)?this.map[t]:null},h.prototype.has=function(t){return this.map.hasOwnProperty(c(t))},h.prototype.set=function(t,e){this.map[c(t)]=l(e)},h.prototype.forEach=function(t,e){for(var n in this.map)this.map.hasOwnProperty(n)&&t.call(e,this.map[n],n,this)},h.prototype.keys=function(){var t=[];return this.forEach((function(e,n){t.push(n)})),f(t)},h.prototype.values=function(){var t=[];return this.forEach((function(e){t.push(e)})),f(t)},h.prototype.entries=function(){var t=[];return this.forEach((function(e,n){t.push([n,e])})),f(t)},i.iterable&&(h.prototype[Symbol.iterator]=h.prototype.entries);var b=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function w(t){var e=t.toUpperCase();return b.indexOf(e)>-1?e:t}function E(t,e){if(!(this instanceof E))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');var n=(e=e||{}).body;if(t instanceof E){if(t.bodyUsed)throw new TypeError("Already read");this.url=t.url,this.credentials=t.credentials,e.headers||(this.headers=new h(t.headers)),this.method=t.method,this.mode=t.mode,this.signal=t.signal,n||null==t._bodyInit||(n=t._bodyInit,t.bodyUsed=!0)}else this.url=String(t);if(this.credentials=e.credentials||this.credentials||"same-origin",!e.headers&&this.headers||(this.headers=new h(e.headers)),this.method=w(e.method||this.method||"GET"),this.mode=e.mode||this.mode||null,this.signal=e.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&n)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(n),!("GET"!==this.method&&"HEAD"!==this.method||"no-store"!==e.cache&&"no-cache"!==e.cache)){var r=/([?&])_=[^&]*/;if(r.test(this.url))this.url=this.url.replace(r,"$1_="+(new Date).getTime());else{var o=/\?/;this.url+=(o.test(this.url)?"&":"?")+"_="+(new Date).getTime()}}}function T(t){var e=new FormData;return t.trim().split("&").forEach((function(t){if(t){var n=t.split("="),r=n.shift().replace(/\+/g," "),o=n.join("=").replace(/\+/g," ");e.append(decodeURIComponent(r),decodeURIComponent(o))}})),e}function S(t){var e=new h;return t.replace(/\r?\n[\t ]+/g," ").split("\r").map((function(t){return 0===t.indexOf("\n")?t.substr(1,t.length):t})).forEach((function(t){var n=t.split(":"),r=n.shift().trim();if(r){var o=n.join(":").trim();e.append(r,o)}})),e}function O(t,e){if(!(this instanceof O))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');e||(e={}),this.type="default",this.status=void 0===e.status?200:e.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in e?e.statusText:"",this.headers=new h(e.headers),this.url=e.url||"",this._initBody(t)}E.prototype.clone=function(){return new E(this,{body:this._bodyInit})},_.call(E.prototype),_.call(O.prototype),O.prototype.clone=function(){return new O(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new h(this.headers),url:this.url})},O.error=function(){var t=new O(null,{status:0,statusText:""});return t.type="error",t};var C=[301,302,303,307,308];O.redirect=function(t,e){if(-1===C.indexOf(e))throw new RangeError("Invalid status code");return new O(null,{status:e,headers:{location:t}})},e.DOMException=r.DOMException;try{new e.DOMException}catch(t){e.DOMException=function(t,e){this.message=t,this.name=e;var n=Error(t);this.stack=n.stack},e.DOMException.prototype=Object.create(Error.prototype),e.DOMException.prototype.constructor=e.DOMException}function P(t,a){return new n((function(n,s){var u=new E(t,a);if(u.signal&&u.signal.aborted)return s(new e.DOMException("Aborted","AbortError"));var c=new o;function f(){c.abort()}function p(t){try{return""===t&&r.location.href?r.location.href:t}catch(e){return t}}c.onload=function(){var t={status:c.status,statusText:c.statusText,headers:S(c.getAllResponseHeaders()||"")};t.url="responseURL"in c?c.responseURL:t.headers.get("X-Request-URL");var e="response"in c?c.response:c.responseText;setTimeout((function(){n(new O(e,t))}),0)},c.onerror=function(){setTimeout((function(){s(new TypeError("Network request failed"))}),0)},c.ontimeout=function(){setTimeout((function(){s(new TypeError("Network request failed"))}),0)},c.onabort=function(){setTimeout((function(){s(new e.DOMException("Aborted","AbortError"))}),0)},c.open(u.method,p(u.url),!0),"include"===u.credentials?c.withCredentials=!0:"omit"===u.credentials&&(c.withCredentials=!1),"responseType"in c&&(i.blob?c.responseType="blob":i.arrayBuffer&&u.headers.get("Content-Type")&&-1!==u.headers.get("Content-Type").indexOf("application/octet-stream")&&(c.responseType="arraybuffer")),!a||"object"!=typeof a.headers||a.headers instanceof h?u.headers.forEach((function(t,e){c.setRequestHeader(e,t)})):Object.getOwnPropertyNames(a.headers).forEach((function(t){c.setRequestHeader(t,l(a.headers[t]))})),u.signal&&(u.signal.addEventListener("abort",f),c.onreadystatechange=function(){4===c.readyState&&u.signal.removeEventListener("abort",f)}),c.send(void 0===u._bodyInit?null:u._bodyInit)}))}P.polyfill=!0,r.fetch||(r.fetch=P,r.Headers=h,r.Request=E,r.Response=O),e.Headers=h,e.Request=E,e.Response=O,e.fetch=P,Object.defineProperty(e,"__esModule",{value:!0})}(e),{fetch:t.fetch,Headers:t.Headers,Request:t.Request,Response:t.Response,DOMException:t.DOMException}}()}void 0===(o=function(){return i}.call(e,n,e,t))||(t.exports=o)}("undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:void 0!==r?r:this)}).call(this,n(35))},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(48),o=n(49),i=n(32),a=n(50),s=n(66),u=n(51);function c(t){var e=[],n="";if(Object.keys(i.LAYER_KEYWORD_PARAMS).forEach((function(n){var r=i.LAYER_KEYWORD_PARAMS[n],o=t[n]||r;o!==r&&e.push(o)})),Object.keys(t).forEach((function(n){"letter_spacing"!==n&&"line_spacing"!==n||e.push("".concat(n,"_").concat(t[n])),"font_hinting"===n&&e.push("".concat(n.split("_").pop(),"_").concat(t[n])),"font_antialiasing"===n&&e.push("antialias_".concat(t[n]))})),t.hasOwnProperty("font_size")||!e||0===e.length){if(!t.font_size)throw"Must supply font_size for text in overlay/underlay";if(!t.font_family)throw"Must supply font_family for text in overlay/underlay";e.unshift(t.font_size),e.unshift(t.font_family),n=e.filter((function(t){return t})).join("_")}return n}n(36),n(37),n(52),n(59),e.processLayer=function(t){if(t instanceof s||t instanceof u)return t.toString();var e="";if(r.isObject(t))if("fetch"===t.resource_type||null!=t.url)e="fetch:".concat(o.base64Encode(t.url));else{var n=t.public_id,i=t.format,l=t.resource_type||"image",f=t.type||"upload",h=t.text,p=null,d=[],v=!n||0===n.length;if(v||(n=n.replace(new RegExp("/","g"),":"),null!=i&&(n="".concat(n,".").concat(i))),h&&0!==h.length||"text"===l){if(l="text",f=null,p=c(t),h&&h.length>=0){var y=!p;if(!v&&!y||v&&y)throw"Must supply either style parameters or a public_id when providing text parameter in a text overlay/underlay";var g=/\$\([a-zA-Z]\w*\)/g,m=0,_=a.smartEscape(decodeURIComponent(h),/[,\/]/g);h="";for(var b=g.exec(_);b;b=g.exec(_))h+=a.smartEscape(_.slice(m,b.index)),h+=b[0],m=b.index+b[0].length;h+=encodeURIComponent(_.slice(m))}}else{if(v)throw"Must supply public_id for resource_type layer_parameter";"subtitles"===l&&(p=c(t))}"image"!==l&&d.push(l),"upload"!==f&&d.push(f),d.push(p),d.push(n),d.push(h),e=d.filter((function(t){return t})).join(":")}else e=/^fetch:.+/.test(t)?"fetch:".concat(o.base64Encode(t.substr(6))):t;return e},e.textStyle=c},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(81);n(32),e.process_if=function(t){return t?"if_"+r.legacyNormalizeExpression(t):t}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.toArray=function(t){switch(!0){case null==t:return[];case Array.isArray(t):return t;default:return[t]}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(81);n(32),e.processRadius=function(t){var e=t;if(!e)return e;if(Array.isArray(e)||(e=[e]),0===e.length||e.length>4)throw new Error("Radius array should contain between 1 and 4 values");if(e.findIndex((function(t){return null===t}))>=0)throw new Error("Corner: Cannot be null");return e.map(r.legacyNormalizeExpression).join(":")}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(119);n(49),n(48),e.processCustomPreFunction=function(t){var e=r.processCustomFunction(t);return"string"==typeof e?"pre:".concat(e):null}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(32);e.splitRange=function(t){switch(t&&t.constructor){case String:return r.OFFSET_ANY_PATTERN_RE.test(t)?t.split(".."):t;case Array:return[[t],t[t.length-1]];default:return[null,null]}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(32);e.normRangeValues=function(t){var e=String(t).match(r.RANGE_VALUE_RE);if(e){var n=e[5]?"p":"";return"".concat(e[1]||e[4]).concat(n)}return t}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.processVideoParams=function(t){switch(t&&t.constructor){case Object:var e="";return"codec"in t&&(e=t.codec,"profile"in t&&(e+=":"+t.profile,"level"in t&&(e+=":"+t.level))),e;case String:return t;default:return null}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(67);e.processDpr=function(t){var e=t.toString();return(null!=e?e.match(/^\d+$/):void 0)?e+".0":r.normalize(e)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.applyWithProps=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=n.order,a=void 0===i?null:i,s=e,u=function(n){var r=e[n];void 0!==r&&t[n]&&(0,o.isFunction)(t[n])&&t[n](r)};a&&(s=(0,r.assign)({},e),a.forEach((function(t){u(t),delete s[t]})));Object.keys(s).forEach((function(t){u(t)}))};var r=n(12),o=n(13)},function(t,e,n){"use strict";function r(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function o(t,e,n){return e&&r(t.prototype,e),n&&r(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0}),e.mixin=function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return e.reduce((function(t,e){return e(t)}),o((function t(){i(this,t)})))}},function(t,e,n){"use strict";n.r(e)},function(t,e,n){"use strict";function r(t){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r(t)}var o;function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function s(){return s="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var r=u(t,e);if(r){var o=Object.getOwnPropertyDescriptor(r,e);return o.get?o.get.call(arguments.length<3?t:n):o.value}},s.apply(this,arguments)}function u(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=h(t)););return t}function c(t,e){return c=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},c(t,e)}function l(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=h(t);if(e){var o=h(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return f(this,n)}}function f(t,e){if(e&&("object"===r(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function h(t){return h=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},h(t)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var p=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&c(t,e)}(u,t);var e,n,r,o=l(u);function u(){return i(this,u),o.apply(this,arguments)}return e=u,(n=[{key:"setItem",value:function(t){var e=t.action,n=t.source;this.source=n;var r=n.info();this.setTitle(r.title||n.publicId()),this.setPoster(this.source.poster().url({transformation:{aspect_ratio:"16:9",crop:"pad",background:"black"}})),this.setAction(e)}},{key:"setTitle",value:function(t){this.title.innerText=t}},{key:"setAction",value:function(t){this.action=t}},{key:"handleClick",value:function(){s(h(u.prototype),"handleClick",this).call(this),this.player().trigger("recommendationshide"),this.action()}}])&&a(e.prototype,n),r&&a(e,r),Object.defineProperty(e,"prototype",{writable:!1}),u}(((o=n(1))&&o.__esModule?o:{default:o}).default.getComponent("ClickableComponent")),d=p;e.default=d},function(t,e,n){"use strict";var r=function(t){t.style.display="none"},o=function(t){t.style.display=""};t.exports={hide:r,show:o,setText:function(t,e){if(!e||e.length<=0)return t.innerText="",void r(t);t.innerText=e,o(t)}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.throttle=e.parseTime=e.parseISO8601=e.debounce=void 0;var r=void 0;function o(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null==n)return;var r,o,i=[],a=!0,s=!1;try{for(n=n.call(t);!(a=(r=n.next()).done)&&(i.push(r.value),!e||i.length!==e);a=!0);}catch(t){s=!0,o=t}finally{try{a||null==n.return||n.return()}finally{if(s)throw o}}return i}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return i(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return i(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var a=[1,4,5,6,7,10,11];e.parseISO8601=function(t){var e=0,n=0,r=0;if(n=/^(\d{4}|[+\-]\d{6})(?:-(\d{2})(?:-(\d{2}))?)?(?:T(\d{2}):(\d{2})(?::(\d{2})(?:\.(\d{3}))?)?(?:(Z)|([+\-])(\d{2})(?::(\d{2}))?)?)?$/.exec(t)){for(var o,i=0;o=a[i];++i)n[o]=+n[o]||0;n[2]=(+n[2]||1)-1,n[3]=+n[3]||1,"Z"!==n[8]&&void 0!==n[9]&&(r=60*n[10]+n[11],"+"===n[9]&&(r=0-r)),e=Date.UTC(n[1],n[2],n[3],n[4],n[5]+r,n[6],n[7])}else e=NaN;return e};e.parseTime=function(t){var e=o(t.split(":").reverse(),3),n=e[0],r=e[1],i=e[2],a=null;return isNaN(n)||(a=60*(+i||0)*60+60*(+r||0)+ +n),a};e.debounce=function(t,e){var n=null;return function(){for(var o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];clearTimeout(n),n=setTimeout((function(){t.apply(r,i)}),e)}};e.throttle=function(t,e){var n=0;return function(){var o=new Date;if(o-n>=e){for(var i=arguments.length,a=new Array(i),s=0;s<i;s++)a[s]=arguments[s];t.apply(r,a),n=o}}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=n(31),o=n(20),i=n(131);function a(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function s(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?a(Object(n),!0).forEach((function(e){l(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function u(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function c(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function l(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var f=function(){function t(e){var n=this,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};u(this,t),l(this,"_transformation",null);var a=(0,r.normalizeOptions)(e,i),s=a.publicId,c=a.options,f=(0,o.sliceAndUnsetProperties)(c,"cloudinaryConfig"),h=f.cloudinaryConfig,p=(0,o.sliceAndUnsetProperties)(c,"transformation"),d=p.transformation,v=(0,o.sliceAndUnsetProperties)(c,"queryParams"),y=v.queryParams;if(!h)throw new Error('Source is missing "cloudinaryConfig".');this.publicId=function(){return s},this.cloudinaryConfig=function(){return h},this.resourceConfig=function(){return c},this.queryParams=function(){return y},this.getType=function(){return n._type},this.transformation(d)}var e,n,a;return e=t,n=[{key:"transformation",value:function(t){return t&&(this._transformation=t),this._transformation}},{key:"config",value:function(){var t=this,e=this.cloudinaryConfig();return{cloud_name:e.cloudName,url:function(n,o){if((0,r.isRawUrl)(n))return n;var i=(0,r.mergeTransformations)(t.resourceConfig(),o);return(0,r.getCloudinaryUrl)(n,s(s({},e),i))}}}},{key:"url",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.transformation,n=this.config().url(this.publicId(),{transformation:e||this.transformation()}),r=this.queryParams()?(0,i.objectToQuerystring)(this.queryParams()):"";return"".concat(n).concat(r)}}],n&&c(e.prototype,n),a&&c(e,a),Object.defineProperty(e,"prototype",{writable:!1}),t}(),h=f;e.default=h},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SHOPPABLE_WIDGET_OPTIONS_DEFAULTS=e.SHOPPABLE_PRODUCTS_OVERLAY_CLASS=e.SHOPPABLE_PANEL_VISIBLE_CLASS=e.SHOPPABLE_PANEL_HIDDEN_CLASS=e.SHOPPABLE_HOVER_ACTIONS=e.SHOPPABLE_CLICK_ACTIONS=e.SHOPPABLE_ANIMATION_CLASS=e.ICON_CART_CLASS=e.CLOSE_ICON_CLASS=e.CLD_SPBL_TOGGLE_ICON_CLASS=e.CLD_SPBL_TOGGLE_CUSTOM_ICON_CLASS=e.CLD_SPBL_TOGGLE_CLASS=e.CLD_SPBL_PANEL_CLASS=e.CLD_SPBL_ITEM=e.CLD_SPBL_INNER_BAR=e.CLD_SPBL_IMAGE=void 0;e.SHOPPABLE_WIDGET_OPTIONS_DEFAULTS={location:"right",toggleIcon:"",width:"20%",startState:"openOnPlay",autoClose:2,transformation:{quality:"auto",width:"auto",fetch_format:"auto",crop:"scale"},products:[],showPostPlayOverlay:!1};e.SHOPPABLE_CLICK_ACTIONS={GO_TO:"goto",SEEk:"seek"};e.SHOPPABLE_HOVER_ACTIONS={OVERLAY:"overlay"};e.SHOPPABLE_PANEL_VISIBLE_CLASS="shoppable-panel-visible";e.SHOPPABLE_PANEL_HIDDEN_CLASS="shoppable-panel-hidden";e.SHOPPABLE_PRODUCTS_OVERLAY_CLASS="shoppable-products-overlay";e.CLD_SPBL_PANEL_CLASS="cld-spbl-panel";e.CLD_SPBL_TOGGLE_CLASS="cld-spbl-toggle";e.CLD_SPBL_TOGGLE_ICON_CLASS="cld-spbl-toggle-icon";e.CLD_SPBL_INNER_BAR="cld-spbl-bar-inner";e.CLD_SPBL_TOGGLE_CUSTOM_ICON_CLASS="cld-spbl-toggle-custom-icon";e.ICON_CART_CLASS="vjs-icon-cart";e.CLOSE_ICON_CLASS="vjs-icon-close";e.SHOPPABLE_ANIMATION_CLASS="animate";e.CLD_SPBL_ITEM="cld-spbl-item";e.CLD_SPBL_IMAGE="cld-spbl-img"},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.wrap=e.styleElement=e.elementsCreator=e.createElement=e.addEventListener=void 0;var r=n(85),o=n(13);function i(t){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i(t)}e.wrap=function(t,e){return t.parentNode.insertBefore(e,t),e.appendChild(t),e};var a=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0,o=document.createElement(t);for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&o.setAttribute(i,e[i]);return(0,r.castArray)(n).forEach((function(t){return s(t,o)})),o};e.createElement=a;var s=function(t,e){if((0,o.isElement)(t))e.appendChild(t);else if(t&&"object"!==i(t)){var n=document.createTextNode(t);e.appendChild(n)}},u=function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t.style[n]=e[n]);return t};e.styleElement=u;e.elementsCreator=function t(e){var n=Array.isArray(e.children)?e.children.map(t):e.children,r=(0,o.isElement)(e)?e:a(e.tag,e.attr,n);return e.onClick&&(e.event={name:"click",callback:e.onClick}),e.event&&r.addEventListener(e.event.name,e.event.callback,!1),e.style&&u(r,e.style),r};e.addEventListener=function(t,e,n){return t.addEventListener(e,n,!1),function(){t.removeEventListener(e,n,!1)}}},function(t,e,n){"use strict";function r(t){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r(t)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o,i=(o=n(1))&&o.__esModule?o:{default:o};function a(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function s(t,e){return s=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},s(t,e)}function u(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=l(t);if(e){var o=l(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return c(this,n)}}function c(t,e){if(e&&("object"===r(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function l(t){return l=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},l(t)}var f=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&s(t,e)}(c,t);var e,n,r,o=u(c);function c(t,e){var n;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,c),n=o.call(this,t,e);var r=e.type;if(!r&&"previous"!==r&&"next"!==r)throw new Error("Type must be either 'previous' or 'next'");return n}return e=c,(n=[{key:"createEl",value:function(){var t=this.options_.type,e="vjs-icon-play-".concat(t);return i.default.dom.createEl("button",{className:"vjs-control vjs-playlist-button vjs-button ".concat(e)})}}])&&a(e.prototype,n),r&&a(e,r),Object.defineProperty(e,"prototype",{writable:!1}),c}(i.default.getComponent("ClickableComponent"));e.default=f},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.UPCOMING_VIDEO_TRANSITION=e.PLAYLIST_DEFAULTS_OPTIONS=e.DEFAULT_PRESENT_UPCOMING=e.DEFAULT_AUTO_ADVANCE=void 0;e.DEFAULT_AUTO_ADVANCE=0;e.DEFAULT_PRESENT_UPCOMING=10;e.UPCOMING_VIDEO_TRANSITION=1;e.PLAYLIST_DEFAULTS_OPTIONS={fluid:!1,show:!0,direction:"vertical",total:4,selector:!1,renderTo:[]}},function(t,e,n){"use strict";function r(t){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r(t)}Object.defineProperty(e,"__esModule",{value:!0}),e.normalizeEventsParam=e.default=void 0;var o=c(n(1)),i=c(n(449)),a=n(12),s=n(13),u=n(27);function c(t){return t&&t.__esModule?t:{default:t}}function l(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function f(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function h(t,e){return h=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},h(t,e)}function p(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=y(t);if(e){var o=y(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return d(this,n)}}function d(t,e){if(e&&("object"===r(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return v(t)}function v(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function y(t){return y=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},y(t)}var g={percentsplayed:{percents:[25,50,75,100]}},m={events:[u.PLAYER_EVENT.PERCENTS_PLAYED,u.PLAYER_EVENT.PAUSE_NO_SEEK,u.PLAYER_EVENT.SEEK,u.PLAYER_EVENT.MUTE,u.PLAYER_EVENT.UNMUTE,u.PLAYER_EVENT.QUALITY_CHANGED]},_=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&h(t,e)}(a,t);var e,n,r,i=p(a);function a(t){var e,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};f(this,a),(e=i.call(this)).player=t;var r=o.default.mergeOptions(m,n),s={lastState:void 0},c=0,l=0,h=!1,p=[],d=[],y=null,_=!1,T=function(t){e.player.muted()&&"muted"!==s.lastState?(s.lastState="muted",e.emit(u.PLAYER_EVENT.MUTE,t)):e.player.muted()||"unmuted"===s.lastState||(s.lastState="unmuted",e.emit(u.PLAYER_EVENT.UNMUTE,t))},S=function(t){var n=e.player.currentTime(),r=e.player.duration(),o=function(n,r){r.originalType="timeupdate",e.emit(n,t,r)};if(e.events.percentsplayed&&e.events.percentsplayed.percents.forEach((function(t){w(n,r,t)&&-1===p.indexOf(t)&&(p.push(t),o(u.PLAYER_EVENT.PERCENTS_PLAYED,{percent:t}))})),e.events.timeplayed){var i=e.events.timeplayed;(i.interval?[Math.floor(n/i.interval)*i.interval]:i.times).forEach((function(t){E(n,t)&&-1===d.indexOf(t)&&(d.push(t),o(u.PLAYER_EVENT.TIME_PLAYED,{time:t}))}))}e.events.seek&&(c=l,l=n,Math.abs(c-l)>1&&(h=!0,x(),o(u.PLAYER_EVENT.SEEK,{seekStart:c,seekEnd:l})))},O=function(t){Math.round(e.player.currentTime())===Math.round(e.player.duration())||h||e.emit(u.PLAYER_EVENT.PAUSE_NO_SEEK,t)},C=function(){h=!1},P=function(){_&&(e.player.trigger("replay"),_=!1)},k=function(){e.player.currentSource().src!==y&&(x(),y=e.player.currentSource().src)},j=function(t){for(var n=v(e),r=e.player.textTracks(),o=null,i=0;i<r.length;i++)"segment-metadata"===r[i].label&&(o=r[i]);var a=null;o&&o.on("cuechange",(function(){var e=o.activeCues[0];if(e){var r=e.value.resolution;if(a!==r){var i={from:a,to:r};n.emit(u.PLAYER_EVENT.QUALITY_CHANGED,t,i)}a=r}}))},A=function(){s={lastState:void 0},c=l=0,h=!1,x()},x=function(){p=[],d=[]},R=function(){_=!0};return e.events=b(r.events,g),A(),e.player.on(u.PLAYER_EVENT.PLAY,P.bind(v(e))),e.player.on(u.PLAYER_EVENT.ENDED,R.bind(v(e))),(e.events.percentsplayed||e.events.timeplayed||e.events.seek||e.events.totaltimeplayed)&&e.player.on(u.PLAYER_EVENT.TIME_UPDATE,S.bind(v(e))),(e.events.mute||e.events.unmute)&&e.player.on(u.PLAYER_EVENT.VOLUME_CHANGE,T.bind(v(e))),e.events.pausenoseek&&(e.player.on(u.PLAYER_EVENT.PAUSE,O.bind(v(e))),e.player.on(u.PLAYER_EVENT.PLAY,C.bind(v(e)))),e.player.on(u.PLAYER_EVENT.LOADED_METADATA,k.bind(v(e))),e.player.on(u.PLAYER_EVENT.LOADED_DATA,j.bind(v(e))),e}return e=a,n&&l(e.prototype,n),r&&l(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}(i.default),b=function(t,e){var n=t;return"Array"===t.constructor.name&&(n=t.reduce((function(t,n){var r=e[n]||{};return(0,s.isPlainObject)(n)?t[n.type]=(0,a.assign)({},r,n):t[n]=r,t}),{})),n};e.normalizeEventsParam=b;var w=function(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:.5,o=e*n/100;return E(t,o,r)},E=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:.5;return t<=e+n&&t>=e-n},T=_;e.default=T},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isValueValid=e.isValidConfig=e.getValidatorItem=void 0;var r=n(13),o=function(t){return(0,r.isFunction)(t)?t():t};e.getValidatorItem=o;var i=function(t,e,n){var r=o(t),i=r.value(e);return i||console.error("cloudinary video player: ".concat(r.message(n))),i};e.isValueValid=i;e.isValidConfig=function t(e,n){if((0,r.isPlainObject)(n))for(var o in e)if(Object.prototype.hasOwnProperty.call(n,o)){var a=e[o],s=n[o],u=(0,r.isPlainObject)(a);if(u&&!t(a,s))return!1;if(!u&&!i(s,a,o))return!1}return!0}},function(t,e,n){"use strict";e.a=function(t){var e=this.constructor;return this.then((function(n){return e.resolve(t()).then((function(){return n}))}),(function(n){return e.resolve(t()).then((function(){return e.reject(n)}))}))}},function(t,e,n){"use strict";e.a=function(t){return new this((function(e,n){if(!t||void 0===t.length)return n(new TypeError(typeof t+" "+t+" is not iterable(cannot read property Symbol(Symbol.iterator))"));var r=Array.prototype.slice.call(t);if(0===r.length)return e([]);var o=r.length;function i(t,n){if(n&&("object"==typeof n||"function"==typeof n)){var a=n.then;if("function"==typeof a)return void a.call(n,(function(e){i(t,e)}),(function(n){r[t]={status:"rejected",reason:n},0==--o&&e(r)}))}r[t]={status:"fulfilled",value:n},0==--o&&e(r)}for(var a=0;a<r.length;a++)i(a,r[a])}))}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.videoPlayers=e.videoPlayer=void 0,n(194),n(380);var r,o=(r=n(381))&&r.__esModule?r:{default:r},i=n(12),a=n(127),s=n(60);function u(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function c(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?u(Object(n),!0).forEach((function(e){l(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function l(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}window.cloudinary&&window.cloudinary.Cloudinary;var f=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1?arguments[1]:void 0;return(0,i.assign)((0,a.omit)(t,s.CLOUDINARY_CONFIG_PARAM),{cloudinaryConfig:e||(0,a.pick)(t,s.CLOUDINARY_CONFIG_PARAM)})},h=function(t){return function(e,n,r){return new o.default(e,f(n,t),r)}},p=function(t){return function(e,n,r){return o.default.all(e,f(n,t),r)}},d=h();e.videoPlayer=d;var v=p();e.videoPlayers=v,window.cloudinary=c(c({},window.cloudinary||{}),{},{videoPlayer:d,videoPlayers:v,Cloudinary:{new:function(t){return{videoPlayer:h(t),videoPlayers:p(t)}}}})},function(t,e,n){"use strict";n(195);var r,o=(r=n(367))&&r.__esModule?r:{default:r};o.default._babelPolyfill&&"undefined"!=typeof console&&console.warn,o.default._babelPolyfill=!0},function(t,e,n){"use strict";n(196),n(339),n(341),n(344),n(346),n(348),n(350),n(352),n(354),n(356),n(358),n(360),n(362),n(366)},function(t,e,n){n(197),n(200),n(201),n(202),n(203),n(204),n(205),n(206),n(207),n(208),n(209),n(210),n(211),n(212),n(213),n(214),n(215),n(216),n(217),n(218),n(219),n(220),n(221),n(222),n(223),n(224),n(225),n(226),n(227),n(228),n(229),n(230),n(231),n(232),n(233),n(234),n(235),n(236),n(237),n(238),n(239),n(240),n(241),n(243),n(244),n(245),n(246),n(247),n(248),n(249),n(250),n(251),n(252),n(253),n(254),n(255),n(256),n(257),n(258),n(259),n(260),n(261),n(262),n(263),n(264),n(265),n(266),n(267),n(268),n(269),n(270),n(271),n(272),n(273),n(274),n(275),n(276),n(278),n(279),n(281),n(282),n(283),n(284),n(285),n(286),n(287),n(289),n(290),n(291),n(292),n(293),n(294),n(295),n(296),n(297),n(298),n(299),n(300),n(301),n(107),n(302),n(153),n(303),n(154),n(304),n(305),n(306),n(307),n(155),n(310),n(311),n(312),n(313),n(314),n(315),n(316),n(317),n(318),n(319),n(320),n(321),n(322),n(323),n(324),n(325),n(326),n(327),n(328),n(329),n(330),n(331),n(332),n(333),n(334),n(335),n(336),n(337),n(338),t.exports=n(8)},function(t,e,n){"use strict";var r=n(2),o=n(16),i=n(9),a=n(0),s=n(14),u=n(34).KEY,c=n(3),l=n(68),f=n(53),h=n(39),p=n(6),d=n(88),v=n(134),y=n(199),g=n(71),m=n(4),_=n(5),b=n(11),w=n(18),E=n(33),T=n(38),S=n(43),O=n(137),C=n(24),P=n(70),k=n(10),j=n(41),A=C.f,x=k.f,R=O.f,L=r.Symbol,I=r.JSON,N=I&&I.stringify,M=p("_hidden"),D=p("toPrimitive"),F={}.propertyIsEnumerable,B=l("symbol-registry"),V=l("symbols"),U=l("op-symbols"),H=Object.prototype,Y="function"==typeof L&&!!P.f,z=r.QObject,W=!z||!z.prototype||!z.prototype.findChild,G=i&&c((function(){return 7!=S(x({},"a",{get:function(){return x(this,"a",{value:7}).a}})).a}))?function(t,e,n){var r=A(H,e);r&&delete H[e],x(t,e,n),r&&t!==H&&x(H,e,r)}:x,K=function(t){var e=V[t]=S(L.prototype);return e._k=t,e},X=Y&&"symbol"==typeof L.iterator?function(t){return"symbol"==typeof t}:function(t){return t instanceof L},q=function(t,e,n){return t===H&&q(U,e,n),m(t),e=E(e,!0),m(n),o(V,e)?(n.enumerable?(o(t,M)&&t[M][e]&&(t[M][e]=!1),n=S(n,{enumerable:T(0,!1)})):(o(t,M)||x(t,M,T(1,{})),t[M][e]=!0),G(t,e,n)):x(t,e,n)},$=function(t,e){m(t);for(var n,r=y(e=w(e)),o=0,i=r.length;i>o;)q(t,n=r[o++],e[n]);return t},J=function(t){var e=F.call(this,t=E(t,!0));return!(this===H&&o(V,t)&&!o(U,t))&&(!(e||!o(this,t)||!o(V,t)||o(this,M)&&this[M][t])||e)},Q=function(t,e){if(t=w(t),e=E(e,!0),t!==H||!o(V,e)||o(U,e)){var n=A(t,e);return!n||!o(V,e)||o(t,M)&&t[M][e]||(n.enumerable=!0),n}},Z=function(t){for(var e,n=R(w(t)),r=[],i=0;n.length>i;)o(V,e=n[i++])||e==M||e==u||r.push(e);return r},tt=function(t){for(var e,n=t===H,r=R(n?U:w(t)),i=[],a=0;r.length>a;)!o(V,e=r[a++])||n&&!o(H,e)||i.push(V[e]);return i};Y||(L=function(){if(this instanceof L)throw TypeError("Symbol is not a constructor!");var t=h(arguments.length>0?arguments[0]:void 0),e=function(n){this===H&&e.call(U,n),o(this,M)&&o(this[M],t)&&(this[M][t]=!1),G(this,t,T(1,n))};return i&&W&&G(H,t,{configurable:!0,set:e}),K(t)},s(L.prototype,"toString",(function(){return this._k})),C.f=Q,k.f=q,n(44).f=O.f=Z,n(62).f=J,P.f=tt,i&&!n(40)&&s(H,"propertyIsEnumerable",J,!0),d.f=function(t){return K(p(t))}),a(a.G+a.W+a.F*!Y,{Symbol:L});for(var et="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),nt=0;et.length>nt;)p(et[nt++]);for(var rt=j(p.store),ot=0;rt.length>ot;)v(rt[ot++]);a(a.S+a.F*!Y,"Symbol",{for:function(t){return o(B,t+="")?B[t]:B[t]=L(t)},keyFor:function(t){if(!X(t))throw TypeError(t+" is not a symbol!");for(var e in B)if(B[e]===t)return e},useSetter:function(){W=!0},useSimple:function(){W=!1}}),a(a.S+a.F*!Y,"Object",{create:function(t,e){return void 0===e?S(t):$(S(t),e)},defineProperty:q,defineProperties:$,getOwnPropertyDescriptor:Q,getOwnPropertyNames:Z,getOwnPropertySymbols:tt});var it=c((function(){P.f(1)}));a(a.S+a.F*it,"Object",{getOwnPropertySymbols:function(t){return P.f(b(t))}}),I&&a(a.S+a.F*(!Y||c((function(){var t=L();return"[null]"!=N([t])||"{}"!=N({a:t})||"{}"!=N(Object(t))}))),"JSON",{stringify:function(t){for(var e,n,r=[t],o=1;arguments.length>o;)r.push(arguments[o++]);if(n=e=r[1],(_(e)||void 0!==t)&&!X(t))return g(e)||(e=function(t,e){if("function"==typeof n&&(e=n.call(this,t,e)),!X(e))return e}),r[1]=e,N.apply(I,r)}}),L.prototype[D]||n(17)(L.prototype,D,L.prototype.valueOf),f(L,"Symbol"),f(Math,"Math",!0),f(r.JSON,"JSON",!0)},function(t,e,n){t.exports=n(68)("native-function-to-string",Function.toString)},function(t,e,n){var r=n(41),o=n(70),i=n(62);t.exports=function(t){var e=r(t),n=o.f;if(n)for(var a,s=n(t),u=i.f,c=0;s.length>c;)u.call(t,a=s[c++])&&e.push(a);return e}},function(t,e,n){var r=n(0);r(r.S,"Object",{create:n(43)})},function(t,e,n){var r=n(0);r(r.S+r.F*!n(9),"Object",{defineProperty:n(10).f})},function(t,e,n){var r=n(0);r(r.S+r.F*!n(9),"Object",{defineProperties:n(136)})},function(t,e,n){var r=n(18),o=n(24).f;n(25)("getOwnPropertyDescriptor",(function(){return function(t,e){return o(r(t),e)}}))},function(t,e,n){var r=n(11),o=n(45);n(25)("getPrototypeOf",(function(){return function(t){return o(r(t))}}))},function(t,e,n){var r=n(11),o=n(41);n(25)("keys",(function(){return function(t){return o(r(t))}}))},function(t,e,n){n(25)("getOwnPropertyNames",(function(){return n(137).f}))},function(t,e,n){var r=n(5),o=n(34).onFreeze;n(25)("freeze",(function(t){return function(e){return t&&r(e)?t(o(e)):e}}))},function(t,e,n){var r=n(5),o=n(34).onFreeze;n(25)("seal",(function(t){return function(e){return t&&r(e)?t(o(e)):e}}))},function(t,e,n){var r=n(5),o=n(34).onFreeze;n(25)("preventExtensions",(function(t){return function(e){return t&&r(e)?t(o(e)):e}}))},function(t,e,n){var r=n(5);n(25)("isFrozen",(function(t){return function(e){return!r(e)||!!t&&t(e)}}))},function(t,e,n){var r=n(5);n(25)("isSealed",(function(t){return function(e){return!r(e)||!!t&&t(e)}}))},function(t,e,n){var r=n(5);n(25)("isExtensible",(function(t){return function(e){return!!r(e)&&(!t||t(e))}}))},function(t,e,n){var r=n(0);r(r.S+r.F,"Object",{assign:n(138)})},function(t,e,n){var r=n(0);r(r.S,"Object",{is:n(139)})},function(t,e,n){var r=n(0);r(r.S,"Object",{setPrototypeOf:n(92).set})},function(t,e,n){"use strict";var r=n(63),o={};o[n(6)("toStringTag")]="z",o+""!="[object z]"&&n(14)(Object.prototype,"toString",(function(){return"[object "+r(this)+"]"}),!0)},function(t,e,n){var r=n(0);r(r.P,"Function",{bind:n(140)})},function(t,e,n){var r=n(10).f,o=Function.prototype,i=/^\s*function ([^ (]*)/,a="name";a in o||n(9)&&r(o,a,{configurable:!0,get:function(){try{return(""+this).match(i)[1]}catch(t){return""}}})},function(t,e,n){"use strict";var r=n(5),o=n(45),i=n(6)("hasInstance"),a=Function.prototype;i in a||n(10).f(a,i,{value:function(t){if("function"!=typeof this||!r(t))return!1;if(!r(this.prototype))return t instanceof this;for(;t=o(t);)if(this.prototype===t)return!0;return!1}})},function(t,e,n){var r=n(0),o=n(142);r(r.G+r.F*(parseInt!=o),{parseInt:o})},function(t,e,n){var r=n(0),o=n(143);r(r.G+r.F*(parseFloat!=o),{parseFloat:o})},function(t,e,n){"use strict";var r=n(2),o=n(16),i=n(28),a=n(94),s=n(33),u=n(3),c=n(44).f,l=n(24).f,f=n(10).f,h=n(54).trim,p="Number",d=r.Number,v=d,y=d.prototype,g=i(n(43)(y))==p,m="trim"in String.prototype,_=function(t){var e=s(t,!1);if("string"==typeof e&&e.length>2){var n,r,o,i=(e=m?e.trim():h(e,3)).charCodeAt(0);if(43===i||45===i){if(88===(n=e.charCodeAt(2))||120===n)return NaN}else if(48===i){switch(e.charCodeAt(1)){case 66:case 98:r=2,o=49;break;case 79:case 111:r=8,o=55;break;default:return+e}for(var a,u=e.slice(2),c=0,l=u.length;c<l;c++)if((a=u.charCodeAt(c))<48||a>o)return NaN;return parseInt(u,r)}}return+e};if(!d(" 0o1")||!d("0b1")||d("+0x1")){d=function(t){var e=arguments.length<1?0:t,n=this;return n instanceof d&&(g?u((function(){y.valueOf.call(n)})):i(n)!=p)?a(new v(_(e)),n,d):_(e)};for(var b,w=n(9)?c(v):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),E=0;w.length>E;E++)o(v,b=w[E])&&!o(d,b)&&f(d,b,l(v,b));d.prototype=y,y.constructor=d,n(14)(r,p,d)}},function(t,e,n){"use strict";var r=n(0),o=n(23),i=n(144),a=n(95),s=1..toFixed,u=Math.floor,c=[0,0,0,0,0,0],l="Number.toFixed: incorrect invocation!",f="0",h=function(t,e){for(var n=-1,r=e;++n<6;)r+=t*c[n],c[n]=r%1e7,r=u(r/1e7)},p=function(t){for(var e=6,n=0;--e>=0;)n+=c[e],c[e]=u(n/t),n=n%t*1e7},d=function(){for(var t=6,e="";--t>=0;)if(""!==e||0===t||0!==c[t]){var n=String(c[t]);e=""===e?n:e+a.call(f,7-n.length)+n}return e},v=function(t,e,n){return 0===e?n:e%2==1?v(t,e-1,n*t):v(t*t,e/2,n)};r(r.P+r.F*(!!s&&("0.000"!==8e-5.toFixed(3)||"1"!==.9.toFixed(0)||"1.25"!==1.255.toFixed(2)||"1000000000000000128"!==(0xde0b6b3a7640080).toFixed(0))||!n(3)((function(){s.call({})}))),"Number",{toFixed:function(t){var e,n,r,s,u=i(this,l),c=o(t),y="",g=f;if(c<0||c>20)throw RangeError(l);if(u!=u)return"NaN";if(u<=-1e21||u>=1e21)return String(u);if(u<0&&(y="-",u=-u),u>1e-21)if(e=function(t){for(var e=0,n=t;n>=4096;)e+=12,n/=4096;for(;n>=2;)e+=1,n/=2;return e}(u*v(2,69,1))-69,n=e<0?u*v(2,-e,1):u/v(2,e,1),n*=4503599627370496,(e=52-e)>0){for(h(0,n),r=c;r>=7;)h(1e7,0),r-=7;for(h(v(10,r,1),0),r=e-1;r>=23;)p(1<<23),r-=23;p(1<<r),h(1,1),p(2),g=d()}else h(0,n),h(1<<-e,0),g=d()+a.call(f,c);return g=c>0?y+((s=g.length)<=c?"0."+a.call(f,c-s)+g:g.slice(0,s-c)+"."+g.slice(s-c)):y+g}})},function(t,e,n){"use strict";var r=n(0),o=n(3),i=n(144),a=1..toPrecision;r(r.P+r.F*(o((function(){return"1"!==a.call(1,void 0)}))||!o((function(){a.call({})}))),"Number",{toPrecision:function(t){var e=i(this,"Number#toPrecision: incorrect invocation!");return void 0===t?a.call(e):a.call(e,t)}})},function(t,e,n){var r=n(0);r(r.S,"Number",{EPSILON:Math.pow(2,-52)})},function(t,e,n){var r=n(0),o=n(2).isFinite;r(r.S,"Number",{isFinite:function(t){return"number"==typeof t&&o(t)}})},function(t,e,n){var r=n(0);r(r.S,"Number",{isInteger:n(145)})},function(t,e,n){var r=n(0);r(r.S,"Number",{isNaN:function(t){return t!=t}})},function(t,e,n){var r=n(0),o=n(145),i=Math.abs;r(r.S,"Number",{isSafeInteger:function(t){return o(t)&&i(t)<=9007199254740991}})},function(t,e,n){var r=n(0);r(r.S,"Number",{MAX_SAFE_INTEGER:9007199254740991})},function(t,e,n){var r=n(0);r(r.S,"Number",{MIN_SAFE_INTEGER:-9007199254740991})},function(t,e,n){var r=n(0),o=n(143);r(r.S+r.F*(Number.parseFloat!=o),"Number",{parseFloat:o})},function(t,e,n){var r=n(0),o=n(142);r(r.S+r.F*(Number.parseInt!=o),"Number",{parseInt:o})},function(t,e,n){var r=n(0),o=n(146),i=Math.sqrt,a=Math.acosh;r(r.S+r.F*!(a&&710==Math.floor(a(Number.MAX_VALUE))&&a(1/0)==1/0),"Math",{acosh:function(t){return(t=+t)<1?NaN:t>94906265.62425156?Math.log(t)+Math.LN2:o(t-1+i(t-1)*i(t+1))}})},function(t,e,n){var r=n(0),o=Math.asinh;r(r.S+r.F*!(o&&1/o(0)>0),"Math",{asinh:function t(e){return isFinite(e=+e)&&0!=e?e<0?-t(-e):Math.log(e+Math.sqrt(e*e+1)):e}})},function(t,e,n){var r=n(0),o=Math.atanh;r(r.S+r.F*!(o&&1/o(-0)<0),"Math",{atanh:function(t){return 0==(t=+t)?t:Math.log((1+t)/(1-t))/2}})},function(t,e,n){var r=n(0),o=n(96);r(r.S,"Math",{cbrt:function(t){return o(t=+t)*Math.pow(Math.abs(t),1/3)}})},function(t,e,n){var r=n(0);r(r.S,"Math",{clz32:function(t){return(t>>>=0)?31-Math.floor(Math.log(t+.5)*Math.LOG2E):32}})},function(t,e,n){var r=n(0),o=Math.exp;r(r.S,"Math",{cosh:function(t){return(o(t=+t)+o(-t))/2}})},function(t,e,n){var r=n(0),o=n(97);r(r.S+r.F*(o!=Math.expm1),"Math",{expm1:o})},function(t,e,n){var r=n(0);r(r.S,"Math",{fround:n(242)})},function(t,e,n){var r=n(96),o=Math.pow,i=o(2,-52),a=o(2,-23),s=o(2,127)*(2-a),u=o(2,-126);t.exports=Math.fround||function(t){var e,n,o=Math.abs(t),c=r(t);return o<u?c*(o/u/a+1/i-1/i)*u*a:(n=(e=(1+a/i)*o)-(e-o))>s||n!=n?c*(1/0):c*n}},function(t,e,n){var r=n(0),o=Math.abs;r(r.S,"Math",{hypot:function(t,e){for(var n,r,i=0,a=0,s=arguments.length,u=0;a<s;)u<(n=o(arguments[a++]))?(i=i*(r=u/n)*r+1,u=n):i+=n>0?(r=n/u)*r:n;return u===1/0?1/0:u*Math.sqrt(i)}})},function(t,e,n){var r=n(0),o=Math.imul;r(r.S+r.F*n(3)((function(){return-5!=o(4294967295,5)||2!=o.length})),"Math",{imul:function(t,e){var n=65535,r=+t,o=+e,i=n&r,a=n&o;return 0|i*a+((n&r>>>16)*a+i*(n&o>>>16)<<16>>>0)}})},function(t,e,n){var r=n(0);r(r.S,"Math",{log10:function(t){return Math.log(t)*Math.LOG10E}})},function(t,e,n){var r=n(0);r(r.S,"Math",{log1p:n(146)})},function(t,e,n){var r=n(0);r(r.S,"Math",{log2:function(t){return Math.log(t)/Math.LN2}})},function(t,e,n){var r=n(0);r(r.S,"Math",{sign:n(96)})},function(t,e,n){var r=n(0),o=n(97),i=Math.exp;r(r.S+r.F*n(3)((function(){return-2e-17!=!Math.sinh(-2e-17)})),"Math",{sinh:function(t){return Math.abs(t=+t)<1?(o(t)-o(-t))/2:(i(t-1)-i(-t-1))*(Math.E/2)}})},function(t,e,n){var r=n(0),o=n(97),i=Math.exp;r(r.S,"Math",{tanh:function(t){var e=o(t=+t),n=o(-t);return e==1/0?1:n==1/0?-1:(e-n)/(i(t)+i(-t))}})},function(t,e,n){var r=n(0);r(r.S,"Math",{trunc:function(t){return(t>0?Math.floor:Math.ceil)(t)}})},function(t,e,n){var r=n(0),o=n(42),i=String.fromCharCode,a=String.fromCodePoint;r(r.S+r.F*(!!a&&1!=a.length),"String",{fromCodePoint:function(t){for(var e,n=[],r=arguments.length,a=0;r>a;){if(e=+arguments[a++],o(e,1114111)!==e)throw RangeError(e+" is not a valid code point");n.push(e<65536?i(e):i(55296+((e-=65536)>>10),e%1024+56320))}return n.join("")}})},function(t,e,n){var r=n(0),o=n(18),i=n(7);r(r.S,"String",{raw:function(t){for(var e=o(t.raw),n=i(e.length),r=arguments.length,a=[],s=0;n>s;)a.push(String(e[s++])),s<r&&a.push(String(arguments[s]));return a.join("")}})},function(t,e,n){"use strict";n(54)("trim",(function(t){return function(){return t(this,3)}}))},function(t,e,n){"use strict";var r=n(98)(!0);n(99)(String,"String",(function(t){this._t=String(t),this._i=0}),(function(){var t,e=this._t,n=this._i;return n>=e.length?{value:void 0,done:!0}:(t=r(e,n),this._i+=t.length,{value:t,done:!1})}))},function(t,e,n){"use strict";var r=n(0),o=n(98)(!1);r(r.P,"String",{codePointAt:function(t){return o(this,t)}})},function(t,e,n){"use strict";var r=n(0),o=n(7),i=n(100),a="endsWith",s="".endsWith;r(r.P+r.F*n(102)(a),"String",{endsWith:function(t){var e=i(this,t,a),n=arguments.length>1?arguments[1]:void 0,r=o(e.length),u=void 0===n?r:Math.min(o(n),r),c=String(t);return s?s.call(e,c,u):e.slice(u-c.length,u)===c}})},function(t,e,n){"use strict";var r=n(0),o=n(100),i="includes";r(r.P+r.F*n(102)(i),"String",{includes:function(t){return!!~o(this,t,i).indexOf(t,arguments.length>1?arguments[1]:void 0)}})},function(t,e,n){var r=n(0);r(r.P,"String",{repeat:n(95)})},function(t,e,n){"use strict";var r=n(0),o=n(7),i=n(100),a="startsWith",s="".startsWith;r(r.P+r.F*n(102)(a),"String",{startsWith:function(t){var e=i(this,t,a),n=o(Math.min(arguments.length>1?arguments[1]:void 0,e.length)),r=String(t);return s?s.call(e,r,n):e.slice(n,n+r.length)===r}})},function(t,e,n){"use strict";n(15)("anchor",(function(t){return function(e){return t(this,"a","name",e)}}))},function(t,e,n){"use strict";n(15)("big",(function(t){return function(){return t(this,"big","","")}}))},function(t,e,n){"use strict";n(15)("blink",(function(t){return function(){return t(this,"blink","","")}}))},function(t,e,n){"use strict";n(15)("bold",(function(t){return function(){return t(this,"b","","")}}))},function(t,e,n){"use strict";n(15)("fixed",(function(t){return function(){return t(this,"tt","","")}}))},function(t,e,n){"use strict";n(15)("fontcolor",(function(t){return function(e){return t(this,"font","color",e)}}))},function(t,e,n){"use strict";n(15)("fontsize",(function(t){return function(e){return t(this,"font","size",e)}}))},function(t,e,n){"use strict";n(15)("italics",(function(t){return function(){return t(this,"i","","")}}))},function(t,e,n){"use strict";n(15)("link",(function(t){return function(e){return t(this,"a","href",e)}}))},function(t,e,n){"use strict";n(15)("small",(function(t){return function(){return t(this,"small","","")}}))},function(t,e,n){"use strict";n(15)("strike",(function(t){return function(){return t(this,"strike","","")}}))},function(t,e,n){"use strict";n(15)("sub",(function(t){return function(){return t(this,"sub","","")}}))},function(t,e,n){"use strict";n(15)("sup",(function(t){return function(){return t(this,"sup","","")}}))},function(t,e,n){var r=n(0);r(r.S,"Date",{now:function(){return(new Date).getTime()}})},function(t,e,n){"use strict";var r=n(0),o=n(11),i=n(33);r(r.P+r.F*n(3)((function(){return null!==new Date(NaN).toJSON()||1!==Date.prototype.toJSON.call({toISOString:function(){return 1}})})),"Date",{toJSON:function(t){var e=o(this),n=i(e);return"number"!=typeof n||isFinite(n)?e.toISOString():null}})},function(t,e,n){var r=n(0),o=n(277);r(r.P+r.F*(Date.prototype.toISOString!==o),"Date",{toISOString:o})},function(t,e,n){"use strict";var r=n(3),o=Date.prototype.getTime,i=Date.prototype.toISOString,a=function(t){return t>9?t:"0"+t};t.exports=r((function(){return"0385-07-25T07:06:39.999Z"!=i.call(new Date(-50000000000001))}))||!r((function(){i.call(new Date(NaN))}))?function(){if(!isFinite(o.call(this)))throw RangeError("Invalid time value");var t=this,e=t.getUTCFullYear(),n=t.getUTCMilliseconds(),r=e<0?"-":e>9999?"+":"";return r+("00000"+Math.abs(e)).slice(r?-6:-4)+"-"+a(t.getUTCMonth()+1)+"-"+a(t.getUTCDate())+"T"+a(t.getUTCHours())+":"+a(t.getUTCMinutes())+":"+a(t.getUTCSeconds())+"."+(n>99?n:"0"+a(n))+"Z"}:i},function(t,e,n){var r=Date.prototype,o="Invalid Date",i="toString",a=r.toString,s=r.getTime;new Date(NaN)+""!=o&&n(14)(r,i,(function(){var t=s.call(this);return t==t?a.call(this):o}))},function(t,e,n){var r=n(6)("toPrimitive"),o=Date.prototype;r in o||n(17)(o,r,n(280))},function(t,e,n){"use strict";var r=n(4),o=n(33),i="number";t.exports=function(t){if("string"!==t&&t!==i&&"default"!==t)throw TypeError("Incorrect hint");return o(r(this),t!=i)}},function(t,e,n){var r=n(0);r(r.S,"Array",{isArray:n(71)})},function(t,e,n){"use strict";var r=n(21),o=n(0),i=n(11),a=n(148),s=n(103),u=n(7),c=n(104),l=n(105);o(o.S+o.F*!n(72)((function(t){Array.from(t)})),"Array",{from:function(t){var e,n,o,f,h=i(t),p="function"==typeof this?this:Array,d=arguments.length,v=d>1?arguments[1]:void 0,y=void 0!==v,g=0,m=l(h);if(y&&(v=r(v,d>2?arguments[2]:void 0,2)),null==m||p==Array&&s(m))for(n=new p(e=u(h.length));e>g;g++)c(n,g,y?v(h[g],g):h[g]);else for(f=m.call(h),n=new p;!(o=f.next()).done;g++)c(n,g,y?a(f,v,[o.value,g],!0):o.value);return n.length=g,n}})},function(t,e,n){"use strict";var r=n(0),o=n(104);r(r.S+r.F*n(3)((function(){function t(){}return!(Array.of.call(t)instanceof t)})),"Array",{of:function(){for(var t=0,e=arguments.length,n=new("function"==typeof this?this:Array)(e);e>t;)o(n,t,arguments[t++]);return n.length=e,n}})},function(t,e,n){"use strict";var r=n(0),o=n(18),i=[].join;r(r.P+r.F*(n(61)!=Object||!n(19)(i)),"Array",{join:function(t){return i.call(o(this),void 0===t?",":t)}})},function(t,e,n){"use strict";var r=n(0),o=n(91),i=n(28),a=n(42),s=n(7),u=[].slice;r(r.P+r.F*n(3)((function(){o&&u.call(o)})),"Array",{slice:function(t,e){var n=s(this.length),r=i(this);if(e=void 0===e?n:e,"Array"==r)return u.call(this,t,e);for(var o=a(t,n),c=a(e,n),l=s(c-o),f=new Array(l),h=0;h<l;h++)f[h]="String"==r?this.charAt(o+h):this[o+h];return f}})},function(t,e,n){"use strict";var r=n(0),o=n(22),i=n(11),a=n(3),s=[].sort,u=[1,2,3];r(r.P+r.F*(a((function(){u.sort(void 0)}))||!a((function(){u.sort(null)}))||!n(19)(s)),"Array",{sort:function(t){return void 0===t?s.call(i(this)):s.call(i(this),o(t))}})},function(t,e,n){"use strict";var r=n(0),o=n(26)(0),i=n(19)([].forEach,!0);r(r.P+r.F*!i,"Array",{forEach:function(t){return o(this,t,arguments[1])}})},function(t,e,n){var r=n(5),o=n(71),i=n(6)("species");t.exports=function(t){var e;return o(t)&&("function"!=typeof(e=t.constructor)||e!==Array&&!o(e.prototype)||(e=void 0),r(e)&&null===(e=e[i])&&(e=void 0)),void 0===e?Array:e}},function(t,e,n){"use strict";var r=n(0),o=n(26)(1);r(r.P+r.F*!n(19)([].map,!0),"Array",{map:function(t){return o(this,t,arguments[1])}})},function(t,e,n){"use strict";var r=n(0),o=n(26)(2);r(r.P+r.F*!n(19)([].filter,!0),"Array",{filter:function(t){return o(this,t,arguments[1])}})},function(t,e,n){"use strict";var r=n(0),o=n(26)(3);r(r.P+r.F*!n(19)([].some,!0),"Array",{some:function(t){return o(this,t,arguments[1])}})},function(t,e,n){"use strict";var r=n(0),o=n(26)(4);r(r.P+r.F*!n(19)([].every,!0),"Array",{every:function(t){return o(this,t,arguments[1])}})},function(t,e,n){"use strict";var r=n(0),o=n(150);r(r.P+r.F*!n(19)([].reduce,!0),"Array",{reduce:function(t){return o(this,t,arguments.length,arguments[1],!1)}})},function(t,e,n){"use strict";var r=n(0),o=n(150);r(r.P+r.F*!n(19)([].reduceRight,!0),"Array",{reduceRight:function(t){return o(this,t,arguments.length,arguments[1],!0)}})},function(t,e,n){"use strict";var r=n(0),o=n(69)(!1),i=[].indexOf,a=!!i&&1/[1].indexOf(1,-0)<0;r(r.P+r.F*(a||!n(19)(i)),"Array",{indexOf:function(t){return a?i.apply(this,arguments)||0:o(this,t,arguments[1])}})},function(t,e,n){"use strict";var r=n(0),o=n(18),i=n(23),a=n(7),s=[].lastIndexOf,u=!!s&&1/[1].lastIndexOf(1,-0)<0;r(r.P+r.F*(u||!n(19)(s)),"Array",{lastIndexOf:function(t){if(u)return s.apply(this,arguments)||0;var e=o(this),n=a(e.length),r=n-1;for(arguments.length>1&&(r=Math.min(r,i(arguments[1]))),r<0&&(r=n+r);r>=0;r--)if(r in e&&e[r]===t)return r||0;return-1}})},function(t,e,n){var r=n(0);r(r.P,"Array",{copyWithin:n(151)}),n(46)("copyWithin")},function(t,e,n){var r=n(0);r(r.P,"Array",{fill:n(106)}),n(46)("fill")},function(t,e,n){"use strict";var r=n(0),o=n(26)(5),i="find",a=!0;i in[]&&Array(1).find((function(){a=!1})),r(r.P+r.F*a,"Array",{find:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}}),n(46)(i)},function(t,e,n){"use strict";var r=n(0),o=n(26)(6),i="findIndex",a=!0;i in[]&&Array(1)[i]((function(){a=!1})),r(r.P+r.F*a,"Array",{findIndex:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}}),n(46)(i)},function(t,e,n){n(56)("Array")},function(t,e,n){var r=n(2),o=n(94),i=n(10).f,a=n(44).f,s=n(101),u=n(73),c=r.RegExp,l=c,f=c.prototype,h=/a/g,p=/a/g,d=new c(h)!==h;if(n(9)&&(!d||n(3)((function(){return p[n(6)("match")]=!1,c(h)!=h||c(p)==p||"/a/i"!=c(h,"i")})))){c=function(t,e){var n=this instanceof c,r=s(t),i=void 0===e;return!n&&r&&t.constructor===c&&i?t:o(d?new l(r&&!i?t.source:t,e):l((r=t instanceof c)?t.source:t,r&&i?u.call(t):e),n?this:f,c)};for(var v=function(t){t in c||i(c,t,{configurable:!0,get:function(){return l[t]},set:function(e){l[t]=e}})},y=a(l),g=0;y.length>g;)v(y[g++]);f.constructor=c,c.prototype=f,n(14)(r,"RegExp",c)}n(56)("RegExp")},function(t,e,n){"use strict";n(154);var r=n(4),o=n(73),i=n(9),a="toString",s=/./.toString,u=function(t){n(14)(RegExp.prototype,a,t,!0)};n(3)((function(){return"/a/b"!=s.call({source:"a",flags:"b"})}))?u((function(){var t=r(this);return"/".concat(t.source,"/","flags"in t?t.flags:!i&&t instanceof RegExp?o.call(t):void 0)})):s.name!=a&&u((function(){return s.call(this)}))},function(t,e,n){"use strict";var r=n(4),o=n(7),i=n(109),a=n(74);n(75)("match",1,(function(t,e,n,s){return[function(n){var r=t(this),o=null==n?void 0:n[e];return void 0!==o?o.call(n,r):new RegExp(n)[e](String(r))},function(t){var e=s(n,t,this);if(e.done)return e.value;var u=r(t),c=String(this);if(!u.global)return a(u,c);var l=u.unicode;u.lastIndex=0;for(var f,h=[],p=0;null!==(f=a(u,c));){var d=String(f[0]);h[p]=d,""===d&&(u.lastIndex=i(c,o(u.lastIndex),l)),p++}return 0===p?null:h}]}))},function(t,e,n){"use strict";var r=n(4),o=n(11),i=n(7),a=n(23),s=n(109),u=n(74),c=Math.max,l=Math.min,f=Math.floor,h=/\$([$&`']|\d\d?|<[^>]*>)/g,p=/\$([$&`']|\d\d?)/g;n(75)("replace",2,(function(t,e,n,d){return[function(r,o){var i=t(this),a=null==r?void 0:r[e];return void 0!==a?a.call(r,i,o):n.call(String(i),r,o)},function(t,e){var o=d(n,t,this,e);if(o.done)return o.value;var f=r(t),h=String(this),p="function"==typeof e;p||(e=String(e));var y=f.global;if(y){var g=f.unicode;f.lastIndex=0}for(var m=[];;){var _=u(f,h);if(null===_)break;if(m.push(_),!y)break;""===String(_[0])&&(f.lastIndex=s(h,i(f.lastIndex),g))}for(var b,w="",E=0,T=0;T<m.length;T++){_=m[T];for(var S=String(_[0]),O=c(l(a(_.index),h.length),0),C=[],P=1;P<_.length;P++)C.push(void 0===(b=_[P])?b:String(b));var k=_.groups;if(p){var j=[S].concat(C,O,h);void 0!==k&&j.push(k);var A=String(e.apply(void 0,j))}else A=v(S,h,O,C,k,e);O>=E&&(w+=h.slice(E,O)+A,E=O+S.length)}return w+h.slice(E)}];function v(t,e,r,i,a,s){var u=r+t.length,c=i.length,l=p;return void 0!==a&&(a=o(a),l=h),n.call(s,l,(function(n,o){var s;switch(o.charAt(0)){case"$":return"$";case"&":return t;case"`":return e.slice(0,r);case"'":return e.slice(u);case"<":s=a[o.slice(1,-1)];break;default:var l=+o;if(0===l)return n;if(l>c){var h=f(l/10);return 0===h?n:h<=c?void 0===i[h-1]?o.charAt(1):i[h-1]+o.charAt(1):n}s=i[l-1]}return void 0===s?"":s}))}}))},function(t,e,n){"use strict";var r=n(4),o=n(139),i=n(74);n(75)("search",1,(function(t,e,n,a){return[function(n){var r=t(this),o=null==n?void 0:n[e];return void 0!==o?o.call(n,r):new RegExp(n)[e](String(r))},function(t){var e=a(n,t,this);if(e.done)return e.value;var s=r(t),u=String(this),c=s.lastIndex;o(c,0)||(s.lastIndex=0);var l=i(s,u);return o(s.lastIndex,c)||(s.lastIndex=c),null===l?-1:l.index}]}))},function(t,e,n){"use strict";var r=n(101),o=n(4),i=n(64),a=n(109),s=n(7),u=n(74),c=n(108),l=n(3),f=Math.min,h=[].push,p=4294967295,d=!l((function(){RegExp(p,"y")}));n(75)("split",2,(function(t,e,n,l){var v;return v="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(t,e){var o=String(this);if(void 0===t&&0===e)return[];if(!r(t))return n.call(o,t,e);for(var i,a,s,u=[],l=(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.unicode?"u":"")+(t.sticky?"y":""),f=0,d=void 0===e?p:e>>>0,v=new RegExp(t.source,l+"g");(i=c.call(v,o))&&!((a=v.lastIndex)>f&&(u.push(o.slice(f,i.index)),i.length>1&&i.index<o.length&&h.apply(u,i.slice(1)),s=i[0].length,f=a,u.length>=d));)v.lastIndex===i.index&&v.lastIndex++;return f===o.length?!s&&v.test("")||u.push(""):u.push(o.slice(f)),u.length>d?u.slice(0,d):u}:"0".split(void 0,0).length?function(t,e){return void 0===t&&0===e?[]:n.call(this,t,e)}:n,[function(n,r){var o=t(this),i=null==n?void 0:n[e];return void 0!==i?i.call(n,o,r):v.call(String(o),n,r)},function(t,e){var r=l(v,t,this,e,v!==n);if(r.done)return r.value;var c=o(t),h=String(this),y=i(c,RegExp),g=c.unicode,m=(c.ignoreCase?"i":"")+(c.multiline?"m":"")+(c.unicode?"u":"")+(d?"y":"g"),_=new y(d?c:"^(?:"+c.source+")",m),b=void 0===e?p:e>>>0;if(0===b)return[];if(0===h.length)return null===u(_,h)?[h]:[];for(var w=0,E=0,T=[];E<h.length;){_.lastIndex=d?E:0;var S,O=u(_,d?h:h.slice(E));if(null===O||(S=f(s(_.lastIndex+(d?0:E)),h.length))===w)E=a(h,E,g);else{if(T.push(h.slice(w,E)),T.length===b)return T;for(var C=1;C<=O.length-1;C++)if(T.push(O[C]),T.length===b)return T;E=w=S}}return T.push(h.slice(w)),T}]}))},function(t,e,n){var r=n(2),o=n(110).set,i=r.MutationObserver||r.WebKitMutationObserver,a=r.process,s=r.Promise,u="process"==n(28)(a);t.exports=function(){var t,e,n,c=function(){var r,o;for(u&&(r=a.domain)&&r.exit();t;){o=t.fn,t=t.next;try{o()}catch(r){throw t?n():e=void 0,r}}e=void 0,r&&r.enter()};if(u)n=function(){a.nextTick(c)};else if(!i||r.navigator&&r.navigator.standalone)if(s&&s.resolve){var l=s.resolve(void 0);n=function(){l.then(c)}}else n=function(){o.call(r,c)};else{var f=!0,h=document.createTextNode("");new i(c).observe(h,{characterData:!0}),n=function(){h.data=f=!f}}return function(r){var o={fn:r,next:void 0};e&&(e.next=o),t||(t=o,n()),e=o}}},function(t,e){t.exports=function(t){try{return{e:!1,v:t()}}catch(t){return{e:!0,v:t}}}},function(t,e,n){"use strict";var r=n(158),o=n(47),i="Map";t.exports=n(78)(i,(function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}}),{get:function(t){var e=r.getEntry(o(this,i),t);return e&&e.v},set:function(t,e){return r.def(o(this,i),0===t?0:t,e)}},r,!0)},function(t,e,n){"use strict";var r=n(158),o=n(47);t.exports=n(78)("Set",(function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}}),{add:function(t){return r.def(o(this,"Set"),t=0===t?0:t,t)}},r)},function(t,e,n){"use strict";var r,o=n(2),i=n(26)(0),a=n(14),s=n(34),u=n(138),c=n(159),l=n(5),f=n(47),h=n(47),p=!o.ActiveXObject&&"ActiveXObject"in o,d="WeakMap",v=s.getWeak,y=Object.isExtensible,g=c.ufstore,m=function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}},_={get:function(t){if(l(t)){var e=v(t);return!0===e?g(f(this,d)).get(t):e?e[this._i]:void 0}},set:function(t,e){return c.def(f(this,d),t,e)}},b=t.exports=n(78)(d,m,_,c,!0,!0);h&&p&&(u((r=c.getConstructor(m,d)).prototype,_),s.NEED=!0,i(["delete","has","get","set"],(function(t){var e=b.prototype,n=e[t];a(e,t,(function(e,o){if(l(e)&&!y(e)){this._f||(this._f=new r);var i=this._f[t](e,o);return"set"==t?this:i}return n.call(this,e,o)}))})))},function(t,e,n){"use strict";var r=n(159),o=n(47),i="WeakSet";n(78)(i,(function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}}),{add:function(t){return r.def(o(this,i),t,!0)}},r,!1,!0)},function(t,e,n){"use strict";var r=n(0),o=n(79),i=n(111),a=n(4),s=n(42),u=n(7),c=n(5),l=n(2).ArrayBuffer,f=n(64),h=i.ArrayBuffer,p=i.DataView,d=o.ABV&&l.isView,v=h.prototype.slice,y=o.VIEW,g="ArrayBuffer";r(r.G+r.W+r.F*(l!==h),{ArrayBuffer:h}),r(r.S+r.F*!o.CONSTR,g,{isView:function(t){return d&&d(t)||c(t)&&y in t}}),r(r.P+r.U+r.F*n(3)((function(){return!new h(2).slice(1,void 0).byteLength})),g,{slice:function(t,e){if(void 0!==v&&void 0===e)return v.call(a(this),t);for(var n=a(this).byteLength,r=s(t,n),o=s(void 0===e?n:e,n),i=new(f(this,h))(u(o-r)),c=new p(this),l=new p(i),d=0;r<o;)l.setUint8(d++,c.getUint8(r++));return i}}),n(56)(g)},function(t,e,n){var r=n(0);r(r.G+r.W+r.F*!n(79).ABV,{DataView:n(111).DataView})},function(t,e,n){n(30)("Int8",1,(function(t){return function(e,n,r){return t(this,e,n,r)}}))},function(t,e,n){n(30)("Uint8",1,(function(t){return function(e,n,r){return t(this,e,n,r)}}))},function(t,e,n){n(30)("Uint8",1,(function(t){return function(e,n,r){return t(this,e,n,r)}}),!0)},function(t,e,n){n(30)("Int16",2,(function(t){return function(e,n,r){return t(this,e,n,r)}}))},function(t,e,n){n(30)("Uint16",2,(function(t){return function(e,n,r){return t(this,e,n,r)}}))},function(t,e,n){n(30)("Int32",4,(function(t){return function(e,n,r){return t(this,e,n,r)}}))},function(t,e,n){n(30)("Uint32",4,(function(t){return function(e,n,r){return t(this,e,n,r)}}))},function(t,e,n){n(30)("Float32",4,(function(t){return function(e,n,r){return t(this,e,n,r)}}))},function(t,e,n){n(30)("Float64",8,(function(t){return function(e,n,r){return t(this,e,n,r)}}))},function(t,e,n){var r=n(0),o=n(22),i=n(4),a=(n(2).Reflect||{}).apply,s=Function.apply;r(r.S+r.F*!n(3)((function(){a((function(){}))})),"Reflect",{apply:function(t,e,n){var r=o(t),u=i(n);return a?a(r,e,u):s.call(r,e,u)}})},function(t,e,n){var r=n(0),o=n(43),i=n(22),a=n(4),s=n(5),u=n(3),c=n(140),l=(n(2).Reflect||{}).construct,f=u((function(){function t(){}return!(l((function(){}),[],t)instanceof t)})),h=!u((function(){l((function(){}))}));r(r.S+r.F*(f||h),"Reflect",{construct:function(t,e){i(t),a(e);var n=arguments.length<3?t:i(arguments[2]);if(h&&!f)return l(t,e,n);if(t==n){switch(e.length){case 0:return new t;case 1:return new t(e[0]);case 2:return new t(e[0],e[1]);case 3:return new t(e[0],e[1],e[2]);case 4:return new t(e[0],e[1],e[2],e[3])}var r=[null];return r.push.apply(r,e),new(c.apply(t,r))}var u=n.prototype,p=o(s(u)?u:Object.prototype),d=Function.apply.call(t,p,e);return s(d)?d:p}})},function(t,e,n){var r=n(10),o=n(0),i=n(4),a=n(33);o(o.S+o.F*n(3)((function(){Reflect.defineProperty(r.f({},1,{value:1}),1,{value:2})})),"Reflect",{defineProperty:function(t,e,n){i(t),e=a(e,!0),i(n);try{return r.f(t,e,n),!0}catch(t){return!1}}})},function(t,e,n){var r=n(0),o=n(24).f,i=n(4);r(r.S,"Reflect",{deleteProperty:function(t,e){var n=o(i(t),e);return!(n&&!n.configurable)&&delete t[e]}})},function(t,e,n){"use strict";var r=n(0),o=n(4),i=function(t){this._t=o(t),this._i=0;var e,n=this._k=[];for(e in t)n.push(e)};n(147)(i,"Object",(function(){var t,e=this,n=e._k;do{if(e._i>=n.length)return{value:void 0,done:!0}}while(!((t=n[e._i++])in e._t));return{value:t,done:!1}})),r(r.S,"Reflect",{enumerate:function(t){return new i(t)}})},function(t,e,n){var r=n(24),o=n(45),i=n(16),a=n(0),s=n(5),u=n(4);a(a.S,"Reflect",{get:function t(e,n){var a,c,l=arguments.length<3?e:arguments[2];return u(e)===l?e[n]:(a=r.f(e,n))?i(a,"value")?a.value:void 0!==a.get?a.get.call(l):void 0:s(c=o(e))?t(c,n,l):void 0}})},function(t,e,n){var r=n(24),o=n(0),i=n(4);o(o.S,"Reflect",{getOwnPropertyDescriptor:function(t,e){return r.f(i(t),e)}})},function(t,e,n){var r=n(0),o=n(45),i=n(4);r(r.S,"Reflect",{getPrototypeOf:function(t){return o(i(t))}})},function(t,e,n){var r=n(0);r(r.S,"Reflect",{has:function(t,e){return e in t}})},function(t,e,n){var r=n(0),o=n(4),i=Object.isExtensible;r(r.S,"Reflect",{isExtensible:function(t){return o(t),!i||i(t)}})},function(t,e,n){var r=n(0);r(r.S,"Reflect",{ownKeys:n(161)})},function(t,e,n){var r=n(0),o=n(4),i=Object.preventExtensions;r(r.S,"Reflect",{preventExtensions:function(t){o(t);try{return i&&i(t),!0}catch(t){return!1}}})},function(t,e,n){var r=n(10),o=n(24),i=n(45),a=n(16),s=n(0),u=n(38),c=n(4),l=n(5);s(s.S,"Reflect",{set:function t(e,n,s){var f,h,p=arguments.length<4?e:arguments[3],d=o.f(c(e),n);if(!d){if(l(h=i(e)))return t(h,n,s,p);d=u(0)}if(a(d,"value")){if(!1===d.writable||!l(p))return!1;if(f=o.f(p,n)){if(f.get||f.set||!1===f.writable)return!1;f.value=s,r.f(p,n,f)}else r.f(p,n,u(0,s));return!0}return void 0!==d.set&&(d.set.call(p,s),!0)}})},function(t,e,n){var r=n(0),o=n(92);o&&r(r.S,"Reflect",{setPrototypeOf:function(t,e){o.check(t,e);try{return o.set(t,e),!0}catch(t){return!1}}})},function(t,e,n){n(340),t.exports=n(8).Array.includes},function(t,e,n){"use strict";var r=n(0),o=n(69)(!0);r(r.P,"Array",{includes:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}}),n(46)("includes")},function(t,e,n){n(342),t.exports=n(8).Array.flatMap},function(t,e,n){"use strict";var r=n(0),o=n(343),i=n(11),a=n(7),s=n(22),u=n(149);r(r.P,"Array",{flatMap:function(t){var e,n,r=i(this);return s(t),e=a(r.length),n=u(r,0),o(n,r,r,e,0,1,t,arguments[1]),n}}),n(46)("flatMap")},function(t,e,n){"use strict";var r=n(71),o=n(5),i=n(7),a=n(21),s=n(6)("isConcatSpreadable");t.exports=function t(e,n,u,c,l,f,h,p){for(var d,v,y=l,g=0,m=!!h&&a(h,p,3);g<c;){if(g in u){if(d=m?m(u[g],g,n):u[g],v=!1,o(d)&&(v=void 0!==(v=d[s])?!!v:r(d)),v&&f>0)y=t(e,n,d,i(d.length),y,f-1)-1;else{if(y>=9007199254740991)throw TypeError();e[y]=d}y++}g++}return y}},function(t,e,n){n(345),t.exports=n(8).String.padStart},function(t,e,n){"use strict";var r=n(0),o=n(162),i=n(77),a=/Version\/10\.\d+(\.\d+)?( Mobile\/\w+)? Safari\//.test(i);r(r.P+r.F*a,"String",{padStart:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0,!0)}})},function(t,e,n){n(347),t.exports=n(8).String.padEnd},function(t,e,n){"use strict";var r=n(0),o=n(162),i=n(77),a=/Version\/10\.\d+(\.\d+)?( Mobile\/\w+)? Safari\//.test(i);r(r.P+r.F*a,"String",{padEnd:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0,!1)}})},function(t,e,n){n(349),t.exports=n(8).String.trimLeft},function(t,e,n){"use strict";n(54)("trimLeft",(function(t){return function(){return t(this,1)}}),"trimStart")},function(t,e,n){n(351),t.exports=n(8).String.trimRight},function(t,e,n){"use strict";n(54)("trimRight",(function(t){return function(){return t(this,2)}}),"trimEnd")},function(t,e,n){n(353),t.exports=n(88).f("asyncIterator")},function(t,e,n){n(134)("asyncIterator")},function(t,e,n){n(355),t.exports=n(8).Object.getOwnPropertyDescriptors},function(t,e,n){var r=n(0),o=n(161),i=n(18),a=n(24),s=n(104);r(r.S,"Object",{getOwnPropertyDescriptors:function(t){for(var e,n,r=i(t),u=a.f,c=o(r),l={},f=0;c.length>f;)void 0!==(n=u(r,e=c[f++]))&&s(l,e,n);return l}})},function(t,e,n){n(357),t.exports=n(8).Object.values},function(t,e,n){var r=n(0),o=n(163)(!1);r(r.S,"Object",{values:function(t){return o(t)}})},function(t,e,n){n(359),t.exports=n(8).Object.entries},function(t,e,n){var r=n(0),o=n(163)(!0);r(r.S,"Object",{entries:function(t){return o(t)}})},function(t,e,n){"use strict";n(155),n(361),t.exports=n(8).Promise.finally},function(t,e,n){"use strict";var r=n(0),o=n(8),i=n(2),a=n(64),s=n(157);r(r.P+r.R,"Promise",{finally:function(t){var e=a(this,o.Promise||i.Promise),n="function"==typeof t;return this.then(n?function(n){return s(e,t()).then((function(){return n}))}:t,n?function(n){return s(e,t()).then((function(){throw n}))}:t)}})},function(t,e,n){n(363),n(364),n(365),t.exports=n(8)},function(t,e,n){var r=n(2),o=n(0),i=n(77),a=[].slice,s=/MSIE .\./.test(i),u=function(t){return function(e,n){var r=arguments.length>2,o=!!r&&a.call(arguments,2);return t(r?function(){("function"==typeof e?e:Function(e)).apply(this,o)}:e,n)}};o(o.G+o.B+o.F*s,{setTimeout:u(r.setTimeout),setInterval:u(r.setInterval)})},function(t,e,n){var r=n(0),o=n(110);r(r.G+r.B,{setImmediate:o.set,clearImmediate:o.clear})},function(t,e,n){for(var r=n(107),o=n(41),i=n(14),a=n(2),s=n(17),u=n(55),c=n(6),l=c("iterator"),f=c("toStringTag"),h=u.Array,p={CSSRuleList:!0,CSSStyleDeclaration:!1,CSSValueList:!1,ClientRectList:!1,DOMRectList:!1,DOMStringList:!1,DOMTokenList:!0,DataTransferItemList:!1,FileList:!1,HTMLAllCollection:!1,HTMLCollection:!1,HTMLFormElement:!1,HTMLSelectElement:!1,MediaList:!0,MimeTypeArray:!1,NamedNodeMap:!1,NodeList:!0,PaintRequestList:!1,Plugin:!1,PluginArray:!1,SVGLengthList:!1,SVGNumberList:!1,SVGPathSegList:!1,SVGPointList:!1,SVGStringList:!1,SVGTransformList:!1,SourceBufferList:!1,StyleSheetList:!0,TextTrackCueList:!1,TextTrackList:!1,TouchList:!1},d=o(p),v=0;v<d.length;v++){var y,g=d[v],m=p[g],_=a[g],b=_&&_.prototype;if(b&&(b[l]||s(b,l,h),b[f]||s(b,f,g),u[g]=h,m))for(y in r)b[y]||i(b,y,r[y],!0)}},function(t,e,n){var r=function(t){"use strict";var e,n=Object.prototype,r=n.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",s=o.toStringTag||"@@toStringTag";function u(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=function(t,e,n){return t[e]=n}}function c(t,e,n,r){var o=e&&e.prototype instanceof y?e:y,i=Object.create(o.prototype),a=new k(r||[]);return i._invoke=function(t,e,n){var r=f;return function(o,i){if(r===p)throw new Error("Generator is already running");if(r===d){if("throw"===o)throw i;return A()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var s=O(a,n);if(s){if(s===v)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(r===f)throw r=d,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r=p;var u=l(t,e,n);if("normal"===u.type){if(r=n.done?d:h,u.arg===v)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r=d,n.method="throw",n.arg=u.arg)}}}(t,n,a),i}function l(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}t.wrap=c;var f="suspendedStart",h="suspendedYield",p="executing",d="completed",v={};function y(){}function g(){}function m(){}var _={};u(_,i,(function(){return this}));var b=Object.getPrototypeOf,w=b&&b(b(j([])));w&&w!==n&&r.call(w,i)&&(_=w);var E=m.prototype=y.prototype=Object.create(_);function T(t){["next","throw","return"].forEach((function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function S(t,e){function n(o,i,a,s){var u=l(t[o],t,i);if("throw"!==u.type){var c=u.arg,f=c.value;return f&&"object"==typeof f&&r.call(f,"__await")?e.resolve(f.__await).then((function(t){n("next",t,a,s)}),(function(t){n("throw",t,a,s)})):e.resolve(f).then((function(t){c.value=t,a(c)}),(function(t){return n("throw",t,a,s)}))}s(u.arg)}var o;this._invoke=function(t,r){function i(){return new e((function(e,o){n(t,r,e,o)}))}return o=o?o.then(i,i):i()}}function O(t,n){var r=t.iterator[n.method];if(r===e){if(n.delegate=null,"throw"===n.method){if(t.iterator.return&&(n.method="return",n.arg=e,O(t,n),"throw"===n.method))return v;n.method="throw",n.arg=new TypeError("The iterator does not provide a 'throw' method")}return v}var o=l(r,t.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,v;var i=o.arg;return i?i.done?(n[t.resultName]=i.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,v):i:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,v)}function C(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function P(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function k(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(C,this),this.reset(!0)}function j(t){if(t){var n=t[i];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,a=function n(){for(;++o<t.length;)if(r.call(t,o))return n.value=t[o],n.done=!1,n;return n.value=e,n.done=!0,n};return a.next=a}}return{next:A}}function A(){return{value:e,done:!0}}return g.prototype=m,u(E,"constructor",m),u(m,"constructor",g),g.displayName=u(m,s,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===g||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,m):(t.__proto__=m,u(t,s,"GeneratorFunction")),t.prototype=Object.create(E),t},t.awrap=function(t){return{__await:t}},T(S.prototype),u(S.prototype,a,(function(){return this})),t.AsyncIterator=S,t.async=function(e,n,r,o,i){void 0===i&&(i=Promise);var a=new S(c(e,n,r,o),i);return t.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},T(E),u(E,s,"Generator"),u(E,i,(function(){return this})),u(E,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=[];for(var n in t)e.push(n);return e.reverse(),function n(){for(;e.length;){var r=e.pop();if(r in t)return n.value=r,n.done=!1,n}return n.done=!0,n}},t.values=j,k.prototype={constructor:k,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(P),!t)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function o(r,o){return s.type="throw",s.arg=t,n.next=r,o&&(n.method="next",n.arg=e),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var u=r.call(a,"catchLoc"),c=r.call(a,"finallyLoc");if(u&&c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(u){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,v):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),v},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),P(n),v}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;P(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:j(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),v}},t}(t.exports);try{regeneratorRuntime=r}catch(t){"object"==typeof globalThis?globalThis.regeneratorRuntime=r:Function("r","regeneratorRuntime = r")(r)}},function(t,e,n){n(368),t.exports=n(164).global},function(t,e,n){var r=n(369);r(r.G,{global:n(112)})},function(t,e,n){var r=n(112),o=n(164),i=n(370),a=n(372),s=n(379),u=function(t,e,n){var c,l,f,h=t&u.F,p=t&u.G,d=t&u.S,v=t&u.P,y=t&u.B,g=t&u.W,m=p?o:o[e]||(o[e]={}),_=m.prototype,b=p?r:d?r[e]:(r[e]||{}).prototype;for(c in p&&(n=e),n)(l=!h&&b&&void 0!==b[c])&&s(m,c)||(f=l?b[c]:n[c],m[c]=p&&"function"!=typeof b[c]?n[c]:y&&l?i(f,r):g&&b[c]==f?function(t){var e=function(e,n,r){if(this instanceof t){switch(arguments.length){case 0:return new t;case 1:return new t(e);case 2:return new t(e,n)}return new t(e,n,r)}return t.apply(this,arguments)};return e.prototype=t.prototype,e}(f):v&&"function"==typeof f?i(Function.call,f):f,v&&((m.virtual||(m.virtual={}))[c]=f,t&u.R&&_&&!_[c]&&a(_,c,f)))};u.F=1,u.G=2,u.S=4,u.P=8,u.B=16,u.W=32,u.U=64,u.R=128,t.exports=u},function(t,e,n){var r=n(371);t.exports=function(t,e,n){if(r(t),void 0===e)return t;switch(n){case 1:return function(n){return t.call(e,n)};case 2:return function(n,r){return t.call(e,n,r)};case 3:return function(n,r,o){return t.call(e,n,r,o)}}return function(){return t.apply(e,arguments)}}},function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},function(t,e,n){var r=n(373),o=n(378);t.exports=n(114)?function(t,e,n){return r.f(t,e,o(1,n))}:function(t,e,n){return t[e]=n,t}},function(t,e,n){var r=n(374),o=n(375),i=n(377),a=Object.defineProperty;e.f=n(114)?Object.defineProperty:function(t,e,n){if(r(t),e=i(e,!0),r(n),o)try{return a(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(t[e]=n.value),t}},function(t,e,n){var r=n(113);t.exports=function(t){if(!r(t))throw TypeError(t+" is not an object!");return t}},function(t,e,n){t.exports=!n(114)&&!n(165)((function(){return 7!=Object.defineProperty(n(376)("div"),"a",{get:function(){return 7}}).a}))},function(t,e,n){var r=n(113),o=n(112).document,i=r(o)&&r(o.createElement);t.exports=function(t){return i?o.createElement(t):{}}},function(t,e,n){var r=n(113);t.exports=function(t,e){if(!r(t))return t;var n,o;if(e&&"function"==typeof(n=t.toString)&&!r(o=n.call(t)))return o;if("function"==typeof(n=t.valueOf)&&!r(o=n.call(t)))return o;if(!e&&"function"==typeof(n=t.toString)&&!r(o=n.call(t)))return o;throw TypeError("Can't convert object to primitive value")}},function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},function(t,e,n){"use strict";n.r(e)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=_(n(1));n(383);var o=_(n(424)),i=_(n(166)),a=_(n(130)),s=_(n(452)),u=_(n(189)),c=_(n(453)),l=_(n(86)),f=n(13),h=n(115),p=n(60),d=n(190),v=n(457),y=n(127),g=n(27),m=n(31);function _(t){return t&&t.__esModule?t:{default:t}}function b(t,e,n){return b=k()?Reflect.construct:function(t,e,n){var r=[null];r.push.apply(r,e);var o=new(Function.bind.apply(t,r));return n&&O(o,n.prototype),o},b.apply(null,arguments)}function w(t){return function(t){if(Array.isArray(t))return E(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return E(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return E(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function E(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function T(t){return T="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},T(t)}function S(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function O(t,e){return O=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},O(t,e)}function C(t,e){if(e&&("object"===T(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return P(t)}function P(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function k(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}function j(t){return j=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},j(t)}Object.keys(o.default).forEach((function(t){r.default.registerPlugin(t,o.default[t])})),(0,h.overrideDefaultVideojsComponents)();var A=!0,x=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&O(t,e)}(R,t);var e,n,s,_,E,x=(e=R,n=k(),function(){var t,r=j(e);if(n){var o=j(this).constructor;t=Reflect.construct(r,arguments,o)}else t=r.apply(this,arguments);return C(this,t)});function R(t,e,n){var a,s,u,c;if(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,R),a=x.call(this),s=P(a),c=function(){a.videojs.clearTimeout(a.reTryId)},(u="_clearTimeOut")in s?Object.defineProperty(s,u,{value:c,enumerable:!0,configurable:!0,writable:!0}):s[u]=c,a._playlistWidget=null,a.nbCalls=0,a.videoElement=(0,h.getResolveVideoElement)(t),a.options=(0,h.extractOptions)(a.videoElement,e),a._videojsOptions=a.options.videojsOptions,a.videoElement.classList.add("video-js"),i.default.fontFace(a.videoElement,a.playerOptions),i.default.playButton(a.videoElement,a._videojsOptions),o.default.dashPlugin&&o.default.dashPlugin(),a.videojs=(0,r.default)(a.videoElement,a._videojsOptions),a._isPlayerConfigValid=!0,(0,d.isValidConfig)(a.options,v.playerValidators),!a._isPlayerConfigValid)return a.videojs.error("invalid player configuration"),C(a);a._videojsOptions.muted&&a.videojs.volume(.4),a.playerOptions.fluid&&a.fluid(a.playerOptions.fluid);var l={contribAdsLoaded:(0,f.isFunction)(a.videojs.ads),imaAdsLoaded:"object"===("undefined"==typeof google?"undefined":T(google))&&"object"===T(google.ima)};return a._setCssClasses(),a._initPlugins(l),a._initPlaylistWidget(),a._initJumpButtons(),a._setVideoJsListeners(n),a}return s=R,_=[{key:"_setVideoJsListeners",value:function(t){var e=this;this.videojs.on(g.PLAYER_EVENT.ERROR,(function(){var t=e.videojs.error();if(t){var n=e._isPlayerConfigValid&&e.videojs.cloudinary.currentSourceType();[3===t.code&&r.default.browser.IS_SAFARI,4===t.code].includes(!0)&&[g.SOURCE_TYPE.AUDIO,g.SOURCE_TYPE.VIDEO].includes(n)?(e.videojs.error(null),i.default.handleCldError(e,e.playerOptions)):e._clearTimeOut()}})),this.videojs.tech_.on(g.PLAYER_EVENT.RETRY_PLAYLIST,(function(){(0,y.get)(e.videojs,"hls.stats.mediaRequestsErrored",0)>0&&(e._clearTimeOut(),i.default.handleCldError(e,e.playerOptions))})),this.videojs.on(g.PLAYER_EVENT.PLAY,this._clearTimeOut),this.videojs.on(g.PLAYER_EVENT.CAN_PLAY_THROUGH,this._clearTimeOut),this.videojs.ready((function(){e._onReady(),t&&t(e)})),this.adsEnabled&&Object.keys(this.playerOptions.ads).length>0&&"object"===T(this.videojs.ima)&&("first-video"===this.playerOptions.ads.adsInPlaylist?this.videojs.one(g.PLAYER_EVENT.SOURCE_CHANGED,(function(){e.videojs.ima.playAd()})):this.videojs.on(g.PLAYER_EVENT.SOURCE_CHANGED,(function(){e.videojs.ima.playAd()})))}},{key:"_initPlugins",value:function(t){this._initAutoplay(),this._initContextMenu(),this._initPerSrcBehaviors(),this._initCloudinary(),this._initAnalytics(),this._initFloatingPlayer(),this._initColors(),this._initTextTracks(),this._initSeekThumbs()}},{key:"_isFullScreen",value:function(){return this.videojs.player().isFullscreen()}},{key:"_initIma",value:function(t){if(!t.contribAdsLoaded||!t.imaAdsLoaded)return this.playerOptions.ads&&(t.contribAdsLoaded,t.imaAdsLoaded),!1;this.playerOptions.ads||(this.playerOptions.ads={});var e=this.playerOptions.ads;return 0!==Object.keys(e).length&&(this.videojs.ima({id:this.el().id,adTagUrl:e.adTagUrl,disableFlashAds:!0,prerollTimeout:e.prerollTimeout||5e3,postrollTimeout:e.postrollTimeout||5e3,showCountdown:!1!==e.showCountdown,adLabel:e.adLabel||"Advertisement",locale:e.locale||"en",autoPlayAdBreaks:!1!==e.autoPlayAdBreaks,debug:!0}),!0)}},{key:"setTextTracks",value:function(t){var e=this.videojs.remoteTextTracks();if(e)for(var n=e.tracks_.length-1;n>=0;n--)this.videojs.removeRemoteTextTrack(e.tracks_[n]);if(t){for(var r=[],o=0,a=Object.keys(t);o<a.length;o++){var s=a[o];if(Array.isArray(t[s]))for(var u=t[s],c=0;c<u.length;c++)r.push(R.buildTextTrackObj(s,u[c]));else r.push(R.buildTextTrackObj(s,t[s]))}i.default.filterAndAddTextTracks(r,this.videojs)}}},{key:"_initSeekThumbs",value:function(){var t=this;this.playerOptions.seekThumbnails&&this.videojs.on(g.PLAYER_EVENT.CLD_SOURCE_CHANGED,(function(e,n){var r=n.source;if(r&&r.getType()!==g.SOURCE_TYPE.AUDIO&&!(t.videojs&&t.videojs.activePlugins_&&t.videojs.activePlugins_.vr)){var o=r.publicId(),i=r.transformation();i&&i.streaming_profile&&delete i.streaming_profile,i.flags=i.flags||[],i.flags.push("sprite");var a=r.config().url("".concat(o,".vtt"),{transformation:i});(0,f.isFunction)(t.videojs.vttThumbnails)?t.videojs.vttThumbnails({src:a}):t.videojs.vttThumbnails.src(a)}}))}},{key:"_initColors",value:function(){this.videojs.colors(this.playerOptions.colors?{colors:this.playerOptions.colors}:{})}},{key:"_initTextTracks",value:function(){var t=this;this.videojs.on(g.PLAYER_EVENT.REFRESH_TEXT_TRACKS,(function(e,n){t.setTextTracks(n)}))}},{key:"_initPerSrcBehaviors",value:function(){this.videojs.perSourceBehaviors&&this.videojs.perSourceBehaviors()}},{key:"_initJumpButtons",value:function(){!this.playerOptions.showJumpControls&&this.videojs.controlBar&&(this.videojs.controlBar.removeChild("JumpForwardButton"),this.videojs.controlBar.removeChild("JumpBackButton"))}},{key:"_initCloudinary",value:function(){var t=this.playerOptions.cloudinary.cloudinaryConfig;t.chainTarget=this,!1!==t.secure&&(0,m.extendCloudinaryConfig)(t,{secure:!0}),this.videojs.cloudinary(this.playerOptions.cloudinary)}},{key:"_initAnalytics",value:function(){var t=this.playerOptions.analytics;if(window.ga||!t){if(t){var e="object"===T(t)?t:{};this.videojs.analytics(e)}}else console.error("Google Analytics script is missing")}},{key:"reTryVideo",value:function(t,e){var n=this;if(!this.isVideoReady())if(this.nbCalls<t)this.nbCalls++,this.reTryId=this.videojs.setTimeout((function(){return n.reTryVideo(t,e)}),e);else{var r=new Error("Video is not ready please try later");this.videojs.trigger("error",r)}}},{key:"isVideoReady",value:function(){return this.videojs.readyState()>=(/iPad|iPhone|iPod/.test(navigator.userAgent)?1:4)&&(this.nbCalls=0,!0)}},{key:"_initPlaylistWidget",value:function(){var t=this;this.videojs.on(g.PLAYER_EVENT.PLAYLIST_CREATED,(function(){t._playlistWidget&&t._playlistWidget.dispose();var e=t.playerOptions.playlistWidget;(0,f.isPlainObject)(e)&&(t.playerOptions.fluid&&(e.fluid=!0),t.playerOptions.cloudinary.fontFace&&(e.fontFace=t.playerOptions.cloudinary.fontFace),t._playlistWidget=new c.default(t.videojs,e))}))}},{key:"playlistWidget",value:function(t){return!(!t&&!this._playlistWidget)&&(!t&&this._playlistWidget||(0,f.isPlainObject)(t)&&this._playlistWidget.options(t),this._playlistWidget)}},{key:"_initAutoplay",value:function(){"on-scroll"===this.playerOptions.autoplayMode&&this.videojs.autoplayOnScroll()}},{key:"_initContextMenu",value:function(){this.playerOptions.hideContextMenu||this.videojs.contextMenu(a.default.contextMenu)}},{key:"_initFloatingPlayer",value:function(){this.playerOptions.floatingWhenNotVisible!==p.FLOATING_TO.NONE&&this.videojs.floatingPlayer({floatTo:this.playerOptions.floatingWhenNotVisible})}},{key:"_setCssClasses",value:function(){this.videojs.addClass(i.default.CLASS_PREFIX),this.videojs.addClass(i.default.playerClassPrefix(this.videojs)),i.default.setSkinClassPrefix(this.videojs,i.default.skinClassPrefix(this.videojs)),11===r.default.browser.IE_VERSION&&this.videojs.addClass("cld-ie11")}},{key:"_onReady",value:function(){this._setExtendedEvents();var t=this.playerOptions.source||this.playerOptions.publicId;t&&this.source(t,this.playerOptions)}},{key:"_setExtendedEvents",value:function(){var t=this,e=[];this.playerOptions.playedEventPercents&&e.push({type:g.PLAYER_EVENT.PERCENTS_PLAYED,percents:this.playerOptions.playedEventPercents}),this.playerOptions.playedEventTimes&&e.push({type:g.PLAYER_EVENT.TIME_PLAYED,times:this.playerOptions.playedEventTimes}),e.push.apply(e,[g.PLAYER_EVENT.SEEK,g.PLAYER_EVENT.MUTE,g.PLAYER_EVENT.UNMUTE,g.PLAYER_EVENT.QUALITY_CHANGED]);var n=new u.default(this.videojs,{events:e});Object.keys(n.events).forEach((function(e){n.on(e,(function(n,r){t.videojs.trigger({type:e,eventData:r})}))}))}},{key:"cloudinaryConfig",value:function(t){return this.videojs.cloudinary.cloudinaryConfig(t)}},{key:"playerOptions",get:function(){return this.options.playerOptions}},{key:"currentPublicId",value:function(){return this.videojs.cloudinary.currentPublicId()}},{key:"currentSourceUrl",value:function(){return this.videojs.currentSource().src}},{key:"currentPoster",value:function(){return this.videojs.cloudinary.currentPoster()}},{key:"source",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(this._isPlayerConfigValid){var n=(0,d.isValidConfig)(e,v.sourceValidators);if(n){if(t instanceof l.default)return this.videojs.cloudinary.source(t,e);this.videojs.interactive&&this.videojs.interactive(this.videojs,e),R.allowUsageReport()&&(e.usageReport=!0),this.setTextTracks(e.textTracks),clearTimeout(this.reTryId),this.nbCalls=0;var r=this.videojs.options_.maxTries||3,o=this.videojs.options_.videoTimeout||55e3;return this.reTryVideo(r,o),this.videojs.cloudinary.source(t,e)}this.videojs.error("invalid source configuration")}}},{key:"posterOptions",value:function(t){return this.videojs.cloudinary.posterOptions(t)}},{key:"skin",value:function(t){if(void 0!==t&&(0,f.isString)(t)){i.default.setSkinClassPrefix(this.videojs,t);var e=this.playlistWidget();e&&e.setSkin()}return i.default.skinClassPrefix(this.videojs)}},{key:"playlist",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.videojs.cloudinary.playlist(t,e)}},{key:"playlistByTag",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.videojs.cloudinary.playlistByTag(t,e)}},{key:"sourcesByTag",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.videojs.cloudinary.sourcesByTag(t,e)}},{key:"fluid",value:function(t){return void 0===t?this.videojs.fluid():(t?this.videojs.addClass(p.FLUID_CLASS_NAME):this.videojs.removeClass(p.FLUID_CLASS_NAME),this.videojs.fluid(t),this.videojs.trigger(g.PLAYER_EVENT.FLUID,t),this)}},{key:"play",value:function(){return this.playWasCalled=!0,this.videojs.play(),this}},{key:"stop",value:function(){return this.pause(),this.currentTime(0),this}},{key:"playPrevious",value:function(){return this.playlist().playPrevious(),this}},{key:"playNext",value:function(){return this.playlist().playNext(),this}},{key:"transformation",value:function(t){return this.videojs.cloudinary.transformation(t)}},{key:"sourceTypes",value:function(t){return this.videojs.cloudinary.sourceTypes(t)}},{key:"sourceTransformation",value:function(t){return this.videojs.cloudinary.sourceTransformation(t)}},{key:"autoShowRecommendations",value:function(t){return this.videojs.cloudinary.autoShowRecommendations(t)}},{key:"duration",value:function(){return this.videojs.duration()}},{key:"height",value:function(t){return t?(this.videojs.height(t),this):this.videojs.height()}},{key:"width",value:function(t){return t?(this.videojs.width(t),this):this.videojs.width()}},{key:"volume",value:function(t){return t?(this.videojs.volume(t),this):this.videojs.volume()}},{key:"mute",value:function(){return this.isMuted()||this.videojs.muted(!0),this}},{key:"unmute",value:function(){return this.isMuted()&&this.videojs.muted(!1),this}},{key:"isMuted",value:function(){return this.videojs.muted()}},{key:"pause",value:function(){return this.videojs.pause(),this}},{key:"currentTime",value:function(t){return t||0===t?(this.videojs.currentTime(t),this):this.videojs.currentTime()}},{key:"maximize",value:function(){return this.isMaximized()||this.videojs.requestFullscreen(),this}},{key:"exitMaximize",value:function(){return this.isMaximized()&&this.videojs.exitFullscreen(),this}},{key:"isMaximized",value:function(){return this.videojs.isFullscreen()}},{key:"dispose",value:function(){this.videojs.dispose()}},{key:"controls",value:function(t){return void 0===t?this.videojs.controls():(this.videojs.controls(t),this)}},{key:"ima",value:function(){return{playAd:this.videojs.ima.playAd}}},{key:"loop",value:function(t){return void 0===t?this.videojs.loop():(this.videojs.loop(t),this)}},{key:"el",value:function(){return this.videojs.el()}}],E=[{key:"all",value:function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];var o=document.querySelectorAll(t);return w(o).map((function(t){return b(R,[t].concat(n))}))}},{key:"allowUsageReport",value:function(t){return void 0===t?A:A=!!t}},{key:"buildTextTrackObj",value:function(t,e){return{kind:t,label:e.label,srclang:e.language,default:!!e.default,src:e.url}}}],_&&S(s.prototype,_),E&&S(s,E),Object.defineProperty(s,"prototype",{writable:!1}),R}(i.default.mixin(s.default)),R=x;e.default=R},function(t,e,n){(function(e){var n;n=function(){"use strict";for(var t,n="7.17.0",r={},o=function(t,e){return r[t]=r[t]||[],e&&(r[t]=r[t].concat(e)),r[t]},i=function(t,e){var n=o(t).indexOf(e);return!(n<=-1||(r[t]=r[t].slice(),r[t].splice(n,1),0))},a={prefixed:!0},s=[["requestFullscreen","exitFullscreen","fullscreenElement","fullscreenEnabled","fullscreenchange","fullscreenerror","fullscreen"],["webkitRequestFullscreen","webkitExitFullscreen","webkitFullscreenElement","webkitFullscreenEnabled","webkitfullscreenchange","webkitfullscreenerror","-webkit-full-screen"],["mozRequestFullScreen","mozCancelFullScreen","mozFullScreenElement","mozFullScreenEnabled","mozfullscreenchange","mozfullscreenerror","-moz-full-screen"],["msRequestFullscreen","msExitFullscreen","msFullscreenElement","msFullscreenEnabled","MSFullscreenChange","MSFullscreenError","-ms-fullscreen"]],u=s[0],c=0;c<s.length;c++)if(s[c][1]in document){t=s[c];break}if(t){for(var l=0;l<t.length;l++)a[u[l]]=t[l];a.prefixed=t[0]!==u[0]}var f=[],h=function t(e){var n,r="info",o=function(){for(var t=arguments.length,e=new Array(t),o=0;o<t;o++)e[o]=arguments[o];n("log",r,e)};return n=function(t,e){return function(n,r,o){var i=e.levels[r],a=new RegExp("^("+i+")$");if("log"!==n&&o.unshift(n.toUpperCase()+":"),o.unshift(t+":"),f){f.push([].concat(o));var s=f.length-1e3;f.splice(0,s>0?s:0)}if(window.console){var u=window.console[n];u||"debug"!==n||(u=window.console.info||window.console.log),u&&i&&a.test(n)&&u[Array.isArray(o)?"apply":"call"](window.console,o)}}}(e,o),o.createLogger=function(n){return t(e+": "+n)},o.levels={all:"debug|log|warn|error",off:"",debug:"debug|log|warn|error",info:"log|warn|error",warn:"warn|error",error:"error",DEFAULT:r},o.level=function(t){if("string"==typeof t){if(!o.levels.hasOwnProperty(t))throw new Error('"'+t+'" in not a valid log level');r=t}return r},(o.history=function(){return f?[].concat(f):[]}).filter=function(t){return(f||[]).filter((function(e){return new RegExp(".*"+t+".*").test(e[0])}))},o.history.clear=function(){f&&(f.length=0)},o.history.disable=function(){null!==f&&(f.length=0,f=null)},o.history.enable=function(){null===f&&(f=[])},o.error=function(){for(var t=arguments.length,e=new Array(t),o=0;o<t;o++)e[o]=arguments[o];return n("error",r,e)},o.warn=function(){for(var t=arguments.length,e=new Array(t),o=0;o<t;o++)e[o]=arguments[o];return n("warn",r,e)},o.debug=function(){for(var t=arguments.length,e=new Array(t),o=0;o<t;o++)e[o]=arguments[o];return n("debug",r,e)},o}("VIDEOJS"),p=h.createLogger,d="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==e?e:"undefined"!=typeof self?self:{};function v(t,e){return t(e={exports:{}},e.exports),e.exports}var y=v((function(t){function e(){return t.exports=e=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},e.apply(this,arguments)}t.exports=e})),g=Object.prototype.toString,m=function(t){return w(t)?Object.keys(t):[]};function _(t,e){m(t).forEach((function(n){return e(t[n],n)}))}function b(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];return Object.assign?y.apply(void 0,[t].concat(n)):(n.forEach((function(e){e&&_(e,(function(e,n){t[n]=e}))})),t)}function w(t){return!!t&&"object"==typeof t}function E(t){return w(t)&&"[object Object]"===g.call(t)&&t.constructor===Object}function T(t,e){if(!t||!e)return"";if("function"==typeof window.getComputedStyle){var n;try{n=window.getComputedStyle(t)}catch(t){return""}return n?n.getPropertyValue(e)||n[e]:""}return""}var S,O=window.navigator&&window.navigator.userAgent||"",C=/AppleWebKit\/([\d.]+)/i.exec(O),P=C?parseFloat(C.pop()):null,k=/iPod/i.test(O),j=(S=O.match(/OS (\d+)_/i))&&S[1]?S[1]:null,A=/Android/i.test(O),x=function(){var t=O.match(/Android (\d+)(?:\.(\d+))?(?:\.(\d+))*/i);if(!t)return null;var e=t[1]&&parseFloat(t[1]),n=t[2]&&parseFloat(t[2]);return e&&n?parseFloat(t[1]+"."+t[2]):e||null}(),R=A&&x<5&&P<537,L=/Firefox/i.test(O),I=/Edg/i.test(O),N=!I&&(/Chrome/i.test(O)||/CriOS/i.test(O)),M=function(){var t=O.match(/(Chrome|CriOS)\/(\d+)/);return t&&t[2]?parseFloat(t[2]):null}(),D=function(){var t=/MSIE\s(\d+)\.\d/.exec(O),e=t&&parseFloat(t[1]);return!e&&/Trident\/7.0/i.test(O)&&/rv:11.0/.test(O)&&(e=11),e}(),F=/Safari/i.test(O)&&!N&&!A&&!I,B=/Windows/i.test(O),V=Boolean(X()&&("ontouchstart"in window||window.navigator.maxTouchPoints||window.DocumentTouch&&window.document instanceof window.DocumentTouch)),U=/iPad/i.test(O)||F&&V&&!/iPhone/i.test(O),H=/iPhone/i.test(O)&&!U,Y=H||U||k,z=(F||Y)&&!N,W=Object.freeze({__proto__:null,IS_IPOD:k,IOS_VERSION:j,IS_ANDROID:A,ANDROID_VERSION:x,IS_NATIVE_ANDROID:R,IS_FIREFOX:L,IS_EDGE:I,IS_CHROME:N,CHROME_VERSION:M,IE_VERSION:D,IS_SAFARI:F,IS_WINDOWS:B,TOUCH_ENABLED:V,IS_IPAD:U,IS_IPHONE:H,IS_IOS:Y,IS_ANY_SAFARI:z});function G(t){return"string"==typeof t&&Boolean(t.trim())}function K(t){if(t.indexOf(" ")>=0)throw new Error("class has illegal whitespace characters")}function X(){return document===window.document}function q(t){return w(t)&&1===t.nodeType}function $(){try{return window.parent!==window.self}catch(t){return!0}}function J(t){return function(e,n){if(!G(e))return document[t](null);G(n)&&(n=document.querySelector(n));var r=q(n)?n:document;return r[t]&&r[t](e)}}function Q(t,e,n,r){void 0===t&&(t="div"),void 0===e&&(e={}),void 0===n&&(n={});var o=document.createElement(t);return Object.getOwnPropertyNames(e).forEach((function(t){var n=e[t];-1!==t.indexOf("aria-")||"role"===t||"type"===t?(h.warn("Setting attributes in the second argument of createEl()\nhas been deprecated. Use the third argument instead.\ncreateEl(type, properties, attributes). Attempting to set "+t+" to "+n+"."),o.setAttribute(t,n)):"textContent"===t?Z(o,n):o[t]===n&&"tabIndex"!==t||(o[t]=n)})),Object.getOwnPropertyNames(n).forEach((function(t){o.setAttribute(t,n[t])})),r&&mt(o,r),o}function Z(t,e){return void 0===t.textContent?t.innerText=e:t.textContent=e,t}function tt(t,e){e.firstChild?e.insertBefore(t,e.firstChild):e.appendChild(t)}function et(t,e){return K(e),t.classList?t.classList.contains(e):(n=e,new RegExp("(^|\\s)"+n+"($|\\s)")).test(t.className);var n}function nt(t,e){return t.classList?t.classList.add(e):et(t,e)||(t.className=(t.className+" "+e).trim()),t}function rt(t,e){return t?(t.classList?t.classList.remove(e):(K(e),t.className=t.className.split(/\s+/).filter((function(t){return t!==e})).join(" ")),t):(h.warn("removeClass was called with an element that doesn't exist"),null)}function ot(t,e,n){var r=et(t,e);if("function"==typeof n&&(n=n(t,e)),"boolean"!=typeof n&&(n=!r),n!==r)return n?nt(t,e):rt(t,e),t}function it(t,e){Object.getOwnPropertyNames(e).forEach((function(n){var r=e[n];null==r||!1===r?t.removeAttribute(n):t.setAttribute(n,!0===r?"":r)}))}function at(t){var e={},n=",autoplay,controls,playsinline,loop,muted,default,defaultMuted,";if(t&&t.attributes&&t.attributes.length>0)for(var r=t.attributes,o=r.length-1;o>=0;o--){var i=r[o].name,a=r[o].value;"boolean"!=typeof t[i]&&-1===n.indexOf(","+i+",")||(a=null!==a),e[i]=a}return e}function st(t,e){return t.getAttribute(e)}function ut(t,e,n){t.setAttribute(e,n)}function ct(t,e){t.removeAttribute(e)}function lt(){document.body.focus(),document.onselectstart=function(){return!1}}function ft(){document.onselectstart=function(){return!0}}function ht(t){if(t&&t.getBoundingClientRect&&t.parentNode){var e=t.getBoundingClientRect(),n={};return["bottom","height","left","right","top","width"].forEach((function(t){void 0!==e[t]&&(n[t]=e[t])})),n.height||(n.height=parseFloat(T(t,"height"))),n.width||(n.width=parseFloat(T(t,"width"))),n}}function pt(t){if(!t||t&&!t.offsetParent)return{left:0,top:0,width:0,height:0};for(var e=t.offsetWidth,n=t.offsetHeight,r=0,o=0;t.offsetParent&&t!==document[a.fullscreenElement];)r+=t.offsetLeft,o+=t.offsetTop,t=t.offsetParent;return{left:r,top:o,width:e,height:n}}function dt(t,e){var n={x:0,y:0};if(Y)for(var r=t;r&&"html"!==r.nodeName.toLowerCase();){var o=T(r,"transform");if(/^matrix/.test(o)){var i=o.slice(7,-1).split(/,\s/).map(Number);n.x+=i[4],n.y+=i[5]}else if(/^matrix3d/.test(o)){var a=o.slice(9,-1).split(/,\s/).map(Number);n.x+=a[12],n.y+=a[13]}r=r.parentNode}var s={},u=pt(e.target),c=pt(t),l=c.width,f=c.height,h=e.offsetY-(c.top-u.top),p=e.offsetX-(c.left-u.left);return e.changedTouches&&(p=e.changedTouches[0].pageX-c.left,h=e.changedTouches[0].pageY+c.top,Y&&(p-=n.x,h-=n.y)),s.y=1-Math.max(0,Math.min(1,h/f)),s.x=Math.max(0,Math.min(1,p/l)),s}function vt(t){return w(t)&&3===t.nodeType}function yt(t){for(;t.firstChild;)t.removeChild(t.firstChild);return t}function gt(t){return"function"==typeof t&&(t=t()),(Array.isArray(t)?t:[t]).map((function(t){return"function"==typeof t&&(t=t()),q(t)||vt(t)?t:"string"==typeof t&&/\S/.test(t)?document.createTextNode(t):void 0})).filter((function(t){return t}))}function mt(t,e){return gt(e).forEach((function(e){return t.appendChild(e)})),t}function _t(t,e){return mt(yt(t),e)}function bt(t){return void 0===t.button&&void 0===t.buttons||0===t.button&&void 0===t.buttons||"mouseup"===t.type&&0===t.button&&0===t.buttons||0===t.button&&1===t.buttons}var wt,Et=J("querySelector"),Tt=J("querySelectorAll"),St=Object.freeze({__proto__:null,isReal:X,isEl:q,isInFrame:$,createEl:Q,textContent:Z,prependTo:tt,hasClass:et,addClass:nt,removeClass:rt,toggleClass:ot,setAttributes:it,getAttributes:at,getAttribute:st,setAttribute:ut,removeAttribute:ct,blockTextSelection:lt,unblockTextSelection:ft,getBoundingClientRect:ht,findPosition:pt,getPointerPosition:dt,isTextNode:vt,emptyEl:yt,normalizeContent:gt,appendContent:mt,insertContent:_t,isSingleLeftClick:bt,$:Et,$$:Tt}),Ot=!1,Ct=function(){if(!1!==wt.options.autoSetup){var t=Array.prototype.slice.call(document.getElementsByTagName("video")),e=Array.prototype.slice.call(document.getElementsByTagName("audio")),n=Array.prototype.slice.call(document.getElementsByTagName("video-js")),r=t.concat(e,n);if(r&&r.length>0)for(var o=0,i=r.length;o<i;o++){var a=r[o];if(!a||!a.getAttribute){Pt(1);break}void 0===a.player&&null!==a.getAttribute("data-setup")&&wt(a)}else Ot||Pt(1)}};function Pt(t,e){X()&&(e&&(wt=e),window.setTimeout(Ct,t))}function kt(){Ot=!0,window.removeEventListener("load",kt)}X()&&("complete"===document.readyState?kt():window.addEventListener("load",kt));var jt,At=function(t){var e=document.createElement("style");return e.className=t,e},xt=function(t,e){t.styleSheet?t.styleSheet.cssText=e:t.textContent=e},Rt=3;function Lt(){return Rt++}window.WeakMap||(jt=function(){function t(){this.vdata="vdata"+Math.floor(window.performance&&window.performance.now()||Date.now()),this.data={}}var e=t.prototype;return e.set=function(t,e){var n=t[this.vdata]||Lt();return t[this.vdata]||(t[this.vdata]=n),this.data[n]=e,this},e.get=function(t){var e=t[this.vdata];if(e)return this.data[e];h("We have no data for this element",t)},e.has=function(t){return t[this.vdata]in this.data},e.delete=function(t){var e=t[this.vdata];e&&(delete this.data[e],delete t[this.vdata])},t}());var It,Nt=window.WeakMap?new WeakMap:new jt;function Mt(t,e){if(Nt.has(t)){var n=Nt.get(t);0===n.handlers[e].length&&(delete n.handlers[e],t.removeEventListener?t.removeEventListener(e,n.dispatcher,!1):t.detachEvent&&t.detachEvent("on"+e,n.dispatcher)),Object.getOwnPropertyNames(n.handlers).length<=0&&(delete n.handlers,delete n.dispatcher,delete n.disabled),0===Object.getOwnPropertyNames(n).length&&Nt.delete(t)}}function Dt(t,e,n,r){n.forEach((function(n){t(e,n,r)}))}function Ft(t){if(t.fixed_)return t;function e(){return!0}function n(){return!1}if(!t||!t.isPropagationStopped||!t.isImmediatePropagationStopped){var r=t||window.event;for(var o in t={},r)"layerX"!==o&&"layerY"!==o&&"keyLocation"!==o&&"webkitMovementX"!==o&&"webkitMovementY"!==o&&("returnValue"===o&&r.preventDefault||(t[o]=r[o]));if(t.target||(t.target=t.srcElement||document),t.relatedTarget||(t.relatedTarget=t.fromElement===t.target?t.toElement:t.fromElement),t.preventDefault=function(){r.preventDefault&&r.preventDefault(),t.returnValue=!1,r.returnValue=!1,t.defaultPrevented=!0},t.defaultPrevented=!1,t.stopPropagation=function(){r.stopPropagation&&r.stopPropagation(),t.cancelBubble=!0,r.cancelBubble=!0,t.isPropagationStopped=e},t.isPropagationStopped=n,t.stopImmediatePropagation=function(){r.stopImmediatePropagation&&r.stopImmediatePropagation(),t.isImmediatePropagationStopped=e,t.stopPropagation()},t.isImmediatePropagationStopped=n,null!==t.clientX&&void 0!==t.clientX){var i=document.documentElement,a=document.body;t.pageX=t.clientX+(i&&i.scrollLeft||a&&a.scrollLeft||0)-(i&&i.clientLeft||a&&a.clientLeft||0),t.pageY=t.clientY+(i&&i.scrollTop||a&&a.scrollTop||0)-(i&&i.clientTop||a&&a.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.fixed_=!0,t}var Bt=["touchstart","touchmove"];function Vt(t,e,n){if(Array.isArray(e))return Dt(Vt,t,e,n);Nt.has(t)||Nt.set(t,{});var r=Nt.get(t);if(r.handlers||(r.handlers={}),r.handlers[e]||(r.handlers[e]=[]),n.guid||(n.guid=Lt()),r.handlers[e].push(n),r.dispatcher||(r.disabled=!1,r.dispatcher=function(e,n){if(!r.disabled){e=Ft(e);var o=r.handlers[e.type];if(o)for(var i=o.slice(0),a=0,s=i.length;a<s&&!e.isImmediatePropagationStopped();a++)try{i[a].call(t,e,n)}catch(t){h.error(t)}}}),1===r.handlers[e].length)if(t.addEventListener){var o=!1;(function(){if("boolean"!=typeof It){It=!1;try{var t=Object.defineProperty({},"passive",{get:function(){It=!0}});window.addEventListener("test",null,t),window.removeEventListener("test",null,t)}catch(t){}}return It})()&&Bt.indexOf(e)>-1&&(o={passive:!0}),t.addEventListener(e,r.dispatcher,o)}else t.attachEvent&&t.attachEvent("on"+e,r.dispatcher)}function Ut(t,e,n){if(Nt.has(t)){var r=Nt.get(t);if(r.handlers){if(Array.isArray(e))return Dt(Ut,t,e,n);var o=function(t,e){r.handlers[e]=[],Mt(t,e)};if(void 0!==e){var i=r.handlers[e];if(i)if(n){if(n.guid)for(var a=0;a<i.length;a++)i[a].guid===n.guid&&i.splice(a--,1);Mt(t,e)}else o(t,e)}else for(var s in r.handlers)Object.prototype.hasOwnProperty.call(r.handlers||{},s)&&o(t,s)}}}function Ht(t,e,n){var r=Nt.has(t)?Nt.get(t):{},o=t.parentNode||t.ownerDocument;if("string"==typeof e?e={type:e,target:t}:e.target||(e.target=t),e=Ft(e),r.dispatcher&&r.dispatcher.call(t,e,n),o&&!e.isPropagationStopped()&&!0===e.bubbles)Ht.call(null,o,e,n);else if(!o&&!e.defaultPrevented&&e.target&&e.target[e.type]){Nt.has(e.target)||Nt.set(e.target,{});var i=Nt.get(e.target);e.target[e.type]&&(i.disabled=!0,"function"==typeof e.target[e.type]&&e.target[e.type](),i.disabled=!1)}return!e.defaultPrevented}function Yt(t,e,n){if(Array.isArray(e))return Dt(Yt,t,e,n);var r=function r(){Ut(t,e,r),n.apply(this,arguments)};r.guid=n.guid=n.guid||Lt(),Vt(t,e,r)}function zt(t,e,n){var r=function r(){Ut(t,e,r),n.apply(this,arguments)};r.guid=n.guid=n.guid||Lt(),Vt(t,e,r)}var Wt,Gt=Object.freeze({__proto__:null,fixEvent:Ft,on:Vt,off:Ut,trigger:Ht,one:Yt,any:zt}),Kt=30,Xt=function(t,e,n){e.guid||(e.guid=Lt());var r=e.bind(t);return r.guid=n?n+"_"+e.guid:e.guid,r},qt=function(t,e){var n=window.performance.now();return function(){var r=window.performance.now();r-n>=e&&(t.apply(void 0,arguments),n=r)}},$t=function(){};$t.prototype.allowedEvents_={},$t.prototype.on=function(t,e){var n=this.addEventListener;this.addEventListener=function(){},Vt(this,t,e),this.addEventListener=n},$t.prototype.addEventListener=$t.prototype.on,$t.prototype.off=function(t,e){Ut(this,t,e)},$t.prototype.removeEventListener=$t.prototype.off,$t.prototype.one=function(t,e){var n=this.addEventListener;this.addEventListener=function(){},Yt(this,t,e),this.addEventListener=n},$t.prototype.any=function(t,e){var n=this.addEventListener;this.addEventListener=function(){},zt(this,t,e),this.addEventListener=n},$t.prototype.trigger=function(t){var e=t.type||t;"string"==typeof t&&(t={type:e}),t=Ft(t),this.allowedEvents_[e]&&this["on"+e]&&this["on"+e](t),Ht(this,t)},$t.prototype.dispatchEvent=$t.prototype.trigger,$t.prototype.queueTrigger=function(t){var e=this;Wt||(Wt=new Map);var n=t.type||t,r=Wt.get(this);r||(r=new Map,Wt.set(this,r));var o=r.get(n);r.delete(n),window.clearTimeout(o);var i=window.setTimeout((function(){0===r.size&&(r=null,Wt.delete(e)),e.trigger(t)}),0);r.set(n,i)};var Jt=function(t){return"function"==typeof t.name?t.name():"string"==typeof t.name?t.name:t.name_?t.name_:t.constructor&&t.constructor.name?t.constructor.name:typeof t},Qt=function(t){return t instanceof $t||!!t.eventBusEl_&&["on","one","off","trigger"].every((function(e){return"function"==typeof t[e]}))},Zt=function(t){return"string"==typeof t&&/\S/.test(t)||Array.isArray(t)&&!!t.length},te=function(t,e,n){if(!t||!t.nodeName&&!Qt(t))throw new Error("Invalid target for "+Jt(e)+"#"+n+"; must be a DOM node or evented object.")},ee=function(t,e,n){if(!Zt(t))throw new Error("Invalid event type for "+Jt(e)+"#"+n+"; must be a non-empty string or array.")},ne=function(t,e,n){if("function"!=typeof t)throw new Error("Invalid listener for "+Jt(e)+"#"+n+"; must be a function.")},re=function(t,e,n){var r,o,i,a=e.length<3||e[0]===t||e[0]===t.eventBusEl_;return a?(r=t.eventBusEl_,e.length>=3&&e.shift(),o=e[0],i=e[1]):(r=e[0],o=e[1],i=e[2]),te(r,t,n),ee(o,t,n),ne(i,t,n),{isTargetingSelf:a,target:r,type:o,listener:i=Xt(t,i)}},oe=function(t,e,n,r){te(t,t,e),t.nodeName?Gt[e](t,n,r):t[e](n,r)},ie={on:function(){for(var t=this,e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];var o=re(this,n,"on"),i=o.isTargetingSelf,a=o.target,s=o.type,u=o.listener;if(oe(a,"on",s,u),!i){var c=function(){return t.off(a,s,u)};c.guid=u.guid;var l=function(){return t.off("dispose",c)};l.guid=u.guid,oe(this,"on","dispose",c),oe(a,"on","dispose",l)}},one:function(){for(var t=this,e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];var o=re(this,n,"one"),i=o.isTargetingSelf,a=o.target,s=o.type,u=o.listener;if(i)oe(a,"one",s,u);else{var c=function e(){t.off(a,s,e);for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];u.apply(null,r)};c.guid=u.guid,oe(a,"one",s,c)}},any:function(){for(var t=this,e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];var o=re(this,n,"any"),i=o.isTargetingSelf,a=o.target,s=o.type,u=o.listener;if(i)oe(a,"any",s,u);else{var c=function e(){t.off(a,s,e);for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];u.apply(null,r)};c.guid=u.guid,oe(a,"any",s,c)}},off:function(t,e,n){if(!t||Zt(t))Ut(this.eventBusEl_,t,e);else{var r=t,o=e;te(r,this,"off"),ee(o,this,"off"),ne(n,this,"off"),n=Xt(this,n),this.off("dispose",n),r.nodeName?(Ut(r,o,n),Ut(r,"dispose",n)):Qt(r)&&(r.off(o,n),r.off("dispose",n))}},trigger:function(t,e){te(this.eventBusEl_,this,"trigger");var n=t&&"string"!=typeof t?t.type:t;if(!Zt(n)){var r="Invalid event type for "+Jt(this)+"#trigger; must be a non-empty string or object with a type key that has a non-empty value.";if(!t)throw new Error(r);(this.log||h).error(r)}return Ht(this.eventBusEl_,t,e)}};function ae(t,e){void 0===e&&(e={});var n=e.eventBusKey;if(n){if(!t[n].nodeName)throw new Error('The eventBusKey "'+n+'" does not refer to an element.');t.eventBusEl_=t[n]}else t.eventBusEl_=Q("span",{className:"vjs-event-bus"});return b(t,ie),t.eventedCallbacks&&t.eventedCallbacks.forEach((function(t){t()})),t.on("dispose",(function(){t.off(),[t,t.el_,t.eventBusEl_].forEach((function(t){t&&Nt.has(t)&&Nt.delete(t)})),window.setTimeout((function(){t.eventBusEl_=null}),0)})),t}var se={state:{},setState:function(t){var e,n=this;return"function"==typeof t&&(t=t()),_(t,(function(t,r){n.state[r]!==t&&((e=e||{})[r]={from:n.state[r],to:t}),n.state[r]=t})),e&&Qt(this)&&this.trigger({changes:e,type:"statechanged"}),e}};function ue(t,e){return b(t,se),t.state=b({},t.state,e),"function"==typeof t.handleStateChanged&&Qt(t)&&t.on("statechanged",t.handleStateChanged),t}var ce=function(t){return"string"!=typeof t?t:t.replace(/./,(function(t){return t.toLowerCase()}))},le=function(t){return"string"!=typeof t?t:t.replace(/./,(function(t){return t.toUpperCase()}))};function fe(){for(var t={},e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return n.forEach((function(e){e&&_(e,(function(e,n){E(e)?(E(t[n])||(t[n]={}),t[n]=fe(t[n],e)):t[n]=e}))})),t}var he=function(){function t(){this.map_={}}var e=t.prototype;return e.has=function(t){return t in this.map_},e.delete=function(t){var e=this.has(t);return delete this.map_[t],e},e.set=function(t,e){return this.map_[t]=e,this},e.forEach=function(t,e){for(var n in this.map_)t.call(e,this.map_[n],n,this)},t}(),pe=window.Map?window.Map:he,de=function(){function t(){this.set_={}}var e=t.prototype;return e.has=function(t){return t in this.set_},e.delete=function(t){var e=this.has(t);return delete this.set_[t],e},e.add=function(t){return this.set_[t]=1,this},e.forEach=function(t,e){for(var n in this.set_)t.call(e,n,n,this)},t}(),ve=window.Set?window.Set:de,ye=function(){function t(t,e,n){if(!t&&this.play?this.player_=t=this:this.player_=t,this.isDisposed_=!1,this.parentComponent_=null,this.options_=fe({},this.options_),e=this.options_=fe(this.options_,e),this.id_=e.id||e.el&&e.el.id,!this.id_){var r=t&&t.id&&t.id()||"no_player";this.id_=r+"_component_"+Lt()}this.name_=e.name||null,e.el?this.el_=e.el:!1!==e.createEl&&(this.el_=this.createEl()),!1!==e.evented&&(ae(this,{eventBusKey:this.el_?"el_":null}),this.handleLanguagechange=this.handleLanguagechange.bind(this),this.on(this.player_,"languagechange",this.handleLanguagechange)),ue(this,this.constructor.defaultState),this.children_=[],this.childIndex_={},this.childNameIndex_={},this.setTimeoutIds_=new ve,this.setIntervalIds_=new ve,this.rafIds_=new ve,this.namedRafs_=new pe,this.clearingTimersOnDispose_=!1,!1!==e.initChildren&&this.initChildren(),this.ready(n),!1!==e.reportTouchActivity&&this.enableTouchActivity()}var e=t.prototype;return e.dispose=function(){if(!this.isDisposed_){if(this.readyQueue_&&(this.readyQueue_.length=0),this.trigger({type:"dispose",bubbles:!1}),this.isDisposed_=!0,this.children_)for(var t=this.children_.length-1;t>=0;t--)this.children_[t].dispose&&this.children_[t].dispose();this.children_=null,this.childIndex_=null,this.childNameIndex_=null,this.parentComponent_=null,this.el_&&(this.el_.parentNode&&this.el_.parentNode.removeChild(this.el_),this.el_=null),this.player_=null}},e.isDisposed=function(){return Boolean(this.isDisposed_)},e.player=function(){return this.player_},e.options=function(t){return t?(this.options_=fe(this.options_,t),this.options_):this.options_},e.el=function(){return this.el_},e.createEl=function(t,e,n){return Q(t,e,n)},e.localize=function(t,e,n){void 0===n&&(n=t);var r=this.player_.language&&this.player_.language(),o=this.player_.languages&&this.player_.languages(),i=o&&o[r],a=r&&r.split("-")[0],s=o&&o[a],u=n;return i&&i[t]?u=i[t]:s&&s[t]&&(u=s[t]),e&&(u=u.replace(/\{(\d+)\}/g,(function(t,n){var r=e[n-1],o=r;return void 0===r&&(o=t),o}))),u},e.handleLanguagechange=function(){},e.contentEl=function(){return this.contentEl_||this.el_},e.id=function(){return this.id_},e.name=function(){return this.name_},e.children=function(){return this.children_},e.getChildById=function(t){return this.childIndex_[t]},e.getChild=function(t){if(t)return this.childNameIndex_[t]},e.getDescendant=function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];e=e.reduce((function(t,e){return t.concat(e)}),[]);for(var r=this,o=0;o<e.length;o++)if(!(r=r.getChild(e[o]))||!r.getChild)return;return r},e.addChild=function(e,n,r){var o,i;if(void 0===n&&(n={}),void 0===r&&(r=this.children_.length),"string"==typeof e){i=le(e);var a=n.componentClass||i;n.name=i;var s=t.getComponent(a);if(!s)throw new Error("Component "+a+" does not exist");if("function"!=typeof s)return null;o=new s(this.player_||this,n)}else o=e;if(o.parentComponent_&&o.parentComponent_.removeChild(o),this.children_.splice(r,0,o),o.parentComponent_=this,"function"==typeof o.id&&(this.childIndex_[o.id()]=o),(i=i||o.name&&le(o.name()))&&(this.childNameIndex_[i]=o,this.childNameIndex_[ce(i)]=o),"function"==typeof o.el&&o.el()){var u=null;this.children_[r+1]&&(this.children_[r+1].el_?u=this.children_[r+1].el_:q(this.children_[r+1])&&(u=this.children_[r+1])),this.contentEl().insertBefore(o.el(),u)}return o},e.removeChild=function(t){if("string"==typeof t&&(t=this.getChild(t)),t&&this.children_){for(var e=!1,n=this.children_.length-1;n>=0;n--)if(this.children_[n]===t){e=!0,this.children_.splice(n,1);break}if(e){t.parentComponent_=null,this.childIndex_[t.id()]=null,this.childNameIndex_[le(t.name())]=null,this.childNameIndex_[ce(t.name())]=null;var r=t.el();r&&r.parentNode===this.contentEl()&&this.contentEl().removeChild(t.el())}}},e.initChildren=function(){var e=this,n=this.options_.children;if(n){var r,o=this.options_,i=t.getComponent("Tech");(r=Array.isArray(n)?n:Object.keys(n)).concat(Object.keys(this.options_).filter((function(t){return!r.some((function(e){return"string"==typeof e?t===e:t===e.name}))}))).map((function(t){var r,o;return"string"==typeof t?o=n[r=t]||e.options_[r]||{}:(r=t.name,o=t),{name:r,opts:o}})).filter((function(e){var n=t.getComponent(e.opts.componentClass||le(e.name));return n&&!i.isTech(n)})).forEach((function(t){var n=t.name,r=t.opts;if(void 0!==o[n]&&(r=o[n]),!1!==r){!0===r&&(r={}),r.playerOptions=e.options_.playerOptions;var i=e.addChild(n,r);i&&(e[n]=i)}}))}},e.buildCSSClass=function(){return""},e.ready=function(t,e){if(void 0===e&&(e=!1),t)return this.isReady_?void(e?t.call(this):this.setTimeout(t,1)):(this.readyQueue_=this.readyQueue_||[],void this.readyQueue_.push(t))},e.triggerReady=function(){this.isReady_=!0,this.setTimeout((function(){var t=this.readyQueue_;this.readyQueue_=[],t&&t.length>0&&t.forEach((function(t){t.call(this)}),this),this.trigger("ready")}),1)},e.$=function(t,e){return Et(t,e||this.contentEl())},e.$$=function(t,e){return Tt(t,e||this.contentEl())},e.hasClass=function(t){return et(this.el_,t)},e.addClass=function(t){nt(this.el_,t)},e.removeClass=function(t){rt(this.el_,t)},e.toggleClass=function(t,e){ot(this.el_,t,e)},e.show=function(){this.removeClass("vjs-hidden")},e.hide=function(){this.addClass("vjs-hidden")},e.lockShowing=function(){this.addClass("vjs-lock-showing")},e.unlockShowing=function(){this.removeClass("vjs-lock-showing")},e.getAttribute=function(t){return st(this.el_,t)},e.setAttribute=function(t,e){ut(this.el_,t,e)},e.removeAttribute=function(t){ct(this.el_,t)},e.width=function(t,e){return this.dimension("width",t,e)},e.height=function(t,e){return this.dimension("height",t,e)},e.dimensions=function(t,e){this.width(t,!0),this.height(e)},e.dimension=function(t,e,n){if(void 0!==e)return null!==e&&e==e||(e=0),-1!==(""+e).indexOf("%")||-1!==(""+e).indexOf("px")?this.el_.style[t]=e:this.el_.style[t]="auto"===e?"":e+"px",void(n||this.trigger("componentresize"));if(!this.el_)return 0;var r=this.el_.style[t],o=r.indexOf("px");return-1!==o?parseInt(r.slice(0,o),10):parseInt(this.el_["offset"+le(t)],10)},e.currentDimension=function(t){var e=0;if("width"!==t&&"height"!==t)throw new Error("currentDimension only accepts width or height value");if(e=T(this.el_,t),0===(e=parseFloat(e))||isNaN(e)){var n="offset"+le(t);e=this.el_[n]}return e},e.currentDimensions=function(){return{width:this.currentDimension("width"),height:this.currentDimension("height")}},e.currentWidth=function(){return this.currentDimension("width")},e.currentHeight=function(){return this.currentDimension("height")},e.focus=function(){this.el_.focus()},e.blur=function(){this.el_.blur()},e.handleKeyDown=function(t){this.player_&&(t.stopPropagation(),this.player_.handleKeyDown(t))},e.handleKeyPress=function(t){this.handleKeyDown(t)},e.emitTapEvents=function(){var t,e=0,n=null;this.on("touchstart",(function(r){1===r.touches.length&&(n={pageX:r.touches[0].pageX,pageY:r.touches[0].pageY},e=window.performance.now(),t=!0)})),this.on("touchmove",(function(e){if(e.touches.length>1)t=!1;else if(n){var r=e.touches[0].pageX-n.pageX,o=e.touches[0].pageY-n.pageY;Math.sqrt(r*r+o*o)>10&&(t=!1)}}));var r=function(){t=!1};this.on("touchleave",r),this.on("touchcancel",r),this.on("touchend",(function(r){n=null,!0===t&&window.performance.now()-e<200&&(r.preventDefault(),this.trigger("tap"))}))},e.enableTouchActivity=function(){if(this.player()&&this.player().reportUserActivity){var t,e=Xt(this.player(),this.player().reportUserActivity);this.on("touchstart",(function(){e(),this.clearInterval(t),t=this.setInterval(e,250)}));var n=function(n){e(),this.clearInterval(t)};this.on("touchmove",e),this.on("touchend",n),this.on("touchcancel",n)}},e.setTimeout=function(t,e){var n,r=this;return t=Xt(this,t),this.clearTimersOnDispose_(),n=window.setTimeout((function(){r.setTimeoutIds_.has(n)&&r.setTimeoutIds_.delete(n),t()}),e),this.setTimeoutIds_.add(n),n},e.clearTimeout=function(t){return this.setTimeoutIds_.has(t)&&(this.setTimeoutIds_.delete(t),window.clearTimeout(t)),t},e.setInterval=function(t,e){t=Xt(this,t),this.clearTimersOnDispose_();var n=window.setInterval(t,e);return this.setIntervalIds_.add(n),n},e.clearInterval=function(t){return this.setIntervalIds_.has(t)&&(this.setIntervalIds_.delete(t),window.clearInterval(t)),t},e.requestAnimationFrame=function(t){var e,n=this;return this.supportsRaf_?(this.clearTimersOnDispose_(),t=Xt(this,t),e=window.requestAnimationFrame((function(){n.rafIds_.has(e)&&n.rafIds_.delete(e),t()})),this.rafIds_.add(e),e):this.setTimeout(t,1e3/60)},e.requestNamedAnimationFrame=function(t,e){var n=this;if(!this.namedRafs_.has(t)){this.clearTimersOnDispose_(),e=Xt(this,e);var r=this.requestAnimationFrame((function(){e(),n.namedRafs_.has(t)&&n.namedRafs_.delete(t)}));return this.namedRafs_.set(t,r),t}},e.cancelNamedAnimationFrame=function(t){this.namedRafs_.has(t)&&(this.cancelAnimationFrame(this.namedRafs_.get(t)),this.namedRafs_.delete(t))},e.cancelAnimationFrame=function(t){return this.supportsRaf_?(this.rafIds_.has(t)&&(this.rafIds_.delete(t),window.cancelAnimationFrame(t)),t):this.clearTimeout(t)},e.clearTimersOnDispose_=function(){var t=this;this.clearingTimersOnDispose_||(this.clearingTimersOnDispose_=!0,this.one("dispose",(function(){[["namedRafs_","cancelNamedAnimationFrame"],["rafIds_","cancelAnimationFrame"],["setTimeoutIds_","clearTimeout"],["setIntervalIds_","clearInterval"]].forEach((function(e){var n=e[0],r=e[1];t[n].forEach((function(e,n){return t[r](n)}))})),t.clearingTimersOnDispose_=!1})))},t.registerComponent=function(e,n){if("string"!=typeof e||!e)throw new Error('Illegal component name, "'+e+'"; must be a non-empty string.');var r,o=t.getComponent("Tech"),i=o&&o.isTech(n),a=t===n||t.prototype.isPrototypeOf(n.prototype);if(i||!a)throw r=i?"techs must be registered using Tech.registerTech()":"must be a Component subclass",new Error('Illegal component, "'+e+'"; '+r+".");e=le(e),t.components_||(t.components_={});var s=t.getComponent("Player");if("Player"===e&&s&&s.players){var u=s.players,c=Object.keys(u);if(u&&c.length>0&&c.map((function(t){return u[t]})).every(Boolean))throw new Error("Can not register Player component after player has been created.")}return t.components_[e]=n,t.components_[ce(e)]=n,n},t.getComponent=function(e){if(e&&t.components_)return t.components_[e]},t}();ye.prototype.supportsRaf_="function"==typeof window.requestAnimationFrame&&"function"==typeof window.cancelAnimationFrame,ye.registerComponent("Component",ye);var ge=function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t},me=function(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e};function _e(t,e,n,r){return function(t,e,n){if("number"!=typeof e||e<0||e>n)throw new Error("Failed to execute '"+t+"' on 'TimeRanges': The index provided ("+e+") is non-numeric or out of bounds (0-"+n+").")}(t,r,n.length-1),n[r][e]}function be(t){var e;return e=void 0===t||0===t.length?{length:0,start:function(){throw new Error("This TimeRanges object is empty")},end:function(){throw new Error("This TimeRanges object is empty")}}:{length:t.length,start:_e.bind(null,"start",0,t),end:_e.bind(null,"end",1,t)},window.Symbol&&window.Symbol.iterator&&(e[window.Symbol.iterator]=function(){return(t||[]).values()}),e}function we(t,e){return Array.isArray(t)?be(t):void 0===t||void 0===e?be():be([[t,e]])}function Ee(t,e){var n,r,o=0;if(!e)return 0;t&&t.length||(t=we(0,0));for(var i=0;i<t.length;i++)n=t.start(i),(r=t.end(i))>e&&(r=e),o+=r-n;return o/e}function Te(t){if(t instanceof Te)return t;"number"==typeof t?this.code=t:"string"==typeof t?this.message=t:w(t)&&("number"==typeof t.code&&(this.code=t.code),b(this,t)),this.message||(this.message=Te.defaultMessages[this.code]||"")}Te.prototype.code=0,Te.prototype.message="",Te.prototype.status=null,Te.errorTypes=["MEDIA_ERR_CUSTOM","MEDIA_ERR_ABORTED","MEDIA_ERR_NETWORK","MEDIA_ERR_DECODE","MEDIA_ERR_SRC_NOT_SUPPORTED","MEDIA_ERR_ENCRYPTED"],Te.defaultMessages={1:"You aborted the media playback",2:"A network error caused the media download to fail part-way.",3:"The media playback was aborted due to a corruption problem or because the media used features your browser did not support.",4:"The media could not be loaded, either because the server or network failed or because the format is not supported.",5:"The media is encrypted and we do not have the keys to decrypt it."};for(var Se=0;Se<Te.errorTypes.length;Se++)Te[Te.errorTypes[Se]]=Se,Te.prototype[Te.errorTypes[Se]]=Se;var Oe=function(t,e){var n,r=null;try{n=JSON.parse(t,e)}catch(t){r=t}return[r,n]};function Ce(t){return null!=t&&"function"==typeof t.then}function Pe(t){Ce(t)&&t.then(null,(function(t){}))}var ke=function(t){return["kind","label","language","id","inBandMetadataTrackDispatchType","mode","src"].reduce((function(e,n,r){return t[n]&&(e[n]=t[n]),e}),{cues:t.cues&&Array.prototype.map.call(t.cues,(function(t){return{startTime:t.startTime,endTime:t.endTime,text:t.text,id:t.id}}))})},je=function(t){var e=t.$$("track"),n=Array.prototype.map.call(e,(function(t){return t.track}));return Array.prototype.map.call(e,(function(t){var e=ke(t.track);return t.src&&(e.src=t.src),e})).concat(Array.prototype.filter.call(t.textTracks(),(function(t){return-1===n.indexOf(t)})).map(ke))},Ae=function(t,e){return t.forEach((function(t){var n=e.addRemoteTextTrack(t).track;!t.src&&t.cues&&t.cues.forEach((function(t){return n.addCue(t)}))})),e.textTracks()},xe=v((function(t,e){function n(t){if(t&&"object"==typeof t){var e=t.which||t.keyCode||t.charCode;e&&(t=e)}if("number"==typeof t)return a[t];var n,i=String(t);return(n=r[i.toLowerCase()])?n:(n=o[i.toLowerCase()])||(1===i.length?i.charCodeAt(0):void 0)}n.isEventKey=function(t,e){if(t&&"object"==typeof t){var n=t.which||t.keyCode||t.charCode;if(null==n)return!1;if("string"==typeof e){var i;if(i=r[e.toLowerCase()])return i===n;if(i=o[e.toLowerCase()])return i===n}else if("number"==typeof e)return e===n;return!1}};var r=(e=t.exports=n).code=e.codes={backspace:8,tab:9,enter:13,shift:16,ctrl:17,alt:18,"pause/break":19,"caps lock":20,esc:27,space:32,"page up":33,"page down":34,end:35,home:36,left:37,up:38,right:39,down:40,insert:45,delete:46,command:91,"left command":91,"right command":93,"numpad *":106,"numpad +":107,"numpad -":109,"numpad .":110,"numpad /":111,"num lock":144,"scroll lock":145,"my computer":182,"my calculator":183,";":186,"=":187,",":188,"-":189,".":190,"/":191,"`":192,"[":219,"\\":220,"]":221,"'":222},o=e.aliases={windows:91,"⇧":16,"⌥":18,"⌃":17,"⌘":91,ctl:17,control:17,option:18,pause:19,break:19,caps:20,return:13,escape:27,spc:32,spacebar:32,pgup:33,pgdn:34,ins:45,del:46,cmd:91};for(i=97;i<123;i++)r[String.fromCharCode(i)]=i-32;for(var i=48;i<58;i++)r[i-48]=i;for(i=1;i<13;i++)r["f"+i]=i+111;for(i=0;i<10;i++)r["numpad "+i]=i+96;var a=e.names=e.title={};for(i in r)a[r[i]]=i;for(var s in o)r[s]=o[s]}));xe.code,xe.codes,xe.aliases,xe.names,xe.title;var Re=function(t){function e(e,n){var r;return(r=t.call(this,e,n)||this).handleKeyDown_=function(t){return r.handleKeyDown(t)},r.close_=function(t){return r.close(t)},r.opened_=r.hasBeenOpened_=r.hasBeenFilled_=!1,r.closeable(!r.options_.uncloseable),r.content(r.options_.content),r.contentEl_=Q("div",{className:"vjs-modal-dialog-content"},{role:"document"}),r.descEl_=Q("p",{className:"vjs-modal-dialog-description vjs-control-text",id:r.el().getAttribute("aria-describedby")}),Z(r.descEl_,r.description()),r.el_.appendChild(r.descEl_),r.el_.appendChild(r.contentEl_),r}me(e,t);var n=e.prototype;return n.createEl=function(){return t.prototype.createEl.call(this,"div",{className:this.buildCSSClass(),tabIndex:-1},{"aria-describedby":this.id()+"_description","aria-hidden":"true","aria-label":this.label(),role:"dialog"})},n.dispose=function(){this.contentEl_=null,this.descEl_=null,this.previouslyActiveEl_=null,t.prototype.dispose.call(this)},n.buildCSSClass=function(){return"vjs-modal-dialog vjs-hidden "+t.prototype.buildCSSClass.call(this)},n.label=function(){return this.localize(this.options_.label||"Modal Window")},n.description=function(){var t=this.options_.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},n.open=function(){if(!this.opened_){var t=this.player();this.trigger("beforemodalopen"),this.opened_=!0,(this.options_.fillAlways||!this.hasBeenOpened_&&!this.hasBeenFilled_)&&this.fill(),this.wasPlaying_=!t.paused(),this.options_.pauseOnOpen&&this.wasPlaying_&&t.pause(),this.on("keydown",this.handleKeyDown_),this.hadControls_=t.controls(),t.controls(!1),this.show(),this.conditionalFocus_(),this.el().setAttribute("aria-hidden","false"),this.trigger("modalopen"),this.hasBeenOpened_=!0}},n.opened=function(t){return"boolean"==typeof t&&this[t?"open":"close"](),this.opened_},n.close=function(){if(this.opened_){var t=this.player();this.trigger("beforemodalclose"),this.opened_=!1,this.wasPlaying_&&this.options_.pauseOnOpen&&t.play(),this.off("keydown",this.handleKeyDown_),this.hadControls_&&t.controls(!0),this.hide(),this.el().setAttribute("aria-hidden","true"),this.trigger("modalclose"),this.conditionalBlur_(),this.options_.temporary&&this.dispose()}},n.closeable=function(t){if("boolean"==typeof t){var e=this.closeable_=!!t,n=this.getChild("closeButton");if(e&&!n){var r=this.contentEl_;this.contentEl_=this.el_,n=this.addChild("closeButton",{controlText:"Close Modal Dialog"}),this.contentEl_=r,this.on(n,"close",this.close_)}!e&&n&&(this.off(n,"close",this.close_),this.removeChild(n),n.dispose())}return this.closeable_},n.fill=function(){this.fillWith(this.content())},n.fillWith=function(t){var e=this.contentEl(),n=e.parentNode,r=e.nextSibling;this.trigger("beforemodalfill"),this.hasBeenFilled_=!0,n.removeChild(e),this.empty(),_t(e,t),this.trigger("modalfill"),r?n.insertBefore(e,r):n.appendChild(e);var o=this.getChild("closeButton");o&&n.appendChild(o.el_)},n.empty=function(){this.trigger("beforemodalempty"),yt(this.contentEl()),this.trigger("modalempty")},n.content=function(t){return void 0!==t&&(this.content_=t),this.content_},n.conditionalFocus_=function(){var t=document.activeElement,e=this.player_.el_;this.previouslyActiveEl_=null,(e.contains(t)||e===t)&&(this.previouslyActiveEl_=t,this.focus())},n.conditionalBlur_=function(){this.previouslyActiveEl_&&(this.previouslyActiveEl_.focus(),this.previouslyActiveEl_=null)},n.handleKeyDown=function(t){if(t.stopPropagation(),xe.isEventKey(t,"Escape")&&this.closeable())return t.preventDefault(),void this.close();if(xe.isEventKey(t,"Tab")){for(var e,n=this.focusableEls_(),r=this.el_.querySelector(":focus"),o=0;o<n.length;o++)if(r===n[o]){e=o;break}document.activeElement===this.el_&&(e=0),t.shiftKey&&0===e?(n[n.length-1].focus(),t.preventDefault()):t.shiftKey||e!==n.length-1||(n[0].focus(),t.preventDefault())}},n.focusableEls_=function(){var t=this.el_.querySelectorAll("*");return Array.prototype.filter.call(t,(function(t){return(t instanceof window.HTMLAnchorElement||t instanceof window.HTMLAreaElement)&&t.hasAttribute("href")||(t instanceof window.HTMLInputElement||t instanceof window.HTMLSelectElement||t instanceof window.HTMLTextAreaElement||t instanceof window.HTMLButtonElement)&&!t.hasAttribute("disabled")||t instanceof window.HTMLIFrameElement||t instanceof window.HTMLObjectElement||t instanceof window.HTMLEmbedElement||t.hasAttribute("tabindex")&&-1!==t.getAttribute("tabindex")||t.hasAttribute("contenteditable")}))},e}(ye);Re.prototype.options_={pauseOnOpen:!0,temporary:!0},ye.registerComponent("ModalDialog",Re);var Le=function(t){function e(e){var n;void 0===e&&(e=[]),(n=t.call(this)||this).tracks_=[],Object.defineProperty(ge(n),"length",{get:function(){return this.tracks_.length}});for(var r=0;r<e.length;r++)n.addTrack(e[r]);return n}me(e,t);var n=e.prototype;return n.addTrack=function(t){var e=this,n=this.tracks_.length;""+n in this||Object.defineProperty(this,n,{get:function(){return this.tracks_[n]}}),-1===this.tracks_.indexOf(t)&&(this.tracks_.push(t),this.trigger({track:t,type:"addtrack",target:this})),t.labelchange_=function(){e.trigger({track:t,type:"labelchange",target:e})},Qt(t)&&t.addEventListener("labelchange",t.labelchange_)},n.removeTrack=function(t){for(var e,n=0,r=this.length;n<r;n++)if(this[n]===t){(e=this[n]).off&&e.off(),this.tracks_.splice(n,1);break}e&&this.trigger({track:e,type:"removetrack",target:this})},n.getTrackById=function(t){for(var e=null,n=0,r=this.length;n<r;n++){var o=this[n];if(o.id===t){e=o;break}}return e},e}($t);for(var Ie in Le.prototype.allowedEvents_={change:"change",addtrack:"addtrack",removetrack:"removetrack",labelchange:"labelchange"},Le.prototype.allowedEvents_)Le.prototype["on"+Ie]=null;var Ne=function(t,e){for(var n=0;n<t.length;n++)Object.keys(t[n]).length&&e.id!==t[n].id&&(t[n].enabled=!1)},Me=function(t){function e(e){var n;void 0===e&&(e=[]);for(var r=e.length-1;r>=0;r--)if(e[r].enabled){Ne(e,e[r]);break}return(n=t.call(this,e)||this).changing_=!1,n}me(e,t);var n=e.prototype;return n.addTrack=function(e){var n=this;e.enabled&&Ne(this,e),t.prototype.addTrack.call(this,e),e.addEventListener&&(e.enabledChange_=function(){n.changing_||(n.changing_=!0,Ne(n,e),n.changing_=!1,n.trigger("change"))},e.addEventListener("enabledchange",e.enabledChange_))},n.removeTrack=function(e){t.prototype.removeTrack.call(this,e),e.removeEventListener&&e.enabledChange_&&(e.removeEventListener("enabledchange",e.enabledChange_),e.enabledChange_=null)},e}(Le),De=function(t,e){for(var n=0;n<t.length;n++)Object.keys(t[n]).length&&e.id!==t[n].id&&(t[n].selected=!1)},Fe=function(t){function e(e){var n;void 0===e&&(e=[]);for(var r=e.length-1;r>=0;r--)if(e[r].selected){De(e,e[r]);break}return(n=t.call(this,e)||this).changing_=!1,Object.defineProperty(ge(n),"selectedIndex",{get:function(){for(var t=0;t<this.length;t++)if(this[t].selected)return t;return-1},set:function(){}}),n}me(e,t);var n=e.prototype;return n.addTrack=function(e){var n=this;e.selected&&De(this,e),t.prototype.addTrack.call(this,e),e.addEventListener&&(e.selectedChange_=function(){n.changing_||(n.changing_=!0,De(n,e),n.changing_=!1,n.trigger("change"))},e.addEventListener("selectedchange",e.selectedChange_))},n.removeTrack=function(e){t.prototype.removeTrack.call(this,e),e.removeEventListener&&e.selectedChange_&&(e.removeEventListener("selectedchange",e.selectedChange_),e.selectedChange_=null)},e}(Le),Be=function(t){function e(){return t.apply(this,arguments)||this}me(e,t);var n=e.prototype;return n.addTrack=function(e){var n=this;t.prototype.addTrack.call(this,e),this.queueChange_||(this.queueChange_=function(){return n.queueTrigger("change")}),this.triggerSelectedlanguagechange||(this.triggerSelectedlanguagechange_=function(){return n.trigger("selectedlanguagechange")}),e.addEventListener("modechange",this.queueChange_),-1===["metadata","chapters"].indexOf(e.kind)&&e.addEventListener("modechange",this.triggerSelectedlanguagechange_)},n.removeTrack=function(e){t.prototype.removeTrack.call(this,e),e.removeEventListener&&(this.queueChange_&&e.removeEventListener("modechange",this.queueChange_),this.selectedlanguagechange_&&e.removeEventListener("modechange",this.triggerSelectedlanguagechange_))},e}(Le),Ve=function(){function t(t){void 0===t&&(t=[]),this.trackElements_=[],Object.defineProperty(this,"length",{get:function(){return this.trackElements_.length}});for(var e=0,n=t.length;e<n;e++)this.addTrackElement_(t[e])}var e=t.prototype;return e.addTrackElement_=function(t){var e=this.trackElements_.length;""+e in this||Object.defineProperty(this,e,{get:function(){return this.trackElements_[e]}}),-1===this.trackElements_.indexOf(t)&&this.trackElements_.push(t)},e.getTrackElementByTrack_=function(t){for(var e,n=0,r=this.trackElements_.length;n<r;n++)if(t===this.trackElements_[n].track){e=this.trackElements_[n];break}return e},e.removeTrackElement_=function(t){for(var e=0,n=this.trackElements_.length;e<n;e++)if(t===this.trackElements_[e]){this.trackElements_[e].track&&"function"==typeof this.trackElements_[e].track.off&&this.trackElements_[e].track.off(),"function"==typeof this.trackElements_[e].off&&this.trackElements_[e].off(),this.trackElements_.splice(e,1);break}},t}(),Ue=function(){function t(e){t.prototype.setCues_.call(this,e),Object.defineProperty(this,"length",{get:function(){return this.length_}})}var e=t.prototype;return e.setCues_=function(t){var e=this.length||0,n=0,r=t.length;this.cues_=t,this.length_=t.length;var o=function(t){""+t in this||Object.defineProperty(this,""+t,{get:function(){return this.cues_[t]}})};if(e<r)for(n=e;n<r;n++)o.call(this,n)},e.getCueById=function(t){for(var e=null,n=0,r=this.length;n<r;n++){var o=this[n];if(o.id===t){e=o;break}}return e},t}(),He={alternative:"alternative",captions:"captions",main:"main",sign:"sign",subtitles:"subtitles",commentary:"commentary"},Ye={alternative:"alternative",descriptions:"descriptions",main:"main","main-desc":"main-desc",translation:"translation",commentary:"commentary"},ze={subtitles:"subtitles",captions:"captions",descriptions:"descriptions",chapters:"chapters",metadata:"metadata"},We={disabled:"disabled",hidden:"hidden",showing:"showing"},Ge=function(t){function e(e){var n;void 0===e&&(e={}),n=t.call(this)||this;var r={id:e.id||"vjs_track_"+Lt(),kind:e.kind||"",language:e.language||""},o=e.label||"",i=function(t){Object.defineProperty(ge(n),t,{get:function(){return r[t]},set:function(){}})};for(var a in r)i(a);return Object.defineProperty(ge(n),"label",{get:function(){return o},set:function(t){t!==o&&(o=t,this.trigger("labelchange"))}}),n}return me(e,t),e}($t),Ke=function(t){var e=["protocol","hostname","port","pathname","search","hash","host"],n=document.createElement("a");n.href=t;for(var r={},o=0;o<e.length;o++)r[e[o]]=n[e[o]];return"http:"===r.protocol&&(r.host=r.host.replace(/:80$/,"")),"https:"===r.protocol&&(r.host=r.host.replace(/:443$/,"")),r.protocol||(r.protocol=window.location.protocol),r.host||(r.host=window.location.host),r},Xe=function(t){if(!t.match(/^https?:\/\//)){var e=document.createElement("a");e.href=t,t=e.href}return t},qe=function(t){if("string"==typeof t){var e=/^(\/?)([\s\S]*?)((?:\.{1,2}|[^\/]+?)(\.([^\.\/\?]+)))(?:[\/]*|[\?].*)$/.exec(t);if(e)return e.pop().toLowerCase()}return""},$e=function(t,e){void 0===e&&(e=window.location);var n=Ke(t);return(":"===n.protocol?e.protocol:n.protocol)+n.host!==e.protocol+e.host},Je=Object.freeze({__proto__:null,parseUrl:Ke,getAbsoluteURL:Xe,getFileExtension:qe,isCrossOrigin:$e}),Qe="undefined"!=typeof window?window:void 0!==d?d:"undefined"!=typeof self?self:{},Ze=function(t){if(!t)return!1;var e=tn.call(t);return"[object Function]"===e||"function"==typeof t&&"[object RegExp]"!==e||"undefined"!=typeof window&&(t===window.setTimeout||t===window.alert||t===window.confirm||t===window.prompt)},tn=Object.prototype.toString,en=function(t,e){return void 0===e&&(e=!1),function(n,r,o){if(n)t(n);else if(r.statusCode>=400&&r.statusCode<=599){var i=o;if(e)if(Qe.TextDecoder){var a=(void 0===(s=r.headers&&r.headers["content-type"])&&(s=""),s.toLowerCase().split(";").reduce((function(t,e){var n=e.split("="),r=n[0],o=n[1];return"charset"===r.trim()?o.trim():t}),"utf-8"));try{i=new TextDecoder(a).decode(o)}catch(t){}}else i=String.fromCharCode.apply(null,new Uint8Array(o));t({cause:i})}else t(null,o);var s}};an.httpHandler=en;var nn=an,rn=an;function on(t,e,n){var r=t;return Ze(e)?(n=e,"string"==typeof t&&(r={uri:t})):r=y({},e,{uri:t}),r.callback=n,r}function an(t,e,n){return sn(e=on(t,e,n))}function sn(t){if(void 0===t.callback)throw new Error("callback argument missing");var e=!1,n=function(n,r,o){e||(e=!0,t.callback(n,r,o))};function r(){var t=void 0;if(t=u.response?u.response:u.responseText||function(t){try{if("document"===t.responseType)return t.responseXML;var e=t.responseXML&&"parsererror"===t.responseXML.documentElement.nodeName;if(""===t.responseType&&!e)return t.responseXML}catch(t){}return null}(u),v)try{t=JSON.parse(t)}catch(t){}return t}function o(t){return clearTimeout(c),t instanceof Error||(t=new Error(""+(t||"Unknown XMLHttpRequest Error"))),t.statusCode=0,n(t,y)}function i(){if(!s){var e;clearTimeout(c),e=t.useXDR&&void 0===u.status?200:1223===u.status?204:u.status;var o=y,i=null;return 0!==e?(o={body:r(),statusCode:e,method:f,headers:{},url:l,rawRequest:u},u.getAllResponseHeaders&&(o.headers=function(t){var e={};return t?(t.trim().split("\n").forEach((function(t){var n=t.indexOf(":"),r=t.slice(0,n).trim().toLowerCase(),o=t.slice(n+1).trim();void 0===e[r]?e[r]=o:Array.isArray(e[r])?e[r].push(o):e[r]=[e[r],o]})),e):e}(u.getAllResponseHeaders()))):i=new Error("Internal XMLHttpRequest Error"),n(i,o,o.body)}}var a,s,u=t.xhr||null;u||(u=t.cors||t.useXDR?new an.XDomainRequest:new an.XMLHttpRequest);var c,l=u.url=t.uri||t.url,f=u.method=t.method||"GET",h=t.body||t.data,p=u.headers=t.headers||{},d=!!t.sync,v=!1,y={body:void 0,headers:{},statusCode:0,method:f,url:l,rawRequest:u};if("json"in t&&!1!==t.json&&(v=!0,p.accept||p.Accept||(p.Accept="application/json"),"GET"!==f&&"HEAD"!==f&&(p["content-type"]||p["Content-Type"]||(p["Content-Type"]="application/json"),h=JSON.stringify(!0===t.json?h:t.json))),u.onreadystatechange=function(){4===u.readyState&&setTimeout(i,0)},u.onload=i,u.onerror=o,u.onprogress=function(){},u.onabort=function(){s=!0},u.ontimeout=o,u.open(f,l,!d,t.username,t.password),d||(u.withCredentials=!!t.withCredentials),!d&&t.timeout>0&&(c=setTimeout((function(){if(!s){s=!0,u.abort("timeout");var t=new Error("XMLHttpRequest timeout");t.code="ETIMEDOUT",o(t)}}),t.timeout)),u.setRequestHeader)for(a in p)p.hasOwnProperty(a)&&u.setRequestHeader(a,p[a]);else if(t.headers&&!function(t){for(var e in t)if(t.hasOwnProperty(e))return!1;return!0}(t.headers))throw new Error("Headers cannot be set on an XDomainRequest object");return"responseType"in t&&(u.responseType=t.responseType),"beforeSend"in t&&"function"==typeof t.beforeSend&&t.beforeSend(u),u.send(h||null),u}an.XMLHttpRequest=Qe.XMLHttpRequest||function(){},an.XDomainRequest="withCredentials"in new an.XMLHttpRequest?an.XMLHttpRequest:Qe.XDomainRequest,function(t,e){for(var n=0;n<t.length;n++)e(t[n])}(["get","put","post","patch","head","delete"],(function(t){an["delete"===t?"del":t]=function(e,n,r){return(n=on(e,n,r)).method=t.toUpperCase(),sn(n)}})),nn.default=rn;var un=function(t,e){var n=new window.WebVTT.Parser(window,window.vttjs,window.WebVTT.StringDecoder()),r=[];n.oncue=function(t){e.addCue(t)},n.onparsingerror=function(t){r.push(t)},n.onflush=function(){e.trigger({type:"loadeddata",target:e})},n.parse(t),r.length>0&&(window.console&&window.console.groupCollapsed&&window.console.groupCollapsed("Text Track parsing errors for "+e.src),r.forEach((function(t){return h.error(t)})),window.console&&window.console.groupEnd&&window.console.groupEnd()),n.flush()},cn=function(t,e){var n={uri:t},r=$e(t);r&&(n.cors=r);var o="use-credentials"===e.tech_.crossOrigin();o&&(n.withCredentials=o),nn(n,Xt(this,(function(t,n,r){if(t)return h.error(t,n);e.loaded_=!0,"function"!=typeof window.WebVTT?e.tech_&&e.tech_.any(["vttjsloaded","vttjserror"],(function(t){if("vttjserror"!==t.type)return un(r,e);h.error("vttjs failed to load, stopping trying to process "+e.src)})):un(r,e)})))},ln=function(t){function e(e){var n;if(void 0===e&&(e={}),!e.tech)throw new Error("A tech was not provided.");var r=fe(e,{kind:ze[e.kind]||"subtitles",language:e.language||e.srclang||""}),o=We[r.mode]||"disabled",i=r.default;"metadata"!==r.kind&&"chapters"!==r.kind||(o="hidden"),(n=t.call(this,r)||this).tech_=r.tech,n.cues_=[],n.activeCues_=[],n.preload_=!1!==n.tech_.preloadTextTracks;var a=new Ue(n.cues_),s=new Ue(n.activeCues_),u=!1,c=Xt(ge(n),(function(){this.tech_.isReady_&&!this.tech_.isDisposed()&&(this.activeCues=this.activeCues,u&&(this.trigger("cuechange"),u=!1))}));return n.tech_.one("dispose",(function(){n.tech_.off("timeupdate",c)})),"disabled"!==o&&n.tech_.on("timeupdate",c),Object.defineProperties(ge(n),{default:{get:function(){return i},set:function(){}},mode:{get:function(){return o},set:function(t){We[t]&&o!==t&&(o=t,this.preload_||"disabled"===o||0!==this.cues.length||cn(this.src,this),this.tech_.off("timeupdate",c),"disabled"!==o&&this.tech_.on("timeupdate",c),this.trigger("modechange"))}},cues:{get:function(){return this.loaded_?a:null},set:function(){}},activeCues:{get:function(){if(!this.loaded_)return null;if(0===this.cues.length)return s;for(var t=this.tech_.currentTime(),e=[],n=0,r=this.cues.length;n<r;n++){var o=this.cues[n];(o.startTime<=t&&o.endTime>=t||o.startTime===o.endTime&&o.startTime<=t&&o.startTime+.5>=t)&&e.push(o)}if(u=!1,e.length!==this.activeCues_.length)u=!0;else for(var i=0;i<e.length;i++)-1===this.activeCues_.indexOf(e[i])&&(u=!0);return this.activeCues_=e,s.setCues_(this.activeCues_),s},set:function(){}}}),r.src?(n.src=r.src,n.preload_||(n.loaded_=!0),(n.preload_||"subtitles"!==r.kind&&"captions"!==r.kind)&&cn(n.src,ge(n))):n.loaded_=!0,n}me(e,t);var n=e.prototype;return n.addCue=function(t){var e=t;if(window.vttjs&&!(t instanceof window.vttjs.VTTCue)){for(var n in e=new window.vttjs.VTTCue(t.startTime,t.endTime,t.text),t)n in e||(e[n]=t[n]);e.id=t.id,e.originalCue_=t}for(var r=this.tech_.textTracks(),o=0;o<r.length;o++)r[o]!==this&&r[o].removeCue(e);this.cues_.push(e),this.cues.setCues_(this.cues_)},n.removeCue=function(t){for(var e=this.cues_.length;e--;){var n=this.cues_[e];if(n===t||n.originalCue_&&n.originalCue_===t){this.cues_.splice(e,1),this.cues.setCues_(this.cues_);break}}},e}(Ge);ln.prototype.allowedEvents_={cuechange:"cuechange"};var fn=function(t){function e(e){var n;void 0===e&&(e={});var r=fe(e,{kind:Ye[e.kind]||""});n=t.call(this,r)||this;var o=!1;return Object.defineProperty(ge(n),"enabled",{get:function(){return o},set:function(t){"boolean"==typeof t&&t!==o&&(o=t,this.trigger("enabledchange"))}}),r.enabled&&(n.enabled=r.enabled),n.loaded_=!0,n}return me(e,t),e}(Ge),hn=function(t){function e(e){var n;void 0===e&&(e={});var r=fe(e,{kind:He[e.kind]||""});n=t.call(this,r)||this;var o=!1;return Object.defineProperty(ge(n),"selected",{get:function(){return o},set:function(t){"boolean"==typeof t&&t!==o&&(o=t,this.trigger("selectedchange"))}}),r.selected&&(n.selected=r.selected),n}return me(e,t),e}(Ge),pn=function(t){function e(e){var n,r;void 0===e&&(e={}),n=t.call(this)||this;var o=new ln(e);return n.kind=o.kind,n.src=o.src,n.srclang=o.language,n.label=o.label,n.default=o.default,Object.defineProperties(ge(n),{readyState:{get:function(){return r}},track:{get:function(){return o}}}),r=0,o.addEventListener("loadeddata",(function(){r=2,n.trigger({type:"load",target:ge(n)})})),n}return me(e,t),e}($t);pn.prototype.allowedEvents_={load:"load"},pn.NONE=0,pn.LOADING=1,pn.LOADED=2,pn.ERROR=3;var dn={audio:{ListClass:Me,TrackClass:fn,capitalName:"Audio"},video:{ListClass:Fe,TrackClass:hn,capitalName:"Video"},text:{ListClass:Be,TrackClass:ln,capitalName:"Text"}};Object.keys(dn).forEach((function(t){dn[t].getterName=t+"Tracks",dn[t].privateName=t+"Tracks_"}));var vn={remoteText:{ListClass:Be,TrackClass:ln,capitalName:"RemoteText",getterName:"remoteTextTracks",privateName:"remoteTextTracks_"},remoteTextEl:{ListClass:Ve,TrackClass:pn,capitalName:"RemoteTextTrackEls",getterName:"remoteTextTrackEls",privateName:"remoteTextTrackEls_"}},yn=y({},dn,vn);vn.names=Object.keys(vn),dn.names=Object.keys(dn),yn.names=[].concat(vn.names).concat(dn.names);var gn,mn=void 0!==d?d:"undefined"!=typeof window?window:{};"undefined"!=typeof document?gn=document:(gn=mn["__GLOBAL_DOCUMENT_CACHE@4"])||(gn=mn["__GLOBAL_DOCUMENT_CACHE@4"]={});var _n=gn,bn=Object.create||function(){function t(){}return function(e){if(1!==arguments.length)throw new Error("Object.create shim only accepts one parameter.");return t.prototype=e,new t}}();function wn(t,e){this.name="ParsingError",this.code=t.code,this.message=e||t.message}function En(t){function e(t,e,n,r){return 3600*(0|t)+60*(0|e)+(0|n)+(0|r)/1e3}var n=t.match(/^(\d+):(\d{1,2})(:\d{1,2})?\.(\d{3})/);return n?n[3]?e(n[1],n[2],n[3].replace(":",""),n[4]):n[1]>59?e(n[1],n[2],0,n[4]):e(0,n[1],n[2],n[4]):null}function Tn(){this.values=bn(null)}function Sn(t,e,n,r){var o=r?t.split(r):[t];for(var i in o)if("string"==typeof o[i]){var a=o[i].split(n);2===a.length&&e(a[0],a[1])}}function On(t,e,n){var r=t;function o(){var e=En(t);if(null===e)throw new wn(wn.Errors.BadTimeStamp,"Malformed timestamp: "+r);return t=t.replace(/^[^\sa-zA-Z-]+/,""),e}function i(){t=t.replace(/^\s+/,"")}if(i(),e.startTime=o(),i(),"--\x3e"!==t.substr(0,3))throw new wn(wn.Errors.BadTimeStamp,"Malformed time stamp (time stamps must be separated by '--\x3e'): "+r);t=t.substr(3),i(),e.endTime=o(),i(),function(t,e){var r=new Tn;Sn(t,(function(t,e){switch(t){case"region":for(var o=n.length-1;o>=0;o--)if(n[o].id===e){r.set(t,n[o].region);break}break;case"vertical":r.alt(t,e,["rl","lr"]);break;case"line":var i=e.split(","),a=i[0];r.integer(t,a),r.percent(t,a)&&r.set("snapToLines",!1),r.alt(t,a,["auto"]),2===i.length&&r.alt("lineAlign",i[1],["start","center","end"]);break;case"position":i=e.split(","),r.percent(t,i[0]),2===i.length&&r.alt("positionAlign",i[1],["start","center","end"]);break;case"size":r.percent(t,e);break;case"align":r.alt(t,e,["start","center","end","left","right"])}}),/:/,/\s/),e.region=r.get("region",null),e.vertical=r.get("vertical","");try{e.line=r.get("line","auto")}catch(t){}e.lineAlign=r.get("lineAlign","start"),e.snapToLines=r.get("snapToLines",!0),e.size=r.get("size",100);try{e.align=r.get("align","center")}catch(t){e.align=r.get("align","middle")}try{e.position=r.get("position","auto")}catch(t){e.position=r.get("position",{start:0,left:0,center:50,middle:50,end:100,right:100},e.align)}e.positionAlign=r.get("positionAlign",{start:"start",left:"start",center:"center",middle:"center",end:"end",right:"end"},e.align)}(t,e)}wn.prototype=bn(Error.prototype),wn.prototype.constructor=wn,wn.Errors={BadSignature:{code:0,message:"Malformed WebVTT signature."},BadTimeStamp:{code:1,message:"Malformed time stamp."}},Tn.prototype={set:function(t,e){this.get(t)||""===e||(this.values[t]=e)},get:function(t,e,n){return n?this.has(t)?this.values[t]:e[n]:this.has(t)?this.values[t]:e},has:function(t){return t in this.values},alt:function(t,e,n){for(var r=0;r<n.length;++r)if(e===n[r]){this.set(t,e);break}},integer:function(t,e){/^-?\d+$/.test(e)&&this.set(t,parseInt(e,10))},percent:function(t,e){return!!(e.match(/^([\d]{1,3})(\.[\d]*)?%$/)&&(e=parseFloat(e))>=0&&e<=100)&&(this.set(t,e),!0)}};var Cn=_n.createElement&&_n.createElement("textarea"),Pn={c:"span",i:"i",b:"b",u:"u",ruby:"ruby",rt:"rt",v:"span",lang:"span"},kn={white:"rgba(255,255,255,1)",lime:"rgba(0,255,0,1)",cyan:"rgba(0,255,255,1)",red:"rgba(255,0,0,1)",yellow:"rgba(255,255,0,1)",magenta:"rgba(255,0,255,1)",blue:"rgba(0,0,255,1)",black:"rgba(0,0,0,1)"},jn={v:"title",lang:"lang"},An={rt:"ruby"};function xn(t,e){function n(){if(!e)return null;var t,n=e.match(/^([^<]*)(<[^>]*>?)?/);return t=n[1]?n[1]:n[2],e=e.substr(t.length),t}function r(t,e){return!An[e.localName]||An[e.localName]===t.localName}function o(e,n){var r=Pn[e];if(!r)return null;var o=t.document.createElement(r),i=jn[e];return i&&n&&(o[i]=n.trim()),o}for(var i,a,s=t.document.createElement("div"),u=s,c=[];null!==(i=n());)if("<"!==i[0])u.appendChild(t.document.createTextNode((a=i,Cn.innerHTML=a,a=Cn.textContent,Cn.textContent="",a)));else{if("/"===i[1]){c.length&&c[c.length-1]===i.substr(2).replace(">","")&&(c.pop(),u=u.parentNode);continue}var l,f=En(i.substr(1,i.length-2));if(f){l=t.document.createProcessingInstruction("timestamp",f),u.appendChild(l);continue}var h=i.match(/^<([^.\s/0-9>]+)(\.[^\s\\>]+)?([^>\\]+)?(\\?)>?$/);if(!h)continue;if(!(l=o(h[1],h[3])))continue;if(!r(u,l))continue;if(h[2]){var p=h[2].split(".");p.forEach((function(t){var e=/^bg_/.test(t),n=e?t.slice(3):t;if(kn.hasOwnProperty(n)){var r=e?"background-color":"color",o=kn[n];l.style[r]=o}})),l.className=p.join(" ")}c.push(h[1]),u.appendChild(l),u=l}return s}var Rn=[[1470,1470],[1472,1472],[1475,1475],[1478,1478],[1488,1514],[1520,1524],[1544,1544],[1547,1547],[1549,1549],[1563,1563],[1566,1610],[1645,1647],[1649,1749],[1765,1766],[1774,1775],[1786,1805],[1807,1808],[1810,1839],[1869,1957],[1969,1969],[1984,2026],[2036,2037],[2042,2042],[2048,2069],[2074,2074],[2084,2084],[2088,2088],[2096,2110],[2112,2136],[2142,2142],[2208,2208],[2210,2220],[8207,8207],[64285,64285],[64287,64296],[64298,64310],[64312,64316],[64318,64318],[64320,64321],[64323,64324],[64326,64449],[64467,64829],[64848,64911],[64914,64967],[65008,65020],[65136,65140],[65142,65276],[67584,67589],[67592,67592],[67594,67637],[67639,67640],[67644,67644],[67647,67669],[67671,67679],[67840,67867],[67872,67897],[67903,67903],[67968,68023],[68030,68031],[68096,68096],[68112,68115],[68117,68119],[68121,68147],[68160,68167],[68176,68184],[68192,68223],[68352,68405],[68416,68437],[68440,68466],[68472,68479],[68608,68680],[126464,126467],[126469,126495],[126497,126498],[126500,126500],[126503,126503],[126505,126514],[126516,126519],[126521,126521],[126523,126523],[126530,126530],[126535,126535],[126537,126537],[126539,126539],[126541,126543],[126545,126546],[126548,126548],[126551,126551],[126553,126553],[126555,126555],[126557,126557],[126559,126559],[126561,126562],[126564,126564],[126567,126570],[126572,126578],[126580,126583],[126585,126588],[126590,126590],[126592,126601],[126603,126619],[126625,126627],[126629,126633],[126635,126651],[1114109,1114109]];function Ln(t){for(var e=0;e<Rn.length;e++){var n=Rn[e];if(t>=n[0]&&t<=n[1])return!0}return!1}function In(t){var e=[],n="";if(!t||!t.childNodes)return"ltr";function r(t,e){for(var n=e.childNodes.length-1;n>=0;n--)t.push(e.childNodes[n])}function o(t){if(!t||!t.length)return null;var e=t.pop(),n=e.textContent||e.innerText;if(n){var i=n.match(/^.*(\n|\r)/);return i?(t.length=0,i[0]):n}return"ruby"===e.tagName?o(t):e.childNodes?(r(t,e),o(t)):void 0}for(r(e,t);n=o(e);)for(var i=0;i<n.length;i++)if(Ln(n.charCodeAt(i)))return"rtl";return"ltr"}function Nn(){}function Mn(t,e,n){Nn.call(this),this.cue=e,this.cueDiv=xn(t,e.text);var r={color:"rgba(255, 255, 255, 1)",backgroundColor:"rgba(0, 0, 0, 0.8)",position:"relative",left:0,right:0,top:0,bottom:0,display:"inline",writingMode:""===e.vertical?"horizontal-tb":"lr"===e.vertical?"vertical-lr":"vertical-rl",unicodeBidi:"plaintext"};this.applyStyles(r,this.cueDiv),this.div=t.document.createElement("div"),r={direction:In(this.cueDiv),writingMode:""===e.vertical?"horizontal-tb":"lr"===e.vertical?"vertical-lr":"vertical-rl",unicodeBidi:"plaintext",textAlign:"middle"===e.align?"center":e.align,font:n.font,whiteSpace:"pre-line",position:"absolute"},this.applyStyles(r),this.div.appendChild(this.cueDiv);var o=0;switch(e.positionAlign){case"start":o=e.position;break;case"center":o=e.position-e.size/2;break;case"end":o=e.position-e.size}""===e.vertical?this.applyStyles({left:this.formatStyle(o,"%"),width:this.formatStyle(e.size,"%")}):this.applyStyles({top:this.formatStyle(o,"%"),height:this.formatStyle(e.size,"%")}),this.move=function(t){this.applyStyles({top:this.formatStyle(t.top,"px"),bottom:this.formatStyle(t.bottom,"px"),left:this.formatStyle(t.left,"px"),right:this.formatStyle(t.right,"px"),height:this.formatStyle(t.height,"px"),width:this.formatStyle(t.width,"px")})}}function Dn(t){var e,n,r,o;if(t.div){n=t.div.offsetHeight,r=t.div.offsetWidth,o=t.div.offsetTop;var i=(i=t.div.childNodes)&&(i=i[0])&&i.getClientRects&&i.getClientRects();t=t.div.getBoundingClientRect(),e=i?Math.max(i[0]&&i[0].height||0,t.height/i.length):0}this.left=t.left,this.right=t.right,this.top=t.top||o,this.height=t.height||n,this.bottom=t.bottom||o+(t.height||n),this.width=t.width||r,this.lineHeight=void 0!==e?e:t.lineHeight}function Fn(t,e,n,r){var o=new Dn(e),i=e.cue,a=function(t){if("number"==typeof t.line&&(t.snapToLines||t.line>=0&&t.line<=100))return t.line;if(!t.track||!t.track.textTrackList||!t.track.textTrackList.mediaElement)return-1;for(var e=t.track,n=e.textTrackList,r=0,o=0;o<n.length&&n[o]!==e;o++)"showing"===n[o].mode&&r++;return-1*++r}(i),s=[];if(i.snapToLines){var u;switch(i.vertical){case"":s=["+y","-y"],u="height";break;case"rl":s=["+x","-x"],u="width";break;case"lr":s=["-x","+x"],u="width"}var c=o.lineHeight,l=c*Math.round(a),f=n[u]+c,h=s[0];Math.abs(l)>f&&(l=l<0?-1:1,l*=Math.ceil(f/c)*c),a<0&&(l+=""===i.vertical?n.height:n.width,s=s.reverse()),o.move(h,l)}else{var p=o.lineHeight/n.height*100;switch(i.lineAlign){case"center":a-=p/2;break;case"end":a-=p}switch(i.vertical){case"":e.applyStyles({top:e.formatStyle(a,"%")});break;case"rl":e.applyStyles({left:e.formatStyle(a,"%")});break;case"lr":e.applyStyles({right:e.formatStyle(a,"%")})}s=["+y","-x","+x","-y"],o=new Dn(e)}var d=function(t,e){for(var o,i=new Dn(t),a=1,s=0;s<e.length;s++){for(;t.overlapsOppositeAxis(n,e[s])||t.within(n)&&t.overlapsAny(r);)t.move(e[s]);if(t.within(n))return t;var u=t.intersectPercentage(n);a>u&&(o=new Dn(t),a=u),t=new Dn(i)}return o||i}(o,s);e.move(d.toCSSCompatValues(n))}function Bn(){}Nn.prototype.applyStyles=function(t,e){for(var n in e=e||this.div,t)t.hasOwnProperty(n)&&(e.style[n]=t[n])},Nn.prototype.formatStyle=function(t,e){return 0===t?0:t+e},Mn.prototype=bn(Nn.prototype),Mn.prototype.constructor=Mn,Dn.prototype.move=function(t,e){switch(e=void 0!==e?e:this.lineHeight,t){case"+x":this.left+=e,this.right+=e;break;case"-x":this.left-=e,this.right-=e;break;case"+y":this.top+=e,this.bottom+=e;break;case"-y":this.top-=e,this.bottom-=e}},Dn.prototype.overlaps=function(t){return this.left<t.right&&this.right>t.left&&this.top<t.bottom&&this.bottom>t.top},Dn.prototype.overlapsAny=function(t){for(var e=0;e<t.length;e++)if(this.overlaps(t[e]))return!0;return!1},Dn.prototype.within=function(t){return this.top>=t.top&&this.bottom<=t.bottom&&this.left>=t.left&&this.right<=t.right},Dn.prototype.overlapsOppositeAxis=function(t,e){switch(e){case"+x":return this.left<t.left;case"-x":return this.right>t.right;case"+y":return this.top<t.top;case"-y":return this.bottom>t.bottom}},Dn.prototype.intersectPercentage=function(t){return Math.max(0,Math.min(this.right,t.right)-Math.max(this.left,t.left))*Math.max(0,Math.min(this.bottom,t.bottom)-Math.max(this.top,t.top))/(this.height*this.width)},Dn.prototype.toCSSCompatValues=function(t){return{top:this.top-t.top,bottom:t.bottom-this.bottom,left:this.left-t.left,right:t.right-this.right,height:this.height,width:this.width}},Dn.getSimpleBoxPosition=function(t){var e=t.div?t.div.offsetHeight:t.tagName?t.offsetHeight:0,n=t.div?t.div.offsetWidth:t.tagName?t.offsetWidth:0,r=t.div?t.div.offsetTop:t.tagName?t.offsetTop:0;return{left:(t=t.div?t.div.getBoundingClientRect():t.tagName?t.getBoundingClientRect():t).left,right:t.right,top:t.top||r,height:t.height||e,bottom:t.bottom||r+(t.height||e),width:t.width||n}},Bn.StringDecoder=function(){return{decode:function(t){if(!t)return"";if("string"!=typeof t)throw new Error("Error - expected string data.");return decodeURIComponent(encodeURIComponent(t))}}},Bn.convertCueToDOMTree=function(t,e){return t&&e?xn(t,e):null},Bn.processCues=function(t,e,n){if(!t||!e||!n)return null;for(;n.firstChild;)n.removeChild(n.firstChild);var r=t.document.createElement("div");if(r.style.position="absolute",r.style.left="0",r.style.right="0",r.style.top="0",r.style.bottom="0",r.style.margin="1.5%",n.appendChild(r),function(t){for(var e=0;e<t.length;e++)if(t[e].hasBeenReset||!t[e].displayState)return!0;return!1}(e)){var o=[],i=Dn.getSimpleBoxPosition(r),a={font:Math.round(.05*i.height*100)/100+"px sans-serif"};!function(){for(var n,s,u=0;u<e.length;u++)s=e[u],n=new Mn(t,s,a),r.appendChild(n.div),Fn(0,n,i,o),s.displayState=n.div,o.push(Dn.getSimpleBoxPosition(n))}()}else for(var s=0;s<e.length;s++)r.appendChild(e[s].displayState)},Bn.Parser=function(t,e,n){n||(n=e,e={}),e||(e={}),this.window=t,this.vttjs=e,this.state="INITIAL",this.buffer="",this.decoder=n||new TextDecoder("utf8"),this.regionList=[]},Bn.Parser.prototype={reportOrThrowError:function(t){if(!(t instanceof wn))throw t;this.onparsingerror&&this.onparsingerror(t)},parse:function(t){var e=this;function n(){for(var t=e.buffer,n=0;n<t.length&&"\r"!==t[n]&&"\n"!==t[n];)++n;var r=t.substr(0,n);return"\r"===t[n]&&++n,"\n"===t[n]&&++n,e.buffer=t.substr(n),r}function r(t){t.match(/X-TIMESTAMP-MAP/)?Sn(t,(function(t,n){"X-TIMESTAMP-MAP"===t&&function(t){var n=new Tn;Sn(t,(function(t,e){switch(t){case"MPEGT":n.integer(t+"S",e);break;case"LOCA":n.set(t+"L",En(e))}}),/[^\d]:/,/,/),e.ontimestampmap&&e.ontimestampmap({MPEGTS:n.get("MPEGTS"),LOCAL:n.get("LOCAL")})}(n)}),/=/):Sn(t,(function(t,n){"Region"===t&&function(t){var n=new Tn;if(Sn(t,(function(t,e){switch(t){case"id":n.set(t,e);break;case"width":n.percent(t,e);break;case"lines":n.integer(t,e);break;case"regionanchor":case"viewportanchor":var r=e.split(",");if(2!==r.length)break;var o=new Tn;if(o.percent("x",r[0]),o.percent("y",r[1]),!o.has("x")||!o.has("y"))break;n.set(t+"X",o.get("x")),n.set(t+"Y",o.get("y"));break;case"scroll":n.alt(t,e,["up"])}}),/=/,/\s/),n.has("id")){var r=new(e.vttjs.VTTRegion||e.window.VTTRegion);r.width=n.get("width",100),r.lines=n.get("lines",3),r.regionAnchorX=n.get("regionanchorX",0),r.regionAnchorY=n.get("regionanchorY",100),r.viewportAnchorX=n.get("viewportanchorX",0),r.viewportAnchorY=n.get("viewportanchorY",100),r.scroll=n.get("scroll",""),e.onregion&&e.onregion(r),e.regionList.push({id:n.get("id"),region:r})}}(n)}),/:/)}t&&(e.buffer+=e.decoder.decode(t,{stream:!0}));try{var o;if("INITIAL"===e.state){if(!/\r\n|\n/.test(e.buffer))return this;var i=(o=n()).match(/^WEBVTT([ \t].*)?$/);if(!i||!i[0])throw new wn(wn.Errors.BadSignature);e.state="HEADER"}for(var a=!1;e.buffer;){if(!/\r\n|\n/.test(e.buffer))return this;switch(a?a=!1:o=n(),e.state){case"HEADER":/:/.test(o)?r(o):o||(e.state="ID");continue;case"NOTE":o||(e.state="ID");continue;case"ID":if(/^NOTE($|[ \t])/.test(o)){e.state="NOTE";break}if(!o)continue;e.cue=new(e.vttjs.VTTCue||e.window.VTTCue)(0,0,"");try{e.cue.align="center"}catch(t){e.cue.align="middle"}if(e.state="CUE",-1===o.indexOf("--\x3e")){e.cue.id=o;continue}case"CUE":try{On(o,e.cue,e.regionList)}catch(t){e.reportOrThrowError(t),e.cue=null,e.state="BADCUE";continue}e.state="CUETEXT";continue;case"CUETEXT":var s=-1!==o.indexOf("--\x3e");if(!o||s&&(a=!0)){e.oncue&&e.oncue(e.cue),e.cue=null,e.state="ID";continue}e.cue.text&&(e.cue.text+="\n"),e.cue.text+=o.replace(/\u2028/g,"\n").replace(/u2029/g,"\n");continue;case"BADCUE":o||(e.state="ID");continue}}}catch(t){e.reportOrThrowError(t),"CUETEXT"===e.state&&e.cue&&e.oncue&&e.oncue(e.cue),e.cue=null,e.state="INITIAL"===e.state?"BADWEBVTT":"BADCUE"}return this},flush:function(){var t=this;try{if(t.buffer+=t.decoder.decode(),(t.cue||"HEADER"===t.state)&&(t.buffer+="\n\n",t.parse()),"INITIAL"===t.state)throw new wn(wn.Errors.BadSignature)}catch(e){t.reportOrThrowError(e)}return t.onflush&&t.onflush(),this}};var Vn=Bn,Un={"":1,lr:1,rl:1},Hn={start:1,center:1,end:1,left:1,right:1,auto:1,"line-left":1,"line-right":1};function Yn(t){return"string"==typeof t&&!!Hn[t.toLowerCase()]&&t.toLowerCase()}function zn(t,e,n){this.hasBeenReset=!1;var r="",o=!1,i=t,a=e,s=n,u=null,c="",l=!0,f="auto",h="start",p="auto",d="auto",v=100,y="center";Object.defineProperties(this,{id:{enumerable:!0,get:function(){return r},set:function(t){r=""+t}},pauseOnExit:{enumerable:!0,get:function(){return o},set:function(t){o=!!t}},startTime:{enumerable:!0,get:function(){return i},set:function(t){if("number"!=typeof t)throw new TypeError("Start time must be set to a number.");i=t,this.hasBeenReset=!0}},endTime:{enumerable:!0,get:function(){return a},set:function(t){if("number"!=typeof t)throw new TypeError("End time must be set to a number.");a=t,this.hasBeenReset=!0}},text:{enumerable:!0,get:function(){return s},set:function(t){s=""+t,this.hasBeenReset=!0}},region:{enumerable:!0,get:function(){return u},set:function(t){u=t,this.hasBeenReset=!0}},vertical:{enumerable:!0,get:function(){return c},set:function(t){var e=function(t){return"string"==typeof t&&!!Un[t.toLowerCase()]&&t.toLowerCase()}(t);if(!1===e)throw new SyntaxError("Vertical: an invalid or illegal direction string was specified.");c=e,this.hasBeenReset=!0}},snapToLines:{enumerable:!0,get:function(){return l},set:function(t){l=!!t,this.hasBeenReset=!0}},line:{enumerable:!0,get:function(){return f},set:function(t){if("number"!=typeof t&&"auto"!==t)throw new SyntaxError("Line: an invalid number or illegal string was specified.");f=t,this.hasBeenReset=!0}},lineAlign:{enumerable:!0,get:function(){return h},set:function(t){var e=Yn(t);e&&(h=e,this.hasBeenReset=!0)}},position:{enumerable:!0,get:function(){return p},set:function(t){if(t<0||t>100)throw new Error("Position must be between 0 and 100.");p=t,this.hasBeenReset=!0}},positionAlign:{enumerable:!0,get:function(){return d},set:function(t){var e=Yn(t);e&&(d=e,this.hasBeenReset=!0)}},size:{enumerable:!0,get:function(){return v},set:function(t){if(t<0||t>100)throw new Error("Size must be between 0 and 100.");v=t,this.hasBeenReset=!0}},align:{enumerable:!0,get:function(){return y},set:function(t){var e=Yn(t);if(!e)throw new SyntaxError("align: an invalid or illegal alignment string was specified.");y=e,this.hasBeenReset=!0}}}),this.displayState=void 0}zn.prototype.getCueAsHTML=function(){return WebVTT.convertCueToDOMTree(window,this.text)};var Wn=zn,Gn={"":!0,up:!0};function Kn(t){return"number"==typeof t&&t>=0&&t<=100}var Xn=function(){var t=100,e=3,n=0,r=100,o=0,i=100,a="";Object.defineProperties(this,{width:{enumerable:!0,get:function(){return t},set:function(e){if(!Kn(e))throw new Error("Width must be between 0 and 100.");t=e}},lines:{enumerable:!0,get:function(){return e},set:function(t){if("number"!=typeof t)throw new TypeError("Lines must be set to a number.");e=t}},regionAnchorY:{enumerable:!0,get:function(){return r},set:function(t){if(!Kn(t))throw new Error("RegionAnchorX must be between 0 and 100.");r=t}},regionAnchorX:{enumerable:!0,get:function(){return n},set:function(t){if(!Kn(t))throw new Error("RegionAnchorY must be between 0 and 100.");n=t}},viewportAnchorY:{enumerable:!0,get:function(){return i},set:function(t){if(!Kn(t))throw new Error("ViewportAnchorY must be between 0 and 100.");i=t}},viewportAnchorX:{enumerable:!0,get:function(){return o},set:function(t){if(!Kn(t))throw new Error("ViewportAnchorX must be between 0 and 100.");o=t}},scroll:{enumerable:!0,get:function(){return a},set:function(t){var e=function(t){return"string"==typeof t&&!!Gn[t.toLowerCase()]&&t.toLowerCase()}(t);!1===e||(a=e)}}})},qn=v((function(t){var e=t.exports={WebVTT:Vn,VTTCue:Wn,VTTRegion:Xn};Qe.vttjs=e,Qe.WebVTT=e.WebVTT;var n=e.VTTCue,r=e.VTTRegion,o=Qe.VTTCue,i=Qe.VTTRegion;e.shim=function(){Qe.VTTCue=n,Qe.VTTRegion=r},e.restore=function(){Qe.VTTCue=o,Qe.VTTRegion=i},Qe.VTTCue||e.shim()}));qn.WebVTT,qn.VTTCue,qn.VTTRegion;var $n=function(t){function e(e,n){var r;return void 0===e&&(e={}),void 0===n&&(n=function(){}),e.reportTouchActivity=!1,(r=t.call(this,null,e,n)||this).onDurationChange_=function(t){return r.onDurationChange(t)},r.trackProgress_=function(t){return r.trackProgress(t)},r.trackCurrentTime_=function(t){return r.trackCurrentTime(t)},r.stopTrackingCurrentTime_=function(t){return r.stopTrackingCurrentTime(t)},r.disposeSourceHandler_=function(t){return r.disposeSourceHandler(t)},r.hasStarted_=!1,r.on("playing",(function(){this.hasStarted_=!0})),r.on("loadstart",(function(){this.hasStarted_=!1})),yn.names.forEach((function(t){var n=yn[t];e&&e[n.getterName]&&(r[n.privateName]=e[n.getterName])})),r.featuresProgressEvents||r.manualProgressOn(),r.featuresTimeupdateEvents||r.manualTimeUpdatesOn(),["Text","Audio","Video"].forEach((function(t){!1===e["native"+t+"Tracks"]&&(r["featuresNative"+t+"Tracks"]=!1)})),!1===e.nativeCaptions||!1===e.nativeTextTracks?r.featuresNativeTextTracks=!1:!0!==e.nativeCaptions&&!0!==e.nativeTextTracks||(r.featuresNativeTextTracks=!0),r.featuresNativeTextTracks||r.emulateTextTracks(),r.preloadTextTracks=!1!==e.preloadTextTracks,r.autoRemoteTextTracks_=new yn.text.ListClass,r.initTrackListeners(),e.nativeControlsForTouch||r.emitTapEvents(),r.constructor&&(r.name_=r.constructor.name||"Unknown Tech"),r}me(e,t);var n=e.prototype;return n.triggerSourceset=function(t){var e=this;this.isReady_||this.one("ready",(function(){return e.setTimeout((function(){return e.triggerSourceset(t)}),1)})),this.trigger({src:t,type:"sourceset"})},n.manualProgressOn=function(){this.on("durationchange",this.onDurationChange_),this.manualProgress=!0,this.one("ready",this.trackProgress_)},n.manualProgressOff=function(){this.manualProgress=!1,this.stopTrackingProgress(),this.off("durationchange",this.onDurationChange_)},n.trackProgress=function(t){this.stopTrackingProgress(),this.progressInterval=this.setInterval(Xt(this,(function(){var t=this.bufferedPercent();this.bufferedPercent_!==t&&this.trigger("progress"),this.bufferedPercent_=t,1===t&&this.stopTrackingProgress()})),500)},n.onDurationChange=function(t){this.duration_=this.duration()},n.buffered=function(){return we(0,0)},n.bufferedPercent=function(){return Ee(this.buffered(),this.duration_)},n.stopTrackingProgress=function(){this.clearInterval(this.progressInterval)},n.manualTimeUpdatesOn=function(){this.manualTimeUpdates=!0,this.on("play",this.trackCurrentTime_),this.on("pause",this.stopTrackingCurrentTime_)},n.manualTimeUpdatesOff=function(){this.manualTimeUpdates=!1,this.stopTrackingCurrentTime(),this.off("play",this.trackCurrentTime_),this.off("pause",this.stopTrackingCurrentTime_)},n.trackCurrentTime=function(){this.currentTimeInterval&&this.stopTrackingCurrentTime(),this.currentTimeInterval=this.setInterval((function(){this.trigger({type:"timeupdate",target:this,manuallyTriggered:!0})}),250)},n.stopTrackingCurrentTime=function(){this.clearInterval(this.currentTimeInterval),this.trigger({type:"timeupdate",target:this,manuallyTriggered:!0})},n.dispose=function(){this.clearTracks(dn.names),this.manualProgress&&this.manualProgressOff(),this.manualTimeUpdates&&this.manualTimeUpdatesOff(),t.prototype.dispose.call(this)},n.clearTracks=function(t){var e=this;(t=[].concat(t)).forEach((function(t){for(var n=e[t+"Tracks"]()||[],r=n.length;r--;){var o=n[r];"text"===t&&e.removeRemoteTextTrack(o),n.removeTrack(o)}}))},n.cleanupAutoTextTracks=function(){for(var t=this.autoRemoteTextTracks_||[],e=t.length;e--;){var n=t[e];this.removeRemoteTextTrack(n)}},n.reset=function(){},n.crossOrigin=function(){},n.setCrossOrigin=function(){},n.error=function(t){return void 0!==t&&(this.error_=new Te(t),this.trigger("error")),this.error_},n.played=function(){return this.hasStarted_?we(0,0):we()},n.play=function(){},n.setScrubbing=function(){},n.scrubbing=function(){},n.setCurrentTime=function(){this.manualTimeUpdates&&this.trigger({type:"timeupdate",target:this,manuallyTriggered:!0})},n.initTrackListeners=function(){var t=this;dn.names.forEach((function(e){var n=dn[e],r=function(){t.trigger(e+"trackchange")},o=t[n.getterName]();o.addEventListener("removetrack",r),o.addEventListener("addtrack",r),t.on("dispose",(function(){o.removeEventListener("removetrack",r),o.removeEventListener("addtrack",r)}))}))},n.addWebVttScript_=function(){var t=this;if(!window.WebVTT)if(document.body.contains(this.el())){if(!this.options_["vtt.js"]&&E(qn)&&Object.keys(qn).length>0)return void this.trigger("vttjsloaded");var e=document.createElement("script");e.src=this.options_["vtt.js"]||"https://vjs.zencdn.net/vttjs/0.14.1/vtt.min.js",e.onload=function(){t.trigger("vttjsloaded")},e.onerror=function(){t.trigger("vttjserror")},this.on("dispose",(function(){e.onload=null,e.onerror=null})),window.WebVTT=!0,this.el().parentNode.appendChild(e)}else this.ready(this.addWebVttScript_)},n.emulateTextTracks=function(){var t=this,e=this.textTracks(),n=this.remoteTextTracks(),r=function(t){return e.addTrack(t.track)},o=function(t){return e.removeTrack(t.track)};n.on("addtrack",r),n.on("removetrack",o),this.addWebVttScript_();var i=function(){return t.trigger("texttrackchange")},a=function(){i();for(var t=0;t<e.length;t++){var n=e[t];n.removeEventListener("cuechange",i),"showing"===n.mode&&n.addEventListener("cuechange",i)}};a(),e.addEventListener("change",a),e.addEventListener("addtrack",a),e.addEventListener("removetrack",a),this.on("dispose",(function(){n.off("addtrack",r),n.off("removetrack",o),e.removeEventListener("change",a),e.removeEventListener("addtrack",a),e.removeEventListener("removetrack",a);for(var t=0;t<e.length;t++)e[t].removeEventListener("cuechange",i)}))},n.addTextTrack=function(t,e,n){if(!t)throw new Error("TextTrack kind is required but was not provided");return function(t,e,n,r,o){void 0===o&&(o={});var i=t.textTracks();o.kind=e,n&&(o.label=n),r&&(o.language=r),o.tech=t;var a=new yn.text.TrackClass(o);return i.addTrack(a),a}(this,t,e,n)},n.createRemoteTextTrack=function(t){var e=fe(t,{tech:this});return new vn.remoteTextEl.TrackClass(e)},n.addRemoteTextTrack=function(t,e){var n=this;void 0===t&&(t={});var r=this.createRemoteTextTrack(t);return!0!==e&&!1!==e&&(h.warn('Calling addRemoteTextTrack without explicitly setting the "manualCleanup" parameter to `true` is deprecated and default to `false` in future version of video.js'),e=!0),this.remoteTextTrackEls().addTrackElement_(r),this.remoteTextTracks().addTrack(r.track),!0!==e&&this.ready((function(){return n.autoRemoteTextTracks_.addTrack(r.track)})),r},n.removeRemoteTextTrack=function(t){var e=this.remoteTextTrackEls().getTrackElementByTrack_(t);this.remoteTextTrackEls().removeTrackElement_(e),this.remoteTextTracks().removeTrack(t),this.autoRemoteTextTracks_.removeTrack(t)},n.getVideoPlaybackQuality=function(){return{}},n.requestPictureInPicture=function(){var t=this.options_.Promise||window.Promise;if(t)return t.reject()},n.disablePictureInPicture=function(){return!0},n.setDisablePictureInPicture=function(){},n.setPoster=function(){},n.playsinline=function(){},n.setPlaysinline=function(){},n.overrideNativeAudioTracks=function(){},n.overrideNativeVideoTracks=function(){},n.canPlayType=function(){return""},e.canPlayType=function(){return""},e.canPlaySource=function(t,n){return e.canPlayType(t.type)},e.isTech=function(t){return t.prototype instanceof e||t instanceof e||t===e},e.registerTech=function(t,n){if(e.techs_||(e.techs_={}),!e.isTech(n))throw new Error("Tech "+t+" must be a Tech");if(!e.canPlayType)throw new Error("Techs must have a static canPlayType method on them");if(!e.canPlaySource)throw new Error("Techs must have a static canPlaySource method on them");return t=le(t),e.techs_[t]=n,e.techs_[ce(t)]=n,"Tech"!==t&&e.defaultTechOrder_.push(t),n},e.getTech=function(t){if(t)return e.techs_&&e.techs_[t]?e.techs_[t]:(t=le(t),window&&window.videojs&&window.videojs[t]?(h.warn("The "+t+" tech was added to the videojs object when it should be registered using videojs.registerTech(name, tech)"),window.videojs[t]):void 0)},e}(ye);yn.names.forEach((function(t){var e=yn[t];$n.prototype[e.getterName]=function(){return this[e.privateName]=this[e.privateName]||new e.ListClass,this[e.privateName]}})),$n.prototype.featuresVolumeControl=!0,$n.prototype.featuresMuteControl=!0,$n.prototype.featuresFullscreenResize=!1,$n.prototype.featuresPlaybackRate=!1,$n.prototype.featuresProgressEvents=!1,$n.prototype.featuresSourceset=!1,$n.prototype.featuresTimeupdateEvents=!1,$n.prototype.featuresNativeTextTracks=!1,$n.withSourceHandlers=function(t){t.registerSourceHandler=function(e,n){var r=t.sourceHandlers;r||(r=t.sourceHandlers=[]),void 0===n&&(n=r.length),r.splice(n,0,e)},t.canPlayType=function(e){for(var n,r=t.sourceHandlers||[],o=0;o<r.length;o++)if(n=r[o].canPlayType(e))return n;return""},t.selectSourceHandler=function(e,n){for(var r=t.sourceHandlers||[],o=0;o<r.length;o++)if(r[o].canHandleSource(e,n))return r[o];return null},t.canPlaySource=function(e,n){var r=t.selectSourceHandler(e,n);return r?r.canHandleSource(e,n):""},["seekable","seeking","duration"].forEach((function(t){var e=this[t];"function"==typeof e&&(this[t]=function(){return this.sourceHandler_&&this.sourceHandler_[t]?this.sourceHandler_[t].apply(this.sourceHandler_,arguments):e.apply(this,arguments)})}),t.prototype),t.prototype.setSource=function(e){var n=t.selectSourceHandler(e,this.options_);n||(t.nativeSourceHandler?n=t.nativeSourceHandler:h.error("No source handler found for the current source.")),this.disposeSourceHandler(),this.off("dispose",this.disposeSourceHandler_),n!==t.nativeSourceHandler&&(this.currentSource_=e),this.sourceHandler_=n.handleSource(e,this,this.options_),this.one("dispose",this.disposeSourceHandler_)},t.prototype.disposeSourceHandler=function(){this.currentSource_&&(this.clearTracks(["audio","video"]),this.currentSource_=null),this.cleanupAutoTextTracks(),this.sourceHandler_&&(this.sourceHandler_.dispose&&this.sourceHandler_.dispose(),this.sourceHandler_=null)}},ye.registerComponent("Tech",$n),$n.registerTech("Tech",$n),$n.defaultTechOrder_=[];var Jn={},Qn={},Zn={};function tr(t,e,n){t.setTimeout((function(){return ar(e,Jn[e.type],n,t)}),1)}function er(t,e,n,r){void 0===r&&(r=null);var o="call"+le(n),i=t.reduce(ir(o),r),a=i===Zn,s=a?null:e[n](i);return function(t,e,n,r){for(var o=t.length-1;o>=0;o--){var i=t[o];i[e]&&i[e](r,n)}}(t,n,s,a),s}var nr={buffered:1,currentTime:1,duration:1,muted:1,played:1,paused:1,seekable:1,volume:1,ended:1},rr={setCurrentTime:1,setMuted:1,setVolume:1},or={play:1,pause:1};function ir(t){return function(e,n){return e===Zn?Zn:n[t]?n[t](e):e}}function ar(t,e,n,r,o,i){void 0===t&&(t={}),void 0===e&&(e=[]),void 0===o&&(o=[]),void 0===i&&(i=!1);var a=e,s=a[0],u=a.slice(1);if("string"==typeof s)ar(t,Jn[s],n,r,o,i);else if(s){var c=function(t,e){var n=Qn[t.id()],r=null;if(null==n)return r=e(t),Qn[t.id()]=[[e,r]],r;for(var o=0;o<n.length;o++){var i=n[o],a=i[0],s=i[1];a===e&&(r=s)}return null===r&&(r=e(t),n.push([e,r])),r}(r,s);if(!c.setSource)return o.push(c),ar(t,u,n,r,o,i);c.setSource(b({},t),(function(e,a){if(e)return ar(t,u,n,r,o,i);o.push(c),ar(a,t.type===a.type?u:Jn[a.type],n,r,o,i)}))}else u.length?ar(t,u,n,r,o,i):i?n(t,o):ar(t,Jn["*"],n,r,o,!0)}var sr={opus:"video/ogg",ogv:"video/ogg",mp4:"video/mp4",mov:"video/mp4",m4v:"video/mp4",mkv:"video/x-matroska",m4a:"audio/mp4",mp3:"audio/mpeg",aac:"audio/aac",caf:"audio/x-caf",flac:"audio/flac",oga:"audio/ogg",wav:"audio/wav",m3u8:"application/x-mpegURL",jpg:"image/jpeg",jpeg:"image/jpeg",gif:"image/gif",png:"image/png",svg:"image/svg+xml",webp:"image/webp"},ur=function(t){void 0===t&&(t="");var e=qe(t);return sr[e.toLowerCase()]||""},cr=function t(e){if(Array.isArray(e)){var n=[];e.forEach((function(e){e=t(e),Array.isArray(e)?n=n.concat(e):w(e)&&n.push(e)})),e=n}else e="string"==typeof e&&e.trim()?[lr({src:e})]:w(e)&&"string"==typeof e.src&&e.src&&e.src.trim()?[lr(e)]:[];return e};function lr(t){if(!t.type){var e=ur(t.src);e&&(t.type=e)}return t}var fr=function(t){function e(e,n,r){var o,i=fe({createEl:!1},n);if(o=t.call(this,e,i,r)||this,n.playerOptions.sources&&0!==n.playerOptions.sources.length)e.src(n.playerOptions.sources);else for(var a=0,s=n.playerOptions.techOrder;a<s.length;a++){var u=le(s[a]),c=$n.getTech(u);if(u||(c=ye.getComponent(u)),c&&c.isSupported()){e.loadTech_(u);break}}return o}return me(e,t),e}(ye);ye.registerComponent("MediaLoader",fr);var hr=function(t){function e(e,n){var r;return(r=t.call(this,e,n)||this).handleMouseOver_=function(t){return r.handleMouseOver(t)},r.handleMouseOut_=function(t){return r.handleMouseOut(t)},r.handleClick_=function(t){return r.handleClick(t)},r.handleKeyDown_=function(t){return r.handleKeyDown(t)},r.emitTapEvents(),r.enable(),r}me(e,t);var n=e.prototype;return n.createEl=function(t,e,n){void 0===t&&(t="div"),void 0===e&&(e={}),void 0===n&&(n={}),e=b({className:this.buildCSSClass(),tabIndex:0},e),"button"===t&&h.error("Creating a ClickableComponent with an HTML element of "+t+" is not supported; use a Button instead."),n=b({role:"button"},n),this.tabIndex_=e.tabIndex;var r=Q(t,e,n);return r.appendChild(Q("span",{className:"vjs-icon-placeholder"},{"aria-hidden":!0})),this.createControlTextEl(r),r},n.dispose=function(){this.controlTextEl_=null,t.prototype.dispose.call(this)},n.createControlTextEl=function(t){return this.controlTextEl_=Q("span",{className:"vjs-control-text"},{"aria-live":"polite"}),t&&t.appendChild(this.controlTextEl_),this.controlText(this.controlText_,t),this.controlTextEl_},n.controlText=function(t,e){if(void 0===e&&(e=this.el()),void 0===t)return this.controlText_||"Need Text";var n=this.localize(t);this.controlText_=t,Z(this.controlTextEl_,n),this.nonIconControl||this.player_.options_.noUITitleAttributes||e.setAttribute("title",n)},n.buildCSSClass=function(){return"vjs-control vjs-button "+t.prototype.buildCSSClass.call(this)},n.enable=function(){this.enabled_||(this.enabled_=!0,this.removeClass("vjs-disabled"),this.el_.setAttribute("aria-disabled","false"),void 0!==this.tabIndex_&&this.el_.setAttribute("tabIndex",this.tabIndex_),this.on(["tap","click"],this.handleClick_),this.on("keydown",this.handleKeyDown_))},n.disable=function(){this.enabled_=!1,this.addClass("vjs-disabled"),this.el_.setAttribute("aria-disabled","true"),void 0!==this.tabIndex_&&this.el_.removeAttribute("tabIndex"),this.off("mouseover",this.handleMouseOver_),this.off("mouseout",this.handleMouseOut_),this.off(["tap","click"],this.handleClick_),this.off("keydown",this.handleKeyDown_)},n.handleLanguagechange=function(){this.controlText(this.controlText_)},n.handleClick=function(t){this.options_.clickHandler&&this.options_.clickHandler.call(this,arguments)},n.handleKeyDown=function(e){xe.isEventKey(e,"Space")||xe.isEventKey(e,"Enter")?(e.preventDefault(),e.stopPropagation(),this.trigger("click")):t.prototype.handleKeyDown.call(this,e)},e}(ye);ye.registerComponent("ClickableComponent",hr);var pr=function(t){function e(e,n){var r;return(r=t.call(this,e,n)||this).update(),r.update_=function(t){return r.update(t)},e.on("posterchange",r.update_),r}me(e,t);var n=e.prototype;return n.dispose=function(){this.player().off("posterchange",this.update_),t.prototype.dispose.call(this)},n.createEl=function(){return Q("div",{className:"vjs-poster",tabIndex:-1})},n.update=function(t){var e=this.player().poster();this.setSrc(e),e?this.show():this.hide()},n.setSrc=function(t){var e="";t&&(e='url("'+t+'")'),this.el_.style.backgroundImage=e},n.handleClick=function(t){if(this.player_.controls()){var e=this.player_.usingPlugin("eme")&&this.player_.eme.sessions&&this.player_.eme.sessions.length>0;!this.player_.tech(!0)||(D||I)&&e||this.player_.tech(!0).focus(),this.player_.paused()?Pe(this.player_.play()):this.player_.pause()}},e}(hr);ye.registerComponent("PosterImage",pr);var dr={monospace:"monospace",sansSerif:"sans-serif",serif:"serif",monospaceSansSerif:'"Andale Mono", "Lucida Console", monospace',monospaceSerif:'"Courier New", monospace',proportionalSansSerif:"sans-serif",proportionalSerif:"serif",casual:'"Comic Sans MS", Impact, fantasy',script:'"Monotype Corsiva", cursive',smallcaps:'"Andale Mono", "Lucida Console", monospace, sans-serif'};function vr(t,e){var n;if(4===t.length)n=t[1]+t[1]+t[2]+t[2]+t[3]+t[3];else{if(7!==t.length)throw new Error("Invalid color code provided, "+t+"; must be formatted as e.g. #f0e or #f604e2.");n=t.slice(1)}return"rgba("+parseInt(n.slice(0,2),16)+","+parseInt(n.slice(2,4),16)+","+parseInt(n.slice(4,6),16)+","+e+")"}function yr(t,e,n){try{t.style[e]=n}catch(t){return}}var gr=function(t){function e(e,n,r){var o;o=t.call(this,e,n,r)||this;var i=function(t){return o.updateDisplay(t)};return e.on("loadstart",(function(t){return o.toggleDisplay(t)})),e.on("texttrackchange",i),e.on("loadedmetadata",(function(t){return o.preselectTrack(t)})),e.ready(Xt(ge(o),(function(){if(e.tech_&&e.tech_.featuresNativeTextTracks)this.hide();else{e.on("fullscreenchange",i),e.on("playerresize",i),window.addEventListener("orientationchange",i),e.on("dispose",(function(){return window.removeEventListener("orientationchange",i)}));for(var t=this.options_.playerOptions.tracks||[],n=0;n<t.length;n++)this.player_.addRemoteTextTrack(t[n],!0);this.preselectTrack()}}))),o}me(e,t);var n=e.prototype;return n.preselectTrack=function(){for(var t,e,n,r={captions:1,subtitles:1},o=this.player_.textTracks(),i=this.player_.cache_.selectedLanguage,a=0;a<o.length;a++){var s=o[a];i&&i.enabled&&i.language&&i.language===s.language&&s.kind in r?s.kind===i.kind?n=s:n||(n=s):i&&!i.enabled?(n=null,t=null,e=null):s.default&&("descriptions"!==s.kind||t?s.kind in r&&!e&&(e=s):t=s)}n?n.mode="showing":e?e.mode="showing":t&&(t.mode="showing")},n.toggleDisplay=function(){this.player_.tech_&&this.player_.tech_.featuresNativeTextTracks?this.hide():this.show()},n.createEl=function(){return t.prototype.createEl.call(this,"div",{className:"vjs-text-track-display"},{translate:"yes","aria-live":"off","aria-atomic":"true"})},n.clearDisplay=function(){"function"==typeof window.WebVTT&&window.WebVTT.processCues(window,[],this.el_)},n.updateDisplay=function(){var t=this.player_.textTracks(),e=this.options_.allowMultipleShowingTracks;if(this.clearDisplay(),e){for(var n=[],r=0;r<t.length;++r){var o=t[r];"showing"===o.mode&&n.push(o)}this.updateForTrack(n)}else{for(var i=null,a=null,s=t.length;s--;){var u=t[s];"showing"===u.mode&&("descriptions"===u.kind?i=u:a=u)}a?("off"!==this.getAttribute("aria-live")&&this.setAttribute("aria-live","off"),this.updateForTrack(a)):i&&("assertive"!==this.getAttribute("aria-live")&&this.setAttribute("aria-live","assertive"),this.updateForTrack(i))}},n.updateDisplayState=function(t){for(var e=this.player_.textTrackSettings.getValues(),n=t.activeCues,r=n.length;r--;){var o=n[r];if(o){var i=o.displayState;if(e.color&&(i.firstChild.style.color=e.color),e.textOpacity&&yr(i.firstChild,"color",vr(e.color||"#fff",e.textOpacity)),e.backgroundColor&&(i.firstChild.style.backgroundColor=e.backgroundColor),e.backgroundOpacity&&yr(i.firstChild,"backgroundColor",vr(e.backgroundColor||"#000",e.backgroundOpacity)),e.windowColor&&(e.windowOpacity?yr(i,"backgroundColor",vr(e.windowColor,e.windowOpacity)):i.style.backgroundColor=e.windowColor),e.edgeStyle&&("dropshadow"===e.edgeStyle?i.firstChild.style.textShadow="2px 2px 3px #222, 2px 2px 4px #222, 2px 2px 5px #222":"raised"===e.edgeStyle?i.firstChild.style.textShadow="1px 1px #222, 2px 2px #222, 3px 3px #222":"depressed"===e.edgeStyle?i.firstChild.style.textShadow="1px 1px #ccc, 0 1px #ccc, -1px -1px #222, 0 -1px #222":"uniform"===e.edgeStyle&&(i.firstChild.style.textShadow="0 0 4px #222, 0 0 4px #222, 0 0 4px #222, 0 0 4px #222")),e.fontPercent&&1!==e.fontPercent){var a=window.parseFloat(i.style.fontSize);i.style.fontSize=a*e.fontPercent+"px",i.style.height="auto",i.style.top="auto"}e.fontFamily&&"default"!==e.fontFamily&&("small-caps"===e.fontFamily?i.firstChild.style.fontVariant="small-caps":i.firstChild.style.fontFamily=dr[e.fontFamily])}}},n.updateForTrack=function(t){if(Array.isArray(t)||(t=[t]),"function"==typeof window.WebVTT&&!t.every((function(t){return!t.activeCues}))){for(var e=[],n=0;n<t.length;++n)for(var r=t[n],o=0;o<r.activeCues.length;++o)e.push(r.activeCues[o]);window.WebVTT.processCues(window,e,this.el_);for(var i=0;i<t.length;++i){for(var a=t[i],s=0;s<a.activeCues.length;++s){var u=a.activeCues[s].displayState;nt(u,"vjs-text-track-cue"),nt(u,"vjs-text-track-cue-"+(a.language?a.language:i)),a.language&&ut(u,"lang",a.language)}this.player_.textTrackSettings&&this.updateDisplayState(a)}}},e}(ye);ye.registerComponent("TextTrackDisplay",gr);var mr=function(t){function e(){return t.apply(this,arguments)||this}return me(e,t),e.prototype.createEl=function(){var e=this.player_.isAudio(),n=this.localize(e?"Audio Player":"Video Player"),r=Q("span",{className:"vjs-control-text",textContent:this.localize("{1} is loading.",[n])}),o=t.prototype.createEl.call(this,"div",{className:"vjs-loading-spinner",dir:"ltr"});return o.appendChild(r),o},e}(ye);ye.registerComponent("LoadingSpinner",mr);var _r=function(t){function e(){return t.apply(this,arguments)||this}me(e,t);var n=e.prototype;return n.createEl=function(t,e,n){void 0===e&&(e={}),void 0===n&&(n={});var r=Q("button",e=b({className:this.buildCSSClass()},e),n=b({type:"button"},n));return r.appendChild(Q("span",{className:"vjs-icon-placeholder"},{"aria-hidden":!0})),this.createControlTextEl(r),r},n.addChild=function(t,e){void 0===e&&(e={});var n=this.constructor.name;return h.warn("Adding an actionable (user controllable) child to a Button ("+n+") is not supported; use a ClickableComponent instead."),ye.prototype.addChild.call(this,t,e)},n.enable=function(){t.prototype.enable.call(this),this.el_.removeAttribute("disabled")},n.disable=function(){t.prototype.disable.call(this),this.el_.setAttribute("disabled","disabled")},n.handleKeyDown=function(e){xe.isEventKey(e,"Space")||xe.isEventKey(e,"Enter")?e.stopPropagation():t.prototype.handleKeyDown.call(this,e)},e}(hr);ye.registerComponent("Button",_r);var br=function(t){function e(e,n){var r;return(r=t.call(this,e,n)||this).mouseused_=!1,r.on("mousedown",(function(t){return r.handleMouseDown(t)})),r}me(e,t);var n=e.prototype;return n.buildCSSClass=function(){return"vjs-big-play-button"},n.handleClick=function(t){var e=this.player_.play();if(this.mouseused_&&t.clientX&&t.clientY){var n=this.player_.usingPlugin("eme")&&this.player_.eme.sessions&&this.player_.eme.sessions.length>0;return Pe(e),void(!this.player_.tech(!0)||(D||I)&&n||this.player_.tech(!0).focus())}var r=this.player_.getChild("controlBar"),o=r&&r.getChild("playToggle");if(o){var i=function(){return o.focus()};Ce(e)?e.then(i,(function(){})):this.setTimeout(i,1)}else this.player_.tech(!0).focus()},n.handleKeyDown=function(e){this.mouseused_=!1,t.prototype.handleKeyDown.call(this,e)},n.handleMouseDown=function(t){this.mouseused_=!0},e}(_r);br.prototype.controlText_="Play Video",ye.registerComponent("BigPlayButton",br);var wr=function(t){function e(e,n){var r;return(r=t.call(this,e,n)||this).controlText(n&&n.controlText||r.localize("Close")),r}me(e,t);var n=e.prototype;return n.buildCSSClass=function(){return"vjs-close-button "+t.prototype.buildCSSClass.call(this)},n.handleClick=function(t){this.trigger({type:"close",bubbles:!1})},n.handleKeyDown=function(e){xe.isEventKey(e,"Esc")?(e.preventDefault(),e.stopPropagation(),this.trigger("click")):t.prototype.handleKeyDown.call(this,e)},e}(_r);ye.registerComponent("CloseButton",wr);var Er=function(t){function e(e,n){var r;return void 0===n&&(n={}),r=t.call(this,e,n)||this,n.replay=void 0===n.replay||n.replay,r.on(e,"play",(function(t){return r.handlePlay(t)})),r.on(e,"pause",(function(t){return r.handlePause(t)})),n.replay&&r.on(e,"ended",(function(t){return r.handleEnded(t)})),r}me(e,t);var n=e.prototype;return n.buildCSSClass=function(){return"vjs-play-control "+t.prototype.buildCSSClass.call(this)},n.handleClick=function(t){this.player_.paused()?Pe(this.player_.play()):this.player_.pause()},n.handleSeeked=function(t){this.removeClass("vjs-ended"),this.player_.paused()?this.handlePause(t):this.handlePlay(t)},n.handlePlay=function(t){this.removeClass("vjs-ended"),this.removeClass("vjs-paused"),this.addClass("vjs-playing"),this.controlText("Pause")},n.handlePause=function(t){this.removeClass("vjs-playing"),this.addClass("vjs-paused"),this.controlText("Play")},n.handleEnded=function(t){var e=this;this.removeClass("vjs-playing"),this.addClass("vjs-ended"),this.controlText("Replay"),this.one(this.player_,"seeked",(function(t){return e.handleSeeked(t)}))},e}(_r);Er.prototype.controlText_="Play",ye.registerComponent("PlayToggle",Er);var Tr=function(t,e){t=t<0?0:t;var n=Math.floor(t%60),r=Math.floor(t/60%60),o=Math.floor(t/3600),i=Math.floor(e/60%60),a=Math.floor(e/3600);return(isNaN(t)||t===1/0)&&(o=r=n="-"),(o=o>0||a>0?o+":":"")+(r=((o||i>=10)&&r<10?"0"+r:r)+":")+(n=n<10?"0"+n:n)},Sr=Tr;function Or(t,e){return void 0===e&&(e=t),Sr(t,e)}var Cr=function(t){function e(e,n){var r;return(r=t.call(this,e,n)||this).on(e,["timeupdate","ended"],(function(t){return r.updateContent(t)})),r.updateTextNode_(),r}me(e,t);var n=e.prototype;return n.createEl=function(){var e=this.buildCSSClass(),n=t.prototype.createEl.call(this,"div",{className:e+" vjs-time-control vjs-control"}),r=Q("span",{className:"vjs-control-text",textContent:this.localize(this.labelText_)+" "},{role:"presentation"});return n.appendChild(r),this.contentEl_=Q("span",{className:e+"-display"},{"aria-live":"off",role:"presentation"}),n.appendChild(this.contentEl_),n},n.dispose=function(){this.contentEl_=null,this.textNode_=null,t.prototype.dispose.call(this)},n.updateTextNode_=function(t){var e=this;void 0===t&&(t=0),t=Or(t),this.formattedTime_!==t&&(this.formattedTime_=t,this.requestNamedAnimationFrame("TimeDisplay#updateTextNode_",(function(){if(e.contentEl_){var t=e.textNode_;t&&e.contentEl_.firstChild!==t&&(t=null,h.warn("TimeDisplay#updateTextnode_: Prevented replacement of text node element since it was no longer a child of this node. Appending a new node instead.")),e.textNode_=document.createTextNode(e.formattedTime_),e.textNode_&&(t?e.contentEl_.replaceChild(e.textNode_,t):e.contentEl_.appendChild(e.textNode_))}})))},n.updateContent=function(t){},e}(ye);Cr.prototype.labelText_="Time",Cr.prototype.controlText_="Time",ye.registerComponent("TimeDisplay",Cr);var Pr=function(t){function e(){return t.apply(this,arguments)||this}me(e,t);var n=e.prototype;return n.buildCSSClass=function(){return"vjs-current-time"},n.updateContent=function(t){var e;e=this.player_.ended()?this.player_.duration():this.player_.scrubbing()?this.player_.getCache().currentTime:this.player_.currentTime(),this.updateTextNode_(e)},e}(Cr);Pr.prototype.labelText_="Current Time",Pr.prototype.controlText_="Current Time",ye.registerComponent("CurrentTimeDisplay",Pr);var kr=function(t){function e(e,n){var r,o=function(t){return r.updateContent(t)};return(r=t.call(this,e,n)||this).on(e,"durationchange",o),r.on(e,"loadstart",o),r.on(e,"loadedmetadata",o),r}me(e,t);var n=e.prototype;return n.buildCSSClass=function(){return"vjs-duration"},n.updateContent=function(t){var e=this.player_.duration();this.updateTextNode_(e)},e}(Cr);kr.prototype.labelText_="Duration",kr.prototype.controlText_="Duration",ye.registerComponent("DurationDisplay",kr);var jr=function(t){function e(){return t.apply(this,arguments)||this}return me(e,t),e.prototype.createEl=function(){var e=t.prototype.createEl.call(this,"div",{className:"vjs-time-control vjs-time-divider"},{"aria-hidden":!0}),n=t.prototype.createEl.call(this,"div"),r=t.prototype.createEl.call(this,"span",{textContent:"/"});return n.appendChild(r),e.appendChild(n),e},e}(ye);ye.registerComponent("TimeDivider",jr);var Ar=function(t){function e(e,n){var r;return(r=t.call(this,e,n)||this).on(e,"durationchange",(function(t){return r.updateContent(t)})),r}me(e,t);var n=e.prototype;return n.buildCSSClass=function(){return"vjs-remaining-time"},n.createEl=function(){var e=t.prototype.createEl.call(this);return e.insertBefore(Q("span",{},{"aria-hidden":!0},"-"),this.contentEl_),e},n.updateContent=function(t){var e;"number"==typeof this.player_.duration()&&(e=this.player_.ended()?0:this.player_.remainingTimeDisplay?this.player_.remainingTimeDisplay():this.player_.remainingTime(),this.updateTextNode_(e))},e}(Cr);Ar.prototype.labelText_="Remaining Time",Ar.prototype.controlText_="Remaining Time",ye.registerComponent("RemainingTimeDisplay",Ar);var xr=function(t){function e(e,n){var r;return(r=t.call(this,e,n)||this).updateShowing(),r.on(r.player(),"durationchange",(function(t){return r.updateShowing(t)})),r}me(e,t);var n=e.prototype;return n.createEl=function(){var e=t.prototype.createEl.call(this,"div",{className:"vjs-live-control vjs-control"});return this.contentEl_=Q("div",{className:"vjs-live-display"},{"aria-live":"off"}),this.contentEl_.appendChild(Q("span",{className:"vjs-control-text",textContent:this.localize("Stream Type")+" "})),this.contentEl_.appendChild(document.createTextNode(this.localize("LIVE"))),e.appendChild(this.contentEl_),e},n.dispose=function(){this.contentEl_=null,t.prototype.dispose.call(this)},n.updateShowing=function(t){this.player().duration()===1/0?this.show():this.hide()},e}(ye);ye.registerComponent("LiveDisplay",xr);var Rr=function(t){function e(e,n){var r;return(r=t.call(this,e,n)||this).updateLiveEdgeStatus(),r.player_.liveTracker&&(r.updateLiveEdgeStatusHandler_=function(t){return r.updateLiveEdgeStatus(t)},r.on(r.player_.liveTracker,"liveedgechange",r.updateLiveEdgeStatusHandler_)),r}me(e,t);var n=e.prototype;return n.createEl=function(){var e=t.prototype.createEl.call(this,"button",{className:"vjs-seek-to-live-control vjs-control"});return this.textEl_=Q("span",{className:"vjs-seek-to-live-text",textContent:this.localize("LIVE")},{"aria-hidden":"true"}),e.appendChild(this.textEl_),e},n.updateLiveEdgeStatus=function(){!this.player_.liveTracker||this.player_.liveTracker.atLiveEdge()?(this.setAttribute("aria-disabled",!0),this.addClass("vjs-at-live-edge"),this.controlText("Seek to live, currently playing live")):(this.setAttribute("aria-disabled",!1),this.removeClass("vjs-at-live-edge"),this.controlText("Seek to live, currently behind live"))},n.handleClick=function(){this.player_.liveTracker.seekToLiveEdge()},n.dispose=function(){this.player_.liveTracker&&this.off(this.player_.liveTracker,"liveedgechange",this.updateLiveEdgeStatusHandler_),this.textEl_=null,t.prototype.dispose.call(this)},e}(_r);Rr.prototype.controlText_="Seek to live, currently playing live",ye.registerComponent("SeekToLive",Rr);var Lr=function(t,e,n){return t=Number(t),Math.min(n,Math.max(e,isNaN(t)?e:t))},Ir=function(t){function e(e,n){var r;return(r=t.call(this,e,n)||this).handleMouseDown_=function(t){return r.handleMouseDown(t)},r.handleMouseUp_=function(t){return r.handleMouseUp(t)},r.handleKeyDown_=function(t){return r.handleKeyDown(t)},r.handleClick_=function(t){return r.handleClick(t)},r.handleMouseMove_=function(t){return r.handleMouseMove(t)},r.update_=function(t){return r.update(t)},r.bar=r.getChild(r.options_.barName),r.vertical(!!r.options_.vertical),r.enable(),r}me(e,t);var n=e.prototype;return n.enabled=function(){return this.enabled_},n.enable=function(){this.enabled()||(this.on("mousedown",this.handleMouseDown_),this.on("touchstart",this.handleMouseDown_),this.on("keydown",this.handleKeyDown_),this.on("click",this.handleClick_),this.on(this.player_,"controlsvisible",this.update),this.playerEvent&&this.on(this.player_,this.playerEvent,this.update),this.removeClass("disabled"),this.setAttribute("tabindex",0),this.enabled_=!0)},n.disable=function(){if(this.enabled()){var t=this.bar.el_.ownerDocument;this.off("mousedown",this.handleMouseDown_),this.off("touchstart",this.handleMouseDown_),this.off("keydown",this.handleKeyDown_),this.off("click",this.handleClick_),this.off(this.player_,"controlsvisible",this.update_),this.off(t,"mousemove",this.handleMouseMove_),this.off(t,"mouseup",this.handleMouseUp_),this.off(t,"touchmove",this.handleMouseMove_),this.off(t,"touchend",this.handleMouseUp_),this.removeAttribute("tabindex"),this.addClass("disabled"),this.playerEvent&&this.off(this.player_,this.playerEvent,this.update),this.enabled_=!1}},n.createEl=function(e,n,r){return void 0===n&&(n={}),void 0===r&&(r={}),n.className=n.className+" vjs-slider",n=b({tabIndex:0},n),r=b({role:"slider","aria-valuenow":0,"aria-valuemin":0,"aria-valuemax":100,tabIndex:0},r),t.prototype.createEl.call(this,e,n,r)},n.handleMouseDown=function(t){var e=this.bar.el_.ownerDocument;"mousedown"===t.type&&t.preventDefault(),"touchstart"!==t.type||N||t.preventDefault(),lt(),this.addClass("vjs-sliding"),this.trigger("slideractive"),this.on(e,"mousemove",this.handleMouseMove_),this.on(e,"mouseup",this.handleMouseUp_),this.on(e,"touchmove",this.handleMouseMove_),this.on(e,"touchend",this.handleMouseUp_),this.handleMouseMove(t)},n.handleMouseMove=function(t){},n.handleMouseUp=function(){var t=this.bar.el_.ownerDocument;ft(),this.removeClass("vjs-sliding"),this.trigger("sliderinactive"),this.off(t,"mousemove",this.handleMouseMove_),this.off(t,"mouseup",this.handleMouseUp_),this.off(t,"touchmove",this.handleMouseMove_),this.off(t,"touchend",this.handleMouseUp_),this.update()},n.update=function(){var t=this;if(this.el_&&this.bar){var e=this.getProgress();return e===this.progress_||(this.progress_=e,this.requestNamedAnimationFrame("Slider#update",(function(){var n=t.vertical()?"height":"width";t.bar.el().style[n]=(100*e).toFixed(2)+"%"}))),e}},n.getProgress=function(){return Number(Lr(this.getPercent(),0,1).toFixed(4))},n.calculateDistance=function(t){var e=dt(this.el_,t);return this.vertical()?e.y:e.x},n.handleKeyDown=function(e){xe.isEventKey(e,"Left")||xe.isEventKey(e,"Down")?(e.preventDefault(),e.stopPropagation(),this.stepBack()):xe.isEventKey(e,"Right")||xe.isEventKey(e,"Up")?(e.preventDefault(),e.stopPropagation(),this.stepForward()):t.prototype.handleKeyDown.call(this,e)},n.handleClick=function(t){t.stopPropagation(),t.preventDefault()},n.vertical=function(t){if(void 0===t)return this.vertical_||!1;this.vertical_=!!t,this.vertical_?this.addClass("vjs-slider-vertical"):this.addClass("vjs-slider-horizontal")},e}(ye);ye.registerComponent("Slider",Ir);var Nr=function(t,e){return Lr(t/e*100,0,100).toFixed(2)+"%"},Mr=function(t){function e(e,n){var r;return(r=t.call(this,e,n)||this).partEls_=[],r.on(e,"progress",(function(t){return r.update(t)})),r}me(e,t);var n=e.prototype;return n.createEl=function(){var e=t.prototype.createEl.call(this,"div",{className:"vjs-load-progress"}),n=Q("span",{className:"vjs-control-text"}),r=Q("span",{textContent:this.localize("Loaded")}),o=document.createTextNode(": ");return this.percentageEl_=Q("span",{className:"vjs-control-text-loaded-percentage",textContent:"0%"}),e.appendChild(n),n.appendChild(r),n.appendChild(o),n.appendChild(this.percentageEl_),e},n.dispose=function(){this.partEls_=null,this.percentageEl_=null,t.prototype.dispose.call(this)},n.update=function(t){var e=this;this.requestNamedAnimationFrame("LoadProgressBar#update",(function(){var t=e.player_.liveTracker,n=e.player_.buffered(),r=t&&t.isLive()?t.seekableEnd():e.player_.duration(),o=e.player_.bufferedEnd(),i=e.partEls_,a=Nr(o,r);e.percent_!==a&&(e.el_.style.width=a,Z(e.percentageEl_,a),e.percent_=a);for(var s=0;s<n.length;s++){var u=n.start(s),c=n.end(s),l=i[s];l||(l=e.el_.appendChild(Q()),i[s]=l),l.dataset.start===u&&l.dataset.end===c||(l.dataset.start=u,l.dataset.end=c,l.style.left=Nr(u,o),l.style.width=Nr(c-u,o))}for(var f=i.length;f>n.length;f--)e.el_.removeChild(i[f-1]);i.length=n.length}))},e}(ye);ye.registerComponent("LoadProgressBar",Mr);var Dr=function(t){function e(e,n){var r;return(r=t.call(this,e,n)||this).update=qt(Xt(ge(r),r.update),Kt),r}me(e,t);var n=e.prototype;return n.createEl=function(){return t.prototype.createEl.call(this,"div",{className:"vjs-time-tooltip"},{"aria-hidden":"true"})},n.update=function(t,e,n){var r=pt(this.el_),o=ht(this.player_.el()),i=t.width*e;if(o&&r){var a=t.left-o.left+i,s=t.width-i+(o.right-t.right),u=r.width/2;a<u?u+=u-a:s<u&&(u=s),u<0?u=0:u>r.width&&(u=r.width),u=Math.round(u),this.el_.style.right="-"+u+"px",this.write(n)}},n.write=function(t){Z(this.el_,t)},n.updateTime=function(t,e,n,r){var o=this;this.requestNamedAnimationFrame("TimeTooltip#updateTime",(function(){var i,a=o.player_.duration();if(o.player_.liveTracker&&o.player_.liveTracker.isLive()){var s=o.player_.liveTracker.liveWindow(),u=s-e*s;i=(u<1?"":"-")+Or(u,s)}else i=Or(n,a);o.update(t,e,i),r&&r()}))},e}(ye);ye.registerComponent("TimeTooltip",Dr);var Fr=function(t){function e(e,n){var r;return(r=t.call(this,e,n)||this).update=qt(Xt(ge(r),r.update),Kt),r}me(e,t);var n=e.prototype;return n.createEl=function(){return t.prototype.createEl.call(this,"div",{className:"vjs-play-progress vjs-slider-bar"},{"aria-hidden":"true"})},n.update=function(t,e){var n=this.getChild("timeTooltip");if(n){var r=this.player_.scrubbing()?this.player_.getCache().currentTime:this.player_.currentTime();n.updateTime(t,e,r)}},e}(ye);Fr.prototype.options_={children:[]},Y||A||Fr.prototype.options_.children.push("timeTooltip"),ye.registerComponent("PlayProgressBar",Fr);var Br=function(t){function e(e,n){var r;return(r=t.call(this,e,n)||this).update=qt(Xt(ge(r),r.update),Kt),r}me(e,t);var n=e.prototype;return n.createEl=function(){return t.prototype.createEl.call(this,"div",{className:"vjs-mouse-display"})},n.update=function(t,e){var n=this,r=e*this.player_.duration();this.getChild("timeTooltip").updateTime(t,e,r,(function(){n.el_.style.left=t.width*e+"px"}))},e}(ye);Br.prototype.options_={children:["timeTooltip"]},ye.registerComponent("MouseTimeDisplay",Br);var Vr=function(t){function e(e,n){var r;return(r=t.call(this,e,n)||this).setEventHandlers_(),r}me(e,t);var n=e.prototype;return n.setEventHandlers_=function(){var t=this;this.update_=Xt(this,this.update),this.update=qt(this.update_,Kt),this.on(this.player_,["ended","durationchange","timeupdate"],this.update),this.player_.liveTracker&&this.on(this.player_.liveTracker,"liveedgechange",this.update),this.updateInterval=null,this.enableIntervalHandler_=function(e){return t.enableInterval_(e)},this.disableIntervalHandler_=function(e){return t.disableInterval_(e)},this.on(this.player_,["playing"],this.enableIntervalHandler_),this.on(this.player_,["ended","pause","waiting"],this.disableIntervalHandler_),"hidden"in document&&"visibilityState"in document&&this.on(document,"visibilitychange",this.toggleVisibility_)},n.toggleVisibility_=function(t){"hidden"===document.visibilityState?(this.cancelNamedAnimationFrame("SeekBar#update"),this.cancelNamedAnimationFrame("Slider#update"),this.disableInterval_(t)):(this.player_.ended()||this.player_.paused()||this.enableInterval_(),this.update())},n.enableInterval_=function(){this.updateInterval||(this.updateInterval=this.setInterval(this.update,Kt))},n.disableInterval_=function(t){this.player_.liveTracker&&this.player_.liveTracker.isLive()&&t&&"ended"!==t.type||this.updateInterval&&(this.clearInterval(this.updateInterval),this.updateInterval=null)},n.createEl=function(){return t.prototype.createEl.call(this,"div",{className:"vjs-progress-holder"},{"aria-label":this.localize("Progress Bar")})},n.update=function(e){var n=this;if("hidden"!==document.visibilityState){var r=t.prototype.update.call(this);return this.requestNamedAnimationFrame("SeekBar#update",(function(){var t=n.player_.ended()?n.player_.duration():n.getCurrentTime_(),e=n.player_.liveTracker,o=n.player_.duration();e&&e.isLive()&&(o=n.player_.liveTracker.liveCurrentTime()),n.percent_!==r&&(n.el_.setAttribute("aria-valuenow",(100*r).toFixed(2)),n.percent_=r),n.currentTime_===t&&n.duration_===o||(n.el_.setAttribute("aria-valuetext",n.localize("progress bar timing: currentTime={1} duration={2}",[Or(t,o),Or(o,o)],"{1} of {2}")),n.currentTime_=t,n.duration_=o),n.bar&&n.bar.update(ht(n.el()),n.getProgress())})),r}},n.userSeek_=function(t){this.player_.liveTracker&&this.player_.liveTracker.isLive()&&this.player_.liveTracker.nextSeekedFromUser(),this.player_.currentTime(t)},n.getCurrentTime_=function(){return this.player_.scrubbing()?this.player_.getCache().currentTime:this.player_.currentTime()},n.getPercent=function(){var t,e=this.getCurrentTime_(),n=this.player_.liveTracker;return n&&n.isLive()?(t=(e-n.seekableStart())/n.liveWindow(),n.atLiveEdge()&&(t=1)):t=e/this.player_.duration(),t},n.handleMouseDown=function(e){bt(e)&&(e.stopPropagation(),this.player_.scrubbing(!0),this.videoWasPlaying=!this.player_.paused(),this.player_.pause(),t.prototype.handleMouseDown.call(this,e))},n.handleMouseMove=function(t){if(bt(t)){var e,n=this.calculateDistance(t),r=this.player_.liveTracker;if(r&&r.isLive()){if(n>=.99)return void r.seekToLiveEdge();var o=r.seekableStart(),i=r.liveCurrentTime();if((e=o+n*r.liveWindow())>=i&&(e=i),e<=o&&(e=o+.1),e===1/0)return}else(e=n*this.player_.duration())===this.player_.duration()&&(e-=.1);this.userSeek_(e)}},n.enable=function(){t.prototype.enable.call(this);var e=this.getChild("mouseTimeDisplay");e&&e.show()},n.disable=function(){t.prototype.disable.call(this);var e=this.getChild("mouseTimeDisplay");e&&e.hide()},n.handleMouseUp=function(e){t.prototype.handleMouseUp.call(this,e),e&&e.stopPropagation(),this.player_.scrubbing(!1),this.player_.trigger({type:"timeupdate",target:this,manuallyTriggered:!0}),this.videoWasPlaying?Pe(this.player_.play()):this.update_()},n.stepForward=function(){this.userSeek_(this.player_.currentTime()+5)},n.stepBack=function(){this.userSeek_(this.player_.currentTime()-5)},n.handleAction=function(t){this.player_.paused()?this.player_.play():this.player_.pause()},n.handleKeyDown=function(e){var n=this.player_.liveTracker;if(xe.isEventKey(e,"Space")||xe.isEventKey(e,"Enter"))e.preventDefault(),e.stopPropagation(),this.handleAction(e);else if(xe.isEventKey(e,"Home"))e.preventDefault(),e.stopPropagation(),this.userSeek_(0);else if(xe.isEventKey(e,"End"))e.preventDefault(),e.stopPropagation(),n&&n.isLive()?this.userSeek_(n.liveCurrentTime()):this.userSeek_(this.player_.duration());else if(/^[0-9]$/.test(xe(e))){e.preventDefault(),e.stopPropagation();var r=10*(xe.codes[xe(e)]-xe.codes[0])/100;n&&n.isLive()?this.userSeek_(n.seekableStart()+n.liveWindow()*r):this.userSeek_(this.player_.duration()*r)}else xe.isEventKey(e,"PgDn")?(e.preventDefault(),e.stopPropagation(),this.userSeek_(this.player_.currentTime()-60)):xe.isEventKey(e,"PgUp")?(e.preventDefault(),e.stopPropagation(),this.userSeek_(this.player_.currentTime()+60)):t.prototype.handleKeyDown.call(this,e)},n.dispose=function(){this.disableInterval_(),this.off(this.player_,["ended","durationchange","timeupdate"],this.update),this.player_.liveTracker&&this.off(this.player_.liveTracker,"liveedgechange",this.update),this.off(this.player_,["playing"],this.enableIntervalHandler_),this.off(this.player_,["ended","pause","waiting"],this.disableIntervalHandler_),"hidden"in document&&"visibilityState"in document&&this.off(document,"visibilitychange",this.toggleVisibility_),t.prototype.dispose.call(this)},e}(Ir);Vr.prototype.options_={children:["loadProgressBar","playProgressBar"],barName:"playProgressBar"},Y||A||Vr.prototype.options_.children.splice(1,0,"mouseTimeDisplay"),ye.registerComponent("SeekBar",Vr);var Ur=function(t){function e(e,n){var r;return(r=t.call(this,e,n)||this).handleMouseMove=qt(Xt(ge(r),r.handleMouseMove),Kt),r.throttledHandleMouseSeek=qt(Xt(ge(r),r.handleMouseSeek),Kt),r.handleMouseUpHandler_=function(t){return r.handleMouseUp(t)},r.handleMouseDownHandler_=function(t){return r.handleMouseDown(t)},r.enable(),r}me(e,t);var n=e.prototype;return n.createEl=function(){return t.prototype.createEl.call(this,"div",{className:"vjs-progress-control vjs-control"})},n.handleMouseMove=function(t){var e=this.getChild("seekBar");if(e){var n=e.getChild("playProgressBar"),r=e.getChild("mouseTimeDisplay");if(n||r){var o=e.el(),i=pt(o),a=dt(o,t).x;a=Lr(a,0,1),r&&r.update(i,a),n&&n.update(i,e.getProgress())}}},n.handleMouseSeek=function(t){var e=this.getChild("seekBar");e&&e.handleMouseMove(t)},n.enabled=function(){return this.enabled_},n.disable=function(){if(this.children().forEach((function(t){return t.disable&&t.disable()})),this.enabled()&&(this.off(["mousedown","touchstart"],this.handleMouseDownHandler_),this.off(this.el_,"mousemove",this.handleMouseMove),this.removeListenersAddedOnMousedownAndTouchstart(),this.addClass("disabled"),this.enabled_=!1,this.player_.scrubbing())){var t=this.getChild("seekBar");this.player_.scrubbing(!1),t.videoWasPlaying&&Pe(this.player_.play())}},n.enable=function(){this.children().forEach((function(t){return t.enable&&t.enable()})),this.enabled()||(this.on(["mousedown","touchstart"],this.handleMouseDownHandler_),this.on(this.el_,"mousemove",this.handleMouseMove),this.removeClass("disabled"),this.enabled_=!0)},n.removeListenersAddedOnMousedownAndTouchstart=function(){var t=this.el_.ownerDocument;this.off(t,"mousemove",this.throttledHandleMouseSeek),this.off(t,"touchmove",this.throttledHandleMouseSeek),this.off(t,"mouseup",this.handleMouseUpHandler_),this.off(t,"touchend",this.handleMouseUpHandler_)},n.handleMouseDown=function(t){var e=this.el_.ownerDocument,n=this.getChild("seekBar");n&&n.handleMouseDown(t),this.on(e,"mousemove",this.throttledHandleMouseSeek),this.on(e,"touchmove",this.throttledHandleMouseSeek),this.on(e,"mouseup",this.handleMouseUpHandler_),this.on(e,"touchend",this.handleMouseUpHandler_)},n.handleMouseUp=function(t){var e=this.getChild("seekBar");e&&e.handleMouseUp(t),this.removeListenersAddedOnMousedownAndTouchstart()},e}(ye);Ur.prototype.options_={children:["seekBar"]},ye.registerComponent("ProgressControl",Ur);var Hr=function(t){function e(e,n){var r;return(r=t.call(this,e,n)||this).on(e,["enterpictureinpicture","leavepictureinpicture"],(function(t){return r.handlePictureInPictureChange(t)})),r.on(e,["disablepictureinpicturechanged","loadedmetadata"],(function(t){return r.handlePictureInPictureEnabledChange(t)})),r.disable(),r}me(e,t);var n=e.prototype;return n.buildCSSClass=function(){return"vjs-picture-in-picture-control "+t.prototype.buildCSSClass.call(this)},n.handlePictureInPictureEnabledChange=function(){document.pictureInPictureEnabled&&!1===this.player_.disablePictureInPicture()?this.enable():this.disable()},n.handlePictureInPictureChange=function(t){this.player_.isInPictureInPicture()?this.controlText("Exit Picture-in-Picture"):this.controlText("Picture-in-Picture"),this.handlePictureInPictureEnabledChange()},n.handleClick=function(t){this.player_.isInPictureInPicture()?this.player_.exitPictureInPicture():this.player_.requestPictureInPicture()},e}(_r);Hr.prototype.controlText_="Picture-in-Picture",ye.registerComponent("PictureInPictureToggle",Hr);var Yr=function(t){function e(e,n){var r;return(r=t.call(this,e,n)||this).on(e,"fullscreenchange",(function(t){return r.handleFullscreenChange(t)})),!1===document[e.fsApi_.fullscreenEnabled]&&r.disable(),r}me(e,t);var n=e.prototype;return n.buildCSSClass=function(){return"vjs-fullscreen-control "+t.prototype.buildCSSClass.call(this)},n.handleFullscreenChange=function(t){this.player_.isFullscreen()?this.controlText("Non-Fullscreen"):this.controlText("Fullscreen")},n.handleClick=function(t){this.player_.isFullscreen()?this.player_.exitFullscreen():this.player_.requestFullscreen()},e}(_r);Yr.prototype.controlText_="Fullscreen",ye.registerComponent("FullscreenToggle",Yr);var zr=function(t){function e(){return t.apply(this,arguments)||this}return me(e,t),e.prototype.createEl=function(){var e=t.prototype.createEl.call(this,"div",{className:"vjs-volume-level"});return e.appendChild(t.prototype.createEl.call(this,"span",{className:"vjs-control-text"})),e},e}(ye);ye.registerComponent("VolumeLevel",zr);var Wr=function(t){function e(e,n){var r;return(r=t.call(this,e,n)||this).update=qt(Xt(ge(r),r.update),Kt),r}me(e,t);var n=e.prototype;return n.createEl=function(){return t.prototype.createEl.call(this,"div",{className:"vjs-volume-tooltip"},{"aria-hidden":"true"})},n.update=function(t,e,n,r){if(!n){var o=ht(this.el_),i=ht(this.player_.el()),a=t.width*e;if(!i||!o)return;var s=t.left-i.left+a,u=t.width-a+(i.right-t.right),c=o.width/2;s<c?c+=c-s:u<c&&(c=u),c<0?c=0:c>o.width&&(c=o.width),this.el_.style.right="-"+c+"px"}this.write(r+"%")},n.write=function(t){Z(this.el_,t)},n.updateVolume=function(t,e,n,r,o){var i=this;this.requestNamedAnimationFrame("VolumeLevelTooltip#updateVolume",(function(){i.update(t,e,n,r.toFixed(0)),o&&o()}))},e}(ye);ye.registerComponent("VolumeLevelTooltip",Wr);var Gr=function(t){function e(e,n){var r;return(r=t.call(this,e,n)||this).update=qt(Xt(ge(r),r.update),Kt),r}me(e,t);var n=e.prototype;return n.createEl=function(){return t.prototype.createEl.call(this,"div",{className:"vjs-mouse-display"})},n.update=function(t,e,n){var r=this,o=100*e;this.getChild("volumeLevelTooltip").updateVolume(t,e,n,o,(function(){n?r.el_.style.bottom=t.height*e+"px":r.el_.style.left=t.width*e+"px"}))},e}(ye);Gr.prototype.options_={children:["volumeLevelTooltip"]},ye.registerComponent("MouseVolumeLevelDisplay",Gr);var Kr=function(t){function e(e,n){var r;return(r=t.call(this,e,n)||this).on("slideractive",(function(t){return r.updateLastVolume_(t)})),r.on(e,"volumechange",(function(t){return r.updateARIAAttributes(t)})),e.ready((function(){return r.updateARIAAttributes()})),r}me(e,t);var n=e.prototype;return n.createEl=function(){return t.prototype.createEl.call(this,"div",{className:"vjs-volume-bar vjs-slider-bar"},{"aria-label":this.localize("Volume Level"),"aria-live":"polite"})},n.handleMouseDown=function(e){bt(e)&&t.prototype.handleMouseDown.call(this,e)},n.handleMouseMove=function(t){var e=this.getChild("mouseVolumeLevelDisplay");if(e){var n=this.el(),r=ht(n),o=this.vertical(),i=dt(n,t);i=o?i.y:i.x,i=Lr(i,0,1),e.update(r,i,o)}bt(t)&&(this.checkMuted(),this.player_.volume(this.calculateDistance(t)))},n.checkMuted=function(){this.player_.muted()&&this.player_.muted(!1)},n.getPercent=function(){return this.player_.muted()?0:this.player_.volume()},n.stepForward=function(){this.checkMuted(),this.player_.volume(this.player_.volume()+.1)},n.stepBack=function(){this.checkMuted(),this.player_.volume(this.player_.volume()-.1)},n.updateARIAAttributes=function(t){var e=this.player_.muted()?0:this.volumeAsPercentage_();this.el_.setAttribute("aria-valuenow",e),this.el_.setAttribute("aria-valuetext",e+"%")},n.volumeAsPercentage_=function(){return Math.round(100*this.player_.volume())},n.updateLastVolume_=function(){var t=this,e=this.player_.volume();this.one("sliderinactive",(function(){0===t.player_.volume()&&t.player_.lastVolume_(e)}))},e}(Ir);Kr.prototype.options_={children:["volumeLevel"],barName:"volumeLevel"},Y||A||Kr.prototype.options_.children.splice(0,0,"mouseVolumeLevelDisplay"),Kr.prototype.playerEvent="volumechange",ye.registerComponent("VolumeBar",Kr);var Xr=function(t){function e(e,n){var r;return void 0===n&&(n={}),n.vertical=n.vertical||!1,(void 0===n.volumeBar||E(n.volumeBar))&&(n.volumeBar=n.volumeBar||{},n.volumeBar.vertical=n.vertical),r=t.call(this,e,n)||this,function(t,e){e.tech_&&!e.tech_.featuresVolumeControl&&t.addClass("vjs-hidden"),t.on(e,"loadstart",(function(){e.tech_.featuresVolumeControl?t.removeClass("vjs-hidden"):t.addClass("vjs-hidden")}))}(ge(r),e),r.throttledHandleMouseMove=qt(Xt(ge(r),r.handleMouseMove),Kt),r.handleMouseUpHandler_=function(t){return r.handleMouseUp(t)},r.on("mousedown",(function(t){return r.handleMouseDown(t)})),r.on("touchstart",(function(t){return r.handleMouseDown(t)})),r.on("mousemove",(function(t){return r.handleMouseMove(t)})),r.on(r.volumeBar,["focus","slideractive"],(function(){r.volumeBar.addClass("vjs-slider-active"),r.addClass("vjs-slider-active"),r.trigger("slideractive")})),r.on(r.volumeBar,["blur","sliderinactive"],(function(){r.volumeBar.removeClass("vjs-slider-active"),r.removeClass("vjs-slider-active"),r.trigger("sliderinactive")})),r}me(e,t);var n=e.prototype;return n.createEl=function(){var e="vjs-volume-horizontal";return this.options_.vertical&&(e="vjs-volume-vertical"),t.prototype.createEl.call(this,"div",{className:"vjs-volume-control vjs-control "+e})},n.handleMouseDown=function(t){var e=this.el_.ownerDocument;this.on(e,"mousemove",this.throttledHandleMouseMove),this.on(e,"touchmove",this.throttledHandleMouseMove),this.on(e,"mouseup",this.handleMouseUpHandler_),this.on(e,"touchend",this.handleMouseUpHandler_)},n.handleMouseUp=function(t){var e=this.el_.ownerDocument;this.off(e,"mousemove",this.throttledHandleMouseMove),this.off(e,"touchmove",this.throttledHandleMouseMove),this.off(e,"mouseup",this.handleMouseUpHandler_),this.off(e,"touchend",this.handleMouseUpHandler_)},n.handleMouseMove=function(t){this.volumeBar.handleMouseMove(t)},e}(ye);Xr.prototype.options_={children:["volumeBar"]},ye.registerComponent("VolumeControl",Xr);var qr=function(t){function e(e,n){var r;return r=t.call(this,e,n)||this,function(t,e){e.tech_&&!e.tech_.featuresMuteControl&&t.addClass("vjs-hidden"),t.on(e,"loadstart",(function(){e.tech_.featuresMuteControl?t.removeClass("vjs-hidden"):t.addClass("vjs-hidden")}))}(ge(r),e),r.on(e,["loadstart","volumechange"],(function(t){return r.update(t)})),r}me(e,t);var n=e.prototype;return n.buildCSSClass=function(){return"vjs-mute-control "+t.prototype.buildCSSClass.call(this)},n.handleClick=function(t){var e=this.player_.volume(),n=this.player_.lastVolume_();if(0===e){var r=n<.1?.1:n;this.player_.volume(r),this.player_.muted(!1)}else this.player_.muted(!this.player_.muted())},n.update=function(t){this.updateIcon_(),this.updateControlText_()},n.updateIcon_=function(){var t=this.player_.volume(),e=3;Y&&this.player_.tech_&&this.player_.tech_.el_&&this.player_.muted(this.player_.tech_.el_.muted),0===t||this.player_.muted()?e=0:t<.33?e=1:t<.67&&(e=2);for(var n=0;n<4;n++)rt(this.el_,"vjs-vol-"+n);nt(this.el_,"vjs-vol-"+e)},n.updateControlText_=function(){var t=this.player_.muted()||0===this.player_.volume()?"Unmute":"Mute";this.controlText()!==t&&this.controlText(t)},e}(_r);qr.prototype.controlText_="Mute",ye.registerComponent("MuteToggle",qr);var $r=function(t){function e(e,n){var r;return void 0===n&&(n={}),void 0!==n.inline?n.inline=n.inline:n.inline=!0,(void 0===n.volumeControl||E(n.volumeControl))&&(n.volumeControl=n.volumeControl||{},n.volumeControl.vertical=!n.inline),(r=t.call(this,e,n)||this).handleKeyPressHandler_=function(t){return r.handleKeyPress(t)},r.on(e,["loadstart"],(function(t){return r.volumePanelState_(t)})),r.on(r.muteToggle,"keyup",(function(t){return r.handleKeyPress(t)})),r.on(r.volumeControl,"keyup",(function(t){return r.handleVolumeControlKeyUp(t)})),r.on("keydown",(function(t){return r.handleKeyPress(t)})),r.on("mouseover",(function(t){return r.handleMouseOver(t)})),r.on("mouseout",(function(t){return r.handleMouseOut(t)})),r.on(r.volumeControl,["slideractive"],r.sliderActive_),r.on(r.volumeControl,["sliderinactive"],r.sliderInactive_),r}me(e,t);var n=e.prototype;return n.sliderActive_=function(){this.addClass("vjs-slider-active")},n.sliderInactive_=function(){this.removeClass("vjs-slider-active")},n.volumePanelState_=function(){this.volumeControl.hasClass("vjs-hidden")&&this.muteToggle.hasClass("vjs-hidden")&&this.addClass("vjs-hidden"),this.volumeControl.hasClass("vjs-hidden")&&!this.muteToggle.hasClass("vjs-hidden")&&this.addClass("vjs-mute-toggle-only")},n.createEl=function(){var e="vjs-volume-panel-horizontal";return this.options_.inline||(e="vjs-volume-panel-vertical"),t.prototype.createEl.call(this,"div",{className:"vjs-volume-panel vjs-control "+e})},n.dispose=function(){this.handleMouseOut(),t.prototype.dispose.call(this)},n.handleVolumeControlKeyUp=function(t){xe.isEventKey(t,"Esc")&&this.muteToggle.focus()},n.handleMouseOver=function(t){this.addClass("vjs-hover"),Vt(document,"keyup",this.handleKeyPressHandler_)},n.handleMouseOut=function(t){this.removeClass("vjs-hover"),Ut(document,"keyup",this.handleKeyPressHandler_)},n.handleKeyPress=function(t){xe.isEventKey(t,"Esc")&&this.handleMouseOut()},e}(ye);$r.prototype.options_={children:["muteToggle","volumeControl"]},ye.registerComponent("VolumePanel",$r);var Jr=function(t){function e(e,n){var r;return r=t.call(this,e,n)||this,n&&(r.menuButton_=n.menuButton),r.focusedChild_=-1,r.on("keydown",(function(t){return r.handleKeyDown(t)})),r.boundHandleBlur_=function(t){return r.handleBlur(t)},r.boundHandleTapClick_=function(t){return r.handleTapClick(t)},r}me(e,t);var n=e.prototype;return n.addEventListenerForItem=function(t){t instanceof ye&&(this.on(t,"blur",this.boundHandleBlur_),this.on(t,["tap","click"],this.boundHandleTapClick_))},n.removeEventListenerForItem=function(t){t instanceof ye&&(this.off(t,"blur",this.boundHandleBlur_),this.off(t,["tap","click"],this.boundHandleTapClick_))},n.removeChild=function(e){"string"==typeof e&&(e=this.getChild(e)),this.removeEventListenerForItem(e),t.prototype.removeChild.call(this,e)},n.addItem=function(t){var e=this.addChild(t);e&&this.addEventListenerForItem(e)},n.createEl=function(){var e=this.options_.contentElType||"ul";this.contentEl_=Q(e,{className:"vjs-menu-content"}),this.contentEl_.setAttribute("role","menu");var n=t.prototype.createEl.call(this,"div",{append:this.contentEl_,className:"vjs-menu"});return n.appendChild(this.contentEl_),Vt(n,"click",(function(t){t.preventDefault(),t.stopImmediatePropagation()})),n},n.dispose=function(){this.contentEl_=null,this.boundHandleBlur_=null,this.boundHandleTapClick_=null,t.prototype.dispose.call(this)},n.handleBlur=function(t){var e=t.relatedTarget||document.activeElement;if(!this.children().some((function(t){return t.el()===e}))){var n=this.menuButton_;n&&n.buttonPressed_&&e!==n.el().firstChild&&n.unpressButton()}},n.handleTapClick=function(t){if(this.menuButton_){this.menuButton_.unpressButton();var e=this.children();if(!Array.isArray(e))return;var n=e.filter((function(e){return e.el()===t.target}))[0];if(!n)return;"CaptionSettingsMenuItem"!==n.name()&&this.menuButton_.focus()}},n.handleKeyDown=function(t){xe.isEventKey(t,"Left")||xe.isEventKey(t,"Down")?(t.preventDefault(),t.stopPropagation(),this.stepForward()):(xe.isEventKey(t,"Right")||xe.isEventKey(t,"Up"))&&(t.preventDefault(),t.stopPropagation(),this.stepBack())},n.stepForward=function(){var t=0;void 0!==this.focusedChild_&&(t=this.focusedChild_+1),this.focus(t)},n.stepBack=function(){var t=0;void 0!==this.focusedChild_&&(t=this.focusedChild_-1),this.focus(t)},n.focus=function(t){void 0===t&&(t=0);var e=this.children().slice();e.length&&e[0].hasClass("vjs-menu-title")&&e.shift(),e.length>0&&(t<0?t=0:t>=e.length&&(t=e.length-1),this.focusedChild_=t,e[t].el_.focus())},e}(ye);ye.registerComponent("Menu",Jr);var Qr=function(t){function e(e,n){var r;void 0===n&&(n={}),(r=t.call(this,e,n)||this).menuButton_=new _r(e,n),r.menuButton_.controlText(r.controlText_),r.menuButton_.el_.setAttribute("aria-haspopup","true");var o=_r.prototype.buildCSSClass();r.menuButton_.el_.className=r.buildCSSClass()+" "+o,r.menuButton_.removeClass("vjs-control"),r.addChild(r.menuButton_),r.update(),r.enabled_=!0;var i=function(t){return r.handleClick(t)};return r.handleMenuKeyUp_=function(t){return r.handleMenuKeyUp(t)},r.on(r.menuButton_,"tap",i),r.on(r.menuButton_,"click",i),r.on(r.menuButton_,"keydown",(function(t){return r.handleKeyDown(t)})),r.on(r.menuButton_,"mouseenter",(function(){r.addClass("vjs-hover"),r.menu.show(),Vt(document,"keyup",r.handleMenuKeyUp_)})),r.on("mouseleave",(function(t){return r.handleMouseLeave(t)})),r.on("keydown",(function(t){return r.handleSubmenuKeyDown(t)})),r}me(e,t);var n=e.prototype;return n.update=function(){var t=this.createMenu();this.menu&&(this.menu.dispose(),this.removeChild(this.menu)),this.menu=t,this.addChild(t),this.buttonPressed_=!1,this.menuButton_.el_.setAttribute("aria-expanded","false"),this.items&&this.items.length<=this.hideThreshold_?this.hide():this.show()},n.createMenu=function(){var t=new Jr(this.player_,{menuButton:this});if(this.hideThreshold_=0,this.options_.title){var e=Q("li",{className:"vjs-menu-title",textContent:le(this.options_.title),tabIndex:-1}),n=new ye(this.player_,{el:e});t.addItem(n)}if(this.items=this.createItems(),this.items)for(var r=0;r<this.items.length;r++)t.addItem(this.items[r]);return t},n.createItems=function(){},n.createEl=function(){return t.prototype.createEl.call(this,"div",{className:this.buildWrapperCSSClass()},{})},n.buildWrapperCSSClass=function(){var e="vjs-menu-button";return!0===this.options_.inline?e+="-inline":e+="-popup","vjs-menu-button "+e+" "+_r.prototype.buildCSSClass()+" "+t.prototype.buildCSSClass.call(this)},n.buildCSSClass=function(){var e="vjs-menu-button";return!0===this.options_.inline?e+="-inline":e+="-popup","vjs-menu-button "+e+" "+t.prototype.buildCSSClass.call(this)},n.controlText=function(t,e){return void 0===e&&(e=this.menuButton_.el()),this.menuButton_.controlText(t,e)},n.dispose=function(){this.handleMouseLeave(),t.prototype.dispose.call(this)},n.handleClick=function(t){this.buttonPressed_?this.unpressButton():this.pressButton()},n.handleMouseLeave=function(t){this.removeClass("vjs-hover"),Ut(document,"keyup",this.handleMenuKeyUp_)},n.focus=function(){this.menuButton_.focus()},n.blur=function(){this.menuButton_.blur()},n.handleKeyDown=function(t){xe.isEventKey(t,"Esc")||xe.isEventKey(t,"Tab")?(this.buttonPressed_&&this.unpressButton(),xe.isEventKey(t,"Tab")||(t.preventDefault(),this.menuButton_.focus())):(xe.isEventKey(t,"Up")||xe.isEventKey(t,"Down"))&&(this.buttonPressed_||(t.preventDefault(),this.pressButton()))},n.handleMenuKeyUp=function(t){(xe.isEventKey(t,"Esc")||xe.isEventKey(t,"Tab"))&&this.removeClass("vjs-hover")},n.handleSubmenuKeyPress=function(t){this.handleSubmenuKeyDown(t)},n.handleSubmenuKeyDown=function(t){(xe.isEventKey(t,"Esc")||xe.isEventKey(t,"Tab"))&&(this.buttonPressed_&&this.unpressButton(),xe.isEventKey(t,"Tab")||(t.preventDefault(),this.menuButton_.focus()))},n.pressButton=function(){if(this.enabled_){if(this.buttonPressed_=!0,this.menu.show(),this.menu.lockShowing(),this.menuButton_.el_.setAttribute("aria-expanded","true"),Y&&$())return;this.menu.focus()}},n.unpressButton=function(){this.enabled_&&(this.buttonPressed_=!1,this.menu.unlockShowing(),this.menu.hide(),this.menuButton_.el_.setAttribute("aria-expanded","false"))},n.disable=function(){this.unpressButton(),this.enabled_=!1,this.addClass("vjs-disabled"),this.menuButton_.disable()},n.enable=function(){this.enabled_=!0,this.removeClass("vjs-disabled"),this.menuButton_.enable()},e}(ye);ye.registerComponent("MenuButton",Qr);var Zr=function(t){function e(e,n){var r,o=n.tracks;if((r=t.call(this,e,n)||this).items.length<=1&&r.hide(),!o)return ge(r);var i=Xt(ge(r),r.update);return o.addEventListener("removetrack",i),o.addEventListener("addtrack",i),o.addEventListener("labelchange",i),r.player_.on("ready",i),r.player_.on("dispose",(function(){o.removeEventListener("removetrack",i),o.removeEventListener("addtrack",i),o.removeEventListener("labelchange",i)})),r}return me(e,t),e}(Qr);ye.registerComponent("TrackButton",Zr);var to=["Tab","Esc","Up","Down","Right","Left"],eo=function(t){function e(e,n){var r;return(r=t.call(this,e,n)||this).selectable=n.selectable,r.isSelected_=n.selected||!1,r.multiSelectable=n.multiSelectable,r.selected(r.isSelected_),r.selectable?r.multiSelectable?r.el_.setAttribute("role","menuitemcheckbox"):r.el_.setAttribute("role","menuitemradio"):r.el_.setAttribute("role","menuitem"),r}me(e,t);var n=e.prototype;return n.createEl=function(e,n,r){this.nonIconControl=!0;var o=t.prototype.createEl.call(this,"li",b({className:"vjs-menu-item",tabIndex:-1},n),r);return o.replaceChild(Q("span",{className:"vjs-menu-item-text",textContent:this.localize(this.options_.label)}),o.querySelector(".vjs-icon-placeholder")),o},n.handleKeyDown=function(e){to.some((function(t){return xe.isEventKey(e,t)}))||t.prototype.handleKeyDown.call(this,e)},n.handleClick=function(t){this.selected(!0)},n.selected=function(t){this.selectable&&(t?(this.addClass("vjs-selected"),this.el_.setAttribute("aria-checked","true"),this.controlText(", selected"),this.isSelected_=!0):(this.removeClass("vjs-selected"),this.el_.setAttribute("aria-checked","false"),this.controlText(""),this.isSelected_=!1))},e}(hr);ye.registerComponent("MenuItem",eo);var no=function(t){function e(e,n){var r,o=n.track,i=e.textTracks();n.label=o.label||o.language||"Unknown",n.selected="showing"===o.mode,(r=t.call(this,e,n)||this).track=o,r.kinds=(n.kinds||[n.kind||r.track.kind]).filter(Boolean);var a,s=function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];r.handleTracksChange.apply(ge(r),e)},u=function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];r.handleSelectedLanguageChange.apply(ge(r),e)};return e.on(["loadstart","texttrackchange"],s),i.addEventListener("change",s),i.addEventListener("selectedlanguagechange",u),r.on("dispose",(function(){e.off(["loadstart","texttrackchange"],s),i.removeEventListener("change",s),i.removeEventListener("selectedlanguagechange",u)})),void 0===i.onchange&&r.on(["tap","click"],(function(){if("object"!=typeof window.Event)try{a=new window.Event("change")}catch(t){}a||(a=document.createEvent("Event")).initEvent("change",!0,!0),i.dispatchEvent(a)})),r.handleTracksChange(),r}me(e,t);var n=e.prototype;return n.handleClick=function(e){var n=this.track,r=this.player_.textTracks();if(t.prototype.handleClick.call(this,e),r)for(var o=0;o<r.length;o++){var i=r[o];-1!==this.kinds.indexOf(i.kind)&&(i===n?"showing"!==i.mode&&(i.mode="showing"):"disabled"!==i.mode&&(i.mode="disabled"))}},n.handleTracksChange=function(t){var e="showing"===this.track.mode;e!==this.isSelected_&&this.selected(e)},n.handleSelectedLanguageChange=function(t){if("showing"===this.track.mode){var e=this.player_.cache_.selectedLanguage;if(e&&e.enabled&&e.language===this.track.language&&e.kind!==this.track.kind)return;this.player_.cache_.selectedLanguage={enabled:!0,language:this.track.language,kind:this.track.kind}}},n.dispose=function(){this.track=null,t.prototype.dispose.call(this)},e}(eo);ye.registerComponent("TextTrackMenuItem",no);var ro=function(t){function e(e,n){return n.track={player:e,kind:n.kind,kinds:n.kinds,default:!1,mode:"disabled"},n.kinds||(n.kinds=[n.kind]),n.label?n.track.label=n.label:n.track.label=n.kinds.join(" and ")+" off",n.selectable=!0,n.multiSelectable=!1,t.call(this,e,n)||this}me(e,t);var n=e.prototype;return n.handleTracksChange=function(t){for(var e=this.player().textTracks(),n=!0,r=0,o=e.length;r<o;r++){var i=e[r];if(this.options_.kinds.indexOf(i.kind)>-1&&"showing"===i.mode){n=!1;break}}n!==this.isSelected_&&this.selected(n)},n.handleSelectedLanguageChange=function(t){for(var e=this.player().textTracks(),n=!0,r=0,o=e.length;r<o;r++){var i=e[r];if(["captions","descriptions","subtitles"].indexOf(i.kind)>-1&&"showing"===i.mode){n=!1;break}}n&&(this.player_.cache_.selectedLanguage={enabled:!1})},e}(no);ye.registerComponent("OffTextTrackMenuItem",ro);var oo=function(t){function e(e,n){return void 0===n&&(n={}),n.tracks=e.textTracks(),t.call(this,e,n)||this}return me(e,t),e.prototype.createItems=function(t,e){var n;void 0===t&&(t=[]),void 0===e&&(e=no),this.label_&&(n=this.label_+" off"),t.push(new ro(this.player_,{kinds:this.kinds_,kind:this.kind_,label:n})),this.hideThreshold_+=1;var r=this.player_.textTracks();Array.isArray(this.kinds_)||(this.kinds_=[this.kind_]);for(var o=0;o<r.length;o++){var i=r[o];if(this.kinds_.indexOf(i.kind)>-1){var a=new e(this.player_,{track:i,kinds:this.kinds_,kind:this.kind_,selectable:!0,multiSelectable:!1});a.addClass("vjs-"+i.kind+"-menu-item"),t.push(a)}}return t},e}(Zr);ye.registerComponent("TextTrackButton",oo);var io=function(t){function e(e,n){var r,o=n.track,i=n.cue,a=e.currentTime();return n.selectable=!0,n.multiSelectable=!1,n.label=i.text,n.selected=i.startTime<=a&&a<i.endTime,(r=t.call(this,e,n)||this).track=o,r.cue=i,o.addEventListener("cuechange",Xt(ge(r),r.update)),r}me(e,t);var n=e.prototype;return n.handleClick=function(e){t.prototype.handleClick.call(this),this.player_.currentTime(this.cue.startTime),this.update(this.cue.startTime)},n.update=function(t){var e=this.cue,n=this.player_.currentTime();this.selected(e.startTime<=n&&n<e.endTime)},e}(eo);ye.registerComponent("ChaptersTrackMenuItem",io);var ao=function(t){function e(e,n,r){return t.call(this,e,n,r)||this}me(e,t);var n=e.prototype;return n.buildCSSClass=function(){return"vjs-chapters-button "+t.prototype.buildCSSClass.call(this)},n.buildWrapperCSSClass=function(){return"vjs-chapters-button "+t.prototype.buildWrapperCSSClass.call(this)},n.update=function(e){this.track_&&(!e||"addtrack"!==e.type&&"removetrack"!==e.type)||this.setTrack(this.findChaptersTrack()),t.prototype.update.call(this)},n.setTrack=function(t){if(this.track_!==t){if(this.updateHandler_||(this.updateHandler_=this.update.bind(this)),this.track_){var e=this.player_.remoteTextTrackEls().getTrackElementByTrack_(this.track_);e&&e.removeEventListener("load",this.updateHandler_),this.track_=null}if(this.track_=t,this.track_){this.track_.mode="hidden";var n=this.player_.remoteTextTrackEls().getTrackElementByTrack_(this.track_);n&&n.addEventListener("load",this.updateHandler_)}}},n.findChaptersTrack=function(){for(var t=this.player_.textTracks()||[],e=t.length-1;e>=0;e--){var n=t[e];if(n.kind===this.kind_)return n}},n.getMenuCaption=function(){return this.track_&&this.track_.label?this.track_.label:this.localize(le(this.kind_))},n.createMenu=function(){return this.options_.title=this.getMenuCaption(),t.prototype.createMenu.call(this)},n.createItems=function(){var t=[];if(!this.track_)return t;var e=this.track_.cues;if(!e)return t;for(var n=0,r=e.length;n<r;n++){var o=e[n],i=new io(this.player_,{track:this.track_,cue:o});t.push(i)}return t},e}(oo);ao.prototype.kind_="chapters",ao.prototype.controlText_="Chapters",ye.registerComponent("ChaptersButton",ao);var so=function(t){function e(e,n,r){var o;o=t.call(this,e,n,r)||this;var i=e.textTracks(),a=Xt(ge(o),o.handleTracksChange);return i.addEventListener("change",a),o.on("dispose",(function(){i.removeEventListener("change",a)})),o}me(e,t);var n=e.prototype;return n.handleTracksChange=function(t){for(var e=this.player().textTracks(),n=!1,r=0,o=e.length;r<o;r++){var i=e[r];if(i.kind!==this.kind_&&"showing"===i.mode){n=!0;break}}n?this.disable():this.enable()},n.buildCSSClass=function(){return"vjs-descriptions-button "+t.prototype.buildCSSClass.call(this)},n.buildWrapperCSSClass=function(){return"vjs-descriptions-button "+t.prototype.buildWrapperCSSClass.call(this)},e}(oo);so.prototype.kind_="descriptions",so.prototype.controlText_="Descriptions",ye.registerComponent("DescriptionsButton",so);var uo=function(t){function e(e,n,r){return t.call(this,e,n,r)||this}me(e,t);var n=e.prototype;return n.buildCSSClass=function(){return"vjs-subtitles-button "+t.prototype.buildCSSClass.call(this)},n.buildWrapperCSSClass=function(){return"vjs-subtitles-button "+t.prototype.buildWrapperCSSClass.call(this)},e}(oo);uo.prototype.kind_="subtitles",uo.prototype.controlText_="Subtitles",ye.registerComponent("SubtitlesButton",uo);var co=function(t){function e(e,n){var r;return n.track={player:e,kind:n.kind,label:n.kind+" settings",selectable:!1,default:!1,mode:"disabled"},n.selectable=!1,n.name="CaptionSettingsMenuItem",(r=t.call(this,e,n)||this).addClass("vjs-texttrack-settings"),r.controlText(", opens "+n.kind+" settings dialog"),r}return me(e,t),e.prototype.handleClick=function(t){this.player().getChild("textTrackSettings").open()},e}(no);ye.registerComponent("CaptionSettingsMenuItem",co);var lo=function(t){function e(e,n,r){return t.call(this,e,n,r)||this}me(e,t);var n=e.prototype;return n.buildCSSClass=function(){return"vjs-captions-button "+t.prototype.buildCSSClass.call(this)},n.buildWrapperCSSClass=function(){return"vjs-captions-button "+t.prototype.buildWrapperCSSClass.call(this)},n.createItems=function(){var e=[];return this.player().tech_&&this.player().tech_.featuresNativeTextTracks||!this.player().getChild("textTrackSettings")||(e.push(new co(this.player_,{kind:this.kind_})),this.hideThreshold_+=1),t.prototype.createItems.call(this,e)},e}(oo);lo.prototype.kind_="captions",lo.prototype.controlText_="Captions",ye.registerComponent("CaptionsButton",lo);var fo=function(t){function e(){return t.apply(this,arguments)||this}return me(e,t),e.prototype.createEl=function(e,n,r){var o=t.prototype.createEl.call(this,e,n,r),i=o.querySelector(".vjs-menu-item-text");return"captions"===this.options_.track.kind&&(i.appendChild(Q("span",{className:"vjs-icon-placeholder"},{"aria-hidden":!0})),i.appendChild(Q("span",{className:"vjs-control-text",textContent:" "+this.localize("Captions")}))),o},e}(no);ye.registerComponent("SubsCapsMenuItem",fo);var ho=function(t){function e(e,n){var r;return void 0===n&&(n={}),(r=t.call(this,e,n)||this).label_="subtitles",["en","en-us","en-ca","fr-ca"].indexOf(r.player_.language_)>-1&&(r.label_="captions"),r.menuButton_.controlText(le(r.label_)),r}me(e,t);var n=e.prototype;return n.buildCSSClass=function(){return"vjs-subs-caps-button "+t.prototype.buildCSSClass.call(this)},n.buildWrapperCSSClass=function(){return"vjs-subs-caps-button "+t.prototype.buildWrapperCSSClass.call(this)},n.createItems=function(){var e=[];return this.player().tech_&&this.player().tech_.featuresNativeTextTracks||!this.player().getChild("textTrackSettings")||(e.push(new co(this.player_,{kind:this.label_})),this.hideThreshold_+=1),e=t.prototype.createItems.call(this,e,fo)},e}(oo);ho.prototype.kinds_=["captions","subtitles"],ho.prototype.controlText_="Subtitles",ye.registerComponent("SubsCapsButton",ho);var po=function(t){function e(e,n){var r,o=n.track,i=e.audioTracks();n.label=o.label||o.language||"Unknown",n.selected=o.enabled,(r=t.call(this,e,n)||this).track=o,r.addClass("vjs-"+o.kind+"-menu-item");var a=function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];r.handleTracksChange.apply(ge(r),e)};return i.addEventListener("change",a),r.on("dispose",(function(){i.removeEventListener("change",a)})),r}me(e,t);var n=e.prototype;return n.createEl=function(e,n,r){var o=t.prototype.createEl.call(this,e,n,r),i=o.querySelector(".vjs-menu-item-text");return"main-desc"===this.options_.track.kind&&(i.appendChild(t.prototype.createEl.call(this,"span",{className:"vjs-icon-placeholder"},{"aria-hidden":!0})),i.appendChild(t.prototype.createEl.call(this,"span",{className:"vjs-control-text",textContent:this.localize("Descriptions")}))),o},n.handleClick=function(e){t.prototype.handleClick.call(this,e),this.track.enabled=!0},n.handleTracksChange=function(t){this.selected(this.track.enabled)},e}(eo);ye.registerComponent("AudioTrackMenuItem",po);var vo=function(t){function e(e,n){return void 0===n&&(n={}),n.tracks=e.audioTracks(),t.call(this,e,n)||this}me(e,t);var n=e.prototype;return n.buildCSSClass=function(){return"vjs-audio-button "+t.prototype.buildCSSClass.call(this)},n.buildWrapperCSSClass=function(){return"vjs-audio-button "+t.prototype.buildWrapperCSSClass.call(this)},n.createItems=function(t){void 0===t&&(t=[]),this.hideThreshold_=1;for(var e=this.player_.audioTracks(),n=0;n<e.length;n++){var r=e[n];t.push(new po(this.player_,{track:r,selectable:!0,multiSelectable:!1}))}return t},e}(Zr);vo.prototype.controlText_="Audio Track",ye.registerComponent("AudioTrackButton",vo);var yo=function(t){function e(e,n){var r,o=n.rate,i=parseFloat(o,10);return n.label=o,n.selected=i===e.playbackRate(),n.selectable=!0,n.multiSelectable=!1,(r=t.call(this,e,n)||this).label=o,r.rate=i,r.on(e,"ratechange",(function(t){return r.update(t)})),r}me(e,t);var n=e.prototype;return n.handleClick=function(e){t.prototype.handleClick.call(this),this.player().playbackRate(this.rate)},n.update=function(t){this.selected(this.player().playbackRate()===this.rate)},e}(eo);yo.prototype.contentElType="button",ye.registerComponent("PlaybackRateMenuItem",yo);var go=function(t){function e(e,n){var r;return(r=t.call(this,e,n)||this).menuButton_.el_.setAttribute("aria-describedby",r.labelElId_),r.updateVisibility(),r.updateLabel(),r.on(e,"loadstart",(function(t){return r.updateVisibility(t)})),r.on(e,"ratechange",(function(t){return r.updateLabel(t)})),r.on(e,"playbackrateschange",(function(t){return r.handlePlaybackRateschange(t)})),r}me(e,t);var n=e.prototype;return n.createEl=function(){var e=t.prototype.createEl.call(this);return this.labelElId_="vjs-playback-rate-value-label-"+this.id_,this.labelEl_=Q("div",{className:"vjs-playback-rate-value",id:this.labelElId_,textContent:"1x"}),e.appendChild(this.labelEl_),e},n.dispose=function(){this.labelEl_=null,t.prototype.dispose.call(this)},n.buildCSSClass=function(){return"vjs-playback-rate "+t.prototype.buildCSSClass.call(this)},n.buildWrapperCSSClass=function(){return"vjs-playback-rate "+t.prototype.buildWrapperCSSClass.call(this)},n.createItems=function(){for(var t=this.playbackRates(),e=[],n=t.length-1;n>=0;n--)e.push(new yo(this.player(),{rate:t[n]+"x"}));return e},n.updateARIAAttributes=function(){this.el().setAttribute("aria-valuenow",this.player().playbackRate())},n.handleClick=function(t){for(var e=this.player().playbackRate(),n=this.playbackRates(),r=n[0],o=0;o<n.length;o++)if(n[o]>e){r=n[o];break}this.player().playbackRate(r)},n.handlePlaybackRateschange=function(t){this.update()},n.playbackRates=function(){var t=this.player();return t.playbackRates&&t.playbackRates()||[]},n.playbackRateSupported=function(){return this.player().tech_&&this.player().tech_.featuresPlaybackRate&&this.playbackRates()&&this.playbackRates().length>0},n.updateVisibility=function(t){this.playbackRateSupported()?this.removeClass("vjs-hidden"):this.addClass("vjs-hidden")},n.updateLabel=function(t){this.playbackRateSupported()&&(this.labelEl_.textContent=this.player().playbackRate()+"x")},e}(Qr);go.prototype.controlText_="Playback Rate",ye.registerComponent("PlaybackRateMenuButton",go);var mo=function(t){function e(){return t.apply(this,arguments)||this}me(e,t);var n=e.prototype;return n.buildCSSClass=function(){return"vjs-spacer "+t.prototype.buildCSSClass.call(this)},n.createEl=function(e,n,r){return void 0===e&&(e="div"),void 0===n&&(n={}),void 0===r&&(r={}),n.className||(n.className=this.buildCSSClass()),t.prototype.createEl.call(this,e,n,r)},e}(ye);ye.registerComponent("Spacer",mo);var _o=function(t){function e(){return t.apply(this,arguments)||this}me(e,t);var n=e.prototype;return n.buildCSSClass=function(){return"vjs-custom-control-spacer "+t.prototype.buildCSSClass.call(this)},n.createEl=function(){return t.prototype.createEl.call(this,"div",{className:this.buildCSSClass(),textContent:" "})},e}(mo);ye.registerComponent("CustomControlSpacer",_o);var bo=function(t){function e(){return t.apply(this,arguments)||this}return me(e,t),e.prototype.createEl=function(){return t.prototype.createEl.call(this,"div",{className:"vjs-control-bar",dir:"ltr"})},e}(ye);bo.prototype.options_={children:["playToggle","volumePanel","currentTimeDisplay","timeDivider","durationDisplay","progressControl","liveDisplay","seekToLive","remainingTimeDisplay","customControlSpacer","playbackRateMenuButton","chaptersButton","descriptionsButton","subsCapsButton","audioTrackButton","fullscreenToggle"]},"exitPictureInPicture"in document&&bo.prototype.options_.children.splice(bo.prototype.options_.children.length-1,0,"pictureInPictureToggle"),ye.registerComponent("ControlBar",bo);var wo=function(t){function e(e,n){var r;return(r=t.call(this,e,n)||this).on(e,"error",(function(t){return r.open(t)})),r}me(e,t);var n=e.prototype;return n.buildCSSClass=function(){return"vjs-error-display "+t.prototype.buildCSSClass.call(this)},n.content=function(){var t=this.player().error();return t?this.localize(t.message):""},e}(Re);wo.prototype.options_=y({},Re.prototype.options_,{pauseOnOpen:!1,fillAlways:!0,temporary:!1,uncloseable:!0}),ye.registerComponent("ErrorDisplay",wo);var Eo="vjs-text-track-settings",To=["#000","Black"],So=["#00F","Blue"],Oo=["#0FF","Cyan"],Co=["#0F0","Green"],Po=["#F0F","Magenta"],ko=["#F00","Red"],jo=["#FFF","White"],Ao=["#FF0","Yellow"],xo=["1","Opaque"],Ro=["0.5","Semi-Transparent"],Lo=["0","Transparent"],Io={backgroundColor:{selector:".vjs-bg-color > select",id:"captions-background-color-%s",label:"Color",options:[To,jo,ko,Co,So,Ao,Po,Oo]},backgroundOpacity:{selector:".vjs-bg-opacity > select",id:"captions-background-opacity-%s",label:"Transparency",options:[xo,Ro,Lo]},color:{selector:".vjs-fg-color > select",id:"captions-foreground-color-%s",label:"Color",options:[jo,To,ko,Co,So,Ao,Po,Oo]},edgeStyle:{selector:".vjs-edge-style > select",id:"%s",label:"Text Edge Style",options:[["none","None"],["raised","Raised"],["depressed","Depressed"],["uniform","Uniform"],["dropshadow","Dropshadow"]]},fontFamily:{selector:".vjs-font-family > select",id:"captions-font-family-%s",label:"Font Family",options:[["proportionalSansSerif","Proportional Sans-Serif"],["monospaceSansSerif","Monospace Sans-Serif"],["proportionalSerif","Proportional Serif"],["monospaceSerif","Monospace Serif"],["casual","Casual"],["script","Script"],["small-caps","Small Caps"]]},fontPercent:{selector:".vjs-font-percent > select",id:"captions-font-size-%s",label:"Font Size",options:[["0.50","50%"],["0.75","75%"],["1.00","100%"],["1.25","125%"],["1.50","150%"],["1.75","175%"],["2.00","200%"],["3.00","300%"],["4.00","400%"]],default:2,parser:function(t){return"1.00"===t?null:Number(t)}},textOpacity:{selector:".vjs-text-opacity > select",id:"captions-foreground-opacity-%s",label:"Transparency",options:[xo,Ro]},windowColor:{selector:".vjs-window-color > select",id:"captions-window-color-%s",label:"Color"},windowOpacity:{selector:".vjs-window-opacity > select",id:"captions-window-opacity-%s",label:"Transparency",options:[Lo,Ro,xo]}};function No(t,e){if(e&&(t=e(t)),t&&"none"!==t)return t}Io.windowColor.options=Io.backgroundColor.options;var Mo=function(t){function e(e,n){var r;return n.temporary=!1,(r=t.call(this,e,n)||this).updateDisplay=r.updateDisplay.bind(ge(r)),r.fill(),r.hasBeenOpened_=r.hasBeenFilled_=!0,r.endDialog=Q("p",{className:"vjs-control-text",textContent:r.localize("End of dialog window.")}),r.el().appendChild(r.endDialog),r.setDefaults(),void 0===n.persistTextTrackSettings&&(r.options_.persistTextTrackSettings=r.options_.playerOptions.persistTextTrackSettings),r.on(r.$(".vjs-done-button"),"click",(function(){r.saveSettings(),r.close()})),r.on(r.$(".vjs-default-button"),"click",(function(){r.setDefaults(),r.updateDisplay()})),_(Io,(function(t){r.on(r.$(t.selector),"change",r.updateDisplay)})),r.options_.persistTextTrackSettings&&r.restoreSettings(),r}me(e,t);var n=e.prototype;return n.dispose=function(){this.endDialog=null,t.prototype.dispose.call(this)},n.createElSelect_=function(t,e,n){var r=this;void 0===e&&(e=""),void 0===n&&(n="label");var o=Io[t],i=o.id.replace("%s",this.id_),a=[e,i].join(" ").trim();return["<"+n+' id="'+i+'" class="'+("label"===n?"vjs-label":"")+'">',this.localize(o.label),"</"+n+">",'<select aria-labelledby="'+a+'">'].concat(o.options.map((function(t){var e=i+"-"+t[1].replace(/\W+/g,"");return['<option id="'+e+'" value="'+t[0]+'" ','aria-labelledby="'+a+" "+e+'">',r.localize(t[1]),"</option>"].join("")}))).concat("</select>").join("")},n.createElFgColor_=function(){var t="captions-text-legend-"+this.id_;return['<fieldset class="vjs-fg-color vjs-track-setting">','<legend id="'+t+'">',this.localize("Text"),"</legend>",this.createElSelect_("color",t),'<span class="vjs-text-opacity vjs-opacity">',this.createElSelect_("textOpacity",t),"</span>","</fieldset>"].join("")},n.createElBgColor_=function(){var t="captions-background-"+this.id_;return['<fieldset class="vjs-bg-color vjs-track-setting">','<legend id="'+t+'">',this.localize("Background"),"</legend>",this.createElSelect_("backgroundColor",t),'<span class="vjs-bg-opacity vjs-opacity">',this.createElSelect_("backgroundOpacity",t),"</span>","</fieldset>"].join("")},n.createElWinColor_=function(){var t="captions-window-"+this.id_;return['<fieldset class="vjs-window-color vjs-track-setting">','<legend id="'+t+'">',this.localize("Window"),"</legend>",this.createElSelect_("windowColor",t),'<span class="vjs-window-opacity vjs-opacity">',this.createElSelect_("windowOpacity",t),"</span>","</fieldset>"].join("")},n.createElColors_=function(){return Q("div",{className:"vjs-track-settings-colors",innerHTML:[this.createElFgColor_(),this.createElBgColor_(),this.createElWinColor_()].join("")})},n.createElFont_=function(){return Q("div",{className:"vjs-track-settings-font",innerHTML:['<fieldset class="vjs-font-percent vjs-track-setting">',this.createElSelect_("fontPercent","","legend"),"</fieldset>",'<fieldset class="vjs-edge-style vjs-track-setting">',this.createElSelect_("edgeStyle","","legend"),"</fieldset>",'<fieldset class="vjs-font-family vjs-track-setting">',this.createElSelect_("fontFamily","","legend"),"</fieldset>"].join("")})},n.createElControls_=function(){var t=this.localize("restore all settings to the default values");return Q("div",{className:"vjs-track-settings-controls",innerHTML:['<button type="button" class="vjs-default-button" title="'+t+'">',this.localize("Reset"),'<span class="vjs-control-text"> '+t+"</span>","</button>",'<button type="button" class="vjs-done-button">'+this.localize("Done")+"</button>"].join("")})},n.content=function(){return[this.createElColors_(),this.createElFont_(),this.createElControls_()]},n.label=function(){return this.localize("Caption Settings Dialog")},n.description=function(){return this.localize("Beginning of dialog window. Escape will cancel and close the window.")},n.buildCSSClass=function(){return t.prototype.buildCSSClass.call(this)+" vjs-text-track-settings"},n.getValues=function(){var t,e,n,r=this;return e=function(t,e,n){var o,i,a=(o=r.$(e.selector),i=e.parser,No(o.options[o.options.selectedIndex].value,i));return void 0!==a&&(t[n]=a),t},void 0===(n={})&&(n=0),m(t=Io).reduce((function(n,r){return e(n,t[r],r)}),n)},n.setValues=function(t){var e=this;_(Io,(function(n,r){!function(t,e,n){if(e)for(var r=0;r<t.options.length;r++)if(No(t.options[r].value,n)===e){t.selectedIndex=r;break}}(e.$(n.selector),t[r],n.parser)}))},n.setDefaults=function(){var t=this;_(Io,(function(e){var n=e.hasOwnProperty("default")?e.default:0;t.$(e.selector).selectedIndex=n}))},n.restoreSettings=function(){var t;try{t=JSON.parse(window.localStorage.getItem(Eo))}catch(t){h.warn(t)}t&&this.setValues(t)},n.saveSettings=function(){if(this.options_.persistTextTrackSettings){var t=this.getValues();try{Object.keys(t).length?window.localStorage.setItem(Eo,JSON.stringify(t)):window.localStorage.removeItem(Eo)}catch(t){h.warn(t)}}},n.updateDisplay=function(){var t=this.player_.getChild("textTrackDisplay");t&&t.updateDisplay()},n.conditionalBlur_=function(){this.previouslyActiveEl_=null;var t=this.player_.controlBar,e=t&&t.subsCapsButton,n=t&&t.captionsButton;e?e.focus():n&&n.focus()},e}(Re);ye.registerComponent("TextTrackSettings",Mo);var Do=function(t){function e(e,n){var r,o=n.ResizeObserver||window.ResizeObserver;null===n.ResizeObserver&&(o=!1);var i=fe({createEl:!o,reportTouchActivity:!1},n);return(r=t.call(this,e,i)||this).ResizeObserver=n.ResizeObserver||window.ResizeObserver,r.loadListener_=null,r.resizeObserver_=null,r.debouncedHandler_=function(t,e,n,r){var o;void 0===r&&(r=window);var i=function(){var i=this,a=arguments,s=function(){o=null,s=null,n||t.apply(i,a)};!o&&n&&t.apply(i,a),r.clearTimeout(o),o=r.setTimeout(s,e)};return i.cancel=function(){r.clearTimeout(o),o=null},i}((function(){r.resizeHandler()}),100,!1,ge(r)),o?(r.resizeObserver_=new r.ResizeObserver(r.debouncedHandler_),r.resizeObserver_.observe(e.el())):(r.loadListener_=function(){if(r.el_&&r.el_.contentWindow){var t=r.debouncedHandler_,e=r.unloadListener_=function(){Ut(this,"resize",t),Ut(this,"unload",e),e=null};Vt(r.el_.contentWindow,"unload",e),Vt(r.el_.contentWindow,"resize",t)}},r.one("load",r.loadListener_)),r}me(e,t);var n=e.prototype;return n.createEl=function(){return t.prototype.createEl.call(this,"iframe",{className:"vjs-resize-manager",tabIndex:-1},{"aria-hidden":"true"})},n.resizeHandler=function(){this.player_&&this.player_.trigger&&this.player_.trigger("playerresize")},n.dispose=function(){this.debouncedHandler_&&this.debouncedHandler_.cancel(),this.resizeObserver_&&(this.player_.el()&&this.resizeObserver_.unobserve(this.player_.el()),this.resizeObserver_.disconnect()),this.loadListener_&&this.off("load",this.loadListener_),this.el_&&this.el_.contentWindow&&this.unloadListener_&&this.unloadListener_.call(this.el_.contentWindow),this.ResizeObserver=null,this.resizeObserver=null,this.debouncedHandler_=null,this.loadListener_=null,t.prototype.dispose.call(this)},e}(ye);ye.registerComponent("ResizeManager",Do);var Fo={trackingThreshold:20,liveTolerance:15},Bo=function(t){function e(e,n){var r,o=fe(Fo,n,{createEl:!1});return(r=t.call(this,e,o)||this).handleVisibilityChange_=function(t){return r.handleVisibilityChange(t)},r.trackLiveHandler_=function(){return r.trackLive_()},r.handlePlay_=function(t){return r.handlePlay(t)},r.handleFirstTimeupdate_=function(t){return r.handleFirstTimeupdate(t)},r.handleSeeked_=function(t){return r.handleSeeked(t)},r.seekToLiveEdge_=function(t){return r.seekToLiveEdge(t)},r.reset_(),r.on(r.player_,"durationchange",(function(t){return r.handleDurationchange(t)})),r.one(r.player_,"canplay",(function(){return r.toggleTracking()})),D&&"hidden"in document&&"visibilityState"in document&&r.on(document,"visibilitychange",r.handleVisibilityChange_),r}me(e,t);var n=e.prototype;return n.handleVisibilityChange=function(){this.player_.duration()===1/0&&(document.hidden?this.stopTracking():this.startTracking())},n.trackLive_=function(){var t=this.player_.seekable();if(t&&t.length){var e=Number(window.performance.now().toFixed(4)),n=-1===this.lastTime_?0:(e-this.lastTime_)/1e3;this.lastTime_=e,this.pastSeekEnd_=this.pastSeekEnd()+n;var r=this.liveCurrentTime(),o=this.player_.currentTime(),i=this.player_.paused()||this.seekedBehindLive_||Math.abs(r-o)>this.options_.liveTolerance;this.timeupdateSeen_&&r!==1/0||(i=!1),i!==this.behindLiveEdge_&&(this.behindLiveEdge_=i,this.trigger("liveedgechange"))}},n.handleDurationchange=function(){this.toggleTracking()},n.toggleTracking=function(){this.player_.duration()===1/0&&this.liveWindow()>=this.options_.trackingThreshold?(this.player_.options_.liveui&&this.player_.addClass("vjs-liveui"),this.startTracking()):(this.player_.removeClass("vjs-liveui"),this.stopTracking())},n.startTracking=function(){this.isTracking()||(this.timeupdateSeen_||(this.timeupdateSeen_=this.player_.hasStarted()),this.trackingInterval_=this.setInterval(this.trackLiveHandler_,Kt),this.trackLive_(),this.on(this.player_,["play","pause"],this.trackLiveHandler_),this.timeupdateSeen_?this.on(this.player_,"seeked",this.handleSeeked_):(this.one(this.player_,"play",this.handlePlay_),this.one(this.player_,"timeupdate",this.handleFirstTimeupdate_)))},n.handleFirstTimeupdate=function(){this.timeupdateSeen_=!0,this.on(this.player_,"seeked",this.handleSeeked_)},n.handleSeeked=function(){var t=Math.abs(this.liveCurrentTime()-this.player_.currentTime());this.seekedBehindLive_=this.nextSeekedFromUser_&&t>2,this.nextSeekedFromUser_=!1,this.trackLive_()},n.handlePlay=function(){this.one(this.player_,"timeupdate",this.seekToLiveEdge_)},n.reset_=function(){this.lastTime_=-1,this.pastSeekEnd_=0,this.lastSeekEnd_=-1,this.behindLiveEdge_=!0,this.timeupdateSeen_=!1,this.seekedBehindLive_=!1,this.nextSeekedFromUser_=!1,this.clearInterval(this.trackingInterval_),this.trackingInterval_=null,this.off(this.player_,["play","pause"],this.trackLiveHandler_),this.off(this.player_,"seeked",this.handleSeeked_),this.off(this.player_,"play",this.handlePlay_),this.off(this.player_,"timeupdate",this.handleFirstTimeupdate_),this.off(this.player_,"timeupdate",this.seekToLiveEdge_)},n.nextSeekedFromUser=function(){this.nextSeekedFromUser_=!0},n.stopTracking=function(){this.isTracking()&&(this.reset_(),this.trigger("liveedgechange"))},n.seekableEnd=function(){for(var t=this.player_.seekable(),e=[],n=t?t.length:0;n--;)e.push(t.end(n));return e.length?e.sort()[e.length-1]:1/0},n.seekableStart=function(){for(var t=this.player_.seekable(),e=[],n=t?t.length:0;n--;)e.push(t.start(n));return e.length?e.sort()[0]:0},n.liveWindow=function(){var t=this.liveCurrentTime();return t===1/0?0:t-this.seekableStart()},n.isLive=function(){return this.isTracking()},n.atLiveEdge=function(){return!this.behindLiveEdge()},n.liveCurrentTime=function(){return this.pastSeekEnd()+this.seekableEnd()},n.pastSeekEnd=function(){var t=this.seekableEnd();return-1!==this.lastSeekEnd_&&t!==this.lastSeekEnd_&&(this.pastSeekEnd_=0),this.lastSeekEnd_=t,this.pastSeekEnd_},n.behindLiveEdge=function(){return this.behindLiveEdge_},n.isTracking=function(){return"number"==typeof this.trackingInterval_},n.seekToLiveEdge=function(){this.seekedBehindLive_=!1,this.atLiveEdge()||(this.nextSeekedFromUser_=!1,this.player_.currentTime(this.liveCurrentTime()))},n.dispose=function(){this.off(document,"visibilitychange",this.handleVisibilityChange_),this.stopTracking(),t.prototype.dispose.call(this)},e}(ye);ye.registerComponent("LiveTracker",Bo);var Vo,Uo=function(t){var e=t.el();if(e.hasAttribute("src"))return t.triggerSourceset(e.src),!0;var n=t.$$("source"),r=[],o="";if(!n.length)return!1;for(var i=0;i<n.length;i++){var a=n[i].src;a&&-1===r.indexOf(a)&&r.push(a)}return!!r.length&&(1===r.length&&(o=r[0]),t.triggerSourceset(o),!0)},Ho=Object.defineProperty({},"innerHTML",{get:function(){return this.cloneNode(!0).innerHTML},set:function(t){var e=document.createElement(this.nodeName.toLowerCase());e.innerHTML=t;for(var n=document.createDocumentFragment();e.childNodes.length;)n.appendChild(e.childNodes[0]);return this.innerText="",window.Element.prototype.appendChild.call(this,n),this.innerHTML}}),Yo=function(t,e){for(var n={},r=0;r<t.length&&!((n=Object.getOwnPropertyDescriptor(t[r],e))&&n.set&&n.get);r++);return n.enumerable=!0,n.configurable=!0,n},zo=function(t){var e=t.el();if(!e.resetSourceWatch_){var n={},r=function(t){return Yo([t.el(),window.HTMLMediaElement.prototype,window.Element.prototype,Ho],"innerHTML")}(t),o=function(n){return function(){for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];var a=n.apply(e,o);return Uo(t),a}};["append","appendChild","insertAdjacentHTML"].forEach((function(t){e[t]&&(n[t]=e[t],e[t]=o(n[t]))})),Object.defineProperty(e,"innerHTML",fe(r,{set:o(r.set)})),e.resetSourceWatch_=function(){e.resetSourceWatch_=null,Object.keys(n).forEach((function(t){e[t]=n[t]})),Object.defineProperty(e,"innerHTML",r)},t.one("sourceset",e.resetSourceWatch_)}},Wo=Object.defineProperty({},"src",{get:function(){return this.hasAttribute("src")?Xe(window.Element.prototype.getAttribute.call(this,"src")):""},set:function(t){return window.Element.prototype.setAttribute.call(this,"src",t),t}}),Go=function(t){if(t.featuresSourceset){var e=t.el();if(!e.resetSourceset_){var n=function(t){return Yo([t.el(),window.HTMLMediaElement.prototype,Wo],"src")}(t),r=e.setAttribute,o=e.load;Object.defineProperty(e,"src",fe(n,{set:function(r){var o=n.set.call(e,r);return t.triggerSourceset(e.src),o}})),e.setAttribute=function(n,o){var i=r.call(e,n,o);return/src/i.test(n)&&t.triggerSourceset(e.src),i},e.load=function(){var n=o.call(e);return Uo(t)||(t.triggerSourceset(""),zo(t)),n},e.currentSrc?t.triggerSourceset(e.currentSrc):Uo(t)||zo(t),e.resetSourceset_=function(){e.resetSourceset_=null,e.load=o,e.setAttribute=r,Object.defineProperty(e,"src",n),e.resetSourceWatch_&&e.resetSourceWatch_()}}}},Ko=function(t,e,n,r){void 0===r&&(r=!0);var o=function(n){return Object.defineProperty(t,e,{value:n,enumerable:!0,writable:!0})},i={configurable:!0,enumerable:!0,get:function(){var t=n();return o(t),t}};return r&&(i.set=o),Object.defineProperty(t,e,i)},Xo=function(t){function e(e,n){var r;r=t.call(this,e,n)||this;var o=e.source,i=!1;if(o&&(r.el_.currentSrc!==o.src||e.tag&&3===e.tag.initNetworkState_)?r.setSource(o):r.handleLateInit_(r.el_),e.enableSourceset&&r.setupSourcesetHandling_(),r.isScrubbing_=!1,r.el_.hasChildNodes()){for(var a=r.el_.childNodes,s=a.length,u=[];s--;){var c=a[s];"track"===c.nodeName.toLowerCase()&&(r.featuresNativeTextTracks?(r.remoteTextTrackEls().addTrackElement_(c),r.remoteTextTracks().addTrack(c.track),r.textTracks().addTrack(c.track),i||r.el_.hasAttribute("crossorigin")||!$e(c.src)||(i=!0)):u.push(c))}for(var l=0;l<u.length;l++)r.el_.removeChild(u[l])}return r.proxyNativeTracks_(),r.featuresNativeTextTracks&&i&&h.warn("Text Tracks are being loaded from another origin but the crossorigin attribute isn't used.\nThis may prevent text tracks from loading."),r.restoreMetadataTracksInIOSNativePlayer_(),(V||H||R)&&!0===e.nativeControlsForTouch&&r.setControls(!0),r.proxyWebkitFullscreen_(),r.triggerReady(),r}me(e,t);var n=e.prototype;return n.dispose=function(){this.el_&&this.el_.resetSourceset_&&this.el_.resetSourceset_(),e.disposeMediaElement(this.el_),this.options_=null,t.prototype.dispose.call(this)},n.setupSourcesetHandling_=function(){Go(this)},n.restoreMetadataTracksInIOSNativePlayer_=function(){var t,e=this.textTracks(),n=function(){t=[];for(var n=0;n<e.length;n++){var r=e[n];"metadata"===r.kind&&t.push({track:r,storedMode:r.mode})}};n(),e.addEventListener("change",n),this.on("dispose",(function(){return e.removeEventListener("change",n)}));var r=function n(){for(var r=0;r<t.length;r++){var o=t[r];"disabled"===o.track.mode&&o.track.mode!==o.storedMode&&(o.track.mode=o.storedMode)}e.removeEventListener("change",n)};this.on("webkitbeginfullscreen",(function(){e.removeEventListener("change",n),e.removeEventListener("change",r),e.addEventListener("change",r)})),this.on("webkitendfullscreen",(function(){e.removeEventListener("change",n),e.addEventListener("change",n),e.removeEventListener("change",r)}))},n.overrideNative_=function(t,e){var n=this;if(e===this["featuresNative"+t+"Tracks"]){var r=t.toLowerCase();this[r+"TracksListeners_"]&&Object.keys(this[r+"TracksListeners_"]).forEach((function(t){n.el()[r+"Tracks"].removeEventListener(t,n[r+"TracksListeners_"][t])})),this["featuresNative"+t+"Tracks"]=!e,this[r+"TracksListeners_"]=null,this.proxyNativeTracksForType_(r)}},n.overrideNativeAudioTracks=function(t){this.overrideNative_("Audio",t)},n.overrideNativeVideoTracks=function(t){this.overrideNative_("Video",t)},n.proxyNativeTracksForType_=function(t){var e=this,n=dn[t],r=this.el()[n.getterName],o=this[n.getterName]();if(this["featuresNative"+n.capitalName+"Tracks"]&&r&&r.addEventListener){var i={change:function(n){var r={type:"change",target:o,currentTarget:o,srcElement:o};o.trigger(r),"text"===t&&e[vn.remoteText.getterName]().trigger(r)},addtrack:function(t){o.addTrack(t.track)},removetrack:function(t){o.removeTrack(t.track)}},a=function(){for(var t=[],e=0;e<o.length;e++){for(var n=!1,i=0;i<r.length;i++)if(r[i]===o[e]){n=!0;break}n||t.push(o[e])}for(;t.length;)o.removeTrack(t.shift())};this[n.getterName+"Listeners_"]=i,Object.keys(i).forEach((function(t){var n=i[t];r.addEventListener(t,n),e.on("dispose",(function(e){return r.removeEventListener(t,n)}))})),this.on("loadstart",a),this.on("dispose",(function(t){return e.off("loadstart",a)}))}},n.proxyNativeTracks_=function(){var t=this;dn.names.forEach((function(e){t.proxyNativeTracksForType_(e)}))},n.createEl=function(){var t=this.options_.tag;if(!t||!this.options_.playerElIngest&&!this.movingMediaElementInDOM){if(t){var n=t.cloneNode(!0);t.parentNode&&t.parentNode.insertBefore(n,t),e.disposeMediaElement(t),t=n}else{t=document.createElement("video");var r=fe({},this.options_.tag&&at(this.options_.tag));V&&!0===this.options_.nativeControlsForTouch||delete r.controls,it(t,b(r,{id:this.options_.techId,class:"vjs-tech"}))}t.playerId=this.options_.playerId}void 0!==this.options_.preload&&ut(t,"preload",this.options_.preload),void 0!==this.options_.disablePictureInPicture&&(t.disablePictureInPicture=this.options_.disablePictureInPicture);for(var o=["loop","muted","playsinline","autoplay"],i=0;i<o.length;i++){var a=o[i],s=this.options_[a];void 0!==s&&(s?ut(t,a,a):ct(t,a),t[a]=s)}return t},n.handleLateInit_=function(t){if(0!==t.networkState&&3!==t.networkState){if(0===t.readyState){var e=!1,n=function(){e=!0};this.on("loadstart",n);var r=function(){e||this.trigger("loadstart")};return this.on("loadedmetadata",r),void this.ready((function(){this.off("loadstart",n),this.off("loadedmetadata",r),e||this.trigger("loadstart")}))}var o=["loadstart"];o.push("loadedmetadata"),t.readyState>=2&&o.push("loadeddata"),t.readyState>=3&&o.push("canplay"),t.readyState>=4&&o.push("canplaythrough"),this.ready((function(){o.forEach((function(t){this.trigger(t)}),this)}))}},n.setScrubbing=function(t){this.isScrubbing_=t},n.scrubbing=function(){return this.isScrubbing_},n.setCurrentTime=function(t){try{this.isScrubbing_&&this.el_.fastSeek&&z?this.el_.fastSeek(t):this.el_.currentTime=t}catch(t){h(t,"Video is not ready. (Video.js)")}},n.duration=function(){var t=this;return this.el_.duration===1/0&&A&&N&&0===this.el_.currentTime?(this.on("timeupdate",(function e(){t.el_.currentTime>0&&(t.el_.duration===1/0&&t.trigger("durationchange"),t.off("timeupdate",e))})),NaN):this.el_.duration||NaN},n.width=function(){return this.el_.offsetWidth},n.height=function(){return this.el_.offsetHeight},n.proxyWebkitFullscreen_=function(){var t=this;if("webkitDisplayingFullscreen"in this.el_){var e=function(){this.trigger("fullscreenchange",{isFullscreen:!1})},n=function(){"webkitPresentationMode"in this.el_&&"picture-in-picture"!==this.el_.webkitPresentationMode&&(this.one("webkitendfullscreen",e),this.trigger("fullscreenchange",{isFullscreen:!0,nativeIOSFullscreen:!0}))};this.on("webkitbeginfullscreen",n),this.on("dispose",(function(){t.off("webkitbeginfullscreen",n),t.off("webkitendfullscreen",e)}))}},n.supportsFullScreen=function(){if("function"==typeof this.el_.webkitEnterFullScreen){var t=window.navigator&&window.navigator.userAgent||"";if(/Android/.test(t)||!/Chrome|Mac OS X 10.5/.test(t))return!0}return!1},n.enterFullScreen=function(){var t=this.el_;if(t.paused&&t.networkState<=t.HAVE_METADATA)Pe(this.el_.play()),this.setTimeout((function(){t.pause();try{t.webkitEnterFullScreen()}catch(t){this.trigger("fullscreenerror",t)}}),0);else try{t.webkitEnterFullScreen()}catch(t){this.trigger("fullscreenerror",t)}},n.exitFullScreen=function(){this.el_.webkitDisplayingFullscreen?this.el_.webkitExitFullScreen():this.trigger("fullscreenerror",new Error("The video is not fullscreen"))},n.requestPictureInPicture=function(){return this.el_.requestPictureInPicture()},n.src=function(t){if(void 0===t)return this.el_.src;this.setSrc(t)},n.reset=function(){e.resetMediaElement(this.el_)},n.currentSrc=function(){return this.currentSource_?this.currentSource_.src:this.el_.currentSrc},n.setControls=function(t){this.el_.controls=!!t},n.addTextTrack=function(e,n,r){return this.featuresNativeTextTracks?this.el_.addTextTrack(e,n,r):t.prototype.addTextTrack.call(this,e,n,r)},n.createRemoteTextTrack=function(e){if(!this.featuresNativeTextTracks)return t.prototype.createRemoteTextTrack.call(this,e);var n=document.createElement("track");return e.kind&&(n.kind=e.kind),e.label&&(n.label=e.label),(e.language||e.srclang)&&(n.srclang=e.language||e.srclang),e.default&&(n.default=e.default),e.id&&(n.id=e.id),e.src&&(n.src=e.src),n},n.addRemoteTextTrack=function(e,n){var r=t.prototype.addRemoteTextTrack.call(this,e,n);return this.featuresNativeTextTracks&&this.el().appendChild(r),r},n.removeRemoteTextTrack=function(e){if(t.prototype.removeRemoteTextTrack.call(this,e),this.featuresNativeTextTracks)for(var n=this.$$("track"),r=n.length;r--;)e!==n[r]&&e!==n[r].track||this.el().removeChild(n[r])},n.getVideoPlaybackQuality=function(){if("function"==typeof this.el().getVideoPlaybackQuality)return this.el().getVideoPlaybackQuality();var t={};return void 0!==this.el().webkitDroppedFrameCount&&void 0!==this.el().webkitDecodedFrameCount&&(t.droppedVideoFrames=this.el().webkitDroppedFrameCount,t.totalVideoFrames=this.el().webkitDecodedFrameCount),window.performance&&"function"==typeof window.performance.now?t.creationTime=window.performance.now():window.performance&&window.performance.timing&&"number"==typeof window.performance.timing.navigationStart&&(t.creationTime=window.Date.now()-window.performance.timing.navigationStart),t},e}($n);Ko(Xo,"TEST_VID",(function(){if(X()){var t=document.createElement("video"),e=document.createElement("track");return e.kind="captions",e.srclang="en",e.label="English",t.appendChild(e),t}})),Xo.isSupported=function(){try{Xo.TEST_VID.volume=.5}catch(t){return!1}return!(!Xo.TEST_VID||!Xo.TEST_VID.canPlayType)},Xo.canPlayType=function(t){return Xo.TEST_VID.canPlayType(t)},Xo.canPlaySource=function(t,e){return Xo.canPlayType(t.type)},Xo.canControlVolume=function(){try{var t=Xo.TEST_VID.volume;return Xo.TEST_VID.volume=t/2+.1,t!==Xo.TEST_VID.volume}catch(t){return!1}},Xo.canMuteVolume=function(){try{var t=Xo.TEST_VID.muted;return Xo.TEST_VID.muted=!t,Xo.TEST_VID.muted?ut(Xo.TEST_VID,"muted","muted"):ct(Xo.TEST_VID,"muted"),t!==Xo.TEST_VID.muted}catch(t){return!1}},Xo.canControlPlaybackRate=function(){if(A&&N&&M<58)return!1;try{var t=Xo.TEST_VID.playbackRate;return Xo.TEST_VID.playbackRate=t/2+.1,t!==Xo.TEST_VID.playbackRate}catch(t){return!1}},Xo.canOverrideAttributes=function(){try{var t=function(){};Object.defineProperty(document.createElement("video"),"src",{get:t,set:t}),Object.defineProperty(document.createElement("audio"),"src",{get:t,set:t}),Object.defineProperty(document.createElement("video"),"innerHTML",{get:t,set:t}),Object.defineProperty(document.createElement("audio"),"innerHTML",{get:t,set:t})}catch(t){return!1}return!0},Xo.supportsNativeTextTracks=function(){return z||Y&&N},Xo.supportsNativeVideoTracks=function(){return!(!Xo.TEST_VID||!Xo.TEST_VID.videoTracks)},Xo.supportsNativeAudioTracks=function(){return!(!Xo.TEST_VID||!Xo.TEST_VID.audioTracks)},Xo.Events=["loadstart","suspend","abort","error","emptied","stalled","loadedmetadata","loadeddata","canplay","canplaythrough","playing","waiting","seeking","seeked","ended","durationchange","timeupdate","progress","play","pause","ratechange","resize","volumechange"],[["featuresVolumeControl","canControlVolume"],["featuresMuteControl","canMuteVolume"],["featuresPlaybackRate","canControlPlaybackRate"],["featuresSourceset","canOverrideAttributes"],["featuresNativeTextTracks","supportsNativeTextTracks"],["featuresNativeVideoTracks","supportsNativeVideoTracks"],["featuresNativeAudioTracks","supportsNativeAudioTracks"]].forEach((function(t){var e=t[0],n=t[1];Ko(Xo.prototype,e,(function(){return Xo[n]()}),!0)})),Xo.prototype.movingMediaElementInDOM=!Y,Xo.prototype.featuresFullscreenResize=!0,Xo.prototype.featuresProgressEvents=!0,Xo.prototype.featuresTimeupdateEvents=!0,Xo.patchCanPlayType=function(){x>=4&&!L&&!N&&(Vo=Xo.TEST_VID&&Xo.TEST_VID.constructor.prototype.canPlayType,Xo.TEST_VID.constructor.prototype.canPlayType=function(t){return t&&/^application\/(?:x-|vnd\.apple\.)mpegurl/i.test(t)?"maybe":Vo.call(this,t)})},Xo.unpatchCanPlayType=function(){var t=Xo.TEST_VID.constructor.prototype.canPlayType;return Vo&&(Xo.TEST_VID.constructor.prototype.canPlayType=Vo),t},Xo.patchCanPlayType(),Xo.disposeMediaElement=function(t){if(t){for(t.parentNode&&t.parentNode.removeChild(t);t.hasChildNodes();)t.removeChild(t.firstChild);t.removeAttribute("src"),"function"==typeof t.load&&function(){try{t.load()}catch(t){}}()}},Xo.resetMediaElement=function(t){if(t){for(var e=t.querySelectorAll("source"),n=e.length;n--;)t.removeChild(e[n]);t.removeAttribute("src"),"function"==typeof t.load&&function(){try{t.load()}catch(t){}}()}},["muted","defaultMuted","autoplay","controls","loop","playsinline"].forEach((function(t){Xo.prototype[t]=function(){return this.el_[t]||this.el_.hasAttribute(t)}})),["muted","defaultMuted","autoplay","loop","playsinline"].forEach((function(t){Xo.prototype["set"+le(t)]=function(e){this.el_[t]=e,e?this.el_.setAttribute(t,t):this.el_.removeAttribute(t)}})),["paused","currentTime","buffered","volume","poster","preload","error","seeking","seekable","ended","playbackRate","defaultPlaybackRate","disablePictureInPicture","played","networkState","readyState","videoWidth","videoHeight","crossOrigin"].forEach((function(t){Xo.prototype[t]=function(){return this.el_[t]}})),["volume","src","poster","preload","playbackRate","defaultPlaybackRate","disablePictureInPicture","crossOrigin"].forEach((function(t){Xo.prototype["set"+le(t)]=function(e){this.el_[t]=e}})),["pause","load","play"].forEach((function(t){Xo.prototype[t]=function(){return this.el_[t]()}})),$n.withSourceHandlers(Xo),Xo.nativeSourceHandler={},Xo.nativeSourceHandler.canPlayType=function(t){try{return Xo.TEST_VID.canPlayType(t)}catch(t){return""}},Xo.nativeSourceHandler.canHandleSource=function(t,e){if(t.type)return Xo.nativeSourceHandler.canPlayType(t.type);if(t.src){var n=qe(t.src);return Xo.nativeSourceHandler.canPlayType("video/"+n)}return""},Xo.nativeSourceHandler.handleSource=function(t,e,n){e.setSrc(t.src)},Xo.nativeSourceHandler.dispose=function(){},Xo.registerSourceHandler(Xo.nativeSourceHandler),$n.registerTech("Html5",Xo);var qo=["progress","abort","suspend","emptied","stalled","loadedmetadata","loadeddata","timeupdate","resize","volumechange","texttrackchange"],$o={canplay:"CanPlay",canplaythrough:"CanPlayThrough",playing:"Playing",seeked:"Seeked"},Jo=["tiny","xsmall","small","medium","large","xlarge","huge"],Qo={};Jo.forEach((function(t){var e="x"===t.charAt(0)?"x-"+t.substring(1):t;Qo[t]="vjs-layout-"+e}));var Zo={tiny:210,xsmall:320,small:425,medium:768,large:1440,xlarge:2560,huge:1/0},ti=function(t){function e(r,o,i){var s;if(r.id=r.id||o.id||"vjs_video_"+Lt(),(o=b(e.getTagSettings(r),o)).initChildren=!1,o.createEl=!1,o.evented=!1,o.reportTouchActivity=!1,!o.language)if("function"==typeof r.closest){var u=r.closest("[lang]");u&&u.getAttribute&&(o.language=u.getAttribute("lang"))}else for(var c=r;c&&1===c.nodeType;){if(at(c).hasOwnProperty("lang")){o.language=c.getAttribute("lang");break}c=c.parentNode}if((s=t.call(this,null,o,i)||this).boundDocumentFullscreenChange_=function(t){return s.documentFullscreenChange_(t)},s.boundFullWindowOnEscKey_=function(t){return s.fullWindowOnEscKey(t)},s.boundUpdateStyleEl_=function(t){return s.updateStyleEl_(t)},s.boundApplyInitTime_=function(t){return s.applyInitTime_(t)},s.boundUpdateCurrentBreakpoint_=function(t){return s.updateCurrentBreakpoint_(t)},s.boundHandleTechClick_=function(t){return s.handleTechClick_(t)},s.boundHandleTechDoubleClick_=function(t){return s.handleTechDoubleClick_(t)},s.boundHandleTechTouchStart_=function(t){return s.handleTechTouchStart_(t)},s.boundHandleTechTouchMove_=function(t){return s.handleTechTouchMove_(t)},s.boundHandleTechTouchEnd_=function(t){return s.handleTechTouchEnd_(t)},s.boundHandleTechTap_=function(t){return s.handleTechTap_(t)},s.isFullscreen_=!1,s.log=p(s.id_),s.fsApi_=a,s.isPosterFromTech_=!1,s.queuedCallbacks_=[],s.isReady_=!1,s.hasStarted_=!1,s.userActive_=!1,s.debugEnabled_=!1,!s.options_||!s.options_.techOrder||!s.options_.techOrder.length)throw new Error("No techOrder specified. Did you overwrite videojs.options instead of just changing the properties you want to override?");if(s.tag=r,s.tagAttributes=r&&at(r),s.language(s.options_.language),o.languages){var l={};Object.getOwnPropertyNames(o.languages).forEach((function(t){l[t.toLowerCase()]=o.languages[t]})),s.languages_=l}else s.languages_=e.prototype.options_.languages;s.resetCache_(),s.poster_=o.poster||"",s.controls_=!!o.controls,r.controls=!1,r.removeAttribute("controls"),s.changingSrc_=!1,s.playCallbacks_=[],s.playTerminatedQueue_=[],r.hasAttribute("autoplay")?s.autoplay(!0):s.autoplay(s.options_.autoplay),o.plugins&&Object.keys(o.plugins).forEach((function(t){if("function"!=typeof s[t])throw new Error('plugin "'+t+'" does not exist')})),s.scrubbing_=!1,s.el_=s.createEl(),ae(ge(s),{eventBusKey:"el_"}),s.fsApi_.requestFullscreen&&(Vt(document,s.fsApi_.fullscreenchange,s.boundDocumentFullscreenChange_),s.on(s.fsApi_.fullscreenchange,s.boundDocumentFullscreenChange_)),s.fluid_&&s.on(["playerreset","resize"],s.boundUpdateStyleEl_);var f=fe(s.options_);o.plugins&&Object.keys(o.plugins).forEach((function(t){s[t](o.plugins[t])})),o.debug&&s.debug(!0),s.options_.playerOptions=f,s.middleware_=[],s.playbackRates(o.playbackRates),s.initChildren(),s.isAudio("audio"===r.nodeName.toLowerCase()),s.controls()?s.addClass("vjs-controls-enabled"):s.addClass("vjs-controls-disabled"),s.el_.setAttribute("role","region"),s.isAudio()?s.el_.setAttribute("aria-label",s.localize("Audio Player")):s.el_.setAttribute("aria-label",s.localize("Video Player")),s.isAudio()&&s.addClass("vjs-audio"),s.flexNotSupported_()&&s.addClass("vjs-no-flex"),V&&s.addClass("vjs-touch-enabled"),Y||s.addClass("vjs-workinghover"),e.players[s.id_]=ge(s);var h=n.split(".")[0];return s.addClass("vjs-v"+h),s.userActive(!0),s.reportUserActivity(),s.one("play",(function(t){return s.listenForUserActivity_(t)})),s.on("stageclick",(function(t){return s.handleStageClick_(t)})),s.on("keydown",(function(t){return s.handleKeyDown(t)})),s.on("languagechange",(function(t){return s.handleLanguagechange(t)})),s.breakpoints(s.options_.breakpoints),s.responsive(s.options_.responsive),s}me(e,t);var r=e.prototype;return r.dispose=function(){var n=this;this.trigger("dispose"),this.off("dispose"),Ut(document,this.fsApi_.fullscreenchange,this.boundDocumentFullscreenChange_),Ut(document,"keydown",this.boundFullWindowOnEscKey_),this.styleEl_&&this.styleEl_.parentNode&&(this.styleEl_.parentNode.removeChild(this.styleEl_),this.styleEl_=null),e.players[this.id_]=null,this.tag&&this.tag.player&&(this.tag.player=null),this.el_&&this.el_.player&&(this.el_.player=null),this.tech_&&(this.tech_.dispose(),this.isPosterFromTech_=!1,this.poster_=""),this.playerElIngest_&&(this.playerElIngest_=null),this.tag&&(this.tag=null),Qn[this.id()]=null,yn.names.forEach((function(t){var e=yn[t],r=n[e.getterName]();r&&r.off&&r.off()})),t.prototype.dispose.call(this)},r.createEl=function(){var e,n=this.tag,r=this.playerElIngest_=n.parentNode&&n.parentNode.hasAttribute&&n.parentNode.hasAttribute("data-vjs-player"),o="video-js"===this.tag.tagName.toLowerCase();r?e=this.el_=n.parentNode:o||(e=this.el_=t.prototype.createEl.call(this,"div"));var i=at(n);if(o){for(e=this.el_=n,n=this.tag=document.createElement("video");e.children.length;)n.appendChild(e.firstChild);et(e,"video-js")||nt(e,"video-js"),e.appendChild(n),r=this.playerElIngest_=e,Object.keys(e).forEach((function(t){try{n[t]=e[t]}catch(t){}}))}if(n.setAttribute("tabindex","-1"),i.tabindex="-1",(D||N&&B)&&(n.setAttribute("role","application"),i.role="application"),n.removeAttribute("width"),n.removeAttribute("height"),"width"in i&&delete i.width,"height"in i&&delete i.height,Object.getOwnPropertyNames(i).forEach((function(t){o&&"class"===t||e.setAttribute(t,i[t]),o&&n.setAttribute(t,i[t])})),n.playerId=n.id,n.id+="_html5_api",n.className="vjs-tech",n.player=e.player=this,this.addClass("vjs-paused"),!0!==window.VIDEOJS_NO_DYNAMIC_STYLE){this.styleEl_=At("vjs-styles-dimensions");var a=Et(".vjs-styles-defaults"),s=Et("head");s.insertBefore(this.styleEl_,a?a.nextSibling:s.firstChild)}this.fill_=!1,this.fluid_=!1,this.width(this.options_.width),this.height(this.options_.height),this.fill(this.options_.fill),this.fluid(this.options_.fluid),this.aspectRatio(this.options_.aspectRatio),this.crossOrigin(this.options_.crossOrigin||this.options_.crossorigin);for(var u=n.getElementsByTagName("a"),c=0;c<u.length;c++){var l=u.item(c);nt(l,"vjs-hidden"),l.setAttribute("hidden","hidden")}return n.initNetworkState_=n.networkState,n.parentNode&&!r&&n.parentNode.insertBefore(e,n),tt(n,e),this.children_.unshift(n),this.el_.setAttribute("lang",this.language_),this.el_.setAttribute("translate","no"),this.el_=e,e},r.crossOrigin=function(t){if(!t)return this.techGet_("crossOrigin");"anonymous"===t||"use-credentials"===t?this.techCall_("setCrossOrigin",t):h.warn('crossOrigin must be "anonymous" or "use-credentials", given "'+t+'"')},r.width=function(t){return this.dimension("width",t)},r.height=function(t){return this.dimension("height",t)},r.dimension=function(t,e){var n=t+"_";if(void 0===e)return this[n]||0;if(""===e||"auto"===e)return this[n]=void 0,void this.updateStyleEl_();var r=parseFloat(e);isNaN(r)?h.error('Improper value "'+e+'" supplied for for '+t):(this[n]=r,this.updateStyleEl_())},r.fluid=function(t){var e,n,r=this;if(void 0===t)return!!this.fluid_;this.fluid_=!!t,Qt(this)&&this.off(["playerreset","resize"],this.boundUpdateStyleEl_),t?(this.addClass("vjs-fluid"),this.fill(!1),n=function(){r.on(["playerreset","resize"],r.boundUpdateStyleEl_)},Qt(e=this)?n():(e.eventedCallbacks||(e.eventedCallbacks=[]),e.eventedCallbacks.push(n))):this.removeClass("vjs-fluid"),this.updateStyleEl_()},r.fill=function(t){if(void 0===t)return!!this.fill_;this.fill_=!!t,t?(this.addClass("vjs-fill"),this.fluid(!1)):this.removeClass("vjs-fill")},r.aspectRatio=function(t){if(void 0===t)return this.aspectRatio_;if(!/^\d+\:\d+$/.test(t))throw new Error("Improper value supplied for aspect ratio. The format should be width:height, for example 16:9.");this.aspectRatio_=t,this.fluid(!0),this.updateStyleEl_()},r.updateStyleEl_=function(){if(!0!==window.VIDEOJS_NO_DYNAMIC_STYLE){var t,e,n,r=(void 0!==this.aspectRatio_&&"auto"!==this.aspectRatio_?this.aspectRatio_:this.videoWidth()>0?this.videoWidth()+":"+this.videoHeight():"16:9").split(":"),o=r[1]/r[0];t=void 0!==this.width_?this.width_:void 0!==this.height_?this.height_/o:this.videoWidth()||300,e=void 0!==this.height_?this.height_:t*o,n=/^[^a-zA-Z]/.test(this.id())?"dimensions-"+this.id():this.id()+"-dimensions",this.addClass(n),xt(this.styleEl_,"\n ."+n+" {\n width: "+t+"px;\n height: "+e+"px;\n }\n\n ."+n+".vjs-fluid {\n padding-top: "+100*o+"%;\n }\n ")}else{var i="number"==typeof this.width_?this.width_:this.options_.width,a="number"==typeof this.height_?this.height_:this.options_.height,s=this.tech_&&this.tech_.el();s&&(i>=0&&(s.width=i),a>=0&&(s.height=a))}},r.loadTech_=function(t,e){var n=this;this.tech_&&this.unloadTech_();var r=le(t),o=t.charAt(0).toLowerCase()+t.slice(1);"Html5"!==r&&this.tag&&($n.getTech("Html5").disposeMediaElement(this.tag),this.tag.player=null,this.tag=null),this.techName_=r,this.isReady_=!1;var i=this.autoplay();("string"==typeof this.autoplay()||!0===this.autoplay()&&this.options_.normalizeAutoplay)&&(i=!1);var a={source:e,autoplay:i,nativeControlsForTouch:this.options_.nativeControlsForTouch,playerId:this.id(),techId:this.id()+"_"+o+"_api",playsinline:this.options_.playsinline,preload:this.options_.preload,loop:this.options_.loop,disablePictureInPicture:this.options_.disablePictureInPicture,muted:this.options_.muted,poster:this.poster(),language:this.language(),playerElIngest:this.playerElIngest_||!1,"vtt.js":this.options_["vtt.js"],canOverridePoster:!!this.options_.techCanOverridePoster,enableSourceset:this.options_.enableSourceset,Promise:this.options_.Promise};yn.names.forEach((function(t){var e=yn[t];a[e.getterName]=n[e.privateName]})),b(a,this.options_[r]),b(a,this.options_[o]),b(a,this.options_[t.toLowerCase()]),this.tag&&(a.tag=this.tag),e&&e.src===this.cache_.src&&this.cache_.currentTime>0&&(a.startTime=this.cache_.currentTime);var s=$n.getTech(t);if(!s)throw new Error("No Tech named '"+r+"' exists! '"+r+"' should be registered using videojs.registerTech()'");this.tech_=new s(a),this.tech_.ready(Xt(this,this.handleTechReady_),!0),Ae(this.textTracksJson_||[],this.tech_),qo.forEach((function(t){n.on(n.tech_,t,(function(e){return n["handleTech"+le(t)+"_"](e)}))})),Object.keys($o).forEach((function(t){n.on(n.tech_,t,(function(e){0===n.tech_.playbackRate()&&n.tech_.seeking()?n.queuedCallbacks_.push({callback:n["handleTech"+$o[t]+"_"].bind(n),event:e}):n["handleTech"+$o[t]+"_"](e)}))})),this.on(this.tech_,"loadstart",(function(t){return n.handleTechLoadStart_(t)})),this.on(this.tech_,"sourceset",(function(t){return n.handleTechSourceset_(t)})),this.on(this.tech_,"waiting",(function(t){return n.handleTechWaiting_(t)})),this.on(this.tech_,"ended",(function(t){return n.handleTechEnded_(t)})),this.on(this.tech_,"seeking",(function(t){return n.handleTechSeeking_(t)})),this.on(this.tech_,"play",(function(t){return n.handleTechPlay_(t)})),this.on(this.tech_,"firstplay",(function(t){return n.handleTechFirstPlay_(t)})),this.on(this.tech_,"pause",(function(t){return n.handleTechPause_(t)})),this.on(this.tech_,"durationchange",(function(t){return n.handleTechDurationChange_(t)})),this.on(this.tech_,"fullscreenchange",(function(t,e){return n.handleTechFullscreenChange_(t,e)})),this.on(this.tech_,"fullscreenerror",(function(t,e){return n.handleTechFullscreenError_(t,e)})),this.on(this.tech_,"enterpictureinpicture",(function(t){return n.handleTechEnterPictureInPicture_(t)})),this.on(this.tech_,"leavepictureinpicture",(function(t){return n.handleTechLeavePictureInPicture_(t)})),this.on(this.tech_,"error",(function(t){return n.handleTechError_(t)})),this.on(this.tech_,"posterchange",(function(t){return n.handleTechPosterChange_(t)})),this.on(this.tech_,"textdata",(function(t){return n.handleTechTextData_(t)})),this.on(this.tech_,"ratechange",(function(t){return n.handleTechRateChange_(t)})),this.on(this.tech_,"loadedmetadata",this.boundUpdateStyleEl_),this.usingNativeControls(this.techGet_("controls")),this.controls()&&!this.usingNativeControls()&&this.addTechControlsListeners_(),this.tech_.el().parentNode===this.el()||"Html5"===r&&this.tag||tt(this.tech_.el(),this.el()),this.tag&&(this.tag.player=null,this.tag=null)},r.unloadTech_=function(){var t=this;yn.names.forEach((function(e){var n=yn[e];t[n.privateName]=t[n.getterName]()})),this.textTracksJson_=je(this.tech_),this.isReady_=!1,this.tech_.dispose(),this.tech_=!1,this.isPosterFromTech_&&(this.poster_="",this.trigger("posterchange")),this.isPosterFromTech_=!1},r.tech=function(t){return void 0===t&&h.warn("Using the tech directly can be dangerous. I hope you know what you're doing.\nSee https://github.com/videojs/video.js/issues/2617 for more info.\n"),this.tech_},r.addTechControlsListeners_=function(){this.removeTechControlsListeners_(),this.on(this.tech_,"click",this.boundHandleTechClick_),this.on(this.tech_,"dblclick",this.boundHandleTechDoubleClick_),this.on(this.tech_,"touchstart",this.boundHandleTechTouchStart_),this.on(this.tech_,"touchmove",this.boundHandleTechTouchMove_),this.on(this.tech_,"touchend",this.boundHandleTechTouchEnd_),this.on(this.tech_,"tap",this.boundHandleTechTap_)},r.removeTechControlsListeners_=function(){this.off(this.tech_,"tap",this.boundHandleTechTap_),this.off(this.tech_,"touchstart",this.boundHandleTechTouchStart_),this.off(this.tech_,"touchmove",this.boundHandleTechTouchMove_),this.off(this.tech_,"touchend",this.boundHandleTechTouchEnd_),this.off(this.tech_,"click",this.boundHandleTechClick_),this.off(this.tech_,"dblclick",this.boundHandleTechDoubleClick_)},r.handleTechReady_=function(){this.triggerReady(),this.cache_.volume&&this.techCall_("setVolume",this.cache_.volume),this.handleTechPosterChange_(),this.handleTechDurationChange_()},r.handleTechLoadStart_=function(){this.removeClass("vjs-ended"),this.removeClass("vjs-seeking"),this.error(null),this.handleTechDurationChange_(),this.paused()?(this.hasStarted(!1),this.trigger("loadstart")):(this.trigger("loadstart"),this.trigger("firstplay")),this.manualAutoplay_(!0===this.autoplay()&&this.options_.normalizeAutoplay?"play":this.autoplay())},r.manualAutoplay_=function(t){var e=this;if(this.tech_&&"string"==typeof t){var n,r=function(){var t=e.muted();e.muted(!0);var n=function(){e.muted(t)};e.playTerminatedQueue_.push(n);var r=e.play();if(Ce(r))return r.catch((function(t){throw n(),new Error("Rejection at manualAutoplay. Restoring muted value. "+(t||""))}))};if("any"!==t||this.muted()?n="muted"!==t||this.muted()?this.play():r():Ce(n=this.play())&&(n=n.catch(r)),Ce(n))return n.then((function(){e.trigger({type:"autoplay-success",autoplay:t})})).catch((function(){e.trigger({type:"autoplay-failure",autoplay:t})}))}},r.updateSourceCaches_=function(t){void 0===t&&(t="");var e=t,n="";"string"!=typeof e&&(e=t.src,n=t.type),this.cache_.source=this.cache_.source||{},this.cache_.sources=this.cache_.sources||[],e&&!n&&(n=function(t,e){if(!e)return"";if(t.cache_.source.src===e&&t.cache_.source.type)return t.cache_.source.type;var n=t.cache_.sources.filter((function(t){return t.src===e}));if(n.length)return n[0].type;for(var r=t.$$("source"),o=0;o<r.length;o++){var i=r[o];if(i.type&&i.src&&i.src===e)return i.type}return ur(e)}(this,e)),this.cache_.source=fe({},t,{src:e,type:n});for(var r=this.cache_.sources.filter((function(t){return t.src&&t.src===e})),o=[],i=this.$$("source"),a=[],s=0;s<i.length;s++){var u=at(i[s]);o.push(u),u.src&&u.src===e&&a.push(u.src)}a.length&&!r.length?this.cache_.sources=o:r.length||(this.cache_.sources=[this.cache_.source]),this.cache_.src=e},r.handleTechSourceset_=function(t){var e=this;if(!this.changingSrc_){var n=function(t){return e.updateSourceCaches_(t)},r=this.currentSource().src,o=t.src;r&&!/^blob:/.test(r)&&/^blob:/.test(o)&&(!this.lastSource_||this.lastSource_.tech!==o&&this.lastSource_.player!==r)&&(n=function(){}),n(o),t.src||this.tech_.any(["sourceset","loadstart"],(function(t){if("sourceset"!==t.type){var n=e.techGet("currentSrc");e.lastSource_.tech=n,e.updateSourceCaches_(n)}}))}this.lastSource_={player:this.currentSource().src,tech:t.src},this.trigger({src:t.src,type:"sourceset"})},r.hasStarted=function(t){if(void 0===t)return this.hasStarted_;t!==this.hasStarted_&&(this.hasStarted_=t,this.hasStarted_?(this.addClass("vjs-has-started"),this.trigger("firstplay")):this.removeClass("vjs-has-started"))},r.handleTechPlay_=function(){this.removeClass("vjs-ended"),this.removeClass("vjs-paused"),this.addClass("vjs-playing"),this.hasStarted(!0),this.trigger("play")},r.handleTechRateChange_=function(){this.tech_.playbackRate()>0&&0===this.cache_.lastPlaybackRate&&(this.queuedCallbacks_.forEach((function(t){return t.callback(t.event)})),this.queuedCallbacks_=[]),this.cache_.lastPlaybackRate=this.tech_.playbackRate(),this.trigger("ratechange")},r.handleTechWaiting_=function(){var t=this;this.addClass("vjs-waiting"),this.trigger("waiting");var e=this.currentTime();this.on("timeupdate",(function n(){e!==t.currentTime()&&(t.removeClass("vjs-waiting"),t.off("timeupdate",n))}))},r.handleTechCanPlay_=function(){this.removeClass("vjs-waiting"),this.trigger("canplay")},r.handleTechCanPlayThrough_=function(){this.removeClass("vjs-waiting"),this.trigger("canplaythrough")},r.handleTechPlaying_=function(){this.removeClass("vjs-waiting"),this.trigger("playing")},r.handleTechSeeking_=function(){this.addClass("vjs-seeking"),this.trigger("seeking")},r.handleTechSeeked_=function(){this.removeClass("vjs-seeking"),this.removeClass("vjs-ended"),this.trigger("seeked")},r.handleTechFirstPlay_=function(){this.options_.starttime&&(h.warn("Passing the `starttime` option to the player will be deprecated in 6.0"),this.currentTime(this.options_.starttime)),this.addClass("vjs-has-started"),this.trigger("firstplay")},r.handleTechPause_=function(){this.removeClass("vjs-playing"),this.addClass("vjs-paused"),this.trigger("pause")},r.handleTechEnded_=function(){this.addClass("vjs-ended"),this.removeClass("vjs-waiting"),this.options_.loop?(this.currentTime(0),this.play()):this.paused()||this.pause(),this.trigger("ended")},r.handleTechDurationChange_=function(){this.duration(this.techGet_("duration"))},r.handleTechClick_=function(t){this.controls_&&(void 0!==this.options_&&void 0!==this.options_.userActions&&void 0!==this.options_.userActions.click&&!1===this.options_.userActions.click||(void 0!==this.options_&&void 0!==this.options_.userActions&&"function"==typeof this.options_.userActions.click?this.options_.userActions.click.call(this,t):this.paused()?Pe(this.play()):this.pause()))},r.handleTechDoubleClick_=function(t){this.controls_&&(Array.prototype.some.call(this.$$(".vjs-control-bar, .vjs-modal-dialog"),(function(e){return e.contains(t.target)}))||void 0!==this.options_&&void 0!==this.options_.userActions&&void 0!==this.options_.userActions.doubleClick&&!1===this.options_.userActions.doubleClick||(void 0!==this.options_&&void 0!==this.options_.userActions&&"function"==typeof this.options_.userActions.doubleClick?this.options_.userActions.doubleClick.call(this,t):this.isFullscreen()?this.exitFullscreen():this.requestFullscreen()))},r.handleTechTap_=function(){this.userActive(!this.userActive())},r.handleTechTouchStart_=function(){this.userWasActive=this.userActive()},r.handleTechTouchMove_=function(){this.userWasActive&&this.reportUserActivity()},r.handleTechTouchEnd_=function(t){t.cancelable&&t.preventDefault()},r.handleStageClick_=function(){this.reportUserActivity()},r.toggleFullscreenClass_=function(){this.isFullscreen()?this.addClass("vjs-fullscreen"):this.removeClass("vjs-fullscreen")},r.documentFullscreenChange_=function(t){var e=t.target.player;if(!e||e===this){var n=this.el(),r=document[this.fsApi_.fullscreenElement]===n;!r&&n.matches?r=n.matches(":"+this.fsApi_.fullscreen):!r&&n.msMatchesSelector&&(r=n.msMatchesSelector(":"+this.fsApi_.fullscreen)),this.isFullscreen(r)}},r.handleTechFullscreenChange_=function(t,e){e&&(e.nativeIOSFullscreen&&this.toggleClass("vjs-ios-native-fs"),this.isFullscreen(e.isFullscreen))},r.handleTechFullscreenError_=function(t,e){this.trigger("fullscreenerror",e)},r.togglePictureInPictureClass_=function(){this.isInPictureInPicture()?this.addClass("vjs-picture-in-picture"):this.removeClass("vjs-picture-in-picture")},r.handleTechEnterPictureInPicture_=function(t){this.isInPictureInPicture(!0)},r.handleTechLeavePictureInPicture_=function(t){this.isInPictureInPicture(!1)},r.handleTechError_=function(){var t=this.tech_.error();this.error(t)},r.handleTechTextData_=function(){var t=null;arguments.length>1&&(t=arguments[1]),this.trigger("textdata",t)},r.getCache=function(){return this.cache_},r.resetCache_=function(){this.cache_={currentTime:0,initTime:0,inactivityTimeout:this.options_.inactivityTimeout,duration:NaN,lastVolume:1,lastPlaybackRate:this.defaultPlaybackRate(),media:null,src:"",source:{},sources:[],playbackRates:[],volume:1}},r.techCall_=function(t,e){this.ready((function(){if(t in rr)return function(t,e,n,r){return e[n](t.reduce(ir(n),r))}(this.middleware_,this.tech_,t,e);if(t in or)return er(this.middleware_,this.tech_,t,e);try{this.tech_&&this.tech_[t](e)}catch(t){throw h(t),t}}),!0)},r.techGet_=function(t){if(this.tech_&&this.tech_.isReady_){if(t in nr)return function(t,e,n){return t.reduceRight(ir(n),e[n]())}(this.middleware_,this.tech_,t);if(t in or)return er(this.middleware_,this.tech_,t);try{return this.tech_[t]()}catch(e){if(void 0===this.tech_[t])throw h("Video.js: "+t+" method not defined for "+this.techName_+" playback technology.",e),e;if("TypeError"===e.name)throw h("Video.js: "+t+" unavailable on "+this.techName_+" playback technology element.",e),this.tech_.isReady_=!1,e;throw h(e),e}}},r.play=function(){var t=this,e=this.options_.Promise||window.Promise;return e?new e((function(e){t.play_(e)})):this.play_()},r.play_=function(t){var e=this;void 0===t&&(t=Pe),this.playCallbacks_.push(t);var n=Boolean(!this.changingSrc_&&(this.src()||this.currentSrc()));if(this.waitToPlay_&&(this.off(["ready","loadstart"],this.waitToPlay_),this.waitToPlay_=null),!this.isReady_||!n)return this.waitToPlay_=function(t){e.play_()},this.one(["ready","loadstart"],this.waitToPlay_),void(n||!z&&!Y||this.load());var r=this.techGet_("play");null===r?this.runPlayTerminatedQueue_():this.runPlayCallbacks_(r)},r.runPlayTerminatedQueue_=function(){var t=this.playTerminatedQueue_.slice(0);this.playTerminatedQueue_=[],t.forEach((function(t){t()}))},r.runPlayCallbacks_=function(t){var e=this.playCallbacks_.slice(0);this.playCallbacks_=[],this.playTerminatedQueue_=[],e.forEach((function(e){e(t)}))},r.pause=function(){this.techCall_("pause")},r.paused=function(){return!1!==this.techGet_("paused")},r.played=function(){return this.techGet_("played")||we(0,0)},r.scrubbing=function(t){if(void 0===t)return this.scrubbing_;this.scrubbing_=!!t,this.techCall_("setScrubbing",this.scrubbing_),t?this.addClass("vjs-scrubbing"):this.removeClass("vjs-scrubbing")},r.currentTime=function(t){return void 0!==t?(t<0&&(t=0),this.isReady_&&!this.changingSrc_&&this.tech_&&this.tech_.isReady_?(this.techCall_("setCurrentTime",t),void(this.cache_.initTime=0)):(this.cache_.initTime=t,this.off("canplay",this.boundApplyInitTime_),void this.one("canplay",this.boundApplyInitTime_))):(this.cache_.currentTime=this.techGet_("currentTime")||0,this.cache_.currentTime)},r.applyInitTime_=function(){this.currentTime(this.cache_.initTime)},r.duration=function(t){if(void 0===t)return void 0!==this.cache_.duration?this.cache_.duration:NaN;(t=parseFloat(t))<0&&(t=1/0),t!==this.cache_.duration&&(this.cache_.duration=t,t===1/0?this.addClass("vjs-live"):this.removeClass("vjs-live"),isNaN(t)||this.trigger("durationchange"))},r.remainingTime=function(){return this.duration()-this.currentTime()},r.remainingTimeDisplay=function(){return Math.floor(this.duration())-Math.floor(this.currentTime())},r.buffered=function(){var t=this.techGet_("buffered");return t&&t.length||(t=we(0,0)),t},r.bufferedPercent=function(){return Ee(this.buffered(),this.duration())},r.bufferedEnd=function(){var t=this.buffered(),e=this.duration(),n=t.end(t.length-1);return n>e&&(n=e),n},r.volume=function(t){var e;return void 0!==t?(e=Math.max(0,Math.min(1,parseFloat(t))),this.cache_.volume=e,this.techCall_("setVolume",e),void(e>0&&this.lastVolume_(e))):(e=parseFloat(this.techGet_("volume")),isNaN(e)?1:e)},r.muted=function(t){if(void 0===t)return this.techGet_("muted")||!1;this.techCall_("setMuted",t)},r.defaultMuted=function(t){return void 0!==t?this.techCall_("setDefaultMuted",t):this.techGet_("defaultMuted")||!1},r.lastVolume_=function(t){if(void 0===t||0===t)return this.cache_.lastVolume;this.cache_.lastVolume=t},r.supportsFullScreen=function(){return this.techGet_("supportsFullScreen")||!1},r.isFullscreen=function(t){if(void 0!==t){var e=this.isFullscreen_;return this.isFullscreen_=Boolean(t),this.isFullscreen_!==e&&this.fsApi_.prefixed&&this.trigger("fullscreenchange"),void this.toggleFullscreenClass_()}return this.isFullscreen_},r.requestFullscreen=function(t){var e=this.options_.Promise||window.Promise;if(e){var n=this;return new e((function(e,r){function o(){n.off("fullscreenerror",a),n.off("fullscreenchange",i)}function i(){o(),e()}function a(t,e){o(),r(e)}n.one("fullscreenchange",i),n.one("fullscreenerror",a);var s=n.requestFullscreenHelper_(t);s&&(s.then(o,o),s.then(e,r))}))}return this.requestFullscreenHelper_()},r.requestFullscreenHelper_=function(t){var e,n=this;if(this.fsApi_.prefixed||(e=this.options_.fullscreen&&this.options_.fullscreen.options||{},void 0!==t&&(e=t)),this.fsApi_.requestFullscreen){var r=this.el_[this.fsApi_.requestFullscreen](e);return r&&r.then((function(){return n.isFullscreen(!0)}),(function(){return n.isFullscreen(!1)})),r}this.tech_.supportsFullScreen()&&1==!this.options_.preferFullWindow?this.techCall_("enterFullScreen"):this.enterFullWindow()},r.exitFullscreen=function(){var t=this.options_.Promise||window.Promise;if(t){var e=this;return new t((function(t,n){function r(){e.off("fullscreenerror",i),e.off("fullscreenchange",o)}function o(){r(),t()}function i(t,e){r(),n(e)}e.one("fullscreenchange",o),e.one("fullscreenerror",i);var a=e.exitFullscreenHelper_();a&&(a.then(r,r),a.then(t,n))}))}return this.exitFullscreenHelper_()},r.exitFullscreenHelper_=function(){var t=this;if(this.fsApi_.requestFullscreen){var e=document[this.fsApi_.exitFullscreen]();return e&&Pe(e.then((function(){return t.isFullscreen(!1)}))),e}this.tech_.supportsFullScreen()&&1==!this.options_.preferFullWindow?this.techCall_("exitFullScreen"):this.exitFullWindow()},r.enterFullWindow=function(){this.isFullscreen(!0),this.isFullWindow=!0,this.docOrigOverflow=document.documentElement.style.overflow,Vt(document,"keydown",this.boundFullWindowOnEscKey_),document.documentElement.style.overflow="hidden",nt(document.body,"vjs-full-window"),this.trigger("enterFullWindow")},r.fullWindowOnEscKey=function(t){xe.isEventKey(t,"Esc")&&!0===this.isFullscreen()&&(this.isFullWindow?this.exitFullWindow():this.exitFullscreen())},r.exitFullWindow=function(){this.isFullscreen(!1),this.isFullWindow=!1,Ut(document,"keydown",this.boundFullWindowOnEscKey_),document.documentElement.style.overflow=this.docOrigOverflow,rt(document.body,"vjs-full-window"),this.trigger("exitFullWindow")},r.disablePictureInPicture=function(t){if(void 0===t)return this.techGet_("disablePictureInPicture");this.techCall_("setDisablePictureInPicture",t),this.options_.disablePictureInPicture=t,this.trigger("disablepictureinpicturechanged")},r.isInPictureInPicture=function(t){return void 0!==t?(this.isInPictureInPicture_=!!t,void this.togglePictureInPictureClass_()):!!this.isInPictureInPicture_},r.requestPictureInPicture=function(){if("pictureInPictureEnabled"in document&&!1===this.disablePictureInPicture())return this.techGet_("requestPictureInPicture")},r.exitPictureInPicture=function(){if("pictureInPictureEnabled"in document)return document.exitPictureInPicture()},r.handleKeyDown=function(t){var e,n,r=this.options_.userActions;r&&r.hotkeys&&(e=this.el_.ownerDocument.activeElement,n=e.tagName.toLowerCase(),e.isContentEditable||("input"===n?-1===["button","checkbox","hidden","radio","reset","submit"].indexOf(e.type):-1!==["textarea"].indexOf(n))||("function"==typeof r.hotkeys?r.hotkeys.call(this,t):this.handleHotkeys(t)))},r.handleHotkeys=function(t){var e=this.options_.userActions?this.options_.userActions.hotkeys:{},n=e.fullscreenKey,r=void 0===n?function(t){return xe.isEventKey(t,"f")}:n,o=e.muteKey,i=void 0===o?function(t){return xe.isEventKey(t,"m")}:o,a=e.playPauseKey,s=void 0===a?function(t){return xe.isEventKey(t,"k")||xe.isEventKey(t,"Space")}:a;if(r.call(this,t)){t.preventDefault(),t.stopPropagation();var u=ye.getComponent("FullscreenToggle");!1!==document[this.fsApi_.fullscreenEnabled]&&u.prototype.handleClick.call(this,t)}else i.call(this,t)?(t.preventDefault(),t.stopPropagation(),ye.getComponent("MuteToggle").prototype.handleClick.call(this,t)):s.call(this,t)&&(t.preventDefault(),t.stopPropagation(),ye.getComponent("PlayToggle").prototype.handleClick.call(this,t))},r.canPlayType=function(t){for(var e,n=0,r=this.options_.techOrder;n<r.length;n++){var o=r[n],i=$n.getTech(o);if(i||(i=ye.getComponent(o)),i){if(i.isSupported()&&(e=i.canPlayType(t)))return e}else h.error('The "'+o+'" tech is undefined. Skipped browser support check for that tech.')}return""},r.selectSource=function(t){var e,n=this,r=this.options_.techOrder.map((function(t){return[t,$n.getTech(t)]})).filter((function(t){var e=t[0],n=t[1];return n?n.isSupported():(h.error('The "'+e+'" tech is undefined. Skipped browser support check for that tech.'),!1)})),o=function(t,e,n){var r;return t.some((function(t){return e.some((function(e){if(r=n(t,e))return!0}))})),r},i=function(t,e){var r=t[0];if(t[1].canPlaySource(e,n.options_[r.toLowerCase()]))return{source:e,tech:r}};return(this.options_.sourceOrder?o(t,r,(e=i,function(t,n){return e(n,t)})):o(r,t,i))||!1},r.handleSrc_=function(t,e){var n=this;if(void 0===t)return this.cache_.src||"";this.resetRetryOnError_&&this.resetRetryOnError_();var r=cr(t);if(r.length){if(this.changingSrc_=!0,e||(this.cache_.sources=r),this.updateSourceCaches_(r[0]),tr(this,r[0],(function(t,o){var i,a;if(n.middleware_=o,e||(n.cache_.sources=r),n.updateSourceCaches_(t),n.src_(t))return r.length>1?n.handleSrc_(r.slice(1)):(n.changingSrc_=!1,n.setTimeout((function(){this.error({code:4,message:this.localize(this.options_.notSupportedMessage)})}),0),void n.triggerReady());i=o,a=n.tech_,i.forEach((function(t){return t.setTech&&t.setTech(a)}))})),this.options_.retryOnError&&r.length>1){var o=function(){n.error(null),n.handleSrc_(r.slice(1),!0)},i=function(){n.off("error",o)};this.one("error",o),this.one("playing",i),this.resetRetryOnError_=function(){n.off("error",o),n.off("playing",i)}}}else this.setTimeout((function(){this.error({code:4,message:this.localize(this.options_.notSupportedMessage)})}),0)},r.src=function(t){return this.handleSrc_(t,!1)},r.src_=function(t){var e,n,r=this,o=this.selectSource([t]);return!o||(e=o.tech,n=this.techName_,le(e)!==le(n)?(this.changingSrc_=!0,this.loadTech_(o.tech,o.source),this.tech_.ready((function(){r.changingSrc_=!1})),!1):(this.ready((function(){this.tech_.constructor.prototype.hasOwnProperty("setSource")?this.techCall_("setSource",t):this.techCall_("src",t.src),this.changingSrc_=!1}),!0),!1))},r.load=function(){this.techCall_("load")},r.reset=function(){var t=this,e=this.options_.Promise||window.Promise;this.paused()||!e?this.doReset_():Pe(this.play().then((function(){return t.doReset_()})))},r.doReset_=function(){this.tech_&&this.tech_.clearTracks("text"),this.resetCache_(),this.poster(""),this.loadTech_(this.options_.techOrder[0],null),this.techCall_("reset"),this.resetControlBarUI_(),Qt(this)&&this.trigger("playerreset")},r.resetControlBarUI_=function(){this.resetProgressBar_(),this.resetPlaybackRate_(),this.resetVolumeBar_()},r.resetProgressBar_=function(){this.currentTime(0);var t=this.controlBar,e=t.durationDisplay,n=t.remainingTimeDisplay;e&&e.updateContent(),n&&n.updateContent()},r.resetPlaybackRate_=function(){this.playbackRate(this.defaultPlaybackRate()),this.handleTechRateChange_()},r.resetVolumeBar_=function(){this.volume(1),this.trigger("volumechange")},r.currentSources=function(){var t=this.currentSource(),e=[];return 0!==Object.keys(t).length&&e.push(t),this.cache_.sources||e},r.currentSource=function(){return this.cache_.source||{}},r.currentSrc=function(){return this.currentSource()&&this.currentSource().src||""},r.currentType=function(){return this.currentSource()&&this.currentSource().type||""},r.preload=function(t){return void 0!==t?(this.techCall_("setPreload",t),void(this.options_.preload=t)):this.techGet_("preload")},r.autoplay=function(t){if(void 0===t)return this.options_.autoplay||!1;var e;"string"==typeof t&&/(any|play|muted)/.test(t)||!0===t&&this.options_.normalizeAutoplay?(this.options_.autoplay=t,this.manualAutoplay_("string"==typeof t?t:"play"),e=!1):this.options_.autoplay=!!t,e=void 0===e?this.options_.autoplay:e,this.tech_&&this.techCall_("setAutoplay",e)},r.playsinline=function(t){return void 0!==t?(this.techCall_("setPlaysinline",t),this.options_.playsinline=t,this):this.techGet_("playsinline")},r.loop=function(t){return void 0!==t?(this.techCall_("setLoop",t),void(this.options_.loop=t)):this.techGet_("loop")},r.poster=function(t){if(void 0===t)return this.poster_;t||(t=""),t!==this.poster_&&(this.poster_=t,this.techCall_("setPoster",t),this.isPosterFromTech_=!1,this.trigger("posterchange"))},r.handleTechPosterChange_=function(){if((!this.poster_||this.options_.techCanOverridePoster)&&this.tech_&&this.tech_.poster){var t=this.tech_.poster()||"";t!==this.poster_&&(this.poster_=t,this.isPosterFromTech_=!0,this.trigger("posterchange"))}},r.controls=function(t){if(void 0===t)return!!this.controls_;t=!!t,this.controls_!==t&&(this.controls_=t,this.usingNativeControls()&&this.techCall_("setControls",t),this.controls_?(this.removeClass("vjs-controls-disabled"),this.addClass("vjs-controls-enabled"),this.trigger("controlsenabled"),this.usingNativeControls()||this.addTechControlsListeners_()):(this.removeClass("vjs-controls-enabled"),this.addClass("vjs-controls-disabled"),this.trigger("controlsdisabled"),this.usingNativeControls()||this.removeTechControlsListeners_()))},r.usingNativeControls=function(t){if(void 0===t)return!!this.usingNativeControls_;t=!!t,this.usingNativeControls_!==t&&(this.usingNativeControls_=t,this.usingNativeControls_?(this.addClass("vjs-using-native-controls"),this.trigger("usingnativecontrols")):(this.removeClass("vjs-using-native-controls"),this.trigger("usingcustomcontrols")))},r.error=function(t){var e=this;if(void 0===t)return this.error_||null;if(o("beforeerror").forEach((function(n){var r=n(e,t);w(r)&&!Array.isArray(r)||"string"==typeof r||"number"==typeof r||null===r?t=r:e.log.error("please return a value that MediaError expects in beforeerror hooks")})),this.options_.suppressNotSupportedError&&t&&4===t.code){var n=function(){this.error(t)};return this.options_.suppressNotSupportedError=!1,this.any(["click","touchstart"],n),void this.one("loadstart",(function(){this.off(["click","touchstart"],n)}))}if(null===t)return this.error_=t,this.removeClass("vjs-error"),void(this.errorDisplay&&this.errorDisplay.close());this.error_=new Te(t),this.addClass("vjs-error"),h.error("(CODE:"+this.error_.code+" "+Te.errorTypes[this.error_.code]+")",this.error_.message,this.error_),this.trigger("error"),o("error").forEach((function(t){return t(e,e.error_)}))},r.reportUserActivity=function(t){this.userActivity_=!0},r.userActive=function(t){if(void 0===t)return this.userActive_;if((t=!!t)!==this.userActive_){if(this.userActive_=t,this.userActive_)return this.userActivity_=!0,this.removeClass("vjs-user-inactive"),this.addClass("vjs-user-active"),void this.trigger("useractive");this.tech_&&this.tech_.one("mousemove",(function(t){t.stopPropagation(),t.preventDefault()})),this.userActivity_=!1,this.removeClass("vjs-user-active"),this.addClass("vjs-user-inactive"),this.trigger("userinactive")}},r.listenForUserActivity_=function(){var t,e,n,r=Xt(this,this.reportUserActivity),o=function(e){r(),this.clearInterval(t)};this.on("mousedown",(function(){r(),this.clearInterval(t),t=this.setInterval(r,250)})),this.on("mousemove",(function(t){t.screenX===e&&t.screenY===n||(e=t.screenX,n=t.screenY,r())})),this.on("mouseup",o),this.on("mouseleave",o);var i,a=this.getChild("controlBar");!a||Y||A||(a.on("mouseenter",(function(t){0!==this.player().options_.inactivityTimeout&&(this.player().cache_.inactivityTimeout=this.player().options_.inactivityTimeout),this.player().options_.inactivityTimeout=0})),a.on("mouseleave",(function(t){this.player().options_.inactivityTimeout=this.player().cache_.inactivityTimeout}))),this.on("keydown",r),this.on("keyup",r),this.setInterval((function(){if(this.userActivity_){this.userActivity_=!1,this.userActive(!0),this.clearTimeout(i);var t=this.options_.inactivityTimeout;t<=0||(i=this.setTimeout((function(){this.userActivity_||this.userActive(!1)}),t))}}),250)},r.playbackRate=function(t){if(void 0===t)return this.tech_&&this.tech_.featuresPlaybackRate?this.cache_.lastPlaybackRate||this.techGet_("playbackRate"):1;this.techCall_("setPlaybackRate",t)},r.defaultPlaybackRate=function(t){return void 0!==t?this.techCall_("setDefaultPlaybackRate",t):this.tech_&&this.tech_.featuresPlaybackRate?this.techGet_("defaultPlaybackRate"):1},r.isAudio=function(t){if(void 0===t)return!!this.isAudio_;this.isAudio_=!!t},r.addTextTrack=function(t,e,n){if(this.tech_)return this.tech_.addTextTrack(t,e,n)},r.addRemoteTextTrack=function(t,e){if(this.tech_)return this.tech_.addRemoteTextTrack(t,e)},r.removeRemoteTextTrack=function(t){void 0===t&&(t={});var e=t.track;if(e||(e=t),this.tech_)return this.tech_.removeRemoteTextTrack(e)},r.getVideoPlaybackQuality=function(){return this.techGet_("getVideoPlaybackQuality")},r.videoWidth=function(){return this.tech_&&this.tech_.videoWidth&&this.tech_.videoWidth()||0},r.videoHeight=function(){return this.tech_&&this.tech_.videoHeight&&this.tech_.videoHeight()||0},r.language=function(t){if(void 0===t)return this.language_;this.language_!==String(t).toLowerCase()&&(this.language_=String(t).toLowerCase(),Qt(this)&&this.trigger("languagechange"))},r.languages=function(){return fe(e.prototype.options_.languages,this.languages_)},r.toJSON=function(){var t=fe(this.options_),e=t.tracks;t.tracks=[];for(var n=0;n<e.length;n++){var r=e[n];(r=fe(r)).player=void 0,t.tracks[n]=r}return t},r.createModal=function(t,e){var n=this;(e=e||{}).content=t||"";var r=new Re(this,e);return this.addChild(r),r.on("dispose",(function(){n.removeChild(r)})),r.open(),r},r.updateCurrentBreakpoint_=function(){if(this.responsive())for(var t=this.currentBreakpoint(),e=this.currentWidth(),n=0;n<Jo.length;n++){var r=Jo[n];if(e<=this.breakpoints_[r]){if(t===r)return;t&&this.removeClass(Qo[t]),this.addClass(Qo[r]),this.breakpoint_=r;break}}},r.removeCurrentBreakpoint_=function(){var t=this.currentBreakpointClass();this.breakpoint_="",t&&this.removeClass(t)},r.breakpoints=function(t){return void 0===t||(this.breakpoint_="",this.breakpoints_=b({},Zo,t),this.updateCurrentBreakpoint_()),b(this.breakpoints_)},r.responsive=function(t){return void 0===t?this.responsive_:(t=Boolean(t))!==this.responsive_?(this.responsive_=t,t?(this.on("playerresize",this.boundUpdateCurrentBreakpoint_),this.updateCurrentBreakpoint_()):(this.off("playerresize",this.boundUpdateCurrentBreakpoint_),this.removeCurrentBreakpoint_()),t):void 0},r.currentBreakpoint=function(){return this.breakpoint_},r.currentBreakpointClass=function(){return Qo[this.breakpoint_]||""},r.loadMedia=function(t,e){var n=this;if(t&&"object"==typeof t){this.reset(),this.cache_.media=fe(t);var r=this.cache_.media,o=r.artwork,i=r.poster,a=r.src,s=r.textTracks;!o&&i&&(this.cache_.media.artwork=[{src:i,type:ur(i)}]),a&&this.src(a),i&&this.poster(i),Array.isArray(s)&&s.forEach((function(t){return n.addRemoteTextTrack(t,!1)})),this.ready(e)}},r.getMedia=function(){if(!this.cache_.media){var t=this.poster(),e={src:this.currentSources(),textTracks:Array.prototype.map.call(this.remoteTextTracks(),(function(t){return{kind:t.kind,label:t.label,language:t.language,src:t.src}}))};return t&&(e.poster=t,e.artwork=[{src:e.poster,type:ur(e.poster)}]),e}return fe(this.cache_.media)},e.getTagSettings=function(t){var e={sources:[],tracks:[]},n=at(t),r=n["data-setup"];if(et(t,"vjs-fill")&&(n.fill=!0),et(t,"vjs-fluid")&&(n.fluid=!0),null!==r){var o=Oe(r||"{}"),i=o[0],a=o[1];i&&h.error(i),b(n,a)}if(b(e,n),t.hasChildNodes())for(var s=t.childNodes,u=0,c=s.length;u<c;u++){var l=s[u],f=l.nodeName.toLowerCase();"source"===f?e.sources.push(at(l)):"track"===f&&e.tracks.push(at(l))}return e},r.flexNotSupported_=function(){var t=document.createElement("i");return!("flexBasis"in t.style||"webkitFlexBasis"in t.style||"mozFlexBasis"in t.style||"msFlexBasis"in t.style||"msFlexOrder"in t.style)},r.debug=function(t){if(void 0===t)return this.debugEnabled_;t?(this.trigger("debugon"),this.previousLogLevel_=this.log.level,this.log.level("debug"),this.debugEnabled_=!0):(this.trigger("debugoff"),this.log.level(this.previousLogLevel_),this.previousLogLevel_=void 0,this.debugEnabled_=!1)},r.playbackRates=function(t){if(void 0===t)return this.cache_.playbackRates;Array.isArray(t)&&t.every((function(t){return"number"==typeof t}))&&(this.cache_.playbackRates=t,this.trigger("playbackrateschange"))},e}(ye);yn.names.forEach((function(t){var e=yn[t];ti.prototype[e.getterName]=function(){return this.tech_?this.tech_[e.getterName]():(this[e.privateName]=this[e.privateName]||new e.ListClass,this[e.privateName])}})),ti.prototype.crossorigin=ti.prototype.crossOrigin,ti.players={};var ei=window.navigator;ti.prototype.options_={techOrder:$n.defaultTechOrder_,html5:{},inactivityTimeout:2e3,playbackRates:[],liveui:!1,children:["mediaLoader","posterImage","textTrackDisplay","loadingSpinner","bigPlayButton","liveTracker","controlBar","errorDisplay","textTrackSettings","resizeManager"],language:ei&&(ei.languages&&ei.languages[0]||ei.userLanguage||ei.language)||"en",languages:{},notSupportedMessage:"No compatible source was found for this media.",normalizeAutoplay:!1,fullscreen:{options:{navigationUI:"hide"}},breakpoints:{},responsive:!1},["ended","seeking","seekable","networkState","readyState"].forEach((function(t){ti.prototype[t]=function(){return this.techGet_(t)}})),qo.forEach((function(t){ti.prototype["handleTech"+le(t)+"_"]=function(){return this.trigger(t)}})),ye.registerComponent("Player",ti);var ni=v((function(t){function e(n,r){return t.exports=e=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},e(n,r)}t.exports=e})),ri=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}},oi=v((function(t){function e(n,r,o){return ri()?t.exports=e=Reflect.construct:t.exports=e=function(t,e,n){var r=[null];r.push.apply(r,e);var o=new(Function.bind.apply(t,r));return n&&ni(o,n.prototype),o},e.apply(null,arguments)}t.exports=e})),ii="plugin",ai={},si=function(t){return ai.hasOwnProperty(t)},ui=function(t){return si(t)?ai[t]:void 0},ci=function(t,e){t.activePlugins_=t.activePlugins_||{},t.activePlugins_[e]=!0},li=function(t,e,n){var r=(n?"before":"")+"pluginsetup";t.trigger(r,e),t.trigger(r+":"+e.name,e)},fi=function(t,e){return e.prototype.name=t,function(){li(this,{name:t,plugin:e,instance:null},!0);for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];var i=oi(e,[this].concat(r));return this[t]=function(){return i},li(this,i.getEventHash()),i}},hi=function(){function t(e){if(this.constructor===t)throw new Error("Plugin must be sub-classed; not directly instantiated.");this.player=e,this.log||(this.log=this.player.log.createLogger(this.name)),ae(this),delete this.trigger,ue(this,this.constructor.defaultState),ci(e,this.name),this.dispose=this.dispose.bind(this),e.on("dispose",this.dispose)}var e=t.prototype;return e.version=function(){return this.constructor.VERSION},e.getEventHash=function(t){return void 0===t&&(t={}),t.name=this.name,t.plugin=this.constructor,t.instance=this,t},e.trigger=function(t,e){return void 0===e&&(e={}),Ht(this.eventBusEl_,t,this.getEventHash(e))},e.handleStateChanged=function(t){},e.dispose=function(){var t=this.name,e=this.player;this.trigger("dispose"),this.off(),e.off("dispose",this.dispose),e.activePlugins_[t]=!1,this.player=this.state=null,e[t]=fi(t,ai[t])},t.isBasic=function(e){var n="string"==typeof e?ui(e):e;return"function"==typeof n&&!t.prototype.isPrototypeOf(n.prototype)},t.registerPlugin=function(e,n){if("string"!=typeof e)throw new Error('Illegal plugin name, "'+e+'", must be a string, was '+typeof e+".");if(si(e))h.warn('A plugin named "'+e+'" already exists. You may want to avoid re-registering plugins!');else if(ti.prototype.hasOwnProperty(e))throw new Error('Illegal plugin name, "'+e+'", cannot share a name with an existing player method!');if("function"!=typeof n)throw new Error('Illegal plugin for "'+e+'", must be a function, was '+typeof n+".");return ai[e]=n,e!==ii&&(t.isBasic(n)?ti.prototype[e]=function(t,e){var n=function(){li(this,{name:t,plugin:e,instance:null},!0);var n=e.apply(this,arguments);return ci(this,t),li(this,{name:t,plugin:e,instance:n}),n};return Object.keys(e).forEach((function(t){n[t]=e[t]})),n}(e,n):ti.prototype[e]=fi(e,n)),n},t.deregisterPlugin=function(t){if(t===ii)throw new Error("Cannot de-register base plugin.");si(t)&&(delete ai[t],delete ti.prototype[t])},t.getPlugins=function(t){var e;return void 0===t&&(t=Object.keys(ai)),t.forEach((function(t){var n=ui(t);n&&((e=e||{})[t]=n)})),e},t.getPluginVersion=function(t){var e=ui(t);return e&&e.VERSION||""},t}();hi.getPlugin=ui,hi.BASE_PLUGIN_NAME=ii,hi.registerPlugin(ii,hi),ti.prototype.usingPlugin=function(t){return!!this.activePlugins_&&!0===this.activePlugins_[t]},ti.prototype.hasPlugin=function(t){return!!si(t)};var pi=function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&ni(t,e)},di=function(t){return 0===t.indexOf("#")?t.slice(1):t};function vi(t,e,n){var r=vi.getPlayer(t);if(r)return e&&h.warn('Player "'+t+'" is already initialised. Options will not be applied.'),n&&r.ready(n),r;var i="string"==typeof t?Et("#"+di(t)):t;if(!q(i))throw new TypeError("The element or ID supplied is not valid. (videojs)");i.ownerDocument.defaultView&&i.ownerDocument.body.contains(i)||h.warn("The element supplied is not included in the DOM"),e=e||{},o("beforesetup").forEach((function(t){var n=t(i,fe(e));w(n)&&!Array.isArray(n)?e=fe(e,n):h.error("please return an object in beforesetup hooks")}));var a=ye.getComponent("Player");return r=new a(i,e,n),o("setup").forEach((function(t){return t(r)})),r}if(vi.hooks_=r,vi.hooks=o,vi.hook=function(t,e){o(t,e)},vi.hookOnce=function(t,e){o(t,[].concat(e).map((function(e){return function n(){return i(t,n),e.apply(void 0,arguments)}})))},vi.removeHook=i,!0!==window.VIDEOJS_NO_DYNAMIC_STYLE&&X()){var yi=Et(".vjs-styles-defaults");if(!yi){yi=At("vjs-styles-defaults");var gi=Et("head");gi&&gi.insertBefore(yi,gi.firstChild),xt(yi,"\n .video-js {\n width: 300px;\n height: 150px;\n }\n\n .vjs-fluid {\n padding-top: 56.25%\n }\n ")}}return Pt(1,vi),vi.VERSION=n,vi.options=ti.prototype.options_,vi.getPlayers=function(){return ti.players},vi.getPlayer=function(t){var e,n=ti.players;if("string"==typeof t){var r=di(t),o=n[r];if(o)return o;e=Et("#"+r)}else e=t;if(q(e)){var i=e,a=i.player,s=i.playerId;if(a||n[s])return a||n[s]}},vi.getAllPlayers=function(){return Object.keys(ti.players).map((function(t){return ti.players[t]})).filter(Boolean)},vi.players=ti.players,vi.getComponent=ye.getComponent,vi.registerComponent=function(t,e){$n.isTech(e)&&h.warn("The "+t+" tech was registered as a component. It should instead be registered using videojs.registerTech(name, tech)"),ye.registerComponent.call(ye,t,e)},vi.getTech=$n.getTech,vi.registerTech=$n.registerTech,vi.use=function(t,e){Jn[t]=Jn[t]||[],Jn[t].push(e)},Object.defineProperty(vi,"middleware",{value:{},writeable:!1,enumerable:!0}),Object.defineProperty(vi.middleware,"TERMINATOR",{value:Zn,writeable:!1,enumerable:!0}),vi.browser=W,vi.TOUCH_ENABLED=V,vi.extend=function(t,e){void 0===e&&(e={});var n=function(){t.apply(this,arguments)},r={};for(var o in"object"==typeof e?(e.constructor!==Object.prototype.constructor&&(n=e.constructor),r=e):"function"==typeof e&&(n=e),pi(n,t),t&&(n.super_=t),r)r.hasOwnProperty(o)&&(n.prototype[o]=r[o]);return n},vi.mergeOptions=fe,vi.bind=Xt,vi.registerPlugin=hi.registerPlugin,vi.deregisterPlugin=hi.deregisterPlugin,vi.plugin=function(t,e){return h.warn("videojs.plugin() is deprecated; use videojs.registerPlugin() instead"),hi.registerPlugin(t,e)},vi.getPlugins=hi.getPlugins,vi.getPlugin=hi.getPlugin,vi.getPluginVersion=hi.getPluginVersion,vi.addLanguage=function(t,e){var n;return t=(""+t).toLowerCase(),vi.options.languages=fe(vi.options.languages,((n={})[t]=e,n)),vi.options.languages[t]},vi.log=h,vi.createLogger=p,vi.createTimeRange=vi.createTimeRanges=we,vi.formatTime=Or,vi.setFormatTime=function(t){Sr=t},vi.resetFormatTime=function(){Sr=Tr},vi.parseUrl=Ke,vi.isCrossOrigin=$e,vi.EventTarget=$t,vi.on=Vt,vi.one=Yt,vi.off=Ut,vi.trigger=Ht,vi.xhr=nn,vi.TextTrack=ln,vi.AudioTrack=fn,vi.VideoTrack=hn,["isEl","isTextNode","createEl","hasClass","addClass","removeClass","toggleClass","setAttributes","getAttributes","emptyEl","appendContent","insertContent"].forEach((function(t){vi[t]=function(){return h.warn("videojs."+t+"() is deprecated; use videojs.dom."+t+"() instead"),St[t].apply(null,arguments)}})),vi.computedStyle=T,vi.dom=St,vi.url=Je,vi.defineLazyProperty=Ko,vi.addLanguage("en",{"Non-Fullscreen":"Exit Fullscreen"}),vi},t.exports=n()}).call(this,n(35))},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"JumpBackButton",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(e,"JumpForwardButton",{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(e,"LogoButton",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(e,"PlaylistPanel",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(e,"ProgressControlEventsBlocker",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(e,"RecommendationsOverlay",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(e,"ShoppablePanel",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(e,"TitleBar",{enumerable:!0,get:function(){return l.default}});var r=f(n(384)),o=f(n(385)),i=f(n(386)),a=f(n(404)),s=f(n(408)),u=f(n(409)),c=f(n(417)),l=f(n(421));function f(t){return t&&t.__esModule?t:{default:t}}n(423)},function(t,e,n){"use strict";function r(t){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r(t)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o,i=(o=n(1))&&o.__esModule?o:{default:o};function a(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function s(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function u(){return u="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var r=c(t,e);if(r){var o=Object.getOwnPropertyDescriptor(r,e);return o.get?o.get.call(arguments.length<3?t:n):o.value}},u.apply(this,arguments)}function c(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=p(t)););return t}function l(t,e){return l=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},l(t,e)}function f(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=p(t);if(e){var o=p(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return h(this,n)}}function h(t,e){if(e&&("object"===r(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function p(t){return p=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},p(t)}var d=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&l(t,e)}(c,t);var e,n,r,o=f(c);function c(){return a(this,c),o.apply(this,arguments)}return e=c,(n=[{key:"handleClick",value:function(t){u(p(c.prototype),"handleClick",this).call(this,t),this.player().currentTime(this.player().currentTime()+10)}},{key:"createEl",value:function(){return i.default.dom.createEl("button",{className:"vjs-control vjs-icon-skip-10-plus vjs-button"})}}])&&s(e.prototype,n),r&&s(e,r),Object.defineProperty(e,"prototype",{writable:!1}),c}(i.default.getComponent("ClickableComponent"));i.default.registerComponent("JumpForwardButton",d);var v=d;e.default=v},function(t,e,n){"use strict";function r(t){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r(t)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o,i=(o=n(1))&&o.__esModule?o:{default:o};function a(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function s(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function u(){return u="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var r=c(t,e);if(r){var o=Object.getOwnPropertyDescriptor(r,e);return o.get?o.get.call(arguments.length<3?t:n):o.value}},u.apply(this,arguments)}function c(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=p(t)););return t}function l(t,e){return l=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},l(t,e)}function f(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=p(t);if(e){var o=p(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return h(this,n)}}function h(t,e){if(e&&("object"===r(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function p(t){return p=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},p(t)}var d=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&l(t,e)}(c,t);var e,n,r,o=f(c);function c(){return a(this,c),o.apply(this,arguments)}return e=c,(n=[{key:"handleClick",value:function(t){u(p(c.prototype),"handleClick",this).call(this,t),this.player().currentTime(this.player().currentTime()-10)}},{key:"createEl",value:function(){return i.default.dom.createEl("button",{className:"vjs-control vjs-icon-skip-10-min vjs-button"})}}])&&s(e.prototype,n),r&&s(e,r),Object.defineProperty(e,"prototype",{writable:!1}),c}(i.default.getComponent("ClickableComponent"));i.default.registerComponent("JumpBackButton",d);var v=d;e.default=v},function(t,e,n){"use strict";function r(t){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r(t)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o,i=(o=n(1))&&o.__esModule?o:{default:o};n(387);var a=n(388),s=n(115);function u(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function c(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function l(t,e){return l=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},l(t,e)}function f(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=p(t);if(e){var o=p(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return h(this,n)}}function h(t,e){if(e&&("object"===r(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function p(t){return p=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},p(t)}var d=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&l(t,e)}(h,t);var e,n,r,o=f(h);function h(){return u(this,h),o.apply(this,arguments)}return e=h,(n=[{key:"createEl",value:function(){var t=this.options_.playerOptions,e=t.showLogo?"block":"none",n=(0,s.isLight)(t)?a.LIGHT_BG_ICON:a.DARK_BG_ICON,r=t.logoImageUrl?t.logoImageUrl:n;return i.default.dom.createEl("a",{},{class:"vjs-control vjs-cloudinary-button vjs-button",href:t.logoOnclickUrl,target:"_blank",style:"display: ".concat(e,"; background-image: url(").concat(r,")")})}}])&&c(e.prototype,n),r&&c(e,r),Object.defineProperty(e,"prototype",{writable:!1}),h}(i.default.getComponent("ClickableComponent"));i.default.registerComponent("logoButton",d);var v=d;e.default=v},function(t,e,n){"use strict";n.r(e)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.LIGHT_BG_ICON=e.DARK_BG_ICON=void 0;e.LIGHT_BG_ICON="https://res.cloudinary.com/cloudinary-marketing/image/upload/v1597164189/creative_source/Logo/Cloud%20Glyph/cloudinary_cloud_glyph_regular.svg";e.DARK_BG_ICON="https://res.cloudinary.com/cloudinary-marketing/image/upload/v1597164191/creative_source/Logo/Cloud%20Glyph/cloudinary_cloud_glyph_white.svg"},function(t,e,n){(function(t){var r=void 0!==t&&t||"undefined"!=typeof self&&self||window,o=Function.prototype.apply;function i(t,e){this._id=t,this._clearFn=e}e.setTimeout=function(){return new i(o.call(setTimeout,r,arguments),clearTimeout)},e.setInterval=function(){return new i(o.call(setInterval,r,arguments),clearInterval)},e.clearTimeout=e.clearInterval=function(t){t&&t.close()},i.prototype.unref=i.prototype.ref=function(){},i.prototype.close=function(){this._clearFn.call(r,this._id)},e.enroll=function(t,e){clearTimeout(t._idleTimeoutId),t._idleTimeout=e},e.unenroll=function(t){clearTimeout(t._idleTimeoutId),t._idleTimeout=-1},e._unrefActive=e.active=function(t){clearTimeout(t._idleTimeoutId);var e=t._idleTimeout;e>=0&&(t._idleTimeoutId=setTimeout((function(){t._onTimeout&&t._onTimeout()}),e))},n(390),e.setImmediate="undefined"!=typeof self&&self.setImmediate||void 0!==t&&t.setImmediate||this&&this.setImmediate,e.clearImmediate="undefined"!=typeof self&&self.clearImmediate||void 0!==t&&t.clearImmediate||this&&this.clearImmediate}).call(this,n(35))},function(t,e,n){(function(t,e){!function(t,n){"use strict";if(!t.setImmediate){var r,o,i,a,s,u=1,c={},l=!1,f=t.document,h=Object.getPrototypeOf&&Object.getPrototypeOf(t);h=h&&h.setTimeout?h:t,"[object process]"==={}.toString.call(t.process)?r=function(t){e.nextTick((function(){d(t)}))}:!function(){if(t.postMessage&&!t.importScripts){var e=!0,n=t.onmessage;return t.onmessage=function(){e=!1},t.postMessage("","*"),t.onmessage=n,e}}()?t.MessageChannel?((i=new MessageChannel).port1.onmessage=function(t){d(t.data)},r=function(t){i.port2.postMessage(t)}):f&&"onreadystatechange"in f.createElement("script")?(o=f.documentElement,r=function(t){var e=f.createElement("script");e.onreadystatechange=function(){d(t),e.onreadystatechange=null,o.removeChild(e),e=null},o.appendChild(e)}):r=function(t){setTimeout(d,0,t)}:(a="setImmediate$"+Math.random()+"$",s=function(e){e.source===t&&"string"==typeof e.data&&0===e.data.indexOf(a)&&d(+e.data.slice(a.length))},t.addEventListener?t.addEventListener("message",s,!1):t.attachEvent("onmessage",s),r=function(e){t.postMessage(a+e,"*")}),h.setImmediate=function(t){"function"!=typeof t&&(t=new Function(""+t));for(var e=new Array(arguments.length-1),n=0;n<e.length;n++)e[n]=arguments[n+1];var o={callback:t,args:e};return c[u]=o,r(u),u++},h.clearImmediate=p}function p(t){delete c[t]}function d(t){if(l)setTimeout(d,0,t);else{var e=c[t];if(e){l=!0;try{!function(t){var e=t.callback,n=t.args;switch(n.length){case 0:e();break;case 1:e(n[0]);break;case 2:e(n[0],n[1]);break;case 3:e(n[0],n[1],n[2]);break;default:e.apply(void 0,n)}}(e)}finally{p(t),l=!1}}}}}("undefined"==typeof self?void 0===t?this:t:self)}).call(this,n(35),n(167))},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(392),o=n(394),i=n(395),a=n(396),s=n(82);n(169),n(48),n(49),n(32),n(50),n(66),n(36),n(51),n(37),n(52),n(59),n(170),n(81),n(171),n(172),n(119),n(173),n(174),n(175),n(176),n(120),n(121),n(67),n(122),n(123),n(124),n(125),n(83),n(126),n(177),e.createCloudinaryLegacyURL=function(t,e){var n,u,c;"fetch"===e.type&&null==e.fetch_format&&(e.fetch_format=e.format);var l=e.type,f=e.resource_type||"image",h=e.version,p="boolean"!=typeof e.force_version||e.force_version;e.long_url_signature;var d=e.format,v=e.cloud_name;if(!v)throw"cloud_name must be provided in the configuration";var y=e.private_cdn,g=e.secure_distribution,m=e.secure,_=e.cdn_subdomain,b=e.secure_cdn_subdomain,w=e.cname,E=e.shorten,T=e.sign_url;e.api_secret;var S=e.url_suffix,O=e.use_root_path,C=e.auth_token,P=/^(image|raw)\/([a-z0-9_]+)\/v(\d+)\/([^#]+)$/.exec(t);P&&(f=P[1],l=P[2],h=P[3],t=P[4]);var k=t;if(null==t)return k;if(t=t.toString(),null===l&&t.match(/^https?:\//i))return k;f=(n=o.finalize_resource_type(f,l,S,O,E))[0],l=n[1],t=(u=i.finalize_source(t,d,S))[0],c=u[1],null==h&&p&&c.indexOf("/")>=0&&!c.match(/^v[0-9]+/)&&!c.match(/^https?:\//)&&(h=1),h=null!=h?"v".concat(h):null;var j=r.generateTransformationString(s.cloneDeep(e)).replace(/([^:])\/\//g,"$1/");if(T&&!C){var A=[j,c].filter((function(t){return null!=t&&""!==t})).join("/");try{for(var x=0;A!==decodeURIComponent(A)&&x<10;x++)A=decodeURIComponent(A)}catch(t){}}return[a.unsigned_url_prefix(t,v,y,_,b,w,m,g),f,l,j,h,t].filter((function(t){return null!=t&&""!==t})).join("/").replace(" ","%20")}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(169),o=n(170),i=n(171),a=n(172),s=n(48),u=n(119),c=n(173),l=n(174),f=n(81),h=n(175),p=n(176),d=n(120),v=n(177),y=n(59);n(49),n(32),n(50),n(66),n(36),n(51),n(37),n(52),n(121),n(67),n(122),n(82),n(123),n(124),n(125),n(83),n(126),e.generateTransformationString=function t(e){if("string"==typeof e)return e;if(e instanceof d.default)return e.toString();if(Array.isArray(e))return e.map((function(e){return t(e)})).filter((function(t){return t})).join("/");var n,g,m=e.size,_=e.overlay||e.underlay,b=e.crop,w=i.toArray(e.angle).join("."),E=(e.background||"").replace(/^#/,"rgb:"),T=(e.color||"").replace(/^#/,"rgb:"),S=i.toArray(e.flags||[]).join("."),O=void 0===e.dpr?e.dpr:v.processDpr(e.dpr),C=r.processLayer(e.overlay),P=a.processRadius(e.radius),k=r.processLayer(e.underlay),j=o.process_if(e.if),A=u.processCustomFunction(e.custom_function),x=c.processCustomPreFunction(e.custom_pre_function),R=e.fps,L=[],I=i.toArray(e.transformation||[]),N=e.effect,M=_||w||"fit"===b||"limit"===b;if(m){var D=m.split("x");n=D[0],g=D[1]}else n=e.width,g=e.height;n&&(0===n.toString().indexOf("auto")||M||parseFloat(n.toString())<1)&&delete e.width,g&&(M||parseFloat(g.toString())<1)&&delete e.height,I.some((function(t){return"object"==typeof t}))?I=I.map((function(e){return s.isObject(e)?t(e):t({transformation:e})})).filter((function(t){return t})):(L=I.join("."),I=[]),Array.isArray(N)?N=N.join(":"):s.isObject(N)&&(N=Object.entries(N).map((function(t){var e=t[0],n=t[1];return"".concat(e,":").concat(n)})));var F=e.border;s.isObject(F)?F="".concat(null!=F.width?F.width:2,"px_solid_").concat((null!=F.color?F.color:"black").replace(/^#/,"rgb:")):/^\d+$/.exec(F)&&(e.border=F,F=void 0),Array.isArray(R)&&(R=R.join("-"));var B={a:f.legacyNormalizeExpression(w),ar:f.legacyNormalizeExpression(e.aspect_ratio),b:E,bo:F,c:b,co:T,dpr:f.legacyNormalizeExpression(O),e:f.legacyNormalizeExpression(N),fl:S,fn:A||x,fps:R,h:f.legacyNormalizeExpression(g),ki:f.legacyNormalizeExpression(e.keyframe_interval),l:C,o:f.legacyNormalizeExpression(e.opacity),q:f.legacyNormalizeExpression(e.quality),r:P,t:L,u:k,w:f.legacyNormalizeExpression(n),x:f.legacyNormalizeExpression(e.x),y:f.legacyNormalizeExpression(e.y),z:f.legacyNormalizeExpression(e.zoom),ac:e.audio_codec,af:e.audio_frequency,br:e.bit_rate,cs:e.color_space,d:e.default_image,dl:e.delay,dn:e.density,du:h.normRangeValues(e.duration),eo:h.normRangeValues(e.end_offset||y.isNumberLike(e.end_offset)?e.end_offset:l.splitRange(e.offset)[1]),f:e.fetch_format,g:e.gravity,pg:e.page,p:e.prefix,so:h.normRangeValues(e.start_offset||y.isNumberLike(e.start_offset)?e.start_offset:l.splitRange(e.offset)[0]),sp:e.streaming_profile,vc:p.processVideoParams(e.video_codec),vs:e.video_sampling},V=Object.entries(e).filter((function(t){var e=t[0];return t[1],e.startsWith("$")})).map((function(t){var e=t[0],n=t[1];return"".concat(e,"_").concat(f.legacyNormalizeExpression(n))})).sort().concat((e.variables||[]).map((function(t){var e=t[0],n=t[1];return"".concat(e,"_").concat(f.legacyNormalizeExpression(n))}))).join(","),U=Object.entries(B).filter((function(t){t[0];var e=t[1];return null!=e&&(("string"!=typeof e||0!==e.length)&&(!Array.isArray(e)||0!==e.length))})).map((function(t){var e=t[0],n=t[1];return"".concat(e,"_").concat(n)})).sort().join(","),H=[j,V,U,e.raw_transformation].filter((function(t){return t})).join(",");return H&&I.push(H),I.join("/")}},function(t,e){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),t.webpackPolyfill=1),t}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.finalize_resource_type=function(t,e,n,r,o){if(null==e&&(e="upload"),null!=n)if("image"===t&&"upload"===e)t="images",e=null;else if("image"===t&&"private"===e)t="private_images",e=null;else if("image"===t&&"authenticated"===e)t="authenticated_images",e=null;else if("raw"===t&&"upload"===e)t="files",e=null;else{if("video"!==t||"upload"!==e)throw new Error("URL Suffix only supported for image/upload, image/private, image/authenticated, video/upload and raw/upload");t="videos",e=null}if(r){if(!("image"===t&&"upload"===e||"images"===t&&null==e))throw new Error("Root path only supported for image/upload");t=null,e=null}return o&&"image"===t&&"upload"===e&&(t="iu",e=null),[t,e]}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(50);e.finalize_source=function(t,e,n){var o;if((t=t.replace(/([^:])\/\//g,"$1/")).match(/^https?:\//i))o=t=r.smartEscape(t);else{if(o=t=encodeURIComponent(decodeURIComponent(t)).replace(/%3A/g,":").replace(/%2F/g,"/"),n){if(n.match(/[\.\/]/))throw new Error("url_suffix should not include . or /");t=t+"/"+n}null!=e&&(t=t+"."+e,o=o+"."+e)}return[t,o]}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(32);e.unsigned_url_prefix=function(t,e,n,o,i,a,s,u){var c;if(0===e.indexOf("/"))return"/res"+e;var l=!n;if(s)null!=u&&u!==r.OLD_AKAMAI_SHARED_CDN||(u=n?e+"-res.cloudinary.com":r.SHARED_CDN),null==l&&(l=u===r.SHARED_CDN),c="https://"+u;else if(a)c="http://"+a;else{c="http://"+[n?e+"-":"","res",".cloudinary.com"].join("")}return l&&(c+="/"+e),c}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.groupBy=void 0;e.groupBy=function(t,e){return t.reduce((function(t,n,r){return r=e(n),Object.prototype.hasOwnProperty.call(t,r)?t[r].push(n):t[r]=[n],t}),{})}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.fontFace=void 0;var r,o=(r=n(399))&&r.__esModule?r:{default:r};e.fontFace=function(t,e){var n=e.cloudinary.fontFace;void 0===n&&(n="Fira Sans"),n&&"inherit"!==n?(o.default.load({google:{families:[n]}}),t.style.fontFamily=n):"inherit"===n&&(t.style.fontFamily="inherit")}},function(t,e,n){var r;!function(){function o(t,e,n){return t.call.apply(t.bind,arguments)}function i(t,e,n){if(!t)throw Error();if(2<arguments.length){var r=Array.prototype.slice.call(arguments,2);return function(){var n=Array.prototype.slice.call(arguments);return Array.prototype.unshift.apply(n,r),t.apply(e,n)}}return function(){return t.apply(e,arguments)}}function a(t,e,n){return(a=Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?o:i).apply(null,arguments)}var s=Date.now||function(){return+new Date};function u(t,e){this.a=t,this.o=e||t,this.c=this.o.document}var c=!!window.FontFace;function l(t,e,n,r){if(e=t.c.createElement(e),n)for(var o in n)n.hasOwnProperty(o)&&("style"==o?e.style.cssText=n[o]:e.setAttribute(o,n[o]));return r&&e.appendChild(t.c.createTextNode(r)),e}function f(t,e,n){(t=t.c.getElementsByTagName(e)[0])||(t=document.documentElement),t.insertBefore(n,t.lastChild)}function h(t){t.parentNode&&t.parentNode.removeChild(t)}function p(t,e,n){e=e||[],n=n||[];for(var r=t.className.split(/\s+/),o=0;o<e.length;o+=1){for(var i=!1,a=0;a<r.length;a+=1)if(e[o]===r[a]){i=!0;break}i||r.push(e[o])}for(e=[],o=0;o<r.length;o+=1){for(i=!1,a=0;a<n.length;a+=1)if(r[o]===n[a]){i=!0;break}i||e.push(r[o])}t.className=e.join(" ").replace(/\s+/g," ").replace(/^\s+|\s+$/,"")}function d(t,e){for(var n=t.className.split(/\s+/),r=0,o=n.length;r<o;r++)if(n[r]==e)return!0;return!1}function v(t,e,n){function r(){s&&o&&i&&(s(a),s=null)}e=l(t,"link",{rel:"stylesheet",href:e,media:"all"});var o=!1,i=!0,a=null,s=n||null;c?(e.onload=function(){o=!0,r()},e.onerror=function(){o=!0,a=Error("Stylesheet failed to load"),r()}):setTimeout((function(){o=!0,r()}),0),f(t,"head",e)}function y(t,e,n,r){var o=t.c.getElementsByTagName("head")[0];if(o){var i=l(t,"script",{src:e}),a=!1;return i.onload=i.onreadystatechange=function(){a||this.readyState&&"loaded"!=this.readyState&&"complete"!=this.readyState||(a=!0,n&&n(null),i.onload=i.onreadystatechange=null,"HEAD"==i.parentNode.tagName&&o.removeChild(i))},o.appendChild(i),setTimeout((function(){a||(a=!0,n&&n(Error("Script load timeout")))}),r||5e3),i}return null}function g(){this.a=0,this.c=null}function m(t){return t.a++,function(){t.a--,b(t)}}function _(t,e){t.c=e,b(t)}function b(t){0==t.a&&t.c&&(t.c(),t.c=null)}function w(t){this.a=t||"-"}function E(t,e){this.c=t,this.f=4,this.a="n";var n=(e||"n4").match(/^([nio])([1-9])$/i);n&&(this.a=n[1],this.f=parseInt(n[2],10))}function T(t){var e=[];t=t.split(/,\s*/);for(var n=0;n<t.length;n++){var r=t[n].replace(/['"]/g,"");-1!=r.indexOf(" ")||/^\d/.test(r)?e.push("'"+r+"'"):e.push(r)}return e.join(",")}function S(t){return t.a+t.f}function O(t){var e="normal";return"o"===t.a?e="oblique":"i"===t.a&&(e="italic"),e}function C(t){var e=4,n="n",r=null;return t&&((r=t.match(/(normal|oblique|italic)/i))&&r[1]&&(n=r[1].substr(0,1).toLowerCase()),(r=t.match(/([1-9]00|normal|bold)/i))&&r[1]&&(/bold/i.test(r[1])?e=7:/[1-9]00/.test(r[1])&&(e=parseInt(r[1].substr(0,1),10)))),n+e}function P(t,e){this.c=t,this.f=t.o.document.documentElement,this.h=e,this.a=new w("-"),this.j=!1!==e.events,this.g=!1!==e.classes}function k(t){if(t.g){var e=d(t.f,t.a.c("wf","active")),n=[],r=[t.a.c("wf","loading")];e||n.push(t.a.c("wf","inactive")),p(t.f,n,r)}j(t,"inactive")}function j(t,e,n){t.j&&t.h[e]&&(n?t.h[e](n.c,S(n)):t.h[e]())}function A(){this.c={}}function x(t,e){this.c=t,this.f=e,this.a=l(this.c,"span",{"aria-hidden":"true"},this.f)}function R(t){f(t.c,"body",t.a)}function L(t){return"display:block;position:absolute;top:-9999px;left:-9999px;font-size:300px;width:auto;height:auto;line-height:normal;margin:0;padding:0;font-variant:normal;white-space:nowrap;font-family:"+T(t.c)+";font-style:"+O(t)+";font-weight:"+t.f+"00;"}function I(t,e,n,r,o,i){this.g=t,this.j=e,this.a=r,this.c=n,this.f=o||3e3,this.h=i||void 0}function N(t,e,n,r,o,i,a){this.v=t,this.B=e,this.c=n,this.a=r,this.s=a||"BESbswy",this.f={},this.w=o||3e3,this.u=i||null,this.m=this.j=this.h=this.g=null,this.g=new x(this.c,this.s),this.h=new x(this.c,this.s),this.j=new x(this.c,this.s),this.m=new x(this.c,this.s),t=L(t=new E(this.a.c+",serif",S(this.a))),this.g.a.style.cssText=t,t=L(t=new E(this.a.c+",sans-serif",S(this.a))),this.h.a.style.cssText=t,t=L(t=new E("serif",S(this.a))),this.j.a.style.cssText=t,t=L(t=new E("sans-serif",S(this.a))),this.m.a.style.cssText=t,R(this.g),R(this.h),R(this.j),R(this.m)}w.prototype.c=function(t){for(var e=[],n=0;n<arguments.length;n++)e.push(arguments[n].replace(/[\W_]+/g,"").toLowerCase());return e.join(this.a)},I.prototype.start=function(){var t=this.c.o.document,e=this,n=s(),r=new Promise((function(r,o){!function i(){s()-n>=e.f?o():t.fonts.load(function(t){return O(t)+" "+t.f+"00 300px "+T(t.c)}(e.a),e.h).then((function(t){1<=t.length?r():setTimeout(i,25)}),(function(){o()}))}()})),o=null,i=new Promise((function(t,n){o=setTimeout(n,e.f)}));Promise.race([i,r]).then((function(){o&&(clearTimeout(o),o=null),e.g(e.a)}),(function(){e.j(e.a)}))};var M={D:"serif",C:"sans-serif"},D=null;function F(){if(null===D){var t=/AppleWebKit\/([0-9]+)(?:\.([0-9]+))/.exec(window.navigator.userAgent);D=!!t&&(536>parseInt(t[1],10)||536===parseInt(t[1],10)&&11>=parseInt(t[2],10))}return D}function B(t,e,n){for(var r in M)if(M.hasOwnProperty(r)&&e===t.f[M[r]]&&n===t.f[M[r]])return!0;return!1}function V(t){var e,n=t.g.a.offsetWidth,r=t.h.a.offsetWidth;(e=n===t.f.serif&&r===t.f["sans-serif"])||(e=F()&&B(t,n,r)),e?s()-t.A>=t.w?F()&&B(t,n,r)&&(null===t.u||t.u.hasOwnProperty(t.a.c))?U(t,t.v):U(t,t.B):function(t){setTimeout(a((function(){V(this)}),t),50)}(t):U(t,t.v)}function U(t,e){setTimeout(a((function(){h(this.g.a),h(this.h.a),h(this.j.a),h(this.m.a),e(this.a)}),t),0)}function H(t,e,n){this.c=t,this.a=e,this.f=0,this.m=this.j=!1,this.s=n}N.prototype.start=function(){this.f.serif=this.j.a.offsetWidth,this.f["sans-serif"]=this.m.a.offsetWidth,this.A=s(),V(this)};var Y=null;function z(t){0==--t.f&&t.j&&(t.m?((t=t.a).g&&p(t.f,[t.a.c("wf","active")],[t.a.c("wf","loading"),t.a.c("wf","inactive")]),j(t,"active")):k(t.a))}function W(t){this.j=t,this.a=new A,this.h=0,this.f=this.g=!0}function G(t,e,n,r,o){var i=0==--t.h;(t.f||t.g)&&setTimeout((function(){var t=o||null,s=r||{};if(0===n.length&&i)k(e.a);else{e.f+=n.length,i&&(e.j=i);var u,c=[];for(u=0;u<n.length;u++){var l=n[u],f=s[l.c],h=e.a,d=l;if(h.g&&p(h.f,[h.a.c("wf",d.c,S(d).toString(),"loading")]),j(h,"fontloading",d),h=null,null===Y)if(window.FontFace){d=/Gecko.*Firefox\/(\d+)/.exec(window.navigator.userAgent);var v=/OS X.*Version\/10\..*Safari/.exec(window.navigator.userAgent)&&/Apple/.exec(window.navigator.vendor);Y=d?42<parseInt(d[1],10):!v}else Y=!1;h=Y?new I(a(e.g,e),a(e.h,e),e.c,l,e.s,f):new N(a(e.g,e),a(e.h,e),e.c,l,e.s,t,f),c.push(h)}for(u=0;u<c.length;u++)c[u].start()}}),0)}function K(t,e){this.c=t,this.a=e}function X(t,e){this.c=t,this.a=e}function q(t,e){this.c=t||$,this.a=[],this.f=[],this.g=e||""}H.prototype.g=function(t){var e=this.a;e.g&&p(e.f,[e.a.c("wf",t.c,S(t).toString(),"active")],[e.a.c("wf",t.c,S(t).toString(),"loading"),e.a.c("wf",t.c,S(t).toString(),"inactive")]),j(e,"fontactive",t),this.m=!0,z(this)},H.prototype.h=function(t){var e=this.a;if(e.g){var n=d(e.f,e.a.c("wf",t.c,S(t).toString(),"active")),r=[],o=[e.a.c("wf",t.c,S(t).toString(),"loading")];n||r.push(e.a.c("wf",t.c,S(t).toString(),"inactive")),p(e.f,r,o)}j(e,"fontinactive",t),z(this)},W.prototype.load=function(t){this.c=new u(this.j,t.context||this.j),this.g=!1!==t.events,this.f=!1!==t.classes,function(t,e,n){var r=[],o=n.timeout;!function(t){t.g&&p(t.f,[t.a.c("wf","loading")]),j(t,"loading")}(e);r=function(t,e,n){var r,o=[];for(r in e)if(e.hasOwnProperty(r)){var i=t.c[r];i&&o.push(i(e[r],n))}return o}(t.a,n,t.c);var i=new H(t.c,e,o);for(t.h=r.length,e=0,n=r.length;e<n;e++)r[e].load((function(e,n,r){G(t,i,e,n,r)}))}(this,new P(this.c,t),t)},K.prototype.load=function(t){function e(){if(i["__mti_fntLst"+r]){var n,o=i["__mti_fntLst"+r](),a=[];if(o)for(var s=0;s<o.length;s++){var u=o[s].fontfamily;null!=o[s].fontStyle&&null!=o[s].fontWeight?(n=o[s].fontStyle+o[s].fontWeight,a.push(new E(u,n))):a.push(new E(u))}t(a)}else setTimeout((function(){e()}),50)}var n=this,r=n.a.projectId,o=n.a.version;if(r){var i=n.c.o;y(this.c,(n.a.api||"https://fast.fonts.net/jsapi")+"/"+r+".js"+(o?"?v="+o:""),(function(o){o?t([]):(i["__MonotypeConfiguration__"+r]=function(){return n.a},e())})).id="__MonotypeAPIScript__"+r}else t([])},X.prototype.load=function(t){var e,n,r=this.a.urls||[],o=this.a.families||[],i=this.a.testStrings||{},a=new g;for(e=0,n=r.length;e<n;e++)v(this.c,r[e],m(a));var s=[];for(e=0,n=o.length;e<n;e++)if((r=o[e].split(":"))[1])for(var u=r[1].split(","),c=0;c<u.length;c+=1)s.push(new E(r[0],u[c]));else s.push(new E(r[0]));_(a,(function(){t(s,i)}))};var $="https://fonts.googleapis.com/css";function J(t){this.f=t,this.a=[],this.c={}}var Q={latin:"BESbswy","latin-ext":"çöüğş",cyrillic:"йяЖ",greek:"αβΣ",khmer:"កខគ",Hanuman:"កខគ"},Z={thin:"1",extralight:"2","extra-light":"2",ultralight:"2","ultra-light":"2",light:"3",regular:"4",book:"4",medium:"5","semi-bold":"6",semibold:"6","demi-bold":"6",demibold:"6",bold:"7","extra-bold":"8",extrabold:"8","ultra-bold":"8",ultrabold:"8",black:"9",heavy:"9",l:"3",r:"4",b:"7"},tt={i:"i",italic:"i",n:"n",normal:"n"},et=/^(thin|(?:(?:extra|ultra)-?)?light|regular|book|medium|(?:(?:semi|demi|extra|ultra)-?)?bold|black|heavy|l|r|b|[1-9]00)?(n|i|normal|italic)?$/;function nt(t,e){this.c=t,this.a=e}var rt={Arimo:!0,Cousine:!0,Tinos:!0};function ot(t,e){this.c=t,this.a=e}function it(t,e){this.c=t,this.f=e,this.a=[]}nt.prototype.load=function(t){var e=new g,n=this.c,r=new q(this.a.api,this.a.text),o=this.a.families;!function(t,e){for(var n=e.length,r=0;r<n;r++){var o=e[r].split(":");3==o.length&&t.f.push(o.pop());var i="";2==o.length&&""!=o[1]&&(i=":"),t.a.push(o.join(i))}}(r,o);var i=new J(o);!function(t){for(var e=t.f.length,n=0;n<e;n++){var r=t.f[n].split(":"),o=r[0].replace(/\+/g," "),i=["n4"];if(2<=r.length){var a;if(a=[],s=r[1])for(var s,u=(s=s.split(",")).length,c=0;c<u;c++){var l;if((l=s[c]).match(/^[\w-]+$/))if(null==(f=et.exec(l.toLowerCase())))l="";else{if(l=null==(l=f[2])||""==l?"n":tt[l],null==(f=f[1])||""==f)f="4";else var f=Z[f]||(isNaN(f)?"4":f.substr(0,1));l=[l,f].join("")}else l="";l&&a.push(l)}0<a.length&&(i=a),3==r.length&&(a=[],0<(r=(r=r[2])?r.split(","):a).length&&(r=Q[r[0]])&&(t.c[o]=r))}for(t.c[o]||(r=Q[o])&&(t.c[o]=r),r=0;r<i.length;r+=1)t.a.push(new E(o,i[r]))}}(i),v(n,function(t){if(0==t.a.length)throw Error("No fonts to load!");if(-1!=t.c.indexOf("kit="))return t.c;for(var e=t.a.length,n=[],r=0;r<e;r++)n.push(t.a[r].replace(/ /g,"+"));return e=t.c+"?family="+n.join("%7C"),0<t.f.length&&(e+="&subset="+t.f.join(",")),0<t.g.length&&(e+="&text="+encodeURIComponent(t.g)),e}(r),m(e)),_(e,(function(){t(i.a,i.c,rt)}))},ot.prototype.load=function(t){var e=this.a.id,n=this.c.o;e?y(this.c,(this.a.api||"https://use.typekit.net")+"/"+e+".js",(function(e){if(e)t([]);else if(n.Typekit&&n.Typekit.config&&n.Typekit.config.fn){e=n.Typekit.config.fn;for(var r=[],o=0;o<e.length;o+=2)for(var i=e[o],a=e[o+1],s=0;s<a.length;s++)r.push(new E(i,a[s]));try{n.Typekit.load({events:!1,classes:!1,async:!0})}catch(t){}t(r)}}),2e3):t([])},it.prototype.load=function(t){var e=this.f.id,n=this.c.o,r=this;e?(n.__webfontfontdeckmodule__||(n.__webfontfontdeckmodule__={}),n.__webfontfontdeckmodule__[e]=function(e,n){for(var o=0,i=n.fonts.length;o<i;++o){var a=n.fonts[o];r.a.push(new E(a.name,C("font-weight:"+a.weight+";font-style:"+a.style)))}t(r.a)},y(this.c,(this.f.api||"https://f.fontdeck.com/s/css/js/")+function(t){return t.o.location.hostname||t.a.location.hostname}(this.c)+"/"+e+".js",(function(e){e&&t([])}))):t([])};var at=new W(window);at.a.c.custom=function(t,e){return new X(e,t)},at.a.c.fontdeck=function(t,e){return new it(e,t)},at.a.c.monotype=function(t,e){return new K(e,t)},at.a.c.typekit=function(t,e){return new ot(e,t)},at.a.c.google=function(t,e){return new nt(e,t)};var st={load:a(at.load,at)};void 0===(r=function(){return st}.call(e,n,e,t))||(t.exports=r)}()},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.playButton=void 0;e.playButton=function(t,e){"init"===e.bigPlayButton&&(t.classList.add("vjs-big-play-button-init-only"),e.bigPlayButton=!0)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=function(t){var e=t.loop(),n=t.paused(),r=t.muted(),o=t.isFullscreen(),i={class:"player-version",label:"Cloudinary Player v1.9.2"};return t.controls()?[{label:e?"Unloop":"Loop",listener:function(){t.loop(!e)}},{label:n?"Play":"Pause",listener:function(){n?t.play():t.pause()}},{label:r?"Unmute":"Mute",listener:function(){t.muted(!r)}},{label:o?"Exit Fullscreen":"Fullscreen",listener:function(){o?t.exitFullscreen():t.requestFullscreen()}},i]:[i]};e.default=r},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.normalizeAttributes=void 0;var r=n(80),o=/^(data-cld-)(\w+)/,i={};var a=function(t){return function(t){var e=null;if(""===t)return!0;try{e=JSON.parse(t)}catch(t){}return e||(e=Number(t))||t}(t)};e.normalizeAttributes=function(t){var e={};if(t&&t.attributes&&t.attributes.length>0)for(var n=t.attributes,s=n.length-1;s>=0;s--){var u=n[s].name,c=n[s].value;if(u.match(o)&&(u=(0,r.camelize)(u.replace(o,"$2"))),"boolean"==typeof t[u])c=null!==c;else c=(i[u]||a)(c);e[u]=c}return e}},function(t,e,n){(function(e){var n;n=void 0!==e?e:this,t.exports=function(t){if(t.CSS&&t.CSS.escape)return t.CSS.escape;var e=function(t){if(0==arguments.length)throw new TypeError("`CSS.escape` requires an argument.");for(var e,n=String(t),r=n.length,o=-1,i="",a=n.charCodeAt(0);++o<r;)0!=(e=n.charCodeAt(o))?i+=e>=1&&e<=31||127==e||0==o&&e>=48&&e<=57||1==o&&e>=48&&e<=57&&45==a?"\\"+e.toString(16)+" ":0==o&&1==r&&45==e||!(e>=128||45==e||95==e||e>=48&&e<=57||e>=65&&e<=90||e>=97&&e<=122)?"\\"+n.charAt(o):n.charAt(o):i+="�";return i};return t.CSS||(t.CSS={}),t.CSS.escape=e,e}(n)}).call(this,n(35))},function(t,e,n){"use strict";function r(t){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r(t)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=s(n(1));n(180);var i=s(n(405)),a=n(27);function s(t){return t&&t.__esModule?t:{default:t}}function u(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function c(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function l(t,e){return l=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},l(t,e)}function f(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=y(t);if(e){var o=y(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return h(this,n)}}function h(t,e){if(e&&("object"===r(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return p(t)}function p(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function d(){return d="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var r=v(t,e);if(r){var o=Object.getOwnPropertyDescriptor(r,e);return o.get?o.get.call(arguments.length<3?t:n):o.value}},d.apply(this,arguments)}function v(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=y(t)););return t}function y(t){return y=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},y(t)}var g=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&l(t,e)}(h,t);var e,n,r,s=f(h);function h(t){var e,n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};u(this,h),n=s.call(this,t,r);var o=function(){n.render()};return t.on(a.PLAYER_EVENT.PLAYLIST_ITEM_CHANGED,o),n.render(),n.dispose=function(){d((e=p(n),y(h.prototype)),"dispose",e).call(e),t.off(a.PLAYER_EVENT.PLAYLIST_ITEM_CHANGED,o)},n}return e=h,(n=[{key:"createEl",value:function(){var t=d(y(h.prototype),"createEl",this).call(this);return t.classList.add("cld-plw-panel"),t}},{key:"removeAll",value:function(){for(var t=this.children(),e=t.length-1;e>=0;--e)this.removeChild(t[e])}},{key:"getItems",value:function(){var t=this.player().cloudinary.playlist(),e=t._repeat;if(this.options_.showAll)return t.list();var n=[],r=this.options_.total,o=t.currentIndex(),i=t.list()[o];for(n.push(i);n.length<r;){if(-1===(o=t.nextIndex(o))){if(!e&&n.length>0)break;o=0}i=t.list()[o],n.push(i)}return n}},{key:"render",value:function(){var t=this,e=this.getItems();this.removeAll(),e.forEach((function(e,n){var r=new i.default(t.player(),o.default.mergeOptions(t.options_,{item:e,next:1===n,current:0===n}));t.addChild(r)}))}}])&&c(e.prototype,n),r&&c(e,r),Object.defineProperty(e,"prototype",{writable:!1}),h}(o.default.getComponent("Component"));o.default.registerComponent("playlistPanel",g);var m=g;e.default=m},function(t,e,n){"use strict";function r(t){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r(t)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=a(n(1)),i=a(n(406));function a(t){return t&&t.__esModule?t:{default:t}}function s(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function u(){return u="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var r=c(t,e);if(r){var o=Object.getOwnPropertyDescriptor(r,e);return o.get?o.get.call(arguments.length<3?t:n):o.value}},u.apply(this,arguments)}function c(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=p(t)););return t}function l(t,e){return l=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},l(t,e)}function f(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=p(t);if(e){var o=p(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return h(this,n)}}function h(t,e){if(e&&("object"===r(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function p(t){return p=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},p(t)}var d=o.default.dom||o.default,v={source:null,next:!1},y=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&l(t,e)}(a,t);var e,n,r,i=f(a);function a(t,e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,a);var n=o.default.mergeOptions(v,e);return i.call(this,t,n)}return e=a,(n=[{key:"handleClick",value:function(t){u(p(a.prototype),"handleClick",this).call(this,t),this.play()}},{key:"play",value:function(){var t=this.getItem(),e=this.player().cloudinary.playlist().list().indexOf(t);if(-1===e)throw new Error("Invalid playlist item...");this.player().cloudinary.playlist().playAtIndex(e)}},{key:"isCurrent",value:function(){return this.options_.current}},{key:"getTitle",value:function(){return u(p(a.prototype),"getTitle",this).call(this)}},{key:"getDuration",value:function(){return u(p(a.prototype),"getDuration",this).call(this)}},{key:"createEl",value:function(){var t=u(p(a.prototype),"createEl",this).call(this);t.classList.add("cld-plw-panel-item");var e=d.createEl("div",{className:"cld-plw-item-info-wrap"}),n=d.createEl("div",{className:"cld-plw-item-title"});if(this.isCurrent()){t.classList.add("cld-plw-panel-item-active");var r=d.createEl("span",{className:"cld-plw-item-title-curr"},{},"Now Playing: ");n.appendChild(r)}var o=d.createEl("span",{className:"cld-plw-item-title"},{},this.getTitle());n.appendChild(o);var i=d.createEl("div",{className:"cld-plw-item-duration"},{},this.getDuration());return e.appendChild(n),e.appendChild(i),t&&t.appendChild(e),t.appendChild(e),t}}])&&s(e.prototype,n),r&&s(e,r),Object.defineProperty(e,"prototype",{writable:!1}),a}(i.default);o.default.registerComponent("playlistPanelItem",y);var g=y;e.default=g},function(t,e,n){"use strict";function r(t){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r(t)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o,i=(o=n(1))&&o.__esModule?o:{default:o};function a(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function s(){return s="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var r=u(t,e);if(r){var o=Object.getOwnPropertyDescriptor(r,e);return o.get?o.get.call(arguments.length<3?t:n):o.value}},s.apply(this,arguments)}function u(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=h(t)););return t}function c(t,e){return c=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},c(t,e)}function l(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=h(t);if(e){var o=h(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return f(this,n)}}function f(t,e){if(e&&("object"===r(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function h(t){return h=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},h(t)}n(407);var p=i.default.getComponent("ClickableComponent"),d={item:null,transformation:{width:300,aspect_ratio:"16:9",crop:"pad",background:"black"}},v=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&c(t,e)}(u,t);var e,n,r,o=l(u);function u(t,e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,u);var n=i.default.mergeOptions(d,e);return o.call(this,t,n)}return e=u,n=[{key:"getItem",value:function(){return this.options_.item}},{key:"getTitle",value:function(){return this.getItem().info().title}},{key:"getDuration",value:function(){return" "}},{key:"getThumbnail",value:function(){return this.getItem().poster().url({transformation:this.options_.transformation})}},{key:"handleClick",value:function(t){t.preventDefault()}},{key:"createControlTextEl",value:function(){}},{key:"createEl",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"a",e=s(h(u.prototype),"createEl",this).call(this,t,{className:"cld-thumbnail",href:"#"}),n=s(h(u.prototype),"createEl",this).call(this,"img",{className:"cld-thumbnail-img",src:this.getThumbnail()});return e.appendChild(n),e.style.backgroundImage="url('".concat(this.getThumbnail(),"')"),e}}],n&&a(e.prototype,n),r&&a(e,r),Object.defineProperty(e,"prototype",{writable:!1}),u}(p),y=v;e.default=y},function(t,e,n){"use strict";n.r(e)},function(t,e,n){"use strict";function r(t){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r(t)}var o,i=(o=n(1))&&o.__esModule?o:{default:o};function a(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function s(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function u(){return u="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var r=c(t,e);if(r){var o=Object.getOwnPropertyDescriptor(r,e);return o.get?o.get.call(arguments.length<3?t:n):o.value}},u.apply(this,arguments)}function c(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=p(t)););return t}function l(t,e){return l=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},l(t,e)}function f(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=p(t);if(e){var o=p(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return h(this,n)}}function h(t,e){if(e&&("object"===r(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function p(t){return p=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},p(t)}var d=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&l(t,e)}(i,t);var e,n,r,o=f(i);function i(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return a(this,i),o.call(this,t,e)}return e=i,(n=[{key:"createEl",value:function(){return u(p(i.prototype),"createEl",this).call(this,"div",{className:"vjs-progress-control-events-blocker"})}}])&&s(e.prototype,n),r&&s(e,r),Object.defineProperty(e,"prototype",{writable:!1}),i}(i.default.getComponent("Component"));i.default.registerComponent("progressControlEventsBlocker",d)},function(t,e,n){"use strict";var r;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=((r=n(410))&&r.__esModule?r:{default:r}).default;e.default=o},function(t,e,n){"use strict";function r(t){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r(t)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=s(n(1)),i=s(n(411)),a=s(n(415));function s(t){return t&&t.__esModule?t:{default:t}}function u(t){return function(t){if(Array.isArray(t))return c(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return c(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return c(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function c(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function l(t,e,n){return l=g()?Reflect.construct:function(t,e,n){var r=[null];r.push.apply(r,e);var o=new(Function.bind.apply(t,r));return n&&v(o,n.prototype),o},l.apply(null,arguments)}function f(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function h(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function p(){return p="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var r=d(t,e);if(r){var o=Object.getOwnPropertyDescriptor(r,e);return o.get?o.get.call(arguments.length<3?t:n):o.value}},p.apply(this,arguments)}function d(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=m(t)););return t}function v(t,e){return v=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},v(t,e)}function y(t,e){if(e&&("object"===r(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function g(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}function m(t){return m=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},m(t)}n(416);var _=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&v(t,e)}(_,t);var e,n,r,s,c,d=(e=_,n=g(),function(){var t,r=m(e);if(n){var o=m(this).constructor;t=Reflect.construct(r,arguments,o)}else t=r.apply(this,arguments);return y(this,t)});function _(t,e){var n;f(this,_);for(var r=arguments.length,o=new Array(r>2?r-2:0),s=2;s<r;s++)o[s-2]=arguments[s];return(n=d.call.apply(d,[this,t].concat(o)))._content=new i.default(t),n.addChild(n._content),n.addChild(l(a.default,[t,{clickHandler:function(){n.close()}}].concat(o))),n.setEvents(t),n.doNotOpen=!1,n}return r=_,s=[{key:"setEvents",value:function(t){var e=this;this.on(t,"recommendationschanged",(function(t,n){e.setItems.apply(e,u(n.items))})),this.on(t,"recommendationsnoshow",this.setDoNotOpen),this.on(t,"recommendationsshow",this.open),this.on(t,"recommendationshide",this.close),this.on(t,"cldsourcechanged",(function(){e.clearItems(),e.close()}))}},{key:"setDoNotOpen",value:function(){this.doNotOpen=!0}},{key:"open",value:function(){this.doNotOpen||(this._showControlsOnClose=this.player().controls(),this.player().controls(!1),this.el().style.visibility="visible")}},{key:"clearItems",value:function(){this._content.clearItems()}},{key:"close",value:function(){this.el().style.visibility="hidden",this._showControlsOnClose&&this.player().controls(!0)}},{key:"createEl",value:function(){var t="vjs-recommendations-overlay",e=p(m(_.prototype),"createEl",this).call(this,"div",{className:t});return o.default.dom.addClass(e,t),e}},{key:"setItems",value:function(t){for(var e,n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];this.doNotOpen=!1,r=r.slice(0,3),(e=this._content).setItems.apply(e,[t].concat(u(r)))}},{key:"handleClick",value:function(){this.stopPropagation()}},{key:"dispose",value:function(){p(m(_.prototype),"dispose",this).call(this)}}],s&&h(r.prototype,s),c&&h(r,c),Object.defineProperty(r,"prototype",{writable:!1}),_}(o.default.getComponent("Component"));o.default.registerComponent("recommendationsOverlay",_);var b=_;e.default=b},function(t,e,n){"use strict";function r(t){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r(t)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=s(n(1)),i=s(n(412)),a=s(n(413));function s(t){return t&&t.__esModule?t:{default:t}}function u(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function c(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function l(t,e,n){return e&&c(t.prototype,e),n&&c(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function f(){return f="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var r=h(t,e);if(r){var o=Object.getOwnPropertyDescriptor(r,e);return o.get?o.get.call(arguments.length<3?t:n):o.value}},f.apply(this,arguments)}function h(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=g(t)););return t}function p(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&d(t,e)}function d(t,e){return d=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},d(t,e)}function v(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=g(t);if(e){var o=g(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return y(this,n)}}function y(t,e){if(e&&("object"===r(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function g(t){return g=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},g(t)}var m=o.default.getComponent("Component"),_=function(t){p(n,t);var e=v(n);function n(t){var r;u(this,n);for(var o=arguments.length,i=new Array(o>1?o-1:0),a=1;a<o;a++)i[a-1]=arguments[a];return(r=e.call.apply(e,[this,t].concat(i)))._content=new b(t),r.addChild(r._content),r}return l(n,[{key:"setItems",value:function(t){for(var e,n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];(e=this._content).setItems.apply(e,[t].concat(r))}},{key:"clearItems",value:function(){this._content._primary.clearItem(),this._content._secondaryContainer.clearItems()}},{key:"createEl",value:function(){return f(g(n.prototype),"createEl",this).call(this,"div",{className:"vjs-recommendations-overlay-content"})}}]),n}(m),b=function(t){p(n,t);var e=v(n);function n(t){var r;u(this,n);for(var o=arguments.length,s=new Array(o>1?o-1:0),c=1;c<o;c++)s[c-1]=arguments[c];return(r=e.call.apply(e,[this,t].concat(s)))._primary=new i.default(t),r._secondaryContainer=new a.default(t),r.addChild(r._primary),r.addChild(r._secondaryContainer),r}return l(n,[{key:"setItems",value:function(t){var e;this._primary.setItem(t);for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];(e=this._secondaryContainer).setItems.apply(e,r)}},{key:"createEl",value:function(){return f(g(n.prototype),"createEl",this).call(this,"div",{className:"aspect-ratio-content"})}}]),n}(m),w=_;e.default=w},function(t,e,n){"use strict";function r(t){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r(t)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=s(n(1)),i=s(n(181)),a=s(n(182));function s(t){return t&&t.__esModule?t:{default:t}}function u(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function c(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function l(){return l="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var r=f(t,e);if(r){var o=Object.getOwnPropertyDescriptor(r,e);return o.get?o.get.call(arguments.length<3?t:n):o.value}},l.apply(this,arguments)}function f(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=v(t)););return t}function h(t,e){return h=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},h(t,e)}function p(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=v(t);if(e){var o=v(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return d(this,n)}}function d(t,e){if(e&&("object"===r(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function v(t){return v=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},v(t)}var y=o.default.dom||o.default,g=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&h(t,e)}(i,t);var e,n,r,o=p(i);function i(){return u(this,i),o.apply(this,arguments)}return e=i,(n=[{key:"setItem",value:function(t){l(v(i.prototype),"setItem",this).call(this,t);var e=this.source.info();if(this.setTitle(e.title),this.setSubtitle(e.subtitle),e.description){var n=e.description.length>300?e.description.substring(0,300)+"...":e.description;this.setDescription(n)}}},{key:"setPoster",value:function(t){this.poster.style.backgroundImage="url('".concat(t,"')")}},{key:"setTitle",value:function(t){a.default.setText(this.title,t)}},{key:"setSubtitle",value:function(t){a.default.setText(this.subtitle,t)}},{key:"setDescription",value:function(t){a.default.setText(this.description,t)}},{key:"clearItem",value:function(){this.setTitle(""),this.setSubtitle(""),this.setDescription(""),this.poster.style.backgroundImage=null}},{key:"createEl",value:function(){var t=l(v(i.prototype),"createEl",this).call(this,"div",{className:"vjs-recommendations-overlay-item vjs-recommendations-overlay-item-primary"});return this.poster=y.createEl("div",{className:"vjs-recommendations-overlay-item-primary-image"}),this.title=y.createEl("h2"),this.title.innerHTML="",this.subtitle=y.createEl("h3"),this.subtitle.innerHTML="",this.description=y.createEl("p"),this.description.innerHTML="",this.content=y.createEl("div",{className:"vjs-recommendations-overlay-item-info vjs-recommendations-overlay-item-primary-content"}),this.content.appendChild(this.title),this.content.appendChild(this.subtitle),this.content.appendChild(this.description),t.appendChild(this.poster),t.appendChild(this.content),t}}])&&c(e.prototype,n),r&&c(e,r),Object.defineProperty(e,"prototype",{writable:!1}),i}(i.default),m=g;e.default=m},function(t,e,n){"use strict";function r(t){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r(t)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=a(n(1)),i=a(n(414));function a(t){return t&&t.__esModule?t:{default:t}}function s(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function u(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function c(){return c="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var r=l(t,e);if(r){var o=Object.getOwnPropertyDescriptor(r,e);return o.get?o.get.call(arguments.length<3?t:n):o.value}},c.apply(this,arguments)}function l(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=d(t)););return t}function f(t,e){return f=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},f(t,e)}function h(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=d(t);if(e){var o=d(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return p(this,n)}}function p(t,e){if(e&&("object"===r(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function d(t){return d=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},d(t)}var v=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&f(t,e)}(a,t);var e,n,r,o=h(a);function a(){return s(this,a),o.apply(this,arguments)}return e=a,n=[{key:"setItems",value:function(){for(var t=this,e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];this.clearItems(),n&&n.forEach((function(e){var n=new i.default(t.player());n.setItem(e),t.addChild(n)}))}},{key:"clearItems",value:function(){var t=this;this.children().forEach((function(){t.removeChild(t.children()[0])}))}},{key:"createEl",value:function(){return c(d(a.prototype),"createEl",this).call(this,"div",{className:"vjs-recommendations-overlay-item-secondary-container"})}}],n&&u(e.prototype,n),r&&u(e,r),Object.defineProperty(e,"prototype",{writable:!1}),a}(o.default.getComponent("Component")),y=v;e.default=y},function(t,e,n){"use strict";function r(t){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r(t)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=a(n(1)),i=a(n(181));function a(t){return t&&t.__esModule?t:{default:t}}function s(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function u(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function c(){return c="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var r=l(t,e);if(r){var o=Object.getOwnPropertyDescriptor(r,e);return o.get?o.get.call(arguments.length<3?t:n):o.value}},c.apply(this,arguments)}function l(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=d(t)););return t}function f(t,e){return f=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},f(t,e)}function h(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=d(t);if(e){var o=d(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return p(this,n)}}function p(t,e){if(e&&("object"===r(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function d(t){return d=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},d(t)}var v=o.default.dom||o.default,y=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&f(t,e)}(i,t);var e,n,r,o=h(i);function i(){return s(this,i),o.apply(this,arguments)}return e=i,(n=[{key:"setItem",value:function(t){c(d(i.prototype),"setItem",this).call(this,t),this.setDuration("")}},{key:"setPoster",value:function(t){this.el().style.backgroundImage="url('".concat(t,"')")}},{key:"setDuration",value:function(t){this.duration.innerText=t}},{key:"createEl",value:function(){var t=c(d(i.prototype),"createEl",this).call(this,"div",{className:"vjs-recommendations-overlay-item vjs-recommendations-overlay-item-secondary"});this.title=v.createEl("span",{className:"vjs-recommendations-overlay-item-secondary-title"}),this.title.innerHTML="",this.duration=v.createEl("span",{className:"vjs-recommendations-overlay-item-secondary-duration"}),this.duration.innerHTML="";var e=v.createEl("div",{className:"vjs-recommendations-overlay-item-info"});return e.appendChild(this.title),e.appendChild(this.duration),t.appendChild(e),t}},{key:"handleClick",value:function(){c(d(i.prototype),"handleClick",this).call(this),this.action()}}])&&u(e.prototype,n),r&&u(e,r),Object.defineProperty(e,"prototype",{writable:!1}),i}(i.default),g=y;e.default=g},function(t,e,n){"use strict";function r(t){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r(t)}var o;function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function s(){return s="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var r=u(t,e);if(r){var o=Object.getOwnPropertyDescriptor(r,e);return o.get?o.get.call(arguments.length<3?t:n):o.value}},s.apply(this,arguments)}function u(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=h(t)););return t}function c(t,e){return c=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},c(t,e)}function l(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=h(t);if(e){var o=h(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return f(this,n)}}function f(t,e){if(e&&("object"===r(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function h(t){return h=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},h(t)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var p=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&c(t,e)}(u,t);var e,n,r,o=l(u);function u(){return i(this,u),o.apply(this,arguments)}return e=u,(n=[{key:"createEl",value:function(){return s(h(u.prototype),"createEl",this).call(this,"span",{className:"vjs-recommendations-overlay-hide vjs-icon-close"})}},{key:"handleClick",value:function(){this.options_.clickHandler()}}])&&a(e.prototype,n),r&&a(e,r),Object.defineProperty(e,"prototype",{writable:!1}),u}(((o=n(1))&&o.__esModule?o:{default:o}).default.getComponent("ClickableComponent")),d=p;e.default=d},function(t,e,n){"use strict";n.r(e)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=f(n(1)),o=n(12),i=n(418),a=n(183);n(180);var s=f(n(419)),u=f(n(84)),c=n(185),l=n(27);function f(t){return t&&t.__esModule?t:{default:t}}function h(t){return h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},h(t)}function p(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function d(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function v(t,e){return v=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},v(t,e)}function y(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=w(t);if(e){var o=w(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return g(this,n)}}function g(t,e){if(e&&("object"===h(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return m(t)}function m(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function _(){return _="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var r=b(t,e);if(r){var o=Object.getOwnPropertyDescriptor(r,e);return o.get?o.get.call(arguments.length<3?t:n):o.value}},_.apply(this,arguments)}function b(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=w(t)););return t}function w(t){return w=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},w(t)}var E=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&v(t,e)}(g,t);var e,n,r,f=y(g);function g(t){var e,n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};p(this,g),(n=f.call(this,t,r)).options=r;var o=function(){n.render()};return t.on(l.PLAYER_EVENT.SHOPPABLE_ITEM_CHANGED,o),n.render(),n.dispose=function(){_((e=m(n),w(g.prototype)),"dispose",e).call(e),t.off(l.PLAYER_EVENT.SHOPPABLE_ITEM_CHANGED,o)},n}return e=g,(n=[{key:"createEl",value:function(){var t=_(w(g.prototype),"createEl",this).call(this);return[c.CLD_SPBL_PANEL_CLASS,"base-color-bg"].map((function(e){return t.classList.add(e)})),t}},{key:"removeAll",value:function(){for(var t=this.children(),e=t.length-1;e>=0;--e)this.removeChild(t[e])}},{key:"getItems",value:function(){var t=this,e=this.player_.cloudinary.cloudinaryConfig();return this.options.products.map((function(n){n.onHover&&"object"===h(n.onHover.args)&&(n.onHover.args.transformation=(0,o.assign)({},t.options.transformation,n.onHover.args.transformation));var r={productId:n.productId,productName:n.productName,title:n.title,onHover:n.onHover,onClick:n.onClick,startTime:n.startTime,endTime:n.endTime};return{imageSrc:new u.default(n.publicId,{cloudinaryConfig:e,transformation:(0,o.assign)({},t.options.transformation,n.transformation)}),conf:r}}))}},{key:"scrollToActiveItem",value:function(){var t=this.el_.getElementsByClassName("active");if(t.length>0){var e=t[0].offsetTop-12;"scrollBehavior"in document.documentElement.style?this.el_.scrollTo({top:e,behavior:"smooth"}):this.el_.scrollTop=e}}},{key:"render",value:function(){var t=this;this.removeAll();var e=this.getItems(),n=(0,i.throttle)((function(){return t.scrollToActiveItem()}),1e3);e.forEach((function(e,r){var o=new s.default(t.player(),{item:e.imageSrc,conf:e.conf,next:1===r,current:0===r,clickHandler:function(e){var n=e.currentTarget||e.target,r=t.player_.ended()?"productClickPost":"productClick";if(t.player_.trigger(r,{productId:n.dataset.productId,productName:n.dataset.productName}),n.dataset.clickAction===c.SHOPPABLE_CLICK_ACTIONS.GO_TO)window.open(n.dataset.gotoUrl,"_blank");else if(n.dataset.clickAction===c.SHOPPABLE_CLICK_ACTIONS.SEEk){var o=(0,a.parseTime)(n.dataset.seek);null!==o&&(t.player_.addClass("vjs-has-started"),t.player_.postModal&&t.player_.postModal.close(),t.player_.currentTime(o),t.player_.removeClass(c.SHOPPABLE_PANEL_VISIBLE_CLASS),t.player_.addClass(c.SHOPPABLE_PANEL_HIDDEN_CLASS),t.player_.addClass(c.SHOPPABLE_PRODUCTS_OVERLAY_CLASS),t.player_.one("seeked",(function(){return t.player_.trigger("showProductsOverlay")})))}"false"!==n.dataset.pause&&(t.player_.pause(),(0,a.parseTime)(n.dataset.pause)&&setTimeout((function(){t.player_.play()}),1e3*(0,a.parseTime)(n.dataset.pause)))}});o.on("mouseover",(function(e){var n=e.currentTarget||e.target,r=t.player_.ended()?"productHoverPost":"productHover";t.player_.trigger(r,{productId:n.dataset.productId,productName:n.dataset.productName})})),void 0!==e.conf.startTime&&void 0!==e.conf.endTime&&t.player_.on(l.PLAYER_EVENT.TIME_UPDATE,(function(){var r=t.player_.currentTime();r>=e.conf.startTime&&r<e.conf.endTime?(o.el_.classList.add("active"),n()):o.el_.classList.contains("active")&&o.el_.classList.remove("active")})),t.addChild(o)}))}}])&&d(e.prototype,n),r&&d(e,r),Object.defineProperty(e,"prototype",{writable:!1}),g}(r.default.getComponent("Component"));r.default.registerComponent("shoppablePanel",E);var T=E;e.default=T},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.throttle=function(t,e){var n=window.performance.now();return function(){var r=window.performance.now();r-n>=e&&(t.apply(void 0,arguments),n=r)}}},function(t,e,n){"use strict";function r(t){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r(t)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=u(n(1)),i=n(420),a=u(n(84)),s=n(185);function u(t){return t&&t.__esModule?t:{default:t}}function c(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function l(){return l="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var r=f(t,e);if(r){var o=Object.getOwnPropertyDescriptor(r,e);return o.get?o.get.call(arguments.length<3?t:n):o.value}},l.apply(this,arguments)}function f(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=v(t)););return t}function h(t,e){return h=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},h(t,e)}function p(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=v(t);if(e){var o=v(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return d(this,n)}}function d(t,e){if(e&&("object"===r(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function v(t){return v=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},v(t)}var y=o.default.getComponent("ClickableComponent"),g=o.default.dom||o.default,m={width:132},_=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&h(t,e)}(a,t);var e,n,r,o=p(a);function a(t,e){var n;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,a),(n=o.call(this,t,e)).options_=e,n.isDragged=!1,n}return e=a,(n=[{key:"handleClick",value:function(t){t.preventDefault(),t.stopPropagation(),(0,i.elMatches)(this.el_,".dragged .".concat(s.CLD_SPBL_ITEM))||this.options_.clickHandler(t),this.isDragged=!1}},{key:"getTitle",value:function(){return this.options_.conf.title}},{key:"createEl",value:function(){var t=l(v(a.prototype),"createEl",this).call(this,"a",{className:"".concat(s.CLD_SPBL_ITEM," base-color-bg accent-color-text"),href:"#"});t.setAttribute("data-product-id",this.options_.conf.productId||""),t.setAttribute("data-product-name",this.options_.conf.productName||""),this.options_.conf.onHover&&b(t,this.options_.conf.onHover,this.options_.item.cloudinaryConfig()),this.options_.conf.onClick&&w(t,this.options_.conf.onClick);var e=l(v(a.prototype),"createEl",this).call(this,"img",{className:s.CLD_SPBL_IMAGE},{src:this.options_.item.url(m)});if(t.appendChild(e),this.getTitle()){var n=g.createEl("div",{className:"cld-spbl-item-info base-color-semi-bg text-color-text"}),r=g.createEl("span",{className:"cld-spbl-item-title"},{},this.getTitle());n.appendChild(r),t.appendChild(n)}return t}}])&&c(e.prototype,n),r&&c(e,r),Object.defineProperty(e,"prototype",{writable:!1}),a}(y),b=function(t,e,n){if(t.setAttribute("data-hover-action",e.action),e.action===s.SHOPPABLE_HOVER_ACTIONS.OVERLAY){var r=g.createEl("span",{className:"cld-spbl-overlay-text base-color-text"},{},e.args),o=g.createEl("span",{className:"cld-spbl-overlay text-color-semi-bg base-color-text"},{title:e.args},r);t.appendChild(o)}else{var i=new a.default(e.args.publicId,{cloudinaryConfig:n,transformation:e.args.transformation}),u=g.createEl("img",{className:"".concat(s.CLD_SPBL_IMAGE," cld-spbl-hover-img")},{src:i.url(m)});t.appendChild(u)}},w=function(t,e){t.setAttribute("data-click-action",e.action),t.setAttribute("data-pause",e.pause),e.action===s.SHOPPABLE_CLICK_ACTIONS.SEEk?t.setAttribute("data-seek",e.args.time):e.action===s.SHOPPABLE_CLICK_ACTIONS.GO_TO&&t.setAttribute("data-goto-url",e.args.url)};o.default.registerComponent("shoppablePanelItem",_);var E=_;e.default=E},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.elMatches=void 0;e.elMatches=function(t,e){var n=Element.prototype;return(n.matches||n.webkitMatchesSelector||n.mozMatchesSelector||n.msMatchesSelector||function(t){return-1!==[].indexOf.call(document.querySelectorAll(t),this)}).call(t,e)}},function(t,e,n){"use strict";function r(t){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r(t)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=a(n(1));n(422);var i=a(n(182));function a(t){return t&&t.__esModule?t:{default:t}}function s(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function u(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function c(){return c="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var r=l(t,e);if(r){var o=Object.getOwnPropertyDescriptor(r,e);return o.get?o.get.call(arguments.length<3?t:n):o.value}},c.apply(this,arguments)}function l(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=d(t)););return t}function f(t,e){return f=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},f(t,e)}function h(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=d(t);if(e){var o=d(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return p(this,n)}}function p(t,e){if(e&&("object"===r(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function d(t){return d=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},d(t)}var v=o.default.dom||o.default,y=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&f(t,e)}(a,t);var e,n,r,o=h(a);function a(t){var e,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return s(this,a),(e=o.call(this,t,n)).on(t,"cldsourcechanged",(function(t,n){var r=n.source;return e.setItem(r)})),e}return e=a,(n=[{key:"setItem",value:function(t){if(!t)return this.setTitle(""),void this.setSubtitle("");var e=t.info();this.setTitle(e.title),this.setSubtitle(e.subtitle)}},{key:"setTitle",value:function(t){return i.default.setText(this.titleEl,t),this.refresh(),t}},{key:"setSubtitle",value:function(t){return i.default.setText(this.subtitleEl,t),this.refresh(),t}},{key:"refresh",value:function(){var t=this;t.titleEl.innerText||t.subtitleEl.innerText?this.show():this.hide()}},{key:"createEl",value:function(){this.titleEl=v.createEl("div",{className:"vjs-title-bar-title"}),this.subtitleEl=v.createEl("div",{className:"vjs-title-bar-subtitle"});var t=c(d(a.prototype),"createEl",this).call(this,"div",{append:this.titleEl,className:"vjs-title-bar"});return t.appendChild(this.titleEl),t.appendChild(this.subtitleEl),t}}])&&u(e.prototype,n),r&&u(e,r),Object.defineProperty(e,"prototype",{writable:!1}),a}(o.default.getComponent("Component"));o.default.registerComponent("titleBar",y);var g=y;e.default=g},function(t,e,n){"use strict";n.r(e)},function(t,e,n){"use strict";n.r(e)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=l(n(425)),o=l(n(426)),i=l(n(428)),a=l(n(429)),s=l(n(434)),u=l(n(448)),c=l(n(450));function l(t){return t&&t.__esModule?t:{default:t}}var f={autoplayOnScroll:r.default,floatingPlayer:o.default,colors:i.default,contextMenu:a.default,cloudinary:s.default,analytics:u.default,vttThumbnails:c.default};e.default=f},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};new l(this,t).init()};var r=n(65),o=n(20),i=n(12);function a(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function s(t,e,n){return e&&a(t.prototype,e),n&&a(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function u(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var c={fraction:.5,isMuted:!0},l=s((function t(e){var n=this,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};u(this,t),a=(0,i.assign)({},c,a),this.player=e;var s=(0,o.sliceProperties)(a,"fraction"),l=!1,f=!1,h=null,p=null;this.init=function(){m(),g()};var d=function(){window.removeEventListener("DOMContentLoaded",g,!1),window.removeEventListener("load",g,!1),window.removeEventListener("scroll",g,!1),window.removeEventListener("resize",g,!1),n.player.off("pause",h),n.player.off("play",p)},v=function(){l=!0,f=!1,n.player.pause()},y=function(){l=!1,f=!0,n.player.play()},g=function(){(0,r.isElementInViewport)(n.player.el(),{fraction:s.fraction})?n.player.paused()&&y():n.player.paused()||n.player.activePlugins_.floatingPlayer||v()},m=function(){h=function(){n.player.waiting||l||d()},p=function(){f||d()},window.addEventListener("DOMContentLoaded",g,!1),window.addEventListener("load",g,!1),window.addEventListener("scroll",g,!1),window.addEventListener("resize",g,!1),n.player.on("pause",h),n.player.on("play",p)}}))},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};new h(this,t).init()};var r=n(65),o=n(20),i=n(12);n(427);var a=n(60);function s(t){return s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},s(t)}function u(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function c(t,e,n){return e&&u(t.prototype,e),n&&u(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function l(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var f={fraction:.5,collapsedWidth:300,floatTo:"right"},h=c((function t(e){var n=this,u=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};l(this,t),(u=(0,i.assign)({},f,u)).floatTo&&u.floatTo!==a.FLOATING_TO.LEFT&&u.floatTo!==a.FLOATING_TO.RIGHT&&(u.floatTo=f.floatTo),this.player=e;var c=this.player.el(),h=(0,o.sliceProperties)(u,"fraction"),p=null,d=!1,v=!1;this.init=function(){_(),"object"===s(n.player.ima)&&w()};var y=function(t){var e=document.createElement("div");for(t.appendChild(e);t.firstChild!==e;)e.appendChild(t.firstChild);return e},g=function(){window.removeEventListener("DOMContentLoaded",C,!1),window.removeEventListener("load",C,!1),window.removeEventListener("scroll",C,!1),window.removeEventListener("resize",C,!1)},m=function(){window.addEventListener("DOMContentLoaded",C,!1),window.addEventListener("load",C,!1),window.addEventListener("scroll",C,!1),window.addEventListener("resize",C,!1)},_=function(){n.player.on("play",C),n.player.on("play",m),n.player.on("dispose",g)},b=function(){var t=c.getBoundingClientRect();p.setAttribute("class","cld-video-player-floater cld-video-player-floater-bottom-".concat(u.floatTo)),p.setAttribute("style",["width: "+u.collapsedWidth+"px;","top: "+t.top+"px;","left: "+t.left+"px;","right: "+(document.documentElement.clientWidth-t.right)+"px;","bottom: "+(document.documentElement.clientHeight-t.bottom)+"px;"].join("")),v=!0},w=function(){var t=c.getBoundingClientRect();p=y(c);var e=y(p);e.setAttribute("class","cld-video-player-floater-inner"),e.setAttribute("style","padding-bottom: "+100*t.height/t.width+"%;");var n=document.createElement("button");n.setAttribute("class","cld-video-player-floater-close"),n.innerHTML='<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" viewBox="0 0 12 12"><polygon fill-rule="evenodd" points="370 7.41 368.59 6 364 10.59 359.41 6 358 7.41 362.59 12 358 16.59 359.41 18 364 13.41 368.59 18 370 16.59 365.41 12" transform="translate(-358 -6)"/></svg>',n.onclick=function(){S(),O()},p.appendChild(n)},E=function(){var t=n.player.ima;t&&t.adsActive&&t.getAdsManager().resize(d?p.clientWidth:c.clientWidth,d?p.clientHeight:c.clientHeight)},T=function(){p||w(),v||b(),d=!0,setTimeout((function(){p.classList.add("cld-video-player-floating"),E()}))},S=function(){p.classList.remove("cld-video-player-floating"),d=!1,E()},O=function(){g(),n.player.off("play",C),n.player.off("play",m)},C=function(){(0,r.isElementInViewport)(n.player.el(),{fraction:h.fraction})?d&&S():d||T()}}))},function(t,e,n){"use strict";n.r(e)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};new d(this,t).init()},e.getDefaultPlayerColor=void 0;var r=n(12),o=n(129),i=n(115);function a(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function s(t,e,n){return e&&a(t.prototype,e),n&&a(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function u(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var c="\n .PLAYER-CLASS-PREFIX {\n --color-accent: --accent-color;\n --color-base: --base-color;\n --color-text: --text-color;\n\n color: --text-color;\n }\n\n .PLAYER-CLASS-PREFIX .vjs-time-tooltip,\n .PLAYER-CLASS-PREFIX .vjs-mouse-display:after,\n .PLAYER-CLASS-PREFIX .vjs-play-progress:after {\n color: --base-color;\n background-color: --text-color;\n }\n\n .PLAYER-CLASS-PREFIX .vjs-slider {\n background-color: rgba(--accent-color, 0.3);\n }\n\n .PLAYER-CLASS-PREFIX .vjs-load-progress,\n .PLAYER-CLASS-PREFIX .vjs-load-progress div {\n background: rgba(--accent-color, 0.2);\n }\n\n .PLAYER-CLASS-PREFIX .vjs-volume-level,\n .PLAYER-CLASS-PREFIX .vjs-play-progress {\n background: --accent-color;\n }\n\n .PLAYER-CLASS-PREFIX .vjs-volume-vertical {\n background-color: rgba(--base-color, 0.7);\n }\n\n .PLAYER-CLASS-PREFIX .vjs-volume-panel-horizontal .vjs-control:before {\n border-color: transparent transparent rgba(--accent-color, 0.4) transparent;\n }\n\n .PLAYER-CLASS-PREFIX .vjs-volume-panel-horizontal .vjs-volume-level:before {\n border-color: transparent transparent --accent-color transparent;\n }\n\n .PLAYER-CLASS-PREFIX .vjs-title-bar {\n color: --text-color;\n }\n\n .PLAYER-CLASS-PREFIX .vjs-recommendations-overlay {\n color: --text-color;\n background-color: rgba(--base-color, 0.4);\n }\n\n .PLAYER-CLASS-PREFIX .vjs-recommendations-overlay .vjs-recommendations-overlay-item {\n box-shadow: 0 0.5em 1.2em 0px --base-color;\n color: --text-color;\n border: 1px solid --text-color !important;\n position: relative;\n }\n\n .PLAYER-CLASS-PREFIX .vjs-recommendations-overlay .vjs-recommendations-overlay-item:active,\n .PLAYER-CLASS-PREFIX .vjs-recommendations-overlay .vjs-recommendations-overlay-item:hover {\n border: 1px solid --accent-color !important;\n }\n\n .PLAYER-CLASS-PREFIX .vjs-context-menu-ui .vjs-menu-content .vjs-menu-item:active,\n .PLAYER-CLASS-PREFIX .vjs-context-menu-ui .vjs-menu-content .vjs-menu-item:hover {\n color: --text-color;\n background-color: --accent-color;\n }\n\n .PLAYER-CLASS-PREFIX.vjs-ad-playing .vjs-progress-control .vjs-play-progress {\n background: --base-color;\n }\n\n .PLAYER-CLASS-PREFIX.cld-plw-layout {\n background-color: --base-color;\n }\n\n .PLAYER-CLASS-PREFIX .cld-plw-item-info-wrap {\n color: --text-color;\n }\n\n .PLAYER-CLASS-PREFIX .cld-plw-panel-item {\n border-color: --text-color;\n }\n\n .PLAYER-CLASS-PREFIX .cld-video-player-floater-close polygon {\n fill: --base-color;\n }\n\n .PLAYER-CLASS-PREFIX .cld-spbl-product-hotspot:after {\n background: --base-color;\n box-shadow: 0 0 0 4px --accent-color, 0 0 0 8px rgba(--text-color, 0.24);\n }\n\n .PLAYER-CLASS-PREFIX .cld-spbl-product-tooltip {\n color: --base-color;\n background: --text-color;\n }\n\n .PLAYER-CLASS-PREFIX .base-color-semi-bg {\n background: rgba(--base-color, 0.7);\n }\n\n .PLAYER-CLASS-PREFIX .text-color-semi-bg {\n background: rgba(--text-color, 0.7);\n }\n\n .PLAYER-CLASS-PREFIX .text-color-text {\n color: --text-color;\n }\n\n .PLAYER-CLASS-PREFIX .base-color-text {\n color: --base-color;\n }\n\n .PLAYER-CLASS-PREFIX .accent-color-text {\n color: --accent-color;\n }\n",l="\n\n .PLAYER-CLASS-PREFIX.cld-video-player-skin-dark .base-color-bg,\n .PLAYER-CLASS-PREFIX.cld-video-player-skin-dark .vjs-control-bar,\n .PLAYER-CLASS-PREFIX.cld-video-player-skin-dark .vjs-big-play-button,\n .PLAYER-CLASS-PREFIX.cld-video-player-skin-dark .vjs-menu-button\n .vjs-menu-content {\n background-color: rgba(--base-color, 0.6);\n }\n\n .PLAYER-CLASS-PREFIX .vjs-title-bar {\n background-image: linear-gradient(--base-color, rgba(255, 255, 255, 0) 100%);\n }\n\n .PLAYER-CLASS-PREFIX .vjs-recommendations-overlay .vjs-recommendations-overlay-item.vjs-recommendations-overlay-item-primary .vjs-recommendations-overlay-item-primary-content {\n background-color: rgba(--base-color, 0.6);\n }\n\n .PLAYER-CLASS-PREFIX .vjs-recommendations-overlay .vjs-recommendations-overlay-item.vjs-recommendations-overlay-item-secondary div {\n background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent 80%);\n }\n\n .PLAYER-CLASS-PREFIX .vjs-upcoming-video {\n border: 1px solid rgba(--text-color, 0.5);\n }\n\n .PLAYER-CLASS-PREFIX .vjs-upcoming-video .vjs-upcoming-video-bar {\n background-color: rgba(--base-color, 0.6);\n }\n\n .PLAYER-CLASS-PREFIX .vjs-context-menu-ui .vjs-menu-content {\n background-color: rgba(--base-color, 0.6);\n }\n",f="\n .PLAYER-CLASS-PREFIX .vjs-title-bar {\n flex-direction: row;\n justify-content: left;\n height: 3.6em;\n background: --base-color;\n }\n\n .PLAYER-CLASS-PREFIX .vjs-title-bar div {\n width: auto;\n padding: 0 inherit;\n margin: 0;\n }\n\n .PLAYER-CLASS-PREFIX.cld-video-player-skin-light .base-color-bg,\n .PLAYER-CLASS-PREFIX.cld-video-player-skin-light .vjs-control-bar,\n .PLAYER-CLASS-PREFIX.cld-video-player-skin-light .vjs-big-play-button,\n .PLAYER-CLASS-PREFIX.cld-video-player-skin-light .vjs-menu-button .vjs-menu-content {\n background-color: --base-color;\n }\n\n .PLAYER-CLASS-PREFIX .vjs-recommendations-overlay .vjs-recommendations-overlay-item.vjs-recommendations-overlay-item-primary .vjs-recommendations-overlay-item-primary-content {\n background-color: --base-color;\n }\n\n .PLAYER-CLASS-PREFIX .vjs-recommendations-overlay .vjs-recommendations-overlay-item.vjs-recommendations-overlay-item-primary:active .vjs-recommendations-overlay-item-primary-content,\n .PLAYER-CLASS-PREFIX .vjs-recommendations-overlay .vjs-recommendations-overlay-item.vjs-recommendations-overlay-item-primary:hover .vjs-recommendations-overlay-item-primary-content {\n color: --base-color;\n background-color: rgba(--accent-color, 0.8);\n }\n\n .PLAYER-CLASS-PREFIX .vjs-recommendations-overlay .vjs-recommendations-overlay-item.vjs-recommendations-overlay-item-secondary:active div,\n .PLAYER-CLASS-PREFIX .vjs-recommendations-overlay .vjs-recommendations-overlay-item.vjs-recommendations-overlay-item-secondary:hover div {\n color: --base-color;\n background-color: rgba(--accent-color, 0.8);\n }\n\n .PLAYER-CLASS-PREFIX .vjs-recommendations-overlay .vjs-recommendations-overlay-item.vjs-recommendations-overlay-item-secondary div {\n background: --base-color;\n }\n\n .PLAYER-CLASS-PREFIX .vjs-upcoming-video {\n border: 1px solid --text-color;\n }\n\n .PLAYER-CLASS-PREFIX .vjs-upcoming-video .vjs-upcoming-video-bar {\n background-color: --base-color;\n }\n\n .PLAYER-CLASS-PREFIX .vjs-context-menu-ui .vjs-menu-content {\n background-color: --base-color;\n }\n\n .PLAYER-CLASS-PREFIX .cld-plw-item-info-wrap {\n color: --text-color;\n }\n\n @media only screen and (max-width: 768px) {\n .PLAYER-CLASS-PREFIX.cld-plw-vertical .cld-plw-item-info-wrap {\n color: --accent-color;\n }\n }\n",h={colorsDark:{base:"#000000",accent:"#FF620C",text:"#FFFFFF"},colorsLight:{base:"#FFFFFF",accent:"#0078FF",text:"#0E2F5A"}},p=function(t){return(0,i.isLight)(t)?h.colorsLight:h.colorsDark};e.getDefaultPlayerColor=p;var d=s((function t(e){var n=this,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};u(this,t),this.player=e;var a=p(this.player.options_);i.colors=(0,r.assign)({},a,i.colors),this.init=function(){s(d(c)),"light"===n.player.options_.skin?s(d(f)):s(d(l))};var s=function(t){var e=document.createElement("style");e.innerHTML=t,n.player.el_.appendChild(e)},h=function(t){t=t.replace(/^#?([a-f\d])([a-f\d])([a-f\d])$/i,(function(t,e,n,r){return e+e+n+n+r+r}));var e=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(t);return e?parseInt(e[1],16)+", "+parseInt(e[2],16)+", "+parseInt(e[3],16):null},d=function(t){return t.replace(/PLAYER\-CLASS\-PREFIX/g,(0,o.playerClassPrefix)(n.player)).replace(/rgba\(\-\-base\-color/g,"rgba("+h(i.colors.base)).replace(/rgba\(\-\-accent\-color/g,"rgba("+h(i.colors.accent)).replace(/rgba\(\-\-text\-color/g,"rgba("+h(i.colors.text)).replace(/\-\-base\-color/g,i.colors.base).replace(/\-\-accent\-color/g,i.colors.accent).replace(/\-\-text\-color/g,i.colors.text)}}))},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};new p(this,t).init()};var r=c(n(1));n(430),n(431);var o=c(n(432)),i=n(65),a=n(20),s=n(12),u=n(13);function c(t){return t&&t.__esModule?t:{default:t}}function l(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function f(t,e,n){return e&&l(t.prototype,e),n&&l(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}var h={showNativeOnRecurringEvent:!1},p=f((function t(e,n){var c=this;if(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),!Array.isArray(n.content)&&!(0,u.isFunction)(n.content))throw new Error('"content" required');var l=(0,s.assign)({},h,n);this.player=e;var f=(0,a.sliceProperties)(l,"content","showNativeOnRecurringEvent");this.init=function(){c.player.contextmenu(),c.player.on("vjs-contextmenu",p),c.player.ready((function(){return c.player.addClass("vjs-context-menu")}))};var p=function(t){if(!c.menu||(c.menu.dispose(),!f.showNativeOnRecurringEvent)){f.showNativeOnRecurringEvent&&(c.player.contextmenu.options.cancel=!1),t.preventDefault();var e=f.content;(0,u.isFunction)(e)&&(e=e(c.player)),c.menu=new o.default(c.player,{content:e});var n=function(t){var e=c.menu.el();e.style.visibility="hidden",c.player.el().appendChild(e);var n=e.getBoundingClientRect();c.player.el().removeChild(e),e.style.visibility="visible";var r=(0,i.getPointerPosition)(c.player.el(),t),o=c.player.el().getBoundingClientRect(),a=o.height-o.height*r.y+1,s=Math.round(o.width*r.x)+1,u=a,l=s;return a+n.height>o.height&&(u=a+n.height-o.height>n.height/2?a-n.height-1:o.height-n.height),s+n.width>o.width&&(l=s+n.width-o.width>n.width/2?s-n.width-1:o.width-n.width),u<a&&l<s&&(u=a-n.height-1,l=s-n.width-1),u=Math.max(0,u),{left:l=Math.max(0,l),top:u}}(t),a=n.left,s=n.top;c.menu.setPosition(a,s);var l=function(t){("click"!==t.type||3!==t.which&&2!==t.button)&&c.menu.dispose()};c.menu.on("dispose",(function(){c.player.contextmenu.options.cancel=!0,c.player.removeChild(c.menu),r.default.off(document,["click","tap"],l),delete c.menu})),c.player.addChild(c.menu),r.default.on(document,["click","tap"],l)}}}))},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r,o=(r=n(1))&&r.__esModule?r:{default:r};var i={cancel:!0,sensitivity:10,wait:500,disabled:!1},a="vjs-contextmenu";function s(t,e){if(t.contextmenu.options.disabled)return t;var n={target:t,type:a};return["clientX","clientY","pageX","pageY","screenX","screenY"].forEach((function(t){n[t]=e[t]})),t.trigger(n)}function u(t){var e=this.contextmenu.current;if(e){var n=this.contextmenu.options.wait;"touchend"===t.type&&(new Date).getTime()-e.time>=n&&s(this,t),this.contextmenu.current=null}}function c(t){var e=this.contextmenu.current;if(e){var n=t.touches[0],r=this.contextmenu.options.sensitivity;(n.screenX-e.screenX>r||n.screenY-e.screenY>r)&&(this.contextmenu.current=null)}}function l(t){if(!this.contextmenu.current){var e=t.touches[0];this.contextmenu.current={screenX:e.screenX,screenY:e.screenY,time:(new Date).getTime()}}}function f(t){this.contextmenu.options.cancel&&!this.contextmenu.options.disabled&&t.preventDefault(),s(this,t),this.off(["touchcancel","touchend"],u),this.off("touchmove",c),this.off("touchstart",l)}function h(t){var e=this;this.contextmenu.options=o.default.mergeOptions(i,t),this.on("contextmenu",f),this.on(["touchcancel","touchend"],u),this.on("touchmove",c),this.on("touchstart",l),this.ready((function(){return e.addClass(a)}))}o.default.registerPlugin("contextmenu",h);var p=h;e.default=p},function(t,e,n){"use strict";n.r(e)},function(t,e,n){"use strict";function r(t){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r(t)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=u(n(1)),i=u(n(433)),a=n(65),s=n(13);function u(t){return t&&t.__esModule?t:{default:t}}function c(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function l(){return l="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var r=f(t,e);if(r){var o=Object.getOwnPropertyDescriptor(r,e);return o.get?o.get.call(arguments.length<3?t:n):o.value}},l.apply(this,arguments)}function f(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=y(t)););return t}function h(t,e){return h=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},h(t,e)}function p(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=y(t);if(e){var o=y(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return d(this,n)}}function d(t,e){if(e&&("object"===r(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return v(t)}function v(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function y(t){return y=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},y(t)}var g=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&h(t,e)}(f,t);var e,n,r,u=p(f);function f(t,e){var n;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,f),(n=u.call(this,t,e)).dispose=o.default.bind(v(n),n.dispose),e.content.forEach((function(e){var r=null;r=(0,s.isFunction)(e.listener)?e.listener:"string"==typeof e.href?function(){return window.open(e.href)}:function(){return!0};var a=v(n);n.addItem(new i.default(t,{label:e.label,class:e.class,listener:o.default.bind(t,(function(){r(this),window.setTimeout((function(){a.dispose()}),1)}))}))})),n}return e=f,(n=[{key:"setPosition",value:function(t,e){(0,a.setPosition)(this.el(),t,e)}},{key:"createEl",value:function(){var t=l(y(f.prototype),"createEl",this).call(this);if(o.default.dom.addClass(t,"vjs-context-menu-ui"),this.options_.position){var e=this.options_.position,n=e.left,r=e.top;this.setPosition(n,r)}return t}}])&&c(e.prototype,n),r&&c(e,r),Object.defineProperty(e,"prototype",{writable:!1}),f}(o.default.getComponent("Menu"));e.default=g},function(t,e,n){"use strict";function r(t){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r(t)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o,i=(o=n(1))&&o.__esModule?o:{default:o},a=n(186);function s(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function u(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function c(){return c="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var r=l(t,e);if(r){var o=Object.getOwnPropertyDescriptor(r,e);return o.get?o.get.call(arguments.length<3?t:n):o.value}},c.apply(this,arguments)}function l(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=d(t)););return t}function f(t,e){return f=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},f(t,e)}function h(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=d(t);if(e){var o=d(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return p(this,n)}}function p(t,e){if(e&&("object"===r(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function d(t){return d=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},d(t)}var v=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&f(t,e)}(i,t);var e,n,r,o=h(i);function i(){return s(this,i),o.apply(this,arguments)}return e=i,(n=[{key:"handleClick",value:function(){c(d(i.prototype),"handleClick",this).call(this),this.options_.listener()}},{key:"createEl",value:function(){var t=(0,a.createElement)("span",{class:"vjs-menu-item-text"+(this.options_.class?" ".concat(this.options_.class):"")});return t.appendChild(document.createTextNode(this.localize(this.options_.label))),(0,a.createElement)("li",{class:"vjs-menu-item",tabIndex:-1},t)}}])&&u(e.prototype,n),r&&u(e,r),Object.defineProperty(e,"prototype",{writable:!1}),i}(i.default.getComponent("MenuItem")),y=v;e.default=y},function(t,e,n){"use strict";function r(t){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r(t)}Object.defineProperty(e,"__esModule",{value:!0}),e.CONSTRUCTOR_PARAMS=void 0,e.default=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};t.chainTarget=t.chainTarget||this,this.cloudinary=new C(this,t)};var o=y(n(1)),i=n(179),a=n(178),s=n(20),u=n(116),c=n(12),l=n(31),f=y(n(435)),h=y(n(86)),p=y(n(445)),d=y(n(446)),v=n(13);function y(t){return t&&t.__esModule?t:{default:t}}function g(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function m(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function _(t,e){return _=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},_(t,e)}function b(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=T(t);if(e){var o=T(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return w(this,n)}}function w(t,e){if(e&&("object"===r(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return E(t)}function E(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function T(t){return T=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},T(t)}var S={transformation:{},sourceTypes:[],sourceTransformation:[],posterOptions:{}},O=["cloudinaryConfig","transformation","sourceTypes","sourceTransformation","posterOptions","autoShowRecommendations"];e.CONSTRUCTOR_PARAMS=O;var C=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&_(t,e)}(f,t);var e,n,r,i=b(f);function f(t){var e,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};g(this,f),(e=i.call(this,t,n)).player=t,n=(0,c.assign)({},S,n);var r=null,y=null,m=null,_=null,b=null,w=null,T=null,C=null,P=null,k=n.chainTarget,j=null,A=null,x=!1;e.source=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(n=(0,c.assign)({},n),!t)return r;var o=null;if(t instanceof h.default)o=t;else{var i=(0,l.normalizeOptions)(t,n),a=i.publicId,u=i.options;o=e.buildSource(a,u)}if(o.recommendations()){var f=o.recommendations(),p=null,d=!1;if(n.recommendationOptions){var v=(0,s.sliceAndUnsetProperties)(n.recommendationOptions,"disableAutoShow","itemBuilder");d=v.disableAutoShow,p=v.itemBuilder}R(f,{disableAutoShow:d,itemBuilder:p})}else L();return r=o,n.skipRefresh||I(),e.player.trigger("cldsourcechanged",{source:o}),k},e.buildSource=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=(0,l.normalizeOptions)(t,n);return t=r.publicId,(n=r.options).cloudinaryConfig=(0,l.extendCloudinaryConfig)(e.cloudinaryConfig(),n.cloudinaryConfig||{}),n.transformation=(0,l.mergeTransformations)(e.transformation(),n.transformation||{}),n.sourceTransformation=n.sourceTransformation||e.sourceTransformation(),n.sourceTypes=n.sourceTypes||e.sourceTypes(),n.poster=n.poster||M(),n.queryParams=Object.assign(n.queryParams||{},n.usageReport?{_s:"vp-".concat("1.9.2")}:{}),n.sourceTypes.indexOf("audio")>-1?new d.default(t,n):new h.default(t,n)},e.posterOptions=function(t){return t?(b=t,k):b},e.cloudinaryConfig=function(t){return t?(w=t,k):w},e.transformation=function(t){return t?(T=t,k):T},e.sourceTypes=function(t){return t?(C=t,k):C},e.getCurrentSources=function(){return y},e.sourceTransformation=function(t){return t?(P=t,k):P},e.on=function(){var t;return(t=j).on.apply(t,arguments)},e.one=function(){var t;return(t=j).one.apply(t,arguments)},e.off=function(){var t;return(t=j).off.apply(t,arguments)},e.autoShowRecommendations=function(t){return void 0===t?x:(x=t,k)},e.dispose=function(){e.playlist()&&e.disposePlaylist(),L(),r=void 0,j.removeAllListeners()};var R=function(t,n){var r=n.disableAutoShow,o=void 0!==r&&r,i=n.itemBuilder,a=void 0===i?null:i;if(L(),!Array.isArray(t)&&"function"!=typeof t&&!t.then)throw new Error('"recommendations" must be either an array or a function');a=a||function(t){return{source:t instanceof h.default?t:e.buildSource(t),action:function(){return e.source(t)}}},(A={}).sourceChangedHandler=function(){var n=function(t){if(void 0!==t&&t.length>0){var n=t.map((function(t){return a(t)}));e.player.trigger("recommendationschanged",{items:n})}else e.player.trigger("recommendationsnoshow");A.sources=t};(0,v.isFunction)(t)?n(t()):t.then?t.then(n):n(t)},e.one("cldsourcechanged",A.sourceChangedHandler),A.endedHandler=function(){!o&&e.autoShowRecommendations()&&e.player.trigger("recommendationsshow")},e.on("ended",A.endedHandler)},L=function(){A&&(e.off("cldsourcechanged",A.sourceChangedHandler),e.off("ended",A.endedHandler),delete A.endedHandler,delete A.sourceChangedHandler),A=null},I=function(){var t=e.source();t.poster()&&e.player.poster(t.poster().url()),y=t.generateSources().reduce((function(t,e){if(e.isAdaptive)if((e.type.split("; ")[1]||null)&&"MediaSource"in window){var n=e.type.split("; "),r="video/mp4; ".concat(n[1]||""),i=N(r);o.default.browser.IS_ANY_SAFARI&&(e.type="".concat(n[0],"; ").concat((0,l.codecShorthandTrans)("h264"))),i&&t.push(e)}else t.push(e);else t.push(e);return t}),[]),e.player.src(y),m=t,_=e.playlist()},N=function(t){return document.createElement("video").canPlayType(t)||"MediaSource"in window&&MediaSource.isTypeSupported(t)},M=function(){var t=(0,c.assign)({},e.posterOptions());t.transformation&&(!t.transformation.width&&!t.transformation.height||t.transformation.crop||(t.transformation.crop="scale")),t.transformation=t.transformation||{};var n=e.player.el();if(n&&n.clientWidth&&n.clientHeight&&!(0,u.isKeyInTransformation)(t.transformation,"width")&&!(0,u.isKeyInTransformation)(t.transformation,"height")){var r=function(t){return 100*Math.ceil(t/100)};t.transformation=(0,l.mergeTransformations)(t.transformation,{width:r(n.clientWidth),height:r(n.clientHeight),crop:"limit"})}return t},D=function(t,n){var r=n.to;m&&m.contains(r)?e.source()||(_&&e.playlist(_),e.source(m,{skipRefresh:!0})):(e.player.trigger("cldsourcechanged",{}),e.dispose())};j=new p.default(e.player);var F=s.sliceAndUnsetProperties.apply(void 0,[n].concat(O));return(0,a.applyWithProps)(E(e),F),e.on("sourcechanged",D),e}return e=f,(n=[{key:"currentSourceType",value:function(){return this.source().getType()}},{key:"currentPublicId",value:function(){return this.source()&&this.source().publicId()}},{key:"currentPoster",value:function(){return this.source()&&this.source().poster()}}])&&m(e.prototype,n),r&&m(e,r),Object.defineProperty(e,"prototype",{writable:!1}),f}((0,i.mixin)(f.default))},function(t,e,n){"use strict";function r(t){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r(t)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=f(n(436)),i=f(n(117)),a=f(n(168)),s=n(20),u=n(444),c=n(12),l=n(31);function f(t){return t&&t.__esModule?t:{default:t}}function h(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function p(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function d(t,e){return d=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},d(t,e)}function v(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=m(t);if(e){var o=m(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return y(this,n)}}function y(t,e){if(e&&("object"===r(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return g(t)}function g(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function m(t){return m=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},m(t)}var _=(0,a.default)({Promise:i.default}).fetch,b={format:"json",resource_type:"video",type:"list"},w=function(t){return function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&d(t,e)}(a,t);var e,n,r,i=v(a);function a(t){var e,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};h(this,a),e=i.call(this);var r=(0,s.sliceProperties)(n,"chainTarget").chainTarget,u=null,c=null;e.playlist=function(n){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return void 0===n?u:(e.playlist()&&e.disposePlaylist(),l(n,o),t.trigger("playlistcreated"),r)},e.disposePlaylist=function(){t.removeClass("vjs-playlist");var n=e.playlist();u=void 0,n.dispose(),e.off("cldsourcechanged",c)};var l=function(n,r){n instanceof o.default?((u=n).resetState(),u.currentIndex(u.currentIndex())):(u=new o.default(g(e),n,r)).currentIndex(0),c=f(),t.addClass("vjs-playlist")},f=function(){var t=function(){e.playlist()&&!e.playlist().currentSource().contains(e.player.currentSource())&&e.disposePlaylist()};return e.on("cldsourcechanged",t),t};return e}return e=a,n=[{key:"playlistByTag",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.sourcesByTag(t,n).then((function(t){return e.playlist(t,n)}))}},{key:"sourcesByTag",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=(0,l.getCloudinaryUrl)(t,(0,l.extendCloudinaryConfig)(this.cloudinaryConfig(),b));return _(r).then((function(t){return t.json()})).then((function(t){var r=(0,u.normalizeJsonResponse)(t.resources);return n.sorter&&r.sort(n.sorter),r.map((function(t){var r=n.sourceParams||{};"function"==typeof r&&(r=r(t));var o=t.context&&t.context.custom||{},i=(0,c.assign)({info:o},r,{publicId:t.publicId});return e.buildSource(i)}))}))}}],n&&p(e.prototype,n),r&&p(e,r),Object.defineProperty(e,"prototype",{writable:!1}),a}(t)};e.default=w},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r,o=(r=n(86))&&r.__esModule?r:{default:r},i=n(13);n(438),n(440);var a=n(188);function s(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function u(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var c=function(){function t(e){var n=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=o.repeat,a=void 0!==i&&i,u=o.autoAdvance,c=void 0!==u&&u,l=o.presentUpcoming,f=void 0!==l&&l;s(this,t),this._context=e,this._sources=[],this._defaultRecResolverCache={},this._currentIndex=null,this._recommendationsHandler=null,this._autoAdvance=null,this._presentUpcoming=null,this.resetState=function(){n.repeat(a),n.autoAdvance(c),n.presentUpcoming(f)},r.forEach((function(t){return n.enqueue(t)})),this.resetState()}var e,n,r;return e=t,n=[{key:"list",value:function(){return this._sources}},{key:"player",value:function(){return this._context.player}},{key:"presentUpcoming",value:function(t){if(this._presentUpcoming=this._presentUpcoming||{},void 0===t)return this._presentUpcoming.delay;if(!0===t)t=a.DEFAULT_PRESENT_UPCOMING;else if(!1===t)t=!1;else if(!(0,i.isInteger)(t)||t<0)throw new Error("presentUpcoming 'delay' must be either a boolean or a positive integer.");return this._presentUpcoming.delay=t,this._setupPresentUpcoming(),this._presentUpcoming.delay}},{key:"autoAdvance",value:function(t){if(this._autoAdvance=this._autoAdvance||{},void 0===t)return this._autoAdvance.delay;if(!0===t)t=a.DEFAULT_AUTO_ADVANCE;else if(!1===t)t=!1;else if(!(0,i.isInteger)(t)||t<0)throw new Error("Auto advance 'delay' must be either a boolean or a positive integer.");return this._autoAdvance.delay=t,this._setupAutoAdvance(),this._autoAdvance.delay}},{key:"_setupAutoAdvance",value:function(){var t=this;this._resetAutoAdvance();var e=this._autoAdvance.delay;!1!==e&&(this._autoAdvance={delay:e,trigger:function(){t.player().ended()&&(t._autoAdvance.timeout=setTimeout((function(){t.playNext()}),1e3*e))}},this._context.on("ended",this._autoAdvance.trigger))}},{key:"dispose",value:function(){this._resetAutoAdvance(),this._resetPresentUpcoming(),this._resetRecommendations()}},{key:"_resetPresentUpcoming",value:function(){this.player().trigger("upcomingvideohide"),this._presentUpcoming||(this._presentUpcoming={}),this._presentUpcoming.trigger&&this._context.off("timeupdate",this._presentUpcoming.trigger),this._presentUpcoming.trigger=null,this._presentUpcoming.showTriggered=!1}},{key:"_setupPresentUpcoming",value:function(){var t=this;this._resetPresentUpcoming(),!1!==this._presentUpcoming.delay&&(this._presentUpcoming.trigger=function(){var e=t.player().currentTime(),n=t.player().duration()-e;n<a.UPCOMING_VIDEO_TRANSITION+.5?t._presentUpcoming.showTriggered&&(t.player().trigger("upcomingvideohide"),t._presentUpcoming.showTriggered=!1):n<=t._presentUpcoming.delay&&!t._presentUpcoming.showTriggered&&!t.player().loop()?(t.player().trigger("upcomingvideoshow"),t._presentUpcoming.showTriggered=!0):t._presentUpcoming.showTriggered&&(n>t._presentUpcoming.delay||t.player().loop())&&(t.player().trigger("upcomingvideohide"),t._presentUpcoming.showTriggered=!1)},this._context.on("timeupdate",this._presentUpcoming.trigger))}},{key:"_resetAutoAdvance",value:function(){this._autoAdvance||(this._autoAdvance={}),this._autoAdvance.timeout&&clearTimeout(this._autoAdvance.timeout),this._autoAdvance.trigger&&this._context.off("ended",this._autoAdvance.trigger),this._autoAdvance.timeout=null,this._autoAdvance.trigger=null}},{key:"_resetRecommendations",value:function(){this._recommendationsHandler&&this._context.off("ended",this._recommendationsHandler)}},{key:"_refreshRecommendations",value:function(){var t=this;this._resetRecommendations(),this._recommendationsHandler=function(){!1===t.autoAdvance()&&t._context.autoShowRecommendations()&&t.player().trigger("recommendationsshow")},this._context.on("ended",this._recommendationsHandler)}},{key:"_refreshTextTracks",value:function(){this.player().trigger("refreshTextTracks",this.currentSource().textTracks())}},{key:"_recommendationItemBuilder",value:function(t){var e=this,n=this._defaultRecResolverCache[t.objectId];if(!t.recommendations()||n&&t.recommendations()===n)return function(t){return{source:t,action:function(){return e.playItem(t)}}}}},{key:"currentIndex",value:function(t){if(void 0===t)return this._currentIndex;if(t>=this.length()||t<0)throw new Error("Invalid playlist index.");this._currentIndex=t;var e=this.currentSource(),n=this._recommendationItemBuilder(e);e.recommendations()||e.recommendations(this._defaultRecommendationsResolver(e)),this._context.source(e,{recommendationOptions:{disableAutoShow:!0,itemBuilder:n}});var r={playlist:this,current:e,next:this.next()};return this.player().trigger("playlistitemchanged",r),this._refreshRecommendations(),this._refreshTextTracks(),e}},{key:"_defaultRecommendationsResolver",value:function(t){var e=this,n=this._defaultRecResolverCache[t.objectId];return n||(this._defaultRecResolverCache[t.objectId]=function(){for(var n=e.list().indexOf(t),r=[],o=Math.min(4,e.length()-1);r.length<o&&-1!==(n=e.nextIndex(n));){var i=e.list()[n];r.push(i)}return r},this._defaultRecResolverCache[t.objectId])}},{key:"buildSource",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this._context.buildSource(t,e)}},{key:"enqueue",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t instanceof o.default?t:this.buildSource(t,e);return this._sources.push(n),n}},{key:"playItem",value:function(t){var e=this.list().indexOf(t);if(-1===e)throw new Error("Invalid playlist item.");this.playAtIndex(e)}},{key:"playAtIndex",value:function(t){return this.currentIndex(t),this.player().play(),this.currentSource()}},{key:"currentSource",value:function(){return this.list()[this.currentIndex()]}},{key:"removeAt",value:function(t){if(t>=this.length()||t<0)throw new Error("Invalid playlist index.");return this._sources.splice(t,1),this}},{key:"repeat",value:function(t){return void 0===t||(this._repeat=!!t),this._repeat}},{key:"first",value:function(){return this.list()[0]}},{key:"last",value:function(){return this.list()[this.length()-1]}},{key:"next",value:function(){var t=this.nextIndex();return-1===t?null:this.list()[t]}},{key:"nextIndex",value:function(t){if((t=void 0!==t?t:this.currentIndex())>=this.length()||t<0)throw new Error("Invalid playlist index.");var e=t+1;if(t===this.length()-1){if(!this.repeat())return-1;e=0}return e}},{key:"previousIndex",value:function(){return this.isFirst()?-1:this.currentIndex()-1}},{key:"playFirst",value:function(){return this.playAtIndex(0)}},{key:"playLast",value:function(){var t=this.list().length-1;return this.playAtIndex(t)}},{key:"isLast",value:function(){return this.currentIndex()>=this.length()-1}},{key:"isFirst",value:function(){return 0===this.currentIndex()}},{key:"length",value:function(){return this.list().length}},{key:"playNext",value:function(){var t=this.nextIndex();return-1===t?null:this.playAtIndex(t)}},{key:"playPrevious",value:function(){var t=this.previousIndex();return-1===t?null:this.playAtIndex(t)}}],n&&u(e.prototype,n),r&&u(e,r),Object.defineProperty(e,"prototype",{writable:!1}),t}(),l=c;e.default=l},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.formatToMimeTypeAndTransformation=function(t){var e=(c=t.toLowerCase().split("/"),l=2,function(t){if(Array.isArray(t))return t}(c)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,i=[],a=!0,s=!1;try{for(n=n.call(t);!(a=(r=n.next()).done)&&(i.push(r.value),!e||i.length!==e);a=!0);}catch(t){s=!0,o=t}finally{try{a||null==n.return||n.return()}finally{if(s)throw o}}return i}}(c,l)||function(t,e){if(t){if("string"==typeof t)return u(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?u(t,e):void 0}}(c,l)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),n=e[0],i=e[1],a=r.CONTAINER_MIME_TYPES[n],s=null;var c,l;a||(a=["video/".concat(n),s]);i&&(s=(0,o.codecToSrcTransformation)(i),a=["".concat(a[0],'; codecs="').concat((0,o.codecShorthandTrans)(i),'"'),s]);return a},e.isCodecAlreadyExist=void 0,e.normalizeFormat=function(t){t=t.toLowerCase().split("/").shift();var e=r.FORMAT_MAPPINGS[t];e||(e=t.split("/").shift());return e};var r=n(118),o=n(31),i=n(13),a=n(116),s=n(85);function u(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var c=function(t){return t&&(0,s.some)(Object.values(o.VIDEO_CODEC),(function(e){return t.includes(e)}))};e.isCodecAlreadyExist=function(t,e){return!(!t&&!e)&&(!!function(t){return(0,s.some)(["video_codec","streaming_profile"],(function(e){return(0,a.isKeyInTransformation)(t,e)}))}(t)||((0,i.isString)(e)?c(e):(0,s.some)(t,(function(t){return(0,s.some)(t,(function(t){return c((0,i.isPlainObject)(t)?t.video_codec:t)}))}))))}},function(t,e,n){"use strict";function r(t){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r(t)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o,i=(o=n(1))&&o.__esModule?o:{default:o};n(439);var a=n(27);function s(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function u(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function c(t,e,n){return e&&u(t.prototype,e),n&&u(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function l(){return l="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var r=f(t,e);if(r){var o=Object.getOwnPropertyDescriptor(r,e);return o.get?o.get.call(arguments.length<3?t:n):o.value}},l.apply(this,arguments)}function f(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=g(t)););return t}function h(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&p(t,e)}function p(t,e){return p=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},p(t,e)}function d(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=g(t);if(e){var o=g(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return v(this,n)}}function v(t,e){if(e&&("object"===r(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return y(t)}function y(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function g(t){return g=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},g(t)}function m(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var _=i.default.dom||i.default,b=i.default.getComponent("Component"),w=function(t){h(n,t);var e=d(n);function n(t){var r;s(this,n);for(var o=arguments.length,i=new Array(o>1?o-1:0),a=1;a<o;a++)i[a-1]=arguments[a];return m(y(r=e.call.apply(e,[this,t].concat(i))),"_hide",(function(){r.removeClass(n.VJS_UPCOMING_VIDEO_SHOW)})),m(y(r),"_onPlaylistItemChange",(function(t,e){r._hide(),r._disableTransition((function(){e.next&&r.setItem(e.next)}))})),m(y(r),"_show",(function(){var t=r.player().ima,e="object"===t&&t.getAdsManager();e&&e.getCurrentAd()&&!e.getCurrentAd().isLinear()||r.addClass(n.VJS_UPCOMING_VIDEO_SHOW)})),r._setEvents(t),r}return c(n,[{key:"_setEvents",value:function(t){t.on(a.PLAYER_EVENT.UP_COMING_VIDEO_SHOW,this._show),t.on(a.PLAYER_EVENT.UP_COMING_VIDEO_HIDE,this._hide),t.on(a.PLAYER_EVENT.PLAYLIST_ITEM_CHANGED,this._onPlaylistItemChange)}},{key:"_disableTransition",value:function(t){this.addClass(n.DISABLE_TRANSITION_CLASS),t(),this.removeClass(n.DISABLE_TRANSITION_CLASS)}},{key:"setTitle",value:function(t){this.getChild("upcomingVideoOverlayContent").getChild("upcomingVideoOverlayBar").getChild("upcomingVideoOverlayTitle").setContent(t.info().title||t.publicId())}},{key:"setItem",value:function(t){this._source=t;var e=parseInt(window.getComputedStyle(this.el(),null).getPropertyValue("max-width"),10),n={crop:"pad",background:"auto:predominant",width:e,height:Math.round(e*(9/16))},r=this.getChild("upcomingVideoOverlayContent");this.setTitle(t),r.el().style.backgroundImage="url(".concat(this._source.poster().url({transformation:n}),")")}},{key:"handleClick",value:function(){l(g(n.prototype),"handleClick",this).call(this,event),this.player().cloudinary.playlist().playNext()}},{key:"createEl",value:function(){return l(g(n.prototype),"createEl",this).call(this,"div",{className:"vjs-upcoming-video"})}}]),n}(i.default.getComponent("ClickableComponent"));m(w,"DISABLE_TRANSITION_CLASS","disable-transition"),m(w,"VJS_UPCOMING_VIDEO_SHOW","vjs-upcoming-video-show");var E=function(t){h(n,t);var e=d(n);function n(){return s(this,n),e.apply(this,arguments)}return c(n,[{key:"createEl",value:function(){return l(g(n.prototype),"createEl",this).call(this,"div",{className:"upcoming-video-overlay aspect-ratio-content"})}}]),n}(b),T=function(t){h(n,t);var e=d(n);function n(){return s(this,n),e.apply(this,arguments)}return c(n,[{key:"setContent",value:function(t){this._contentSpan.innerText=t}},{key:"createEl",value:function(){var t=l(g(n.prototype),"createEl",this).call(this,"div",{className:"vjs-control vjs-upcoming-video-title"}),e=_.createEl("div",{className:"vjs-upcoming-video-title-display",innerHTML:'<span class="vjs-control-text">Next up</span>Next up: '});return this._contentSpan=_.createEl("span",{className:"vjs-upcoming-video-title-display-label"}),e.appendChild(this._contentSpan),t.appendChild(e),t}}]),n}(b),S=function(t){h(n,t);var e=d(n);function n(){return s(this,n),e.apply(this,arguments)}return c(n,[{key:"createEl",value:function(){return l(g(n.prototype),"createEl",this).call(this,"div",{className:"vjs-upcoming-video-bar"})}}]),n}(b);w.prototype.options_={children:["upcomingVideoOverlayContent"]},i.default.registerComponent("upcomingVideoOverlay",w),E.prototype.options_={children:["upcomingVideoOverlayBar"]},i.default.registerComponent("upcomingVideoOverlayContent",E),S.prototype.options_={children:["upcomingVideoOverlayTitle","playlistNextButton"]},i.default.registerComponent("upcomingVideoOverlayBar",S),i.default.registerComponent("upcomingVideoOverlayTitle",T);var O=w;e.default=O},function(t,e,n){"use strict";n.r(e)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"PlaylistNextButton",{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(e,"PlaylistPreviousButton",{enumerable:!0,get:function(){return o.default}});var r=i(n(441)),o=i(n(442));function i(t){return t&&t.__esModule?t:{default:t}}n(443)},function(t,e,n){"use strict";function r(t){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r(t)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=a(n(187)),i=a(n(1));function a(t){return t&&t.__esModule?t:{default:t}}function s(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function u(){return u="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var r=c(t,e);if(r){var o=Object.getOwnPropertyDescriptor(r,e);return o.get?o.get.call(arguments.length<3?t:n):o.value}},u.apply(this,arguments)}function c(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=p(t)););return t}function l(t,e){return l=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},l(t,e)}function f(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=p(t);if(e){var o=p(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return h(this,n)}}function h(t,e){if(e&&("object"===r(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function p(t){return p=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},p(t)}var d=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&l(t,e)}(i,t);var e,n,r,o=f(i);function i(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i),o.call(this,t,{type:"next"})}return e=i,(n=[{key:"handleClick",value:function(t){t.stopPropagation(),u(p(i.prototype),"handleClick",this).call(this,t),this.player().cloudinary.playlist().playNext()}}])&&s(e.prototype,n),r&&s(e,r),Object.defineProperty(e,"prototype",{writable:!1}),i}(o.default);i.default.registerComponent("PlaylistNextButton",d);var v=d;e.default=v},function(t,e,n){"use strict";function r(t){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r(t)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=a(n(187)),i=a(n(1));function a(t){return t&&t.__esModule?t:{default:t}}function s(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function u(){return u="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var r=c(t,e);if(r){var o=Object.getOwnPropertyDescriptor(r,e);return o.get?o.get.call(arguments.length<3?t:n):o.value}},u.apply(this,arguments)}function c(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=p(t)););return t}function l(t,e){return l=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},l(t,e)}function f(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=p(t);if(e){var o=p(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return h(this,n)}}function h(t,e){if(e&&("object"===r(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function p(t){return p=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},p(t)}var d=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&l(t,e)}(i,t);var e,n,r,o=f(i);function i(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i),o.call(this,t,{type:"previous"})}return e=i,(n=[{key:"handleClick",value:function(t){u(p(i.prototype),"handleClick",this).call(this,t),this.player().cloudinary.playlist().playPrevious()}}])&&s(e.prototype,n),r&&s(e,r),Object.defineProperty(e,"prototype",{writable:!1}),i}(o.default);i.default.registerComponent("PlaylistPreviousButton",d);var v=d;e.default=v},function(t,e,n){"use strict";n.r(e)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.normalizeJsonResponse=void 0;var r=n(13),o=n(80),i=n(183),a=["created_at","updated_at"];e.normalizeJsonResponse=function t(e){var n={};return(0,r.isPlainObject)(e)?(Object.keys(e).reduce((function(n,r){var s=(0,o.camelize)(r);return-1!==a.indexOf(r)?n[s]=new Date((0,i.parseISO8601)(e[r])):n[s]=t(e[r]),n}),n),n):Array.isArray(e)?e.map((function(e){return t(e)})):e}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=n(128);function o(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var i=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this._emitter=e,this._eventHandlers=[]}var e,n,i;return e=t,n=[{key:"on",value:function(t,e){this._eventHandlers.push({type:t,handler:e}),this._emitter.on(t,e)}},{key:"one",value:function(t,e){var n=this;this._eventHandlers.push({type:t,handler:e,wrapper:function(){e.apply(void 0,arguments),n.off(t,e)}}),this._emitter.one(t,e)}},{key:"off",value:function(t,e){var n=(0,r.findIndex)(this._eventHandlers,(function(n){return n.type===t&&n.handler===e}));if(-1!==n){var o=this._eventHandlers[n];this._emitter.off(t,o.wrapper||o.handler),this._eventHandlers.splice(n,1)}}},{key:"removeAllListeners",value:function(){var t=this;this._eventHandlers.forEach((function(e){t.off(e)}))}}],n&&o(e.prototype,n),i&&o(e,i),Object.defineProperty(e,"prototype",{writable:!1}),t}(),a=i;e.default=a},function(t,e,n){"use strict";function r(t){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r(t)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=h(n(86)),i=h(n(84)),a=n(31),s=n(20),u=n(12),c=n(131),l=n(447),f=n(27);function h(t){return t&&t.__esModule?t:{default:t}}function p(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function d(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function v(t,e){return v=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},v(t,e)}function y(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=m(t);if(e){var o=m(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return g(this,n)}}function g(t,e){if(e&&("object"===r(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function m(t){return m=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},m(t)}var _=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&v(t,e)}(h,t);var e,n,r,o=y(h);function h(t){var e,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};p(this,h);var r=(0,a.normalizeOptions)(t,n);t=r.publicId,n=r.options,t=t.replace(l.AUDIO_SUFFIX_REMOVAL_PATTERN,""),n=(0,u.assign)({},l.DEFAULT_AUDIO_PARAMS,n);var i=(0,s.sliceAndUnsetProperties)(n,"poster"),c=i.poster;return(e=o.call(this,t,n))._poster=null,e._type=f.SOURCE_TYPE.AUDIO,e.poster(c),e}return e=h,n=[{key:"getPoster",value:function(){return this._poster}},{key:"poster",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!t)return this._poster;if(t instanceof i.default)return this._poster=t,this;var n=(0,a.normalizeOptions)(t,e,{tolerateMissingId:!0});return t=n.publicId,e=n.options,t||(t=this.publicId(),e=(0,u.assign)({},e,l.DEFAULT_POSTER_PARAMS)),e.cloudinaryConfig=e.cloudinaryConfig||this.cloudinaryConfig(),this._poster=new i.default(t,e),this}},{key:"generateSources",value:function(){var t=this;return this.sourceTypes().map((function(e){if("audio"===e){var n={},r=t.sourceTransformation()[e]||[t.transformation()];r&&(n.transformation=r),(0,u.assign)(n,{resource_type:"video",format:"mp3"});var o=t.queryParams()?(0,c.objectToQuerystring)(t.queryParams()):"";return{type:"video/mp4",src:"".concat(t.config().url(t.publicId(),n)).concat(o),cldSrc:t,poster:t.getPoster().url()}}return null}),this)}}],n&&d(e.prototype,n),r&&d(e,r),Object.defineProperty(e,"prototype",{writable:!1}),h}(o.default),b=_;e.default=b},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.DEFAULT_POSTER_PARAMS=e.DEFAULT_AUDIO_PARAMS=e.COMMON_AUDIO_FORMATS=e.AUDIO_SUFFIX_REMOVAL_PATTERN=void 0;e.DEFAULT_POSTER_PARAMS={format:"jpg",resource_type:"video",transformation:{flags:"waveform"}};var r=["mp3","ogg","wav","mp4"];e.COMMON_AUDIO_FORMATS=r;var o=RegExp("\\.(".concat(r.join("|"),")$$"));e.AUDIO_SUFFIX_REMOVAL_PATTERN=o;e.DEFAULT_AUDIO_PARAMS={resource_type:"video",type:"upload",transformation:[]}},function(t,e,n){"use strict";function r(t){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r(t)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};new v(this,t).init()};var o,i=(o=n(1))&&o.__esModule?o:{default:o},a=n(20),s=function(t,e){if(!e&&t&&t.__esModule)return t;if(null===t||"object"!==r(t)&&"function"!=typeof t)return{default:t};var n=c(e);if(n&&n.has(t))return n.get(t);var o={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in t)if("default"!==a&&Object.prototype.hasOwnProperty.call(t,a)){var s=i?Object.getOwnPropertyDescriptor(t,a):null;s&&(s.get||s.set)?Object.defineProperty(o,a,s):o[a]=t[a]}o.default=t,n&&n.set(t,o);return o}(n(189)),u=n(27);function c(t){if("function"!=typeof WeakMap)return null;var e=new WeakMap,n=new WeakMap;return(c=function(t){return t?n:e})(t)}function l(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function f(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var h=[u.PLAYER_EVENT.PLAY,u.PLAYER_EVENT.PAUSE,u.PLAYER_EVENT.ENDED,u.PLAYER_EVENT.VOLUME_CHANGE,u.PLAYER_EVENT.RESIZE,u.PLAYER_EVENT.ERROR,u.PLAYER_EVENT.FULL_SCREEN_CHANGE,u.PLAYER_EVENT.START,u.PLAYER_EVENT.VIDEO_LOAD,u.PLAYER_EVENT.PERCENTS_PLAYED,u.PLAYER_EVENT.SEEK,u.PLAYER_EVENT.PLAYER_LOAD],p={percentsplayed:{percents:[25,50,75,100]}},d={events:h,category:"Video",defaultLabel:function(t){return t.cloudinary&&t.cloudinary.currentPublicId()||t.currentSource().src}},v=function(){function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};l(this,t),this.player=e,this.options=i.default.mergeOptions(d,n),this.events=(0,s.normalizeEventsParam)(this.options.events,p);var r=(0,a.sliceProperties)(this.events,u.PLAYER_EVENT.PERCENTS_PLAYED,u.PLAYER_EVENT.TIME_PLAYED,u.PLAYER_EVENT.PAUSE,u.PLAYER_EVENT.SEEK);r.pause&&(delete r.pause,r.pausenoseek={}),this._extendedEvents=new s.default(e,{events:r}),this._currentSource=null,this._startTracked=null,this._endTracked=null,this.resetState()}var e,n,r;return e=t,(n=[{key:"init",value:function(){var t=this;this.events.shoppable&&(this.player.on("productHover",function(e,n){t.track({action:"productHover",label:n.productName})}.bind(this)),this.player.on("productClick",function(e,n){t.track({action:"productClick",label:n.productName})}.bind(this)),this.player.on("productHoverPost",function(e,n){t.track({action:"productHoverPostPlay",label:n.productName})}.bind(this)),this.player.on("productClickPost",function(e,n){t.track({action:"productClickPostPlay",label:n.productName})}.bind(this)),this.player.on("productBarMin",function(){t.track({action:"shoppableBar",label:"closed"})}.bind(this)),this.player.on("productBarMax",function(){t.track({action:"shoppableBar",label:"opened"})}.bind(this)),this.player.on("replay",function(){t.track({action:"replay"})}.bind(this))),this.events.play&&this.player.on(u.PLAYER_EVENT.PLAY,function(){t.track({action:"Play"})}.bind(this)),this.events.ended&&this.player.on(u.PLAYER_EVENT.ENDED,function(){t._endTracked||(t.track({action:"Ended",nonInteraction:!0}),t._endTracked=!0)}.bind(this)),this.events.volumechange&&this.player.on(u.PLAYER_EVENT.VOLUME_CHANGE,function(){var e=t.player.muted()?0:t.player.volume();t.track({action:"Volume Change",value:e})}.bind(this)),this.events.resize&&this.player.on(u.PLAYER_EVENT.RESIZE,function(){var e="Resize - ".concat(t.player.width(),"x").concat(t.player.height(),"}");t.track({action:e})}.bind(this)),this.events.error&&this.player.on(u.PLAYER_EVENT.ERROR,function(){t.track({action:"Error",nonInteraction:!0})}.bind(this)),this.events.start&&this.player.on(u.PLAYER_EVENT.PLAYING,function(){t._startTracked&&(t.track({action:"Start"}),t._startTracked=!0)}.bind(this)),this.events.fullscreenchange&&this.player.on(u.PLAYER_EVENT.FULL_SCREEN_CHANGE,function(){var e=t.player.isFullscreen()?"Enter Fullscreen":"Exit Fullscreen";t.track({action:e})}.bind(this)),this.events.percentsplayed&&this._extendedEvents.on(u.PLAYER_EVENT.PERCENTS_PLAYED,function(e,n){var r=n.percent;t.track({action:"".concat(r," Percents Played"),nonInteraction:!0})}.bind(this)),this.events.timeplayed&&this._extendedEvents.on(u.PLAYER_EVENT.TIME_PLAYED,function(e,n){var r=n.time;t.track({action:"".concat(r," Seconds Played"),value:r,nonInteraction:!0})}.bind(this)),this.events.pause&&this._extendedEvents.on(u.PLAYER_EVENT.PAUSE_NO_SEEK,function(){t.track({action:"Pause"})}.bind(this)),this.events.seek&&this._extendedEvents.on(u.PLAYER_EVENT.SEEK,function(e,n){var r=n.seekStart,o=n.seekEnd;t.track({action:"Seek Start",value:r}),t.track({action:"Seek End",value:o})}.bind(this)),this.events.playerload&&t.track({action:"Player Load",label:window.location.href,nonInteraction:!0}),this.player.on(u.PLAYER_EVENT.LOADED_METADATA,this.loadedmetadata.bind(this))}},{key:"track",value:function(t){var e=t.action,n=t.label,r=t.value,o=void 0===r?null:r,i=t.nonInteraction,a=void 0!==i&&i,s={eventCategory:this.options.category,eventAction:e,eventLabel:n||this.options.defaultLabel(this.player),eventValue:o||Math.round(this.player.currentTime()),nonInteraction:a};window.ga("send","event",s)}},{key:"videoload",value:function(){this.track({action:"Video Load",nonInteraction:!0})}},{key:"resetState",value:function(){this._currentSource="",this._startTracked=!1,this._endTracked=!1}},{key:"loadedmetadata",value:function(){var t=this.player.currentSource().src;t!==this._currentSource&&(this.resetState(),this._currentSource=t,this.events.videoload&&this.videoload())}}])&&f(e.prototype,n),r&&f(e,r),Object.defineProperty(e,"prototype",{writable:!1}),t}()},function(t,e,n){"use strict";var r,o="object"==typeof Reflect?Reflect:null,i=o&&"function"==typeof o.apply?o.apply:function(t,e,n){return Function.prototype.apply.call(t,e,n)};r=o&&"function"==typeof o.ownKeys?o.ownKeys:Object.getOwnPropertySymbols?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:function(t){return Object.getOwnPropertyNames(t)};var a=Number.isNaN||function(t){return t!=t};function s(){s.init.call(this)}t.exports=s,t.exports.once=function(t,e){return new Promise((function(n,r){function o(n){t.removeListener(e,i),r(n)}function i(){"function"==typeof t.removeListener&&t.removeListener("error",o),n([].slice.call(arguments))}g(t,e,i,{once:!0}),"error"!==e&&function(t,e,n){"function"==typeof t.on&&g(t,"error",e,n)}(t,o,{once:!0})}))},s.EventEmitter=s,s.prototype._events=void 0,s.prototype._eventsCount=0,s.prototype._maxListeners=void 0;var u=10;function c(t){if("function"!=typeof t)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof t)}function l(t){return void 0===t._maxListeners?s.defaultMaxListeners:t._maxListeners}function f(t,e,n,r){var o,i,a;if(c(n),void 0===(i=t._events)?(i=t._events=Object.create(null),t._eventsCount=0):(void 0!==i.newListener&&(t.emit("newListener",e,n.listener?n.listener:n),i=t._events),a=i[e]),void 0===a)a=i[e]=n,++t._eventsCount;else if("function"==typeof a?a=i[e]=r?[n,a]:[a,n]:r?a.unshift(n):a.push(n),(o=l(t))>0&&a.length>o&&!a.warned){a.warned=!0;var s=new Error("Possible EventEmitter memory leak detected. "+a.length+" "+String(e)+" listeners added. Use emitter.setMaxListeners() to increase limit");s.name="MaxListenersExceededWarning",s.emitter=t,s.type=e,s.count=a.length,console&&console.warn}return t}function h(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function p(t,e,n){var r={fired:!1,wrapFn:void 0,target:t,type:e,listener:n},o=h.bind(r);return o.listener=n,r.wrapFn=o,o}function d(t,e,n){var r=t._events;if(void 0===r)return[];var o=r[e];return void 0===o?[]:"function"==typeof o?n?[o.listener||o]:[o]:n?function(t){for(var e=new Array(t.length),n=0;n<e.length;++n)e[n]=t[n].listener||t[n];return e}(o):y(o,o.length)}function v(t){var e=this._events;if(void 0!==e){var n=e[t];if("function"==typeof n)return 1;if(void 0!==n)return n.length}return 0}function y(t,e){for(var n=new Array(e),r=0;r<e;++r)n[r]=t[r];return n}function g(t,e,n,r){if("function"==typeof t.on)r.once?t.once(e,n):t.on(e,n);else{if("function"!=typeof t.addEventListener)throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof t);t.addEventListener(e,(function o(i){r.once&&t.removeEventListener(e,o),n(i)}))}}Object.defineProperty(s,"defaultMaxListeners",{enumerable:!0,get:function(){return u},set:function(t){if("number"!=typeof t||t<0||a(t))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+t+".");u=t}}),s.init=function(){void 0!==this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},s.prototype.setMaxListeners=function(t){if("number"!=typeof t||t<0||a(t))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+t+".");return this._maxListeners=t,this},s.prototype.getMaxListeners=function(){return l(this)},s.prototype.emit=function(t){for(var e=[],n=1;n<arguments.length;n++)e.push(arguments[n]);var r="error"===t,o=this._events;if(void 0!==o)r=r&&void 0===o.error;else if(!r)return!1;if(r){var a;if(e.length>0&&(a=e[0]),a instanceof Error)throw a;var s=new Error("Unhandled error."+(a?" ("+a.message+")":""));throw s.context=a,s}var u=o[t];if(void 0===u)return!1;if("function"==typeof u)i(u,this,e);else{var c=u.length,l=y(u,c);for(n=0;n<c;++n)i(l[n],this,e)}return!0},s.prototype.addListener=function(t,e){return f(this,t,e,!1)},s.prototype.on=s.prototype.addListener,s.prototype.prependListener=function(t,e){return f(this,t,e,!0)},s.prototype.once=function(t,e){return c(e),this.on(t,p(this,t,e)),this},s.prototype.prependOnceListener=function(t,e){return c(e),this.prependListener(t,p(this,t,e)),this},s.prototype.removeListener=function(t,e){var n,r,o,i,a;if(c(e),void 0===(r=this._events))return this;if(void 0===(n=r[t]))return this;if(n===e||n.listener===e)0==--this._eventsCount?this._events=Object.create(null):(delete r[t],r.removeListener&&this.emit("removeListener",t,n.listener||e));else if("function"!=typeof n){for(o=-1,i=n.length-1;i>=0;i--)if(n[i]===e||n[i].listener===e){a=n[i].listener,o=i;break}if(o<0)return this;0===o?n.shift():function(t,e){for(;e+1<t.length;e++)t[e]=t[e+1];t.pop()}(n,o),1===n.length&&(r[t]=n[0]),void 0!==r.removeListener&&this.emit("removeListener",t,a||e)}return this},s.prototype.off=s.prototype.removeListener,s.prototype.removeAllListeners=function(t){var e,n,r;if(void 0===(n=this._events))return this;if(void 0===n.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==n[t]&&(0==--this._eventsCount?this._events=Object.create(null):delete n[t]),this;if(0===arguments.length){var o,i=Object.keys(n);for(r=0;r<i.length;++r)"removeListener"!==(o=i[r])&&this.removeAllListeners(o);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(e=n[t]))this.removeListener(t,e);else if(void 0!==e)for(r=e.length-1;r>=0;r--)this.removeListener(t,e[r]);return this},s.prototype.listeners=function(t){return d(this,t,!0)},s.prototype.rawListeners=function(t){return d(this,t,!1)},s.listenerCount=function(t,e){return"function"==typeof t.listenerCount?t.listenerCount(e):v.call(t,e)},s.prototype.listenerCount=v,s.prototype.eventNames=function(){return this._eventsCount>0?r(this._events):[]}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=i(n(1)),o=i(n(117));function i(t){return t&&t.__esModule?t:{default:t}}n(451);var a={},s={},u=function(){function t(t,e){return this.player=t,this.options=e,this.listenForDurationChange(),this.initializeThumbnails(),this.registeredEvents={},this}return t.prototype.src=function(t){this.resetPlugin(),this.options.src=t,this.initializeThumbnails()},t.prototype.detach=function(){this.resetPlugin()},t.prototype.resetPlugin=function(){this.thumbnailHolder&&this.thumbnailHolder.parentNode.removeChild(this.thumbnailHolder),this.progressBar&&(this.progressBar.removeEventListener("mouseenter",this.registeredEvents.progressBarMouseEnter),this.progressBar.removeEventListener("mouseleave",this.registeredEvents.progressBarMouseLeave),this.progressBar.removeEventListener("mousemove",this.registeredEvents.progressBarMouseMove)),delete this.registeredEvents.progressBarMouseEnter,delete this.registeredEvents.progressBarMouseLeave,delete this.registeredEvents.progressBarMouseMove,delete this.progressBar,delete this.vttData,delete this.thumbnailHolder,delete this.lastStyle},t.prototype.listenForDurationChange=function(){this.player.on("durationchange",(function(){}))},t.prototype.initializeThumbnails=function(){var t=this;if(this.options.src){var e=this.getBaseUrl(),n=this.getFullyQualifiedUrl(this.options.src,e);this.getVttFile(n).then((function(e){t.vttData=t.processVtt(e),t.setupThumbnailElement()}))}},t.prototype.getBaseUrl=function(){return[window.location.protocol,"//",window.location.hostname,window.location.port?":"+window.location.port:"",window.location.pathname].join("").split(/([^\/]*)$/gi).shift()},t.prototype.getVttFile=function(t){var e=this;return new o.default((function(n){var r=new XMLHttpRequest;r.data={resolve:n},r.addEventListener("load",e.vttFileLoaded),r.open("GET",t),r.send()}))},t.prototype.vttFileLoaded=function(){this.data.resolve(this.responseText)},t.prototype.setupThumbnailElement=function(){var t=this,e=this.player.$(".vjs-mouse-display");this.progressBar=this.player.$(".vjs-progress-control");var n=document.createElement("div");n.setAttribute("class","vjs-vtt-thumbnail-display"),this.progressBar.appendChild(n),this.thumbnailHolder=n;var r=document.createElement("div");r.setAttribute("class","vjs-vtt-time-display"),this.thumbnailHolder.appendChild(r),this.timeHolder=r,e&&e.classList.add("vjs-hidden"),this.registeredEvents.progressBarMouseEnter=function(){return t.onBarMouseenter()},this.registeredEvents.progressBarMouseLeave=function(){return t.onBarMouseleave()},this.progressBar.addEventListener("mouseenter",this.registeredEvents.progressBarMouseEnter),this.progressBar.addEventListener("mouseleave",this.registeredEvents.progressBarMouseLeave)},t.prototype.onBarMouseenter=function(){var t=this;this.progressBar.offsetWidth<400||(this.mouseMoveCallback=function(e){t.onBarMousemove(e)},this.registeredEvents.progressBarMouseMove=this.mouseMoveCallback,this.progressBar.addEventListener("mousemove",this.registeredEvents.progressBarMouseMove),this.showThumbnailHolder())},t.prototype.onBarMouseleave=function(){this.registeredEvents.progressBarMouseMove&&this.progressBar.removeEventListener("mousemove",this.registeredEvents.progressBarMouseMove),this.hideThumbnailHolder()},t.prototype.getXCoord=function(t,e){var n=t.getBoundingClientRect(),r=document.documentElement;return e-(n.left+(window.pageXOffset||r.scrollLeft||0))},t.prototype.onBarMousemove=function(t){this.updateThumbnailStyle(r.default.dom.getPointerPosition(this.progressBar,t).x,this.progressBar.offsetWidth)},t.prototype.getStyleForTime=function(t){for(var e=0;e<this.vttData.length;++e){var n=this.vttData[e];if(t>=n.start&&t<n.end){if(n.css.url&&!s[n.css.url]){var r=new Image;r.src=n.css.url,s[n.css.url]=r}return n.css}}},t.prototype.showThumbnailHolder=function(){this.thumbnailHolder.style.opacity="1"},t.prototype.hideThumbnailHolder=function(){this.thumbnailHolder.style.opacity="0"},t.prototype.updateThumbnailStyle=function(t,e){var n=t*this.player.duration(),r=this.getStyleForTime(n);if(!r)return this.hideThumbnailHolder();var o=t*e,i=parseInt(r.width,10),a=i/2,s=e-(o+a),u=o-a;if(u>0&&s>0?this.thumbnailHolder.style.transform="translateX("+(o-a)+"px)":u<=0?this.thumbnailHolder.style.transform="translateX(0px)":s<=0&&(this.thumbnailHolder.style.transform="translateX("+(e-i)+"px)"),this.timeHolder.innerHTML=this.getTimestampFromSeconds(n),!this.lastStyle||this.lastStyle!==r)for(var c in this.lastStyle=r,r)Object.prototype.hasOwnProperty.call(r,c)&&(this.thumbnailHolder.style[c]=r[c])},t.prototype.processVtt=function(t){var e=this,n=[];return t.split(/[\r\n][\r\n]/i).forEach((function(t){if(t.match(/([0-9]{2}:)?([0-9]{2}:)?[0-9]{2}(.[0-9]{3})?( ?--> ?)([0-9]{2}:)?([0-9]{2}:)?[0-9]{2}(.[0-9]{3})?[\r\n]{1}.*/gi)){var r=t.split(/[\r\n]/i),o=r[0].split(/ ?--> ?/i),i=o[0],a=o[1],s=r[1].split("/").pop(),u=e.getVttCss(s);n.push({start:e.getSecondsFromTimestamp(i),end:e.getSecondsFromTimestamp(a),css:u})}})),n},t.prototype.getFullyQualifiedUrl=function(t,e){return t.indexOf("//")>=0?t:0===e.indexOf("//")?[e.replace(/\/$/gi,""),this.trim(t,"/")].join("/"):e.indexOf("//")>0?[this.trim(e,"/"),this.trim(t,"/")].join("/"):t},t.prototype.getPropsFromDef=function(t){var e=t.split(/#xywh=/i),n=e[0],r=e[1].match(/[0-9]+/gi);return{x:r[0],y:r[1],w:r[2],h:r[3],image:n}},t.prototype.getVttCss=function(t){var e={},n="";if(n=this.options.src.indexOf("//")>=0?this.options.src.split(/([^\/]*)$/gi).shift():this.getBaseUrl()+this.options.src.split(/([^\/]*)$/gi).shift(),!(t=this.getFullyQualifiedUrl(t,n)).match(/#xywh=/i))return e.background='url("'+t+'")',e;var r=this.getPropsFromDef(t);return e.background='url("'+r.image+'") no-repeat -'+r.x+"px -"+r.y+"px",e.width=r.w+"px",e.height=r.h+"px",e.url=r.image,e},t.prototype.doconstructTimestamp=function(t){var e=t.split("."),n=e[0].split(":");return{milliseconds:parseInt(e[1],10)||0,seconds:parseInt(n.pop(),10)||0,minutes:parseInt(n.pop(),10)||0,hours:parseInt(n.pop(),10)||0}},t.prototype.getSecondsFromTimestamp=function(t){var e=this.doconstructTimestamp(t);return parseInt(3600*e.hours+60*e.minutes+e.seconds+e.milliseconds/1e3,10)},t.prototype.getTimestampFromSeconds=function(t){var e=Math.floor(t/60),n=Math.floor(t%60);return n<10&&(n="0"+n),e+":"+n},t.prototype.trim=function(t,e){var n=[" ","\n","\r","\t","\f","\v"," "," "," "," "," "," "," "," "," "," "," "," ","​","\u2028","\u2029"," "].join(""),r=0,o=0;for(t+="",e&&(n=(e+"").replace(/([[\]().?/*{}+$^:])/g,"$1")),r=t.length,o=0;o<r;o++)if(-1===n.indexOf(t.charAt(o))){t=t.substring(o);break}for(o=(r=t.length)-1;o>=0;o--)if(-1===n.indexOf(t.charAt(o))){t=t.substring(0,o+1);break}return-1===n.indexOf(t.charAt(0))?t:""},t}(),c=function(t){var e=this;this.ready((function(){!function(t,e){t.addClass("vjs-vtt-thumbnails"),t.vttThumbnails=new u(t,e)}(e,r.default.mergeOptions(a,t))}))};e.default=c},function(t,e,n){"use strict";n.r(e)},function(t,e,n){"use strict";function r(t){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r(t)}function o(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function i(t,e){return i=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},i(t,e)}function a(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=c(t);if(e){var o=c(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return s(this,n)}}function s(t,e){if(e&&("object"===r(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return u(t)}function u(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function c(t){return c=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},c(t)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var l=function(t){return function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&i(t,e)}(c,t);var e,n,r,s=a(c);function c(){var t;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,c),t=s.call(this);var e={data:{},handlers:{}};return t.on=function(){for(var n,r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];var a=o.length-1,s=o[a];return e.handlers[s]=function(e){e.Player=u(t);for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];s.apply(void 0,[e].concat(r))},o[a]=e.handlers[s],(n=t.videojs).on.apply(n,o)},t.one=function(){for(var n,r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];var a=o.length-1,s=o[a];return e.handlers[s]=function(n){n.Player=u(t);for(var r=arguments.length,o=new Array(r>1?r-1:0),i=1;i<r;i++)o[i-1]=arguments[i];s.apply(void 0,[n].concat(o)),delete e.handlers[s]},o[a]=e.handlers[s],(n=t.videojs).one.apply(n,o)},t.off=function(){for(var n,r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];var a=o.length-1,s=o[a];o[a]=e.handlers[s];var u=(n=t.videojs).off.apply(n,o);return delete e.handlers[s],u},t.trigger=function(){var e;(e=t.videojs).trigger.apply(e,arguments)},t}return e=c,n&&o(e.prototype,n),r&&o(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}(t)};e.default=l},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=c(n(1)),o=c(n(454)),i=c(n(455)),a=c(n(456)),s=n(188),u=n(27);function c(t){return t&&t.__esModule?t:{default:t}}function l(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function f(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function h(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function p(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?h(Object(n),!0).forEach((function(e){d(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):h(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function d(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var v=function(t,e){var n=p(p({},s.PLAYLIST_DEFAULTS_OPTIONS),e);if(n.show&&"string"==typeof n.selector&&(n.useDefaultLayout=!1,n.useCustomLayout=!0,n.renderTo=document.querySelector(n.selector),n.showAll=!0,0===!n.renderTo.length))throw new Error("Couldn't find element(s) by selector '".concat(n.selector,"' for playlist"));return n.show&&!n.selector&&(n.useDefaultLayout=!0,n.useCustomLayout=!1),n.direction="horizontal"===n.direction.toLowerCase()?"horizontal":"vertical",n.skin=t.options_.skin,n},y=function(){function t(e){var n=this,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};l(this,t),o=v(e,o),this.options_=o,this.player_=e,this.render();var i=function(t,e){n.options_.fluid=e};e.on(u.PLAYER_EVENT.FLUID,i),this.options=function(t){return t?(n.options_=r.default.mergeOptions(n.options_,t),e.trigger("playlistwidgetoption",n.options_.playlistWidget),n.options_):n.options_},this.dispose=function(){n.layout_.dispose(),e.off(u.PLAYER_EVENT.FLUID,i)}}var e,n,c;return e=t,n=[{key:"render",value:function(){this.options_.useDefaultLayout&&("horizontal"===this.options_.direction?this.layout_=new o.default(this.player_,this.options_):this.layout_=new i.default(this.player_,this.options_)),this.options_.useCustomLayout&&(this.layout_=new a.default(this.player_,this.options_))}},{key:"getLayout",value:function(){return this.layout_}},{key:"update",value:function(t,e){this.options(e),"direction"===t?(this.layout_.removeLayout(),this.layout_.dispose(),this.render()):this.layout_.update(t,this.options_)}},{key:"setSkin",value:function(){this.layout_.setCls()}},{key:"total",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:s.PLAYLIST_DEFAULTS_OPTIONS.total,e=parseInt(t,10);return e!==this.options_.total&&"number"==typeof e&&e>0&&this.update("total",{total:e}),this}},{key:"direction",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:s.PLAYLIST_DEFAULTS_OPTIONS.direction;return"horizontal"!==t&&"vertical"!==t||this.update("direction",{direction:t}),this}}],n&&f(e.prototype,n),c&&f(e,c),Object.defineProperty(e,"prototype",{writable:!1}),t}(),g=y;e.default=g},function(t,e,n){"use strict";function r(t){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r(t)}var o;function i(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function a(){return a="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var r=s(t,e);if(r){var o=Object.getOwnPropertyDescriptor(r,e);return o.get?o.get.call(arguments.length<3?t:n):o.value}},a.apply(this,arguments)}function s(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=f(t)););return t}function u(t,e){return u=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},u(t,e)}function c(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=f(t);if(e){var o=f(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return l(this,n)}}function l(t,e){if(e&&("object"===r(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function f(t){return f=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},f(t)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var h=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&u(t,e)}(s,t);var e,n,r,o=c(s);function s(t,e){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,s),e.wrap=!0,o.call(this,t,e)}return e=s,(n=[{key:"getCls",value:function(){var t=a(f(s.prototype),"getCls",this).call(this);return t.push("cld-plw-horizontal"),t}}])&&i(e.prototype,n),r&&i(e,r),Object.defineProperty(e,"prototype",{writable:!1}),s}(((o=n(132))&&o.__esModule?o:{default:o}).default);e.default=h},function(t,e,n){"use strict";function r(t){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r(t)}var o;function i(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function a(){return a="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var r=s(t,e);if(r){var o=Object.getOwnPropertyDescriptor(r,e);return o.get?o.get.call(arguments.length<3?t:n):o.value}},a.apply(this,arguments)}function s(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=f(t)););return t}function u(t,e){return u=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},u(t,e)}function c(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=f(t);if(e){var o=f(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return l(this,n)}}function l(t,e){if(e&&("object"===r(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function f(t){return f=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},f(t)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var h=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&u(t,e)}(s,t);var e,n,r,o=c(s);function s(t,e){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,s),e.wrap=!0,o.call(this,t,e)}return e=s,(n=[{key:"getCls",value:function(){var t=a(f(s.prototype),"getCls",this).call(this);return t.push("cld-plw-vertical"),t}}])&&i(e.prototype,n),r&&i(e,r),Object.defineProperty(e,"prototype",{writable:!1}),s}(((o=n(132))&&o.__esModule?o:{default:o}).default);e.default=h},function(t,e,n){"use strict";function r(t){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r(t)}var o;function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function s(){return s="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var r=u(t,e);if(r){var o=Object.getOwnPropertyDescriptor(r,e);return o.get?o.get.call(arguments.length<3?t:n):o.value}},s.apply(this,arguments)}function u(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=h(t)););return t}function c(t,e){return c=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},c(t,e)}function l(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=h(t);if(e){var o=h(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return f(this,n)}}function f(t,e){if(e&&("object"===r(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function h(t){return h=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},h(t)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var p=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&c(t,e)}(u,t);var e,n,r,o=l(u);function u(){return i(this,u),o.apply(this,arguments)}return e=u,(n=[{key:"getCls",value:function(){var t=s(h(u.prototype),"getCls",this).call(this);return t.push("cld-plw-custom"),t}},{key:"createEl",value:function(){var t=s(h(u.prototype),"createEl",this).call(this);return this.options_.renderTo.appendChild(t),t}}])&&a(e.prototype,n),r&&a(e,r),Object.defineProperty(e,"prototype",{writable:!1}),u}(((o=n(132))&&o.__esModule?o:{default:o}).default),d=p;e.default=d},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.sourceValidators=e.playerValidators=void 0;var r=n(60),o=n(458),i=n(459),a={videojsOptions:{loop:i.validator.isBoolean,controls:i.validator.isBoolean,autoplay:i.validator.isBoolean,autoplayMode:i.validator.isString(r.AUTO_PLAY_MODE),bigPlayButton:i.validator.isBoolean,playbackRates:i.validator.isArray,showLogo:i.validator.isBoolean,logoImageUrl:i.validator.isString,logoOnclickUrl:i.validator.isString,videoJS:i.validator.isPlainObject,maxTries:i.validator.isNumber,muted:i.validator.isBoolean,playsinline:i.validator.isBoolean,videoTimeout:i.validator.isNumber,preload:i.validator.isString,sourceTransformation:i.validator.isPlainObject,allowUsageReport:i.validator.isBoolean,interactionAreas:{theme:{template:i.validator.isString(o.INTERACTION_AREAS_THEME)},layout:{enable:i.validator.isBoolean,showAgain:i.validator.isBoolean}}},playerOptions:{queryParams:i.validator.isPlainObject,publicId:i.validator.isString,fluid:i.validator.isBoolean,analytics:i.validator.isBoolean,hideContextMenu:i.validator.isBoolean,playedEventPercents:i.validator.isArrayOfNumbers,showJumpControls:i.validator.isBoolean,seekThumbnails:i.validator.isBoolean,floatingWhenNotVisible:i.validator.isString(r.FLOATING_TO),playedEventTimes:i.validator.isArray,playlistWidget:{direction:i.validator.isString,total:i.validator.isNumber},colors:{base:i.validator.isString,accent:i.validator.isString,text:i.validator.isString},ads:{adTagUrl:i.validator.isString,showCountdown:i.validator.isBoolean,adLabel:i.validator.isString,locale:i.validator.isString,prerollTimeout:i.validator.isNumber,postrollTimeout:i.validator.isNumber,adsInPlaylist:i.validator.isString(r.ADS_IN_PLAYLIST)},cloudinary:{autoShowRecommendations:i.validator.isBoolean,sourceTypes:i.validator.isArrayOfStrings,transformation:i.validator.isObject,fontFace:i.validator.isString,posterOptions:{publicId:i.validator.isString,transformation:i.validator.isObject}}}};e.playerValidators=a;var s={raw_transformation:i.validator.isString,shoppable:i.validator.isPlainObject,withCredentials:i.validator.isBoolean,interactionAreas:{enable:i.validator.isBoolean,template:i.validator.or(i.validator.isString(o.INTERACTION_AREAS_TEMPLATE),i.validator.isArray),vttUrl:i.validator.isString,onClick:i.validator.isFunction},textTracks:{captions:{label:i.validator.isString,language:i.validator.isString,default:i.validator.isBoolean,url:i.validator.isString},subtitles:i.validator.isArrayOfObjects({label:i.validator.isString,language:i.validator.isString,url:i.validator.isString})},info:{title:i.validator.isString,subtitle:i.validator.isString,description:i.validator.isString},cloudinary:{sourceTypes:i.validator.isArrayOfStrings,transformation:i.validator.isObject}};e.sourceValidators=s},function(t,e,n){"use strict";var r;function o(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}Object.defineProperty(e,"__esModule",{value:!0}),e.TEMPLATE_INTERACTION_AREAS_VTT=e.INTERACTION_AREA_LAYOUT_LOCAL_STORAGE_NAME=e.INTERACTION_AREA_HAND_ICON=e.INTERACTION_AREAS_THEME=e.INTERACTION_AREAS_TEMPLATE=e.INTERACTION_AREAS_PREFIX=e.INTERACTION_AREAS_CONTAINER_CLASS_NAME=e.DEFAULT_INTERACTION_ARE_TRANSITION=e.CLOSE_INTERACTION_AREA_LAYOUT_DELAY=void 0;e.INTERACTION_AREA_LAYOUT_LOCAL_STORAGE_NAME="cld-ia-layout-state";e.INTERACTION_AREAS_PREFIX="vp-ia";e.INTERACTION_AREAS_CONTAINER_CLASS_NAME="interaction-areas-container";var i={PORTRAIT:"portrait",LANDSCAPE:"landscape",All:"all",CENTER:"center"};e.INTERACTION_AREAS_TEMPLATE=i;e.INTERACTION_AREAS_THEME={PULSING:"pulsing",SHADOWED:"shadowed"};var a=(o(r={},i.PORTRAIT,"https://res.cloudinary.com/prod/raw/upload/v1623772481/video-player/vtts/portrait.vtt"),o(r,i.LANDSCAPE,"https://res.cloudinary.com/prod/raw/upload/v1623772303/video-player/vtts/landscape.vtt"),o(r,i.All,"https://res.cloudinary.com/prod/raw/upload/v1623250266/video-player/vtts/all.vtt"),o(r,i.CENTER,"https://res.cloudinary.com/prod/raw/upload/v1623250265/video-player/vtts/center.vtt"),r);e.TEMPLATE_INTERACTION_AREAS_VTT=a;e.INTERACTION_AREA_HAND_ICON="https://res.cloudinary.com/prod/image/upload/v1626764643/video-player/interaction-area-hand.svg";e.CLOSE_INTERACTION_AREA_LAYOUT_DELAY=4500;e.DEFAULT_INTERACTION_ARE_TRANSITION=250},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.validator=void 0;var r=n(13),o=n(190),i=n(85);function a(t){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},a(t)}var s=function(t){return(0,r.isPlainObject)(t)?":(".concat(Object.values(t).join("/"),")"):""},u={isString:function(t){return{value:r.isString,message:function(e){return"'".concat(e,"' should be a string").concat(s(t))}}},isNumber:function(t){return{value:r.isNumber,message:function(e){return"'".concat(e,"' should be a number").concat(s(t))}}},isBoolean:function(){return{value:r.isBoolean,message:function(t){return"'".concat(t,"' should be a boolean")}}},isFunction:function(){return{value:r.isFunction,message:function(t){return"'".concat(t,"' should be a function")}}},isPlainObject:function(){return{value:r.isPlainObject,message:function(t){return"'".concat(t,"' should be an object")}}},isObject:function(){return{value:function(t){return t&&"object"===a(t)},message:function(t){return"'".concat(t,"' should be an object")}}},isArray:function(){return{value:Array.isArray,message:function(t){return"'".concat(t,"' should be an array")}}},isArrayOfNumbers:function(){return{value:function(t){return Array.isArray(t)&&t.every(r.isNumber)},message:function(t){return"'".concat(t,"' should be an array of numbers")}}},isArrayOfStrings:function(){return{value:function(t){return Array.isArray(t)&&t.every(r.isString)},message:function(t){return"'".concat(t,"' should be an array of strings")}}},isArrayOfObjects:function(t){return{value:function(e){return e.every((function(e){for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var r=e[n],i=t[n];if(!(i&&(0,o.isValueValid)(i(r),r,n)))return!1}return!0}))},message:function(){return"invalid array"}}},or:function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return function(){return{value:function(t){return(0,i.some)(e,(function(e){return(0,o.getValidatorItem)(e).value(t)}))},message:function(t){return(0,i.map)(e,(function(e){return(0,o.getValidatorItem)(e).message(t)})).join(" or ")}}}}};e.validator=u}])}));