!function(t){var e={};function n(i){if(e[i])return e[i].exports;var r=e[i]={exports:{},id:i,loaded:!1};return t[i].call(r.exports,r,r.exports,n),r.loaded=!0,r.exports}n.m=t,n.c=e,n.p="",n(0)}([function(t,e,n){n(1),t.exports=n(131)},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}var r=i(n(2)),o=i(n(56));Array.from||(Array.from=r.default),Object.assign||(Object.assign=o.default)},function(t,e,n){var i=n(3),r=n(6),o=n(7),a=n(24),s=n(26),u=n(29),l=n(30),c=n(31),d=n(32),f=n(36),h="[object Map]",p="[object Set]",v=i?i.iterator:void 0;t.exports=function(t){if(!t)return[];if(a(t))return s(t)?d(t):r(t);if(v&&t[v])return u(t[v]());var e=o(t);return(e==h?l:e==p?c:f)(t)}},function(t,e,n){var i=n(4).Symbol;t.exports=i},function(t,e,n){var i=n(5),r="object"==typeof self&&self&&self.Object===Object&&self,o=i||r||Function("return this")();t.exports=o},function(t,e){(function(e){var n="object"==typeof e&&e&&e.Object===Object&&e;t.exports=n}).call(e,function(){return this}())},function(t,e){t.exports=function(t,e){var n=-1,i=t.length;for(e||(e=Array(i));++n<i;)e[n]=t[n];return e}},function(t,e,n){var i=n(8),r=n(20),o=n(21),a=n(22),s=n(23),u=n(12),l=n(18),c=l(i),d=l(r),f=l(o),h=l(a),p=l(s),v=u;(i&&"[object DataView]"!=v(new i(new ArrayBuffer(1)))||r&&"[object Map]"!=v(new r)||o&&"[object Promise]"!=v(o.resolve())||a&&"[object Set]"!=v(new a)||s&&"[object WeakMap]"!=v(new s))&&(v=function(t){var e=u(t),n="[object Object]"==e?t.constructor:void 0,i=n?l(n):"";if(i)switch(i){case c:return"[object DataView]";case d:return"[object Map]";case f:return"[object Promise]";case h:return"[object Set]";case p:return"[object WeakMap]"}return e}),t.exports=v},function(t,e,n){var i=n(9)(n(4),"DataView");t.exports=i},function(t,e,n){var i=n(10),r=n(19);t.exports=function(t,e){var n=r(t,e);return i(n)?n:void 0}},function(t,e,n){var i=n(11),r=n(16),o=n(15),a=n(18),s=/^\[object .+?Constructor\]$/,u=Function.prototype,l=Object.prototype,c=u.toString,d=l.hasOwnProperty,f=RegExp("^"+c.call(d).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");t.exports=function(t){return!(!o(t)||r(t))&&(i(t)?f:s).test(a(t))}},function(t,e,n){var i=n(12),r=n(15),o="[object AsyncFunction]",a="[object Function]",s="[object GeneratorFunction]",u="[object Proxy]";t.exports=function(t){if(!r(t))return!1;var e=i(t);return e==a||e==s||e==o||e==u}},function(t,e,n){var i=n(3),r=n(13),o=n(14),a="[object Null]",s="[object Undefined]",u=i?i.toStringTag:void 0;t.exports=function(t){return null==t?void 0===t?s:a:u&&u in Object(t)?r(t):o(t)}},function(t,e,n){var i=n(3),r=Object.prototype,o=r.hasOwnProperty,a=r.toString,s=i?i.toStringTag:void 0;t.exports=function(t){var e=o.call(t,s),n=t[s];try{t[s]=void 0;var i=!0}catch(t){}var r=a.call(t);return i&&(e?t[s]=n:delete t[s]),r}},function(t,e){var n=Object.prototype.toString;t.exports=function(t){return n.call(t)}},function(t,e){t.exports=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}},function(t,e,n){var i,r=n(17),o=(i=/[^.]+$/.exec(r&&r.keys&&r.keys.IE_PROTO||""))?"Symbol(src)_1."+i:"";t.exports=function(t){return!!o&&o in t}},function(t,e,n){var i=n(4)["__core-js_shared__"];t.exports=i},function(t,e){var n=Function.prototype.toString;t.exports=function(t){if(null!=t){try{return n.call(t)}catch(t){}try{return t+""}catch(t){}}return""}},function(t,e){t.exports=function(t,e){return null==t?void 0:t[e]}},function(t,e,n){var i=n(9)(n(4),"Map");t.exports=i},function(t,e,n){var i=n(9)(n(4),"Promise");t.exports=i},function(t,e,n){var i=n(9)(n(4),"Set");t.exports=i},function(t,e,n){var i=n(9)(n(4),"WeakMap");t.exports=i},function(t,e,n){var i=n(11),r=n(25);t.exports=function(t){return null!=t&&r(t.length)&&!i(t)}},function(t,e){var n=9007199254740991;t.exports=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=n}},function(t,e,n){var i=n(12),r=n(27),o=n(28),a="[object String]";t.exports=function(t){return"string"==typeof t||!r(t)&&o(t)&&i(t)==a}},function(t,e){var n=Array.isArray;t.exports=n},function(t,e){t.exports=function(t){return null!=t&&"object"==typeof t}},function(t,e){t.exports=function(t){for(var e,n=[];!(e=t.next()).done;)n.push(e.value);return n}},function(t,e){t.exports=function(t){var e=-1,n=Array(t.size);return t.forEach(function(t,i){n[++e]=[i,t]}),n}},function(t,e){t.exports=function(t){var e=-1,n=Array(t.size);return t.forEach(function(t){n[++e]=t}),n}},function(t,e,n){var i=n(33),r=n(34),o=n(35);t.exports=function(t){return r(t)?o(t):i(t)}},function(t,e){t.exports=function(t){return t.split("")}},function(t,e){var n=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");t.exports=function(t){return n.test(t)}},function(t,e){var n="[\\ud800-\\udfff]",i="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",r="\\ud83c[\\udffb-\\udfff]",o="[^\\ud800-\\udfff]",a="(?:\\ud83c[\\udde6-\\uddff]){2}",s="[\\ud800-\\udbff][\\udc00-\\udfff]",u="(?:"+i+"|"+r+")"+"?",l="[\\ufe0e\\ufe0f]?"+u+("(?:\\u200d(?:"+[o,a,s].join("|")+")[\\ufe0e\\ufe0f]?"+u+")*"),c="(?:"+[o+i+"?",i,a,s,n].join("|")+")",d=RegExp(r+"(?="+r+")|"+c+l,"g");t.exports=function(t){return t.match(d)||[]}},function(t,e,n){var i=n(37),r=n(39);t.exports=function(t){return null==t?[]:i(t,r(t))}},function(t,e,n){var i=n(38);t.exports=function(t,e){return i(e,function(e){return t[e]})}},function(t,e){t.exports=function(t,e){for(var n=-1,i=null==t?0:t.length,r=Array(i);++n<i;)r[n]=e(t[n],n,t);return r}},function(t,e,n){var i=n(40),r=n(52),o=n(24);t.exports=function(t){return o(t)?i(t):r(t)}},function(t,e,n){var i=n(41),r=n(42),o=n(27),a=n(44),s=n(47),u=n(48),l=Object.prototype.hasOwnProperty;t.exports=function(t,e){var n=o(t),c=!n&&r(t),d=!n&&!c&&a(t),f=!n&&!c&&!d&&u(t),h=n||c||d||f,p=h?i(t.length,String):[],v=p.length;for(var y in t)!e&&!l.call(t,y)||h&&("length"==y||d&&("offset"==y||"parent"==y)||f&&("buffer"==y||"byteLength"==y||"byteOffset"==y)||s(y,v))||p.push(y);return p}},function(t,e){t.exports=function(t,e){for(var n=-1,i=Array(t);++n<t;)i[n]=e(n);return i}},function(t,e,n){var i=n(43),r=n(28),o=Object.prototype,a=o.hasOwnProperty,s=o.propertyIsEnumerable,u=i(function(){return arguments}())?i:function(t){return r(t)&&a.call(t,"callee")&&!s.call(t,"callee")};t.exports=u},function(t,e,n){var i=n(12),r=n(28),o="[object Arguments]";t.exports=function(t){return r(t)&&i(t)==o}},function(t,e,n){(function(t){var i=n(4),r=n(46),o="object"==typeof e&&e&&!e.nodeType&&e,a=o&&"object"==typeof t&&t&&!t.nodeType&&t,s=a&&a.exports===o?i.Buffer:void 0,u=(s?s.isBuffer:void 0)||r;t.exports=u}).call(e,n(45)(t))},function(t,e){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children=[],t.webpackPolyfill=1),t}},function(t,e){t.exports=function(){return!1}},function(t,e){var n=9007199254740991,i=/^(?:0|[1-9]\d*)$/;t.exports=function(t,e){var r=typeof t;return!!(e=null==e?n:e)&&("number"==r||"symbol"!=r&&i.test(t))&&t>-1&&t%1==0&&t<e}},function(t,e,n){var i=n(49),r=n(50),o=n(51),a=o&&o.isTypedArray,s=a?r(a):i;t.exports=s},function(t,e,n){var i=n(12),r=n(25),o=n(28),a={};a["[object Float32Array]"]=a["[object Float64Array]"]=a["[object Int8Array]"]=a["[object Int16Array]"]=a["[object Int32Array]"]=a["[object Uint8Array]"]=a["[object Uint8ClampedArray]"]=a["[object Uint16Array]"]=a["[object Uint32Array]"]=!0,a["[object Arguments]"]=a["[object Array]"]=a["[object ArrayBuffer]"]=a["[object Boolean]"]=a["[object DataView]"]=a["[object Date]"]=a["[object Error]"]=a["[object Function]"]=a["[object Map]"]=a["[object Number]"]=a["[object Object]"]=a["[object RegExp]"]=a["[object Set]"]=a["[object String]"]=a["[object WeakMap]"]=!1,t.exports=function(t){return o(t)&&r(t.length)&&!!a[i(t)]}},function(t,e){t.exports=function(t){return function(e){return t(e)}}},function(t,e,n){(function(t){var i=n(5),r="object"==typeof e&&e&&!e.nodeType&&e,o=r&&"object"==typeof t&&t&&!t.nodeType&&t,a=o&&o.exports===r&&i.process,s=function(){try{var t=o&&o.require&&o.require("util").types;return t||a&&a.binding&&a.binding("util")}catch(t){}}();t.exports=s}).call(e,n(45)(t))},function(t,e,n){var i=n(53),r=n(54),o=Object.prototype.hasOwnProperty;t.exports=function(t){if(!i(t))return r(t);var e=[];for(var n in Object(t))o.call(t,n)&&"constructor"!=n&&e.push(n);return e}},function(t,e){var n=Object.prototype;t.exports=function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||n)}},function(t,e,n){var i=n(55)(Object.keys,Object);t.exports=i},function(t,e){t.exports=function(t,e){return function(n){return t(e(n))}}},function(t,e,n){var i=n(57),r=n(61),o=n(62),a=n(24),s=n(53),u=n(39),l=Object.prototype.hasOwnProperty,c=o(function(t,e){if(s(e)||a(e))r(e,u(e),t);else for(var n in e)l.call(e,n)&&i(t,n,e[n])});t.exports=c},function(t,e,n){var i=n(58),r=n(60),o=Object.prototype.hasOwnProperty;t.exports=function(t,e,n){var a=t[e];o.call(t,e)&&r(a,n)&&(void 0!==n||e in t)||i(t,e,n)}},function(t,e,n){var i=n(59);t.exports=function(t,e,n){"__proto__"==e&&i?i(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n}},function(t,e,n){var i=n(9),r=function(){try{var t=i(Object,"defineProperty");return t({},"",{}),t}catch(t){}}();t.exports=r},function(t,e){t.exports=function(t,e){return t===e||t!=t&&e!=e}},function(t,e,n){var i=n(57),r=n(58);t.exports=function(t,e,n,o){var a=!n;n||(n={});for(var s=-1,u=e.length;++s<u;){var l=e[s],c=o?o(n[l],t[l],l,n,t):void 0;void 0===c&&(c=t[l]),a?r(n,l,c):i(n,l,c)}return n}},function(t,e,n){var i=n(63),r=n(71);t.exports=function(t){return i(function(e,n){var i=-1,o=n.length,a=o>1?n[o-1]:void 0,s=o>2?n[2]:void 0;for(a=t.length>3&&"function"==typeof a?(o--,a):void 0,s&&r(n[0],n[1],s)&&(a=o<3?void 0:a,o=1),e=Object(e);++i<o;){var u=n[i];u&&t(e,u,i,a)}return e})}},function(t,e,n){var i=n(64),r=n(65),o=n(67);t.exports=function(t,e){return o(r(t,e,i),t+"")}},function(t,e){t.exports=function(t){return t}},function(t,e,n){var i=n(66),r=Math.max;t.exports=function(t,e,n){return e=r(void 0===e?t.length-1:e,0),function(){for(var o=arguments,a=-1,s=r(o.length-e,0),u=Array(s);++a<s;)u[a]=o[e+a];a=-1;for(var l=Array(e+1);++a<e;)l[a]=o[a];return l[e]=n(u),i(t,this,l)}}},function(t,e){t.exports=function(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}},function(t,e,n){var i=n(68),r=n(70)(i);t.exports=r},function(t,e,n){var i=n(69),r=n(59),o=n(64),a=r?function(t,e){return r(t,"toString",{configurable:!0,enumerable:!1,value:i(e),writable:!0})}:o;t.exports=a},function(t,e){t.exports=function(t){return function(){return t}}},function(t,e){var n=800,i=16,r=Date.now;t.exports=function(t){var e=0,o=0;return function(){var a=r(),s=i-(a-o);if(o=a,s>0){if(++e>=n)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}},function(t,e,n){var i=n(60),r=n(24),o=n(47),a=n(15);t.exports=function(t,e,n){if(!a(n))return!1;var s=typeof e;return!!("number"==s?r(n)&&o(e,n.length):"string"==s&&e in n)&&i(n[e],t)}},,function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.ALLOWED_ORIGINS=["www.linkedin.com","pemberly.www.linkedin.com","www.linkedin-ei.com","pemberly.www.linkedin-ei.com","qprod.www.linkedin-ei.com","qprod.www.linkedin.com","cstool.www.linkedin.com","cstool.www.linkedin-ei.com",/^[a-z]{2}\.linkedin(?:-ei)?\.com$/,"view.pointdrive.linkedin.com","view.pointdrive.linkedin-ei.com","view.local-pointdrive.linkedin-ei.com","nuage.prod.linkedin.com","nuage.stg.linkedin.com","onyx.www.linkedin.com","onyx.www.linkedin-ei.com"];e.CONTEXT="native-video";e.DOCUMENT_CONTEXT="native-document";e.SCROLLING_DOCUMENT_CONTEXT="scrolling-native-document";e.SIMPLE_PDF_VIEWER_CONTEXT="simple-pdf-viewer";e.A11Y_CONTROL_TEXT_OBJ={videoPlayerContainerA11yAriaLabel:"Video player",bigPlayButtonA11yControlText:"Play video",linkedinLogoLinkA11yControlText:"Visit LinkedIn",backButtonA11yControlText:"Back to start of video",playButtonA11yControlText:"Play video",replayButtonA11yControlText:"Replay video",pauseButtonA11yControlText:"Pause",shareButtonA11yControlText:"Share",volumeOnButtonA11yControlText:"Volume on",volumeOffButtonA11yControlText:"Volume off",fullscreenOnButtonA11yControlText:"Fullscreen on",fullscreenOffButtonA11yControlText:"Fullscreen off",progressSliderA11yControlText:"Playback progress slider",volumeSliderA11yControlText:"Volume slider",volumeSliderAriaValueTextA11yControlText:"Volume",closeModalButtonA11yControlText:"Close share overlay",captionsOnButtonA11yControlText:"Turn closed captions off",captionsOffButtonA11yControlText:"Turn closed captions on"};e.VIDEO_DATA={sources:[{src:"/embeds/public/media%2Fclip3300.mp4",type:"video/mp4","data-bitrate":"3300"},{src:"/embeds/public/media%2Fclip500.mp4",type:"video/mp4","data-bitrate":"500"},{src:"/embeds/public/media%2Fclip2000.webm",type:"video/webm","data-bitrate":"2000"}],poster:"/embeds/public/media%2Fposter.jpg"};var n={0:{type:"image",config:{src:"https://via.placeholder.com/728x1028?text=page+one"}},1:{type:"image",config:{src:"https://via.placeholder.com/728x1028?text=page+two"}},2:{type:"image",config:{src:"https://via.placeholder.com/728x1028?text=page+three"}},3:{type:"image",config:{src:"https://via.placeholder.com/728x1028?text=page+four"}}};e.COVER_PAGES_PORTRAIT=n;var i={0:{type:"image",config:{src:"https://via.placeholder.com/480X200?text=Page%2001%20-%20480X200"}},1:{type:"image",config:{src:"https://via.placeholder.com/480X200?text=Page%2002%20-%20480X200"}},2:{type:"image",config:{src:"https://via.placeholder.com/480X200?text=Page%2003%20-%20480X200"}},3:{type:"image",config:{src:"https://via.placeholder.com/480X200?text=Page%2004%20-%20480X200"}},4:{type:"image",config:{src:"https://via.placeholder.com/480X200?text=Page%2005%20-%20480X200"}}};e.COVER_PAGES_LANDSCAPE=i;e.DOCUMENT_DATA_A11Y={topbar:{downloadButton:"Download document",cancelButton:"Exit full screen"},toolbarA11y:{fullscreenOnButtonA11yControlText:"Enter full screen. An accessible document viewer is available in full screen mode",fullscreenOffButtonA11yControlText:"Exit full screen",zoomInButtonA11yControlText:"Zoom in",zoomOutButtonA11yControlText:"Zoom out",zoomSelectA11yControlText:"Select zoom value",zoomA11yControlText:"Zoom Level"},accessibilityMode:{embed:"Accessible PDF document"},pagination:{paginationValue:"Current page",paginationLength:"Total pages"},sidepanelLeft:{navButton:"Go to previous page"},sidepanelRight:{navButton:"Go to next page"},progress:{progressBarLabel:"Progress bar Slide"}};e.DOCUMENT_DATA_I18N={topbar:{accessibilityButtonText:"Accessibility mode"},virusScan:{cancelButtonText:"Cancel",skipButtonText:"Skip",downloadButtonText:"Download",forceProceedButtonText:"Proceed anyways",progressDescriptionText:"Scanning for viruses…",cleanProgressDescriptionText:"Ready to download",timeoutTitle:"Can't scan this document for viruses",dirtyTitle:"This document is not safe",timeoutSubtitle:"We were unable to scan this document for viruses. Would you still like to proceed?",dirtySubtitle:"We detected a virus in this document that could harm your device."}};var r={type:"presentation",height:1028,width:728,manifestUrl:null,manifestUrlExpiresAt:Date.now()+366e4,totalPageCount:10,title:"Portrait document test",subtitle:"20 pages",downloadTitle:"Portrait document test PDF",coverPages:n};e.DOCUMENT_DATA_PORTRAIT=r;var o={type:"presentation",height:1028,width:728,manifestUrl:"/embeds/public/media%2Fmanifests%2Fmanifest.json",manifestUrlExpiresAt:Date.now()+366e4,totalPageCount:10,title:"Portrait document test",subtitle:"10 pages",downloadTitle:"Portrait document test PDF",trackingId:"trackingId2",objectUrn:"objectUrn2",coverPages:function(t){for(var e=t.length;e<10;e+=1)t[e]={type:"image",config:{src:"",transcript:null}};return t[10]={type:"text",config:{text:"Want to view more? Unlock the full document below."}},t}([].concat(function(t){if(Array.isArray(t)){for(var e=0,n=Array(t.length);e<t.length;e++)n[e]=t[e];return n}return Array.from(t)}(n)))};e.DOCUMENT_DATA_PORTRAIT_WITH_APPENDED_TEXT=o;var a={type:"presentation",height:200,width:480,manifestUrl:"/embeds/public/media%2Fmanifests%2Fmanifest.json",manifestUrlExpiresAt:Date.now()+366e4,totalPageCount:10,title:"Landscape document test",subtitle:"10 pages",downloadTitle:"Landscape document test PDF",coverPages:i,shouldDownloadTranscript:!0};e.DOCUMENT_DATA_LANDSCAPE=a;var s={type:"presentation",height:200,width:480,manifestUrl:"/embeds/public/media%2Fmanifests%2Fmanifest.json",manifestUrlExpiresAt:Date.now()+366e4,totalPageCount:10,title:"Landscape document test",subtitle:"10 pages",downloadTitle:"Landscape document test PDF",coverPages:i,trackingId:"trackingId",objectUrn:"objectUrn"};e.DOCUMENT_DATA_LANDSCAPE_TRACKING=s;e.DOCUMENT_DATA_COMPACT_LAYOUT={enableBottombar:!0,authorTitle:"Jane Doe",authorSubtitle:"Software Engineer",authorTitleUrl:"https://www.linkedin.com/in/janedoe123456",inbugUrl:"https://www.linkedin.com/feed/update/urn:li:activity:123456789"};e.DOCUMENT_DATA_COMPACT_LAYOUT_AUTHOR_TOPBAR={enableTopbarAuthor:!0,authorTitle:"Jane Doe",authorSubtitle:"Software Engineer",authorTitleUrl:"https://www.linkedin.com/in/janedoe123456",inbugUrl:"https://www.linkedin.com/feed/update/urn:li:activity:123456789"};e.DOCUMENT_TOPBAR_DIVIDER="•";e.DOCUMENT_VIRUS_SCAN_STATUSES={CLEAN:"CLEAN",DIRTY:"DIRTY",SCANNING:"SCANNING",ERROR:"ERROR"};e.VIDEO_CAPTION_SRC="/embeds/public/media%2Fcaption.vtt";e.ADAPTIVE_SOURCES=[{src:"https://s3.amazonaws.com/_bc_dml/example-content/bipbop-advanced/bipbop_16x9_variant.m3u8",type:"application/x-mpegURL"}];e.ADAPTIVE_SOURCES_POSTER="https://media.licdn-ei.com/media/AAIAAf__AAAAAQAAAAAAAADkAAAAJDdjYjQ3ZWU3LTI2NzItNGMzNy04ZjAzLTRjYTVkNjRlN2ZjNw.jpg";e.HIGH_CONTRAST_MODE_CONTROL_TEXT_OBJ={hcmDescriptionLabel:"High Contrast",hcmOnStateLabel:"(On)",hcmOffStateLabel:"(Off)"};e.TOC_TEXT_OBJ={tocTitle:"Document thumbnails",viewA11yText:"View thumbnails",hideA11yText:"Hide thumbnails"};e.PUBLISHING_EMBED_IFRAME_CLASS="publishing-embed__iframe";e.HIDDEN_CLASS="hidden";e.PUBLISHING_EMBED_WRAPPER_CLASS="universal-embed-container";e.PUBLISHING_EMBED_SIMPLE_CONTAINER_CLASS="publishing-embed__simple-container";e.TWITTER_CONTAINER_SELECTOR=".tweet-container";var u=Object.freeze({GOOGLE_DRIVE:Object.freeze({FLAGSHIP:Object.freeze({DEV:Object.freeze({SCOPE:"https://www.googleapis.com/auth/drive.readonly",API_KEY:"AIzaSyCnUMi7YcLtwSjEDsuYCHw5I5ceadmTT_I",AUTH_CLIENT_ID:"306543267192-l07lshqrn5nqmt791vn4u27hu0kutctc.apps.googleusercontent.com"}),EI:Object.freeze({SCOPE:"https://www.googleapis.com/auth/drive.readonly",API_KEY:"AIzaSyDLbAAkA31xyrpPlwd7QudAVIB8THmsPyM",AUTH_CLIENT_ID:"306543267192-5hmt4uiehnli0gqpnitcmb4bn49fu3jl.apps.googleusercontent.com"}),PROD:Object.freeze({SCOPE:"https://www.googleapis.com/auth/drive.readonly",API_KEY:"AIzaSyD6gprb3b5bxspl6Q-j6gLqvHp2k0lc5kw",AUTH_CLIENT_ID:"306543267192-e0iivcpp37m1mb3bf5rc4o5pn8oa873g.apps.googleusercontent.com"})})})});e.THIRD_PARTY_APIS=u;var l=Object.freeze(["media.licdn-ei.com","media.licdn.com"]);e.THIRD_PARTY_ALLOWED_ORIGINS=l;e.PUBLISHING_EMBED_PROVIDER_MEGAPHONE_MIN_EMBED_HEIGHT=135;e.PUBLISHING_EMBED_PROVIDER_SPOTIFY_MIN_EMBED_HEIGHT=152},function(t,e,n){var i=n(66),r=n(63),o=n(75),a=n(123),s=r(function(t){return t.push(void 0,o),i(a,void 0,t)});t.exports=s},function(t,e,n){var i=n(76),r=n(15);t.exports=function t(e,n,o,a,s,u){return r(e)&&r(n)&&(u.set(n,e),i(e,n,void 0,t,u),u.delete(n)),e}},function(t,e,n){var i=n(77),r=n(105),o=n(106),a=n(108),s=n(15),u=n(120),l=n(118);t.exports=function t(e,n,c,d,f){e!==n&&o(n,function(o,u){if(f||(f=new i),s(o))a(e,n,u,c,t,d,f);else{var h=d?d(l(e,u),o,u+"",e,n,f):void 0;void 0===h&&(h=o),r(e,u,h)}},u)}},function(t,e,n){var i=n(78),r=n(85),o=n(86),a=n(87),s=n(88),u=n(89);function l(t){var e=this.__data__=new i(t);this.size=e.size}l.prototype.clear=r,l.prototype.delete=o,l.prototype.get=a,l.prototype.has=s,l.prototype.set=u,t.exports=l},function(t,e,n){var i=n(79),r=n(80),o=n(82),a=n(83),s=n(84);function u(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var i=t[e];this.set(i[0],i[1])}}u.prototype.clear=i,u.prototype.delete=r,u.prototype.get=o,u.prototype.has=a,u.prototype.set=s,t.exports=u},function(t,e){t.exports=function(){this.__data__=[],this.size=0}},function(t,e,n){var i=n(81),r=Array.prototype.splice;t.exports=function(t){var e=this.__data__,n=i(e,t);return!(n<0||(n==e.length-1?e.pop():r.call(e,n,1),--this.size,0))}},function(t,e,n){var i=n(60);t.exports=function(t,e){for(var n=t.length;n--;)if(i(t[n][0],e))return n;return-1}},function(t,e,n){var i=n(81);t.exports=function(t){var e=this.__data__,n=i(e,t);return n<0?void 0:e[n][1]}},function(t,e,n){var i=n(81);t.exports=function(t){return i(this.__data__,t)>-1}},function(t,e,n){var i=n(81);t.exports=function(t,e){var n=this.__data__,r=i(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this}},function(t,e,n){var i=n(78);t.exports=function(){this.__data__=new i,this.size=0}},function(t,e){t.exports=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n}},function(t,e){t.exports=function(t){return this.__data__.get(t)}},function(t,e){t.exports=function(t){return this.__data__.has(t)}},function(t,e,n){var i=n(78),r=n(20),o=n(90),a=200;t.exports=function(t,e){var n=this.__data__;if(n instanceof i){var s=n.__data__;if(!r||s.length<a-1)return s.push([t,e]),this.size=++n.size,this;n=this.__data__=new o(s)}return n.set(t,e),this.size=n.size,this}},function(t,e,n){var i=n(91),r=n(99),o=n(102),a=n(103),s=n(104);function u(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var i=t[e];this.set(i[0],i[1])}}u.prototype.clear=i,u.prototype.delete=r,u.prototype.get=o,u.prototype.has=a,u.prototype.set=s,t.exports=u},function(t,e,n){var i=n(92),r=n(78),o=n(20);t.exports=function(){this.size=0,this.__data__={hash:new i,map:new(o||r),string:new i}}},function(t,e,n){var i=n(93),r=n(95),o=n(96),a=n(97),s=n(98);function u(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var i=t[e];this.set(i[0],i[1])}}u.prototype.clear=i,u.prototype.delete=r,u.prototype.get=o,u.prototype.has=a,u.prototype.set=s,t.exports=u},function(t,e,n){var i=n(94);t.exports=function(){this.__data__=i?i(null):{},this.size=0}},function(t,e,n){var i=n(9)(Object,"create");t.exports=i},function(t,e){t.exports=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}},function(t,e,n){var i=n(94),r="__lodash_hash_undefined__",o=Object.prototype.hasOwnProperty;t.exports=function(t){var e=this.__data__;if(i){var n=e[t];return n===r?void 0:n}return o.call(e,t)?e[t]:void 0}},function(t,e,n){var i=n(94),r=Object.prototype.hasOwnProperty;t.exports=function(t){var e=this.__data__;return i?void 0!==e[t]:r.call(e,t)}},function(t,e,n){var i=n(94),r="__lodash_hash_undefined__";t.exports=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=i&&void 0===e?r:e,this}},function(t,e,n){var i=n(100);t.exports=function(t){var e=i(this,t).delete(t);return this.size-=e?1:0,e}},function(t,e,n){var i=n(101);t.exports=function(t,e){var n=t.__data__;return i(e)?n["string"==typeof e?"string":"hash"]:n.map}},function(t,e){t.exports=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t}},function(t,e,n){var i=n(100);t.exports=function(t){return i(this,t).get(t)}},function(t,e,n){var i=n(100);t.exports=function(t){return i(this,t).has(t)}},function(t,e,n){var i=n(100);t.exports=function(t,e){var n=i(this,t),r=n.size;return n.set(t,e),this.size+=n.size==r?0:1,this}},function(t,e,n){var i=n(58),r=n(60);t.exports=function(t,e,n){(void 0===n||r(t[e],n))&&(void 0!==n||e in t)||i(t,e,n)}},function(t,e,n){var i=n(107)();t.exports=i},function(t,e){t.exports=function(t){return function(e,n,i){for(var r=-1,o=Object(e),a=i(e),s=a.length;s--;){var u=a[t?s:++r];if(!1===n(o[u],u,o))break}return e}}},function(t,e,n){var i=n(105),r=n(109),o=n(110),a=n(6),s=n(113),u=n(42),l=n(27),c=n(116),d=n(44),f=n(11),h=n(15),p=n(117),v=n(48),y=n(118),m=n(119);t.exports=function(t,e,n,g,b,_,T){var E=y(t,n),w=y(e,n),k=T.get(w);if(k)i(t,n,k);else{var S=_?_(E,w,n+"",t,e,T):void 0,O=void 0===S;if(O){var C=l(w),x=!C&&d(w),P=!C&&!x&&v(w);S=w,C||x||P?l(E)?S=E:c(E)?S=a(E):x?(O=!1,S=r(w,!0)):P?(O=!1,S=o(w,!0)):S=[]:p(w)||u(w)?(S=E,u(E)?S=m(E):h(E)&&!f(E)||(S=s(w))):O=!1}O&&(T.set(w,S),b(S,w,g,_,T),T.delete(w)),i(t,n,S)}}},function(t,e,n){(function(t){var i=n(4),r="object"==typeof e&&e&&!e.nodeType&&e,o=r&&"object"==typeof t&&t&&!t.nodeType&&t,a=o&&o.exports===r?i.Buffer:void 0,s=a?a.allocUnsafe:void 0;t.exports=function(t,e){if(e)return t.slice();var n=t.length,i=s?s(n):new t.constructor(n);return t.copy(i),i}}).call(e,n(45)(t))},function(t,e,n){var i=n(111);t.exports=function(t,e){var n=e?i(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)}},function(t,e,n){var i=n(112);t.exports=function(t){var e=new t.constructor(t.byteLength);return new i(e).set(new i(t)),e}},function(t,e,n){var i=n(4).Uint8Array;t.exports=i},function(t,e,n){var i=n(114),r=n(115),o=n(53);t.exports=function(t){return"function"!=typeof t.constructor||o(t)?{}:i(r(t))}},function(t,e,n){var i=n(15),r=Object.create,o=function(){function t(){}return function(e){if(!i(e))return{};if(r)return r(e);t.prototype=e;var n=new t;return t.prototype=void 0,n}}();t.exports=o},function(t,e,n){var i=n(55)(Object.getPrototypeOf,Object);t.exports=i},function(t,e,n){var i=n(24),r=n(28);t.exports=function(t){return r(t)&&i(t)}},function(t,e,n){var i=n(12),r=n(115),o=n(28),a="[object Object]",s=Function.prototype,u=Object.prototype,l=s.toString,c=u.hasOwnProperty,d=l.call(Object);t.exports=function(t){if(!o(t)||i(t)!=a)return!1;var e=r(t);if(null===e)return!0;var n=c.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&l.call(n)==d}},function(t,e){t.exports=function(t,e){if(("constructor"!==e||"function"!=typeof t[e])&&"__proto__"!=e)return t[e]}},function(t,e,n){var i=n(61),r=n(120);t.exports=function(t){return i(t,r(t))}},function(t,e,n){var i=n(40),r=n(121),o=n(24);t.exports=function(t){return o(t)?i(t,!0):r(t)}},function(t,e,n){var i=n(15),r=n(53),o=n(122),a=Object.prototype.hasOwnProperty;t.exports=function(t){if(!i(t))return o(t);var e=r(t),n=[];for(var s in t)("constructor"!=s||!e&&a.call(t,s))&&n.push(s);return n}},function(t,e){t.exports=function(t){var e=[];if(null!=t)for(var n in Object(t))e.push(n);return e}},function(t,e,n){var i=n(76),r=n(62)(function(t,e,n,r){i(t,e,n,r)});t.exports=r},,,,function(t,e,n){
/*! Player.js - v0.0.0-productspec - 2025-03-29
	* Copyright (c) 2025 Embedly; Licensed , , , , , , , , , , ,  */
!function(e){var n={};function i(t){return function(){var e={method:t},i=Array.prototype.slice.call(arguments);/^get/.test(t)?(n.assert(i.length>0,"Get methods require a callback."),i.unshift(e)):(/^set/.test(t)&&(n.assert(0!==i.length,"Set methods require a value."),e.value=i[0]),i=[e]),this.send.apply(this,i)}}n.DEBUG=!1,n.VERSION="0.0.12",n.CONTEXT="player.js",n.POST_MESSAGE=!!e.postMessage,n.origin=function(t){return"//"===t.substr(0,2)&&(t=e.location.protocol+t),t.split("/").slice(0,3).join("/")},n.addEvent=function(t,e,n){t&&(t.addEventListener?t.addEventListener(e,n,!1):t.attachEvent?t.attachEvent("on"+e,n):t["on "+e]=n)},n.removeEvent=function(t,e,n){t&&(t.removeEventListener?t.removeEventListener(e,n,!1):t.detachEvent?t.detachEvent("on"+e,n):t["on"+e]=null)},n.log=function(){n.log.history=n.log.history||[],n.log.history.push(arguments),e.console&&n.DEBUG&&e.console.log(Array.prototype.slice.call(arguments))},n.isString=function(t){return"[object String]"===Object.prototype.toString.call(t)},n.isObject=function(t){return"[object Object]"===Object.prototype.toString.call(t)},n.isArray=function(t){return"[object Array]"===Object.prototype.toString.call(t)},n.isNone=function(t){return null==t},n.has=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.indexOf=function(t,e){if(null==t)return-1;var n=0,i=t.length;if(Array.prototype.IndexOf&&t.indexOf===Array.prototype.IndexOf)return t.indexOf(e);for(;n<i;n++)if(t[n]===e)return n;return-1},n.assert=function(t,e){if(!t)throw e||"Player.js Assert Failed"},n.Keeper=function(){this.init()},n.Keeper.prototype.init=function(){this.data={}},n.Keeper.prototype.getUUID=function(){return"listener-xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx".replace(/[xy]/g,function(t){var e=16*Math.random()|0;return("x"===t?e:3&e|8).toString(16)})},n.Keeper.prototype.has=function(t,e){if(!this.data.hasOwnProperty(t))return!1;if(n.isNone(e))return!0;for(var i=this.data[t],r=0;r<i.length;r++)if(i[r].id===e)return!0;return!1},n.Keeper.prototype.add=function(t,e,n,i,r){var o={id:t,event:e,cb:n,ctx:i,one:r};this.has(e)?this.data[e].push(o):this.data[e]=[o]},n.Keeper.prototype.execute=function(t,e,i,r){if(!this.has(t,e))return!1;for(var o=[],a=[],s=0;s<this.data[t].length;s++){var u=this.data[t][s];n.isNone(e)||!n.isNone(e)&&u.id===e?(a.push({cb:u.cb,ctx:u.ctx?u.ctx:r,data:i}),!1===u.one&&o.push(u)):o.push(u)}0===o.length?delete this.data[t]:this.data[t]=o;for(var l=0;l<a.length;l++){var c=a[l];c.cb.call(c.ctx,c.data)}},n.Keeper.prototype.on=function(t,e,n,i){this.add(t,e,n,i,!1)},n.Keeper.prototype.one=function(t,e,n,i){this.add(t,e,n,i,!0)},n.Keeper.prototype.off=function(t,e){var i=[];if(!this.data.hasOwnProperty(t))return i;for(var r=[],o=0;o<this.data[t].length;o++){var a=this.data[t][o];n.isNone(e)||a.cb===e?n.isNone(a.id)||i.push(a.id):r.push(a)}return 0===r.length?delete this.data[t]:this.data[t]=r,i},n.Player=function(t,e){if(!(this instanceof n.Player))return new n.Player(t,e);this.init(t,e)},n.EVENTS={READY:"ready",PLAY:"play",PAUSE:"pause",ENDED:"ended",TIMEUPDATE:"timeupdate",PROGRESS:"progress",ERROR:"error"},n.EVENTS.all=function(){var t=[];for(var e in n.EVENTS)n.has(n.EVENTS,e)&&n.isString(n.EVENTS[e])&&t.push(n.EVENTS[e]);return t},n.METHODS={PLAY:"play",PAUSE:"pause",GETPAUSED:"getPaused",MUTE:"mute",UNMUTE:"unmute",GETMUTED:"getMuted",SETVOLUME:"setVolume",GETVOLUME:"getVolume",GETDURATION:"getDuration",SETCURRENTTIME:"setCurrentTime",GETCURRENTTIME:"getCurrentTime",SETLOOP:"setLoop",GETLOOP:"getLoop",REMOVEEVENTLISTENER:"removeEventListener",ADDEVENTLISTENER:"addEventListener"},n.METHODS.all=function(){var t=[];for(var e in n.METHODS)n.has(n.METHODS,e)&&n.isString(n.METHODS[e])&&t.push(n.METHODS[e]);return t},n.READIED=[],n.Player.prototype.init=function(t,i){var r=this;n.isString(t)&&(t=document.getElementById(t)),this.elem=t,this.origin=n.origin(t.src),this.keeper=new n.Keeper,this.isReady=!1,this.queue=[],this.events=n.EVENTS.all(),this.methods=n.METHODS.all(),this._boundReceive=function(t){this.receive(t)}.bind(this),n.POST_MESSAGE?n.addEvent(e,"message",this._boundReceive):n.log("Post Message is not Available."),n.indexOf(n.READIED,t.src)>-1?r.loaded=!0:this.elem.onload=function(){r.loaded=!0}},n.Player.prototype.send=function(t,e,i){if(t.context=n.CONTEXT,t.version=n.VERSION,e){if(!this.keeper)return!1;var r=this.keeper.getUUID();t.listener=r,this.keeper.one(r,t.method,e,i)}return this.isReady||"ready"===t.value?(n.log("Player.send",t,this.origin),!0===this.loaded&&this.elem.contentWindow&&this.elem.contentWindow.postMessage(JSON.stringify(t),this.origin),!0):(n.log("Player.queue",t),this.queue.push(t),!1)},n.Player.prototype.receive=function(t){if(n.log("Player.receive",t),t.origin!==this.origin)return!1;var e;try{e=JSON.parse(t.data)}catch(t){return!1}if(e.context!==n.CONTEXT)return!1;"ready"===e.event&&e.value&&e.value.src===this.elem.src&&this.ready(e),this.keeper&&this.keeper.has(e.event,e.listener)&&this.keeper.execute(e.event,e.listener,e.value,this)},n.Player.prototype.ready=function(t){if(!0===this.isReady)return!1;t.value.events&&(this.events=t.value.events),t.value.methods&&(this.methods=t.value.methods),this.isReady=!0,this.loaded=!0;for(var e=0;e<this.queue.length;e++){var i=this.queue[e];n.log("Player.dequeue",i),"ready"===t.event&&this.keeper.execute(i.event,i.listener,!0,this),this.send(i)}this.queue=[]},n.Player.prototype.on=function(t,e,n){if(!this.keeper)return!1;var i=this.keeper.getUUID();return"ready"===t?this.keeper.one(i,t,e,n):this.keeper.on(i,t,e,n),this.send({method:"addEventListener",value:t,listener:i}),!0},n.Player.prototype.off=function(t,e){if(!this.keeper)return!1;var i=this.keeper.off(t,e);if(n.log("Player.off",i),i.length>0)for(var r in i)return this.send({method:"removeEventListener",value:t,listener:i[r]}),!0;return!1},n.Player.prototype.supports=function(t,e){n.assert(n.indexOf(["method","event"],t)>-1,'evtOrMethod needs to be either "event" or "method" got '+t),e=n.isArray(e)?e:[e];for(var i="event"===t?this.events:this.methods,r=0;r<e.length;r++)if(-1===n.indexOf(i,e[r]))return!1;return!0},n.Player.prototype.destroy=function(){n.removeEvent(e,"message",this._boundReceive);try{delete this.origin,delete this.keeper,delete this.isReady,delete this.queue,delete this.events,delete this.methods}catch(t){n.log("Error deleting Player properties",t)}};for(var r=0,o=n.METHODS.all().length;r<o;r++){var a=n.METHODS.all()[r];n.Player.prototype.hasOwnProperty(a)||(n.Player.prototype[a]=i(a))}n.addEvent(e,"message",function(t){var e;try{e=JSON.parse(t.data)}catch(t){return!1}if(e.context!==n.CONTEXT)return!1;"ready"===e.event&&e.value&&e.value.src&&n.READIED.push(e.value.src)}),n.Receiver=function(t,e){this.init(t,e)},n.Receiver.prototype.init=function(t,i){var r=this;this.isReady=!1,this.cachedError=!1,this.origin=n.origin(document.referrer),this.methods={},this.supported={events:t||n.EVENTS.all(),methods:i||n.METHODS.all()},this.eventListeners={},this.reject=!(e.self!==e.top&&n.POST_MESSAGE),this.reject||n.addEvent(e,"message",function(t){r.receive(t)})},n.Receiver.prototype.receive=function(t){if(t.origin!==this.origin)return!1;var i={};if(n.isObject(t.data))i=t.data;else try{i=e.JSON.parse(t.data)}catch(t){n.log("JSON Parse Error",t)}if(n.log("Receiver.receive",t,i),!i.method)return!1;if(i.context!==n.CONTEXT)return!1;if(-1===n.indexOf(n.METHODS.all(),i.method))return this.emit("error",{code:2,msg:'Invalid Method "'+i.method+'"'}),!1;var r=n.isNone(i.listener)?null:i.listener;if("addEventListener"===i.method)this.eventListeners.hasOwnProperty(i.value)?-1===n.indexOf(this.eventListeners[i.value],r)&&this.eventListeners[i.value].push(r):this.eventListeners[i.value]=[r],"ready"===i.value&&this.isReady?this.ready():"error"===i.value&&this.cachedError&&this.error();else if("removeEventListener"===i.method){if(this.eventListeners.hasOwnProperty(i.value)){var o=n.indexOf(this.eventListeners[i.value],r);o>-1&&this.eventListeners[i.value].splice(o,1),0===this.eventListeners[i.value].length&&delete this.eventListeners[i.value]}}else this.get(i.method,i.value,r)},n.Receiver.prototype.get=function(t,e,n){var i=this;if(!this.methods.hasOwnProperty(t))return this.emit("error",{code:3,msg:'Method Not Supported"'+t+'"'}),!1;var r=this.methods[t];if("get"===t.substr(0,3)){r.call(this,function(e){i.send(t,e,n)})}else r.call(this,e)},n.Receiver.prototype.on=function(t,e){this.methods[t]=e},n.Receiver.prototype.send=function(t,i,r){if(n.log("Receiver.send",t,i,r),this.reject)return n.log("Receiver.send.reject",t,i,r),!1;var o={context:n.CONTEXT,version:n.VERSION,event:t};n.isNone(i)||(o.value=i),n.isNone(r)||(o.listener=r);var a=JSON.stringify(o);e.parent.postMessage(a,""===this.origin?"*":this.origin)},n.Receiver.prototype.emit=function(t,e){if(!this.eventListeners.hasOwnProperty(t))return"error"===t&&(this.cachedError=e||!0),!1;n.log("Instance.emit",t,e,this.eventListeners[t]);for(var i=0;i<this.eventListeners[t].length;i++){var r=this.eventListeners[t][i];this.send(t,e,r)}return!0},n.Receiver.prototype.ready=function(){n.log("Receiver.ready"),this.isReady=!0;var t={src:e.location.toString(),events:this.supported.events,methods:this.supported.methods};this.emit("ready",t)||this.send("ready",t)},n.Receiver.prototype.error=function(){n.log("Receiver.error");var t=this.cachedError;this.emit("error",t)||this.send("error",t),this.cachedError=!1},n.HTML5Adapter=function(t){if(!(this instanceof n.HTML5Adapter))return new n.HTML5Adapter(t);this.init(t)},n.HTML5Adapter.prototype.init=function(t){n.assert(t,"playerjs.VideoJSReceiver requires a video element");var e=this.receiver=new n.Receiver;t.addEventListener("playing",function(){e.emit("play")}),t.addEventListener("pause",function(){e.emit("pause")}),t.addEventListener("ended",function(){e.emit("ended")}),t.addEventListener("timeupdate",function(){e.emit("timeupdate",{seconds:t.currentTime,duration:t.duration})}),t.addEventListener("progress",function(){e.emit("buffered",{percent:t.buffered.length})}),e.on("play",function(){t.play()}),e.on("pause",function(){t.pause()}),e.on("getPaused",function(e){e(t.paused)}),e.on("getCurrentTime",function(e){e(t.currentTime)}),e.on("setCurrentTime",function(e){t.currentTime=e}),e.on("getDuration",function(e){e(t.duration)}),e.on("getVolume",function(e){e(100*t.volume)}),e.on("setVolume",function(e){t.volume=e/100}),e.on("mute",function(){t.muted=!0}),e.on("unmute",function(){t.muted=!1}),e.on("getMuted",function(e){e(t.muted)}),e.on("getLoop",function(e){e(t.loop)}),e.on("setLoop",function(e){t.loop=e})},n.HTML5Adapter.prototype.ready=function(){this.receiver.ready()},n.JWPlayerAdapter=function(t){if(!(this instanceof n.JWPlayerAdapter))return new n.JWPlayerAdapter(t);this.init(t)},n.JWPlayerAdapter.prototype.init=function(t){n.assert(t,"playerjs.JWPlayerAdapter requires a player object");var e=this.receiver=new n.Receiver;this.looped=!1,t.onPause(function(){e.emit("pause")}),t.onPlay(function(){e.emit("play")}),t.onTime(function(t){var n=t.position,i=t.duration;if(!n||!i)return!1;var r={seconds:n,duration:i};e.emit("timeupdate",r)});var i=this;t.onComplete(function(){!0===i.looped?t.seek(0):e.emit("ended")}),t.onError(function(){e.emit("error")}),e.on("play",function(){t.play(!0)}),e.on("pause",function(){t.pause(!0)}),e.on("getPaused",function(e){e(t.getState().toLowerCase()!=="PLAYING".toLowerCase())}),e.on("getCurrentTime",function(e){e(t.getPosition())}),e.on("setCurrentTime",function(e){t.seek(e)}),e.on("getDuration",function(e){e(t.getDuration())}),e.on("getVolume",function(e){e(t.getVolume())}),e.on("setVolume",function(e){t.setVolume(e)}),e.on("mute",function(){t.setMute(!0)}),e.on("unmute",function(){t.setMute(!1)}),e.on("getMuted",function(e){e(!0===t.getMute())}),e.on("getLoop",function(t){t(this.looped)},this),e.on("setLoop",function(t){this.looped=t},this)},n.JWPlayerAdapter.prototype.ready=function(){this.receiver.ready()},n.MockAdapter=function(){if(!(this instanceof n.MockAdapter))return new n.MockAdapter;this.init()},n.MockAdapter.prototype.init=function(){var t={duration:20,currentTime:0,interval:null,timeupdate:function(){},volume:100,mute:!1,playing:!1,loop:!1,play:function(){t.interval=setInterval(function(){t.currentTime+=.25,t.timeupdate({seconds:t.currentTime,duration:t.duration})},250),t.playing=!0},pause:function(){clearInterval(t.interval),t.playing=!1}},e=this.receiver=new n.Receiver;e.on("play",function(){var e=this;t.play(),this.emit("play"),t.timeupdate=function(t){e.emit("timeupdate",t)}}),e.on("pause",function(){t.pause(),this.emit("pause")}),e.on("getPaused",function(e){e(!t.playing)}),e.on("getCurrentTime",function(e){e(t.currentTime)}),e.on("setCurrentTime",function(e){t.currentTime=e}),e.on("getDuration",function(e){e(t.duration)}),e.on("getVolume",function(e){e(t.volume)}),e.on("setVolume",function(e){t.volume=e}),e.on("mute",function(){t.mute=!0}),e.on("unmute",function(){t.mute=!1}),e.on("getMuted",function(e){e(t.mute)}),e.on("getLoop",function(e){e(t.loop)}),e.on("setLoop",function(e){t.loop=e})},n.MockAdapter.prototype.ready=function(){this.receiver.ready()},n.VideoJSAdapter=function(t){if(!(this instanceof n.VideoJSAdapter))return new n.VideoJSAdapter(t);this.init(t)},n.VideoJSAdapter.prototype.init=function(t){n.assert(t,"playerjs.VideoJSReceiver requires a player object");var e=this.receiver=new n.Receiver;t.on("pause",function(){e.emit("pause")}),t.on("play",function(){e.emit("play")}),t.on("timeupdate",function(n){var i=t.currentTime(),r=t.duration();if(!i||!r)return!1;var o={seconds:i,duration:r};e.emit("timeupdate",o)}),t.on("ended",function(){e.emit("ended")}),t.on("error",function(){e.emit("error")}),e.on("play",function(){t.play()}),e.on("pause",function(){t.pause()}),e.on("getPaused",function(e){e(t.paused())}),e.on("getCurrentTime",function(e){e(t.currentTime())}),e.on("setCurrentTime",function(e){t.currentTime(e)}),e.on("getDuration",function(e){e(t.duration())}),e.on("getVolume",function(e){e(100*t.volume())}),e.on("setVolume",function(e){t.volume(e/100)}),e.on("mute",function(){t.volume(0)}),e.on("unmute",function(){t.volume(1)}),e.on("getMuted",function(e){e(0===t.volume())}),e.on("getLoop",function(e){e(t.loop())}),e.on("setLoop",function(e){t.loop(e)})},n.VideoJSAdapter.prototype.ready=function(){this.receiver.ready()},t.exports=n}(window)},,,,function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}();var r,o=n(132),a=(r=o)&&r.__esModule?r:{default:r},s=n(73),u=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}(n(140)),l=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.relay=new a.default({init:this.initPlayer.bind(this),updateManifest:this.updateManifest.bind(this),updateVirusScanStatus:this.updateVirusScanStatus.bind(this)})}return i(t,[{key:"initPlayer",value:function(){var t=arguments.length<=0||void 0===arguments[0]?{}:arguments[0];if(t.context!==s.DOCUMENT_CONTEXT)throw new TypeError("Expected context type "+s.DOCUMENT_CONTEXT+", got "+t.context);var e=document.querySelector(".native-document-container"),n=document.querySelector(".ssplayer-wrapper"),i=1===t.doc.totalPageCount,r={title:t.doc.title,details:t.doc.subtitle,detailsFullscreen:t.doc.subtitleFullscreen||t.doc.subtitle,divider:t.doc.title?s.DOCUMENT_TOPBAR_DIVIDER:""};t.doc.enableTopbarAuthor&&(r.author={name:t.doc.authorTitle,description:t.doc.authorSubtitle,profileUrl:t.doc.authorTitleUrl,inbugUrl:t.doc.inbugUrl});var o={carouselOptions:{aspectRatio:t.doc.width/t.doc.height,initialSlideConfigs:t.doc.coverPages,numPages:t.doc.totalPageCount},topbarOptions:r,bottombarOptions:{title:t.doc.authorTitle,subtitle:t.doc.authorSubtitle,titleUrl:t.doc.authorTitleUrl,inbugUrl:t.doc.inbugUrl},virusScanOptions:{titleText:t.doc.downloadTitle,bypassScan:!t.doc.isScanRequired,redirect:!1===t.doc.isScanAvailable,redirectAccessibilityTitle:t.doc.scanUnavailableOnAccessibilityModeTitle,redirectDownloadTitle:t.doc.scanUnavailableOnDownloadTitle,redirectUrl:t.doc.scanUnavailableRedirectUrl},playerOptions:{isRtl:t.doc.isRtl,enableBottombar:t.doc.enableBottombar,callbacks:{onChangePosition:this._onChangePosition.bind(this),onFullscreen:this._onFullscreen.bind(this),onClickEnterFullscreen:this._onClickEnterFullscreen.bind(this),onClickExitFullscreen:this._onClickExitFullscreen.bind(this),onClickDownload:this._onClickDownload.bind(this),onClickAccessibilityMode:this._onClickAccessibilityMode.bind(this),onClickVirusScanCancel:this._onClickVirusScanCancel.bind(this),onClickVirusScanSkip:this._onClickVirusScanSkip.bind(this),onClickVirusScanBypass:this._onClickVirusScanBypass.bind(this),onClickVirusScanDownload:this._onClickVirusScanDownload.bind(this),onClickLeftNav:this._onClickLeftNav.bind(this),onClickRightNav:this._onClickRightNav.bind(this),onLeftKeyPress:this._onLeftKeyPress.bind(this),onRightKeyPress:this._onRightKeyPress.bind(this),onProgressMove:this._onProgressMove.bind(this)}},manifestOptions:{primaryManifestUrl:t.doc.manifestUrl,manifestUrlExpiresAt:t.doc.manifestUrlExpiresAt,shouldDownloadTranscript:t.doc.shouldDownloadTranscript,onRequestUpdateManifest:this._onRequestUpdateManifest.bind(this)},virusScanBehaviorOptions:{callbacks:{requestVirusScanStatus:this._onRequestVirusScanStatus.bind(this)}},progressOptions:{isSinglePage:i},previewThumbnailOptions:{isSinglePage:i},sidepanelLeftOptions:{isSinglePage:i},sidepanelRightOptions:{isSinglePage:i}};t.doc.trackingId&&(o.trackingOptions={playerRootElement:n,trackingId:t.doc.trackingId,objectUrn:t.doc.objectUrn,trackingCallback:this._onTrackingCallback.bind(this)}),this.playerInstance=u.initializePlayer(n,o,t.a11y,t.i18n),e.classList.remove("hidden"),this.playerInstance.presentationBehavior.components.carousel.setDimensions(),this.relay.sendMessage("ready")}},{key:"updateManifest",value:function(){var t=arguments.length<=0||void 0===arguments[0]?{}:arguments[0];if(t.context!==s.DOCUMENT_CONTEXT)throw new TypeError("Expected context type "+s.DOCUMENT_CONTEXT+", got "+t.context);if(!t.manifestUrl||!t.manifestUrlExpiresAt)throw new TypeError("Expected manifest url ("+t.manifestUrl+") and manifest url expiresAt ("+t.manifestUrlExpiresAt+") to be present!");this.playerInstance.presentationManifestBehavior.updateManifest(t.manifestUrl,t.manifestUrlExpiresAt)}},{key:"updateVirusScanStatus",value:function(){var t=arguments.length<=0||void 0===arguments[0]?{}:arguments[0];if(t.context!==s.DOCUMENT_CONTEXT)throw new TypeError("Expected context type "+s.DOCUMENT_CONTEXT+", got "+t.context);if("string"!=typeof t.virusScanStatus)throw new TypeError("Virus scan status "+JSON.stringify(t)+" is not valid!");this.playerInstance.virusScanBehavior.onVirusScanPollResult(t.virusScanStatus)}},{key:"_onTrackingCallback",value:function(t,e){t&&e&&this.relay.sendMessage("fire-native-document-tracking",{name:t,body:e})}},{key:"_onRequestUpdateManifest",value:function(){this.relay.sendMessage("request-update-manifest")}},{key:"_onRequestVirusScanStatus",value:function(){this.relay.sendMessage("request-virus-scan-status")}},{key:"_onChangePosition",value:function(t){var e=t.oldPosition,n=t.newPosition,i=t.eventSource;e!==n&&this.relay.sendMessage("change-position",{position:n,eventSource:i})}},{key:"_onFullscreen",value:function(t){this.relay.sendMessage("fullscreen",{isFullscreen:t})}},{key:"_onClickEnterFullscreen",value:function(){this.relay.sendMessage("click-enter-fullscreen")}},{key:"_onClickExitFullscreen",value:function(){this.relay.sendMessage("click-exit-fullscreen")}},{key:"_onClickDownload",value:function(){this.relay.sendMessage("click-download")}},{key:"_onClickAccessibilityMode",value:function(){this.relay.sendMessage("click-accessibility-mode")}},{key:"_onClickVirusScanCancel",value:function(t){this.relay.sendMessage("click-virus-scan-cancel",t)}},{key:"_onClickVirusScanSkip",value:function(t){this.relay.sendMessage("click-virus-scan-skip",t)}},{key:"_onClickVirusScanBypass",value:function(t){this.relay.sendMessage("click-virus-scan-bypass",t)}},{key:"_onClickVirusScanDownload",value:function(t){this.relay.sendMessage("click-virus-scan-download",t)}},{key:"_onClickLeftNav",value:function(){this.relay.sendMessage("click-left-nav")}},{key:"_onClickRightNav",value:function(){this.relay.sendMessage("click-right-nav")}},{key:"_onLeftKeyPress",value:function(){this.relay.sendMessage("press-left-key")}},{key:"_onRightKeyPress",value:function(){this.relay.sendMessage("press-right-key")}},{key:"_onProgressMove",value:function(t){this.relay.sendMessage("progress-move",{position:t})}}]),t}();e.default=l;new l;t.exports=e.default},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}();function r(t){return t&&t.__esModule?t:{default:t}}var o=r(n(133)),a=r(n(139)),s=function(){function t(){var e=arguments.length<=0||void 0===arguments[0]?{}:arguments[0];!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.eventMap=e,this._setupListener()}return i(t,[{key:"sendMessage",value:function(t){var e=arguments.length<=1||void 0===arguments[1]?{}:arguments[1];if(window.parent!==window||window.opener){if(!this._targetOrigin)throw new Error("Cannot send message when targetOrigin is not set!");this._postMessage(t,e)}}},{key:"_postMessage",value:function(t,e){var n=JSON.stringify({event:t,data:e});(window.opener||window.parent).postMessage(n,this._targetOrigin)}},{key:"_handleMessage",value:function(){var t=arguments.length<=0||void 0===arguments[0]?{}:arguments[0];if((0,o.default)(t.origin)){if(t.data&&""!==t.data){var e=JSON.parse(t.data||"{}"),n=e.action,i=this.eventMap[n];"function"==typeof i?("init"===n&&(this._targetOrigin=this._targetOrigin||t.origin),i(e)):(0,a.default)("Cannot handle action '"+n+"'")}}else(0,a.default)("Origin '"+t.origin+"' is not allowlisted!")}},{key:"_handleError",value:function(t){this.sendMessage("error",{message:t.message})}},{key:"_setupListener",value:function(){window!==window.parent&&(window.addEventListener("message",this._handleMessage.bind(this)),window.addEventListener("error",this._handleError.bind(this)))}}]),t}();e.default=s,t.exports=e.default},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){if(!t)return!1;var e=o.default.parse(t).hostname,n=location&&location.hostname;if(e===n)return!0;for(var i=0;i<a.ALLOWED_ORIGINS.length;i+=1){var r=a.ALLOWED_ORIGINS[i];if(r instanceof RegExp&&r.test(e))return!0;if(r===e)return!0}return!1};var i,r=n(134),o=(i=r)&&i.__esModule?i:{default:i},a=n(73);t.exports=e.default},function(t,e,n){var i=n(135);function r(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}e.parse=m,e.resolve=function(t,e){return m(t,!1,!0).resolve(e)},e.resolveObject=function(t,e){return t?m(t,!1,!0).resolveObject(e):e},e.format=function(t){g(t)&&(t=m(t));return t instanceof r?t.format():r.prototype.format.call(t)},e.Url=r;var o=/^([a-z0-9.+-]+:)/i,a=/:[0-9]*$/,s=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),u=["'"].concat(s),l=["%","/","?",";","#"].concat(u),c=["/","?","#"],d=/^[a-z0-9A-Z_-]{0,63}$/,f=/^([a-z0-9A-Z_-]{0,63})(.*)$/,h={javascript:!0,"javascript:":!0},p={javascript:!0,"javascript:":!0},v={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},y=n(136);function m(t,e,n){if(t&&b(t)&&t instanceof r)return t;var i=new r;return i.parse(t,e,n),i}function g(t){return"string"==typeof t}function b(t){return"object"==typeof t&&null!==t}function _(t){return null===t}r.prototype.parse=function(t,e,n){if(!g(t))throw new TypeError("Parameter 'url' must be a string, not "+typeof t);var r=t;r=r.trim();var a=o.exec(r);if(a){var s=(a=a[0]).toLowerCase();this.protocol=s,r=r.substr(a.length)}if(n||a||r.match(/^\/\/[^@\/]+@[^@\/]+/)){var m="//"===r.substr(0,2);!m||a&&p[a]||(r=r.substr(2),this.slashes=!0)}if(!p[a]&&(m||a&&!v[a])){for(var b,_,T=-1,E=0;E<c.length;E++){-1!==(w=r.indexOf(c[E]))&&(-1===T||w<T)&&(T=w)}-1!==(_=-1===T?r.lastIndexOf("@"):r.lastIndexOf("@",T))&&(b=r.slice(0,_),r=r.slice(_+1),this.auth=decodeURIComponent(b)),T=-1;for(E=0;E<l.length;E++){var w;-1!==(w=r.indexOf(l[E]))&&(-1===T||w<T)&&(T=w)}-1===T&&(T=r.length),this.host=r.slice(0,T),r=r.slice(T),this.parseHost(),this.hostname=this.hostname||"";var k="["===this.hostname[0]&&"]"===this.hostname[this.hostname.length-1];if(!k)for(var S=this.hostname.split(/\./),O=(E=0,S.length);E<O;E++){var C=S[E];if(C&&!C.match(d)){for(var x="",P=0,A=C.length;P<A;P++)C.charCodeAt(P)>127?x+="x":x+=C[P];if(!x.match(d)){var j=S.slice(0,E),M=S.slice(E+1),I=C.match(f);I&&(j.push(I[1]),M.unshift(I[2])),M.length&&(r="/"+M.join(".")+r),this.hostname=j.join(".");break}}}if(this.hostname.length>255?this.hostname="":this.hostname=this.hostname.toLowerCase(),!k){var L=this.hostname.split("."),R=[];for(E=0;E<L.length;++E){var D=L[E];R.push(D.match(/[^A-Za-z0-9_-]/)?"xn--"+i.encode(D):D)}this.hostname=R.join(".")}var N=this.port?":"+this.port:"",B=this.hostname||"";this.host=B+N,this.href+=this.host,k&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==r[0]&&(r="/"+r))}if(!h[s])for(E=0,O=u.length;E<O;E++){var U=u[E],F=encodeURIComponent(U);F===U&&(F=escape(U)),r=r.split(U).join(F)}var V=r.indexOf("#");-1!==V&&(this.hash=r.substr(V),r=r.slice(0,V));var H=r.indexOf("?");if(-1!==H?(this.search=r.substr(H),this.query=r.substr(H+1),e&&(this.query=y.parse(this.query)),r=r.slice(0,H)):e&&(this.search="",this.query={}),r&&(this.pathname=r),v[s]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){N=this.pathname||"",D=this.search||"";this.path=N+D}return this.href=this.format(),this},r.prototype.format=function(){var t=this.auth||"";t&&(t=(t=encodeURIComponent(t)).replace(/%3A/i,":"),t+="@");var e=this.protocol||"",n=this.pathname||"",i=this.hash||"",r=!1,o="";this.host?r=t+this.host:this.hostname&&(r=t+(-1===this.hostname.indexOf(":")?this.hostname:"["+this.hostname+"]"),this.port&&(r+=":"+this.port)),this.query&&b(this.query)&&Object.keys(this.query).length&&(o=y.stringify(this.query));var a=this.search||o&&"?"+o||"";return e&&":"!==e.substr(-1)&&(e+=":"),this.slashes||(!e||v[e])&&!1!==r?(r="//"+(r||""),n&&"/"!==n.charAt(0)&&(n="/"+n)):r||(r=""),i&&"#"!==i.charAt(0)&&(i="#"+i),a&&"?"!==a.charAt(0)&&(a="?"+a),e+r+(n=n.replace(/[?#]/g,function(t){return encodeURIComponent(t)}))+(a=a.replace("#","%23"))+i},r.prototype.resolve=function(t){return this.resolveObject(m(t,!1,!0)).format()},r.prototype.resolveObject=function(t){if(g(t)){var e=new r;e.parse(t,!1,!0),t=e}var n=new r;if(Object.keys(this).forEach(function(t){n[t]=this[t]},this),n.hash=t.hash,""===t.href)return n.href=n.format(),n;if(t.slashes&&!t.protocol)return Object.keys(t).forEach(function(e){"protocol"!==e&&(n[e]=t[e])}),v[n.protocol]&&n.hostname&&!n.pathname&&(n.path=n.pathname="/"),n.href=n.format(),n;if(t.protocol&&t.protocol!==n.protocol){if(!v[t.protocol])return Object.keys(t).forEach(function(e){n[e]=t[e]}),n.href=n.format(),n;if(n.protocol=t.protocol,t.host||p[t.protocol])n.pathname=t.pathname;else{for(var i=(t.pathname||"").split("/");i.length&&!(t.host=i.shift()););t.host||(t.host=""),t.hostname||(t.hostname=""),""!==i[0]&&i.unshift(""),i.length<2&&i.unshift(""),n.pathname=i.join("/")}if(n.search=t.search,n.query=t.query,n.host=t.host||"",n.auth=t.auth,n.hostname=t.hostname||t.host,n.port=t.port,n.pathname||n.search){var o=n.pathname||"",a=n.search||"";n.path=o+a}return n.slashes=n.slashes||t.slashes,n.href=n.format(),n}var s=n.pathname&&"/"===n.pathname.charAt(0),u=t.host||t.pathname&&"/"===t.pathname.charAt(0),l=u||s||n.host&&t.pathname,c=l,d=n.pathname&&n.pathname.split("/")||[],f=(i=t.pathname&&t.pathname.split("/")||[],n.protocol&&!v[n.protocol]);if(f&&(n.hostname="",n.port=null,n.host&&(""===d[0]?d[0]=n.host:d.unshift(n.host)),n.host="",t.protocol&&(t.hostname=null,t.port=null,t.host&&(""===i[0]?i[0]=t.host:i.unshift(t.host)),t.host=null),l=l&&(""===i[0]||""===d[0])),u)n.host=t.host||""===t.host?t.host:n.host,n.hostname=t.hostname||""===t.hostname?t.hostname:n.hostname,n.search=t.search,n.query=t.query,d=i;else if(i.length)d||(d=[]),d.pop(),d=d.concat(i),n.search=t.search,n.query=t.query;else if(null!=t.search){if(f)n.hostname=n.host=d.shift(),(T=!!(n.host&&n.host.indexOf("@")>0)&&n.host.split("@"))&&(n.auth=T.shift(),n.host=n.hostname=T.shift());return n.search=t.search,n.query=t.query,_(n.pathname)&&_(n.search)||(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.href=n.format(),n}if(!d.length)return n.pathname=null,n.search?n.path="/"+n.search:n.path=null,n.href=n.format(),n;for(var h=d.slice(-1)[0],y=(n.host||t.host)&&("."===h||".."===h)||""===h,m=0,b=d.length;b>=0;b--)"."==(h=d[b])?d.splice(b,1):".."===h?(d.splice(b,1),m++):m&&(d.splice(b,1),m--);if(!l&&!c)for(;m--;m)d.unshift("..");!l||""===d[0]||d[0]&&"/"===d[0].charAt(0)||d.unshift(""),y&&"/"!==d.join("/").substr(-1)&&d.push("");var T,E=""===d[0]||d[0]&&"/"===d[0].charAt(0);f&&(n.hostname=n.host=E?"":d.length?d.shift():"",(T=!!(n.host&&n.host.indexOf("@")>0)&&n.host.split("@"))&&(n.auth=T.shift(),n.host=n.hostname=T.shift()));return(l=l||n.host&&d.length)&&!E&&d.unshift(""),d.length?n.pathname=d.join("/"):(n.pathname=null,n.path=null),_(n.pathname)&&_(n.search)||(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.auth=t.auth||n.auth,n.slashes=n.slashes||t.slashes,n.href=n.format(),n},r.prototype.parseHost=function(){var t=this.host,e=a.exec(t);e&&(":"!==(e=e[0])&&(this.port=e.substr(1)),t=t.substr(0,t.length-e.length)),t&&(this.hostname=t)}},function(t,e,n){var i;(function(t,r){!function(o){"object"==typeof e&&e&&e.nodeType,"object"==typeof t&&t&&t.nodeType;var a="object"==typeof r&&r;a.global!==a&&a.window!==a&&a.self;var s,u=2147483647,l=36,c=1,d=26,f=38,h=700,p=72,v=128,y="-",m=/^xn--/,g=/[^\x20-\x7E]/,b=/[\x2E\u3002\uFF0E\uFF61]/g,_={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},T=l-c,E=Math.floor,w=String.fromCharCode;function k(t){throw RangeError(_[t])}function S(t,e){for(var n=t.length,i=[];n--;)i[n]=e(t[n]);return i}function O(t,e){var n=t.split("@"),i="";return n.length>1&&(i=n[0]+"@",t=n[1]),i+S((t=t.replace(b,".")).split("."),e).join(".")}function C(t){for(var e,n,i=[],r=0,o=t.length;r<o;)(e=t.charCodeAt(r++))>=55296&&e<=56319&&r<o?56320==(64512&(n=t.charCodeAt(r++)))?i.push(((1023&e)<<10)+(1023&n)+65536):(i.push(e),r--):i.push(e);return i}function x(t){return S(t,function(t){var e="";return t>65535&&(e+=w((t-=65536)>>>10&1023|55296),t=56320|1023&t),e+=w(t)}).join("")}function P(t,e){return t+22+75*(t<26)-((0!=e)<<5)}function A(t,e,n){var i=0;for(t=n?E(t/h):t>>1,t+=E(t/e);t>T*d>>1;i+=l)t=E(t/T);return E(i+(T+1)*t/(t+f))}function j(t){var e,n,i,r,o,a,s,f,h,m,g,b=[],_=t.length,T=0,w=v,S=p;for((n=t.lastIndexOf(y))<0&&(n=0),i=0;i<n;++i)t.charCodeAt(i)>=128&&k("not-basic"),b.push(t.charCodeAt(i));for(r=n>0?n+1:0;r<_;){for(o=T,a=1,s=l;r>=_&&k("invalid-input"),((f=(g=t.charCodeAt(r++))-48<10?g-22:g-65<26?g-65:g-97<26?g-97:l)>=l||f>E((u-T)/a))&&k("overflow"),T+=f*a,!(f<(h=s<=S?c:s>=S+d?d:s-S));s+=l)a>E(u/(m=l-h))&&k("overflow"),a*=m;S=A(T-o,e=b.length+1,0==o),E(T/e)>u-w&&k("overflow"),w+=E(T/e),T%=e,b.splice(T++,0,w)}return x(b)}function M(t){var e,n,i,r,o,a,s,f,h,m,g,b,_,T,S,O=[];for(b=(t=C(t)).length,e=v,n=0,o=p,a=0;a<b;++a)(g=t[a])<128&&O.push(w(g));for(i=r=O.length,r&&O.push(y);i<b;){for(s=u,a=0;a<b;++a)(g=t[a])>=e&&g<s&&(s=g);for(s-e>E((u-n)/(_=i+1))&&k("overflow"),n+=(s-e)*_,e=s,a=0;a<b;++a)if((g=t[a])<e&&++n>u&&k("overflow"),g==e){for(f=n,h=l;!(f<(m=h<=o?c:h>=o+d?d:h-o));h+=l)S=f-m,T=l-m,O.push(w(P(m+S%T,0))),f=E(S/T);O.push(w(P(f,0))),o=A(n,_,i==r),n=0,++i}++n,++e}return O.join("")}s={version:"1.3.2",ucs2:{decode:C,encode:x},decode:j,encode:M,toASCII:function(t){return O(t,function(t){return g.test(t)?"xn--"+M(t):t})},toUnicode:function(t){return O(t,function(t){return m.test(t)?j(t.slice(4).toLowerCase()):t})}},void 0===(i=function(){return s}.call(e,n,e,t))||(t.exports=i)}()}).call(e,n(45)(t),function(){return this}())},function(t,e,n){"use strict";e.decode=e.parse=n(137),e.encode=e.stringify=n(138)},function(t,e){"use strict";function n(t,e){return Object.prototype.hasOwnProperty.call(t,e)}t.exports=function(t,e,i,r){e=e||"&",i=i||"=";var o={};if("string"!=typeof t||0===t.length)return o;var a=/\+/g;t=t.split(e);var s=1e3;r&&"number"==typeof r.maxKeys&&(s=r.maxKeys);var u=t.length;s>0&&u>s&&(u=s);for(var l=0;l<u;++l){var c,d,f,h,p=t[l].replace(a,"%20"),v=p.indexOf(i);v>=0?(c=p.substr(0,v),d=p.substr(v+1)):(c=p,d=""),f=decodeURIComponent(c),h=decodeURIComponent(d),n(o,f)?Array.isArray(o[f])?o[f].push(h):o[f]=[o[f],h]:o[f]=h}return o}},function(t,e){"use strict";var n=function(t){switch(typeof t){case"string":return t;case"boolean":return t?"true":"false";case"number":return isFinite(t)?t:"";default:return""}};t.exports=function(t,e,i,r){return e=e||"&",i=i||"=",null===t&&(t=void 0),"object"==typeof t?Object.keys(t).map(function(r){var o=encodeURIComponent(n(r))+i;return Array.isArray(t[r])?t[r].map(function(t){return o+encodeURIComponent(n(t))}).join(e):o+encodeURIComponent(n(t[r]))}).join(e):r?encodeURIComponent(n(r))+i+encodeURIComponent(n(t)):""}},function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(){if(console&&console.warn){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];console.warn.apply(null,e)}},t.exports=e.default},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.mergeControlOptions=u,e.initializePlayer=function(t){var e=arguments.length<=1||void 0===arguments[1]?{}:arguments[1],n=arguments.length<=2||void 0===arguments[2]?{}:arguments[2],i=arguments.length<=3||void 0===arguments[3]?{}:arguments[3],r=u(u((0,o.default)((l=t,{accessibilityModeFrameElement:(0,s.getElement)(l,".ssplayer-presentation-accessibility-mode__container"),carouselElement:(0,s.getElement)(l,".ssplayer-carousel"),carouselOptions:{constrainHeight:!0},paginationElement:(0,s.getElement)(l,".ssplayer-pagination"),presentationElement:(0,s.getElement)(l,".ssplayer-presentation-player"),progressElement:(0,s.getElement)(l,".ssplayer-progress-bar"),previewThumbnailElement:(0,s.getElement)(l,".ssplayer-presentation-preview-thumbnail"),sidepanelLeftElement:(0,s.getElement)(l,".ssplayer-carousel-panel.left"),sidepanelRightElement:(0,s.getElement)(l,".ssplayer-carousel-panel.right"),toolbarElement:(0,s.getElement)(l,".ssplayer-presentation-toolbar"),topbarElement:(0,s.getElement)(l,".ssplayer-presentation-topbar"),bottombarElement:(0,s.getElement)(l,".ssplayer-presentation-bottombar"),virusScanElement:(0,s.getElement)(l,".ssplayer-virus-scan-container"),virusScanOptions:{pollIntervalInSeconds:5}}),e),n,!0),i,!1);var l;return(0,a.initPresentation)(r)};var i,r=n(141),o=(i=r)&&i.__esModule?i:{default:i},a=n(142),s=n(648);function u(t,e,n){var i=Object.keys(e).map(function(t){var i,r,o,a=e[t],s=n?{a11y:a}:a;return i={},r=t.concat("Options"),o=s,r in i?Object.defineProperty(i,r,{value:o,enumerable:!0,configurable:!0,writable:!0}):i[r]=o,i}).reduce(function(t,e){return(0,o.default)(t,e)},{});return(0,o.default)(t,i)}},function(t,e,n){var i=n(76),r=n(62)(function(t,e,n){i(t,e,n)});t.exports=r},function(t,e,n){"use strict";var i=n(143).default,r=n(196).default,o=n(198).default;Object.defineProperty(e,"__esModule",{value:!0});var a=r(n(200)),s=r(n(302)),u=r(n(303)),l=r(n(311)),c=r(n(339)),d=r(n(346)),f=r(n(347)),h=r(n(350)),p=r(n(351)),v=r(n(353)),y=r(n(354)),m=r(n(355)),g=r(n(356)),b=r(n(358)),_=r(n(360)),T=r(n(361)),E=r(n(364)),w=r(n(365)),k=r(n(368)),S=r(n(370)),O=r(n(372)),C=r(n(373)),x=r(n(375)),P=r(n(376)),A=r(n(377)),j=r(n(378)),M=r(n(379)),I=r(n(383)),L=r(n(384)),R=r(n(385)),D=r(n(386)),N=r(n(388)),B=r(n(389)),U=r(n(390)),F=r(n(393)),V=r(n(394)),H=r(n(395)),z=r(n(396)),q=r(n(597)),G=r(n(634)),W=o(n(633)),Y=r(n(294)),X=r(n(647));i||(Array.from=X.default),e.default={ActivatableComponent:a.default,BufferComponent:s.default,ButtonComponent:u.default,CarouselComponent:l.default,DiscreteProgressComponent:c.default,PreviewThumbnailComponent:d.default,EndcardComponent:f.default,FocusableComponent:h.default,HorizontalSlider:p.default,KeyboardComponent:v.default,LoaderComponent:y.default,ModalComponent:m.default,PaginationComponent:g.default,PresentationPlayerComponent:b.default,PresentationSidepanelComponent:_.default,RumTrackingComponent:T.default,SelectableComponent:E.default,ShareButtonComponent:w.default,TimeDisplayComponent:k.default,ToolbarComponent:S.default,VerticalSliderComponent:O.default,VideoPlayerComponent:C.default,VolumeSwitchComponent:x.default,EndcardBehavior:P.default,FullscreenBehavior:A.default,ModalManagerBehavior:j.default,PresentationBehavior:M.default,ShareLinkBehavior:I.default,ShareModalBehavior:L.default,VideojsBufferBehavior:R.default,VideojsMetricsBehavior:D.default,VideojsPlaybackBehavior:N.default,VideojsTimeBehavior:B.default,VideojsTrackingBehavior:U.default,VideojsUserActivityBehavior:F.default,VideojsVolumeBehavior:V.default,VideojsWaitingBehavior:H.default,initDocument:G.default,initPresentation:q.default,initVideo:z.default.create.bind(z.default),VideoPlayer:z.default,EventListener:Y.default,tracking:W},t.exports=e.default},function(t,e,n){t.exports={default:n(144),__esModule:!0}},function(t,e,n){n(145),n(189),t.exports=n(153).Array.from},function(t,e,n){"use strict";var i=n(146)(!0);n(149)(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=i(e,n),this._i+=t.length,{value:t,done:!1})})},function(t,e,n){var i=n(147),r=n(148);t.exports=function(t){return function(e,n){var o,a,s=String(r(e)),u=i(n),l=s.length;return u<0||u>=l?t?"":void 0:(o=s.charCodeAt(u))<55296||o>56319||u+1===l||(a=s.charCodeAt(u+1))<56320||a>57343?t?s.charAt(u):o:t?s.slice(u,u+2):a-56320+(o-55296<<10)+65536}}},function(t,e){var n=Math.ceil,i=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?i:n)(t)}},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";var i=n(150),r=n(151),o=n(167),a=n(156),s=n(168),u=n(169),l=n(185),c=n(187),d=n(186)("iterator"),f=!([].keys&&"next"in[].keys()),h=function(){return this};t.exports=function(t,e,n,p,v,y,m){u(n,e,p);var g,b,_,T=function(t){if(!f&&t in S)return S[t];switch(t){case"keys":case"values":return function(){return new n(this,t)}}return function(){return new n(this,t)}},E=e+" Iterator",w="values"==v,k=!1,S=t.prototype,O=S[d]||S["@@iterator"]||v&&S[v],C=O||T(v),x=v?w?T("entries"):C:void 0,P="Array"==e&&S.entries||O;if(P&&(_=c(P.call(new t)))!==Object.prototype&&_.next&&(l(_,E,!0),i||"function"==typeof _[d]||a(_,d,h)),w&&O&&"values"!==O.name&&(k=!0,C=function(){return O.call(this)}),i&&!m||!f&&!k&&S[d]||a(S,d,C),s[e]=C,s[E]=h,v)if(g={values:w?C:T("values"),keys:y?C:T("keys"),entries:x},m)for(b in g)b in S||o(S,b,g[b]);else r(r.P+r.F*(f||k),e,g);return g}},function(t,e){t.exports=!0},function(t,e,n){var i=n(152),r=n(153),o=n(154),a=n(156),s=n(166),u=function(t,e,n){var l,c,d,f=t&u.F,h=t&u.G,p=t&u.S,v=t&u.P,y=t&u.B,m=t&u.W,g=h?r:r[e]||(r[e]={}),b=g.prototype,_=h?i:p?i[e]:(i[e]||{}).prototype;for(l in h&&(n=e),n)(c=!f&&_&&void 0!==_[l])&&s(g,l)||(d=c?_[l]:n[l],g[l]=h&&"function"!=typeof _[l]?n[l]:y&&c?o(d,i):m&&_[l]==d?function(t){var e=function(e,n,i){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,i)}return t.apply(this,arguments)};return e.prototype=t.prototype,e}(d):v&&"function"==typeof d?o(Function.call,d):d,v&&((g.virtual||(g.virtual={}))[l]=d,t&u.R&&b&&!b[l]&&a(b,l,d)))};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){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){var n=t.exports={version:"2.6.12"};"number"==typeof __e&&(__e=n)},function(t,e,n){var i=n(155);t.exports=function(t,e,n){if(i(t),void 0===e)return t;switch(n){case 1:return function(n){return t.call(e,n)};case 2:return function(n,i){return t.call(e,n,i)};case 3:return function(n,i,r){return t.call(e,n,i,r)}}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 i=n(157),r=n(165);t.exports=n(161)?function(t,e,n){return i.f(t,e,r(1,n))}:function(t,e,n){return t[e]=n,t}},function(t,e,n){var i=n(158),r=n(160),o=n(164),a=Object.defineProperty;e.f=n(161)?Object.defineProperty:function(t,e,n){if(i(t),e=o(e,!0),i(n),r)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 i=n(159);t.exports=function(t){if(!i(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){t.exports=!n(161)&&!n(162)(function(){return 7!=Object.defineProperty(n(163)("div"),"a",{get:function(){return 7}}).a})},function(t,e,n){t.exports=!n(162)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,e,n){var i=n(159),r=n(152).document,o=i(r)&&i(r.createElement);t.exports=function(t){return o?r.createElement(t):{}}},function(t,e,n){var i=n(159);t.exports=function(t,e){if(!i(t))return t;var n,r;if(e&&"function"==typeof(n=t.toString)&&!i(r=n.call(t)))return r;if("function"==typeof(n=t.valueOf)&&!i(r=n.call(t)))return r;if(!e&&"function"==typeof(n=t.toString)&&!i(r=n.call(t)))return r;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){t.exports=n(156)},function(t,e){t.exports={}},function(t,e,n){"use strict";var i=n(170),r=n(165),o=n(185),a={};n(156)(a,n(186)("iterator"),function(){return this}),t.exports=function(t,e,n){t.prototype=i(a,{next:r(1,n)}),o(t,e+" Iterator")}},function(t,e,n){var i=n(158),r=n(171),o=n(183),a=n(180)("IE_PROTO"),s=function(){},u=function(){var t,e=n(163)("iframe"),i=o.length;for(e.style.display="none",n(184).appendChild(e),e.src="javascript:",(t=e.contentWindow.document).open(),t.write("<script>document.F=Object<\/script>"),t.close(),u=t.F;i--;)delete u.prototype[o[i]];return u()};t.exports=Object.create||function(t,e){var n;return null!==t?(s.prototype=i(t),n=new s,s.prototype=null,n[a]=t):n=u(),void 0===e?n:r(n,e)}},function(t,e,n){var i=n(157),r=n(158),o=n(172);t.exports=n(161)?Object.defineProperties:function(t,e){r(t);for(var n,a=o(e),s=a.length,u=0;s>u;)i.f(t,n=a[u++],e[n]);return t}},function(t,e,n){var i=n(173),r=n(183);t.exports=Object.keys||function(t){return i(t,r)}},function(t,e,n){var i=n(166),r=n(174),o=n(177)(!1),a=n(180)("IE_PROTO");t.exports=function(t,e){var n,s=r(t),u=0,l=[];for(n in s)n!=a&&i(s,n)&&l.push(n);for(;e.length>u;)i(s,n=e[u++])&&(~o(l,n)||l.push(n));return l}},function(t,e,n){var i=n(175),r=n(148);t.exports=function(t){return i(r(t))}},function(t,e,n){var i=n(176);t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==i(t)?t.split(""):Object(t)}},function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},function(t,e,n){var i=n(174),r=n(178),o=n(179);t.exports=function(t){return function(e,n,a){var s,u=i(e),l=r(u.length),c=o(a,l);if(t&&n!=n){for(;l>c;)if((s=u[c++])!=s)return!0}else for(;l>c;c++)if((t||c in u)&&u[c]===n)return t||c||0;return!t&&-1}}},function(t,e,n){var i=n(147),r=Math.min;t.exports=function(t){return t>0?r(i(t),9007199254740991):0}},function(t,e,n){var i=n(147),r=Math.max,o=Math.min;t.exports=function(t,e){return(t=i(t))<0?r(t+e,0):o(t,e)}},function(t,e,n){var i=n(181)("keys"),r=n(182);t.exports=function(t){return i[t]||(i[t]=r(t))}},function(t,e,n){var i=n(153),r=n(152),o=r["__core-js_shared__"]||(r["__core-js_shared__"]={});(t.exports=function(t,e){return o[t]||(o[t]=void 0!==e?e:{})})("versions",[]).push({version:i.version,mode:n(150)?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},function(t,e){var n=0,i=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++n+i).toString(36))}},function(t,e){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(t,e,n){var i=n(152).document;t.exports=i&&i.documentElement},function(t,e,n){var i=n(157).f,r=n(166),o=n(186)("toStringTag");t.exports=function(t,e,n){t&&!r(t=n?t:t.prototype,o)&&i(t,o,{configurable:!0,value:e})}},function(t,e,n){var i=n(181)("wks"),r=n(182),o=n(152).Symbol,a="function"==typeof o;(t.exports=function(t){return i[t]||(i[t]=a&&o[t]||(a?o:r)("Symbol."+t))}).store=i},function(t,e,n){var i=n(166),r=n(188),o=n(180)("IE_PROTO"),a=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return t=r(t),i(t,o)?t[o]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?a:null}},function(t,e,n){var i=n(148);t.exports=function(t){return Object(i(t))}},function(t,e,n){"use strict";var i=n(154),r=n(151),o=n(188),a=n(190),s=n(191),u=n(178),l=n(192),c=n(193);r(r.S+r.F*!n(195)(function(t){Array.from(t)}),"Array",{from:function(t){var e,n,r,d,f=o(t),h="function"==typeof this?this:Array,p=arguments.length,v=p>1?arguments[1]:void 0,y=void 0!==v,m=0,g=c(f);if(y&&(v=i(v,p>2?arguments[2]:void 0,2)),null==g||h==Array&&s(g))for(n=new h(e=u(f.length));e>m;m++)l(n,m,y?v(f[m],m):f[m]);else for(d=g.call(f),n=new h;!(r=d.next()).done;m++)l(n,m,y?a(d,v,[r.value,m],!0):r.value);return n.length=m,n}})},function(t,e,n){var i=n(158);t.exports=function(t,e,n,r){try{return r?e(i(n)[0],n[1]):e(n)}catch(e){var o=t.return;throw void 0!==o&&i(o.call(t)),e}}},function(t,e,n){var i=n(168),r=n(186)("iterator"),o=Array.prototype;t.exports=function(t){return void 0!==t&&(i.Array===t||o[r]===t)}},function(t,e,n){"use strict";var i=n(157),r=n(165);t.exports=function(t,e,n){e in t?i.f(t,e,r(0,n)):t[e]=n}},function(t,e,n){var i=n(194),r=n(186)("iterator"),o=n(168);t.exports=n(153).getIteratorMethod=function(t){if(null!=t)return t[r]||t["@@iterator"]||o[i(t)]}},function(t,e,n){var i=n(176),r=n(186)("toStringTag"),o="Arguments"==i(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),r))?n:o?i(e):"Object"==(a=i(e))&&"function"==typeof e.callee?"Arguments":a}},function(t,e,n){var i=n(186)("iterator"),r=!1;try{var o=[7][i]();o.return=function(){r=!0},Array.from(o,function(){throw 2})}catch(t){}t.exports=function(t,e){if(!e&&!r)return!1;var n=!1;try{var o=[7],a=o[i]();a.next=function(){return{done:n=!0}},o[i]=function(){return a},t(o)}catch(t){}return n}},function(t,e,n){t.exports=n(197)},function(t,e){"use strict";e.__esModule=!0,e.default=function(t){return t&&t.__esModule?t:{default:t}}},function(t,e,n){t.exports=n(199)},function(t,e){"use strict";e.__esModule=!0,e.default=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}},function(t,e,n){"use strict";var i=n(201).default,r=n(211).default,o=n(240).default,a=n(245).default,s=n(196).default;Object.defineProperty(e,"__esModule",{value:!0});var u=s(n(247)),l=function(t){function e(t){var n=arguments.length<=1||void 0===arguments[1]?{}:arguments[1];a(this,e),i(Object.getPrototypeOf(e.prototype),"constructor",this).call(this,t),this.options=(0,u.default)({},n,{activeClass:"ssplayer-active"})}return r(e,t),o(e,[{key:"active",get:function(){return this.isActive},set:function(t){this.isActive=t,this.adapter.toggleClass(this.adaptedElement,this.options.activeClass,t)}}]),e}(s(n(248)).default);e.default=l,t.exports=e.default},function(t,e,n){"use strict";e.__esModule=!0;var i=o(n(202)),r=o(n(206));function o(t){return t&&t.__esModule?t:{default:t}}e.default=function t(e,n,o){null===e&&(e=Function.prototype);var a=(0,r.default)(e,n);if(void 0===a){var s=(0,i.default)(e);return null===s?void 0:t(s,n,o)}if("value"in a)return a.value;var u=a.get;return void 0!==u?u.call(o):void 0}},function(t,e,n){t.exports={default:n(203),__esModule:!0}},function(t,e,n){n(204),t.exports=n(153).Object.getPrototypeOf},function(t,e,n){var i=n(188),r=n(187);n(205)("getPrototypeOf",function(){return function(t){return r(i(t))}})},function(t,e,n){var i=n(151),r=n(153),o=n(162);t.exports=function(t,e){var n=(r.Object||{})[t]||Object[t],a={};a[t]=e(n),i(i.S+i.F*o(function(){n(1)}),"Object",a)}},function(t,e,n){t.exports={default:n(207),__esModule:!0}},function(t,e,n){n(208);var i=n(153).Object;t.exports=function(t,e){return i.getOwnPropertyDescriptor(t,e)}},function(t,e,n){var i=n(174),r=n(209).f;n(205)("getOwnPropertyDescriptor",function(){return function(t,e){return r(i(t),e)}})},function(t,e,n){var i=n(210),r=n(165),o=n(174),a=n(164),s=n(166),u=n(160),l=Object.getOwnPropertyDescriptor;e.f=n(161)?l:function(t,e){if(t=o(t),e=a(e,!0),u)try{return l(t,e)}catch(t){}if(s(t,e))return r(!i.f.call(t,e),t[e])}},function(t,e){e.f={}.propertyIsEnumerable},function(t,e,n){"use strict";e.__esModule=!0;var i=a(n(212)),r=a(n(216)),o=a(n(219));function a(t){return t&&t.__esModule?t:{default:t}}e.default=function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+(void 0===e?"undefined":(0,o.default)(e)));t.prototype=(0,r.default)(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(i.default?(0,i.default)(t,e):t.__proto__=e)}},function(t,e,n){t.exports={default:n(213),__esModule:!0}},function(t,e,n){n(214),t.exports=n(153).Object.setPrototypeOf},function(t,e,n){var i=n(151);i(i.S,"Object",{setPrototypeOf:n(215).set})},function(t,e,n){var i=n(159),r=n(158),o=function(t,e){if(r(t),!i(e)&&null!==e)throw TypeError(e+": can't set as prototype!")};t.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(t,e,i){try{(i=n(154)(Function.call,n(209).f(Object.prototype,"__proto__").set,2))(t,[]),e=!(t instanceof Array)}catch(t){e=!0}return function(t,n){return o(t,n),e?t.__proto__=n:i(t,n),t}}({},!1):void 0),check:o}},function(t,e,n){t.exports={default:n(217),__esModule:!0}},function(t,e,n){n(218);var i=n(153).Object;t.exports=function(t,e){return i.create(t,e)}},function(t,e,n){var i=n(151);i(i.S,"Object",{create:n(170)})},function(t,e,n){"use strict";e.__esModule=!0;var i=a(n(220)),r=a(n(227)),o="function"==typeof r.default&&"symbol"==typeof i.default?function(t){return typeof t}:function(t){return t&&"function"==typeof r.default&&t.constructor===r.default&&t!==r.default.prototype?"symbol":typeof t};function a(t){return t&&t.__esModule?t:{default:t}}e.default="function"==typeof r.default&&"symbol"===o(i.default)?function(t){return void 0===t?"undefined":o(t)}:function(t){return t&&"function"==typeof r.default&&t.constructor===r.default&&t!==r.default.prototype?"symbol":void 0===t?"undefined":o(t)}},function(t,e,n){t.exports={default:n(221),__esModule:!0}},function(t,e,n){n(145),n(222),t.exports=n(226).f("iterator")},function(t,e,n){n(223);for(var i=n(152),r=n(156),o=n(168),a=n(186)("toStringTag"),s="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),u=0;u<s.length;u++){var l=s[u],c=i[l],d=c&&c.prototype;d&&!d[a]&&r(d,a,l),o[l]=o.Array}},function(t,e,n){"use strict";var i=n(224),r=n(225),o=n(168),a=n(174);t.exports=n(149)(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,r(1)):r(0,"keys"==e?n:"values"==e?t[n]:[n,t[n]])},"values"),o.Arguments=o.Array,i("keys"),i("values"),i("entries")},function(t,e){t.exports=function(){}},function(t,e){t.exports=function(t,e){return{value:e,done:!!t}}},function(t,e,n){e.f=n(186)},function(t,e,n){t.exports={default:n(228),__esModule:!0}},function(t,e,n){n(229),n(237),n(238),n(239),t.exports=n(153).Symbol},function(t,e,n){"use strict";var i=n(152),r=n(166),o=n(161),a=n(151),s=n(167),u=n(230).KEY,l=n(162),c=n(181),d=n(185),f=n(182),h=n(186),p=n(226),v=n(231),y=n(232),m=n(234),g=n(158),b=n(159),_=n(188),T=n(174),E=n(164),w=n(165),k=n(170),S=n(235),O=n(209),C=n(233),x=n(157),P=n(172),A=O.f,j=x.f,M=S.f,I=i.Symbol,L=i.JSON,R=L&&L.stringify,D=h("_hidden"),N=h("toPrimitive"),B={}.propertyIsEnumerable,U=c("symbol-registry"),F=c("symbols"),V=c("op-symbols"),H=Object.prototype,z="function"==typeof I&&!!C.f,q=i.QObject,G=!q||!q.prototype||!q.prototype.findChild,W=o&&l(function(){return 7!=k(j({},"a",{get:function(){return j(this,"a",{value:7}).a}})).a})?function(t,e,n){var i=A(H,e);i&&delete H[e],j(t,e,n),i&&t!==H&&j(H,e,i)}:j,Y=function(t){var e=F[t]=k(I.prototype);return e._k=t,e},X=z&&"symbol"==typeof I.iterator?function(t){return"symbol"==typeof t}:function(t){return t instanceof I},$=function(t,e,n){return t===H&&$(V,e,n),g(t),e=E(e,!0),g(n),r(F,e)?(n.enumerable?(r(t,D)&&t[D][e]&&(t[D][e]=!1),n=k(n,{enumerable:w(0,!1)})):(r(t,D)||j(t,D,w(1,{})),t[D][e]=!0),W(t,e,n)):j(t,e,n)},K=function(t,e){g(t);for(var n,i=y(e=T(e)),r=0,o=i.length;o>r;)$(t,n=i[r++],e[n]);return t},J=function(t){var e=B.call(this,t=E(t,!0));return!(this===H&&r(F,t)&&!r(V,t))&&(!(e||!r(this,t)||!r(F,t)||r(this,D)&&this[D][t])||e)},Z=function(t,e){if(t=T(t),e=E(e,!0),t!==H||!r(F,e)||r(V,e)){var n=A(t,e);return!n||!r(F,e)||r(t,D)&&t[D][e]||(n.enumerable=!0),n}},Q=function(t){for(var e,n=M(T(t)),i=[],o=0;n.length>o;)r(F,e=n[o++])||e==D||e==u||i.push(e);return i},tt=function(t){for(var e,n=t===H,i=M(n?V:T(t)),o=[],a=0;i.length>a;)!r(F,e=i[a++])||n&&!r(H,e)||o.push(F[e]);return o};z||(s((I=function(){if(this instanceof I)throw TypeError("Symbol is not a constructor!");var t=f(arguments.length>0?arguments[0]:void 0),e=function(n){this===H&&e.call(V,n),r(this,D)&&r(this[D],t)&&(this[D][t]=!1),W(this,t,w(1,n))};return o&&G&&W(H,t,{configurable:!0,set:e}),Y(t)}).prototype,"toString",function(){return this._k}),O.f=Z,x.f=$,n(236).f=S.f=Q,n(210).f=J,C.f=tt,o&&!n(150)&&s(H,"propertyIsEnumerable",J,!0),p.f=function(t){return Y(h(t))}),a(a.G+a.W+a.F*!z,{Symbol:I});for(var et="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),nt=0;et.length>nt;)h(et[nt++]);for(var it=P(h.store),rt=0;it.length>rt;)v(it[rt++]);a(a.S+a.F*!z,"Symbol",{for:function(t){return r(U,t+="")?U[t]:U[t]=I(t)},keyFor:function(t){if(!X(t))throw TypeError(t+" is not a symbol!");for(var e in U)if(U[e]===t)return e},useSetter:function(){G=!0},useSimple:function(){G=!1}}),a(a.S+a.F*!z,"Object",{create:function(t,e){return void 0===e?k(t):K(k(t),e)},defineProperty:$,defineProperties:K,getOwnPropertyDescriptor:Z,getOwnPropertyNames:Q,getOwnPropertySymbols:tt});var ot=l(function(){C.f(1)});a(a.S+a.F*ot,"Object",{getOwnPropertySymbols:function(t){return C.f(_(t))}}),L&&a(a.S+a.F*(!z||l(function(){var t=I();return"[null]"!=R([t])||"{}"!=R({a:t})||"{}"!=R(Object(t))})),"JSON",{stringify:function(t){for(var e,n,i=[t],r=1;arguments.length>r;)i.push(arguments[r++]);if(n=e=i[1],(b(e)||void 0!==t)&&!X(t))return m(e)||(e=function(t,e){if("function"==typeof n&&(e=n.call(this,t,e)),!X(e))return e}),i[1]=e,R.apply(L,i)}}),I.prototype[N]||n(156)(I.prototype,N,I.prototype.valueOf),d(I,"Symbol"),d(Math,"Math",!0),d(i.JSON,"JSON",!0)},function(t,e,n){var i=n(182)("meta"),r=n(159),o=n(166),a=n(157).f,s=0,u=Object.isExtensible||function(){return!0},l=!n(162)(function(){return u(Object.preventExtensions({}))}),c=function(t){a(t,i,{value:{i:"O"+ ++s,w:{}}})},d=t.exports={KEY:i,NEED:!1,fastKey:function(t,e){if(!r(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!o(t,i)){if(!u(t))return"F";if(!e)return"E";c(t)}return t[i].i},getWeak:function(t,e){if(!o(t,i)){if(!u(t))return!0;if(!e)return!1;c(t)}return t[i].w},onFreeze:function(t){return l&&d.NEED&&u(t)&&!o(t,i)&&c(t),t}}},function(t,e,n){var i=n(152),r=n(153),o=n(150),a=n(226),s=n(157).f;t.exports=function(t){var e=r.Symbol||(r.Symbol=o?{}:i.Symbol||{});"_"==t.charAt(0)||t in e||s(e,t,{value:a.f(t)})}},function(t,e,n){var i=n(172),r=n(233),o=n(210);t.exports=function(t){var e=i(t),n=r.f;if(n)for(var a,s=n(t),u=o.f,l=0;s.length>l;)u.call(t,a=s[l++])&&e.push(a);return e}},function(t,e){e.f=Object.getOwnPropertySymbols},function(t,e,n){var i=n(176);t.exports=Array.isArray||function(t){return"Array"==i(t)}},function(t,e,n){var i=n(174),r=n(236).f,o={}.toString,a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];t.exports.f=function(t){return a&&"[object Window]"==o.call(t)?function(t){try{return r(t)}catch(t){return a.slice()}}(t):r(i(t))}},function(t,e,n){var i=n(173),r=n(183).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return i(t,r)}},function(t,e){},function(t,e,n){n(231)("asyncIterator")},function(t,e,n){n(231)("observable")},function(t,e,n){t.exports=n(241)},function(t,e,n){"use strict";e.__esModule=!0;var i,r=n(242),o=(i=r)&&i.__esModule?i:{default:i};e.default=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),(0,o.default)(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}()},function(t,e,n){t.exports={default:n(243),__esModule:!0}},function(t,e,n){n(244);var i=n(153).Object;t.exports=function(t,e,n){return i.defineProperty(t,e,n)}},function(t,e,n){var i=n(151);i(i.S+i.F*!n(161),"Object",{defineProperty:n(157).f})},function(t,e,n){t.exports=n(246)},function(t,e){"use strict";e.__esModule=!0,e.default=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}},function(t,e,n){(function(t,n){var i=200,r="__lodash_hash_undefined__",o=800,a=16,s=9007199254740991,u="[object Arguments]",l="[object AsyncFunction]",c="[object Function]",d="[object GeneratorFunction]",f="[object Null]",h="[object Object]",p="[object Proxy]",v="[object Undefined]",y=/^\[object .+?Constructor\]$/,m=/^(?:0|[1-9]\d*)$/,g={};g["[object Float32Array]"]=g["[object Float64Array]"]=g["[object Int8Array]"]=g["[object Int16Array]"]=g["[object Int32Array]"]=g["[object Uint8Array]"]=g["[object Uint8ClampedArray]"]=g["[object Uint16Array]"]=g["[object Uint32Array]"]=!0,g[u]=g["[object Array]"]=g["[object ArrayBuffer]"]=g["[object Boolean]"]=g["[object DataView]"]=g["[object Date]"]=g["[object Error]"]=g[c]=g["[object Map]"]=g["[object Number]"]=g[h]=g["[object RegExp]"]=g["[object Set]"]=g["[object String]"]=g["[object WeakMap]"]=!1;var b="object"==typeof t&&t&&t.Object===Object&&t,_="object"==typeof self&&self&&self.Object===Object&&self,T=b||_||Function("return this")(),E="object"==typeof e&&e&&!e.nodeType&&e,w=E&&"object"==typeof n&&n&&!n.nodeType&&n,k=w&&w.exports===E,S=k&&b.process,O=function(){try{var t=w&&w.require&&w.require("util").types;return t||S&&S.binding&&S.binding("util")}catch(t){}}(),C=O&&O.isTypedArray;function x(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}var P,A,j,M=Array.prototype,I=Function.prototype,L=Object.prototype,R=T["__core-js_shared__"],D=I.toString,N=L.hasOwnProperty,B=(P=/[^.]+$/.exec(R&&R.keys&&R.keys.IE_PROTO||""))?"Symbol(src)_1."+P:"",U=L.toString,F=D.call(Object),V=RegExp("^"+D.call(N).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),H=k?T.Buffer:void 0,z=T.Symbol,q=T.Uint8Array,G=H?H.allocUnsafe:void 0,W=(A=Object.getPrototypeOf,j=Object,function(t){return A(j(t))}),Y=Object.create,X=L.propertyIsEnumerable,$=M.splice,K=z?z.toStringTag:void 0,J=function(){try{var t=wt(Object,"defineProperty");return t({},"",{}),t}catch(t){}}(),Z=H?H.isBuffer:void 0,Q=Math.max,tt=Date.now,et=wt(T,"Map"),nt=wt(Object,"create"),it=function(){function t(){}return function(e){if(!Rt(e))return{};if(Y)return Y(e);t.prototype=e;var n=new t;return t.prototype=void 0,n}}();function rt(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var i=t[e];this.set(i[0],i[1])}}function ot(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var i=t[e];this.set(i[0],i[1])}}function at(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var i=t[e];this.set(i[0],i[1])}}function st(t){var e=this.__data__=new ot(t);this.size=e.size}function ut(t,e){var n=At(t),i=!n&&Pt(t),r=!n&&!i&&Mt(t),o=!n&&!i&&!r&&Nt(t),a=n||i||r||o,s=a?function(t,e){for(var n=-1,i=Array(t);++n<t;)i[n]=e(n);return i}(t.length,String):[],u=s.length;for(var l in t)!e&&!N.call(t,l)||a&&("length"==l||r&&("offset"==l||"parent"==l)||o&&("buffer"==l||"byteLength"==l||"byteOffset"==l)||kt(l,u))||s.push(l);return s}function lt(t,e,n){(void 0===n||xt(t[e],n))&&(void 0!==n||e in t)||ft(t,e,n)}function ct(t,e,n){var i=t[e];N.call(t,e)&&xt(i,n)&&(void 0!==n||e in t)||ft(t,e,n)}function dt(t,e){for(var n=t.length;n--;)if(xt(t[n][0],e))return n;return-1}function ft(t,e,n){"__proto__"==e&&J?J(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n}rt.prototype.clear=function(){this.__data__=nt?nt(null):{},this.size=0},rt.prototype.delete=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e},rt.prototype.get=function(t){var e=this.__data__;if(nt){var n=e[t];return n===r?void 0:n}return N.call(e,t)?e[t]:void 0},rt.prototype.has=function(t){var e=this.__data__;return nt?void 0!==e[t]:N.call(e,t)},rt.prototype.set=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=nt&&void 0===e?r:e,this},ot.prototype.clear=function(){this.__data__=[],this.size=0},ot.prototype.delete=function(t){var e=this.__data__,n=dt(e,t);return!(n<0||(n==e.length-1?e.pop():$.call(e,n,1),--this.size,0))},ot.prototype.get=function(t){var e=this.__data__,n=dt(e,t);return n<0?void 0:e[n][1]},ot.prototype.has=function(t){return dt(this.__data__,t)>-1},ot.prototype.set=function(t,e){var n=this.__data__,i=dt(n,t);return i<0?(++this.size,n.push([t,e])):n[i][1]=e,this},at.prototype.clear=function(){this.size=0,this.__data__={hash:new rt,map:new(et||ot),string:new rt}},at.prototype.delete=function(t){var e=Et(this,t).delete(t);return this.size-=e?1:0,e},at.prototype.get=function(t){return Et(this,t).get(t)},at.prototype.has=function(t){return Et(this,t).has(t)},at.prototype.set=function(t,e){var n=Et(this,t),i=n.size;return n.set(t,e),this.size+=n.size==i?0:1,this},st.prototype.clear=function(){this.__data__=new ot,this.size=0},st.prototype.delete=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n},st.prototype.get=function(t){return this.__data__.get(t)},st.prototype.has=function(t){return this.__data__.has(t)},st.prototype.set=function(t,e){var n=this.__data__;if(n instanceof ot){var r=n.__data__;if(!et||r.length<i-1)return r.push([t,e]),this.size=++n.size,this;n=this.__data__=new at(r)}return n.set(t,e),this.size=n.size,this};var ht,pt=function(t,e,n){for(var i=-1,r=Object(t),o=n(t),a=o.length;a--;){var s=o[ht?a:++i];if(!1===e(r[s],s,r))break}return t};function vt(t){return null==t?void 0===t?v:f:K&&K in Object(t)?function(t){var e=N.call(t,K),n=t[K];try{t[K]=void 0;var i=!0}catch(t){}var r=U.call(t);i&&(e?t[K]=n:delete t[K]);return r}(t):function(t){return U.call(t)}(t)}function yt(t){return Dt(t)&&vt(t)==u}function mt(t){return!(!Rt(t)||B&&B in t)&&(It(t)?V:y).test(function(t){if(null!=t){try{return D.call(t)}catch(t){}try{return t+""}catch(t){}}return""}(t))}function gt(t){if(!Rt(t))return function(t){var e=[];if(null!=t)for(var n in Object(t))e.push(n);return e}(t);var e=St(t),n=[];for(var i in t)("constructor"!=i||!e&&N.call(t,i))&&n.push(i);return n}function bt(t,e,n,i,r){t!==e&&pt(e,function(o,a){if(r||(r=new st),Rt(o))!function(t,e,n,i,r,o,a){var s=Ot(t,n),u=Ot(e,n),l=a.get(u);if(l)return void lt(t,n,l);var c=o?o(s,u,n+"",t,e,a):void 0,d=void 0===c;if(d){var f=At(u),p=!f&&Mt(u),v=!f&&!p&&Nt(u);c=u,f||p||v?At(s)?c=s:Dt(_=s)&&jt(_)?c=function(t,e){var n=-1,i=t.length;e||(e=Array(i));for(;++n<i;)e[n]=t[n];return e}(s):p?(d=!1,c=function(t,e){if(e)return t.slice();var n=t.length,i=G?G(n):new t.constructor(n);return t.copy(i),i}(u,!0)):v?(d=!1,y=u,m=!0?(g=y.buffer,b=new g.constructor(g.byteLength),new q(b).set(new q(g)),b):y.buffer,c=new y.constructor(m,y.byteOffset,y.length)):c=[]:function(t){if(!Dt(t)||vt(t)!=h)return!1;var e=W(t);if(null===e)return!0;var n=N.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&D.call(n)==F}(u)||Pt(u)?(c=s,Pt(s)?c=function(t){return function(t,e,n,i){var r=!n;n||(n={});var o=-1,a=e.length;for(;++o<a;){var s=e[o],u=i?i(n[s],t[s],s,n,t):void 0;void 0===u&&(u=t[s]),r?ft(n,s,u):ct(n,s,u)}return n}(t,Ut(t))}(s):Rt(s)&&!It(s)||(c=function(t){return"function"!=typeof t.constructor||St(t)?{}:it(W(t))}(u))):d=!1}var y,m,g,b;var _;d&&(a.set(u,c),r(c,u,i,o,a),a.delete(u));lt(t,n,c)}(t,e,a,n,bt,i,r);else{var s=i?i(Ot(t,a),o,a+"",t,e,r):void 0;void 0===s&&(s=o),lt(t,a,s)}},Ut)}function _t(t,e){return Ct(function(t,e,n){return e=Q(void 0===e?t.length-1:e,0),function(){for(var i=arguments,r=-1,o=Q(i.length-e,0),a=Array(o);++r<o;)a[r]=i[e+r];r=-1;for(var s=Array(e+1);++r<e;)s[r]=i[r];return s[e]=n(a),x(t,this,s)}}(t,e,Ht),t+"")}function Tt(t,e,n,i,r,o){return Rt(t)&&Rt(e)&&(o.set(e,t),bt(t,e,void 0,Tt,o),o.delete(e)),t}function Et(t,e){var n,i,r=t.__data__;return("string"==(i=typeof(n=e))||"number"==i||"symbol"==i||"boolean"==i?"__proto__"!==n:null===n)?r["string"==typeof e?"string":"hash"]:r.map}function wt(t,e){var n=function(t,e){return null==t?void 0:t[e]}(t,e);return mt(n)?n:void 0}function kt(t,e){var n=typeof t;return!!(e=null==e?s:e)&&("number"==n||"symbol"!=n&&m.test(t))&&t>-1&&t%1==0&&t<e}function St(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||L)}function Ot(t,e){if(("constructor"!==e||"function"!=typeof t[e])&&"__proto__"!=e)return t[e]}var Ct=function(t){var e=0,n=0;return function(){var i=tt(),r=a-(i-n);if(n=i,r>0){if(++e>=o)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}(J?function(t,e){return J(t,"toString",{configurable:!0,enumerable:!1,value:(n=e,function(){return n}),writable:!0});var n}:Ht);function xt(t,e){return t===e||t!=t&&e!=e}var Pt=yt(function(){return arguments}())?yt:function(t){return Dt(t)&&N.call(t,"callee")&&!X.call(t,"callee")},At=Array.isArray;function jt(t){return null!=t&&Lt(t.length)&&!It(t)}var Mt=Z||function(){return!1};function It(t){if(!Rt(t))return!1;var e=vt(t);return e==c||e==d||e==l||e==p}function Lt(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=s}function Rt(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}function Dt(t){return null!=t&&"object"==typeof t}var Nt=C?function(t){return function(e){return t(e)}}(C):function(t){return Dt(t)&&Lt(t.length)&&!!g[vt(t)]};var Bt=_t(function(t){return t.push(void 0,Tt),x(Vt,void 0,t)});function Ut(t){return jt(t)?ut(t,!0):gt(t)}var Ft,Vt=(Ft=function(t,e,n,i){bt(t,e,n,i)},_t(function(t,e){var n=-1,i=e.length,r=i>1?e[i-1]:void 0,o=i>2?e[2]:void 0;for(r=Ft.length>3&&"function"==typeof r?(i--,r):void 0,o&&function(t,e,n){if(!Rt(n))return!1;var i=typeof e;return!!("number"==i?jt(n)&&kt(e,n.length):"string"==i&&e in n)&&xt(n[e],t)}(e[0],e[1],o)&&(r=i<3?void 0:r,i=1),t=Object(t);++n<i;){var a=e[n];a&&Ft(t,a,n,r)}return t}));function Ht(t){return t}n.exports=Bt}).call(e,function(){return this}(),n(45)(t))},function(t,e,n){"use strict";var i=n(201).default,r=n(211).default,o=n(240).default,a=n(245).default,s=n(196).default;Object.defineProperty(e,"__esModule",{value:!0});var u=s(n(249)),l=function(t){function e(t){a(this,e),i(Object.getPrototypeOf(e.prototype),"constructor",this).call(this),this.element=t,this.adapter=this.constructor.createDomAdapter(),this.adaptedElement=this.adapter.adapt(t),this.hideClass="ssplayer-component-hide"}return r(e,t),o(e,[{key:"hide",value:function(){this.adaptedElement.addClass(this.hideClass)}},{key:"show",value:function(){this.adaptedElement.removeClass(this.hideClass)}}],[{key:"createDomAdapter",value:function(){return new u.default}}]),e}(s(n(294)).default);e.default=l,t.exports=e.default},function(t,e,n){"use strict";var i=n(201).default,r=n(211).default,o=n(245).default,a=n(196).default;Object.defineProperty(e,"__esModule",{value:!0});var s=a(n(250)),u=a(n(290)),l=function(t){function e(){o(this,e),i(Object.getPrototypeOf(e.prototype),"constructor",this).call(this,u.default)}return r(e,t),e}(s.default);e.default=l,t.exports=e.default},function(t,e,n){"use strict";var i=n(201).default,r=n(211).default,o=n(240).default,a=n(245).default,s=n(251).default,u=n(259).default,l=n(196).default;Object.defineProperty(e,"__esModule",{value:!0});var c=n(261),d=l(n(284)),f=l(n(289)),h=c.fn.imperative(Array.prototype.splice),p=function(t){function e(t){a(this,e),i(Object.getPrototypeOf(e.prototype),"constructor",this).call(this),this.$=t}return r(e,t),o(e,[{key:"adapt",value:function(t){return this.$(t)}},{key:"adaptAll",value:function(t){return this.$(t)}},{key:"query",value:function(t){return this.$(this.$(t)[0])}},{key:"queryAll",value:function(t){return this.$(t)}},{key:"find",value:function(t,e){return this.$(t.find(e)[0])}},{key:"filter",value:function(t,e,n){return n?t.not(e):t.filter(e)}},{key:"forEach",value:function(t,e){this.$.each(t,function(t,n){e(n,t)})}}]),e}(f.default);e.default=p;p.prototype=(0,d.default)({findAll:"find",children:"children",one:"one",getAttr:"attr",setAttr:"attr",removeAttr:"removeAttr",getCss:"css",setCss:"css",getData:"data",setData:"data",getHtml:"html",setHtml:"html",getText:"text",setText:"text",restore:"get",addClass:"addClass",removeClass:"removeClass",toggleClass:"toggleClass",hasClass:"hasClass",wrap:"wrap",wrapAll:"wrapAll",getHeight:"height",setHeight:"height",getWidth:"width",setWidth:"width"}).reduce(function(t,e){var n=s(e,2),i=n[0],r=n[1];return t[i]=function(t){return t[r].apply(t,u(h(arguments,1)))},t},p.prototype),t.exports=e.default},function(t,e,n){t.exports=n(252)},function(t,e,n){"use strict";e.__esModule=!0;var i=o(n(253)),r=o(n(256));function o(t){return t&&t.__esModule?t:{default:t}}e.default=function(){return function(t,e){if(Array.isArray(t))return t;if((0,i.default)(Object(t)))return function(t,e){var n=[],i=!0,o=!1,a=void 0;try{for(var s,u=(0,r.default)(t);!(i=(s=u.next()).done)&&(n.push(s.value),!e||n.length!==e);i=!0);}catch(t){o=!0,a=t}finally{try{!i&&u.return&&u.return()}finally{if(o)throw a}}return n}(t,e);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}()},function(t,e,n){t.exports={default:n(254),__esModule:!0}},function(t,e,n){n(222),n(145),t.exports=n(255)},function(t,e,n){var i=n(194),r=n(186)("iterator"),o=n(168);t.exports=n(153).isIterable=function(t){var e=Object(t);return void 0!==e[r]||"@@iterator"in e||o.hasOwnProperty(i(e))}},function(t,e,n){t.exports={default:n(257),__esModule:!0}},function(t,e,n){n(222),n(145),t.exports=n(258)},function(t,e,n){var i=n(158),r=n(193);t.exports=n(153).getIterator=function(t){var e=r(t);if("function"!=typeof e)throw TypeError(t+" is not iterable!");return i(e.call(t))}},function(t,e,n){t.exports=n(260)},function(t,e,n){"use strict";e.__esModule=!0;var i,r=n(143),o=(i=r)&&i.__esModule?i:{default:i};e.default=function(t){if(Array.isArray(t)){for(var e=0,n=Array(t.length);e<t.length;e++)n[e]=t[e];return n}return(0,o.default)(t)}},function(t,e,n){"use strict";function i(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}Object.defineProperty(e,"__esModule",{value:!0});var r=i(n(262)),o=i(n(272)),a=i(n(275)),s=i(n(276)),u=i(n(277)),l=i(n(279)),c=i(n(278)),d=i(n(281)),f=i(n(282)),h=i(n(283));e.default={dom:r,events:o,fn:a,lang:s,li:u,net:l,string:c,svg:d,tracking:f,url:h},t.exports=e.default},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.createContentLoadedPromise=a;var i,r=n(263),o=(i=r)&&i.__esModule?i:{default:i};function a(){var t=arguments.length<=0||void 0===arguments[0]?document:arguments[0];return new o.default(function(e){"interactive"===t.readyState||"complete"===t.readyState?e(t):t.addEventListener("DOMContentLoaded",function(){return e(t)})})}var s=a(document);e.onContentLoaded=s},function(t,e,n){"use strict";t.exports=n(264),n(269),n(270),n(271)},function(t,e,n){"use strict";var i=n(265);function r(t,e,n){var i=!1;try{t(function(t){i||(i=!0,e(t))},function(t){i||(i=!0,n(t))})}catch(t){if(i)return;i=!0,n(t)}}t.exports=function(t){if("object"!=typeof this)throw new TypeError("Promises must be constructed via new");if("function"!=typeof t)throw new TypeError("not a function");var e=null,n=null,o=[],a=this;function s(t){null!==e?i(function(){var i=e?t.onFulfilled:t.onRejected;if(null!==i){var r;try{r=i(n)}catch(e){return void t.reject(e)}t.resolve(r)}else(e?t.resolve:t.reject)(n)}):o.push(t)}function u(t){e=!1,n=t,l()}function l(){for(var t=0,e=o.length;t<e;t++)s(o[t]);o=null}this.then=function(t,e){return new a.constructor(function(n,i){s(new function(t,e,n,i){this.onFulfilled="function"==typeof t?t:null,this.onRejected="function"==typeof e?e:null,this.resolve=n,this.reject=i}(t,e,n,i))})},r(t,function t(i){try{if(i===a)throw new TypeError("A promise cannot be resolved with itself.");if(i&&("object"==typeof i||"function"==typeof i)){var o=i.then;if("function"==typeof o)return void r(o.bind(i),t,u)}e=!0,n=i,l()}catch(t){u(t)}},u)}},function(t,e,n){(function(e,n){var i={task:void 0,next:null},r=i,o=!1,a=void 0,s=!1;function u(){for(;i.next;){var t=(i=i.next).task;i.task=void 0;var e=i.domain;e&&(i.domain=void 0,e.enter());try{t()}catch(t){if(s)throw e&&e.exit(),setTimeout(u,0),e&&e.enter(),t;setTimeout(function(){throw t},0)}e&&e.exit()}o=!1}if(void 0!==e&&e.nextTick)s=!0,a=function(){e.nextTick(u)};else if("function"==typeof n)a="undefined"!=typeof window?n.bind(window,u):function(){n(u)};else if("undefined"!=typeof MessageChannel){var l=new MessageChannel;l.port1.onmessage=u,a=function(){l.port2.postMessage(0)}}else a=function(){setTimeout(u,0)};t.exports=function(t){r=r.next={task:t,domain:s&&e.domain,next:null},o||(o=!0,a())}}).call(e,n(266),n(267).setImmediate)},function(t,e){var n,i,r=t.exports={};function o(){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===o||!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:o}catch(t){n=o}try{i="function"==typeof clearTimeout?clearTimeout:a}catch(t){i=a}}();var u,l=[],c=!1,d=-1;function f(){c&&u&&(c=!1,u.length?l=u.concat(l):d=-1,l.length&&h())}function h(){if(!c){var t=s(f);c=!0;for(var e=l.length;e;){for(u=l,l=[];++d<e;)u&&u[d].run();d=-1,e=l.length}u=null,c=!1,function(t){if(i===clearTimeout)return clearTimeout(t);if((i===a||!i)&&clearTimeout)return i=clearTimeout,clearTimeout(t);try{i(t)}catch(e){try{return i.call(null,t)}catch(e){return i.call(this,t)}}}(t)}}function p(t,e){this.fun=t,this.array=e}function v(){}r.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];l.push(new p(t,e)),1!==l.length||c||s(h)},p.prototype.run=function(){this.fun.apply(null,this.array)},r.title="browser",r.browser=!0,r.env={},r.argv=[],r.version="",r.versions={},r.on=v,r.addListener=v,r.once=v,r.off=v,r.removeListener=v,r.removeAllListeners=v,r.emit=v,r.prependListener=v,r.prependOnceListener=v,r.listeners=function(t){return[]},r.binding=function(t){throw new Error("process.binding is not supported")},r.cwd=function(){return"/"},r.chdir=function(t){throw new Error("process.chdir is not supported")},r.umask=function(){return 0}},function(t,e,n){(function(t){var i=void 0!==t&&t||"undefined"!=typeof self&&self||window,r=Function.prototype.apply;function o(t,e){this._id=t,this._clearFn=e}e.setTimeout=function(){return new o(r.call(setTimeout,i,arguments),clearTimeout)},e.setInterval=function(){return new o(r.call(setInterval,i,arguments),clearInterval)},e.clearTimeout=e.clearInterval=function(t){t&&t.close()},o.prototype.unref=o.prototype.ref=function(){},o.prototype.close=function(){this._clearFn.call(i,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(268),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(e,function(){return this}())},function(t,e,n){(function(t,e){!function(t,n){"use strict";if(!t.setImmediate){var i,r,o,a,s,u=1,l={},c=!1,d=t.document,f=Object.getPrototypeOf&&Object.getPrototypeOf(t);f=f&&f.setTimeout?f:t,"[object process]"==={}.toString.call(t.process)?i=function(t){e.nextTick(function(){p(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?((o=new MessageChannel).port1.onmessage=function(t){p(t.data)},i=function(t){o.port2.postMessage(t)}):d&&"onreadystatechange"in d.createElement("script")?(r=d.documentElement,i=function(t){var e=d.createElement("script");e.onreadystatechange=function(){p(t),e.onreadystatechange=null,r.removeChild(e),e=null},r.appendChild(e)}):i=function(t){setTimeout(p,0,t)}:(a="setImmediate$"+Math.random()+"$",s=function(e){e.source===t&&"string"==typeof e.data&&0===e.data.indexOf(a)&&p(+e.data.slice(a.length))},t.addEventListener?t.addEventListener("message",s,!1):t.attachEvent("onmessage",s),i=function(e){t.postMessage(a+e,"*")}),f.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 r={callback:t,args:e};return l[u]=r,i(u),u++},f.clearImmediate=h}function h(t){delete l[t]}function p(t){if(c)setTimeout(p,0,t);else{var e=l[t];if(e){c=!0;try{!function(t){var e=t.callback,i=t.args;switch(i.length){case 0:e();break;case 1:e(i[0]);break;case 2:e(i[0],i[1]);break;case 3:e(i[0],i[1],i[2]);break;default:e.apply(n,i)}}(e)}finally{h(t),c=!1}}}}}("undefined"==typeof self?void 0===t?this:t:self)}).call(e,function(){return this}(),n(266))},function(t,e,n){"use strict";var i=n(264),r=n(265);t.exports=i,i.prototype.done=function(t,e){(arguments.length?this.then.apply(this,arguments):this).then(null,function(t){r(function(){throw t})})}},function(t,e,n){"use strict";var i=n(264),r=n(265);function o(t){this.then=function(e){return"function"!=typeof e?this:new i(function(n,i){r(function(){try{n(e(t))}catch(t){i(t)}})})}}t.exports=i,o.prototype=i.prototype;var a=new o(!0),s=new o(!1),u=new o(null),l=new o(void 0),c=new o(0),d=new o("");i.resolve=function(t){if(t instanceof i)return t;if(null===t)return u;if(void 0===t)return l;if(!0===t)return a;if(!1===t)return s;if(0===t)return c;if(""===t)return d;if("object"==typeof t||"function"==typeof t)try{var e=t.then;if("function"==typeof e)return new i(e.bind(t))}catch(t){return new i(function(e,n){n(t)})}return new o(t)},i.all=function(t){var e=Array.prototype.slice.call(t);return new i(function(t,n){if(0===e.length)return t([]);var i=e.length;function r(o,a){try{if(a&&("object"==typeof a||"function"==typeof a)){var s=a.then;if("function"==typeof s)return void s.call(a,function(t){r(o,t)},n)}e[o]=a,0==--i&&t(e)}catch(t){n(t)}}for(var o=0;o<e.length;o++)r(o,e[o])})},i.reject=function(t){return new i(function(e,n){n(t)})},i.race=function(t){return new i(function(e,n){t.forEach(function(t){i.resolve(t).then(e,n)})})},i.prototype.catch=function(t){return this.then(null,t)}},function(t,e,n){"use strict";var i=n(264),r=n(265);t.exports=i,i.denodeify=function(t,e){return e=e||1/0,function(){var n=this,r=Array.prototype.slice.call(arguments);return new i(function(i,o){for(;r.length&&r.length>e;)r.pop();r.push(function(t,e){t?o(t):i(e)});var a=t.apply(n,r);!a||"object"!=typeof a&&"function"!=typeof a||"function"!=typeof a.then||i(a)})}},i.nodeify=function(t){return function(){var e=Array.prototype.slice.call(arguments),n="function"==typeof e[e.length-1]?e.pop():null,o=this;try{return t.apply(this,arguments).nodeify(n,o)}catch(t){if(null==n)return new i(function(e,n){n(t)});r(function(){n.call(o,t)})}}},i.prototype.nodeify=function(t,e){if("function"!=typeof t)return this;this.then(function(n){r(function(){t.call(e,null,n)})},function(n){r(function(){t.call(e,n)})})}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.mixin=function(){var t=arguments.length<=0||void 0===arguments[0]?{}:arguments[0];return(0,a.mixin)(t,o.default)};var i,r=n(273),o=(i=r)&&i.__esModule?i:{default:i},a=n(274)},function(t,e,n){"use strict";var i=Object.prototype.hasOwnProperty,r="function"!=typeof Object.create&&"~";function o(t,e,n){this.fn=t,this.context=e,this.once=n||!1}function a(){}a.prototype._events=void 0,a.prototype.eventNames=function(){var t,e=this._events,n=[];if(!e)return n;for(t in e)i.call(e,t)&&n.push(r?t.slice(1):t);return Object.getOwnPropertySymbols?n.concat(Object.getOwnPropertySymbols(e)):n},a.prototype.listeners=function(t,e){var n=r?r+t:t,i=this._events&&this._events[n];if(e)return!!i;if(!i)return[];if(i.fn)return[i.fn];for(var o=0,a=i.length,s=new Array(a);o<a;o++)s[o]=i[o].fn;return s},a.prototype.emit=function(t,e,n,i,o,a){var s=r?r+t:t;if(!this._events||!this._events[s])return!1;var u,l,c=this._events[s],d=arguments.length;if("function"==typeof c.fn){switch(c.once&&this.removeListener(t,c.fn,void 0,!0),d){case 1:return c.fn.call(c.context),!0;case 2:return c.fn.call(c.context,e),!0;case 3:return c.fn.call(c.context,e,n),!0;case 4:return c.fn.call(c.context,e,n,i),!0;case 5:return c.fn.call(c.context,e,n,i,o),!0;case 6:return c.fn.call(c.context,e,n,i,o,a),!0}for(l=1,u=new Array(d-1);l<d;l++)u[l-1]=arguments[l];c.fn.apply(c.context,u)}else{var f,h=c.length;for(l=0;l<h;l++)switch(c[l].once&&this.removeListener(t,c[l].fn,void 0,!0),d){case 1:c[l].fn.call(c[l].context);break;case 2:c[l].fn.call(c[l].context,e);break;case 3:c[l].fn.call(c[l].context,e,n);break;default:if(!u)for(f=1,u=new Array(d-1);f<d;f++)u[f-1]=arguments[f];c[l].fn.apply(c[l].context,u)}}return!0},a.prototype.on=function(t,e,n){var i=new o(e,n||this),a=r?r+t:t;return this._events||(this._events=r?{}:Object.create(null)),this._events[a]?this._events[a].fn?this._events[a]=[this._events[a],i]:this._events[a].push(i):this._events[a]=i,this},a.prototype.once=function(t,e,n){var i=new o(e,n||this,!0),a=r?r+t:t;return this._events||(this._events=r?{}:Object.create(null)),this._events[a]?this._events[a].fn?this._events[a]=[this._events[a],i]:this._events[a].push(i):this._events[a]=i,this},a.prototype.removeListener=function(t,e,n,i){var o=r?r+t:t;if(!this._events||!this._events[o])return this;var a=this._events[o],s=[];if(e)if(a.fn)(a.fn!==e||i&&!a.once||n&&a.context!==n)&&s.push(a);else for(var u=0,l=a.length;u<l;u++)(a[u].fn!==e||i&&!a[u].once||n&&a[u].context!==n)&&s.push(a[u]);return s.length?this._events[o]=1===s.length?s[0]:s:delete this._events[o],this},a.prototype.removeAllListeners=function(t){return this._events?(t?delete this._events[r?r+t:t]:this._events=r?{}:Object.create(null),this):this},a.prototype.off=a.prototype.removeListener,a.prototype.addListener=a.prototype.on,a.prototype.setMaxListeners=function(){return this},a.prefixed=r,t.exports=a},function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(){return function(t,e){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return function(t,e){var n=[],i=!0,r=!1,o=void 0;try{for(var a,s=t[Symbol.iterator]();!(i=(a=s.next()).done)&&(n.push(a.value),!e||n.length!==e);i=!0);}catch(t){r=!0,o=t}finally{try{!i&&s.return&&s.return()}finally{if(r)throw o}}return n}(t,e);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),i=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}();e.mixin=function(){for(var t=arguments.length<=0||void 0===arguments[0]?{}:arguments[0],e=arguments.length<=1||void 0===arguments[1]?r:arguments[1],n=arguments.length,i=Array(n>2?n-2:0),o=2;o<n;o++)i[o-2]=arguments[o];return r.mixin.apply(r,[t,e].concat(i))};var r=e.Mixin=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t)}return i(t,null,[{key:"mixin",value:function(){for(var t=arguments.length<=0||void 0===arguments[0]?{}:arguments[0],e=arguments.length<=1||void 0===arguments[1]?this:arguments[1],i=arguments.length,r=Array(i>2?i-2:0),o=2;o<i;o++)r[o-2]=arguments[o];var a,s=new(Function.prototype.bind.apply(e,[null].concat(r)));return(a=e.prototype,Object.getOwnPropertyNames(a).map(function(t){return[t,a[t]]})).filter(function(t){var e=n(t,2),i=e[0];return"function"==typeof e[1]&&"constructor"!==i}).forEach(function(e){var i=n(e,2),r=i[0],o=i[1];return t[r]=o.bind(s)}),t}}]),t}()},function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.imperative=function(t){return function(){return n.apply(t,arguments)}};var n=Function.prototype.call},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=function(){return function(t,e){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return function(t,e){var n=[],i=!0,r=!1,o=void 0;try{for(var a,s=t[Symbol.iterator]();!(i=(a=s.next()).done)&&(n.push(a.value),!e||n.length!==e);i=!0);}catch(t){r=!0,o=t}finally{try{!i&&s.return&&s.return()}finally{if(r)throw o}}return n}(t,e);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}();e.isDescendantClass=function(t,e){return Boolean(e&&t&&t.prototype&&t.prototype instanceof e)},e.assign=function(t){for(var e=arguments.length,n=Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];return n.reduce(function(t,e){return s(e).forEach(function(e){var n=i(e,2),r=n[0],o=n[1];t[r]=o}),t},t)},e.defaults=function(t){for(var e=arguments.length,n=Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];return n.reduce(function(t,e){return s(e).forEach(function(e){var n=i(e,2),r=n[0],a=n[1];o(t,r)||(t[r]=a)}),t},t)},e.entries=s;var r=n(275);var o=(0,r.imperative)(Object.prototype.hasOwnProperty);var a=(0,r.imperative)(Array.prototype.slice);function s(t){return Object.keys(t).map(function(e){return[e,t[e]]})}e.toArray=function(t){return a(t)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getUrn=function(t,e){if(!t)return null;var n=r[t];n||(n="slideShare"+(0,i.capitalize)(t));return[o,n,e].join(":")},e.getPageKey=function(){var t=arguments.length<=0||void 0===arguments[0]?document.body:arguments[0],e=/^pagekey-(.*)/.exec(t.id);if(e&&e[1])return e[1]};var i=n(278),r={clip:"slideShareClip",clipboard:"slideShareClipboard",guest:"slideShareGuest",slideshow:"slideShareSlideshow",user:"slideShareUser"},o="urn:li"},function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.capitalize=function(t){if("string"==typeof t)return t.charAt(0).toUpperCase()+t.substring(1);return""}},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0}),e.request=a,e.requestXml=function(){return a.apply(void 0,arguments).then(function(t){return t.responseXML})};var r=i(n(263)),o=i(n(280));function a(t){var e=arguments.length<=1||void 0===arguments[1]?{}:arguments[1],n=e.method,i=void 0===n?"get":n,a=e.body,s=e.headers,u=void 0===s?{}:s,l=new XMLHttpRequest;l.open(i,t,!0),o.default.create(u).addTo(l);var c=new r.default(function(t,e){l.addEventListener("readystatechange",function(){4===this.readyState&&(this.status>=200&&this.status<400?t(this):e(this))})});return l.send(a),c}e.Headers=o.default},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=function(){return function(t,e){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return function(t,e){var n=[],i=!0,r=!1,o=void 0;try{for(var a,s=t[Symbol.iterator]();!(i=(a=s.next()).done)&&(n.push(a.value),!e||n.length!==e);i=!0);}catch(t){r=!0,o=t}finally{try{!i&&s.return&&s.return()}finally{if(r)throw o}}return n}(t,e);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),r=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}();var o=n(276),a=function(t){return t.toLowerCase()},s=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this._values=Object.create(null)}return r(t,[{key:"append",value:function(t,e){var n=a(t);this._values[n]||(this._values[n]=[]),this._values[n].push(e)}},{key:"keys",value:function(){return Object.keys(this._values)}},{key:"getAll",value:function(t){var e=a(t);return this._values[e].slice(0)}},{key:"entries",value:function(){var t=this;return this.keys().reduce(function(e,n){return t.getAll(n).forEach(function(t){return e.push([n,t])}),e},[])}},{key:"addTo",value:function(t){this.entries().forEach(function(e){var n=i(e,2),r=n[0],o=n[1];return t.setRequestHeader(r,o)})}},{key:"nameToKey",value:function(t){return t.toLowerCase()}}],[{key:"create",value:function(e){return(e instanceof t?e.entries():(0,o.entries)(e)).reduce(function(t,e){var n=i(e,2),r=n[0],o=n[1];return t.append(r,o),t},new t)}}]),t}();e.default=s,t.exports=e.default},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getSvgUrls=u,e.injectSvg=l,e.loadSvgs=function(){var t=arguments.length<=0||void 0===arguments[0]?document:arguments[0],e=arguments.length<=1||void 0===arguments[1]?document.body:arguments[1],n=u(t).map(function(t){return(0,s.requestXml)(t).then(function(t){return l(t,e)})});return a.default.all(n)};var i,r=n(276),o=n(263),a=(i=o)&&i.__esModule?i:{default:i},s=n(279);function u(){var t=arguments.length<=0||void 0===arguments[0]?document:arguments[0],e=arguments.length<=1||void 0===arguments[1]?"ss-svg-icons":arguments[1];return(0,r.toArray)(t.querySelectorAll('meta[name="'+e+'"]')).map(function(t){return t.getAttribute("content")})}function l(t){var e=arguments.length<=1||void 0===arguments[1]?document.body:arguments[1],n=t.firstChild;n.style.display="none",e.insertBefore(n,e.firstChild)}},function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getGlobalTrackingUrl=function(){var t=document.querySelector('meta[name="'+n+'"]');return t?t.getAttribute("content"):null};var n="globalTrackingUrl"},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getTrackingCode=function(t){if("string"!=typeof t)throw new TypeError("link argument must be a string; found "+typeof t);var e=o.default.parse(t,!0).query;if(e){var n=e.trk;if(n)return Array.isArray(n)?n[n.length-1]:n}return null};var i,r=n(134),o=(i=r)&&i.__esModule?i:{default:i}},function(t,e,n){var i=n(285);t.exports=function(t){var e;t=function(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}(e=t)?e:Object(e);for(var n=-1,r=i(t),o=r.length,a=Array(o);++n<o;){var s=r[n];a[n]=[s,t[s]]}return a}},function(t,e,n){var i=n(286),r=n(287),o=n(288),a=/^\d+$/,s=Object.prototype.hasOwnProperty,u=i(Object,"keys"),l=9007199254740991;var c,d=(c="length",function(t){return null==t?void 0:t[c]});function f(t,e){return t="number"==typeof t||a.test(t)?+t:-1,e=null==e?l:e,t>-1&&t%1==0&&t<e}function h(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=l}function p(t){for(var e=function(t){if(null==t)return[];v(t)||(t=Object(t));var e=t.length;e=e&&h(e)&&(o(t)||r(t))&&e||0;var n=t.constructor,i=-1,a="function"==typeof n&&n.prototype===t,u=Array(e),l=e>0;for(;++i<e;)u[i]=i+"";for(var c in t)l&&f(c,e)||"constructor"==c&&(a||!s.call(t,c))||u.push(c);return u}(t),n=e.length,i=n&&t.length,a=!!i&&h(i)&&(o(t)||r(t)),u=-1,l=[];++u<n;){var c=e[u];(a&&f(c,i)||s.call(t,c))&&l.push(c)}return l}function v(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}var y=u?function(t){var e,n=null==t?void 0:t.constructor;return"function"==typeof n&&n.prototype===t||"function"!=typeof t&&(null!=(e=t)&&h(d(e)))?p(t):v(t)?u(t):[]}:p;t.exports=y},function(t,e){var n="[object Function]",i=/^\[object .+?Constructor\]$/;var r=Object.prototype,o=Function.prototype.toString,a=r.hasOwnProperty,s=r.toString,u=RegExp("^"+o.call(a).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");t.exports=function(t,e){var r=null==t?void 0:t[e];return function(t){return null!=t&&(function(t){return function(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}(t)&&s.call(t)==n}(t)?u.test(o.call(t)):function(t){return!!t&&"object"==typeof t}(t)&&i.test(t))}(r)?r:void 0}},function(t,e){var n=9007199254740991,i="[object Arguments]",r="[object Function]",o="[object GeneratorFunction]",a=Object.prototype,s=a.hasOwnProperty,u=a.toString,l=a.propertyIsEnumerable;t.exports=function(t){return function(t){return function(t){return!!t&&"object"==typeof t}(t)&&function(t){return null!=t&&function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=n}(t.length)&&!function(t){var e=function(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}(t)?u.call(t):"";return e==r||e==o}(t)}(t)}(t)&&s.call(t,"callee")&&(!l.call(t,"callee")||u.call(t)==i)}},function(t,e){var n="[object Function]",i=/^\[object .+?Constructor\]$/;function r(t){return!!t&&"object"==typeof t}var o,a,s=Object.prototype,u=Function.prototype.toString,l=s.hasOwnProperty,c=s.toString,d=RegExp("^"+u.call(l).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),f=(o=Array,function(t){return null!=t&&(function(t){return function(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}(t)&&c.call(t)==n}(t)?d.test(u.call(t)):r(t)&&i.test(t))}(a=null==o?void 0:o["isArray"])?a:void 0),h=9007199254740991;var p=f||function(t){return r(t)&&function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=h}(t.length)&&"[object Array]"==c.call(t)};t.exports=p},function(t,e,n){"use strict";var i=n(245).default;Object.defineProperty(e,"__esModule",{value:!0});e.default=function t(){i(this,t),this.components={}},t.exports=e.default},function(t,e,n){var i,r,o,a=n(291).default;
/*!
	 * jQuery JavaScript Library v2.1.1 -ajax,-ajax/jsonp,-ajax/load,-ajax/parseJSON,-ajax/parseXML,-ajax/script,-ajax/var/nonce,-ajax/var/rquery,-ajax/xhr,-manipulation/_evalUrl,-deprecated,-effects,-effects/Tween,-effects/animatedSelector,-event-alias,-css/hiddenVisibleSelectors
	 * http://jquery.com/
	 *
	 * Includes Sizzle.js
	 * http://sizzlejs.com/
	 *
	 * Copyright 2005, 2014 jQuery Foundation, Inc. and other contributors
	 * Released under the MIT license
	 * http://jquery.org/license
	 *
	 * Date: 2014-09-28T03:15Z
	 */r="undefined"!=typeof window?window:void 0,o=function(n,r){var o=[],s=o.slice,u=o.concat,l=o.push,c=o.indexOf,d={},f=d.toString,h=d.hasOwnProperty,p={},v=n.document,y="2.1.1 -ajax,-ajax/jsonp,-ajax/load,-ajax/parseJSON,-ajax/parseXML,-ajax/script,-ajax/var/nonce,-ajax/var/rquery,-ajax/xhr,-manipulation/_evalUrl,-deprecated,-effects,-effects/Tween,-effects/animatedSelector,-event-alias,-css/hiddenVisibleSelectors",m=function t(e,n){return new t.fn.init(e,n)},g=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,b=/^-ms-/,_=/-([\da-z])/gi,T=function(t,e){return e.toUpperCase()};function E(t){var e=t.length,n=m.type(t);return"function"!==n&&!m.isWindow(t)&&(!(1!==t.nodeType||!e)||("array"===n||0===e||"number"==typeof e&&e>0&&e-1 in t))}m.fn=m.prototype={jquery:y,constructor:m,selector:"",length:0,toArray:function(){return s.call(this)},get:function(t){return null!=t?t<0?this[t+this.length]:this[t]:s.call(this)},pushStack:function(t){var e=m.merge(this.constructor(),t);return e.prevObject=this,e.context=this.context,e},each:function(t,e){return m.each(this,t,e)},map:function(t){return this.pushStack(m.map(this,function(e,n){return t.call(e,n,e)}))},slice:function(){return this.pushStack(s.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(t){var e=this.length,n=+t+(t<0?e:0);return this.pushStack(n>=0&&n<e?[this[n]]:[])},end:function(){return this.prevObject||this.constructor(null)},push:l,sort:o.sort,splice:o.splice},m.extend=m.fn.extend=function(){var t,e,n,i,r,o,a=arguments[0]||{},s=1,u=arguments.length,l=!1;for("boolean"==typeof a&&(l=a,a=arguments[s]||{},s++),"object"==typeof a||m.isFunction(a)||(a={}),s===u&&(a=this,s--);s<u;s++)if(null!=(t=arguments[s]))for(e in t)n=a[e],a!==(i=t[e])&&(l&&i&&(m.isPlainObject(i)||(r=m.isArray(i)))?(r?(r=!1,o=n&&m.isArray(n)?n:[]):o=n&&m.isPlainObject(n)?n:{},a[e]=m.extend(l,o,i)):void 0!==i&&(a[e]=i));return a},m.extend({expando:"jQuery"+(y+Math.random()).replace(/\D/g,""),isReady:!0,error:function(t){throw new Error(t)},noop:function(){},isFunction:function(t){return"function"===m.type(t)},isArray:Array.isArray,isWindow:function(t){return null!=t&&t===t.window},isNumeric:function(t){return!m.isArray(t)&&t-parseFloat(t)>=0},isPlainObject:function(t){return"object"===m.type(t)&&!t.nodeType&&!m.isWindow(t)&&!(t.constructor&&!h.call(t.constructor.prototype,"isPrototypeOf"))},isEmptyObject:function(t){var e;for(e in t)return!1;return!0},type:function(t){return null==t?t+"":"object"==typeof t||"function"==typeof t?d[f.call(t)]||"object":typeof t},globalEval:function(t){var e,n=eval;(t=m.trim(t))&&(1===t.indexOf("use strict")?((e=v.createElement("script")).text=t,v.head.appendChild(e).parentNode.removeChild(e)):n(t))},camelCase:function(t){return t.replace(b,"ms-").replace(_,T)},nodeName:function(t,e){return t.nodeName&&t.nodeName.toLowerCase()===e.toLowerCase()},each:function(t,e,n){var i=0,r=t.length,o=E(t);if(n){if(o)for(;i<r&&!1!==e.apply(t[i],n);i++);else for(i in t)if(!1===e.apply(t[i],n))break}else if(o)for(;i<r&&!1!==e.call(t[i],i,t[i]);i++);else for(i in t)if(!1===e.call(t[i],i,t[i]))break;return t},trim:function(t){return null==t?"":(t+"").replace(g,"")},makeArray:function(t,e){var n=e||[];return null!=t&&(E(Object(t))?m.merge(n,"string"==typeof t?[t]:t):l.call(n,t)),n},inArray:function(t,e,n){return null==e?-1:c.call(e,t,n)},merge:function(t,e){for(var n=+e.length,i=0,r=t.length;i<n;i++)t[r++]=e[i];return t.length=r,t},grep:function(t,e,n){for(var i=[],r=0,o=t.length,a=!n;r<o;r++)!e(t[r],r)!==a&&i.push(t[r]);return i},map:function(t,e,n){var i,r=0,o=t.length,a=[];if(E(t))for(;r<o;r++)null!=(i=e(t[r],r,n))&&a.push(i);else for(r in t)null!=(i=e(t[r],r,n))&&a.push(i);return u.apply([],a)},guid:1,proxy:function(t,e){var n,i,r;if("string"==typeof e&&(n=t[e],e=t,t=n),m.isFunction(t))return i=s.call(arguments,2),r=function(){return t.apply(e||this,i.concat(s.call(arguments)))},r.guid=t.guid=t.guid||m.guid++,r},now:Date.now,support:p}),m.each("Boolean Number String Function Array Date RegExp Object Error".split(" "),function(t,e){d["[object "+e+"]"]=e.toLowerCase()});var w,k=(Jt=n.document.documentElement).matches||Jt.webkitMatchesSelector||Jt.mozMatchesSelector||Jt.oMatchesSelector||Jt.msMatchesSelector,S=function(t,e){if(t===e)return w=!0,0;var n=e.compareDocumentPosition&&t.compareDocumentPosition&&t.compareDocumentPosition(e);return n?1&n?t===v||m.contains(v,t)?-1:e===v||m.contains(v,e)?1:0:4&n?-1:1:t.compareDocumentPosition?-1:1};m.extend({find:function(t,e,n,i){var r,o,a=0;if(n=n||[],!t||"string"!=typeof t)return n;if(1!==(o=(e=e||v).nodeType)&&9!==o)return[];if(i)for(;r=i[a++];)m.find.matchesSelector(r,t)&&n.push(r);else m.merge(n,e.querySelectorAll(t));return n},unique:function(t){var e,n=[],i=0,r=0;if(w=!1,t.sort(S),w){for(;e=t[i++];)e===t[i]&&(r=n.push(i));for(;r--;)t.splice(n[r],1)}return t},text:function(t){var e,n="",i=0,r=t.nodeType;if(r){if(1===r||9===r||11===r)return t.textContent;if(3===r||4===r)return t.nodeValue}else for(;e=t[i++];)n+=m.text(e);return n},contains:function(t,e){var n=9===t.nodeType?t.documentElement:t,i=e&&e.parentNode;return t===i||!(!i||1!==i.nodeType||!n.contains(i))},isXMLDoc:function(t){return"HTML"!==(t.ownerDocument||t).documentElement.nodeName},expr:{attrHandle:{},match:{bool:/^(?:checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped)$/i,needsContext:/^[\x20\t\r\n\f]*[>+~]/}}}),m.extend(m.find,{matches:function(t,e){return m.find(t,null,null,e)},matchesSelector:function(t,e){return k.call(t,e)},attr:function(t,e){return t.getAttribute(e)}});var O=m.expr.match.needsContext,C=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,x=/^.[^:#\[\.,]*$/;function P(t,e,n){if(m.isFunction(e))return m.grep(t,function(t,i){return!!e.call(t,i,t)!==n});if(e.nodeType)return m.grep(t,function(t){return t===e!==n});if("string"==typeof e){if(x.test(e))return m.filter(e,t,n);e=m.filter(e,t)}return m.grep(t,function(t){return c.call(e,t)>=0!==n})}m.filter=function(t,e,n){var i=e[0];return n&&(t=":not("+t+")"),1===e.length&&1===i.nodeType?m.find.matchesSelector(i,t)?[i]:[]:m.find.matches(t,m.grep(e,function(t){return 1===t.nodeType}))},m.fn.extend({find:function(t){var e,n=this.length,i=[],r=this;if("string"!=typeof t)return this.pushStack(m(t).filter(function(){for(e=0;e<n;e++)if(m.contains(r[e],this))return!0}));for(e=0;e<n;e++)m.find(t,r[e],i);return(i=this.pushStack(n>1?m.unique(i):i)).selector=this.selector?this.selector+" "+t:t,i},filter:function(t){return this.pushStack(P(this,t||[],!1))},not:function(t){return this.pushStack(P(this,t||[],!0))},is:function(t){return!!P(this,"string"==typeof t&&O.test(t)?m(t):t||[],!1).length}});var A,j=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/;(m.fn.init=function(t,e){var n,i;if(!t)return this;if("string"==typeof t){if(!(n="<"===t[0]&&">"===t[t.length-1]&&t.length>=3?[null,t,null]:j.exec(t))||!n[1]&&e)return!e||e.jquery?(e||A).find(t):this.constructor(e).find(t);if(n[1]){if(e=e instanceof m?e[0]:e,m.merge(this,m.parseHTML(n[1],e&&e.nodeType?e.ownerDocument||e:v,!0)),C.test(n[1])&&m.isPlainObject(e))for(n in e)m.isFunction(this[n])?this[n](e[n]):this.attr(n,e[n]);return this}return(i=v.getElementById(n[2]))&&i.parentNode&&(this.length=1,this[0]=i),this.context=v,this.selector=t,this}return t.nodeType?(this.context=this[0]=t,this.length=1,this):m.isFunction(t)?void 0!==A.ready?A.ready(t):t(m):(void 0!==t.selector&&(this.selector=t.selector,this.context=t.context),m.makeArray(t,this))}).prototype=m.fn,A=m(v);var M=/^(?:parents|prev(?:Until|All))/,I={children:!0,contents:!0,next:!0,prev:!0};function L(t,e){for(;(t=t[e])&&1!==t.nodeType;);return t}m.extend({dir:function(t,e,n){for(var i=[],r=void 0!==n;(t=t[e])&&9!==t.nodeType;)if(1===t.nodeType){if(r&&m(t).is(n))break;i.push(t)}return i},sibling:function(t,e){for(var n=[];t;t=t.nextSibling)1===t.nodeType&&t!==e&&n.push(t);return n}}),m.fn.extend({has:function(t){var e=m(t,this),n=e.length;return this.filter(function(){for(var t=0;t<n;t++)if(m.contains(this,e[t]))return!0})},closest:function(t,e){for(var n,i=0,r=this.length,o=[],a=O.test(t)||"string"!=typeof t?m(t,e||this.context):0;i<r;i++)for(n=this[i];n&&n!==e;n=n.parentNode)if(n.nodeType<11&&(a?a.index(n)>-1:1===n.nodeType&&m.find.matchesSelector(n,t))){o.push(n);break}return this.pushStack(o.length>1?m.unique(o):o)},index:function(t){return t?"string"==typeof t?c.call(m(t),this[0]):c.call(this,t.jquery?t[0]:t):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(t,e){return this.pushStack(m.unique(m.merge(this.get(),m(t,e))))},addBack:function(t){return this.add(null==t?this.prevObject:this.prevObject.filter(t))}}),m.each({parent:function(t){var e=t.parentNode;return e&&11!==e.nodeType?e:null},parents:function(t){return m.dir(t,"parentNode")},parentsUntil:function(t,e,n){return m.dir(t,"parentNode",n)},next:function(t){return L(t,"nextSibling")},prev:function(t){return L(t,"previousSibling")},nextAll:function(t){return m.dir(t,"nextSibling")},prevAll:function(t){return m.dir(t,"previousSibling")},nextUntil:function(t,e,n){return m.dir(t,"nextSibling",n)},prevUntil:function(t,e,n){return m.dir(t,"previousSibling",n)},siblings:function(t){return m.sibling((t.parentNode||{}).firstChild,t)},children:function(t){return m.sibling(t.firstChild)},contents:function(t){return t.contentDocument||m.merge([],t.childNodes)}},function(t,e){m.fn[t]=function(n,i){var r=m.map(this,e,n);return"Until"!==t.slice(-5)&&(i=n),i&&"string"==typeof i&&(r=m.filter(i,r)),this.length>1&&(I[t]||m.unique(r),M.test(t)&&r.reverse()),this.pushStack(r)}});var R,D=/\S+/g,N={};function B(){v.removeEventListener("DOMContentLoaded",B,!1),n.removeEventListener("load",B,!1),m.ready()}m.Callbacks=function(t){t="string"==typeof t?N[t]||function(t){var e=N[t]={};return m.each(t.match(D)||[],function(t,n){e[n]=!0}),e}(t):m.extend({},t);var e,n,i,r,o,a,s=[],u=!t.once&&[],l=function l(d){for(e=t.memory&&d,n=!0,a=r||0,r=0,o=s.length,i=!0;s&&a<o;a++)if(!1===s[a].apply(d[0],d[1])&&t.stopOnFalse){e=!1;break}i=!1,s&&(u?u.length&&l(u.shift()):e?s=[]:c.disable())},c={add:function(){if(s){var n=s.length;!function e(n){m.each(n,function(n,i){var r=m.type(i);"function"===r?t.unique&&c.has(i)||s.push(i):i&&i.length&&"string"!==r&&e(i)})}(arguments),i?o=s.length:e&&(r=n,l(e))}return this},remove:function(){return s&&m.each(arguments,function(t,e){for(var n;(n=m.inArray(e,s,n))>-1;)s.splice(n,1),i&&(n<=o&&o--,n<=a&&a--)}),this},has:function(t){return t?m.inArray(t,s)>-1:!(!s||!s.length)},empty:function(){return s=[],o=0,this},disable:function(){return s=u=e=void 0,this},disabled:function(){return!s},lock:function(){return u=void 0,e||c.disable(),this},locked:function(){return!u},fireWith:function(t,e){return!s||n&&!u||(e=[t,(e=e||[]).slice?e.slice():e],i?u.push(e):l(e)),this},fire:function(){return c.fireWith(this,arguments),this},fired:function(){return!!n}};return c},m.extend({Deferred:function(t){var e=[["resolve","done",m.Callbacks("once memory"),"resolved"],["reject","fail",m.Callbacks("once memory"),"rejected"],["notify","progress",m.Callbacks("memory")]],n="pending",i={state:function(){return n},always:function(){return r.done(arguments).fail(arguments),this},then:function(){var t=arguments;return m.Deferred(function(n){m.each(e,function(e,o){var a=m.isFunction(t[e])&&t[e];r[o[1]](function(){var t=a&&a.apply(this,arguments);t&&m.isFunction(t.promise)?t.promise().done(n.resolve).fail(n.reject).progress(n.notify):n[o[0]+"With"](this===i?n.promise():this,a?[t]:arguments)})}),t=null}).promise()},promise:function(t){return null!=t?m.extend(t,i):i}},r={};return i.pipe=i.then,m.each(e,function(t,o){var a=o[2],s=o[3];i[o[1]]=a.add,s&&a.add(function(){n=s},e[1^t][2].disable,e[2][2].lock),r[o[0]]=function(){return r[o[0]+"With"](this===r?i:this,arguments),this},r[o[0]+"With"]=a.fireWith}),i.promise(r),t&&t.call(r,r),r},when:function(t){var e,n,i,r=0,o=s.call(arguments),a=o.length,u=1!==a||t&&m.isFunction(t.promise)?a:0,l=1===u?t:m.Deferred(),c=function(t,n,i){return function(r){n[t]=this,i[t]=arguments.length>1?s.call(arguments):r,i===e?l.notifyWith(n,i):--u||l.resolveWith(n,i)}};if(a>1)for(e=new Array(a),n=new Array(a),i=new Array(a);r<a;r++)o[r]&&m.isFunction(o[r].promise)?o[r].promise().done(c(r,i,o)).fail(l.reject).progress(c(r,n,e)):--u;return u||l.resolveWith(i,o),l.promise()}}),m.fn.ready=function(t){return m.ready.promise().done(t),this},m.extend({isReady:!1,readyWait:1,holdReady:function(t){t?m.readyWait++:m.ready(!0)},ready:function(t){(!0===t?--m.readyWait:m.isReady)||(m.isReady=!0,!0!==t&&--m.readyWait>0||(R.resolveWith(v,[m]),m.fn.triggerHandler&&(m(v).triggerHandler("ready"),m(v).off("ready"))))}}),m.ready.promise=function(t){return R||(R=m.Deferred(),"complete"===v.readyState?setTimeout(m.ready):(v.addEventListener("DOMContentLoaded",B,!1),n.addEventListener("load",B,!1))),R.promise(t)},m.ready.promise();var U=m.access=function(t,e,n,i,r,o,a){var s=0,u=t.length,l=null==n;if("object"===m.type(n))for(s in r=!0,n)m.access(t,e,s,n[s],!0,o,a);else if(void 0!==i&&(r=!0,m.isFunction(i)||(a=!0),l&&(a?(e.call(t,i),e=null):(l=e,e=function(t,e,n){return l.call(m(t),n)})),e))for(;s<u;s++)e(t[s],n,a?i:i.call(t[s],s,e(t[s],n)));return r?t:l?e.call(t):u?e(t[0],n):o};function F(){Object.defineProperty(this.cache={},0,{get:function(){return{}}}),this.expando=m.expando+Math.random()}m.acceptData=function(t){return 1===t.nodeType||9===t.nodeType||!+t.nodeType},F.uid=1,F.accepts=m.acceptData,F.prototype={key:function(t){if(!F.accepts(t))return 0;var e={},n=t[this.expando];if(!n){n=F.uid++;try{e[this.expando]={value:n},a(t,e)}catch(i){e[this.expando]=n,m.extend(t,e)}}return this.cache[n]||(this.cache[n]={}),n},set:function(t,e,n){var i,r=this.key(t),o=this.cache[r];if("string"==typeof e)o[e]=n;else if(m.isEmptyObject(o))m.extend(this.cache[r],e);else for(i in e)o[i]=e[i];return o},get:function(t,e){var n=this.cache[this.key(t)];return void 0===e?n:n[e]},access:function(t,e,n){var i;return void 0===e||e&&"string"==typeof e&&void 0===n?void 0!==(i=this.get(t,e))?i:this.get(t,m.camelCase(e)):(this.set(t,e,n),void 0!==n?n:e)},remove:function(t,e){var n,i,r,o=this.key(t),a=this.cache[o];if(void 0===e)this.cache[o]={};else{m.isArray(e)?i=e.concat(e.map(m.camelCase)):(r=m.camelCase(e),i=e in a?[e,r]:(i=r)in a?[i]:i.match(D)||[]),n=i.length;for(;n--;)delete a[i[n]]}},hasData:function(t){return!m.isEmptyObject(this.cache[t[this.expando]]||{})},discard:function(t){t[this.expando]&&delete this.cache[t[this.expando]]}};var V=new F,H=new F,z=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,q=/([A-Z])/g;function G(t,e,n){var i;if(void 0===n&&1===t.nodeType)if(i="data-"+e.replace(q,"-$1").toLowerCase(),"string"==typeof(n=t.getAttribute(i))){try{n="true"===n||"false"!==n&&("null"===n?null:+n+""===n?+n:z.test(n)?m.parseJSON(n):n)}catch(t){}H.set(t,e,n)}else n=void 0;return n}m.extend({hasData:function(t){return H.hasData(t)||V.hasData(t)},data:function(t,e,n){return H.access(t,e,n)},removeData:function(t,e){H.remove(t,e)},_data:function(t,e,n){return V.access(t,e,n)},_removeData:function(t,e){V.remove(t,e)}}),m.fn.extend({data:function(t,e){var n,i,r,o=this[0],a=o&&o.attributes;if(void 0===t){if(this.length&&(r=H.get(o),1===o.nodeType&&!V.get(o,"hasDataAttrs"))){for(n=a.length;n--;)a[n]&&0===(i=a[n].name).indexOf("data-")&&(i=m.camelCase(i.slice(5)),G(o,i,r[i]));V.set(o,"hasDataAttrs",!0)}return r}return"object"==typeof t?this.each(function(){H.set(this,t)}):U(this,function(e){var n,i=m.camelCase(t);if(o&&void 0===e)return void 0!==(n=H.get(o,t))?n:void 0!==(n=H.get(o,i))?n:void 0!==(n=G(o,i,void 0))?n:void 0;this.each(function(){var n=H.get(this,i);H.set(this,i,e),-1!==t.indexOf("-")&&void 0!==n&&H.set(this,t,e)})},null,e,arguments.length>1,null,!0)},removeData:function(t){return this.each(function(){H.remove(this,t)})}}),m.extend({queue:function(t,e,n){var i;if(t)return e=(e||"fx")+"queue",i=V.get(t,e),n&&(!i||m.isArray(n)?i=V.access(t,e,m.makeArray(n)):i.push(n)),i||[]},dequeue:function(t,e){e=e||"fx";var n=m.queue(t,e),i=n.length,r=n.shift(),o=m._queueHooks(t,e);"inprogress"===r&&(r=n.shift(),i--),r&&("fx"===e&&n.unshift("inprogress"),delete o.stop,r.call(t,function(){m.dequeue(t,e)},o)),!i&&o&&o.empty.fire()},_queueHooks:function(t,e){var n=e+"queueHooks";return V.get(t,n)||V.access(t,n,{empty:m.Callbacks("once memory").add(function(){V.remove(t,[e+"queue",n])})})}}),m.fn.extend({queue:function(t,e){var n=2;return"string"!=typeof t&&(e=t,t="fx",n--),arguments.length<n?m.queue(this[0],t):void 0===e?this:this.each(function(){var n=m.queue(this,t,e);m._queueHooks(this,t),"fx"===t&&"inprogress"!==n[0]&&m.dequeue(this,t)})},dequeue:function(t){return this.each(function(){m.dequeue(this,t)})},clearQueue:function(t){return this.queue(t||"fx",[])},promise:function(t,e){var n,i=1,r=m.Deferred(),o=this,a=this.length,s=function(){--i||r.resolveWith(o,[o])};for("string"!=typeof t&&(e=t,t=void 0),t=t||"fx";a--;)(n=V.get(o[a],t+"queueHooks"))&&n.empty&&(i++,n.empty.add(s));return s(),r.promise(e)}});var W,Y,X=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,$=["Top","Right","Bottom","Left"],K=function(t,e){return t=e||t,"none"===m.css(t,"display")||!m.contains(t.ownerDocument,t)},J=/^(?:checkbox|radio)$/i;W=v.createDocumentFragment().appendChild(v.createElement("div")),(Y=v.createElement("input")).setAttribute("type","radio"),Y.setAttribute("checked","checked"),Y.setAttribute("name","t"),W.appendChild(Y),p.checkClone=W.cloneNode(!0).cloneNode(!0).lastChild.checked,W.innerHTML="<textarea>x</textarea>",p.noCloneChecked=!!W.cloneNode(!0).lastChild.defaultValue;p.focusinBubbles="onfocusin"in n;var Z=/^key/,Q=/^(?:mouse|pointer|contextmenu)|click/,tt=/^(?:focusinfocus|focusoutblur)$/,et=/^([^.]*)(?:\.(.+)|)$/;function nt(){return!0}function it(){return!1}function rt(){try{return v.activeElement}catch(t){}}m.event={global:{},add:function(t,e,n,i,r){var o,a,s,u,l,c,d,f,h,p,v,y=V.get(t);if(y)for(n.handler&&(n=(o=n).handler,r=o.selector),n.guid||(n.guid=m.guid++),(u=y.events)||(u=y.events={}),(a=y.handle)||(a=y.handle=function(e){return void 0!==m&&m.event.triggered!==e.type?m.event.dispatch.apply(t,arguments):void 0}),l=(e=(e||"").match(D)||[""]).length;l--;)h=v=(s=et.exec(e[l])||[])[1],p=(s[2]||"").split(".").sort(),h&&(d=m.event.special[h]||{},h=(r?d.delegateType:d.bindType)||h,d=m.event.special[h]||{},c=m.extend({type:h,origType:v,data:i,handler:n,guid:n.guid,selector:r,needsContext:r&&m.expr.match.needsContext.test(r),namespace:p.join(".")},o),(f=u[h])||((f=u[h]=[]).delegateCount=0,d.setup&&!1!==d.setup.call(t,i,p,a)||t.addEventListener&&t.addEventListener(h,a,!1)),d.add&&(d.add.call(t,c),c.handler.guid||(c.handler.guid=n.guid)),r?f.splice(f.delegateCount++,0,c):f.push(c),m.event.global[h]=!0)},remove:function(t,e,n,i,r){var o,a,s,u,l,c,d,f,h,p,v,y=V.hasData(t)&&V.get(t);if(y&&(u=y.events)){for(l=(e=(e||"").match(D)||[""]).length;l--;)if(h=v=(s=et.exec(e[l])||[])[1],p=(s[2]||"").split(".").sort(),h){for(d=m.event.special[h]||{},f=u[h=(i?d.delegateType:d.bindType)||h]||[],s=s[2]&&new RegExp("(^|\\.)"+p.join("\\.(?:.*\\.|)")+"(\\.|$)"),a=o=f.length;o--;)c=f[o],!r&&v!==c.origType||n&&n.guid!==c.guid||s&&!s.test(c.namespace)||i&&i!==c.selector&&("**"!==i||!c.selector)||(f.splice(o,1),c.selector&&f.delegateCount--,d.remove&&d.remove.call(t,c));a&&!f.length&&(d.teardown&&!1!==d.teardown.call(t,p,y.handle)||m.removeEvent(t,h,y.handle),delete u[h])}else for(h in u)m.event.remove(t,h+e[l],n,i,!0);m.isEmptyObject(u)&&(delete y.handle,V.remove(t,"events"))}},trigger:function(t,e,i,r){var o,a,s,u,l,c,d,f=[i||v],p=h.call(t,"type")?t.type:t,y=h.call(t,"namespace")?t.namespace.split("."):[];if(a=s=i=i||v,3!==i.nodeType&&8!==i.nodeType&&!tt.test(p+m.event.triggered)&&(p.indexOf(".")>=0&&(p=(y=p.split(".")).shift(),y.sort()),l=p.indexOf(":")<0&&"on"+p,(t=t[m.expando]?t:new m.Event(p,"object"==typeof t&&t)).isTrigger=r?2:3,t.namespace=y.join("."),t.namespace_re=t.namespace?new RegExp("(^|\\.)"+y.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,t.result=void 0,t.target||(t.target=i),e=null==e?[t]:m.makeArray(e,[t]),d=m.event.special[p]||{},r||!d.trigger||!1!==d.trigger.apply(i,e))){if(!r&&!d.noBubble&&!m.isWindow(i)){for(u=d.delegateType||p,tt.test(u+p)||(a=a.parentNode);a;a=a.parentNode)f.push(a),s=a;s===(i.ownerDocument||v)&&f.push(s.defaultView||s.parentWindow||n)}for(o=0;(a=f[o++])&&!t.isPropagationStopped();)t.type=o>1?u:d.bindType||p,(c=(V.get(a,"events")||{})[t.type]&&V.get(a,"handle"))&&c.apply(a,e),(c=l&&a[l])&&c.apply&&m.acceptData(a)&&(t.result=c.apply(a,e),!1===t.result&&t.preventDefault());return t.type=p,r||t.isDefaultPrevented()||d._default&&!1!==d._default.apply(f.pop(),e)||!m.acceptData(i)||l&&m.isFunction(i[p])&&!m.isWindow(i)&&((s=i[l])&&(i[l]=null),m.event.triggered=p,i[p](),m.event.triggered=void 0,s&&(i[l]=s)),t.result}},dispatch:function(t){t=m.event.fix(t);var e,n,i,r,o,a,u=s.call(arguments),l=(V.get(this,"events")||{})[t.type]||[],c=m.event.special[t.type]||{};if(u[0]=t,t.delegateTarget=this,!c.preDispatch||!1!==c.preDispatch.call(this,t)){for(a=m.event.handlers.call(this,t,l),e=0;(r=a[e++])&&!t.isPropagationStopped();)for(t.currentTarget=r.elem,n=0;(o=r.handlers[n++])&&!t.isImmediatePropagationStopped();)t.namespace_re&&!t.namespace_re.test(o.namespace)||(t.handleObj=o,t.data=o.data,void 0!==(i=((m.event.special[o.origType]||{}).handle||o.handler).apply(r.elem,u))&&!1===(t.result=i)&&(t.preventDefault(),t.stopPropagation()));return c.postDispatch&&c.postDispatch.call(this,t),t.result}},handlers:function(t,e){var n,i,r,o,a=[],s=e.delegateCount,u=t.target;if(s&&u.nodeType&&(!t.button||"click"!==t.type))for(;u!==this;u=u.parentNode||this)if(!0!==u.disabled||"click"!==t.type){for(i=[],n=0;n<s;n++)void 0===i[r=(o=e[n]).selector+" "]&&(i[r]=o.needsContext?m(r,this).index(u)>=0:m.find(r,this,null,[u]).length),i[r]&&i.push(o);i.length&&a.push({elem:u,handlers:i})}return s<e.length&&a.push({elem:this,handlers:e.slice(s)}),a},props:"altKey bubbles cancelable ctrlKey currentTarget eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "),fixHooks:{},keyHooks:{props:"char charCode key keyCode".split(" "),filter:function(t,e){return null==t.which&&(t.which=null!=e.charCode?e.charCode:e.keyCode),t}},mouseHooks:{props:"button buttons clientX clientY offsetX offsetY pageX pageY screenX screenY toElement".split(" "),filter:function(t,e){var n,i,r,o=e.button;return null==t.pageX&&null!=e.clientX&&(i=(n=t.target.ownerDocument||v).documentElement,r=n.body,t.pageX=e.clientX+(i&&i.scrollLeft||r&&r.scrollLeft||0)-(i&&i.clientLeft||r&&r.clientLeft||0),t.pageY=e.clientY+(i&&i.scrollTop||r&&r.scrollTop||0)-(i&&i.clientTop||r&&r.clientTop||0)),t.which||void 0===o||(t.which=1&o?1:2&o?3:4&o?2:0),t}},fix:function(t){if(t[m.expando])return t;var e,n,i,r=t.type,o=t,a=this.fixHooks[r];for(a||(this.fixHooks[r]=a=Q.test(r)?this.mouseHooks:Z.test(r)?this.keyHooks:{}),i=a.props?this.props.concat(a.props):this.props,t=new m.Event(o),e=i.length;e--;)t[n=i[e]]=o[n];return t.target||(t.target=v),3===t.target.nodeType&&(t.target=t.target.parentNode),a.filter?a.filter(t,o):t},special:{load:{noBubble:!0},focus:{trigger:function(){if(this!==rt()&&this.focus)return this.focus(),!1},delegateType:"focusin"},blur:{trigger:function(){if(this===rt()&&this.blur)return this.blur(),!1},delegateType:"focusout"},click:{trigger:function(){if("checkbox"===this.type&&this.click&&m.nodeName(this,"input"))return this.click(),!1},_default:function(t){return m.nodeName(t.target,"a")}},beforeunload:{postDispatch:function(t){void 0!==t.result&&t.originalEvent&&(t.originalEvent.returnValue=t.result)}}},simulate:function(t,e,n,i){var r=m.extend(new m.Event,n,{type:t,isSimulated:!0,originalEvent:{}});i?m.event.trigger(r,null,e):m.event.dispatch.call(e,r),r.isDefaultPrevented()&&n.preventDefault()}},m.removeEvent=function(t,e,n){t.removeEventListener&&t.removeEventListener(e,n,!1)},m.Event=function(t,e){if(!(this instanceof m.Event))return new m.Event(t,e);t&&t.type?(this.originalEvent=t,this.type=t.type,this.isDefaultPrevented=t.defaultPrevented||void 0===t.defaultPrevented&&!1===t.returnValue?nt:it):this.type=t,e&&m.extend(this,e),this.timeStamp=t&&t.timeStamp||m.now(),this[m.expando]=!0},m.Event.prototype={isDefaultPrevented:it,isPropagationStopped:it,isImmediatePropagationStopped:it,preventDefault:function(){var t=this.originalEvent;this.isDefaultPrevented=nt,t&&t.preventDefault&&t.preventDefault()},stopPropagation:function(){var t=this.originalEvent;this.isPropagationStopped=nt,t&&t.stopPropagation&&t.stopPropagation()},stopImmediatePropagation:function(){var t=this.originalEvent;this.isImmediatePropagationStopped=nt,t&&t.stopImmediatePropagation&&t.stopImmediatePropagation(),this.stopPropagation()}},m.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(t,e){m.event.special[t]={delegateType:e,bindType:e,handle:function(t){var n,i=t.relatedTarget,r=t.handleObj;return i&&(i===this||m.contains(this,i))||(t.type=r.origType,n=r.handler.apply(this,arguments),t.type=e),n}}}),p.focusinBubbles||m.each({focus:"focusin",blur:"focusout"},function(t,e){var n=function(t){m.event.simulate(e,t.target,m.event.fix(t),!0)};m.event.special[e]={setup:function(){var i=this.ownerDocument||this,r=V.access(i,e);r||i.addEventListener(t,n,!0),V.access(i,e,(r||0)+1)},teardown:function(){var i=this.ownerDocument||this,r=V.access(i,e)-1;r?V.access(i,e,r):(i.removeEventListener(t,n,!0),V.remove(i,e))}}}),m.fn.extend({on:function(t,e,n,i,r){var o,a;if("object"==typeof t){for(a in"string"!=typeof e&&(n=n||e,e=void 0),t)this.on(a,e,n,t[a],r);return this}if(null==n&&null==i?(i=e,n=e=void 0):null==i&&("string"==typeof e?(i=n,n=void 0):(i=n,n=e,e=void 0)),!1===i)i=it;else if(!i)return this;return 1===r&&(o=i,(i=function(t){return m().off(t),o.apply(this,arguments)}).guid=o.guid||(o.guid=m.guid++)),this.each(function(){m.event.add(this,t,i,n,e)})},one:function(t,e,n,i){return this.on(t,e,n,i,1)},off:function(t,e,n){var i,r;if(t&&t.preventDefault&&t.handleObj)return i=t.handleObj,m(t.delegateTarget).off(i.namespace?i.origType+"."+i.namespace:i.origType,i.selector,i.handler),this;if("object"==typeof t){for(r in t)this.off(r,e,t[r]);return this}return!1!==e&&"function"!=typeof e||(n=e,e=void 0),!1===n&&(n=it),this.each(function(){m.event.remove(this,t,n,e)})},trigger:function(t,e){return this.each(function(){m.event.trigger(t,e,this)})},triggerHandler:function(t,e){var n=this[0];if(n)return m.event.trigger(t,e,n,!0)}});var ot=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,at=/<([\w:]+)/,st=/<|&#?\w+;/,ut=/<(?:script|style|link)/i,lt=/checked\s*(?:[^=]|=\s*.checked.)/i,ct=/^$|\/(?:java|ecma)script/i,dt=/^true\/(.*)/,ft=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g,ht={option:[1,"<select multiple='multiple'>","</select>"],thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};function pt(t,e){return m.nodeName(t,"table")&&m.nodeName(11!==e.nodeType?e:e.firstChild,"tr")?t.getElementsByTagName("tbody")[0]||t.appendChild(t.ownerDocument.createElement("tbody")):t}function vt(t){return t.type=(null!==t.getAttribute("type"))+"/"+t.type,t}function yt(t){var e=dt.exec(t.type);return e?t.type=e[1]:t.removeAttribute("type"),t}function mt(t,e){for(var n=0,i=t.length;n<i;n++)V.set(t[n],"globalEval",!e||V.get(e[n],"globalEval"))}function gt(t,e){var n,i,r,o,a,s,u,l;if(1===e.nodeType){if(V.hasData(t)&&(o=V.access(t),a=V.set(e,o),l=o.events))for(r in delete a.handle,a.events={},l)for(n=0,i=l[r].length;n<i;n++)m.event.add(e,r,l[r][n]);H.hasData(t)&&(s=H.access(t),u=m.extend({},s),H.set(e,u))}}function bt(t,e){var n=t.getElementsByTagName?t.getElementsByTagName(e||"*"):t.querySelectorAll?t.querySelectorAll(e||"*"):[];return void 0===e||e&&m.nodeName(t,e)?m.merge([t],n):n}ht.optgroup=ht.option,ht.tbody=ht.tfoot=ht.colgroup=ht.caption=ht.thead,ht.th=ht.td,m.extend({clone:function(t,e,n){var i,r,o,a,s,u,l,c=t.cloneNode(!0),d=m.contains(t.ownerDocument,t);if(!(p.noCloneChecked||1!==t.nodeType&&11!==t.nodeType||m.isXMLDoc(t)))for(a=bt(c),i=0,r=(o=bt(t)).length;i<r;i++)s=o[i],u=a[i],void 0,"input"===(l=u.nodeName.toLowerCase())&&J.test(s.type)?u.checked=s.checked:"input"!==l&&"textarea"!==l||(u.defaultValue=s.defaultValue);if(e)if(n)for(o=o||bt(t),a=a||bt(c),i=0,r=o.length;i<r;i++)gt(o[i],a[i]);else gt(t,c);return(a=bt(c,"script")).length>0&&mt(a,!d&&bt(t,"script")),c},buildFragment:function(t,e,n,i){for(var r,o,a,s,u,l,c=e.createDocumentFragment(),d=[],f=0,h=t.length;f<h;f++)if((r=t[f])||0===r)if("object"===m.type(r))m.merge(d,r.nodeType?[r]:r);else if(st.test(r)){for(o=o||c.appendChild(e.createElement("div")),a=(at.exec(r)||["",""])[1].toLowerCase(),s=ht[a]||ht._default,o.innerHTML=s[1]+r.replace(ot,"<$1></$2>")+s[2],l=s[0];l--;)o=o.lastChild;m.merge(d,o.childNodes),(o=c.firstChild).textContent=""}else d.push(e.createTextNode(r));for(c.textContent="",f=0;r=d[f++];)if((!i||-1===m.inArray(r,i))&&(u=m.contains(r.ownerDocument,r),o=bt(c.appendChild(r),"script"),u&&mt(o),n))for(l=0;r=o[l++];)ct.test(r.type||"")&&n.push(r);return c},cleanData:function(t){for(var e,n,i,r,o=m.event.special,a=0;void 0!==(n=t[a]);a++){if(m.acceptData(n)&&(r=n[V.expando])&&(e=V.cache[r])){if(e.events)for(i in e.events)o[i]?m.event.remove(n,i):m.removeEvent(n,i,e.handle);V.cache[r]&&delete V.cache[r]}delete H.cache[n[H.expando]]}}}),m.fn.extend({text:function(t){return U(this,function(t){return void 0===t?m.text(this):this.empty().each(function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=t)})},null,t,arguments.length)},append:function(){return this.domManip(arguments,function(t){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||pt(this,t).appendChild(t)})},prepend:function(){return this.domManip(arguments,function(t){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var e=pt(this,t);e.insertBefore(t,e.firstChild)}})},before:function(){return this.domManip(arguments,function(t){this.parentNode&&this.parentNode.insertBefore(t,this)})},after:function(){return this.domManip(arguments,function(t){this.parentNode&&this.parentNode.insertBefore(t,this.nextSibling)})},remove:function(t,e){for(var n,i=t?m.filter(t,this):this,r=0;null!=(n=i[r]);r++)e||1!==n.nodeType||m.cleanData(bt(n)),n.parentNode&&(e&&m.contains(n.ownerDocument,n)&&mt(bt(n,"script")),n.parentNode.removeChild(n));return this},empty:function(){for(var t,e=0;null!=(t=this[e]);e++)1===t.nodeType&&(m.cleanData(bt(t,!1)),t.textContent="");return this},clone:function(t,e){return t=null!=t&&t,e=null==e?t:e,this.map(function(){return m.clone(this,t,e)})},html:function(t){return U(this,function(t){var e=this[0]||{},n=0,i=this.length;if(void 0===t&&1===e.nodeType)return e.innerHTML;if("string"==typeof t&&!ut.test(t)&&!ht[(at.exec(t)||["",""])[1].toLowerCase()]){t=t.replace(ot,"<$1></$2>");try{for(;n<i;n++)1===(e=this[n]||{}).nodeType&&(m.cleanData(bt(e,!1)),e.innerHTML=t);e=0}catch(t){}}e&&this.empty().append(t)},null,t,arguments.length)},replaceWith:function(){var t=arguments[0];return this.domManip(arguments,function(e){t=this.parentNode,m.cleanData(bt(this)),t&&t.replaceChild(e,this)}),t&&(t.length||t.nodeType)?this:this.remove()},detach:function(t){return this.remove(t,!0)},domManip:function(t,e){t=u.apply([],t);var n,i,r,o,a,s,l=0,c=this.length,d=this,f=c-1,h=t[0],v=m.isFunction(h);if(v||c>1&&"string"==typeof h&&!p.checkClone&&lt.test(h))return this.each(function(n){var i=d.eq(n);v&&(t[0]=h.call(this,n,i.html())),i.domManip(t,e)});if(c&&(i=(n=m.buildFragment(t,this[0].ownerDocument,!1,this)).firstChild,1===n.childNodes.length&&(n=i),i)){for(o=(r=m.map(bt(n,"script"),vt)).length;l<c;l++)a=n,l!==f&&(a=m.clone(a,!0,!0),o&&m.merge(r,bt(a,"script"))),e.call(this[l],a,l);if(o)for(s=r[r.length-1].ownerDocument,m.map(r,yt),l=0;l<o;l++)a=r[l],ct.test(a.type||"")&&!V.access(a,"globalEval")&&m.contains(s,a)&&(a.src?m._evalUrl&&m._evalUrl(a.src):m.globalEval(a.textContent.replace(ft,"")))}return this}}),m.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(t,e){m.fn[t]=function(t){for(var n,i=[],r=m(t),o=r.length-1,a=0;a<=o;a++)n=a===o?this:this.clone(!0),m(r[a])[e](n),l.apply(i,n.get());return this.pushStack(i)}});var _t,Tt={};function Et(t,e){var i,r=m(e.createElement(t)).appendTo(e.body),o=n.getDefaultComputedStyle&&(i=n.getDefaultComputedStyle(r[0]))?i.display:m.css(r[0],"display");return r.detach(),o}function wt(t){var e=v,n=Tt[t];return n||("none"!==(n=Et(t,e))&&n||((e=(_t=(_t||m("<iframe frameborder='0' width='0' height='0'/>")).appendTo(e.documentElement))[0].contentDocument).write(),e.close(),n=Et(t,e),_t.detach()),Tt[t]=n),n}var kt=/^margin/,St=new RegExp("^("+X+")(?!px)[a-z%]+$","i"),Ot=function(t){return t.ownerDocument.defaultView.getComputedStyle(t,null)};function Ct(t,e,n){var i,r,o,a,s=t.style;return(n=n||Ot(t))&&(a=n.getPropertyValue(e)||n[e]),n&&(""!==a||m.contains(t.ownerDocument,t)||(a=m.style(t,e)),St.test(a)&&kt.test(e)&&(i=s.width,r=s.minWidth,o=s.maxWidth,s.minWidth=s.maxWidth=s.width=a,a=n.width,s.width=i,s.minWidth=r,s.maxWidth=o)),void 0!==a?a+"":a}function xt(t,e){return{get:function(){if(!t())return(this.get=e).apply(this,arguments);delete this.get}}}!function(){var t,e,i=v.documentElement,r=v.createElement("div"),o=v.createElement("div");function a(){o.style.cssText="-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;display:block;margin-top:1%;top:1%;border:1px;padding:1px;width:4px;position:absolute",o.innerHTML="",i.appendChild(r);var a=n.getComputedStyle(o,null);t="1%"!==a.top,e="4px"===a.width,i.removeChild(r)}o.style&&(o.style.backgroundClip="content-box",o.cloneNode(!0).style.backgroundClip="",p.clearCloneStyle="content-box"===o.style.backgroundClip,r.style.cssText="border:0;width:0;height:0;top:0;left:-9999px;margin-top:1px;position:absolute",r.appendChild(o),n.getComputedStyle&&m.extend(p,{pixelPosition:function(){return a(),t},boxSizingReliable:function(){return null==e&&a(),e},reliableMarginRight:function(){var t,e=o.appendChild(v.createElement("div"));return e.style.cssText=o.style.cssText="-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:0",e.style.marginRight=e.style.width="0",o.style.width="1px",i.appendChild(r),t=!parseFloat(n.getComputedStyle(e,null).marginRight),i.removeChild(r),t}}))}(),m.swap=function(t,e,n,i){var r,o,a={};for(o in e)a[o]=t.style[o],t.style[o]=e[o];for(o in r=n.apply(t,i||[]),e)t.style[o]=a[o];return r};var Pt=/^(none|table(?!-c[ea]).+)/,At=new RegExp("^("+X+")(.*)$","i"),jt=new RegExp("^([+-])=("+X+")","i"),Mt={position:"absolute",visibility:"hidden",display:"block"},It={letterSpacing:"0",fontWeight:"400"},Lt=["Webkit","O","Moz","ms"];function Rt(t,e){if(e in t)return e;for(var n=e[0].toUpperCase()+e.slice(1),i=e,r=Lt.length;r--;)if((e=Lt[r]+n)in t)return e;return i}function Dt(t,e,n){var i=At.exec(e);return i?Math.max(0,i[1]-(n||0))+(i[2]||"px"):e}function Nt(t,e,n,i,r){for(var o=n===(i?"border":"content")?4:"width"===e?1:0,a=0;o<4;o+=2)"margin"===n&&(a+=m.css(t,n+$[o],!0,r)),i?("content"===n&&(a-=m.css(t,"padding"+$[o],!0,r)),"margin"!==n&&(a-=m.css(t,"border"+$[o]+"Width",!0,r))):(a+=m.css(t,"padding"+$[o],!0,r),"padding"!==n&&(a+=m.css(t,"border"+$[o]+"Width",!0,r)));return a}function Bt(t,e,n){var i=!0,r="width"===e?t.offsetWidth:t.offsetHeight,o=Ot(t),a="border-box"===m.css(t,"boxSizing",!1,o);if(r<=0||null==r){if(((r=Ct(t,e,o))<0||null==r)&&(r=t.style[e]),St.test(r))return r;i=a&&(p.boxSizingReliable()||r===t.style[e]),r=parseFloat(r)||0}return r+Nt(t,e,n||(a?"border":"content"),i,o)+"px"}function Ut(t,e){for(var n,i,r,o=[],a=0,s=t.length;a<s;a++)(i=t[a]).style&&(o[a]=V.get(i,"olddisplay"),n=i.style.display,e?(o[a]||"none"!==n||(i.style.display=""),""===i.style.display&&K(i)&&(o[a]=V.access(i,"olddisplay",wt(i.nodeName)))):(r=K(i),"none"===n&&r||V.set(i,"olddisplay",r?n:m.css(i,"display"))));for(a=0;a<s;a++)(i=t[a]).style&&(e&&"none"!==i.style.display&&""!==i.style.display||(i.style.display=e?o[a]||"":"none"));return t}m.extend({cssHooks:{opacity:{get:function(t,e){if(e){var n=Ct(t,"opacity");return""===n?"1":n}}}},cssNumber:{columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{float:"cssFloat"},style:function(t,e,n,i){if(t&&3!==t.nodeType&&8!==t.nodeType&&t.style){var r,o,a,s=m.camelCase(e),u=t.style;if(e=m.cssProps[s]||(m.cssProps[s]=Rt(u,s)),a=m.cssHooks[e]||m.cssHooks[s],void 0===n)return a&&"get"in a&&void 0!==(r=a.get(t,!1,i))?r:u[e];"string"===(o=typeof n)&&(r=jt.exec(n))&&(n=(r[1]+1)*r[2]+parseFloat(m.css(t,e)),o="number"),null!=n&&n==n&&("number"!==o||m.cssNumber[s]||(n+="px"),p.clearCloneStyle||""!==n||0!==e.indexOf("background")||(u[e]="inherit"),a&&"set"in a&&void 0===(n=a.set(t,n,i))||(u[e]=n))}},css:function(t,e,n,i){var r,o,a,s=m.camelCase(e);return e=m.cssProps[s]||(m.cssProps[s]=Rt(t.style,s)),(a=m.cssHooks[e]||m.cssHooks[s])&&"get"in a&&(r=a.get(t,!0,n)),void 0===r&&(r=Ct(t,e,i)),"normal"===r&&e in It&&(r=It[e]),""===n||n?(o=parseFloat(r),!0===n||m.isNumeric(o)?o||0:r):r}}),m.each(["height","width"],function(t,e){m.cssHooks[e]={get:function(t,n,i){if(n)return Pt.test(m.css(t,"display"))&&0===t.offsetWidth?m.swap(t,Mt,function(){return Bt(t,e,i)}):Bt(t,e,i)},set:function(t,n,i){var r=i&&Ot(t);return Dt(0,n,i?Nt(t,e,i,"border-box"===m.css(t,"boxSizing",!1,r),r):0)}}}),m.cssHooks.marginRight=xt(p.reliableMarginRight,function(t,e){if(e)return m.swap(t,{display:"inline-block"},Ct,[t,"marginRight"])}),m.each({margin:"",padding:"",border:"Width"},function(t,e){m.cssHooks[t+e]={expand:function(n){for(var i=0,r={},o="string"==typeof n?n.split(" "):[n];i<4;i++)r[t+$[i]+e]=o[i]||o[i-2]||o[0];return r}},kt.test(t)||(m.cssHooks[t+e].set=Dt)}),m.fn.extend({css:function(t,e){return U(this,function(t,e,n){var i,r,o={},a=0;if(m.isArray(e)){for(i=Ot(t),r=e.length;a<r;a++)o[e[a]]=m.css(t,e[a],!1,i);return o}return void 0!==n?m.style(t,e,n):m.css(t,e)},t,e,arguments.length>1)},show:function(){return Ut(this,!0)},hide:function(){return Ut(this)},toggle:function(t){return"boolean"==typeof t?t?this.show():this.hide():this.each(function(){K(this)?m(this).show():m(this).hide()})}}),m.fn.delay=function(t,e){return t=m.fx&&m.fx.speeds[t]||t,e=e||"fx",this.queue(e,function(e,n){var i=setTimeout(e,t);n.stop=function(){clearTimeout(i)}})},function(){var t=v.createElement("input"),e=v.createElement("select"),n=e.appendChild(v.createElement("option"));t.type="checkbox",p.checkOn=""!==t.value,p.optSelected=n.selected,e.disabled=!0,p.optDisabled=!n.disabled,(t=v.createElement("input")).value="t",t.type="radio",p.radioValue="t"===t.value}();var Ft,Vt=m.expr.attrHandle;m.fn.extend({attr:function(t,e){return U(this,m.attr,t,e,arguments.length>1)},removeAttr:function(t){return this.each(function(){m.removeAttr(this,t)})}}),m.extend({attr:function(t,e,n){var i,r,o=t.nodeType;if(t&&3!==o&&8!==o&&2!==o)return void 0===t.getAttribute?m.prop(t,e,n):(1===o&&m.isXMLDoc(t)||(e=e.toLowerCase(),i=m.attrHooks[e]||(m.expr.match.bool.test(e)?Ft:void 0)),void 0===n?i&&"get"in i&&null!==(r=i.get(t,e))?r:null==(r=m.find.attr(t,e))?void 0:r:null!==n?i&&"set"in i&&void 0!==(r=i.set(t,n,e))?r:(t.setAttribute(e,n+""),n):void m.removeAttr(t,e))},removeAttr:function(t,e){var n,i,r=0,o=e&&e.match(D);if(o&&1===t.nodeType)for(;n=o[r++];)i=m.propFix[n]||n,m.expr.match.bool.test(n)&&(t[i]=!1),t.removeAttribute(n)},attrHooks:{type:{set:function(t,e){if(!p.radioValue&&"radio"===e&&m.nodeName(t,"input")){var n=t.value;return t.setAttribute("type",e),n&&(t.value=n),e}}}}}),Ft={set:function(t,e,n){return!1===e?m.removeAttr(t,n):t.setAttribute(n,n),n}},m.each(m.expr.match.bool.source.match(/\w+/g),function(t,e){var n=Vt[e]||m.find.attr;Vt[e]=function(t,e,i){var r,o;return i||(o=Vt[e],Vt[e]=r,r=null!=n(t,e,i)?e.toLowerCase():null,Vt[e]=o),r}});var Ht=/^(?:input|select|textarea|button)$/i;m.fn.extend({prop:function(t,e){return U(this,m.prop,t,e,arguments.length>1)},removeProp:function(t){return this.each(function(){delete this[m.propFix[t]||t]})}}),m.extend({propFix:{for:"htmlFor",class:"className"},prop:function(t,e,n){var i,r,o=t.nodeType;if(t&&3!==o&&8!==o&&2!==o)return(1!==o||!m.isXMLDoc(t))&&(e=m.propFix[e]||e,r=m.propHooks[e]),void 0!==n?r&&"set"in r&&void 0!==(i=r.set(t,n,e))?i:t[e]=n:r&&"get"in r&&null!==(i=r.get(t,e))?i:t[e]},propHooks:{tabIndex:{get:function(t){return t.hasAttribute("tabindex")||Ht.test(t.nodeName)||t.href?t.tabIndex:-1}}}}),p.optSelected||(m.propHooks.selected={get:function(t){var e=t.parentNode;return e&&e.parentNode&&e.parentNode.selectedIndex,null}}),m.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){m.propFix[this.toLowerCase()]=this});var zt=/[\t\r\n\f]/g;m.fn.extend({addClass:function(t){var e,n,i,r,o,a,s="string"==typeof t&&t,u=0,l=this.length;if(m.isFunction(t))return this.each(function(e){m(this).addClass(t.call(this,e,this.className))});if(s)for(e=(t||"").match(D)||[];u<l;u++)if(i=1===(n=this[u]).nodeType&&(n.className?(" "+n.className+" ").replace(zt," "):" ")){for(o=0;r=e[o++];)i.indexOf(" "+r+" ")<0&&(i+=r+" ");a=m.trim(i),n.className!==a&&(n.className=a)}return this},removeClass:function(t){var e,n,i,r,o,a,s=0===arguments.length||"string"==typeof t&&t,u=0,l=this.length;if(m.isFunction(t))return this.each(function(e){m(this).removeClass(t.call(this,e,this.className))});if(s)for(e=(t||"").match(D)||[];u<l;u++)if(i=1===(n=this[u]).nodeType&&(n.className?(" "+n.className+" ").replace(zt," "):"")){for(o=0;r=e[o++];)for(;i.indexOf(" "+r+" ")>=0;)i=i.replace(" "+r+" "," ");a=t?m.trim(i):"",n.className!==a&&(n.className=a)}return this},toggleClass:function(t,e){var n=typeof t;return"boolean"==typeof e&&"string"===n?e?this.addClass(t):this.removeClass(t):m.isFunction(t)?this.each(function(n){m(this).toggleClass(t.call(this,n,this.className,e),e)}):this.each(function(){if("string"===n)for(var e,i=0,r=m(this),o=t.match(D)||[];e=o[i++];)r.hasClass(e)?r.removeClass(e):r.addClass(e);else"undefined"!==n&&"boolean"!==n||(this.className&&V.set(this,"__className__",this.className),this.className=this.className||!1===t?"":V.get(this,"__className__")||"")})},hasClass:function(t){for(var e=" "+t+" ",n=0,i=this.length;n<i;n++)if(1===this[n].nodeType&&(" "+this[n].className+" ").replace(zt," ").indexOf(e)>=0)return!0;return!1}});var qt=/\r/g;m.fn.extend({val:function(t){var e,n,i,r=this[0];return arguments.length?(i=m.isFunction(t),this.each(function(n){var r;1===this.nodeType&&(null==(r=i?t.call(this,n,m(this).val()):t)?r="":"number"==typeof r?r+="":m.isArray(r)&&(r=m.map(r,function(t){return null==t?"":t+""})),(e=m.valHooks[this.type]||m.valHooks[this.nodeName.toLowerCase()])&&"set"in e&&void 0!==e.set(this,r,"value")||(this.value=r))})):r?(e=m.valHooks[r.type]||m.valHooks[r.nodeName.toLowerCase()])&&"get"in e&&void 0!==(n=e.get(r,"value"))?n:"string"==typeof(n=r.value)?n.replace(qt,""):null==n?"":n:void 0}}),m.extend({valHooks:{option:{get:function(t){var e=m.find.attr(t,"value");return null!=e?e:m.trim(m.text(t))}},select:{get:function(t){for(var e,n,i=t.options,r=t.selectedIndex,o="select-one"===t.type||r<0,a=o?null:[],s=o?r+1:i.length,u=r<0?s:o?r:0;u<s;u++)if(((n=i[u]).selected||u===r)&&(p.optDisabled?!n.disabled:null===n.getAttribute("disabled"))&&(!n.parentNode.disabled||!m.nodeName(n.parentNode,"optgroup"))){if(e=m(n).val(),o)return e;a.push(e)}return a},set:function(t,e){for(var n,i,r=t.options,o=m.makeArray(e),a=r.length;a--;)((i=r[a]).selected=m.inArray(i.value,o)>=0)&&(n=!0);return n||(t.selectedIndex=-1),o}}}}),m.each(["radio","checkbox"],function(){m.valHooks[this]={set:function(t,e){if(m.isArray(e))return t.checked=m.inArray(m(t).val(),e)>=0}},p.checkOn||(m.valHooks[this].get=function(t){return null===t.getAttribute("value")?"on":t.value})}),m.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error contextmenu".split(" "),function(t,e){m.fn[e]=function(t,n){return arguments.length>0?this.on(e,null,t,n):this.trigger(e)}}),m.fn.extend({hover:function(t,e){return this.mouseenter(t).mouseleave(e||t)},bind:function(t,e,n){return this.on(t,null,e,n)},unbind:function(t,e){return this.off(t,null,e)},delegate:function(t,e,n,i){return this.on(e,t,n,i)},undelegate:function(t,e,n){return 1===arguments.length?this.off(t,"**"):this.off(e,t||"**",n)}}),m.fn.extend({wrapAll:function(t){var e;return m.isFunction(t)?this.each(function(e){m(this).wrapAll(t.call(this,e))}):(this[0]&&(e=m(t,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&e.insertBefore(this[0]),e.map(function(){for(var t=this;t.firstElementChild;)t=t.firstElementChild;return t}).append(this)),this)},wrapInner:function(t){return m.isFunction(t)?this.each(function(e){m(this).wrapInner(t.call(this,e))}):this.each(function(){var e=m(this),n=e.contents();n.length?n.wrapAll(t):e.append(t)})},wrap:function(t){var e=m.isFunction(t);return this.each(function(n){m(this).wrapAll(e?t.call(this,n):t)})},unwrap:function(){return this.parent().each(function(){m.nodeName(this,"body")||m(this).replaceWith(this.childNodes)}).end()}});var Gt=/%20/g,Wt=/\[\]$/,Yt=/\r?\n/g,Xt=/^(?:submit|button|image|reset|file)$/i,$t=/^(?:input|select|textarea|keygen)/i;function Kt(t,e,n,i){var r;if(m.isArray(e))m.each(e,function(e,r){n||Wt.test(t)?i(t,r):Kt(t+"["+("object"==typeof r?e:"")+"]",r,n,i)});else if(n||"object"!==m.type(e))i(t,e);else for(r in e)Kt(t+"["+r+"]",e[r],n,i)}m.param=function(t,e){var n,i=[],r=function(t,e){e=m.isFunction(e)?e():null==e?"":e,i[i.length]=encodeURIComponent(t)+"="+encodeURIComponent(e)};if(void 0===e&&(e=m.ajaxSettings&&m.ajaxSettings.traditional),m.isArray(t)||t.jquery&&!m.isPlainObject(t))m.each(t,function(){r(this.name,this.value)});else for(n in t)Kt(n,t[n],e,r);return i.join("&").replace(Gt,"+")},m.fn.extend({serialize:function(){return m.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var t=m.prop(this,"elements");return t?m.makeArray(t):this}).filter(function(){var t=this.type;return this.name&&!m(this).is(":disabled")&&$t.test(this.nodeName)&&!Xt.test(t)&&(this.checked||!J.test(t))}).map(function(t,e){var n=m(this).val();return null==n?null:m.isArray(n)?m.map(n,function(t){return{name:e.name,value:t.replace(Yt,"\r\n")}}):{name:e.name,value:n.replace(Yt,"\r\n")}}).get()}}),m.parseHTML=function(t,e,n){if(!t||"string"!=typeof t)return null;"boolean"==typeof e&&(n=e,e=!1),e=e||v;var i=C.exec(t),r=!n&&[];return i?[e.createElement(i[1])]:(i=m.buildFragment([t],e,r),r&&r.length&&m(r).remove(),m.merge([],i.childNodes))};var Jt=n.document.documentElement;function Zt(t){return m.isWindow(t)?t:9===t.nodeType&&t.defaultView}m.offset={setOffset:function(t,e,n){var i,r,o,a,s,u,l=m.css(t,"position"),c=m(t),d={};"static"===l&&(t.style.position="relative"),s=c.offset(),o=m.css(t,"top"),u=m.css(t,"left"),("absolute"===l||"fixed"===l)&&(o+u).indexOf("auto")>-1?(a=(i=c.position()).top,r=i.left):(a=parseFloat(o)||0,r=parseFloat(u)||0),m.isFunction(e)&&(e=e.call(t,n,s)),null!=e.top&&(d.top=e.top-s.top+a),null!=e.left&&(d.left=e.left-s.left+r),"using"in e?e.using.call(t,d):c.css(d)}},m.fn.extend({offset:function(t){if(arguments.length)return void 0===t?this:this.each(function(e){m.offset.setOffset(this,t,e)});var e,n,i=this[0],r={top:0,left:0},o=i&&i.ownerDocument;return o?(e=o.documentElement,m.contains(e,i)?(void 0!==i.getBoundingClientRect&&(r=i.getBoundingClientRect()),n=Zt(o),{top:r.top+n.pageYOffset-e.clientTop,left:r.left+n.pageXOffset-e.clientLeft}):r):void 0},position:function(){if(this[0]){var t,e,n=this[0],i={top:0,left:0};return"fixed"===m.css(n,"position")?e=n.getBoundingClientRect():(t=this.offsetParent(),e=this.offset(),m.nodeName(t[0],"html")||(i=t.offset()),i.top+=m.css(t[0],"borderTopWidth",!0),i.left+=m.css(t[0],"borderLeftWidth",!0)),{top:e.top-i.top-m.css(n,"marginTop",!0),left:e.left-i.left-m.css(n,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var t=this.offsetParent||Jt;t&&!m.nodeName(t,"html")&&"static"===m.css(t,"position");)t=t.offsetParent;return t||Jt})}}),m.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(t,e){var i="pageYOffset"===e;m.fn[t]=function(r){return U(this,function(t,r,o){var a=Zt(t);if(void 0===o)return a?a[e]:t[r];a?a.scrollTo(i?n.pageXOffset:o,i?o:n.pageYOffset):t[r]=o},t,r,arguments.length,null)}}),m.each(["top","left"],function(t,e){m.cssHooks[e]=xt(p.pixelPosition,function(t,n){if(n)return n=Ct(t,e),St.test(n)?m(t).position()[e]+"px":n})}),m.each({Height:"height",Width:"width"},function(t,e){m.each({padding:"inner"+t,content:e,"":"outer"+t},function(n,i){m.fn[i]=function(i,r){var o=arguments.length&&(n||"boolean"!=typeof i),a=n||(!0===i||!0===r?"margin":"border");return U(this,function(e,n,i){var r;return m.isWindow(e)?e.document.documentElement["client"+t]:9===e.nodeType?(r=e.documentElement,Math.max(e.body["scroll"+t],r["scroll"+t],e.body["offset"+t],r["offset"+t],r["client"+t])):void 0===i?m.css(e,n,a):m.style(e,n,i,a)},e,o?i:void 0,o,null)}})}),void 0===(i=function(){return m}.apply(e,[]))||(t.exports=i);var Qt=n.jQuery,te=n.$;return m.noConflict=function(t){return n.$===m&&(n.$=te),t&&n.jQuery===m&&(n.jQuery=Qt),m},void 0===r&&(n.jQuery=n.$=m),m},"object"==typeof t&&"object"==typeof t.exports?t.exports=r.document?o(r,!0):function(t){if(!t.document)throw new Error("jQuery requires a window with a document");return o(t)}:o(r)},function(t,e,n){t.exports={default:n(292),__esModule:!0}},function(t,e,n){n(293);var i=n(153).Object;t.exports=function(t,e){return i.defineProperties(t,e)}},function(t,e,n){var i=n(151);i(i.S+i.F*!n(161),"Object",{defineProperties:n(171)})},function(t,e,n){"use strict";var i=n(240).default,r=n(245).default,o=n(295).default,a=n(196).default;Object.defineProperty(e,"__esModule",{value:!0});var s=a(n(296)),u=function(){function t(){r(this,t),this.eventBinders=[],this.initialized=!1}return i(t,[{key:"addEvents",value:function(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];this.eventBinders=this.eventBinders.concat(e.map(s.default.create))}},{key:"init",value:function(){if(this.initialized)throw new Error("Trying to call init on an already initialized event listener");this.beforeInit(),this.bindEvents(),this.initialized=!0}},{key:"beforeInit",value:function(){}},{key:"bindEvents",value:function(){var t=this;this.eventBinders.forEach(function(e){return e.bind(t)})}},{key:"dispose",value:function(){if(!this.initialized)throw new Error("Trying to call dispose on non-initialized event listener");this.beforeDispose(),this.unbindEvents(),this.eventBinders=[],this.initialized=!1}},{key:"beforeDispose",value:function(){}},{key:"unbindEvents",value:function(){this.eventBinders.forEach(function(t){return t.unbind()})}}],[{key:"create",value:function(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];var i=new(o.apply(this,[null].concat(e)));return i.init(),i}}]),t}();e.default=u,t.exports=e.default},function(t,e){"use strict";e.default=Function.prototype.bind,e.__esModule=!0},function(t,e,n){"use strict";var i=n(240).default,r=n(245).default,o=n(259).default,a=n(295).default,s=n(196).default;Object.defineProperty(e,"__esModule",{value:!0});var u=s(n(297)),l=s(n(298)),c=s(n(300)),d=s(n(301)),f=function(){function t(e,n,i){if(r(this,t),!(0,c.default)(n))throw new Error("Expecting eventName to be a string, got "+typeof n);if(!(0,l.default)(e))throw new Error('Expecting target for event "'+n+'" to be an object, got '+typeof e);if(!(0,u.default)(i))throw new Error('Expecting handler for event "'+n+'" to be a function, got '+typeof i);this.target=e,this.eventName=n,this.handler=i}return i(t,[{key:"bind",value:function(t){this.boundHandler&&this.unbind(),this.boundHandler=this.handler.bind(t),this.target.on(this.eventName,this.boundHandler)}},{key:"unbind",value:function(){this.boundHandler&&(this.target.off(this.eventName,this.boundHandler),delete this.boundHandler)}}],[{key:"fromArray",value:function(t){return new(a.apply(this,[null].concat(o(t))))}},{key:"create",value:function(e,n,i){if(e instanceof t)return e;if(Array.isArray(e))return t.create.apply(t,o(e));if((0,l.default)(e)&&(0,c.default)(n)&&(0,u.default)(i)){for(var r=d.default.isEventTarget(e)?new d.default(e):e,s=arguments.length,f=Array(s>3?s-3:0),h=3;h<s;h++)f[h-3]=arguments[h];return new(a.apply(this,[null].concat([r,n,i],f)))}throw new TypeError("Could not infer argument format")}}]),t}();e.default=f,t.exports=e.default},function(t,e){t.exports=function(t){return"function"==typeof t}},function(t,e,n){var i=n(299);t.exports=function(t){return!(!t||!i[typeof t])}},function(t,e){t.exports={boolean:!1,function:!0,object:!0,number:!1,string:!1,undefined:!1}},function(t,e){var n="[object String]";var i=Object.prototype.toString;t.exports=function(t){return"string"==typeof t||function(t){return!!t&&"object"==typeof t}(t)&&i.call(t)==n}},function(t,e,n){"use strict";var i=n(240).default,r=n(245).default,o=n(196).default;Object.defineProperty(e,"__esModule",{value:!0});var a=o(n(297)),s=o(n(298)),u=function(){function t(e){var n=!(arguments.length<=1||void 0===arguments[1])&&arguments[1];r(this,t),this.target=e,this.useCapture=n}return i(t,null,[{key:"isEventTarget",value:function(t){return(0,s.default)(t)&&["addEventListener","removeEventListener"].every(function(e){return(0,a.default)(t[e])})}}]),i(t,[{key:"on",value:function(t,e){this.target.addEventListener(t,e,this.useCapture)}},{key:"off",value:function(t,e){this.target.removeEventListener(t,e)}}]),t}();e.default=u,t.exports=e.default},function(t,e,n){"use strict";var i=n(201).default,r=n(211).default,o=n(240).default,a=n(245).default,s=n(196).default;Object.defineProperty(e,"__esModule",{value:!0});var u=s(n(294)),l=0,c=function(t){function e(t){a(this,e),i(Object.getPrototypeOf(e.prototype),"constructor",this).call(this),this.element=t,this.buffered=l}return r(e,t),o(e,[{key:"buffered",get:function(){return this.element.value},set:function(t){this.element.value=t}}]),e}(u.default);e.default=c,t.exports=e.default},function(t,e,n){"use strict";var i=n(201).default,r=n(211).default,o=n(240).default,a=n(245).default,s=n(196).default;Object.defineProperty(e,"__esModule",{value:!0});var u=n(261),l=n(304),c=function(t){function e(t){var n=arguments.length<=1||void 0===arguments[1]?{}:arguments[1];if(a(this,e),i(Object.getPrototypeOf(e.prototype),"constructor",this).call(this,t,n),u.events.mixin(this),n.a11yControlText){var r=(0,l.createA11yControlTextElement)(n.a11yControlText);this.adaptedElement.append(r)}}return r(e,t),o(e,[{key:"beforeInit",value:function(){this.addEvents([this.element,"click",this.onClick])}},{key:"onClick",value:function(){this.emit("click")}}]),e}(s(n(200)).default);e.default=c,t.exports=e.default},function(t,e,n){"use strict";var i=n(305).default,r=n(240).default,o=n(245).default,a=n(307).default;Object.defineProperty(e,"__esModule",{value:!0}),e.getDefaultControlTextObj=l,e.testControlTextObj=c,e.testLanguageControlTextObj=function(){var t=arguments.length<=0||void 0===arguments[0]?{}:arguments[0],e=t.language,n=t.languages;if(!e||"string"!=typeof e||-1===s.languageCodes.indexOf(e.split("-")[0]))return console.warn("language key in languageControlTextObj has error"),!1;if(!n||"object"!=typeof n||-1===a(n).indexOf(e))return console.warn("languages key in languageControlTextObj has error"),!1;return a(n).forEach(function(t){return!!c(n[t],"errorMessage")}),!0},e.getDefaultLanguageControlTextObj=function(){return{language:"en-US",languages:i({},"en-US",l("errorMessage"))}},e.createA11yControlTextElement=function(t){var e=document.createElement("span");return e.className="a11y-text",e.textContent=t,e};var s=n(310);e.KEY_CODE={TAB:9,ESCAPE:27,ARROW_LEFT:37,ARROW_RIGHT:39,ARROW_UP:38,ARROW_DOWN:40};e.SLIDER_TYPE={PLAYBACK:"playback",VOLUME:"volume"};var u={a11y:{videoPlayerContainerA11yAriaLabel:"video player",bigPlayButtonA11yControlText:"play video",linkedinLogoLinkA11yControlText:"visit linkedin",backButtonA11yControlText:"back button",playButtonA11yControlText:"play",replayButtonA11yControlText:"replay",pauseButtonA11yControlText:"pause",shareButtonA11yControlText:"share",zoomInButtonA11yControlText:"zoom in",zoomOutButtonA11yControlText:"zoom out",zoomSelectA11yControlText:"select zoom value",volumeOnButtonA11yControlText:"volume on",volumeOffButtonA11yControlText:"volume off",fullscreenOnButtonA11yControlText:"fullscreen on",fullscreenOffButtonA11yControlText:"fullscreen off",progressSliderA11yControlText:"playback progress slider",volumeSliderA11yControlText:"volume slider",volumeSliderAriaValueTextA11yControlText:"volume",closeModalButtonA11yControlText:"close share overlay"},errorMessage:{"You aborted the media playback":"You aborted the media playback","A network error caused the media download to fail part-way.":"A network error caused the media download to fail part-way.","The media could not be loaded, either because the server or network failed or because the format is not supported.":"The media could not be loaded, either because the server or network failed or because the format is not supported.","The media playback was aborted due to a corruption problem or because the media used features your browser did not support.":"The media playback was aborted due to a corruption problem or because the media used features your browser did not support.","No compatible source was found for this media.":"No compatible source was found for this media.","The media is encrypted and we do not have the keys to decrypt it.":"The media is encrypted and we do not have the keys to decrypt it."}};function l(t){return u[t]}function c(t,e){void 0===t&&(t={});var n=!0;return!console&&!console.warn||window.__karma__?n:(a(u[e]).forEach(function(e){t[e]||(console.warn("Please define "+e+" for i18n."),n=!1)}),n)}var d=function(){function t(){o(this,t),this.fullscreenOn=!1,this.focusActive=!1,this.disableA11y=!1}return r(t,[{key:"isFullscreenOn",get:function(){return this.fullscreenOn},set:function(t){this.fullscreenOn=t}},{key:"isFocusActive",get:function(){return this.focusActive},set:function(t){this.focusActive=t}},{key:"isDisableA11y",get:function(){return this.disableA11y},set:function(t){this.disableA11y=t}}]),t}();e.PlayerStateManager=d},function(t,e,n){t.exports=n(306)},function(t,e,n){"use strict";e.__esModule=!0;var i,r=n(242),o=(i=r)&&i.__esModule?i:{default:i};e.default=function(t,e,n){return e in t?(0,o.default)(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}},function(t,e,n){t.exports={default:n(308),__esModule:!0}},function(t,e,n){n(309),t.exports=n(153).Object.keys},function(t,e,n){var i=n(188),r=n(172);n(205)("keys",function(){return function(t){return r(i(t))}})},function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.languageCodes=["aa","ab","af","ak","sq","am","ar","an","hy","as","av","ae","ay","az","ba","bm","eu","be","bn","bh","bi","bs","br","bg","my","ca","ch","ce","zh","cu","cv","kw","co","cr","cs","da","dv","nl","dz","en","eo","et","ee","fo","fj","fi","fr","fy","ff","ka","de","gd","ga","gl","gv","el","gn","gu","ht","ha","he","hz","hi","ho","hr","hu","ig","is","io","ii","iu","ie","ia","id","ik","it","jv","ja","kl","kn","ks","kr","kk","km","ki","rw","ky","kv","kg","ko","kj","ku","lo","la","lv","li","ln","lt","lb","lu","lg","mk","mh","ml","mi","mr","ms","mg","mt","mn","na","nv","nr","nd","ng","ne","nn","nb","no","ny","oc","oj","or","om","os","pa","fa","pi","pl","pt","ps","qu","rm","ro","rn","ru","sg","sa","si","sk","sl","se","sm","sn","sd","so","st","es","sc","sr","ss","su","sw","sv","ty","ta","tt","te","tg","tl","th","bo","ti","to","tn","ts","tk","tr","tw","ug","uk","ur","uz","ve","vi","vo","cy","wa","wo","xh","yi","yo","za","zu"]},function(t,e,n){"use strict";var i=n(312).default,r=n(201).default,o=n(211).default,a=n(240).default,s=n(245).default,u=n(259).default,l=n(314).default,c=n(307).default,d=n(196).default;Object.defineProperty(e,"__esModule",{value:!0});var f=i(['<div class="','"/>'],['<div class="','"/>']),h=d(n(317)),p=d(n(247)),v=d(n(318)),y=d(n(321)),m=d(n(322)),g=d(n(323)),b=n(261),_=n(324),T=n(334),E=d(n(248)),w=d(n(335)),k=n(338),S=l({KEY:"key",PAN:"pan",NAV:"nav",PROGRESS:"progress"});e.CHANGE_POSITION_SOURCES=S;var O=function(t){function e(t){var n=arguments.length<=1||void 0===arguments[1]?{}:arguments[1],i=arguments.length<=2||void 0===arguments[2]?t.ownerDocument.defaultView:arguments[2],o=arguments.length<=3||void 0===arguments[3]?{}:arguments[3];return function(){s(this,e),r(Object.getPrototypeOf(e.prototype),"constructor",this).call(this,t),b.events.mixin(this),this.options=(0,p.default)({},n,{aspectRatio:null,numPages:null,slideMarginPx:32,startPosition:0,heightOffset:0,swipeSpeed:.8,swipeSpeedEdge:.2,trackContainerHeightOffset:0,initialSlideConfigs:{},ignoreSlidesIfNotInInitialSlideConfigs:!1,classes:{animate:"carousel-animate",initialized:"carousel-initialized",lazyElement:"carousel-lazy-element",slide:"carousel-slide",slideActive:"carousel-slide-active",track:"carousel-track",trackContainer:"carousel-track-container",visiblyHidden:"ssplayer-carousel--visibly-hidden"},selectors:{loader:".ssplayer-loader.ssplayer-carousel-loader-template"},attrs:{index:"data-ssplayer-slide-index"},loadOffsets:{other:[-2,-1,1,2,3,4],first:[-1,1]}}),this.window=i,this.trackingOptions=o,this._validateOptions(this.options),this.zoomScale=1,this.slides=[],this.position=this.options.startPosition,this.numPages=this.options.numPages,this.slideRatio=this.options.aspectRatio,this.startPosition=this.options.startPosition,this.heightOffset=this.options.heightOffset,this.setup()}.apply(this,arguments)}return o(e,t),a(e,[{key:"setup",value:function(){this.$track=this.adapter.find(this.adaptedElement,"ul"),this.adapter.wrap(this.$track,g.default.mk(f,this.options.classes.trackContainer)),this.$trackContainer=this.adapter.find(this.adaptedElement,"."+this.options.classes.trackContainer),this.adapter.addClass(this.$track,this.options.classes.track),this.adapter.setAttr(this.$trackContainer,"aria-live","polite"),this.$track.append(this.createSlideElems(this.numPages)),this.$slides=this.adapter.children(this.$track,this.slideSelector)}},{key:"beforeInit",value:function(){this.hammer=new h.default(this.element,{recognizers:[[h.default.Pan,{direction:h.default.DIRECTION_HORIZONTAL}]]});var t=this.adapter.restore(this.$slides),e=[[this.element.ownerDocument.defaultView,"resize",this.onWindowResize]],n=[[this.hammer,"panstart panright panleft",this.onPanMove],[this.hammer,"panend",this.onPanEnd]].concat(u(t.map(function(t){return[t,"dragstart",function(t){return t.preventDefault()}]}))),i=this.numPages>1?e.concat(n):e;this.addEvents.apply(this,u(i)),this.applySlideConfigs(this.options.initialSlideConfigs),this.setDimensions(),this.changePosition(this.startPosition,!1),this.adapter.addClass(this.adaptedElement,this.options.classes.initialized)}},{key:"onImageLoaded",value:function(t){var e=t.src,n=t.position;this.trackingOptions.trackingEnabled&&n===this.position&&this.emit(k.INTERNAL_TRACKING_EVENTS.IMAGE_LOADED,{src:e})}},{key:"onImageLoadError",value:function(t){var e=t.src;this.trackingOptions.trackingEnabled&&this.emit(k.INTERNAL_TRACKING_EVENTS.IMAGE_LOAD_ERROR,{src:e})}},{key:"createSlideElems",value:function(t){for(var e=g.default.htmlEncode(this.options.classes.slide),n=g.default.htmlEncode(this.options.attrs.index),i=this.element.querySelector(this.options.selectors.loader),r=[],o=0;o<t;o+=1){var a=new w.default(o,{className:e,indexAttrName:n,defaultAspectRatio:this.slideRatio,loaderElementTemplate:i,slideImageLoadCallback:this.onImageLoaded.bind(this),slideImageLoadErrorCallback:this.onImageLoadError.bind(this)});this.slides.push(a),r.push(a.containerElement)}return r}},{key:"applySlideConfigs",value:function(t){var e=this;c(t).forEach(function(n){e.applySlideConfigForType(n,t[n].type,t[n].config)})}},{key:"_shouldIgnoreSlide",value:function(t){return this.options.ignoreSlidesIfNotInInitialSlideConfigs&&t>c(this.options.initialSlideConfigs).length-1}},{key:"applySlideConfigForType",value:function(t,e,n){switch(e){case T.SLIDE_TYPE.IMAGE:this.applyImageSlideConfig({index:t,config:n});break;case T.SLIDE_TYPE.TEXT:this.applyTextSlideConfig({index:t,config:n});break;default:throw new Error("Cannot generate slide node for type: "+e)}}},{key:"applyTranscriptToSlide",value:function(t,e){this.slides[t].imageElement.setAttribute("alt",e)}},{key:"applyImageSlideConfig",value:function(t){var e=t.index,n=t.config,i=t.clearSlide,r=void 0===i||i,o=t.onResize,a=void 0!==o&&o,s=t.fromManifest,u=void 0!==s&&s;if(!this._shouldIgnoreSlide(e)){this._validateIndex(e),this._validateImageSlideConfig(e,n);var l=this.slides[e],d=this.trackingOptions.trackingEnabled&&l&&a&&l.imageElement&&l.imageElement.dataset.src;if(l.update(n.src,{attrsToClear:c(this.options.attrs),isPortrait:this.isPortrait,force:r,type:T.SLIDE_TYPE.IMAGE}),e===this.position){if(this.trackingOptions.trackingEnabled&&u){if(a){var f=d!==n.src;return f&&(this.trackExitPreviousSlide({src:d}),this.emit(k.INTERNAL_TRACKING_EVENTS.IMAGE_ASK_TO_RENDER,{src:n.src})),void l.loadImage({isCurrentSlide:e===this.position,isResize:!f,allowTracking:u,position:this.position})}return this.emit(k.INTERNAL_TRACKING_EVENTS.INITIALIZE_SLIDE_CONTEXT,{slides:this.slides,position:this.position}),this.emit(k.INTERNAL_TRACKING_EVENTS.IMAGE_ASK_TO_RENDER,{src:n.src}),void l.loadImage({isCurrentSlide:e===this.position,isResize:a,allowTracking:u,position:this.position})}l.loadImage()}}}},{key:"applyTextSlideConfig",value:function(t){var e=t.index,n=t.config;this._shouldIgnoreSlide(e)||(this._validateIndex(e),this._validateTextSlideConfig(e,n),this.slides[e].update(null,{attrsToClear:c(this.options.attrs),isPortrait:this.isPortrait,force:n.clearSlide,text:n.text,type:T.SLIDE_TYPE.TEXT}))}},{key:"setDimensions",value:function(){if(this.slideWidth=this.element.parentElement.getBoundingClientRect().width,this.slideHeight=this.slideWidth/this.slideRatio,m.default.element===this.element.parentElement||this.options.constrainHeight){var t=m.default.element===this.element.parentElement?0:this.heightOffset,e=this.adapter.getHeight(this.adapter.adapt(this.window))-t;this.slideHeight>e&&this.adapter.getHeight(this.adaptedElement)>0&&(this.slideHeight=e,this.slideWidth=this.slideHeight*this.slideRatio)}this.slideWidth=Math.ceil(this.slideWidth*this.zoomScale),this.slideHeight=Math.floor(this.slideHeight*this.zoomScale),this.adapter.setWidth(this.$slides,this.slideWidth),this.adapter.setHeight(this.$slides,this.slideHeight),this.adapter.setWidth(this.$track,this.slideCount*(this.slideWidth+this.options.slideMarginPx));var n=this.$slides.get(0).getBoundingClientRect().height;this.adapter.setHeight(this.$trackContainer,n+this.options.trackContainerHeightOffset),this.adapter.setWidth(this.$trackContainer,this.slideWidth)}},{key:"toggleAnimation",value:function(t){this.adapter.toggleClass(this.$track,this.options.classes.animate,t)}},{key:"toggleAccessibilityVisibility",value:function(t){var e=arguments.length<=1||void 0===arguments[1]?void 0:arguments[1];this.adaptedElement.attr("aria-hidden",t),void 0!==e&&this.adaptedElement.toggleClass(this.options.classes.visiblyHidden,e)}},{key:"onWindowResize",value:function(){var t=this;setTimeout(function(){if(t.setDimensions(),t.trackingOptions.trackingEnabled)return t.changePosition(t.position,!1,void 0,void 0,!0,!0),void t.emit("resize");t.changePosition(t.position,!1),t.emit("resize")},1)}},{key:"onPanMove",value:function(t){var e=t.deltaX,n=t.center,i=0===this.position&&e>0,r=this.position===this.slideCount-1&&e<0,o=this.options,a=o.swipeSpeed,s=o.swipeSpeedEdge,u=e*(i||r?s:a);0===n.x&&0===n.y||this.move(this.position*(this.slideWidth+this.options.slideMarginPx)-u)}},{key:"onPanEnd",value:function(t){Math.abs(t.deltaX)>=this.slideWidth/6?t.deltaX>0?this.previous(S.PAN):this.next(S.PAN):this.changePosition(this.position,!0)}},{key:"setZoom",value:function(t){var e=1!==t;this.zoomScale=t,this.adapter.toggleClass(this.$trackContainer,"carousel-track-container--single-page-mode",e),this.adaptedElement.toggleClass("ssplayer-carousel--single-page-mode",e),this.onWindowResize()}},{key:"_getNewPosition",value:function(t){return Math.max(0,Math.min(t||0,this.slideCount-1))}},{key:"_isImageSlide",value:function(t){if(this.slides.length>t){var e=this.slides[t];return e.imageElement&&e.imageElement.dataset.src}return!1}},{key:"next",value:function(t,e){if("key"===t&&e&&e.focus(),this.trackingOptions.trackingEnabled){var n=this.slides[this.position];return this._getNewPosition(this.position+1)!==this.position&&this._isImageSlide(this.position)&&this.trackExitPreviousSlide({src:n.imageElement.dataset.src}),void this.changePosition(this.position+1,!0,t,void 0,void 0,!0)}this.changePosition(this.position+1,!0,t)}},{key:"previous",value:function(t,e){if("key"===t&&e&&e.focus(),this.trackingOptions.trackingEnabled){var n=this.slides[this.position];return this._getNewPosition(this.position-1)!==this.position&&this._isImageSlide(this.position)&&this.trackExitPreviousSlide({src:n.imageElement.dataset.src}),void this.changePosition(this.position-1,!0,t,void 0,void 0,!0)}this.changePosition(this.position-1,!0,t)}},{key:"trackSlideExitOnPositionChange",value:function(t){if(this.trackingOptions.trackingEnabled&&t!==this.position&&this._isImageSlide(this.position)){var e=this.slides[this.position];this.trackExitPreviousSlide({src:e.imageElement.dataset.src})}}},{key:"trackExitPreviousSlide",value:function(t){var e=t.src;this.trackingOptions.trackingEnabled&&this.emit(k.INTERNAL_TRACKING_EVENTS.IMAGE_EXIT,{src:e})}},{key:"changePosition",value:function(t,e,n){var i=arguments.length<=3||void 0===arguments[3]?y.default:arguments[3],r=this,o=!(arguments.length<=4||void 0===arguments[4])&&arguments[4],a=!(arguments.length<=5||void 0===arguments[5])&&arguments[5],s=Math.max(0,Math.min(t||0,this.slideCount-1)),u=this.position,l=this.slides[s],c=s*(this.slideWidth+this.options.slideMarginPx);e=e&&1===Math.abs(u-s),this.adapter.removeClass(this.$slides,this.options.classes.slideActive),this.adapter.setAttr(this.$slides,"tabindex",-1),this.adapter.setAttr(this.$slides,"aria-hidden",!0),l.setActive(this.options.classes.slideActive);var d=this.options.initialSlideConfigs[s]?this.options.initialSlideConfigs[s].type:T.SLIDE_TYPE.IMAGE;if(this.emit(k.INTERNAL_TRACKING_EVENTS.SLIDE_POSITION_CHANGE,{position:s}),d===T.SLIDE_TYPE.IMAGE)if(this.trackingOptions.trackingEnabled){var f=s!==u;!o&&a&&f&&this._isImageSlide(s)&&this.emit(k.INTERNAL_TRACKING_EVENTS.IMAGE_ASK_TO_RENDER,{src:l.imageElement.dataset.src}),l.loadImage({isCurrentSlide:!0,isResize:o,allowTracking:a&&f,position:s})}else l.loadImage();this._fireChangeEvent("positionChange",l.containerElement,u,s,n),this.position=s,this.move(c,e,function(){r._fireChangeEvent("afterPositionChange",l.containerElement,u,s,n);var t=s===r.startPosition?"first":"other";r.options.loadOffsets[t].forEach(function(t){r.slides[s+t]&&((r.options.initialSlideConfigs[s+t]?r.options.initialSlideConfigs[s+t].type:T.SLIDE_TYPE.IMAGE)===T.SLIDE_TYPE.IMAGE&&r.slides[s+t].loadImage())}),i()})}},{key:"move",value:function(t,e){var n=this,i=arguments.length<=2||void 0===arguments[2]?y.default:arguments[2];this.toggleAnimation(e),t*=-1,this.adapter.setCss(this.$track,"transform","translateX("+t+"px)"),e&&_.transitionEndEvent?this.adapter.one(this.$track,_.transitionEndEvent,function(){n.toggleAnimation(!1),i()}):(0,v.default)(i)}},{key:"getSlideElement",value:function(t){return this.slides[t].containerElement}},{key:"_fireChangeEvent",value:function(t,e,n,i,r){(this.initialized&&n!==i||i===this.slideCount-1||0===i)&&this.emit(t,{slideElement:e,oldPosition:n,newPosition:i,eventSource:r,position:i,length:this.slideCount,slideCount:this.slideCount})}},{key:"_validateOptions",value:function(t){if(!t.aspectRatio)throw new Error("Carousel: Must be initialized with aspectRatio!");if(!t.numPages)throw new Error("Carousel: Must be initialized with numPages!")}},{key:"_validateImageSlideConfig",value:function(t,e){if("string"!=typeof e.src)throw new TypeError("No src string in slide config at index: "+t)}},{key:"_validateTextSlideConfig",value:function(t,e){if("string"!=typeof e.text)throw new TypeError("No text string in slide config of a text type at index: "+t)}},{key:"_validateIndex",value:function(t){if(!this._shouldIgnoreSlide(t)&&(t<0||t>this.numPages-1))throw new RangeError("Carousel: Attempting to apply a config to out of range index: "+t)}},{key:"isPortrait",get:function(){return this.slideRatio<1}},{key:"slideCount",get:function(){return(this.$slides||[]).length}},{key:"isOnFirstPage",get:function(){return this.position===this.startPosition}}]),e}(E.default);e.default=O},function(t,e,n){t.exports=n(313)},function(t,e,n){"use strict";e.__esModule=!0;var i=o(n(291)),r=o(n(314));function o(t){return t&&t.__esModule?t:{default:t}}e.default=function(t,e){return(0,r.default)((0,i.default)(t,{raw:{value:(0,r.default)(e)}}))}},function(t,e,n){t.exports={default:n(315),__esModule:!0}},function(t,e,n){n(316),t.exports=n(153).Object.freeze},function(t,e,n){var i=n(159),r=n(230).onFreeze;n(205)("freeze",function(t){return function(e){return t&&i(e)?t(r(e)):e}})},function(t,e,n){var i;
/*! Hammer.JS - v2.0.7 - 2016-04-22
	 * http://hammerjs.github.io/
	 *
	 * Copyright (c) 2016 Jorik Tangelder;
	 * Licensed under the MIT license */
/*! Hammer.JS - v2.0.7 - 2016-04-22
	 * http://hammerjs.github.io/
	 *
	 * Copyright (c) 2016 Jorik Tangelder;
	 * Licensed under the MIT license */
!function(r,o,a,s){"use strict";var u,l=["","webkit","Moz","MS","ms","o"],c=o.createElement("div"),d="function",f=Math.round,h=Math.abs,p=Date.now;function v(t,e,n){return setTimeout(E(t,n),e)}function y(t,e,n){return!!Array.isArray(t)&&(m(t,n[e],n),!0)}function m(t,e,n){var i;if(t)if(t.forEach)t.forEach(e,n);else if(t.length!==s)for(i=0;i<t.length;)e.call(n,t[i],i,t),i++;else for(i in t)t.hasOwnProperty(i)&&e.call(n,t[i],i,t)}function g(t,e,n){var i="DEPRECATED METHOD: "+e+"\n"+n+" AT \n";return function(){var e=new Error("get-stack-trace"),n=e&&e.stack?e.stack.replace(/^[^\(]+?[\n$]/gm,"").replace(/^\s+at\s+/gm,"").replace(/^Object.<anonymous>\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace",o=r.console&&(r.console.warn||r.console.log);return o&&o.call(r.console,i,n),t.apply(this,arguments)}}u="function"!=typeof Object.assign?function(t){if(t===s||null===t)throw new TypeError("Cannot convert undefined or null to object");for(var e=Object(t),n=1;n<arguments.length;n++){var i=arguments[n];if(i!==s&&null!==i)for(var r in i)i.hasOwnProperty(r)&&(e[r]=i[r])}return e}:Object.assign;var b=g(function(t,e,n){for(var i=Object.keys(e),r=0;r<i.length;)(!n||n&&t[i[r]]===s)&&(t[i[r]]=e[i[r]]),r++;return t},"extend","Use `assign`."),_=g(function(t,e){return b(t,e,!0)},"merge","Use `assign`.");function T(t,e,n){var i,r=e.prototype;(i=t.prototype=Object.create(r)).constructor=t,i._super=r,n&&u(i,n)}function E(t,e){return function(){return t.apply(e,arguments)}}function w(t,e){return typeof t==d?t.apply(e&&e[0]||s,e):t}function k(t,e){return t===s?e:t}function S(t,e,n){m(P(e),function(e){t.addEventListener(e,n,!1)})}function O(t,e,n){m(P(e),function(e){t.removeEventListener(e,n,!1)})}function C(t,e){for(;t;){if(t==e)return!0;t=t.parentNode}return!1}function x(t,e){return t.indexOf(e)>-1}function P(t){return t.trim().split(/\s+/g)}function A(t,e,n){if(t.indexOf&&!n)return t.indexOf(e);for(var i=0;i<t.length;){if(n&&t[i][n]==e||!n&&t[i]===e)return i;i++}return-1}function j(t){return Array.prototype.slice.call(t,0)}function M(t,e,n){for(var i=[],r=[],o=0;o<t.length;){var a=e?t[o][e]:t[o];A(r,a)<0&&i.push(t[o]),r[o]=a,o++}return n&&(i=e?i.sort(function(t,n){return t[e]>n[e]}):i.sort()),i}function I(t,e){for(var n,i,r=e[0].toUpperCase()+e.slice(1),o=0;o<l.length;){if((i=(n=l[o])?n+r:e)in t)return i;o++}return s}var L=1;function R(t){var e=t.ownerDocument||t;return e.defaultView||e.parentWindow||r}var D="ontouchstart"in r,N=I(r,"PointerEvent")!==s,B=D&&/mobile|tablet|ip(ad|hone|od)|android/i.test(navigator.userAgent),U=25,F=1,V=2,H=4,z=8,q=1,G=2,W=4,Y=8,X=16,$=G|W,K=Y|X,J=$|K,Z=["x","y"],Q=["clientX","clientY"];function tt(t,e){var n=this;this.manager=t,this.callback=e,this.element=t.element,this.target=t.options.inputTarget,this.domHandler=function(e){w(t.options.enable,[t])&&n.handler(e)},this.init()}function et(t,e,n){var i=n.pointers.length,r=n.changedPointers.length,o=e&F&&i-r==0,a=e&(H|z)&&i-r==0;n.isFirst=!!o,n.isFinal=!!a,o&&(t.session={}),n.eventType=e,function(t,e){var n=t.session,i=e.pointers,r=i.length;n.firstInput||(n.firstInput=nt(e));r>1&&!n.firstMultiple?n.firstMultiple=nt(e):1===r&&(n.firstMultiple=!1);var o=n.firstInput,a=n.firstMultiple,u=a?a.center:o.center,l=e.center=it(i);e.timeStamp=p(),e.deltaTime=e.timeStamp-o.timeStamp,e.angle=st(u,l),e.distance=at(u,l),function(t,e){var n=e.center,i=t.offsetDelta||{},r=t.prevDelta||{},o=t.prevInput||{};e.eventType!==F&&o.eventType!==H||(r=t.prevDelta={x:o.deltaX||0,y:o.deltaY||0},i=t.offsetDelta={x:n.x,y:n.y});e.deltaX=r.x+(n.x-i.x),e.deltaY=r.y+(n.y-i.y)}(n,e),e.offsetDirection=ot(e.deltaX,e.deltaY);var c=rt(e.deltaTime,e.deltaX,e.deltaY);e.overallVelocityX=c.x,e.overallVelocityY=c.y,e.overallVelocity=h(c.x)>h(c.y)?c.x:c.y,e.scale=a?(d=a.pointers,f=i,at(f[0],f[1],Q)/at(d[0],d[1],Q)):1,e.rotation=a?function(t,e){return st(e[1],e[0],Q)+st(t[1],t[0],Q)}(a.pointers,i):0,e.maxPointers=n.prevInput?e.pointers.length>n.prevInput.maxPointers?e.pointers.length:n.prevInput.maxPointers:e.pointers.length,function(t,e){var n,i,r,o,a=t.lastInterval||e,u=e.timeStamp-a.timeStamp;if(e.eventType!=z&&(u>U||a.velocity===s)){var l=e.deltaX-a.deltaX,c=e.deltaY-a.deltaY,d=rt(u,l,c);i=d.x,r=d.y,n=h(d.x)>h(d.y)?d.x:d.y,o=ot(l,c),t.lastInterval=e}else n=a.velocity,i=a.velocityX,r=a.velocityY,o=a.direction;e.velocity=n,e.velocityX=i,e.velocityY=r,e.direction=o}(n,e);var d,f;var v=t.element;C(e.srcEvent.target,v)&&(v=e.srcEvent.target);e.target=v}(t,n),t.emit("hammer.input",n),t.recognize(n),t.session.prevInput=n}function nt(t){for(var e=[],n=0;n<t.pointers.length;)e[n]={clientX:f(t.pointers[n].clientX),clientY:f(t.pointers[n].clientY)},n++;return{timeStamp:p(),pointers:e,center:it(e),deltaX:t.deltaX,deltaY:t.deltaY}}function it(t){var e=t.length;if(1===e)return{x:f(t[0].clientX),y:f(t[0].clientY)};for(var n=0,i=0,r=0;r<e;)n+=t[r].clientX,i+=t[r].clientY,r++;return{x:f(n/e),y:f(i/e)}}function rt(t,e,n){return{x:e/t||0,y:n/t||0}}function ot(t,e){return t===e?q:h(t)>=h(e)?t<0?G:W:e<0?Y:X}function at(t,e,n){n||(n=Z);var i=e[n[0]]-t[n[0]],r=e[n[1]]-t[n[1]];return Math.sqrt(i*i+r*r)}function st(t,e,n){n||(n=Z);var i=e[n[0]]-t[n[0]],r=e[n[1]]-t[n[1]];return 180*Math.atan2(r,i)/Math.PI}tt.prototype={handler:function(){},init:function(){this.evEl&&S(this.element,this.evEl,this.domHandler),this.evTarget&&S(this.target,this.evTarget,this.domHandler),this.evWin&&S(R(this.element),this.evWin,this.domHandler)},destroy:function(){this.evEl&&O(this.element,this.evEl,this.domHandler),this.evTarget&&O(this.target,this.evTarget,this.domHandler),this.evWin&&O(R(this.element),this.evWin,this.domHandler)}};var ut={mousedown:F,mousemove:V,mouseup:H},lt="mousedown",ct="mousemove mouseup";function dt(){this.evEl=lt,this.evWin=ct,this.pressed=!1,tt.apply(this,arguments)}T(dt,tt,{handler:function(t){var e=ut[t.type];e&F&&0===t.button&&(this.pressed=!0),e&V&&1!==t.which&&(e=H),this.pressed&&(e&H&&(this.pressed=!1),this.callback(this.manager,e,{pointers:[t],changedPointers:[t],pointerType:"mouse",srcEvent:t}))}});var ft={pointerdown:F,pointermove:V,pointerup:H,pointercancel:z,pointerout:z},ht={2:"touch",3:"pen",4:"mouse",5:"kinect"},pt="pointerdown",vt="pointermove pointerup pointercancel";function yt(){this.evEl=pt,this.evWin=vt,tt.apply(this,arguments),this.store=this.manager.session.pointerEvents=[]}r.MSPointerEvent&&!r.PointerEvent&&(pt="MSPointerDown",vt="MSPointerMove MSPointerUp MSPointerCancel"),T(yt,tt,{handler:function(t){var e=this.store,n=!1,i=t.type.toLowerCase().replace("ms",""),r=ft[i],o=ht[t.pointerType]||t.pointerType,a="touch"==o,s=A(e,t.pointerId,"pointerId");r&F&&(0===t.button||a)?s<0&&(e.push(t),s=e.length-1):r&(H|z)&&(n=!0),s<0||(e[s]=t,this.callback(this.manager,r,{pointers:e,changedPointers:[t],pointerType:o,srcEvent:t}),n&&e.splice(s,1))}});var mt={touchstart:F,touchmove:V,touchend:H,touchcancel:z},gt="touchstart",bt="touchstart touchmove touchend touchcancel";function _t(){this.evTarget=gt,this.evWin=bt,this.started=!1,tt.apply(this,arguments)}T(_t,tt,{handler:function(t){var e=mt[t.type];if(e===F&&(this.started=!0),this.started){var n=function(t,e){var n=j(t.touches),i=j(t.changedTouches);e&(H|z)&&(n=M(n.concat(i),"identifier",!0));return[n,i]}.call(this,t,e);e&(H|z)&&n[0].length-n[1].length==0&&(this.started=!1),this.callback(this.manager,e,{pointers:n[0],changedPointers:n[1],pointerType:"touch",srcEvent:t})}}});var Tt={touchstart:F,touchmove:V,touchend:H,touchcancel:z},Et="touchstart touchmove touchend touchcancel";function wt(){this.evTarget=Et,this.targetIds={},tt.apply(this,arguments)}T(wt,tt,{handler:function(t){var e=Tt[t.type],n=function(t,e){var n=j(t.touches),i=this.targetIds;if(e&(F|V)&&1===n.length)return i[n[0].identifier]=!0,[n,n];var r,o,a=j(t.changedTouches),s=[],u=this.target;if(o=n.filter(function(t){return C(t.target,u)}),e===F)for(r=0;r<o.length;)i[o[r].identifier]=!0,r++;r=0;for(;r<a.length;)i[a[r].identifier]&&s.push(a[r]),e&(H|z)&&delete i[a[r].identifier],r++;if(!s.length)return;return[M(o.concat(s),"identifier",!0),s]}.call(this,t,e);n&&this.callback(this.manager,e,{pointers:n[0],changedPointers:n[1],pointerType:"touch",srcEvent:t})}});var kt=2500,St=25;function Ot(){tt.apply(this,arguments);var t=E(this.handler,this);this.touch=new wt(this.manager,t),this.mouse=new dt(this.manager,t),this.primaryTouch=null,this.lastTouches=[]}function Ct(t){var e=t.changedPointers[0];if(e.identifier===this.primaryTouch){var n={x:e.clientX,y:e.clientY};this.lastTouches.push(n);var i=this.lastTouches;setTimeout(function(){var t=i.indexOf(n);t>-1&&i.splice(t,1)},kt)}}T(Ot,tt,{handler:function(t,e,n){var i="touch"==n.pointerType,r="mouse"==n.pointerType;if(!(r&&n.sourceCapabilities&&n.sourceCapabilities.firesTouchEvents)){if(i)(function(t,e){t&F?(this.primaryTouch=e.changedPointers[0].identifier,Ct.call(this,e)):t&(H|z)&&Ct.call(this,e)}).call(this,e,n);else if(r&&function(t){for(var e=t.srcEvent.clientX,n=t.srcEvent.clientY,i=0;i<this.lastTouches.length;i++){var r=this.lastTouches[i],o=Math.abs(e-r.x),a=Math.abs(n-r.y);if(o<=St&&a<=St)return!0}return!1}.call(this,n))return;this.callback(t,e,n)}},destroy:function(){this.touch.destroy(),this.mouse.destroy()}});var xt=I(c.style,"touchAction"),Pt=xt!==s,At="auto",jt="manipulation",Mt="none",It="pan-x",Lt="pan-y",Rt=function(){if(!Pt)return!1;var t={},e=r.CSS&&r.CSS.supports;return["auto","manipulation","pan-y","pan-x","pan-x pan-y","none"].forEach(function(n){t[n]=!e||r.CSS.supports("touch-action",n)}),t}();function Dt(t,e){this.manager=t,this.set(e)}Dt.prototype={set:function(t){"compute"==t&&(t=this.compute()),Pt&&this.manager.element.style&&Rt[t]&&(this.manager.element.style[xt]=t),this.actions=t.toLowerCase().trim()},update:function(){this.set(this.manager.options.touchAction)},compute:function(){var t=[];return m(this.manager.recognizers,function(e){w(e.options.enable,[e])&&(t=t.concat(e.getTouchAction()))}),function(t){if(x(t,Mt))return Mt;var e=x(t,It),n=x(t,Lt);if(e&&n)return Mt;if(e||n)return e?It:Lt;if(x(t,jt))return jt;return At}(t.join(" "))},preventDefaults:function(t){var e=t.srcEvent,n=t.offsetDirection;if(this.manager.session.prevented)e.preventDefault();else{var i=this.actions,r=x(i,Mt)&&!Rt[Mt],o=x(i,Lt)&&!Rt[Lt],a=x(i,It)&&!Rt[It];if(r){var s=1===t.pointers.length,u=t.distance<2,l=t.deltaTime<250;if(s&&u&&l)return}if(!a||!o)return r||o&&n&$||a&&n&K?this.preventSrc(e):void 0}},preventSrc:function(t){this.manager.session.prevented=!0,t.preventDefault()}};var Nt=1,Bt=2,Ut=4,Ft=8,Vt=Ft,Ht=16;function zt(t){this.options=u({},this.defaults,t||{}),this.id=L++,this.manager=null,this.options.enable=k(this.options.enable,!0),this.state=Nt,this.simultaneous={},this.requireFail=[]}function qt(t){return t&Ht?"cancel":t&Ft?"end":t&Ut?"move":t&Bt?"start":""}function Gt(t){return t==X?"down":t==Y?"up":t==G?"left":t==W?"right":""}function Wt(t,e){var n=e.manager;return n?n.get(t):t}function Yt(){zt.apply(this,arguments)}function Xt(){Yt.apply(this,arguments),this.pX=null,this.pY=null}function $t(){Yt.apply(this,arguments)}function Kt(){zt.apply(this,arguments),this._timer=null,this._input=null}function Jt(){Yt.apply(this,arguments)}function Zt(){Yt.apply(this,arguments)}function Qt(){zt.apply(this,arguments),this.pTime=!1,this.pCenter=!1,this._timer=null,this._input=null,this.count=0}function te(t,e){return(e=e||{}).recognizers=k(e.recognizers,te.defaults.preset),new ee(t,e)}zt.prototype={defaults:{},set:function(t){return u(this.options,t),this.manager&&this.manager.touchAction.update(),this},recognizeWith:function(t){if(y(t,"recognizeWith",this))return this;var e=this.simultaneous;return e[(t=Wt(t,this)).id]||(e[t.id]=t,t.recognizeWith(this)),this},dropRecognizeWith:function(t){return y(t,"dropRecognizeWith",this)?this:(t=Wt(t,this),delete this.simultaneous[t.id],this)},requireFailure:function(t){if(y(t,"requireFailure",this))return this;var e=this.requireFail;return-1===A(e,t=Wt(t,this))&&(e.push(t),t.requireFailure(this)),this},dropRequireFailure:function(t){if(y(t,"dropRequireFailure",this))return this;t=Wt(t,this);var e=A(this.requireFail,t);return e>-1&&this.requireFail.splice(e,1),this},hasRequireFailures:function(){return this.requireFail.length>0},canRecognizeWith:function(t){return!!this.simultaneous[t.id]},emit:function(t){var e=this,n=this.state;function i(n){e.manager.emit(n,t)}n<Ft&&i(e.options.event+qt(n)),i(e.options.event),t.additionalEvent&&i(t.additionalEvent),n>=Ft&&i(e.options.event+qt(n))},tryEmit:function(t){if(this.canEmit())return this.emit(t);this.state=32},canEmit:function(){for(var t=0;t<this.requireFail.length;){if(!(this.requireFail[t].state&(32|Nt)))return!1;t++}return!0},recognize:function(t){var e=u({},t);if(!w(this.options.enable,[this,e]))return this.reset(),void(this.state=32);this.state&(Vt|Ht|32)&&(this.state=Nt),this.state=this.process(e),this.state&(Bt|Ut|Ft|Ht)&&this.tryEmit(e)},process:function(t){},getTouchAction:function(){},reset:function(){}},T(Yt,zt,{defaults:{pointers:1},attrTest:function(t){var e=this.options.pointers;return 0===e||t.pointers.length===e},process:function(t){var e=this.state,n=t.eventType,i=e&(Bt|Ut),r=this.attrTest(t);return i&&(n&z||!r)?e|Ht:i||r?n&H?e|Ft:e&Bt?e|Ut:Bt:32}}),T(Xt,Yt,{defaults:{event:"pan",threshold:10,pointers:1,direction:J},getTouchAction:function(){var t=this.options.direction,e=[];return t&$&&e.push(Lt),t&K&&e.push(It),e},directionTest:function(t){var e=this.options,n=!0,i=t.distance,r=t.direction,o=t.deltaX,a=t.deltaY;return r&e.direction||(e.direction&$?(r=0===o?q:o<0?G:W,n=o!=this.pX,i=Math.abs(t.deltaX)):(r=0===a?q:a<0?Y:X,n=a!=this.pY,i=Math.abs(t.deltaY))),t.direction=r,n&&i>e.threshold&&r&e.direction},attrTest:function(t){return Yt.prototype.attrTest.call(this,t)&&(this.state&Bt||!(this.state&Bt)&&this.directionTest(t))},emit:function(t){this.pX=t.deltaX,this.pY=t.deltaY;var e=Gt(t.direction);e&&(t.additionalEvent=this.options.event+e),this._super.emit.call(this,t)}}),T($t,Yt,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return[Mt]},attrTest:function(t){return this._super.attrTest.call(this,t)&&(Math.abs(t.scale-1)>this.options.threshold||this.state&Bt)},emit:function(t){if(1!==t.scale){var e=t.scale<1?"in":"out";t.additionalEvent=this.options.event+e}this._super.emit.call(this,t)}}),T(Kt,zt,{defaults:{event:"press",pointers:1,time:251,threshold:9},getTouchAction:function(){return[At]},process:function(t){var e=this.options,n=t.pointers.length===e.pointers,i=t.distance<e.threshold,r=t.deltaTime>e.time;if(this._input=t,!i||!n||t.eventType&(H|z)&&!r)this.reset();else if(t.eventType&F)this.reset(),this._timer=v(function(){this.state=Vt,this.tryEmit()},e.time,this);else if(t.eventType&H)return Vt;return 32},reset:function(){clearTimeout(this._timer)},emit:function(t){this.state===Vt&&(t&&t.eventType&H?this.manager.emit(this.options.event+"up",t):(this._input.timeStamp=p(),this.manager.emit(this.options.event,this._input)))}}),T(Jt,Yt,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return[Mt]},attrTest:function(t){return this._super.attrTest.call(this,t)&&(Math.abs(t.rotation)>this.options.threshold||this.state&Bt)}}),T(Zt,Yt,{defaults:{event:"swipe",threshold:10,velocity:.3,direction:$|K,pointers:1},getTouchAction:function(){return Xt.prototype.getTouchAction.call(this)},attrTest:function(t){var e,n=this.options.direction;return n&($|K)?e=t.overallVelocity:n&$?e=t.overallVelocityX:n&K&&(e=t.overallVelocityY),this._super.attrTest.call(this,t)&&n&t.offsetDirection&&t.distance>this.options.threshold&&t.maxPointers==this.options.pointers&&h(e)>this.options.velocity&&t.eventType&H},emit:function(t){var e=Gt(t.offsetDirection);e&&this.manager.emit(this.options.event+e,t),this.manager.emit(this.options.event,t)}}),T(Qt,zt,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:9,posThreshold:10},getTouchAction:function(){return[jt]},process:function(t){var e=this.options,n=t.pointers.length===e.pointers,i=t.distance<e.threshold,r=t.deltaTime<e.time;if(this.reset(),t.eventType&F&&0===this.count)return this.failTimeout();if(i&&r&&n){if(t.eventType!=H)return this.failTimeout();var o=!this.pTime||t.timeStamp-this.pTime<e.interval,a=!this.pCenter||at(this.pCenter,t.center)<e.posThreshold;if(this.pTime=t.timeStamp,this.pCenter=t.center,a&&o?this.count+=1:this.count=1,this._input=t,0===this.count%e.taps)return this.hasRequireFailures()?(this._timer=v(function(){this.state=Vt,this.tryEmit()},e.interval,this),Bt):Vt}return 32},failTimeout:function(){return this._timer=v(function(){this.state=32},this.options.interval,this),32},reset:function(){clearTimeout(this._timer)},emit:function(){this.state==Vt&&(this._input.tapCount=this.count,this.manager.emit(this.options.event,this._input))}}),te.VERSION="2.0.7",te.defaults={domEvents:!1,touchAction:"compute",enable:!0,inputTarget:null,inputClass:null,preset:[[Jt,{enable:!1}],[$t,{enable:!1},["rotate"]],[Zt,{direction:$}],[Xt,{direction:$},["swipe"]],[Qt],[Qt,{event:"doubletap",taps:2},["tap"]],[Kt]],cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}};function ee(t,e){var n;this.options=u({},te.defaults,e||{}),this.options.inputTarget=this.options.inputTarget||t,this.handlers={},this.session={},this.recognizers=[],this.oldCssProps={},this.element=t,this.input=new((n=this).options.inputClass||(N?yt:B?wt:D?Ot:dt))(n,et),this.touchAction=new Dt(this,this.options.touchAction),ne(this,!0),m(this.options.recognizers,function(t){var e=this.add(new t[0](t[1]));t[2]&&e.recognizeWith(t[2]),t[3]&&e.requireFailure(t[3])},this)}function ne(t,e){var n,i=t.element;i.style&&(m(t.options.cssProps,function(r,o){n=I(i.style,o),e?(t.oldCssProps[n]=i.style[n],i.style[n]=r):i.style[n]=t.oldCssProps[n]||""}),e||(t.oldCssProps={}))}ee.prototype={set:function(t){return u(this.options,t),t.touchAction&&this.touchAction.update(),t.inputTarget&&(this.input.destroy(),this.input.target=t.inputTarget,this.input.init()),this},stop:function(t){this.session.stopped=t?2:1},recognize:function(t){var e=this.session;if(!e.stopped){var n;this.touchAction.preventDefaults(t);var i=this.recognizers,r=e.curRecognizer;(!r||r&&r.state&Vt)&&(r=e.curRecognizer=null);for(var o=0;o<i.length;)n=i[o],2===e.stopped||r&&n!=r&&!n.canRecognizeWith(r)?n.reset():n.recognize(t),!r&&n.state&(Bt|Ut|Ft)&&(r=e.curRecognizer=n),o++}},get:function(t){if(t instanceof zt)return t;for(var e=this.recognizers,n=0;n<e.length;n++)if(e[n].options.event==t)return e[n];return null},add:function(t){if(y(t,"add",this))return this;var e=this.get(t.options.event);return e&&this.remove(e),this.recognizers.push(t),t.manager=this,this.touchAction.update(),t},remove:function(t){if(y(t,"remove",this))return this;if(t=this.get(t)){var e=this.recognizers,n=A(e,t);-1!==n&&(e.splice(n,1),this.touchAction.update())}return this},on:function(t,e){if(t!==s&&e!==s){var n=this.handlers;return m(P(t),function(t){n[t]=n[t]||[],n[t].push(e)}),this}},off:function(t,e){if(t!==s){var n=this.handlers;return m(P(t),function(t){e?n[t]&&n[t].splice(A(n[t],e),1):delete n[t]}),this}},emit:function(t,e){this.options.domEvents&&function(t,e){var n=o.createEvent("Event");n.initEvent(t,!0,!0),n.gesture=e,e.target.dispatchEvent(n)}(t,e);var n=this.handlers[t]&&this.handlers[t].slice();if(n&&n.length){e.type=t,e.preventDefault=function(){e.srcEvent.preventDefault()};for(var i=0;i<n.length;)n[i](e),i++}},destroy:function(){this.element&&ne(this,!1),this.handlers={},this.session={},this.input.destroy(),this.element=null}},u(te,{INPUT_START:F,INPUT_MOVE:V,INPUT_END:H,INPUT_CANCEL:z,STATE_POSSIBLE:Nt,STATE_BEGAN:Bt,STATE_CHANGED:Ut,STATE_ENDED:Ft,STATE_RECOGNIZED:Vt,STATE_CANCELLED:Ht,STATE_FAILED:32,DIRECTION_NONE:q,DIRECTION_LEFT:G,DIRECTION_RIGHT:W,DIRECTION_UP:Y,DIRECTION_DOWN:X,DIRECTION_HORIZONTAL:$,DIRECTION_VERTICAL:K,DIRECTION_ALL:J,Manager:ee,Input:tt,TouchAction:Dt,TouchInput:wt,MouseInput:dt,PointerEventInput:yt,TouchMouseInput:Ot,SingleTouchInput:_t,Recognizer:zt,AttrRecognizer:Yt,Tap:Qt,Pan:Xt,Swipe:Zt,Pinch:$t,Rotate:Jt,Press:Kt,on:S,off:O,each:m,merge:_,extend:b,assign:u,inherit:T,bindFn:E,prefixed:I}),(void 0!==r?r:"undefined"!=typeof self?self:{}).Hammer=te,(i=function(){return te}.call(e,n,e,t))===s||(t.exports=i)}(window,document)},function(t,e,n){var i=n(319),r=n(320)(function(t,e){return i(t,1,e)});t.exports=r},function(t,e){var n="Expected a function";t.exports=function(t,e,i){if("function"!=typeof t)throw new TypeError(n);return setTimeout(function(){t.apply(void 0,i)},e)}},function(t,e){var n="Expected a function",i=Math.max;t.exports=function(t,e){if("function"!=typeof t)throw new TypeError(n);return e=i(void 0===e?t.length-1:+e||0,0),function(){for(var n=arguments,r=-1,o=i(n.length-e,0),a=Array(o);++r<o;)a[r]=n[e+r];switch(e){case 0:return t.call(this,a);case 1:return t.call(this,n[0],a);case 2:return t.call(this,n[0],n[1],a)}var s=Array(e+1);for(r=-1;++r<e;)s[r]=n[r];return s[e]=a,t.apply(this,s)}}},function(t,e){t.exports=function(){}},function(t,e){
/*!
	* screenfull
	* v3.3.3 - 2018-09-04
	* (c) Sindre Sorhus; MIT License
	*/
!function(){"use strict";var e="undefined"!=typeof window&&void 0!==window.document?window.document:{},n=void 0!==t&&t.exports,i="undefined"!=typeof Element&&"ALLOW_KEYBOARD_INPUT"in Element,r=function(){for(var t,n=[["requestFullscreen","exitFullscreen","fullscreenElement","fullscreenEnabled","fullscreenchange","fullscreenerror"],["webkitRequestFullscreen","webkitExitFullscreen","webkitFullscreenElement","webkitFullscreenEnabled","webkitfullscreenchange","webkitfullscreenerror"],["webkitRequestFullScreen","webkitCancelFullScreen","webkitCurrentFullScreenElement","webkitCancelFullScreen","webkitfullscreenchange","webkitfullscreenerror"],["mozRequestFullScreen","mozCancelFullScreen","mozFullScreenElement","mozFullScreenEnabled","mozfullscreenchange","mozfullscreenerror"],["msRequestFullscreen","msExitFullscreen","msFullscreenElement","msFullscreenEnabled","MSFullscreenChange","MSFullscreenError"]],i=0,r=n.length,o={};i<r;i++)if((t=n[i])&&t[1]in e){for(i=0;i<t.length;i++)o[n[0][i]]=t[i];return o}return!1}(),o={change:r.fullscreenchange,error:r.fullscreenerror},a={request:function(t){var n=r.requestFullscreen;t=t||e.documentElement,/ Version\/5\.1(?:\.\d+)? Safari\//.test(navigator.userAgent)?t[n]():t[n](i?Element.ALLOW_KEYBOARD_INPUT:{})},exit:function(){e[r.exitFullscreen]()},toggle:function(t){this.isFullscreen?this.exit():this.request(t)},onchange:function(t){this.on("change",t)},onerror:function(t){this.on("error",t)},on:function(t,n){var i=o[t];i&&e.addEventListener(i,n,!1)},off:function(t,n){var i=o[t];i&&e.removeEventListener(i,n,!1)},raw:r};r?(Object.defineProperties(a,{isFullscreen:{get:function(){return Boolean(e[r.fullscreenElement])}},element:{enumerable:!0,get:function(){return e[r.fullscreenElement]}},enabled:{enumerable:!0,get:function(){return Boolean(e[r.fullscreenEnabled])}}}),n?t.exports=a:window.screenfull=a):n?t.exports=!1:window.screenfull=!1}()},function(t,e,n){var i;i=function(){"use strict";var t="aria-[a-z0-9_\\-]+|class|data-[a-z0-9_\\-]+|dir|id|role|tabindex",e=function(){if("undefined"==typeof document)return!0;return"textContent"in document.createElement("div")}()?"textContent":"innerText",n=["b","del","em","i","s","strong","sub","sup"],i=n.concat(["a","abbr","address","area","article","aside","audio","bdi","bdo","big","blockquote","br","button","center","cite","code","datalist","dd","details","dfn","div","dl","dt","fieldset","figcaption","figure","font","footer","h1","h2","h3","h4","h5","h6","header","hgroup","hr","img","ins","kbd","label","legend","li","map","mark","marquee","nav","nobr","ol","p","pre","q","rp","rt","ruby","samp","section","small","source","span","strike","table","tbody","td","tfoot","th","thead","time","tr","u","ul","var","video","wbr"]),r=[t,"alt|checked|selected|colgroup|cols|colspan|disabled|height|hidden|maxlength|method|multiple|name|placeholder|readonly|rel|required|rows|rowspan|spellcheck|target|title|width","border|caption|color|controls|coords|hreflang|label|lang|loop|marginheight|marginwidth|preload|reversed|type|usemap|clear|headers|ismap|start|datetime|accept|max|min|size|step|style|cellspacing|cellpadding"].join("|"),o="href|src",a="data:image/(?:gif|jpg|jpeg|png);base64,",s="https?|ftp|mailto|invalid";new RegExp("&#?[a-zA-Z0-9]{1,10};");function u(){}function l(t,e){if(e=e||"log","undefined"!=typeof window&&window&&window.jet&&"error"===e.toLowerCase())try{throw new Error(t)}catch(t){try{window.jet.error(t)}catch(t){}}"undefined"!=typeof console&&"function"==typeof console[e]&&console[e](t)}var c,d,f=(d=/[&<>"'\u0000\\=]/g,c={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","\0":"�","\\":"&#92;","=":"&#61;"},function(t){return null==t?null:t.toString().replace(d,function(t){return c[t]})}),h=function(){var t,n,i=/&(?:([a-z0-9]+)|#x([\da-f]{1,6})|#(\d{1,8}));/gi;if("undefined"==typeof document)return function(){throw new Error("document is undefined (i.e. you are probably in Node.js)")};t=document.createElement("div");var r={nbsp:" ",lt:"<",gt:">",amp:"&",quot:'"'};return n="function"==typeof String.fromCodePoint?function(t){return String.fromCodePoint(t)}:function(t){return t<=65535?String.fromCharCode(t):"�"},function(o){return null==o?null:(o+"").replace(i,function(i,o,a,s){return o?(u=o,r.hasOwnProperty(u)?r[u]:(t.innerHTML="&"+u+";",l=t[e],r[u]=l,l)):a||s?n(parseInt(a||s,a?16:10)||65533):"�";var u,l})}}();var p=Array.isArray||function(t){return"[object Array]"===Object.prototype.toString.call(t)};function v(t){return/[<&]/.test(t)}var y,m=Array.prototype.forEach?function(t,e){Array.prototype.forEach.call(t,e)}:function(t,e){for(var n=0,i=t.length;n<i;n++)e(t[n],n)},g="[ \t\r\n]*",b="[ \t\r\n]+";function _(t){t=p(t)?t:[t];var e,n,u,l=0,c="<(?!/?";return c+="(?:",m(t,function(t,d){e=t.tags||i,n=t.attrs||r,u=t.checkUrlAttrs||!1,0!==d&&(c+="|"),c+="(?:"+e.join("|")+")",c+="(?:",c+=g,c+="|"+b,c+="(?:(?:",c+="(?:"+n+")(?:=([\"'])[^'\"<>]*\\"+ ++l+")?",u&&(c+="|(?:"+o+")=([\"'])(?:(?:"+s+")(?::|&#(?:58|x3a);)|(?:"+a+")|[/.#?]|&#(?:35|4[67]|63|x(?:2[3ef]|3f));)[^'\"<>]*\\"+ ++l),c+=")"+g+")+",c+=")"}),c+=")",c+="/?>)",new RegExp(c,"i")}function T(t){return _({tags:t=t||i,checkUrlAttrs:!0})}function E(t,e){var n=(e=e||{}).allowTags,i=!1!==e.hasCustomElementMarkup;return n?!T(n).test(t):i?!E.R_UNSAFE_CUSTOM_ELEMENT.test(t):!E.R_UNSAFE_HTML.test(t)}function w(t){return t.replace(/<[^>]*>|[<>'"&\\]/g,"")}function k(t,e,n){if(null==t)return null;t=t.toString();var i=e?function(t,e){var n={};return t.replace(/\{([^}]+)\}/g,function(t,i){var r,o=t;if(n.hasOwnProperty(i))return n[i];if(e.hasOwnProperty(i)){if(o=e[i],!((r="string"==typeof o)||o instanceof u||"number"==typeof o))throw new Error("Only strings, numbers, and jSecure types are allowed as placeholder replacements.");o=r?f(o):o.toString()}return n[i]=o,o})}(t,e):t,r=t;return v(i)&&!E(i,n)&&(i=w(i),l("Content contains tags or attributes that are not allowed:\nContent: "+r,"error")),i}function S(t,e){for(var n=+e.length,i=0,r=t.length;i<n;i++)t[r++]=e[i];return t.length=r,t}E.R_UNSAFE_HTML=T(),E.R_UNSAFE_CUSTOM_ELEMENT=_([{tags:i,checkUrlAttrs:!0},{tags:[(y={tag:"li-icon",attrs:"active|a11y-text|animate|color|size|type"}).tag],attrs:[t,y.attrs].join("|"),checkUrlAttrs:!1}]);var O={option:[1,'<select multiple="multiple">',"</select>"],thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};O.optgroup=O.option,O.tbody=O.tfoot=O.colgroup=O.caption=O.thead,O.th=O.td;var C=/<([\w:]+)/;function x(t,e){var n,i,r,o,a,s,u,l=e.createDocumentFragment(),c=[];for(a=0,u=t.length;a<u;a++)if((o=t[a])||0===o)if("string"==typeof o){for(r=r||l.appendChild(e.createElement("div")),n=(C.exec(o)||["",""])[1].toLowerCase(),M(r,(i=O[n]||O._default)[1]+o+i[2]),s=i[0];s--;)r.lastChild&&r.lastChild.nodeType===Node.ELEMENT_NODE&&(r=r.lastChild);S(c,r.childNodes),(r=l.firstChild).textContent=""}else S(c,o.nodeType?[o]:o);for(l.textContent="",o=c[a=0];o;)l.appendChild(o),o=c[++a];return l}function P(t,e){var n;if(e=e||document.implementation&&document.implementation.createHTMLDocument?document.implementation.createHTMLDocument(""):document,"string"==typeof t)n=x([t],e);else{if(!p(t))return t;n=x(t,e)}return S([],n.childNodes)}var A=k,j=k;function M(t,n,i){var r=k(n,i);return v(r)?t.innerHTML=r:t[e]=r,r}function I(t,e){if(!(this instanceof I))return new I(t,e);(e=e||{}).allowTags=e.allowTags?e.allowTags.reduce(function(t,e){return t.concat(e)},[]):null,this._string=t,this._options=e}function L(t){for(var e=arguments.length,n=Array(e>1?e-1:0),i=1;i<e;i++)n[i-1]=arguments[i];var r="",o=void 0,a=n.length;return t&&t.forEach(function(t,e){r+=t,e<a&&(o=n[e],r+=o instanceof I?o:f(o))}),j(r)}I.prototype=function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t}(new u,{toString:function(){var t=this._string,e=this._stringVal,n=t;return void 0!==e?e:(E(t,this._options)||(n=t,t=w(t),l("UnsafeString contains tags or attributes that are not allowed.\nString: "+n,"error")),this._stringVal=t,t)}});var R=/ /g,D=/[\s\u0000<>"]|%00/,N=/\\/,B=/([.]|%2e){2}/i,U=new RegExp("^(?:HTTPS?|https?|ftp|mailto|tel|sms|blob|voyager|android-app|linkedin|chrome-extension|invalid|data:(?:(?:image/(?:gif|jpe?g|png|webp|bmp|tiff))|(?:application/x-font-woff)|(?:font/(?:opentype|ttf)))[;,]|[/.#?])");function F(t){var e=void 0;if("string"!=typeof t)return l("jSecure Warning: url must be a string","error"),"invalid://";if((e=t.trim()).indexOf(" ")>-1&&(l("jSecure Warning: url should not contain spaces: "+t,"warn"),e=e.replace(R,"+")),!U.test(e))return l("jSecure Error: URL should be absolute with allowed schemas, relative, a hash fragment or query string. "+t,"error"),"invalid://";if(D.test(e))return l("jSecure Error: not valid url character found in url: "+t,"error"),"invalid://";var n=e.split("?")[0],i=void 0,r=!1;try{i=decodeURI(n)}catch(t){r=!0}return r?(l("jSecure Error: malformed url path detected: "+n),"invalid://"):N.test(n)||B.test(n)||B.test(i)?(l("jSecure Error: malicious data found in url path: "+n,"error"),"invalid://"):t}var V={redirect:function(t){window&&(window.location.href=t)}};return{ALLOWED_TAGS:i,FORMATTING_TAGS:n,htmlEncode:f,htmlUnencode:h,log:l,mk:L,parseHTML:P,parseSelector:function(t){return"string"==typeof t&&/^(?:\s*(<[\w\W]+>)[^>]*)$/.test(t)?[]:t},processTemplate:A,reEncode:function(t){return f(h(t))},_redirector:V,redirect:function(t){var e=F(t);e===t&&V.redirect(e)},sanitizeHTML:j,sanitizeUrl:F,setElementContent:M,text:function(t){return l("jSecure.text() is deprecated. Please use jSecure.htmlEncode().","warn"),f(t)},unsafe:function(t){return t},UnsafeString:I}},t.exports=i()},function(t,e,n){"use strict";var i=n(251).default,r=n(196).default;Object.defineProperty(e,"__esModule",{value:!0});var o=r(n(325)),a=r(n(326)),s=r(n(284));var u,l=(u=document.createElement("temp"),(0,a.default)((0,s.default)({MozTransition:"transitionend",OTransition:"oTransitionEnd",WebkitTransition:"webkitTransitionEnd",transition:"transitionend"}),function(t){var e=i(t,1)[0];return!(0,o.default)(u.style[e])})[1]);e.transitionEndEvent=l},function(t,e){t.exports=function(t){return void 0===t}},function(t,e,n){var i=n(327),r=n(331),o=n(332),a=n(333),s=n(288);var u,l,c=(u=r,function(t,e,n){if(e=i(e,n,3),s(t)){var r=a(t,e,l);return r>-1?t[r]:void 0}return o(t,e,u)});t.exports=c},function(t,e,n){var i=n(328),r=n(330),o=n(288),a=n(284),s=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\n\\]|\\.)*?\1)\]/,u=/^\w*$/,l=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\n\\]|\\.)*?)\2)\]/g,c=/\\(\\)?/g;function d(t,e,n){if(null!=t){void 0!==n&&n in p(t)&&(e=[n]);for(var i=0,r=e.length;null!=t&&i<r;)t=t[e[i++]];return i&&i==r?t:void 0}}function f(t,e){var n=typeof t;return!!("string"==n&&u.test(t)||"number"==n)||!o(t)&&(!s.test(t)||null!=e&&t in p(e))}function h(t){return t==t&&!y(t)}function p(t){return y(t)?t:Object(t)}function v(t){if(o(t))return t;var e=[];return function(t){return null==t?"":t+""}(t).replace(l,function(t,n,i,r){e.push(i?r.replace(c,"$1"):n||t)}),e}function y(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}function m(t){return t}t.exports=function(t,e,n){var s,u,l=typeof t;return"function"==l?void 0===e?t:r(t,e,n):null==t?m:"object"==l?function(t){var e=function(t){for(var e=a(t),n=e.length;n--;)e[n][2]=h(e[n][1]);return e}(t);if(1==e.length&&e[0][2]){var n=e[0][0],r=e[0][1];return function(t){return null!=t&&t[n]===r&&(void 0!==r||n in p(t))}}return function(t){return function(t,e,n){var r=e.length,o=r,a=!n;if(null==t)return!o;for(t=p(t);r--;){var s=e[r];if(a&&s[2]?s[1]!==t[s[0]]:!(s[0]in t))return!1}for(;++r<o;){var u=(s=e[r])[0],l=t[u],c=s[1];if(a&&s[2]){if(void 0===l&&!(u in t))return!1}else{var d=n?n(l,c,u):void 0;if(!(void 0===d?i(c,l,n,!0):d))return!1}}return!0}(t,e)}}(t):void 0===e?f(s=t)?(u=s,function(t){return null==t?void 0:t[u]}):function(t){var e=t+"";return t=v(t),function(n){return d(n,t,e)}}(s):function(t,e){var n=o(t),r=f(t)&&h(e),a=t+"";return t=v(t),function(o){if(null==o)return!1;var s,u,l=a;if(o=p(o),(n||!r)&&!(l in o)){if(null==(o=1==t.length?o:d(o,function(t,e,n){var i=-1,r=t.length;(e=null==e?0:+e||0)<0&&(e=-e>r?0:r+e),(n=void 0===n||n>r?r:+n||0)<0&&(n+=r),r=e>n?0:n-e>>>0,e>>>=0;for(var o=Array(r);++i<r;)o[i]=t[i+e];return o}(t,0,-1))))return!1;l=(u=(s=t)?s.length:0)?s[u-1]:void 0,o=p(o)}return o[l]===e?void 0!==e||l in o:i(e,o[l],void 0,!0)}}(t,e)}},function(t,e,n){var i=n(288),r=n(329),o=n(285),a="[object Arguments]",s="[object Array]",u="[object Boolean]",l="[object Date]",c="[object Error]",d="[object Number]",f="[object Object]",h="[object RegExp]",p="[object String]";var v=Object.prototype,y=v.hasOwnProperty,m=v.toString;function g(t,e){for(var n=-1,i=t.length;++n<i;)if(e(t[n],n,t))return!0;return!1}t.exports=function t(e,n,v,b,_,T){return e===n||(null==e||null==n||!function(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}(e)&&!function(t){return!!t&&"object"==typeof t}(n)?e!=e&&n!=n:function(t,e,n,v,b,_,T){var E=i(t),w=i(e),k=s,S=s;E||((k=m.call(t))==a?k=f:k!=f&&(E=r(t))),w||((S=m.call(e))==a?S=f:S!=f&&(w=r(e)));var O=k==f,C=S==f,x=k==S;if(x&&!E&&!O)return function(t,e,n){switch(n){case u:case l:return+t==+e;case c:return t.name==e.name&&t.message==e.message;case d:return t!=+t?e!=+e:t==+e;case h:case p:return t==e+""}return!1}(t,e,k);if(!b){var P=O&&y.call(t,"__wrapped__"),A=C&&y.call(e,"__wrapped__");if(P||A)return n(P?t.value():t,A?e.value():e,v,b,_,T)}if(!x)return!1;_||(_=[]),T||(T=[]);for(var j=_.length;j--;)if(_[j]==t)return T[j]==e;_.push(t),T.push(e);var M=(E?function(t,e,n,i,r,o,a){var s=-1,u=t.length,l=e.length;if(u!=l&&!(r&&l>u))return!1;for(;++s<u;){var c=t[s],d=e[s],f=i?i(r?d:c,r?c:d,s):void 0;if(void 0!==f){if(f)continue;return!1}if(r){if(!g(e,function(t){return c===t||n(c,t,i,r,o,a)}))return!1}else if(c!==d&&!n(c,d,i,r,o,a))return!1}return!0}:function(t,e,n,i,r,a,s){var u=o(t),l=u.length,c=o(e).length;if(l!=c&&!r)return!1;for(var d=l;d--;){var f=u[d];if(!(r?f in e:y.call(e,f)))return!1}for(var h=r;++d<l;){f=u[d];var p=t[f],v=e[f],m=i?i(r?v:p,r?p:v,f):void 0;if(!(void 0===m?n(p,v,i,r,a,s):m))return!1;h||(h="constructor"==f)}if(!h){var g=t.constructor,b=e.constructor;if(g!=b&&"constructor"in t&&"constructor"in e&&!("function"==typeof g&&g instanceof g&&"function"==typeof b&&b instanceof b))return!1}return!0})(t,e,n,v,b,_,T);return _.pop(),T.pop(),M}(e,n,t,v,b,_,T))}},function(t,e){var n=9007199254740991,i={};i["[object Float32Array]"]=i["[object Float64Array]"]=i["[object Int8Array]"]=i["[object Int16Array]"]=i["[object Int32Array]"]=i["[object Uint8Array]"]=i["[object Uint8ClampedArray]"]=i["[object Uint16Array]"]=i["[object Uint32Array]"]=!0,i["[object Arguments]"]=i["[object Array]"]=i["[object ArrayBuffer]"]=i["[object Boolean]"]=i["[object DataView]"]=i["[object Date]"]=i["[object Error]"]=i["[object Function]"]=i["[object Map]"]=i["[object Number]"]=i["[object Object]"]=i["[object RegExp]"]=i["[object Set]"]=i["[object String]"]=i["[object WeakMap]"]=!1;var r=Object.prototype.toString;t.exports=function(t){return function(t){return!!t&&"object"==typeof t}(t)&&function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=n}(t.length)&&!!i[r.call(t)]}},function(t,e){function n(t){return t}t.exports=function(t,e,i){if("function"!=typeof t)return n;if(void 0===e)return t;switch(i){case 1:return function(n){return t.call(e,n)};case 3:return function(n,i,r){return t.call(e,n,i,r)};case 4:return function(n,i,r,o){return t.call(e,n,i,r,o)};case 5:return function(n,i,r,o,a){return t.call(e,n,i,r,o,a)}}return function(){return t.apply(e,arguments)}}},function(t,e,n){var i,r,o=n(285),a=9007199254740991,s=(i=function(t,e){return u(t,e,o)},function(t,e){var n,o=t?c(t):0;if(!("number"==typeof(n=o)&&n>-1&&n%1==0&&n<=a))return i(t,e);for(var s=r?o:-1,u=d(t);(r?s--:++s<o)&&!1!==e(u[s],s,u););return t}),u=function(t){return function(e,n,i){for(var r=d(e),o=i(e),a=o.length,s=t?a:-1;t?s--:++s<a;){var u=o[s];if(!1===n(r[u],u,r))break}return e}}();var l,c=(l="length",function(t){return null==t?void 0:t[l]});function d(t){return function(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}(t)?t:Object(t)}t.exports=s},function(t,e){t.exports=function(t,e,n,i){var r;return n(t,function(t,n,o){if(e(t,n,o))return r=i?n:t,!1}),r}},function(t,e){t.exports=function(t,e,n){for(var i=t.length,r=n?i:-1;n?r--:++r<i;)if(e(t[r],r,t))return r;return-1}},function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.SLIDE_TYPE={IMAGE:"image",TEXT:"text"}},function(t,e,n){"use strict";var i=n(240).default,r=n(245).default,o=n(196).default;Object.defineProperty(e,"__esModule",{value:!0});var a=o(n(323)),s=o(n(321)),u=o(n(336)),l=o(n(337)),c=n(334),d=function(){function t(e,n){var i=n.className,o=n.indexAttrName,a=n.defaultAspectRatio,l=n.loaderElementTemplate,c=n.slideImageLoadCallback,d=void 0===c?s.default:c,f=n.slideImageLoadErrorCallback,h=void 0===f?s.default:f;r(this,t),this.index=e,this.className=i,this.indexAttrName=o,this.defaultAspectRatio=a,this.loaderElementTemplate=l,this.slideImageLoadCallback=d,this.slideImageLoadErrorCallback=h,this.containerElement=(0,u.default)({index:e,slideClass:i,indexAttribute:o}),this.state={imageLoaded:!1,imageSrc:null}}return i(t,[{key:"setActive",value:function(t){this.containerElement.classList.add(t),this.containerElement.removeAttribute("tabindex"),this.containerElement.removeAttribute("aria-hidden")}},{key:"update",value:function(t,e){var n=e.attrsToClear,i=e.isPortrait,r=e.force,o=e.text,s=e.type;if(!this.initialized||r)this._create(t,{attrsToClear:n,isPortrait:i,text:o,type:s}),this.initialized=!0;else if(s===c.SLIDE_TYPE.IMAGE){var u=a.default.sanitizeUrl(t);this.imageElement.classList.remove("carousel-element-loaded","carousel-element-load-success","carousel-element-load-error"),this.imageElement.dataset.src=u,this._updateSlideState(u)}}},{key:"loadImage",value:function(){var t=this,e=arguments.length<=0||void 0===arguments[0]?{}:arguments[0],n=e.isCurrentSlide,i=void 0!==n&&n,r=e.isResize,o=void 0!==r&&r,a=e.allowTracking,s=void 0!==a&&a,u=e.position,l=this.imageElement.dataset.src,c=new Image,d=i&&!o&&s;c.onerror=function(){t.containerElement.classList.add("carousel-slide-error"),t.imageElement.classList.add("carousel-element-loaded","carousel-element-load-error"),d&&t.slideImageLoadErrorCallback({src:l}),t.state.imageLoaded=!1},c.onload=function(){if(l===t.imageElement.dataset.src){t.imageElement.classList.add("carousel-element-loaded","carousel-element-load-success"),t.imageElement.src=c.src,d&&t.slideImageLoadCallback({src:l,position:u}),t.state.imageLoaded=!0;var e=c.naturalWidth/c.naturalHeight;Math.abs(t.defaultAspectRatio-e)>.1&&(t.containerElement.classList.add("carousel-slide--irregular-aspect-ratio"),e<t.defaultAspectRatio?t.imageElement.classList.add("slide-is-lower-aspect-ratio"):t.imageElement.classList.add("slide-is-higher-aspect-ratio")),t._stopLoader()}},this.imageElement.src||this._startLoader(),c.src=l}},{key:"_create",value:function(t,e){var n=e.attrsToClear,i=e.isPortrait,r=e.text,o=e.type;if(this.containerElement=(0,l.default)({slide:this.containerElement,slideClass:this.className,indexAttribute:this.indexAttrName,index:this.index,clearAttrs:n}),o===c.SLIDE_TYPE.IMAGE){var s,u=a.default.sanitizeUrl(t);this.imageElement=document.createElement("img");var d=i?["carousel-lazy-element","carousel-slide-is-portrait"]:["carousel-lazy-element"];(s=this.imageElement.classList).add.apply(s,d),this.imageElement.dataset.src=u,this.imageElement.alt=this.index+1,this._updateSlideState(u),this.containerElement.appendChild(this.imageElement)}else if(o===c.SLIDE_TYPE.TEXT){var f;this.textElement=document.createElement("p"),this.textElement.innerText=a.default.sanitizeHTML(r);var h=i?["carousel-slide-is-portrait"]:[];(f=this.textElement.classList).add.apply(f,h),this.containerElement.appendChild(this.textElement)}}},{key:"_startLoader",value:function(){this.loaderElementTemplate.classList.add("ssplayer-active")}},{key:"_stopLoader",value:function(){this.loaderElementTemplate.classList.remove("ssplayer-active")}},{key:"_updateSlideState",value:function(t){this.state.imageSrc=t,this.state.imageLoaded=!1}}]),t}();e.default=d,t.exports=e.default},function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){var e=t.element,n=t.slideClass,i=t.indexAttribute,r=t.index,o=e||document.createElement("li");"string"==typeof n&&o.setAttribute("class",n);"string"==typeof i&&"number"==typeof r&&o.setAttribute(i,r);return o},t.exports=e.default},function(t,e,n){"use strict";var i=n(196).default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){var e=t.slide,n=t.slideClass,i=t.indexAttribute,o=t.index,a=t.clearAttrs;return e.textContent="",a.forEach(function(t){e.removeAttribute(t)}),(0,r.default)({element:e,slideClass:n,indexAttribute:i,index:o})};var r=i(n(336));t.exports=e.default},function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.TRACKING_EVENTS={MEDIA_ASK_TO_RENDER_EVENT:"MediaAskToRenderEvent",MEDIA_RENDERED_EVENT:"MediaRenderedEvent",MEDIA_EXIT_EVENT:"MediaExitEvent",MEDIA_PLAYBACK_ERROR_V2_EVENT:"MediaPlaybackErrorV2Event"};e.DOCUMENT_MEDIA_TYPE="DOCUMENT";e.INTERNAL_TRACKING_EVENTS={INITIALIZE_SLIDE_CONTEXT:"initializeSlideContext",IMAGE_LOADED:"imageLoaded",IMAGE_LOAD_ERROR:"imageLoadError",IMAGE_ASK_TO_RENDER:"imageAskToRender",IMAGE_EXIT:"imageExit",SLIDE_POSITION_CHANGE:"slidePositionChange"};e.DEFAULT_ROOT_NODE_SELECTOR=".ssplayer-presentation-player"},function(t,e,n){"use strict";var i=n(201).default,r=n(211).default,o=n(240).default,a=n(245).default,s=n(196).default;Object.defineProperty(e,"__esModule",{value:!0});var u=s(n(247)),l=n(340),c=function(t){function e(t){var n=arguments.length<=1||void 0===arguments[1]?{}:arguments[1],r=arguments.length<=2||void 0===arguments[2]?t.ownerDocument:arguments[2];return function(){a(this,e);i(Object.getPrototypeOf(e.prototype),"constructor",this).call(this,t,n,{progressBarLabel:":root"}),this.options=(0,u.default)({},n,{classes:{progress:"ssplayer-progress-bar__progress",progressBarScrubber:"ssplayer-progress-bar__scrubber",progressContainer:"ssplayer-progress-bar__container",progressValue:"ssplayer-progress-bar__progress-value"}}),this.length-=1,this.$progress=this.adapter.find(this.adaptedElement,"."+this.options.classes.progress),this.$progressValue=this.adapter.find(this.adaptedElement,"."+this.options.classes.progressValue),this.$progressContainer=this.adapter.find(this.adaptedElement,"."+this.options.classes.progressContainer),this.$scrubber=this.adapter.find(this.adaptedElement,"."+this.options.classes.progressBarScrubber),this.document=r,this.adaptedElement.attr({"aria-valuemin":1,"aria-valuemax":this.length+1}),this._setAriaForPosition(this.position),this.options.isSinglePage&&this.hide()}.apply(this,arguments)}return r(e,t),o(e,[{key:"beforeInit",value:function(){i(Object.getPrototypeOf(e.prototype),"beforeInit",this).call(this),this.addEvents([this.element,"mouseenter",this.onMouseEnter],[this.element,"mouseleave",this.onMouseLeave],[this.element,"mousedown",this.onMouseDown],[this.$progressContainer,"click",this.onClick],[this.$progressContainer,"mousemove",this.onMouseMove])}},{key:"calculatePosition",value:function(t){var e=(0,l.getCoordinates)(t,this.element),n=e.x,i=e.width;return(0,l.calculateNormalizedValue)(n,i,0,this.length)}},{key:"toggleAnimation",value:function(t){this.adapter.toggleClass(this.adaptedElement,"meter-animated",t)}},{key:"changePosition",value:function(t,e){this.toggleAnimation(e),this.position=t;var n=this.$progress.width()/this.length,i=Math.floor(n*this.position);this.$scrubber.css({transform:"translateX("+i+"px)"}),this.$progressValue.css({width:this.position/this.length*100+"%"}),this._setAriaForPosition(this.position),this.emit("positionChange",this.position)}},{key:"onClick",value:function(t){this.emit("positionClick",this.calculatePosition(t))}},{key:"onMouseDown",value:function(){this._unregisterOneOffListener(),this._oneOffOnDocumentMouseDrag=this.onDocumentMouseDrag.bind(this),this.document.addEventListener("mousemove",this._oneOffOnDocumentMouseDrag),this._oneOffOnDocumentMouseUp=this.onDocumentMouseUp.bind(this),this.document.addEventListener("mouseup",this._oneOffOnDocumentMouseUp)}},{key:"onMouseEnter",value:function(){this.progressOver=!0,this.emit("mouseEnter")}},{key:"onMouseLeave",value:function(){this.progressOver=!1,this.emit("mouseLeave")}},{key:"onMouseMove",value:function(t){var e=(0,l.getCoordinates)(t,this.element).x;this.emit("positionHover",{x:e,position:this.calculatePosition(t)})}},{key:"onDocumentMouseDrag",value:function(t){var e=(0,l.getCoordinates)(t,this.$progressContainer[0]),n=e.x,i=e.width,r=(0,l.calculateNormalizedValue)(n,i,0,this.length);this.emit("positionHover",{x:n,position:r}),this.emit("showThumbnailPreview"),this.emit("positionDrag",r)}},{key:"onDocumentMouseUp",value:function(){this.progressOver||this.emit("hideThumbnailPreview"),this._unregisterOneOffListener()}},{key:"_unregisterOneOffListener",value:function(){this.document.removeEventListener("mousemove",this._oneOffOnDocumentMouseDrag),this.document.removeEventListener("mouseup",this._oneOffOnDocumentMouseUp)}},{key:"_setAriaForPosition",value:function(t){var e=t+1;this.adaptedElement.attr({"aria-valuenow":e,"aria-valuetext":e}),this.a11yControlText&&this.adaptedElement.attr({"aria-valuetext":this.a11yControlText+" "+e+"/"+(this.length+1),"aria-label":this.a11yControlText+" "+e+"/"+(this.length+1)})}},{key:"_applyA11yOnElement",value:function(t,e){0!==(":root"===t?this.adaptedElement:this.adaptedElement.find(t)).length&&e&&(this.a11yControlText=e)}},{key:"progressBarWidthInPx",get:function(){return this.$progress.width()}}]),e}(s(n(341)).default);e.default=c,t.exports=e.default},function(t,e){"use strict";function n(t){var e,n,i,r,o,a=arguments.length<=1||void 0===arguments[1]?t.target:arguments[1];return e=a.getBoundingClientRect(),n=e.left,i=e.top,r=e.width,o=e.height,{x:t.clientX-Math.round(n),y:t.clientY-Math.round(i),width:r,height:o}}function i(t,e){var n=arguments.length<=2||void 0===arguments[2]?0:arguments[2],i=arguments.length<=3||void 0===arguments[3]?1:arguments[3];return 0===e?n:Math.max(n,Math.min(n+(i-n)*t/e,i))}Object.defineProperty(e,"__esModule",{value:!0}),e.getCoordinates=n,e.calculateValue=i,e.calculateNormalizedValue=function(t,e){var n=arguments.length<=2||void 0===arguments[2]?0:arguments[2],i=arguments.length<=3||void 0===arguments[3]?1:arguments[3];if(0===t)return n;var r=1/(i-n+1);return Math.floor(Math.min(Math.max(n,Math.floor(t/e/r)+n),i))},e.calculateHorizontalValue=function(t){var e=arguments.length<=1||void 0===arguments[1]?t.target:arguments[1],r=arguments.length<=2||void 0===arguments[2]?0:arguments[2],o=arguments.length<=3||void 0===arguments[3]?1:arguments[3];return a=n(t,e),s=a.x,u=a.width,i(s,u,r,o);var a,s,u},e.calculateVerticalValue=function(t){var e=arguments.length<=1||void 0===arguments[1]?t.target:arguments[1],r=arguments.length<=2||void 0===arguments[2]?0:arguments[2],o=arguments.length<=3||void 0===arguments[3]?1:arguments[3];return a=n(t,e),s=a.y,u=a.height,i(s,u,r,o);var a,s,u}},function(t,e,n){"use strict";var i=n(201).default,r=n(211).default,o=n(240).default,a=n(245).default,s=n(196).default;Object.defineProperty(e,"__esModule",{value:!0});var u=s(n(247)),l=n(261),c=function(t){function e(t,n,r){void 0===n&&(n={}),a(this,e),i(Object.getPrototypeOf(e.prototype),"constructor",this).call(this,t,n,r),l.events.mixin(this),this.options=(0,u.default)({},n,{position:0,length:0}),this.position=this.options.position,this.length=this.options.length}return r(e,t),o(e,[{key:"next",value:function(){this.position=Math.min(this.length-1,this.position+1)}},{key:"previous",value:function(){this.position=Math.max(0,this.position-1)}}]),e}(s(n(342)).default);e.default=c,t.exports=e.default},function(t,e,n){"use strict";var i=n(201).default,r=n(211).default,o=n(240).default,a=n(245).default,s=n(307).default,u=n(196).default;Object.defineProperty(e,"__esModule",{value:!0});var l=u(n(343)),c=u(n(344)),d=u(n(248)),f=n(345),h=n(304);var p=function(t){function e(t,n,r){var o,u=n.a11y;if(a(this,e),i(Object.getPrototypeOf(e.prototype),"constructor",this).call(this,t),(0,c.default)(u)||(0,c.default)(r))return(0,c.default)(u)&&(0,f.warn)(this.constructor.name+" is an AccessibleComponent but is missing a11y options."),void((0,c.default)(r)&&(0,f.warn)(this.constructor.name+" is an AccessibleComponent but is missing a control map."));s(o=u).map(function(t){return o[t]}).forEach(function(t){if("string"!=typeof t)throw new TypeError("Control label '"+t+"' was type "+typeof t+", expected string.")}),function(t,e){var n=s(t);s(e).forEach(function(e){(0,l.default)(n,e)||(0,f.warn)("Control '"+e+"' does not have a corresponding entry in the given control map. This will lead to a no-op when a11y attributes are applied! The control map is:",t)})}(r,u),this._applyAccessibilityControls(r,u)}return r(e,t),o(e,[{key:"_applyAccessibilityControls",value:function(t,e){var n=this,i=s(t);s(e).filter(function(t){return(0,l.default)(i,t)}).forEach(function(i){n._applyA11yOnElement(t[i],e[i])})}},{key:"_applyA11yOnElement",value:function(t,e){var n=this.adaptedElement.find(t);if(0!==n.length&&e){var i=(0,h.createA11yControlTextElement)(e);n.append(i)}}}]),e}(d.default);e.default=p,t.exports=e.default},function(t,e){var n=1/0,i=9007199254740991,r=1.7976931348623157e308,o=NaN,a="[object Arguments]",s="[object Function]",u="[object GeneratorFunction]",l="[object String]",c="[object Symbol]",d=/^\s+|\s+$/g,f=/^[-+]0x[0-9a-f]+$/i,h=/^0b[01]+$/i,p=/^0o[0-7]+$/i,v=/^(?:0|[1-9]\d*)$/,y=parseInt;function m(t){return t!=t}function g(t,e){return function(t,e){for(var n=-1,i=t?t.length:0,r=Array(i);++n<i;)r[n]=e(t[n],n,t);return r}(e,function(e){return t[e]})}var b,_,T=Object.prototype,E=T.hasOwnProperty,w=T.toString,k=T.propertyIsEnumerable,S=(b=Object.keys,_=Object,function(t){return b(_(t))}),O=Math.max;function C(t,e){var n=A(t)||function(t){return function(t){return I(t)&&j(t)}(t)&&E.call(t,"callee")&&(!k.call(t,"callee")||w.call(t)==a)}(t)?function(t,e){for(var n=-1,i=Array(t);++n<t;)i[n]=e(n);return i}(t.length,String):[],i=n.length,r=!!i;for(var o in t)!e&&!E.call(t,o)||r&&("length"==o||P(o,i))||n.push(o);return n}function x(t){if(n=(e=t)&&e.constructor,i="function"==typeof n&&n.prototype||T,e!==i)return S(t);var e,n,i,r=[];for(var o in Object(t))E.call(t,o)&&"constructor"!=o&&r.push(o);return r}function P(t,e){return!!(e=null==e?i:e)&&("number"==typeof t||v.test(t))&&t>-1&&t%1==0&&t<e}var A=Array.isArray;function j(t){return null!=t&&function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=i}(t.length)&&!function(t){var e=M(t)?w.call(t):"";return e==s||e==u}(t)}function M(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}function I(t){return!!t&&"object"==typeof t}t.exports=function(t,e,i,a){var s;t=j(t)?t:(s=t)?g(s,function(t){return j(t)?C(t):x(t)}(s)):[],i=i&&!a?function(t){var e=function(t){if(!t)return 0===t?t:0;if((t=function(t){if("number"==typeof t)return t;if(function(t){return"symbol"==typeof t||I(t)&&w.call(t)==c}(t))return o;if(M(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=M(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=t.replace(d,"");var n=h.test(t);return n||p.test(t)?y(t.slice(2),n?2:8):f.test(t)?o:+t}(t))===n||t===-n){var e=t<0?-1:1;return e*r}return t==t?t:0}(t),i=e%1;return e==e?i?e-i:e:0}(i):0;var u=t.length;return i<0&&(i=O(u+i,0)),function(t){return"string"==typeof t||!A(t)&&I(t)&&w.call(t)==l}(t)?i<=u&&t.indexOf(e,i)>-1:!!u&&function(t,e,n){if(e!=e)return function(t,e,n,i){for(var r=t.length,o=n+(i?1:-1);i?o--:++o<r;)if(e(t[o],o,t))return o;return-1}(t,m,n);for(var i=n-1,r=t.length;++i<r;)if(t[i]===e)return i;return-1}(t,e,i)>-1}},function(t,e,n){(function(t,n){var i=9007199254740991,r="[object Arguments]",o="[object Function]",a="[object GeneratorFunction]",s="[object Map]",u="[object Set]",l=/^\[object .+?Constructor\]$/,c="object"==typeof t&&t&&t.Object===Object&&t,d="object"==typeof self&&self&&self.Object===Object&&self,f=c||d||Function("return this")(),h="object"==typeof e&&e&&!e.nodeType&&e,p=h&&"object"==typeof n&&n&&!n.nodeType&&n,v=p&&p.exports===h;var y,m,g,b=Function.prototype,_=Object.prototype,T=f["__core-js_shared__"],E=(y=/[^.]+$/.exec(T&&T.keys&&T.keys.IE_PROTO||""))?"Symbol(src)_1."+y:"",w=b.toString,k=_.hasOwnProperty,S=_.toString,O=RegExp("^"+w.call(k).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),C=v?f.Buffer:void 0,x=_.propertyIsEnumerable,P=C?C.isBuffer:void 0,A=(m=Object.keys,g=Object,function(t){return m(g(t))}),j=z(f,"DataView"),M=z(f,"Map"),I=z(f,"Promise"),L=z(f,"Set"),R=z(f,"WeakMap"),D=!x.call({valueOf:1},"valueOf"),N=G(j),B=G(M),U=G(I),F=G(L),V=G(R);function H(t){return!(!J(t)||E&&E in t)&&(K(t)||function(t){var e=!1;if(null!=t&&"function"!=typeof t.toString)try{e=!!(t+"")}catch(t){}return e}(t)?O:l).test(G(t))}function z(t,e){var n=function(t,e){return null==t?void 0:t[e]}(t,e);return H(n)?n:void 0}var q=function(t){return S.call(t)};function G(t){if(null!=t){try{return w.call(t)}catch(t){}try{return t+""}catch(t){}}return""}function W(t){return function(t){return function(t){return!!t&&"object"==typeof t}(t)&&X(t)}(t)&&k.call(t,"callee")&&(!x.call(t,"callee")||S.call(t)==r)}(j&&"[object DataView]"!=q(new j(new ArrayBuffer(1)))||M&&q(new M)!=s||I&&"[object Promise]"!=q(I.resolve())||L&&q(new L)!=u||R&&"[object WeakMap]"!=q(new R))&&(q=function(t){var e=S.call(t),n="[object Object]"==e?t.constructor:void 0,i=n?G(n):void 0;if(i)switch(i){case N:return"[object DataView]";case B:return s;case U:return"[object Promise]";case F:return u;case V:return"[object WeakMap]"}return e});var Y=Array.isArray;function X(t){return null!=t&&function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=i}(t.length)&&!K(t)}var $=P||function(){return!1};function K(t){var e=J(t)?S.call(t):"";return e==o||e==a}function J(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}n.exports=function(t){if(X(t)&&(Y(t)||"string"==typeof t||"function"==typeof t.splice||$(t)||W(t)))return!t.length;var e=q(t);if(e==s||e==u)return!t.size;if(D||function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||_)}(t))return!A(t).length;for(var n in t)if(k.call(t,n))return!1;return!0}}).call(e,function(){return this}(),n(45)(t))},function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.warn=function(){var t=console&&console.warn,e=window&&window.__karma__;t&&!e&&console.warn.apply(console,arguments)}},function(t,e,n){"use strict";var i=n(201).default,r=n(211).default,o=n(240).default,a=n(245).default,s=n(196).default;Object.defineProperty(e,"__esModule",{value:!0});var u=n(261),l=s(n(248)),c="ssplayer-component-hide",d=function(t){function e(t){var n=arguments.length<=1||void 0===arguments[1]?{}:arguments[1];a(this,e),i(Object.getPrototypeOf(e.prototype),"constructor",this).call(this,t,n),u.events.mixin(this),n.isSinglePage&&this.hide()}return r(e,t),o(e,[{key:"changeThumbnailImage",value:function(t){var e=this.adapter.find(this.adaptedElement,".thumbnail-text"),n=this.adapter.find(this.adaptedElement,".thumbnail-image");this.adapter.toggleClass(n,c,!1),this.adapter.toggleClass(e,c,!0),this.adapter.setAttr(n,"src",t)}},{key:"changeThumbnailText",value:function(t){var e=this.adapter.find(this.adaptedElement,".thumbnail-text"),n=this.adapter.find(this.adaptedElement,".thumbnail-image");this.adapter.toggleClass(n,c,!0),this.adapter.toggleClass(e,c,!1),this.adapter.setText(e,t)}},{key:"changeThumbnailPagination",value:function(t){var e=this.adapter.find(this.adaptedElement,".thumbnail-pagination");this.adapter.setText(e,t)}},{key:"changeThumbnailPosition",value:function(t,e){var n=document.querySelector(".left-actions").getBoundingClientRect().width,i=document.querySelector(".right-actions").getBoundingClientRect().width||n,r=this.adaptedElement[0].getBoundingClientRect().width,o=n+t-r/2,a=Math.max(2,Math.min(o,n+e+i-r));this.adaptedElement.css({transform:"translateX("+a+"px)"})}},{key:"toggleThumbnail",value:function(t){this.adapter.toggleClass(this.adaptedElement,c,!t)}}]),e}(l.default);e.default=d,t.exports=e.default},function(t,e,n){"use strict";var i=n(201).default,r=n(211).default,o=n(240).default,a=n(245).default,s=n(196).default;Object.defineProperty(e,"__esModule",{value:!0});var u=n(261),l=n(348),c=function(t){function e(t){a(this,e),i(Object.getPrototypeOf(e.prototype),"constructor",this).call(this),u.events.mixin(this),this.element=t}return r(e,t),o(e,[{key:"beforeInit",value:function(){var t=this;this.addEvents([this.element,"click",(0,l.delegated)(".ssplayer-endcard-replay",function(){return t.emit("play")})],[this.element,"click",(0,l.delegated)(".ssplayer-endcard-lynda",function(){return t.emit("lynda")})],[this.element,"click",(0,l.delegated)(".ssplayer-endcard-share",function(){return t.emit("share")})],[this.element,"click",(0,l.delegated)(".ssplayer-endcard-view-on-ss",function(){return t.emit("visit")})])}}]),e}(s(n(294)).default);e.default=c,t.exports=e.default},function(t,e,n){"use strict";var i=n(196).default;Object.defineProperty(e,"__esModule",{value:!0}),e.findDelegateEventTarget=o,e.delegated=function(t,e){return function(n){var i=o(n,t),r=void 0;return i&&(r=e.call(this,n,i)),r}};var r=i(n(349));function o(t,e){for(var n=t.target;n&&n!==t.currentTarget.parentElement;n=n.parentElement)if((0,r.default)(n,e))return n;return null}},function(t,e){"use strict";var n="undefined"!=typeof Element?Element.prototype:{},i=n.matches||n.matchesSelector||n.webkitMatchesSelector||n.mozMatchesSelector||n.msMatchesSelector||n.oMatchesSelector;t.exports=function(t,e){if(!t||1!==t.nodeType)return!1;if(i)return i.call(t,e);for(var n=t.parentNode.querySelectorAll(e),r=0;r<n.length;r++)if(n[r]==t)return!0;return!1}},function(t,e,n){"use strict";var i=n(201).default,r=n(211).default,o=n(240).default,a=n(245).default,s=n(196).default;Object.defineProperty(e,"__esModule",{value:!0});var u=n(261),l=function(t){function e(t){var n=arguments.length<=1||void 0===arguments[1]?{}:arguments[1],r=arguments.length<=2||void 0===arguments[2]?{}:arguments[2];a(this,e),i(Object.getPrototypeOf(e.prototype),"constructor",this).call(this,t,r),u.events.mixin(this),this.playerStateManager=n}return r(e,t),o(e,[{key:"beforeInit",value:function(){this.playerStateManager.isDisableA11y||this.addEvents([this.element,"focusin",this._onFocus],[this.element,"focusout",this._onBlur])}},{key:"_onFocus",value:function(){this.active=!0}},{key:"_onBlur",value:function(){this.active=!1}}]),e}(s(n(200)).default);e.default=l,t.exports=e.default},function(t,e,n){"use strict";var i=n(201).default,r=n(211).default,o=n(240).default,a=n(245).default,s=n(196).default;Object.defineProperty(e,"__esModule",{value:!0});var u=n(340),l=function(t){function e(){a(this,e),i(Object.getPrototypeOf(e.prototype),"constructor",this).apply(this,arguments)}return r(e,t),o(e,[{key:"calculateValue",value:function(t){return(0,u.calculateHorizontalValue)(t,this.progressElement,0,this.max)}}]),e}(s(n(352)).default);e.default=l,t.exports=e.default},function(t,e,n){"use strict";var i=n(201).default,r=n(211).default,o=n(240).default,a=n(245).default,s=n(196).default;Object.defineProperty(e,"__esModule",{value:!0});var u=s(n(247)),l=n(261),c=n(304),d=n(340),f=s(n(248)),h=function(t){function e(t,n,r,o){if(void 0===n&&(n={}),void 0===r&&(r={}),a(this,e),i(Object.getPrototypeOf(e.prototype),"constructor",this).call(this,t),l.events.mixin(this),this.options=(0,u.default)({},r,{initialMax:1,handleSelector:".ssplayer-handle",classes:{active:"ssplayer-menu-active"}}),this.playerStateManager=n,this.document=t.ownerDocument,this.sliderType=o,this.lastTimeCallUpdateSliderAriaValue=0,this.handle=this.element.querySelector(this.options.handleSelector),this.isDragging=!1,this.max=this.options.initialMax,this.playerStateManager.isDisableA11y||(this.adaptedElement.attr("tabindex",0),this.adaptedElement.attr("role","slider"),this.adaptedElement.attr({"aria-valuemin":0})),this.keyPressHandler=this.handleKeyPress.bind(this),r.a11yControlText){var s=(0,c.createA11yControlTextElement)(r.a11yControlText);this.adaptedElement.append(s)}}return r(e,t),o(e,[{key:"beforeInit",value:function(){this.addEvents([this.element,"click",this.onClick],[this.element,"mousedown",this.onMouseDown],[this.document,"mousemove",this.onDocumentMouseMove],[this.document,"mouseup",this.onDocumentMouseUp]),this.playerStateManager.isDisableA11y||this.addEvents([this.element,"focus",this.onFocus],[this.element,"blur",this.onBlur])}},{key:"onClick",value:function(t){this.value=this.calculateValue(t),this.emit("valueChanged")}},{key:"onMouseDown",value:function(){this.dragging=!0}},{key:"onDocumentMouseMove",value:function(t){this.dragging&&(this.value=this.calculateValue(t))}},{key:"onDocumentMouseUp",value:function(t){this.dragging&&(this.value=this.calculateValue(t),this.dragging=!1)}},{key:"onFocus",value:function(){this.adaptedElement.parent().addClass(this.options.classes.active),this.adaptedElement.on("keydown",this.keyPressHandler)}},{key:"onBlur",value:function(){this.adaptedElement.parent().removeClass(this.options.classes.active),this.adaptedElement.off("keydown",this.keyPressHandler)}},{key:"handleKeyPress",value:function(t){var e=this.max,n=e/10;t.keyCode===c.KEY_CODE.ARROW_LEFT||t.keyCode===c.KEY_CODE.ARROW_DOWN?(t.preventDefault(),this.stepBack(e,n)):t.keyCode!==c.KEY_CODE.ARROW_UP&&t.keyCode!==c.KEY_CODE.ARROW_RIGHT||(t.preventDefault(),this.stepForward(e,n))}},{key:"stepForward",value:function(t,e){this.value=Math.min(t,this.value+e),this.emit("valueChanged")}},{key:"stepBack",value:function(t,e){this.value=Math.max(0,this.value-e),this.emit("valueChanged")}},{key:"updateSliderAriaValue",value:function(t){if(this.adaptedElement.attr({"aria-valuenow":t}),this.sliderType===c.SLIDER_TYPE.PLAYBACK){var e=Number(t).toFixed(0),n=Number(this.max).toFixed(0);this.adaptedElement.attr({"aria-valuetext":this.convertTime(e)+" out of "+this.convertTime(n)})}else if(this.sliderType===c.SLIDER_TYPE.VOLUME){e=t>=0&&t<=1?(100*Number(t)).toFixed(0)+"%":t;this.adaptedElement.attr({"aria-valuetext":e+" "+this.options.volumeSliderAriaValueTextA11yControlText})}}},{key:"convertTime",value:function(t){var e=new Date;e.setHours(0),e.setMinutes(0),e.setSeconds(0);var n=new Date(e.getTime()+1e3*t);return[n.getHours(),n.getMinutes(),n.getSeconds()].join(":")}},{key:"progressElement",get:function(){return this.adapter.restore(this.adapter.find(this.adaptedElement,"progress"),0)}},{key:"handleLeftRange",get:function(){var t=this.progressElement,e=t.offsetLeft;return{start:e,end:e+t.clientWidth}}},{key:"value",get:function(){return this.progressElement.value},set:function(t){var e=this;if(this.progressElement.value=t,this.playerStateManager.isDisableA11y||(clearTimeout(this.callLater),Date.now()-this.lastTimeCallUpdateSliderAriaValue>1e3?(this.updateSliderAriaValue(t),this.lastTimeCallUpdateSliderAriaValue=Date.now()):this.callLater=setTimeout(function(){e.updateSliderAriaValue(t),e.lastTimeCallUpdateSliderAriaValue=Date.now()},1e3)),this.handle){var n=(0,d.calculateValue)(this.value,this.max,0,100);this.handle.style.left=n+"%"}this.dragging&&this.emit("valueChanged")}},{key:"max",get:function(){return this.progressElement.max},set:function(t){this.progressElement.max=t,this.adaptedElement.attr({"aria-valuemax":t})}},{key:"dragging",get:function(){return this.isDragging},set:function(t){t!==this.isDragging&&(this.isDragging=t,this.adapter.toggleClass(this.adaptedElement.parent(),this.options.classes.active,t),this.emit(t?"draggingStart":"draggingEnd"))}}]),e}(f.default);e.default=h,t.exports=e.default},function(t,e,n){"use strict";var i=n(201).default,r=n(211).default,o=n(240).default,a=n(245).default,s=n(196).default;Object.defineProperty(e,"__esModule",{value:!0}),e.getKeyName=d;var u=n(261),l=s(n(294)),c={189:"minus",187:"plus",39:"rightArrow",37:"leftArrow",9:"tab"};function d(t){var e=c[t.which];return e&&t.altKey?"alt"+e.charAt(0).toUpperCase()+e.substr(1):e}var f=function(t){function e(){var t=arguments.length<=0||void 0===arguments[0]?window.document:arguments[0],n=arguments.length<=1||void 0===arguments[1]?{shouldPreventScroll:!0}:arguments[1];a(this,e),i(Object.getPrototypeOf(e.prototype),"constructor",this).apply(this,arguments),u.events.mixin(this),this.document=t,this.shouldPreventScroll=n.shouldPreventScroll}return r(e,t),o(e,[{key:"beforeInit",value:function(){this.addEvents([this.document,"keydown",this.onDocumentKeydown])}},{key:"onDocumentKeydown",value:function(t){var e=d(t);e&&this.emit(e,t),!this.shouldPreventScroll||"rightArrow"!==e&&"leftArrow"!==e&&"altRightArrow"!==e&&"altLeftArrow"!==e||t.preventDefault()}}]),e}(l.default);e.default=f},function(t,e,n){"use strict";var i=n(201).default,r=n(211).default,o=n(240).default,a=n(245).default,s=n(196).default;Object.defineProperty(e,"__esModule",{value:!0});var u=function(t){function e(){a(this,e),i(Object.getPrototypeOf(e.prototype),"constructor",this).apply(this,arguments)}return r(e,t),o(e,[{key:"show",value:function(){i(Object.getPrototypeOf(e.prototype),"show",this).call(this),this.active=!0}},{key:"hide",value:function(){i(Object.getPrototypeOf(e.prototype),"hide",this).call(this),this.active=!1}}]),e}(s(n(200)).default);e.default=u,t.exports=e.default},function(t,e,n){"use strict";var i=n(201).default,r=n(211).default,o=n(240).default,a=n(245).default,s=n(196).default;Object.defineProperty(e,"__esModule",{value:!0});var u=s(n(247)),l=n(261),c=n(304),d=n(348),f=function(t){function e(t){var n=arguments.length<=1||void 0===arguments[1]?{}:arguments[1],r=arguments.length<=2||void 0===arguments[2]?{}:arguments[2],o=arguments.length<=3||void 0===arguments[3]?{}:arguments[3],s=o.closeModalButtonA11yControlText,d=o.fullscreenOffButtonA11yControlText;if(a(this,e),i(Object.getPrototypeOf(e.prototype),"constructor",this).call(this,t,(0,u.default)({},n,{frontClass:"ssplayer-modal-front",backClass:"ssplayer-modal-back",levelAttribute:"data-ssplayer-modal-level",closeButtonSelector:"[data-ssplayer-modal-close]",exitFullscreenButtonSelector:"[data-ssplayer-modal-fullscreen-off]"})),l.events.mixin(this),this.playerStateManager=r,this.hide(),this.document=t.ownerDocument,this.focusableElements=this.adaptedElement.find("button"),this.curFocusableElementIndex=0,this.closeButtonElement=this.adapter.find(this.adaptedElement,this.options.closeButtonSelector),0!==this.closeButtonElement.length&&s){var f=(0,c.createA11yControlTextElement)(s);this.adapter.adapt(this.closeButtonElement).append(f)}var h=this.adapter.find(this.adaptedElement,this.options.exitFullscreenButtonSelector);if(0!==h.length&&d){var p=(0,c.createA11yControlTextElement)(d);this.adapter.adapt(h).append(p)}}return r(e,t),o(e,[{key:"beforeInit",value:function(){this.addEvents([this.element,"click",(0,d.delegated)(this.options.closeButtonSelector,this.onCloseButtonClick)],[this.element,"click",(0,d.delegated)(this.options.exitFullscreenButtonSelector,this.onExitFullscreenButtonClick)]),this.playerStateManager.isDisableA11y||this.addEvents([this.element,"keydown",this.keyPressHandler.bind(this)])}},{key:"open",value:function(){this.active=!0,this.show(),this.emit("opened"),this.playerStateManager.isFocusActive&&(this.focusedElementBeforeModal=this.document.activeElement,this.focusableElements[this.curFocusableElementIndex].focus())}},{key:"close",value:function(){this.active=!1,this.hide(),this.emit("closed"),this.curFocusableElementIndex=0,this.playerStateManager.isFocusActive&&this.focusedElementBeforeModal&&this.focusedElementBeforeModal.focus()}},{key:"onCloseButtonClick",value:function(){this.close()}},{key:"onExitFullscreenButtonClick",value:function(){this.emit("exitFullscreen")}},{key:"keyPressHandler",value:function(t){t.keyCode===c.KEY_CODE.TAB&&this.playerStateManager.isFullscreenOn?(t.preventDefault(),t.shiftKey?0===this.curFocusableElementIndex?this.curFocusableElementIndex=this.focusableElements.length-1:this.curFocusableElementIndex-=1:this.curFocusableElementIndex===this.focusableElements.length-1?this.curFocusableElementIndex=0:this.curFocusableElementIndex+=1,this.focusableElements[this.curFocusableElementIndex].focus()):t.keyCode===c.KEY_CODE.ESCAPE&&0!==this.closeButtonElement.length&&this.close()}},{key:"level",set:function(t){this.adapter.setAttr(this.adaptedElement,this.options.levelAttribute,t),this.adapter.toggleClass(this.adaptedElement,this.options.backClass,0!==t),this.adapter.toggleClass(this.adaptedElement,this.options.frontClass,0===t),0!==t?this.hide():this.show()}}]),e}(s(n(200)).default);e.default=f,t.exports=e.default},function(t,e,n){"use strict";var i=n(201).default,r=n(211).default,o=n(240).default,a=n(245).default,s=n(196).default;Object.defineProperty(e,"__esModule",{value:!0});var u=s(n(341)),l=s(n(357)),c=function(t){function e(t){var n=arguments.length<=1||void 0===arguments[1]?{}:arguments[1];a(this,e);i(Object.getPrototypeOf(e.prototype),"constructor",this).call(this,t,n,{paginationValue:"[data-pagination-value-description]",paginationLength:"[data-pagination-length-description]"})}return r(e,t),o(e,[{key:"changePosition",value:function(t){this.position=t,this.emit("positionChange",this.position)}},{key:"_applyA11yOnElement",value:function(t,e){var n=this.adaptedElement.find(t);0!==n.length&&e&&n.text(e)}},{key:"lengthElement",get:function(){return this.adaptedElement.find("[data-pagination-length]")}},{key:"valueElement",get:function(){return this.adaptedElement.find("[data-pagination-value]")}},{key:"length",get:function(){return(0,l.default)(this.adapter.getHtml(this.lengthElement))},set:function(t){this.adapter.setText(this.lengthElement,t)}},{key:"position",get:function(){return(0,l.default)(this.adapter.getHtml(this.valueElement))-1},set:function(t){this.adapter.setText(this.valueElement,t+1)}}]),e}(u.default);e.default=c,t.exports=e.default},function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){var e=arguments.length<=1||void 0===arguments[1]?1:arguments[1];if("number"!=typeof e)throw new TypeError("toNumber provided with non-number defaultValue");var n=parseInt(t,10);return isNaN(n)?e:n},t.exports=e.default},function(t,e,n){"use strict";var i=n(201).default,r=n(211).default,o=n(240).default,a=n(245).default,s=n(196).default;Object.defineProperty(e,"__esModule",{value:!0});var u=s(n(247)),l=s(n(359)),c=s(n(322)),d=n(261),f=s(n(248)),h=function(t){function e(t){var n=arguments.length<=1||void 0===arguments[1]?{}:arguments[1],r=arguments.length<=2||void 0===arguments[2]?t.ownerDocument:arguments[2];return function(){a(this,e),i(Object.getPrototypeOf(e.prototype),"constructor",this).call(this,t),d.events.mixin(this),this.options=(0,u.default)({},n,{classes:{initialized:"player-initialized",fullscreen:"ssplayer-fullscreen",idle:"ssplayer-idle",rtl:"ssplayer-rtl",isZoomed:"ssplayer-is-zoomed",initialLoad:"ssplayer-initial-load"}}),this.document=r,this.isMouseover=!1}.apply(this,arguments)}return r(e,t),o(e,[{key:"beforeInit",value:function(){var t=[];c.default.enabled&&t.push([c.default,"change",this.onFullscreen]),t.push([this.element,"mouseenter",this.onMouseEnter],[this.element,"mousemove",(0,l.default)(this.onMouseMove,150)],[this.element,"mouseleave",this.onMouseLeave]),this.addEvents.apply(this,t),this.adapter.addClass(this.adaptedElement,this.options.classes.initialized)}},{key:"onMouseEnter",value:function(){this.isMouseover=!0,this.emit("mouseEnter")}},{key:"onMouseMove",value:function(){this.emit("mouseMove")}},{key:"onMouseLeave",value:function(){this.isMouseover=!1,this.emit("mouseLeave")}},{key:"setRtl",value:function(t){this.adaptedElement.toggleClass(this.options.classes.rtl,t)}},{key:"setIsZoomed",value:function(t){t||(this.adaptedElement.scrollLeft(0),this.adaptedElement.scrollTop(0)),this.adaptedElement.toggleClass(this.options.classes.isZoomed,t)}},{key:"removeInitialLoadState",value:function(){this.adapter.removeClass(this.adaptedElement,this.options.classes.initialLoad)}},{key:"enterFullscreen",value:function(){c.default.element||c.default.request(this.element)}},{key:"exitFullscreen",value:function(){c.default.element&&c.default.exit()}},{key:"onFullscreen",value:function(){this.adapter.toggleClass(this.adaptedElement,this.options.classes.fullscreen,c.default.isFullscreen),this.emit("fullscreen",c.default.isFullscreen)}},{key:"idle",set:function(t){this.adapter.toggleClass(this.adaptedElement,this.options.classes.idle,t)}}]),e}(f.default);e.default=h,t.exports=e.default},function(t,e){(function(e){var n="Expected a function",i=NaN,r="[object Symbol]",o=/^\s+|\s+$/g,a=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,u=/^0o[0-7]+$/i,l=parseInt,c="object"==typeof e&&e&&e.Object===Object&&e,d="object"==typeof self&&self&&self.Object===Object&&self,f=c||d||Function("return this")(),h=Object.prototype.toString,p=Math.max,v=Math.min,y=function(){return f.Date.now()};function m(t,e,i){var r,o,a,s,u,l,c=0,d=!1,f=!1,h=!0;if("function"!=typeof t)throw new TypeError(n);function m(e){var n=r,i=o;return r=o=void 0,c=e,s=t.apply(i,n)}function _(t){var n=t-l;return void 0===l||n>=e||n<0||f&&t-c>=a}function T(){var t=y();if(_(t))return E(t);u=setTimeout(T,function(t){var n=e-(t-l);return f?v(n,a-(t-c)):n}(t))}function E(t){return u=void 0,h&&r?m(t):(r=o=void 0,s)}function w(){var t=y(),n=_(t);if(r=arguments,o=this,l=t,n){if(void 0===u)return function(t){return c=t,u=setTimeout(T,e),d?m(t):s}(l);if(f)return u=setTimeout(T,e),m(l)}return void 0===u&&(u=setTimeout(T,e)),s}return e=b(e)||0,g(i)&&(d=!!i.leading,a=(f="maxWait"in i)?p(b(i.maxWait)||0,e):a,h="trailing"in i?!!i.trailing:h),w.cancel=function(){void 0!==u&&clearTimeout(u),c=0,r=l=o=u=void 0},w.flush=function(){return void 0===u?s:E(y())},w}function g(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}function b(t){if("number"==typeof t)return t;if(function(t){return"symbol"==typeof t||function(t){return!!t&&"object"==typeof t}(t)&&h.call(t)==r}(t))return i;if(g(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=g(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=t.replace(o,"");var n=s.test(t);return n||u.test(t)?l(t.slice(2),n?2:8):a.test(t)?i:+t}t.exports=function(t,e,i){var r=!0,o=!0;if("function"!=typeof t)throw new TypeError(n);return g(i)&&(r="leading"in i?!!i.leading:r,o="trailing"in i?!!i.trailing:o),m(t,e,{leading:r,maxWait:e,trailing:o})}}).call(e,function(){return this}())},function(t,e,n){"use strict";var i=n(201).default,r=n(211).default,o=n(240).default,a=n(245).default,s=n(196).default;Object.defineProperty(e,"__esModule",{value:!0});var u=n(261),l=function(t){function e(t){var n=arguments.length<=1||void 0===arguments[1]?{}:arguments[1];a(this,e);i(Object.getPrototypeOf(e.prototype),"constructor",this).call(this,t,n,{navButton:".nav-button"}),u.events.mixin(this),n.isSinglePage&&this.hide()}return r(e,t),o(e,[{key:"beforeInit",value:function(){this.addEvents([this.element.querySelector(".nav-button"),"click",this.onClick],[this.element,"mouseover",this.onMouseOver],[this.element,"mouseout",this.onMouseOut])}},{key:"onClick",value:function(){this.emit("click")}},{key:"onMouseOver",value:function(){this.isMouseOver=!0}},{key:"onMouseOut",value:function(){this.isMouseOver=!1}},{key:"toggleEnabled",value:function(t){t?this.show():this.hide()}}]),e}(s(n(342)).default);e.default=l,t.exports=e.default},function(t,e,n){"use strict";var i=n(201).default,r=n(211).default,o=n(240).default,a=n(245).default,s=n(196).default;Object.defineProperty(e,"__esModule",{value:!0});var u=s(n(362)),l=function(t){function e(){var t=arguments.length<=0||void 0===arguments[0]?{}:arguments[0],n=t.appId,r=t.sessionTrackingId,o=t.videoUrn,s=t.pageKey,l=t.mediaHeaderObj,c=t.rumVideoConfig,d=arguments.length<=1||void 0===arguments[1]?new u.default(c):arguments[1];return function(){a(this,e),i(Object.getPrototypeOf(e.prototype),"constructor",this).call(this),this.tracker=d,this.tracker.setApplicationName(n),this.tracker.setVideoTrackingId(r),this.tracker.setVideoUrn(o),s?this.tracker.setPageKey(s):console&&console.warn&&console.warn("Missing pageKey for RumTrackingComponent."),l?this.tracker.setMediaHeader(l):console&&console.warn&&console.warn("Missing mediaHeaderObj with cdnProvider and accountAccessType for RumTrackingComponent."),this.bufferId=0}.apply(this,arguments)}return r(e,t),o(e,[{key:"videoInitializationStart",value:function(){this.tracker.videoInitializationStart()}},{key:"videoInitializationEnd",value:function(){this.tracker.videoInitializationEnd()}},{key:"bufferingStart",value:function(){this.bufferId+=1,this.tracker.bufferingStart(this.bufferId)}},{key:"bufferingEnd",value:function(){this.tracker.bufferingEnd(this.bufferId)}},{key:"videoPlaybackError",value:function(t,e,n){this.tracker.mediaPlaybackError(t,e,n)}}]),e}(s(n(294)).default);e.default=l,t.exports=e.default},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i,r=n(363),o=(i=r)&&i.__esModule?i:{default:i};e.default=function(t){var e,n,i,r,a,s,u,l,c,d,f={CUSTOM:!0,NETWORK:!0,DECODING:!0,SOURCE_FILE:!0,ENCRYPTION:!0,AUDIO:!0,RENDERING:!0},h={message:"",lineNumber:-1,columnNumber:-1,sourceFile:"",stackTrace:"",programLanguage:"JAVASCRIPT",type:""},p=["newBitrate","viewingDisplaySize","encodedDisplaySize","audioCodec","videoCodec","newSegmentDuration","targetSegmentDuration","frameRate"];function v(t){var o={header:{time:t?a:s},requestHeader:{pageKey:i},mobileHeader:null,mediaHeader:"object"==typeof c?c:{},mediaTrackingObject:{objectUrn:"string"==typeof r?r:"",trackingId:e},initializationStartTime:a},u={eventName:t?"MediaInitializationStartEvent":"MediaInitializationEndEvent",appId:n};if(t||(o.duration=s-a),d&&"object"==typeof l)l.sendEvent(u,o);else if(!d)return{eventInfo:u,eventBody:o}}function y(t,o){var s=u[t],f={header:{time:o?s.start:s.end},requestHeader:{pageKey:i},mobileHeader:null,mediaHeader:"object"==typeof c?c:{},mediaTrackingObject:{objectUrn:"string"==typeof r?r:"",trackingId:e},bufferingType:s.type,initializationStartTime:a,bufferingStartTime:s.start},h={eventName:o?"MediaBufferingStartEvent":"MediaBufferingEndEvent",appId:n};if(o||(f.duration=s.end-s.start,function(t){delete u[t]}(t)),d&&"object"==typeof l)l.sendEvent(h,f);else if(!d)return{eventInfo:h,eventBody:f}}function m(t){if(d&&(void 0===e||void 0===n))throw new Error("must set videoTrackingId and applicationName before recording events");if(!t&&"number"!=typeof a)throw new Error("videoInitializationStart not called")}function g(t,i){if(d&&(void 0===e||void 0===n))throw new Error("must set videoTrackingId and applicationName before recording events");if("number"!=typeof a)throw new Error("videoInitializationStart not called");if("number"!=typeof t)throw new TypeError("bufferingId not a number");if(i){if("object"==typeof u[t])throw new Error("duplicate bufferingId")}else if("object"!=typeof u[t]||"number"!=typeof u[t].start||void 0!==u[t].end||null!==u[t].type)throw new Error("incorrect bufferingId or wrong buffering type")}function b(t){if(d&&(void 0===e||void 0===n))throw new Error("must set videoTrackingId and applicationName before recording events");if("object"==typeof t)p.forEach(function(e){if(!(e in t))throw new Error("key: "+e+" not in fields")});else if(void 0===t)throw new TypeError("extraFields is not an object or undefined")}function _(){return window.performance&&window.performance.timing&&"function"==typeof window.performance.now?Math.round(window.performance.now())+window.performance.timing.navigationStart:(new Date).getTime()}function T(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t}!function(t){var e;u={},(d=!1!==(t=t||{}).trackingEnabled)&&("object"==typeof t["web-tracking-obj"]?l=t["web-tracking-obj"]:"object"==typeof(l=o.default)&&(e=t["tracking-url"]||"https://www.linkedin.com/li/track",l.setTrackingUrl(e)))}(t),this.setVideoTrackingId=function(t){e=t},this.setApplicationName=function(t){n=t,"string"!=typeof i&&(i=t)},this.setPageKey=function(t){i=t},this.setVideoUrn=function(t){r=t},this.setMediaHeader=function(t){c=t},this.videoInitializationStart=function(){return a=_(),m(!0),v(!0)},this.videoInitializationEnd=function(){var t=_();return m(!1),s=t,v(!1)},this.bufferingStart=function(t){var e=_();return g(t,!0),u[t]={},u[t].start=e,u[t].type=null,y(t,!0)},this.bufferingEnd=function(t){var e=_();return g(t,!1),u[t].end=e,y(t,!1)},this.mediaPlaybackError=function(t,o,a,s){var u,p=_();return function(t,i,r,o){if(d&&(void 0===e||void 0===n))throw new Error("must set videoTrackingId and applicationName before recording events");if("string"!=typeof t||!(t in f))throw new Error("invalid error type. Expected one of: "+Object.keys(f));if("string"!=typeof i&&void 0!==i)throw new TypeError("error message is not a string or undefined");if("object"==typeof r)Object.keys(r).forEach(function(t){if(!(t in h))throw new Error("invalid field in the exception object")});else if(void 0!==r)throw new TypeError("error exception is not an object or undefined");if("string"!=typeof o&&void 0!==o)throw new TypeError("video-rum: url is not a string or undefined")}(t,o,a,s),"object"==typeof a&&(u=function(t){return T(h,t)}(a)),"string"==typeof s&&""!=s&&(s=s.match("^[^?]+")[0]),function(t,o,a,s,u){var f={header:{time:u},requestHeader:{pageKey:i},mobileHeader:null,mediaHeader:"object"==typeof c?c:{},mediaTrackingObject:{objectUrn:"string"==typeof r?r:"",trackingId:e},errorType:t},h={eventName:"MediaPlaybackErrorV2Event",appId:n};if("string"==typeof o&&(f.errorMessage=o),f.errorException="object"==typeof a?a:null,"string"==typeof s&&""!=s&&(f.url=s),d&&"object"==typeof l)l.sendEvent(h,f);else if(!d)return{eventInfo:h,eventBody:f}}(t,o,u,s,p)},this.bitrateChangedEvent=function(t){var o=_();return b(t),function(t,o){var a={header:{time:o},requestHeader:{pageKey:i},mobileHeader:null,mediaHeader:"object"==typeof c?c:{},mediaTrackingObject:{objectUrn:"string"==typeof r?r:"",trackingId:e}},s={eventName:"MediaBitrateChangedEvent",appId:n};if("object"==typeof t&&(a=T(a,t)),d&&"object"==typeof l)l.sendEvent(s,a);else if(!d)return{eventInfo:s,eventBody:a}}(t,o)}},t.exports=e.default},function(t,e,n){var i,r,o,a;a=function(t,e){"use strict";var n="undefined"!=typeof window&&window&&"node"!==window.appEnvironment,i=n&&!!window.requestIdleCallback,r={AJAX_METHOD:"POST",DEFAULT_PAGE_TYPE:"ajax",globalTrackingUrl:null,globalTrackingAppId:"no.app.id",queue:[],paused:!1,maxQueueSize:1,queueTimeout:1e3,timeoutId:null,csrfToken:"",testId:"",testSegId:"",setProperty:function(t,e){e&&(this[t]=e)},setTrackingUrl:function(t){this.setProperty("globalTrackingUrl",t)},setAppId:function(t){this.setProperty("globalTrackingAppId",t)},setCsrfToken:function(t){this.setProperty("csrfToken",t)},setTestId:function(t){this.setProperty("testId",t)},setTestSegId:function(t){this.setProperty("testSegId",t)},getCookieString:function(){return document.cookie},getCsrfToken:function(){for(var t=this.getCookieString().split(";"),e=0;e<t.length;e++){for(var n=t[e];" "===n.charAt(0);)n=n.substring(1);if(-1!==n.indexOf("JSESSIONID=")){var i=n.substring("JSESSIONID=".length,n.length);return'"'===i[0]&&'"'===i[i.length-1]&&(i=i.substring(1,i.length-1)),i}}return""},createXmlHttpObject:function(){return n&&window.XMLHttpRequest?new XMLHttpRequest:null},ajax:function(t,e,n,i){var r;(i=i||this.globalTrackingUrl)?(r=this.createXmlHttpObject())&&(r.open(this.AJAX_METHOD,i,!0),r.withCredentials=!0,r.setRequestHeader("Content-type","application/json"),this.csrfToken?r.setRequestHeader("Csrf-Token",this.csrfToken):r.setRequestHeader("Csrf-Token",this.getCsrfToken()),this.testId&&r.setRequestHeader("X-LinkedIn-traceDataContext-ENG_TEST_ID",this.testId),this.testSegId&&r.setRequestHeader("X-LinkedIn-traceDataContext-ENG_TEST_SEGMENT_ID",this.testSegId),r.onreadystatechange=function(){4===r.readyState&&(200===r.status||304===r.status?"function"==typeof e&&e(r):n&&n(r))},4!==r.readyState&&r.send(t)):n&&n("Tracking url is not defined")},pause:function(){this.paused=!0},unpause:function(){this.paused=!1,this.queue.length>=this.maxQueueSize&&this.flush()},flush:function(){if(this.queue.length>0){this.ajax(JSON.stringify(this.queue),null,this.logError),this.queue=[]}i?cancelIdleCallback(this.timeoutId):clearTimeout(this.timeoutId),this.timeoutId=null,this.paused=!1},idleFlush:function(t){var e=this,n=Date.now();return requestIdleCallback(function(i){i.timeRemaining()>8||i.didTimeout?e.flush():e.timeoutId=e.idleFlush(t-(Date.now()-n))},{timeout:t})},addToQueue:function(t){if(this.queue.push(t),this.queue.length>=this.maxQueueSize&&!this.paused)return this.flush();if(!this.timeoutId){var e=this;i&&!this.paused?this.timeoutId=this.idleFlush(this.queueTimeout):this.timeoutId=setTimeout(function(){e.flush()},this.queueTimeout)}},validateEvent:function(t,e,n){this.ajax(JSON.stringify([{eventInfo:this.populateEventInfo(t),eventBody:this.populateEventHeaders(e)}]),function(t){return n(null,t)},function(t){return n(t)},this.globalTrackingUrl+"/validate")},sendEvent:function(t,e){this.addToQueue({eventInfo:this.populateEventInfo(t),eventBody:this.populateEventHeaders(e)})},getTimestamp:function(){return Math.round((new Date).getTime()/1e3)},populateEventInfo:function(t){return"string"==typeof t&&(t={eventName:t}),t&&"object"==typeof t?(t.appId||(t.appId=this.globalTrackingAppId),t):(this.logError("Event info must be object"),{})},populateEventHeaders:function(t){return t&&"object"==typeof t?t:(this.logError("Event body must be object"),{})},logError:function(t){var e=window.console;e&&e.error&&e.error(t)},init:function(){this.setTrackingUrl(),this.setAppId(),this.onBeforeUnload=this.onBeforeUnload.bind(this),n&&window.addEventListener("beforeunload",this.onBeforeUnload)},destroy:function(){n&&window.removeEventListener("beforeunload",this.onBeforeUnload)},onBeforeUnload:function(){this.flush()}};r.init(),e.exports=r},r=[e,t],void 0===(o="function"==typeof(i=a)?i.apply(e,r):i)||(t.exports=o)},function(t,e,n){"use strict";var i=n(201).default,r=n(211).default,o=n(240).default,a=n(245).default,s=n(196).default;Object.defineProperty(e,"__esModule",{value:!0});var u=n(261),l=function(t){function e(t){a(this,e),i(Object.getPrototypeOf(e.prototype),"constructor",this).call(this),u.events.mixin(this),this.element=t}return r(e,t),o(e,[{key:"beforeInit",value:function(){this.addEvents([this.element,"click",this.onClick])}},{key:"onClick",value:function(){this.select()}},{key:"select",value:function(){var t=window.getSelection();t.removeAllRanges();var e=document.createRange();e.selectNodeContents(this.element),t.addRange(e),this.emit("selected")}}]),e}(s(n(294)).default);e.default=l,t.exports=e.default},function(t,e,n){"use strict";var i=n(201).default,r=n(211).default,o=n(240).default,a=n(245).default,s=n(251).default,u=n(196).default;Object.defineProperty(e,"__esModule",{value:!0});var l=u(n(247)),c=u(n(284)),d=n(261),f=n(304),h=u(n(248)),p=u(n(366)),v=n(367);var y=function(t){function e(t,n){var r=arguments.length<=2||void 0===arguments[2]?{}:arguments[2],o=arguments.length<=3||void 0===arguments[3]?t.ownerDocument.defaultView:arguments[3],s=arguments.length<=4||void 0===arguments[4]?{}:arguments[4];return function(){if(a(this,e),i(Object.getPrototypeOf(e.prototype),"constructor",this).call(this,t),d.events.mixin(this),this.options=(0,l.default)({},r,{urlAttribute:"data-ssplayer-share-url",networkAttribute:"data-ssplayer-share-network",windowSettings:{menubar:"no",toolbar:"no",resizable:"yes",scrollbars:"yes",height:600,width:600}}),this.element=t,this.window=o,this.network=r.network||this.adapter.getAttr(this.element,this.options.networkAttribute),this.url=r.url||this.adapter.getAttr(this.element,this.options.urlAttribute),this.videoAdapter=n,this.playerStateManager=s,!this.playerStateManager.isDisableA11y&&this.network){var u=(0,f.createA11yControlTextElement)(this.network);this.adaptedElement.append(u)}}.apply(this,arguments)}return r(e,t),o(e,[{key:"beforeInit",value:function(){this.addEvents([this.element,"click",this.onClick])}},{key:"onClick",value:function(){this.openSharingWindow()}},{key:"getWindowSettings",value:function(){var t,e,n=(t=this.options.windowSettings.width,(window.document.documentElement.clientWidth-t)/2),i=(e=this.options.windowSettings.height,(window.document.documentElement.clientHeight-e)/2);return(0,c.default)(this.options.windowSettings).map(function(t){var e=s(t,2);return e[0]+"="+e[1]}).concat(["left="+n,"top="+i]).join(",")}},{key:"openSharingWindow",value:function(){this.window.open(this.url,"",this.getWindowSettings());var t={network:this.network,url:this.url};this.emit("shared",t),this.videoAdapter.emit(p.default.SHARE_EXTERNAL,{network:this.network,controlName:v.CONTROL_PREFIX+"_share_"+this.network})}}]),e}(h.default);e.default=y,t.exports=e.default},function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.default={PAUSE:"pause",PLAY:"play",SEEKED:"seeked",TIME_UPDATE:"timeupdate",ENDED:"ended",ERROR:"error",VOLUME_CHANGE:"volumechange",MUTE:"mute",UNMUTE:"unmute",ENTER_FULLSCREEN:"enterfullscreen",EXIT_FULLSCREEN:"exitfullscreen",INIT:"init",BUFFER_START:"bufferstart",BUFFER_END:"bufferend",BITRATE_CHANGED:"bitrateChanged",SHARE_MODAL_OPEN:"sharemodalopen",SHARE_MODAL_CLOSE:"sharemodalclose",SHARE_EXTERNAL:"shareexternal"},t.exports=e.default},function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n={TOOLBAR:{FULLSCREEN:"video_toolbar_fullscreen",SHARE:"video_toolbar_share",REPLAY:"video_toolbar_replay",PLAY:"video_toolbar_play",PAUSE:"video_toolbar_pause",MUTE_TOGGLE:"video_toolbar_mute_unmute",PLAYBACK_RATE:"video_toolbar_playback_rate"},HERO:{PLAY:"video_hero_play"},ELEMENT:{PLAY:"video_element_play"},ENDCARD:{FULLSCREEN:"video_endcard_fullscreen",REPLAY:"video_endcard_replay",PLAY:"video_endcard_play",SHARE:"video_endcard_share"}};e.CONTROL_NAME=n,e.CONTROL_PREFIX="video"},function(t,e,n){"use strict";var i=n(201).default,r=n(211).default,o=n(240).default,a=n(245).default,s=n(196).default;Object.defineProperty(e,"__esModule",{value:!0});var u=s(n(247)),l=s(n(369)),c=s(n(200)),d=0,f=void 0,h=function(t){function e(t){var n=arguments.length<=1||void 0===arguments[1]?{}:arguments[1];a(this,e),i(Object.getPrototypeOf(e.prototype),"constructor",this).call(this,t,(0,u.default)({},n,{durationSelector:".ssplayer-time-display-duration",currentTimeSelector:".ssplayer-time-display-current-time"})),this.duration=f,this.currentTime=d}return r(e,t),o(e,[{key:"durationElement",get:function(){return this.adapter.adapt(this.adapter.children(this.adaptedElement,this.options.durationSelector))}},{key:"currentTimeElement",get:function(){return this.adapter.adapt(this.adapter.find(this.adaptedElement,this.options.currentTimeSelector))}},{key:"duration",get:function(){return this.durationValue},set:function(t){this.durationValue=t,this.adapter.setText(this.durationElement,(0,l.default)(t)),this.active=t!==f}},{key:"currentTime",get:function(){return this.currentTimeValue},set:function(t){this.currentTimeValue=t,this.adapter.setText(this.currentTimeElement,(0,l.default)(t,this.duration||t))}}]),e}(c.default);e.default=h,t.exports=e.default},function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){var e=arguments.length<=1||void 0===arguments[1]?t:arguments[1];return function(){t=t<0?0:t;var n=Math.floor(t%60),i=Math.floor(t/60%60),r=Math.floor(t/3600),o=Math.floor(e/60%60),a=Math.floor(e/3600);return(null==t||isNaN(t)||t===1/0)&&(r="-",i="-",n="-"),(r=r>0||a>0?r+":":"")+(i=((r||o>=10)&&i<10?"0"+i:i)+":")+(n=n<10?"0"+n:n)}()},t.exports=e.default},function(t,e,n){"use strict";var i=n(201).default,r=n(211).default,o=n(240).default,a=n(245).default,s=n(251).default,u=n(259).default,l=n(196).default;Object.defineProperty(e,"__esModule",{value:!0});var c=l(n(247)),d=l(n(322)),f=l(n(323)),h=n(261),p=l(n(371)),v=n(304),y=n(348),m=n(345),g=function(t){function e(t,n,r,o,s,u,l){return void 0===n&&(n={}),void 0===r&&(r=t.ownerDocument),void 0===o&&(o={}),void 0===u&&(u={}),function(){if(a(this,e),i(Object.getPrototypeOf(e.prototype),"constructor",this).call(this,t),h.events.mixin(this),this.options=(0,c.default)({},n,{hideOnFullscreen:!0,tocEnabled:!1,playButtonSelector:".ssplayer-play-button",pauseButtonSelector:".ssplayer-pause-button",fullScreenOnButtonSelector:".ssplayer-fullscreen-on-button",fullScreenOffButtonSelector:".ssplayer-fullscreen-off-button",progressSliderSelector:".ssplayer-progress.ssplayer-progress-slider",firstFocusableElementSelector:".ssplayer-progress.ssplayer-progress-slider",lastFocusableElementSelector:".ssplayer-fullscreen-off-button",zoomInButtonSelector:".ssplayer-zoom-in-button",zoomOutButtonSelector:".ssplayer-zoom-out-button",zoomSelectSelector:".ssplayer-zoom-options-select",zoomLevelIndicatorSelector:".ssplayer-zoom-options-zoom-level",hcmDescriptionLabel:"High Contrast Mode",hcmOnStateLabel:"On",hcmOffStateLabel:"Off",zoomLabel:u.zoomA11yControlText||"Zoom",hcmDescriptionLabelSelector:".ssplayer-hcm-description-label",hcmStateLabelSelector:".ssplayer-hcm-state-label",hcmToggleSelector:".ssplayer-hcm-toggle",withToc:"ssplayer-toolbar-with-toc"}),this.document=r,this.playerStateManager=o,this.videojsPlayer=s,this.playButton=this.adaptedElement.find(this.options.playButtonSelector)[0],this.pauseButton=this.adaptedElement.find(this.options.pauseButtonSelector)[0],this.fullScreenOnButton=this.adaptedElement.find(this.options.fullScreenOnButtonSelector)[0],this.fullScreenOffButton=this.adaptedElement.find(this.options.fullScreenOffButtonSelector)[0],this.progressSlider=this.adaptedElement.find(this.options.progressSliderSelector)[0],this.firstFocusableElement=this.adaptedElement.find(this.options.firstFocusableElementSelector)[0],this.lastFocusableElement=this.adaptedElement.find(this.options.lastFocusableElementSelector)[0],this.keyPressHandler=this.handleKeyPress.bind(this),this.zoomInButtonElement=this.adaptedElement.find(this.options.zoomInButtonSelector)[0],this.zoomOutButtonElement=this.adaptedElement.find(this.options.zoomOutButtonSelector)[0],this.zoomSelectElement=this.adaptedElement.find(this.options.zoomSelectSelector)[0],this.zoomLevelIndicator=this.adaptedElement.find(this.options.zoomLevelIndicatorSelector)[0],this.isMouseOver=!1,this.addA11yControlText(u,l),this.zoomScale=1,this.hcmDescriptionLabelElement=this.adaptedElement.find(this.options.hcmDescriptionLabelSelector)[0],this.hcmStateLabelElement=this.adaptedElement.find(this.options.hcmStateLabelSelector)[0],this.hcmToggleElement=this.adaptedElement.find(this.options.hcmToggleSelector)[0],this.hcmDescriptionLabelElement&&this.hcmStateLabelElement&&this.hcmToggleElement&&(this.hcmDescriptionLabelElement.innerText=this.options.hcmDescriptionLabel,this.hcmMode=!1),this.options.tocEnabled){var p=f.default.htmlEncode(this.options.withToc);this.adaptedElement.addClass(p)}this.options.checkFullscreenAPI&&!d.default.enabled&&((0,m.warn)("Full screen API not detected-- hiding full screen button!"),this.adaptedElement.find(this.options.fullScreenOnButtonSelector).hide())}.apply(this,arguments)}return r(e,t),o(e,[{key:"beforeInit",value:function(){i(Object.getPrototypeOf(e.prototype),"beforeInit",this).call(this);var t=[[this.element,"click",(0,y.delegated)("[data-ssplayer-event]",this.onClick)],[this.zoomSelectElement,"change",this.onZoomSelectChange],[this.zoomInButtonElement,"click",this.onZoomIn],[this.zoomOutButtonElement,"click",this.onZoomOut],[this.hcmToggleElement,"change",this.onHcmModeChange]].filter(function(t){return s(t,1)[0]});this.addEvents.apply(this,u(t)),this.options.hideOnFullscreen&&d.default.raw&&d.default.raw.fullscreenchange&&this.addEvents([this.document,d.default.raw.fullscreenchange,this.onFullscreenChange,this.document,"mousemove",this.onDocumentMouseMove])}},{key:"onClick",value:function(t,e){var n=this.adapter.adapt(e),i=this.adapter.getAttr(n,"data-ssplayer-event"),r=this.adapter.getAttr(n,"data-ssplayer-event-data");this.emit(i,{originalEvent:t,delegateTarget:e,data:r&&JSON.parse(r)})}},{key:"toggleTocToolbarStyle",value:function(){var t=f.default.htmlEncode(this.options.withToc);this.adaptedElement.toggleClass(t)}},{key:"onZoomSelectChange",value:function(t){this._updateZoom(t.target.value)}},{key:"onZoomIn",value:function(){var t=Math.min(this.zoomSelectElement.selectedIndex+1,this.zoomSelectElement.options.length-1),e=this.zoomSelectElement.options[t].value;this._updateZoom(e)}},{key:"onZoomOut",value:function(){var t=Math.max(this.zoomSelectElement.selectedIndex-1,0),e=this.zoomSelectElement.options[t].value;this._updateZoom(e)}},{key:"_updateZoomButtonStates",value:function(){this.zoomOutButtonElement&&this.zoomInButtonElement&&this.zoomSelectElement&&(this.zoomOutButtonElement.disabled=0===this.zoomSelectElement.selectedIndex,this.zoomOutButtonElement.disabled?this.zoomInButtonElement.focus():(this.zoomInButtonElement.disabled=this.zoomSelectElement.selectedIndex===this.zoomSelectElement.options.length-1,this.zoomInButtonElement.disabled&&this.zoomOutButtonElement.focus()))}},{key:"_updateZoom",value:function(t){t=parseFloat(t,10),isNaN(t)&&(t=1),this.zoomLevelIndicator&&(this.zoomLevelIndicator.textContent=this.options.zoomLabel+" "+100*t+"%"),this.zoomSelectElement.value=t,this.zoomScale=t,this.emit("zoom",t),this._updateZoomButtonStates()}},{key:"onHcmModeChange",value:function(t){var e=t.target.checked;this.hcmMode=e,this.emit("hcmToggle",this.hcmMode)}},{key:"handleKeyPress",value:function(t){t.keyCode===v.KEY_CODE.TAB&&this.playerStateManager.isFullscreenOn&&this.options.dynamicKeyTrap&&(this.videojsPlayer&&(this.firstFocusableElement=this.videojsPlayer.paused()?this.playButton:this.pauseButton),t.shiftKey?this.document.activeElement===this.firstFocusableElement&&(t.preventDefault(),this.lastFocusableElement.focus()):this.document.activeElement===this.lastFocusableElement&&(t.preventDefault(),this.firstFocusableElement.focus()))}},{key:"setFocus",value:function(){this.fullScreenOnButton.focus()}},{key:"resetZoom",value:function(){this._updateZoom(1)}},{key:"toggleVisible",value:function(t){this.adapter.toggleClass(this.adaptedElement.parent(".ssplayer-video-player"),"ssplayer-idle",!t)}},{key:"toggleAccessibilityVisibility",value:function(t){this.adaptedElement.attr("aria-hidden",t)}},{key:"onFullscreenChange",value:function(){d.default.element?(this.restartHideTimeout(),this.fullScreenOffButton&&this.fullScreenOffButton.focus(),this.playerStateManager.isDisableA11y||this.adaptedElement.on("keydown",this.keyPressHandler)):(this.clearHideTimeout(),this.playerStateManager.isDisableA11y||this.adaptedElement.off("keydown",this.keyPressHandler))}},{key:"onDocumentMouseMove",value:function(){this.restartHideTimeout()}},{key:"restartHideTimeout",value:function(){var t=this;clearTimeout(this.idleId),this.toggleVisible(!0),this.idleId=setTimeout(function(){t.toggleVisible(!1),delete t.idleId},3e3)}},{key:"clearHideTimeout",value:function(){clearTimeout(this.idleId),this.toggleVisible(!0),delete this.idleId}},{key:"addA11yControlText",value:function(){var t=this,e=arguments.length<=0||void 0===arguments[0]?{}:arguments[0],n=arguments.length<=1||void 0===arguments[1]?[]:arguments[1];(n=n.concat([{cssSelector:".ssplayer-play-button",key:"playButtonA11yControlText"},{cssSelector:".ssplayer-pause-button",key:"pauseButtonA11yControlText"},{cssSelector:".ssplayer-share-button",key:"shareButtonA11yControlText"},{cssSelector:".ssplayer-zoom-in-button",key:"zoomInButtonA11yControlText"},{cssSelector:".ssplayer-zoom-out-button",key:"zoomOutButtonA11yControlText"},{cssSelector:".ssplayer-zoom-options-select-label",key:"zoomSelectA11yControlText"},{cssSelector:".ssplayer-volume-switch",key:"volumeOnButtonA11yControlText"},{cssSelector:".ssplayer-fullscreen-on-button",key:"fullscreenOnButtonA11yControlText"},{cssSelector:".ssplayer-fullscreen-off-button",key:"fullscreenOffButtonA11yControlText"},{cssSelector:".ssplayer-linkedin-logo-link",key:"linkedinLogoLinkA11yControlText"},{cssSelector:".chevron-left-button",key:"previousButtonA11yControlText"},{cssSelector:".chevron-right-button",key:"nextButtonA11yControlText"}])).forEach(function(n){var i=n.cssSelector,r=n.key,o=e[r];o&&t.createA11yControlTextEl(i,o)})}},{key:"createA11yControlTextEl",value:function(t){var e=arguments.length<=1||void 0===arguments[1]?"":arguments[1],n=this.adaptedElement.find(t);if(0!==n.length&&e){var i=(0,v.createA11yControlTextElement)(e);n.append(i)}}},{key:"hcmMode",get:function(){return this.hcm},set:function(t){this.hcm=t,this.hcmStateLabelElement.innerText=!0===this.hcm?this.options.hcmOnStateLabel:this.options.hcmOffStateLabel}}]),e}(p.default);e.default=g,t.exports=e.default},function(t,e,n){"use strict";var i=n(201).default,r=n(211).default,o=n(240).default,a=n(245).default,s=n(196).default;Object.defineProperty(e,"__esModule",{value:!0});var u=n(261),l=function(t){function e(t){a(this,e),i(Object.getPrototypeOf(e.prototype),"constructor",this).call(this,t),u.events.mixin(this),this.isMouseOver=!1}return r(e,t),o(e,[{key:"beforeInit",value:function(){this.addEvents([this.element,"mouseover",this.onMouseOver],[this.element,"mouseout",this.onMouseOut])}},{key:"onMouseOver",value:function(){this.isMouseOver=!0,this.emit("mouseOver")}},{key:"onMouseOut",value:function(){this.isMouseOver=!1,this.emit("mouseOut")}}]),e}(s(n(248)).default);e.default=l,t.exports=e.default},function(t,e,n){"use strict";var i=n(201).default,r=n(211).default,o=n(240).default,a=n(245).default,s=n(196).default;Object.defineProperty(e,"__esModule",{value:!0});var u=n(340),l=function(t){function e(){a(this,e),i(Object.getPrototypeOf(e.prototype),"constructor",this).apply(this,arguments)}return r(e,t),o(e,[{key:"calculateValue",value:function(t){return this.max-(0,u.calculateVerticalValue)(t,this.progressElement,0,this.max)}}]),e}(s(n(352)).default);e.default=l,t.exports=e.default},function(t,e,n){"use strict";var i=n(201).default,r=n(211).default,o=n(240).default,a=n(245).default,s=n(196).default;Object.defineProperty(e,"__esModule",{value:!0});var u=s(n(247)),l=n(261),c=n(348),d=function(t){function e(t,n,r){void 0===n&&(n={}),a(this,e),i(Object.getPrototypeOf(e.prototype),"constructor",this).call(this,t,(0,u.default)({},n,{classes:{playing:"ssplayer-playing",paused:"ssplayer-paused",idle:"ssplayer-idle",ended:"ssplayer-ended"}}),void 0,r),l.events.mixin(this),n.a11yControlText&&this.adaptedElement.attr({"aria-label":n.a11yControlText})}return r(e,t),o(e,[{key:"beforeInit",value:function(){i(Object.getPrototypeOf(e.prototype),"beforeInit",this).call(this),this.addEvents([this.element,"click",(0,c.delegated)("video",this.onVideoClick)],[this.element,"click",this.onClick])}},{key:"onVideoClick",value:function(){this.emit("click")}},{key:"onClick",value:function(){this.emit("userInteracted")}},{key:"idle",set:function(t){this.adapter.toggleClass(this.adaptedElement,this.options.classes.idle,t)}},{key:"ended",set:function(t){this.adapter.toggleClass(this.adaptedElement,this.options.classes.ended,t)}},{key:"paused",set:function(t){this.adapter.toggleClass(this.adaptedElement,this.options.classes.paused,t),this.adapter.toggleClass(this.adaptedElement,this.options.classes.playing,!t)}}]),e}(s(n(374)).default);e.default=d,t.exports=e.default},function(t,e,n){"use strict";var i=n(201).default,r=n(211).default,o=n(240).default,a=n(245).default,s=n(196).default;Object.defineProperty(e,"__esModule",{value:!0});var u=s(n(247)),l=n(261),c=s(n(322)),d=function(t){function e(t,n,r,o){return void 0===n&&(n={}),void 0===r&&(r=t.ownerDocument),function(){a(this,e),i(Object.getPrototypeOf(e.prototype),"constructor",this).call(this,t),l.events.mixin(this),this.options=(0,u.default)({},n,{classes:{fullscreenDisabled:"ssplayer-fullscreen-disabled",fullscreen:"ssplayer-fullscreen"}}),this.document=r,this.playerStateManager=o,this.adapter.toggleClass(this.adaptedElement,this.options.classes.fullscreenDisabled,!c.default.enabled)}.apply(this,arguments)}return r(e,t),o(e,[{key:"beforeInit",value:function(){c.default.raw&&c.default.raw.fullscreenchange&&this.addEvents([this.document,c.default.raw.fullscreenchange,this.onDocumentFullscreenchange])}},{key:"onDocumentFullscreenchange",value:function(){this.adapter.toggleClass(this.adaptedElement,this.options.classes.fullscreen,this.fullscreen),this.playerStateManager.isFullscreenOn=c.default.isFullscreen,this.emit("changeFullscreen",this.fullscreen)}},{key:"fullscreenEnabled",get:function(){return c.default.enabled}},{key:"fullscreen",get:function(){return c.default.element===this.element},set:function(t){t?c.default.request(this.element):c.default.exit(this.element)}}]),e}(s(n(248)).default);e.default=d,t.exports=e.default},function(t,e,n){"use strict";var i=n(201).default,r=n(211).default,o=n(240).default,a=n(245).default,s=n(251).default,u=n(196).default;Object.defineProperty(e,"__esModule",{value:!0});var l=n(261),c=function(t){function e(){a(this,e);for(var t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];i(Object.getPrototypeOf(e.prototype),"constructor",this).apply(this,n),l.events.mixin(this)}return r(e,t),o(e,[{key:"beforeInit",value:function(){this.addEvents([this.element,"click",this.onClick])}},{key:"onClick",value:function(){this.emit(0===this.volumeValue?"unmute":"mute")}},{key:"iconVolumeRanges",get:function(){return[["ssplayer-volume-muted",-1/0,0],["ssplayer-volume-min",0,.33],["ssplayer-volume-med",.33,.66],["ssplayer-volume-max",.66,1/0]]}},{key:"volume",set:function(t){var e=this;this.volumeValue=t,this.iconVolumeRanges.forEach(function(n){var i=s(n,3),r=i[0],o=i[1],a=i[2],u=e.adapter.find(e.adaptedElement,"."+r),l=[r];t>o&&t<=a&&l.push(e.options.activeClass),e.adapter.setAttr(u,"class",l.join(" "))})}}]),e}(u(n(200)).default);e.default=c,t.exports=e.default},function(t,e,n){"use strict";var i=n(201).default,r=n(211).default,o=n(240).default,a=n(245).default,s=n(196).default;Object.defineProperty(e,"__esModule",{value:!0});var u=s(n(294)),l=s(n(366)),c=n(367).CONTROL_NAME.ENDCARD,d=function(t){function e(t,n,r,o,s,u){a(this,e),i(Object.getPrototypeOf(e.prototype),"constructor",this).call(this),this.videojsPlayer=t,this.videoAdapter=n,this.controlTracker=r,this.endcard=o,this.endcardModal=s,this.shareModal=u}return r(e,t),o(e,[{key:"beforeInit",value:function(){this.addEvents([this.videojsPlayer,"ended",this.onVideojsEnded],[this.videojsPlayer,"play",this.onVideojsPlay],[this.endcard,"share",this.onEndcardShare],[this.endcard,"play",this.onEndcardPlay],[this.endcardModal,"exitFullscreen",this.onEndcardModalExitFullscreen])}},{key:"onVideojsEnded",value:function(){this.endcardModal.open()}},{key:"onVideojsPlay",value:function(){this.endcardModal.close()}},{key:"onEndcardShare",value:function(){this.videoAdapter.emit(l.default.SHARE_MODAL_OPEN,c.SHARE),this.shareModal.open()}},{key:"onEndcardPlay",value:function(){this.endcardModal.close(),this.controlTracker.controlName=this.videojsPlayer.ended()?c.REPLAY:c.PLAY,this.videojsPlayer.play()}},{key:"onEndcardModalExitFullscreen",value:function(){this.videoAdapter.emit(l.default.EXIT_FULLSCREEN,c.FULLSCREEN),this.videojsPlayer.exitFullscreen()}}]),e}(u.default);e.default=d,t.exports=e.default},function(t,e,n){"use strict";var i=n(201).default,r=n(211).default,o=n(240).default,a=n(245).default,s=n(196).default;Object.defineProperty(e,"__esModule",{value:!0});var u=s(n(294)),l=s(n(366)),c=n(367).CONTROL_NAME.TOOLBAR.FULLSCREEN,d=function(t){function e(t,n,r){var o=arguments.length<=3||void 0===arguments[3]?{}:arguments[3];a(this,e),i(Object.getPrototypeOf(e.prototype),"constructor",this).call(this),this.fullscreenTarget=t,this.videoAdapter=n,this.toolbar=r,this.playerStateManager=o}return r(e,t),o(e,[{key:"beforeInit",value:function(){this.addEvents([this.toolbar,"enterFullscreen",this.onToolbarEnterFullscreen],[this.toolbar,"exitFullscreen",this.onToolbarExitFullscreen],[this.fullscreenTarget,"changeFullscreen",this.onChangeFullscreen])}},{key:"onToolbarEnterFullscreen",value:function(){var t=this;this.videoAdapter.emit(l.default.ENTER_FULLSCREEN,c),this.fullscreenTarget.fullscreen=!0,!this.playerStateManager.isDisableA11y&&this.playerStateManager.isFocusActive&&setTimeout(function(){return t.toolbar.fullScreenOffButton.focus()},1e3)}},{key:"onToolbarExitFullscreen",value:function(){var t=this;this.videoAdapter.emit(l.default.EXIT_FULLSCREEN,c),this.fullscreenTarget.fullscreen=!1,!this.playerStateManager.isDisableA11y&&this.playerStateManager.isFocusActive&&setTimeout(function(){return t.toolbar.fullScreenOnButton.focus()},1e3)}},{key:"onChangeFullscreen",value:function(t){t?document.documentElement.classList.add("ssplayer-fullscreen"):document.documentElement.classList.remove("ssplayer-fullscreen")}}]),e}(u.default);e.default=d,t.exports=e.default},function(t,e,n){"use strict";var i=n(201).default,r=n(211).default,o=n(240).default,a=n(245).default,s=n(196).default;Object.defineProperty(e,"__esModule",{value:!0});var u=function(t){function e(t){a(this,e),i(Object.getPrototypeOf(e.prototype),"constructor",this).call(this);for(var n=arguments.length,r=Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];this.modals=r.reverse(),this.toolbar=t,this.openedModal=0}return r(e,t),o(e,[{key:"beforeInit",value:function(){var t=this;this.modals.forEach(function(e){t.addEvents([e,"opened",t.onModalOpened],[e,"closed",t.onModalClosed])}),this.updateActiveModalsLevels()}},{key:"updateActiveModalsLevels",value:function(){this.modals.filter(function(t){return t.active}).forEach(function(t,e){t.level=e})}},{key:"onModalOpened",value:function(){this.updateActiveModalsLevels(),this.openedModal+=1,1===this.openedModal&&this.toolbar.hide()}},{key:"onModalClosed",value:function(){this.updateActiveModalsLevels(),this.openedModal-=1,0===this.openedModal&&this.toolbar.show()}}]),e}(s(n(294)).default);e.default=u,t.exports=e.default},function(t,e,n){"use strict";var i=n(201).default,r=n(211).default,o=n(240).default,a=n(245).default,s=n(251).default,u=n(259).default,l=n(196).default,c=n(198).default;Object.defineProperty(e,"__esModule",{value:!0});var d=l(n(380)),f=l(n(247)),h=c(n(381)),p=l(n(294)),v=n(311),y=function(t){function e(t,n){a(this,e),i(Object.getPrototypeOf(e.prototype),"constructor",this).call(this),this.components=t,this.options=(0,f.default)(n,{isRtl:!1,callbacks:{}}),this.isAccessibilityModeEnabled=!1,this.components.sidepanelRight&&this.components.sidepanelRight.element&&(this.rightNavButton=this.components.sidepanelRight.element.firstElementChild),this.components.sidepanelLeft&&this.components.sidepanelLeft.element&&(this.leftNavButton=this.components.sidepanelLeft.element.firstElementChild)}return r(e,t),o(e,[{key:"beforeInit",value:function(){var t=this.components,e=t.carousel,n=t.keyboard,i=t.sidepanelRight,r=t.sidepanelLeft,o=t.progress,a=t.toolbar,l=t.topbar,c=t.bottombar,f=t.presentation,h=t.virusScan,p=[[e,"positionChange",this.onCarouselPosition],[e,"loadingStart",this.onCarouselLoadingStart],[e,"loadingEnd",this.onCarouselLoadingEnd],[n,"rightArrow",this.onRightKey],[n,"leftArrow",this.onLeftKey],[n,"plus",this.onPlusKey],[n,"minus",this.onMinusKey],[n,"tab",this.onTabCancel],[i,"click",this.onRightNav],[r,"click",this.onLeftNav],[o,"positionClick",this.onPositionChange],[o,"positionDrag",this.onProgressDrag],[o,"positionHover",this.onProgressHover],[o,"mouseEnter",this.onProgressEnter],[o,"mouseLeave",this.onProgressLeave],[o,"showThumbnailPreview",this.onShowThumbnailPreview],[o,"hideThumbnailPreview",this.onHideThumbnailPreview],[a,"enterFullscreen",this.onEnterFullscreen],[a,"zoom",this.onZoom],[l,"cancel",this.onExitFullscreen],[l,"download",this.onDownload],[l,"accessibility",this.onAccessibility],[f,"fullscreen",this.onFullscreen],[h,"virusScanCancel",this.onVirusScanCancel],[h,"virusScanSkip",this.onVirusScanSkip],[h,"virusScanBypass",this.onVirusScanBypass],[h,"virusScanDownload",this.onVirusScanDownload]].filter(function(t){return s(t,1)[0]});this.addEvents.apply(this,u(p)),(0,d.default)(this.components.presentation,"setRtl",this.options.isRtl),(0,d.default)(this.components,"progress.changePosition",e.position,!1),this._updateSidepanelVisibility(e.position,e.slideCount),c&&((0,d.default)(this.components.bottombar,"show"),(0,d.default)(this.components.toolbar,"hide"),(0,d.default)(this.components.sidepanelRight,"hide"),(0,d.default)(this.components.sidepanelLeft,"hide"))}},{key:"onZoom",value:function(){var t=arguments.length<=0||void 0===arguments[0]?1:arguments[0],e=1!==t;(0,d.default)(this.components,"presentation.setIsZoomed",e),(0,d.default)(this.components,"sidepanelLeft.setIsZoomed",e),(0,d.default)(this.components,"sidepanelRight.setIsZoomed",e),(0,d.default)(this.components,"carousel.setZoom",t)}},{key:"onDownload",value:function(){(0,d.default)(this.options.callbacks,"onClickDownload"),(0,d.default)(this.components,"virusScan.execute",function(){},!0,!0)}},{key:"onTabCancel",value:function(t){var e,n=this,i=this.components.topbar,r=i&&i.cancelButtonElement.get(0);this.isAccessibilityModeEnabled&&r&&t.srcElement===r&&(t.shiftKey||(e=n.components.presentation.element.querySelector(".ssplayer-presentation-accessibility-mode__embed"),setTimeout(function(){return e.focus()},1)))}},{key:"onAccessibility",value:function(){var t=this,e=function(){t.isAccessibilityModeEnabled=!t.isAccessibilityModeEnabled,t._toggleAccessibilityControls(t.isAccessibilityModeEnabled)};(0,d.default)(this.options.callbacks,"onClickAccessibilityMode"),this.isAccessibilityModeEnabled?e():(0,d.default)(this.components,"virusScan.execute",e,!1)}},{key:"onVirusScanCancel",value:function(t){(0,d.default)(this.options.callbacks,"onClickVirusScanCancel",t)}},{key:"onVirusScanSkip",value:function(t){(0,d.default)(this.options.callbacks,"onClickVirusScanSkip",t)}},{key:"onVirusScanBypass",value:function(t){(0,d.default)(this.options.callbacks,"onClickVirusScanBypass",t)}},{key:"onVirusScanDownload",value:function(t){(0,d.default)(this.options.callbacks,"onClickVirusScanDownload",t)}},{key:"onCarouselPosition",value:function(t){(0,d.default)(this.options.callbacks,"onChangePosition",t),(0,d.default)(this.components,"pagination.changePosition",t.position),(0,d.default)(this.components,"progress.changePosition",t.position,!0),this._updateSidepanelVisibility(t.position,t.length),this.isFullscreen||0!==t.oldPosition||0===t.newPosition||(0,d.default)(this.components,"topbar.hide")}},{key:"onCarouselLoadingStart",value:function(){(0,d.default)(this.components,"loader.show")}},{key:"onCarouselLoadingEnd",value:function(){(0,d.default)(this.components,"loader.hide")}},{key:"onLeftNav",value:function(){var t=this;this._executeCallbackOnPositionChange(function(){return(0,d.default)(t.options.callbacks,"onClickLeftNav")},function(){return t.onSlidePrevious(v.CHANGE_POSITION_SOURCES.NAV)})}},{key:"onRightNav",value:function(){var t=this;this._executeCallbackOnPositionChange(function(){return(0,d.default)(t.options.callbacks,"onClickRightNav")},function(){return t.onSlideNext(v.CHANGE_POSITION_SOURCES.NAV)})}},{key:"onLeftKey",value:function(){var t=this;this._executeCallbackOnPositionChange(function(){return(0,d.default)(t.options.callbacks,"onLeftKeyPress")},function(){return t.onSlidePrevious(v.CHANGE_POSITION_SOURCES.KEY)})}},{key:"onRightKey",value:function(){var t=this;this._executeCallbackOnPositionChange(function(){return(0,d.default)(t.options.callbacks,"onRightKeyPress")},function(){return t.onSlideNext(v.CHANGE_POSITION_SOURCES.KEY)})}},{key:"onPlusKey",value:function(){this.isFullscreen&&!this.components.toolbar.zoomInButtonElement.disabled&&(this.components.toolbar.zoomInButtonElement.focus(),(0,d.default)(this.components,"toolbar.onZoomIn"))}},{key:"onMinusKey",value:function(){this.isFullscreen&&!this.components.toolbar.zoomOutButtonElement.disabled&&(this.components.toolbar.zoomOutButtonElement.focus(),(0,d.default)(this.components,"toolbar.onZoomOut"))}},{key:"onSlideNext",value:function(t){(0,d.default)(this.components,"carousel.next",t,this.rightNavButton)}},{key:"onSlidePrevious",value:function(t){(0,d.default)(this.components,"carousel.previous",t,this.leftNavButton)}},{key:"onPositionChange",value:function(t){var e=this;this._executeCallbackOnPositionChange(function(){return(0,d.default)(e.options.callbacks,"onProgressMove",t)},function(){(0,d.default)(e.components,"carousel.trackSlideExitOnPositionChange",t),(0,d.default)(e.components,"carousel.changePosition",t,!1,v.CHANGE_POSITION_SOURCES.PROGRESS,void 0,void 0,!0)})}},{key:"onProgressDrag",value:function(t){(0,d.default)(this.components,"progress.changePosition",t,!1),this.onPositionChange(t)}},{key:"onFullscreen",value:function(t){this.isFullscreen=t,(0,d.default)(this.options.callbacks,"onFullscreen",t),this.focusTrap=this.focusTrap||h.createFocusTrap("body",{initialFocus:"body"}),t?((0,d.default)(this.components,"topbar.setFocus"),this.focusTrap.activate()):(this.isAccessibilityModeEnabled=!1,this._toggleAccessibilityControls(this.isAccessibilityModeEnabled),(0,d.default)(this.components,"toolbar.resetZoom"),this.focusTrap.deactivate({returnFocus:!1}),(0,d.default)(this.components,"toolbar.setFocus")),(0,d.default)(this.components,"carousel.onWindowResize"),(0,d.default)(this.components,"progress.changePosition",this.components.carousel.position,!1)}},{key:"onEnterFullscreen",value:function(){(0,d.default)(this.options.callbacks,"onClickEnterFullscreen"),(0,d.default)(this.components,"presentation.enterFullscreen")}},{key:"onExitFullscreen",value:function(){(0,d.default)(this.options.callbacks,"onClickExitFullscreen"),(0,d.default)(this.components,"presentation.exitFullscreen")}},{key:"onProgressHover",value:function(t){var e=this.components.progress.progressBarWidthInPx;(0,d.default)(this.components,"previewThumbnail.changeThumbnailPosition",t.x,e),(0,d.default)(this.components,"previewThumbnail.changeThumbnailPagination",t.position+1)}},{key:"onProgressEnter",value:function(){this.onShowThumbnailPreview()}},{key:"onProgressLeave",value:function(){this.onHideThumbnailPreview()}},{key:"onShowThumbnailPreview",value:function(){(0,d.default)(this.components,"previewThumbnail.toggleThumbnail",!0)}},{key:"onHideThumbnailPreview",value:function(){(0,d.default)(this.components,"previewThumbnail.toggleThumbnail",!1)}},{key:"_toggleAccessibilityControls",value:function(t){(0,d.default)(this.components,"topbar.setAccessibilityButtonState",t),(0,d.default)(this.components,"accessibilityModeFrame.toggle",t),(0,d.default)(this.components,"sidepanelLeft.toggleEnabled",!t),(0,d.default)(this.components,"sidepanelRight.toggleEnabled",!t),(0,d.default)(this.components,"carousel.toggleAccessibilityVisibility",t,t),(0,d.default)(this.components,"toolbar.toggleAccessibilityVisibility",t)}},{key:"_updateSidepanelVisibility",value:function(t,e){this.rightNavButton&&this.leftNavButton&&(document.activeElement===this.rightNavButton&&t>=e-1?this.leftNavButton.focus():document.activeElement===this.leftNavButton&&0===t&&this.rightNavButton.focus()),(0,d.default)(this.components,"sidepanelRight.toggleEnabled",t<e-1),(0,d.default)(this.components,"sidepanelLeft.toggleEnabled",t>0)}},{key:"_executeCallbackOnPositionChange",value:function(t,e){var n=this.components.carousel.position;e(),this.components.carousel.position!==n&&t()}}]),e}(p.default);e.default=y,t.exports=e.default},function(t,e){(function(e){var n="Expected a function",i="__lodash_hash_undefined__",r=1/0,o="[object Function]",a="[object GeneratorFunction]",s="[object Symbol]",u=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,l=/^\w*$/,c=/^\./,d=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,f=/\\(\\)?/g,h=/^\[object .+?Constructor\]$/,p="object"==typeof e&&e&&e.Object===Object&&e,v="object"==typeof self&&self&&self.Object===Object&&self,y=p||v||Function("return this")();function m(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}var g,b=Array.prototype,_=Function.prototype,T=Object.prototype,E=y["__core-js_shared__"],w=(g=/[^.]+$/.exec(E&&E.keys&&E.keys.IE_PROTO||""))?"Symbol(src)_1."+g:"",k=_.toString,S=T.hasOwnProperty,O=T.toString,C=RegExp("^"+k.call(S).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),x=y.Symbol,P=b.splice,A=Math.max,j=H(y,"Map"),M=H(Object,"create"),I=x?x.prototype:void 0,L=I?I.toString:void 0;function R(t){var e=-1,n=t?t.length:0;for(this.clear();++e<n;){var i=t[e];this.set(i[0],i[1])}}function D(t){var e=-1,n=t?t.length:0;for(this.clear();++e<n;){var i=t[e];this.set(i[0],i[1])}}function N(t){var e=-1,n=t?t.length:0;for(this.clear();++e<n;){var i=t[e];this.set(i[0],i[1])}}function B(t,e){for(var n,i,r=t.length;r--;)if((n=t[r][0])===(i=e)||n!=n&&i!=i)return r;return-1}function U(t){return!(!X(t)||w&&w in t)&&(function(t){var e=X(t)?O.call(t):"";return e==o||e==a}(t)||function(t){var e=!1;if(null!=t&&"function"!=typeof t.toString)try{e=!!(t+"")}catch(t){}return e}(t)?C:h).test(function(t){if(null!=t){try{return k.call(t)}catch(t){}try{return t+""}catch(t){}}return""}(t))}function F(t){return Y(t)?t:q(t)}function V(t,e){var n,i,r=t.__data__;return("string"==(i=typeof(n=e))||"number"==i||"symbol"==i||"boolean"==i?"__proto__"!==n:null===n)?r["string"==typeof e?"string":"hash"]:r.map}function H(t,e){var n=function(t,e){return null==t?void 0:t[e]}(t,e);return U(n)?n:void 0}function z(t,e){if(Y(t))return!1;var n=typeof t;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!$(t))||(l.test(t)||!u.test(t)||null!=e&&t in Object(e))}R.prototype.clear=function(){this.__data__=M?M(null):{}},R.prototype.delete=function(t){return this.has(t)&&delete this.__data__[t]},R.prototype.get=function(t){var e=this.__data__;if(M){var n=e[t];return n===i?void 0:n}return S.call(e,t)?e[t]:void 0},R.prototype.has=function(t){var e=this.__data__;return M?void 0!==e[t]:S.call(e,t)},R.prototype.set=function(t,e){return this.__data__[t]=M&&void 0===e?i:e,this},D.prototype.clear=function(){this.__data__=[]},D.prototype.delete=function(t){var e=this.__data__,n=B(e,t);return!(n<0||(n==e.length-1?e.pop():P.call(e,n,1),0))},D.prototype.get=function(t){var e=this.__data__,n=B(e,t);return n<0?void 0:e[n][1]},D.prototype.has=function(t){return B(this.__data__,t)>-1},D.prototype.set=function(t,e){var n=this.__data__,i=B(n,t);return i<0?n.push([t,e]):n[i][1]=e,this},N.prototype.clear=function(){this.__data__={hash:new R,map:new(j||D),string:new R}},N.prototype.delete=function(t){return V(this,t).delete(t)},N.prototype.get=function(t){return V(this,t).get(t)},N.prototype.has=function(t){return V(this,t).has(t)},N.prototype.set=function(t,e){return V(this,t).set(t,e),this};var q=W(function(t){var e;t=null==(e=t)?"":function(t){if("string"==typeof t)return t;if($(t))return L?L.call(t):"";var e=t+"";return"0"==e&&1/t==-r?"-0":e}(e);var n=[];return c.test(t)&&n.push(""),t.replace(d,function(t,e,i,r){n.push(i?r.replace(f,"$1"):e||t)}),n});function G(t){if("string"==typeof t||$(t))return t;var e=t+"";return"0"==e&&1/t==-r?"-0":e}function W(t,e){if("function"!=typeof t||e&&"function"!=typeof e)throw new TypeError(n);var i=function(){var n=arguments,r=e?e.apply(this,n):n[0],o=i.cache;if(o.has(r))return o.get(r);var a=t.apply(this,n);return i.cache=o.set(r,a),a};return i.cache=new(W.Cache||N),i}W.Cache=N;var Y=Array.isArray;function X(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}function $(t){return"symbol"==typeof t||function(t){return!!t&&"object"==typeof t}(t)&&O.call(t)==s}var K,J,Z=(K=function(t,e,n){var i,r;z(e,t)||(t=function(t,e){return 1==e.length?t:function(t,e){for(var n=0,i=(e=z(e,t)?[e]:F(e)).length;null!=t&&n<i;)t=t[G(e[n++])];return n&&n==i?t:void 0}(t,function(t,e,n){var i=-1,r=t.length;e<0&&(e=-e>r?0:r+e),(n=n>r?r:n)<0&&(n+=r),r=e>n?0:n-e>>>0,e>>>=0;for(var o=Array(r);++i<r;)o[i]=t[i+e];return o}(e,0,-1))}(t,e=F(e)),e=(r=(i=e)?i.length:0)?i[r-1]:void 0);var o=null==t?t:t[G(e)];return null==o?void 0:m(o,t,n)},J=A(void 0===J?K.length-1:J,0),function(){for(var t=arguments,e=-1,n=A(t.length-J,0),i=Array(n);++e<n;)i[e]=t[J+e];e=-1;for(var r=Array(J+1);++e<J;)r[e]=t[e];return r[J]=i,m(K,this,r)});t.exports=Z}).call(e,function(){return this}())},function(t,e,n){
/*!
	* focus-trap 6.9.2
	* @license MIT, https://github.com/focus-trap/focus-trap/blob/master/LICENSE
	*/
"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(382);function r(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,i)}return n}function o(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?r(Object(n),!0).forEach(function(e){a(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}function a(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var s,u=(s=[],{activateTrap:function(t){if(s.length>0){var e=s[s.length-1];e!==t&&e.pause()}var n=s.indexOf(t);-1===n?s.push(t):(s.splice(n,1),s.push(t))},deactivateTrap:function(t){var e=s.indexOf(t);-1!==e&&s.splice(e,1),s.length>0&&s[s.length-1].unpause()}}),l=function(t){return setTimeout(t,0)},c=function(t,e){var n=-1;return t.every(function(t,i){return!e(t)||(n=i,!1)}),n},d=function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),i=1;i<e;i++)n[i-1]=arguments[i];return"function"==typeof t?t.apply(void 0,n):t},f=function(t){return t.target.shadowRoot&&"function"==typeof t.composedPath?t.composedPath()[0]:t.target};e.createFocusTrap=function(t,e){var n,r=(null==e?void 0:e.document)||document,a=o({returnFocusOnDeactivate:!0,escapeDeactivates:!0,delayInitialFocus:!0},e),s={containers:[],containerGroups:[],tabbableGroups:[],nodeFocusedBeforeActivation:null,mostRecentlyFocusedNode:null,active:!1,paused:!1,delayInitialFocusTimer:void 0},h=function(t,e,n){return t&&void 0!==t[e]?t[e]:a[n||e]},p=function(t){return s.containerGroups.findIndex(function(e){var n=e.container,i=e.tabbableNodes;return n.contains(t)||i.find(function(e){return e===t})})},v=function(t){var e=a[t];if("function"==typeof e){for(var n=arguments.length,i=new Array(n>1?n-1:0),o=1;o<n;o++)i[o-1]=arguments[o];e=e.apply(void 0,i)}if(!0===e&&(e=void 0),!e){if(void 0===e||!1===e)return e;throw new Error("`".concat(t,"` was specified but was not a node, or did not return a node"))}var s=e;if("string"==typeof e&&!(s=r.querySelector(e)))throw new Error("`".concat(t,"` as selector refers to no known node"));return s},y=function(){var t=v("initialFocus");if(!1===t)return!1;if(void 0===t)if(p(r.activeElement)>=0)t=r.activeElement;else{var e=s.tabbableGroups[0];t=e&&e.firstTabbableNode||v("fallbackFocus")}if(!t)throw new Error("Your focus-trap needs to have at least one focusable element");return t},m=function(){if(s.containerGroups=s.containers.map(function(t){var e=i.tabbable(t,a.tabbableOptions),n=i.focusable(t,a.tabbableOptions);return{container:t,tabbableNodes:e,focusableNodes:n,firstTabbableNode:e.length>0?e[0]:null,lastTabbableNode:e.length>0?e[e.length-1]:null,nextTabbableNode:function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=n.findIndex(function(e){return e===t});if(!(r<0))return e?n.slice(r+1).find(function(t){return i.isTabbable(t,a.tabbableOptions)}):n.slice(0,r).reverse().find(function(t){return i.isTabbable(t,a.tabbableOptions)})}}}),s.tabbableGroups=s.containerGroups.filter(function(t){return t.tabbableNodes.length>0}),s.tabbableGroups.length<=0&&!v("fallbackFocus"))throw new Error("Your focus-trap must have at least one container with at least one tabbable node in it at all times")},g=function t(e){!1!==e&&e!==r.activeElement&&(e&&e.focus?(e.focus({preventScroll:!!a.preventScroll}),s.mostRecentlyFocusedNode=e,function(t){return t.tagName&&"input"===t.tagName.toLowerCase()&&"function"==typeof t.select}(e)&&e.select()):t(y()))},b=function(t){var e=v("setReturnFocus",t);return e||!1!==e&&t},_=function(t){var e=f(t);p(e)>=0||(d(a.clickOutsideDeactivates,t)?n.deactivate({returnFocus:a.returnFocusOnDeactivate&&!i.isFocusable(e,a.tabbableOptions)}):d(a.allowOutsideClick,t)||t.preventDefault())},T=function(t){var e=f(t),n=p(e)>=0;n||e instanceof Document?n&&(s.mostRecentlyFocusedNode=e):(t.stopImmediatePropagation(),g(s.mostRecentlyFocusedNode||y()))},E=function(t){if(function(t){return"Escape"===t.key||"Esc"===t.key||27===t.keyCode}(t)&&!1!==d(a.escapeDeactivates,t))return t.preventDefault(),void n.deactivate();(function(t){return"Tab"===t.key||9===t.keyCode})(t)&&function(t){var e=f(t);m();var n=null;if(s.tabbableGroups.length>0){var r=p(e),o=r>=0?s.containerGroups[r]:void 0;if(r<0)n=t.shiftKey?s.tabbableGroups[s.tabbableGroups.length-1].lastTabbableNode:s.tabbableGroups[0].firstTabbableNode;else if(t.shiftKey){var u=c(s.tabbableGroups,function(t){var n=t.firstTabbableNode;return e===n});if(u<0&&(o.container===e||i.isFocusable(e,a.tabbableOptions)&&!i.isTabbable(e,a.tabbableOptions)&&!o.nextTabbableNode(e,!1))&&(u=r),u>=0){var l=0===u?s.tabbableGroups.length-1:u-1;n=s.tabbableGroups[l].lastTabbableNode}}else{var d=c(s.tabbableGroups,function(t){var n=t.lastTabbableNode;return e===n});if(d<0&&(o.container===e||i.isFocusable(e,a.tabbableOptions)&&!i.isTabbable(e,a.tabbableOptions)&&!o.nextTabbableNode(e))&&(d=r),d>=0){var h=d===s.tabbableGroups.length-1?0:d+1;n=s.tabbableGroups[h].firstTabbableNode}}}else n=v("fallbackFocus");n&&(t.preventDefault(),g(n))}(t)},w=function(t){var e=f(t);p(e)>=0||d(a.clickOutsideDeactivates,t)||d(a.allowOutsideClick,t)||(t.preventDefault(),t.stopImmediatePropagation())},k=function(){if(s.active)return u.activateTrap(n),s.delayInitialFocusTimer=a.delayInitialFocus?l(function(){g(y())}):g(y()),r.addEventListener("focusin",T,!0),r.addEventListener("mousedown",_,{capture:!0,passive:!1}),r.addEventListener("touchstart",_,{capture:!0,passive:!1}),r.addEventListener("click",w,{capture:!0,passive:!1}),r.addEventListener("keydown",E,{capture:!0,passive:!1}),n},S=function(){if(s.active)return r.removeEventListener("focusin",T,!0),r.removeEventListener("mousedown",_,!0),r.removeEventListener("touchstart",_,!0),r.removeEventListener("click",w,!0),r.removeEventListener("keydown",E,!0),n};return(n={get active(){return s.active},get paused(){return s.paused},activate:function(t){if(s.active)return this;var e=h(t,"onActivate"),n=h(t,"onPostActivate"),i=h(t,"checkCanFocusTrap");i||m(),s.active=!0,s.paused=!1,s.nodeFocusedBeforeActivation=r.activeElement,e&&e();var o=function(){i&&m(),k(),n&&n()};return i?(i(s.containers.concat()).then(o,o),this):(o(),this)},deactivate:function(t){if(!s.active)return this;var e=o({onDeactivate:a.onDeactivate,onPostDeactivate:a.onPostDeactivate,checkCanReturnFocus:a.checkCanReturnFocus},t);clearTimeout(s.delayInitialFocusTimer),s.delayInitialFocusTimer=void 0,S(),s.active=!1,s.paused=!1,u.deactivateTrap(n);var i=h(e,"onDeactivate"),r=h(e,"onPostDeactivate"),c=h(e,"checkCanReturnFocus"),d=h(e,"returnFocus","returnFocusOnDeactivate");i&&i();var f=function(){l(function(){d&&g(b(s.nodeFocusedBeforeActivation)),r&&r()})};return d&&c?(c(b(s.nodeFocusedBeforeActivation)).then(f,f),this):(f(),this)},pause:function(){return s.paused||!s.active?this:(s.paused=!0,S(),this)},unpause:function(){return s.paused&&s.active?(s.paused=!1,m(),k(),this):this},updateContainerElements:function(t){var e=[].concat(t).filter(Boolean);return s.containers=e.map(function(t){return"string"==typeof t?r.querySelector(t):t}),s.active&&m(),this}}).updateContainerElements(t),n}},function(t,e){
/*!
	* tabbable 5.3.2
	* @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE
	*/
"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=["input","select","textarea","a[href]","button","[tabindex]:not(slot)","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])',"details>summary:first-of-type","details"],i=n.join(","),r="undefined"==typeof Element,o=r?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,a=!r&&Element.prototype.getRootNode?function(t){return t.getRootNode()}:function(t){return t.ownerDocument},s=function(t,e,n){var r=Array.prototype.slice.apply(t.querySelectorAll(i));return e&&o.call(t,i)&&r.unshift(t),r=r.filter(n)},u=function t(e,n,r){for(var a=[],s=Array.from(e);s.length;){var u=s.shift();if("SLOT"===u.tagName){var l=u.assignedElements(),c=t(l.length?l:u.children,!0,r);r.flatten?a.push.apply(a,c):a.push({scope:u,candidates:c})}else{o.call(u,i)&&r.filter(u)&&(n||!e.includes(u))&&a.push(u);var d=u.shadowRoot||"function"==typeof r.getShadowRoot&&r.getShadowRoot(u);if(d){var f=t(!0===d?u.children:d.children,!0,r);r.flatten?a.push.apply(a,f):a.push({scope:u,candidates:f})}else s.unshift.apply(s,u.children)}}return a},l=function(t,e){return t.tabIndex<0&&(e||/^(AUDIO|VIDEO|DETAILS)$/.test(t.tagName)||t.isContentEditable)&&isNaN(parseInt(t.getAttribute("tabindex"),10))?0:t.tabIndex},c=function(t,e){return t.tabIndex===e.tabIndex?t.documentOrder-e.documentOrder:t.tabIndex-e.tabIndex},d=function(t){return"INPUT"===t.tagName},f=function(t){return function(t){return d(t)&&"radio"===t.type}(t)&&!function(t){if(!t.name)return!0;var e,n=t.form||a(t),i=function(t){return n.querySelectorAll('input[type="radio"][name="'+t+'"]')};if("undefined"!=typeof window&&void 0!==window.CSS&&"function"==typeof window.CSS.escape)e=i(window.CSS.escape(t.name));else try{e=i(t.name)}catch(t){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",t.message),!1}var r=function(t,e){for(var n=0;n<t.length;n++)if(t[n].checked&&t[n].form===e)return t[n]}(e,t.form);return!r||r===t}(t)},h=function(t){var e=t.getBoundingClientRect(),n=e.width,i=e.height;return 0===n&&0===i},p=function(t,e){return!(e.disabled||function(t){return d(t)&&"hidden"===t.type}(e)||function(t,e){var n=e.displayCheck,i=e.getShadowRoot;if("hidden"===getComputedStyle(t).visibility)return!0;var r=o.call(t,"details>summary:first-of-type")?t.parentElement:t;if(o.call(r,"details:not([open]) *"))return!0;var s=a(t).host,u=(null==s?void 0:s.ownerDocument.contains(s))||t.ownerDocument.contains(t);if(n&&"full"!==n){if("non-zero-area"===n)return h(t)}else{if("function"==typeof i){for(var l=t;t;){var c=t.parentElement,d=a(t);if(c&&!c.shadowRoot&&!0===i(c))return h(t);t=t.assignedSlot?t.assignedSlot:c||d===t.ownerDocument?c:d.host}t=l}if(u)return!t.getClientRects().length}return!1}(e,t)||function(t){return"DETAILS"===t.tagName&&Array.prototype.slice.apply(t.children).some(function(t){return"SUMMARY"===t.tagName})}(e)||function(t){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(t.tagName))for(var e=t.parentElement;e;){if("FIELDSET"===e.tagName&&e.disabled){for(var n=0;n<e.children.length;n++){var i=e.children.item(n);if("LEGEND"===i.tagName)return!!o.call(e,"fieldset[disabled] *")||!i.contains(t)}return!0}e=e.parentElement}return!1}(e))},v=function(t,e){return!(f(e)||l(e)<0||!p(t,e))},y=n.concat("iframe").join(",");e.focusable=function(t,e){return(e=e||{}).getShadowRoot?u([t],e.includeContainer,{filter:p.bind(null,e),flatten:!0,getShadowRoot:e.getShadowRoot}):s(t,e.includeContainer,p.bind(null,e))},e.isFocusable=function(t,e){if(e=e||{},!t)throw new Error("No node provided");return!1!==o.call(t,y)&&p(e,t)},e.isTabbable=function(t,e){if(e=e||{},!t)throw new Error("No node provided");return!1!==o.call(t,i)&&v(e,t)},e.tabbable=function(t,e){return function t(e){var n=[],i=[];return e.forEach(function(e,r){var o=!!e.scope,a=o?e.scope:e,s=l(a,o),u=o?t(e.candidates):a;0===s?o?n.push.apply(n,u):n.push(a):i.push({documentOrder:r,tabIndex:s,item:e,isScope:o,content:u})}),i.sort(c).reduce(function(t,e){return e.isScope?t.push.apply(t,e.content):t.push(e.content),t},[]).concat(n)}((e=e||{}).getShadowRoot?u([t],e.includeContainer,{filter:v.bind(null,e),flatten:!1,getShadowRoot:e.getShadowRoot}):s(t,e.includeContainer,v.bind(null,e)))}},function(t,e,n){"use strict";var i=n(201).default,r=n(211).default,o=n(240).default,a=n(245).default,s=n(196).default;Object.defineProperty(e,"__esModule",{value:!0});var u=function(t){function e(t,n){a(this,e),i(Object.getPrototypeOf(e.prototype),"constructor",this).call(this),this.shareModal=t,this.shareLink=n}return r(e,t),o(e,[{key:"beforeInit",value:function(){this.addEvents([this.shareModal,"opened",this.onShareModalOpen])}},{key:"onShareModalOpen",value:function(){this.shareLink.select()}}]),e}(s(n(294)).default);e.default=u,t.exports=e.default},function(t,e,n){"use strict";var i=n(201).default,r=n(211).default,o=n(240).default,a=n(245).default,s=n(196).default;Object.defineProperty(e,"__esModule",{value:!0});var u=s(n(294)),l=s(n(366)),c=n(367),d=function(t){function e(t,n,r,o,s){a(this,e),i(Object.getPrototypeOf(e.prototype),"constructor",this).call(this),this.videojsPlayer=t,this.videoAdapter=n,this.controlTracker=r,this.toolbar=o,this.shareModal=s}return r(e,t),o(e,[{key:"beforeInit",value:function(){this.addEvents([this.toolbar,"share",this.onToolbarShare],[this.shareModal,"closed",this.onShareModalClose])}},{key:"onToolbarShare",value:function(){var t=c.CONTROL_NAME.TOOLBAR.SHARE;this.videojsPlayer.paused()?this.alreadyPaused=!0:(this.controlTracker.controlName=t,this.videojsPlayer.pause()),this.shareModal.open(),this.videoAdapter.emit(l.default.SHARE_MODAL_OPEN,t)}},{key:"onShareModalClose",value:function(){this.videoAdapter.emit(l.default.SHARE_MODAL_CLOSE),!this.videojsPlayer.ended()&&this.videojsPlayer.paused()&&(this.alreadyPaused?this.alreadyPaused=!1:this.videojsPlayer.play())}}]),e}(u.default);e.default=d,t.exports=e.default},function(t,e,n){"use strict";var i=n(201).default,r=n(211).default,o=n(240).default,a=n(245).default,s=n(196).default;Object.defineProperty(e,"__esModule",{value:!0});var u=function(t){function e(t,n){a(this,e),i(Object.getPrototypeOf(e.prototype),"constructor",this).call(this),this.videojsPlayer=t,this.buffer=n}return r(e,t),o(e,[{key:"beforeInit",value:function(){this.addEvents([this.videojsPlayer,"progress",this.onVideojsProgress]),this.updateProgress()}},{key:"updateProgress",value:function(){this.buffer.buffered=this.videojsPlayer.bufferedPercent()}},{key:"onVideojsProgress",value:function(){this.updateProgress()}}]),e}(s(n(294)).default);e.default=u,t.exports=e.default},function(t,e,n){"use strict";var i=n(201).default,r=n(211).default,o=n(240).default,a=n(245).default,s=n(196).default;Object.defineProperty(e,"__esModule",{value:!0});var u=s(n(294)),l=s(n(387)),c={stopped:"stopped",waiting:"waiting",playing:"playing"},d=function(t){function e(t,n){a(this,e),i(Object.getPrototypeOf(e.prototype),"constructor",this).call(this),this.tracker=n,this.videojs=t,this.isPreloadNone="none"===this.videojs.preload(),this.state=c.stopped,this.seeking=!1,this.initializationStarted=!1,this.initializationEnded=!1,this.isBuffering=!1}return r(e,t),o(e,[{key:"beforeInit",value:function(){this.addEvents([this.videojs,"loadeddata",this.onLoadeddata],[this.videojs,"loadstart",this.onLoadstart],[this.videojs,"pause",this.onPause],[this.videojs,"play",this.onPlay],[this.videojs,"seeked",this.onSeeked],[this.videojs,"seeking",this.onSeeking],[this.videojs,"timeupdate",this.onTimeupdate],[this.videojs,"waiting",this.onWaiting],[this.videojs,"error",this.onError])}},{key:"setInitializationStarted",value:function(){this.initializationStarted||(this.tracker.videoInitializationStart(),this.initializationStarted=!0)}},{key:"setInitializationEnded",value:function(){this.initializationEnded||(this.setInitializationStarted(),this.tracker.videoInitializationEnd(),this.initializationEnded=!0)}},{key:"bufferingStart",value:function(){this.seeking||(this.isBuffering=!0,this.tracker.bufferingStart())}},{key:"bufferingEnd",value:function(){!this.seeking&&this.isBuffering&&(this.isBuffering=!1,this.tracker.bufferingEnd())}},{key:"onSeeking",value:function(){this.seeking=!0}},{key:"onSeeked",value:function(){this.seeking=!1}},{key:"onWaiting",value:function(){this.state===c.playing&&(this.state=c.waiting,this.bufferingStart(),this.bufferingStartTime=Date.now())}},{key:"onTimeupdate",value:function(){Date.now()-this.bufferingStartTime<500||this.state!==c.waiting||(this.state=c.playing,this.bufferingEnd())}},{key:"onPause",value:function(){this.state=c.stopped}},{key:"onPlay",value:function(){this.isPreloadNone&&this.setInitializationStarted(),this.state=c.playing}},{key:"onLoadstart",value:function(){this.isPreloadNone||this.setInitializationStarted()}},{key:"onLoadeddata",value:function(){this.setInitializationEnded()}},{key:"onError",value:function(){if(this.tracker.videoPlaybackError){var t=this.videojs.error();this.tracker.videoPlaybackError(l.default[t.code],t.message)}}}]),e}(u.default);e.default=d,t.exports=e.default},function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.default={0:"CUSTOM",1:"ABORTED",2:"NETWORK",3:"DECODING",4:"SOURCE_FILE",5:"ENCRYPTION"},t.exports=e.default},function(t,e,n){"use strict";var i=n(201).default,r=n(211).default,o=n(240).default,a=n(245).default,s=n(196).default;Object.defineProperty(e,"__esModule",{value:!0});var u=s(n(323)),l=n(304),c=s(n(294)),d=n(367),f=d.CONTROL_NAME.TOOLBAR,h=function(t){function e(t,n,r,o,s,u,l,c){void 0===l&&(l={});var d=c.playButtonA11yControlText,f=c.replayButtonA11yControlText;a(this,e),i(Object.getPrototypeOf(e.prototype),"constructor",this).call(this),this.videojsPlayer=t,this.videoPlayer=n,this.controlTracker=r,this.toolbar=o,this.bigPlayButton=s,this.document=u,this.playerStateManager=l,this.playButtonA11yControlText=d,this.replayButtonA11yControlText=f}return r(e,t),o(e,[{key:"beforeInit",value:function(){this.addEvents([this.videojsPlayer,"play",this.onVideojsPlay],[this.videojsPlayer,"ended",this.onVideojsEnded],[this.videojsPlayer,"pause",this.onVideojsPause],[this.videojsPlayer,"seeked",this.onVideojsSeeked],[this.toolbar,"play",this.onToolbarPlay],[this.toolbar,"pause",this.onToolbarPause],[this.videoPlayer,"click",this.onVideoPlayerClick]),this.playerStateManager.isDisableA11y||this.addEvents([this.document,"keydown",this.onKeyPress]),this.bigPlayButton&&(this.addEvents([this.bigPlayButton,"click",this.onBigPlayButtonClick]),this.bigPlayButton.active=!0),this.updateVideoPlayer(),this.bigPlayButton&&this.toolbar.hide()}},{key:"updateVideoPlayer",value:function(){if(this.videoPlayer.paused=this.videojsPlayer.paused(),this.videoPlayer.ended=this.videojsPlayer.ended(),!this.playerStateManager.isDisableA11y&&this.playerStateManager.isFocusActive){if(this.document.activeElement!==this.toolbar.playButton&&this.document.activeElement!==this.toolbar.pauseButton)return;(this.videojsPlayer.paused()?this.toolbar.playButton:this.toolbar.pauseButton).focus()}}},{key:"onVideojsPlay",value:function(){this.bigPlayButton&&this.bigPlayButton.active&&(this.bigPlayButton.active=!1,this.bigPlayButton.hide(),this.toolbar.show(),this.toolbar.restartHideTimeout(),!this.playerStateManager.isDisableA11y&&this.toolbar.firstFocusableElement&&this.toolbar.firstFocusableElement.focus()),u.default.setElementContent(this.toolbar.playButton.querySelector(".a11y-text"),this.playButtonA11yControlText),this.updateVideoPlayer()}},{key:"onVideojsEnded",value:function(){u.default.setElementContent(this.toolbar.playButton.querySelector(".a11y-text"),this.replayButtonA11yControlText),this.updateVideoPlayer()}},{key:"onVideojsPause",value:function(){this.updateVideoPlayer()}},{key:"onVideojsSeeked",value:function(){this.updateVideoPlayer()}},{key:"onToolbarPlay",value:function(){this.controlTracker.controlName=this.videojsPlayer.ended()?f.REPLAY:f.PLAY,this.videojsPlayer.play()}},{key:"onToolbarPause",value:function(){this.controlTracker.controlName=f.PAUSE,this.videojsPlayer.pause()}},{key:"onBigPlayButtonClick",value:function(){this.controlTracker.controlName=d.CONTROL_NAME.HERO.PLAY,this.videojsPlayer.play()}},{key:"onVideoPlayerClick",value:function(){this.videojsPlayer.paused()?(this.controlTracker.controlName=d.CONTROL_NAME.ELEMENT.PLAY,this.videojsPlayer.play()):(this.controlTracker.controlName=d.CONTROL_NAME.ELEMENT.PAUSE,this.videojsPlayer.pause()),this.playerStateManager.isFocusActive=!1}},{key:"onKeyPress",value:function(t){this.bigPlayButton&&this.bigPlayButton.active||this.toolbar.restartHideTimeout(),t.keyCode===l.KEY_CODE.TAB&&(this.playerStateManager.isFocusActive=!0)}}]),e}(c.default);e.default=h,t.exports=e.default},function(t,e,n){"use strict";var i=n(201).default,r=n(211).default,o=n(240).default,a=n(245).default,s=n(196).default;Object.defineProperty(e,"__esModule",{value:!0});var u=s(n(294)),l=function(t){function e(t,n,r){a(this,e),i(Object.getPrototypeOf(e.prototype),"constructor",this).call(this),this.videojsPlayer=t,this.timeDisplay=n,this.slider=r,this.previousTime=0}return r(e,t),o(e,[{key:"beforeInit",value:function(){this.addEvents([this.videojsPlayer,"durationchange",this.onVideojsDurationChange],[this.videojsPlayer,"timeupdate",this.onVideojsTimeupdate]),this.slider&&this.addEvents([this.slider,"valueChanged",this.onProgressValueChanged]),this.updateDuration(),this.updateCurrentTime()}},{key:"updateDuration",value:function(){var t=this.videojsPlayer.duration()||0;this.timeDisplay&&(this.timeDisplay.duration=t),this.slider&&(this.slider.max=t)}},{key:"updateCurrentTime",value:function(){var t=this.videojsPlayer.currentTime(),e=Math.floor(t),n=Math.floor(this.previousTime);(0===this.previousTime||Math.abs(e-n)>=1)&&this.timeDisplay&&(this.previousTime=e,this.timeDisplay.currentTime=t),this.slider&&!this.slider.dragging&&(this.slider.value=t)}},{key:"onVideojsDurationChange",value:function(){this.updateDuration()}},{key:"onVideojsTimeupdate",value:function(){this.updateCurrentTime()}},{key:"onProgressValueChanged",value:function(){this.videojsPlayer.currentTime(this.slider.value)}}]),e}(u.default);e.default=l,t.exports=e.default},function(t,e,n){"use strict";var i=n(201).default,r=n(211).default,o=n(240).default,a=n(245).default,s=n(242).default,u=n(206).default,l=n(307).default,c=n(196).default;Object.defineProperty(e,"__esModule",{value:!0});var d=n(391),f=c(d),h=c(n(392)),p=c(n(294)),v={ON:"ON",OFF:"OFF",NOT_SUPPORTED:"NOT_SUPPORTED",NOT_MEASURED:"NOT_MEASURED"};e.FEATURE=v;e.DEBOUNCE_MS=300;var y=[0,3e3,7e3,2e4,3e4],m={objectUrn:"mediaUrn",trackingId:"sessionTrackingId"},g=function(t){function e(t,n,r){a(this,e),i(Object.getPrototypeOf(e.prototype),"constructor",this).call(this);var o=r.appId,l=r.header,c=r.requestHeader,h=r.mobileHeader,p=r.topicNamePrefix,y=r.trackingUrl;Object.prototype.hasOwnProperty.call(r,"ccVisible")||(r.ccVisible=v.NOT_MEASURED),this.videojsInstance=t,this.videoPlayer=n,this.videoTrackingAdapter=new f.default(o,c,h,p,{header:l,trackingUrl:y}),this.timeElapsed=0,this.isStarted=!1,this.videoTrackingAdapter.state=r,this.videoTrackingAdapter.mediaTrackingObject=d.MEDIA_TRACKING_OBJECT_FIELDS.reduce(function(t,e){var n=m[e]||e;return Object.prototype.hasOwnProperty.call(r,n)&&s(t,e,u(r,n)),t},{})}return r(e,t),o(e,[{key:"beforeInit",value:function(){this.debounced={seeked:(0,h.default)(this.onVideojsSeeked,300),volumechange:(0,h.default)(this.onVideojsVolumechange,300)},this.addEvents([this.videojsInstance,"playing",this.onVideojsPlaying],[this.videojsInstance,"play",this.onVideojsPlayPause],[this.videojsInstance,"pause",this.onVideojsPlayPause],[this.videojsInstance,"waiting",this.onVideojsWaiting],[this.videojsInstance,"timeupdate",this.onVideojsTimeupdate],[this.videojsInstance,"volumechange",this.debounced.volumechange],[this.videojsInstance,"seeking",this.onVideojsSeeking],[this.videojsInstance,"seeked",this.debounced.seeked],[this.videojsInstance,"ended",this.onVideojsEnded],[this.videojsInstance,"loadedmetadata",this.onVideojsLoadedmetadata],[this.videojsInstance,"ratechange",this.onVideojsRateChange],[this.videoPlayer,"changeFullscreen",this.onFullscreenChange],[this.videoPlayer,"userInteracted",this.onUserInteracted],[window,"beforeunload",this.onBeforeUnload]),this.videojsInstance.ready(this.initState.bind(this))}},{key:"beforeDispose",value:function(){var t=this;this.debounced&&l(this.debounced).forEach(function(e){return t.debounced[e].cancel()}),this.stopBeaconPolling(),this.videoTrackingAdapter=null}},{key:"initState",value:function(){var t=this.videojsInstance.volume();this.timeElapsed=this.videojsInstance.currentTime(),this.videoTrackingAdapter.state={isPlaying:!this.videojsInstance.paused(),timeElapsed:this.timeElapsed,length:this.videojsInstance.duration(),volume:t,fullScreen:this.fullscreenState(),speed:this.videojsInstance.playbackRate()},this.previousVolume=t}},{key:"onVideojsLoadedmetadata",value:function(){this.videoTrackingAdapter.state={length:this.videojsInstance.duration()}}},{key:"startBeaconPolling",value:function(){this.isPolling=!0,this._cancelBeaconInterval(),this._runBeaconInterval(y[0])}},{key:"restartBeaconPolling",value:function(){this.isPolling&&this.startBeaconPolling()}},{key:"stopBeaconPolling",value:function(){this.isPolling&&(this.isPolling=!1,this._cancelBeaconInterval(),this._fireBeaconEvent(),this._timeLastBeaconCalled=null)}},{key:"_runBeaconInterval",value:function(t){var e=y[y.indexOf(t)+1]||y[y.length-1],n=this.videoTrackingAdapter.state.timeElapsed;n===this._beaconTimeElapsed&&t>0?this._cancelBeaconInterval():(this._beaconTimeElapsed=n,this._fireBeaconEvent(),this._beaconPoll=setTimeout(this._runBeaconInterval.bind(this,e),e))}},{key:"_cancelBeaconInterval",value:function(){this._beaconPoll&&(clearTimeout(this._beaconPoll),this._beaconPoll=null)}},{key:"_fireBeaconEvent",value:function(){var t=Date.now(),e=t-(this._timeLastBeaconCalled||t);this._timeLastBeaconCalled=t,this.videoTrackingAdapter.trackPlayerEvent(d.PLAYER_BEACON_EVENT,!!this.videojsInstance.autoplay(),e)}},{key:"onVideojsPlayPause",value:function(){var t=this.videojsInstance.paused();t||this.isStarted||(this.isStarted=!0),this.videoTrackingAdapter.state={isPlaying:!t},t&&this.stopBeaconPolling(),this.videoTrackingAdapter.trackPlayerEvent(d.PLAYER_PLAY_PAUSE_EVENT,d.PLAYER_STATE_CHANGED_REASONS.USER_TRIGGERED)}},{key:"onVideojsPlaying",value:function(){this.videoTrackingAdapter.state={isPlaying:!0},this.startBeaconPolling()}},{key:"onVideojsWaiting",value:function(){this.videoTrackingAdapter.state={isPlaying:!1},this.stopBeaconPolling()}},{key:"onVideojsTimeupdate",value:function(){var t=this.videojsInstance.currentTime(),e=this.videojsInstance.paused();this.isStarted||e||(this.isStarted=!0),this.timeElapsed=t,this.videoTrackingAdapter.state={timeElapsed:this.timeElapsed}}},{key:"onVideojsVolumechange",value:function(){var t=this.videojsInstance.volume();this.videoTrackingAdapter.state={volume:t},this.videoTrackingAdapter.trackPlayerEvent(d.PLAYER_VOLUME_CHANGED_EVENT,this.previousVolume),this.restartBeaconPolling(),this.previousVolume=t}},{key:"onFullscreenChange",value:function(){var t=this.fullscreenState();this.videoTrackingAdapter.state={fullScreen:t},this.restartBeaconPolling()}},{key:"onVideojsRateChange",value:function(){var t=this.videojsInstance.playbackRate();this.videoTrackingAdapter.state={speed:t},this.restartBeaconPolling()}},{key:"onVideojsSeeking",value:function(){this.seeking||(this.seeking=!0,this.previousElapsedTime=this.timeElapsed,this.stopBeaconPolling())}},{key:"onVideojsSeeked",value:function(){this.videoTrackingAdapter.state={timeElapsed:this.videojsInstance.currentTime()},this.videoTrackingAdapter.trackPlayerEvent(d.PLAYER_SEEK_EVENT,this.previousElapsedTime),this.seeking=!1}},{key:"onVideojsEnded",value:function(){this.isStarted=!1,this.videoTrackingAdapter.state={isPlaying:!1}}},{key:"onUserInteracted",value:function(){this.videojsInstance.autoplay(!1)}},{key:"onBeforeUnload",value:function(){this.stopBeaconPolling()}},{key:"fullscreenState",value:function(){return this.videoPlayer.fullscreenEnabled?this.videoPlayer.fullscreen?v.ON:v.OFF:v.NOT_SUPPORTED}}]),e}(p.default);e.default=g},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}();var r,o=n(363),a=(r=o)&&r.__esModule?r:{default:r},s=["mediaUrn","length","mediaViewTrackingId","volume","timeElapsed","isPlaying","ccVisible","downloaded","fullScreen","speed","casting","bitrate","isAudioOnly"],u=["objectUrn","trackingId"],l={ENTERED_VIEWPORT:"ENTERED_VIEWPORT",EXITED_VIEWPORT:"EXITED_VIEWPORT",USER_TRIGGERED:"USER_TRIGGERED",VIDEO_PRIORITY_CHANGED:"VIDEO_PRIORITY_CHANGED"};e.PLAYER_PLAY_PAUSE_EVENT="PlayerPlayPauseEvent",e.PLAYER_POSITION_CHANGED_EVENT="PlayerPositionChangedEvent",e.PLAYER_BEACON_EVENT="PlayerBeaconEvent",e.PLAYER_SEEK_EVENT="PlayerSeekEvent",e.PLAYER_VOLUME_CHANGED_EVENT="PlayerVolumeChangedEvent",e.PLAYER_QUALITY_EVENT="PlayerQualityEvent",e.PLAYER_FULLSCREEN_EVENT="PlayerFullscreenEvent",e.STATE_FIELDS=s,e.MEDIA_TRACKING_OBJECT_FIELDS=u,e.PLAYER_STATE_CHANGED_REASONS=l;var c="construct";function d(t){return c+t}var f=function(){function t(e,n,i,r){var o=arguments.length<=4||void 0===arguments[4]?{}:arguments[4];!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),a.default.setAppId(e),a.default.setProperty("maxQueueSize",3),o.trackingUrl&&a.default.setTrackingUrl(o.trackingUrl),this._state={},this._mediaTrackingObject={},this.header=o.header,this.requestHeader=n,this.mobileHeader=i,this._topicNamePrefix=r}return i(t,[{key:d("PlayerPositionChangedEvent"),value:function(){return{header:this.header,requestHeader:this.requestHeader,mobileHeader:this.mobileHeader,state:this.state,mediaTrackingObject:this.hasMediaTrackingId?this.mediaTrackingObject:null}}},{key:d("PlayerBeaconEvent"),value:function(t,e){var n=this[d("PlayerPositionChangedEvent")]();return n.isAutoplaying=t,n.timeSinceLastBeacon=e,n}},{key:d("PlayerPlayPauseEvent"),value:function(t){var e=this[d("PlayerPositionChangedEvent")]();if(!l[t])throw new Error("The reason for a player change event must be a valid PlayPauseChangedReason enum value.");return e.reason=t,e}},{key:d("PlayerSeekEvent"),value:function(t){var e=this[d("PlayerPositionChangedEvent")]();return e.previousTimeElapsed=t,e}},{key:d("PlayerVolumeChangedEvent"),value:function(t){var e=this[d("PlayerPositionChangedEvent")]();return e.previousVolume=t,e}},{key:"_constructSchema",value:function(t,e){var n={eventInfo:{eventName:t,appId:this.appId},eventBody:e};return"string"==typeof this._topicNamePrefix&&(n.eventInfo.topicName=this._topicNamePrefix+t),n}},{key:"trackPlayerEvent",value:function(t){for(var e=arguments.length,n=Array(e>1?e-1:0),i=1;i<e;i++)n[i-1]=arguments[i];var r=this._constructSchema(t,this[d(t)].apply(this,n));a.default.sendEvent(r.eventInfo,r.eventBody)}},{key:"state",set:function(t){var e=this;null!=t&&"object"==typeof t&&s.forEach(function(n){t.hasOwnProperty(n)&&Object.defineProperty(e._state,n,Object.getOwnPropertyDescriptor(t,n))})},get:function(){var t=this;return s.reduce(function(e,n){return t._state.hasOwnProperty(n)&&(e[n]=t._state[n]),e},{})}},{key:"mediaTrackingObject",set:function(t){var e=this;null!=t&&"object"==typeof t&&u.forEach(function(n){t.hasOwnProperty(n)&&Object.defineProperty(e._mediaTrackingObject,n,Object.getOwnPropertyDescriptor(t,n))})},get:function(){var t=this;return u.reduce(function(e,n){return t._mediaTrackingObject.hasOwnProperty(n)&&(e[n]=t._mediaTrackingObject[n]),e},{})}},{key:"hasMediaTrackingId",get:function(){return this._mediaTrackingObject&&this._mediaTrackingObject.trackingId}}]),t}();e.default=f},function(t,e,n){var i=n(286),r="Expected a function",o=Math.max,a=i(Date,"now")||function(){return(new Date).getTime()};t.exports=function(t,e,n){var i,s,u,l,c,d,f,h,p,v=0,y=!1,m=!0;if("function"!=typeof t)throw new TypeError(r);if(e=e<0?0:+e||0,!0===n){var g=!0;m=!1}else p=typeof(h=n),!h||"object"!=p&&"function"!=p||(g=!!n.leading,y="maxWait"in n&&o(+n.maxWait||0,e),m="trailing"in n?!!n.trailing:m);function b(e,n){n&&clearTimeout(n),s=d=f=void 0,e&&(v=a(),u=t.apply(c,i),d||s||(i=c=void 0))}function _(){var t=e-(a()-l);t<=0||t>e?b(f,s):d=setTimeout(_,t)}function T(){b(m,d)}function E(){if(i=arguments,l=a(),c=this,f=m&&(d||!g),!1===y)var n=g&&!d;else{s||g||(v=l);var r=y-(l-v),o=r<=0||r>y;o?(s&&(s=clearTimeout(s)),v=l,u=t.apply(c,i)):s||(s=setTimeout(T,r))}return o&&d?d=clearTimeout(d):d||e===y||(d=setTimeout(_,e)),n&&(o=!0,u=t.apply(c,i)),!o||d||s||(i=c=void 0),u}return E.cancel=function(){d&&clearTimeout(d),s&&clearTimeout(s),v=0,s=d=f=void 0},E}},function(t,e,n){"use strict";var i=n(201).default,r=n(211).default,o=n(240).default,a=n(245).default,s=n(196).default;Object.defineProperty(e,"__esModule",{value:!0});var u=function(t){function e(t,n,r){var o=arguments.length<=3||void 0===arguments[3]?[]:arguments[3];a(this,e),i(Object.getPrototypeOf(e.prototype),"constructor",this).call(this),this.videojsPlayer=t,this.videoPlayer=n,this.toolbar=r,this.sliders=o}return r(e,t),o(e,[{key:"beforeInit",value:function(){var t=this;this.addEvents([this.videojsPlayer,"useractive",this.onUserActivity],[this.videojsPlayer,"userinactive",this.onUserActivity]),this.toolbar&&this.addEvents([this.toolbar,"mouseOver",this.onUserActivity],[this.toolbar,"mouseOut",this.onUserActivity]),this.sliders.forEach(function(e){e&&t.addEvents([e,"draggingStart",t.onUserActivity],[e,"draggingEnd",t.onUserActivity],[e,"mouseOver",t.onUserActivity],[e,"mouseOut",t.onUserActivity])})}},{key:"onUserActivity",value:function(){this.videoPlayer.idle=!(this.videojsPlayer.userActive()||this.toolbar&&this.toolbar.isMouseOver||this.sliders.some(function(t){return t&&t.dragging}))}}]),e}(s(n(294)).default);e.default=u,t.exports=e.default},function(t,e,n){"use strict";var i=n(201).default,r=n(211).default,o=n(240).default,a=n(245).default,s=n(196).default;Object.defineProperty(e,"__esModule",{value:!0});var u=s(n(323)),l=s(n(294)),c=n(367),d=c.CONTROL_NAME.TOOLBAR.MUTE_TOGGLE,f=function(t){function e(t,n,r,o,s,u){a(this,e),i(Object.getPrototypeOf(e.prototype),"constructor",this).call(this),this.videojsPlayer=t,this.controlTracker=n,this.volumeSwitch=r,this.volumeSlider=o,this.volumeOnButtonA11yControlText=s,this.volumeOffButtonA11yControlText=u,this.volumeSwitch&&(this.a11yTextSpan=r.element.querySelector(".a11y-text"))}return r(e,t),o(e,[{key:"beforeInit",value:function(){this.addEvents([this.videojsPlayer,"volumechange",this.onVideojsVolumeChange]),this.volumeSwitch&&this.addEvents([this.volumeSwitch,"mute",this.onVolumeSwitchMute],[this.volumeSwitch,"unmute",this.onVolumeSwitchUnmute]),this.volumeSlider&&this.addEvents([this.volumeSlider,"valueChanged",this.onSliderValueChanged]),this.updateSwitchAndSlider()}},{key:"updateSwitchAndSlider",value:function(){var t=void 0;this.videojsPlayer.muted()?(t=0,this._setA11yControlText(this.volumeOffButtonA11yControlText)):(t=this.videojsPlayer.volume(),this._setA11yControlText(this.volumeOnButtonA11yControlText)),this.volumeSwitch&&(this.volumeSwitch.volume=t),this.volumeSlider&&(this.volumeSlider.value=t)}},{key:"onVideojsVolumeChange",value:function(){this.updateSwitchAndSlider()}},{key:"onVolumeSwitchMute",value:function(){this.controlTracker.controlName=d,this.videojsPlayer.muted(!0)}},{key:"onVolumeSwitchUnmute",value:function(){this.controlTracker.controlName=d,this.videojsPlayer.muted(!1),0===this.videojsPlayer.volume()&&this.videojsPlayer.volume(.5)}},{key:"onSliderValueChanged",value:function(){var t=this.volumeSlider.value;this.videojsPlayer.muted(0===t),this.videojsPlayer.volume(t)}},{key:"_setA11yControlText",value:function(t){this.a11yTextSpan&&u.default.setElementContent(this.a11yTextSpan,t)}}]),e}(l.default);e.default=f,t.exports=e.default},function(t,e,n){"use strict";var i=n(201).default,r=n(211).default,o=n(240).default,a=n(245).default,s=n(196).default;Object.defineProperty(e,"__esModule",{value:!0});var u=function(t){function e(t,n){a(this,e),i(Object.getPrototypeOf(e.prototype),"constructor",this).call(this),this.videojsPlayer=t,this.loader=n,this.currentTime=0}return r(e,t),o(e,[{key:"beforeInit",value:function(){this.addEvents([this.videojsPlayer,"waiting",this.onVideojsWaiting],[this.videojsPlayer,"timeupdate",this.onVideojsTimeupdate]),this.loader.hide()}},{key:"onVideojsWaiting",value:function(){this.loader.show(),this.currentTime=this.videojsPlayer.currentTime()}},{key:"onVideojsTimeupdate",value:function(){this.videojsPlayer.currentTime()!==this.currentTime&&(this.loader.hide(),this.currentTime=this.videojsPlayer.currentTime())}}]),e}(s(n(294)).default);e.default=u,t.exports=e.default},function(t,e,n){"use strict";var i=n(240).default,r=n(245).default,o=n(259).default,a=n(251).default,s=n(295).default,u=n(397).default,l=n(196).default;Object.defineProperty(e,"__esModule",{value:!0});var c=l(n(400)),d=l(n(247)),f=l(n(297)),h=l(n(298)),p=l(n(405));n(511);var v=l(n(585)),y=l(n(586)),m=n(304),g=l(n(302)),b=l(n(303)),_=l(n(347)),T=l(n(351)),E=l(n(354)),w=l(n(355)),k=l(n(587)),S=l(n(588)),O=l(n(589)),C=l(n(361)),x=l(n(590)),P=l(n(364)),A=l(n(365)),j=l(n(368)),M=l(n(370)),I=l(n(372)),L=l(n(373)),R=l(n(375)),D=l(n(376)),N=l(n(377)),B=l(n(378)),U=l(n(383)),F=l(n(384)),V=l(n(385)),H=l(n(386)),z=l(n(388)),q=l(n(389)),G=l(n(390)),W=l(n(393)),Y=l(n(394)),X=l(n(592)),$=l(n(395)),K={controlBar:!1,bigPlayButton:!1,loadingSpinner:!1,autoplay:!1,techOrder:["html5"],html5:{hls:{withCredentials:!1}}};e.defaultVideojsOptions=K;var J=function(){function t(e,n){if(r(this,t),!e)throw new TypeError("Missing video player element");if(!n||!n.videojsElement)throw new TypeError("Missing videojs element");this.videoPlayerElement=e,this.playerStateManager=new m.PlayerStateManager,this.options=(0,d.default)({},n,{videojsOptions:K,shareButtons:[],playerName:"LinkedIn Video Player"}),this.controlTextOptions(this.options)}return i(t,[{key:"setup",value:function(){var t=this.options,e=this.createVideoPlayerComponent(this.videoPlayerElement,t.a11yControlTextObj,this.playerStateManager),n=this.createVideojsPlayer(t.videojsElement,t.videojsOptions),i=new y.default,r=this.createPlayerjs(n,i,t.playerjs),a={a11yControlText:t.a11yControlTextObj.progressSliderA11yControlText};(0,c.default)(this,{videoPlayer:e,videojsPlayer:n,playerjsVideojsAdapter:r,controlTracker:i}),(0,c.default)(this,this.createBigPlayButton(t.bigPlayButtonElement,t.a11yControlTextObj)),(0,c.default)(this,this.createLoader(n,t.loaderElement)),(0,c.default)(this,this.createToolbar(n,e,r,i,t.toolbarElement,this.bigPlayButton,this.playerStateManager,t,t.a11yControlTextObj,t.a11yCustomControlTextPairs)),(0,c.default)(this,this.createBuffer(n,t.bufferElement)),(0,c.default)(this,this.createTime(n,t.timeDisplayElement,t.progressElement,this.playerStateManager,a)),(0,c.default)(this,this.createVolume(n,i,t.volumeSwitchElement,t.volumeSliderElement,t.volumeSliderVertical,this.playerStateManager,t.a11yControlTextObj)),(0,c.default)(this,this.createPlaybackRate(n,i,t.playbackRateLabel,t.playbackRateMenu,t.playbackRateOptions,this.playerStateManager,t.playbackRate)),(0,c.default)(this,this.createUserActivity(n,e,this.toolbar,this.progress,this.volumeSlider)),(0,c.default)(this,this.createShareModal.apply(this,[n,r,i,this.toolbar,t.shareModalElement,t.shareLinkElement,this.playerStateManager,t.a11yControlTextObj].concat(o(t.shareButtons)))),(0,c.default)(this,this.createEndcard(n,r,i,this.shareModal,t.endcardModalElement,t.endcardElement,this.playerStateManager,t.a11yControlTextObj)),(0,c.default)(this,this.createModalManager(this.toolbar,this.endcardModal,this.shareModal)),(0,c.default)(this,this.createTracking(n,e,t.trackingSettings)),(0,c.default)(this,this.createMetrics(n,t.rumOptions,t.metricsTracker)),(0,c.default)(this,this.createPlayerJsMetrics(n,r)),t.playerjs&&this.playerJsReady()}},{key:"controlTextOptions",value:function(t){t.a11yControlTextObj=t.a11yControlTextObj||{},t.disableA11y?this.playerStateManager.isDisableA11y=!0:t.a11yControlTextObj=(0,m.testControlTextObj)(t.a11yControlTextObj,"a11y")?t.a11yControlTextObj:(0,m.getDefaultControlTextObj)("a11y"),t.languageControlTextObj&&(0,m.testLanguageControlTextObj)(t.languageControlTextObj)?t.videojsOptions=(0,d.default)(t.videojsOptions,t.languageControlTextObj):t.videojsOptions=(0,d.default)(t.videojsOptions,(0,m.getDefaultLanguageControlTextObj)())}},{key:"createVideoPlayerComponent",value:function(t,e,n){var i=(arguments.length<=1||void 0===arguments[1]?{}:arguments[1]).videoPlayerContainerA11yAriaLabel;return L.default.create(t,{a11yControlText:i},n)}},{key:"createVideojsPlayer",value:function(t){var e=arguments.length<=1||void 0===arguments[1]?{}:arguments[1];return this.options.disableVideoContextMenu&&t.addEventListener("contextmenu",function(t){t.preventDefault()},!1),(0,p.default)(t,e)}},{key:"createPlayerjs",value:function(t,e){return new v.default(t,e)}},{key:"createBigPlayButton",value:function(t){var e=(arguments.length<=1||void 0===arguments[1]?{}:arguments[1]).bigPlayButtonA11yControlText;if(t)return{bigPlayButton:b.default.create(t,{a11yControlText:e})}}},{key:"createLoader",value:function(t,e){if(e){var n=E.default.create(e);return{loader:n,videojsWaitingBehavior:$.default.create(t,n)}}}},{key:"createToolbar",value:function(t,e,n,i,r,o,a,s,u,l){if(void 0===u&&(u={}),r){var c=M.default.create(r,s,void 0,a,t,u,l);return{toolbar:c,videojsPlaybackBehavior:z.default.create(t,e,i,c,o,r.ownerDocument,a,u),fullscreenBehavior:N.default.create(e,n,c,a)}}}},{key:"createBuffer",value:function(t,e){if(e){var n=g.default.create(e);return{buffer:n,videojsBufferBehavior:V.default.create(t,n)}}}},{key:"createTime",value:function(t,e,n,i){var r=arguments.length<=4||void 0===arguments[4]?{}:arguments[4],o=void 0;e&&(o=j.default.create(e));var a=void 0;return n&&(a=T.default.create(n,i,r,m.SLIDER_TYPE.PLAYBACK)),{progress:a,timeDisplay:o,videojsTimeBehavior:q.default.create(t,o,a)}}},{key:"createVolume",value:function(t,e,n,i,r,o){void 0===r&&(r=!0);var a=arguments.length<=6||void 0===arguments[6]?{}:arguments[6],s=a.volumeSliderA11yControlText,u=a.volumeOnButtonA11yControlText,l=a.volumeOffButtonA11yControlText,c=a.volumeSliderAriaValueTextA11yControlText,d=void 0;n&&(d=R.default.create(n));var f=void 0;i&&(f=(r?I.default:T.default).create(i,o,{a11yControlText:s,volumeSliderAriaValueTextA11yControlText:c},m.SLIDER_TYPE.VOLUME));return{volumeSwitch:d,volumeSlider:f,videojsVolumeBehavior:Y.default.create(t,e,d,f,u,l)}}},{key:"createPlaybackRate",value:function(t,e,n,i,r,o){var a=arguments.length<=6||void 0===arguments[6]?{}:arguments[6],s=a.label,u=a.menu,l=a.option;if(n&&i&&r){var c=k.default.create(n,s),d=S.default.create(i,o,u),f=r.map(function(t){return O.default.create(t,l)});return{playbackRateLabel:c,playbackRateMenu:d,playbackRateOptions:f,videojsPlaybackRateBehavior:X.default.create(t,e,c,d,f,o)}}}},{key:"createUserActivity",value:function(t,e,n){for(var i=arguments.length,r=Array(i>3?i-3:0),o=3;o<i;o++)r[o-3]=arguments[o];return r=r.filter(function(t){return!!t}),{userActivityBehavior:W.default.create(t,e,n,r)}}},{key:"createShareModal",value:function(t,e,n,i,r,o,s,u){if(r){for(var l=w.default.create(r,void 0,s,u),c=F.default.create(t,e,n,i,l),d=arguments.length,f=Array(d>8?d-8:0),h=8;h<d;h++)f[h-8]=arguments[h];var p=f.map(function(t){var n=a(t,3),i=n[0],r=n[1],o=n[2];return A.default.create(i,e,{network:r,url:o},void 0,s)}),v=void 0,y=void 0;return o&&(v=P.default.create(o),y=U.default.create(l,v)),{shareModal:l,shareModalBehavior:c,shareButtons:p,shareLink:v,shareLinkBehavior:y}}}},{key:"createEndcard",value:function(t,e,n,i,r,o,a,s){if(r&&o){var u=_.default.create(o),l=w.default.create(r,void 0,a,s);return{endcard:u,endcardModal:l,endcardBehavior:D.default.create(t,e,n,u,l,i)}}}},{key:"createModalManager",value:function(t){for(var e=arguments.length,n=Array(e>1?e-1:0),i=1;i<e;i++)n[i-1]=arguments[i];if((n=n.filter(function(t){return!!t})).length>0)return{modalManagerBehavior:B.default.create.apply(B.default,[t].concat(o(n)))}}},{key:"createTracking",value:function(t,e,n){if(n)return{videojsTrackingBehavior:G.default.create(t,e,n)}}},{key:"createMetrics",value:function(t,e,n){if(n||e){e&&(e.videoUrn=e.videoUrn||t.src());var i=n||C.default.create(e);return{metricsTracker:i,videojsMetricsBehavior:H.default.create(t,i)}}}},{key:"createPlayerJsMetrics",value:function(t,e,n){var i=n||x.default.create(e);return{playerJsMetricsTracker:i,playerJsMetricsBehavior:H.default.create(t,i)}}},{key:"dispose",value:function(){var t=this,e=["videoPlayerElement","options"],n=["videojsPlayer","videoPlayer"];u(this).forEach(function(i){-1===e.indexOf(i)&&-1===n.indexOf(i)&&t.disposeOne(i)}),n.forEach(this.disposeOne,this)}},{key:"disposeOne",value:function(t){(0,h.default)(this[t])&&(0,f.default)(this[t].dispose)&&this[t].dispose(),delete this[t]}},{key:"registerPlayerJsEvent",value:function(t){this.playerjsVideojsAdapter.registerEvent(t)}},{key:"emitPlayerJsEvent",value:function(t,e){this.playerjsVideojsAdapter.emit(t,e)}},{key:"playerJsReady",value:function(){var t=this;this.videojsPlayer.ready(function(){return t.playerjsVideojsAdapter.ready()})}}],[{key:"create",value:function(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];var i=new(s.apply(this,[null].concat(e)));return i.setup(),i}}]),t}();e.default=J},function(t,e,n){t.exports={default:n(398),__esModule:!0}},function(t,e,n){n(399);var i=n(153).Object;t.exports=function(t){return i.getOwnPropertyNames(t)}},function(t,e,n){n(205)("getOwnPropertyNames",function(){return n(235).f})},function(t,e,n){var i=n(401),r=n(403),o=n(285);var a=r(function(t,e,n){return n?function(t,e,n){for(var i=-1,r=o(e),a=r.length;++i<a;){var s=r[i],u=t[s],l=n(u,e[s],s,t,e);(l==l?l===u:u!=u)&&(void 0!==u||s in t)||(t[s]=l)}return t}(t,e,n):i(t,e)});t.exports=a},function(t,e,n){var i=n(402),r=n(285);t.exports=function(t,e){return null==e?t:i(e,r(e),t)}},function(t,e){t.exports=function(t,e,n){n||(n={});for(var i=-1,r=e.length;++i<r;){var o=e[i];n[o]=t[o]}return n}},function(t,e,n){var i=n(330),r=n(404),o=n(320);t.exports=function(t){return o(function(e,n){var o=-1,a=null==e?0:n.length,s=a>2?n[a-2]:void 0,u=a>2?n[2]:void 0,l=a>1?n[a-1]:void 0;for("function"==typeof s?(s=i(s,l,5),a-=2):a-=(s="function"==typeof l?l:void 0)?1:0,u&&r(n[0],n[1],u)&&(s=a<3?void 0:s,a=1);++o<a;){var c=n[o];c&&t(e,c,s)}return e})}},function(t,e){var n=/^\d+$/,i=9007199254740991;var r,o=(r="length",function(t){return null==t?void 0:t[r]});function a(t){return null!=t&&function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=i}(o(t))}t.exports=function(t,e,r){if(!function(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}(r))return!1;var o=typeof e;if("number"==o?a(r)&&function(t,e){return t="number"==typeof t||n.test(t)?+t:-1,e=null==e?i:e,t>-1&&t%1==0&&t<e}(e,r.length):"string"==o&&e in r){var s=r[e];return t==t?t===s:s!=s}return!1}},function(t,e,n){var i;e.__esModule=!0;"function"==typeof Symbol&&Symbol.iterator;var r=A(n(406)),o=A(n(407)),a=P(n(409)),s=P(n(410)),u=P(n(415)),l=P(n(417)),c=A(n(418)),d=A(n(422)),f=P(n(416)),h=A(n(423)),p=A(n(507)),v=A(n(421)),y=P(n(419)),m=A(n(433)),g=A(n(508)),b=A(n(509)),_=n(424),T=A(n(464)),E=A(n(412)),w=P(n(437)),k=n(413),S=A(n(472)),O=A(n(510)),C=A(n(438)),x=A(n(431));function P(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}function A(t){return t&&t.__esModule?t:{default:t}}function j(t,e,n){var i=void 0;if("string"==typeof t){if(0===t.indexOf("#")&&(t=t.slice(1)),j.getPlayers()[t])return e&&E.default.warn('Player "'+t+'" is already initialised. Options will not be applied.'),n&&j.getPlayers()[t].ready(n),j.getPlayers()[t];i=s.getEl(t)}else i=t;if(!i||!i.nodeName)throw new TypeError("The element or ID supplied is not valid. (videojs)");if(i.player||h.default.players[i.playerId])return i.player||h.default.players[i.playerId];e=e||{},j.hooks("beforesetup").forEach(function(t){var n=t(i,(0,v.default)(e));(0,k.isObject)(n)&&!Array.isArray(n)?e=(0,v.default)(e,n):E.default.error("please return an object in beforesetup hooks")});var r=new(c.default.getComponent("Player"))(i,e,n);return j.hooks("setup").forEach(function(t){return t(r)}),r}if("undefined"==typeof HTMLVideoElement&&s.isReal()&&(o.default.createElement("video"),o.default.createElement("audio"),o.default.createElement("track")),j.hooks_={},j.hooks=function(t,e){return j.hooks_[t]=j.hooks_[t]||[],e&&(j.hooks_[t]=j.hooks_[t].concat(e)),j.hooks_[t]},j.hook=function(t,e){j.hooks(t,e)},j.removeHook=function(t,e){var n=j.hooks(t).indexOf(e);return!(n<=-1)&&(j.hooks_[t]=j.hooks_[t].slice(),j.hooks_[t].splice(n,1),!0)},!0!==r.default.VIDEOJS_NO_DYNAMIC_STYLE&&s.isReal()){var M=s.$(".vjs-styles-defaults");if(!M){M=l.createStyleElement("vjs-styles-defaults");var I=s.$("head");I&&I.insertBefore(M,I.firstChild),l.setTextContent(M,"\n      .video-js {\n        width: 300px;\n        height: 150px;\n      }\n\n      .vjs-fluid {\n        padding-top: 56.25%\n      }\n    ")}}u.autoSetupTimeout(1,j),j.VERSION="5.20.4",j.options=h.default.prototype.options_,j.getPlayers=function(){return h.default.players},j.players=h.default.players,j.getComponent=c.default.getComponent,j.registerComponent=function(t,e){x.default.isTech(e)&&E.default.warn("The "+t+" tech was registered as a component. It should instead be registered using videojs.registerTech(name, tech)"),c.default.registerComponent.call(c.default,t,e)},j.getTech=x.default.getTech,j.registerTech=x.default.registerTech,j.browser=a,j.TOUCH_ENABLED=a.TOUCH_ENABLED,j.extend=O.default,j.mergeOptions=v.default,j.bind=y.bind,j.plugin=p.default,j.addLanguage=function(t,e){var n;return t=(""+t).toLowerCase(),j.options.languages=(0,v.default)(j.options.languages,((n={})[t]=e,n)),j.options.languages[t]},j.log=E.default,j.createTimeRange=j.createTimeRanges=_.createTimeRanges,j.formatTime=T.default,j.parseUrl=w.parseUrl,j.isCrossOrigin=w.isCrossOrigin,j.EventTarget=d.default,j.on=f.on,j.one=f.one,j.off=f.off,j.trigger=f.trigger,j.xhr=C.default,j.TextTrack=m.default,j.AudioTrack=g.default,j.VideoTrack=b.default,j.isEl=s.isEl,j.isTextNode=s.isTextNode,j.createEl=s.createEl,j.hasClass=s.hasElClass,j.addClass=s.addElClass,j.removeClass=s.removeElClass,j.toggleClass=s.toggleElClass,j.setAttributes=s.setElAttributes,j.getAttributes=s.getElAttributes,j.emptyEl=s.emptyEl,j.appendContent=s.appendContent,j.insertContent=s.insertContent,j.computedStyle=S.default,void 0===(i=function(){return j}.apply(e,[]))||(t.exports=i),e.default=j},function(t,e){(function(e){var n;n="undefined"!=typeof window?window:void 0!==e?e:"undefined"!=typeof self?self:{},t.exports=n}).call(e,function(){return this}())},function(t,e,n){(function(e){var i,r=void 0!==e?e:"undefined"!=typeof window?window:{},o=n(408);"undefined"!=typeof document?i=document:(i=r["__GLOBAL_DOCUMENT_CACHE@4"])||(i=r["__GLOBAL_DOCUMENT_CACHE@4"]=o),t.exports=i}).call(e,function(){return this}())},function(t,e){},function(t,e,n){"use strict";e.__esModule=!0,e.BACKGROUND_SIZE_SUPPORTED=e.TOUCH_ENABLED=e.IS_ANY_SAFARI=e.IS_SAFARI=e.IE_VERSION=e.IS_IE8=e.CHROME_VERSION=e.IS_CHROME=e.IS_EDGE=e.IS_FIREFOX=e.IS_NATIVE_ANDROID=e.IS_OLD_ANDROID=e.ANDROID_VERSION=e.IS_ANDROID=e.IOS_VERSION=e.IS_IOS=e.IS_IPOD=e.IS_IPHONE=e.IS_IPAD=void 0;var i,r=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}(n(410)),o=n(406),a=(i=o)&&i.__esModule?i:{default:i};var s,u,l,c=a.default.navigator&&a.default.navigator.userAgent||"",d=/AppleWebKit\/([\d.]+)/i.exec(c),f=d?parseFloat(d.pop()):null,h=e.IS_IPAD=/iPad/i.test(c),p=e.IS_IPHONE=/iPhone/i.test(c)&&!h,v=e.IS_IPOD=/iPod/i.test(c),y=e.IS_IOS=p||h||v,m=(e.IOS_VERSION=(s=c.match(/OS (\d+)_/i))&&s[1]?s[1]:null,e.IS_ANDROID=/Android/i.test(c)),g=e.ANDROID_VERSION=function(){var t=c.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}(),b=(e.IS_OLD_ANDROID=m&&/webkit/i.test(c)&&g<2.3,e.IS_NATIVE_ANDROID=m&&g<5&&f<537,e.IS_FIREFOX=/Firefox/i.test(c),e.IS_EDGE=/Edge/i.test(c)),_=e.IS_CHROME=!b&&/Chrome/i.test(c),T=(e.CHROME_VERSION=function(){var t=c.match(/Chrome\/(\d+)/);return t&&t[1]?parseFloat(t[1]):null}(),e.IS_IE8=/MSIE\s8\.0/.test(c),e.IE_VERSION=(u=/MSIE\s(\d+)\.\d/.exec(c),!(l=u&&parseFloat(u[1]))&&/Trident\/7.0/i.test(c)&&/rv:11.0/.test(c)&&(l=11),l),e.IS_SAFARI=/Safari/i.test(c)&&!_&&!m&&!b);e.IS_ANY_SAFARI=T||y,e.TOUCH_ENABLED=r.isReal()&&("ontouchstart"in a.default||a.default.DocumentTouch&&a.default.document instanceof a.default.DocumentTouch),e.BACKGROUND_SIZE_SUPPORTED=r.isReal()&&"backgroundSize"in a.default.document.createElement("video").style},function(t,e,n){"use strict";e.__esModule=!0,e.$$=e.$=void 0;var i,r=((i=["Setting attributes in the second argument of createEl()\n                has been deprecated. Use the third argument instead.\n                createEl(type, properties, attributes). Attempting to set "," to ","."]).raw=["Setting attributes in the second argument of createEl()\n                has been deprecated. Use the third argument instead.\n                createEl(type, properties, attributes). Attempting to set "," to ","."],i);e.isReal=function(){return o.default===a.default.document&&void 0!==o.default.createElement},e.isEl=p,e.getEl=function(t){0===t.indexOf("#")&&(t=t.slice(1));return o.default.getElementById(t)},e.createEl=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"div",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=arguments[3],a=o.default.createElement(t);Object.getOwnPropertyNames(e).forEach(function(t){var n=e[t];-1!==t.indexOf("aria-")||"role"===t||"type"===t?(u.default.warn((0,l.default)(r,t,n)),a.setAttribute(t,n)):"textContent"===t?y(a,n):a[t]=n}),Object.getOwnPropertyNames(n).forEach(function(t){a.setAttribute(t,n[t])}),i&&O(a,i);return a},e.textContent=y,e.insertElFirst=function(t,e){e.firstChild?e.insertBefore(t,e.firstChild):e.appendChild(t)},e.getElData=function(t){var e=t[g];e||(e=t[g]=s.newGUID());m[e]||(m[e]={});return m[e]},e.hasElData=function(t){var e=t[g];if(!e)return!1;return!!Object.getOwnPropertyNames(m[e]).length},e.removeElData=function(t){var e=t[g];if(!e)return;delete m[e];try{delete t[g]}catch(e){t.removeAttribute?t.removeAttribute(g):t[g]=null}},e.hasElClass=b,e.addElClass=_,e.removeElClass=T,e.toggleElClass=function(t,e,n){var i=b(t,e);"function"==typeof n&&(n=n(t,e));"boolean"!=typeof n&&(n=!i);if(n===i)return;n?_(t,e):T(t,e);return t},e.setElAttributes=function(t,e){Object.getOwnPropertyNames(e).forEach(function(n){var i=e[n];null==i||!1===i?t.removeAttribute(n):t.setAttribute(n,!0===i?"":i)})},e.getElAttributes=function(t){var e={},n=",autoplay,controls,playsinline,loop,muted,default,defaultMuted,";if(t&&t.attributes&&t.attributes.length>0)for(var i=t.attributes,r=i.length-1;r>=0;r--){var o=i[r].name,a=i[r].value;"boolean"!=typeof t[o]&&-1===n.indexOf(","+o+",")||(a=null!==a),e[o]=a}return e},e.getAttribute=function(t,e){return t.getAttribute(e)},e.setAttribute=function(t,e,n){t.setAttribute(e,n)},e.removeAttribute=function(t,e){t.removeAttribute(e)},e.blockTextSelection=function(){o.default.body.focus(),o.default.onselectstart=function(){return!1}},e.unblockTextSelection=function(){o.default.onselectstart=function(){return!0}},e.findElPosition=E,e.getPointerPosition=function(t,e){var n={},i=E(t),r=t.offsetWidth,o=t.offsetHeight,a=i.top,s=i.left,u=e.pageY,l=e.pageX;e.changedTouches&&(l=e.changedTouches[0].pageX,u=e.changedTouches[0].pageY);return n.y=Math.max(0,Math.min(1,(a-u+o)/o)),n.x=Math.max(0,Math.min(1,(l-s)/r)),n},e.isTextNode=w,e.emptyEl=k,e.normalizeContent=S,e.appendContent=O,e.insertContent=function(t,e){return O(k(t),e)};var o=d(n(407)),a=d(n(406)),s=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}(n(411)),u=d(n(412)),l=d(n(414)),c=n(413);function d(t){return t&&t.__esModule?t:{default:t}}function f(t){return"string"==typeof t&&/\S/.test(t)}function h(t){if(/\s/.test(t))throw new Error("class has illegal whitespace characters")}function p(t){return(0,c.isObject)(t)&&1===t.nodeType}function v(t){return function(e,n){if(!f(e))return o.default[t](null);f(n)&&(n=o.default.querySelector(n));var i=p(n)?n:o.default;return i[t]&&i[t](e)}}function y(t,e){return void 0===t.textContent?t.innerText=e:t.textContent=e,t}var m={},g="vdata"+(new Date).getTime();function b(t,e){return h(e),t.classList?t.classList.contains(e):(n=e,new RegExp("(^|\\s)"+n+"($|\\s)")).test(t.className);var n}function _(t,e){return t.classList?t.classList.add(e):b(t,e)||(t.className=(t.className+" "+e).trim()),t}function T(t,e){return t.classList?t.classList.remove(e):(h(e),t.className=t.className.split(/\s+/).filter(function(t){return t!==e}).join(" ")),t}function E(t){var e=void 0;if(t.getBoundingClientRect&&t.parentNode&&(e=t.getBoundingClientRect()),!e)return{left:0,top:0};var n=o.default.documentElement,i=o.default.body,r=n.clientLeft||i.clientLeft||0,s=a.default.pageXOffset||i.scrollLeft,u=e.left+s-r,l=n.clientTop||i.clientTop||0,c=a.default.pageYOffset||i.scrollTop,d=e.top+c-l;return{left:Math.round(u),top:Math.round(d)}}function w(t){return(0,c.isObject)(t)&&3===t.nodeType}function k(t){for(;t.firstChild;)t.removeChild(t.firstChild);return t}function S(t){return"function"==typeof t&&(t=t()),(Array.isArray(t)?t:[t]).map(function(t){return"function"==typeof t&&(t=t()),p(t)||w(t)?t:"string"==typeof t&&/\S/.test(t)?o.default.createTextNode(t):void 0}).filter(function(t){return t})}function O(t,e){return S(e).forEach(function(e){return t.appendChild(e)}),t}e.$=v("querySelector"),e.$$=v("querySelectorAll")},function(t,e){"use strict";e.__esModule=!0,e.newGUID=function(){return n++};var n=1},function(t,e,n){"use strict";e.__esModule=!0,e.logByType=void 0;var i,r=n(406),o=(i=r)&&i.__esModule?i:{default:i},a=n(409),s=n(413);var u=void 0,l=e.logByType=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:!!a.IE_VERSION&&a.IE_VERSION<11;"log"!==t&&e.unshift(t.toUpperCase()+":"),u.history.push(e),e.unshift("VIDEOJS:");var i=o.default.console&&o.default.console[t];i&&(n&&(e=e.map(function(t){if((0,s.isObject)(t)||Array.isArray(t))try{return JSON.stringify(t)}catch(e){return String(t)}return String(t)}).join(" ")),i.apply?i[Array.isArray(e)?"apply":"call"](o.default.console,e):i(e))};(u=function(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];l("log",e)}).history=[],u.error=function(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];return l("error",e)},u.warn=function(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];return l("warn",e)},e.default=u},function(t,e){"use strict";e.__esModule=!0;var n="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};e.each=o,e.reduce=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return r(t).reduce(function(n,i){return e(n,t[i],i)},n)},e.assign=function(t){for(var e=arguments.length,n=Array(e>1?e-1:0),i=1;i<e;i++)n[i-1]=arguments[i];if(Object.assign)return Object.assign.apply(Object,[t].concat(n));return n.forEach(function(e){e&&o(e,function(e,n){t[n]=e})}),t},e.isObject=a,e.isPlain=function(t){return a(t)&&"[object Object]"===i.call(t)&&t.constructor===Object};var i=Object.prototype.toString,r=function(t){return a(t)?Object.keys(t):[]};function o(t,e){r(t).forEach(function(n){return e(t[n],n)})}function a(t){return!!t&&"object"===(void 0===t?"undefined":n(t))}},function(t,e){function n(t){return t.replace(/\n\r?\s*/g,"")}t.exports=function(t){for(var e="",i=0;i<arguments.length;i++)e+=n(t[i])+(arguments[i+1]||"");return e}},function(t,e,n){"use strict";e.__esModule=!0,e.hasLoaded=e.autoSetupTimeout=e.autoSetup=void 0;var i=u(n(410)),r=u(n(416)),o=s(n(407)),a=s(n(406));function s(t){return t&&t.__esModule?t:{default:t}}function u(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}var l=!1,c=void 0,d=function(){if(i.isReal()){var t=o.default.getElementsByTagName("video"),e=o.default.getElementsByTagName("audio"),n=[];if(t&&t.length>0)for(var r=0,a=t.length;r<a;r++)n.push(t[r]);if(e&&e.length>0)for(var s=0,u=e.length;s<u;s++)n.push(e[s]);if(n&&n.length>0)for(var d=0,h=n.length;d<h;d++){var p=n[d];if(!p||!p.getAttribute){f(1);break}void 0===p.player&&null!==p.getAttribute("data-setup")&&c(p)}else l||f(1)}};function f(t,e){e&&(c=e),a.default.setTimeout(d,t)}i.isReal()&&"complete"===o.default.readyState?l=!0:r.one(a.default,"load",function(){l=!0});e.autoSetup=d,e.autoSetupTimeout=f,e.hasLoaded=function(){return l}},function(t,e,n){"use strict";e.__esModule=!0,e.fixEvent=f,e.on=v,e.off=y,e.trigger=function t(e,n,r){var o=i.hasElData(e)?i.getElData(e):{};var a=e.parentNode||e.ownerDocument;"string"==typeof n&&(n={type:n,target:e});n=f(n);o.dispatcher&&o.dispatcher.call(e,n,r);if(a&&!n.isPropagationStopped()&&!0===n.bubbles)t.call(null,a,n,r);else if(!a&&!n.defaultPrevented){var s=i.getElData(n.target);n.target[n.type]&&(s.disabled=!0,"function"==typeof n.target[n.type]&&n.target[n.type](),s.disabled=!1)}return!n.defaultPrevented},e.one=function t(e,n,i){if(Array.isArray(n))return d(t,e,n,i);var o=function t(){y(e,n,t),i.apply(this,arguments)};o.guid=i.guid=i.guid||r.newGUID();v(e,n,o)};var i=l(n(410)),r=l(n(411)),o=u(n(412)),a=u(n(406)),s=u(n(407));function u(t){return t&&t.__esModule?t:{default:t}}function l(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}function c(t,e){var n=i.getElData(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&&i.removeElData(t)}function d(t,e,n,i){n.forEach(function(n){t(e,n,i)})}function f(t){function e(){return!0}function n(){return!1}if(!t||!t.isPropagationStopped){var i=t||a.default.event;for(var r in t={},i)"layerX"!==r&&"layerY"!==r&&"keyLocation"!==r&&"webkitMovementX"!==r&&"webkitMovementY"!==r&&("returnValue"===r&&i.preventDefault||(t[r]=i[r]));if(t.target||(t.target=t.srcElement||s.default),t.relatedTarget||(t.relatedTarget=t.fromElement===t.target?t.toElement:t.fromElement),t.preventDefault=function(){i.preventDefault&&i.preventDefault(),t.returnValue=!1,i.returnValue=!1,t.defaultPrevented=!0},t.defaultPrevented=!1,t.stopPropagation=function(){i.stopPropagation&&i.stopPropagation(),t.cancelBubble=!0,i.cancelBubble=!0,t.isPropagationStopped=e},t.isPropagationStopped=n,t.stopImmediatePropagation=function(){i.stopImmediatePropagation&&i.stopImmediatePropagation(),t.isImmediatePropagationStopped=e,t.stopPropagation()},t.isImmediatePropagationStopped=n,null!==t.clientX&&void 0!==t.clientX){var o=s.default.documentElement,u=s.default.body;t.pageX=t.clientX+(o&&o.scrollLeft||u&&u.scrollLeft||0)-(o&&o.clientLeft||u&&u.clientLeft||0),t.pageY=t.clientY+(o&&o.scrollTop||u&&u.scrollTop||0)-(o&&o.clientTop||u&&u.clientTop||0)}t.which=t.charCode||t.keyCode,null!==t.button&&void 0!==t.button&&(t.button=1&t.button?0:4&t.button?1:2&t.button?2:0)}return t}var h=!1;!function(){try{var t=Object.defineProperty({},"passive",{get:function(){h=!0}});a.default.addEventListener("test",null,t)}catch(t){}}();var p=["touchstart","touchmove"];function v(t,e,n){if(Array.isArray(e))return d(v,t,e,n);var a=i.getElData(t);if(a.handlers||(a.handlers={}),a.handlers[e]||(a.handlers[e]=[]),n.guid||(n.guid=r.newGUID()),a.handlers[e].push(n),a.dispatcher||(a.disabled=!1,a.dispatcher=function(e,n){if(!a.disabled){e=f(e);var i=a.handlers[e.type];if(i)for(var r=i.slice(0),s=0,u=r.length;s<u&&!e.isImmediatePropagationStopped();s++)try{r[s].call(t,e,n)}catch(t){o.default.error(t)}}}),1===a.handlers[e].length)if(t.addEventListener){var s=!1;h&&p.indexOf(e)>-1&&(s={passive:!0}),t.addEventListener(e,a.dispatcher,s)}else t.attachEvent&&t.attachEvent("on"+e,a.dispatcher)}function y(t,e,n){if(i.hasElData(t)){var r=i.getElData(t);if(r.handlers){if(Array.isArray(e))return d(y,t,e,n);var o=function(e){r.handlers[e]=[],c(t,e)};if(e){var a=r.handlers[e];if(a)if(n){if(n.guid)for(var s=0;s<a.length;s++)a[s].guid===n.guid&&a.splice(s--,1);c(t,e)}else o(e)}else for(var u in r.handlers)o(u)}}}},function(t,e,n){"use strict";e.__esModule=!0,e.setTextContent=e.createStyleElement=void 0;var i,r=n(407),o=(i=r)&&i.__esModule?i:{default:i};e.createStyleElement=function(t){var e=o.default.createElement("style");return e.className=t,e},e.setTextContent=function(t,e){t.styleSheet?t.styleSheet.cssText=e:t.textContent=e}},function(t,e,n){"use strict";e.__esModule=!0;var i=f(n(406)),r=d(n(410)),o=d(n(419)),a=d(n(411)),s=d(n(416)),u=f(n(412)),l=f(n(420)),c=f(n(421));function d(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}function f(t){return t&&t.__esModule?t:{default:t}}var h=function(){function t(e,n,i){if(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),!e&&this.play?this.player_=e=this:this.player_=e,this.options_=(0,c.default)({},this.options_),n=this.options_=(0,c.default)(this.options_,n),this.id_=n.id||n.el&&n.el.id,!this.id_){var r=e&&e.id&&e.id()||"no_player";this.id_=r+"_component_"+a.newGUID()}this.name_=n.name||null,n.el?this.el_=n.el:!1!==n.createEl&&(this.el_=this.createEl()),this.children_=[],this.childIndex_={},this.childNameIndex_={},!1!==n.initChildren&&this.initChildren(),this.ready(i),!1!==n.reportTouchActivity&&this.enableTouchActivity()}return t.prototype.dispose=function(){if(this.trigger({type:"dispose",bubbles:!1}),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.off(),this.el_.parentNode&&this.el_.parentNode.removeChild(this.el_),r.removeElData(this.el_),this.el_=null},t.prototype.player=function(){return this.player_},t.prototype.options=function(t){return u.default.warn("this.options() has been deprecated and will be moved to the constructor in 6.0"),t?(this.options_=(0,c.default)(this.options_,t),this.options_):this.options_},t.prototype.el=function(){return this.el_},t.prototype.createEl=function(t,e,n){return r.createEl(t,e,n)},t.prototype.localize=function(t){var e=this.player_.language&&this.player_.language(),n=this.player_.languages&&this.player_.languages();if(!e||!n)return t;var i=n[e];if(i&&i[t])return i[t];var r=n[e.split("-")[0]];return r&&r[t]?r[t]:t},t.prototype.contentEl=function(){return this.contentEl_||this.el_},t.prototype.id=function(){return this.id_},t.prototype.name=function(){return this.name_},t.prototype.children=function(){return this.children_},t.prototype.getChildById=function(t){return this.childIndex_[t]},t.prototype.getChild=function(t){if(t)return t=(0,l.default)(t),this.childNameIndex_[t]},t.prototype.addChild=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.children_.length,r=void 0,o=void 0;if("string"==typeof e){o=(0,l.default)(e),n||(n={}),!0===n&&(u.default.warn("Initializing a child component with `true` is deprecated.Children should be defined in an array when possible, but if necessary use an object instead of `true`."),n={});var a=n.componentClass||o;n.name=o;var s=t.getComponent(a);if(!s)throw new Error("Component "+a+" does not exist");if("function"!=typeof s)return null;r=new s(this.player_||this,n)}else r=e;if(this.children_.splice(i,0,r),"function"==typeof r.id&&(this.childIndex_[r.id()]=r),(o=o||r.name&&(0,l.default)(r.name()))&&(this.childNameIndex_[o]=r),"function"==typeof r.el&&r.el()){var c=this.contentEl().children[i]||null;this.contentEl().insertBefore(r.el(),c)}return r},t.prototype.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){this.childIndex_[t.id()]=null,this.childNameIndex_[t.name()]=null;var i=t.el();i&&i.parentNode===this.contentEl()&&this.contentEl().removeChild(t.el())}}},t.prototype.initChildren=function(){var e=this,n=this.options_.children;if(n){var i=this.options_,r=void 0,o=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 i=void 0,r=void 0;return"string"==typeof t?r=n[i=t]||e.options_[i]||{}:(i=t.name,r=t),{name:i,opts:r}}).filter(function(e){var n=t.getComponent(e.opts.componentClass||(0,l.default)(e.name));return n&&!o.isTech(n)}).forEach(function(t){var n=t.name,r=t.opts;if(void 0!==i[n]&&(r=i[n]),!1!==r){!0===r&&(r={}),r.playerOptions=e.options_.playerOptions;var o=e.addChild(n,r);o&&(e[n]=o)}})}},t.prototype.buildCSSClass=function(){return""},t.prototype.on=function(t,e,n){var i=this;if("string"==typeof t||Array.isArray(t))s.on(this.el_,t,o.bind(this,e));else{var r=t,a=e,u=o.bind(this,n),l=function(){return i.off(r,a,u)};l.guid=u.guid,this.on("dispose",l);var c=function(){return i.off("dispose",l)};c.guid=u.guid,t.nodeName?(s.on(r,a,u),s.on(r,"dispose",c)):"function"==typeof t.on&&(r.on(a,u),r.on("dispose",c))}return this},t.prototype.off=function(t,e,n){if(!t||"string"==typeof t||Array.isArray(t))s.off(this.el_,t,e);else{var i=t,r=e,a=o.bind(this,n);this.off("dispose",a),t.nodeName?(s.off(i,r,a),s.off(i,"dispose",a)):(i.off(r,a),i.off("dispose",a))}return this},t.prototype.one=function(t,e,n){var i=this,r=arguments;if("string"==typeof t||Array.isArray(t))s.one(this.el_,t,o.bind(this,e));else{var a=t,u=e,l=o.bind(this,n),c=function t(){i.off(a,u,t),l.apply(null,r)};c.guid=l.guid,this.on(a,u,c)}return this},t.prototype.trigger=function(t,e){return s.trigger(this.el_,t,e),this},t.prototype.ready=function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return t&&(this.isReady_?e?t.call(this):this.setTimeout(t,1):(this.readyQueue_=this.readyQueue_||[],this.readyQueue_.push(t))),this},t.prototype.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)},t.prototype.$=function(t,e){return r.$(t,e||this.contentEl())},t.prototype.$$=function(t,e){return r.$$(t,e||this.contentEl())},t.prototype.hasClass=function(t){return r.hasElClass(this.el_,t)},t.prototype.addClass=function(t){return r.addElClass(this.el_,t),this},t.prototype.removeClass=function(t){return r.removeElClass(this.el_,t),this},t.prototype.toggleClass=function(t,e){return r.toggleElClass(this.el_,t,e),this},t.prototype.show=function(){return this.removeClass("vjs-hidden"),this},t.prototype.hide=function(){return this.addClass("vjs-hidden"),this},t.prototype.lockShowing=function(){return this.addClass("vjs-lock-showing"),this},t.prototype.unlockShowing=function(){return this.removeClass("vjs-lock-showing"),this},t.prototype.getAttribute=function(t){return r.getAttribute(this.el_,t)},t.prototype.setAttribute=function(t,e){return r.setAttribute(this.el_,t,e),this},t.prototype.removeAttribute=function(t){return r.removeAttribute(this.el_,t),this},t.prototype.width=function(t,e){return this.dimension("width",t,e)},t.prototype.height=function(t,e){return this.dimension("height",t,e)},t.prototype.dimensions=function(t,e){return this.width(t,!0).height(e)},t.prototype.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",n||this.trigger("resize"),this;if(!this.el_)return 0;var i=this.el_.style[t],r=i.indexOf("px");return-1!==r?parseInt(i.slice(0,r),10):parseInt(this.el_["offset"+(0,l.default)(t)],10)},t.prototype.currentDimension=function(t){var e=0;if("width"!==t&&"height"!==t)throw new Error("currentDimension only accepts width or height value");if("function"==typeof i.default.getComputedStyle){var n=i.default.getComputedStyle(this.el_);e=n.getPropertyValue(t)||n[t]}if(0===(e=parseFloat(e))){var r="offset"+(0,l.default)(t);e=this.el_[r]}return e},t.prototype.currentDimensions=function(){return{width:this.currentDimension("width"),height:this.currentDimension("height")}},t.prototype.currentWidth=function(){return this.currentDimension("width")},t.prototype.currentHeight=function(){return this.currentDimension("height")},t.prototype.focus=function(){this.el_.focus()},t.prototype.blur=function(){this.el_.blur()},t.prototype.emitTapEvents=function(){var t=0,e=null,n=void 0;this.on("touchstart",function(i){1===i.touches.length&&(e={pageX:i.touches[0].pageX,pageY:i.touches[0].pageY},t=(new Date).getTime(),n=!0)}),this.on("touchmove",function(t){if(t.touches.length>1)n=!1;else if(e){var i=t.touches[0].pageX-e.pageX,r=t.touches[0].pageY-e.pageY;Math.sqrt(i*i+r*r)>10&&(n=!1)}});var i=function(){n=!1};this.on("touchleave",i),this.on("touchcancel",i),this.on("touchend",function(i){(e=null,!0===n)&&((new Date).getTime()-t<200&&(i.preventDefault(),this.trigger("tap")))})},t.prototype.enableTouchActivity=function(){if(this.player()&&this.player().reportUserActivity){var t=o.bind(this.player(),this.player().reportUserActivity),e=void 0;this.on("touchstart",function(){t(),this.clearInterval(e),e=this.setInterval(t,250)});var n=function(n){t(),this.clearInterval(e)};this.on("touchmove",t),this.on("touchend",n),this.on("touchcancel",n)}},t.prototype.setTimeout=function(t,e){t=o.bind(this,t);var n=i.default.setTimeout(t,e),r=function(){this.clearTimeout(n)};return r.guid="vjs-timeout-"+n,this.on("dispose",r),n},t.prototype.clearTimeout=function(t){i.default.clearTimeout(t);var e=function(){};return e.guid="vjs-timeout-"+t,this.off("dispose",e),t},t.prototype.setInterval=function(t,e){t=o.bind(this,t);var n=i.default.setInterval(t,e),r=function(){this.clearInterval(n)};return r.guid="vjs-interval-"+n,this.on("dispose",r),n},t.prototype.clearInterval=function(t){i.default.clearInterval(t);var e=function(){};return e.guid="vjs-interval-"+t,this.off("dispose",e),t},t.registerComponent=function(e,n){if(e){if(e=(0,l.default)(e),t.components_||(t.components_={}),"Player"===e&&t.components_[e]){var i=t.components_[e];if(i.players&&Object.keys(i.players).length>0&&Object.keys(i.players).map(function(t){return i.players[t]}).every(Boolean))throw new Error("Can not register Player component after player has been created")}return t.components_[e]=n,n}},t.getComponent=function(e){if(e)return e=(0,l.default)(e),t.components_&&t.components_[e]?t.components_[e]:i.default&&i.default.videojs&&i.default.videojs[e]?(u.default.warn("The "+e+" component was added to the videojs object when it should be registered using videojs.registerComponent(name, component)"),i.default.videojs[e]):void 0},t.extend=function(e){e=e||{},u.default.warn("Component.extend({}) has been deprecated,  use videojs.extend(Component, {}) instead");var n=e.init||e.init||this.prototype.init||this.prototype.init||function(){},i=function(){n.apply(this,arguments)};for(var r in(i.prototype=Object.create(this.prototype)).constructor=i,i.extend=t.extend,e)e.hasOwnProperty(r)&&(i.prototype[r]=e[r]);return i},t}();h.registerComponent("Component",h),e.default=h},function(t,e,n){"use strict";e.__esModule=!0,e.throttle=e.bind=void 0;var i=n(411);e.bind=function(t,e,n){e.guid||(e.guid=(0,i.newGUID)());var r=function(){return e.apply(t,arguments)};return r.guid=n?n+"_"+e.guid:e.guid,r},e.throttle=function(t,e){var n=Date.now();return function(){var i=Date.now();i-n>=e&&(t.apply(void 0,arguments),n=i)}}},function(t,e){"use strict";e.__esModule=!0,e.default=function(t){return"string"!=typeof t?t:t.charAt(0).toUpperCase()+t.slice(1)}},function(t,e,n){"use strict";e.__esModule=!0,e.default=function t(){var e={};for(var n=arguments.length,r=Array(n),o=0;o<n;o++)r[o]=arguments[o];r.forEach(function(n){n&&(0,i.each)(n,function(n,r){(0,i.isPlain)(n)?((0,i.isPlain)(e[r])||(e[r]={}),e[r]=t(e[r],n)):e[r]=n})});return e};var i=n(413)},function(t,e,n){"use strict";e.__esModule=!0;var i=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}(n(416));var r=function(){};r.prototype.allowedEvents_={},r.prototype.on=function(t,e){var n=this.addEventListener;this.addEventListener=function(){},i.on(this,t,e),this.addEventListener=n},r.prototype.addEventListener=r.prototype.on,r.prototype.off=function(t,e){i.off(this,t,e)},r.prototype.removeEventListener=r.prototype.off,r.prototype.one=function(t,e){var n=this.addEventListener;this.addEventListener=function(){},i.one(this,t,e),this.addEventListener=n},r.prototype.trigger=function(t){var e=t.type||t;"string"==typeof t&&(t={type:e}),t=i.fixEvent(t),this.allowedEvents_[e]&&this["on"+e]&&this["on"+e](t),i.trigger(this,t)},r.prototype.dispatchEvent=r.prototype.trigger,e.default=r},function(t,e,n){"use strict";e.__esModule=!0;var i=C(n(418)),r=C(n(407)),o=C(n(406)),a=O(n(416)),s=O(n(410)),u=O(n(419)),l=O(n(411)),c=O(n(409)),d=C(n(412)),f=C(n(420)),h=n(424),p=n(425),v=O(n(417)),y=C(n(426)),m=C(n(427)),g=C(n(428)),b=n(413),_=C(n(421)),T=C(n(429)),E=C(n(430)),w=C(n(431)),k=C(n(446)),S=C(n(445));function O(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}function C(t){return t&&t.__esModule?t:{default:t}}n(451),n(452),n(454),n(456),n(457),n(458),n(460),n(461),n(504),n(505),n(506);var x=["progress","abort","suspend","emptied","stalled","loadedmetadata","loadeddata","timeupdate","ratechange","volumechange","texttrackchange"],P=function(t){function e(n,i,r){if(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),n.id=n.id||"vjs_video_"+l.newGUID(),(i=(0,b.assign)(e.getTagSettings(n),i)).initChildren=!1,i.createEl=!1,i.reportTouchActivity=!1,!i.language)if("function"==typeof n.closest){var o=n.closest("[lang]");o&&(i.language=o.getAttribute("lang"))}else for(var a=n;a&&1===a.nodeType;){if(s.getElAttributes(a).hasOwnProperty("lang")){i.language=a.getAttribute("lang");break}a=a.parentNode}var u=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,t.call(this,null,i,r));if(!u.options_||!u.options_.techOrder||!u.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(u.tag=n,u.tagAttributes=n&&s.getElAttributes(n),u.language(u.options_.language),i.languages){var f={};Object.getOwnPropertyNames(i.languages).forEach(function(t){f[t.toLowerCase()]=i.languages[t]}),u.languages_=f}else u.languages_=e.prototype.options_.languages;u.cache_={},u.poster_=i.poster||"",u.controls_=!!i.controls,n.controls=!1,u.scrubbing_=!1,u.el_=u.createEl();var h=(0,_.default)(u.options_);if(i.plugins){var p=i.plugins;Object.getOwnPropertyNames(p).forEach(function(t){"function"==typeof this[t]?this[t](p[t]):d.default.error("Unable to find plugin:",t)},u)}u.options_.playerOptions=h,u.initChildren(),u.isAudio("audio"===n.nodeName.toLowerCase()),u.controls()?u.addClass("vjs-controls-enabled"):u.addClass("vjs-controls-disabled"),u.el_.setAttribute("role","region"),u.isAudio()?u.el_.setAttribute("aria-label","audio player"):u.el_.setAttribute("aria-label","video player"),u.isAudio()&&u.addClass("vjs-audio"),u.flexNotSupported_()&&u.addClass("vjs-no-flex"),c.IS_IOS||u.addClass("vjs-workinghover"),e.players[u.id_]=u;var v="5.20.4".split(".")[0];return u.addClass("vjs-v"+v),u.userActive(!0),u.reportUserActivity(),u.listenForUserActivity_(),u.on("fullscreenchange",u.handleFullscreenChange_),u.on("stageclick",u.handleStageClick_),u}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.dispose=function(){this.trigger("dispose"),this.off("dispose"),this.styleEl_&&this.styleEl_.parentNode&&this.styleEl_.parentNode.removeChild(this.styleEl_),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(),t.prototype.dispose.call(this)},e.prototype.createEl=function(){var e=this.tag,n=void 0,i=this.playerElIngest_=e.parentNode&&e.parentNode.hasAttribute&&e.parentNode.hasAttribute("data-vjs-player");n=this.el_=i?e.parentNode:t.prototype.createEl.call(this,"div"),e.setAttribute("tabindex","-1"),e.removeAttribute("width"),e.removeAttribute("height");var r=s.getElAttributes(e);if(Object.getOwnPropertyNames(r).forEach(function(t){"class"===t?n.className+=" "+r[t]:n.setAttribute(t,r[t])}),e.playerId=e.id,e.id+="_html5_api",e.className="vjs-tech",e.player=n.player=this,this.addClass("vjs-paused"),!0!==o.default.VIDEOJS_NO_DYNAMIC_STYLE){this.styleEl_=v.createStyleElement("vjs-styles-dimensions");var a=s.$(".vjs-styles-defaults"),u=s.$("head");u.insertBefore(this.styleEl_,a?a.nextSibling:u.firstChild)}this.width(this.options_.width),this.height(this.options_.height),this.fluid(this.options_.fluid),this.aspectRatio(this.options_.aspectRatio);for(var l=e.getElementsByTagName("a"),c=0;c<l.length;c++){var d=l.item(c);s.addElClass(d,"vjs-hidden"),d.setAttribute("hidden","hidden")}return e.initNetworkState_=e.networkState,e.parentNode&&!i&&e.parentNode.insertBefore(n,e),s.insertElFirst(e,n),this.children_.unshift(e),this.el_=n,n},e.prototype.width=function(t){return this.dimension("width",t)},e.prototype.height=function(t){return this.dimension("height",t)},e.prototype.dimension=function(t,e){var n=t+"_";if(void 0===e)return this[n]||0;if(""===e)this[n]=void 0;else{var i=parseFloat(e);if(isNaN(i))return d.default.error('Improper value "'+e+'" supplied for for '+t),this;this[n]=i}return this.updateStyleEl_(),this},e.prototype.fluid=function(t){if(void 0===t)return!!this.fluid_;this.fluid_=!!t,t?this.addClass("vjs-fluid"):this.removeClass("vjs-fluid"),this.updateStyleEl_()},e.prototype.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_()},e.prototype.updateStyleEl_=function(){if(!0!==o.default.VIDEOJS_NO_DYNAMIC_STYLE){var t=void 0,e=void 0,n=void 0,i=(void 0!==this.aspectRatio_&&"auto"!==this.aspectRatio_?this.aspectRatio_:this.videoWidth()>0?this.videoWidth()+":"+this.videoHeight():"16:9").split(":"),r=i[1]/i[0];t=void 0!==this.width_?this.width_:void 0!==this.height_?this.height_/r:this.videoWidth()||300,e=void 0!==this.height_?this.height_:t*r,n=/^[^a-zA-Z]/.test(this.id())?"dimensions-"+this.id():this.id()+"-dimensions",this.addClass(n),v.setTextContent(this.styleEl_,"\n      ."+n+" {\n        width: "+t+"px;\n        height: "+e+"px;\n      }\n\n      ."+n+".vjs-fluid {\n        padding-top: "+100*r+"%;\n      }\n    ")}else{var a="number"==typeof this.width_?this.width_:this.options_.width,s="number"==typeof this.height_?this.height_:this.options_.height,u=this.tech_&&this.tech_.el();u&&(a>=0&&(u.width=a),s>=0&&(u.height=s))}},e.prototype.loadTech_=function(t,e){var n=this;this.tech_&&this.unloadTech_(),"Html5"!==t&&this.tag&&(w.default.getTech("Html5").disposeMediaElement(this.tag),this.tag.player=null,this.tag=null),this.techName_=t,this.isReady_=!1;var r=(0,b.assign)({source:e,nativeControlsForTouch:this.options_.nativeControlsForTouch,playerId:this.id(),techId:this.id()+"_"+t+"_api",videoTracks:this.videoTracks_,textTracks:this.textTracks_,audioTracks:this.audioTracks_,autoplay:this.options_.autoplay,playsinline:this.options_.playsinline,preload:this.options_.preload,loop:this.options_.loop,muted:this.options_.muted,poster:this.poster(),language:this.language(),playerElIngest:this.playerElIngest_||!1,"vtt.js":this.options_["vtt.js"]},this.options_[t.toLowerCase()]);this.tag&&(r.tag=this.tag),e&&(this.currentType_=e.type,e.src===this.cache_.src&&this.cache_.currentTime>0&&(r.startTime=this.cache_.currentTime),this.cache_.sources=null,this.cache_.source=e,this.cache_.src=e.src);var o=w.default.getTech(t);o||(o=i.default.getComponent(t)),this.tech_=new o(r),this.tech_.ready(u.bind(this,this.handleTechReady_),!0),T.default.jsonToTextTracks(this.textTracksJson_||[],this.tech_),x.forEach(function(t){n.on(n.tech_,t,n["handleTech"+(0,f.default)(t)+"_"])}),this.on(this.tech_,"loadstart",this.handleTechLoadStart_),this.on(this.tech_,"waiting",this.handleTechWaiting_),this.on(this.tech_,"canplay",this.handleTechCanPlay_),this.on(this.tech_,"canplaythrough",this.handleTechCanPlayThrough_),this.on(this.tech_,"playing",this.handleTechPlaying_),this.on(this.tech_,"ended",this.handleTechEnded_),this.on(this.tech_,"seeking",this.handleTechSeeking_),this.on(this.tech_,"seeked",this.handleTechSeeked_),this.on(this.tech_,"play",this.handleTechPlay_),this.on(this.tech_,"firstplay",this.handleTechFirstPlay_),this.on(this.tech_,"pause",this.handleTechPause_),this.on(this.tech_,"durationchange",this.handleTechDurationChange_),this.on(this.tech_,"fullscreenchange",this.handleTechFullscreenChange_),this.on(this.tech_,"error",this.handleTechError_),this.on(this.tech_,"loadedmetadata",this.updateStyleEl_),this.on(this.tech_,"posterchange",this.handleTechPosterChange_),this.on(this.tech_,"textdata",this.handleTechTextData_),this.usingNativeControls(this.techGet_("controls")),this.controls()&&!this.usingNativeControls()&&this.addTechControlsListeners_(),this.tech_.el().parentNode===this.el()||"Html5"===t&&this.tag||s.insertElFirst(this.tech_.el(),this.el()),this.tag&&(this.tag.player=null,this.tag=null)},e.prototype.unloadTech_=function(){this.videoTracks_=this.videoTracks(),this.textTracks_=this.textTracks(),this.audioTracks_=this.audioTracks(),this.textTracksJson_=T.default.textTracksToJson(this.tech_),this.isReady_=!1,this.tech_.dispose(),this.tech_=!1},e.prototype.tech=function(t){if(t&&t.IWillNotUseThisInPlugins)return this.tech_;var e="\n      Please make sure that you are not using this inside of a plugin.\n      To disable this alert and error, please pass in an object with\n      `IWillNotUseThisInPlugins` to the `tech` method. See\n      https://github.com/videojs/video.js/issues/2617 for more info.\n    ";throw o.default.alert(e),new Error(e)},e.prototype.addTechControlsListeners_=function(){this.removeTechControlsListeners_(),this.on(this.tech_,"mousedown",this.handleTechClick_),this.on(this.tech_,"touchstart",this.handleTechTouchStart_),this.on(this.tech_,"touchmove",this.handleTechTouchMove_),this.on(this.tech_,"touchend",this.handleTechTouchEnd_),this.on(this.tech_,"tap",this.handleTechTap_)},e.prototype.removeTechControlsListeners_=function(){this.off(this.tech_,"tap",this.handleTechTap_),this.off(this.tech_,"touchstart",this.handleTechTouchStart_),this.off(this.tech_,"touchmove",this.handleTechTouchMove_),this.off(this.tech_,"touchend",this.handleTechTouchEnd_),this.off(this.tech_,"mousedown",this.handleTechClick_)},e.prototype.handleTechReady_=function(){if(this.triggerReady(),this.cache_.volume&&this.techCall_("setVolume",this.cache_.volume),this.handleTechPosterChange_(),this.handleTechDurationChange_(),(this.src()||this.currentSrc())&&this.tag&&this.options_.autoplay&&this.paused()){try{delete this.tag.poster}catch(t){(0,d.default)("deleting tag.poster throws in some browsers",t)}this.play()}},e.prototype.handleTechLoadStart_=function(){this.removeClass("vjs-ended"),this.removeClass("vjs-seeking"),this.error(null),this.paused()?(this.hasStarted(!1),this.trigger("loadstart")):(this.trigger("loadstart"),this.trigger("firstplay"))},e.prototype.hasStarted=function(t){return void 0!==t?(this.hasStarted_!==t&&(this.hasStarted_=t,t?(this.addClass("vjs-has-started"),this.trigger("firstplay")):this.removeClass("vjs-has-started")),this):!!this.hasStarted_},e.prototype.handleTechPlay_=function(){this.removeClass("vjs-ended"),this.removeClass("vjs-paused"),this.addClass("vjs-playing"),this.hasStarted(!0),this.trigger("play")},e.prototype.handleTechWaiting_=function(){var t=this;this.addClass("vjs-waiting"),this.trigger("waiting"),this.one("timeupdate",function(){return t.removeClass("vjs-waiting")})},e.prototype.handleTechCanPlay_=function(){this.removeClass("vjs-waiting"),this.trigger("canplay")},e.prototype.handleTechCanPlayThrough_=function(){this.removeClass("vjs-waiting"),this.trigger("canplaythrough")},e.prototype.handleTechPlaying_=function(){this.removeClass("vjs-waiting"),this.trigger("playing")},e.prototype.handleTechSeeking_=function(){this.addClass("vjs-seeking"),this.trigger("seeking")},e.prototype.handleTechSeeked_=function(){this.removeClass("vjs-seeking"),this.trigger("seeked")},e.prototype.handleTechFirstPlay_=function(){this.options_.starttime&&(d.default.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")},e.prototype.handleTechPause_=function(){this.removeClass("vjs-playing"),this.addClass("vjs-paused"),this.trigger("pause")},e.prototype.handleTechEnded_=function(){this.addClass("vjs-ended"),this.options_.loop?(this.currentTime(0),this.play()):this.paused()||this.pause(),this.trigger("ended")},e.prototype.handleTechDurationChange_=function(){this.duration(this.techGet_("duration"))},e.prototype.handleTechClick_=function(t){0===t.button&&this.controls()&&(this.paused()?this.play():this.pause())},e.prototype.handleTechTap_=function(){this.userActive(!this.userActive())},e.prototype.handleTechTouchStart_=function(){this.userWasActive=this.userActive()},e.prototype.handleTechTouchMove_=function(){this.userWasActive&&this.reportUserActivity()},e.prototype.handleTechTouchEnd_=function(t){t.preventDefault()},e.prototype.handleFullscreenChange_=function(){this.isFullscreen()?this.addClass("vjs-fullscreen"):this.removeClass("vjs-fullscreen")},e.prototype.handleStageClick_=function(){this.reportUserActivity()},e.prototype.handleTechFullscreenChange_=function(t,e){e&&this.isFullscreen(e.isFullscreen),this.trigger("fullscreenchange")},e.prototype.handleTechError_=function(){var t=this.tech_.error();this.error(t)},e.prototype.handleTechTextData_=function(){var t=null;arguments.length>1&&(t=arguments[1]),this.trigger("textdata",t)},e.prototype.getCache=function(){return this.cache_},e.prototype.techCall_=function(t,e){if(this.tech_&&!this.tech_.isReady_)this.tech_.ready(function(){this[t](e)},!0);else try{this.tech_&&this.tech_[t](e)}catch(t){throw(0,d.default)(t),t}},e.prototype.techGet_=function(t){if(this.tech_&&this.tech_.isReady_)try{return this.tech_[t]()}catch(e){throw void 0===this.tech_[t]?(0,d.default)("Video.js: "+t+" method not defined for "+this.techName_+" playback technology.",e):"TypeError"===e.name?((0,d.default)("Video.js: "+t+" unavailable on "+this.techName_+" playback technology element.",e),this.tech_.isReady_=!1):(0,d.default)(e),e}},e.prototype.play=function(){return this.src()||this.currentSrc()?this.techCall_("play"):this.tech_.one("loadstart",function(){this.play()}),this},e.prototype.pause=function(){return this.techCall_("pause"),this},e.prototype.paused=function(){return!1!==this.techGet_("paused")},e.prototype.scrubbing=function(t){return void 0!==t?(this.scrubbing_=!!t,t?this.addClass("vjs-scrubbing"):this.removeClass("vjs-scrubbing"),this):this.scrubbing_},e.prototype.currentTime=function(t){return void 0!==t?(this.techCall_("setCurrentTime",t),this):(this.cache_.currentTime=this.techGet_("currentTime")||0,this.cache_.currentTime)},e.prototype.duration=function(t){return void 0===t?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"),this.trigger("durationchange")),this)},e.prototype.remainingTime=function(){return this.duration()-this.currentTime()},e.prototype.buffered=function(){var t=this.techGet_("buffered");return t&&t.length||(t=(0,h.createTimeRange)(0,0)),t},e.prototype.bufferedPercent=function(){return(0,p.bufferedPercent)(this.buffered(),this.duration())},e.prototype.bufferedEnd=function(){var t=this.buffered(),e=this.duration(),n=t.end(t.length-1);return n>e&&(n=e),n},e.prototype.volume=function(t){var e=void 0;return void 0!==t?(e=Math.max(0,Math.min(1,parseFloat(t))),this.cache_.volume=e,this.techCall_("setVolume",e),this):(e=parseFloat(this.techGet_("volume")),isNaN(e)?1:e)},e.prototype.muted=function(t){return void 0!==t?(this.techCall_("setMuted",t),this):this.techGet_("muted")||!1},e.prototype.supportsFullScreen=function(){return this.techGet_("supportsFullScreen")||!1},e.prototype.isFullscreen=function(t){return void 0!==t?(this.isFullscreen_=!!t,this):!!this.isFullscreen_},e.prototype.requestFullscreen=function(){var t=y.default;return this.isFullscreen(!0),t.requestFullscreen?(a.on(r.default,t.fullscreenchange,u.bind(this,function e(n){this.isFullscreen(r.default[t.fullscreenElement]),!1===this.isFullscreen()&&a.off(r.default,t.fullscreenchange,e),this.trigger("fullscreenchange")})),this.el_[t.requestFullscreen]()):this.tech_.supportsFullScreen()?this.techCall_("enterFullScreen"):(this.enterFullWindow(),this.trigger("fullscreenchange")),this},e.prototype.exitFullscreen=function(){var t=y.default;return this.isFullscreen(!1),t.requestFullscreen?r.default[t.exitFullscreen]():this.tech_.supportsFullScreen()?this.techCall_("exitFullScreen"):(this.exitFullWindow(),this.trigger("fullscreenchange")),this},e.prototype.enterFullWindow=function(){this.isFullWindow=!0,this.docOrigOverflow=r.default.documentElement.style.overflow,a.on(r.default,"keydown",u.bind(this,this.fullWindowOnEscKey)),r.default.documentElement.style.overflow="hidden",s.addElClass(r.default.body,"vjs-full-window"),this.trigger("enterFullWindow")},e.prototype.fullWindowOnEscKey=function(t){27===t.keyCode&&(!0===this.isFullscreen()?this.exitFullscreen():this.exitFullWindow())},e.prototype.exitFullWindow=function(){this.isFullWindow=!1,a.off(r.default,"keydown",this.fullWindowOnEscKey),r.default.documentElement.style.overflow=this.docOrigOverflow,s.removeElClass(r.default.body,"vjs-full-window"),this.trigger("exitFullWindow")},e.prototype.canPlayType=function(t){for(var e=void 0,n=0,r=this.options_.techOrder;n<r.length;n++){var o=(0,f.default)(r[n]),a=w.default.getTech(o);if(a||(a=i.default.getComponent(o)),a){if(a.isSupported()&&(e=a.canPlayType(t)))return e}else d.default.error('The "'+o+'" tech is undefined. Skipped browser support check for that tech.')}return""},e.prototype.selectSource=function(t){var e,n=this,r=this.options_.techOrder.map(f.default).map(function(t){return[t,w.default.getTech(t)||i.default.getComponent(t)]}).filter(function(t){var e=t[0],n=t[1];return n?n.isSupported():(d.default.error('The "'+e+'" tech is undefined. Skipped browser support check for that tech.'),!1)}),o=function(t,e,n){var i=void 0;return t.some(function(t){return e.some(function(e){if(i=n(t,e))return!0})}),i},a=function(t,e){var i=t[0];if(t[1].canPlaySource(e,n.options_[i.toLowerCase()]))return{source:e,tech:i}};return(this.options_.sourceOrder?o(t,r,(e=a,function(t,n){return e(n,t)})):o(r,t,a))||!1},e.prototype.src=function(t){if(void 0===t)return this.techGet_("src");var e=w.default.getTech(this.techName_);return e||(e=i.default.getComponent(this.techName_)),Array.isArray(t)?this.sourceList_(t):"string"==typeof t?this.src({src:t}):t instanceof Object&&(t.type&&!e.canPlaySource(t,this.options_[this.techName_.toLowerCase()])?this.sourceList_([t]):(this.cache_.sources=null,this.cache_.source=t,this.cache_.src=t.src,this.currentType_=t.type||"",this.ready(function(){e.prototype.hasOwnProperty("setSource")?this.techCall_("setSource",t):this.techCall_("src",t.src),"auto"===this.options_.preload&&this.load(),this.options_.autoplay&&this.play()},!0))),this},e.prototype.sourceList_=function(t){var e=this.selectSource(t);e?(e.tech===this.techName_?this.src(e.source):this.loadTech_(e.tech,e.source),this.cache_.sources=t):(this.setTimeout(function(){this.error({code:4,message:this.localize(this.options_.notSupportedMessage)})},0),this.triggerReady())},e.prototype.load=function(){return this.techCall_("load"),this},e.prototype.reset=function(){return this.loadTech_((0,f.default)(this.options_.techOrder[0]),null),this.techCall_("reset"),this},e.prototype.currentSources=function(){var t=this.currentSource(),e=[];return 0!==Object.keys(t).length&&e.push(t),this.cache_.sources||e},e.prototype.currentSource=function(){var t={},e=this.currentSrc();return e&&(t.src=e),this.cache_.source||t},e.prototype.currentSrc=function(){return this.techGet_("currentSrc")||this.cache_.src||""},e.prototype.currentType=function(){return this.currentType_||""},e.prototype.preload=function(t){return void 0!==t?(this.techCall_("setPreload",t),this.options_.preload=t,this):this.techGet_("preload")},e.prototype.autoplay=function(t){return void 0!==t?(this.techCall_("setAutoplay",t),this.options_.autoplay=t,this):this.techGet_("autoplay",t)},e.prototype.playsinline=function(t){return void 0!==t?(this.techCall_("setPlaysinline",t),this.options_.playsinline=t,this):this.techGet_("playsinline")},e.prototype.loop=function(t){return void 0!==t?(this.techCall_("setLoop",t),this.options_.loop=t,this):this.techGet_("loop")},e.prototype.poster=function(t){return void 0===t?this.poster_:(t||(t=""),this.poster_=t,this.techCall_("setPoster",t),this.trigger("posterchange"),this)},e.prototype.handleTechPosterChange_=function(){!this.poster_&&this.tech_&&this.tech_.poster&&(this.poster_=this.tech_.poster()||"",this.trigger("posterchange"))},e.prototype.controls=function(t){return void 0!==t?(t=!!t,this.controls_!==t&&(this.controls_=t,this.usingNativeControls()&&this.techCall_("setControls",t),t?(this.removeClass("vjs-controls-disabled"),this.addClass("vjs-controls-enabled"),this.trigger("controlsenabled"),this.usingNativeControls()||this.addTechControlsListeners_()):(this.removeClass("vjs-controls-enabled"),this.addClass("vjs-controls-disabled"),this.trigger("controlsdisabled"),this.usingNativeControls()||this.removeTechControlsListeners_())),this):!!this.controls_},e.prototype.usingNativeControls=function(t){return void 0!==t?(t=!!t,this.usingNativeControls_!==t&&(this.usingNativeControls_=t,t?(this.addClass("vjs-using-native-controls"),this.trigger("usingnativecontrols")):(this.removeClass("vjs-using-native-controls"),this.trigger("usingcustomcontrols"))),this):!!this.usingNativeControls_},e.prototype.error=function(t){return void 0===t?this.error_||null:null===t?(this.error_=t,this.removeClass("vjs-error"),this.errorDisplay&&this.errorDisplay.close(),this):(this.error_=new m.default(t),this.addClass("vjs-error"),d.default.error("(CODE:"+this.error_.code+" "+m.default.errorTypes[this.error_.code]+")",this.error_.message,this.error_),this.trigger("error"),this)},e.prototype.reportUserActivity=function(t){this.userActivity_=!0},e.prototype.userActive=function(t){return void 0!==t?((t=!!t)!==this.userActive_&&(this.userActive_=t,t?(this.userActivity_=!0,this.removeClass("vjs-user-inactive"),this.addClass("vjs-user-active"),this.trigger("useractive")):(this.userActivity_=!1,this.tech_&&this.tech_.one("mousemove",function(t){t.stopPropagation(),t.preventDefault()}),this.removeClass("vjs-user-active"),this.addClass("vjs-user-inactive"),this.trigger("userinactive"))),this):this.userActive_},e.prototype.listenForUserActivity_=function(){var t=void 0,e=void 0,n=void 0,i=u.bind(this,this.reportUserActivity);this.on("mousedown",function(){i(),this.clearInterval(t),t=this.setInterval(i,250)}),this.on("mousemove",function(t){t.screenX===e&&t.screenY===n||(e=t.screenX,n=t.screenY,i())}),this.on("mouseup",function(e){i(),this.clearInterval(t)}),this.on("keydown",i),this.on("keyup",i);var r=void 0;this.setInterval(function(){if(this.userActivity_){this.userActivity_=!1,this.userActive(!0),this.clearTimeout(r);var t=this.options_.inactivityTimeout;t>0&&(r=this.setTimeout(function(){this.userActivity_||this.userActive(!1)},t))}},250)},e.prototype.playbackRate=function(t){return void 0!==t?(this.techCall_("setPlaybackRate",t),this):this.tech_&&this.tech_.featuresPlaybackRate?this.techGet_("playbackRate"):1},e.prototype.isAudio=function(t){return void 0!==t?(this.isAudio_=!!t,this):!!this.isAudio_},e.prototype.videoTracks=function(){return this.tech_?this.tech_.videoTracks():(this.videoTracks_=this.videoTracks_||new S.default,this.videoTracks_)},e.prototype.audioTracks=function(){return this.tech_?this.tech_.audioTracks():(this.audioTracks_=this.audioTracks_||new k.default,this.audioTracks_)},e.prototype.textTracks=function(){if(this.tech_)return this.tech_.textTracks()},e.prototype.remoteTextTracks=function(){if(this.tech_)return this.tech_.remoteTextTracks()},e.prototype.remoteTextTrackEls=function(){if(this.tech_)return this.tech_.remoteTextTrackEls()},e.prototype.addTextTrack=function(t,e,n){if(this.tech_)return this.tech_.addTextTrack(t,e,n)},e.prototype.addRemoteTextTrack=function(t,e){if(this.tech_)return this.tech_.addRemoteTextTrack(t,e)},e.prototype.removeRemoteTextTrack=function(){var t=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).track,e=void 0===t?arguments[0]:t;if(this.tech_)return this.tech_.removeRemoteTextTrack(e)},e.prototype.getVideoPlaybackQuality=function(){return this.techGet_("getVideoPlaybackQuality")},e.prototype.videoWidth=function(){return this.tech_&&this.tech_.videoWidth&&this.tech_.videoWidth()||0},e.prototype.videoHeight=function(){return this.tech_&&this.tech_.videoHeight&&this.tech_.videoHeight()||0},e.prototype.language=function(t){return void 0===t?this.language_:(this.language_=String(t).toLowerCase(),this)},e.prototype.languages=function(){return(0,_.default)(e.prototype.options_.languages,this.languages_)},e.prototype.toJSON=function(){var t=(0,_.default)(this.options_),e=t.tracks;t.tracks=[];for(var n=0;n<e.length;n++){var i=e[n];(i=(0,_.default)(i)).player=void 0,t.tracks[n]=i}return t},e.prototype.createModal=function(t,e){var n=this;(e=e||{}).content=t||"";var i=new E.default(this,e);return this.addChild(i),i.on("dispose",function(){n.removeChild(i)}),i.open()},e.getTagSettings=function(t){var e={sources:[],tracks:[]},n=s.getElAttributes(t),i=n["data-setup"];if(s.hasElClass(t,"vjs-fluid")&&(n.fluid=!0),null!==i){var r=(0,g.default)(i||"{}"),o=r[0],a=r[1];o&&d.default.error(o),(0,b.assign)(n,a)}if((0,b.assign)(e,n),t.hasChildNodes())for(var u=t.childNodes,l=0,c=u.length;l<c;l++){var f=u[l],h=f.nodeName.toLowerCase();"source"===h?e.sources.push(s.getElAttributes(f)):"track"===h&&e.tracks.push(s.getElAttributes(f))}return e},e.prototype.flexNotSupported_=function(){var t=r.default.createElement("i");return!("flexBasis"in t.style||"webkitFlexBasis"in t.style||"mozFlexBasis"in t.style||"msFlexBasis"in t.style||"msFlexOrder"in t.style)},e}(i.default);P.players={};var A=o.default.navigator;P.prototype.options_={techOrder:["html5","flash"],html5:{},flash:{},defaultVolume:0,inactivityTimeout:2e3,playbackRates:[],children:["mediaLoader","posterImage","textTrackDisplay","loadingSpinner","bigPlayButton","controlBar","errorDisplay","textTrackSettings"],language:A&&(A.languages&&A.languages[0]||A.userLanguage||A.language)||"en",languages:{},notSupportedMessage:"No compatible source was found for this media."},["ended","seeking","seekable","networkState","readyState"].forEach(function(t){P.prototype[t]=function(){return this.techGet_(t)}}),x.forEach(function(t){P.prototype["handleTech"+(0,f.default)(t)+"_"]=function(){return this.trigger(t)}}),i.default.registerComponent("Player",P),e.default=P},function(t,e,n){"use strict";e.__esModule=!0,e.createTimeRange=void 0,e.createTimeRanges=u;var i,r=n(412),o=(i=r)&&i.__esModule?i:{default:i};function a(t,e,n,i){return void 0===i&&(o.default.warn("DEPRECATED: Function '"+t+"' on 'TimeRanges' called without an index argument."),i=0),function(t,e,n){if(e<0||e>n)throw new Error("Failed to execute '"+t+"' on 'TimeRanges': The index provided ("+e+") is greater than or equal to the maximum bound ("+n+").")}(t,i,n.length-1),n[i][e]}function s(t){return 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:a.bind(null,"start",0,t),end:a.bind(null,"end",1,t)}}function u(t,e){return Array.isArray(t)?s(t):void 0===t||void 0===e?s():s([[t,e]])}e.createTimeRange=u},function(t,e,n){"use strict";e.__esModule=!0,e.bufferedPercent=function(t,e){var n=0,r=void 0,o=void 0;if(!e)return 0;t&&t.length||(t=(0,i.createTimeRange)(0,0));for(var a=0;a<t.length;a++)r=t.start(a),(o=t.end(a))>e&&(o=e),n+=o-r;return n/e};var i=n(424)},function(t,e,n){"use strict";e.__esModule=!0;var i,r=n(407),o=(i=r)&&i.__esModule?i:{default:i};for(var a={},s=[["requestFullscreen","exitFullscreen","fullscreenElement","fullscreenEnabled","fullscreenchange","fullscreenerror"],["webkitRequestFullscreen","webkitExitFullscreen","webkitFullscreenElement","webkitFullscreenEnabled","webkitfullscreenchange","webkitfullscreenerror"],["webkitRequestFullScreen","webkitCancelFullScreen","webkitCurrentFullScreenElement","webkitCancelFullScreen","webkitfullscreenchange","webkitfullscreenerror"],["mozRequestFullScreen","mozCancelFullScreen","mozFullScreenElement","mozFullScreenEnabled","mozfullscreenchange","mozfullscreenerror"],["msRequestFullscreen","msExitFullscreen","msFullscreenElement","msFullscreenEnabled","MSFullscreenChange","MSFullscreenError"]],u=s[0],l=void 0,c=0;c<s.length;c++)if(s[c][1]in o.default){l=s[c];break}if(l)for(var d=0;d<l.length;d++)a[u[d]]=l[d];e.default=a},function(t,e,n){"use strict";e.__esModule=!0;var i=n(413);function r(t){if(t instanceof r)return t;"number"==typeof t?this.code=t:"string"==typeof t?this.message=t:(0,i.isObject)(t)&&("number"==typeof t.code&&(this.code=t.code),(0,i.assign)(this,t)),this.message||(this.message=r.defaultMessages[this.code]||"")}r.prototype.code=0,r.prototype.message="",r.prototype.status=null,r.errorTypes=["MEDIA_ERR_CUSTOM","MEDIA_ERR_ABORTED","MEDIA_ERR_NETWORK","MEDIA_ERR_DECODE","MEDIA_ERR_SRC_NOT_SUPPORTED","MEDIA_ERR_ENCRYPTED"],r.defaultMessages={1:"You aborted the media playback",2:"A network error caused the media download to fail part-way.",3:"The media playback was aborted due to a corruption problem or because the media used features your browser did not support.",4:"The media could not be loaded, either because the server or network failed or because the format is not supported.",5:"The media is encrypted and we do not have the keys to decrypt it."};for(var o=0;o<r.errorTypes.length;o++)r[r.errorTypes[o]]=o,r.prototype[r.errorTypes[o]]=o;e.default=r},function(t,e){t.exports=function(t,e){var n,i=null;try{n=JSON.parse(t,e)}catch(t){i=t}return[i,n]}},function(t,e){"use strict";e.__esModule=!0;var n=function(t){return["kind","label","language","id","inBandMetadataTrackDispatchType","mode","src"].reduce(function(e,n,i){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}})})};e.default={textTracksToJson:function(t){var e=t.$$("track"),i=Array.prototype.map.call(e,function(t){return t.track});return Array.prototype.map.call(e,function(t){var e=n(t.track);return t.src&&(e.src=t.src),e}).concat(Array.prototype.filter.call(t.textTracks(),function(t){return-1===i.indexOf(t)}).map(n))},jsonToTextTracks: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()},trackToJson_:n}},function(t,e,n){"use strict";e.__esModule=!0;var i,r=u(n(410)),o=u(n(419)),a=n(418),s=(i=a)&&i.__esModule?i:{default:i};function u(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}var l="vjs-modal-dialog",c=function(t){function e(n,i){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var o=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,t.call(this,n,i));return o.opened_=o.hasBeenOpened_=o.hasBeenFilled_=!1,o.closeable(!o.options_.uncloseable),o.content(o.options_.content),o.contentEl_=r.createEl("div",{className:l+"-content"},{role:"document"}),o.descEl_=r.createEl("p",{className:l+"-description vjs-offscreen",id:o.el().getAttribute("aria-describedby")}),r.textContent(o.descEl_,o.description()),o.el_.appendChild(o.descEl_),o.el_.appendChild(o.contentEl_),o}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.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"})},e.prototype.buildCSSClass=function(){return l+" vjs-hidden "+t.prototype.buildCSSClass.call(this)},e.prototype.handleKeyPress=function(t){27===t.which&&this.closeable()&&this.close()},e.prototype.label=function(){return this.options_.label||this.localize("Modal Window")},e.prototype.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},e.prototype.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.closeable()&&this.on(this.el_.ownerDocument,"keydown",o.bind(this,this.handleKeyPress)),t.controls(!1),this.show(),this.el().setAttribute("aria-hidden","false"),this.trigger("modalopen"),this.hasBeenOpened_=!0}return this},e.prototype.opened=function(t){return"boolean"==typeof t&&this[t?"open":"close"](),this.opened_},e.prototype.close=function(){if(this.opened_){var t=this.player();this.trigger("beforemodalclose"),this.opened_=!1,this.wasPlaying_&&this.options_.pauseOnOpen&&t.play(),this.closeable()&&this.off(this.el_.ownerDocument,"keydown",o.bind(this,this.handleKeyPress)),t.controls(!0),this.hide(),this.el().setAttribute("aria-hidden","true"),this.trigger("modalclose"),this.options_.temporary&&this.dispose()}return this},e.prototype.closeable=function(t){if("boolean"==typeof t){var e=this.closeable_=!!t,n=this.getChild("closeButton");if(e&&!n){var i=this.contentEl_;this.contentEl_=this.el_,n=this.addChild("closeButton",{controlText:"Close Modal Dialog"}),this.contentEl_=i,this.on(n,"close",this.close)}!e&&n&&(this.off(n,"close",this.close),this.removeChild(n),n.dispose())}return this.closeable_},e.prototype.fill=function(){return this.fillWith(this.content())},e.prototype.fillWith=function(t){var e=this.contentEl(),n=e.parentNode,i=e.nextSibling;return this.trigger("beforemodalfill"),this.hasBeenFilled_=!0,n.removeChild(e),this.empty(),r.insertContent(e,t),this.trigger("modalfill"),i?n.insertBefore(e,i):n.appendChild(e),this},e.prototype.empty=function(){return this.trigger("beforemodalempty"),r.emptyEl(this.contentEl()),this.trigger("modalempty"),this},e.prototype.content=function(t){return void 0!==t&&(this.content_=t),this.content_},e}(s.default);c.prototype.options_={pauseOnOpen:!0,temporary:!0},s.default.registerComponent("ModalDialog",c),e.default=c},function(t,e,n){"use strict";e.__esModule=!0;var i=b(n(418)),r=b(n(432)),o=b(n(442)),a=b(n(421)),s=b(n(433)),u=b(n(443)),l=b(n(445)),c=b(n(446)),d=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}(n(419)),f=b(n(412)),h=n(424),p=n(425),v=b(n(427)),y=b(n(406)),m=b(n(407)),g=n(413);function b(t){return t&&t.__esModule?t:{default:t}}var _=function(t){function e(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){};!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),n.reportTouchActivity=!1;var r=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,t.call(this,null,n,i));return r.hasStarted_=!1,r.on("playing",function(){this.hasStarted_=!0}),r.on("loadstart",function(){this.hasStarted_=!1}),r.textTracks_=n.textTracks,r.videoTracks_=n.videoTracks,r.audioTracks_=n.audioTracks,r.featuresProgressEvents||r.manualProgressOn(),r.featuresTimeupdateEvents||r.manualTimeUpdatesOn(),["Text","Audio","Video"].forEach(function(t){!1===n["native"+t+"Tracks"]&&(r["featuresNative"+t+"Tracks"]=!1)}),!1===n.nativeCaptions&&(r.featuresNativeTextTracks=!1),r.featuresNativeTextTracks||r.emulateTextTracks(),r.autoRemoteTextTracks_=new u.default,r.initTextTrackListeners(),r.initTrackListeners(),n.nativeControlsForTouch||r.emitTapEvents(),r.constructor&&(r.name_=r.constructor.name||"Unknown Tech"),r}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.manualProgressOn=function(){this.on("durationchange",this.onDurationChange),this.manualProgress=!0,this.one("ready",this.trackProgress)},e.prototype.manualProgressOff=function(){this.manualProgress=!1,this.stopTrackingProgress(),this.off("durationchange",this.onDurationChange)},e.prototype.trackProgress=function(t){this.stopTrackingProgress(),this.progressInterval=this.setInterval(d.bind(this,function(){var t=this.bufferedPercent();this.bufferedPercent_!==t&&this.trigger("progress"),this.bufferedPercent_=t,1===t&&this.stopTrackingProgress()}),500)},e.prototype.onDurationChange=function(t){this.duration_=this.duration()},e.prototype.buffered=function(){return(0,h.createTimeRange)(0,0)},e.prototype.bufferedPercent=function(){return(0,p.bufferedPercent)(this.buffered(),this.duration_)},e.prototype.stopTrackingProgress=function(){this.clearInterval(this.progressInterval)},e.prototype.manualTimeUpdatesOn=function(){this.manualTimeUpdates=!0,this.on("play",this.trackCurrentTime),this.on("pause",this.stopTrackingCurrentTime)},e.prototype.manualTimeUpdatesOff=function(){this.manualTimeUpdates=!1,this.stopTrackingCurrentTime(),this.off("play",this.trackCurrentTime),this.off("pause",this.stopTrackingCurrentTime)},e.prototype.trackCurrentTime=function(){this.currentTimeInterval&&this.stopTrackingCurrentTime(),this.currentTimeInterval=this.setInterval(function(){this.trigger({type:"timeupdate",target:this,manuallyTriggered:!0})},250)},e.prototype.stopTrackingCurrentTime=function(){this.clearInterval(this.currentTimeInterval),this.trigger({type:"timeupdate",target:this,manuallyTriggered:!0})},e.prototype.dispose=function(){this.clearTracks(["audio","video","text"]),this.manualProgress&&this.manualProgressOff(),this.manualTimeUpdates&&this.manualTimeUpdatesOff(),t.prototype.dispose.call(this)},e.prototype.clearTracks=function(t){var e=this;(t=[].concat(t)).forEach(function(t){for(var n=e[t+"Tracks"]()||[],i=n.length;i--;){var r=n[i];"text"===t&&e.removeRemoteTextTrack(r),n.removeTrack_(r)}})},e.prototype.cleanupAutoTextTracks=function(){for(var t=this.autoRemoteTextTracks_||[],e=t.length;e--;){var n=t[e];this.removeRemoteTextTrack(n)}},e.prototype.reset=function(){},e.prototype.error=function(t){return void 0!==t&&(this.error_=new v.default(t),this.trigger("error")),this.error_},e.prototype.played=function(){return this.hasStarted_?(0,h.createTimeRange)(0,0):(0,h.createTimeRange)()},e.prototype.setCurrentTime=function(){this.manualTimeUpdates&&this.trigger({type:"timeupdate",target:this,manuallyTriggered:!0})},e.prototype.initTextTrackListeners=function(){var t=d.bind(this,function(){this.trigger("texttrackchange")}),e=this.textTracks();e&&(e.addEventListener("removetrack",t),e.addEventListener("addtrack",t),this.on("dispose",d.bind(this,function(){e.removeEventListener("removetrack",t),e.removeEventListener("addtrack",t)})))},e.prototype.initTrackListeners=function(){var t=this;["video","audio"].forEach(function(e){var n=function(){t.trigger(e+"trackchange")},i=t[e+"Tracks"]();i.addEventListener("removetrack",n),i.addEventListener("addtrack",n),t.on("dispose",function(){i.removeEventListener("removetrack",n),i.removeEventListener("addtrack",n)})})},e.prototype.addWebVttScript_=function(){var t=this;if(!y.default.WebVTT)if(m.default.body.contains(this.el())){var e=n(447);if(!this.options_["vtt.js"]&&(0,g.isPlain)(e)&&Object.keys(e).length>0)return void this.trigger("vttjsloaded");var i=m.default.createElement("script");i.src=this.options_["vtt.js"]||"https://vjs.zencdn.net/vttjs/0.12.4/vtt.min.js",i.onload=function(){t.trigger("vttjsloaded")},i.onerror=function(){t.trigger("vttjserror")},this.on("dispose",function(){i.onload=null,i.onerror=null}),y.default.WebVTT=!0,this.el().parentNode.appendChild(i)}else this.ready(this.addWebVttScript_)},e.prototype.emulateTextTracks=function(){var t=this,e=this.textTracks();if(e){var n=this.remoteTextTracks(),i=function(t){return e.addTrack_(t.track)},r=function(t){return e.removeTrack_(t.track)};n.on("addtrack",i),n.on("removetrack",r),this.addWebVttScript_();var o=function(){return t.trigger("texttrackchange")},a=function(){o();for(var t=0;t<e.length;t++){var n=e[t];n.removeEventListener("cuechange",o),"showing"===n.mode&&n.addEventListener("cuechange",o)}};a(),e.addEventListener("change",a),e.addEventListener("addtrack",a),e.addEventListener("removetrack",a),this.on("dispose",function(){n.off("addtrack",i),n.off("removetrack",r),e.removeEventListener("change",a),e.removeEventListener("addtrack",a),e.removeEventListener("removetrack",a);for(var t=0;t<e.length;t++){e[t].removeEventListener("cuechange",o)}})}},e.prototype.videoTracks=function(){return this.videoTracks_=this.videoTracks_||new l.default,this.videoTracks_},e.prototype.audioTracks=function(){return this.audioTracks_=this.audioTracks_||new c.default,this.audioTracks_},e.prototype.textTracks=function(){return this.textTracks_=this.textTracks_||new u.default,this.textTracks_},e.prototype.remoteTextTracks=function(){return this.remoteTextTracks_=this.remoteTextTracks_||new u.default,this.remoteTextTracks_},e.prototype.remoteTextTrackEls=function(){return this.remoteTextTrackEls_=this.remoteTextTrackEls_||new o.default,this.remoteTextTrackEls_},e.prototype.addTextTrack=function(t,e,n){if(!t)throw new Error("TextTrack kind is required but was not provided");return function(t,e,n,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},o=t.textTracks();r.kind=e,n&&(r.label=n),i&&(r.language=i),r.tech=t;var a=new s.default(r);return o.addTrack_(a),a}(this,t,e,n)},e.prototype.createRemoteTextTrack=function(t){var e=(0,a.default)(t,{tech:this});return new r.default(e)},e.prototype.addRemoteTextTrack=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments[1],n=this.createRemoteTextTrack(t);return!0!==e&&!1!==e&&(f.default.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_(n),this.remoteTextTracks().addTrack_(n.track),!0!==e&&this.autoRemoteTextTracks_.addTrack_(n.track),n},e.prototype.removeRemoteTextTrack=function(t){var e=this.remoteTextTrackEls().getTrackElementByTrack_(t);this.remoteTextTrackEls().removeTrackElement_(e),this.remoteTextTracks().removeTrack_(t),this.autoRemoteTextTracks_.removeTrack_(t)},e.prototype.getVideoPlaybackQuality=function(){return{}},e.prototype.setPoster=function(){},e.prototype.playsinline=function(){},e.prototype.setPlaysinline=function(){},e.prototype.canPlayType=function(){return""},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");return e.techs_[t]=n,n},e.getTech=function(t){return e.techs_&&e.techs_[t]?e.techs_[t]:y.default&&y.default.videojs&&y.default.videojs[t]?(f.default.warn("The "+t+" tech was added to the videojs object when it should be registered using videojs.registerTech(name, tech)"),y.default.videojs[t]):void 0},e}(i.default);_.prototype.textTracks_,_.prototype.audioTracks_,_.prototype.videoTracks_,_.prototype.featuresVolumeControl=!0,_.prototype.featuresFullscreenResize=!1,_.prototype.featuresPlaybackRate=!1,_.prototype.featuresProgressEvents=!1,_.prototype.featuresTimeupdateEvents=!1,_.prototype.featuresNativeTextTracks=!1,_.withSourceHandlers=function(t){t.registerSourceHandler=function(e,n){var i=t.sourceHandlers;i||(i=t.sourceHandlers=[]),void 0===n&&(n=i.length),i.splice(n,0,e)},t.canPlayType=function(e){for(var n=t.sourceHandlers||[],i=void 0,r=0;r<n.length;r++)if(i=n[r].canPlayType(e))return i;return""},t.selectSourceHandler=function(e,n){for(var i=t.sourceHandlers||[],r=0;r<i.length;r++)if(i[r].canHandleSource(e,n))return i[r];return null},t.canPlaySource=function(e,n){var i=t.selectSourceHandler(e,n);return i?i.canHandleSource(e,n):""};["seekable","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_);return n||(t.nativeSourceHandler?n=t.nativeSourceHandler:f.default.error("No source hander found for the current source.")),this.disposeSourceHandler(),this.off("dispose",this.disposeSourceHandler),n!==t.nativeSourceHandler&&(this.currentSource_=e,this.off(this.el_,"loadstart",t.prototype.firstLoadStartListener_),this.off(this.el_,"loadstart",t.prototype.successiveLoadStartListener_),this.one(this.el_,"loadstart",t.prototype.firstLoadStartListener_)),this.sourceHandler_=n.handleSource(e,this,this.options_),this.on("dispose",this.disposeSourceHandler),this},t.prototype.firstLoadStartListener_=function(){this.one(this.el_,"loadstart",t.prototype.successiveLoadStartListener_)},t.prototype.successiveLoadStartListener_=function(){this.disposeSourceHandler(),this.one(this.el_,"loadstart",t.prototype.successiveLoadStartListener_)},t.prototype.disposeSourceHandler=function(){this.currentSource_&&(this.clearTracks(["audio","video"]),this.currentSource_=null),this.cleanupAutoTextTracks(),this.sourceHandler_&&(this.off(this.el_,"loadstart",t.prototype.firstLoadStartListener_),this.off(this.el_,"loadstart",t.prototype.successiveLoadStartListener_),this.sourceHandler_.dispose&&this.sourceHandler_.dispose(),this.sourceHandler_=null)}},i.default.registerComponent("Tech",_),i.default.registerComponent("MediaTechController",_),_.registerTech("Tech",_),e.default=_},function(t,e,n){"use strict";e.__esModule=!0;var i=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}(n(409)),r=s(n(407)),o=s(n(422)),a=s(n(433));function s(t){return t&&t.__esModule?t:{default:t}}function u(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}var l=0,c=2,d=function(t){function e(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var o=u(this,t.call(this)),s=void 0,d=o;if(i.IS_IE8)for(var f in d=r.default.createElement("custom"),e.prototype)"constructor"!==f&&(d[f]=e.prototype[f]);var h=new a.default(n);return d.kind=h.kind,d.src=h.src,d.srclang=h.language,d.label=h.label,d.default=h.default,Object.defineProperty(d,"readyState",{get:function(){return s}}),Object.defineProperty(d,"track",{get:function(){return h}}),s=l,h.addEventListener("loadeddata",function(){s=c,d.trigger({type:"load",target:d})}),i.IS_IE8?u(o,d):o}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e}(o.default);d.prototype.allowedEvents_={load:"load"},d.NONE=l,d.LOADING=1,d.LOADED=c,d.ERROR=3,e.default=d},function(t,e,n){"use strict";e.__esModule=!0;var i=p(n(434)),r=h(n(419)),o=n(435),a=p(n(412)),s=p(n(406)),u=p(n(436)),l=n(437),c=p(n(438)),d=p(n(421)),f=h(n(409));function h(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}function p(t){return t&&t.__esModule?t:{default:t}}function v(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}var y=function(t,e){var n=new s.default.WebVTT.Parser(s.default,s.default.vttjs,s.default.WebVTT.StringDecoder()),i=[];n.oncue=function(t){e.addCue(t)},n.onparsingerror=function(t){i.push(t)},n.onflush=function(){e.trigger({type:"loadeddata",target:e})},n.parse(t),i.length>0&&(s.default.console&&s.default.console.groupCollapsed&&s.default.console.groupCollapsed("Text Track parsing errors for "+e.src),i.forEach(function(t){return a.default.error(t)}),s.default.console&&s.default.console.groupEnd&&s.default.console.groupEnd()),n.flush()},m=function(t,e){var n={uri:t},i=(0,l.isCrossOrigin)(t);i&&(n.cors=i),(0,c.default)(n,r.bind(this,function(t,n,i){if(t)return a.default.error(t,n);if(e.loaded_=!0,"function"!=typeof s.default.WebVTT){if(e.tech_){var r=function(){return y(i,e)};e.tech_.on("vttjsloaded",r),e.tech_.on("vttjserror",function(){a.default.error("vttjs failed to load, stopping trying to process "+e.src),e.tech_.off("vttjsloaded",r)})}}else y(i,e)}))},g=function(t){function e(){var n,a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),!a.tech)throw new Error("A tech was not provided.");var s=(0,d.default)(a,{kind:o.TextTrackKind[a.kind]||"subtitles",language:a.language||a.srclang||""}),u=o.TextTrackMode[s.mode]||"disabled",l=s.default;"metadata"!==s.kind&&"chapters"!==s.kind||(u="hidden");var c=n=v(this,t.call(this,s));if(c.tech_=s.tech,f.IS_IE8)for(var h in e.prototype)"constructor"!==h&&(c[h]=e.prototype[h]);c.cues_=[],c.activeCues_=[];var p=new i.default(c.cues_),y=new i.default(c.activeCues_),g=!1,b=r.bind(c,function(){this.activeCues,g&&(this.trigger("cuechange"),g=!1)});return"disabled"!==u&&c.tech_.ready(function(){c.tech_.on("timeupdate",b)},!0),Object.defineProperty(c,"default",{get:function(){return l},set:function(){}}),Object.defineProperty(c,"mode",{get:function(){return u},set:function(t){var e=this;o.TextTrackMode[t]&&("showing"===(u=t)&&this.tech_.ready(function(){e.tech_.on("timeupdate",b)},!0),this.trigger("modechange"))}}),Object.defineProperty(c,"cues",{get:function(){return this.loaded_?p:null},set:function(){}}),Object.defineProperty(c,"activeCues",{get:function(){if(!this.loaded_)return null;if(0===this.cues.length)return y;for(var t=this.tech_.currentTime(),e=[],n=0,i=this.cues.length;n<i;n++){var r=this.cues[n];r.startTime<=t&&r.endTime>=t?e.push(r):r.startTime===r.endTime&&r.startTime<=t&&r.startTime+.5>=t&&e.push(r)}if(g=!1,e.length!==this.activeCues_.length)g=!0;else for(var o=0;o<e.length;o++)-1===this.activeCues_.indexOf(e[o])&&(g=!0);return this.activeCues_=e,y.setCues_(this.activeCues_),y},set:function(){}}),s.src?(c.src=s.src,m(s.src,c)):c.loaded_=!0,v(n,c)}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.addCue=function(t){var e=t;if(s.default.vttjs&&!(t instanceof s.default.vttjs.VTTCue)){for(var n in e=new s.default.vttjs.VTTCue(t.startTime,t.endTime,t.text),t)n in e||(e[n]=t[n]);e.id=t.id,e.originalCue_=t}var i=this.tech_.textTracks();if(i)for(var r=0;r<i.length;r++)i[r]!==this&&i[r].removeCue(e);this.cues_.push(e),this.cues.setCues_(this.cues_)},e.prototype.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}(u.default);g.prototype.allowedEvents_={cuechange:"cuechange"},e.default=g},function(t,e,n){"use strict";e.__esModule=!0;var i,r=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}(n(409)),o=n(407),a=(i=o)&&i.__esModule?i:{default:i};var s=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t);var n=this;if(r.IS_IE8)for(var i in n=a.default.createElement("custom"),t.prototype)"constructor"!==i&&(n[i]=t.prototype[i]);if(t.prototype.setCues_.call(n,e),Object.defineProperty(n,"length",{get:function(){return this.length_}}),r.IS_IE8)return n}return t.prototype.setCues_=function(t){var e=this.length||0,n=0,i=t.length;this.cues_=t,this.length_=t.length;var r=function(t){""+t in this||Object.defineProperty(this,""+t,{get:function(){return this.cues_[t]}})};if(e<i)for(n=e;n<i;n++)r.call(this,n)},t.prototype.getCueById=function(t){for(var e=null,n=0,i=this.length;n<i;n++){var r=this[n];if(r.id===t){e=r;break}}return e},t}();e.default=s},function(t,e){"use strict";e.__esModule=!0;e.VideoTrackKind={alternative:"alternative",captions:"captions",main:"main",sign:"sign",subtitles:"subtitles",commentary:"commentary"},e.AudioTrackKind={alternative:"alternative",descriptions:"descriptions",main:"main","main-desc":"main-desc",translation:"translation",commentary:"commentary"},e.TextTrackKind={subtitles:"subtitles",captions:"captions",descriptions:"descriptions",chapters:"chapters",metadata:"metadata"},e.TextTrackMode={disabled:"disabled",hidden:"hidden",showing:"showing"}},function(t,e,n){"use strict";e.__esModule=!0;var i=s(n(409)),r=a(n(407)),o=s(n(411));function a(t){return t&&t.__esModule?t:{default:t}}function s(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}function u(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}var l=function(t){function e(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var a=u(this,t.call(this)),s=a;if(i.IS_IE8)for(var l in s=r.default.createElement("custom"),e.prototype)"constructor"!==l&&(s[l]=e.prototype[l]);var c={id:n.id||"vjs_track_"+o.newGUID(),kind:n.kind||"",label:n.label||"",language:n.language||""},d=function(t){Object.defineProperty(s,t,{get:function(){return c[t]},set:function(){}})};for(var f in c)d(f);return u(a,s)}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e}(a(n(422)).default);e.default=l},function(t,e,n){"use strict";e.__esModule=!0,e.isCrossOrigin=e.getFileExtension=e.getAbsoluteURL=e.parseUrl=void 0;var i=o(n(407)),r=o(n(406));function o(t){return t&&t.__esModule?t:{default:t}}var a=e.parseUrl=function(t){var e=["protocol","hostname","port","pathname","search","hash","host"],n=i.default.createElement("a");n.href=t;var r=""===n.host&&"file:"!==n.protocol,o=void 0;r&&((o=i.default.createElement("div")).innerHTML='<a href="'+t+'"></a>',n=o.firstChild,o.setAttribute("style","display:none; position:absolute;"),i.default.body.appendChild(o));for(var a={},s=0;s<e.length;s++)a[e[s]]=n[e[s]];return"http:"===a.protocol&&(a.host=a.host.replace(/:80$/,"")),"https:"===a.protocol&&(a.host=a.host.replace(/:443$/,"")),r&&i.default.body.removeChild(o),a};e.getAbsoluteURL=function(t){if(!t.match(/^https?:\/\//)){var e=i.default.createElement("div");e.innerHTML='<a href="'+t+'">x</a>',t=e.firstChild.href}return t},e.getFileExtension=function(t){if("string"==typeof t){var e=/^(\/?)([\s\S]*?)((?:\.{1,2}|[^\/]+?)(\.([^\.\/\?]+)))(?:[\/]*|[\?].*)$/i.exec(t);if(e)return e.pop().toLowerCase()}return""},e.isCrossOrigin=function(t){var e=r.default.location,n=a(t);return(":"===n.protocol?e.protocol:n.protocol)+n.host!==e.protocol+e.host}},function(t,e,n){"use strict";var i=n(406),r=n(439),o=n(440),a=n(441);function s(t,e,n){var i=t;return r(e)?(n=e,"string"==typeof t&&(i={uri:t})):i=a(e,{uri:t}),i.callback=n,i}function u(t,e,n){return l(e=s(t,e,n))}function l(t){if(void 0===t.callback)throw new Error("callback argument missing");var e=!1,n=function(n,i,r){e||(e=!0,t.callback(n,i,r))};var i={body:void 0,headers:{},statusCode:0,method:h,url:f,rawRequest:c};function r(t){return clearTimeout(d),t instanceof Error||(t=new Error(""+(t||"Unknown XMLHttpRequest Error"))),t.statusCode=0,n(t,i)}function a(){if(!l){var e;clearTimeout(d),e=t.useXDR&&void 0===c.status?200:1223===c.status?204:c.status;var r=i,a=null;return 0!==e?(r={body:function(){var t=void 0;if(t=c.response?c.response:c.responseText||function(t){if("document"===t.responseType)return t.responseXML;var e=204===t.status&&t.responseXML&&"parsererror"===t.responseXML.documentElement.nodeName;return""!==t.responseType||e?null:t.responseXML}(c),m)try{t=JSON.parse(t)}catch(t){}return t}(),statusCode:e,method:h,headers:{},url:f,rawRequest:c},c.getAllResponseHeaders&&(r.headers=o(c.getAllResponseHeaders()))):a=new Error("Internal XMLHttpRequest Error"),n(a,r,r.body)}}var s,l,c=t.xhr||null;c||(c=t.cors||t.useXDR?new u.XDomainRequest:new u.XMLHttpRequest);var d,f=c.url=t.uri||t.url,h=c.method=t.method||"GET",p=t.body||t.data||null,v=c.headers=t.headers||{},y=!!t.sync,m=!1;if("json"in t&&(m=!0,v.accept||v.Accept||(v.Accept="application/json"),"GET"!==h&&"HEAD"!==h&&(v["content-type"]||v["Content-Type"]||(v["Content-Type"]="application/json"),p=JSON.stringify(t.json))),c.onreadystatechange=function(){4===c.readyState&&a()},c.onload=a,c.onerror=r,c.onprogress=function(){},c.ontimeout=r,c.open(h,f,!y,t.username,t.password),y||(c.withCredentials=!!t.withCredentials),!y&&t.timeout>0&&(d=setTimeout(function(){l=!0,c.abort("timeout");var t=new Error("XMLHttpRequest timeout");t.code="ETIMEDOUT",r(t)},t.timeout)),c.setRequestHeader)for(s in v)v.hasOwnProperty(s)&&c.setRequestHeader(s,v[s]);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&&(c.responseType=t.responseType),"beforeSend"in t&&"function"==typeof t.beforeSend&&t.beforeSend(c),c.send(p),c}t.exports=u,u.XMLHttpRequest=i.XMLHttpRequest||function(){},u.XDomainRequest="withCredentials"in new u.XMLHttpRequest?u.XMLHttpRequest:i.XDomainRequest,function(t,e){for(var n=0;n<t.length;n++)e(t[n])}(["get","put","post","patch","head","delete"],function(t){u["delete"===t?"del":t]=function(e,n,i){return(n=s(e,n,i)).method=t.toUpperCase(),l(n)}})},function(t,e){t.exports=function(t){if(!t)return!1;var e=n.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)};var n=Object.prototype.toString},function(t,e){var n=function(t){return t.replace(/^\s+|\s+$/g,"")};t.exports=function(t){if(!t)return{};for(var e,i={},r=n(t).split("\n"),o=0;o<r.length;o++){var a=r[o],s=a.indexOf(":"),u=n(a.slice(0,s)).toLowerCase(),l=n(a.slice(s+1));void 0===i[u]?i[u]=l:(e=i[u],"[object Array]"===Object.prototype.toString.call(e)?i[u].push(l):i[u]=[i[u],l])}return i}},function(t,e){t.exports=function(){for(var t={},e=0;e<arguments.length;e++){var i=arguments[e];for(var r in i)n.call(i,r)&&(t[r]=i[r])}return t};var n=Object.prototype.hasOwnProperty},function(t,e,n){"use strict";e.__esModule=!0;var i,r=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}(n(409)),o=n(407),a=(i=o)&&i.__esModule?i:{default:i};var s=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t);var n=this;if(r.IS_IE8)for(var i in n=a.default.createElement("custom"),t.prototype)"constructor"!==i&&(n[i]=t.prototype[i]);n.trackElements_=[],Object.defineProperty(n,"length",{get:function(){return this.trackElements_.length}});for(var o=0,s=e.length;o<s;o++)n.addTrackElement_(e[o]);if(r.IS_IE8)return n}return t.prototype.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)},t.prototype.getTrackElementByTrack_=function(t){for(var e=void 0,n=0,i=this.trackElements_.length;n<i;n++)if(t===this.trackElements_[n].track){e=this.trackElements_[n];break}return e},t.prototype.removeTrackElement_=function(t){for(var e=0,n=this.trackElements_.length;e<n;e++)if(t===this.trackElements_[e]){this.trackElements_.splice(e,1);break}},t}();e.default=s},function(t,e,n){"use strict";e.__esModule=!0;var i=u(n(444)),r=s(n(419)),o=s(n(409)),a=u(n(407));function s(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}function u(t){return t&&t.__esModule?t:{default:t}}function l(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}var c=function(t){function e(){var n,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var s=void 0;if(o.IS_IE8){for(var u in s=a.default.createElement("custom"),i.default.prototype)"constructor"!==u&&(s[u]=i.default.prototype[u]);for(var c in e.prototype)"constructor"!==c&&(s[c]=e.prototype[c])}return l(n=l(this,t.call(this,r,s)),s=n)}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.addTrack_=function(e){t.prototype.addTrack_.call(this,e),e.addEventListener("modechange",r.bind(this,function(){this.trigger("change")}))},e}(i.default);e.default=c},function(t,e,n){"use strict";e.__esModule=!0;var i=a(n(422)),r=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}(n(409)),o=a(n(407));function a(t){return t&&t.__esModule?t:{default:t}}function s(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}var u=function(t){function e(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var a=s(this,t.call(this));if(!i&&(i=a,r.IS_IE8))for(var u in i=o.default.createElement("custom"),e.prototype)"constructor"!==u&&(i[u]=e.prototype[u]);i.tracks_=[],Object.defineProperty(i,"length",{get:function(){return this.tracks_.length}});for(var l=0;l<n.length;l++)i.addTrack_(n[l]);return s(a,i)}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.addTrack_=function(t){var e=this.tracks_.length;""+e in this||Object.defineProperty(this,e,{get:function(){return this.tracks_[e]}}),-1===this.tracks_.indexOf(t)&&(this.tracks_.push(t),this.trigger({track:t,type:"addtrack"}))},e.prototype.removeTrack_=function(t){for(var e=void 0,n=0,i=this.length;n<i;n++)if(this[n]===t){(e=this[n]).off&&e.off(),this.tracks_.splice(n,1);break}e&&this.trigger({track:e,type:"removetrack"})},e.prototype.getTrackById=function(t){for(var e=null,n=0,i=this.length;n<i;n++){var r=this[n];if(r.id===t){e=r;break}}return e},e}(i.default);for(var l in u.prototype.allowedEvents_={change:"change",addtrack:"addtrack",removetrack:"removetrack"},u.prototype.allowedEvents_)u.prototype["on"+l]=null;e.default=u},function(t,e,n){"use strict";e.__esModule=!0;var i=a(n(444)),r=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}(n(409)),o=a(n(407));function a(t){return t&&t.__esModule?t:{default:t}}function s(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}var u=function(t,e){for(var n=0;n<t.length;n++)e.id!==t[n].id&&(t[n].selected=!1)},l=function(t){function e(){var n,a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);for(var l=void 0,c=a.length-1;c>=0;c--)if(a[c].selected){u(a,a[c]);break}if(r.IS_IE8){for(var d in l=o.default.createElement("custom"),i.default.prototype)"constructor"!==d&&(l[d]=i.default.prototype[d]);for(var f in e.prototype)"constructor"!==f&&(l[f]=e.prototype[f])}return(l=n=s(this,t.call(this,a,l))).changing_=!1,Object.defineProperty(l,"selectedIndex",{get:function(){for(var t=0;t<this.length;t++)if(this[t].selected)return t;return-1},set:function(){}}),s(n,l)}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.addTrack_=function(e){var n=this;e.selected&&u(this,e),t.prototype.addTrack_.call(this,e),e.addEventListener&&e.addEventListener("selectedchange",function(){n.changing_||(n.changing_=!0,u(n,e),n.changing_=!1,n.trigger("change"))})},e.prototype.addTrack=function(t){this.addTrack_(t)},e.prototype.removeTrack=function(e){t.prototype.removeTrack_.call(this,e)},e}(i.default);e.default=l},function(t,e,n){"use strict";e.__esModule=!0;var i=a(n(444)),r=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}(n(409)),o=a(n(407));function a(t){return t&&t.__esModule?t:{default:t}}function s(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}var u=function(t,e){for(var n=0;n<t.length;n++)e.id!==t[n].id&&(t[n].enabled=!1)},l=function(t){function e(){var n,a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);for(var l=void 0,c=a.length-1;c>=0;c--)if(a[c].enabled){u(a,a[c]);break}if(r.IS_IE8){for(var d in l=o.default.createElement("custom"),i.default.prototype)"constructor"!==d&&(l[d]=i.default.prototype[d]);for(var f in e.prototype)"constructor"!==f&&(l[f]=e.prototype[f])}return(l=n=s(this,t.call(this,a,l))).changing_=!1,s(n,l)}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.addTrack_=function(e){var n=this;e.enabled&&u(this,e),t.prototype.addTrack_.call(this,e),e.addEventListener&&e.addEventListener("enabledchange",function(){n.changing_||(n.changing_=!0,u(n,e),n.changing_=!1,n.trigger("change"))})},e.prototype.addTrack=function(t){this.addTrack_(t)},e.prototype.removeTrack=function(e){t.prototype.removeTrack_.call(this,e)},e}(i.default);e.default=l},function(t,e,n){var i=n(406),r=t.exports={WebVTT:n(448),VTTCue:n(449),VTTRegion:n(450)};i.vttjs=r,i.WebVTT=r.WebVTT;var o=r.VTTCue,a=r.VTTRegion,s=i.VTTCue,u=i.VTTRegion;r.shim=function(){i.VTTCue=o,i.VTTRegion=a},r.restore=function(){i.VTTCue=s,i.VTTRegion=u},i.VTTCue||r.shim()},function(t,e){var n=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 i(t,e){this.name="ParsingError",this.code=t.code,this.message=e||t.message}function r(t){function e(t,e,n,i){return 3600*(0|t)+60*(0|e)+(0|n)+(0|i)/1e3}var n=t.match(/^(\d+):(\d{2})(:\d{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 o(){this.values=n(null)}function a(t,e,n,i){var r=i?t.split(i):[t];for(var o in r)if("string"==typeof r[o]){var a=r[o].split(n);if(2===a.length)e(a[0],a[1])}}function s(t,e,n){var s=t;function u(){var e=r(t);if(null===e)throw new i(i.Errors.BadTimeStamp,"Malformed timestamp: "+s);return t=t.replace(/^[^\sa-zA-Z-]+/,""),e}function l(){t=t.replace(/^\s+/,"")}if(l(),e.startTime=u(),l(),"--\x3e"!==t.substr(0,3))throw new i(i.Errors.BadTimeStamp,"Malformed time stamp (time stamps must be separated by '--\x3e'): "+s);t=t.substr(3),l(),e.endTime=u(),l(),function(t,e){var i=new o;a(t,function(t,e){switch(t){case"region":for(var r=n.length-1;r>=0;r--)if(n[r].id===e){i.set(t,n[r].region);break}break;case"vertical":i.alt(t,e,["rl","lr"]);break;case"line":var o=e.split(","),a=o[0];i.integer(t,a),i.percent(t,a)&&i.set("snapToLines",!1),i.alt(t,a,["auto"]),2===o.length&&i.alt("lineAlign",o[1],["start","middle","end"]);break;case"position":o=e.split(","),i.percent(t,o[0]),2===o.length&&i.alt("positionAlign",o[1],["start","middle","end"]);break;case"size":i.percent(t,e);break;case"align":i.alt(t,e,["start","middle","end","left","right"])}},/:/,/\s/),e.region=i.get("region",null),e.vertical=i.get("vertical",""),e.line=i.get("line","auto"),e.lineAlign=i.get("lineAlign","start"),e.snapToLines=i.get("snapToLines",!0),e.size=i.get("size",100),e.align=i.get("align","middle"),e.position=i.get("position",{start:0,left:0,middle:50,end:100,right:100},e.align),e.positionAlign=i.get("positionAlign",{start:"start",left:"start",middle:"middle",end:"end",right:"end"},e.align)}(t,e)}i.prototype=n(Error.prototype),i.prototype.constructor=i,i.Errors={BadSignature:{code:0,message:"Malformed WebVTT signature."},BadTimeStamp:{code:1,message:"Malformed time stamp."}},o.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 i=0;i<n.length;++i)if(e===n[i]){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 u={"&amp;":"&","&lt;":"<","&gt;":">","&lrm;":"‎","&rlm;":"‏","&nbsp;":" "},l={c:"span",i:"i",b:"b",u:"u",ruby:"ruby",rt:"rt",v:"span",lang:"span"},c={v:"title",lang:"lang"},d={rt:"ruby"};function f(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 i(t){return u[t]}function o(t){for(;g=t.match(/&(amp|lt|gt|lrm|rlm|nbsp);/);)t=t.replace(g[0],i);return t}function a(t,e){return!d[e.localName]||d[e.localName]===t.localName}function s(e,n){var i=l[e];if(!i)return null;var r=t.document.createElement(i);r.localName=i;var o=c[e];return o&&n&&(r[o]=n.trim()),r}for(var f,h=t.document.createElement("div"),p=h,v=[];null!==(f=n());)if("<"!==f[0])p.appendChild(t.document.createTextNode(o(f)));else{if("/"===f[1]){v.length&&v[v.length-1]===f.substr(2).replace(">","")&&(v.pop(),p=p.parentNode);continue}var y,m=r(f.substr(1,f.length-2));if(m){y=t.document.createProcessingInstruction("timestamp",m),p.appendChild(y);continue}var g=f.match(/^<([^.\s/0-9>]+)(\.[^\s\\>]+)?([^>\\]+)?(\\?)>?$/);if(!g)continue;if(!(y=s(g[1],g[3])))continue;if(!a(p,y))continue;g[2]&&(y.className=g[2].substr(1).replace("."," ")),v.push(g[1]),p.appendChild(y),p=y}return h}var h=[[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 p(t){for(var e=0;e<h.length;e++){var n=h[e];if(t>=n[0]&&t<=n[1])return!0}return!1}function v(){}function y(t,e,n){var i=/MSIE\s8\.0/.test(navigator.userAgent),r="rgba(255, 255, 255, 1)",o="rgba(0, 0, 0, 0.8)";i&&(r="rgb(255, 255, 255)",o="rgb(0, 0, 0)"),v.call(this),this.cue=e,this.cueDiv=f(t,e.text);var a={color:r,backgroundColor:o,position:"relative",left:0,right:0,top:0,bottom:0,display:"inline"};i||(a.writingMode=""===e.vertical?"horizontal-tb":"lr"===e.vertical?"vertical-lr":"vertical-rl",a.unicodeBidi="plaintext"),this.applyStyles(a,this.cueDiv),this.div=t.document.createElement("div"),a={textAlign:"middle"===e.align?"center":e.align,font:n.font,whiteSpace:"pre-line",position:"absolute"},i||(a.direction=function(t){var e=[],n="";if(!t||!t.childNodes)return"ltr";function i(t,e){for(var n=e.childNodes.length-1;n>=0;n--)t.push(e.childNodes[n])}function r(t){if(!t||!t.length)return null;var e=t.pop(),n=e.textContent||e.innerText;if(n){var o=n.match(/^.*(\n|\r)/);return o?(t.length=0,o[0]):n}return"ruby"===e.tagName?r(t):e.childNodes?(i(t,e),r(t)):void 0}for(i(e,t);n=r(e);)for(var o=0;o<n.length;o++)if(p(n.charCodeAt(o)))return"rtl";return"ltr"}(this.cueDiv),a.writingMode=""===e.vertical?"horizontal-tb":"lr"===e.vertical?"vertical-lr":"vertical-rl".stylesunicodeBidi="plaintext"),this.applyStyles(a),this.div.appendChild(this.cueDiv);var s=0;switch(e.positionAlign){case"start":s=e.position;break;case"middle":s=e.position-e.size/2;break;case"end":s=e.position-e.size}""===e.vertical?this.applyStyles({left:this.formatStyle(s,"%"),width:this.formatStyle(e.size,"%")}):this.applyStyles({top:this.formatStyle(s,"%"),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 m(t){var e,n,i,r,o=/MSIE\s8\.0/.test(navigator.userAgent);if(t.div){n=t.div.offsetHeight,i=t.div.offsetWidth,r=t.div.offsetTop;var a=(a=t.div.childNodes)&&(a=a[0])&&a.getClientRects&&a.getClientRects();t=t.div.getBoundingClientRect(),e=a?Math.max(a[0]&&a[0].height||0,t.height/a.length):0}this.left=t.left,this.right=t.right,this.top=t.top||r,this.height=t.height||n,this.bottom=t.bottom||r+(t.height||n),this.width=t.width||i,this.lineHeight=void 0!==e?e:t.lineHeight,o&&!this.lineHeight&&(this.lineHeight=13)}function g(t,e,n,i){var r=new m(e),o=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,i=0,r=0;r<n.length&&n[r]!==e;r++)"showing"===n[r].mode&&i++;return-1*++i}(o),s=[];if(o.snapToLines){var u;switch(o.vertical){case"":s=["+y","-y"],u="height";break;case"rl":s=["+x","-x"],u="width";break;case"lr":s=["-x","+x"],u="width"}var l=r.lineHeight,c=l*Math.round(a),d=n[u]+l,f=s[0];Math.abs(c)>d&&(c=c<0?-1:1,c*=Math.ceil(d/l)*l),a<0&&(c+=""===o.vertical?n.height:n.width,s=s.reverse()),r.move(f,c)}else{var h=r.lineHeight/n.height*100;switch(o.lineAlign){case"middle":a-=h/2;break;case"end":a-=h}switch(o.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"],r=new m(e)}var p=function(t,e){for(var r,o=new m(t),a=1,s=0;s<e.length;s++){for(;t.overlapsOppositeAxis(n,e[s])||t.within(n)&&t.overlapsAny(i);)t.move(e[s]);if(t.within(n))return t;var u=t.intersectPercentage(n);a>u&&(r=new m(t),a=u),t=new m(o)}return r||o}(r,s);e.move(p.toCSSCompatValues(n))}function b(){}v.prototype.applyStyles=function(t,e){for(var n in e=e||this.div,t)t.hasOwnProperty(n)&&(e.style[n]=t[n])},v.prototype.formatStyle=function(t,e){return 0===t?0:t+e},y.prototype=n(v.prototype),y.prototype.constructor=y,m.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}},m.prototype.overlaps=function(t){return this.left<t.right&&this.right>t.left&&this.top<t.bottom&&this.bottom>t.top},m.prototype.overlapsAny=function(t){for(var e=0;e<t.length;e++)if(this.overlaps(t[e]))return!0;return!1},m.prototype.within=function(t){return this.top>=t.top&&this.bottom<=t.bottom&&this.left>=t.left&&this.right<=t.right},m.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}},m.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)},m.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}},m.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,i=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||i,height:t.height||e,bottom:t.bottom||i+(t.height||e),width:t.width||n}},b.StringDecoder=function(){return{decode:function(t){if(!t)return"";if("string"!=typeof t)throw new Error("Error - expected string data.");return decodeURIComponent(encodeURIComponent(t))}}},b.convertCueToDOMTree=function(t,e){return t&&e?f(t,e):null};b.processCues=function(t,e,n){if(!t||!e||!n)return null;for(;n.firstChild;)n.removeChild(n.firstChild);var i=t.document.createElement("div");if(i.style.position="absolute",i.style.left="0",i.style.right="0",i.style.top="0",i.style.bottom="0",i.style.margin="1.5%",n.appendChild(i),function(t){for(var e=0;e<t.length;e++)if(t[e].hasBeenReset||!t[e].displayState)return!0;return!1}(e)){var r=[],o=m.getSimpleBoxPosition(i),a={font:Math.round(.05*o.height*100)/100+"px sans-serif"};!function(){for(var n,s,u=0;u<e.length;u++)s=e[u],n=new y(t,s,a),i.appendChild(n.div),g(0,n,o,r),s.displayState=n.div,r.push(m.getSimpleBoxPosition(n))}()}else for(var s=0;s<e.length;s++)i.appendChild(e[s].displayState)},b.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=[]},b.Parser.prototype={reportOrThrowError:function(t){if(!(t instanceof i))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 i=t.substr(0,n);return"\r"===t[n]&&++n,"\n"===t[n]&&++n,e.buffer=t.substr(n),i}function u(t){t.match(/X-TIMESTAMP-MAP/)?a(t,function(t,n){switch(t){case"X-TIMESTAMP-MAP":i=n,s=new o,a(i,function(t,e){switch(t){case"MPEGT":s.integer(t+"S",e);break;case"LOCA":s.set(t+"L",r(e))}},/[^\d]:/,/,/),e.ontimestampmap&&e.ontimestampmap({MPEGTS:s.get("MPEGTS"),LOCAL:s.get("LOCAL")})}var i,s},/=/):a(t,function(t,n){switch(t){case"Region":!function(t){var n=new o;if(a(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 i=e.split(",");if(2!==i.length)break;var r=new o;if(r.percent("x",i[0]),r.percent("y",i[1]),!r.has("x")||!r.has("y"))break;n.set(t+"X",r.get("x")),n.set(t+"Y",r.get("y"));break;case"scroll":n.alt(t,e,["up"])}},/=/,/\s/),n.has("id")){var i=new(e.vttjs.VTTRegion||e.window.VTTRegion);i.width=n.get("width",100),i.lines=n.get("lines",3),i.regionAnchorX=n.get("regionanchorX",0),i.regionAnchorY=n.get("regionanchorY",100),i.viewportAnchorX=n.get("viewportanchorX",0),i.viewportAnchorY=n.get("viewportanchorY",100),i.scroll=n.get("scroll",""),e.onregion&&e.onregion(i),e.regionList.push({id:n.get("id"),region:i})}}(n)}},/:/)}t&&(e.buffer+=e.decoder.decode(t,{stream:!0}));try{var l;if("INITIAL"===e.state){if(!/\r\n|\n/.test(e.buffer))return this;var c=(l=n()).match(/^WEBVTT([ \t].*)?$/);if(!c||!c[0])throw new i(i.Errors.BadSignature);e.state="HEADER"}for(var d=!1;e.buffer;){if(!/\r\n|\n/.test(e.buffer))return this;switch(d?d=!1:l=n(),e.state){case"HEADER":/:/.test(l)?u(l):l||(e.state="ID");continue;case"NOTE":l||(e.state="ID");continue;case"ID":if(/^NOTE($|[ \t])/.test(l)){e.state="NOTE";break}if(!l)continue;if(e.cue=new(e.vttjs.VTTCue||e.window.VTTCue)(0,0,""),e.state="CUE",-1===l.indexOf("--\x3e")){e.cue.id=l;continue}case"CUE":try{s(l,e.cue,e.regionList)}catch(t){e.reportOrThrowError(t),e.cue=null,e.state="BADCUE";continue}e.state="CUETEXT";continue;case"CUETEXT":var f=-1!==l.indexOf("--\x3e");if(!l||f&&(d=!0)){e.oncue&&e.oncue(e.cue),e.cue=null,e.state="ID";continue}e.cue.text&&(e.cue.text+="\n"),e.cue.text+=l;continue;case"BADCUE":l||(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(){try{if(this.buffer+=this.decoder.decode(),(this.cue||"HEADER"===this.state)&&(this.buffer+="\n\n",this.parse()),"INITIAL"===this.state)throw new i(i.Errors.BadSignature)}catch(t){this.reportOrThrowError(t)}return this.onflush&&this.onflush(),this}},t.exports=b},function(t,e){var n="auto",i={"":!0,lr:!0,rl:!0},r={start:!0,middle:!0,end:!0,left:!0,right:!0};function o(t){return"string"==typeof t&&(!!r[t.toLowerCase()]&&t.toLowerCase())}function a(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)t[i]=n[i]}return t}function s(t,e,r){var s=this,u=/MSIE\s8\.0/.test(navigator.userAgent),l={};u?s=document.createElement("custom"):l.enumerable=!0,s.hasBeenReset=!1;var c="",d=!1,f=t,h=e,p=r,v=null,y="",m=!0,g="auto",b="start",_=50,T="middle",E=50,w="middle";if(Object.defineProperty(s,"id",a({},l,{get:function(){return c},set:function(t){c=""+t}})),Object.defineProperty(s,"pauseOnExit",a({},l,{get:function(){return d},set:function(t){d=!!t}})),Object.defineProperty(s,"startTime",a({},l,{get:function(){return f},set:function(t){if("number"!=typeof t)throw new TypeError("Start time must be set to a number.");f=t,this.hasBeenReset=!0}})),Object.defineProperty(s,"endTime",a({},l,{get:function(){return h},set:function(t){if("number"!=typeof t)throw new TypeError("End time must be set to a number.");h=t,this.hasBeenReset=!0}})),Object.defineProperty(s,"text",a({},l,{get:function(){return p},set:function(t){p=""+t,this.hasBeenReset=!0}})),Object.defineProperty(s,"region",a({},l,{get:function(){return v},set:function(t){v=t,this.hasBeenReset=!0}})),Object.defineProperty(s,"vertical",a({},l,{get:function(){return y},set:function(t){var e=function(t){return"string"==typeof t&&!!i[t.toLowerCase()]&&t.toLowerCase()}(t);if(!1===e)throw new SyntaxError("An invalid or illegal string was specified.");y=e,this.hasBeenReset=!0}})),Object.defineProperty(s,"snapToLines",a({},l,{get:function(){return m},set:function(t){m=!!t,this.hasBeenReset=!0}})),Object.defineProperty(s,"line",a({},l,{get:function(){return g},set:function(t){if("number"!=typeof t&&t!==n)throw new SyntaxError("An invalid number or illegal string was specified.");g=t,this.hasBeenReset=!0}})),Object.defineProperty(s,"lineAlign",a({},l,{get:function(){return b},set:function(t){var e=o(t);if(!e)throw new SyntaxError("An invalid or illegal string was specified.");b=e,this.hasBeenReset=!0}})),Object.defineProperty(s,"position",a({},l,{get:function(){return _},set:function(t){if(t<0||t>100)throw new Error("Position must be between 0 and 100.");_=t,this.hasBeenReset=!0}})),Object.defineProperty(s,"positionAlign",a({},l,{get:function(){return T},set:function(t){var e=o(t);if(!e)throw new SyntaxError("An invalid or illegal string was specified.");T=e,this.hasBeenReset=!0}})),Object.defineProperty(s,"size",a({},l,{get:function(){return E},set:function(t){if(t<0||t>100)throw new Error("Size must be between 0 and 100.");E=t,this.hasBeenReset=!0}})),Object.defineProperty(s,"align",a({},l,{get:function(){return w},set:function(t){var e=o(t);if(!e)throw new SyntaxError("An invalid or illegal string was specified.");w=e,this.hasBeenReset=!0}})),s.displayState=void 0,u)return s}s.prototype.getCueAsHTML=function(){return WebVTT.convertCueToDOMTree(window,this.text)},t.exports=s},function(t,e){var n={"":!0,up:!0};function i(t){return"number"==typeof t&&t>=0&&t<=100}t.exports=function(){var t=100,e=3,r=0,o=100,a=0,s=100,u="";Object.defineProperties(this,{width:{enumerable:!0,get:function(){return t},set:function(e){if(!i(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 o},set:function(t){if(!i(t))throw new Error("RegionAnchorX must be between 0 and 100.");o=t}},regionAnchorX:{enumerable:!0,get:function(){return r},set:function(t){if(!i(t))throw new Error("RegionAnchorY must be between 0 and 100.");r=t}},viewportAnchorY:{enumerable:!0,get:function(){return s},set:function(t){if(!i(t))throw new Error("ViewportAnchorY must be between 0 and 100.");s=t}},viewportAnchorX:{enumerable:!0,get:function(){return a},set:function(t){if(!i(t))throw new Error("ViewportAnchorX must be between 0 and 100.");a=t}},scroll:{enumerable:!0,get:function(){return u},set:function(t){var e=function(t){return"string"==typeof t&&!!n[t.toLowerCase()]&&t.toLowerCase()}(t);if(!1===e)throw new SyntaxError("An invalid or illegal string was specified.");u=e}}})}},function(t,e,n){"use strict";e.__esModule=!0;var i=a(n(418)),r=a(n(431)),o=a(n(420));function a(t){return t&&t.__esModule?t:{default:t}}var s=function(t){function e(n,a,s){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var u=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,t.call(this,n,a,s));if(a.playerOptions.sources&&0!==a.playerOptions.sources.length)n.src(a.playerOptions.sources);else for(var l=0,c=a.playerOptions.techOrder;l<c.length;l++){var d=(0,o.default)(c[l]),f=r.default.getTech(d);if(d||(f=i.default.getComponent(d)),f&&f.isSupported()){n.loadTech_(d);break}}return u}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e}(i.default);i.default.registerComponent("MediaLoader",s),e.default=s},function(t,e,n){"use strict";e.__esModule=!0;var i=f(n(431)),r=d(n(410)),o=d(n(437)),a=n(424),s=f(n(453)),u=f(n(418)),l=f(n(406)),c=n(413);function d(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}function f(t){return t&&t.__esModule?t:{default:t}}var h=l.default.navigator,p=function(t){function e(n,i){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var r=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,t.call(this,n,i));return n.source&&r.ready(function(){this.setSource(n.source)},!0),n.startTime&&r.ready(function(){this.load(),this.play(),this.currentTime(n.startTime)},!0),l.default.videojs=l.default.videojs||{},l.default.videojs.Flash=l.default.videojs.Flash||{},l.default.videojs.Flash.onReady=e.onReady,l.default.videojs.Flash.onEvent=e.onEvent,l.default.videojs.Flash.onError=e.onError,r.on("seeked",function(){this.lastSeekTarget_=void 0}),r}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.createEl=function(){var t=this.options_;if(!t.swf){t.swf="//vjs.zencdn.net/swf/5.4.1/video-js.swf"}var n=t.techId,i=(0,c.assign)({readyFunction:"videojs.Flash.onReady",eventProxyFunction:"videojs.Flash.onEvent",errorEventProxyFunction:"videojs.Flash.onError",autoplay:t.autoplay,preload:t.preload,loop:t.loop,muted:t.muted},t.flashVars),r=(0,c.assign)({wmode:"opaque",bgcolor:"#000000"},t.params),o=(0,c.assign)({id:n,name:n,class:"vjs-tech"},t.attributes);return this.el_=e.embed(t.swf,i,r,o),this.el_.tech=this,this.el_},e.prototype.play=function(){this.ended()&&this.setCurrentTime(0),this.el_.vjs_play()},e.prototype.pause=function(){this.el_.vjs_pause()},e.prototype.src=function(t){return void 0===t?this.currentSrc():this.setSrc(t)},e.prototype.setSrc=function(t){var e=this;t=o.getAbsoluteURL(t),this.el_.vjs_src(t),this.autoplay()&&this.setTimeout(function(){return e.play()},0)},e.prototype.seeking=function(){return void 0!==this.lastSeekTarget_},e.prototype.setCurrentTime=function(e){var n=this.seekable();n.length&&(e=(e=e>n.start(0)?e:n.start(0))<n.end(n.length-1)?e:n.end(n.length-1),this.lastSeekTarget_=e,this.trigger("seeking"),this.el_.vjs_setProperty("currentTime",e),t.prototype.setCurrentTime.call(this))},e.prototype.currentTime=function(){return this.seeking()?this.lastSeekTarget_||0:this.el_.vjs_getProperty("currentTime")},e.prototype.currentSrc=function(){return this.currentSource_?this.currentSource_.src:this.el_.vjs_getProperty("currentSrc")},e.prototype.duration=function(){if(0===this.readyState())return NaN;var t=this.el_.vjs_getProperty("duration");return t>=0?t:1/0},e.prototype.load=function(){this.el_.vjs_load()},e.prototype.poster=function(){this.el_.vjs_getProperty("poster")},e.prototype.setPoster=function(){},e.prototype.seekable=function(){var t=this.duration();return 0===t?(0,a.createTimeRange)():(0,a.createTimeRange)(0,t)},e.prototype.buffered=function(){var t=this.el_.vjs_getProperty("buffered");return 0===t.length?(0,a.createTimeRange)():(0,a.createTimeRange)(t[0][0],t[0][1])},e.prototype.supportsFullScreen=function(){return!1},e.prototype.enterFullScreen=function(){return!1},e.prototype.getVideoPlaybackQuality=function(){var t=this.el_.vjs_getProperty("getVideoPlaybackQuality");return l.default.performance&&"function"==typeof l.default.performance.now?t.creationTime=l.default.performance.now():l.default.performance&&l.default.performance.timing&&"number"==typeof l.default.performance.timing.navigationStart&&(t.creationTime=l.default.Date.now()-l.default.performance.timing.navigationStart),t},e}(i.default),v=p.prototype,y="rtmpConnection,rtmpStream,preload,defaultPlaybackRate,playbackRate,autoplay,loop,mediaGroup,controller,controls,volume,muted,defaultMuted".split(","),m="networkState,readyState,initialTime,startOffsetTime,paused,ended,videoWidth,videoHeight".split(",");function g(t){var e=t.charAt(0).toUpperCase()+t.slice(1);v["set"+e]=function(e){return this.el_.vjs_setProperty(t,e)}}function b(t){v[t]=function(){return this.el_.vjs_getProperty(t)}}for(var _=0;_<y.length;_++)b(y[_]),g(y[_]);for(var T=0;T<m.length;T++)b(m[T]);p.isSupported=function(){return p.version()[0]>=10},i.default.withSourceHandlers(p),p.nativeSourceHandler={},p.nativeSourceHandler.canPlayType=function(t){return t in p.formats?"maybe":""},p.nativeSourceHandler.canHandleSource=function(t,e){var n,i,r=void 0;return t.type?r=t.type.replace(/;.*/,"").toLowerCase():(n=t.src,r=(i=o.getFileExtension(n))?"video/"+i:""),p.nativeSourceHandler.canPlayType(r)},p.nativeSourceHandler.handleSource=function(t,e,n){e.setSrc(t.src)},p.nativeSourceHandler.dispose=function(){},p.registerSourceHandler(p.nativeSourceHandler),p.formats={"video/flv":"FLV","video/x-flv":"FLV","video/mp4":"MP4","video/m4v":"MP4"},p.onReady=function(t){var e=r.getEl(t),n=e&&e.tech;n&&n.el()&&p.checkReady(n)},p.checkReady=function(t){t.el()&&(t.el().vjs_getProperty?t.triggerReady():this.setTimeout(function(){p.checkReady(t)},50))},p.onEvent=function(t,e){var n=r.getEl(t).tech,i=Array.prototype.slice.call(arguments,2);n.setTimeout(function(){n.trigger(e,i)},1)},p.onError=function(t,e){var n=r.getEl(t).tech;if("srcnotfound"===e)return n.error(4);n.error("FLASH: "+e)},p.version=function(){var t="0,0,0";try{t=new l.default.ActiveXObject("ShockwaveFlash.ShockwaveFlash").GetVariable("$version").replace(/\D+/g,",").match(/^,?(.+),?$/)[1]}catch(e){try{h.mimeTypes["application/x-shockwave-flash"].enabledPlugin&&(t=(h.plugins["Shockwave Flash 2.0"]||h.plugins["Shockwave Flash"]).description.replace(/\D+/g,",").match(/^,?(.+),?$/)[1])}catch(t){}}return t.split(",")},p.embed=function(t,e,n,i){var o=p.getEmbedCode(t,e,n,i);return r.createEl("div",{innerHTML:o}).childNodes[0]},p.getEmbedCode=function(t,e,n,i){var r="",o="",a="";return e&&Object.getOwnPropertyNames(e).forEach(function(t){r+=t+"="+e[t]+"&amp;"}),n=(0,c.assign)({movie:t,flashvars:r,allowScriptAccess:"always",allowNetworking:"all"},n),Object.getOwnPropertyNames(n).forEach(function(t){o+='<param name="'+t+'" value="'+n[t]+'" />'}),i=(0,c.assign)({data:t,width:"100%",height:"100%"},i),Object.getOwnPropertyNames(i).forEach(function(t){a+=t+'="'+i[t]+'" '}),'<object type="application/x-shockwave-flash" '+a+">"+o+"</object>"},(0,s.default)(p),u.default.registerComponent("Flash",p),i.default.registerTech("Flash",p),e.default=p},function(t,e){"use strict";e.__esModule=!0,e.default=function(t){return t.streamingFormats={"rtmp/mp4":"MP4","rtmp/flv":"FLV"},t.streamFromParts=function(t,e){return t+"&"+e},t.streamToParts=function(t){var e={connection:"",stream:""};if(!t)return e;var n=t.search(/&(?!\w+=)/),i=void 0;return-1!==n?i=n+1:0===(n=i=t.lastIndexOf("/")+1)&&(n=i=t.length),e.connection=t.substring(0,n),e.stream=t.substring(i,t.length),e},t.isStreamingType=function(e){return e in t.streamingFormats},t.RTMP_RE=/^rtmp[set]?:\/\//i,t.isStreamingSrc=function(e){return t.RTMP_RE.test(e)},t.rtmpSourceHandler={},t.rtmpSourceHandler.canPlayType=function(e){return t.isStreamingType(e)?"maybe":""},t.rtmpSourceHandler.canHandleSource=function(e,n){var i=t.rtmpSourceHandler.canPlayType(e.type);return i||(t.isStreamingSrc(e.src)?"maybe":"")},t.rtmpSourceHandler.handleSource=function(e,n,i){var r=t.streamToParts(e.src);n.setRtmpConnection(r.connection),n.setRtmpStream(r.stream)},t.registerSourceHandler(t.rtmpSourceHandler),t}},function(t,e,n){"use strict";e.__esModule=!0;var i=l(n(455)),r=l(n(418)),o=u(n(419)),a=u(n(410)),s=u(n(409));function u(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}function l(t){return t&&t.__esModule?t:{default:t}}var c=function(t){function e(n,i){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var r=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,t.call(this,n,i));return r.update(),n.on("posterchange",o.bind(r,r.update)),r}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.dispose=function(){this.player().off("posterchange",this.update),t.prototype.dispose.call(this)},e.prototype.createEl=function(){var t=a.createEl("div",{className:"vjs-poster",tabIndex:-1});return s.BACKGROUND_SIZE_SUPPORTED||(this.fallbackImg_=a.createEl("img"),t.appendChild(this.fallbackImg_)),t},e.prototype.update=function(t){var e=this.player().poster();this.setSrc(e),e?this.show():this.hide()},e.prototype.setSrc=function(t){if(this.fallbackImg_)this.fallbackImg_.src=t;else{var e="";t&&(e='url("'+t+'")'),this.el_.style.backgroundImage=e}},e.prototype.handleClick=function(t){this.player_.controls()&&(this.player_.paused()?this.player_.play():this.player_.pause())},e}(i.default);r.default.registerComponent("PosterImage",c),e.default=c},function(t,e,n){"use strict";e.__esModule=!0;var i=d(n(418)),r=c(n(410)),o=c(n(416)),a=c(n(419)),s=d(n(412)),u=d(n(407)),l=n(413);function c(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}function d(t){return t&&t.__esModule?t:{default:t}}var f=function(t){function e(n,i){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var r=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,t.call(this,n,i));return r.emitTapEvents(),r.enable(),r}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.createEl=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"div",n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};n=(0,l.assign)({className:this.buildCSSClass(),tabIndex:0},n),"button"===e&&s.default.error("Creating a ClickableComponent with an HTML element of "+e+" is not supported; use a Button instead."),i=(0,l.assign)({role:"button","aria-live":"polite"},i),this.tabIndex_=n.tabIndex;var r=t.prototype.createEl.call(this,e,n,i);return this.createControlTextEl(r),r},e.prototype.createControlTextEl=function(t){return this.controlTextEl_=r.createEl("span",{className:"vjs-control-text"}),t&&t.appendChild(this.controlTextEl_),this.controlText(this.controlText_,t),this.controlTextEl_},e.prototype.controlText=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.el();if(!t)return this.controlText_||"Need Text";var n=this.localize(t);return this.controlText_=t,this.controlTextEl_.innerHTML=n,this.nonIconControl||e.setAttribute("title",n),this},e.prototype.buildCSSClass=function(){return"vjs-control vjs-button "+t.prototype.buildCSSClass.call(this)},e.prototype.enable=function(){return this.removeClass("vjs-disabled"),this.el_.setAttribute("aria-disabled","false"),void 0!==this.tabIndex_&&this.el_.setAttribute("tabIndex",this.tabIndex_),this.off(["tap","click"],this.handleClick),this.off("focus",this.handleFocus),this.off("blur",this.handleBlur),this.on(["tap","click"],this.handleClick),this.on("focus",this.handleFocus),this.on("blur",this.handleBlur),this},e.prototype.disable=function(){return this.addClass("vjs-disabled"),this.el_.setAttribute("aria-disabled","true"),void 0!==this.tabIndex_&&this.el_.removeAttribute("tabIndex"),this.off(["tap","click"],this.handleClick),this.off("focus",this.handleFocus),this.off("blur",this.handleBlur),this},e.prototype.handleClick=function(t){},e.prototype.handleFocus=function(t){o.on(u.default,"keydown",a.bind(this,this.handleKeyPress))},e.prototype.handleKeyPress=function(e){32===e.which||13===e.which?(e.preventDefault(),this.handleClick(e)):t.prototype.handleKeyPress&&t.prototype.handleKeyPress.call(this,e)},e.prototype.handleBlur=function(t){o.off(u.default,"keydown",a.bind(this,this.handleKeyPress))},e}(i.default);i.default.registerComponent("ClickableComponent",f),e.default=f},function(t,e,n){"use strict";e.__esModule=!0;var i=a(n(418)),r=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}(n(419)),o=a(n(406));function a(t){return t&&t.__esModule?t:{default:t}}var s={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 u(t,e){return"rgba("+parseInt(t[1]+t[1],16)+","+parseInt(t[2]+t[2],16)+","+parseInt(t[3]+t[3],16)+","+e+")"}function l(t,e,n){try{t.style[e]=n}catch(t){return}}var c=function(t){function e(n,i,o){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var a=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,t.call(this,n,i,o));return n.on("loadstart",r.bind(a,a.toggleDisplay)),n.on("texttrackchange",r.bind(a,a.updateDisplay)),n.ready(r.bind(a,function(){if(n.tech_&&n.tech_.featuresNativeTextTracks)this.hide();else{n.on("fullscreenchange",r.bind(this,this.updateDisplay));for(var t=this.options_.playerOptions.tracks||[],e=0;e<t.length;e++)this.player_.addRemoteTextTrack(t[e],!0);var i={captions:1,subtitles:1},o=this.player_.textTracks(),a=void 0,s=void 0;if(o){for(var u=0;u<o.length;u++){var l=o[u];l.default&&("descriptions"!==l.kind||a?l.kind in i&&!s&&(s=l):a=l)}s?s.mode="showing":a&&(a.mode="showing")}}})),a}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.toggleDisplay=function(){this.player_.tech_&&this.player_.tech_.featuresNativeTextTracks?this.hide():this.show()},e.prototype.createEl=function(){return t.prototype.createEl.call(this,"div",{className:"vjs-text-track-display"},{"aria-live":"off","aria-atomic":"true"})},e.prototype.clearDisplay=function(){"function"==typeof o.default.WebVTT&&o.default.WebVTT.processCues(o.default,[],this.el_)},e.prototype.updateDisplay=function(){var t=this.player_.textTracks();if(this.clearDisplay(),t){for(var e=null,n=null,i=t.length;i--;){var r=t[i];"showing"===r.mode&&("descriptions"===r.kind?e=r:n=r)}n?("off"!==this.getAttribute("aria-live")&&this.setAttribute("aria-live","off"),this.updateForTrack(n)):e&&("assertive"!==this.getAttribute("aria-live")&&this.setAttribute("aria-live","assertive"),this.updateForTrack(e))}},e.prototype.updateForTrack=function(t){if("function"==typeof o.default.WebVTT&&t.activeCues){for(var e=this.player_.textTrackSettings.getValues(),n=[],i=0;i<t.activeCues.length;i++)n.push(t.activeCues[i]);o.default.WebVTT.processCues(o.default,n,this.el_);for(var r=n.length;r--;){var a=n[r];if(a){var c=a.displayState;if(e.color&&(c.firstChild.style.color=e.color),e.textOpacity&&l(c.firstChild,"color",u(e.color||"#fff",e.textOpacity)),e.backgroundColor&&(c.firstChild.style.backgroundColor=e.backgroundColor),e.backgroundOpacity&&l(c.firstChild,"backgroundColor",u(e.backgroundColor||"#000",e.backgroundOpacity)),e.windowColor&&(e.windowOpacity?l(c,"backgroundColor",u(e.windowColor,e.windowOpacity)):c.style.backgroundColor=e.windowColor),e.edgeStyle&&("dropshadow"===e.edgeStyle?c.firstChild.style.textShadow="2px 2px 3px #222, 2px 2px 4px #222, 2px 2px 5px #222":"raised"===e.edgeStyle?c.firstChild.style.textShadow="1px 1px #222, 2px 2px #222, 3px 3px #222":"depressed"===e.edgeStyle?c.firstChild.style.textShadow="1px 1px #ccc, 0 1px #ccc, -1px -1px #222, 0 -1px #222":"uniform"===e.edgeStyle&&(c.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 d=o.default.parseFloat(c.style.fontSize);c.style.fontSize=d*e.fontPercent+"px",c.style.height="auto",c.style.top="auto",c.style.bottom="2px"}e.fontFamily&&"default"!==e.fontFamily&&("small-caps"===e.fontFamily?c.firstChild.style.fontVariant="small-caps":c.firstChild.style.fontFamily=s[e.fontFamily])}}}},e}(i.default);i.default.registerComponent("TextTrackDisplay",c),e.default=c},function(t,e,n){"use strict";e.__esModule=!0;var i,r=n(418),o=(i=r)&&i.__esModule?i:{default:i};var a=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,t.apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.createEl=function(){return t.prototype.createEl.call(this,"div",{className:"vjs-loading-spinner",dir:"ltr"})},e}(o.default);o.default.registerComponent("LoadingSpinner",a),e.default=a},function(t,e,n){"use strict";e.__esModule=!0;var i=o(n(459)),r=o(n(418));function o(t){return t&&t.__esModule?t:{default:t}}var a=function(t){function e(n,i){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var r=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,t.call(this,n,i));return r.mouseused_=!1,r.on("mousedown",r.handleMouseDown),r}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.buildCSSClass=function(){return"vjs-big-play-button"},e.prototype.handleClick=function(t){var e=this.player_.play();if(!(this.mouseused_&&t.clientX&&t.clientY)){var n=this.player_.getChild("controlBar"),i=n&&n.getChild("playToggle");if(i){var r=function(){return i.focus()};if(e&&e.then){e.then(r,function(){})}else this.setTimeout(r,1)}else this.player_.focus()}},e.prototype.handleKeyPress=function(e){this.mouseused_=!1,t.prototype.handleKeyPress.call(this,e)},e.prototype.handleMouseDown=function(t){this.mouseused_=!0},e}(i.default);a.prototype.controlText_="Play Video",r.default.registerComponent("BigPlayButton",a),e.default=a},function(t,e,n){"use strict";e.__esModule=!0;var i=s(n(455)),r=s(n(418)),o=s(n(412)),a=n(413);function s(t){return t&&t.__esModule?t:{default:t}}var u=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,t.apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.createEl=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"button",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};e=(0,a.assign)({className:this.buildCSSClass()},e),"button"!==t&&(o.default.warn("Creating a Button with an HTML element of "+t+" is deprecated; use ClickableComponent instead."),e=(0,a.assign)({tabIndex:0},e),n=(0,a.assign)({role:"button"},n)),n=(0,a.assign)({type:"button","aria-live":"polite"},n);var i=r.default.prototype.createEl.call(this,t,e,n);return this.createControlTextEl(i),i},e.prototype.addChild=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this.constructor.name;return o.default.warn("Adding an actionable (user controllable) child to a Button ("+n+") is not supported; use a ClickableComponent instead."),r.default.prototype.addChild.call(this,t,e)},e.prototype.enable=function(){t.prototype.enable.call(this),this.el_.removeAttribute("disabled")},e.prototype.disable=function(){t.prototype.disable.call(this),this.el_.setAttribute("disabled","disabled")},e.prototype.handleKeyPress=function(e){32!==e.which&&13!==e.which&&t.prototype.handleKeyPress.call(this,e)},e}(i.default);r.default.registerComponent("Button",u),e.default=u},function(t,e,n){"use strict";e.__esModule=!0;var i=o(n(459)),r=o(n(418));function o(t){return t&&t.__esModule?t:{default:t}}var a=function(t){function e(n,i){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var r=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,t.call(this,n,i));return r.controlText(i&&i.controlText||r.localize("Close")),r}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.buildCSSClass=function(){return"vjs-close-button "+t.prototype.buildCSSClass.call(this)},e.prototype.handleClick=function(t){this.trigger({type:"close",bubbles:!1})},e}(i.default);r.default.registerComponent("CloseButton",a),e.default=a},function(t,e,n){"use strict";e.__esModule=!0;var i,r=n(418),o=(i=r)&&i.__esModule?i:{default:i};n(462),n(463),n(465),n(466),n(467),n(468),n(469),n(477),n(478),n(481),n(484),n(485),n(494),n(495),n(496),n(498),n(500),n(502);var a=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,t.apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.createEl=function(){return t.prototype.createEl.call(this,"div",{className:"vjs-control-bar",dir:"ltr"},{role:"group"})},e}(o.default);a.prototype.options_={children:["playToggle","volumeMenuButton","currentTimeDisplay","timeDivider","durationDisplay","progressControl","liveDisplay","remainingTimeDisplay","customControlSpacer","playbackRateMenuButton","chaptersButton","descriptionsButton","subtitlesButton","captionsButton","audioTrackButton","fullscreenToggle"]},o.default.registerComponent("ControlBar",a),e.default=a},function(t,e,n){"use strict";e.__esModule=!0;var i=o(n(459)),r=o(n(418));function o(t){return t&&t.__esModule?t:{default:t}}var a=function(t){function e(n,i){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var r=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,t.call(this,n,i));return r.on(n,"play",r.handlePlay),r.on(n,"pause",r.handlePause),r}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.buildCSSClass=function(){return"vjs-play-control "+t.prototype.buildCSSClass.call(this)},e.prototype.handleClick=function(t){this.player_.paused()?this.player_.play():this.player_.pause()},e.prototype.handlePlay=function(t){this.removeClass("vjs-paused"),this.addClass("vjs-playing"),this.controlText("Pause")},e.prototype.handlePause=function(t){this.removeClass("vjs-playing"),this.addClass("vjs-paused"),this.controlText("Play")},e}(i.default);a.prototype.controlText_="Play",r.default.registerComponent("PlayToggle",a),e.default=a},function(t,e,n){"use strict";e.__esModule=!0;var i=a(n(418)),r=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}(n(410)),o=a(n(464));function a(t){return t&&t.__esModule?t:{default:t}}var s=function(t){function e(n,i){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var r=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,t.call(this,n,i));return r.on(n,"timeupdate",r.updateContent),r}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.createEl=function(){var e=t.prototype.createEl.call(this,"div",{className:"vjs-current-time vjs-time-control vjs-control"});return this.contentEl_=r.createEl("div",{className:"vjs-current-time-display",innerHTML:'<span class="vjs-control-text">Current Time </span>0:00'},{"aria-live":"off"}),e.appendChild(this.contentEl_),e},e.prototype.updateContent=function(t){var e=this.player_.scrubbing()?this.player_.getCache().currentTime:this.player_.currentTime(),n=this.localize("Current Time"),i=(0,o.default)(e,this.player_.duration());i!==this.formattedTime_&&(this.formattedTime_=i,this.contentEl_.innerHTML='<span class="vjs-control-text">'+n+"</span> "+i)},e}(i.default);i.default.registerComponent("CurrentTimeDisplay",s),e.default=s},function(t,e){"use strict";e.__esModule=!0,e.default=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t;t=t<0?0:t;var n=Math.floor(t%60),i=Math.floor(t/60%60),r=Math.floor(t/3600),o=Math.floor(e/60%60),a=Math.floor(e/3600);return(isNaN(t)||t===1/0)&&(r=i=n="-"),(r=r>0||a>0?r+":":"")+(i=((r||o>=10)&&i<10?"0"+i:i)+":")+(n=n<10?"0"+n:n)}},function(t,e,n){"use strict";e.__esModule=!0;var i=a(n(418)),r=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}(n(410)),o=a(n(464));function a(t){return t&&t.__esModule?t:{default:t}}var s=function(t){function e(n,i){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var r=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,t.call(this,n,i));return r.on(n,"durationchange",r.updateContent),r.on(n,"timeupdate",r.updateContent),r.on(n,"loadedmetadata",r.updateContent),r}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.createEl=function(){var e=t.prototype.createEl.call(this,"div",{className:"vjs-duration vjs-time-control vjs-control"});return this.contentEl_=r.createEl("div",{className:"vjs-duration-display",innerHTML:'<span class="vjs-control-text">'+this.localize("Duration Time")+"</span> 0:00"},{"aria-live":"off"}),e.appendChild(this.contentEl_),e},e.prototype.updateContent=function(t){var e=this.player_.duration();if(e&&this.duration_!==e){this.duration_=e;var n=this.localize("Duration Time"),i=(0,o.default)(e);this.contentEl_.innerHTML='<span class="vjs-control-text">'+n+"</span> "+i}},e}(i.default);i.default.registerComponent("DurationDisplay",s),e.default=s},function(t,e,n){"use strict";e.__esModule=!0;var i,r=n(418),o=(i=r)&&i.__esModule?i:{default:i};var a=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,t.apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.createEl=function(){return t.prototype.createEl.call(this,"div",{className:"vjs-time-control vjs-time-divider",innerHTML:"<div><span>/</span></div>"})},e}(o.default);o.default.registerComponent("TimeDivider",a),e.default=a},function(t,e,n){"use strict";e.__esModule=!0;var i=a(n(418)),r=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}(n(410)),o=a(n(464));function a(t){return t&&t.__esModule?t:{default:t}}var s=function(t){function e(n,i){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var r=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,t.call(this,n,i));return r.on(n,"timeupdate",r.updateContent),r.on(n,"durationchange",r.updateContent),r}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.createEl=function(){var e=t.prototype.createEl.call(this,"div",{className:"vjs-remaining-time vjs-time-control vjs-control"});return this.contentEl_=r.createEl("div",{className:"vjs-remaining-time-display",innerHTML:'<span class="vjs-control-text">'+this.localize("Remaining Time")+"</span> -0:00"},{"aria-live":"off"}),e.appendChild(this.contentEl_),e},e.prototype.updateContent=function(t){if(this.player_.duration()){var e=this.localize("Remaining Time"),n=(0,o.default)(this.player_.remainingTime());n!==this.formattedTime_&&(this.formattedTime_=n,this.contentEl_.innerHTML='<span class="vjs-control-text">'+e+"</span> -"+n)}},e}(i.default);i.default.registerComponent("RemainingTimeDisplay",s),e.default=s},function(t,e,n){"use strict";e.__esModule=!0;var i,r=n(418),o=(i=r)&&i.__esModule?i:{default:i},a=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}(n(410));var s=function(t){function e(n,i){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var r=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,t.call(this,n,i));return r.updateShowing(),r.on(r.player(),"durationchange",r.updateShowing),r}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.createEl=function(){var e=t.prototype.createEl.call(this,"div",{className:"vjs-live-control vjs-control"});return this.contentEl_=a.createEl("div",{className:"vjs-live-display",innerHTML:'<span class="vjs-control-text">'+this.localize("Stream Type")+"</span>"+this.localize("LIVE")},{"aria-live":"off"}),e.appendChild(this.contentEl_),e},e.prototype.updateShowing=function(t){this.player().duration()===1/0?this.show():this.hide()},e}(o.default);o.default.registerComponent("LiveDisplay",s),e.default=s},function(t,e,n){"use strict";e.__esModule=!0;var i,r=n(418),o=(i=r)&&i.__esModule?i:{default:i};n(470),n(476);var a=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,t.apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.createEl=function(){return t.prototype.createEl.call(this,"div",{className:"vjs-progress-control vjs-control"})},e}(o.default);a.prototype.options_={children:["seekBar"]},o.default.registerComponent("ProgressControl",a),e.default=a},function(t,e,n){"use strict";e.__esModule=!0;var i=u(n(471)),r=u(n(418)),o=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}(n(419)),a=u(n(464)),s=u(n(472));function u(t){return t&&t.__esModule?t:{default:t}}n(473),n(474),n(475);var l=function(t){function e(n,i){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var r=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,t.call(this,n,i));return r.on(n,"timeupdate",r.updateProgress),r.on(n,"ended",r.updateProgress),n.ready(o.bind(r,r.updateProgress)),i.playerOptions&&i.playerOptions.controlBar&&i.playerOptions.controlBar.progressControl&&i.playerOptions.controlBar.progressControl.keepTooltipsInside&&(r.keepTooltipsInside=i.playerOptions.controlBar.progressControl.keepTooltipsInside),r.keepTooltipsInside&&(r.tooltipProgressBar=r.addChild("TooltipProgressBar")),r}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.createEl=function(){return t.prototype.createEl.call(this,"div",{className:"vjs-progress-holder"},{"aria-label":"progress bar"})},e.prototype.updateProgress=function(t){if(this.updateAriaAttributes(this.el_),this.keepTooltipsInside){this.updateAriaAttributes(this.tooltipProgressBar.el_),this.tooltipProgressBar.el_.style.width=this.bar.el_.style.width;var e=parseFloat((0,s.default)(this.player().el(),"width")),n=parseFloat((0,s.default)(this.tooltipProgressBar.tooltip,"width")),i=this.tooltipProgressBar.el().style;i.maxWidth=Math.floor(e-n/2)+"px",i.minWidth=Math.ceil(n/2)+"px",i.right="-"+n/2+"px"}},e.prototype.updateAriaAttributes=function(t){var e=this.player_.scrubbing()?this.player_.getCache().currentTime:this.player_.currentTime();t.setAttribute("aria-valuenow",(100*this.getPercent()).toFixed(2)),t.setAttribute("aria-valuetext",(0,a.default)(e,this.player_.duration()))},e.prototype.getPercent=function(){var t=this.player_.currentTime()/this.player_.duration();return t>=1?1:t},e.prototype.handleMouseDown=function(e){this.player_.scrubbing(!0),this.videoWasPlaying=!this.player_.paused(),this.player_.pause(),t.prototype.handleMouseDown.call(this,e)},e.prototype.handleMouseMove=function(t){var e=this.calculateDistance(t)*this.player_.duration();e===this.player_.duration()&&(e-=.1),this.player_.currentTime(e)},e.prototype.handleMouseUp=function(e){t.prototype.handleMouseUp.call(this,e),this.player_.scrubbing(!1),this.videoWasPlaying&&this.player_.play()},e.prototype.stepForward=function(){this.player_.currentTime(this.player_.currentTime()+5)},e.prototype.stepBack=function(){this.player_.currentTime(this.player_.currentTime()-5)},e}(i.default);l.prototype.options_={children:["loadProgressBar","mouseTimeDisplay","playProgressBar"],barName:"playProgressBar"},l.prototype.playerEvent="timeupdate",r.default.registerComponent("SeekBar",l),e.default=l},function(t,e,n){"use strict";e.__esModule=!0;var i,r=n(418),o=(i=r)&&i.__esModule?i:{default:i},a=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}(n(410)),s=n(413);var u=function(t){function e(n,i){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var r=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,t.call(this,n,i));return r.bar=r.getChild(r.options_.barName),r.vertical(!!r.options_.vertical),r.on("mousedown",r.handleMouseDown),r.on("touchstart",r.handleMouseDown),r.on("focus",r.handleFocus),r.on("blur",r.handleBlur),r.on("click",r.handleClick),r.on(n,"controlsvisible",r.update),r.on(n,r.playerEvent,r.update),r}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.createEl=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return n.className=n.className+" vjs-slider",n=(0,s.assign)({tabIndex:0},n),i=(0,s.assign)({role:"slider","aria-valuenow":0,"aria-valuemin":0,"aria-valuemax":100,tabIndex:0},i),t.prototype.createEl.call(this,e,n,i)},e.prototype.handleMouseDown=function(t){var e=this.bar.el_.ownerDocument;t.preventDefault(),a.blockTextSelection(),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)},e.prototype.handleMouseMove=function(t){},e.prototype.handleMouseUp=function(){var t=this.bar.el_.ownerDocument;a.unblockTextSelection(),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()},e.prototype.update=function(){if(this.el_){var t=this.getPercent(),e=this.bar;if(e){("number"!=typeof t||t!=t||t<0||t===1/0)&&(t=0);var n=(100*t).toFixed(2)+"%";this.vertical()?e.el().style.height=n:e.el().style.width=n}}},e.prototype.calculateDistance=function(t){var e=a.getPointerPosition(this.el_,t);return this.vertical()?e.y:e.x},e.prototype.handleFocus=function(){this.on(this.bar.el_.ownerDocument,"keydown",this.handleKeyPress)},e.prototype.handleKeyPress=function(t){37===t.which||40===t.which?(t.preventDefault(),this.stepBack()):38!==t.which&&39!==t.which||(t.preventDefault(),this.stepForward())},e.prototype.handleBlur=function(){this.off(this.bar.el_.ownerDocument,"keydown",this.handleKeyPress)},e.prototype.handleClick=function(t){t.stopImmediatePropagation(),t.preventDefault()},e.prototype.vertical=function(t){return void 0===t?this.vertical_||!1:(this.vertical_=!!t,this.vertical_?this.addClass("vjs-slider-vertical"):this.addClass("vjs-slider-horizontal"),this)},e}(o.default);o.default.registerComponent("Slider",u),e.default=u},function(t,e,n){"use strict";e.__esModule=!0,e.default=function(t,e){if(!t||!e)return"";if("function"==typeof o.default.getComputedStyle){var n=o.default.getComputedStyle(t);return n?n[e]:""}return t.currentStyle[e]||""};var i,r=n(406),o=(i=r)&&i.__esModule?i:{default:i}},function(t,e,n){"use strict";e.__esModule=!0;var i,r=n(418),o=(i=r)&&i.__esModule?i:{default:i},a=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}(n(410));var s=function(t){function e(n,i){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var r=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,t.call(this,n,i));return r.partEls_=[],r.on(n,"progress",r.update),r}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.createEl=function(){return t.prototype.createEl.call(this,"div",{className:"vjs-load-progress",innerHTML:'<span class="vjs-control-text"><span>'+this.localize("Loaded")+"</span>: 0%</span>"})},e.prototype.update=function(t){var e=this.player_.buffered(),n=this.player_.duration(),i=this.player_.bufferedEnd(),r=this.partEls_,o=function(t,e){var n=t/e||0;return 100*(n>=1?1:n)+"%"};this.el_.style.width=o(i,n);for(var s=0;s<e.length;s++){var u=e.start(s),l=e.end(s),c=r[s];c||(c=this.el_.appendChild(a.createEl()),r[s]=c),c.style.left=o(u,i),c.style.width=o(l-u,i)}for(var d=r.length;d>e.length;d--)this.el_.removeChild(r[d-1]);r.length=e.length},e}(o.default);o.default.registerComponent("LoadProgressBar",s),e.default=s},function(t,e,n){"use strict";e.__esModule=!0;var i=a(n(418)),r=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}(n(419)),o=a(n(464));function a(t){return t&&t.__esModule?t:{default:t}}var s=function(t){function e(n,i){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var o=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,t.call(this,n,i));return o.updateDataAttr(),o.on(n,"timeupdate",o.updateDataAttr),n.ready(r.bind(o,o.updateDataAttr)),i.playerOptions&&i.playerOptions.controlBar&&i.playerOptions.controlBar.progressControl&&i.playerOptions.controlBar.progressControl.keepTooltipsInside&&(o.keepTooltipsInside=i.playerOptions.controlBar.progressControl.keepTooltipsInside),o.keepTooltipsInside&&o.addClass("vjs-keep-tooltips-inside"),o}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.createEl=function(){return t.prototype.createEl.call(this,"div",{className:"vjs-play-progress vjs-slider-bar",innerHTML:'<span class="vjs-control-text"><span>'+this.localize("Progress")+"</span>: 0%</span>"})},e.prototype.updateDataAttr=function(t){var e=this.player_.scrubbing()?this.player_.getCache().currentTime:this.player_.currentTime();this.el_.setAttribute("data-current-time",(0,o.default)(e,this.player_.duration()))},e}(i.default);i.default.registerComponent("PlayProgressBar",s),e.default=s},function(t,e,n){"use strict";e.__esModule=!0;var i=a(n(418)),r=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}(n(419)),o=a(n(464));function a(t){return t&&t.__esModule?t:{default:t}}var s=function(t){function e(n,i){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var o=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,t.call(this,n,i));return o.updateDataAttr(),o.on(n,"timeupdate",o.updateDataAttr),n.ready(r.bind(o,o.updateDataAttr)),o}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.createEl=function(){var e=t.prototype.createEl.call(this,"div",{className:"vjs-tooltip-progress-bar vjs-slider-bar",innerHTML:'<div class="vjs-time-tooltip"></div>\n        <span class="vjs-control-text"><span>'+this.localize("Progress")+"</span>: 0%</span>"});return this.tooltip=e.querySelector(".vjs-time-tooltip"),e},e.prototype.updateDataAttr=function(t){var e=this.player_.scrubbing()?this.player_.getCache().currentTime:this.player_.currentTime(),n=(0,o.default)(e,this.player_.duration());this.el_.setAttribute("data-current-time",n),this.tooltip.innerHTML=n},e}(i.default);i.default.registerComponent("TooltipProgressBar",s),e.default=s},function(t,e,n){"use strict";e.__esModule=!0;var i=l(n(418)),r=u(n(410)),o=u(n(419)),a=l(n(464)),s=l(n(472));function u(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}function l(t){return t&&t.__esModule?t:{default:t}}var c=function(t){function e(n,i){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var a=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,t.call(this,n,i));return i.playerOptions&&i.playerOptions.controlBar&&i.playerOptions.controlBar.progressControl&&i.playerOptions.controlBar.progressControl.keepTooltipsInside&&(a.keepTooltipsInside=i.playerOptions.controlBar.progressControl.keepTooltipsInside),a.keepTooltipsInside&&(a.tooltip=r.createEl("div",{className:"vjs-time-tooltip"}),a.el().appendChild(a.tooltip),a.addClass("vjs-keep-tooltips-inside")),a.update(0,0),n.on("ready",function(){a.on(n.controlBar.progressControl.el(),"mousemove",o.throttle(o.bind(a,a.handleMouseMove),25))}),a}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.createEl=function(){return t.prototype.createEl.call(this,"div",{className:"vjs-mouse-display"})},e.prototype.handleMouseMove=function(t){var e=this.player_.duration(),n=this.calculateDistance(t)*e,i=t.pageX-r.findElPosition(this.el().parentNode).left;this.update(n,i)},e.prototype.update=function(t,e){var n=(0,a.default)(t,this.player_.duration());if(this.el().style.left=e+"px",this.el().setAttribute("data-current-time",n),this.keepTooltipsInside){var i=e-this.clampPosition_(e)+1,r=parseFloat((0,s.default)(this.tooltip,"width"))/2;this.tooltip.innerHTML=n,this.tooltip.style.right="-"+(r-i)+"px"}},e.prototype.calculateDistance=function(t){return r.getPointerPosition(this.el().parentNode,t).x},e.prototype.clampPosition_=function(t){if(!this.keepTooltipsInside)return t;var e=parseFloat((0,s.default)(this.player().el(),"width")),n=parseFloat((0,s.default)(this.tooltip,"width"))/2,i=t;return t<n?i=Math.ceil(n):t>e-n&&(i=Math.floor(e-n)),i},e}(i.default);i.default.registerComponent("MouseTimeDisplay",c),e.default=c},function(t,e,n){"use strict";e.__esModule=!0;var i=o(n(459)),r=o(n(418));function o(t){return t&&t.__esModule?t:{default:t}}var a=function(t){function e(n,i){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var r=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,t.call(this,n,i));return r.on(n,"fullscreenchange",r.handleFullscreenChange),r}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.buildCSSClass=function(){return"vjs-fullscreen-control "+t.prototype.buildCSSClass.call(this)},e.prototype.handleFullscreenChange=function(t){this.player_.isFullscreen()?this.controlText("Non-Fullscreen"):this.controlText("Fullscreen")},e.prototype.handleClick=function(t){this.player_.isFullscreen()?this.player_.exitFullscreen():this.player_.requestFullscreen()},e}(i.default);a.prototype.controlText_="Fullscreen",r.default.registerComponent("FullscreenToggle",a),e.default=a},function(t,e,n){"use strict";e.__esModule=!0;var i,r=n(418),o=(i=r)&&i.__esModule?i:{default:i};n(479);var a=function(t){function e(n,i){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var r=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,t.call(this,n,i));return n.tech_&&!1===n.tech_.featuresVolumeControl&&r.addClass("vjs-hidden"),r.on(n,"loadstart",function(){!1===n.tech_.featuresVolumeControl?this.addClass("vjs-hidden"):this.removeClass("vjs-hidden")}),r}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.createEl=function(){return t.prototype.createEl.call(this,"div",{className:"vjs-volume-control vjs-control"})},e}(o.default);a.prototype.options_={children:["volumeBar"]},o.default.registerComponent("VolumeControl",a),e.default=a},function(t,e,n){"use strict";e.__esModule=!0;var i=a(n(471)),r=a(n(418)),o=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}(n(419));function a(t){return t&&t.__esModule?t:{default:t}}n(480);var s=function(t){function e(n,i){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var r=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,t.call(this,n,i));return r.on(n,"volumechange",r.updateARIAAttributes),n.ready(o.bind(r,r.updateARIAAttributes)),r}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.createEl=function(){return t.prototype.createEl.call(this,"div",{className:"vjs-volume-bar vjs-slider-bar"},{"aria-label":"volume level"})},e.prototype.handleMouseMove=function(t){this.checkMuted(),this.player_.volume(this.calculateDistance(t))},e.prototype.checkMuted=function(){this.player_.muted()&&this.player_.muted(!1)},e.prototype.getPercent=function(){return this.player_.muted()?0:this.player_.volume()},e.prototype.stepForward=function(){this.checkMuted(),this.player_.volume(this.player_.volume()+.1)},e.prototype.stepBack=function(){this.checkMuted(),this.player_.volume(this.player_.volume()-.1)},e.prototype.updateARIAAttributes=function(t){var e=(100*this.player_.volume()).toFixed(2);this.el_.setAttribute("aria-valuenow",e),this.el_.setAttribute("aria-valuetext",e+"%")},e}(i.default);s.prototype.options_={children:["volumeLevel"],barName:"volumeLevel"},s.prototype.playerEvent="volumechange",r.default.registerComponent("VolumeBar",s),e.default=s},function(t,e,n){"use strict";e.__esModule=!0;var i,r=n(418),o=(i=r)&&i.__esModule?i:{default:i};var a=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,t.apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.createEl=function(){return t.prototype.createEl.call(this,"div",{className:"vjs-volume-level",innerHTML:'<span class="vjs-control-text"></span>'})},e}(o.default);o.default.registerComponent("VolumeLevel",a),e.default=a},function(t,e,n){"use strict";e.__esModule=!0;var i=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}(n(419)),r=l(n(418)),o=l(n(482)),a=l(n(483)),s=l(n(484)),u=l(n(479));function l(t){return t&&t.__esModule?t:{default:t}}var c=function(t){function e(n){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),void 0===i.inline&&(i.inline=!0),void 0===i.vertical&&(i.inline?i.vertical=!1:i.vertical=!0),i.volumeBar=i.volumeBar||{},i.volumeBar.vertical=!!i.vertical;var r=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,t.call(this,n,i));function o(){n.tech_&&!1===n.tech_.featuresVolumeControl?this.addClass("vjs-hidden"):this.removeClass("vjs-hidden")}return r.on(n,"volumechange",r.volumeUpdate),r.on(n,"loadstart",r.volumeUpdate),o.call(r),r.on(n,"loadstart",o),r.on(r.volumeBar,["slideractive","focus"],function(){this.addClass("vjs-slider-active")}),r.on(r.volumeBar,["sliderinactive","blur"],function(){this.removeClass("vjs-slider-active")}),r.on(r.volumeBar,["focus"],function(){this.addClass("vjs-lock-showing")}),r.on(r.volumeBar,["blur"],function(){this.removeClass("vjs-lock-showing")}),r}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.buildCSSClass=function(){var e="";return e=this.options_.vertical?"vjs-volume-menu-button-vertical":"vjs-volume-menu-button-horizontal","vjs-volume-menu-button "+t.prototype.buildCSSClass.call(this)+" "+e},e.prototype.createPopup=function(){var t=new o.default(this.player_,{contentElType:"div"}),e=new u.default(this.player_,this.options_.volumeBar);return t.addChild(e),this.menuContent=t,this.volumeBar=e,this.attachVolumeBarEvents(),t},e.prototype.handleClick=function(e){s.default.prototype.handleClick.call(this),t.prototype.handleClick.call(this)},e.prototype.attachVolumeBarEvents=function(){this.menuContent.on(["mousedown","touchdown"],i.bind(this,this.handleMouseDown))},e.prototype.handleMouseDown=function(t){this.on(["mousemove","touchmove"],i.bind(this.volumeBar,this.volumeBar.handleMouseMove)),this.on(this.el_.ownerDocument,["mouseup","touchend"],this.handleMouseUp)},e.prototype.handleMouseUp=function(t){this.off(["mousemove","touchmove"],i.bind(this.volumeBar,this.volumeBar.handleMouseMove))},e}(a.default);c.prototype.volumeUpdate=s.default.prototype.update,c.prototype.controlText_="Mute",r.default.registerComponent("VolumeMenuButton",c),e.default=c},function(t,e,n){"use strict";e.__esModule=!0;var i,r=n(418),o=(i=r)&&i.__esModule?i:{default:i},a=l(n(410)),s=l(n(419)),u=l(n(416));function l(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}var c=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,t.apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.addItem=function(t){this.addChild(t),t.on("click",s.bind(this,function(){this.unlockShowing()}))},e.prototype.createEl=function(){var e=this.options_.contentElType||"ul";this.contentEl_=a.createEl(e,{className:"vjs-menu-content"});var n=t.prototype.createEl.call(this,"div",{append:this.contentEl_,className:"vjs-menu"});return n.appendChild(this.contentEl_),u.on(n,"click",function(t){t.preventDefault(),t.stopImmediatePropagation()}),n},e}(o.default);o.default.registerComponent("Popup",c),e.default=c},function(t,e,n){"use strict";e.__esModule=!0;var i=o(n(455)),r=o(n(418));function o(t){return t&&t.__esModule?t:{default:t}}var a=function(t){function e(n){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var r=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,t.call(this,n,i));return r.update(),r}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.update=function(){var t=this.createPopup();this.popup&&this.removeChild(this.popup),this.popup=t,this.addChild(t),this.items&&0===this.items.length?this.hide():this.items&&this.items.length>1&&this.show()},e.prototype.createPopup=function(){},e.prototype.createEl=function(){return t.prototype.createEl.call(this,"div",{className:this.buildCSSClass()})},e.prototype.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)},e}(i.default);r.default.registerComponent("PopupButton",a),e.default=a},function(t,e,n){"use strict";e.__esModule=!0;var i=a(n(459)),r=a(n(418)),o=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}(n(410));function a(t){return t&&t.__esModule?t:{default:t}}var s=function(t){function e(n,i){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var r=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,t.call(this,n,i));return r.on(n,"volumechange",r.update),n.tech_&&!1===n.tech_.featuresVolumeControl&&r.addClass("vjs-hidden"),r.on(n,"loadstart",function(){this.update(),!1===n.tech_.featuresVolumeControl?this.addClass("vjs-hidden"):this.removeClass("vjs-hidden")}),r}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.buildCSSClass=function(){return"vjs-mute-control "+t.prototype.buildCSSClass.call(this)},e.prototype.handleClick=function(t){this.player_.muted(!this.player_.muted())},e.prototype.update=function(t){var e=this.player_.volume(),n=3;this.player_.muted()?n=0:e<.33?n=1:e<.67&&(n=2);var i=this.player_.muted()?"Unmute":"Mute";this.controlText()!==i&&this.controlText(i);for(var r=0;r<4;r++)o.removeElClass(this.el_,"vjs-vol-"+r);o.addElClass(this.el_,"vjs-vol-"+n)},e}(i.default);s.prototype.controlText_="Mute",r.default.registerComponent("MuteToggle",s),e.default=s},function(t,e,n){"use strict";e.__esModule=!0;var i=s(n(486)),r=s(n(418)),o=s(n(493)),a=s(n(420));function s(t){return t&&t.__esModule?t:{default:t}}var u=function(t){function e(n,i,r){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var o=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,t.call(this,n,i,r));return o.el_.setAttribute("aria-label","Chapters Menu"),o}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.buildCSSClass=function(){return"vjs-chapters-button "+t.prototype.buildCSSClass.call(this)},e.prototype.update=function(e){this.track_&&(!e||"addtrack"!==e.type&&"removetrack"!==e.type)||this.setTrack(this.findChaptersTrack()),t.prototype.update.call(this)},e.prototype.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_)}}},e.prototype.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}},e.prototype.getMenuCaption=function(){return this.track_&&this.track_.label?this.track_.label:this.localize((0,a.default)(this.kind_))},e.prototype.createMenu=function(){return this.options_.title=this.getMenuCaption(),t.prototype.createMenu.call(this)},e.prototype.createItems=function(){var t=[];if(!this.track_)return t;var e=this.track_.cues;if(!e)return t;for(var n=0,i=e.length;n<i;n++){var r=e[n],a=new o.default(this.player_,{track:this.track_,cue:r});t.push(a)}return t},e}(i.default);u.prototype.kind_="chapters",u.prototype.controlText_="Chapters",r.default.registerComponent("ChaptersButton",u),e.default=u},function(t,e,n){"use strict";e.__esModule=!0;var i=s(n(487)),r=s(n(418)),o=s(n(490)),a=s(n(492));function s(t){return t&&t.__esModule?t:{default:t}}var u=function(t){function e(n){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),i.tracks=n.textTracks(),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,t.call(this,n,i))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.createItems=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];t.push(new a.default(this.player_,{kind:this.kind_})),this.hideThreshold_+=1;var e=this.player_.textTracks();if(!e)return t;for(var n=0;n<e.length;n++){var i=e[n];i.kind===this.kind_&&t.push(new o.default(this.player_,{track:i,selectable:!0}))}return t},e}(i.default);r.default.registerComponent("TextTrackButton",u),e.default=u},function(t,e,n){"use strict";e.__esModule=!0;var i=a(n(488)),r=a(n(418)),o=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}(n(419));function a(t){return t&&t.__esModule?t:{default:t}}function s(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}var u=function(t){function e(n,i){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var r=i.tracks,a=s(this,t.call(this,n,i));if(a.items.length<=1&&a.hide(),!r)return s(a);var u=o.bind(a,a.update);return r.addEventListener("removetrack",u),r.addEventListener("addtrack",u),a.player_.on("dispose",function(){r.removeEventListener("removetrack",u),r.removeEventListener("addtrack",u)}),a}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e}(i.default);r.default.registerComponent("TrackButton",u),e.default=u},function(t,e,n){"use strict";e.__esModule=!0;var i=c(n(455)),r=c(n(418)),o=c(n(489)),a=l(n(410)),s=l(n(419)),u=c(n(420));function l(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}function c(t){return t&&t.__esModule?t:{default:t}}var d=function(t){function e(n){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var r=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,t.call(this,n,i));return r.update(),r.enabled_=!0,r.el_.setAttribute("aria-haspopup","true"),r.el_.setAttribute("role","menuitem"),r.on("keydown",r.handleSubmenuKeyPress),r}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.update=function(){var t=this.createMenu();this.menu&&this.removeChild(this.menu),this.menu=t,this.addChild(t),this.buttonPressed_=!1,this.el_.setAttribute("aria-expanded","false"),this.items&&this.items.length<=this.hideThreshold_?this.hide():this.show()},e.prototype.createMenu=function(){var t=new o.default(this.player_);if(this.hideThreshold_=0,this.options_.title){var e=a.createEl("li",{className:"vjs-menu-title",innerHTML:(0,u.default)(this.options_.title),tabIndex:-1});this.hideThreshold_+=1,t.children_.unshift(e),a.insertElFirst(e,t.contentEl())}if(this.items=this.createItems(),this.items)for(var n=0;n<this.items.length;n++)t.addItem(this.items[n]);return t},e.prototype.createItems=function(){},e.prototype.createEl=function(){return t.prototype.createEl.call(this,"div",{className:this.buildCSSClass()})},e.prototype.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)},e.prototype.handleClick=function(t){this.one(this.menu.contentEl(),"mouseleave",s.bind(this,function(t){this.unpressButton(),this.el_.blur()})),this.buttonPressed_?this.unpressButton():this.pressButton()},e.prototype.handleKeyPress=function(e){27===e.which||9===e.which?(this.buttonPressed_&&this.unpressButton(),9!==e.which&&e.preventDefault()):38===e.which||40===e.which?this.buttonPressed_||(this.pressButton(),e.preventDefault()):t.prototype.handleKeyPress.call(this,e)},e.prototype.handleSubmenuKeyPress=function(t){27!==t.which&&9!==t.which||(this.buttonPressed_&&this.unpressButton(),9!==t.which&&t.preventDefault())},e.prototype.pressButton=function(){this.enabled_&&(this.buttonPressed_=!0,this.menu.lockShowing(),this.el_.setAttribute("aria-expanded","true"),this.menu.focus())},e.prototype.unpressButton=function(){this.enabled_&&(this.buttonPressed_=!1,this.menu.unlockShowing(),this.el_.setAttribute("aria-expanded","false"),this.el_.focus())},e.prototype.disable=function(){return this.buttonPressed_=!1,this.menu.unlockShowing(),this.el_.setAttribute("aria-expanded","false"),this.enabled_=!1,t.prototype.disable.call(this)},e.prototype.enable=function(){return this.enabled_=!0,t.prototype.enable.call(this)},e}(i.default);r.default.registerComponent("MenuButton",d),e.default=d},function(t,e,n){"use strict";e.__esModule=!0;var i,r=n(418),o=(i=r)&&i.__esModule?i:{default:i},a=l(n(410)),s=l(n(419)),u=l(n(416));function l(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}var c=function(t){function e(n,i){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var r=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,t.call(this,n,i));return r.focusedChild_=-1,r.on("keydown",r.handleKeyPress),r}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.addItem=function(t){this.addChild(t),t.on("click",s.bind(this,function(t){this.unlockShowing()}))},e.prototype.createEl=function(){var e=this.options_.contentElType||"ul";this.contentEl_=a.createEl(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.setAttribute("role","presentation"),n.appendChild(this.contentEl_),u.on(n,"click",function(t){t.preventDefault(),t.stopImmediatePropagation()}),n},e.prototype.handleKeyPress=function(t){37===t.which||40===t.which?(t.preventDefault(),this.stepForward()):38!==t.which&&39!==t.which||(t.preventDefault(),this.stepBack())},e.prototype.stepForward=function(){var t=0;void 0!==this.focusedChild_&&(t=this.focusedChild_+1),this.focus(t)},e.prototype.stepBack=function(){var t=0;void 0!==this.focusedChild_&&(t=this.focusedChild_-1),this.focus(t)},e.prototype.focus=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=this.children().slice();e.length&&e[0].className&&/vjs-menu-title/.test(e[0].className)&&e.shift(),e.length>0&&(t<0?t=0:t>=e.length&&(t=e.length-1),this.focusedChild_=t,e[t].el_.focus())},e}(o.default);o.default.registerComponent("Menu",c),e.default=c},function(t,e,n){"use strict";e.__esModule=!0;var 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},r=l(n(491)),o=l(n(418)),a=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}(n(419)),s=l(n(406)),u=l(n(407));function l(t){return t&&t.__esModule?t:{default:t}}var c=function(t){function e(n,r){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var o=r.track,l=n.textTracks();r.label=o.label||o.language||"Unknown",r.selected=o.default||"showing"===o.mode;var c=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,t.call(this,n,r));if(c.track=o,l){var d=a.bind(c,c.handleTracksChange);n.on(["loadstart","texttrackchange"],d),l.addEventListener("change",d),c.on("dispose",function(){l.removeEventListener("change",d)})}if(l&&void 0===l.onchange){var f=void 0;c.on(["tap","click"],function(){if("object"!==i(s.default.Event))try{f=new s.default.Event("change")}catch(t){}f||(f=u.default.createEvent("Event")).initEvent("change",!0,!0),l.dispatchEvent(f)})}return c}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.handleClick=function(e){var n=this.track.kind,i=this.player_.textTracks();if(t.prototype.handleClick.call(this,e),i)for(var r=0;r<i.length;r++){var o=i[r];o.kind===n&&(o===this.track?"showing"!==o.mode&&(o.mode="showing"):"disabled"!==o.mode&&(o.mode="disabled"))}},e.prototype.handleTracksChange=function(t){this.selected("showing"===this.track.mode)},e}(r.default);o.default.registerComponent("TextTrackMenuItem",c),e.default=c},function(t,e,n){"use strict";e.__esModule=!0;var i=a(n(455)),r=a(n(418)),o=n(413);function a(t){return t&&t.__esModule?t:{default:t}}var s=function(t){function e(n,i){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var r=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,t.call(this,n,i));return r.selectable=i.selectable,r.selected(i.selected),r.selectable?r.el_.setAttribute("role","menuitemcheckbox"):r.el_.setAttribute("role","menuitem"),r}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.createEl=function(e,n,i){return this.nonIconControl=!0,t.prototype.createEl.call(this,"li",(0,o.assign)({className:"vjs-menu-item",innerHTML:this.localize(this.options_.label),tabIndex:-1},n),i)},e.prototype.handleClick=function(t){this.selected(!0)},e.prototype.selected=function(t){this.selectable&&(t?(this.addClass("vjs-selected"),this.el_.setAttribute("aria-checked","true"),this.controlText(", selected")):(this.removeClass("vjs-selected"),this.el_.setAttribute("aria-checked","false"),this.controlText(" ")))},e}(i.default);r.default.registerComponent("MenuItem",s),e.default=s},function(t,e,n){"use strict";e.__esModule=!0;var i=o(n(490)),r=o(n(418));function o(t){return t&&t.__esModule?t:{default:t}}var a=function(t){function e(n,i){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),i.track={player:n,kind:i.kind,label:i.kind+" off",default:!1,mode:"disabled"},i.selectable=!0;var r=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,t.call(this,n,i));return r.selected(!0),r}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.handleTracksChange=function(t){for(var e=this.player().textTracks(),n=!0,i=0,r=e.length;i<r;i++){var o=e[i];if(o.kind===this.track.kind&&"showing"===o.mode){n=!1;break}}this.selected(n)},e}(i.default);r.default.registerComponent("OffTextTrackMenuItem",a),e.default=a},function(t,e,n){"use strict";e.__esModule=!0;var i=a(n(491)),r=a(n(418)),o=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}(n(419));function a(t){return t&&t.__esModule?t:{default:t}}var s=function(t){function e(n,i){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var r=i.track,a=i.cue,s=n.currentTime();i.selectable=!0,i.label=a.text,i.selected=a.startTime<=s&&s<a.endTime;var u=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,t.call(this,n,i));return u.track=r,u.cue=a,r.addEventListener("cuechange",o.bind(u,u.update)),u}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.handleClick=function(e){t.prototype.handleClick.call(this),this.player_.currentTime(this.cue.startTime),this.update(this.cue.startTime)},e.prototype.update=function(t){var e=this.cue,n=this.player_.currentTime();this.selected(e.startTime<=n&&n<e.endTime)},e}(i.default);r.default.registerComponent("ChaptersTrackMenuItem",s),e.default=s},function(t,e,n){"use strict";e.__esModule=!0;var i=a(n(486)),r=a(n(418)),o=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}(n(419));function a(t){return t&&t.__esModule?t:{default:t}}var s=function(t){function e(n,i,r){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var a=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,t.call(this,n,i,r));a.el_.setAttribute("aria-label","Descriptions Menu");var s=n.textTracks();if(s){var u=o.bind(a,a.handleTracksChange);s.addEventListener("change",u),a.on("dispose",function(){s.removeEventListener("change",u)})}return a}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.handleTracksChange=function(t){for(var e=this.player().textTracks(),n=!1,i=0,r=e.length;i<r;i++){var o=e[i];if(o.kind!==this.kind_&&"showing"===o.mode){n=!0;break}}n?this.disable():this.enable()},e.prototype.buildCSSClass=function(){return"vjs-descriptions-button "+t.prototype.buildCSSClass.call(this)},e}(i.default);s.prototype.kind_="descriptions",s.prototype.controlText_="Descriptions",r.default.registerComponent("DescriptionsButton",s),e.default=s},function(t,e,n){"use strict";e.__esModule=!0;var i=o(n(486)),r=o(n(418));function o(t){return t&&t.__esModule?t:{default:t}}var a=function(t){function e(n,i,r){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var o=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,t.call(this,n,i,r));return o.el_.setAttribute("aria-label","Subtitles Menu"),o}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.buildCSSClass=function(){return"vjs-subtitles-button "+t.prototype.buildCSSClass.call(this)},e}(i.default);a.prototype.kind_="subtitles",a.prototype.controlText_="Subtitles",r.default.registerComponent("SubtitlesButton",a),e.default=a},function(t,e,n){"use strict";e.__esModule=!0;var i=a(n(486)),r=a(n(418)),o=a(n(497));function a(t){return t&&t.__esModule?t:{default:t}}var s=function(t){function e(n,i,r){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var o=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,t.call(this,n,i,r));return o.el_.setAttribute("aria-label","Captions Menu"),o}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.buildCSSClass=function(){return"vjs-captions-button "+t.prototype.buildCSSClass.call(this)},e.prototype.createItems=function(){var e=[];return this.player().tech_&&this.player().tech_.featuresNativeTextTracks||(e.push(new o.default(this.player_,{kind:this.kind_})),this.hideThreshold_+=1),t.prototype.createItems.call(this,e)},e}(i.default);s.prototype.kind_="captions",s.prototype.controlText_="Captions",r.default.registerComponent("CaptionsButton",s),e.default=s},function(t,e,n){"use strict";e.__esModule=!0;var i=o(n(490)),r=o(n(418));function o(t){return t&&t.__esModule?t:{default:t}}var a=function(t){function e(n,i){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),i.track={player:n,kind:i.kind,label:i.kind+" settings",selectable:!1,default:!1,mode:"disabled"},i.selectable=!1;var r=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,t.call(this,n,i));return r.addClass("vjs-texttrack-settings"),r.controlText(", opens "+i.kind+" settings dialog"),r}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.handleClick=function(t){this.player().getChild("textTrackSettings").show(),this.player().getChild("textTrackSettings").el_.focus()},e}(i.default);r.default.registerComponent("CaptionSettingsMenuItem",a),e.default=a},function(t,e,n){"use strict";e.__esModule=!0;var i=a(n(487)),r=a(n(418)),o=a(n(499));function a(t){return t&&t.__esModule?t:{default:t}}var s=function(t){function e(n){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),i.tracks=n.audioTracks&&n.audioTracks();var r=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,t.call(this,n,i));return r.el_.setAttribute("aria-label","Audio Menu"),r}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.buildCSSClass=function(){return"vjs-audio-button "+t.prototype.buildCSSClass.call(this)},e.prototype.createItems=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];this.hideThreshold_=1;var e=this.player_.audioTracks&&this.player_.audioTracks();if(!e)return t;for(var n=0;n<e.length;n++){var i=e[n];t.push(new o.default(this.player_,{track:i,selectable:!0}))}return t},e}(i.default);s.prototype.controlText_="Audio Track",r.default.registerComponent("AudioTrackButton",s),e.default=s},function(t,e,n){"use strict";e.__esModule=!0;var i=a(n(491)),r=a(n(418)),o=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}(n(419));function a(t){return t&&t.__esModule?t:{default:t}}var s=function(t){function e(n,i){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var r=i.track,a=n.audioTracks();i.label=r.label||r.language||"Unknown",i.selected=r.enabled;var s=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,t.call(this,n,i));if(s.track=r,a){var u=o.bind(s,s.handleTracksChange);a.addEventListener("change",u),s.on("dispose",function(){a.removeEventListener("change",u)})}return s}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.handleClick=function(e){var n=this.player_.audioTracks();if(t.prototype.handleClick.call(this,e),n)for(var i=0;i<n.length;i++){var r=n[i];r.enabled=r===this.track}},e.prototype.handleTracksChange=function(t){this.selected(this.track.enabled)},e}(i.default);r.default.registerComponent("AudioTrackMenuItem",s),e.default=s},function(t,e,n){"use strict";e.__esModule=!0;var i=u(n(488)),r=u(n(489)),o=u(n(501)),a=u(n(418)),s=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}(n(410));function u(t){return t&&t.__esModule?t:{default:t}}var l=function(t){function e(n,i){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var r=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,t.call(this,n,i));return r.updateVisibility(),r.updateLabel(),r.on(n,"loadstart",r.updateVisibility),r.on(n,"ratechange",r.updateLabel),r}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.createEl=function(){var e=t.prototype.createEl.call(this);return this.labelEl_=s.createEl("div",{className:"vjs-playback-rate-value",innerHTML:1}),e.appendChild(this.labelEl_),e},e.prototype.buildCSSClass=function(){return"vjs-playback-rate "+t.prototype.buildCSSClass.call(this)},e.prototype.createMenu=function(){var t=new r.default(this.player()),e=this.playbackRates();if(e)for(var n=e.length-1;n>=0;n--)t.addChild(new o.default(this.player(),{rate:e[n]+"x"}));return t},e.prototype.updateARIAAttributes=function(){this.el().setAttribute("aria-valuenow",this.player().playbackRate())},e.prototype.handleClick=function(t){for(var e=this.player().playbackRate(),n=this.playbackRates(),i=n[0],r=0;r<n.length;r++)if(n[r]>e){i=n[r];break}this.player().playbackRate(i)},e.prototype.playbackRates=function(){return this.options_.playbackRates||this.options_.playerOptions&&this.options_.playerOptions.playbackRates},e.prototype.playbackRateSupported=function(){return this.player().tech_&&this.player().tech_.featuresPlaybackRate&&this.playbackRates()&&this.playbackRates().length>0},e.prototype.updateVisibility=function(t){this.playbackRateSupported()?this.removeClass("vjs-hidden"):this.addClass("vjs-hidden")},e.prototype.updateLabel=function(t){this.playbackRateSupported()&&(this.labelEl_.innerHTML=this.player().playbackRate()+"x")},e}(i.default);l.prototype.controlText_="Playback Rate",a.default.registerComponent("PlaybackRateMenuButton",l),e.default=l},function(t,e,n){"use strict";e.__esModule=!0;var i=o(n(491)),r=o(n(418));function o(t){return t&&t.__esModule?t:{default:t}}var a=function(t){function e(n,i){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var r=i.rate,o=parseFloat(r,10);i.label=r,i.selected=1===o,i.selectable=!0;var a=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,t.call(this,n,i));return a.label=r,a.rate=o,a.on(n,"ratechange",a.update),a}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.handleClick=function(e){t.prototype.handleClick.call(this),this.player().playbackRate(this.rate)},e.prototype.update=function(t){this.selected(this.player().playbackRate()===this.rate)},e}(i.default);a.prototype.contentElType="button",r.default.registerComponent("PlaybackRateMenuItem",a),e.default=a},function(t,e,n){"use strict";e.__esModule=!0;var i=o(n(503)),r=o(n(418));function o(t){return t&&t.__esModule?t:{default:t}}var a=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,t.apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.buildCSSClass=function(){return"vjs-custom-control-spacer "+t.prototype.buildCSSClass.call(this)},e.prototype.createEl=function(){var e=t.prototype.createEl.call(this,{className:this.buildCSSClass()});return e.innerHTML="&nbsp;",e},e}(i.default);r.default.registerComponent("CustomControlSpacer",a),e.default=a},function(t,e,n){"use strict";e.__esModule=!0;var i,r=n(418),o=(i=r)&&i.__esModule?i:{default:i};var a=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,t.apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.buildCSSClass=function(){return"vjs-spacer "+t.prototype.buildCSSClass.call(this)},e.prototype.createEl=function(){return t.prototype.createEl.call(this,"div",{className:this.buildCSSClass()})},e}(o.default);o.default.registerComponent("Spacer",a),e.default=a},function(t,e,n){"use strict";e.__esModule=!0;var i=a(n(418)),r=a(n(430)),o=a(n(421));function a(t){return t&&t.__esModule?t:{default:t}}var s=function(t){function e(n,i){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var r=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,t.call(this,n,i));return r.on(n,"error",r.open),r}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.buildCSSClass=function(){return"vjs-error-display "+t.prototype.buildCSSClass.call(this)},e.prototype.content=function(){var t=this.player().error();return t?this.localize(t.message):""},e}(r.default);s.prototype.options_=(0,o.default)(r.default.prototype.options_,{pauseOnOpen:!1,fillAlways:!0,temporary:!1,uncloseable:!0}),i.default.registerComponent("ErrorDisplay",s),e.default=s},function(t,e,n){"use strict";e.__esModule=!0;var i=c(n(406)),r=c(n(418)),o=n(410),a=l(n(419)),s=l(n(413)),u=c(n(412));function l(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}function c(t){return t&&t.__esModule?t:{default:t}}var d=["#000","Black"],f=["#00F","Blue"],h=["#0FF","Cyan"],p=["#0F0","Green"],v=["#F0F","Magenta"],y=["#F00","Red"],m=["#FFF","White"],g=["#FF0","Yellow"],b=["1","Opaque"],_=["0.5","Semi-Transparent"],T=["0","Transparent"],E={backgroundColor:{selector:".vjs-bg-color > select",id:"captions-background-color-%s",label:"Color",options:[d,m,y,p,f,g,v,h]},backgroundOpacity:{selector:".vjs-bg-opacity > select",id:"captions-background-opacity-%s",label:"Transparency",options:[b,_,T]},color:{selector:".vjs-fg-color > select",id:"captions-foreground-color-%s",label:"Color",options:[m,d,y,p,f,g,v,h]},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:[b,_]},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:[T,_,b]}};function w(t,e){if(e&&(t=e(t)),t&&"none"!==t)return t}E.windowColor.options=E.backgroundColor.options;var k=function(t){function e(n,i){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var r=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,t.call(this,n,i));return r.setDefaults(),r.hide(),r.updateDisplay=a.bind(r,r.updateDisplay),void 0===i.persistTextTrackSettings&&(r.options_.persistTextTrackSettings=r.options_.playerOptions.persistTextTrackSettings),r.on(r.$(".vjs-done-button"),"click",function(){r.saveSettings(),r.hide()}),r.on(r.$(".vjs-default-button"),"click",function(){r.setDefaults(),r.updateDisplay()}),s.each(E,function(t){r.on(r.$(t.selector),"change",r.updateDisplay)}),r.options_.persistTextTrackSettings&&r.restoreSettings(),r}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.createElSelect_=function(t){var e=this,n=E[t],i=n.id.replace("%s",this.id_);return[(0,o.createEl)("label",{className:"vjs-label",textContent:n.label},{for:i}),(0,o.createEl)("select",{id:i},void 0,n.options.map(function(t){return(0,o.createEl)("option",{textContent:e.localize(t[1]),value:t[0]})}))]},e.prototype.createElFgColor_=function(){var t=(0,o.createEl)("legend",{textContent:this.localize("Text")}),e=this.createElSelect_("color"),n=(0,o.createEl)("span",{className:"vjs-text-opacity vjs-opacity"},void 0,this.createElSelect_("textOpacity"));return(0,o.createEl)("fieldset",{className:"vjs-fg-color vjs-tracksetting"},void 0,[t].concat(e,n))},e.prototype.createElBgColor_=function(){var t=(0,o.createEl)("legend",{textContent:this.localize("Background")}),e=this.createElSelect_("backgroundColor"),n=(0,o.createEl)("span",{className:"vjs-bg-opacity vjs-opacity"},void 0,this.createElSelect_("backgroundOpacity"));return(0,o.createEl)("fieldset",{className:"vjs-bg-color vjs-tracksetting"},void 0,[t].concat(e,n))},e.prototype.createElWinColor_=function(){var t=(0,o.createEl)("legend",{textContent:this.localize("Window")}),e=this.createElSelect_("windowColor"),n=(0,o.createEl)("span",{className:"vjs-window-opacity vjs-opacity"},void 0,this.createElSelect_("windowOpacity"));return(0,o.createEl)("fieldset",{className:"vjs-window-color vjs-tracksetting"},void 0,[t].concat(e,n))},e.prototype.createElColors_=function(){return(0,o.createEl)("div",{className:"vjs-tracksettings-colors"},void 0,[this.createElFgColor_(),this.createElBgColor_(),this.createElWinColor_()])},e.prototype.createElFont_=function(){var t=(0,o.createEl)("div",{className:"vjs-font-percent vjs-tracksetting"},void 0,this.createElSelect_("fontPercent")),e=(0,o.createEl)("div",{className:"vjs-edge-style vjs-tracksetting"},void 0,this.createElSelect_("edgeStyle")),n=(0,o.createEl)("div",{className:"vjs-font-family vjs-tracksetting"},void 0,this.createElSelect_("fontFamily"));return(0,o.createEl)("div",{className:"vjs-tracksettings-font"},void 0,[t,e,n])},e.prototype.createElControls_=function(){var t=(0,o.createEl)("button",{className:"vjs-default-button",textContent:this.localize("Defaults")}),e=(0,o.createEl)("button",{className:"vjs-done-button",textContent:"Done"});return(0,o.createEl)("div",{className:"vjs-tracksettings-controls"},void 0,[t,e])},e.prototype.createEl=function(){var t=(0,o.createEl)("div",{className:"vjs-tracksettings"},void 0,[this.createElColors_(),this.createElFont_(),this.createElControls_()]),e=(0,o.createEl)("div",{className:"vjs-control-text",id:"TTsettingsDialogLabel-"+this.id_,textContent:"Caption Settings Dialog"},{"aria-level":"1",role:"heading"}),n=(0,o.createEl)("div",{className:"vjs-control-text",id:"TTsettingsDialogDescription-"+this.id_,textContent:"Beginning of dialog window. Escape will cancel and close the window."}),i=(0,o.createEl)("div",void 0,{role:"document"},[e,n,t]);return(0,o.createEl)("div",{className:"vjs-caption-settings vjs-modal-overlay",tabIndex:-1},{role:"dialog","aria-labelledby":e.id,"aria-describedby":n.id},i)},e.prototype.getValues=function(){var t=this;return s.reduce(E,function(e,n,i){var r,o,a=(r=t.$(n.selector),o=n.parser,w(r.options[r.options.selectedIndex].value,o));return void 0!==a&&(e[i]=a),e},{})},e.prototype.setValues=function(t){var e=this;s.each(E,function(n,i){!function(t,e,n){if(e)for(var i=0;i<t.options.length;i++)if(w(t.options[i].value,n)===e){t.selectedIndex=i;break}}(e.$(n.selector),t[i],n.parser)})},e.prototype.setDefaults=function(){var t=this;s.each(E,function(e){var n=e.hasOwnProperty("default")?e.default:0;t.$(e.selector).selectedIndex=n})},e.prototype.restoreSettings=function(){var t=void 0;try{t=JSON.parse(i.default.localStorage.getItem("vjs-text-track-settings"))}catch(t){u.default.warn(t)}t&&this.setValues(t)},e.prototype.saveSettings=function(){if(this.options_.persistTextTrackSettings){var t=this.getValues();try{Object.keys(t).length?i.default.localStorage.setItem("vjs-text-track-settings",JSON.stringify(t)):i.default.localStorage.removeItem("vjs-text-track-settings")}catch(t){u.default.warn(t)}}},e.prototype.updateDisplay=function(){var t=this.player_.getChild("textTrackDisplay");t&&t.updateDisplay()},e}(r.default);r.default.registerComponent("TextTrackSettings",k),e.default=k},function(t,e,n){"use strict";e.__esModule=!0;var i,r=((i=["Text Tracks are being loaded from another origin but the crossorigin attribute isn't used.\n            This may prevent text tracks from loading."]).raw=["Text Tracks are being loaded from another origin but the crossorigin attribute isn't used.\n            This may prevent text tracks from loading."],i),o=b(n(431)),a=b(n(418)),s=g(n(410)),u=g(n(437)),l=g(n(419)),c=b(n(412)),d=b(n(414)),f=g(n(409)),h=b(n(407)),p=b(n(406)),v=n(413),y=b(n(421)),m=b(n(420));function g(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}function b(t){return t&&t.__esModule?t:{default:t}}var _=function(t){function e(n,i){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var o=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,t.call(this,n,i)),a=n.source,s=!1;if(a&&(o.el_.currentSrc!==a.src||n.tag&&3===n.tag.initNetworkState_)?o.setSource(a):o.handleLateInit_(o.el_),o.el_.hasChildNodes()){for(var h=o.el_.childNodes,p=h.length,v=[];p--;){var y=h[p];"track"===y.nodeName.toLowerCase()&&(o.featuresNativeTextTracks?(o.remoteTextTrackEls().addTrackElement_(y),o.remoteTextTracks().addTrack_(y.track),s||o.el_.hasAttribute("crossorigin")||!u.isCrossOrigin(y.src)||(s=!0)):v.push(y))}for(var g=0;g<v.length;g++)o.el_.removeChild(v[g])}return["audio","video"].forEach(function(t){var e=o.el()[t+"Tracks"],n=o[t+"Tracks"](),i=(0,m.default)(t);o["featuresNative"+i+"Tracks"]&&e&&e.addEventListener&&(o["handle"+i+"TrackChange_"]=function(t){n.trigger({type:"change",target:n,currentTarget:n,srcElement:n})},o["handle"+i+"TrackAdd_"]=function(t){return n.addTrack(t.track)},o["handle"+i+"TrackRemove_"]=function(t){return n.removeTrack(t.track)},e.addEventListener("change",o["handle"+i+"TrackChange_"]),e.addEventListener("addtrack",o["handle"+i+"TrackAdd_"]),e.addEventListener("removetrack",o["handle"+i+"TrackRemove_"]),o["removeOld"+i+"Tracks_"]=function(t){return o.removeOldTracks_(n,e)},o.on("loadstart",o["removeOld"+i+"Tracks_"]))}),o.featuresNativeTextTracks&&(s&&c.default.warn((0,d.default)(r)),o.handleTextTrackChange_=l.bind(o,o.handleTextTrackChange),o.handleTextTrackAdd_=l.bind(o,o.handleTextTrackAdd),o.handleTextTrackRemove_=l.bind(o,o.handleTextTrackRemove),o.proxyNativeTextTracks_()),o.restoreMetadataTracksInIOSNativePlayer_(),(f.TOUCH_ENABLED||f.IS_IPHONE||f.IS_NATIVE_ANDROID)&&!0===n.nativeControlsForTouch&&o.setControls(!0),o.proxyWebkitFullscreen_(),o.triggerReady(),o}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.dispose=function(){var n=this;["audio","video","text"].forEach(function(t){var e=(0,m.default)(t),i=n.el_[t+"Tracks"];i&&i.removeEventListener&&(i.removeEventListener("change",n["handle"+e+"TrackChange_"]),i.removeEventListener("addtrack",n["handle"+e+"TrackAdd_"]),i.removeEventListener("removetrack",n["handle"+e+"TrackRemove_"])),i&&n.off("loadstart",n["removeOld"+e+"Tracks_"])}),e.disposeMediaElement(this.el_),t.prototype.dispose.call(this)},e.prototype.restoreMetadataTracksInIOSNativePlayer_=function(){var t=this.textTracks(),e=void 0,n=function(){e=[];for(var n=0;n<t.length;n++){var i=t[n];"metadata"===i.kind&&e.push({track:i,storedMode:i.mode})}};n(),t.addEventListener("change",n);var i=function n(){for(var i=0;i<e.length;i++){var r=e[i];"disabled"===r.track.mode&&r.track.mode!==r.storedMode&&(r.track.mode=r.storedMode)}t.removeEventListener("change",n)};this.on("webkitbeginfullscreen",function(){t.removeEventListener("change",n),t.removeEventListener("change",i),t.addEventListener("change",i)}),this.on("webkitendfullscreen",function(){t.removeEventListener("change",n),t.addEventListener("change",n),t.removeEventListener("change",i)})},e.prototype.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=h.default.createElement("video");var i=this.options_.tag&&s.getElAttributes(this.options_.tag),r=(0,y.default)({},i);f.TOUCH_ENABLED&&!0===this.options_.nativeControlsForTouch||delete r.controls,s.setElAttributes(t,(0,v.assign)(r,{id:this.options_.techId,class:"vjs-tech"}))}t.playerId=this.options_.playerId}void 0!==this.options_.preload&&s.setAttribute(t,"preload",this.options_.preload);for(var o=["loop","muted","playsinline","autoplay"],a=o.length-1;a>=0;a--){var u=o[a],l=this.options_[u];void 0!==l&&(l?s.setAttribute(t,u,u):s.removeAttribute(t,u),t[u]=l)}return t},e.prototype.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 i=function(){e||this.trigger("loadstart")};return this.on("loadedmetadata",i),void this.ready(function(){this.off("loadstart",n),this.off("loadedmetadata",i),e||this.trigger("loadstart")})}var r=["loadstart"];r.push("loadedmetadata"),t.readyState>=2&&r.push("loadeddata"),t.readyState>=3&&r.push("canplay"),t.readyState>=4&&r.push("canplaythrough"),this.ready(function(){r.forEach(function(t){this.trigger(t)},this)})}},e.prototype.proxyNativeTextTracks_=function(){var t=this.el().textTracks;if(t){for(var e=0;e<t.length;e++)this.textTracks().addTrack_(t[e]);t.addEventListener&&(t.addEventListener("change",this.handleTextTrackChange_),t.addEventListener("addtrack",this.handleTextTrackAdd_),t.addEventListener("removetrack",this.handleTextTrackRemove_)),this.on("loadstart",this.removeOldTextTracks_)}},e.prototype.handleTextTrackChange=function(t){var e=this.textTracks();this.textTracks().trigger({type:"change",target:e,currentTarget:e,srcElement:e})},e.prototype.handleTextTrackAdd=function(t){this.textTracks().addTrack_(t.track)},e.prototype.handleTextTrackRemove=function(t){this.textTracks().removeTrack_(t.track)},e.prototype.removeOldTracks_=function(t,e){var n=[];if(e){for(var i=0;i<t.length;i++){for(var r=t[i],o=!1,a=0;a<e.length;a++)if(e[a]===r){o=!0;break}o||n.push(r)}for(var s=0;s<n.length;s++){var u=n[s];t.removeTrack_(u)}}},e.prototype.removeOldTextTracks_=function(t){var e=this.textTracks(),n=this.el().textTracks;this.removeOldTracks_(e,n)},e.prototype.play=function(){var t=this.el_.play();void 0!==t&&"function"==typeof t.then&&t.then(null,function(t){})},e.prototype.setCurrentTime=function(t){try{this.el_.currentTime=t}catch(t){(0,c.default)(t,"Video is not ready. (Video.js)")}},e.prototype.duration=function(){var t=this;if(this.el_.duration===1/0&&f.IS_ANDROID&&f.IS_CHROME&&0===this.el_.currentTime){return this.on("timeupdate",function e(){t.el_.currentTime>0&&(t.el_.duration===1/0&&t.trigger("durationchange"),t.off("timeupdate",e))}),NaN}return this.el_.duration||NaN},e.prototype.width=function(){return this.el_.offsetWidth},e.prototype.height=function(){return this.el_.offsetHeight},e.prototype.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}))};this.on("webkitbeginfullscreen",n),this.on("dispose",function(){t.off("webkitbeginfullscreen",n),t.off("webkitendfullscreen",e)})}},e.prototype.supportsFullScreen=function(){if("function"==typeof this.el_.webkitEnterFullScreen){var t=p.default.navigator&&p.default.navigator.userAgent||"";if(/Android/.test(t)||!/Chrome|Mac OS X 10.5/.test(t))return!0}return!1},e.prototype.enterFullScreen=function(){var t=this.el_;t.paused&&t.networkState<=t.HAVE_METADATA?(this.el_.play(),this.setTimeout(function(){t.pause(),t.webkitEnterFullScreen()},0)):t.webkitEnterFullScreen()},e.prototype.exitFullScreen=function(){this.el_.webkitExitFullScreen()},e.prototype.src=function(t){if(void 0===t)return this.el_.src;this.setSrc(t)},e.prototype.reset=function(){e.resetMediaElement(this.el_)},e.prototype.currentSrc=function(){return this.currentSource_?this.currentSource_.src:this.el_.currentSrc},e.prototype.setControls=function(t){this.el_.controls=!!t},e.prototype.addTextTrack=function(e,n,i){return this.featuresNativeTextTracks?this.el_.addTextTrack(e,n,i):t.prototype.addTextTrack.call(this,e,n,i)},e.prototype.createRemoteTextTrack=function(e){if(!this.featuresNativeTextTracks)return t.prototype.createRemoteTextTrack.call(this,e);var n=h.default.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},e.prototype.addRemoteTextTrack=function(e,n){var i=t.prototype.addRemoteTextTrack.call(this,e,n);return this.featuresNativeTextTracks&&this.el().appendChild(i),i},e.prototype.removeRemoteTextTrack=function(e){if(t.prototype.removeRemoteTextTrack.call(this,e),this.featuresNativeTextTracks)for(var n=this.$$("track"),i=n.length;i--;)e!==n[i]&&e!==n[i].track||this.el().removeChild(n[i])},e.prototype.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),p.default.performance&&"function"==typeof p.default.performance.now?t.creationTime=p.default.performance.now():p.default.performance&&p.default.performance.timing&&"number"==typeof p.default.performance.timing.navigationStart&&(t.creationTime=p.default.Date.now()-p.default.performance.timing.navigationStart),t},e}(o.default);if(s.isReal()){_.TEST_VID=h.default.createElement("video");var T=h.default.createElement("track");T.kind="captions",T.srclang="en",T.label="English",_.TEST_VID.appendChild(T)}_.isSupported=function(){try{_.TEST_VID.volume=.5}catch(t){return!1}return!(!_.TEST_VID||!_.TEST_VID.canPlayType)},_.canControlVolume=function(){try{var t=_.TEST_VID.volume;return _.TEST_VID.volume=t/2+.1,t!==_.TEST_VID.volume}catch(t){return!1}},_.canControlPlaybackRate=function(){if(f.IS_ANDROID&&f.IS_CHROME&&f.CHROME_VERSION<58)return!1;try{var t=_.TEST_VID.playbackRate;return _.TEST_VID.playbackRate=t/2+.1,t!==_.TEST_VID.playbackRate}catch(t){return!1}},_.supportsNativeTextTracks=function(){return f.IS_ANY_SAFARI},_.supportsNativeVideoTracks=function(){return!(!_.TEST_VID||!_.TEST_VID.videoTracks)},_.supportsNativeAudioTracks=function(){return!(!_.TEST_VID||!_.TEST_VID.audioTracks)},_.Events=["loadstart","suspend","abort","error","emptied","stalled","loadedmetadata","loadeddata","canplay","canplaythrough","playing","waiting","seeking","seeked","ended","durationchange","timeupdate","progress","play","pause","ratechange","volumechange"],_.prototype.featuresVolumeControl=_.canControlVolume(),_.prototype.featuresPlaybackRate=_.canControlPlaybackRate(),_.prototype.movingMediaElementInDOM=!f.IS_IOS,_.prototype.featuresFullscreenResize=!0,_.prototype.featuresProgressEvents=!0,_.prototype.featuresTimeupdateEvents=!0,_.prototype.featuresNativeTextTracks=_.supportsNativeTextTracks(),_.prototype.featuresNativeVideoTracks=_.supportsNativeVideoTracks(),_.prototype.featuresNativeAudioTracks=_.supportsNativeAudioTracks();var E=_.TEST_VID&&_.TEST_VID.constructor.prototype.canPlayType,w=/^application\/(?:x-|vnd\.apple\.)mpegurl/i,k=/^video\/mp4/i;_.patchCanPlayType=function(){f.ANDROID_VERSION>=4&&!f.IS_FIREFOX?_.TEST_VID.constructor.prototype.canPlayType=function(t){return t&&w.test(t)?"maybe":E.call(this,t)}:f.IS_OLD_ANDROID&&(_.TEST_VID.constructor.prototype.canPlayType=function(t){return t&&k.test(t)?"maybe":E.call(this,t)})},_.unpatchCanPlayType=function(){var t=_.TEST_VID.constructor.prototype.canPlayType;return _.TEST_VID.constructor.prototype.canPlayType=E,t},_.patchCanPlayType(),_.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){}}()}},_.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){_.prototype[t]=function(){return this.el_[t]||this.el_.hasAttribute(t)}}),["muted","defaultMuted","autoplay","loop","playsinline"].forEach(function(t){_.prototype["set"+(0,m.default)(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","played","networkState","readyState","videoWidth","videoHeight"].forEach(function(t){_.prototype[t]=function(){return this.el_[t]}}),["volume","src","poster","preload","playbackRate"].forEach(function(t){_.prototype["set"+(0,m.default)(t)]=function(e){this.el_[t]=e}}),["pause","load"].forEach(function(t){_.prototype[t]=function(){return this.el_[t]()}}),o.default.withSourceHandlers(_),_.nativeSourceHandler={},_.nativeSourceHandler.canPlayType=function(t){try{return _.TEST_VID.canPlayType(t)}catch(t){return""}},_.nativeSourceHandler.canHandleSource=function(t,e){if(t.type)return _.nativeSourceHandler.canPlayType(t.type);if(t.src){var n=u.getFileExtension(t.src);return _.nativeSourceHandler.canPlayType("video/"+n)}return""},_.nativeSourceHandler.handleSource=function(t,e,n){e.setSrc(t.src)},_.nativeSourceHandler.dispose=function(){},_.registerSourceHandler(_.nativeSourceHandler),a.default.registerComponent("Html5",_),o.default.registerTech("Html5",_),e.default=_},function(t,e,n){"use strict";e.__esModule=!0;var i,r=n(423),o=(i=r)&&i.__esModule?i:{default:i};e.default=function(t,e){o.default.prototype[t]=e}},function(t,e,n){"use strict";e.__esModule=!0;var i=n(435),r=s(n(436)),o=s(n(421)),a=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}(n(409));function s(t){return t&&t.__esModule?t:{default:t}}function u(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}var l=function(t){function e(){var n,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var s=(0,o.default)(r,{kind:i.AudioTrackKind[r.kind]||""}),l=n=u(this,t.call(this,s)),c=!1;if(a.IS_IE8)for(var d in e.prototype)"constructor"!==d&&(l[d]=e.prototype[d]);return Object.defineProperty(l,"enabled",{get:function(){return c},set:function(t){"boolean"==typeof t&&t!==c&&(c=t,this.trigger("enabledchange"))}}),s.enabled&&(l.enabled=s.enabled),l.loaded_=!0,u(n,l)}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e}(r.default);e.default=l},function(t,e,n){"use strict";e.__esModule=!0;var i=n(435),r=s(n(436)),o=s(n(421)),a=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}(n(409));function s(t){return t&&t.__esModule?t:{default:t}}function u(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}var l=function(t){function e(){var n,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var s=(0,o.default)(r,{kind:i.VideoTrackKind[r.kind]||""}),l=n=u(this,t.call(this,s)),c=!1;if(a.IS_IE8)for(var d in e.prototype)"constructor"!==d&&(l[d]=e.prototype[d]);return Object.defineProperty(l,"selected",{get:function(){return c},set:function(t){"boolean"==typeof t&&t!==c&&(c=t,this.trigger("selectedchange"))}}),s.selected&&(l.selected=s.selected),u(n,l)}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e}(r.default);e.default=l},function(t,e,n){"use strict";e.__esModule=!0;var i,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},o=n(412),a=(i=o)&&i.__esModule?i:{default:i},s=n(413);e.default=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=function(){t.apply(this,arguments)},i={};for(var o in(0,s.isObject)(e)?("function"==typeof e.init&&(a.default.warn("Constructor logic via init() is deprecated; please use constructor() instead."),e.constructor=e.init),e.constructor!==Object.prototype.constructor&&(n=e.constructor),i=e):"function"==typeof e&&(n=e),function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+(void 0===e?"undefined":r(e)));t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(t.super_=e)}(n,t),i)i.hasOwnProperty(o)&&(n.prototype[o]=i[o]);return n}},function(t,e,n){"use strict";var i=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),r=function(t,e,n){for(var i=!0;i;){var r=t,o=e,a=n;i=!1,null===r&&(r=Function.prototype);var s=Object.getOwnPropertyDescriptor(r,o);if(void 0!==s){if("value"in s)return s.value;var u=s.get;if(void 0===u)return;return u.call(a)}var l=Object.getPrototypeOf(r);if(null===l)return;t=l,e=o,n=a,i=!0,s=l=void 0}};function o(t){return t&&t.__esModule?t:{default:t}}var a=o(n(407)),s=o(n(512)),u=o(n(520)),l=o(n(521)),c=n(522),d=o(n(530)),f=n(531),h=o(n(515)),p=o(n(405)),v=n(565),y=o(n(568)),m=o(n(582)),g=o(n(406)),b=o(n(583)),_=o(n(584)),T=n(571),E={PlaylistLoader:s.default,Playlist:u.default,Decrypter:c.Decrypter,AsyncStream:c.AsyncStream,decrypt:c.decrypt,utils:d.default,STANDARD_PLAYLIST_SELECTOR:T.lastBandwidthSelector,INITIAL_PLAYLIST_SELECTOR:T.lowestBitrateCompatibleVariantSelector,comparePlaylistBandwidth:T.comparePlaylistBandwidth,comparePlaylistResolution:T.comparePlaylistResolution,xhr:(0,l.default)()};["GOAL_BUFFER_LENGTH","MAX_GOAL_BUFFER_LENGTH","GOAL_BUFFER_LENGTH_RATE","BUFFER_LOW_WATER_LINE","MAX_BUFFER_LOW_WATER_LINE","BUFFER_LOW_WATER_LINE_RATE","BANDWIDTH_VARIANCE"].forEach(function(t){Object.defineProperty(E,t,{get:function(){return p.default.log.warn("using Hls."+t+" is UNSAFE be sure you know what you are doing"),y.default[t]},set:function(e){p.default.log.warn("using Hls."+t+" is UNSAFE be sure you know what you are doing"),"number"!=typeof e||e<0?p.default.log.warn("value of Hls."+t+" must be greater than or equal to 0"):y.default[t]=e}})});var w=function(t,e){for(var n=e.media(),i=-1,r=0;r<t.length;r++)if(t[r].id===n.uri){i=r;break}t.selectedIndex_=i,t.trigger({selectedIndex:i,type:"change"})};E.canPlaySource=function(){return p.default.log.warn("HLS is no longer a tech. Please remove it from your player's techOrder.")},E.supportsNativeHls=function(){var t=a.default.createElement("video");if(!p.default.getTech("Html5").isSupported())return!1;return["application/vnd.apple.mpegurl","audio/mpegurl","audio/x-mpegurl","application/x-mpegurl","video/x-mpegurl","video/mpegurl","application/mpegurl"].some(function(e){return/maybe|probably/i.test(t.canPlayType(e))})}(),E.isSupported=function(){return p.default.log.warn("HLS is no longer a tech. Please remove it from your player's techOrder.")};var k=p.default.getComponent("Component"),S=function(t){function e(t,n,i){var o=this;if(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),r(Object.getPrototypeOf(e.prototype),"constructor",this).call(this,n,i.hls),n.options_&&n.options_.playerId){var s=(0,p.default)(n.options_.playerId);s.hasOwnProperty("hls")||Object.defineProperty(s,"hls",{get:function(){return p.default.log.warn("player.hls is deprecated. Use player.tech_.hls instead."),n.trigger({type:"usage",name:"hls-player-access"}),o}})}if(this.tech_=n,this.source_=t,this.stats={},this.ignoreNextSeekingEvent_=!1,this.setOptions_(),this.options_.overrideNative&&(n.featuresNativeVideoTracks||n.featuresNativeAudioTracks))throw new Error("Overriding native HLS requires emulated tracks. See https://git.io/vMpjB");this.on(a.default,["fullscreenchange","webkitfullscreenchange","mozfullscreenchange","MSFullscreenChange"],function(t){var e=a.default.fullscreenElement||a.default.webkitFullscreenElement||a.default.mozFullScreenElement||a.default.msFullscreenElement;e&&e.contains(o.tech_.el())&&o.masterPlaylistController_.fastQualityChange_()}),this.on(this.tech_,"seeking",function(){this.ignoreNextSeekingEvent_?this.ignoreNextSeekingEvent_=!1:this.setCurrentTime(this.tech_.currentTime())}),this.on(this.tech_,"error",function(){this.masterPlaylistController_&&this.masterPlaylistController_.pauseLoading()}),this.on(this.tech_,"play",this.play)}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,k),i(e,[{key:"setOptions_",value:function(){var t=this;this.options_.withCredentials=this.options_.withCredentials||!1,"number"!=typeof this.options_.blacklistDuration&&(this.options_.blacklistDuration=300),"number"!=typeof this.options_.bandwidth&&(this.options_.bandwidth=4194304),this.options_.enableLowInitialPlaylist=this.options_.enableLowInitialPlaylist&&4194304===this.options_.bandwidth,["withCredentials","bandwidth"].forEach(function(e){void 0!==t.source_[e]&&(t.options_[e]=t.source_[e])}),this.bandwidth=this.options_.bandwidth}},{key:"src",value:function(t){var e=this;t&&(this.setOptions_(),this.options_.url=this.source_.src,this.options_.tech=this.tech_,this.options_.externHls=E,this.masterPlaylistController_=new v.MasterPlaylistController(this.options_),this.playbackWatcher_=new b.default(p.default.mergeOptions(this.options_,{seekable:function(){return e.seekable()}})),this.masterPlaylistController_.on("error",function(){p.default.players[e.tech_.options_.playerId].error(e.masterPlaylistController_.error)}),this.masterPlaylistController_.selectPlaylist=this.selectPlaylist?this.selectPlaylist.bind(this):E.STANDARD_PLAYLIST_SELECTOR.bind(this),this.masterPlaylistController_.selectInitialPlaylist=E.INITIAL_PLAYLIST_SELECTOR.bind(this),this.playlists=this.masterPlaylistController_.masterPlaylistLoader_,this.mediaSource=this.masterPlaylistController_.mediaSource,Object.defineProperties(this,{selectPlaylist:{get:function(){return this.masterPlaylistController_.selectPlaylist},set:function(t){this.masterPlaylistController_.selectPlaylist=t.bind(this)}},throughput:{get:function(){return this.masterPlaylistController_.mainSegmentLoader_.throughput.rate},set:function(t){this.masterPlaylistController_.mainSegmentLoader_.throughput.rate=t,this.masterPlaylistController_.mainSegmentLoader_.throughput.count=1}},bandwidth:{get:function(){return this.masterPlaylistController_.mainSegmentLoader_.bandwidth},set:function(t){this.masterPlaylistController_.mainSegmentLoader_.bandwidth=t,this.masterPlaylistController_.mainSegmentLoader_.throughput={rate:0,count:0}}},systemBandwidth:{get:function(){var t=1/(this.bandwidth||1),e=void 0;return e=this.throughput>0?1/this.throughput:0,Math.floor(1/(t+e))},set:function(){p.default.log.error('The "systemBandwidth" property is read-only')}}}),Object.defineProperties(this.stats,{bandwidth:{get:function(){return e.bandwidth||0},enumerable:!0},mediaRequests:{get:function(){return e.masterPlaylistController_.mediaRequests_()||0},enumerable:!0},mediaRequestsAborted:{get:function(){return e.masterPlaylistController_.mediaRequestsAborted_()||0},enumerable:!0},mediaRequestsTimedout:{get:function(){return e.masterPlaylistController_.mediaRequestsTimedout_()||0},enumerable:!0},mediaRequestsErrored:{get:function(){return e.masterPlaylistController_.mediaRequestsErrored_()||0},enumerable:!0},mediaTransferDuration:{get:function(){return e.masterPlaylistController_.mediaTransferDuration_()||0},enumerable:!0},mediaBytesTransferred:{get:function(){return e.masterPlaylistController_.mediaBytesTransferred_()||0},enumerable:!0},mediaSecondsLoaded:{get:function(){return e.masterPlaylistController_.mediaSecondsLoaded_()||0},enumerable:!0}}),this.tech_.one("canplay",this.masterPlaylistController_.setupFirstPlay.bind(this.masterPlaylistController_)),this.masterPlaylistController_.on("selectedinitialmedia",function(){(0,m.default)(e)}),this.on(this.masterPlaylistController_,"progress",function(){this.tech_.trigger("progress")}),this.on(this.masterPlaylistController_,"firstplay",function(){this.ignoreNextSeekingEvent_=!0}),this.tech_.ready(function(){return e.setupQualityLevels_()}),this.tech_.el()&&this.tech_.src(p.default.URL.createObjectURL(this.masterPlaylistController_.mediaSource)))}},{key:"setupQualityLevels_",value:function(){var t=this,e=p.default.players[this.tech_.options_.playerId];e&&e.qualityLevels&&(this.qualityLevels_=e.qualityLevels(),this.masterPlaylistController_.on("selectedinitialmedia",function(){var e,n;e=t.qualityLevels_,(n=t).representations().forEach(function(t){e.addQualityLevel(t)}),w(e,n.playlists)}),this.playlists.on("mediachange",function(){w(t.qualityLevels_,t.playlists)}))}},{key:"play",value:function(){this.masterPlaylistController_.play()}},{key:"setCurrentTime",value:function(t){this.masterPlaylistController_.setCurrentTime(t)}},{key:"duration",value:function(){return this.masterPlaylistController_.duration()}},{key:"seekable",value:function(){return this.masterPlaylistController_.seekable()}},{key:"dispose",value:function(){this.playbackWatcher_&&this.playbackWatcher_.dispose(),this.masterPlaylistController_&&this.masterPlaylistController_.dispose(),this.qualityLevels_&&this.qualityLevels_.dispose(),r(Object.getPrototypeOf(e.prototype),"dispose",this).call(this)}}]),e}(),O=function t(e){return{canHandleSource:function(n){var i=arguments.length<=1||void 0===arguments[1]?{}:arguments[1],r=p.default.mergeOptions(p.default.options,i);return(!r.hls||!r.hls.mode||r.hls.mode===e)&&t.canPlayType(n.type,r)},handleSource:function(t,n){var i=arguments.length<=2||void 0===arguments[2]?{}:arguments[2],r=p.default.mergeOptions(p.default.options,i,{hls:{mode:e}});return"flash"===e&&n.setTimeout(function(){n.trigger("loadstart")},1),n.hls=new S(t,n,r),n.hls.xhr=(0,l.default)(),n.hls.src(t.src),n.hls},canPlayType:function(e){var n=arguments.length<=1||void 0===arguments[1]?{}:arguments[1],i=p.default.mergeOptions(p.default.options,n);return t.canPlayType(e,i)?"maybe":""}}};O.canPlayType=function(t,e){if(p.default.browser.IE_VERSION&&p.default.browser.IE_VERSION<=10)return!1;return!(!e.hls.overrideNative&&E.supportsNativeHls)&&/^(audio|video|application)\/(x-|vnd\.apple\.)?mpegurl/i.test(t)},void 0!==p.default.MediaSource&&void 0!==p.default.URL||(p.default.MediaSource=f.MediaSource,p.default.URL=f.URL);var C=p.default.getTech("Flash");f.MediaSource.supportsNativeMediaSources()&&p.default.getTech("Html5").registerSourceHandler(O("html5"),0),g.default.Uint8Array&&C&&C.registerSourceHandler(O("flash")),p.default.HlsHandler=S,p.default.HlsSourceHandler=O,p.default.Hls=E,p.default.use||p.default.registerComponent("Hls",E),p.default.m3u8=h.default,p.default.options.hls=p.default.options.hls||{},p.default.registerPlugin?p.default.registerPlugin("reloadSourceOnError",_.default):p.default.plugin("reloadSourceOnError",_.default),t.exports={Hls:E,HlsHandler:S,HlsSourceHandler:O}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),r=function(t,e,n){for(var i=!0;i;){var r=t,o=e,a=n;i=!1,null===r&&(r=Function.prototype);var s=Object.getOwnPropertyDescriptor(r,o);if(void 0!==s){if("value"in s)return s.value;var u=s.get;if(void 0===u)return;return u.call(a)}var l=Object.getPrototypeOf(r);if(null===l)return;t=l,e=o,n=a,i=!0,s=l=void 0}};function o(t){return t&&t.__esModule?t:{default:t}}var a=o(n(513)),s=n(405),u=o(n(515)),l=o(n(406)),c=function(t,e,n){var i=e.slice();n=n||0;for(var r=Math.min(t.length,e.length+n),o=n;o<r;o++)i[o-n]=(0,s.mergeOptions)(t[o],i[o-n]);return i};e.updateSegments=c;var d=function(t,e){t.resolvedUri||(t.resolvedUri=(0,a.default)(e,t.uri)),t.key&&!t.key.resolvedUri&&(t.key.resolvedUri=(0,a.default)(e,t.key.uri)),t.map&&!t.map.resolvedUri&&(t.map.resolvedUri=(0,a.default)(e,t.map.uri))};e.resolveSegmentUris=d;var f=function(t,e){var n=(0,s.mergeOptions)(t,{}),i=n.playlists.filter(function(t){return t.uri===e.uri})[0];if(!i)return null;if(i.segments&&e.segments&&i.segments.length===e.segments.length&&i.mediaSequence===e.mediaSequence)return null;var r=(0,s.mergeOptions)(i,e);i.segments&&(r.segments=c(i.segments,e.segments,e.mediaSequence-i.mediaSequence)),r.segments.forEach(function(t){d(t,r.resolvedUri)});for(var o=0;o<n.playlists.length;o++)n.playlists[o].uri===e.uri&&(n.playlists[o]=r);return n.playlists[e.uri]=r,n};e.updateMaster=f;var h=function(t){for(var e=t.playlists.length;e--;){var n=t.playlists[e];t.playlists[n.uri]=n,n.resolvedUri=(0,a.default)(t.uri,n.uri),n.attributes||(n.attributes={},s.log.warn("Invalid playlist STREAM-INF detected. Missing BANDWIDTH attribute."))}};e.setupMediaPlaylists=h;var p=function(t){["AUDIO","SUBTITLES"].forEach(function(e){for(var n in t.mediaGroups[e])for(var i in t.mediaGroups[e][n]){var r=t.mediaGroups[e][n][i];r.uri&&(r.resolvedUri=(0,a.default)(t.uri,r.uri))}})};e.resolveMediaGroupUris=p;var v=function(t,e){var n=t.segments[t.segments.length-1];return e&&n&&n.duration?1e3*n.duration:500*(t.targetDuration||10)};e.refreshDelay=v;var y=function(t){function e(t,n,i){var o=this;if(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),r(Object.getPrototypeOf(e.prototype),"constructor",this).call(this),this.srcUrl=t,this.hls_=n,this.withCredentials=i,!this.srcUrl)throw new Error("A non-empty playlist URL is required");this.state="HAVE_NOTHING",this.on("mediaupdatetimeout",function(){"HAVE_METADATA"===o.state&&(o.state="HAVE_CURRENT_METADATA",o.request=o.hls_.xhr({uri:(0,a.default)(o.master.uri,o.media().uri),withCredentials:o.withCredentials},function(t,e){if(o.request)return t?o.playlistRequestError(o.request,o.media().uri,"HAVE_METADATA"):void o.haveMetadata(o.request,o.media().uri)}))})}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,s.EventTarget),i(e,[{key:"playlistRequestError",value:function(t,e,n){this.request=null,n&&(this.state=n),this.error={playlist:this.master.playlists[e],status:t.status,message:"HLS playlist request error at URL: "+e,responseText:t.responseText,code:t.status>=500?4:2},this.trigger("error")}},{key:"haveMetadata",value:function(t,e){var n=this;this.request=null,this.state="HAVE_METADATA";var i=new u.default.Parser;i.push(t.responseText),i.end(),i.manifest.uri=e,i.manifest.attributes=i.manifest.attributes||{};var r=f(this.master,i.manifest);this.targetDuration=i.manifest.targetDuration,r?(this.master=r,this.media_=this.master.playlists[i.manifest.uri]):this.trigger("playlistunchanged"),this.media().endList||(l.default.clearTimeout(this.mediaUpdateTimeout),this.mediaUpdateTimeout=l.default.setTimeout(function(){n.trigger("mediaupdatetimeout")},v(this.media(),!!r))),this.trigger("loadedplaylist")}},{key:"dispose",value:function(){this.stopRequest(),l.default.clearTimeout(this.mediaUpdateTimeout)}},{key:"stopRequest",value:function(){if(this.request){var t=this.request;this.request=null,t.onreadystatechange=null,t.abort()}}},{key:"media",value:function(t){var e=this;if(!t)return this.media_;if("HAVE_NOTHING"===this.state)throw new Error("Cannot switch media playlist from "+this.state);var n=this.state;if("string"==typeof t){if(!this.master.playlists[t])throw new Error("Unknown playlist URI: "+t);t=this.master.playlists[t]}var i=!this.media_||t.uri!==this.media_.uri;if(this.master.playlists[t.uri].endList)return this.request&&(this.request.onreadystatechange=null,this.request.abort(),this.request=null),this.state="HAVE_METADATA",this.media_=t,void(i&&(this.trigger("mediachanging"),this.trigger("mediachange")));if(i){if(this.state="SWITCHING_MEDIA",this.request){if((0,a.default)(this.master.uri,t.uri)===this.request.url)return;this.request.onreadystatechange=null,this.request.abort(),this.request=null}this.media_&&this.trigger("mediachanging"),this.request=this.hls_.xhr({uri:(0,a.default)(this.master.uri,t.uri),withCredentials:this.withCredentials},function(i,r){if(e.request){if(i)return e.playlistRequestError(e.request,t.uri,n);e.haveMetadata(r,t.uri),"HAVE_MASTER"===n?e.trigger("loadedmetadata"):e.trigger("mediachange")}})}}},{key:"pause",value:function(){this.stopRequest(),l.default.clearTimeout(this.mediaUpdateTimeout),"HAVE_NOTHING"===this.state&&(this.started=!1),"SWITCHING_MEDIA"===this.state?this.media_?this.state="HAVE_METADATA":this.state="HAVE_MASTER":"HAVE_CURRENT_METADATA"===this.state&&(this.state="HAVE_METADATA")}},{key:"load",value:function(t){var e=this;l.default.clearTimeout(this.mediaUpdateTimeout);var n=this.media();if(t){var i=n?n.targetDuration/2*1e3:5e3;this.mediaUpdateTimeout=l.default.setTimeout(function(){return e.load()},i)}else this.started?n&&!n.endList?this.trigger("mediaupdatetimeout"):this.trigger("loadedplaylist"):this.start()}},{key:"start",value:function(){var t=this;this.started=!0,this.request=this.hls_.xhr({uri:this.srcUrl,withCredentials:this.withCredentials},function(e,n){if(t.request){if(t.request=null,e)return t.error={status:n.status,message:"HLS playlist request error at URL: "+t.srcUrl,responseText:n.responseText,code:2},"HAVE_NOTHING"===t.state&&(t.started=!1),t.trigger("error");var i=new u.default.Parser;return i.push(n.responseText),i.end(),t.state="HAVE_MASTER",i.manifest.uri=t.srcUrl,i.manifest.playlists?(t.master=i.manifest,h(t.master),p(t.master),t.trigger("loadedplaylist"),void(t.request||t.media(i.manifest.playlists[0]))):(t.master={mediaGroups:{AUDIO:{},VIDEO:{},"CLOSED-CAPTIONS":{},SUBTITLES:{}},uri:l.default.location.href,playlists:[{uri:t.srcUrl}]},t.master.playlists[t.srcUrl]=t.master.playlists[0],t.master.playlists[0].resolvedUri=t.srcUrl,t.master.playlists[0].attributes=t.master.playlists[0].attributes||{},t.haveMetadata(n,t.srcUrl),t.trigger("loadedmetadata"))}})}}]),e}();e.default=y},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var r=i(n(514)),o=i(n(406));e.default=function(t,e){return/^[a-z]+:/i.test(e)?e:(/\/\//i.test(t)||(t=r.default.buildAbsoluteURL(o.default.location.href,t)),r.default.buildAbsoluteURL(t,e))},t.exports=e.default},function(t,e,n){var i,r,o,a,s;i=/^((?:[a-zA-Z0-9+\-.]+:)?)(\/\/[^\/?#]*)?((?:[^\/?#]*\/)*[^;?#]*)?(;[^?#]*)?(\?[^#]*)?(#[^]*)?$/,r=/^([^\/?#]*)([^]*)$/,o=/(?:\/|^)\.(?=\/)/g,a=/(?:\/|^)\.\.\/(?!\.\.\/)[^\/]*(?=\/)/g,s={buildAbsoluteURL:function(t,e,n){if(n=n||{},t=t.trim(),!(e=e.trim())){if(!n.alwaysNormalize)return t;var i=s.parseURL(t);if(!i)throw new Error("Error trying to parse base URL.");return i.path=s.normalizePath(i.path),s.buildURLFromParts(i)}var o=s.parseURL(e);if(!o)throw new Error("Error trying to parse relative URL.");if(o.scheme)return n.alwaysNormalize?(o.path=s.normalizePath(o.path),s.buildURLFromParts(o)):e;var a=s.parseURL(t);if(!a)throw new Error("Error trying to parse base URL.");if(!a.netLoc&&a.path&&"/"!==a.path[0]){var u=r.exec(a.path);a.netLoc=u[1],a.path=u[2]}a.netLoc&&!a.path&&(a.path="/");var l={scheme:a.scheme,netLoc:o.netLoc,path:null,params:o.params,query:o.query,fragment:o.fragment};if(!o.netLoc&&(l.netLoc=a.netLoc,"/"!==o.path[0]))if(o.path){var c=a.path,d=c.substring(0,c.lastIndexOf("/")+1)+o.path;l.path=s.normalizePath(d)}else l.path=a.path,o.params||(l.params=a.params,o.query||(l.query=a.query));return null===l.path&&(l.path=n.alwaysNormalize?s.normalizePath(o.path):o.path),s.buildURLFromParts(l)},parseURL:function(t){var e=i.exec(t);return e?{scheme:e[1]||"",netLoc:e[2]||"",path:e[3]||"",params:e[4]||"",query:e[5]||"",fragment:e[6]||""}:null},normalizePath:function(t){for(t=t.split("").reverse().join("").replace(o,"");t.length!==(t=t.replace(a,"")).length;);return t.split("").reverse().join("")},buildURLFromParts:function(t){return t.scheme+t.netLoc+t.path+t.params+t.query+t.fragment}},t.exports=s},function(t,e,n){"use strict";var i=a(n(516)),r=a(n(518)),o=a(n(519));function a(t){return t&&t.__esModule?t:{default:t}}t.exports={LineStream:i.default,ParseStream:r.default,Parser:o.default}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i,r=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),o=n(517),a=(i=o)&&i.__esModule?i:{default:i};var s=function(t){function e(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var t=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this));return t.buffer="",t}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,a["default"]),r(e,[{key:"push",value:function(t){var e=void 0;for(this.buffer+=t,e=this.buffer.indexOf("\n");e>-1;e=this.buffer.indexOf("\n"))this.trigger("data",this.buffer.substring(0,e)),this.buffer=this.buffer.substring(e+1)}}]),e}();e.default=s},function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}();var i=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.listeners={}}return n(t,[{key:"on",value:function(t,e){this.listeners[t]||(this.listeners[t]=[]),this.listeners[t].push(e)}},{key:"off",value:function(t,e){if(!this.listeners[t])return!1;var n=this.listeners[t].indexOf(e);return this.listeners[t].splice(n,1),n>-1}},{key:"trigger",value:function(t){var e=this.listeners[t],n=void 0,i=void 0,r=void 0;if(e)if(2===arguments.length)for(i=e.length,n=0;n<i;++n)e[n].call(this,arguments[1]);else for(r=Array.prototype.slice.call(arguments,1),i=e.length,n=0;n<i;++n)e[n].apply(this,r)}},{key:"dispose",value:function(){this.listeners={}}},{key:"pipe",value:function(t){this.on("data",function(e){t.push(e)})}}]),t}();e.default=i},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i,r=function(){return function(t,e){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return function(t,e){var n=[],i=!0,r=!1,o=void 0;try{for(var a,s=t[Symbol.iterator]();!(i=(a=s.next()).done)&&(n.push(a.value),!e||n.length!==e);i=!0);}catch(t){r=!0,o=t}finally{try{!i&&s.return&&s.return()}finally{if(r)throw o}}return n}(t,e);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),o=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),a=n(517),s=(i=a)&&i.__esModule?i:{default:i};var u=function(t){for(var e=t.split(new RegExp('(?:^|,)((?:[^=]*)=(?:"[^"]*"|[^,]*))')),n={},i=e.length,r=void 0;i--;)""!==e[i]&&((r=/([^=]*)=(.*)/.exec(e[i]).slice(1))[0]=r[0].replace(/^\s+|\s+$/g,""),r[1]=r[1].replace(/^\s+|\s+$/g,""),r[1]=r[1].replace(/^['"](.*)['"]$/g,"$1"),n[r[0]]=r[1]);return n},l=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,s["default"]),o(e,[{key:"push",value:function(t){var e=void 0,n=void 0;if(0!==(t=t.replace(/^[\u0000\s]+|[\u0000\s]+$/g,"")).length)if("#"===t[0])if(0===t.indexOf("#EXT"))if(t=t.replace("\r",""),e=/^#EXTM3U/.exec(t))this.trigger("data",{type:"tag",tagType:"m3u"});else{if(e=/^#EXTINF:?([0-9\.]*)?,?(.*)?$/.exec(t))return n={type:"tag",tagType:"inf"},e[1]&&(n.duration=parseFloat(e[1])),e[2]&&(n.title=e[2]),void this.trigger("data",n);if(e=/^#EXT-X-TARGETDURATION:?([0-9.]*)?/.exec(t))return n={type:"tag",tagType:"targetduration"},e[1]&&(n.duration=parseInt(e[1],10)),void this.trigger("data",n);if(e=/^#ZEN-TOTAL-DURATION:?([0-9.]*)?/.exec(t))return n={type:"tag",tagType:"totalduration"},e[1]&&(n.duration=parseInt(e[1],10)),void this.trigger("data",n);if(e=/^#EXT-X-VERSION:?([0-9.]*)?/.exec(t))return n={type:"tag",tagType:"version"},e[1]&&(n.version=parseInt(e[1],10)),void this.trigger("data",n);if(e=/^#EXT-X-MEDIA-SEQUENCE:?(\-?[0-9.]*)?/.exec(t))return n={type:"tag",tagType:"media-sequence"},e[1]&&(n.number=parseInt(e[1],10)),void this.trigger("data",n);if(e=/^#EXT-X-DISCONTINUITY-SEQUENCE:?(\-?[0-9.]*)?/.exec(t))return n={type:"tag",tagType:"discontinuity-sequence"},e[1]&&(n.number=parseInt(e[1],10)),void this.trigger("data",n);if(e=/^#EXT-X-PLAYLIST-TYPE:?(.*)?$/.exec(t))return n={type:"tag",tagType:"playlist-type"},e[1]&&(n.playlistType=e[1]),void this.trigger("data",n);if(e=/^#EXT-X-BYTERANGE:?([0-9.]*)?@?([0-9.]*)?/.exec(t))return n={type:"tag",tagType:"byterange"},e[1]&&(n.length=parseInt(e[1],10)),e[2]&&(n.offset=parseInt(e[2],10)),void this.trigger("data",n);if(e=/^#EXT-X-ALLOW-CACHE:?(YES|NO)?/.exec(t))return n={type:"tag",tagType:"allow-cache"},e[1]&&(n.allowed=!/NO/.test(e[1])),void this.trigger("data",n);if(e=/^#EXT-X-MAP:?(.*)$/.exec(t)){if(n={type:"tag",tagType:"map"},e[1]){var i=u(e[1]);if(i.URI&&(n.uri=i.URI),i.BYTERANGE){var o=i.BYTERANGE.split("@"),a=r(o,2),s=a[0],l=a[1];n.byterange={},s&&(n.byterange.length=parseInt(s,10)),l&&(n.byterange.offset=parseInt(l,10))}}this.trigger("data",n)}else if(e=/^#EXT-X-STREAM-INF:?(.*)$/.exec(t)){if(n={type:"tag",tagType:"stream-inf"},e[1]){if(n.attributes=u(e[1]),n.attributes.RESOLUTION){var c=n.attributes.RESOLUTION.split("x"),d={};c[0]&&(d.width=parseInt(c[0],10)),c[1]&&(d.height=parseInt(c[1],10)),n.attributes.RESOLUTION=d}n.attributes.BANDWIDTH&&(n.attributes.BANDWIDTH=parseInt(n.attributes.BANDWIDTH,10)),n.attributes["PROGRAM-ID"]&&(n.attributes["PROGRAM-ID"]=parseInt(n.attributes["PROGRAM-ID"],10))}this.trigger("data",n)}else{if(e=/^#EXT-X-MEDIA:?(.*)$/.exec(t))return n={type:"tag",tagType:"media"},e[1]&&(n.attributes=u(e[1])),void this.trigger("data",n);if(e=/^#EXT-X-ENDLIST/.exec(t))this.trigger("data",{type:"tag",tagType:"endlist"});else if(e=/^#EXT-X-DISCONTINUITY/.exec(t))this.trigger("data",{type:"tag",tagType:"discontinuity"});else{if(e=/^#EXT-X-PROGRAM-DATE-TIME:?(.*)$/.exec(t))return n={type:"tag",tagType:"program-date-time"},e[1]&&(n.dateTimeString=e[1],n.dateTimeObject=new Date(e[1])),void this.trigger("data",n);if(e=/^#EXT-X-KEY:?(.*)$/.exec(t))return n={type:"tag",tagType:"key"},e[1]&&(n.attributes=u(e[1]),n.attributes.IV&&("0x"===n.attributes.IV.substring(0,2).toLowerCase()&&(n.attributes.IV=n.attributes.IV.substring(2)),n.attributes.IV=n.attributes.IV.match(/.{8}/g),n.attributes.IV[0]=parseInt(n.attributes.IV[0],16),n.attributes.IV[1]=parseInt(n.attributes.IV[1],16),n.attributes.IV[2]=parseInt(n.attributes.IV[2],16),n.attributes.IV[3]=parseInt(n.attributes.IV[3],16),n.attributes.IV=new Uint32Array(n.attributes.IV))),void this.trigger("data",n);if(e=/^#EXT-X-CUE-OUT-CONT:?(.*)?$/.exec(t))return n={type:"tag",tagType:"cue-out-cont"},e[1]?n.data=e[1]:n.data="",void this.trigger("data",n);if(e=/^#EXT-X-CUE-OUT:?(.*)?$/.exec(t))return n={type:"tag",tagType:"cue-out"},e[1]?n.data=e[1]:n.data="",void this.trigger("data",n);if(e=/^#EXT-X-CUE-IN:?(.*)?$/.exec(t))return n={type:"tag",tagType:"cue-in"},e[1]?n.data=e[1]:n.data="",void this.trigger("data",n);this.trigger("data",{type:"tag",data:t.slice(4)})}}}else this.trigger("data",{type:"comment",text:t.slice(1)});else this.trigger("data",{type:"uri",uri:t})}}]),e}();e.default=l},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},r=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),o=u(n(517)),a=u(n(516)),s=u(n(518));function u(t){return t&&t.__esModule?t:{default:t}}var l=function(t){function e(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var t=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this));t.lineStream=new a.default,t.parseStream=new s.default,t.lineStream.pipe(t.parseStream);var n=t,r=[],o={},u=void 0,l=void 0,c={AUDIO:{},VIDEO:{},"CLOSED-CAPTIONS":{},SUBTITLES:{}},d=0;return t.manifest={allowCache:!0,discontinuityStarts:[],segments:[]},t.parseStream.on("data",function(t){var e=void 0,a=void 0;({tag:function(){(({"allow-cache":function(){this.manifest.allowCache=t.allowed,"allowed"in t||(this.trigger("info",{message:"defaulting allowCache to YES"}),this.manifest.allowCache=!0)},byterange:function(){var e={};"length"in t&&(o.byterange=e,e.length=t.length,"offset"in t||(this.trigger("info",{message:"defaulting offset to zero"}),t.offset=0)),"offset"in t&&(o.byterange=e,e.offset=t.offset)},endlist:function(){this.manifest.endList=!0},inf:function(){"mediaSequence"in this.manifest||(this.manifest.mediaSequence=0,this.trigger("info",{message:"defaulting media sequence to zero"})),"discontinuitySequence"in this.manifest||(this.manifest.discontinuitySequence=0,this.trigger("info",{message:"defaulting discontinuity sequence to zero"})),t.duration>0&&(o.duration=t.duration),0===t.duration&&(o.duration=.01,this.trigger("info",{message:"updating zero segment duration to a small value"})),this.manifest.segments=r},key:function(){t.attributes?"NONE"!==t.attributes.METHOD?t.attributes.URI?(t.attributes.METHOD||this.trigger("warn",{message:"defaulting key method to AES-128"}),l={method:t.attributes.METHOD||"AES-128",uri:t.attributes.URI},void 0!==t.attributes.IV&&(l.iv=t.attributes.IV)):this.trigger("warn",{message:"ignoring key declaration without URI"}):l=null:this.trigger("warn",{message:"ignoring key declaration without attribute list"})},"media-sequence":function(){isFinite(t.number)?this.manifest.mediaSequence=t.number:this.trigger("warn",{message:"ignoring invalid media sequence: "+t.number})},"discontinuity-sequence":function(){isFinite(t.number)?(this.manifest.discontinuitySequence=t.number,d=t.number):this.trigger("warn",{message:"ignoring invalid discontinuity sequence: "+t.number})},"playlist-type":function(){/VOD|EVENT/.test(t.playlistType)?this.manifest.playlistType=t.playlistType:this.trigger("warn",{message:"ignoring unknown playlist type: "+t.playlist})},map:function(){u={},t.uri&&(u.uri=t.uri),t.byterange&&(u.byterange=t.byterange)},"stream-inf":function(){this.manifest.playlists=r,this.manifest.mediaGroups=this.manifest.mediaGroups||c,t.attributes?(o.attributes||(o.attributes={}),i(o.attributes,t.attributes)):this.trigger("warn",{message:"ignoring empty stream-inf attributes"})},media:function(){if(this.manifest.mediaGroups=this.manifest.mediaGroups||c,t.attributes&&t.attributes.TYPE&&t.attributes["GROUP-ID"]&&t.attributes.NAME){var n=this.manifest.mediaGroups[t.attributes.TYPE];n[t.attributes["GROUP-ID"]]=n[t.attributes["GROUP-ID"]]||{},e=n[t.attributes["GROUP-ID"]],(a={default:/yes/i.test(t.attributes.DEFAULT)}).default?a.autoselect=!0:a.autoselect=/yes/i.test(t.attributes.AUTOSELECT),t.attributes.LANGUAGE&&(a.language=t.attributes.LANGUAGE),t.attributes.URI&&(a.uri=t.attributes.URI),t.attributes["INSTREAM-ID"]&&(a.instreamId=t.attributes["INSTREAM-ID"]),t.attributes.CHARACTERISTICS&&(a.characteristics=t.attributes.CHARACTERISTICS),t.attributes.FORCED&&(a.forced=/yes/i.test(t.attributes.FORCED)),e[t.attributes.NAME]=a}else this.trigger("warn",{message:"ignoring incomplete or missing media group"})},discontinuity:function(){d+=1,o.discontinuity=!0,this.manifest.discontinuityStarts.push(r.length)},"program-date-time":function(){this.manifest.dateTimeString=t.dateTimeString,this.manifest.dateTimeObject=t.dateTimeObject},targetduration:function(){!isFinite(t.duration)||t.duration<0?this.trigger("warn",{message:"ignoring invalid target duration: "+t.duration}):this.manifest.targetDuration=t.duration},totalduration:function(){!isFinite(t.duration)||t.duration<0?this.trigger("warn",{message:"ignoring invalid total duration: "+t.duration}):this.manifest.totalDuration=t.duration},"cue-out":function(){o.cueOut=t.data},"cue-out-cont":function(){o.cueOutCont=t.data},"cue-in":function(){o.cueIn=t.data}})[t.tagType]||function(){}).call(n)},uri:function(){o.uri=t.uri,r.push(o),!this.manifest.targetDuration||"duration"in o||(this.trigger("warn",{message:"defaulting segment duration to the target duration"}),o.duration=this.manifest.targetDuration),l&&(o.key=l),o.timeline=d,u&&(o.map=u),o={}},comment:function(){}})[t.type].call(n)}),t}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,o["default"]),r(e,[{key:"push",value:function(t){this.lineStream.push(t)}},{key:"end",value:function(){this.lineStream.push("\n")}}]),e}();e.default=l},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i,r=n(405),o=n(406),a=(i=o)&&i.__esModule?i:{default:i},s=function(t,e,n){var i,r;return void 0===e&&(e=t.mediaSequence+t.segments.length),e<t.mediaSequence?0:(i=function(t,e){var n=0,i=e-t.mediaSequence,r=t.segments[i];if(r){if(void 0!==r.start)return{result:r.start,precise:!0};if(void 0!==r.end)return{result:r.end-r.duration,precise:!0}}for(;i--;){if(void 0!==(r=t.segments[i]).end)return{result:n+r.end,precise:!0};if(n+=r.duration,void 0!==r.start)return{result:n+r.start,precise:!0}}return{result:n,precise:!1}}(t,e)).precise?i.result:(r=function(t,e){for(var n=0,i=void 0,r=e-t.mediaSequence;r<t.segments.length;r++){if(void 0!==(i=t.segments[r]).start)return{result:i.start-n,precise:!0};if(n+=i.duration,void 0!==i.end)return{result:i.end-n,precise:!0}}return{result:-1,precise:!1}}(t,e)).precise?r.result:i.result+n},u=function(t,e,n){if(!t)return 0;if("number"!=typeof n&&(n=0),void 0===e){if(t.totalDuration)return t.totalDuration;if(!t.endList)return a.default.Infinity}return s(t,e,n)};e.duration=u;var l=function(t,e,n){var i=0;if(e>n){var r=[n,e];e=r[0],n=r[1]}if(e<0){for(var o=e;o<Math.min(0,n);o++)i+=t.targetDuration;e=0}for(o=e;o<n;o++)i+=t.segments[o].duration;return i};e.sumDurations=l;var c=function(t){if(!t.segments.length)return 0;for(var e=t.segments.length-1,n=t.segments[e].duration||t.targetDuration,i=n+2*t.targetDuration;e--&&!((n+=t.segments[e].duration)>=i););return Math.max(0,e)};e.safeLiveIndex=c;var d=function(t,e,n){if(!t||!t.segments)return null;if(t.endList)return u(t);if(null===e)return null;e=e||0;var i=n?c(t):t.segments.length;return s(t,t.mediaSequence+i,e)};e.playlistEnd=d;var f=function(t,e){var n=e||0,i=d(t,e,!0);return null===i?(0,r.createTimeRange)():(0,r.createTimeRange)(n,i)};e.seekable=f;var h=function(t){return t-Math.floor(t)==0},p=function(t,e){if(h(e))return e+.1*t;for(var n=e.toString().split(".")[1].length,i=1;i<=n;i++){var r=Math.pow(10,i),o=e*r;if(h(o)||i===n)return(o+t)/r}},v=p.bind(null,1),y=p.bind(null,-1),m=function(t,e,n,i){var r=void 0,o=void 0,a=t.segments.length,s=e-i;if(s<0){if(n>0)for(r=n-1;r>=0;r--)if(o=t.segments[r],(s+=y(o.duration))>0)return{mediaIndex:r,startTime:i-l(t,n,r)};return{mediaIndex:0,startTime:e}}if(n<0){for(r=n;r<0;r++)if((s-=t.targetDuration)<0)return{mediaIndex:0,startTime:e};n=0}for(r=n;r<a;r++)if(o=t.segments[r],(s-=v(o.duration))<0)return{mediaIndex:r,startTime:i+l(t,n,r)};return{mediaIndex:a-1,startTime:e}};e.getMediaInfoForTime=m;var g=function(t){return t.excludeUntil&&t.excludeUntil>Date.now()};e.isBlacklisted=g;var b=function(t){return t.excludeUntil&&t.excludeUntil===1/0};e.isIncompatible=b;var _=function(t){var e=g(t);return!t.disabled&&!e};e.isEnabled=_;var T=function(t){return t.disabled};e.isDisabled=T;var E=function(t){for(var e=0;e<t.segments.length;e++)if(t.segments[e].key)return!0;return!1};e.isAes=E;var w=function(t){for(var e=0;e<t.segments.length;e++)if(t.segments[e].map)return!0;return!1};e.isFmp4=w;var k=function(t,e){return e.attributes&&e.attributes[t]};e.hasAttribute=k;var S=function(t,e,n){var i=arguments.length<=3||void 0===arguments[3]?0:arguments[3];return k("BANDWIDTH",n)?(t*n.attributes.BANDWIDTH-8*i)/e:NaN};e.estimateSegmentRequestTime=S;var O=function(t,e){if(1===t.playlists.length)return!0;var n=e.attributes.BANDWIDTH||Number.MAX_VALUE;return 0===t.playlists.filter(function(t){return!!_(t)&&(t.attributes.BANDWIDTH||0)<n}).length};e.isLowestEnabledRendition=O,e.default={duration:u,seekable:f,safeLiveIndex:c,getMediaInfoForTime:m,isEnabled:_,isDisabled:T,isBlacklisted:g,isIncompatible:b,playlistEnd:d,isAes:E,isFmp4:w,hasAttribute:k,estimateSegmentRequestTime:S,isLowestEnabledRendition:O}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i,r=n(405),o=(i=r)&&i.__esModule?i:{default:i};e.default=function(){return function t(e,n){e=(0,r.mergeOptions)({timeout:45e3},e);var i=t.beforeRequest||o.default.Hls.xhr.beforeRequest;if(i&&"function"==typeof i){var a=i(e);a&&(e=a)}var s=(0,r.xhr)(e,function(t,e){var i=s.response;!t&&i&&(s.responseTime=Date.now(),s.roundTripTime=s.responseTime-s.requestTime,s.bytesReceived=i.byteLength||i.length,s.bandwidth||(s.bandwidth=Math.floor(s.bytesReceived/s.roundTripTime*8*1e3))),t&&"ETIMEDOUT"===t.code&&(s.timedout=!0),t||s.aborted||200===e.statusCode||206===e.statusCode||0===e.statusCode||(t=new Error("XHR Failed with a response of: "+(s&&(i||s.responseText)))),n(t,s)}),u=s.abort;return s.abort=function(){return s.aborted=!0,u.apply(s,arguments)},s.uri=e.uri,s.requestTime=Date.now(),s}},t.exports=e.default},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i,r=n(523),o=n(525),a=(i=o)&&i.__esModule?i:{default:i};e.default={decrypt:r.decrypt,Decrypter:r.Decrypter,AsyncStream:a.default},t.exports=e.default},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}();function r(t){return t&&t.__esModule?t:{default:t}}var o=r(n(524)),a=r(n(525)),s=n(527),u=function(t){return t<<24|(65280&t)<<8|(16711680&t)>>8|t>>>24},l=function(t,e,n){var i=new Int32Array(t.buffer,t.byteOffset,t.byteLength>>2),r=new o.default(Array.prototype.slice.call(e)),a=new Uint8Array(t.byteLength),s=new Int32Array(a.buffer),l=void 0,c=void 0,d=void 0,f=void 0,h=void 0,p=void 0,v=void 0,y=void 0,m=void 0;for(l=n[0],c=n[1],d=n[2],f=n[3],m=0;m<i.length;m+=4)h=u(i[m]),p=u(i[m+1]),v=u(i[m+2]),y=u(i[m+3]),r.decrypt(h,p,v,y,s,m),s[m]=u(s[m]^l),s[m+1]=u(s[m+1]^c),s[m+2]=u(s[m+2]^d),s[m+3]=u(s[m+3]^f),l=h,c=p,d=v,f=y;return a};e.decrypt=l;var c=function(){function t(e,n,i,r){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t);var o=t.STEP,l=new Int32Array(e.buffer),c=new Uint8Array(e.byteLength),d=0;for(this.asyncStream_=new a.default,this.asyncStream_.push(this.decryptChunk_(l.subarray(d,d+o),n,i,c)),d=o;d<l.length;d+=o)i=new Uint32Array([u(l[d-4]),u(l[d-3]),u(l[d-2]),u(l[d-1])]),this.asyncStream_.push(this.decryptChunk_(l.subarray(d,d+o),n,i,c));this.asyncStream_.push(function(){r(null,(0,s.unpad)(c))})}return i(t,[{key:"decryptChunk_",value:function(t,e,n,i){return function(){var r=l(t,e,n);i.set(r,t.byteOffset)}}}],[{key:"STEP",get:function(){return 32e3}}]),t}();e.Decrypter=c,e.default={Decrypter:c,decrypt:l}},function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}();var i=function(){var t=[[[],[],[],[],[]],[[],[],[],[],[]]],e=t[0],n=t[1],i=e[4],r=n[4],o=void 0,a=void 0,s=void 0,u=[],l=[],c=void 0,d=void 0,f=void 0,h=void 0,p=void 0;for(o=0;o<256;o++)l[(u[o]=o<<1^283*(o>>7))^o]=o;for(a=s=0;!i[a];a^=c||1,s=l[s]||1)for(f=(f=s^s<<1^s<<2^s<<3^s<<4)>>8^255&f^99,i[a]=f,r[f]=a,p=16843009*u[d=u[c=u[a]]]^65537*d^257*c^16843008*a,h=257*u[f]^16843008*f,o=0;o<4;o++)e[o][a]=h=h<<24^h>>>8,n[o][f]=p=p<<24^p>>>8;for(o=0;o<5;o++)e[o]=e[o].slice(0),n[o]=n[o].slice(0);return t},r=null,o=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),r||(r=i()),this._tables=[[r[0][0].slice(),r[0][1].slice(),r[0][2].slice(),r[0][3].slice(),r[0][4].slice()],[r[1][0].slice(),r[1][1].slice(),r[1][2].slice(),r[1][3].slice(),r[1][4].slice()]];var n=void 0,o=void 0,a=void 0,s=void 0,u=void 0,l=this._tables[0][4],c=this._tables[1],d=e.length,f=1;if(4!==d&&6!==d&&8!==d)throw new Error("Invalid aes key size");for(s=e.slice(0),u=[],this._key=[s,u],n=d;n<4*d+28;n++)a=s[n-1],(n%d==0||8===d&&n%d==4)&&(a=l[a>>>24]<<24^l[a>>16&255]<<16^l[a>>8&255]<<8^l[255&a],n%d==0&&(a=a<<8^a>>>24^f<<24,f=f<<1^283*(f>>7))),s[n]=s[n-d]^a;for(o=0;n;o++,n--)a=s[3&o?n:n-4],u[o]=n<=4||o<4?a:c[0][l[a>>>24]]^c[1][l[a>>16&255]]^c[2][l[a>>8&255]]^c[3][l[255&a]]}return n(t,[{key:"decrypt",value:function(t,e,n,i,r,o){var a=this._key[1],s=t^a[0],u=i^a[1],l=n^a[2],c=e^a[3],d=void 0,f=void 0,h=void 0,p=a.length/4-2,v=void 0,y=4,m=this._tables[1],g=m[0],b=m[1],_=m[2],T=m[3],E=m[4];for(v=0;v<p;v++)d=g[s>>>24]^b[u>>16&255]^_[l>>8&255]^T[255&c]^a[y],f=g[u>>>24]^b[l>>16&255]^_[c>>8&255]^T[255&s]^a[y+1],h=g[l>>>24]^b[c>>16&255]^_[s>>8&255]^T[255&u]^a[y+2],c=g[c>>>24]^b[s>>16&255]^_[u>>8&255]^T[255&l]^a[y+3],y+=4,s=d,u=f,l=h;for(v=0;v<4;v++)r[(3&-v)+o]=E[s>>>24]<<24^E[u>>16&255]<<16^E[l>>8&255]<<8^E[255&c]^a[y++],d=s,s=u,u=l,l=c,c=d}}]),t}();e.default=o,t.exports=e.default},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),r=function(t,e,n){for(var i=!0;i;){var r=t,o=e,a=n;i=!1,null===r&&(r=Function.prototype);var s=Object.getOwnPropertyDescriptor(r,o);if(void 0!==s){if("value"in s)return s.value;var u=s.get;if(void 0===u)return;return u.call(a)}var l=Object.getPrototypeOf(r);if(null===l)return;t=l,e=o,n=a,i=!0,s=l=void 0}};var o,a=n(526),s=(o=a)&&o.__esModule?o:{default:o},u=function(t){function e(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),r(Object.getPrototypeOf(e.prototype),"constructor",this).call(this,s.default),this.jobs=[],this.delay=1,this.timeout_=null}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,s["default"]),i(e,[{key:"processJob_",value:function(){this.jobs.shift()(),this.jobs.length?this.timeout_=setTimeout(this.processJob_.bind(this),this.delay):this.timeout_=null}},{key:"push",value:function(t){this.jobs.push(t),this.timeout_||(this.timeout_=setTimeout(this.processJob_.bind(this),this.delay))}}]),e}();e.default=u,t.exports=e.default},function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}();var i=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.listeners={}}return n(t,[{key:"on",value:function(t,e){this.listeners[t]||(this.listeners[t]=[]),this.listeners[t].push(e)}},{key:"off",value:function(t,e){var n;return!!this.listeners[t]&&(n=this.listeners[t].indexOf(e),this.listeners[t].splice(n,1),n>-1)}},{key:"trigger",value:function(t){var e=void 0,n=void 0,i=void 0,r=void 0;if(e=this.listeners[t])if(2===arguments.length)for(i=e.length,n=0;n<i;++n)e[n].call(this,arguments[1]);else for(r=Array.prototype.slice.call(arguments,1),i=e.length,n=0;n<i;++n)e[n].apply(this,r)}},{key:"dispose",value:function(){this.listeners={}}},{key:"pipe",value:function(t){this.on("data",function(e){t.push(e)})}}]),t}();e.default=i,t.exports=e.default},function(t,e,n){"use strict";e.pad=n(528),e.unpad=n(529)},function(t,e){"use strict";var n;t.exports=function(t){var e=n[t.byteLength%16||0],i=new Uint8Array(t.byteLength+e.length);return i.set(t),i.set(e,t.byteLength),i},n=[[16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16],[15,15,15,15,15,15,15,15,15,15,15,15,15,15,15],[14,14,14,14,14,14,14,14,14,14,14,14,14,14],[13,13,13,13,13,13,13,13,13,13,13,13,13],[12,12,12,12,12,12,12,12,12,12,12,12],[11,11,11,11,11,11,11,11,11,11,11],[10,10,10,10,10,10,10,10,10,10],[9,9,9,9,9,9,9,9,9],[8,8,8,8,8,8,8,8],[7,7,7,7,7,7,7],[6,6,6,6,6,6],[5,5,5,5,5],[4,4,4,4],[3,3,3],[2,2],[1]]},function(t,e){"use strict";t.exports=function(t){return t.subarray(0,t.byteLength-t[t.byteLength-1])}},function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(t,e){return t.start(e)+"-"+t.end(e)},i=function(t,e){var n=t.toString(16);return"00".substring(0,2-n.length)+n+(e%2?" ":"")},r=function(t){return t>=32&&t<126?String.fromCharCode(t):"."},o={hexDump:function(t){for(var e=Array.prototype.slice.call(t),n="",o=0;o<e.length/16;o++)n+=e.slice(16*o,16*o+16).map(i).join("")+" "+e.slice(16*o,16*o+16).map(r).join("")+"\n";return n},tagDump:function(t){return o.hexDump(t.bytes)},textRanges:function(t){var e="",i=void 0;for(i=0;i<t.length;i++)e+=n(t,i)+" ";return e},createTransferableMessage:function(t){var e={};return Object.keys(t).forEach(function(n){var i=t[n];ArrayBuffer.isView(i)?e[n]={bytes:i.buffer,byteOffset:i.byteOffset,byteLength:i.byteLength}:e[n]=i}),e},initSegmentId:function(t){var e=t.byterange||{length:1/0,offset:0};return[e.length,e.offset,t.resolvedUri].join(",")}};e.default=o,t.exports=e.default},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var r=i(n(406)),o=i(n(532)),a=i(n(556)),s=i(n(405)),u=0,l={mode:"auto"};s.default.mediaSources={};var c=function(t,e){var n=s.default.mediaSources[t];if(!n)throw new Error("Media Source not found (Video.js)");n.trigger({type:"sourceopen",swfId:e})},d=function(){return!!r.default.MediaSource&&!!r.default.MediaSource.isTypeSupported&&r.default.MediaSource.isTypeSupported('video/mp4;codecs="avc1.4d400d,mp4a.40.2"')},f=function(t){var e=s.default.mergeOptions(l,t);if(this.MediaSource={open:c,supportsNativeMediaSources:d},"html5"===e.mode||"auto"===e.mode&&d())return new a.default;if(s.default.getTech("Flash"))return new o.default;throw new Error("Cannot use Flash or Html5 to create a MediaSource for this video")};e.MediaSource=f,f.open=c,f.supportsNativeMediaSources=d;var h={createObjectURL:function(t){var e=void 0;return t instanceof a.default?(e=r.default.URL.createObjectURL(t.nativeMediaSource_),t.url_=e,e):t instanceof o.default?(e="blob:vjs-media-source/"+u,u++,s.default.mediaSources[e]=t,e):(e=r.default.URL.createObjectURL(t),t.url_=e,e)}};e.URL=h,s.default.MediaSource=f,s.default.URL=h},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),r=function(t,e,n){for(var i=!0;i;){var r=t,o=e,a=n;i=!1,null===r&&(r=Function.prototype);var s=Object.getOwnPropertyDescriptor(r,o);if(void 0!==s){if("value"in s)return s.value;var u=s.get;if(void 0===u)return;return u.call(a)}var l=Object.getPrototypeOf(r);if(null===l)return;t=l,e=o,n=a,i=!0,s=l=void 0}};function o(t){return t&&t.__esModule?t:{default:t}}var a=o(n(407)),s=o(n(405)),u=o(n(533)),l=o(n(554)),c=n(555),d=function(t){function e(){var t=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),r(Object.getPrototypeOf(e.prototype),"constructor",this).call(this),this.sourceBuffers=[],this.readyState="closed",this.on(["sourceopen","webkitsourceopen"],function(e){t.swfObj=a.default.getElementById(e.swfId),t.player_=(0,s.default)(t.swfObj.parentNode),t.tech_=t.swfObj.tech,t.readyState="open",t.tech_.on("seeking",function(){for(var e=t.sourceBuffers.length;e--;)t.sourceBuffers[e].abort()}),t.swfObj&&t.swfObj.vjs_load()})}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,s["default"].EventTarget),i(e,[{key:"addSeekableRange_",value:function(){}},{key:"addSourceBuffer",value:function(t){var e=(0,c.parseContentType)(t),n=void 0;if("video/mp2t"!==e.type&&"audio/mp2t"!==e.type)throw new Error("NotSupportedError (Video.js)");return n=new u.default(this),this.sourceBuffers.push(n),n}},{key:"endOfStream",value:function(t){"network"===t?this.tech_.error(2):"decode"===t&&this.tech_.error(3),"ended"!==this.readyState&&(this.readyState="ended",this.swfObj.vjs_endOfStream())}}]),e}();e.default=d;try{Object.defineProperty(d.prototype,"duration",{get:function(){return this.swfObj?this.swfObj.vjs_getProperty("duration"):NaN},set:function(t){var e=void 0,n=this.swfObj.vjs_getProperty("duration");if(this.swfObj.vjs_setProperty("duration",t),t<n)for(e=0;e<this.sourceBuffers.length;e++)this.sourceBuffers[e].remove(t,n);return t}})}catch(t){d.prototype.duration=NaN}for(var f in l.default)d[f]=l.default[f];t.exports=e.default},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),r=function(t,e,n){for(var i=!0;i;){var r=t,o=e,a=n;i=!1,null===r&&(r=Function.prototype);var s=Object.getOwnPropertyDescriptor(r,o);if(void 0!==s){if("value"in s)return s.value;var u=s.get;if(void 0===u)return;return u.call(a)}var l=Object.getPrototypeOf(r);if(null===l)return;t=l,e=o,n=a,i=!0,s=l=void 0}};function o(t){return t&&t.__esModule?t:{default:t}}var a=o(n(406)),s=o(n(405)),u=o(n(534)),l=o(n(549)),c=o(n(550)),d=n(551),f=o(n(552)),h=o(n(553)),p=o(n(554)),v=function(){var t=void 0;try{t=552}catch(t){}return t},y=function(t){a.default.setTimeout(t,p.default.TIME_BETWEEN_CHUNKS)},m=function(){return Math.random().toString(36).slice(2,8)},g=function(t,e){("number"!=typeof e||e<0)&&(e=0);var n=Math.pow(10,e);return Math.round(t*n)/n},b=function(t){function e(t){var n=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),r(Object.getPrototypeOf(e.prototype),"constructor",this).call(this);var i;this.chunkSize_=p.default.BYTES_PER_CHUNK,this.buffer_=[],this.bufferSize_=0,this.basePtsOffset_=NaN,this.mediaSource_=t,this.audioBufferEnd_=NaN,this.videoBufferEnd_=NaN,this.updating=!1,this.timestampOffset_=0,i=a.default.btoa(String.fromCharCode.apply(null,Array.prototype.slice.call(u.default.getFlvHeader())));var o=this.mediaSource_.player_.id().replace(/[^a-zA-Z0-9]/g,"_");this.flashEncodedHeaderName_="vjs_flashEncodedHeader_"+o+m(),this.flashEncodedDataName_="vjs_flashEncodedData_"+o+m(),a.default[this.flashEncodedHeaderName_]=function(){return delete a.default[n.flashEncodedHeaderName_],i},this.mediaSource_.swfObj.vjs_appendChunkReady(this.flashEncodedHeaderName_),this.transmuxer_=(0,h.default)(f.default,v()),this.transmuxer_.postMessage({action:"init",options:{}}),this.transmuxer_.onmessage=function(t){"data"===t.data.action&&n.receiveBuffer_(t.data.segment)},this.one("updateend",function(){n.mediaSource_.tech_.trigger("loadedmetadata")}),Object.defineProperty(this,"timestampOffset",{get:function(){return this.timestampOffset_},set:function(t){"number"==typeof t&&t>=0&&(this.timestampOffset_=t,this.mediaSource_.swfObj.vjs_discontinuity(),this.basePtsOffset_=NaN,this.audioBufferEnd_=NaN,this.videoBufferEnd_=NaN,this.transmuxer_.postMessage({action:"reset"}))}}),Object.defineProperty(this,"buffered",{get:function(){if(!(this.mediaSource_&&this.mediaSource_.swfObj&&"vjs_getProperty"in this.mediaSource_.swfObj))return s.default.createTimeRange();var t=this.mediaSource_.swfObj.vjs_getProperty("buffered");return t&&t.length&&(t[0][0]=g(t[0][0],3),t[0][1]=g(t[0][1],3)),s.default.createTimeRanges(t)}}),this.mediaSource_.player_.on("seeked",function(){if((0,l.default)(0,1/0,n.metadataTrack_),n.inbandTextTracks_)for(var t in n.inbandTextTracks_)(0,l.default)(0,1/0,n.inbandTextTracks_[t])});var c=this.onHlsReset_.bind(this);this.mediaSource_.player_.tech_.on("hls-reset",c),this.mediaSource_.player_.tech_.hls.on("dispose",function(){n.transmuxer_.terminate(),n.mediaSource_.player_.tech_.off("hls-reset",c)})}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,s["default"].EventTarget),i(e,[{key:"appendBuffer",value:function(t){var e=void 0;if(this.updating)throw(e=new Error("SourceBuffer.append() cannot be called while an update is in progress")).name="InvalidStateError",e.code=11,e;this.updating=!0,this.mediaSource_.readyState="open",this.trigger({type:"update"}),this.transmuxer_.postMessage({action:"push",data:t.buffer,byteOffset:t.byteOffset,byteLength:t.byteLength},[t.buffer]),this.transmuxer_.postMessage({action:"flush"})}},{key:"abort",value:function(){this.buffer_=[],this.bufferSize_=0,this.mediaSource_.swfObj.vjs_abort(),this.updating&&(this.updating=!1,this.trigger({type:"updateend"}))}},{key:"remove",value:function(t,e){if((0,l.default)(t,e,this.metadataTrack_),this.inbandTextTracks_)for(var n in this.inbandTextTracks_)(0,l.default)(t,e,this.inbandTextTracks_[n]);this.trigger({type:"update"}),this.trigger({type:"updateend"})}},{key:"receiveBuffer_",value:function(t){var e=this;(0,c.default)(this,this.mediaSource_,t),(0,d.addTextTrackData)(this,t.captions,t.metadata),y(function(){var n=e.convertTagsToData_(t);0===e.buffer_.length&&y(e.processBuffer_.bind(e)),n&&(e.buffer_.push(n),e.bufferSize_+=n.byteLength)})}},{key:"processBuffer_",value:function(){var t=this,e=p.default.BYTES_PER_CHUNK;if(this.buffer_.length){var n=this.buffer_[0].subarray(0,e);n.byteLength<e||this.buffer_[0].byteLength===e?this.buffer_.shift():this.buffer_[0]=this.buffer_[0].subarray(e),this.bufferSize_-=n.byteLength;for(var i=[],r=n.byteLength,o=0;o<r;o++)i.push(String.fromCharCode(n[o]));var s=a.default.btoa(i.join(""));a.default[this.flashEncodedDataName_]=function(){return y(t.processBuffer_.bind(t)),delete a.default[t.flashEncodedDataName_],s},this.mediaSource_.swfObj.vjs_appendChunkReady(this.flashEncodedDataName_)}else!1!==this.updating&&(this.updating=!1,this.trigger({type:"updateend"}))}},{key:"convertTagsToData_",value:function(t){var e=0,n=this.mediaSource_.tech_,i=0,r=void 0,o=t.tags.videoTags,a=t.tags.audioTags;if(isNaN(this.basePtsOffset_)&&(o.length||a.length)){var s=o[0]||{pts:1/0},u=a[0]||{pts:1/0};this.basePtsOffset_=Math.min(u.pts,s.pts)}n.seeking()&&(this.videoBufferEnd_=NaN,this.audioBufferEnd_=NaN),isNaN(this.videoBufferEnd_)?(n.buffered().length&&(i=n.buffered().end(0)-this.timestampOffset),n.seeking()&&(i=Math.max(i,n.currentTime()-this.timestampOffset)),i*=1e3,i+=this.basePtsOffset_):i=this.videoBufferEnd_+.1;var l=o.length;if(l&&o[l-1].pts>=i){for(;--l;){var c=o[l];if(!(c.pts>i)&&(c.keyFrame||c.metaDataTag))break}for(;l;){if(!o[l-1].metaDataTag)break;l--}}var d=o.slice(l),f=void 0;for(f=isNaN(this.audioBufferEnd_)?i:this.audioBufferEnd_+.1,d.length&&(f=Math.min(f,d[0].pts)),l=0;l<a.length&&!(a[l].pts>=f);)l++;var h=a.slice(l);h.length&&(this.audioBufferEnd_=h[h.length-1].pts),d.length&&(this.videoBufferEnd_=d[d.length-1].pts);var p=this.getOrderedTags_(d,h);if(0!==p.length){if(p[0].pts<i&&n.seeking()){var v=n.currentTime()-(i-p[0].pts)/1e3;v<1/30&&(v=0);try{this.mediaSource_.swfObj.vjs_adjustCurrentTime(v)}catch(t){}}for(var y=0;y<p.length;y++)e+=p[y].bytes.byteLength;r=new Uint8Array(e);y=0;for(var m=0;y<p.length;y++)r.set(p[y].bytes,m),m+=p[y].bytes.byteLength;return r}}},{key:"getOrderedTags_",value:function(t,e){for(var n=void 0,i=[];t.length||e.length;)n=t.length?e.length&&e[0].dts<t[0].dts?e.shift():t.shift():e.shift(),i.push(n);return i}},{key:"onHlsReset_",value:function(){this.transmuxer_.postMessage({action:"resetCaptions"})}}]),e}();e.default=b,t.exports=e.default},function(t,e,n){t.exports={tag:n(535),Transmuxer:n(536),getFlvHeader:n(548)}},function(t,e){"use strict";var n;(n=function(t,e){var i,r=0,o=16384,a=function(t,e){var n,i=t.position+e;i<t.bytes.byteLength||((n=new Uint8Array(2*i)).set(t.bytes.subarray(0,t.position),0),t.bytes=n,t.view=new DataView(t.bytes.buffer))},s=n.widthBytes||new Uint8Array("width".length),u=n.heightBytes||new Uint8Array("height".length),l=n.videocodecidBytes||new Uint8Array("videocodecid".length);if(!n.widthBytes){for(i=0;i<"width".length;i++)s[i]="width".charCodeAt(i);for(i=0;i<"height".length;i++)u[i]="height".charCodeAt(i);for(i=0;i<"videocodecid".length;i++)l[i]="videocodecid".charCodeAt(i);n.widthBytes=s,n.heightBytes=u,n.videocodecidBytes=l}switch(this.keyFrame=!1,t){case n.VIDEO_TAG:this.length=16,o*=6;break;case n.AUDIO_TAG:this.length=13,this.keyFrame=!0;break;case n.METADATA_TAG:this.length=29,this.keyFrame=!0;break;default:throw new Error("Unknown FLV tag type")}this.bytes=new Uint8Array(o),this.view=new DataView(this.bytes.buffer),this.bytes[0]=t,this.position=this.length,this.keyFrame=e,this.pts=0,this.dts=0,this.writeBytes=function(t,e,n){var i,r=e||0;i=r+(n=n||t.byteLength),a(this,n),this.bytes.set(t.subarray(r,i),this.position),this.position+=n,this.length=Math.max(this.length,this.position)},this.writeByte=function(t){a(this,1),this.bytes[this.position]=t,this.position++,this.length=Math.max(this.length,this.position)},this.writeShort=function(t){a(this,2),this.view.setUint16(this.position,t),this.position+=2,this.length=Math.max(this.length,this.position)},this.negIndex=function(t){return this.bytes[this.length-t]},this.nalUnitSize=function(){return 0===r?0:this.length-(r+4)},this.startNalUnit=function(){if(r>0)throw new Error("Attempted to create new NAL wihout closing the old one");r=this.length,this.length+=4,this.position=this.length},this.endNalUnit=function(t){var e,n;this.length===r+4?this.length-=4:r>0&&(e=r+4,n=this.length-e,this.position=r,this.view.setUint32(this.position,n),this.position=this.length,t&&t.push(this.bytes.subarray(e,e+n))),r=0},this.writeMetaDataDouble=function(t,e){var n;if(a(this,2+t.length+9),this.view.setUint16(this.position,t.length),this.position+=2,"width"===t)this.bytes.set(s,this.position),this.position+=5;else if("height"===t)this.bytes.set(u,this.position),this.position+=6;else if("videocodecid"===t)this.bytes.set(l,this.position),this.position+=12;else for(n=0;n<t.length;n++)this.bytes[this.position]=t.charCodeAt(n),this.position++;this.position++,this.view.setFloat64(this.position,e),this.position+=8,this.length=Math.max(this.length,this.position),++r},this.writeMetaDataBoolean=function(t,e){var n;for(a(this,2),this.view.setUint16(this.position,t.length),this.position+=2,n=0;n<t.length;n++)a(this,1),this.bytes[this.position]=t.charCodeAt(n),this.position++;a(this,2),this.view.setUint8(this.position,1),this.position++,this.view.setUint8(this.position,e?1:0),this.position++,this.length=Math.max(this.length,this.position),++r},this.finalize=function(){var t,i;switch(this.bytes[0]){case n.VIDEO_TAG:this.bytes[11]=7|(this.keyFrame||e?16:32),this.bytes[12]=e?0:1,t=this.pts-this.dts,this.bytes[13]=(16711680&t)>>>16,this.bytes[14]=(65280&t)>>>8,this.bytes[15]=(255&t)>>>0;break;case n.AUDIO_TAG:this.bytes[11]=175,this.bytes[12]=e?0:1;break;case n.METADATA_TAG:this.position=11,this.view.setUint8(this.position,2),this.position++,this.view.setUint16(this.position,10),this.position+=2,this.bytes.set([111,110,77,101,116,97,68,97,116,97],this.position),this.position+=10,this.bytes[this.position]=8,this.position++,this.view.setUint32(this.position,r),this.position=this.length,this.bytes.set([0,0,9],this.position),this.position+=3,this.length=this.position}return i=this.length-11,this.bytes[1]=(16711680&i)>>>16,this.bytes[2]=(65280&i)>>>8,this.bytes[3]=(255&i)>>>0,this.bytes[4]=(16711680&this.dts)>>>16,this.bytes[5]=(65280&this.dts)>>>8,this.bytes[6]=(255&this.dts)>>>0,this.bytes[7]=(4278190080&this.dts)>>>24,this.bytes[8]=0,this.bytes[9]=0,this.bytes[10]=0,a(this,4),this.view.setUint32(this.length,this.length),this.length+=4,this.position+=4,this.bytes=this.bytes.subarray(0,this.length),this.frameTime=n.frameTime(this.bytes),this}}).AUDIO_TAG=8,n.VIDEO_TAG=9,n.METADATA_TAG=18,n.isAudioFrame=function(t){return n.AUDIO_TAG===t[0]},n.isVideoFrame=function(t){return n.VIDEO_TAG===t[0]},n.isMetaData=function(t){return n.METADATA_TAG===t[0]},n.isKeyFrame=function(t){return n.isVideoFrame(t)?23===t[11]:!!n.isAudioFrame(t)||!!n.isMetaData(t)},n.frameTime=function(t){var e=t[4]<<16;return e|=t[5]<<8,e|=t[6]<<0,e|=t[7]<<24},t.exports=n},function(t,e,n){"use strict";var i,r,o,a,s,u,l=n(537),c=n(535),d=n(538),f=n(543),h=n(544).H264Stream,p=n(546),v=n(547);a=function(t,e){"number"==typeof e.pts&&(void 0===t.timelineStartInfo.pts?t.timelineStartInfo.pts=e.pts:t.timelineStartInfo.pts=Math.min(t.timelineStartInfo.pts,e.pts)),"number"==typeof e.dts&&(void 0===t.timelineStartInfo.dts?t.timelineStartInfo.dts=e.dts:t.timelineStartInfo.dts=Math.min(t.timelineStartInfo.dts,e.dts))},s=function(t,e){var n=new c(c.METADATA_TAG);return n.dts=e,n.pts=e,n.writeMetaDataDouble("videocodecid",7),n.writeMetaDataDouble("width",t.width),n.writeMetaDataDouble("height",t.height),n},u=function(t,e){var n,i=new c(c.VIDEO_TAG,!0);for(i.dts=e,i.pts=e,i.writeByte(1),i.writeByte(t.profileIdc),i.writeByte(t.profileCompatibility),i.writeByte(t.levelIdc),i.writeByte(255),i.writeByte(225),i.writeShort(t.sps[0].length),i.writeBytes(t.sps[0]),i.writeByte(t.pps.length),n=0;n<t.pps.length;++n)i.writeShort(t.pps[n].length),i.writeBytes(t.pps[n]);return i},(o=function(t){var e,n=[],i=[];o.prototype.init.call(this),this.push=function(e){a(t,e),t&&(t.audioobjecttype=e.audioobjecttype,t.channelcount=e.channelcount,t.samplerate=e.samplerate,t.samplingfrequencyindex=e.samplingfrequencyindex,t.samplesize=e.samplesize,t.extraData=t.audioobjecttype<<11|t.samplingfrequencyindex<<7|t.channelcount<<3),e.pts=Math.round(e.pts/90),e.dts=Math.round(e.dts/90),n.push(e)},this.flush=function(){var r,o,a,s=new v;if(0!==n.length){for(a=-1/0;n.length;)r=n.shift(),i.length&&r.pts>=i[0]&&(a=i.shift(),this.writeMetaDataTags(s,a)),(t.extraData!==e||r.pts-a>=1e3)&&(this.writeMetaDataTags(s,r.pts),e=t.extraData,a=r.pts),(o=new c(c.AUDIO_TAG)).pts=r.pts,o.dts=r.dts,o.writeBytes(r.data),s.push(o.finalize());i.length=0,e=null,this.trigger("data",{track:t,tags:s.list}),this.trigger("done","AudioSegmentStream")}else this.trigger("done","AudioSegmentStream")},this.writeMetaDataTags=function(e,n){var i;(i=new c(c.METADATA_TAG)).pts=n,i.dts=n,i.writeMetaDataDouble("audiocodecid",10),i.writeMetaDataBoolean("stereo",2===t.channelcount),i.writeMetaDataDouble("audiosamplerate",t.samplerate),i.writeMetaDataDouble("audiosamplesize",16),e.push(i.finalize()),(i=new c(c.AUDIO_TAG,!0)).pts=n,i.dts=n,i.view.setUint16(i.position,t.extraData),i.position+=2,i.length=Math.max(i.length,i.position),e.push(i.finalize())},this.onVideoKeyFrame=function(t){i.push(t)}}).prototype=new l,(r=function(t){var e,n,i=[];r.prototype.init.call(this),this.finishFrame=function(i,r){if(r){if(e&&t&&t.newMetadata&&(r.keyFrame||0===i.length)){var o=s(e,r.dts).finalize(),a=u(t,r.dts).finalize();o.metaDataTag=a.metaDataTag=!0,i.push(o),i.push(a),t.newMetadata=!1,this.trigger("keyframe",r.dts)}r.endNalUnit(),i.push(r.finalize()),n=null}},this.push=function(e){a(t,e),e.pts=Math.round(e.pts/90),e.dts=Math.round(e.dts/90),i.push(e)},this.flush=function(){for(var r,o=new v;i.length&&"access_unit_delimiter_rbsp"!==i[0].nalUnitType;)i.shift();if(0!==i.length){for(;i.length;)"seq_parameter_set_rbsp"===(r=i.shift()).nalUnitType?(t.newMetadata=!0,e=r.config,t.width=e.width,t.height=e.height,t.sps=[r.data],t.profileIdc=e.profileIdc,t.levelIdc=e.levelIdc,t.profileCompatibility=e.profileCompatibility,n.endNalUnit()):"pic_parameter_set_rbsp"===r.nalUnitType?(t.newMetadata=!0,t.pps=[r.data],n.endNalUnit()):"access_unit_delimiter_rbsp"===r.nalUnitType?(n&&this.finishFrame(o,n),(n=new c(c.VIDEO_TAG)).pts=r.pts,n.dts=r.dts):("slice_layer_without_partitioning_rbsp_idr"===r.nalUnitType&&(n.keyFrame=!0),n.endNalUnit()),n.startNalUnit(),n.writeBytes(r.data);n&&this.finishFrame(o,n),this.trigger("data",{track:t,tags:o.list}),this.trigger("done","VideoSegmentStream")}else this.trigger("done","VideoSegmentStream")}}).prototype=new l,(i=function(t){var e,n,a,s,u,l,c,v,y,m,g,b,_=this;i.prototype.init.call(this),t=t||{},this.metadataStream=new d.MetadataStream,t.metadataStream=this.metadataStream,e=new d.TransportPacketStream,n=new d.TransportParseStream,a=new d.ElementaryStream,s=new d.TimestampRolloverStream("video"),u=new d.TimestampRolloverStream("audio"),l=new d.TimestampRolloverStream("timed-metadata"),c=new f,v=new h,b=new p(t),e.pipe(n).pipe(a),a.pipe(s).pipe(v),a.pipe(u).pipe(c),a.pipe(l).pipe(this.metadataStream).pipe(b),g=new d.CaptionStream,v.pipe(g).pipe(b),a.on("data",function(t){var e,n,i;if("metadata"===t.type){for(e=t.tracks.length;e--;)"video"===t.tracks[e].type?n=t.tracks[e]:"audio"===t.tracks[e].type&&(i=t.tracks[e]);n&&!y&&(b.numberOfTracks++,y=new r(n),v.pipe(y).pipe(b)),i&&!m&&(b.numberOfTracks++,m=new o(i),c.pipe(m).pipe(b),y&&y.on("keyframe",m.onVideoKeyFrame))}}),this.push=function(t){e.push(t)},this.flush=function(){e.flush()},this.resetCaptions=function(){g.reset()},b.on("data",function(t){_.trigger("data",t)}),b.on("done",function(){_.trigger("done")})}).prototype=new l,t.exports=i},function(t,e){"use strict";var n=function(){this.init=function(){var t={};this.on=function(e,n){t[e]||(t[e]=[]),t[e]=t[e].concat(n)},this.off=function(e,n){var i;return!!t[e]&&(i=t[e].indexOf(n),t[e]=t[e].slice(),t[e].splice(i,1),i>-1)},this.trigger=function(e){var n,i,r,o;if(n=t[e])if(2===arguments.length)for(r=n.length,i=0;i<r;++i)n[i].call(this,arguments[1]);else{for(o=[],i=arguments.length,i=1;i<arguments.length;++i)o.push(arguments[i]);for(r=n.length,i=0;i<r;++i)n[i].apply(this,o)}},this.dispose=function(){t={}}}};n.prototype.pipe=function(t){return this.on("data",function(e){t.push(e)}),this.on("done",function(e){t.flush(e)}),t},n.prototype.push=function(t){this.trigger("data",t)},n.prototype.flush=function(t){this.trigger("done",t)},t.exports=n},function(t,e,n){"use strict";var i,r,o,a=n(537),s=n(539),u=n(540),l=n(541).TimestampRolloverStream,c=n(540);(i=function(){var t=new Uint8Array(188),e=0;i.prototype.init.call(this),this.push=function(n){var i,r=0,o=188;for(e?((i=new Uint8Array(n.byteLength+e)).set(t.subarray(0,e)),i.set(n,e),e=0):i=n;o<i.byteLength;)71!==i[r]||71!==i[o]?(r++,o++):(this.trigger("data",i.subarray(r,o)),r+=188,o+=188);r<i.byteLength&&(t.set(i.subarray(r),0),e=i.byteLength-r)},this.flush=function(){188===e&&71===t[0]&&(this.trigger("data",t),e=0),this.trigger("done")}}).prototype=new a,(r=function(){var t,e,n,i;r.prototype.init.call(this),i=this,this.packetsWaitingForPmt=[],this.programMapTable=void 0,t=function(t,i){var r=0;i.payloadUnitStartIndicator&&(r+=t[r]+1),"pat"===i.type?e(t.subarray(r),i):n(t.subarray(r),i)},e=function(t,e){e.section_number=t[7],e.last_section_number=t[8],i.pmtPid=(31&t[10])<<8|t[11],e.pmtPid=i.pmtPid},n=function(t,e){var n,r;if(1&t[5]){for(i.programMapTable={video:null,audio:null,"timed-metadata":{}},n=3+((15&t[1])<<8|t[2])-4,r=12+((15&t[10])<<8|t[11]);r<n;){var o=t[r],a=(31&t[r+1])<<8|t[r+2];o===u.H264_STREAM_TYPE&&null===i.programMapTable.video?i.programMapTable.video=a:o===u.ADTS_STREAM_TYPE&&null===i.programMapTable.audio?i.programMapTable.audio=a:o===u.METADATA_STREAM_TYPE&&(i.programMapTable["timed-metadata"][a]=o),r+=5+((15&t[r+3])<<8|t[r+4])}e.programMapTable=i.programMapTable}},this.push=function(e){var n={},i=4;if(n.payloadUnitStartIndicator=!!(64&e[1]),n.pid=31&e[1],n.pid<<=8,n.pid|=e[2],(48&e[3])>>>4>1&&(i+=e[i]+1),0===n.pid)n.type="pat",t(e.subarray(i),n),this.trigger("data",n);else if(n.pid===this.pmtPid)for(n.type="pmt",t(e.subarray(i),n),this.trigger("data",n);this.packetsWaitingForPmt.length;)this.processPes_.apply(this,this.packetsWaitingForPmt.shift());else void 0===this.programMapTable?this.packetsWaitingForPmt.push([e,i,n]):this.processPes_(e,i,n)},this.processPes_=function(t,e,n){n.pid===this.programMapTable.video?n.streamType=u.H264_STREAM_TYPE:n.pid===this.programMapTable.audio?n.streamType=u.ADTS_STREAM_TYPE:n.streamType=this.programMapTable["timed-metadata"][n.pid],n.type="pes",n.data=t.subarray(e),this.trigger("data",n)}}).prototype=new a,r.STREAM_TYPES={h264:27,adts:15},(o=function(){var t=this,e={data:[],size:0},n={data:[],size:0},i={data:[],size:0},r=function(e,n,i){var r,o,a=new Uint8Array(e.size),s={type:n},u=0,l=0;if(e.data.length&&!(e.size<9)){for(s.trackId=e.data[0].pid,u=0;u<e.data.length;u++)o=e.data[u],a.set(o.data,l),l+=o.data.byteLength;var c,d,f;c=a,(d=s).packetLength=6+(c[4]<<8|c[5]),d.dataAlignmentIndicator=0!=(4&c[6]),192&(f=c[7])&&(d.pts=(14&c[9])<<27|(255&c[10])<<20|(254&c[11])<<12|(255&c[12])<<5|(254&c[13])>>>3,d.pts*=4,d.pts+=(6&c[13])>>>1,d.dts=d.pts,64&f&&(d.dts=(14&c[14])<<27|(255&c[15])<<20|(254&c[16])<<12|(255&c[17])<<5|(254&c[18])>>>3,d.dts*=4,d.dts+=(6&c[18])>>>1)),d.data=c.subarray(9+c[8]),r="video"===n||s.packetLength<=e.size,(i||r)&&(e.size=0,e.data.length=0),r&&t.trigger("data",s)}};o.prototype.init.call(this),this.push=function(o){({pat:function(){},pes:function(){var t,a;switch(o.streamType){case u.H264_STREAM_TYPE:case c.H264_STREAM_TYPE:t=e,a="video";break;case u.ADTS_STREAM_TYPE:t=n,a="audio";break;case u.METADATA_STREAM_TYPE:t=i,a="timed-metadata";break;default:return}o.payloadUnitStartIndicator&&r(t,a,!0),t.data.push(o),t.size+=o.data.byteLength},pmt:function(){var e={type:"metadata",tracks:[]},n=o.programMapTable;null!==n.video&&e.tracks.push({timelineStartInfo:{baseMediaDecodeTime:0},id:+n.video,codec:"avc",type:"video"}),null!==n.audio&&e.tracks.push({timelineStartInfo:{baseMediaDecodeTime:0},id:+n.audio,codec:"adts",type:"audio"}),t.trigger("data",e)}})[o.type]()},this.flush=function(){r(e,"video"),r(n,"audio"),r(i,"timed-metadata"),this.trigger("done")}}).prototype=new a;var d={PAT_PID:0,MP2T_PACKET_LENGTH:188,TransportPacketStream:i,TransportParseStream:r,ElementaryStream:o,TimestampRolloverStream:l,CaptionStream:s.CaptionStream,Cea608Stream:s.Cea608Stream,MetadataStream:n(542)};for(var f in u)u.hasOwnProperty(f)&&(d[f]=u[f]);t.exports=d},function(t,e,n){"use strict";var i=n(537),r=function(){r.prototype.init.call(this),this.captionPackets_=[],this.ccStreams_=[new l(0,0),new l(0,1),new l(1,0),new l(1,1)],this.reset(),this.ccStreams_.forEach(function(t){t.on("data",this.trigger.bind(this,"data")),t.on("done",this.trigger.bind(this,"done"))},this)};r.prototype=new i,r.prototype.push=function(t){var e,n;"sei_rbsp"===t.nalUnitType&&4===(e=function(t){for(var e=0,n={payloadType:-1,payloadSize:0},i=0,r=0;e<t.byteLength&&128!==t[e];){for(;255===t[e];)i+=255,e++;for(i+=t[e++];255===t[e];)r+=255,e++;if(r+=t[e++],!n.payload&&4===i){n.payloadType=i,n.payloadSize=r,n.payload=t.subarray(e,e+r);break}e+=r,i=0,r=0}return n}(t.escapedRBSP)).payloadType&&(n=function(t){return 181!==t.payload[0]?null:49!=(t.payload[1]<<8|t.payload[2])?null:"GA94"!==String.fromCharCode(t.payload[3],t.payload[4],t.payload[5],t.payload[6])?null:3!==t.payload[7]?null:t.payload.subarray(8,t.payload.length-1)}(e))&&(t.dts<this.latestDts_?this.ignoreNextEqualDts_=!0:t.dts===this.latestDts_&&this.ignoreNextEqualDts_?this.ignoreNextEqualDts_=!1:(this.captionPackets_=this.captionPackets_.concat(function(t,e){var n,i,r,o,a=[];if(!(64&e[0]))return a;for(i=31&e[0],n=0;n<i;n++)o={type:3&e[2+(r=3*n)],pts:t},4&e[r+2]&&(o.ccData=e[r+3]<<8|e[r+4],a.push(o));return a}(t.pts,n)),this.latestDts_=t.dts))},r.prototype.flush=function(){this.captionPackets_.length?(this.captionPackets_.forEach(function(t,e){t.presortIndex=e}),this.captionPackets_.sort(function(t,e){return t.pts===e.pts?t.presortIndex-e.presortIndex:t.pts-e.pts}),this.captionPackets_.forEach(function(t){t.type<2&&this.dispatchCea608Packet(t)},this),this.captionPackets_.length=0,this.ccStreams_.forEach(function(t){t.flush()},this)):this.ccStreams_.forEach(function(t){t.flush()},this)},r.prototype.reset=function(){this.latestDts_=null,this.ignoreNextEqualDts_=!1,this.activeCea608Channel_=[null,null],this.ccStreams_.forEach(function(t){t.reset()})},r.prototype.dispatchCea608Packet=function(t){this.setsChannel1Active(t)?this.activeCea608Channel_[t.type]=0:this.setsChannel2Active(t)&&(this.activeCea608Channel_[t.type]=1),null!==this.activeCea608Channel_[t.type]&&this.ccStreams_[(t.type<<1)+this.activeCea608Channel_[t.type]].push(t)},r.prototype.setsChannel1Active=function(t){return 4096==(30720&t.ccData)},r.prototype.setsChannel2Active=function(t){return 6144==(30720&t.ccData)};var o={42:225,92:233,94:237,95:243,96:250,123:231,124:247,125:209,126:241,127:9608,304:174,305:176,306:189,307:191,308:8482,309:162,310:163,311:9834,312:224,313:160,314:232,315:226,316:234,317:238,318:244,319:251,544:193,545:201,546:211,547:218,548:220,549:252,550:8216,551:161,552:42,553:39,554:8212,555:169,556:8480,557:8226,558:8220,559:8221,560:192,561:194,562:199,563:200,564:202,565:203,566:235,567:206,568:207,569:239,570:212,571:217,572:249,573:219,574:171,575:187,800:195,801:227,802:205,803:204,804:236,805:210,806:242,807:213,808:245,809:123,810:125,811:92,812:94,813:95,814:124,815:126,816:196,817:228,818:214,819:246,820:223,821:165,822:164,823:9474,824:197,825:229,826:216,827:248,828:9484,829:9488,830:9492,831:9496},a=function(t){return null===t?"":(t=o[t]||t,String.fromCharCode(t))},s=[4352,4384,4608,4640,5376,5408,5632,5664,5888,5920,4096,4864,4896,5120,5152],u=function(){for(var t=[],e=15;e--;)t.push("");return t},l=function(t,e){l.prototype.init.call(this),this.field_=t||0,this.dataChannel_=e||0,this.name_="CC"+(1+(this.field_<<1|this.dataChannel_)),this.setConstants(),this.reset(),this.push=function(t){var e,n,i,r,o;if((e=32639&t.ccData)!==this.lastControlCode_){if(4096==(61440&e)?this.lastControlCode_=e:e!==this.PADDING_&&(this.lastControlCode_=null),i=e>>>8,r=255&e,e!==this.PADDING_)if(e===this.RESUME_CAPTION_LOADING_)this.mode_="popOn";else if(e===this.END_OF_CAPTION_)this.clearFormatting(t.pts),this.flushDisplayed(t.pts),n=this.displayed_,this.displayed_=this.nonDisplayed_,this.nonDisplayed_=n,this.startPts_=t.pts;else if(e===this.ROLL_UP_2_ROWS_)this.topRow_=13,this.mode_="rollUp";else if(e===this.ROLL_UP_3_ROWS_)this.topRow_=12,this.mode_="rollUp";else if(e===this.ROLL_UP_4_ROWS_)this.topRow_=11,this.mode_="rollUp";else if(e===this.CARRIAGE_RETURN_)this.clearFormatting(t.pts),this.flushDisplayed(t.pts),this.shiftRowsUp_(),this.startPts_=t.pts;else if(e===this.BACKSPACE_)"popOn"===this.mode_?this.nonDisplayed_[14]=this.nonDisplayed_[14].slice(0,-1):this.displayed_[14]=this.displayed_[14].slice(0,-1);else if(e===this.ERASE_DISPLAYED_MEMORY_)this.flushDisplayed(t.pts),this.displayed_=u();else if(e===this.ERASE_NON_DISPLAYED_MEMORY_)this.nonDisplayed_=u();else if(e===this.RESUME_DIRECT_CAPTIONING_)this.mode_="paintOn";else if(this.isSpecialCharacter(i,r))o=a((i=(3&i)<<8)|r),this[this.mode_](t.pts,o),this.column_++;else if(this.isExtCharacter(i,r))"popOn"===this.mode_?this.nonDisplayed_[this.row_]=this.nonDisplayed_[this.row_].slice(0,-1):this.displayed_[14]=this.displayed_[14].slice(0,-1),o=a((i=(3&i)<<8)|r),this[this.mode_](t.pts,o),this.column_++;else if(this.isMidRowCode(i,r))this.clearFormatting(t.pts),this[this.mode_](t.pts," "),this.column_++,14==(14&r)&&this.addFormatting(t.pts,["i"]),1==(1&r)&&this.addFormatting(t.pts,["u"]);else if(this.isOffsetControlCode(i,r))this.column_+=3&r;else if(this.isPAC(i,r)){var l=s.indexOf(7968&e);l!==this.row_&&(this.clearFormatting(t.pts),this.row_=l),1&r&&-1===this.formatting_.indexOf("u")&&this.addFormatting(t.pts,["u"]),16==(16&e)&&(this.column_=4*((14&e)>>1)),this.isColorPAC(r)&&14==(14&r)&&this.addFormatting(t.pts,["i"])}else this.isNormalChar(i)&&(0===r&&(r=null),o=a(i),o+=a(r),this[this.mode_](t.pts,o),this.column_+=o.length)}else this.lastControlCode_=null}};l.prototype=new i,l.prototype.flushDisplayed=function(t){var e=this.displayed_.map(function(t){return t.trim()}).join("\n").replace(/^\n+|\n+$/g,"");e.length&&this.trigger("data",{startPts:this.startPts_,endPts:t,text:e,stream:this.name_})},l.prototype.reset=function(){this.mode_="popOn",this.topRow_=0,this.startPts_=0,this.displayed_=u(),this.nonDisplayed_=u(),this.lastControlCode_=null,this.column_=0,this.row_=14,this.formatting_=[]},l.prototype.setConstants=function(){0===this.dataChannel_?(this.BASE_=16,this.EXT_=17,this.CONTROL_=(20|this.field_)<<8,this.OFFSET_=23):1===this.dataChannel_&&(this.BASE_=24,this.EXT_=25,this.CONTROL_=(28|this.field_)<<8,this.OFFSET_=31),this.PADDING_=0,this.RESUME_CAPTION_LOADING_=32|this.CONTROL_,this.END_OF_CAPTION_=47|this.CONTROL_,this.ROLL_UP_2_ROWS_=37|this.CONTROL_,this.ROLL_UP_3_ROWS_=38|this.CONTROL_,this.ROLL_UP_4_ROWS_=39|this.CONTROL_,this.CARRIAGE_RETURN_=45|this.CONTROL_,this.RESUME_DIRECT_CAPTIONING_=41|this.CONTROL_,this.BACKSPACE_=33|this.CONTROL_,this.ERASE_DISPLAYED_MEMORY_=44|this.CONTROL_,this.ERASE_NON_DISPLAYED_MEMORY_=46|this.CONTROL_},l.prototype.isSpecialCharacter=function(t,e){return t===this.EXT_&&e>=48&&e<=63},l.prototype.isExtCharacter=function(t,e){return(t===this.EXT_+1||t===this.EXT_+2)&&e>=32&&e<=63},l.prototype.isMidRowCode=function(t,e){return t===this.EXT_&&e>=32&&e<=47},l.prototype.isOffsetControlCode=function(t,e){return t===this.OFFSET_&&e>=33&&e<=35},l.prototype.isPAC=function(t,e){return t>=this.BASE_&&t<this.BASE_+8&&e>=64&&e<=127},l.prototype.isColorPAC=function(t){return t>=64&&t<=79||t>=96&&t<=127},l.prototype.isNormalChar=function(t){return t>=32&&t<=127},l.prototype.addFormatting=function(t,e){this.formatting_=this.formatting_.concat(e);var n=e.reduce(function(t,e){return t+"<"+e+">"},"");this[this.mode_](t,n)},l.prototype.clearFormatting=function(t){if(this.formatting_.length){var e=this.formatting_.reverse().reduce(function(t,e){return t+"</"+e+">"},"");this.formatting_=[],this[this.mode_](t,e)}},l.prototype.popOn=function(t,e){var n=this.nonDisplayed_[this.row_];n+=e,this.nonDisplayed_[this.row_]=n},l.prototype.rollUp=function(t,e){var n=this.displayed_[14];n+=e,this.displayed_[14]=n},l.prototype.shiftRowsUp_=function(){var t;for(t=0;t<this.topRow_;t++)this.displayed_[t]="";for(t=this.topRow_;t<14;t++)this.displayed_[t]=this.displayed_[t+1];this.displayed_[14]=""},l.prototype.paintOn=function(){},t.exports={CaptionStream:r,Cea608Stream:l}},function(t,e){"use strict";t.exports={H264_STREAM_TYPE:27,ADTS_STREAM_TYPE:15,METADATA_STREAM_TYPE:21}},function(t,e,n){"use strict";var i=n(537),r=function(t,e){var n=1;for(t>e&&(n=-1);Math.abs(e-t)>4294967296;)t+=8589934592*n;return t},o=function(t){var e,n;o.prototype.init.call(this),this.type_=t,this.push=function(t){t.type===this.type_&&(void 0===n&&(n=t.dts),t.dts=r(t.dts,n),t.pts=r(t.pts,n),e=t.dts,this.trigger("data",t))},this.flush=function(){n=e,this.trigger("done")},this.discontinuity=function(){n=void 0,e=void 0}};o.prototype=new i,t.exports={TimestampRolloverStream:o,handleRollover:r}},function(t,e,n){"use strict";var i,r=n(537),o=n(540),a=function(t,e,n){var i,r="";for(i=e;i<n;i++)r+="%"+("00"+t[i].toString(16)).slice(-2);return r},s=function(t,e,n){return decodeURIComponent(a(t,e,n))},u=function(t){return t[0]<<21|t[1]<<14|t[2]<<7|t[3]},l={TXXX:function(t){var e;if(3===t.data[0]){for(e=1;e<t.data.length;e++)if(0===t.data[e]){t.description=s(t.data,1,e),t.value=s(t.data,e+1,t.data.length).replace(/\0*$/,"");break}t.data=t.value}},WXXX:function(t){var e;if(3===t.data[0])for(e=1;e<t.data.length;e++)if(0===t.data[e]){t.description=s(t.data,1,e),t.url=s(t.data,e+1,t.data.length);break}},PRIV:function(t){var e,n;for(e=0;e<t.data.length;e++)if(0===t.data[e]){t.owner=(n=t.data,unescape(a(n,0,e)));break}t.privateData=t.data.subarray(e+1),t.data=t.privateData}};(i=function(t){var e,n={debug:!(!t||!t.debug),descriptor:t&&t.descriptor},r=0,a=[],s=0;if(i.prototype.init.call(this),this.dispatchType=o.METADATA_STREAM_TYPE.toString(16),n.descriptor)for(e=0;e<n.descriptor.length;e++)this.dispatchType+=("00"+n.descriptor[e].toString(16)).slice(-2);this.push=function(t){var e,i,o,c,d;if("timed-metadata"===t.type)if(t.dataAlignmentIndicator&&(s=0,a.length=0),0===a.length&&(t.data.length<10||t.data[0]!=="I".charCodeAt(0)||t.data[1]!=="D".charCodeAt(0)||t.data[2]!=="3".charCodeAt(0)))n.debug&&console.log("Skipping unrecognized metadata packet");else if(a.push(t),s+=t.data.byteLength,1===a.length&&(r=u(t.data.subarray(6,10)),r+=10),!(s<r)){for(e={data:new Uint8Array(r),frames:[],pts:a[0].pts,dts:a[0].dts},d=0;d<r;)e.data.set(a[0].data.subarray(0,r-d),d),d+=a[0].data.byteLength,s-=a[0].data.byteLength,a.shift();i=10,64&e.data[5]&&(i+=4,i+=u(e.data.subarray(10,14)),r-=u(e.data.subarray(16,20)));do{if((o=u(e.data.subarray(i+4,i+8)))<1)return console.log("Malformed ID3 frame encountered. Skipping metadata parsing.");if((c={id:String.fromCharCode(e.data[i],e.data[i+1],e.data[i+2],e.data[i+3]),data:e.data.subarray(i+10,i+o+10)}).key=c.id,l[c.id]&&(l[c.id](c),"com.apple.streaming.transportStreamTimestamp"===c.owner)){var f=c.data,h=(1&f[3])<<30|f[4]<<22|f[5]<<14|f[6]<<6|f[7]>>>2;h*=4,h+=3&f[7],c.timeStamp=h,void 0===e.pts&&void 0===e.dts&&(e.pts=c.timeStamp,e.dts=c.timeStamp),this.trigger("timestamp",c)}e.frames.push(c),i+=10,i+=o}while(i<r);this.trigger("data",e)}}}).prototype=new r,t.exports=i},function(t,e,n){"use strict";var i,r=n(537),o=[96e3,88200,64e3,48e3,44100,32e3,24e3,22050,16e3,12e3,11025,8e3,7350];(i=function(){var t;i.prototype.init.call(this),this.push=function(e){var n,i,r,a,s,u,l=0,c=0;if("audio"===e.type)for(t?(a=t,(t=new Uint8Array(a.byteLength+e.data.byteLength)).set(a),t.set(e.data,a.byteLength)):t=e.data;l+5<t.length;)if(255===t[l]&&240==(246&t[l+1])){if(i=2*(1&~t[l+1]),n=(3&t[l+3])<<11|t[l+4]<<3|(224&t[l+5])>>5,u=9e4*(s=1024*(1+(3&t[l+6])))/o[(60&t[l+2])>>>2],r=l+n,t.byteLength<r)return;if(this.trigger("data",{pts:e.pts+c*u,dts:e.dts+c*u,sampleCount:s,audioobjecttype:1+(t[l+2]>>>6&3),channelcount:(1&t[l+2])<<2|(192&t[l+3])>>>6,samplerate:o[(60&t[l+2])>>>2],samplingfrequencyindex:(60&t[l+2])>>>2,samplesize:16,data:t.subarray(l+7+i,r)}),t.byteLength===r)return void(t=void 0);c++,t=t.subarray(r)}else l++},this.flush=function(){this.trigger("done")}}).prototype=new r,t.exports=i},function(t,e,n){"use strict";var i,r,o,a=n(537),s=n(545);(r=function(){var t,e,n=0;r.prototype.init.call(this),this.push=function(i){var r;for(e?((r=new Uint8Array(e.byteLength+i.data.byteLength)).set(e),r.set(i.data,e.byteLength),e=r):e=i.data;n<e.byteLength-3;n++)if(1===e[n+2]){t=n+5;break}for(;t<e.byteLength;)switch(e[t]){case 0:if(0!==e[t-1]){t+=2;break}if(0!==e[t-2]){t++;break}n+3!==t-2&&this.trigger("data",e.subarray(n+3,t-2));do{t++}while(1!==e[t]&&t<e.length);n=t-2,t+=3;break;case 1:if(0!==e[t-1]||0!==e[t-2]){t+=3;break}this.trigger("data",e.subarray(n+3,t-2)),n=t-2,t+=3;break;default:t+=3}e=e.subarray(n),t-=n,n=0},this.flush=function(){e&&e.byteLength>3&&this.trigger("data",e.subarray(n+3)),e=null,n=0,this.trigger("done")}}).prototype=new a,o={100:!0,110:!0,122:!0,244:!0,44:!0,83:!0,86:!0,118:!0,128:!0,138:!0,139:!0,134:!0},(i=function(){var t,e,n,a,u,l,c,d=new r;i.prototype.init.call(this),t=this,this.push=function(t){"video"===t.type&&(e=t.trackId,n=t.pts,a=t.dts,d.push(t))},d.on("data",function(i){var r={trackId:e,pts:n,dts:a,data:i};switch(31&i[0]){case 5:r.nalUnitType="slice_layer_without_partitioning_rbsp_idr";break;case 6:r.nalUnitType="sei_rbsp",r.escapedRBSP=u(i.subarray(1));break;case 7:r.nalUnitType="seq_parameter_set_rbsp",r.escapedRBSP=u(i.subarray(1)),r.config=l(r.escapedRBSP);break;case 8:r.nalUnitType="pic_parameter_set_rbsp";break;case 9:r.nalUnitType="access_unit_delimiter_rbsp"}t.trigger("data",r)}),d.on("done",function(){t.trigger("done")}),this.flush=function(){d.flush()},c=function(t,e){var n,i=8,r=8;for(n=0;n<t;n++)0!==r&&(r=(i+e.readExpGolomb()+256)%256),i=0===r?i:r},u=function(t){for(var e,n,i=t.byteLength,r=[],o=1;o<i-2;)0===t[o]&&0===t[o+1]&&3===t[o+2]?(r.push(o+2),o+=2):o++;if(0===r.length)return t;e=i-r.length,n=new Uint8Array(e);var a=0;for(o=0;o<e;a++,o++)a===r[0]&&(a++,r.shift()),n[o]=t[a];return n},l=function(t){var e,n,i,r,a,u,l,d,f,h,p,v,y,m=0,g=0,b=0,_=0,T=1;if(n=(e=new s(t)).readUnsignedByte(),r=e.readUnsignedByte(),i=e.readUnsignedByte(),e.skipUnsignedExpGolomb(),o[n]&&(3===(a=e.readUnsignedExpGolomb())&&e.skipBits(1),e.skipUnsignedExpGolomb(),e.skipUnsignedExpGolomb(),e.skipBits(1),e.readBoolean()))for(p=3!==a?8:12,y=0;y<p;y++)e.readBoolean()&&c(y<6?16:64,e);if(e.skipUnsignedExpGolomb(),0===(u=e.readUnsignedExpGolomb()))e.readUnsignedExpGolomb();else if(1===u)for(e.skipBits(1),e.skipExpGolomb(),e.skipExpGolomb(),l=e.readUnsignedExpGolomb(),y=0;y<l;y++)e.skipExpGolomb();if(e.skipUnsignedExpGolomb(),e.skipBits(1),d=e.readUnsignedExpGolomb(),f=e.readUnsignedExpGolomb(),0===(h=e.readBits(1))&&e.skipBits(1),e.skipBits(1),e.readBoolean()&&(m=e.readUnsignedExpGolomb(),g=e.readUnsignedExpGolomb(),b=e.readUnsignedExpGolomb(),_=e.readUnsignedExpGolomb()),e.readBoolean()&&e.readBoolean()){switch(e.readUnsignedByte()){case 1:v=[1,1];break;case 2:v=[12,11];break;case 3:v=[10,11];break;case 4:v=[16,11];break;case 5:v=[40,33];break;case 6:v=[24,11];break;case 7:v=[20,11];break;case 8:v=[32,11];break;case 9:v=[80,33];break;case 10:v=[18,11];break;case 11:v=[15,11];break;case 12:v=[64,33];break;case 13:v=[160,99];break;case 14:v=[4,3];break;case 15:v=[3,2];break;case 16:v=[2,1];break;case 255:v=[e.readUnsignedByte()<<8|e.readUnsignedByte(),e.readUnsignedByte()<<8|e.readUnsignedByte()]}v&&(T=v[0]/v[1])}return{profileIdc:n,levelIdc:i,profileCompatibility:r,width:Math.ceil((16*(d+1)-2*m-2*g)*T),height:(2-h)*(f+1)*16-2*b-2*_}}}).prototype=new a,t.exports={H264Stream:i,NalByteStream:r}},function(t,e){"use strict";var n;n=function(t){var e=t.byteLength,n=0,i=0;this.length=function(){return 8*e},this.bitsAvailable=function(){return 8*e+i},this.loadWord=function(){var r=t.byteLength-e,o=new Uint8Array(4),a=Math.min(4,e);if(0===a)throw new Error("no bytes available");o.set(t.subarray(r,r+a)),n=new DataView(o.buffer).getUint32(0),i=8*a,e-=a},this.skipBits=function(t){var r;i>t?(n<<=t,i-=t):(t-=i,t-=8*(r=Math.floor(t/8)),e-=r,this.loadWord(),n<<=t,i-=t)},this.readBits=function(t){var r=Math.min(i,t),o=n>>>32-r;return(i-=r)>0?n<<=r:e>0&&this.loadWord(),(r=t-r)>0?o<<r|this.readBits(r):o},this.skipLeadingZeros=function(){var t;for(t=0;t<i;++t)if(0!=(n&2147483648>>>t))return n<<=t,i-=t,t;return this.loadWord(),t+this.skipLeadingZeros()},this.skipUnsignedExpGolomb=function(){this.skipBits(1+this.skipLeadingZeros())},this.skipExpGolomb=function(){this.skipBits(1+this.skipLeadingZeros())},this.readUnsignedExpGolomb=function(){var t=this.skipLeadingZeros();return this.readBits(t+1)-1},this.readExpGolomb=function(){var t=this.readUnsignedExpGolomb();return 1&t?1+t>>>1:-1*(t>>>1)},this.readBoolean=function(){return 1===this.readBits(1)},this.readUnsignedByte=function(){return this.readBits(8)},this.loadWord()},t.exports=n},function(t,e,n){"use strict";var i=n(537),r=function(t){this.numberOfTracks=0,this.metadataStream=t.metadataStream,this.videoTags=[],this.audioTags=[],this.videoTrack=null,this.audioTrack=null,this.pendingCaptions=[],this.pendingMetadata=[],this.pendingTracks=0,this.processedTracks=0,r.prototype.init.call(this),this.push=function(t){return t.text?this.pendingCaptions.push(t):t.frames?this.pendingMetadata.push(t):("video"===t.track.type&&(this.videoTrack=t.track,this.videoTags=t.tags,this.pendingTracks++),void("audio"===t.track.type&&(this.audioTrack=t.track,this.audioTags=t.tags,this.pendingTracks++)))}};r.prototype=new i,r.prototype.flush=function(t){var e,n,i,r,o={tags:{},captions:[],captionStreams:{},metadata:[]};if(this.pendingTracks<this.numberOfTracks){if("VideoSegmentStream"!==t&&"AudioSegmentStream"!==t)return;if(0===this.pendingTracks&&(this.processedTracks++,this.processedTracks<this.numberOfTracks))return}if(this.processedTracks+=this.pendingTracks,this.pendingTracks=0,!(this.processedTracks<this.numberOfTracks)){for(this.videoTrack?r=this.videoTrack.timelineStartInfo.pts:this.audioTrack&&(r=this.audioTrack.timelineStartInfo.pts),o.tags.videoTags=this.videoTags,o.tags.audioTags=this.audioTags,i=0;i<this.pendingCaptions.length;i++)(n=this.pendingCaptions[i]).startTime=n.startPts-r,n.startTime/=9e4,n.endTime=n.endPts-r,n.endTime/=9e4,o.captionStreams[n.stream]=!0,o.captions.push(n);for(i=0;i<this.pendingMetadata.length;i++)(e=this.pendingMetadata[i]).cueTime=e.pts-r,e.cueTime/=9e4,o.metadata.push(e);o.metadata.dispatchType=this.metadataStream.dispatchType,this.videoTrack=null,this.audioTrack=null,this.videoTags=[],this.audioTags=[],this.pendingCaptions.length=0,this.pendingMetadata.length=0,this.pendingTracks=0,this.processedTracks=0,this.trigger("data",o),this.trigger("done")}},t.exports=r},function(t,e){"use strict";t.exports=function(){var t=this;this.list=[],this.push=function(t){this.list.push({bytes:t.bytes,dts:t.dts,pts:t.pts,keyFrame:t.keyFrame,metaDataTag:t.metaDataTag})},Object.defineProperty(this,"length",{get:function(){return t.list.length}})}},function(t,e,n){"use strict";var i=n(535);t.exports=function(t,e,n){var r,o,a,s=new Uint8Array(9),u=new DataView(s.buffer);return t=t||0,e=void 0===e||e,n=void 0===n||n,u.setUint8(0,70),u.setUint8(1,76),u.setUint8(2,86),u.setUint8(3,1),u.setUint8(4,(e?4:0)|(n?1:0)),u.setUint32(5,s.byteLength),t<=0?((o=new Uint8Array(s.byteLength+4)).set(s),o.set([0,0,0,0],s.byteLength),o):((r=new i(i.METADATA_TAG)).pts=r.dts=0,r.writeMetaDataDouble("duration",t),a=r.finalize().length,(o=new Uint8Array(s.byteLength+a)).set(s),o.set(u.byteLength,a),o)}},function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.default=function(t,e,n){var i=void 0,r=void 0;if(n&&n.cues)for(i=n.cues.length;i--;)(r=n.cues[i]).startTime<=e&&r.endTime>=t&&n.removeCue(r)},t.exports=e.default},function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.default=function(t,e,n){var i=e.player_;if(n.captions&&n.captions.length)for(var r in t.inbandTextTracks_||(t.inbandTextTracks_={}),n.captionStreams)if(!t.inbandTextTracks_[r]){i.tech_.trigger({type:"usage",name:"hls-608"});var o=i.textTracks().getTrackById(r);t.inbandTextTracks_[r]=o||i.addRemoteTextTrack({kind:"captions",id:r,label:r},!1).track}n.metadata&&n.metadata.length&&!t.metadataTrack_&&(t.metadataTrack_=i.addRemoteTextTrack({kind:"metadata",label:"Timed Metadata"},!1).track,t.metadataTrack_.inBandMetadataTrackDispatchType=n.metadata.dispatchType)},t.exports=e.default},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var r=i(n(406)),o=i(n(405)),a=function(t){return isNaN(t)||Math.abs(t)===1/0?Number.MAX_VALUE:t};e.default={addTextTrackData:function(t,e,n){var i,s=r.default.WebKitDataCue||r.default.VTTCue;e&&e.forEach(function(t){var e=t.stream;this.inbandTextTracks_[e].addCue(new s(t.startTime+this.timestampOffset,t.endTime+this.timestampOffset,t.text))},t),n&&(i=a(t.mediaSource_.duration),n.forEach(function(t){var e=t.cueTime+this.timestampOffset;t.frames.forEach(function(t){var n=new s(e,e,t.value||t.url||t.data||"");n.frame=t,n.value=t,function(t){Object.defineProperties(t.frame,{id:{get:function(){return o.default.log.warn("cue.frame.id is deprecated. Use cue.value.key instead."),t.value.key}},value:{get:function(){return o.default.log.warn("cue.frame.value is deprecated. Use cue.value.data instead."),t.value.data}},privateData:{get:function(){return o.default.log.warn("cue.frame.privateData is deprecated. Use cue.value.data instead."),t.value.data}}})}(n),this.metadataTrack_.addCue(n)},this)},t),t.metadataTrack_&&t.metadataTrack_.cues&&t.metadataTrack_.cues.length&&function(){for(var e=t.metadataTrack_.cues,n=[],r=0;r<e.length;r++)e[r]&&n.push(e[r]);var o=n.reduce(function(t,e){var n=t[e.startTime]||[];return n.push(e),t[e.startTime]=n,t},{}),a=Object.keys(o).sort(function(t,e){return Number(t)-Number(e)});a.forEach(function(t,e){var n=o[t],r=Number(a[e+1])||i;n.forEach(function(t){t.endTime=r})})}())},durationOfVideo:a},t.exports=e.default},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}();function r(t){return t&&t.__esModule?t:{default:t}}var o=r(n(406)),a=r(n(534)),s=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.options=e||{},this.init()}return i(t,[{key:"init",value:function(){var t;this.transmuxer&&this.transmuxer.dispose(),this.transmuxer=new a.default.Transmuxer(this.options),(t=this.transmuxer).on("data",function(t){o.default.postMessage({action:"data",segment:t})}),t.on("done",function(t){o.default.postMessage({action:"done"})})}},{key:"push",value:function(t){var e=new Uint8Array(t.data,t.byteOffset,t.byteLength);this.transmuxer.push(e)}},{key:"reset",value:function(){this.init()}},{key:"flush",value:function(){this.transmuxer.flush()}},{key:"resetCaptions",value:function(){this.transmuxer.resetCaptions()}}]),t}();e.default=function(t){return new function(t){t.onmessage=function(t){"init"===t.data.action&&t.data.options?this.messageHandlers=new s(t.data.options):(this.messageHandlers||(this.messageHandlers=new s),t.data&&t.data.action&&"init"!==t.data.action&&this.messageHandlers[t.data.action]&&this.messageHandlers[t.data.action](t.data))}}(t)},t.exports=e.default},function(t,e,n){var i=arguments[3],r=arguments[4],o=arguments[5],a=JSON.stringify,s=!1;void 0===i&&(s=!0,i=function(t){var e={};function n(i){if(e[i])return e[i].exports;var r=e[i]={i:i,l:!1,exports:{}};return t[i].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=t,n.c=e,n.d=function(t,e,i){n.o(t,e)||Object.defineProperty(t,e,{configurable:!1,enumerable:!0,get:i})},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=entryModule)},r=n.m);t.exports=function(t,e){var u;u=s?function(t,e){var o,s="string"==typeof e;o=s?{}:[],Object.keys(r).forEach(function(t){r[t]&&(o[t]=r[t].toString())});var u,l=n(e);if(!l||l!==t&&l.default!==t){var c=o[e];o[e]=c.substring(0,c.length-1)+"\n"+t.name+"();\n}"}s?(e=a(e),u="{"+Object.keys(o).map(function(t){return a(t)+":"+o[t]}).join(",")+"}"):u="["+o.join(",")+"]";return"var fn = ("+i.toString().replace("entryModule",e)+")("+u+');\n(typeof fn === "function") && fn(self);'}(t,e):function(t){for(var e,n=Object.keys(o),s=0;s<n.length;s++){var u=n[s],l=o[u].exports;if(l===t||l&&l.default===t){e=u;break}}if(!e){e=Math.floor(Math.pow(16,8)*Math.random()).toString(16);var c={};for(s=0;s<n.length;s++)c[u=n[s]]=u;r[e]=["function(require,module,exports){"+t+"(self); }",c]}var d=Math.floor(Math.pow(16,8)*Math.random()).toString(16),f={};return f[e]=e,r[d]=["function(require,module,exports){var f = require("+a(e)+");(f.default ? f.default : f)(self);}",f],"("+i+")({"+Object.keys(r).map(function(t){return a(t)+":["+r[t][0]+","+a(r[t][1])+"]"}).join(",")+"},{},["+a(d)+"])"}(t);var l=new Blob([u],{type:"text/javascript"}),c=(window.URL||window.webkitURL||window.mozURL||window.msURL).createObjectURL(l),d=new Worker(c);return d.objectURL=c,d}},function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.default={TIME_BETWEEN_CHUNKS:1,BYTES_PER_CHUNK:32768},t.exports=e.default},function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.default={isAudioCodec:function(t){return/mp4a\.\d+.\d+/i.test(t)},parseContentType:function(t){var e={type:"",parameters:{}},n=t.trim().split(";");return e.type=n.shift().trim(),n.forEach(function(t){var n=t.trim().split("=");if(n.length>1){var i=n[0].replace(/"/g,"").trim(),r=n[1].replace(/"/g,"").trim();e.parameters[i]=r}}),e},isVideoCodec:function(t){return/avc1\.[\da-f]+/i.test(t)},translateLegacyCodecs:function(t){return t.map(function(t){return t.replace(/avc1\.(\d+)\.(\d+)/i,function(t,e,n){return"avc1."+("00"+Number(e).toString(16)).slice(-2)+"00"+("00"+Number(n).toString(16)).slice(-2)})})}},t.exports=e.default},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),r=function(t,e,n){for(var i=!0;i;){var r=t,o=e,a=n;i=!1,null===r&&(r=Function.prototype);var s=Object.getOwnPropertyDescriptor(r,o);if(void 0!==s){if("value"in s)return s.value;var u=s.get;if(void 0===u)return;return u.call(a)}var l=Object.getPrototypeOf(r);if(null===l)return;t=l,e=o,n=a,i=!0,s=l=void 0}};function o(t){return t&&t.__esModule?t:{default:t}}var a=o(n(406)),s=o(n(407)),u=o(n(405)),l=o(n(557)),c=n(551),d=n(555),f=function(t){function e(){var t=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),r(Object.getPrototypeOf(e.prototype),"constructor",this).call(this);var n=void 0;for(n in this.nativeMediaSource_=new a.default.MediaSource,this.nativeMediaSource_)n in e.prototype||"function"!=typeof this.nativeMediaSource_[n]||(this[n]=this.nativeMediaSource_[n].bind(this.nativeMediaSource_));this.duration_=NaN,Object.defineProperty(this,"duration",{get:function(){return this.duration_===1/0?this.duration_:this.nativeMediaSource_.duration},set:function(t){this.duration_=t,t===1/0||(this.nativeMediaSource_.duration=t)}}),Object.defineProperty(this,"seekable",{get:function(){return this.duration_===1/0?u.default.createTimeRanges([[0,this.nativeMediaSource_.duration]]):this.nativeMediaSource_.seekable}}),Object.defineProperty(this,"readyState",{get:function(){return this.nativeMediaSource_.readyState}}),Object.defineProperty(this,"activeSourceBuffers",{get:function(){return this.activeSourceBuffers_}}),this.sourceBuffers=[],this.activeSourceBuffers_=[],this.updateActiveSourceBuffers_=function(){if(t.activeSourceBuffers_.length=0,1===t.sourceBuffers.length){var e=t.sourceBuffers[0];return e.appendAudioInitSegment_=!0,e.audioDisabled_=!e.audioCodec_,void t.activeSourceBuffers_.push(e)}for(var n=!1,i=!0,r=0;r<t.player_.audioTracks().length;r++){var o=t.player_.audioTracks()[r];if(o.enabled&&"main"!==o.kind){n=!0,i=!1;break}}t.sourceBuffers.forEach(function(e){if(e.appendAudioInitSegment_=!0,e.videoCodec_&&e.audioCodec_)e.audioDisabled_=n;else if(e.videoCodec_&&!e.audioCodec_)e.audioDisabled_=!0,i=!1;else if(!e.videoCodec_&&e.audioCodec_&&(e.audioDisabled_=i,i))return;t.activeSourceBuffers_.push(e)})},this.onPlayerMediachange_=function(){t.sourceBuffers.forEach(function(t){t.appendAudioInitSegment_=!0})},this.onHlsReset_=function(){t.sourceBuffers.forEach(function(t){t.transmuxer_&&t.transmuxer_.postMessage({action:"resetCaptions"})})},this.onHlsSegmentTimeMapping_=function(e){t.sourceBuffers.forEach(function(t){return t.timeMapping_=e.mapping})},["sourceopen","sourceclose","sourceended"].forEach(function(t){this.nativeMediaSource_.addEventListener(t,this.trigger.bind(this))},this),this.on("sourceopen",function(e){var n=s.default.querySelector('[src="'+t.url_+'"]');n&&(t.player_=(0,u.default)(n.parentNode),t.player_.tech_.on("hls-reset",t.onHlsReset_),t.player_.tech_.on("hls-segment-time-mapping",t.onHlsSegmentTimeMapping_),t.player_.audioTracks&&t.player_.audioTracks()&&(t.player_.audioTracks().on("change",t.updateActiveSourceBuffers_),t.player_.audioTracks().on("addtrack",t.updateActiveSourceBuffers_),t.player_.audioTracks().on("removetrack",t.updateActiveSourceBuffers_)),t.player_.on("mediachange",t.onPlayerMediachange_))}),this.on("sourceended",function(e){for(var n=(0,c.durationOfVideo)(t.duration),i=0;i<t.sourceBuffers.length;i++){var r=t.sourceBuffers[i],o=r.metadataTrack_&&r.metadataTrack_.cues;o&&o.length&&(o[o.length-1].endTime=n)}}),this.on("sourceclose",function(t){this.sourceBuffers.forEach(function(t){t.transmuxer_&&t.transmuxer_.terminate()}),this.sourceBuffers.length=0,this.player_&&(this.player_.audioTracks&&this.player_.audioTracks()&&(this.player_.audioTracks().off("change",this.updateActiveSourceBuffers_),this.player_.audioTracks().off("addtrack",this.updateActiveSourceBuffers_),this.player_.audioTracks().off("removetrack",this.updateActiveSourceBuffers_)),this.player_.el_&&(this.player_.off("mediachange",this.onPlayerMediachange_),this.player_.tech_.off("hls-reset",this.onHlsReset_),this.player_.tech_.off("hls-segment-time-mapping",this.onHlsSegmentTimeMapping_)))})}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,u["default"].EventTarget),i(e,[{key:"addSeekableRange_",value:function(t,e){var n=void 0;if(this.duration!==1/0)throw(n=new Error("MediaSource.addSeekableRange() can only be invoked when the duration is Infinity")).name="InvalidStateError",n.code=11,n;(e>this.nativeMediaSource_.duration||isNaN(this.nativeMediaSource_.duration))&&(this.nativeMediaSource_.duration=e)}},{key:"addSourceBuffer",value:function(t){var e=void 0,n=(0,d.parseContentType)(t);if(/^(video|audio)\/mp2t$/i.test(n.type)){var i=[];n.parameters&&n.parameters.codecs&&(i=n.parameters.codecs.split(","),i=(i=(0,d.translateLegacyCodecs)(i)).filter(function(t){return(0,d.isAudioCodec)(t)||(0,d.isVideoCodec)(t)})),0===i.length&&(i=["avc1.4d400d","mp4a.40.2"]),e=new l.default(this,i),0!==this.sourceBuffers.length&&(this.sourceBuffers[0].createRealSourceBuffers_(),e.createRealSourceBuffers_(),this.sourceBuffers[0].audioDisabled_=!0)}else e=this.nativeMediaSource_.addSourceBuffer(t);return this.sourceBuffers.push(e),e}}]),e}();e.default=f,t.exports=e.default},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),r=function(t,e,n){for(var i=!0;i;){var r=t,o=e,a=n;i=!1,null===r&&(r=Function.prototype);var s=Object.getOwnPropertyDescriptor(r,o);if(void 0!==s){if("value"in s)return s.value;var u=s.get;if(void 0===u)return;return u.call(a)}var l=Object.getPrototypeOf(r);if(null===l)return;t=l,e=o,n=a,i=!0,s=l=void 0}};function o(t){return t&&t.__esModule?t:{default:t}}var a=o(n(405)),s=o(n(550)),u=o(n(549)),l=n(551),c=o(n(553)),d=o(n(558)),f=n(555),h=function(){var t=void 0;try{t=558}catch(t){}return t},p=function(t,e,n){if(!e||!t.length)return[];var i=Math.ceil(9e4*(e.currentTime()-n+3)),r=void 0;for(r=0;r<t.length&&!(t[r].pts>i);r++);return t.slice(r)};e.gopsSafeToAlignWith=p;var v=function(t,e,n){if(!e.length)return t;if(n)return e.slice();for(var i=e[0].pts,r=0;r<t.length&&!(t[r].pts>=i);r++);return t.slice(0,r).concat(e)};e.updateGopBuffer=v;var y=function(t,e,n,i){for(var r=Math.ceil(9e4*(e-i)),o=Math.ceil(9e4*(n-i)),a=t.slice(),s=t.length;s--&&!(t[s].pts<=o););if(-1===s)return a;for(var u=s+1;u--&&!(t[u].pts<=r););return u=Math.max(u,0),a.splice(u,s-u+1),a};e.removeGopBuffer=y;var m=function(t){function e(t,n){var i=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),r(Object.getPrototypeOf(e.prototype),"constructor",this).call(this,a.default.EventTarget),this.timestampOffset_=0,this.pendingBuffers_=[],this.bufferUpdating_=!1,this.mediaSource_=t,this.codecs_=n,this.audioCodec_=null,this.videoCodec_=null,this.audioDisabled_=!1,this.appendAudioInitSegment_=!0,this.gopBuffer_=[],this.timeMapping_=0,this.safeAppend_=a.default.browser.IE_VERSION>=11;var o={remux:!1,alignGopsAtEnd:this.safeAppend_};this.codecs_.forEach(function(t){(0,f.isAudioCodec)(t)?i.audioCodec_=t:(0,f.isVideoCodec)(t)&&(i.videoCodec_=t)}),this.transmuxer_=(0,c.default)(d.default,h()),this.transmuxer_.postMessage({action:"init",options:o}),this.transmuxer_.onmessage=function(t){return"data"===t.data.action?i.data_(t):"done"===t.data.action?i.done_(t):"gopInfo"===t.data.action?i.appendGopInfo_(t):void 0},Object.defineProperty(this,"timestampOffset",{get:function(){return this.timestampOffset_},set:function(t){"number"==typeof t&&t>=0&&(this.timestampOffset_=t,this.appendAudioInitSegment_=!0,this.gopBuffer_.length=0,this.timeMapping_=0,this.transmuxer_.postMessage({action:"setTimestampOffset",timestampOffset:t}))}}),Object.defineProperty(this,"appendWindowStart",{get:function(){return(this.videoBuffer_||this.audioBuffer_).appendWindowStart},set:function(t){this.videoBuffer_&&(this.videoBuffer_.appendWindowStart=t),this.audioBuffer_&&(this.audioBuffer_.appendWindowStart=t)}}),Object.defineProperty(this,"updating",{get:function(){return!!(this.bufferUpdating_||!this.audioDisabled_&&this.audioBuffer_&&this.audioBuffer_.updating||this.videoBuffer_&&this.videoBuffer_.updating)}}),Object.defineProperty(this,"buffered",{get:function(){var t=null,e=null,n=0,i=[],r=[];if(!this.videoBuffer_&&!this.audioBuffer_)return a.default.createTimeRange();if(!this.videoBuffer_)return this.audioBuffer_.buffered;if(!this.audioBuffer_)return this.videoBuffer_.buffered;if(this.audioDisabled_)return this.videoBuffer_.buffered;if(0===this.videoBuffer_.buffered.length&&0===this.audioBuffer_.buffered.length)return a.default.createTimeRange();for(var o=this.videoBuffer_.buffered,s=this.audioBuffer_.buffered,u=o.length;u--;)i.push({time:o.start(u),type:"start"}),i.push({time:o.end(u),type:"end"});for(u=s.length;u--;)i.push({time:s.start(u),type:"start"}),i.push({time:s.end(u),type:"end"});for(i.sort(function(t,e){return t.time-e.time}),u=0;u<i.length;u++)"start"===i[u].type?2===++n&&(t=i[u].time):"end"===i[u].type&&1===--n&&(e=i[u].time),null!==t&&null!==e&&(r.push([t,e]),t=null,e=null);return a.default.createTimeRanges(r)}})}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,a["default"].EventTarget),i(e,[{key:"data_",value:function(t){var e=t.data.segment;e.data=new Uint8Array(e.data,t.data.byteOffset,t.data.byteLength),e.initSegment=new Uint8Array(e.initSegment.data,e.initSegment.byteOffset,e.initSegment.byteLength),(0,s.default)(this,this.mediaSource_,e),this.pendingBuffers_.push(e)}},{key:"done_",value:function(t){"closed"!==this.mediaSource_.readyState?this.processPendingSegments_():this.pendingBuffers_.length=0}},{key:"createRealSourceBuffers_",value:function(){var t=this,e=["audio","video"];e.forEach(function(n){if(t[n+"Codec_"]&&!t[n+"Buffer_"]){var i=null;if(t.mediaSource_[n+"Buffer_"])(i=t.mediaSource_[n+"Buffer_"]).updating=!1;else{var r=n+'/mp4;codecs="'+t[n+"Codec_"]+'"';i=function(t,e){var n=t.addSourceBuffer(e),i=Object.create(null);i.updating=!1,i.realBuffer_=n;var r=function(t){"function"==typeof n[t]?i[t]=function(){return n[t].apply(n,arguments)}:void 0===i[t]&&Object.defineProperty(i,t,{get:function(){return n[t]},set:function(e){return n[t]=e}})};for(var o in n)r(o);return i}(t.mediaSource_.nativeMediaSource_,r),t.mediaSource_[n+"Buffer_"]=i}t[n+"Buffer_"]=i,["update","updatestart","updateend"].forEach(function(r){i.addEventListener(r,function(){if("audio"!==n||!t.audioDisabled_)return"updateend"===r&&(t[n+"Buffer_"].updating=!1),e.every(function(e){return!("audio"!==e||!t.audioDisabled_)||(n===e||!t[e+"Buffer_"]||!t[e+"Buffer_"].updating)})?t.trigger(r):void 0})})}})}},{key:"appendBuffer",value:function(t){if(this.bufferUpdating_=!0,this.audioBuffer_&&this.audioBuffer_.buffered.length){var e=this.audioBuffer_.buffered;this.transmuxer_.postMessage({action:"setAudioAppendStart",appendStart:e.end(e.length-1)})}this.videoBuffer_&&this.transmuxer_.postMessage({action:"alignGopsWith",gopsToAlignWith:p(this.gopBuffer_,this.mediaSource_.player_,this.timeMapping_)}),this.transmuxer_.postMessage({action:"push",data:t.buffer,byteOffset:t.byteOffset,byteLength:t.byteLength},[t.buffer]),this.transmuxer_.postMessage({action:"flush"})}},{key:"appendGopInfo_",value:function(t){this.gopBuffer_=v(this.gopBuffer_,t.data.gopInfo,this.safeAppend_)}},{key:"remove",value:function(t,e){if(this.videoBuffer_&&(this.videoBuffer_.updating=!0,this.videoBuffer_.remove(t,e),this.gopBuffer_=y(this.gopBuffer_,t,e,this.timeMapping_)),!this.audioDisabled_&&this.audioBuffer_&&(this.audioBuffer_.updating=!0,this.audioBuffer_.remove(t,e)),(0,u.default)(t,e,this.metadataTrack_),this.inbandTextTracks_)for(var n in this.inbandTextTracks_)(0,u.default)(t,e,this.inbandTextTracks_[n])}},{key:"processPendingSegments_",value:function(){var t={video:{segments:[],bytes:0},audio:{segments:[],bytes:0},captions:[],metadata:[]};t=this.pendingBuffers_.reduce(function(t,e){var n=e.type,i=e.data,r=e.initSegment;return t[n].segments.push(i),t[n].bytes+=i.byteLength,t[n].initSegment=r,e.captions&&(t.captions=t.captions.concat(e.captions)),e.info&&(t[n].info=e.info),e.metadata&&(t.metadata=t.metadata.concat(e.metadata)),t},t),this.videoBuffer_||this.audioBuffer_||(0===t.video.bytes&&(this.videoCodec_=null),0===t.audio.bytes&&(this.audioCodec_=null),this.createRealSourceBuffers_()),t.audio.info&&this.mediaSource_.trigger({type:"audioinfo",info:t.audio.info}),t.video.info&&this.mediaSource_.trigger({type:"videoinfo",info:t.video.info}),this.appendAudioInitSegment_&&(!this.audioDisabled_&&this.audioBuffer_&&(t.audio.segments.unshift(t.audio.initSegment),t.audio.bytes+=t.audio.initSegment.byteLength),this.appendAudioInitSegment_=!1);var e=!1;this.videoBuffer_&&t.video.bytes?(t.video.segments.unshift(t.video.initSegment),t.video.bytes+=t.video.initSegment.byteLength,this.concatAndAppendSegments_(t.video,this.videoBuffer_),(0,l.addTextTrackData)(this,t.captions,t.metadata)):!this.videoBuffer_||!this.audioDisabled_&&this.audioBuffer_||(e=!0),!this.audioDisabled_&&this.audioBuffer_&&this.concatAndAppendSegments_(t.audio,this.audioBuffer_),this.pendingBuffers_.length=0,e&&this.trigger("updateend"),this.bufferUpdating_=!1}},{key:"concatAndAppendSegments_",value:function(t,e){var n=0,i=void 0;if(t.bytes){i=new Uint8Array(t.bytes),t.segments.forEach(function(t){i.set(t,n),n+=t.byteLength});try{e.updating=!0,e.appendBuffer(i)}catch(t){this.mediaSource_.player_&&this.mediaSource_.player_.error({code:-3,type:"APPEND_BUFFER_ERR",message:t.message,originalError:t})}}}},{key:"abort",value:function(){this.videoBuffer_&&this.videoBuffer_.abort(),!this.audioDisabled_&&this.audioBuffer_&&this.audioBuffer_.abort(),this.transmuxer_&&this.transmuxer_.postMessage({action:"reset"}),this.pendingBuffers_.length=0,this.bufferUpdating_=!1}}]),e}();e.default=m},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}();function r(t){return t&&t.__esModule?t:{default:t}}var o=r(n(406)),a=r(n(559)),s=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.options=e||{},this.init()}return i(t,[{key:"init",value:function(){var t;this.transmuxer&&this.transmuxer.dispose(),this.transmuxer=new a.default.Transmuxer(this.options),(t=this.transmuxer).on("data",function(t){var e=t.initSegment;t.initSegment={data:e.buffer,byteOffset:e.byteOffset,byteLength:e.byteLength};var n=t.data;t.data=n.buffer,o.default.postMessage({action:"data",segment:t,byteOffset:n.byteOffset,byteLength:n.byteLength},[t.data])}),t.captionStream&&t.captionStream.on("data",function(t){o.default.postMessage({action:"caption",data:t})}),t.on("done",function(t){o.default.postMessage({action:"done"})}),t.on("gopInfo",function(t){o.default.postMessage({action:"gopInfo",gopInfo:t})})}},{key:"push",value:function(t){var e=new Uint8Array(t.data,t.byteOffset,t.byteLength);this.transmuxer.push(e)}},{key:"reset",value:function(){this.init()}},{key:"setTimestampOffset",value:function(t){var e=t.timestampOffset||0;this.transmuxer.setBaseMediaDecodeTime(Math.round(9e4*e))}},{key:"setAudioAppendStart",value:function(t){this.transmuxer.setAudioAppendStart(Math.ceil(9e4*t.appendStart))}},{key:"flush",value:function(t){this.transmuxer.flush()}},{key:"resetCaptions",value:function(){this.transmuxer.resetCaptions()}},{key:"alignGopsWith",value:function(t){this.transmuxer.alignGopsWith(t.gopsToAlignWith.slice())}}]),t}();e.default=function(t){return new function(t){t.onmessage=function(t){"init"===t.data.action&&t.data.options?this.messageHandlers=new s(t.data.options):(this.messageHandlers||(this.messageHandlers=new s),t.data&&t.data.action&&"init"!==t.data.action&&this.messageHandlers[t.data.action]&&this.messageHandlers[t.data.action](t.data))}}(t)},t.exports=e.default},function(t,e,n){t.exports={generator:n(560),Transmuxer:n(561).Transmuxer,AudioSegmentStream:n(561).AudioSegmentStream,VideoSegmentStream:n(561).VideoSegmentStream}},function(t,e){"use strict";var n,i,r,o,a,s,u,l,c,d,f,h,p,v,y,m,g,b,_,T,E,w,k,S,O,C,x,P,A,j,M,I,L,R,D,N,B,U,F,V,H,z=Math.pow(2,32)-1;!function(){var t;if(k={avc1:[],avcC:[],btrt:[],dinf:[],dref:[],esds:[],ftyp:[],hdlr:[],mdat:[],mdhd:[],mdia:[],mfhd:[],minf:[],moof:[],moov:[],mp4a:[],mvex:[],mvhd:[],sdtp:[],smhd:[],stbl:[],stco:[],stsc:[],stsd:[],stsz:[],stts:[],styp:[],tfdt:[],tfhd:[],traf:[],trak:[],trun:[],trex:[],tkhd:[],vmhd:[]},"undefined"!=typeof Uint8Array){for(t in k)k.hasOwnProperty(t)&&(k[t]=[t.charCodeAt(0),t.charCodeAt(1),t.charCodeAt(2),t.charCodeAt(3)]);S=new Uint8Array(["i".charCodeAt(0),"s".charCodeAt(0),"o".charCodeAt(0),"m".charCodeAt(0)]),C=new Uint8Array(["a".charCodeAt(0),"v".charCodeAt(0),"c".charCodeAt(0),"1".charCodeAt(0)]),O=new Uint8Array([0,0,0,1]),x=new Uint8Array([0,0,0,0,0,0,0,0,118,105,100,101,0,0,0,0,0,0,0,0,0,0,0,0,86,105,100,101,111,72,97,110,100,108,101,114,0]),P=new Uint8Array([0,0,0,0,0,0,0,0,115,111,117,110,0,0,0,0,0,0,0,0,0,0,0,0,83,111,117,110,100,72,97,110,100,108,101,114,0]),A={video:x,audio:P},I=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,12,117,114,108,32,0,0,0,1]),M=new Uint8Array([0,0,0,0,0,0,0,0]),L=new Uint8Array([0,0,0,0,0,0,0,0]),R=L,D=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0]),N=L,j=new Uint8Array([0,0,0,1,0,0,0,0,0,0,0,0])}}(),n=function(t){var e,n,i=[],r=0;for(e=1;e<arguments.length;e++)i.push(arguments[e]);for(e=i.length;e--;)r+=i[e].byteLength;for(n=new Uint8Array(r+8),new DataView(n.buffer,n.byteOffset,n.byteLength).setUint32(0,n.byteLength),n.set(t,4),e=0,r=8;e<i.length;e++)n.set(i[e],r),r+=i[e].byteLength;return n},i=function(){return n(k.dinf,n(k.dref,I))},r=function(t){return n(k.esds,new Uint8Array([0,0,0,0,3,25,0,0,0,4,17,64,21,0,6,0,0,0,218,192,0,0,218,192,5,2,t.audioobjecttype<<3|t.samplingfrequencyindex>>>1,t.samplingfrequencyindex<<7|t.channelcount<<3,6,1,2]))},o=function(){return n(k.ftyp,S,O,S,C)},m=function(t){return n(k.hdlr,A[t])},a=function(t){return n(k.mdat,t)},y=function(t){var e=new Uint8Array([0,0,0,0,0,0,0,2,0,0,0,3,0,1,95,144,t.duration>>>24&255,t.duration>>>16&255,t.duration>>>8&255,255&t.duration,85,196,0,0]);return t.samplerate&&(e[12]=t.samplerate>>>24&255,e[13]=t.samplerate>>>16&255,e[14]=t.samplerate>>>8&255,e[15]=255&t.samplerate),n(k.mdhd,e)},v=function(t){return n(k.mdia,y(t),m(t.type),u(t))},s=function(t){return n(k.mfhd,new Uint8Array([0,0,0,0,(4278190080&t)>>24,(16711680&t)>>16,(65280&t)>>8,255&t]))},u=function(t){return n(k.minf,"video"===t.type?n(k.vmhd,j):n(k.smhd,M),i(),b(t))},l=function(t,e){for(var i=[],r=e.length;r--;)i[r]=T(e[r]);return n.apply(null,[k.moof,s(t)].concat(i))},c=function(t){for(var e=t.length,i=[];e--;)i[e]=h(t[e]);return n.apply(null,[k.moov,f(4294967295)].concat(i).concat(d(t)))},d=function(t){for(var e=t.length,i=[];e--;)i[e]=E(t[e]);return n.apply(null,[k.mvex].concat(i))},f=function(t){var e=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,2,0,1,95,144,(4278190080&t)>>24,(16711680&t)>>16,(65280&t)>>8,255&t,0,1,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255]);return n(k.mvhd,e)},g=function(t){var e,i,r=t.samples||[],o=new Uint8Array(4+r.length);for(i=0;i<r.length;i++)e=r[i].flags,o[i+4]=e.dependsOn<<4|e.isDependedOn<<2|e.hasRedundancy;return n(k.sdtp,o)},b=function(t){return n(k.stbl,_(t),n(k.stts,N),n(k.stsc,R),n(k.stsz,D),n(k.stco,L))},_=function(t){return n(k.stsd,new Uint8Array([0,0,0,0,0,0,0,1]),"video"===t.type?B(t):U(t))},B=function(t){var e,i=t.sps||[],r=t.pps||[],o=[],a=[];for(e=0;e<i.length;e++)o.push((65280&i[e].byteLength)>>>8),o.push(255&i[e].byteLength),o=o.concat(Array.prototype.slice.call(i[e]));for(e=0;e<r.length;e++)a.push((65280&r[e].byteLength)>>>8),a.push(255&r[e].byteLength),a=a.concat(Array.prototype.slice.call(r[e]));return n(k.avc1,new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,(65280&t.width)>>8,255&t.width,(65280&t.height)>>8,255&t.height,0,72,0,0,0,72,0,0,0,0,0,0,0,1,19,118,105,100,101,111,106,115,45,99,111,110,116,114,105,98,45,104,108,115,0,0,0,0,0,0,0,0,0,0,0,0,0,24,17,17]),n(k.avcC,new Uint8Array([1,t.profileIdc,t.profileCompatibility,t.levelIdc,255].concat([i.length]).concat(o).concat([r.length]).concat(a))),n(k.btrt,new Uint8Array([0,28,156,128,0,45,198,192,0,45,198,192])))},U=function(t){return n(k.mp4a,new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,(65280&t.channelcount)>>8,255&t.channelcount,(65280&t.samplesize)>>8,255&t.samplesize,0,0,0,0,(65280&t.samplerate)>>8,255&t.samplerate,0,0]),r(t))},p=function(t){var e=new Uint8Array([0,0,0,7,0,0,0,0,0,0,0,0,(4278190080&t.id)>>24,(16711680&t.id)>>16,(65280&t.id)>>8,255&t.id,0,0,0,0,(4278190080&t.duration)>>24,(16711680&t.duration)>>16,(65280&t.duration)>>8,255&t.duration,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,(65280&t.width)>>8,255&t.width,0,0,(65280&t.height)>>8,255&t.height,0,0]);return n(k.tkhd,e)},T=function(t){var e,i,r,o,a,s;return e=n(k.tfhd,new Uint8Array([0,0,0,58,(4278190080&t.id)>>24,(16711680&t.id)>>16,(65280&t.id)>>8,255&t.id,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0])),a=Math.floor(t.baseMediaDecodeTime/(z+1)),s=Math.floor(t.baseMediaDecodeTime%(z+1)),i=n(k.tfdt,new Uint8Array([1,0,0,0,a>>>24&255,a>>>16&255,a>>>8&255,255&a,s>>>24&255,s>>>16&255,s>>>8&255,255&s])),92,"audio"===t.type?(r=w(t,92),n(k.traf,e,i,r)):(o=g(t),r=w(t,o.length+92),n(k.traf,e,i,r,o))},h=function(t){return t.duration=t.duration||4294967295,n(k.trak,p(t),v(t))},E=function(t){var e=new Uint8Array([0,0,0,0,(4278190080&t.id)>>24,(16711680&t.id)>>16,(65280&t.id)>>8,255&t.id,0,0,0,1,0,0,0,0,0,0,0,0,0,1,0,1]);return"video"!==t.type&&(e[e.length-1]=0),n(k.trex,e)},H=function(t,e){var n=0,i=0,r=0,o=0;return t.length&&(void 0!==t[0].duration&&(n=1),void 0!==t[0].size&&(i=2),void 0!==t[0].flags&&(r=4),void 0!==t[0].compositionTimeOffset&&(o=8)),[0,0,n|i|r|o,1,(4278190080&t.length)>>>24,(16711680&t.length)>>>16,(65280&t.length)>>>8,255&t.length,(4278190080&e)>>>24,(16711680&e)>>>16,(65280&e)>>>8,255&e]},V=function(t,e){var i,r,o,a;for(e+=20+16*(r=t.samples||[]).length,i=H(r,e),a=0;a<r.length;a++)o=r[a],i=i.concat([(4278190080&o.duration)>>>24,(16711680&o.duration)>>>16,(65280&o.duration)>>>8,255&o.duration,(4278190080&o.size)>>>24,(16711680&o.size)>>>16,(65280&o.size)>>>8,255&o.size,o.flags.isLeading<<2|o.flags.dependsOn,o.flags.isDependedOn<<6|o.flags.hasRedundancy<<4|o.flags.paddingValue<<1|o.flags.isNonSyncSample,61440&o.flags.degradationPriority,15&o.flags.degradationPriority,(4278190080&o.compositionTimeOffset)>>>24,(16711680&o.compositionTimeOffset)>>>16,(65280&o.compositionTimeOffset)>>>8,255&o.compositionTimeOffset]);return n(k.trun,new Uint8Array(i))},F=function(t,e){var i,r,o,a;for(e+=20+8*(r=t.samples||[]).length,i=H(r,e),a=0;a<r.length;a++)o=r[a],i=i.concat([(4278190080&o.duration)>>>24,(16711680&o.duration)>>>16,(65280&o.duration)>>>8,255&o.duration,(4278190080&o.size)>>>24,(16711680&o.size)>>>16,(65280&o.size)>>>8,255&o.size]);return n(k.trun,new Uint8Array(i))},w=function(t,e){return"audio"===t.type?F(t,e):V(t,e)},t.exports={ftyp:o,mdat:a,moof:l,moov:c,initSegment:function(t){var e,n=o(),i=c(t);return(e=new Uint8Array(n.byteLength+i.byteLength)).set(n),e.set(i,n.byteLength),e}}},function(t,e,n){"use strict";var i,r,o,a,s,u,l,c,d,f,h=n(537),p=n(560),v=n(538),y=n(543),m=n(544).H264Stream,g=n(562),b=n(563),_=n(564),T=["audioobjecttype","channelcount","samplerate","samplingfrequencyindex","samplesize"],E=["width","height","profileIdc","levelIdc","profileCompatibility"];s=function(t){return t[0]==="I".charCodeAt(0)&&t[1]==="D".charCodeAt(0)&&t[2]==="3".charCodeAt(0)},d=function(t,e){var n;if(t.length!==e.length)return!1;for(n=0;n<t.length;n++)if(t[n]!==e[n])return!1;return!0},f=function(t){var e,n=0;for(e=0;e<t.length;e++)n+=t[e].data.byteLength;return n},(r=function(t){var e=[],n=0,i=0,o=0,a=1/0;r.prototype.init.call(this),this.push=function(n){u(t,n),t&&T.forEach(function(e){t[e]=n[e]}),e.push(n)},this.setEarliestDts=function(e){i=e-t.timelineStartInfo.baseMediaDecodeTime},this.setVideoBaseMediaDecodeTime=function(t){a=t},this.setAudioAppendStart=function(t){o=t},this.flush=function(){var i,r,o,a;0!==e.length?(i=this.trimAdtsFramesByEarliestDts_(e),t.baseMediaDecodeTime=c(t),this.prefixWithSilence_(t,i),t.samples=this.generateSampleTable_(i),o=p.mdat(this.concatenateFrameData_(i)),e=[],r=p.moof(n,[t]),a=new Uint8Array(r.byteLength+o.byteLength),n++,a.set(r),a.set(o,r.byteLength),l(t),this.trigger("data",{track:t,boxes:a}),this.trigger("done","AudioSegmentStream")):this.trigger("done","AudioSegmentStream")},this.prefixWithSilence_=function(t,e){var n,i,r,s,u=0,l=0,c=0;if(e.length&&(n=_.audioTsToVideoTs(t.baseMediaDecodeTime,t.samplerate),i=Math.ceil(9e4/(t.samplerate/1024)),o&&a&&(u=n-Math.max(o,a),c=(l=Math.floor(u/i))*i),!(l<1||c>45e3))){for((r=b[t.samplerate])||(r=e[0].data),s=0;s<l;s++)e.splice(s,0,{data:r});t.baseMediaDecodeTime-=Math.floor(_.videoTsToAudioTs(c,t.samplerate))}},this.trimAdtsFramesByEarliestDts_=function(e){return t.minSegmentDts>=i?e:(t.minSegmentDts=1/0,e.filter(function(e){return e.dts>=i&&(t.minSegmentDts=Math.min(t.minSegmentDts,e.dts),t.minSegmentPts=t.minSegmentDts,!0)}))},this.generateSampleTable_=function(t){var e,n,i=[];for(e=0;e<t.length;e++)n=t[e],i.push({size:n.data.byteLength,duration:1024});return i},this.concatenateFrameData_=function(t){var e,n,i=0,r=new Uint8Array(f(t));for(e=0;e<t.length;e++)n=t[e],r.set(n.data,i),i+=n.data.byteLength;return r}}).prototype=new h,(i=function(t,e){var n,r,o=0,a=[],s=[];e=e||{},i.prototype.init.call(this),delete t.minPTS,this.gopCache_=[],this.push=function(e){u(t,e),"seq_parameter_set_rbsp"!==e.nalUnitType||n||(n=e.config,t.sps=[e.data],E.forEach(function(e){t[e]=n[e]},this)),"pic_parameter_set_rbsp"!==e.nalUnitType||r||(r=e.data,t.pps=[e.data]),a.push(e)},this.flush=function(){for(var n,i,r,d,f,h;a.length&&"access_unit_delimiter_rbsp"!==a[0].nalUnitType;)a.shift();if(0===a.length)return this.resetStream_(),void this.trigger("done","VideoSegmentStream");if(n=this.groupNalsIntoFrames_(a),(r=this.groupFramesIntoGops_(n))[0][0].keyFrame||((i=this.getGopForFusion_(a[0],t))?(r.unshift(i),r.byteLength+=i.byteLength,r.nalCount+=i.nalCount,r.pts=i.pts,r.dts=i.dts,r.duration+=i.duration):r=this.extendFirstKeyFrame_(r)),s.length){var v;if(!(v=e.alignGopsAtEnd?this.alignGopsAtEnd_(r):this.alignGopsAtStart_(r)))return this.gopCache_.unshift({gop:r.pop(),pps:t.pps,sps:t.sps}),this.gopCache_.length=Math.min(6,this.gopCache_.length),a=[],this.resetStream_(),void this.trigger("done","VideoSegmentStream");l(t),r=v}u(t,r),t.samples=this.generateSampleTable_(r),f=p.mdat(this.concatenateNalData_(r)),t.baseMediaDecodeTime=c(t),this.trigger("processedGopsInfo",r.map(function(t){return{pts:t.pts,dts:t.dts,byteLength:t.byteLength}})),this.gopCache_.unshift({gop:r.pop(),pps:t.pps,sps:t.sps}),this.gopCache_.length=Math.min(6,this.gopCache_.length),a=[],this.trigger("baseMediaDecodeTime",t.baseMediaDecodeTime),this.trigger("timelineStartInfo",t.timelineStartInfo),d=p.moof(o,[t]),h=new Uint8Array(d.byteLength+f.byteLength),o++,h.set(d),h.set(f,d.byteLength),this.trigger("data",{track:t,boxes:h}),this.resetStream_(),this.trigger("done","VideoSegmentStream")},this.resetStream_=function(){l(t),n=void 0,r=void 0},this.getGopForFusion_=function(e){var n,i,r,o,a,s=1/0;for(a=0;a<this.gopCache_.length;a++)r=(o=this.gopCache_[a]).gop,t.pps&&d(t.pps[0],o.pps[0])&&t.sps&&d(t.sps[0],o.sps[0])&&(r.dts<t.timelineStartInfo.dts||(n=e.dts-r.dts-r.duration)>=-1e4&&n<=45e3&&(!i||s>n)&&(i=o,s=n));return i?i.gop:null},this.extendFirstKeyFrame_=function(t){var e;return!t[0][0].keyFrame&&t.length>1&&(e=t.shift(),t.byteLength-=e.byteLength,t.nalCount-=e.nalCount,t[0][0].dts=e.dts,t[0][0].pts=e.pts,t[0][0].duration+=e.duration),t},this.groupNalsIntoFrames_=function(t){var e,n,i=[],r=[];for(i.byteLength=0,e=0;e<t.length;e++)"access_unit_delimiter_rbsp"===(n=t[e]).nalUnitType?(i.length&&(i.duration=n.dts-i.dts,r.push(i)),(i=[n]).byteLength=n.data.byteLength,i.pts=n.pts,i.dts=n.dts):("slice_layer_without_partitioning_rbsp_idr"===n.nalUnitType&&(i.keyFrame=!0),i.duration=n.dts-i.dts,i.byteLength+=n.data.byteLength,i.push(n));return r.length&&(!i.duration||i.duration<=0)&&(i.duration=r[r.length-1].duration),r.push(i),r},this.groupFramesIntoGops_=function(t){var e,n,i=[],r=[];for(i.byteLength=0,i.nalCount=0,i.duration=0,i.pts=t[0].pts,i.dts=t[0].dts,r.byteLength=0,r.nalCount=0,r.duration=0,r.pts=t[0].pts,r.dts=t[0].dts,e=0;e<t.length;e++)(n=t[e]).keyFrame?(i.length&&(r.push(i),r.byteLength+=i.byteLength,r.nalCount+=i.nalCount,r.duration+=i.duration),(i=[n]).nalCount=n.length,i.byteLength=n.byteLength,i.pts=n.pts,i.dts=n.dts,i.duration=n.duration):(i.duration+=n.duration,i.nalCount+=n.length,i.byteLength+=n.byteLength,i.push(n));return r.length&&i.duration<=0&&(i.duration=r[r.length-1].duration),r.byteLength+=i.byteLength,r.nalCount+=i.nalCount,r.duration+=i.duration,r.push(i),r},this.generateSampleTable_=function(t,e){var n,i,r,o,a,s=e||0,u=[];for(n=0;n<t.length;n++)for(o=t[n],i=0;i<o.length;i++)a=o[i],(r={size:0,flags:{isLeading:0,dependsOn:1,isDependedOn:0,hasRedundancy:0,degradationPriority:0}}).dataOffset=s,r.compositionTimeOffset=a.pts-a.dts,r.duration=a.duration,r.size=4*a.length,r.size+=a.byteLength,a.keyFrame&&(r.flags.dependsOn=2),s+=r.size,u.push(r);return u},this.concatenateNalData_=function(t){var e,n,i,r,o,a,s=0,u=t.byteLength,l=t.nalCount,c=new Uint8Array(u+4*l),d=new DataView(c.buffer);for(e=0;e<t.length;e++)for(r=t[e],n=0;n<r.length;n++)for(o=r[n],i=0;i<o.length;i++)a=o[i],d.setUint32(s,a.data.byteLength),s+=4,c.set(a.data,s),s+=a.data.byteLength;return c},this.alignGopsAtStart_=function(t){var e,n,i,r,o,a,u,l;for(o=t.byteLength,a=t.nalCount,u=t.duration,e=n=0;e<s.length&&n<t.length&&(i=s[e],r=t[n],i.pts!==r.pts);)r.pts>i.pts?e++:(n++,o-=r.byteLength,a-=r.nalCount,u-=r.duration);return 0===n?t:n===t.length?null:((l=t.slice(n)).byteLength=o,l.duration=u,l.nalCount=a,l.pts=l[0].pts,l.dts=l[0].dts,l)},this.alignGopsAtEnd_=function(t){var e,n,i,r,o,a,u;for(e=s.length-1,n=t.length-1,o=null,a=!1;e>=0&&n>=0;){if(i=s[e],r=t[n],i.pts===r.pts){a=!0;break}i.pts>r.pts?e--:(e===s.length-1&&(o=n),n--)}if(!a&&null===o)return null;if(0===(u=a?n:o))return t;var l=t.slice(u),c=l.reduce(function(t,e){return t.byteLength+=e.byteLength,t.duration+=e.duration,t.nalCount+=e.nalCount,t},{byteLength:0,duration:0,nalCount:0});return l.byteLength=c.byteLength,l.duration=c.duration,l.nalCount=c.nalCount,l.pts=l[0].pts,l.dts=l[0].dts,l},this.alignGopsWith=function(t){s=t}}).prototype=new h,u=function(t,e){"number"==typeof e.pts&&(void 0===t.timelineStartInfo.pts&&(t.timelineStartInfo.pts=e.pts),void 0===t.minSegmentPts?t.minSegmentPts=e.pts:t.minSegmentPts=Math.min(t.minSegmentPts,e.pts),void 0===t.maxSegmentPts?t.maxSegmentPts=e.pts:t.maxSegmentPts=Math.max(t.maxSegmentPts,e.pts)),"number"==typeof e.dts&&(void 0===t.timelineStartInfo.dts&&(t.timelineStartInfo.dts=e.dts),void 0===t.minSegmentDts?t.minSegmentDts=e.dts:t.minSegmentDts=Math.min(t.minSegmentDts,e.dts),void 0===t.maxSegmentDts?t.maxSegmentDts=e.dts:t.maxSegmentDts=Math.max(t.maxSegmentDts,e.dts))},l=function(t){delete t.minSegmentDts,delete t.maxSegmentDts,delete t.minSegmentPts,delete t.maxSegmentPts},c=function(t){var e,n=t.minSegmentDts-t.timelineStartInfo.dts;return e=t.timelineStartInfo.baseMediaDecodeTime,e+=n,e=Math.max(0,e),"audio"===t.type&&(e*=t.samplerate/9e4,e=Math.floor(e)),e},(a=function(t,e){this.numberOfTracks=0,this.metadataStream=e,void 0!==t.remux?this.remuxTracks=!!t.remux:this.remuxTracks=!0,this.pendingTracks=[],this.videoTrack=null,this.pendingBoxes=[],this.pendingCaptions=[],this.pendingMetadata=[],this.pendingBytes=0,this.emittedTracks=0,a.prototype.init.call(this),this.push=function(t){return t.text?this.pendingCaptions.push(t):t.frames?this.pendingMetadata.push(t):(this.pendingTracks.push(t.track),this.pendingBoxes.push(t.boxes),this.pendingBytes+=t.boxes.byteLength,"video"===t.track.type&&(this.videoTrack=t.track),void("audio"===t.track.type&&(this.audioTrack=t.track)))}}).prototype=new h,a.prototype.flush=function(t){var e,n,i,r,o=0,a={captions:[],captionStreams:{},metadata:[],info:{}},s=0;if(this.pendingTracks.length<this.numberOfTracks){if("VideoSegmentStream"!==t&&"AudioSegmentStream"!==t)return;if(this.remuxTracks)return;if(0===this.pendingTracks.length)return this.emittedTracks++,void(this.emittedTracks>=this.numberOfTracks&&(this.trigger("done"),this.emittedTracks=0))}for(this.videoTrack?(s=this.videoTrack.timelineStartInfo.pts,E.forEach(function(t){a.info[t]=this.videoTrack[t]},this)):this.audioTrack&&(s=this.audioTrack.timelineStartInfo.pts,T.forEach(function(t){a.info[t]=this.audioTrack[t]},this)),1===this.pendingTracks.length?a.type=this.pendingTracks[0].type:a.type="combined",this.emittedTracks+=this.pendingTracks.length,i=p.initSegment(this.pendingTracks),a.initSegment=new Uint8Array(i.byteLength),a.initSegment.set(i),a.data=new Uint8Array(this.pendingBytes),r=0;r<this.pendingBoxes.length;r++)a.data.set(this.pendingBoxes[r],o),o+=this.pendingBoxes[r].byteLength;for(r=0;r<this.pendingCaptions.length;r++)(e=this.pendingCaptions[r]).startTime=e.startPts-s,e.startTime/=9e4,e.endTime=e.endPts-s,e.endTime/=9e4,a.captionStreams[e.stream]=!0,a.captions.push(e);for(r=0;r<this.pendingMetadata.length;r++)(n=this.pendingMetadata[r]).cueTime=n.pts-s,n.cueTime/=9e4,a.metadata.push(n);a.metadata.dispatchType=this.metadataStream.dispatchType,this.pendingTracks.length=0,this.videoTrack=null,this.pendingBoxes.length=0,this.pendingCaptions.length=0,this.pendingBytes=0,this.pendingMetadata.length=0,this.trigger("data",a),this.emittedTracks>=this.numberOfTracks&&(this.trigger("done"),this.emittedTracks=0)},(o=function(t){var e,n,u=this,c=!0;o.prototype.init.call(this),t=t||{},this.baseMediaDecodeTime=t.baseMediaDecodeTime||0,this.transmuxPipeline_={},this.setupAacPipeline=function(){var e={};this.transmuxPipeline_=e,e.type="aac",e.metadataStream=new v.MetadataStream,e.aacStream=new g,e.audioTimestampRolloverStream=new v.TimestampRolloverStream("audio"),e.timedMetadataTimestampRolloverStream=new v.TimestampRolloverStream("timed-metadata"),e.adtsStream=new y,e.coalesceStream=new a(t,e.metadataStream),e.headOfPipeline=e.aacStream,e.aacStream.pipe(e.audioTimestampRolloverStream).pipe(e.adtsStream),e.aacStream.pipe(e.timedMetadataTimestampRolloverStream).pipe(e.metadataStream).pipe(e.coalesceStream),e.metadataStream.on("timestamp",function(t){e.aacStream.setTimestamp(t.timeStamp)}),e.aacStream.on("data",function(t){"timed-metadata"!==t.type||e.audioSegmentStream||(n=n||{timelineStartInfo:{baseMediaDecodeTime:u.baseMediaDecodeTime},codec:"adts",type:"audio"},e.coalesceStream.numberOfTracks++,e.audioSegmentStream=new r(n),e.adtsStream.pipe(e.audioSegmentStream).pipe(e.coalesceStream))}),e.coalesceStream.on("data",this.trigger.bind(this,"data")),e.coalesceStream.on("done",this.trigger.bind(this,"done"))},this.setupTsPipeline=function(){var o={};this.transmuxPipeline_=o,o.type="ts",o.metadataStream=new v.MetadataStream,o.packetStream=new v.TransportPacketStream,o.parseStream=new v.TransportParseStream,o.elementaryStream=new v.ElementaryStream,o.videoTimestampRolloverStream=new v.TimestampRolloverStream("video"),o.audioTimestampRolloverStream=new v.TimestampRolloverStream("audio"),o.timedMetadataTimestampRolloverStream=new v.TimestampRolloverStream("timed-metadata"),o.adtsStream=new y,o.h264Stream=new m,o.captionStream=new v.CaptionStream,o.coalesceStream=new a(t,o.metadataStream),o.headOfPipeline=o.packetStream,o.packetStream.pipe(o.parseStream).pipe(o.elementaryStream),o.elementaryStream.pipe(o.videoTimestampRolloverStream).pipe(o.h264Stream),o.elementaryStream.pipe(o.audioTimestampRolloverStream).pipe(o.adtsStream),o.elementaryStream.pipe(o.timedMetadataTimestampRolloverStream).pipe(o.metadataStream).pipe(o.coalesceStream),o.h264Stream.pipe(o.captionStream).pipe(o.coalesceStream),o.elementaryStream.on("data",function(a){var s;if("metadata"===a.type){for(s=a.tracks.length;s--;)e||"video"!==a.tracks[s].type?n||"audio"!==a.tracks[s].type||((n=a.tracks[s]).timelineStartInfo.baseMediaDecodeTime=u.baseMediaDecodeTime):(e=a.tracks[s]).timelineStartInfo.baseMediaDecodeTime=u.baseMediaDecodeTime;e&&!o.videoSegmentStream&&(o.coalesceStream.numberOfTracks++,o.videoSegmentStream=new i(e,t),o.videoSegmentStream.on("timelineStartInfo",function(t){n&&(n.timelineStartInfo=t,o.audioSegmentStream.setEarliestDts(t.dts))}),o.videoSegmentStream.on("processedGopsInfo",u.trigger.bind(u,"gopInfo")),o.videoSegmentStream.on("baseMediaDecodeTime",function(t){n&&o.audioSegmentStream.setVideoBaseMediaDecodeTime(t)}),o.h264Stream.pipe(o.videoSegmentStream).pipe(o.coalesceStream)),n&&!o.audioSegmentStream&&(o.coalesceStream.numberOfTracks++,o.audioSegmentStream=new r(n),o.adtsStream.pipe(o.audioSegmentStream).pipe(o.coalesceStream))}}),o.coalesceStream.on("data",this.trigger.bind(this,"data")),o.coalesceStream.on("done",this.trigger.bind(this,"done"))},this.setBaseMediaDecodeTime=function(t){var i=this.transmuxPipeline_;this.baseMediaDecodeTime=t,n&&(n.timelineStartInfo.dts=void 0,n.timelineStartInfo.pts=void 0,l(n),n.timelineStartInfo.baseMediaDecodeTime=t,i.audioTimestampRolloverStream&&i.audioTimestampRolloverStream.discontinuity()),e&&(i.videoSegmentStream&&(i.videoSegmentStream.gopCache_=[],i.videoTimestampRolloverStream.discontinuity()),e.timelineStartInfo.dts=void 0,e.timelineStartInfo.pts=void 0,l(e),i.captionStream.reset(),e.timelineStartInfo.baseMediaDecodeTime=t),i.timedMetadataTimestampRolloverStream&&i.timedMetadataTimestampRolloverStream.discontinuity()},this.setAudioAppendStart=function(t){n&&this.transmuxPipeline_.audioSegmentStream.setAudioAppendStart(t)},this.alignGopsWith=function(t){e&&this.transmuxPipeline_.videoSegmentStream&&this.transmuxPipeline_.videoSegmentStream.alignGopsWith(t)},this.push=function(t){if(c){var e=s(t);e&&"aac"!==this.transmuxPipeline_.type?this.setupAacPipeline():e||"ts"===this.transmuxPipeline_.type||this.setupTsPipeline(),c=!1}this.transmuxPipeline_.headOfPipeline.push(t)},this.flush=function(){c=!0,this.transmuxPipeline_.headOfPipeline.flush()},this.resetCaptions=function(){this.transmuxPipeline_.captionStream&&this.transmuxPipeline_.captionStream.reset()}}).prototype=new h,t.exports={Transmuxer:o,VideoSegmentStream:i,AudioSegmentStream:r,AUDIO_PROPERTIES:T,VIDEO_PROPERTIES:E}},function(t,e,n){"use strict";var i,r=n(537);(i=function(){var t=new Uint8Array,e=0;i.prototype.init.call(this),this.setTimestamp=function(t){e=t},this.parseId3TagSize=function(t,e){var n=t[e+6]<<21|t[e+7]<<14|t[e+8]<<7|t[e+9];return(16&t[e+5])>>4?n+20:n+10},this.parseAdtsSize=function(t,e){var n=(224&t[e+5])>>5,i=t[e+4]<<3;return 6144&t[e+3]|i|n},this.push=function(n){var i,r,o,a,s=0,u=0;for(t.length?(a=t.length,(t=new Uint8Array(n.byteLength+a)).set(t.subarray(0,a)),t.set(n,a)):t=n;t.length-u>=3;)if(t[u]!=="I".charCodeAt(0)||t[u+1]!=="D".charCodeAt(0)||t[u+2]!=="3".charCodeAt(0))if(!0&t[u]&&240==(240&t[u+1])){if(t.length-u<7)break;if((s=this.parseAdtsSize(t,u))>t.length)break;o={type:"audio",data:t.subarray(u,u+s),pts:e,dts:e},this.trigger("data",o),u+=s}else u++;else{if(t.length-u<10)break;if((s=this.parseId3TagSize(t,u))>t.length)break;r={type:"timed-metadata",data:t.subarray(u,u+s)},this.trigger("data",r),u+=s}i=t.length-u,t=i>0?t.subarray(u):new Uint8Array}}).prototype=new r,t.exports=i},function(t,e){var n,i=[33,16,5,32,164,27],r=[33,65,108,84,1,2,4,8,168,2,4,8,17,191,252],o=function(t){for(var e=[];t--;)e.push(0);return e},a={96000:[i,[227,64],o(154),[56]],88200:[i,[231],o(170),[56]],64000:[i,[248,192],o(240),[56]],48000:[i,[255,192],o(268),[55,148,128],o(54),[112]],44100:[i,[255,192],o(268),[55,163,128],o(84),[112]],32000:[i,[255,192],o(268),[55,234],o(226),[112]],24000:[i,[255,192],o(268),[55,255,128],o(268),[111,112],o(126),[224]],16000:[i,[255,192],o(268),[55,255,128],o(268),[111,255],o(269),[223,108],o(195),[1,192]],12000:[r,o(268),[3,127,248],o(268),[6,255,240],o(268),[13,255,224],o(268),[27,253,128],o(259),[56]],11025:[r,o(268),[3,127,248],o(268),[6,255,240],o(268),[13,255,224],o(268),[27,255,192],o(268),[55,175,128],o(108),[112]],8000:[r,o(268),[3,121,16],o(47),[7]]};t.exports=(n=a,Object.keys(n).reduce(function(t,e){return t[e]=new Uint8Array(n[e].reduce(function(t,e){return t.concat(e)},[])),t},{}))},function(t,e){var n,i,r,o,a,s;n=function(t){return 9e4*t},i=function(t,e){return t*e},r=function(t){return t/9e4},o=function(t,e){return t/e},a=function(t,e){return n(o(t,e))},s=function(t,e){return i(r(t),e)},t.exports={secondsToVideoTs:n,secondsToAudioTs:i,videoTsToSeconds:r,audioTsToSeconds:o,audioTsToVideoTs:a,videoTsToAudioTs:s}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),r=function(t,e,n){for(var i=!0;i;){var r=t,o=e,a=n;i=!1,null===r&&(r=Function.prototype);var s=Object.getOwnPropertyDescriptor(r,o);if(void 0!==s){if("value"in s)return s.value;var u=s.get;if(void 0===u)return;return u.call(a)}var l=Object.getPrototypeOf(r);if(null===l)return;t=l,e=o,n=a,i=!0,s=l=void 0}};function o(t){return t&&t.__esModule?t:{default:t}}var a=o(n(512)),s=n(520),u=o(n(566)),l=o(n(573)),c=o(n(570)),d=o(n(405)),f=o(n(574)),h=o(n(575)),p=n(555),v=o(n(553)),y=o(n(580)),m=o(n(568)),g=n(572),b=n(581),_=void 0,T={videoCodec:"avc1",videoObjectTypeIndicator:".4d400d",audioProfile:"2"},E=["mediaRequests","mediaRequestsAborted","mediaRequestsTimedout","mediaRequestsErrored","mediaTransferDuration","mediaBytesTransferred"],w=function(t){return this.audioSegmentLoader_[t]+this.mainSegmentLoader_[t]},k=function(){var t=void 0;try{t=580}catch(t){}return t},S=function(t){return t.replace(/avc1\.(\d+)\.(\d+)/i,function(t){return(0,p.translateLegacyCodecs)([t])[0]})};e.mapLegacyAvcCodecs_=S;var O=function(t,e,n){return t+"/"+e+'; codecs="'+n.filter(function(t){return!!t}).join(", ")+'"'},C=function(t,e){var n=function(t){return t.segments&&t.segments.length&&t.segments[0].map?"mp4":"mp2t"}(e),i=function(t){var e=t.attributes||{};return e.CODECS?(0,g.parseCodecs)(e.CODECS):T}(e),r=e.attributes||{},o=!0,a=!1;if(!e)return[];if(t.mediaGroups.AUDIO&&r.AUDIO){var s=t.mediaGroups.AUDIO[r.AUDIO];if(s)for(var u in a=!0,o=!1,s)if(!s[u].uri){o=!0;break}}a&&!i.audioProfile&&(d.default.log.warn("Multiple audio tracks present but no audio codec string is specified. Attempting to use the default audio codec (mp4a.40.2)"),i.audioProfile=T.audioProfile);var l={};i.videoCodec&&(l.video=""+i.videoCodec+i.videoObjectTypeIndicator),i.audioProfile&&(l.audio="mp4a.40."+i.audioProfile);var c=O("audio",n,[l.audio]),f=O("video",n,[l.video]),h=O("video",n,[l.video,l.audio]);return a?!o&&l.video?[f,c]:[h,c]:l.video?[h]:[c]};e.mimeTypesForPlaylist_=C;var x=function(t){function e(t){var n=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),r(Object.getPrototypeOf(e.prototype),"constructor",this).call(this);var i=t.url,o=t.withCredentials,s=t.mode,c=t.tech,f=t.bandwidth,p=t.externHls,m=t.useCueTags,g=t.blacklistDuration,T=t.enableLowInitialPlaylist;if(!i)throw new Error("A non-empty playlist URL is required");_=p,this.withCredentials=o,this.tech_=c,this.hls_=c.hls,this.mode_=s,this.useCueTags_=m,this.blacklistDuration=g,this.enableLowInitialPlaylist=T,this.useCueTags_&&(this.cueTagsTrack_=this.tech_.addTextTrack("metadata","ad-cues"),this.cueTagsTrack_.inBandMetadataTrackDispatchType=""),this.requestOptions_={withCredentials:this.withCredentials,timeout:null},this.mediaTypes_=(0,b.createMediaTypes)(),this.mediaSource=new d.default.MediaSource({mode:s}),this.mediaSource.addEventListener("sourceopen",this.handleSourceOpen_.bind(this)),this.seekable_=d.default.createTimeRanges(),this.hasPlayed_=function(){return!1},this.syncController_=new h.default(t),this.segmentMetadataTrack_=c.addRemoteTextTrack({kind:"metadata",label:"segment-metadata"},!1).track,this.decrypter_=(0,v.default)(y.default,k());var S={hls:this.hls_,mediaSource:this.mediaSource,currentTime:this.tech_.currentTime.bind(this.tech_),seekable:function(){return n.seekable()},seeking:function(){return n.tech_.seeking()},duration:function(){return n.mediaSource.duration},hasPlayed:function(){return n.hasPlayed_()},goalBufferLength:function(){return n.goalBufferLength()},bandwidth:f,syncController:this.syncController_,decrypter:this.decrypter_};this.masterPlaylistLoader_=new a.default(i,this.hls_,this.withCredentials),this.setupMasterPlaylistLoaderListeners_(),this.mainSegmentLoader_=new u.default(d.default.mergeOptions(S,{segmentMetadataTrack:this.segmentMetadataTrack_,loaderType:"main"}),t),this.audioSegmentLoader_=new u.default(d.default.mergeOptions(S,{loaderType:"audio"}),t),this.subtitleSegmentLoader_=new l.default(d.default.mergeOptions(S,{loaderType:"vtt"}),t),this.setupSegmentLoaderListeners_(),E.forEach(function(t){n[t+"_"]=w.bind(n,t)}),this.masterPlaylistLoader_.load()}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,d["default"].EventTarget),i(e,[{key:"setupMasterPlaylistLoaderListeners_",value:function(){var t=this;this.masterPlaylistLoader_.on("loadedmetadata",function(){var e=t.masterPlaylistLoader_.media(),n=1.5*t.masterPlaylistLoader_.targetDuration*1e3;(0,s.isLowestEnabledRendition)(t.masterPlaylistLoader_.master,t.masterPlaylistLoader_.media())?t.requestOptions_.timeout=0:t.requestOptions_.timeout=n,e.endList&&"none"!==t.tech_.preload()&&(t.mainSegmentLoader_.playlist(e,t.requestOptions_),t.mainSegmentLoader_.load()),(0,b.setupMediaGroups)({segmentLoaders:{AUDIO:t.audioSegmentLoader_,SUBTITLES:t.subtitleSegmentLoader_,main:t.mainSegmentLoader_},tech:t.tech_,requestOptions:t.requestOptions_,masterPlaylistLoader:t.masterPlaylistLoader_,mode:t.mode_,hls:t.hls_,master:t.master(),mediaTypes:t.mediaTypes_,blacklistCurrentPlaylist:t.blacklistCurrentPlaylist.bind(t)}),t.triggerPresenceUsage_(t.master(),e);try{t.setupSourceBuffers_()}catch(e){return d.default.log.warn("Failed to create SourceBuffers",e),t.mediaSource.endOfStream("decode")}t.setupFirstPlay(),t.trigger("selectedinitialmedia")}),this.masterPlaylistLoader_.on("loadedplaylist",function(){var e,n=t.masterPlaylistLoader_.media();if(!n){var i=void 0;return t.enableLowInitialPlaylist&&(i=t.selectInitialPlaylist()),i||(i=t.selectPlaylist()),t.initialMedia_=i,void t.masterPlaylistLoader_.media(t.initialMedia_)}t.useCueTags_&&t.updateAdCues_(n),t.mainSegmentLoader_.playlist(n,t.requestOptions_),t.updateDuration(),t.tech_.paused()||t.mainSegmentLoader_.load(),n.endList||(e=function(){var e=t.seekable();0!==e.length&&t.mediaSource.addSeekableRange_(e.start(0),e.end(0))},t.duration()!==1/0?t.tech_.one("durationchange",function n(){t.duration()===1/0?e():t.tech_.one("durationchange",n)}):e())}),this.masterPlaylistLoader_.on("error",function(){t.blacklistCurrentPlaylist(t.masterPlaylistLoader_.error)}),this.masterPlaylistLoader_.on("mediachanging",function(){t.mainSegmentLoader_.abort(),t.mainSegmentLoader_.pause()}),this.masterPlaylistLoader_.on("mediachange",function(){var e=t.masterPlaylistLoader_.media(),n=1.5*t.masterPlaylistLoader_.targetDuration*1e3;(0,s.isLowestEnabledRendition)(t.masterPlaylistLoader_.master,t.masterPlaylistLoader_.media())?t.requestOptions_.timeout=0:t.requestOptions_.timeout=n,t.mainSegmentLoader_.playlist(e,t.requestOptions_),t.mainSegmentLoader_.load(),t.tech_.trigger({type:"mediachange",bubbles:!0})}),this.masterPlaylistLoader_.on("playlistunchanged",function(){var e=t.masterPlaylistLoader_.media();t.stuckAtPlaylistEnd_(e)&&(t.blacklistCurrentPlaylist({message:"Playlist no longer updating."}),t.tech_.trigger("playliststuck"))}),this.masterPlaylistLoader_.on("renditiondisabled",function(){t.tech_.trigger({type:"usage",name:"hls-rendition-disabled"})}),this.masterPlaylistLoader_.on("renditionenabled",function(){t.tech_.trigger({type:"usage",name:"hls-rendition-enabled"})})}},{key:"triggerPresenceUsage_",value:function(t,e){var n=t.mediaGroups||{},i=!0,r=Object.keys(n.AUDIO);for(var o in n.AUDIO)for(var a in n.AUDIO[o]){n.AUDIO[o][a].uri||(i=!1)}i&&this.tech_.trigger({type:"usage",name:"hls-demuxed"}),Object.keys(n.SUBTITLES).length&&this.tech_.trigger({type:"usage",name:"hls-webvtt"}),_.Playlist.isAes(e)&&this.tech_.trigger({type:"usage",name:"hls-aes"}),_.Playlist.isFmp4(e)&&this.tech_.trigger({type:"usage",name:"hls-fmp4"}),r.length&&Object.keys(n.AUDIO[r[0]]).length>1&&this.tech_.trigger({type:"usage",name:"hls-alternate-audio"}),this.useCueTags_&&this.tech_.trigger({type:"usage",name:"hls-playlist-cue-tags"})}},{key:"setupSegmentLoaderListeners_",value:function(){var t=this;this.mainSegmentLoader_.on("bandwidthupdate",function(){var e=t.selectPlaylist(),n=t.masterPlaylistLoader_.media(),i=t.tech_.buffered(),r=i.length?i.end(i.length-1)-t.tech_.currentTime():0,o=t.bufferLowWaterLine();(!n.endList||t.duration()<m.default.MAX_BUFFER_LOW_WATER_LINE||e.attributes.BANDWIDTH<n.attributes.BANDWIDTH||r>=o)&&t.masterPlaylistLoader_.media(e),t.tech_.trigger("bandwidthupdate")}),this.mainSegmentLoader_.on("progress",function(){t.trigger("progress")}),this.mainSegmentLoader_.on("error",function(){t.blacklistCurrentPlaylist(t.mainSegmentLoader_.error())}),this.mainSegmentLoader_.on("syncinfoupdate",function(){t.onSyncInfoUpdate_()}),this.mainSegmentLoader_.on("timestampoffset",function(){t.tech_.trigger({type:"usage",name:"hls-timestamp-offset"})}),this.audioSegmentLoader_.on("syncinfoupdate",function(){t.onSyncInfoUpdate_()}),this.mainSegmentLoader_.on("ended",function(){t.onEndOfStream()}),this.mainSegmentLoader_.on("earlyabort",function(){t.blacklistCurrentPlaylist({message:"Aborted early because there isn't enough bandwidth to complete the request without rebuffering."},120)}),this.mainSegmentLoader_.on("reseteverything",function(){t.tech_.trigger("hls-reset")}),this.mainSegmentLoader_.on("segmenttimemapping",function(e){t.tech_.trigger({type:"hls-segment-time-mapping",mapping:e.mapping})}),this.audioSegmentLoader_.on("ended",function(){t.onEndOfStream()})}},{key:"mediaSecondsLoaded_",value:function(){return Math.max(this.audioSegmentLoader_.mediaSecondsLoaded+this.mainSegmentLoader_.mediaSecondsLoaded)}},{key:"load",value:function(){this.mainSegmentLoader_.load(),this.mediaTypes_.AUDIO.activePlaylistLoader&&this.audioSegmentLoader_.load(),this.mediaTypes_.SUBTITLES.activePlaylistLoader&&this.subtitleSegmentLoader_.load()}},{key:"fastQualityChange_",value:function(){var t=this.selectPlaylist();t!==this.masterPlaylistLoader_.media()&&(this.masterPlaylistLoader_.media(t),this.mainSegmentLoader_.resetLoader())}},{key:"play",value:function(){if(!this.setupFirstPlay()){this.tech_.ended()&&this.tech_.setCurrentTime(0),this.hasPlayed_()&&this.load();var t=this.tech_.seekable();return this.tech_.duration()===1/0&&this.tech_.currentTime()<t.start(0)?this.tech_.setCurrentTime(t.end(t.length-1)):void 0}}},{key:"setupFirstPlay",value:function(){var t,e=this,n=this.masterPlaylistLoader_.media();if(!n||this.tech_.paused()||this.hasPlayed_())return!1;if(!n.endList){var i=(t=e.seekable()).length?d.default.browser.IE_VERSION&&"html5"===e.mode_&&0===e.tech_.readyState()?(e.tech_.one("loadedmetadata",function(){e.trigger("firstplay"),e.tech_.setCurrentTime(t.end(0)),e.hasPlayed_=function(){return!0}}),{v:!1}):(e.trigger("firstplay"),void e.tech_.setCurrentTime(t.end(0))):{v:!1};if("object"==typeof i)return i.v}return this.hasPlayed_=function(){return!0},this.load(),!0}},{key:"handleSourceOpen_",value:function(){try{this.setupSourceBuffers_()}catch(t){return d.default.log.warn("Failed to create Source Buffers",t),this.mediaSource.endOfStream("decode")}if(this.tech_.autoplay()){var t=this.tech_.play();void 0!==t&&"function"==typeof t.then&&t.then(null,function(t){})}this.trigger("sourceopen")}},{key:"onEndOfStream",value:function(){var t=this.mainSegmentLoader_.ended_;this.mediaTypes_.AUDIO.activePlaylistLoader&&(t=t&&this.audioSegmentLoader_.ended_),t&&this.mediaSource.endOfStream()}},{key:"stuckAtPlaylistEnd_",value:function(t){if(!this.seekable().length)return!1;var e=this.syncController_.getExpiredTime(t,this.mediaSource.duration);if(null===e)return!1;var n=_.Playlist.playlistEnd(t,e),i=this.tech_.currentTime(),r=this.tech_.buffered();if(!r.length)return n-i<=c.default.SAFE_TIME_DELTA;var o=r.end(r.length-1);return o-i<=c.default.SAFE_TIME_DELTA&&n-o<=c.default.SAFE_TIME_DELTA}},{key:"blacklistCurrentPlaylist",value:function(t,e){void 0===t&&(t={});var n,i=void 0;if(i=t.playlist||this.masterPlaylistLoader_.media(),e=e||t.blacklistDuration||this.blacklistDuration,!i){this.error=t;try{return this.mediaSource.endOfStream("network")}catch(t){return this.trigger("error")}}var r=1===this.masterPlaylistLoader_.master.playlists.filter(s.isEnabled).length;return r?(d.default.log.warn("Problem encountered with the current HLS playlist. Trying again since it is the final playlist."),this.tech_.trigger("retryplaylist"),this.masterPlaylistLoader_.load(r)):(i.excludeUntil=Date.now()+1e3*e,this.tech_.trigger("blacklistplaylist"),this.tech_.trigger({type:"usage",name:"hls-rendition-blacklisted"}),n=this.selectPlaylist(),d.default.log.warn("Problem encountered with the current HLS playlist."+(t.message?" "+t.message:"")+" Switching to another playlist."),this.masterPlaylistLoader_.media(n))}},{key:"pauseLoading",value:function(){this.mainSegmentLoader_.pause(),this.mediaTypes_.AUDIO.activePlaylistLoader&&this.audioSegmentLoader_.pause(),this.mediaTypes_.SUBTITLES.activePlaylistLoader&&this.subtitleSegmentLoader_.pause()}},{key:"setCurrentTime",value:function(t){var e=c.default.findRange(this.tech_.buffered(),t);return this.masterPlaylistLoader_&&this.masterPlaylistLoader_.media()&&this.masterPlaylistLoader_.media().segments?e&&e.length&&"flash"!==this.mode_?t:(this.mainSegmentLoader_.resetEverything(),this.mainSegmentLoader_.abort(),this.mediaTypes_.AUDIO.activePlaylistLoader&&(this.audioSegmentLoader_.resetEverything(),this.audioSegmentLoader_.abort()),this.mediaTypes_.SUBTITLES.activePlaylistLoader&&(this.subtitleSegmentLoader_.resetEverything(),this.subtitleSegmentLoader_.abort()),void this.load()):0}},{key:"duration",value:function(){return this.masterPlaylistLoader_?this.mediaSource?this.mediaSource.duration:_.Playlist.duration(this.masterPlaylistLoader_.media()):0}},{key:"seekable",value:function(){return this.seekable_}},{key:"onSyncInfoUpdate_",value:function(){var t=void 0,e=void 0;if(this.masterPlaylistLoader_){var n=this.masterPlaylistLoader_.media();if(n){var i=this.syncController_.getExpiredTime(n,this.mediaSource.duration);if(null!==i&&0!==(t=_.Playlist.seekable(n,i)).length){if(this.mediaTypes_.AUDIO.activePlaylistLoader){if(n=this.mediaTypes_.AUDIO.activePlaylistLoader.media(),null===(i=this.syncController_.getExpiredTime(n,this.mediaSource.duration)))return;if(0===(e=_.Playlist.seekable(n,i)).length)return}e?e.start(0)>t.end(0)||t.start(0)>e.end(0)?this.seekable_=t:this.seekable_=d.default.createTimeRanges([[e.start(0)>t.start(0)?e.start(0):t.start(0),e.end(0)<t.end(0)?e.end(0):t.end(0)]]):this.seekable_=t,this.tech_.trigger("seekablechanged")}}}}},{key:"updateDuration",value:function(){var t=this,e=this.mediaSource.duration,n=_.Playlist.duration(this.masterPlaylistLoader_.media()),i=this.tech_.buffered(),r=function e(){t.mediaSource.duration=n,t.tech_.trigger("durationchange"),t.mediaSource.removeEventListener("sourceopen",e)};i.length>0&&(n=Math.max(n,i.end(i.length-1))),e!==n&&("open"!==this.mediaSource.readyState?this.mediaSource.addEventListener("sourceopen",r):r())}},{key:"dispose",value:function(){var t=this;this.decrypter_.terminate(),this.masterPlaylistLoader_.dispose(),this.mainSegmentLoader_.dispose(),["AUDIO","SUBTITLES"].forEach(function(e){var n=t.mediaTypes_[e].groups;for(var i in n)n[i].forEach(function(t){t.playlistLoader&&t.playlistLoader.dispose()})}),this.audioSegmentLoader_.dispose(),this.subtitleSegmentLoader_.dispose()}},{key:"master",value:function(){return this.masterPlaylistLoader_.master}},{key:"media",value:function(){return this.masterPlaylistLoader_.media()||this.initialMedia_}},{key:"setupSourceBuffers_",value:function(){var t,e=this.masterPlaylistLoader_.media();if(e&&"open"===this.mediaSource.readyState){if((t=C(this.masterPlaylistLoader_.master,e)).length<1)return this.error="No compatible SourceBuffer configuration for the variant stream:"+e.resolvedUri,this.mediaSource.endOfStream("decode");this.mainSegmentLoader_.mimeType(t[0]),t[1]&&this.audioSegmentLoader_.mimeType(t[1]),this.excludeIncompatibleVariants_(e)}}},{key:"excludeIncompatibleVariants_",value:function(t){var e=this.masterPlaylistLoader_.master,n=2,i=null,r=void 0;t.attributes.CODECS&&(r=(0,g.parseCodecs)(t.attributes.CODECS),i=r.videoCodec,n=r.codecCount),e.playlists.forEach(function(t){var e={codecCount:2,videoCodec:null};if(t.attributes.CODECS){var r=t.attributes.CODECS;e=(0,g.parseCodecs)(r),window.MediaSource&&window.MediaSource.isTypeSupported&&!window.MediaSource.isTypeSupported('video/mp4; codecs="'+S(r)+'"')&&(t.excludeUntil=1/0)}e.codecCount!==n&&(t.excludeUntil=1/0),e.videoCodec!==i&&(t.excludeUntil=1/0)})}},{key:"updateAdCues_",value:function(t){var e=0,n=this.seekable();n.length&&(e=n.start(0)),f.default.updateAdCues(t,this.cueTagsTrack_,e)}},{key:"goalBufferLength",value:function(){var t=this.tech_.currentTime(),e=m.default.GOAL_BUFFER_LENGTH,n=m.default.GOAL_BUFFER_LENGTH_RATE,i=Math.max(e,m.default.MAX_GOAL_BUFFER_LENGTH);return Math.min(e+t*n,i)}},{key:"bufferLowWaterLine",value:function(){var t=this.tech_.currentTime(),e=m.default.BUFFER_LOW_WATER_LINE,n=m.default.BUFFER_LOW_WATER_LINE_RATE,i=Math.max(e,m.default.MAX_BUFFER_LOW_WATER_LINE);return Math.min(e+t*n,i)}}]),e}();e.MasterPlaylistController=x},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),r=function(t,e,n){for(var i=!0;i;){var r=t,o=e,a=n;i=!1,null===r&&(r=Function.prototype);var s=Object.getOwnPropertyDescriptor(r,o);if(void 0!==s){if("value"in s)return s.value;var u=s.get;if(void 0===u)return;return u.call(a)}var l=Object.getPrototypeOf(r);if(null===l)return;t=l,e=o,n=a,i=!0,s=l=void 0}};function o(t){return t&&t.__esModule?t:{default:t}}var a=o(n(520)),s=o(n(405)),u=o(n(567)),l=o(n(568)),c=o(n(406)),d=o(n(549)),f=n(530),h=n(569),p=n(570),v=n(571),y=function(t,e,n){if(!t||!e)return!1;var i=n===t.segments.length;return t.endList&&"open"===e.readyState&&i},m=function(t){return"number"==typeof t&&isFinite(t)},g=function(t,e,n){return"main"===t&&e&&n?n.containsAudio||n.containsVideo?e.containsVideo&&!n.containsVideo?"Only audio found in segment when we expected video. We can't switch to audio only from a stream that had video. To get rid of this message, please add codec information to the manifest.":!e.containsVideo&&n.containsVideo?"Video found in segment when we expected only audio. We can't switch to a stream with video from an audio only stream. To get rid of this message, please add codec information to the manifest.":null:"Neither audio nor video found in segment.":null};e.illegalMediaSwitch=g;var b=function(t,e,n){var i=void 0;return i=t.length&&t.start(0)>0&&t.start(0)<e?t.start(0):e-30,Math.min(i,e-n)};e.safeBackBufferTrimTime=b;var _=function(t){function e(t){var n=this,i=arguments.length<=1||void 0===arguments[1]?{}:arguments[1];if(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),r(Object.getPrototypeOf(e.prototype),"constructor",this).call(this),!t)throw new TypeError("Initialization settings are required");if("function"!=typeof t.currentTime)throw new TypeError("No currentTime getter specified");if(!t.mediaSource)throw new TypeError("No MediaSource specified");this.state="INIT",this.bandwidth=t.bandwidth,this.throughput={rate:0,count:0},this.roundTrip=NaN,this.resetStats_(),this.mediaIndex=null,this.hasPlayed_=t.hasPlayed,this.currentTime_=t.currentTime,this.seekable_=t.seekable,this.seeking_=t.seeking,this.duration_=t.duration,this.mediaSource_=t.mediaSource,this.hls_=t.hls,this.loaderType_=t.loaderType,this.startingMedia_=void 0,this.segmentMetadataTrack_=t.segmentMetadataTrack,this.goalBufferLength_=t.goalBufferLength,this.checkBufferTimeout_=null,this.error_=void 0,this.currentTimeline_=-1,this.pendingSegment_=null,this.mimeType_=null,this.sourceUpdater_=null,this.xhrOptions_=null,this.activeInitSegmentId_=null,this.initSegments_={},this.decrypter_=t.decrypter,this.syncController_=t.syncController,this.syncPoint_={segmentIndex:0,time:0},this.syncController_.on("syncinfoupdate",function(){return n.trigger("syncinfoupdate")}),this.mediaSource_.addEventListener("sourceopen",function(){return n.ended_=!1}),this.fetchAtBuffer_=!1,i.debug&&(this.logger_=s.default.log.bind(s.default,"segment-loader",this.loaderType_,"->"))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,s["default"].EventTarget),i(e,[{key:"resetStats_",value:function(){this.mediaBytesTransferred=0,this.mediaRequests=0,this.mediaRequestsAborted=0,this.mediaRequestsTimedout=0,this.mediaRequestsErrored=0,this.mediaTransferDuration=0,this.mediaSecondsLoaded=0}},{key:"dispose",value:function(){this.state="DISPOSED",this.pause(),this.abort_(),this.sourceUpdater_&&this.sourceUpdater_.dispose(),this.resetStats_()}},{key:"abort",value:function(){"WAITING"===this.state?(this.abort_(),this.state="READY",this.paused()||this.monitorBuffer_()):this.pendingSegment_&&(this.pendingSegment_=null)}},{key:"abort_",value:function(){this.pendingSegment_&&this.pendingSegment_.abortRequests(),this.pendingSegment_=null}},{key:"error",value:function(t){return void 0!==t&&(this.error_=t),this.pendingSegment_=null,this.error_}},{key:"endOfStream",value:function(){this.ended_=!0,this.pause(),this.trigger("ended")}},{key:"buffered_",value:function(){return this.sourceUpdater_?this.sourceUpdater_.buffered():s.default.createTimeRanges()}},{key:"initSegment",value:function(t){var e=!(arguments.length<=1||void 0===arguments[1])&&arguments[1];if(!t)return null;var n=(0,f.initSegmentId)(t),i=this.initSegments_[n];return e&&!i&&t.bytes&&(this.initSegments_[n]=i={resolvedUri:t.resolvedUri,byterange:t.byterange,bytes:t.bytes}),i||t}},{key:"couldBeginLoading_",value:function(){return this.playlist_&&(this.sourceUpdater_||this.mimeType_&&"INIT"===this.state)&&!this.paused()}},{key:"load",value:function(){if(this.monitorBuffer_(),this.playlist_){if(this.syncController_.setDateTimeMapping(this.playlist_),"INIT"===this.state&&this.couldBeginLoading_())return this.init_();!this.couldBeginLoading_()||"READY"!==this.state&&"INIT"!==this.state||(this.state="READY")}}},{key:"init_",value:function(){return this.state="READY",this.sourceUpdater_=new u.default(this.mediaSource_,this.mimeType_),this.resetEverything(),this.monitorBuffer_()}},{key:"playlist",value:function(t){var e=arguments.length<=1||void 0===arguments[1]?{}:arguments[1];if(t){var n=this.playlist_,i=this.pendingSegment_;if(this.playlist_=t,this.xhrOptions_=e,this.hasPlayed_()||(t.syncInfo={mediaSequence:t.mediaSequence,time:0}),this.trigger("syncinfoupdate"),"INIT"===this.state&&this.couldBeginLoading_())return this.init_();if(n&&n.uri===t.uri){var r=t.mediaSequence-n.mediaSequence;this.logger_("mediaSequenceDiff",r),null!==this.mediaIndex&&(this.mediaIndex-=r),i&&(i.mediaIndex-=r,i.mediaIndex>=0&&(i.segment=t.segments[i.mediaIndex])),this.syncController_.saveExpiredSegmentInfo(n,t)}else null!==this.mediaIndex&&this.resyncLoader()}}},{key:"pause",value:function(){this.checkBufferTimeout_&&(c.default.clearTimeout(this.checkBufferTimeout_),this.checkBufferTimeout_=null)}},{key:"paused",value:function(){return null===this.checkBufferTimeout_}},{key:"mimeType",value:function(t){this.mimeType_||(this.mimeType_=t,"INIT"===this.state&&this.couldBeginLoading_()&&this.init_())}},{key:"resetEverything",value:function(){this.ended_=!1,this.resetLoader(),this.remove(0,this.duration_()),this.trigger("reseteverything")}},{key:"resetLoader",value:function(){this.fetchAtBuffer_=!1,this.resyncLoader()}},{key:"resyncLoader",value:function(){this.mediaIndex=null,this.syncPoint_=null,this.abort()}},{key:"remove",value:function(t,e){this.sourceUpdater_&&this.sourceUpdater_.remove(t,e),(0,d.default)(t,e,this.segmentMetadataTrack_)}},{key:"monitorBuffer_",value:function(){this.checkBufferTimeout_&&c.default.clearTimeout(this.checkBufferTimeout_),this.checkBufferTimeout_=c.default.setTimeout(this.monitorBufferTick_.bind(this),1)}},{key:"monitorBufferTick_",value:function(){"READY"===this.state&&this.fillBuffer_(),this.checkBufferTimeout_&&c.default.clearTimeout(this.checkBufferTimeout_),this.checkBufferTimeout_=c.default.setTimeout(this.monitorBufferTick_.bind(this),500)}},{key:"fillBuffer_",value:function(){if(!this.sourceUpdater_.updating()){this.syncPoint_||(this.syncPoint_=this.syncController_.getSyncPoint(this.playlist_,this.duration_(),this.currentTimeline_,this.currentTime_()));var t=this.checkBuffer_(this.buffered_(),this.playlist_,this.mediaIndex,this.hasPlayed_(),this.currentTime_(),this.syncPoint_);if(t)y(this.playlist_,this.mediaSource_,t.mediaIndex)?this.endOfStream():(t.mediaIndex!==this.playlist_.segments.length-1||"ended"!==this.mediaSource_.readyState||this.seeking_())&&((t.timeline!==this.currentTimeline_||null!==t.startOfSegment&&t.startOfSegment<this.sourceUpdater_.timestampOffset())&&(this.syncController_.reset(),t.timestampOffset=t.startOfSegment),this.loadSegment_(t))}}},{key:"checkBuffer_",value:function(t,e,n,i,r,o){var s=0,u=void 0;t.length&&(s=t.end(t.length-1));var l,c=Math.max(0,s-r);if(!e.segments.length)return null;if(c>=this.goalBufferLength_())return null;if(!i&&c>=1)return null;if(this.logger_("checkBuffer_","mediaIndex:",n,"hasPlayed:",i,"currentTime:",r,"syncPoint:",o,"fetchAtBuffer:",this.fetchAtBuffer_,"bufferedTime:",c),null===o)return n=this.getSyncSegmentCandidate_(e),this.logger_("getSync","mediaIndex:",n),this.generateSegmentInfo_(e,n,null,!0);if(null!==n){this.logger_("walkForward","mediaIndex:",n+1);var d=e.segments[n];return u=d&&d.end?d.end:s,this.generateSegmentInfo_(e,n+1,u,!1)}this.fetchAtBuffer_?(n=(l=a.default.getMediaInfoForTime(e,s,o.segmentIndex,o.time)).mediaIndex,u=l.startTime):(n=(l=a.default.getMediaInfoForTime(e,r,o.segmentIndex,o.time)).mediaIndex,u=l.startTime);return this.logger_("getMediaIndexForTime","mediaIndex:",n,"startOfSegment:",u),this.generateSegmentInfo_(e,n,u,!1)}},{key:"getSyncSegmentCandidate_",value:function(t){var e=this;if(-1===this.currentTimeline_)return 0;var n=t.segments.map(function(t,e){return{timeline:t.timeline,segmentIndex:e}}).filter(function(t){return t.timeline===e.currentTimeline_});return n.length?n[Math.min(n.length-1,1)].segmentIndex:Math.max(t.segments.length-1,0)}},{key:"generateSegmentInfo_",value:function(t,e,n,i){if(e<0||e>=t.segments.length)return null;var r=t.segments[e];return{requestId:"segment-loader-"+Math.random(),uri:r.resolvedUri,mediaIndex:e,isSyncRequest:i,startOfSegment:n,playlist:t,bytes:null,encryptedBytes:null,timestampOffset:null,timeline:r.timeline,duration:r.duration,segment:r}}},{key:"abortRequestEarly_",value:function(t){if(this.hls_.tech_.paused()||!this.xhrOptions_.timeout||!this.playlist_.attributes.BANDWIDTH)return!1;if(Date.now()-(t.firstBytesReceivedAt||Date.now())<1e3)return!1;var e=this.currentTime_(),n=t.bandwidth,i=this.pendingSegment_.duration,r=a.default.estimateSegmentRequestTime(i,n,this.playlist_,t.bytesReceived),o=(0,p.timeUntilRebuffer)(this.buffered_(),e,this.hls_.tech_.playbackRate())-1;if(r<=o)return!1;var s=(0,v.minRebufferMaxBandwidthSelector)({master:this.hls_.playlists.master,currentTime:e,bandwidth:n,duration:this.duration_(),segmentDuration:i,timeUntilRebuffer:o,currentTimeline:this.currentTimeline_,syncController:this.syncController_});if(s){var u=r-o-s.rebufferingImpact,c=.5;return o<=p.TIME_FUDGE_FACTOR&&(c=1),!s.playlist||s.playlist.uri===this.playlist_.uri||u<c?!1:(this.bandwidth=s.playlist.attributes.BANDWIDTH*l.default.BANDWIDTH_VARIANCE+1,this.abort(),this.trigger("earlyabort"),!0)}}},{key:"handleProgress_",value:function(t,e){this.pendingSegment_&&e.requestId===this.pendingSegment_.requestId&&!this.abortRequestEarly_(e.stats)&&this.trigger("progress")}},{key:"loadSegment_",value:function(t){this.state="WAITING",this.pendingSegment_=t,this.trimBackBuffer_(t),t.abortRequests=(0,h.mediaSegmentRequest)(this.hls_.xhr,this.xhrOptions_,this.decrypter_,this.createSimplifiedSegmentObj_(t),this.handleProgress_.bind(this),this.segmentRequestFinished_.bind(this))}},{key:"trimBackBuffer_",value:function(t){var e=b(this.seekable_(),this.currentTime_(),this.playlist_.targetDuration||10);e>0&&this.remove(0,e)}},{key:"createSimplifiedSegmentObj_",value:function(t){var e=t.segment,n={resolvedUri:e.resolvedUri,byterange:e.byterange,requestId:t.requestId};if(e.key){var i=e.key.iv||new Uint32Array([0,0,0,t.mediaIndex+t.playlist.mediaSequence]);n.key={resolvedUri:e.key.resolvedUri,iv:i}}return e.map&&(n.map=this.initSegment(e.map)),n}},{key:"segmentRequestFinished_",value:function(t,e){if(this.mediaRequests+=1,e.stats&&(this.mediaBytesTransferred+=e.stats.bytesReceived,this.mediaTransferDuration+=e.stats.roundTripTime),this.pendingSegment_){if(e.requestId===this.pendingSegment_.requestId){if(t)return this.pendingSegment_=null,this.state="READY",t.code===h.REQUEST_ERRORS.ABORTED?void(this.mediaRequestsAborted+=1):(this.pause(),t.code===h.REQUEST_ERRORS.TIMEOUT?(this.mediaRequestsTimedout+=1,this.bandwidth=1,this.roundTrip=NaN,void this.trigger("bandwidthupdate")):(this.mediaRequestsErrored+=1,this.error(t),void this.trigger("error")));this.bandwidth=e.stats.bandwidth,this.roundTrip=e.stats.roundTripTime,e.map&&(e.map=this.initSegment(e.map,!0)),this.processSegmentResponse_(e)}}else this.mediaRequestsAborted+=1}},{key:"processSegmentResponse_",value:function(t){var e=this.pendingSegment_;e.bytes=t.bytes,t.map&&(e.segment.map.bytes=t.map.bytes),e.endOfAllRequests=t.endOfAllRequests,this.handleSegment_()}},{key:"handleSegment_",value:function(){var t=this;if(this.pendingSegment_){var e=this.pendingSegment_,n=e.segment,i=this.syncController_.probeSegmentInfo(e);void 0===this.startingMedia_&&i&&(i.containsAudio||i.containsVideo)&&(this.startingMedia_={containsAudio:i.containsAudio,containsVideo:i.containsVideo});var r=g(this.loaderType_,this.startingMedia_,i);if(r)return this.error({message:r,blacklistDuration:1/0}),void this.trigger("error");if(e.isSyncRequest)return this.trigger("syncinfoupdate"),this.pendingSegment_=null,void(this.state="READY");null!==e.timestampOffset&&e.timestampOffset!==this.sourceUpdater_.timestampOffset()&&(this.sourceUpdater_.timestampOffset(e.timestampOffset),this.trigger("timestampoffset"));var o=this.syncController_.mappingForTimeline(e.timeline);null!==o&&this.trigger({type:"segmenttimemapping",mapping:o}),this.state="APPENDING",n.map&&function(){var e=(0,f.initSegmentId)(n.map);if(!t.activeInitSegmentId_||t.activeInitSegmentId_!==e){var i=t.initSegment(n.map);t.sourceUpdater_.appendBuffer(i.bytes,function(){t.activeInitSegmentId_=e})}}(),e.byteLength=e.bytes.byteLength,"number"==typeof n.start&&"number"==typeof n.end?this.mediaSecondsLoaded+=n.end-n.start:this.mediaSecondsLoaded+=n.duration,this.sourceUpdater_.appendBuffer(e.bytes,this.handleUpdateEnd_.bind(this))}else this.state="READY"}},{key:"handleUpdateEnd_",value:function(){if(this.logger_("handleUpdateEnd_","segmentInfo:",this.pendingSegment_),!this.pendingSegment_)return this.state="READY",void(this.paused()||this.monitorBuffer_());var t=this.pendingSegment_,e=t.segment,n=null!==this.mediaIndex;(this.pendingSegment_=null,this.recordThroughput_(t),this.addSegmentMetadataCue_(t),this.state="READY",this.mediaIndex=t.mediaIndex,this.fetchAtBuffer_=!0,this.currentTimeline_=t.timeline,this.trigger("syncinfoupdate"),e.end&&this.currentTime_()-e.end>3*t.playlist.targetDuration)?this.resetEverything():(n&&this.trigger("bandwidthupdate"),this.trigger("progress"),y(t.playlist,this.mediaSource_,t.mediaIndex+1)&&this.endOfStream(),this.paused()||this.monitorBuffer_())}},{key:"recordThroughput_",value:function(t){var e=this.throughput.rate,n=Date.now()-t.endOfAllRequests+1,i=Math.floor(t.byteLength/n*8*1e3);this.throughput.rate+=(i-e)/++this.throughput.count}},{key:"logger_",value:function(){}},{key:"addSegmentMetadataCue_",value:function(t){if(this.segmentMetadataTrack_){var e=t.segment,n=e.start,i=e.end;if(m(n)&&m(i)){(0,d.default)(n,i,this.segmentMetadataTrack_);var r=c.default.WebKitDataCue||c.default.VTTCue,o={bandwidth:t.playlist.attributes.BANDWIDTH,resolution:t.playlist.attributes.RESOLUTION,codecs:t.playlist.attributes.CODECS,byteLength:t.byteLength,uri:t.uri,timeline:t.timeline,playlist:t.playlist.uri,start:n,end:i},a=new r(n,i,JSON.stringify(o));a.value=o,this.segmentMetadataTrack_.addCue(a)}}}}]),e}();e.default=_},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}();var r,o=n(405),a=(r=o)&&r.__esModule?r:{default:r},s=function(){},u=function(){function t(e,n){var i=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(){i.sourceBuffer_=e.addSourceBuffer(n),i.onUpdateendCallback_=function(){var t=i.pendingCallback_;i.pendingCallback_=null,t&&t(),i.runCallback_()},i.sourceBuffer_.addEventListener("updateend",i.onUpdateendCallback_),i.runCallback_()};this.callbacks_=[],this.pendingCallback_=null,this.timestampOffset_=0,this.mediaSource=e,this.processedAppend_=!1,"closed"===e.readyState?e.addEventListener("sourceopen",r):r()}return i(t,[{key:"abort",value:function(t){var e=this;this.processedAppend_&&this.queueCallback_(function(){e.sourceBuffer_.abort()},t)}},{key:"appendBuffer",value:function(t,e){var n=this;this.processedAppend_=!0,this.queueCallback_(function(){n.sourceBuffer_.appendBuffer(t)},e)}},{key:"buffered",value:function(){return this.sourceBuffer_?this.sourceBuffer_.buffered:a.default.createTimeRanges()}},{key:"remove",value:function(t,e){var n=this;this.processedAppend_&&this.queueCallback_(function(){n.sourceBuffer_.remove(t,e)},s)}},{key:"updating",value:function(){return!this.sourceBuffer_||this.sourceBuffer_.updating||this.pendingCallback_}},{key:"timestampOffset",value:function(t){var e=this;return void 0!==t&&(this.queueCallback_(function(){e.sourceBuffer_.timestampOffset=t}),this.timestampOffset_=t),this.timestampOffset_}},{key:"queueCallback_",value:function(t,e){this.callbacks_.push([t.bind(this),e]),this.runCallback_()}},{key:"runCallback_",value:function(){var t=void 0;!this.updating()&&this.callbacks_.length&&(t=this.callbacks_.shift(),this.pendingCallback_=t[1],t[0]())}},{key:"dispose",value:function(){this.sourceBuffer_.removeEventListener("updateend",this.onUpdateendCallback_),this.sourceBuffer_&&"open"===this.mediaSource.readyState&&this.sourceBuffer_.abort()}}]),t}();e.default=u,t.exports=e.default},function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={GOAL_BUFFER_LENGTH:30,MAX_GOAL_BUFFER_LENGTH:60,GOAL_BUFFER_LENGTH_RATE:1,BANDWIDTH_VARIANCE:1.2,BUFFER_LOW_WATER_LINE:0,MAX_BUFFER_LOW_WATER_LINE:30,BUFFER_LOW_WATER_LINE_RATE:1},t.exports=e.default},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i,r=n(405),o=(i=r)&&i.__esModule?i:{default:i},a=n(530),s={FAILURE:2,TIMEOUT:-101,ABORTED:-102};e.REQUEST_ERRORS=s;var u=function(t){var e,n,i={};return t.byterange&&(i.Range=(e=t.byterange,n=e.offset+e.length-1,"bytes="+e.offset+"-"+n)),i},l=function(t){t.forEach(function(t){t.abort()})},c=function(t,e){return e.timedout?{status:e.status,message:"HLS request timed-out at URL: "+e.uri,code:s.TIMEOUT,xhr:e}:e.aborted?{status:e.status,message:"HLS request aborted at URL: "+e.uri,code:s.ABORTED,xhr:e}:t?{status:e.status,message:"HLS request errored at URL: "+e.uri,code:s.FAILURE,xhr:e}:null},d=function(t,e,n){var i=[],r=0;return function(o,s){if(o&&(l(t),i.push(o)),(r+=1)===t.length){if(s.endOfAllRequests=Date.now(),i.length>0){var u=function(t){return t.reduce(function(t,e){return e.code>t.code?e:t})}(i);return n(u,s)}return s.encryptedBytes?function(t,e,n){t.addEventListener("message",function i(r){if(r.data.source===e.requestId){t.removeEventListener("message",i);var o=r.data.decrypted;return e.bytes=new Uint8Array(o.bytes,o.byteOffset,o.byteLength),n(null,e)}}),t.postMessage((0,a.createTransferableMessage)({source:e.requestId,encrypted:e.encryptedBytes,key:e.key.bytes,iv:e.key.iv}),[e.encryptedBytes.buffer,e.key.bytes.buffer])}(e,s,n):n(null,s)}}},f=function(t,e){return function(n){var i,r,a;return t.stats=o.default.mergeOptions(t.stats,(r=(i=n).target,(a={bandwidth:1/0,bytesReceived:0,roundTripTime:Date.now()-r.requestTime||0}).bytesReceived=i.loaded,a.bandwidth=Math.floor(a.bytesReceived/a.roundTripTime*8*1e3),a)),!t.stats.firstBytesReceivedAt&&t.stats.bytesReceived&&(t.stats.firstBytesReceivedAt=Date.now()),e(n,t)}};e.mediaSegmentRequest=function(t,e,n,i,r,a){var h=[],p=d(h,n,a);if(i.key){var v=t(o.default.mergeOptions(e,{uri:i.key.resolvedUri,responseType:"arraybuffer"}),function(t,e){return function(n,i){var r=i.response,o=c(n,i);if(o)return e(o,t);if(16!==r.byteLength)return e({status:i.status,message:"Invalid HLS key at URL: "+i.uri,code:s.FAILURE,xhr:i},t);var a=new DataView(r);return t.key.bytes=new Uint32Array([a.getUint32(0),a.getUint32(4),a.getUint32(8),a.getUint32(12)]),e(null,t)}}(i,p));h.push(v)}if(i.map&&!i.map.bytes){var y=t(o.default.mergeOptions(e,{uri:i.map.resolvedUri,responseType:"arraybuffer",headers:u(i.map)}),function(t,e){return function(n,i){var r=i.response,o=c(n,i);return o?e(o,t):0===r.byteLength?e({status:i.status,message:"Empty HLS segment content at URL: "+i.uri,code:s.FAILURE,xhr:i},t):(t.map.bytes=new Uint8Array(i.response),e(null,t))}}(i,p));h.push(y)}var m=t(o.default.mergeOptions(e,{uri:i.resolvedUri,responseType:"arraybuffer",headers:u(i)}),function(t,e){return function(n,i){var r=i.response,o=c(n,i);return o?e(o,t):0===r.byteLength?e({status:i.status,message:"Empty HLS segment content at URL: "+i.uri,code:s.FAILURE,xhr:i},t):(t.stats=function(t){return{bandwidth:t.bandwidth,bytesReceived:t.bytesReceived||0,roundTripTime:t.roundTripTime||0}}(i),t.key?t.encryptedBytes=new Uint8Array(i.response):t.bytes=new Uint8Array(i.response),e(null,t))}}(i,p));return m.addEventListener("progress",f(i,r)),h.push(m),function(){return l(h)}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=function(){return function(t,e){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return function(t,e){var n=[],i=!0,r=!1,o=void 0;try{for(var a,s=t[Symbol.iterator]();!(i=(a=s.next()).done)&&(n.push(a.value),!e||n.length!==e);i=!0);}catch(t){r=!0,o=t}finally{try{!i&&s.return&&s.return()}finally{if(r)throw o}}return n}(t,e);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}();var r,o=n(405),a=(r=o)&&r.__esModule?r:{default:r},s=function(t,e){var n=[],i=void 0;if(t&&t.length)for(i=0;i<t.length;i++)e(t.start(i),t.end(i))&&n.push([t.start(i),t.end(i)]);return a.default.createTimeRanges(n)},u=function(t,e){var n=null,i=null,r=0,o=[],s=[];if(!(t&&t.length&&e&&e.length))return a.default.createTimeRange();for(var u=t.length;u--;)o.push({time:t.start(u),type:"start"}),o.push({time:t.end(u),type:"end"});for(u=e.length;u--;)o.push({time:e.start(u),type:"start"}),o.push({time:e.end(u),type:"end"});for(o.sort(function(t,e){return t.time-e.time}),u=0;u<o.length;u++)"start"===o[u].type?2===++r&&(n=o[u].time):"end"===o[u].type&&1===--r&&(i=o[u].time),null!==n&&null!==i&&(s.push([n,i]),n=null,i=null);return a.default.createTimeRanges(s)};e.default={findRange:function(t,e){return s(t,function(t,n){return t-1/30<=e&&n+1/30>=e})},findNextRange:function(t,e){return s(t,function(t){return t-1/30>=e})},findGaps:function(t){if(t.length<2)return a.default.createTimeRanges();for(var e=[],n=1;n<t.length;n++){var i=t.end(n-1),r=t.start(n);e.push([i,r])}return a.default.createTimeRanges(e)},findSoleUncommonTimeRangesEnd:function(t,e){var n=void 0,i=void 0,r=void 0,o=[],a=[],s=function(t){return t[0]<=r&&t[1]>=r};if(t)for(n=0;n<t.length;n++)i=t.start(n),r=t.end(n),a.push([i,r]);if(e)for(n=0;n<e.length;n++)i=e.start(n),r=e.end(n),a.some(s)||o.push(r);return 1!==o.length?null:o[0]},getSegmentBufferedPercent:function(t,e,n,r){var o,s,l,c,d,f=t+e,h=a.default.createTimeRanges([[t,f]]),p=a.default.createTimeRanges([[(o=t,s=[n,f],l=i(s,2),c=l[0],d=l[1],Math.min(Math.max(c,o),d)),f]]);if(p.start(0)===p.end(0))return 0;var v=function(t,e,n,i){for(var r=e.end(0)-e.start(0),o=r-(t.end(0)-t.start(0)),a=u(t,i),s=u(e,i),l=0,c=0,d=a.length;d--;)l+=a.end(d)-a.start(d),a.start(d)===n&&(l+=o);for(d=s.length;d--;)c+=s.end(d)-s.start(d);return Math.max(l,c)/r*100}(p,h,n,r);return isNaN(v)||v===1/0||v===-1/0?0:v},TIME_FUDGE_FACTOR:1/30,SAFE_TIME_DELTA:.1,printableRange:function(t){var e=[];if(!t||!t.length)return"";for(var n=0;n<t.length;n++)e.push(t.start(n)+" => "+t.end(n));return e.join(", ")},timeUntilRebuffer:function(t,e){var n=arguments.length<=2||void 0===arguments[2]?1:arguments[2];return((t.length?t.end(t.length-1):0)-e)/n}},t.exports=e.default},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var r=i(n(568)),o=i(n(520)),a=n(572),s=function(t,e){var n;return t&&(n=window.getComputedStyle(t))?n[e]:""},u=function(t,e){var n=t.slice();t.sort(function(t,i){var r=e(t,i);return 0===r?n.indexOf(t)-n.indexOf(i):r})},l=function(t,e){var n=void 0,i=void 0;return t.attributes.BANDWIDTH&&(n=t.attributes.BANDWIDTH),n=n||window.Number.MAX_VALUE,e.attributes.BANDWIDTH&&(i=e.attributes.BANDWIDTH),n-(i=i||window.Number.MAX_VALUE)};e.comparePlaylistBandwidth=l;e.comparePlaylistResolution=function(t,e){var n=void 0,i=void 0;return t.attributes.RESOLUTION&&t.attributes.RESOLUTION.width&&(n=t.attributes.RESOLUTION.width),n=n||window.Number.MAX_VALUE,e.attributes.RESOLUTION&&e.attributes.RESOLUTION.width&&(i=e.attributes.RESOLUTION.width),n===(i=i||window.Number.MAX_VALUE)&&t.attributes.BANDWIDTH&&e.attributes.BANDWIDTH?t.attributes.BANDWIDTH-e.attributes.BANDWIDTH:n-i};var c=function(t,e,n,i){var a=t.playlists.map(function(t){var e,n;return e=t.attributes.RESOLUTION&&t.attributes.RESOLUTION.width,n=t.attributes.RESOLUTION&&t.attributes.RESOLUTION.height,{bandwidth:t.attributes.BANDWIDTH||window.Number.MAX_VALUE,width:e,height:n,playlist:t}});u(a,function(t,e){return t.bandwidth-e.bandwidth});var s=(a=a.filter(function(t){return!o.default.isIncompatible(t.playlist)})).filter(function(t){return o.default.isEnabled(t.playlist)});s.length||(s=a.filter(function(t){return!o.default.isDisabled(t.playlist)}));var l=s.filter(function(t){return t.bandwidth*r.default.BANDWIDTH_VARIANCE<e}),c=l[l.length-1],d=l.filter(function(t){return t.bandwidth===c.bandwidth})[0],f=l.filter(function(t){return t.width&&t.height});u(f,function(t,e){return t.width-e.width});var h=f.filter(function(t){return t.width===n&&t.height===i});c=h[h.length-1];var p=h.filter(function(t){return t.bandwidth===c.bandwidth})[0],v=void 0,y=void 0,m=void 0;p||(y=(v=f.filter(function(t){return t.width>n||t.height>i})).filter(function(t){return t.width===v[0].width&&t.height===v[0].height}),c=y[y.length-1],m=y.filter(function(t){return t.bandwidth===c.bandwidth})[0]);var g=m||p||d||s[0]||a[0];return g?g.playlist:null};e.simpleSelector=c;e.lastBandwidthSelector=function(){return c(this.playlists.master,this.systemBandwidth,parseInt(s(this.tech_.el(),"width"),10),parseInt(s(this.tech_.el(),"height"),10))};e.movingAverageBandwidthSelector=function(t){var e=-1;if(t<0||t>1)throw new Error("Moving average bandwidth decay must be between 0 and 1.");return function(){return e<0&&(e=this.systemBandwidth),e=t*this.systemBandwidth+(1-t)*e,c(this.playlists.master,e,parseInt(s(this.tech_.el(),"width"),10),parseInt(s(this.tech_.el(),"height"),10))}};e.minRebufferMaxBandwidthSelector=function(t){var e=t.master,n=t.currentTime,i=t.bandwidth,r=t.duration,a=t.segmentDuration,s=t.timeUntilRebuffer,c=t.currentTimeline,d=t.syncController,f=e.playlists.filter(function(t){return!o.default.isIncompatible(t)}),h=f.filter(o.default.isEnabled);h.length||(h=f.filter(function(t){return!o.default.isDisabled(t)}));var p=h.filter(o.default.hasAttribute.bind(null,"BANDWIDTH")).map(function(t){var e=d.getSyncPoint(t,r,c,n)?1:2;return{playlist:t,rebufferingImpact:o.default.estimateSegmentRequestTime(a,i,t)*e-s}}),v=p.filter(function(t){return t.rebufferingImpact<=0});return u(v,function(t,e){return l(e.playlist,t.playlist)}),v.length?v[0]:(u(p,function(t,e){return t.rebufferingImpact-e.rebufferingImpact}),p[0]||null)};e.lowestBitrateCompatibleVariantSelector=function(){var t=this.playlists.master.playlists.filter(o.default.isEnabled);return u(t,function(t,e){return l(t,e)}),t.filter(function(t){return(0,a.parseCodecs)(t.attributes.CODECS).videoCodec})[0]||null}},function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.parseCodecs=function(){var t,e=arguments.length<=0||void 0===arguments[0]?"":arguments[0],n={codecCount:0};return n.codecCount=e.split(",").length,n.codecCount=n.codecCount||2,(t=/(^|\s|,)+(avc1)([^ ,]*)/i.exec(e))&&(n.videoCodec=t[2],n.videoObjectTypeIndicator=t[3]),n.audioProfile=/(^|\s|,)+mp4a.[0-9A-Fa-f]+\.([0-9A-Fa-f]+)/i.exec(e),n.audioProfile=n.audioProfile&&n.audioProfile[2],n}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),r=function(t,e,n){for(var i=!0;i;){var r=t,o=e,a=n;i=!1,null===r&&(r=Function.prototype);var s=Object.getOwnPropertyDescriptor(r,o);if(void 0!==s){if("value"in s)return s.value;var u=s.get;if(void 0===u)return;return u.call(a)}var l=Object.getPrototypeOf(r);if(null===l)return;t=l,e=o,n=a,i=!0,s=l=void 0}};function o(t){return t&&t.__esModule?t:{default:t}}var a=o(n(566)),s=o(n(405)),u=o(n(406)),l=o(n(549)),c=n(530),d=new Uint8Array("\n\n".split("").map(function(t){return t.charCodeAt(0)})),f=function(t){return String.fromCharCode.apply(null,t)},h=function(t){function e(t){var n=arguments.length<=1||void 0===arguments[1]?{}:arguments[1];!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),r(Object.getPrototypeOf(e.prototype),"constructor",this).call(this,t,n),this.mediaSource_=null,this.subtitlesTrack_=null}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,a["default"]),i(e,[{key:"buffered_",value:function(){if(!this.subtitlesTrack_||!this.subtitlesTrack_.cues.length)return s.default.createTimeRanges();var t=this.subtitlesTrack_.cues,e=t[0].startTime,n=t[t.length-1].startTime;return s.default.createTimeRanges([[e,n]])}},{key:"initSegment",value:function(t){var e=!(arguments.length<=1||void 0===arguments[1])&&arguments[1];if(!t)return null;var n=(0,c.initSegmentId)(t),i=this.initSegments_[n];if(e&&!i&&t.bytes){var r=d.byteLength+t.bytes.byteLength,o=new Uint8Array(r);o.set(t.bytes),o.set(d,t.bytes.byteLength),this.initSegments_[n]=i={resolvedUri:t.resolvedUri,byterange:t.byterange,bytes:o}}return i||t}},{key:"couldBeginLoading_",value:function(){return this.playlist_&&this.subtitlesTrack_&&!this.paused()}},{key:"init_",value:function(){return this.state="READY",this.resetEverything(),this.monitorBuffer_()}},{key:"track",value:function(t){return void 0===t?this.subtitlesTrack_:(this.subtitlesTrack_=t,"INIT"===this.state&&this.couldBeginLoading_()&&this.init_(),this.subtitlesTrack_)}},{key:"remove",value:function(t,e){(0,l.default)(t,e,this.subtitlesTrack_)}},{key:"fillBuffer_",value:function(){var t=this;this.syncPoint_||(this.syncPoint_=this.syncController_.getSyncPoint(this.playlist_,this.duration_(),this.currentTimeline_,this.currentTime_()));var e=this.checkBuffer_(this.buffered_(),this.playlist_,this.mediaIndex,this.hasPlayed_(),this.currentTime_(),this.syncPoint_);if(e=this.skipEmptySegments_(e)){if(null===this.syncController_.timestampOffsetForTimeline(e.timeline)){return this.syncController_.one("timestampoffset",function(){t.state="READY",t.paused()||t.monitorBuffer_()}),void(this.state="WAITING_ON_TIMELINE")}this.loadSegment_(e)}}},{key:"skipEmptySegments_",value:function(t){for(;t&&t.segment.empty;)t=this.generateSegmentInfo_(t.playlist,t.mediaIndex+1,t.startOfSegment+t.duration,t.isSyncRequest);return t}},{key:"handleSegment_",value:function(){var t=this;if(this.pendingSegment_&&this.subtitlesTrack_){this.state="APPENDING";var e,n=this.pendingSegment_,i=n.segment;if("function"!=typeof u.default.WebVTT&&this.subtitlesTrack_&&this.subtitlesTrack_.tech_){var r=(e=function(){t.handleSegment_()},t.state="WAITING_ON_VTTJS",t.subtitlesTrack_.tech_.one("vttjsloaded",e),t.subtitlesTrack_.tech_.one("vttjserror",function(){t.subtitlesTrack_.tech_.off("vttjsloaded",e),t.error({message:"Error loading vtt.js"}),t.state="READY",t.pause(),t.trigger("error")}),{v:void 0});if("object"==typeof r)return r.v}i.requested=!0;try{this.parseVTTCues_(n)}catch(t){return this.error({message:t.message}),this.state="READY",this.pause(),this.trigger("error")}if(this.updateTimeMapping_(n,this.syncController_.timelines[n.timeline],this.playlist_),n.isSyncRequest)return this.trigger("syncinfoupdate"),this.pendingSegment_=null,void(this.state="READY");n.byteLength=n.bytes.byteLength,this.mediaSecondsLoaded+=i.duration,n.cues.length&&this.remove(n.cues[0].endTime,n.cues[n.cues.length-1].endTime),n.cues.forEach(function(e){t.subtitlesTrack_.addCue(e)}),this.handleUpdateEnd_()}else this.state="READY"}},{key:"parseVTTCues_",value:function(t){var e=void 0,n=!1;"function"==typeof u.default.TextDecoder?e=new u.default.TextDecoder("utf8"):(e=u.default.WebVTT.StringDecoder(),n=!0);var i=new u.default.WebVTT.Parser(u.default,u.default.vttjs,e);if(t.cues=[],t.timestampmap={MPEGTS:0,LOCAL:0},i.oncue=t.cues.push.bind(t.cues),i.ontimestampmap=function(e){return t.timestampmap=e},i.onparsingerror=function(t){s.default.log.warn("Error encountered when parsing cues: "+t.message)},t.segment.map){var r=t.segment.map.bytes;n&&(r=f(r)),i.parse(r)}var o=t.bytes;n&&(o=f(o)),i.parse(o),i.flush()}},{key:"updateTimeMapping_",value:function(t,e,n){var i=t.segment;if(e)if(t.cues.length){var r=t.timestampmap,o=r.MPEGTS/9e4-r.LOCAL+e.mapping;if(t.cues.forEach(function(t){t.startTime+=o,t.endTime+=o}),!n.syncInfo){var a=t.cues[0].startTime,s=t.cues[t.cues.length-1].startTime;n.syncInfo={mediaSequence:n.mediaSequence+t.mediaIndex,time:Math.min(a,s-i.duration)}}}else i.empty=!0}}]),e}();e.default=h,t.exports=e.default},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=function(){return function(t,e){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return function(t,e){var n=[],i=!0,r=!1,o=void 0;try{for(var a,s=t[Symbol.iterator]();!(i=(a=s.next()).done)&&(n.push(a.value),!e||n.length!==e);i=!0);}catch(t){r=!0,o=t}finally{try{!i&&s.return&&s.return()}finally{if(r)throw o}}return n}(t,e);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}();var r,o=n(406),a=(r=o)&&r.__esModule?r:{default:r},s=function(t,e){for(var n=t.cues,i=0;i<n.length;i++){var r=n[i];if(e>=r.adStartTime&&e<=r.adEndTime)return r}return null};e.default={updateAdCues:function(t,e){var n=arguments.length<=2||void 0===arguments[2]?0:arguments[2];if(t.segments)for(var r=n,o=void 0,u=0;u<t.segments.length;u++){var l=t.segments[u];if(o||(o=s(e,r+l.duration/2)),o){if("cueIn"in l){o.endTime=r,o.adEndTime=r,r+=l.duration,o=null;continue}if(r<o.endTime){r+=l.duration;continue}o.endTime+=l.duration}else if("cueOut"in l&&((o=new a.default.VTTCue(r,r+l.duration,l.cueOut)).adStartTime=r,o.adEndTime=r+parseFloat(l.cueOut),e.addCue(o)),"cueOutCont"in l){var c,d,f=l.cueOutCont.split("/").map(parseFloat),h=i(f,2);c=h[0],d=h[1],(o=new a.default.VTTCue(r,r+l.duration,"")).adStartTime=r-c,o.adEndTime=o.adStartTime+d,e.addCue(o)}r+=l.duration}},findAdCue:s},t.exports=e.default},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),r=function(t,e,n){for(var i=!0;i;){var r=t,o=e,a=n;i=!1,null===r&&(r=Function.prototype);var s=Object.getOwnPropertyDescriptor(r,o);if(void 0!==s){if("value"in s)return s.value;var u=s.get;if(void 0===u)return;return u.call(a)}var l=Object.getPrototypeOf(r);if(null===l)return;t=l,e=o,n=a,i=!0,s=l=void 0}};function o(t){return t&&t.__esModule?t:{default:t}}var a=o(n(576)),s=n(577),u=n(520),l=o(n(405)),c=[{name:"VOD",run:function(t,e,n,i,r){if(n!==1/0){return{time:0,segmentIndex:0}}return null}},{name:"ProgramDateTime",run:function(t,e,n,i,r){return t.datetimeToDisplayTime&&e.dateTimeObject?{time:e.dateTimeObject.getTime()/1e3+t.datetimeToDisplayTime,segmentIndex:0}:null}},{name:"Segment",run:function(t,e,n,i,r){var o=e.segments||[],a=null,s=null;r=r||0;for(var u=0;u<o.length;u++){var l=o[u];if(l.timeline===i&&void 0!==l.start){var c=Math.abs(r-l.start);if(null!==s&&s<c)break;(!a||null===s||s>=c)&&(s=c,a={time:l.start,segmentIndex:u})}}return a}},{name:"Discontinuity",run:function(t,e,n,i,r){var o=null;if(r=r||0,e.discontinuityStarts&&e.discontinuityStarts.length)for(var a=null,s=0;s<e.discontinuityStarts.length;s++){var u=e.discontinuityStarts[s],l=e.discontinuitySequence+s+1,c=t.discontinuities[l];if(c){var d=Math.abs(r-c.time);if(null!==a&&a<d)break;(!o||null===a||a>=d)&&(a=d,o={time:c.time,segmentIndex:u})}}return o}},{name:"Playlist",run:function(t,e,n,i,r){return e.syncInfo?{time:e.syncInfo.time,segmentIndex:e.syncInfo.mediaSequence-e.mediaSequence}:null}}];e.syncPointStrategies=c;var d=function(t){function e(){var t=arguments.length<=0||void 0===arguments[0]?{}:arguments[0];!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),r(Object.getPrototypeOf(e.prototype),"constructor",this).call(this),this.inspectCache_=void 0,this.timelines=[],this.discontinuities=[],this.datetimeToDisplayTime=null,t.debug&&(this.logger_=l.default.log.bind(l.default,"sync-controller ->"))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,l["default"].EventTarget),i(e,[{key:"getSyncPoint",value:function(t,e,n,i){var r=this.runStrategies_(t,e,n,i);return r.length?this.selectSyncPoint_(r,{key:"time",value:i}):null}},{key:"getExpiredTime",value:function(t,e){if(!t||!t.segments)return null;var n=this.runStrategies_(t,e,t.discontinuitySequence,0);if(!n.length)return null;var i=this.selectSyncPoint_(n,{key:"segmentIndex",value:0});return i.segmentIndex>0&&(i.time*=-1),Math.abs(i.time+(0,u.sumDurations)(t,i.segmentIndex,0))}},{key:"runStrategies_",value:function(t,e,n,i){for(var r=[],o=0;o<c.length;o++){var a=c[o],s=a.run(this,t,e,n,i);s&&(s.strategy=a.name,r.push({strategy:a.name,syncPoint:s}),this.logger_("syncPoint found via <"+a.name+">:",s))}return r}},{key:"selectSyncPoint_",value:function(t,e){for(var n=t[0].syncPoint,i=Math.abs(t[0].syncPoint[e.key]-e.value),r=t[0].strategy,o=1;o<t.length;o++){var a=Math.abs(t[o].syncPoint[e.key]-e.value);a<i&&(i=a,n=t[o].syncPoint,r=t[o].strategy)}return this.logger_("syncPoint with strategy <"+r+"> chosen: ",n),n}},{key:"saveExpiredSegmentInfo",value:function(t,e){for(var n=e.mediaSequence-t.mediaSequence-1;n>=0;n--){var i=t.segments[n];if(i&&void 0!==i.start){e.syncInfo={mediaSequence:t.mediaSequence+n,time:i.start},this.logger_("playlist sync:",e.syncInfo),this.trigger("syncinfoupdate");break}}}},{key:"setDateTimeMapping",value:function(t){if(!this.datetimeToDisplayTime&&t.dateTimeObject){var e=t.dateTimeObject.getTime()/1e3;this.datetimeToDisplayTime=-e}}},{key:"reset",value:function(){this.inspectCache_=void 0}},{key:"probeSegmentInfo",value:function(t){var e=t.segment,n=t.playlist,i=void 0;return(i=e.map?this.probeMp4Segment_(t):this.probeTsSegment_(t))&&this.calculateSegmentTimeMapping_(t,i)&&(this.saveDiscontinuitySyncInfo_(t),n.syncInfo||(n.syncInfo={mediaSequence:n.mediaSequence+t.mediaIndex,time:e.start})),i}},{key:"probeMp4Segment_",value:function(t){var e=t.segment,n=a.default.timescale(e.map.bytes),i=a.default.startTime(n,t.bytes);return null!==t.timestampOffset&&(t.timestampOffset-=i),{start:i,end:i+e.duration}}},{key:"probeTsSegment_",value:function(t){var e=(0,s.inspect)(t.bytes,this.inspectCache_),n=void 0,i=void 0;return e?(e.video&&2===e.video.length?(this.inspectCache_=e.video[1].dts,n=e.video[0].dtsTime,i=e.video[1].dtsTime):e.audio&&2===e.audio.length&&(this.inspectCache_=e.audio[1].dts,n=e.audio[0].dtsTime,i=e.audio[1].dtsTime),{start:n,end:i,containsVideo:e.video&&2===e.video.length,containsAudio:e.audio&&2===e.audio.length}):null}},{key:"timestampOffsetForTimeline",value:function(t){return void 0===this.timelines[t]?null:this.timelines[t].time}},{key:"mappingForTimeline",value:function(t){return void 0===this.timelines[t]?null:this.timelines[t].mapping}},{key:"calculateSegmentTimeMapping_",value:function(t,e){var n=t.segment,i=this.timelines[t.timeline];if(null!==t.timestampOffset)this.logger_("tsO:",t.timestampOffset),i={time:t.startOfSegment,mapping:t.startOfSegment-e.start},this.timelines[t.timeline]=i,this.trigger("timestampoffset"),n.start=t.startOfSegment,n.end=e.end+i.mapping;else{if(!i)return!1;n.start=e.start+i.mapping,n.end=e.end+i.mapping}return!0}},{key:"saveDiscontinuitySyncInfo_",value:function(t){var e=t.playlist,n=t.segment;if(n.discontinuity)this.discontinuities[n.timeline]={time:n.start,accuracy:0};else if(e.discontinuityStarts.length)for(var i=0;i<e.discontinuityStarts.length;i++){var r=e.discontinuityStarts[i],o=e.discontinuitySequence+i+1,a=r-t.mediaIndex,s=Math.abs(a);if(!this.discontinuities[o]||this.discontinuities[o].accuracy>s){var l=void 0;l=a<0?n.start-(0,u.sumDurations)(e,t.mediaIndex,r):n.end+(0,u.sumDurations)(e,t.mediaIndex+1,r),this.discontinuities[o]={time:l,accuracy:s}}}}},{key:"logger_",value:function(){}}]),e}();e.default=d},function(t,e){"use strict";var n,i,r,o;n=function(t,e){var r,o,a,s,u,l=[];if(!e.length)return null;for(r=0;r<t.byteLength;)o=t[r]<<24,o|=t[r+1]<<16,o|=t[r+2]<<8,o|=t[r+3],a=i(t.subarray(r+4,r+8)),s=o>1?r+o:t.byteLength,a===e[0]&&(1===e.length?l.push(t.subarray(r+8,s)):(u=n(t.subarray(r+8,s),e.slice(1))).length&&(l=l.concat(u))),r=s;return l},i=function(t){var e="";return e+=String.fromCharCode(t[0]),e+=String.fromCharCode(t[1]),e+=String.fromCharCode(t[2]),e+=String.fromCharCode(t[3])},r=function(t){return n(t,["moov","trak"]).reduce(function(t,e){var i,r,o,a;return(i=n(e,["tkhd"])[0])?(o=i[r=0===i[0]?12:20]<<24|i[r+1]<<16|i[r+2]<<8|i[r+3],(a=n(e,["mdia","mdhd"])[0])?(r=0===a[0]?12:20,t[o]=a[r]<<24|a[r+1]<<16|a[r+2]<<8|a[r+3],t):null):null},{})},o=function(t,e){var i,r,o;return i=n(e,["moof","traf"]),r=[].concat.apply([],i.map(function(e){return n(e,["tfhd"]).map(function(i){var r,o;return r=i[4]<<24|i[5]<<16|i[6]<<8|i[7],o=t[r]||9e4,(n(e,["tfdt"]).map(function(t){var e,n;return e=t[0],n=t[4]<<24|t[5]<<16|t[6]<<8|t[7],1===e&&(n*=Math.pow(2,32),n+=t[8]<<24|t[9]<<16|t[10]<<8|t[11]),n})[0]||1/0)/o})})),o=Math.min.apply(null,r),isFinite(o)?o:0},t.exports={parseType:i,timescale:r,startTime:o}},function(t,e,n){"use strict";var i=n(540),r=n(541).handleRollover,o={};o.ts=n(578),o.aac=n(579);var a=function(t,e,n){for(var i,r,a,s,u=0,l=188,c=!1;l<t.byteLength;)if(71!==t[u]||71!==t[l])u++,l++;else{switch(i=t.subarray(u,l),o.ts.parseType(i,e.pid)){case"pes":r=o.ts.parsePesType(i,e.table),a=o.ts.parsePayloadUnitStartIndicator(i),"audio"===r&&a&&(s=o.ts.parsePesTime(i))&&(s.type="audio",n.audio.push(s),c=!0)}if(c)break;u+=188,l+=188}for(u=(l=t.byteLength)-188,c=!1;u>=0;)if(71!==t[u]||71!==t[l])u--,l--;else{switch(i=t.subarray(u,l),o.ts.parseType(i,e.pid)){case"pes":r=o.ts.parsePesType(i,e.table),a=o.ts.parsePayloadUnitStartIndicator(i),"audio"===r&&a&&(s=o.ts.parsePesTime(i))&&(s.type="audio",n.audio.push(s),c=!0)}if(c)break;u-=188,l-=188}},s=function(t,e,n){for(var i,r,a,s,u,l,c,d=0,f=188,h=!1,p={data:[],size:0};f<t.byteLength;)if(71!==t[d]||71!==t[f])d++,f++;else{switch(i=t.subarray(d,f),o.ts.parseType(i,e.pid)){case"pes":if(r=o.ts.parsePesType(i,e.table),a=o.ts.parsePayloadUnitStartIndicator(i),"video"===r&&(a&&!h&&(s=o.ts.parsePesTime(i))&&(s.type="video",n.video.push(s),h=!0),!n.firstKeyFrame)){if(a&&0!==p.size){for(u=new Uint8Array(p.size),l=0;p.data.length;)c=p.data.shift(),u.set(c,l),l+=c.byteLength;o.ts.videoPacketContainsKeyFrame(u)&&(n.firstKeyFrame=o.ts.parsePesTime(u),n.firstKeyFrame.type="video"),p.size=0}p.data.push(i),p.size+=i.byteLength}}if(h&&n.firstKeyFrame)break;d+=188,f+=188}for(d=(f=t.byteLength)-188,h=!1;d>=0;)if(71!==t[d]||71!==t[f])d--,f--;else{switch(i=t.subarray(d,f),o.ts.parseType(i,e.pid)){case"pes":r=o.ts.parsePesType(i,e.table),a=o.ts.parsePayloadUnitStartIndicator(i),"video"===r&&a&&(s=o.ts.parsePesTime(i))&&(s.type="video",n.video.push(s),h=!0)}if(h)break;d-=188,f-=188}},u=function(t){var e={pid:null,table:null},n={};for(var r in function(t,e){for(var n,i=0,r=188;r<t.byteLength;)if(71!==t[i]||71!==t[r])i++,r++;else{switch(n=t.subarray(i,r),o.ts.parseType(n,e.pid)){case"pat":e.pid||(e.pid=o.ts.parsePat(n));break;case"pmt":e.table||(e.table=o.ts.parsePmt(n))}if(e.pid&&e.table)return;i+=188,r+=188}}(t,e),e.table){if(e.table.hasOwnProperty(r))switch(e.table[r]){case i.H264_STREAM_TYPE:n.video=[],s(t,e,n),0===n.video.length&&delete n.video;break;case i.ADTS_STREAM_TYPE:n.audio=[],a(t,e,n),0===n.audio.length&&delete n.audio}}return n};t.exports={inspect:function(t,e){var n,i;return(i=(n=t)[0]==="I".charCodeAt(0)&&n[1]==="D".charCodeAt(0)&&n[2]==="3".charCodeAt(0)?function(t){for(var e,n=!1,i=0,r=null,a=null,s=0,u=0;t.length-u>=3;){switch(o.aac.parseType(t,u)){case"timed-metadata":if(t.length-u<10){n=!0;break}if((s=o.aac.parseId3TagSize(t,u))>t.length){n=!0;break}null===a&&(e=t.subarray(u,u+s),a=o.aac.parseAacTimestamp(e)),u+=s;break;case"audio":if(t.length-u<7){n=!0;break}if((s=o.aac.parseAdtsSize(t,u))>t.length){n=!0;break}null===r&&(e=t.subarray(u,u+s),r=o.aac.parseSampleRate(e)),i++,u+=s;break;default:u++}if(n)return null}if(null===r||null===a)return null;var l=9e4/r;return{audio:[{type:"audio",dts:a,pts:a},{type:"audio",dts:a+1024*i*l,pts:a+1024*i*l}]}}(t):u(t))&&(i.audio||i.video)?(function(t,e){if(t.audio&&t.audio.length){var n=e;void 0===n&&(n=t.audio[0].dts),t.audio.forEach(function(t){t.dts=r(t.dts,n),t.pts=r(t.pts,n),t.dtsTime=t.dts/9e4,t.ptsTime=t.pts/9e4})}if(t.video&&t.video.length){var i=e;if(void 0===i&&(i=t.video[0].dts),t.video.forEach(function(t){t.dts=r(t.dts,i),t.pts=r(t.pts,i),t.dtsTime=t.dts/9e4,t.ptsTime=t.pts/9e4}),t.firstKeyFrame){var o=t.firstKeyFrame;o.dts=r(o.dts,i),o.pts=r(o.pts,i),o.dtsTime=o.dts/9e4,o.ptsTime=o.dts/9e4}}}(i,e),i):null}}},function(t,e,n){"use strict";var i=n(540),r=function(t){var e=31&t[1];return e<<=8,e|=t[2]},o=function(t){return!!(64&t[1])},a=function(t){var e=0;return(48&t[3])>>>4>1&&(e+=t[4]+1),e},s=function(t){switch(t){case 5:return"slice_layer_without_partitioning_rbsp_idr";case 6:return"sei_rbsp";case 7:return"seq_parameter_set_rbsp";case 8:return"pic_parameter_set_rbsp";case 9:return"access_unit_delimiter_rbsp";default:return null}};t.exports={parseType:function(t,e){var n=r(t);return 0===n?"pat":n===e?"pmt":e?"pes":null},parsePat:function(t){var e=o(t),n=4+a(t);return e&&(n+=t[n]+1),(31&t[n+10])<<8|t[n+11]},parsePmt:function(t){var e={},n=o(t),i=4+a(t);if(n&&(i+=t[i]+1),1&t[i+5]){var r;r=3+((15&t[i+1])<<8|t[i+2])-4;for(var s=12+((15&t[i+10])<<8|t[i+11]);s<r;){var u=i+s;e[(31&t[u+1])<<8|t[u+2]]=t[u],s+=5+((15&t[u+3])<<8|t[u+4])}return e}},parsePayloadUnitStartIndicator:o,parsePesType:function(t,e){switch(e[r(t)]){case i.H264_STREAM_TYPE:return"video";case i.ADTS_STREAM_TYPE:return"audio";case i.METADATA_STREAM_TYPE:return"timed-metadata";default:return null}},parsePesTime:function(t){if(!o(t))return null;var e=4+a(t);if(e>=t.byteLength)return null;var n,i=null;return 192&(n=t[e+7])&&((i={}).pts=(14&t[e+9])<<27|(255&t[e+10])<<20|(254&t[e+11])<<12|(255&t[e+12])<<5|(254&t[e+13])>>>3,i.pts*=4,i.pts+=(6&t[e+13])>>>1,i.dts=i.pts,64&n&&(i.dts=(14&t[e+14])<<27|(255&t[e+15])<<20|(254&t[e+16])<<12|(255&t[e+17])<<5|(254&t[e+18])>>>3,i.dts*=4,i.dts+=(6&t[e+18])>>>1)),i},videoPacketContainsKeyFrame:function(t){for(var e=4+a(t),n=t.subarray(e),i=0,r=0,o=!1;r<n.byteLength-3;r++)if(1===n[r+2]){i=r+5;break}for(;i<n.byteLength;)switch(n[i]){case 0:if(0!==n[i-1]){i+=2;break}if(0!==n[i-2]){i++;break}r+3!==i-2&&"slice_layer_without_partitioning_rbsp_idr"===s(31&n[r+3])&&(o=!0);do{i++}while(1!==n[i]&&i<n.length);r=i-2,i+=3;break;case 1:if(0!==n[i-1]||0!==n[i-2]){i+=3;break}"slice_layer_without_partitioning_rbsp_idr"===s(31&n[r+3])&&(o=!0),r=i-2,i+=3;break;default:i+=3}return n=n.subarray(r),i-=r,r=0,n&&n.byteLength>3&&"slice_layer_without_partitioning_rbsp_idr"===s(31&n[r+3])&&(o=!0),o}}},function(t,e){"use strict";var n=[96e3,88200,64e3,48e3,44100,32e3,24e3,22050,16e3,12e3,11025,8e3,7350],i=function(t){return t[0]<<21|t[1]<<14|t[2]<<7|t[3]};t.exports={parseId3TagSize:function(t,e){var n=t[e+6]<<21|t[e+7]<<14|t[e+8]<<7|t[e+9];return(16&t[e+5])>>4?n+20:n+10},parseAdtsSize:function(t,e){var n=(224&t[e+5])>>5,i=t[e+4]<<3;return 6144&t[e+3]|i|n},parseType:function(t,e){return t[e]==="I".charCodeAt(0)&&t[e+1]==="D".charCodeAt(0)&&t[e+2]==="3".charCodeAt(0)?"timed-metadata":!0&t[e]&&240==(240&t[e+1])?"audio":null},parseSampleRate:function(t){for(var e=0;e+5<t.length;){if(255===t[e]&&240==(246&t[e+1]))return n[(60&t[e+2])>>>2];e++}return null},parseAacTimestamp:function(t){var e,n,r;e=10,64&t[5]&&(e+=4,e+=i(t.subarray(10,14)));do{if((n=i(t.subarray(e+4,e+8)))<1)return null;if("PRIV"===String.fromCharCode(t[e],t[e+1],t[e+2],t[e+3])){r=t.subarray(e+10,e+n+10);for(var o=0;o<r.byteLength;o++)if(0===r[o]){if("com.apple.streaming.transportStreamTimestamp"===unescape(function(t,e,n){var i,r="";for(i=e;i<n;i++)r+="%"+("00"+t[i].toString(16)).slice(-2);return r}(r,0,o))){var a=r.subarray(o+1),s=(1&a[3])<<30|a[4]<<22|a[5]<<14|a[6]<<6|a[7]>>>2;return s*=4,s+=3&a[7]}break}}e+=10,e+=n}while(e<t.byteLength);return null}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i,r=n(406),o=(i=r)&&i.__esModule?i:{default:i},a=n(522),s=n(530);e.default=function(t){return new function(t){t.onmessage=function(t){var e=t.data,n=new Uint8Array(e.encrypted.bytes,e.encrypted.byteOffset,e.encrypted.byteLength),i=new Uint32Array(e.key.bytes,e.key.byteOffset,e.key.byteLength/4),r=new Uint32Array(e.iv.bytes,e.iv.byteOffset,e.iv.byteLength/4);new a.Decrypter(n,i,r,function(t,n){o.default.postMessage((0,s.createTransferableMessage)({source:e.source,decrypted:n}),[n.buffer])})}}(t)},t.exports=e.default},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var r=i(n(405)),o=i(n(512)),a=function(){},s=function(t){var e=t.default?"main":"alternative";return t.characteristics&&t.characteristics.indexOf("public.accessibility.describes-video")>=0&&(e="main-desc"),e},u=function(t,e){t.abort(),t.pause(),e&&e.activePlaylistLoader&&(e.activePlaylistLoader.pause(),e.activePlaylistLoader=null)};e.stopLoaders=u;var l=function(t,e){e.activePlaylistLoader=t,t.load()};e.startLoaders=l;var c=function(t,e){return function(){var n=e.segmentLoaders,i=n[t],r=n.main,o=e.mediaTypes[t],a=o.activeTrack(),s=o.activeGroup(a),c=o.activePlaylistLoader;u(i,o),s&&(s.playlistLoader?(i.resyncLoader(),l(s.playlistLoader,o)):c&&r.resetEverything())}};e.onGroupChanged=c;var d=function(t,e){return function(){var n=e.segmentLoaders,i=n[t],r=n.main,o=e.mediaTypes[t],a=o.activeTrack(),s=o.activeGroup(a),c=o.activePlaylistLoader;u(i,o),s&&(s.playlistLoader?c!==s.playlistLoader?(i.track&&i.track(a),i.resetEverything(),l(s.playlistLoader,o)):l(s.playlistLoader,o):r.resetEverything())}};e.onTrackChanged=d;var f={AUDIO:function(t,e){return function(){var n=e.segmentLoaders[t],i=e.mediaTypes[t],o=e.blacklistCurrentPlaylist;u(n,i);var a=i.activeTrack(),s=i.activeGroup(),l=(s.filter(function(t){return t.default})[0]||s[0]).id,c=i.tracks[l];if(a!==c){for(var d in r.default.log.warn("Problem encountered loading the alternate audio track.Switching back to default."),i.tracks)i.tracks[d].enabled=i.tracks[d]===c;i.onTrackChanged()}else o({message:"Problem encountered loading the default audio track."})}},SUBTITLES:function(t,e){return function(){var n=e.segmentLoaders[t],i=e.mediaTypes[t];r.default.log.warn("Problem encountered loading the subtitle track.Disabling subtitle track."),u(n,i);var o=i.activeTrack();o&&(o.mode="disabled"),i.onTrackChanged()}}};e.onError=f;var h={AUDIO:function(t,e,n){if(e){var i=n.tech,r=n.requestOptions,o=n.segmentLoaders[t];e.on("loadedmetadata",function(){var t=e.media();o.playlist(t,r),(!i.paused()||t.endList&&"none"!==i.preload())&&o.load()}),e.on("loadedplaylist",function(){o.playlist(e.media(),r),i.paused()||o.load()}),e.on("error",f[t](t,n))}},SUBTITLES:function(t,e,n){var i=n.tech,r=n.requestOptions,o=n.segmentLoaders[t],a=n.mediaTypes[t];e.on("loadedmetadata",function(){var t=e.media();o.playlist(t,r),o.track(a.activeTrack()),(!i.paused()||t.endList&&"none"!==i.preload())&&o.load()}),e.on("loadedplaylist",function(){o.playlist(e.media(),r),i.paused()||o.load()}),e.on("error",f[t](t,n))}};e.setupListeners=h;var p={AUDIO:function(t,e){var n=e.mode,i=e.hls,a=e.segmentLoaders[t],u=e.requestOptions.withCredentials,l=e.master.mediaGroups,c=e.mediaTypes[t],d=c.groups,p=c.tracks;for(var v in l[t]&&0!==Object.keys(l[t]).length&&"html5"===n||(l[t]={main:{default:{default:!0}}}),l[t])for(var y in d[v]||(d[v]=[]),l[t][v]){var m=l[t][v][y],g=void 0;if(g=m.resolvedUri?new o.default(m.resolvedUri,i,u):null,m=r.default.mergeOptions({id:y,playlistLoader:g},m),h[t](t,m.playlistLoader,e),d[v].push(m),void 0===p[y]){var b=new r.default.AudioTrack({id:y,kind:s(m),enabled:!1,language:m.language,default:m.default,label:y});p[y]=b}}a.on("error",f[t](t,e))},SUBTITLES:function(t,e){var n=e.tech,i=e.hls,a=e.segmentLoaders[t],s=e.requestOptions.withCredentials,u=e.master.mediaGroups,l=e.mediaTypes[t],c=l.groups,d=l.tracks;for(var p in u[t])for(var v in c[p]||(c[p]=[]),u[t][p])if(!u[t][p][v].forced){var y=u[t][p][v];if(y=r.default.mergeOptions({id:v,playlistLoader:new o.default(y.resolvedUri,i,s)},y),h[t](t,y.playlistLoader,e),c[p].push(y),void 0===d[v]){var m=n.addRemoteTextTrack({id:v,kind:"subtitles",enabled:!1,language:y.language,label:v},!1).track;d[v]=m}}a.on("error",f[t](t,e))},"CLOSED-CAPTIONS":function(t,e){var n=e.tech,i=e.master.mediaGroups,o=e.mediaTypes[t],a=o.groups,s=o.tracks;for(var u in i[t])for(var l in a[u]||(a[u]=[]),i[t][u]){var c=i[t][u][l];if(c.instreamId.match(/CC\d/)&&(a[u].push(r.default.mergeOptions({id:l},c)),void 0===s[l])){var d=n.addRemoteTextTrack({id:c.instreamId,kind:"captions",enabled:!1,language:c.language,label:l},!1).track;s[l]=d}}}};e.initialize=p;var v=function(t,e){return function(n){var i=e.masterPlaylistLoader,r=e.mediaTypes[t].groups,o=i.media();if(!o)return null;var a=null;return o.attributes[t]&&(a=r[o.attributes[t]]),a=a||r.main,void 0===n?a:null===n?null:a.filter(function(t){return t.id===n.id})[0]||null}};e.activeGroup=v;var y={AUDIO:function(t,e){return function(){var n=e.mediaTypes[t].tracks;for(var i in n)if(n[i].enabled)return n[i];return null}},SUBTITLES:function(t,e){return function(){var n=e.mediaTypes[t].tracks;for(var i in n)if("showing"===n[i].mode)return n[i];return null}}};e.activeTrack=y;e.setupMediaGroups=function(t){["AUDIO","SUBTITLES","CLOSED-CAPTIONS"].forEach(function(e){p[e](e,t)});var e=t.mediaTypes,n=t.masterPlaylistLoader,i=t.tech,r=t.hls;["AUDIO","SUBTITLES"].forEach(function(n){e[n].activeGroup=v(n,t),e[n].activeTrack=y[n](n,t),e[n].onGroupChanged=c(n,t),e[n].onTrackChanged=d(n,t)});var o=e.AUDIO.activeGroup(),a=(o.filter(function(t){return t.default})[0]||o[0]).id;e.AUDIO.tracks[a].enabled=!0,e.AUDIO.onTrackChanged(),n.on("mediachange",function(){["AUDIO","SUBTITLES"].forEach(function(t){return e[t].onGroupChanged()})});var s=function(){e.AUDIO.onTrackChanged(),i.trigger({type:"usage",name:"hls-audio-change"})};for(var u in i.audioTracks().addEventListener("change",s),i.remoteTextTracks().addEventListener("change",e.SUBTITLES.onTrackChanged),r.on("dispose",function(){i.audioTracks().removeEventListener("change",s),i.remoteTextTracks().removeEventListener("change",e.SUBTITLES.onTrackChanged)}),i.clearTracks("audio"),e.AUDIO.tracks)i.audioTracks().addTrack(e.AUDIO.tracks[u])};e.createMediaTypes=function(){var t={};return["AUDIO","SUBTITLES","CLOSED-CAPTIONS"].forEach(function(e){t[e]={groups:{},tracks:{},activePlaylistLoader:null,activeGroup:a,activeTrack:a,onGroupChanged:a,onTrackChanged:a}}),t}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(520),r=function t(e,n,r){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t);var o,a,s,u=e.masterPlaylistController_.fastQualityChange_.bind(e.masterPlaylistController_);if(n.attributes.RESOLUTION){var l=n.attributes.RESOLUTION;this.width=l.width,this.height=l.height}this.bandwidth=n.attributes.BANDWIDTH,this.id=r,this.enabled=(o=e.playlists,a=n.uri,s=u,function(t){var e=o.master.playlists[a],n=(0,i.isIncompatible)(e),r=(0,i.isEnabled)(e);return void 0===t?r:(t?delete e.disabled:e.disabled=!0,t===r||n||(s(),t?o.trigger("renditionenabled"):o.trigger("renditiondisabled")),t)})};e.default=function(t){var e=t.playlists;t.representations=function(){return e.master.playlists.filter(function(t){return!(0,i.isIncompatible)(t)}).map(function(e,n){return new r(t,e,e.uri)})}},t.exports=e.default},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}();function r(t){return t&&t.__esModule?t:{default:t}}var o=r(n(406)),a=r(n(570)),s=r(n(405)),u=["seeking","seeked","pause","playing","error"],l=function(){function t(e){var n=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.tech_=e.tech,this.seekable=e.seekable,this.consecutiveUpdates=0,this.lastRecordedTime=null,this.timer_=null,this.checkCurrentTimeTimeout_=null,e.debug&&(this.logger_=s.default.log.bind(s.default,"playback-watcher ->")),this.logger_("initialize");var i=function(){return n.monitorCurrentTime_()},r=function(){return n.techWaiting_()},a=function(){return n.cancelTimer_()},l=function(){return n.fixesBadSeeks_()};this.tech_.on("seekablechanged",l),this.tech_.on("waiting",r),this.tech_.on(u,a),this.tech_.on("canplay",i),this.dispose=function(){n.logger_("dispose"),n.tech_.off("seekablechanged",l),n.tech_.off("waiting",r),n.tech_.off(u,a),n.tech_.off("canplay",i),n.checkCurrentTimeTimeout_&&o.default.clearTimeout(n.checkCurrentTimeTimeout_),n.cancelTimer_()}}return i(t,[{key:"monitorCurrentTime_",value:function(){this.checkCurrentTime_(),this.checkCurrentTimeTimeout_&&o.default.clearTimeout(this.checkCurrentTimeTimeout_),this.checkCurrentTimeTimeout_=o.default.setTimeout(this.monitorCurrentTime_.bind(this),250)}},{key:"checkCurrentTime_",value:function(){if(this.tech_.seeking()&&this.fixesBadSeeks_())return this.consecutiveUpdates=0,void(this.lastRecordedTime=this.tech_.currentTime());if(!this.tech_.paused()&&!this.tech_.seeking()){var t=this.tech_.currentTime(),e=this.tech_.buffered();if(this.lastRecordedTime===t&&(!e.length||t+a.default.SAFE_TIME_DELTA>=e.end(e.length-1)))return this.techWaiting_();this.consecutiveUpdates>=5&&t===this.lastRecordedTime?(this.consecutiveUpdates++,this.waiting_()):t===this.lastRecordedTime?this.consecutiveUpdates++:(this.consecutiveUpdates=0,this.lastRecordedTime=t)}}},{key:"cancelTimer_",value:function(){this.consecutiveUpdates=0,this.timer_&&(this.logger_("cancelTimer_"),clearTimeout(this.timer_)),this.timer_=null}},{key:"fixesBadSeeks_",value:function(){var t=this.tech_.seeking(),e=this.seekable(),n=this.tech_.currentTime(),i=void 0;t&&this.afterSeekableWindow_(e,n)&&(i=e.end(e.length-1));t&&this.beforeSeekableWindow_(e,n)&&(i=e.start(0)+a.default.SAFE_TIME_DELTA);return void 0!==i&&(this.logger_("Trying to seek outside of seekable at time "+n+" with seekable range "+a.default.printableRange(e)+". Seeking to "+i+"."),this.tech_.setCurrentTime(i),!0)}},{key:"waiting_",value:function(){if(!this.techWaiting_()){var t=this.tech_.currentTime(),e=this.tech_.buffered(),n=a.default.findRange(e,t);return n.length&&t+3<=n.end(0)?(this.cancelTimer_(),this.tech_.setCurrentTime(t),this.logger_("Stopped at "+t+" while inside a buffered region ["+n.start(0)+" -> "+n.end(0)+"]. Attempting to resume playback by seeking to the current time."),void this.tech_.trigger({type:"usage",name:"hls-unknown-waiting"})):void 0}}},{key:"techWaiting_",value:function(){var t=this.seekable(),e=this.tech_.currentTime();if(this.tech_.seeking()&&this.fixesBadSeeks_())return!0;if(this.tech_.seeking()||null!==this.timer_)return!0;if(this.beforeSeekableWindow_(t,e)){var n=t.end(t.length-1);return this.logger_("Fell out of live window at time "+e+". Seeking to live point (seekable end) "+n),this.cancelTimer_(),this.tech_.setCurrentTime(n),this.tech_.trigger({type:"usage",name:"hls-live-resync"}),!0}var i=this.tech_.buffered(),r=a.default.findNextRange(i,e);if(this.videoUnderflow_(r,i,e))return this.cancelTimer_(),this.tech_.setCurrentTime(e),this.tech_.trigger({type:"usage",name:"hls-video-underflow"}),!0;if(r.length>0){var o=r.start(0)-e;return this.logger_("Stopped at "+e+", setting timer for "+o+", seeking to "+r.start(0)),this.timer_=setTimeout(this.skipTheGap_.bind(this),1e3*o,e),!0}return!1}},{key:"afterSeekableWindow_",value:function(t,e){return!!t.length&&e>t.end(t.length-1)+a.default.SAFE_TIME_DELTA}},{key:"beforeSeekableWindow_",value:function(t,e){return!!(t.length&&t.start(0)>0&&e<t.start(0)-a.default.SAFE_TIME_DELTA)}},{key:"videoUnderflow_",value:function(t,e,n){if(0===t.length){var i=this.gapFromVideoUnderflow_(e,n);if(i)return this.logger_("Encountered a gap in video from "+i.start+" to "+i.end+". Seeking to current time "+n),!0}return!1}},{key:"skipTheGap_",value:function(t){var e=this.tech_.buffered(),n=this.tech_.currentTime(),i=a.default.findNextRange(e,n);this.cancelTimer_(),0!==i.length&&n===t&&(this.logger_("skipTheGap_:","currentTime:",n,"scheduled currentTime:",t,"nextRange start:",i.start(0)),this.tech_.setCurrentTime(i.start(0)+a.default.TIME_FUDGE_FACTOR),this.tech_.trigger({type:"usage",name:"hls-gap-skip"}))}},{key:"gapFromVideoUnderflow_",value:function(t,e){for(var n=a.default.findGaps(t),i=0;i<n.length;i++){var r=n.start(i),o=n.end(i);if(e-r<4&&e-r>2)return{start:r,end:o}}return null}},{key:"logger_",value:function(){}}]),t}();e.default=l,t.exports=e.default},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i,r=n(405),o=(i=r)&&i.__esModule?i:{default:i},a={errorInterval:30,getSource:function(t){return t(this.tech({IWillNotUseThisInPlugins:!0}).currentSource_)}};e.default=function(t){!function t(e,n){var i=0,r=0,s=o.default.mergeOptions(a,n);e.ready(function(){e.trigger({type:"usage",name:"hls-error-reload-initialized"})});var u=function(){r&&e.currentTime(r)},l=function(t){null!=t&&(r=e.duration()!==1/0&&e.currentTime()||0,e.one("loadedmetadata",u),e.src(t),e.trigger({type:"usage",name:"hls-error-reload"}),e.play())},c=function(){if(Date.now()-i<1e3*s.errorInterval)e.trigger({type:"usage",name:"hls-error-reload-canceled"});else{if(s.getSource&&"function"==typeof s.getSource)return i=Date.now(),s.getSource.call(e,l);o.default.log.error("ERROR: reloadSourceOnError - The option getSource must be a function!")}},d=function t(){e.off("loadedmetadata",u),e.off("error",c),e.off("dispose",t)};e.on("error",c),e.on("dispose",d),e.reloadSourceOnError=function(n){d(),t(e,n)}}(this,t)},t.exports=e.default},function(t,e,n){"use strict";var i=n(240).default,r=n(245).default,o=n(251).default,a=n(307).default,s=n(143).default,u=n(196).default;Object.defineProperty(e,"__esModule",{value:!0});var l=n(127),c=u(n(387)),d=u(n(366)),f=a(d.default).map(function(t){return d.default[t]}),h=f.concat(l.EVENTS.all().filter(function(t){return f.indexOf(t)<0})),p=function(){function t(e,n){r(this,t),this.player=e,this.receiver=new l.Receiver(h),this.controlTracker=n,this.bindEvents(),this.bindMethods()}return i(t,[{key:"bindEvents",value:function(){var t=this,e=this.receiver,n=this.player,i=this.controlTracker;this.timeElapsed=this.player.currentTime(),n.on(d.default.PAUSE,function(){e.emit(d.default.PAUSE,{controlName:i.controlName}),i.reset()}),n.on(d.default.PLAY,function(){e.emit(d.default.PLAY,{controlName:i.controlName}),i.reset()}),n.on(d.default.VOLUME_CHANGE,function(){var r=n.muted(),o={controlName:i.controlName,volume:n.volume()};r?(e.emit(d.default.MUTE,o),t.hasBeenMuted=!0):!r&&t.hasBeenMuted?(e.emit(d.default.UNMUTE,o),t.hasBeenMuted=!1):e.emit(d.default.VOLUME_CHANGE,o),i.reset()}),n.on("seeking",function(){t.seeking||(t.seeking=!0,t.previousElapsedTime=t.timeElapsed)}),n.on(d.default.SEEKED,function(){t.seeking=!1,t.receiver.emit(d.default.SEEKED,t.previousElapsedTime)}),n.on(d.default.TIME_UPDATE,function(){var i=n.currentTime(),r=n.duration();if(i&&r){var o={seconds:i,duration:r};t.timeElapsed=i,e.emit(d.default.TIME_UPDATE,o)}}),n.on(d.default.ENDED,function(){e.emit(d.default.ENDED)}),n.on(d.default.ERROR,function(){var e=n.error(),i={errorType:c.default[e.code],errorMsg:e.message};t.receiver.emit(d.default.ERROR,i)}),n.on(l.EVENTS.PROGRESS,function(){e.emit(l.EVENTS.PROGRESS,{percent:n.bufferedPercent()})}),this.bindMediaBitrateChangedEvent()}},{key:"bindMediaBitrateChangedEvent",value:function(){var t=this,e=this.player,n=s(e.textTracks()||[]).filter(function(t){return"segment-metadata"===t.label})[0];n&&function(){var i=e.tech({IWillNotUseThisInPlugins:!0}).hls,r=void 0;if(!i)throw new Error("hls plugin is not accessible on hls source");n.on("cuechange",function(){var e=n.activeCues[0];if(e&&e.value&&e.value.playlist!==r){var a=Math.floor(1e3*(e.value.end-e.value.start)),s=i.selectPlaylist().attributes,u=s.BANDWIDTH,l=s.CODECS?s.CODECS.split(",").map(function(t){return t.trim()}):[],c=o(l,2),f=c[0],h=c[1],p=s.RESOLUTION;t.emit(d.default.BITRATE_CHANGED,{audioCodec:h,newBitrate:u,newSegmentDuration:a,videoCodec:f,encodedDisplaySize:p,frameRate:60,targetSegmentDuration:6e3}),r=e.value.playlist}})}()}},{key:"bindMethods",value:function(){var t=this.receiver,e=this.player;t.on(l.METHODS.PLAY,function(){e.play()}),t.on(l.METHODS.PAUSE,function(){e.pause()}),t.on(l.METHODS.GETPAUSED,function(t){t(e.paused())}),t.on(l.METHODS.GETCURRENTTIME,function(t){t(e.currentTime())}),t.on(l.METHODS.SETCURRENTTIME,function(t){e.currentTime(t)}),t.on(l.METHODS.GETDURATION,function(t){t(e.duration())}),t.on(l.METHODS.GETVOLUME,function(t){t(100*e.volume())}),t.on(l.METHODS.SETVOLUME,function(t){e.volume(t/100)}),t.on(l.METHODS.MUTE,function(){e.muted(!0)}),t.on(l.METHODS.UNMUTE,function(){e.muted(!1)}),t.on(l.METHODS.GETMUTED,function(t){t(e.muted()||0===e.volume())}),t.on(l.METHODS.GETLOOP,function(t){t(e.loop())}),t.on(l.METHODS.SETLOOP,function(t){e.loop(t)})}},{key:"isEventSupported",value:function(t){var e=this.receiver.supported;return e.events&&e.events.indexOf(t)>-1}},{key:"registerEvent",value:function(t){this.isEventSupported(t)||this.receiver.supported.events.push(t)}},{key:"emit",value:function(t,e){if(!this.isEventSupported(t))throw new Error("VideoJSAdapter: "+t+" not supported. Please use registerEvent first!");"string"==typeof e&&(e={controlName:e}),this.receiver.emit(t,e)}},{key:"ready",value:function(){this.receiver.ready()}}]),t}();e.default=p,t.exports=e.default},function(t,e,n){"use strict";var i=n(240).default,r=n(245).default;Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(){var e=arguments.length<=0||void 0===arguments[0]?null:arguments[0];r(this,t),this.controlName=e}return i(t,[{key:"reset",value:function(){this.controlName=null}}]),t}();e.default=o,t.exports=e.default},function(t,e,n){"use strict";var i=n(201).default,r=n(211).default,o=n(240).default,a=n(245).default,s=n(196).default;Object.defineProperty(e,"__esModule",{value:!0});var u=s(n(247)),l=s(n(248)),c=n(304),d=function(t){function e(t){var n=arguments.length<=1||void 0===arguments[1]?{}:arguments[1];a(this,e),i(Object.getPrototypeOf(e.prototype),"constructor",this).call(this,t),this.options=(0,u.default)({},n,{a11yDescAttr:"data-a11y-desc",a11yDesc:void 0})}return r(e,t),o(e,[{key:"focus",value:function(){this.element.focus()}},{key:"a11yDesc",get:function(){var t=this.options.a11yDesc||this.element.getAttribute(this.options.a11yDescAttr);return Object.defineProperty(this,"a11yDesc",{value:t}),this.a11yDesc}},{key:"a11yDescElement",get:function(){var t=this.a11yDesc,e=(0,c.createA11yControlTextElement)(t+",");return Object.defineProperty(this,"a11yDescElement",{value:e}),this.a11yDescElement}},{key:"childNodes",set:function(t){for(var e=this.element;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(this.a11yDescElement),t.forEach(function(t){return e.appendChild(t)})}}]),e}(l.default);e.default=d,t.exports=e.default},function(t,e,n){"use strict";var i=n(201).default,r=n(211).default,o=n(240).default,a=n(245).default,s=n(196).default;Object.defineProperty(e,"__esModule",{value:!0});var u=s(n(247)),l=function(t){function e(t){var n=arguments.length<=1||void 0===arguments[1]?{}:arguments[1],r=arguments.length<=2||void 0===arguments[2]?{}:arguments[2];a(this,e),i(Object.getPrototypeOf(e.prototype),"constructor",this).call(this,t,n,(0,u.default)({},r,{activeClass:"ssplayer-menu-active"}))}return r(e,t),o(e,[{key:"beforeInit",value:function(){i(Object.getPrototypeOf(e.prototype),"beforeInit",this).call(this),this.addEvents([this.element,"click",this.onClick])}},{key:"onClick",value:function(t){this.emit("click",t)}}]),e}(s(n(350)).default);e.default=l,t.exports=e.default},function(t,e,n){"use strict";var i=n(201).default,r=n(211).default,o=n(240).default,a=n(245).default,s=n(196).default;Object.defineProperty(e,"__esModule",{value:!0});var u=s(n(247)),l=function(t){function e(t){var n=arguments.length<=1||void 0===arguments[1]?{}:arguments[1];if(a(this,e),i(Object.getPrototypeOf(e.prototype),"constructor",this).call(this,t,(0,u.default)({},n,{playbackRateAttribute:"data-playback-rate"})),this.button=this.element.getElementsByTagName("button"),1!==this.button.length)throw new Error("A playback rate option must include exactly one button");this.button=this.button[0]}return r(e,t),o(e,[{key:"contains",value:function(t){return this.element.contains(t)}},{key:"playbackRate",get:function(){var t=parseFloat(this.element.getAttribute(this.options.playbackRateAttribute));return Object.defineProperty(this,"playbackRate",{enumerable:!0,value:t}),this.playbackRate}},{key:"childNodes",get:function(){return Array.prototype.map.call(this.button.children,function(t){return t.cloneNode(!0)})}}]),e}(s(n(200)).default);e.default=l,t.exports=e.default},function(t,e,n){"use strict";var i=n(201).default,r=n(211).default,o=n(240).default,a=n(245).default,s=n(196).default;Object.defineProperty(e,"__esModule",{value:!0});var u=s(n(294)),l=s(n(366)),c=s(n(591)),d=function(t){function e(t){a(this,e),i(Object.getPrototypeOf(e.prototype),"constructor",this).call(this),this.bufferId=0,this.videoAdapter=t}return r(e,t),o(e,[{key:"videoInitializationStart",value:function(){this.startTime=(0,c.default)()}},{key:"videoInitializationEnd",value:function(){this.endTime=(0,c.default)(),this.videoAdapter.emit(l.default.INIT,{startTime:this.startTime,endTime:this.endTime,duration:this.endTime-this.startTime})}},{key:"bufferingStart",value:function(){this.bufferId+=1;var t=this.bufferId;this.videoAdapter.emit(l.default.BUFFER_START,{bufferId:t,time:(0,c.default)()})}},{key:"bufferingEnd",value:function(){var t=this.bufferId;this.videoAdapter.emit(l.default.BUFFER_END,{bufferId:t,time:(0,c.default)()})}}]),e}(u.default);e.default=d,t.exports=e.default},function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(){return window&&window.performance&&window.performance.timing&&"function"==typeof window.performance.now?Math.round(window.performance.now())+window.performance.timing.navigationStart:(new Date).getTime()},t.exports=e.default},function(t,e,n){"use strict";var i=n(201).default,r=n(211).default,o=n(240).default,a=n(245).default,s=n(593).default,u=n(196).default;Object.defineProperty(e,"__esModule",{value:!0});var l=u(n(294)),c=n(367),d=n(596),f=c.CONTROL_NAME.TOOLBAR.PLAYBACK_RATE,h=function(t){function e(t,n,r,o,s){var u=arguments.length<=5||void 0===arguments[5]?{}:arguments[5];a(this,e),i(Object.getPrototypeOf(e.prototype),"constructor",this).call(this),this.videojsPlayer=t,this.playbackRateLabel=r,this.playbackRateMenu=o,this.playbackRateOptions=s,this.controlTracker=n,this.playerStateManager=u}return r(e,t),o(e,[{key:"beforeInit",value:function(){this.addEvents([this.videojsPlayer,"ratechange",this.onVideojsRateChange],[this.playbackRateMenu,"click",this.onRateOptionClick]),this.onVideojsRateChange()}},{key:"updateToolbarPlaybackRate",value:function(){var t=this.videojsPlayer.playbackRate();this.updatePlaybackRateLabel(this.updatePlaybackRateOptionActive(t))}},{key:"updatePlaybackRateLabel",value:function(t){this.playbackRateLabel.childNodes=t.childNodes}},{key:"updatePlaybackRateOptionActive",value:function(t){var e=this.playbackRateOptions.find(function(t){return t.active}),n=this.playbackRateOptions.find(function(e){return(0,d.decimalEqual)(e.playbackRate,t)});return e&&(e.active=!1),n.active=!0,n}},{key:"onVideojsRateChange",value:function(){var t=this.videojsPlayer.playbackRate(),e=this.roundRate(t);(0,d.decimalEqual)(e,t)?this.updateToolbarPlaybackRate():this.videojsPlayer.playbackRate(e)}},{key:"roundRate",value:function(t){for(var e=this.playbackRateOptions.map(function(t){return t.playbackRate}).sort(),n=0,i=e.length-1;n+1<i;){var r=Math.floor((i-n)/2)+n;e[r]<t?n=r:i=r}var o=e[n],a=e[i],s=Math.abs(t-o);return Math.abs(a-t)<s?a:o}},{key:"onRateOptionClick",value:function(t){var e=t.target,n=this.playbackRateOptions.find(function(t){return t.contains(e)});if(n){var i=n.playbackRate,r=this.videojsPlayer.playbackRate();s(i)&&!(0,d.decimalEqual)(i,r)&&(this.controlTracker.controlName=f,this.videojsPlayer.playbackRate(i),this.playerStateManager.isDisableA11y||this.playbackRateLabel.focus())}}}]),e}(l.default);e.default=h,t.exports=e.default},function(t,e,n){t.exports={default:n(594),__esModule:!0}},function(t,e,n){n(595),t.exports=n(153).Number.isFinite},function(t,e,n){var i=n(151),r=n(152).isFinite;i(i.S,"Number",{isFinite:function(t){return"number"==typeof t&&r(t)}})},function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.decimalEqual=function(){for(var t=arguments.length,e=Array(t),i=0;i<t;i++)e[i]=arguments[i];if(e.length<2)throw new Error("decimalEqual requires at least 2 arguments, but you only passed "+e.length);var r=e.pop(),o=e.pop();for(;void 0!==o;){if(Math.abs(r-o)>=n)return!1;r=o,o=e.pop()}return!0};var n=Math.pow(2,-53)},function(t,e,n){"use strict";var i=n(196).default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){var e=(0,k.getTrackingOptions)(t.trackingOptions),n=c.default.create(t.carouselElement,t.carouselOptions,void 0,e),i=w.default.create({carousel:n},e),O={position:n.position,length:n.slideCount},C=S(b.default,t.toolbarElement,(0,r.default)({checkFullscreenAPI:!0},t.toolbarOptions),void 0,void 0,void 0,t.toolbarA11yOptions&&t.toolbarA11yOptions.a11y),x=S(v.default,t.presentationElement),P=S(m.default,t.topbarElement,t.topbarOptions),A=t.playerOptions.enableBottombar&&S(g.default,t.bottombarElement,t.bottombarOptions),j=S(d.default,t.progressElement,(0,o.default)({},O,t.progressOptions)),M=S(_.default,t.previewThumbnailElement,t.previewThumbnailOptions),I=S(y.default,t.sidepanelLeftElement,t.sidepanelLeftOptions),L=S(y.default,t.sidepanelRightElement,t.sidepanelRightOptions),R=S(T.default,t.accessibilityModeFrameElement,t.accessibilityModeOptions),D=f.default.create(),N=S(E.default,t.virusScanElement,t.virusScanOptions),B=a.default.create({carousel:n,keyboard:D,pagination:S(p.default,t.paginationElement,(0,o.default)({},O,t.paginationOptions)),presentation:x,progress:j,previewThumbnail:M,sidepanelLeft:I,sidepanelRight:L,topbar:P,bottombar:A,toolbar:C,loader:S(h.default,t.loaderElement),accessibilityModeFrame:R,virusScan:N},t.playerOptions),U=l.default.create({virusScan:N,player:x,topbar:P},t.virusScanBehaviorOptions),F=u.default.create({carousel:n,progress:j,previewThumbnail:M,accessibilityModeFrame:R,virusScan:N},t.manifestOptions);return s.default.create({carousel:n,player:x,sidepanelLeft:I,sidepanelRight:L,toolbar:C,topbar:P,bottombar:A,accessibilityModeFrame:R,keyboard:D,virusScan:N}),{presentationBehavior:B,presentationManifestBehavior:F,virusScanBehavior:U,trackingBehavior:i}};var r=i(n(400)),o=i(n(247)),a=i(n(379)),s=i(n(598)),u=i(n(599)),l=i(n(606)),c=i(n(311)),d=i(n(339)),f=i(n(353)),h=i(n(354)),p=i(n(356)),v=i(n(358)),y=i(n(360)),m=i(n(607)),g=i(n(608)),b=i(n(370)),_=i(n(346)),T=i(n(609)),E=i(n(611)),w=i(n(613)),k=n(633);function S(t,e,n){for(var i=arguments.length,r=Array(i>3?i-3:0),o=3;o<i;o++)r[o-3]=arguments[o];return e&&t.create.apply(t,[e,n].concat(r))}t.exports=e.default},function(t,e,n){"use strict";var i=n(201).default,r=n(211).default,o=n(240).default,a=n(245).default,s=n(251).default,u=n(259).default,l=n(196).default;Object.defineProperty(e,"__esModule",{value:!0});var c=l(n(400)),d=l(n(392)),f=l(n(380)),h=l(n(294)),p=function(t){function e(t){a(this,e),i(Object.getPrototypeOf(e.prototype),"constructor",this).call(this),(0,c.default)(this,t)}return r(e,t),o(e,[{key:"beforeInit",value:function(){this.debouncedIdleOnTimeout=(0,d.default)(this.idleOnTimeout,1e3);var t=[[this.player,"fullscreen",this.onFullscreen],[this.player,"mouseEnter",this.onUserActivity],[this.player,"mouseMove",this.onUserActivity],[this.player,"mouseLeave",this.onUserActivity],[this.toolbar,"mouseOver",this.onUserActivity],[this.toolbar,"mouseOut",this.onUserActivity],[this.topbar,"mouseOver",this.onUserActivity],[this.topbar,"mouseOut",this.onUserActivity],[this.bottombar,"mouseOver",this.onUserActivity],[this.bottombar,"mouseOut",this.onUserActivity],[this.keyboard,"tab",this.onUserActivity.bind(this,!0)],[this.keyboard,"leftArrow",this.onArrowKey.bind(this)],[this.keyboard,"rightArrow",this.onArrowKey.bind(this)]].filter(function(t){return s(t,1)[0]});this.addEvents.apply(this,u(t))}},{key:"onFullscreen",value:function(t){this.isFullscreen=t,this.setControlsVisibility(!0)}},{key:"onArrowKey",value:function(){this.isFullscreen||this.setControlsVisibility(!1)}},{key:"onUserActivity",value:function(t){(void 0===t?this.player.isMouseover:t)&&this.setControlsVisibility(!0),this.debouncedIdleOnTimeout.cancel(),this.isMouseOverToolbar||this.isMouseOverSidepanels||this.isMouseOverTopbar||this.isMouseOverBottombar||this.isVirusScanVisible||this.debouncedIdleOnTimeout()}},{key:"setControlsVisibility",value:function(t){var e="hide";if((t&&(this.isFullscreen||this.carousel.isOnFirstPage)||this.isAccessibilityModeActive)&&(e="show"),(0,f.default)(this.topbar,e),this.bottombar){var n="hide";t||this.isFullscreen||!this.carousel.isOnFirstPage||(n="show"),(0,f.default)(this.bottombar,n),t&&!this.isAccessibilityModeActive&&(0,f.default)(this,"sidepanelRight.toggleEnabled",this.carousel.position<this.carousel.slideCount)}this.player.idle=!t,(0,f.default)(this.player,"removeInitialLoadState"),(0,f.default)(this.toolbar,t?"show":"hide")}},{key:"idleOnTimeout",value:function(){this.setControlsVisibility(!1)}},{key:"isAccessibilityModeActive",get:function(){return this.accessibilityModeFrame&&this.accessibilityModeFrame.isActive}},{key:"isVirusScanVisible",get:function(){return this.virusScan&&this.virusScan.isVisible}},{key:"isMouseOverSidepanels",get:function(){return this.sidepanelLeft&&this.sidepanelLeft.isMouseOver||this.sidepanelRight&&this.sidepanelRight.isMouseOver}},{key:"isMouseOverToolbar",get:function(){return this.toolbar&&this.toolbar.isMouseOver}},{key:"isMouseOverTopbar",get:function(){return this.topbar&&this.topbar.isMouseOver}},{key:"isMouseOverBottombar",get:function(){return this.bottombar&&this.bottombar.isMouseOver}}]),e}(h.default);e.default=p,t.exports=e.default},function(t,e,n){"use strict";var i=n(201).default,r=n(211).default,o=n(240).default,a=n(245).default,s=n(251).default,u=n(600).default,l=n(307).default,c=n(196).default;Object.defineProperty(e,"__esModule",{value:!0});var d=c(n(400)),f=c(n(380)),h=c(n(392)),p=c(n(294)),v=c(n(604)),y=c(n(605)),m=n(334),g=function(t){function e(t){var n=arguments.length<=1||void 0===arguments[1]?{}:arguments[1];a(this,e),i(Object.getPrototypeOf(e.prototype),"constructor",this).call(this),(0,d.default)(this,t),this.options=n,this.imageManifestContainer=new y.default(window.devicePixelRatio),this.options.primaryManifestUrl?(this.fetchAndApplyManifests(this.options.primaryManifestUrl),this.options.manifestUrlExpiresAt&&this.scheduleManifestUpdate()):this.skipEventBinding=!0}return r(e,t),o(e,[{key:"beforeInit",value:function(){this.skipEventBinding||(this.debouncedResize=(0,h.default)(this.onResize,100),this.addEvents([this.carousel,"resize",this.debouncedResize],[this.progress,"positionHover",this.onProgressHover]))}},{key:"fetchAndApplyManifests",value:function(t){v.default.fetch(t,{onPrimary:this.onLoadPrimaryManifest.bind(this),onTranscript:this.onLoadTranscriptManifest.bind(this),onImageResolution:this.onLoadImageManifest.bind(this)},this.options.shouldDownloadTranscript)}},{key:"updateManifest",value:function(t,e){this.options.primaryManifestUrl=t,this.options.manifestUrlExpiresAt=e,this.imageManifestContainer.reset(),this.fetchAndApplyManifests(t),this.scheduleManifestUpdate()}},{key:"scheduleManifestUpdate",value:function(){var t=this;setTimeout(function(){(0,f.default)(t.options,"onRequestUpdateManifest")},this._getTimeToUpdateManifest())}},{key:"onResize",value:function(){this.imageManifestContainer.updateOptimalManifest(this.carousel.slideWidth,this.carousel.slideHeight)&&(this.imageManifestContainer.getOptimalImageManifest()&&this._applyImageManifest(this.imageManifestContainer.getOptimalImageManifest(),!0))}},{key:"onProgressHover",value:function(t){var e=t.position,n=this.carousel.options.initialSlideConfigs[e]?this.carousel.options.initialSlideConfigs[e].type:m.SLIDE_TYPE.IMAGE;if(n===m.SLIDE_TYPE.TEXT){var i=this.carousel.options.initialSlideConfigs[e].config.text;(0,f.default)(this.previewThumbnail,"changeThumbnailText",i)}else if(n===m.SLIDE_TYPE.IMAGE){var r=this.imageManifestContainer.getLowestResImageManifest();r&&(0,f.default)(this.previewThumbnail,"changeThumbnailImage",r.pages[e])}}},{key:"onLoadPrimaryManifest",value:function(t){var e=this;t.perResolutions.forEach(function(t){var n=t.width,i=t.height;e.imageManifestContainer.registerImageManifest(n,i)}),this.imageManifestContainer.updateOptimalManifest(this.carousel.slideWidth,this.carousel.slideHeight),this.accessibilityModeFrame&&(this.accessibilityModeFrame.documentUrl=t.transcribedDocumentUrl),this.virusScan&&(this.virusScan.downloadUrl=t.transcribedDocumentUrl)}},{key:"onLoadImageManifest",value:function(t,e){var n=e.width,i=e.height;this.imageManifestContainer.populateImageManifest(t,n,i),this.imageManifestContainer.isOptimalDimension(n,i)&&this._applyImageManifest(t)}},{key:"onLoadTranscriptManifest",value:function(t){var e=this;this.transcript=t.pages,u(t.pages).forEach(function(t){var n=s(t,2),i=n[0],r=n[1],o=void 0;(o=e.options.shouldDownloadTranscript?e.carousel.getSlideElement(i):e.carousel.adapter.restore(e.carousel.getSlideElement(i))[0])&&o.getElementsByTagName&&o.getElementsByTagName("IMG").length>0&&e.carousel.applyTranscriptToSlide(parseInt(i,10),r)})}},{key:"_applyImageManifest",value:function(t){var e=this,n=!(arguments.length<=1||void 0===arguments[1])&&arguments[1];l(t.pages).forEach(function(i){var r=parseInt(i,10);if((e.carousel.options.initialSlideConfigs[r]?e.carousel.options.initialSlideConfigs[r].type:m.SLIDE_TYPE.IMAGE)===m.SLIDE_TYPE.IMAGE){var o=t.pages[r];e.carousel.applyImageSlideConfig({index:r,config:{src:o},clearSlide:!1,onResize:n,fromManifest:!0})}e.transcript&&e.transcript[r]&&e.carousel.applyTranscriptToSlide(r,e.transcript[r])})}},{key:"_getTimeToUpdateManifest",value:function(){var t=arguments.length<=0||void 0===arguments[0]?36e5:arguments[0];return this.options.manifestUrlExpiresAt-Date.now()-t}}]),e}(p.default);e.default=g,t.exports=e.default},function(t,e,n){t.exports={default:n(601),__esModule:!0}},function(t,e,n){n(602),t.exports=n(153).Object.entries},function(t,e,n){var i=n(151),r=n(603)(!0);i(i.S,"Object",{entries:function(t){return r(t)}})},function(t,e,n){var i=n(161),r=n(172),o=n(174),a=n(210).f;t.exports=function(t){return function(e){for(var n,s=o(e),u=r(s),l=u.length,c=0,d=[];l>c;)n=u[c++],i&&!a.call(s,n)||d.push(t?[n,s[n]]:s[n]);return d}}},function(t,e,n){"use strict";var i=n(240).default,r=n(245).default,o=n(295).default,a=n(196).default;Object.defineProperty(e,"__esModule",{value:!0});var s=a(n(380)),u=a(n(323)),l=function(){function t(e,n){var i=this,o=!(arguments.length<=2||void 0===arguments[2])&&arguments[2];if(r(this,t),!e)throw new TypeError("DocumentManifest: url expected to be truthy but was "+e);if("string"!=typeof e)throw new TypeError("DocumentManifest: url expected to be string but was type "+typeof e);var a=u.default.sanitizeUrl(e);this.callbacks=n,t.download(a,function(t){return i._parsePrimaryManifest(t,o)})}return i(t,[{key:"_parsePrimaryManifest",value:function(e,n){var i=this;t.validatePrimaryManifestSchema(e,n),(0,s.default)(this.callbacks,"onPrimary",e),n&&t.download(e.transcriptManifestUrl,this._parseTranscriptManifest.bind(this)),e.perResolutions.forEach(function(e){var n=e.imageManifestUrl,r=e.width,o=e.height;t.download(n,i._parseImageManifest.bind(i,r,o))})}},{key:"_parseTranscriptManifest",value:function(e){t.validateSubManifest(e),(0,s.default)(this.callbacks,"onTranscript",e)}},{key:"_parseImageManifest",value:function(e,n,i){t.validateSubManifest(i),(0,s.default)(this.callbacks,"onImageResolution",i,{width:e,height:n})}}],[{key:"fetch",value:function(){for(var e=arguments.length,n=Array(e),i=0;i<e;i++)n[i]=arguments[i];return new(o.apply(t,[null].concat(n)))}},{key:"download",value:function(t,e){var n=new XMLHttpRequest;n.onreadystatechange=function(){n.readyState===XMLHttpRequest.DONE&&200===n.status&&e(JSON.parse(n.responseText))},n.open("GET",t,!0),n.send()}},{key:"validateManifestSchema",value:function(t){if(!t)throw new TypeError("validateManifestSchema: manifest expected to be truthy but was '"+t+"'");if("object"!=typeof t)throw new TypeError("validateManifestSchema: manifest expected to be object but was type "+typeof t)}},{key:"validatePrimaryManifestSchema",value:function(e,n){if(t.validateManifestSchema(e),n&&!e.transcriptManifestUrl)throw new TypeError("validatePrimaryManifestSchema: manifest does not contain transcript URL (found '"+e.transcriptManifestUrl+"' instead)");if(!e.perResolutions)throw new TypeError("validatePrimaryManifestSchema: manifest does not contain perResolutions (found '"+e.perResolutions+"' instead)");if(!Array.isArray(e.perResolutions))throw new TypeError("validatePrimaryManifestSchema: expected perResolutions to be type Array but was type '"+typeof e.perResolutions+"' instead)")}},{key:"validateSubManifest",value:function(e){if(t.validateManifestSchema(e),!e.pages)throw new TypeError("validateSubManifest: manifest does not contain pages (found '"+e.pages+"' instead)");if("object"!=typeof e.pages)throw new TypeError("validateSubManifest: manifest.pages expected to be object but was type "+typeof e.pages)}}]),t}();e.default=l,t.exports=e.default},function(t,e,n){"use strict";var i=n(245).default,r=n(240).default,o=n(259).default;Object.defineProperty(e,"__esModule",{value:!0});var a=function t(e,n){i(this,t),this.width=e,this.height=n},s=function(){function t(){var e=arguments.length<=0||void 0===arguments[0]?1:arguments[0];i(this,t),this.devicePixelRatio=e,this.imageManifests=[],this.optimalImageManifestIndex=-1}return r(t,[{key:"reset",value:function(){this.imageManifests=[],this.optimalImageManifestIndex=-1}},{key:"registerImageManifest",value:function(t,e){this.imageManifests.push({width:t,height:e}),this.imageManifests.sort(function(t,e){return t.width<e.width?-1:t.width>e.width?1:0})}},{key:"populateImageManifest",value:function(t,e,n){var i=this._getManifestIndexByDimensions(new a(e,n));this.imageManifests[i].manifest=t}},{key:"updateOptimalManifest",value:function(t,e){if(0===this.imageManifests.length)return!1;var n=this._normalizePixelLength(t),i=this._normalizePixelLength(e),r=this._getOptimalWidthAndHeight(n,i),o=r.width,a=r.height;return this.optimalImageManifestIndex=n>i?this._getManifestIndexByDimensions({width:o}):this._getManifestIndexByDimensions({height:a}),!0}},{key:"isOptimalDimension",value:function(t,e){return this._getManifestIndexByDimensions(new a(t,e))===this.optimalImageManifestIndex}},{key:"getOptimalImageManifest",value:function(){if(this.optimalImageManifestIndex<0)throw new ReferenceError("Optimal image manifest must be set before calling getOptimalImageManifest");return this.imageManifests[this.optimalImageManifestIndex].manifest}},{key:"getLowestResImageManifest",value:function(){return this.imageManifests[0]&&this.imageManifests[0].manifest}},{key:"_getManifestIndexByDimensions",value:function(t){var e=t.width,n=t.height;if(void 0===e&&void 0===n)throw new TypeError("_getManifestIndexByDimensions must be called with either a width or a height (cannot be called with neither)");for(var i=0;i<this.imageManifests.length;i+=1){if(void 0===n&&this.imageManifests[i].width===e)return i;if(void 0===e&&this.imageManifests[i].height===n)return i;if(this.imageManifests[i].width===e&&this.imageManifests[i].height===n)return i}return-1}},{key:"_getOptimalWidthAndHeight",value:function(t,e){var n=[].concat(o(this.imageManifests)).sort(function(t,e){return e.width-t.width}),i=n[0].width,r=n[0].height;return n.slice(1).forEach(function(n){var o=n.width,a=n.height;o>=t&&(i=o),a>=e&&(r=a)}),new a(i,r)}},{key:"_normalizePixelLength",value:function(t){return t*this.devicePixelRatio}}]),t}();e.default=s,t.exports=e.default},function(t,e,n){"use strict";var i=n(201).default,r=n(211).default,o=n(240).default,a=n(245).default,s=n(196).default;Object.defineProperty(e,"__esModule",{value:!0});var u=s(n(380)),l=function(t){function e(t){var n=arguments.length<=1||void 0===arguments[1]?{}:arguments[1];a(this,e),i(Object.getPrototypeOf(e.prototype),"constructor",this).call(this),this.components=t,this.callbacks=n.callbacks}return r(e,t),o(e,[{key:"beforeInit",value:function(){var t=[[this.components.virusScan,"requestVirusScanPoll",this.onRequestVirusScanPoll.bind(this)],[this.components.virusScan,"hide",this.onVirusScanHide.bind(this)],[this.components.player,"fullscreen",this.onFullscreen.bind(this)]];this.addEvents.apply(this,t)}},{key:"onRequestVirusScanPoll",value:function(){(0,u.default)(this.callbacks,"requestVirusScanStatus")}},{key:"onVirusScanPollResult",value:function(t){this.components.virusScan.updateWithPollResult(t)}},{key:"onVirusScanHide",value:function(){(0,u.default)(this.components,"topbar.setFocus")}},{key:"onFullscreen",value:function(t){t||this.components.virusScan.hide()}}]),e}(s(n(294)).default);e.default=l,t.exports=e.default},function(t,e,n){"use strict";var i=n(201).default,r=n(211).default,o=n(240).default,a=n(245).default,s=n(196).default;Object.defineProperty(e,"__esModule",{value:!0});var u=s(n(247)),l=s(n(323)),c=n(261),d=function(t){function e(t){var n=arguments.length<=1||void 0===arguments[1]?{}:arguments[1];a(this,e);var r=(0,u.default)({},n,{accessibilityButtonText:"Accessibility mode",title:"",details:"",detailsFullscreen:"",divider:"•",classes:{titleContainer:"ssplayer-topbar-title-container",titleText:"ssplayer-topbar-title-text",detailsText:"ssplayer-topbar-details__preview",detailsFullScreenText:"ssplayer-topbar-details__full-screen",divider:"ssplayer-topbar-divider",cancelButton:"ssplayer-topbar-action-cancel",downloadButton:"ssplayer-topbar-action-download",accessibilityButton:"ssplayer-topbar-action-accessibility",accessibilityButtonPressed:"ssplayer-topbar-accessibility-pressed",authorContainer:"ssplayer-topbar-author-container",authorName:"ssplayer-topbar-author-name-text",authorDescription:"ssplayer-topbar-author-description-text",authorDivider:"ssplayer-topbar-author-divider",inbugIcon:"ssplayer-topbar-inbug-icon"}}),o={downloadButton:"."+r.classes.downloadButton,cancelButton:"."+r.classes.cancelButton};if(i(Object.getPrototypeOf(e.prototype),"constructor",this).call(this,t,r,o),c.events.mixin(this),this.options=r,this.accessibilityButtonText=this.options.accessibilityButtonText,this.title=this.options.title,this.details=this.options.details,this.detailsFullScreen=this.options.detailsFullscreen||this.options.details,this.divider=this.options.divider,this.options.author){if(this.authorContainerElement.addClass("show"),this.inbugElement.attr("class",this.inbugElement.attr("class")+" show"),this.authorName=this.options.author.name,this.options.author.description&&(this.authorDescription=this.options.author.description,this.authorDivider=this.options.author.divider||",&nbsp;"),this.options.author.profileUrl){var s=document.createElement("a");s.href=l.default.sanitizeUrl(this.options.author.profileUrl),s.target="_blank",s.className="ssplayer-topbar-author-profile-url",this.adaptedElement.find(".ssplayer-topbar-author-info").wrapAll(s)}if(this.options.author.inbugUrl){var d=document.createElement("a");d.href=l.default.sanitizeUrl(this.options.author.inbugUrl),d.target="_blank",d.className="ssplayer-topbar-inbug-anchor show",this.inbugElement.wrap(d)}}}return r(e,t),o(e,[{key:"beforeInit",value:function(){var t=this;this.addEvents([this.element,"mouseover",this.onMouseover],[this.element,"mouseout",this.onMouseout],[this.downloadButtonElement,"click",function(){return t.emit("download")}],[this.accessibilityButtonElement,"click",function(){return t.emit("accessibility")}],[this.cancelButtonElement,"click",function(){return t.emit("cancel")}])}},{key:"onMouseover",value:function(){this.isMouseOver=!0,this.emit("onMouseOver")}},{key:"onMouseout",value:function(){this.isMouseOver=!1,this.emit("onMouseOut")}},{key:"setAccessibilityButtonState",value:function(t){this.adaptedElement.find("."+this.options.classes.accessibilityButton).toggleClass(this.options.classes.accessibilityButtonPressed,t)}},{key:"setFocus",value:function(){this.accessibilityButtonElement?this.accessibilityButtonElement.focus():this.downloadButtonElement.focus()}},{key:"downloadButtonElement",get:function(){return this.adaptedElement.find("."+this.options.classes.downloadButton)}},{key:"accessibilityButtonElement",get:function(){return this.adaptedElement.find("."+this.options.classes.accessibilityButton)}},{key:"accessibilityButtonText",set:function(t){this.accessibilityButtonElement.text(t)}},{key:"cancelButtonElement",get:function(){return this.adaptedElement.find("."+this.options.classes.cancelButton)}},{key:"titleElement",get:function(){return this.adaptedElement.find("."+this.options.classes.titleText)}},{key:"title",set:function(t){this.titleElement.text(t)}},{key:"detailsElement",get:function(){return this.adaptedElement.find("."+this.options.classes.detailsText)}},{key:"details",set:function(t){this.detailsElement.text(t)}},{key:"detailsFullScreenElement",get:function(){return this.adaptedElement.find("."+this.options.classes.detailsFullScreenText)}},{key:"detailsFullScreen",set:function(t){this.detailsFullScreenElement.text(t)}},{key:"dividerElement",get:function(){return this.adaptedElement.find("."+this.options.classes.divider)}},{key:"divider",set:function(t){this.dividerElement.text(t)}},{key:"inbugElement",get:function(){return this.adaptedElement.find("."+this.options.classes.inbugIcon)}},{key:"authorContainerElement",get:function(){return this.adaptedElement.find("."+this.options.classes.authorContainer)}},{key:"authorNameElement",get:function(){return this.adaptedElement.find("."+this.options.classes.authorName)}},{key:"authorName",set:function(t){this.authorNameElement.text(t)}},{key:"authorDescriptionElement",get:function(){return this.adaptedElement.find("."+this.options.classes.authorDescription)}},{key:"authorDescription",set:function(t){this.authorDescriptionElement.text(t)}},{key:"authorDividerElement",get:function(){return this.adaptedElement.find("."+this.options.classes.authorDivider)}},{key:"authorDivider",set:function(t){this.authorDividerElement.html(l.default.parseHTML(t))}}]),e}(s(n(342)).default);e.default=d,t.exports=e.default},function(t,e,n){"use strict";var i=n(201).default,r=n(211).default,o=n(240).default,a=n(245).default,s=n(196).default;Object.defineProperty(e,"__esModule",{value:!0});var u=s(n(247)),l=n(261),c=function(t){function e(t){var n=arguments.length<=1||void 0===arguments[1]?{}:arguments[1];a(this,e);var r=(0,u.default)({},n,{title:"",subtitle:"",inbugUrl:"",titleUrl:"",classes:{titleText:"ssplayer-bottombar-title-text",subtitleText:"ssplayer-bottombar-subtitle-text"}});i(Object.getPrototypeOf(e.prototype),"constructor",this).call(this,t,r,{}),l.events.mixin(this),this.options=r,this.title=this.options.title,this.subtitle=this.options.subtitle}return r(e,t),o(e,[{key:"beforeInit",value:function(){this.addEvents([this.element,"mouseover",this.onMouseover],[this.element,"mouseout",this.onMouseout])}},{key:"onMouseover",value:function(){this.isMouseOver=!0,this.emit("onMouseOver")}},{key:"onMouseout",value:function(){this.isMouseOver=!1,this.emit("onMouseOut")}},{key:"titleElement",get:function(){return this.adaptedElement.find("."+this.options.classes.titleText)}},{key:"subtitleElement",get:function(){return this.adaptedElement.find("."+this.options.classes.subtitleText)}},{key:"title",set:function(t){this.titleElement.text(t)}},{key:"subtitle",set:function(t){this.subtitleElement.text(t)}}]),e}(s(n(342)).default);e.default=c,t.exports=e.default},function(t,e,n){"use strict";var i=n(201).default,r=n(211).default,o=n(240).default,a=n(245).default,s=n(196).default;Object.defineProperty(e,"__esModule",{value:!0});var u=s(n(247)),l=n(261),c=s(n(323)),d=s(n(342)),f=n(610),h=function(t){function e(t){var n=arguments.length<=1||void 0===arguments[1]?{}:arguments[1];a(this,e);var r=(0,u.default)({},n,{classes:{accessibilityContainerHidden:"ssplayer-presentation-accessibility-mode__container--hidden",accessibilityEmbed:"ssplayer-presentation-accessibility-mode__embed"}}),o={embed:"."+r.classes.accessibilityEmbed};i(Object.getPrototypeOf(e.prototype),"constructor",this).call(this,t,r,o),l.events.mixin(this),this.options=r}return r(e,t),o(e,[{key:"toggle",value:function(t){t?this.show():this.hide()}},{key:"show",value:function(){if(!this.documentUrl)throw new TypeError("Cannot enter accessibility mode without document URL");this.documentEmbed.attr(this.documentEmbedSourceAttr,this.documentUrl),this.adaptedElement.removeClass(this.options.classes.accessibilityContainerHidden),this.isActive=!0,this.emit("show")}},{key:"hide",value:function(){this.adaptedElement.addClass(this.options.classes.accessibilityContainerHidden),this.isActive=!1,this.emit("hide")}},{key:"_createDocumentEmbedEl",value:function(){var t=void 0;return(0,f.isIE11)()||(0,f.isMSEdge)()?t=document.createElement("iframe"):(t=document.createElement("object")).setAttribute("type","application/pdf"),t.classList.add(this.options.classes.accessibilityEmbed),this.element.appendChild(t)}},{key:"documentUrl",get:function(){return this._safeUrl||""},set:function(t){this._safeUrl=c.default.sanitizeUrl(t)}},{key:"documentEmbedSourceAttr",get:function(){return"IFRAME"===this.documentEmbed.prop("tagName")?"src":"data"}},{key:"documentEmbed",get:function(){return this._documentEmbed||(this._documentEmbed=this.adapter.adapt(this._createDocumentEmbedEl())),this._documentEmbed}}]),e}(d.default);e.default=h,t.exports=e.default},function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isMSEdge=function(){return window.navigator.userAgent.indexOf("Edge")>-1},e.isIE11=function(){return!!window.MSInputMethodContext&&!!document.documentMode}},function(t,e,n){"use strict";var i,r=n(305).default,o=n(201).default,a=n(211).default,s=n(240).default,u=n(245).default,l=n(196).default,c=n(198).default;Object.defineProperty(e,"__esModule",{value:!0});var d=n(261),f=l(n(247)),h=l(n(612)),p=l(n(343)),v=l(n(323)),y=c(n(381)),m=l(n(248)),g={CLEAN:"CLEAN",DIRTY:"DIRTY",SCANNING:"SCANNING",ERROR:"ERROR"};e.VIRUS_SCAN_STATUSES=g;var b={NOT_STARTED:"notstarted",STARTED:"started",CLEAN:"clean",TIMED_OUT:"timedout",DIRTY:"dirty",REDIRECT:"redirect"};e.STATES=b;var _=(r(i={undefined:[b.NOT_STARTED,b.CLEAN,b.REDIRECT]},b.NOT_STARTED,[b.STARTED]),r(i,b.STARTED,[b.CLEAN,b.TIMED_OUT,b.DIRTY]),r(i,b.CLEAN,[]),r(i,b.TIMED_OUT,[]),r(i,b.DIRTY,[]),i),T="DOWNLOAD",E="ACCESSIBILITY",w=function(t){function e(t){var n=arguments.length<=1||void 0===arguments[1]?{}:arguments[1];u(this,e),o(Object.getPrototypeOf(e.prototype),"constructor",this).call(this,t),d.events.mixin(this),this.options=(0,f.default)({},n,{timeoutInSeconds:30,pollIntervalInSeconds:2,bypassScan:!1,titleText:"",cancelButtonText:"Cancel",skipButtonText:"Skip",downloadButtonText:"Download",forceProceedButtonText:"Proceed anyways",progressDescriptionText:"Scanning for viruses...",cleanProgressDescriptionText:"Ready to download",timeoutTitle:"Can't scan this document for viruses",dirtyTitle:"This document is not safe",timeoutSubtitle:"We were unable to scan this document for viruses. Would you still like to proceed?",dirtySubtitle:"We detected a virus in this document that could harm your device.",redirect:!1,redirectAccessibilityTitle:"Visit original post to get accessibility mode",redirectDownloadTitle:"Visit original post to download",redirectUrl:"https://www.linkedin.com"}),this.cancelButtonEl=this.adaptedElement.find(".ssplayer-virus-scan-container__cancel-button"),this.skipButtonEl=this.adaptedElement.find(".ssplayer-virus-scan-container__skip-button"),this.downloadButtonEl=this.adaptedElement.find(".ssplayer-virus-scan-container__download-button"),this.forceProceedButtonEl=this.adaptedElement.find(".ssplayer-virus-scan-container__force-proceed-button"),this.progressContainerEl=this.adaptedElement.find(".ssplayer-virus-scan-container__progress-container"),this.progressLoadingIconEl=this.adaptedElement.find(".ssplayer-loading-icon"),this.progressLoadedIconEl=this.adaptedElement.find(".ssplayer-loaded-icon"),this.progressDescriptionEl=this.adaptedElement.find(".ssplayer-virus-scan-container__progress-description"),this.bottomActionsContainerEl=this.adaptedElement.find(".ssplayer-virus-scan-container__footer"),this.titleEl=this.adaptedElement.find(".ssplayer-virus-scan-container__title"),this.subtitleEl=this.adaptedElement.find(".ssplayer-virus-scan-container__subtitle"),this.redirectEl=this.adaptedElement.find(".ssplayer-virus-scan-container__redirect"),this.redirectAnchorEl=this.adaptedElement.find(".ssplayer-virus-scan-container__redirect-anchor"),this._showInitialUI(),this.options.redirect?this.currentState=b.REDIRECT:this.options.bypassScan?this.currentState=b.CLEAN:this.currentState=b.NOT_STARTED}return a(e,t),s(e,[{key:"beforeInit",value:function(){var t=this;this.addEvents.apply(this,[[this.cancelButtonEl,"click",function(){return t.onCancel()}],[this.skipButtonEl,"click",function(){return t.onSkipScan()}],[this.forceProceedButtonEl,"click",function(){return t.onForceProceedScan()}],[this.downloadButtonEl,"click",function(){return t.onDownload()}]])}},{key:"show",value:function(){this.adaptedElement.addClass("active"),this.focusTrap=this.focusTrap||y.createFocusTrap(".ssplayer-virus-scan-container__footer",{clickOutsideDeactivates:!0}),this.focusTrap.activate(),this.cancelButtonEl.focus(),this.isVisible=!0}},{key:"hide",value:function(){this.adaptedElement.removeClass("active"),this.focusTrap&&this.focusTrap.deactivate(),this.isVisible=!1,this.emit("hide")}},{key:"onCancel",value:function(){this.onSuccessCallback=null,this.hide(),this.emit("virusScanCancel",{mode:this.currentMode})}},{key:"onDownload",value:function(){this.hide(),this.emit("virusScanDownload",{mode:this.currentMode})}},{key:"onSkipScan",value:function(){this.onBypassScan(),this.emit("virusScanSkip",{mode:this.currentMode})}},{key:"onForceProceedScan",value:function(){this.onBypassScan(),this.emit("virusScanBypass",{mode:this.currentMode})}},{key:"onBypassScan",value:function(){if(this.currentState!==b.STARTED&&this.currentState!==b.TIMED_OUT)throw new TypeError("Cannot skip download from state '"+this.currentState+"'");this.hide(),this.onSuccessCallback(),this.onSuccessCallback=null}},{key:"execute",value:function(t){var e=!(arguments.length<=1||void 0===arguments[1])&&arguments[1],n=!(arguments.length<=2||void 0===arguments[2])&&arguments[2];this.currentMode=n?T:E,this.currentState!==b.CLEAN||e?(this._updateUIUponDownload(n),this.show(),this.onSuccessCallback=t,this.promptDownloadOnSuccess=e,this.currentState===b.NOT_STARTED&&this._startPolling()):t()}},{key:"updateWithPollResult",value:function(t){var e=this;if(this.currentState!==b.TIMED_OUT){if(void 0===g[t])throw new TypeError("Virus scan status '"+t+"' is not a valid status!");t===g.SCANNING&&this.currentState===b.STARTED?setTimeout(function(){return e.emit("requestVirusScanPoll")},1e3*this.options.pollIntervalInSeconds):t===g.CLEAN?this.currentState=b.CLEAN:t===g.DIRTY?this.currentState=b.DIRTY:t===g.ERROR&&(this.currentState=b.TIMED_OUT)}}},{key:"_startPolling",value:function(){var t=this;this.currentState=b.STARTED,this.emit("requestVirusScanPoll"),setTimeout(function(){return t._timeoutPolling()},1e3*this.options.timeoutInSeconds)}},{key:"_timeoutPolling",value:function(){this&&this.currentState===b.STARTED&&(this.currentState=b.TIMED_OUT)}},{key:"_showInitialUI",value:function(){e.toggleControlVisibility(this.progressLoadingIconEl,!0),e.toggleControlVisibility(this.subtitleEl,!1),e.toggleControlVisibility(this.forceProceedButtonEl,!1),e.toggleControlVisibility(this.downloadButtonEl,!1),e.toggleControlVisibility(this.progressLoadedIconEl,!1),e.toggleControlVisibility(this.redirectEl,!1),this.titleEl.text(this.options.titleText),this.progressDescriptionEl.text(this.options.progressDescriptionText),this.cancelButtonEl.text(this.options.cancelButtonText),this.skipButtonEl.text(this.options.skipButtonText),this.downloadButtonEl.text(this.options.downloadButtonText),this.forceProceedButtonEl.text(this.options.forceProceedButtonText)}},{key:"_showTimeoutUI",value:function(){e.toggleControlVisibility(this.progressContainerEl,!1),e.toggleControlVisibility(this.skipButtonEl,!1),e.toggleControlVisibility(this.subtitleEl,!0),e.toggleControlVisibility(this.forceProceedButtonEl,!0),this.titleEl.text(this.options.timeoutTitle),this.subtitleEl.text(this.options.timeoutSubtitle)}},{key:"_showDirtyUI",value:function(){e.toggleControlVisibility(this.progressContainerEl,!1),e.toggleControlVisibility(this.skipButtonEl,!1),e.toggleControlVisibility(this.subtitleEl,!0),e.toggleControlVisibility(this.cancelButtonEl,!0),this.titleEl.text(this.options.dirtyTitle),this.subtitleEl.text(this.options.dirtySubtitle)}},{key:"_showCleanUI",value:function(){e.toggleControlVisibility(this.downloadButtonEl,!0),e.toggleControlVisibility(this.skipButtonEl,!1),e.toggleControlVisibility(this.progressLoadingIconEl,!1),e.toggleControlVisibility(this.progressLoadedIconEl,!0),this.progressDescriptionEl.addClass("ssplayer-virus-scan-container__progress-description--clean"),this.progressDescriptionEl.text(this.options.cleanProgressDescriptionText)}},{key:"_showRedirectUI",value:function(){e.toggleControlVisibility(this.progressContainerEl,!1),e.toggleControlVisibility(this.bottomActionsContainerEl,!1),e.toggleControlVisibility(this.titleEl,!1),e.toggleControlVisibility(this.subtitleEl,!1),e.toggleControlVisibility(this.redirectEl,!0),this.redirectAnchorEl.attr("href",this.options.redirectUrl),this.redirectAnchorEl.text(this.options.redirectDownloadTitle)}},{key:"_updateUIUponDownload",value:function(t){if(this.adaptedElement.toggleClass("ssplayer-virus-scan-container--accessibility",!t),this.currentState===b.REDIRECT){var e=t?this.options.redirectDownloadTitle:this.options.redirectAccessibilityTitle;this.redirectAnchorEl.text(e)}}},{key:"currentState",set:function(t){if(!(0,p.default)((0,h.default)(b),t))throw new TypeError("State "+t+" not a valid state!");if(!e.isValidStateTransition(this.currentState,t))throw new TypeError("State transition '"+this.currentState+"' -> '"+t+"' is not valid!");this._currentState=t,t===b.CLEAN?(this._showCleanUI(),this.promptDownloadOnSuccess||this.hide(),this.onSuccessCallback&&this.onSuccessCallback()):t===b.TIMED_OUT?this._showTimeoutUI():t===b.DIRTY?this._showDirtyUI():t===b.REDIRECT&&this._showRedirectUI()},get:function(){return this._currentState}},{key:"promptDownloadOnSuccess",set:function(t){this._promptDownloadOnSuccess=t,t?(this.forceProceedButtonEl.attr("href",this._safeUrl),this.skipButtonEl.attr("href",this._safeUrl)):(this.forceProceedButtonEl.removeAttr("href"),this.skipButtonEl.removeAttr("href"))},get:function(){return this._promptDownloadOnSuccess}},{key:"downloadUrl",set:function(t){var e=v.default.sanitizeUrl(t);this.downloadButtonEl.attr("href",e),this._safeUrl=e}}],[{key:"toggleControlVisibility",value:function(t,e){t.toggleClass("ssplayer-virus-scan-container-control--hidden",!e)}},{key:"isValidStateTransition",value:function(t,e){var n=_[t];return(0,p.default)(n,e)}}]),e}(m.default);e.default=w},function(t,e,n){var i=n(285);t.exports=function(t){for(var e=-1,n=i(t),r=n.length,o=Array(r);++e<r;)o[e]=t[n[e]];return o}},function(t,e,n){"use strict";var i=n(201).default,r=n(211).default,o=n(240).default,a=n(245).default,s=n(251).default,u=n(259).default,l=n(196).default;Object.defineProperty(e,"__esModule",{value:!0});var c=l(n(294)),d=n(338),f=n(614),h=function(t){function e(t){var n=this,r=arguments.length<=1||void 0===arguments[1]?{}:arguments[1];a(this,e),i(Object.getPrototypeOf(e.prototype),"constructor",this).call(this),this.components=t,this.trackingOptions=r,this.isDocumentInViewport=!1,this.currentSlide=null,this.carouselSlides=null,this.currentSlidePosition=0,this.trackingOptions.trackingEnabled&&(0,f.observeForViewportChanges)(this.trackingOptions.playerRootElement,{onViewportEntry:function(){n.onDocumentViewportEntry()},onViewportExit:function(){n.onDocumentViewportExit()}})}return r(e,t),o(e,[{key:"beforeInit",value:function(){var t=this.components.carousel,e=[[t,d.INTERNAL_TRACKING_EVENTS.INITIALIZE_SLIDE_CONTEXT,this.onInitializeSlideContext],[t,d.INTERNAL_TRACKING_EVENTS.SLIDE_POSITION_CHANGE,this.onSlidePositionChange],[t,d.INTERNAL_TRACKING_EVENTS.IMAGE_EXIT,this.onImageExit],[t,d.INTERNAL_TRACKING_EVENTS.IMAGE_LOADED,this.onImageLoaded],[t,d.INTERNAL_TRACKING_EVENTS.IMAGE_ASK_TO_RENDER,this.onImageAskToRender],[t,d.INTERNAL_TRACKING_EVENTS.IMAGE_LOAD_ERROR,this.onImageLoadError]].filter(function(t){return s(t,1)[0]});this.addEvents.apply(this,u(e))}},{key:"onInitializeSlideContext",value:function(t){var e=t.slides,n=t.position;this.carouselSlides=e,this.currentSlidePosition=n}},{key:"onSlidePositionChange",value:function(t){var e=t.position;this.currentSlidePosition=e}},{key:"onImageExit",value:function(t){var e=t.src;this.trackingOptions.trackingEnabled&&this.trackingOptions.trackingCallback(d.TRACKING_EVENTS.MEDIA_EXIT_EVENT,{mediaHeader:{mediaType:d.DOCUMENT_MEDIA_TYPE},mediaTrackingObject:{objectUrn:this.trackingOptions.objectUrn,trackingId:this.trackingOptions.trackingId},url:e})}},{key:"onImageLoaded",value:function(t){var e=t.src;this.trackingOptions.trackingEnabled&&this.isDocumentInViewport&&this.trackingOptions.trackingCallback(d.TRACKING_EVENTS.MEDIA_RENDERED_EVENT,{mediaHeader:{mediaType:d.DOCUMENT_MEDIA_TYPE},mediaTrackingObject:{objectUrn:this.trackingOptions.objectUrn,trackingId:this.trackingOptions.trackingId},createdTime:Date.now(),perceivedTimeToFirstFrameDuration:-1,url:e})}},{key:"onImageAskToRender",value:function(t){var e=t.src;this.trackingOptions.trackingEnabled&&this.isDocumentInViewport&&this.trackingOptions.trackingCallback(d.TRACKING_EVENTS.MEDIA_ASK_TO_RENDER_EVENT,{mediaHeader:{mediaType:d.DOCUMENT_MEDIA_TYPE},mediaTrackingObject:{objectUrn:this.trackingOptions.objectUrn,trackingId:this.trackingOptions.trackingId},createdTime:Date.now(),reason:"ENTERED_VIEWPORT",url:e})}},{key:"onImageLoadError",value:function(t){var e=t.src;this.trackingOptions.trackingEnabled&&this.trackingOptions.trackingCallback(d.TRACKING_EVENTS.MEDIA_PLAYBACK_ERROR_V2_EVENT,{mediaHeader:{mediaType:d.DOCUMENT_MEDIA_TYPE},mediaTrackingObject:{objectUrn:this.trackingOptions.objectUrn,trackingId:this.trackingOptions.trackingId},errorType:"NETWORK",url:e})}},{key:"onDocumentViewportEntry",value:function(){if(!this.isDocumentInViewport&&(this.isDocumentInViewport=!0,this.carouselSlides)){var t=this.carouselSlides[this.currentSlidePosition].state;this.onImageAskToRender({src:t.imageSrc}),t.imageLoaded&&this.onImageLoaded({src:t.imageSrc})}}},{key:"onDocumentViewportExit",value:function(){this.isDocumentInViewport=!1,this.carouselSlides&&this.onImageExit({src:this.carouselSlides[this.currentSlidePosition].state.imageSrc})}}]),e}(c.default);e.default=h,t.exports=e.default},function(t,e,n){"use strict";var i=n(615).default,r=n(196).default;Object.defineProperty(e,"__esModule",{value:!0}),e.observeForViewportChanges=function(t,e){if(!(0,o.default)(t))return;var n=function(){if(s)return s;return s=new IntersectionObserver(function(t){t.forEach(function(t){var e=t.target;if(a.has(e))if(t.isIntersecting)e.dataset.ssPlayerInViewport=!0,a.get(e)&&a.get(e).onViewportEntry();else{if(!e.dataset.ssPlayerInViewport)return;a.get(e)&&a.get(e).onViewportExit()}})})}();a.set(t,e),n.observe(t)};var o=r(n(632)),a=new i,s=void 0},function(t,e,n){t.exports={default:n(616),__esModule:!0}},function(t,e,n){n(237),n(222),n(617),n(628),n(630),t.exports=n(153).WeakMap},function(t,e,n){"use strict";var i,r=n(152),o=n(618)(0),a=n(167),s=n(230),u=n(621),l=n(622),c=n(159),d=n(626),f=n(626),h=!r.ActiveXObject&&"ActiveXObject"in r,p=s.getWeak,v=Object.isExtensible,y=l.ufstore,m=function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}},g={get:function(t){if(c(t)){var e=p(t);return!0===e?y(d(this,"WeakMap")).get(t):e?e[this._i]:void 0}},set:function(t,e){return l.def(d(this,"WeakMap"),t,e)}},b=t.exports=n(627)("WeakMap",m,g,l,!0,!0);f&&h&&(u((i=l.getConstructor(m,"WeakMap")).prototype,g),s.NEED=!0,o(["delete","has","get","set"],function(t){var e=b.prototype,n=e[t];a(e,t,function(e,r){if(c(e)&&!v(e)){this._f||(this._f=new i);var o=this._f[t](e,r);return"set"==t?this:o}return n.call(this,e,r)})}))},function(t,e,n){var i=n(154),r=n(175),o=n(188),a=n(178),s=n(619);t.exports=function(t,e){var n=1==t,u=2==t,l=3==t,c=4==t,d=6==t,f=5==t||d,h=e||s;return function(e,s,p){for(var v,y,m=o(e),g=r(m),b=i(s,p,3),_=a(g.length),T=0,E=n?h(e,_):u?h(e,0):void 0;_>T;T++)if((f||T in g)&&(y=b(v=g[T],T,m),t))if(n)E[T]=y;else if(y)switch(t){case 3:return!0;case 5:return v;case 6:return T;case 2:E.push(v)}else if(c)return!1;return d?-1:l||c?c:E}}},function(t,e,n){var i=n(620);t.exports=function(t,e){return new(i(t))(e)}},function(t,e,n){var i=n(159),r=n(234),o=n(186)("species");t.exports=function(t){var e;return r(t)&&("function"!=typeof(e=t.constructor)||e!==Array&&!r(e.prototype)||(e=void 0),i(e)&&null===(e=e[o])&&(e=void 0)),void 0===e?Array:e}},function(t,e,n){"use strict";var i=n(161),r=n(172),o=n(233),a=n(210),s=n(188),u=n(175),l=Object.assign;t.exports=!l||n(162)(function(){var t={},e={},n=Symbol(),i="abcdefghijklmnopqrst";return t[n]=7,i.split("").forEach(function(t){e[t]=t}),7!=l({},t)[n]||Object.keys(l({},e)).join("")!=i})?function(t,e){for(var n=s(t),l=arguments.length,c=1,d=o.f,f=a.f;l>c;)for(var h,p=u(arguments[c++]),v=d?r(p).concat(d(p)):r(p),y=v.length,m=0;y>m;)h=v[m++],i&&!f.call(p,h)||(n[h]=p[h]);return n}:l},function(t,e,n){"use strict";var i=n(623),r=n(230).getWeak,o=n(158),a=n(159),s=n(624),u=n(625),l=n(618),c=n(166),d=n(626),f=l(5),h=l(6),p=0,v=function(t){return t._l||(t._l=new y)},y=function(){this.a=[]},m=function(t,e){return f(t.a,function(t){return t[0]===e})};y.prototype={get:function(t){var e=m(this,t);if(e)return e[1]},has:function(t){return!!m(this,t)},set:function(t,e){var n=m(this,t);n?n[1]=e:this.a.push([t,e])},delete:function(t){var e=h(this.a,function(e){return e[0]===t});return~e&&this.a.splice(e,1),!!~e}},t.exports={getConstructor:function(t,e,n,o){var l=t(function(t,i){s(t,l,e,"_i"),t._t=e,t._i=p++,t._l=void 0,null!=i&&u(i,n,t[o],t)});return i(l.prototype,{delete:function(t){if(!a(t))return!1;var n=r(t);return!0===n?v(d(this,e)).delete(t):n&&c(n,this._i)&&delete n[this._i]},has:function(t){if(!a(t))return!1;var n=r(t);return!0===n?v(d(this,e)).has(t):n&&c(n,this._i)}}),l},def:function(t,e,n){var i=r(o(e),!0);return!0===i?v(t).set(e,n):i[t._i]=n,t},ufstore:v}},function(t,e,n){var i=n(156);t.exports=function(t,e,n){for(var r in e)n&&t[r]?t[r]=e[r]:i(t,r,e[r]);return t}},function(t,e){t.exports=function(t,e,n,i){if(!(t instanceof e)||void 0!==i&&i in t)throw TypeError(n+": incorrect invocation!");return t}},function(t,e,n){var i=n(154),r=n(190),o=n(191),a=n(158),s=n(178),u=n(193),l={},c={};(e=t.exports=function(t,e,n,d,f){var h,p,v,y,m=f?function(){return t}:u(t),g=i(n,d,e?2:1),b=0;if("function"!=typeof m)throw TypeError(t+" is not iterable!");if(o(m)){for(h=s(t.length);h>b;b++)if((y=e?g(a(p=t[b])[0],p[1]):g(t[b]))===l||y===c)return y}else for(v=m.call(t);!(p=v.next()).done;)if((y=r(v,g,p.value,e))===l||y===c)return y}).BREAK=l,e.RETURN=c},function(t,e,n){var i=n(159);t.exports=function(t,e){if(!i(t)||t._t!==e)throw TypeError("Incompatible receiver, "+e+" required!");return t}},function(t,e,n){"use strict";var i=n(152),r=n(151),o=n(230),a=n(162),s=n(156),u=n(623),l=n(625),c=n(624),d=n(159),f=n(185),h=n(157).f,p=n(618)(0),v=n(161);t.exports=function(t,e,n,y,m,g){var b=i[t],_=b,T=m?"set":"add",E=_&&_.prototype,w={};return v&&"function"==typeof _&&(g||E.forEach&&!a(function(){(new _).entries().next()}))?(_=e(function(e,n){c(e,_,t,"_c"),e._c=new b,null!=n&&l(n,m,e[T],e)}),p("add,clear,delete,forEach,get,has,set,keys,values,entries,toJSON".split(","),function(t){var e="add"==t||"set"==t;t in E&&(!g||"clear"!=t)&&s(_.prototype,t,function(n,i){if(c(this,_,t),!e&&g&&!d(n))return"get"==t&&void 0;var r=this._c[t](0===n?0:n,i);return e?this:r})}),g||h(_.prototype,"size",{get:function(){return this._c.size}})):(_=y.getConstructor(e,t,m,T),u(_.prototype,n),o.NEED=!0),f(_,t),w[t]=_,r(r.G+r.W+r.F,w),g||y.setStrong(_,t,m),_}},function(t,e,n){n(629)("WeakMap")},function(t,e,n){"use strict";var i=n(151);t.exports=function(t){i(i.S,t,{of:function(){for(var t=arguments.length,e=new Array(t);t--;)e[t]=arguments[t];return new this(e)}})}},function(t,e,n){n(631)("WeakMap")},function(t,e,n){"use strict";var i=n(151),r=n(155),o=n(154),a=n(625);t.exports=function(t){i(i.S,t,{from:function(t){var e,n,i,s,u=arguments[1];return r(this),(e=void 0!==u)&&r(u),null==t?new this:(n=[],e?(i=0,s=o(u,arguments[2],2),a(t,!1,function(t){n.push(s(t,i++))})):a(t,!1,n.push,n),new this(n))}})}},function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){return t instanceof HTMLElement},t.exports=e.default},function(t,e,n){"use strict";var i=n(196).default;Object.defineProperty(e,"__esModule",{value:!0}),e.buildRequestHeader=function(){var t=arguments.length<=0||void 0===arguments[0]?window.location:arguments[0],e={},n=r.li.getPageKey();n&&(e.pageKey=n);var i=r.url.getTrackingCode(t.href);i&&(e.trackingCode=i);return e},e.getTrackingOptions=function(){var t=arguments.length<=0||void 0===arguments[0]?{}:arguments[0],e=t.trackingId||null,n="function"==typeof t.trackingCallback&&t.trackingCallback,i=n&&e;return{playerRootElement:(0,a.default)(t.playerRootElement)?t.playerRootElement:document.querySelector(o.DEFAULT_ROOT_NODE_SELECTOR),trackingId:e,objectUrn:t.objectUrn||"",trackingEnabled:i,trackingCallback:n}};var r=n(261),o=n(338),a=i(n(632))},function(t,e,n){"use strict";var i=n(196).default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){var e=new p.PlayerStateManager,n=t.positionOptions||{},i=(0,v.default)(a.default,t.presentationElement),g=(0,v.default)(f.default,t.presentationElement,{},void 0,e);t.tocOptions.aspectRatio||(t.tocOptions.aspectRatio=t.scrollOptions.aspectRatio);var b=(0,v.default)(u.default,t.tocElement,t.tocOptions),_=(0,v.default)(s.default,t.scrollElement,t.scrollOptions),T=(0,v.default)(c.default,t.paginationElement,t.positionOptions),E=(0,v.default)(l.default,t.progressElement,t.positionOptions),w=(0,v.default)(d.default,t.toolbarElement,(0,r.default)({checkFullscreenAPI:!0},t.toolbarOptions),void 0,void 0,void 0,t.toolbarA11yOptions&&t.toolbarA11yOptions.a11y),k=h.default.create(window.document,{shouldPreventScroll:!1});return y.default.create({toc:b,scroll:_,fullscreenTarget:g},t.manifestOptions,t.textOverlayOptions),m.default.create({player:i,fullscreenTarget:g,toolbar:w,scroll:_,toc:b,keyboard:k}),o.default.create({behaviorOptions:t.documentBehaviorOptions,positionOptions:n,fullscreenTarget:g,toc:b,scroll:_,pagination:T,progress:E,toolbar:w,keyboard:k})};var r=i(n(400)),o=i(n(635)),a=i(n(637)),s=i(n(638)),u=i(n(643)),l=i(n(339)),c=i(n(356)),d=i(n(370)),f=i(n(374)),h=i(n(353)),p=n(304),v=i(n(644)),y=i(n(645)),m=i(n(646));t.exports=e.default},function(t,e,n){"use strict";var i=n(201).default,r=n(211).default,o=n(240).default,a=n(245).default,s=n(251).default,u=n(259).default,l=n(196).default;Object.defineProperty(e,"__esModule",{value:!0});var c=l(n(380)),d=l(n(294)),f=l(n(636)),h=l(n(357)),p=1,v=function(t){function e(){var t=arguments.length<=0||void 0===arguments[0]?{}:arguments[0],n=t.behaviorOptions,r=t.positionOptions,o=t.fullscreenTarget,s=t.toc,u=t.scroll,l=t.pagination,c=t.progress,d=t.toolbar,v=t.keyboard;a(this,e),i(Object.getPrototypeOf(e.prototype),"constructor",this).call(this),(0,f.default)(r,"Document behavior expects to be passed position options"),(0,f.default)(r.position,"Document behavior expects positionOptions to have a position property"),(0,f.default)(r.length,"Document behavior expects positionOptions to have a length property"),this.options=n,this.position=(0,h.default)(r.position,0),this.maxPosition=r.length-1,this.zoomScale=p,this.fullscreenTarget=o,this.toc=s,this.scroll=u,this.pagination=l,this.progress=c,this.toolbar=d,this.keyboard=v}return r(e,t),o(e,[{key:"beforeInit",value:function(){var t=[[this.scroll,"onScrolledToPosition",this._updatePositionFromScroll],[this.scroll,"onViewedPosition",this._updateViewedStatus],[this.toc,"onTocPositionChange",this._updatePosition],[this.toc,"onTocToggled",this._updateToolbarStyle],[this.progress,"positionClick",this._updatePosition],[this.progress,"positionDrag",this._updatePosition],[this.toolbar,"enterFullscreen",this._requestEnterFullscreen],[this.toolbar,"exitFullscreen",this._requestExitFullscreen],[this.toolbar,"next",this._goToNextSlide],[this.toolbar,"previous",this._goToPreviousSlide],[this.toolbar,"zoom",this._updateZoom],[this.toolbar,"hcmToggle",this._updateHighContrastMode],[this.keyboard,"altRightArrow",this._onRightKeyPress],[this.keyboard,"altLeftArrow",this._onLeftKeyPress],[this.fullscreenTarget,"changeFullscreen",this._handleFullscreenChanged]].filter(function(t){return s(t,1)[0]});this.addEvents.apply(this,u(t))}},{key:"_updateZoom",value:function(t){(0,c.default)(this.scroll,"zoom",t),this._handleZoomChange(t)}},{key:"_updateHighContrastMode",value:function(t){(0,c.default)(this.scroll,"hcmToggle",t)}},{key:"_updatePosition",value:function(t){this.position=(0,h.default)(t),(0,c.default)(this.scroll,"changePosition",this.position),(0,c.default)(this.pagination,"changePosition",this.position),(0,c.default)(this.progress,"changePosition",this.position,!0),(0,c.default)(this.toc,"changePosition",this.position)}},{key:"_updateToolbarStyle",value:function(){(0,c.default)(this.scroll,"onResize"),(0,c.default)(this.toolbar,"toggleTocToolbarStyle"),(0,c.default)(this.toc,"refocusToggleButton")}},{key:"_updatePositionFromScroll",value:function(t){this.position=(0,h.default)(t),(0,c.default)(this.pagination,"changePosition",this.position),(0,c.default)(this.progress,"changePosition",this.position,!0),(0,c.default)(this.toc,"changePosition",this.position)}},{key:"_updateViewedStatus",value:function(t){(0,c.default)(this.toc,"setViewedStatus",t)}},{key:"_onLeftKeyPress",value:function(){this.isZoomedIn||this._goToPreviousSlide()}},{key:"_onRightKeyPress",value:function(){this.isZoomedIn||this._goToNextSlide()}},{key:"_goToNextSlide",value:function(){this.position!==this.maxPosition&&this._updatePosition(this.position+1)}},{key:"_goToPreviousSlide",value:function(){0!==this.position&&this._updatePosition(this.position-1)}},{key:"_requestEnterFullscreen",value:function(){void 0!==this.fullscreenTarget&&(this.fullscreenTarget.fullscreen=!0)}},{key:"_requestExitFullscreen",value:function(){void 0!==this.fullscreenTarget&&(this.fullscreenTarget.fullscreen=!1)}},{key:"_handleFullscreenChanged",value:function(t){(0,c.default)(this,"options.callbacks.onFullscreen",t)}},{key:"_handleZoomChange",value:function(t){this.zoomScale=t}},{key:"isZoomedIn",get:function(){return this.zoomScale>p}}]),e}(d.default);e.default=v,t.exports=e.default},function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e){if(void 0===t)throw new TypeError(e)},t.exports=e.default},function(t,e,n){"use strict";var i=n(201).default,r=n(211).default,o=n(240).default,a=n(245).default,s=n(196).default;Object.defineProperty(e,"__esModule",{value:!0});var u=s(n(247)),l=s(n(359)),c=n(261),d=s(n(248)),f=function(t){function e(t){var n=arguments.length<=1||void 0===arguments[1]?{}:arguments[1],r=arguments.length<=2||void 0===arguments[2]?t.ownerDocument:arguments[2];return function(){a(this,e),i(Object.getPrototypeOf(e.prototype),"constructor",this).call(this,t),c.events.mixin(this),this.options=(0,u.default)({},n,{classes:{initialized:"player-initialized",idle:"ssplayer-idle",isZoomed:"ssplayer-is-zoomed"}}),this.document=r,this.isMouseover=!1}.apply(this,arguments)}return r(e,t),o(e,[{key:"beforeInit",value:function(){var t=[];t.push([this.element,"mouseenter",this.onMouseEnter],[this.element,"mousemove",(0,l.default)(this.onMouseMove,300)],[this.element,"mouseleave",this.onMouseLeave]),this.addEvents.apply(this,t),this.adapter.addClass(this.adaptedElement,this.options.classes.initialized)}},{key:"onMouseEnter",value:function(){this.isMouseover=!0,this.emit("mouseEnter")}},{key:"onMouseMove",value:function(){this.emit("mouseMove")}},{key:"onMouseLeave",value:function(){this.isMouseover=!1,this.emit("mouseLeave")}},{key:"toggleToolbar",value:function(t){this.adapter.toggleClass(this.adaptedElement,this.options.classes.idle,!t)}},{key:"setIsZoomed",value:function(t){this.adaptedElement.toggleClass(this.options.classes.isZoomed,t)}},{key:"idle",set:function(t){this.toggleToolbar(!t)}}]),e}(d.default);e.default=f,t.exports=e.default},function(t,e,n){"use strict";var i=n(201).default,r=n(211).default,o=n(240).default,a=n(245).default,s=n(259).default,u=n(251).default,l=n(314).default,c=n(143).default,d=n(307).default,f=n(196).default;Object.defineProperty(e,"__esModule",{value:!0});var h=f(n(392)),p=f(n(247)),v=f(n(380)),y=f(n(322)),m=f(n(323)),g=f(n(636)),b=f(n(357)),_=f(n(337)),T=f(n(639)),E=f(n(640)),w=200,k=l({image:"image"}),S=function(t){function e(t){var n=arguments.length<=1||void 0===arguments[1]?{}:arguments[1],r=arguments.length<=2||void 0===arguments[2]?t.ownerDocument.defaultView:arguments[2];return function(){a(this,e),i(Object.getPrototypeOf(e.prototype),"constructor",this).call(this,t,n,r),this.options=(0,p.default)(this.options,{constrainHeight:!1,heightOffset:0,viewingStatusDebounceTime:w,a11ySlideAltTextLabel:"Page:",classes:{initialized:"ssplayer-scroll-initialized",isFullWidth:"ssplayer-scroll-is-full-width",highContrastActive:"ssplayer-hcm-active"}}),(0,g.default)(this.options.aspectRatio,"Scroll Component expects an aspectRatio in options"),this.viewingStatusDebounceTime=this.options.viewingStatusDebounceTime,this.aspectRatio=this.options.aspectRatio,this.heightOffset=this.options.heightOffset,this.requestedSlideIndices={},this.zoomScale=1}.apply(this,arguments)}return r(e,t),o(e,[{key:"beforeInit",value:function(){this.trackWithSections=!0,i(Object.getPrototypeOf(e.prototype),"beforeInit",this).call(this);var t=m.default.htmlEncode(this.options.classes.slide);this.debounceOnViewed=(0,h.default)(this._markPagesAsViewed,this.viewingStatusDebounceTime),this.$slides=this.adapter.findAll(this.$track,"."+t),this._setupEvents(this.$slides),this.applySlideConfigs(this.options.initialSlideConfigs),this._setDimensions(),this.changePosition(this.position,!0);var n=m.default.htmlEncode(this.options.classes.initialized);this.adapter.addClass(this.adaptedElement,n),this.onScroll()}},{key:"_setupEvents",value:function(t){var e=this.adapter.restore(t);this.addEvents.apply(this,s(e.map(function(t){return[t,"dragstart",function(t){return t.preventDefault()}]})))}},{key:"onScroll",value:function(){var t=this.viewPositions.slice();i(Object.getPrototypeOf(e.prototype),"onScroll",this).call(this),this._loadOffsetsForIndex(this.position),t[0]===this.viewPositions[0]&&t[1]===this.viewPositions[1]||this._onPagesViewed(t)}},{key:"_onPagesViewed",value:function(t){var e=u(t,2),n=e[0],i=e[1],r=u(this.viewPositions,2),o=r[0],a=r[1];o!==this.position&&(this._onPageActive(o),this.emit("onScrolledToPosition",o));var s=[o,a];if(o<=i&&o>=n&&(s[0]=i+1),a>=n&&a<=i&&(s[1]=n-1),s[1]-s[0]>=0){var l=c(Array(s[1]-s[0]+1),function(t,e){return e+s[0]});this.debounceOnViewed(l)}}},{key:"_onPageActive",value:function(t){this.position=t,(0,v.default)(this,"options.callbacks.onSlideActive",{index:t})}},{key:"_markPagesAsViewed",value:function(t){for(var e=0,n=t.length;e<n;e+=1)(0,v.default)(this,"options.callbacks.onSlideViewed",{index:t[e]}),this.emit("onViewedPosition",t[e])}},{key:"onResize",value:function(){i(Object.getPrototypeOf(e.prototype),"onResize",this).call(this),this._setDimensions(),this.onScroll()}},{key:"_setDimensions",value:function(){var t=this.adapter.getWidth(this.adaptedElement),e=t*this.zoomScale,n=e/this.aspectRatio,i=m.default.htmlEncode(this.options.classes.isFullWidth);if(y.default.element===this.element||this.options.constrainHeight){var r=y.default.element===this.element.parentElement?0:this.heightOffset,o=this.adapter.getHeight(this.adaptedElement)-r;n>o&&this.adapter.getHeight(this.adaptedElement)>0&&(e=(n=o*this.zoomScale)*this.aspectRatio)}e=Math.ceil(e),n=Math.floor(n),e===t?this.element.classList.add(i):this.element.classList.remove(i),this.adapter.setWidth(this.$slides,e),this.adapter.setHeight(this.$slides,n),this.slideWidth=e,this.slideHeight=n}},{key:"applySlideConfigs",value:function(t){var e=this;d(t).forEach(function(n){e.applySlideConfigForType(n,t[n].type,t[n].config)})}},{key:"applySlideConfigForType",value:function(t,e,n){switch(e){case k.image:this.applyImageSlideConfig(t,n);break;default:throw new Error("Cannot generate slide node for type: "+e)}}},{key:"_validateImageSlideConfig",value:function(t,e){if(!this._isValidIndex(t))throw new RangeError("Attempting to apply a config to out of range index: "+t);if("string"!=typeof e.src)throw new TypeError("No src string in slide config at index: "+t)}},{key:"applyImageSlideConfig",value:function(t,e){this._validateImageSlideConfig(t,e);var n=m.default.htmlEncode(this.options.classes.slide),i=m.default.htmlEncode(this.options.attrs.index),r=this.shouldRenderPage(t),o=this._getSlideElement(t);r||(0,_.default)({slide:this.adapter.restore(o)[0],slideClass:n,indexAttribute:i,index:t,clearAttrs:d(this.options.attrs)});var a=m.default.htmlEncode(this.options.classes.lazyImage),s=m.default.sanitizeUrl(e.src),u=this.options.a11ySlideAltTextLabel,l=(0,T.default)({dataSrc:s,lazyImageClass:a,a11ySlideAltTextLabel:u,index:t}),c=this.adapter.restore(o)[0],f=c.children.length,h=r&&f;h?c.children[0].setAttribute("data-src",s):c.appendChild(l);var p=m.default.htmlEncode(this.options.attrs.type);c.setAttribute(p,k.image),(0,v.default)(this,"options.callbacks.onSlideConfigApplied",{slide:c,index:(0,b.default)(t)});var y=this.requestedSlideIndices[t];if(y&&delete this.requestedSlideIndices[t],y||r){var g=void 0;h&&(g=l),this._loadImageSlide(o,t,g)}}},{key:"shouldRenderPage",value:function(t){return t<=this.viewPositions[1]+3&&t>=this.viewPositions[0]-3}},{key:"changePosition",value:function(t){var e=!(arguments.length<=1||void 0===arguments[1])&&arguments[1],n=Math.max(0,Math.min(t||0,this.numPages-1));(n!==this.position||e)&&(this._getSlideElement(n)[0].focus(),this.adapter.restore(this.adaptedElement)[0].scrollTop=this.$slides[n].offsetTop,this._onPageActive(n))}},{key:"zoom",value:function(t){this.zoomScale=t,this.onResize()}},{key:"hcmToggle",value:function(t){var e=this.options.classes.highContrastActive;this.element.classList.toggle(e,t)}},{key:"_isValidIndex",value:function(t){return t>=0&&t<this.numPages}},{key:"_loadOffsetsForIndex",value:function(t){var e=this,n=this.viewPositions[1]-this.viewPositions[0];(n>=0?c(Array(n+1+6),function(t,n){return n+e.viewPositions[0]-3}):[t]).filter(function(t){return e._isValidIndex(t)}).forEach(function(t){return e._tryLoadIndex(t)})}},{key:"_tryLoadIndex",value:function(t){var e=this._getSlideElement(t),n=this.options.classes,i=n.slideLoading,r=n.slideLoaded;this.adapter.hasClass(e,i)||this.adapter.hasClass(e,r)||this._loadSlideAtIndex(e,t)}},{key:"_loadSlideAtIndex",value:function(t,e){var n=this.adapter.restore(t)[0];if(n.hasAttribute(this.options.attrs.type)){var i=n.getAttribute(this.options.attrs.type);switch(i){case k.image:this._loadImageSlide(t,e);break;default:throw new Error("Cannot load slide content at index "+e+" for unsupported type: "+i)}}else this.requestedSlideIndices[e]||(this.requestedSlideIndices[e]=!0,(0,v.default)(this,"options.callbacks.onNeedSlideConfig",{index:e}))}},{key:"_loadImageSlide",value:function(t,e,n){var i=this,r=this.options.classes,o=r.slideLoadError,a=r.slideLoadSuccess,s=r.slideLoaded,u=r.slideLoading;this.adapter.addClass(t,u);var l=this.adapter.children(t,"img."+this.options.classes.lazyImage),c=this.adapter.getData(n?this.adapter.adapt(n):l,"src"),d=n||document.createElement("img");d.onerror=function(){i.adapter.removeClass(t,u),i.adapter.addClass(t,s+" "+o),(0,v.default)(i,"options.callbacks.onSlideLoadError",{index:e})},d.onload=function(){i.adapter.setAttr(l,"src",d.src),i.adapter.removeClass(t,u),i.adapter.addClass(t,s+" "+a)},this.adapter.setAttr(this.adapter.adapt(d),"src",c)}},{key:"_getSlideElement",value:function(t){return this.adapter.find(this.$track,"["+this.options.attrs.index+'="'+t+'"]')}},{key:"getTrackElement",value:function(t){return this.$slides[t]}},{key:"viewThreshold",get:function(){return Math.min(this.scrollingElement.offsetHeight,this.slideHeight)/2}}]),e}(E.default);e.default=S,t.exports=e.default},function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){var e=t.dataSrc,n=t.lazyImageClass,i=t.a11ySlideAltTextLabel,r=t.index,o=document.createElement("img");o.setAttribute("class",n),e&&o.setAttribute("data-src",e);i&&o.setAttribute("alt",i+" "+(parseInt(r,10)+1));return o},t.exports=e.default},function(t,e,n){"use strict";var i=n(201).default,r=n(211).default,o=n(240).default,a=n(245).default,s=n(196).default;Object.defineProperty(e,"__esModule",{value:!0});var u=s(n(247)),l=s(n(323)),c=s(n(392)),d=s(n(359)),f=s(n(371)),h=s(n(636)),p=s(n(641)),v=s(n(642)),y=function(t){function e(t){var n=arguments.length<=1||void 0===arguments[1]?{}:arguments[1],r=arguments.length<=2||void 0===arguments[2]?t.ownerDocument.defaultView:arguments[2];return function(){a(this,e),i(Object.getPrototypeOf(e.prototype),"constructor",this).call(this,t),this.options=(0,u.default)({},n,{startPosition:0,classes:{track:"ssplayer-scroll-track",slide:"ssplayer-scroll-slide",slideLoadError:"ssplayer-scroll-slide-load-error",slideLoadSuccess:"ssplayer-scroll-slide-load-success",slideLoaded:"ssplayer-scroll-slide-loaded",slideLoading:"ssplayer-scroll-slide-loading",lazyImage:"ssplayer-scroll-lazy-image"},attrs:{index:"data-ssplayer-slide-index",type:"data-ssplayer-slide-type"}}),(0,h.default)(this.options.numPages,"Track Component expects a numPages in options"),this.position=this.options.startPosition,this.viewPositions=[this.options.numPages,-1],this.numPages=this.options.numPages,this.window=r}.apply(this,arguments)}return r(e,t),o(e,[{key:"beforeInit",value:function(){var t=l.default.htmlEncode(this.options.classes.track),e=l.default.htmlEncode(this.options.classes.slide),n=l.default.htmlEncode(this.options.attrs.index),i=void 0;i=this.trackWithSections?(0,v.default)(t,e,n,this.numPages):(0,p.default)(t,e,n,this.numPages),this.$track=this.adapter.adapt(i),this.scrollingElement.appendChild(i),this.addEvents([this.window,"resize",(0,d.default)(this.onResize,200)],[this.scrollingElement,"scroll",(0,c.default)(this.onScroll,100,{maxWait:300})])}},{key:"onResize",value:function(){this.emit("resize")}},{key:"onScroll",value:function(){for(var t=this.scrollingElement,e=t.scrollTop,n=e+t.offsetHeight,i=this.viewThreshold,r=this.numPages,o=e+i,a=n-i,s=[],u=0;u<r;u+=1){var l=this.getTrackElement(u),c=l.offsetTop,d=c+l.offsetHeight;if(c<a&&d>o)"number"!=typeof s[0]&&(s[0]=u),s[1]=u;else if(s.length)break}s.length&&(this.viewPositions=s)}},{key:"getTrackElement",value:function(t){return this.$track[0].children[t]}},{key:"scrollingElement",get:function(){return this.element}},{key:"viewThreshold",get:function(){return 0}}]),e}(f.default);e.default=y,t.exports=e.default},function(t,e,n){"use strict";var i=n(196).default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e,n,i){var o=document.createElement("ul");o.setAttribute("class",t);for(var a=0;a<i;a+=1){var s=(0,r.default)({index:a,slideClass:e,indexAttribute:n});o.appendChild(s)}return o};var r=i(n(336));t.exports=e.default},function(t,e,n){"use strict";var i=n(196).default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e,n,i){var o=document.createElement("div");o.setAttribute("role","list"),o.setAttribute("class",t);for(var a=0;a<i;a+=1){var s=document.createElement("section");s.setAttribute("tabIndex",0),s.setAttribute("id","data-ssplayer-slide-index-"+a),s.setAttribute("role","listitem");var u=(0,r.default)({element:s,index:a,slideClass:e,indexAttribute:n});o.appendChild(u)}return o};var r=i(n(336));t.exports=e.default},function(t,e,n){"use strict";var i=n(201).default,r=n(211).default,o=n(240).default,a=n(245).default,s=n(196).default;Object.defineProperty(e,"__esModule",{value:!0});var u=s(n(247)),l=s(n(323)),c=s(n(640)),d=s(n(639)),f=s(n(636)),h=function(t){function e(t){var n=arguments.length<=1||void 0===arguments[1]?{}:arguments[1],r=arguments.length<=2||void 0===arguments[2]?t.ownerDocument.defaultView:arguments[2];return function(){a(this,e),i(Object.getPrototypeOf(e.prototype),"constructor",this).call(this,t,n,r),this.enabled=n.enabled,this.enabled||this.adaptedElement.addClass("ssplayer-toc-hidden"),this.onTocElementClicked=this.onTocElementClicked.bind(this),this.options=(0,u.default)(this.options,{tocTitle:"Document Thumbnails",viewA11yText:"View thumbnails",hideA11yText:"Hide thumbnails",viewedStatusText:"Viewed slide",unseenStatusText:"Unseen slide",viewingStatusMap:null,classes:{toc:"ssplayer-toc",tocTitle:"ssplayer-toc-title",tocThumbnails:"ssplayer-toc-thumbnail-container",activeThumbnail:"ssplayer-toc-thumbnail-active",viewedThumbnail:"ssplayer-toc-thumbnail-viewed",viewingStatus:"ssplayer-toc-thumbnail-marker",tocThumbnailContainerMinimized:"ssplayer-toc-minimized",toggleButtonHidden:"ssplayer-toc-view-toggle-button-hidden",toggleButtonA11yText:"ssplayer-toc-view-toggle-button-text-ally",toggleButton:"ssplayer-toc-view-toggle-button"}}),(0,f.default)(this.options.aspectRatio,"TOC Component expects an aspectRatio in options"),this.title=this.options.tocTitle,this.toggleButtonA11yText=this.options.hideA11yText,this.viewingStatusMap=this.options.viewingStatusMap,this.aspectRatio=this.options.aspectRatio,this.requestedSlideIndices={}}.apply(this,arguments)}return r(e,t),o(e,[{key:"beforeInit",value:function(){if(this.enabled){var t=l.default.htmlEncode(this.options.classes.toggleButton),n=l.default.htmlEncode(this.options.classes.tocThumbnails);this.$toggleButton=this.adaptedElement.find("."+t),this.$tocThumbnailContainer=this.adaptedElement.find("."+n)[0],i(Object.getPrototypeOf(e.prototype),"beforeInit",this).call(this),this._initThumbnails(),this.addEvents([this.$toggleButton,"click",this.toggleTocVisibility]),this.changePosition(this.position,!0),this.onScroll()}}},{key:"onScroll",value:function(){i(Object.getPrototypeOf(e.prototype),"onScroll",this).call(this),this._loadVisibleThumbnails()}},{key:"_loadVisibleThumbnails",value:function(){for(var t=this.viewPositions[1]-this.viewPositions[0]+14,e=0;e<t+1;e+=1){var n=e+this.viewPositions[0]-7;n>=0&&n<this.numPages&&this._loadThumbnail(n)}}},{key:"_loadThumbnail",value:function(t){var e=l.default.htmlEncode(this.options.classes.lazyImage),n=this._getSlideElement(t),i=this.adapter.find(n,"."+e),r=this.adapter.getData(i,"src");r&&!i.attr("src")?(i.attr("src",l.default.sanitizeUrl(r)),i.attr("alt","")):this.requestedSlideIndices[t]=!0}},{key:"onTocElementClicked",value:function(t){this.emit("onTocPositionChange",t)}},{key:"toggleTocVisibility",value:function(){var t=l.default.htmlEncode(this.options.classes.tocThumbnailContainerMinimized);this.adaptedElement.hasClass(t)?(this.adaptedElement.removeClass(t),this.title=this.options.tocTitle,this.toggleButtonA11yText=this.options.hideA11yText):(this.adaptedElement.addClass(t),this.title=this.options.viewA11yText,this.toggleButtonA11yText=this.options.viewA11yText),this.emit("onTocToggled")}},{key:"applyImageSlideConfig",value:function(t,e){if(this.enabled){var n=l.default.htmlEncode(this.options.classes.lazyImage),i=this._getSlideElement(t),r=this.adapter.find(i,"."+n),o=l.default.sanitizeUrl(e.src);r.attr("data-src",o),this.requestedSlideIndices[t]&&(this._loadThumbnail(t),delete this.requestedSlideIndices[t])}}},{key:"changePosition",value:function(t,e){if(this.enabled){var n=Math.max(0,Math.min(t||0,this.numPages-1));(e||n!==this.position)&&(this._updateTocPosition(n),this.position=n)}}},{key:"refocusToggleButton",value:function(){this.$toggleButton.focus()}},{key:"setViewedStatus",value:function(t){if(this.viewingStatusMap){this.viewingStatusMap[t]=!0;var e=l.default.htmlEncode(this.options.classes.viewedThumbnail),n=this.adapter.children(this._getSlideElement(t));n.addClass(e),l.default.setElementContent(n.children()[0].firstChild,this.options.viewedStatusText)}}},{key:"_getSlideElement",value:function(t){return this.adapter.find(this.$track,"["+this.options.attrs.index+'="'+t+'"]')}},{key:"_initThumbnails",value:function(){var t=this;this.adapter.children(this.$track).each(function(e,n){var i=document.createElement("a");if(i.setAttribute("href","#data-ssplayer-slide-index-"+e),t.position===e){var r=l.default.htmlEncode(t.options.classes.activeThumbnail);i.classList.add(r)}if(t.viewingStatusMap&&t.viewingStatusMap[e]){var o=l.default.htmlEncode(t.options.classes.viewedThumbnail);i.classList.add(o)}var a=document.createElement("div"),s=document.createElement("span");s.classList.add("a11y-text"),l.default.setElementContent(s,t.options.unseenStatusText);var u=document.createElement("span"),c=l.default.htmlEncode(t.options.classes.viewingStatus);u.setAttribute("class",c),u.setAttribute("aria-hidden","true"),a.appendChild(s),a.appendChild(u);var f=l.default.htmlEncode(t.options.classes.lazyImage),h=(0,d.default)({lazyImageClass:f});h.style.width=l.default.htmlEncode(t.thumbnailWidth+"px"),h.style.height=l.default.htmlEncode(t.thumbnailHeight+"px"),a.appendChild(h),i.appendChild(a);var p=document.createElement("p");p.innerHTML=l.default.setElementContent(p,e+1),i.appendChild(p),i.addEventListener("click",function(n){n.preventDefault(),t.onTocElementClicked(e)}),n.appendChild(i)})}},{key:"onResize",value:function(){i(Object.getPrototypeOf(e.prototype),"onResize",this).call(this),this._setDimensions(),this.onScroll()}},{key:"_setDimensions",value:function(){var t=this.adapter.findAll(this.$track,"."+this.options.classes.lazyImage);this.adapter.setWidth(t,this.thumbnailWidth),this.adapter.setHeight(t,this.thumbnailHeight)}},{key:"_updateTocPosition",value:function(t){var e=l.default.htmlEncode(this.options.classes.activeThumbnail),n=this._getSlideElement(this.position),i=this.adapter.children(n,"a."+this.options.classes.activeThumbnail);this.adapter.removeClass(i,e);var r=this._getSlideElement(t),o=this.adapter.children(r,"a");this.adapter.addClass(o,e),r.length&&r[0].scrollIntoView({block:"nearest"})}},{key:"scrollingElement",get:function(){return this.$tocThumbnailContainer}},{key:"tocTitle",get:function(){return this.adaptedElement.find("."+this.options.classes.tocTitle)}},{key:"title",set:function(t){this.tocTitle.text(t)}},{key:"toggleButtonA11yText",get:function(){return this.adaptedElement.find("."+this.options.classes.toggleButtonA11yText)},set:function(t){this.toggleButtonA11yText.text(t)}},{key:"isLargeScreen",get:function(){return this.window.innerWidth>=1100}},{key:"thumbnailWidth",get:function(){return this.isLargeScreen?175:150}},{key:"thumbnailHeight",get:function(){return Math.round(this.thumbnailWidth/this.aspectRatio)}}]),e}(c.default);e.default=h,t.exports=e.default},function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e){for(var n=arguments.length,i=Array(n>2?n-2:0),r=2;r<n;r++)i[r-2]=arguments[r];return e&&t.create.apply(t,[e].concat(i))},t.exports=e.default},function(t,e,n){"use strict";var i=n(201).default,r=n(211).default,o=n(240).default,a=n(245).default,s=n(196).default;Object.defineProperty(e,"__esModule",{value:!0});var u=s(n(400)),l=s(n(380)),c=s(n(392)),d=s(n(294)),f=s(n(604)),h=s(n(605)),p=function(t){function e(t){var n=arguments.length<=1||void 0===arguments[1]?{}:arguments[1],r=arguments.length<=2||void 0===arguments[2]?{}:arguments[2];a(this,e),i(Object.getPrototypeOf(e.prototype),"constructor",this).call(this),(0,u.default)(this,t),this.manifestOptions=n,this.textOverlayOptions=r,this.imageManifestContainer=new h.default(window.devicePixelRatio),this.toc&&(this.tocManifestContainer=new h.default(window.devicePixelRatio)),this.manifestOptions.primaryManifestUrl?f.default.fetch(this.manifestOptions.primaryManifestUrl,{onPrimary:this.onLoadPrimaryManifest.bind(this),onImageResolution:this.onLoadImageManifest.bind(this)}):this.skipEventBinding=!0}return r(e,t),o(e,[{key:"beforeInit",value:function(){if(!this.skipEventBinding){var t=(0,c.default)(this.onResize,200);this.addEvents([this.scroll,"resize",t]),this.addEvents([this.fullscreenTarget,"changeFullscreen",t])}}},{key:"onResize",value:function(){var t=this.scroll,e=t.slideWidth,n=t.slideHeight;this.imageManifestContainer.updateOptimalManifest(e,n);var i=this.imageManifestContainer.getOptimalImageManifest();i&&this._applyImageManifest(i)}},{key:"onLoadPrimaryManifest",value:function(t){var e=this;t.perResolutions.forEach(function(t){var n=t.width,i=t.height;e.imageManifestContainer.registerImageManifest(n,i),e.toc&&e.tocManifestContainer.registerImageManifest(n,i)}),this.imageManifestContainer.updateOptimalManifest(this.scroll.slideWidth,this.scroll.slideHeight),this.toc&&this.tocManifestContainer.updateOptimalManifest(this.toc.thumbnailWidth,this.toc.thumbnailHeight),(0,l.default)(this.textOverlayOptions,"setPdfUrl",t.transcribedDocumentUrl)}},{key:"onLoadImageManifest",value:function(t,e){var n=e.width,i=e.height;this.imageManifestContainer.populateImageManifest(t,n,i),this.imageManifestContainer.isOptimalDimension(n,i)&&this._applyImageManifest(t),this.toc&&this.tocManifestContainer.isOptimalDimension(n,i)&&this._applyImageManifestToTOC(t)}},{key:"_applyImageManifest",value:function(t){var e=this;t.pages.forEach(function(t,n){return(0,l.default)(e.scroll,"applyImageSlideConfig",n,{src:t})})}},{key:"_applyImageManifestToTOC",value:function(t){var e=this;t.pages.forEach(function(t,n){return(0,l.default)(e.toc,"applyImageSlideConfig",n,{src:t})})}}]),e}(d.default);e.default=p,t.exports=e.default},function(t,e,n){"use strict";var i=n(201).default,r=n(211).default,o=n(240).default,a=n(245).default,s=n(251).default,u=n(259).default,l=n(196).default;Object.defineProperty(e,"__esModule",{value:!0});var c=l(n(400)),d=l(n(392)),f=l(n(294)),h=function(t){function e(t){a(this,e),i(Object.getPrototypeOf(e.prototype),"constructor",this).call(this),(0,c.default)(this,t)}return r(e,t),o(e,[{key:"beforeInit",value:function(){this.debouncedIdleOnTimeout=(0,d.default)(this.idleOnTimeout,2500);var t=[[this.fullscreenTarget,"changeFullscreen",this.onFullscreen],[this.player,"mouseEnter",this.onUserActivity],[this.player,"mouseMove",this.onUserActivity],[this.player,"mouseLeave",this.onUserActivity],[this.toolbar,"mouseOver",this.onUserActivity],[this.toolbar,"mouseOut",this.onUserActivity],[this.toc,"mouseOver",this.onUserActivity],[this.toc,"mouseOut",this.onUserActivity],[this.keyboard,"tab",this.onUserActivity.bind(this,!0)]].filter(function(t){return s(t,1)[0]});this.addEvents.apply(this,u(t))}},{key:"onFullscreen",value:function(t){this.isFullscreen=t,this.setControlsVisibility(!0)}},{key:"onUserActivity",value:function(t){(void 0===t?this.player.isMouseover:t)&&this.setControlsVisibility(!0),this.debouncedIdleOnTimeout.cancel(),this.isMouseOverToolbar||this.isMouseOverToc||this.debouncedIdleOnTimeout()}},{key:"setControlsVisibility",value:function(t){this.player.idle=!t}},{key:"idleOnTimeout",value:function(){this.setControlsVisibility(!1)}},{key:"isMouseOverToolbar",get:function(){return this.toolbar&&this.toolbar.isMouseOver}},{key:"isMouseOverToc",get:function(){return this.toc&&this.toc.isMouseOver}}]),e}(f.default);e.default=h,t.exports=e.default},function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){var e=Object(t);if(null==t)throw new TypeError("Array.from requires an array-like object - not null or undefined");var n,r=arguments.length>1?arguments[1]:void 0;if(void 0!==r){if(!i(r))throw new TypeError("Array.from: when provided, the second argument must be a function");arguments.length>2&&(n=arguments[2])}var a,s=o(e.length),u=i(this)?Object(new this(s)):new Array(s),l=0;for(;l<s;)a=e[l],u[l]=r?void 0===n?r(a,l):r.call(n,a,l):a,l+=1;return u.length=s,u};var n=Object.prototype.toString,i=function(t){return"function"==typeof t||"[object Function]"===n.call(t)},r=Math.pow(2,53)-1,o=function(t){var e=function(t){var e=Number(t);return isNaN(e)?0:0!==e&&isFinite(e)?(e>0?1:-1)*Math.floor(Math.abs(e)):e}(t);return Math.min(Math.max(e,0),r)};t.exports=e.default},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getElement=s,e.getPlayerSettings=u,e.customPlayerInit=function(t){var e=arguments.length<=1||void 0===arguments[1]?{}:arguments[1];e=(0,o.default)(e,u(t,e.playerEndCardEnabled));var n=t.querySelector(".ssplayer-video-player"),i=(0,a.initVideo)(n,e);i.playerSettings=e;var r=t.querySelector(".ssplayer-back-to-start-button");r&&r.addEventListener("click",function(){var t=i.videojsPlayer;0===t.volume()&&(t.muted(!1),t.volume(1)),t.currentTime(0),t.pause(),t.play()});return i};var i,r=n(74),o=(i=r)&&i.__esModule?i:{default:i},a=n(142);function s(t,e){return t.querySelector(e)}function u(t){var e=!(arguments.length<=1||void 0===arguments[1])&&arguments[1],n={videojsElement:s(t,".video-js"),bigPlayButtonElement:s(t,".ssplayer-big-play-button"),loaderElement:s(t,".ssplayer-loader"),progressElement:s(t,".ssplayer-progress"),bufferElement:s(t,".ssplayer-buffer"),timeDisplayElement:s(t,".ssplayer-time-display"),volumeSwitchElement:s(t,".ssplayer-volume-switch"),volumeSliderElement:s(t,".ssplayer-volume-slider"),volumeSliderVertical:!0,toolbarElement:s(t,".ssplayer-video-toolbar"),playerjs:!0,firstFocusableElementSelector:"button.ssplayer-pause-button",dynamicKeyTrap:!0};return e&&(n.endcardElement=s(t,".ssplayer-endcard"),n.endcardModalElement=s(t,".ssplayer-endcard-modal")),n}}]);