var PageElements;(function(n,t){typeof exports=="object"&&typeof module=="object"?module.exports=t():typeof define=="function"&&define.amd?define([],t):typeof exports=="object"?exports.Hls=t():n.Hls=t()})(typeof self!="undefined"?self:this,function(){return function(n){function t(r){if(i[r])return i[r].exports;var u=i[r]={i:r,l:!1,exports:{}};return n[r].call(u.exports,u,u.exports,t),u.l=!0,u.exports}var i={};return t.m=n,t.c=i,t.d=function(n,i,r){t.o(n,i)||Object.defineProperty(n,i,{configurable:!1,enumerable:!0,get:r})},t.n=function(n){var i=n&&n.__esModule?function(){return n["default"]}:function(){return n};return t.d(i,"a",i),i},t.o=function(n,t){return Object.prototype.hasOwnProperty.call(n,t)},t.p="/dist/",t(t.s=9)}([function(n,t,i){"use strict";function r(){}function h(n,t){return"["+n+"] > "+t}function c(n){var t=self.console[n];return t?function(){for(var u=arguments.length,i=Array(u),r=0;r<u;r++)i[r]=arguments[r];i[0]&&(i[0]=h(n,i[0]));t.apply(self.console,i)}:r}function l(n){for(var i=arguments.length,
r=Array(i>1?i-1:0),t=1;t<i;t++)r[t-1]=arguments[t];r.forEach(function(t){u[t]=n[t]?n[t].bind(n):c(t)})}var e,f,u,o,s;i.d(t,"a",function(){return o});i.d(t,"b",function(){return s});e=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n};f={trace:r,debug:r,log:r,warn:r,info:r,error:r};u=f;o=function(n){if(n===!0||(typeof n=="undefined"?"undefined":e(n))==="object"){l(n,"debug","log","info","warn","error");try{u.log()}catch(t){u=f}}else u=f};s=u},function(n,t){"use strict";t.a={MEDIA_ATTACHING:"hlsMediaAttaching",MEDIA_ATTACHED:"hlsMediaAttached",MEDIA_DETACHING:"hlsMediaDetaching",MEDIA_DETACHED:"hlsMediaDetached",BUFFER_RESET:"hlsBufferReset",BUFFER_CODECS:"hlsBufferCodecs",BUFFER_CREATED:"hlsBufferCreated",BUFFER_APPENDING:"hlsBufferAppending",BUFFER_APPENDED:"hlsBufferAppended",BUFFER_EOS:"hlsBufferEos",BUFFER_FLUSHING:"hlsBufferFlushing",BUFFER_FLUSHED:"hlsBufferFlushed",
MANIFEST_LOADING:"hlsManifestLoading",MANIFEST_LOADED:"hlsManifestLoaded",MANIFEST_PARSED:"hlsManifestParsed",LEVEL_SWITCHING:"hlsLevelSwitching",LEVEL_SWITCHED:"hlsLevelSwitched",LEVEL_LOADING:"hlsLevelLoading",LEVEL_LOADED:"hlsLevelLoaded",LEVEL_UPDATED:"hlsLevelUpdated",LEVEL_PTS_UPDATED:"hlsLevelPtsUpdated",AUDIO_TRACKS_UPDATED:"hlsAudioTracksUpdated",AUDIO_TRACK_SWITCHING:"hlsAudioTrackSwitching",AUDIO_TRACK_SWITCHED:"hlsAudioTrackSwitched",AUDIO_TRACK_LOADING:"hlsAudioTrackLoading",AUDIO_TRACK_LOADED:"hlsAudioTrackLoaded",SUBTITLE_TRACKS_UPDATED:"hlsSubtitleTracksUpdated",SUBTITLE_TRACK_SWITCH:"hlsSubtitleTrackSwitch",SUBTITLE_TRACK_LOADING:"hlsSubtitleTrackLoading",SUBTITLE_TRACK_LOADED:"hlsSubtitleTrackLoaded",SUBTITLE_FRAG_PROCESSED:"hlsSubtitleFragProcessed",INIT_PTS_FOUND:"hlsInitPtsFound",FRAG_LOADING:"hlsFragLoading",FRAG_LOAD_PROGRESS:"hlsFragLoadProgress",FRAG_LOAD_EMERGENCY_ABORTED:"hlsFragLoadEmergencyAborted",FRAG_LOADED:"hlsFragLoaded",FRAG_DECRYPTED:"hlsFragDecrypted",FRAG_PARSING_INIT_SEGMENT:
"hlsFragParsingInitSegment",FRAG_PARSING_USERDATA:"hlsFragParsingUserdata",FRAG_PARSING_METADATA:"hlsFragParsingMetadata",FRAG_PARSING_DATA:"hlsFragParsingData",FRAG_PARSED:"hlsFragParsed",FRAG_BUFFERED:"hlsFragBuffered",FRAG_CHANGED:"hlsFragChanged",FPS_DROP:"hlsFpsDrop",FPS_DROP_LEVEL_CAPPING:"hlsFpsDropLevelCapping",ERROR:"hlsError",DESTROYING:"hlsDestroying",KEY_LOADING:"hlsKeyLoading",KEY_LOADED:"hlsKeyLoaded",STREAM_STATE_TRANSITION:"hlsStreamStateTransition"}},function(n,t,i){"use strict";i.d(t,"b",function(){return r});i.d(t,"a",function(){return u});var r={NETWORK_ERROR:"networkError",MEDIA_ERROR:"mediaError",KEY_SYSTEM_ERROR:"keySystemError",MUX_ERROR:"muxError",OTHER_ERROR:"otherError"},u={KEY_SYSTEM_NO_KEYS:"keySystemNoKeys",KEY_SYSTEM_NO_ACCESS:"keySystemNoAccess",KEY_SYSTEM_NO_SESSION:"keySystemNoSession",KEY_SYSTEM_LICENSE_REQUEST_FAILED:"keySystemLicenseRequestFailed",MANIFEST_LOAD_ERROR:"manifestLoadError",MANIFEST_LOAD_TIMEOUT:"manifestLoadTimeOut",MANIFEST_PARSING_ERROR:"manifestParsingError",
MANIFEST_INCOMPATIBLE_CODECS_ERROR:"manifestIncompatibleCodecsError",LEVEL_LOAD_ERROR:"levelLoadError",LEVEL_LOAD_TIMEOUT:"levelLoadTimeOut",LEVEL_SWITCH_ERROR:"levelSwitchError",AUDIO_TRACK_LOAD_ERROR:"audioTrackLoadError",AUDIO_TRACK_LOAD_TIMEOUT:"audioTrackLoadTimeOut",FRAG_LOAD_ERROR:"fragLoadError",FRAG_LOAD_TIMEOUT:"fragLoadTimeOut",FRAG_DECRYPT_ERROR:"fragDecryptError",FRAG_PARSING_ERROR:"fragParsingError",REMUX_ALLOC_ERROR:"remuxAllocError",KEY_LOAD_ERROR:"keyLoadError",KEY_LOAD_TIMEOUT:"keyLoadTimeOut",BUFFER_ADD_CODEC_ERROR:"bufferAddCodecError",BUFFER_APPEND_ERROR:"bufferAppendError",BUFFER_APPENDING_ERROR:"bufferAppendingError",BUFFER_STALLED_ERROR:"bufferStalledError",BUFFER_FULL_ERROR:"bufferFullError",BUFFER_SEEK_OVER_HOLE:"bufferSeekOverHole",BUFFER_NUDGE_ON_STALL:"bufferNudgeOnStall",INTERNAL_EXCEPTION:"internalException"}},function(n){n.exports=void 0},function(n,t){(function(i){var u=/^((?:[a-zA-Z0-9+\-.]+:)?)(\/\/[^\/\;?#]*)?(.*?)??(;.*?)?(\?.*?)?(#.*?)?$/,f=/^([^\/;?#]*)(.*)$/,e=/(?:\/|^)\.(?=\/)/g,
o=/(?:\/|^)\.\.\/(?!\.\.\/).*?(?=\/)/g,r={buildAbsoluteURL:function(n,t,i){var s,u,e,h,o,c,l;if(i=i||{},n=n.trim(),t=t.trim(),!t){if(!i.alwaysNormalize)return n;if(s=r.parseURL(n),!s)throw new Error("Error trying to parse base URL.");return s.path=r.normalizePath(s.path),r.buildURLFromParts(s)}if(u=r.parseURL(t),!u)throw new Error("Error trying to parse relative URL.");if(u.scheme)return i.alwaysNormalize?(u.path=r.normalizePath(u.path),r.buildURLFromParts(u)):t;if(e=r.parseURL(n),!e)throw new Error("Error trying to parse base URL.");return!e.netLoc&&e.path&&e.path[0]!=="/"&&(h=f.exec(e.path),e.netLoc=h[1],e.path=h[2]),e.netLoc&&!e.path&&(e.path="/"),o={scheme:e.scheme,netLoc:u.netLoc,path:null,params:u.params,query:u.query,fragment:u.fragment},u.netLoc||(o.netLoc=e.netLoc,u.path[0]!=="/"&&(u.path?(c=e.path,l=c.substring(0,c.lastIndexOf("/")+1)+u.path,o.path=r.normalizePath(l)):(o.path=e.path,u.params||(o.params=e.params,u.query||(o.query=e.query))))),o.path===null&&(o.path=i.alwaysNormalize?r.normalizePath(u.
path):u.path),r.buildURLFromParts(o)},parseURL:function(n){var t=u.exec(n);return t?{scheme:t[1]||"",netLoc:t[2]||"",path:t[3]||"",params:t[4]||"",query:t[5]||"",fragment:t[6]||""}:null},normalizePath:function(n){for(n=n.split("").reverse().join("").replace(e,"");n.length!==(n=n.replace(o,"")).length;);return n.split("").reverse().join("")},buildURLFromParts:function(n){return n.scheme+n.netLoc+n.path+n.params+n.query+n.fragment}};n.exports=r})(this)},function(n,t){"use strict";function r(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}var i=function(){function n(){r(this,n)}return n.isHeader=function(n,t){return t+10<=n.length&&n[t]===73&&n[t+1]===68&&n[t+2]===51&&n[t+3]<255&&n[t+4]<255&&n[t+6]<128&&n[t+7]<128&&n[t+8]<128&&n[t+9]<128?!0:!1},n.isFooter=function(n,t){return t+10<=n.length&&n[t]===51&&n[t+1]===68&&n[t+2]===73&&n[t+3]<255&&n[t+4]<255&&n[t+6]<128&&n[t+7]<128&&n[t+8]<128&&n[t+9]<128?!0:!1},n.getID3Data=function(t,i){for(var u=i,r=0,f;n.isHeader(t,i);)r+=10,f=n._readSize(
t,i+6),r+=f,n.isFooter(t,i+10)&&(r+=10),i+=r;return r>0?t.subarray(u,u+r):undefined},n._readSize=function(n,t){var i=0;return i=(n[t]&127)<<21,i|=(n[t+1]&127)<<14,i|=(n[t+2]&127)<<7,i|n[t+3]&127},n.getTimeStamp=function(t){for(var r,u=n.getID3Frames(t),i=0;i<u.length;i++)if(r=u[i],n.isTimeStampFrame(r))return n._readTimeStamp(r);return undefined},n.isTimeStampFrame=function(n){return n&&n.key==="PRIV"&&n.info==="com.apple.streaming.transportStreamTimestamp"},n._getFrameData=function(t){var u=String.fromCharCode(t[0],t[1],t[2],t[3]),i=n._readSize(t,4),r=10;return{type:u,size:i,data:t.subarray(r,r+i)}},n.getID3Frames=function(t){for(var i=0,f=[],e,o,r,u;n.isHeader(t,i);){for(e=n._readSize(t,i+6),i+=10,o=i+e;i+8<o;)r=n._getFrameData(t.subarray(i)),u=n._decodeFrame(r),u&&f.push(u),i+=r.size+10;n.isFooter(t,i)&&(i+=10)}return f},n._decodeFrame=function(t){return t.type==="PRIV"?n._decodePrivFrame(t):t.type[0]==="T"?n._decodeTextFrame(t):t.type[0]==="W"?n._decodeURLFrame(t):undefined},n._readTimeStamp=function(n){if(
n.data.byteLength===8){var t=new Uint8Array(n.data),r=t[3]&1,i=(t[4]<<23)+(t[5]<<15)+(t[6]<<7)+t[7];return i/=45,r&&(i+=47721858.84),Math.round(i)}return undefined},n._decodePrivFrame=function(t){if(t.size<2)return undefined;var i=n._utf8ArrayToStr(t.data,!0),r=new Uint8Array(t.data.subarray(i.length+1));return{key:t.type,info:i,data:r.buffer}},n._decodeTextFrame=function(t){var i,r,u,f;return t.size<2?undefined:t.type==="TXXX"?(i=1,r=n._utf8ArrayToStr(t.data.subarray(i)),i+=r.length+1,u=n._utf8ArrayToStr(t.data.subarray(i)),{key:t.type,info:r,data:u}):(f=n._utf8ArrayToStr(t.data.subarray(1)),{key:t.type,data:f})},n._decodeURLFrame=function(t){var i,r,u,f;return t.type==="WXXX"?t.size<2?undefined:(i=1,r=n._utf8ArrayToStr(t.data.subarray(i)),i+=r.length+1,u=n._utf8ArrayToStr(t.data.subarray(i)),{key:t.type,info:r,data:u}):(f=n._utf8ArrayToStr(t.data),{key:t.type,data:f})},n._utf8ArrayToStr=function(n){for(var e=arguments.length>1&&arguments[1]!==undefined?arguments[1]:!1,o=n.length,t=void 0,u=void 0,f=void 0,i=
"",r=0;r<o;){if(t=n[r++],t===0&&e)return i;if(t!==0&&t!==3)switch(t>>4){case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:i+=String.fromCharCode(t);break;case 12:case 13:u=n[r++];i+=String.fromCharCode((t&31)<<6|u&63);break;case 14:u=n[r++];f=n[r++];i+=String.fromCharCode((t&15)<<12|(u&63)<<6|(f&63)<<0)}}return i},n}(),u=i._utf8ArrayToStr;t.a=i},function(n){function t(){this._events=this._events||{};this._maxListeners=this._maxListeners||undefined}function i(n){return typeof n=="function"}function f(n){return typeof n=="number"}function r(n){return typeof n=="object"&&n!==null}function u(n){return n===void 0}n.exports=t;t.EventEmitter=t;t.prototype._events=undefined;t.prototype._maxListeners=undefined;t.defaultMaxListeners=10;t.prototype.setMaxListeners=function(n){if(!f(n)||n<0||isNaN(n))throw TypeError("n must be a positive number");return this._maxListeners=n,this};t.prototype.emit=function(n){var f,t,c,e,o,s,h;if(this._events||(this._events={}),n==="error"&&(!this._events.error||r(this._events.error)&&
!this._events.error.length))if(f=arguments[1],f instanceof Error)throw f;else{h=new Error('Uncaught, unspecified "error" event. ('+f+")");h.context=f;throw h;}if(t=this._events[n],u(t))return!1;if(i(t))switch(arguments.length){case 1:t.call(this);break;case 2:t.call(this,arguments[1]);break;case 3:t.call(this,arguments[1],arguments[2]);break;default:e=Array.prototype.slice.call(arguments,1);t.apply(this,e)}else if(r(t))for(e=Array.prototype.slice.call(arguments,1),s=t.slice(),c=s.length,o=0;o<c;o++)s[o].apply(this,e);return!0};t.prototype.addListener=function(n,f){var e;if(!i(f))throw TypeError("listener must be a function");return this._events||(this._events={}),this._events.newListener&&this.emit("newListener",n,i(f.listener)?f.listener:f),this._events[n]?r(this._events[n])?this._events[n].push(f):this._events[n]=[this._events[n],f]:this._events[n]=f,r(this._events[n])&&!this._events[n].warned&&(e=u(this._maxListeners)?t.defaultMaxListeners:this._maxListeners,e&&e>0&&this._events[n].length>e&&(this._events[
n].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[n].length),typeof console.trace=="function"&&console.trace())),this};t.prototype.on=t.prototype.addListener;t.prototype.once=function(n,t){function r(){this.removeListener(n,r);u||(u=!0,t.apply(this,arguments))}if(!i(t))throw TypeError("listener must be a function");var u=!1;r.listener=t;this.on(n,r);return this};t.prototype.removeListener=function(n,t){var u,e,o,f;if(!i(t))throw TypeError("listener must be a function");if(!this._events||!this._events[n])return this;if(u=this._events[n],o=u.length,e=-1,u===t||i(u.listener)&&u.listener===t)delete this._events[n],this._events.removeListener&&this.emit("removeListener",n,t);else if(r(u)){for(f=o;f-->0;)if(u[f]===t||u[f].listener&&u[f].listener===t){e=f;break}if(e<0)return this;u.length===1?(u.length=0,delete this._events[n]):u.splice(e,1);this._events.removeListener&&this.emit("removeListener",
n,t)}return this};t.prototype.removeAllListeners=function(n){var r,t;if(!this._events)return this;if(!this._events.removeListener)return arguments.length===0?this._events={}:this._events[n]&&delete this._events[n],this;if(arguments.length===0){for(r in this._events)r!=="removeListener"&&this.removeAllListeners(r);return this.removeAllListeners("removeListener"),this._events={},this}if(t=this._events[n],i(t))this.removeListener(n,t);else if(t)while(t.length)this.removeListener(n,t[t.length-1]);return delete this._events[n],this};t.prototype.listeners=function(n){return this._events&&this._events[n]?i(this._events[n])?[this._events[n]]:this._events[n].slice():[]};t.prototype.listenerCount=function(n){if(this._events){var t=this._events[n];if(i(t))return 1;if(t)return t.length}return 0};t.listenerCount=function(n,t){return n.listenerCount(t)}},function(n,t,i){"use strict";function e(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}var f=i(0),r=i(1),u=Math.pow(2,32)-1,o=function(
){function n(t,i){e(this,n);this.observer=t;this.remuxer=i}return n.prototype.resetTimeStamp=function(n){this.initPTS=n},n.prototype.resetInitSegment=function(t,i,u,f){var e,o;t&&t.byteLength?(e=this.initData=n.parseInitSegment(t),i==null&&(i="mp4a.40.5"),u==null&&(u="avc1.42e01e"),o={},e.audio&&e.video?o.audiovideo={container:"video/mp4",codec:i+","+u,initSegment:f?t:null}:(e.audio&&(o.audio={container:"audio/mp4",codec:i,initSegment:f?t:null}),e.video&&(o.video={container:"video/mp4",codec:u,initSegment:f?t:null})),this.observer.trigger(r.a.FRAG_PARSING_INIT_SEGMENT,{tracks:o})):(i&&(this.audioCodec=i),u&&(this.videoCodec=u))},n.probe=function(t){return n.findBox({data:t,start:0,end:Math.min(t.length,16384)},["moof"]).length>0},n.bin2str=function(n){return String.fromCharCode.apply(null,n)},n.readUint16=function(n,t){n.data&&(t+=n.start,n=n.data);var i=n[t]<<8|n[t+1];return i<0?65536+i:i},n.readUint32=function(n,t){n.data&&(t+=n.start,n=n.data);var i=n[t]<<24|n[t+1]<<16|n[t+2]<<8|n[t+3];return i<0?4294967296+
i:i},n.writeUint32=function(n,t,i){n.data&&(t+=n.start,n=n.data);n[t]=i>>24;n[t+1]=i>>16&255;n[t+2]=i>>8&255;n[t+3]=i&255},n.findBox=function(t,i){var u=[],r=void 0,o=void 0,c=void 0,f=void 0,s=void 0,h=void 0,e=void 0;if(t.data?(h=t.start,f=t.end,t=t.data):(h=0,f=t.byteLength),!i.length)return null;for(r=h;r<f;)o=n.readUint32(t,r),c=n.bin2str(t.subarray(r+4,r+8)),e=o>1?r+o:f,c===i[0]&&(i.length===1?u.push({data:t,start:r+8,end:e}):(s=n.findBox({data:t,start:r+8,end:e},i.slice(1)),s.length&&(u=u.concat(s)))),r=e;return u},n.parseSegmentIndex=function(t){var y=n.findBox(t,["moov"])[0],k=y?y.end:null,r=0,i=n.findBox(t,["sidx"]),s=void 0,f,h,p,w,e,c,l,u,a,o,b,v;if(!i||!i[0])return null;for(s=[],i=i[0],f=i.data[0],r=f===0?8:16,h=n.readUint32(i,r),r+=4,p=0,w=0,r+=f===0?8:16,r+=2,e=i.end+w,c=n.readUint16(i,r),r+=2,l=0;l<c;l++){if(u=r,a=n.readUint32(i,u),u+=4,o=a&2147483647,b=(a&2147483648)>>>31,b===1){console.warn("SIDX has hierarchical references (not supported)");return}v=n.readUint32(i,u);u+=4;s.push({referenceSize:
o,subsegmentDuration:v,info:{duration:v/h,start:e,end:e+o-1}});e+=o;u+=4;r=u}return{earliestPresentationTime:p,timescale:h,version:f,referencesCount:c,references:s,moovEndOffset:k}},n.parseInitSegment=function(t){var i=[],r=n.findBox(t,["moov","trak"]);return r.forEach(function(t){var o=n.findBox(t,["tkhd"])[0],l,u,v,e,r,y;if(o){var h=o.data[o.start],c=h===0?12:20,a=n.readUint32(o,c),s=n.findBox(t,["mdia","mdhd"])[0];s&&(h=s.data[s.start],c=h===0?12:20,l=n.readUint32(s,c),u=n.findBox(t,["mdia","hdlr"])[0],u&&(v=n.bin2str(u.data.subarray(u.start+8,u.start+12)),e={soun:"audio",vide:"video"}[v],e&&(r=n.findBox(t,["mdia","minf","stbl","stsd"]),r.length&&(r=r[0],y=n.bin2str(r.data.subarray(r.start+12,r.start+16)),f.b.log("MP4Demuxer:"+e+":"+y+" found")),i[a]={timescale:l,type:e},i[e]={timescale:l,id:a})))}}),i},n.getStartDTS=function(t,i){var u=void 0,f=void 0,r=void 0;return u=n.findBox(i,["moof","traf"]),f=[].concat.apply([],u.map(function(i){return n.findBox(i,["tfhd"]).map(function(r){var u=void 0,f=void 0,e=void
0;return u=n.readUint32(r,4),f=t[u].timescale||9e4,e=n.findBox(i,["tfdt"]).map(function(t){var r=void 0,i=void 0;return r=t.data[t.start],i=n.readUint32(t,4),r===1&&(i*=Math.pow(2,32),i+=n.readUint32(t,8)),i})[0],e/f})})),r=Math.min.apply(null,f),isFinite(r)?r:0},n.offsetStartDTS=function(t,i,r){n.findBox(i,["moof","traf"]).map(function(i){return n.findBox(i,["tfhd"]).map(function(f){var o=n.readUint32(f,4),e=t[o].timescale||9e4;n.findBox(i,["tfdt"]).map(function(t){var s=t.data[t.start],i=n.readUint32(t,4),f,o;s===0?n.writeUint32(t,4,i-r*e):(i*=Math.pow(2,32),i+=n.readUint32(t,8),i-=r*e,i=Math.max(i,0),f=Math.floor(i/(u+1)),o=Math.floor(i%(u+1)),n.writeUint32(t,4,f),n.writeUint32(t,8,o))})})})},n.prototype.append=function(t,i,u,f){var e=this.initData,s,o,h;e||(this.resetInitSegment(t,this.audioCodec,this.videoCodec,!1),e=this.initData);s=void 0;o=this.initPTS;o===undefined&&(h=n.getStartDTS(e,t),this.initPTS=o=h-i,this.observer.trigger(r.a.INIT_PTS_FOUND,{initPTS:o}));n.offsetStartDTS(e,t,o);s=n.getStartDTS(
e,t);this.remuxer.remux(e.audio,e.video,null,null,s,u,f,t)},n.prototype.destroy=function(){},n}();t.a=o},function(n,t,i){"use strict";function it(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function ft(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function st(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function ht(n){var t=n.byteLength,i=t&&new DataView(n).getUint8(t-1);return i?n.slice(0,t-i):n}function at(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function yt(n,t,i,u){var s=void 0,e=void 0,h=void 0,c=void 0,o=void 0,l=navigator.userAgent.toLowerCase(),v=u,a=[96e3,88200,64e3,48e3,44100,32e3,24e3,22050,16e3,12e3,11025,8e3,7350];if(s=((t[i+2]&192)>>>6)+1,e=(t[i+2]&60)>>>2,e>a.length-1){n.trigger(Event.ERROR,{type:f.b.MEDIA_ERROR,details:f.a.FRAG_PARSING_ERROR,fatal:!0,reason:"invalid ADTS sampling index:"+e});return}return c=(t[i+2]&1)<<2,c|=(t[i+3]&192)
>>>6,r.b.log("manifest codec:"+u+",ADTS data:type:"+s+",sampleingIndex:"+e+"["+a[e]+"Hz],channelConfig:"+c),/firefox/i.test(l)?e>=6?(s=5,o=new Array(4),h=e-3):(s=2,o=new Array(2),h=e):l.indexOf("android")!==-1?(s=2,o=new Array(2),h=e):(s=5,o=new Array(4),u&&(u.indexOf("mp4a.40.29")!==-1||u.indexOf("mp4a.40.5")!==-1)||!u&&e>=6?h=e-3:((u&&u.indexOf("mp4a.40.2")!==-1&&(e>=6&&c===1||/vivaldi/i.test(l))||!u&&c===1)&&(s=2,o=new Array(2)),h=e)),o[0]=s<<3,o[0]|=(e&14)>>1,o[1]|=(e&1)<<7,o[1]|=c<<3,s===5&&(o[1]|=(h&14)>>1,o[2]=(h&1)<<7,o[2]|=8,o[3]=0),{config:o,samplerate:a[e],channelCount:c,codec:"mp4a.40."+s,manifestCodec:v}}function a(n,t){return n[t]===255&&(n[t+1]&246)==240}function b(n,t){return n[t+1]&1?7:9}function k(n,t){return(n[t+3]&3)<<11|n[t+4]<<3|(n[t+5]&224)>>>5}function v(n,t){return t+1<n.length&&a(n,t)?!0:!1}function pt(n,t){var u,r,i;return t+1<n.length&&a(n,t)&&(u=b(n,t),r=u,t+5<n.length&&(r=k(n,t)),i=t+r,i===n.length||i+1<n.length&&a(n,i))?!0:!1}function d(n,t,i,u,f){if(!n.samplerate){var e=yt(t,i,
u,f);n.config=e.config;n.samplerate=e.samplerate;n.channelCount=e.channelCount;n.codec=e.codec;n.manifestCodec=e.manifestCodec;r.b.log("parsed codec:"+n.codec+",rate:"+e.samplerate+",nb channel:"+e.channelCount)}}function g(n){return 9216e4/n}function wt(n,t,i,r,u){var e=void 0,f=void 0,o=void 0,s=n.length;return(e=b(n,t),f=k(n,t),f-=e,f>0&&t+e+f<=s)?(o=i+r*u,{headerLength:e,frameLength:f,stamp:o}):undefined}function nt(n,t,i,r,u){var c=g(n.samplerate),f=wt(t,i,r,u,c);if(f){var s=f.stamp,e=f.headerLength,o=f.frameLength,h={unit:t.subarray(i+e,i+e+o),pts:s,dts:s};return n.samples.push(h),n.len+=o,{sample:h,length:o+e}}return undefined}function bt(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function ni(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function ii(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function fi(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");
}function hi(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function ai(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function yi(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function wi(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function ki(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function nr(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}var u=i(1),f=i(2),rt=function(){function n(t,i){it(this,n);this.subtle=t;this.aesIV=i}return n.prototype.decrypt=function(n,t){return this.subtle.decrypt({name:"AES-CBC",iv:this.aesIV},t,n)},n}(),ut=rt,et=function(){function n(t,i){ft(this,n);this.subtle=t;this.key=i}return n.prototype.expandKey=function(){return this.subtle.importKey("raw",this.key,{name:"AES-CBC"},!1,["encrypt","decrypt"])},n}(),ot=et,ct=function(){function n(){st(this,n);this.
rcon=[0,1,2,4,8,16,32,64,128,27,54];this.subMix=[new Uint32Array(256),new Uint32Array(256),new Uint32Array(256),new Uint32Array(256)];this.invSubMix=[new Uint32Array(256),new Uint32Array(256),new Uint32Array(256),new Uint32Array(256)];this.sBox=new Uint32Array(256);this.invSBox=new Uint32Array(256);this.key=new Uint32Array(0);this.initTable()}return n.prototype.uint8ArrayToUint32Array_=function(n){for(var r=new DataView(n),i=new Uint32Array(4),t=0;t<4;t++)i[t]=r.getUint32(t*4);return i},n.prototype.initTable=function(){for(var l=this.sBox,a=this.invSBox,e=this.subMix,v=e[0],y=e[1],p=e[2],w=e[3],o=this.invSubMix,b=o[0],k=o[1],d=o[2],g=o[3],r=new Uint32Array(256),i=0,f=0,u=0,t,u=0;u<256;u++)r[u]=u<128?u<<1:u<<1^283;for(u=0;u<256;u++){t=f^f<<1^f<<2^f<<3^f<<4;t=t>>>8^t&255^99;l[i]=t;a[t]=i;var s=r[i],h=r[s],c=r[h],n=r[t]*257^t*16843008;v[i]=n<<24|n>>>8;y[i]=n<<16|n>>>16;p[i]=n<<8|n>>>24;w[i]=n;n=c*16843009^h*65537^s*257^i*16843008;b[t]=n<<24|n>>>8;k[t]=n<<16|n>>>16;d[t]=n<<8|n>>>24;g[t]=n;i?(i=s^r[r[r[c^s]]],f^=r[
r[f]]):i=f=1}},n.prototype.expandKey=function(n){for(var e=this.uint8ArrayToUint32Array_(n),l=!0,h=0,r;h<e.length&&l;)l=e[h]===this.key[h],h++;if(!l){if(this.key=e,r=this.keySize=e.length,r!==4&&r!==6&&r!==8)throw new Error("Invalid aes key size="+r);for(var o=this.ksRows=(r+6+1)*4,i=void 0,f=void 0,s=this.keySchedule=new Uint32Array(o),a=this.invKeySchedule=new Uint32Array(o),u=this.sBox,y=this.rcon,c=this.invSubMix,p=c[0],w=c[1],b=c[2],k=c[3],v=void 0,t=void 0,i=0;i<o;i++){if(i<r){v=s[i]=e[i];continue}t=v;i%r==0?(t=t<<8|t>>>24,t=(u[t>>>24]<<24|u[t>>>16&255]<<16|u[t>>>8&255]<<8|u[t&255])^y[i/r|0]<<24):r>6&&i%r==4&&(t=u[t>>>24]<<24|u[t>>>16&255]<<16|u[t>>>8&255]<<8|u[t&255]);s[i]=v=(s[i-r]^t)>>>0}for(f=0;f<o;f++)i=o-f,t=f&3?s[i]:s[i-4],a[f]=f<4||i<=4?t:p[u[t>>>24]]^w[u[t>>>16&255]]^b[u[t>>>8&255]]^k[u[t&255]],a[f]=a[f]>>>0}},n.prototype.networkToHostOrderSwap=function(n){return n<<24|(n&65280)<<8|(n&16711680)>>8|n>>>24},n.prototype.decrypt=function(n,t,i,r){for(var vt=this.keySize+6,e=this.invKeySchedule,u=this.
invSBox,y=this.invSubMix,p=y[0],w=y[1],b=y[2],k=y[3],d=this.uint8ArrayToUint32Array_(i),st=d[0],ct=d[1],lt=d[2],at=d[3],a=new Int32Array(n),v=new Int32Array(a.length),g=void 0,nt=void 0,tt=void 0,it=void 0,o=void 0,s=void 0,h=void 0,c=void 0,rt=void 0,ut=void 0,ft=void 0,et=void 0,f=void 0,ot=void 0,l=this.networkToHostOrderSwap;t<a.length;){for(rt=l(a[t]),ut=l(a[t+1]),ft=l(a[t+2]),et=l(a[t+3]),o=rt^e[0],s=et^e[1],h=ft^e[2],c=ut^e[3],f=4,ot=1;ot<vt;ot++)g=p[o>>>24]^w[s>>16&255]^b[h>>8&255]^k[c&255]^e[f],nt=p[s>>>24]^w[h>>16&255]^b[c>>8&255]^k[o&255]^e[f+1],tt=p[h>>>24]^w[c>>16&255]^b[o>>8&255]^k[s&255]^e[f+2],it=p[c>>>24]^w[o>>16&255]^b[s>>8&255]^k[h&255]^e[f+3],o=g,s=nt,h=tt,c=it,f=f+4;g=u[o>>>24]<<24^u[s>>16&255]<<16^u[h>>8&255]<<8^u[c&255]^e[f];nt=u[s>>>24]<<24^u[h>>16&255]<<16^u[c>>8&255]<<8^u[o&255]^e[f+1];tt=u[h>>>24]<<24^u[c>>16&255]<<16^u[o>>8&255]<<8^u[s&255]^e[f+2];it=u[c>>>24]<<24^u[o>>16&255]<<16^u[s>>8&255]<<8^u[h&255]^e[f+3];f=f+3;v[t]=l(g^st);v[t+1]=l(it^ct);v[t+2]=l(tt^lt);v[t+3]=l(nt^at);st=rt;
ct=ut;lt=ft;at=et;t=t+4}return r?ht(v.buffer):v.buffer},n.prototype.destroy=function(){this.key=undefined;this.keySize=undefined;this.ksRows=undefined;this.sBox=undefined;this.invSBox=undefined;this.subMix=undefined;this.invSubMix=undefined;this.keySchedule=undefined;this.invKeySchedule=undefined;this.rcon=undefined},n}(),lt=ct,r=i(0),vt=function(){function n(t,i){var e=arguments.length>2&&arguments[2]!==undefined?arguments[2]:{},u=e.removePKCS7Padding,f=u===undefined?!0:u,r;if(at(this,n),this.logEnabled=!0,this.observer=t,this.config=i,this.removePKCS7Padding=f,f)try{r=crypto||self.crypto;this.subtle=r.subtle||r.webkitSubtle}catch(o){}this.disableWebCrypto=!this.subtle}return n.prototype.isSync=function(){return this.disableWebCrypto&&this.config.enableSoftwareAES},n.prototype.decrypt=function(n,t,i,u){var o=this,f,e;this.disableWebCrypto&&this.config.enableSoftwareAES?(this.logEnabled&&(r.b.log("JS AES decrypt"),this.logEnabled=!1),f=this.decryptor,f||(this.decryptor=f=new lt),f.expandKey(t),u(f.decrypt(n,0,
i,this.removePKCS7Padding))):(this.logEnabled&&(r.b.log("WebCrypto AES decrypt"),this.logEnabled=!1),e=this.subtle,this.key!==t&&(this.key=t,this.fastAesKey=new ot(e,t)),this.fastAesKey.expandKey().then(function(r){var f=new ut(e,i);f.decrypt(n,r).catch(function(r){o.onWebCryptoError(r,n,t,i,u)}).then(function(n){u(n)})}).catch(function(r){o.onWebCryptoError(r,n,t,i,u)}))},n.prototype.onWebCryptoError=function(n,t,i,u,e){this.config.enableSoftwareAES?(r.b.log("WebCrypto Error, disable WebCrypto API"),this.disableWebCrypto=!0,this.logEnabled=!0,this.decrypt(t,i,u,e)):(r.b.error("decrypting error : "+n.message),this.observer.trigger(Event.ERROR,{type:f.b.MEDIA_ERROR,details:f.a.FRAG_DECRYPT_ERROR,fatal:!0,reason:n.message}))},n.prototype.destroy=function(){var n=this.decryptor;n&&(n.destroy(),this.decryptor=undefined)},n}(),w=vt,e=i(5),kt=function(){function n(t,i,r){bt(this,n);this.observer=t;this.config=r;this.remuxer=i}return n.prototype.resetInitSegment=function(n,t,i,r){this._audioTrack={container:"audio/adts",
type:"audio",id:0,sequenceNumber:0,isAAC:!0,samples:[],len:0,manifestCodec:t,duration:r,inputTimeScale:9e4}},n.prototype.resetTimeStamp=function(){},n.probe=function(n){var i,t,u;if(!n)return!1;for(i=e.a.getID3Data(n,0)||[],t=i.length,u=n.length;t<u;t++)if(pt(n,t))return r.b.log("ADTS sync word found !"),!0;return!1},n.prototype.append=function(n,t,i,u){for(var h=this._audioTrack,o=e.a.getID3Data(n,0)||[],l=e.a.getTimeStamp(o),a=l?90*l:t*9e4,y=0,s=a,p=n.length,f=o.length,w=[{pts:s,dts:s,data:o}],c;f<p-1;)if(v(n,f)&&f+5<p)if(d(h,this.observer,n,f,h.manifestCodec),c=nt(h,n,f,a,y),c)f+=c.length,s=c.sample.pts,y++;else{r.b.log("Unable to parse AAC frame");break}else e.a.isHeader(n,f)?(o=e.a.getID3Data(n,f),w.push({pts:s,dts:s,data:o}),f+=o.length):f++;this.remuxer.remux(h,{samples:[]},{samples:w,inputTimeScale:9e4},{samples:[]},t,i,u)},n.prototype.destroy=function(){},n}(),dt=kt,gt=i(7),h={BitratesMap:[32,64,96,128,160,192,224,256,288,320,352,384,416,448,32,48,56,64,80,96,112,128,160,192,224,256,320,384,32,40,48,
56,64,80,96,112,128,160,192,224,256,320,32,48,56,64,80,96,112,128,144,160,176,192,224,256,8,16,24,32,40,48,56,64,80,96,112,128,144,160],SamplingRateMap:[44100,48e3,32e3,22050,24e3,16e3,11025,12e3,8e3],SamplesCoefficients:[[0,72,144,12],[0,0,0,0],[0,72,144,12],[0,144,144,12]],BytesInSlot:[0,1,1,4],appendFrame:function(n,t,i,r,u){var f;if(i+24>t.length)return undefined;if(f=this.parseHeader(t,i),f&&i+f.frameLength<=t.length){var s=f.samplesPerFrame*9e4/f.sampleRate,e=r+u*s,o={unit:t.subarray(i,i+f.frameLength),pts:e,dts:e};return n.config=[],n.channelCount=f.channelCount,n.samplerate=f.sampleRate,n.samples.push(o),n.len+=f.frameLength,{sample:o,length:f.frameLength}}return undefined},parseHeader:function(n,t){var i=n[t+1]>>3&3,r=n[t+1]>>1&3,u=n[t+2]>>4&15,f=n[t+2]>>2&3,c=n[t+2]>>1&1;if(i!==1&&u!==0&&u!==15&&f!==3){var l=i===3?3-r:r===3?3:4,a=h.BitratesMap[l*14+u-1]*1e3,v=i===3?0:i===2?1:2,e=h.SamplingRateMap[v*3+f],y=n[t+3]>>6==3?1:2,o=h.SamplesCoefficients[i][r],s=h.BytesInSlot[r],p=o*8*s,w=parseInt(o*a/e+c,10)*
s;return{sampleRate:e,channelCount:y,frameLength:w,samplesPerFrame:p}}return undefined},isHeaderPattern:function(n,t){return n[t]===255&&(n[t+1]&224)==224&&(n[t+1]&6)!=0},isHeader:function(n,t){return t+1<n.length&&this.isHeaderPattern(n,t)?!0:!1},probe:function(n,t){var i;if(t+1<n.length&&this.isHeaderPattern(n,t)){var r=this.parseHeader(n,t),u=4;if(r&&r.frameLength&&(u=r.frameLength),i=t+u,i===n.length||i+1<n.length&&this.isHeaderPattern(n,i))return!0}return!1}},c=h,ti=function(){function n(t){ni(this,n);this.data=t;this.bytesAvailable=t.byteLength;this.word=0;this.bitsAvailable=0}return n.prototype.loadWord=function(){var t=this.data,i=this.bytesAvailable,r=t.byteLength-i,u=new Uint8Array(4),n=Math.min(4,i);if(n===0)throw new Error("no bytes available");u.set(t.subarray(r,r+n));this.word=new DataView(u.buffer).getUint32(0);this.bitsAvailable=n*8;this.bytesAvailable-=n},n.prototype.skipBits=function(n){var t=void 0;this.bitsAvailable>n?(this.word<<=n,this.bitsAvailable-=n):(n-=this.bitsAvailable,t=n>>3,n-=t>>
3,this.bytesAvailable-=t,this.loadWord(),this.word<<=n,this.bitsAvailable-=n)},n.prototype.readBits=function(n){var t=Math.min(this.bitsAvailable,n),i=this.word>>>32-t;return n>32&&r.b.error("Cannot read more than 32 bits at a time"),this.bitsAvailable-=t,this.bitsAvailable>0?this.word<<=t:this.bytesAvailable>0&&this.loadWord(),t=n-t,t>0&&this.bitsAvailable?i<<t|this.readBits(t):i},n.prototype.skipLZ=function(){for(var n=void 0,n=0;n<this.bitsAvailable;++n)if((this.word&2147483648>>>n)!=0)return this.word<<=n,this.bitsAvailable-=n,n;return this.loadWord(),n+this.skipLZ()},n.prototype.skipUEG=function(){this.skipBits(1+this.skipLZ())},n.prototype.skipEG=function(){this.skipBits(1+this.skipLZ())},n.prototype.readUEG=function(){var n=this.skipLZ();return this.readBits(n+1)-1},n.prototype.readEG=function(){var n=this.readUEG();return 1&n?1+n>>>1:-1*(n>>>1)},n.prototype.readBoolean=function(){return this.readBits(1)===1},n.prototype.readUByte=function(){return this.readBits(8)},n.prototype.readUShort=function(){return this.
readBits(16)},n.prototype.readUInt=function(){return this.readBits(32)},n.prototype.skipScalingList=function(n){for(var i=8,t=8,r=void 0,u=void 0,r=0;r<n;r++)t!==0&&(u=this.readEG(),t=(i+u+256)%256),i=t===0?i:t},n.prototype.readSPS=function(){var a=0,v=0,y=0,p=0,t=void 0,it=void 0,rt=void 0,w=void 0,b=void 0,k=void 0,s=void 0,d=void 0,u=void 0,r=this.readUByte.bind(this),g=this.readBits.bind(this),i=this.readUEG.bind(this),e=this.readBoolean.bind(this),f=this.skipBits.bind(this),h=this.skipEG.bind(this),o=this.skipUEG.bind(this),nt=this.skipScalingList.bind(this),c,l,n,tt;if(r(),t=r(),it=g(5),f(3),rt=r(),o(),(t===100||t===110||t===122||t===244||t===44||t===83||t===86||t===118||t===128)&&(c=i(),c===3&&f(1),o(),o(),f(1),e()))for(d=c!==3?8:12,u=0;u<d;u++)e()&&(u<6?nt(16):nt(64));if(o(),l=i(),l===0)i();else if(l===1)for(f(1),h(),h(),w=i(),u=0;u<w;u++)h();if(o(),f(1),b=i(),k=i(),s=g(1),s===0&&f(1),f(1),e()&&(a=i(),v=i(),y=i(),p=i()),n=[1,1],e()&&e()){tt=r();switch(tt){case 1:n=[1,1];break;case 2:n=[12,11];break;case
3:n=[10,11];break;case 4:n=[16,11];break;case 5:n=[40,33];break;case 6:n=[24,11];break;case 7:n=[20,11];break;case 8:n=[32,11];break;case 9:n=[80,33];break;case 10:n=[18,11];break;case 11:n=[15,11];break;case 12:n=[64,33];break;case 13:n=[160,99];break;case 14:n=[4,3];break;case 15:n=[3,2];break;case 16:n=[2,1];break;case 255:n=[r()<<8|r(),r()<<8|r()]}}return{width:Math.ceil((b+1)*16-a*2-v*2),height:(2-s)*(k+1)*16-(s?2:4)*(y+p),pixelRatio:n}},n.prototype.readSliceType=function(){return this.readUByte(),this.readUEG(),this.readUEG()},n}(),y=ti,ri=function(){function n(t,i,r,u){ii(this,n);this.decryptdata=r;this.discardEPB=u;this.decrypter=new w(t,i,{removePKCS7Padding:!1})}return n.prototype.decryptBuffer=function(n,t){this.decrypter.decrypt(n,this.decryptdata.key.buffer,this.decryptdata.iv.buffer,t)},n.prototype.decryptAacSample=function(n,t,i,r){var u=n[t].unit,f=u.subarray(16,u.length-u.length%16),e=f.buffer.slice(f.byteOffset,f.byteOffset+f.length),o=this;this.decryptBuffer(e,function(f){f=new Uint8Array(f);
u.set(f,16);r||o.decryptAacSamples(n,t+1,i)})},n.prototype.decryptAacSamples=function(n,t,i){for(;;t++){if(t>=n.length){i();return}if(!(n[t].unit.length<32)){var r=this.decrypter.isSync();if(this.decryptAacSample(n,t,i,r),!r)return}}},n.prototype.getAvcEncryptedData=function(n){for(var u=Math.floor((n.length-48)/160)*16+16,i=new Int8Array(u),r=0,t=32;t<=n.length-16;t+=160,r+=16)i.set(n.subarray(t,t+16),r);return i},n.prototype.getAvcDecryptedUnit=function(n,t){var i,r;for(t=new Uint8Array(t),i=0,r=32;r<=n.length-16;r+=160,i+=16)n.set(t.subarray(i,i+16),r);return n},n.prototype.decryptAvcSample=function(n,t,i,r,u,f){var e=this.discardEPB(u.data),s=this.getAvcEncryptedData(e),o=this;this.decryptBuffer(s.buffer,function(s){u.data=o.getAvcDecryptedUnit(e,s);f||o.decryptAvcSamples(n,t,i+1,r)})},n.prototype.decryptAvcSamples=function(n,t,i,r){for(var f,u,e;;t++,i=0){if(t>=n.length){r();return}for(f=n[t].units;;i++){if(i>=f.length)break;if((u=f[i],!(u.length<=48)&&(u.type===1||u.type===5))&&(e=this.decrypter.isSync(
),this.decryptAvcSample(n,t,i,r,u,e),!e))return}}},n}(),ui=ri,ei={video:0,audio:1,id3:2,text:3},oi=function(){function n(t,i,r,u){fi(this,n);this.observer=t;this.config=r;this.typeSupported=u;this.remuxer=i;this.sampleAes=null}return n.prototype.setDecryptData=function(n){this.sampleAes=n!=null&&n.key!=null&&n.method==="SAMPLE-AES"?new ui(this.observer,this.config,n,this.discardEPB):null},n.probe=function(t){var i=n._syncOffset(t);return i<0?!1:(i&&r.b.warn("MPEG2-TS detected but first sync word found @ offset "+i+", junk ahead ?"),!0)},n._syncOffset=function(n){for(var i=Math.min(1e3,n.length-564),t=0;t<i;){if(n[t]===71&&n[t+188]===71&&n[t+376]===71)return t;t++}return-1},n.createTrack=function(n,t){return{container:n==="video"||n==="audio"?"video/mp2t":undefined,type:n,id:ei[n],pid:-1,inputTimeScale:9e4,sequenceNumber:0,samples:[],len:0,dropped:n==="video"?0:undefined,isAAC:n==="audio"?!0:undefined,duration:n==="audio"?t:undefined}},n.prototype.resetInitSegment=function(t,i,r,u){this.pmtParsed=!1;this._pmtId=
-1;this._avcTrack=n.createTrack("video",u);this._audioTrack=n.createTrack("audio",u);this._id3Track=n.createTrack("id3",u);this._txtTrack=n.createTrack("text",u);this.aacOverFlow=null;this.aacLastPTS=null;this.avcSample=null;this.audioCodec=i;this.videoCodec=r;this._duration=u},n.prototype.resetTimeStamp=function(){},n.prototype.append=function(t,i,e,o){var h=void 0,it=t.length,b=void 0,ft=void 0,et=void 0,c=void 0,s=void 0,rt=!1,d;this.contiguous=e;var ot=this.pmtParsed,p=this._avcTrack,a=this._audioTrack,w=this._id3Track,g=p.pid,nt=a.pid,tt=w.pid,st=this._pmtId,v=p.pesData,l=a.pesData,y=w.pesData,vt=this._parsePAT,yt=this._parsePMT,k=this._parsePES,ht=this._parseAVCPES.bind(this),ct=this._parseAACPES.bind(this),lt=this._parseMPEGPES.bind(this),at=this._parseID3PES.bind(this),ut=n._syncOffset(t);for(it-=(it+ut)%188,h=ut;h<it;h+=188)if(t[h]===71){if(b=!!(t[h+1]&64),ft=((t[h+1]&31)<<8)+t[h+2],et=(t[h+3]&48)>>4,et>1){if(c=h+5+t[h+4],c===h+188)continue}else c=h+4;switch(ft){case g:b&&(v&&(s=k(v))&&s.pts!==undefined&&
ht(s,!1),v={data:[],size:0});v&&(v.data.push(t.subarray(c,h+188)),v.size+=h+188-c);break;case nt:b&&(l&&(s=k(l))&&s.pts!==undefined&&(a.isAAC?ct(s):lt(s)),l={data:[],size:0});l&&(l.data.push(t.subarray(c,h+188)),l.size+=h+188-c);break;case tt:b&&(y&&(s=k(y))&&s.pts!==undefined&&at(s),y={data:[],size:0});y&&(y.data.push(t.subarray(c,h+188)),y.size+=h+188-c);break;case 0:b&&(c+=t[c]+1);st=this._pmtId=vt(t,c);break;case st:b&&(c+=t[c]+1);d=yt(t,c,this.typeSupported.mpeg===!0||this.typeSupported.mp3===!0,this.sampleAes!=null);g=d.avc;g>0&&(p.pid=g);nt=d.audio;nt>0&&(a.pid=nt,a.isAAC=d.isAAC);tt=d.id3;tt>0&&(w.pid=tt);rt&&!ot&&(r.b.log("reparse from beginning"),rt=!1,h=ut-188);ot=this.pmtParsed=!0;break;case 17:case 8191:break;default:rt=!0}}else this.observer.trigger(u.a.ERROR,{type:f.b.MEDIA_ERROR,details:f.a.FRAG_PARSING_ERROR,fatal:!1,reason:"TS packet did not start with 0x47"});v&&(s=k(v))&&s.pts!==undefined?(ht(s,!0),p.pesData=null):p.pesData=v;l&&(s=k(l))&&s.pts!==undefined?(a.isAAC?ct(s):lt(s),a.pesData=null):
(l&&l.size&&r.b.log("last AAC PES packet truncated,might overlap between fragments"),a.pesData=l);y&&(s=k(y))&&s.pts!==undefined?(at(s),w.pesData=null):w.pesData=y;this.sampleAes==null?this.remuxer.remux(a,p,w,this._txtTrack,i,e,o):this.decryptAndRemux(a,p,w,this._txtTrack,i,e,o)},n.prototype.decryptAndRemux=function(n,t,i,r,u,f,e){if(n.samples&&n.isAAC){var o=this;this.sampleAes.decryptAacSamples(n.samples,0,function(){o.decryptAndRemuxAvc(n,t,i,r,u,f,e)})}else this.decryptAndRemuxAvc(n,t,i,r,u,f,e)},n.prototype.decryptAndRemuxAvc=function(n,t,i,r,u,f,e){if(t.samples){var o=this;this.sampleAes.decryptAvcSamples(t.samples,0,0,function(){o.remuxer.remux(n,t,i,r,u,f,e)})}else this.remuxer.remux(n,t,i,r,u,f,e)},n.prototype.destroy=function(){this._initPTS=this._initDTS=undefined;this._duration=0},n.prototype._parsePAT=function(n,t){return(n[t+10]&31)<<8|n[t+11]},n.prototype._parsePMT=function(n,t,i,u){var o=void 0,s=void 0,h=void 0,e=void 0,f={audio:-1,avc:-1,id3:-1,isAAC:!0};for(o=(n[t+1]&15)<<8|n[t+2],s=t+3+o-
4,h=(n[t+10]&15)<<8|n[t+11],t+=12+h;t<s;){e=(n[t+1]&31)<<8|n[t+2];switch(n[t]){case 207:if(!u){r.b.log("unkown stream type:"+n[t]);break}case 15:f.audio===-1&&(f.audio=e);break;case 21:f.id3===-1&&(f.id3=e);break;case 219:if(!u){r.b.log("unkown stream type:"+n[t]);break}case 27:f.avc===-1&&(f.avc=e);break;case 3:case 4:i?f.audio===-1&&(f.audio=e,f.isAAC=!1):r.b.log("MPEG audio found, not supported in this browser for now");break;case 36:r.b.warn("HEVC stream type found, not supported for now");break;default:r.b.log("unkown stream type:"+n[t])}t+=((n[t+3]&15)<<8|n[t+4])+5}return f},n.prototype._parsePES=function(n){var y=0,t=void 0,l=void 0,p=void 0,o=void 0,a=void 0,v=void 0,u=void 0,f=void 0,e=void 0,i=n.data,h,c,w,s;if(!n||n.size===0)return null;while(i[0].length<19&&i.length>1)h=new Uint8Array(i[0].length+i[1].length),h.set(i[0]),h.set(i[1],i[0].length),i[0]=h,i.splice(1,1);if(t=i[0],p=(t[0]<<16)+(t[1]<<8)+t[2],p===1){if(o=(t[4]<<8)+t[5],o&&o>n.size-6)return null;for(l=t[7],l&192&&(u=(t[9]&14)*536870912+(t[
10]&255)*4194304+(t[11]&254)*16384+(t[12]&255)*128+(t[13]&254)/2,u>4294967295&&(u-=8589934592),l&64?(f=(t[14]&14)*536870912+(t[15]&255)*4194304+(t[16]&254)*16384+(t[17]&255)*128+(t[18]&254)/2,f>4294967295&&(f-=8589934592),u-f>54e5&&(r.b.warn(Math.round((u-f)/9e4)+"s delta between PTS and DTS, align them"),u=f)):f=u),a=t[8],e=a+9,n.size-=e,v=new Uint8Array(n.size),c=0,w=i.length;c<w;c++){if(t=i[c],s=t.byteLength,e)if(e>s){e-=s;continue}else t=t.subarray(e),s-=e,e=0;v.set(t,y);y+=s}return o&&(o-=a+3),{data:v,pts:u,dts:f,len:o}}return null},n.prototype.pushAccesUnit=function(n,t){if(n.units.length&&n.frame){var i=t.samples,u=i.length;!this.config.forceKeyFrameOnDiscontinuity||n.key===!0||t.sps&&(u||this.contiguous)?(n.id=u,i.push(n)):t.dropped++}n.debug.length&&r.b.log(n.pts+"/"+n.dts+":"+n.debug)},n.prototype._parseAVCPES=function(n,t){var o=this,u=this._avcTrack,l=this._parseAVCNALu(n.data),s=!1,r=void 0,i=this.avcSample,e=void 0,a=!1,f=void 0,c=this.pushAccesUnit.bind(this),h=function(n,t,i,r){return{key:n,pts:
t,dts:i,units:[],debug:r}};n.data=null;i&&l.length&&!u.audFound&&(c(i,u),i=this.avcSample=h(!1,n.pts,n.dts,""));l.forEach(function(t){var d,v,it,rt,ut,ft,k,ot,nt,p,st;switch(t.type){case 1:e=!0;i||(i=o.avcSample=h(!0,n.pts,n.dts,""));s&&(i.debug+="NDR ");i.frame=!0;d=t.data;a&&d.length>4&&(v=new y(d).readSliceType(),(v===2||v===4||v===7||v===9)&&(i.key=!0));break;case 5:e=!0;i||(i=o.avcSample=h(!0,n.pts,n.dts,""));s&&(i.debug+="IDR ");i.key=!0;i.frame=!0;break;case 6:e=!0;s&&i&&(i.debug+="SEI ");r=new y(o.discardEPB(t.data));r.readUByte();for(var g=0,w=0,tt=!1,l=0;!tt&&r.bytesAvailable>1;){g=0;do l=r.readUByte(),g+=l;while(l===255);w=0;do l=r.readUByte(),w+=l;while(l===255);if(g===4&&r.bytesAvailable!==0){if(tt=!0,it=r.readUByte(),it===181&&(rt=r.readUShort(),rt===49&&(ut=r.readUInt(),ut===1195456820&&(ft=r.readUByte(),ft===3)))){var et=r.readUByte(),ht=r.readUByte(),ct=31&et,b=[et,ht];for(f=0;f<ct;f++)b.push(r.readUByte()),b.push(r.readUByte()),b.push(r.readUByte());o._insertSampleInOrder(o._txtTrack.samples,
{type:3,pts:n.pts,bytes:b})}}else if(w<r.bytesAvailable)for(f=0;f<w;f++)r.readUByte()}break;case 7:if(e=!0,a=!0,s&&i&&(i.debug+="SPS "),!u.sps){for(r=new y(t.data),k=r.readSPS(),u.width=k.width,u.height=k.height,u.pixelRatio=k.pixelRatio,u.sps=[t.data],u.duration=o._duration,ot=t.data.subarray(1,4),nt="avc1.",f=0;f<3;f++)p=ot[f].toString(16),p.length<2&&(p="0"+p),nt+=p;u.codec=nt}break;case 8:e=!0;s&&i&&(i.debug+="PPS ");u.pps||(u.pps=[t.data]);break;case 9:e=!1;u.audFound=!0;i&&c(i,u);i=o.avcSample=h(!1,n.pts,n.dts,s?"AUD ":"");break;case 12:e=!1;break;default:e=!1;i&&(i.debug+="unknown NAL "+t.type+" ")}i&&e&&(st=i.units,st.push(t))});t&&i&&(c(i,u),this.avcSample=null)},n.prototype._insertSampleInOrder=function(n,t){var r=n.length,i;if(r>0){if(t.pts>=n[r-1].pts)n.push(t);else for(i=r-1;i>=0;i--)if(t.pts<n[i].pts){n.splice(i,0,t);break}}else n.push(t)},n.prototype._getLastNalUnit=function(){var n=this.avcSample,r=void 0,u,t,i;return n&&n.units.length!==0||(u=this._avcTrack,t=u.samples,n=t[t.length-1]),n&&(i=
n.units,r=i[i.length-1]),r},n.prototype._parseAVCNALu=function(n){var r=0,v=n.byteLength,e=void 0,o=void 0,p=this._avcTrack,t=p.naluState||0,y=t,s=[],h=void 0,w=void 0,u=-1,c=void 0,i,l,f,a;for(t===-1&&(u=0,c=n[0]&31,t=0,r=1);r<v;){if(e=n[r++],!t){t=e?0:1;continue}if(t===1){t=e?0:2;continue}e?e===1?(u>=0?(h={data:n.subarray(u,r-t-1),type:c},s.push(h)):(i=this._getLastNalUnit(),i&&(y&&r<=4-y&&i.state&&(i.data=i.data.subarray(0,i.data.byteLength-y)),o=r-t-1,o>0&&(l=new Uint8Array(i.data.byteLength+o),l.set(i.data,0),l.set(n.subarray(0,o),i.data.byteLength),i.data=l))),r<v?(w=n[r]&31,u=r,c=w,t=0):t=-1):t=0:t=3}return u>=0&&t>=0&&(h={data:n.subarray(u,v),type:c,state:t},s.push(h)),s.length===0&&(f=this._getLastNalUnit(),f&&(a=new Uint8Array(f.data.byteLength+n.byteLength),a.set(f.data,0),a.set(n,f.data.byteLength),f.data=a)),p.naluState=t,s},n.prototype.discardEPB=function(n){for(var e=n.byteLength,i=[],t=1,u=void 0,f=void 0,r;t<e-2;)n[t]===0&&n[t+1]===0&&n[t+2]===3?(i.push(t+2),t+=2):t++;if(i.length===0)return n;
for(u=e-i.length,f=new Uint8Array(u),r=0,t=0;t<u;r++,t++)r===i[0]&&(r++,i.shift()),f[t]=n[r];return f},n.prototype._parseAACPES=function(n){var p=this._audioTrack,i=n.data,c=n.pts,e=this.aacOverFlow,b=this.aacLastPTS,k=void 0,w=void 0,t=void 0,tt=void 0,o=void 0,l,s,h,a,y;for(e&&(l=new Uint8Array(e.byteLength+i.byteLength),l.set(e,0),l.set(i,e.byteLength),i=l),t=0,o=i.length;t<o-1;t++)if(v(i,t))break;if(!t||(s=void 0,h=void 0,t<o-1?(s="AAC PES did not start with ADTS header,offset:"+t,h=!1):(s="no ADTS header found in AAC PES",h=!0),r.b.warn("parsing error:"+s),this.observer.trigger(u.a.ERROR,{type:f.b.MEDIA_ERROR,details:f.a.FRAG_PARSING_ERROR,fatal:h,reason:s}),!h)){for(d(p,this.observer,i,t,this.audioCodec),w=0,k=g(p.samplerate),e&&b&&(a=b+k,Math.abs(a-c)>1&&(r.b.log("AAC: align PTS for overlapping frames by "+Math.round((a-c)/90)),c=a));t<o;)if(v(i,t)&&t+5<o)if(y=nt(p,i,t,c,w),y)t+=y.length,tt=y.sample.pts,w++;else break;else t++;e=t<o?i.subarray(t,o):null;this.aacOverFlow=e;this.aacLastPTS=tt}},n.prototype.
_parseMPEGPES=function(n){for(var i=n.data,f=i.length,u=0,t=0,e=n.pts,r;t<f;)if(c.isHeader(i,t))if(r=c.appendFrame(this._audioTrack,i,t,e,u),r)t+=r.length,u++;else break;else t++},n.prototype._parseID3PES=function(n){this._id3Track.samples.push(n)},n}(),si=oi,ci=function(){function n(t,i,r){hi(this,n);this.observer=t;this.config=r;this.remuxer=i}return n.prototype.resetInitSegment=function(n,t,i,r){this._audioTrack={container:"audio/mpeg",type:"audio",id:-1,sequenceNumber:0,isAAC:!1,samples:[],len:0,manifestCodec:t,duration:r,inputTimeScale:9e4}},n.prototype.resetTimeStamp=function(){},n.probe=function(n){var t=void 0,u=void 0,i=e.a.getID3Data(n,0);if(i&&e.a.getTimeStamp(i)!==undefined)for(t=i.length,u=Math.min(n.length-1,t+100);t<u;t++)if(c.probe(n,t))return r.b.log("MPEG Audio sync word found !"),!0;return!1},n.prototype.append=function(n,t,i,r){for(var f=e.a.getID3Data(n,0),l=e.a.getTimeStamp(f),s=l?90*l:t*9e4,u=f.length,p=n.length,a=0,h=0,v=this._audioTrack,y=[{pts:s,dts:s,data:f}],o;u<p;)if(c.isHeader(n,
u))if(o=c.appendFrame(v,n,u,s,a),o)u+=o.length,h=o.sample.pts,a++;else break;else e.a.isHeader(n,u)?(f=e.a.getID3Data(n,u),y.push({pts:h,dts:h,data:f}),u+=f.length):u++;this.remuxer.remux(v,{samples:[]},{samples:y,inputTimeScale:9e4},{samples:[]},t,i,r)},n.prototype.destroy=function(){},n}(),li=ci,vi=function(){function n(){ai(this,n)}return n.getSilentFrame=function(n,t){switch(n){case"mp4a.40.2":if(t===1)return new Uint8Array([0,200,0,128,35,128]);if(t===2)return new Uint8Array([33,0,73,144,2,25,0,35,128]);if(t===3)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,142]);if(t===4)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,128,44,128,8,2,56]);if(t===5)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,130,48,4,153,0,33,144,2,56]);if(t===6)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,130,48,4,153,0,33,144,2,0,178,0,32,8,224]);break;default:if(t===1)return new Uint8Array([1,64,34,128,163,78,230,128,186,8,0,0,0,28,6,241,193,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,
90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94]);if(t===2)return new Uint8Array([1,64,34,128,163,94,230,128,186,8,0,0,0,0,149,0,6,241,161,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94]);if(t===3)return new Uint8Array([1,64,34,128,163,94,230,128,186,8,0,0,0,0,149,0,6,241,161,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94])}return null},n}(),l=vi,o=Math.pow(2,32)-1,pi=function(){function n(){yi(this,n)}return n.init=function(){var t,i,r,u,f;n.types={avc1:[],avcC:[],btrt:[],dinf:[],dref:[],esds:[],ftyp:[],hdlr:[],mdat:[],mdhd:[],mdia:[],mfhd:[],minf:[],moof:[],moov:[],mp4a:[],".mp3":[],mvex:[],mvhd:[],pasp:[],sdtp:[],stbl:[],stco:[],stsc:[],stsd:[],stsz:[],stts:[],tfdt:[],tfhd:[],traf:[],trak:[],trun:[],trex:[],tkhd:[],vmhd:[],smhd:[]};t=void 0;for(t in n.types)n.types.hasOwnProperty(t)&&(n.types[t]=[t.charCodeAt(0),t.charCodeAt(1),t.charCodeAt(
2),t.charCodeAt(3)]);i=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]);r=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]);n.HDLR_TYPES={video:i,audio:r};u=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,12,117,114,108,32,0,0,0,1]);f=new Uint8Array([0,0,0,0,0,0,0,0]);n.STTS=n.STSC=n.STCO=f;n.STSZ=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0]);n.VMHD=new Uint8Array([0,0,0,1,0,0,0,0,0,0,0,0]);n.SMHD=new Uint8Array([0,0,0,0,0,0,0,0]);n.STSD=new Uint8Array([0,0,0,0,0,0,0,1]);var e=new Uint8Array([105,115,111,109]),o=new Uint8Array([97,118,99,49]),s=new Uint8Array([0,0,0,1]);n.FTYP=n.box(n.types.ftyp,e,s,e,o);n.DINF=n.box(n.types.dinf,n.box(n.types.dref,u))},n.box=function(n){for(var u=Array.prototype.slice.call(arguments,1),t=8,i=u.length,f=i,r=void 0;i--;)t+=u[i].byteLength;for(r=new Uint8Array(t),r[0]=t>>24&255,r[1]=t>>16&255,r[2]=t>>8&255,r[3]=t&255,r.set(n,4),i=0,t=8;i<f;i++)r.set(u[
i],t),t+=u[i].byteLength;return r},n.hdlr=function(t){return n.box(n.types.hdlr,n.HDLR_TYPES[t])},n.mdat=function(t){return n.box(n.types.mdat,t)},n.mdhd=function(t,i){i*=t;var r=Math.floor(i/(o+1)),u=Math.floor(i%(o+1));return n.box(n.types.mdhd,new Uint8Array([1,0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,3,t>>24&255,t>>16&255,t>>8&255,t&255,r>>24,r>>16&255,r>>8&255,r&255,u>>24,u>>16&255,u>>8&255,u&255,85,196,0,0]))},n.mdia=function(t){return n.box(n.types.mdia,n.mdhd(t.timescale,t.duration),n.hdlr(t.type),n.minf(t))},n.mfhd=function(t){return n.box(n.types.mfhd,new Uint8Array([0,0,0,0,t>>24,t>>16&255,t>>8&255,t&255]))},n.minf=function(t){return t.type==="audio"?n.box(n.types.minf,n.box(n.types.smhd,n.SMHD),n.DINF,n.stbl(t)):n.box(n.types.minf,n.box(n.types.vmhd,n.VMHD),n.DINF,n.stbl(t))},n.moof=function(t,i,r){return n.box(n.types.moof,n.mfhd(t),n.traf(r,i))},n.moov=function(t){for(var i=t.length,r=[];i--;)r[i]=n.trak(t[i]);return n.box.apply(null,[n.types.moov,n.mvhd(t[0].timescale,t[0].duration)].concat(r).concat(
n.mvex(t)))},n.mvex=function(t){for(var i=t.length,r=[];i--;)r[i]=n.trex(t[i]);return n.box.apply(null,[n.types.mvex].concat(r))},n.mvhd=function(t,i){i*=t;var r=Math.floor(i/(o+1)),u=Math.floor(i%(o+1)),f=new Uint8Array([1,0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,3,t>>24&255,t>>16&255,t>>8&255,t&255,r>>24,r>>16&255,r>>8&255,r&255,u>>24,u>>16&255,u>>8&255,u&255,0,1,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255]);return n.box(n.types.mvhd,f)},n.sdtp=function(t){for(var u=t.samples||[],f=new Uint8Array(4+u.length),r=void 0,i=void 0,i=0;i<u.length;i++)r=u[i].flags,f[i+4]=r.dependsOn<<4|r.isDependedOn<<2|r.hasRedundancy;return n.box(n.types.sdtp,f)},n.stbl=function(t){return n.box(n.types.stbl,n.stsd(t),n.box(n.types.stts,n.STTS),n.box(n.types.stsc,n.STSC),n.box(n.types.stsz,n.STSZ),n.box(n.types.stco,n.STCO))},n.avc1=function(t){for(var i=[],e=[],r=void 0,u=void 0,f=void 0,r=0;r<t.sps.length;r++)u=t.
sps[r],f=u.byteLength,i.push(f>>>8&255),i.push(f&255),i=i.concat(Array.prototype.slice.call(u));for(r=0;r<t.pps.length;r++)u=t.pps[r],f=u.byteLength,e.push(f>>>8&255),e.push(f&255),e=e.concat(Array.prototype.slice.call(u));var l=n.box(n.types.avcC,new Uint8Array([1,i[3],i[4],i[5],255,224|t.sps.length].concat(i).concat([t.pps.length]).concat(e))),h=t.width,c=t.height,o=t.pixelRatio[0],s=t.pixelRatio[1];return n.box(n.types.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,h>>8&255,h&255,c>>8&255,c&255,0,72,0,0,0,72,0,0,0,0,0,0,0,1,18,100,97,105,108,121,109,111,116,105,111,110,47,104,108,115,46,106,115,0,0,0,0,0,0,0,0,0,0,0,0,0,0,24,17,17]),l,n.box(n.types.btrt,new Uint8Array([0,28,156,128,0,45,198,192,0,45,198,192])),n.box(n.types.pasp,new Uint8Array([o>>24,o>>16&255,o>>8&255,o&255,s>>24,s>>16&255,s>>8&255,s&255])))},n.esds=function(n){var t=n.config.length;return new Uint8Array([0,0,0,0,3,23+t,0,1,0,4,15+t,64,21,0,0,0,0,0,0,0,0,0,0,0,5].concat([t]).concat(n.config).concat([6,1,2]))},n.mp4a=
function(t){var i=t.samplerate;return n.box(n.types.mp4a,new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,t.channelCount,0,16,0,0,0,0,i>>8&255,i&255,0,0]),n.box(n.types.esds,n.esds(t)))},n.mp3=function(t){var i=t.samplerate;return n.box(n.types[".mp3"],new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,t.channelCount,0,16,0,0,0,0,i>>8&255,i&255,0,0]))},n.stsd=function(t){return t.type==="audio"?!t.isAAC&&t.codec==="mp3"?n.box(n.types.stsd,n.STSD,n.mp3(t)):n.box(n.types.stsd,n.STSD,n.mp4a(t)):n.box(n.types.stsd,n.STSD,n.avc1(t))},n.tkhd=function(t){var i=t.id,f=t.duration*t.timescale,e=t.width,s=t.height,r=Math.floor(f/(o+1)),u=Math.floor(f%(o+1));return n.box(n.types.tkhd,new Uint8Array([1,0,0,7,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,3,i>>24&255,i>>16&255,i>>8&255,i&255,0,0,0,0,r>>24,r>>16&255,r>>8&255,r&255,u>>24,u>>16&255,u>>8&255,u&255,0,0,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,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,e>>8&255,e&255,0,0,s>>8&255,s&255,0,0]))},n.traf=function(t,i){var e=n.sdtp(t),
r=t.id,u=Math.floor(i/(o+1)),f=Math.floor(i%(o+1));return n.box(n.types.traf,n.box(n.types.tfhd,new Uint8Array([0,0,0,0,r>>24,r>>16&255,r>>8&255,r&255])),n.box(n.types.tfdt,new Uint8Array([1,0,0,0,u>>24,u>>16&255,u>>8&255,u&255,f>>24,f>>16&255,f>>8&255,f&255])),n.trun(t,e.length+16+20+8+16+8+8),e)},n.trak=function(t){return t.duration=t.duration||4294967295,n.box(n.types.trak,n.tkhd(t),n.mdia(t))},n.trex=function(t){var i=t.id;return n.box(n.types.trex,new Uint8Array([0,0,0,0,i>>24,i>>16&255,i>>8&255,i&255,0,0,0,1,0,0,0,0,0,0,0,0,0,1,0,1]))},n.trun=function(t,i){var l=t.samples||[],u=l.length,a=12+16*u,c=new Uint8Array(a),f=void 0,e=void 0,o=void 0,s=void 0,r=void 0,h=void 0;for(i+=8+a,c.set([0,0,15,1,u>>>24&255,u>>>16&255,u>>>8&255,u&255,i>>>24&255,i>>>16&255,i>>>8&255,i&255],0),f=0;f<u;f++)e=l[f],o=e.duration,s=e.size,r=e.flags,h=e.cts,c.set([o>>>24&255,o>>>16&255,o>>>8&255,o&255,s>>>24&255,s>>>16&255,s>>>8&255,s&255,r.isLeading<<2|r.dependsOn,r.isDependedOn<<6|r.hasRedundancy<<4|r.paddingValue<<1|r.isNonSync,
r.degradPrio&61440,r.degradPrio&15,h>>>24&255,h>>>16&255,h>>>8&255,h&255],12+16*f);return n.box(n.types.trun,c)},n.initSegment=function(t){n.types||n.init();var r=n.moov(t),i=void 0;return i=new Uint8Array(n.FTYP.byteLength+r.byteLength),i.set(n.FTYP),i.set(r,n.FTYP.byteLength),i},n}(),s=pi,tt=1e4,bi=function(){function n(t,i,r,u){wi(this,n);this.observer=t;this.config=i;this.typeSupported=r;var f=navigator.userAgent;this.isSafari=u&&u.indexOf("Apple")>-1&&f&&!f.match("CriOS");this.ISGenerated=!1}return n.prototype.destroy=function(){},n.prototype.resetTimeStamp=function(n){this._initPTS=this._initDTS=n},n.prototype.resetInitSegment=function(){this.ISGenerated=!1},n.prototype.remux=function(n,t,i,f,e,o,s){var v,h,y,p;if(this.ISGenerated||this.generateIS(n,t,e),this.ISGenerated){var w=n.samples.length,c=t.samples.length,l=e,a=e;w&&c&&(v=(n.samples[0].dts-t.samples[0].dts)/t.inputTimeScale,l+=Math.max(0,v),a+=Math.max(0,-v));w?(n.timescale||(r.b.warn("regenerate InitSegment as audio detected"),this.generateIS(n,
t,e)),h=this.remuxAudio(n,l,o,s),c&&(y=void 0,h&&(y=h.endPTS-h.startPTS),t.timescale||(r.b.warn("regenerate InitSegment as video detected"),this.generateIS(n,t,e)),this.remuxVideo(t,a,o,y,s))):c&&(p=this.remuxVideo(t,a,o,0,s),p&&n.codec&&this.remuxEmptyAudio(n,l,o,p))}i.samples.length&&this.remuxID3(i,e);f.samples.length&&this.remuxText(f,e);this.observer.trigger(u.a.FRAG_PARSED)},n.prototype.generateIS=function(n,t,i){var y=this.observer,p=n.samples,a=t.samples,v=this.typeSupported,w="audio/mp4",h={},b={tracks:h},c=this._initPTS===undefined,e=void 0,o=void 0,l;c&&(e=o=Infinity);n.config&&p.length&&(n.timescale=n.samplerate,r.b.log("audio sampling rate : "+n.samplerate),n.isAAC||(v.mpeg?(w="audio/mpeg",n.codec=""):v.mp3&&(n.codec="mp3")),h.audio={container:w,codec:n.codec,initSegment:!n.isAAC&&v.mpeg?new Uint8Array:s.initSegment([n]),metadata:{channelCount:n.channelCount}},c&&(e=o=p[0].pts-n.inputTimeScale*i));t.sps&&t.pps&&a.length&&(l=t.inputTimeScale,t.timescale=l,h.video={container:"video/mp4",codec:t.codec,
initSegment:s.initSegment([t]),metadata:{width:t.width,height:t.height}},c&&(e=Math.min(e,a[0].pts-l*i),o=Math.min(o,a[0].dts-l*i),this.observer.trigger(u.a.INIT_PTS_FOUND,{initPTS:e})));Object.keys(h).length?(y.trigger(u.a.FRAG_PARSING_INIT_SEGMENT,b),this.ISGenerated=!0,c&&(this._initPTS=e,this._initDTS=o)):y.trigger(u.a.ERROR,{type:f.b.MEDIA_ERROR,details:f.a.FRAG_PARSING_ERROR,fatal:!1,reason:"no audio/video samples found"})},n.prototype.remuxVideo=function(n,t,i,e,o){var ut=8,v=n.timescale,c=void 0,g=void 0,ii=void 0,b=void 0,l=void 0,ai=void 0,ri=void 0,ft=void 0,h=n.samples,nt=[],et=h.length,ui=this._PTSNormalize,at=this._initDTS,y=this.nextAvcDts,ot=this.isSafari,st,ht,d,w,vt,yt,tt,ct,it,wt,p,lt,hi,dt,rt,li,ni,ti;if(et!==0){if(ot&&(i|=h.length&&y&&(o&&Math.abs(t-y/v)<.1||Math.abs(h[0].pts-y-at)<v/5)),i||(y=t*v),h.forEach(function(n){n.pts=ui(n.pts-at,y);n.dts=ui(n.dts-at,y)}),h.sort(function(n,t){var i=n.dts-t.dts,r=n.pts-t.pts;return i||r||n.id-t.id}),st=h.reduce(function(n,t){return Math.max(Math.min(
n,t.pts-t.dts),-18e3)},0),st<0)for(r.b.warn("PTS < DTS detected in video samples, shifting DTS by "+Math.round(st/90)+" ms to overcome this issue"),ht=0;ht<h.length;ht++)h[ht].dts+=st;for(d=h[0],l=Math.max(d.dts,0),b=Math.max(d.pts,0),w=Math.round((l-y)/90),i&&w&&(w>1?r.b.log("AVC:"+w+" ms hole between fragments detected,filling it"):w<-1&&r.b.log("AVC:"+-w+" ms overlapping between fragments detected"),l=y,h[0].dts=l,b=Math.max(b-w,y),h[0].pts=b,r.b.log("Video/PTS/DTS adjusted: "+Math.round(b/90)+"/"+Math.round(l/90)+",delta:"+w+" ms")),ai=l,d=h[h.length-1],ft=Math.max(d.dts,0),ri=Math.max(d.pts,0,ft),ot&&(c=Math.round((ft-l)/(h.length-1))),vt=0,yt=0,tt=0;tt<et;tt++){var k=h[tt],fi=k.units,ei=fi.length,pt=0;for(ct=0;ct<ei;ct++)pt+=fi[ct].data.length;yt+=pt;vt+=ei;k.length=pt;k.dts=ot?l+tt*c:Math.max(k.dts,l);k.pts=Math.max(k.pts,k.dts)}it=yt+4*vt+8;try{g=new Uint8Array(it)}catch(wi){this.observer.trigger(u.a.ERROR,{type:f.b.MUX_ERROR,details:f.a.REMUX_ALLOC_ERROR,fatal:!1,bytes:it,reason:"fail allocating video mdat "+
it});return}for(wt=new DataView(g.buffer),wt.setUint32(0,it),g.set(s.types.mdat,4),p=0;p<et;p++){var a=h[p],oi=a.units,si=0,bt=void 0;for(lt=0,hi=oi.length;lt<hi;lt++){var ci=oi[lt],vi=ci.data,kt=ci.data.byteLength;wt.setUint32(ut,kt);ut+=4;g.set(vi,ut);ut+=kt;si+=4+kt}if(ot)bt=Math.max(0,c*Math.round((a.pts-a.dts)/c));else{if(p<et-1)c=h[p+1].dts-a.dts;else if(dt=this.config,rt=a.dts-h[p>0?p-1:p].dts,dt.stretchShortVideoTrack){var yi=dt.maxBufferHole,pi=Math.floor(yi*v),gt=(e?b+e*v:this.nextAudioPts)-a.pts;gt>pi?(c=gt-rt,c<0&&(c=rt),r.b.log("It is approximately "+gt/90+" ms to the next segment; using duration "+c/90+" ms for the last video frame.")):c=rt}else c=rt;bt=Math.round(a.pts-a.dts)}nt.push({size:si,duration:c,cts:bt,flags:{isLeading:0,isDependedOn:0,hasRedundancy:0,degradPrio:0,dependsOn:a.key?2:1,isNonSync:a.key?0:1}})}return this.nextAvcDts=ft+c,li=n.dropped,n.len=0,n.nbNalu=0,n.dropped=0,nt.length&&navigator.userAgent.toLowerCase().indexOf("chrome")>-1&&(ni=nt[0].flags,ni.dependsOn=2,ni.isNonSync=
0),n.samples=nt,ii=s.moof(n.sequenceNumber++,l,n),n.samples=[],ti={data1:ii,data2:g,startPTS:b/v,endPTS:(ri+c)/v,startDTS:l/v,endDTS:this.nextAvcDts/v,type:"video",hasAudio:!1,hasVideo:!0,nb:nt.length,dropped:li},this.observer.trigger(u.a.FRAG_PARSING_DATA,ti),ti}},n.prototype.remuxAudio=function(n,t,i,e){var h=n.inputTimeScale,hi=n.timescale,st=h/hi,ci=n.isAAC?1024:1152,y=ci*st,li=this._PTSNormalize,ni=this._initDTS,ht=!n.isAAC&&this.typeSupported.mpeg,it=void 0,g=void 0,o=void 0,nt=void 0,ti=void 0,vt=void 0,ct=void 0,c=n.samples,rt=[],a=this.nextAudioPts,yt,p,v,w,b,ii,pt,wt,bt,kt,lt,ri,d,ft,et,fi,dt,gt,at,ot;if(i|=c.length&&a&&(e&&Math.abs(t-a/h)<.1||Math.abs(c[0].pts-a-ni)<20*y),c.forEach(function(n){n.pts=n.dts=li(n.pts-ni,t*h)}),c=c.filter(function(n){return n.pts>=0}),c.length!==0){if(i||(a=e?t*h:c[0].pts),n.isAAC)for(yt=this.config.maxAudioFramesDrift,p=0,v=a;p<c.length;)if(w=c[p],ii=w.pts,b=ii-v,pt=Math.abs(1e3*b/h),b<=-yt*y)r.b.warn("Dropping 1 audio frame @ "+(v/h).toFixed(3)+"s due to "+Math.round(
pt)+" ms overlap."),c.splice(p,1),n.len-=w.unit.length;else if(b>=yt*y&&pt<tt&&v){for(wt=Math.round(b/y),r.b.warn("Injecting "+wt+" audio frame @ "+(v/h).toFixed(3)+"s due to "+Math.round(1e3*b/h)+" ms gap."),bt=0;bt<wt;bt++)kt=Math.max(v,0),o=l.getSilentFrame(n.manifestCodec||n.codec,n.channelCount),o||(r.b.log("Unable to get silent frame for given audio codec; duplicating last frame instead."),o=w.unit.subarray()),c.splice(p,0,{unit:o,pts:kt,dts:kt}),n.len+=o.length,v+=y,p++;w.pts=w.dts=v;v+=y;p++}else Math.abs(b)>.1*y,w.pts=w.dts=v,v+=y,p++;for(lt=0,ri=c.length;lt<ri;lt++){var ui=c[lt],ut=ui.unit,k=ui.pts;if(ct!==undefined)g.duration=Math.round((k-ct)/st);else{if(d=Math.round(1e3*(k-a)/h),ft=0,i&&n.isAAC&&d){if(d>0&&d<tt)ft=Math.round((k-a)/y),r.b.log(d+" ms hole between AAC samples detected,filling it"),ft>0&&(o=l.getSilentFrame(n.manifestCodec||n.codec,n.channelCount),o||(o=ut.subarray()),n.len+=ft*o.length);else if(d<-12){r.b.log("drop overlapping AAC sample, expected/parsed/delta:"+(a/h).toFixed(3)+"s/"+
(k/h).toFixed(3)+"s/"+-d+"ms");n.len-=ut.byteLength;continue}k=a}if(vt=k,n.len>0){et=ht?n.len:n.len+8;it=ht?0:8;try{nt=new Uint8Array(et)}catch(ai){this.observer.trigger(u.a.ERROR,{type:f.b.MUX_ERROR,details:f.a.REMUX_ALLOC_ERROR,fatal:!1,bytes:et,reason:"fail allocating audio mdat "+et});return}ht||(fi=new DataView(nt.buffer),fi.setUint32(0,et),nt.set(s.types.mdat,4))}else return;for(dt=0;dt<ft;dt++)o=l.getSilentFrame(n.manifestCodec||n.codec,n.channelCount),o||(r.b.log("Unable to get silent frame for given audio codec; duplicating this frame instead."),o=ut.subarray()),nt.set(o,it),it+=o.byteLength,g={size:o.byteLength,cts:0,duration:1024,flags:{isLeading:0,isDependedOn:0,hasRedundancy:0,degradPrio:0,dependsOn:1}},rt.push(g)}nt.set(ut,it);gt=ut.byteLength;it+=gt;g={size:gt,cts:0,duration:0,flags:{isLeading:0,isDependedOn:0,hasRedundancy:0,degradPrio:0,dependsOn:1}};rt.push(g);ct=k}if(at=0,ot=rt.length,ot>=2&&(at=rt[ot-2].duration,g.duration=at),ot){this.nextAudioPts=a=ct+st*at;n.len=0;n.samples=rt;ti=ht?new
Uint8Array:s.moof(n.sequenceNumber++,vt/st,n);n.samples=[];var ei=vt/h,oi=a/h,si={data1:ti,data2:nt,startPTS:ei,endPTS:oi,startDTS:ei,endDTS:oi,type:"audio",hasAudio:!0,hasVideo:!1,nb:ot};return this.observer.trigger(u.a.FRAG_PARSING_DATA,si),si}return null}},n.prototype.remuxEmptyAudio=function(n,t,i,u){var f=n.inputTimeScale,y=n.samplerate?n.samplerate:f,p=f/y,c=this.nextAudioPts,a=(c!==undefined?c:u.startDTS*f)+this._initDTS,w=u.endDTS*f+this._initDTS,v=p*1024,b=Math.ceil((w-a)/v),o=l.getSilentFrame(n.manifestCodec||n.codec,n.channelCount),s,e,h;if(r.b.warn("remux empty Audio"),!o){r.b.trace("Unable to remuxEmptyAudio since we were unable to get a silent frame for given audio codec!");return}for(s=[],e=0;e<b;e++)h=a+e*v,s.push({unit:o,pts:h,dts:h}),n.len+=o.length;n.samples=s;this.remuxAudio(n,t,i)},n.prototype.remuxID3=function(n,t){var f=n.samples.length,i=void 0,e=n.inputTimeScale,o=this._initPTS,s=this._initDTS,r;if(f){for(r=0;r<f;r++)i=n.samples[r],i.pts=(i.pts-o)/e,i.dts=(i.dts-s)/e;this.observer.trigger(
u.a.FRAG_PARSING_METADATA,{samples:n.samples})}n.samples=[];t=t},n.prototype.remuxText=function(n,t){var i;n.samples.sort(function(n,t){return n.pts-t.pts});var f=n.samples.length,r=void 0,e=n.inputTimeScale,o=this._initPTS;if(f){for(i=0;i<f;i++)r=n.samples[i],r.pts=(r.pts-o)/e;this.observer.trigger(u.a.FRAG_PARSING_USERDATA,{samples:n.samples})}n.samples=[];t=t},n.prototype._PTSNormalize=function(n,t){var i=void 0;if(t===undefined)return n;for(i=t<n?-8589934592:8589934592;Math.abs(n-t)>4294967296;)n+=i;return n},n}(),p=bi,di=function(){function n(t){ki(this,n);this.observer=t}return n.prototype.destroy=function(){},n.prototype.resetTimeStamp=function(){},n.prototype.resetInitSegment=function(){},n.prototype.remux=function(n,t,i,r,f,e,o,s){var c=this.observer,h="";n&&(h+="audio");t&&(h+="video");c.trigger(u.a.FRAG_PARSING_DATA,{data1:s,startPTS:f,startDTS:f,type:h,hasAudio:!!n,hasVideo:!!t,nb:1,dropped:0});c.trigger(u.a.FRAG_PARSED)},n}(),gi=di,tr=function(){function n(t,i,r,u){nr(this,n);this.observer=t;this.
typeSupported=i;this.config=r;this.vendor=u}return n.prototype.destroy=function(){var n=this.demuxer;n&&n.destroy()},n.prototype.push=function(n,t,i,r,f,e,o,s,h,c,l,a){var v,p,y;if(n.byteLength>0&&t!=null&&t.key!=null&&t.method==="AES-128"){v=this.decrypter;v==null&&(v=this.decrypter=new w(this.observer,this.config));p=this;y=void 0;try{y=performance.now()}catch(b){y=Date.now()}v.decrypt(n,t.key.buffer,t.iv.buffer,function(n){var v=void 0;try{v=performance.now()}catch(w){v=Date.now()}p.observer.trigger(u.a.FRAG_DECRYPTED,{stats:{tstart:y,tdecrypt:v}});p.pushDecrypted(new Uint8Array(n),t,new Uint8Array(i),r,f,e,o,s,h,c,l,a)})}else this.pushDecrypted(new Uint8Array(n),t,new Uint8Array(i),r,f,e,o,s,h,c,l,a)},n.prototype.pushDecrypted=function(n,t,i,r,e,o,s,h,c,l,a,v){var y=this.demuxer,w,rt,b,d,ut,g;if(!y||(s||h)&&!this.probe(n)){var k=this.observer,nt=this.typeSupported,tt=this.config,it=[{demux:si,remux:p},{demux:gt.a,remux:gi},{demux:dt,remux:p},{demux:li,remux:p}];for(w=0,rt=it.length;w<rt;w++)if(b=it[w],d=b.
demux.probe,d(n)){ut=this.remuxer=new b.remux(k,tt,nt,this.vendor);y=new b.demux(k,ut,tt,nt);this.probe=d;break}if(!y){k.trigger(u.a.ERROR,{type:f.b.MEDIA_ERROR,details:f.a.FRAG_PARSING_ERROR,fatal:!0,reason:"no demux matching with content found"});return}this.demuxer=y}g=this.remuxer;(s||h)&&(y.resetInitSegment(i,r,e,l),g.resetInitSegment());s&&(y.resetTimeStamp(v),g.resetTimeStamp(v));typeof y.setDecryptData=="function"&&y.setDecryptData(t);y.append(n,o,c,a)},n}(),ur=t.a=tr},function(n,t,i){"use strict";function vi(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function ki(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function nr(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function tr(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function fr(n,t){var i=ur[t];return!!i&&i[n.slice(0,4)]===!0}function k(n,t){return MediaSource.isTypeSupported((t||"video")+'/mp4;codecs="'+
n+'"')}function er(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function cr(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function lr(n,t){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:n}function ar(n,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}function yr(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function pr(n,t){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:n}function wr(n,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+
typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}function br(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function kr(n,t){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:n}function dr(n,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}function g(){if(typeof window!="undefined")return window.MediaSource||window.WebKitMediaSource}function eu(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function su(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");
}function hu(n,t){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:n}function cu(n,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}function pt(n,t,i){var u=n[t],f=n[i],e=f.startPTS;isNaN(e)?f.start=i>t?u.start+u.duration:Math.max(u.start-f.duration,0):i>t?(u.duration=e-u.start,u.duration<0&&r.b.warn("negative duration computed for frag "+u.sn+",level "+u.level+", there should be some duration drift between playlist and fragment!")):(f.duration=u.start-e,f.duration<0&&r.b.warn("negative duration computed for frag "+f.sn+",level "+f.level+", there should be some duration drift between playlist and fragment!"))}function wt(n,t,i,r,u,f){var l=i,c,a,s;if(isNaN(t.startPTS)||
(c=Math.abs(t.startPTS-i),t.deltaPTS=isNaN(t.deltaPTS)?c:Math.max(c,t.deltaPTS),l=Math.max(i,t.startPTS),i=Math.min(i,t.startPTS),r=Math.max(r,t.endPTS),u=Math.min(u,t.startDTS),f=Math.max(f,t.endDTS)),a=i-t.start,t.start=t.startPTS=i,t.maxStartPTS=l,t.endPTS=r,t.startDTS=u,t.endDTS=f,t.duration=r-i,s=t.sn,!n||s<n.startSN||s>n.endSN)return 0;var h=void 0,o=void 0,e=void 0;for(h=s-n.startSN,o=n.fragments,o[h]=t,e=h;e>0;e--)pt(o,e,e-1);for(e=h;e<o.length-1;e++)pt(o,e,e+1);return n.PTSKnown=!0,a}function lu(n,t){var l=Math.max(n.startSN,t.startSN)-t.startSN,a=Math.min(n.endSN,t.endSN)-t.startSN,s=t.startSN-n.startSN,h=n.fragments,o=t.fragments,c=0,e=void 0,i,f,u,v;if(t.initSegment&&n.initSegment&&(t.initSegment=n.initSegment),a<l){t.PTSKnown=!1;return}for(i=l;i<=a;i++)f=h[s+i],u=o[i],u&&f&&(c=f.cc-u.cc,isNaN(f.startPTS)||(u.start=u.startPTS=f.startPTS,u.endPTS=f.endPTS,u.duration=f.duration,u.backtracked=f.backtracked,u.dropped=f.dropped,e=u));if(c)for(r.b.log("discontinuity sliding from playlist, take drift into account"),
i=0;i<o.length;i++)o[i].cc+=c;if(e)wt(t,e,e.startPTS,e.endPTS,e.startDTS,e.endDTS);else if(s>=0&&s<h.length)for(v=h[s].start,i=0;i<o.length;i++)o[i].start+=v;t.PTSKnown=n.PTSKnown}function au(n,t){for(var i,u=null,r=0;r<n.length;r+=1)if(i=n[r],i&&i.cc===t){u=i;break}return u}function vu(n,t,i){var r=!1;return t&&t.details&&i&&(i.endCC>i.startCC||n&&n.cc<i.startCC)&&(r=!0),r}function yu(n,t){var u=n.fragments,f=t.fragments,i;if(!f.length||!u.length){r.b.log("No fragments to align");return}if(i=au(u,f[0].cc),!i||i&&!i.startPTS){r.b.log("No frag in previous level to align on");return}return i}function dt(n,t){t.fragments.forEach(function(t){if(t){var i=t.start+n;t.start=t.startPTS=i;t.endPTS=i+t.duration}});t.PTSKnown=!0}function gt(n,t,i){var u;if(vu(n,t,i)&&(u=yu(t.details,i),u&&(r.b.log("Adjusting PTS using last level due to CC increase within current level"),dt(u.start,i))),i.PTSKnown===!1&&t&&t.details&&t.details.fragments&&t.details.fragments.length){var e=t.details.programDateTime,o=i.programDateTime,f=(o-
e)/1e3+t.details.fragments[0].start;isNaN(f)||(r.b.log("adjusting PTS using programDateTime delta, sliding:"+f.toFixed(3)),dt(f,i))}}function pu(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function wu(n,t){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:n}function bu(n,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}function nf(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function tf(n,t){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:n}function rf(n,t){if(typeof t!="function"&&t!==null)
throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}function of(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function sf(n,t){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:n}function hf(n,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}function af(n,t){var i=null;try{i=new window.Event("addtrack")}catch(r){i=document.createEvent("Event");i.initEvent("addtrack",!1,!1)}i.track=n;t.dispatchEvent(i)}function vf(n){if(
n&&n.cues)while(n.cues.length>0)n.removeCue(n.cues[0])}function yf(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function pf(n,t){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:n}function wf(n,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}function bf(){var t=g(),n=window.SourceBuffer||window.WebKitSourceBuffer,i=t&&typeof t.isTypeSupported=="function"&&t.isTypeSupported('video/mp4; codecs="avc1.42E01E,mp4a.40.2"'),r=!n||n.prototype&&typeof n.prototype.appendBuffer=="function"&&typeof n.prototype.remove=="function";return!!i&&!!r}function kf(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");
}function df(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function ie(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function re(n,t){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:n}function ue(n,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}function fe(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function ee(n,t){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:n}function oe(n,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+
typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}function ae(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function ve(n,t){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:n}function ye(n,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}function pe(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function we(n,t){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:
n}function be(n,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}function ke(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function io(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}var rt,l,ht,ct,a,yt,bt,kt,ti,ii,ri,tt,ui,fi,ei,oi,si,hi,it,ci,ro;Object.defineProperty(t,"__esModule",{value:!0});var li=i(4),y=i.n(li),f=i(2),u=i(1),r=i(0),ai=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n};var yi=new Set(["hlsEventGeneric","hlsHandlerDestroying","hlsHandlerDestroyed"]),pi=function(){function n(t){vi(this,n);this.hls=t;this.onEvent=this.onEvent.
bind(this);for(var r=arguments.length,u=Array(r>1?r-1:0),i=1;i<r;i++)u[i-1]=arguments[i];this.handledEvents=u;this.useGenericHandler=!0;this.registerListeners()}return n.prototype.destroy=function(){this.onHandlerDestroying();this.unregisterListeners();this.onHandlerDestroyed()},n.prototype.onHandlerDestroying=function(){},n.prototype.onHandlerDestroyed=function(){},n.prototype.isEventHandler=function(){return ai(this.handledEvents)==="object"&&this.handledEvents.length&&typeof this.onEvent=="function"},n.prototype.registerListeners=function(){this.isEventHandler()&&this.handledEvents.forEach(function(n){if(yi.has(n))throw new Error("Forbidden event-name: "+n);this.hls.on(n,this.onEvent)},this)},n.prototype.unregisterListeners=function(){this.isEventHandler()&&this.handledEvents.forEach(function(n){this.hls.off(n,this.onEvent)},this)},n.prototype.onEvent=function(n,t){this.onEventGeneric(n,t)},n.prototype.onEventGeneric=function(n,t){var e=function(n,t){var i="on"+n.replace("hls","");if(typeof this[i]!="function")
throw new Error("Event "+n+" has no generic handler in this "+this.constructor.name+" class (tried "+i+")");return this[i].bind(this,t)};try{e.call(this,n,t).call()}catch(i){r.b.error("An internal error happened while handling event "+n+'. Error message: "'+i.message+'". Here is a stacktrace:',i);this.hls.trigger(u.a.ERROR,{type:f.b.OTHER_ERROR,details:f.a.INTERNAL_EXCEPTION,fatal:!1,event:n,err:i})}},n}(),s=pi,wi=i(7),bi=function(){function n(n,t){for(var i,r=0;r<t.length;r++)i=t[r],i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}return function(t,i,r){return i&&n(t.prototype,i),r&&n(t,r),t}}();var di=function(){function n(){ki(this,n);this.method=null;this.key=null;this.iv=null;this._uri=null}return bi(n,[{key:"uri",get:function(){return!this._uri&&this.reluri&&(this._uri=y.a.buildAbsoluteURL(this.baseuri,this.reluri,{alwaysNormalize:!0})),this._uri}}]),n}(),b=di,gi=function(){function n(n,t){for(var i,r=0;r<t.length;r++)i=t[r],i.enumerable=i.enumerable||
!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}return function(t,i,r){return i&&n(t.prototype,i),r&&n(t,r),t}}();rt=function(){function n(){var t;nr(this,n);this._url=null;this._byteRange=null;this._decryptdata=null;this.tagList=[];this._elementaryStreams=(t={},t[n.ElementaryStreamTypes.AUDIO]=!1,t[n.ElementaryStreamTypes.VIDEO]=!1,t)}return n.prototype.addElementaryStream=function(n){this._elementaryStreams[n]=!0},n.prototype.hasElementaryStream=function(n){return this._elementaryStreams[n]===!0},n.prototype.createInitializationVector=function(n){for(var i=new Uint8Array(16),t=12;t<16;t++)i[t]=n>>8*(15-t)&255;return i},n.prototype.fragmentDecryptdataFromLevelkey=function(n,t){var i=n;return n&&n.method&&n.uri&&!n.iv&&(i=new b,i.method=n.method,i.baseuri=n.baseuri,i.reluri=n.reluri,i.iv=this.createInitializationVector(t)),i},gi(n,[{key:"url",get:function(){return!this._url&&this.relurl&&(this._url=y.a.buildAbsoluteURL(this.baseurl,this.relurl,{alwaysNormalize:!0})),this._url}
,set:function(n){this._url=n}},{key:"programDateTime",get:function(){return!this._programDateTime&&this.rawProgramDateTime&&(this._programDateTime=new Date(Date.parse(this.rawProgramDateTime))),this._programDateTime}},{key:"byteRange",get:function(){var n,t,i;return!this._byteRange&&!this.rawByteRange?[]:this._byteRange?this._byteRange:(n=[],this.rawByteRange&&(t=this.rawByteRange.split("@",2),t.length===1?(i=this.lastByteRangeEndOffset,n[0]=i||0):n[0]=parseInt(t[1]),n[1]=parseInt(t[0])+n[0],this._byteRange=n),n)}},{key:"byteRangeStartOffset",get:function(){return this.byteRange[0]}},{key:"byteRangeEndOffset",get:function(){return this.byteRange[1]}},{key:"decryptdata",get:function(){return this._decryptdata||(this._decryptdata=this.fragmentDecryptdataFromLevelkey(this.levelkey,this.sn)),this._decryptdata}}],[{key:"ElementaryStreamTypes",get:function(){return{AUDIO:"audio",VIDEO:"video"}}}]),n}();l=rt;var ir=/^(\d+)x(\d+)$/,ut=/\s*(.+?)\s*=((?:\".*?\")|.*?)(?:,|$)/g,rr=function(){function n(t){tr(this,n);typeof
t=="string"&&(t=n.parseAttrList(t));for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return n.prototype.decimalInteger=function(n){var t=parseInt(this[n],10);return t>Number.MAX_SAFE_INTEGER?Infinity:t},n.prototype.hexadecimalInteger=function(n){var t,r,i;if(this[n]){for(t=(this[n]||"0x").slice(2),t=(t.length&1?"0":"")+t,r=new Uint8Array(t.length/2),i=0;i<t.length/2;i++)r[i]=parseInt(t.slice(i*2,i*2+2),16);return r}return null},n.prototype.hexadecimalIntegerAsNumber=function(n){var t=parseInt(this[n],16);return t>Number.MAX_SAFE_INTEGER?Infinity:t},n.prototype.decimalFloatingPoint=function(n){return parseFloat(this[n])},n.prototype.enumeratedString=function(n){return this[n]},n.prototype.decimalResolution=function(n){var t=ir.exec(this[n]);return t===null?undefined:{width:parseInt(t[1],10),height:parseInt(t[2],10)}},n.parseAttrList=function(n){var i=void 0,u={},t,r;for(ut.lastIndex=0;(i=ut.exec(n))!==null;)t=i[2],r='"',t.indexOf(r)===0&&t.lastIndexOf(r)===t.length-1&&(t=t.slice(1,-1)),u[i[1]]=t;return u},n}
(),v=rr,ur={audio:{a3ds:!0,"ac-3":!0,"ac-4":!0,alac:!0,alaw:!0,dra1:!0,"dts+":!0,"dts-":!0,dtsc:!0,dtse:!0,dtsh:!0,"ec-3":!0,enca:!0,g719:!0,g726:!0,m4ae:!0,mha1:!0,mha2:!0,mhm1:!0,mhm2:!0,mlpa:!0,mp4a:!0,"raw ":!0,Opus:!0,samr:!0,sawb:!0,sawp:!0,sevc:!0,sqcp:!0,ssmv:!0,twos:!0,ulaw:!0},video:{avc1:!0,avc2:!0,avc3:!0,avc4:!0,avcp:!0,drac:!0,dvav:!0,dvhe:!0,encv:!0,hev1:!0,hvc1:!0,mjp2:!0,mp4v:!0,mvc1:!0,mvc2:!0,mvc3:!0,mvc4:!0,resv:!0,rv60:!0,s263:!0,svc1:!0,svc2:!0,"vc-1":!0,vp08:!0,vp09:!0}};var ft=/#EXT-X-STREAM-INF:([^\n\r]*)[\r\n]+([^\r\n]+)/g,et=/#EXT-X-MEDIA:(.*)/g,ot=new RegExp([/#EXTINF:\s*(\d*(?:\.\d+)?)(?:,(.*)\s+)?/.source,/|(?!#)(\S+)/.source,/|#EXT-X-BYTERANGE:*(.+)/.source,/|#EXT-X-PROGRAM-DATE-TIME:(.+)/.source,/|#.*/.source].join(""),"g"),or=/(?:(?:#(EXTM3U))|(?:#EXT-X-(PLAYLIST-TYPE):(.+))|(?:#EXT-X-(MEDIA-SEQUENCE): *(\d+))|(?:#EXT-X-(TARGETDURATION): *(\d+))|(?:#EXT-X-(KEY):(.+))|(?:#EXT-X-(START):(.+))|(?:#EXT-X-(ENDLIST))|(?:#EXT-X-(DISCONTINUITY-SEQ)UENCE:(\d+))|(?:#EXT-X-(DIS)CONTINUITY))|(?:#EXT-X-(VERSION):(\d+))|(?:#EXT-X-(MAP):(.+))|(?:(#)(.*):(.*))|(?:(#)(.*))(?:.*)\r?\n?/,
sr=function(){function n(){er(this,n)}return n.findGroup=function(n,t){var r,i,u;if(!n)return null;for(r=null,i=0;i<n.length;i++)u=n[i],u.id===t&&(r=u);return r},n.convertAVC1ToAVCOTI=function(n){var t=void 0,i=n.split(".");return i.length>2?(t=i.shift()+".",t+=parseInt(i.shift()).toString(16),t+=("000"+parseInt(i.shift()).toString(16)).substr(-4)):t=n,t},n.resolve=function(n,t){return y.a.buildAbsoluteURL(t,n,{alwaysNormalize:!0})},n.parseMasterPlaylist=function(t,i){function s(n,t){["video","audio"].forEach(function(i){var r=n.filter(function(n){return fr(n,i)}),u;r.length&&(u=r.filter(function(n){return n.lastIndexOf("avc1",0)===0||n.lastIndexOf("mp4a",0)===0}),t[i+"Codec"]=u.length>0?u[0]:r[0],n=n.filter(function(n){return r.indexOf(n)===-1}))});t.unknownCodecs=n}var o=[],e=void 0,r,u,f;for(ft.lastIndex=0;(e=ft.exec(t))!=null;)r={},u=r.attrs=new v(e[1]),r.url=n.resolve(e[2],i),f=u.decimalResolution("RESOLUTION"),f&&(r.width=f.width,r.height=f.height),r.bitrate=u.decimalInteger("AVERAGE-BANDWIDTH")||u.decimalInteger(
"BANDWIDTH"),r.name=u.NAME,s([].concat((u.CODECS||"").split(/[ ,]+/)),r),r.videoCodec&&r.videoCodec.indexOf("avc1")!==-1&&(r.videoCodec=n.convertAVC1ToAVCOTI(r.videoCodec)),o.push(r);return o},n.parseMasterPlaylistMedia=function(t,i,r){var e=arguments.length>3&&arguments[3]!==undefined?arguments[3]:[],s=void 0,h=[],c=0,u,f,o;for(et.lastIndex=0;(s=et.exec(t))!==null;)u={},f=new v(s[1]),f.TYPE===r&&(u.groupId=f["GROUP-ID"],u.name=f.NAME,u.type=r,u.default=f.DEFAULT==="YES",u.autoselect=f.AUTOSELECT==="YES",u.forced=f.FORCED==="YES",f.URI&&(u.url=n.resolve(f.URI,i)),u.lang=f.LANGUAGE,u.name||(u.name=u.lang),e.length&&(o=n.findGroup(e,u.groupId),u.audioCodec=o?o.codec:e[0].codec),u.id=c++,h.push(u));return h},n.parseLevelPlaylist=function(n,t,i,u){var d=0,y=0,e={type:null,version:null,url:t,fragments:[],live:!0,startSN:0},h=new b,w=0,c=null,f=new l,o=void 0,a=void 0,p,k,ut,g,s,nt,rt;for(ot.lastIndex=0;(o=ot.exec(n))!==null;)if(p=o[1],p)f.duration=parseFloat(p),k=(" "+o[2]).slice(1),f.title=k||null,f.tagList.push(
k?["INF",p,k]:["INF",p]);else if(o[3])isNaN(f.duration)||(ut=d++,f.type=u,f.start=y,f.levelkey=h,f.sn=ut,f.level=i,f.cc=w,f.baseurl=t,f.relurl=(" "+o[3]).slice(1),e.programDateTime&&(f.pdt=c?f.rawProgramDateTime?Date.parse(f.rawProgramDateTime):c.pdt+c.duration*1e3:Date.parse(e.programDateTime),f.endPdt=f.pdt+f.duration*1e3),e.fragments.push(f),c=f,y+=f.duration,f=new l);else if(o[4])f.rawByteRange=(" "+o[4]).slice(1),c&&(g=c.byteRangeEndOffset,g&&(f.lastByteRangeEndOffset=g));else if(o[5])f.rawProgramDateTime=(" "+o[5]).slice(1),f.tagList.push(["PROGRAM-DATE-TIME",f.rawProgramDateTime]),e.programDateTime===undefined&&(e.programDateTime=new Date(new Date(Date.parse(o[5]))-1e3*y));else{for(o=o[0].match(or),a=1;a<o.length;a++)if(o[a]!==undefined)break;s=(" "+o[a+1]).slice(1);nt=(" "+o[a+2]).slice(1);switch(o[a]){case"#":f.tagList.push(nt?[s,nt]:[s]);break;case"PLAYLIST-TYPE":e.type=s.toUpperCase();break;case"MEDIA-SEQUENCE":d=e.startSN=parseInt(s);break;case"TARGETDURATION":e.targetduration=parseFloat(s);break;
case"VERSION":e.version=parseInt(s);break;case"EXTM3U":break;case"ENDLIST":e.live=!1;break;case"DIS":w++;f.tagList.push(["DIS"]);break;case"DISCONTINUITY-SEQ":w=parseInt(s);break;case"KEY":var st=s,tt=new v(st),it=tt.enumeratedString("METHOD"),ft=tt.URI,ht=tt.hexadecimalInteger("IV");it&&(h=new b,ft&&["AES-128","SAMPLE-AES","SAMPLE-AES-CENC"].indexOf(it)>=0&&(h.method=it,h.baseuri=t,h.reluri=ft,h.key=null,h.iv=ht));break;case"START":var ct=s,lt=new v(ct),et=lt.decimalFloatingPoint("TIME-OFFSET");isNaN(et)||(e.startTimeOffset=et);break;case"MAP":rt=new v(s);f.relurl=rt.URI;f.rawByteRange=rt.BYTERANGE;f.baseurl=t;f.level=i;f.type=u;f.sn="initSegment";e.initSegment=f;f=new l;break;default:r.b.warn("line parsed but not handled: "+o)}}return f=c,f&&!f.relurl&&(e.fragments.pop(),y-=f.duration),e.totalduration=y,e.averagetargetduration=y/e.fragments.length,e.endSN=d-1,e.startCC=e.fragments[0]?e.fragments[0].cc:0,e.endCC=w,!e.initSegment&&e.fragments.length&&e.fragments.every(function(n){return n.relurl.endsWith(".mp4")}
)&&(r.b.warn("MP4 fragments found but no init segment (probably no MAP, incomplete M3U8), trying to fetch SIDX"),f=new l,f.relurl=e.fragments[0].relurl,f.baseurl=t,f.level=i,f.type=u,f.sn="initSegment",e.initSegment=f,e.needSidxRanges=!0),e},n}(),p=sr,hr=function(){function n(n,t){for(var i,r=0;r<t.length;r++)i=t[r],i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}return function(t,i,r){return i&&n(t.prototype,i),r&&n(t,r),t}}();var o={MANIFEST:"manifest",LEVEL:"level",AUDIO_TRACK:"audioTrack",SUBTITLE_TRACK:"subtitleTrack"},w={MAIN:"main",AUDIO:"audio",SUBTITLE:"subtitle"},vr=function(n){function t(i){cr(this,t);var r=lr(this,n.call(this,i,u.a.MANIFEST_LOADING,u.a.LEVEL_LOADING,u.a.AUDIO_TRACK_LOADING,u.a.SUBTITLE_TRACK_LOADING));return r.loaders={},r}return ar(t,n),t.canHaveQualityLevels=function(n){return n!==o.AUDIO_TRACK&&n!==o.SUBTITLE_TRACK},t.mapContextToLevelType=function(n){var t=n.type;switch(t){case o.AUDIO_TRACK:return w.AUDIO;case o.SUBTITLE_TRACK:
return w.SUBTITLE;default:return w.MAIN}},t.getResponseUrl=function(n,t){var i=n.url;return(i===undefined||i.indexOf("data:")===0)&&(i=t.url),i},t.prototype.createInternalLoader=function(n){var t=this.hls.config,r=t.pLoader,u=t.loader,f=r||u,i=new f(t);return n.loader=i,this.loaders[n.type]=i,i},t.prototype.getInternalLoader=function(n){return this.loaders[n.type]},t.prototype.resetInternalLoader=function(n){this.loaders[n]&&delete this.loaders[n]},t.prototype.destroyInternalLoaders=function(){var n,t;for(n in this.loaders)t=this.loaders[n],t&&t.destroy(),this.resetInternalLoader(n)},t.prototype.destroy=function(){this.destroyInternalLoaders();n.prototype.destroy.call(this)},t.prototype.onManifestLoading=function(n){this.load(n.url,{type:o.MANIFEST})},t.prototype.onLevelLoading=function(n){this.load(n.url,{type:o.LEVEL,level:n.level,id:n.id})},t.prototype.onAudioTrackLoading=function(n){this.load(n.url,{type:o.AUDIO_TRACK,id:n.id})},t.prototype.onSubtitleTrackLoading=function(n){this.load(n.url,{type:o.SUBTITLE_TRACK,
id:n.id})},t.prototype.load=function(n,t){var i=this.hls.config,u=this.getInternalLoader(t),s,l,a;if(u){if(s=u.context,s&&s.url===n)return r.b.trace("playlist request ongoing"),!1;r.b.warn("aborting previous loader for type: "+t.type);u.abort()}var f=void 0,e=void 0,h=void 0,c=void 0;switch(t.type){case o.MANIFEST:f=i.manifestLoadingMaxRetry;e=i.manifestLoadingTimeOut;h=i.manifestLoadingRetryDelay;c=i.manifestLoadingMaxRetryTimeout;break;case o.LEVEL:f=0;e=i.levelLoadingTimeOut;break;default:f=i.levelLoadingMaxRetry;e=i.levelLoadingTimeOut;h=i.levelLoadingRetryDelay;c=i.levelLoadingMaxRetryTimeout;r.b.log("Playlist loader for "+t.type+" "+(t.level||t.id))}return u=this.createInternalLoader(t),t.url=n,t.responseType=t.responseType||"",l=void 0,a=void 0,l={timeout:e,maxRetry:f,retryDelay:h,maxRetryDelay:c},a={onSuccess:this.loadsuccess.bind(this),onError:this.loaderror.bind(this),onTimeout:this.loadtimeout.bind(this)},u.load(t,l,a),!0},t.prototype.loadsuccess=function(n,t,i){var r=arguments.length>3&&arguments[
3]!==undefined?arguments[3]:null,u;if(i.isSidxRequest){this._handleSidxRequest(n,i);this._handlePlaylistLoaded(n,t,i,r);return}if(this.resetInternalLoader(i.type),u=n.data,t.tload=performance.now(),u.indexOf("#EXTM3U")!==0){this._handleManifestParsingError(n,i,"no EXTM3U delimiter",r);return}u.indexOf("#EXTINF:")>0||u.indexOf("#EXT-X-TARGETDURATION:")>0?this._handleTrackOrLevelPlaylist(n,t,i,r):this._handleMasterPlaylist(n,t,i,r)},t.prototype.loaderror=function(n,t){var i=arguments.length>2&&arguments[2]!==undefined?arguments[2]:null;this._handleNetworkError(t,i)},t.prototype.loadtimeout=function(n,t){var i=arguments.length>2&&arguments[2]!==undefined?arguments[2]:null;this._handleNetworkError(t,i,!0)},t.prototype._handleMasterPlaylist=function(n,i,f,e){var a=this.hls,c=n.data,s=t.getResponseUrl(n,f),o=p.parseMasterPlaylist(c,s),l;if(!o.length){this._handleManifestParsingError(n,f,"no level found in manifest",e);return}var v=o.map(function(n){return{id:n.attrs.AUDIO,codec:n.audioCodec}}),h=p.parseMasterPlaylistMedia(
c,s,"AUDIO",v),y=p.parseMasterPlaylistMedia(c,s,"SUBTITLES");h.length&&(l=!1,h.forEach(function(n){n.url||(l=!0)}),l===!1&&o[0].audioCodec&&!o[0].attrs.AUDIO&&(r.b.log("audio codec signaled in quality level, but no embedded audio track signaled, create one"),h.unshift({type:"main",name:"main"})));a.trigger(u.a.MANIFEST_LOADED,{levels:o,audioTracks:h,subtitles:y,url:s,stats:i,networkDetails:e})},t.prototype._handleTrackOrLevelPlaylist=function(n,i,r,f){var y=this.hls,s=r.id,h=r.level,l=r.type,c=t.getResponseUrl(n,r),w=isNaN(h)?isNaN(s)?0:s:h,b=t.mapContextToLevelType(r),e=p.parseLevelPlaylist(n.data,c,w,b),a,v;if(e.tload=i.tload,l===o.MANIFEST&&(a={url:c,details:e},y.trigger(u.a.MANIFEST_LOADED,{levels:[a],audioTracks:[],url:c,stats:i,networkDetails:f})),i.tparsed=performance.now(),e.needSidxRanges){v=e.initSegment.url;this.load(v,{isSidxRequest:!0,type:l,level:h,levelDetails:e,id:s,rangeStart:0,rangeEnd:2048,responseType:"arraybuffer"});return}r.levelDetails=e;this._handlePlaylistLoaded(n,i,r,f)},t.prototype.
_handleSidxRequest=function(n,t){var i=wi.a.parseSegmentIndex(new Uint8Array(n.data));i.references.forEach(function(n,i){var r=n.info,u=t.levelDetails.fragments[i];u.byteRange.length===0&&(u.rawByteRange=String(1+r.end-r.start)+"@"+String(r.start))});t.levelDetails.initSegment.rawByteRange=String(i.moovEndOffset)+"@0"},t.prototype._handleManifestParsingError=function(n,t,i,r){this.hls.trigger(u.a.ERROR,{type:f.b.NETWORK_ERROR,details:f.a.MANIFEST_PARSING_ERROR,fatal:!0,url:n.url,reason:i,networkDetails:r})},t.prototype._handleNetworkError=function(n,t){var s=arguments.length>2&&arguments[2]!==undefined?arguments[2]:!1,r=void 0,i=void 0,e=this.getInternalLoader(n);switch(n.type){case o.MANIFEST:r=s?f.a.MANIFEST_LOAD_TIMEOUT:f.a.MANIFEST_LOAD_ERROR;i=!0;break;case o.LEVEL:r=s?f.a.LEVEL_LOAD_TIMEOUT:f.a.LEVEL_LOAD_ERROR;i=!1;break;case o.AUDIO_TRACK:r=s?f.a.AUDIO_TRACK_LOAD_TIMEOUT:f.a.AUDIO_TRACK_LOAD_ERROR;i=!1;break;default:i=!1}e&&(e.abort(),this.resetInternalLoader(n.type));this.hls.trigger(u.a.ERROR,{type:
f.b.NETWORK_ERROR,details:r,fatal:i,url:e.url,loader:e,context:n,networkDetails:t})},t.prototype._handlePlaylistLoaded=function(n,i,r,f){var c=r.type,l=r.level,s=r.id,e=r.levelDetails,h;if(!e.targetduration){this._handleManifestParsingError(n,r,"invalid target duration",f);return}if(h=t.canHaveQualityLevels(r.type),h)this.hls.trigger(u.a.LEVEL_LOADED,{details:e,level:l||0,id:s||0,stats:i,networkDetails:f});else switch(c){case o.AUDIO_TRACK:this.hls.trigger(u.a.AUDIO_TRACK_LOADED,{details:e,id:s,stats:i,networkDetails:f});break;case o.SUBTITLE_TRACK:this.hls.trigger(u.a.SUBTITLE_TRACK_LOADED,{details:e,id:s,stats:i,networkDetails:f})}},hr(t,null,[{key:"ContextType",get:function(){return o}},{key:"LevelType",get:function(){return w}}]),t}(s),st=vr;ht=function(n){function t(i){yr(this,t);var r=pr(this,n.call(this,i,u.a.FRAG_LOADING));return r.loaders={},r}return wr(t,n),t.prototype.destroy=function(){var i=this.loaders,r,t;for(r in i)t=i[r],t&&t.destroy();this.loaders={};n.prototype.destroy.call(this)},t.prototype.
onFragLoading=function(n){var t=n.frag,e=t.type,h=this.loaders,i=this.hls.config,a=i.fLoader,v=i.loader,u,o,s;t.loaded=0;u=h[e];u&&(r.b.warn("abort previous fragment loader for type: "+e),u.abort());u=h[e]=t.loader=i.fLoader?new a(i):new v(i);var f=void 0,c=void 0,l=void 0;f={url:t.url,frag:t,responseType:"arraybuffer",progressData:!1};o=t.byteRangeStartOffset;s=t.byteRangeEndOffset;isNaN(o)||isNaN(s)||(f.rangeStart=o,f.rangeEnd=s);c={timeout:i.fragLoadingTimeOut,maxRetry:0,retryDelay:0,maxRetryDelay:i.fragLoadingMaxRetryTimeout};l={onSuccess:this.loadsuccess.bind(this),onError:this.loaderror.bind(this),onTimeout:this.loadtimeout.bind(this),onProgress:this.loadprogress.bind(this)};u.load(f,c,l)},t.prototype.loadsuccess=function(n,t,i){var f=arguments.length>3&&arguments[3]!==undefined?arguments[3]:null,e=n.data,r=i.frag;r.loader=undefined;this.loaders[r.type]=undefined;this.hls.trigger(u.a.FRAG_LOADED,{payload:e,frag:r,stats:t,networkDetails:f})},t.prototype.loaderror=function(n,t){var r=arguments.length>2&&arguments[
2]!==undefined?arguments[2]:null,i=t.loader;i&&i.abort();this.loaders[t.type]=undefined;this.hls.trigger(u.a.ERROR,{type:f.b.NETWORK_ERROR,details:f.a.FRAG_LOAD_ERROR,fatal:!1,frag:t.frag,response:n,networkDetails:r})},t.prototype.loadtimeout=function(n,t){var r=arguments.length>2&&arguments[2]!==undefined?arguments[2]:null,i=t.loader;i&&i.abort();this.loaders[t.type]=undefined;this.hls.trigger(u.a.ERROR,{type:f.b.NETWORK_ERROR,details:f.a.FRAG_LOAD_TIMEOUT,fatal:!1,frag:t.frag,networkDetails:r})},t.prototype.loadprogress=function(n,t){var r=arguments.length>3&&arguments[3]!==undefined?arguments[3]:null,i=t.frag;i.loaded=n.loaded;this.hls.trigger(u.a.FRAG_LOAD_PROGRESS,{frag:i,stats:n,networkDetails:r})},t}(s);ct=ht;var gr=function(n){function t(i){br(this,t);var r=kr(this,n.call(this,i,u.a.KEY_LOADING));return r.loaders={},r.decryptkey=null,r.decrypturl=null,r}return dr(t,n),t.prototype.destroy=function(){var t,n;for(t in this.loaders)n=this.loaders[t],n&&n.destroy();this.loaders={};s.prototype.destroy.call(
this)},t.prototype.onKeyLoading=function(n){var i=n.frag,f=i.type,o=this.loaders[f],s=i.decryptdata,e=s.uri,t;if(e!==this.decrypturl||this.decryptkey===null){t=this.hls.config;o&&(r.b.warn("abort previous key loader for type:"+f),o.abort());i.loader=this.loaders[f]=new t.loader(t);this.decrypturl=e;this.decryptkey=null;var h=void 0,c=void 0,l=void 0;h={url:e,frag:i,responseType:"arraybuffer"};c={timeout:t.fragLoadingTimeOut,maxRetry:t.fragLoadingMaxRetry,retryDelay:t.fragLoadingRetryDelay,maxRetryDelay:t.fragLoadingMaxRetryTimeout};l={onSuccess:this.loadsuccess.bind(this),onError:this.loaderror.bind(this),onTimeout:this.loadtimeout.bind(this)};i.loader.load(h,c,l)}else this.decryptkey&&(s.key=this.decryptkey,this.hls.trigger(u.a.KEY_LOADED,{frag:i}))},t.prototype.loadsuccess=function(n,t,i){var r=i.frag;this.decryptkey=r.decryptdata.key=new Uint8Array(n.data);r.loader=undefined;this.loaders[r.type]=undefined;this.hls.trigger(u.a.KEY_LOADED,{frag:r})},t.prototype.loaderror=function(n,t){var i=t.frag,r=i.loader;
r&&r.abort();this.loaders[t.type]=undefined;this.hls.trigger(u.a.ERROR,{type:f.b.NETWORK_ERROR,details:f.a.KEY_LOAD_ERROR,fatal:!1,frag:i,response:n})},t.prototype.loadtimeout=function(n,t){var i=t.frag,r=i.loader;r&&r.abort();this.loaders[t.type]=undefined;this.hls.trigger(u.a.ERROR,{type:f.b.NETWORK_ERROR,details:f.a.KEY_LOAD_TIMEOUT,fatal:!1,frag:i})},t}(s),nu=gr,tu={search:function(n,t){for(var r=0,u=n.length-1,i=null,f=null,e;r<=u;)if(i=(r+u)/2|0,f=n[i],e=t(f),e>0)r=i+1;else if(e<0)u=i-1;else return f;return null}},d=tu,iu={isBuffered:function(n,t){var r,i;try{if(n)for(r=n.buffered,i=0;i<r.length;i++)if(t>=r.start(i)&&t<=r.end(i))return!0}catch(u){}return!1},bufferInfo:function(n,t,i){try{if(n){for(var u=n.buffered,f=[],r=void 0,r=0;r<u.length;r++)f.push({start:u.start(r),end:u.end(r)});return this.bufferedInfo(f,t,i)}}catch(e){}return{len:0,start:t,end:t,nextStart:undefined}},bufferedInfo:function(n,t,i){var u=[],s=void 0,h=void 0,e=void 0,a=void 0,r=void 0,o,c,f,l;for(n.sort(function(n,t){var i=n.start-
t.start;return i?i:t.end-n.end}),r=0;r<n.length;r++)o=u.length,o?(c=u[o-1].end,n[r].start-c<i?n[r].end>c&&(u[o-1].end=n[r].end):u.push(n[r])):u.push(n[r]);for(r=0,s=0,h=e=t;r<u.length;r++)if(f=u[r].start,l=u[r].end,t+i>=f&&t<l)h=f,e=l,s=e-t;else if(t+i<f){a=f;break}return{len:s,start:h,end:e,nextStart:a}}},c=iu,lt=i(8),ru=i(6),at=i.n(ru),uu=i(10),fu=i.n(uu);var nt=g(),ou=function(){function n(t,i){var e,h,o,c,l,s;eu(this,n);this.hls=t;this.id=i;e=this.observer=new at.a;h=t.config;e.trigger=function(n){for(var i=arguments.length,r=Array(i>1?i-1:0),t=1;t<i;t++)r[t-1]=arguments[t];e.emit.apply(e,[n,n].concat(r))};e.off=function(n){for(var i=arguments.length,r=Array(i>1?i-1:0),t=1;t<i;t++)r[t-1]=arguments[t];e.removeListener.apply(e,[n].concat(r))};o=function(n,i){i=i||{};i.frag=this.frag;i.id=this.id;t.trigger(n,i)}.bind(this);e.on(u.a.FRAG_DECRYPTED,o);e.on(u.a.FRAG_PARSING_INIT_SEGMENT,o);e.on(u.a.FRAG_PARSING_DATA,o);e.on(u.a.FRAG_PARSED,o);e.on(u.a.ERROR,o);e.on(u.a.FRAG_PARSING_METADATA,o);e.on(u.a.FRAG_PARSING_USERDATA,
o);e.on(u.a.INIT_PTS_FOUND,o);if(c={mp4:nt.isTypeSupported("video/mp4"),mpeg:nt.isTypeSupported("audio/mpeg"),mp3:nt.isTypeSupported('audio/mp4; codecs="mp3"')},l=navigator.vendor,h.enableWorker&&typeof Worker!="undefined"){r.b.log("demuxing in webworker");s=void 0;try{s=this.w=fu()(11);this.onwmsg=this.onWorkerMessage.bind(this);s.addEventListener("message",this.onwmsg);s.onerror=function(n){t.trigger(u.a.ERROR,{type:f.b.OTHER_ERROR,details:f.a.INTERNAL_EXCEPTION,fatal:!0,event:"demuxerWorker",err:{message:n.message+" ("+n.filename+":"+n.lineno+")"}})};s.postMessage({cmd:"init",typeSupported:c,vendor:l,id:i,config:JSON.stringify(h)})}catch(y){r.b.error("error while initializing DemuxerWorker, fallback on DemuxerInline");s&&URL.revokeObjectURL(s.objectURL);this.demuxer=new lt.a(e,c,h,l);this.w=undefined}}else this.demuxer=new lt.a(e,c,h,l)}return n.prototype.destroy=function(){var n=this.w,t,i;n?(n.removeEventListener("message",this.onwmsg),n.terminate(),this.w=null):(t=this.demuxer,t&&(t.destroy(),this.demuxer=
null));i=this.observer;i&&(i.removeAllListeners(),this.observer=null)},n.prototype.push=function(n,t,i,u,f,e,o,s){var v=this.w,y=isNaN(f.startDTS)?f.start:f.startDTS,p=f.decryptdata,h=this.frag,l=!(h&&f.cc===h.cc),c=!(h&&f.level===h.level),b=h&&f.sn===h.sn+1,w=!c&&b,a;l&&r.b.log(this.id+":discontinuity detected");c&&r.b.log(this.id+":switch detected");this.frag=f;v?v.postMessage({cmd:"demux",data:n,decryptdata:p,initSegment:t,audioCodec:i,videoCodec:u,timeOffset:y,discontinuity:l,trackSwitch:c,contiguous:w,duration:e,accurateTimeOffset:o,defaultInitPTS:s},n instanceof ArrayBuffer?[n]:[]):(a=this.demuxer,a&&a.push(n,p,t,i,u,y,l,c,w,e,o,s))},n.prototype.onWorkerMessage=function(n){var t=n.data,i=this.hls;switch(t.event){case"init":URL.revokeObjectURL(this.w.objectURL);break;case u.a.FRAG_PARSING_DATA:t.data.data1=new Uint8Array(t.data1);t.data2&&(t.data.data2=new Uint8Array(t.data2));default:t.data=t.data||{};t.data.frag=this.frag;t.data.id=this.id;i.trigger(t.event,t.data)}},n}(),vt=ou;a={NOT_LOADED:"NOT_LOADED",
APPENDING:"APPENDING",PARTIAL:"PARTIAL",OK:"OK"};yt=function(n){function t(i){su(this,t);var r=hu(this,n.call(this,i,u.a.BUFFER_APPENDED,u.a.FRAG_BUFFERED,u.a.FRAG_LOADED));return r.bufferPadding=.2,r.fragments=Object.create(null),r.timeRanges=Object.create(null),r.config=i.config,r}return cu(t,n),t.prototype.destroy=function(){this.fragments=null;this.timeRanges=null;this.config=null;s.prototype.destroy.call(this);n.prototype.destroy.call(this)},t.prototype.getBufferedFrag=function(n,t){var i=this.fragments,r=Object.keys(i).filter(function(r){var u=i[r],f;return u.body.type!==t?!1:u.buffered?(f=u.body,f.startPTS<=n&&n<=f.endPTS):!1}),u;return r.length===0?null:(u=r.pop(),i[u].body)},t.prototype.detectEvictedFragments=function(n,t){var i=this,r=void 0,u=void 0;Object.keys(this.fragments).forEach(function(f){var o=i.fragments[f],s,e;if(o.buffered===!0&&(s=o.range[n],s))for(r=s.time,e=0;e<r.length;e++)if(u=r[e],i.isTimeBuffered(u.startPTS,u.endPTS,t)===!1){i.removeFragment(o.body);break}})},t.prototype.detectPartialFragments=
function(n){var i=this,r=this.getFragmentKey(n),t=this.fragments[r];t&&(t.buffered=!0,Object.keys(this.timeRanges).forEach(function(r){if(n.hasElementaryStream(r)===!0){var u=i.timeRanges[r];t.range[r]=i.getBufferedTimes(n.startPTS,n.endPTS,u)}}))},t.prototype.getBufferedTimes=function(n,t,i){for(var f=[],u=void 0,e=void 0,o=!1,r=0;r<i.length;r++)if(u=i.start(r)-this.bufferPadding,e=i.end(r)+this.bufferPadding,n>=u&&t<=e){f.push({startPTS:Math.max(n,i.start(r)),endPTS:Math.min(t,i.end(r))});break}else if(n<e&&t>u)f.push({startPTS:Math.max(n,i.start(r)),endPTS:Math.min(t,i.end(r))}),o=!0;else if(t<=u)break;return{time:f,partial:o}},t.prototype.getFragmentKey=function(n){return n.type+"_"+n.level+"_"+n.sn},t.prototype.getPartialFragment=function(n){var t=this,i=void 0,r=void 0,u=void 0,f=null,e=0;return Object.keys(this.fragments).forEach(function(o){var s=t.fragments[o];t.isPartial(s)&&(r=s.body.startPTS-t.bufferPadding,u=s.body.endPTS+t.bufferPadding,n>=r&&n<=u&&(i=Math.min(n-r,u-n),e<=i&&(f=s.body,e=i)))}),f}
,t.prototype.getState=function(n){var r=this.getFragmentKey(n),t=this.fragments[r],i=a.NOT_LOADED;return t!==undefined&&(i=t.buffered?this.isPartial(t)===!0?a.PARTIAL:a.OK:a.APPENDING),i},t.prototype.isPartial=function(n){return n.buffered===!0&&(n.range.video!==undefined&&n.range.video.partial===!0||n.range.audio!==undefined&&n.range.audio.partial===!0)},t.prototype.isTimeBuffered=function(n,t,i){for(var u=void 0,f=void 0,r=0;r<i.length;r++){if(u=i.start(r)-this.bufferPadding,f=i.end(r)+this.bufferPadding,n>=u&&t<=f)return!0;if(t<=u)return!1}return!1},t.prototype.onFragLoaded=function(n){var t=n.frag,i,r;isNaN(t.sn)||(i=this.getFragmentKey(t),r={body:t,range:Object.create(null),buffered:!1},this.fragments[i]=r)},t.prototype.onBufferAppended=function(n){var t=this;this.timeRanges=n.timeRanges;Object.keys(this.timeRanges).forEach(function(n){var i=t.timeRanges[n];t.detectEvictedFragments(n,i)})},t.prototype.onFragBuffered=function(n){this.detectPartialFragments(n.frag)},t.prototype.hasFragment=function(n){var t=
this.getFragmentKey(n);return this.fragments[t]!==undefined},t.prototype.removeFragment=function(n){var t=this.getFragmentKey(n);delete this.fragments[t]},t.prototype.removeAllFragments=function(){this.fragments=Object.create(null)},t}(s);bt={toString:function(n){for(var i="",r=n.length,t=0;t<r;t++)i+="["+n.start(t).toFixed(3)+","+n.end(t).toFixed(3)+"]";return i}};kt=bt;var ku=function(n){function t(i){var u;pu(this,t);for(var f=arguments.length,e=Array(f>1?f-1:0),r=1;r<f;r++)e[r-1]=arguments[r];return u=wu(this,n.call.apply(n,[this,i].concat(e))),u._tickInterval=null,u._tickCallCount=0,u}return bu(t,n),t.prototype.destroy=function(){this.clearInterval();n.prototype.destroy.call(this)},t.prototype.hasInterval=function(){return this._tickInterval!==null},t.prototype.setInterval=function(n){function t(){return n.apply(this,arguments)}return t.toString=function(){return n.toString()},t}(function(n){return this._tickInterval?!1:(this._tickInterval=setInterval(this.tick.bind(this,!1),n),!0)}),t.prototype.clearInterval=
function(n){function t(){return n.apply(this,arguments)}return t.toString=function(){return n.toString()},t}(function(){return this._tickInterval?(clearInterval(this._tickInterval),this._tickInterval=null,!0):!1}),t.prototype.tick=function(){this._tickCallCount++;this._tickCallCount===1&&(this.doTick(),this._tickCallCount>1&&setTimeout(this.tick.bind(this),0),this._tickCallCount=0)},t.prototype.doTick=function(){throw new Error("TaskLoop is abstract and `doLoop` must be implemented");},t}(s),du=ku,gu=function(){function n(n,t){for(var i,r=0;r<t.length;r++)i=t[r],i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}return function(t,i,r){return i&&n(t.prototype,i),r&&n(t,r),t}}();var e={STOPPED:"STOPPED",IDLE:"IDLE",KEY_LOADING:"KEY_LOADING",FRAG_LOADING:"FRAG_LOADING",FRAG_LOADING_WAITING_RETRY:"FRAG_LOADING_WAITING_RETRY",WAITING_LEVEL:"WAITING_LEVEL",PARSING:"PARSING",PARSED:"PARSED",BUFFER_FLUSHING:"BUFFER_FLUSHING",ENDED:"ENDED",ERROR:"ERROR"},uf=function(
n){function t(i,r){nf(this,t);var f=tf(this,n.call(this,i,u.a.MEDIA_ATTACHED,u.a.MEDIA_DETACHING,u.a.MANIFEST_LOADING,u.a.MANIFEST_PARSED,u.a.LEVEL_LOADED,u.a.KEY_LOADED,u.a.FRAG_LOADED,u.a.FRAG_LOAD_EMERGENCY_ABORTED,u.a.FRAG_PARSING_INIT_SEGMENT,u.a.FRAG_PARSING_DATA,u.a.FRAG_PARSED,u.a.ERROR,u.a.AUDIO_TRACK_SWITCHING,u.a.AUDIO_TRACK_SWITCHED,u.a.BUFFER_CREATED,u.a.BUFFER_APPENDED,u.a.BUFFER_FLUSHED));return f.fragmentTracker=r,f.config=i.config,f.audioCodecSwap=!1,f._state=e.STOPPED,f}return rf(t,n),t.prototype.onHandlerDestroying=function(){this.stopLoad()},t.prototype.onHandlerDestroyed=function(){this.state=e.STOPPED;this.fragmentTracker=null},t.prototype.startLoad=function(n){var t,u,i;this.levels?(t=this.lastCurrentTime,u=this.hls,this.stopLoad(),this.setInterval(100),this.level=-1,this.fragLoadError=0,this.startFragRequested||(i=u.startLevel,i===-1&&(i=0,this.bitrateTest=!0),this.level=u.nextLoadLevel=i,this.loadedmetadata=!1),t>0&&n===-1&&(r.b.log("override startPosition with lastCurrentTime @"+t.toFixed(
3)),n=t),this.state=e.IDLE,this.nextLoadPosition=this.startPosition=this.lastCurrentTime=n,this.tick()):(this.forceStartLoad=!0,this.state=e.STOPPED)},t.prototype.stopLoad=function(){var n=this.fragCurrent;n&&(n.loader&&n.loader.abort(),this.fragmentTracker.removeFragment(n),this.fragCurrent=null);this.fragPrevious=null;this.demuxer&&(this.demuxer.destroy(),this.demuxer=null);this.clearInterval();this.state=e.STOPPED;this.forceStartLoad=!1},t.prototype.doTick=function(){var n,i,t;switch(this.state){case e.BUFFER_FLUSHING:this.fragLoadError=0;break;case e.IDLE:this._doTickIdle();break;case e.WAITING_LEVEL:n=this.levels[this.level];n&&n.details&&(this.state=e.IDLE);break;case e.FRAG_LOADING_WAITING_RETRY:i=performance.now();t=this.retryDate;(!t||i>=t||this.media&&this.media.seeking)&&(r.b.log("mediaController: retryDate reached, switch back to IDLE state"),this.state=e.IDLE)}this._checkBuffer();this._checkFragmentChanged()},t.prototype._doTickIdle=function(){var v=this.hls,t=v.config,s=this.media,h,l,a,y,i,o,p,
f,n,b,w;if(this.levelLastLoaded!==undefined&&(s||!this.startFragRequested&&t.startFragPrefetch)&&(h=void 0,h=this.loadedmetadata?s.currentTime:this.nextLoadPosition,l=v.nextLoadLevel,a=this.levels[l],a)&&(y=a.bitrate,i=void 0,i=y?Math.max(8*t.maxBufferSize/y,t.maxBufferLength):t.maxBufferLength,i=Math.min(i,t.maxMaxBufferLength),o=c.bufferInfo(this.mediaBuffer?this.mediaBuffer:s,h,t.maxBufferHole),p=o.len,!(p>=i))){if(r.b.trace("buffer length of "+p.toFixed(3)+" is below max of "+i.toFixed(3)+". checking for more payload ..."),this.level=v.nextLoadLevel=l,f=a.details,f===undefined||f.live===!0&&this.levelLastLoaded!==l){this.state=e.WAITING_LEVEL;return}if(n=this.fragPrevious,!f.live&&n&&!n.backtracked&&n.sn===f.endSN&&!o.nextStart&&(b=Math.min(s.duration,n.start+n.duration),b-Math.max(o.end,n.start)<=Math.max(.2,n.duration))){w={};this.altAudio&&(w.type="video");this.hls.trigger(u.a.BUFFER_EOS,w);this.state=e.ENDED;return}this._fetchPayloadOrEos(h,o,f)}},t.prototype._fetchPayloadOrEos=function(n,t,i){var c=this.
fragPrevious,a=this.level,f=i.fragments,e=f.length,h;if(e!==0){var s=f[0].start,l=f[e-1].start+f[e-1].duration,o=t.end,u=void 0;if(i.initSegment&&!i.initSegment.data)u=i.initSegment;else if(i.live){if(h=this.config.initialLiveManifestSize,e<h){r.b.warn("Can not start playback of a level, reason: not enough fragments "+e+" < "+h);return}if(u=this._ensureFragmentAtLivePoint(i,o,s,l,c,f,e),u===null)return}else o<s&&(u=f[0]);u||(u=this._findFragment(s,c,e,f,o,l,i));u&&this._loadFragmentOrKey(u,a,i,n,o)}},t.prototype._ensureFragmentAtLivePoint=function(n,t,i,u,f,e,o){var l=this.hls.config,h=this.media,s=void 0,y=l.liveMaxLatencyDuration!==undefined?l.liveMaxLatencyDuration:l.liveMaxLatencyDurationCount*n.targetduration,c,a,v;return(t<Math.max(i-l.maxFragLookUpTolerance,u-y)&&(c=this.liveSyncPosition=this.computeLivePosition(i,n),r.b.log("buffer end: "+t.toFixed(3)+" is located too far from the end of live sliding playlist, reset currentTime to : "+c.toFixed(3)),t=c,h&&h.readyState&&h.duration>c&&(h.currentTime=c),
this.nextLoadPosition=c),n.PTSKnown&&t>u&&h&&h.readyState)?null:(this.startFragRequested&&!n.PTSKnown&&(f&&(n.programDateTime?s=this._findFragmentByPDT(e,f.endPdt+1):(a=f.sn+1,a>=n.startSN&&a<=n.endSN&&(v=e[a-n.startSN],f.cc===v.cc&&(s=v,r.b.log("live playlist, switching playlist, load frag with next SN: "+s.sn))),s||(s=d.search(e,function(n){return f.cc-n.cc}),s&&r.b.log("live playlist, switching playlist, load frag with same CC: "+s.sn)))),s||(s=e[Math.min(o-1,Math.round(o/2))],r.b.log("live playlist, switching playlist, unknown, load middle frag : "+s.sn))),s)},t.prototype._findFragmentByPDT=function(n,t){var u,f,i,r;if(!n||t===undefined||(u=n[0],t<u.pdt)||(f=n[n.length-1],t>=f.endPdt))return null;for(i=0;i<n.length;++i)if(r=n[i],t<r.endPdt)return r;return null},t.prototype._findFragmentBySN=function(n,t,i,r){var s=this.hls.config,e=void 0,u=s.maxFragLookUpTolerance,f=n?t[n.sn-t[0].sn+1]:undefined,o=function(n){var t=Math.min(u,n.duration+(n.deltaPTS?n.deltaPTS:0));return n.start+n.duration-t<=i?1:n.start-
t>i&&n.start?-1:0};return i<r&&(i>r-u&&(u=0),e=f&&!o(f)?f:d.search(t,o)),e},t.prototype._findFragment=function(n,t,i,u,f,e,o){var y=this.hls.config,s=void 0,l=void 0,v;if(l=f<e?o.programDateTime?this._findFragmentByPDT(u,f*1e3+(o.programDateTime?Date.parse(o.programDateTime):0)-1e3*n):this._findFragmentBySN(t,u,f,e):u[i-1],l){s=l;var c=s.sn-o.startSN,p=t&&s.level===t.level,a=u[c-1],h=u[c+1];t&&s.sn===t.sn&&(p&&!s.backtracked?s.sn<o.endSN?(v=t.deltaPTS,v&&v>y.maxBufferHole&&t.dropped&&c?(s=a,r.b.warn("SN just loaded, with large PTS gap between audio and video, maybe frag is not starting with a keyframe ? load previous one to try to overcome this")):(s=h,r.b.log("SN just loaded, load next one: "+s.sn))):s=null:s.backtracked&&(h&&h.backtracked?(r.b.warn("Already backtracked from fragment "+h.sn+", will not backtrack to fragment "+s.sn+". Loading fragment "+h.sn),s=h):(r.b.warn("Loaded fragment with dropped frames, backtracking 1 segment to find a keyframe"),s.dropped=0,a?(s=a,s.backtracked=!0):c&&(s=null))))}return s}
,t.prototype._loadFragmentOrKey=function(n,t,i,f,o){if(n.decryptdata&&n.decryptdata.uri!=null&&n.decryptdata.key==null)r.b.log("Loading key for "+n.sn+" of ["+i.startSN+" ,"+i.endSN+"],level "+t),this.state=e.KEY_LOADING,this.hls.trigger(u.a.KEY_LOADING,{frag:n});else{r.b.log("Loading "+n.sn+" of ["+i.startSN+" ,"+i.endSN+"],level "+t+", currentTime:"+f.toFixed(3)+",bufferEnd:"+o.toFixed(3));var s=this.fragmentTracker.getState(n);this.fragCurrent=n;this.startFragRequested=!0;isNaN(n.sn)||n.bitrateTest||(this.nextLoadPosition=n.start+n.duration);n.backtracked||s===a.NOT_LOADED?(n.autoLevel=this.hls.autoLevelEnabled,n.bitrateTest=this.bitrateTest,this.hls.trigger(u.a.FRAG_LOADING,{frag:n}),this.demuxer||(this.demuxer=new vt(this.hls,"main")),this.state=e.FRAG_LOADING):s===a.APPENDING&&this._reduceMaxBufferLength(n.duration)&&this.fragmentTracker.removeFragment(n)}},t.prototype.getBufferedFrag=function(n){return this.fragmentTracker.getBufferedFrag(n,st.LevelType.MAIN)},t.prototype.followingBufferedFrag=function(
n){return n?this.getBufferedFrag(n.endPTS+.5):null},t.prototype._checkFragmentChanged=function(){var r=void 0,n=void 0,t=this.media,i,f;t&&t.readyState&&t.seeking===!1&&(n=t.currentTime,n>t.playbackRate*this.lastCurrentTime&&(this.lastCurrentTime=n),c.isBuffered(t,n)?r=this.getBufferedFrag(n):c.isBuffered(t,n+.1)&&(r=this.getBufferedFrag(n+.1)),r&&(i=r,i!==this.fragPlaying&&(this.hls.trigger(u.a.FRAG_CHANGED,{frag:i}),f=i.level,this.fragPlaying&&this.fragPlaying.level===f||this.hls.trigger(u.a.LEVEL_SWITCHED,{level:f}),this.fragPlaying=i)))},t.prototype.immediateLevelSwitch=function(){var n,t,i;r.b.log("immediateLevelSwitch");this.immediateSwitch||(this.immediateSwitch=!0,n=this.media,t=void 0,n?(t=n.paused,n.pause()):t=!0,this.previouslyPaused=t);i=this.fragCurrent;i&&i.loader&&i.loader.abort();this.fragCurrent=null;this.flushMainBuffer(0,Number.POSITIVE_INFINITY)},t.prototype.immediateLevelSwitchEnd=function(){var n=this.media;n&&n.buffered.length&&(this.immediateSwitch=!1,c.isBuffered(n,n.currentTime)&&(n.
currentTime-=.0001),this.previouslyPaused||n.play())},t.prototype.nextLevelSwitch=function(){var t=this.media,r;if(t&&t.readyState){var u=void 0,i=void 0,n=void 0;if(i=this.getBufferedFrag(t.currentTime),i&&i.startPTS>1&&this.flushMainBuffer(0,i.startPTS-1),t.paused)u=0;else{var e=this.hls.nextLoadLevel,o=this.levels[e],f=this.fragLastKbps;u=f&&this.fragCurrent?this.fragCurrent.duration*o.bitrate/(1e3*f)+1:0}n=this.getBufferedFrag(t.currentTime+u);n&&(n=this.followingBufferedFrag(n),n&&(r=this.fragCurrent,r&&r.loader&&r.loader.abort(),this.fragCurrent=null,this.flushMainBuffer(n.maxStartPTS,Number.POSITIVE_INFINITY)))}},t.prototype.flushMainBuffer=function(n,t){this.state=e.BUFFER_FLUSHING;var i={startOffset:n,endOffset:t};this.altAudio&&(i.type="video");this.hls.trigger(u.a.BUFFER_FLUSHING,i)},t.prototype.onMediaAttached=function(n){var t=this.media=this.mediaBuffer=n.media,i;this.onvseeking=this.onMediaSeeking.bind(this);this.onvseeked=this.onMediaSeeked.bind(this);this.onvended=this.onMediaEnded.bind(this);
t.addEventListener("seeking",this.onvseeking);t.addEventListener("seeked",this.onvseeked);t.addEventListener("ended",this.onvended);i=this.config;this.levels&&i.autoStartLoad&&this.hls.startLoad(i.startPosition)},t.prototype.onMediaDetaching=function(){var n=this.media,t;n&&n.ended&&(r.b.log("MSE detaching and video ended, reset startPosition"),this.startPosition=this.lastCurrentTime=0);t=this.levels;t&&t.forEach(function(n){n.details&&n.details.fragments.forEach(function(n){n.backtracked=undefined})});n&&(n.removeEventListener("seeking",this.onvseeking),n.removeEventListener("seeked",this.onvseeked),n.removeEventListener("ended",this.onvended),this.onvseeking=this.onvseeked=this.onvended=null);this.media=this.mediaBuffer=null;this.loadedmetadata=!1;this.stopLoad()},t.prototype.onMediaSeeking=function(){var i=this.media,n=i?i.currentTime:undefined,s=this.config,f,u,t;if(isNaN(n)||r.b.log("media seeking to "+n.toFixed(3)),f=this.mediaBuffer?this.mediaBuffer:i,u=c.bufferInfo(f,n,this.config.maxBufferHole),this.
state===e.FRAG_LOADING){if(t=this.fragCurrent,u.len===0&&t){var o=s.maxFragLookUpTolerance,h=t.start-o,l=t.start+t.duration+o;n<h||n>l?(t.loader&&(r.b.log("seeking outside of buffer while fragment load in progress, cancel fragment load"),t.loader.abort()),this.fragCurrent=null,this.fragPrevious=null,this.state=e.IDLE):r.b.log("seeking outside of buffer but within currently loaded fragment range")}}else this.state===e.ENDED&&(u.len===0&&(this.fragPrevious=0),this.state=e.IDLE);i&&(this.lastCurrentTime=n);this.loadedmetadata||(this.nextLoadPosition=this.startPosition=n);this.tick()},t.prototype.onMediaSeeked=function(){var n=this.media,t=n?n.currentTime:undefined;isNaN(t)||r.b.log("media seeked to "+t.toFixed(3));this.tick()},t.prototype.onMediaEnded=function(){r.b.log("media ended");this.startPosition=this.lastCurrentTime=0},t.prototype.onManifestLoading=function(){r.b.log("trigger BUFFER_RESET");this.hls.trigger(u.a.BUFFER_RESET);this.fragmentTracker.removeAllFragments();this.stalled=!1;this.startPosition=this.
lastCurrentTime=0},t.prototype.onManifestParsed=function(n){var u=!1,f=!1,t=void 0,i;n.levels.forEach(function(n){t=n.audioCodec;t&&(t.indexOf("mp4a.40.2")!==-1&&(u=!0),t.indexOf("mp4a.40.5")!==-1&&(f=!0))});this.audioCodecSwitch=u&&f;this.audioCodecSwitch&&r.b.log("both AAC/HE-AAC audio found in levels; declaring level codec as HE-AAC");this.levels=n.levels;this.startFragRequested=!1;i=this.config;(i.autoStartLoad||this.forceStartLoad)&&this.hls.startLoad(i.startPosition)},t.prototype.onLevelLoaded=function(n){var t=n.details,o=n.level,h=this.levels[this.levelLastLoaded],c=this.levels[o],l=t.totalduration,f=0,s,i;r.b.log("level "+o+" loaded ["+t.startSN+","+t.endSN+"],duration:"+l);t.live?(s=c.details,s&&t.fragments.length>0?(lu(s,t),f=t.fragments[0].start,this.liveSyncPosition=this.computeLivePosition(f,s),t.PTSKnown&&!isNaN(f)?r.b.log("live playlist sliding:"+f.toFixed(3)):(r.b.log("live playlist - outdated PTS, unknown sliding"),gt(this.fragPrevious,h,t))):(r.b.log("live playlist - first load, unknown sliding"),
t.PTSKnown=!1,gt(this.fragPrevious,h,t))):t.PTSKnown=!1;c.details=t;this.levelLastLoaded=o;this.hls.trigger(u.a.LEVEL_UPDATED,{details:t,level:o});this.startFragRequested===!1&&((this.startPosition===-1||this.lastCurrentTime===-1)&&(i=t.startTimeOffset,isNaN(i)?t.live?(this.startPosition=this.computeLivePosition(f,t),r.b.log("configure startPosition to "+this.startPosition)):this.startPosition=0:(i<0&&(r.b.log("negative start time offset "+i+", count from end of last fragment"),i=f+l+i),r.b.log("start time offset found in playlist, adjust startPosition to "+i),this.startPosition=i),this.lastCurrentTime=this.startPosition),this.nextLoadPosition=this.startPosition);this.state===e.WAITING_LEVEL&&(this.state=e.IDLE);this.tick()},t.prototype.onKeyLoaded=function(){this.state===e.KEY_LOADING&&(this.state=e.IDLE,this.tick())},t.prototype.onFragLoaded=function(n){var t=this.fragCurrent,s=n.frag,h;if(this.state===e.FRAG_LOADING&&t&&s.type==="main"&&s.level===t.level&&s.sn===t.sn){var f=n.stats,c=this.levels[t.level],i=
c.details;if(r.b.log("Loaded  "+t.sn+" of ["+i.startSN+" ,"+i.endSN+"],level "+t.level),this.bitrateTest=!1,this.stats=f,s.bitrateTest===!0&&this.hls.nextLoadLevel)this.state=e.IDLE,this.startFragRequested=!1,f.tparsed=f.tbuffered=performance.now(),this.hls.trigger(u.a.FRAG_BUFFERED,{stats:f,frag:t,id:"main"}),this.tick();else if(s.sn==="initSegment")this.state=e.IDLE,f.tparsed=f.tbuffered=performance.now(),i.initSegment.data=n.payload,this.hls.trigger(u.a.FRAG_BUFFERED,{stats:f,frag:t,id:"main"}),this.tick();else{this.state=e.PARSING;var a=i.totalduration,v=t.level,y=t.sn,o=this.config.defaultAudioCodec||c.audioCodec;this.audioCodecSwap&&(r.b.log("swapping playlist audio codec"),o===undefined&&(o=this.lastAudioCodec),o&&(o=o.indexOf("mp4a.40.5")!==-1?"mp4a.40.2":"mp4a.40.5"));this.pendingBuffering=!0;this.appended=!1;r.b.log("Parsing "+y+" of ["+i.startSN+" ,"+i.endSN+"],level "+v+", cc "+t.cc);h=this.demuxer;h||(h=this.demuxer=new vt(this.hls,"main"));var l=this.media,p=l&&l.seeking,w=!p&&(i.PTSKnown||!i.live)
,b=i.initSegment?i.initSegment.data:[];h.push(n.payload,b,o,c.videoCodec,t,a,w,undefined)}}this.fragLoadError=0},t.prototype.onFragParsingInitSegment=function(n){var s=this.fragCurrent,l=n.frag,i,h,c;if(s&&n.id==="main"&&l.sn===s.sn&&l.level===s.level&&this.state===e.PARSING){var f=n.tracks,o=void 0,t=void 0;f.audio&&this.altAudio&&delete f.audio;t=f.audio;t&&(i=this.levels[this.level].audioCodec,h=navigator.userAgent.toLowerCase(),i&&this.audioCodecSwap&&(r.b.log("swapping playlist audio codec"),i=i.indexOf("mp4a.40.5")!==-1?"mp4a.40.2":"mp4a.40.5"),this.audioCodecSwitch&&t.metadata.channelCount!==1&&h.indexOf("firefox")===-1&&(i="mp4a.40.5"),h.indexOf("android")!==-1&&t.container!=="audio/mpeg"&&(i="mp4a.40.2",r.b.log("Android: force audio codec to "+i)),t.levelCodec=i,t.id=n.id);t=f.video;t&&(t.levelCodec=this.levels[this.level].videoCodec,t.id=n.id);this.hls.trigger(u.a.BUFFER_CODECS,f);for(o in f)t=f[o],r.b.log("main track:"+o+",container:"+t.container+",codecs[level/parsed]=["+t.levelCodec+"/"+t.codec+"]"),
c=t.initSegment,c&&(this.appended=!0,this.pendingBuffering=!0,this.hls.trigger(u.a.BUFFER_APPENDING,{type:o,data:c,parent:"main",content:"initSegment"}));this.tick()}},t.prototype.onFragParsingData=function(n){var o=this,i=this.fragCurrent,c=n.frag,f,t,s,a,h;if(i&&n.id==="main"&&c.sn===i.sn&&c.level===i.level&&!(n.type==="audio"&&this.altAudio)&&this.state===e.PARSING){if(f=this.levels[this.level],t=i,isNaN(n.endPTS)&&(n.endPTS=n.startPTS+i.duration,n.endDTS=n.startDTS+i.duration),n.hasAudio===!0&&t.addElementaryStream(l.ElementaryStreamTypes.AUDIO),n.hasVideo===!0&&t.addElementaryStream(l.ElementaryStreamTypes.VIDEO),r.b.log("Parsed "+n.type+",PTS:["+n.startPTS.toFixed(3)+","+n.endPTS.toFixed(3)+"],DTS:["+n.startDTS.toFixed(3)+"/"+n.endDTS.toFixed(3)+"],nb:"+n.nb+",dropped:"+(n.dropped||0)),n.type==="video")if(t.dropped=n.dropped,t.dropped)if(t.backtracked)r.b.warn("Already backtracked on this fragment, appending with the gap");else if(s=f.details,s&&t.sn===s.startSN)r.b.warn("missing video frame(s) on first frag, appending with gap")
else{r.b.warn("missing video frame(s), backtracking fragment");this.fragmentTracker.removeFragment(t);t.backtracked=!0;this.nextLoadPosition=n.startPTS;this.state=e.IDLE;this.fragPrevious=t;this.tick();return}else t.backtracked=!1;a=wt(f.details,t,n.startPTS,n.endPTS,n.startDTS,n.endDTS);h=this.hls;h.trigger(u.a.LEVEL_PTS_UPDATED,{details:f.details,level:this.level,drift:a,type:n.type,start:n.startPTS,end:n.endPTS});[n.data1,n.data2].forEach(function(t){t&&t.length&&o.state===e.PARSING&&(o.appended=!0,o.pendingBuffering=!0,h.trigger(u.a.BUFFER_APPENDING,{type:n.type,data:t,parent:"main",content:"data"}))});this.tick()}},t.prototype.onFragParsed=function(n){var t=this.fragCurrent,i=n.frag;t&&n.id==="main"&&i.sn===t.sn&&i.level===t.level&&this.state===e.PARSING&&(this.stats.tparsed=performance.now(),this.state=e.PARSED,this._checkAppendedParsed())},t.prototype.onAudioTrackSwitching=function(n){var f=!!n.url,o=n.id,t,i;f||(this.mediaBuffer!==this.media&&(r.b.log("switching on main audio, use media.buffered to schedule main fragment loading"),
this.mediaBuffer=this.media,t=this.fragCurrent,t.loader&&(r.b.log("switching to main audio track, cancel main fragment load"),t.loader.abort()),this.fragCurrent=null,this.fragPrevious=null,this.demuxer&&(this.demuxer.destroy(),this.demuxer=null),this.state=e.IDLE),i=this.hls,i.trigger(u.a.BUFFER_FLUSHING,{startOffset:0,endOffset:Number.POSITIVE_INFINITY,type:"audio"}),i.trigger(u.a.AUDIO_TRACK_SWITCHED,{id:o}),this.altAudio=!1)},t.prototype.onAudioTrackSwitched=function(n){var u=n.id,i=!!this.hls.audioTracks[u].url,t;i&&(t=this.videoBuffer,t&&this.mediaBuffer!==t&&(r.b.log("switching on alternate audio, use video.buffered to schedule main fragment loading"),this.mediaBuffer=t));this.altAudio=i;this.tick()},t.prototype.onBufferCreated=function(n){var i=n.tracks,u=void 0,e=void 0,o=!1,t,f;for(t in i)f=i[t],f.id==="main"?(e=t,u=f,t==="video"&&(this.videoBuffer=i[t].buffer)):o=!0;o&&u?(r.b.log("alternate track found, use "+e+".buffered to schedule main fragment loading"),this.mediaBuffer=u.buffer):this.mediaBuffer=
this.media},t.prototype.onBufferAppended=function(n){if(n.parent==="main"){var t=this.state;(t===e.PARSING||t===e.PARSED)&&(this.pendingBuffering=n.pending>0,this._checkAppendedParsed())}},t.prototype._checkAppendedParsed=function(){var t,i,n;this.state!==e.PARSED||this.appended&&this.pendingBuffering||(t=this.fragCurrent,t&&(i=this.mediaBuffer?this.mediaBuffer:this.media,r.b.log("main buffered : "+kt.toString(i.buffered)),this.fragPrevious=t,n=this.stats,n.tbuffered=performance.now(),this.fragLastKbps=Math.round(8*n.total/(n.tbuffered-n.tfirst)),this.hls.trigger(u.a.FRAG_BUFFERED,{stats:n,frag:t,id:"main"}),this.state=e.IDLE),this.tick())},t.prototype.onError=function(n){var i=n.frag||this.fragCurrent,u,t;if(!i||i.type==="main"){u=!!this.media&&c.isBuffered(this.media,this.media.currentTime)&&c.isBuffered(this.media,this.media.currentTime+.5);switch(n.details){case f.a.FRAG_LOAD_ERROR:case f.a.FRAG_LOAD_TIMEOUT:case f.a.KEY_LOAD_ERROR:case f.a.KEY_LOAD_TIMEOUT:n.fatal||(this.fragLoadError+1<=this.config.fragLoadingMaxRetry?
(t=Math.min(Math.pow(2,this.fragLoadError)*this.config.fragLoadingRetryDelay,this.config.fragLoadingMaxRetryTimeout),r.b.warn("mediaController: frag loading failed, retry in "+t+" ms"),this.retryDate=performance.now()+t,this.loadedmetadata||(this.startFragRequested=!1,this.nextLoadPosition=this.startPosition),this.fragLoadError++,this.state=e.FRAG_LOADING_WAITING_RETRY):(r.b.error("mediaController: "+n.details+" reaches max retry, redispatch as fatal ..."),n.fatal=!0,this.state=e.ERROR));break;case f.a.LEVEL_LOAD_ERROR:case f.a.LEVEL_LOAD_TIMEOUT:this.state!==e.ERROR&&(n.fatal?(this.state=e.ERROR,r.b.warn("streamController: "+n.details+",switch to "+this.state+" state ...")):n.levelRetry||this.state!==e.WAITING_LEVEL||(this.state=e.IDLE));break;case f.a.BUFFER_FULL_ERROR:n.parent==="main"&&(this.state===e.PARSING||this.state===e.PARSED)&&(u?(this._reduceMaxBufferLength(this.config.maxBufferLength),this.state=e.IDLE):(r.b.warn("buffer full error also media.currentTime is not buffered, flush everything"),this.fragCurrent=
null,this.flushMainBuffer(0,Number.POSITIVE_INFINITY)))}}},t.prototype._reduceMaxBufferLength=function(n){var t=this.config;return t.maxMaxBufferLength>=n?(t.maxMaxBufferLength/=2,r.b.warn("main:reduce max buffer length to "+t.maxMaxBufferLength+"s"),!0):!1},t.prototype._checkBuffer=function(){var n=this.media,i=this.config,s,h,e,a,o,v,y,p;if(n&&n.readyState){var t=n.currentTime,k=this.mediaBuffer?this.mediaBuffer:n,d=k.buffered;if(!this.loadedmetadata&&d.length)this.loadedmetadata=!0,s=n.seeking?t:this.startPosition,t!==s&&(r.b.log("target start position not buffered, seek to buffered.start(0) "+s+" from current time"+t+" "),n.currentTime=s);else if(this.immediateSwitch)this.immediateLevelSwitchEnd();else{var g=c.bufferInfo(n,t,i.maxBufferHole),nt=!(n.paused&&n.readyState>1||n.ended||n.buffered.length===0),tt=t!==this.lastCurrentTime;if(tt)this.stallReported&&(r.b.warn("playback not stuck anymore @"+t+", after "+Math.round(performance.now()-this.stalled)+"ms"),this.stallReported=!1),this.stalled=undefined,this.
nudgeRetry=0;else if(nt)if(h=performance.now(),e=this.hls,this.stalled){var it=h-this.stalled,w=g.len,l=this.nudgeRetry||0,b=this.fragmentTracker.getPartialFragment(t);if(b!==null)for(a=0,o=0;o<n.buffered.length;o++){if(v=n.buffered.start(o),t>=a&&t<v){n.currentTime=Math.max(v,n.currentTime+.1);r.b.warn("skipping hole, adjusting currentTime from "+t+" to "+n.currentTime);this.stalled=undefined;e.trigger(u.a.ERROR,{type:f.b.MEDIA_ERROR,details:f.a.BUFFER_SEEK_OVER_HOLE,fatal:!1,reason:"fragment loaded with buffer holes, seeking from "+t+" to "+n.currentTime,frag:b});return}a=n.buffered.end(o)}w>.5&&it>i.highBufferWatchdogPeriod*1e3&&(this.stallReported||(this.stallReported=!0,r.b.warn("playback stalling in high buffer @"+t),e.trigger(u.a.ERROR,{type:f.b.MEDIA_ERROR,details:f.a.BUFFER_STALLED_ERROR,fatal:!1,buffer:w})),this.stalled=undefined,this.nudgeRetry=++l,l<i.nudgeMaxRetry?(y=n.currentTime,p=y+l*i.nudgeOffset,r.b.log("adjust currentTime from "+y+" to "+p),n.currentTime=p,e.trigger(u.a.ERROR,{type:f.b.MEDIA_ERROR,
details:f.a.BUFFER_NUDGE_ON_STALL,fatal:!1})):(r.b.error("still stuck in high buffer @"+t+" after "+i.nudgeMaxRetry+", raise fatal error"),e.trigger(u.a.ERROR,{type:f.b.MEDIA_ERROR,details:f.a.BUFFER_STALLED_ERROR,fatal:!0})))}else this.stalled=h,this.stallReported=!1}}},t.prototype.onFragLoadEmergencyAborted=function(){this.state=e.IDLE;this.loadedmetadata||(this.startFragRequested=!1,this.nextLoadPosition=this.startPosition);this.tick()},t.prototype.onBufferFlushed=function(){var n=this.mediaBuffer?this.mediaBuffer:this.media;this.fragmentTracker.detectEvictedFragments(l.ElementaryStreamTypes.VIDEO,n.buffered);this.state=e.IDLE;this.fragPrevious=null},t.prototype.swapAudioCodec=function(){this.audioCodecSwap=!this.audioCodecSwap},t.prototype.computeLivePosition=function(n,t){var i=this.config.liveSyncDuration!==undefined?this.config.liveSyncDuration:this.config.liveSyncDurationCount*t.targetduration;return n+Math.max(0,t.totalduration-i)},gu(t,[{key:"state",set:function(n){if(this.state!==n){var t=this.state;
this._state=n;r.b.log("main stream:"+t+"->"+n);this.hls.trigger(u.a.STREAM_STATE_TRANSITION,{previousState:t,nextState:n})}},get:function(){return this._state}},{key:"currentLevel",get:function(){var t=this.media,n;return t&&(n=this.getBufferedFrag(t.currentTime),n)?n.level:-1}},{key:"nextBufferedFrag",get:function(){var n=this.media;return n?this.followingBufferedFrag(this.getBufferedFrag(n.currentTime)):null}},{key:"nextLevel",get:function(){var n=this.nextBufferedFrag;return n?n.level:-1}},{key:"liveSyncPosition",get:function(){return this._liveSyncPosition},set:function(n){this._liveSyncPosition=n}}]),t}(du),ff=uf,ef=function(){function n(n,t){for(var i,r=0;r<t.length;r++)i=t[r],i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}return function(t,i,r){return i&&n(t.prototype,i),r&&n(t,r),t}}();var cf=function(n){function t(i){of(this,t);var r=sf(this,n.call(this,i,u.a.MANIFEST_LOADED,u.a.LEVEL_LOADED,u.a.FRAG_LOADED,u.a.ERROR));return r.canload=!1,
r.currentLevelIndex=null,r.manualLevelIndex=-1,r.timer=null,r}return hf(t,n),t.prototype.onHandlerDestroying=function(){this.cleanTimer();this.manualLevelIndex=-1},t.prototype.cleanTimer=function(){this.timer!==null&&(clearTimeout(this.timer),this.timer=null)},t.prototype.startLoad=function(){var n=this._levels;this.canload=!0;this.levelRetryCount=0;n&&n.forEach(function(n){n.loadError=0;var t=n.details;t&&t.live&&(n.details=undefined)});this.timer!==null&&this.loadLevel()},t.prototype.stopLoad=function(){this.canload=!1},t.prototype.onManifestLoaded=function(n){var t=[],s=void 0,l={},h=null,e=!1,o=!1,a=/chrome|firefox/.test(navigator.userAgent.toLowerCase()),c=[],i;if(n.levels.forEach(function(n){n.loadError=0;n.fragmentError=!1;e=e||!!n.videoCodec;o=o||!!n.audioCodec||!!(n.attrs&&n.attrs.AUDIO);a===!0&&n.audioCodec&&n.audioCodec.indexOf("mp4a.40.34")!==-1&&(n.audioCodec=undefined);h=l[n.bitrate];h===undefined?(n.url=[n.url],n.urlId=0,l[n.bitrate]=n,t.push(n)):h.url.push(n.url)}),e===!0&&o===!0&&(t=t.filter(
function(n){var t=n.videoCodec;return!!t})),t=t.filter(function(n){var t=n.audioCodec,i=n.videoCodec;return(!t||k(t))&&(!i||k(i))}),n.audioTracks&&(c=n.audioTracks.filter(function(n){return!n.audioCodec||k(n.audioCodec,"audio")})),t.length>0){for(s=t[0].bitrate,t.sort(function(n,t){return n.bitrate-t.bitrate}),this._levels=t,i=0;i<t.length;i++)if(t[i].bitrate===s){this._firstLevel=i;r.b.log("manifest loaded,"+t.length+" level(s) found, first bitrate:"+s);break}this.hls.trigger(u.a.MANIFEST_PARSED,{levels:t,audioTracks:c,firstLevel:this._firstLevel,stats:n.stats,audio:o,video:e,altAudio:c.length>0})}else this.hls.trigger(u.a.ERROR,{type:f.b.MEDIA_ERROR,details:f.a.MANIFEST_INCOMPATIBLE_CODECS_ERROR,fatal:!0,url:this.hls.url,reason:"no level with compatible codecs found in manifest"})},t.prototype.setLevelInternal=function(n){var i=this._levels,e=this.hls,o,t,s,h;n>=0&&n<i.length?(this.cleanTimer(),this.currentLevelIndex!==n&&(r.b.log("switching to level "+n),this.currentLevelIndex=n,o=i[n],o.level=n,e.trigger(
u.a.LEVEL_SWITCHING,o)),t=i[n],s=t.details,s&&s.live!==!0||(h=t.urlId,e.trigger(u.a.LEVEL_LOADING,{url:t.url[h],level:n,id:h}))):e.trigger(u.a.ERROR,{type:f.b.OTHER_ERROR,details:f.a.LEVEL_SWITCH_ERROR,level:n,fatal:!1,reason:"invalid level idx"})},t.prototype.onError=function(n){if(n.fatal===!0){n.type===f.b.NETWORK_ERROR&&this.cleanTimer();return}var i=!1,r=!1,t=void 0;switch(n.details){case f.a.FRAG_LOAD_ERROR:case f.a.FRAG_LOAD_TIMEOUT:case f.a.KEY_LOAD_ERROR:case f.a.KEY_LOAD_TIMEOUT:t=n.frag.level;r=!0;break;case f.a.LEVEL_LOAD_ERROR:case f.a.LEVEL_LOAD_TIMEOUT:t=n.context.level;i=!0;break;case f.a.REMUX_ALLOC_ERROR:t=n.level;i=!0}t!==undefined&&this.recoverLevel(n,t,i,r)},t.prototype.recoverLevel=function(n,t,i,u){var l=this,s=this.hls.config,e=n.details,f=this._levels[t],o=void 0,h=void 0,c=void 0;if(f.loadError++,f.fragmentError=u,i===!0)if(this.levelRetryCount+1<=s.levelLoadingMaxRetry)h=Math.min(Math.pow(2,this.levelRetryCount)*s.levelLoadingRetryDelay,s.levelLoadingMaxRetryTimeout),this.timer=setTimeout(
function(){return l.loadLevel()},h),n.levelRetry=!0,this.levelRetryCount++,r.b.warn("level controller, "+e+", retry in "+h+" ms, current retry count is "+this.levelRetryCount);else{r.b.error("level controller, cannot recover from "+e+" error");this.currentLevelIndex=null;this.cleanTimer();n.fatal=!0;return}(i===!0||u===!0)&&(o=f.url.length,o>1&&f.loadError<o?(r.b.warn("level controller, "+e+" for level "+t+": switching to redundant stream id "+f.urlId),f.urlId=(f.urlId+1)%o,f.details=undefined):this.manualLevelIndex===-1?(c=t===0?this._levels.length-1:t-1,r.b.warn("level controller, "+e+": switch to "+c),this.hls.nextAutoLevel=this.currentLevelIndex=c):u===!0&&(r.b.warn("level controller, "+e+": reload a fragment"),this.currentLevelIndex=null))},t.prototype.onFragLoaded=function(n){var i=n.frag,t;i!==undefined&&i.type==="main"&&(t=this._levels[i.level],t!==undefined&&(t.fragmentError=!1,t.loadError=0,this.levelRetryCount=0))},t.prototype.onLevelLoaded=function(n){var s=this,f=n.level,u,t;if(f===this.currentLevelIndex)
if(u=this._levels[f],u.fragmentError===!1&&(u.loadError=0,this.levelRetryCount=0),t=n.details,t.live){var e=1e3*(t.averagetargetduration?t.averagetargetduration:t.targetduration),i=e,o=u.details;o&&t.endSN===o.endSN&&(i/=2,r.b.log("same live playlist, reload twice faster"));i-=performance.now()-n.stats.trequest;i=Math.max(e/2,Math.round(i));r.b.log("live playlist, reload in "+Math.round(i)+" ms");this.timer=setTimeout(function(){return s.loadLevel()},i)}else this.cleanTimer()},t.prototype.loadLevel=function(){var n=void 0,t=void 0;this.currentLevelIndex!==null&&this.canload===!0&&(n=this._levels[this.currentLevelIndex],n!==undefined&&n.url.length>0&&(t=n.urlId,this.hls.trigger(u.a.LEVEL_LOADING,{url:n.url[t],level:this.currentLevelIndex,id:t})))},ef(t,[{key:"levels",get:function(){return this._levels}},{key:"level",get:function(){return this.currentLevelIndex},set:function(n){var t=this._levels;t&&(n=Math.min(n,t.length-1),(this.currentLevelIndex!==n||t[n].details===undefined)&&this.setLevelInternal(n))}},{key:
"manualLevel",get:function(){return this.manualLevelIndex},set:function(n){this.manualLevelIndex=n;this._startLevel===undefined&&(this._startLevel=n);n!==-1&&(this.level=n)}},{key:"firstLevel",get:function(){return this._firstLevel},set:function(n){this._firstLevel=n}},{key:"startLevel",get:function(){if(this._startLevel===undefined){var n=this.hls.config.startLevel;return n!==undefined?n:this._firstLevel}return this._startLevel},set:function(n){this._startLevel=n}},{key:"nextLoadLevel",get:function(){return this.manualLevelIndex!==-1?this.manualLevelIndex:this.hls.nextAutoLevel},set:function(n){this.level=n;this.manualLevelIndex===-1&&(this.hls.nextAutoLevel=n)}}]),t}(s),lf=cf,ni=i(5);ti=function(n){function t(i){yf(this,t);var r=pf(this,n.call(this,i,u.a.MEDIA_ATTACHED,u.a.MEDIA_DETACHING,u.a.FRAG_PARSING_METADATA));return r.id3Track=undefined,r.media=undefined,r}return wf(t,n),t.prototype.destroy=function(){s.prototype.destroy.call(this)},t.prototype.onMediaAttached=function(n){this.media=n.media;!this.media}
,t.prototype.onMediaDetaching=function(){vf(this.id3Track);this.id3Track=undefined;this.media=undefined},t.prototype.getID3Track=function(n){for(var t,i=0;i<n.length;i++)if(t=n[i],t.kind==="metadata"&&t.label==="id3")return af(t,this.media),t;return this.media.addTextTrack("metadata","id3")},t.prototype.onFragParsingMetadata=function(n){var c=n.frag,i=n.samples,h,t,r,e,u,f,o,s;for(this.id3Track||(this.id3Track=this.getID3Track(this.media.textTracks),this.id3Track.mode="hidden"),h=window.WebKitDataCue||window.VTTCue||window.TextTrackCue,t=0;t<i.length;t++)if(r=ni.a.getID3Frames(i[t].data),r)for(e=i[t].pts,u=t<i.length-1?i[t+1].pts:c.endPTS,e===u&&(u+=.0001),f=0;f<r.length;f++)o=r[f],ni.a.isTimeStampFrame(o)||(s=new h(e,u,""),s.value=o,this.id3Track.addCue(s))},t}(s);ii=ti;ri=function(){function n(t){kf(this,n);this.alpha_=t?Math.exp(Math.log(.5)/t):0;this.estimate_=0;this.totalWeight_=0}return n.prototype.sample=function(n,t){var i=Math.pow(this.alpha_,n);this.estimate_=t*(1-i)+i*this.estimate_;this.totalWeight_+=
n},n.prototype.getTotalWeight=function(){return this.totalWeight_},n.prototype.getEstimate=function(){if(this.alpha_){var n=1-Math.pow(this.alpha_,this.totalWeight_);return this.estimate_/n}return this.estimate_},n}();tt=ri;var gf=function(){function n(t,i,r,u){df(this,n);this.hls=t;this.defaultEstimate_=u;this.minWeight_=.001;this.minDelayMs_=50;this.slow_=new tt(i);this.fast_=new tt(r)}return n.prototype.sample=function(n,t){n=Math.max(n,this.minDelayMs_);var i=8e3*t/n,r=n/1e3;this.fast_.sample(r,i);this.slow_.sample(r,i)},n.prototype.canEstimate=function(){var n=this.fast_;return n&&n.getTotalWeight()>=this.minWeight_},n.prototype.getEstimate=function(){return this.canEstimate()?Math.min(this.fast_.getEstimate(),this.slow_.getEstimate()):this.defaultEstimate_},n.prototype.destroy=function(){},n}(),ne=gf,te=function(){function n(n,t){for(var i,r=0;r<t.length;r++)i=t[r],i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}return function(t,i,r){return i&&
n(t.prototype,i),r&&n(t,r),t}}();ui=function(n){function t(i){ie(this,t);var r=re(this,n.call(this,i,u.a.FRAG_LOADING,u.a.FRAG_LOADED,u.a.FRAG_BUFFERED,u.a.ERROR));return r.lastLoadedFragLevel=0,r._nextAutoLevel=-1,r.hls=i,r.timer=null,r._bwEstimator=null,r.onCheck=r._abandonRulesCheck.bind(r),r}return ue(t,n),t.prototype.destroy=function(){this.clearTimer();s.prototype.destroy.call(this)},t.prototype.onFragLoading=function(n){var f=n.frag;if(f.type==="main"){if(this.timer||(this.timer=setInterval(this.onCheck,100)),!this._bwEstimator){var i=this.hls,e=n.frag.level,o=i.levels[e].details.live,t=i.config,r=void 0,u=void 0;o?(r=t.abrEwmaFastLive,u=t.abrEwmaSlowLive):(r=t.abrEwmaFastVoD,u=t.abrEwmaSlowVoD);this._bwEstimator=new ne(i,u,r,t.abrEwmaDefaultEstimate)}this.fragCurrent=f}},t.prototype._abandonRulesCheck=function(){var e=this.hls,f=e.media,t=this.fragCurrent,o=t.loader,d=e.minAutoLevel,n,l,a,h,i,k;if(!o||o.stats&&o.stats.aborted){r.b.warn("frag loader destroy or aborted, disarm abandonRules");this.clearTimer(
);this._nextAutoLevel=-1;return}if(n=o.stats,f&&n&&(!f.paused&&f.playbackRate!==0||!f.readyState)&&t.autoLevel&&t.level&&(l=performance.now()-n.trequest,a=Math.abs(f.playbackRate),l>500*t.duration/a)){var s=e.levels,w=Math.max(1,n.bw?n.bw/8:n.loaded*1e3/l),v=s[t.level],g=v.realBitrate?Math.max(v.realBitrate,v.bitrate):v.bitrate,nt=n.total?n.total:Math.max(n.loaded,Math.round(t.duration*g/8)),b=f.currentTime,p=(nt-n.loaded)/w,y=(c.bufferInfo(f,b,e.config.maxBufferHole).end-b)/a;if(y<2*t.duration/a&&p>y){for(h=void 0,i=void 0,i=t.level-1;i>d;i--)if(k=s[i].realBitrate?Math.max(s[i].realBitrate,s[i].bitrate):s[i].bitrate,h=t.duration*k/(8*.8*w),h<y)break;h<p&&(r.b.warn("loading too slow, abort fragment loading and switch to level "+i+":fragLoadedDelay["+i+"]<fragLoadedDelay["+(t.level-1)+"];bufferStarvationDelay:"+h.toFixed(1)+"<"+p.toFixed(1)+":"+y.toFixed(1)),e.nextLoadLevel=i,this._bwEstimator.sample(l,n.loaded),o.abort(),this.clearTimer(),e.trigger(u.a.FRAG_LOAD_EMERGENCY_ABORTED,{frag:t,stats:n}))}}},t.prototype.
onFragLoaded=function(n){var i=n.frag,r;if(i.type==="main"&&!isNaN(i.sn)){if(this.clearTimer(),this.lastLoadedFragLevel=i.level,this._nextAutoLevel=-1,this.hls.config.abrMaxWithRealBitrate){var t=this.hls.levels[i.level],u=(t.loaded?t.loaded.bytes:0)+n.stats.loaded,f=(t.loaded?t.loaded.duration:0)+n.frag.duration;t.loaded={bytes:u,duration:f};t.realBitrate=Math.round(8*u/f)}if(n.frag.bitrateTest){r=n.stats;r.tparsed=r.tbuffered=r.tload;this.onFragBuffered(n)}}},t.prototype.onFragBuffered=function(n){var t=n.stats,i=n.frag,u;t.aborted===!0||i.type!=="main"||isNaN(i.sn)||i.bitrateTest&&t.tload!==t.tbuffered||(u=t.tparsed-t.trequest,r.b.log("latency/loading/parsing/append/kbps:"+Math.round(t.tfirst-t.trequest)+"/"+Math.round(t.tload-t.tfirst)+"/"+Math.round(t.tparsed-t.tload)+"/"+Math.round(t.tbuffered-t.tparsed)+"/"+Math.round(8*t.loaded/(t.tbuffered-t.trequest))),this._bwEstimator.sample(u,t.loaded),t.bwEstimate=this._bwEstimator.getEstimate(),this.bitrateTestDelay=i.bitrateTest?u/1e3:0)},t.prototype.onError=function(
n){switch(n.details){case f.a.FRAG_LOAD_ERROR:case f.a.FRAG_LOAD_TIMEOUT:this.clearTimer()}},t.prototype.clearTimer=function(){clearInterval(this.timer);this.timer=null},t.prototype._findBestLevel=function(n,t,i,u,f,e,o,s,h){for(var v,y,c=f;c>=u;c--){var w=h[c],l=w.details,p=l?l.totalduration/l.fragments.length:t,b=l?l.live:!1,a=void 0;if(a=c<=n?o*i:s*i,v=h[c].realBitrate?Math.max(h[c].realBitrate,h[c].bitrate):h[c].bitrate,y=v*p/a,r.b.trace("level/adjustedbw/bitrate/avgDuration/maxFetchDuration/fetchDuration: "+c+"/"+Math.round(a)+"/"+v+"/"+p+"/"+e+"/"+y),a>v&&(!y||b&&!this.bitrateTestDelay||y<e))return c}return-1},te(t,[{key:"nextAutoLevel",get:function(){var n=this._nextAutoLevel,i=this._bwEstimator,t;return n!==-1&&(!i||!i.canEstimate())?n:(t=this._nextABRAutoLevel,n!==-1&&(t=Math.min(n,t)),t)},set:function(n){this._nextAutoLevel=n}},{key:"_nextABRAutoLevel",get:function(){var u=this.hls,h=u.maxAutoLevel,l=u.levels,n=u.config,a=u.minAutoLevel,t=u.media,v=this.lastLoadedFragLevel,i=this.fragCurrent?this.fragCurrent.
duration:0,y=t?t.currentTime:0,d=t&&t.playbackRate!==0?Math.abs(t.playbackRate):1,p=this._bwEstimator?this._bwEstimator.getEstimate():n.abrEwmaDefaultEstimate,o=(c.bufferInfo(t,y,n.maxBufferHole).end-y)/d,f=this._findBestLevel(v,i,p,a,h,o,n.abrBandWidthFactor,n.abrBandWidthUpFactor,l),e,k;if(f>=0)return f;r.b.trace("rebuffering expected to happen, lets try to find a quality level minimizing the rebuffering");var s=i?Math.min(i,n.maxStarvationDelay):n.maxStarvationDelay,w=n.abrBandWidthFactor,b=n.abrBandWidthUpFactor;return o===0&&(e=this.bitrateTestDelay,e&&(k=i?Math.min(i,n.maxLoadingDelay):n.maxLoadingDelay,s=k-e,r.b.trace("bitrate test took "+Math.round(1e3*e)+"ms, set first fragment max fetchDuration to "+Math.round(1e3*s)+" ms"),w=b=1)),f=this._findBestLevel(v,i,p,a,h,o+s,w,b,l),Math.max(f,0)}}]),t}(s);fi=ui;var se=g(),he=function(n){function t(i){fe(this,t);var r=ee(this,n.call(this,i,u.a.MEDIA_ATTACHING,u.a.MEDIA_DETACHING,u.a.MANIFEST_PARSED,u.a.BUFFER_RESET,u.a.BUFFER_APPENDING,u.a.BUFFER_CODECS,u.a.
BUFFER_EOS,u.a.BUFFER_FLUSHING,u.a.LEVEL_PTS_UPDATED,u.a.LEVEL_UPDATED));return r._msDuration=null,r._levelDuration=null,r._live=null,r._objectUrl=null,r.onsbue=r.onSBUpdateEnd.bind(r),r.onsbe=r.onSBUpdateError.bind(r),r.pendingTracks={},r.tracks={},r}return oe(t,n),t.prototype.destroy=function(){s.prototype.destroy.call(this)},t.prototype.onLevelPtsUpdated=function(n){var e=n.type,u=this.tracks.audio,t,f,i;if(e==="audio"&&u&&u.container==="audio/mpeg"&&(t=this.sourceBuffer.audio,f=Math.abs(t.timestampOffset-n.start),f>.1)){i=t.updating;try{t.abort()}catch(o){i=!0;r.b.warn("can not abort audio buffer: "+o)}i?this.audioTimestampOffset=n.start:(r.b.warn("change mpeg audio timestamp offset from "+t.timestampOffset+" to "+n.start),t.timestampOffset=n.start)}},t.prototype.onManifestParsed=function(n){var i=n.audio,u=n.video||n.levels.length&&n.audio,t=0;n.altAudio&&(i||u)&&(t=(i?1:0)+(u?1:0),r.b.log(t+" sourceBuffer(s) expected"));this.sourceBufferNb=t},t.prototype.onMediaAttaching=function(n){var i=this.media=n.media,
t;i&&(t=this.mediaSource=new se,this.onmso=this.onMediaSourceOpen.bind(this),this.onmse=this.onMediaSourceEnded.bind(this),this.onmsc=this.onMediaSourceClose.bind(this),t.addEventListener("sourceopen",this.onmso),t.addEventListener("sourceended",this.onmse),t.addEventListener("sourceclose",this.onmsc),i.src=URL.createObjectURL(t),this._objectUrl=i.src)},t.prototype.onMediaDetaching=function(){r.b.log("media source detaching");var n=this.mediaSource;if(n){if(n.readyState==="open")try{n.endOfStream()}catch(t){r.b.warn("onMediaDetaching:"+t.message+" while calling endOfStream")}n.removeEventListener("sourceopen",this.onmso);n.removeEventListener("sourceended",this.onmse);n.removeEventListener("sourceclose",this.onmsc);this.media&&(URL.revokeObjectURL(this._objectUrl),this.media.src===this._objectUrl?(this.media.removeAttribute("src"),this.media.load()):r.b.warn("media.src was changed by a third party - skip cleanup"));this.mediaSource=null;this.media=null;this._objectUrl=null;this.pendingTracks={};this.tracks={};
this.sourceBuffer={};this.flushRange=[];this.segments=[];this.appended=0}this.onmso=this.onmse=this.onmsc=null;this.hls.trigger(u.a.MEDIA_DETACHED)},t.prototype.onMediaSourceOpen=function(){r.b.log("media source opened");this.hls.trigger(u.a.MEDIA_ATTACHED,{media:this.media});var n=this.mediaSource;n&&n.removeEventListener("sourceopen",this.onmso);this.checkPendingTracks()},t.prototype.checkPendingTracks=function(){var n=this.pendingTracks,t=Object.keys(n).length;t&&(this.sourceBufferNb<=t||this.sourceBufferNb===0)&&(this.createSourceBuffers(n),this.pendingTracks={},this.doAppending())},t.prototype.onMediaSourceClose=function(){r.b.log("media source closed")},t.prototype.onMediaSourceEnded=function(){r.b.log("media source ended")},t.prototype.onSBUpdateEnd=function(){var n,t;this.audioTimestampOffset&&(n=this.sourceBuffer.audio,r.b.warn("change mpeg audio timestamp offset from "+n.timestampOffset+" to "+this.audioTimestampOffset),n.timestampOffset=this.audioTimestampOffset,delete this.audioTimestampOffset);this.
_needsFlush&&this.doFlush();this._needsEos&&this.checkEos();this.appending=!1;var i=this.parent,o=this.segments.reduce(function(n,t){return t.parent===i?n+1:n},0),f={},e=this.sourceBuffer;for(t in e)f[t]=e[t].buffered;this.hls.trigger(u.a.BUFFER_APPENDED,{parent:i,pending:o,timeRanges:f});this._needsFlush||this.doAppending();this.updateMediaElementDuration()},t.prototype.onSBUpdateError=function(n){r.b.error("sourceBuffer error:",n);this.hls.trigger(u.a.ERROR,{type:f.b.MEDIA_ERROR,details:f.a.BUFFER_APPENDING_ERROR,fatal:!1})},t.prototype.onBufferReset=function(){var t=this.sourceBuffer,i,n;for(i in t){n=t[i];try{this.mediaSource.removeSourceBuffer(n);n.removeEventListener("updateend",this.onsbue);n.removeEventListener("error",this.onsbe)}catch(r){}}this.sourceBuffer={};this.flushRange=[];this.segments=[];this.appended=0},t.prototype.onBufferCodecs=function(n){var t,i;if(Object.keys(this.sourceBuffer).length===0){for(t in n)this.pendingTracks[t]=n[t];i=this.mediaSource;i&&i.readyState==="open"&&this.checkPendingTracks(
)}},t.prototype.createSourceBuffers=function(n){var s=this.sourceBuffer,l=this.mediaSource,t,e;for(t in n)if(!s[t]){var i=n[t],h=i.levelCodec||i.codec,o=i.container+";codecs="+h;r.b.log("creating sourceBuffer("+o+")");try{e=s[t]=l.addSourceBuffer(o);e.addEventListener("updateend",this.onsbue);e.addEventListener("error",this.onsbe);this.tracks[t]={codec:h,container:i.container};i.buffer=e}catch(c){r.b.error("error while trying to add sourceBuffer:"+c.message);this.hls.trigger(u.a.ERROR,{type:f.b.MEDIA_ERROR,details:f.a.BUFFER_ADD_CODEC_ERROR,fatal:!1,err:c,mimeType:o})}}this.hls.trigger(u.a.BUFFER_CREATED,{tracks:n})},t.prototype.onBufferAppending=function(n){this._needsFlush||(this.segments?this.segments.push(n):this.segments=[n],this.doAppending())},t.prototype.onBufferAppendFail=function(n){r.b.error("sourceBuffer error:",n.event);this.hls.trigger(u.a.ERROR,{type:f.b.MEDIA_ERROR,details:f.a.BUFFER_APPENDING_ERROR,fatal:!1})},t.prototype.onBufferEos=function(n){var i=this.sourceBuffer,u=n.type;for(var t in i)
u&&t!==u||i[t].ended||(i[t].ended=!0,r.b.log(t+" sourceBuffer now EOS"));this.checkEos()},t.prototype.checkEos=function(){var i=this.sourceBuffer,n=this.mediaSource,u,t;if(!n||n.readyState!=="open"){this._needsEos=!1;return}for(u in i){if(t=i[u],!t.ended)return;if(t.updating){this._needsEos=!0;return}}r.b.log("all media data available, signal endOfStream() to MediaSource and stop loading fragment");try{n.endOfStream()}catch(f){r.b.warn("exception while calling mediaSource.endOfStream()")}this._needsEos=!1},t.prototype.onBufferFlushing=function(n){this.flushRange.push({start:n.startOffset,end:n.endOffset,type:n.type});this.flushBufferCounter=0;this.doFlush()},t.prototype.onLevelUpdated=function(n){var t=n.details;t.fragments.length>0&&(this._levelDuration=t.totalduration+t.fragments[0].start,this._live=t.live,this.updateMediaElementDuration())},t.prototype.updateMediaElementDuration=function(){var i=this.hls.config,n=void 0,t;if(this._levelDuration!==null&&this.media&&this.mediaSource&&this.sourceBuffer&&this.
media.readyState!==0&&this.mediaSource.readyState==="open"){for(t in this.sourceBuffer)if(this.sourceBuffer[t].updating===!0)return;n=this.media.duration;this._msDuration===null&&(this._msDuration=this.mediaSource.duration);this._live===!0&&i.liveDurationInfinity===!0?(r.b.log("Media Source duration is set to Infinity"),this._msDuration=this.mediaSource.duration=Infinity):(this._levelDuration>this._msDuration&&this._levelDuration>n||n===Infinity||isNaN(n))&&(r.b.log("Updating Media Source duration to "+this._levelDuration.toFixed(3)),this._msDuration=this.mediaSource.duration=this._levelDuration)}},t.prototype.doFlush=function(){for(var n,t,i,f;this.flushRange.length;)if(n=this.flushRange[0],this.flushBuffer(n.start,n.end,n.type))this.flushRange.shift(),this.flushBufferCounter=0;else{this._needsFlush=!0;return}if(this.flushRange.length===0){this._needsFlush=!1;t=0;i=this.sourceBuffer;try{for(f in i)t+=i[f].buffered.length}catch(e){r.b.error("error while accessing sourceBuffer.buffered")}this.appended=t;this.hls.
trigger(u.a.BUFFER_FLUSHED)}},t.prototype.doAppending=function(){var e=this.hls,s=this.sourceBuffer,i=this.segments,t,h,o,n;if(Object.keys(s).length){if(this.media.error){this.segments=[];r.b.error("trying to append although a media error occured, flush segment and abort");return}if(this.appending)return;if(i&&i.length){t=i.shift();try{h=t.type;o=s[h];o?o.updating?i.unshift(t):(o.ended=!1,this.parent=t.parent,o.appendBuffer(t.data),this.appendError=0,this.appended++,this.appending=!0):this.onSBUpdateEnd()}catch(c){r.b.error("error while trying to append buffer:"+c.message);i.unshift(t);n={type:f.b.MEDIA_ERROR,parent:t.parent};c.code!==22?(this.appendError?this.appendError++:this.appendError=1,n.details=f.a.BUFFER_APPEND_ERROR,this.appendError>e.config.appendErrorMaxRetry?(r.b.log("fail "+e.config.appendErrorMaxRetry+" times to append segment in sourceBuffer"),i=[],n.fatal=!0,e.trigger(u.a.ERROR,n)):(n.fatal=!1,e.trigger(u.a.ERROR,n))):(this.segments=[],n.details=f.a.BUFFER_FULL_ERROR,n.fatal=!1,e.trigger(u.a.
ERROR,n))}}}},t.prototype.flushBuffer=function(n,t,i){var u=void 0,f=void 0,c=void 0,s=void 0,e=void 0,o=void 0,l=this.sourceBuffer,h;if(Object.keys(l).length){if(r.b.log("flushBuffer,pos/start/end: "+this.media.currentTime.toFixed(3)+"/"+n+"/"+t),this.flushBufferCounter<this.appended){for(h in l)if(!i||h===i){if(u=l[h],u.ended=!1,u.updating)return r.b.warn("cannot flush, sb updating in progress"),!1;try{for(f=0;f<u.buffered.length;f++)if(c=u.buffered.start(f),s=u.buffered.end(f),navigator.userAgent.toLowerCase().indexOf("firefox")!==-1&&t===Number.POSITIVE_INFINITY?(e=n,o=t):(e=Math.max(c,n),o=Math.min(s,t)),Math.min(o,s)-e>.5)return this.flushBufferCounter++,r.b.log("flush "+h+" ["+e+","+o+"], of ["+c+","+s+"], pos:"+this.media.currentTime),u.remove(e,o),!1}catch(a){r.b.warn("exception while accessing sourcebuffer, it might have been removed from MediaSource")}}}else r.b.warn("abort flushing too many retries");r.b.log("buffer flushed")}return!0},t}(s),ce=he,le=function(){function n(n,t){for(var i,r=0;r<t.length;
r++)i=t[r],i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}return function(t,i,r){return i&&n(t.prototype,i),r&&n(t,r),t}}();ei=function(n){function t(i){return ae(this,t),ve(this,n.call(this,i,u.a.FPS_DROP_LEVEL_CAPPING,u.a.MEDIA_ATTACHING,u.a.MANIFEST_PARSED))}return ye(t,n),t.prototype.destroy=function(){this.hls.config.capLevelToPlayerSize&&(this.media=this.restrictedLevels=null,this.autoLevelCapping=Number.POSITIVE_INFINITY,this.timer&&(this.timer=clearInterval(this.timer)))},t.prototype.onFpsDropLevelCapping=function(n){t.isLevelAllowed(n.droppedLevel,this.restrictedLevels)&&this.restrictedLevels.push(n.droppedLevel)},t.prototype.onMediaAttaching=function(n){this.media=n.media instanceof HTMLVideoElement?n.media:null},t.prototype.onManifestParsed=function(n){var t=this.hls;this.restrictedLevels=[];t.config.capLevelToPlayerSize&&(this.autoLevelCapping=Number.POSITIVE_INFINITY,this.levels=n.levels,t.firstLevel=this.getMaxLevel(n.firstLevel),clearInterval(
this.timer),this.timer=setInterval(this.detectPlayerSize.bind(this),1e3),this.detectPlayerSize())},t.prototype.detectPlayerSize=function(){var t,n;this.media&&(t=this.levels?this.levels.length:0,t&&(n=this.hls,n.autoLevelCapping=this.getMaxLevel(t-1),n.autoLevelCapping>this.autoLevelCapping&&n.streamController.nextLevelSwitch(),this.autoLevelCapping=n.autoLevelCapping))},t.prototype.getMaxLevel=function(n){var r=this,i;return this.levels?(i=this.levels.filter(function(i,u){return t.isLevelAllowed(u,r.restrictedLevels)&&u<=n}),t.getMaxLevelByMediaSize(i,this.mediaWidth,this.mediaHeight)):-1},t.isLevelAllowed=function(n){var t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:[];return t.indexOf(n)===-1},t.getMaxLevelByMediaSize=function(n,t,i){var e,f,r,u;if(!n||n&&!n.length)return-1;for(e=function(n,t){return t?n.width!==t.width||n.height!==t.height:!0},f=n.length-1,r=0;r<n.length;r+=1)if(u=n[r],(u.width>=t||u.height>=i)&&e(u,n[r+1])){f=r;break}return f},le(t,[{key:"mediaWidth",get:function(){var i=void
0,n=this.media;return n&&(i=(n.width||n.clientWidth||n.offsetWidth)*t.contentScaleFactor),i}},{key:"mediaHeight",get:function(){var i=void 0,n=this.media;return n&&(i=(n.height||n.clientHeight||n.offsetHeight)*t.contentScaleFactor),i}}],[{key:"contentScaleFactor",get:function(){var n=1;try{n=window.devicePixelRatio}catch(t){}return n}}]),t}(s);oi=ei;si=function(n){function t(i){return pe(this,t),we(this,n.call(this,i,u.a.MEDIA_ATTACHING))}return be(t,n),t.prototype.destroy=function(){this.timer&&clearInterval(this.timer);this.isVideoPlaybackQualityAvailable=!1},t.prototype.onMediaAttaching=function(n){var t=this.hls.config,i;t.capLevelOnFPSDrop&&(i=this.video=n.media instanceof HTMLVideoElement?n.media:null,typeof i.getVideoPlaybackQuality=="function"&&(this.isVideoPlaybackQualityAvailable=!0),clearInterval(this.timer),this.timer=setInterval(this.checkFPSInterval.bind(this),t.fpsDroppedMonitoringPeriod))},t.prototype.checkFPS=function(n,t,i){var s=performance.now(),e;if(t){if(this.lastTime){var c=s-this.lastTime,
o=i-this.lastDroppedFrames,h=t-this.lastDecodedFrames,l=1e3*o/c,f=this.hls;f.trigger(u.a.FPS_DROP,{currentDropped:o,currentDecoded:h,totalDroppedFrames:i});l>0&&o>f.config.fpsDroppedMonitoringThreshold*h&&(e=f.currentLevel,r.b.warn("drop FPS ratio greater than max allowed value for currentLevel: "+e),e>0&&(f.autoLevelCapping===-1||f.autoLevelCapping>=e)&&(e=e-1,f.trigger(u.a.FPS_DROP_LEVEL_CAPPING,{level:e,droppedLevel:f.currentLevel}),f.autoLevelCapping=e,f.streamController.nextLevelSwitch()))}this.lastTime=s;this.lastDroppedFrames=i;this.lastDecodedFrames=t}},t.prototype.checkFPSInterval=function(){var n=this.video,t;n&&(this.isVideoPlaybackQualityAvailable?(t=n.getVideoPlaybackQuality(),this.checkFPS(n,t.totalVideoFrames,t.droppedVideoFrames)):this.checkFPS(n,n.webkitDecodedFrameCount,n.webkitDroppedFrameCount))},t}(s);hi=si;var de=function(){function n(t){ke(this,n);t&&t.xhrSetup&&(this.xhrSetup=t.xhrSetup)}return n.prototype.destroy=function(){this.abort();this.loader=null},n.prototype.abort=function(){var
n=this.loader;n&&n.readyState!==4&&(this.stats.aborted=!0,n.abort());window.clearTimeout(this.requestTimeout);this.requestTimeout=null;window.clearTimeout(this.retryTimeout);this.retryTimeout=null},n.prototype.load=function(n,t,i){this.context=n;this.config=t;this.callbacks=i;this.stats={trequest:performance.now(),retry:0};this.retryDelay=t.retryDelay;this.loadInternal()},n.prototype.loadInternal=function(){var n=void 0,t=this.context,r,i;n=this.loader=new XMLHttpRequest;r=this.stats;r.tfirst=0;r.loaded=0;i=this.xhrSetup;try{if(i)try{i(n,t.url)}catch(u){n.open("GET",t.url,!0);i(n,t.url)}n.readyState||n.open("GET",t.url,!0)}catch(u){this.callbacks.onError({code:n.status,text:u.message},t,n);return}t.rangeEnd&&n.setRequestHeader("Range","bytes="+t.rangeStart+"-"+(t.rangeEnd-1));n.onreadystatechange=this.readystatechange.bind(this);n.onprogress=this.loadprogress.bind(this);n.responseType=t.responseType;this.requestTimeout=window.setTimeout(this.loadtimeout.bind(this),this.config.timeout);n.send()},n.prototype.readystatechange=
function(n){var i=n.currentTarget,h=i.readyState,t=this.stats,e=this.context,s=this.config,u,f,o,c;if(!t.aborted&&h>=2)if(window.clearTimeout(this.requestTimeout),t.tfirst===0&&(t.tfirst=Math.max(performance.now(),t.trequest)),h===4)if(u=i.status,u>=200&&u<300){t.tload=Math.max(t.tfirst,performance.now());f=void 0;o=void 0;e.responseType==="arraybuffer"?(f=i.response,o=f.byteLength):(f=i.responseText,o=f.length);t.loaded=t.total=o;c={url:i.responseURL,data:f};this.callbacks.onSuccess(c,t,e,i)}else if(t.retry>=s.maxRetry||u>=400&&u<499){r.b.error(u+" while loading "+e.url);this.callbacks.onError({code:u,text:i.statusText},e,i)}else r.b.warn(u+" while loading "+e.url+", retrying in "+this.retryDelay+"..."),this.destroy(),this.retryTimeout=window.setTimeout(this.loadInternal.bind(this),this.retryDelay),this.retryDelay=Math.min(2*this.retryDelay,s.maxRetryDelay),t.retry++;else this.requestTimeout=window.setTimeout(this.loadtimeout.bind(this),s.timeout)},n.prototype.loadtimeout=function(){r.b.warn("timeout while loading "+
this.context.url);this.callbacks.onTimeout(this.stats,this.context,null)},n.prototype.loadprogress=function(n){var r=n.currentTarget,t=this.stats,i;t.loaded=n.loaded;n.lengthComputable&&(t.total=n.total);i=this.callbacks.onProgress;i&&i(t,this.context,null,r)},n}(),ge=de,no=i(3),co=i.n(no),to=function(){return window.navigator&&window.navigator.requestMediaKeySystemAccess?window.navigator.requestMediaKeySystemAccess.bind(window.navigator):null}(),h={autoStartLoad:!0,startPosition:-1,defaultAudioCodec:undefined,debug:!1,capLevelOnFPSDrop:!1,capLevelToPlayerSize:!1,initialLiveManifestSize:1,maxBufferLength:30,maxBufferSize:6e7,maxBufferHole:.5,lowBufferWatchdogPeriod:.5,highBufferWatchdogPeriod:3,nudgeOffset:.1,nudgeMaxRetry:3,maxFragLookUpTolerance:.25,liveSyncDurationCount:3,liveMaxLatencyDurationCount:Infinity,liveSyncDuration:undefined,liveMaxLatencyDuration:undefined,liveDurationInfinity:!1,maxMaxBufferLength:600,enableWorker:!0,enableSoftwareAES:!0,manifestLoadingTimeOut:1e4,manifestLoadingMaxRetry:1,manifestLoadingRetryDelay:
1e3,manifestLoadingMaxRetryTimeout:64e3,startLevel:undefined,levelLoadingTimeOut:1e4,levelLoadingMaxRetry:4,levelLoadingRetryDelay:1e3,levelLoadingMaxRetryTimeout:64e3,fragLoadingTimeOut:2e4,fragLoadingMaxRetry:6,fragLoadingRetryDelay:1e3,fragLoadingMaxRetryTimeout:64e3,startFragPrefetch:!1,fpsDroppedMonitoringPeriod:5e3,fpsDroppedMonitoringThreshold:.2,appendErrorMaxRetry:3,loader:ge,fLoader:undefined,pLoader:undefined,xhrSetup:undefined,licenseXhrSetup:undefined,abrController:fi,bufferController:ce,capLevelController:oi,fpsController:hi,stretchShortVideoTrack:!1,maxAudioFramesDrift:1,forceKeyFrameOnDiscontinuity:!0,abrEwmaFastLive:3,abrEwmaSlowLive:9,abrEwmaFastVoD:3,abrEwmaSlowVoD:9,abrEwmaDefaultEstimate:5e5,abrBandWidthFactor:.95,abrBandWidthUpFactor:.7,abrMaxWithRealBitrate:!1,maxStarvationDelay:4,maxLoadingDelay:4,minAutoBitrate:0,emeEnabled:!1,widevineLicenseUrl:undefined,requestMediaKeySystemAccessFunc:to};!1&&(h.subtitleStreamController=SubtitleStreamController,h.subtitleTrackController=SubtitleTrackController,
h.timelineController=TimelineController,h.cueHandler=Cues,h.enableCEA708Captions=!0,h.enableWebVTT=!0,h.captionsTextTrack1Label="English",h.captionsTextTrack1LanguageCode="en",h.captionsTextTrack2Label="Spanish",h.captionsTextTrack2LanguageCode="es");!1&&(h.audioStreamController=AudioStreamController,h.audioTrackController=AudioTrackController);!1&&(h.emeController=EMEController);it=function(){function n(n,t){for(var i,r=0;r<t.length;r++)i=t[r],i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}return function(t,i,r){return i&&n(t.prototype,i),r&&n(t,r),t}}();i(12);ci=function(){function n(){var v=this,t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{},o,e,i,f,h,c,l;if(io(this,n),o=n.DefaultConfig,(t.liveSyncDurationCount||t.liveMaxLatencyDurationCount)&&(t.liveSyncDuration||t.liveMaxLatencyDuration))throw new Error("Illegal hls.js config: don't mix up liveSyncDurationCount/liveMaxLatencyDurationCount and liveSyncDuration/liveMaxLatencyDuration");
for(e in o)e in t||(t[e]=o[e]);if(t.liveMaxLatencyDurationCount!==undefined&&t.liveMaxLatencyDurationCount<=t.liveSyncDurationCount)throw new Error('Illegal hls.js config: "liveMaxLatencyDurationCount" must be gt "liveSyncDurationCount"');if(t.liveMaxLatencyDuration!==undefined&&(t.liveMaxLatencyDuration<=t.liveSyncDuration||t.liveSyncDuration===undefined))throw new Error('Illegal hls.js config: "liveMaxLatencyDuration" must be gt "liveSyncDuration"');Object(r.a)(t.debug);this.config=t;this._autoLevelCapping=-1;i=this.observer=new at.a;i.trigger=function(n){for(var r=arguments.length,u=Array(r>1?r-1:0),t=1;t<r;t++)u[t-1]=arguments[t];i.emit.apply(i,[n,n].concat(u))};i.off=function(n){for(var r=arguments.length,u=Array(r>1?r-1:0),t=1;t<r;t++)u[t-1]=arguments[t];i.removeListener.apply(i,[n].concat(u))};this.on=i.on.bind(i);this.off=i.off.bind(i);this.trigger=i.trigger.bind(i);var y=this.abrController=new t.abrController(this),p=new t.bufferController(this),w=new t.capLevelController(this),b=new t.fpsController(
this),k=new st(this),d=new ct(this),g=new nu(this),nt=new ii(this),tt=this.levelController=new lf(this),s=new yt(this),it=this.streamController=new ff(this,s),a=[tt,it],u=t.audioStreamController;u&&a.push(new u(this,s));this.networkControllers=a;f=[k,d,g,y,p,w,b,nt,s];u=t.audioTrackController;u&&(h=new u(this),this.audioTrackController=h,f.push(h));u=t.subtitleTrackController;u&&(c=new u(this),this.subtitleTrackController=c,f.push(c));u=t.emeController;u&&(l=new u(this),this.emeController=l,f.push(l));[t.subtitleStreamController,t.timelineController].forEach(function(n){n&&f.push(new n(v))});this.coreComponents=f}return n.isSupported=function(){return bf()},it(n,null,[{key:"version",get:function(){return"0.9.1"}},{key:"Events",get:function(){return u.a}},{key:"ErrorTypes",get:function(){return f.b}},{key:"ErrorDetails",get:function(){return f.a}},{key:"DefaultConfig",get:function(){return n.defaultConfig?n.defaultConfig:h},set:function(t){n.defaultConfig=t}}]),n.prototype.destroy=function(){r.b.log("destroy");
this.trigger(u.a.DESTROYING);this.detachMedia();this.coreComponents.concat(this.networkControllers).forEach(function(n){n.destroy()});this.url=null;this.observer.removeAllListeners();this._autoLevelCapping=-1},n.prototype.attachMedia=function(n){r.b.log("attachMedia");this.media=n;this.trigger(u.a.MEDIA_ATTACHING,{media:n})},n.prototype.detachMedia=function(){r.b.log("detachMedia");this.trigger(u.a.MEDIA_DETACHING);this.media=null},n.prototype.loadSource=function(n){n=y.a.buildAbsoluteURL(window.location.href,n,{alwaysNormalize:!0});r.b.log("loadSource:"+n);this.url=n;this.trigger(u.a.MANIFEST_LOADING,{url:n})},n.prototype.startLoad=function(){var n=arguments.length>0&&arguments[0]!==undefined?arguments[0]:-1;r.b.log("startLoad("+n+")");this.networkControllers.forEach(function(t){t.startLoad(n)})},n.prototype.stopLoad=function(){r.b.log("stopLoad");this.networkControllers.forEach(function(n){n.stopLoad()})},n.prototype.swapAudioCodec=function(){r.b.log("swapAudioCodec");this.streamController.swapAudioCodec()}
,n.prototype.recoverMediaError=function(){r.b.log("recoverMediaError");var n=this.media;this.detachMedia();this.attachMedia(n)},it(n,[{key:"levels",get:function(){return this.levelController.levels}},{key:"currentLevel",get:function(){return this.streamController.currentLevel},set:function(n){r.b.log("set currentLevel:"+n);this.loadLevel=n;this.streamController.immediateLevelSwitch()}},{key:"nextLevel",get:function(){return this.streamController.nextLevel},set:function(n){r.b.log("set nextLevel:"+n);this.levelController.manualLevel=n;this.streamController.nextLevelSwitch()}},{key:"loadLevel",get:function(){return this.levelController.level},set:function(n){r.b.log("set loadLevel:"+n);this.levelController.manualLevel=n}},{key:"nextLoadLevel",get:function(){return this.levelController.nextLoadLevel},set:function(n){this.levelController.nextLoadLevel=n}},{key:"firstLevel",get:function(){return Math.max(this.levelController.firstLevel,this.minAutoLevel)},set:function(n){r.b.log("set firstLevel:"+n);this.levelController.
firstLevel=n}},{key:"startLevel",get:function(){return this.levelController.startLevel},set:function(n){r.b.log("set startLevel:"+n);var t=this;n!==-1&&(n=Math.max(n,t.minAutoLevel));t.levelController.startLevel=n}},{key:"autoLevelCapping",get:function(){return this._autoLevelCapping},set:function(n){r.b.log("set autoLevelCapping:"+n);this._autoLevelCapping=n}},{key:"autoLevelEnabled",get:function(){return this.levelController.manualLevel===-1}},{key:"manualLevel",get:function(){return this.levelController.manualLevel}},{key:"minAutoLevel",get:function(){for(var r,i=this,t=i.levels,u=i.config.minAutoBitrate,f=t?t.length:0,n=0;n<f;n++)if(r=t[n].realBitrate?Math.max(t[n].realBitrate,t[n].bitrate):t[n].bitrate,r>u)return n;return 0}},{key:"maxAutoLevel",get:function(){var t=this,n=t.levels,i=t.autoLevelCapping;return i===-1&&n&&n.length?n.length-1:i}},{key:"nextAutoLevel",get:function(){var n=this;return Math.min(Math.max(n.abrController.nextAutoLevel,n.minAutoLevel),n.maxAutoLevel)},set:function(n){var t=this;t.
abrController.nextAutoLevel=Math.max(t.minAutoLevel,n)}},{key:"audioTracks",get:function(){var n=this.audioTrackController;return n?n.audioTracks:[]}},{key:"audioTrack",get:function(){var n=this.audioTrackController;return n?n.audioTrack:-1},set:function(n){var t=this.audioTrackController;t&&(t.audioTrack=n)}},{key:"liveSyncPosition",get:function(){return this.streamController.liveSyncPosition}},{key:"subtitleTracks",get:function(){var n=this.subtitleTrackController;return n?n.subtitleTracks:[]}},{key:"subtitleTrack",get:function(){var n=this.subtitleTrackController;return n?n.subtitleTrack:-1},set:function(n){var t=this.subtitleTrackController;t&&(t.subtitleTrack=n)}},{key:"subtitleDisplay",get:function(){var n=this.subtitleTrackController;return n?n.subtitleDisplay:!1},set:function(n){var t=this.subtitleTrackController;t&&(t.subtitleDisplay=n)}}]),n}();ro=t["default"]=ci},function(n,t,i){function r(n){function t(r){if(i[r])return i[r].exports;var u=i[r]={i:r,l:!1,exports:{}};return n[r].call(u.exports,u,u.exports,
t),u.l=!0,u.exports}var i={},r;return t.m=n,t.c=i,t.i=function(n){return n},t.d=function(n,i,r){t.o(n,i)||Object.defineProperty(n,i,{configurable:!1,enumerable:!0,get:r})},t.r=function(n){Object.defineProperty(n,"__esModule",{value:!0})},t.n=function(n){var i=n&&n.__esModule?function(){return n["default"]}:function(){return n};return t.d(i,"a",i),i},t.o=function(n,t){return Object.prototype.hasOwnProperty.call(n,t)},t.p="/",t.oe=function(n){console.error(n);throw n;},r=t(t.s=ENTRY_MODULE),r.default||r}function e(n){return(n+"").replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}function o(n,t,r){var s={},h,l,a,c,o;if(s[r]=[],h=t.toString(),l=h.match(/^function\s?\(\w+,\s*\w+,\s*(\w+)\)/),!l)return s;for(a=l[1],c=new RegExp("(\\\\n|\\W)"+e(a)+f,"g");o=c.exec(h);)o[3]!=="dll-reference"&&s[r].push(o[3]);for(c=new RegExp("\\("+e(a)+'\\("(dll-reference\\s('+u+'))"\\)\\)'+f,"g");o=c.exec(h);)n[o[2]]||(s[r].push(o[1]),n[o[2]]=i(o[1]).m),s[o[2]]=s[o[2]]||[],s[o[2]].push(o[4]);return s}function s(n){var t=Object.keys(n);return t.
reduce(function(t,i){return t||n[i].length>0},!1)}function h(n,t){for(var u={main:[t]},h={main:[]},c={main:{}},a,l,v,f,r;s(u);)for(a=Object.keys(u),l=0;l<a.length;l++){var i=a[l],y=u[i],e=y.pop();if(c[i]=c[i]||{},!c[i][e]&&n[i][e])for(c[i][e]=!0,h[i]=h[i]||[],h[i].push(e),v=o(n,n[i][e],i),f=Object.keys(v),r=0;r<f.length;r++)u[f[r]]=u[f[r]]||[],u[f[r]]=u[f[r]].concat(v[f[r]])}return h}var u="[\\.|\\-|\\+|\\w|/|@]+",f="\\((/\\*.*?\\*/)?s?.*?("+u+").*?\\)";n.exports=function(n,t){var o;t=t||{};var u={main:i.m},f=t.all?{main:Object.keys(u)}:h(u,n),e="";if(Object.keys(f).filter(function(n){return n!=="main"}).forEach(function(n){for(var t=0;f[n][t];)t++;f[n].push(t);u[n][t]="(function(module, exports, __webpack_require__) { module.exports = __webpack_require__; })";e=e+"var "+n+" = ("+r.toString().replace("ENTRY_MODULE",JSON.stringify(t))+")({"+f[n].map(function(t){return""+JSON.stringify(t)+": "+u[n][t].toString()}).join(",")+"});\n"}),e=e+"("+r.toString().replace("ENTRY_MODULE",JSON.stringify(n))+")({"+f.main.map(
function(n){return""+JSON.stringify(n)+": "+u.main[n].toString()}).join(",")+"})(self);",o=new window.Blob([e],{type:"text/javascript"}),t.bare)return o;var l=window.URL||window.webkitURL||window.mozURL||window.msURL,s=l.createObjectURL(o),c=new window.Worker(s);return c.objectURL=s,c}},function(n,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var u=i(8),r=i(1),f=i(0),e=i(6),o=i.n(e),s=function(n){var t=new o.a,i;t.trigger=function(n){for(var r=arguments.length,u=Array(r>1?r-1:0),i=1;i<r;i++)u[i-1]=arguments[i];t.emit.apply(t,[n,n].concat(u))};t.off=function(n){for(var r=arguments.length,u=Array(r>1?r-1:0),i=1;i<r;i++)u[i-1]=arguments[i];t.removeListener.apply(t,[n].concat(u))};i=function(t,i){n.postMessage({event:t,data:i})};n.addEventListener("message",function(r){var e=r.data,o;switch(e.cmd){case"init":o=JSON.parse(e.config);n.demuxer=new u.a(t,e.typeSupported,o,e.vendor);try{Object(f.a)(o.debug===!0)}catch(s){console.warn("demuxerWorker: unable to enable logs")}i("init",null);break;case"demux":
n.demuxer.push(e.data,e.decryptdata,e.initSegment,e.audioCodec,e.videoCodec,e.timeOffset,e.discontinuity,e.trackSwitch,e.contiguous,e.duration,e.accurateTimeOffset,e.defaultInitPTS)}});t.on(r.a.FRAG_DECRYPTED,i);t.on(r.a.FRAG_PARSING_INIT_SEGMENT,i);t.on(r.a.FRAG_PARSED,i);t.on(r.a.ERROR,i);t.on(r.a.FRAG_PARSING_METADATA,i);t.on(r.a.FRAG_PARSING_USERDATA,i);t.on(r.a.INIT_PTS_FOUND,i);t.on(r.a.FRAG_PARSING_DATA,function(t,i){var r=[],u={event:t,data:i};i.data1&&(u.data1=i.data1.buffer,r.push(i.data1.buffer),delete i.data1);i.data2&&(u.data2=i.data2.buffer,r.push(i.data2.buffer),delete i.data2);n.postMessage(u,r)})};t["default"]=s},function(){
/*! http://mths.be/endswith v0.2.0 by @mathias */
String.prototype.endsWith||function(){"use strict";var n=function(){try{var n={},t=Object.defineProperty,i=t(n,n,n)&&t}catch(r){}return i}(),i={}.toString,t=function(n){var f,r,c,e,u;if(this==null)throw TypeError();if(f=String(this),n&&i.call(n)=="[object RegExp]")throw TypeError();var o=f.length,s=String(n),h=s.length,t=o;if(arguments.length>1&&(r=arguments[1],r!==undefined&&(t=r?Number(r):0,t!=t&&(t=0))),c=Math.min(Math.max(t,0),o),e=c-h,e<0)return!1;for(u=-1;++u<h;)if(f.charCodeAt(e+u)!=s.charCodeAt(u))return!1;return!0};n?n(String.prototype,"endsWith",{value:t,configurable:!0,writable:!0}):String.prototype.endsWith=t}()}])["default"]});
/*!
   Flowplayer Commercial v7.2.6 (Tuesday, 23. January 2018 12:17PM) | flowplayer.com/license
*/
/*! (C) WebReflection Mit Style License */
(function(n){function s(n,t,i,r){for(var e,o=i.slice(),u=rt(t,n),f=0,s=o.length;f<s;f++)if(handler=o[f],typeof handler=="object"&&typeof handler.handleEvent=="function"?handler.handleEvent(u):handler.call(n,u),u.stoppedImmediatePropagation)break;return e=!u.stoppedPropagation,r&&e&&n.parentNode?n.parentNode.dispatchEvent(u):!u.defaultPrevented}function y(n,t){return{configurable:!0,get:n,set:t}}function h(n,t,i){var r=nt(t||n,i);e(n,"textContent",y(function(){return r.get.call(this)},function(n){r.set.call(this,n)}))}function rt(n,t){return n.currentTarget=t,n.eventPhase=n.target===n.currentTarget?2:3,n}function u(n,t){for(var i=n.length;i--&&n[i]!==t;);return i}function p(){if(this.tagName==="BR")return"\n";for(var n=this.firstChild,t=[];n;)n.nodeType!==8&&n.nodeType!==7&&t.push(n.textContent),n=n.nextSibling;return t.join("")}function l(n){!a&&it.test(document.readyState)&&(a=!a,document.detachEvent(d,l),n=document.createEvent("Event"),n.initEvent(g,!0,!0),document.dispatchEvent(n))}function w(n){for(var t;
t=this.lastChild;)this.removeChild(t);n!=null&&this.appendChild(document.createTextNode(n))}function b(t,i){return i||(i=n.event),i.target||(i.target=i.srcElement||i.fromElement||document),i.timeStamp||(i.timeStamp=(new Date).getTime()),i}if(!document.createEvent){var k=!0,a=!1,d="onreadystatechange",g="DOMContentLoaded",t="__IE8__"+Math.random(),f=n.Object,e=f.defineProperty||function(n,t,i){n[t]=i.value},r=f.defineProperties||function(t,i){for(var r in i)if(v.call(i,r))try{e(t,r,i[r])}catch(u){n.console&&console.log(r+" failed on object:",t,u.message)}},nt=f.getOwnPropertyDescriptor,v=f.prototype.hasOwnProperty,i=n.Element.prototype,tt=n.Text.prototype,ut=/^[a-z]+$/,it=/loaded|complete/,o={},c=document.createElement("div");h(n.HTMLCommentElement.prototype,i,"nodeValue");h(n.HTMLScriptElement.prototype,null,"text");h(tt,null,"nodeValue");h(n.HTMLTitleElement.prototype,null,"text");e(n.HTMLStyleElement.prototype,"textContent",function(n){return y(function(){return n.get.call(this.styleSheet)},function(t){n.set.
call(this.styleSheet,t)})}(nt(n.CSSStyleSheet.prototype,"cssText")));r(i,{textContent:{get:p,set:w},firstElementChild:{get:function(){for(var t=this.childNodes||[],n=0,i=t.length;n<i;n++)if(t[n].nodeType==1)return t[n]}},lastElementChild:{get:function(){for(var n=this.childNodes||[],t=n.length;t--;)if(n[t].nodeType==1)return n[t]}},previousElementSibling:{get:function(){for(var n=this.previousSibling;n&&n.nodeType!=1;)n=n.previousSibling;return n}},nextElementSibling:{get:function(){for(var n=this.nextSibling;n&&n.nodeType!=1;)n=n.nextSibling;return n}},childElementCount:{get:function(){for(var n=0,t=this.childNodes||[],i=t.length;i--;n+=t[i].nodeType==1);return n}},addEventListener:{value:function(n,i,r){var f=this,h="on"+n,p=f[t]||e(f,t,{value:{}})[t],l=p[h]||(p[h]={}),a=l.h||(l.h=[]),y;if(!v.call(l,"w")){if(l.w=function(n){return n[t]||s(f,b(f,n),a,!1)},!v.call(o,h))if(ut.test(n))try{y=document.createEventObject();y[t]=!0;f.nodeType!=9&&f.parentNode==null&&c.appendChild(f);f.fireEvent(h,y);o[h]=!0}catch(y)
{for(o[h]=!1;c.hasChildNodes();)c.removeChild(c.firstChild)}else o[h]=!1;(l.n=o[h])&&f.attachEvent(h,l.w)}u(a,i)<0&&a[r?"unshift":"push"](i)}},dispatchEvent:{value:function(n){var i=this,u="on"+n.type,f=i[t],r=f&&f[u],o=!!r,e;return n.target||(n.target=i),o?r.n?i.fireEvent(u,n):s(i,n,r.h,!0):(e=i.parentNode)?e.dispatchEvent(n):!0,!n.defaultPrevented}},removeEventListener:{value:function(n,i){var s=this,h="on"+n,f=s[t],e=f&&f[h],r=e&&e.h,o=r?u(r,i):-1;-1<o&&r.splice(o,1)}}});r(tt,{addEventListener:{value:i.addEventListener},dispatchEvent:{value:i.dispatchEvent},removeEventListener:{value:i.removeEventListener}});r(n.XMLHttpRequest.prototype,{addEventListener:{value:function(n,i,r){var f=this,o="on"+n,s=f[t]||e(f,t,{value:{}})[t],h=s[o]||(s[o]={}),c=h.h||(h.h=[]);u(c,i)<0&&(f[o]||(f[o]=function(){var t=document.createEvent("Event");t.initEvent(n,!0,!0);f.dispatchEvent(t)}),c[r?"unshift":"push"](i))}},dispatchEvent:{value:function(n){var i=this,u="on"+n.type,f=i[t],r=f&&f[u],e=!!r;return e&&(r.n?i.fireEvent(u,n):
s(i,n,r.h,!0))}},removeEventListener:{value:i.removeEventListener}});r(n.Event.prototype,{bubbles:{value:!0,writable:!0},cancelable:{value:!0,writable:!0},preventDefault:{value:function(){this.cancelable&&(this.defaultPrevented=!0,this.returnValue=!1)}},stopPropagation:{value:function(){this.stoppedPropagation=!0;this.cancelBubble=!0}},stopImmediatePropagation:{value:function(){this.stoppedImmediatePropagation=!0;this.stopPropagation()}},initEvent:{value:function(n,t,i){this.type=n;this.bubbles=!!t;this.cancelable=!!i;this.bubbles||this.stopPropagation()}}});r(n.HTMLDocument.prototype,{textContent:{get:function(){return this.nodeType===11?p.call(this):null},set:function(n){this.nodeType===11&&w.call(this,n)}},addEventListener:{value:function(t,r,u){var f=this;i.addEventListener.call(f,t,r,u);k&&t===g&&!it.test(f.readyState)&&(k=!1,f.attachEvent(d,l),n==top&&function e(){try{f.documentElement.doScroll("left");l()}catch(n){setTimeout(e,50)}}())}},dispatchEvent:{value:i.dispatchEvent},removeEventListener:{value:
i.removeEventListener},createEvent:{value:function(n){var t;if(n!=="Event")throw new Error("unsupported "+n);return t=document.createEventObject(),t.timeStamp=(new Date).getTime(),t}}});r(n.Window.prototype,{getComputedStyle:{value:function(){function n(n){this._=n}function t(){}var i=/^(?:[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|))(?!px)[a-z%]+$/,r=/^(top|right|bottom|left)$/,u=/\-([a-z])/g,f=function(n,t){return t.toUpperCase()};return n.prototype.getPropertyValue=function(n){var h=this._,e=h.style,c=h.currentStyle,o=h.runtimeStyle,t,l,s;return n=(n==="float"?"style-float":n).replace(u,f),t=c?c[n]:e[n],i.test(t)&&!r.test(n)&&(l=e.left,s=o&&o.left,s&&(o.left=c.left),e.left=n==="fontSize"?"1em":t,t=e.pixelLeft+"px",e.left=l,s&&(o.left=s)),t==null?t:t+""||"auto"},t.prototype.getPropertyValue=function(){return null},function(i,r){return r?new t(i):new n(i)}}()},addEventListener:{value:function(i,r,f){var e=n,o="on"+i,h;e[o]||(e[o]=function(n){return s(e,b(e,n),h,!1)});h=e[o][t]||(e[o][t]=[]);u(h,r)<0&&h[f?"unshift":"push"](
r)}},dispatchEvent:{value:function(t){var i=n["on"+t.type];return i?i.call(n,t)!==!1&&!t.defaultPrevented:!0}},removeEventListener:{value:function(i,r){var s="on"+i,e=(n[s]||f)[t],o=e?u(e,r):-1;-1<o&&e.splice(o,1)}}})}})(this),function(n){if(typeof exports=="object"&&typeof module!="undefined")module.exports=n();else if(typeof define=="function"&&define.amd)define([],n);else{var t;t=typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:this;t.flowplayer=n()}}(function(){var n;return function(){function n(t,i,r){function u(f,o){var h,c,s;if(!i[f]){if(!t[f]){if(h="function"==typeof require&&require,!o&&h)return h(f,!0);if(e)return e(f,!0);c=new Error("Cannot find module '"+f+"'");throw c.code="MODULE_NOT_FOUND",c;}s=i[f]={exports:{}};t[f][0].call(s.exports,function(n){var i=t[f][1][n];return u(i||n)},s,s.exports,n,t,i,r)}return i[f].exports}for(var e="function"==typeof require&&require,f=0;f<r.length;f++)u(r[f]);return u}return n}()({1:[function(n,t){"use strict";var i=
t.exports={},u=n("class-list"),r=window.jQuery,f=n("punycode"),e=n("computed-style");i.noop=function(){};i.identity=function(n){return n};i.removeNode=function(n){n&&n.parentNode&&n.parentNode.removeChild(n)};i.find=function(n,t){return r?r(n,t).toArray():(t=t||document,Array.prototype.map.call(t.querySelectorAll(n),function(n){return n}))};i.text=function(n,t){n["innerText"in n?"innerText":"textContent"]=t};i.findDirect=function(n,t){return i.find(n,t).filter(function(n){return n.parentNode===t})};i.hasClass=function(n,t){return typeof n.className!="string"?!1:u(n).contains(t)};i.isSameDomain=function(n){var t=window.location,r=i.createElement("a",{href:n});return t.hostname===r.hostname&&t.protocol===r.protocol&&t.port===r.port};i.css=function(n,t,r){return typeof t=="object"?Object.keys(t).forEach(function(r){i.css(n,r,t[r])}):typeof r!="undefined"?r===""?n?n.style.removeProperty(t):undefined:n?n.style.setProperty(t,r):undefined:n?e(n,t):undefined};i.createElement=function(n,t,u){var e,f;try{e=document.createElement(
n);for(f in t)t.hasOwnProperty(f)&&(f==="css"?i.css(e,t[f]):i.attr(e,f,t[f]));return u&&(e.innerHTML=u),e}catch(o){if(!r)throw o;return r("<"+n+">"+u+"<\/"+n+">").attr(t)[0]}};i.toggleClass=function(n,t,i){if(n){var r=u(n);typeof i=="undefined"?r.toggle(t):i?r.add(t):i||r.remove(t)}};i.addClass=function(n,t){return i.toggleClass(n,t,!0)};i.removeClass=function(n,t){return i.toggleClass(n,t,!1)};i.append=function(n,t){return n.appendChild(t),n};i.appendTo=function(n,t){return i.append(t,n),n};i.prepend=function(n,t){n.insertBefore(t,n.firstChild)};i.insertAfter=function(n,t,r){t==i.lastChild(n)&&n.appendChild(r);var u=Array.prototype.indexOf.call(n.children,t);n.insertBefore(r,n.children[u+1])};i.html=function(n,t){n=n.length?n:[n];n.forEach(function(n){n.innerHTML=t})};i.attr=function(n,t,u){if(t==="class"&&(t="className"),i.hasOwnOrPrototypeProperty(n,t))try{n[t]=u}catch(f){if(r)r(n).attr(t,u);else throw f;}else u===!1?n.removeAttribute(t):n.setAttribute(t,u);return n};i.prop=function(n,t,i){if(typeof i=="undefined")
return n&&n[t];n[t]=i};i.offset=function(n){var t=n.getBoundingClientRect();return n.offsetWidth/n.offsetHeight>n.clientWidth/n.clientHeight&&(t={left:t.left*100,right:t.right*100,top:t.top*100,bottom:t.bottom*100,width:t.width*100,height:t.height*100}),t};i.width=function(n,t){if(t)return n.style.width=(""+t).replace(/px$/,"")+"px";var r=i.offset(n).width;return typeof r=="undefined"?n.offsetWidth:r};i.height=function(n,t){if(t)return n.style.height=(""+t).replace(/px$/,"")+"px";var r=i.offset(n).height;return typeof r=="undefined"?n.offsetHeight:r};i.lastChild=function(n){return n.children[n.children.length-1]};i.hasParent=function(n,t){for(var r=n.parentElement;r;){if(typeof t!="string"){if(r===t)return!0}else if(i.matches(r,t))return!0;r=r.parentElement}return!1};i.createAbsoluteUrl=function(n){return i.createElement("a",{href:n}).href};i.xhrGet=function(n,t,i){var r=new XMLHttpRequest;r.onreadystatechange=function(){if(this.readyState===4){if(this.status>=400)return i();t(this.responseText)}};r.open("get",
n,!0);r.send()};i.pick=function(n,t){var i={};return t.forEach(function(t){n.hasOwnProperty(t)&&(i[t]=n[t])}),i};i.hostname=function(n){return f.toUnicode(n||window.location.hostname)};i.browser={webkit:"WebkitAppearance"in document.documentElement.style};i.getPrototype=function(n){return Object.getPrototypeOf?Object.getPrototypeOf(n):n.__proto__};i.hasOwnOrPrototypeProperty=function(n,t){for(var r=n;r;){if(Object.prototype.hasOwnProperty.call(r,t))return!0;r=i.getPrototype(r)}return!1};i.matches=function(n,t){var i=Element.prototype,r=i.matches||i.matchesSelector||i.mozMatchesSelector||i.msMatchesSelector||i.oMatchesSelector||i.webkitMatchesSelector||function(n){for(var i=this,r=(i.document||i.ownerDocument).querySelectorAll(n),t=0;r[t]&&r[t]!==i;)t++;return r[t]?!0:!1};return r.call(n,t)},function(n){function t(n){return n.replace(/-[a-z]/g,function(n){return n[1].toUpperCase()})}typeof n.setAttribute!="undefined"&&(n.setProperty=function(n,i){return this.setAttribute(t(n),String(i))},n.getPropertyValue=function(
n){return this.getAttribute(t(n))||null},n.removeProperty=function(n){var i=this.getPropertyValue(n);return this.removeAttribute(t(n)),i})}(window.CSSStyleDeclaration.prototype)},{"class-list":36,"computed-style":37,punycode:44}],2:[function(n,t){"use strict";var i=n("../common");t.exports=function(n,t,r,u){var f,h;r=r||"opaque";var e="obj"+(""+Math.random()).slice(2,15),o='<object class="fp-engine" id="'+e+'" name="'+e+'" ',s=navigator.userAgent.indexOf("MSIE")>-1;return o+=s?'classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000">':' data="'+n+'" type="application/x-shockwave-flash">',f={width:"100%",height:"100%",allowscriptaccess:"always",wmode:r,quality:"high",flashvars:"",movie:n+(s?"?"+e:""),name:e},r!=="transparent"&&(f.bgcolor=u||"#333333"),Object.keys(t).forEach(function(n){f.flashvars+=n+"="+t[n]+"&"}),Object.keys(f).forEach(function(n){o+='<param name="'+n+'" value="'+f[n]+'"/>'}),o+="<\/object>",h=i.createElement("div",{},o),i.find("object",h)};window.attachEvent&&window.attachEvent("onbeforeunload",
function(){window.__flash_savedUnloadHandler=window.__flash_unloadHandler=function(){}})},{"../common":1}],3:[function(n){"use strict";function e(n){return/^https?:/.test(n)}var i=n("../flowplayer"),t=n("../common"),o=n("./embed"),u=n("extend-object"),f=n("bean"),r;r=function(n,s){function b(n){function t(n){return("0"+parseInt(n).toString(16)).slice(-2)}if(n=n.match(/^rgb\((\d+),\s*(\d+),\s*(\d+)\)$/),n)return"#"+t(n[1])+t(n[2])+t(n[3])}function k(n){if(n.length===7)return n;var t=n.split("").slice(1);return"#"+t.map(function(n){return n+n}).join("")}function w(n){return/application\/x-mpegurl/i.test(n.type)}var c=n.conf,p,l,h,v,a=[],y={engineName:r.engineName,pick:function(r){var f=u({},function(){var t,f,u;if(i.support.flashVideo){for(f=0;f<r.length;f++)if(u=r[f],/mp4|flv|flash/i.test(u.type)&&(t=u),n.conf.swfHls&&/mpegurl/i.test(u.type)&&(t=u),t&&!/mp4/i.test(t.type))return t;return t}}());if(f)return!f.src||e(f.src)||n.conf.rtmp||f.rtmp||(f.src=t.createAbsoluteUrl(f.src)),f},suspendEngine:function(){v=!0}
,resumeEngine:function(){v=!1},load:function(r){function ot(n){return n.replace(/&amp;/g,"%26").replace(/&/g,"%26").replace(/=/g,"%3D")}var nt,ft,ht,d,tt,it,et,ct,lt;p=r;a.forEach(function(n){clearTimeout(n)});var rt=t.findDirect("video",s)[0]||t.find(".fp-player > video",s)[0],g=r.src,ut=e(g),st=function(){t.removeNode(rt)},at=function(n){return n.some(function(n){return!!rt.canPlayType(n.type)})};if(i.support.video&&t.prop(rt,"autoplay")&&at(r.sources))f.one(rt,"timeupdate",st);else st();if(nt=r.rtmp||c.rtmp,ut||nt||(g=t.createAbsoluteUrl(g)),h&&w(r)&&h.data!==t.createAbsoluteUrl(c.swfHls)&&y.unload(),h)["live","preload","loop"].forEach(function(n){r.hasOwnProperty(n)&&h.__set(n,r[n])}),Object.keys(r.flashls||{}).forEach(function(n){h.__set("hls_"+n,r.flashls[n])}),ft=!1,!ut&&nt?h.__set("rtmp",nt.url||nt):(ht=h.__get("rtmp"),ft=!!ht,h.__set("rtmp",null)),h.__play(g,ft||r.rtmp&&r.rtmp!==c.rtmp);else{l="fpCallback"+(""+Math.random()).slice(3,15);g=ot(g);d={hostname:c.embedded?t.hostname(c.hostname):t.hostname(
location.hostname),url:g,callback:l};s.getAttribute("data-origin")&&(d.origin=s.getAttribute("data-origin"));["proxy","key","autoplay","preload","subscribe","live","loop","debug","splash","poster","rtmpt"].forEach(function(n){c.hasOwnProperty(n)&&(d[n]=c[n]);r.hasOwnProperty(n)&&(d[n]=r[n]);(c.rtmp||{}).hasOwnProperty(n)&&(d[n]=(c.rtmp||{})[n]);(r.rtmp||{}).hasOwnProperty(n)&&(d[n]=(r.rtmp||{})[n])});c.splash&&(d.autoplay=!0);c.rtmp&&(d.rtmp=c.rtmp.url||c.rtmp);r.rtmp&&(d.rtmp=r.rtmp.url||r.rtmp);Object.keys(r.flashls||{}).forEach(function(n){var t=r.flashls[n];d["hls_"+n]=t});tt=typeof r.hlsQualities!="undefined"?r.hlsQualities:c.hlsQualities;typeof tt!="undefined"&&(d.hlsQualities=tt?encodeURIComponent(JSON.stringify(tt)):tt);c.bufferTime!==undefined&&(d.bufferTime=c.bufferTime);c.bufferTimeMax!==undefined&&(d.bufferTimeMax=c.bufferTimeMax);ut&&delete d.rtmp;d.rtmp&&(d.rtmp=ot(d.rtmp));it=c.bgcolor||t.css(s,"background-color")||"";it.indexOf("rgb")===0?et=b(it):it.indexOf("#")===0&&(et=k(it));d.initialVolume=
n.volumeLevel;ct=w(r)?c.swfHls:c.swf;h=o(ct,d,c.wmode,et)[0];lt=t.find(".fp-player",s)[0];t.prepend(lt,h);n.off("quality.flashengine").on("quality.flashengine",function(t,i,r){var u=typeof n.video.hlsQualities!="undefined"?n.video.hlsQualities:n.conf.hlsQualities;if(u)try{h.__quality(r)}catch(f){n.debug("Error changing quality in flash engine",f)}});setTimeout(function(){try{if(!h.PercentLoaded())return n.trigger("error",[n,{code:7,url:c.swf}])}catch(t){}},5e3);a.push(setTimeout(function(){typeof h.PercentLoaded=="undefined"&&n.trigger("flashdisabled",[n])},15e3));a.push(setTimeout(function(){typeof h.PercentLoaded=="undefined"&&n.trigger("flashdisabled",[n,!1])},500));n.off("resume.flashhack").on("resume.flashhack",function(){var t=setTimeout(function(){var i=h.__status().time,t=setTimeout(function(){n.playing&&!n.loading&&h.__status().time===i&&n.trigger("flashdisabled",[n])},400);a.push(t);n.one("seek.flashhack pause.flashhack load.flashack",function(){clearTimeout(t)})},800);a.push(t);n.one("progress",function(
){clearTimeout(t)})});h.pollInterval=setInterval(function(){if(h&&!v){var t=h.__status?h.__status():null;t&&((n.conf.live||n.live||r.live)&&(r.seekOffset=t.seekOffset,r.duration=t.duration+t.seekOffset),n.playing&&t.time&&t.time!==n.video.time&&n.trigger("progress",[n,t.time]),r.buffer=t.buffer/r.bytes*r.duration,n.trigger("buffer",[n,r.buffer]),!r.buffered&&t.time>0&&(r.buffered=!0,n.trigger("buffered",[n])))}},250);window[l]=function(t,i){var r=p,e,o;c.debug&&(t.indexOf("debug")===0&&i&&i.length?console.log.apply(console,["-- "+t].concat(i)):console.log("--",t,i));e={type:t};switch(t){case"ready":i=u(r,i);break;case"click":e.flash=!0;break;case"keydown":e.which=i;break;case"seek":r.time=i;break;case"status":n.trigger("progress",[n,i.time]);i.buffer<r.bytes&&!r.buffered?(r.buffer=i.buffer/r.bytes*r.duration,n.trigger("buffer",r.buffer)):r.buffered||(r.buffered=!0,n.trigger("buffered"));break;case"metadata":o=atob(i);i={key:o.substr(10,4),data:o.substr(21)}}t==="click"||t==="keydown"?(e.target=s,f.fire(s,t,[e])):
t!="buffered"&&t!=="unload"?setTimeout(function(){n.trigger(e,[n,i])},1):t==="unload"&&n.trigger(e,[n,i])}}},speed:t.noop,unload:function(){h&&h.__unload&&h.__unload();try{l&&window[l]&&delete window[l]}catch(i){}t.find("object",s).forEach(t.removeNode);h=0;n.off(".flashengine");n.off(".flashhack");clearInterval(h.pollInterval);a.forEach(function(n){clearTimeout(n)})}};return["pause","resume","seek","volume"].forEach(function(t){y[t]=function(i){try{n.ready&&(i===undefined?h["__"+t]():h["__"+t](i))}catch(r){if(typeof h["__"+t]=="undefined")return n.trigger("flashdisabled",[n]);throw r;}}}),y};r.engineName="flash";r.canPlay=function(n,t){return i.support.flashVideo&&/video\/(mp4|flash|flv)/i.test(n)||i.support.flashVideo&&t.swfHls&&/mpegurl/i.test(n)};i.engines.push(r)},{"../common":1,"../flowplayer":31,"./embed":2,bean:34,"extend-object":39}],4:[function(n){"use strict";function u(n){return typeof Hls=="undefined"?!1:/mpegurl/.test(n)&&window.Hls.isSupported()}var i=n("../flowplayer"),f=i.support,r=i.common,e=
i.bean,o=n("./html5-factory"),t;t=function(n,f){function a(u,o,a){var v=i.extend({recoverMediaError:!0},n.conf.hlsjs,u.hlsjs),p,w,y;s=t.hls=new h(v);t.extensions.forEach(function(t){t({hls:s,player:n,root:f,videoTag:o})});s.loadSource(u.src);a.resume=function(){n.live&&!n.dvr&&(o.currentTime=s.liveSyncPosition||0);o.play()};a.seek=function(t){try{o.currentTime=n.live&&!n.dvr?Math.min(t,s.liveSyncPosition):t}catch(i){n.debug("Failed to seek to ",t,i)}};n.on("quality",function(n,t,i){s.nextLevel=l=i});y=function(t){n.debug("hlsjs - recovery");r.removeClass(f,"is-paused");r.addClass(f,"is-seeking");e.one(o,"seeked",function(){o.paused&&(r.removeClass(f,"is-poster"),n.poster=!1,o.play());r.removeClass(f,"is-seeking")});if(t)return s.startLoad();var i=performance.now();!p||i-p>3e3?(p=performance.now(),s.recoverMediaError()):(!w||i-w>3e3)&&(w=performance.now(),s.swapAudioCodec(),s.recoverMediaError())};s.on(h.Events.MANIFEST_PARSED,function(t,i){var h=u.hlsQualities||n.conf.hlsQualities,f,v={},e=i.levels,a,y;if(h===
!1)return s.attachMedia(o);if(h==="drive")switch(e.length){case 4:f=[1,2,3];break;case 5:f=[1,2,3,4];break;case 6:f=[1,3,4,5];break;case 7:f=[1,3,5,6];break;case 8:f=[1,3,6,7];break;default:f=e.length<3||e[0].height&&e[2].height&&e[0].height===e[2].height?[]:[1,2]}u.qualities=[{value:-1,label:"Auto"}];Array.isArray(h)&&(u.qualities=[],f=h.map(function(n){return typeof n.level!="undefined"&&(v[n.level]=n.label),typeof n.level!="undefined"?n.level:n}));a=-2;u.qualities=u.qualities.concat(e.map(function(n,t){if(f&&f.indexOf(t)===-1)return!1;var i=v[t]||Math.min(n.width,n.height)+"p";return v[t]||h==="drive"||(i+=" ("+Math.round(n.bitrate/1e3)+"k)"),t===l&&(a=t),{value:t,label:i}})).filter(r.identity);y=u.quality=a===-2?u.qualities[0].value||-1:a;y!==s.currentLevel&&(s.currentLevel=y);s.attachMedia(o);c&&u.src!==c&&o.play();c=u.src});s.on(h.Events.ERROR,function(t,i){if(i.fatal)if(v.recoverNetworkError&&i.type===h.ErrorTypes.NETWORK_ERROR)y(!0);else if(v.recoverMediaError&&i.type===h.ErrorTypes.MEDIA_ERROR)y(!1);
else{var r=5;i.type===h.ErrorTypes.NETWORK_ERROR&&(r=2);i.type===h.ErrorTypes.MEDIA_ERROR&&(r=3);s.destroy();n.trigger("error",[n,{code:r}])}});return{handlers:{error:function(n,t){var i=t.error&&t.error.code;return v.recoverMediaError&&i===3||!i?(n.preventDefault(),y(!1),!0):v.recoverNetworkError&&i===2?(n.preventDefault(),y(!0),!0):void 0}}}}var s,h=window.Hls,l,c;return o("hlsjs-lite",n,f,u,a)};t.canPlay=function(n,t){return f.browser.safari&&!(t.clip&&t.clip.hlsjs||t.hlsjs||{}).safari?!1:i.support.video&&u(n)};t.engineName="hlsjs-lite";t.plugin=function(n){t.extensions.push(n)};t.extensions=[];i.engines.push(t)},{"../flowplayer":31,"./html5-factory":5}],5:[function(n,t){function c(n,t,f,o,c){function b(n,c,l,a){var y=f.getAttribute("data-flowplayer-instance-id"),v,p;if(n.listeners&&n.listeners.hasOwnProperty(y)){n.listeners[y]=l;return}(n.listeners||(n.listeners={}))[y]=l;r.on(c,"error",function(i){try{o(i.target.getAttribute("type"))&&t.trigger("error",[t,{code:4,video:e(l,{src:n.src,url:n.src})}])}catch(r)
{}});t.on("shutdown",function(){r.off(c);r.off(n,".dvrhack");t.off(".loophack")});if(v={},p=function(n){n.kind==="metadata"&&(n.mode="hidden",n.addEventListener("cuechange",function(){n.activeCues.length&&t.trigger("metadata",[t,n.activeCues[0].value])},!1))},n&&n.textTracks&&n.textTracks.length&&Array.prototype.forEach.call(n.textTracks,p),n&&n.textTracks&&typeof n.textTracks.addEventListener=="function"&&n.textTracks.addEventListener("addtrack",function(n){p(n.track)},!1),t.conf.dvr||t.dvr||l.dvr)r.on(n,"progress.dvrhack",function(){n.seekable.length&&((t.video.duration=n.seekable.end(null),t.video.seekOffset=n.seekable.start(null),t.trigger("dvrwindow",[t,{start:n.seekable.start(null),end:n.seekable.end(null)}]),n.currentTime>=n.seekable.start(null))||(n.currentTime=n.seekable.start(null)))});return Object.keys(s).forEach(function(r){var o=s[r],c;(r==="webkitendfullscreen"&&t.conf.disableInline&&(o="unload"),o)&&(c=function(s){var v,c,w,b,p,k;if(l=n.listeners[y],s.target&&i.hasClass(s.target,"fp-engine")){
if(/progress/.test(o)||t.debug(r,"->",o,s),v=function(n){t.trigger(n||o,[t,c])},!t.ready&&!/ready|error/.test(o)||!o||!i.find("video",f).length){if(o==="resume")t.one("ready",function(){setTimeout(function(){v()})});return}if(o==="unload"){t.unload();return}switch(o){case"ready":if(t.ready)return t.debug("Player already ready, not sending duplicate ready event");if((!n.duration||n.duration===Infinity)&&!t.live)return t.debug("No duration and VOD setup, not sending ready event");if(c=e(l,{duration:n.duration<Number.MAX_VALUE?n.duration:0,width:n.videoWidth,height:n.videoHeight,url:n.currentSrc}),c.seekable=c.duration,t.debug("Ready: ",c),!t.live&&!c.duration&&!u.hlsDuration&&r==="loadeddata"){w=function(){c.duration=n.duration;try{c.seekable=n.seekable&&n.seekable.end(null)}catch(t){}v();n.removeEventListener("durationchange",w);i.toggleClass(f,"is-live",!1)};n.addEventListener("durationchange",w);b=function(){t.ready||n.duration||(c.duration=0,i.addClass(f,"is-live"),v());n.removeEventListener("timeupdate",b)}
;n.addEventListener("timeupdate",b);return}break;case"progress":case"seek":if(n.currentTime>0||t.live)c=Math.max(n.currentTime,0);else if(o==="seek"&&n.currentTime===0)c=0;else if(o=="progress")return;break;case"buffer":for(c=[],p=0;p<n.buffered.length;p++)c.push({start:n.buffered.start(p),end:n.buffered.end(p)});n.buffered.length&&n.buffered.end(null)===n.duration&&v("buffered");break;case"speed":c=h(n.playbackRate);break;case"volume":c=h(n.muted?0:n.volume);break;case"error":try{if(a&&a.handlers&&a.handlers.error&&(k=a.handlers.error(s,n),k))return;c=(s.srcElement||s.originalTarget).error;c.video=e(l,{src:n.src,url:n.src})}catch(d){return}}v()}},f.addEventListener(r,c,!0),v[r]||(v[r]=[]),v[r].push(c))}),v}var a=i.findDirect("video",f)[0]||i.find(".fp-player > video",f)[0],v=t.conf,w,p,y;return y={engineName:n,pick:function(n){var t=u.video&&n.filter(function(n){return o(n.type)})[0];if(t)return typeof t.src=="string"&&(t.src=i.createAbsoluteUrl(t.src)),t},load:function(n){var d=i.find(".fp-player",f)[0],w=!1,
e,o,k,s,h;a||(a=document.createElement("video"),i.prepend(d,a),a.autoplay=!!v.splash,w=!0);i.addClass(a,"fp-engine");i.find("track",a).forEach(i.removeNode);a.preload="none";v.nativesubtitles||i.attr(a,"crossorigin",!1);v.disableInline||(a.setAttribute("webkit-playsinline","true"),a.setAttribute("playsinline","true"));u.inlineVideo||i.css(a,{position:"absolute",top:"-9999em"});u.subtitles&&v.nativesubtitles&&n.subtitles&&n.subtitles.length&&(i.addClass(a,"native-subtitles"),e=n.subtitles,o=function(n){var t=a.textTracks;t.length&&(t[0].mode=n)},e.some(function(n){return!i.isSameDomain(n.src)})&&i.attr(a,"crossorigin","anonymous"),typeof a.textTracks.addEventListener=="function"&&a.textTracks.addEventListener("addtrack",function(){o("disabled");o("showing")}),e.forEach(function(n){a.appendChild(i.createElement("track",{kind:"subtitles",srclang:n.srclang||"en",label:n.label||"en",src:n.src,"default":n["default"]}))}));r.off(a,"timeupdate",i.noop);r.on(a,"timeupdate",i.noop);if(i.prop(a,"loop",!1),t.off(".loophack"),
n.loop||v.loop)t.on("finish.loophack",function(){t.resume()});if(typeof p!="undefined"&&(a.volume=p),k=c(n,a,y),v.autoplay||v.splash||n.autoplay)if(t.debug("Autoplay / Splash setup, try to start video"),a.load(),s=function(){var n,i;try{n=a.play();n&&n.catch&&(i=function(n){if(n.name==="AbortError"&&n.code===20)return w?void 0:a.play().catch(i);if(!v.mutedAutoplay)throw new Error("Unable to autoplay");return t.debug("Play errored, trying muted",n),t.mute(!0,!0),a.play()},n.catch(i).catch(function(){v.autoplay=!1;t.mute(!1,!0);t.trigger("stop",[t])}))}catch(r){t.debug("play() error thrown",r)}},a.readyState>0)s();else r.one(a,"canplay",s);if(y._listeners=b(a,i.find("source",a).concat(a),n,k)||y._listeners,!v.autoplay&&!v.splash&&!n.autoplay){h=function(){(u.preloadMetadata&&(a.preload="metadata"),l(f))&&(t.debug("player is in viewport, preload"),u.preloadMetadata||a.load(),r.off(document,"scroll.preloadviewport"))};r.off(document,"scroll.preloadviewport");r.on(document,"scroll.preloadviewport",function(){window.
requestAnimationFrame(h)});h()}},mute:function(n){a.muted=!!n;t.trigger("mute",[t,n]);t.trigger("volume",[t,n?0:a.volume])},pause:function(){a.pause()},resume:function(){a.play()},speed:function(n){a.playbackRate=n},seek:function(n){var i=a.paused||t.finished;try{if(a.currentTime=n,i)r.one(a,"seeked",function(){a.pause()})}catch(u){}},volume:function(n){p=n;a&&(a.volume=n,n&&y.mute(!1))},unload:function(){r.off(document,"scroll.preloadviewport");i.find("video.fp-engine",f).forEach(function(n){n.src="MediaSource"in window?URL.createObjectURL(new MediaSource):"";i.removeNode(n)});w=clearInterval(w);var n=f.getAttribute("data-flowplayer-instance-id");delete a.listeners[n];a=0;y._listeners&&Object.keys(y._listeners).forEach(function(n){y._listeners[n].forEach(function(t){f.removeEventListener(n,t,!0)})})}}}function h(n,t){return t=t||100,Math.round(n*t)/t}function l(n){var t=n.getBoundingClientRect();return t.top>=0&&t.left>=0&&t.bottom<=(window.innerHeight||document.documentElement.clientHeight)+t.height&&t.right<=
(window.innerWidth||document.documentElement.clientWidth)+t.width}var f=n("../flowplayer"),i=f.common,u=f.support,r=f.bean,e=f.extend,o=u.browser.safari&&!u.iOS,s={ended:"finish",pause:"pause",play:"resume",timeupdate:"progress",volumechange:"volume",ratechange:"speed",seeked:"seek",loadedmetadata:o?0:"ready",canplaythrough:o?"ready":0,durationchange:"ready",error:"error",dataunavailable:"error",webkitendfullscreen:!f.support.inlineVideo&&"unload",progress:"buffer"};t.exports=c},{"../flowplayer":31}],6:[function(n){"use strict";function o(n){return/mpegurl/i.test(n)?"application/x-mpegurl":n}function u(n){return/^(video|application)/i.test(n)||(n=o(n)),!!e.canPlayType(n).replace("no","")}var i=n("../flowplayer"),r=i.common,f=n("./html5-factory"),e=document.createElement("video"),t;t=function(n,t){return f("html5",n,t,u,function(n,t){t.currentSrc!==n.src?(r.find("source",t).forEach(r.removeNode),t.src=n.src,t.type=n.type):n.autoplay&&t.load()})};t.canPlay=function(n){return i.support.video&&u(n)};t.engineName=
"html5";i.engines.push(t)},{"../flowplayer":31,"./html5-factory":5}],7:[function(n){"use strict";var i=n("../flowplayer"),t=n("../common"),r=n("bean");i(function(n,i){n.on("ready",function(){var n=t.find("video.fp-engine",i)[0];n&&(n.setAttribute("x-webkit-airplay","allow"),window.WebKitPlaybackTargetAvailabilityEvent)&&(n.addEventListener("webkitplaybacktargetavailabilitychanged",function(n){var r,u;n.availability==="available"&&(r=t.find(".fp-header",i)[0],t.find(".fp-airplay",r).forEach(t.removeNode),u=t.createElement("a",{"class":"fp-airplay fp-icon",title:"Play on AirPlay device"}),r.insertBefore(u,t.find(".fp-fullscreen",r)[0]))}),n.addEventListener("webkitcurrentplaybacktargetiswirelesschanged",function(){var r=t.find(".fp-airplay",i)[0];r&&t.toggleClass(r,"fp-active",n.webkitCurrentPlaybackTargetIsWireless)}))});r.on(i,"click",".fp-airplay",function(n){n.preventDefault();var r=t.find("video.fp-engine",i)[0];r.webkitShowPlaybackTargetPicker()})})},{"../common":1,"../flowplayer":31,bean:34}],8:[function(
n){"use strict";var i=n("../flowplayer"),r=n("./resolve").TYPE_RE,u=n("scriptjs"),t=n("bean");i(function(n,i){var c=n.conf.analytics,e=0,o=0,f,h,s;if(c){typeof _gat=="undefined"&&u("//google-analytics.com/ga.js");h=function(){var n=_gat._getTracker(c);return n._setAllowLinker(!0),n};s=function(t,u,o){if(o=o||n.video,e&&typeof _gat!="undefined"){var s=h();s._trackEvent("Video / Seconds played",n.engine.engineName+"/"+o.type,o.title||i.getAttribute("title")||o.src.split("/").slice(-1)[0].replace(r,""),Math.round(e/1e3));e=0;f&&(clearTimeout(f),f=null)}};n.bind("load unload",s).bind("progress",function(){n.seeking||(e+=o?+new Date-o:0,o=+new Date);f||(f=setTimeout(function(){f=null;var n=h();n._trackEvent("Flowplayer heartbeat","Heartbeat","",0,!0)},6e5))}).bind("pause",function(){o=0});n.bind("shutdown",function(){t.off(window,"unload",s)});t.on(window,"unload",s)}})},{"../flowplayer":31,"./resolve":21,bean:34,scriptjs:45}],9:[function(n){"use strict";var i=n("../flowplayer"),t=n("../common"),r=n("bean"),u=n("scriptjs");
i(function(n,i){function c(){var n,t,i;n=h.applicationId||chrome.cast.media.DEFAULT_MEDIA_RECEIVER_APP_ID;t=new chrome.cast.SessionRequest(n);i=new chrome.cast.ApiConfig(t,l,a);chrome.cast.initialize(i,v,y)}function l(){console.log("sessionListener")}function a(n){n===chrome.cast.ReceiverAvailability.AVAILABLE&&p()}function v(){}function y(){console.log("onError")}function p(){var n=t.find(".fp-header",i)[0],u;if(n){t.find(".fp-chromecast",n).forEach(t.removeNode);t.find(".fp-chromecast-engine",i).forEach(t.removeNode);o=t.createElement("a",{"class":"fp-chromecast fp-icon",title:"Play on Cast device"});n.insertBefore(o,t.find(".fp-fullscreen",n)[0]);var r=t.createElement("div",{"class":"fp-chromecast-engine"}),f=t.createElement("p",{"class":"fp-chromecast-engine-status"}),e=t.createElement("p",{"class":"fp-chromecast-engine-icon"});r.appendChild(e);r.appendChild(f);u=t.find(".fp-engine",i)[0];u?u.parentNode.insertBefore(r,u):t.prepend(t.find(".fp-player",i)[0]||i,r)}}function s(){clearInterval(e);e=null;n.release(
);t.toggleClass(i,"is-chromecast",!1);t.toggleClass(o,"fp-active",!1)}if(n.conf.chromecast!==!1){u("https://www.gstatic.com/cv/js/sender/v1/cast_sender.js");window.__onGCastApiAvailable=function(n){n&&c()};var h=n.conf.chromecast||{},f,e,o;r.on(i,"click",".fp-chromecast",function(r){if(r.preventDefault(),f){n.trigger("pause",[n]);f.stop();f=null;s();return}n.playing&&n.pause();chrome.cast.requestSession(function(r){function l(r){r.addUpdateListener(function(u){if(f){e=e||setInterval(function(){n.trigger("progress",[n,r.getEstimatedTime()])},500);u?(t.toggleClass(i,"is-chromecast",!0),t.toggleClass(o,"fp-active",!0),n.hijack({pause:function(){r.pause()},resume:function(){r.play()},seek:function(n){var t=new chrome.cast.media.SeekRequest;t.currentTime=n;r.seek(t)}})):(s(),n.trigger("finish",[n]));var h=r.playerState;n.paused&&h===chrome.cast.media.PlayerState.PLAYING&&n.trigger("resume",[n]);n.playing&&h===chrome.cast.media.PlayerState.PAUSED&&n.trigger("pause",[n]);t.toggleClass(i,"is-loading",h===chrome.cast.
media.PlayerState.BUFFERING)}})}var u,h,c;f=r;u=f.receiver.friendlyName;t.html(t.find(".fp-chromecast-engine-status")[0],"Playing on device "+u);h=new chrome.cast.media.MediaInfo(n.video.src);c=new chrome.cast.media.LoadRequest(h);f.loadMedia(c,l,function(){})},function(n){console.error("requestSession error",n)})})}})},{"../common":1,"../flowplayer":31,bean:34,scriptjs:45}],10:[function(n){"use strict";var i=n("../flowplayer"),t=n("../common"),r=n("bean");i(function(n,i){function s(n){i.className=i.className.replace(c," ");n>=0&&t.addClass(i,"cue"+n)}function e(t){var i=t&&!isNaN(t.time)?t.time:t;return i<0&&(i=n.video.duration+i),Math.round(i/.125)*.125}var c=/ ?cue\d+ ?/,o=!1,u={},f=-.125,h=function(t){s(t.index);n.trigger("cuepoint",[n,t])};n.on("progress",function(n,t,i){if(!o)for(var r=e(i);f<r;)(f+=.125,u[f])&&u[f].forEach(h)}).on("unload",s).on("beforeseek",function(n){setTimeout(function(){n.defaultPrevented||(o=!0)})}).on("seek",function(n,t,i){s();f=e(i||0)-.125;o=!1;!i&&u[0]&&u[0].forEach(h)}).on(
"ready",function(t,i,r){f=-.125;var u=r.cuepoints||n.conf.cuepoints||[];n.setCuepoints(u)}).on("finish",function(){for(var t=e(n.video.duration);f<t;)(f+=.125,u[f])&&u[f].forEach(h);f=-.125});n.conf.generate_cuepoints&&n.bind("load",function(){t.find(".fp-cuepoint",i).forEach(t.removeNode)});n.setCuepoints=function(t){return n.cuepoints=[],u={},t.forEach(n.addCuepoint),n};n.addCuepoint=function(f){var s,c,l,o,h;if(n.cuepoints||(n.cuepoints=[]),typeof f=="number"&&(f={time:f}),f.index=0,s=e(f),u[s]||(u[s]=[]),u[s].push(f),n.cuepoints.length&&(f.index=Math.max.apply(null,n.cuepoints.map(function(n){return n.index}))+1),n.cuepoints.push(f),n.conf.generate_cuepoints&&f.visible!==!1){c=n.video.duration;l=t.find(".fp-timeline",i)[0];t.css(l,"overflow","visible");o=f.time||f;o<0&&(o=c+o);h=t.createElement("a",{className:"fp-cuepoint fp-cuepoint"+f.index});t.css(h,"left",o/c*100+"%");l.appendChild(h);r.on(h,"mousedown",function(t){t.preventDefault();t.stopPropagation();n.seek(o)})}return n};n.removeCuepoint=function(
r){var o,f,h,s;if(typeof r=="number"&&(r=n.cuepoints.filter(function(n){return n.index===r})[0]),o=n.cuepoints.indexOf(r),f=e(r),o!==-1)return(n.cuepoints=n.cuepoints.slice(0,o).concat(n.cuepoints.slice(o+1)),h=t.find(".fp-timeline",i)[0],t.find(".fp-cuepoint"+r.index,h).forEach(t.removeNode),s=u[f].indexOf(r),s===-1)?void 0:(u[f]=u[f].slice(0,s).concat(u[f].slice(s+1)),n)}})},{"../common":1,"../flowplayer":31,bean:34}],11:[function(n){"use strict";var i=n("../flowplayer"),r=n("bean"),t=n("../common"),u=n("./util/clipboard");i(function(n,i){if(n.conf.embed!==!1&&n.conf.share!==!1){var f=t.find(".fp-share-menu",i)[0],e=t.createElement("a",{"class":"fp-icon fp-embed",title:"Copy to your site"},"Embed");t.append(f,e);n.embedCode=function(){var r=n.conf.embed||{},o=n.video,u=r.width||o.width||t.width(i),f=r.height||o.height||t.height(i),e=n.conf.ratio,s='<iframe src="'+n.shareUrl(!0)+'" allowfullscreen style="border:none;';return r.width||r.height?(isNaN(u)||(u+="px"),isNaN(f)||(f+="px"),s+"width:"+u+";height:"+f+
';"><\/iframe>'):((!e||n.conf.adaptiveRatio)&&(e=f/u),'<div style="position:relative;width:100%;display:inline-block;">'+s+'position:absolute;top:0;left:0;width:100%;height:100%;"><\/iframe><div style="padding-top:'+e*100+'%;"><\/div><\/div>')};r.on(i,"click",".fp-embed",function(){u(n.embedCode(),function(){n.message("The embed code is now on your clipboard",2e3)},function(){n.textarea(n.embedCode(),"Copy the code below to embed your video")})})}})},{"../common":1,"../flowplayer":31,"./util/clipboard":30,bean:34}],12:[function(n,t){"use strict";t.exports=function(n,t){var f;t||(t=document.createElement("div"));var i={},r={},u=function(n,u,f){var o=n.split(".")[0],e=function(s){f&&(t.removeEventListener(o,e),i[n].splice(i[n].indexOf(e),1));var h=[s].concat(r[s.timeStamp+s.type]||[]);u&&u.apply(undefined,h)};t.addEventListener(o,e);i[n]||(i[n]=[]);i[n].push(e)};n.on=n.bind=function(t,i){var r=t.split(" ");return r.forEach(function(n){u(n,i)}),n};n.one=function(t,i){var r=t.split(" ");return r.forEach(function(
n){u(n,i,!0)}),n};f=function(n,t){return t.filter(function(t){return n.indexOf(t)===-1}).length===0};n.off=n.unbind=function(r){var u=r.split(" ");return u.forEach(function(n){var u=n.split(".").slice(1),r=n.split(".")[0];Object.keys(i).filter(function(n){var t=n.split(".").slice(1);return(!r||n.indexOf(r)===0)&&f(t,u)}).forEach(function(n){var r=i[n],u=n.split(".")[0];i[n]=r.filter(function(n){return t.removeEventListener(u,n),!1})})}),n};n.trigger=function(i,u,f){if(i){u=(u||[]).length?u||[]:[u];var e=document.createEvent("Event"),o;return o=i.type||i,e.initEvent(o,!1,!0),Object.defineProperty&&(e.preventDefault=function(){Object.defineProperty(this,"defaultPrevented",{get:function(){return!0}})}),r[e.timeStamp+e.type]=u,t.dispatchEvent(e),f?e:n}}};t.exports.EVENTS=["beforeseek","disable","error","finish","fullscreen","fullscreen-exit","load","mute","pause","progress","ready","resume","seek","speed","stop","unload","volume","boot","shutdown"]},{}],13:[function(n){"use strict";var i=n("../flowplayer"),t=n("../common"),
r=n("bean");i(function(n,i){var u=n.conf,f,e;if(u.share!==!1&&u.facebook){n.facebook=function(){var i,n,r=550,t=420,f=screen.height,e=screen.width,o=typeof u.facebook=="string"?u.facebook:window.location.toString();i=Math.round(e/2-r/2);n=0;f>t&&(n=Math.round(f/2-t/2));window.open("https://www.facebook.com/sharer.php?s=100&p[url]="+encodeURIComponent(o),"sharer","scrollbars=yes,resizable=yes,toolbar=no,location=yes,width="+r+",height="+t+",left="+i+",top="+n)};f=t.find(".fp-share-menu",i)[0];e=t.createElement("a",{"class":"fp-icon fp-facebook"},"Facebook");t.append(f,e);r.on(i,"click",".fp-facebook",function(){n.facebook()})}})},{"../common":1,"../flowplayer":31,bean:34}],14:[function(n){"use strict";var u=n("../flowplayer"),o=n("bean"),t=n("../common"),f="fullscreen",e="fullscreen-exit",i,r=u.support.fullscreen;o.on(document,"fullscreenchange.ffscr webkitfullscreenchange.ffscr mozfullscreenchange.ffscr MSFullscreenChange.ffscr",function(n){var t=document.webkitCurrentFullScreenElement||document.mozFullScreenElement||
document.fullscreenElement||document.msFullscreenElement||n.target,r;(i||t.parentNode&&t.parentNode.getAttribute("data-flowplayer-instance-id"))&&(r=i||u(t.parentNode),t&&!i?i=r.trigger(f,[r]):(i.trigger(e,[i]),i=null))});u(function(n,u){var o=t.createElement("div",{className:"fp-player"}),s,h,c,l;if(Array.prototype.map.call(u.children,t.identity).forEach(function(n){t.matches(n,".fp-ratio,script")||o.appendChild(n)}),u.appendChild(o),n.conf.fullscreen){s=window;n.isFullscreen=!1;n.fullscreen=function(t){if(!n.disabled)return t===undefined&&(t=!n.isFullscreen),t&&(h=s.scrollY,c=s.scrollX),r?t?["requestFullScreen","webkitRequestFullScreen","mozRequestFullScreen","msRequestFullscreen"].forEach(function(n){typeof o[n]=="function"&&(o[n](Element.ALLOW_KEYBOARD_INPUT),n!=="webkitRequestFullScreen"||document.webkitFullscreenElement||o[n]())}):["exitFullscreen","webkitCancelFullScreen","mozCancelFullScreen","msExitFullscreen"].forEach(function(n){typeof document[n]=="function"&&document[n]()}):n.trigger(t?f:e,[n]),n}
;n.on("mousedown.fs",function(){+new Date-l<150&&n.ready&&n.fullscreen();l=+new Date});n.on(f,function(){t.addClass(u,"is-fullscreen");t.toggleClass(u,"fp-minimal-fullscreen",t.hasClass(u,"fp-minimal"));t.removeClass(u,"fp-minimal");r||t.css(u,"position","fixed");n.isFullscreen=!0}).on(e,function(){var i;t.toggleClass(u,"fp-minimal",t.hasClass(u,"fp-minimal-fullscreen"));t.removeClass(u,"fp-minimal-fullscreen");r||n.engine!=="html5"||(i=u.css("opacity")||"",t.css(u,"opacity",0));r||t.css(u,"position","");t.removeClass(u,"is-fullscreen");r||n.engine!=="html5"||setTimeout(function(){u.css("opacity",i)});n.isFullscreen=!1;s.scrollTo(c,h)}).on("unload",function(){n.isFullscreen&&n.fullscreen()});n.on("shutdown",function(){i=null;t.removeNode(o)})}})},{"../common":1,"../flowplayer":31,bean:34}],15:[function(n){"use strict";var u=n("../flowplayer"),r=n("bean"),t,i,f=n("../common");r.on(document,"keydown.fp",function(n){var i=t,e=n.ctrlKey||n.metaKey||n.altKey,r=n.which,u=i&&i.conf,f;if(i&&u.keyboard&&!i.disabled&&!e&&
i.ready){if(n.shiftKey)return r==39?i.speed(!0):r==37&&i.speed(!1),n.preventDefault();if(r<58&&r>47)return n.preventDefault(),i.seekTo(r-48);f=function(){switch(r){case 38:case 75:return i.volume(i.volumeLevel+.15),!0;case 40:case 74:return i.volume(i.volumeLevel-.15),!0;case 39:case 76:return i.seeking=!0,i.seek(!0),!0;case 37:case 72:return i.seeking=!0,i.seek(!1),!0;case 190:return i.seekTo(),!0;case 32:return i.toggle(),!0;case 70:return u.fullscreen&&i.fullscreen(),!0;case 77:return i.mute(),!0;case 81:return i.unload(),!0}}();f&&n.preventDefault()}});u(function(n,u){if(n.conf.keyboard){r.on(document,"click",function(r){if(f.hasParent(r.target,u))t=n.disabled?0:n;else{if(t!==n)return;t=0}t&&(i=u)});n.bind("shutdown",function(){i==u&&(i=null)})}})},{"../common":1,"../flowplayer":31,bean:34}],16:[function(n){var i=n("../flowplayer"),t=n("../common"),r=n("bean");i(function(n,i){n.showMenu=function(u,f){var h=t.find(".fp-ui",i)[0],e,o,s;if(t.toggleClass(u,"fp-active",!0),setTimeout(function(){r.one(document,
"click",function(){n.hideMenu(u)})}),e=f,f&&f.tagName&&(e={left:t.offset(f).left,rightFallbackOffset:t.width(f),top:t.offset(f).top+t.height(f)}),!e)return t.css(u,"top","auto");e.rightFallbackOffset=e.rightFallbackOffset||0;o=e.top-t.offset(h).top;s=e.left-t.offset(h).left;t.width(u)+s>t.width(h)&&(s=s-t.width(u)+e.rightFallbackOffset);t.height(u)+o>t.height(h)&&(o=o-t.height(u));t.css(u,{top:o+"px",left:s+"px",right:"auto"})};n.hideMenu=function(n){t.toggleClass(n,"fp-active",!1);t.css(n,{top:"-9999em"})}})},{"../common":1,"../flowplayer":31,bean:34}],17:[function(n){var r=n("../flowplayer"),t=n("../common"),i=n("bean");r(function(n,r){function e(n){var i=t.createElement("div",{className:"fp-message"},n);return u.insertBefore(i,f),setTimeout(function(){t.toggleClass(i,"fp-shown")}),i}function o(n){t.removeNode(n)}var f=t.find(".fp-header",r)[0],u=t.find(".fp-ui",r)[0];n.message=function(n,i){var r=e(n),u=function(){t.toggleClass(r,"fp-shown");setTimeout(function(){o(r)},500)};return i&&setTimeout(u,i),u};n.
textarea=function(n){var r=document.createElement("textarea");r.value=n;r.className="fp-textarea";u.appendChild(r);i.on(document,"click.fptextarea",function(n){if(n.target===r)return r.select();n.stopPropagation();n.preventDefault();t.removeNode(r);i.off(document,"click.fptextarea")})}})},{"../common":1,"../flowplayer":31,bean:34}],18:[function(n){"use strict";var u=n("../flowplayer"),f=/IEMobile/.test(window.navigator.userAgent),t=n("../common"),i=n("bean"),o=n("./ui").format,r=u.support,e=window.navigator.userAgent;(r.touch||f)&&u(function(n,u){var h=r.android,y=h&&!h.firefox,k=/Silk/.test(e),p=h.version||0,w,c,s,a,l,v,b;if(y&&!f){(!/Chrome/.test(e)&&p<4||h.samsung&&p<5)&&(w=n.load,n.load=function(){var i=w.apply(n,arguments);return t.find("video.fp-engine",u)[0].load(),n.trigger("ready",[n,n.video]),i});s=0;a=function(n){c=setInterval(function(){n.video.time=++s;n.trigger("progress",[n,s])},1e3)};n.on("ready pause unload",function(){c&&(clearInterval(c),c=null)});n.on("ready",function(){s=0});n.on("resume",
function(t,i){if(i.live){if(s)return a(i);n.one("progress",function(n,t,i){i===0&&a(t)})}})}r.volume||(t.removeClass(u,"fp-mute"),t.addClass(u,"no-volume"));r.iOS&&t.addClass(u,"fp-mute");t.addClass(u,"is-touch");n.sliders&&n.sliders.timeline&&n.sliders.timeline.disableAnimation();l=!1;i.on(u,"touchmove",function(){l=!0});v=!0;i.on(u,"touchend click",function(i){if(l){l=!1;return}var r=t.find("video.fp-engine",u)[0];if(v&&n.conf.clickToUnMute&&r&&r.muted&&n.conf.autoplay&&(r.muted=!1),v=!1,n.playing&&!t.hasClass(u,"is-mouseover")){t.addClass(u,"is-mouseover");t.removeClass(u,"is-mouseout");i.preventDefault();i.stopPropagation();return}n.playing||n.splash||!t.hasClass(u,"is-mouseout")||t.hasClass(u,"is-mouseover")||setTimeout(function(){n.disabled||n.playing||n.splash||t.find("video.fp-engine",u)[0].play()},400)});!r.fullscreen&&n.conf.native_fullscreen&&typeof t.createElement("video").webkitEnterFullScreen=="function"&&(b=n.fullscreen,n.fullscreen=function(){var r=t.find("video.fp-engine",u)[0];if(!r)return b.
apply(n);n.trigger("fullscreen",[n]);i.on(document,"webkitfullscreenchange.nativefullscreen",function(){if(document.webkitFullscreenElement===r){i.off(document,".nativefullscreen");i.on(document,"webkitfullscreenchange.nativefullscreen",function(){document.webkitFullscreenElement||(i.off(document,".nativefullscreen"),n.trigger("fullscreen-exit",[n]))})}});r.webkitEnterFullScreen();i.one(r,"webkitendfullscreen",function(){i.off(document,"fullscreenchange.nativefullscreen");n.trigger("fullscreen-exit",[n]);t.prop(r,"controls",!0);t.prop(r,"controls",!1)})});(y||k)&&n.bind("ready",function(){var r=t.find("video.fp-engine",u)[0];if(n.conf.splash&&r.paused){i.one(r,"canplay",function(){r.play()});r.load()}n.bind("progress.dur",function(){if(!n.live&&!n.conf.live){var i=r.duration;i!==1&&(n.video.duration=i,t.find(".fp-duration",u)[0].innerHTML=o(i),n.unbind("progress.dur"))}})})})},{"../common":1,"../flowplayer":31,"./ui":27,bean:34}],19:[function(n){"use strict";var o=n("../flowplayer"),i=n("extend-object"),r=n("bean"),
t=n("../common"),u=n("./resolve"),s=new u,f=window.jQuery,e=/^#/;o(function(n,o){function y(){return t.find(h.query,l())}function l(){if(!e.test(h.query))return o}function p(){return t.find(h.query+"."+c,l())}function w(){var i=t.find(".fp-playlist",o)[0],r;i||(i=t.createElement("div",{className:"fp-playlist"}),r=t.find(".fp-next,.fp-prev",o),r.length?r[0].parentElement.insertBefore(i,r[0]):t.insertAfter(o,t.find("video",o)[0],i));i.innerHTML="";n.conf.playlist[0].length&&(n.conf.playlist=n.conf.playlist.map(function(n){if(typeof n=="string"){var t=n.split(u.TYPE_RE)[1];return{sources:[{type:t.toLowerCase()==="m3u8"?"application/x-mpegurl":"video/"+t,src:n}]}}return{sources:n.map(function(n){var t={};return Object.keys(n).forEach(function(i){t.type=/mpegurl/i.test(i)?"application/x-mpegurl":"video/"+i;t.src=n[i]}),t})}}));n.conf.playlist.forEach(function(r,u){var f=r.sources[0].src;i.appendChild(t.createElement("a",{href:f,className:n.video.index===u?c:undefined,"data-index":u}))})}function k(t){return typeof
t.index!="undefined"?t.index:typeof n.video.index!="undefined"?n.video.index:n.conf.startIndex||0}var h=i({active:"is-active",advance:!0,query:".fp-playlist a"},n.conf),c=h.active,b=t.find(".fp-ui",o)[0],v=t.hasClass(o,"fp-custom-playlist")||!!h.customPlaylist,a;t.toggleClass(o,"fp-custom-playlist",v);t.toggleClass(o,"fp-default-playlist",!v);n.play=function(t){if(t===undefined)return n.resume();if(typeof t!="number"||n.conf.playlist[t]){if(typeof t!="number")return n.load.apply(null,arguments)}else return n;var r=i({index:t},n.conf.playlist[t]);return(n.off("beforeresume.fromfirst"),typeof t=="number"&&t===n.video.index)?n.seek(0,function(){n.resume()}):(n.load(r,function(){n.video.index=t}),n)};n.next=function(t){t&&t.preventDefault();var i=n.video.index;return i!=-1&&(i=i===n.conf.playlist.length-1?0:i+1,n.play(i)),n};n.prev=function(t){t&&t.preventDefault();var i=n.video.index;return i!=-1&&(i=i===0?n.conf.playlist.length-1:i-1,n.play(i)),n};n.setPlaylist=function(t,i){return n.conf.playlist=t,i||delete n.
video.index,w(),n};n.addPlaylistItem=function(t){return delete n.video.is_last,n.setPlaylist(n.conf.playlist.concat([t]),!0)};n.removePlaylistItem=function(t){var i=n.conf.playlist;return n.setPlaylist(i.slice(0,t).concat(i.slice(t+1)))};r.on(o,"click",".fp-next",n.next);r.on(o,"click",".fp-prev",n.prev);n.off("finish.pl").on("finish.pl",function(n,i){var u=typeof i.conf.advance=="undefined"?!0:i.conf.advance,r;if(u){if(i.video.loop)return i.seek(0,function(){i.resume()});if(r=i.video.index>=0?i.video.index+1:undefined,r<i.conf.playlist.length||h.loop)r=r===i.conf.playlist.length?0:r,t.removeClass(o,"is-finished"),setTimeout(function(){i.play(r)});else if(i.conf.playlist.length>1){i.one("beforeresume.fromfirst",function(n){n.preventDefault();i.play(0)});i.one("seek",function(){i.off("beforeresume.fromfirst")})}}});a=!1;n.conf.playlist.length&&(a=!0,w(),n.conf.clip&&n.conf.clip.sources.length||(n.conf.clip=n.conf.playlist[n.conf.startIndex||0]));y().length&&!a&&(n.conf.playlist=[],delete n.conf.startIndex,y().
forEach(function(t){var u=t.href,r;t.setAttribute("data-index",n.conf.playlist.length);r=s.resolve(u,n.conf.clip.sources);f&&i(r,f(t).data());n.conf.playlist.push(r)}));t.find(".fp-prev,.fp-next,.fp-playlist",o).forEach(function(n){b.appendChild(n)});r.on(e.test(h.query)?document:o,"click",h.query,function(t){t.preventDefault();var r=t.currentTarget,i=Number(r.getAttribute("data-index"));i!=-1&&n.play(i)});n.on("load",function(i,r,u){if(n.conf.playlist.length){var f=p()[0],v=f&&f.getAttribute("data-index"),e=u.index=k(u),s=t.find(h.query+'[data-index="'+e+'"]',l())[0],a=e==n.conf.playlist.length-1;f&&t.removeClass(f,c);s&&t.addClass(s,c);t.removeClass(o,"video"+v);t.addClass(o,"video"+e);t.toggleClass(o,"last-video",a);u.index=r.video.index=e;u.is_last=r.video.is_last=a}}).on("unload.pl",function(){n.conf.playlist.length&&(p().forEach(function(n){t.toggleClass(n,c)}),n.conf.playlist.forEach(function(n,i){t.removeClass(o,"video"+i)}))});n.conf.playlist.length&&(n.conf.loop=!1)})},{"../common":1,"../flowplayer":
31,"./resolve":21,bean:34,"extend-object":39}],20:[function(n){var r=n("../flowplayer"),t=n("../common"),i=n("bean");r(function(n,r){function o(){t.find(".fp-qsel-menu",r).forEach(t.removeNode);t.find(".fp-qsel",r).forEach(t.removeNode)}function s(n){e.appendChild(t.createElement("strong",{className:"fp-qsel"},"HD"));var i=t.createElement("div",{className:"fp-menu fp-qsel-menu"},"<strong>Quality<\/strong>");n.forEach(function(n){var t=document.createElement("a"),r=typeof n.value!="undefined"?n.value:n;t.setAttribute("data-quality",r);t.innerHTML=n.label||n;i.appendChild(t)});u.appendChild(i)}function f(n){t.find(".fp-qsel-menu a",r).forEach(function(i){t.toggleClass(i,"fp-selected",i.getAttribute("data-quality")==n);t.toggleClass(i,"fp-color",i.getAttribute("data-quality")==n)})}var u=t.find(".fp-ui",r)[0],e=t.find(".fp-controls",u)[0];i.on(r,"click",".fp-qsel",function(){var i=t.find(".fp-qsel-menu",r)[0];t.hasClass(i,"fp-active")?n.hideMenu():n.showMenu(i)});i.on(r,"click",".fp-qsel-menu a",function(t){var i=
t.target.getAttribute("data-quality");n.quality(i)});n.quality=function(t){t=isNaN(Number(t))?t:Number(t);n.trigger("quality",[n,t])};n.on("quality",function(n,t,i){f(i,t.video.qualities)});n.on("ready",function(n,t,i){(o(),!i.qualities||i.qualities.filter(function(n){return typeof n.value!="undefined"?n.value>-1:!0}).length<2)||(s(i.qualities,i.quality),f(i.quality,i.qualities))})})},{"../common":1,"../flowplayer":31,bean:34}],21:[function(n,t){"use strict";function u(n){var u=n.attr("src"),t=n.attr("type")||"",f=u.split(i)[1];return t=t.toLowerCase(),r(n.data(),{src:u,suffix:f||t,type:t||f})}function f(n){return/mpegurl/i.test(n)?"application/x-mpegurl":"video/"+n}var i=/\.(\w{3,4})(\?.*)?$/i,r=n("extend-object");t.exports=function(){var n=this;n.sourcesFromVideoTag=function(n,t){var i=[];return t("source",n).each(function(){i.push(u(t(this)))}),!i.length&&n.length&&i.push(u(n)),i};n.resolve=function(n,t){return n?(typeof n=="string"&&(n={src:n,sources:[]},n.sources=(t||[]).map(function(t){var r=t.src.split(
i)[1];return{type:t.type,src:n.src.replace(i,"."+r+"$2")}})),n instanceof Array&&(n={sources:n.map(function(n){return n.type&&n.src?n:Object.keys(n).reduce(function(t,i){return r(t,{type:f(i),src:n[i]})},{})})}),n):{sources:t}}};t.exports.TYPE_RE=i},{"extend-object":39}],22:[function(n){"use strict";var i=n("../flowplayer"),t=n("../common"),r=n("extend-object"),u=n("bean");i(function(n,i){var f=n.conf,e,o,s;if(f.share===!1){t.find(".fp-share",i).forEach(t.removeNode);return}n.shareUrl=function(i){if(i&&f.embed&&f.embed.iframe)return f.embed.iframe;if(typeof n.conf.share=="string")return n.conf.share;var u=encodeURIComponent(n.video.title||(t.find("title")[0]||{}).innerHTML||"Flowplayer Commercial video"),e=encodeURIComponent(btoa(JSON.stringify(r({},n.conf,n.extensions)).replace(/[\u007F-\uFFFF]/g,function(n){return"\\u"+("0000"+n.charCodeAt(0).toString(16)).substr(-4)}))),o=encodeURIComponent(window.location.toString()),s=i?"https://flowplayer.com/e/":"https://flowplayer.com/s/";return s+"?t="+u+"&c="+e+"&r="+
o};e=t.createElement("div",{className:"fp-menu fp-share-menu"},"<strong>Share<\/strong>");o=t.find(".fp-ui",i)[0];o.appendChild(e);s=t.find(".fp-share",i)[0];u.on(i,"click",".fp-share",function(i){i.preventDefault();t.hasClass(e,"fp-active")?n.hideMenu():n.showMenu(e,s)})})},{"../common":1,"../flowplayer":31,bean:34,"extend-object":39}],23:[function(n){"use strict";var i=n("../flowplayer"),t=n("../common"),r=n("bean"),u=n("./subtitles/parser");i.defaults.subtitleParser=u;i(function(n,u){var o,f,s,e,c,a,h,l;i.support.inlineVideo&&(i.support.fullscreen||!n.conf.native_fullscreen)||(n.conf.nativesubtitles=!0);n.ui||(n.ui={});n.ui.createSubtitleControl=function(n,i){return c=i,s=s||t.createElement("strong",{className:"fp-cc"},"CC"),e=e||t.createElement("div",{className:"fp-menu fp-subtitle-menu"},"<strong>Closed Captions<\/strong>"),t.find("a",e).forEach(t.removeNode),e.appendChild(t.createElement("a",{"data-subtitle-index":-1},"No subtitles")),(n||[]).forEach(function(n,i){var r=n.srclang||"en",u=n.label||"Default ("+
r+")",f=t.createElement("a",{"data-subtitle-index":i},u);e.appendChild(f)}),t.find(".fp-ui",u)[0].appendChild(e),t.find(".fp-controls",u)[0].appendChild(s),t.toggleClass(s,"fp-hidden",!n||!n.length),s};n.ui.setActiveSubtitleItem=function(n){h(n)};r.on(u,"click",".fp-cc",function(){t.hasClass(e,"fp-active")?n.hideMenu():n.showMenu(e)});r.on(u,"click",".fp-subtitle-menu [data-subtitle-index]",function(t){t.preventDefault();var i=t.target.getAttribute("data-subtitle-index");if(c)return c(i);if(i==="-1")return n.disableSubtitles();n.loadSubtitles(i)});a=function(){f=t.find(".fp-captions",u)[0];f=f||t.appendTo(t.createElement("div",{"class":"fp-captions"}),t.find(".fp-player",u)[0]);Array.prototype.forEach.call(f.children,t.removeNode);n.ui.createSubtitleControl(n.video.subtitles)};n.on("ready",function(i,r,f){if(r.subtitles=[],a(),t.removeClass(u,"has-menu"),n.disableSubtitles(),f.subtitles&&f.subtitles.length){var e=f.subtitles.filter(function(n){return n["default"]})[0];e&&r.loadSubtitles(f.subtitles.indexOf(e))}
});n.showSubtitle=function(n){t.html(f,n);t.addClass(f,"fp-shown")};n.hideSubtitle=function(){t.removeClass(f,"fp-shown")};n.bind("cuepoint",function(t,i,r){r.subtitle?(o=r.index,n.showSubtitle(r.subtitle.text)):r.subtitleEnd&&(n.hideSubtitle(),o=r.index)});n.bind("seek",function(i,r,u){o&&n.cuepoints[o]&&n.cuepoints[o].time>u&&(t.removeClass(f,"fp-shown"),o=null);(n.cuepoints||[]).forEach(function(t,i){var r=t.subtitle;r&&o!=i?u>=t.time&&(!r.endTime||u<=r.endTime)&&n.trigger("cuepoint",[n,t]):t.subtitleEnd&&u>=t.time&&i==o+1&&n.trigger("cuepoint",[n,t])})});n.on("unload",function(){t.find(".fp-captions",u).forEach(t.removeNode)});h=function(n){t.toggleClass(t.find("a.fp-selected",e)[0],"fp-selected");t.toggleClass(t.find('a[data-subtitle-index="'+n+'"]',e)[0],"fp-selected")};l=function(n,i){var r=t.find("video.fp-engine",u)[0].textTracks;r.length&&(n===null?[].forEach.call(r,function(n){n.mode=i}):r[n].mode=i)};n.disableSubtitles=function(){return n.subtitles=[],(n.cuepoints||[]).forEach(function(t){(t.subtitle||
t.subtitleEnd)&&n.removeCuepoint(t)}),f&&Array.prototype.forEach.call(f.children,t.removeNode),h(-1),i.support.subtitles&&n.conf.nativesubtitles&&n.engine.engineName=="html5"&&l(null,"disabled"),n};n.loadSubtitles=function(r){n.disableSubtitles();var f=n.video.subtitles[r],u=f.src;if(u){if(h(r),i.support.subtitles&&n.conf.nativesubtitles&&n.engine.engineName=="html5"){l(r,"showing");return}return t.xhrGet(u,function(t){var r=n.conf.subtitleParser(t);r.forEach(function(t){var r={time:t.startTime,subtitle:t,visible:!1};if(n.subtitles.push(t),n.addCuepoint(r),n.addCuepoint({time:t.endTime,subtitleEnd:t.title,visible:!1}),t.startTime!==0||n.video.time||n.splash||n.trigger("cuepoint",[n,i.extend({},r,{index:0})]),n.splash)n.one("ready",function(){n.trigger("cuepoint",[n,r])})})},function(){return n.trigger("error",{code:8,url:u}),!1}),n}}})},{"../common":1,"../flowplayer":31,"./subtitles/parser":24,bean:34}],24:[function(n,t){t.exports=function(n){function f(n){var t=n.split(":");return t.length==2&&t.unshift(0),t[
0]*3600+t[1]*60+parseFloat(t[2].replace(",","."))}for(var e=[],t=0,i=n.split("\n"),h=i.length,o={},s,r,u;t<h;t++)if(r=/^(([0-9]+:){1,2}[0-9]{2}[,.][0-9]{3}) --\> (([0-9]+:){1,2}[0-9]{2}[,.][0-9]{3})(.*)/.exec(i[t]),r){for(s=i[t-1],u="<p>"+i[++t]+"<\/p><br/>";typeof i[++t]=="string"&&i[t].trim()&&t<i.length;)u+="<p>"+i[t]+"<\/p><br/>";o={title:s,startTime:f(r[1]),endTime:f(r[3]),text:u};e.push(o)}return e}},{}],25:[function(n){"use strict";var t=n("../flowplayer"),i=n("extend-object");(function(){var it=function(n){var t=/iP(ad|hone)(; CPU)? OS (\d+_\d)/.exec(n);return t&&t.length>1?parseFloat(t[t.length-1].replace("_","."),10):0},rt=function(){var n=document.createElement("video");return n.loop=!0,n.autoplay=!0,n.preload=!0,n},u={},y=document.documentElement.style,e=navigator.userAgent.toLowerCase(),p=/(chrome)[ \/]([\w.]+)/.exec(e)||/(safari)[ \/]([\w.]+)/.exec(e)||/(webkit)[ \/]([\w.]+)/.exec(e)||/(opera)(?:.*version|)[ \/]([\w.]+)/.exec(e)||/(msie) ([\w.]+)/.exec(e)||e.indexOf("compatible")<0&&/(mozilla)(?:.*? rv:([\w.]+)|)/.
exec(e)||[],k,r;p[1]&&(u[p[1]]=!0,u.version=p[2]||"0");u.safari&&(u.version=(/version\/([\w.]+)/.exec(e)||[])[1]);var w=rt(),n=navigator.userAgent,a=u.msie||/Trident\/7/.test(n),o=/iPad|MeeGo/.test(n)&&!/CriOS/.test(n),c=/iPad/.test(n)&&/CriOS/.test(n),s=/iP(hone|od)/i.test(n)&&!/iPad/.test(n)&&!/IEMobile/i.test(n),h=/Android/.test(n),d=h&&/Firefox/.test(n),g=h&&/SAMSUNG/.test(n),nt=/Silk/.test(n),l=/IEMobile/.test(n),ut=l?parseFloat(/Windows\ Phone\ (\d+\.\d+)/.exec(n)[1],10):0,ft=l?parseFloat(/IEMobile\/(\d+\.\d+)/.exec(n)[1],10):0,v=o||s?it(n):0,b=h?parseFloat(/Android\ (\d+\.?\d?)/.exec(n)[1],10):0,tt=(s||o||c)&&{iPhone:s,iPad:o||c,version:v,chrome:c},f=i(t.support,{browser:u,iOS:tt,android:h?{firefox:d,opera:/Opera/.test(n),samsung:g,version:b}:!1,subtitles:!!w.addTextTrack,fullscreen:typeof document.webkitFullscreenEnabled=="boolean"?document.webkitFullscreenEnabled:typeof document.webkitCancelFullScreen=="function"&&!/Mac OS X 10_5.+Version\/5\.0\.\d Safari/.test(n)||document.mozFullScreenEnabled||typeof
document.exitFullscreen=="function"||typeof document.msExitFullscreen=="function",inlineBlock:!(a&&u.version<8),touch:"ontouchstart"in window,dataload:!o&&!s&&!l,flex:"flexWrap"in y||"WebkitFlexWrap"in y||"msFlexWrap"in y,svg:!!document.createElementNS&&!!document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGRect,zeropreload:!a&&!h,volume:!o&&!s&&!nt&&!c,cachedVideoTag:!o&&!s&&!c&&!l,firstframe:!nt&&!l&&!d&&!g&&!(v&&v<10)&&!(h&&b<4.4),inlineVideo:(!s||v>=10)&&(!l||ut>=8.1&&ft>=11)&&(!h||b>=3),hlsDuration:!h&&(!u.safari||o||s||c),seekable:!o&&!c,preloadMetadata:!tt&&!u.safari});f.autoplay=f.firstframe;l&&(f.browser.safari=!1);try{k=navigator.plugins["Shockwave Flash"];r=a?new ActiveXObject("ShockwaveFlash.ShockwaveFlash").GetVariable("$version"):k.description;a||k[0].enabledPlugin?(r=r.split(/\D+/),r.length&&!r[0]&&(r=r.slice(1)),f.flashVideo=r[0]>9||r[0]==9&&r[3]>=115):f.flashVideo=!1}catch(et){}try{f.video=!!w.canPlayType;f.video&&w.canPlayType("video/mp4")}catch(ot){f.video=!1}f.animation=function(
){for(var t=["","Webkit","Moz","O","ms","Khtml"],i=document.createElement("p"),n=0;n<t.length;n++)if(typeof i.style[t[n]+"AnimationName"]!="undefined")return!0}()})()},{"../flowplayer":31,"extend-object":39}],26:[function(n){"use strict";var i=n("../flowplayer"),t=n("../common"),r=n("bean");i(function(n,i){var u=n.conf,f,e;if(u.share!==!1&&u.twitter!==!1){n.tweet=function(){var r,t,f=550,i=420,e=screen.height,o=screen.width,s=typeof u.twitter=="string"?u.twitter:n.shareUrl();r=Math.round(o/2-f/2);t=0;e>i&&(t=Math.round(e/2-i/2));window.open("https://twitter.com/intent/tweet?url="+encodeURIComponent(s),"intent","scrollbars=yes,resizable=yes,toolbar=no,location=yes,width="+f+",height="+i+",left="+r+",top="+t)};f=t.find(".fp-share-menu",i)[0];e=t.createElement("a",{"class":"fp-icon fp-twitter"},"Twitter");t.append(f,e);r.on(i,"click",".fp-twitter",function(){n.tweet()})}})},{"../common":1,"../flowplayer":31,bean:34}],27:[function(n,t){(function(i){"use strict";function e(n){return n=parseInt(n,10),n>=10?n:"0"+n}
function f(n,t){n=Math.max(n||0,0);n=t?Math.ceil(n):Math.floor(n);var r=Math.floor(n/3600),i=Math.floor(n/60);return(n=n-i*60,r>=1)?(i-=r*60,r+":"+e(i)+":"+e(n)):e(i)+":"+e(n)}var o=n("../flowplayer"),r=n("../common"),u=n("bean"),s=n("./ui/slider"),h=n("./ui/bar-slider"),c=i("PHN2ZyBjbGFzcz0iZnAtcGxheS1yb3VuZGVkLW91dGxpbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgdmlld0JveD0iMCAwIDk5Ljg0NCA5OS44NDM0Ij48ZGVmcz48c3R5bGU+LmZwLWNvbG9yLXBsYXl7b3BhY2l0eTowLjY1O30uY29udHJvbGJ1dHRvbntmaWxsOiNmZmY7fTwvc3R5bGU+CjwvZGVmcz4KPHRpdGxlPnBsYXktcm91bmRlZC1vdXRsaW5lPC90aXRsZT48cGF0aCBjbGFzcz0iZnAtY29sb3ItcGxheSIgZD0iTTQ5LjkyMTctLjA3OGE1MCw1MCwwLDEsMCw1MCw1MEE1MC4wNTY0LDUwLjA1NjQsMCwwLDAsNDkuOTIxNy0uMDc4WiIvPjxwYXRoIGNsYXNzPSJjb250cm9sYnV0dG9uIiBkPSJNNDEuMDM1OSw3MS4xOWE1LjA0OTIsNS4wNDkyLDAsMCwxLTIuNTU3NS0uNjY3M2MtMS44MDMxLTEuMDQxLTIuNzk1OC0zLjEyNDgtMi43OTU4LTUuODY2NFYzNS4xODg3YzAtMi43NDI5Ljk5MzMtNC44MjcyLDIuNzk3LTUuODY3NiwxLjgwMjUtMS4wNDIyLDQuMTAzNC0uODYsNi40OC41MTQzTDcwLjQ3ODIsNDQuNTY3MmMyLjM3NTEsMS4zNzExLDMuNjgyNiwzLjI3MjUsMy42ODMyLDUuMzU0NXMtMS4zMDc2LDMuOTg0NS0zLjY4MzIsNS4zNTYyTDQ0Ljk1OTIsNzAuMDExNEE3LjkzODQsNy45Mzg0LDAsMCwxLDQxLjAzNTksNzEuMTlabS4wMDY1LTQwLjEyM2EyLjY3OTQsMi42Nzk0LDAsMCwwLTEuMzU4Mi4zNDEzYy0xLjAyNjMuNTkyNi0xLjU5MTIsMS45MzQ5LTEuNTkxMiwzLjc4VjY0LjY1NjNjMCwxLjg0NDkuNTY0OSwzLjE4NjYsMS41OTA2LDMuNzc5MSwxLjAyODEuNTkzMiwyLjQ3MzMuNDEwOCw0LjA3LS41MTJMNjkuMjczLDUzLjE5MDZjMS41OTgzLS45MjI3LDIuNDc4LTIuMDgzOCwyLjQ3OC0zLjI2ODlzLS44OC0yLjM0NDUtMi40NzgtMy4yNjY2TDQzLjc1NCwzMS45MjI3QTUuNTY4NSw1LjU2ODUsMCwwLDAsNDEuMDQyMywzMS4wNjcxWiIgZmlsdGVyPSJ1cmwoI2YxKSIvPjwvc3ZnPgo=",
"base64"),l=i("PHN2ZyBjbGFzcz0iZnAtcGxheS1yb3VuZGVkLWZpbGwiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgdmlld0JveD0iMCAwIDEwMCAxMDAiPgogIDxkZWZzPjxzdHlsZT4uYXtmaWxsOiMwMDA7b3BhY2l0eTowLjY1O30uYntmaWxsOiNmZmY7b3BhY2l0eToxLjA7fTwvc3R5bGU+CiAgPC9kZWZzPjx0aXRsZT5wbGF5LXJvdW5kZWQtZmlsbDwvdGl0bGU+CiAgPHBhdGggY2xhc3M9ImZwLWNvbG9yLXBsYXkiIGQ9Ik00OS45MjE3LS4wNzhhNTAsNTAsMCwxLDAsNTAsNTBBNTAuMDU2NCw1MC4wNTY0LDAsMCwwLDQ5LjkyMTctLjA3OFoiLz4KICA8cGF0aCBjbGFzcz0iYiIgZD0iTTM1Ljk0MiwzNS4yMzIzYzAtNC43Mjg5LDMuMzUwNi02LjY2MzcsNy40NDYtNC4yOTcxTDY4LjgzLDQ1LjYyMzVjNC4wOTU2LDIuMzY0LDQuMDk1Niw2LjIzMTksMCw4LjU5NzdMNDMuMzg4LDY4LjkxYy00LjA5NTQsMi4zNjQtNy40NDYuNDMtNy40NDYtNC4yOTc5WiIgZmlsdGVyPSJ1cmwoI2YxKSIvPgogIDwvc3ZnPgogIAo=","base64"),a=i("PHN2ZyBjbGFzcz0iZnAtcGxheS1zaGFycC1maWxsIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxMDAgMTAwIj4KICA8ZGVmcz4KICAgIDxzdHlsZT4uZnAtY29sb3ItcGxheXtvcGFjaXR5OjAuNjU7fS5jb250cm9sYnV0dG9ue2ZpbGw6I2ZmZjt9PC9zdHlsZT4KICA8L2RlZnM+CiAgPHRpdGxlPnBsYXktc2hhcnAtZmlsbDwvdGl0bGU+CiAgPHBhdGggY2xhc3M9ImZwLWNvbG9yLXBsYXkiIGQ9Ik00OS45MjE3LS4wNzhhNTAsNTAsMCwxLDAsNTAsNTBBNTAuMDU2NCw1MC4wNTY0LDAsMCwwLDQ5LjkyMTctLjA3OFoiLz4KICA8cG9seWdvbiBjbGFzcz0iY29udHJvbGJ1dHRvbiIgcG9pbnRzPSI3My42MDEgNTAgMzcuOTY4IDcwLjU3MyAzNy45NjggMjkuNDI3IDczLjYwMSA1MCIgZmlsdGVyPSJ1cmwoI2YxKSIvPgo8L3N2Zz4K",
"base64"),v=i("PHN2ZyBjbGFzcz0iZnAtcGxheS1zaGFycC1vdXRsaW5lIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA5OS44NDQgOTkuODQzNCI+PGRlZnM+PHN0eWxlPi5jb250cm9sYnV0dG9uYmd7b3BhY2l0eTowLjY1O30uY29udHJvbGJ1dHRvbntmaWxsOiNmZmY7fTwvc3R5bGU+CjwvZGVmcz48dGl0bGU+cGxheS1zaGFycC1vdXRsaW5lPC90aXRsZT48cGF0aCBjbGFzcz0iZnAtY29sb3ItcGxheSIgZD0iTTQ5LjkyMTctLjA3OGE1MCw1MCwwLDEsMCw1MCw1MEE1MC4wNTY0LDUwLjA1NjQsMCwwLDAsNDkuOTIxNy0uMDc4WiIvPjxwYXRoIGNsYXNzPSJjb250cm9sYnV0dG9uIiBkPSJNMzYuOTQ0Myw3Mi4yNDczVjI3LjI5MTZMNzUuODc3Niw0OS43N1ptMi4yLTQxLjE0NTVWNjguNDM3MUw3MS40Nzc2LDQ5Ljc3WiIgZmlsdGVyPSJ1cmwoI2YxKSIvPjwvc3ZnPgo=","base64"),y=i("PHN2ZyBjbGFzcz0iZnAtcGF1c2Utcm91bmRlZC1vdXRsaW5lIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA5OS44NDM0IDk5Ljg0MzQiPjxkZWZzPjxzdHlsZT4uZnAtY29sb3ItcGxheXtvcGFjaXR5OjAuNjU7fS5yZWN0e2ZpbGw6I2ZmZjt9PC9zdHlsZT4KPC9kZWZzPjx0aXRsZT5wYXVzZS1yb3VuZGVkLW91dGxpbmU8L3RpdGxlPjxwYXRoIGNsYXNzPSJmcC1jb2xvci1wbGF5IiBkPSJNNDkuOTIxMi0uMDc4M2E1MCw1MCwwLDEsMCw1MC4wMDA2LDUwQTUwLjA1NjIsNTAuMDU2MiwwLDAsMCw0OS45MjEyLS4wNzgzWiIvPjxnIGNsYXNzPSJjb250cm9sYnV0dG9uIj48cGF0aCBjbGFzcz0icmVjdCIgZD0iTTM5LjAwMzYsNzEuOTcyNmE3LjU2NSw3LjU2NSwwLDAsMS03LjU1Ny03LjU1NnYtMjguOTlhNy41NTY1LDcuNTU2NSwwLDAsMSwxNS4xMTMsMHYyOC45OUE3LjU2NDgsNy41NjQ4LDAsMCwxLDM5LjAwMzYsNzEuOTcyNlptMC00MS45MDRhNS4zNjQ3LDUuMzY0NywwLDAsMC01LjM1OTMsNS4zNTgydjI4Ljk5YTUuMzU4Nyw1LjM1ODcsMCwwLDAsMTAuNzE3NCwwdi0yOC45OUE1LjM2NDUsNS4zNjQ1LDAsMCwwLDM5LjAwMzYsMzAuMDY4NloiIGZpbHRlcj0idXJsKCNmMSkiLz48cGF0aCBjbGFzcz0icmVjdCIgZD0iTTYwLjg0LDcxLjk3MjZhNy41NjQ4LDcuNTY0OCwwLDAsMS03LjU1Ni03LjU1NnYtMjguOTlhNy41NTY1LDcuNTU2NSwwLDAsMSwxNS4xMTMsMHYyOC45OUE3LjU2NSw3LjU2NSwwLDAsMSw2MC44NCw3MS45NzI2Wm0wLTQxLjkwNGE1LjM2NDUsNS4zNjQ1LDAsMCwwLTUuMzU4Miw1LjM1ODJ2MjguOTlhNS4zNTg3LDUuMzU4NywwLDAsMCwxMC43MTc0LDB2LTI4Ljk5QTUuMzY0Nyw1LjM2NDcsMCwwLDAsNjAuODQsMzAuMDY4NloiIGZpbHRlcj0idXJsKCNmMSkiLz48L2c+PC9zdmc+Cg==",
"base64"),p=i("PHN2ZyBjbGFzcz0iZnAtcGF1c2Utcm91bmRlZC1maWxsIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxMDAgMTAwIj48ZGVmcz48c3R5bGU+LmZwLWNvbG9yLXBsYXl7b3BhY2l0eTowLjY1O30ucmVjdHtmaWxsOiNmZmY7fTwvc3R5bGU+CjwvZGVmcz48dGl0bGU+cGF1c2Utcm91bmRlZC1maWxsPC90aXRsZT48cGF0aCBjbGFzcz0iZnAtY29sb3ItcGxheSIgZD0iTTQ5LjkyMTctLjA3OGE1MCw1MCwwLDEsMCw1MCw1MEE1MC4wNTY0LDUwLjA1NjQsMCwwLDAsNDkuOTIxNy0uMDc4WiIvPjxnIGNsYXNzPSJjb250cm9sYnV0dG9uIiBmaWx0ZXI9InVybCgjZjEpIj48cmVjdCBjbGFzcz0icmVjdCIgeD0iMzEuODQ0IiB5PSIyOC4xMjMxIiB3aWR0aD0iMTMuNDM2MiIgaGVpZ2h0PSI0My41OTczIiByeD0iNi43MTgxIiByeT0iNi43MTgxIi8+PHJlY3QgY2xhc3M9InJlY3QiIHg9IjU0LjU2MzgiIHk9IjI4LjEyMzEiIHdpZHRoPSIxMy40MzYyIiBoZWlnaHQ9IjQzLjU5NzMiIHJ4PSI2LjcxODEiIHJ5PSI2LjcxODEiLz48L2c+PC9zdmc+Cg==","base64"),w=i("PHN2ZyBjbGFzcz0iZnAtcGF1c2Utc2hhcnAtZmlsbCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB2aWV3Qm94PSIwIDAgMTAwIDEwMCI+PGRlZnM+PHN0eWxlPi5mcC1jb2xvci1wbGF5e29wYWNpdHk6MC42NTt9LnJlY3R7ZmlsbDojZmZmO308L3N0eWxlPgo8L2RlZnM+PHRpdGxlPnBhdXNlLXNoYXJwLWZpbGw8L3RpdGxlPjxwYXRoIGNsYXNzPSJmcC1jb2xvci1wbGF5IiBkPSJNNDkuOTIxNy0uMDc4YTUwLDUwLDAsMSwwLDUwLDUwQTUwLjA1NjQsNTAuMDU2NCwwLDAsMCw0OS45MjE3LS4wNzhaIi8+PGcgY2xhc3M9ImNvbnRyb2xidXR0b24iIGZpbHRlcj0idXJsKCNmMSkiPjxyZWN0IGNsYXNzPSJyZWN0IiB4PSIzMy41IiB5PSIzMC4xMDQyIiB3aWR0aD0iMTIuMjYzNCIgaGVpZ2h0PSIzOS43OTE3Ii8+PHJlY3QgY2xhc3M9InJlY3QiIHg9IjU0LjIzNjYiIHk9IjMwLjEwNDIiIHdpZHRoPSIxMi4yNjM0IiBoZWlnaHQ9IjM5Ljc5MTciLz48L2c+PC9zdmc+Cg==",
"base64"),b=i("PHN2ZyBjbGFzcz0iZnAtcGF1c2Utc2hhcnAtb3V0bGluZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB2aWV3Qm94PSIwIDAgOTkuODQzNCA5OS44NDM0Ij48ZGVmcz48c3R5bGU+LmZwLWNvbG9yLXBsYXl7b3BhY2l0eTowLjY1O30ucmVjdHtmaWxsOiNmZmY7fTwvc3R5bGU+CjwvZGVmcz48dGl0bGU+cGF1c2Utc2hhcnAtb3V0bGluZTwvdGl0bGU+PHBhdGggY2xhc3M9ImZwLWNvbG9yLXBsYXkiIGQ9Ik00OS45MjEyLS4wNzgzYTUwLDUwLDAsMSwwLDUwLjAwMDYsNTBBNTAuMDU2Miw1MC4wNTYyLDAsMCwwLDQ5LjkyMTItLjA3ODNaIi8+PGcgY2xhc3M9ImNvbnRyb2xidXR0b24iIGZpbHRlcj0idXJsKCNmMSkiPjxwYXRoIGNsYXNzPSJyZWN0IiBkPSJNNDYuODcwOSw2OS45NTMxSDMzLjEzODVWMjkuODlINDYuODcwOVpNMzUuMTQxNiw2Ny45NWg5LjcyNjJWMzEuODkzNUgzNS4xNDE2WiIvPjxwYXRoIGNsYXNzPSJyZWN0IiBkPSJNNjYuNzA0Nyw2OS45NTMxSDUyLjk3MjJWMjkuODlINjYuNzA0N1pNNTQuOTc1NCw2Ny45NWg5LjcyNjJWMzEuODkzNUg1NC45NzU0WiIvPjwvZz48L3N2Zz4K","base64"),k=i("PHN2ZyBjbGFzcz0iZnAtbG9hZGluZy1yb3VuZGVkLW91dGxpbmUiIHdpZHRoPScxMTJweCcgaGVpZ2h0PScxMTJweCcgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB2aWV3Qm94PSIwIDAgMTAwIDEwMCIgcHJlc2VydmVBc3BlY3RSYXRpbz0ieE1pZFlNaWQiPgogICAgPHJlY3QgeD0iMCIgeT0iMCIgd2lkdGg9Ijc2IiBoZWlnaHQ9Ijc2IiBmaWxsPSJyZ2JhKDAsMCwwLDApIiBjbGFzcz0iYmsiPjwvcmVjdD4KICAgIDxjaXJjbGUgY3g9IjAiIGN5PSIwIiByPSIxMCIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMjUgMjUpIiBmaWxsPSJub25lIiBzdHJva2U9InJnYmEoMCwwLDAsLjUpIiBzdHJva2Utd2lkdGg9IjMlIiBjbGFzcz0ic3EiPgogICAgICA8YW5pbWF0ZSBhdHRyaWJ1dGVOYW1lPSJzdHJva2UiIGZyb209InJnYmEoMCwwLDAsMCkiIHRvPSJyZ2JhKDAsMCwwLC41KSIgcmVwZWF0Q291bnQ9ImluZGVmaW5pdGUiIGR1cj0iMS42cyIgYmVnaW49IjAuMHMiIHZhbHVlcz0icmdiYSgwLDAsMCwuNSk7cmdiYSgwLDAsMCwwKTtyZ2JhKDAsMCwwLDApO3JnYmEoMCwwLDAsLjUpO3JnYmEoMCwwLDAsLjUpIiBrZXlUaW1lcz0iMDswLjE7MC4yOzAuNDsxIj48L2FuaW1hdGU+CiAgICAgIDxhbmltYXRlVHJhbnNmb3JtIGF0dHJpYnV0ZU5hbWU9InRyYW5zZm9ybSIgdHlwZT0ic2NhbGUiIGFkZGl0aXZlPSJzdW0iIGZyb209IjAuOCIgdG89IjEiIHJlcGVhdENvdW50PSJpbmRlZmluaXRlIiBiZWdpbj0iMC4wcyIgZHVyPSIxLjZzIiB2YWx1ZXM9IjE7MC44OzAuODsxOzEiIGtleVRpbWVzPSIwOzAuMTswLjI7MC40OzEiPjwvYW5pbWF0ZVRyYW5zZm9ybT4KICAgIDwvY2lyY2xlPgogICAgPGNpcmNsZSBjeD0iMCIgY3k9IjAiIHI9IjEwIiB0cmFuc2Zvcm09InRyYW5zbGF0ZSg1MCAyNSkiIGZpbGw9Im5vbmUiIHN0cm9rZT0icmdiYSgwLDAsMCwuNSkiIHN0cm9rZS13aWR0aD0iMyUiIGNsYXNzPSJzcSI+CiAgICAgIDxhbmltYXRlIGF0dHJpYnV0ZU5hbWU9InN0cm9rZSIgZnJvbT0icmdiYSgwLDAsMCwwKSIgdG89InJnYmEoMCwwLDAsLjUpIiByZXBlYXRDb3VudD0iaW5kZWZpbml0ZSIgZHVyPSIxLjZzIiBiZWdpbj0iMC40cyIgdmFsdWVzPSJyZ2JhKDAsMCwwLC41KTtyZ2JhKDAsMCwwLDApO3JnYmEoMCwwLDAsMCk7cmdiYSgwLDAsMCwuNSk7cmdiYSgwLDAsMCwuNSkiIGtleVRpbWVzPSIwOzAuMTswLjI7MC40OzEiPjwvYW5pbWF0ZT4KICAgICAgPGFuaW1hdGVUcmFuc2Zvcm0gYXR0cmlidXRlTmFtZT0idHJhbnNmb3JtIiB0eXBlPSJzY2FsZSIgYWRkaXRpdmU9InN1bSIgZnJvbT0iMC44IiB0bz0iMSIgcmVwZWF0Q291bnQ9ImluZGVmaW5pdGUiIGJlZ2luPSIwLjRzIiBkdXI9IjEuNnMiIHZhbHVlcz0iMTswLjg7MC44OzE7MSIga2V5VGltZXM9IjA7MC4xOzAuMjswLjQ7MSI+PC9hbmltYXRlVHJhbnNmb3JtPgogICAgPC9jaXJjbGU+CiAgICA8Y2lyY2xlIGN4PSIwIiBjeT0iMCIgcj0iMTAiIHRyYW5zZm9ybT0idHJhbnNsYXRlKDUwIDUwKSIgZmlsbD0ibm9uZSIgc3Ryb2tlPSJyZ2JhKDAsMCwwLC41KSIgc3Ryb2tlLXdpZHRoPSIzJSIgY2xhc3M9InNxIj4KICAgICAgPGFuaW1hdGUgYXR0cmlidXRlTmFtZT0ic3Ryb2tlIiBmcm9tPSJyZ2JhKDAsMCwwLDApIiB0bz0icmdiYSgwLDAsMCwuNSkiIHJlcGVhdENvdW50PSJpbmRlZmluaXRlIiBkdXI9IjEuNnMiIGJlZ2luPSIwLjhzIiB2YWx1ZXM9InJnYmEoMCwwLDAsLjUpO3JnYmEoMCwwLDAsMCk7cmdiYSgwLDAsMCwwKTtyZ2JhKDAsMCwwLC41KTtyZ2JhKDAsMCwwLC41KSIga2V5VGltZXM9IjA7MC4xOzAuMjswLjQ7MSI+PC9hbmltYXRlPgogICAgICA8YW5pbWF0ZVRyYW5zZm9ybSBhdHRyaWJ1dGVOYW1lPSJ0cmFuc2Zvcm0iIHR5cGU9InNjYWxlIiBhZGRpdGl2ZT0ic3VtIiBmcm9tPSIwLjgiIHRvPSIxIiByZXBlYXRDb3VudD0iaW5kZWZpbml0ZSIgYmVnaW49IjAuOHMiIGR1cj0iMS42cyIgdmFsdWVzPSIxOzAuODswLjg7MTsxIiBrZXlUaW1lcz0iMDswLjE7MC4yOzAuNDsxIj48L2FuaW1hdGVUcmFuc2Zvcm0+CiAgICA8L2NpcmNsZT4KICAgIDxjaXJjbGUgY3g9IjAiIGN5PSIwIiByPSIxMCIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMjUgNTApIiBmaWxsPSJub25lIiBzdHJva2U9InJnYmEoMCwwLDAsLjUpIiBzdHJva2Utd2lkdGg9IjMlIiBjbGFzcz0ic3EiPgogICAgICA8YW5pbWF0ZSBhdHRyaWJ1dGVOYW1lPSJzdHJva2UiIGZyb209InJnYmEoMCwwLDAsMCkiIHRvPSJyZ2JhKDAsMCwwLC41KSIgcmVwZWF0Q291bnQ9ImluZGVmaW5pdGUiIGR1cj0iMS42cyIgYmVnaW49IjEuMnMiIHZhbHVlcz0icmdiYSgwLDAsMCwuNSk7cmdiYSgwLDAsMCwwKTtyZ2JhKDAsMCwwLDApO3JnYmEoMCwwLDAsLjUpO3JnYmEoMCwwLDAsLjUpIiBrZXlUaW1lcz0iMDswLjE7MC4yOzAuNDsxIj48L2FuaW1hdGU+CiAgICAgIDxhbmltYXRlVHJhbnNmb3JtIGF0dHJpYnV0ZU5hbWU9InRyYW5zZm9ybSIgdHlwZT0ic2NhbGUiIGFkZGl0aXZlPSJzdW0iIGZyb209IjAuOCIgdG89IjEiIHJlcGVhdENvdW50PSJpbmRlZmluaXRlIiBiZWdpbj0iMS4ycyIgZHVyPSIxLjZzIiB2YWx1ZXM9IjE7MC44OzAuODsxOzEiIGtleVRpbWVzPSIwOzAuMTswLjI7MC40OzEiPjwvYW5pbWF0ZVRyYW5zZm9ybT4KICAgIDwvY2lyY2xlPgo8L3N2Zz4K",
"base64"),d=i("PHN2ZyBjbGFzcz0iZnAtbG9hZGluZy1yb3VuZGVkLWZpbGwiIHdpZHRoPScxMTJweCcgaGVpZ2h0PScxMTJweCcgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB2aWV3Qm94PSIwIDAgMTAwIDEwMCIgcHJlc2VydmVBc3BlY3RSYXRpbz0ieE1pZFlNaWQiPgogICAgPHJlY3QgeD0iMCIgeT0iMCIgd2lkdGg9Ijc2IiBoZWlnaHQ9Ijc2IiBmaWxsPSJyZ2JhKDAsMCwwLDApIiBjbGFzcz0iYmsiPjwvcmVjdD4KICAgIDxjaXJjbGUgY3g9IjAiIGN5PSIwIiByPSIxMCIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMjUgMjUpIiBmaWxsPSJyZ2JhKDAsMCwwLC41KSIgY2xhc3M9InNxIj4KICAgICAgPGFuaW1hdGUgYXR0cmlidXRlTmFtZT0iZmlsbCIgZnJvbT0icmdiYSgwLDAsMCwwKSIgdG89InJnYmEoMCwwLDAsLjUpIiByZXBlYXRDb3VudD0iaW5kZWZpbml0ZSIgZHVyPSIxLjZzIiBiZWdpbj0iMC4wcyIgdmFsdWVzPSJyZ2JhKDAsMCwwLC41KTtyZ2JhKDAsMCwwLDApO3JnYmEoMCwwLDAsMCk7cmdiYSgwLDAsMCwuNSk7cmdiYSgwLDAsMCwuNSkiIGtleVRpbWVzPSIwOzAuMTswLjI7MC40OzEiPjwvYW5pbWF0ZT4KICAgICAgPGFuaW1hdGVUcmFuc2Zvcm0gYXR0cmlidXRlTmFtZT0idHJhbnNmb3JtIiB0eXBlPSJzY2FsZSIgYWRkaXRpdmU9InN1bSIgZnJvbT0iMC44IiB0bz0iMSIgcmVwZWF0Q291bnQ9ImluZGVmaW5pdGUiIGJlZ2luPSIwLjBzIiBkdXI9IjEuNnMiIHZhbHVlcz0iMTswLjg7MC44OzE7MSIga2V5VGltZXM9IjA7MC4xOzAuMjswLjQ7MSI+PC9hbmltYXRlVHJhbnNmb3JtPgogICAgPC9jaXJjbGU+CiAgICA8Y2lyY2xlIGN4PSIwIiBjeT0iMCIgcj0iMTAiIHRyYW5zZm9ybT0idHJhbnNsYXRlKDUwIDI1KSIgZmlsbD0icmdiYSgwLDAsMCwuNSkiIGNsYXNzPSJzcSI+CiAgICAgIDxhbmltYXRlIGF0dHJpYnV0ZU5hbWU9ImZpbGwiIGZyb209InJnYmEoMCwwLDAsMCkiIHRvPSJyZ2JhKDAsMCwwLC41KSIgcmVwZWF0Q291bnQ9ImluZGVmaW5pdGUiIGR1cj0iMS42cyIgYmVnaW49IjAuNHMiIHZhbHVlcz0icmdiYSgwLDAsMCwuNSk7cmdiYSgwLDAsMCwwKTtyZ2JhKDAsMCwwLDApO3JnYmEoMCwwLDAsLjUpO3JnYmEoMCwwLDAsLjUpIiBrZXlUaW1lcz0iMDswLjE7MC4yOzAuNDsxIj48L2FuaW1hdGU+CiAgICAgIDxhbmltYXRlVHJhbnNmb3JtIGF0dHJpYnV0ZU5hbWU9InRyYW5zZm9ybSIgdHlwZT0ic2NhbGUiIGFkZGl0aXZlPSJzdW0iIGZyb209IjAuOCIgdG89IjEiIHJlcGVhdENvdW50PSJpbmRlZmluaXRlIiBiZWdpbj0iMC40cyIgZHVyPSIxLjZzIiB2YWx1ZXM9IjE7MC44OzAuODsxOzEiIGtleVRpbWVzPSIwOzAuMTswLjI7MC40OzEiPjwvYW5pbWF0ZVRyYW5zZm9ybT4KICAgIDwvY2lyY2xlPgogICAgPGNpcmNsZSBjeD0iMCIgY3k9IjAiIHI9IjEwIiB0cmFuc2Zvcm09InRyYW5zbGF0ZSg1MCA1MCkiIGZpbGw9InJnYmEoMCwwLDAsLjUpIiBjbGFzcz0ic3EiPgogICAgICA8YW5pbWF0ZSBhdHRyaWJ1dGVOYW1lPSJmaWxsIiBmcm9tPSJyZ2JhKDAsMCwwLDApIiB0bz0icmdiYSgwLDAsMCwuNSkiIHJlcGVhdENvdW50PSJpbmRlZmluaXRlIiBkdXI9IjEuNnMiIGJlZ2luPSIwLjhzIiB2YWx1ZXM9InJnYmEoMCwwLDAsLjUpO3JnYmEoMCwwLDAsMCk7cmdiYSgwLDAsMCwwKTtyZ2JhKDAsMCwwLC41KTtyZ2JhKDAsMCwwLC41KSIga2V5VGltZXM9IjA7MC4xOzAuMjswLjQ7MSI+PC9hbmltYXRlPgogICAgICA8YW5pbWF0ZVRyYW5zZm9ybSBhdHRyaWJ1dGVOYW1lPSJ0cmFuc2Zvcm0iIHR5cGU9InNjYWxlIiBhZGRpdGl2ZT0ic3VtIiBmcm9tPSIwLjgiIHRvPSIxIiByZXBlYXRDb3VudD0iaW5kZWZpbml0ZSIgYmVnaW49IjAuOHMiIGR1cj0iMS42cyIgdmFsdWVzPSIxOzAuODswLjg7MTsxIiBrZXlUaW1lcz0iMDswLjE7MC4yOzAuNDsxIj48L2FuaW1hdGVUcmFuc2Zvcm0+CiAgICA8L2NpcmNsZT4KICAgIDxjaXJjbGUgY3g9IjAiIGN5PSIwIiByPSIxMCIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMjUgNTApIiBmaWxsPSJyZ2JhKDAsMCwwLC41KSIgY2xhc3M9InNxIj4KICAgICAgPGFuaW1hdGUgYXR0cmlidXRlTmFtZT0iZmlsbCIgZnJvbT0icmdiYSgwLDAsMCwwKSIgdG89InJnYmEoMCwwLDAsLjUpIiByZXBlYXRDb3VudD0iaW5kZWZpbml0ZSIgZHVyPSIxLjZzIiBiZWdpbj0iMS4ycyIgdmFsdWVzPSJyZ2JhKDAsMCwwLC41KTtyZ2JhKDAsMCwwLDApO3JnYmEoMCwwLDAsMCk7cmdiYSgwLDAsMCwuNSk7cmdiYSgwLDAsMCwuNSkiIGtleVRpbWVzPSIwOzAuMTswLjI7MC40OzEiPjwvYW5pbWF0ZT4KICAgICAgPGFuaW1hdGVUcmFuc2Zvcm0gYXR0cmlidXRlTmFtZT0idHJhbnNmb3JtIiB0eXBlPSJzY2FsZSIgYWRkaXRpdmU9InN1bSIgZnJvbT0iMC44IiB0bz0iMSIgcmVwZWF0Q291bnQ9ImluZGVmaW5pdGUiIGJlZ2luPSIxLjJzIiBkdXI9IjEuNnMiIHZhbHVlcz0iMTswLjg7MC44OzE7MSIga2V5VGltZXM9IjA7MC4xOzAuMjswLjQ7MSI+PC9hbmltYXRlVHJhbnNmb3JtPgogICAgPC9jaXJjbGU+Cjwvc3ZnPgo=",
"base64"),g=i("PHN2ZyBjbGFzcz0iZnAtbG9hZGluZy1zaGFycC1maWxsIiB3aWR0aD0nMTEycHgnIGhlaWdodD0nMTEycHgnIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgdmlld0JveD0iMCAwIDEwMCAxMDAiIHByZXNlcnZlQXNwZWN0UmF0aW89InhNaWRZTWlkIj4KICA8cmVjdCB4PSIwIiB5PSIwIiB3aWR0aD0iNzYiIGhlaWdodD0iNzYiIGZpbGw9InJnYmEoMCwwLDAsMCkiIGNsYXNzPSJiayI+PC9yZWN0PgogIDxyZWN0IHg9Ii0xMCIgeT0iLTEwIiB3aWR0aD0iMjAiIGhlaWdodD0iMjAiIHRyYW5zZm9ybT0idHJhbnNsYXRlKDI1IDI1KSIgZmlsbD0icmdiYSgwLDAsMCwuNSkiIGNsYXNzPSJzcSI+CiAgICA8YW5pbWF0ZSBhdHRyaWJ1dGVOYW1lPSJmaWxsIiBmcm9tPSJyZ2JhKDAsMCwwLDApIiB0bz0icmdiYSgwLDAsMCwuNSkiIHJlcGVhdENvdW50PSJpbmRlZmluaXRlIiBkdXI9IjEuNnMiIGJlZ2luPSIwLjBzIiB2YWx1ZXM9InJnYmEoMCwwLDAsLjUpO3JnYmEoMCwwLDAsMCk7cmdiYSgwLDAsMCwwKTtyZ2JhKDAsMCwwLC41KTtyZ2JhKDAsMCwwLC41KSIga2V5VGltZXM9IjA7MC4xOzAuMjswLjQ7MSI+PC9hbmltYXRlPgogICAgPGFuaW1hdGVUcmFuc2Zvcm0gYXR0cmlidXRlTmFtZT0idHJhbnNmb3JtIiB0eXBlPSJzY2FsZSIgYWRkaXRpdmU9InN1bSIgZnJvbT0iMC44IiB0bz0iMSIgcmVwZWF0Q291bnQ9ImluZGVmaW5pdGUiIGJlZ2luPSIwLjBzIiBkdXI9IjEuNnMiIHZhbHVlcz0iMTswLjg7MC44OzE7MSIga2V5VGltZXM9IjA7MC4xOzAuMjswLjQ7MSI+PC9hbmltYXRlVHJhbnNmb3JtPgogIDwvcmVjdD4KICA8cmVjdCB4PSItMTAiIHk9Ii0xMCIgd2lkdGg9IjIwIiBoZWlnaHQ9IjIwIiB0cmFuc2Zvcm09InRyYW5zbGF0ZSg1MCAyNSkiIGZpbGw9InJnYmEoMCwwLDAsLjUpIiBjbGFzcz0ic3EiPgogICAgPGFuaW1hdGUgYXR0cmlidXRlTmFtZT0iZmlsbCIgZnJvbT0icmdiYSgwLDAsMCwwKSIgdG89InJnYmEoMCwwLDAsLjUpIiByZXBlYXRDb3VudD0iaW5kZWZpbml0ZSIgZHVyPSIxLjZzIiBiZWdpbj0iMC40cyIgdmFsdWVzPSJyZ2JhKDAsMCwwLC41KTtyZ2JhKDAsMCwwLDApO3JnYmEoMCwwLDAsMCk7cmdiYSgwLDAsMCwuNSk7cmdiYSgwLDAsMCwuNSkiIGtleVRpbWVzPSIwOzAuMTswLjI7MC40OzEiPjwvYW5pbWF0ZT4KICAgIDxhbmltYXRlVHJhbnNmb3JtIGF0dHJpYnV0ZU5hbWU9InRyYW5zZm9ybSIgdHlwZT0ic2NhbGUiIGFkZGl0aXZlPSJzdW0iIGZyb209IjAuOCIgdG89IjEiIHJlcGVhdENvdW50PSJpbmRlZmluaXRlIiBiZWdpbj0iMC40cyIgZHVyPSIxLjZzIiB2YWx1ZXM9IjE7MC44OzAuODsxOzEiIGtleVRpbWVzPSIwOzAuMTswLjI7MC40OzEiPjwvYW5pbWF0ZVRyYW5zZm9ybT4KICA8L3JlY3Q+CiAgPHJlY3QgeD0iLTEwIiB5PSItMTAiIHdpZHRoPSIyMCIgaGVpZ2h0PSIyMCIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoNTAgNTApIiBmaWxsPSJyZ2JhKDAsMCwwLC41KSIgY2xhc3M9InNxIj4KICAgIDxhbmltYXRlIGF0dHJpYnV0ZU5hbWU9ImZpbGwiIGZyb209InJnYmEoMCwwLDAsMCkiIHRvPSJyZ2JhKDAsMCwwLC41KSIgcmVwZWF0Q291bnQ9ImluZGVmaW5pdGUiIGR1cj0iMS42cyIgYmVnaW49IjAuOHMiIHZhbHVlcz0icmdiYSgwLDAsMCwuNSk7cmdiYSgwLDAsMCwwKTtyZ2JhKDAsMCwwLDApO3JnYmEoMCwwLDAsLjUpO3JnYmEoMCwwLDAsLjUpIiBrZXlUaW1lcz0iMDswLjE7MC4yOzAuNDsxIj48L2FuaW1hdGU+CiAgICA8YW5pbWF0ZVRyYW5zZm9ybSBhdHRyaWJ1dGVOYW1lPSJ0cmFuc2Zvcm0iIHR5cGU9InNjYWxlIiBhZGRpdGl2ZT0ic3VtIiBmcm9tPSIwLjgiIHRvPSIxIiByZXBlYXRDb3VudD0iaW5kZWZpbml0ZSIgYmVnaW49IjAuOHMiIGR1cj0iMS42cyIgdmFsdWVzPSIxOzAuODswLjg7MTsxIiBrZXlUaW1lcz0iMDswLjE7MC4yOzAuNDsxIj48L2FuaW1hdGVUcmFuc2Zvcm0+CiAgPC9yZWN0PgogIDxyZWN0IHg9Ii0xMCIgeT0iLTEwIiB3aWR0aD0iMjAiIGhlaWdodD0iMjAiIHRyYW5zZm9ybT0idHJhbnNsYXRlKDI1IDUwKSIgZmlsbD0icmdiYSgwLDAsMCwuNSkiIGNsYXNzPSJzcSI+CiAgICA8YW5pbWF0ZSBhdHRyaWJ1dGVOYW1lPSJmaWxsIiBmcm9tPSJyZ2JhKDAsMCwwLDApIiB0bz0icmdiYSgwLDAsMCwuNSkiIHJlcGVhdENvdW50PSJpbmRlZmluaXRlIiBkdXI9IjEuNnMiIGJlZ2luPSIxLjJzIiB2YWx1ZXM9InJnYmEoMCwwLDAsLjUpO3JnYmEoMCwwLDAsMCk7cmdiYSgwLDAsMCwwKTtyZ2JhKDAsMCwwLC41KTtyZ2JhKDAsMCwwLC41KSIga2V5VGltZXM9IjA7MC4xOzAuMjswLjQ7MSI+PC9hbmltYXRlPgogICAgPGFuaW1hdGVUcmFuc2Zvcm0gYXR0cmlidXRlTmFtZT0idHJhbnNmb3JtIiB0eXBlPSJzY2FsZSIgYWRkaXRpdmU9InN1bSIgZnJvbT0iMC44IiB0bz0iMSIgcmVwZWF0Q291bnQ9ImluZGVmaW5pdGUiIGJlZ2luPSIxLjJzIiBkdXI9IjEuNnMiIHZhbHVlcz0iMTswLjg7MC44OzE7MSIga2V5VGltZXM9IjA7MC4xOzAuMjswLjQ7MSI+PC9hbmltYXRlVHJhbnNmb3JtPgogIDwvcmVjdD4KPC9zdmc+Cg==",
"base64"),nt=i("PHN2ZyBjbGFzcz0iZnAtbG9hZGluZy1zaGFycC1vdXRsaW5lIiB3aWR0aD0nMTEycHgnIGhlaWdodD0nMTEycHgnIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgdmlld0JveD0iMCAwIDEwMCAxMDAiIHByZXNlcnZlQXNwZWN0UmF0aW89InhNaWRZTWlkIj4KICA8cmVjdCB4PSIwIiB5PSIwIiB3aWR0aD0iNzYiIGhlaWdodD0iNzYiIGZpbGw9InJnYmEoMCwwLDAsMCkiIGNsYXNzPSJiayI+PC9yZWN0PgogIDxyZWN0IHg9Ii05IiB5PSItOSIgd2lkdGg9IjE4IiBoZWlnaHQ9IjE4IiB0cmFuc2Zvcm09InRyYW5zbGF0ZSgyNSAyNSkiIGZpbGw9Im5vbmUiIHN0cm9rZT0icmdiYSgwLDAsMCwuNSkiIHN0cm9rZS13aWR0aD0iMyUiIGNsYXNzPSJzcSI+CiAgICA8YW5pbWF0ZSBhdHRyaWJ1dGVOYW1lPSJzdHJva2UiIGZyb209InJnYmEoMCwwLDAsMCkiIHRvPSJyZ2JhKDAsMCwwLC41KSIgcmVwZWF0Q291bnQ9ImluZGVmaW5pdGUiIGR1cj0iMS42cyIgYmVnaW49IjAuMHMiIHZhbHVlcz0icmdiYSgwLDAsMCwuNSk7cmdiYSgwLDAsMCwwKTtyZ2JhKDAsMCwwLDApO3JnYmEoMCwwLDAsLjUpO3JnYmEoMCwwLDAsLjUpIiBrZXlUaW1lcz0iMDswLjE7MC4yOzAuNDsxIj48L2FuaW1hdGU+CiAgICAgIDxhbmltYXRlVHJhbnNmb3JtIGF0dHJpYnV0ZU5hbWU9InRyYW5zZm9ybSIgdHlwZT0ic2NhbGUiIGFkZGl0aXZlPSJzdW0iIGZyb209IjAuOCIgdG89IjEiIHJlcGVhdENvdW50PSJpbmRlZmluaXRlIiBiZWdpbj0iMC4wcyIgZHVyPSIxLjZzIiB2YWx1ZXM9IjE7MC44OzAuODsxOzEiIGtleVRpbWVzPSIwOzAuMTswLjI7MC40OzEiPjwvYW5pbWF0ZVRyYW5zZm9ybT4KICA8L3JlY3Q+CiAgPHJlY3QgeD0iLTkiIHk9Ii05IiB3aWR0aD0iMTgiIGhlaWdodD0iMTgiIHRyYW5zZm9ybT0idHJhbnNsYXRlKDUwIDI1KSIgZmlsbD0ibm9uZSIgc3Ryb2tlPSJyZ2JhKDAsMCwwLC41KSIgc3Ryb2tlLXdpZHRoPSIzJSIgY2xhc3M9InNxIj4KICAgIDxhbmltYXRlIGF0dHJpYnV0ZU5hbWU9InN0cm9rZSIgZnJvbT0icmdiYSgwLDAsMCwwKSIgdG89InJnYmEoMCwwLDAsLjUpIiByZXBlYXRDb3VudD0iaW5kZWZpbml0ZSIgZHVyPSIxLjZzIiBiZWdpbj0iMC40cyIgdmFsdWVzPSJyZ2JhKDAsMCwwLC41KTtyZ2JhKDAsMCwwLDApO3JnYmEoMCwwLDAsMCk7cmdiYSgwLDAsMCwuNSk7cmdiYSgwLDAsMCwuNSkiIGtleVRpbWVzPSIwOzAuMTswLjI7MC40OzEiPjwvYW5pbWF0ZT4KICAgICAgPGFuaW1hdGVUcmFuc2Zvcm0gYXR0cmlidXRlTmFtZT0idHJhbnNmb3JtIiB0eXBlPSJzY2FsZSIgYWRkaXRpdmU9InN1bSIgZnJvbT0iMC44IiB0bz0iMSIgcmVwZWF0Q291bnQ9ImluZGVmaW5pdGUiIGJlZ2luPSIwLjRzIiBkdXI9IjEuNnMiIHZhbHVlcz0iMTswLjg7MC44OzE7MSIga2V5VGltZXM9IjA7MC4xOzAuMjswLjQ7MSI+PC9hbmltYXRlVHJhbnNmb3JtPgogIDwvcmVjdD4KICA8cmVjdCB4PSItOSIgeT0iLTkiIHdpZHRoPSIxOCIgaGVpZ2h0PSIxOCIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoNTAgNTApIiBmaWxsPSJub25lIiBzdHJva2U9InJnYmEoMCwwLDAsLjUpIiBzdHJva2Utd2lkdGg9IjMlIiBjbGFzcz0ic3EiPgogICAgPGFuaW1hdGUgYXR0cmlidXRlTmFtZT0ic3Ryb2tlIiBmcm9tPSJyZ2JhKDAsMCwwLDApIiB0bz0icmdiYSgwLDAsMCwuNSkiIHJlcGVhdENvdW50PSJpbmRlZmluaXRlIiBkdXI9IjEuNnMiIGJlZ2luPSIwLjhzIiB2YWx1ZXM9InJnYmEoMCwwLDAsLjUpO3JnYmEoMCwwLDAsMCk7cmdiYSgwLDAsMCwwKTtyZ2JhKDAsMCwwLC41KTtyZ2JhKDAsMCwwLC41KSIga2V5VGltZXM9IjA7MC4xOzAuMjswLjQ7MSI+PC9hbmltYXRlPgogICAgICA8YW5pbWF0ZVRyYW5zZm9ybSBhdHRyaWJ1dGVOYW1lPSJ0cmFuc2Zvcm0iIHR5cGU9InNjYWxlIiBhZGRpdGl2ZT0ic3VtIiBmcm9tPSIwLjgiIHRvPSIxIiByZXBlYXRDb3VudD0iaW5kZWZpbml0ZSIgYmVnaW49IjAuOHMiIGR1cj0iMS42cyIgdmFsdWVzPSIxOzAuODswLjg7MTsxIiBrZXlUaW1lcz0iMDswLjE7MC4yOzAuNDsxIj48L2FuaW1hdGVUcmFuc2Zvcm0+CiAgPC9yZWN0PgogIDxyZWN0IHg9Ii05IiB5PSItOSIgd2lkdGg9IjE4IiBoZWlnaHQ9IjE4IiB0cmFuc2Zvcm09InRyYW5zbGF0ZSgyNSA1MCkiIGZpbGw9Im5vbmUiIHN0cm9rZT0icmdiYSgwLDAsMCwuNSkiIHN0cm9rZS13aWR0aD0iMyUiIGNsYXNzPSJzcSI+CiAgICA8YW5pbWF0ZSBhdHRyaWJ1dGVOYW1lPSJzdHJva2UiIGZyb209InJnYmEoMCwwLDAsMCkiIHRvPSJyZ2JhKDAsMCwwLC41KSIgcmVwZWF0Q291bnQ9ImluZGVmaW5pdGUiIGR1cj0iMS42cyIgYmVnaW49IjEuMnMiIHZhbHVlcz0icmdiYSgwLDAsMCwuNSk7cmdiYSgwLDAsMCwwKTtyZ2JhKDAsMCwwLDApO3JnYmEoMCwwLDAsLjUpO3JnYmEoMCwwLDAsLjUpIiBrZXlUaW1lcz0iMDswLjE7MC4yOzAuNDsxIj48L2FuaW1hdGU+CiAgICAgIDxhbmltYXRlVHJhbnNmb3JtIGF0dHJpYnV0ZU5hbWU9InRyYW5zZm9ybSIgdHlwZT0ic2NhbGUiIGFkZGl0aXZlPSJzdW0iIGZyb209IjAuOCIgdG89IjEiIHJlcGVhdENvdW50PSJpbmRlZmluaXRlIiBiZWdpbj0iMS4ycyIgZHVyPSIxLjZzIiB2YWx1ZXM9IjE7MC44OzAuODsxOzEiIGtleVRpbWVzPSIwOzAuMTswLjI7MC40OzEiPjwvYW5pbWF0ZVRyYW5zZm9ybT4KICA8L3JlY3Q+Cjwvc3ZnPgo=",
"base64");o(function(n,t){function it(n){return r.find(".fp-"+n,t)[0]}function fi(n){r.css(pt,"padding-top",n*100+"%");ct.inlineBlock||r.height(r.find("object",t)[0],r.height(t))}function lt(n){n?(r.addClass(t,"is-mouseover"),r.removeClass(t,"is-mouseout")):(r.addClass(t,"is-mouseout"),r.removeClass(t,"is-mouseover"))}var gt,e,ct,ni,ft,ut,at,bt,kt,vt,dt;r.find(".fp-filters").forEach(r.removeNode);try{document.body.appendChild(gt=r.createElement("div",{},i("PHN2ZyBjbGFzcz0iZnAtZmlsdGVycyIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB2aWV3Qm94PSIwIDAgMCAwIj4KICA8ZGVmcz4KICAgIDxmaWx0ZXIgaWQ9ImYxIiB4PSItMjAlIiB5PSItMjAlIiB3aWR0aD0iMjAwJSIgaGVpZ2h0PSIyMDAlIj4KICAgICAgPGZlT2Zmc2V0IHJlc3VsdD0ib2ZmT3V0IiBpbj0iU291cmNlQWxwaGEiIGR4PSIwIiBkeT0iMCIgLz4KICAgICAgPGZlQ29sb3JNYXRyaXggcmVzdWx0PSJtYXRyaXhPdXQiIGluPSJvZmZPdXQiIHR5cGU9Im1hdHJpeCIKICAgICAgdmFsdWVzPSIwLjMgMCAwIDAgMCAwIDAuMyAwIDAgMCAwIDAgMC4zIDAgMCAwIDAgMCAwLjQgMCIgLz4KICAgICAgPGZlR2F1c3NpYW5CbHVyIHJlc3VsdD0iYmx1ck91dCIgaW49Im1hdHJpeE91dCIgc3RkRGV2aWF0aW9uPSI0IiAvPgogICAgICA8ZmVCbGVuZCBpbj0iU291cmNlR3JhcGhpYyIgaW4yPSJibHVyT3V0IiBtb2RlPSJub3JtYWwiIC8+CiAgICA8L2ZpbHRlcj4KICA8L2RlZnM+Cjwvc3ZnPgo=",
"base64")));r.css(gt,{width:0,height:0,overflow:"hidden",position:"absolute",margin:0,padding:0})}catch(hi){}e=n.conf;ct=o.support;r.find(".fp-ratio,.fp-ui",t).forEach(r.removeNode);r.addClass(t,"flowplayer");t.appendChild(r.createElement("div",{className:"fp-ratio"}));ft=r.createElement("div",{className:"fp-ui"},'         <div class="fp-waiting">           {{ LOADING_SHARP_OUTLINE }}           {{ LOADING_SHARP_FILL }}           {{ LOADING_ROUNDED_FILL }}           {{ LOADING_ROUNDED_OUTLINE }}         <\/div>         <div class="fp-header">           <a class="fp-share fp-icon"><\/a>           <a class="fp-fullscreen fp-icon"><\/a>           <a class="fp-unload fp-icon"><\/a>         <\/div>         <p class="fp-speed-flash"><\/p>         <div class="fp-play fp-visible">           <a class="fp-icon fp-playbtn"><\/a>           {{ PLAY_ROUNDED_FILL }}           {{ PLAY_ROUNDED_OUTLINE }}           {{ PLAY_SHARP_FILL }}           {{ PLAY_SHARP_OUTLINE }}         <\/div>         <div class="fp-pause">           <a class="fp-icon fp-playbtn"><\/a>           {{ PAUSE_SHARP_OUTLINE }}           {{ PAUSE_SHARP_FILL }}           {{ PAUSE_ROUNDED_OUTLINE }}           {{ PAUSE_ROUNDED_FILL }}         <\/div>         <div class="fp-controls">            <a class="fp-icon fp-playbtn"><\/a>            <span class="fp-elapsed">00:00<\/span>            <div class="fp-timeline fp-bar">               <span class="fp-timestamp"><\/span>               <div class="fp-progress fp-color"><\/div>            <\/div>            <span class="fp-duration"><\/span>            <span class="fp-remaining"><\/span>            <div class="fp-volume">               <a class="fp-icon fp-volumebtn"><\/a>               <div class="fp-volumebar fp-bar-slider">                 <em><\/em><em><\/em><em><\/em><em><\/em><em><\/em><em><\/em><em><\/em>               <\/div>            <\/div>            <strong class="fp-speed fp-hidden"><\/strong>         <\/div>'.
replace("{{ PAUSE_ROUNDED_FILL }}",p).replace("{{ PAUSE_ROUNDED_OUTLINE }}",y).replace("{{ PAUSE_SHARP_FILL }}",w).replace("{{ PAUSE_SHARP_OUTLINE }}",b).replace("{{ PLAY_SHARP_OUTLINE }}",v).replace("{{ PLAY_SHARP_FILL }}",a).replace("{{ PLAY_ROUNDED_OUTLINE }}",c).replace("{{ PLAY_ROUNDED_FILL }}",l).replace("{{ LOADING_ROUNDED_OUTLINE }}",k).replace("{{ LOADING_ROUNDED_FILL }}",d).replace("{{ LOADING_SHARP_FILL }}",g).replace("{{ LOADING_SHARP_OUTLINE }}",nt).replace(/url\(#/g,"url("+window.location.href.replace(window.location.hash,"").replace(/\#$/g,"")+"#"));t.appendChild(ft);var ei=it("waiting"),yt=it("elapsed"),pt=it("ratio"),et=it("speed-flash"),oi=it("duration"),ti=it("remaining"),ot=it("timestamp"),si=r.css(pt,"padding-top"),st=it("play"),ii=it("pause"),rt=it("timeline"),tt=s(rt,n.rtl),ri=it("fullscreen"),wt=it("volumebar"),ht=h(wt,{rtl:n.rtl}),ui=r.hasClass(t,"no-toggle");tt.disableAnimation(r.hasClass(t,"is-touch"));n.sliders=n.sliders||{};n.sliders.timeline=tt;n.sliders.volume=ht;ut=[];ct.svg||r.
html(ei,"<p>loading &hellip;<\/p>");e.ratio&&fi(e.ratio);try{e.fullscreen||r.removeNode(ri)}catch(hi){r.removeNode(ri)}n.on("dvrwindow",function(){tt.disable(!1)});n.on("ready",function(n,i,u){var o=i.video.duration;tt.disable(i.disabled||!o);e.adaptiveRatio&&!isNaN(u.height/u.width)&&fi(u.height/u.width,!0);r.html([oi,ti],i.live?"Live":f(o));r.toggleClass(t,"is-long",o>=3600);ht.slide(i.volumeLevel);i.engine.engineName==="flash"?tt.disableAnimation(!0,!0):tt.disableAnimation(!1);r.find(".fp-title",ft).forEach(r.removeNode);u.title&&r.prepend(ft,r.createElement("div",{className:"fp-message fp-title"},u.title));r.toggleClass(t,"has-title",!!u.title)}).on("unload",function(){si||e.splash||r.css(pt,"paddingTop","");tt.slide(0);r.addClass(st,"fp-visible")}).on("buffer",function(n,t,i){var u=t.video,e=u.buffer/u.duration,f;!u.seekable&&ct.seekable&&tt.max(t.conf.live?Infinity:e);i&&typeof i!="number"||(i=[{start:0,end:u.buffer}]);f=r.find(".fp-buffer",rt);f.length!==i.length&&(f.forEach(r.removeNode),f=[]);i.forEach(
function(n,t){var i=f[t]||r.createElement("div",{className:"fp-buffer"});r.css(i,{left:100*n.start/u.duration+"%",width:100*(n.end-n.start)/u.duration+"%"});r.prepend(rt,i)})}).on("speed",function(n,t,i){t.video.time&&(r.text(et,i+"x"),r.addClass(et,"fp-shown"),ut=ut.filter(function(n){return clearTimeout(n),!1}),ut.push(setTimeout(function(){r.addClass(et,"fp-hilite");ut.push(setTimeout(function(){r.removeClass(et,"fp-hilite");ut.push(setTimeout(function(){r.removeClass(et,"fp-shown")},300))},1e3))})))}).on("buffered",function(){tt.max(1)}).on("progress seek",function(i,u,o){var s=n.video.duration,h=n.video.seekOffset||0,c;o=o||n.video.time;c=(o-h)/(s-h);tt.dragging||tt.slide(c,n.seeking?0:250);r.toggleClass(t,"is-live-position",s-o<e.livePositionOffset);r.html(yt,f(o));r.html(ti,f(s-o,!0))}).on("finish resume seek",function(n){r.toggleClass(t,"is-finished",n.type=="finish")}).on("resume",function(){r.addClass(st,"fp-visible");setTimeout(function(){r.removeClass(st,"fp-visible")},300)}).on("pause",function()
{r.addClass(ii,"fp-visible");setTimeout(function(){r.removeClass(ii,"fp-visible")},300)}).on("stop",function(){r.html(yt,f(0));tt.slide(0,100)}).on("finish",function(){r.html(yt,f(n.video.duration));tt.slide(1,100);r.removeClass(t,"is-seeking")}).on("beforeseek",function(){}).on("volume",function(){ht.slide(n.volumeLevel)}).on("disable",function(){var i=n.disabled;tt.disable(i);ht.disable(i);r.toggleClass(t,"is-disabled",n.disabled)}).on("mute",function(n,i,u){r.toggleClass(t,"is-muted",u)}).on("error",function(n,i,u){var f,o;if(r.removeClass(t,"is-loading"),r.removeClass(t,"is-seeking"),r.addClass(t,"is-error"),u){i.error=!0;f=u.code;(u.message||"").match(/DECODER_ERROR_NOT_SUPPORTED/)&&(f=3);o=i.message((i.engine&&i.engine.engineName||"html5")+": "+e.errors[f]);r.removeClass(t,"is-mouseover");i.one("load progress",function(){o()})}}).one("resume ready",function(){var n=r.find("video.fp-engine",t)[0],i;n&&(r.width(n)&&r.height(n)||(i=t.style.overflow,t.style.overflow="visible",setTimeout(function(){i?t.style.
overflow=i:t.style.removeProperty("overflow")})))});u.on(t,"mouseenter mouseleave",function(i){var r,f,o;if(!ui)if(r=i.type=="mouseover",lt(r),r){o=function(){lt(!0);f=new Date};n.on("pause.x volume.x",o);u.on(t,"mousemove.x",o);ni=setInterval(function(){new Date-f>e.mouseoutTimeout&&(lt(!1),f=new Date)},100)}else u.off(t,"mousemove.x"),n.off("pause.x volume.x"),clearInterval(ni)});u.on(t,"mouseleave",function(){(tt.dragging||ht.dragging)&&(r.addClass(t,"is-mouseover"),r.removeClass(t,"is-mouseout"))});u.on(t,"click.player",function(t){if(!n.disabled)return r.hasClass(t.target,"fp-ui")||r.hasClass(t.target,"fp-engine")||t.flash||r.hasParent(t.target,".fp-play,.fp-pause")?(t.preventDefault&&t.preventDefault(),n.toggle()):void 0});u.on(t,"mousemove",".fp-timeline",function(t){var s=t.pageX||t.clientX,o=s-r.offset(rt).left,u=o/r.width(rt),e=n.video,h=e.duration-(e.seekOffset===undefined?0:e.seekOffset),c=(n.rtl?1-u:u)*h,i;u<0||(r.html(ot,f(c)),i=o-r.width(ot)/2,i<0&&(i=0),i>r.width(rt)-r.width(ot)&&(i=!1),i!==!1?
r.css(ot,{left:i+"px",right:"auto"}):r.css(ot,{left:"auto",right:"0px"}))});u.on(t,"contextmenu",function(i){var e=window,f;if(!r.hasClass(t,"is-flash-disabled")&&(f=r.find(".fp-context-menu",t)[0],f)){i.preventDefault();n.showMenu(f,{left:i.clientX-e.scrollX,top:i.clientY-e.scrollY});u.on(t,"click",".fp-context-menu",function(n){n.stopPropagation()})}});n.on("flashdisabled",function(i,u,f){r.addClass(t,"is-flash-disabled");var e;f!==!1&&(e=n.message("Seems something is blocking Adobe Flash from running"));n.one("ready progress",function(){r.removeClass(t,"is-flash-disabled");e&&e()})});if(e.poster&&r.css(t,"background-image","url("+e.poster+")"),at=r.css(t,"background-color"),bt=r.css(t,"background-image")!="none"||at&&at!="rgba(0, 0, 0, 0)"&&at!="transparent",bt&&!e.splash){e.poster||(e.poster=!0);kt=function(){r.addClass(t,"is-poster");r.addClass(st,"fp-visible");n.poster=!0;n.on("resume.poster progress.poster beforeseek.poster",function(i){(i.type==="beforeseek"||n.playing)&&(r.removeClass(t,"is-poster"),
r.removeClass(st,"fp-visible"),n.poster=!1,n.off(".poster"))})};n.on("stop",function(){kt()});n.on("ready",function(n,t,i){i.index||i.autoplay||kt()})}typeof e.splash=="string"&&r.css(t,"background-image","url('"+e.splash+"')");!bt&&n.forcedSplash&&r.css(t,"background-color","#555");u.on(t,"click",".fp-toggle, .fp-play, .fp-playbtn",function(){n.disabled||n.toggle()});u.on(t,"click",".fp-volumebtn",function(){n.mute()});u.on(t,"click",".fp-fullscreen",function(){n.fullscreen()});u.on(t,"click",".fp-unload",function(){n.unload()});u.on(rt,"slide",function(t){n.seeking=!0;n.seekTo(t*10)});u.on(wt,"slide",function(t){n.volume(t)});u.on(t,"click",".fp-duration,.fp-remaining",function(){if(n.dvr)return n.seekTo(10);r.toggleClass(t,"is-inverted")});lt(ui);n.on("shutdown",function(){u.off(rt);u.off(wt);vt&&window.cancelAnimationFrame(vt);r.removeNode(ft);r.find(".fp-ratio",t).forEach(r.removeNode)});typeof requestAnimationFrame=="function"&&(dt=function(){var n=r.find(".fp-player",t)[0]||t;r.toggleClass(t,"is-tiny",
n.clientWidth<400);r.toggleClass(t,"is-small",n.clientWidth<600&&n.clientWidth>=400);vt=window.requestAnimationFrame(dt)},vt=window.requestAnimationFrame(dt))});t.exports.format=f}).call(this,n("buffer").Buffer)},{"../common":1,"../flowplayer":31,"./ui/bar-slider":28,"./ui/slider":29,bean:34,buffer:35}],28:[function(n,t){function u(n,t){function o(t){var f=t.pageX||t.clientX,o=r.offset(n),e=r.width(n),i,u;return!f&&t.originalEvent&&t.originalEvent.touches&&t.originalEvent.touches.length&&(f=t.originalEvent.touches[0].pageX),i=f-o.left,i=Math.max(0,Math.min(e,i)),u=i/e,c&&(u=1-u),u}t=t||{};var s=t.activeClass||"fp-color",h=t.inactiveClass||"fp-grey",f=t.childSelector||"em",c=!!t.rtl,e=!1,l=r.find(f,n).length,u={unload:function(){i.off(n,".barslider")},slide:function(t,u){r.find(f,n).forEach(function(n,i){var u=t>i/l;r.toggleClass(n,s,u);r.toggleClass(n,h,!u)});u&&i.fire(n,"slide",[t])},disable:function(n){e=n}};i.on(n,"mousedown.sld touchstart.sld",function(t){if(t.preventDefault(),!e){u.slide(o(t),!0);i.on(n,
"mousemove.sld touchmove.sld",function(n){n.preventDefault();u.slide(o(n),!0)});i.one(document,"mouseup.sld touchup.sld",function(){i.off(n,"mousemove.sld touchmove.sld")})}});return u}var i=n("bean"),r=n("../../common");t.exports=u},{"../../common":1,bean:34}],29:[function(n,t){"use strict";var r=n("bean"),i=n("../../common"),u=function(n,t){var i;return function(){i||(n.apply(this,arguments),i=1,setTimeout(function(){i=0},t))}},f=function(n,t){var o=i.lastChild(n),c,l,a,v,s,h,f,w,b=!1,y=function(){l=i.offset(n);a=i.width(n);v=i.height(n);h=s?v:a;w=g(f)},p=function(t){!c&&t!=e.value&&(!f||t<f)&&(r.fire(n,"slide",[t]),e.value=t)},k=function(n){var u=n.pageX||n.clientX,r,i;return!u&&n.originalEvent&&n.originalEvent.touches&&n.originalEvent.touches.length&&(u=n.originalEvent.touches[0].pageX),r=s?n.pageY-l.top:u-l.left,r=Math.max(0,Math.min(w||h,r)),i=r/h,s&&(i=1-i),t&&(i=1-i),d(i,0,!0)},d=function(n,t){t===undefined&&(t=0);n>1&&(n=1);var r=Math.round(n*1e3)/10+"%";return(!f||n<=f)&&(b?i.removeClass(o,"animated"):
(i.addClass(o,"animated"),i.css(o,"transition-duration",(t||0)+"ms")),i.css(o,"width",r)),n},g=function(n){return Math.max(0,Math.min(h,s?(1-n)*v:n*a))},e={max:function(n){f=n},disable:function(n){c=n},slide:function(n,t,i){y();i&&p(n);d(n,t)},disableAnimation:function(t,r){b=t!==!1;i.toggleClass(n,"no-animation",!!r)}};y();r.on(n,"mousedown.sld touchstart",function(t){if(t.preventDefault(),!c){var f=u(p,100);y();e.dragging=!0;i.addClass(n,"is-dragging");p(k(t));r.on(document,"mousemove.sld touchmove.sld",function(n){n.preventDefault();f(k(n))});r.one(document,"mouseup touchend",function(){e.dragging=!1;i.removeClass(n,"is-dragging");r.off(document,"mousemove.sld touchmove.sld")})}});return e};t.exports=f},{"../../common":1,bean:34}],30:[function(n,t){function i(n){var t=document.createElement("textarea"),i;if(t.value=n,t.style.opacity=0,t.style.position="absolute",document.body.appendChild(t),t.select(),i=document.execCommand("copy"),document.body.removeChild(t),!i)throw new Error("Unsuccessfull");}var r=t.exports=
function(n,t,r){try{i(n);t()}catch(u){r(u)}}},{}],31:[function(n,t){"use strict";function w(n,t,u){var k,d,g,a,tt;t&&t.embed&&(t.embed=f({},r.defaults.embed,t.embed));k=!1;try{typeof r.conf.storage=="undefined"&&typeof localStorage=="object"&&(window.localStorage.flowplayerTestStorage="test",k=!0)}catch(ut){}var p=n,v=f({},r.defaults,r.conf,t),b={},it=p.className,nt,w,rt=new s;i.addClass(p,"is-loading");i.toggleClass(p,"no-flex",!r.support.flex);i.toggleClass(p,"no-svg",!r.support.svg);try{b=r.conf.storage||(k?window.localStorage:b)}catch(ft){}if(v.volume=b.muted==="true"?0:v.volume!==r.defaults.volume?v.volume:isNaN(b.volume)?v.volume:b.volume,v.debug=!!b.flowplayerDebug||v.debug,v.aspectRatio&&typeof v.aspectRatio=="string"&&(d=v.aspectRatio.split(/[:\/]/),v.ratio=d[1]/d[0]),g=p.currentStyle&&p.currentStyle.direction==="rtl"||window.getComputedStyle&&window.getComputedStyle(p,null)!==null&&window.getComputedStyle(p,null).getPropertyValue("direction")==="rtl",g&&i.addClass(p,"is-rtl"),a={conf:v,currentSpeed:
1,volumeLevel:v.muted?0:typeof v.volume=="undefined"?b.volume*1:v.volume,video:{},disabled:!1,finished:!1,loading:!1,muted:b.muted=="true"||v.muted,paused:!1,playing:!1,ready:!1,splash:!1,rtl:g,hijack:function(n){try{a.engine.suspendEngine()}catch(t){}a.hijacked=n},release:function(){try{a.engine.resumeEngine()}catch(n){}a.hijacked=!1},debug:function(){v.debug&&console.log.apply(console,["DEBUG"].concat([].slice.call(arguments)))},load:function(n,t){var i,u;if(!a.error&&!a.loading){if(a.video={},a.finished=!1,n=n||v.clip,n=f({},rt.resolve(n,v.clip.sources)),(a.playing||a.engine)&&(n.autoplay=!0),i=tt(n),!i)return setTimeout(function(){a.trigger("error",[a,{code:r.support.flashVideo?5:10}])})&&a;if(!i.engineName)throw new Error("engineName property of factory should be exposed");if(!a.engine||i.engineName!==a.engine.engineName){a.ready=!1;a.engine&&(a.engine.unload(),a.conf.autoplay=!0);w=a.engine=i(a,p);a.one("ready",function(){setTimeout(function(){a.muted?a.mute(!0,!0):w.volume(a.volumeLevel)})})}if(f(n,w.pick(
n.sources.filter(function(n){return n.engine?n.engine===w.engineName:!0}))),n.src)if(u=a.trigger("load",[a,n,w],!0),u.defaultPrevented)a.loading=!1;else if(a.ready=!1,w.load(n),o(n)&&(t=n),t)a.one("ready",t);return a}},pause:function(n){if(a.hijacked)return a.hijacked.pause(n)|a;if(a.ready&&!a.seeking&&!a.loading){w.pause();a.one("pause",n)}return a},resume:function(){var n=a.trigger("beforeresume",[a],!0);if(!n.defaultPrevented)return a.hijacked?a.hijacked.resume()|a:(a.ready&&a.paused&&(w.resume(),a.finished&&(a.trigger("resume",[a]),a.finished=!1)),a)},toggle:function(){return a.ready?a.paused?a.resume():a.pause():a.load()},seek:function(n,t){var r,u;if(typeof n=="boolean"&&(r=a.conf.seekStep||a.video.duration*.1,n=a.video.time+(n?r:-r),n=Math.min(Math.max(n,0),a.video.duration-.1)),typeof n=="undefined")return a;if(a.hijacked)return a.hijacked.seek(n,t)|a;if(a.ready)if(nt=n,u=a.trigger("beforeseek",[a,n],!0),u.defaultPrevented)a.seeking=!1,i.toggleClass(p,"is-seeking",a.seeking);else if(w.seek(n),o(t))a.one(
"seek",t);return a},seekTo:function(n,t){return n===undefined?a.seek(nt,t):a.video.seekOffset!==undefined?a.seek(a.video.seekOffset+(a.video.duration-a.video.seekOffset)*.1*n,t):a.seek(a.video.duration*.1*n,t)},mute:function(n,t){return n===undefined&&(n=!a.muted),a.muted=n,t||(b.muted=n,b.volume=isNaN(b.volume)?v.volume:b.volume),typeof w.mute!="undefined"?w.mute(n):(a.volume(n?0:b.volume,!0),a.trigger("mute",[a,n])),a},volume:function(n,t){return a.ready&&(n=Math.min(Math.max(n,0),1),t||(b.volume=n),w.volume(n)),a},speed:function(n,t){if(a.ready&&(typeof n=="boolean"&&(n=v.speeds[v.speeds.indexOf(a.currentSpeed)+(n?1:-1)]||a.currentSpeed),w.speed(n),t))p.one("speed",t);return a},stop:function(){return a.ready&&(a.pause(),!a.live||a.dvr?a.seek(0,function(){a.trigger("stop",[a])}):a.trigger("stop",[a])),a},unload:function(){return v.splash?(a.trigger("unload",[a]),w&&(w.unload(),a.engine=w=0)):a.stop(),a},shutdown:function(){a.unload();a.trigger("shutdown",[a]);h.off(p);delete e[p.getAttribute("data-flowplayer-instance-id")];
p.removeAttribute("data-flowplayer-instance-id")},disable:function(n){return n===undefined&&(n=!a.disabled),n!=a.disabled&&(a.disabled=n,a.trigger("disable",n)),a},registerExtension:function(n,t){n=n||[];t=t||[];typeof n=="string"&&(n=[n]);typeof t=="string"&&(t=[t]);n.forEach(function(n){a.extensions.js.push(n)});t.forEach(function(n){a.extensions.css.push(n)})}},a.conf=f(a.conf,v),a.extensions={js:[],css:[]},r.extensions.forEach(function(n){a.registerExtension(n[0],n[1])}),c(a),tt=function(n){var u,i=r.engines,t;return v.engine&&(t=i.filter(function(n){return n.engineName===v.engine})[0],t&&n.sources.some(function(n){return n.engine&&n.engine!==t.engineName?!1:t.canPlay(n.type,a.conf)}))?t:(v.enginePreference&&(i=r.engines.filter(function(n){return v.enginePreference.indexOf(n.engineName)>-1}).sort(function(n,t){return v.enginePreference.indexOf(n.engineName)-v.enginePreference.indexOf(t.engineName)})),n.sources.some(function(n){var t=i.filter(function(t){return n.engine&&n.engine!==t.engineName?!1:t.canPlay(
n.type,a.conf)}).shift();return t&&(u=t),!!t}),u)},!p.getAttribute("data-flowplayer-instance-id")){p.setAttribute("data-flowplayer-instance-id",y++);a.on("boot",function(){var n=r.support;(v.splash||i.hasClass(p,"is-splash")||!n.firstframe)&&(a.forcedSplash=!v.splash&&!i.hasClass(p,"is-splash"),a.splash=!0,v.splash||(v.splash=!0),i.addClass(p,"is-splash"));v.splash&&i.find("video",p).forEach(i.removeNode);(v.dvr||v.live||i.hasClass(p,"is-live"))&&(a.live=v.live=!0,a.dvr=v.dvr=!!v.dvr||i.hasClass(p,"is-dvr"),i.addClass(p,"is-live"),i.toggleClass(p,"is-dvr",a.dvr));l.forEach(function(n){n(a,p)});e.push(a);v.splash?a.unload():a.load();v.disabled&&a.disable();a.one("ready",u);a.one("shutdown",function(){p.className=it})}).on("load",function(n,t,r){v.splash&&i.find(".flowplayer.is-ready,.flowplayer.is-loading").forEach(function(n){var i=n.getAttribute("data-flowplayer-instance-id"),t;i!==p.getAttribute("data-flowplayer-instance-id")&&(t=e[Number(i)],t&&t.conf.splash&&t.unload())});i.addClass(p,"is-loading");t.loading=
!0;(typeof r.live!="undefined"||typeof r.dvr!="undefined")&&(i.toggleClass(p,"is-live",r.dvr||r.live),i.toggleClass(p,"is-dvr",!!r.dvr),t.live=r.dvr||r.live,t.dvr=!!r.dvr)}).on("ready",function(n,t,r){r.time=0;t.video=r;i.removeClass(p,"is-loading");t.loading=!1;t.muted?t.mute(!0,!0):t.volume(t.volumeLevel);var u=t.conf.hlsFix&&/mpegurl/i.exec(r.type);i.toggleClass(p,"hls-fix",!!u)}).on("unload",function(){i.removeClass(p,"is-loading");a.loading=!1}).on("ready unload",function(n){var t=n.type=="ready";i.toggleClass(p,"is-splash",!t);i.toggleClass(p,"is-ready",t);a.ready=t;a.splash=!t}).on("progress",function(n,t,i){t.video.time=i}).on("buffer",function(n,t,i){t.video.buffer=typeof i=="number"?i:i&&i.length?i[i.length-1].end:0}).on("speed",function(n,t,i){t.currentSpeed=i}).on("volume",function(n,t,i){t.volumeLevel=Math.round(i*100)/100;t.muted&&i&&t.mute(!1)}).on("beforeseek seek",function(n){a.seeking=n.type=="beforeseek";i.toggleClass(p,"is-seeking",a.seeking)}).on("ready pause resume unload finish stop",function(
n){a.paused=/pause|finish|unload|stop/.test(n.type);a.paused=a.paused||n.type==="ready"&&!v.autoplay&&!a.playing;a.playing=!a.paused;i.toggleClass(p,"is-paused",a.paused);i.toggleClass(p,"is-playing",a.playing);a.load.ed||a.pause()}).on("finish",function(){a.finished=!0}).on("error",function(){})}return a.trigger("boot",[a,p]),a}var f=n("extend-object"),o=n("is-function"),h=n("bean"),b=n("./ext/ui/slider"),k=n("./ext/ui/bar-slider"),i=n("./common"),c=n("./ext/events"),e=[],l=[],a=window.onbeforeunload,y,s,u,p;window.onbeforeunload=function(n){return e.forEach(function(n){n.conf.splash?n.unload():n.bind("error",function(){i.find(".flowplayer.is-error .fp-message").forEach(i.removeNode)})}),a?a(n):void 0};var d=/Safari/.exec(navigator.userAgent)&&!/Chrome/.exec(navigator.userAgent),v=/(\d+\.\d+) Safari/.exec(navigator.userAgent),g=v?Number(v[1]):100,r=t.exports=function(n,t,u){if(o(n))return l.push(n);if(typeof n=="number"||typeof n=="undefined")return e[n||0];if(n.nodeType)return n.getAttribute("data-flowplayer-instance-id")!==
null?e[n.getAttribute("data-flowplayer-instance-id")]:t?w(n,t,u):void 0;if(n.jquery)return r(n[0],t,u);if(typeof n=="string"){var f=i.find(n)[0];return f&&r(f,t,u)}};f(r,{version:"7.2.6",engines:[],engine:function(n){return r.engines.filter(function(t){return t.engineName===n})[0]},extensions:[],conf:{},set:function(n,t){typeof n=="string"?r.conf[n]=t:f(r.conf,n)},registerExtension:function(n,t){r.extensions.push([n,t])},support:{},defaults:{debug:!1,disabled:!1,fullscreen:window==window.top,keyboard:!0,ratio:9/16,adaptiveRatio:!1,rtmp:0,proxy:"best",hlsQualities:!0,seekStep:!1,splash:!1,live:!1,livePositionOffset:120,swf:"//releases.flowplayer.org/7.2.6/commercial/flowplayer.swf",swfHls:"//releases.flowplayer.org/7.2.6/commercial/flowplayerhls.swf",speeds:[.25,.5,1,1.5,2],tooltip:!0,mouseoutTimeout:5e3,mutedAutoplay:!0,clickToUnMute:!0,volume:1,errors:["","Video loading aborted","Network error","Video not properly encoded","Video file not found","Unsupported video","Skin not found","SWF file not found","Subtitles not found",
"Invalid RTMP URL","Unsupported video format. Try installing Adobe Flash."],errorUrls:["","","","","","","","","","","http://get.adobe.com/flashplayer/"],playlist:[],hlsFix:d&&g<8,disableInline:!1},bean:h,common:i,slider:b,barSlider:k,extend:f});y=0;s=n("./ext/resolve");typeof jQuery!="undefined"&&(u=window.jQuery,u(function(){typeof u.fn.flowplayer=="function"&&u('.flowplayer:has(video:not(.fp-engine),script[type="application/json"])').flowplayer()}),p=function(n){if(!n.length)return{};var t=n.data()||{},i={};return u.each(["autoplay","loop","preload","poster"],function(r,u){var f=n.attr(u);f!==undefined&&["autoplay","poster"].indexOf(u)!==-1?i[u]=f?f:!0:f!==undefined&&(t[u]=f?f:!0)}),n[0].autoplay=n[0].preload=!1,t.subtitles=n.find("track").map(function(){var n=u(this);return{src:n.attr("src"),kind:n.attr("kind"),label:n.attr("label"),srclang:n.attr("srclang"),"default":n.prop("default")}}).get(),t.sources=(new s).sourcesFromVideoTag(n,u),f(i,{clip:t})},u.fn.flowplayer=function(n,t){return this.each(function(
){typeof n=="string"&&(n={swf:n});o(n)&&(t=n,n={});var i=u(this),r=i.find('script[type="application/json"]'),e=r.length?JSON.parse(r.text()):p(i.find("video")),s=u.extend({},n||{},e,i.data()),f=w(this,s,t);c.EVENTS.forEach(function(n){f.on(n+".jquery",function(n){i.trigger.call(i,n.type,n.detail&&n.detail.args)})});i.data("flowplayer",f)})})},{"./common":1,"./ext/events":12,"./ext/resolve":21,"./ext/ui/bar-slider":28,"./ext/ui/slider":29,bean:34,"extend-object":39,"is-function":42}],32:[function(n,t){n("es5-shim");var i=t.exports=n("./flowplayer");n("./ext/support");n("./engine/embed");n("./engine/hlsjs");n("./engine/html5");n("./engine/flash");n("./ext/ui");n("./ext/message");n("./ext/keyboard");n("./ext/playlist");n("./ext/cuepoint");n("./ext/subtitle");n("./ext/analytics");n("./ext/share");n("./ext/facebook");n("./ext/twitter");n("./ext/embed");n("./ext/airplay");n("./ext/chromecast");n("./ext/qsel");n("./ext/menu");n("./ext/fullscreen");n("./ext/mobile");i(function(n,t){function p(n){var t=document.createElement(
"a");return t.href=n,e.hostname(t.hostname)}function w(n){var u="ab.ca,ac.ac,ac.ae,ac.at,ac.be,ac.cn,ac.il,ac.in,ac.jp,ac.kr,ac.sg,ac.th,ac.uk,ad.jp,adm.br,adv.br,ah.cn,am.br,arq.br,art.br,arts.ro,asn.au,asso.fr,asso.mc,bc.ca,bel.tr,bio.br,biz.pl,biz.tr,bj.cn,br.com,cn.com,cng.br,cnt.br,co.ac,co.at,co.de,co.gl,co.hk,co.id,co.il,co.in,co.jp,co.kr,co.mg,co.ms,co.nz,co.th,co.uk,co.ve,co.vi,co.za,com.ag,com.ai,com.ar,com.au,com.br,com.cn,com.co,com.cy,com.de,com.do,com.ec,com.es,com.fj,com.fr,com.gl,com.gt,com.hk,com.hr,com.hu,com.kg,com.ki,com.lc,com.mg,com.mm,com.ms,com.mt,com.mu,com.mx,com.my,com.na,com.nf,com.ng,com.ni,com.pa,com.ph,com.pl,com.pt,com.qa,com.ro,com.ru,com.sb,com.sc,com.sg,com.sv,com.tr,com.tw,com.ua,com.uy,com.ve,com.vn,cp.tz,cq.cn,de.com,de.org,ecn.br,ed.jp,edu.au,edu.cn,edu.hk,edu.mm,edu.my,edu.pl,edu.pt,edu.qa,edu.sg,edu.tr,edu.tw,eng.br,ernet.in,esp.br,etc.br,eti.br,eu.com,eu.int,eu.lv,firm.in,firm.ro,fm.br,fot.br,fst.br,g12.br,gb.com,gb.net,gd.cn,gen.in,go.jp,go.kr,go.th,gov.au,gov.az,gov.br,gov.cn,gov.il,gov.in,gov.mm,gov.my,gov.qa,gov.sg,gov.tr,gov.tw,gov.uk,govt.nz,gr.jp,gs.cn,gv.ac,gv.at,gx.cn,gz.cn,he.cn,hi.cn,hk.cn,hl.cn,hu.com,id.au,idv.tw,in.th,in.ua,ind.br,ind.in,inf.br,info.pl,info.ro,info.tr,info.ve,iwi.nz,jl.cn,jor.br,js.cn,jus.br,k12.il,k12.tr,kr.com,lel.br,lg.jp,ln.cn,ltd.uk,maori.nz,mb.ca,me.uk,med.br,mi.th,mil.br,mil.uk,mo.cn,mod.uk,muni.il,nb.ca,ne.jp,ne.kr,net.ag,net.ai,net.au,net.br,net.cn,net.do,net.gl,net.hk,net.il,net.in,net.kg,net.ki,net.lc,net.mg,net.mm,net.mu,net.ni,net.nz,net.pl,net.ru,net.sb,net.sc,net.sg,net.th,net.tr,net.tw,net.uk,net.ve,nf.ca,nhs.uk,nm.cn,nm.kr,no.com,nom.br,nom.ni,nom.ro,ns.ca,nt.ca,nt.ro,ntr.br,nx.cn,odo.br,off.ai,on.ca,or.ac,or.at,or.jp,or.kr,or.th,org.ag,org.ai,org.au,org.br,org.cn,org.do,org.es,org.gl,org.hk,org.in,org.kg,org.ki,org.lc,org.mg,org.mm,org.ms,org.nf,org.ng,org.ni,org.nz,org.pl,org.ro,org.ru,org.sb,org.sc,org.sg,org.tr,org.tw,org.uk,org.ve,pe.ca,plc.uk,police.uk,ppg.br,presse.fr,pro.br,psc.br,psi.br,qc.ca,qc.com,qh.cn,rec.br,rec.ro,res.in,sa.com,sc.cn,sch.uk,se.com,se.net,sh.cn,sk.ca,slg.br,sn.cn,store.ro,tj.cn,tm.fr,tm.mc,tm.ro,tmp.br,tur.br,tv.br,tv.tr,tw.cn,uk.com,uk.net,us.com,uy.com,vet.br,waw.pl,web.ve,www.ro,xj.cn,xz.cn,yk.ca,yn.cn,zj.cn,zlg.br".
split(","),t,i,r;return(n=n.toLowerCase(),t=n.split("."),i=t.length,2>i||/^\d+$/.test(t[i-1]))?n:(r=t.slice(-2).join("."),i>=3&&u.indexOf(r)>=0?t.slice(-3).join("."):r)}function v(n,t){t=w(t);for(var r=0,i=t.length-1;i>=0;i--)r+=5285928321*t.charCodeAt(i);for(r=(""+r).substring(0,7),i=0;i<n.length;i++)if(r===n[i].substring(1,8))return 1}var b=function(n,t){var i=n.className.split(" ");-1===i.indexOf(t)&&(n.className+=" "+t)},k=function(n){return"none"!==window.getComputedStyle(n).display},r=n.conf,e=i.common,h=e.createElement,f=r.swf.indexOf("flowplayer.org")&&r.e&&t.getAttribute("data-origin"),l=f?p(f):e.hostname(),o=(document,r.key),y,u,s,c,a;if("file:"==location.protocol&&(l="localhost"),n.load.ed=1,r.hostname=l,r.origin=f||location.href,f&&b(t,"is-embedded"),"string"==typeof o&&(o=o.split(/,\s*/)),o&&"function"==typeof v&&v(o,l)){if(r.logo){var s=e.find(".fp-player",t)[0],d=r.logo.href||"",g=r.logo.src||r.logo,u=h("a",{className:"fp-logo",href:d});f&&(u.href=u.href||f);r.embed&&r.embed.popup&&(u.target="_blank")
;y=h("img",{src:g});u.appendChild(y);(s||t).appendChild(u)}}else u=h("a",{href:"https://flowplayer.com/hello/?from=player"}),s=e.find(".fp-player",t)[0],(s||t).appendChild(u),c=h("div",{className:"fp-context-menu fp-menu"},'<strong>&copy; 2018 Flowplayer AB<\/strong><a href="https://flowplayer.com/hello/?from=player">About Flowplayer<\/a><a href="https://flowplayer.com/license">GPL based license<\/a>'),a=window.location.href.indexOf("localhost"),7!==a&&(s||t).appendChild(c),n.on("pause resume finish unload ready",function(n,i){var r=-1,h,f,e,o;if(i.video.src)for(h=[["org","flowplayer","drive"],["org","flowplayer","my"],["org","flowplayer","cdn"],["com","flowplayer","cdn"]],f=0;f<h.length&&(r=i.video.src.indexOf("://"+h[f].reverse().join(".")),-1===r);f++);if(/pause|resume/.test(n.type)&&"flash"!=i.engine.engineName&&4!=r&&5!=r){e={display:"block",position:"absolute",left:"16px",bottom:"70px",zIndex:99999,width:"100px",height:"20px",backgroundImage:"url("+[".png","logo","/",".net",".cloudfront","d32wqyuo10o653",
"//","https:"].reverse().join("")+")"};for(o in e)e.hasOwnProperty(o)&&(u.style[o]=e[o]);i.load.ed=k(u)&&(7===a||c.parentNode==t||c.parentNode==s);i.load.ed||i.pause()}else u.style.display="none"})})},{"./engine/embed":2,"./engine/flash":3,"./engine/hlsjs":4,"./engine/html5":6,"./ext/airplay":7,"./ext/analytics":8,"./ext/chromecast":9,"./ext/cuepoint":10,"./ext/embed":11,"./ext/facebook":13,"./ext/fullscreen":14,"./ext/keyboard":15,"./ext/menu":16,"./ext/message":17,"./ext/mobile":18,"./ext/playlist":19,"./ext/qsel":20,"./ext/share":22,"./ext/subtitle":23,"./ext/support":25,"./ext/twitter":26,"./ext/ui":27,"./flowplayer":31,"es5-shim":38}],33:[function(n,t,i){"use strict";function s(n){var t=n.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");return n[t-2]==="="?2:n[t-1]==="="?1:0}function c(n){return n.length*3/4-s(n)}function l(n){var t,c,i,e,u,o=n.length,f;for(e=s(n),u=new h(o*3/4-e),c=e>0?o-4:o,f=0,t=0;t<c;t+=4)i=r[n.charCodeAt(t)]<<18|r[n.charCodeAt(t+1)]<<12|r[n.charCodeAt(
t+2)]<<6|r[n.charCodeAt(t+3)],u[f++]=i>>16&255,u[f++]=i>>8&255,u[f++]=i&255;return e===2?(i=r[n.charCodeAt(t)]<<2|r[n.charCodeAt(t+1)]>>4,u[f++]=i&255):e===1&&(i=r[n.charCodeAt(t)]<<10|r[n.charCodeAt(t+1)]<<4|r[n.charCodeAt(t+2)]>>2,u[f++]=i>>8&255,u[f++]=i&255),u}function a(n){return u[n>>18&63]+u[n>>12&63]+u[n>>6&63]+u[n&63]}function v(n,t,i){for(var u,f=[],r=t;r<i;r+=3)u=(n[r]<<16&16711680)+(n[r+1]<<8&65280)+(n[r+2]&255),f.push(a(u));return f.join("")}function y(n){for(var i,r=n.length,e=r%3,t="",o=[],s=16383,f=0,h=r-e;f<h;f+=s)o.push(v(n,f,f+s>h?h:f+s));return e===1?(i=n[r-1],t+=u[i>>2],t+=u[i<<4&63],t+="=="):e===2&&(i=(n[r-2]<<8)+n[r-1],t+=u[i>>10],t+=u[i>>4&63],t+=u[i<<2&63],t+="="),o.push(t),o.join("")}var f,o;i.byteLength=c;i.toByteArray=l;i.fromByteArray=y;var u=[],r=[],h=typeof Uint8Array!="undefined"?Uint8Array:Array,e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(f=0,o=e.length;f<o;++f)u[f]=e[f],r[e.charCodeAt(f)]=f;r["-".charCodeAt(0)]=62;r["_".charCodeAt(0)]=63},{}],34:[
function(t,i){
/*!
  * Bean - copyright (c) Jacob Thornton 2011-2012
  * https://github.com/fat/bean
  * MIT license
  */
(function(t,r,u){typeof i!="undefined"&&i.exports?i.exports=u():typeof n=="function"&&n.amd?n(u):r[t]=u()})("bean",this,function(n,t){var g;n=n||"bean";t=t||this;var u=window,ht=t[n],p=/[^\.]*(?=\..*)\.|.*/,a=/\..*/,w="addEventListener",ct="removeEventListener",e=document||{},o=e.documentElement||{},f=o[w],s=f?w:"attachEvent",nt={},c=Array.prototype.slice,i=function(n,t){return n.split(t||" ")},b=function(n){return typeof n=="string"},tt=function(n){return typeof n=="function"},it=function(n,t,i){for(i=0;i<t.length;i++)t[i]&&(n[t[i]]=1);return n}({},i("click dblclick mouseup mousedown contextmenu mousewheel mousemultiwheel DOMMouseScroll mouseover mouseout mousemove selectstart selectend keydown keypress keyup orientationchange focus blur change reset select submit load unload beforeunload resize move DOMContentLoaded readystatechange message error abort scroll "+(f?"show input invalid touchstart touchmove touchend touchcancel gesturestart gesturechange gestureend textinput readystatechange pageshow pagehide popstate hashchange offline online afterprint beforeprint dragstart dragenter dragover dragleave drag drop dragend loadstart progress suspend emptied stalled loadmetadata loadeddata canplay canplaythrough playing waiting seeking seeked ended durationchange timeupdate play pause ratechange volumechange cuechange checking noupdate downloading cached updateready obsolete ":
""))),k=function(){var t="compareDocumentPosition"in o?function(n,t){return t.compareDocumentPosition&&(t.compareDocumentPosition(n)&16)==16}:"contains"in o?function(n,t){return t=t.nodeType===9||t===window?o:t,t!==n&&t.contains(n)}:function(n,t){while(n=n.parentNode)if(n===t)return 1;return 0},n=function(n){var i=n.relatedTarget;return i?i!==this&&i.prefix!=="xul"&&!/document/.test(this.toString())&&!t(i,this):i==null};return{mouseenter:{base:"mouseover",condition:n},mouseleave:{base:"mouseout",condition:n},mousewheel:{base:/Firefox/.test(navigator.userAgent)?"DOMMouseScroll":"mousewheel"}}}(),rt=function(){var t=i("altKey attrChange attrName bubbles cancelable ctrlKey currentTarget detail eventPhase getModifierState isTrusted metaKey relatedNode relatedTarget shiftKey srcElement target timeStamp type view which propertyName"),f=t.concat(i("button buttons clientX clientY dataTransfer fromElement offsetX offsetY pageX pageY screenX screenY toElement")),h=f.concat(i("wheelDelta wheelDeltaX wheelDeltaY wheelDeltaZ axis")),
c=t.concat(i("char charCode key keyCode keyIdentifier keyLocation location")),l=t.concat(i("data")),a=t.concat(i("touches targetTouches changedTouches scale rotation")),v=t.concat(i("data origin source")),y=t.concat(i("state")),p=/over|out/,r=[{reg:/key/i,fix:function(n,t){return t.keyCode=n.keyCode||n.which,c}},{reg:/click|mouse(?!(.*wheel|scroll))|menu|drag|drop/i,fix:function(n,t,i){return t.rightClick=n.which===3||n.button===2,t.pos={x:0,y:0},n.pageX||n.pageY?(t.clientX=n.pageX,t.clientY=n.pageY):(n.clientX||n.clientY)&&(t.clientX=n.clientX+e.body.scrollLeft+o.scrollLeft,t.clientY=n.clientY+e.body.scrollTop+o.scrollTop),p.test(i)&&(t.relatedTarget=n.relatedTarget||n[(i=="mouseover"?"from":"to")+"Element"]),f}},{reg:/mouse.*(wheel|scroll)/i,fix:function(){return h}},{reg:/^text/i,fix:function(){return l}},{reg:/^touch|^gesture/i,fix:function(){return a}},{reg:/^message$/i,fix:function(){return v}},{reg:/^popstate$/i,fix:function(){return y}},{reg:/.*/,fix:function(){return t}}],s={},n=function(n,t,i){if(arguments.
length&&(n=n||((t.ownerDocument||t.document||t).parentWindow||u).event,this.originalEvent=n,this.isNative=i,this.isBean=!0,n)){var e=n.type,o=n.target||n.srcElement,f,a,h,l,c;if(this.target=o&&o.nodeType===3?o.parentNode:o,i){if(c=s[e],!c)for(f=0,a=r.length;f<a;f++)if(r[f].reg.test(e)){s[e]=c=r[f].fix;break}for(l=c(n,this,e),f=l.length;f--;)!((h=l[f])in this)&&h in n&&(this[h]=n[h])}}};return n.prototype.preventDefault=function(){this.originalEvent.preventDefault?this.originalEvent.preventDefault():this.originalEvent.returnValue=!1},n.prototype.stopPropagation=function(){this.originalEvent.stopPropagation?this.originalEvent.stopPropagation():this.originalEvent.cancelBubble=!0},n.prototype.stop=function(){this.preventDefault();this.stopPropagation();this.stopped=!0},n.prototype.stopImmediatePropagation=function(){this.originalEvent.stopImmediatePropagation&&this.originalEvent.stopImmediatePropagation();this.isImmediatePropagationStopped=function(){return!0}},n.prototype.isImmediatePropagationStopped=function()
{return this.originalEvent.isImmediatePropagationStopped&&this.originalEvent.isImmediatePropagationStopped()},n.prototype.clone=function(t){var i=new n(this,this.element,this.isNative);return i.currentTarget=t,i},n}(),ut=function(n,t){return!f&&!t&&(n===e||n===u)?o:n},ft=function(){var t=function(n,t,i,r){var u=function(i,u){return t.apply(n,r?c.call(u,i?0:1).concat(r):u)},f=function(i,r){return t.__beanDel?t.__beanDel.ft(i.target,n):r},e=i?function(n){var t=f(n,this);if(i.apply(t,arguments))return n&&(n.currentTarget=t),u(n,arguments)}:function(n){return t.__beanDel&&(n=n.clone(f(n))),u(n,arguments)};return e.__beanDel=t.__beanDel,e},n=function(n,i,r,u,e,o,h){var c=k[i],l;i=="unload"&&(r=st(d,n,i,r,u));c&&(c.condition&&(r=t(n,r,c.condition,o)),i=c.base||i);this.isNative=l=it[i]&&!!n[s];this.customType=!f&&!l&&i;this.element=n;this.type=i;this.original=u;this.namespaces=e;this.eventType=f||l?i:"propertychange";this.target=ut(n,l);this[s]=!!this.target[s];this.root=h;this.handler=t(n,r,null,o)};return n.prototype.
inNamespaces=function(n){var t,i,r=0;if(!n)return!0;if(!this.namespaces)return!1;for(t=n.length;t--;)for(i=this.namespaces.length;i--;)n[t]==this.namespaces[i]&&r++;return n.length===r},n.prototype.matches=function(n,t,i){return this.element===n&&(!t||this.original===t)&&(!i||this.handler===i)},n}(),r=function(){var n={},t=function(i,r,u,f,e,o){var l=e?"r":"$",c;if(r&&r!="*"){var s=0,a,h=n[l+r],v=i=="*";if(!h)return;for(a=h.length;s<a;s++)if((v||h[s].matches(i,u,f))&&!o(h[s],h,s,r))return}else for(c in n)c.charAt(0)==l&&t(i,c.substr(1),u,f,e,o)},i=function(t,i,r,u){var f,e=n[(u?"r":"$")+i];if(e)for(f=e.length;f--;)if(!e[f].root&&e[f].matches(t,r,null))return!0;return!1},r=function(n,i,r,u){var f=[];return t(n,i,r,null,u,function(n){return f.push(n)}),f},u=function(t){var r=!t.root&&!this.has(t.element,t.type,null,!1),i=(t.root?"r":"$")+t.type;return(n[i]||(n[i]=[])).push(t),r},f=function(i){t(i.element,i.type,null,i.handler,i.root,function(t,i,r){return i.splice(r,1),t.removed=!0,i.length===0&&delete n[(t.root?
"r":"$")+t.type],!1})},e=function(){var t,i=[];for(t in n)t.charAt(0)=="$"&&(i=i.concat(n[t]));return i};return{has:i,get:r,put:u,del:f,entries:e}}(),v,et=function(n){v=arguments.length?n:e.querySelectorAll?function(n,t){return t.querySelectorAll(n)}:function(){throw new Error("Bean: No selector engine installed");}},y=function(n,t){if(f||!t||!n||n.propertyName=="_on"+t){var u=r.get(this,t||n.type,null,!1),e=u.length,i=0;for(n=new rt(n,this,!0),t&&(n.type=t);i<e&&!n.isImmediatePropagationStopped();i++)u[i].removed||u[i].handler.call(this,n)}},ot=f?function(n,t,i){n[i?w:ct](t,y,!1)}:function(n,t,i,u){var f;i?(r.put(f=new ft(n,u||t,function(t){y.call(n,t,u)},y,null,null,!0)),u&&n["_on"+u]==null&&(n["_on"+u]=0),f.target.attachEvent("on"+f.eventType,f.handler)):(f=r.get(n,u||t,y,!0)[0],f&&(f.target.detachEvent("on"+f.eventType,f.handler),r.del(f)))},st=function(n,t,i,r,u){return function(){r.apply(this,arguments);n(t,i,u)}},d=function(n,t,i,u){for(var c=t&&t.replace(a,""),e=r.get(n,c,null,!1),o={},f=0,h=e.length;
f<h;f++)(!i||e[f].original===i)&&e[f].inNamespaces(u)&&(r.del(e[f]),!o[e[f].eventType]&&e[f][s]&&(o[e[f].eventType]={t:e[f].eventType,c:e[f].type}));for(f in o)r.has(n,o[f].t,null,!1)||ot(n,o[f].t,!1,o[f].c)},lt=function(n,t){var i=function(t,i){for(var r,u=b(n)?v(n,i):n;t&&t!==i;t=t.parentNode)for(r=u.length;r--;)if(u[r]===t)return t},r=function(n){var r=i(n.target,this);r&&t.apply(r,arguments)};return r.__beanDel={ft:i,selector:n},r},at=f?function(n,t,i){var r=e.createEvent(n?"HTMLEvents":"UIEvents");r[n?"initEvent":"initUIEvent"](t,!0,!0,u,1);i.dispatchEvent(r)}:function(n,t,i){i=ut(i,n);n?i.fireEvent("on"+t,e.createEventObject()):i["_on"+t]++},h=function(n,t,r){var f=b(t),e,u,o,s;if(f&&t.indexOf(" ")>0){for(t=i(t),s=t.length;s--;)h(n,t[s],r);return n}if(u=f&&t.replace(a,""),u&&k[u]&&(u=k[u].base),!t||f)(o=f&&t.replace(p,""))&&(o=i(o,".")),d(n,u,r,o);else if(tt(t))d(n,null,t);else for(e in t)t.hasOwnProperty(e)&&h(n,e,t[e]);return n},l=function(n,t,u,f){var e,o,y,w,k,b,d;if(u===undefined&&typeof t=="object")
{for(o in t)t.hasOwnProperty(o)&&l.call(this,n,o,t[o]);return}for(tt(u)?(k=c.call(arguments,3),f=e=u):(e=f,k=c.call(arguments,4),f=lt(u,e,v)),y=i(t),this===nt&&(f=st(h,n,t,f,e)),w=y.length;w--;)d=r.put(b=new ft(n,y[w].replace(a,""),f,e,i(y[w].replace(p,""),"."),k,!1)),b[s]&&d&&ot(n,b.eventType,!0,b.customType);return n},vt=function(n,t,i,r){return l.apply(null,b(i)?[n,i,t,r].concat(arguments.length>3?c.call(arguments,5):[]):c.call(arguments))},yt=function(){return l.apply(nt,arguments)},pt=function(n,t,u){for(var c=i(t),f,l,e,h,o=c.length;o--;)if(t=c[o].replace(a,""),(e=c[o].replace(p,""))&&(e=i(e,".")),e||u||!n[s])for(h=r.get(n,t,null,!1),u=[!1].concat(u),f=0,l=h.length;f<l;f++)h[f].inNamespaces(e)&&h[f].handler.apply(n,u);else at(it[t],t,n);return n},wt=function(n,t,i){for(var f=r.get(t,i,null,!1),s=f.length,u=0,e,o;u<s;u++)f[u].original&&(e=[n,f[u].type],(o=f[u].handler.__beanDel)&&e.push(o.selector),e.push(f[u].original),l.apply(null,e));return n},bt={on:l,add:vt,one:yt,off:h,remove:h,clone:wt,fire:pt,Event:
rt,setSelectorEngine:et,noConflict:function(){return t[n]=ht,this}};return u.attachEvent&&(g=function(){var n,t=r.entries();for(n in t)t[n].type&&t[n].type!=="unload"&&h(t[n].element,t[n].type);u.detachEvent("onunload",g);u.CollectGarbage&&u.CollectGarbage()},u.attachEvent("onunload",g)),et(),bt})},{}],35:[function(n,t,i){(function(t){
/*!
 * The buffer module from node.js, for the browser.
 *
 * @author   Feross Aboukhadijeh <feross@feross.org> <http://feross.org>
 * @license  MIT
 */
function lt(){try{var n=new Uint8Array(1);return n.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},n.foo()===42&&typeof n.subarray=="function"&&n.subarray(1,1).byteLength===0}catch(t){return!1}}function h(){return r.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function e(n,t){if(h()<t)throw new RangeError("Invalid typed array length");return r.TYPED_ARRAY_SUPPORT?(n=new Uint8Array(t),n.__proto__=r.prototype):(n===null&&(n=new r(t)),n.length=t),n}function r(n,t,i){if(!r.TYPED_ARRAY_SUPPORT&&!(this instanceof r))return new r(n,t,i);if(typeof n=="number"){if(typeof t=="string")throw new Error("If encoding is specified then the first argument must be a string");return p(this,n)}return g(this,n,t,i)}function g(n,t,i,r){if(typeof t=="number")throw new TypeError('"value" argument must not be a number');return typeof ArrayBuffer!="undefined"&&t instanceof ArrayBuffer?yt(n,t,i,r):typeof t=="string"?vt(n,t,i):pt(n,t)}function nt(n){if(typeof n!="number")throw new TypeError('"size" argument must be a number');
else if(n<0)throw new RangeError('"size" argument must not be negative');}function at(n,t,i,r){return(nt(t),t<=0)?e(n,t):i!==undefined?typeof r=="string"?e(n,t).fill(i,r):e(n,t).fill(i):e(n,t)}function p(n,t){if(nt(t),n=e(n,t<0?0:b(t)|0),!r.TYPED_ARRAY_SUPPORT)for(var i=0;i<t;++i)n[i]=0;return n}function vt(n,t,i){var u,f;if((typeof i!="string"||i==="")&&(i="utf8"),!r.isEncoding(i))throw new TypeError('"encoding" must be a valid string encoding');return u=tt(t,i)|0,n=e(n,u),f=n.write(t,i),f!==u&&(n=n.slice(0,f)),n}function w(n,t){var r=t.length<0?0:b(t.length)|0,i;for(n=e(n,r),i=0;i<r;i+=1)n[i]=t[i]&255;return n}function yt(n,t,i,u){if(t.byteLength,i<0||t.byteLength<i)throw new RangeError("'offset' is out of bounds");if(t.byteLength<i+(u||0))throw new RangeError("'length' is out of bounds");return t=i===undefined&&u===undefined?new Uint8Array(t):u===undefined?new Uint8Array(t,i):new Uint8Array(t,i,u),r.TYPED_ARRAY_SUPPORT?(n=t,n.__proto__=r.prototype):n=w(n,t),n}function pt(n,t){if(r.isBuffer(t)){var i=b(t.length)|
0;return(n=e(n,i),n.length===0)?n:(t.copy(n,0,0,i),n)}if(t){if(typeof ArrayBuffer!="undefined"&&t.buffer instanceof ArrayBuffer||"length"in t)return typeof t.length!="number"||vi(t.length)?e(n,0):w(n,t);if(t.type==="Buffer"&&d(t.data))return w(n,t.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.");}function b(n){if(n>=h())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+h().toString(16)+" bytes");return n|0}function wt(n){return+n!=n&&(n=0),r.alloc(+n)}function tt(n,t){var i,u;if(r.isBuffer(n))return n.length;if(typeof ArrayBuffer!="undefined"&&typeof ArrayBuffer.isView=="function"&&(ArrayBuffer.isView(n)||n instanceof ArrayBuffer))return n.byteLength;if(typeof n!="string"&&(n=""+n),i=n.length,i===0)return 0;for(u=!1;;)switch(t){case"ascii":case"latin1":case"binary":return i;case"utf8":case"utf-8":case undefined:return a(n).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return i*2;case"hex":return i>>>1;case"base64":
return ct(n).length;default:if(u)return a(n).length;t=(""+t).toLowerCase();u=!0}}function bt(n,t,i){var r=!1;if(((t===undefined||t<0)&&(t=0),t>this.length)||((i===undefined||i>this.length)&&(i=this.length),i<=0)||(i>>>=0,t>>>=0,i<=t))return"";for(n||(n="utf8");;)switch(n){case"hex":return ei(this,t,i);case"utf8":case"utf-8":return ft(this,t,i);case"ascii":return ui(this,t,i);case"latin1":case"binary":return fi(this,t,i);case"base64":return ii(this,t,i);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return oi(this,t,i);default:if(r)throw new TypeError("Unknown encoding: "+n);n=(n+"").toLowerCase();r=!0}}function o(n,t,i){var r=n[t];n[t]=n[i];n[i]=r}function it(n,t,i,u,f){if(n.length===0)return-1;if(typeof i=="string"?(u=i,i=0):i>2147483647?i=2147483647:i<-2147483648&&(i=-2147483648),i=+i,isNaN(i)&&(i=f?0:n.length-1),i<0&&(i=n.length+i),i>=n.length){if(f)return-1;i=n.length-1}else if(i<0)if(f)i=0;else return-1;if(typeof t=="string"&&(t=r.from(t,u)),r.isBuffer(t))return t.length===0?-1:rt(n,t,i,u,f);if(typeof
t=="number")return(t=t&255,r.TYPED_ARRAY_SUPPORT&&typeof Uint8Array.prototype.indexOf=="function")?f?Uint8Array.prototype.indexOf.call(n,t,i):Uint8Array.prototype.lastIndexOf.call(n,t,i):rt(n,[t],i,u,f);throw new TypeError("val must be string, number or Buffer");}function rt(n,t,i,r,u){function l(n,t){return h===1?n[t]:n.readUInt16BE(t*h)}var h=1,c=n.length,o=t.length,f,e,a,s;if(r!==undefined&&(r=String(r).toLowerCase(),r==="ucs2"||r==="ucs-2"||r==="utf16le"||r==="utf-16le")){if(n.length<2||t.length<2)return-1;h=2;c/=2;o/=2;i/=2}if(u)for(e=-1,f=i;f<c;f++)if(l(n,f)===l(t,e===-1?0:f-e)){if(e===-1&&(e=f),f-e+1===o)return e*h}else e!==-1&&(f-=f-e),e=-1;else for(i+o>c&&(i=c-o),f=i;f>=0;f--){for(a=!0,s=0;s<o;s++)if(l(n,f+s)!==l(t,s)){a=!1;break}if(a)return f}return-1}function kt(n,t,i,r){var f,e,u,o;if(i=Number(i)||0,f=n.length-i,r?(r=Number(r),r>f&&(r=f)):r=f,e=t.length,e%2!=0)throw new TypeError("Invalid hex string");for(r>e/2&&(r=e/2),u=0;u<r;++u){if(o=parseInt(t.substr(u*2,2),16),isNaN(o))return u;n[i+u]=o}return u}
function dt(n,t,i,r){return v(a(t,n.length-i),n,i,r)}function ut(n,t,i,r){return v(li(t),n,i,r)}function gt(n,t,i,r){return ut(n,t,i,r)}function ni(n,t,i,r){return v(ct(t),n,i,r)}function ti(n,t,i,r){return v(ai(t,n.length-i),n,i,r)}function ii(n,t,i){return t===0&&i===n.length?y.fromByteArray(n):y.fromByteArray(n.slice(t,i))}function ft(n,t,i){var h,f,e,s,l,u;for(i=Math.min(n.length,i),h=[],f=t;f<i;){var o=n[f],r=null,c=o>239?4:o>223?3:o>191?2:1;if(f+c<=i)switch(c){case 1:o<128&&(r=o);break;case 2:e=n[f+1];(e&192)==128&&(u=(o&31)<<6|e&63,u>127&&(r=u));break;case 3:e=n[f+1];s=n[f+2];(e&192)==128&&(s&192)==128&&(u=(o&15)<<12|(e&63)<<6|s&63,u>2047&&(u<55296||u>57343)&&(r=u));break;case 4:e=n[f+1];s=n[f+2];l=n[f+3];(e&192)==128&&(s&192)==128&&(l&192)==128&&(u=(o&15)<<18|(e&63)<<12|(s&63)<<6|l&63,u>65535&&u<1114112&&(r=u))}r===null?(r=65533,c=1):r>65535&&(r-=65536,h.push(r>>>10&1023|55296),r=56320|r&1023);h.push(r);f+=c}return ri(h)}function ri(n){var r=n.length,i,t;if(r<=k)return String.fromCharCode.apply(String,
n);for(i="",t=0;t<r;)i+=String.fromCharCode.apply(String,n.slice(t,t+=k));return i}function ui(n,t,i){var u="",r;for(i=Math.min(n.length,i),r=t;r<i;++r)u+=String.fromCharCode(n[r]&127);return u}function fi(n,t,i){var u="",r;for(i=Math.min(n.length,i),r=t;r<i;++r)u+=String.fromCharCode(n[r]);return u}function ei(n,t,i){var f=n.length,u,r;for((!t||t<0)&&(t=0),(!i||i<0||i>f)&&(i=f),u="",r=t;r<i;++r)u+=ci(n[r]);return u}function oi(n,t,i){for(var u=n.slice(t,i),f="",r=0;r<u.length;r+=2)f+=String.fromCharCode(u[r]+u[r+1]*256);return f}function u(n,t,i){if(n%1!=0||n<0)throw new RangeError("offset is not uint");if(n+t>i)throw new RangeError("Trying to access beyond buffer length");}function f(n,t,i,u,f,e){if(!r.isBuffer(n))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>f||t<e)throw new RangeError('"value" argument is out of bounds');if(i+u>n.length)throw new RangeError("Index out of range");}function c(n,t,i,r){t<0&&(t=65535+t+1);for(var u=0,f=Math.min(n.length-i,2);u<f;++u)n[i+u]=(t&255<<8*
(r?u:1-u))>>>(r?u:1-u)*8}function l(n,t,i,r){t<0&&(t=4294967295+t+1);for(var u=0,f=Math.min(n.length-i,4);u<f;++u)n[i+u]=t>>>(r?u:3-u)*8&255}function et(n,t,i,r){if(i+r>n.length)throw new RangeError("Index out of range");if(i<0)throw new RangeError("Index out of range");}function ot(n,t,i,r,u){return u||et(n,t,i,4,34028234663852886e22,-34028234663852886e22),s.write(n,t,i,r,23,4),i+4}function st(n,t,i,r,u){return u||et(n,t,i,8,17976931348623157e292,-17976931348623157e292),s.write(n,t,i,r,52,8),i+8}function si(n){if(n=hi(n).replace(ht,""),n.length<2)return"";while(n.length%4!=0)n=n+"=";return n}function hi(n){return n.trim?n.trim():n.replace(/^\s+|\s+$/g,"")}function ci(n){return n<16?"0"+n.toString(16):n.toString(16)}function a(n,t){var f;t=t||Infinity;var i,e=n.length,u=null,r=[];for(f=0;f<e;++f){if(i=n.charCodeAt(f),i>55295&&i<57344){if(!u){if(i>56319){(t-=3)>-1&&r.push(239,191,189);continue}else if(f+1===e){(t-=3)>-1&&r.push(239,191,189);continue}u=i;continue}if(i<56320){(t-=3)>-1&&r.push(239,191,189);u=i;continue}
i=(u-55296<<10|i-56320)+65536}else u&&(t-=3)>-1&&r.push(239,191,189);if(u=null,i<128){if((t-=1)<0)break;r.push(i)}else if(i<2048){if((t-=2)<0)break;r.push(i>>6|192,i&63|128)}else if(i<65536){if((t-=3)<0)break;r.push(i>>12|224,i>>6&63|128,i&63|128)}else if(i<1114112){if((t-=4)<0)break;r.push(i>>18|240,i>>12&63|128,i>>6&63|128,i&63|128)}else throw new Error("Invalid code point");}return r}function li(n){for(var i=[],t=0;t<n.length;++t)i.push(n.charCodeAt(t)&255);return i}function ai(n,t){for(var i,f,e,r=[],u=0;u<n.length;++u){if((t-=2)<0)break;i=n.charCodeAt(u);f=i>>8;e=i%256;r.push(e);r.push(f)}return r}function ct(n){return y.toByteArray(si(n))}function v(n,t,i,r){for(var u=0;u<r;++u){if(u+i>=t.length||u>=n.length)break;t[u+i]=n[u]}return u}function vi(n){return n!==n}var k,ht;"use strict";var y=n("base64-js"),s=n("ieee754"),d=n("isarray");i.Buffer=r;i.SlowBuffer=wt;i.INSPECT_MAX_BYTES=50;r.TYPED_ARRAY_SUPPORT=t.TYPED_ARRAY_SUPPORT!==undefined?t.TYPED_ARRAY_SUPPORT:lt();i.kMaxLength=h();r.poolSize=8192;r._augment=
function(n){return n.__proto__=r.prototype,n};r.from=function(n,t,i){return g(null,n,t,i)};r.TYPED_ARRAY_SUPPORT&&(r.prototype.__proto__=Uint8Array.prototype,r.__proto__=Uint8Array,typeof Symbol!="undefined"&&Symbol.species&&r[Symbol.species]===r&&Object.defineProperty(r,Symbol.species,{value:null,configurable:!0}));r.alloc=function(n,t,i){return at(null,n,t,i)};r.allocUnsafe=function(n){return p(null,n)};r.allocUnsafeSlow=function(n){return p(null,n)};r.isBuffer=function(n){return!!(n!=null&&n._isBuffer)};r.compare=function(n,t){var u,f,i,e;if(!r.isBuffer(n)||!r.isBuffer(t))throw new TypeError("Arguments must be Buffers");if(n===t)return 0;for(u=n.length,f=t.length,i=0,e=Math.min(u,f);i<e;++i)if(n[i]!==t[i]){u=n[i];f=t[i];break}return u<f?-1:f<u?1:0};r.isEncoding=function(n){switch(String(n).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}};r.concat=function(n,t){var i,f,e,u;if(!d(
n))throw new TypeError('"list" argument must be an Array of Buffers');if(n.length===0)return r.alloc(0);if(t===undefined)for(t=0,i=0;i<n.length;++i)t+=n[i].length;for(f=r.allocUnsafe(t),e=0,i=0;i<n.length;++i){if(u=n[i],!r.isBuffer(u))throw new TypeError('"list" argument must be an Array of Buffers');u.copy(f,e);e+=u.length}return f};r.byteLength=tt;r.prototype._isBuffer=!0;r.prototype.swap16=function(){var t=this.length,n;if(t%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(n=0;n<t;n+=2)o(this,n,n+1);return this};r.prototype.swap32=function(){var t=this.length,n;if(t%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(n=0;n<t;n+=4)o(this,n,n+3),o(this,n+1,n+2);return this};r.prototype.swap64=function(){var t=this.length,n;if(t%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(n=0;n<t;n+=8)o(this,n,n+7),o(this,n+1,n+6),o(this,n+2,n+5),o(this,n+3,n+4);return this};r.prototype.toString=function(){var n=this.length|0;return n===0?"":arguments.
length===0?ft(this,0,n):bt.apply(this,arguments)};r.prototype.equals=function(n){if(!r.isBuffer(n))throw new TypeError("Argument must be a Buffer");return this===n?!0:r.compare(this,n)===0};r.prototype.inspect=function(){var n="",t=i.INSPECT_MAX_BYTES;return this.length>0&&(n=this.toString("hex",0,t).match(/.{2}/g).join(" "),this.length>t&&(n+=" ... ")),"<Buffer "+n+">"};r.prototype.compare=function(n,t,i,u,f){var e;if(!r.isBuffer(n))throw new TypeError("Argument must be a Buffer");if(t===undefined&&(t=0),i===undefined&&(i=n?n.length:0),u===undefined&&(u=0),f===undefined&&(f=this.length),t<0||i>n.length||u<0||f>this.length)throw new RangeError("out of range index");if(u>=f&&t>=i)return 0;if(u>=f)return-1;if(t>=i)return 1;if(t>>>=0,i>>>=0,u>>>=0,f>>>=0,this===n)return 0;var o=f-u,s=i-t,l=Math.min(o,s),h=this.slice(u,f),c=n.slice(t,i);for(e=0;e<l;++e)if(h[e]!==c[e]){o=h[e];s=c[e];break}return o<s?-1:s<o?1:0};r.prototype.includes=function(n,t,i){return this.indexOf(n,t,i)!==-1};r.prototype.indexOf=function(n,t,i)
{return it(this,n,t,i,!0)};r.prototype.lastIndexOf=function(n,t,i){return it(this,n,t,i,!1)};r.prototype.write=function(n,t,i,r){var u,f;if(t===undefined)r="utf8",i=this.length,t=0;else if(i===undefined&&typeof t=="string")r=t,i=this.length,t=0;else if(isFinite(t))t=t|0,isFinite(i)?(i=i|0,r===undefined&&(r="utf8")):(r=i,i=undefined);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");if(u=this.length-t,(i===undefined||i>u)&&(i=u),n.length>0&&(i<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");for(r||(r="utf8"),f=!1;;)switch(r){case"hex":return kt(this,n,t,i);case"utf8":case"utf-8":return dt(this,n,t,i);case"ascii":return ut(this,n,t,i);case"latin1":case"binary":return gt(this,n,t,i);case"base64":return ni(this,n,t,i);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ti(this,n,t,i);default:if(f)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase();f=!0}};r.prototype.toJSON=function(){return{type:"Buffer",data:
Array.prototype.slice.call(this._arr||this,0)}};k=4096;r.prototype.slice=function(n,t){var i=this.length,u,e,f;if(n=~~n,t=t===undefined?i:~~t,n<0?(n+=i,n<0&&(n=0)):n>i&&(n=i),t<0?(t+=i,t<0&&(t=0)):t>i&&(t=i),t<n&&(t=n),r.TYPED_ARRAY_SUPPORT)u=this.subarray(n,t),u.__proto__=r.prototype;else for(e=t-n,u=new r(e,undefined),f=0;f<e;++f)u[f]=this[f+n];return u};r.prototype.readUIntLE=function(n,t,i){n=n|0;t=t|0;i||u(n,t,this.length);for(var r=this[n],f=1,e=0;++e<t&&(f*=256);)r+=this[n+e]*f;return r};r.prototype.readUIntBE=function(n,t,i){n=n|0;t=t|0;i||u(n,t,this.length);for(var r=this[n+--t],f=1;t>0&&(f*=256);)r+=this[n+--t]*f;return r};r.prototype.readUInt8=function(n,t){return t||u(n,1,this.length),this[n]};r.prototype.readUInt16LE=function(n,t){return t||u(n,2,this.length),this[n]|this[n+1]<<8};r.prototype.readUInt16BE=function(n,t){return t||u(n,2,this.length),this[n]<<8|this[n+1]};r.prototype.readUInt32LE=function(n,t){return t||u(n,4,this.length),(this[n]|this[n+1]<<8|this[n+2]<<16)+this[n+3]*16777216};r.prototype.
readUInt32BE=function(n,t){return t||u(n,4,this.length),this[n]*16777216+(this[n+1]<<16|this[n+2]<<8|this[n+3])};r.prototype.readIntLE=function(n,t,i){n=n|0;t=t|0;i||u(n,t,this.length);for(var r=this[n],f=1,e=0;++e<t&&(f*=256);)r+=this[n+e]*f;return f*=128,r>=f&&(r-=Math.pow(2,8*t)),r};r.prototype.readIntBE=function(n,t,i){n=n|0;t=t|0;i||u(n,t,this.length);for(var e=t,r=1,f=this[n+--e];e>0&&(r*=256);)f+=this[n+--e]*r;return r*=128,f>=r&&(f-=Math.pow(2,8*t)),f};r.prototype.readInt8=function(n,t){return(t||u(n,1,this.length),!(this[n]&128))?this[n]:(256-this[n])*-1};r.prototype.readInt16LE=function(n,t){t||u(n,2,this.length);var i=this[n]|this[n+1]<<8;return i&32768?i|4294901760:i};r.prototype.readInt16BE=function(n,t){t||u(n,2,this.length);var i=this[n+1]|this[n]<<8;return i&32768?i|4294901760:i};r.prototype.readInt32LE=function(n,t){return t||u(n,4,this.length),this[n]|this[n+1]<<8|this[n+2]<<16|this[n+3]<<24};r.prototype.readInt32BE=function(n,t){return t||u(n,4,this.length),this[n]<<24|this[n+1]<<16|this[n+
2]<<8|this[n+3]};r.prototype.readFloatLE=function(n,t){return t||u(n,4,this.length),s.read(this,n,!0,23,4)};r.prototype.readFloatBE=function(n,t){return t||u(n,4,this.length),s.read(this,n,!1,23,4)};r.prototype.readDoubleLE=function(n,t){return t||u(n,8,this.length),s.read(this,n,!0,52,8)};r.prototype.readDoubleBE=function(n,t){return t||u(n,8,this.length),s.read(this,n,!1,52,8)};r.prototype.writeUIntLE=function(n,t,i,r){var o,u,e;for(n=+n,t=t|0,i=i|0,r||(o=Math.pow(2,8*i)-1,f(this,n,t,i,o,0)),u=1,e=0,this[t]=n&255;++e<i&&(u*=256);)this[t+e]=n/u&255;return t+i};r.prototype.writeUIntBE=function(n,t,i,r){var o,u,e;for(n=+n,t=t|0,i=i|0,r||(o=Math.pow(2,8*i)-1,f(this,n,t,i,o,0)),u=i-1,e=1,this[t+u]=n&255;--u>=0&&(e*=256);)this[t+u]=n/e&255;return t+i};r.prototype.writeUInt8=function(n,t,i){return n=+n,t=t|0,i||f(this,n,t,1,255,0),r.TYPED_ARRAY_SUPPORT||(n=Math.floor(n)),this[t]=n&255,t+1};r.prototype.writeUInt16LE=function(n,t,i){return n=+n,t=t|0,i||f(this,n,t,2,65535,0),r.TYPED_ARRAY_SUPPORT?(this[t]=n&255,this[
t+1]=n>>>8):c(this,n,t,!0),t+2};r.prototype.writeUInt16BE=function(n,t,i){return n=+n,t=t|0,i||f(this,n,t,2,65535,0),r.TYPED_ARRAY_SUPPORT?(this[t]=n>>>8,this[t+1]=n&255):c(this,n,t,!1),t+2};r.prototype.writeUInt32LE=function(n,t,i){return n=+n,t=t|0,i||f(this,n,t,4,4294967295,0),r.TYPED_ARRAY_SUPPORT?(this[t+3]=n>>>24,this[t+2]=n>>>16,this[t+1]=n>>>8,this[t]=n&255):l(this,n,t,!0),t+4};r.prototype.writeUInt32BE=function(n,t,i){return n=+n,t=t|0,i||f(this,n,t,4,4294967295,0),r.TYPED_ARRAY_SUPPORT?(this[t]=n>>>24,this[t+1]=n>>>16,this[t+2]=n>>>8,this[t+3]=n&255):l(this,n,t,!1),t+4};r.prototype.writeIntLE=function(n,t,i,r){var u;n=+n;t=t|0;r||(u=Math.pow(2,8*i-1),f(this,n,t,i,u-1,-u));var e=0,s=1,o=0;for(this[t]=n&255;++e<i&&(s*=256);)n<0&&o===0&&this[t+e-1]!==0&&(o=1),this[t+e]=(n/s>>0)-o&255;return t+i};r.prototype.writeIntBE=function(n,t,i,r){var e;n=+n;t=t|0;r||(e=Math.pow(2,8*i-1),f(this,n,t,i,e-1,-e));var u=i-1,s=1,o=0;for(this[t+u]=n&255;--u>=0&&(s*=256);)n<0&&o===0&&this[t+u+1]!==0&&(o=1),this[t+u]=(n/s>>
0)-o&255;return t+i};r.prototype.writeInt8=function(n,t,i){return n=+n,t=t|0,i||f(this,n,t,1,127,-128),r.TYPED_ARRAY_SUPPORT||(n=Math.floor(n)),n<0&&(n=255+n+1),this[t]=n&255,t+1};r.prototype.writeInt16LE=function(n,t,i){return n=+n,t=t|0,i||f(this,n,t,2,32767,-32768),r.TYPED_ARRAY_SUPPORT?(this[t]=n&255,this[t+1]=n>>>8):c(this,n,t,!0),t+2};r.prototype.writeInt16BE=function(n,t,i){return n=+n,t=t|0,i||f(this,n,t,2,32767,-32768),r.TYPED_ARRAY_SUPPORT?(this[t]=n>>>8,this[t+1]=n&255):c(this,n,t,!1),t+2};r.prototype.writeInt32LE=function(n,t,i){return n=+n,t=t|0,i||f(this,n,t,4,2147483647,-2147483648),r.TYPED_ARRAY_SUPPORT?(this[t]=n&255,this[t+1]=n>>>8,this[t+2]=n>>>16,this[t+3]=n>>>24):l(this,n,t,!0),t+4};r.prototype.writeInt32BE=function(n,t,i){return n=+n,t=t|0,i||f(this,n,t,4,2147483647,-2147483648),n<0&&(n=4294967295+n+1),r.TYPED_ARRAY_SUPPORT?(this[t]=n>>>24,this[t+1]=n>>>16,this[t+2]=n>>>8,this[t+3]=n&255):l(this,n,t,!1),t+4};r.prototype.writeFloatLE=function(n,t,i){return ot(this,n,t,!0,i)};r.prototype.writeFloatBE=
function(n,t,i){return ot(this,n,t,!1,i)};r.prototype.writeDoubleLE=function(n,t,i){return st(this,n,t,!0,i)};r.prototype.writeDoubleBE=function(n,t,i){return st(this,n,t,!1,i)};r.prototype.copy=function(n,t,i,u){if((i||(i=0),u||u===0||(u=this.length),t>=n.length&&(t=n.length),t||(t=0),u>0&&u<i&&(u=i),u===i)||n.length===0||this.length===0)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(i<0||i>=this.length)throw new RangeError("sourceStart out of bounds");if(u<0)throw new RangeError("sourceEnd out of bounds");u>this.length&&(u=this.length);n.length-t<u-i&&(u=n.length-t+i);var e=u-i,f;if(this===n&&i<t&&t<u)for(f=e-1;f>=0;--f)n[f+t]=this[f+i];else if(e<1e3||!r.TYPED_ARRAY_SUPPORT)for(f=0;f<e;++f)n[f+t]=this[f+i];else Uint8Array.prototype.set.call(n,this.subarray(i,i+e),t);return e};r.prototype.fill=function(n,t,i,u){var e,f,o,s;if(typeof n=="string"){if(typeof t=="string"?(u=t,t=0,i=this.length):typeof i=="string"&&(u=i,i=this.length),n.length===1&&(e=n.charCodeAt(0),e<256&&(n=e)),u!==undefined&&
typeof u!="string")throw new TypeError("encoding must be a string");if(typeof u=="string"&&!r.isEncoding(u))throw new TypeError("Unknown encoding: "+u);}else typeof n=="number"&&(n=n&255);if(t<0||this.length<t||this.length<i)throw new RangeError("Out of range index");if(i<=t)return this;if(t=t>>>0,i=i===undefined?this.length:i>>>0,n||(n=0),typeof n=="number")for(f=t;f<i;++f)this[f]=n;else for(o=r.isBuffer(n)?n:a(new r(n,u).toString()),s=o.length,f=0;f<i-t;++f)this[f+t]=o[f%s];return this};ht=/[^+\/0-9A-Za-z-_]/g}).call(this,typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"base64-js":33,ieee754:40,isarray:43}],36:[function(n,t){function r(n){function o(n){var r=t();i(r,n)>-1||(r.push(n),c(r))}function s(n){var r=t(),u=i(r,n);u!==-1&&(r.splice(u,1),c(r))}function h(n){return i(t(),n)>-1}function l(n){return h(n)?(s(n),!1):(o(n),!0)}function a(){return n.className}function v(n){var i=t();return i[n]||null}function t(){var t=n.className;return u(t.split(" "),
f)}function c(t){var u=t.length,i;for(n.className=t.join(" "),r.length=u,i=0;i<t.length;i++)r[i]=t[i];delete t[u]}var e=n.classList,r;return e?e:r={add:o,remove:s,contains:h,toggle:l,toString:a,length:0,item:v}}function u(n,t){for(var r=[],i=0;i<n.length;i++)t(n[i])&&r.push(n[i]);return r}function f(n){return!!n}var i=n("indexof");t.exports=r},{indexof:41}],37:[function(n,t){function i(n,t,i,r){return i=window.getComputedStyle,r=i?i(n):n.currentStyle,r?r[t.replace(/-(\w)/gi,function(n,t){return t.toUpperCase()})]:void 0}t.exports=i},{}],38:[function(t,i,r){
/*!
 * https://github.com/es-shims/es5-shim
 * @license es5-shim Copyright 2009-2015 by contributors, MIT License
 * see https://github.com/es-shims/es5-shim/blob/master/LICENSE
 */
(function(t,u){"use strict";typeof n=="function"&&n.amd?n(u):typeof r=="object"?i.exports=u():t.returnExports=u()})(this,function(){var d=Array,n=d.prototype,f=Object,g=f.prototype,tr=Function,pt=tr.prototype,e=String,o=e.prototype,s=Number,ft=s.prototype,nt=n.slice,ir=n.splice,et=n.push,du=n.unshift,rr=n.concat,gu=n.join,u=pt.call,wt=pt.apply,b=Math.max,ot=Math.min,bt=g.toString,kt=typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol",ur=Function.prototype.toString,nf=/^\s*class /,fr=function(n){try{var t=ur.call(n),i=t.replace(/\/\/.*\n/g,""),r=i.replace(/\/\*[.\s\S]*\*\//g,""),u=r.replace(/\n/mg," ").replace(/ {2}/g," ");return nf.test(u)}catch(f){return!1}},tf=function(n){try{return fr(n)?!1:(ur.call(n),!0)}catch(t){return!1}},rf="[object Function]",uf="[object GeneratorFunction]",h=function(n){if(!n||typeof n!="function"&&typeof n!="object")return!1;if(kt)return tf(n);if(fr(n))return!1;var t=bt.call(n);return t===rf||t===uf},dt,ff=RegExp.prototype.exec,ef=function(n){try{return ff.call(n),!0}catch(t)
{return!1}},of="[object RegExp]",or,ii,ui,fi,cr,lr,ar,vr,yr,pr,ei,ct,oi,si,wr,br,hu,k,bi,lu,ki,di,au,vu,yu,gi,pu,wu,bu,nr,ku;dt=function(n){return typeof n!="object"?!1:kt?ef(n):bt.call(n)===of};var c,sf=String.prototype.valueOf,hf=function(n){try{return sf.call(n),!0}catch(t){return!1}},cf="[object String]";c=function(n){return typeof n=="string"?!0:typeof n!="object"?!1:kt?hf(n):bt.call(n)===cf};var gt=f.defineProperty&&function(){var n,t;try{n={};f.defineProperty(n,"x",{enumerable:!1,value:n});for(t in n)return!1;return n.x===n}catch(i){return!1}}(),t=function(n){var t;return t=gt?function(n,t,i,r){!r&&t in n||f.defineProperty(n,t,{configurable:!0,enumerable:!1,writable:!0,value:i})}:function(n,t,i,r){!r&&t in n||(n[t]=i)},function(i,r,u){for(var f in r)n.call(r,f)&&t(i,f,r[f],u)}}(g.hasOwnProperty),st=function(n){var t=typeof n;return n===null||t!=="object"&&t!=="function"},tt=s.isNaN||function(n){return n!==n},i={ToInteger:function(n){var t=+n;return tt(t)?t=0:t!==0&&t!==1/0&&t!==-(1/0)&&(t=(t>0||-1)*Math.
floor(Math.abs(t))),t},ToPrimitive:function(n){var t,i,r;if(st(n))return n;if((i=n.valueOf,h(i)&&(t=i.call(n),st(t)))||(r=n.toString,h(r)&&(t=r.call(n),st(t))))return t;throw new TypeError;},ToObject:function(n){if(n==null)throw new TypeError("can't convert "+n+" to object");return f(n)},ToUint32:function(n){return n>>>0}},ni=function(){};t(pt,{bind:function(n){var t=this,r;if(!h(t))throw new TypeError("Function.prototype.bind called on incompatible "+t);var u=nt.call(arguments,1),i,o=function(){if(this instanceof i){var r=wt.call(t,this,rr.call(u,nt.call(arguments)));return f(r)===r?r:this}return wt.call(t,n,rr.call(u,nt.call(arguments)))},s=b(0,t.length-u.length),e=[];for(r=0;r<s;r++)et.call(e,"$"+r);return i=tr("binder","return function ("+gu.call(e,",")+"){ return binder.apply(this, arguments); }")(o),t.prototype&&(ni.prototype=t.prototype,i.prototype=new ni,ni.prototype=null),i}});var y=u.bind(g.hasOwnProperty),er=u.bind(g.toString),v=u.bind(nt),ti=wt.bind(nt);if(typeof document=="object"&&document&&document.
documentElement)try{v(document.documentElement.childNodes)}catch(ro){or=v;ii=ti;v=function(n){for(var i=[],t=n.length;t-->0;)i[t]=n[t];return ii(i,or(arguments,1))};ti=function(n,t){return ii(v(n),t)}}var a=u.bind(o.slice),l=u.bind(o.split),lf=u.bind(o.indexOf),p=u.bind(et),ri=u.bind(g.propertyIsEnumerable),sr=u.bind(n.sort),ht=d.isArray||function(n){return er(n)==="[object Array]"},af=[].unshift(0)!==1;t(n,{unshift:function(){return du.apply(this,arguments),this.length}},af);t(d,{isArray:ht});var hr=f("a"),w=hr[0]!=="a"||!(0 in hr),it=function(n){var t=!0,i=!0,r=!1;if(n)try{n.call("foo",function(n,i,r){typeof r!="object"&&(t=!1)});n.call([1],function(){"use strict";i=typeof this=="string"},"x")}catch(u){r=!0}return!!n&&!r&&t&&i};t(n,{forEach:function(n){var u=i.ToObject(this),r=w&&c(this)?l(this,""):u,t=-1,e=i.ToUint32(r.length),f;if(arguments.length>1&&(f=arguments[1]),!h(n))throw new TypeError("Array.prototype.forEach callback must be a function");while(++t<e)t in r&&(typeof f=="undefined"?n(r[t],t,u):n.call(
f,r[t],t,u))}},!it(n.forEach));t(n,{map:function(n){var u=i.ToObject(this),r=w&&c(this)?l(this,""):u,e=i.ToUint32(r.length),o=d(e),f,t;if(arguments.length>1&&(f=arguments[1]),!h(n))throw new TypeError("Array.prototype.map callback must be a function");for(t=0;t<e;t++)t in r&&(o[t]=typeof f=="undefined"?n(r[t],t,u):n.call(f,r[t],t,u));return o}},!it(n.map));t(n,{filter:function(n){var u=i.ToObject(this),f=w&&c(this)?l(this,""):u,s=i.ToUint32(f.length),o=[],r,e,t;if(arguments.length>1&&(e=arguments[1]),!h(n))throw new TypeError("Array.prototype.filter callback must be a function");for(t=0;t<s;t++)t in f&&(r=f[t],(typeof e=="undefined"?n(r,t,u):n.call(e,r,t,u))&&p(o,r));return o}},!it(n.filter));t(n,{every:function(n){var u=i.ToObject(this),r=w&&c(this)?l(this,""):u,e=i.ToUint32(r.length),f,t;if(arguments.length>1&&(f=arguments[1]),!h(n))throw new TypeError("Array.prototype.every callback must be a function");for(t=0;t<e;t++)if(t in r&&!(typeof f=="undefined"?n(r[t],t,u):n.call(f,r[t],t,u)))return!1;return!0}},!it(
n.every));t(n,{some:function(n){var u=i.ToObject(this),r=w&&c(this)?l(this,""):u,e=i.ToUint32(r.length),f,t;if(arguments.length>1&&(f=arguments[1]),!h(n))throw new TypeError("Array.prototype.some callback must be a function");for(t=0;t<e;t++)if(t in r&&(typeof f=="undefined"?n(r[t],t,u):n.call(f,r[t],t,u)))return!0;return!1}},!it(n.some));ui=!1;n.reduce&&(ui=typeof n.reduce.call("es5",function(n,t,i,r){return r})=="object");t(n,{reduce:function(n){var e=i.ToObject(this),r=w&&c(this)?l(this,""):e,f=i.ToUint32(r.length),t,u;if(!h(n))throw new TypeError("Array.prototype.reduce callback must be a function");if(f===0&&arguments.length===1)throw new TypeError("reduce of empty array with no initial value");if(t=0,arguments.length>=2)u=arguments[1];else do{if(t in r){u=r[t++];break}if(++t>=f)throw new TypeError("reduce of empty array with no initial value");}while(1);for(;t<f;t++)t in r&&(u=n(u,r[t],t,e));return u}},!ui);fi=!1;n.reduceRight&&(fi=typeof n.reduceRight.call("es5",function(n,t,i,r){return r})=="object");
t(n,{reduceRight:function(n){var f=i.ToObject(this),u=w&&c(this)?l(this,""):f,e=i.ToUint32(u.length),r,t;if(!h(n))throw new TypeError("Array.prototype.reduceRight callback must be a function");if(e===0&&arguments.length===1)throw new TypeError("reduceRight of empty array with no initial value");if(t=e-1,arguments.length>=2)r=arguments[1];else do{if(t in u){r=u[t--];break}if(--t<0)throw new TypeError("reduceRight of empty array with no initial value");}while(1);if(t<0)return r;do t in u&&(r=n(r,u[t],t,f));while(t--);return r}},!fi);cr=n.indexOf&&[0,1].indexOf(1,2)!==-1;t(n,{indexOf:function(n){var r=w&&c(this)?l(this,""):i.ToObject(this),u=i.ToUint32(r.length),t;if(u===0)return-1;for(t=0,arguments.length>1&&(t=i.ToInteger(arguments[1])),t=t>=0?t:b(0,u+t);t<u;t++)if(t in r&&r[t]===n)return t;return-1}},cr);lr=n.lastIndexOf&&[0,1].lastIndexOf(0,-3)!==-1;t(n,{lastIndexOf:function(n){var r=w&&c(this)?l(this,""):i.ToObject(this),u=i.ToUint32(r.length),t;if(u===0)return-1;for(t=u-1,arguments.length>1&&(t=ot(t,i.ToInteger(
arguments[1]))),t=t>=0?t:u-Math.abs(t);t>=0;t--)if(t in r&&n===r[t])return t;return-1}},lr);ar=function(){var n=[1,2],t=n.splice();return n.length===2&&ht(t)&&t.length===0}();t(n,{splice:function(){return arguments.length===0?[]:ir.apply(this,arguments)}},!ar);vr=function(){var t={};return n.splice.call(t,0,0,1),t.length===1}();t(n,{splice:function(n,t){if(arguments.length===0)return[];var r=arguments;return this.length=b(i.ToInteger(this.length),0),arguments.length>0&&typeof t!="number"&&(r=v(arguments),r.length<2?p(r,this.length-n):r[1]=i.ToInteger(t)),ir.apply(this,r)}},!vr);yr=function(){var n=new d(1e5);return n[8]="x",n.splice(1,1),n.indexOf("x")===7}();pr=function(){var n=256,t=[];return t[n]="a",t.splice(n+1,0,"b"),t[n]==="a"}();t(n,{splice:function(n,t){for(var u=i.ToObject(this),k=[],s=i.ToUint32(u.length),w=i.ToInteger(n),l=w<0?b(s+w,0):ot(w,s),f=ot(b(i.ToInteger(t),0),s-l),r=0,o,a,h,c,d,g,p;r<f;)o=e(l+r),y(u,o)&&(k[r]=u[o]),r+=1;if(a=v(arguments,2),h=a.length,h<f){for(r=l,d=s-f;r<d;)o=e(r+f),c=e(r+
h),y(u,o)?u[c]=u[o]:delete u[c],r+=1;for(r=s,g=s-f+h;r>g;)delete u[r-1],r-=1}else if(h>f)for(r=s-f;r>l;)o=e(r+f-1),c=e(r+h-1),y(u,o)?u[c]=u[o]:delete u[c],r-=1;for(r=l,p=0;p<a.length;++p)u[r]=a[p],r+=1;return u.length=s-f+h,k}},!yr||!pr);ei=n.join;try{ct=Array.prototype.join.call("123",",")!=="1,2,3"}catch(ro){ct=!0}ct&&t(n,{join:function(n){var t=typeof n=="undefined"?",":n;return ei.call(c(this)?l(this,""):this,t)}},ct);oi=[1,2].join(undefined)!=="1,2";oi&&t(n,{join:function(n){var t=typeof n=="undefined"?",":n;return ei.call(this,t)}},oi);si=function(){for(var t=i.ToObject(this),r=i.ToUint32(t.length),n=0;n<arguments.length;)t[r+n]=arguments[n],n+=1;return t.length=r+n,r+n};wr=function(){var n={},t=Array.prototype.push.call(n,undefined);return t!==1||n.length!==1||typeof n[0]!="undefined"||!y(n,0)}();t(n,{push:function(){return ht(this)?et.apply(this,arguments):si.apply(this,arguments)}},wr);br=function(){var n=[],t=n.push(undefined);return t!==1||n.length!==1||typeof n[0]!="undefined"||!y(n,0)}();t(n,{push:
si},br);t(n,{slice:function(){var n=c(this)?l(this,""):this;return ti(n,arguments)}},w);var vf=function(){try{[1,2].sort(null)}catch(n){try{[1,2].sort({})}catch(t){return!1}}return!0}(),yf=function(){try{return[1,2].sort(/a/),!1}catch(n){}return!0}(),pf=function(){try{return[1,2].sort(undefined),!0}catch(n){}return!1}();t(n,{sort:function(n){if(typeof n=="undefined")return sr(this);if(!h(n))throw new TypeError("Array.prototype.sort callback must be a function");return sr(this,n)}},vf||!pf||!yf);var wf=!ri({toString:null},"toString"),bf=ri(function(){},"prototype"),kf=!y("x","0"),hi=function(n){var t=n.constructor;return t&&t.prototype===n},df={$window:!0,$console:!0,$parent:!0,$self:!0,$frame:!0,$frames:!0,$frameElement:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$external:!0,$width:!0,$height:!0,$top:!0,$localStorage:!0},gf=function(){if(typeof window=="undefined")return!1;for(var n in window)try{!df["$"+n]&&y(window,n)&&window[n]!==null&&typeof window[n]=="object"&&hi(window[n])}catch(t){return!0}return!1}
(),ne=function(n){if(typeof window=="undefined"||!gf)return hi(n);try{return hi(n)}catch(t){return!1}},kr=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],te=kr.length,dr=function(n){return er(n)==="[object Arguments]"},ie=function(n){return n!==null&&typeof n=="object"&&typeof n.length=="number"&&n.length>=0&&!ht(n)&&h(n.callee)},gr=dr(arguments)?dr:ie;t(f,{keys:function(n){var s=h(n),o=gr(n),l=n!==null&&typeof n=="object",w=l&&c(n),t,a,i,r,v,u,f;if(!l&&!s&&!o)throw new TypeError("Object.keys called on a non-object");if(t=[],a=bf&&s,w&&kf||o)for(i=0;i<n.length;++i)p(t,e(i));if(!o)for(r in n)a&&r==="prototype"||!y(n,r)||p(t,e(r));if(wf)for(v=ne(n),u=0;u<te;u++)f=kr[u],v&&f==="constructor"||!y(n,f)||p(t,f);return t}});var re=f.keys&&function(){return f.keys(arguments).length===2}(1,2),ue=f.keys&&function(){var n=f.keys(arguments);return arguments.length!==1||n.length!==1||n[0]!==1}(1),nu=f.keys;t(f,{keys:function(n){return gr(n)?nu(v(n)):nu(n)}},!re||
ue);var lt=new Date(-0xc782b5b342b24).getUTCMonth()!==0,at=new Date(-0x55d318d56a724),tu=new Date(14496624e5),fe=at.toUTCString()!=="Mon, 01 Jan -45875 11:59:59 GMT",ci,li,ee=at.getTimezoneOffset();ee<-720?(ci=at.toDateString()!=="Tue Jan 02 -45875",li=!/^Thu Dec 10 2015 \d\d:\d\d:\d\d GMT[-+]\d\d\d\d(?: |$)/.test(String(tu))):(ci=at.toDateString()!=="Mon Jan 01 -45875",li=!/^Wed Dec 09 2015 \d\d:\d\d:\d\d GMT[-+]\d\d\d\d(?: |$)/.test(String(tu)));var ai=u.bind(Date.prototype.getFullYear),vi=u.bind(Date.prototype.getMonth),iu=u.bind(Date.prototype.getDate),rt=u.bind(Date.prototype.getUTCFullYear),ut=u.bind(Date.prototype.getUTCMonth),yi=u.bind(Date.prototype.getUTCDate),oe=u.bind(Date.prototype.getUTCDay),ru=u.bind(Date.prototype.getUTCHours),uu=u.bind(Date.prototype.getUTCMinutes),fu=u.bind(Date.prototype.getUTCSeconds),se=u.bind(Date.prototype.getUTCMilliseconds),pi=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wi=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],eu=function(n,t){return iu(
new Date(t,n,0))};t(Date.prototype,{getFullYear:function(){if(!this||!(this instanceof Date))throw new TypeError("this is not a Date object.");var n=ai(this);return n<0&&vi(this)>11?n+1:n},getMonth:function(){if(!this||!(this instanceof Date))throw new TypeError("this is not a Date object.");var t=ai(this),n=vi(this);return t<0&&n>11?0:n},getDate:function(){var r;if(!this||!(this instanceof Date))throw new TypeError("this is not a Date object.");var t=ai(this),i=vi(this),n=iu(this);return t<0&&i>11?i===12?n:(r=eu(0,t+1),r-n+1):n},getUTCFullYear:function(){if(!this||!(this instanceof Date))throw new TypeError("this is not a Date object.");var n=rt(this);return n<0&&ut(this)>11?n+1:n},getUTCMonth:function(){if(!this||!(this instanceof Date))throw new TypeError("this is not a Date object.");var t=rt(this),n=ut(this);return t<0&&n>11?0:n},getUTCDate:function(){var r;if(!this||!(this instanceof Date))throw new TypeError("this is not a Date object.");var t=rt(this),i=ut(this),n=yi(this);return t<0&&i>11?i===12?n:(r=
eu(0,t+1),r-n+1):n}},lt);t(Date.prototype,{toUTCString:function(){if(!this||!(this instanceof Date))throw new TypeError("this is not a Date object.");var u=oe(this),n=yi(this),f=ut(this),e=rt(this),t=ru(this),i=uu(this),r=fu(this);return pi[u]+", "+(n<10?"0"+n:n)+" "+wi[f]+" "+e+" "+(t<10?"0"+t:t)+":"+(i<10?"0"+i:i)+":"+(r<10?"0"+r:r)+" GMT"}},lt||fe);t(Date.prototype,{toDateString:function(){if(!this||!(this instanceof Date))throw new TypeError("this is not a Date object.");var t=this.getDay(),n=this.getDate(),i=this.getMonth(),r=this.getFullYear();return pi[t]+" "+wi[i]+" "+(n<10?"0"+n:n)+" "+r}},lt||ci);(lt||li)&&(Date.prototype.toString=function(){if(!this||!(this instanceof Date))throw new TypeError("this is not a Date object.");var o=this.getDay(),n=this.getDate(),s=this.getMonth(),h=this.getFullYear(),t=this.getHours(),i=this.getMinutes(),r=this.getSeconds(),u=this.getTimezoneOffset(),f=Math.floor(Math.abs(u)/60),e=Math.floor(Math.abs(u)%60);return pi[o]+" "+wi[s]+" "+(n<10?"0"+n:n)+" "+h+" "+(t<10?"0"+
t:t)+":"+(i<10?"0"+i:i)+":"+(r<10?"0"+r:r)+" GMT"+(u>0?"-":"+")+(f<10?"0"+f:f)+(e<10?"0"+e:e)},gt&&f.defineProperty(Date.prototype,"toString",{configurable:!0,enumerable:!1,writable:!0}));var ou=-621987552e5,su="-000001",he=Date.prototype.toISOString&&new Date(ou).toISOString().indexOf(su)===-1,ce=Date.prototype.toISOString&&new Date(-1).toISOString()!=="1969-12-31T23:59:59.999Z",le=u.bind(Date.prototype.getTime);t(Date.prototype,{toISOString:function(){var n,i,t,r;if(!isFinite(this)||!isFinite(le(this)))throw new RangeError("Date.prototype.toISOString called on non-finite value.");for(n=rt(this),i=ut(this),n+=Math.floor(i/12),i=(i%12+12)%12,t=[i+1,yi(this),ru(this),uu(this),fu(this)],n=(n<0?"-":n>9999?"+":"")+a("00000"+Math.abs(n),0<=n&&n<=9999?-4:-6),r=0;r<t.length;++r)t[r]=a("00"+t[r],-2);return n+"-"+v(t,0,2).join("-")+"T"+v(t,2).join(":")+"."+a("000"+se(this),-3)+"Z"}},he||ce);hu=function(){try{return Date.prototype.toJSON&&new Date(NaN).toJSON()===null&&new Date(ou).toJSON().indexOf(su)!==-1&&Date.prototype.
toJSON.call({toISOString:function(){return!0}})}catch(n){return!1}}();hu||(Date.prototype.toJSON=function(){var n=f(this),r=i.ToPrimitive(n),t;if(typeof r=="number"&&!isFinite(r))return null;if(t=n.toISOString,!h(t))throw new TypeError("toISOString property is not callable");return t.call(n)});var ae=Date.parse("+033658-09-27T01:46:40.000Z")===1e15,ve=!isNaN(Date.parse("2012-04-04T24:00:00.500Z"))||!isNaN(Date.parse("2012-11-31T23:59:59.000Z"))||!isNaN(Date.parse("2012-12-31T23:59:60.000Z")),ye=isNaN(Date.parse("2000-01-01T00:00:00.000Z"));(ye||ve||!ae)&&(k=Math.pow(2,31)-1,bi=tt(new Date(1970,0,1,0,0,0,k+1).getTime()),Date=function(n){var i=function(r,u,f,o,s,h,c){var l=arguments.length,a,v,y,w,p;return this instanceof n?(v=h,y=c,bi&&l>=7&&c>k&&(w=Math.floor(c/k)*k,p=Math.floor(w/1e3),v+=p,y-=p*1e3),a=l===1&&e(r)===r?new n(i.parse(r)):l>=7?new n(r,u,f,o,s,v,y):l>=6?new n(r,u,f,o,s,v):l>=5?new n(r,u,f,o,s):l>=4?new n(r,u,f,o):l>=3?new n(r,u,f):l>=2?new n(r,u):l>=1?new n(r instanceof n?+r:r):new n):a=n.apply(this,
arguments),st(a)||t(a,{constructor:i},!0),a},o=new RegExp("^(\\d{4}|[+-]\\d{6})(?:-(\\d{2})(?:-(\\d{2})(?:T(\\d{2}):(\\d{2})(?::(\\d{2})(?:(\\.\\d{1,}))?)?(Z|(?:([-+])(\\d{2}):(\\d{2})))?)?)?)?$"),h=[0,31,59,90,120,151,181,212,243,273,304,334,365],u=function(n,t){var i=t>1?1:0;return h[t]+Math.floor((n-1969+i)/4)-Math.floor((n-1901+i)/100)+Math.floor((n-1601+i)/400)+365*(n-1970)},c=function(t){var u=0,i=t,f,r;return bi&&i>k&&(f=Math.floor(i/k)*k,r=Math.floor(f/1e3),u+=r,i-=r*1e3),s(new n(1970,0,1,0,0,u,i))},r,f;for(r in n)y(n,r)&&(i[r]=n[r]);return t(i,{now:n.now,UTC:n.UTC},!0),i.prototype=n.prototype,t(i.prototype,{constructor:i},!0),f=function(t){var i=o.exec(t);if(i){var e=s(i[1]),f=s(i[2]||1)-1,h=s(i[3]||1)-1,y=s(i[4]||0),l=s(i[5]||0),a=s(i[6]||0),v=Math.floor(s(i[7]||0)*1e3),k=Boolean(i[4]&&!i[8]),p=i[9]==="-"?1:-1,w=s(i[10]||0),b=s(i[11]||0),r,d=l>0||a>0||v>0;return y<(d?24:25)&&l<60&&a<60&&v<1e3&&f>-1&&f<12&&w<24&&b<60&&h>-1&&h<u(e,f+1)-u(e,f)&&(r=((u(e,f)+h)*24+y+w*p)*60,r=((r+l+b*p)*60+a)*1e3+v,k&&(r=
c(r)),-864e13<=r&&r<=864e13)?r:NaN}return n.parse.apply(this,arguments)},t(i,{parse:f}),i}(Date));Date.now||(Date.now=function(){return(new Date).getTime()});var pe=ft.toFixed&&(8e-5.toFixed(3)!=="0.000"||.9.toFixed(0)!=="1"||1.255.toFixed(2)!=="1.25"||1000000000000000128..toFixed(0)!=="1000000000000000128"),r={base:1e7,size:6,data:[0,0,0,0,0,0],multiply:function(n,t){for(var u=-1,i=t;++u<r.size;)i+=n*r.data[u],r.data[u]=i%r.base,i=Math.floor(i/r.base)},divide:function(n){for(var i=r.size,t=0;--i>=0;)t+=r.data[i],r.data[i]=Math.floor(t/n),t=t%n*r.base},numToString:function(){for(var t=r.size,n="",i;--t>=0;)(n!==""||t===0||r.data[t]!==0)&&(i=e(r.data[t]),n===""?n=i:n+=a("0000000",0,7-i.length)+i);return n},pow:function cu(n,t,i){return t===0?i:t%2==1?cu(n,t-1,i*n):cu(n*n,t/2,i)},log:function(n){for(var i=0,t=n;t>=4096;)i+=12,t/=4096;while(t>=2)i+=1,t/=2;return i}},we=function(n){var t,i,h,u,f,l,o,c;if(t=s(n),t=tt(t)?0:Math.floor(t),t<0||t>20)throw new RangeError("Number.toFixed called with invalid number of decimals");
if(i=s(this),tt(i))return"NaN";if(i<=-1e21||i>=1e21)return e(i);if(h="",i<0&&(h="-",i=-i),u="0",i>1e-21)if(f=r.log(i*r.pow(2,69,1))-69,l=f<0?i*r.pow(2,-f,1):i/r.pow(2,f,1),l*=4503599627370496,f=52-f,f>0){for(r.multiply(0,l),o=t;o>=7;)r.multiply(1e7,0),o-=7;for(r.multiply(r.pow(10,o,1),0),o=f-1;o>=23;)r.divide(8388608),o-=23;r.divide(1<<o);r.multiply(1,1);r.divide(2);u=r.numToString()}else r.multiply(0,l),r.multiply(1<<-f,0),u=r.numToString()+a("0.00000000000000000000",2,2+t);return t>0?(c=u.length,u=c<=t?h+a("0.0000000000000000000",0,t-c+2)+u:h+a(u,0,c-t)+"."+a(u,c-t)):u=h+u,u};t(ft,{toFixed:we},pe);lu=function(){try{return 1..toPrecision(undefined)==="1"}catch(n){return!0}}();ki=ft.toPrecision;t(ft,{toPrecision:function(n){return typeof n=="undefined"?ki.call(this):ki.call(this,n)}},lu);"ab".split(/(?:ab)*/).length!==2||".".split(/(.?)(.?)/).length!==4||"tesst".split(/(s)*/)[1]==="t"||"test".split(/(?:)/,-1).length!==4||"".split(/.?/).length||".".split(/()()/).length>1?function(){var n=typeof/()??/.exec("")[
1]=="undefined",t=Math.pow(2,32)-1;o.split=function(r,u){var o=String(this),c;if(typeof r=="undefined"&&u===0)return[];if(!dt(r))return l(this,r,u);var e=[],w=(r.ignoreCase?"i":"")+(r.multiline?"m":"")+(r.unicode?"u":"")+(r.sticky?"y":""),h=0,b,f,y,k,s=new RegExp(r.source,w+"g");for(n||(b=new RegExp("^"+s.source+"$(?!\\s)",w)),c=typeof u=="undefined"?t:i.ToUint32(u),f=s.exec(o);f;){if(y=f.index+f[0].length,y>h&&(p(e,a(o,h,f.index)),!n&&f.length>1&&f[0].replace(b,function(){for(var n=1;n<arguments.length-2;n++)typeof arguments[n]=="undefined"&&(f[n]=void 0)}),f.length>1&&f.index<o.length&&et.apply(e,v(f,1)),k=f[0].length,h=y,e.length>=c))break;s.lastIndex===f.index&&s.lastIndex++;f=s.exec(o)}return h===o.length?(k||!s.test(""))&&p(e,""):p(e,a(o,h)),e.length>c?v(e,0,c):e}}():"0".split(void 0,0).length&&(o.split=function(n,t){return typeof n=="undefined"&&t===0?[]:l(this,n,t)});di=o.replace;au=function(){var n=[];return"x".replace(/x(.)?/g,function(t,i){p(n,i)}),n.length===1&&typeof n[0]=="undefined"}();au||(o.replace=
function(n,t){var r=h(t),u=dt(n)&&/\)[*?]/.test(n.source),i;return r&&u?(i=function(i){var u=arguments.length,f=n.lastIndex,r;return n.lastIndex=0,r=n.exec(i)||[],n.lastIndex=f,p(r,arguments[u-2],arguments[u-1]),t.apply(this,r)},di.call(this,n,i)):di.call(this,n,t)});vu=o.substr;yu="".substr&&"0b".substr(-1)!=="b";t(o,{substr:function(n,t){var i=n;return n<0&&(i=b(this.length+n,0)),vu.call(this,i,t)}},yu);var vt="\t\n\x0b\f\r   ᠎             　\u2028\u2029﻿",yt="["+vt+"]",be=new RegExp("^"+yt+yt+"*"),ke=new RegExp(yt+yt+"*$"),de=o.trim&&(vt.trim()||!"​".trim());t(o,{trim:function(){if(typeof this=="undefined"||this===null)throw new TypeError("can't convert "+this+" to object");return e(this).replace(be,"").replace(ke,"")}},de);gi=u.bind(String.prototype.trim);pu=o.lastIndexOf&&"abcあい".lastIndexOf("あい",2)!==-1;t(o,{lastIndexOf:function(n){var u;if(typeof this=="undefined"||this===null)throw new TypeError("can't convert "+this+" to object");for(var f=e(this),o=e(n),h=arguments.length>1?s(arguments[1]):NaN,l=tt(h)?
Infinity:i.ToInteger(h),c=ot(b(l,0),f.length),r=o.length,t=c+r;t>0;)if(t=b(0,t-r),u=lf(a(f,t,c+r),o),u!==-1)return t+u;return-1}},pu);wu=o.lastIndexOf;t(o,{lastIndexOf:function(){return wu.apply(this,arguments)}},o.lastIndexOf.length!==1);(parseInt(vt+"08")!==8||parseInt(vt+"0x16")!==22)&&(parseInt=function(n){var t=/^[-+]?0[xX]/;return function(i,r){typeof i=="symbol"&&""+i;var u=gi(String(i)),f=s(r)||(t.test(u)?16:10);return n(u,f)}}(parseInt));1/parseFloat("-0")!=-Infinity&&(parseFloat=function(n){return function(t){var i=gi(String(t)),r=n(i);return r===0&&a(i,0,1)==="-"?-0:r}}(parseFloat));String(new RangeError("test"))!=="RangeError: test"&&(bu=function(){var n,t;if(typeof this=="undefined"||this===null)throw new TypeError("can't convert "+this+" to object");return(n=this.name,typeof n=="undefined"?n="Error":typeof n!="string"&&(n=e(n)),t=this.message,typeof t=="undefined"?t="":typeof t!="string"&&(t=e(t)),!n)?t:t?n+": "+t:n},Error.prototype.toString=bu);gt&&(nr=function(n,t){if(ri(n,t)){var i=Object.getOwnPropertyDescriptor(
n,t);i.configurable&&(i.enumerable=!1,Object.defineProperty(n,t,i))}},nr(Error.prototype,"message"),Error.prototype.message!==""&&(Error.prototype.message=""),nr(Error.prototype,"name"));String(/a/mig)!=="/a/gim"&&(ku=function(){var n="/"+this.source+"/";return this.global&&(n+="g"),this.ignoreCase&&(n+="i"),this.multiline&&(n+="m"),n},RegExp.prototype.toString=ku)})},{}],39:[function(n,t){var i=[],r=i.forEach,u=i.slice;t.exports=function(n){return r.call(u.call(arguments,1),function(t){if(t)for(var i in t)n[i]=t[i]}),n}},{}],40:[function(n,t,i){i.read=function(n,t,i,r,u){var f,o,l=u*8-r-1,a=(1<<l)-1,v=a>>1,e=-7,s=i?u-1:0,c=i?-1:1,h=n[t+s];for(s+=c,f=h&(1<<-e)-1,h>>=-e,e+=l;e>0;f=f*256+n[t+s],s+=c,e-=8);for(o=f&(1<<-e)-1,f>>=-e,e+=r;e>0;o=o*256+n[t+s],s+=c,e-=8);if(f===0)f=1-v;else{if(f===a)return o?NaN:(h?-1:1)*Infinity;o=o+Math.pow(2,r);f=f-v}return(h?-1:1)*o*Math.pow(2,f-r)};i.write=function(n,t,i,r,u,f){var e,o,s,l=f*8-u-1,a=(1<<l)-1,h=a>>1,y=u===23?Math.pow(2,-24)-Math.pow(2,-77):0,c=r?0:f-1,v=r?1:-1,p=t<
0||t===0&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===Infinity?(o=isNaN(t)?1:0,e=a):(e=Math.floor(Math.log(t)/Math.LN2),t*(s=Math.pow(2,-e))<1&&(e--,s*=2),t+=e+h>=1?y/s:y*Math.pow(2,1-h),t*s>=2&&(e++,s/=2),e+h>=a?(o=0,e=a):e+h>=1?(o=(t*s-1)*Math.pow(2,u),e=e+h):(o=t*Math.pow(2,h-1)*Math.pow(2,u),e=0));u>=8;n[i+c]=o&255,c+=v,o/=256,u-=8);for(e=e<<u|o,l+=u;l>0;n[i+c]=e&255,c+=v,e/=256,l-=8);n[i+c-v]|=p*128}},{}],41:[function(n,t){var i=[].indexOf;t.exports=function(n,t){if(i)return n.indexOf(t);for(var r=0;r<n.length;++r)if(n[r]===t)return r;return-1}},{}],42:[function(n,t){function r(n){var t=i.call(n);return t==="[object Function]"||typeof n=="function"&&t!=="[object RegExp]"||typeof window!="undefined"&&(n===window.setTimeout||n===window.alert||n===window.confirm||n===window.prompt)}t.exports=r;var i=Object.prototype.toString},{}],43:[function(n,t){var i={}.toString;t.exports=Array.isArray||function(n){return i.call(n)=="[object Array]"}},{}],44:[function(t,i,r){(function(t){
/*! https://mths.be/punycode v1.4.1 by @mathias */
(function(u){function h(n){throw new RangeError(vt[n]);}function nt(n,t){for(var i=n.length,r=[];i--;)r[i]=t(n[i]);return r}function tt(n,t){var i=n.split("@"),r="",u,f;return i.length>1&&(r=i[0]+"@",n=i[1]),n=n.replace(at,"."),u=n.split("."),f=nt(u,t).join("."),r+f}function it(n){for(var r=[],i=0,f=n.length,t,u;i<f;)t=n.charCodeAt(i++),t>=55296&&t<=56319&&i<f?(u=n.charCodeAt(i++),(u&64512)==56320?r.push(((t&1023)<<10)+(u&1023)+65536):(r.push(t),i--)):r.push(t);return r}function rt(n){return nt(n,function(n){var t="";return n>65535&&(n-=65536,t+=a(n>>>10&1023|55296),n=56320|n&1023),t+a(n)}).join("")}function yt(n){return n-48<10?n-22:n-65<26?n-65:n-97<26?n-97:f}function ut(n,t){return n+22+75*(n<26)-((t!=0)<<5)}function ft(n,t,i){var r=0;for(n=i?e(n/ht):n>>1,n+=e(n/t);n>w*l>>1;r+=f)n=e(n/w);return e(r+(w+1)*n/(n+st))}function et(n){var v=[],ut=n.length,r,t=0,b=d,y=k,i,u,w,nt,o,s,a,tt,it;for(i=n.lastIndexOf(g),i<0&&(i=0),u=0;u<i;++u)n.charCodeAt(u)>=128&&h("not-basic"),v.push(n.charCodeAt(u));for(w=i>0?i+1:0;w<
ut;){for(nt=t,o=1,s=f;;s+=f){if(w>=ut&&h("invalid-input"),a=yt(n.charCodeAt(w++)),(a>=f||a>e((c-t)/o))&&h("overflow"),t+=a*o,tt=s<=y?p:s>=y+l?l:s-y,a<tt)break;it=f-tt;o>e(c/it)&&h("overflow");o*=it}r=v.length+1;y=ft(t-nt,r,nt==0);e(t/r)>c-b&&h("overflow");b+=e(t/r);t%=r;v.splice(t++,0,b)}return rt(v)}function ot(n){var r,u,v,et,y,t,o,w,b,nt,i,s=[],tt,rt,ot,st;for(n=it(n),tt=n.length,r=d,u=0,y=k,t=0;t<tt;++t)i=n[t],i<128&&s.push(a(i));for(v=et=s.length,et&&s.push(g);v<tt;){for(o=c,t=0;t<tt;++t)i=n[t],i>=r&&i<o&&(o=i);for(rt=v+1,o-r>e((c-u)/rt)&&h("overflow"),u+=(o-r)*rt,r=o,t=0;t<tt;++t)if(i=n[t],i<r&&++u>c&&h("overflow"),i==r){for(w=u,b=f;;b+=f){if(nt=b<=y?p:b>=y+l?l:b-y,w<nt)break;st=w-nt;ot=f-nt;s.push(a(ut(nt+st%ot,0)));w=e(st/ot)}s.push(a(ut(w,0)));y=ft(u,rt,v==et);u=0;++v}++u;++r}return s.join("")}function pt(n){return tt(n,function(n){return ct.test(n)?et(n.slice(4).toLowerCase()):n})}function wt(n){return tt(n,function(n){return lt.test(n)?"xn--"+ot(n):n})}var y=typeof r=="object"&&r&&!r.nodeType&&r,b=
typeof i=="object"&&i&&!i.nodeType&&i,o=typeof t=="object"&&t;(o.global===o||o.window===o||o.self===o)&&(u=o);var s,c=2147483647,f=36,p=1,l=26,st=38,ht=700,k=72,d=128,g="-",ct=/^xn--/,lt=/[^\x20-\x7E]/,at=/[\x2E\u3002\uFF0E\uFF61]/g,vt={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},w=f-p,e=Math.floor,a=String.fromCharCode,v;if(s={version:"1.4.1",ucs2:{decode:it,encode:rt},decode:et,encode:ot,toASCII:wt,toUnicode:pt},typeof n=="function"&&typeof n.amd=="object"&&n.amd)n("punycode",function(){return s});else if(y&&b)if(i.exports==y)b.exports=s;else for(v in s)s.hasOwnProperty(v)&&(y[v]=s[v]);else u.punycode=s})(this)}).call(this,typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],45:[function(t,i){
/*!
  * $script.js JS loader & dependency manager
  * https://github.com/ded/script.js
  * (c) Dustin Diaz 2014 | License MIT
  */
(function(t,r){typeof i!="undefined"&&i.exports?i.exports=r():typeof n=="function"&&n.amd?n(r):this[t]=r()})("$script",function(){function o(n,t){for(var i=0,r=n.length;i<r;++i)if(!t(n[i]))return p;return 1}function s(n,t){o(n,function(n){return!t(n)})}function n(e,h,c){function b(n){return n.call?n():r[n]}function a(){if(!--k){r[l]=1;w&&w();for(var n in t)o(n.split("|"),b)&&!s(t[n],b)&&(t[n]=[])}}e=e[i]?e:[e];var p=h&&h.call,w=p?h:c,l=p?e.join(""):h,k=e.length;return setTimeout(function(){s(e,function n(t,i){if(t===null)return a();if(i||/^https?:\/\//.test(t)||!f||(t=t.indexOf(".js")===-1?f+t+".js":f+t),u[t])return l&&(v[l]=1),u[t]==2?a():setTimeout(function(){n(t,!0)},0);u[t]=1;l&&(v[l]=1);y(t,a)})},0),n}function y(n,t){var i=h.createElement("script"),r;i.onload=i.onerror=i[a]=function(){i[l]&&!/^c|loade/.test(i[l])||r||(i.onload=i[a]=null,r=1,u[n]=2,t())};i.async=1;i.src=e?n+(n.indexOf("?")===-1?"?":"&")+e:n;c.insertBefore(i,c.lastChild)}var h=document,c=h.getElementsByTagName("head")[0],p=!1,i="push",l="readyState",
a="onreadystatechange",r={},v={},t={},u={},f,e;return n.get=y,n.order=function(t,i,r){(function u(f){f=t.shift();t.length?n(f,u):n(f,i,r)})()},n.path=function(n){f=n},n.urlArgs=function(n){e=n},n.ready=function(u,f,e){u=u[i]?u:[u];var h=[];return!s(u,function(n){r[n]||h[i](n)})&&o(u,function(n){return r[n]})?f():!function(n){t[n]=t[n]||[];t[n][i](f);e&&e(h)}(u.join("|")),n},n.done=function(t){n([null],t)},n})},{}]},{},[32])(32)});
/*!
   hlsjs engine plugin (light) for Flowplayer HTML5
   Copyright (c) 2015-2017, Flowplayer Drive Oy
   Released under the MIT License:
   http://www.opensource.org/licenses/mit-license.php
   Includes hls.light.js
   Copyright (c) 2017 Dailymotion (http://www.dailymotion.com)
   https://github.com/video-dev/hls.js/blob/master/LICENSE
   Requires Flowplayer HTML5 version 7 or greater
   v1.1.1-42-g4295710
*/
(function(){"use strict";var n=function(n,t){var i="hlsjs",s,r=t.common,u=t.extend,f=t.support,v=f.browser,e=t.version,h=window,y=h.MediaSource||h.WebKitMediaSource,c=h.performance,l=function(n){return n.toLowerCase().indexOf("mpegurl")>-1},p=function(n){var t=n.clip&&n.clip.hlsQualities||n.hlsQualities;return f.inlineVideo&&(t===!0||t&&t.length)},a=function(n){var t=r.findDirect("video",n)[0]||r.find(".fp-player>video",n)[0];t&&(r.find("source",t).forEach(function(n){n.removeAttribute("src")}),t.removeAttribute("src"),t.load(),r.removeNode(t))},o=function(e,o){var b=t.bean,v,h,w,d,g,nt="is-seeking",ut="is-poster",it=function(n,t,u){if(n.debug&&console.log("recovery."+i,"<-",t),r.removeClass(o,"is-paused"),r.addClass(o,nt),u)h.startLoad();else{var f=c.now();!d||f-d>3e3?(d=c.now(),h.recoverMediaError()):(!g||f-g>3e3)&&(g=c.now(),h.swapAudioCodec(),h.recoverMediaError())}w>0&&(w-=1);b.one(v,"seeked."+i,function(){v.paused&&(r.removeClass(o,ut),e.poster=!1,v.play());r.removeClass(o,nt)})},rt=function(n,t,i){var r=
{code:n};return n>2&&(r.video=u(e.video,{src:t,url:i||t})),r},tt=0,k=-1,ft=function(n,t){var r=t.levels,i,u=function(n){return isNaN(Number(n))?n.level:n};if(n&&!(r.length<2)){if(n==="drive"){switch(r.length){case 4:i=[1,2,3];break;case 5:i=[1,2,3,4];break;case 6:i=[1,3,4,5];break;case 7:i=[1,3,5,6];break;case 8:i=[1,3,6,7];break;default:if(r.length<3||r[0].height&&r[2].height&&r[0].height===r[2].height)return;i=[1,2]}i.unshift(-1)}else switch(typeof n){case"object":i=n.map(u);break;case"string":i=n.split(/\s*,\s*/).map(Number);break;default:i=r.map(function(n,t){return t});i.unshift(-1)}i=i.filter(function(n){if(n>-1&&n<r.length){var t=r[n];return!t.videoCodec||t.videoCodec&&y.isTypeSupported("video/mp4;codecs="+t.videoCodec)}return n===-1});e.video.qualities=i.map(function(t,i){var f=r[t],o=typeof n=="object"?n.filter(function(n){return u(n)===t})[0]:t,e="Level "+(i+1);return t<0?e=o.label||"Auto":o.label?e=o.label:(f.width&&f.height&&(e=Math.min(f.width,f.height)+"p"),n!=="drive"&&f.bitrate&&(e+=" ("+Math.
round(f.bitrate/1e3)+"k)")),{value:t,label:e}});k>-1||i.indexOf(-1)<0?(h.loadLevel=i.indexOf(k)<0?i[0]:k,h.config.startLevel=h.loadLevel,e.video.quality=h.loadLevel):e.video.quality=-1;k=e.video.quality}};return{engineName:i,pick:function(n){var t=n.filter(function(n){return l(n.type)})[0];return typeof t.src=="string"&&(t.src=r.createAbsoluteUrl(t.src)),t},load:function(t){var l=e.conf,ot={ended:"finish",loadeddata:"ready",pause:"pause",play:"resume",progress:"buffer",ratechange:"speed",seeked:"seek",timeupdate:"progress",volumechange:"volume",error:"error"},st=n.Events,ut=!!t.autoplay||!!l.autoplay||!!l.splash,ht=t.hlsQualities||l.hlsQualities,c=u(s,l.hlsjs,t.hlsjs),y=u({},c),et;if(t.hlsQualities===!1&&(ht=!1),h)h.destroy(),(e.video.src&&t.src!==e.video.src||t.index)&&r.attr(v,"autoplay","autoplay");else{a(o);v=r.createElement("video",{"class":"fp-engine "+i+"-engine",autoplay:ut?"autoplay":!1,volume:e.volumeLevel});f.mutedAutoplay&&!l.splash&&ut&&(v.muted=!0);Object.keys(ot).forEach(function(n){var r=ot[n],
f=n+"."+i,t;b.on(v,f,function(n){l.debug&&r.indexOf("progress")<0&&console.log(f,"->",r,n.originalEvent);var o=v.currentTime,y=v.seekable,s=e.video,p=e.dvr?s.seekOffset:e.live?h.liveSyncPosition:0,w=v.buffered,a,b=[],k=s.src,i;switch(r){case"ready":t=u(s,{duration:v.duration,seekable:y.length&&y.end(null),width:v.videoWidth,height:v.videoHeight,url:k});break;case"resume":c.bufferWhilePaused||h.startLoad(o);o<p&&(v.currentTime=p);break;case"seek":!c.bufferWhilePaused&&v.paused&&h.stopLoad();t=o;break;case"pause":c.bufferWhilePaused||h.stopLoad();break;case"progress":t=o;break;case"speed":t=v.playbackRate;break;case"volume":t=v.volume;break;case"buffer":for(a=0;a<w.length;a+=1)b.push(w.end(a));t=b.filter(function(n){return n>=o}).sort()[0];s.buffer=t;break;case"finish":c.bufferWhilePaused&&h.autoLevelEnabled&&(s.loop||l.playlist.length<2||l.advance===!1)&&(h.nextLoadLevel=tt);break;case"error":if(i=v.error&&v.error.code,c.recoverMediaError&&(i===3||!i)||c.recoverNetworkError&&i===2||c.recover&&(i===2||i===3)){n.
preventDefault();it(l,r,i===2);return}t=rt(i,k)}e.trigger(r,[e,t])})});e.on("error."+i,function(){h&&e.engine.unload()}).on("beforeseek."+i,function(n,t,i){i===undefined?n.preventDefault():!c.bufferWhilePaused&&t.paused&&h.startLoad(i)});e.on("quality."+i,function(n,t,i){c.smoothSwitching?h.nextLevel=i:h.currentLevel=i;k=i});r.prepend(r.find(".fp-player",o)[0],v)}if(e.video=t,tt=0,Object.keys(c).forEach(function(t){n.DefaultConfig.hasOwnProperty(t)||delete y[t];var i=c[t];switch(t){case"adaptOnStartOnly":i&&(y.startLevel=-1);break;case"autoLevelCapping":i===!1&&(i=-1);y[t]=i;break;case"startLevel":switch(i){case"auto":i=-1;break;case"firstLevel":i=undefined}y[t]=i;break;case"recover":c.recoverMediaError=!1;c.recoverNetworkError=!1;w=i;break;case"strict":i&&(c.recoverMediaError=!1,c.recoverNetworkError=!1,w=0)}}),h=new n(y),e.engine[i]=h,d=null,g=null,Object.keys(st).forEach(function(t){var i=st[t],f=c.listeners,s=f&&f.indexOf(i)>-1;h.on(i,function(i,f){var a,v={},y=e.conf.errors,k=n.ErrorTypes,d=n.ErrorDetails,
b=e.video,g=b.src;switch(t){case"MANIFEST_PARSED":p(l)&&!e.pluginQualitySelectorEnabled&&ft(ht,f);break;case"MANIFEST_LOADED":f.audioTracks&&f.audioTracks.length&&(!h.audioTracks||!h.audioTracks.length)&&(y.push("Alternate audio tracks not supported by light plugin build."),v=rt(y.length-1,e.video.src),e.trigger("error",[e,v]),y.slice(0,y.length-1));break;case"MEDIA_ATTACHED":h.loadSource(g);break;case"FRAG_LOADED":c.bufferWhilePaused&&!e.live&&h.autoLevelEnabled&&h.nextLoadLevel>tt&&(tt=h.nextLoadLevel);break;case"LEVEL_UPDATED":e.live&&(u(b,{seekOffset:f.details.fragments[0].start+h.config.nudgeOffset,duration:h.liveSyncPosition}),e.dvr&&e.playing&&e.trigger("dvrwindow",[e,{start:b.seekOffset,end:h.liveSyncPosition}]));break;case"BUFFER_APPENDED":r.removeClass(o,nt);break;case"ERROR":if(f.fatal||c.strict){switch(f.type){case k.NETWORK_ERROR:c.recoverNetworkError||w?it(l,f.type,!0):f.frag&&f.frag.url?(v.url=f.frag.url,a=2):a=4;break;case k.MEDIA_ERROR:c.recoverMediaError||w?it(l,f.type):a=3;break;default:a=5}
a!==undefined&&(v=rt(a,g,f.url),e.trigger("error",[e,v]))}else(f.details===d.FRAG_LOOP_LOADING_ERROR||f.details===d.BUFFER_STALLED_ERROR)&&r.addClass(o,nt)}s&&e.trigger(i,[e,f])})}),c.adaptOnStartOnly)b.one(v,"timeupdate."+i,function(){h.loadLevel=h.loadLevel});h.attachMedia(v);ut&&v.paused&&(et=v.play(),et!==undefined&&et.catch(function(){f.mutedAutoplay||(e.unload(),e.message("Please click the play button",3e3))}))},resume:function(){v.play()},pause:function(){v.pause()},seek:function(n){v&&(v.currentTime=n)},volume:function(n){v&&(v.volume=n)},speed:function(n){v.playbackRate=n;e.trigger("speed",[e,n])},unload:function(){if(h){var n="."+i;h.destroy();h=0;e.off(n);b.off(o,n);b.off(v,n);r.removeNode(v);v=0}}}};n.isSupported()&&(parseInt(e.split(".")[0])>6||/adhoc|dev/.test(e))&&(o.engineName=i,o[i+"ClientVersion"]=n.version,o.canPlay=function(n,t){return t[i]===!1||t.clip[i]===!1?!1:(s=u({bufferWhilePaused:!0,smoothSwitching:!0,recoverMediaError:!0},t[i],t.clip[i]),l(n)&&(!(v.safari&&f.dataload)||s.safari))}
,f.mutedAutoplay&&(e==="7.1.1"||e==="7.1.0")&&t(function(n,t){var i=n.conf;i.splash||i.autoplay||(n.splash=!0,i.splash=typeof i.poster=="string"?i.poster:!0,i.poster=undefined,i.autoplay=!0,a(t))}),t.engines.unshift(o))};typeof module=="object"&&module.exports?module.exports=n.bind(undefined,require("hls.js/dist/hls.light.js")):window.Hls&&window.flowplayer&&n(window.Hls,window.flowplayer)})(),function(n){var t=function(){function n(){}return n.VideoViewed="Viewed",n.VideoViewTime="ViewTime",n}();n.VideoTrackingTypes=t}(PageElements||(PageElements={})),function(n){var t=function(){function n(n,t){this.queueLimiter=4;this.sendEveryNumberOfSeconds=10;this.failCounter=0;this.failTimeoutMultiplier=2;this.elements=n;this.ajax=t;this.actions=[]}return n.prototype.initialize=function(n,t,i){this.ajaxTarget=n;this.pageViewLogDataId=t;this.pageType=i;this.bindEvents();this.setupTimeout()},n.prototype.bindEvents=function(){this.subscription=eventAggregator.subscribe(Common.EventNames.TrackVideoAction,this.trackVideoActionEventCallback.
bind(this));this.elements.document().on("beforeunload.video-tracking-handler",this.sendActions.bind(this))},n.prototype.trackVideoActionEventCallback=function(n){var t=n;t.time=(new Date).toJSON();t.pageViewLogDataId=this.pageViewLogDataId;t.Location||(t.Location=this.pageType);this.actions.push(t);this.actions.length>=this.queueLimiter&&this.sendActions()},n.prototype.setupTimeout=function(){var n=this;clearTimeout(this.timeoutHandle);this.timeoutHandle=setTimeout(function(){return n.sendActions()},this.sendEveryNumberOfSeconds*1e3)},n.prototype.sendActions=function(){var n=this,t;if(this.isSending||this.actions.length<1){this.setupTimeout();return}this.isSending=!0;t=this.actions;this.actions=[];this.ajax.post({url:this.ajaxTarget,contentType:"application/json",data:JSON.stringify({Actions:t})}).always(function(){n.isSending=!1;n.setupTimeout()}).fail(function(){n.actions=t.concat(n.actions);n.failCounter++;n.delayOrStopTracking()})},n.prototype.delayOrStopTracking=function(){this.failCounter>=10?this.stopTracking(
):this.delayTracking()},n.prototype.delayTracking=function(){this.sendEveryNumberOfSeconds*=this.failTimeoutMultiplier;this.setupTimeout()},n.prototype.stopTracking=function(){clearTimeout(this.timeoutHandle);this.elements.document().off("beforeunload.video-tracking-handler");eventAggregator.unSubscribe(Common.EventNames.TrackVideoAction,this.subscription)},n}();n.VideoTrackingHandler=t;DependencySystem.define(t).as(DS.Singleton).andInject([Common.ElementRepository,WebData.Ajax])}(PageElements||(PageElements={})),function(n){var t=function(){function n(n,t){var i=n.html().find('head meta[name = "video-tracking-ajax-target"]'),r=n.html().data("page-view-log-data-id");if(i.length&&!_.isEmpty(r)){var u=n.html().find('head meta[name = "pagetype"]'),f=u.length?u.attr("content"):"",e=i.attr("content");t.initialize(e,r,f)}}return n}();n.VideoTrackingConfiguration=t;DependencySystem.define(t).as(DS.Configuration).andInject([Common.ElementRepository,n.VideoTrackingHandler])}(PageElements||(PageElements={})),function(n)
{var t=function(){function n(n){this.player=[];n.window().on("load",this.initializeLoading.bind(this));this.intervalSubscription=setInterval(this.waitForLoadingInterval.bind(this),400)}return n.prototype.waitForLoadingInterval=function(){(sniff.isChrome||sniff.isIe11||sniff.isFirefox||document.readyState!=="interactive")&&document.readyState!=="complete"||this.initializeLoading()},n.prototype.initializeLoading=function(){clearInterval(this.intervalSubscription);this.loadingAllowed=!0;this.startBuffering()},n.prototype.play=function(n){var t=this.getManagedVideoById(n),i;t&&(i=t,i.shouldPlay=!0,this.startBufferingForVideoId(n,!0))},n.prototype.pause=function(n){this.setBufferingPausedIfNeeded(n)},n.prototype.endOfStream=function(n){var i=this.getManagedVideoById(n),t;i&&(t=i,t.finishedLoading=!0,t.loading=!1,t.canBeStopped=!1,this.startBuffering())},n.prototype.oneOrMoreVideosPlaying=function(){var t,n;for(t in this.player)if(n=this.player[t],!n.finishedLoading&&n.shouldPlay)return!0;return!1},n.prototype.startBuffering=
function(){this.loadingAllowed&&(this.oneOrMoreVideosPlaying()?this.startBufferingForPlayingVideos():this.startBufferingByVideoOrder())},n.prototype.startBufferingForPlayingVideos=function(){var t=0,i,n;for(i in this.player)n=this.player[i],!n.finishedLoading&&n.shouldPlay&&(t++,this.startBufferingForVideoId(n.id,!0));t===0&&this.startBufferingByVideoOrder()},n.prototype.startBufferingByVideoOrder=function(){var n,t;for(n in this.player)if(t=this.startBufferingForVideoId(this.player[n].id,!1),t)return},n.prototype.setBufferingPausedIfNeeded=function(n){var i=this.getManagedVideoById(n),t,r;i&&(t=i,r=t.api.engine.hlsjs,this.setMinLevelOneAboveStart(r),t.shouldPlay=!1,this.oneOrMoreVideosPlaying()?(t.loading=!1,t.canBeStopped=!1,t.api.engine.hlsjs.stopLoad()):t.canBeStopped=!0,t.finishedLoading&&this.startBuffering())},n.prototype.startBufferingForVideoId=function(n,t){var u,i,r;return this.loadingAllowed?(u=this.getManagedVideoById(n),!u)?!1:(i=u,r=i.api.engine.hlsjs,!i.finishedLoading&&i.loading&&t&&(t?this.setMinLevelOneBelowStart(
r):this.setMinLevelOneAboveStart(r)),i.finishedLoading||i.loading)?!1:(this.stopAllStoppableVideoBuffers(),(i.api.playing||i.shouldPlay)&&(t=!0),i.loading=!0,i.canBeStopped=!t,t?this.setMinLevelOneBelowStart(r):this.setMinLevelOneAboveStart(r),i.api.engine.hlsjs.startLoad(-1),!0):!1},n.prototype.setMinLevelOneAboveStart=function(n){var t=n.config.startLevel,i;t++;i=this.getRequiredBitrateForLevel(n,t);n.config.minAutoBitrate=i},n.prototype.setMinLevelOneBelowStart=function(n){var t=n.config.startLevel,i;t>0&&t--;i=this.getRequiredBitrateForLevel(n,t);n.config.minAutoBitrate=i},n.prototype.stopAllStoppableVideoBuffers=function(){var t,n;for(t in this.player)n=this.player[t],!n.finishedLoading&&n.loading&&n.canBeStopped&&(n.loading=!1,n.canBeStopped=!1,n.api.engine.hlsjs.stopLoad())},n.prototype.getManagedVideoById=function(n){for(var t in this.player)if(this.player[t].id===n)return this.player[t];return!1},n.prototype.getRequiredBitrateForLevel=function(n,t){if(!n||!n.levels)return 0;var i=this.getMaxQualityLevel(
n);return t>i&&(t=i),n.levels[t].bitrate-1},n.prototype.getMaxQualityLevel=function(n){return n.levels.length-1},n.prototype.add=function(n,t){if(t.engine&&t.engine.engineName==="hlsjs"){var i={id:n,api:t,loading:!1,shouldPlay:!1,canBeStopped:!1,finishedLoading:!1,currentMinQualityLevel:0};this.player.push(i);this.startBuffering()}},n.prototype.remove=function(n){for(var i,t=0;t<this.player.length;t++)if(i=this.player[t],n===i.id){this.player.splice(t,1);break}},n}();n.Video2LoadingManager=t;DependencySystem.define(t).as(DS.Singleton).andInject([Common.ElementRepository])}(PageElements||(PageElements={})),function(n){var t=function(){function n(n){this.fpApis=n}return n.prototype.add=function(n,t){this.fpApis.add(n,t)},n.prototype.remove=function(n){this.fpApis.removeByKey(n)},n.prototype.get=function(n){return typeof n=="string"?this.fpApis.get(n):null},n}();n.Video2ApiProvider=t;DependencySystem.define(t).as(DS.Singleton,"Video2ApiProvider").andInject([Common.Dictionary])}(PageElements||(PageElements={})),function(
n){var t=function(){function n(){this.qualityLevels=[{width:426,height:240},{width:640,height:360},{width:854,height:480},{width:1280,height:720},{width:1920,height:1080}]}return n.prototype.getQualityLevel=function(n,t){var u,i,f,r;return n.filter(":visible").length?(u=this.getHeight(n,t.height),i=0,u>0&&(i=this.selectLevelBasedOnHeight(u)),f=this.getWidth(n,t.width),r=0,f>0&&(r=this.selectLevelBasedOnWidth(f)),i>0||r>0)?i>r?i:r:this.getDefaultFallbackQuality():this.getDefaultFallbackQuality()},n.prototype.getDefaultFallbackQuality=function(){return sniff.isHandheld?1:3},n.prototype.selectLevelBasedOnHeight=function(n){var i,t;for(i in this.qualityLevels)if(this.qualityLevels[i].height>n)return t=parseInt(i),t>0&&t--,t;return this.getDefaultFallbackQuality()},n.prototype.selectLevelBasedOnWidth=function(n){var i,t;for(i in this.qualityLevels)if(this.qualityLevels[i].width>n)return t=parseInt(i),t>0&&t--,t;return this.getDefaultFallbackQuality()},n.prototype.getHeight=function(n,t){return t?t:n.outerHeight()}
,n.prototype.getWidth=function(n,t){return t?t:n.outerWidth()},n}();n.Video2StartqualitySelector=t;DependencySystem.define(t).as(DS.Singleton)}(PageElements||(PageElements={})),function(n){var t=function(){function n(n){this.scriptsPath="/Scripts/external/flowplayer/";this.startQualitySelector=n}return n.prototype.getPlayerData=function(n){var r=n.attr("id"),i=$("#"+r+"_data"),t;if(!i.length)throw new Error("No configuration data found for video <"+r+">");return t=$.parseJSON(i.html()),i.remove(),t.autoPlay=this.mapAutoplay(t.autoPlay),t.splash=this.mapSplash(t.splash),t.volume&&(t.volume/=100),t},n.prototype.mapAutoplay=function(n){return{always:n==="always",never:n==="never",once:n==="once"}},n.prototype.mapSplash=function(n){return{normal:n==="normal",rewind:n==="rewind"}},n.prototype.getLicenceKeys=function(n){return n.data("licence-keys")},n.prototype.mapOptions=function(n,t,i){return{autoplay:!1,chromecast:!1,clip:{loop:n.loop,sources:n.sources},disabled:n.disabled,fullscreen:n.allowFullScreen,hlsjs:{autoStartLoad:
n.splash.normal||n.splash.rewind||!1,startLevel:i,listeners:["hlsLevelSwitched","hlsBufferEos","hlsError"],safari:!0},hlsQualities:n.qualitySelector,key:t,keyboard:!1,muted:n.mute,poster:n.posterImage,share:!1,splash:n.splash.normal||n.splash.rewind,swf:this.scriptsPath+"flowplayer.swf",swfHls:!1,volume:typeof n.volume=="number"?n.volume:.5}},n.prototype.provide=function(n){var i=$.Deferred(),t;try{t=this.getPlayerData(n);i.resolve({data:t,flowplayer:this.mapOptions(t,this.getLicenceKeys(n),this.startQualitySelector.getQualityLevel(n,t))})}catch(r){i.reject()}return i},n}();n.Video2ConfigurationProvider=t;DependencySystem.define(t).as(DS.Singleton).andInject([n.Video2StartqualitySelector])}(PageElements||(PageElements={})),function(n){var t=function(){function t(){this.currentQualityLevel=0;this.lastStartTime=0}return t.prototype.trackReady=function(n){(this.isHlsjsMode=n.api.engine.engineName==="hlsjs",this.isHlsjsMode)&&(this.qualityLevels=n.api.engine.hlsjs.levels,this.initialQualitySelected=n.api.engine.hlsjs.
loadLevel)},t.prototype.trackPlay=function(t){if(this.lastStartTime=t.time,!this.firstPlayTracked){var i={ActionType:n.VideoTrackingTypes.VideoViewed,Subject:this.getSubjectData(t.api),Quality:this.getQualityLevelName(this.initialQualitySelected),Duration:null,Location:this.getLocationData(t.api)};this.firstPlayPayload=i}},t.prototype.trackPause=function(n){this.trackViewTime(n)},t.prototype.trackSeek=function(n){this.lastStartTime=n.time},t.prototype.trackOnBeforeSeek=function(n,t){this.trackViewTime(n);this.lastStartTime=t},t.prototype.trackFinish=function(n){this.trackViewTime(n)},t.prototype.getPlayedTime=function(n){var t=n-this.lastStartTime;return t<1?0:Math.round(t)},t.prototype.trackQualityChanged=function(n,t){this.trackViewTime(n);this.currentQualityLevel=t.level},t.prototype.getQualityLevelName=function(n){return this.isHlsjsMode?typeof this.qualityLevels[n]=="undefined"?"":this.qualityLevels[n].height.toString()+"p":"progressive"},t.prototype.trackViewTime=function(t){var i=this.getPlayedTime(t.time);
i<=0||(this.firstPlayTracked||(this.firstPlayTracked=!0,this.trackAction(this.firstPlayPayload)),this.trackAction(this.createPayload(n.VideoTrackingTypes.VideoViewTime,t,i)),this.lastStartTime=t.time)},t.prototype.getSubjectData=function(n){return this.subjectData||(this.subjectData=n.domReference.data("tracking-subject")),this.subjectData},t.prototype.getLocationData=function(n){return this.locationData||(this.locationData=n.domReference.data("tracking-location")),this.locationData},t.prototype.trackAction=function(n){eventAggregator.publish(Common.EventNames.TrackVideoAction,n)},t.prototype.createPayload=function(n,t,i){return{ActionType:n,Subject:this.getSubjectData(t.api),Quality:this.getQualityLevelName(this.currentQualityLevel),Duration:i,Location:this.getLocationData(t.api)}},t}();n.Video2EventTrackingHandler=t;DependencySystem.define(t).as(DS.Factory)}(PageElements||(PageElements={})),function(n){var t=Common.EventNames,i=function(){function i(n,t,i){this.apiP=n;this.trackingHandler=t;this.loadingManager=
i}return i.prototype.initializeFor=function(n){this.fp=this.apiP.get(n);this.id=n;this.ns="."+n;this.bindEvents()},i.prototype.bindEvents=function(){this.emitPauseWhenStalled();this.fp.on("ready"+this.ns,this.emitReady.bind(this));this.fp.on("resume"+this.ns,this.emitPlay.bind(this));this.fp.on("pause"+this.ns,this.emitPause.bind(this));this.fp.on("stop"+this.ns,this.emitStop.bind(this));this.fp.on("seek"+this.ns,this.emitSeek.bind(this));this.fp.on("beforeseek"+this.ns,this.emitOnBeforeSeek.bind(this));this.fp.on("finish"+this.ns,this.emitFinish.bind(this));this.fp.on("hlsLevelSwitched"+this.ns,this.emitQualityChanged.bind(this));this.fp.on("unload"+this.ns,this.emitUnload.bind(this));this.fp.on("hlsBufferEos"+this.ns,this.emitEndOfStream.bind(this));this.fp.on("hlsError"+this.ns,this.emitHlsError.bind(this));this.fp.on("cuepoint"+this.ns,this.emitCuePoint.bind(this))},i.prototype.emitEndOfStream=function(){this.loadingManager.endOfStream(this.id)},i.prototype.emitHlsError=function(n,t,i){i.type==="networkError"&&
this.loadingManager.endOfStream(this.id)},i.prototype.emitCuePoint=function(t,i,r){typeof r=="object"&&r.type===n.TimelinrActionTypes.VideoPause&&i.pause()},i.prototype.emitPauseWhenStalled=function(){var n=this,i=0,r,u,f=_.throttle(function(n){eventAggregator.publish(t.VideoStateProgress,n)},100),e=function(e,o,s){switch(e.type){case"beforeseek":u=!0;break;case"progress":var h=n.composePayload(s);(sniff.isHandheld||sniff.isIe11||s<1)&&f(h);s+.001<=i&&!u?(eventAggregator.publish(t.VideoStateStall,h),eventAggregator.publish(t.VideoStatePause,h),r=!0,h.time=i,n.trackingHandler.trackPause(h)):r&&(eventAggregator.publish(t.VideoStatePlay,n.composePayload(s)),r=!1,u=!1,n.trackingHandler.trackPlay(h));i=s}};this.fp.on("progress"+this.ns+" beforeseek"+this.ns,e.bind(this))},i.prototype.emitReady=function(){var n=this.composePayload(0);eventAggregator.publish(t.VideoStateReady,n);this.trackingHandler.trackReady(n)},i.prototype.emitPlay=function(n,i,r){this.loadingManager.play(this.id);var u=this.composePayload(r);eventAggregator.
publish(t.VideoStatePlay,u,this.id);this.trackingHandler.trackPlay(u)},i.prototype.emitPause=function(n,i,r){this.loadingManager.pause(this.id);var u=this.composePayload(r);eventAggregator.publish(t.VideoStatePause,u,this.id);this.trackingHandler.trackPause(u)},i.prototype.emitStop=function(n,i,r){this.loadingManager.pause(this.id);var u=this.composePayload(r);eventAggregator.publish(t.VideoStateStop,u,this.id);i.video.time=0},i.prototype.emitSeek=function(n,i,r){var u=this.composePayload(typeof r=="undefined"?0:r);eventAggregator.publish(t.VideoStateSeek,u);this.trackingHandler.trackSeek(u)},i.prototype.emitOnBeforeSeek=function(n,t,i){var r=typeof i=="undefined"?0:i,u=typeof t.video.time=="undefined"?r:t.video.time,f=this.composePayload(u);this.trackingHandler.trackOnBeforeSeek(f,r)},i.prototype.emitFinish=function(n,i,r){var u=this.composePayload(r);eventAggregator.publish(t.VideoStateFinish,u);this.trackingHandler.trackFinish(u)},i.prototype.emitQualityChanged=function(n,t,i){var r=this.composePayload(typeof
this.fp.video.time=="undefined"?0:this.fp.video.time);this.trackingHandler.trackQualityChanged(r,i)},i.prototype.emitUnload=function(n,i,r){var u=this.composePayload(r);eventAggregator.publish(t.VideoStateStop,u);eventAggregator.publish(t.VideoStateUnload,u)},i.prototype.composePayload=function(n){return{videoId:this.id,time:typeof n!="undefined"?n:this.fp.video.time,api:this.fp}},i.prototype.destroy=function(){this.fp.off(this.ns)},i}();n.Video2EventEmitter=i;DependencySystem.define(i).as(DS.Factory).andInject([n.Video2ApiProvider,n.Video2EventTrackingHandler,n.Video2LoadingManager])}(PageElements||(PageElements={})),function(n){var t=Common.EventNames,i=function(){function n(n){this.apiP=n}return n.prototype.initializeFor=function(n){this.fp=this.apiP.get(n);this.id=n;this.bindEvents()},n.prototype.bindEvents=function(){this.subscriptions=eventAggregator.subscribeMultiple([{message:t.VideoPlay,callback:this.playCallback.bind(this)},{message:t.VideoPause,callback:this.pauseCallback.bind(this)},{message:t.VideoReplay,
callback:this.replayCallback.bind(this)},{message:t.VideoStop,callback:this.stopCallback.bind(this)},{message:t.VideoSeek,callback:this.seekCallback.bind(this)},{message:t.VideoSeekPause,callback:this.seekPauseCallback.bind(this)},{message:t.VideoStateFinish,callback:this.finishCallback.bind(this)}]);(this.fp.conf.splash||sniff.isHandheld)&&(this.splashSubscriptions=eventAggregator.subscribeMultiple([{message:t.VideoStatePlay,callback:this.removeSplashPoster.bind(this)},{message:t.VideoStateStop,callback:this.setSplashPoster.bind(this)}]))},n.prototype.shouldNotDoAction=function(n){return typeof n!="undefined"&&n.videoId&&n.videoId!==this.id},n.prototype.resumeIfVisible=function(){this.fp.domReference.isMinPartlyInsideViewport()&&this.fp.resume()},n.prototype.loadSplashAndDoAction=function(n){if(n===void 0&&(n=function(){}),!this.fp.splash){n();return}this.fp.load().one("ready",function(){n()})},n.prototype.playCallback=function(n){var t=this;this.shouldNotDoAction(n)||this.loadSplashAndDoAction(function(){t.
resumeIfVisible()})},n.prototype.pauseCallback=function(n){var t=this;this.shouldNotDoAction(n)||this.loadSplashAndDoAction(function(){t.fp.pause()})},n.prototype.replayCallback=function(n){typeof n=="undefined"&&(n={});n.time=0;this.seekCallback(n)},n.prototype.stopCallback=function(n){var t=this;this.shouldNotDoAction(n)||this.loadSplashAndDoAction(function(){t.fp.stop()})},n.prototype.seekCallback=function(n,t){var i=this,r;this.shouldNotDoAction(n)||(r=this.normalizeTime(n.time),this.loadSplashAndDoAction(function(){if(i.fp.seek(r),!t&&i.fp.paused)i.fp.one("seek",function(){i.resumeIfVisible()});if(t&&!i.fp.paused)i.fp.one("seek",function(){i.fp.pause()})}))},n.prototype.seekPauseCallback=function(n){this.seekCallback(n,!0)},n.prototype.finishCallback=function(n){var t=this;this.shouldNotDoAction(n)||n.api.conf.clip.loop&&_.delay(function(){return t.fp.resume()},sniff.isHandheld?300:100)},n.prototype.setSplashPoster=function(n){this.shouldNotDoAction(n)||this.fp.domReference.addClass("is-poster")},n.prototype.
removeSplashPoster=function(n){this.shouldNotDoAction(n)||this.fp.domReference.removeClass("is-poster")},n.prototype.normalizeTime=function(n){return n.toString().indexOf(".")===-1&&(n=n/1e3),n},n.prototype.destroy=function(){this.subscriptions&&eventAggregator.unSubscribeMultiple(this.subscriptions);this.splashSubscriptions&&eventAggregator.unSubscribeMultiple(this.splashSubscriptions)},n}();n.Video2EventObsever=i;DependencySystem.define(i).as(DS.Factory).andInject([n.Video2ApiProvider])}(PageElements||(PageElements={})),function(n){var t=Common.EventNames,i=function(){function n(){}return n.prototype.applyFor=function(n){var r=this,i;if(!Modernizr.objectfit&&n.hasClass("fill")||sniff.isEdge){this.isApplied=!0;this.elements=Common.ElementRepository.getInstance();this.container=n;this.engine=this.container.find(".fp-engine");this.container.addClass("objFitPoly");this.coverSwitch();i=_.throttle(function(){r.coverSwitch()},300);this.elements.window().on("resize."+this.container.attr("id"),i);this.subscriptions=
eventAggregator.subscribeMultiple([{message:t.OrientationHasChanged,callback:this.coverSwitch.bind(this)},{message:t.ScreenContentSwitcherShownScreen,callback:this.coverSwitch.bind(this)}])}},n.prototype.coverSwitch=function(){var n=this.engine.get(0),t=n.videoHeight,i=n.videoWidth,r=this.container.width()/this.container.height(),u=i/t;this.container.toggleClass("toHeight",u>=r)},n.prototype.destroy=function(){this.isApplied&&(this.elements.window().off("."+this.container.attr("id")),eventAggregator.unSubscribeMultiple(this.subscriptions))},n}();n.Video2ObjectFitPolyfill=i;DependencySystem.define(i).as(DS.Factory)}(PageElements||(PageElements={})),function(n){var t=function(){function n(){this.eventIds=[];this.isNotYetApplied=!0}return n.prototype.apply=function(n,t,i,r){var u=this;if(!this.isNotYetApplied)throw new Error("In-View-Tracker is already tracking an element. As a tracker instance can only track one element at a time, you have to use a new instance instead.");this.visibilityThreshold={overall:t};this.
wasPreviouslyVisible=n.isMinPartlyInsideViewport(this.visibilityThreshold);this.eventIds=eventAggregator.subscribeMultiple([{message:Common.EventNames.ParallaxSkrollrScroll,callback:function(){u.checkVisibility(n,i,r)}},{message:Common.EventNames.WindowScrolled,callback:function(){u.checkVisibility(n,i,r)}},{message:Common.EventNames.ModalOpened,callback:function(){u.checkVisibility(n,i,r)}},{message:Common.EventNames.ScreenContentSwitcherShownScreen,callback:function(){u.checkVisibility(n,i,r)}}]);this.isNotYetApplied=!1},n.prototype.destroy=function(){this.isNotYetApplied||eventAggregator.unSubscribeMultiple(this.eventIds)},n.prototype.checkVisibility=function(n,t,i){t===void 0&&(t=function(){});i===void 0&&(i=function(){});var r;r=this.wasPreviouslyVisible?n.isMinPartlyInsideViewport():n.isMinPartlyInsideViewport(this.visibilityThreshold);r!==this.wasPreviouslyVisible&&(r?i():t());this.wasPreviouslyVisible=r},n}();n.Video2InViewportTracking=t;DependencySystem.define(t).as(DS.Factory)}(PageElements||(PageElements=
{})),function(n){var t=function(){function n(n,t,i,r,u,f,e,o,s){var h=this;this.origin=n;this.video=n.contextQuery;this.videoId=this.video.attr("id");this.configProvider=t;this.apiProvider=i;this.eventEmitter=r;this.eventObserver=u;this.viewportTracking=f;this.objectFitPoly=e;this.loadingManager=o;this.freezer=s;this.configProvider.provide(this.video).then(function(n){h.config=n;h.initialize()}).fail(function(){})}return n.prototype.initialize=function(){var n=this;this.createPlayer().then(function(){return n.afterReadySetup()})},n.prototype.createPlayer=function(){var n=$.Deferred();return this.fp=flowplayer(this.video,this.config.flowplayer).one("ready",function(){return n.resolve()}),this.fp.domReference=this.video,this.apiProvider.add(this.videoId,this.fp),this.eventEmitter.initializeFor(this.videoId),this.eventObserver.initializeFor(this.videoId),this.setupViewportTracking(),this.chillFreezer(),this.config.data.splash.normal||this.config.data.splash.rewind||this.loadingManager.add(this.videoId,this.fp),n}
,n.prototype.afterReadySetup=function(){(this.config.data.splash.normal||this.config.data.splash.rewind)&&this.loadingManager.add(this.videoId,this.fp);this.moveFullscreenButton();this.autoplayVideo();this.setupSplashRewind();this.objectFitPoly.applyFor(this.video)},n.prototype.moveFullscreenButton=function(){var n=this.video.find(".fp-fullscreen");this.video.find(".fp-controls").append(n)},n.prototype.autoplayVideo=function(){(this.config.data.autoPlay.always||this.config.data.autoPlay.once)&&this.video.isMinPartlyInsideViewport({overall:this.config.data.autoPlayThreshold})&&(this.wasAutoplaying=!0,this.loadingManager.play(this.videoId),this.fp.resume())},n.prototype.setupSplashRewind=function(){var n=this;if(this.config.data.splash.rewind)this.fp.on("finish",function(){n.fp.unload()})},n.prototype.chillFreezer=function(){var n=this,t=!1;this.freezer.introduce(function(){(t=n.fp.paused,n.fp.paused)||n.fp.pause()},function(){!t&&n.fp.paused&&n.video.isMinPartlyInsideViewport({overall:n.config.data.autoPlayThreshold})&&
n.fp.resume()},function(){return!n.config.data.resumeInBackground})},n.prototype.setupViewportTracking=function(){var n=this;this.viewportTracking.apply(this.video,this.config.data.autoPlayThreshold,function(){if(n.config.data.rewindOffscreen){n.fp.stop();return}if(n.fp.playing&&n.config.data.pauseOffscreen){n.fp.pause();return}},function(){if(n.config.data.autoPlay.always||n.config.data.autoPlay.once){if(n.config.data.autoPlay.once&&n.wasAutoplaying)return;n.loadingManager.play(n.videoId);n.wasAutoplaying=!0;n.fp.resume()}})},n.prototype.destroy=function(){this.fp.shutdown();this.apiProvider.remove(this.videoId);this.loadingManager.remove(this.videoId);this.eventEmitter.destroy();this.eventObserver.destroy();this.viewportTracking.destroy()},n}();n.Video2Controller=t;DependencySystem.define(t).as(DS.Controller).andInject([DS.Origin,n.Video2ConfigurationProvider,n.Video2ApiProvider,n.Video2EventEmitter,n.Video2EventObsever,n.Video2InViewportTracking,n.Video2ObjectFitPolyfill,n.Video2LoadingManager,Common.SimpleFreezer])}
(PageElements||(PageElements={})),function(n){var t=function(){function t(){}return t.componentName="video2",t.query=".video.flowplayer",t.controller=n.Video2Controller,t}();n.Video2Component=t;DependencySystem.define(t).as(DS.Component)}(PageElements||(PageElements={}))