/*! For license information please see LICENSES */ (window.webpackJsonp=window.webpackJsonp||[]).push([[3],[function(e,t,n){(function(t){var n;n="undefined"!=typeof window?window:void 0!==t?t:"undefined"!=typeof self?self:{},e.exports=n}).call(this,n(42))},,function(e,t,n){"use strict";n.d(t,"g",(function(){return o})),n.d(t,"e",(function(){return l})),n.d(t,"k",(function(){return c})),n.d(t,"j",(function(){return d})),n.d(t,"i",(function(){return h})),n.d(t,"b",(function(){return v})),n.d(t,"f",(function(){return y})),n.d(t,"c",(function(){return _})),n.d(t,"h",(function(){return T})),n.d(t,"d",(function(){return w})),n.d(t,"a",(function(){return S}));var a,b,r=n(0),o=function(b,e,t){return void 0===t&&(t=" "),(function(e,t){for(var n="";t--;)n+=e;return n}(t,e)+b.toString()).slice(-e)},l=function(e){return"function"===ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer instanceof ArrayBuffer},c=function(e){return e instanceof Uint8Array?e:(Array.isArray(e)||l(e)||e instanceof ArrayBuffer||(e="number"!=typeof e||"number"==typeof e&&e!=e?0:[e]),new Uint8Array(e&&e.buffer||e,e&&e.byteOffset||0,e&&e.byteLength||0))},d=function(e){e=c(e);for(var t="",i=0;iy&&(v-=y,v-=y,v-=f(2))}return Number(v)}),y=function(e,t){var n=(void 0===t?{}:t).le,r=void 0!==n&&n;("bigint"!=typeof e&&"number"!=typeof e||"number"==typeof e&&e!=e)&&(e=0),e=f(e);for(var o,l=(o=e,Math.ceil(function(e){return e.toString(2).length}(o)/8)),c=new Uint8Array(new ArrayBuffer(l)),i=0;i=b.length&&l.call(b,(function(e,i){return e===(mask[i]?mask[i]&a[r+i]:a[r+i])}))}},function(e,t,n){(function(t){var r,o=void 0!==t?t:"undefined"!=typeof window?window:{},l=n(548);"undefined"!=typeof document?r=document:(r=o["__GLOBAL_DOCUMENT_CACHE@4"])||(r=o["__GLOBAL_DOCUMENT_CACHE@4"]=l),e.exports=r}).call(this,n(42))},,,,,,,function(e,t,n){"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var content=e(t);return t[2]?"@media ".concat(t[2]," {").concat(content,"}"):content})).join("")},t.i=function(e,n,r){"string"==typeof e&&(e=[[null,e,""]]);var o={};if(r)for(var i=0;it.parts.length&&(n.parts.length=t.parts.length)}else{var o=[];for(r=0;rb.timeline?1:-1}));var t,n},N=function(e){var t,n,r=[];return t=e,n=function(e,t,n,label){r=r.concat(e.playlists||[])},O.forEach((function(e){for(var r in t.mediaGroups[e])for(var o in t.mediaGroups[e][r]){var l=t.mediaGroups[e][r][o];n(l,e,r,o)}})),r},R=function(e){var t=e.playlist,n=e.mediaSequence;t.mediaSequence=n,t.segments.forEach((function(e,n){e.number=t.mediaSequence+n}))},B=function(e){var t=e.oldManifest,n=e.newManifest,r=t.playlists.concat(N(t)),o=n.playlists.concat(N(n));return n.timelineStarts=L([t.timelineStarts,n.timelineStarts]),function(e){var t=e.oldPlaylists,n=e.newPlaylists,r=e.timelineStarts;n.forEach((function(e){e.discontinuitySequence=_(r,(function(t){return t.timeline===e.timeline}));var n=function(e,t){for(var i=0;in.timeline||n.segments.length&&e.timeline>n.segments[n.segments.length-1].timeline)&&e.discontinuitySequence--);n.segments[l].discontinuity&&!o.discontinuity&&(o.discontinuity=!0,e.discontinuityStarts.unshift(0),e.discontinuitySequence--),R({playlist:e,mediaSequence:n.segments[l].number})}}))}({oldPlaylists:r,newPlaylists:o,timelineStarts:n.timelineStarts}),n},F=function(e){return e&&e.uri+"-"+(t=e.byterange,n="bigint"==typeof t.offset||"bigint"==typeof t.length?l.a.BigInt(t.offset)+l.a.BigInt(t.length)-l.a.BigInt(1):t.offset+t.length-1,t.offset+"-"+n);var t,n},U=function(e){return m(e.reduce((function(e,t){var n=t.attributes.id+(t.attributes.lang||"");if(e[n]){var r;if(t.segments)t.segments[0]&&(t.segments[0].discontinuity=!0),(r=e[n].segments).push.apply(r,t.segments);t.attributes.contentProtection&&(e[n].attributes.contentProtection=t.attributes.contentProtection)}else e[n]=t,e[n].attributes.timelineStarts=[];return e[n].attributes.timelineStarts.push({start:t.attributes.periodStart,timeline:t.attributes.periodStart}),e}),{})).map((function(e){var t,n;return e.discontinuityStarts=(t=e.segments||[],n="discontinuity",t.reduce((function(a,e,i){return e[n]&&a.push(i),a}),[])),e}))},V=function(e,t){var n=F(e.sidx),r=n&&t[n]&&t[n].sidx;return r&&P(e,r,e.sidx.resolvedUri),e},H=function(e,t){if(void 0===t&&(t={}),!Object.keys(t).length)return e;for(var i in e)e[i]=V(e[i],t);return e},z=function(e){var t,n=e.attributes,r=e.segments,o=e.sidx,l=e.discontinuityStarts,c={attributes:(t={NAME:n.id,AUDIO:"audio",SUBTITLES:"subs",RESOLUTION:{width:n.width,height:n.height},CODECS:n.codecs,BANDWIDTH:n.bandwidth},t["PROGRAM-ID"]=1,t),uri:"",endList:"static"===n.type,timeline:n.periodStart,resolvedUri:"",targetDuration:n.duration,discontinuityStarts:l,timelineStarts:n.timelineStarts,segments:r};return n.frameRate&&(c.attributes["FRAME-RATE"]=n.frameRate),n.contentProtection&&(c.contentProtection=n.contentProtection),o&&(c.sidx=o),c},$=function(e){var t=e.attributes;return"video/mp4"===t.mimeType||"video/webm"===t.mimeType||"video"===t.contentType},W=function(e){var t=e.attributes;return"audio/mp4"===t.mimeType||"audio/webm"===t.mimeType||"audio"===t.contentType},G=function(e){var t=e.attributes;return"text/vtt"===t.mimeType||"text"===t.contentType},Y=function(e){return e?Object.keys(e).reduce((function(t,label){var n=e[label];return t.concat(n.playlists)}),[]):[]},X=function(e){var t,n=e.dashPlaylists,r=e.locations,o=e.sidxMapping,l=void 0===o?{}:o,c=e.previousManifest;if(!n.length)return{};var d=n[0].attributes,h=d.sourceDuration,f=d.type,m=d.suggestedPresentationDelay,v=d.minimumUpdatePeriod,y=U(n.filter($)).map(z),T=U(n.filter(W)),w=U(n.filter(G)),S=n.map((function(e){return e.attributes.captionServices})).filter(Boolean),k={allowCache:!0,discontinuityStarts:[],segments:[],endList:!0,mediaGroups:(t={AUDIO:{},VIDEO:{}},t["CLOSED-CAPTIONS"]={},t.SUBTITLES={},t),uri:"",duration:h,playlists:H(y,l)};v>=0&&(k.minimumUpdatePeriod=1e3*v),r&&(k.locations=r),"dynamic"===f&&(k.suggestedPresentationDelay=m);var x,C,A=0===k.playlists.length,E=T.length?function(e,t,n){var r;void 0===t&&(t={}),void 0===n&&(n=!1);var o=e.reduce((function(a,e){var o=e.attributes.role&&e.attributes.role.value||"",l=e.attributes.lang||"",label=e.attributes.label||"main";if(l&&!e.attributes.label){var c=o?" ("+o+")":"";label=""+e.attributes.lang+c}a[label]||(a[label]={language:l,autoselect:!0,default:"main"===o,playlists:[],uri:""});var d=V(function(e,t){var n,r=e.attributes,o=e.segments,l=e.sidx,c=e.mediaSequence,d=e.discontinuitySequence,h=e.discontinuityStarts,f={attributes:(n={NAME:r.id,BANDWIDTH:r.bandwidth,CODECS:r.codecs},n["PROGRAM-ID"]=1,n),uri:"",endList:"static"===r.type,timeline:r.periodStart,resolvedUri:"",targetDuration:r.duration,discontinuitySequence:d,discontinuityStarts:h,timelineStarts:r.timelineStarts,mediaSequence:c,segments:o};return r.contentProtection&&(f.contentProtection=r.contentProtection),l&&(f.sidx=l),t&&(f.attributes.AUDIO="audio",f.attributes.SUBTITLES="subs"),f}(e,n),t);return a[label].playlists.push(d),void 0===r&&"main"===o&&((r=e).default=!0),a}),{});return r||(o[Object.keys(o)[0]].default=!0),o}(T,l,A):null,D=w.length?function(e,t){return void 0===t&&(t={}),e.reduce((function(a,e){var label=e.attributes.lang||"text";return a[label]||(a[label]={language:label,default:!1,autoselect:!1,playlists:[],uri:""}),a[label].playlists.push(V(function(e){var t,n=e.attributes,r=e.segments,o=e.mediaSequence,l=e.discontinuityStarts,c=e.discontinuitySequence;void 0===r&&(r=[{uri:n.baseUrl,timeline:n.periodStart,resolvedUri:n.baseUrl||"",duration:n.sourceDuration,number:0}],n.duration=n.sourceDuration);var d=((t={NAME:n.id,BANDWIDTH:n.bandwidth})["PROGRAM-ID"]=1,t);return n.codecs&&(d.CODECS=n.codecs),{attributes:d,uri:"",endList:"static"===n.type,timeline:n.periodStart,resolvedUri:n.baseUrl||"",targetDuration:n.duration,timelineStarts:n.timelineStarts,discontinuityStarts:l,discontinuitySequence:c,mediaSequence:o,segments:r}}(e),t)),a}),{})}(w,l):null,I=y.concat(Y(E),Y(D)),j=I.map((function(e){return e.timelineStarts}));return k.timelineStarts=L(j),x=I,C=k.timelineStarts,x.forEach((function(e){e.mediaSequence=0,e.discontinuitySequence=_(C,(function(t){return t.timeline===e.timeline})),e.segments&&e.segments.forEach((function(e,t){e.number=t}))})),E&&(k.mediaGroups.AUDIO.audio=E),D&&(k.mediaGroups.SUBTITLES.subs=D),S.length&&(k.mediaGroups["CLOSED-CAPTIONS"].cc=S.reduce((function(e,t){return t?(t.forEach((function(t){var n=t.channel,r=t.language;e[r]={autoselect:!1,default:!1,instreamId:n,language:r},t.hasOwnProperty("aspectRatio")&&(e[r].aspectRatio=t.aspectRatio),t.hasOwnProperty("easyReader")&&(e[r].easyReader=t.easyReader),t.hasOwnProperty("3D")&&(e[r]["3D"]=t["3D"])})),e):e}),{})),c?B({oldManifest:c,newManifest:k}):k},K=function(e,time,t){var n=e.NOW,r=e.clientOffset,o=e.availabilityStartTime,l=e.timescale,c=void 0===l?1:l,d=e.periodStart,h=void 0===d?0:d,f=e.minimumUpdatePeriod,m=(n+r)/1e3+(void 0===f?0:f)-(o+h);return Math.ceil((m*c-time)/t)},Q=function(e,t){for(var n=e.type,r=e.minimumUpdatePeriod,o=void 0===r?0:r,l=e.media,c=void 0===l?"":l,d=e.sourceDuration,h=e.timescale,f=void 0===h?1:h,m=e.startNumber,v=void 0===m?1:m,y=e.periodStart,_=[],time=-1,T=0;Ttime&&(time=x);var C=void 0;if(k<0){var A=T+1;C=A===t.length?"dynamic"===n&&o>0&&c.indexOf("$Number$")>0?K(e,time,S):(d*f-time)/S:(t[A].t-time)/S}else C=k+1;for(var E=v+_.length+C,D=v+_.length;D=o?l:""+new Array(o-l.length+1).join("0")+l)}}(t))},ee=function(e,t){var n={RepresentationID:e.id,Bandwidth:e.bandwidth||0},o=e.initialization,l=void 0===o?{sourceURL:"",range:""}:o,c=A({baseUrl:e.baseUrl,source:Z(l.sourceURL,n),range:l.range}),d=function(e,t){return e.duration||t?e.duration?I(e):Q(e,t):[{number:e.startNumber||1,duration:e.sourceDuration,time:0,timeline:e.periodStart}]}(e,t);return d.map((function(t){n.Number=t.number,n.Time=t.time;var o=Z(e.media||"",n),l=e.timescale||1,d=e.presentationTimeOffset||0,h=e.periodStart+(t.time-d)/l;return{uri:o,timeline:t.timeline,duration:t.duration,resolvedUri:Object(r.a)(e.baseUrl||"",o),map:c,number:t.number,presentationTime:h}}))},te=function(e,t){var n=e.duration,r=e.segmentUrls,o=void 0===r?[]:r,l=e.periodStart;if(!n&&!t||n&&t)throw new Error(x);var c,d=o.map((function(t){return function(e,t){var n=e.baseUrl,r=e.initialization,o=void 0===r?{}:r,l=A({baseUrl:n,source:o.sourceURL,range:o.range}),c=A({baseUrl:n,source:t.media,range:t.mediaRange});return c.map=l,c}(e,t)}));return n&&(c=I(e)),t&&(c=Q(e,t)),c.map((function(t,n){if(d[n]){var r=d[n],o=e.timescale||1,c=e.presentationTimeOffset||0;return r.timeline=t.timeline,r.duration=t.duration,r.number=t.number,r.presentationTime=l+(t.time-c)/o,r}})).filter((function(e){return e}))},ne=function(e){var t,n,r=e.attributes,o=e.segmentInfo;o.template?(n=ee,t=f(r,o.template)):o.base?(n=j,t=f(r,o.base)):o.list&&(n=te,t=f(r,o.list));var l={attributes:r};if(!n)return l;var c=n(t,o.segmentTimeline);if(t.duration){var d=t,h=d.duration,m=d.timescale,v=void 0===m?1:m;t.duration=h/v}else c.length?t.duration=c.reduce((function(e,t){return Math.max(e,Math.ceil(t.duration))}),0):t.duration=0;return l.attributes=t,l.segments=c,o.base&&t.indexRange&&(l.sidx=c[0],l.segments=[]),l},ie=function(element,e){return y(element.childNodes).filter((function(t){return t.tagName===e}))},re=function(element){return element.textContent.trim()},ae=function(e){var t=/P(?:(\d*)Y)?(?:(\d*)M)?(?:(\d*)D)?(?:T(?:(\d*)H)?(?:(\d*)M)?(?:([\d.]*)S)?)?/.exec(e);if(!t)return 0;var n=t.slice(1),r=n[0],o=n[1],l=n[2],c=n[3],d=n[4],h=n[5];return 31536e3*parseFloat(r||0)+2592e3*parseFloat(o||0)+86400*parseFloat(l||0)+3600*parseFloat(c||0)+60*parseFloat(d||0)+parseFloat(h||0)},oe={mediaPresentationDuration:function(e){return ae(e)},availabilityStartTime:function(e){return/^\d+-\d+-\d+T\d+:\d+:\d+(\.\d+)?$/.test(t=e)&&(t+="Z"),Date.parse(t)/1e3;var t},minimumUpdatePeriod:function(e){return ae(e)},suggestedPresentationDelay:function(e){return ae(e)},type:function(e){return e},timeShiftBufferDepth:function(e){return ae(e)},start:function(e){return ae(e)},width:function(e){return parseInt(e,10)},height:function(e){return parseInt(e,10)},bandwidth:function(e){return parseInt(e,10)},frameRate:function(e){return function(e){return parseFloat(e.split("/").reduce((function(e,t){return e/t})))}(e)},startNumber:function(e){return parseInt(e,10)},timescale:function(e){return parseInt(e,10)},presentationTimeOffset:function(e){return parseInt(e,10)},duration:function(e){var t=parseInt(e,10);return isNaN(t)?ae(e):t},d:function(e){return parseInt(e,10)},t:function(e){return parseInt(e,10)},r:function(e){return parseInt(e,10)},DEFAULT:function(e){return e}},se=function(e){return e&&e.attributes?y(e.attributes).reduce((function(a,e){var t=oe[e.name]||oe.DEFAULT;return a[e.name]=t(e.value),a}),{}):{}},ue={"urn:uuid:1077efec-c0b2-4d02-ace3-3c1e52e2fb4b":"org.w3.clearkey","urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed":"com.widevine.alpha","urn:uuid:9a04f079-9840-4286-ab92-e65be0885f95":"com.microsoft.playready","urn:uuid:f239e769-efa3-4850-9c16-a903c6932efb":"com.adobe.primetime"},le=function(e,t){return t.length?v(e.map((function(e){return t.map((function(t){return Object(r.a)(e,re(t))}))}))):e},ce=function(e){var t=ie(e,"SegmentTemplate")[0],n=ie(e,"SegmentList")[0],r=n&&ie(n,"SegmentURL").map((function(s){return f({tag:"SegmentURL"},se(s))})),o=ie(e,"SegmentBase")[0],l=n||t,c=l&&ie(l,"SegmentTimeline")[0],d=n||o||t,h=d&&ie(d,"Initialization")[0],template=t&&se(t);template&&h?template.initialization=h&&se(h):template&&template.initialization&&(template.initialization={sourceURL:template.initialization});var m={template:template,segmentTimeline:c&&ie(c,"S").map((function(s){return se(s)})),list:n&&f(se(n),{segmentUrls:r,initialization:se(h)}),base:o&&f(se(o),{initialization:se(h)})};return Object.keys(m).forEach((function(e){m[e]||delete m[e]})),m},de=function(e,t,n){return function(r){var o,l=se(r),d=le(t,ie(r,"BaseURL")),h=ie(r,"Role")[0],m={role:se(h)},y=f(e,l,m),_=ie(r,"Accessibility")[0],T="urn:scte:dash:cc:cea-608:2015"===(o=se(_)).schemeIdUri?("string"!=typeof o.value?[]:o.value.split(";")).map((function(e){var t,n;if(n=e,/^CC\d=/.test(e)){var r=e.split("=");t=r[0],n=r[1]}else/^CC\d$/.test(e)&&(t=e);return{channel:t,language:n}})):"urn:scte:dash:cc:cea-708:2015"===o.schemeIdUri?("string"!=typeof o.value?[]:o.value.split(";")).map((function(e){var t={channel:void 0,language:void 0,aspectRatio:1,easyReader:0,"3D":0};if(/=/.test(e)){var n=e.split("="),r=n[0],o=n[1],l=void 0===o?"":o;t.channel=r,t.language=e,l.split(",").forEach((function(e){var n=e.split(":"),r=n[0],o=n[1];"lang"===r?t.language=o:"er"===r?t.easyReader=Number(o):"war"===r?t.aspectRatio=Number(o):"3D"===r&&(t["3D"]=Number(o))}))}else t.language=e;return t.channel&&(t.channel="SERVICE"+t.channel),t})):void 0;T&&(y=f(y,{captionServices:T}));var label=ie(r,"Label")[0];if(label&&label.childNodes.length){var w=label.childNodes[0].nodeValue.trim();y=f(y,{label:w})}var S=ie(r,"ContentProtection").reduce((function(e,t){var n=se(t);n.schemeIdUri&&(n.schemeIdUri=n.schemeIdUri.toLowerCase());var r=ue[n.schemeIdUri];if(r){e[r]={attributes:n};var o=ie(t,"cenc:pssh")[0];if(o){var l=re(o);e[r].pssh=l&&Object(c.a)(l)}}return e}),{});Object.keys(S).length&&(y=f(y,{contentProtection:S}));var k=ce(r),x=ie(r,"Representation"),C=f(n,k);return v(x.map(function(e,t,n){return function(r){var o=ie(r,"BaseURL"),l=le(t,o),c=f(e,se(r)),d=ce(r);return l.map((function(e){return{segmentInfo:f(n,d),attributes:f(c,{baseUrl:e})}}))}}(y,d,C)))}},he=function(e,t){return function(n,r){var o=le(t,ie(n.node,"BaseURL")),l=f(e,{periodStart:n.attributes.start});"number"==typeof n.attributes.duration&&(l.periodDuration=n.attributes.duration);var c=ie(n.node,"AdaptationSet"),d=ce(n.node);return v(c.map(de(l,o,d)))}},fe=function(e){if(""===e)throw new Error(w);var t,n,r=new d.DOMParser;try{n=(t=r.parseFromString(e,"application/xml"))&&"MPD"===t.documentElement.tagName?t.documentElement:null}catch(e){}if(!n||n&&n.getElementsByTagName("parsererror").length>0)throw new Error(S);return n},pe=function(e,t){void 0===t&&(t={});var n=function(e,t){void 0===t&&(t={});var n=t,r=n.manifestUri,o=void 0===r?"":r,l=n.NOW,c=void 0===l?Date.now():l,d=n.clientOffset,h=void 0===d?0:d,f=ie(e,"Period");if(!f.length)throw new Error(T);var m=ie(e,"Location"),y=se(e),_=le([o],ie(e,"BaseURL"));y.type=y.type||"static",y.sourceDuration=y.mediaPresentationDuration||0,y.NOW=c,y.clientOffset=h,m.length&&(y.locations=m.map(re));var w=[];return f.forEach((function(e,t){var n=se(e),r=w[t-1];n.start=function(e){var t=e.attributes,n=e.priorPeriodAttributes,r=e.mpdType;return"number"==typeof t.start?t.start:n&&"number"==typeof n.start&&"number"==typeof n.duration?n.start+n.duration:n||"static"!==r?null:0}({attributes:n,priorPeriodAttributes:r?r.attributes:null,mpdType:y.type}),w.push({node:e,attributes:n})})),{locations:y.locations,representationInfo:v(w.map(he(y,_)))}}(fe(e),t),r=n.representationInfo.map(ne);return X({dashPlaylists:r,locations:n.locations,sidxMapping:t.sidxMapping,previousManifest:t.previousManifest})},me=function(e){return function(e){var t=ie(e,"UTCTiming")[0];if(!t)return null;var n=se(t);switch(n.schemeIdUri){case"urn:mpeg:dash:utc:http-head:2014":case"urn:mpeg:dash:utc:http-head:2012":n.method="HEAD";break;case"urn:mpeg:dash:utc:http-xsdate:2014":case"urn:mpeg:dash:utc:http-iso:2014":case"urn:mpeg:dash:utc:http-xsdate:2012":case"urn:mpeg:dash:utc:http-iso:2012":n.method="GET";break;case"urn:mpeg:dash:utc:direct:2014":case"urn:mpeg:dash:utc:direct:2012":n.method="DIRECT",n.value=Date.parse(n.value);break;default:throw new Error(C)}return n}(fe(e))}},,,,,,,,,,,,,,,function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var r=n(2),o=Object(r.k)([73,68,51]),l=function e(t,n){return void 0===n&&(n=0),(t=Object(r.k)(t)).length-n<10||!Object(r.a)(t,o,{offset:n})?n:(n+=function(e,t){void 0===t&&(t=0);var n=(e=Object(r.k)(e))[t+5],o=e[t+6]<<21|e[t+7]<<14|e[t+8]<<7|e[t+9];return(16&n)>>4?o+20:o+10}(t,n),e(t,n))}},,function(e,t,n){"use strict";n.d(t,"a",(function(){return ie})),n.d(t,"b",(function(){return an})),n.d(t,"c",(function(){return un})),n.d(t,"d",(function(){return fn})),n.d(t,"e",(function(){return tn})),n.d(t,"f",(function(){return Jt}));let r=Float32Array;function o(e,t,n){const o=new r(3);return e&&(o[0]=e),t&&(o[1]=t),n&&(o[2]=n),o}function l(a,b,e){return(e=e||new r(3))[0]=a[0]+b[0],e[1]=a[1]+b[1],e[2]=a[2]+b[2],e}function c(a,b,e){return(e=e||new r(3))[0]=a[0]*b[0],e[1]=a[1]*b[1],e[2]=a[2]*b[2],e}let d=Float32Array;function h(e){return(e=e||new d(16))[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}function f(e,t){t=t||new d(16);const n=e[0],r=e[1],o=e[2],l=e[3],c=e[4],h=e[5],f=e[6],m=e[7],v=e[8],y=e[9],_=e[10],T=e[11],w=e[12],S=e[13],k=e[14],x=e[15],C=_*x,A=k*T,E=f*x,D=k*m,I=f*T,j=_*m,P=o*x,O=k*l,M=o*T,L=_*l,N=o*m,R=f*l,B=v*S,F=w*y,U=c*S,V=w*h,H=c*y,z=v*h,$=n*S,W=w*r,G=n*y,Y=v*r,X=n*h,K=c*r,Q=C*h+D*y+I*S-(A*h+E*y+j*S),J=A*r+P*y+L*S-(C*r+O*y+M*S),Z=E*r+O*h+N*S-(D*r+P*h+R*S),ee=j*r+M*h+R*y-(I*r+L*h+N*y),te=1/(n*Q+c*J+v*Z+w*ee);return t[0]=te*Q,t[1]=te*J,t[2]=te*Z,t[3]=te*ee,t[4]=te*(A*c+E*v+j*w-(C*c+D*v+I*w)),t[5]=te*(C*n+O*v+M*w-(A*n+P*v+L*w)),t[6]=te*(D*n+P*c+R*w-(E*n+O*c+N*w)),t[7]=te*(I*n+L*c+N*v-(j*n+M*c+R*v)),t[8]=te*(B*m+V*T+H*x-(F*m+U*T+z*x)),t[9]=te*(F*l+$*T+Y*x-(B*l+W*T+G*x)),t[10]=te*(U*l+W*m+X*x-(V*l+$*m+K*x)),t[11]=te*(z*l+G*m+K*T-(H*l+Y*m+X*T)),t[12]=te*(U*_+z*k+F*f-(H*k+B*f+V*_)),t[13]=te*(G*k+B*o+W*_-($*_+Y*k+F*o)),t[14]=te*($*f+K*k+V*o-(X*k+U*o+W*f)),t[15]=te*(X*_+H*o+Y*f-(G*f+K*_+z*o)),t}function m(e,t,n){n=n||o();const r=t[0],l=t[1],c=t[2],d=r*e[3]+l*e[7]+c*e[11]+e[15];return n[0]=(r*e[0]+l*e[4]+c*e[8]+e[12])/d,n[1]=(r*e[1]+l*e[5]+c*e[9]+e[13])/d,n[2]=(r*e[2]+l*e[6]+c*e[10]+e[14])/d,n}function v(e,t,n){n=n||o();const r=t[0],l=t[1],c=t[2];return n[0]=r*e[0]+l*e[4]+c*e[8],n[1]=r*e[1]+l*e[5]+c*e[9],n[2]=r*e[2]+l*e[6]+c*e[10],n}const y=5120,_=5121,T=5122,w=5123,S=5124,k=5125,x=5126,C={};{const e=C;e[y]=Int8Array,e[_]=Uint8Array,e[T]=Int16Array,e[w]=Uint16Array,e[S]=Int32Array,e[k]=Uint32Array,e[x]=Float32Array,e[32819]=Uint16Array,e[32820]=Uint16Array,e[33635]=Uint16Array,e[5131]=Uint16Array,e[33640]=Uint32Array,e[35899]=Uint32Array,e[35902]=Uint32Array,e[36269]=Uint32Array,e[34042]=Uint32Array}function A(e){if(e instanceof Int8Array)return y;if(e instanceof Uint8Array)return _;if(e instanceof Uint8ClampedArray)return _;if(e instanceof Int16Array)return T;if(e instanceof Uint16Array)return w;if(e instanceof Int32Array)return S;if(e instanceof Uint32Array)return k;if(e instanceof Float32Array)return x;throw new Error("unsupported typed array type")}function E(e){if(e===Int8Array)return y;if(e===Uint8Array)return _;if(e===Uint8ClampedArray)return _;if(e===Int16Array)return T;if(e===Uint16Array)return w;if(e===Int32Array)return S;if(e===Uint32Array)return k;if(e===Float32Array)return x;throw new Error("unsupported typed array type")}const D="undefined"!=typeof SharedArrayBuffer?function(a){return a&&a.buffer&&(a.buffer instanceof ArrayBuffer||a.buffer instanceof SharedArrayBuffer)}:function(a){return a&&a.buffer&&a.buffer instanceof ArrayBuffer};function I(...e){console.error(...e)}function j(e,t){return"undefined"!=typeof WebGLTexture&&t instanceof WebGLTexture}const P=35044,O=34962,M=34963,L=34660,N=5120,R=5121,B=5122,F=5123,U=5124,V=5125,H=5126,z={attribPrefix:""};function $(e,t,n,r,o){e.bindBuffer(t,n),e.bufferData(t,r,o||P)}function W(e,t,n,r){if(o=t,"undefined"!=typeof WebGLBuffer&&o instanceof WebGLBuffer)return t;var o;n=n||O;const l=e.createBuffer();return $(e,n,l,t,r),l}function G(e){return"indices"===e}function Y(e){return e.length?e:e.data}const X=/coord|texture/i,K=/color|colour/i;function Q(e,t){let n;if(n=X.test(e)?2:K.test(e)?4:3,t%n>0)throw new Error(`Can not guess numComponents for attribute '${e}'. Tried ${n} but ${t} values is not evenly divisible by ${n}. You should specify it.`);return n}function J(e,t){return e.numComponents||e.size||Q(t,Y(e).length)}function Z(e,t){if(D(e))return e;if(D(e.data))return e.data;Array.isArray(e)&&(e={data:e});let n=e.type;return n||(n=G(t)?Uint16Array:Float32Array),new n(e.data)}function ee(e,t){const n={};return Object.keys(t).forEach((function(r){if(!G(r)){const l=t[r],c=l.attrib||l.name||l.attribName||z.attribPrefix+r;if(l.value){if(!Array.isArray(l.value)&&!D(l.value))throw new Error("array.value is not array or typedarray");n[c]={value:l.value}}else{let t,d,h,f;if(l.buffer&&l.buffer instanceof WebGLBuffer)t=l.buffer,f=l.numComponents||l.size,d=l.type,h=l.normalize;else if("number"==typeof l||"number"==typeof l.data){const n=l.data||l,c=l.type||Float32Array,m=n*c.BYTES_PER_ELEMENT;d=E(c),h=void 0!==l.normalize?l.normalize:(o=c)===Int8Array||o===Uint8Array,f=l.numComponents||l.size||Q(r,n),t=e.createBuffer(),e.bindBuffer(O,t),e.bufferData(O,m,l.drawType||P)}else{const n=Z(l,r);t=W(e,n,void 0,l.drawType),d=A(n),h=void 0!==l.normalize?l.normalize:function(e){return e instanceof Int8Array||e instanceof Uint8Array}(n),f=J(l,r)}n[c]={buffer:t,numComponents:f,type:d,normalize:h,stride:l.stride||0,offset:l.offset||0,divisor:void 0===l.divisor?void 0:l.divisor,drawType:l.drawType}}}var o})),e.bindBuffer(O,null),n}const te=["position","positions","a_position"];function ne(e,t){let n,r;for(r=0;r0)throw new Error(`numComponents ${l} not correct for length ${o}`);return c}(t),n}function oe(e,t){let cursor=0;return e.push=function(){for(let t=0;t=0?he(r,t):n.indexOf("tan")>=0||n.indexOf("binorm")>=0?ce(r,t):n.indexOf("norm")>=0&&de(r,t)})),e}function pe(e,t,n){return e=e||2,{position:{numComponents:2,data:[(t=t||0)+-1*(e*=.5),(n=n||0)+-1*e,t+1*e,n+-1*e,t+-1*e,n+1*e,t+1*e,n+1*e]},normal:[0,0,1,0,0,1,0,0,1,0,0,1],texcoord:[0,0,1,0,0,1,1,1],indices:[0,1,2,2,1,3]}}function me(e,t,n,r,o){e=e||1,t=t||1,n=n||1,r=r||1,o=o||h();const l=(n+1)*(r+1),c=se(3,l),d=se(3,l),f=se(2,l);for(let o=0;o<=r;o++)for(let l=0;l<=n;l++){const u=l/n,h=o/r;c.push(e*u-.5*e,0,t*h-.5*t),d.push(0,1,0),f.push(u,h)}const m=n+1,v=se(3,n*r*2,Uint16Array);for(let e=0;e 0");r=r||0,l=l||0;const d=(o=o||Math.PI)-r,h=(c=c||2*Math.PI)-l,f=(t+1)*(n+1),m=se(3,f),v=se(3,f),y=se(2,f);for(let o=0;o<=n;o++)for(let c=0;c<=t;c++){const u=c/t,f=o/n,_=h*u+l,T=d*f+r,w=Math.sin(_),S=Math.cos(_),k=Math.sin(T),x=S*k,C=Math.cos(T),A=w*k;m.push(e*x,e*C,e*A),v.push(x,C,A),y.push(1-u,f)}const _=t+1,T=se(3,t*n*2,Uint16Array);for(let e=0;eo?(h=n,d=1,c=t):c=e+l/o*(t-e),-2!==l&&l!==o+2||(c=0,d=0),h-=n/2;for(let e=0;eo?y.push(0,1,0):0===c?y.push(0,0,0):y.push(t*k,x,n*k),_.push(e/r,1-d)}}for(let e=0;e 0");const f=(h=h||1)-(d=d||0),m=2*(o+1)*4,v=se(3,m),y=se(3,m),_=se(2,m);function T(a,b,s){return a+(b-a)*s}function w(t,n,h,m,w,S){for(let k=0;k<=o;k++){const x=n/1,C=k/o,A=2*(x-.5),E=(d+C*f)*Math.PI,s=Math.sin(E),D=Math.cos(E),I=T(e,t,s),j=A*r,P=D*e,O=s*I;v.push(j,P,O);const M=l(c([0,s,D],h),m);y.push(M),_.push(x*w+S,C)}}for(let e=0;e<2;e++){const r=2*(e/1-.5);w(t,e,[1,1,1],[0,0,0],1,0),w(t,e,[0,0,0],[r,0,0],0,0),w(n,e,[1,1,1],[0,0,0],1,0),w(n,e,[0,0,0],[r,0,0],0,1)}const S=se(3,2*o*4,Uint16Array);function k(e,t){for(let n=0;n0&&i!==t){const a=m+(i+1),b=m+i,e=m+i-y,t=m+(i+1)-y;f.push(a,b,e),f.push(a,e,t)}}m+=t+1}return{position:c,normal:d,texcoord:h,indices:f}}function Ce(e){return function(t){return ae(t,e.apply(this,Array.prototype.slice.call(arguments,1)))}}function Ae(e){return function(t){return ie(t,e.apply(null,Array.prototype.slice.call(arguments,1)))}}Ae(Te),Ce(Te),Ae(ye),Ce(ye),Ae(me),Ce(me),Ae(ge),Ce(ge),Ae(be),Ce(be),Ae(pe),Ce(pe),Ae(we),Ce(we),Ae(Se),Ce(Se),Ae(ke),Ce(ke),Ae(xe),Ce(xe);function Ee(e){return!!e.texStorage2D}const De=function(){const e={},t={};return function(n,r){return function(n){const r=n.constructor.name;if(!e[r]){for(const e in n)if("number"==typeof n[e]){const r=t[n[e]];t[n[e]]=r?`${r} | ${e}`:e}e[r]=!0}}(n),t[r]||("number"==typeof r?`0x${r.toString(16)}`:r)}}();new Uint8Array([128,192,255,255]),function(){let e}();const Ie=6406,je=6407,Pe=6408,Oe=6409,Me=6410,Le=6402,Ne=34041,Re=33319,Be=33320,Fe=6403,Ue=36244,Ve=36248,He=36249,ze={};{const e=ze;e[Ie]={numColorComponents:1},e[Oe]={numColorComponents:1},e[Me]={numColorComponents:2},e[je]={numColorComponents:3},e[Pe]={numColorComponents:4},e[Fe]={numColorComponents:1},e[Ue]={numColorComponents:1},e[Re]={numColorComponents:2},e[Be]={numColorComponents:2},e[je]={numColorComponents:3},e[Ve]={numColorComponents:3},e[Pe]={numColorComponents:4},e[He]={numColorComponents:4},e[Le]={numColorComponents:1},e[Ne]={numColorComponents:2}}const qe=I;function $e(e){return"undefined"!=typeof document&&document.getElementById?document.getElementById(e):null}const We=33984,Ge=34962,Ye=34963,Xe=35713,Ke=35714,Qe=35632,Je=35633,Ze=35981,et=35718,tt=35721,nt=35971,it=35382,at=35396,ot=35398,st=35392,ut=35395,lt=5126,ct=5124,ht=5125,ft=3553,pt=34067,mt=32879,gt=35866,vt={};function yt(e,t){return vt[t].bindPoint}function bt(e,t){return function(n){e.uniform1i(t,n)}}function _t(e,t){return function(n){e.uniform1iv(t,n)}}function Tt(e,t){return function(n){e.uniform2iv(t,n)}}function wt(e,t){return function(n){e.uniform3iv(t,n)}}function St(e,t){return function(n){e.uniform4iv(t,n)}}function kt(e,t,n,r){const o=yt(0,t);return Ee(e)?function(t){let l,c;j(0,t)?(l=t,c=null):(l=t.texture,c=t.sampler),e.uniform1i(r,n),e.activeTexture(We+n),e.bindTexture(o,l),e.bindSampler(n,c)}:function(t){e.uniform1i(r,n),e.activeTexture(We+n),e.bindTexture(o,t)}}function xt(e,t,n,r,o){const l=yt(0,t),c=new Int32Array(o);for(let e=0;e{e.callback(`${t}\n${e.errors.join("\n")}`)})),null}function Lt(e,t,n,r){const o=e.createShader(n);return e.shaderSource(o,Ot(t).shaderSource),e.compileShader(o),r.callback||function(e,t,n,r){r=r||qe;const o=e.getShaderParameter(n,Xe);if(!o){const o=e.getShaderInfoLog(n),{lineOffset:l,shaderSource:c}=Ot(e.getShaderSource(n));r(`${function(e,t="",n=0){const r=[...t.matchAll(jt)],o=new Map(r.map(((e,n)=>{const o=parseInt(e[1]),l=r[n+1],c=l?l.index:t.length;return[o-1,t.substring(e.index,c)]})));return e.split("\n").map(((line,e)=>{const t=o.get(e);return`${e+1+n}: ${line}${t?`\n\n^^^ ${t}`:""}`})).join("\n")}(c,o,l)}\nError compiling ${De(e,t)}: ${o}`)}return o}(e,n,o,r.errorCallback)?o:(e.deleteShader(o),null)}function Nt(e,t,n){let r,o,l;if("function"==typeof t&&(n=t,t=void 0),"function"==typeof e)n=e,e=void 0;else if(e&&!Array.isArray(e)){if(e.errorCallback&&e.errors)return e;const t=e;n=t.errorCallback,e=t.attribLocations,r=t.transformFeedbackVaryings,o=t.transformFeedbackMode,l=t.callback}const c=n||qe,d=[],h={errorCallback(e,...t){d.push(e),c(e,...t)},transformFeedbackVaryings:r,transformFeedbackMode:o,callback:l,errors:d};if(e){let n={};Array.isArray(e)?e.forEach((function(e,r){n[e]=t?t[r]:r})):n=e,h.attribLocations=n}return h}const Rt=["VERTEX_SHADER","FRAGMENT_SHADER"];function Bt(e,t){return t.indexOf("frag")>=0?Qe:t.indexOf("vert")>=0?Je:void 0}function Ft(e,t){t.forEach((function(t){e.deleteShader(t)}))}const Ut=(e=0)=>new Promise((t=>setTimeout(t,e)));function Vt(e,t,n,r,o){const l=Nt(n,r,o),c=[],d=[];for(let n=0;ne.getProgramParameter(t,r.COMPLETION_STATUS_KHR):()=>!0;let l=0;do{await Ut(l),l=1e3/60}while(!o(e,t));const c=Ht(e,t,n.errorCallback),d=c?void 0:n.errors.join("\n");if(!c){(n.errorCallback||qe)(d),e.deleteProgram(t),t=null}n.callback(d,t)}(e,f,l),null):Ht(e,f,l.errorCallback)?f:(e.deleteProgram(f),Ft(e,d),null)}function Ht(e,t,n){n=n||qe;const r=e.getProgramParameter(t,Ke);if(!r){n(`Error in program linking: ${e.getProgramInfoLog(t)}`)}return r}function zt(e,t,n,r,o){const l=Nt(n,r,o),c=[];for(let n=0;ns>="0"&&s<="9";function Gt(e,t,n,r){const o=e.split($t).filter((s=>""!==s));let l=0,path="";for(;;){const e=o[l++];path+=e;const c=Wt(e[0]),d=c?parseInt(e):e;c&&(path+=o[l++]);if(l===o.length){n[d]=t;break}{const e=o[l++],t="["===e,c=n[d]||(t?[]:{});n[d]=c,n=c,r[path]=r[path]||function(e){return function(t){Qt(e,t)}}(c),path+=e}}}function Yt(e,t){let n=0;function r(t,r,o){const l=r.name.endsWith("[0]"),c=r.type,d=vt[c];if(!d)throw new Error(`unknown type: 0x${c.toString(16)}`);let h;if(d.bindPoint){const t=n;n+=r.size,h=l?d.arraySetter(e,c,t,o,r.size):d.setter(e,c,t,o,r.size)}else h=d.arraySetter&&l?d.arraySetter(e,o):d.setter(e,o);return h.location=o,h}const o={},l={},c=e.getProgramParameter(t,et);for(let n=0;n{let r;t||(r=nn(e,n)),d(t,r)});const h=zt(e,t,l);return h?nn(e,h):null}const on=4,sn=5123;function un(e,t,n,r,o,l){n=void 0===n?on:n;const c=t.indices,d=t.elementType,h=void 0===r?t.numElements:r;o=void 0===o?0:o,d||c?void 0!==l?e.drawElementsInstanced(n,h,void 0===d?sn:t.elementType,o,l):e.drawElements(n,h,void 0===d?sn:t.elementType,o):void 0!==l?e.drawArraysInstanced(n,o,h,l):e.drawArrays(n,o,h)}const ln=36096,cn=33306,dn={};dn[34041]=cn,dn[6401]=36128,dn[36168]=36128,dn[6402]=ln,dn[33189]=ln,dn[33190]=ln,dn[36012]=ln,dn[35056]=cn,dn[36013]=cn;const hn={};hn[32854]=!0,hn[32855]=!0,hn[36194]=!0,hn[34041]=!0,hn[33189]=!0,hn[6401]=!0,hn[36168]=!0;function fn(canvas,e){e=e||1,e=Math.max(0,e);const t=canvas.clientWidth*e|0,n=canvas.clientHeight*e|0;return(canvas.width!==t||canvas.height!==n)&&(canvas.width=t,canvas.height=n,!0)}},,,,,,,,,,,,,,,,,function(e,t,n){"use strict";e.exports=TypeError},,function(e,t,n){var r=n(491);e.exports=function(object,path,e){var t=null==object?void 0:r(object,path);return void 0===t?e:t}},,,,,function(e,t,n){"use strict";var r=n(252),o=n.n(r),l=n(0),c=n.n(l),d="http://example.com";t.a=function(e,t){if(/^[a-z]+:/i.test(t))return t;/^data:/.test(e)&&(e=c.a.location&&c.a.location.href||"");var n="function"==typeof c.a.URL,r=/^\/\//.test(e),l=!c.a.location&&!/\/\//i.test(e);if(n?e=new c.a.URL(e,c.a.location||d):/\/\//i.test(e)||(e=o.a.buildAbsoluteURL(c.a.location&&c.a.location.href||"",e)),n){var h=new URL(t,e);return l?h.href.slice(18):r?h.href.slice(h.protocol.length):h.href}return o.a.buildAbsoluteURL(e,t)}},,function(e,t,n){"use strict";var r={name:"NoSsr",functional:!0,props:{placeholder:String,placeholderTag:{type:String,default:"div"}},render:function(e,t){var n=t.parent,r=t.slots,o=t.props,l=r(),c=l.default;void 0===c&&(c=[]);var d=l.placeholder;return n._isMounted?c:(n.$once("hook:mounted",(function(){n.$forceUpdate()})),o.placeholderTag&&(o.placeholder||d)?e(o.placeholderTag,{class:["no-ssr-placeholder"]},o.placeholder||d):c.length>0?c.map((function(){return e(!1)})):e(!1))}};e.exports=r},,,,,,,,,,,,,,,,,,function(e,t){var n,r,o,l,c,d,h,f=9e4;n=function(e){return e*f},r=function(e,t){return e*t},o=function(e){return e/f},l=function(e,t){return e/t},c=function(e,t){return n(l(e,t))},d=function(e,t){return r(o(e),t)},h=function(e,t,n){return o(n?e:e-t)},e.exports={ONE_SECOND_IN_TS:f,secondsToVideoTs:n,secondsToAudioTs:r,videoTsToSeconds:o,audioTsToSeconds:l,audioTsToVideoTs:c,videoTsToAudioTs:d,metadataTsToSeconds:h}},function(e,t,n){"use strict";n.d(t,"a",(function(){return j})),n.d(t,"b",(function(){return P}));var r,o=n(2),l=(new Uint8Array([79,112,117,115,72,101,97,100]),function(path){return"string"==typeof path?Object(o.h)(path):path}),c=function(e){e=Object(o.k)(e);for(var t=[],i=0;e.length>i;){var n=e[i],l=0,c=0,d=e[++c];for(c++;128&d;)l=(127&d)<<7,d=e[c],c++;l+=127&d;for(var h=0;h>>0,h=t.subarray(i+4,i+8);if(0===d)break;var f=i+d;if(f>t.length){if(r)break;f=t.length}var data=t.subarray(i+8,f);Object(o.a)(h,n[0])&&(1===n.length?c.push(data):c.push.apply(c,e(data,n.slice(1),r))),i=f}return c},h={EBML:Object(o.k)([26,69,223,163]),DocType:Object(o.k)([66,130]),Segment:Object(o.k)([24,83,128,103]),SegmentInfo:Object(o.k)([21,73,169,102]),Tracks:Object(o.k)([22,84,174,107]),Track:Object(o.k)([174]),TrackNumber:Object(o.k)([215]),DefaultDuration:Object(o.k)([35,227,131]),TrackEntry:Object(o.k)([174]),TrackType:Object(o.k)([131]),FlagDefault:Object(o.k)([136]),CodecID:Object(o.k)([134]),CodecPrivate:Object(o.k)([99,162]),VideoTrack:Object(o.k)([224]),AudioTrack:Object(o.k)([225]),Cluster:Object(o.k)([31,67,182,117]),Timestamp:Object(o.k)([231]),TimestampScale:Object(o.k)([42,215,177]),BlockGroup:Object(o.k)([160]),BlockDuration:Object(o.k)([155]),Block:Object(o.k)([161]),SimpleBlock:Object(o.k)([163])},f=[128,64,32,16,8,4,2,1],m=function(e,t,n,r){void 0===n&&(n=!0),void 0===r&&(r=!1);var l=function(e){for(var t=1,i=0;i=n.length)return n.length;var l=m(n,r,!1);if(Object(o.a)(t.bytes,l.bytes))return r;var c=m(n,r+l.length);return e(t,n,r+c.length+c.value+l.length)},_=function e(t,n){n=function(e){return Array.isArray(e)?e.map((function(p){return v(p)})):[v(e)]}(n),t=Object(o.k)(t);var r=[];if(!n.length)return r;for(var i=0;it.length?t.length:d+c.value,data=t.subarray(d,h);Object(o.a)(n[0],l.bytes)&&(1===n.length?r.push(data):r=r.concat(e(data,n.slice(1)))),i+=l.length+c.length+data.length}return r},T=n(98),w=Object(o.k)([0,0,0,1]),S=Object(o.k)([0,0,1]),k=Object(o.k)([0,0,3]),x=function(e){for(var t=[],i=1;i>1&63),-1!==n.indexOf(h)&&(l=i+d),i+=d+("h264"===t?1:2)}else i++}return e.subarray(0,0)},A={webm:Object(o.k)([119,101,98,109]),matroska:Object(o.k)([109,97,116,114,111,115,107,97]),flac:Object(o.k)([102,76,97,67]),ogg:Object(o.k)([79,103,103,83]),ac3:Object(o.k)([11,119]),riff:Object(o.k)([82,73,70,70]),avi:Object(o.k)([65,86,73]),wav:Object(o.k)([87,65,86,69]),"3gp":Object(o.k)([102,116,121,112,51,103]),mp4:Object(o.k)([102,116,121,112]),fmp4:Object(o.k)([115,116,121,112]),mov:Object(o.k)([102,116,121,112,113,116]),moov:Object(o.k)([109,111,111,118]),moof:Object(o.k)([109,111,111,102])},E={aac:function(e){var t=Object(T.a)(e);return Object(o.a)(e,[255,16],{offset:t,mask:[255,22]})},mp3:function(e){var t=Object(T.a)(e);return Object(o.a)(e,[255,2],{offset:t,mask:[255,6]})},webm:function(e){var t=_(e,[h.EBML,h.DocType])[0];return Object(o.a)(t,A.webm)},mkv:function(e){var t=_(e,[h.EBML,h.DocType])[0];return Object(o.a)(t,A.matroska)},mp4:function(e){return!E["3gp"](e)&&!E.mov(e)&&(!(!Object(o.a)(e,A.mp4,{offset:4})&&!Object(o.a)(e,A.fmp4,{offset:4}))||(!(!Object(o.a)(e,A.moof,{offset:4})&&!Object(o.a)(e,A.moov,{offset:4}))||void 0))},mov:function(e){return Object(o.a)(e,A.mov,{offset:4})},"3gp":function(e){return Object(o.a)(e,A["3gp"],{offset:4})},ac3:function(e){var t=Object(T.a)(e);return Object(o.a)(e,A.ac3,{offset:t})},ts:function(e){if(e.length<189&&e.length>=1)return 71===e[0];for(var i=0;i+1880}},,,,,,,,,,,,,,,,,,,,,function(e,t){var n=Array.isArray;e.exports=n},function(e,t,n){var r=n(223),o=n(494),l=n(495),c=r?r.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":c&&c in Object(e)?o(e):l(e)}},function(e,t,n){var r=n(312),o="object"==typeof self&&self&&self.Object===Object&&self,l=r||o||Function("return this")();e.exports=l},function(e,t){e.exports=function(e){return null!=e&&"object"==typeof e}},function(e,t,n){var r=n(313)(Object,"create");e.exports=r},function(e,t,n){var r=n(515);e.exports=function(e,t){for(var n=e.length;n--;)if(r(e[n][0],t))return n;return-1}},function(e,t,n){var r=n(521);e.exports=function(map,e){var data=map.__data__;return r(e)?data["string"==typeof e?"string":"hash"]:data.map}},,function(e,t,n){"use strict";function r(object,e){return void 0===e&&(e=Object),e&&"function"==typeof e.freeze?e.freeze(object):object}var o=r({HTML:"text/html",isHTML:function(e){return e===o.HTML},XML_APPLICATION:"application/xml",XML_TEXT:"text/xml",XML_XHTML_APPLICATION:"application/xhtml+xml",XML_SVG_IMAGE:"image/svg+xml"}),l=r({HTML:"http://www.w3.org/1999/xhtml",isHTML:function(e){return e===l.HTML},SVG:"http://www.w3.org/2000/svg",XML:"http://www.w3.org/XML/1998/namespace",XMLNS:"http://www.w3.org/2000/xmlns/"});t.assign=function(e,source){if(null===e||"object"!=typeof e)throw new TypeError("target is not an object");for(var t in source)Object.prototype.hasOwnProperty.call(source,t)&&(e[t]=source[t]);return e},t.find=function(e,t,n){if(void 0===n&&(n=Array.prototype),e&&"function"==typeof n.find)return n.find.call(e,t);for(var i=0;i-1e3&&e<1e3||D.call(/e/,t))return t;var n=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if("number"==typeof e){var r=e<0?-O(-e):O(e);if(r!==e){var o=String(r),l=x.call(t,o.length+1);return C.call(o,n,"$&_")+"."+C.call(C.call(l,/([0-9]{3})/g,"$&_"),/_$/,"")}}return C.call(t,n,"$&_")}var H=n(643),z=H.custom,$=Z(z)?z:null,W={__proto__:null,double:'"',single:"'"},G={__proto__:null,double:/(["\\])/g,single:/(['\\])/g};function Y(s,e,t){var style=t.quoteStyle||e,n=W[style];return n+s+n}function X(s){return C.call(String(s),/"/g,""")}function K(e){return!B||!("object"==typeof e&&(B in e||void 0!==e[B]))}function Q(e){return"[object Array]"===ne(e)&&K(e)}function J(e){return"[object RegExp]"===ne(e)&&K(e)}function Z(e){if(R)return e&&"object"==typeof e&&e instanceof Symbol;if("symbol"==typeof e)return!0;if(!e||"object"!=typeof e||!N)return!1;try{return N.call(e),!0}catch(e){}return!1}e.exports=function e(n,r,o,d){var h=r||{};if(te(h,"quoteStyle")&&!te(W,h.quoteStyle))throw new TypeError('option "quoteStyle" must be "single" or "double"');if(te(h,"maxStringLength")&&("number"==typeof h.maxStringLength?h.maxStringLength<0&&h.maxStringLength!==1/0:null!==h.maxStringLength))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var w=!te(h,"customInspect")||h.customInspect;if("boolean"!=typeof w&&"symbol"!==w)throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(te(h,"indent")&&null!==h.indent&&"\t"!==h.indent&&!(parseInt(h.indent,10)===h.indent&&h.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(te(h,"numericSeparator")&&"boolean"!=typeof h.numericSeparator)throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var A=h.numericSeparator;if(void 0===n)return"undefined";if(null===n)return"null";if("boolean"==typeof n)return n?"true":"false";if("string"==typeof n)return re(n,h);if("number"==typeof n){if(0===n)return 1/0/n>0?"0":"-0";var D=String(n);return A?V(n,D):D}if("bigint"==typeof n){var O=String(n)+"n";return A?V(n,O):O}var L=void 0===h.depth?5:h.depth;if(void 0===o&&(o=0),o>=L&&L>0&&"object"==typeof n)return Q(n)?"[Array]":"[Object]";var z=function(e,t){var n;if("\t"===e.indent)n="\t";else{if(!("number"==typeof e.indent&&e.indent>0))return null;n=j.call(Array(e.indent+1)," ")}return{base:n,prev:j.call(Array(t+1),n)}}(h,o);if(void 0===d)d=[];else if(ie(d,n)>=0)return"[Circular]";function G(t,n,r){if(n&&(d=P.call(d)).push(n),r){var l={depth:h.depth};return te(h,"quoteStyle")&&(l.quoteStyle=h.quoteStyle),e(t,l,o+1,d)}return e(t,h,o+1,d)}if("function"==typeof n&&!J(n)){var ee=function(e){if(e.name)return e.name;var t=k.call(S.call(e),/^function\s*([\w$]+)/);if(t)return t[1];return null}(n),ae=ce(n,G);return"[Function"+(ee?": "+ee:" (anonymous)")+"]"+(ae.length>0?" { "+j.call(ae,", ")+" }":"")}if(Z(n)){var de=R?C.call(String(n),/^(Symbol\(.*\))_[^)]*$/,"$1"):N.call(n);return"object"!=typeof n||R?de:oe(de)}if(function(e){if(!e||"object"!=typeof e)return!1;if("undefined"!=typeof HTMLElement&&e instanceof HTMLElement)return!0;return"string"==typeof e.nodeName&&"function"==typeof e.getAttribute}(n)){for(var s="<"+E.call(String(n.nodeName)),he=n.attributes||[],i=0;i"}if(Q(n)){if(0===n.length)return"[]";var fe=ce(n,G);return z&&!function(e){for(var i=0;i=0)return!1;return!0}(fe)?"["+le(fe,z)+"]":"[ "+j.call(fe,", ")+" ]"}if(function(e){return"[object Error]"===ne(e)&&K(e)}(n)){var pe=ce(n,G);return"cause"in Error.prototype||!("cause"in n)||F.call(n,"cause")?0===pe.length?"["+String(n)+"]":"{ ["+String(n)+"] "+j.call(pe,", ")+" }":"{ ["+String(n)+"] "+j.call(I.call("[cause]: "+G(n.cause),pe),", ")+" }"}if("object"==typeof n&&w){if($&&"function"==typeof n[$]&&H)return H(n,{depth:L-o});if("symbol"!==w&&"function"==typeof n.inspect)return n.inspect()}if(function(e){if(!l||!e||"object"!=typeof e)return!1;try{l.call(e);try{f.call(e)}catch(e){return!0}return e instanceof Map}catch(e){}return!1}(n)){var me=[];return c&&c.call(n,(function(e,t){me.push(G(t,n,!0)+" => "+G(e,n))})),ue("Map",l.call(n),me,z)}if(function(e){if(!f||!e||"object"!=typeof e)return!1;try{f.call(e);try{l.call(e)}catch(e){return!0}return e instanceof Set}catch(e){}return!1}(n)){var ge=[];return m&&m.call(n,(function(e){ge.push(G(e,n))})),ue("Set",f.call(n),ge,z)}if(function(e){if(!v||!e||"object"!=typeof e)return!1;try{v.call(e,v);try{y.call(e,y)}catch(e){return!0}return e instanceof WeakMap}catch(e){}return!1}(n))return se("WeakMap");if(function(e){if(!y||!e||"object"!=typeof e)return!1;try{y.call(e,y);try{v.call(e,v)}catch(e){return!0}return e instanceof WeakSet}catch(e){}return!1}(n))return se("WeakSet");if(function(e){if(!_||!e||"object"!=typeof e)return!1;try{return _.call(e),!0}catch(e){}return!1}(n))return se("WeakRef");if(function(e){return"[object Number]"===ne(e)&&K(e)}(n))return oe(G(Number(n)));if(function(e){if(!e||"object"!=typeof e||!M)return!1;try{return M.call(e),!0}catch(e){}return!1}(n))return oe(G(M.call(n)));if(function(e){return"[object Boolean]"===ne(e)&&K(e)}(n))return oe(T.call(n));if(function(e){return"[object String]"===ne(e)&&K(e)}(n))return oe(G(String(n)));if("undefined"!=typeof window&&n===window)return"{ [object Window] }";if("undefined"!=typeof globalThis&&n===globalThis||void 0!==t&&n===t)return"{ [object globalThis] }";if(!function(e){return"[object Date]"===ne(e)&&K(e)}(n)&&!J(n)){var ve=ce(n,G),ye=U?U(n)===Object.prototype:n instanceof Object||n.constructor===Object,be=n instanceof Object?"":"null prototype",_e=!ye&&B&&Object(n)===n&&B in n?x.call(ne(n),8,-1):be?"Object":"",Te=(ye||"function"!=typeof n.constructor?"":n.constructor.name?n.constructor.name+" ":"")+(_e||be?"["+j.call(I.call([],_e||[],be||[]),": ")+"] ":"");return 0===ve.length?Te+"{}":z?Te+"{"+le(ve,z)+"}":Te+"{ "+j.call(ve,", ")+" }"}return String(n)};var ee=Object.prototype.hasOwnProperty||function(e){return e in this};function te(e,t){return ee.call(e,t)}function ne(e){return w.call(e)}function ie(e,t){if(e.indexOf)return e.indexOf(t);for(var i=0,n=e.length;it.maxStringLength){var n=e.length-t.maxStringLength,r="... "+n+" more character"+(n>1?"s":"");return re(x.call(e,0,t.maxStringLength),t)+r}var o=G[t.quoteStyle||"single"];return o.lastIndex=0,Y(C.call(C.call(e,o,"\\$1"),/[\x00-\x1f]/g,ae),"single",t)}function ae(e){var t=e.charCodeAt(0),n={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return n?"\\"+n:"\\x"+(t<16?"0":"")+A.call(t.toString(16))}function oe(e){return"Object("+e+")"}function se(e){return e+" { ? }"}function ue(e,t,n,r){return e+" ("+t+") {"+(r?le(n,r):j.call(n,", "))+"}"}function le(e,t){if(0===e.length)return"";var n="\n"+t.prev+t.base;return n+j.call(e,","+n)+"\n"+t.prev}function ce(e,t){var n=Q(e),r=[];if(n){r.length=e.length;for(var i=0;i0&&(y[r-1].end0?h:0)}if(l.a.console){var f=l.a.console[n];f||"debug"!==n||(f=l.a.console.info||l.a.console.log),f&&c&&d.test(n)&&f[Array.isArray(o)?"apply":"call"](l.a.console,o)}}}(t,o),o.createLogger=function(n){return e(t+": "+n)},o.levels={all:"debug|log|warn|error",off:"",debug:"debug|log|warn|error",info:"log|warn|error",warn:"warn|error",error:"error",DEFAULT:r},o.level=function(e){if("string"==typeof e){if(!o.levels.hasOwnProperty(e))throw new Error('"'+e+'" in not a valid log level');r=e}return r},(o.history=function(){return te?[].concat(te):[]}).filter=function(e){return(te||[]).filter((function(t){return new RegExp(".*"+e+".*").test(t[0])}))},o.history.clear=function(){te&&(te.length=0)},o.history.disable=function(){null!==te&&(te.length=0,te=null)},o.history.enable=function(){null===te&&(te=[])},o.error=function(){for(var e=arguments.length,t=new Array(e),o=0;o1?t-1:0),r=1;r=0)throw new Error("class has illegal whitespace characters")}function Le(){return d.a===l.a.document}function Ne(e){return ue(e)&&1===e.nodeType}function Re(){try{return l.a.parent!==l.a.self}catch(e){return!0}}function Be(e){return function(t,n){if(!Oe(t))return d.a[e](null);Oe(n)&&(n=d.a.querySelector(n));var r=Ne(n)?n:d.a;return r[e]&&r[e](t)}}function Fe(e,t,n,content){void 0===e&&(e="div"),void 0===t&&(t={}),void 0===n&&(n={});var r=d.a.createElement(e);return Object.getOwnPropertyNames(t).forEach((function(e){var n=t[e];-1!==e.indexOf("aria-")||"role"===e||"type"===e?(ne.warn("Setting attributes in the second argument of createEl()\nhas been deprecated. Use the third argument instead.\ncreateEl(type, properties, attributes). Attempting to set "+e+" to "+n+"."),r.setAttribute(e,n)):"textContent"===e?Ue(r,n):r[e]===n&&"tabIndex"!==e||(r[e]=n)})),Object.getOwnPropertyNames(n).forEach((function(e){r.setAttribute(e,n[e])})),content&&ot(r,content),r}function Ue(e,text){return void 0===e.textContent?e.innerText=text:e.textContent=text,e}function Ve(e,t){t.firstChild?t.insertBefore(e,t.firstChild):t.appendChild(e)}function He(element,e){return Me(e),element.classList?element.classList.contains(e):(t=e,new RegExp("(^|\\s)"+t+"($|\\s)")).test(element.className);var t}function ze(element,e){return element.classList?element.classList.add(e):He(element,e)||(element.className=(element.className+" "+e).trim()),element}function qe(element,e){return element?(element.classList?element.classList.remove(e):(Me(e),element.className=element.className.split(/\s+/).filter((function(t){return t!==e})).join(" ")),element):(ne.warn("removeClass was called with an element that doesn't exist"),null)}function $e(element,e,t){var n=He(element,e);if("function"==typeof t&&(t=t(element,e)),"boolean"!=typeof t&&(t=!n),t!==n)return t?ze(element,e):qe(element,e),element}function We(e,t){Object.getOwnPropertyNames(t).forEach((function(n){var r=t[n];null==r||!1===r?e.removeAttribute(n):e.setAttribute(n,!0===r?"":r)}))}function Ge(e){var t={},n=",autoplay,controls,playsinline,loop,muted,default,defaultMuted,";if(e&&e.attributes&&e.attributes.length>0)for(var r=e.attributes,i=r.length-1;i>=0;i--){var o=r[i].name,l=r[i].value;"boolean"!=typeof e[o]&&-1===n.indexOf(","+o+",")||(l=null!==l),t[o]=l}return t}function Ye(e,t){return e.getAttribute(t)}function Xe(e,t,n){e.setAttribute(t,n)}function Ke(e,t){e.removeAttribute(t)}function Qe(){d.a.body.focus(),d.a.onselectstart=function(){return!1}}function Je(){d.a.onselectstart=function(){return!0}}function Ze(e){if(e&&e.getBoundingClientRect&&e.parentNode){var rect=e.getBoundingClientRect(),t={};return["bottom","height","left","right","top","width"].forEach((function(e){void 0!==rect[e]&&(t[e]=rect[e])})),t.height||(t.height=parseFloat(ce(e,"height"))),t.width||(t.width=parseFloat(ce(e,"width"))),t}}function et(e){if(!e||e&&!e.offsetParent)return{left:0,top:0,width:0,height:0};for(var t=e.offsetWidth,n=e.offsetHeight,r=0,o=0;e.offsetParent&&e!==d.a[Q.fullscreenElement];)r+=e.offsetLeft,o+=e.offsetTop,e=e.offsetParent;return{left:r,top:o,width:t,height:n}}function tt(e,t){var n={x:0,y:0};if(Ie)for(var r=e;r&&"html"!==r.nodeName.toLowerCase();){var o=ce(r,"transform");if(/^matrix/.test(o)){var l=o.slice(7,-1).split(/,\s/).map(Number);n.x+=l[4],n.y+=l[5]}else if(/^matrix3d/.test(o)){var c=o.slice(9,-1).split(/,\s/).map(Number);n.x+=c[12],n.y+=c[13]}r=r.parentNode}var d={},h=et(t.target),f=et(e),m=f.width,v=f.height,y=t.offsetY-(f.top-h.top),_=t.offsetX-(f.left-h.left);return t.changedTouches&&(_=t.changedTouches[0].pageX-f.left,y=t.changedTouches[0].pageY+f.top,Ie&&(_-=n.x,y-=n.y)),d.y=1-Math.max(0,Math.min(1,y/v)),d.x=Math.max(0,Math.min(1,_/m)),d}function nt(e){return ue(e)&&3===e.nodeType}function it(e){for(;e.firstChild;)e.removeChild(e.firstChild);return e}function at(content){return"function"==typeof content&&(content=content()),(Array.isArray(content)?content:[content]).map((function(e){return"function"==typeof e&&(e=e()),Ne(e)||nt(e)?e:"string"==typeof e&&/\S/.test(e)?d.a.createTextNode(e):void 0})).filter((function(e){return e}))}function ot(e,content){return at(content).forEach((function(t){return e.appendChild(t)})),e}function st(e,content){return ot(it(e),content)}function ut(e){return void 0===e.button&&void 0===e.buttons||(0===e.button&&void 0===e.buttons||("mouseup"===e.type&&0===e.button&&0===e.buttons||0===e.button&&1===e.buttons))}var lt,ct=Be("querySelector"),ht=Be("querySelectorAll"),ft=Object.freeze({__proto__:null,isReal:Le,isEl:Ne,isInFrame:Re,createEl:Fe,textContent:Ue,prependTo:Ve,hasClass:He,addClass:ze,removeClass:qe,toggleClass:$e,setAttributes:We,getAttributes:Ge,getAttribute:Ye,setAttribute:Xe,removeAttribute:Ke,blockTextSelection:Qe,unblockTextSelection:Je,getBoundingClientRect:Ze,findPosition:et,getPointerPosition:tt,isTextNode:nt,emptyEl:it,normalizeContent:at,appendContent:ot,insertContent:st,isSingleLeftClick:ut,$:ct,$$:ht}),pt=!1,mt=function(){if(!1!==lt.options.autoSetup){var e=Array.prototype.slice.call(d.a.getElementsByTagName("video")),t=Array.prototype.slice.call(d.a.getElementsByTagName("audio")),n=Array.prototype.slice.call(d.a.getElementsByTagName("video-js")),r=e.concat(t,n);if(r&&r.length>0)for(var i=0,o=r.length;i-1&&(r={passive:!0}),e.addEventListener(t,data.dispatcher,r)}else e.attachEvent&&e.attachEvent("on"+t,data.dispatcher)}function jt(e,t,n){if(kt.has(e)){var data=kt.get(e);if(data.handlers){if(Array.isArray(t))return Ct(jt,e,t,n);var r=function(e,t){data.handlers[t]=[],xt(e,t)};if(void 0!==t){var o=data.handlers[t];if(o)if(n){if(n.guid)for(var l=0;l=t&&(e.apply(void 0,arguments),n=r)}},Ut=function(){};Ut.prototype.allowedEvents_={},Ut.prototype.on=function(e,t){var n=this.addEventListener;this.addEventListener=function(){},It(this,e,t),this.addEventListener=n},Ut.prototype.addEventListener=Ut.prototype.on,Ut.prototype.off=function(e,t){jt(this,e,t)},Ut.prototype.removeEventListener=Ut.prototype.off,Ut.prototype.one=function(e,t){var n=this.addEventListener;this.addEventListener=function(){},Ot(this,e,t),this.addEventListener=n},Ut.prototype.any=function(e,t){var n=this.addEventListener;this.addEventListener=function(){},Mt(this,e,t),this.addEventListener=n},Ut.prototype.trigger=function(e){var t=e.type||e;"string"==typeof e&&(e={type:t}),e=At(e),this.allowedEvents_[t]&&this["on"+t]&&this["on"+t](e),Pt(this,e)},Ut.prototype.dispatchEvent=Ut.prototype.trigger,Ut.prototype.queueTrigger=function(e){var t=this;Lt||(Lt=new Map);var n=e.type||e,map=Lt.get(this);map||(map=new Map,Lt.set(this,map));var r=map.get(n);map.delete(n),l.a.clearTimeout(r);var o=l.a.setTimeout((function(){map.delete(n),0===map.size&&(map=null,Lt.delete(t)),t.trigger(e)}),0);map.set(n,o)};var Vt=function(e){return"function"==typeof e.name?e.name():"string"==typeof e.name?e.name:e.name_?e.name_:e.constructor&&e.constructor.name?e.constructor.name:typeof e},Ht=function(object){return object instanceof Ut||!!object.eventBusEl_&&["on","one","off","trigger"].every((function(e){return"function"==typeof object[e]}))},zt=function(e){return"string"==typeof e&&/\S/.test(e)||Array.isArray(e)&&!!e.length},qt=function(e,t,n){if(!e||!e.nodeName&&!Ht(e))throw new Error("Invalid target for "+Vt(t)+"#"+n+"; must be a DOM node or evented object.")},$t=function(e,t,n){if(!zt(e))throw new Error("Invalid event type for "+Vt(t)+"#"+n+"; must be a non-empty string or array.")},Wt=function(e,t,n){if("function"!=typeof e)throw new Error("Invalid listener for "+Vt(t)+"#"+n+"; must be a function.")},Gt=function(e,t,n){var r,o,l,c=t.length<3||t[0]===e||t[0]===e.eventBusEl_;return c?(r=e.eventBusEl_,t.length>=3&&t.shift(),o=t[0],l=t[1]):(r=t[0],o=t[1],l=t[2]),qt(r,e,n),$t(o,e,n),Wt(l,e,n),{isTargetingSelf:c,target:r,type:o,listener:l=Bt(e,l)}},Yt=function(e,t,n,r){qt(e,e,t),e.nodeName?Nt[t](e,n,r):e[t](n,r)},Xt={on:function(){for(var e=this,t=arguments.length,n=new Array(t),r=0;r=0;i--)this.children_[i].dispose&&this.children_[i].dispose();this.children_=null,this.childIndex_=null,this.childNameIndex_=null,this.parentComponent_=null,this.el_&&(this.el_.parentNode&&(e.restoreEl?this.el_.parentNode.replaceChild(e.restoreEl,this.el_):this.el_.parentNode.removeChild(this.el_)),this.el_=null),this.player_=null}},t.isDisposed=function(){return Boolean(this.isDisposed_)},t.player=function(){return this.player_},t.options=function(e){return e?(this.options_=tn(this.options_,e),this.options_):this.options_},t.el=function(){return this.el_},t.createEl=function(e,t,n){return Fe(e,t,n)},t.localize=function(e,t,n){void 0===n&&(n=e);var code=this.player_.language&&this.player_.language(),r=this.player_.languages&&this.player_.languages(),o=r&&r[code],l=code&&code.split("-")[0],c=r&&r[l],d=n;return o&&o[e]?d=o[e]:c&&c[e]&&(d=c[e]),t&&(d=d.replace(/\{(\d+)\}/g,(function(e,n){var r=t[n-1],o=r;return void 0===r&&(o=e),o}))),d},t.handleLanguagechange=function(){},t.contentEl=function(){return this.contentEl_||this.el_},t.id=function(){return this.id_},t.name=function(){return this.name_},t.children=function(){return this.children_},t.getChildById=function(e){return this.childIndex_[e]},t.getChild=function(e){if(e)return this.childNameIndex_[e]},t.getDescendant=function(){for(var e=arguments.length,t=new Array(e),n=0;n=0;i--)if(this.children_[i]===component){e=!0,this.children_.splice(i,1);break}if(e){component.parentComponent_=null,this.childIndex_[component.id()]=null,this.childNameIndex_[en(component.name())]=null,this.childNameIndex_[Zt(component.name())]=null;var t=component.el();t&&t.parentNode===this.contentEl()&&this.contentEl().removeChild(component.el())}}},t.initChildren=function(){var t=this,n=this.options_.children;if(n){var r,o=this.options_,l=e.getComponent("Tech");(r=Array.isArray(n)?n:Object.keys(n)).concat(Object.keys(this.options_).filter((function(e){return!r.some((function(t){return"string"==typeof t?e===t:e===t.name}))}))).map((function(e){var r,o;return"string"==typeof e?o=n[r=e]||t.options_[r]||{}:(r=e.name,o=e),{name:r,opts:o}})).filter((function(t){var n=e.getComponent(t.opts.componentClass||en(t.name));return n&&!l.isTech(n)})).forEach((function(e){var n=e.name,r=e.opts;if(void 0!==o[n]&&(r=o[n]),!1!==r){!0===r&&(r={}),r.playerOptions=t.options_.playerOptions;var l=t.addChild(n,r);l&&(t[n]=l)}}))}},t.buildCSSClass=function(){return""},t.ready=function(e,t){if(void 0===t&&(t=!1),e)return this.isReady_?void(t?e.call(this):this.setTimeout(e,1)):(this.readyQueue_=this.readyQueue_||[],void this.readyQueue_.push(e))},t.triggerReady=function(){this.isReady_=!0,this.setTimeout((function(){var e=this.readyQueue_;this.readyQueue_=[],e&&e.length>0&&e.forEach((function(e){e.call(this)}),this),this.trigger("ready")}),1)},t.$=function(e,t){return ct(e,t||this.contentEl())},t.$$=function(e,t){return ht(e,t||this.contentEl())},t.hasClass=function(e){return He(this.el_,e)},t.addClass=function(e){ze(this.el_,e)},t.removeClass=function(e){qe(this.el_,e)},t.toggleClass=function(e,t){$e(this.el_,e,t)},t.show=function(){this.removeClass("vjs-hidden")},t.hide=function(){this.addClass("vjs-hidden")},t.lockShowing=function(){this.addClass("vjs-lock-showing")},t.unlockShowing=function(){this.removeClass("vjs-lock-showing")},t.getAttribute=function(e){return Ye(this.el_,e)},t.setAttribute=function(e,t){Xe(this.el_,e,t)},t.removeAttribute=function(e){Ke(this.el_,e)},t.width=function(e,t){return this.dimension("width",e,t)},t.height=function(e,t){return this.dimension("height",e,t)},t.dimensions=function(e,t){this.width(e,!0),this.height(t)},t.dimension=function(e,t,n){if(void 0!==t)return null!==t&&t==t||(t=0),-1!==(""+t).indexOf("%")||-1!==(""+t).indexOf("px")?this.el_.style[e]=t:this.el_.style[e]="auto"===t?"":t+"px",void(n||this.trigger("componentresize"));if(!this.el_)return 0;var r=this.el_.style[e],o=r.indexOf("px");return-1!==o?parseInt(r.slice(0,o),10):parseInt(this.el_["offset"+en(e)],10)},t.currentDimension=function(e){var t=0;if("width"!==e&&"height"!==e)throw new Error("currentDimension only accepts width or height value");if(t=ce(this.el_,e),0===(t=parseFloat(t))||isNaN(t)){var n="offset"+en(e);t=this.el_[n]}return t},t.currentDimensions=function(){return{width:this.currentDimension("width"),height:this.currentDimension("height")}},t.currentWidth=function(){return this.currentDimension("width")},t.currentHeight=function(){return this.currentDimension("height")},t.focus=function(){this.el_.focus()},t.blur=function(){this.el_.blur()},t.handleKeyDown=function(e){this.player_&&(v.a.isEventKey(e,"Tab")||e.stopPropagation(),this.player_.handleKeyDown(e))},t.handleKeyPress=function(e){this.handleKeyDown(e)},t.emitTapEvents=function(){var e,t=0,n=null;this.on("touchstart",(function(r){1===r.touches.length&&(n={pageX:r.touches[0].pageX,pageY:r.touches[0].pageY},t=l.a.performance.now(),e=!0)})),this.on("touchmove",(function(t){if(t.touches.length>1)e=!1;else if(n){var r=t.touches[0].pageX-n.pageX,o=t.touches[0].pageY-n.pageY;Math.sqrt(r*r+o*o)>10&&(e=!1)}}));var r=function(){e=!1};this.on("touchleave",r),this.on("touchcancel",r),this.on("touchend",(function(r){(n=null,!0===e)&&(l.a.performance.now()-t<200&&(r.preventDefault(),this.trigger("tap")))}))},t.enableTouchActivity=function(){if(this.player()&&this.player().reportUserActivity){var e,t=Bt(this.player(),this.player().reportUserActivity);this.on("touchstart",(function(){t(),this.clearInterval(e),e=this.setInterval(t,250)}));var n=function(n){t(),this.clearInterval(e)};this.on("touchmove",t),this.on("touchend",n),this.on("touchcancel",n)}},t.setTimeout=function(e,t){var n,r=this;return e=Bt(this,e),this.clearTimersOnDispose_(),n=l.a.setTimeout((function(){r.setTimeoutIds_.has(n)&&r.setTimeoutIds_.delete(n),e()}),t),this.setTimeoutIds_.add(n),n},t.clearTimeout=function(e){return this.setTimeoutIds_.has(e)&&(this.setTimeoutIds_.delete(e),l.a.clearTimeout(e)),e},t.setInterval=function(e,t){e=Bt(this,e),this.clearTimersOnDispose_();var n=l.a.setInterval(e,t);return this.setIntervalIds_.add(n),n},t.clearInterval=function(e){return this.setIntervalIds_.has(e)&&(this.setIntervalIds_.delete(e),l.a.clearInterval(e)),e},t.requestAnimationFrame=function(e){var t,n=this;return this.supportsRaf_?(this.clearTimersOnDispose_(),e=Bt(this,e),t=l.a.requestAnimationFrame((function(){n.rafIds_.has(t)&&n.rafIds_.delete(t),e()})),this.rafIds_.add(t),t):this.setTimeout(e,1e3/60)},t.requestNamedAnimationFrame=function(e,t){var n=this;if(!this.namedRafs_.has(e)){this.clearTimersOnDispose_(),t=Bt(this,t);var r=this.requestAnimationFrame((function(){t(),n.namedRafs_.has(e)&&n.namedRafs_.delete(e)}));return this.namedRafs_.set(e,r),e}},t.cancelNamedAnimationFrame=function(e){this.namedRafs_.has(e)&&(this.cancelAnimationFrame(this.namedRafs_.get(e)),this.namedRafs_.delete(e))},t.cancelAnimationFrame=function(e){return this.supportsRaf_?(this.rafIds_.has(e)&&(this.rafIds_.delete(e),l.a.cancelAnimationFrame(e)),e):this.clearTimeout(e)},t.clearTimersOnDispose_=function(){var e=this;this.clearingTimersOnDispose_||(this.clearingTimersOnDispose_=!0,this.one("dispose",(function(){[["namedRafs_","cancelNamedAnimationFrame"],["rafIds_","cancelAnimationFrame"],["setTimeoutIds_","clearTimeout"],["setIntervalIds_","clearInterval"]].forEach((function(t){var n=t[0],r=t[1];e[n].forEach((function(t,n){return e[r](n)}))})),e.clearingTimersOnDispose_=!1})))},e.registerComponent=function(t,n){if("string"!=typeof t||!t)throw new Error('Illegal component name, "'+t+'"; must be a non-empty string.');var r,o=e.getComponent("Tech"),l=o&&o.isTech(n),c=e===n||e.prototype.isPrototypeOf(n.prototype);if(l||!c)throw r=l?"techs must be registered using Tech.registerTech()":"must be a Component subclass",new Error('Illegal component, "'+t+'"; '+r+".");t=en(t),e.components_||(e.components_={});var d=e.getComponent("Player");if("Player"===t&&d&&d.players){var h=d.players,f=Object.keys(h);if(h&&f.length>0&&f.map((function(e){return h[e]})).every(Boolean))throw new Error("Can not register Player component after player has been created.")}return e.components_[t]=n,e.components_[Zt(t)]=n,n},e.getComponent=function(t){if(t&&e.components_)return e.components_[t]},e}();function un(e,t,n,r){return function(e,t,n){if("number"!=typeof t||t<0||t>n)throw new Error("Failed to execute '"+e+"' on 'TimeRanges': The index provided ("+t+") is non-numeric or out of bounds (0-"+n+").")}(e,r,n.length-1),n[r][t]}function ln(e){var t;return t=void 0===e||0===e.length?{length:0,start:function(){throw new Error("This TimeRanges object is empty")},end:function(){throw new Error("This TimeRanges object is empty")}}:{length:e.length,start:un.bind(null,"start",0,e),end:un.bind(null,"end",1,e)},l.a.Symbol&&l.a.Symbol.iterator&&(t[l.a.Symbol.iterator]=function(){return(e||[]).values()}),t}function cn(e,t){return Array.isArray(e)?ln(e):void 0===e||void 0===t?ln():ln([[e,t]])}function dn(e,t){var n,r,o=0;if(!t)return 0;e&&e.length||(e=cn(0,0));for(var i=0;it&&(r=t),o+=r-n;return o/t}function hn(e){if(e instanceof hn)return e;"number"==typeof e?this.code=e:"string"==typeof e?this.message=e:ue(e)&&("number"==typeof e.code&&(this.code=e.code),se(this,e)),this.message||(this.message=hn.defaultMessages[this.code]||"")}sn.prototype.supportsRaf_="function"==typeof l.a.requestAnimationFrame&&"function"==typeof l.a.cancelAnimationFrame,sn.registerComponent("Component",sn),hn.prototype.code=0,hn.prototype.message="",hn.prototype.status=null,hn.errorTypes=["MEDIA_ERR_CUSTOM","MEDIA_ERR_ABORTED","MEDIA_ERR_NETWORK","MEDIA_ERR_DECODE","MEDIA_ERR_SRC_NOT_SUPPORTED","MEDIA_ERR_ENCRYPTED"],hn.defaultMessages={1:"You aborted the media playback",2:"A network error caused the media download to fail part-way.",3:"The media playback was aborted due to a corruption problem or because the media used features your browser did not support.",4:"The media could not be loaded, either because the server or network failed or because the format is not supported.",5:"The media is encrypted and we do not have the keys to decrypt it."};for(var fn=0;fn=0;i--)if(t[i].enabled){Sn(t,t[i]);break}return(n=e.call(this,t)||this).changing_=!1,n}w()(t,e);var n=t.prototype;return n.addTrack=function(track){var t=this;track.enabled&&Sn(this,track),e.prototype.addTrack.call(this,track),track.addEventListener&&(track.enabledChange_=function(){t.changing_||(t.changing_=!0,Sn(t,track),t.changing_=!1,t.trigger("change"))},track.addEventListener("enabledchange",track.enabledChange_))},n.removeTrack=function(t){e.prototype.removeTrack.call(this,t),t.removeEventListener&&t.enabledChange_&&(t.removeEventListener("enabledchange",t.enabledChange_),t.enabledChange_=null)},t}(Tn),xn=function(e,track){for(var i=0;i=0;i--)if(t[i].selected){xn(t,t[i]);break}return(n=e.call(this,t)||this).changing_=!1,Object.defineProperty(_()(n),"selectedIndex",{get:function(){for(var e=0;e0&&(l.a.console&&l.a.console.groupCollapsed&&l.a.console.groupCollapsed("Text Track parsing errors for "+track.src),n.forEach((function(e){return ne.error(e)})),l.a.console&&l.a.console.groupEnd&&l.a.console.groupEnd()),t.flush()},Vn=function(e,track){var t={uri:e},n=Bn(e);n&&(t.cors=n);var r="use-credentials"===track.tech_.crossOrigin();r&&(t.withCredentials=r),C()(t,Bt(this,(function(e,t,n){if(e)return ne.error(e,t);track.loaded_=!0,"function"!=typeof l.a.WebVTT?track.tech_&&track.tech_.any(["vttjsloaded","vttjserror"],(function(e){if("vttjserror"!==e.type)return Un(n,track);ne.error("vttjs failed to load, stopping trying to process "+track.src)})):Un(n,track)})))},Hn=function(e){function t(t){var n;if(void 0===t&&(t={}),!t.tech)throw new Error("A tech was not provided.");var r=tn(t,{kind:Pn[t.kind]||"subtitles",language:t.language||t.srclang||""}),o=On[r.mode]||"disabled",l=r.default;"metadata"!==r.kind&&"chapters"!==r.kind||(o="hidden"),(n=e.call(this,r)||this).tech_=r.tech,n.cues_=[],n.activeCues_=[],n.preload_=!1!==n.tech_.preloadTextTracks;var c=new Dn(n.cues_),d=new Dn(n.activeCues_),h=!1;n.timeupdateHandler=Bt(_()(n),(function(e){void 0===e&&(e={}),this.tech_.isDisposed()||(this.tech_.isReady_?(this.activeCues=this.activeCues,h&&(this.trigger("cuechange"),h=!1),"timeupdate"!==e.type&&(this.rvf_=this.tech_.requestVideoFrameCallback(this.timeupdateHandler))):"timeupdate"!==e.type&&(this.rvf_=this.tech_.requestVideoFrameCallback(this.timeupdateHandler)))}));return n.tech_.one("dispose",(function(){n.stopTracking()})),"disabled"!==o&&n.startTracking(),Object.defineProperties(_()(n),{default:{get:function(){return l},set:function(){}},mode:{get:function(){return o},set:function(e){On[e]&&o!==e&&(o=e,this.preload_||"disabled"===o||0!==this.cues.length||Vn(this.src,this),this.stopTracking(),"disabled"!==o&&this.startTracking(),this.trigger("modechange"))}},cues:{get:function(){return this.loaded_?c:null},set:function(){}},activeCues:{get:function(){if(!this.loaded_)return null;if(0===this.cues.length)return d;for(var e=this.tech_.currentTime(),t=[],i=0,n=this.cues.length;i=e||r.startTime===r.endTime&&r.startTime<=e&&r.startTime+.5>=e)&&t.push(r)}if(h=!1,t.length!==this.activeCues_.length)h=!0;else for(var o=0;o0)return void this.trigger("vttjsloaded");var script=d.a.createElement("script");script.src=this.options_["vtt.js"]||"https://vjs.zencdn.net/vttjs/0.14.1/vtt.min.js",script.onload=function(){e.trigger("vttjsloaded")},script.onerror=function(){e.trigger("vttjserror")},this.on("dispose",(function(){script.onload=null,script.onerror=null})),l.a.WebVTT=!0,this.el().parentNode.appendChild(script)}else this.ready(this.addWebVttScript_)},n.emulateTextTracks=function(){var e=this,t=this.textTracks(),n=this.remoteTextTracks(),r=function(e){return t.addTrack(e.track)},o=function(e){return t.removeTrack(e.track)};n.on("addtrack",r),n.on("removetrack",o),this.addWebVttScript_();var l=function(){return e.trigger("texttrackchange")},c=function(){l();for(var i=0;i=0;i--){var o=e[i];o[t]&&o[t](r,n)}}(e,n,d,c),d}var ti={buffered:1,currentTime:1,duration:1,muted:1,played:1,paused:1,seekable:1,volume:1,ended:1},ni={setCurrentTime:1,setMuted:1,setVolume:1},ii={play:1,pause:1};function ri(e){return function(t,n){return t===Jn?Jn:n[e]?n[e](t):t}}function ai(e,t,n,r,o,l){void 0===e&&(e={}),void 0===t&&(t=[]),void 0===o&&(o=[]),void 0===l&&(l=!1);var c=t,d=c[0],h=c.slice(1);if("string"==typeof d)ai(e,Kn[d],n,r,o,l);else if(d){var f=function(e,t){var n=Qn[e.id()],r=null;if(null==n)return r=t(e),Qn[e.id()]=[[t,r]],r;for(var i=0;i0;!this.player_.tech(!0)||(ke||Te)&&t||this.player_.tech(!0).focus(),this.player_.paused()?mn(this.player_.play()):this.player_.pause()}},t}(hi);sn.registerComponent("PosterImage",fi);var pi="#222",mi={monospace:"monospace",sansSerif:"sans-serif",serif:"serif",monospaceSansSerif:'"Andale Mono", "Lucida Console", monospace',monospaceSerif:'"Courier New", monospace',proportionalSansSerif:"sans-serif",proportionalSerif:"serif",casual:'"Comic Sans MS", Impact, fantasy',script:'"Monotype Corsiva", cursive',smallcaps:'"Andale Mono", "Lucida Console", monospace, sans-serif'};function gi(e,t){var n;if(4===e.length)n=e[1]+e[1]+e[2]+e[2]+e[3]+e[3];else{if(7!==e.length)throw new Error("Invalid color code provided, "+e+"; must be formatted as e.g. #f0e or #f604e2.");n=e.slice(1)}return"rgba("+parseInt(n.slice(0,2),16)+","+parseInt(n.slice(2,4),16)+","+parseInt(n.slice(4,6),16)+","+t+")"}function vi(e,style,t){try{e.style[style]=t}catch(e){return}}var yi=function(e){function t(t,n,r){var o;o=e.call(this,t,n,r)||this;var c=function(e){return o.updateDisplay(e)};return t.on("loadstart",(function(e){return o.toggleDisplay(e)})),t.on("texttrackchange",c),t.on("loadedmetadata",(function(e){return o.preselectTrack(e)})),t.ready(Bt(_()(o),(function(){if(t.tech_&&t.tech_.featuresNativeTextTracks)this.hide();else{t.on("fullscreenchange",c),t.on("playerresize",c),l.a.addEventListener("orientationchange",c),t.on("dispose",(function(){return l.a.removeEventListener("orientationchange",c)}));for(var e=this.options_.playerOptions.tracks||[],i=0;i0;return mn(t),void(!this.player_.tech(!0)||(ke||Te)&&n||this.player_.tech(!0).focus())}var r=this.player_.getChild("controlBar"),o=r&&r.getChild("playToggle");if(o){var l=function(){return o.focus()};pn(t)?t.then(l,(function(){})):this.setTimeout(l,1)}else this.player_.tech(!0).focus()},n.handleKeyDown=function(t){this.mouseused_=!1,e.prototype.handleKeyDown.call(this,t)},n.handleMouseDown=function(e){this.mouseused_=!0},t}(_i);Ti.prototype.controlText_="Play Video",sn.registerComponent("BigPlayButton",Ti);var wi=function(e){function t(t,n){var r;return(r=e.call(this,t,n)||this).controlText(n&&n.controlText||r.localize("Close")),r}w()(t,e);var n=t.prototype;return n.buildCSSClass=function(){return"vjs-close-button "+e.prototype.buildCSSClass.call(this)},n.handleClick=function(e){this.trigger({type:"close",bubbles:!1})},n.handleKeyDown=function(t){v.a.isEventKey(t,"Esc")?(t.preventDefault(),t.stopPropagation(),this.trigger("click")):e.prototype.handleKeyDown.call(this,t)},t}(_i);sn.registerComponent("CloseButton",wi);var Si=function(e){function t(t,n){var r;return void 0===n&&(n={}),r=e.call(this,t,n)||this,n.replay=void 0===n.replay||n.replay,r.on(t,"play",(function(e){return r.handlePlay(e)})),r.on(t,"pause",(function(e){return r.handlePause(e)})),n.replay&&r.on(t,"ended",(function(e){return r.handleEnded(e)})),r}w()(t,e);var n=t.prototype;return n.buildCSSClass=function(){return"vjs-play-control "+e.prototype.buildCSSClass.call(this)},n.handleClick=function(e){this.player_.paused()?mn(this.player_.play()):this.player_.pause()},n.handleSeeked=function(e){this.removeClass("vjs-ended"),this.player_.paused()?this.handlePause(e):this.handlePlay(e)},n.handlePlay=function(e){this.removeClass("vjs-ended"),this.removeClass("vjs-paused"),this.addClass("vjs-playing"),this.controlText("Pause")},n.handlePause=function(e){this.removeClass("vjs-playing"),this.addClass("vjs-paused"),this.controlText("Play")},n.handleEnded=function(e){var t=this;this.removeClass("vjs-playing"),this.addClass("vjs-ended"),this.controlText("Replay"),this.one(this.player_,"seeked",(function(e){return t.handleSeeked(e)}))},t}(_i);Si.prototype.controlText_="Play",sn.registerComponent("PlayToggle",Si);var ki=function(e,t){e=e<0?0:e;var s=Math.floor(e%60),n=Math.floor(e/60%60),r=Math.floor(e/3600),o=Math.floor(t/60%60),l=Math.floor(t/3600);return(isNaN(e)||e===1/0)&&(r=n=s="-"),(r=r>0||l>0?r+":":"")+(n=((r||o>=10)&&n<10?"0"+n:n)+":")+(s=s<10?"0"+s:s)},xi=ki;function Ci(e,t){return void 0===t&&(t=e),xi(e,t)}var Ai=function(e){function t(t,n){var r;return(r=e.call(this,t,n)||this).on(t,["timeupdate","ended"],(function(e){return r.updateContent(e)})),r.updateTextNode_(),r}w()(t,e);var n=t.prototype;return n.createEl=function(){var t=this.buildCSSClass(),n=e.prototype.createEl.call(this,"div",{className:t+" vjs-time-control vjs-control"}),span=Fe("span",{className:"vjs-control-text",textContent:this.localize(this.labelText_)+" "},{role:"presentation"});return n.appendChild(span),this.contentEl_=Fe("span",{className:t+"-display"},{"aria-live":"off",role:"presentation"}),n.appendChild(this.contentEl_),n},n.dispose=function(){this.contentEl_=null,this.textNode_=null,e.prototype.dispose.call(this)},n.updateTextNode_=function(time){var e=this;void 0===time&&(time=0),time=Ci(time),this.formattedTime_!==time&&(this.formattedTime_=time,this.requestNamedAnimationFrame("TimeDisplay#updateTextNode_",(function(){if(e.contentEl_){var t=e.textNode_;t&&e.contentEl_.firstChild!==t&&(t=null,ne.warn("TimeDisplay#updateTextnode_: Prevented replacement of text node element since it was no longer a child of this node. Appending a new node instead.")),e.textNode_=d.a.createTextNode(e.formattedTime_),e.textNode_&&(t?e.contentEl_.replaceChild(e.textNode_,t):e.contentEl_.appendChild(e.textNode_))}})))},n.updateContent=function(e){},t}(sn);Ai.prototype.labelText_="Time",Ai.prototype.controlText_="Time",sn.registerComponent("TimeDisplay",Ai);var Ei=function(e){function t(){return e.apply(this,arguments)||this}w()(t,e);var n=t.prototype;return n.buildCSSClass=function(){return"vjs-current-time"},n.updateContent=function(e){var time;time=this.player_.ended()?this.player_.duration():this.player_.scrubbing()?this.player_.getCache().currentTime:this.player_.currentTime(),this.updateTextNode_(time)},t}(Ai);Ei.prototype.labelText_="Current Time",Ei.prototype.controlText_="Current Time",sn.registerComponent("CurrentTimeDisplay",Ei);var Di=function(e){function t(t,n){var r,o=function(e){return r.updateContent(e)};return(r=e.call(this,t,n)||this).on(t,"durationchange",o),r.on(t,"loadstart",o),r.on(t,"loadedmetadata",o),r}w()(t,e);var n=t.prototype;return n.buildCSSClass=function(){return"vjs-duration"},n.updateContent=function(e){var t=this.player_.duration();this.updateTextNode_(t)},t}(Ai);Di.prototype.labelText_="Duration",Di.prototype.controlText_="Duration",sn.registerComponent("DurationDisplay",Di);var Ii=function(e){function t(){return e.apply(this,arguments)||this}return w()(t,e),t.prototype.createEl=function(){var t=e.prototype.createEl.call(this,"div",{className:"vjs-time-control vjs-time-divider"},{"aria-hidden":!0}),div=e.prototype.createEl.call(this,"div"),span=e.prototype.createEl.call(this,"span",{textContent:"/"});return div.appendChild(span),t.appendChild(div),t},t}(sn);sn.registerComponent("TimeDivider",Ii);var ji=function(e){function t(t,n){var r;return(r=e.call(this,t,n)||this).on(t,"durationchange",(function(e){return r.updateContent(e)})),r}w()(t,e);var n=t.prototype;return n.buildCSSClass=function(){return"vjs-remaining-time"},n.createEl=function(){var t=e.prototype.createEl.call(this);return!1!==this.options_.displayNegative&&t.insertBefore(Fe("span",{},{"aria-hidden":!0},"-"),this.contentEl_),t},n.updateContent=function(e){var time;"number"==typeof this.player_.duration()&&(time=this.player_.ended()?0:this.player_.remainingTimeDisplay?this.player_.remainingTimeDisplay():this.player_.remainingTime(),this.updateTextNode_(time))},t}(Ai);ji.prototype.labelText_="Remaining Time",ji.prototype.controlText_="Remaining Time",sn.registerComponent("RemainingTimeDisplay",ji);var Pi=function(e){function t(t,n){var r;return(r=e.call(this,t,n)||this).updateShowing(),r.on(r.player(),"durationchange",(function(e){return r.updateShowing(e)})),r}w()(t,e);var n=t.prototype;return n.createEl=function(){var t=e.prototype.createEl.call(this,"div",{className:"vjs-live-control vjs-control"});return this.contentEl_=Fe("div",{className:"vjs-live-display"},{"aria-live":"off"}),this.contentEl_.appendChild(Fe("span",{className:"vjs-control-text",textContent:this.localize("Stream Type")+" "})),this.contentEl_.appendChild(d.a.createTextNode(this.localize("LIVE"))),t.appendChild(this.contentEl_),t},n.dispose=function(){this.contentEl_=null,e.prototype.dispose.call(this)},n.updateShowing=function(e){this.player().duration()===1/0?this.show():this.hide()},t}(sn);sn.registerComponent("LiveDisplay",Pi);var Oi=function(e){function t(t,n){var r;return(r=e.call(this,t,n)||this).updateLiveEdgeStatus(),r.player_.liveTracker&&(r.updateLiveEdgeStatusHandler_=function(e){return r.updateLiveEdgeStatus(e)},r.on(r.player_.liveTracker,"liveedgechange",r.updateLiveEdgeStatusHandler_)),r}w()(t,e);var n=t.prototype;return n.createEl=function(){var t=e.prototype.createEl.call(this,"button",{className:"vjs-seek-to-live-control vjs-control"});return this.textEl_=Fe("span",{className:"vjs-seek-to-live-text",textContent:this.localize("LIVE")},{"aria-hidden":"true"}),t.appendChild(this.textEl_),t},n.updateLiveEdgeStatus=function(){!this.player_.liveTracker||this.player_.liveTracker.atLiveEdge()?(this.setAttribute("aria-disabled",!0),this.addClass("vjs-at-live-edge"),this.controlText("Seek to live, currently playing live")):(this.setAttribute("aria-disabled",!1),this.removeClass("vjs-at-live-edge"),this.controlText("Seek to live, currently behind live"))},n.handleClick=function(){this.player_.liveTracker.seekToLiveEdge()},n.dispose=function(){this.player_.liveTracker&&this.off(this.player_.liveTracker,"liveedgechange",this.updateLiveEdgeStatusHandler_),this.textEl_=null,e.prototype.dispose.call(this)},t}(_i);Oi.prototype.controlText_="Seek to live, currently playing live",sn.registerComponent("SeekToLive",Oi);var Mi=function(e,t,n){return e=Number(e),Math.min(n,Math.max(t,isNaN(e)?t:e))},Li=function(e){function t(t,n){var r;return(r=e.call(this,t,n)||this).handleMouseDown_=function(e){return r.handleMouseDown(e)},r.handleMouseUp_=function(e){return r.handleMouseUp(e)},r.handleKeyDown_=function(e){return r.handleKeyDown(e)},r.handleClick_=function(e){return r.handleClick(e)},r.handleMouseMove_=function(e){return r.handleMouseMove(e)},r.update_=function(e){return r.update(e)},r.bar=r.getChild(r.options_.barName),r.vertical(!!r.options_.vertical),r.enable(),r}w()(t,e);var n=t.prototype;return n.enabled=function(){return this.enabled_},n.enable=function(){this.enabled()||(this.on("mousedown",this.handleMouseDown_),this.on("touchstart",this.handleMouseDown_),this.on("keydown",this.handleKeyDown_),this.on("click",this.handleClick_),this.on(this.player_,"controlsvisible",this.update),this.playerEvent&&this.on(this.player_,this.playerEvent,this.update),this.removeClass("disabled"),this.setAttribute("tabindex",0),this.enabled_=!0)},n.disable=function(){if(this.enabled()){var e=this.bar.el_.ownerDocument;this.off("mousedown",this.handleMouseDown_),this.off("touchstart",this.handleMouseDown_),this.off("keydown",this.handleKeyDown_),this.off("click",this.handleClick_),this.off(this.player_,"controlsvisible",this.update_),this.off(e,"mousemove",this.handleMouseMove_),this.off(e,"mouseup",this.handleMouseUp_),this.off(e,"touchmove",this.handleMouseMove_),this.off(e,"touchend",this.handleMouseUp_),this.removeAttribute("tabindex"),this.addClass("disabled"),this.playerEvent&&this.off(this.player_,this.playerEvent,this.update),this.enabled_=!1}},n.createEl=function(t,n,r){return void 0===n&&(n={}),void 0===r&&(r={}),n.className=n.className+" vjs-slider",n=se({tabIndex:0},n),r=se({role:"slider","aria-valuenow":0,"aria-valuemin":0,"aria-valuemax":100,tabIndex:0},r),e.prototype.createEl.call(this,t,n,r)},n.handleMouseDown=function(e){var t=this.bar.el_.ownerDocument;"mousedown"===e.type&&e.preventDefault(),"touchstart"!==e.type||we||e.preventDefault(),Qe(),this.addClass("vjs-sliding"),this.trigger("slideractive"),this.on(t,"mousemove",this.handleMouseMove_),this.on(t,"mouseup",this.handleMouseUp_),this.on(t,"touchmove",this.handleMouseMove_),this.on(t,"touchend",this.handleMouseUp_),this.handleMouseMove(e,!0)},n.handleMouseMove=function(e){},n.handleMouseUp=function(){var e=this.bar.el_.ownerDocument;Je(),this.removeClass("vjs-sliding"),this.trigger("sliderinactive"),this.off(e,"mousemove",this.handleMouseMove_),this.off(e,"mouseup",this.handleMouseUp_),this.off(e,"touchmove",this.handleMouseMove_),this.off(e,"touchend",this.handleMouseUp_),this.update()},n.update=function(){var e=this;if(this.el_&&this.bar){var progress=this.getProgress();return progress===this.progress_||(this.progress_=progress,this.requestNamedAnimationFrame("Slider#update",(function(){var t=e.vertical()?"height":"width";e.bar.el().style[t]=(100*progress).toFixed(2)+"%"}))),progress}},n.getProgress=function(){return Number(Mi(this.getPercent(),0,1).toFixed(4))},n.calculateDistance=function(e){var t=tt(this.el_,e);return this.vertical()?t.y:t.x},n.handleKeyDown=function(t){v.a.isEventKey(t,"Left")||v.a.isEventKey(t,"Down")?(t.preventDefault(),t.stopPropagation(),this.stepBack()):v.a.isEventKey(t,"Right")||v.a.isEventKey(t,"Up")?(t.preventDefault(),t.stopPropagation(),this.stepForward()):e.prototype.handleKeyDown.call(this,t)},n.handleClick=function(e){e.stopPropagation(),e.preventDefault()},n.vertical=function(e){if(void 0===e)return this.vertical_||!1;this.vertical_=!!e,this.vertical_?this.addClass("vjs-slider-vertical"):this.addClass("vjs-slider-horizontal")},t}(sn);sn.registerComponent("Slider",Li);var Ni=function(time,e){return Mi(time/e*100,0,100).toFixed(2)+"%"},Ri=function(e){function t(t,n){var r;return(r=e.call(this,t,n)||this).partEls_=[],r.on(t,"progress",(function(e){return r.update(e)})),r}w()(t,e);var n=t.prototype;return n.createEl=function(){var t=e.prototype.createEl.call(this,"div",{className:"vjs-load-progress"}),n=Fe("span",{className:"vjs-control-text"}),r=Fe("span",{textContent:this.localize("Loaded")}),o=d.a.createTextNode(": ");return this.percentageEl_=Fe("span",{className:"vjs-control-text-loaded-percentage",textContent:"0%"}),t.appendChild(n),n.appendChild(r),n.appendChild(o),n.appendChild(this.percentageEl_),t},n.dispose=function(){this.partEls_=null,this.percentageEl_=null,e.prototype.dispose.call(this)},n.update=function(e){var t=this;this.requestNamedAnimationFrame("LoadProgressBar#update",(function(){var e=t.player_.liveTracker,n=t.player_.buffered(),r=e&&e.isLive()?e.seekableEnd():t.player_.duration(),o=t.player_.bufferedEnd(),l=t.partEls_,c=Ni(o,r);t.percent_!==c&&(t.el_.style.width=c,Ue(t.percentageEl_,c),t.percent_=c);for(var i=0;in.length;m--)t.el_.removeChild(l[m-1]);l.length=n.length}))},t}(sn);sn.registerComponent("LoadProgressBar",Ri);var Bi=function(e){function t(t,n){var r;return(r=e.call(this,t,n)||this).update=Ft(Bt(_()(r),r.update),Rt),r}w()(t,e);var n=t.prototype;return n.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-time-tooltip"},{"aria-hidden":"true"})},n.update=function(e,t,content){var n=et(this.el_),r=Ze(this.player_.el()),o=e.width*t;if(r&&n){var l=e.left-r.left+o,c=e.width-o+(r.right-e.right),d=n.width/2;ln.width&&(d=n.width),d=Math.round(d),this.el_.style.right="-"+d+"px",this.write(content)}},n.write=function(content){Ue(this.el_,content)},n.updateTime=function(e,t,time,n){var r=this;this.requestNamedAnimationFrame("TimeTooltip#updateTime",(function(){var content,o=r.player_.duration();if(r.player_.liveTracker&&r.player_.liveTracker.isLive()){var l=r.player_.liveTracker.liveWindow(),c=l-t*l;content=(c<1?"":"-")+Ci(c,l)}else content=Ci(time,o);r.update(e,t,content),n&&n()}))},t}(sn);sn.registerComponent("TimeTooltip",Bi);var Fi=function(e){function t(t,n){var r;return(r=e.call(this,t,n)||this).update=Ft(Bt(_()(r),r.update),Rt),r}w()(t,e);var n=t.prototype;return n.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-play-progress vjs-slider-bar"},{"aria-hidden":"true"})},n.update=function(e,t){var n=this.getChild("timeTooltip");if(n){var time=this.player_.scrubbing()?this.player_.getCache().currentTime:this.player_.currentTime();n.updateTime(e,t,time)}},t}(sn);Fi.prototype.options_={children:[]},Ie||ve||Fi.prototype.options_.children.push("timeTooltip"),sn.registerComponent("PlayProgressBar",Fi);var Ui=function(e){function t(t,n){var r;return(r=e.call(this,t,n)||this).update=Ft(Bt(_()(r),r.update),Rt),r}w()(t,e);var n=t.prototype;return n.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-mouse-display"})},n.update=function(e,t){var n=this,time=t*this.player_.duration();this.getChild("timeTooltip").updateTime(e,t,time,(function(){n.el_.style.left=e.width*t+"px"}))},t}(sn);Ui.prototype.options_={children:["timeTooltip"]},sn.registerComponent("MouseTimeDisplay",Ui);var Vi=function(e){function t(t,n){var r;return(r=e.call(this,t,n)||this).setEventHandlers_(),r}w()(t,e);var n=t.prototype;return n.setEventHandlers_=function(){var e=this;this.update_=Bt(this,this.update),this.update=Ft(this.update_,Rt),this.on(this.player_,["ended","durationchange","timeupdate"],this.update),this.player_.liveTracker&&this.on(this.player_.liveTracker,"liveedgechange",this.update),this.updateInterval=null,this.enableIntervalHandler_=function(t){return e.enableInterval_(t)},this.disableIntervalHandler_=function(t){return e.disableInterval_(t)},this.on(this.player_,["playing"],this.enableIntervalHandler_),this.on(this.player_,["ended","pause","waiting"],this.disableIntervalHandler_),"hidden"in d.a&&"visibilityState"in d.a&&this.on(d.a,"visibilitychange",this.toggleVisibility_)},n.toggleVisibility_=function(e){"hidden"===d.a.visibilityState?(this.cancelNamedAnimationFrame("SeekBar#update"),this.cancelNamedAnimationFrame("Slider#update"),this.disableInterval_(e)):(this.player_.ended()||this.player_.paused()||this.enableInterval_(),this.update())},n.enableInterval_=function(){this.updateInterval||(this.updateInterval=this.setInterval(this.update,Rt))},n.disableInterval_=function(e){this.player_.liveTracker&&this.player_.liveTracker.isLive()&&e&&"ended"!==e.type||this.updateInterval&&(this.clearInterval(this.updateInterval),this.updateInterval=null)},n.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-progress-holder"},{"aria-label":this.localize("Progress Bar")})},n.update=function(t){var n=this;if("hidden"!==d.a.visibilityState){var r=e.prototype.update.call(this);return this.requestNamedAnimationFrame("SeekBar#update",(function(){var e=n.player_.ended()?n.player_.duration():n.getCurrentTime_(),t=n.player_.liveTracker,o=n.player_.duration();t&&t.isLive()&&(o=n.player_.liveTracker.liveCurrentTime()),n.percent_!==r&&(n.el_.setAttribute("aria-valuenow",(100*r).toFixed(2)),n.percent_=r),n.currentTime_===e&&n.duration_===o||(n.el_.setAttribute("aria-valuetext",n.localize("progress bar timing: currentTime={1} duration={2}",[Ci(e,o),Ci(o,o)],"{1} of {2}")),n.currentTime_=e,n.duration_=o),n.bar&&n.bar.update(Ze(n.el()),n.getProgress())})),r}},n.userSeek_=function(e){this.player_.liveTracker&&this.player_.liveTracker.isLive()&&this.player_.liveTracker.nextSeekedFromUser(),this.player_.currentTime(e)},n.getCurrentTime_=function(){return this.player_.scrubbing()?this.player_.getCache().currentTime:this.player_.currentTime()},n.getPercent=function(){var e,t=this.getCurrentTime_(),n=this.player_.liveTracker;return n&&n.isLive()?(e=(t-n.seekableStart())/n.liveWindow(),n.atLiveEdge()&&(e=1)):e=t/this.player_.duration(),e},n.handleMouseDown=function(t){ut(t)&&(t.stopPropagation(),this.videoWasPlaying=!this.player_.paused(),this.player_.pause(),e.prototype.handleMouseDown.call(this,t))},n.handleMouseMove=function(e,t){if(void 0===t&&(t=!1),ut(e)){var n;t||this.player_.scrubbing()||this.player_.scrubbing(!0);var r=this.calculateDistance(e),o=this.player_.liveTracker;if(o&&o.isLive()){if(r>=.99)return void o.seekToLiveEdge();var l=o.seekableStart(),c=o.liveCurrentTime();if((n=l+r*o.liveWindow())>=c&&(n=c),n<=l&&(n=l+.1),n===1/0)return}else(n=r*this.player_.duration())===this.player_.duration()&&(n-=.1);this.userSeek_(n)}},n.enable=function(){e.prototype.enable.call(this);var t=this.getChild("mouseTimeDisplay");t&&t.show()},n.disable=function(){e.prototype.disable.call(this);var t=this.getChild("mouseTimeDisplay");t&&t.hide()},n.handleMouseUp=function(t){e.prototype.handleMouseUp.call(this,t),t&&t.stopPropagation(),this.player_.scrubbing(!1),this.player_.trigger({type:"timeupdate",target:this,manuallyTriggered:!0}),this.videoWasPlaying?mn(this.player_.play()):this.update_()},n.stepForward=function(){this.userSeek_(this.player_.currentTime()+5)},n.stepBack=function(){this.userSeek_(this.player_.currentTime()-5)},n.handleAction=function(e){this.player_.paused()?this.player_.play():this.player_.pause()},n.handleKeyDown=function(t){var n=this.player_.liveTracker;if(v.a.isEventKey(t,"Space")||v.a.isEventKey(t,"Enter"))t.preventDefault(),t.stopPropagation(),this.handleAction(t);else if(v.a.isEventKey(t,"Home"))t.preventDefault(),t.stopPropagation(),this.userSeek_(0);else if(v.a.isEventKey(t,"End"))t.preventDefault(),t.stopPropagation(),n&&n.isLive()?this.userSeek_(n.liveCurrentTime()):this.userSeek_(this.player_.duration());else if(/^[0-9]$/.test(v()(t))){t.preventDefault(),t.stopPropagation();var r=10*(v.a.codes[v()(t)]-v.a.codes[0])/100;n&&n.isLive()?this.userSeek_(n.seekableStart()+n.liveWindow()*r):this.userSeek_(this.player_.duration()*r)}else v.a.isEventKey(t,"PgDn")?(t.preventDefault(),t.stopPropagation(),this.userSeek_(this.player_.currentTime()-60)):v.a.isEventKey(t,"PgUp")?(t.preventDefault(),t.stopPropagation(),this.userSeek_(this.player_.currentTime()+60)):e.prototype.handleKeyDown.call(this,t)},n.dispose=function(){this.disableInterval_(),this.off(this.player_,["ended","durationchange","timeupdate"],this.update),this.player_.liveTracker&&this.off(this.player_.liveTracker,"liveedgechange",this.update),this.off(this.player_,["playing"],this.enableIntervalHandler_),this.off(this.player_,["ended","pause","waiting"],this.disableIntervalHandler_),"hidden"in d.a&&"visibilityState"in d.a&&this.off(d.a,"visibilitychange",this.toggleVisibility_),e.prototype.dispose.call(this)},t}(Li);Vi.prototype.options_={children:["loadProgressBar","playProgressBar"],barName:"playProgressBar"},Ie||ve||Vi.prototype.options_.children.splice(1,0,"mouseTimeDisplay"),sn.registerComponent("SeekBar",Vi);var Hi=function(e){function t(t,n){var r;return(r=e.call(this,t,n)||this).handleMouseMove=Ft(Bt(_()(r),r.handleMouseMove),Rt),r.throttledHandleMouseSeek=Ft(Bt(_()(r),r.handleMouseSeek),Rt),r.handleMouseUpHandler_=function(e){return r.handleMouseUp(e)},r.handleMouseDownHandler_=function(e){return r.handleMouseDown(e)},r.enable(),r}w()(t,e);var n=t.prototype;return n.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-progress-control vjs-control"})},n.handleMouseMove=function(e){var t=this.getChild("seekBar");if(t){var n=t.getChild("playProgressBar"),r=t.getChild("mouseTimeDisplay");if(n||r){var o=t.el(),l=et(o),c=tt(o,e).x;c=Mi(c,0,1),r&&r.update(l,c),n&&n.update(l,t.getProgress())}}},n.handleMouseSeek=function(e){var t=this.getChild("seekBar");t&&t.handleMouseMove(e)},n.enabled=function(){return this.enabled_},n.disable=function(){if(this.children().forEach((function(e){return e.disable&&e.disable()})),this.enabled()&&(this.off(["mousedown","touchstart"],this.handleMouseDownHandler_),this.off(this.el_,"mousemove",this.handleMouseMove),this.removeListenersAddedOnMousedownAndTouchstart(),this.addClass("disabled"),this.enabled_=!1,this.player_.scrubbing())){var e=this.getChild("seekBar");this.player_.scrubbing(!1),e.videoWasPlaying&&mn(this.player_.play())}},n.enable=function(){this.children().forEach((function(e){return e.enable&&e.enable()})),this.enabled()||(this.on(["mousedown","touchstart"],this.handleMouseDownHandler_),this.on(this.el_,"mousemove",this.handleMouseMove),this.removeClass("disabled"),this.enabled_=!0)},n.removeListenersAddedOnMousedownAndTouchstart=function(){var e=this.el_.ownerDocument;this.off(e,"mousemove",this.throttledHandleMouseSeek),this.off(e,"touchmove",this.throttledHandleMouseSeek),this.off(e,"mouseup",this.handleMouseUpHandler_),this.off(e,"touchend",this.handleMouseUpHandler_)},n.handleMouseDown=function(e){var t=this.el_.ownerDocument,n=this.getChild("seekBar");n&&n.handleMouseDown(e),this.on(t,"mousemove",this.throttledHandleMouseSeek),this.on(t,"touchmove",this.throttledHandleMouseSeek),this.on(t,"mouseup",this.handleMouseUpHandler_),this.on(t,"touchend",this.handleMouseUpHandler_)},n.handleMouseUp=function(e){var t=this.getChild("seekBar");t&&t.handleMouseUp(e),this.removeListenersAddedOnMousedownAndTouchstart()},t}(sn);Hi.prototype.options_={children:["seekBar"]},sn.registerComponent("ProgressControl",Hi);var zi=function(e){function t(t,n){var r;return(r=e.call(this,t,n)||this).on(t,["enterpictureinpicture","leavepictureinpicture"],(function(e){return r.handlePictureInPictureChange(e)})),r.on(t,["disablepictureinpicturechanged","loadedmetadata"],(function(e){return r.handlePictureInPictureEnabledChange(e)})),r.on(t,["loadedmetadata","audioonlymodechange","audiopostermodechange"],(function(){"audio"===t.currentType().substring(0,5)||t.audioPosterMode()||t.audioOnlyMode()?(t.isInPictureInPicture()&&t.exitPictureInPicture(),r.hide()):r.show()})),r.disable(),r}w()(t,e);var n=t.prototype;return n.buildCSSClass=function(){return"vjs-picture-in-picture-control "+e.prototype.buildCSSClass.call(this)},n.handlePictureInPictureEnabledChange=function(){d.a.pictureInPictureEnabled&&!1===this.player_.disablePictureInPicture()?this.enable():this.disable()},n.handlePictureInPictureChange=function(e){this.player_.isInPictureInPicture()?this.controlText("Exit Picture-in-Picture"):this.controlText("Picture-in-Picture"),this.handlePictureInPictureEnabledChange()},n.handleClick=function(e){this.player_.isInPictureInPicture()?this.player_.exitPictureInPicture():this.player_.requestPictureInPicture()},t}(_i);zi.prototype.controlText_="Picture-in-Picture",sn.registerComponent("PictureInPictureToggle",zi);var qi=function(e){function t(t,n){var r;return(r=e.call(this,t,n)||this).on(t,"fullscreenchange",(function(e){return r.handleFullscreenChange(e)})),!1===d.a[t.fsApi_.fullscreenEnabled]&&r.disable(),r}w()(t,e);var n=t.prototype;return n.buildCSSClass=function(){return"vjs-fullscreen-control "+e.prototype.buildCSSClass.call(this)},n.handleFullscreenChange=function(e){this.player_.isFullscreen()?this.controlText("Non-Fullscreen"):this.controlText("Fullscreen")},n.handleClick=function(e){this.player_.isFullscreen()?this.player_.exitFullscreen():this.player_.requestFullscreen()},t}(_i);qi.prototype.controlText_="Fullscreen",sn.registerComponent("FullscreenToggle",qi);var $i=function(e){function t(){return e.apply(this,arguments)||this}return w()(t,e),t.prototype.createEl=function(){var t=e.prototype.createEl.call(this,"div",{className:"vjs-volume-level"});return t.appendChild(e.prototype.createEl.call(this,"span",{className:"vjs-control-text"})),t},t}(sn);sn.registerComponent("VolumeLevel",$i);var Wi=function(e){function t(t,n){var r;return(r=e.call(this,t,n)||this).update=Ft(Bt(_()(r),r.update),Rt),r}w()(t,e);var n=t.prototype;return n.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-volume-tooltip"},{"aria-hidden":"true"})},n.update=function(e,t,n,content){if(!n){var r=Ze(this.el_),o=Ze(this.player_.el()),l=e.width*t;if(!o||!r)return;var c=e.left-o.left+l,d=e.width-l+(o.right-e.right),h=r.width/2;cr.width&&(h=r.width),this.el_.style.right="-"+h+"px"}this.write(content+"%")},n.write=function(content){Ue(this.el_,content)},n.updateVolume=function(e,t,n,r,o){var l=this;this.requestNamedAnimationFrame("VolumeLevelTooltip#updateVolume",(function(){l.update(e,t,n,r.toFixed(0)),o&&o()}))},t}(sn);sn.registerComponent("VolumeLevelTooltip",Wi);var Gi=function(e){function t(t,n){var r;return(r=e.call(this,t,n)||this).update=Ft(Bt(_()(r),r.update),Rt),r}w()(t,e);var n=t.prototype;return n.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-mouse-display"})},n.update=function(e,t,n){var r=this,o=100*t;this.getChild("volumeLevelTooltip").updateVolume(e,t,n,o,(function(){n?r.el_.style.bottom=e.height*t+"px":r.el_.style.left=e.width*t+"px"}))},t}(sn);Gi.prototype.options_={children:["volumeLevelTooltip"]},sn.registerComponent("MouseVolumeLevelDisplay",Gi);var Yi=function(e){function t(t,n){var r;return(r=e.call(this,t,n)||this).on("slideractive",(function(e){return r.updateLastVolume_(e)})),r.on(t,"volumechange",(function(e){return r.updateARIAAttributes(e)})),t.ready((function(){return r.updateARIAAttributes()})),r}w()(t,e);var n=t.prototype;return n.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-volume-bar vjs-slider-bar"},{"aria-label":this.localize("Volume Level"),"aria-live":"polite"})},n.handleMouseDown=function(t){ut(t)&&e.prototype.handleMouseDown.call(this,t)},n.handleMouseMove=function(e){var t=this.getChild("mouseVolumeLevelDisplay");if(t){var n=this.el(),r=Ze(n),o=this.vertical(),l=tt(n,e);l=o?l.y:l.x,l=Mi(l,0,1),t.update(r,l,o)}ut(e)&&(this.checkMuted(),this.player_.volume(this.calculateDistance(e)))},n.checkMuted=function(){this.player_.muted()&&this.player_.muted(!1)},n.getPercent=function(){return this.player_.muted()?0:this.player_.volume()},n.stepForward=function(){this.checkMuted(),this.player_.volume(this.player_.volume()+.1)},n.stepBack=function(){this.checkMuted(),this.player_.volume(this.player_.volume()-.1)},n.updateARIAAttributes=function(e){var t=this.player_.muted()?0:this.volumeAsPercentage_();this.el_.setAttribute("aria-valuenow",t),this.el_.setAttribute("aria-valuetext",t+"%")},n.volumeAsPercentage_=function(){return Math.round(100*this.player_.volume())},n.updateLastVolume_=function(){var e=this,t=this.player_.volume();this.one("sliderinactive",(function(){0===e.player_.volume()&&e.player_.lastVolume_(t)}))},t}(Li);Yi.prototype.options_={children:["volumeLevel"],barName:"volumeLevel"},Ie||ve||Yi.prototype.options_.children.splice(0,0,"mouseVolumeLevelDisplay"),Yi.prototype.playerEvent="volumechange",sn.registerComponent("VolumeBar",Yi);var Xi=function(e){function t(t,n){var r;return void 0===n&&(n={}),n.vertical=n.vertical||!1,(void 0===n.volumeBar||le(n.volumeBar))&&(n.volumeBar=n.volumeBar||{},n.volumeBar.vertical=n.vertical),r=e.call(this,t,n)||this,function(e,t){t.tech_&&!t.tech_.featuresVolumeControl&&e.addClass("vjs-hidden"),e.on(t,"loadstart",(function(){t.tech_.featuresVolumeControl?e.removeClass("vjs-hidden"):e.addClass("vjs-hidden")}))}(_()(r),t),r.throttledHandleMouseMove=Ft(Bt(_()(r),r.handleMouseMove),Rt),r.handleMouseUpHandler_=function(e){return r.handleMouseUp(e)},r.on("mousedown",(function(e){return r.handleMouseDown(e)})),r.on("touchstart",(function(e){return r.handleMouseDown(e)})),r.on("mousemove",(function(e){return r.handleMouseMove(e)})),r.on(r.volumeBar,["focus","slideractive"],(function(){r.volumeBar.addClass("vjs-slider-active"),r.addClass("vjs-slider-active"),r.trigger("slideractive")})),r.on(r.volumeBar,["blur","sliderinactive"],(function(){r.volumeBar.removeClass("vjs-slider-active"),r.removeClass("vjs-slider-active"),r.trigger("sliderinactive")})),r}w()(t,e);var n=t.prototype;return n.createEl=function(){var t="vjs-volume-horizontal";return this.options_.vertical&&(t="vjs-volume-vertical"),e.prototype.createEl.call(this,"div",{className:"vjs-volume-control vjs-control "+t})},n.handleMouseDown=function(e){var t=this.el_.ownerDocument;this.on(t,"mousemove",this.throttledHandleMouseMove),this.on(t,"touchmove",this.throttledHandleMouseMove),this.on(t,"mouseup",this.handleMouseUpHandler_),this.on(t,"touchend",this.handleMouseUpHandler_)},n.handleMouseUp=function(e){var t=this.el_.ownerDocument;this.off(t,"mousemove",this.throttledHandleMouseMove),this.off(t,"touchmove",this.throttledHandleMouseMove),this.off(t,"mouseup",this.handleMouseUpHandler_),this.off(t,"touchend",this.handleMouseUpHandler_)},n.handleMouseMove=function(e){this.volumeBar.handleMouseMove(e)},t}(sn);Xi.prototype.options_={children:["volumeBar"]},sn.registerComponent("VolumeControl",Xi);var Ki=function(e){function t(t,n){var r;return r=e.call(this,t,n)||this,function(e,t){t.tech_&&!t.tech_.featuresMuteControl&&e.addClass("vjs-hidden"),e.on(t,"loadstart",(function(){t.tech_.featuresMuteControl?e.removeClass("vjs-hidden"):e.addClass("vjs-hidden")}))}(_()(r),t),r.on(t,["loadstart","volumechange"],(function(e){return r.update(e)})),r}w()(t,e);var n=t.prototype;return n.buildCSSClass=function(){return"vjs-mute-control "+e.prototype.buildCSSClass.call(this)},n.handleClick=function(e){var t=this.player_.volume(),n=this.player_.lastVolume_();if(0===t){var r=n<.1?.1:n;this.player_.volume(r),this.player_.muted(!1)}else this.player_.muted(!this.player_.muted())},n.update=function(e){this.updateIcon_(),this.updateControlText_()},n.updateIcon_=function(){var e=this.player_.volume(),t=3;Ie&&this.player_.tech_&&this.player_.tech_.el_&&this.player_.muted(this.player_.tech_.el_.muted),0===e||this.player_.muted()?t=0:e<.33?t=1:e<.67&&(t=2);for(var i=0;i<4;i++)qe(this.el_,"vjs-vol-"+i);ze(this.el_,"vjs-vol-"+t)},n.updateControlText_=function(){var text=this.player_.muted()||0===this.player_.volume()?"Unmute":"Mute";this.controlText()!==text&&this.controlText(text)},t}(_i);Ki.prototype.controlText_="Mute",sn.registerComponent("MuteToggle",Ki);var Qi=function(e){function t(t,n){var r;return void 0===n&&(n={}),void 0!==n.inline?n.inline=n.inline:n.inline=!0,(void 0===n.volumeControl||le(n.volumeControl))&&(n.volumeControl=n.volumeControl||{},n.volumeControl.vertical=!n.inline),(r=e.call(this,t,n)||this).handleKeyPressHandler_=function(e){return r.handleKeyPress(e)},r.on(t,["loadstart"],(function(e){return r.volumePanelState_(e)})),r.on(r.muteToggle,"keyup",(function(e){return r.handleKeyPress(e)})),r.on(r.volumeControl,"keyup",(function(e){return r.handleVolumeControlKeyUp(e)})),r.on("keydown",(function(e){return r.handleKeyPress(e)})),r.on("mouseover",(function(e){return r.handleMouseOver(e)})),r.on("mouseout",(function(e){return r.handleMouseOut(e)})),r.on(r.volumeControl,["slideractive"],r.sliderActive_),r.on(r.volumeControl,["sliderinactive"],r.sliderInactive_),r}w()(t,e);var n=t.prototype;return n.sliderActive_=function(){this.addClass("vjs-slider-active")},n.sliderInactive_=function(){this.removeClass("vjs-slider-active")},n.volumePanelState_=function(){this.volumeControl.hasClass("vjs-hidden")&&this.muteToggle.hasClass("vjs-hidden")&&this.addClass("vjs-hidden"),this.volumeControl.hasClass("vjs-hidden")&&!this.muteToggle.hasClass("vjs-hidden")&&this.addClass("vjs-mute-toggle-only")},n.createEl=function(){var t="vjs-volume-panel-horizontal";return this.options_.inline||(t="vjs-volume-panel-vertical"),e.prototype.createEl.call(this,"div",{className:"vjs-volume-panel vjs-control "+t})},n.dispose=function(){this.handleMouseOut(),e.prototype.dispose.call(this)},n.handleVolumeControlKeyUp=function(e){v.a.isEventKey(e,"Esc")&&this.muteToggle.focus()},n.handleMouseOver=function(e){this.addClass("vjs-hover"),It(d.a,"keyup",this.handleKeyPressHandler_)},n.handleMouseOut=function(e){this.removeClass("vjs-hover"),jt(d.a,"keyup",this.handleKeyPressHandler_)},n.handleKeyPress=function(e){v.a.isEventKey(e,"Esc")&&this.handleMouseOut()},t}(sn);Qi.prototype.options_={children:["muteToggle","volumeControl"]},sn.registerComponent("VolumePanel",Qi);var Ji=function(e){function t(t,n){var r;return r=e.call(this,t,n)||this,n&&(r.menuButton_=n.menuButton),r.focusedChild_=-1,r.on("keydown",(function(e){return r.handleKeyDown(e)})),r.boundHandleBlur_=function(e){return r.handleBlur(e)},r.boundHandleTapClick_=function(e){return r.handleTapClick(e)},r}w()(t,e);var n=t.prototype;return n.addEventListenerForItem=function(component){component instanceof sn&&(this.on(component,"blur",this.boundHandleBlur_),this.on(component,["tap","click"],this.boundHandleTapClick_))},n.removeEventListenerForItem=function(component){component instanceof sn&&(this.off(component,"blur",this.boundHandleBlur_),this.off(component,["tap","click"],this.boundHandleTapClick_))},n.removeChild=function(component){"string"==typeof component&&(component=this.getChild(component)),this.removeEventListenerForItem(component),e.prototype.removeChild.call(this,component)},n.addItem=function(component){var e=this.addChild(component);e&&this.addEventListenerForItem(e)},n.createEl=function(){var t=this.options_.contentElType||"ul";this.contentEl_=Fe(t,{className:"vjs-menu-content"}),this.contentEl_.setAttribute("role","menu");var n=e.prototype.createEl.call(this,"div",{append:this.contentEl_,className:"vjs-menu"});return n.appendChild(this.contentEl_),It(n,"click",(function(e){e.preventDefault(),e.stopImmediatePropagation()})),n},n.dispose=function(){this.contentEl_=null,this.boundHandleBlur_=null,this.boundHandleTapClick_=null,e.prototype.dispose.call(this)},n.handleBlur=function(e){var t=e.relatedTarget||d.a.activeElement;if(!this.children().some((function(element){return element.el()===t}))){var n=this.menuButton_;n&&n.buttonPressed_&&t!==n.el().firstChild&&n.unpressButton()}},n.handleTapClick=function(e){if(this.menuButton_){this.menuButton_.unpressButton();var t=this.children();if(!Array.isArray(t))return;var n=t.filter((function(component){return component.el()===e.target}))[0];if(!n)return;"CaptionSettingsMenuItem"!==n.name()&&this.menuButton_.focus()}},n.handleKeyDown=function(e){v.a.isEventKey(e,"Left")||v.a.isEventKey(e,"Down")?(e.preventDefault(),e.stopPropagation(),this.stepForward()):(v.a.isEventKey(e,"Right")||v.a.isEventKey(e,"Up"))&&(e.preventDefault(),e.stopPropagation(),this.stepBack())},n.stepForward=function(){var e=0;void 0!==this.focusedChild_&&(e=this.focusedChild_+1),this.focus(e)},n.stepBack=function(){var e=0;void 0!==this.focusedChild_&&(e=this.focusedChild_-1),this.focus(e)},n.focus=function(e){void 0===e&&(e=0);var t=this.children().slice();t.length&&t[0].hasClass("vjs-menu-title")&&t.shift(),t.length>0&&(e<0?e=0:e>=t.length&&(e=t.length-1),this.focusedChild_=e,t[e].el_.focus())},t}(sn);sn.registerComponent("Menu",Ji);var Zi=function(e){function t(t,n){var r;void 0===n&&(n={}),(r=e.call(this,t,n)||this).menuButton_=new _i(t,n),r.menuButton_.controlText(r.controlText_),r.menuButton_.el_.setAttribute("aria-haspopup","true");var o=_i.prototype.buildCSSClass();r.menuButton_.el_.className=r.buildCSSClass()+" "+o,r.menuButton_.removeClass("vjs-control"),r.addChild(r.menuButton_),r.update(),r.enabled_=!0;var l=function(e){return r.handleClick(e)};return r.handleMenuKeyUp_=function(e){return r.handleMenuKeyUp(e)},r.on(r.menuButton_,"tap",l),r.on(r.menuButton_,"click",l),r.on(r.menuButton_,"keydown",(function(e){return r.handleKeyDown(e)})),r.on(r.menuButton_,"mouseenter",(function(){r.addClass("vjs-hover"),r.menu.show(),It(d.a,"keyup",r.handleMenuKeyUp_)})),r.on("mouseleave",(function(e){return r.handleMouseLeave(e)})),r.on("keydown",(function(e){return r.handleSubmenuKeyDown(e)})),r}w()(t,e);var n=t.prototype;return n.update=function(){var menu=this.createMenu();this.menu&&(this.menu.dispose(),this.removeChild(this.menu)),this.menu=menu,this.addChild(menu),this.buttonPressed_=!1,this.menuButton_.el_.setAttribute("aria-expanded","false"),this.items&&this.items.length<=this.hideThreshold_?(this.hide(),this.menu.contentEl_.removeAttribute("role")):(this.show(),this.menu.contentEl_.setAttribute("role","menu"))},n.createMenu=function(){var menu=new Ji(this.player_,{menuButton:this});if(this.hideThreshold_=0,this.options_.title){var e=Fe("li",{className:"vjs-menu-title",textContent:en(this.options_.title),tabIndex:-1}),t=new sn(this.player_,{el:e});menu.addItem(t)}if(this.items=this.createItems(),this.items)for(var i=0;i-1&&"showing"===track.mode){n=!1;break}}n!==this.isSelected_&&this.selected(n)},n.handleSelectedLanguageChange=function(e){for(var t=this.player().textTracks(),n=!0,i=0,r=t.length;i-1&&"showing"===track.mode){n=!1;break}}n&&(this.player_.cache_.selectedLanguage={enabled:!1})},t}(rr);sn.registerComponent("OffTextTrackMenuItem",ar);var or=function(e){function t(t,n){return void 0===n&&(n={}),n.tracks=t.textTracks(),e.call(this,t,n)||this}return w()(t,e),t.prototype.createItems=function(e,t){var label;void 0===e&&(e=[]),void 0===t&&(t=rr),this.label_&&(label=this.label_+" off"),e.push(new ar(this.player_,{kinds:this.kinds_,kind:this.kind_,label:label})),this.hideThreshold_+=1;var n=this.player_.textTracks();Array.isArray(this.kinds_)||(this.kinds_=[this.kind_]);for(var i=0;i-1){var r=new t(this.player_,{track:track,kinds:this.kinds_,kind:this.kind_,selectable:!0,multiSelectable:!1});r.addClass("vjs-"+track.kind+"-menu-item"),e.push(r)}}return e},t}(er);sn.registerComponent("TextTrackButton",or);var sr=function(e){function t(t,n){var r,track=n.track,o=n.cue,l=t.currentTime();return n.selectable=!0,n.multiSelectable=!1,n.label=o.text,n.selected=o.startTime<=l&&l=0;i--){var track=e[i];if(track.kind===this.kind_)return track}},n.getMenuCaption=function(){return this.track_&&this.track_.label?this.track_.label:this.localize(en(this.kind_))},n.createMenu=function(){return this.options_.title=this.getMenuCaption(),e.prototype.createMenu.call(this)},n.createItems=function(){var e=[];if(!this.track_)return e;var t=this.track_.cues;if(!t)return e;for(var i=0,n=t.length;i-1&&(r.label_="captions"),r.menuButton_.controlText(en(r.label_)),r}w()(t,e);var n=t.prototype;return n.buildCSSClass=function(){return"vjs-subs-caps-button "+e.prototype.buildCSSClass.call(this)},n.buildWrapperCSSClass=function(){return"vjs-subs-caps-button "+e.prototype.buildWrapperCSSClass.call(this)},n.createItems=function(){var t=[];return this.player().tech_&&this.player().tech_.featuresNativeTextTracks||!this.player().getChild("textTrackSettings")||(t.push(new dr(this.player_,{kind:this.label_})),this.hideThreshold_+=1),t=e.prototype.createItems.call(this,t,pr)},t}(or);mr.prototype.kinds_=["captions","subtitles"],mr.prototype.controlText_="Subtitles",sn.registerComponent("SubsCapsButton",mr);var gr=function(e){function t(t,n){var r,track=n.track,o=t.audioTracks();n.label=track.label||track.language||"Unknown",n.selected=track.enabled,(r=e.call(this,t,n)||this).track=track,r.addClass("vjs-"+track.kind+"-menu-item");var l=function(){for(var e=arguments.length,t=new Array(e),n=0;n=0;i--)t.push(new yr(this.player(),{rate:e[i]+"x"}));return t},n.updateARIAAttributes=function(){this.el().setAttribute("aria-valuenow",this.player().playbackRate())},n.handleClick=function(e){var t=this.player().playbackRate(),n=this.playbackRates(),r=(n.indexOf(t)+1)%n.length;this.player().playbackRate(n[r])},n.handlePlaybackRateschange=function(e){this.update()},n.playbackRates=function(){var e=this.player();return e.playbackRates&&e.playbackRates()||[]},n.playbackRateSupported=function(){return this.player().tech_&&this.player().tech_.featuresPlaybackRate&&this.playbackRates()&&this.playbackRates().length>0},n.updateVisibility=function(e){this.playbackRateSupported()?this.removeClass("vjs-hidden"):this.addClass("vjs-hidden")},n.updateLabel=function(e){this.playbackRateSupported()&&(this.labelEl_.textContent=this.player().playbackRate()+"x")},t}(Zi);_r.prototype.controlText_="Playback Rate",sn.registerComponent("PlaybackRateMenuButton",_r);var Tr=function(e){function t(){return e.apply(this,arguments)||this}w()(t,e);var n=t.prototype;return n.buildCSSClass=function(){return"vjs-spacer "+e.prototype.buildCSSClass.call(this)},n.createEl=function(t,n,r){return void 0===t&&(t="div"),void 0===n&&(n={}),void 0===r&&(r={}),n.className||(n.className=this.buildCSSClass()),e.prototype.createEl.call(this,t,n,r)},t}(sn);sn.registerComponent("Spacer",Tr);var wr=function(e){function t(){return e.apply(this,arguments)||this}w()(t,e);var n=t.prototype;return n.buildCSSClass=function(){return"vjs-custom-control-spacer "+e.prototype.buildCSSClass.call(this)},n.createEl=function(){return e.prototype.createEl.call(this,"div",{className:this.buildCSSClass(),textContent:" "})},t}(Tr);sn.registerComponent("CustomControlSpacer",wr);var Sr=function(e){function t(){return e.apply(this,arguments)||this}return w()(t,e),t.prototype.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-control-bar",dir:"ltr"})},t}(sn);Sr.prototype.options_={children:["playToggle","volumePanel","currentTimeDisplay","timeDivider","durationDisplay","progressControl","liveDisplay","seekToLive","remainingTimeDisplay","customControlSpacer","playbackRateMenuButton","chaptersButton","descriptionsButton","subsCapsButton","audioTrackButton","fullscreenToggle"]},"exitPictureInPicture"in d.a&&Sr.prototype.options_.children.splice(Sr.prototype.options_.children.length-1,0,"pictureInPictureToggle"),sn.registerComponent("ControlBar",Sr);var kr=function(e){function t(t,n){var r;return(r=e.call(this,t,n)||this).on(t,"error",(function(e){return r.open(e)})),r}w()(t,e);var n=t.prototype;return n.buildCSSClass=function(){return"vjs-error-display "+e.prototype.buildCSSClass.call(this)},n.content=function(){var e=this.player().error();return e?this.localize(e.message):""},t}(_n);kr.prototype.options_=f()({},_n.prototype.options_,{pauseOnOpen:!1,fillAlways:!0,temporary:!1,uncloseable:!0}),sn.registerComponent("ErrorDisplay",kr);var xr="vjs-text-track-settings",Cr=["#000","Black"],Ar=["#00F","Blue"],Er=["#0FF","Cyan"],Dr=["#0F0","Green"],Ir=["#F0F","Magenta"],jr=["#F00","Red"],Pr=["#FFF","White"],Or=["#FF0","Yellow"],Mr=["1","Opaque"],Lr=["0.5","Semi-Transparent"],Nr=["0","Transparent"],Rr={backgroundColor:{selector:".vjs-bg-color > select",id:"captions-background-color-%s",label:"Color",options:[Cr,Pr,jr,Dr,Ar,Or,Ir,Er]},backgroundOpacity:{selector:".vjs-bg-opacity > select",id:"captions-background-opacity-%s",label:"Transparency",options:[Mr,Lr,Nr]},color:{selector:".vjs-fg-color > select",id:"captions-foreground-color-%s",label:"Color",options:[Pr,Cr,jr,Dr,Ar,Or,Ir,Er]},edgeStyle:{selector:".vjs-edge-style > select",id:"%s",label:"Text Edge Style",options:[["none","None"],["raised","Raised"],["depressed","Depressed"],["uniform","Uniform"],["dropshadow","Dropshadow"]]},fontFamily:{selector:".vjs-font-family > select",id:"captions-font-family-%s",label:"Font Family",options:[["proportionalSansSerif","Proportional Sans-Serif"],["monospaceSansSerif","Monospace Sans-Serif"],["proportionalSerif","Proportional Serif"],["monospaceSerif","Monospace Serif"],["casual","Casual"],["script","Script"],["small-caps","Small Caps"]]},fontPercent:{selector:".vjs-font-percent > select",id:"captions-font-size-%s",label:"Font Size",options:[["0.50","50%"],["0.75","75%"],["1.00","100%"],["1.25","125%"],["1.50","150%"],["1.75","175%"],["2.00","200%"],["3.00","300%"],["4.00","400%"]],default:2,parser:function(e){return"1.00"===e?null:Number(e)}},textOpacity:{selector:".vjs-text-opacity > select",id:"captions-foreground-opacity-%s",label:"Transparency",options:[Mr,Lr]},windowColor:{selector:".vjs-window-color > select",id:"captions-window-color-%s",label:"Color"},windowOpacity:{selector:".vjs-window-opacity > select",id:"captions-window-opacity-%s",label:"Transparency",options:[Nr,Lr,Mr]}};function Br(e,t){if(t&&(e=t(e)),e&&"none"!==e)return e}Rr.windowColor.options=Rr.backgroundColor.options;var Fr=function(e){function t(t,n){var r;return n.temporary=!1,(r=e.call(this,t,n)||this).updateDisplay=r.updateDisplay.bind(_()(r)),r.fill(),r.hasBeenOpened_=r.hasBeenFilled_=!0,r.endDialog=Fe("p",{className:"vjs-control-text",textContent:r.localize("End of dialog window.")}),r.el().appendChild(r.endDialog),r.setDefaults(),void 0===n.persistTextTrackSettings&&(r.options_.persistTextTrackSettings=r.options_.playerOptions.persistTextTrackSettings),r.on(r.$(".vjs-done-button"),"click",(function(){r.saveSettings(),r.close()})),r.on(r.$(".vjs-default-button"),"click",(function(){r.setDefaults(),r.updateDisplay()})),oe(Rr,(function(e){r.on(r.$(e.selector),"change",r.updateDisplay)})),r.options_.persistTextTrackSettings&&r.restoreSettings(),r}w()(t,e);var n=t.prototype;return n.dispose=function(){this.endDialog=null,e.prototype.dispose.call(this)},n.createElSelect_=function(e,t,n){var r=this;void 0===t&&(t=""),void 0===n&&(n="label");var o=Rr[e],l=o.id.replace("%s",this.id_),c=[t,l].join(" ").trim();return["<"+n+' id="'+l+'" class="'+("label"===n?"vjs-label":"")+'">',this.localize(o.label),"",'").join("")},n.createElFgColor_=function(){var e="captions-text-legend-"+this.id_;return['
','',this.localize("Text"),"",this.createElSelect_("color",e),'',this.createElSelect_("textOpacity",e),"","
"].join("")},n.createElBgColor_=function(){var e="captions-background-"+this.id_;return['
','',this.localize("Background"),"",this.createElSelect_("backgroundColor",e),'',this.createElSelect_("backgroundOpacity",e),"","
"].join("")},n.createElWinColor_=function(){var e="captions-window-"+this.id_;return['
','',this.localize("Window"),"",this.createElSelect_("windowColor",e),'',this.createElSelect_("windowOpacity",e),"","
"].join("")},n.createElColors_=function(){return Fe("div",{className:"vjs-track-settings-colors",innerHTML:[this.createElFgColor_(),this.createElBgColor_(),this.createElWinColor_()].join("")})},n.createElFont_=function(){return Fe("div",{className:"vjs-track-settings-font",innerHTML:['
',this.createElSelect_("fontPercent","","legend"),"
",'
',this.createElSelect_("edgeStyle","","legend"),"
",'
',this.createElSelect_("fontFamily","","legend"),"
"].join("")})},n.createElControls_=function(){var e=this.localize("restore all settings to the default values");return Fe("div",{className:"vjs-track-settings-controls",innerHTML:['",'"].join("")})},n.content=function(){return[this.createElColors_(),this.createElFont_(),this.createElControls_()]},n.label=function(){return this.localize("Caption Settings Dialog")},n.description=function(){return this.localize("Beginning of dialog window. Escape will cancel and close the window.")},n.buildCSSClass=function(){return e.prototype.buildCSSClass.call(this)+" vjs-text-track-settings"},n.getValues=function(){var object,e,t,n=this;return e=function(e,t,r){var o,l,c=(o=n.$(t.selector),l=t.parser,Br(o.options[o.options.selectedIndex].value,l));return void 0!==c&&(e[r]=c),e},void 0===(t={})&&(t=0),ae(object=Rr).reduce((function(t,n){return e(t,object[n],n)}),t)},n.setValues=function(e){var t=this;oe(Rr,(function(n,r){!function(e,t,n){if(t)for(var i=0;ithis.options_.liveTolerance;this.timeupdateSeen_&&r!==1/0||(c=!1),c!==this.behindLiveEdge_&&(this.behindLiveEdge_=c,this.trigger("liveedgechange"))}},n.handleDurationchange=function(){this.toggleTracking()},n.toggleTracking=function(){this.player_.duration()===1/0&&this.liveWindow()>=this.options_.trackingThreshold?(this.player_.options_.liveui&&this.player_.addClass("vjs-liveui"),this.startTracking()):(this.player_.removeClass("vjs-liveui"),this.stopTracking())},n.startTracking=function(){this.isTracking()||(this.timeupdateSeen_||(this.timeupdateSeen_=this.player_.hasStarted()),this.trackingInterval_=this.setInterval(this.trackLiveHandler_,Rt),this.trackLive_(),this.on(this.player_,["play","pause"],this.trackLiveHandler_),this.timeupdateSeen_?this.on(this.player_,"seeked",this.handleSeeked_):(this.one(this.player_,"play",this.handlePlay_),this.one(this.player_,"timeupdate",this.handleFirstTimeupdate_)))},n.handleFirstTimeupdate=function(){this.timeupdateSeen_=!0,this.on(this.player_,"seeked",this.handleSeeked_)},n.handleSeeked=function(){var e=Math.abs(this.liveCurrentTime()-this.player_.currentTime());this.seekedBehindLive_=this.nextSeekedFromUser_&&e>2,this.nextSeekedFromUser_=!1,this.trackLive_()},n.handlePlay=function(){this.one(this.player_,"timeupdate",this.seekToLiveEdge_)},n.reset_=function(){this.lastTime_=-1,this.pastSeekEnd_=0,this.lastSeekEnd_=-1,this.behindLiveEdge_=!0,this.timeupdateSeen_=!1,this.seekedBehindLive_=!1,this.nextSeekedFromUser_=!1,this.clearInterval(this.trackingInterval_),this.trackingInterval_=null,this.off(this.player_,["play","pause"],this.trackLiveHandler_),this.off(this.player_,"seeked",this.handleSeeked_),this.off(this.player_,"play",this.handlePlay_),this.off(this.player_,"timeupdate",this.handleFirstTimeupdate_),this.off(this.player_,"timeupdate",this.seekToLiveEdge_)},n.nextSeekedFromUser=function(){this.nextSeekedFromUser_=!0},n.stopTracking=function(){this.isTracking()&&(this.reset_(),this.trigger("liveedgechange"))},n.seekableEnd=function(){for(var e=this.player_.seekable(),t=[],i=e?e.length:0;i--;)t.push(e.end(i));return t.length?t.sort()[t.length-1]:1/0},n.seekableStart=function(){for(var e=this.player_.seekable(),t=[],i=e?e.length:0;i--;)t.push(e.start(i));return t.length?t.sort()[0]:0},n.liveWindow=function(){var e=this.liveCurrentTime();return e===1/0?0:e-this.seekableStart()},n.isLive=function(){return this.isTracking()},n.atLiveEdge=function(){return!this.behindLiveEdge()},n.liveCurrentTime=function(){return this.pastSeekEnd()+this.seekableEnd()},n.pastSeekEnd=function(){var e=this.seekableEnd();return-1!==this.lastSeekEnd_&&e!==this.lastSeekEnd_&&(this.pastSeekEnd_=0),this.lastSeekEnd_=e,this.pastSeekEnd_},n.behindLiveEdge=function(){return this.behindLiveEdge_},n.isTracking=function(){return"number"==typeof this.trackingInterval_},n.seekToLiveEdge=function(){this.seekedBehindLive_=!1,this.atLiveEdge()||(this.nextSeekedFromUser_=!1,this.player_.currentTime(this.liveCurrentTime()))},n.dispose=function(){this.off(d.a,"visibilitychange",this.handleVisibilityChange_),this.stopTracking(),e.prototype.dispose.call(this)},t}(sn);sn.registerComponent("LiveTracker",Hr);var zr,qr=function(e){var t=e.el();if(t.hasAttribute("src"))return e.triggerSourceset(t.src),!0;var n=e.$$("source"),r=[],o="";if(!n.length)return!1;for(var i=0;i=2&&o.push("loadeddata"),e.readyState>=3&&o.push("canplay"),e.readyState>=4&&o.push("canplaythrough"),this.ready((function(){o.forEach((function(e){this.trigger(e)}),this)}))}},n.setScrubbing=function(e){this.isScrubbing_=e},n.scrubbing=function(){return this.isScrubbing_},n.setCurrentTime=function(e){try{this.isScrubbing_&&this.el_.fastSeek&&je?this.el_.fastSeek(e):this.el_.currentTime=e}catch(e){ne(e,"Video is not ready. (Video.js)")}},n.duration=function(){var e=this;if(this.el_.duration===1/0&&ve&&we&&0===this.el_.currentTime){return this.on("timeupdate",(function t(){e.el_.currentTime>0&&(e.el_.duration===1/0&&e.trigger("durationchange"),e.off("timeupdate",t))})),NaN}return this.el_.duration||NaN},n.width=function(){return this.el_.offsetWidth},n.height=function(){return this.el_.offsetHeight},n.proxyWebkitFullscreen_=function(){var e=this;if("webkitDisplayingFullscreen"in this.el_){var t=function(){this.trigger("fullscreenchange",{isFullscreen:!1}),this.el_.controls&&!this.options_.nativeControlsForTouch&&this.controls()&&(this.el_.controls=!1)},n=function(){"webkitPresentationMode"in this.el_&&"picture-in-picture"!==this.el_.webkitPresentationMode&&(this.one("webkitendfullscreen",t),this.trigger("fullscreenchange",{isFullscreen:!0,nativeIOSFullscreen:!0}))};this.on("webkitbeginfullscreen",n),this.on("dispose",(function(){e.off("webkitbeginfullscreen",n),e.off("webkitendfullscreen",t)}))}},n.supportsFullScreen=function(){if("function"==typeof this.el_.webkitEnterFullScreen){var e=l.a.navigator&&l.a.navigator.userAgent||"";if(/Android/.test(e)||!/Chrome|Mac OS X 10.5/.test(e))return!0}return!1},n.enterFullScreen=function(){var video=this.el_;if(video.paused&&video.networkState<=video.HAVE_METADATA)mn(this.el_.play()),this.setTimeout((function(){video.pause();try{video.webkitEnterFullScreen()}catch(e){this.trigger("fullscreenerror",e)}}),0);else try{video.webkitEnterFullScreen()}catch(e){this.trigger("fullscreenerror",e)}},n.exitFullScreen=function(){this.el_.webkitDisplayingFullscreen?this.el_.webkitExitFullScreen():this.trigger("fullscreenerror",new Error("The video is not fullscreen"))},n.requestPictureInPicture=function(){return this.el_.requestPictureInPicture()},n.requestVideoFrameCallback=function(t){return this.featuresVideoFrameCallback&&!this.el_.webkitKeys?this.el_.requestVideoFrameCallback(t):e.prototype.requestVideoFrameCallback.call(this,t)},n.cancelVideoFrameCallback=function(t){this.featuresVideoFrameCallback&&!this.el_.webkitKeys?this.el_.cancelVideoFrameCallback(t):e.prototype.cancelVideoFrameCallback.call(this,t)},n.src=function(e){if(void 0===e)return this.el_.src;this.setSrc(e)},n.reset=function(){t.resetMediaElement(this.el_)},n.currentSrc=function(){return this.currentSource_?this.currentSource_.src:this.el_.currentSrc},n.setControls=function(e){this.el_.controls=!!e},n.addTextTrack=function(t,label,n){return this.featuresNativeTextTracks?this.el_.addTextTrack(t,label,n):e.prototype.addTextTrack.call(this,t,label,n)},n.createRemoteTextTrack=function(t){if(!this.featuresNativeTextTracks)return e.prototype.createRemoteTextTrack.call(this,t);var n=d.a.createElement("track");return t.kind&&(n.kind=t.kind),t.label&&(n.label=t.label),(t.language||t.srclang)&&(n.srclang=t.language||t.srclang),t.default&&(n.default=t.default),t.id&&(n.id=t.id),t.src&&(n.src=t.src),n},n.addRemoteTextTrack=function(t,n){var r=e.prototype.addRemoteTextTrack.call(this,t,n);return this.featuresNativeTextTracks&&this.el().appendChild(r),r},n.removeRemoteTextTrack=function(track){if(e.prototype.removeRemoteTextTrack.call(this,track),this.featuresNativeTextTracks)for(var t=this.$$("track"),i=t.length;i--;)track!==t[i]&&track!==t[i].track||this.el().removeChild(t[i])},n.getVideoPlaybackQuality=function(){if("function"==typeof this.el().getVideoPlaybackQuality)return this.el().getVideoPlaybackQuality();var e={};return void 0!==this.el().webkitDroppedFrameCount&&void 0!==this.el().webkitDecodedFrameCount&&(e.droppedVideoFrames=this.el().webkitDroppedFrameCount,e.totalVideoFrames=this.el().webkitDecodedFrameCount),l.a.performance&&"function"==typeof l.a.performance.now?e.creationTime=l.a.performance.now():l.a.performance&&l.a.performance.timing&&"number"==typeof l.a.performance.timing.navigationStart&&(e.creationTime=l.a.Date.now()-l.a.performance.timing.navigationStart),e},t}(Xn);Kr(Qr,"TEST_VID",(function(){if(Le()){var video=d.a.createElement("video"),track=d.a.createElement("track");return track.kind="captions",track.srclang="en",track.label="English",video.appendChild(track),video}})),Qr.isSupported=function(){try{Qr.TEST_VID.volume=.5}catch(e){return!1}return!(!Qr.TEST_VID||!Qr.TEST_VID.canPlayType)},Qr.canPlayType=function(e){return Qr.TEST_VID.canPlayType(e)},Qr.canPlaySource=function(e,t){return Qr.canPlayType(e.type)},Qr.canControlVolume=function(){try{var e=Qr.TEST_VID.volume;Qr.TEST_VID.volume=e/2+.1;var t=e!==Qr.TEST_VID.volume;return t&&Ie?(l.a.setTimeout((function(){Qr&&Qr.prototype&&(Qr.prototype.featuresVolumeControl=e!==Qr.TEST_VID.volume)})),!1):t}catch(e){return!1}},Qr.canMuteVolume=function(){try{var e=Qr.TEST_VID.muted;return Qr.TEST_VID.muted=!e,Qr.TEST_VID.muted?Xe(Qr.TEST_VID,"muted","muted"):Ke(Qr.TEST_VID,"muted"),e!==Qr.TEST_VID.muted}catch(e){return!1}},Qr.canControlPlaybackRate=function(){if(ve&&we&&Se<58)return!1;try{var e=Qr.TEST_VID.playbackRate;return Qr.TEST_VID.playbackRate=e/2+.1,e!==Qr.TEST_VID.playbackRate}catch(e){return!1}},Qr.canOverrideAttributes=function(){try{var e=function(){};Object.defineProperty(d.a.createElement("video"),"src",{get:e,set:e}),Object.defineProperty(d.a.createElement("audio"),"src",{get:e,set:e}),Object.defineProperty(d.a.createElement("video"),"innerHTML",{get:e,set:e}),Object.defineProperty(d.a.createElement("audio"),"innerHTML",{get:e,set:e})}catch(e){return!1}return!0},Qr.supportsNativeTextTracks=function(){return je||Ie&&we},Qr.supportsNativeVideoTracks=function(){return!(!Qr.TEST_VID||!Qr.TEST_VID.videoTracks)},Qr.supportsNativeAudioTracks=function(){return!(!Qr.TEST_VID||!Qr.TEST_VID.audioTracks)},Qr.Events=["loadstart","suspend","abort","error","emptied","stalled","loadedmetadata","loadeddata","canplay","canplaythrough","playing","waiting","seeking","seeked","ended","durationchange","timeupdate","progress","play","pause","ratechange","resize","volumechange"],[["featuresMuteControl","canMuteVolume"],["featuresPlaybackRate","canControlPlaybackRate"],["featuresSourceset","canOverrideAttributes"],["featuresNativeTextTracks","supportsNativeTextTracks"],["featuresNativeVideoTracks","supportsNativeVideoTracks"],["featuresNativeAudioTracks","supportsNativeAudioTracks"]].forEach((function(e){var t=e[0],n=e[1];Kr(Qr.prototype,t,(function(){return Qr[n]()}),!0)})),Qr.prototype.featuresVolumeControl=Qr.canControlVolume(),Qr.prototype.movingMediaElementInDOM=!Ie,Qr.prototype.featuresFullscreenResize=!0,Qr.prototype.featuresProgressEvents=!0,Qr.prototype.featuresTimeupdateEvents=!0,Qr.prototype.featuresVideoFrameCallback=!(!Qr.TEST_VID||!Qr.TEST_VID.requestVideoFrameCallback),Qr.patchCanPlayType=function(){ye>=4&&!_e&&!we&&(zr=Qr.TEST_VID&&Qr.TEST_VID.constructor.prototype.canPlayType,Qr.TEST_VID.constructor.prototype.canPlayType=function(e){return e&&/^application\/(?:x-|vnd\.apple\.)mpegurl/i.test(e)?"maybe":zr.call(this,e)})},Qr.unpatchCanPlayType=function(){var e=Qr.TEST_VID.constructor.prototype.canPlayType;return zr&&(Qr.TEST_VID.constructor.prototype.canPlayType=zr),e},Qr.patchCanPlayType(),Qr.disposeMediaElement=function(e){if(e){for(e.parentNode&&e.parentNode.removeChild(e);e.hasChildNodes();)e.removeChild(e.firstChild);e.removeAttribute("src"),"function"==typeof e.load&&function(){try{e.load()}catch(e){}}()}},Qr.resetMediaElement=function(e){if(e){for(var t=e.querySelectorAll("source"),i=t.length;i--;)e.removeChild(t[i]);e.removeAttribute("src"),"function"==typeof e.load&&function(){try{e.load()}catch(e){}}()}},["muted","defaultMuted","autoplay","controls","loop","playsinline"].forEach((function(e){Qr.prototype[e]=function(){return this.el_[e]||this.el_.hasAttribute(e)}})),["muted","defaultMuted","autoplay","loop","playsinline"].forEach((function(e){Qr.prototype["set"+en(e)]=function(t){this.el_[e]=t,t?this.el_.setAttribute(e,e):this.el_.removeAttribute(e)}})),["paused","currentTime","buffered","volume","poster","preload","error","seeking","seekable","ended","playbackRate","defaultPlaybackRate","disablePictureInPicture","played","networkState","readyState","videoWidth","videoHeight","crossOrigin"].forEach((function(e){Qr.prototype[e]=function(){return this.el_[e]}})),["volume","src","poster","preload","playbackRate","defaultPlaybackRate","disablePictureInPicture","crossOrigin"].forEach((function(e){Qr.prototype["set"+en(e)]=function(t){this.el_[e]=t}})),["pause","load","play"].forEach((function(e){Qr.prototype[e]=function(){return this.el_[e]()}})),Xn.withSourceHandlers(Qr),Qr.nativeSourceHandler={},Qr.nativeSourceHandler.canPlayType=function(e){try{return Qr.TEST_VID.canPlayType(e)}catch(e){return""}},Qr.nativeSourceHandler.canHandleSource=function(source,e){if(source.type)return Qr.nativeSourceHandler.canPlayType(source.type);if(source.src){var t=Rn(source.src);return Qr.nativeSourceHandler.canPlayType("video/"+t)}return""},Qr.nativeSourceHandler.handleSource=function(source,e,t){e.setSrc(source.src)},Qr.nativeSourceHandler.dispose=function(){},Qr.registerSourceHandler(Qr.nativeSourceHandler),Xn.registerTech("Html5",Qr);var Jr=["progress","abort","suspend","emptied","stalled","loadedmetadata","loadeddata","timeupdate","resize","volumechange","texttrackchange"],Zr={canplay:"CanPlay",canplaythrough:"CanPlayThrough",playing:"Playing",seeked:"Seeked"},ea=["tiny","xsmall","small","medium","large","xlarge","huge"],ta={};ea.forEach((function(e){var t="x"===e.charAt(0)?"x-"+e.substring(1):e;ta[e]="vjs-layout-"+t}));var na={tiny:210,xsmall:320,small:425,medium:768,large:1440,xlarge:2560,huge:1/0},ia=function(e){function t(n,r,o){var l;if(n.id=n.id||r.id||"vjs_video_"+wt(),(r=se(t.getTagSettings(n),r)).initChildren=!1,r.createEl=!1,r.evented=!1,r.reportTouchActivity=!1,!r.language)if("function"==typeof n.closest){var c=n.closest("[lang]");c&&c.getAttribute&&(r.language=c.getAttribute("lang"))}else for(var element=n;element&&1===element.nodeType;){if(Ge(element).hasOwnProperty("lang")){r.language=element.getAttribute("lang");break}element=element.parentNode}if((l=e.call(this,null,r,o)||this).boundDocumentFullscreenChange_=function(e){return l.documentFullscreenChange_(e)},l.boundFullWindowOnEscKey_=function(e){return l.fullWindowOnEscKey(e)},l.boundUpdateStyleEl_=function(e){return l.updateStyleEl_(e)},l.boundApplyInitTime_=function(e){return l.applyInitTime_(e)},l.boundUpdateCurrentBreakpoint_=function(e){return l.updateCurrentBreakpoint_(e)},l.boundHandleTechClick_=function(e){return l.handleTechClick_(e)},l.boundHandleTechDoubleClick_=function(e){return l.handleTechDoubleClick_(e)},l.boundHandleTechTouchStart_=function(e){return l.handleTechTouchStart_(e)},l.boundHandleTechTouchMove_=function(e){return l.handleTechTouchMove_(e)},l.boundHandleTechTouchEnd_=function(e){return l.handleTechTouchEnd_(e)},l.boundHandleTechTap_=function(e){return l.handleTechTap_(e)},l.isFullscreen_=!1,l.log=ie(l.id_),l.fsApi_=Q,l.isPosterFromTech_=!1,l.queuedCallbacks_=[],l.isReady_=!1,l.hasStarted_=!1,l.userActive_=!1,l.debugEnabled_=!1,l.audioOnlyMode_=!1,l.audioPosterMode_=!1,l.audioOnlyCache_={playerHeight:null,hiddenChildren:[]},!l.options_||!l.options_.techOrder||!l.options_.techOrder.length)throw new Error("No techOrder specified. Did you overwrite videojs.options instead of just changing the properties you want to override?");if(l.tag=n,l.tagAttributes=n&&Ge(n),l.language(l.options_.language),r.languages){var h={};Object.getOwnPropertyNames(r.languages).forEach((function(e){h[e.toLowerCase()]=r.languages[e]})),l.languages_=h}else l.languages_=t.prototype.options_.languages;l.resetCache_(),l.poster_=r.poster||"",l.controls_=!!r.controls,n.controls=!1,n.removeAttribute("controls"),l.changingSrc_=!1,l.playCallbacks_=[],l.playTerminatedQueue_=[],n.hasAttribute("autoplay")?l.autoplay(!0):l.autoplay(l.options_.autoplay),r.plugins&&Object.keys(r.plugins).forEach((function(e){if("function"!=typeof l[e])throw new Error('plugin "'+e+'" does not exist')})),l.scrubbing_=!1,l.el_=l.createEl(),Kt(_()(l),{eventBusKey:"el_"}),l.fsApi_.requestFullscreen&&(It(d.a,l.fsApi_.fullscreenchange,l.boundDocumentFullscreenChange_),l.on(l.fsApi_.fullscreenchange,l.boundDocumentFullscreenChange_)),l.fluid_&&l.on(["playerreset","resize"],l.boundUpdateStyleEl_);var f=tn(l.options_);r.plugins&&Object.keys(r.plugins).forEach((function(e){l[e](r.plugins[e])})),r.debug&&l.debug(!0),l.options_.playerOptions=f,l.middleware_=[],l.playbackRates(r.playbackRates),l.initChildren(),l.isAudio("audio"===n.nodeName.toLowerCase()),l.controls()?l.addClass("vjs-controls-enabled"):l.addClass("vjs-controls-disabled"),l.el_.setAttribute("role","region"),l.isAudio()?l.el_.setAttribute("aria-label",l.localize("Audio Player")):l.el_.setAttribute("aria-label",l.localize("Video Player")),l.isAudio()&&l.addClass("vjs-audio"),l.flexNotSupported_()&&l.addClass("vjs-no-flex"),Ae&&l.addClass("vjs-touch-enabled"),Ie||l.addClass("vjs-workinghover"),t.players[l.id_]=_()(l);var m=G.split(".")[0];return l.addClass("vjs-v"+m),l.userActive(!0),l.reportUserActivity(),l.one("play",(function(e){return l.listenForUserActivity_(e)})),l.on("stageclick",(function(e){return l.handleStageClick_(e)})),l.on("keydown",(function(e){return l.handleKeyDown(e)})),l.on("languagechange",(function(e){return l.handleLanguagechange(e)})),l.breakpoints(l.options_.breakpoints),l.responsive(l.options_.responsive),l.on("ready",(function(){l.audioPosterMode(l.options_.audioPosterMode),l.audioOnlyMode(l.options_.audioOnlyMode)})),l}w()(t,e);var n=t.prototype;return n.dispose=function(){var n=this;this.trigger("dispose"),this.off("dispose"),jt(d.a,this.fsApi_.fullscreenchange,this.boundDocumentFullscreenChange_),jt(d.a,"keydown",this.boundFullWindowOnEscKey_),this.styleEl_&&this.styleEl_.parentNode&&(this.styleEl_.parentNode.removeChild(this.styleEl_),this.styleEl_=null),t.players[this.id_]=null,this.tag&&this.tag.player&&(this.tag.player=null),this.el_&&this.el_.player&&(this.el_.player=null),this.tech_&&(this.tech_.dispose(),this.isPosterFromTech_=!1,this.poster_=""),this.playerElIngest_&&(this.playerElIngest_=null),this.tag&&(this.tag=null),Qn[this.id()]=null,Yn.names.forEach((function(e){var t=Yn[e],r=n[t.getterName]();r&&r.off&&r.off()})),e.prototype.dispose.call(this,{restoreEl:this.options_.restoreEl})},n.createEl=function(){var t,n=this.tag,r=this.playerElIngest_=n.parentNode&&n.parentNode.hasAttribute&&n.parentNode.hasAttribute("data-vjs-player"),o="video-js"===this.tag.tagName.toLowerCase();r?t=this.el_=n.parentNode:o||(t=this.el_=e.prototype.createEl.call(this,"div"));var c=Ge(n);if(o){for(t=this.el_=n,n=this.tag=d.a.createElement("video");t.children.length;)n.appendChild(t.firstChild);He(t,"video-js")||ze(t,"video-js"),t.appendChild(n),r=this.playerElIngest_=t,Object.keys(t).forEach((function(e){try{n[e]=t[e]}catch(e){}}))}if(n.setAttribute("tabindex","-1"),c.tabindex="-1",(ke||we&&Ce)&&(n.setAttribute("role","application"),c.role="application"),n.removeAttribute("width"),n.removeAttribute("height"),"width"in c&&delete c.width,"height"in c&&delete c.height,Object.getOwnPropertyNames(c).forEach((function(e){o&&"class"===e||t.setAttribute(e,c[e]),o&&n.setAttribute(e,c[e])})),n.playerId=n.id,n.id+="_html5_api",n.className="vjs-tech",n.player=t.player=this,this.addClass("vjs-paused"),!0!==l.a.VIDEOJS_NO_DYNAMIC_STYLE){this.styleEl_=bt("vjs-styles-dimensions");var h=ct(".vjs-styles-defaults"),head=ct("head");head.insertBefore(this.styleEl_,h?h.nextSibling:head.firstChild)}this.fill_=!1,this.fluid_=!1,this.width(this.options_.width),this.height(this.options_.height),this.fill(this.options_.fill),this.fluid(this.options_.fluid),this.aspectRatio(this.options_.aspectRatio),this.crossOrigin(this.options_.crossOrigin||this.options_.crossorigin);for(var f=n.getElementsByTagName("a"),i=0;i0?this.videoWidth()+":"+this.videoHeight():"16:9").split(":"),o=r[1]/r[0];e=void 0!==this.width_?this.width_:void 0!==this.height_?this.height_/o:this.videoWidth()||300,t=void 0!==this.height_?this.height_:e*o,n=/^[^a-zA-Z]/.test(this.id())?"dimensions-"+this.id():this.id()+"-dimensions",this.addClass(n),_t(this.styleEl_,"\n ."+n+" {\n width: "+e+"px;\n height: "+t+"px;\n }\n\n ."+n+".vjs-fluid:not(.vjs-audio-only-mode) {\n padding-top: "+100*o+"%;\n }\n ")}else{var c="number"==typeof this.width_?this.width_:this.options_.width,d="number"==typeof this.height_?this.height_:this.options_.height,h=this.tech_&&this.tech_.el();h&&(c>=0&&(h.width=c),d>=0&&(h.height=d))}},n.loadTech_=function(e,source){var t=this;this.tech_&&this.unloadTech_();var n=en(e),r=e.charAt(0).toLowerCase()+e.slice(1);"Html5"!==n&&this.tag&&(Xn.getTech("Html5").disposeMediaElement(this.tag),this.tag.player=null,this.tag=null),this.techName_=n,this.isReady_=!1;var o=this.autoplay();("string"==typeof this.autoplay()||!0===this.autoplay()&&this.options_.normalizeAutoplay)&&(o=!1);var l={source:source,autoplay:o,nativeControlsForTouch:this.options_.nativeControlsForTouch,playerId:this.id(),techId:this.id()+"_"+r+"_api",playsinline:this.options_.playsinline,preload:this.options_.preload,loop:this.options_.loop,disablePictureInPicture:this.options_.disablePictureInPicture,muted:this.options_.muted,poster:this.poster(),language:this.language(),playerElIngest:this.playerElIngest_||!1,"vtt.js":this.options_["vtt.js"],canOverridePoster:!!this.options_.techCanOverridePoster,enableSourceset:this.options_.enableSourceset,Promise:this.options_.Promise};Yn.names.forEach((function(e){var n=Yn[e];l[n.getterName]=t[n.privateName]})),se(l,this.options_[n]),se(l,this.options_[r]),se(l,this.options_[e.toLowerCase()]),this.tag&&(l.tag=this.tag),source&&source.src===this.cache_.src&&this.cache_.currentTime>0&&(l.startTime=this.cache_.currentTime);var c=Xn.getTech(e);if(!c)throw new Error("No Tech named '"+n+"' exists! '"+n+"' should be registered using videojs.registerTech()'");this.tech_=new c(l),this.tech_.ready(Bt(this,this.handleTechReady_),!0),yn(this.textTracksJson_||[],this.tech_),Jr.forEach((function(e){t.on(t.tech_,e,(function(n){return t["handleTech"+en(e)+"_"](n)}))})),Object.keys(Zr).forEach((function(e){t.on(t.tech_,e,(function(n){0===t.tech_.playbackRate()&&t.tech_.seeking()?t.queuedCallbacks_.push({callback:t["handleTech"+Zr[e]+"_"].bind(t),event:n}):t["handleTech"+Zr[e]+"_"](n)}))})),this.on(this.tech_,"loadstart",(function(e){return t.handleTechLoadStart_(e)})),this.on(this.tech_,"sourceset",(function(e){return t.handleTechSourceset_(e)})),this.on(this.tech_,"waiting",(function(e){return t.handleTechWaiting_(e)})),this.on(this.tech_,"ended",(function(e){return t.handleTechEnded_(e)})),this.on(this.tech_,"seeking",(function(e){return t.handleTechSeeking_(e)})),this.on(this.tech_,"play",(function(e){return t.handleTechPlay_(e)})),this.on(this.tech_,"firstplay",(function(e){return t.handleTechFirstPlay_(e)})),this.on(this.tech_,"pause",(function(e){return t.handleTechPause_(e)})),this.on(this.tech_,"durationchange",(function(e){return t.handleTechDurationChange_(e)})),this.on(this.tech_,"fullscreenchange",(function(e,data){return t.handleTechFullscreenChange_(e,data)})),this.on(this.tech_,"fullscreenerror",(function(e,n){return t.handleTechFullscreenError_(e,n)})),this.on(this.tech_,"enterpictureinpicture",(function(e){return t.handleTechEnterPictureInPicture_(e)})),this.on(this.tech_,"leavepictureinpicture",(function(e){return t.handleTechLeavePictureInPicture_(e)})),this.on(this.tech_,"error",(function(e){return t.handleTechError_(e)})),this.on(this.tech_,"posterchange",(function(e){return t.handleTechPosterChange_(e)})),this.on(this.tech_,"textdata",(function(e){return t.handleTechTextData_(e)})),this.on(this.tech_,"ratechange",(function(e){return t.handleTechRateChange_(e)})),this.on(this.tech_,"loadedmetadata",this.boundUpdateStyleEl_),this.usingNativeControls(this.techGet_("controls")),this.controls()&&!this.usingNativeControls()&&this.addTechControlsListeners_(),this.tech_.el().parentNode===this.el()||"Html5"===n&&this.tag||Ve(this.tech_.el(),this.el()),this.tag&&(this.tag.player=null,this.tag=null)},n.unloadTech_=function(){var e=this;Yn.names.forEach((function(t){var n=Yn[t];e[n.privateName]=e[n.getterName]()})),this.textTracksJson_=vn(this.tech_),this.isReady_=!1,this.tech_.dispose(),this.tech_=!1,this.isPosterFromTech_&&(this.poster_="",this.trigger("posterchange")),this.isPosterFromTech_=!1},n.tech=function(e){return void 0===e&&ne.warn("Using the tech directly can be dangerous. I hope you know what you're doing.\nSee https://github.com/videojs/video.js/issues/2617 for more info.\n"),this.tech_},n.addTechControlsListeners_=function(){this.removeTechControlsListeners_(),this.on(this.tech_,"click",this.boundHandleTechClick_),this.on(this.tech_,"dblclick",this.boundHandleTechDoubleClick_),this.on(this.tech_,"touchstart",this.boundHandleTechTouchStart_),this.on(this.tech_,"touchmove",this.boundHandleTechTouchMove_),this.on(this.tech_,"touchend",this.boundHandleTechTouchEnd_),this.on(this.tech_,"tap",this.boundHandleTechTap_)},n.removeTechControlsListeners_=function(){this.off(this.tech_,"tap",this.boundHandleTechTap_),this.off(this.tech_,"touchstart",this.boundHandleTechTouchStart_),this.off(this.tech_,"touchmove",this.boundHandleTechTouchMove_),this.off(this.tech_,"touchend",this.boundHandleTechTouchEnd_),this.off(this.tech_,"click",this.boundHandleTechClick_),this.off(this.tech_,"dblclick",this.boundHandleTechDoubleClick_)},n.handleTechReady_=function(){this.triggerReady(),this.cache_.volume&&this.techCall_("setVolume",this.cache_.volume),this.handleTechPosterChange_(),this.handleTechDurationChange_()},n.handleTechLoadStart_=function(){this.removeClass("vjs-ended"),this.removeClass("vjs-seeking"),this.error(null),this.handleTechDurationChange_(),this.paused()?(this.hasStarted(!1),this.trigger("loadstart")):(this.trigger("loadstart"),this.trigger("firstplay")),this.manualAutoplay_(!0===this.autoplay()&&this.options_.normalizeAutoplay?"play":this.autoplay())},n.manualAutoplay_=function(e){var t=this;if(this.tech_&&"string"==typeof e){var n,r=function(){var e=t.muted();t.muted(!0);var n=function(){t.muted(e)};t.playTerminatedQueue_.push(n);var r=t.play();if(pn(r))return r.catch((function(e){throw n(),new Error("Rejection at manualAutoplay. Restoring muted value. "+(e||""))}))};if("any"!==e||this.muted()?n="muted"!==e||this.muted()?this.play():r():pn(n=this.play())&&(n=n.catch(r)),pn(n))return n.then((function(){t.trigger({type:"autoplay-success",autoplay:e})})).catch((function(){t.trigger({type:"autoplay-failure",autoplay:e})}))}},n.updateSourceCaches_=function(e){void 0===e&&(e="");var t=e,n="";"string"!=typeof t&&(t=e.src,n=e.type),this.cache_.source=this.cache_.source||{},this.cache_.sources=this.cache_.sources||[],t&&!n&&(n=function(e,t){if(!t)return"";if(e.cache_.source.src===t&&e.cache_.source.type)return e.cache_.source.type;var n=e.cache_.sources.filter((function(s){return s.src===t}));if(n.length)return n[0].type;for(var r=e.$$("source"),i=0;i0&&0===this.cache_.lastPlaybackRate&&(this.queuedCallbacks_.forEach((function(e){return e.callback(e.event)})),this.queuedCallbacks_=[]),this.cache_.lastPlaybackRate=this.tech_.playbackRate(),this.trigger("ratechange")},n.handleTechWaiting_=function(){var e=this;this.addClass("vjs-waiting"),this.trigger("waiting");var t=this.currentTime();this.on("timeupdate",(function n(){t!==e.currentTime()&&(e.removeClass("vjs-waiting"),e.off("timeupdate",n))}))},n.handleTechCanPlay_=function(){this.removeClass("vjs-waiting"),this.trigger("canplay")},n.handleTechCanPlayThrough_=function(){this.removeClass("vjs-waiting"),this.trigger("canplaythrough")},n.handleTechPlaying_=function(){this.removeClass("vjs-waiting"),this.trigger("playing")},n.handleTechSeeking_=function(){this.addClass("vjs-seeking"),this.trigger("seeking")},n.handleTechSeeked_=function(){this.removeClass("vjs-seeking"),this.removeClass("vjs-ended"),this.trigger("seeked")},n.handleTechFirstPlay_=function(){this.options_.starttime&&(ne.warn("Passing the `starttime` option to the player will be deprecated in 6.0"),this.currentTime(this.options_.starttime)),this.addClass("vjs-has-started"),this.trigger("firstplay")},n.handleTechPause_=function(){this.removeClass("vjs-playing"),this.addClass("vjs-paused"),this.trigger("pause")},n.handleTechEnded_=function(){this.addClass("vjs-ended"),this.removeClass("vjs-waiting"),this.options_.loop?(this.currentTime(0),this.play()):this.paused()||this.pause(),this.trigger("ended")},n.handleTechDurationChange_=function(){this.duration(this.techGet_("duration"))},n.handleTechClick_=function(e){this.controls_&&(void 0!==this.options_&&void 0!==this.options_.userActions&&void 0!==this.options_.userActions.click&&!1===this.options_.userActions.click||(void 0!==this.options_&&void 0!==this.options_.userActions&&"function"==typeof this.options_.userActions.click?this.options_.userActions.click.call(this,e):this.paused()?mn(this.play()):this.pause()))},n.handleTechDoubleClick_=function(e){this.controls_&&(Array.prototype.some.call(this.$$(".vjs-control-bar, .vjs-modal-dialog"),(function(t){return t.contains(e.target)}))||void 0!==this.options_&&void 0!==this.options_.userActions&&void 0!==this.options_.userActions.doubleClick&&!1===this.options_.userActions.doubleClick||(void 0!==this.options_&&void 0!==this.options_.userActions&&"function"==typeof this.options_.userActions.doubleClick?this.options_.userActions.doubleClick.call(this,e):this.isFullscreen()?this.exitFullscreen():this.requestFullscreen()))},n.handleTechTap_=function(){this.userActive(!this.userActive())},n.handleTechTouchStart_=function(){this.userWasActive=this.userActive()},n.handleTechTouchMove_=function(){this.userWasActive&&this.reportUserActivity()},n.handleTechTouchEnd_=function(e){e.cancelable&&e.preventDefault()},n.handleStageClick_=function(){this.reportUserActivity()},n.toggleFullscreenClass_=function(){this.isFullscreen()?this.addClass("vjs-fullscreen"):this.removeClass("vjs-fullscreen")},n.documentFullscreenChange_=function(e){var t=e.target.player;if(!t||t===this){var n=this.el(),r=d.a[this.fsApi_.fullscreenElement]===n;!r&&n.matches?r=n.matches(":"+this.fsApi_.fullscreen):!r&&n.msMatchesSelector&&(r=n.msMatchesSelector(":"+this.fsApi_.fullscreen)),this.isFullscreen(r)}},n.handleTechFullscreenChange_=function(e,data){var t=this;data&&(data.nativeIOSFullscreen&&(this.addClass("vjs-ios-native-fs"),this.tech_.one("webkitendfullscreen",(function(){t.removeClass("vjs-ios-native-fs")}))),this.isFullscreen(data.isFullscreen))},n.handleTechFullscreenError_=function(e,t){this.trigger("fullscreenerror",t)},n.togglePictureInPictureClass_=function(){this.isInPictureInPicture()?this.addClass("vjs-picture-in-picture"):this.removeClass("vjs-picture-in-picture")},n.handleTechEnterPictureInPicture_=function(e){this.isInPictureInPicture(!0)},n.handleTechLeavePictureInPicture_=function(e){this.isInPictureInPicture(!1)},n.handleTechError_=function(){var e=this.tech_.error();this.error(e)},n.handleTechTextData_=function(){var data=null;arguments.length>1&&(data=arguments[1]),this.trigger("textdata",data)},n.getCache=function(){return this.cache_},n.resetCache_=function(){this.cache_={currentTime:0,initTime:0,inactivityTimeout:this.options_.inactivityTimeout,duration:NaN,lastVolume:1,lastPlaybackRate:this.defaultPlaybackRate(),media:null,src:"",source:{},sources:[],playbackRates:[],volume:1}},n.techCall_=function(e,t){this.ready((function(){if(e in ni)return function(e,t,n,r){return t[n](e.reduce(ri(n),r))}(this.middleware_,this.tech_,e,t);if(e in ii)return ei(this.middleware_,this.tech_,e,t);try{this.tech_&&this.tech_[e](t)}catch(e){throw ne(e),e}}),!0)},n.techGet_=function(e){if(this.tech_&&this.tech_.isReady_){if(e in ti)return function(e,t,n){return e.reduceRight(ri(n),t[n]())}(this.middleware_,this.tech_,e);if(e in ii)return ei(this.middleware_,this.tech_,e);try{return this.tech_[e]()}catch(t){if(void 0===this.tech_[e])throw ne("Video.js: "+e+" method not defined for "+this.techName_+" playback technology.",t),t;if("TypeError"===t.name)throw ne("Video.js: "+e+" unavailable on "+this.techName_+" playback technology element.",t),this.tech_.isReady_=!1,t;throw ne(t),t}}},n.play=function(){var e=this,t=this.options_.Promise||l.a.Promise;return t?new t((function(t){e.play_(t)})):this.play_()},n.play_=function(e){var t=this;void 0===e&&(e=mn),this.playCallbacks_.push(e);var n=Boolean(!this.changingSrc_&&(this.src()||this.currentSrc())),r=Boolean(je||Ie);if(this.waitToPlay_&&(this.off(["ready","loadstart"],this.waitToPlay_),this.waitToPlay_=null),!this.isReady_||!n)return this.waitToPlay_=function(e){t.play_()},this.one(["ready","loadstart"],this.waitToPlay_),void(!n&&r&&this.load());var o=this.techGet_("play");r&&this.hasClass("vjs-ended")&&this.resetProgressBar_(),null===o?this.runPlayTerminatedQueue_():this.runPlayCallbacks_(o)},n.runPlayTerminatedQueue_=function(){var e=this.playTerminatedQueue_.slice(0);this.playTerminatedQueue_=[],e.forEach((function(q){q()}))},n.runPlayCallbacks_=function(e){var t=this.playCallbacks_.slice(0);this.playCallbacks_=[],this.playTerminatedQueue_=[],t.forEach((function(t){t(e)}))},n.pause=function(){this.techCall_("pause")},n.paused=function(){return!1!==this.techGet_("paused")},n.played=function(){return this.techGet_("played")||cn(0,0)},n.scrubbing=function(e){if(void 0===e)return this.scrubbing_;this.scrubbing_=!!e,this.techCall_("setScrubbing",this.scrubbing_),e?this.addClass("vjs-scrubbing"):this.removeClass("vjs-scrubbing")},n.currentTime=function(e){return void 0!==e?(e<0&&(e=0),this.isReady_&&!this.changingSrc_&&this.tech_&&this.tech_.isReady_?(this.techCall_("setCurrentTime",e),void(this.cache_.initTime=0)):(this.cache_.initTime=e,this.off("canplay",this.boundApplyInitTime_),void this.one("canplay",this.boundApplyInitTime_))):(this.cache_.currentTime=this.techGet_("currentTime")||0,this.cache_.currentTime)},n.applyInitTime_=function(){this.currentTime(this.cache_.initTime)},n.duration=function(e){if(void 0===e)return void 0!==this.cache_.duration?this.cache_.duration:NaN;(e=parseFloat(e))<0&&(e=1/0),e!==this.cache_.duration&&(this.cache_.duration=e,e===1/0?this.addClass("vjs-live"):this.removeClass("vjs-live"),isNaN(e)||this.trigger("durationchange"))},n.remainingTime=function(){return this.duration()-this.currentTime()},n.remainingTimeDisplay=function(){return Math.floor(this.duration())-Math.floor(this.currentTime())},n.buffered=function(){var e=this.techGet_("buffered");return e&&e.length||(e=cn(0,0)),e},n.bufferedPercent=function(){return dn(this.buffered(),this.duration())},n.bufferedEnd=function(){var e=this.buffered(),t=this.duration(),n=e.end(e.length-1);return n>t&&(n=t),n},n.volume=function(e){var t;return void 0!==e?(t=Math.max(0,Math.min(1,parseFloat(e))),this.cache_.volume=t,this.techCall_("setVolume",t),void(t>0&&this.lastVolume_(t))):(t=parseFloat(this.techGet_("volume")),isNaN(t)?1:t)},n.muted=function(e){if(void 0===e)return this.techGet_("muted")||!1;this.techCall_("setMuted",e)},n.defaultMuted=function(e){return void 0!==e?this.techCall_("setDefaultMuted",e):this.techGet_("defaultMuted")||!1},n.lastVolume_=function(e){if(void 0===e||0===e)return this.cache_.lastVolume;this.cache_.lastVolume=e},n.supportsFullScreen=function(){return this.techGet_("supportsFullScreen")||!1},n.isFullscreen=function(e){if(void 0!==e){var t=this.isFullscreen_;return this.isFullscreen_=Boolean(e),this.isFullscreen_!==t&&this.fsApi_.prefixed&&this.trigger("fullscreenchange"),void this.toggleFullscreenClass_()}return this.isFullscreen_},n.requestFullscreen=function(e){var t=this.options_.Promise||l.a.Promise;if(t){var n=this;return new t((function(t,r){function o(){n.off("fullscreenerror",c),n.off("fullscreenchange",l)}function l(){o(),t()}function c(e,t){o(),r(t)}n.one("fullscreenchange",l),n.one("fullscreenerror",c);var d=n.requestFullscreenHelper_(e);d&&(d.then(o,o),d.then(t,r))}))}return this.requestFullscreenHelper_()},n.requestFullscreenHelper_=function(e){var t,n=this;if(this.fsApi_.prefixed||(t=this.options_.fullscreen&&this.options_.fullscreen.options||{},void 0!==e&&(t=e)),this.fsApi_.requestFullscreen){var r=this.el_[this.fsApi_.requestFullscreen](t);return r&&r.then((function(){return n.isFullscreen(!0)}),(function(){return n.isFullscreen(!1)})),r}this.tech_.supportsFullScreen()&&!0==!this.options_.preferFullWindow?this.techCall_("enterFullScreen"):this.enterFullWindow()},n.exitFullscreen=function(){var e=this.options_.Promise||l.a.Promise;if(e){var t=this;return new e((function(e,n){function r(){t.off("fullscreenerror",l),t.off("fullscreenchange",o)}function o(){r(),e()}function l(e,t){r(),n(t)}t.one("fullscreenchange",o),t.one("fullscreenerror",l);var c=t.exitFullscreenHelper_();c&&(c.then(r,r),c.then(e,n))}))}return this.exitFullscreenHelper_()},n.exitFullscreenHelper_=function(){var e=this;if(this.fsApi_.requestFullscreen){var t=d.a[this.fsApi_.exitFullscreen]();return t&&mn(t.then((function(){return e.isFullscreen(!1)}))),t}this.tech_.supportsFullScreen()&&!0==!this.options_.preferFullWindow?this.techCall_("exitFullScreen"):this.exitFullWindow()},n.enterFullWindow=function(){this.isFullscreen(!0),this.isFullWindow=!0,this.docOrigOverflow=d.a.documentElement.style.overflow,It(d.a,"keydown",this.boundFullWindowOnEscKey_),d.a.documentElement.style.overflow="hidden",ze(d.a.body,"vjs-full-window"),this.trigger("enterFullWindow")},n.fullWindowOnEscKey=function(e){v.a.isEventKey(e,"Esc")&&!0===this.isFullscreen()&&(this.isFullWindow?this.exitFullWindow():this.exitFullscreen())},n.exitFullWindow=function(){this.isFullscreen(!1),this.isFullWindow=!1,jt(d.a,"keydown",this.boundFullWindowOnEscKey_),d.a.documentElement.style.overflow=this.docOrigOverflow,qe(d.a.body,"vjs-full-window"),this.trigger("exitFullWindow")},n.disablePictureInPicture=function(e){if(void 0===e)return this.techGet_("disablePictureInPicture");this.techCall_("setDisablePictureInPicture",e),this.options_.disablePictureInPicture=e,this.trigger("disablepictureinpicturechanged")},n.isInPictureInPicture=function(e){return void 0!==e?(this.isInPictureInPicture_=!!e,void this.togglePictureInPictureClass_()):!!this.isInPictureInPicture_},n.requestPictureInPicture=function(){if("pictureInPictureEnabled"in d.a&&!1===this.disablePictureInPicture())return this.techGet_("requestPictureInPicture")},n.exitPictureInPicture=function(){if("pictureInPictureEnabled"in d.a)return d.a.exitPictureInPicture()},n.handleKeyDown=function(e){var t=this.options_.userActions;if(t&&t.hotkeys){(function(e){var t=e.tagName.toLowerCase();if(e.isContentEditable)return!0;if("input"===t)return-1===["button","checkbox","hidden","radio","reset","submit"].indexOf(e.type);return-1!==["textarea"].indexOf(t)})(this.el_.ownerDocument.activeElement)||("function"==typeof t.hotkeys?t.hotkeys.call(this,e):this.handleHotkeys(e))}},n.handleHotkeys=function(e){var t=this.options_.userActions?this.options_.userActions.hotkeys:{},n=t.fullscreenKey,r=void 0===n?function(e){return v.a.isEventKey(e,"f")}:n,o=t.muteKey,l=void 0===o?function(e){return v.a.isEventKey(e,"m")}:o,c=t.playPauseKey,h=void 0===c?function(e){return v.a.isEventKey(e,"k")||v.a.isEventKey(e,"Space")}:c;if(r.call(this,e)){e.preventDefault(),e.stopPropagation();var f=sn.getComponent("FullscreenToggle");!1!==d.a[this.fsApi_.fullscreenEnabled]&&f.prototype.handleClick.call(this,e)}else if(l.call(this,e)){e.preventDefault(),e.stopPropagation(),sn.getComponent("MuteToggle").prototype.handleClick.call(this,e)}else if(h.call(this,e)){e.preventDefault(),e.stopPropagation(),sn.getComponent("PlayToggle").prototype.handleClick.call(this,e)}},n.canPlayType=function(e){for(var t,i=0,n=this.options_.techOrder;i1?t.handleSrc_(n.slice(1)):(t.changingSrc_=!1,t.setTimeout((function(){this.error({code:4,message:this.options_.notSupportedMessage})}),0),void t.triggerReady());l=o,c=t.tech_,l.forEach((function(e){return e.setTech&&e.setTech(c)}))})),this.options_.retryOnError&&n.length>1){var r=function(){t.error(null),t.handleSrc_(n.slice(1),!0)},o=function(){t.off("error",r)};this.one("error",r),this.one("playing",o),this.resetRetryOnError_=function(){t.off("error",r),t.off("playing",o)}}}else this.setTimeout((function(){this.error({code:4,message:this.options_.notSupportedMessage})}),0)},n.src=function(source){return this.handleSrc_(source,!1)},n.src_=function(source){var e,t,n=this,r=this.selectSource([source]);return!r||(e=r.tech,t=this.techName_,en(e)!==en(t)?(this.changingSrc_=!0,this.loadTech_(r.tech,r.source),this.tech_.ready((function(){n.changingSrc_=!1})),!1):(this.ready((function(){this.tech_.constructor.prototype.hasOwnProperty("setSource")?this.techCall_("setSource",source):this.techCall_("src",source.src),this.changingSrc_=!1}),!0),!1))},n.load=function(){this.techCall_("load")},n.reset=function(){var e=this,t=this.options_.Promise||l.a.Promise;this.paused()||!t?this.doReset_():mn(this.play().then((function(){return e.doReset_()})))},n.doReset_=function(){this.tech_&&this.tech_.clearTracks("text"),this.resetCache_(),this.poster(""),this.loadTech_(this.options_.techOrder[0],null),this.techCall_("reset"),this.resetControlBarUI_(),Ht(this)&&this.trigger("playerreset")},n.resetControlBarUI_=function(){this.resetProgressBar_(),this.resetPlaybackRate_(),this.resetVolumeBar_()},n.resetProgressBar_=function(){this.currentTime(0);var e=this.controlBar||{},t=e.durationDisplay,n=e.remainingTimeDisplay;t&&t.updateContent(),n&&n.updateContent()},n.resetPlaybackRate_=function(){this.playbackRate(this.defaultPlaybackRate()),this.handleTechRateChange_()},n.resetVolumeBar_=function(){this.volume(1),this.trigger("volumechange")},n.currentSources=function(){var source=this.currentSource(),e=[];return 0!==Object.keys(source).length&&e.push(source),this.cache_.sources||e},n.currentSource=function(){return this.cache_.source||{}},n.currentSrc=function(){return this.currentSource()&&this.currentSource().src||""},n.currentType=function(){return this.currentSource()&&this.currentSource().type||""},n.preload=function(e){return void 0!==e?(this.techCall_("setPreload",e),void(this.options_.preload=e)):this.techGet_("preload")},n.autoplay=function(e){if(void 0===e)return this.options_.autoplay||!1;var t;"string"==typeof e&&/(any|play|muted)/.test(e)||!0===e&&this.options_.normalizeAutoplay?(this.options_.autoplay=e,this.manualAutoplay_("string"==typeof e?e:"play"),t=!1):this.options_.autoplay=!!e,t=void 0===t?this.options_.autoplay:t,this.tech_&&this.techCall_("setAutoplay",t)},n.playsinline=function(e){return void 0!==e?(this.techCall_("setPlaysinline",e),this.options_.playsinline=e,this):this.techGet_("playsinline")},n.loop=function(e){return void 0!==e?(this.techCall_("setLoop",e),void(this.options_.loop=e)):this.techGet_("loop")},n.poster=function(e){if(void 0===e)return this.poster_;e||(e=""),e!==this.poster_&&(this.poster_=e,this.techCall_("setPoster",e),this.isPosterFromTech_=!1,this.trigger("posterchange"))},n.handleTechPosterChange_=function(){if((!this.poster_||this.options_.techCanOverridePoster)&&this.tech_&&this.tech_.poster){var e=this.tech_.poster()||"";e!==this.poster_&&(this.poster_=e,this.isPosterFromTech_=!0,this.trigger("posterchange"))}},n.controls=function(e){if(void 0===e)return!!this.controls_;e=!!e,this.controls_!==e&&(this.controls_=e,this.usingNativeControls()&&this.techCall_("setControls",e),this.controls_?(this.removeClass("vjs-controls-disabled"),this.addClass("vjs-controls-enabled"),this.trigger("controlsenabled"),this.usingNativeControls()||this.addTechControlsListeners_()):(this.removeClass("vjs-controls-enabled"),this.addClass("vjs-controls-disabled"),this.trigger("controlsdisabled"),this.usingNativeControls()||this.removeTechControlsListeners_()))},n.usingNativeControls=function(e){if(void 0===e)return!!this.usingNativeControls_;e=!!e,this.usingNativeControls_!==e&&(this.usingNativeControls_=e,this.usingNativeControls_?(this.addClass("vjs-using-native-controls"),this.trigger("usingnativecontrols")):(this.removeClass("vjs-using-native-controls"),this.trigger("usingcustomcontrols")))},n.error=function(e){var t=this;if(void 0===e)return this.error_||null;if(X("beforeerror").forEach((function(n){var r=n(t,e);ue(r)&&!Array.isArray(r)||"string"==typeof r||"number"==typeof r||null===r?e=r:t.log.error("please return a value that MediaError expects in beforeerror hooks")})),this.options_.suppressNotSupportedError&&e&&4===e.code){var n=function(){this.error(e)};return this.options_.suppressNotSupportedError=!1,this.any(["click","touchstart"],n),void this.one("loadstart",(function(){this.off(["click","touchstart"],n)}))}if(null===e)return this.error_=e,this.removeClass("vjs-error"),void(this.errorDisplay&&this.errorDisplay.close());this.error_=new hn(e),this.addClass("vjs-error"),ne.error("(CODE:"+this.error_.code+" "+hn.errorTypes[this.error_.code]+")",this.error_.message,this.error_),this.trigger("error"),X("error").forEach((function(e){return e(t,t.error_)}))},n.reportUserActivity=function(e){this.userActivity_=!0},n.userActive=function(e){if(void 0===e)return this.userActive_;if((e=!!e)!==this.userActive_){if(this.userActive_=e,this.userActive_)return this.userActivity_=!0,this.removeClass("vjs-user-inactive"),this.addClass("vjs-user-active"),void this.trigger("useractive");this.tech_&&this.tech_.one("mousemove",(function(e){e.stopPropagation(),e.preventDefault()})),this.userActivity_=!1,this.removeClass("vjs-user-active"),this.addClass("vjs-user-inactive"),this.trigger("userinactive")}},n.listenForUserActivity_=function(){var e,t,n,r=Bt(this,this.reportUserActivity),o=function(t){r(),this.clearInterval(e)};this.on("mousedown",(function(){r(),this.clearInterval(e),e=this.setInterval(r,250)})),this.on("mousemove",(function(e){e.screenX===t&&e.screenY===n||(t=e.screenX,n=e.screenY,r())})),this.on("mouseup",o),this.on("mouseleave",o);var l,c=this.getChild("controlBar");!c||Ie||ve||(c.on("mouseenter",(function(e){0!==this.player().options_.inactivityTimeout&&(this.player().cache_.inactivityTimeout=this.player().options_.inactivityTimeout),this.player().options_.inactivityTimeout=0})),c.on("mouseleave",(function(e){this.player().options_.inactivityTimeout=this.player().cache_.inactivityTimeout}))),this.on("keydown",r),this.on("keyup",r),this.setInterval((function(){if(this.userActivity_){this.userActivity_=!1,this.userActive(!0),this.clearTimeout(l);var e=this.options_.inactivityTimeout;e<=0||(l=this.setTimeout((function(){this.userActivity_||this.userActive(!1)}),e))}}),250)},n.playbackRate=function(e){if(void 0===e)return this.tech_&&this.tech_.featuresPlaybackRate?this.cache_.lastPlaybackRate||this.techGet_("playbackRate"):1;this.techCall_("setPlaybackRate",e)},n.defaultPlaybackRate=function(e){return void 0!==e?this.techCall_("setDefaultPlaybackRate",e):this.tech_&&this.tech_.featuresPlaybackRate?this.techGet_("defaultPlaybackRate"):1},n.isAudio=function(e){if(void 0===e)return!!this.isAudio_;this.isAudio_=!!e},n.enableAudioOnlyUI_=function(){var e=this;this.addClass("vjs-audio-only-mode");var t=this.children(),n=this.getChild("ControlBar"),r=n&&n.currentHeight();t.forEach((function(t){t!==n&&t.el_&&!t.hasClass("vjs-hidden")&&(t.hide(),e.audioOnlyCache_.hiddenChildren.push(t))})),this.audioOnlyCache_.playerHeight=this.currentHeight(),this.height(r),this.trigger("audioonlymodechange")},n.disableAudioOnlyUI_=function(){this.removeClass("vjs-audio-only-mode"),this.audioOnlyCache_.hiddenChildren.forEach((function(e){return e.show()})),this.height(this.audioOnlyCache_.playerHeight),this.trigger("audioonlymodechange")},n.audioOnlyMode=function(e){var t=this;if("boolean"!=typeof e||e===this.audioOnlyMode_)return this.audioOnlyMode_;this.audioOnlyMode_=e;var n=this.options_.Promise||l.a.Promise;if(n){if(e){var r=[];return this.isInPictureInPicture()&&r.push(this.exitPictureInPicture()),this.isFullscreen()&&r.push(this.exitFullscreen()),this.audioPosterMode()&&r.push(this.audioPosterMode(!1)),n.all(r).then((function(){return t.enableAudioOnlyUI_()}))}return n.resolve().then((function(){return t.disableAudioOnlyUI_()}))}e?(this.isInPictureInPicture()&&this.exitPictureInPicture(),this.isFullscreen()&&this.exitFullscreen(),this.enableAudioOnlyUI_()):this.disableAudioOnlyUI_()},n.enablePosterModeUI_=function(){(this.tech_&&this.tech_).hide(),this.addClass("vjs-audio-poster-mode"),this.trigger("audiopostermodechange")},n.disablePosterModeUI_=function(){(this.tech_&&this.tech_).show(),this.removeClass("vjs-audio-poster-mode"),this.trigger("audiopostermodechange")},n.audioPosterMode=function(e){var t=this;if("boolean"!=typeof e||e===this.audioPosterMode_)return this.audioPosterMode_;this.audioPosterMode_=e;var n=this.options_.Promise||l.a.Promise;return n?e?this.audioOnlyMode()?this.audioOnlyMode(!1).then((function(){t.enablePosterModeUI_()})):n.resolve().then((function(){t.enablePosterModeUI_()})):n.resolve().then((function(){t.disablePosterModeUI_()})):e?(this.audioOnlyMode()&&this.audioOnlyMode(!1),void this.enablePosterModeUI_()):void this.disablePosterModeUI_()},n.addTextTrack=function(e,label,t){if(this.tech_)return this.tech_.addTextTrack(e,label,t)},n.addRemoteTextTrack=function(e,t){if(this.tech_)return this.tech_.addRemoteTextTrack(e,t)},n.removeRemoteTextTrack=function(e){void 0===e&&(e={});var track=e.track;if(track||(track=e),this.tech_)return this.tech_.removeRemoteTextTrack(track)},n.getVideoPlaybackQuality=function(){return this.techGet_("getVideoPlaybackQuality")},n.videoWidth=function(){return this.tech_&&this.tech_.videoWidth&&this.tech_.videoWidth()||0},n.videoHeight=function(){return this.tech_&&this.tech_.videoHeight&&this.tech_.videoHeight()||0},n.language=function(code){if(void 0===code)return this.language_;this.language_!==String(code).toLowerCase()&&(this.language_=String(code).toLowerCase(),Ht(this)&&this.trigger("languagechange"))},n.languages=function(){return tn(t.prototype.options_.languages,this.languages_)},n.toJSON=function(){var e=tn(this.options_),t=e.tracks;e.tracks=[];for(var i=0;i"):function(){}},_a=1/30,Ta=.1,wa=function(e,t){var i,n=[];if(e&&e.length)for(i=0;i=time}))},ka=function(e,time){return wa(e,(function(e){return e-_a>=time}))},xa=function(e){var t=[];if(!e||!e.length)return"";for(var i=0;i "+e.end(i));return t.join(", ")},Ca=function(e){for(var t=[],i=0;ir||(time+=t>n&&t<=r?r-t:r-n)}return time},Da=ga.createTimeRange,Ia=function(e,t){if(!t.preload)return t.duration;var n=0;return(t.parts||[]).forEach((function(p){n+=p.duration})),(t.preloadHints||[]).forEach((function(p){"PART"===p.type&&(n+=e.partTargetDuration)})),n},ja=function(e){return(e.segments||[]).reduce((function(e,t,n){return t.parts?t.parts.forEach((function(r,o){e.push({duration:r.duration,segmentIndex:n,partIndex:o,part:r,segment:t})})):e.push({duration:t.duration,segmentIndex:n,partIndex:null,segment:t,part:null}),e}),[])},Pa=function(e){var t=e.segments&&e.segments.length&&e.segments[e.segments.length-1];return t&&t.parts||[]},Oa=function(e){var t=e.preloadSegment;if(t){var n=t.parts,r=(t.preloadHints||[]).reduce((function(e,t){return e+("PART"===t.type?1:0)}),0);return r+=n&&n.length?n.length:0}},Ma=function(e,t){if(t.endList)return 0;if(e&&e.suggestedPresentationDelay)return e.suggestedPresentationDelay;var n=Pa(t).length>0;return n&&t.serverControl&&t.serverControl.partHoldBack?t.serverControl.partHoldBack:n&&t.partTargetDuration?3*t.partTargetDuration:t.serverControl&&t.serverControl.holdBack?t.serverControl.holdBack:t.targetDuration?3*t.targetDuration:0},La=function(e,t,n){if(void 0===t&&(t=e.mediaSequence+e.segments.length),to){var c=[o,r];r=c[0],o=c[1]}if(r<0){for(var i=r;iDate.now()},Ua=function(e){return e.excludeUntil&&e.excludeUntil===1/0},Va=function(e){var t=Fa(e);return!e.disabled&&!t},Ha=function(e,t){return t.attributes&&t.attributes[e]},za=function(e,t){if(1===e.playlists.length)return!0;var n=t.attributes.BANDWIDTH||Number.MAX_VALUE;return 0===e.playlists.filter((function(e){return!!Va(e)&&(e.attributes.BANDWIDTH||0)0)for(var m=h-1;m>=0;m--){var v=d[m];if(time+=v.duration,c){if(time<0)continue}else if(time+_a<=0)continue;return{partIndex:v.partIndex,segmentIndex:v.segmentIndex,startTime:l-Ra({defaultDuration:t.targetDuration,durationList:d,startIndex:h,endIndex:m})}}return{partIndex:d[0]&&d[0].partIndex||null,segmentIndex:d[0]&&d[0].segmentIndex||0,startTime:n}}if(h<0){for(var y=h;y<0;y++)if((time-=t.targetDuration)<0)return{partIndex:d[0]&&d[0].partIndex||null,segmentIndex:d[0]&&d[0].segmentIndex||0,startTime:n};h=0}for(var _=h;_0)continue}else if(time-_a>=0)continue;return{partIndex:T.partIndex,segmentIndex:T.segmentIndex,startTime:l+Ra({defaultDuration:t.targetDuration,durationList:d,startIndex:h,endIndex:_})}}return{segmentIndex:d[d.length-1].segmentIndex,partIndex:d[d.length-1].partIndex,startTime:n}},isEnabled:Va,isDisabled:function(e){return e.disabled},isBlacklisted:Fa,isIncompatible:Ua,playlistEnd:Ba,isAes:function(e){for(var i=0;i-1&&d!==c.length-1&&(n._HLS_part=d),(d>-1||c.length)&&o--}n._HLS_msn=o}if(t.serverControl&&t.serverControl.canSkipUntil&&(n._HLS_skip=t.serverControl.canSkipDateranges?"v2":"YES"),Object.keys(n).length){var h=new l.a.URL(e);["_HLS_skip","_HLS_msn","_HLS_part"].forEach((function(e){n.hasOwnProperty(e)&&h.searchParams.set(e,n[e])})),e=h.toString()}return e}(n,t)),this.state="HAVE_CURRENT_METADATA",this.request=this.vhs_.xhr({uri:n,withCredentials:this.withCredentials},(function(t,n){if(e.request)return t?e.playlistRequestError(e.request,e.media(),"HAVE_METADATA"):void e.haveMetadata({playlistString:e.request.responseText,url:e.media().uri,id:e.media().id})}))}},n.playlistRequestError=function(e,t,n){var r=t.uri,o=t.id;this.request=null,n&&(this.state=n),this.error={playlist:this.master.playlists[o],status:e.status,message:"HLS playlist request error at URL: "+r+".",responseText:e.responseText,code:e.status>=500?4:2},this.trigger("error")},n.parseManifest_=function(e){var t=this,n=e.url;return function(e){var t=e.onwarn,n=e.oninfo,r=e.manifestString,o=e.customTagParsers,l=void 0===o?[]:o,c=e.customTagMappers,d=void 0===c?[]:c,h=e.experimentalLLHLS,f=new M.a;t&&f.on("warn",t),n&&f.on("info",n),l.forEach((function(e){return f.addParser(e)})),d.forEach((function(e){return f.addTagMapper(e)})),f.push(r),f.end();var m=f.manifest;if(h||(["preloadSegment","skip","serverControl","renditionReports","partInf","partTargetDuration"].forEach((function(e){m.hasOwnProperty(e)&&delete m[e]})),m.segments&&m.segments.forEach((function(e){["parts","preloadHints"].forEach((function(t){e.hasOwnProperty(t)&&delete e[t]}))}))),!m.targetDuration){var v=10;m.segments&&m.segments.length&&(v=m.segments.reduce((function(e,s){return Math.max(e,s.duration)}),0)),t&&t("manifest has no targetDuration defaulting to "+v),m.targetDuration=v}var y=Pa(m);if(y.length&&!m.partTargetDuration){var _=y.reduce((function(e,p){return Math.max(e,p.duration)}),0);t&&(t("manifest has no partTargetDuration defaulting to "+_),Ya.error("LL-HLS manifest has parts but lacks required #EXT-X-PART-INF:PART-TARGET value. See https://datatracker.ietf.org/doc/html/draft-pantos-hls-rfc8216bis-09#section-4.4.3.7. Playback is not guaranteed.")),m.partTargetDuration=_}return m}({onwarn:function(e){var r=e.message;return t.logger_("m3u8-parser warn for "+n+": "+r)},oninfo:function(e){var r=e.message;return t.logger_("m3u8-parser info for "+n+": "+r)},manifestString:e.manifestString,customTagParsers:this.customTagParsers,customTagMappers:this.customTagMappers,experimentalLLHLS:this.experimentalLLHLS})},n.haveMetadata=function(e){var t=e.playlistString,n=e.playlistObject,r=e.url,o=e.id;this.request=null,this.state="HAVE_METADATA";var l=n||this.parseManifest_({url:r,manifestString:t});l.lastRequest=Date.now(),Ja({playlist:l,uri:r,id:o});var c=oo(this.master,l);this.targetDuration=l.partTargetDuration||l.targetDuration,this.pendingMedia_=null,c?(this.master=c,this.media_=this.master.playlists[o]):this.trigger("playlistunchanged"),this.updateMediaUpdateTimeout_(so(this.media(),!!c)),this.trigger("loadedplaylist")},n.dispose=function(){this.trigger("dispose"),this.stopRequest(),l.a.clearTimeout(this.mediaUpdateTimeout),l.a.clearTimeout(this.finalRenditionTimeout),this.off()},n.stopRequest=function(){if(this.request){var e=this.request;this.request=null,e.onreadystatechange=null,e.abort()}},n.media=function(e,t){var n=this;if(!e)return this.media_;if("HAVE_NOTHING"===this.state)throw new Error("Cannot switch media playlist from "+this.state);if("string"==typeof e){if(!this.master.playlists[e])throw new Error("Unknown playlist URI: "+e);e=this.master.playlists[e]}if(l.a.clearTimeout(this.finalRenditionTimeout),t){var r=(e.partTargetDuration||e.targetDuration)/2*1e3||5e3;this.finalRenditionTimeout=l.a.setTimeout(this.media.bind(this,e,!1),r)}else{var o=this.state,c=!this.media_||e.id!==this.media_.id,d=this.master.playlists[e.id];if(d&&d.endList||e.endList&&e.segments.length)return this.request&&(this.request.onreadystatechange=null,this.request.abort(),this.request=null),this.state="HAVE_METADATA",this.media_=e,void(c&&(this.trigger("mediachanging"),"HAVE_MASTER"===o?this.trigger("loadedmetadata"):this.trigger("mediachange")));if(this.updateMediaUpdateTimeout_(so(e,!0)),c){if(this.state="SWITCHING_MEDIA",this.request){if(e.resolvedUri===this.request.url)return;this.request.onreadystatechange=null,this.request.abort(),this.request=null}this.media_&&this.trigger("mediachanging"),this.pendingMedia_=e,this.request=this.vhs_.xhr({uri:e.resolvedUri,withCredentials:this.withCredentials},(function(t,r){if(n.request){if(e.lastRequest=Date.now(),e.resolvedUri=ya(n.handleManifestRedirects,e.resolvedUri,r),t)return n.playlistRequestError(n.request,e,o);n.haveMetadata({playlistString:r.responseText,url:e.uri,id:e.id}),"HAVE_MASTER"===o?n.trigger("loadedmetadata"):n.trigger("mediachange")}}))}}},n.pause=function(){this.mediaUpdateTimeout&&(l.a.clearTimeout(this.mediaUpdateTimeout),this.mediaUpdateTimeout=null),this.stopRequest(),"HAVE_NOTHING"===this.state&&(this.started=!1),"SWITCHING_MEDIA"===this.state?this.media_?this.state="HAVE_METADATA":this.state="HAVE_MASTER":"HAVE_CURRENT_METADATA"===this.state&&(this.state="HAVE_METADATA")},n.load=function(e){var t=this;this.mediaUpdateTimeout&&(l.a.clearTimeout(this.mediaUpdateTimeout),this.mediaUpdateTimeout=null);var n=this.media();if(e){var r=n?(n.partTargetDuration||n.targetDuration)/2*1e3:5e3;this.mediaUpdateTimeout=l.a.setTimeout((function(){t.mediaUpdateTimeout=null,t.load()}),r)}else this.started?n&&!n.endList?this.trigger("mediaupdatetimeout"):this.trigger("loadedplaylist"):this.start()},n.updateMediaUpdateTimeout_=function(e){var t=this;this.mediaUpdateTimeout&&(l.a.clearTimeout(this.mediaUpdateTimeout),this.mediaUpdateTimeout=null),this.media()&&!this.media().endList&&(this.mediaUpdateTimeout=l.a.setTimeout((function(){t.mediaUpdateTimeout=null,t.trigger("mediaupdatetimeout"),t.updateMediaUpdateTimeout_(e)}),e))},n.start=function(){var e=this;if(this.started=!0,"object"==typeof this.src)return this.src.uri||(this.src.uri=l.a.location.href),this.src.resolvedUri=this.src.uri,void setTimeout((function(){e.setupInitialPlaylist(e.src)}),0);this.request=this.vhs_.xhr({uri:this.src,withCredentials:this.withCredentials},(function(t,n){if(e.request){if(e.request=null,t)return e.error={status:n.status,message:"HLS playlist request error at URL: "+e.src+".",responseText:n.responseText,code:2},"HAVE_NOTHING"===e.state&&(e.started=!1),e.trigger("error");e.src=ya(e.handleManifestRedirects,e.src,n);var r=e.parseManifest_({manifestString:n.responseText,url:e.src});e.setupInitialPlaylist(r)}}))},n.srcUri=function(){return"string"==typeof this.src?this.src:this.src.uri},n.setupInitialPlaylist=function(e){if(this.state="HAVE_MASTER",e.playlists)return this.master=e,Za(this.master,this.srcUri()),e.playlists.forEach((function(e){e.segments=ro(e),e.segments.forEach((function(t){io(t,e.resolvedUri)}))})),this.trigger("loadedplaylist"),void(this.request||this.media(this.master.playlists[0]));var t=this.srcUri()||l.a.location.href;this.master=function(e,t){var n=Xa(0,t),r={mediaGroups:{AUDIO:{},VIDEO:{},"CLOSED-CAPTIONS":{},SUBTITLES:{}},uri:l.a.location.href,resolvedUri:l.a.location.href,playlists:[{uri:t,id:n,resolvedUri:t,attributes:{}}]};return r.playlists[n]=r.playlists[0],r.playlists[t]=r.playlists[0],r}(0,t),this.haveMetadata({playlistObject:e,url:t,id:this.master.playlists[0].id}),this.trigger("loadedmetadata")},t}(to),lo=ga.xhr,co=ga.mergeOptions,ho=function(e,t,n,r){var o="arraybuffer"===e.responseType?e.response:e.responseText;!t&&o&&(e.responseTime=Date.now(),e.roundTripTime=e.responseTime-e.requestTime,e.bytesReceived=o.byteLength||o.length,e.bandwidth||(e.bandwidth=Math.floor(e.bytesReceived/e.roundTripTime*8*1e3))),n.headers&&(e.responseHeaders=n.headers),t&&"ETIMEDOUT"===t.code&&(e.timedout=!0),t||e.aborted||200===n.statusCode||206===n.statusCode||0===n.statusCode||(t=new Error("XHR Failed with a response of: "+(e&&(o||e.responseText)))),r(t,e)},fo=function(){var e=function e(t,n){t=co({timeout:45e3},t);var r=e.beforeRequest||ga.Vhs.xhr.beforeRequest;if(r&&"function"==typeof r){var o=r(t);o&&(t=o)}var l=(!0===ga.Vhs.xhr.original?lo:ga.Vhs.xhr)(t,(function(e,t){return ho(l,e,t,n)})),c=l.abort;return l.abort=function(){return l.aborted=!0,c.apply(l,arguments)},l.uri=t.uri,l.requestTime=Date.now(),l};return e.original=!0,e},po=function(e){var t,n={};return e.byterange&&(n.Range="bytes="+(t=e.byterange).offset+"-"+("bigint"==typeof t.offset||"bigint"==typeof t.length?l.a.BigInt(t.offset)+l.a.BigInt(t.length)-l.a.BigInt(1):t.offset+t.length-1)),n},mo=function(e,i){return e.start(i)+"-"+e.end(i)},go=function(e,i){var t=e.toString(16);return"00".substring(0,2-t.length)+t+(i%2?" ":"")},vo=function(e){return e>=32&&e<126?String.fromCharCode(e):"."},yo=function(e){var t={};return Object.keys(e).forEach((function(n){var r=e[n];Object(R.e)(r)?t[n]={bytes:r.buffer,byteOffset:r.byteOffset,byteLength:r.byteLength}:t[n]=r})),t},bo=function(e){var t=e.byterange||{length:1/0,offset:0};return[t.length,t.offset,e.resolvedUri].join(",")},_o=function(e){return e.resolvedUri},To=function(data){for(var e=Array.prototype.slice.call(data),t=16,n="",r=0;rn){if(time>n+.25*r.duration)return null;t=r}return{segment:t,estimatedStart:t.videoTimingInfo?t.videoTimingInfo.transmuxedPresentationStart:n-t.duration,type:t.videoTimingInfo?"accurate":"estimate"}}(time,t);if(!o)return r({message:"valid programTime was not found"});if("estimate"===o.type)return r({message:"Accurate programTime could not be determined. Please seek to e.seekTime and try again",seekTime:o.estimatedStart});var l={mediaSeconds:time},c=function(e,t){if(!t.dateTimeObject)return null;var n=t.videoTimingInfo.transmuxerPrependedSeconds,r=e-(t.videoTimingInfo.transmuxedPresentationStart+n);return new Date(t.dateTimeObject.getTime()+1e3*r)}(time,o.segment);return c&&(l.programDateTime=c.toISOString()),r(null,l)},ko=function e(t){var n=t.programTime,r=t.playlist,o=t.retryCount,l=void 0===o?2:o,c=t.seekTo,d=t.pauseAfterSeek,h=void 0===d||d,f=t.tech,m=t.callback;if(!m)throw new Error("seekToProgramTime: callback must be provided");if(void 0===n||!r||!c)return m({message:"seekToProgramTime: programTime, seekTo and playlist must be provided"});if(!r.endList&&!f.hasStarted_)return m({message:"player must be playing a live stream to start buffering"});if(!function(e){if(!e.segments||0===e.segments.length)return!1;for(var i=0;inew Date(c.getTime()+1e3*d)?null:(n>c&&(r=l),{segment:r,estimatedStart:r.videoTimingInfo?r.videoTimingInfo.transmuxedPresentationStart:Ga.duration(t,t.mediaSequence+t.segments.indexOf(r)),type:r.videoTimingInfo?"accurate":"estimate"})}(n,r);if(!v)return m({message:n+" was not found in the stream"});var y=v.segment,_=function(e,t){var n,r;try{n=new Date(e),r=new Date(t)}catch(e){}var o=n.getTime();return(r.getTime()-o)/1e3}(y.dateTimeObject,n);if("estimate"===v.type)return 0===l?m({message:n+" is not buffered yet. Try again"}):(c(v.estimatedStart+_),void f.one("seeked",(function(){e({programTime:n,playlist:r,retryCount:l-1,seekTo:c,pauseAfterSeek:h,tech:f,callback:m})})));var T=y.start+_;f.one("seeked",(function(){return m(null,f.currentTime())})),h&&f.pause(),c(T)},xo=function(e,t){if(4===e.readyState)return t()},Co=ga.EventTarget,Ao=ga.mergeOptions,Eo=function(a,b){if(!ao(a,b))return!1;if(a.sidx&&b.sidx&&(a.sidx.offset!==b.sidx.offset||a.sidx.length!==b.sidx.length))return!1;if(!a.sidx&&b.sidx||a.sidx&&!b.sidx)return!1;if(a.segments&&!b.segments||!a.segments&&b.segments)return!1;if(!a.segments&&!b.segments)return!0;for(var i=0;i=m+f)return d(t,{response:l.subarray(f,f+m),status:n.status,uri:n.uri});r.request=r.vhs_.xhr({uri:c,responseType:"arraybuffer",headers:po({byterange:e.sidx.byterange})},d)}))}else this.mediaRequest_=l.a.setTimeout((function(){return n(!1)}),0)},n.dispose=function(){this.trigger("dispose"),this.stopRequest(),this.loadedPlaylists_={},l.a.clearTimeout(this.minimumUpdatePeriodTimeout_),l.a.clearTimeout(this.mediaRequest_),l.a.clearTimeout(this.mediaUpdateTimeout),this.mediaUpdateTimeout=null,this.mediaRequest_=null,this.minimumUpdatePeriodTimeout_=null,this.masterPlaylistLoader_.createMupOnMedia_&&(this.off("loadedmetadata",this.masterPlaylistLoader_.createMupOnMedia_),this.masterPlaylistLoader_.createMupOnMedia_=null),this.off()},n.hasPendingRequest=function(){return this.request||this.mediaRequest_},n.stopRequest=function(){if(this.request){var e=this.request;this.request=null,e.onreadystatechange=null,e.abort()}},n.media=function(e){var t=this;if(!e)return this.media_;if("HAVE_NOTHING"===this.state)throw new Error("Cannot switch media playlist from "+this.state);var n=this.state;if("string"==typeof e){if(!this.masterPlaylistLoader_.master.playlists[e])throw new Error("Unknown playlist URI: "+e);e=this.masterPlaylistLoader_.master.playlists[e]}var r=!this.media_||e.id!==this.media_.id;if(r&&this.loadedPlaylists_[e.id]&&this.loadedPlaylists_[e.id].endList)return this.state="HAVE_METADATA",this.media_=e,void(r&&(this.trigger("mediachanging"),this.trigger("mediachange")));r&&(this.media_&&this.trigger("mediachanging"),this.addSidxSegments_(e,n,(function(r){t.haveMetadata({startingState:n,playlist:e})})))},n.haveMetadata=function(e){var t=e.startingState,n=e.playlist;this.state="HAVE_METADATA",this.loadedPlaylists_[n.id]=n,this.mediaRequest_=null,this.refreshMedia_(n.id),"HAVE_MASTER"===t?this.trigger("loadedmetadata"):this.trigger("mediachange")},n.pause=function(){this.masterPlaylistLoader_.createMupOnMedia_&&(this.off("loadedmetadata",this.masterPlaylistLoader_.createMupOnMedia_),this.masterPlaylistLoader_.createMupOnMedia_=null),this.stopRequest(),l.a.clearTimeout(this.mediaUpdateTimeout),this.mediaUpdateTimeout=null,this.isMaster_&&(l.a.clearTimeout(this.masterPlaylistLoader_.minimumUpdatePeriodTimeout_),this.masterPlaylistLoader_.minimumUpdatePeriodTimeout_=null),"HAVE_NOTHING"===this.state&&(this.started=!1)},n.load=function(e){var t=this;l.a.clearTimeout(this.mediaUpdateTimeout),this.mediaUpdateTimeout=null;var n=this.media();if(e){var r=n?n.targetDuration/2*1e3:5e3;this.mediaUpdateTimeout=l.a.setTimeout((function(){return t.load()}),r)}else this.started?n&&!n.endList?(this.isMaster_&&!this.minimumUpdatePeriodTimeout_&&(this.trigger("minimumUpdatePeriod"),this.updateMinimumUpdatePeriodTimeout_()),this.trigger("mediaupdatetimeout")):this.trigger("loadedplaylist"):this.start()},n.start=function(){var e=this;this.started=!0,this.isMaster_?this.requestMaster_((function(t,n){e.haveMaster_(),e.hasPendingRequest()||e.media_||e.media(e.masterPlaylistLoader_.master.playlists[0])})):this.mediaRequest_=l.a.setTimeout((function(){return e.haveMaster_()}),0)},n.requestMaster_=function(e){var t=this;this.request=this.vhs_.xhr({uri:this.masterPlaylistLoader_.srcUrl,withCredentials:this.withCredentials},(function(n,r){if(!t.requestErrored_(n,r)){var o=r.responseText!==t.masterPlaylistLoader_.masterXml_;return t.masterPlaylistLoader_.masterXml_=r.responseText,r.responseHeaders&&r.responseHeaders.date?t.masterLoaded_=Date.parse(r.responseHeaders.date):t.masterLoaded_=Date.now(),t.masterPlaylistLoader_.srcUrl=ya(t.handleManifestRedirects,t.masterPlaylistLoader_.srcUrl,r),o?(t.handleMaster_(),void t.syncClientServerClock_((function(){return e(r,o)}))):e(r,o)}"HAVE_NOTHING"===t.state&&(t.started=!1)}))},n.syncClientServerClock_=function(e){var t=this,n=Object(B.d)(this.masterPlaylistLoader_.masterXml_);return null===n?(this.masterPlaylistLoader_.clientOffset_=this.masterLoaded_-Date.now(),e()):"DIRECT"===n.method?(this.masterPlaylistLoader_.clientOffset_=n.value-Date.now(),e()):void(this.request=this.vhs_.xhr({uri:va(this.masterPlaylistLoader_.srcUrl,n.value),method:n.method,withCredentials:this.withCredentials},(function(r,o){if(t.request){if(r)return t.masterPlaylistLoader_.clientOffset_=t.masterLoaded_-Date.now(),e();var l;l="HEAD"===n.method?o.responseHeaders&&o.responseHeaders.date?Date.parse(o.responseHeaders.date):t.masterLoaded_:Date.parse(o.responseText),t.masterPlaylistLoader_.clientOffset_=l-Date.now(),e()}})))},n.haveMaster_=function(){this.state="HAVE_MASTER",this.isMaster_?this.trigger("loadedplaylist"):this.media_||this.media(this.childPlaylist_)},n.handleMaster_=function(){this.mediaRequest_=null;var e,t,n,r,o,l,c,d=this.masterPlaylistLoader_.master,h=(e={masterXml:this.masterPlaylistLoader_.masterXml_,srcUrl:this.masterPlaylistLoader_.srcUrl,clientOffset:this.masterPlaylistLoader_.clientOffset_,sidxMapping:this.masterPlaylistLoader_.sidxMapping_,previousManifest:d},t=e.masterXml,n=e.srcUrl,r=e.clientOffset,o=e.sidxMapping,l=e.previousManifest,c=Object(B.c)(t,{manifestUri:n,clientOffset:r,sidxMapping:o,previousManifest:l}),Za(c,n,Do),c);d&&(h=Io(d,h,this.masterPlaylistLoader_.sidxMapping_)),this.masterPlaylistLoader_.master=h||d;var f=this.masterPlaylistLoader_.master.locations&&this.masterPlaylistLoader_.master.locations[0];return f&&f!==this.masterPlaylistLoader_.srcUrl&&(this.masterPlaylistLoader_.srcUrl=f),(!d||h&&h.minimumUpdatePeriod!==d.minimumUpdatePeriod)&&this.updateMinimumUpdatePeriodTimeout_(),Boolean(h)},n.updateMinimumUpdatePeriodTimeout_=function(){var e=this.masterPlaylistLoader_;e.createMupOnMedia_&&(e.off("loadedmetadata",e.createMupOnMedia_),e.createMupOnMedia_=null),e.minimumUpdatePeriodTimeout_&&(l.a.clearTimeout(e.minimumUpdatePeriodTimeout_),e.minimumUpdatePeriodTimeout_=null);var t=e.master&&e.master.minimumUpdatePeriod;0===t&&(e.media()?t=1e3*e.media().targetDuration:(e.createMupOnMedia_=e.updateMinimumUpdatePeriodTimeout_,e.one("loadedmetadata",e.createMupOnMedia_))),"number"!=typeof t||t<=0?t<0&&this.logger_("found invalid minimumUpdatePeriod of "+t+", not setting a timeout"):this.createMUPTimeout_(t)},n.createMUPTimeout_=function(e){var t=this.masterPlaylistLoader_;t.minimumUpdatePeriodTimeout_=l.a.setTimeout((function(){t.minimumUpdatePeriodTimeout_=null,t.trigger("minimumUpdatePeriod"),t.createMUPTimeout_(e)}),e)},n.refreshXml_=function(){var e=this;this.requestMaster_((function(t,n){var r,o,l;n&&(e.media_&&(e.media_=e.masterPlaylistLoader_.master.playlists[e.media_.id]),e.masterPlaylistLoader_.sidxMapping_=(r=e.masterPlaylistLoader_.master,o=e.masterPlaylistLoader_.sidxMapping_,l=jo(r.playlists,o),Qa(r,(function(e,t,n,r){if(e.playlists&&e.playlists.length){var c=e.playlists;l=Ao(l,jo(c,o))}})),l),e.addSidxSegments_(e.media(),e.state,(function(t){e.refreshMedia_(e.media().id)})))}))},n.refreshMedia_=function(e){var t=this;if(!e)throw new Error("refreshMedia_ must take a media id");this.media_&&this.isMaster_&&this.handleMaster_();var n=this.masterPlaylistLoader_.master.playlists,r=!this.media_||this.media_!==n[e];if(r?this.media_=n[e]:this.trigger("playlistunchanged"),!this.mediaUpdateTimeout){!function e(){t.media().endList||(t.mediaUpdateTimeout=l.a.setTimeout((function(){t.trigger("mediaupdatetimeout"),e()}),so(t.media(),Boolean(r))))}()}this.trigger("loadedplaylist")},t}(Co),Oo={GOAL_BUFFER_LENGTH:30,MAX_GOAL_BUFFER_LENGTH:60,BACK_BUFFER_LENGTH:30,GOAL_BUFFER_LENGTH_RATE:1,INITIAL_BANDWIDTH:4194304,BANDWIDTH_VARIANCE:1.2,BUFFER_LOW_WATER_LINE:0,MAX_BUFFER_LOW_WATER_LINE:30,EXPERIMENTAL_MAX_BUFFER_LOW_WATER_LINE:16,BUFFER_LOW_WATER_LINE_RATE:1,BUFFER_HIGH_WATER_LINE:30},Mo=function(e){return e.on=e.addEventListener,e.off=e.removeEventListener,e},Lo=function(code){return function(){var e=function(e){try{return URL.createObjectURL(new Blob([e],{type:"application/javascript"}))}catch(n){var t=new BlobBuilder;return t.append(e),URL.createObjectURL(t.getBlob())}}(code),t=Mo(new Worker(e));t.objURL=e;var n=t.terminate;return t.on=t.addEventListener,t.off=t.removeEventListener,t.terminate=function(){return URL.revokeObjectURL(e),n.call(this)},t}},No=function(code){return"var browserWorkerPolyFill = "+Mo.toString()+";\nbrowserWorkerPolyFill(self);\n"+code},Ro=function(e){return e.toString().replace(/^function.+?{/,"").slice(0,-1)},Bo=No(Ro((function(){var t=function(){this.init=function(){var e={};this.on=function(t,n){e[t]||(e[t]=[]),e[t]=e[t].concat(n)},this.off=function(t,n){var r;return!!e[t]&&(r=e[t].indexOf(n),e[t]=e[t].slice(),e[t].splice(r,1),r>-1)},this.trigger=function(t){var n,i,r,o;if(n=e[t])if(2===arguments.length)for(r=n.length,i=0;i>>1,track.samplingfrequencyindex<<7|track.channelcount<<3,6,1,2]))},S=function(e){return n(I.hdlr,N[e])},w=function(track){var e=new Uint8Array([0,0,0,0,0,0,0,2,0,0,0,3,0,1,95,144,track.duration>>>24&255,track.duration>>>16&255,track.duration>>>8&255,255&track.duration,85,196,0,0]);return track.samplerate&&(e[12]=track.samplerate>>>24&255,e[13]=track.samplerate>>>16&255,e[14]=track.samplerate>>>8&255,e[15]=255&track.samplerate),n(I.mdhd,e)},T=function(track){return n(I.mdia,w(track),S(track.type),d(track))},c=function(e){return n(I.mfhd,new Uint8Array([0,0,0,0,(4278190080&e)>>24,(16711680&e)>>16,(65280&e)>>8,255&e]))},d=function(track){return n(I.minf,"video"===track.type?n(I.vmhd,R):n(I.smhd,B),r(),x(track))},h=function(e,t){for(var r=[],i=t.length;i--;)r[i]=A(t[i]);return n.apply(null,[I.moof,c(e)].concat(r))},f=function(e){for(var i=e.length,t=[];i--;)t[i]=y(e[i]);return n.apply(null,[I.moov,v(4294967295)].concat(t).concat(m(e)))},m=function(e){for(var i=e.length,t=[];i--;)t[i]=E(e[i]);return n.apply(null,[I.mvex].concat(t))},v=function(e){var t=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,2,0,1,95,144,(4278190080&e)>>24,(16711680&e)>>16,(65280&e)>>8,255&e,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(I.mvhd,t)},k=function(track){var e,i,t=track.samples||[],r=new Uint8Array(4+t.length);for(i=0;i>>8),o.push(255&t[i].byteLength),o=o.concat(Array.prototype.slice.call(t[i]));for(i=0;i>>8),l.push(255&r[i].byteLength),l=l.concat(Array.prototype.slice.call(r[i]));if(e=[I.avc1,new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,(65280&track.width)>>8,255&track.width,(65280&track.height)>>8,255&track.height,0,72,0,0,0,72,0,0,0,0,0,0,0,1,19,118,105,100,101,111,106,115,45,99,111,110,116,114,105,98,45,104,108,115,0,0,0,0,0,0,0,0,0,0,0,0,0,24,17,17]),n(I.avcC,new Uint8Array([1,track.profileIdc,track.profileCompatibility,track.levelIdc,255].concat([t.length],o,[r.length],l))),n(I.btrt,new Uint8Array([0,28,156,128,0,45,198,192,0,45,198,192]))],track.sarRatio){var c=track.sarRatio[0],d=track.sarRatio[1];e.push(n(I.pasp,new Uint8Array([(4278190080&c)>>24,(16711680&c)>>16,(65280&c)>>8,255&c,(4278190080&d)>>24,(16711680&d)>>16,(65280&d)>>8,255&d])))}return n.apply(null,e)},W=function(track){return n(I.mp4a,new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,(65280&track.channelcount)>>8,255&track.channelcount,(65280&track.samplesize)>>8,255&track.samplesize,0,0,0,0,(65280&track.samplerate)>>8,255&track.samplerate,0,0]),o(track))},_=function(track){var e=new Uint8Array([0,0,0,7,0,0,0,0,0,0,0,0,(4278190080&track.id)>>24,(16711680&track.id)>>16,(65280&track.id)>>8,255&track.id,0,0,0,0,(4278190080&track.duration)>>24,(16711680&track.duration)>>16,(65280&track.duration)>>8,255&track.duration,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,(65280&track.width)>>8,255&track.width,0,0,(65280&track.height)>>8,255&track.height,0,0]);return n(I.tkhd,e)},A=function(track){var e,t,r,o,l,c;return e=n(I.tfhd,new Uint8Array([0,0,0,58,(4278190080&track.id)>>24,(16711680&track.id)>>16,(65280&track.id)>>8,255&track.id,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0])),l=Math.floor(track.baseMediaDecodeTime/Z),c=Math.floor(track.baseMediaDecodeTime%Z),t=n(I.tfdt,new Uint8Array([1,0,0,0,l>>>24&255,l>>>16&255,l>>>8&255,255&l,c>>>24&255,c>>>16&255,c>>>8&255,255&c])),"audio"===track.type?(r=D(track,92),n(I.traf,e,t,r)):(o=k(track),r=D(track,o.length+92),n(I.traf,e,t,r,o))},y=function(track){return track.duration=track.duration||4294967295,n(I.trak,_(track),T(track))},E=function(track){var e=new Uint8Array([0,0,0,0,(4278190080&track.id)>>24,(16711680&track.id)>>16,(65280&track.id)>>8,255&track.id,0,0,0,1,0,0,0,0,0,0,0,0,0,1,0,1]);return"video"!==track.type&&(e[e.length-1]=0),n(I.trex,e)},X=function(e,t){var n=0,r=0,o=0,l=0;return e.length&&(void 0!==e[0].duration&&(n=1),void 0!==e[0].size&&(r=2),void 0!==e[0].flags&&(o=4),void 0!==e[0].compositionTimeOffset&&(l=8)),[0,0,n|r|o|l,1,(4278190080&e.length)>>>24,(16711680&e.length)>>>16,(65280&e.length)>>>8,255&e.length,(4278190080&t)>>>24,(16711680&t)>>>16,(65280&t)>>>8,255&t]},Y=function(track,e){var t,r,header,o,l,i;for(e+=20+16*(o=track.samples||[]).length,header=X(o,e),(r=new Uint8Array(header.length+16*o.length)).set(header),t=header.length,i=0;i>>24,r[t++]=(16711680&l.duration)>>>16,r[t++]=(65280&l.duration)>>>8,r[t++]=255&l.duration,r[t++]=(4278190080&l.size)>>>24,r[t++]=(16711680&l.size)>>>16,r[t++]=(65280&l.size)>>>8,r[t++]=255&l.size,r[t++]=l.flags.isLeading<<2|l.flags.dependsOn,r[t++]=l.flags.isDependedOn<<6|l.flags.hasRedundancy<<4|l.flags.paddingValue<<1|l.flags.isNonSyncSample,r[t++]=61440&l.flags.degradationPriority,r[t++]=15&l.flags.degradationPriority,r[t++]=(4278190080&l.compositionTimeOffset)>>>24,r[t++]=(16711680&l.compositionTimeOffset)>>>16,r[t++]=(65280&l.compositionTimeOffset)>>>8,r[t++]=255&l.compositionTimeOffset;return n(I.trun,r)},G=function(track,e){var t,r,header,o,l,i;for(e+=20+8*(o=track.samples||[]).length,header=X(o,e),(t=new Uint8Array(header.length+8*o.length)).set(header),r=header.length,i=0;i>>24,t[r++]=(16711680&l.duration)>>>16,t[r++]=(65280&l.duration)>>>8,t[r++]=255&l.duration,t[r++]=(4278190080&l.size)>>>24,t[r++]=(16711680&l.size)>>>16,t[r++]=(65280&l.size)>>>8,t[r++]=255&l.size;return n(I.trun,t)},D=function(track,e){return"audio"===track.type?G(track,e):Y(track,e)};l=function(){return n(I.ftyp,j,P,j,O)};var ee,te,ne,ie,re,ae,oe,se,ue=function(data){return n(I.mdat,data)},le=h,ce=function(e){var t,n=l(),r=f(e);return(t=new Uint8Array(n.byteLength+r.byteLength)).set(n),t.set(r,n.byteLength),t},de=function(e,t){var n={size:0,flags:{isLeading:0,dependsOn:1,isDependedOn:0,hasRedundancy:0,degradationPriority:0,isNonSyncSample:1}};return n.dataOffset=t,n.compositionTimeOffset=e.pts-e.dts,n.duration=e.duration,n.size=4*e.length,n.size+=e.byteLength,e.keyFrame&&(n.flags.dependsOn=2,n.flags.isNonSyncSample=0),n},he=function(e){var i,t,n=[],r=[];for(r.byteLength=0,r.nalCount=0,r.duration=0,n.byteLength=0,i=0;i1&&(t=e.shift(),e.byteLength-=t.byteLength,e.nalCount-=t.nalCount,e[0][0].dts=t.dts,e[0][0].pts=t.pts,e[0][0].duration+=t.duration),e},me=function(e,t){var n,i,r,o,l,c=t||0,d=[];for(n=0;nwe/2))){for((l=_e()[track.samplerate])||(l=e[0].data),i=0;i=t?e:(track.minSegmentDts=1/0,e.filter((function(e){return e.dts>=t&&(track.minSegmentDts=Math.min(track.minSegmentDts,e.dts),track.minSegmentPts=track.minSegmentDts,!0)})))},Ie=function(e){var i,t,n=[];for(i=0;i=this.virtualRowCount&&"function"==typeof this.beforeRowOverflow&&this.beforeRowOverflow(e),this.rows.length>0&&(this.rows.push(""),this.rowIdx++);this.rows.length>this.virtualRowCount;)this.rows.shift(),this.rowIdx--},qe.prototype.isEmpty=function(){return 0===this.rows.length||1===this.rows.length&&""===this.rows[0]},qe.prototype.addText=function(text){this.rows[this.rowIdx]+=text},qe.prototype.backspace=function(){if(!this.isEmpty()){var e=this.rows[this.rowIdx];this.rows[this.rowIdx]=e.substr(0,e.length-1)}};var $e=function(e,t,n){this.serviceNum=e,this.text="",this.currentWindow=new qe(-1),this.windows=[],this.stream=n,"string"==typeof t&&this.createTextDecoder(t)};$e.prototype.init=function(e,t){this.startPts=e;for(var n=0;n<8;n++)this.windows[n]=new qe(n),"function"==typeof t&&(this.windows[n].beforeRowOverflow=t)},$e.prototype.setCurrentWindow=function(e){this.currentWindow=this.windows[e]},$e.prototype.createTextDecoder=function(e){if("undefined"==typeof TextDecoder)this.stream.trigger("log",{level:"warn",message:"The `encoding` option is unsupported without TextDecoder support"});else try{this.textDecoder_=new TextDecoder(e)}catch(t){this.stream.trigger("log",{level:"warn",message:"TextDecoder could not be created with "+e+" encoding. "+t})}};var We=function e(t){t=t||{},e.prototype.init.call(this);var n,r=this,o=t.captionServices||{},l={};Object.keys(o).forEach((function(e){n=o[e],/^SERVICE/.test(e)&&(l[e]=n.encoding)})),this.serviceEncodings=l,this.current708Packet=null,this.services={},this.push=function(e){3===e.type?(r.new708Packet(),r.add708Bytes(e)):(null===r.current708Packet&&r.new708Packet(),r.add708Bytes(e))}};We.prototype=new K,We.prototype.new708Packet=function(){null!==this.current708Packet&&this.push708Packet(),this.current708Packet={data:[],ptsVals:[]}},We.prototype.add708Bytes=function(e){var data=e.ccData,t=data>>>8,n=255&data;this.current708Packet.ptsVals.push(e.pts),this.current708Packet.data.push(t),this.current708Packet.data.push(n)},We.prototype.push708Packet=function(){var e=this.current708Packet,t=e.data,n=null,r=null,i=0,b=t[i++];for(e.seq=b>>6,e.sizeCode=63&b;i>5)&&r>0&&(n=b=t[i++]),this.pushServiceBlock(n,i,r),r>0&&(i+=r-1)},We.prototype.pushServiceBlock=function(e,t,n){var b,i=t,r=this.current708Packet.data,o=this.services[e];for(o||(o=this.initService(e,i));i>5,r.rowLock=(16&b)>>4,r.columnLock=(8&b)>>3,r.priority=7&b,b=t[++i],r.relativePositioning=(128&b)>>7,r.anchorVertical=127&b,b=t[++i],r.anchorHorizontal=b,b=t[++i],r.anchorPoint=(240&b)>>4,r.rowCount=15&b,b=t[++i],r.columnCount=63&b,b=t[++i],r.windowStyle=(56&b)>>3,r.penStyle=7&b,r.virtualRowCount=r.rowCount+1,i},We.prototype.setWindowAttributes=function(i,e){var t=this.current708Packet.data,b=t[i],n=e.currentWindow.winAttr;return b=t[++i],n.fillOpacity=(192&b)>>6,n.fillRed=(48&b)>>4,n.fillGreen=(12&b)>>2,n.fillBlue=3&b,b=t[++i],n.borderType=(192&b)>>6,n.borderRed=(48&b)>>4,n.borderGreen=(12&b)>>2,n.borderBlue=3&b,b=t[++i],n.borderType+=(128&b)>>5,n.wordWrap=(64&b)>>6,n.printDirection=(48&b)>>4,n.scrollDirection=(12&b)>>2,n.justify=3&b,b=t[++i],n.effectSpeed=(240&b)>>4,n.effectDirection=(12&b)>>2,n.displayEffect=3&b,i},We.prototype.flushDisplayed=function(e,t){for(var n=[],r=0;r<8;r++)t.windows[r].visible&&!t.windows[r].isEmpty()&&n.push(t.windows[r].getText());t.endPts=e,t.text=n.join("\n\n"),this.pushCaption(t),t.startPts=e},We.prototype.pushCaption=function(e){""!==e.text&&(this.trigger("data",{startPts:e.startPts,endPts:e.endPts,text:e.text,stream:"cc708_"+e.serviceNum}),e.text="",e.startPts=e.endPts)},We.prototype.displayWindows=function(i,e){var b=this.current708Packet.data[++i],t=this.getPts(i);this.flushDisplayed(t,e);for(var n=0;n<8;n++)b&1<>4,n.offset=(12&b)>>2,n.penSize=3&b,b=t[++i],n.italics=(128&b)>>7,n.underline=(64&b)>>6,n.edgeType=(56&b)>>3,n.fontStyle=7&b,i},We.prototype.setPenColor=function(i,e){var t=this.current708Packet.data,b=t[i],n=e.currentWindow.penColor;return b=t[++i],n.fgOpacity=(192&b)>>6,n.fgRed=(48&b)>>4,n.fgGreen=(12&b)>>2,n.fgBlue=3&b,b=t[++i],n.bgOpacity=(192&b)>>6,n.bgRed=(48&b)>>4,n.bgGreen=(12&b)>>2,n.bgBlue=3&b,b=t[++i],n.edgeRed=(48&b)>>4,n.edgeGreen=(12&b)>>2,n.edgeBlue=3&b,i},We.prototype.setPenLocation=function(i,e){var t=this.current708Packet.data,b=t[i],n=e.currentWindow.penLoc;return e.currentWindow.pendingNewLine=!0,b=t[++i],n.row=15&b,b=t[++i],n.column=63&b,i},We.prototype.reset=function(i,e){var t=this.getPts(i);return this.flushDisplayed(t,e),this.initService(e.serviceNum,i)};var Ge={42:225,92:233,94:237,95:243,96:250,123:231,124:247,125:209,126:241,127:9608,304:174,305:176,306:189,307:191,308:8482,309:162,310:163,311:9834,312:224,313:160,314:232,315:226,316:234,317:238,318:244,319:251,544:193,545:201,546:211,547:218,548:220,549:252,550:8216,551:161,552:42,553:39,554:8212,555:169,556:8480,557:8226,558:8220,559:8221,560:192,561:194,562:199,563:200,564:202,565:203,566:235,567:206,568:207,569:239,570:212,571:217,572:249,573:219,574:171,575:187,800:195,801:227,802:205,803:204,804:236,805:210,806:242,807:213,808:245,809:123,810:125,811:92,812:94,813:95,814:124,815:126,816:196,817:228,818:214,819:246,820:223,821:165,822:164,823:9474,824:197,825:229,826:216,827:248,828:9484,829:9488,830:9492,831:9496},Ye=function(code){return null===code?"":(code=Ge[code]||code,String.fromCharCode(code))},Xe=[4352,4384,4608,4640,5376,5408,5632,5664,5888,5920,4096,4864,4896,5120,5152],Ke=function(){for(var e=[],i=15;i--;)e.push("");return e},Qe=function e(t,n){e.prototype.init.call(this),this.field_=t||0,this.dataChannel_=n||0,this.name_="CC"+(1+(this.field_<<1|this.dataChannel_)),this.setConstants(),this.reset(),this.push=function(e){var data,t,n,r,text;if((data=32639&e.ccData)!==this.lastControlCode_){if(4096==(61440&data)?this.lastControlCode_=data:data!==this.PADDING_&&(this.lastControlCode_=null),n=data>>>8,r=255&data,data!==this.PADDING_)if(data===this.RESUME_CAPTION_LOADING_)this.mode_="popOn";else if(data===this.END_OF_CAPTION_)this.mode_="popOn",this.clearFormatting(e.pts),this.flushDisplayed(e.pts),t=this.displayed_,this.displayed_=this.nonDisplayed_,this.nonDisplayed_=t,this.startPts_=e.pts;else if(data===this.ROLL_UP_2_ROWS_)this.rollUpRows_=2,this.setRollUp(e.pts);else if(data===this.ROLL_UP_3_ROWS_)this.rollUpRows_=3,this.setRollUp(e.pts);else if(data===this.ROLL_UP_4_ROWS_)this.rollUpRows_=4,this.setRollUp(e.pts);else if(data===this.CARRIAGE_RETURN_)this.clearFormatting(e.pts),this.flushDisplayed(e.pts),this.shiftRowsUp_(),this.startPts_=e.pts;else if(data===this.BACKSPACE_)"popOn"===this.mode_?this.nonDisplayed_[this.row_]=this.nonDisplayed_[this.row_].slice(0,-1):this.displayed_[this.row_]=this.displayed_[this.row_].slice(0,-1);else if(data===this.ERASE_DISPLAYED_MEMORY_)this.flushDisplayed(e.pts),this.displayed_=Ke();else if(data===this.ERASE_NON_DISPLAYED_MEMORY_)this.nonDisplayed_=Ke();else if(data===this.RESUME_DIRECT_CAPTIONING_)"paintOn"!==this.mode_&&(this.flushDisplayed(e.pts),this.displayed_=Ke()),this.mode_="paintOn",this.startPts_=e.pts;else if(this.isSpecialCharacter(n,r))text=Ye((n=(3&n)<<8)|r),this[this.mode_](e.pts,text),this.column_++;else if(this.isExtCharacter(n,r))"popOn"===this.mode_?this.nonDisplayed_[this.row_]=this.nonDisplayed_[this.row_].slice(0,-1):this.displayed_[this.row_]=this.displayed_[this.row_].slice(0,-1),text=Ye((n=(3&n)<<8)|r),this[this.mode_](e.pts,text),this.column_++;else if(this.isMidRowCode(n,r))this.clearFormatting(e.pts),this[this.mode_](e.pts," "),this.column_++,14&~r||this.addFormatting(e.pts,["i"]),1&~r||this.addFormatting(e.pts,["u"]);else if(this.isOffsetControlCode(n,r))this.column_+=3&r;else if(this.isPAC(n,r)){var o=Xe.indexOf(7968&data);"rollUp"===this.mode_&&(o-this.rollUpRows_+1<0&&(o=this.rollUpRows_-1),this.setRollUp(e.pts,o)),o!==this.row_&&(this.clearFormatting(e.pts),this.row_=o),1&r&&-1===this.formatting_.indexOf("u")&&this.addFormatting(e.pts,["u"]),16&~data||(this.column_=4*((14&data)>>1)),this.isColorPAC(r)&&(14&~r||this.addFormatting(e.pts,["i"]))}else this.isNormalChar(n)&&(0===r&&(r=null),text=Ye(n),text+=Ye(r),this[this.mode_](e.pts,text),this.column_+=text.length)}else this.lastControlCode_=null}};Qe.prototype=new K,Qe.prototype.flushDisplayed=function(e){var content=this.displayed_.map((function(e,t){try{return e.trim()}catch(e){return this.trigger("log",{level:"warn",message:"Skipping a malformed 608 caption at index "+t+"."}),""}}),this).join("\n").replace(/^\n+|\n+$/g,"");content.length&&this.trigger("data",{startPts:this.startPts_,endPts:e,text:content,stream:this.name_})},Qe.prototype.reset=function(){this.mode_="popOn",this.topRow_=0,this.startPts_=0,this.displayed_=Ke(),this.nonDisplayed_=Ke(),this.lastControlCode_=null,this.column_=0,this.row_=14,this.rollUpRows_=2,this.formatting_=[]},Qe.prototype.setConstants=function(){0===this.dataChannel_?(this.BASE_=16,this.EXT_=17,this.CONTROL_=(20|this.field_)<<8,this.OFFSET_=23):1===this.dataChannel_&&(this.BASE_=24,this.EXT_=25,this.CONTROL_=(28|this.field_)<<8,this.OFFSET_=31),this.PADDING_=0,this.RESUME_CAPTION_LOADING_=32|this.CONTROL_,this.END_OF_CAPTION_=47|this.CONTROL_,this.ROLL_UP_2_ROWS_=37|this.CONTROL_,this.ROLL_UP_3_ROWS_=38|this.CONTROL_,this.ROLL_UP_4_ROWS_=39|this.CONTROL_,this.CARRIAGE_RETURN_=45|this.CONTROL_,this.RESUME_DIRECT_CAPTIONING_=41|this.CONTROL_,this.BACKSPACE_=33|this.CONTROL_,this.ERASE_DISPLAYED_MEMORY_=44|this.CONTROL_,this.ERASE_NON_DISPLAYED_MEMORY_=46|this.CONTROL_},Qe.prototype.isSpecialCharacter=function(e,t){return e===this.EXT_&&t>=48&&t<=63},Qe.prototype.isExtCharacter=function(e,t){return(e===this.EXT_+1||e===this.EXT_+2)&&t>=32&&t<=63},Qe.prototype.isMidRowCode=function(e,t){return e===this.EXT_&&t>=32&&t<=47},Qe.prototype.isOffsetControlCode=function(e,t){return e===this.OFFSET_&&t>=33&&t<=35},Qe.prototype.isPAC=function(e,t){return e>=this.BASE_&&e=64&&t<=127},Qe.prototype.isColorPAC=function(e){return e>=64&&e<=79||e>=96&&e<=127},Qe.prototype.isNormalChar=function(e){return e>=32&&e<=127},Qe.prototype.setRollUp=function(e,t){if("rollUp"!==this.mode_&&(this.row_=14,this.mode_="rollUp",this.flushDisplayed(e),this.nonDisplayed_=Ke(),this.displayed_=Ke()),void 0!==t&&t!==this.row_)for(var i=0;i"}),"");this[this.mode_](e,text)},Qe.prototype.clearFormatting=function(e){if(this.formatting_.length){var text=this.formatting_.reverse().reduce((function(text,e){return text+""}),"");this.formatting_=[],this[this.mode_](e,text)}},Qe.prototype.popOn=function(e,text){var t=this.nonDisplayed_[this.row_];t+=text,this.nonDisplayed_[this.row_]=t},Qe.prototype.rollUp=function(e,text){var t=this.displayed_[this.row_];t+=text,this.displayed_[this.row_]=t},Qe.prototype.shiftRowsUp_=function(){var i;for(i=0;it&&(n=-1);Math.abs(t-e)>4294967296;)e+=8589934592*n;return e},nt=function e(t){var n,r;e.prototype.init.call(this),this.type_=t||et,this.push=function(data){this.type_!==et&&data.type!==this.type_||(void 0===r&&(r=data.dts),data.dts=tt(data.dts,r),data.pts=tt(data.pts,r),n=data.dts,this.trigger("data",data))},this.flush=function(){r=n,this.trigger("done")},this.endTimeline=function(){this.flush(),this.trigger("endedtimeline")},this.discontinuity=function(){r=void 0,n=void 0},this.reset=function(){this.discontinuity(),this.trigger("reset")}};nt.prototype=new K;var it,at=nt,ot=tt,st=function(e,t,n){var i,r="";for(i=t;i>>2;f*=4,f+=3&h[7],d.timeStamp=f,void 0===t.pts&&void 0===t.dts&&(t.pts=d.timeStamp,t.dts=d.timeStamp),this.trigger("timestamp",d)}t.frames.push(d),l+=10,l+=c}while(l>>4>1&&(r+=t[r]+1),0===n.pid)n.type="pat",e(t.subarray(r),n),this.trigger("data",n);else if(n.pid===this.pmtPid)for(n.type="pmt",e(t.subarray(r),n),this.trigger("data",n);this.packetsWaitingForPmt.length;)this.processPes_.apply(this,this.packetsWaitingForPmt.shift());else void 0===this.programMapTable?this.packetsWaitingForPmt.push([t,r,n]):this.processPes_(t,r,n)},this.processPes_=function(e,t,n){n.pid===this.programMapTable.video?n.streamType=Ze.H264_STREAM_TYPE:n.pid===this.programMapTable.audio?n.streamType=Ze.ADTS_STREAM_TYPE:n.streamType=this.programMapTable["timed-metadata"][n.pid],n.type="pes",n.data=e.subarray(t),this.trigger("data",n)}},ft.prototype=new K,ft.STREAM_TYPES={h264:27,adts:15},pt=function(){var e,t=this,n=!1,video={data:[],size:0},audio={data:[],size:0},r={data:[],size:0},o=function(e,n,r){var o,l,c=new Uint8Array(e.size),d={type:n},i=0,h=0;if(e.data.length&&!(e.size<9)){for(d.trackId=e.data[0].pid,i=0;i>>3,m.pts*=4,m.pts+=(6&f[13])>>>1,m.dts=m.pts,64&v&&(m.dts=(14&f[14])<<27|(255&f[15])<<20|(254&f[16])<<12|(255&f[17])<<5|(254&f[18])>>>3,m.dts*=4,m.dts+=(6&f[18])>>>1)),m.data=f.subarray(9+f[8])),o="video"===n||d.packetLength<=e.size,(r||o)&&(e.size=0,e.data.length=0),o&&t.trigger("data",d)}};pt.prototype.init.call(this),this.push=function(data){({pat:function(){},pes:function(){var e,t;switch(data.streamType){case Ze.H264_STREAM_TYPE:e=video,t="video";break;case Ze.ADTS_STREAM_TYPE:e=audio,t="audio";break;case Ze.METADATA_STREAM_TYPE:e=r,t="timed-metadata";break;default:return}data.payloadUnitStartIndicator&&o(e,t,!0),e.data.push(data),e.size+=data.data.byteLength},pmt:function(){var r={type:"metadata",tracks:[]};null!==(e=data.programMapTable).video&&r.tracks.push({timelineStartInfo:{baseMediaDecodeTime:0},id:+e.video,codec:"avc",type:"video"}),null!==e.audio&&r.tracks.push({timelineStartInfo:{baseMediaDecodeTime:0},id:+e.audio,codec:"adts",type:"audio"}),n=!0,t.trigger("data",r)}})[data.type]()},this.reset=function(){video.size=0,video.data.length=0,audio.size=0,audio.data.length=0,this.trigger("reset")},this.flushStreams_=function(){o(video,"video"),o(audio,"audio"),o(r,"timed-metadata")},this.flush=function(){if(!n&&e){var r={type:"metadata",tracks:[]};null!==e.video&&r.tracks.push({timelineStartInfo:{baseMediaDecodeTime:0},id:+e.video,codec:"avc",type:"video"}),null!==e.audio&&r.tracks.push({timelineStartInfo:{baseMediaDecodeTime:0},id:+e.audio,codec:"adts",type:"audio"}),t.trigger("data",r)}n=!1,this.flushStreams_(),this.trigger("done")}},pt.prototype=new K;var yt={PAT_PID:0,MP2T_PACKET_LENGTH:vt,TransportPacketStream:ht,TransportParseStream:ft,ElementaryStream:pt,TimestampRolloverStream:gt,CaptionStream:Je.CaptionStream,Cea608Stream:Je.Cea608Stream,Cea708Stream:Je.Cea708Stream,MetadataStream:mt};for(var bt in Ze)Ze.hasOwnProperty(bt)&&(yt[bt]=Ze[bt]);var _t,Tt=yt,wt=we,St=[96e3,88200,64e3,48e3,44100,32e3,24e3,22050,16e3,12e3,11025,8e3,7350];_t=function(e){var t,n=0;_t.prototype.init.call(this),this.skipWarn_=function(e,t){this.trigger("log",{level:"warn",message:"adts skiping bytes "+e+" to "+t+" in frame "+n+" outside syncword"})},this.push=function(r){var o,l,c,d,h,i=0;if(e||(n=0),"audio"===r.type){var f;for(t&&t.length?(c=t,(t=new Uint8Array(c.byteLength+r.data.byteLength)).set(c),t.set(r.data,c.byteLength)):t=r.data;i+7>5,h=(d=1024*(1+(3&t[i+6])))*wt/St[(60&t[i+2])>>>2],t.byteLength-i>>6&3),channelcount:(1&t[i+2])<<2|(192&t[i+3])>>>6,samplerate:St[(60&t[i+2])>>>2],samplingfrequencyindex:(60&t[i+2])>>>2,samplesize:16,data:t.subarray(i+7+l,i+o)}),n++,i+=o}else"number"!=typeof f&&(f=i),i++;"number"==typeof f&&(this.skipWarn_(f,i),f=null),t=t.subarray(i)}},this.flush=function(){n=0,this.trigger("done")},this.reset=function(){t=void 0,this.trigger("reset")},this.endTimeline=function(){t=void 0,this.trigger("endedtimeline")}},_t.prototype=new K;var kt,xt,Ct,At=_t,Et=function(e){var t=e.byteLength,n=0,r=0;this.length=function(){return 8*t},this.bitsAvailable=function(){return 8*t+r},this.loadWord=function(){var o=e.byteLength-t,l=new Uint8Array(4),c=Math.min(4,t);if(0===c)throw new Error("no bytes available");l.set(e.subarray(o,o+c)),n=new DataView(l.buffer).getUint32(0),r=8*c,t-=c},this.skipBits=function(e){var o;r>e?(n<<=e,r-=e):(e-=r,e-=8*(o=Math.floor(e/8)),t-=o,this.loadWord(),n<<=e,r-=e)},this.readBits=function(e){var o=Math.min(r,e),l=n>>>32-o;return(r-=o)>0?n<<=o:t>0&&this.loadWord(),(o=e-o)>0?l<>>e)return n<<=e,r-=e,e;return this.loadWord(),e+this.skipLeadingZeros()},this.skipUnsignedExpGolomb=function(){this.skipBits(1+this.skipLeadingZeros())},this.skipExpGolomb=function(){this.skipBits(1+this.skipLeadingZeros())},this.readUnsignedExpGolomb=function(){var e=this.skipLeadingZeros();return this.readBits(e+1)-1},this.readExpGolomb=function(){var e=this.readUnsignedExpGolomb();return 1&e?1+e>>>1:-1*(e>>>1)},this.readBoolean=function(){return 1===this.readBits(1)},this.readUnsignedByte=function(){return this.readBits(8)},this.loadWord()};xt=function(){var i,e,t=0;xt.prototype.init.call(this),this.push=function(data){var n;e?((n=new Uint8Array(e.byteLength+data.data.byteLength)).set(e),n.set(data.data,e.byteLength),e=n):e=data.data;for(var r=e.byteLength;t3&&this.trigger("data",e.subarray(t+3)),e=null,t=0,this.trigger("done")},this.endTimeline=function(){this.flush(),this.trigger("endedtimeline")}},xt.prototype=new K,Ct={100:!0,110:!0,122:!0,244:!0,44:!0,83:!0,86:!0,118:!0,128:!0,138:!0,139:!0,134:!0},kt=function(){var e,t,n,r,o,l,c,d=new xt;kt.prototype.init.call(this),e=this,this.push=function(e){"video"===e.type&&(t=e.trackId,n=e.pts,r=e.dts,d.push(e))},d.on("data",(function(data){var c={trackId:t,pts:n,dts:r,data:data,nalUnitTypeCode:31&data[0]};switch(c.nalUnitTypeCode){case 5:c.nalUnitType="slice_layer_without_partitioning_rbsp_idr";break;case 6:c.nalUnitType="sei_rbsp",c.escapedRBSP=o(data.subarray(1));break;case 7:c.nalUnitType="seq_parameter_set_rbsp",c.escapedRBSP=o(data.subarray(1)),c.config=l(c.escapedRBSP);break;case 8:c.nalUnitType="pic_parameter_set_rbsp";break;case 9:c.nalUnitType="access_unit_delimiter_rbsp"}e.trigger("data",c)})),d.on("done",(function(){e.trigger("done")})),d.on("partialdone",(function(){e.trigger("partialdone")})),d.on("reset",(function(){e.trigger("reset")})),d.on("endedtimeline",(function(){e.trigger("endedtimeline")})),this.flush=function(){d.flush()},this.partialFlush=function(){d.partialFlush()},this.reset=function(){d.reset()},this.endTimeline=function(){d.endTimeline()},c=function(e,t){var n,r=8,o=8;for(n=0;n=0?t:0,(16&header[e+5])>>4?t+20:t+10},Ot=function e(data,t){return data.length-t<10||data[t]!=="I".charCodeAt(0)||data[t+1]!=="D".charCodeAt(0)||data[t+2]!=="3".charCodeAt(0)?t:e(data,t+=Pt(data,t))},Mt=function(data){return data[0]<<21|data[1]<<14|data[2]<<7|data[3]},Lt={isLikelyAacData:function(data){var e=Ot(data,0);return data.length>=e+2&&!(255&~data[e])&&!(240&~data[e+1])&&16==(22&data[e+1])},parseId3TagSize:Pt,parseAdtsSize:function(header,e){var t=(224&header[e+5])>>5,n=header[e+4]<<3;return 6144&header[e+3]|n|t},parseType:function(header,e){return header[e]==="I".charCodeAt(0)&&header[e+1]==="D".charCodeAt(0)&&header[e+2]==="3".charCodeAt(0)?"timed-metadata":!0&header[e]&&!(240&~header[e+1])?"audio":null},parseSampleRate:function(e){for(var i=0;i+5>>2];i++}return null},parseAacTimestamp:function(e){var t,n,r;t=10,64&e[5]&&(t+=4,t+=Mt(e.subarray(10,14)));do{if((n=Mt(e.subarray(t+4,t+8)))<1)return null;if("PRIV"===String.fromCharCode(e[t],e[t+1],e[t+2],e[t+3])){r=e.subarray(t+10,t+n+10);for(var i=0;i>>2;return c*=4,c+=3&l[7]}break}}t+=10,t+=n}while(t=3;)if(e[h]!=="I".charCodeAt(0)||e[h+1]!=="D".charCodeAt(0)||e[h+2]!=="3".charCodeAt(0))if(255&~e[h]||240&~e[h+1])h++;else{if(e.length-h<7)break;if(h+(d=Lt.parseAdtsSize(e,h))>e.length)break;l={type:"audio",data:e.subarray(h,h+d),pts:t,dts:t},this.trigger("data",l),h+=d}else{if(e.length-h<10)break;if(h+(d=Lt.parseId3TagSize(e,h))>e.length)break;o={type:"timed-metadata",data:e.subarray(h,h+d)},this.trigger("data",o),h+=d}r=e.length-h,e=r>0?e.subarray(h):new Uint8Array},this.reset=function(){e=new Uint8Array,this.trigger("reset")},this.endTimeline=function(){e=new Uint8Array,this.trigger("endedtimeline")}}).prototype=new K;var Nt,Rt,Bt,Ft,Ut=Dt,Vt=["audioobjecttype","channelcount","samplerate","samplingfrequencyindex","samplesize"],Ht=["width","height","profileIdc","levelIdc","profileCompatibility","sarRatio"],zt=It.H264Stream,qt=Lt.isLikelyAacData,$t=we,Wt=function(e,t){t.stream=e,this.trigger("log",t)},Gt=function(e,t){for(var n=Object.keys(t),i=0;i=-1e4&&t<=45e3&&(!n||l>t)&&(n=o,l=t));return n?n.gop:null},this.alignGopsAtStart_=function(e){var t,n,r,o,c,d,h,f;for(c=e.byteLength,d=e.nalCount,h=e.duration,t=n=0;tr.pts?t++:(n++,c-=o.byteLength,d-=o.nalCount,h-=o.duration);return 0===n?e:n===e.length?null:((f=e.slice(n)).byteLength=c,f.duration=h,f.nalCount=d,f.pts=f[0].pts,f.dts=f[0].dts,f)},this.alignGopsAtEnd_=function(e){var t,n,r,o,c,d,h;for(t=l.length-1,n=e.length-1,c=null,d=!1;t>=0&&n>=0;){if(r=l[t],o=e[n],r.pts===o.pts){d=!0;break}r.pts>o.pts?t--:(t===l.length-1&&(c=n),n--)}if(!d&&null===c)return null;if(0===(h=d?n:c))return e;var f=e.slice(h),m=f.reduce((function(e,t){return e.byteLength+=t.byteLength,e.duration+=t.duration,e.nalCount+=t.nalCount,e}),{byteLength:0,duration:0,nalCount:0});return f.byteLength=m.byteLength,f.duration=m.duration,f.nalCount=m.nalCount,f.pts=f[0].pts,f.dts=f[0].dts,f},this.alignGopsWith=function(e){l=e}},Nt.prototype=new K,Ft=function(e,t){this.numberOfTracks=0,this.metadataStream=t,void 0!==(e=e||{}).remux?this.remuxTracks=!!e.remux:this.remuxTracks=!0,"boolean"==typeof e.keepOriginalTimestamps?this.keepOriginalTimestamps=e.keepOriginalTimestamps:this.keepOriginalTimestamps=!1,this.pendingTracks=[],this.videoTrack=null,this.pendingBoxes=[],this.pendingCaptions=[],this.pendingMetadata=[],this.pendingBytes=0,this.emittedTracks=0,Ft.prototype.init.call(this),this.push=function(output){return output.text?this.pendingCaptions.push(output):output.frames?this.pendingMetadata.push(output):(this.pendingTracks.push(output.track),this.pendingBytes+=output.boxes.byteLength,"video"===output.track.type&&(this.videoTrack=output.track,this.pendingBoxes.push(output.boxes)),void("audio"===output.track.type&&(this.audioTrack=output.track,this.pendingBoxes.unshift(output.boxes))))}},Ft.prototype=new K,Ft.prototype.flush=function(e){var caption,t,n,i,r=0,o={captions:[],captionStreams:{},metadata:[],info:{}},l=0;if(this.pendingTracks.length=this.numberOfTracks&&(this.trigger("done"),this.emittedTracks=0))}if(this.videoTrack?(l=this.videoTrack.timelineStartInfo.pts,Ht.forEach((function(e){o.info[e]=this.videoTrack[e]}),this)):this.audioTrack&&(l=this.audioTrack.timelineStartInfo.pts,Vt.forEach((function(e){o.info[e]=this.audioTrack[e]}),this)),this.videoTrack||this.audioTrack){for(1===this.pendingTracks.length?o.type=this.pendingTracks[0].type:o.type="combined",this.emittedTracks+=this.pendingTracks.length,n=ce(this.pendingTracks),o.initSegment=new Uint8Array(n.byteLength),o.initSegment.set(n),o.data=new Uint8Array(this.pendingBytes),i=0;i=this.numberOfTracks&&(this.trigger("done"),this.emittedTracks=0)},Ft.prototype.setRemux=function(e){this.remuxTracks=e},Bt=function(e){var t,n,r=this,o=!0;Bt.prototype.init.call(this),e=e||{},this.baseMediaDecodeTime=e.baseMediaDecodeTime||0,this.transmuxPipeline_={},this.setupAacPipeline=function(){var o={};this.transmuxPipeline_=o,o.type="aac",o.metadataStream=new Tt.MetadataStream,o.aacStream=new Ut,o.audioTimestampRolloverStream=new Tt.TimestampRolloverStream("audio"),o.timedMetadataTimestampRolloverStream=new Tt.TimestampRolloverStream("timed-metadata"),o.adtsStream=new At,o.coalesceStream=new Ft(e,o.metadataStream),o.headOfPipeline=o.aacStream,o.aacStream.pipe(o.audioTimestampRolloverStream).pipe(o.adtsStream),o.aacStream.pipe(o.timedMetadataTimestampRolloverStream).pipe(o.metadataStream).pipe(o.coalesceStream),o.metadataStream.on("timestamp",(function(e){o.aacStream.setTimestamp(e.timeStamp)})),o.aacStream.on("data",(function(data){"timed-metadata"!==data.type&&"audio"!==data.type||o.audioSegmentStream||(n=n||{timelineStartInfo:{baseMediaDecodeTime:r.baseMediaDecodeTime},codec:"adts",type:"audio"},o.coalesceStream.numberOfTracks++,o.audioSegmentStream=new Rt(n,e),o.audioSegmentStream.on("log",r.getLogTrigger_("audioSegmentStream")),o.audioSegmentStream.on("timingInfo",r.trigger.bind(r,"audioTimingInfo")),o.adtsStream.pipe(o.audioSegmentStream).pipe(o.coalesceStream),r.trigger("trackinfo",{hasAudio:!!n,hasVideo:!!t}))})),o.coalesceStream.on("data",this.trigger.bind(this,"data")),o.coalesceStream.on("done",this.trigger.bind(this,"done")),Gt(this,o)},this.setupTsPipeline=function(){var o={};this.transmuxPipeline_=o,o.type="ts",o.metadataStream=new Tt.MetadataStream,o.packetStream=new Tt.TransportPacketStream,o.parseStream=new Tt.TransportParseStream,o.elementaryStream=new Tt.ElementaryStream,o.timestampRolloverStream=new Tt.TimestampRolloverStream,o.adtsStream=new At,o.h264Stream=new zt,o.captionStream=new Tt.CaptionStream(e),o.coalesceStream=new Ft(e,o.metadataStream),o.headOfPipeline=o.packetStream,o.packetStream.pipe(o.parseStream).pipe(o.elementaryStream).pipe(o.timestampRolloverStream),o.timestampRolloverStream.pipe(o.h264Stream),o.timestampRolloverStream.pipe(o.adtsStream),o.timestampRolloverStream.pipe(o.metadataStream).pipe(o.coalesceStream),o.h264Stream.pipe(o.captionStream).pipe(o.coalesceStream),o.elementaryStream.on("data",(function(data){var i;if("metadata"===data.type){for(i=data.tracks.length;i--;)t||"video"!==data.tracks[i].type?n||"audio"!==data.tracks[i].type||((n=data.tracks[i]).timelineStartInfo.baseMediaDecodeTime=r.baseMediaDecodeTime):(t=data.tracks[i]).timelineStartInfo.baseMediaDecodeTime=r.baseMediaDecodeTime;t&&!o.videoSegmentStream&&(o.coalesceStream.numberOfTracks++,o.videoSegmentStream=new Nt(t,e),o.videoSegmentStream.on("log",r.getLogTrigger_("videoSegmentStream")),o.videoSegmentStream.on("timelineStartInfo",(function(t){n&&!e.keepOriginalTimestamps&&(n.timelineStartInfo=t,o.audioSegmentStream.setEarliestDts(t.dts-r.baseMediaDecodeTime))})),o.videoSegmentStream.on("processedGopsInfo",r.trigger.bind(r,"gopInfo")),o.videoSegmentStream.on("segmentTimingInfo",r.trigger.bind(r,"videoSegmentTimingInfo")),o.videoSegmentStream.on("baseMediaDecodeTime",(function(e){n&&o.audioSegmentStream.setVideoBaseMediaDecodeTime(e)})),o.videoSegmentStream.on("timingInfo",r.trigger.bind(r,"videoTimingInfo")),o.h264Stream.pipe(o.videoSegmentStream).pipe(o.coalesceStream)),n&&!o.audioSegmentStream&&(o.coalesceStream.numberOfTracks++,o.audioSegmentStream=new Rt(n,e),o.audioSegmentStream.on("log",r.getLogTrigger_("audioSegmentStream")),o.audioSegmentStream.on("timingInfo",r.trigger.bind(r,"audioTimingInfo")),o.audioSegmentStream.on("segmentTimingInfo",r.trigger.bind(r,"audioSegmentTimingInfo")),o.adtsStream.pipe(o.audioSegmentStream).pipe(o.coalesceStream)),r.trigger("trackinfo",{hasAudio:!!n,hasVideo:!!t})}})),o.coalesceStream.on("data",this.trigger.bind(this,"data")),o.coalesceStream.on("id3Frame",(function(e){e.dispatchType=o.metadataStream.dispatchType,r.trigger("id3Frame",e)})),o.coalesceStream.on("caption",this.trigger.bind(this,"caption")),o.coalesceStream.on("done",this.trigger.bind(this,"done")),Gt(this,o)},this.setBaseMediaDecodeTime=function(r){var o=this.transmuxPipeline_;e.keepOriginalTimestamps||(this.baseMediaDecodeTime=r),n&&(n.timelineStartInfo.dts=void 0,n.timelineStartInfo.pts=void 0,Oe(n),o.audioTimestampRolloverStream&&o.audioTimestampRolloverStream.discontinuity()),t&&(o.videoSegmentStream&&(o.videoSegmentStream.gopCache_=[]),t.timelineStartInfo.dts=void 0,t.timelineStartInfo.pts=void 0,Oe(t),o.captionStream.reset()),o.timestampRolloverStream&&o.timestampRolloverStream.discontinuity()},this.setAudioAppendStart=function(e){n&&this.transmuxPipeline_.audioSegmentStream.setAudioAppendStart(e)},this.setRemux=function(t){var n=this.transmuxPipeline_;e.remux=t,n&&n.coalesceStream&&n.coalesceStream.setRemux(t)},this.alignGopsWith=function(e){t&&this.transmuxPipeline_.videoSegmentStream&&this.transmuxPipeline_.videoSegmentStream.alignGopsWith(e)},this.getLogTrigger_=function(e){var t=this;return function(n){n.stream=e,t.trigger("log",n)}},this.push=function(data){if(o){var e=qt(data);e&&"aac"!==this.transmuxPipeline_.type?this.setupAacPipeline():e||"ts"===this.transmuxPipeline_.type||this.setupTsPipeline(),o=!1}this.transmuxPipeline_.headOfPipeline.push(data)},this.flush=function(){o=!0,this.transmuxPipeline_.headOfPipeline.flush()},this.endTimeline=function(){this.transmuxPipeline_.headOfPipeline.endTimeline()},this.reset=function(){this.transmuxPipeline_.headOfPipeline&&this.transmuxPipeline_.headOfPipeline.reset()},this.resetCaptions=function(){this.transmuxPipeline_.captionStream&&this.transmuxPipeline_.captionStream.reset()}},Bt.prototype=new K;var Kt,Qt,Jt,Zt={Transmuxer:Bt,VideoSegmentStream:Nt,AudioSegmentStream:Rt,AUDIO_PROPERTIES:Vt,VIDEO_PROPERTIES:Ht,generateSegmentTimingInfo:Xt},en=function(e){return e>>>0},tn=function(e){var t="";return t+=String.fromCharCode(e[0]),t+=String.fromCharCode(e[1]),t+=String.fromCharCode(e[2]),t+=String.fromCharCode(e[3])},nn=en,rn=function e(data,path){var i,t,n,r,o,l=[];if(!path.length)return null;for(i=0;i1?i+t:data.byteLength,n===path[0]&&(1===path.length?l.push(data.subarray(i+8,r)):(o=e(data.subarray(i+8,r),path.slice(1))).length&&(l=l.concat(o))),i=r;return l},an=en,on=J.getUint64,sn=function(data){var e={version:data[0],flags:new Uint8Array(data.subarray(1,4))};return 1===e.version?e.baseMediaDecodeTime=on(data.subarray(4)):e.baseMediaDecodeTime=an(data[4]<<24|data[5]<<16|data[6]<<8|data[7]),e},un=function(e){return{isLeading:(12&e[0])>>>2,dependsOn:3&e[0],isDependedOn:(192&e[1])>>>6,hasRedundancy:(48&e[1])>>>4,paddingValue:(14&e[1])>>>1,isNonSyncSample:1&e[1],degradationPriority:e[2]<<8|e[3]}},ln=function(data){var e,t={version:data[0],flags:new Uint8Array(data.subarray(1,4)),samples:[]},view=new DataView(data.buffer,data.byteOffset,data.byteLength),n=1&t.flags[2],r=4&t.flags[2],o=1&t.flags[1],l=2&t.flags[1],c=4&t.flags[1],d=8&t.flags[1],h=view.getUint32(4),f=8;for(n&&(t.dataOffset=view.getInt32(f),f+=4),r&&h&&(e={flags:un(data.subarray(f,f+4))},f+=4,o&&(e.duration=view.getUint32(f),f+=4),l&&(e.size=view.getUint32(f),f+=4),d&&(1===t.version?e.compositionTimeOffset=view.getInt32(f):e.compositionTimeOffset=view.getUint32(f),f+=4),t.samples.push(e),h--);h--;)e={},o&&(e.duration=view.getUint32(f),f+=4),l&&(e.size=view.getUint32(f),f+=4),c&&(e.flags=un(data.subarray(f,f+4)),f+=4),d&&(1===t.version?e.compositionTimeOffset=view.getInt32(f):e.compositionTimeOffset=view.getUint32(f),f+=4),t.samples.push(e);return t},cn=function(data){var i,view=new DataView(data.buffer,data.byteOffset,data.byteLength),e={version:data[0],flags:new Uint8Array(data.subarray(1,4)),trackId:view.getUint32(4)},t=1&e.flags[2],n=2&e.flags[2],r=8&e.flags[2],o=16&e.flags[2],l=32&e.flags[2],c=65536&e.flags[0],d=131072&e.flags[0];return i=8,t&&(i+=4,e.baseDataOffset=view.getUint32(12),i+=4),n&&(e.sampleDescriptionIndex=view.getUint32(i),i+=4),r&&(e.defaultSampleDuration=view.getUint32(i),i+=4),o&&(e.defaultSampleSize=view.getUint32(i),i+=4),l&&(e.defaultSampleFlags=view.getUint32(i)),c&&(e.durationIsEmpty=!0),!t&&d&&(e.baseDataOffsetIsMoof=!0),e},dn="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==e?e:"undefined"!=typeof self?self:{},hn="undefined"!=typeof window?window:void 0!==dn?dn:"undefined"!=typeof self?self:{},fn=Fe,pn=Je.CaptionStream,mn=function(e,t){for(var n=e,i=0;i0?sn(m[0]).baseMediaDecodeTime:0,y=rn(c,["trun"]);t===f&&y.length>0&&(n=function(e,t,n){var r=t,o=n.defaultSampleDuration||0,l=n.defaultSampleSize||0,c=n.trackId,d=[];return e.forEach((function(e){var t=ln(e).samples;t.forEach((function(e){void 0===e.duration&&(e.duration=o),void 0===e.size&&(e.size=l),e.trackId=c,e.dts=r,void 0===e.compositionTimeOffset&&(e.compositionTimeOffset=0),"bigint"==typeof r?(e.pts=r+hn.BigInt(e.compositionTimeOffset),r+=hn.BigInt(e.duration)):(e.pts=r+e.compositionTimeOffset,r+=e.duration)})),d=d.concat(t)})),d}(y,v,h),r=function(e,t,n){var r,i,o,l,c=new DataView(e.buffer,e.byteOffset,e.byteLength),d={logs:[],seiNals:[]};for(i=0;i+40;){var h=t.shift();this.parse(h,l,c)}return d=function(e,t,n){if(null===t)return null;var r=gn(e,t)[t]||{};return{seiNals:r.seiNals,logs:r.logs,timescale:n}}(e,n,r),d&&d.logs&&(o.logs=o.logs.concat(d.logs)),null!==d&&d.seiNals?(this.pushNals(d.seiNals),this.flushStream(),o):o.logs.length?{logs:o.logs,captions:[],captionStreams:[]}:null},this.pushNals=function(t){if(!this.isInitialized()||!t||0===t.length)return null;t.forEach((function(t){e.push(t)}))},this.flushStream=function(){if(!this.isInitialized())return null;l?e.partialFlush():e.flush()},this.clearParsedCaptions=function(){o.captions=[],o.captionStreams={},o.logs=[]},this.resetCaptionStream=function(){if(!this.isInitialized())return null;e.reset()},this.clearAllCaptions=function(){this.clearParsedCaptions(),this.resetCaptionStream()},this.reset=function(){t=[],n=null,r=null,o?this.clearParsedCaptions():o={captions:[],captionStreams:{},logs:[]},this.resetCaptionStream()},this.reset()},yn=en,bn=function(e){return("00"+e.toString(16)).slice(-2)},_n=J.getUint64;Kt=function(e,t){var n=rn(t,["moof","traf"]).reduce((function(t,n){var r,o,l=rn(n,["tfhd"])[0],c=yn(l[4]<<24|l[5]<<16|l[6]<<8|l[7]),d=e[c]||9e4,h=rn(n,["tfdt"])[0],f=new DataView(h.buffer,h.byteOffset,h.byteLength);return"bigint"==typeof(r=1===h[0]?_n(h.subarray(4,12)):f.getUint32(4))?o=r/hn.BigInt(d):"number"!=typeof r||isNaN(r)||(o=r/d),o11?(track.codec+=".",track.codec+=bn(h[9]),track.codec+=bn(h[10]),track.codec+=bn(h[11])):track.codec="avc1.4d400d"):/^mp4[a,v]$/i.test(track.codec)?(h=f.subarray(28),"esds"===tn(h.subarray(4,8))&&h.length>20&&0!==h[19]?(track.codec+="."+bn(h[19]),track.codec+="."+bn(h[20]>>>2&63).replace(/^0/,"")):track.codec="mp4a.40.2"):track.codec=track.codec.toLowerCase())}var m=rn(e,["mdia","mdhd"])[0];m&&(track.timescale=Jt(m)),n.push(track)})),n};var Tn=Kt,wn=Qt,Sn=function(e){var t=31&e[1];return t<<=8,t|=e[2]},kn=function(e){return!!(64&e[1])},xn=function(e){var t=0;return(48&e[3])>>>4>1&&(t+=e[4]+1),t},Cn=function(e){switch(e){case 5:return"slice_layer_without_partitioning_rbsp_idr";case 6:return"sei_rbsp";case 7:return"seq_parameter_set_rbsp";case 8:return"pic_parameter_set_rbsp";case 9:return"access_unit_delimiter_rbsp";default:return null}},An={parseType:function(e,t){var n=Sn(e);return 0===n?"pat":n===t?"pmt":t?"pes":null},parsePat:function(e){var t=kn(e),n=4+xn(e);return t&&(n+=e[n]+1),(31&e[n+10])<<8|e[n+11]},parsePmt:function(e){var t={},n=kn(e),r=4+xn(e);if(n&&(r+=e[r]+1),1&e[r+5]){var o;o=3+((15&e[r+1])<<8|e[r+2])-4;for(var l=12+((15&e[r+10])<<8|e[r+11]);l=e.byteLength)return null;var n,r=null;return 192&(n=e[t+7])&&((r={}).pts=(14&e[t+9])<<27|(255&e[t+10])<<20|(254&e[t+11])<<12|(255&e[t+12])<<5|(254&e[t+13])>>>3,r.pts*=4,r.pts+=(6&e[t+13])>>>1,r.dts=r.pts,64&n&&(r.dts=(14&e[t+14])<<27|(255&e[t+15])<<20|(254&e[t+16])<<12|(255&e[t+17])<<5|(254&e[t+18])>>>3,r.dts*=4,r.dts+=(6&e[t+18])>>>1)),r},videoPacketContainsKeyFrame:function(e){for(var t=4+xn(e),n=e.subarray(t),r=0,o=0,l=!1;o3&&"slice_layer_without_partitioning_rbsp_idr"===Cn(31&n[o+3])&&(l=!0),l}},En=ot,Dn={};Dn.ts=An,Dn.aac=Lt;var In=we,jn=188,Pn=71,On=function(e,t,n){for(var r,o,l,c,d=0,h=jn,f=!1;h<=e.byteLength;)if(e[d]!==Pn||e[h]!==Pn&&h!==e.byteLength)d++,h++;else{if(r=e.subarray(d,h),"pes"===Dn.ts.parseType(r,t.pid))o=Dn.ts.parsePesType(r,t.table),l=Dn.ts.parsePayloadUnitStartIndicator(r),"audio"===o&&l&&(c=Dn.ts.parsePesTime(r))&&(c.type="audio",n.audio.push(c),f=!0);if(f)break;d+=jn,h+=jn}for(d=(h=e.byteLength)-jn,f=!1;d>=0;)if(e[d]!==Pn||e[h]!==Pn&&h!==e.byteLength)d--,h--;else{if(r=e.subarray(d,h),"pes"===Dn.ts.parseType(r,t.pid))o=Dn.ts.parsePesType(r,t.table),l=Dn.ts.parsePayloadUnitStartIndicator(r),"audio"===o&&l&&(c=Dn.ts.parsePesTime(r))&&(c.type="audio",n.audio.push(c),f=!0);if(f)break;d-=jn,h-=jn}},Mn=function(e,t,n){for(var r,o,l,c,d,i,h,f=0,m=jn,v=!1,y={data:[],size:0};m=0;)if(e[f]!==Pn||e[m]!==Pn)f--,m--;else{if(r=e.subarray(f,m),"pes"===Dn.ts.parseType(r,t.pid))o=Dn.ts.parsePesType(r,t.table),l=Dn.ts.parsePayloadUnitStartIndicator(r),"video"===o&&l&&(c=Dn.ts.parsePesTime(r))&&(c.type="video",n.video.push(c),v=!0);if(v)break;f-=jn,m-=jn}},Ln=function(e){var t={pid:null,table:null},n={};for(var r in function(e,t){for(var n,r=0,o=jn;o=3;){switch(Dn.aac.parseType(e,d)){case"timed-metadata":if(e.length-d<10){n=!0;break}if((c=Dn.aac.parseId3TagSize(e,d))>e.length){n=!0;break}null===l&&(t=e.subarray(d,d+c),l=Dn.aac.parseAacTimestamp(t)),d+=c;break;case"audio":if(e.length-d<7){n=!0;break}if((c=Dn.aac.parseAdtsSize(e,d))>e.length){n=!0;break}null===o&&(t=e.subarray(d,d+c),o=Dn.aac.parseSampleRate(t)),r++,d+=c;break;default:d++}if(n)return null}if(null===o||null===l)return null;var h=In/o;return{audio:[{type:"audio",dts:l,pts:l},{type:"audio",dts:l+1024*r*h,pts:l+1024*r*h}]}}(e):Ln(e),n&&(n.audio||n.video)?(function(e,t){if(e.audio&&e.audio.length){var n=t;(void 0===n||isNaN(n))&&(n=e.audio[0].dts),e.audio.forEach((function(e){e.dts=En(e.dts,n),e.pts=En(e.pts,n),e.dtsTime=e.dts/In,e.ptsTime=e.pts/In}))}if(e.video&&e.video.length){var r=t;if((void 0===r||isNaN(r))&&(r=e.video[0].dts),e.video.forEach((function(e){e.dts=En(e.dts,r),e.pts=En(e.pts,r),e.dtsTime=e.dts/In,e.ptsTime=e.pts/In})),e.firstKeyFrame){var o=e.firstKeyFrame;o.dts=En(o.dts,r),o.pts=En(o.pts,r),o.dtsTime=o.dts/In,o.ptsTime=o.pts/In}}}(n,t),n):null},Rn=function(){function e(e,t){this.options=t||{},this.self=e,this.init()}var t=e.prototype;return t.init=function(){this.transmuxer&&this.transmuxer.dispose(),this.transmuxer=new Zt.Transmuxer(this.options),function(e,t){t.on("data",(function(t){var n=t.initSegment;t.initSegment={data:n.buffer,byteOffset:n.byteOffset,byteLength:n.byteLength};var r=t.data;t.data=r.buffer,e.postMessage({action:"data",segment:t,byteOffset:r.byteOffset,byteLength:r.byteLength},[t.data])})),t.on("done",(function(data){e.postMessage({action:"done"})})),t.on("gopInfo",(function(t){e.postMessage({action:"gopInfo",gopInfo:t})})),t.on("videoSegmentTimingInfo",(function(t){var n={start:{decode:ke(t.start.dts),presentation:ke(t.start.pts)},end:{decode:ke(t.end.dts),presentation:ke(t.end.pts)},baseMediaDecodeTime:ke(t.baseMediaDecodeTime)};t.prependedContentDuration&&(n.prependedContentDuration=ke(t.prependedContentDuration)),e.postMessage({action:"videoSegmentTimingInfo",videoSegmentTimingInfo:n})})),t.on("audioSegmentTimingInfo",(function(t){var n={start:{decode:ke(t.start.dts),presentation:ke(t.start.pts)},end:{decode:ke(t.end.dts),presentation:ke(t.end.pts)},baseMediaDecodeTime:ke(t.baseMediaDecodeTime)};t.prependedContentDuration&&(n.prependedContentDuration=ke(t.prependedContentDuration)),e.postMessage({action:"audioSegmentTimingInfo",audioSegmentTimingInfo:n})})),t.on("id3Frame",(function(t){e.postMessage({action:"id3Frame",id3Frame:t})})),t.on("caption",(function(caption){e.postMessage({action:"caption",caption:caption})})),t.on("trackinfo",(function(t){e.postMessage({action:"trackinfo",trackInfo:t})})),t.on("audioTimingInfo",(function(t){e.postMessage({action:"audioTimingInfo",audioTimingInfo:{start:ke(t.start),end:ke(t.end)}})})),t.on("videoTimingInfo",(function(t){e.postMessage({action:"videoTimingInfo",videoTimingInfo:{start:ke(t.start),end:ke(t.end)}})})),t.on("log",(function(t){e.postMessage({action:"log",log:t})}))}(this.self,this.transmuxer)},t.pushMp4Captions=function(data){this.captionParser||(this.captionParser=new vn,this.captionParser.init());var e=new Uint8Array(data.data,data.byteOffset,data.byteLength),t=this.captionParser.parse(e,data.trackIds,data.timescales);this.self.postMessage({action:"mp4Captions",captions:t&&t.captions||[],logs:t&&t.logs||[],data:e.buffer},[e.buffer])},t.probeMp4StartTime=function(e){var t=e.timescales,data=e.data,n=Tn(t,data);this.self.postMessage({action:"probeMp4StartTime",startTime:n,data:data},[data.buffer])},t.probeMp4Tracks=function(e){var data=e.data,t=wn(data);this.self.postMessage({action:"probeMp4Tracks",tracks:t,data:data},[data.buffer])},t.probeTs=function(e){var data=e.data,t=e.baseStartTime,n="number"!=typeof t||isNaN(t)?void 0:t*we,r=Nn(data,n),o=null;r&&((o={hasVideo:r.video&&2===r.video.length||!1,hasAudio:r.audio&&2===r.audio.length||!1}).hasVideo&&(o.videoStart=r.video[0].ptsTime),o.hasAudio&&(o.audioStart=r.audio[0].ptsTime)),this.self.postMessage({action:"probeTs",result:o,data:data},[data.buffer])},t.clearAllMp4Captions=function(){this.captionParser&&this.captionParser.clearAllCaptions()},t.clearParsedMp4Captions=function(){this.captionParser&&this.captionParser.clearParsedCaptions()},t.push=function(data){var e=new Uint8Array(data.data,data.byteOffset,data.byteLength);this.transmuxer.push(e)},t.reset=function(){this.transmuxer.reset()},t.setTimestampOffset=function(data){var e=data.timestampOffset||0;this.transmuxer.setBaseMediaDecodeTime(Math.round(Se(e)))},t.setAudioAppendStart=function(data){this.transmuxer.setAudioAppendStart(Math.ceil(Se(data.appendStart)))},t.setRemux=function(data){this.transmuxer.setRemux(data.remux)},t.flush=function(data){this.transmuxer.flush(),self.postMessage({action:"done",type:"transmuxed"})},t.endTimeline=function(){this.transmuxer.endTimeline(),self.postMessage({action:"endedtimeline",type:"transmuxed"})},t.alignGopsWith=function(data){this.transmuxer.alignGopsWith(data.gopsToAlignWith.slice())},e}();self.onmessage=function(e){"init"===e.data.action&&e.data.options?this.messageHandlers=new Rn(self,e.data.options):(this.messageHandlers||(this.messageHandlers=new Rn(self)),e.data&&e.data.action&&"init"!==e.data.action&&this.messageHandlers[e.data.action]&&this.messageHandlers[e.data.action](e.data))}}))),Fo=Lo(Bo),Uo=function(e){var t=e.transmuxer,n=e.bytes,r=e.audioAppendStart,o=e.gopsToAlignWith,l=e.remux,c=e.onData,d=e.onTrackInfo,h=e.onAudioTimingInfo,f=e.onVideoTimingInfo,m=e.onVideoSegmentTimingInfo,v=e.onAudioSegmentTimingInfo,y=e.onId3,_=e.onCaptions,T=e.onDone,w=e.onEndedTimeline,S=e.onTransmuxerLog,k=e.isEndOfTimeline,x={buffer:[]},C=k;if(t.onmessage=function(n){t.currentTransmux===e&&("data"===n.data.action&&function(e,t,n){var r=e.data.segment,o=r.type,l=r.initSegment,c=r.captions,d=r.captionStreams,h=r.metadata,f=r.videoFrameDtsTime,m=r.videoFramePtsTime;t.buffer.push({captions:c,captionStreams:d,metadata:h});var v=e.data.segment.boxes||{data:e.data.segment.data},y={type:o,data:new Uint8Array(v.data,v.data.byteOffset,v.data.byteLength),initSegment:new Uint8Array(l.data,l.byteOffset,l.byteLength)};void 0!==f&&(y.videoFrameDtsTime=f),void 0!==m&&(y.videoFramePtsTime=m),n(y)}(n,x,c),"trackinfo"===n.data.action&&d(n.data.trackInfo),"gopInfo"===n.data.action&&function(e,t){t.gopInfo=e.data.gopInfo}(n,x),"audioTimingInfo"===n.data.action&&h(n.data.audioTimingInfo),"videoTimingInfo"===n.data.action&&f(n.data.videoTimingInfo),"videoSegmentTimingInfo"===n.data.action&&m(n.data.videoSegmentTimingInfo),"audioSegmentTimingInfo"===n.data.action&&v(n.data.audioSegmentTimingInfo),"id3Frame"===n.data.action&&y([n.data.id3Frame],n.data.id3Frame.dispatchType),"caption"===n.data.action&&_(n.data.caption),"endedtimeline"===n.data.action&&(C=!1,w()),"log"===n.data.action&&S(n.data.log),"transmuxed"===n.data.type&&(C||(t.onmessage=null,function(e){var t=e.transmuxedData,n=e.callback;t.buffer=[],n(t)}({transmuxedData:x,callback:T}),Vo(t))))},r&&t.postMessage({action:"setAudioAppendStart",appendStart:r}),Array.isArray(o)&&t.postMessage({action:"alignGopsWith",gopsToAlignWith:o}),void 0!==l&&t.postMessage({action:"setRemux",remux:l}),n.byteLength){var A=n instanceof ArrayBuffer?n:n.buffer,E=n instanceof ArrayBuffer?0:n.byteOffset;t.postMessage({action:"push",data:A,byteOffset:E,byteLength:n.byteLength},[A])}k&&t.postMessage({action:"endTimeline"}),t.postMessage({action:"flush"})},Vo=function(e){e.currentTransmux=null,e.transmuxQueue.length&&(e.currentTransmux=e.transmuxQueue.shift(),"function"==typeof e.currentTransmux?e.currentTransmux():Uo(e.currentTransmux))},Ho=function(e,t){e.postMessage({action:t}),Vo(e)},zo=function(e,t){if(!t.currentTransmux)return t.currentTransmux=e,void Ho(t,e);t.transmuxQueue.push(Ho.bind(null,t,e))},qo=function(e){if(!e.transmuxer.currentTransmux)return e.transmuxer.currentTransmux=e,void Uo(e);e.transmuxer.transmuxQueue.push(e)},$o=function(e){zo("reset",e)},Wo=function(e){var t=new Fo;t.currentTransmux=null,t.transmuxQueue=[];var n=t.terminate;return t.terminate=function(){return t.currentTransmux=null,t.transmuxQueue.length=0,n.call(t)},t.postMessage({action:"init",options:e}),t},Go=function(e){var t=e.transmuxer,n=e.endAction||e.action,r=e.callback,o=f()({},e,{endAction:null,transmuxer:null,callback:null});if(t.addEventListener("message",(function o(l){l.data.action===n&&(t.removeEventListener("message",o),l.data.data&&(l.data.data=new Uint8Array(l.data.data,e.byteOffset||0,e.byteLength||l.data.data.byteLength),e.data&&(e.data=l.data.data)),r(l.data))})),e.data){var l=e.data instanceof ArrayBuffer;o.byteOffset=l?0:e.data.byteOffset,o.byteLength=e.data.byteLength;var c=[l?e.data:e.data.buffer];t.postMessage(o,c)}else t.postMessage(o)},Yo=2,Xo=-101,Ko=-102,Qo=function(e){e.forEach((function(e){e.abort()}))},Jo=function(e,t){return t.timedout?{status:t.status,message:"HLS request timed-out at URL: "+t.uri,code:Xo,xhr:t}:t.aborted?{status:t.status,message:"HLS request aborted at URL: "+t.uri,code:Ko,xhr:t}:e?{status:t.status,message:"HLS request errored at URL: "+t.uri,code:Yo,xhr:t}:"arraybuffer"===t.responseType&&0===t.response.byteLength?{status:t.status,message:"Empty HLS response at URL: "+t.uri,code:Yo,xhr:t}:null},Zo=function(e,t,n){return function(r,o){var l=o.response,c=Jo(r,o);if(c)return n(c,e);if(16!==l.byteLength)return n({status:o.status,message:"Invalid HLS key at URL: "+o.uri,code:Yo,xhr:o},e);for(var view=new DataView(l),d=new Uint32Array([view.getUint32(0),view.getUint32(4),view.getUint32(8),view.getUint32(12)]),i=0;i1)return us("multiple "+e+" codecs found as attributes: "+t[e].join(", ")+". Setting playlist codecs to null so that we wait for mux.js to probe segments for real codecs."),void(t[e]=null);t[e]=t[e][0]})),t},ds=function(e){var t=0;return e.audio&&t++,e.video&&t++,t},hs=function(e,t){var n=t.attributes||{},r=cs(function(e){var t=e.attributes||{};if(t.CODECS)return Object(L.h)(t.CODECS)}(t)||[]);if(ls(e,t)&&!r.audio&&!function(e,t){if(!ls(e,t))return!0;var n=t.attributes||{},r=e.mediaGroups.AUDIO[n.AUDIO];for(var o in r)if(!r[o].uri&&!r[o].playlists)return!0;return!1}(e,t)){var o=cs(Object(L.d)(e,n.AUDIO)||[]);o.audio&&(r.audio=o.audio)}return r},fs=ba("PlaylistSelector"),ps=function(e){if(e&&e.playlist){var t=e.playlist;return JSON.stringify({id:t.id,bandwidth:e.bandwidth,width:e.width,height:e.height,codecs:t.attributes&&t.attributes.CODECS||""})}},ms=function(e,t){if(!e)return"";var n=l.a.getComputedStyle(e);return n?n[t]:""},gs=function(e,t){var n=e.slice();e.sort((function(e,r){var o=t(e,r);return 0===o?n.indexOf(e)-n.indexOf(r):o}))},vs=function(e,t){var n,r;return e.attributes.BANDWIDTH&&(n=e.attributes.BANDWIDTH),n=n||l.a.Number.MAX_VALUE,t.attributes.BANDWIDTH&&(r=t.attributes.BANDWIDTH),n-(r=r||l.a.Number.MAX_VALUE)},ys=function(e,t,n,r,o,c){if(e){var d={bandwidth:t,width:n,height:r,limitRenditionByPlayerDimensions:o},h=e.playlists;Ga.isAudioOnly(e)&&(h=c.getAudioTrackPlaylists_(),d.audioOnly=!0);var f=h.map((function(e){var t=e.attributes&&e.attributes.RESOLUTION&&e.attributes.RESOLUTION.width,n=e.attributes&&e.attributes.RESOLUTION&&e.attributes.RESOLUTION.height;return{bandwidth:e.attributes&&e.attributes.BANDWIDTH||l.a.Number.MAX_VALUE,width:t,height:n,playlist:e}}));gs(f,(function(e,t){return e.bandwidth-t.bandwidth}));var m=(f=f.filter((function(e){return!Ga.isIncompatible(e.playlist)}))).filter((function(e){return Ga.isEnabled(e.playlist)}));m.length||(m=f.filter((function(e){return!Ga.isDisabled(e.playlist)})));var v=m.filter((function(e){return e.bandwidth*Oo.BANDWIDTH_VARIANCEn||e.height>r}))).filter((function(e){return e.width===x[0].width&&e.height===x[0].height})),y=C[C.length-1],A=C.filter((function(e){return e.bandwidth===y.bandwidth}))[0]),c.experimentalLeastPixelDiffSelector){var I=S.map((function(e){return e.pixelDiff=Math.abs(e.width-n)+Math.abs(e.height-r),e}));gs(I,(function(e,t){return e.pixelDiff===t.pixelDiff?t.bandwidth-e.bandwidth:e.pixelDiff-t.pixelDiff})),E=I[0]}var j=E||A||D||_||m[0]||f[0];if(j&&j.playlist){var P="sortedPlaylistReps";return E?P="leastPixelDiffRep":A?P="resolutionPlusOneRep":D?P="resolutionBestRep":_?P="bandwidthBestRep":m[0]&&(P="enabledPlaylistReps"),fs("choosing "+ps(j)+" using "+P+" with options",d),j.playlist}return fs("could not choose a playlist with options",d),null}},bs=function(){var e=this.useDevicePixelRatio&&l.a.devicePixelRatio||1;return ys(this.playlists.master,this.systemBandwidth,parseInt(ms(this.tech_.el(),"width"),10)*e,parseInt(ms(this.tech_.el(),"height"),10)*e,this.limitRenditionByPlayerDimensions,this.masterPlaylistController_)},_s=function(e){var t=e.inbandTextTracks,n=e.metadataArray,r=e.timestampOffset,o=e.videoDuration;if(n){var c=l.a.WebKitDataCue||l.a.VTTCue,d=t.metadataTrack_;if(d&&(n.forEach((function(e){var time=e.cueTime+r;!("number"!=typeof time||l.a.isNaN(time)||time<0)&&time<1/0&&e.frames.forEach((function(e){var t=new c(time,time,e.value||e.url||e.data||"");t.frame=e,t.value=e,function(e){Object.defineProperties(e.frame,{id:{get:function(){return ga.log.warn("cue.frame.id is deprecated. Use cue.value.key instead."),e.value.key}},value:{get:function(){return ga.log.warn("cue.frame.value is deprecated. Use cue.value.data instead."),e.value.data}},privateData:{get:function(){return ga.log.warn("cue.frame.privateData is deprecated. Use cue.value.data instead."),e.value.data}}})}(t),d.addCue(t)}))})),d.cues&&d.cues.length)){for(var h=d.cues,f=[],i=0;i=e&&n.endTime<=t&&track.removeCue(n)},ws=function(e){return"number"==typeof e&&isFinite(e)},Ss=1/60,ks=function(e){var t=e.startOfSegment,n=e.duration,r=e.segment,o=e.part,l=e.playlist,c=l.mediaSequence,d=l.id,h=l.segments,f=void 0===h?[]:h,m=e.mediaIndex,v=e.partIndex,y=e.timeline,_=f.length-1,T="mediaIndex/partIndex increment";e.getMediaInfoForTime?T="getMediaInfoForTime ("+e.getMediaInfoForTime+")":e.isSyncRequest&&(T="getSyncSegmentCandidate (isSyncRequest)"),e.independent&&(T+=" with independent "+e.independent);var w="number"==typeof v,S=e.segment.uri?"segment":"pre-segment",k=w?Oa({preloadSegment:r})-1:0;return S+" ["+(c+m)+"/"+(c+_)+"]"+(w?" part ["+v+"/"+k+"]":"")+" segment start/end ["+r.start+" => "+r.end+"]"+(w?" part start/end ["+o.start+" => "+o.end+"]":"")+" startOfSegment ["+t+"] duration ["+n+"] timeline ["+y+"] selected by ["+T+"] playlist ["+d+"]"},xs=function(e){return e+"TimingInfo"},Cs=function(e){var t=e.timelineChangeController,n=e.currentTimeline,r=e.segmentTimeline,o=e.loaderType,l=e.audioDisabled;if(n===r)return!1;if("audio"===o){var c=t.lastTimelineChange({type:"main"});return!c||c.to!==r}if("main"===o&&l){var d=t.pendingTimelineChange({type:"audio"});return!d||d.to!==r}return!1},As=function(e){var t=e.segmentDuration,n=e.maxDuration;return!!t&&Math.round(t)>n+_a},Es=function(e,t){if("hls"!==t)return null;var n,r,o=(n={audioTimingInfo:e.audioTimingInfo,videoTimingInfo:e.videoTimingInfo},r=0,["video","audio"].forEach((function(e){var t=n[e+"TimingInfo"];if(t){var o,c=t.start,d=t.end;"bigint"==typeof c||"bigint"==typeof d?o=l.a.BigInt(d)-l.a.BigInt(c):"number"==typeof c&&"number"==typeof d&&(o=d-c),void 0!==o&&o>r&&(r=o)}})),"bigint"==typeof r&&r=11,r.appendInitSegment_={audio:!0,video:!0},r.playlistOfLastInitSegment_={audio:null,video:null},r.callQueue_=[],r.loadQueue_=[],r.metadataQueue_={id3:[],caption:[]},r.waitingOnRemove_=!1,r.quotaExceededErrorRetryTimeout_=null,r.activeInitSegmentId_=null,r.initSegments_={},r.cacheEncryptionKeys_=t.cacheEncryptionKeys,r.keyCache_={},r.decrypter_=t.decrypter,r.syncController_=t.syncController,r.syncPoint_={segmentIndex:0,time:0},r.transmuxer_=r.createTransmuxer_(),r.triggerSyncInfoUpdate_=function(){return r.trigger("syncinfoupdate")},r.syncController_.on("syncinfoupdate",r.triggerSyncInfoUpdate_),r.mediaSource_.addEventListener("sourceopen",(function(){r.isEndOfStream_()||(r.ended_=!1)})),r.fetchAtBuffer_=!1,r.logger_=ba("SegmentLoader["+r.loaderType_+"]"),Object.defineProperty(_()(r),"state",{get:function(){return this.state_},set:function(e){e!==this.state_&&(this.logger_(this.state_+" -> "+e),this.state_=e,this.trigger("statechange"))}}),r.sourceUpdater_.on("ready",(function(){r.hasEnoughInfoToAppend_()&&r.processCallQueue_()})),"main"===r.loaderType_&&r.timelineChangeController_.on("pendingtimelinechange",(function(){r.hasEnoughInfoToAppend_()&&r.processCallQueue_()})),"audio"===r.loaderType_&&r.timelineChangeController_.on("timelinechange",(function(){r.hasEnoughInfoToLoad_()&&r.processLoadQueue_(),r.hasEnoughInfoToAppend_()&&r.processCallQueue_()})),r}w()(t,e);var n=t.prototype;return n.createTransmuxer_=function(){return Wo({remux:!1,alignGopsAtEnd:this.safeAppend_,keepOriginalTimestamps:!0,parse708captions:this.parse708captions_,captionServices:this.captionServices_})},n.resetStats_=function(){this.mediaBytesTransferred=0,this.mediaRequests=0,this.mediaRequestsAborted=0,this.mediaRequestsTimedout=0,this.mediaRequestsErrored=0,this.mediaTransferDuration=0,this.mediaSecondsLoaded=0,this.mediaAppends=0},n.dispose=function(){this.trigger("dispose"),this.state="DISPOSED",this.pause(),this.abort_(),this.transmuxer_&&this.transmuxer_.terminate(),this.resetStats_(),this.checkBufferTimeout_&&l.a.clearTimeout(this.checkBufferTimeout_),this.syncController_&&this.triggerSyncInfoUpdate_&&this.syncController_.off("syncinfoupdate",this.triggerSyncInfoUpdate_),this.off()},n.setAudio=function(e){this.audioDisabled_=!e,e?this.appendInitSegment_.audio=!0:this.sourceUpdater_.removeAudio(0,this.duration_())},n.abort=function(){"WAITING"===this.state?(this.abort_(),this.state="READY",this.paused()||this.monitorBuffer_()):this.pendingSegment_&&(this.pendingSegment_=null)},n.abort_=function(){this.pendingSegment_&&this.pendingSegment_.abortRequests&&this.pendingSegment_.abortRequests(),this.pendingSegment_=null,this.callQueue_=[],this.loadQueue_=[],this.metadataQueue_.id3=[],this.metadataQueue_.caption=[],this.timelineChangeController_.clearPendingTimelineChange(this.loaderType_),this.waitingOnRemove_=!1,l.a.clearTimeout(this.quotaExceededErrorRetryTimeout_),this.quotaExceededErrorRetryTimeout_=null},n.checkForAbort_=function(e){return"APPENDING"!==this.state||this.pendingSegment_?!this.pendingSegment_||this.pendingSegment_.requestId!==e:(this.state="READY",!0)},n.error=function(e){return void 0!==e&&(this.logger_("error occurred:",e),this.error_=e),this.pendingSegment_=null,this.error_},n.endOfStream=function(){this.ended_=!0,this.transmuxer_&&$o(this.transmuxer_),this.gopBuffer_.length=0,this.pause(),this.trigger("ended")},n.buffered_=function(){var e=this.getMediaInfo_();if(!this.sourceUpdater_||!e)return ga.createTimeRanges();if("main"===this.loaderType_){var t=e.hasAudio,n=e.hasVideo,r=e.isMuxed;if(n&&t&&!this.audioDisabled_&&!r)return this.sourceUpdater_.buffered();if(n)return this.sourceUpdater_.videoBuffered()}return this.sourceUpdater_.audioBuffered()},n.initSegmentForMap=function(map,e){if(void 0===e&&(e=!1),!map)return null;var t=bo(map),n=this.initSegments_[t];return e&&!n&&map.bytes&&(this.initSegments_[t]=n={resolvedUri:map.resolvedUri,byterange:map.byterange,bytes:map.bytes,tracks:map.tracks,timescales:map.timescales}),n||map},n.segmentKey=function(e,t){if(void 0===t&&(t=!1),!e)return null;var n=_o(e),r=this.keyCache_[n];this.cacheEncryptionKeys_&&t&&!r&&e.bytes&&(this.keyCache_[n]=r={resolvedUri:e.resolvedUri,bytes:e.bytes});var o={resolvedUri:(r||e).resolvedUri};return r&&(o.bytes=r.bytes),o},n.couldBeginLoading_=function(){return this.playlist_&&!this.paused()},n.load=function(){if(this.monitorBuffer_(),this.playlist_)return"INIT"===this.state&&this.couldBeginLoading_()?this.init_():void(!this.couldBeginLoading_()||"READY"!==this.state&&"INIT"!==this.state||(this.state="READY"))},n.init_=function(){return this.state="READY",this.resetEverything(),this.monitorBuffer_()},n.playlist=function(e,t){if(void 0===t&&(t={}),e){var n=this.playlist_,r=this.pendingSegment_;this.playlist_=e,this.xhrOptions_=t,"INIT"===this.state&&(e.syncInfo={mediaSequence:e.mediaSequence,time:0},"main"===this.loaderType_&&this.syncController_.setDateTimeMappingForStart(e));var o=null;if(n&&(n.id?o=n.id:n.uri&&(o=n.uri)),this.logger_("playlist update ["+o+" => "+(e.id||e.uri)+"]"),this.trigger("syncinfoupdate"),"INIT"===this.state&&this.couldBeginLoading_())return this.init_();if(!n||n.uri!==e.uri)return null!==this.mediaIndex&&(e.endList?this.resyncLoader():this.resetLoader()),this.currentMediaInfo_=void 0,void this.trigger("playlistupdate");var l=e.mediaSequence-n.mediaSequence;if(this.logger_("live window shift ["+l+"]"),null!==this.mediaIndex)if(this.mediaIndex-=l,this.mediaIndex<0)this.mediaIndex=null,this.partIndex=null;else{var c=this.playlist_.segments[this.mediaIndex];if(this.partIndex&&(!c.parts||!c.parts.length||!c.parts[this.partIndex])){var d=this.mediaIndex;this.logger_("currently processing part (index "+this.partIndex+") no longer exists."),this.resetLoader(),this.mediaIndex=d}}r&&(r.mediaIndex-=l,r.mediaIndex<0?(r.mediaIndex=null,r.partIndex=null):(r.mediaIndex>=0&&(r.segment=e.segments[r.mediaIndex]),r.partIndex>=0&&r.segment.parts&&(r.part=r.segment.parts[r.partIndex]))),this.syncController_.saveExpiredSegmentInfo(n,e)}},n.pause=function(){this.checkBufferTimeout_&&(l.a.clearTimeout(this.checkBufferTimeout_),this.checkBufferTimeout_=null)},n.paused=function(){return null===this.checkBufferTimeout_},n.resetEverything=function(e){this.ended_=!1,this.activeInitSegmentId_=null,this.appendInitSegment_={audio:!0,video:!0},this.resetLoader(),this.remove(0,1/0,e),this.transmuxer_&&(this.transmuxer_.postMessage({action:"clearAllMp4Captions"}),this.transmuxer_.postMessage({action:"reset"}))},n.resetLoader=function(){this.fetchAtBuffer_=!1,this.resyncLoader()},n.resyncLoader=function(){this.transmuxer_&&$o(this.transmuxer_),this.mediaIndex=null,this.partIndex=null,this.syncPoint_=null,this.isPendingTimestampOffset_=!1,this.callQueue_=[],this.loadQueue_=[],this.metadataQueue_.id3=[],this.metadataQueue_.caption=[],this.abort(),this.transmuxer_&&this.transmuxer_.postMessage({action:"clearParsedMp4Captions"})},n.remove=function(e,t,n,r){if(void 0===n&&(n=function(){}),void 0===r&&(r=!1),t===1/0&&(t=this.duration_()),t<=e)this.logger_("skipping remove because end ${end} is <= start ${start}");else if(this.sourceUpdater_&&this.getMediaInfo_()){var o=1,l=function(){0===--o&&n()};for(var track in!r&&this.audioDisabled_||(o++,this.sourceUpdater_.removeAudio(e,t,l)),(r||"main"===this.loaderType_)&&(this.gopBuffer_=function(e,t,n,r){for(var o=Math.ceil((t-r)*z.ONE_SECOND_IN_TS),l=Math.ceil((n-r)*z.ONE_SECOND_IN_TS),c=e.slice(),i=e.length;i--&&!(e[i].pts<=l););if(-1===i)return c;for(var d=i+1;d--&&!(e[d].pts<=o););return d=Math.max(d,0),c.splice(d,i-d+1),c}(this.gopBuffer_,e,t,this.timeMapping_),o++,this.sourceUpdater_.removeVideo(e,t,l)),this.inbandTextTracks_)Ts(e,t,this.inbandTextTracks_[track]);Ts(e,t,this.segmentMetadataTrack_),l()}else this.logger_("skipping remove because no source updater or starting media info")},n.monitorBuffer_=function(){this.checkBufferTimeout_&&l.a.clearTimeout(this.checkBufferTimeout_),this.checkBufferTimeout_=l.a.setTimeout(this.monitorBufferTick_.bind(this),1)},n.monitorBufferTick_=function(){"READY"===this.state&&this.fillBuffer_(),this.checkBufferTimeout_&&l.a.clearTimeout(this.checkBufferTimeout_),this.checkBufferTimeout_=l.a.setTimeout(this.monitorBufferTick_.bind(this),500)},n.fillBuffer_=function(){if(!this.sourceUpdater_.updating()){var e=this.chooseNextRequest_();e&&("number"==typeof e.timestampOffset&&(this.isPendingTimestampOffset_=!1,this.timelineChangeController_.pendingTimelineChange({type:this.loaderType_,from:this.currentTimeline_,to:e.timeline})),this.loadSegment_(e))}},n.isEndOfStream_=function(e,t,n){if(void 0===e&&(e=this.mediaIndex),void 0===t&&(t=this.playlist_),void 0===n&&(n=this.partIndex),!t||!this.mediaSource_)return!1;var r="number"==typeof e&&t.segments[e],o=e+1===t.segments.length,l=!r||!r.parts||n+1===r.parts.length;return t.endList&&"open"===this.mediaSource_.readyState&&o&&l},n.chooseNextRequest_=function(){var e=this.buffered_(),t=Aa(e)||0,n=Ea(e,this.currentTime_()),r=!this.hasPlayed_()&&n>=1,o=n>=this.goalBufferLength_(),l=this.playlist_.segments;if(!l.length||r||o)return null;this.syncPoint_=this.syncPoint_||this.syncController_.getSyncPoint(this.playlist_,this.duration_(),this.currentTimeline_,this.currentTime_());var c={partIndex:null,mediaIndex:null,startOfSegment:null,playlist:this.playlist_,isSyncRequest:Boolean(!this.syncPoint_)};if(c.isSyncRequest)c.mediaIndex=function(e,t,n){t=t||[];for(var r=[],time=0,i=0;in))return i}return 0===r.length?0:r[r.length-1]}(this.currentTimeline_,l,t);else if(null!==this.mediaIndex){var d=l[this.mediaIndex],h="number"==typeof this.partIndex?this.partIndex:-1;c.startOfSegment=d.end?d.end:t,d.parts&&d.parts[h+1]?(c.mediaIndex=this.mediaIndex,c.partIndex=h+1):c.mediaIndex=this.mediaIndex+1}else{var f=Ga.getMediaInfoForTime({experimentalExactManifestTimings:this.experimentalExactManifestTimings,playlist:this.playlist_,currentTime:this.fetchAtBuffer_?t:this.currentTime_(),startingPartIndex:this.syncPoint_.partIndex,startingSegmentIndex:this.syncPoint_.segmentIndex,startTime:this.syncPoint_.time}),m=f.segmentIndex,v=f.startTime,y=f.partIndex;c.getMediaInfoForTime=this.fetchAtBuffer_?"bufferedEnd "+t:"currentTime "+this.currentTime_(),c.mediaIndex=m,c.startOfSegment=v,c.partIndex=y}var _=l[c.mediaIndex],T=_&&"number"==typeof c.partIndex&&_.parts&&_.parts[c.partIndex];if(!_||"number"==typeof c.partIndex&&!T)return null;if("number"!=typeof c.partIndex&&_.parts&&(c.partIndex=0,T=_.parts[0]),!n&&T&&!T.independent)if(0===c.partIndex){var w=l[c.mediaIndex-1],S=w.parts&&w.parts.length&&w.parts[w.parts.length-1];S&&S.independent&&(c.mediaIndex-=1,c.partIndex=w.parts.length-1,c.independent="previous segment")}else _.parts[c.partIndex-1].independent&&(c.partIndex-=1,c.independent="previous part");var k=this.mediaSource_&&"ended"===this.mediaSource_.readyState;return c.mediaIndex>=l.length-1&&k&&!this.seeking_()?null:this.generateSegmentInfo_(c)},n.generateSegmentInfo_=function(e){var t=e.independent,n=e.playlist,r=e.mediaIndex,o=e.startOfSegment,l=e.isSyncRequest,c=e.partIndex,d=e.forceTimestampOffset,h=e.getMediaInfoForTime,f=n.segments[r],m="number"==typeof c&&f.parts[c],v={requestId:"segment-loader-"+Math.random(),uri:m&&m.resolvedUri||f.resolvedUri,mediaIndex:r,partIndex:m?c:null,isSyncRequest:l,startOfSegment:o,playlist:n,bytes:null,encryptedBytes:null,timestampOffset:null,timeline:f.timeline,duration:m&&m.duration||f.duration,segment:f,part:m,byteLength:0,transmuxer:this.transmuxer_,getMediaInfoForTime:h,independent:t},y=void 0!==d?d:this.isPendingTimestampOffset_;v.timestampOffset=this.timestampOffsetForSegment_({segmentTimeline:f.timeline,currentTimeline:this.currentTimeline_,startOfSegment:o,buffered:this.buffered_(),overrideCheck:y});var _=Aa(this.sourceUpdater_.audioBuffered());return"number"==typeof _&&(v.audioAppendStart=_-this.sourceUpdater_.audioTimestampOffset()),this.sourceUpdater_.videoBuffered().length&&(v.gopsToAlignWith=function(e,t,n){if(null==t||!e.length)return[];var i,r=Math.ceil((t-n+3)*z.ONE_SECOND_IN_TS);for(i=0;ir);i++);return e.slice(i)}(this.gopBuffer_,this.currentTime_()-this.sourceUpdater_.videoTimestampOffset(),this.timeMapping_)),v},n.timestampOffsetForSegment_=function(e){return n=(t=e).segmentTimeline,r=t.currentTimeline,o=t.startOfSegment,l=t.buffered,t.overrideCheck||n!==r?n "+d+" for "+e),function(e,t,n){if(!e[n]){t.trigger({type:"usage",name:"vhs-608"}),t.trigger({type:"usage",name:"hls-608"});var r=n;/^cc708_/.test(n)&&(r="SERVICE"+n.split("_")[1]);var track=t.textTracks().getTrackById(r);if(track)e[n]=track;else{var label=n,o=n,l=!1,c=(t.options_.vhs&&t.options_.vhs.captionServices||{})[r];c&&(label=c.label,o=c.language,l=c.default),e[n]=t.addRemoteTextTrack({kind:"captions",id:r,default:l,label:label,language:o},!1).track}}}(f,n.vhs_.tech_,e),Ts(c,d,f[e]),function(e){var t=e.inbandTextTracks,n=e.captionArray,r=e.timestampOffset;if(n){var o=l.a.WebKitDataCue||l.a.VTTCue;n.forEach((function(caption){var track=caption.stream;t[track].addCue(new o(caption.startTime+r,caption.endTime+r,caption.text))}))}}({captionArray:h,inbandTextTracks:f,timestampOffset:r})})),this.transmuxer_&&this.transmuxer_.postMessage({action:"clearParsedMp4Captions"})}else this.metadataQueue_.caption.push(this.handleCaptions_.bind(this,e,t));else this.logger_("SegmentLoader received no captions from a caption event")},n.handleId3_=function(e,t,n){if(this.earlyAbortWhenNeeded_(e.stats),!this.checkForAbort_(e.requestId))if(this.pendingSegment_.hasAppendedData_){var r=null===this.sourceUpdater_.videoTimestampOffset()?this.sourceUpdater_.audioTimestampOffset():this.sourceUpdater_.videoTimestampOffset();!function(e,t,n){e.metadataTrack_||(e.metadataTrack_=n.addRemoteTextTrack({kind:"metadata",label:"Timed Metadata"},!1).track,e.metadataTrack_.inBandMetadataTrackDispatchType=t)}(this.inbandTextTracks_,n,this.vhs_.tech_),_s({inbandTextTracks:this.inbandTextTracks_,metadataArray:t,timestampOffset:r,videoDuration:this.duration_()})}else this.metadataQueue_.id3.push(this.handleId3_.bind(this,e,t,n))},n.processMetadataQueue_=function(){this.metadataQueue_.id3.forEach((function(e){return e()})),this.metadataQueue_.caption.forEach((function(e){return e()})),this.metadataQueue_.id3=[],this.metadataQueue_.caption=[]},n.processCallQueue_=function(){var e=this.callQueue_;this.callQueue_=[],e.forEach((function(e){return e()}))},n.processLoadQueue_=function(){var e=this.loadQueue_;this.loadQueue_=[],e.forEach((function(e){return e()}))},n.hasEnoughInfoToLoad_=function(){if("audio"!==this.loaderType_)return!0;var e=this.pendingSegment_;return!!e&&(!this.getCurrentMediaInfo_()||!Cs({timelineChangeController:this.timelineChangeController_,currentTimeline:this.currentTimeline_,segmentTimeline:e.timeline,loaderType:this.loaderType_,audioDisabled:this.audioDisabled_}))},n.getCurrentMediaInfo_=function(e){return void 0===e&&(e=this.pendingSegment_),e&&e.trackInfo||this.currentMediaInfo_},n.getMediaInfo_=function(e){return void 0===e&&(e=this.pendingSegment_),this.getCurrentMediaInfo_(e)||this.startingMediaInfo_},n.getPendingSegmentPlaylist=function(){return this.pendingSegment_?this.pendingSegment_.playlist:null},n.hasEnoughInfoToAppend_=function(){if(!this.sourceUpdater_.ready())return!1;if(this.waitingOnRemove_||this.quotaExceededErrorRetryTimeout_)return!1;var e=this.pendingSegment_,t=this.getCurrentMediaInfo_();if(!e||!t)return!1;var n=t.hasAudio,r=t.hasVideo,o=t.isMuxed;return!(r&&!e.videoTimingInfo)&&(!(n&&!this.audioDisabled_&&!o&&!e.audioTimingInfo)&&!Cs({timelineChangeController:this.timelineChangeController_,currentTimeline:this.currentTimeline_,segmentTimeline:e.timeline,loaderType:this.loaderType_,audioDisabled:this.audioDisabled_}))},n.handleData_=function(e,t){if(this.earlyAbortWhenNeeded_(e.stats),!this.checkForAbort_(e.requestId))if(!this.callQueue_.length&&this.hasEnoughInfoToAppend_()){var n=this.pendingSegment_;if(this.setTimeMapping_(n.timeline),this.updateMediaSecondsLoaded_(n.part||n.segment),"closed"!==this.mediaSource_.readyState){if(e.map&&(e.map=this.initSegmentForMap(e.map,!0),n.segment.map=e.map),e.key&&this.segmentKey(e.key,!0),n.isFmp4=e.isFmp4,n.timingInfo=n.timingInfo||{},n.isFmp4)this.trigger("fmp4"),n.timingInfo.start=n[xs(t.type)].start;else{var r,o=this.getCurrentMediaInfo_(),l="main"===this.loaderType_&&o&&o.hasVideo;l&&(r=n.videoTimingInfo.start),n.timingInfo.start=this.trueSegmentStart_({currentStart:n.timingInfo.start,playlist:n.playlist,mediaIndex:n.mediaIndex,currentVideoTimestampOffset:this.sourceUpdater_.videoTimestampOffset(),useVideoTimingInfo:l,firstVideoFrameTimeForData:r,videoTimingInfo:n.videoTimingInfo,audioTimingInfo:n.audioTimingInfo})}if(this.updateAppendInitSegmentStatus(n,t.type),this.updateSourceBufferTimestampOffset_(n),n.isSyncRequest){this.updateTimingInfoEnd_(n),this.syncController_.saveSegmentTimingInfo({segmentInfo:n,shouldSaveTimelineMapping:"main"===this.loaderType_});var c=this.chooseNextRequest_();if(c.mediaIndex!==n.mediaIndex||c.partIndex!==n.partIndex)return void this.logger_("sync segment was incorrect, not appending");this.logger_("sync segment was correct, appending")}n.hasAppendedData_=!0,this.processMetadataQueue_(),this.appendData_(n,t)}}else this.callQueue_.push(this.handleData_.bind(this,e,t))},n.updateAppendInitSegmentStatus=function(e,t){"main"!==this.loaderType_||"number"!=typeof e.timestampOffset||e.changedTimestampOffset||(this.appendInitSegment_={audio:!0,video:!0}),this.playlistOfLastInitSegment_[t]!==e.playlist&&(this.appendInitSegment_[t]=!0)},n.getInitSegmentAndUpdateState_=function(e){var t=e.type,n=e.initSegment,map=e.map,r=e.playlist;if(map){var o=bo(map);if(this.activeInitSegmentId_===o)return null;n=this.initSegmentForMap(map,!0).bytes,this.activeInitSegmentId_=o}return n&&this.appendInitSegment_[t]?(this.playlistOfLastInitSegment_[t]=r,this.appendInitSegment_[t]=!1,this.activeInitSegmentId_=null,n):null},n.handleQuotaExceededError_=function(e,t){var n=this,r=e.segmentInfo,o=e.type,c=e.bytes,d=this.sourceUpdater_.audioBuffered(),h=this.sourceUpdater_.videoBuffered();d.length>1&&this.logger_("On QUOTA_EXCEEDED_ERR, found gaps in the audio buffer: "+Ca(d).join(", ")),h.length>1&&this.logger_("On QUOTA_EXCEEDED_ERR, found gaps in the video buffer: "+Ca(h).join(", "));var f=d.length?d.start(0):0,m=d.length?d.end(d.length-1):0,v=h.length?h.start(0):0,y=h.length?h.end(h.length-1):0;if(m-f<=1&&y-v<=1)return this.logger_("On QUOTA_EXCEEDED_ERR, single segment too large to append to buffer, triggering an error. Appended byte length: "+c.byteLength+", audio buffer: "+Ca(d).join(", ")+", video buffer: "+Ca(h).join(", ")+", "),this.error({message:"Quota exceeded error with append of a single segment of content",excludeUntil:1/0}),void this.trigger("error");this.waitingOnRemove_=!0,this.callQueue_.push(this.appendToSourceBuffer_.bind(this,{segmentInfo:r,type:o,bytes:c}));var _=this.currentTime_()-1;this.logger_("On QUOTA_EXCEEDED_ERR, removing audio/video from 0 to "+_),this.remove(0,_,(function(){n.logger_("On QUOTA_EXCEEDED_ERR, retrying append in 1s"),n.waitingOnRemove_=!1,n.quotaExceededErrorRetryTimeout_=l.a.setTimeout((function(){n.logger_("On QUOTA_EXCEEDED_ERR, re-processing call queue"),n.quotaExceededErrorRetryTimeout_=null,n.processCallQueue_()}),1e3)}),!0)},n.handleAppendError_=function(e,t){var n=e.segmentInfo,r=e.type,o=e.bytes;t&&(22!==t.code?(this.logger_("Received non QUOTA_EXCEEDED_ERR on append",t),this.error(r+" append of "+o.length+"b failed for segment #"+n.mediaIndex+" in playlist "+n.playlist.id),this.trigger("appenderror")):this.handleQuotaExceededError_({segmentInfo:n,type:r,bytes:o}))},n.appendToSourceBuffer_=function(e){var t,n,r,o=e.segmentInfo,l=e.type,c=e.initSegment,data=e.data,d=e.bytes;if(!d){var h=[data],f=data.byteLength;c&&(h.unshift(c),f+=c.byteLength),r=0,(t={bytes:f,segments:h}).bytes&&(n=new Uint8Array(t.bytes),t.segments.forEach((function(e){n.set(e,r),r+=e.byteLength}))),d=n}this.sourceUpdater_.appendBuffer({segmentInfo:o,type:l,bytes:d},this.handleAppendError_.bind(this,{segmentInfo:o,type:l,bytes:d}))},n.handleSegmentTimingInfo_=function(e,t,n){if(this.pendingSegment_&&t===this.pendingSegment_.requestId){var r=this.pendingSegment_.segment,o=e+"TimingInfo";r[o]||(r[o]={}),r[o].transmuxerPrependedSeconds=n.prependedContentDuration||0,r[o].transmuxedPresentationStart=n.start.presentation,r[o].transmuxedDecodeStart=n.start.decode,r[o].transmuxedPresentationEnd=n.end.presentation,r[o].transmuxedDecodeEnd=n.end.decode,r[o].baseMediaDecodeTime=n.baseMediaDecodeTime}},n.appendData_=function(e,t){var n=t.type,data=t.data;if(data&&data.byteLength&&("audio"!==n||!this.audioDisabled_)){var r=this.getInitSegmentAndUpdateState_({type:n,initSegment:t.initSegment,playlist:e.playlist,map:e.isFmp4?e.segment.map:null});this.appendToSourceBuffer_({segmentInfo:e,type:n,initSegment:r,data:data})}},n.loadSegment_=function(e){var t=this;this.state="WAITING",this.pendingSegment_=e,this.trimBackBuffer_(e),"number"==typeof e.timestampOffset&&this.transmuxer_&&this.transmuxer_.postMessage({action:"clearAllMp4Captions"}),this.hasEnoughInfoToLoad_()?this.updateTransmuxerAndRequestSegment_(e):this.loadQueue_.push((function(){var n=f()({},e,{forceTimestampOffset:!0});f()(e,t.generateSegmentInfo_(n)),t.isPendingTimestampOffset_=!1,t.updateTransmuxerAndRequestSegment_(e)}))},n.updateTransmuxerAndRequestSegment_=function(e){var t=this;this.shouldUpdateTransmuxerTimestampOffset_(e.timestampOffset)&&(this.gopBuffer_.length=0,e.gopsToAlignWith=[],this.timeMapping_=0,this.transmuxer_.postMessage({action:"reset"}),this.transmuxer_.postMessage({action:"setTimestampOffset",timestampOffset:e.timestampOffset}));var n=this.createSimplifiedSegmentObj_(e),r=this.isEndOfStream_(e.mediaIndex,e.playlist,e.partIndex),o=null!==this.mediaIndex,l=e.timeline!==this.currentTimeline_&&e.timeline>0,c=r||o&&l;this.logger_("Requesting "+ks(e)),n.map&&!n.map.bytes&&(this.logger_("going to request init segment."),this.appendInitSegment_={video:!0,audio:!0}),e.abortRequests=ss({xhr:this.vhs_.xhr,xhrOptions:this.xhrOptions_,decryptionWorker:this.decrypter_,segment:n,abortFn:this.handleAbort_.bind(this,e),progressFn:this.handleProgress_.bind(this),trackInfoFn:this.handleTrackInfo_.bind(this),timingInfoFn:this.handleTimingInfo_.bind(this),videoSegmentTimingInfoFn:this.handleSegmentTimingInfo_.bind(this,"video",e.requestId),audioSegmentTimingInfoFn:this.handleSegmentTimingInfo_.bind(this,"audio",e.requestId),captionsFn:this.handleCaptions_.bind(this),isEndOfTimeline:c,endedTimelineFn:function(){t.logger_("received endedtimeline callback")},id3Fn:this.handleId3_.bind(this),dataFn:this.handleData_.bind(this),doneFn:this.segmentRequestFinished_.bind(this),onTransmuxerLog:function(n){var r=n.message,o=n.level,l=n.stream;t.logger_(ks(e)+" logged from transmuxer stream "+l+" as a "+o+": "+r)}})},n.trimBackBuffer_=function(e){var t=function(e,t,n){var r=t-Oo.BACK_BUFFER_LENGTH;e.length&&(r=Math.max(r,e.start(0)));var o=t-n;return Math.min(o,r)}(this.seekable_(),this.currentTime_(),this.playlist_.targetDuration||10);t>0&&this.remove(0,t)},n.createSimplifiedSegmentObj_=function(e){var t=e.segment,n=e.part,r={resolvedUri:n?n.resolvedUri:t.resolvedUri,byterange:n?n.byterange:t.byterange,requestId:e.requestId,transmuxer:e.transmuxer,audioAppendStart:e.audioAppendStart,gopsToAlignWith:e.gopsToAlignWith,part:e.part},o=e.playlist.segments[e.mediaIndex-1];if(o&&o.timeline===t.timeline&&(o.videoTimingInfo?r.baseStartTime=o.videoTimingInfo.transmuxedDecodeEnd:o.audioTimingInfo&&(r.baseStartTime=o.audioTimingInfo.transmuxedDecodeEnd)),t.key){var l=t.key.iv||new Uint32Array([0,0,0,e.mediaIndex+e.playlist.mediaSequence]);r.key=this.segmentKey(t.key),r.key.iv=l}return t.map&&(r.map=this.initSegmentForMap(t.map)),r},n.saveTransferStats_=function(e){this.mediaRequests+=1,e&&(this.mediaBytesTransferred+=e.bytesReceived,this.mediaTransferDuration+=e.roundTripTime)},n.saveBandwidthRelatedStats_=function(e,t){this.pendingSegment_.byteLength=t.bytesReceived,e=r);i++);return e.slice(0,i).concat(t)}(this.gopBuffer_,n.gopInfo,this.safeAppend_)),this.state="APPENDING",this.trigger("appending"),this.waitForAppendsToComplete_(r)}},n.setTimeMapping_=function(e){var t=this.syncController_.mappingForTimeline(e);null!==t&&(this.timeMapping_=t)},n.updateMediaSecondsLoaded_=function(e){"number"==typeof e.start&&"number"==typeof e.end?this.mediaSecondsLoaded+=e.end-e.start:this.mediaSecondsLoaded+=e.duration},n.shouldUpdateTransmuxerTimestampOffset_=function(e){return null!==e&&("main"===this.loaderType_&&e!==this.sourceUpdater_.videoTimestampOffset()||!this.audioDisabled_&&e!==this.sourceUpdater_.audioTimestampOffset())},n.trueSegmentStart_=function(e){var t=e.currentStart,n=e.playlist,r=e.mediaIndex,o=e.firstVideoFrameTimeForData,l=e.currentVideoTimestampOffset,c=e.useVideoTimingInfo,d=e.videoTimingInfo,h=e.audioTimingInfo;if(void 0!==t)return t;if(!c)return h.start;var f=n.segments[r-1];return 0!==r&&f&&void 0!==f.start&&f.end===o+l?d.start:o},n.waitForAppendsToComplete_=function(e){var t=this.getCurrentMediaInfo_(e);if(!t)return this.error({message:"No starting media returned, likely due to an unsupported media format.",blacklistDuration:1/0}),void this.trigger("error");var n=t.hasAudio,r=t.hasVideo,o=t.isMuxed,l="main"===this.loaderType_&&r,c=!this.audioDisabled_&&n&&!o;if(e.waitingOnAppends=0,!e.hasAppendedData_)return e.timingInfo||"number"!=typeof e.timestampOffset||(this.isPendingTimestampOffset_=!0),e.timingInfo={start:0},e.waitingOnAppends++,this.isPendingTimestampOffset_||(this.updateSourceBufferTimestampOffset_(e),this.processMetadataQueue_()),void this.checkAppendsDone_(e);l&&e.waitingOnAppends++,c&&e.waitingOnAppends++,l&&this.sourceUpdater_.videoQueueCallback(this.checkAppendsDone_.bind(this,e)),c&&this.sourceUpdater_.audioQueueCallback(this.checkAppendsDone_.bind(this,e))},n.checkAppendsDone_=function(e){this.checkForAbort_(e.requestId)||(e.waitingOnAppends--,0===e.waitingOnAppends&&this.handleAppendsDone_())},n.checkForIllegalMediaSwitch=function(e){var t=function(e,t,n){return"main"===e&&t&&n?n.hasAudio||n.hasVideo?t.hasVideo&&!n.hasVideo?"Only audio found in segment when we expected video. We can't switch to audio only from a stream that had video. To get rid of this message, please add codec information to the manifest.":!t.hasVideo&&n.hasVideo?"Video found in segment when we expected only audio. We can't switch to a stream with video from an audio only stream. To get rid of this message, please add codec information to the manifest.":null:"Neither audio nor video found in segment.":null}(this.loaderType_,this.getCurrentMediaInfo_(),e);return!!t&&(this.error({message:t,blacklistDuration:1/0}),this.trigger("error"),!0)},n.updateSourceBufferTimestampOffset_=function(e){if(null!==e.timestampOffset&&"number"==typeof e.timingInfo.start&&!e.changedTimestampOffset&&"main"===this.loaderType_){var t=!1;e.timestampOffset-=this.getSegmentStartTimeForTimestampOffsetCalculation_({videoTimingInfo:e.segment.videoTimingInfo,audioTimingInfo:e.segment.audioTimingInfo,timingInfo:e.timingInfo}),e.changedTimestampOffset=!0,e.timestampOffset!==this.sourceUpdater_.videoTimestampOffset()&&(this.sourceUpdater_.videoTimestampOffset(e.timestampOffset),t=!0),e.timestampOffset!==this.sourceUpdater_.audioTimestampOffset()&&(this.sourceUpdater_.audioTimestampOffset(e.timestampOffset),t=!0),t&&this.trigger("timestampoffset")}},n.getSegmentStartTimeForTimestampOffsetCalculation_=function(e){var t=e.videoTimingInfo,n=e.audioTimingInfo,r=e.timingInfo;return this.useDtsForTimestampOffset_?t&&"number"==typeof t.transmuxedDecodeStart?t.transmuxedDecodeStart:n&&"number"==typeof n.transmuxedDecodeStart?n.transmuxedDecodeStart:r.start:r.start},n.updateTimingInfoEnd_=function(e){e.timingInfo=e.timingInfo||{};var t=this.getMediaInfo_(),n="main"===this.loaderType_&&t&&t.hasVideo&&e.videoTimingInfo?e.videoTimingInfo:e.audioTimingInfo;n&&(e.timingInfo.end="number"==typeof n.end?n.end:n.start+e.duration)},n.handleAppendsDone_=function(){if(this.pendingSegment_&&this.trigger("appendsdone"),!this.pendingSegment_)return this.state="READY",void(this.paused()||this.monitorBuffer_());var e=this.pendingSegment_;this.updateTimingInfoEnd_(e),this.shouldSaveSegmentTimingInfo_&&this.syncController_.saveSegmentTimingInfo({segmentInfo:e,shouldSaveTimelineMapping:"main"===this.loaderType_});var t=Es(e,this.sourceType_);if(t&&("warn"===t.severity?ga.log.warn(t.message):this.logger_(t.message)),this.recordThroughput_(e),this.pendingSegment_=null,this.state="READY",!e.isSyncRequest||(this.trigger("syncinfoupdate"),e.hasAppendedData_)){this.logger_("Appended "+ks(e)),this.addSegmentMetadataCue_(e),this.fetchAtBuffer_=!0,this.currentTimeline_!==e.timeline&&(this.timelineChangeController_.lastTimelineChange({type:this.loaderType_,from:this.currentTimeline_,to:e.timeline}),"main"!==this.loaderType_||this.audioDisabled_||this.timelineChangeController_.lastTimelineChange({type:"audio",from:this.currentTimeline_,to:e.timeline})),this.currentTimeline_=e.timeline,this.trigger("syncinfoupdate");var n=e.segment,r=e.part,o=n.end&&this.currentTime_()-n.end>3*e.playlist.targetDuration,l=r&&r.end&&this.currentTime_()-r.end>3*e.playlist.partTargetDuration;if(o||l)return this.logger_("bad "+(o?"segment":"part")+" "+ks(e)),void this.resetEverything();null!==this.mediaIndex&&this.trigger("bandwidthupdate"),this.trigger("progress"),this.mediaIndex=e.mediaIndex,this.partIndex=e.partIndex,this.isEndOfStream_(e.mediaIndex,e.playlist,e.partIndex)&&this.endOfStream(),this.trigger("appended"),e.hasAppendedData_&&this.mediaAppends++,this.paused()||this.monitorBuffer_()}else this.logger_("Throwing away un-appended sync request "+ks(e))},n.recordThroughput_=function(e){if(e.duration=e.playlist.segments.length){e=null;break}e=this.generateSegmentInfo_({playlist:e.playlist,mediaIndex:e.mediaIndex+1,startOfSegment:e.startOfSegment+e.duration,isSyncRequest:e.isSyncRequest})}return e},n.stopForError=function(e){this.error(e),this.state="READY",this.pause(),this.trigger("error")},n.segmentRequestFinished_=function(e,t,n){var r=this;if(this.subtitlesTrack_){if(this.saveTransferStats_(t.stats),!this.pendingSegment_)return this.state="READY",void(this.mediaRequestsAborted+=1);if(e)return e.code===Xo&&this.handleTimeout_(),e.code===Ko?this.mediaRequestsAborted+=1:this.mediaRequestsErrored+=1,void this.stopForError(e);var o=this.pendingSegment_;this.saveBandwidthRelatedStats_(o.duration,t.stats),t.key&&this.segmentKey(t.key,!0),this.state="APPENDING",this.trigger("appending");var c=o.segment;if(c.map&&(c.map.bytes=t.map.bytes),o.bytes=t.bytes,"function"!=typeof l.a.WebVTT&&"function"==typeof this.loadVttJs)return this.state="WAITING_ON_VTTJS",void this.loadVttJs().then((function(){return r.segmentRequestFinished_(e,t,n)}),(function(){return r.stopForError({message:"Error loading vtt.js"})}));c.requested=!0;try{this.parseVTTCues_(o)}catch(e){return void this.stopForError({message:e.message})}if(this.updateTimeMapping_(o,this.syncController_.timelines[o.timeline],this.playlist_),o.cues.length?o.timingInfo={start:o.cues[0].startTime,end:o.cues[o.cues.length-1].endTime}:o.timingInfo={start:o.startOfSegment,end:o.startOfSegment+o.duration},o.isSyncRequest)return this.trigger("syncinfoupdate"),this.pendingSegment_=null,void(this.state="READY");o.byteLength=o.bytes.byteLength,this.mediaSecondsLoaded+=c.duration,o.cues.forEach((function(e){r.subtitlesTrack_.addCue(r.featuresNativeTextTracks_?new l.a.VTTCue(e.startTime,e.endTime,e.text):e)})),function(track){var e=track.cues;if(e)for(var i=0;i1&&t.push(e[r]);t.length&&t.forEach((function(e){return track.removeCue(e)}))}}(this.subtitlesTrack_),this.handleAppendsDone_()}else this.state="READY"},n.handleData_=function(){},n.updateTimingInfoEnd_=function(){},n.parseVTTCues_=function(e){var t,n=!1;if("function"!=typeof l.a.WebVTT)throw new Zs;"function"==typeof l.a.TextDecoder?t=new l.a.TextDecoder("utf8"):(t=l.a.WebVTT.StringDecoder(),n=!0);var r=new l.a.WebVTT.Parser(l.a,l.a.vttjs,t);if(e.cues=[],e.timestampmap={MPEGTS:0,LOCAL:0},r.oncue=e.cues.push.bind(e.cues),r.ontimestampmap=function(map){e.timestampmap=map},r.onparsingerror=function(e){ga.log.warn("Error encountered when parsing cues: "+e.message)},e.segment.map){var o=e.segment.map.bytes;n&&(o=Qs(o)),r.parse(o)}var c=e.bytes;n&&(c=Qs(c)),r.parse(c),r.flush()},n.updateTimeMapping_=function(e,t,n){var r=e.segment;if(t)if(e.cues.length){var o=e.timestampmap,l=o.MPEGTS/z.ONE_SECOND_IN_TS-o.LOCAL+t.mapping;if(e.cues.forEach((function(e){e.startTime+=l,e.endTime+=l})),!n.syncInfo){var c=e.cues[0].startTime,d=e.cues[e.cues.length-1].startTime;n.syncInfo={mediaSequence:n.mediaSequence+e.mediaIndex,time:Math.min(c,d-r.duration)}}}else r.empty=!0},t}(Ds),tu=function(track,e){for(var t=track.cues,i=0;i=n.adStartTime&&e<=n.adEndTime)return n}return null},nu=[{name:"VOD",run:function(e,t,n,r,o){if(n!==1/0){return{time:0,segmentIndex:0,partIndex:null}}return null}},{name:"ProgramDateTime",run:function(e,t,n,r,o){if(!Object.keys(e.timelineToDatetimeMappings).length)return null;var l=null,c=null,d=ja(t);o=o||0;for(var i=0;i=v)&&(c=v,l={time:m,segmentIndex:h.segmentIndex,partIndex:h.partIndex})}}return l}},{name:"Discontinuity",run:function(e,t,n,r,o){var l=null;if(o=o||0,t.discontinuityStarts&&t.discontinuityStarts.length)for(var c=null,i=0;i=m)&&(c=m,l={time:f.time,segmentIndex:d,partIndex:null})}}return l}},{name:"Playlist",run:function(e,t,n,r,o){return t.syncInfo?{time:t.syncInfo.time,segmentIndex:t.syncInfo.mediaSequence-t.mediaSequence,partIndex:null}:null}}],iu=function(e){function t(t){var n;return(n=e.call(this)||this).timelines=[],n.discontinuities=[],n.timelineToDatetimeMappings={},n.logger_=ba("SyncController"),n}w()(t,e);var n=t.prototype;return n.getSyncPoint=function(e,t,n,r){var o=this.runStrategies_(e,t,n,r);return o.length?this.selectSyncPoint_(o,{key:"time",value:r}):null},n.getExpiredTime=function(e,t){if(!e||!e.segments)return null;var n=this.runStrategies_(e,t,e.discontinuitySequence,0);if(!n.length)return null;var r=this.selectSyncPoint_(n,{key:"segmentIndex",value:0});return r.segmentIndex>0&&(r.time*=-1),Math.abs(r.time+Ra({defaultDuration:e.targetDuration,durationList:e.segments,startIndex:r.segmentIndex,endIndex:0}))},n.runStrategies_=function(e,t,n,r){for(var o=[],i=0;i86400)ga.log.warn("Not saving expired segment info. Media sequence gap "+n+" is too large.");else for(var i=n-1;i>=0;i--){var r=e.segments[i];if(r&&void 0!==r.start){t.syncInfo={mediaSequence:e.mediaSequence+i,time:r.start},this.logger_("playlist refresh sync: [time:"+t.syncInfo.time+", mediaSequence: "+t.syncInfo.mediaSequence+"]"),this.trigger("syncinfoupdate");break}}},n.setDateTimeMappingForStart=function(e){if(this.timelineToDatetimeMappings={},e.segments&&e.segments.length&&e.segments[0].dateTimeObject){var t=e.segments[0],n=t.dateTimeObject.getTime()/1e3;this.timelineToDatetimeMappings[t.timeline]=-n}},n.saveSegmentTimingInfo=function(e){var t=e.segmentInfo,n=e.shouldSaveTimelineMapping,r=this.calculateSegmentTimeMapping_(t,t.timingInfo,n),o=t.segment;r&&(this.saveDiscontinuitySyncInfo_(t),t.playlist.syncInfo||(t.playlist.syncInfo={mediaSequence:t.playlist.mediaSequence+t.mediaIndex,time:o.start}));var l=o.dateTimeObject;o.discontinuity&&n&&l&&(this.timelineToDatetimeMappings[o.timeline]=-l.getTime()/1e3)},n.timestampOffsetForTimeline=function(e){return void 0===this.timelines[e]?null:this.timelines[e].time},n.mappingForTimeline=function(e){return void 0===this.timelines[e]?null:this.timelines[e].mapping},n.calculateSegmentTimeMapping_=function(e,t,n){var r,o,l=e.segment,c=e.part,d=this.timelines[e.timeline];if("number"==typeof e.timestampOffset)d={time:e.startOfSegment,mapping:e.startOfSegment-t.start},n&&(this.timelines[e.timeline]=d,this.trigger("timestampoffset"),this.logger_("time mapping for timeline "+e.timeline+": [time: "+d.time+"] [mapping: "+d.mapping+"]")),r=e.startOfSegment,o=t.end+d.mapping;else{if(!d)return!1;r=t.start+d.mapping,o=t.end+d.mapping}return c&&(c.start=r,c.end=o),(!l.start||rc){var time=void 0;time=l<0?n.start-Ra({defaultDuration:t.targetDuration,durationList:t.segments,startIndex:e.mediaIndex,endIndex:r}):n.end+Ra({defaultDuration:t.targetDuration,durationList:t.segments,startIndex:e.mediaIndex+1,endIndex:r}),this.discontinuities[o]={time:time,accuracy:c}}}},n.dispose=function(){this.trigger("dispose"),this.off()},t}(ga.EventTarget),ru=function(e){function t(){var t;return(t=e.call(this)||this).pendingTimelineChanges_={},t.lastTimelineChanges_={},t}w()(t,e);var n=t.prototype;return n.clearPendingTimelineChange=function(e){this.pendingTimelineChanges_[e]=null,this.trigger("pendingtimelinechange")},n.pendingTimelineChange=function(e){var t=e.type,n=e.from,r=e.to;return"number"==typeof n&&"number"==typeof r&&(this.pendingTimelineChanges_[t]={type:t,from:n,to:r},this.trigger("pendingtimelinechange")),this.pendingTimelineChanges_[t]},n.lastTimelineChange=function(e){var t=e.type,n=e.from,r=e.to;return"number"==typeof n&&"number"==typeof r&&(this.lastTimelineChanges_[t]={type:t,from:n,to:r},delete this.pendingTimelineChanges_[t],this.trigger("timelinechange")),this.lastTimelineChanges_[t]},n.dispose=function(){this.trigger("dispose"),this.pendingTimelineChanges_={},this.lastTimelineChanges_={},this.off()},t}(ga.EventTarget),au=No(Ro((function(){var t="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==e?e:"undefined"!=typeof self?self:{};function n(e,t,n){return e(n={path:t,exports:{},require:function(path,base){return function(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}(null==base&&n.path)}},n.exports),n.exports}var r=n((function(e){function t(e,t){for(var i=0;i-1},t.trigger=function(e){var t=this.listeners[e];if(t)if(2===arguments.length)for(var n=t.length,i=0;i>7))^i]=i;for(e=t=0;!f[e];e^=n||1,t=th[t]||1)for(s=(s=t^t<<1^t<<2^t<<3^t<<4)>>8^255&s^99,f[e]=s,m[s]=e,l=16843009*v[r=v[n=v[e]]]^65537*r^257*n^16843008*e,o=257*v[s]^16843008*s,i=0;i<4;i++)d[i][e]=o=o<<24^o>>>8,h[i][s]=l=l<<24^l>>>8;for(i=0;i<5;i++)d[i]=d[i].slice(0),h[i]=h[i].slice(0);return c}()),this._tables=[[h[0][0].slice(),h[0][1].slice(),h[0][2].slice(),h[0][3].slice(),h[0][4].slice()],[h[1][0].slice(),h[1][1].slice(),h[1][2].slice(),h[1][3].slice(),h[1][4].slice()]];var r=this._tables[0][4],o=this._tables[1],l=e.length,c=1;if(4!==l&&6!==l&&8!==l)throw new Error("Invalid aes key size");var d=e.slice(0),f=[];for(this._key=[d,f],i=l;i<4*l+28;i++)n=d[i-1],(i%l==0||8===l&&i%l==4)&&(n=r[n>>>24]<<24^r[n>>16&255]<<16^r[n>>8&255]<<8^r[255&n],i%l==0&&(n=n<<8^n>>>24^c<<24,c=c<<1^283*(c>>7))),d[i]=d[i-l]^n;for(t=0;i;t++,i--)n=d[3&t?i:i-4],f[t]=i<=4||t<4?n:o[0][r[n>>>24]]^o[1][r[n>>16&255]]^o[2][r[n>>8&255]]^o[3][r[255&n]]}return e.prototype.decrypt=function(e,t,n,r,o,l){var c,d,h,i,f=this._key[1],a=e^f[0],b=r^f[1],m=n^f[2],v=t^f[3],y=f.length/4-2,_=4,table=this._tables[1],T=table[0],w=table[1],S=table[2],k=table[3],x=table[4];for(i=0;i>>24]^w[b>>16&255]^S[m>>8&255]^k[255&v]^f[_],d=T[b>>>24]^w[m>>16&255]^S[v>>8&255]^k[255&a]^f[_+1],h=T[m>>>24]^w[v>>16&255]^S[a>>8&255]^k[255&b]^f[_+2],v=T[v>>>24]^w[a>>16&255]^S[b>>8&255]^k[255&m]^f[_+3],_+=4,a=c,b=d,m=h;for(i=0;i<4;i++)o[(3&-i)+l]=x[a>>>24]<<24^x[b>>16&255]<<16^x[m>>8&255]<<8^x[255&v]^f[_++],c=a,a=b,b=m,m=v,v=c},e}(),m=function(e){function t(){var t;return(t=e.call(this,c)||this).jobs=[],t.delay=1,t.timeout_=null,t}l(t,e);var n=t.prototype;return n.processJob_=function(){this.jobs.shift()(),this.jobs.length?this.timeout_=setTimeout(this.processJob_.bind(this),this.delay):this.timeout_=null},n.push=function(e){this.jobs.push(e),this.timeout_||(this.timeout_=setTimeout(this.processJob_.bind(this),this.delay))},t}(c),v=function(e){return e<<24|(65280&e)<<8|(16711680&e)>>8|e>>>24},y=function(){function e(t,n,r,o){var l=e.STEP,c=new Int32Array(t.buffer),d=new Uint8Array(t.byteLength),i=0;for(this.asyncStream_=new m,this.asyncStream_.push(this.decryptChunk_(c.subarray(i,i+l),n,r,d)),i=l;i>2),w=new f(Array.prototype.slice.call(t)),S=new Uint8Array(e.byteLength),k=new Int32Array(S.buffer);for(r=n[0],o=n[1],l=n[2],c=n[3],_=0;_=0&&(t="main-desc"),t},uu=function(e,t){e.abort(),e.pause(),t&&t.activePlaylistLoader&&(t.activePlaylistLoader.pause(),t.activePlaylistLoader=null)},lu=function(e,t){t.activePlaylistLoader=e,e.load()},cu={AUDIO:function(e,t){return function(){var n=t.segmentLoaders[e],r=t.mediaTypes[e],o=t.blacklistCurrentPlaylist;uu(n,r);var l=r.activeTrack(),c=r.activeGroup(),d=(c.filter((function(e){return e.default}))[0]||c[0]).id,h=r.tracks[d];if(l!==h){for(var f in ga.log.warn("Problem encountered loading the alternate audio track.Switching back to default."),r.tracks)r.tracks[f].enabled=r.tracks[f]===h;r.onTrackChanged()}else o({message:"Problem encountered loading the default audio track."})}},SUBTITLES:function(e,t){return function(){var n=t.segmentLoaders[e],r=t.mediaTypes[e];ga.log.warn("Problem encountered loading the subtitle track.Disabling subtitle track."),uu(n,r);var track=r.activeTrack();track&&(track.mode="disabled"),r.onTrackChanged()}}},du={AUDIO:function(e,t,n){if(t){var r=n.tech,o=n.requestOptions,l=n.segmentLoaders[e];t.on("loadedmetadata",(function(){var e=t.media();l.playlist(e,o),(!r.paused()||e.endList&&"none"!==r.preload())&&l.load()})),t.on("loadedplaylist",(function(){l.playlist(t.media(),o),r.paused()||l.load()})),t.on("error",cu[e](e,n))}},SUBTITLES:function(e,t,n){var r=n.tech,o=n.requestOptions,l=n.segmentLoaders[e],c=n.mediaTypes[e];t.on("loadedmetadata",(function(){var e=t.media();l.playlist(e,o),l.track(c.activeTrack()),(!r.paused()||e.endList&&"none"!==r.preload())&&l.load()})),t.on("loadedplaylist",(function(){l.playlist(t.media(),o),r.paused()||l.load()})),t.on("error",cu[e](e,n))}},hu={AUDIO:function(e,t){var n=t.vhs,r=t.sourceType,o=t.segmentLoaders[e],l=t.requestOptions,c=t.master.mediaGroups,d=t.mediaTypes[e],h=d.groups,f=d.tracks,m=d.logger_,v=t.masterPlaylistLoader,y=Wa(v.master);for(var _ in c[e]&&0!==Object.keys(c[e]).length||(c[e]={main:{default:{default:!0}}},y&&(c[e].main.default.playlists=v.master.playlists)),c[e])for(var T in h[_]||(h[_]=[]),c[e][_]){var w=c[e][_][T],S=void 0;if(y?(m("AUDIO group '"+_+"' label '"+T+"' is a master playlist"),w.isMasterPlaylist=!0,S=null):S="vhs-json"===r&&w.playlists?new uo(w.playlists[0],n,l):w.resolvedUri?new uo(w.resolvedUri,n,l):w.playlists&&"dash"===r?new Po(w.playlists[0],n,l,v):null,w=ga.mergeOptions({id:T,playlistLoader:S},w),du[e](e,w.playlistLoader,t),h[_].push(w),void 0===f[T]){var track=new ga.AudioTrack({id:T,kind:su(w),enabled:!1,language:w.language,default:w.default,label:T});f[T]=track}}o.on("error",cu[e](e,t))},SUBTITLES:function(e,t){var n=t.tech,r=t.vhs,o=t.sourceType,l=t.segmentLoaders[e],c=t.requestOptions,d=t.master.mediaGroups,h=t.mediaTypes[e],f=h.groups,m=h.tracks,v=t.masterPlaylistLoader;for(var y in d[e])for(var _ in f[y]||(f[y]=[]),d[e][y])if(!d[e][y][_].forced){var T=d[e][y][_],w=void 0;if("hls"===o)w=new uo(T.resolvedUri,r,c);else if("dash"===o){if(!T.playlists.filter((function(p){return p.excludeUntil!==1/0})).length)return;w=new Po(T.playlists[0],r,c,v)}else"vhs-json"===o&&(w=new uo(T.playlists?T.playlists[0]:T.resolvedUri,r,c));if(T=ga.mergeOptions({id:_,playlistLoader:w},T),du[e](e,T.playlistLoader,t),f[y].push(T),void 0===m[_]){var track=n.addRemoteTextTrack({id:_,kind:"subtitles",default:T.default&&T.autoselect,language:T.language,label:_},!1).track;m[_]=track}}l.on("error",cu[e](e,t))},"CLOSED-CAPTIONS":function(e,t){var n=t.tech,r=t.master.mediaGroups,o=t.mediaTypes[e],l=o.groups,c=o.tracks;for(var d in r[e])for(var h in l[d]||(l[d]=[]),r[e][d]){var f=r[e][d][h];if(/^(?:CC|SERVICE)/.test(f.instreamId)){var m=n.options_.vhs&&n.options_.vhs.captionServices||{},v={label:h,language:f.language,instreamId:f.instreamId,default:f.default&&f.autoselect};if(m[v.instreamId]&&(v=ga.mergeOptions(v,m[v.instreamId])),void 0===v.default&&delete v.default,l[d].push(ga.mergeOptions({id:h},f)),void 0===c[h]){var track=n.addRemoteTextTrack({id:v.instreamId,kind:"captions",default:v.default,language:v.language,label:v.label},!1).track;c[h]=track}}}}},fu=function e(t,n){for(var i=0;i1&&Wa(t.master))for(var i=0;i "+l+" from "+t),this.tech_.trigger({type:"usage",name:"vhs-rendition-change-"+t})),this.masterPlaylistLoader_.media(e,n)},n.startABRTimer_=function(){var e=this;this.stopABRTimer_(),this.abrTimer_=l.a.setInterval((function(){return e.checkABR_()}),250)},n.stopABRTimer_=function(){this.tech_.scrubbing&&this.tech_.scrubbing()||(l.a.clearInterval(this.abrTimer_),this.abrTimer_=null)},n.getAudioTrackPlaylists_=function(){var e=this.master(),t=e&&e.playlists||[];if(!e||!e.mediaGroups||!e.mediaGroups.AUDIO)return t;var track,n=e.mediaGroups.AUDIO,r=Object.keys(n);if(Object.keys(this.mediaTypes_.AUDIO.groups).length)track=this.mediaTypes_.AUDIO.activeTrack();else{var o=n.main||r.length&&n[r[0]];for(var label in o)if(o[label].default){track={label:label};break}}if(!track)return t;var l=[];for(var c in n)if(n[c][track.label]){var d=n[c][track.label];if(d.playlists&&d.playlists.length)l.push.apply(l,d.playlists);else if(d.uri)l.push(d);else if(e.playlists.length)for(var i=0;i1&&(this.tech_.trigger({type:"usage",name:"vhs-alternate-audio"}),this.tech_.trigger({type:"usage",name:"hls-alternate-audio"})),this.useCueTags_&&(this.tech_.trigger({type:"usage",name:"vhs-playlist-cue-tags"}),this.tech_.trigger({type:"usage",name:"hls-playlist-cue-tags"}))},n.shouldSwitchToMedia_=function(e){var t=this.masterPlaylistLoader_.media()||this.masterPlaylistLoader_.pendingMedia_,n=this.tech_.currentTime(),r=this.bufferLowWaterLine(),o=this.bufferHighWaterLine();return function(e){var t=e.currentPlaylist,n=e.buffered,r=e.currentTime,o=e.nextPlaylist,l=e.bufferLowWaterLine,c=e.bufferHighWaterLine,d=e.duration,h=e.experimentalBufferBasedABR,f=e.log;if(!o)return ga.log.warn("We received no playlist to switch to. Please check your stream."),!1;var m="allowing switch "+(t&&t.id||"null")+" -> "+o.id;if(!t)return f(m+" as current playlist is not set"),!0;if(o.id===t.id)return!1;var v=Boolean(Sa(n,r).length);if(!t.endList)return v||"number"!=typeof t.partTargetDuration?(f(m+" as current playlist is live"),!0):(f("not "+m+" as current playlist is live llhls, but currentTime isn't in buffered."),!1);var y=Ea(n,r),_=h?Oo.EXPERIMENTAL_MAX_BUFFER_LOW_WATER_LINE:Oo.MAX_BUFFER_LOW_WATER_LINE;if(d<_)return f(m+" as duration < max low water line ("+d+" < "+_+")"),!0;var T=o.attributes.BANDWIDTH,w=t.attributes.BANDWIDTH;if(Tw)&&y>=l){var k=m+" as forwardBuffer >= bufferLowWaterLine ("+y+" >= "+l+")";return h&&(k+=" and next bandwidth > current bandwidth ("+T+" > "+w+")"),f(k),!0}return f("not "+m+" as no switching criteria met"),!1}({buffered:this.tech_.buffered(),currentTime:n,currentPlaylist:t,nextPlaylist:e,bufferLowWaterLine:r,bufferHighWaterLine:o,duration:this.duration(),experimentalBufferBasedABR:this.experimentalBufferBasedABR,log:this.logger_})},n.setupSegmentLoaderListeners_=function(){var e=this;this.mainSegmentLoader_.on("bandwidthupdate",(function(){e.checkABR_("bandwidthupdate"),e.tech_.trigger("bandwidthupdate")})),this.mainSegmentLoader_.on("timeout",(function(){e.experimentalBufferBasedABR&&e.mainSegmentLoader_.load()})),this.experimentalBufferBasedABR||this.mainSegmentLoader_.on("progress",(function(){e.trigger("progress")})),this.mainSegmentLoader_.on("error",(function(){e.blacklistCurrentPlaylist(e.mainSegmentLoader_.error())})),this.mainSegmentLoader_.on("appenderror",(function(){e.error=e.mainSegmentLoader_.error_,e.trigger("error")})),this.mainSegmentLoader_.on("syncinfoupdate",(function(){e.onSyncInfoUpdate_()})),this.mainSegmentLoader_.on("timestampoffset",(function(){e.tech_.trigger({type:"usage",name:"vhs-timestamp-offset"}),e.tech_.trigger({type:"usage",name:"hls-timestamp-offset"})})),this.audioSegmentLoader_.on("syncinfoupdate",(function(){e.onSyncInfoUpdate_()})),this.audioSegmentLoader_.on("appenderror",(function(){e.error=e.audioSegmentLoader_.error_,e.trigger("error")})),this.mainSegmentLoader_.on("ended",(function(){e.logger_("main segment loader ended"),e.onEndOfStream()})),this.mainSegmentLoader_.on("earlyabort",(function(t){e.experimentalBufferBasedABR||(e.delegateLoaders_("all",["abort"]),e.blacklistCurrentPlaylist({message:"Aborted early because there isn't enough bandwidth to complete the request without rebuffering."},120))}));var t=function(){if(!e.sourceUpdater_.hasCreatedSourceBuffers())return e.tryToCreateSourceBuffers_();var t=e.getCodecsOrExclude_();t&&e.sourceUpdater_.addOrChangeSourceBuffers(t)};this.mainSegmentLoader_.on("trackinfo",t),this.audioSegmentLoader_.on("trackinfo",t),this.mainSegmentLoader_.on("fmp4",(function(){e.triggeredFmp4Usage||(e.tech_.trigger({type:"usage",name:"vhs-fmp4"}),e.tech_.trigger({type:"usage",name:"hls-fmp4"}),e.triggeredFmp4Usage=!0)})),this.audioSegmentLoader_.on("fmp4",(function(){e.triggeredFmp4Usage||(e.tech_.trigger({type:"usage",name:"vhs-fmp4"}),e.tech_.trigger({type:"usage",name:"hls-fmp4"}),e.triggeredFmp4Usage=!0)})),this.audioSegmentLoader_.on("ended",(function(){e.logger_("audioSegmentLoader ended"),e.onEndOfStream()}))},n.mediaSecondsLoaded_=function(){return Math.max(this.audioSegmentLoader_.mediaSecondsLoaded+this.mainSegmentLoader_.mediaSecondsLoaded)},n.load=function(){this.mainSegmentLoader_.load(),this.mediaTypes_.AUDIO.activePlaylistLoader&&this.audioSegmentLoader_.load(),this.mediaTypes_.SUBTITLES.activePlaylistLoader&&this.subtitleSegmentLoader_.load()},n.smoothQualityChange_=function(e){void 0===e&&(e=this.selectPlaylist()),this.fastQualityChange_(e)},n.fastQualityChange_=function(e){var t=this;void 0===e&&(e=this.selectPlaylist()),e!==this.masterPlaylistLoader_.media()?(this.switchMedia_(e,"fast-quality"),this.mainSegmentLoader_.resetEverything((function(){ga.browser.IE_VERSION||ga.browser.IS_EDGE?t.tech_.setCurrentTime(t.tech_.currentTime()+.04):t.tech_.setCurrentTime(t.tech_.currentTime())}))):this.logger_("skipping fastQualityChange because new media is same as old")},n.play=function(){if(!this.setupFirstPlay()){this.tech_.ended()&&this.tech_.setCurrentTime(0),this.hasPlayed_&&this.load();var e=this.tech_.seekable();return this.tech_.duration()===1/0&&this.tech_.currentTime()this.maxPlaylistRetries?1/0:Date.now()+1e3*t,n.excludeUntil=r,e.reason&&(n.lastExcludeReason_=e.reason),this.tech_.trigger("blacklistplaylist"),this.tech_.trigger({type:"usage",name:"vhs-rendition-blacklisted"}),this.tech_.trigger({type:"usage",name:"hls-rendition-blacklisted"});var h=this.selectPlaylist();if(!h)return this.error="Playback cannot continue. No available working or supported playlists.",void this.trigger("error");var f=e.internal?this.logger_:ga.log.warn,m=e.message?" "+e.message:"";f((e.internal?"Internal problem":"Problem")+" encountered with playlist "+n.id+"."+m+" Switching to playlist "+h.id+"."),h.attributes.AUDIO!==n.attributes.AUDIO&&this.delegateLoaders_("audio",["abort","pause"]),h.attributes.SUBTITLES!==n.attributes.SUBTITLES&&this.delegateLoaders_("subtitle",["abort","pause"]),this.delegateLoaders_("main",["abort","pause"]);var v=h.targetDuration/2*1e3||5e3,y="number"==typeof h.lastRequest&&Date.now()-h.lastRequest<=v;return this.switchMedia_(h,"exclude",c||y)},n.pauseLoading=function(){this.delegateLoaders_("all",["abort","pause"]),this.stopABRTimer_()},n.delegateLoaders_=function(filter,e){var t=this,n=[],r="all"===filter;(r||"main"===filter)&&n.push(this.masterPlaylistLoader_);var o=[];(r||"audio"===filter)&&o.push("AUDIO"),(r||"subtitle"===filter)&&(o.push("CLOSED-CAPTIONS"),o.push("SUBTITLES")),o.forEach((function(e){var r=t.mediaTypes_[e]&&t.mediaTypes_[e].activePlaylistLoader;r&&n.push(r)})),["main","audio","subtitle"].forEach((function(e){var r=t[e+"SegmentLoader_"];!r||filter!==e&&"all"!==filter||n.push(r)})),n.forEach((function(t){return e.forEach((function(e){"function"==typeof t[e]&&t[e]()}))}))},n.setCurrentTime=function(e){var t=Sa(this.tech_.buffered(),e);return this.masterPlaylistLoader_&&this.masterPlaylistLoader_.media()&&this.masterPlaylistLoader_.media().segments?t&&t.length?e:(this.mainSegmentLoader_.resetEverything(),this.mainSegmentLoader_.abort(),this.mediaTypes_.AUDIO.activePlaylistLoader&&(this.audioSegmentLoader_.resetEverything(),this.audioSegmentLoader_.abort()),this.mediaTypes_.SUBTITLES.activePlaylistLoader&&(this.subtitleSegmentLoader_.resetEverything(),this.subtitleSegmentLoader_.abort()),void this.load()):0},n.duration=function(){if(!this.masterPlaylistLoader_)return 0;var e=this.masterPlaylistLoader_.media();return e?e.endList?this.mediaSource?this.mediaSource.duration:js.Playlist.duration(e):1/0:0},n.seekable=function(){return this.seekable_},n.onSyncInfoUpdate_=function(){var e;if(this.masterPlaylistLoader_){var t=this.masterPlaylistLoader_.media();if(t){var n=this.syncController_.getExpiredTime(t,this.duration());if(null!==n){var r=this.masterPlaylistLoader_.master,o=js.Playlist.seekable(t,n,js.Playlist.liveEdgeDelay(r,t));if(0!==o.length){if(this.mediaTypes_.AUDIO.activePlaylistLoader){if(t=this.mediaTypes_.AUDIO.activePlaylistLoader.media(),null===(n=this.syncController_.getExpiredTime(t,this.duration())))return;if(0===(e=js.Playlist.seekable(t,n,js.Playlist.liveEdgeDelay(r,t))).length)return}var l,c;this.seekable_&&this.seekable_.length&&(l=this.seekable_.end(0),c=this.seekable_.start(0)),e?e.start(0)>o.end(0)||o.start(0)>e.end(0)?this.seekable_=o:this.seekable_=ga.createTimeRanges([[e.start(0)>o.start(0)?e.start(0):o.start(0),e.end(0)0&&(r=Math.max(r,n.end(n.length-1))),this.mediaSource.duration!==r&&this.sourceUpdater_.setDuration(r)}},n.dispose=function(){var e=this;this.trigger("dispose"),this.decrypter_.terminate(),this.masterPlaylistLoader_.dispose(),this.mainSegmentLoader_.dispose(),this.loadOnPlay_&&this.tech_.off("play",this.loadOnPlay_),["AUDIO","SUBTITLES"].forEach((function(t){var n=e.mediaTypes_[t].groups;for(var r in n)n[r].forEach((function(e){e.playlistLoader&&e.playlistLoader.dispose()}))})),this.audioSegmentLoader_.dispose(),this.subtitleSegmentLoader_.dispose(),this.sourceUpdater_.dispose(),this.timelineChangeController_.dispose(),this.stopABRTimer_(),this.updateDuration_&&this.mediaSource.removeEventListener("sourceopen",this.updateDuration_),this.mediaSource.removeEventListener("durationchange",this.handleDurationChange_),this.mediaSource.removeEventListener("sourceopen",this.handleSourceOpen_),this.mediaSource.removeEventListener("sourceended",this.handleSourceEnded_),this.off()},n.master=function(){return this.masterPlaylistLoader_.master},n.media=function(){return this.masterPlaylistLoader_.media()||this.initialMedia_},n.areMediaTypesKnown_=function(){var e=!!this.mediaTypes_.AUDIO.activePlaylistLoader,t=!!this.mainSegmentLoader_.getCurrentMediaInfo_(),n=!e||!!this.audioSegmentLoader_.getCurrentMediaInfo_();return!(!t||!n)},n.getCodecsOrExclude_=function(){var e=this,t={main:this.mainSegmentLoader_.getCurrentMediaInfo_()||{},audio:this.audioSegmentLoader_.getCurrentMediaInfo_()||{}},n=this.mainSegmentLoader_.getPendingSegmentPlaylist()||this.media();t.video=t.main;var r=hs(this.master(),n),o={},l=!!this.mediaTypes_.AUDIO.activePlaylistLoader;if(t.main.hasVideo&&(o.video=r.video||t.main.videoCodec||L.b),t.main.isMuxed&&(o.video+=","+(r.audio||t.main.audioCodec||L.a)),(t.main.hasAudio&&!t.main.isMuxed||t.audio.hasAudio||l)&&(o.audio=r.audio||t.main.audioCodec||t.audio.audioCodec||L.a,t.audio.isFmp4=t.main.hasAudio&&!t.main.isMuxed?t.main.isFmp4:t.audio.isFmp4),o.audio||o.video){var c,d={};if(["video","audio"].forEach((function(e){if(o.hasOwnProperty(e)&&(r=t[e].isFmp4,l=o[e],!(r?Object(L.c)(l):Object(L.g)(l)))){var n=t[e].isFmp4?"browser":"muxer";d[n]=d[n]||[],d[n].push(o[e]),"audio"===e&&(c=n)}var r,l})),l&&c&&n.attributes.AUDIO){var h=n.attributes.AUDIO;this.master().playlists.forEach((function(e){(e.attributes&&e.attributes.AUDIO)===h&&e!==n&&(e.excludeUntil=1/0)})),this.logger_("excluding audio group "+h+" as "+c+' does not support codec(s): "'+o.audio+'"')}if(!Object.keys(d).length){if(this.sourceUpdater_.hasCreatedSourceBuffers()&&!this.sourceUpdater_.canChangeType()){var f=[];if(["video","audio"].forEach((function(t){var n=(Object(L.h)(e.sourceUpdater_.codecs[t]||"")[0]||{}).type,r=(Object(L.h)(o[t]||"")[0]||{}).type;n&&r&&n.toLowerCase()!==r.toLowerCase()&&f.push('"'+e.sourceUpdater_.codecs[t]+'" -> "'+o[t]+'"')})),f.length)return void this.blacklistCurrentPlaylist({playlist:n,message:"Codec switching not supported: "+f.join(", ")+".",blacklistDuration:1/0,internal:!0})}return o}var m=Object.keys(d).reduce((function(e,t){return e&&(e+=", "),e+=t+' does not support codec(s): "'+d[t].join(",")+'"'}),"")+".";this.blacklistCurrentPlaylist({playlist:n,internal:!0,message:m,blacklistDuration:1/0})}else this.blacklistCurrentPlaylist({playlist:n,message:"Could not determine codecs for playlist.",blacklistDuration:1/0})},n.tryToCreateSourceBuffers_=function(){if("open"===this.mediaSource.readyState&&!this.sourceUpdater_.hasCreatedSourceBuffers()&&this.areMediaTypesKnown_()){var e=this.getCodecsOrExclude_();if(e){this.sourceUpdater_.createSourceBuffers(e);var t=[e.video,e.audio].filter(Boolean).join(",");this.excludeIncompatibleVariants_(t)}}},n.excludeUnsupportedVariants_=function(){var e=this,t=this.master().playlists,n=[];Object.keys(t).forEach((function(r){var o=t[r];if(-1===n.indexOf(o.id)){n.push(o.id);var l=hs(e.master,o),c=[];!l.audio||Object(L.g)(l.audio)||Object(L.c)(l.audio)||c.push("audio codec "+l.audio),!l.video||Object(L.g)(l.video)||Object(L.c)(l.video)||c.push("video codec "+l.video),l.text&&"stpp.ttml.im1t"===l.text&&c.push("text codec "+l.text),c.length&&(o.excludeUntil=1/0,e.logger_("excluding "+o.id+" for unsupported: "+c.join(", ")))}}))},n.excludeIncompatibleVariants_=function(e){var t=this,n=[],r=this.master().playlists,o=cs(Object(L.h)(e)),l=ds(o),c=o.video&&Object(L.h)(o.video)[0]||null,d=o.audio&&Object(L.h)(o.audio)[0]||null;Object.keys(r).forEach((function(e){var o=r[e];if(-1===n.indexOf(o.id)&&o.excludeUntil!==1/0){n.push(o.id);var h=[],f=hs(t.masterPlaylistLoader_.master,o),m=ds(f);if(f.audio||f.video){if(m!==l&&h.push('codec count "'+m+'" !== "'+l+'"'),!t.sourceUpdater_.canChangeType()){var v=f.video&&Object(L.h)(f.video)[0]||null,y=f.audio&&Object(L.h)(f.audio)[0]||null;v&&c&&v.type.toLowerCase()!==c.type.toLowerCase()&&h.push('video codec "'+v.type+'" !== "'+c.type+'"'),y&&d&&y.type.toLowerCase()!==d.type.toLowerCase()&&h.push('audio codec "'+y.type+'" !== "'+d.type+'"')}h.length&&(o.excludeUntil=1/0,t.logger_("blacklisting "+o.id+": "+h.join(" && ")))}}}))},n.updateAdCues_=function(e){var t=0,n=this.seekable();n.length&&(t=n.start(0)),function(e,track,t){if(void 0===t&&(t=0),e.segments)for(var n,r=t,i=0;i0&&this.logger_("resetting possible stalled download count for "+e+" loader"),this[e+"StalledDownloads_"]=0,this[e+"Buffered_"]=t.buffered_()},t.checkSegmentDownloads_=function(e){var t=this.masterPlaylistController_,n=t[e+"SegmentLoader_"],r=n.buffered_(),o=function(a,b){if(a===b)return!1;if(!a&&b||!b&&a)return!0;if(a.length!==b.length)return!0;for(var i=0;i=t.end(t.length-1)))return this.techWaiting_();this.consecutiveUpdates>=5&&e===this.lastRecordedTime?(this.consecutiveUpdates++,this.waiting_()):e===this.lastRecordedTime?this.consecutiveUpdates++:(this.consecutiveUpdates=0,this.lastRecordedTime=e)}},t.cancelTimer_=function(){this.consecutiveUpdates=0,this.timer_&&(this.logger_("cancelTimer_"),clearTimeout(this.timer_)),this.timer_=null},t.fixesBadSeeks_=function(){if(!this.tech_.seeking())return!1;var e,t=this.seekable(),n=this.tech_.currentTime();this.afterSeekableWindow_(t,n,this.media(),this.allowSeeksWithinUnsafeLiveWindow)&&(e=t.end(t.length-1));if(this.beforeSeekableWindow_(t,n)){var r=t.start(0);e=r+(r===t.end(0)?0:Ta)}if(void 0!==e)return this.logger_("Trying to seek outside of seekable at time "+n+" with seekable range "+xa(t)+". Seeking to "+e+"."),this.tech_.setCurrentTime(e),!0;for(var o=this.masterPlaylistController_.sourceUpdater_,l=this.tech_.buffered(),c=o.audioBuffer?o.audioBuffered():null,d=o.videoBuffer?o.videoBuffered():null,h=this.media(),f=h.partTargetDuration?h.partTargetDuration:2*(h.targetDuration-_a),m=[c,d],i=0;i "+n.end(0)+"]. Attempting to resume playback by seeking to the current time."),this.tech_.trigger({type:"usage",name:"vhs-unknown-waiting"}),void this.tech_.trigger({type:"usage",name:"hls-unknown-waiting"})):void 0}},t.techWaiting_=function(){var e=this.seekable(),t=this.tech_.currentTime();if(this.tech_.seeking()||null!==this.timer_)return!0;if(this.beforeSeekableWindow_(e,t)){var n=e.end(e.length-1);return this.logger_("Fell out of live window at time "+t+". Seeking to live point (seekable end) "+n),this.cancelTimer_(),this.tech_.setCurrentTime(n),this.tech_.trigger({type:"usage",name:"vhs-live-resync"}),this.tech_.trigger({type:"usage",name:"hls-live-resync"}),!0}var r=this.tech_.vhs.masterPlaylistController_.sourceUpdater_,o=this.tech_.buffered();if(this.videoUnderflow_({audioBuffered:r.audioBuffered(),videoBuffered:r.videoBuffered(),currentTime:t}))return this.cancelTimer_(),this.tech_.setCurrentTime(t),this.tech_.trigger({type:"usage",name:"vhs-video-underflow"}),this.tech_.trigger({type:"usage",name:"hls-video-underflow"}),!0;var l=ka(o,t);if(l.length>0){var c=l.start(0)-t;return this.logger_("Stopped at "+t+", setting timer for "+c+", seeking to "+l.start(0)),this.cancelTimer_(),this.timer_=setTimeout(this.skipTheGap_.bind(this),1e3*c,t),!0}return!1},t.afterSeekableWindow_=function(e,t,n,r){if(void 0===r&&(r=!1),!e.length)return!1;var o=e.end(e.length-1)+Ta;return!n.endList&&r&&(o=e.end(e.length-1)+3*n.targetDuration),t>o},t.beforeSeekableWindow_=function(e,t){return!!(e.length&&e.start(0)>0&&t2)return{start:r,end:o}}return null},e}(),wu={errorInterval:30,getSource:function(e){return e(this.tech({IWillNotUseThisInPlugins:!0}).currentSource_||this.currentSource())}},Su=function e(t,n){var r=0,o=0,l=ga.mergeOptions(wu,n);t.ready((function(){t.trigger({type:"usage",name:"vhs-error-reload-initialized"}),t.trigger({type:"usage",name:"hls-error-reload-initialized"})}));var c=function(){o&&t.currentTime(o)},d=function(e){null!=e&&(o=t.duration()!==1/0&&t.currentTime()||0,t.one("loadedmetadata",c),t.src(e),t.trigger({type:"usage",name:"vhs-error-reload"}),t.trigger({type:"usage",name:"hls-error-reload"}),t.play())},h=function(){return Date.now()-r<1e3*l.errorInterval?(t.trigger({type:"usage",name:"vhs-error-reload-canceled"}),void t.trigger({type:"usage",name:"hls-error-reload-canceled"})):l.getSource&&"function"==typeof l.getSource?(r=Date.now(),l.getSource.call(t,d)):void ga.log.error("ERROR: reloadSourceOnError - The option getSource must be a function!")},f=function e(){t.off("loadedmetadata",c),t.off("error",h),t.off("dispose",e)};t.on("error",h),t.on("dispose",f),t.reloadSourceOnError=function(n){f(),e(t,n)}},ku="2.16.3",xu={PlaylistLoader:uo,Playlist:Ga,utils:wo,STANDARD_PLAYLIST_SELECTOR:bs,INITIAL_PLAYLIST_SELECTOR:function(){var e=this,t=this.playlists.master.playlists.filter(Ga.isEnabled);return gs(t,(function(a,b){return vs(a,b)})),t.filter((function(t){return!!hs(e.playlists.master,t).video}))[0]||null},lastBandwidthSelector:bs,movingAverageBandwidthSelector:function(e){var t=-1,n=-1;if(e<0||e>1)throw new Error("Moving average bandwidth decay must be between 0 and 1.");return function(){var r=this.useDevicePixelRatio&&l.a.devicePixelRatio||1;return t<0&&(t=this.systemBandwidth,n=this.systemBandwidth),this.systemBandwidth>0&&this.systemBandwidth!==n&&(t=e*this.systemBandwidth+(1-e)*t,n=this.systemBandwidth),ys(this.playlists.master,t,parseInt(ms(this.tech_.el(),"width"),10)*r,parseInt(ms(this.tech_.el(),"height"),10)*r,this.limitRenditionByPlayerDimensions,this.masterPlaylistController_)}},comparePlaylistBandwidth:vs,comparePlaylistResolution:function(e,t){var n,r;return e.attributes.RESOLUTION&&e.attributes.RESOLUTION.width&&(n=e.attributes.RESOLUTION.width),n=n||l.a.Number.MAX_VALUE,t.attributes.RESOLUTION&&t.attributes.RESOLUTION.width&&(r=t.attributes.RESOLUTION.width),n===(r=r||l.a.Number.MAX_VALUE)&&e.attributes.BANDWIDTH&&t.attributes.BANDWIDTH?e.attributes.BANDWIDTH-t.attributes.BANDWIDTH:n-r},xhr:fo()};Object.keys(Oo).forEach((function(e){Object.defineProperty(xu,e,{get:function(){return ga.log.warn("using Vhs."+e+" is UNSAFE be sure you know what you are doing"),Oo[e]},set:function(t){ga.log.warn("using Vhs."+e+" is UNSAFE be sure you know what you are doing"),"number"!=typeof t||t<0?ga.log.warn("value of Vhs."+e+" must be greater than or equal to 0"):Oo[e]=t}})}));var Cu="videojs-vhs",Au=function(e,t){for(var n=t.media(),r=-1,i=0;i=n&&e>=n?Math.max(e,r):r}return e},set:function(e){this.masterPlaylistController_.mainSegmentLoader_.bandwidth=e,this.masterPlaylistController_.mainSegmentLoader_.throughput={rate:0,count:0}}},systemBandwidth:{get:function(){var e,t=1/(this.bandwidth||1);return e=this.throughput>0?1/this.throughput:0,Math.floor(1/(t+e))},set:function(){ga.log.error('The "systemBandwidth" property is read-only')}}}),this.options_.bandwidth&&(this.bandwidth=this.options_.bandwidth),this.options_.throughput&&(this.throughput=this.options_.throughput),Object.defineProperties(this.stats,{bandwidth:{get:function(){return n.bandwidth||0},enumerable:!0},mediaRequests:{get:function(){return n.masterPlaylistController_.mediaRequests_()||0},enumerable:!0},mediaRequestsAborted:{get:function(){return n.masterPlaylistController_.mediaRequestsAborted_()||0},enumerable:!0},mediaRequestsTimedout:{get:function(){return n.masterPlaylistController_.mediaRequestsTimedout_()||0},enumerable:!0},mediaRequestsErrored:{get:function(){return n.masterPlaylistController_.mediaRequestsErrored_()||0},enumerable:!0},mediaTransferDuration:{get:function(){return n.masterPlaylistController_.mediaTransferDuration_()||0},enumerable:!0},mediaBytesTransferred:{get:function(){return n.masterPlaylistController_.mediaBytesTransferred_()||0},enumerable:!0},mediaSecondsLoaded:{get:function(){return n.masterPlaylistController_.mediaSecondsLoaded_()||0},enumerable:!0},mediaAppends:{get:function(){return n.masterPlaylistController_.mediaAppends_()||0},enumerable:!0},mainAppendsToLoadedData:{get:function(){return n.masterPlaylistController_.mainAppendsToLoadedData_()||0},enumerable:!0},audioAppendsToLoadedData:{get:function(){return n.masterPlaylistController_.audioAppendsToLoadedData_()||0},enumerable:!0},appendsToLoadedData:{get:function(){return n.masterPlaylistController_.appendsToLoadedData_()||0},enumerable:!0},timeToLoadedData:{get:function(){return n.masterPlaylistController_.timeToLoadedData_()||0},enumerable:!0},buffered:{get:function(){return Ca(n.tech_.buffered())},enumerable:!0},currentTime:{get:function(){return n.tech_.currentTime()},enumerable:!0},currentSource:{get:function(){return n.tech_.currentSource_},enumerable:!0},currentTech:{get:function(){return n.tech_.name_},enumerable:!0},duration:{get:function(){return n.tech_.duration()},enumerable:!0},master:{get:function(){return n.playlists.master},enumerable:!0},playerDimensions:{get:function(){return n.tech_.currentDimensions()},enumerable:!0},seekable:{get:function(){return Ca(n.tech_.seekable())},enumerable:!0},timestamp:{get:function(){return Date.now()},enumerable:!0},videoPlaybackQuality:{get:function(){return n.tech_.getVideoPlaybackQuality()},enumerable:!0}}),this.tech_.one("canplay",this.masterPlaylistController_.setupFirstPlay.bind(this.masterPlaylistController_)),this.tech_.on("bandwidthupdate",(function(){n.options_.useBandwidthFromLocalStorage&&function(e){if(!l.a.localStorage)return!1;var t=Iu();t=t?ga.mergeOptions(t,e):e;try{l.a.localStorage.setItem(Cu,JSON.stringify(t))}catch(e){return!1}}({bandwidth:n.bandwidth,throughput:Math.round(n.throughput)})})),this.masterPlaylistController_.on("selectedinitialmedia",(function(){var e;(e=n).representations=function(){var t=e.masterPlaylistController_.master(),n=Wa(t)?e.masterPlaylistController_.getAudioTrackPlaylists_():t.playlists;return n?n.filter((function(e){return!Ua(e)})).map((function(t,i){return new bu(e,t,t.id)})):[]}})),this.masterPlaylistController_.sourceUpdater_.on("createdsourcebuffers",(function(){n.setupEme_()})),this.on(this.masterPlaylistController_,"progress",(function(){this.tech_.trigger("progress")})),this.on(this.masterPlaylistController_,"firstplay",(function(){this.ignoreNextSeekingEvent_=!0})),this.setupQualityLevels_(),this.tech_.el()&&(this.mediaSourceUrl_=l.a.URL.createObjectURL(this.masterPlaylistController_.mediaSource),this.tech_.src(this.mediaSourceUrl_))}},n.createKeySessions_=function(){var e=this,t=this.masterPlaylistController_.mediaTypes_.AUDIO.activePlaylistLoader;this.logger_("waiting for EME key session creation"),Eu({player:this.player_,sourceKeySystems:this.source_.keySystems,audioMedia:t&&t.media(),mainPlaylists:this.playlists.master.playlists}).then((function(){e.logger_("created EME key session"),e.masterPlaylistController_.sourceUpdater_.initializedEme()})).catch((function(t){e.logger_("error while creating EME key session",t),e.player_.error({message:"Failed to initialize media keys for EME",code:3})}))},n.handleWaitingForKey_=function(){this.logger_("waitingforkey fired, attempting to create any new key sessions"),this.createKeySessions_()},n.setupEme_=function(){var e=this,t=this.masterPlaylistController_.mediaTypes_.AUDIO.activePlaylistLoader,n=Du({player:this.player_,sourceKeySystems:this.source_.keySystems,media:this.playlists.media(),audioMedia:t&&t.media()});this.player_.tech_.on("keystatuschange",(function(t){if("output-restricted"===t.status){var n=e.masterPlaylistController_.master();if(n&&n.playlists){var r,o=[];if(n.playlists.forEach((function(e){e&&e.attributes&&e.attributes.RESOLUTION&&e.attributes.RESOLUTION.height>=720&&(!e.excludeUntil||e.excludeUntil<1/0)&&(e.excludeUntil=1/0,o.push(e))})),o.length)(r=ga.log).warn.apply(r,['DRM keystatus changed to "output-restricted." Removing the following HD playlists that will most likely fail to play and clearing the buffer. This may be due to HDCP restrictions on the stream and the capabilities of the current device.'].concat(o)),e.masterPlaylistController_.fastQualityChange_()}}})),this.handleWaitingForKey_=this.handleWaitingForKey_.bind(this),this.player_.tech_.on("waitingforkey",this.handleWaitingForKey_),11!==ga.browser.IE_VERSION&&n?this.createKeySessions_():this.masterPlaylistController_.sourceUpdater_.initializedEme()},n.setupQualityLevels_=function(){var e=this,t=ga.players[this.tech_.options_.playerId];t&&t.qualityLevels&&!this.qualityLevels_&&(this.qualityLevels_=t.qualityLevels(),this.masterPlaylistController_.on("selectedinitialmedia",(function(){var t,n;t=e.qualityLevels_,(n=e).representations().forEach((function(e){t.addQualityLevel(e)})),Au(t,n.playlists)})),this.playlists.on("mediachange",(function(){Au(e.qualityLevels_,e.playlists)})))},t.version=function(){return{"@videojs/http-streaming":ku,"mux.js":"6.0.1","mpd-parser":"0.22.1","m3u8-parser":"4.8.0","aes-decrypter":"3.1.3"}},n.version=function(){return this.constructor.version()},n.canChangeType=function(){return Ks.canChangeType()},n.play=function(){this.masterPlaylistController_.play()},n.setCurrentTime=function(e){this.masterPlaylistController_.setCurrentTime(e)},n.duration=function(){return this.masterPlaylistController_.duration()},n.seekable=function(){return this.masterPlaylistController_.seekable()},n.dispose=function(){this.playbackWatcher_&&this.playbackWatcher_.dispose(),this.masterPlaylistController_&&this.masterPlaylistController_.dispose(),this.qualityLevels_&&this.qualityLevels_.dispose(),this.player_&&(delete this.player_.vhs,delete this.player_.dash,delete this.player_.hls),this.tech_&&this.tech_.vhs&&delete this.tech_.vhs,this.tech_&&delete this.tech_.hls,this.mediaSourceUrl_&&l.a.URL.revokeObjectURL&&(l.a.URL.revokeObjectURL(this.mediaSourceUrl_),this.mediaSourceUrl_=null),this.tech_&&this.tech_.off("waitingforkey",this.handleWaitingForKey_),e.prototype.dispose.call(this)},n.convertToProgramTime=function(time,e){return So({playlist:this.masterPlaylistController_.media(),time:time,callback:e})},n.seekToProgramTime=function(e,t,n,r){return void 0===n&&(n=!0),void 0===r&&(r=2),ko({programTime:e,playlist:this.masterPlaylistController_.media(),retryCount:r,pauseAfterSeek:n,seekTo:this.options_.seekTo,tech:this.options_.tech,callback:t})},t}(ga.getComponent("Component")),Pu={name:"videojs-http-streaming",VERSION:ku,canHandleSource:function(e,t){void 0===t&&(t={});var n=ga.mergeOptions(ga.options,t);return Pu.canPlayType(e.type,n)},handleSource:function(source,e,t){void 0===t&&(t={});var n=ga.mergeOptions(ga.options,t);return e.vhs=new ju(source,e,n),ga.hasOwnProperty("hls")||Object.defineProperty(e,"hls",{get:function(){return ga.log.warn("player.tech().hls is deprecated. Use player.tech().vhs instead."),e.vhs},configurable:!0}),e.vhs.xhr=fo(),e.vhs.src(source.src,source.type),e.vhs},canPlayType:function(e,t){var n=Object(N.a)(e);if(!n)return"";var r=Pu.getOverrideNative(t);return!xu.supportsTypeNatively(n)||r?"maybe":""},getOverrideNative:function(e){void 0===e&&(e={});var t=e,n=t.vhs,r=void 0===n?{}:n,o=t.hls,l=void 0===o?{}:o,c=!(ga.browser.IS_ANY_SAFARI||ga.browser.IS_IOS),d=r.overrideNative,h=void 0===d?c:d,f=l.overrideNative;return void 0!==f&&f||h}};(Object(L.c)("avc1.4d400d,mp4a.40.2")&&ga.getTech("Html5").registerSourceHandler(Pu,0),ga.VhsHandler=ju,Object.defineProperty(ga,"HlsHandler",{get:function(){return ga.log.warn("videojs.HlsHandler is deprecated. Use videojs.VhsHandler instead."),ju},configurable:!0}),ga.VhsSourceHandler=Pu,Object.defineProperty(ga,"HlsSourceHandler",{get:function(){return ga.log.warn("videojs.HlsSourceHandler is deprecated. Use videojs.VhsSourceHandler instead."),Pu},configurable:!0}),ga.Vhs=xu,Object.defineProperty(ga,"Hls",{get:function(){return ga.log.warn("videojs.Hls is deprecated. Use videojs.Vhs instead."),xu},configurable:!0}),ga.use||(ga.registerComponent("Hls",xu),ga.registerComponent("Vhs",xu)),ga.options.vhs=ga.options.vhs||{},ga.options.hls=ga.options.hls||{},ga.getPlugin&&ga.getPlugin("reloadSourceOnError"))||(ga.registerPlugin||ga.plugin)("reloadSourceOnError",(function(e){Su(this,e)}));t.a=ga}).call(this,n(42))},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){var r=n(167),o=n(169);e.exports=function(e){return"symbol"==typeof e||o(e)&&"[object Symbol]"==r(e)}},function(e,t,n){var r=n(168).Symbol;e.exports=r},,,function(e,t,n){"use strict";var r,o=n(338),l=n(645),c=n(646),d=n(647),h=n(648),f=n(649),m=n(117),v=n(650),y=n(651),_=n(652),T=n(653),w=n(654),S=n(655),k=n(656),x=n(657),C=Function,A=function(e){try{return C('"use strict"; return ('+e+").constructor;")()}catch(e){}},E=n(339),D=n(660),I=function(){throw new m},j=E?function(){try{return I}catch(e){try{return E(arguments,"callee").get}catch(e){return I}}}():I,P=n(661)(),O=n(663),M=n(341),L=n(340),N=n(343),R=n(227),B={},F="undefined"!=typeof Uint8Array&&O?O(Uint8Array):r,U={__proto__:null,"%AggregateError%":"undefined"==typeof AggregateError?r:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?r:ArrayBuffer,"%ArrayIteratorPrototype%":P&&O?O([][Symbol.iterator]()):r,"%AsyncFromSyncIteratorPrototype%":r,"%AsyncFunction%":B,"%AsyncGenerator%":B,"%AsyncGeneratorFunction%":B,"%AsyncIteratorPrototype%":B,"%Atomics%":"undefined"==typeof Atomics?r:Atomics,"%BigInt%":"undefined"==typeof BigInt?r:BigInt,"%BigInt64Array%":"undefined"==typeof BigInt64Array?r:BigInt64Array,"%BigUint64Array%":"undefined"==typeof BigUint64Array?r:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?r:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":l,"%eval%":eval,"%EvalError%":c,"%Float16Array%":"undefined"==typeof Float16Array?r:Float16Array,"%Float32Array%":"undefined"==typeof Float32Array?r:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?r:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?r:FinalizationRegistry,"%Function%":C,"%GeneratorFunction%":B,"%Int8Array%":"undefined"==typeof Int8Array?r:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?r:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?r:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":P&&O?O(O([][Symbol.iterator]())):r,"%JSON%":"object"==typeof JSON?JSON:r,"%Map%":"undefined"==typeof Map?r:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&P&&O?O((new Map)[Symbol.iterator]()):r,"%Math%":Math,"%Number%":Number,"%Object%":o,"%Object.getOwnPropertyDescriptor%":E,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?r:Promise,"%Proxy%":"undefined"==typeof Proxy?r:Proxy,"%RangeError%":d,"%ReferenceError%":h,"%Reflect%":"undefined"==typeof Reflect?r:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?r:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&P&&O?O((new Set)[Symbol.iterator]()):r,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?r:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":P&&O?O(""[Symbol.iterator]()):r,"%Symbol%":P?Symbol:r,"%SyntaxError%":f,"%ThrowTypeError%":j,"%TypedArray%":F,"%TypeError%":m,"%Uint8Array%":"undefined"==typeof Uint8Array?r:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?r:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?r:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?r:Uint32Array,"%URIError%":v,"%WeakMap%":"undefined"==typeof WeakMap?r:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?r:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?r:WeakSet,"%Function.prototype.call%":R,"%Function.prototype.apply%":N,"%Object.defineProperty%":D,"%Object.getPrototypeOf%":M,"%Math.abs%":y,"%Math.floor%":_,"%Math.max%":T,"%Math.min%":w,"%Math.pow%":S,"%Math.round%":k,"%Math.sign%":x,"%Reflect.getPrototypeOf%":L};if(O)try{null.error}catch(e){var V=O(O(e));U["%Error.prototype%"]=V}var H=function e(t){var n;if("%AsyncFunction%"===t)n=A("async function () {}");else if("%GeneratorFunction%"===t)n=A("function* () {}");else if("%AsyncGeneratorFunction%"===t)n=A("async function* () {}");else if("%AsyncGenerator%"===t){var r=e("%AsyncGeneratorFunction%");r&&(n=r.prototype)}else if("%AsyncIteratorPrototype%"===t){var o=e("%AsyncGenerator%");o&&O&&(n=O(o.prototype))}return U[t]=n,n},z={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},$=n(176),W=n(668),G=$.call(R,Array.prototype.concat),Y=$.call(N,Array.prototype.splice),X=$.call(R,String.prototype.replace),K=$.call(R,String.prototype.slice),Q=$.call(R,RegExp.prototype.exec),J=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,Z=/\\(\\)?/g,ee=function(e,t){var n,r=e;if(W(z,r)&&(r="%"+(n=z[r])[0]+"%"),W(U,r)){var o=U[r];if(o===B&&(o=H(r)),void 0===o&&!t)throw new m("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:n,name:r,value:o}}throw new f("intrinsic "+e+" does not exist!")};e.exports=function(e,t){if("string"!=typeof e||0===e.length)throw new m("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new m('"allowMissing" argument must be a boolean');if(null===Q(/^%?[^%]*%?$/,e))throw new f("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=function(e){var t=K(e,0,1),n=K(e,-1);if("%"===t&&"%"!==n)throw new f("invalid intrinsic syntax, expected closing `%`");if("%"===n&&"%"!==t)throw new f("invalid intrinsic syntax, expected opening `%`");var r=[];return X(e,J,(function(e,t,n,o){r[r.length]=n?X(o,Z,"$1"):t||e})),r}(e),r=n.length>0?n[0]:"",o=ee("%"+r+"%",t),l=o.name,c=o.value,d=!1,h=o.alias;h&&(r=h[0],Y(n,G([0,1],h)));for(var i=1,v=!0;i=n.length){var desc=E(c,y);c=(v=!!desc)&&"get"in desc&&!("originalValue"in desc.get)?desc.get:c[y]}else v=W(c,y),c=c[y];v&&!d&&(U[l]=c)}}return c}},function(e,t,n){"use strict";e.exports=Function.prototype.call},function(e,t,n){"use strict";var r=String.prototype.replace,o=/%20/g,l="RFC1738",c="RFC3986";e.exports={default:c,formatters:{RFC1738:function(e){return r.call(e,o,"+")},RFC3986:function(e){return String(e)}},RFC1738:l,RFC3986:c}},function(e,t,n){"use strict";var r=function(e){return function(e){return!!e&&"object"==typeof e}(e)&&!function(e){var t=Object.prototype.toString.call(e);return"[object RegExp]"===t||"[object Date]"===t||function(e){return e.$$typeof===o}(e)}(e)};var o="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function l(e,t){return!1!==t.clone&&t.isMergeableObject(e)?m((n=e,Array.isArray(n)?[]:{}),e,t):e;var n}function c(e,source,t){return e.concat(source).map((function(element){return l(element,t)}))}function d(e){return Object.keys(e).concat(function(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter((function(symbol){return Object.propertyIsEnumerable.call(e,symbol)})):[]}(e))}function h(object,e){try{return e in object}catch(e){return!1}}function f(e,source,t){var n={};return t.isMergeableObject(e)&&d(e).forEach((function(r){n[r]=l(e[r],t)})),d(source).forEach((function(r){(function(e,t){return h(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))})(e,r)||(h(e,r)&&t.isMergeableObject(source[r])?n[r]=function(e,t){if(!t.customMerge)return m;var n=t.customMerge(e);return"function"==typeof n?n:m}(r,t)(e[r],source[r],t):n[r]=l(source[r],t))})),n}function m(e,source,t){(t=t||{}).arrayMerge=t.arrayMerge||c,t.isMergeableObject=t.isMergeableObject||r,t.cloneUnlessOtherwiseSpecified=l;var n=Array.isArray(source);return n===Array.isArray(e)?n?t.arrayMerge(e,source,t):f(e,source,t):l(source,t)}m.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce((function(e,n){return m(e,n,t)}),{})};var v=m;e.exports=v},,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";var r={name:"ClientOnly",functional:!0,props:{placeholder:String,placeholderTag:{type:String,default:"div"}},render:function(e,t){var n=t.parent,r=t.slots,o=t.props,l=r(),c=l.default;void 0===c&&(c=[]);var d=l.placeholder;return n._isMounted?c:(n.$once("hook:mounted",(function(){n.$forceUpdate()})),o.placeholderTag&&(o.placeholder||d)?e(o.placeholderTag,{class:["client-only-placeholder"]},o.placeholder||d):c.length>0?c.map((function(){return e(!1)})):e(!1))}};e.exports=r},function(e,t,n){"use strict";var r=n(0),o=n(60),l=n(549);h.httpHandler=n(550);var c=function(e){var t={};return e?(e.trim().split("\n").forEach((function(e){var n=e.indexOf(":"),r=e.slice(0,n).trim().toLowerCase(),o=e.slice(n+1).trim();void 0===t[r]?t[r]=o:Array.isArray(t[r])?t[r].push(o):t[r]=[t[r],o]})),t):t};function d(e,t,n){var r=e;return l(t)?(n=t,"string"==typeof e&&(r={uri:e})):r=o({},t,{uri:e}),r.callback=n,r}function h(e,t,n){return f(t=d(e,t,n))}function f(e){if(void 0===e.callback)throw new Error("callback argument missing");var t=!1,n=function(n,r,body){t||(t=!0,e.callback(n,r,body))};function r(){var body=void 0;if(body=m.response?m.response:m.responseText||function(e){try{if("document"===e.responseType)return e.responseXML;var t=e.responseXML&&"parsererror"===e.responseXML.documentElement.nodeName;if(""===e.responseType&&!t)return e.responseXML}catch(e){}return null}(m),S)try{body=JSON.parse(body)}catch(e){}return body}function o(e){return clearTimeout(v),e instanceof Error||(e=new Error(""+(e||"Unknown XMLHttpRequest Error"))),e.statusCode=0,n(e,k)}function l(){if(!f){var t;clearTimeout(v),t=e.useXDR&&void 0===m.status?200:1223===m.status?204:m.status;var o=k,l=null;return 0!==t?(o={body:r(),statusCode:t,method:_,headers:{},url:y,rawRequest:m},m.getAllResponseHeaders&&(o.headers=c(m.getAllResponseHeaders()))):l=new Error("Internal XMLHttpRequest Error"),n(l,o,o.body)}}var d,f,m=e.xhr||null;m||(m=e.cors||e.useXDR?new h.XDomainRequest:new h.XMLHttpRequest);var v,y=m.url=e.uri||e.url,_=m.method=e.method||"GET",body=e.body||e.data,T=m.headers=e.headers||{},w=!!e.sync,S=!1,k={body:void 0,headers:{},statusCode:0,method:_,url:y,rawRequest:m};if("json"in e&&!1!==e.json&&(S=!0,T.accept||T.Accept||(T.Accept="application/json"),"GET"!==_&&"HEAD"!==_&&(T["content-type"]||T["Content-Type"]||(T["Content-Type"]="application/json"),body=JSON.stringify(!0===e.json?body:e.json))),m.onreadystatechange=function(){4===m.readyState&&setTimeout(l,0)},m.onload=l,m.onerror=o,m.onprogress=function(){},m.onabort=function(){f=!0},m.ontimeout=o,m.open(_,y,!w,e.username,e.password),w||(m.withCredentials=!!e.withCredentials),!w&&e.timeout>0&&(v=setTimeout((function(){if(!f){f=!0,m.abort("timeout");var e=new Error("XMLHttpRequest timeout");e.code="ETIMEDOUT",o(e)}}),e.timeout)),m.setRequestHeader)for(d in T)T.hasOwnProperty(d)&&m.setRequestHeader(d,T[d]);else if(e.headers&&!function(e){for(var i in e)if(e.hasOwnProperty(i))return!1;return!0}(e.headers))throw new Error("Headers cannot be set on an XDomainRequest object");return"responseType"in e&&(m.responseType=e.responseType),"beforeSend"in e&&"function"==typeof e.beforeSend&&e.beforeSend(m),m.send(body||null),m}e.exports=h,e.exports.default=h,h.XMLHttpRequest=r.XMLHttpRequest||function(){},h.XDomainRequest="withCredentials"in new h.XMLHttpRequest?h.XMLHttpRequest:r.XDomainRequest,function(e,t){for(var i=0;i0?n=h:t=h}while(Math.abs(d)>o&&++i=r?w(t,m,e,n):0===v?m:T(t,o,o+d,e,n)}return function(e){return 0===e?0:1===e?1:y(f(e),t,o)}},x={ease:[.25,.1,.25,1],linear:[0,0,1,1],"ease-in":[.42,0,1,1],"ease-out":[0,0,.58,1],"ease-in-out":[.42,0,.58,1]},C=!1;try{var A=Object.defineProperty({},"passive",{get:function(){C=!0}});window.addEventListener("test",null,A)}catch(e){}var E={$:function(e){return"string"!=typeof e?e:document.querySelector(e)},on:function(element,e,t){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{passive:!1};e instanceof Array||(e=[e]);for(var i=0;i2&&void 0!==arguments[2]?arguments[2]:{};if("object"===e(P)?O=P:"number"==typeof P&&(O.duration=P),!(element=E.$(T)))return console.warn("[vue-scrollto warn]: Trying to scroll to an element that is not on the page: "+T);if(t=E.$(O.container||I.container),n=O.hasOwnProperty("duration")?O.duration:I.duration,o=O.hasOwnProperty("lazy")?O.lazy:I.lazy,r=O.easing||I.easing,l=O.hasOwnProperty("offset")?O.offset:I.offset,c=O.hasOwnProperty("force")?!1!==O.force:I.force,d=O.hasOwnProperty("cancelable")?!1!==O.cancelable:I.cancelable,h=O.onStart||I.onStart,f=O.onDone||I.onDone,m=O.onCancel||I.onCancel,v=void 0===O.x?I.x:O.x,y=void 0===O.y?I.y:O.y,"function"==typeof l&&(l=l(element,t)),_=U(t),w=F(t),V(),j=!1,!c){var N="body"===t.tagName.toLowerCase()?document.documentElement.clientHeight||window.innerHeight:t.offsetHeight,R=w,z=R+N,$=S-l,W=$+element.offsetHeight;if($>=R&&W<=z)return void(f&&f(element))}if(h&&h(element),A||C)return"string"==typeof r&&(r=x[r]||x.ease),L=k.apply(k,r),E.on(t,D,B,{passive:!0}),window.requestAnimationFrame(H),function(){M=null,j=!0};f&&f(element)}return W},O=P(),M=[];function L(e){for(var i=0;i=0))throw new N(M,new Error(e.tagName+"@"+n));for(var r=t.length-1;i"==e&&">")||"&"==e&&"&"||'"'==e&&"""||"&#"+e.charCodeAt()+";"}function Y(e,t){if(t(e))return!0;if(e=e.firstChild)do{if(Y(e,t))return!0}while(e=e.nextSibling)}function X(){this.ownerDocument=this}function K(e,t,n,r){e&&e._inc++,n.namespaceURI===l.XMLNS&&delete t._nsMap[n.prefix?n.localName:""]}function Q(e,t,n){if(e&&e._inc){e._inc++;var r=t.childNodes;if(n)r[r.length++]=n;else{for(var o=t.firstChild,i=0;o;)r[i++]=o,o=o.nextSibling;r.length=i,delete r[r.length]}}}function J(e,t){var n=t.previousSibling,r=t.nextSibling;return n?n.nextSibling=r:e.firstChild=r,r?r.previousSibling=n:e.lastChild=n,t.parentNode=null,t.previousSibling=null,t.nextSibling=null,Q(e.ownerDocument,e),t}function Z(e){return e&&e.nodeType===W.DOCUMENT_TYPE_NODE}function ee(e){return e&&e.nodeType===W.ELEMENT_NODE}function te(e){return e&&e.nodeType===W.TEXT_NODE}function ne(e,t){var n=e.childNodes||[];if(o(n,ee)||Z(t))return!1;var r=o(n,Z);return!(t&&r&&n.indexOf(r)>n.indexOf(t))}function ie(e,t){var n=e.childNodes||[];if(o(n,(function(e){return ee(e)&&e!==t})))return!1;var r=o(n,Z);return!(t&&r&&n.indexOf(r)>n.indexOf(t))}function re(e,t,n){if(!function(e){return e&&(e.nodeType===W.DOCUMENT_NODE||e.nodeType===W.DOCUMENT_FRAGMENT_NODE||e.nodeType===W.ELEMENT_NODE)}(e))throw new N(O,"Unexpected parent node type "+e.nodeType);if(n&&n.parentNode!==e)throw new N(M,"child not in parent");if(!function(e){return e&&(ee(e)||te(e)||Z(e)||e.nodeType===W.DOCUMENT_FRAGMENT_NODE||e.nodeType===W.COMMENT_NODE||e.nodeType===W.PROCESSING_INSTRUCTION_NODE)}(t)||Z(t)&&e.nodeType!==W.DOCUMENT_NODE)throw new N(O,"Unexpected node type "+t.nodeType+" for parent node type "+e.nodeType)}function ae(e,t,n){var r=e.childNodes||[],l=t.childNodes||[];if(t.nodeType===W.DOCUMENT_FRAGMENT_NODE){var c=l.filter(ee);if(c.length>1||o(l,te))throw new N(O,"More than one element or text in fragment");if(1===c.length&&!ne(e,n))throw new N(O,"Element in fragment can not be inserted before doctype")}if(ee(t)&&!ne(e,n))throw new N(O,"Only one element can be added and only after doctype");if(Z(t)){if(o(r,Z))throw new N(O,"Only one doctype is allowed");var d=o(r,ee);if(n&&r.indexOf(d)1||o(l,te))throw new N(O,"More than one element or text in fragment");if(1===c.length&&!ie(e,n))throw new N(O,"Element in fragment can not be inserted before doctype")}if(ee(t)&&!ie(e,n))throw new N(O,"Only one element can be added and only after doctype");if(Z(t)){if(o(r,(function(e){return Z(e)&&e!==n})))throw new N(O,"Only one doctype is allowed");var d=o(r,ee);if(n&&r.indexOf(d)=0;I--){if(""===(j=o[I]).prefix&&j.namespace===e.namespaceURI){v=j.namespace;break}}if(v!==e.namespaceURI)for(I=o.length-1;I>=0;I--){var j;if((j=o[I]).namespace===e.namespaceURI){j.prefix&&(m=j.prefix+":"+f);break}}}t.push("<",m);for(var i=0;i"),n&&/^script$/i.test(f))for(;h;)h.data?t.push(h.data):ke(h,t,n,r,o.slice()),h=h.nextSibling;else for(;h;)ke(h,t,n,r,o.slice()),h=h.nextSibling;t.push("")}else t.push("/>");return;case A:case D:for(h=e.firstChild;h;)ke(h,t,n,r,o.slice()),h=h.nextSibling;return;case _:return Se(t,e.name,e.value);case T:return t.push(e.data.replace(/[<&>]/g,G));case w:return t.push("");case C:return t.push("\x3c!--",e.data,"--\x3e");case E:var L=e.publicId,N=e.systemId;if(t.push("");else if(N&&"."!=N)t.push(" SYSTEM ",N,">");else{var sub=e.internalSubset;sub&&t.push(" [",sub,"]"),t.push(">")}return;case x:return t.push("");case S:return t.push("&",e.nodeName,";");default:t.push("??",e.nodeName)}}function xe(e,t,n){var r;switch(t.nodeType){case y:(r=t.cloneNode(!1)).ownerDocument=e;case D:break;case _:n=!0}if(r||(r=t.cloneNode(!1)),r.ownerDocument=e,r.parentNode=null,n)for(var o=t.firstChild;o;)r.appendChild(xe(e,o,n)),o=o.nextSibling;return r}function Ce(e,t,n){var r=new t.constructor;for(var o in t)if(Object.prototype.hasOwnProperty.call(t,o)){var l=t[o];"object"!=typeof l&&l!=r[o]&&(r[o]=l)}switch(t.childNodes&&(r.childNodes=new R),r.ownerDocument=e,r.nodeType){case y:var c=t.attributes,d=r.attributes=new U,h=c.length;d._ownerElement=r;for(var i=0;i=0&&e0},lookupPrefix:function(e){for(var t=this;t;){var map=t._nsMap;if(map)for(var n in map)if(Object.prototype.hasOwnProperty.call(map,n)&&map[n]===e)return n;t=t.nodeType==_?t.ownerDocument:t.parentNode}return null},lookupNamespaceURI:function(e){for(var t=this;t;){var map=t._nsMap;if(map&&Object.prototype.hasOwnProperty.call(map,e))return map[e];t=t.nodeType==_?t.ownerDocument:t.parentNode}return null},isDefaultNamespace:function(e){return null==this.lookupPrefix(e)}},f(v,W),f(v,W.prototype),X.prototype={nodeName:"#document",nodeType:A,doctype:null,documentElement:null,_inc:1,insertBefore:function(e,t){if(e.nodeType==D){for(var n=e.firstChild;n;){var r=n.nextSibling;this.insertBefore(n,t),n=r}return e}return se(this,e,t),e.ownerDocument=this,null===this.documentElement&&e.nodeType===y&&(this.documentElement=e),e},removeChild:function(e){return this.documentElement==e&&(this.documentElement=null),J(this,e)},replaceChild:function(e,t){se(this,e,t,oe),e.ownerDocument=this,t&&this.removeChild(t),ee(e)&&(this.documentElement=e)},importNode:function(e,t){return xe(this,e,t)},getElementById:function(e){var t=null;return Y(this.documentElement,(function(n){if(n.nodeType==y&&n.getAttribute("id")==e)return t=n,!0})),t},getElementsByClassName:function(e){var t=h(e);return new B(this,(function(base){var n=[];return t.length>0&&Y(base.documentElement,(function(r){if(r!==base&&r.nodeType===y){var o=r.getAttribute("class");if(o){var l=e===o;if(!l){var c=h(o);l=t.every((d=c,function(element){return d&&-1!==d.indexOf(element)}))}l&&n.push(r)}}var d})),n}))},createElement:function(e){var t=new ue;return t.ownerDocument=this,t.nodeName=e,t.tagName=e,t.localName=e,t.childNodes=new R,(t.attributes=new U)._ownerElement=t,t},createDocumentFragment:function(){var e=new ye;return e.ownerDocument=this,e.childNodes=new R,e},createTextNode:function(data){var e=new de;return e.ownerDocument=this,e.appendData(data),e},createComment:function(data){var e=new he;return e.ownerDocument=this,e.appendData(data),e},createCDATASection:function(data){var e=new fe;return e.ownerDocument=this,e.appendData(data),e},createProcessingInstruction:function(e,data){var t=new be;return t.ownerDocument=this,t.tagName=t.nodeName=t.target=e,t.nodeValue=t.data=data,t},createAttribute:function(e){var t=new le;return t.ownerDocument=this,t.name=e,t.nodeName=e,t.localName=e,t.specified=!0,t},createEntityReference:function(e){var t=new ve;return t.ownerDocument=this,t.nodeName=e,t},createElementNS:function(e,t){var n=new ue,r=t.split(":"),o=n.attributes=new U;return n.childNodes=new R,n.ownerDocument=this,n.nodeName=t,n.tagName=t,n.namespaceURI=e,2==r.length?(n.prefix=r[0],n.localName=r[1]):n.localName=t,o._ownerElement=n,n},createAttributeNS:function(e,t){var n=new le,r=t.split(":");return n.ownerDocument=this,n.nodeName=t,n.name=t,n.namespaceURI=e,n.specified=!0,2==r.length?(n.prefix=r[0],n.localName=r[1]):n.localName=t,n}},m(X,W),ue.prototype={nodeType:y,hasAttribute:function(e){return null!=this.getAttributeNode(e)},getAttribute:function(e){var t=this.getAttributeNode(e);return t&&t.value||""},getAttributeNode:function(e){return this.attributes.getNamedItem(e)},setAttribute:function(e,t){var n=this.ownerDocument.createAttribute(e);n.value=n.nodeValue=""+t,this.setAttributeNode(n)},removeAttribute:function(e){var t=this.getAttributeNode(e);t&&this.removeAttributeNode(t)},appendChild:function(e){return e.nodeType===D?this.insertBefore(e,null):function(e,t){return t.parentNode&&t.parentNode.removeChild(t),t.parentNode=e,t.previousSibling=e.lastChild,t.nextSibling=null,t.previousSibling?t.previousSibling.nextSibling=t:e.firstChild=t,e.lastChild=t,Q(e.ownerDocument,e,t),t}(this,e)},setAttributeNode:function(e){return this.attributes.setNamedItem(e)},setAttributeNodeNS:function(e){return this.attributes.setNamedItemNS(e)},removeAttributeNode:function(e){return this.attributes.removeNamedItem(e.nodeName)},removeAttributeNS:function(e,t){var n=this.getAttributeNodeNS(e,t);n&&this.removeAttributeNode(n)},hasAttributeNS:function(e,t){return null!=this.getAttributeNodeNS(e,t)},getAttributeNS:function(e,t){var n=this.getAttributeNodeNS(e,t);return n&&n.value||""},setAttributeNS:function(e,t,n){var r=this.ownerDocument.createAttributeNS(e,t);r.value=r.nodeValue=""+n,this.setAttributeNode(r)},getAttributeNodeNS:function(e,t){return this.attributes.getNamedItemNS(e,t)},getElementsByTagName:function(e){return new B(this,(function(base){var t=[];return Y(base,(function(n){n===base||n.nodeType!=y||"*"!==e&&n.tagName!=e||t.push(n)})),t}))},getElementsByTagNameNS:function(e,t){return new B(this,(function(base){var n=[];return Y(base,(function(r){r===base||r.nodeType!==y||"*"!==e&&r.namespaceURI!==e||"*"!==t&&r.localName!=t||n.push(r)})),n}))}},X.prototype.getElementsByTagName=ue.prototype.getElementsByTagName,X.prototype.getElementsByTagNameNS=ue.prototype.getElementsByTagNameNS,m(ue,W),le.prototype.nodeType=_,m(le,W),ce.prototype={data:"",substringData:function(e,t){return this.data.substring(e,e+t)},appendData:function(text){text=this.data+text,this.nodeValue=this.data=text,this.length=text.length},insertData:function(e,text){this.replaceData(e,0,text)},appendChild:function(e){throw new Error(P[O])},deleteData:function(e,t){this.replaceData(e,t,"")},replaceData:function(e,t,text){text=this.data.substring(0,e)+text+this.data.substring(e+t),this.nodeValue=this.data=text,this.length=text.length}},m(ce,W),de.prototype={nodeName:"#text",nodeType:T,splitText:function(e){var text=this.data,t=text.substring(e);text=text.substring(0,e),this.data=this.nodeValue=text,this.length=text.length;var n=this.ownerDocument.createTextNode(t);return this.parentNode&&this.parentNode.insertBefore(n,this.nextSibling),n}},m(de,ce),he.prototype={nodeName:"#comment",nodeType:C},m(he,ce),fe.prototype={nodeName:"#cdata-section",nodeType:w},m(fe,ce),pe.prototype.nodeType=E,m(pe,W),me.prototype.nodeType=I,m(me,W),ge.prototype.nodeType=k,m(ge,W),ve.prototype.nodeType=S,m(ve,W),ye.prototype.nodeName="#document-fragment",ye.prototype.nodeType=D,m(ye,W),be.prototype.nodeType=x,m(be,W),_e.prototype.serializeToString=function(e,t,n){return Te.call(e,t,n)},W.prototype.toString=Te;try{if(Object.defineProperty){function Ee(e){switch(e.nodeType){case y:case D:var t=[];for(e=e.firstChild;e;)7!==e.nodeType&&8!==e.nodeType&&t.push(Ee(e)),e=e.nextSibling;return t.join("");default:return e.nodeValue}}Object.defineProperty(B.prototype,"length",{get:function(){return F(this),this.$$length}}),Object.defineProperty(W.prototype,"textContent",{get:function(){return Ee(this)},set:function(data){switch(this.nodeType){case y:case D:for(;this.firstChild;)this.removeChild(this.firstChild);(data||String(data))&&this.appendChild(this.ownerDocument.createTextNode(data));break;default:this.data=data,this.value=data,this.nodeValue=data}}}),Ae=function(object,e,t){object["$$"+e]=t}}}catch(De){}t.DocumentType=pe,t.DOMException=N,t.DOMImplementation=$,t.Element=ue,t.Node=W,t.NodeList=R,t.XMLSerializer=_e},,,,,,,,,,,,,function(e,t){e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},function(e,t,n){"use strict";var r=n(226),o=n(344),l=n(175),c=n(117),d=r("%Map%",!0),h=o("Map.prototype.get",!0),f=o("Map.prototype.set",!0),m=o("Map.prototype.has",!0),v=o("Map.prototype.delete",!0),y=o("Map.prototype.size",!0);e.exports=!!d&&function(){var e,t={assert:function(e){if(!t.has(e))throw new c("Side channel does not contain "+l(e))},delete:function(t){if(e){var n=v(e,t);return 0===y(e)&&(e=void 0),n}return!1},get:function(t){if(e)return h(e,t)},has:function(t){return!!e&&m(e,t)},set:function(t,n){e||(e=new d),f(e,t,n)}};return t}},function(e,t,n){"use strict";e.exports=Object},function(e,t,n){"use strict";var r=n(659);if(r)try{r([],"length")}catch(e){r=null}e.exports=r},function(e,t,n){"use strict";e.exports="undefined"!=typeof Reflect&&Reflect.getPrototypeOf||null},function(e,t,n){"use strict";var r=n(338);e.exports=r.getPrototypeOf||null},function(e,t,n){"use strict";var r=n(176),o=n(117),l=n(227),c=n(666);e.exports=function(e){if(e.length<1||"function"!=typeof e[0])throw new o("a function is required");return c(r,l,e)}},function(e,t,n){"use strict";e.exports=Function.prototype.apply},function(e,t,n){"use strict";var r=n(226),o=n(342),l=o([r("%String.prototype.indexOf%")]);e.exports=function(e,t){var n=r(e,!!t);return"function"==typeof n&&l(e,".prototype.")>-1?o([n]):n}},function(e,t,n){"use strict";var r=n(228),o=Object.prototype.hasOwnProperty,l=Array.isArray,c=function(){for(var e=[],i=0;i<256;++i)e.push("%"+((i<16?"0":"")+i.toString(16)).toUpperCase());return e}(),d=function(source,e){for(var t=e&&e.plainObjects?{__proto__:null}:{},i=0;i1;){var t=e.pop(),n=t.obj[t.prop];if(l(n)){for(var r=[],o=0;o=h?d.slice(m,m+h):d,y=[],i=0;i=48&&_<=57||_>=65&&_<=90||_>=97&&_<=122||l===r.RFC1738&&(40===_||41===_)?y[y.length]=v.charAt(i):_<128?y[y.length]=c[_]:_<2048?y[y.length]=c[192|_>>6]+c[128|63&_]:_<55296||_>=57344?y[y.length]=c[224|_>>12]+c[128|_>>6&63]+c[128|63&_]:(i+=1,_=65536+((1023&_)<<10|1023&v.charCodeAt(i)),y[y.length]=c[240|_>>18]+c[128|_>>12&63]+c[128|_>>6&63]+c[128|63&_])}f+=y.join("")}return f},isBuffer:function(e){return!(!e||"object"!=typeof e)&&!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},isRegExp:function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},maybeMap:function(e,t){if(l(e)){for(var n=[],i=0;i0)&&e.target.hydrate&&e.target.hydrate()}))}),e);return r.set(t,n),n}(!0!==this.whenVisible?this.whenVisible:void 0);if(!t)return void this.hydrate();this.$el.hydrate=this.hydrate;var n=function(){return t.unobserve(e.$el)};return this.cleanupHandlers.push(n),this.hydrationPromise.then(n),void t.observe(this.$el)}if(this.whenIdle){if(!("requestIdleCallback"in window)||!("requestAnimationFrame"in window))return void this.hydrate();var o=requestIdleCallback((function(){requestAnimationFrame(e.hydrate)}),{timeout:this.idleTimeout}),l=function(){return cancelIdleCallback(o)};this.cleanupHandlers.push(l),this.hydrationPromise.then(l)}if(this.interactionEvents&&this.interactionEvents.length){var c={capture:!0,once:!0,passive:!0};this.interactionEvents.forEach((function(t){e.$el.addEventListener(t,e.hydrate,c);e.cleanupHandlers.push((function(){e.$el.removeEventListener(t,e.hydrate,c)}))}))}}}else this.hydrate()},methods:{cleanup:function(){this.cleanupHandlers.forEach((function(e){return e()}))}},render:function(e){return e(this.Nonce,{attrs:this.$attrs,on:this.$listeners,scopedSlots:this.$scopedSlots},this.$slots.default)}}]},e)}var c=l({render:function(){return this.$slots.default}},{props:{idleTimeout:{default:2e3,type:Number},never:{type:Boolean},onInteraction:{type:[Array,Boolean,String]},triggerHydration:{default:!1,type:Boolean},whenIdle:{type:Boolean},whenVisible:{type:[Boolean,Object]}},computed:{interactionEvents:function(){return this.onInteraction?!0===this.onInteraction?["focus"]:Array.isArray(this.onInteraction)?this.onInteraction:[this.onInteraction]:[]}},watch:{triggerHydration:{immediate:!0,handler:function(e){e&&this.hydrate()}}}});t.a=c},function(e,t){e.exports=function(e,t){var n,r=null;try{n=JSON.parse(e,t)}catch(e){r=e}return[r,n]}},,function(e,t,n){var r=n(323);t.DOMImplementation=r.DOMImplementation,t.XMLSerializer=r.XMLSerializer,t.DOMParser=n(559).DOMParser},function(e,t,n){var r=n(562).getUint64;e.exports=function(data){var view=new DataView(data.buffer,data.byteOffset,data.byteLength),e={version:data[0],flags:new Uint8Array(data.subarray(1,4)),references:[],referenceId:view.getUint32(4),timescale:view.getUint32(8)},i=12;0===e.version?(e.earliestPresentationTime=view.getUint32(i),e.firstOffset=view.getUint32(i+4),i+=8):(e.earliestPresentationTime=r(data.subarray(i)),e.firstOffset=r(data.subarray(i+8)),i+=16),i+=2;var t=view.getUint16(i);for(i+=2;t>0;i+=12,t--)e.references.push({referenceType:(128&data[i])>>>7,referencedSize:2147483647&view.getUint32(i),subsegmentDuration:view.getUint32(i+4),startsWithSap:!!(128&data[i+8]),sapType:(112&data[i+8])>>>4,sapDeltaTime:268435455&view.getUint32(i+8)});return e}},,function(e,t,n){(function(n){var r;!function(){"use strict";var o=function(){this.init()};o.prototype={init:function(){var e=this||l;return e._counter=1e3,e._html5AudioPool=[],e.html5PoolSize=10,e._codecs={},e._howls=[],e._muted=!1,e._volume=1,e._canPlayEvent="canplaythrough",e._navigator="undefined"!=typeof window&&window.navigator?window.navigator:null,e.masterGain=null,e.noAudio=!1,e.usingWebAudio=!0,e.autoSuspend=!0,e.ctx=null,e.autoUnlock=!0,e._setup(),e},volume:function(e){var t=this||l;if(e=parseFloat(e),t.ctx||_(),void 0!==e&&e>=0&&e<=1){if(t._volume=e,t._muted)return t;t.usingWebAudio&&t.masterGain.gain.setValueAtTime(e,l.ctx.currentTime);for(var i=0;i=0;i--)e._howls[i].unload();return e.usingWebAudio&&e.ctx&&void 0!==e.ctx.close&&(e.ctx.close(),e.ctx=null,_()),e},codecs:function(e){return(this||l)._codecs[e.replace(/^x-/,"")]},_setup:function(){var e=this||l;if(e.state=e.ctx&&e.ctx.state||"suspended",e._autoSuspend(),!e.usingWebAudio)if("undefined"!=typeof Audio)try{void 0===(new Audio).oncanplaythrough&&(e._canPlayEvent="canplay")}catch(t){e.noAudio=!0}else e.noAudio=!0;try{(new Audio).muted&&(e.noAudio=!0)}catch(e){}return e.noAudio||e._setupCodecs(),e},_setupCodecs:function(){var e=this||l,t=null;try{t="undefined"!=typeof Audio?new Audio:null}catch(t){return e}if(!t||"function"!=typeof t.canPlayType)return e;var n=t.canPlayType("audio/mpeg;").replace(/^no$/,""),r=e._navigator?e._navigator.userAgent:"",o=r.match(/OPR\/(\d+)/g),c=o&&parseInt(o[0].split("/")[1],10)<33,d=-1!==r.indexOf("Safari")&&-1===r.indexOf("Chrome"),h=r.match(/Version\/(.*?) /),f=d&&h&&parseInt(h[1],10)<15;return e._codecs={mp3:!(c||!n&&!t.canPlayType("audio/mp3;").replace(/^no$/,"")),mpeg:!!n,opus:!!t.canPlayType('audio/ogg; codecs="opus"').replace(/^no$/,""),ogg:!!t.canPlayType('audio/ogg; codecs="vorbis"').replace(/^no$/,""),oga:!!t.canPlayType('audio/ogg; codecs="vorbis"').replace(/^no$/,""),wav:!!(t.canPlayType('audio/wav; codecs="1"')||t.canPlayType("audio/wav")).replace(/^no$/,""),aac:!!t.canPlayType("audio/aac;").replace(/^no$/,""),caf:!!t.canPlayType("audio/x-caf;").replace(/^no$/,""),m4a:!!(t.canPlayType("audio/x-m4a;")||t.canPlayType("audio/m4a;")||t.canPlayType("audio/aac;")).replace(/^no$/,""),m4b:!!(t.canPlayType("audio/x-m4b;")||t.canPlayType("audio/m4b;")||t.canPlayType("audio/aac;")).replace(/^no$/,""),mp4:!!(t.canPlayType("audio/x-mp4;")||t.canPlayType("audio/mp4;")||t.canPlayType("audio/aac;")).replace(/^no$/,""),weba:!(f||!t.canPlayType('audio/webm; codecs="vorbis"').replace(/^no$/,"")),webm:!(f||!t.canPlayType('audio/webm; codecs="vorbis"').replace(/^no$/,"")),dolby:!!t.canPlayType('audio/mp4; codecs="ec-3"').replace(/^no$/,""),flac:!!(t.canPlayType("audio/x-flac;")||t.canPlayType("audio/flac;")).replace(/^no$/,"")},e},_unlockAudio:function(){var e=this||l;if(!e._audioUnlocked&&e.ctx){e._audioUnlocked=!1,e.autoUnlock=!1,e._mobileUnloaded||44100===e.ctx.sampleRate||(e._mobileUnloaded=!0,e.unload()),e._scratchBuffer=e.ctx.createBuffer(1,1,22050);var t=function(n){for(;e._html5AudioPool.length0?c._seek:n._sprite[e][0]/1e3),f=Math.max(0,(n._sprite[e][0]+n._sprite[e][1])/1e3-h),m=1e3*f/Math.abs(c._rate),v=n._sprite[e][0]/1e3,y=(n._sprite[e][0]+n._sprite[e][1])/1e3;c._sprite=e,c._ended=!1;var _=function(){c._paused=!1,c._seek=h,c._start=v,c._stop=y,c._loop=!(!c._loop&&!n._sprite[e][2])};if(!(h>=y)){var T=c._node;if(n._webAudio){var w=function(){n._playLock=!1,_(),n._refreshBuffer(c);var e=c._muted||n._muted?0:c._volume;T.gain.setValueAtTime(e,l.ctx.currentTime),c._playStart=l.ctx.currentTime,void 0===T.bufferSource.start?c._loop?T.bufferSource.noteGrainOn(0,h,86400):T.bufferSource.noteGrainOn(0,h,f):c._loop?T.bufferSource.start(0,h,86400):T.bufferSource.start(0,h,f),m!==1/0&&(n._endTimers[c._id]=setTimeout(n._ended.bind(n,c),m)),t||setTimeout((function(){n._emit("play",c._id),n._loadQueue()}),0)};"running"===l.state&&"interrupted"!==l.ctx.state?w():(n._playLock=!0,n.once("resume",w),n._clearTimer(c._id))}else{var S=function(){T.currentTime=h,T.muted=c._muted||n._muted||l._muted||T.muted,T.volume=c._volume*l.volume(),T.playbackRate=c._rate;try{var r=T.play();if(r&&"undefined"!=typeof Promise&&(r instanceof Promise||"function"==typeof r.then)?(n._playLock=!0,_(),r.then((function(){n._playLock=!1,T._unlocked=!0,t?n._loadQueue():n._emit("play",c._id)})).catch((function(){n._playLock=!1,n._emit("playerror",c._id,"Playback was unable to start. This is most commonly an issue on mobile devices and Chrome where playback was not within a user interaction."),c._ended=!0,c._paused=!0}))):t||(n._playLock=!1,_(),n._emit("play",c._id)),T.playbackRate=c._rate,T.paused)return void n._emit("playerror",c._id,"Playback was unable to start. This is most commonly an issue on mobile devices and Chrome where playback was not within a user interaction.");"__default"!==e||c._loop?n._endTimers[c._id]=setTimeout(n._ended.bind(n,c),m):(n._endTimers[c._id]=function(){n._ended(c),T.removeEventListener("ended",n._endTimers[c._id],!1)},T.addEventListener("ended",n._endTimers[c._id],!1))}catch(e){n._emit("playerror",c._id,e)}};"data:audio/wav;base64,UklGRigAAABXQVZFZm10IBIAAAABAAEARKwAAIhYAQACABAAAABkYXRhAgAAAAEA"===T.src&&(T.src=n._src,T.load());var k=window&&window.ejecta||!T.readyState&&l._navigator.isCocoonJS;if(T.readyState>=3||k)S();else{n._playLock=!0,n._state="loading";var x=function(){n._state="loaded",S(),T.removeEventListener(l._canPlayEvent,x,!1)};T.addEventListener(l._canPlayEvent,x,!1),n._clearTimer(c._id)}}return c._id}n._ended(c)},pause:function(e){var t=this;if("loaded"!==t._state||t._playLock)return t._queue.push({event:"pause",action:function(){t.pause(e)}}),t;for(var n=t._getSoundIds(e),i=0;i=0?t=parseInt(o[0],10):e=parseFloat(o[0]):o.length>=2&&(e=parseFloat(o[0]),t=parseInt(o[1],10)),!(void 0!==e&&e>=0&&e<=1))return(n=t?r._soundById(t):r._sounds[0])?n._volume:0;if("loaded"!==r._state||r._playLock)return r._queue.push({event:"volume",action:function(){r.volume.apply(r,o)}}),r;void 0===t&&(r._volume=e),t=r._getSoundIds(t);for(var i=0;i0?r/f:r),v=Date.now();e._fadeTo=n,e._interval=setInterval((function(){var o=(Date.now()-v)/r;v=Date.now(),d+=h*o,d=Math.round(100*d)/100,d=h<0?Math.max(n,d):Math.min(n,d),c._webAudio?e._volume=d:c.volume(d,e._id,!0),l&&(c._volume=d),(nt&&d>=n)&&(clearInterval(e._interval),e._interval=null,e._fadeTo=null,c.volume(n,e._id),c._emit("fade",e._id))}),m)},_stopFade:function(e){var t=this,n=t._soundById(e);return n&&n._interval&&(t._webAudio&&n._node.gain.cancelScheduledValues(l.ctx.currentTime),clearInterval(n._interval),n._interval=null,t.volume(n._fadeTo,e),n._fadeTo=null,t._emit("fade",e)),t},loop:function(){var e,t,n,r=this,o=arguments;if(0===o.length)return r._loop;if(1===o.length){if("boolean"!=typeof o[0])return!!(n=r._soundById(parseInt(o[0],10)))&&n._loop;e=o[0],r._loop=e}else 2===o.length&&(e=o[0],t=parseInt(o[1],10));for(var l=r._getSoundIds(t),i=0;i=0?t=parseInt(o[0],10):e=parseFloat(o[0])}else 2===o.length&&(e=parseFloat(o[0]),t=parseInt(o[1],10));if("number"!=typeof e)return(n=r._soundById(t))?n._rate:r._rate;if("loaded"!==r._state||r._playLock)return r._queue.push({event:"rate",action:function(){r.rate.apply(r,o)}}),r;void 0===t&&(r._rate=e),t=r._getSoundIds(t);for(var i=0;i=0?t=parseInt(r[0],10):n._sounds.length&&(t=n._sounds[0]._id,e=parseFloat(r[0]))}else 2===r.length&&(e=parseFloat(r[0]),t=parseInt(r[1],10));if(void 0===t)return 0;if("number"==typeof e&&("loaded"!==n._state||n._playLock))return n._queue.push({event:"seek",action:function(){n.seek.apply(n,r)}}),n;var o=n._soundById(t);if(o){if(!("number"==typeof e&&e>=0)){if(n._webAudio){var c=n.playing(t)?l.ctx.currentTime-o._playStart:0,d=o._rateSeek?o._rateSeek-o._seek:0;return o._seek+(d+c*Math.abs(o._rate))}return o._node.currentTime}var h=n.playing(t);h&&n.pause(t,!0),o._seek=e,o._ended=!1,n._clearTimer(t),n._webAudio||!o._node||isNaN(o._node.duration)||(o._node.currentTime=e);var f=function(){h&&n.play(t,!0),n._emit("seek",t)};if(h&&!n._webAudio){var m=function(){n._playLock?setTimeout(m,0):f()};setTimeout(m,0)}else f()}return n},playing:function(e){var t=this;if("number"==typeof e){var n=t._soundById(e);return!!n&&!n._paused}for(var i=0;i=0&&l._howls.splice(n,1);var r=!0;for(i=0;i=0){r=!1;break}return h&&r&&delete h[e._src],l.noAudio=!1,e._state="unloaded",e._sounds=[],e=null,null},on:function(e,t,n,r){var o=this["_on"+e];return"function"==typeof t&&o.push(r?{id:n,fn:t,once:r}:{id:n,fn:t}),this},off:function(e,t,n){var r=this,o=r["_on"+e],i=0;if("number"==typeof t&&(n=t,t=null),t||n)for(i=0;i=0;i--)o[i].id&&o[i].id!==t&&"load"!==e||(setTimeout(function(e){e.call(this,t,n)}.bind(r,o[i].fn),0),o[i].once&&r.off(e,o[i].fn,o[i].id));return r._loadQueue(e),r},_loadQueue:function(e){var t=this;if(t._queue.length>0){var n=t._queue[0];n.event===e&&(t._queue.shift(),t._loadQueue()),e||n.action()}return t},_ended:function(e){var t=this,n=e._sprite;if(!t._webAudio&&e._node&&!e._node.paused&&!e._node.ended&&e._node.currentTime=0;i--){if(n<=t)return;e._sounds[i]._ended&&(e._webAudio&&e._sounds[i]._node&&e._sounds[i]._node.disconnect(0),e._sounds.splice(i,1),n--)}}},_getSoundIds:function(e){if(void 0===e){for(var t=[],i=0;i=0;if(!e.bufferSource)return this;if(l._scratchBuffer&&e.bufferSource&&(e.bufferSource.onended=null,e.bufferSource.disconnect(0),t))try{e.bufferSource.buffer=l._scratchBuffer}catch(e){}return e.bufferSource=null,this},_clearSound:function(e){/MSIE |Trident\//.test(l._navigator&&l._navigator.userAgent)||(e.src="data:audio/wav;base64,UklGRigAAABXQVZFZm10IBIAAAABAAEARKwAAIhYAQACABAAAABkYXRhAgAAAAEA")}};var d=function(e){this._parent=e,this.init()};d.prototype={init:function(){var e=this,t=e._parent;return e._muted=t._muted,e._loop=t._loop,e._volume=t._volume,e._rate=t._rate,e._seek=0,e._paused=!0,e._ended=!0,e._sprite="__default",e._id=++l._counter,t._sounds.push(e),e.create(),e},create:function(){var e=this,t=e._parent,n=l._muted||e._muted||e._parent._muted?0:e._volume;return t._webAudio?(e._node=void 0===l.ctx.createGain?l.ctx.createGainNode():l.ctx.createGain(),e._node.gain.setValueAtTime(n,l.ctx.currentTime),e._node.paused=!0,e._node.connect(l.masterGain)):l.noAudio||(e._node=l._obtainHtml5Audio(),e._errorFn=e._errorListener.bind(e),e._node.addEventListener("error",e._errorFn,!1),e._loadFn=e._loadListener.bind(e),e._node.addEventListener(l._canPlayEvent,e._loadFn,!1),e._endFn=e._endListener.bind(e),e._node.addEventListener("ended",e._endFn,!1),e._node.src=t._src,e._node.preload=!0===t._preload?"auto":t._preload,e._node.volume=n*l.volume(),e._node.load()),e},reset:function(){var e=this,t=e._parent;return e._muted=t._muted,e._loop=t._loop,e._volume=t._volume,e._rate=t._rate,e._seek=0,e._rateSeek=0,e._paused=!0,e._ended=!0,e._sprite="__default",e._id=++l._counter,e},_errorListener:function(){var e=this;e._parent._emit("loaderror",e._id,e._node.error?e._node.error.code:0),e._node.removeEventListener("error",e._errorFn,!1)},_loadListener:function(){var e=this,t=e._parent;t._duration=Math.ceil(10*e._node.duration)/10,0===Object.keys(t._sprite).length&&(t._sprite={__default:[0,1e3*t._duration]}),"loaded"!==t._state&&(t._state="loaded",t._emit("load"),t._loadQueue()),e._node.removeEventListener(l._canPlayEvent,e._loadFn,!1)},_endListener:function(){var e=this,t=e._parent;t._duration===1/0&&(t._duration=Math.ceil(10*e._node.duration)/10,t._sprite.__default[1]===1/0&&(t._sprite.__default[1]=1e3*t._duration),t._ended(e)),e._node.removeEventListener("ended",e._endFn,!1)}};var h={},f=function(e){var t=e._src;if(h[t])return e._duration=h[t].duration,void y(e);if(/^data:[^;]+;base64,/.test(t)){for(var data=atob(t.split(",")[1]),n=new Uint8Array(data.length),i=0;i0?(h[t._src]=e,y(t,e)):n()};"undefined"!=typeof Promise&&1===l.ctx.decodeAudioData.length?l.ctx.decodeAudioData(e).then(r).catch(n):l.ctx.decodeAudioData(e,r,n)},y=function(e,t){t&&!e._duration&&(e._duration=t.duration),0===Object.keys(e._sprite).length&&(e._sprite={__default:[0,1e3*e._duration]}),"loaded"!==e._state&&(e._state="loaded",e._emit("load"),e._loadQueue())},_=function(){if(l.usingWebAudio){try{"undefined"!=typeof AudioContext?l.ctx=new AudioContext:"undefined"!=typeof webkitAudioContext?l.ctx=new webkitAudioContext:l.usingWebAudio=!1}catch(e){l.usingWebAudio=!1}l.ctx||(l.usingWebAudio=!1);var e=/iP(hone|od|ad)/.test(l._navigator&&l._navigator.platform),t=l._navigator&&l._navigator.appVersion.match(/OS (\d+)_(\d+)_?(\d+)?/),n=t?parseInt(t[1],10):null;if(e&&n&&n<9){var r=/safari/.test(l._navigator&&l._navigator.userAgent.toLowerCase());l._navigator&&!r&&(l.usingWebAudio=!1)}l.usingWebAudio&&(l.masterGain=void 0===l.ctx.createGain?l.ctx.createGainNode():l.ctx.createGain(),l.masterGain.gain.setValueAtTime(l._muted?0:l._volume,l.ctx.currentTime),l.masterGain.connect(l.ctx.destination)),l._setup()}};void 0===(r=function(){return{Howler:l,Howl:c}}.apply(t,[]))||(e.exports=r),t.Howler=l,t.Howl=c,void 0!==n?(n.HowlerGlobal=o,n.Howler=l,n.Howl=c,n.Sound=d):"undefined"!=typeof window&&(window.HowlerGlobal=o,window.Howler=l,window.Howl=c,window.Sound=d)}(),function(){"use strict";var e;HowlerGlobal.prototype._pos=[0,0,0],HowlerGlobal.prototype._orientation=[0,0,-1,0,1,0],HowlerGlobal.prototype.stereo=function(e){var t=this;if(!t.ctx||!t.ctx.listener)return t;for(var i=t._howls.length-1;i>=0;i--)t._howls[i].stereo(e);return t},HowlerGlobal.prototype.pos=function(e,t,n){var r=this;return r.ctx&&r.ctx.listener?(t="number"!=typeof t?r._pos[1]:t,n="number"!=typeof n?r._pos[2]:n,"number"!=typeof e?r._pos:(r._pos=[e,t,n],void 0!==r.ctx.listener.positionX?(r.ctx.listener.positionX.setTargetAtTime(r._pos[0],Howler.ctx.currentTime,.1),r.ctx.listener.positionY.setTargetAtTime(r._pos[1],Howler.ctx.currentTime,.1),r.ctx.listener.positionZ.setTargetAtTime(r._pos[2],Howler.ctx.currentTime,.1)):r.ctx.listener.setPosition(r._pos[0],r._pos[1],r._pos[2]),r)):r},HowlerGlobal.prototype.orientation=function(e,t,n,r,o,l){var c=this;if(!c.ctx||!c.ctx.listener)return c;var d=c._orientation;return t="number"!=typeof t?d[1]:t,n="number"!=typeof n?d[2]:n,r="number"!=typeof r?d[3]:r,o="number"!=typeof o?d[4]:o,l="number"!=typeof l?d[5]:l,"number"!=typeof e?d:(c._orientation=[e,t,n,r,o,l],void 0!==c.ctx.listener.forwardX?(c.ctx.listener.forwardX.setTargetAtTime(e,Howler.ctx.currentTime,.1),c.ctx.listener.forwardY.setTargetAtTime(t,Howler.ctx.currentTime,.1),c.ctx.listener.forwardZ.setTargetAtTime(n,Howler.ctx.currentTime,.1),c.ctx.listener.upX.setTargetAtTime(r,Howler.ctx.currentTime,.1),c.ctx.listener.upY.setTargetAtTime(o,Howler.ctx.currentTime,.1),c.ctx.listener.upZ.setTargetAtTime(l,Howler.ctx.currentTime,.1)):c.ctx.listener.setOrientation(e,t,n,r,o,l),c)},Howl.prototype.init=(e=Howl.prototype.init,function(t){var n=this;return n._orientation=t.orientation||[1,0,0],n._stereo=t.stereo||null,n._pos=t.pos||null,n._pannerAttr={coneInnerAngle:void 0!==t.coneInnerAngle?t.coneInnerAngle:360,coneOuterAngle:void 0!==t.coneOuterAngle?t.coneOuterAngle:360,coneOuterGain:void 0!==t.coneOuterGain?t.coneOuterGain:0,distanceModel:void 0!==t.distanceModel?t.distanceModel:"inverse",maxDistance:void 0!==t.maxDistance?t.maxDistance:1e4,panningModel:void 0!==t.panningModel?t.panningModel:"HRTF",refDistance:void 0!==t.refDistance?t.refDistance:1,rolloffFactor:void 0!==t.rolloffFactor?t.rolloffFactor:1},n._onstereo=t.onstereo?[{fn:t.onstereo}]:[],n._onpos=t.onpos?[{fn:t.onpos}]:[],n._onorientation=t.onorientation?[{fn:t.onorientation}]:[],e.call(this,t)}),Howl.prototype.stereo=function(e,n){var r=this;if(!r._webAudio)return r;if("loaded"!==r._state)return r._queue.push({event:"stereo",action:function(){r.stereo(e,n)}}),r;var o=void 0===Howler.ctx.createStereoPanner?"spatial":"stereo";if(void 0===n){if("number"!=typeof e)return r._stereo;r._stereo=e,r._pos=[e,0,0]}for(var l=r._getSoundIds(n),i=0;i"']/g,ae=RegExp(ie.source),oe=RegExp(re.source),se=/<%-([\s\S]+?)%>/g,ue=/<%([\s\S]+?)%>/g,le=/<%=([\s\S]+?)%>/g,ce=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,de=/^\w*$/,he=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,fe=/[\\^$.*+?()[\]{}|]/g,pe=RegExp(fe.source),me=/^\s+/,ge=/\s/,ve=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,ye=/\{\n\/\* \[wrapped with (.+)\] \*/,be=/,? & /,_e=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Te=/[()=,{}\[\]\/\s]/,we=/\\(\\)?/g,Se=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,ke=/\w*$/,xe=/^[-+]0x[0-9a-f]+$/i,Ce=/^0b[01]+$/i,Ae=/^\[object .+?Constructor\]$/,Ee=/^0o[0-7]+$/i,De=/^(?:0|[1-9]\d*)$/,Ie=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,je=/($^)/,Pe=/['\n\r\u2028\u2029\\]/g,Oe="\\ud800-\\udfff",Me="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",Le="\\u2700-\\u27bf",Ne="a-z\\xdf-\\xf6\\xf8-\\xff",Re="A-Z\\xc0-\\xd6\\xd8-\\xde",Be="\\ufe0e\\ufe0f",Fe="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Ue="['’]",Ve="["+Oe+"]",He="["+Fe+"]",ze="["+Me+"]",qe="\\d+",$e="["+Le+"]",We="["+Ne+"]",Ge="[^"+Oe+Fe+qe+Le+Ne+Re+"]",Ye="\\ud83c[\\udffb-\\udfff]",Xe="[^"+Oe+"]",Ke="(?:\\ud83c[\\udde6-\\uddff]){2}",Qe="[\\ud800-\\udbff][\\udc00-\\udfff]",Je="["+Re+"]",Ze="\\u200d",et="(?:"+We+"|"+Ge+")",tt="(?:"+Je+"|"+Ge+")",nt="(?:['’](?:d|ll|m|re|s|t|ve))?",it="(?:['’](?:D|LL|M|RE|S|T|VE))?",at="(?:"+ze+"|"+Ye+")"+"?",ot="["+Be+"]?",st=ot+at+("(?:"+Ze+"(?:"+[Xe,Ke,Qe].join("|")+")"+ot+at+")*"),ut="(?:"+[$e,Ke,Qe].join("|")+")"+st,lt="(?:"+[Xe+ze+"?",ze,Ke,Qe,Ve].join("|")+")",ct=RegExp(Ue,"g"),ht=RegExp(ze,"g"),ft=RegExp(Ye+"(?="+Ye+")|"+lt+st,"g"),pt=RegExp([Je+"?"+We+"+"+nt+"(?="+[He,Je,"$"].join("|")+")",tt+"+"+it+"(?="+[He,Je+et,"$"].join("|")+")",Je+"?"+et+"+"+nt,Je+"+"+it,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",qe,ut].join("|"),"g"),mt=RegExp("["+Ze+Oe+Me+Be+"]"),gt=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,vt=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],yt=-1,bt={};bt[$]=bt[W]=bt[G]=bt[Y]=bt[X]=bt[K]=bt[Q]=bt[J]=bt[Z]=!0,bt[C]=bt[A]=bt[H]=bt[E]=bt[z]=bt[D]=bt[I]=bt[j]=bt[O]=bt[M]=bt[L]=bt[R]=bt[B]=bt[F]=bt[V]=!1;var _t={};_t[C]=_t[A]=_t[H]=_t[z]=_t[E]=_t[D]=_t[$]=_t[W]=_t[G]=_t[Y]=_t[X]=_t[O]=_t[M]=_t[L]=_t[R]=_t[B]=_t[F]=_t[U]=_t[K]=_t[Q]=_t[J]=_t[Z]=!0,_t[I]=_t[j]=_t[V]=!1;var Tt={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},wt=parseFloat,St=parseInt,kt="object"==typeof e&&e&&e.Object===Object&&e,xt="object"==typeof self&&self&&self.Object===Object&&self,Ct=kt||xt||Function("return this")(),At=t&&!t.nodeType&&t,Et=At&&"object"==typeof r&&r&&!r.nodeType&&r,Dt=Et&&Et.exports===At,It=Dt&&kt.process,jt=function(){try{var e=Et&&Et.require&&Et.require("util").types;return e||It&&It.binding&&It.binding("util")}catch(e){}}(),Pt=jt&&jt.isArrayBuffer,Ot=jt&&jt.isDate,Mt=jt&&jt.isMap,Lt=jt&&jt.isRegExp,Nt=jt&&jt.isSet,Rt=jt&&jt.isTypedArray;function Bt(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function Ft(e,t,n,r){for(var o=-1,l=null==e?0:e.length;++o-1}function $t(e,t,n){for(var r=-1,o=null==e?0:e.length;++r-1;);return n}function mn(e,t){for(var n=e.length;n--&&en(t,e[n],0)>-1;);return n}var gn=on({"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"}),vn=on({"&":"&","<":"<",">":">",'"':""","'":"'"});function yn(e){return"\\"+Tt[e]}function bn(e){return mt.test(e)}function _n(map){var e=-1,t=Array(map.size);return map.forEach((function(n,r){t[++e]=[r,n]})),t}function Tn(e,t){return function(n){return e(t(n))}}function wn(e,t){for(var n=-1,r=e.length,o=0,l=[];++n",""":'"',"'":"'"});var Dn=function e(t){var n,r=(t=null==t?Ct:Dn.defaults(Ct.Object(),t,Dn.pick(Ct,vt))).Array,o=t.Date,ge=t.Error,Oe=t.Function,Me=t.Math,Le=t.Object,Ne=t.RegExp,Re=t.String,Be=t.TypeError,Fe=r.prototype,Ue=Oe.prototype,Ve=Le.prototype,He=t["__core-js_shared__"],ze=Ue.toString,qe=Ve.hasOwnProperty,$e=0,We=(n=/[^.]+$/.exec(He&&He.keys&&He.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"",Ge=Ve.toString,Ye=ze.call(Le),Xe=Ct._,Ke=Ne("^"+ze.call(qe).replace(fe,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Qe=Dt?t.Buffer:l,Je=t.Symbol,Ze=t.Uint8Array,et=Qe?Qe.allocUnsafe:l,tt=Tn(Le.getPrototypeOf,Le),nt=Le.create,it=Ve.propertyIsEnumerable,at=Fe.splice,ot=Je?Je.isConcatSpreadable:l,st=Je?Je.iterator:l,ut=Je?Je.toStringTag:l,lt=function(){try{var e=Ca(Le,"defineProperty");return e({},"",{}),e}catch(e){}}(),ft=t.clearTimeout!==Ct.clearTimeout&&t.clearTimeout,mt=o&&o.now!==Ct.Date.now&&o.now,Tt=t.setTimeout!==Ct.setTimeout&&t.setTimeout,kt=Me.ceil,xt=Me.floor,At=Le.getOwnPropertySymbols,Et=Qe?Qe.isBuffer:l,It=t.isFinite,jt=Fe.join,Qt=Tn(Le.keys,Le),on=Me.max,In=Me.min,jn=o.now,Pn=t.parseInt,On=Me.random,Mn=Fe.reverse,Ln=Ca(t,"DataView"),Nn=Ca(t,"Map"),Rn=Ca(t,"Promise"),Bn=Ca(t,"Set"),Fn=Ca(t,"WeakMap"),Un=Ca(Le,"create"),Vn=Fn&&new Fn,Hn={},zn=Ja(Ln),qn=Ja(Nn),$n=Ja(Rn),Wn=Ja(Bn),Gn=Ja(Fn),Yn=Je?Je.prototype:l,Xn=Yn?Yn.valueOf:l,Kn=Yn?Yn.toString:l;function Qn(e){if(ps(e)&&!is(e)&&!(e instanceof ti)){if(e instanceof ei)return e;if(qe.call(e,"__wrapped__"))return Za(e)}return new ei(e)}var Jn=function(){function object(){}return function(e){if(!fs(e))return{};if(nt)return nt(e);object.prototype=e;var t=new object;return object.prototype=l,t}}();function Zn(){}function ei(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=l}function ti(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=k,this.__views__=[]}function ni(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t=t?e:t)),e}function _i(e,t,n,r,object,o){var c,d=1&t,h=2&t,f=4&t;if(n&&(c=object?n(e,r,object,o):n(e)),c!==l)return c;if(!fs(e))return e;var m=is(e);if(m){if(c=function(e){var t=e.length,n=new e.constructor(t);t&&"string"==typeof e[0]&&qe.call(e,"index")&&(n.index=e.index,n.input=e.input);return n}(e),!d)return qr(e,c)}else{var v=Da(e),y=v==j||v==P;if(ss(e))return Br(e,d);if(v==L||v==C||y&&!object){if(c=h||y?{}:ja(e),!d)return h?function(source,object){return $r(source,Ea(source),object)}(e,function(object,source){return object&&$r(source,$s(source),object)}(c,e)):function(source,object){return $r(source,Aa(source),object)}(e,gi(c,e))}else{if(!_t[v])return object?e:{};c=function(object,e,t){var n=object.constructor;switch(e){case H:return Fr(object);case E:case D:return new n(+object);case z:return function(e,t){var n=t?Fr(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(object,t);case $:case W:case G:case Y:case X:case K:case Q:case J:case Z:return Ur(object,t);case O:return new n;case M:case F:return new n(object);case R:return function(e){var t=new e.constructor(e.source,ke.exec(e));return t.lastIndex=e.lastIndex,t}(object);case B:return new n;case U:return symbol=object,Xn?Le(Xn.call(symbol)):{}}var symbol}(e,v,d)}}o||(o=new oi);var _=o.get(e);if(_)return _;o.set(e,c),bs(e)?e.forEach((function(r){c.add(_i(r,t,n,r,e,o))})):ms(e)&&e.forEach((function(r,l){c.set(l,_i(r,t,n,l,e,o))}));var T=m?l:(f?h?ba:ya:h?$s:qs)(e);return Ut(T||e,(function(r,l){T&&(r=e[l=r]),fi(c,l,_i(r,t,n,l,e,o))})),c}function Ti(object,source,e){var t=e.length;if(null==object)return!t;for(object=Le(object);t--;){var n=e[t],r=source[n],o=object[n];if(o===l&&!(n in object)||!r(o))return!1}return!0}function wi(e,t,n){if("function"!=typeof e)throw new Be(c);return $a((function(){e.apply(l,n)}),t)}function Si(e,t,n,r){var o=-1,l=qt,c=!0,d=e.length,h=[],f=t.length;if(!d)return h;n&&(t=Wt(t,dn(n))),r?(l=$t,c=!1):t.length>=200&&(l=fn,c=!1,t=new ai(t));e:for(;++o-1},ii.prototype.set=function(e,t){var data=this.__data__,n=pi(data,e);return n<0?(++this.size,data.push([e,t])):data[n][1]=t,this},ri.prototype.clear=function(){this.size=0,this.__data__={hash:new ni,map:new(Nn||ii),string:new ni}},ri.prototype.delete=function(e){var t=ka(this,e).delete(e);return this.size-=t?1:0,t},ri.prototype.get=function(e){return ka(this,e).get(e)},ri.prototype.has=function(e){return ka(this,e).has(e)},ri.prototype.set=function(e,t){var data=ka(this,e),n=data.size;return data.set(e,t),this.size+=data.size==n?0:1,this},ai.prototype.add=ai.prototype.push=function(e){return this.__data__.set(e,d),this},ai.prototype.has=function(e){return this.__data__.has(e)},oi.prototype.clear=function(){this.__data__=new ii,this.size=0},oi.prototype.delete=function(e){var data=this.__data__,t=data.delete(e);return this.size=data.size,t},oi.prototype.get=function(e){return this.__data__.get(e)},oi.prototype.has=function(e){return this.__data__.has(e)},oi.prototype.set=function(e,t){var data=this.__data__;if(data instanceof ii){var n=data.__data__;if(!Nn||n.length<199)return n.push([e,t]),this.size=++data.size,this;data=this.__data__=new ri(n)}return data.set(e,t),this.size=data.size,this};var ki=Yr(Pi),xi=Yr(Oi,!0);function Ci(e,t){var n=!0;return ki(e,(function(e,r,o){return n=!!t(e,r,o)})),n}function Ai(e,t,n){for(var r=-1,o=e.length;++r0&&n(d)?t>1?Di(d,t-1,n,r,o):Gt(o,d):r||(o[o.length]=d)}return o}var Ii=Xr(),ji=Xr(!0);function Pi(object,e){return object&&Ii(object,e,qs)}function Oi(object,e){return object&&ji(object,e,qs)}function Mi(object,e){return zt(e,(function(e){return cs(object[e])}))}function Li(object,path){for(var e=0,t=(path=Mr(path,object)).length;null!=object&&et}function Fi(object,e){return null!=object&&qe.call(object,e)}function Ui(object,e){return null!=object&&e in Le(object)}function Vi(e,t,n){for(var o=n?$t:qt,c=e[0].length,d=e.length,h=d,f=r(d),m=1/0,v=[];h--;){var y=e[h];h&&t&&(y=Wt(y,dn(t))),m=In(y.length,m),f[h]=!n&&(t||c>=120&&y.length>=120)?new ai(h&&y):l}y=e[0];var _=-1,T=f[0];e:for(;++_=c?d:d*("desc"==t[n]?-1:1)}return object.index-e.index}(object,e,n)}))}function rr(object,e,t){for(var n=-1,r=e.length,o={};++n-1;)d!==e&&at.call(d,h,1),at.call(e,h,1);return e}function or(e,t){for(var n=e?t.length:0,r=n-1;n--;){var o=t[n];if(n==r||o!==l){var l=o;Oa(o)?at.call(e,o,1):Cr(e,o)}}return e}function sr(e,t){return e+xt(On()*(t-e+1))}function ur(e,t){var n="";if(!e||t<1||t>w)return n;do{t%2&&(n+=e),(t=xt(t/2))&&(e+=e)}while(t);return n}function lr(e,t){return Wa(Va(e,t,gu),e+"")}function cr(e){return ui(Zs(e))}function dr(e,t){var n=Zs(e);return Xa(n,bi(t,0,n.length))}function fr(object,path,e,t){if(!fs(object))return object;for(var n=-1,r=(path=Mr(path,object)).length,o=r-1,c=object;null!=c&&++nl?0:l+t),(n=n>l?l:n)<0&&(n+=l),l=t>n?0:n-t>>>0,t>>>=0;for(var c=r(l);++o>>1,c=e[l];null!==c&&!Ts(c)&&(n?c<=t:c=200){var f=t?null:ca(e);if(f)return Sn(f);c=!1,o=fn,h=new ai}else h=t?[]:d;e:for(;++r=r?e:vr(e,t,n)}var Rr=ft||function(e){return Ct.clearTimeout(e)};function Br(e,t){if(t)return e.slice();var n=e.length,r=et?et(n):new e.constructor(n);return e.copy(r),r}function Fr(e){var t=new e.constructor(e.byteLength);return new Ze(t).set(new Ze(e)),t}function Ur(e,t){var n=t?Fr(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function Vr(e,t){if(e!==t){var n=e!==l,r=null===e,o=e==e,c=Ts(e),d=t!==l,h=null===t,f=t==t,m=Ts(t);if(!h&&!m&&!c&&e>t||c&&d&&f&&!h&&!m||r&&d&&f||!n&&f||!o)return 1;if(!r&&!c&&!m&&e1?t[r-1]:l,c=r>2?t[2]:l;for(o=e.length>3&&"function"==typeof o?(r--,o):l,c&&Ma(t[0],t[1],c)&&(o=r<3?l:o,r=1),object=Le(object);++n-1?o[c?t[d]:d]:l}}function ea(e){return va((function(t){var n=t.length,r=n,o=ei.prototype.thru;for(e&&t.reverse();r--;){var d=t[r];if("function"!=typeof d)throw new Be(c);if(o&&!h&&"wrapper"==Ta(d))var h=new ei([],!0)}for(r=h?r:n;++r1&&A.reverse(),_&&mh))return!1;var m=c.get(e),v=c.get(t);if(m&&v)return m==t&&v==e;var y=-1,_=!0,T=2&n?new ai:l;for(c.set(e,t),c.set(t,e);++y-1&&e%1==0&&e1?"& ":"")+details[t],details=details.join(e>2?", ":" "),source.replace(ve,"{\n/* [wrapped with "+details+"] */\n")}(source,function(details,e){return Ut(x,(function(t){var n="_."+t[0];e&t[1]&&!qt(details,n)&&details.push(n)})),details.sort()}(function(source){var e=source.match(ye);return e?e[1].split(be):[]}(source),n)))}function Ya(e){var t=0,n=0;return function(){var r=jn(),o=16-(r-n);if(n=r,o>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(l,arguments)}}function Xa(e,t){var n=-1,r=e.length,o=r-1;for(t=t===l?r:t;++n1?e[t-1]:l;return n="function"==typeof n?(e.pop(),n):l,bo(e,n)}));function Co(e){var t=Qn(e);return t.__chain__=!0,t}function Ao(e,t){return t(e)}var Eo=va((function(e){var t=e.length,n=t?e[0]:0,r=this.__wrapped__,o=function(object){return yi(object,e)};return!(t>1||this.__actions__.length)&&r instanceof ti&&Oa(n)?((r=r.slice(n,+n+(t?1:0))).__actions__.push({func:Ao,args:[o],thisArg:l}),new ei(r,this.__chain__).thru((function(e){return t&&!e.length&&e.push(l),e}))):this.thru(o)}));var Do=Wr((function(e,t,n){qe.call(e,n)?++e[n]:vi(e,n,1)}));var Io=Zr(io),jo=Zr(ro);function Po(e,t){return(is(e)?Ut:ki)(e,Sa(t,3))}function Oo(e,t){return(is(e)?Vt:xi)(e,Sa(t,3))}var Mo=Wr((function(e,t,n){qe.call(e,n)?e[n].push(t):vi(e,n,[t])}));var Lo=lr((function(e,path,t){var n=-1,o="function"==typeof path,l=as(e)?r(e.length):[];return ki(e,(function(e){l[++n]=o?Bt(path,e,t):Hi(e,path,t)})),l})),No=Wr((function(e,t,n){vi(e,n,t)}));function map(e,t){return(is(e)?Wt:Qi)(e,Sa(t,3))}var Ro=Wr((function(e,t,n){e[n?0:1].push(t)}),(function(){return[[],[]]}));var Bo=lr((function(e,t){if(null==e)return[];var n=t.length;return n>1&&Ma(e,t[0],t[1])?t=[]:n>2&&Ma(t[0],t[1],t[2])&&(t=[t[0]]),ir(e,Di(t,1),[])})),Fo=mt||function(){return Ct.Date.now()};function Uo(e,t,n){return t=n?l:t,t=e&&null==t?e.length:t,ha(e,y,l,l,l,l,t)}function Vo(e,t){var n;if("function"!=typeof t)throw new Be(c);return e=As(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=l),n}}var Ho=lr((function(e,t,n){var r=1;if(n.length){var o=wn(n,wa(Ho));r|=m}return ha(e,r,t,n,o)})),zo=lr((function(object,e,t){var n=3;if(t.length){var r=wn(t,wa(zo));n|=m}return ha(e,n,object,t,r)}));function qo(e,t,n){var r,o,d,h,f,m,v=0,y=!1,_=!1,T=!0;if("function"!=typeof e)throw new Be(c);function w(time){var t=r,n=o;return r=o=l,v=time,h=e.apply(n,t)}function S(time){var e=time-m;return m===l||e>=t||e<0||_&&time-v>=d}function k(){var time=Fo();if(S(time))return x(time);f=$a(k,function(time){var e=t-(time-m);return _?In(e,d-(time-v)):e}(time))}function x(time){return f=l,T&&r?w(time):(r=o=l,h)}function C(){var time=Fo(),e=S(time);if(r=arguments,o=this,m=time,e){if(f===l)return function(time){return v=time,f=$a(k,t),y?w(time):h}(m);if(_)return Rr(f),f=$a(k,t),w(m)}return f===l&&(f=$a(k,t)),h}return t=Ds(t)||0,fs(n)&&(y=!!n.leading,d=(_="maxWait"in n)?on(Ds(n.maxWait)||0,t):d,T="trailing"in n?!!n.trailing:T),C.cancel=function(){f!==l&&Rr(f),v=0,r=m=o=f=l},C.flush=function(){return f===l?h:x(Fo())},C}var $o=lr((function(e,t){return wi(e,1,t)})),Wo=lr((function(e,t,n){return wi(e,Ds(t)||0,n)}));function Go(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new Be(c);var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],l=n.cache;if(l.has(o))return l.get(o);var c=e.apply(this,r);return n.cache=l.set(o,c)||l,c};return n.cache=new(Go.Cache||ri),n}function Yo(e){if("function"!=typeof e)throw new Be(c);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}Go.Cache=ri;var Xo=Lr((function(e,t){var n=(t=1==t.length&&is(t[0])?Wt(t[0],dn(Sa())):Wt(Di(t,1),dn(Sa()))).length;return lr((function(r){for(var o=-1,l=In(r.length,n);++o=t})),ns=zi(function(){return arguments}())?zi:function(e){return ps(e)&&qe.call(e,"callee")&&!it.call(e,"callee")},is=r.isArray,rs=Pt?dn(Pt):function(e){return ps(e)&&Ri(e)==H};function as(e){return null!=e&&hs(e.length)&&!cs(e)}function os(e){return ps(e)&&as(e)}var ss=Et||Du,us=Ot?dn(Ot):function(e){return ps(e)&&Ri(e)==D};function ls(e){if(!ps(e))return!1;var t=Ri(e);return t==I||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!vs(e)}function cs(e){if(!fs(e))return!1;var t=Ri(e);return t==j||t==P||"[object AsyncFunction]"==t||"[object Proxy]"==t}function ds(e){return"number"==typeof e&&e==As(e)}function hs(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=w}function fs(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function ps(e){return null!=e&&"object"==typeof e}var ms=Mt?dn(Mt):function(e){return ps(e)&&Da(e)==O};function gs(e){return"number"==typeof e||ps(e)&&Ri(e)==M}function vs(e){if(!ps(e)||Ri(e)!=L)return!1;var t=tt(e);if(null===t)return!0;var n=qe.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&ze.call(n)==Ye}var ys=Lt?dn(Lt):function(e){return ps(e)&&Ri(e)==R};var bs=Nt?dn(Nt):function(e){return ps(e)&&Da(e)==B};function _s(e){return"string"==typeof e||!is(e)&&ps(e)&&Ri(e)==F}function Ts(e){return"symbol"==typeof e||ps(e)&&Ri(e)==U}var ws=Rt?dn(Rt):function(e){return ps(e)&&hs(e.length)&&!!bt[Ri(e)]};var Ss=sa(Ki),ks=sa((function(e,t){return e<=t}));function xs(e){if(!e)return[];if(as(e))return _s(e)?Cn(e):qr(e);if(st&&e[st])return function(e){for(var data,t=[];!(data=e.next()).done;)t.push(data.value);return t}(e[st]());var t=Da(e);return(t==O?_n:t==B?Sn:Zs)(e)}function Cs(e){return e?(e=Ds(e))===T||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}function As(e){var t=Cs(e),n=t%1;return t==t?n?t-n:t:0}function Es(e){return e?bi(As(e),0,k):0}function Ds(e){if("number"==typeof e)return e;if(Ts(e))return S;if(fs(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=fs(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=cn(e);var n=Ce.test(e);return n||Ee.test(e)?St(e.slice(2),n?2:8):xe.test(e)?S:+e}function Is(e){return $r(e,$s(e))}function js(e){return null==e?"":kr(e)}var Ps=Gr((function(object,source){if(Ba(source)||as(source))$r(source,qs(source),object);else for(var e in source)qe.call(source,e)&&fi(object,e,source[e])})),Os=Gr((function(object,source){$r(source,$s(source),object)})),Ms=Gr((function(object,source,e,t){$r(source,$s(source),object,t)})),Ls=Gr((function(object,source,e,t){$r(source,qs(source),object,t)})),Ns=va(yi);var Rs=lr((function(object,e){object=Le(object);var t=-1,n=e.length,r=n>2?e[2]:l;for(r&&Ma(e[0],e[1],r)&&(n=1);++t1),path})),$r(object,ba(object),t),n&&(t=_i(t,7,ma));for(var r=e.length;r--;)Cr(t,e[r]);return t}));var Xs=va((function(object,e){return null==object?{}:function(object,e){return rr(object,e,(function(e,path){return Us(object,path)}))}(object,e)}));function Ks(object,e){if(null==object)return{};var t=Wt(ba(object),(function(e){return[e]}));return e=Sa(e),rr(object,t,(function(t,path){return e(t,path[0])}))}var Qs=da(qs),Js=da($s);function Zs(object){return null==object?[]:hn(object,qs(object))}var eu=Qr((function(e,t,n){return t=t.toLowerCase(),e+(n?tu(t):t)}));function tu(e){return lu(js(e).toLowerCase())}function nu(e){return(e=js(e))&&e.replace(Ie,gn).replace(ht,"")}var iu=Qr((function(e,t,n){return e+(n?"-":"")+t.toLowerCase()})),ru=Qr((function(e,t,n){return e+(n?" ":"")+t.toLowerCase()})),au=Kr("toLowerCase");var ou=Qr((function(e,t,n){return e+(n?"_":"")+t.toLowerCase()}));var su=Qr((function(e,t,n){return e+(n?" ":"")+lu(t)}));var uu=Qr((function(e,t,n){return e+(n?" ":"")+t.toUpperCase()})),lu=Kr("toUpperCase");function cu(e,pattern,t){return e=js(e),(pattern=t?l:pattern)===l?function(e){return gt.test(e)}(e)?function(e){return e.match(pt)||[]}(e):function(e){return e.match(_e)||[]}(e):e.match(pattern)||[]}var du=lr((function(e,t){try{return Bt(e,l,t)}catch(e){return ls(e)?e:new ge(e)}})),hu=va((function(object,e){return Ut(e,(function(e){e=Qa(e),vi(object,e,Ho(object[e],object))})),object}));function fu(e){return function(){return e}}var pu=ea(),mu=ea(!0);function gu(e){return e}function vu(e){return Gi("function"==typeof e?e:_i(e,1))}var yu=lr((function(path,e){return function(object){return Hi(object,path,e)}})),bu=lr((function(object,e){return function(path){return Hi(object,path,e)}}));function _u(object,source,e){var t=qs(source),n=Mi(source,t);null!=e||fs(source)&&(n.length||!t.length)||(e=source,source=object,object=this,n=Mi(source,qs(source)));var r=!(fs(e)&&"chain"in e&&!e.chain),o=cs(object);return Ut(n,(function(e){var t=source[e];object[e]=t,o&&(object.prototype[e]=function(){var e=this.__chain__;if(r||e){var n=object(this.__wrapped__);return(n.__actions__=qr(this.__actions__)).push({func:t,args:arguments,thisArg:object}),n.__chain__=e,n}return t.apply(object,Gt([this.value()],arguments))})})),object}function Tu(){}var wu=ra(Wt),Su=ra(Ht),ku=ra(Kt);function xu(path){return La(path)?an(Qa(path)):function(path){return function(object){return Li(object,path)}}(path)}var Cu=oa(),Au=oa(!0);function Eu(){return[]}function Du(){return!1}var Iu=ia((function(e,t){return e+t}),0),ju=la("ceil"),Pu=ia((function(e,t){return e/t}),1),Ou=la("floor");var source,Mu=ia((function(e,t){return e*t}),1),Lu=la("round"),Nu=ia((function(e,t){return e-t}),0);return Qn.after=function(e,t){if("function"!=typeof t)throw new Be(c);return e=As(e),function(){if(--e<1)return t.apply(this,arguments)}},Qn.ary=Uo,Qn.assign=Ps,Qn.assignIn=Os,Qn.assignInWith=Ms,Qn.assignWith=Ls,Qn.at=Ns,Qn.before=Vo,Qn.bind=Ho,Qn.bindAll=hu,Qn.bindKey=zo,Qn.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return is(e)?e:[e]},Qn.chain=Co,Qn.chunk=function(e,t,n){t=(n?Ma(e,t,n):t===l)?1:on(As(t),0);var o=null==e?0:e.length;if(!o||t<1)return[];for(var c=0,d=0,h=r(kt(o/t));co?0:o+n),(r=r===l||r>o?o:As(r))<0&&(r+=o),r=n>r?0:Es(r);n>>0)?(e=js(e))&&("string"==typeof t||null!=t&&!ys(t))&&!(t=kr(t))&&bn(e)?Nr(Cn(e),0,n):e.split(t,n):[]},Qn.spread=function(e,t){if("function"!=typeof e)throw new Be(c);return t=null==t?0:on(As(t),0),lr((function(n){var r=n[t],o=Nr(n,0,t);return r&&Gt(o,r),Bt(e,this,o)}))},Qn.tail=function(e){var t=null==e?0:e.length;return t?vr(e,1,t):[]},Qn.take=function(e,t,n){return e&&e.length?vr(e,0,(t=n||t===l?1:As(t))<0?0:t):[]},Qn.takeRight=function(e,t,n){var r=null==e?0:e.length;return r?vr(e,(t=r-(t=n||t===l?1:As(t)))<0?0:t,r):[]},Qn.takeRightWhile=function(e,t){return e&&e.length?Er(e,Sa(t,3),!1,!0):[]},Qn.takeWhile=function(e,t){return e&&e.length?Er(e,Sa(t,3)):[]},Qn.tap=function(e,t){return t(e),e},Qn.throttle=function(e,t,n){var r=!0,o=!0;if("function"!=typeof e)throw new Be(c);return fs(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),qo(e,t,{leading:r,maxWait:t,trailing:o})},Qn.thru=Ao,Qn.toArray=xs,Qn.toPairs=Qs,Qn.toPairsIn=Js,Qn.toPath=function(e){return is(e)?Wt(e,Qa):Ts(e)?[e]:qr(Ka(js(e)))},Qn.toPlainObject=Is,Qn.transform=function(object,e,t){var n=is(object),r=n||ss(object)||ws(object);if(e=Sa(e,4),null==t){var o=object&&object.constructor;t=r?n?new o:[]:fs(object)&&cs(o)?Jn(tt(object)):{}}return(r?Ut:Pi)(object,(function(n,r,object){return e(t,n,r,object)})),t},Qn.unary=function(e){return Uo(e,1)},Qn.union=mo,Qn.unionBy=go,Qn.unionWith=vo,Qn.uniq=function(e){return e&&e.length?xr(e):[]},Qn.uniqBy=function(e,t){return e&&e.length?xr(e,Sa(t,2)):[]},Qn.uniqWith=function(e,t){return t="function"==typeof t?t:l,e&&e.length?xr(e,l,t):[]},Qn.unset=function(object,path){return null==object||Cr(object,path)},Qn.unzip=yo,Qn.unzipWith=bo,Qn.update=function(object,path,e){return null==object?object:Ar(object,path,Or(e))},Qn.updateWith=function(object,path,e,t){return t="function"==typeof t?t:l,null==object?object:Ar(object,path,Or(e),t)},Qn.values=Zs,Qn.valuesIn=function(object){return null==object?[]:hn(object,$s(object))},Qn.without=_o,Qn.words=cu,Qn.wrap=function(e,t){return Ko(Or(t),e)},Qn.xor=To,Qn.xorBy=wo,Qn.xorWith=So,Qn.zip=ko,Qn.zipObject=function(e,t){return jr(e||[],t||[],fi)},Qn.zipObjectDeep=function(e,t){return jr(e||[],t||[],fr)},Qn.zipWith=xo,Qn.entries=Qs,Qn.entriesIn=Js,Qn.extend=Os,Qn.extendWith=Ms,_u(Qn,Qn),Qn.add=Iu,Qn.attempt=du,Qn.camelCase=eu,Qn.capitalize=tu,Qn.ceil=ju,Qn.clamp=function(e,t,n){return n===l&&(n=t,t=l),n!==l&&(n=(n=Ds(n))==n?n:0),t!==l&&(t=(t=Ds(t))==t?t:0),bi(Ds(e),t,n)},Qn.clone=function(e){return _i(e,4)},Qn.cloneDeep=function(e){return _i(e,5)},Qn.cloneDeepWith=function(e,t){return _i(e,5,t="function"==typeof t?t:l)},Qn.cloneWith=function(e,t){return _i(e,4,t="function"==typeof t?t:l)},Qn.conformsTo=function(object,source){return null==source||Ti(object,source,qs(source))},Qn.deburr=nu,Qn.defaultTo=function(e,t){return null==e||e!=e?t:e},Qn.divide=Pu,Qn.endsWith=function(e,t,n){e=js(e),t=kr(t);var r=e.length,o=n=n===l?r:bi(As(n),0,r);return(n-=t.length)>=0&&e.slice(n,o)==t},Qn.eq=Zo,Qn.escape=function(e){return(e=js(e))&&oe.test(e)?e.replace(re,vn):e},Qn.escapeRegExp=function(e){return(e=js(e))&&pe.test(e)?e.replace(fe,"\\$&"):e},Qn.every=function(e,t,n){var r=is(e)?Ht:Ci;return n&&Ma(e,t,n)&&(t=l),r(e,Sa(t,3))},Qn.find=Io,Qn.findIndex=io,Qn.findKey=function(object,e){return Jt(object,Sa(e,3),Pi)},Qn.findLast=jo,Qn.findLastIndex=ro,Qn.findLastKey=function(object,e){return Jt(object,Sa(e,3),Oi)},Qn.floor=Ou,Qn.forEach=Po,Qn.forEachRight=Oo,Qn.forIn=function(object,e){return null==object?object:Ii(object,Sa(e,3),$s)},Qn.forInRight=function(object,e){return null==object?object:ji(object,Sa(e,3),$s)},Qn.forOwn=function(object,e){return object&&Pi(object,Sa(e,3))},Qn.forOwnRight=function(object,e){return object&&Oi(object,Sa(e,3))},Qn.get=Fs,Qn.gt=es,Qn.gte=ts,Qn.has=function(object,path){return null!=object&&Ia(object,path,Fi)},Qn.hasIn=Us,Qn.head=head,Qn.identity=gu,Qn.includes=function(e,t,n,r){e=as(e)?e:Zs(e),n=n&&!r?As(n):0;var o=e.length;return n<0&&(n=on(o+n,0)),_s(e)?n<=o&&e.indexOf(t,n)>-1:!!o&&en(e,t,n)>-1},Qn.indexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=null==n?0:As(n);return o<0&&(o=on(r+o,0)),en(e,t,o)},Qn.inRange=function(e,t,n){return t=Cs(t),n===l?(n=t,t=0):n=Cs(n),function(e,t,n){return e>=In(t,n)&&e=-9007199254740991&&e<=w},Qn.isSet=bs,Qn.isString=_s,Qn.isSymbol=Ts,Qn.isTypedArray=ws,Qn.isUndefined=function(e){return e===l},Qn.isWeakMap=function(e){return ps(e)&&Da(e)==V},Qn.isWeakSet=function(e){return ps(e)&&"[object WeakSet]"==Ri(e)},Qn.join=function(e,t){return null==e?"":jt.call(e,t)},Qn.kebabCase=iu,Qn.last=lo,Qn.lastIndexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=r;return n!==l&&(o=(o=As(n))<0?on(r+o,0):In(o,r-1)),t==t?function(e,t,n){for(var r=n+1;r--;)if(e[r]===t)return r;return r}(e,t,o):Zt(e,nn,o,!0)},Qn.lowerCase=ru,Qn.lowerFirst=au,Qn.lt=Ss,Qn.lte=ks,Qn.max=function(e){return e&&e.length?Ai(e,gu,Bi):l},Qn.maxBy=function(e,t){return e&&e.length?Ai(e,Sa(t,2),Bi):l},Qn.mean=function(e){return rn(e,gu)},Qn.meanBy=function(e,t){return rn(e,Sa(t,2))},Qn.min=function(e){return e&&e.length?Ai(e,gu,Ki):l},Qn.minBy=function(e,t){return e&&e.length?Ai(e,Sa(t,2),Ki):l},Qn.stubArray=Eu,Qn.stubFalse=Du,Qn.stubObject=function(){return{}},Qn.stubString=function(){return""},Qn.stubTrue=function(){return!0},Qn.multiply=Mu,Qn.nth=function(e,t){return e&&e.length?nr(e,As(t)):l},Qn.noConflict=function(){return Ct._===this&&(Ct._=Xe),this},Qn.noop=Tu,Qn.now=Fo,Qn.pad=function(e,t,n){e=js(e);var r=(t=As(t))?xn(e):0;if(!t||r>=t)return e;var o=(t-r)/2;return aa(xt(o),n)+e+aa(kt(o),n)},Qn.padEnd=function(e,t,n){e=js(e);var r=(t=As(t))?xn(e):0;return t&&rt){var r=e;e=t,t=r}if(n||e%1||t%1){var o=On();return In(e+o*(t-e+wt("1e-"+((o+"").length-1))),t)}return sr(e,t)},Qn.reduce=function(e,t,n){var r=is(e)?Yt:sn,o=arguments.length<3;return r(e,Sa(t,4),n,o,ki)},Qn.reduceRight=function(e,t,n){var r=is(e)?Xt:sn,o=arguments.length<3;return r(e,Sa(t,4),n,o,xi)},Qn.repeat=function(e,t,n){return t=(n?Ma(e,t,n):t===l)?1:As(t),ur(js(e),t)},Qn.replace=function(){var e=arguments,t=js(e[0]);return e.length<3?t:t.replace(e[1],e[2])},Qn.result=function(object,path,e){var t=-1,n=(path=Mr(path,object)).length;for(n||(n=1,object=l);++tw)return[];var n=k,r=In(e,k);t=Sa(t),e-=k;for(var o=ln(r,t);++n=c)return e;var h=n-xn(r);if(h<1)return r;var f=d?Nr(d,0,h).join(""):e.slice(0,h);if(o===l)return f+r;if(d&&(h+=f.length-h),ys(o)){if(e.slice(h).search(o)){var m,v=f;for(o.global||(o=Ne(o.source,js(ke.exec(o))+"g")),o.lastIndex=0;m=o.exec(v);)var y=m.index;f=f.slice(0,y===l?h:y)}}else if(e.indexOf(kr(o),h)!=h){var _=f.lastIndexOf(o);_>-1&&(f=f.slice(0,_))}return f+r},Qn.unescape=function(e){return(e=js(e))&&ae.test(e)?e.replace(ie,En):e},Qn.uniqueId=function(e){var t=++$e;return js(e)+t},Qn.upperCase=uu,Qn.upperFirst=lu,Qn.each=Po,Qn.eachRight=Oo,Qn.first=head,_u(Qn,(source={},Pi(Qn,(function(e,t){qe.call(Qn.prototype,t)||(source[t]=e)})),source),{chain:!1}),Qn.VERSION="4.17.21",Ut(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(e){Qn[e].placeholder=Qn})),Ut(["drop","take"],(function(e,t){ti.prototype[e]=function(n){n=n===l?1:on(As(n),0);var r=this.__filtered__&&!t?new ti(this):this.clone();return r.__filtered__?r.__takeCount__=In(n,r.__takeCount__):r.__views__.push({size:In(n,k),type:e+(r.__dir__<0?"Right":"")}),r},ti.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}})),Ut(["filter","map","takeWhile"],(function(e,t){var n=t+1,r=1==n||3==n;ti.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:Sa(e,3),type:n}),t.__filtered__=t.__filtered__||r,t}})),Ut(["head","last"],(function(e,t){var n="take"+(t?"Right":"");ti.prototype[e]=function(){return this[n](1).value()[0]}})),Ut(["initial","tail"],(function(e,t){var n="drop"+(t?"":"Right");ti.prototype[e]=function(){return this.__filtered__?new ti(this):this[n](1)}})),ti.prototype.compact=function(){return this.filter(gu)},ti.prototype.find=function(e){return this.filter(e).head()},ti.prototype.findLast=function(e){return this.reverse().find(e)},ti.prototype.invokeMap=lr((function(path,e){return"function"==typeof path?new ti(this):this.map((function(t){return Hi(t,path,e)}))})),ti.prototype.reject=function(e){return this.filter(Yo(Sa(e)))},ti.prototype.slice=function(e,t){e=As(e);var n=this;return n.__filtered__&&(e>0||t<0)?new ti(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),t!==l&&(n=(t=As(t))<0?n.dropRight(-t):n.take(t-e)),n)},ti.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},ti.prototype.toArray=function(){return this.take(k)},Pi(ti.prototype,(function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),r=/^(?:head|last)$/.test(t),o=Qn[r?"take"+("last"==t?"Right":""):t],c=r||/^find/.test(t);o&&(Qn.prototype[t]=function(){var t=this.__wrapped__,d=r?[1]:arguments,h=t instanceof ti,f=d[0],m=h||is(t),v=function(e){var t=o.apply(Qn,Gt([e],d));return r&&y?t[0]:t};m&&n&&"function"==typeof f&&1!=f.length&&(h=m=!1);var y=this.__chain__,_=!!this.__actions__.length,T=c&&!y,w=h&&!_;if(!c&&m){t=w?t:new ti(this);var S=e.apply(t,d);return S.__actions__.push({func:Ao,args:[v],thisArg:l}),new ei(S,y)}return T&&w?e.apply(this,d):(S=this.thru(v),T?r?S.value()[0]:S.value():S)})})),Ut(["pop","push","shift","sort","splice","unshift"],(function(e){var t=Fe[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",r=/^(?:pop|shift)$/.test(e);Qn.prototype[e]=function(){var e=arguments;if(r&&!this.__chain__){var o=this.value();return t.apply(is(o)?o:[],e)}return this[n]((function(n){return t.apply(is(n)?n:[],e)}))}})),Pi(ti.prototype,(function(e,t){var n=Qn[t];if(n){var r=n.name+"";qe.call(Hn,r)||(Hn[r]=[]),Hn[r].push({name:t,func:n})}})),Hn[ta(l,2).name]=[{name:"wrapper",func:l}],ti.prototype.clone=function(){var e=new ti(this.__wrapped__);return e.__actions__=qr(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=qr(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=qr(this.__views__),e},ti.prototype.reverse=function(){if(this.__filtered__){var e=new ti(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},ti.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,n=is(e),r=t<0,o=n?e.length:0,view=function(e,t,n){var r=-1,o=n.length;for(;++r=this.__values__.length;return{done:e,value:e?l:this.__values__[this.__index__++]}},Qn.prototype.plant=function(e){for(var t,n=this;n instanceof Zn;){var r=Za(n);r.__index__=0,r.__values__=l,t?o.__wrapped__=r:t=r;var o=r;n=n.__wrapped__}return o.__wrapped__=e,t},Qn.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof ti){var t=e;return this.__actions__.length&&(t=new ti(this)),(t=t.reverse()).__actions__.push({func:Ao,args:[po],thisArg:l}),new ei(t,this.__chain__)}return this.thru(po)},Qn.prototype.toJSON=Qn.prototype.valueOf=Qn.prototype.value=function(){return Dr(this.__wrapped__,this.__actions__)},Qn.prototype.first=Qn.prototype.head,st&&(Qn.prototype[st]=function(){return this}),Qn}();Ct._=Dn,(o=function(){return Dn}.call(t,n,t,r))===l||(r.exports=o)}).call(this)}).call(this,n(42),n(225)(e))},function(e,t,n){"use strict";n.d(t,"a",(function(){return d}));var r=n(34);n(37),n(9),n(67);function o(e){return null!==e&&"object"===Object(r.a)(e)}function l(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:".",r=arguments.length>3?arguments[3]:void 0;if(!o(t))return l(e,{},n,r);var c=Object.assign({},t);for(var d in e)if("__proto__"!==d&&"constructor"!==d){var h=e[d];null!=h&&(r&&r(c,d,h,n)||(Array.isArray(h)&&Array.isArray(c[d])?c[d]=c[d].concat(h):o(h)&&o(c[d])?c[d]=l(h,c[d],(n?"".concat(n,"."):"")+d.toString(),r):c[d]=h))}return c}function c(e){return function(){for(var t=arguments.length,n=new Array(t),r=0;r65536)throw new TypeError("pattern is too long")};y.prototype.parse=function(pattern,e){T(pattern);var t=this.options;if("**"===pattern){if(!t.noglobstar)return r;pattern="*"}if(""===pattern)return"";var n,o="",f=!!t.nocase,m=!1,v=[],y=[],_=!1,S=-1,k=-1,x="."===pattern.charAt(0)?"":t.dot?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)",C=this;function A(){if(n){switch(n){case"*":o+=d,f=!0;break;case"?":o+=c,f=!0;break;default:o+="\\"+n}C.debug("clearStateChar %j %j",n,o),n=!1}}for(var E,i=0,D=pattern.length;i-1;N--){var R=y[N],B=o.slice(0,R.reStart),F=o.slice(R.reStart,R.reEnd-8),U=o.slice(R.reEnd-8,R.reEnd),V=o.slice(R.reEnd);U+=V;var H=B.split("(").length-1,z=V;for(i=0;i=0&&!(r=e[i]);i--);for(i=0;i>> no match, partial?",e,m,pattern,v),m!==c))}if("string"==typeof p?(h=f===p,this.debug("string match",p,f,h)):(h=f.match(p),this.debug("pattern match",p,f,h)),!h)return!1}if(o===c&&l===d)return!0;if(o===c)return t;if(l===d)return o===c-1&&""===e[o];throw new Error("wtf?")}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=(r=n(5))&&"object"==typeof r&&"default"in r?r.default:r;function l(e){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},l(e)}function c(e){return function(e){if(Array.isArray(e)){for(var i=0,t=new Array(e.length);i1&&void 0!==arguments[1]&&arguments[1],n=e.to,r=e.from;if(n&&(r||!1!==t)&&this.transports[n])if(t)this.transports[n]=[];else{var o=this.$_getTransportIndex(e);if(o>=0){var l=this.transports[n].slice(0);l.splice(o,1),this.transports[n]=l}}},registerTarget:function(e,t,n){d&&(this.trackInstances&&!n&&this.targets[e]&&console.warn("[portal-vue]: Target ".concat(e," already exists")),this.$set(this.targets,e,Object.freeze([t])))},unregisterTarget:function(e){this.$delete(this.targets,e)},registerSource:function(source,e,t){d&&(this.trackInstances&&!t&&this.sources[source]&&console.warn("[portal-vue]: source ".concat(source," already exists")),this.$set(this.sources,source,Object.freeze([e])))},unregisterSource:function(source){this.$delete(this.sources,source)},hasTarget:function(e){return!(!this.targets[e]||!this.targets[e][0])},hasSource:function(e){return!(!this.sources[e]||!this.sources[e][0])},hasContentFor:function(e){return!!this.transports[e]&&!!this.transports[e].length},$_getTransportIndex:function(e){var t=e.to,n=e.from;for(var i in this.transports[t])if(this.transports[t][i].from===n)return+i;return-1}}}),_=new y(f),T=1,w=o.extend({name:"portal",props:{disabled:{type:Boolean},name:{type:String,default:function(){return String(T++)}},order:{type:Number,default:0},slim:{type:Boolean},slotProps:{type:Object,default:function(){return{}}},tag:{type:String,default:"DIV"},to:{type:String,default:function(){return String(Math.round(1e7*Math.random()))}}},created:function(){var e=this;this.$nextTick((function(){_.registerSource(e.name,e)}))},mounted:function(){this.disabled||this.sendUpdate()},updated:function(){this.disabled?this.clear():this.sendUpdate()},beforeDestroy:function(){_.unregisterSource(this.name),this.clear()},watch:{to:function(e,t){t&&t!==e&&this.clear(t),this.sendUpdate()}},methods:{clear:function(e){var t={from:this.name,to:e||this.to};_.close(t)},normalizeSlots:function(){return this.$scopedSlots.default?[this.$scopedSlots.default]:this.$slots.default},normalizeOwnChildren:function(e){return"function"==typeof e?e(this.slotProps):e},sendUpdate:function(){var e=this.normalizeSlots();if(e){var t={from:this.name,to:this.to,passengers:c(e),order:this.order};_.open(t)}else this.clear()}},render:function(e){var t=this.$slots.default||this.$scopedSlots.default||[],n=this.tag;return t&&this.disabled?t.length<=1&&this.slim?this.normalizeOwnChildren(t)[0]:e(n,[this.normalizeOwnChildren(t)]):this.slim?e():e(n,{class:{"v-portal":!0},style:{display:"none"},key:"v-portal-placeholder"})}}),S=o.extend({name:"portalTarget",props:{multiple:{type:Boolean,default:!1},name:{type:String,required:!0},slim:{type:Boolean,default:!1},slotProps:{type:Object,default:function(){return{}}},tag:{type:String,default:"div"},transition:{type:[String,Object,Function]}},data:function(){return{transports:_.transports,firstRender:!0}},created:function(){var e=this;this.$nextTick((function(){_.registerTarget(e.name,e)}))},watch:{ownTransports:function(){this.$emit("change",this.children().length>0)},name:function(e,t){_.unregisterTarget(t),_.registerTarget(e,this)}},mounted:function(){var e=this;this.transition&&this.$nextTick((function(){e.firstRender=!1}))},beforeDestroy:function(){_.unregisterTarget(this.name)},computed:{ownTransports:function(){var e=this.transports[this.name]||[];return this.multiple?e:0===e.length?[]:[e[e.length-1]]},passengers:function(){return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e.reduce((function(e,n){var r=n.passengers[0],o="function"==typeof r?r(t):n.passengers;return e.concat(o)}),[])}(this.ownTransports,this.slotProps)}},methods:{children:function(){return 0!==this.passengers.length?this.passengers:this.$scopedSlots.default?this.$scopedSlots.default(this.slotProps):this.$slots.default||[]},noWrapper:function(){var e=this.slim&&!this.transition;return e&&this.children().length>1&&console.warn("[portal-vue]: PortalTarget with `slim` option received more than one child element."),e}},render:function(e){var t=this.noWrapper(),n=this.children(),r=this.transition||this.tag;return t?n[0]:this.slim&&!r?e():e(r,{props:{tag:this.transition&&this.tag?this.tag:void 0},class:{"vue-portal-target":!0}},n)}}),k=0,x=["disabled","name","order","slim","slotProps","tag","to"],C=["multiple","transition"],A=o.extend({name:"MountingPortal",inheritAttrs:!1,props:{append:{type:[Boolean,String]},bail:{type:Boolean},mountTo:{type:String,required:!0},disabled:{type:Boolean},name:{type:String,default:function(){return"mounted_"+String(k++)}},order:{type:Number,default:0},slim:{type:Boolean},slotProps:{type:Object,default:function(){return{}}},tag:{type:String,default:"DIV"},to:{type:String,default:function(){return String(Math.round(1e7*Math.random()))}},multiple:{type:Boolean,default:!1},targetSlim:{type:Boolean},targetSlotProps:{type:Object,default:function(){return{}}},targetTag:{type:String,default:"div"},transition:{type:[String,Object,Function]}},created:function(){if("undefined"!=typeof document){var e=document.querySelector(this.mountTo);if(e){var t=this.$props;if(_.targets[t.name])t.bail?console.warn("[portal-vue]: Target ".concat(t.name," is already mounted.\n Aborting because 'bail: true' is set")):this.portalTarget=_.targets[t.name];else{var n=t.append;if(n){var r="string"==typeof n?n:"DIV",o=document.createElement(r);e.appendChild(o),e=o}var l=h(this.$props,C);l.slim=this.targetSlim,l.tag=this.targetTag,l.slotProps=this.targetSlotProps,l.name=this.to,this.portalTarget=new S({el:e,parent:this.$parent||this,propsData:l})}}else console.error("[portal-vue]: Mount Point '".concat(this.mountTo,"' not found in document"))}},beforeDestroy:function(){var e=this.portalTarget;if(this.append){var t=e.$el;t.parentNode.removeChild(t)}e.$destroy()},render:function(e){if(!this.portalTarget)return console.warn("[portal-vue] Target wasn't mounted"),e();if(!this.$scopedSlots.manual){var t=h(this.$props,x);return e(w,{props:t,attrs:this.$attrs,on:this.$listeners,scopedSlots:this.$scopedSlots},this.$slots.default)}var content=this.$scopedSlots.manual({to:this.to});return Array.isArray(content)&&(content=content[0]),content||e()}});var E={install:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};e.component(t.portalName||"Portal",w),e.component(t.portalTargetName||"PortalTarget",S),e.component(t.MountingPortalName||"MountingPortal",A)}};t.default=E,t.Portal=w,t.PortalTarget=S,t.MountingPortal=A,t.Wormhole=_},,function(e,t,n){!function(e,t){"use strict";t=t&&t.hasOwnProperty("default")?t.default:t;var r=function(){function e(){this._queue=[],this._flushing=!1}return e.prototype.enqueue=function(e){return this._queue.push(e),this._flushing?Promise.resolve():this.flushQueue()},e.prototype.flushQueue=function(){var e=this;this._flushing=!0;var t=function(){var n=e._queue.shift();if(n)return n.then(t);e._flushing=!1};return Promise.resolve(t())},e}(),o={replaceArrays:{arrayMerge:function(e,t,n){return t}},concatArrays:{arrayMerge:function(e,source,t){return e.concat.apply(e,source)}}};function l(e,n,r){return t(e,n,o[r])}var c=JSON,d=function(){function t(t){var o=this;this._mutex=new r,this.subscriber=function(e){return function(t){return e.subscribe(t)}},void 0===t&&(t={}),this.key=null!=t.key?t.key:"vuex",this.subscribed=!1,this.supportCircular=t.supportCircular||!1,this.supportCircular&&(c=n(737)),this.mergeOption=t.mergeOption||"replaceArrays";var d=!0;try{window.localStorage.getItem("")}catch(e){d=!1}if(t.storage)this.storage=t.storage;else if(d)this.storage=window.localStorage;else{if(!e.MockStorage)throw new Error("Neither 'window' is defined, nor 'MockStorage' is available");this.storage=new e.MockStorage}this.reducer=null!=t.reducer?t.reducer:null==t.modules?function(e){return e}:function(e){return t.modules.reduce((function(a,i){var t;return l(a,((t={})[i]=e[i],t),o.mergeOption)}),{})},this.filter=t.filter||function(e){return!0},this.strictMode=t.strictMode||!1,this.RESTORE_MUTATION=function(e,t){for(var n=l(e,t||{},this.mergeOption),r=0,o=Object.keys(n);r=0?JSON.parse(e):e}function s(e,t,n,i){if(i)try{e.setItem(t,n)}catch(e){}return n}function c(){var e=document,t=e.body;return t||((t=e.createElement("body")).fake=!0),t}var d=document.documentElement;function h(e){var t="";return e.fake&&(t=d.style.overflow,e.style.background="",e.style.overflow=d.style.overflow="hidden",d.appendChild(e)),t}function p(e,t){e.fake&&(e.remove(),d.style.overflow=t,d.offsetHeight)}function f(e,t,n,i){"insertRule"in e?e.insertRule(t+"{"+n+"}",i):e.addRule(t,n,i)}function m(e){return("insertRule"in e?e.cssRules:e.rules).length}function v(e,t,n){for(var i=0,r=e.length;i=0},_=y?function(e,t){g(e,t)||e.classList.add(t)}:function(e,t){g(e,t)||(e.className+=" "+t)},b=y?function(e,t){g(e,t)&&e.classList.remove(t)}:function(e,t){g(e,t)&&(e.className=e.className.replace(t,""))};function T(e,t){return e.hasAttribute(t)}function w(e,t){return e.getAttribute(t)}function S(e){return void 0!==e.item}function k(e,t){if(e=S(e)||e instanceof Array?e:[e],"[object Object]"===Object.prototype.toString.call(t))for(var n=e.length;n--;)for(var i in t)e[n].setAttribute(i,t[i])}function x(e,t){e=S(e)||e instanceof Array?e:[e];for(var n=(t=t instanceof Array?t:[t]).length,i=e.length;i--;)for(var r=n;r--;)e[i].removeAttribute(t[r])}function C(e){for(var t=[],n=0,i=e.length;n=0&&!n&&M;e.addEventListener(i,t[i],r)}}function N(e,t){for(var n in t){var i=["touchstart","touchmove"].indexOf(n)>=0&&M;e.removeEventListener(n,t[n],i)}}n.d(t,"tns",(function(){return R}));var R=function(e){e=u({container:".slider",mode:"carousel",axis:"horizontal",items:1,gutter:0,edgePadding:0,fixedWidth:!1,autoWidth:!1,viewportMax:!1,slideBy:1,center:!1,controls:!0,controlsPosition:"top",controlsText:["prev","next"],controlsContainer:!1,prevButton:!1,nextButton:!1,nav:!0,navPosition:"top",navContainer:!1,navAsThumbnails:!1,arrowKeys:!1,speed:300,autoplay:!1,autoplayPosition:"top",autoplayTimeout:5e3,autoplayDirection:"forward",autoplayText:["start","stop"],autoplayHoverPause:!1,autoplayButton:!1,autoplayButtonOutput:!0,autoplayResetOnVisibility:!0,animateIn:"tns-fadeIn",animateOut:"tns-fadeOut",animateNormal:"tns-normal",animateDelay:!1,loop:!0,rewind:!1,autoHeight:!1,responsive:!1,lazyload:!1,lazyloadSelector:".tns-lazy-img",touch:!0,mouseDrag:!1,swipeAngle:15,nested:!1,preventActionWhenRunning:!1,preventScrollOnTouch:!1,freezable:!0,onInit:!1,useLocalStorage:!0},e||{});var t=document,n=window,i={ENTER:13,SPACE:32,LEFT:37,RIGHT:39},a={},d=e.useLocalStorage;if(d){var y=navigator.userAgent,S=new Date;try{(a=n.localStorage)?(a.setItem(S,S),d=a.getItem(S)==S,a.removeItem(S)):d=!1,d||(a={})}catch(e){d=!1}d&&(a.tnsApp&&a.tnsApp!==y&&["tC","tPL","tMQ","tTf","t3D","tTDu","tTDe","tADu","tADe","tTE","tAE"].forEach((function(e){a.removeItem(e)})),localStorage.tnsApp=y)}var P=a.tC?l(a.tC):s(a,"tC",function(){var e=document,t=c(),n=h(t),i=e.createElement("div"),r=!1;t.appendChild(i);try{for(var a,o="(10px * 10)",u=["calc"+o,"-moz-calc"+o,"-webkit-calc"+o],l=0;l<3;l++)if(a=u[l],i.style.width=a,100===i.offsetWidth){r=a.replace(o,"");break}}catch(e){}return t.fake?p(t,n):i.remove(),r}(),d),O=a.tPL?l(a.tPL):s(a,"tPL",function(){var e,t=document,n=c(),i=h(n),r=t.createElement("div"),a=t.createElement("div"),o="";r.className="tns-t-subp2",a.className="tns-t-ct";for(var u=0;u<70;u++)o+="
";return a.innerHTML=o,r.appendChild(a),n.appendChild(r),e=Math.abs(r.getBoundingClientRect().left-a.children[67].getBoundingClientRect().left)<2,n.fake?p(n,i):r.remove(),e}(),d),M=a.tMQ?l(a.tMQ):s(a,"tMQ",function(){var e,t=document,n=c(),i=h(n),r=t.createElement("div"),a=t.createElement("style"),o="@media all and (min-width:1px){.tns-mq-test{position:absolute}}";return a.type="text/css",r.className="tns-mq-test",n.appendChild(a),n.appendChild(r),a.styleSheet?a.styleSheet.cssText=o:a.appendChild(t.createTextNode(o)),e=window.getComputedStyle?window.getComputedStyle(r).position:r.currentStyle.position,n.fake?p(n,i):r.remove(),"absolute"===e}(),d),B=a.tTf?l(a.tTf):s(a,"tTf",I("transform"),d),F=a.t3D?l(a.t3D):s(a,"t3D",function(e){if(!e)return!1;if(!window.getComputedStyle)return!1;var t,n=document,i=c(),r=h(i),a=n.createElement("p"),o=e.length>9?"-"+e.slice(0,-9).toLowerCase()+"-":"";return o+="transform",i.insertBefore(a,null),a.style[e]="translate3d(1px,1px,1px)",t=window.getComputedStyle(a).getPropertyValue(o),i.fake?p(i,r):a.remove(),void 0!==t&&t.length>0&&"none"!==t}(B),d),U=a.tTDu?l(a.tTDu):s(a,"tTDu",I("transitionDuration"),d),V=a.tTDe?l(a.tTDe):s(a,"tTDe",I("transitionDelay"),d),q=a.tADu?l(a.tADu):s(a,"tADu",I("animationDuration"),d),H=a.tADe?l(a.tADe):s(a,"tADe",I("animationDelay"),d),z=a.tTE?l(a.tTE):s(a,"tTE",j(U,"Transition"),d),$=a.tAE?l(a.tAE):s(a,"tAE",j(q,"Animation"),d),W=n.console&&"function"==typeof n.console.warn,G=["container","controlsContainer","prevButton","nextButton","navContainer","autoplayButton"],Y={};if(G.forEach((function(n){if("string"==typeof e[n]){var i=e[n],r=t.querySelector(i);if(Y[n]=i,!r||!r.nodeName)return void(W&&console.warn("Can't find",e[n]));e[n]=r}})),!(e.container.children.length<1)){var X=e.responsive,K=e.nested,Q="carousel"===e.mode;if(X){0 in X&&(e=u(e,X[0]),delete X[0]);var J={};for(var Z in X){var ee=X[Z];ee="number"==typeof ee?{items:ee}:ee,J[Z]=ee}X=J,J=null}if(Q||function e(t){for(var n in t)Q||("slideBy"===n&&(t[n]="page"),"edgePadding"===n&&(t[n]=!1),"autoHeight"===n&&(t[n]=!1)),"responsive"===n&&e(t[n])}(e),!Q){e.axis="horizontal",e.slideBy="page",e.edgePadding=!1;var te=e.animateIn,ne=e.animateOut,ie=e.animateDelay,re=e.animateNormal}var ae,rt,oe="horizontal"===e.axis,se=t.createElement("div"),ue=t.createElement("div"),le=e.container,dt=le.parentNode,ce=le.outerHTML,de=le.children,he=de.length,fe=Dn(),pe=!1;X&&Xn(),Q&&(le.className+=" tns-vpfix");var me,ge,ve,ye,be,_e,Te,we,Se=e.autoWidth,ke=On("fixedWidth"),xe=On("edgePadding"),Ce=On("gutter"),Ae=jn(),Ee=On("center"),De=Se?1:Math.floor(On("items")),Ie=On("slideBy"),je=e.viewportMax||e.fixedWidthViewportWidth,Pe=On("arrowKeys"),Oe=On("speed"),Me=e.rewind,Le=!Me&&e.loop,Ne=On("autoHeight"),Re=On("controls"),Be=On("controlsText"),Fe=On("nav"),Ue=On("touch"),Ve=On("mouseDrag"),He=On("autoplay"),ze=On("autoplayTimeout"),qe=On("autoplayText"),$e=On("autoplayHoverPause"),We=On("autoplayResetOnVisibility"),Ge=(we=document.createElement("style"),Te&&we.setAttribute("media",Te),document.querySelector("head").appendChild(we),we.sheet?we.sheet:we.styleSheet),Ye=e.lazyload,Xe=(e.lazyloadSelector,[]),Ke=Le?(be=function(){if(Se||ke&&!je)return he-1;var t=ke?"fixedWidth":"items",n=[];if((ke||e[t]=-Ze)return e}:function(){return Ee&&Q&&!Le?he-1:Le||Q?Math.max(0,Qe-Math.ceil(De)):Qe-1},ot=Cn(On("startIndex")),st=ot,ut=(xn(),0),lt=Se?null:at(),ct=e.preventActionWhenRunning,ht=e.swipeAngle,ft=!ht||"?",pt=!1,mt=e.onInit,gt=new function(){return{topics:{},on:function(e,t){this.topics[e]=this.topics[e]||[],this.topics[e].push(t)},off:function(e,t){if(this.topics[e])for(var n=0;n=0&&(0===t?$t.disabled||ji(e,-1):Wt.disabled||ji(e,1))}},xt={click:function(e){if(pt){if(ct)return;Di()}for(var t=Ui(e=Fi(e));t!==Kt&&!T(t,"data-nav");)t=t.parentNode;if(T(t,"data-nav")){var n=en=Number(w(t,"data-nav")),i=ke||Se?n*he/Jt:n*De;Ii(Ot?n:Math.min(Math.ceil(i),he-1),e),tn===n&&(un&&Ni(),en=-1)}},keydown:function(e){e=Fi(e);var n=t.activeElement;if(T(n,"data-nav")){var r=[i.LEFT,i.RIGHT,i.ENTER,i.SPACE].indexOf(e.keyCode),a=Number(w(n,"data-nav"));r>=0&&(0===r?a>0&&Bi(Xt[a-1]):1===r?a=0&&ji(e,0===t?-1:1)}},Dt={touchstart:qi,touchmove:$i,touchend:Wi,touchcancel:Wi},It={mousedown:qi,mousemove:$i,mouseup:Wi,mouseleave:Wi},jt=Pn("controls"),Pt=Pn("nav"),Ot=!!Se||e.navAsThumbnails,Mt=Pn("autoplay"),Lt=Pn("touch"),Nt=Pn("mouseDrag"),Rt="tns-slide-active",Bt="tns-complete",Ft={load:function(e){ri(Ui(e))},error:function(e){var t;t=Ui(e),_(t,"failed"),ai(t)}},Ut="force"===e.preventScrollOnTouch;if(jt)var Vt,Ht,zt=e.controlsContainer,qt=e.controlsContainer?e.controlsContainer.outerHTML:"",$t=e.prevButton,Wt=e.nextButton,Gt=e.prevButton?e.prevButton.outerHTML:"",Yt=e.nextButton?e.nextButton.outerHTML:"";if(Pt)var Xt,Kt=e.navContainer,Qt=e.navContainer?e.navContainer.outerHTML:"",Jt=Se?he:Yi(),Zt=0,en=-1,tn=En(),nn=tn,rn="tns-nav-active",an="Carousel Page ",on=" (Current Slide)";if(Mt)var sn,un,ln,cn,dn,hn="forward"===e.autoplayDirection?1:-1,fn=e.autoplayButton,pn=e.autoplayButton?e.autoplayButton.outerHTML:"",mn=[""," animation"];if(Lt||Nt)var gn,vn,yn={},bn={},_n=!1,Tn=oe?function(e,t){return e.x-t.x}:function(e,t){return e.y-t.y};Se||kn(bt||wt),B&&(tt=B,nt="translate",F?(nt+=oe?"3d(":"3d(0px, ",it=oe?", 0px, 0px)":", 0px)"):(nt+=oe?"X(":"Y(",it=")")),Q&&(le.className=le.className.replace("tns-vpfix","")),function(){if(Pn("gutter"),se.className="tns-outer",ue.className="tns-inner",se.id=yt+"-ow",ue.id=yt+"-iw",""===le.id&&(le.id=yt),vt+=O||Se?" tns-subpixel":" tns-no-subpixel",vt+=P?" tns-calc":" tns-no-calc",Se&&(vt+=" tns-autowidth"),vt+=" tns-"+e.axis,le.className+=vt,Q?((ae=t.createElement("div")).id=yt+"-mw",ae.className="tns-ovh",se.appendChild(ae),ae.appendChild(ue)):se.appendChild(ue),Ne&&((ae||ue).className+=" tns-ah"),dt.insertBefore(se,le),ue.appendChild(le),v(de,(function(e,t){_(e,"tns-item"),e.id||(e.id=yt+"-item"+t),!Q&&re&&_(e,re),k(e,{"aria-hidden":"true",tabindex:"-1"})})),Ke){for(var i=t.createDocumentFragment(),n=t.createDocumentFragment(),a=Ke;a--;){var r=a%he,u=de[r].cloneNode(!0);if(x(u,"id"),n.insertBefore(u,n.firstChild),Q){var o=de[he-1-r].cloneNode(!0);x(o,"id"),i.appendChild(o)}}le.insertBefore(i,le.firstChild),le.appendChild(n),de=le.children}}(),function(){if(!Q)for(var t=ot,i=ot+Math.min(he,De);t .tns-item","font-size:"+n.getComputedStyle(de[0]).fontSize+";",m(Ge)),f(Ge,"#"+yt,"font-size:0;",m(Ge))):Q&&v(de,(function(e,t){e.style.marginLeft=function(e){return P?P+"("+100*e+"% / "+Qe+")":100*e/Qe+"%"}(t)}))),M){if(U){var a=ae&&e.autoHeight?Fn(e.speed):"";f(Ge,"#"+yt+"-mw",a,m(Ge))}a=Mn(e.edgePadding,e.gutter,e.fixedWidth,e.speed,e.autoHeight),f(Ge,"#"+yt+"-iw",a,m(Ge)),Q&&(a=oe&&!Se?"width:"+Ln(e.fixedWidth,e.gutter,e.items)+";":"",U&&(a+=Fn(Oe)),f(Ge,"#"+yt,a,m(Ge))),a=oe&&!Se?Nn(e.fixedWidth,e.gutter,e.items):"",e.gutter&&(a+=Rn(e.gutter)),Q||(U&&(a+=Fn(Oe)),q&&(a+=Un(Oe))),a&&f(Ge,"#"+yt+" > .tns-item",a,m(Ge))}else ci(),ue.style.cssText=Mn(xe,Ce,ke,Ne),Q&&oe&&!Se&&(le.style.width=Ln(ke,Ce,De)),a=oe&&!Se?Nn(ke,Ce,De):"",Ce&&(a+=Rn(Ce)),a&&f(Ge,"#"+yt+" > .tns-item",a,m(Ge));if(X&&M)for(var o in X){o=parseInt(o);var u=X[o],l=(a="",""),s="",c="",d="",h=Se?null:On("items",o),p=On("fixedWidth",o),y=On("speed",o),g=On("edgePadding",o),T=On("autoHeight",o),w=On("gutter",o);U&&ae&&On("autoHeight",o)&&"speed"in u&&(l="#"+yt+"-mw{"+Fn(y)+"}"),("edgePadding"in u||"gutter"in u)&&(s="#"+yt+"-iw{"+Mn(g,w,p,y,T)+"}"),Q&&oe&&!Se&&("fixedWidth"in u||"items"in u||ke&&"gutter"in u)&&(c="width:"+Ln(p,w,h)+";"),U&&"speed"in u&&(c+=Fn(y)),c&&(c="#"+yt+"{"+c+"}"),("fixedWidth"in u||ke&&"gutter"in u||!Q&&"items"in u)&&(d+=Nn(p,w,h)),"gutter"in u&&(d+=Rn(w)),!Q&&"speed"in u&&(U&&(d+=Fn(y)),q&&(d+=Un(y))),d&&(d="#"+yt+" > .tns-item{"+d+"}"),(a=l+s+c+d)&&Ge.insertRule("@media (min-width: "+o/16+"em) {"+a+"}",Ge.cssRules.length)}}(),Vn();var wn=Le?Q?function(){var e=ut,t=lt;e+=Ie,t-=Ie,xe?(e+=1,t-=1):ke&&(Ae+Ce)%(ke+Ce)&&(t-=1),Ke&&(ot>t?ot-=he:otlt)for(;ot>=ut+he;)ot-=he;else if(ot=0?"%":"px",r=r.replace(l,""),s=Number(e.style[t].replace(n,"").replace(i,"").replace(l,"")),c=(r-s)/a*u,setTimeout((function r(){a-=u,s+=c,e.style[t]=n+s+l+i,a>0?setTimeout(r,u):o()}),u)),oe||Gi()}:function(){Xe=[];var e={};e[z]=e[$]=Di,N(de[st],e),L(de[ot],e),Ci(st,te,ne,!0),Ci(ot,re,te),z&&$&&Oe&&D(le)||Di()};return{version:"2.9.2",getInfo:Ki,events:gt,goTo:Ii,play:function(){He&&!un&&(Li(),cn=!1)},pause:function(){un&&(Ni(),cn=!0)},isOn:pe,updateSliderHeight:hi,refresh:Vn,destroy:function(){if(Ge.disabled=!0,Ge.ownerNode&&Ge.ownerNode.remove(),N(n,{resize:Wn}),Pe&&N(t,Et),zt&&N(zt,kt),Kt&&N(Kt,xt),N(le,Ct),N(le,At),fn&&N(fn,{click:Ri}),He&&clearInterval(sn),Q&&z){var i={};i[z]=Di,N(le,i)}Ue&&N(le,Dt),Ve&&N(le,It);var r=[ce,qt,Gt,Yt,Qt,pn];for(var a in G.forEach((function(t,n){var i="container"===t?se:e[t];if("object"==typeof i){var a=!!i.previousElementSibling&&i.previousElementSibling,o=i.parentNode;i.outerHTML=r[n],e[t]=a?a.nextElementSibling:o.firstElementChild}})),G=te=ne=ie=re=oe=se=ue=le=dt=ce=de=he=rt=fe=Se=ke=xe=Ce=Ae=De=Ie=je=Pe=Oe=Me=Le=Ne=Ge=Ye=me=Xe=Ke=Qe=Je=Ze=et=tt=nt=it=at=ot=st=ut=lt=ht=ft=pt=mt=gt=vt=yt=bt=_t=Tt=wt=St=kt=xt=Ct=At=Et=Dt=It=jt=Pt=Ot=Mt=Lt=Nt=Rt=Bt=Ft=ge=Re=Be=zt=qt=$t=Wt=Vt=Ht=Fe=Kt=Qt=Xt=Jt=Zt=en=tn=nn=rn=an=on=He=ze=hn=qe=$e=fn=pn=We=mn=sn=un=ln=cn=dn=yn=bn=gn=_n=vn=Tn=Ue=Ve=null,this)"rebuild"!==a&&(this[a]=null);pe=!1},rebuild:function(){return R(u(e,Y))}}}function kn(e){e&&(Re=Fe=Ue=Ve=Pe=He=$e=We=!1)}function xn(){for(var e=Q?ot-Ke:ot;e<0;)e+=he;return e%he+1}function Cn(e){return e=e?Math.max(0,Math.min(Le?he-1:he-De,e)):0,Q?e+Ke:e}function An(e){for(null==e&&(e=ot),Q&&(e-=Ke);e<0;)e+=he;return Math.floor(e%he)}function En(){var e,t=An();return e=Ot?t:ke||Se?Math.ceil((t+1)*Jt/he-1):Math.floor(t/De),!Le&&Q&&ot===lt&&(e=Jt-1),e}function Dn(){return n.innerWidth||t.documentElement.clientWidth||t.body.clientWidth}function In(e){return"top"===e?"afterbegin":"beforeend"}function jn(){var e=xe?2*xe-Ce:0;return function e(n){var i,r,a=t.createElement("div");return n.appendChild(a),r=(i=a.getBoundingClientRect()).right-i.left,a.remove(),r||e(n.parentNode)}(dt)-e}function Pn(t){if(e[t])return!0;if(X)for(var n in X)if(X[n][t])return!0;return!1}function On(t,n){if(null==n&&(n=fe),"items"===t&&ke)return Math.floor((Ae+Ce)/(ke+Ce))||1;var i=e[t];if(X)for(var r in X)n>=parseInt(r)&&t in X[r]&&(i=X[r][t]);return"slideBy"===t&&"page"===i&&(i=On("items")),Q||"slideBy"!==t&&"items"!==t||(i=Math.floor(i)),i}function Mn(e,t,n,i,r){var a="";if(void 0!==e){var o=e;t&&(o-=t),a=oe?"margin: 0 "+o+"px 0 "+e+"px;":"margin: "+e+"px 0 "+o+"px 0;"}else if(t&&!n){var u="-"+t+"px";a="margin: 0 "+(oe?u+" 0 0":"0 "+u+" 0")+";"}return!Q&&r&&U&&i&&(a+=Fn(i)),a}function Ln(e,t,n){return e?(e+t)*Qe+"px":P?P+"("+100*Qe+"% / "+n+")":100*Qe/n+"%"}function Nn(e,t,n){var i;if(e)i=e+t+"px";else{Q||(n=Math.floor(n));var r=Q?Qe:n;i=P?P+"(100% / "+r+")":100/r+"%"}return i="width:"+i,"inner"!==K?i+";":i+" !important;"}function Rn(e){var t="";return!1!==e&&(t=(oe?"padding-":"margin-")+(oe?"right":"bottom")+": "+e+"px;"),t}function Bn(e,t){var n=e.substring(0,e.length-t).toLowerCase();return n&&(n="-"+n+"-"),n}function Fn(e){return Bn(U,18)+"transition-duration:"+e/1e3+"s;"}function Un(e){return Bn(q,17)+"animation-duration:"+e/1e3+"s;"}function Vn(){if(Pn("autoHeight")||Se||!oe){var e=le.querySelectorAll("img");v(e,(function(e){var t=e.src;t&&t.indexOf("data:image")<0?(L(e,Ft),e.src="",e.src=t,_(e,"loading")):Ye||ri(e)})),r((function(){li(C(e),(function(){ge=!0}))})),!Se&&oe&&(e=oi(ot,Math.min(ot+De-1,Qe-1))),Ye?Hn():r((function(){li(C(e),Hn)}))}else Q&&ki(),qn(),$n()}function Hn(){if(Se){var e=Le?ot:he-1;!function t(){de[e-1].getBoundingClientRect().right.toFixed(2)===de[e].getBoundingClientRect().left.toFixed(2)?zn():setTimeout((function(){t()}),16)}()}else zn()}function zn(){oe&&!Se||(fi(),Se?(Ze=wi(),Tt&&(wt=Yn()),lt=at(),kn(bt||wt)):Gi()),Q&&ki(),qn(),$n()}function qn(){if(pi(),se.insertAdjacentHTML("afterbegin",'
slide '+ti()+" of "+he+"
"),ve=se.querySelector(".tns-liveregion .current"),Mt){var t=He?"stop":"start";fn?k(fn,{"data-action":t}):e.autoplayButtonOutput&&(se.insertAdjacentHTML(In(e.autoplayPosition),'"),fn=se.querySelector("[data-action]")),fn&&L(fn,{click:Ri}),He&&(Li(),$e&&L(le,Ct),We&&L(le,At))}if(Pt){if(Kt)k(Kt,{"aria-label":"Carousel Pagination"}),v(Xt=Kt.children,(function(e,t){k(e,{"data-nav":t,tabindex:"-1","aria-label":an+(t+1),"aria-controls":yt})}));else{for(var n="",i=Ot?"":'style="display:none"',r=0;r';n='
'+n+"
",se.insertAdjacentHTML(In(e.navPosition),n),Kt=se.querySelector(".tns-nav"),Xt=Kt.children}if(Xi(),U){var a=U.substring(0,U.length-18).toLowerCase(),o="transition: all "+Oe/1e3+"s";a&&(o="-"+a+"-"+o),f(Ge,"[aria-controls^="+yt+"-item]",o,m(Ge))}k(Xt[tn],{"aria-label":an+(tn+1)+on}),x(Xt[tn],"tabindex"),_(Xt[tn],rn),L(Kt,xt)}jt&&(zt||$t&&Wt||(se.insertAdjacentHTML(In(e.controlsPosition),'
"),zt=se.querySelector(".tns-controls")),$t&&Wt||($t=zt.children[0],Wt=zt.children[1]),e.controlsContainer&&k(zt,{"aria-label":"Carousel Navigation",tabindex:"0"}),(e.controlsContainer||e.prevButton&&e.nextButton)&&k([$t,Wt],{"aria-controls":yt,tabindex:"-1"}),(e.controlsContainer||e.prevButton&&e.nextButton)&&(k($t,{"data-controls":"prev"}),k(Wt,{"data-controls":"next"})),Vt=gi($t),Ht=gi(Wt),bi(),zt?L(zt,kt):(L($t,kt),L(Wt,kt))),Kn()}function $n(){if(Q&&z){var i={};i[z]=Di,L(le,i)}Ue&&L(le,Dt,e.preventScrollOnTouch),Ve&&L(le,It),Pe&&L(t,Et),"inner"===K?gt.on("outerResized",(function(){Gn(),gt.emit("innerLoaded",Ki())})):(X||ke||Se||Ne||!oe)&&L(n,{resize:Wn}),Ne&&("outer"===K?gt.on("innerLoaded",si):bt||si()),ii(),bt?Zn():wt&&Jn(),gt.on("indexChanged",ui),"inner"===K&>.emit("innerLoaded",Ki()),"function"==typeof mt&&mt(Ki()),pe=!0}function Wn(e){r((function(){Gn(Fi(e))}))}function Gn(n){if(pe){"outer"===K&>.emit("outerResized",Ki(n)),fe=Dn();var i,r=rt,a=!1;X&&(Xn(),(i=r!==rt)&>.emit("newBreakpointStart",Ki(n)));var o,u,l=De,s=bt,c=wt,d=Pe,h=Re,p=Fe,y=Ue,g=Ve,T=He,w=$e,S=We,k=ot;if(i){var x=ke,C=Ne,D=Be,I=Ee,j=qe;if(!M)var P=Ce,O=xe}if(Pe=On("arrowKeys"),Re=On("controls"),Fe=On("nav"),Ue=On("touch"),Ee=On("center"),Ve=On("mouseDrag"),He=On("autoplay"),$e=On("autoplayHoverPause"),We=On("autoplayResetOnVisibility"),i&&(bt=On("disable"),ke=On("fixedWidth"),Oe=On("speed"),Ne=On("autoHeight"),Be=On("controlsText"),qe=On("autoplayText"),ze=On("autoplayTimeout"),M||(xe=On("edgePadding"),Ce=On("gutter"))),kn(bt),Ae=jn(),oe&&!Se||bt||(fi(),oe||(Gi(),a=!0)),(ke||Se)&&(Ze=wi(),lt=at()),(i||ke)&&(De=On("items"),Ie=On("slideBy"),(u=De!==l)&&(ke||Se||(lt=at()),wn())),i&&bt!==s&&(bt?Zn():function(){if(_t){if(Ge.disabled=!1,le.className+=vt,ki(),Le)for(var e=Ke;e--;)Q&&E(de[e]),E(de[Qe-e-1]);if(!Q)for(var t=ot,n=ot+he;t=ot&&t .tns-item",U,m(Ge))}Ne&&si(),a&&(ki(),st=ot)}i&>.emit("newBreakpointEnd",Ki(n))}}function Yn(){if(!ke&&!Se)return he<=(Ee?De-(De-1)/2:De);var e=ke?(ke+Ce)*he:me[he],t=xe?Ae+2*xe:Ae+Ce;return Ee&&(t-=ke?(Ae-ke)/2:(Ae-(me[ot+1]-me[ot]-Ce))/2),e<=t}function Xn(){for(var e in rt=0,X)e=parseInt(e),fe>=e&&(rt=e)}function Kn(){!He&&fn&&A(fn),!Fe&&Kt&&A(Kt),Re||(zt?A(zt):($t&&A($t),Wt&&A(Wt)))}function Qn(){He&&fn&&E(fn),Fe&&Kt&&E(Kt),Re&&(zt?E(zt):($t&&E($t),Wt&&E(Wt)))}function Jn(){if(!St){if(xe&&(ue.style.margin="0px"),Ke)for(var e="tns-transparent",t=Ke;t--;)Q&&_(de[t],e),_(de[Qe-t-1],e);Kn(),St=!0}}function Zn(){if(!_t){if(Ge.disabled=!0,le.className=le.className.replace(vt.substring(1),""),x(le,["style"]),Le)for(var e=Ke;e--;)Q&&A(de[e]),A(de[Qe-e-1]);if(oe&&Q||x(ue,["style"]),!Q)for(var t=ot,n=ot+he;t=.5&&(t=a))}));else{if(ke){var a=ke+Ce;Ee||xe?(r=Math.floor(n/a),t=Math.ceil(i/a-1)):t=r+Math.ceil(Ae/a)-1}else if(Ee||xe){var o=De-1;if(Ee?(r-=o/2,t=ot+o/2):t=ot+o,xe){var u=xe*De/Ae;r-=u,t+=u}r=Math.floor(r),t=Math.ceil(t)}else t=r+De-1;r=Math.max(r,0),t=Math.min(t,Qe-1)}return[r,t]}function ii(){Ye&&!bt&&oi.apply(null,ni()).forEach((function(e){if(!g(e,Bt)){var t={};t[z]=function(e){e.stopPropagation()},L(e,t),L(e,Ft),e.src=w(e,"data-src");var n=w(e,"data-srcset");n&&(e.srcset=n),_(e,"loading")}}))}function ri(e){_(e,"loaded"),ai(e)}function ai(e){_(e,"tns-complete"),b(e,"loading"),N(e,Ft)}function oi(e,t){for(var n=[];e<=t;)v(de[e].querySelectorAll("img"),(function(e){n.push(e)})),e++;return n}function si(){var e=oi.apply(null,ni());r((function(){li(e,hi)}))}function li(e,t){return ge?t():(e.forEach((function(t,n){g(t,Bt)&&e.splice(n,1)})),e.length?void r((function(){li(e,t)})):t())}function ui(){ii(),pi(),ei(),bi(),function(){if(Fe&&(tn=en>=0?en:En(),en=-1,tn!==nn)){var e=Xt[nn],t=Xt[tn];k(e,{tabindex:"-1","aria-label":an+(nn+1)}),b(e,rn),k(t,{"aria-label":an+(tn+1)+on}),x(t,"tabindex"),_(t,rn),nn=tn}}()}function ci(){Q&&Ne&&(ae.style[U]=Oe/1e3+"s")}function di(e,t){for(var n=[],i=e,r=Math.min(e+t,Qe);i=t&&i<=n?T(e,"aria-hidden")&&(x(e,["aria-hidden","tabindex"]),_(e,Rt)):T(e,"aria-hidden")||(k(e,{"aria-hidden":"true",tabindex:"-1"}),b(e,Rt))}))}function mi(e){return e.nodeName.toLowerCase()}function gi(e){return"button"===mi(e)}function vi(e){return"true"===e.getAttribute("aria-disabled")}function yi(e,t,n){e?t.disabled=n:t.setAttribute("aria-disabled",n.toString())}function bi(){if(Re&&!Me&&!Le){var e=Vt?$t.disabled:vi($t),t=Ht?Wt.disabled:vi(Wt),n=ot<=ut,i=!Me&&ot>=lt;n&&!e&&yi(Vt,$t,!0),!n&&e&&yi(Vt,$t,!1),i&&!t&&yi(Ht,Wt,!0),!i&&t&&yi(Ht,Wt,!1)}}function _i(e,t){U&&(e.style[U]=t)}function Ti(e){return null==e&&(e=ot),Se?(Ae-(xe?Ce:0)-(me[e+1]-me[e]-Ce))/2:ke?(Ae-ke)/2:(De-1)/2}function wi(){var e=Ae+(xe?Ce:0)-(ke?(ke+Ce)*Qe:me[Qe]);return Ee&&!Le&&(e=ke?-(ke+Ce)*(Qe-1)-Ti():Ti(Qe-1)-me[Qe-1]),e>0&&(e=0),e}function Si(e){var t;if(null==e&&(e=ot),oe&&!Se)if(ke)t=-(ke+Ce)*e,Ee&&(t+=Ti());else{var n=B?Qe:De;Ee&&(e-=Ti()),t=100*-e/n}else t=-me[e],Ee&&Se&&(t+=Ti());return Je&&(t=Math.max(t,Ze)),t+(!oe||Se||ke?"px":"%")}function ki(e){_i(le,"0s"),xi(e)}function xi(e){null==e&&(e=Si()),le.style[tt]=nt+e+it}function Ci(e,t,n,i){var r=e+De;Le||(r=Math.min(r,Qe));for(var a=e;a=0&&Ni(),pt=!0,Sn())}function Ei(e){return e.toLowerCase().replace(/-/g,"")}function Di(e){if(Q||pt){if(gt.emit("transitionEnd",Ki(e)),!Q&&Xe.length>0)for(var t=0;t0?1:-1;i+=ot+i-he>=ut?he*r:2*he*r*-1}ot+=i,Q&&Le&&(otlt&&(ot-=he)),An(ot)!==An(st)&&Ai(t)}}function ji(e,t){if(pt){if(ct)return;Di()}var n;if(!t){for(var i=Ui(e=Fi(e));i!==zt&&[$t,Wt].indexOf(i)<0;)i=i.parentNode;var r=[$t,Wt].indexOf(i);r>=0&&(n=!0,t=0===r?-1:1)}if(Me){if(ot===ut&&-1===t)return void Ii("last",e);if(ot===lt&&1===t)return void Ii("first",e)}t&&(ot+=Ie*t,Se&&(ot=Math.floor(ot)),Ai(n||e&&"keydown"===e.type?e:null))}function Pi(){sn=setInterval((function(){ji(null,hn)}),ze),un=!0}function Oi(){clearInterval(sn),un=!1}function Mi(e,t){k(fn,{"data-action":e}),fn.innerHTML=mn[0]+e+mn[1]+t}function Li(){Pi(),fn&&Mi("stop",qe[1])}function Ni(){Oi(),fn&&Mi("start",qe[0])}function Ri(){un?(Ni(),cn=!0):(Li(),cn=!1)}function Bi(e){e.focus()}function Fi(e){return Vi(e=e||n.event)?e.changedTouches[0]:e}function Ui(e){return e.target||n.event.srcElement}function Vi(e){return e.type.indexOf("touch")>=0}function Hi(e){e.preventDefault?e.preventDefault():e.returnValue=!1}function zi(){return a=bn.y-yn.y,o=bn.x-yn.x,t=Math.atan2(a,o)*(180/Math.PI),n=ht,i=!1,(r=Math.abs(90-Math.abs(t)))>=90-n?i="horizontal":r<=n&&(i="vertical"),i===e.axis;var t,n,i,r,a,o}function qi(e){if(pt){if(ct)return;Di()}He&&un&&Oi(),_n=!0,vn&&(o(vn),vn=null);var t=Fi(e);gt.emit(Vi(e)?"touchStart":"dragStart",Ki(e)),!Vi(e)&&["img","a"].indexOf(mi(Ui(e)))>=0&&Hi(e),bn.x=yn.x=t.clientX,bn.y=yn.y=t.clientY,Q&&(gn=parseFloat(le.style[tt].replace(nt,"")),_i(le,"0s"))}function $i(e){if(_n){var t=Fi(e);bn.x=t.clientX,bn.y=t.clientY,Q?vn||(vn=r((function(){!function e(t){if(ft){if(o(vn),_n&&(vn=r((function(){e(t)}))),"?"===ft&&(ft=zi()),ft){!Ut&&Vi(t)&&(Ut=!0);try{t.type&>.emit(Vi(t)?"touchMove":"dragMove",Ki(t))}catch(e){}var n=gn,i=Tn(bn,yn);!oe||ke||Se?(n+=i,n+="px"):(n+=B?i*De*100/((Ae+Ce)*Qe):100*i/(Ae+Ce),n+="%"),le.style[tt]=nt+n+it}}else _n=!1}(e)}))):("?"===ft&&(ft=zi()),ft&&(Ut=!0)),Ut&&e.preventDefault()}}function Wi(t){if(_n){vn&&(o(vn),vn=null),Q&&_i(le,""),_n=!1;var n=Fi(t);bn.x=n.clientX,bn.y=n.clientY;var i=Tn(bn,yn);if(Math.abs(i)){if(!Vi(t)){var a=Ui(t);L(a,{click:function e(t){Hi(t),N(a,{click:e})}})}Q?vn=r((function(){if(oe&&!Se){var e=-i*De/(Ae+Ce);e=i>0?Math.floor(e):Math.ceil(e),ot+=e}else{var n=-(gn+i);if(n<=0)ot=ut;else if(n>=me[Qe-1])ot=lt;else for(var r=0;r=me[r];)ot=r,n>me[r]&&i<0&&(ot+=1),r++}Ai(t,i),gt.emit(Vi(t)?"touchEnd":"dragEnd",Ki(t))})):ft&&ji(t,i>0?-1:1)}}"auto"===e.preventScrollOnTouch&&(Ut=!1),ht&&(ft="?"),He&&!un&&Pi()}function Gi(){(ae||ue).style.height=me[ot+De]-me[ot]+"px"}function Yi(){var e=ke?(ke+Ce)*he/Ae:he/De;return Math.min(Math.ceil(e),he)}function Xi(){if(Fe&&!Ot&&Jt!==Zt){var e=Zt,t=Jt,n=E;for(Zt>Jt&&(e=Jt,t=Zt,n=A);e0?1:0};function v(e,path){return path.split(".").reduce((function(e,i){return e?e[i]:null}),e)}function y(e,t,n){if(!e)return-1;if(!n||"function"!=typeof n)return e.indexOf(t);for(var i=0;i2&&void 0!==arguments[2]&&arguments[2];if(n||!Object.assign){var r=Object.getOwnPropertyNames(source).map((function(r){return o({},r,function(e){return _(source[e])&&null!==t&&t.hasOwnProperty(e)&&_(t[e])}(r)?e(t[r],source[r],n):source[r])})).reduce((function(a,b){return c({},a,{},b)}),{});return c({},t,{},r)}return Object.assign(t,source)},w={Android:function(){return"undefined"!=typeof window&&window.navigator.userAgent.match(/Android/i)},BlackBerry:function(){return"undefined"!=typeof window&&window.navigator.userAgent.match(/BlackBerry/i)},iOS:function(){return"undefined"!=typeof window&&window.navigator.userAgent.match(/iPhone|iPad|iPod/i)},Opera:function(){return"undefined"!=typeof window&&window.navigator.userAgent.match(/Opera Mini/i)},Windows:function(){return"undefined"!=typeof window&&window.navigator.userAgent.match(/IEMobile/i)},any:function(){return w.Android()||w.BlackBerry()||w.iOS()||w.Opera()||w.Windows()}};function S(e){void 0!==e.remove?e.remove():void 0!==e.parentNode&&null!==e.parentNode&&e.parentNode.removeChild(e)}function k(e){var t=document.createElement("div");t.style.position="absolute",t.style.left="0px",t.style.top="0px";var n=document.createElement("div");return t.appendChild(n),n.appendChild(e),document.body.appendChild(t),t}function x(e,t){var n;return JSON.parse(JSON.stringify(e)).sort((n=t,function(a,b){return n.map((function(e){var t=1;return"-"===e[0]&&(t=-1,e=e.substring(1)),a[e]>b[e]?t:a[e]1&&void 0!==arguments[1])||arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;void 0!==option&&(this.selected=option,this.$emit("select",this.selected,n),null!==this.selected&&(this.newValue=this.clearOnSelect?"":this.getValue(this.selected),this.setHovered(null)),t&&this.$nextTick((function(){e.isActive=!1})),this.checkValidity())},selectFirstOption:function(e){var t=this;this.$nextTick((function(){e.length?(t.openOnFocus||""!==t.newValue&&t.hovered!==e[0])&&t.setHovered(e[0]):t.setHovered(null)}))},enterPressed:function(e){null!==this.hovered&&this.setSelected(this.hovered,!this.keepOpen,e)},tabPressed:function(e){null!==this.hovered?this.setSelected(this.hovered,!this.keepOpen,e):this.isActive=!1},clickedOutside:function(e){this.whiteList.indexOf(e.target)<0&&(this.isActive=!1)},getValue:function(option){if(null!==option)return void 0!==this.customFormatter?this.customFormatter(option):"object"===r(option)?v(option,this.field):option},checkIfReachedTheEndOfScroll:function(e){e.clientHeight!==e.scrollHeight&&e.scrollTop+e.clientHeight>=e.scrollHeight&&this.$emit("infinite-scroll")},calcDropdownInViewportVertical:function(){var e=this;this.$nextTick((function(){if(void 0!==e.$refs.dropdown){var rect=e.$refs.dropdown.getBoundingClientRect();e.isListInViewportVertically=rect.top>=0&&rect.bottom<=(window.innerHeight||document.documentElement.clientHeight),e.appendToBody&&e.updateAppendToBody()}}))},keyArrows:function(e){var t="down"===e?1:-1;if(this.isActive){var n=this.data.indexOf(this.hovered)+t;n=(n=n>this.data.length-1?this.data.length:n)<0?0:n,this.setHovered(this.data[n]);var r=this.$refs.dropdown.querySelector(".dropdown-content"),element=r.querySelectorAll("a.dropdown-item:not(.is-disabled)")[n];if(!element)return;var o=r.scrollTop,l=r.scrollTop+r.clientHeight-element.clientHeight;element.offsetTop=l&&(r.scrollTop=element.offsetTop-r.clientHeight+element.clientHeight)}else this.isActive=!0},focused:function(e){this.getValue(this.selected)===this.newValue&&this.$el.querySelector("input").select(),this.openOnFocus&&(this.isActive=!0,this.keepFirst&&this.selectFirstOption(this.data)),this.hasFocus=!0,this.$emit("focus",e)},onBlur:function(e){this.hasFocus=!1,this.$emit("blur",e)},onInput:function(e){var t=this.getValue(this.selected);t&&t===this.newValue||(this.$emit("typing",this.newValue),this.checkValidity())},rightIconClick:function(e){this.clearable?(this.newValue="",this.openOnFocus&&this.$el.focus()):this.$emit("icon-right-click",e)},checkValidity:function(){var e=this;this.useHtml5Validation&&this.$nextTick((function(){e.checkHtml5Validity()}))},updateAppendToBody:function(){var e=this.$refs.dropdown,t=this.$refs.input.$el;if(e&&t){var n=this.$data._bodyEl;n.classList.forEach((function(e){return n.classList.remove(e)})),n.classList.add("autocomplete"),n.classList.add("control"),this.expandend&&n.classList.add("is-expandend");var rect=t.getBoundingClientRect(),r=rect.top+window.scrollY,o=rect.left+window.scrollX;this.isOpenedTop?r-=e.clientHeight:r+=t.clientHeight,this.style={position:"absolute",top:"".concat(r,"px"),left:"".concat(o,"px"),width:"".concat(t.clientWidth,"px"),maxWidth:"".concat(t.clientWidth,"px"),zIndex:"99"}}}},created:function(){"undefined"!=typeof window&&(document.addEventListener("click",this.clickedOutside),"auto"===this.dropdownPosition&&window.addEventListener("resize",this.calcDropdownInViewportVertical))},mounted:function(){var e=this;if(this.checkInfiniteScroll&&this.$refs.dropdown&&this.$refs.dropdown.querySelector(".dropdown-content")){var t=this.$refs.dropdown.querySelector(".dropdown-content");t.addEventListener("scroll",(function(){return e.checkIfReachedTheEndOfScroll(t)}))}this.appendToBody&&(this.$data._bodyEl=k(this.$refs.dropdown),this.updateAppendToBody())},beforeDestroy:function(){("undefined"!=typeof window&&(document.removeEventListener("click",this.clickedOutside),"auto"===this.dropdownPosition&&window.removeEventListener("resize",this.calcDropdownInViewportVertical)),this.checkInfiniteScroll&&this.$refs.dropdown&&this.$refs.dropdown.querySelector(".dropdown-content"))&&this.$refs.dropdown.querySelector(".dropdown-content").removeEventListener("scroll",this.checkIfReachedTheEndOfScroll);this.appendToBody&&S(this.$data._bodyEl)}};var B=D({render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"autocomplete control",class:{"is-expanded":e.expanded}},[n("b-input",e._b({ref:"input",attrs:{type:"text",size:e.size,loading:e.loading,rounded:e.rounded,icon:e.icon,"icon-right":e.newIconRight,"icon-right-clickable":e.newIconRightClickable,"icon-pack":e.iconPack,maxlength:e.maxlength,autocomplete:e.newAutocomplete,"use-html5-validation":!1},on:{input:e.onInput,focus:e.focused,blur:e.onBlur,"icon-right-click":e.rightIconClick,"icon-click":function(t){return e.$emit("icon-click",t)}},nativeOn:{keyup:function(t){if(!("button"in t)&&e._k(t.keyCode,"esc",27,t.key,["Esc","Escape"]))return null;t.preventDefault(),e.isActive=!1},keydown:[function(t){return!("button"in t)&&e._k(t.keyCode,"tab",9,t.key,"Tab")?null:e.tabPressed(t)},function(t){return!("button"in t)&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:(t.preventDefault(),e.enterPressed(t))},function(t){if(!("button"in t)&&e._k(t.keyCode,"up",38,t.key,["Up","ArrowUp"]))return null;t.preventDefault(),e.keyArrows("up")},function(t){if(!("button"in t)&&e._k(t.keyCode,"down",40,t.key,["Down","ArrowDown"]))return null;t.preventDefault(),e.keyArrows("down")}]},model:{value:e.newValue,callback:function(t){e.newValue=t},expression:"newValue"}},"b-input",e.$attrs,!1)),e._v(" "),n("transition",{attrs:{name:"fade"}},[n("div",{directives:[{name:"show",rawName:"v-show",value:e.isActive&&(e.data.length>0||e.hasEmptySlot||e.hasHeaderSlot),expression:"isActive && (data.length > 0 || hasEmptySlot || hasHeaderSlot)"}],ref:"dropdown",staticClass:"dropdown-menu",class:{"is-opened-top":e.isOpenedTop&&!e.appendToBody},style:e.style},[n("div",{directives:[{name:"show",rawName:"v-show",value:e.isActive,expression:"isActive"}],staticClass:"dropdown-content",style:e.contentStyle},[e.hasHeaderSlot?n("div",{staticClass:"dropdown-item"},[e._t("header")],2):e._e(),e._v(" "),e._l(e.data,(function(option,t){return n("a",{key:t,staticClass:"dropdown-item",class:{"is-hovered":option===e.hovered},on:{click:function(t){e.setSelected(option,void 0,t)}}},[e.hasDefaultSlot?e._t("default",null,{option:option,index:t}):n("span",[e._v("\r\n "+e._s(e.getValue(option,!0))+"\r\n ")])],2)})),e._v(" "),0===e.data.length&&e.hasEmptySlot?n("div",{staticClass:"dropdown-item is-disabled"},[e._t("empty")],2):e._e(),e._v(" "),e.hasFooterSlot?n("div",{staticClass:"dropdown-item"},[e._t("footer")],2):e._e()],2)])])],1)},staticRenderFns:[]},undefined,R,undefined,!1,undefined,void 0,void 0),F={install:function(e){I(e,B)}};use(F);var U=F;var V=D({render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n(e.computedTag,e._g(e._b({tag:"component",staticClass:"button",class:[e.size,e.type,{"is-rounded":e.rounded,"is-loading":e.loading,"is-outlined":e.outlined,"is-fullwidth":e.expanded,"is-inverted":e.inverted,"is-focused":e.focused,"is-active":e.active,"is-hovered":e.hovered,"is-selected":e.selected}],attrs:{type:e.nativeType}},"component",e.$attrs,!1),e.$listeners),[e.iconLeft?n("b-icon",{attrs:{pack:e.iconPack,icon:e.iconLeft,size:e.iconSize}}):e._e(),e._v(" "),e.label?n("span",[e._v(e._s(e.label))]):e.$slots.default?n("span",[e._t("default")],2):e._e(),e._v(" "),e.iconRight?n("b-icon",{attrs:{pack:e.iconPack,icon:e.iconRight,size:e.iconSize}}):e._e()],1)},staticRenderFns:[]},undefined,{name:"BButton",components:o({},L.name,L),inheritAttrs:!1,props:{type:[String,Object],size:String,label:String,iconPack:String,iconLeft:String,iconRight:String,rounded:{type:Boolean,default:function(){return A.defaultButtonRounded}},loading:Boolean,outlined:Boolean,expanded:Boolean,inverted:Boolean,focused:Boolean,active:Boolean,hovered:Boolean,selected:Boolean,nativeType:{type:String,default:"button",validator:function(e){return["button","submit","reset"].indexOf(e)>=0}},tag:{type:String,default:"button",validator:function(e){return A.defaultLinkTags.indexOf(e)>=0}}},computed:{computedTag:function(){return void 0!==this.$attrs.disabled&&!1!==this.$attrs.disabled?"button":this.tag},iconSize:function(){return this.size&&"is-medium"!==this.size?"is-large"===this.size?"is-medium":this.size:"is-small"}}},undefined,!1,undefined,void 0,void 0),H={install:function(e){I(e,V)}};use(H);var z=H,$={name:"BCarousel",components:o({},L.name,L),props:{value:{type:Number,default:0},animated:{type:String,default:"slide"},interval:Number,hasDrag:{type:Boolean,default:!0},autoplay:{type:Boolean,default:!0},pauseHover:{type:Boolean,default:!0},pauseInfo:{type:Boolean,default:!0},pauseInfoType:{type:String,default:"is-white"},pauseText:{type:String,default:"Pause"},arrow:{type:Boolean,default:!0},arrowBoth:{type:Boolean,default:!0},arrowHover:{type:Boolean,default:!0},repeat:{type:Boolean,default:!0},iconPack:String,iconSize:String,iconPrev:{type:String,default:function(){return A.defaultIconPrev}},iconNext:{type:String,default:function(){return A.defaultIconNext}},indicator:{type:Boolean,default:!0},indicatorBackground:Boolean,indicatorCustom:Boolean,indicatorCustomSize:{type:String,default:"is-small"},indicatorInside:{type:Boolean,default:!0},indicatorMode:{type:String,default:"click"},indicatorPosition:{type:String,default:"is-bottom"},indicatorStyle:{type:String,default:"is-dots"},overlay:Boolean,progress:Boolean,progressType:{type:String,default:"is-primary"},withCarouselList:Boolean},data:function(){return{_isCarousel:!0,activeItem:this.value,carouselItems:[],isPause:!1,dragX:0,timer:null}},computed:{indicatorClasses:function(){return[{"has-background":this.indicatorBackground,"has-custom":this.indicatorCustom,"is-inside":this.indicatorInside},this.indicatorCustom&&this.indicatorCustomSize,this.indicatorInside&&this.indicatorPosition]}},watch:{value:function(e){e1&&void 0!==arguments[1])||arguments[1];this.activeItem!==e&&(this.activeItem50&&(t<0?this.next():this.prev()),e.touches&&this.startTimer()}}},mounted:function(){this.activeItem=0&&this.$parent.carouselItems.splice(e,1)}},undefined,!1,undefined,void 0,void 0);var Y=D({render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"carousel-list",class:{"has-shadow":e.activeItem>0},on:{mousedown:function(t){return t.stopPropagation(),t.preventDefault(),e.dragStart(t)},touchstart:e.dragStart}},[n("div",{staticClass:"carousel-slides",class:e.listClass,style:e.transformStyle},e._l(e.data,(function(t,r){return n("div",{key:r,staticClass:"carousel-slide",class:{"is-active":e.activeItem===r},style:e.itemStyle,on:{click:function(t){e.checkAsIndicator(r,t)}}},[e._t("item",[n("figure",{staticClass:"image"},[n("img",{attrs:{src:t.image,title:t.title}})])],{list:t,index:r,active:e.activeItem})],2)}))),e._v(" "),e.arrow?n("div",{staticClass:"carousel-arrow",class:{"is-hovered":e.arrowHover}},[n("b-icon",{directives:[{name:"show",rawName:"v-show",value:e.activeItem>0,expression:"activeItem > 0"}],staticClass:"has-icons-left",attrs:{pack:e.iconPack,icon:e.iconPrev,size:e.iconSize,both:""},nativeOn:{click:function(t){return t.preventDefault(),e.prev(t)}}}),e._v(" "),n("b-icon",{directives:[{name:"show",rawName:"v-show",value:e.checkArrow(e.total),expression:"checkArrow(total)"}],staticClass:"has-icons-right",attrs:{pack:e.iconPack,icon:e.iconNext,size:e.iconSize,both:""},nativeOn:{click:function(t){return t.preventDefault(),e.next(t)}}})],1):e._e()])},staticRenderFns:[]},undefined,{name:"BCarouselList",components:o({},L.name,L),props:{config:{type:Object,default:function(){return{}}},data:{type:Array,default:function(){return[]}},value:{type:Number,default:0},hasDrag:{type:Boolean,default:!0},hasGrayscale:Boolean,hasOpacity:Boolean,repeat:Boolean,itemsToShow:{type:Number,default:4},itemsToList:{type:Number,default:1},asIndicator:Boolean,arrow:{type:Boolean,default:!0},arrowHover:{type:Boolean,default:!0},iconPack:String,iconSize:String,iconPrev:{type:String,default:function(){return A.defaultIconPrev}},iconNext:{type:String,default:function(){return A.defaultIconNext}},refresh:Boolean},data:function(){return{activeItem:this.value,breakpoints:{},delta:0,dragging:!1,hold:0,itemWidth:0,settings:{}}},computed:{listClass:function(){return[{"has-grayscale":this.settings.hasGrayscale||this.hasGrayscale,"has-opacity":this.settings.hasOpacity||this.hasOpacity,"is-dragging":this.dragging}]},itemStyle:function(){return"width: ".concat(this.itemWidth,"px;")},transformStyle:function(){var e=this.delta+this.activeItem*this.itemWidth*1,t=this.dragging?-e:-Math.abs(e);return"transform: translateX(".concat(t,"px);")},total:function(){return this.data.length-1}},watch:{value:function(e){this.switchTo(e)},refresh:function(e){e&&this.asIndicator&&this.getWidth()},$props:{handler:function(e){this.initConfig(),this.update()},deep:!0}},methods:{initConfig:function(){this.breakpoints=this.config.breakpoints,this.settings=T(this.$props,this.config,!0)},getWidth:function(){var rect=this.$el.getBoundingClientRect();this.itemWidth=rect.width/this.settings.itemsToShow},update:function(){this.breakpoints&&this.updateConfig(),this.getWidth()},updateConfig:function(){var e,t=this;Object.keys(this.breakpoints).sort((function(a,b){return b-a})).some((function(n){if(e=window.matchMedia("(min-width: ".concat(n,"px)")).matches)return t.settings=t.config.breakpoints[n],!0})),e||(this.settings=this.config)},switchTo:function(e){if(!(e<0||this.activeItem===e||!this.repeat&&e>this.total)){var t=this.repeat&&e>this.total?0:e;this.activeItem=t,this.$emit("switch",t)}},next:function(){this.switchTo(this.activeItem+this.itemsToList)},prev:function(){this.switchTo(this.activeItem-this.itemsToList)},checkArrow:function(e){if(this.repeat||this.activeItem!==e)return!0},checkAsIndicator:function(e,t){if(this.asIndicator){var n=(new Date).getTime();!t.touches&&n-this.hold>200||this.switchTo(e)}},dragStart:function(e){!this.hasDrag||0!==e.button&&"touchstart"!==e.type||(this.hold=(new Date).getTime(),this.dragging=!0,this.dragStartX=e.touches?e.touches[0].clientX:e.clientX,window.addEventListener(e.touches?"touchmove":"mousemove",this.dragMove),window.addEventListener(e.touches?"touchend":"mouseup",this.dragEnd))},dragMove:function(e){this.dragEndX=e.touches?e.touches[0].clientX:e.clientX;var t=this.dragEndX-this.dragStartX;this.delta=t<0?Math.abs(t):-Math.abs(t),e.touches||e.preventDefault()},dragEnd:function(e){var t=1*m(this.delta),n=Math.round(Math.abs(this.delta/this.itemWidth)+.15);this.switchTo(this.activeItem+t*n),this.dragging=!1,this.delta=0,window.removeEventListener(e.touches?"touchmove":"mousemove",this.dragMove),window.removeEventListener(e.touches?"touchend":"mouseup",this.dragEnd)}},created:function(){this.initConfig(),"undefined"!=typeof window&&window.addEventListener("resize",this.update)},mounted:function(){var e=this;this.$nextTick((function(){e.update()}))},beforeDestroy:function(){"undefined"!=typeof window&&window.removeEventListener("resize",this.update)}},undefined,!1,undefined,void 0,void 0),X={install:function(e){I(e,W),I(e,G),I(e,Y)}};use(X);var K=X,Q={props:{value:[String,Number,Boolean,Function,Object,Array],nativeValue:[String,Number,Boolean,Function,Object,Array],type:String,disabled:Boolean,required:Boolean,name:String,size:String},data:function(){return{newValue:this.value}},computed:{computedValue:{get:function(){return this.newValue},set:function(e){this.newValue=e,this.$emit("input",e)}}},watch:{value:function(e){this.newValue=e}},methods:{focus:function(){this.$refs.input.focus()}}};var J=D({render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("label",{ref:"label",staticClass:"b-checkbox checkbox",class:[e.size,{"is-disabled":e.disabled}],attrs:{disabled:e.disabled},on:{click:e.focus,keydown:function(t){if(!("button"in t)&&e._k(t.keyCode,"enter",13,t.key,"Enter"))return null;t.preventDefault(),e.$refs.label.click()}}},[n("input",{directives:[{name:"model",rawName:"v-model",value:e.computedValue,expression:"computedValue"}],ref:"input",attrs:{type:"checkbox",disabled:e.disabled,required:e.required,name:e.name,"true-value":e.trueValue,"false-value":e.falseValue},domProps:{indeterminate:e.indeterminate,value:e.nativeValue,checked:Array.isArray(e.computedValue)?e._i(e.computedValue,e.nativeValue)>-1:e._q(e.computedValue,e.trueValue)},on:{click:function(e){e.stopPropagation()},change:function(t){var n=e.computedValue,r=t.target,o=r.checked?e.trueValue:e.falseValue;if(Array.isArray(n)){var l=e.nativeValue,c=e._i(n,l);r.checked?c<0&&(e.computedValue=n.concat([l])):c>-1&&(e.computedValue=n.slice(0,c).concat(n.slice(c+1)))}else e.computedValue=o}}}),e._v(" "),n("span",{staticClass:"check",class:e.type}),e._v(" "),n("span",{staticClass:"control-label"},[e._t("default")],2)])},staticRenderFns:[]},undefined,{name:"BCheckbox",mixins:[Q],props:{indeterminate:Boolean,trueValue:{type:[String,Number,Boolean,Function,Object,Array],default:!0},falseValue:{type:[String,Number,Boolean,Function,Object,Array],default:!1}}},undefined,!1,undefined,void 0,void 0);var Z=D({render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"control",class:{"is-expanded":e.expanded}},[n("label",{ref:"label",staticClass:"b-checkbox checkbox button",class:[e.checked?e.type:null,e.size,{"is-disabled":e.disabled,"is-focused":e.isFocused}],attrs:{disabled:e.disabled},on:{click:e.focus,keydown:function(t){if(!("button"in t)&&e._k(t.keyCode,"enter",13,t.key,"Enter"))return null;t.preventDefault(),e.$refs.label.click()}}},[e._t("default"),e._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:e.computedValue,expression:"computedValue"}],ref:"input",attrs:{type:"checkbox",disabled:e.disabled,required:e.required,name:e.name},domProps:{value:e.nativeValue,checked:Array.isArray(e.computedValue)?e._i(e.computedValue,e.nativeValue)>-1:e.computedValue},on:{click:function(e){e.stopPropagation()},focus:function(t){e.isFocused=!0},blur:function(t){e.isFocused=!1},change:function(t){var n=e.computedValue,r=t.target,o=!!r.checked;if(Array.isArray(n)){var l=e.nativeValue,c=e._i(n,l);r.checked?c<0&&(e.computedValue=n.concat([l])):c>-1&&(e.computedValue=n.slice(0,c).concat(n.slice(c+1)))}else e.computedValue=o}}})],2)])},staticRenderFns:[]},undefined,{name:"BCheckboxButton",mixins:[Q],props:{type:{type:String,default:"is-primary"},expanded:Boolean},data:function(){return{isFocused:!1}},computed:{checked:function(){return Array.isArray(this.newValue)?this.newValue.indexOf(this.nativeValue)>=0:this.newValue===this.nativeValue}}},undefined,!1,undefined,void 0,void 0),ee={install:function(e){I(e,J),I(e,Z)}};use(ee);var te=ee;var ne=D({},undefined,{name:"BCollapse",props:{open:{type:Boolean,default:!0},animation:{type:String,default:"fade"},ariaId:{type:String,default:""},position:{type:String,default:"is-top",validator:function(e){return["is-top","is-bottom"].indexOf(e)>-1}}},data:function(){return{isOpen:this.open}},watch:{open:function(e){this.isOpen=e}},methods:{toggle:function(){this.isOpen=!this.isOpen,this.$emit("update:open",this.isOpen),this.$emit(this.isOpen?"open":"close")}},render:function(e){var t=e("div",{staticClass:"collapse-trigger",on:{click:this.toggle}},this.$scopedSlots.trigger?[this.$scopedSlots.trigger({open:this.isOpen})]:[this.$slots.trigger]),content=e("transition",{props:{name:this.animation}},[e("div",{staticClass:"collapse-content",attrs:{id:this.ariaId,"aria-expanded":this.isOpen},directives:[{name:"show",value:this.isOpen}]},this.$slots.default)]);return e("div",{staticClass:"collapse"},"is-top"===this.position?[t,content]:[content,t])}},undefined,undefined,undefined,void 0,void 0),ie={install:function(e){I(e,ne)}};use(ie);var re,ae=ie,oe="AM",se="PM",ue="24",le="12",ce={mixins:[P],inheritAttrs:!1,props:{value:Date,inline:Boolean,minTime:Date,maxTime:Date,placeholder:String,editable:Boolean,disabled:Boolean,hourFormat:{type:String,default:ue,validator:function(e){return e===ue||e===le}},incrementHours:{type:Number,default:1},incrementMinutes:{type:Number,default:1},incrementSeconds:{type:Number,default:1},timeFormatter:{type:Function,default:function(e,t){return"function"==typeof A.defaultTimeFormatter?A.defaultTimeFormatter(e):function(e,t){var n=e.getHours(),r=e.getMinutes(),o=e.getSeconds(),l="";return t.hourFormat===le&&(l=" "+(n<12?oe:se),n>12?n-=12:0===n&&(n=12)),t.pad(n)+":"+t.pad(r)+(t.enableSeconds?":"+t.pad(o):"")+l}(e,t)}},timeParser:{type:Function,default:function(e,t){return"function"==typeof A.defaultTimeParser?A.defaultTimeParser(e):function(e,t){if(e){var n=!1;if(t.hourFormat===le){var r=e.split(" ");e=r[0],n=r[1]===oe}var time=e.split(":"),o=parseInt(time[0],10),l=parseInt(time[1],10),c=t.enableSeconds?parseInt(time[2],10):0;if(isNaN(o)||o<0||o>23||t.hourFormat===le&&(o<1||o>12)||isNaN(l)||l<0||l>59)return null;var d=null;return t.computedValue&&!isNaN(t.computedValue)?d=new Date(t.computedValue):(d=t.timeCreator()).setMilliseconds(0),d.setSeconds(c),d.setMinutes(l),t.hourFormat===le&&(n&&12===o?o=0:n||12===o||(o+=12)),d.setHours(o),new Date(d.getTime())}return null}(e,t)}},mobileNative:{type:Boolean,default:function(){return A.defaultTimepickerMobileNative}},timeCreator:{type:Function,default:function(){return"function"==typeof A.defaultTimeCreator?A.defaultTimeCreator():new Date}},position:String,unselectableTimes:Array,openOnFocus:Boolean,enableSeconds:Boolean,defaultMinutes:Number,defaultSeconds:Number,focusable:{type:Boolean,default:!0},tzOffset:{type:Number,default:0},appendToBody:Boolean},data:function(){return{dateSelected:this.value,hoursSelected:null,minutesSelected:null,secondsSelected:null,meridienSelected:null,_elementRef:"input",AM:oe,PM:se,HOUR_FORMAT_24:ue,HOUR_FORMAT_12:le}},computed:{computedValue:{get:function(){return this.dateSelected},set:function(e){this.dateSelected=e,this.$emit("input",this.dateSelected)}},hours:function(){if(!this.incrementHours||this.incrementHours<1)throw new Error("Hour increment cannot be null or less than 1.");for(var e=[],t=this.isHourFormat24?24:12,i=0;i=12?se:oe)},value:{handler:function(e){this.updateInternalState(e),!this.isValid&&this.$refs.input.checkHtml5Validity()},immediate:!0}},methods:{onMeridienChange:function(e){null!==this.hoursSelected&&(e===se?this.hoursSelected+=12:e===oe&&(this.hoursSelected-=12)),this.updateDateSelected(this.hoursSelected,this.minutesSelected,this.enableSeconds?this.secondsSelected:0,e)},onHoursChange:function(e){this.minutesSelected||void 0===this.defaultMinutes||(this.minutesSelected=this.defaultMinutes),this.secondsSelected||void 0===this.defaultSeconds||(this.secondsSelected=this.defaultSeconds),this.updateDateSelected(parseInt(e,10),this.minutesSelected,this.enableSeconds?this.secondsSelected:0,this.meridienSelected)},onMinutesChange:function(e){!this.secondsSelected&&this.defaultSeconds&&(this.secondsSelected=this.defaultSeconds),this.updateDateSelected(this.hoursSelected,parseInt(e,10),this.enableSeconds?this.secondsSelected:0,this.meridienSelected)},onSecondsChange:function(e){this.updateDateSelected(this.hoursSelected,this.minutesSelected,parseInt(e,10),this.meridienSelected)},updateDateSelected:function(e,t,n,r){if(null!=e&&null!=t&&(!this.isHourFormat24&&null!==r||this.isHourFormat24)){var time=null;this.computedValue&&!isNaN(this.computedValue)?time=new Date(this.computedValue):(time=this.timeCreator()).setMilliseconds(0),time.setHours(e),time.setMinutes(t),time.setSeconds(n),this.computedValue=new Date(time.getTime())}},updateInternalState:function(e){e?(this.hoursSelected=e.getHours(),this.minutesSelected=e.getMinutes(),this.secondsSelected=e.getSeconds(),this.meridienSelected=e.getHours()>=12?se:oe):(this.hoursSelected=null,this.minutesSelected=null,this.secondsSelected=null,this.meridienSelected=oe),this.dateSelected=e},isHourDisabled:function(e){var t=this,n=!1;if(this.minTime){var r=this.minTime.getHours(),o=this.minutes.every((function(n){return t.isMinuteDisabledForHour(e,n.value)}));n=el}this.unselectableTimes&&(n||(n=this.unselectableTimes.filter((function(time){return t.enableSeconds&&null!==t.secondsSelected?time.getHours()===e&&time.getMinutes()===t.minutesSelected&&time.getSeconds()===t.secondsSelected:null!==t.minutesSelected?time.getHours()===e&&time.getMinutes()===t.minutesSelected:time.getHours()===e})).length>0));return n},isMinuteDisabledForHour:function(e,t){var n=!1;if(this.minTime){var r=this.minTime.getHours(),o=this.minTime.getMinutes();n=e===r&&tc}return n},isMinuteDisabled:function(e){var t=this,n=!1;null!==this.hoursSelected&&(n=!!this.isHourDisabled(this.hoursSelected)||this.isMinuteDisabledForHour(this.hoursSelected,e),this.unselectableTimes&&(n||(n=this.unselectableTimes.filter((function(time){return t.enableSeconds&&null!==t.secondsSelected?time.getHours()===t.hoursSelected&&time.getMinutes()===e&&time.getSeconds()===t.secondsSelected:time.getHours()===t.hoursSelected&&time.getMinutes()===e})).length>0)));return n},isSecondDisabled:function(e){var t=this,n=!1;if(null!==this.minutesSelected){if(this.isMinuteDisabled(this.minutesSelected))n=!0;else{if(this.minTime){var r=this.minTime.getHours(),o=this.minTime.getMinutes(),l=this.minTime.getSeconds();n=this.hoursSelected===r&&this.minutesSelected===o&&eh}}if(this.unselectableTimes)if(!n)n=this.unselectableTimes.filter((function(time){return time.getHours()===t.hoursSelected&&time.getMinutes()===t.minutesSelected&&time.getSeconds()===e})).length>0}return n},onChange:function(e){var t=this.timeParser(e,this);this.updateInternalState(t),t&&!isNaN(t)?this.computedValue=t:(this.computedValue=null,this.$refs.input.newValue=this.computedValue)},toggle:function(e){this.$refs.dropdown&&(this.$refs.dropdown.isActive="boolean"==typeof e?e:!this.$refs.dropdown.isActive)},close:function(){this.toggle(!1)},handleOnFocus:function(){this.onFocus(),this.openOnFocus&&this.toggle(!0)},formatHHMMSS:function(e){var t=new Date(e);if(e&&!isNaN(t)){var n=t.getHours(),r=t.getMinutes(),o=t.getSeconds();return this.formatNumber(n,!0)+":"+this.formatNumber(r,!0)+":"+this.formatNumber(o,!0)}return""},onChangeNativePicker:function(e){var t=e.target.value;if(t){var time=null;this.computedValue&&!isNaN(this.computedValue)?time=new Date(this.computedValue):(time=new Date).setMilliseconds(0);var n=t.split(":");time.setHours(parseInt(n[0],10)),time.setMinutes(parseInt(n[1],10)),time.setSeconds(n[2]?parseInt(n[2],10):0),this.computedValue=new Date(time.getTime())}else this.computedValue=null},formatNumber:function(e,t){return this.isHourFormat24||t?this.pad(e):e},pad:function(e){return(e<10?"0":"")+e},formatValue:function(e){return e&&!isNaN(e)?this.timeFormatter(e,this):null},keyPress:function(e){this.$refs.dropdown&&this.$refs.dropdown.isActive&&27===e.keyCode&&this.toggle(!1)},onActiveChange:function(e){e||this.onBlur()}},created:function(){"undefined"!=typeof window&&document.addEventListener("keyup",this.keyPress)},beforeDestroy:function(){"undefined"!=typeof window&&document.removeEventListener("keyup",this.keyPress)}},de=function(element){return element?arguments.length>1&&void 0!==arguments[1]&&arguments[1]?element.querySelectorAll('*[tabindex="-1"]'):element.querySelectorAll('a[href]:not([tabindex="-1"]),\n area[href],\n input:not([disabled]),\n select:not([disabled]),\n textarea:not([disabled]),\n button:not([disabled]),\n iframe,\n object,\n embed,\n *[tabindex]:not([tabindex="-1"]),\n *[contenteditable]'):null},he={bind:function(e,t){var n=t.value;if(void 0===n||n){var r=de(e),o=de(e,!0);r&&r.length>0&&(re=function(t){r=de(e),o=de(e,!0);var n=r[0],l=r[r.length-1];t.target===n&&t.shiftKey&&"Tab"===t.key?(t.preventDefault(),l.focus()):(t.target===l||Array.from(o).indexOf(t.target)>=0)&&!t.shiftKey&&"Tab"===t.key&&(t.preventDefault(),n.focus())},e.addEventListener("keydown",re))}},unbind:function(e){e.removeEventListener("keydown",re)}},fe=["escape","outside"];var pe=D({render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{ref:"dropdown",staticClass:"dropdown dropdown-menu-animation",class:e.rootClasses},[e.inline?e._e():n("div",{ref:"trigger",staticClass:"dropdown-trigger",attrs:{role:"button","aria-haspopup":"true"},on:{click:e.toggle,mouseenter:e.checkHoverable}},[e._t("trigger",null,{active:e.isActive})],2),e._v(" "),n("transition",{attrs:{name:e.animation}},[e.isMobileModal?n("div",{directives:[{name:"show",rawName:"v-show",value:e.isActive,expression:"isActive"}],staticClass:"background",attrs:{"aria-hidden":!e.isActive}}):e._e()]),e._v(" "),n("transition",{attrs:{name:e.animation}},[n("div",{directives:[{name:"show",rawName:"v-show",value:!e.disabled&&(e.isActive||e.isHoverable)||e.inline,expression:"(!disabled && (isActive || isHoverable)) || inline"},{name:"trap-focus",rawName:"v-trap-focus",value:e.trapFocus,expression:"trapFocus"}],ref:"dropdownMenu",staticClass:"dropdown-menu",style:e.style,attrs:{"aria-hidden":!e.isActive}},[n("div",{staticClass:"dropdown-content",style:e.contentStyle,attrs:{role:e.ariaRole}},[e._t("default")],2)])])],1)},staticRenderFns:[]},undefined,{name:"BDropdown",directives:{trapFocus:he},props:{value:{type:[String,Number,Boolean,Object,Array,Function],default:null},disabled:Boolean,hoverable:Boolean,inline:Boolean,scrollable:Boolean,maxHeight:{type:[String,Number],default:200},position:{type:String,validator:function(e){return["is-top-right","is-top-left","is-bottom-left","is-bottom-right"].indexOf(e)>-1}},mobileModal:{type:Boolean,default:function(){return A.defaultDropdownMobileModal}},ariaRole:{type:String,validator:function(e){return["menu","list","dialog"].indexOf(e)>-1},default:null},animation:{type:String,default:"fade"},multiple:Boolean,trapFocus:{type:Boolean,default:function(){return A.defaultTrapFocus}},closeOnClick:{type:Boolean,default:!0},canClose:{type:[Array,Boolean],default:!0},expanded:Boolean,appendToBody:Boolean,appendToBodyCopyParent:Boolean},data:function(){return{selected:this.value,style:{},isActive:!1,isHoverable:this.hoverable,_isDropdown:!0,_bodyEl:void 0}},computed:{rootClasses:function(){return[this.position,{"is-disabled":this.disabled,"is-hoverable":this.hoverable,"is-inline":this.inline,"is-active":this.isActive||this.inline,"is-mobile-modal":this.isMobileModal,"is-expanded":this.expanded}]},isMobileModal:function(){return this.mobileModal&&!this.inline&&!this.hoverable},cancelOptions:function(){return"boolean"==typeof this.canClose?this.canClose?fe:[]:this.canClose},contentStyle:function(){return{maxHeight:this.scrollable?void 0===this.maxHeight?null:isNaN(this.maxHeight)?this.maxHeight:this.maxHeight+"px":null,overflow:this.scrollable?"auto":null}}},watch:{value:function(e){this.selected=e},isActive:function(e){var t=this;this.$emit("active-change",e),this.appendToBody&&this.$nextTick((function(){t.updateAppendToBody()}))}},methods:{selectItem:function(e){if(this.multiple){if(this.selected){var t=this.selected.indexOf(e);-1===t?this.selected.push(e):this.selected.splice(t,1)}else this.selected=[e];this.$emit("change",this.selected)}else this.selected!==e&&(this.selected=e,this.$emit("change",this.selected));this.$emit("input",this.selected),this.multiple||(this.isActive=!this.closeOnClick,this.hoverable&&this.closeOnClick&&(this.isHoverable=!1))},isInWhiteList:function(e){if(e===this.$refs.dropdownMenu)return!0;if(e===this.$refs.trigger)return!0;if(void 0!==this.$refs.dropdownMenu){var t=this.$refs.dropdownMenu.querySelectorAll("*"),n=!0,r=!1,o=void 0;try{for(var l,c=t[Symbol.iterator]();!(n=(l=c.next()).done);n=!0){if(e===l.value)return!0}}catch(e){r=!0,o=e}finally{try{n||null==c.return||c.return()}finally{if(r)throw o}}}if(void 0!==this.$refs.trigger){var d=this.$refs.trigger.querySelectorAll("*"),h=!0,f=!1,m=void 0;try{for(var v,y=d[Symbol.iterator]();!(h=(v=y.next()).done);h=!0){if(e===v.value)return!0}}catch(e){f=!0,m=e}finally{try{h||null==y.return||y.return()}finally{if(f)throw m}}}return!1},clickedOutside:function(e){this.cancelOptions.indexOf("outside")<0||this.inline||this.isInWhiteList(e.target)||(this.isActive=!1)},keyPress:function(e){if(this.isActive&&27===e.keyCode){if(this.cancelOptions.indexOf("escape")<0)return;this.isActive=!1}},toggle:function(){var e=this;this.disabled||(this.isActive?this.isActive=!this.isActive:this.$nextTick((function(){var t=!e.isActive;e.isActive=t,setTimeout((function(){return e.isActive=t}))})))},checkHoverable:function(){this.hoverable&&(this.isHoverable=!0)},updateAppendToBody:function(){var e=this.$refs.dropdownMenu,t=this.$refs.trigger;if(e&&t){var n=this.$data._bodyEl.children[0];if(n.classList.forEach((function(e){return n.classList.remove(e)})),n.classList.add("dropdown"),n.classList.add("dropdown-menu-animation"),this.$vnode&&this.$vnode.data&&this.$vnode.data.staticClass&&n.classList.add(this.$vnode.data.staticClass),this.rootClasses.forEach((function(e){if(e&&"object"===r(e))for(var t in e)e[t]&&n.classList.add(t)})),this.appendToBodyCopyParent){var o=this.$refs.dropdown.parentNode,l=this.$data._bodyEl;l.classList.forEach((function(e){return l.classList.remove(e)})),o.classList.forEach((function(e){l.classList.add(e)}))}var rect=t.getBoundingClientRect(),c=rect.top+window.scrollY,d=rect.left+window.scrollX;!this.position||this.position.indexOf("bottom")>=0?c+=t.clientHeight:c-=e.clientHeight,this.position&&this.position.indexOf("left")>=0&&(d-=e.clientWidth-t.clientWidth),this.style={position:"absolute",top:"".concat(c,"px"),left:"".concat(d,"px"),zIndex:"99"}}}},mounted:function(){this.appendToBody&&(this.$data._bodyEl=k(this.$refs.dropdownMenu),this.updateAppendToBody())},created:function(){"undefined"!=typeof window&&(document.addEventListener("click",this.clickedOutside),document.addEventListener("keyup",this.keyPress))},beforeDestroy:function(){"undefined"!=typeof window&&(document.removeEventListener("click",this.clickedOutside),document.removeEventListener("keyup",this.keyPress)),this.appendToBody&&S(this.$data._bodyEl)}},undefined,!1,undefined,void 0,void 0);var me=D({render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return e.separator?n("hr",{staticClass:"dropdown-divider"}):e.custom||e.hasLink?n("div",{class:e.itemClasses,attrs:{role:e.ariaRoleItem,tabindex:e.isFocusable?0:null},on:{click:e.selectItem}},[e._t("default")],2):n("a",{staticClass:"dropdown-item",class:e.anchorClasses,attrs:{role:e.ariaRoleItem,tabindex:e.isFocusable?0:null},on:{click:e.selectItem}},[e._t("default")],2)},staticRenderFns:[]},undefined,{name:"BDropdownItem",props:{value:{type:[String,Number,Boolean,Object,Array,Function],default:null},separator:Boolean,disabled:Boolean,custom:Boolean,focusable:{type:Boolean,default:!0},paddingless:Boolean,hasLink:Boolean,ariaRole:{type:String,default:""}},computed:{anchorClasses:function(){return{"is-disabled":this.$parent.disabled||this.disabled,"is-paddingless":this.paddingless,"is-active":this.isActive}},itemClasses:function(){return{"dropdown-item":!this.hasLink,"is-disabled":this.disabled,"is-paddingless":this.paddingless,"is-active":this.isActive,"has-link":this.hasLink}},ariaRoleItem:function(){return"menuitem"===this.ariaRole||"listitem"===this.ariaRole?this.ariaRole:null},isClickable:function(){return!(this.$parent.disabled||this.separator||this.disabled||this.custom)},isActive:function(){return null!==this.$parent.selected&&(this.$parent.multiple?this.$parent.selected.indexOf(this.value)>=0:this.value===this.$parent.selected)},isFocusable:function(){return!this.hasLink&&this.focusable}},methods:{selectItem:function(){this.isClickable&&(this.$parent.selectItem(this.value),this.$emit("click"))}},created:function(){if(!this.$parent.$data._isDropdown)throw this.$destroy(),new Error("You should wrap bDropdownItem on a bDropdown")}},undefined,!1,undefined,void 0,void 0),ge={name:"BFieldBody",props:{message:{type:[String,Array]},type:{type:[String,Object]}},render:function(e){var t=this,n=!0;return e("div",{attrs:{class:"field-body"}},this.$slots.default.map((function(element){return element.tag?(n&&(r=t.message,n=!1),e("b-field",{attrs:{type:t.type,message:r}},[element])):element;var r})))}};var ve=D({},undefined,ge,undefined,undefined,undefined,void 0,void 0),ye={name:"BField",components:o({},ve.name,ve),props:{type:[String,Object],label:String,labelFor:String,message:[String,Array,Object],grouped:Boolean,groupMultiline:Boolean,position:String,expanded:Boolean,horizontal:Boolean,addons:{type:Boolean,default:!0},customClass:String,labelPosition:{type:String,default:function(){return A.defaultFieldLabelPosition}}},data:function(){return{newType:this.type,newMessage:this.message,fieldLabelSize:null,_isField:!0}},computed:{rootClasses:function(){return[this.newPosition,{"is-expanded":this.expanded,"is-grouped-multiline":this.groupMultiline,"is-horizontal":this.horizontal,"is-floating-in-label":this.hasLabel&&!this.horizontal&&"inside"===this.labelPosition,"is-floating-label":this.hasLabel&&!this.horizontal&&"on-border"===this.labelPosition},this.numberInputClasses]},newPosition:function(){if(void 0!==this.position){var e=this.position.split("-");if(!(e.length<1)){var t=this.grouped?"is-grouped-":"has-addons-";return this.position?t+e[1]:void 0}}},formattedMessage:function(){if("string"==typeof this.newMessage)return[this.newMessage];var e=[];if(Array.isArray(this.newMessage))this.newMessage.forEach((function(t){if("string"==typeof t)e.push(t);else for(var n in t)t[n]&&e.push(n)}));else for(var t in this.newMessage)this.newMessage[t]&&e.push(t);return e.filter((function(e){if(e)return e}))},hasLabel:function(){return this.label||this.$slots.label},hasMessage:function(){return this.newMessage||this.$slots.message},numberInputClasses:function(){if(this.$slots.default){var e=this.$slots.default.filter((function(e){return e.tag&&e.tag.toLowerCase().indexOf("numberinput")>=0}))[0];if(e){var t=["has-numberinput"],n=e.componentOptions.propsData.controlsPosition,r=e.componentOptions.propsData.size;return n&&t.push("has-numberinput-".concat(n)),r&&t.push("has-numberinput-".concat(r)),t}}return null}},watch:{type:function(e){this.newType=e},message:function(e){this.newMessage=e}},methods:{fieldType:function(){if(this.grouped)return"is-grouped";var e=0;return this.$slots.default&&(e=this.$slots.default.reduce((function(i,e){return e.tag?i+1:i}),0)),e>1&&this.addons&&!this.horizontal?"has-addons":void 0}},mounted:function(){this.horizontal&&(this.$el.querySelectorAll(".input, .select, .button, .textarea, .b-slider").length>0&&(this.fieldLabelSize="is-normal"))}};var be=D({render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"field",class:[e.rootClasses,e.fieldType()]},[e.horizontal?n("div",{staticClass:"field-label",class:[e.customClass,e.fieldLabelSize]},[e.hasLabel?n("label",{staticClass:"label",class:e.customClass,attrs:{for:e.labelFor}},[e.$slots.label?e._t("label"):[e._v(e._s(e.label))]],2):e._e()]):[e.hasLabel?n("label",{staticClass:"label",class:e.customClass,attrs:{for:e.labelFor}},[e.$slots.label?e._t("label"):[e._v(e._s(e.label))]],2):e._e()],e._v(" "),e.horizontal?n("b-field-body",{attrs:{message:e.newMessage?e.formattedMessage:"",type:e.newType}},[e._t("default")],2):[e._t("default")],e._v(" "),e.hasMessage&&!e.horizontal?n("p",{staticClass:"help",class:e.newType},[e.$slots.message?e._t("message"):[e._l(e.formattedMessage,(function(t,i){return[e._v("\r\n "+e._s(t)+"\r\n "),i+1=this.countPerRing},calcHandAngle:function(e){var t=this.degreesPerUnit*(e-this.min);return this.isInnerRing(e)&&(t-=360),t},calcHandScale:function(e){return this.isInnerRing(e)?this.innerRadius/this.outerRadius:1},onMouseDown:function(e){e.preventDefault(),this.isDragging=!0,this.onDragMove(e)},onMouseUp:function(){this.isDragging=!1,this.isDisabled(this.inputValue)||this.$emit("change",this.inputValue)},onDragMove:function(e){if(e.preventDefault(),this.isDragging||"click"===e.type){var t=this.$refs.clock.getBoundingClientRect(),n=t.width,r=t.top,o=t.left,l="touches"in e?e.touches[0]:e,c={x:n/2,y:-n/2},d={x:l.clientX-o,y:r-l.clientY},h=Math.round(this.coordToAngle(c,d)+360)%360,f=this.double&&this.euclidean(c,d)<(this.outerRadius+this.innerRadius)/2-16,m=Math.round(h/this.degreesPerUnit)+this.min+(f?this.countPerRing:0);h>=360-this.degreesPerUnit/2&&(m=f?this.max:this.min),this.update(m)}},update:function(e){this.inputValue===e||this.isDisabled(e)||(this.prevAngle=this.handRotateAngle,this.inputValue=e,this.$emit("input",e))}}},undefined,!1,undefined,void 0,void 0);var we=D({render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"b-clockpicker control",class:[e.size,e.type,{"is-expanded":e.expanded}]},[!e.isMobile||e.inline?n("b-dropdown",{ref:"dropdown",attrs:{position:e.position,disabled:e.disabled,inline:e.inline,"append-to-body":e.appendToBody,"append-to-body-copy-parent":""},on:{"active-change":e.onActiveChange}},[e.inline?e._e():n("b-input",e._b({ref:"input",attrs:{slot:"trigger",autocomplete:"off",value:e.formatValue(e.computedValue),placeholder:e.placeholder,size:e.size,icon:e.icon,"icon-pack":e.iconPack,loading:e.loading,disabled:e.disabled,readonly:!e.editable,rounded:e.rounded,"use-html5-validation":e.useHtml5Validation},on:{focus:e.handleOnFocus,blur:function(t){e.onBlur()&&e.checkHtml5Validity()}},nativeOn:{click:function(t){t.stopPropagation(),e.toggle(!0)},keyup:function(t){if(!("button"in t)&&e._k(t.keyCode,"enter",13,t.key,"Enter"))return null;e.toggle(!0)},change:function(t){return e.onChangeNativePicker(t)}},slot:"trigger"},"b-input",e.$attrs,!1)),e._v(" "),n("div",{staticClass:"card",attrs:{disabled:e.disabled,custom:""}},[e.inline?n("header",{staticClass:"card-header"},[n("div",{staticClass:"b-clockpicker-header card-header-title"},[n("div",{staticClass:"b-clockpicker-time"},[n("span",{staticClass:"b-clockpicker-btn",class:{active:e.isSelectingHour},on:{click:function(t){e.isSelectingHour=!0}}},[e._v(e._s(e.hoursDisplay))]),e._v(" "),n("span",[e._v(":")]),e._v(" "),n("span",{staticClass:"b-clockpicker-btn",class:{active:!e.isSelectingHour},on:{click:function(t){e.isSelectingHour=!1}}},[e._v(e._s(e.minutesDisplay))])]),e._v(" "),e.isHourFormat24?e._e():n("div",{staticClass:"b-clockpicker-period"},[n("div",{staticClass:"b-clockpicker-btn",class:{active:e.meridienSelected==e.AM},on:{click:function(t){e.onMeridienClick(e.AM)}}},[e._v("am")]),e._v(" "),n("div",{staticClass:"b-clockpicker-btn",class:{active:e.meridienSelected==e.PM},on:{click:function(t){e.onMeridienClick(e.PM)}}},[e._v("pm")])])])]):e._e(),e._v(" "),n("div",{staticClass:"card-content"},[n("div",{staticClass:"b-clockpicker-body",style:{width:e.faceSize+"px",height:e.faceSize+"px"}},[e.inline?e._e():n("div",{staticClass:"b-clockpicker-time"},[n("div",{staticClass:"b-clockpicker-btn",class:{active:e.isSelectingHour},on:{click:function(t){e.isSelectingHour=!0}}},[e._v(e._s(e.hoursLabel))]),e._v(" "),n("span",{staticClass:"b-clockpicker-btn",class:{active:!e.isSelectingHour},on:{click:function(t){e.isSelectingHour=!1}}},[e._v(e._s(e.minutesLabel))])]),e._v(" "),e.isHourFormat24||e.inline?e._e():n("div",{staticClass:"b-clockpicker-period"},[n("div",{staticClass:"b-clockpicker-btn",class:{active:e.meridienSelected==e.AM},on:{click:function(t){e.onMeridienClick(e.AM)}}},[e._v(e._s(e.AM))]),e._v(" "),n("div",{staticClass:"b-clockpicker-btn",class:{active:e.meridienSelected==e.PM},on:{click:function(t){e.onMeridienClick(e.PM)}}},[e._v(e._s(e.PM))])]),e._v(" "),n("b-clockpicker-face",{attrs:{"picker-size":e.faceSize,min:e.minFaceValue,max:e.maxFaceValue,"face-numbers":e.isSelectingHour?e.hours:e.minutes,"disabled-values":e.faceDisabledValues,double:e.isSelectingHour&&e.isHourFormat24,value:e.isSelectingHour?e.hoursSelected:e.minutesSelected},on:{input:e.onClockInput,change:e.onClockChange}})],1)]),e._v(" "),void 0!==e.$slots.default&&e.$slots.default.length?n("footer",{staticClass:"b-clockpicker-footer card-footer"},[e._t("default")],2):e._e()])],1):n("b-input",e._b({ref:"input",attrs:{type:"time",autocomplete:"off",value:e.formatHHMMSS(e.computedValue),placeholder:e.placeholder,size:e.size,icon:e.icon,"icon-pack":e.iconPack,loading:e.loading,max:e.formatHHMMSS(e.maxTime),min:e.formatHHMMSS(e.minTime),disabled:e.disabled,readonly:!1,"use-html5-validation":e.useHtml5Validation},on:{focus:e.handleOnFocus,blur:function(t){e.onBlur()&&e.checkHtml5Validity()}},nativeOn:{click:function(t){t.stopPropagation(),e.toggle(!0)},keyup:function(t){if(!("button"in t)&&e._k(t.keyCode,"enter",13,t.key,"Enter"))return null;e.toggle(!0)},change:function(t){return e.onChangeNativePicker(t)}}},"b-input",e.$attrs,!1))],1)},staticRenderFns:[]},undefined,{name:"BClockpicker",components:(_e={},o(_e,Te.name,Te),o(_e,N.name,N),o(_e,be.name,be),o(_e,L.name,L),o(_e,pe.name,pe),o(_e,me.name,me),_e),mixins:[ce],props:{pickerSize:{type:Number,default:290},hourFormat:{type:String,default:"12",validator:function(e){return"24"===e||"12"===e}},incrementMinutes:{type:Number,default:5},autoSwitch:{type:Boolean,default:!0},type:{type:String,default:"is-primary"},hoursLabel:{type:String,default:function(){return A.defaultClockpickerHoursLabel||"Hours"}},minutesLabel:{type:String,default:function(){return A.defaultClockpickerMinutesLabel||"Min"}}},data:function(){return{isSelectingHour:!0,isDragging:!1,_isClockpicker:!0}},computed:{hoursDisplay:function(){if(null==this.hoursSelected)return"--";if(this.isHourFormat24)return this.pad(this.hoursSelected);var e=this.hoursSelected;return this.meridienSelected===this.PM&&(e-=12),0===e&&(e=12),e},minutesDisplay:function(){return null==this.minutesSelected?"--":this.pad(this.minutesSelected)},minFaceValue:function(){return this.isSelectingHour&&!this.isHourFormat24&&this.meridienSelected===this.PM?12:0},maxFaceValue:function(){return this.isSelectingHour?this.isHourFormat24||this.meridienSelected!==this.AM?23:11:59},faceSize:function(){return this.pickerSize-24},faceDisabledValues:function(){return this.isSelectingHour?this.isHourDisabled:this.isMinuteDisabled}},methods:{onClockInput:function(e){this.isSelectingHour?(this.hoursSelected=e,this.onHoursChange(e)):(this.minutesSelected=e,this.onMinutesChange(e))},onClockChange:function(e){this.autoSwitch&&this.isSelectingHour&&(this.isSelectingHour=!this.isSelectingHour)},onMeridienClick:function(e){this.meridienSelected!==e&&(this.meridienSelected=e,this.onMeridienChange(e))}}},undefined,!1,undefined,void 0,void 0),Se={install:function(e){I(e,we)}};use(Se);var ke=Se;var xe=D({render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"control",class:{"is-expanded":e.expanded,"has-icons-left":e.icon}},[n("span",{staticClass:"select",class:e.spanClasses},[n("select",e._b({directives:[{name:"model",rawName:"v-model",value:e.computedValue,expression:"computedValue"}],ref:"select",attrs:{multiple:e.multiple,size:e.nativeSize},on:{blur:function(t){e.$emit("blur",t)&&e.checkHtml5Validity()},focus:function(t){e.$emit("focus",t)},change:function(t){var n=Array.prototype.filter.call(t.target.options,(function(e){return e.selected})).map((function(e){return"_value"in e?e._value:e.value}));e.computedValue=t.target.multiple?n:n[0]}}},"select",e.$attrs,!1),[e.placeholder?[null==e.computedValue?n("option",{attrs:{disabled:"",hidden:""},domProps:{value:null}},[e._v("\r\n "+e._s(e.placeholder)+"\r\n ")]):e._e()]:e._e(),e._v(" "),e._t("default")],2)]),e._v(" "),e.icon?n("b-icon",{staticClass:"is-left",attrs:{icon:e.icon,pack:e.iconPack,size:e.iconSize}}):e._e()],1)},staticRenderFns:[]},undefined,{name:"BSelect",components:o({},L.name,L),mixins:[P],inheritAttrs:!1,props:{value:{type:[String,Number,Boolean,Object,Array,Function],default:null},placeholder:String,multiple:Boolean,nativeSize:[String,Number]},data:function(){return{selected:this.value,_elementRef:"select"}},computed:{computedValue:{get:function(){return this.selected},set:function(e){this.selected=e,this.$emit("input",e),!this.isValid&&this.checkHtml5Validity()}},spanClasses:function(){return[this.size,this.statusType,{"is-fullwidth":this.expanded,"is-loading":this.loading,"is-multiple":this.multiple,"is-rounded":this.rounded,"is-empty":null===this.selected}]}},watch:{value:function(e){this.selected=e,!this.isValid&&this.checkHtml5Validity()}}},undefined,!1,undefined,void 0,void 0),Ce={name:"BDatepickerTableRow",props:{selectedDate:{type:[Date,Array]},hoveredDateRange:Array,day:{type:Number},week:{type:Array,required:!0},month:{type:Number,required:!0},minDate:Date,maxDate:Date,disabled:Boolean,unselectableDates:Array,unselectableDaysOfWeek:Array,selectableDates:Array,events:Array,indicators:String,dateCreator:Function,nearbyMonthDays:Boolean,nearbySelectableMonthDays:Boolean,showWeekNumber:{type:Boolean,default:function(){return!1}},range:Boolean,multiple:Boolean,rulesForFirstWeek:{type:Number,default:function(){return 4}},firstDayOfWeek:Number},watch:{day:{handler:function(e){var t=this,n="day-".concat(e);this.$refs[n]&&this.$refs[n].length>0&&this.$nextTick((function(){t.$refs[n][0]&&t.$refs[n][0].focus()}))},immediate:!0}},methods:{firstWeekOffset:function(e,t,n){var r=7+t-n;return-((7+new Date(e,0,r).getDay()-t)%7)+r-1},daysInYear:function(e){return this.isLeapYear(e)?366:365},isLeapYear:function(e){return e%4==0&&e%100!=0||e%400==0},getSetDayOfYear:function(input){return Math.round((input-new Date(input.getFullYear(),0,1))/864e5)+1},weeksInYear:function(e,t,n){var r=this.firstWeekOffset(e,t,n),o=this.firstWeekOffset(e+1,t,n);return(this.daysInYear(e)-r+o)/7},getWeekNumber:function(e){var t,n,r=this.firstDayOfWeek,o=this.rulesForFirstWeek,l=this.firstWeekOffset(e.getFullYear(),r,o),c=Math.floor((this.getSetDayOfYear(e)-l-1)/7)+1;return c<1?(n=e.getFullYear()-1,t=c+this.weeksInYear(n,r,o)):c>this.weeksInYear(e.getFullYear(),r,o)?(t=c-this.weeksInYear(e.getFullYear(),r,o),n=e.getFullYear()+1):(n=e.getFullYear(),t=c),t},selectableDate:function(e){var t=[];if(this.minDate&&t.push(e>=this.minDate),this.maxDate&&t.push(e<=this.maxDate),this.nearbyMonthDays&&!this.nearbySelectableMonthDays&&t.push(e.getMonth()===this.month),this.selectableDates)for(var i=0;it[0]&&ee?(this.selectedEndDate=this.selectedBeginDate,this.selectedBeginDate=e):this.selectedEndDate=e,this.$emit("range-end",e),this.$emit("input",[this.selectedBeginDate,this.selectedEndDate])):(this.selectedBeginDate=e,this.$emit("range-start",e))},handleSelectMultipleDates:function(e){this.multipleSelectedDates.filter((function(t){return t.getDate()===e.getDate()&&t.getFullYear()===e.getFullYear()&&t.getMonth()===e.getMonth()})).length?this.multipleSelectedDates=this.multipleSelectedDates.filter((function(t){return t.getDate()!==e.getDate()||t.getFullYear()!==e.getFullYear()||t.getMonth()!==e.getMonth()})):this.multipleSelectedDates.push(e),this.$emit("input",this.multipleSelectedDates)},weekBuilder:function(e,t,n){for(var r=new Date(n,t),o=[],l=new Date(n,t,e).getDay(),c=l>=this.firstDayOfWeek?l-this.firstDayOfWeek:7-this.firstDayOfWeek+l,d=1,i=0;i=this.minDate),this.maxDate&&t.push(e<=this.maxDate),this.nearbyMonthDays&&!this.nearbySelectableMonthDays&&t.push(e.getMonth()===this.focused.month),this.selectableDates)for(var i=0;i0&&this.$nextTick((function(){t.$refs[n][0]&&t.$refs[n][0].focus()}))},deep:!0,immediate:!0}},methods:{selectMultipleDates:function(e){this.multipleSelectedDates.filter((function(t){return t.getDate()===e.getDate()&&t.getFullYear()===e.getFullYear()&&t.getMonth()===e.getMonth()})).length?this.multipleSelectedDates=this.multipleSelectedDates.filter((function(t){return t.getDate()!==e.getDate()||t.getFullYear()!==e.getFullYear()||t.getMonth()!==e.getMonth()})):this.multipleSelectedDates.push(e),this.$emit("input",this.multipleSelectedDates)},selectableDate:function(e){var t=[];if(this.minDate&&t.push(e>=this.minDate),this.maxDate&&t.push(e<=this.maxDate),t.push(e.getFullYear()===this.focused.year),this.selectableDates)for(var i=0;i=0}},nearbyMonthDays:{type:Boolean,default:function(){return A.defaultDatepickerNearbyMonthDays}},nearbySelectableMonthDays:{type:Boolean,default:function(){return A.defaultDatepickerNearbySelectableMonthDays}},showWeekNumber:{type:Boolean,default:function(){return A.defaultDatepickerShowWeekNumber}},rulesForFirstWeek:{type:Number,default:function(){return 4}},range:{type:Boolean,default:!1},closeOnClick:{type:Boolean,default:!0},multiple:{type:Boolean,default:!1},mobileModal:{type:Boolean,default:function(){return A.defaultDatepickerMobileModal}},focusable:{type:Boolean,default:!0},trapFocus:{type:Boolean,default:function(){return A.defaultTrapFocus}},appendToBody:Boolean,ariaNextLabel:String,ariaPreviousLabel:String},data:function(){var e=(Array.isArray(this.value)?this.value[0]:this.value)||this.focusedDate||this.dateCreator();return{dateSelected:this.value,focusedDateData:{day:e.getDate(),month:e.getMonth(),year:e.getFullYear()},_elementRef:"input",_isDatepicker:!0}},computed:{computedValue:{get:function(){return this.dateSelected},set:function(e){var t=this;this.updateInternalState(e),this.multiple||this.togglePicker(!1),this.$emit("input",e),this.useHtml5Validation&&this.$nextTick((function(){t.checkHtml5Validity()}))}},listOfMonths:function(){var e=0,t=12;return this.minDate&&this.focusedDateData.year===this.minDate.getFullYear()&&(e=this.minDate.getMonth()),this.maxDate&&this.focusedDateData.year===this.maxDate.getFullYear()&&(t=this.maxDate.getMonth()),this.monthNames.map((function(n,r){return{name:n,index:r,disabled:rt}}))},listOfYears:function(){var e=this.focusedDateData.year+this.yearsRange[1];this.maxDate&&this.maxDate.getFullYear()t&&(t=Math.min(this.minDate.getFullYear(),this.focusedDateData.year));for(var n=[],i=t;i<=e;i++)n.push(i);return n.reverse()},showPrev:function(){return!!this.minDate&&(this.isTypeMonth?this.focusedDateData.year<=this.minDate.getFullYear():new Date(this.focusedDateData.year,this.focusedDateData.month)<=new Date(this.minDate.getFullYear(),this.minDate.getMonth()))},showNext:function(){return!!this.maxDate&&(this.isTypeMonth?this.focusedDateData.year>=this.maxDate.getFullYear():new Date(this.focusedDateData.year,this.focusedDateData.month)>=new Date(this.maxDate.getFullYear(),this.maxDate.getMonth()))},isMobile:function(){return this.mobileNative&&w.any()},isTypeMonth:function(){return"month"===this.type},ariaRole:function(){if(!this.inline)return"dialog"}},watch:{value:function(e){this.updateInternalState(e),this.multiple||this.togglePicker(!1)},focusedDate:function(e){e&&(this.focusedDateData={day:e.getDate(),month:e.getMonth(),year:e.getFullYear()})},"focusedDateData.month":function(e){this.$emit("change-month",e)},"focusedDateData.year":function(e){this.$emit("change-year",e)}},methods:{onChange:function(e){var t=this.dateParser(e,this);!t||isNaN(t)&&(!Array.isArray(t)||2!==t.length||isNaN(t[0])||isNaN(t[1]))?(this.computedValue=null,this.$refs.input.newValue=this.computedValue):this.computedValue=t},formatValue:function(e){return Array.isArray(e)?Array.isArray(e)&&e.every((function(e){return!isNaN(e)}))?this.dateFormatter(e,this):null:e&&!isNaN(e)?this.dateFormatter(e,this):null},prev:function(){this.disabled||(this.isTypeMonth?this.focusedDateData.year-=1:this.focusedDateData.month>0?this.focusedDateData.month-=1:(this.focusedDateData.month=11,this.focusedDateData.year-=1))},next:function(){this.disabled||(this.isTypeMonth?this.focusedDateData.year+=1:this.focusedDateData.month<11?this.focusedDateData.month+=1:(this.focusedDateData.month=0,this.focusedDateData.year+=1))},formatNative:function(e){return this.isTypeMonth?this.formatYYYYMM(e):this.formatYYYYMMDD(e)},formatYYYYMMDD:function(e){var t=new Date(e);if(e&&!isNaN(t)){var n=t.getFullYear(),r=t.getMonth()+1,o=t.getDate();return n+"-"+(r<10?"0":"")+r+"-"+(o<10?"0":"")+o}return""},formatYYYYMM:function(e){var t=new Date(e);if(e&&!isNaN(t)){var n=t.getFullYear(),r=t.getMonth()+1;return n+"-"+(r<10?"0":"")+r}return""},onChangeNativePicker:function(e){var t=e.target.value,s=t?t.split("-"):[];if(3===s.length){var n=parseInt(s[0],10),r=parseInt(s[1])-1,o=parseInt(s[2]);this.computedValue=new Date(n,r,o)}else this.computedValue=null},updateInternalState:function(e){var t=Array.isArray(e)?e.length?e[0]:this.dateCreator():e||this.dateCreator();this.focusedDateData={day:t.getDate(),month:t.getMonth(),year:t.getFullYear()},this.dateSelected=e},togglePicker:function(e){this.$refs.dropdown&&this.closeOnClick&&(this.$refs.dropdown.isActive="boolean"==typeof e?e:!this.$refs.dropdown.isActive)},handleOnFocus:function(e){this.onFocus(e),this.openOnFocus&&this.togglePicker(!0)},toggle:function(){if(this.mobileNative&&this.isMobile){var input=this.$refs.input.$refs.input;return input.focus(),void input.click()}this.$refs.dropdown.toggle()},onInputClick:function(e){this.$refs.dropdown.isActive&&e.stopPropagation()},keyPress:function(e){this.$refs.dropdown&&this.$refs.dropdown.isActive&&27===e.keyCode&&this.togglePicker(!1)},onActiveChange:function(e){e||this.onBlur()},changeFocus:function(e){this.focusedDateData={day:e.getDate(),month:e.getMonth(),year:e.getFullYear()}}},created:function(){"undefined"!=typeof window&&document.addEventListener("keyup",this.keyPress)},beforeDestroy:function(){"undefined"!=typeof window&&document.removeEventListener("keyup",this.keyPress)}};var Oe=D({render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"datepicker control",class:[e.size,{"is-expanded":e.expanded}]},[!e.isMobile||e.inline?n("b-dropdown",{ref:"dropdown",attrs:{position:e.position,disabled:e.disabled,inline:e.inline,"mobile-modal":e.mobileModal,"trap-focus":e.trapFocus,"aria-role":e.ariaRole,"aria-modal":!e.inline,"append-to-body":e.appendToBody,"append-to-body-copy-parent":""},on:{"active-change":e.onActiveChange}},[e.inline?e._e():n("b-input",e._b({ref:"input",attrs:{slot:"trigger",autocomplete:"off",value:e.formatValue(e.computedValue),placeholder:e.placeholder,size:e.size,icon:e.icon,"icon-pack":e.iconPack,rounded:e.rounded,loading:e.loading,disabled:e.disabled,readonly:!e.editable,"use-html5-validation":!1},on:{focus:e.handleOnFocus},nativeOn:{click:function(t){return e.onInputClick(t)},keyup:function(t){if(!("button"in t)&&e._k(t.keyCode,"enter",13,t.key,"Enter"))return null;e.togglePicker(!0)},change:function(t){e.onChange(t.target.value)}},slot:"trigger"},"b-input",e.$attrs,!1)),e._v(" "),n("b-dropdown-item",{class:{"dropdown-horizonal-timepicker":e.horizontalTimePicker},attrs:{disabled:e.disabled,focusable:e.focusable,custom:""}},[n("div",[n("header",{staticClass:"datepicker-header"},[void 0!==e.$slots.header&&e.$slots.header.length?[e._t("header")]:n("div",{staticClass:"pagination field is-centered",class:e.size},[n("a",{directives:[{name:"show",rawName:"v-show",value:!e.showPrev&&!e.disabled,expression:"!showPrev && !disabled"}],staticClass:"pagination-previous",attrs:{role:"button",href:"#",disabled:e.disabled,"aria-label":e.ariaPreviousLabel},on:{click:function(t){return t.preventDefault(),e.prev(t)},keydown:[function(t){return!("button"in t)&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:(t.preventDefault(),e.prev(t))},function(t){return!("button"in t)&&e._k(t.keyCode,"space",32,t.key,[" ","Spacebar"])?null:(t.preventDefault(),e.prev(t))}]}},[n("b-icon",{attrs:{icon:e.iconPrev,pack:e.iconPack,both:"",type:"is-primary is-clickable"}})],1),e._v(" "),n("a",{directives:[{name:"show",rawName:"v-show",value:!e.showNext&&!e.disabled,expression:"!showNext && !disabled"}],staticClass:"pagination-next",attrs:{role:"button",href:"#",disabled:e.disabled,"aria-label":e.ariaNextLabel},on:{click:function(t){return t.preventDefault(),e.next(t)},keydown:[function(t){return!("button"in t)&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:(t.preventDefault(),e.next(t))},function(t){return!("button"in t)&&e._k(t.keyCode,"space",32,t.key,[" ","Spacebar"])?null:(t.preventDefault(),e.next(t))}]}},[n("b-icon",{attrs:{icon:e.iconNext,pack:e.iconPack,both:"",type:"is-primary is-clickable"}})],1),e._v(" "),n("div",{staticClass:"pagination-list"},[n("b-field",[e.isTypeMonth?e._e():n("b-select",{attrs:{disabled:e.disabled,size:e.size},model:{value:e.focusedDateData.month,callback:function(t){e.$set(e.focusedDateData,"month",t)},expression:"focusedDateData.month"}},e._l(e.listOfMonths,(function(t){return n("option",{key:t.name,attrs:{disabled:t.disabled},domProps:{value:t.index}},[e._v("\r\n "+e._s(t.name)+"\r\n ")])}))),e._v(" "),n("b-select",{attrs:{disabled:e.disabled,size:e.size},model:{value:e.focusedDateData.year,callback:function(t){e.$set(e.focusedDateData,"year",t)},expression:"focusedDateData.year"}},e._l(e.listOfYears,(function(t){return n("option",{key:t,domProps:{value:t}},[e._v("\r\n "+e._s(t)+"\r\n ")])})))],1)],1)])],2),e._v(" "),e.isTypeMonth?n("div",[n("b-datepicker-month",{attrs:{"month-names":e.monthNames,"min-date":e.minDate,"max-date":e.maxDate,focused:e.focusedDateData,disabled:e.disabled,"unselectable-dates":e.unselectableDates,"unselectable-days-of-week":e.unselectableDaysOfWeek,"selectable-dates":e.selectableDates,events:e.events,indicators:e.indicators,"date-creator":e.dateCreator,multiple:e.multiple},on:{"update:focused":function(t){e.focusedDateData=t},close:function(t){e.togglePicker(!1)},"change-focus":e.changeFocus},model:{value:e.computedValue,callback:function(t){e.computedValue=t},expression:"computedValue"}})],1):n("div",{staticClass:"datepicker-content",class:{"content-horizonal-timepicker":e.horizontalTimePicker}},[n("b-datepicker-table",{attrs:{"day-names":e.dayNames,"month-names":e.monthNames,"first-day-of-week":e.firstDayOfWeek,"rules-for-first-week":e.rulesForFirstWeek,"min-date":e.minDate,"max-date":e.maxDate,focused:e.focusedDateData,disabled:e.disabled,"unselectable-dates":e.unselectableDates,"unselectable-days-of-week":e.unselectableDaysOfWeek,"selectable-dates":e.selectableDates,events:e.events,indicators:e.indicators,"date-creator":e.dateCreator,"type-month":e.isTypeMonth,"nearby-month-days":e.nearbyMonthDays,"nearby-selectable-month-days":e.nearbySelectableMonthDays,"show-week-number":e.showWeekNumber,range:e.range,multiple:e.multiple},on:{"update:focused":function(t){e.focusedDateData=t},"range-start":function(t){return e.$emit("range-start",t)},"range-end":function(t){return e.$emit("range-end",t)},close:function(t){e.togglePicker(!1)}},model:{value:e.computedValue,callback:function(t){e.computedValue=t},expression:"computedValue"}})],1)]),e._v(" "),void 0!==e.$slots.default&&e.$slots.default.length?n("footer",{staticClass:"datepicker-footer",class:{"footer-horizontal-timepicker":e.horizontalTimePicker}},[e._t("default")],2):e._e()])],1):n("b-input",e._b({ref:"input",attrs:{type:e.isTypeMonth?"month":"date",autocomplete:"off",value:e.formatNative(e.computedValue),placeholder:e.placeholder,size:e.size,icon:e.icon,"icon-pack":e.iconPack,rounded:e.rounded,loading:e.loading,max:e.formatNative(e.maxDate),min:e.formatNative(e.minDate),disabled:e.disabled,readonly:!1,"use-html5-validation":!1},on:{focus:e.onFocus,blur:e.onBlur},nativeOn:{change:function(t){return e.onChangeNativePicker(t)}}},"b-input",e.$attrs,!1))],1)},staticRenderFns:[]},undefined,Pe,undefined,!1,undefined,void 0,void 0),Me={install:function(e){I(e,Oe)}};use(Me);var Le,Ne=Me;var Re,Be=D({render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"timepicker control",class:[e.size,{"is-expanded":e.expanded}]},[!e.isMobile||e.inline?n("b-dropdown",{ref:"dropdown",attrs:{position:e.position,disabled:e.disabled,inline:e.inline,"append-to-body":e.appendToBody,"append-to-body-copy-parent":""},on:{"active-change":e.onActiveChange}},[e.inline?e._e():n("b-input",e._b({ref:"input",attrs:{slot:"trigger",autocomplete:"off",value:e.formatValue(e.computedValue),placeholder:e.placeholder,size:e.size,icon:e.icon,"icon-pack":e.iconPack,loading:e.loading,disabled:e.disabled,readonly:!e.editable,rounded:e.rounded,"use-html5-validation":e.useHtml5Validation},on:{focus:e.handleOnFocus},nativeOn:{keyup:function(t){if(!("button"in t)&&e._k(t.keyCode,"enter",13,t.key,"Enter"))return null;e.toggle(!0)},change:function(t){e.onChange(t.target.value)}},slot:"trigger"},"b-input",e.$attrs,!1)),e._v(" "),n("b-dropdown-item",{attrs:{disabled:e.disabled,focusable:e.focusable,custom:""}},[n("b-field",{attrs:{grouped:"",position:"is-centered"}},[n("b-select",{attrs:{disabled:e.disabled,placeholder:"00"},nativeOn:{change:function(t){e.onHoursChange(t.target.value)}},model:{value:e.hoursSelected,callback:function(t){e.hoursSelected=t},expression:"hoursSelected"}},e._l(e.hours,(function(t){return n("option",{key:t.value,attrs:{disabled:e.isHourDisabled(t.value)},domProps:{value:t.value}},[e._v("\r\n "+e._s(t.label)+"\r\n ")])}))),e._v(" "),n("span",{staticClass:"control is-colon"},[e._v(":")]),e._v(" "),n("b-select",{attrs:{disabled:e.disabled,placeholder:"00"},nativeOn:{change:function(t){e.onMinutesChange(t.target.value)}},model:{value:e.minutesSelected,callback:function(t){e.minutesSelected=t},expression:"minutesSelected"}},e._l(e.minutes,(function(t){return n("option",{key:t.value,attrs:{disabled:e.isMinuteDisabled(t.value)},domProps:{value:t.value}},[e._v("\r\n "+e._s(t.label)+"\r\n ")])}))),e._v(" "),e.enableSeconds?[n("span",{staticClass:"control is-colon"},[e._v(":")]),e._v(" "),n("b-select",{attrs:{disabled:e.disabled,placeholder:"00"},nativeOn:{change:function(t){e.onSecondsChange(t.target.value)}},model:{value:e.secondsSelected,callback:function(t){e.secondsSelected=t},expression:"secondsSelected"}},e._l(e.seconds,(function(t){return n("option",{key:t.value,attrs:{disabled:e.isSecondDisabled(t.value)},domProps:{value:t.value}},[e._v("\r\n "+e._s(t.label)+"\r\n ")])})))]:e._e(),e._v(" "),e.isHourFormat24?e._e():n("b-select",{attrs:{disabled:e.disabled},nativeOn:{change:function(t){e.onMeridienChange(t.target.value)}},model:{value:e.meridienSelected,callback:function(t){e.meridienSelected=t},expression:"meridienSelected"}},e._l(e.meridiens,(function(t){return n("option",{key:t,domProps:{value:t}},[e._v("\r\n "+e._s(t)+"\r\n ")])})))],2),e._v(" "),void 0!==e.$slots.default&&e.$slots.default.length?n("footer",{staticClass:"timepicker-footer"},[e._t("default")],2):e._e()],1)],1):n("b-input",e._b({ref:"input",attrs:{type:"time",step:e.nativeStep,autocomplete:"off",value:e.formatHHMMSS(e.computedValue),placeholder:e.placeholder,size:e.size,icon:e.icon,"icon-pack":e.iconPack,rounded:e.rounded,loading:e.loading,max:e.formatHHMMSS(e.maxTime),min:e.formatHHMMSS(e.minTime),disabled:e.disabled,readonly:!1,"use-html5-validation":e.useHtml5Validation},on:{focus:e.handleOnFocus,blur:function(t){e.onBlur()&&e.checkHtml5Validity()}},nativeOn:{change:function(t){e.onChange(t.target.value)}}},"b-input",e.$attrs,!1))],1)},staticRenderFns:[]},undefined,{name:"BTimepicker",components:(Le={},o(Le,N.name,N),o(Le,be.name,be),o(Le,xe.name,xe),o(Le,L.name,L),o(Le,pe.name,pe),o(Le,me.name,me),Le),mixins:[ce],inheritAttrs:!1,data:function(){return{_isTimepicker:!0}},computed:{nativeStep:function(){if(this.enableSeconds)return"1"}}},undefined,!1,undefined,void 0,void 0),Fe={name:"BDatetimepicker",components:(Re={},o(Re,Oe.name,Oe),o(Re,Be.name,Be),Re),mixins:[P],inheritAttrs:!1,props:{value:{type:Date},editable:{type:Boolean,default:!1},placeholder:String,horizontalTimePicker:Boolean,disabled:Boolean,icon:String,iconPack:String,inline:Boolean,openOnFocus:Boolean,position:String,mobileNative:{type:Boolean,default:!0},minDatetime:Date,maxDatetime:Date,datetimeFormatter:{type:Function},datetimeParser:{type:Function},datetimeCreator:{type:Function,default:function(e){return"function"==typeof A.defaultDatetimeCreator?A.defaultDatetimeCreator(e):e}},datepicker:Object,timepicker:Object,tzOffset:{type:Number,default:0},focusable:{type:Boolean,default:!0},appendToBody:Boolean},data:function(){return{newValue:this.adjustValue(this.value)}},computed:{computedValue:{get:function(){return this.newValue},set:function(e){if(e){var t=new Date(e.getTime());this.newValue?e.getDate()===this.newValue.getDate()&&e.getMonth()===this.newValue.getMonth()&&e.getFullYear()===this.newValue.getFullYear()||0!==e.getHours()||0!==e.getMinutes()||0!==e.getSeconds()||t.setHours(this.newValue.getHours(),this.newValue.getMinutes(),this.newValue.getSeconds(),0):t=this.datetimeCreator(e),this.minDatetime&&tthis.adjustValue(this.maxDatetime)&&(t=this.adjustValue(this.maxDatetime)),this.newValue=new Date(t.getTime())}else this.newValue=this.adjustValue(this.value);var n=this.adjustValue(this.newValue,!0);this.$emit("input",n)}},isMobileNative:function(){return this.mobileNative&&0===this.tzOffset},isMobile:function(){return this.isMobileNative&&w.any()},minDate:function(){if(!this.minDatetime)return this.datepicker?this.adjustValue(this.datepicker.minDate):null;var e=this.adjustValue(this.minDatetime);return new Date(e.getFullYear(),e.getMonth(),e.getDate(),0,0,0,0)},maxDate:function(){if(!this.maxDatetime)return this.datepicker?this.adjustValue(this.datepicker.maxDate):null;var e=this.adjustValue(this.maxDatetime);return new Date(e.getFullYear(),e.getMonth(),e.getDate(),0,0,0,0)},minTime:function(){if(!this.minDatetime||null===this.newValue||void 0===this.newValue)return this.timepicker?this.adjustValue(this.timepicker.minTime):null;var e=this.adjustValue(this.minDatetime);return e.getFullYear()===this.newValue.getFullYear()&&e.getMonth()===this.newValue.getMonth()&&e.getDate()===this.newValue.getDate()?e:void 0},maxTime:function(){if(!this.maxDatetime||null===this.newValue||void 0===this.newValue)return this.timepicker?this.adjustValue(this.timepicker.maxTime):null;var e=this.adjustValue(this.maxDatetime);return e.getFullYear()===this.newValue.getFullYear()&&e.getMonth()===this.newValue.getMonth()&&e.getDate()===this.newValue.getDate()?e:void 0},datepickerSize:function(){return this.datepicker&&this.datepicker.size?this.datepicker.size:this.size},timepickerSize:function(){return this.timepicker&&this.timepicker.size?this.timepicker.size:this.size},timepickerDisabled:function(){return this.timepicker&&this.timepicker.disabled?this.timepicker.disabled:this.disabled}},watch:{value:function(e){this.newValue=this.adjustValue(this.value)},tzOffset:function(e){this.newValue=this.adjustValue(this.value)}},methods:{adjustValue:function(e){return e?arguments.length>1&&void 0!==arguments[1]&&arguments[1]?new Date(e.getTime()-6e4*this.tzOffset):new Date(e.getTime()+6e4*this.tzOffset):e},defaultDatetimeParser:function(e){return"function"==typeof this.datetimeParser?this.datetimeParser(e):"function"==typeof A.defaultDatetimeParser?A.defaultDatetimeParser(e):new Date(Date.parse(e))},defaultDatetimeFormatter:function(e){return"function"==typeof this.datetimeFormatter?this.datetimeFormatter(e):"function"==typeof A.defaultDatetimeFormatter?A.defaultDatetimeFormatter(e):this.$refs.timepicker?new Date(e.getFullYear(),e.getMonth(),e.getDate(),12).toLocaleDateString()+" "+this.$refs.timepicker.timeFormatter(e,this.$refs.timepicker):null},onChangeNativePicker:function(e){var t=e.target.value,s=t?t.split(/\D/):[];if(s.length>=5){var n=parseInt(s[0],10),r=parseInt(s[1],10)-1,o=parseInt(s[2],10),l=parseInt(s[3],10),c=parseInt(s[4],10);this.computedValue=new Date(n,r,o,l,c)}else this.computedValue=null},formatNative:function(e){var t=new Date(e);if(e&&!isNaN(t)){var n=t.getFullYear(),r=t.getMonth()+1,o=t.getDate(),l=t.getHours(),c=t.getMinutes(),d=t.getSeconds();return n+"-"+(r<10?"0":"")+r+"-"+(o<10?"0":"")+o+"T"+(l<10?"0":"")+l+":"+(c<10?"0":"")+c+":"+(d<10?"0":"")+d}return""},toggle:function(){this.$refs.datepicker.toggle()}},mounted:function(){this.isMobile&&!this.inline||this.newValue&&this.$refs.datepicker.$forceUpdate()}};var Ue=D({render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return!e.isMobile||e.inline?n("b-datepicker",e._b({ref:"datepicker",attrs:{"open-on-focus":e.openOnFocus,position:e.position,loading:e.loading,inline:e.inline,editable:e.editable,expanded:e.expanded,"close-on-click":!1,"date-formatter":e.defaultDatetimeFormatter,"date-parser":e.defaultDatetimeParser,"min-date":e.minDate,"max-date":e.maxDate,icon:e.icon,"icon-pack":e.iconPack,size:e.datepickerSize,placeholder:e.placeholder,"horizontal-time-picker":e.horizontalTimePicker,range:!1,disabled:e.disabled,"mobile-native":e.isMobileNative,focusable:e.focusable,"append-to-body":e.appendToBody},on:{focus:e.onFocus,blur:e.onBlur,"change-month":function(t){e.$emit("change-month",t)},"change-year":function(t){e.$emit("change-year",t)}},model:{value:e.computedValue,callback:function(t){e.computedValue=t},expression:"computedValue"}},"b-datepicker",e.datepicker,!1),[n("nav",{staticClass:"level is-mobile"},[void 0!==e.$slots.left?n("div",{staticClass:"level-item has-text-centered"},[e._t("left")],2):e._e(),e._v(" "),n("div",{staticClass:"level-item has-text-centered"},[n("b-timepicker",e._b({ref:"timepicker",attrs:{inline:"",editable:e.editable,"min-time":e.minTime,"max-time":e.maxTime,size:e.timepickerSize,disabled:e.timepickerDisabled,focusable:e.focusable,"mobile-native":e.isMobileNative},model:{value:e.computedValue,callback:function(t){e.computedValue=t},expression:"computedValue"}},"b-timepicker",e.timepicker,!1))],1),e._v(" "),void 0!==e.$slots.right?n("div",{staticClass:"level-item has-text-centered"},[e._t("right")],2):e._e()])]):n("b-input",e._b({ref:"input",attrs:{type:"datetime-local",autocomplete:"off",value:e.formatNative(e.computedValue),placeholder:e.placeholder,size:e.size,icon:e.icon,"icon-pack":e.iconPack,rounded:e.rounded,loading:e.loading,max:e.formatNative(e.maxDate),min:e.formatNative(e.minDate),disabled:e.disabled,readonly:!1,"use-html5-validation":e.useHtml5Validation},on:{focus:e.onFocus,blur:e.onBlur},nativeOn:{change:function(t){return e.onChangeNativePicker(t)}}},"b-input",e.$attrs,!1))},staticRenderFns:[]},undefined,Fe,undefined,!1,undefined,void 0,void 0),Ve={install:function(e){I(e,Ue)}};use(Ve);var He=Ve,ze={name:"BModal",directives:{trapFocus:he},props:{active:Boolean,component:[Object,Function],content:String,programmatic:Boolean,props:Object,events:Object,width:{type:[String,Number],default:960},hasModalCard:Boolean,animation:{type:String,default:"zoom-out"},canCancel:{type:[Array,Boolean],default:function(){return A.defaultModalCanCancel}},onCancel:{type:Function,default:function(){}},scroll:{type:String,default:function(){return A.defaultModalScroll?A.defaultModalScroll:"clip"},validator:function(e){return["clip","keep"].indexOf(e)>=0}},fullScreen:Boolean,trapFocus:{type:Boolean,default:function(){return A.defaultTrapFocus}},customClass:String,ariaRole:{type:String,validator:function(e){return["dialog","alertdialog"].indexOf(e)>=0}},ariaModal:Boolean,destroyOnHide:{type:Boolean,default:!0}},data:function(){return{isActive:this.active||!1,savedScrollTop:null,newWidth:"number"==typeof this.width?this.width+"px":this.width,animating:!0,destroyed:!this.active}},computed:{cancelOptions:function(){return"boolean"==typeof this.canCancel?this.canCancel?A.defaultModalCanCancel:[]:this.canCancel},showX:function(){return this.cancelOptions.indexOf("x")>=0},customStyle:function(){return this.fullScreen?null:{maxWidth:this.newWidth}}},watch:{active:function(e){this.isActive=e},isActive:function(e){var t=this;e&&(this.destroyed=!1),this.handleScroll(),this.$nextTick((function(){e&&t.$el&&t.$el.focus&&t.$el.focus()}))}},methods:{handleScroll:function(){"undefined"!=typeof window&&("clip"!==this.scroll?(this.savedScrollTop=this.savedScrollTop?this.savedScrollTop:document.documentElement.scrollTop,this.isActive?document.body.classList.add("is-noscroll"):document.body.classList.remove("is-noscroll"),this.isActive?document.body.style.top="-".concat(this.savedScrollTop,"px"):(document.documentElement.scrollTop=this.savedScrollTop,document.body.style.top=null,this.savedScrollTop=null)):this.isActive?document.documentElement.classList.add("is-clipped"):document.documentElement.classList.remove("is-clipped"))},cancel:function(e){this.cancelOptions.indexOf(e)<0||(this.onCancel.apply(null,arguments),this.close())},close:function(){var e=this;this.$emit("close"),this.$emit("update:active",!1),this.programmatic&&(this.isActive=!1,setTimeout((function(){e.$destroy(),S(e.$el)}),150))},keyPress:function(e){this.isActive&&27===e.keyCode&&this.cancel("escape")},afterEnter:function(){this.animating=!1},beforeLeave:function(){this.animating=!0},afterLeave:function(){this.destroyOnHide&&(this.destroyed=!0)}},created:function(){"undefined"!=typeof window&&document.addEventListener("keyup",this.keyPress)},beforeMount:function(){this.programmatic&&document.body.appendChild(this.$el)},mounted:function(){this.programmatic?this.isActive=!0:this.isActive&&this.handleScroll()},beforeDestroy:function(){if("undefined"!=typeof window){document.removeEventListener("keyup",this.keyPress),document.documentElement.classList.remove("is-clipped");var e=this.savedScrollTop?this.savedScrollTop:document.documentElement.scrollTop;document.body.classList.remove("is-noscroll"),document.documentElement.scrollTop=e,document.body.style.top=null}}};var qe=D({render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("transition",{attrs:{name:e.animation},on:{"after-enter":e.afterEnter,"before-leave":e.beforeLeave,"after-leave":e.afterLeave}},[e.destroyed?e._e():n("div",{directives:[{name:"show",rawName:"v-show",value:e.isActive,expression:"isActive"},{name:"trap-focus",rawName:"v-trap-focus",value:e.trapFocus,expression:"trapFocus"}],staticClass:"modal is-active",class:[{"is-full-screen":e.fullScreen},e.customClass],attrs:{tabindex:"-1",role:e.ariaRole,"aria-modal":e.ariaModal}},[n("div",{staticClass:"modal-background",on:{click:function(t){e.cancel("outside")}}}),e._v(" "),n("div",{staticClass:"animation-content",class:{"modal-content":!e.hasModalCard},style:e.customStyle},[e.component?n(e.component,e._g(e._b({tag:"component",on:{close:e.close}},"component",e.props,!1),e.events)):e.content?n("div",{domProps:{innerHTML:e._s(e.content)}}):e._t("default"),e._v(" "),e.showX?n("button",{directives:[{name:"show",rawName:"v-show",value:!e.animating,expression:"!animating"}],staticClass:"modal-close is-large",attrs:{type:"button"},on:{click:function(t){e.cancel("x")}}}):e._e()],2)])])},staticRenderFns:[]},undefined,ze,undefined,!1,undefined,void 0,void 0);var $e,We=D({render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("transition",{attrs:{name:e.animation}},[e.isActive?n("div",{directives:[{name:"trap-focus",rawName:"v-trap-focus",value:e.trapFocus,expression:"trapFocus"}],staticClass:"dialog modal is-active",class:e.dialogClass,attrs:{role:e.ariaRole,"aria-modal":e.ariaModal}},[n("div",{staticClass:"modal-background",on:{click:function(t){e.cancel("outside")}}}),e._v(" "),n("div",{staticClass:"modal-card animation-content"},[e.title?n("header",{staticClass:"modal-card-head"},[n("p",{staticClass:"modal-card-title"},[e._v(e._s(e.title))])]):e._e(),e._v(" "),n("section",{staticClass:"modal-card-body",class:{"is-titleless":!e.title,"is-flex":e.hasIcon}},[n("div",{staticClass:"media"},[e.hasIcon&&(e.icon||e.iconByType)?n("div",{staticClass:"media-left"},[n("b-icon",{attrs:{icon:e.icon?e.icon:e.iconByType,pack:e.iconPack,type:e.type,both:!e.icon,size:"is-large"}})],1):e._e(),e._v(" "),n("div",{staticClass:"media-content"},[n("p",{domProps:{innerHTML:e._s(e.message)}}),e._v(" "),e.hasInput?n("div",{staticClass:"field"},[n("div",{staticClass:"control"},["checkbox"===e.inputAttrs.type?n("input",e._b({directives:[{name:"model",rawName:"v-model",value:e.prompt,expression:"prompt"}],ref:"input",staticClass:"input",class:{"is-danger":e.validationMessage},attrs:{type:"checkbox"},domProps:{checked:Array.isArray(e.prompt)?e._i(e.prompt,null)>-1:e.prompt},on:{keyup:function(t){return!("button"in t)&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.confirm(t)},change:function(t){var n=e.prompt,r=t.target,o=!!r.checked;if(Array.isArray(n)){var l=e._i(n,null);r.checked?l<0&&(e.prompt=n.concat([null])):l>-1&&(e.prompt=n.slice(0,l).concat(n.slice(l+1)))}else e.prompt=o}}},"input",e.inputAttrs,!1)):"radio"===e.inputAttrs.type?n("input",e._b({directives:[{name:"model",rawName:"v-model",value:e.prompt,expression:"prompt"}],ref:"input",staticClass:"input",class:{"is-danger":e.validationMessage},attrs:{type:"radio"},domProps:{checked:e._q(e.prompt,null)},on:{keyup:function(t){return!("button"in t)&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.confirm(t)},change:function(t){e.prompt=null}}},"input",e.inputAttrs,!1)):n("input",e._b({directives:[{name:"model",rawName:"v-model",value:e.prompt,expression:"prompt"}],ref:"input",staticClass:"input",class:{"is-danger":e.validationMessage},attrs:{type:e.inputAttrs.type},domProps:{value:e.prompt},on:{keyup:function(t){return!("button"in t)&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.confirm(t)},input:function(t){t.target.composing||(e.prompt=t.target.value)}}},"input",e.inputAttrs,!1))]),e._v(" "),n("p",{staticClass:"help is-danger"},[e._v(e._s(e.validationMessage))])]):e._e()])])]),e._v(" "),n("footer",{staticClass:"modal-card-foot"},[e.showCancel?n("button",{ref:"cancelButton",staticClass:"button",on:{click:function(t){e.cancel("button")}}},[e._v(e._s(e.cancelText))]):e._e(),e._v(" "),n("button",{ref:"confirmButton",staticClass:"button",class:e.type,on:{click:e.confirm}},[e._v(e._s(e.confirmText))])])])]):e._e()])},staticRenderFns:[]},undefined,{name:"BDialog",components:o({},L.name,L),directives:{trapFocus:he},extends:qe,props:{title:String,message:String,icon:String,iconPack:String,hasIcon:Boolean,type:{type:String,default:"is-primary"},size:String,confirmText:{type:String,default:function(){return A.defaultDialogConfirmText?A.defaultDialogConfirmText:"OK"}},cancelText:{type:String,default:function(){return A.defaultDialogCancelText?A.defaultDialogCancelText:"Cancel"}},hasInput:Boolean,inputAttrs:{type:Object,default:function(){return{}}},onConfirm:{type:Function,default:function(){}},closeOnConfirm:{type:Boolean,default:!0},container:{type:String,default:function(){return A.defaultContainerElement}},focusOn:{type:String,default:"confirm"},trapFocus:{type:Boolean,default:function(){return A.defaultTrapFocus}},ariaRole:{type:String,validator:function(e){return["dialog","alertdialog"].indexOf(e)>=0}},ariaModal:Boolean},data:function(){return{prompt:this.hasInput&&this.inputAttrs.value||"",isActive:!1,validationMessage:""}},computed:{dialogClass:function(){return[this.size,{"has-custom-container":null!==this.container}]},iconByType:function(){switch(this.type){case"is-info":return"information";case"is-success":return"check-circle";case"is-warning":return"alert";case"is-danger":return"alert-circle";default:return null}},showCancel:function(){return this.cancelOptions.indexOf("button")>=0}},methods:{confirm:function(){var e=this;if(void 0!==this.$refs.input&&!this.$refs.input.checkValidity())return this.validationMessage=this.$refs.input.validationMessage,void this.$nextTick((function(){return e.$refs.input.select()}));this.onConfirm(this.prompt,this),this.closeOnConfirm&&this.close()},close:function(){var e=this;this.isActive=!1,setTimeout((function(){e.$destroy(),S(e.$el)}),150)}},beforeMount:function(){var e=this;"undefined"!=typeof window&&this.$nextTick((function(){(document.querySelector(e.container)||document.body).appendChild(e.$el)}))},mounted:function(){var e=this;this.isActive=!0,void 0===this.inputAttrs.required&&this.$set(this.inputAttrs,"required",!0),this.$nextTick((function(){e.hasInput?e.$refs.input.focus():"cancel"===e.focusOn&&e.showCancel?e.$refs.cancelButton.focus():e.$refs.confirmButton.focus()}))}},undefined,!1,undefined,void 0,void 0);function Ge(e){return new(("undefined"!=typeof window&&window.Vue?window.Vue:$e||C).extend(We))({el:document.createElement("div"),propsData:e})}var Ye={alert:function(e){"string"==typeof e&&(e={message:e});return Ge(T({canCancel:!1},e))},confirm:function(e){return Ge(T({},e))},prompt:function(e){return Ge(T({hasInput:!0,confirmText:"Done"},e))}},Xe={install:function(e){$e=e,I(e,We),j(e,"dialog",Ye)}};use(Xe);var dialog=Xe,Ke={install:function(e){I(e,pe),I(e,me)}};use(Ke);var Qe=Ke,Je={install:function(e){I(e,be)}};use(Je);var Ze=Je,et={install:function(e){I(e,L)}};use(et);var tt=et,nt={install:function(e){I(e,N)}};use(nt);var input=nt,it="undefined"==typeof window,at=it?Object:window.HTMLElement,ot=it?Object:window.File,st={name:"BLoading",props:{active:Boolean,programmatic:Boolean,container:[Object,Function,at],isFullPage:{type:Boolean,default:!0},animation:{type:String,default:"fade"},canCancel:{type:Boolean,default:!1},onCancel:{type:Function,default:function(){}}},data:function(){return{isActive:this.active||!1,displayInFullPage:this.isFullPage}},watch:{active:function(e){this.isActive=e},isFullPage:function(e){this.displayInFullPage=e}},methods:{cancel:function(){this.canCancel&&this.isActive&&this.close()},close:function(){var e=this;this.onCancel.apply(null,arguments),this.$emit("close"),this.$emit("update:active",!1),this.programmatic&&(this.isActive=!1,setTimeout((function(){e.$destroy(),S(e.$el)}),150))},keyPress:function(e){27===e.keyCode&&this.cancel()}},created:function(){"undefined"!=typeof window&&document.addEventListener("keyup",this.keyPress)},beforeMount:function(){this.programmatic&&(this.container?(this.displayInFullPage=!1,this.$emit("update:is-full-page",!1),this.container.appendChild(this.$el)):document.body.appendChild(this.$el))},mounted:function(){this.programmatic&&(this.isActive=!0)},beforeDestroy:function(){"undefined"!=typeof window&&document.removeEventListener("keyup",this.keyPress)}};var ut,lt=D({render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("transition",{attrs:{name:e.animation}},[e.isActive?n("div",{staticClass:"loading-overlay is-active",class:{"is-full-page":e.displayInFullPage}},[n("div",{staticClass:"loading-background",on:{click:e.cancel}}),e._v(" "),e._t("default",[n("div",{staticClass:"loading-icon"})])],2):e._e()])},staticRenderFns:[]},undefined,st,undefined,!1,undefined,void 0,void 0),ct={open:function(e){var t=T({programmatic:!0},e);return new(("undefined"!=typeof window&&window.Vue?window.Vue:ut||C).extend(lt))({el:document.createElement("div"),propsData:t})}},ht={install:function(e){ut=e,I(e,lt),j(e,"loading",ct)}};use(ht);var ft=ht;var pt=D({render:function(){var e=this,t=e.$createElement;return(e._self._c||t)("div",{staticClass:"menu"},[e._t("default")],2)},staticRenderFns:[]},undefined,{name:"BMenu",props:{accordion:{type:Boolean,default:!0},activable:{type:Boolean,default:!0}},data:function(){return{_isMenu:!0}}},undefined,!1,undefined,void 0,void 0);var mt=D({},undefined,{name:"BMenuList",functional:!0,props:{label:String,icon:String,iconPack:String,ariaRole:{type:String,default:""}},render:function(e,t){var n=null,r=t.slots();(t.props.label||r.label)&&(n=e("p",{attrs:{class:"menu-label"}},t.props.label?t.props.icon?[e("b-icon",{props:{icon:t.props.icon,pack:t.props.iconPack,size:"is-small"}}),e("span",{},t.props.label)]:t.props.label:r.label));var o=e("ul",{attrs:{class:"menu-list",role:"menu"===t.props.ariaRole?t.props.ariaRole:null}},r.default);return n?[n,o]:o}},undefined,undefined,undefined,void 0,void 0),gt={name:"BMenuItem",components:o({},L.name,L),inheritAttrs:!1,props:{label:String,active:Boolean,expanded:Boolean,disabled:Boolean,iconPack:String,icon:String,animation:{type:String,default:"slide"},tag:{type:String,default:"a",validator:function(e){return A.defaultLinkTags.indexOf(e)>=0}},ariaRole:{type:String,default:""}},data:function(){return{newActive:this.active,newExpanded:this.expanded}},computed:{ariaRoleMenu:function(){return"menuitem"===this.ariaRole?this.ariaRole:null}},watch:{active:function(e){this.newActive=e},expanded:function(e){this.newExpanded=e}},methods:{onClick:function(e){if(!this.disabled){var menu=this.getMenu();this.reset(this.$parent,menu),this.newExpanded=!this.newExpanded,this.$emit("update:expanded",this.newActive),menu&&menu.activable&&(this.newActive=!0,this.$emit("update:active",this.newActive))}},reset:function(e,menu){var t=this;e.$children.filter((function(e){return e.name===t.name})).forEach((function(n){n!==t&&(t.reset(n,menu),(!e.$data._isMenu||e.$data._isMenu&&e.accordion)&&(n.newExpanded=!1,n.$emit("update:expanded",n.newActive)),menu&&menu.activable&&(n.newActive=!1,n.$emit("update:active",n.newActive)))}))},getMenu:function(){for(var e=this.$parent;e&&!e.$data._isMenu;)e=e.$parent;return e}}};var vt=D({render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("li",{attrs:{role:e.ariaRoleMenu}},[n(e.tag,e._g(e._b({tag:"component",class:{"is-active":e.newActive,"is-disabled":e.disabled},on:{click:function(t){e.onClick(t)}}},"component",e.$attrs,!1),e.$listeners),[e.icon?n("b-icon",{attrs:{icon:e.icon,pack:e.iconPack,size:"is-small"}}):e._e(),e._v(" "),e.label?n("span",[e._v(e._s(e.label))]):e._t("label",null,{expanded:e.newExpanded,active:e.newActive})],2),e._v(" "),e.$slots.default?[n("transition",{attrs:{name:e.animation}},[n("ul",{directives:[{name:"show",rawName:"v-show",value:e.newExpanded,expression:"newExpanded"}]},[e._t("default")],2)])]:e._e()],2)},staticRenderFns:[]},undefined,gt,undefined,!1,undefined,void 0,void 0),yt={install:function(e){I(e,pt),I(e,mt),I(e,vt)}};use(yt);var menu=yt,bt={components:o({},L.name,L),props:{active:{type:Boolean,default:!0},title:String,closable:{type:Boolean,default:!0},message:String,type:String,hasIcon:Boolean,size:String,icon:String,iconPack:String,iconSize:String,autoClose:{type:Boolean,default:!1},duration:{type:Number,default:2e3}},data:function(){return{isActive:this.active}},watch:{active:function(e){this.isActive=e},isActive:function(e){e?this.setAutoClose():this.timer&&clearTimeout(this.timer)}},computed:{computedIcon:function(){if(this.icon)return this.icon;switch(this.type){case"is-info":return"information";case"is-success":return"check-circle";case"is-warning":return"alert";case"is-danger":return"alert-circle";default:return null}}},methods:{close:function(){this.isActive=!1,this.$emit("close"),this.$emit("update:active",!1)},setAutoClose:function(){var e=this;this.autoClose&&(this.timer=setTimeout((function(){e.isActive&&e.close()}),this.duration))}},mounted:function(){this.setAutoClose()}};var _t=D({render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("transition",{attrs:{name:"fade"}},[e.isActive?n("article",{staticClass:"message",class:[e.type,e.size]},[e.title?n("header",{staticClass:"message-header"},[n("p",[e._v(e._s(e.title))]),e._v(" "),e.closable?n("button",{staticClass:"delete",attrs:{type:"button","aria-label":e.ariaCloseLabel},on:{click:e.close}}):e._e()]):e._e(),e._v(" "),n("section",{staticClass:"message-body"},[n("div",{staticClass:"media"},[e.computedIcon&&e.hasIcon?n("div",{staticClass:"media-left"},[n("b-icon",{class:e.type,attrs:{icon:e.computedIcon,pack:e.iconPack,both:"",size:e.newIconSize}})],1):e._e(),e._v(" "),n("div",{staticClass:"media-content"},[e._t("default")],2)])])]):e._e()])},staticRenderFns:[]},undefined,{name:"BMessage",mixins:[bt],props:{ariaCloseLabel:String},data:function(){return{newIconSize:this.iconSize||this.size||"is-large"}}},undefined,!1,undefined,void 0,void 0),Tt={install:function(e){I(e,_t)}};use(Tt);var wt,St=Tt,kt={open:function(e){var t;"string"==typeof e&&(e={content:e});e.parent&&(t=e.parent,delete e.parent);var n=T({programmatic:!0},e);return new(("undefined"!=typeof window&&window.Vue?window.Vue:wt||C).extend(qe))({parent:t,el:document.createElement("div"),propsData:n})}},xt={install:function(e){wt=e,I(e,qe),j(e,"modal",kt)}};use(xt);var Ct=xt,At={props:{type:{type:String,default:"is-dark"},message:String,duration:Number,queue:{type:Boolean,default:void 0},position:{type:String,default:"is-top",validator:function(e){return["is-top-right","is-top","is-top-left","is-bottom-right","is-bottom","is-bottom-left"].indexOf(e)>-1}},container:String},data:function(){return{isActive:!1,parentTop:null,parentBottom:null,newContainer:this.container||A.defaultContainerElement}},computed:{correctParent:function(){switch(this.position){case"is-top-right":case"is-top":case"is-top-left":return this.parentTop;case"is-bottom-right":case"is-bottom":case"is-bottom-left":return this.parentBottom}},transition:function(){switch(this.position){case"is-top-right":case"is-top":case"is-top-left":return{enter:"fadeInDown",leave:"fadeOut"};case"is-bottom-right":case"is-bottom":case"is-bottom-left":return{enter:"fadeInUp",leave:"fadeOut"}}}},methods:{shouldQueue:function(){return!!(void 0!==this.queue?this.queue:A.defaultNoticeQueue)&&(this.parentTop.childElementCount>0||this.parentBottom.childElementCount>0)},close:function(){var e=this;clearTimeout(this.timer),this.isActive=!1,this.$emit("close"),setTimeout((function(){e.$destroy(),S(e.$el)}),150)},showNotice:function(){var e=this;this.shouldQueue()?setTimeout((function(){return e.showNotice()}),250):(this.correctParent.insertAdjacentElement("afterbegin",this.$el),this.isActive=!0,this.indefinite||(this.timer=setTimeout((function(){return e.close()}),this.newDuration)))},setupContainer:function(){if(this.parentTop=document.querySelector((this.newContainer?this.newContainer:"body")+">.notices.is-top"),this.parentBottom=document.querySelector((this.newContainer?this.newContainer:"body")+">.notices.is-bottom"),!this.parentTop||!this.parentBottom){this.parentTop||(this.parentTop=document.createElement("div"),this.parentTop.className="notices is-top"),this.parentBottom||(this.parentBottom=document.createElement("div"),this.parentBottom.className="notices is-bottom");var e=document.querySelector(this.newContainer)||document.body;e.appendChild(this.parentTop),e.appendChild(this.parentBottom),this.newContainer&&(this.parentTop.classList.add("has-custom-container"),this.parentBottom.classList.add("has-custom-container"))}}},beforeMount:function(){this.setupContainer()},mounted:function(){this.showNotice()}};var Et=D({render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("transition",{attrs:{name:e.animation}},[n("article",{directives:[{name:"show",rawName:"v-show",value:e.isActive,expression:"isActive"}],staticClass:"notification",class:[e.type,e.position]},[e.closable?n("button",{staticClass:"delete",attrs:{type:"button","aria-label":e.ariaCloseLabel},on:{click:e.close}}):e._e(),e._v(" "),n("div",{staticClass:"media"},[e.computedIcon&&e.hasIcon?n("div",{staticClass:"media-left"},[n("b-icon",{attrs:{icon:e.computedIcon,pack:e.iconPack,both:"",size:"is-large","aria-hidden":""}})],1):e._e(),e._v(" "),n("div",{staticClass:"media-content"},[e.message?n("p",{staticClass:"text",domProps:{innerHTML:e._s(e.message)}}):e._t("default")],2)])])])},staticRenderFns:[]},undefined,{name:"BNotification",mixins:[bt],props:{position:String,ariaCloseLabel:String,animation:{type:String,default:"fade"}}},undefined,!1,undefined,void 0,void 0);var Dt,It=D({render:function(){var e=this,t=e.$createElement;return(e._self._c||t)("b-notification",e._b({on:{close:e.close}},"b-notification",e.$options.propsData,!1))},staticRenderFns:[]},undefined,{name:"BNotificationNotice",mixins:[At],props:{indefinite:{type:Boolean,default:!1}},data:function(){return{newDuration:this.duration||A.defaultNotificationDuration}}},undefined,!1,undefined,void 0,void 0),jt={open:function(e){var t;"string"==typeof e&&(e={message:e});var n={position:A.defaultNotificationPosition||"is-top-right"};e.parent&&(t=e.parent,delete e.parent);var r=T(n,e);return new(("undefined"!=typeof window&&window.Vue?window.Vue:Dt||C).extend(It))({parent:t,el:document.createElement("div"),propsData:r})}},Pt={install:function(e){Dt=e,I(e,Et),j(e,"notification",jt)}};use(Pt);var Ot=Pt;var Mt=D({render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("a",e._g({staticClass:"navbar-burger burger",class:{"is-active":e.isOpened},attrs:{role:"button","aria-label":"menu","aria-expanded":e.isOpened}},e.$listeners),[n("span",{attrs:{"aria-hidden":"true"}}),e._v(" "),n("span",{attrs:{"aria-hidden":"true"}}),e._v(" "),n("span",{attrs:{"aria-hidden":"true"}})])},staticRenderFns:[]},undefined,{name:"NavbarBurger",props:{isOpened:{type:Boolean,default:!1}}},undefined,!1,undefined,void 0,void 0),Lt="undefined"!=typeof window&&("ontouchstart"in window||navigator.msMaxTouchPoints>0)?["touchstart","click"]:["click"],Nt=[];function Rt(e){var t="function"==typeof e;if(!t&&"object"!==r(e))throw new Error("v-click-outside: Binding value should be a function or an object, typeof ".concat(e," given"));return{handler:t?e:e.handler,middleware:e.middleware||function(e){return e},events:e.events||Lt}}function Bt(e){var t=e.el,n=e.event,r=e.handler,o=e.middleware;n.target!==t&&!t.contains(n.target)&&o(n,t)&&r(n,t)}var Ft={bind:function(e,t){var n=Rt(t.value),r=n.handler,o=n.middleware,l=n.events,c={el:e,eventHandlers:l.map((function(t){return{event:t,handler:function(t){return Bt({event:t,el:e,handler:r,middleware:o})}}}))};c.eventHandlers.forEach((function(e){var t=e.event,n=e.handler;return document.addEventListener(t,n)})),Nt.push(c)},update:function(e,t){var n=Rt(t.value),r=n.handler,o=n.middleware,l=n.events,c=Nt.filter((function(t){return t.el===e}))[0];c.eventHandlers.forEach((function(e){var t=e.event,n=e.handler;return document.removeEventListener(t,n)})),c.eventHandlers=l.map((function(t){return{event:t,handler:function(t){return Bt({event:t,el:e,handler:r,middleware:o})}}})),c.eventHandlers.forEach((function(e){var t=e.event,n=e.handler;return document.addEventListener(t,n)}))},unbind:function(e){Nt.filter((function(t){return t.el===e}))[0].eventHandlers.forEach((function(e){var t=e.event,n=e.handler;return document.removeEventListener(t,n)}))},instances:Nt},Ut="has-navbar-fixed-top",Vt="has-spaced-navbar-fixed-top",Ht="has-navbar-fixed-bottom",zt="has-spaced-navbar-fixed-bottom";var qt=D({},undefined,{name:"BNavbar",components:{NavbarBurger:Mt},directives:{clickOutside:Ft},props:{type:[String,Object],transparent:{type:Boolean,default:!1},fixedTop:{type:Boolean,default:!1},fixedBottom:{type:Boolean,default:!1},isActive:{type:Boolean,default:!1},wrapperClass:{type:String},closeOnClick:{type:Boolean,default:!0},mobileBurger:{type:Boolean,default:!0},spaced:Boolean,shadow:Boolean},data:function(){return{internalIsActive:this.isActive,_isNavBar:!0}},computed:{isOpened:function(){return this.internalIsActive},computedClasses:function(){var e;return[this.type,(e={},o(e,"is-fixed-top",this.fixedTop),o(e,"is-fixed-bottom",this.fixedBottom),o(e,"is-spaced",this.spaced),o(e,"has-shadow",this.shadow),o(e,"is-transparent",this.transparent),e)]}},watch:{isActive:{handler:function(e){this.internalIsActive=e},immediate:!0},fixedTop:{handler:function(e){this.checkIfFixedPropertiesAreColliding(),e?(this.setBodyClass(Ut),this.spaced&&this.setBodyClass(Vt)):(this.removeBodyClass(Ut),this.removeBodyClass(Vt))},immediate:!0},fixedBottom:{handler:function(e){this.checkIfFixedPropertiesAreColliding(),e?(this.setBodyClass(Ht),this.spaced&&this.setBodyClass(zt)):(this.removeBodyClass(Ht),this.removeBodyClass(zt))},immediate:!0}},methods:{toggleActive:function(){this.internalIsActive=!this.internalIsActive,this.emitUpdateParentEvent()},closeMenu:function(){this.closeOnClick&&(this.internalIsActive=!1,this.emitUpdateParentEvent())},emitUpdateParentEvent:function(){this.$emit("update:isActive",this.internalIsActive)},setBodyClass:function(e){"undefined"!=typeof window&&document.body.classList.add(e)},removeBodyClass:function(e){"undefined"!=typeof window&&document.body.classList.remove(e)},checkIfFixedPropertiesAreColliding:function(){if(this.fixedTop&&this.fixedBottom)throw new Error("You should choose if the BNavbar is fixed bottom or fixed top, but not both")},genNavbar:function(e){var t=[this.genNavbarBrandNode(e),this.genNavbarSlotsNode(e)];if(!this.wrapperClass)return this.genNavbarSlots(e,t);var n=e("div",{class:this.wrapperClass},t);return this.genNavbarSlots(e,[n])},genNavbarSlots:function(e,t){return e("nav",{staticClass:"navbar",class:this.computedClasses,attrs:{role:"navigation","aria-label":"main navigation"},directives:[{name:"click-outside",value:this.closeMenu}]},t)},genNavbarBrandNode:function(e){return e("div",{class:"navbar-brand"},[this.$slots.brand,this.genBurgerNode(e)])},genBurgerNode:function(e){if(this.mobileBurger){var t=e("navbar-burger",{props:{isOpened:this.isOpened},on:{click:this.toggleActive}});return!!this.$scopedSlots.burger?this.$scopedSlots.burger({isOpened:this.isOpened,toggleActive:this.toggleActive}):t}},genNavbarSlotsNode:function(e){return e("div",{staticClass:"navbar-menu",class:{"is-active":this.isOpened}},[this.genMenuPosition(e,"start"),this.genMenuPosition(e,"end")])},genMenuPosition:function(e,t){return e("div",{staticClass:"navbar-".concat(t)},this.$slots[t])}},beforeDestroy:function(){if(this.fixedTop){var e=this.spaced?Vt:Ut;this.removeBodyClass(e)}else if(this.fixedBottom){var t=this.spaced?zt:Ht;this.removeBodyClass(t)}},render:function(e,t){return this.genNavbar(e)}},undefined,undefined,undefined,void 0,void 0),$t=["div","span"];var Wt=D({render:function(){var e=this,t=e.$createElement;return(e._self._c||t)(e.tag,e._g(e._b({tag:"component",staticClass:"navbar-item",class:{"is-active":e.active}},"component",e.$attrs,!1),e.$listeners),[e._t("default")],2)},staticRenderFns:[]},undefined,{name:"BNavbarItem",inheritAttrs:!1,props:{tag:{type:String,default:"a"},active:Boolean},methods:{keyPress:function(e){27===e.keyCode&&this.closeMenuRecursive(this,["NavBar"])},handleClickEvent:function(e){if(!$t.some((function(t){return t===e.target.localName}))){var t=this.closeMenuRecursive(this,["NavbarDropdown","NavBar"]);t.$data._isNavbarDropdown&&this.closeMenuRecursive(t,["NavBar"])}},closeMenuRecursive:function(e,t){return e.$parent?t.reduce((function(t,n){return e.$parent.$data["_is".concat(n)]?(e.$parent.closeMenu(),e.$parent):t}),null)||this.closeMenuRecursive(e.$parent,t):null}},mounted:function(){"undefined"!=typeof window&&(this.$el.addEventListener("click",this.handleClickEvent),document.addEventListener("keyup",this.keyPress))},beforeDestroy:function(){"undefined"!=typeof window&&(this.$el.removeEventListener("click",this.handleClickEvent),document.removeEventListener("keyup",this.keyPress))}},undefined,!1,undefined,void 0,void 0);var Gt=D({render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{directives:[{name:"click-outside",rawName:"v-click-outside",value:e.closeMenu,expression:"closeMenu"}],staticClass:"navbar-item has-dropdown",class:{"is-hoverable":e.isHoverable,"is-active":e.newActive},on:{mouseenter:e.checkHoverable}},[n("a",{staticClass:"navbar-link",class:{"is-arrowless":e.arrowless,"is-active":e.newActive&&e.collapsible},attrs:{role:"menuitem","aria-haspopup":"true",href:"#"},on:{click:function(t){t.preventDefault(),e.newActive=!e.newActive}}},[e.label?[e._v(e._s(e.label))]:e._t("label")],2),e._v(" "),n("div",{directives:[{name:"show",rawName:"v-show",value:!e.collapsible||e.collapsible&&e.newActive,expression:"!collapsible || (collapsible && newActive)"}],staticClass:"navbar-dropdown",class:{"is-right":e.right,"is-boxed":e.boxed}},[e._t("default")],2)])},staticRenderFns:[]},undefined,{name:"BNavbarDropdown",directives:{clickOutside:Ft},props:{label:String,hoverable:Boolean,active:Boolean,right:Boolean,arrowless:Boolean,boxed:Boolean,closeOnClick:{type:Boolean,default:!0},collapsible:Boolean},data:function(){return{newActive:this.active,isHoverable:this.hoverable,_isNavbarDropdown:!0}},watch:{active:function(e){this.newActive=e}},methods:{showMenu:function(){this.newActive=!0},closeMenu:function(){this.newActive=!this.closeOnClick,this.hoverable&&this.closeOnClick&&(this.isHoverable=!1)},checkHoverable:function(){this.hoverable&&(this.isHoverable=!0)}}},undefined,!1,undefined,void 0,void 0),Yt={install:function(e){I(e,qt),I(e,Wt),I(e,Gt)}};use(Yt);var Xt,Kt=Yt;var Qt=D({render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"b-numberinput field",class:e.fieldClasses},[e.controls?n("p",{staticClass:"control",on:{mouseup:function(t){e.onStopLongPress(!1)},mouseleave:function(t){e.onStopLongPress(!1)},touchend:function(t){e.onStopLongPress(!1)},touchcancel:function(t){e.onStopLongPress(!1)}}},[n("button",{staticClass:"button",class:e.buttonClasses,attrs:{type:"button",disabled:e.disabled||e.disabledMin},on:{mousedown:function(t){e.onStartLongPress(t,!1)},touchstart:function(t){t.preventDefault(),e.onStartLongPress(t,!1)},click:function(t){e.onControlClick(t,!1)}}},[n("b-icon",{attrs:{icon:"minus",both:"",pack:e.iconPack,size:e.iconSize}})],1)]):e._e(),e._v(" "),n("b-input",e._b({ref:"input",attrs:{type:"number",step:e.newStep,max:e.max,min:e.min,size:e.size,disabled:e.disabled,readonly:!e.editable,loading:e.loading,rounded:e.rounded,icon:e.icon,"icon-pack":e.iconPack,autocomplete:e.autocomplete,expanded:e.expanded,"use-html5-validation":e.useHtml5Validation},on:{focus:function(t){e.$emit("focus",t)},blur:function(t){e.$emit("blur",t)}},model:{value:e.computedValue,callback:function(t){e.computedValue=e._n(t)},expression:"computedValue"}},"b-input",e.$attrs,!1)),e._v(" "),e.controls?n("p",{staticClass:"control",on:{mouseup:function(t){e.onStopLongPress(!0)},mouseleave:function(t){e.onStopLongPress(!0)},touchend:function(t){e.onStopLongPress(!0)},touchcancel:function(t){e.onStopLongPress(!0)}}},[n("button",{staticClass:"button",class:e.buttonClasses,attrs:{type:"button",disabled:e.disabled||e.disabledMax},on:{mousedown:function(t){e.onStartLongPress(t,!0)},touchstart:function(t){t.preventDefault(),e.onStartLongPress(t,!0)},click:function(t){e.onControlClick(t,!0)}}},[n("b-icon",{attrs:{icon:"plus",both:"",pack:e.iconPack,size:e.iconSize}})],1)]):e._e()],1)},staticRenderFns:[]},undefined,{name:"BNumberinput",components:(Xt={},o(Xt,L.name,L),o(Xt,N.name,N),Xt),mixins:[P],inheritAttrs:!1,props:{value:Number,min:[Number,String],max:[Number,String],step:[Number,String],disabled:Boolean,type:{type:String,default:"is-primary"},editable:{type:Boolean,default:!0},controls:{type:Boolean,default:!0},controlsRounded:{type:Boolean,default:!1},controlsPosition:String},data:function(){return{newValue:isNaN(this.value)?parseFloat(this.min)||0:this.value,newStep:this.step||1,_elementRef:"input"}},computed:{computedValue:{get:function(){return this.newValue},set:function(e){var t=e;""===e&&(t=parseFloat(this.min)||null),this.newValue=t,this.$emit("input",t),!this.isValid&&this.$refs.input.checkHtml5Validity()}},fieldClasses:function(){return[{"has-addons":"compact"===this.controlsPosition},{"is-grouped":"compact"!==this.controlsPosition},{"is-expanded":this.expanded}]},buttonClasses:function(){return[this.type,this.size,{"is-rounded":this.controlsRounded}]},minNumber:function(){return"string"==typeof this.min?parseFloat(this.min):this.min},maxNumber:function(){return"string"==typeof this.max?parseFloat(this.max):this.max},stepNumber:function(){return"string"==typeof this.newStep?parseFloat(this.newStep):this.newStep},disabledMin:function(){return this.computedValue-this.stepNumberthis.maxNumber},stepDecimals:function(){var e=this.stepNumber.toString(),t=e.indexOf(".");return t>=0?e.substring(t+1).length:0}},watch:{value:function(e){this.newValue=e}},methods:{decrement:function(){if(void 0===this.minNumber||this.computedValue-this.stepNumber>=this.minNumber){var e=this.computedValue-this.stepNumber;this.computedValue=parseFloat(e.toFixed(this.stepDecimals))}},increment:function(){if(void 0===this.maxNumber||this.computedValue+this.stepNumber<=this.maxNumber){var e=this.computedValue+this.stepNumber;this.computedValue=parseFloat(e.toFixed(this.stepDecimals))}},onControlClick:function(e,t){0===e.detail&&"click"!==e.type&&(t?this.increment():this.decrement())},onStartLongPress:function(e,t){var n=this;0!==e.button&&"touchstart"!==e.type||(this._$intervalTime=new Date,clearInterval(this._$intervalRef),this._$intervalRef=setInterval((function(){t?n.increment():n.decrement()}),250))},onStopLongPress:function(e){this._$intervalRef&&(new Date-this._$intervalTime<250&&(e?this.increment():this.decrement()),clearInterval(this._$intervalRef),this._$intervalRef=null)}}},undefined,!1,undefined,void 0,void 0),Jt={install:function(e){I(e,Qt)}};use(Jt);var Zt=Jt;var en,tn=D({render:function(){var e,t=this,n=t.$createElement;return(t._self._c||n)(t.tag,t._b({tag:"component",staticClass:"pagination-link",class:(e={"is-current":t.page.isCurrent},e[t.page.class]=!0,e),attrs:{role:"button",href:t.href,disabled:t.isDisabled,"aria-label":t.page["aria-label"],"aria-current":t.page.isCurrent},on:{click:function(e){return e.preventDefault(),t.page.click(e)}}},"component",t.$attrs,!1),[t._t("default",[t._v(t._s(t.page.number))])],2)},staticRenderFns:[]},undefined,{name:"BPaginationButton",props:{page:{type:Object,required:!0},tag:{type:String,default:"a",validator:function(e){return A.defaultLinkTags.indexOf(e)>=0}},disabled:{type:Boolean,default:!1}},computed:{href:function(){if("a"===this.tag)return"#"},isDisabled:function(){return this.disabled||this.page.disabled}}},undefined,!1,undefined,void 0,void 0),nn={name:"BPagination",components:(en={},o(en,L.name,L),o(en,tn.name,tn),en),props:{total:[Number,String],perPage:{type:[Number,String],default:20},current:{type:[Number,String],default:1},rangeBefore:{type:[Number,String],default:1},rangeAfter:{type:[Number,String],default:1},size:String,simple:Boolean,rounded:Boolean,order:String,iconPack:String,iconPrev:{type:String,default:function(){return A.defaultIconPrev}},iconNext:{type:String,default:function(){return A.defaultIconNext}},ariaNextLabel:String,ariaPreviousLabel:String,ariaPageLabel:String,ariaCurrentLabel:String},computed:{rootClasses:function(){return[this.order,this.size,{"is-simple":this.simple,"is-rounded":this.rounded}]},beforeCurrent:function(){return parseInt(this.rangeBefore)},afterCurrent:function(){return parseInt(this.rangeAfter)},pageCount:function(){return Math.ceil(this.total/this.perPage)},firstItem:function(){var e=this.current*this.perPage-this.perPage+1;return e>=0?e:0},hasPrev:function(){return this.current>1},hasFirst:function(){return this.current>=2+this.beforeCurrent},hasFirstEllipsis:function(){return this.current>=this.beforeCurrent+4},hasLast:function(){return this.current<=this.pageCount-(1+this.afterCurrent)},hasLastEllipsis:function(){return this.currente&&this.last()}},methods:{prev:function(e){this.changePage(this.current-1,e)},next:function(e){this.changePage(this.current+1,e)},first:function(e){this.changePage(1,e)},last:function(e){this.changePage(this.pageCount,e)},changePage:function(e,t){this.current===e||e<1||e>this.pageCount||(this.$emit("change",e),this.$emit("update:current",e),t&&t.target&&this.$nextTick((function(){return t.target.focus()})))},getPage:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return{number:e,isCurrent:this.current===e,click:function(n){return t.changePage(e,n)},disabled:n.disabled||!1,class:n.class||"","aria-label":n["aria-label"]||this.getAriaPageLabel(e,this.current===e)}},getAriaPageLabel:function(e,t){return!this.ariaPageLabel||t&&this.ariaCurrentLabel?this.ariaPageLabel&&t&&this.ariaCurrentLabel?this.ariaCurrentLabel+", "+this.ariaPageLabel+" "+e+".":null:this.ariaPageLabel+" "+e+"."}}};var rn=D({render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("nav",{staticClass:"pagination",class:e.rootClasses},[e.$scopedSlots.previous?e._t("previous",[n("b-icon",{attrs:{icon:e.iconPrev,pack:e.iconPack,both:"","aria-hidden":"true"}})],{page:e.getPage(e.current-1,{disabled:!e.hasPrev,class:"pagination-previous","aria-label":e.ariaPreviousLabel})}):n("BPaginationButton",{staticClass:"pagination-previous",attrs:{disabled:!e.hasPrev,page:e.getPage(e.current-1)}},[n("b-icon",{attrs:{icon:e.iconPrev,pack:e.iconPack,both:"","aria-hidden":"true"}})],1),e._v(" "),e.$scopedSlots.next?e._t("next",[n("b-icon",{attrs:{icon:e.iconNext,pack:e.iconPack,both:"","aria-hidden":"true"}})],{page:e.getPage(e.current+1,{disabled:!e.hasNext,class:"pagination-next","aria-label":e.ariaNextLabel})}):n("BPaginationButton",{staticClass:"pagination-next",attrs:{disabled:!e.hasNext,page:e.getPage(e.current+1)}},[n("b-icon",{attrs:{icon:e.iconNext,pack:e.iconPack,both:"","aria-hidden":"true"}})],1),e._v(" "),e.simple?n("small",{staticClass:"info"},[1==e.perPage?[e._v("\r\n "+e._s(e.firstItem)+" / "+e._s(e.total)+"\r\n ")]:[e._v("\r\n "+e._s(e.firstItem)+"-"+e._s(Math.min(e.current*e.perPage,e.total))+" / "+e._s(e.total)+"\r\n ")]],2):n("ul",{staticClass:"pagination-list"},[e.hasFirst?n("li",[e.$scopedSlots.default?e._t("default",null,{page:e.getPage(1)}):n("BPaginationButton",{attrs:{page:e.getPage(1)}})],2):e._e(),e._v(" "),e.hasFirstEllipsis?n("li",[n("span",{staticClass:"pagination-ellipsis"},[e._v("…")])]):e._e(),e._v(" "),e._l(e.pagesInRange,(function(t){return n("li",{key:t.number},[e.$scopedSlots.default?e._t("default",null,{page:t}):n("BPaginationButton",{attrs:{page:t}})],2)})),e._v(" "),e.hasLastEllipsis?n("li",[n("span",{staticClass:"pagination-ellipsis"},[e._v("…")])]):e._e(),e._v(" "),e.hasLast?n("li",[e.$scopedSlots.default?e._t("default",null,{page:e.getPage(e.pageCount)}):n("BPaginationButton",{attrs:{page:e.getPage(e.pageCount)}})],2):e._e()],2)],2)},staticRenderFns:[]},undefined,nn,undefined,!1,undefined,void 0,void 0),an={install:function(e){I(e,rn),I(e,tn)}};use(an);var on=an;var sn=D({render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"progress-wrapper"},[n("progress",{ref:"progress",staticClass:"progress",class:e.newType,attrs:{max:e.max}},[e._v(e._s(e.newValue))]),e._v(" "),e.showValue?n("p",{staticClass:"progress-value"},[e._t("default",[e._v(e._s(e.newValue))])],2):e._e()])},staticRenderFns:[]},undefined,{name:"BProgress",props:{type:{type:[String,Object],default:"is-darkgrey"},size:String,value:{type:Number,default:void 0},max:{type:Number,default:100},showValue:{type:Boolean,default:!1},format:{type:String,default:"raw",validator:function(e){return["raw","percent"].indexOf(e)>=0}},precision:{type:Number,default:2},keepTrailingZeroes:{type:Boolean,default:!1}},computed:{isIndeterminate:function(){return void 0===this.value||null===this.value},newType:function(){return[this.size,this.type]},newValue:function(){if(void 0!==this.value&&null!==this.value&&!isNaN(this.value)){if("percent"===this.format){var e=this.toFixed(100*this.value/this.max);return"".concat(e,"%")}return this.toFixed(this.value)}}},watch:{value:function(e){this.setValue(e)}},methods:{setValue:function(e){this.isIndeterminate?this.$refs.progress.removeAttribute("value"):this.$refs.progress.setAttribute("value",e)},toFixed:function(e){var t=(+"".concat(Math.round(+"".concat(e,"e").concat(this.precision)),"e").concat(-this.precision)).toFixed(this.precision);return this.keepTrailingZeroes||(t=t.replace(/\.?0+$/,"")),t}},mounted:function(){this.setValue(this.value)}},undefined,!1,undefined,void 0,void 0),un={install:function(e){I(e,sn)}};use(un);var progress=un;var ln=D({render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("label",{ref:"label",staticClass:"b-radio radio",class:[e.size,{"is-disabled":e.disabled}],attrs:{disabled:e.disabled},on:{click:e.focus,keydown:function(t){if(!("button"in t)&&e._k(t.keyCode,"enter",13,t.key,"Enter"))return null;t.preventDefault(),e.$refs.label.click()}}},[n("input",{directives:[{name:"model",rawName:"v-model",value:e.computedValue,expression:"computedValue"}],ref:"input",attrs:{type:"radio",disabled:e.disabled,required:e.required,name:e.name},domProps:{value:e.nativeValue,checked:e._q(e.computedValue,e.nativeValue)},on:{click:function(e){e.stopPropagation()},change:function(t){e.computedValue=e.nativeValue}}}),e._v(" "),n("span",{staticClass:"check",class:e.type}),e._v(" "),n("span",{staticClass:"control-label"},[e._t("default")],2)])},staticRenderFns:[]},undefined,{name:"BRadio",mixins:[Q]},undefined,!1,undefined,void 0,void 0);var cn=D({render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"control",class:{"is-expanded":e.expanded}},[n("label",{ref:"label",staticClass:"b-radio radio button",class:[e.newValue===e.nativeValue?e.type:null,e.size,{"is-disabled":e.disabled,"is-focused":e.isFocused}],attrs:{disabled:e.disabled},on:{click:e.focus,keydown:function(t){if(!("button"in t)&&e._k(t.keyCode,"enter",13,t.key,"Enter"))return null;t.preventDefault(),e.$refs.label.click()}}},[e._t("default"),e._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:e.computedValue,expression:"computedValue"}],ref:"input",attrs:{type:"radio",disabled:e.disabled,required:e.required,name:e.name},domProps:{value:e.nativeValue,checked:e._q(e.computedValue,e.nativeValue)},on:{click:function(e){e.stopPropagation()},focus:function(t){e.isFocused=!0},blur:function(t){e.isFocused=!1},change:function(t){e.computedValue=e.nativeValue}}})],2)])},staticRenderFns:[]},undefined,{name:"BRadioButton",mixins:[Q],props:{type:{type:String,default:"is-primary"},expanded:Boolean},data:function(){return{isFocused:!1}}},undefined,!1,undefined,void 0,void 0),dn={install:function(e){I(e,ln),I(e,cn)}};use(dn);var hn=dn;var fn=D({render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"rate",class:{"is-disabled":e.disabled,"is-spaced":e.spaced,"is-rtl":e.rtl}},[e._l(e.max,(function(t,r){return n("div",{key:r,staticClass:"rate-item",class:e.rateClass(t),on:{mousemove:function(n){e.previewRate(t,n)},mouseleave:e.resetNewValue,click:function(n){n.preventDefault(),e.confirmValue(t)}}},[n("b-icon",{attrs:{pack:e.iconPack,icon:e.icon,size:e.size}}),e._v(" "),e.checkHalf(t)?n("b-icon",{staticClass:"is-half",style:e.halfStyle,attrs:{pack:e.iconPack,icon:e.icon,size:e.size}}):e._e()],1)})),e._v(" "),e.showText||e.showScore||e.customText?n("div",{staticClass:"rate-text",class:e.size},[n("span",[e._v(e._s(e.showMe))]),e._v(" "),e.customText&&!e.showText?n("span",[e._v(e._s(e.customText))]):e._e()]):e._e()],2)},staticRenderFns:[]},undefined,{name:"BRate",components:o({},L.name,L),props:{value:{type:Number,default:0},max:{type:Number,default:5},icon:{type:String,default:"star"},iconPack:String,size:String,spaced:Boolean,rtl:Boolean,disabled:Boolean,showScore:Boolean,showText:Boolean,customText:String,texts:Array},data:function(){return{newValue:this.value,hoverValue:0}},computed:{halfStyle:function(){return"width:".concat(this.valueDecimal,"%")},showMe:function(){var e="";return this.showScore?0===(e=this.disabled?this.value:this.newValue)&&(e=""):this.showText&&(e=this.texts[Math.ceil(this.newValue)-1]),e},valueDecimal:function(){return 100*this.value-100*Math.floor(this.value)}},watch:{value:function(e){this.newValue=e}},methods:{resetNewValue:function(){this.disabled||(this.hoverValue=0)},previewRate:function(e,t){this.disabled||(this.hoverValue=e,t.stopPropagation())},confirmValue:function(e){this.disabled||(this.newValue=e,this.$emit("change",this.newValue),this.$emit("input",this.newValue))},checkHalf:function(e){return this.disabled&&this.valueDecimal>0&&e-1this.value},rateClass:function(e){var output="";return e<=(0!==this.hoverValue?this.hoverValue:this.newValue)?output="set-on":this.disabled&&Math.ceil(this.value)===e&&(output="set-half"),output}}},undefined,!1,undefined,void 0,void 0),pn={install:function(e){I(e,fn)}};use(pn);var mn=pn,gn={install:function(e){I(e,xe)}};use(gn);var vn=gn;var yn=D({},undefined,{name:"BSkeleton",functional:!0,props:{active:{type:Boolean,default:!0},animated:{type:Boolean,default:!0},width:[Number,String],height:[Number,String],circle:Boolean,rounded:{type:Boolean,default:!0},count:{type:Number,default:1},size:String},render:function(e,t){if(t.props.active){for(var n=[],r=t.props.width,o=t.props.height,i=0;i=0}},fullheight:Boolean,fullwidth:Boolean,right:Boolean,mobile:{type:String},reduce:Boolean,expandOnHover:Boolean,expandOnHoverFixed:Boolean,canCancel:{type:[Array,Boolean],default:function(){return["escape","outside"]}},onCancel:{type:Function,default:function(){}}},data:function(){return{isOpen:this.open,transitionName:null,animating:!0}},computed:{rootClasses:function(){return[this.type,{"is-fixed":this.isFixed,"is-static":this.isStatic,"is-absolute":this.isAbsolute,"is-fullheight":this.fullheight,"is-fullwidth":this.fullwidth,"is-right":this.right,"is-mini":this.reduce,"is-mini-expand":this.expandOnHover,"is-mini-expand-fixed":this.expandOnHover&&this.expandOnHoverFixed,"is-mini-mobile":"reduce"===this.mobile,"is-hidden-mobile":"hide"===this.mobile,"is-fullwidth-mobile":"fullwidth"===this.mobile}]},cancelOptions:function(){return"boolean"==typeof this.canCancel?this.canCancel?["escape","outside"]:[]:this.canCancel},isStatic:function(){return"static"===this.position},isFixed:function(){return"fixed"===this.position},isAbsolute:function(){return"absolute"===this.position},whiteList:function(){var e=[];if(e.push(this.$refs.sidebarContent),void 0!==this.$refs.sidebarContent){var t=this.$refs.sidebarContent.querySelectorAll("*"),n=!0,r=!1,o=void 0;try{for(var l,c=t[Symbol.iterator]();!(n=(l=c.next()).done);n=!0){var d=l.value;e.push(d)}}catch(e){r=!0,o=e}finally{try{n||null==c.return||c.return()}finally{if(r)throw o}}}return e}},watch:{open:{handler:function(e){this.isOpen=e;var t=this.right?!e:e;this.transitionName=t?"slide-next":"slide-prev"},immediate:!0}},methods:{keyPress:function(e){this.isFixed&&this.isOpen&&27===e.keyCode&&this.cancel("escape")},cancel:function(e){this.cancelOptions.indexOf(e)<0||this.isStatic||(this.onCancel.apply(null,arguments),this.close())},close:function(){this.isOpen=!1,this.$emit("close"),this.$emit("update:open",!1)},clickedOutside:function(e){this.isFixed&&this.isOpen&&!this.animating&&this.whiteList.indexOf(e.target)<0&&this.cancel("outside")},beforeEnter:function(){this.animating=!0},afterEnter:function(){this.animating=!1}},created:function(){"undefined"!=typeof window&&(document.addEventListener("keyup",this.keyPress),document.addEventListener("click",this.clickedOutside))},mounted:function(){"undefined"!=typeof window&&this.isFixed&&document.body.appendChild(this.$el)},beforeDestroy:function(){"undefined"!=typeof window&&(document.removeEventListener("keyup",this.keyPress),document.removeEventListener("click",this.clickedOutside)),this.isFixed&&S(this.$el)}};var wn=D({render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"b-sidebar"},[e.overlay&&e.isOpen?n("div",{staticClass:"sidebar-background"}):e._e(),e._v(" "),n("transition",{attrs:{name:e.transitionName},on:{"before-enter":e.beforeEnter,"after-enter":e.afterEnter}},[n("div",{directives:[{name:"show",rawName:"v-show",value:e.isOpen,expression:"isOpen"}],ref:"sidebarContent",staticClass:"sidebar-content",class:e.rootClasses},[e._t("default")],2)])],1)},staticRenderFns:[]},undefined,Tn,undefined,!1,undefined,void 0,void 0),Sn={install:function(e){I(e,wn)}};use(Sn);var kn=Sn;var xn=D({render:function(){var e=this,t=e.$createElement;return(e._self._c||t)("span",{class:[e.newType,e.position,e.size,{"b-tooltip":e.active,"is-square":e.square,"is-animated":e.newAnimated,"is-always":e.always,"is-multiline":e.multilined,"is-dashed":e.dashed}],style:{"transition-delay":e.newDelay+"ms"},attrs:{"data-label":e.label}},[e._t("default")],2)},staticRenderFns:[]},undefined,{name:"BTooltip",props:{active:{type:Boolean,default:!0},type:String,label:String,position:{type:String,default:"is-top",validator:function(e){return["is-top","is-bottom","is-left","is-right"].indexOf(e)>-1}},always:Boolean,animated:Boolean,square:Boolean,dashed:Boolean,multilined:Boolean,size:{type:String,default:"is-medium"},delay:Number},computed:{newType:function(){return this.type||A.defaultTooltipType},newAnimated:function(){return this.animated||A.defaultTooltipAnimated},newDelay:function(){return this.delay||A.defaultTooltipDelay}}},undefined,!1,undefined,void 0,void 0);var Cn=D({render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"b-slider-thumb-wrapper",class:{"is-dragging":e.dragging},style:e.wrapperStyle},[n("b-tooltip",{attrs:{label:e.tooltipLabel,type:e.type,always:e.dragging||e.isFocused,active:!e.disabled&&e.tooltip}},[n("div",e._b({staticClass:"b-slider-thumb",attrs:{tabindex:!e.disabled&&0},on:{mousedown:e.onButtonDown,touchstart:e.onButtonDown,focus:e.onFocus,blur:e.onBlur,keydown:[function(t){return!("button"in t)&&e._k(t.keyCode,"left",37,t.key,["Left","ArrowLeft"])||"button"in t&&0!==t.button?null:(t.preventDefault(),e.onLeftKeyDown(t))},function(t){return!("button"in t)&&e._k(t.keyCode,"right",39,t.key,["Right","ArrowRight"])||"button"in t&&2!==t.button?null:(t.preventDefault(),e.onRightKeyDown(t))},function(t){return!("button"in t)&&e._k(t.keyCode,"down",40,t.key,["Down","ArrowDown"])?null:(t.preventDefault(),e.onLeftKeyDown(t))},function(t){return!("button"in t)&&e._k(t.keyCode,"up",38,t.key,["Up","ArrowUp"])?null:(t.preventDefault(),e.onRightKeyDown(t))},function(t){return!("button"in t)&&e._k(t.keyCode,"home",void 0,t.key,void 0)?null:(t.preventDefault(),e.onHomeKeyDown(t))},function(t){return!("button"in t)&&e._k(t.keyCode,"end",void 0,t.key,void 0)?null:(t.preventDefault(),e.onEndKeyDown(t))}]}},"div",e.$attrs,!1))])],1)},staticRenderFns:[]},undefined,{name:"BSliderThumb",components:o({},xn.name,xn),inheritAttrs:!1,props:{value:{type:Number,default:0},type:{type:String,default:""},tooltip:{type:Boolean,default:!0},customFormatter:Function},data:function(){return{isFocused:!1,dragging:!1,startX:0,startPosition:0,newPosition:null,oldValue:this.value}},computed:{disabled:function(){return this.$parent.disabled},max:function(){return this.$parent.max},min:function(){return this.$parent.min},step:function(){return this.$parent.step},precision:function(){return this.$parent.precision},currentPosition:function(){return"".concat((this.value-this.min)/(this.max-this.min)*100,"%")},wrapperStyle:function(){return{left:this.currentPosition}},tooltipLabel:function(){return void 0!==this.customFormatter?this.customFormatter(this.value):this.value.toString()}},methods:{onFocus:function(){this.isFocused=!0},onBlur:function(){this.isFocused=!1},onButtonDown:function(e){this.disabled||(e.preventDefault(),this.onDragStart(e),"undefined"!=typeof window&&(document.addEventListener("mousemove",this.onDragging),document.addEventListener("touchmove",this.onDragging),document.addEventListener("mouseup",this.onDragEnd),document.addEventListener("touchend",this.onDragEnd),document.addEventListener("contextmenu",this.onDragEnd)))},onLeftKeyDown:function(){this.disabled||this.value===this.min||(this.newPosition=parseFloat(this.currentPosition)-this.step/(this.max-this.min)*100,this.setPosition(this.newPosition),this.$parent.emitValue("change"))},onRightKeyDown:function(){this.disabled||this.value===this.max||(this.newPosition=parseFloat(this.currentPosition)+this.step/(this.max-this.min)*100,this.setPosition(this.newPosition),this.$parent.emitValue("change"))},onHomeKeyDown:function(){this.disabled||this.value===this.min||(this.newPosition=0,this.setPosition(this.newPosition),this.$parent.emitValue("change"))},onEndKeyDown:function(){this.disabled||this.value===this.max||(this.newPosition=100,this.setPosition(this.newPosition),this.$parent.emitValue("change"))},onDragStart:function(e){this.dragging=!0,this.$emit("dragstart"),"touchstart"===e.type&&(e.clientX=e.touches[0].clientX),this.startX=e.clientX,this.startPosition=parseFloat(this.currentPosition),this.newPosition=this.startPosition},onDragging:function(e){if(this.dragging){"touchmove"===e.type&&(e.clientX=e.touches[0].clientX);var t=(e.clientX-this.startX)/this.$parent.sliderSize()*100;this.newPosition=this.startPosition+t,this.setPosition(this.newPosition)}},onDragEnd:function(){this.dragging=!1,this.$emit("dragend"),this.value!==this.oldValue&&this.$parent.emitValue("change"),this.setPosition(this.newPosition),"undefined"!=typeof window&&(document.removeEventListener("mousemove",this.onDragging),document.removeEventListener("touchmove",this.onDragging),document.removeEventListener("mouseup",this.onDragEnd),document.removeEventListener("touchend",this.onDragEnd),document.removeEventListener("contextmenu",this.onDragEnd))},setPosition:function(e){if(null!==e&&!isNaN(e)){e<0?e=0:e>100&&(e=100);var t=100/((this.max-this.min)/this.step),n=Math.round(e/t)*t/100*(this.max-this.min)+this.min;n=parseFloat(n.toFixed(this.precision)),this.$emit("input",n),this.dragging||n===this.oldValue||(this.oldValue=n)}}}},undefined,!1,undefined,void 0,void 0);var An,En=D({render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"b-slider-tick",class:{"is-tick-hidden":e.hidden},style:e.getTickStyle(e.position)},[e.$slots.default?n("span",{staticClass:"b-slider-tick-label"},[e._t("default")],2):e._e()])},staticRenderFns:[]},undefined,{name:"BSliderTick",props:{value:{type:Number,default:0}},computed:{position:function(){var e=(this.value-this.$parent.min)/(this.$parent.max-this.$parent.min)*100;return e>=0&&e<=100?e:0},hidden:function(){return this.value===this.$parent.min||this.value===this.$parent.max}},methods:{getTickStyle:function(e){return{left:e+"%"}}},created:function(){if(!this.$parent.$data._isSlider)throw this.$destroy(),new Error("You should wrap bSliderTick on a bSlider")}},undefined,!1,undefined,void 0,void 0);var Dn=D({render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"b-slider",class:[e.size,e.type,e.rootClasses],on:{click:e.onSliderClick}},[n("div",{ref:"slider",staticClass:"b-slider-track"},[n("div",{staticClass:"b-slider-fill",style:e.barStyle}),e._v(" "),e.ticks?e._l(e.tickValues,(function(e,t){return n("b-slider-tick",{key:t,attrs:{value:e}})})):e._e(),e._v(" "),e._t("default"),e._v(" "),n("b-slider-thumb",{ref:"button1",attrs:{type:e.newTooltipType,tooltip:e.tooltip,"custom-formatter":e.customFormatter,role:"slider","aria-valuenow":e.value1,"aria-valuemin":e.min,"aria-valuemax":e.max,"aria-orientation":"horizontal","aria-label":Array.isArray(e.ariaLabel)?e.ariaLabel[0]:e.ariaLabel,"aria-disabled":e.disabled},on:{dragstart:e.onDragStart,dragend:e.onDragEnd},model:{value:e.value1,callback:function(t){e.value1=t},expression:"value1"}}),e._v(" "),e.isRange?n("b-slider-thumb",{ref:"button2",attrs:{type:e.newTooltipType,tooltip:e.tooltip,"custom-formatter":e.customFormatter,role:"slider","aria-valuenow":e.value2,"aria-valuemin":e.min,"aria-valuemax":e.max,"aria-orientation":"horizontal","aria-label":Array.isArray(e.ariaLabel)?e.ariaLabel[1]:"","aria-disabled":e.disabled},on:{dragstart:e.onDragStart,dragend:e.onDragEnd},model:{value:e.value2,callback:function(t){e.value2=t},expression:"value2"}}):e._e()],2)])},staticRenderFns:[]},undefined,{name:"BSlider",components:(An={},o(An,Cn.name,Cn),o(An,En.name,En),An),props:{value:{type:[Number,Array],default:0},min:{type:Number,default:0},max:{type:Number,default:100},step:{type:Number,default:1},type:{type:String,default:"is-primary"},size:String,ticks:{type:Boolean,default:!1},tooltip:{type:Boolean,default:!0},tooltipType:String,rounded:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},lazy:{type:Boolean,default:!1},customFormatter:Function,ariaLabel:[String,Array],biggerSliderFocus:{type:Boolean,default:!1}},data:function(){return{value1:null,value2:null,dragging:!1,isRange:!1,_isSlider:!0}},computed:{newTooltipType:function(){return this.tooltipType?this.tooltipType:this.type},tickValues:function(){if(!this.ticks||this.min>this.max||0===this.step)return[];for(var e=[],i=this.min+this.step;ithis.max))if(Array.isArray(e)){this.isRange=!0;var t="number"!=typeof e[0]||isNaN(e[0])?this.min:Math.min(Math.max(this.min,e[0]),this.max),n="number"!=typeof e[1]||isNaN(e[1])?this.max:Math.max(Math.min(this.max,e[1]),this.min);this.value1=this.isThumbReversed?n:t,this.value2=this.isThumbReversed?t:n}else this.isRange=!1,this.value1=isNaN(e)?this.min:Math.min(this.max,Math.max(this.min,e)),this.value2=null},onInternalValueUpdate:function(){this.isRange&&(this.isThumbReversed=this.value1>this.value2),this.lazy&&this.dragging||this.emitValue("input"),this.dragging&&this.emitValue("dragging")},sliderSize:function(){return this.$refs.slider.getBoundingClientRect().width},onSliderClick:function(e){if(!this.disabled&&!this.isTrackClickDisabled){var t=this.$refs.slider.getBoundingClientRect().left,n=(e.clientX-t)/this.sliderSize()*100,r=this.min+n*(this.max-this.min)/100,o=Math.abs(r-this.value1);if(this.isRange){var l=Math.abs(r-this.value2);if(o<=l){if(or}]},[n("a",{staticClass:"step-link",class:{"is-clickable":e.isItemClickable(t,r)},on:{click:function(n){e.isItemClickable(t,r)&&e.stepClick(r)}}},[n("div",{staticClass:"step-marker"},[t.icon?n("b-icon",{attrs:{icon:t.icon,pack:t.iconPack,size:e.size}}):t.step?n("span",[e._v(e._s(t.step))]):e._e()],1),e._v(" "),n("div",{staticClass:"step-details"},[n("span",{staticClass:"step-title"},[e._v(e._s(t.label))])])])])})))]),e._v(" "),n("section",{staticClass:"step-content",class:{"is-transitioning":e.isTransitioning}},[e._t("default")],2),e._v(" "),e._t("navigation",[e.hasNavigation?n("nav",{staticClass:"step-navigation"},[n("a",{staticClass:"pagination-previous",attrs:{role:"button",disabled:e.navigationProps.previous.disabled,"aria-label":e.ariaPreviousLabel},on:{click:function(t){return t.preventDefault(),e.navigationProps.previous.action(t)}}},[n("b-icon",{attrs:{icon:e.iconPrev,pack:e.iconPack,both:"","aria-hidden":"true"}})],1),e._v(" "),n("a",{staticClass:"pagination-next",attrs:{role:"button",disabled:e.navigationProps.next.disabled,"aria-label":e.ariaNextLabel},on:{click:function(t){return t.preventDefault(),e.navigationProps.next.action(t)}}},[n("b-icon",{attrs:{icon:e.iconNext,pack:e.iconPack,both:"","aria-hidden":"true"}})],1)]):e._e()],{previous:e.navigationProps.previous,next:e.navigationProps.next})],2)},staticRenderFns:[]},undefined,{name:"BSteps",components:(Nn={},o(Nn,L.name,L),o(Nn,Bn.name,Bn),Nn),props:{value:[Number,String],type:[String,Object],size:String,animated:{type:Boolean,default:!0},destroyOnHide:{type:Boolean,default:!1},iconPack:String,iconPrev:{type:String,default:function(){return A.defaultIconPrev}},iconNext:{type:String,default:function(){return A.defaultIconNext}},hasNavigation:{type:Boolean,default:!0},vertical:{type:Boolean,default:!1},position:String,labelPosition:{type:String,validator:function(e){return["bottom","right","left"].indexOf(e)>-1},default:"bottom"},rounded:{type:Boolean,default:!0},mobileMode:{type:String,validator:function(e){return["minimalist","compact"].indexOf(e)>-1},default:"minimalist"},ariaNextLabel:String,ariaPreviousLabel:String},data:function(){return{activeStep:0,defaultSlots:[],contentHeight:0,isTransitioning:!1,_isSteps:!0}},computed:{wrapperClasses:function(){return[this.size,o({"is-vertical":this.vertical},this.position,this.position&&this.vertical)]},mainClasses:function(){return[this.type,o({"has-label-right":"right"===this.labelPosition,"has-label-left":"left"===this.labelPosition,"is-animated":this.animated,"is-rounded":this.rounded},"mobile-".concat(this.mobileMode),null!==this.mobileMode)]},stepItems:function(){return this.defaultSlots.filter((function(e){return e.componentInstance&&e.componentInstance.$data&&e.componentInstance.$data._isStepItem})).map((function(e){return e.componentInstance}))},reversedStepItems:function(){return this.stepItems.slice().reverse()},firstVisibleStepIndex:function(){return this.stepItems.map((function(e,t){return e.visible})).indexOf(!0)},hasPrev:function(){return this.firstVisibleStepIndex>=0&&this.activeStep>this.firstVisibleStepIndex},lastVisibleStepIndex:function(){var e=this.reversedStepItems.map((function(e,t){return e.visible})).indexOf(!0);return e>=0?this.stepItems.length-1-e:e},hasNext:function(){return this.lastVisibleStepIndex>=0&&this.activeStep0&&this.changeStep(this.activeStep-1)}},methods:{refreshSlots:function(){this.defaultSlots=this.$slots.default||[]},changeStep:function(e){if(this.activeStep!==e){if(e>this.stepItems.length)throw new Error("The index you trying to set is bigger than the steps length");this.activeStept:e.clickable},stepClick:function(e){this.$emit("input",this.getValueByIndex(e)),this.changeStep(e)},prev:function(){var e=this;if(this.hasPrev){var t=this.reversedStepItems.map((function(t,n){return e.stepItems.length-1-n=0&&(t=this.stepItems.length-1-t),this.$emit("input",this.getValueByIndex(t)),this.changeStep(t)}},next:function(){var e=this;if(this.hasNext){var t=this.stepItems.map((function(t,n){return n>e.activeStep&&t.visible})).indexOf(!0);this.$emit("input",this.getValueByIndex(t)),this.changeStep(t)}},getIndexByValue:function(e){var t=this.stepItems.map((function(e){return e.$options.propsData?e.$options.propsData.value:void 0})).indexOf(e);return t>=0?t:e},getValueByIndex:function(e){var t=this.stepItems[e].$options.propsData;return t&&t.value?t.value:e}},mounted:function(){this.activeStep=this.getIndexByValue(this.value||0),this.activeStep-1:e._q(e.computedValue,e.trueValue)},on:{click:function(e){e.stopPropagation()},change:function(t){var n=e.computedValue,r=t.target,o=r.checked?e.trueValue:e.falseValue;if(Array.isArray(n)){var l=e.nativeValue,c=e._i(n,l);r.checked?c<0&&(e.computedValue=n.concat([l])):c>-1&&(e.computedValue=n.slice(0,c).concat(n.slice(c+1)))}else e.computedValue=o}}}),e._v(" "),n("span",{staticClass:"check",class:[{"is-elastic":e.isMouseDown&&!e.disabled},e.passiveType&&e.passiveType+"-passive",e.type]}),e._v(" "),n("span",{staticClass:"control-label"},[e._t("default")],2)])},staticRenderFns:[]},undefined,{name:"BSwitch",props:{value:[String,Number,Boolean,Function,Object,Array,Date],nativeValue:[String,Number,Boolean,Function,Object,Array,Date],disabled:Boolean,type:String,passiveType:String,name:String,required:Boolean,size:String,trueValue:{type:[String,Number,Boolean,Function,Object,Array,Date],default:!0},falseValue:{type:[String,Number,Boolean,Function,Object,Array,Date],default:!1},rounded:{type:Boolean,default:!0},outlined:{type:Boolean,default:!1}},data:function(){return{newValue:this.value,isMouseDown:!1}},computed:{computedValue:{get:function(){return this.newValue},set:function(e){this.newValue=e,this.$emit("input",e)}},newClass:function(){return[this.size,{"is-disabled":this.disabled,"is-rounded":this.rounded,"is-outlined":this.outlined}]}},watch:{value:function(e){this.newValue=e}},methods:{focus:function(){this.$refs.input.focus()}}},undefined,!1,undefined,void 0,void 0),qn={install:function(e){I(e,zn)}};use(qn);var $n,Wn=qn;var Gn=D({render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"field table-mobile-sort"},[n("div",{staticClass:"field has-addons"},[e.sortMultiple?n("b-select",{attrs:{expanded:""},model:{value:e.sortMultipleSelect,callback:function(t){e.sortMultipleSelect=t},expression:"sortMultipleSelect"}},e._l(e.columns,(function(t,r){return t.sortable?n("option",{key:r,domProps:{value:t}},[e._v("\r\n "+e._s(e.getLabel(t))+"\r\n "),e.getSortingObjectOfColumn(t)?[e.columnIsDesc(t)?[e._v("\r\n ↓\r\n ")]:[e._v("\r\n ↑\r\n ")]]:e._e()],2):e._e()}))):n("b-select",{attrs:{expanded:""},model:{value:e.mobileSort,callback:function(t){e.mobileSort=t},expression:"mobileSort"}},[e.placeholder?[n("option",{directives:[{name:"show",rawName:"v-show",value:e.showPlaceholder,expression:"showPlaceholder"}],attrs:{selected:"",disabled:"",hidden:""},domProps:{value:{}}},[e._v("\r\n "+e._s(e.placeholder)+"\r\n ")])]:e._e(),e._v(" "),e._l(e.columns,(function(t,r){return t.sortable?n("option",{key:r,domProps:{value:t}},[e._v("\r\n "+e._s(t.label)+"\r\n ")]):e._e()}))],2),e._v(" "),n("div",{staticClass:"control"},[e.sortMultiple&&e.sortMultipleData.length>0?[n("button",{staticClass:"button is-primary",on:{click:e.sort}},[n("b-icon",{class:{"is-desc":e.columnIsDesc(e.sortMultipleSelect)},attrs:{icon:e.sortIcon,pack:e.iconPack,size:e.sortIconSize,both:""}})],1),e._v(" "),n("button",{staticClass:"button is-primary",on:{click:e.removePriority}},[n("b-icon",{attrs:{icon:"delete",size:e.sortIconSize,both:""}})],1)]:e.sortMultiple?e._e():n("button",{staticClass:"button is-primary",on:{click:e.sort}},[n("b-icon",{directives:[{name:"show",rawName:"v-show",value:e.currentSortColumn===e.mobileSort,expression:"currentSortColumn === mobileSort"}],class:{"is-desc":!e.isAsc},attrs:{icon:e.sortIcon,pack:e.iconPack,size:e.sortIconSize,both:""}})],1)],2)],1)])},staticRenderFns:[]},undefined,{name:"BTableMobileSort",components:($n={},o($n,xe.name,xe),o($n,L.name,L),$n),props:{currentSortColumn:Object,sortMultipleData:Array,isAsc:Boolean,columns:Array,placeholder:String,iconPack:String,sortIcon:{type:String,default:"arrow-up"},sortIconSize:{type:String,default:"is-small"},sortMultiple:{type:Boolean,default:!1}},data:function(){return{sortMultipleSelect:"",mobileSort:this.currentSortColumn,defaultEvent:{shiftKey:!0,altKey:!0,ctrlKey:!0},ignoreSort:!1}},computed:{showPlaceholder:function(){var e=this;return!this.columns||!this.columns.some((function(t){return t===e.mobileSort}))}},watch:{sortMultipleSelect:function(e){this.ignoreSort?this.ignoreSort=!1:this.$emit("sort",e,this.defaultEvent)},mobileSort:function(e){this.currentSortColumn!==e&&this.$emit("sort",e,this.defaultEvent)},currentSortColumn:function(e){this.mobileSort=e}},methods:{removePriority:function(){var e=this;this.$emit("removePriority",this.sortMultipleSelect),this.ignoreSort=!0;var t=this.sortMultipleData.filter((function(data){return data.field!==e.sortMultipleSelect.field})).map((function(data){return data.field}));this.sortMultipleSelect=this.columns.filter((function(e){return t.includes(e.field)}))[0]},getSortingObjectOfColumn:function(e){return this.sortMultipleData.filter((function(i){return i.field===e.field}))[0]},columnIsDesc:function(e){var t=this.getSortingObjectOfColumn(e);return!t||!(!t.order||"desc"!==t.order)},getLabel:function(e){var t=this.getSortingObjectOfColumn(e);return t?e.label+"("+(this.sortMultipleData.indexOf(t)+1)+")":e.label},sort:function(){this.$emit("sort",this.sortMultiple?this.sortMultipleSelect:this.mobileSort,this.defaultEvent)}}},undefined,!1,undefined,void 0,void 0);var Yn,Xn=D({render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return e.visible?n("td",{class:e.rootClasses,attrs:{"data-label":e.label}},[e._t("default")],2):e._e()},staticRenderFns:[]},undefined,{name:"BTableColumn",props:{label:String,customKey:[String,Number],field:String,meta:[String,Number,Boolean,Function,Object,Array],width:[Number,String],numeric:Boolean,centered:Boolean,searchable:Boolean,sortable:Boolean,visible:{type:Boolean,default:!0},subheading:[String,Number],customSort:Function,sticky:Boolean,headerSelectable:{type:Boolean,default:!0},headerClass:String,cellClass:String,internal:Boolean},data:function(){return{newKey:this.customKey||this.label,_isTableColumn:!0}},computed:{rootClasses:function(){return[this.cellClass,{"has-text-right":this.numeric&&!this.centered,"has-text-centered":this.centered,"is-sticky":this.sticky}]}},beforeMount:function(){var e=this;if(!this.$parent.$data._isTable)throw this.$destroy(),new Error("You should wrap bTableColumn on a bTable");this.internal||!this.$parent.newColumns.some((function(t){return t.newKey===e.newKey}))&&this.$parent.newColumns.push(this)},beforeDestroy:function(){if(this.$parent.visibleData.length&&1===this.$parent.newColumns.length&&this.$parent.newColumns.length){var e=this.$parent.newColumns.map((function(e){return e.newKey})).indexOf(this.newKey);e>=0&&this.$parent.newColumns.splice(e,1)}}},undefined,!1,undefined,void 0,void 0),Kn={name:"BTable",components:(Yn={},o(Yn,J.name,J),o(Yn,L.name,L),o(Yn,N.name,N),o(Yn,rn.name,rn),o(Yn,Bn.name,Bn),o(Yn,Gn.name,Gn),o(Yn,Xn.name,Xn),Yn),props:{data:{type:Array,default:function(){return[]}},columns:{type:Array,default:function(){return[]}},bordered:Boolean,striped:Boolean,narrowed:Boolean,hoverable:Boolean,loading:Boolean,detailed:Boolean,checkable:Boolean,headerCheckable:{type:Boolean,default:!0},checkboxPosition:{type:String,default:"left",validator:function(e){return["left","right"].indexOf(e)>=0}},selected:Object,isRowSelectable:{type:Function,default:function(){return!0}},focusable:Boolean,customIsChecked:Function,isRowCheckable:{type:Function,default:function(){return!0}},checkedRows:{type:Array,default:function(){return[]}},mobileCards:{type:Boolean,default:!0},defaultSort:[String,Array],defaultSortDirection:{type:String,default:"asc"},sortIcon:{type:String,default:"arrow-up"},sortIconSize:{type:String,default:"is-small"},sortMultiple:{type:Boolean,default:!1},sortMultipleData:{type:Array,default:function(){return[]}},sortMultipleKey:{type:String,default:null},paginated:Boolean,currentPage:{type:Number,default:1},perPage:{type:[Number,String],default:20},showDetailIcon:{type:Boolean,default:!0},paginationSimple:Boolean,paginationSize:String,paginationPosition:{type:String,default:"bottom",validator:function(e){return["bottom","top","both"].indexOf(e)>=0}},backendSorting:Boolean,backendFiltering:Boolean,rowClass:{type:Function,default:function(){return""}},openedDetailed:{type:Array,default:function(){return[]}},hasDetailedVisible:{type:Function,default:function(){return!0}},detailKey:{type:String,default:""},customDetailRow:{type:Boolean,default:!1},backendPagination:Boolean,total:{type:[Number,String],default:0},iconPack:String,mobileSortPlaceholder:String,customRowKey:String,draggable:{type:Boolean,default:!1},scrollable:Boolean,ariaNextLabel:String,ariaPreviousLabel:String,ariaPageLabel:String,ariaCurrentLabel:String,stickyHeader:Boolean,height:[Number,String],filtersEvent:{type:String,default:""},cardLayout:Boolean},data:function(){return{sortMultipleDataLocal:[],getValueByPath:v,newColumns:h(this.columns),visibleDetailRows:this.openedDetailed,newData:this.data,newDataTotal:this.backendPagination?this.total:this.data.length,newCheckedRows:h(this.checkedRows),lastCheckedRowIndex:null,newCurrentPage:this.currentPage,currentSortColumn:{},isAsc:!0,filters:{},firstTimeSort:!0,_isTable:!0}},computed:{sortMultipleDataComputed:function(){return this.backendSorting?this.sortMultipleData:this.sortMultipleDataLocal},tableClasses:function(){return{"is-bordered":this.bordered,"is-striped":this.striped,"is-narrow":this.narrowed,"is-hoverable":(this.hoverable||this.focusable)&&this.visibleData.length}},tableWrapperClasses:function(){return{"has-mobile-cards":this.mobileCards,"has-sticky-header":this.stickyHeader,"is-card-list":this.cardLayout,"table-container":this.isScrollable}},rooClasses:function(){return{"is-loading":this.loading}},visibleData:function(){if(!this.paginated)return this.newData;var e=this.newCurrentPage,t=this.perPage;if(this.newData.length<=t)return this.newData;var n=(e-1)*t,r=parseInt(n,10)+parseInt(t,10);return this.newData.slice(n,r)},visibleColumns:function(){return this.newColumns?this.newColumns.filter((function(e){return e.visible||void 0===e.visible})):this.newColumns},isAllChecked:function(){var e=this,t=this.visibleData.filter((function(t){return e.isRowCheckable(t)}));if(0===t.length)return!1;var n=t.some((function(t){return y(e.newCheckedRows,t,e.customIsChecked)<0}));return!n},isAllUncheckable:function(){var e=this;return 0===this.visibleData.filter((function(t){return e.isRowCheckable(t)})).length},hasSortablenewColumns:function(){return this.newColumns.some((function(e){return e.sortable}))},hasSearchablenewColumns:function(){return this.newColumns.some((function(e){return e.searchable}))},hasCustomSubheadings:function(){return!(!this.$scopedSlots||!this.$scopedSlots.subheading)||this.newColumns.some((function(e){return e.subheading||e.$scopedSlots&&e.$scopedSlots.subheading}))},columnCount:function(){var e=this.newColumns.length;return e+=this.checkable?1:0,e+=this.detailed&&this.showDetailIcon?1:0},showDetailRowIcon:function(){return this.detailed&&this.showDetailIcon},isScrollable:function(){return!!this.scrollable||!!this.newColumns&&this.newColumns.some((function(e){return e.sticky}))}},watch:{data:function(e){var t=this;this.newData=e,this.backendFiltering||(this.newData=e.filter((function(e){return t.isRowFiltered(e)}))),this.backendSorting||this.sort(this.currentSortColumn,!0),this.backendPagination||(this.newDataTotal=this.newData.length)},total:function(e){this.backendPagination&&(this.newDataTotal=e)},checkedRows:function(e){this.newCheckedRows=h(e)},columns:function(e){this.newColumns=h(e)},newColumns:function(e){this.checkSort()},filters:{handler:function(e){var t=this;this.backendFiltering?this.$emit("filters-change",e):(this.newData=this.data.filter((function(e){return t.isRowFiltered(e)})),this.backendPagination||(this.newDataTotal=this.newData.length),this.backendSorting||(this.sortMultiple&&this.sortMultipleDataLocal&&this.sortMultipleDataLocal.length>0?this.doSortMultiColumn():Object.keys(this.currentSortColumn).length>0&&this.doSortSingleColumn(this.currentSortColumn)))},deep:!0},openedDetailed:function(e){this.visibleDetailRows=e},currentPage:function(e){this.newCurrentPage=e}},methods:{onFiltersEvent:function(e){this.$emit("filters-event-".concat(this.filtersEvent),{event:e,filters:this.filters})},findIndexOfSortData:function(e){var t=this.sortMultipleDataComputed.filter((function(i){return i.field===e.field}))[0];return this.sortMultipleDataComputed.indexOf(t)+1},removeSortingPriority:function(e){if(this.backendSorting)this.$emit("sorting-priority-removed",e.field);else{this.sortMultipleDataLocal=this.sortMultipleDataLocal.filter((function(t){return t.field!==e.field}));var t=this.sortMultipleDataLocal.map((function(i){return(i.order&&"desc"===i.order?"-":"")+i.field}));this.newData=x(this.newData,t)}},resetMultiSorting:function(){this.sortMultipleDataLocal=[],this.currentSortColumn={},this.newData=this.data},sortBy:function(e,t,n,r){return n&&"function"==typeof n?h(e).sort((function(a,b){return n(a,b,r)})):h(e).sort((function(a,b){var e=v(a,t),n=v(b,t);return"boolean"==typeof e&&"boolean"==typeof n?r?e-n:n-e:e||0===e?n||0===n?e===n?0:(e="string"==typeof e?e.toUpperCase():e,n="string"==typeof n?n.toUpperCase():n,r?e>n?1:-1:e>n?-1:1):-1:1}))},sortMultiColumn:function(e){if(this.currentSortColumn={},!this.backendSorting){var t=this.sortMultipleDataLocal.filter((function(i){return i.field===e.field}))[0];t?t.order="desc"===t.order?"asc":"desc":this.sortMultipleDataLocal.push({field:e.field,order:e.isAsc}),this.doSortMultiColumn()}},doSortMultiColumn:function(){var e=this.sortMultipleDataLocal.map((function(i){return(i.order&&"desc"===i.order?"-":"")+i.field}));this.newData=x(this.newData,e)},sort:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;if(!this.backendSorting&&this.sortMultiple&&(this.sortMultipleKey&&n[this.sortMultipleKey]||!this.sortMultipleKey))this.sortMultiColumn(e);else{if(!e||!e.sortable)return;this.sortMultiple&&(this.sortMultipleDataLocal=[]),t||(this.isAsc=e===this.currentSortColumn?!this.isAsc:"desc"!==this.defaultSortDirection.toLowerCase()),this.firstTimeSort||this.$emit("sort",e.field,this.isAsc?"asc":"desc",n),this.backendSorting||this.doSortSingleColumn(e),this.currentSortColumn=e}},doSortSingleColumn:function(e){this.newData=this.sortBy(this.newData,e.field,e.customSort,this.isAsc)},isRowChecked:function(e){return y(this.newCheckedRows,e,this.customIsChecked)>=0},removeCheckedRow:function(e){var t=y(this.newCheckedRows,e,this.customIsChecked);t>=0&&this.newCheckedRows.splice(t,1)},checkAll:function(){var e=this,t=this.isAllChecked;this.visibleData.forEach((function(n){e.isRowCheckable(n)&&e.removeCheckedRow(n),t||e.isRowCheckable(n)&&e.newCheckedRows.push(n)})),this.$emit("check",this.newCheckedRows),this.$emit("check-all",this.newCheckedRows),this.$emit("update:checkedRows",this.newCheckedRows)},checkRow:function(e,t,n){if(this.isRowCheckable(e)){var r=this.lastCheckedRowIndex;this.lastCheckedRowIndex=t,n.shiftKey&&null!==r&&t!==r?this.shiftCheckRow(e,t,r):this.isRowChecked(e)?this.removeCheckedRow(e):this.newCheckedRows.push(e),this.$emit("check",this.newCheckedRows,e),this.$emit("update:checkedRows",this.newCheckedRows)}},shiftCheckRow:function(e,t,n){var r=this,o=this.visibleData.slice(Math.min(t,n),Math.max(t,n)+1),l=!this.isRowChecked(e);o.forEach((function(e){r.removeCheckedRow(e),l&&r.isRowCheckable(e)&&r.newCheckedRows.push(e)}))},selectRow:function(e,t){this.$emit("click",e),this.selected!==e&&this.isRowSelectable(e)&&(this.$emit("select",e,this.selected),this.$emit("update:selected",e))},pageChanged:function(e){this.newCurrentPage=e>0?e:1,this.$emit("page-change",this.newCurrentPage),this.$emit("update:currentPage",this.newCurrentPage)},toggleDetails:function(e){this.isVisibleDetailRow(e)?(this.closeDetailRow(e),this.$emit("details-close",e)):(this.openDetailRow(e),this.$emit("details-open",e)),this.$emit("update:openedDetailed",this.visibleDetailRows)},openDetailRow:function(e){var t=this.handleDetailKey(e);this.visibleDetailRows.push(t)},closeDetailRow:function(e){var t=this.handleDetailKey(e),i=this.visibleDetailRows.indexOf(t);this.visibleDetailRows.splice(i,1)},isVisibleDetailRow:function(e){var t=this.handleDetailKey(e);return this.visibleDetailRows.indexOf(t)>=0},isActiveDetailRow:function(e){return this.detailed&&!this.customDetailRow&&this.isVisibleDetailRow(e)},isActiveCustomDetailRow:function(e){return this.detailed&&this.customDetailRow&&this.isVisibleDetailRow(e)},isRowFiltered:function(e){for(var t in this.filters){if(!this.filters[t])return delete this.filters[t],!0;var n=this.getValueByPath(e,t);if(null==n)return!1;if(Number.isInteger(n)){if(n!==Number(this.filters[t]))return!1}else{var r=new RegExp(this.filters[t],"i");if("boolean"==typeof n&&(n="".concat(n)),!n.match(r))return!1}}return!0},handleDetailKey:function(e){var t=this.detailKey;return t.length&&e?e[t]:e},checkPredefinedDetailedRows:function(){if(this.openedDetailed.length>0&&!this.detailKey.length)throw new Error('If you set a predefined opened-detailed, you must provide a unique key using the prop "detail-key"')},checkSort:function(){if(this.newColumns.length&&this.firstTimeSort)this.initSort(),this.firstTimeSort=!1;else if(this.newColumns.length&&Object.keys(this.currentSortColumn).length>0)for(var i=0;i1)return!0;var e=this.$slots.footer[0].tag;return"th"===e||"td"===e},hasBottomLeftSlot:function(){return void 0!==this.$slots["bottom-left"]},pressedArrow:function(e){if(this.visibleData.length){var t=this.visibleData.indexOf(this.selected)+e;t=t<0?0:t>this.visibleData.length-1?this.visibleData.length-1:t;var n=this.visibleData[t];if(this.isRowSelectable(n))this.selectRow(n);else{var r=null;if(e>0)for(var i=t;i=0&&null===r;o--)this.isRowSelectable(this.visibleData[o])&&(r=o);r>=0&&this.selectRow(this.visibleData[r])}}},focus:function(){this.focusable&&this.$el.querySelector("table").focus()},initSort:function(){var e=this;if(!this.backendSorting)if(this.sortMultiple&&this.sortMultipleData)this.sortMultipleData.forEach((function(t){e.sortMultiColumn(t)}));else{if(!this.defaultSort)return;var t="",n=this.defaultSortDirection;Array.isArray(this.defaultSort)?(t=this.defaultSort[0],this.defaultSort[1]&&(n=this.defaultSort[1])):t=this.defaultSort;var r=this.newColumns.filter((function(e){return e.field===t}))[0];r&&(this.isAsc="desc"!==n.toLowerCase(),this.sort(r,!0))}},handleDragStart:function(e,t,n){this.$emit("dragstart",{event:e,row:t,index:n})},handleDragEnd:function(e,t,n){this.$emit("dragend",{event:e,row:t,index:n})},handleDrop:function(e,t,n){this.$emit("drop",{event:e,row:t,index:n})},handleDragOver:function(e,t,n){this.$emit("dragover",{event:e,row:t,index:n})},handleDragLeave:function(e,t,n){this.$emit("dragleave",{event:e,row:t,index:n})}},mounted:function(){this.checkPredefinedDetailedRows(),this.checkSort()},beforeDestroy:function(){this.newData=[],this.newColumns=[]}};var Qn=D({render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"b-table",class:e.rooClasses},[e.mobileCards&&e.hasSortablenewColumns?n("b-table-mobile-sort",{attrs:{"current-sort-column":e.currentSortColumn,"sort-multiple":e.sortMultiple,"sort-multiple-data":e.sortMultipleDataComputed,"is-asc":e.isAsc,columns:e.newColumns,placeholder:e.mobileSortPlaceholder,"icon-pack":e.iconPack,"sort-icon":e.sortIcon,"sort-icon-size":e.sortIconSize},on:{sort:function(t,n){return e.sort(t,null,n)},removePriority:function(t){return e.removeSortingPriority(t)}}}):e._e(),e._v(" "),!e.paginated||"top"!==e.paginationPosition&&"both"!==e.paginationPosition?e._e():n("div",{staticClass:"top level"},[n("div",{staticClass:"level-left"},[e._t("top-left")],2),e._v(" "),n("div",{staticClass:"level-right"},[e.paginated?n("div",{staticClass:"level-item"},[n("b-pagination",{attrs:{"icon-pack":e.iconPack,total:e.newDataTotal,"per-page":e.perPage,simple:e.paginationSimple,size:e.paginationSize,current:e.newCurrentPage,"aria-next-label":e.ariaNextLabel,"aria-previous-label":e.ariaPreviousLabel,"aria-page-label":e.ariaPageLabel,"aria-current-label":e.ariaCurrentLabel},on:{change:e.pageChanged}})],1):e._e()])]),e._v(" "),n("div",{staticClass:"table-wrapper",class:e.tableWrapperClasses,style:{height:void 0===e.height?null:isNaN(e.height)?e.height:e.height+"px"}},[n("table",{staticClass:"table",class:e.tableClasses,attrs:{tabindex:!!e.focusable&&0},on:{keydown:[function(t){return!("button"in t)&&e._k(t.keyCode,"up",38,t.key,["Up","ArrowUp"])||t.target!==t.currentTarget?null:(t.preventDefault(),void e.pressedArrow(-1))},function(t){return!("button"in t)&&e._k(t.keyCode,"down",40,t.key,["Down","ArrowDown"])||t.target!==t.currentTarget?null:(t.preventDefault(),void e.pressedArrow(1))}]}},[e.newColumns.length?n("thead",[n("tr",[e.showDetailRowIcon?n("th",{attrs:{width:"40px"}}):e._e(),e._v(" "),e.checkable&&"left"===e.checkboxPosition?n("th",{staticClass:"checkbox-cell"},[e.headerCheckable?[n("b-checkbox",{attrs:{value:e.isAllChecked,disabled:e.isAllUncheckable},nativeOn:{change:function(t){return e.checkAll(t)}}})]:e._e()],2):e._e(),e._v(" "),e._l(e.visibleColumns,(function(t,r){return n("th",{key:r,class:[t.headerClass,{"is-current-sort":!e.sortMultiple&&e.currentSortColumn===t,"is-sortable":t.sortable,"is-sticky":t.sticky,"is-unselectable":!t.headerSelectable}],style:{width:void 0===t.width?null:isNaN(t.width)?t.width:t.width+"px"},on:{click:function(n){n.stopPropagation(),e.sort(t,null,n)}}},[n("div",{staticClass:"th-wrap",class:{"is-numeric":t.numeric,"is-centered":t.centered}},[t.$scopedSlots&&t.$scopedSlots.header?[n("b-slot-component",{attrs:{component:t,scoped:!0,name:"header",tag:"span",props:{column:t,index:r}}})]:e.$scopedSlots.header?[e._t("header",null,{column:t,index:r})]:[e._v(e._s(t.label))],e._v(" "),e.sortMultiple&&e.sortMultipleDataComputed&&e.sortMultipleDataComputed.length>0&&e.sortMultipleDataComputed.filter((function(i){return i.field===t.field})).length>0?[n("b-icon",{class:{"is-desc":"desc"===e.sortMultipleDataComputed.filter((function(i){return i.field===t.field}))[0].order},attrs:{icon:e.sortIcon,pack:e.iconPack,both:"",size:e.sortIconSize}}),e._v("\r\n "+e._s(e.findIndexOfSortData(t))+"\r\n "),n("button",{staticClass:"delete is-small multi-sort-cancel-icon",attrs:{type:"button"},on:{click:function(n){n.stopPropagation(),e.removeSortingPriority(t)}}})]:t.sortable&&!e.sortMultiple?n("b-icon",{class:{"is-desc":!e.isAsc,"is-invisible":e.currentSortColumn!==t},attrs:{icon:e.sortIcon,pack:e.iconPack,both:"",size:e.sortIconSize}}):e._e()],2)])})),e._v(" "),e.checkable&&"right"===e.checkboxPosition?n("th",{staticClass:"checkbox-cell"},[e.headerCheckable?[n("b-checkbox",{attrs:{value:e.isAllChecked,disabled:e.isAllUncheckable},nativeOn:{change:function(t){return e.checkAll(t)}}})]:e._e()],2):e._e()],2),e._v(" "),e.hasCustomSubheadings?n("tr",{staticClass:"is-subheading"},[e.showDetailRowIcon?n("th",{attrs:{width:"40px"}}):e._e(),e._v(" "),e.checkable&&"left"===e.checkboxPosition?n("th"):e._e(),e._v(" "),e._l(e.visibleColumns,(function(t,r){return n("th",{key:r,style:{width:void 0===t.width?null:isNaN(t.width)?t.width:t.width+"px"}},[n("div",{staticClass:"th-wrap",class:{"is-numeric":t.numeric,"is-centered":t.centered}},[t.$scopedSlots&&t.$scopedSlots.subheading?[n("b-slot-component",{attrs:{component:t,scoped:!0,name:"subheading",tag:"span",props:{column:t,index:r}}})]:e.$scopedSlots.subheading?[e._t("subheading",null,{column:t,index:r})]:[e._v(e._s(t.subheading))]],2)])})),e._v(" "),e.checkable&&"right"===e.checkboxPosition?n("th"):e._e()],2):e._e(),e._v(" "),e.hasSearchablenewColumns?n("tr",[e.showDetailRowIcon?n("th",{attrs:{width:"40px"}}):e._e(),e._v(" "),e.checkable&&"left"===e.checkboxPosition?n("th"):e._e(),e._v(" "),e._l(e.visibleColumns,(function(t,r){return n("th",{key:r,style:{width:void 0===t.width?null:isNaN(t.width)?t.width:t.width+"px"}},[n("div",{staticClass:"th-wrap"},[t.searchable?[t.$scopedSlots&&t.$scopedSlots.searchable?[n("b-slot-component",{attrs:{component:t,scoped:!0,name:"searchable",tag:"span",props:{column:t,filters:e.filters}}})]:n("b-input",{attrs:{type:t.numeric?"number":"text"},nativeOn:{"[filtersEvent]":function(t){return e.onFiltersEvent(t)}},model:{value:e.filters[t.field],callback:function(n){e.$set(e.filters,t.field,n)},expression:"filters[column.field]"}})]:e._e()],2)])})),e._v(" "),e.checkable&&"right"===e.checkboxPosition?n("th"):e._e()],2):e._e()]):e._e(),e._v(" "),e.visibleData.length?n("tbody",[e._l(e.visibleData,(function(t,r){return[n("tr",{key:e.customRowKey?t[e.customRowKey]:r,class:[e.rowClass(t,r),{"is-selected":t===e.selected,"is-checked":e.isRowChecked(t)}],attrs:{draggable:e.draggable},on:{click:function(n){e.selectRow(t)},dblclick:function(n){e.$emit("dblclick",t)},mouseenter:function(n){e.$listeners.mouseenter&&e.$emit("mouseenter",t)},mouseleave:function(n){e.$listeners.mouseleave&&e.$emit("mouseleave",t)},contextmenu:function(n){e.$emit("contextmenu",t,n)},dragstart:function(n){e.handleDragStart(n,t,r)},dragend:function(n){e.handleDragEnd(n,t,r)},drop:function(n){e.handleDrop(n,t,r)},dragover:function(n){e.handleDragOver(n,t,r)},dragleave:function(n){e.handleDragLeave(n,t,r)}}},[e.showDetailRowIcon?n("td",{staticClass:"chevron-cell"},[e.hasDetailedVisible(t)?n("a",{attrs:{role:"button"},on:{click:function(n){n.stopPropagation(),e.toggleDetails(t)}}},[n("b-icon",{class:{"is-expanded":e.isVisibleDetailRow(t)},attrs:{icon:"chevron-right",pack:e.iconPack,both:""}})],1):e._e()]):e._e(),e._v(" "),e.checkable&&"left"===e.checkboxPosition?n("td",{staticClass:"checkbox-cell"},[n("b-checkbox",{attrs:{disabled:!e.isRowCheckable(t),value:e.isRowChecked(t)},nativeOn:{click:function(n){n.preventDefault(),n.stopPropagation(),e.checkRow(t,r,n)}}})],1):e._e(),e._v(" "),e.$scopedSlots.default?e._t("default",null,{row:t,index:r}):e._l(e.newColumns,(function(r){return n("BTableColumn",e._b({key:r.customKey||r.label,attrs:{internal:""}},"BTableColumn",r,!1),[r.renderHtml?n("span",{domProps:{innerHTML:e._s(e.getValueByPath(t,r.field))}}):[e._v("\r\n "+e._s(e.getValueByPath(t,r.field))+"\r\n ")]],2)})),e._v(" "),e.checkable&&"right"===e.checkboxPosition?n("td",{staticClass:"checkbox-cell"},[n("b-checkbox",{attrs:{disabled:!e.isRowCheckable(t),value:e.isRowChecked(t)},nativeOn:{click:function(n){n.preventDefault(),n.stopPropagation(),e.checkRow(t,r,n)}}})],1):e._e()],2),e._v(" "),e.isActiveDetailRow(t)?n("tr",{staticClass:"detail"},[n("td",{attrs:{colspan:e.columnCount}},[n("div",{staticClass:"detail-container"},[e._t("detail",null,{row:t,index:r})],2)])]):e._e(),e._v(" "),e.isActiveCustomDetailRow(t)?e._t("detail",null,{row:t,index:r}):e._e()]}))],2):n("tbody",[n("tr",{staticClass:"is-empty"},[n("td",{attrs:{colspan:e.columnCount}},[e._t("empty")],2)])]),e._v(" "),void 0!==e.$slots.footer?n("tfoot",[n("tr",{staticClass:"table-footer"},[e.hasCustomFooterSlot()?e._t("footer"):n("th",{attrs:{colspan:e.columnCount}},[e._t("footer")],2)],2)]):e._e()])]),e._v(" "),e.checkable&&e.hasBottomLeftSlot()||e.paginated&&("bottom"===e.paginationPosition||"both"===e.paginationPosition)?n("div",{staticClass:"level"},[n("div",{staticClass:"level-left"},[e._t("bottom-left")],2),e._v(" "),n("div",{staticClass:"level-right"},[e.paginated?n("div",{staticClass:"level-item"},[n("b-pagination",{attrs:{"icon-pack":e.iconPack,total:e.newDataTotal,"per-page":e.perPage,simple:e.paginationSimple,size:e.paginationSize,current:e.newCurrentPage,"aria-next-label":e.ariaNextLabel,"aria-previous-label":e.ariaPreviousLabel,"aria-page-label":e.ariaPageLabel,"aria-current-label":e.ariaCurrentLabel},on:{change:e.pageChanged}})],1):e._e()])]):e._e()],1)},staticRenderFns:[]},undefined,Kn,undefined,!1,undefined,void 0,void 0),Jn={install:function(e){I(e,Qn),I(e,Xn)}};use(Jn);var Zn,table=Jn;var ei=D({render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"b-tabs",class:e.mainClasses},[n("nav",{staticClass:"tabs",class:e.navClasses},[n("ul",e._l(e.tabItems,(function(t,r){return n("li",{directives:[{name:"show",rawName:"v-show",value:t.visible,expression:"tabItem.visible"}],key:r,class:{"is-active":e.activeTab===r,"is-disabled":t.disabled}},[t.$slots.header?n("b-slot-component",{attrs:{component:t,name:"header",tag:"a"},nativeOn:{click:function(t){e.tabClick(r)}}}):n("a",{on:{click:function(t){e.tabClick(r)}}},[t.icon?n("b-icon",{attrs:{icon:t.icon,pack:t.iconPack,size:e.size}}):e._e(),e._v(" "),n("span",[e._v(e._s(t.label))])],1)],1)})))]),e._v(" "),n("section",{staticClass:"tab-content",class:{"is-transitioning":e.isTransitioning}},[e._t("default")],2)])},staticRenderFns:[]},undefined,{name:"BTabs",components:(Zn={},o(Zn,L.name,L),o(Zn,Bn.name,Bn),Zn),props:{value:[Number,String],expanded:Boolean,type:String,size:String,position:String,animated:{type:Boolean,default:function(){return A.defaultTabsAnimated}},destroyOnHide:{type:Boolean,default:!1},vertical:Boolean,multiline:Boolean},data:function(){return{activeTab:0,defaultSlots:[],contentHeight:0,isTransitioning:!1,_isTabs:!0}},computed:{mainClasses:function(){return o({"is-fullwidth":this.expanded,"is-vertical":this.vertical,"is-multiline":this.multiline},this.position,this.position&&this.vertical)},navClasses:function(){var e;return[this.type,this.size,(e={},o(e,this.position,this.position&&!this.vertical),o(e,"is-fullwidth",this.expanded),o(e,"is-toggle-rounded is-toggle","is-toggle-rounded"===this.type),e)]},tabItems:function(){return this.defaultSlots.filter((function(e){return e.componentInstance&&e.componentInstance.$data&&e.componentInstance.$data._isTabItem})).map((function(e){return e.componentInstance}))}},watch:{value:function(e){var t=this.getIndexByValue(e,e);this.changeTab(t)},tabItems:function(){var e=this;if(this.activeTab0&&this.changeTab(this.activeTab-1)}},methods:{changeTab:function(e){this.activeTab!==e&&void 0!==this.tabItems[e]&&(this.activeTab=0?t:e},getValueByIndex:function(e){var t=this.tabItems[e].$options.propsData;return t&&t.value?t.value:e}},mounted:function(){this.activeTab=this.getIndexByValue(this.value||0),this.activeTab0?[e._v("\r\n "+e._s(e.valueLength)+" / "+e._s(e.maxlength)+"\r\n ")]:e.maxtags?[e._v("\r\n "+e._s(e.tagsLength)+" / "+e._s(e.maxtags)+"\r\n ")]:e._e()],2):e._e()])},staticRenderFns:[]},undefined,{name:"BTaginput",components:(si={},o(si,B.name,B),o(si,ri.name,ri),si),mixins:[P],inheritAttrs:!1,props:{value:{type:Array,default:function(){return[]}},data:{type:Array,default:function(){return[]}},type:String,rounded:{type:Boolean,default:!1},attached:{type:Boolean,default:!1},maxtags:{type:[Number,String],required:!1},hasCounter:{type:Boolean,default:function(){return A.defaultTaginputHasCounter}},field:{type:String,default:"value"},autocomplete:Boolean,nativeAutocomplete:String,openOnFocus:Boolean,disabled:Boolean,ellipsis:Boolean,closable:{type:Boolean,default:!0},confirmKeyCodes:{type:Array,default:function(){return[13,188]}},removeOnKeys:{type:Array,default:function(){return[8]}},allowNew:Boolean,onPasteSeparators:{type:Array,default:function(){return[","]}},beforeAdding:{type:Function,default:function(){return!0}},allowDuplicates:{type:Boolean,default:!1},checkInfiniteScroll:{type:Boolean,default:!1},appendToBody:Boolean},data:function(){return{tags:Array.isArray(this.value)?this.value.slice(0):this.value||[],newTag:"",_elementRef:"input",_isTaginput:!0}},computed:{rootClasses:function(){return{"is-expanded":this.expanded}},containerClasses:function(){return{"is-focused":this.isFocused,"is-focusable":this.hasInput}},valueLength:function(){return this.newTag.trim().length},defaultSlotName:function(){return this.hasDefaultSlot?"default":"dontrender"},emptySlotName:function(){return this.hasEmptySlot?"empty":"dontrender"},headerSlotName:function(){return this.hasHeaderSlot?"header":"dontrender"},footerSlotName:function(){return this.hasFooterSlot?"footer":"dontrender"},hasDefaultSlot:function(){return!!this.$scopedSlots.default},hasEmptySlot:function(){return!!this.$slots.empty},hasHeaderSlot:function(){return!!this.$slots.header},hasFooterSlot:function(){return!!this.$slots.footer},hasInput:function(){return null==this.maxtags||this.tagsLength=0)return void this.tags.splice(r,1)}(!!this.allowDuplicates||-1===this.tags.indexOf(t))&&this.beforeAdding(t)&&(this.tags.push(t),this.$emit("input",this.tags),this.$emit("add",t))}this.newTag=""},getNormalizedTagText:function(e){return"object"===r(e)?v(e,this.field):e},customOnBlur:function(e){this.autocomplete||this.addTag(),this.onBlur(e)},onSelect:function(option){var e=this;option&&(this.addTag(option),this.$nextTick((function(){e.newTag=""})))},removeTag:function(e,t){var n=this.tags.splice(e,1)[0];return this.$emit("input",this.tags),this.$emit("remove",n),t&&t.stopPropagation(),this.openOnFocus&&this.$refs.autocomplete&&this.$refs.autocomplete.focus(),n},removeLastTag:function(){this.tagsLength>0&&this.removeTag(this.tagsLength-1)},keydown:function(e){-1===this.removeOnKeys.indexOf(e.keyCode)||this.newTag.length||this.removeLastTag(),this.autocomplete&&!this.allowNew||this.confirmKeyCodes.indexOf(e.keyCode)>=0&&(e.preventDefault(),this.addTag())},onTyping:function(e){this.$emit("typing",e.trim())},emitInfiniteScroll:function(){this.$emit("infinite-scroll")}}},undefined,!1,undefined,void 0,void 0),di={install:function(e){I(e,ci)}};use(di);var hi=di,fi={install:function(e){I(e,Be)}};use(fi);var pi=fi;var mi,gi=D({render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("transition",{attrs:{"enter-active-class":e.transition.enter,"leave-active-class":e.transition.leave}},[n("div",{directives:[{name:"show",rawName:"v-show",value:e.isActive,expression:"isActive"}],staticClass:"toast",class:[e.type,e.position],attrs:{"aria-hidden":!e.isActive,role:"alert"}},[n("div",{domProps:{innerHTML:e._s(e.message)}})])])},staticRenderFns:[]},undefined,{name:"BToast",mixins:[At],data:function(){return{newDuration:this.duration||A.defaultToastDuration}}},undefined,!1,undefined,void 0,void 0),vi={open:function(e){var t;"string"==typeof e&&(e={message:e});var n={position:A.defaultToastPosition||"is-top"};e.parent&&(t=e.parent,delete e.parent);var r=T(n,e);return new(("undefined"!=typeof window&&window.Vue?window.Vue:mi||C).extend(gi))({parent:t,el:document.createElement("div"),propsData:r})}},yi={install:function(e){mi=e,j(e,"toast",vi)}};use(yi);var bi=yi,_i={install:function(e){I(e,xn)}};use(_i);var Ti=_i;var wi=D({render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("label",{staticClass:"upload control",class:{"is-expanded":e.expanded}},[e.dragDrop?n("div",{staticClass:"upload-draggable",class:[e.type,{"is-loading":e.loading,"is-disabled":e.disabled,"is-hovered":e.dragDropFocus,"is-expanded":e.expanded}],on:{dragover:function(t){t.preventDefault(),e.updateDragDropFocus(!0)},dragleave:function(t){t.preventDefault(),e.updateDragDropFocus(!1)},dragenter:function(t){t.preventDefault(),e.updateDragDropFocus(!0)},drop:function(t){return t.preventDefault(),e.onFileChange(t)}}},[e._t("default")],2):[e._t("default")],e._v(" "),n("input",e._b({ref:"input",attrs:{type:"file",multiple:e.multiple,accept:e.accept,disabled:e.disabled},on:{change:e.onFileChange}},"input",e.$attrs,!1))],2)},staticRenderFns:[]},undefined,{name:"BUpload",mixins:[P],inheritAttrs:!1,props:{value:{type:[Object,Function,ot,Array]},multiple:Boolean,disabled:Boolean,accept:String,dragDrop:Boolean,type:{type:String,default:"is-primary"},native:{type:Boolean,default:!1},expanded:{type:Boolean,default:!1}},data:function(){return{newValue:this.value,dragDropFocus:!1,_elementRef:"input"}},watch:{value:function(e){var t=this.$refs.input.files;this.newValue=e,(!this.newValue||Array.isArray(this.newValue)&&0===this.newValue.length||!t[0]||Array.isArray(this.newValue)&&!this.newValue.some((function(a){return a.name===t[0].name})))&&(this.$refs.input.value=null),!this.isValid&&!this.dragDrop&&this.checkHtml5Validity()}},methods:{onFileChange:function(e){if(!this.disabled&&!this.loading){this.dragDrop&&this.updateDragDropFocus(!1);var t=e.target.files||e.dataTransfer.files;if(0===t.length){if(!this.newValue)return;this.native&&(this.newValue=null)}else if(this.multiple){var n=!1;!this.native&&this.newValue||(this.newValue=[],n=!0);for(var i=0;i=0?e.name.substring(o):"").toLowerCase()===r.toLowerCase()&&(n=!0)}else e.type.match(r)&&(n=!0)}return n}}},undefined,!1,undefined,void 0,void 0),Si={install:function(e){I(e,wi)}};use(Si);var ki=Si,xi=Object.freeze({Autocomplete:U,Button:z,Carousel:K,Checkbox:te,Clockpicker:ke,Collapse:ae,Datepicker:Ne,Datetimepicker:He,Dialog:dialog,Dropdown:Qe,Field:Ze,Icon:tt,Input:input,Loading:ft,Menu:menu,Message:St,Modal:Ct,Navbar:Kt,Notification:Ot,Numberinput:Zt,Pagination:on,Progress:progress,Radio:hn,Rate:mn,Select:vn,Skeleton:_n,Sidebar:kn,Slider:jn,Snackbar:Rn,Steps:Hn,Switch:Wn,Table:table,Tabs:ii,Tag:ui,Taginput:hi,Timepicker:pi,Toast:bi,Tooltip:Ti,Upload:ki}),Ci={getOptions:function(){return A},setOptions:function(e){E(T(A,e,!0))}},Ai={install:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};for(var n in function(e){C=e}(e),E(T(A,t,!0)),xi)e.use(xi[n]);j(e,"config",Ci)}};use(Ai);t.a=Ai},,,,,,,,,,,,,,,,function(e,t,n){"use strict";n.d(t,"a",(function(){return x}));var r=n(4),o=n.n(r),l=function(){function e(){this.listeners={}}var t=e.prototype;return t.on=function(e,t){this.listeners[e]||(this.listeners[e]=[]),this.listeners[e].push(t)},t.off=function(e,t){if(!this.listeners[e])return!1;var n=this.listeners[e].indexOf(t);return this.listeners[e]=this.listeners[e].slice(0),this.listeners[e].splice(n,1),n>-1},t.trigger=function(e){var t=this.listeners[e];if(t)if(2===arguments.length)for(var n=t.length,i=0;i-1;e=this.buffer.indexOf("\n"))this.trigger("data",this.buffer.substring(0,e)),this.buffer=this.buffer.substring(e+1)},t}(l),y=String.fromCharCode(9),_=function(e){var t=/([0-9.]*)?@?([0-9.]*)?/.exec(e||""),n={};return t[1]&&(n.length=parseInt(t[1],10)),t[2]&&(n.offset=parseInt(t[2],10)),n},T=function(e){for(var t,n=e.split(new RegExp('(?:^|,)((?:[^=]*)=(?:"[^"]*"|[^,]*))')),r={},i=n.length;i--;)""!==n[i]&&((t=/([^=]*)=(.*)/.exec(n[i]).slice(1))[0]=t[0].replace(/^\s+|\s+$/g,""),t[1]=t[1].replace(/^\s+|\s+$/g,""),t[1]=t[1].replace(/^['"](.*)['"]$/g,"$1"),r[t[0]]=t[1]);return r},w=function(e){function t(){var t;return(t=e.call(this)||this).customParsers=[],t.tagMappers=[],t}o()(t,e);var n=t.prototype;return n.push=function(line){var e,t,n=this;0!==(line=line.trim()).length&&("#"===line[0]?this.tagMappers.reduce((function(e,t){var n=t(line);return n===line?e:e.concat([n])}),[line]).forEach((function(r){for(var i=0;i0&&(c.duration=e.duration),0===e.duration&&(c.duration=.01,this.trigger("info",{message:"updating zero segment duration to a small value"})),this.manifest.segments=l},key:function(){if(e.attributes)if("NONE"!==e.attributes.METHOD)if(e.attributes.URI){if("com.apple.streamingkeydelivery"===e.attributes.KEYFORMAT)return this.manifest.contentProtection=this.manifest.contentProtection||{},void(this.manifest.contentProtection["com.apple.fps.1_0"]={attributes:e.attributes});if("com.microsoft.playready"===e.attributes.KEYFORMAT)return this.manifest.contentProtection=this.manifest.contentProtection||{},void(this.manifest.contentProtection["com.microsoft.playready"]={uri:e.attributes.URI});if("urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed"===e.attributes.KEYFORMAT){return-1===["SAMPLE-AES","SAMPLE-AES-CTR","SAMPLE-AES-CENC"].indexOf(e.attributes.METHOD)?void this.trigger("warn",{message:"invalid key method provided for Widevine"}):("SAMPLE-AES-CENC"===e.attributes.METHOD&&this.trigger("warn",{message:"SAMPLE-AES-CENC is deprecated, please use SAMPLE-AES-CTR instead"}),"data:text/plain;base64,"!==e.attributes.URI.substring(0,23)?void this.trigger("warn",{message:"invalid key URI provided for Widevine"}):e.attributes.KEYID&&"0x"===e.attributes.KEYID.substring(0,2)?(this.manifest.contentProtection=this.manifest.contentProtection||{},void(this.manifest.contentProtection["com.widevine.alpha"]={attributes:{schemeIdUri:e.attributes.KEYFORMAT,keyId:e.attributes.KEYID.substring(2)},pssh:Object(m.a)(e.attributes.URI.split(",")[1])})):void this.trigger("warn",{message:"invalid key ID provided for Widevine"}))}e.attributes.METHOD||this.trigger("warn",{message:"defaulting key method to AES-128"}),r={method:e.attributes.METHOD||"AES-128",uri:e.attributes.URI},void 0!==e.attributes.IV&&(r.iv=e.attributes.IV)}else this.trigger("warn",{message:"ignoring key declaration without URI"});else r=null;else this.trigger("warn",{message:"ignoring key declaration without attribute list"})},"media-sequence":function(){isFinite(e.number)?this.manifest.mediaSequence=e.number:this.trigger("warn",{message:"ignoring invalid media sequence: "+e.number})},"discontinuity-sequence":function(){isFinite(e.number)?(this.manifest.discontinuitySequence=e.number,T=e.number):this.trigger("warn",{message:"ignoring invalid discontinuity sequence: "+e.number})},"playlist-type":function(){/VOD|EVENT/.test(e.playlistType)?this.manifest.playlistType=e.playlistType:this.trigger("warn",{message:"ignoring unknown playlist type: "+e.playlist})},map:function(){n={},e.uri&&(n.uri=e.uri),e.byterange&&(n.byterange=e.byterange),r&&(n.key=r)},"stream-inf":function(){this.manifest.playlists=l,this.manifest.mediaGroups=this.manifest.mediaGroups||_,e.attributes?(c.attributes||(c.attributes={}),d()(c.attributes,e.attributes)):this.trigger("warn",{message:"ignoring empty stream-inf attributes"})},media:function(){if(this.manifest.mediaGroups=this.manifest.mediaGroups||_,e.attributes&&e.attributes.TYPE&&e.attributes["GROUP-ID"]&&e.attributes.NAME){var n=this.manifest.mediaGroups[e.attributes.TYPE];n[e.attributes["GROUP-ID"]]=n[e.attributes["GROUP-ID"]]||{},t=n[e.attributes["GROUP-ID"]],(f={default:/yes/i.test(e.attributes.DEFAULT)}).default?f.autoselect=!0:f.autoselect=/yes/i.test(e.attributes.AUTOSELECT),e.attributes.LANGUAGE&&(f.language=e.attributes.LANGUAGE),e.attributes.URI&&(f.uri=e.attributes.URI),e.attributes["INSTREAM-ID"]&&(f.instreamId=e.attributes["INSTREAM-ID"]),e.attributes.CHARACTERISTICS&&(f.characteristics=e.attributes.CHARACTERISTICS),e.attributes.FORCED&&(f.forced=/yes/i.test(e.attributes.FORCED)),t[e.attributes.NAME]=f}else this.trigger("warn",{message:"ignoring incomplete or missing media group"})},discontinuity:function(){T+=1,c.discontinuity=!0,this.manifest.discontinuityStarts.push(l.length)},"program-date-time":function(){void 0===this.manifest.dateTimeString&&(this.manifest.dateTimeString=e.dateTimeString,this.manifest.dateTimeObject=e.dateTimeObject),c.dateTimeString=e.dateTimeString,c.dateTimeObject=e.dateTimeObject},targetduration:function(){!isFinite(e.duration)||e.duration<0?this.trigger("warn",{message:"ignoring invalid target duration: "+e.duration}):(this.manifest.targetDuration=e.duration,k.call(this,this.manifest))},start:function(){e.attributes&&!isNaN(e.attributes["TIME-OFFSET"])?this.manifest.start={timeOffset:e.attributes["TIME-OFFSET"],precise:e.attributes.PRECISE}:this.trigger("warn",{message:"ignoring start declaration without appropriate attribute list"})},"cue-out":function(){c.cueOut=e.data},"cue-out-cont":function(){c.cueOutCont=e.data},"cue-in":function(){c.cueIn=e.data},skip:function(){this.manifest.skip=S(e.attributes),this.warnOnMissingAttributes_("#EXT-X-SKIP",e.attributes,["SKIPPED-SEGMENTS"])},part:function(){var t=this;h=!0;var n=this.manifest.segments.length,r=S(e.attributes);c.parts=c.parts||[],c.parts.push(r),r.byterange&&(r.byterange.hasOwnProperty("offset")||(r.byterange.offset=C),C=r.byterange.offset+r.byterange.length);var o=c.parts.length-1;this.warnOnMissingAttributes_("#EXT-X-PART #"+o+" for segment #"+n,e.attributes,["URI","DURATION"]),this.manifest.renditionReports&&this.manifest.renditionReports.forEach((function(e,i){e.hasOwnProperty("lastPart")||t.trigger("warn",{message:"#EXT-X-RENDITION-REPORT #"+i+" lacks required attribute(s): LAST-PART"})}))},"server-control":function(){var t=this.manifest.serverControl=S(e.attributes);t.hasOwnProperty("canBlockReload")||(t.canBlockReload=!1,this.trigger("info",{message:"#EXT-X-SERVER-CONTROL defaulting CAN-BLOCK-RELOAD to false"})),k.call(this,this.manifest),t.canSkipDateranges&&!t.hasOwnProperty("canSkipUntil")&&this.trigger("warn",{message:"#EXT-X-SERVER-CONTROL lacks required attribute CAN-SKIP-UNTIL which is required when CAN-SKIP-DATERANGES is set"})},"preload-hint":function(){var t=this.manifest.segments.length,n=S(e.attributes),r=n.type&&"PART"===n.type;c.preloadHints=c.preloadHints||[],c.preloadHints.push(n),n.byterange&&(n.byterange.hasOwnProperty("offset")||(n.byterange.offset=r?C:0,r&&(C=n.byterange.offset+n.byterange.length)));var o=c.preloadHints.length-1;if(this.warnOnMissingAttributes_("#EXT-X-PRELOAD-HINT #"+o+" for segment #"+t,e.attributes,["TYPE","URI"]),n.type)for(var i=0;i-1}},function(e,t,n){var r=n(171);e.exports=function(e,t){var data=this.__data__,n=r(data,e);return n<0?(++this.size,data.push([e,t])):data[n][1]=t,this}},function(e,t,n){var r=n(313)(n(168),"Map");e.exports=r},function(e,t,n){var r=n(172);e.exports=function(e){var t=r(this,e).delete(e);return this.size-=t?1:0,t}},function(e,t){e.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},function(e,t,n){var r=n(172);e.exports=function(e){return r(this,e).get(e)}},function(e,t,n){var r=n(172);e.exports=function(e){return r(this,e).has(e)}},function(e,t,n){var r=n(172);e.exports=function(e,t){var data=r(this,e),n=data.size;return data.set(e,t),this.size+=data.size==n?0:1,this}},function(e,t,n){var r=n(526);e.exports=function(e){return null==e?"":r(e)}},function(e,t,n){var r=n(223),o=n(527),l=n(166),c=n(222),d=r?r.prototype:void 0,h=d?d.toString:void 0;e.exports=function e(t){if("string"==typeof t)return t;if(l(t))return o(t,e)+"";if(c(t))return h?h.call(t):"";var n=t+"";return"0"==n&&1/t==-1/0?"-0":n}},function(e,t){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,o=Array(r);++n=400&&o.statusCode<=599){var c=l;if(t)if(r.TextDecoder){var d=function(e){void 0===e&&(e="");return e.toLowerCase().split(";").reduce((function(e,t){var n=t.split("="),r=n[0],o=n[1];return"charset"===r.trim()?o.trim():e}),"utf-8")}(o.headers&&o.headers["content-type"]);try{c=new TextDecoder(d).decode(l)}catch(e){}}else c=String.fromCharCode.apply(null,new Uint8Array(l));e({cause:c})}else e(null,l)}}},function(e,t,n){var r=n(3),o=Object.create||function(){function e(){}return function(t){if(1!==arguments.length)throw new Error("Object.create shim only accepts one parameter.");return e.prototype=t,new e}}();function l(e,t){this.name="ParsingError",this.code=e.code,this.message=t||e.message}function c(input){function e(e,t,s,n){return 3600*(0|e)+60*(0|t)+(0|s)+(0|n)/1e3}var t=input.match(/^(\d+):(\d{1,2})(:\d{1,2})?\.(\d{3})/);return t?t[3]?e(t[1],t[2],t[3].replace(":",""),t[4]):t[1]>59?e(t[1],t[2],0,t[4]):e(0,t[1],t[2],t[4]):null}function d(){this.values=o(null)}function h(input,e,t,n){var r=n?input.split(n):[input];for(var i in r)if("string"==typeof r[i]){var o=r[i].split(t);if(2===o.length)e(o[0].trim(),o[1].trim())}}function f(input,e,t){var n=input;function r(){var e=c(input);if(null===e)throw new l(l.Errors.BadTimeStamp,"Malformed timestamp: "+n);return input=input.replace(/^[^\sa-zA-Z-]+/,""),e}function o(){input=input.replace(/^\s+/,"")}if(o(),e.startTime=r(),o(),"--\x3e"!==input.substr(0,3))throw new l(l.Errors.BadTimeStamp,"Malformed time stamp (time stamps must be separated by '--\x3e'): "+n);input=input.substr(3),o(),e.endTime=r(),o(),function(input,e){var n=new d;h(input,(function(e,r){switch(e){case"region":for(var i=t.length-1;i>=0;i--)if(t[i].id===r){n.set(e,t[i].region);break}break;case"vertical":n.alt(e,r,["rl","lr"]);break;case"line":var o=r.split(","),l=o[0];n.integer(e,l),n.percent(e,l)&&n.set("snapToLines",!1),n.alt(e,l,["auto"]),2===o.length&&n.alt("lineAlign",o[1],["start","center","end"]);break;case"position":o=r.split(","),n.percent(e,o[0]),2===o.length&&n.alt("positionAlign",o[1],["start","center","end"]);break;case"size":n.percent(e,r);break;case"align":n.alt(e,r,["start","center","end","left","right"])}}),/:/,/\s/),e.region=n.get("region",null),e.vertical=n.get("vertical","");try{e.line=n.get("line","auto")}catch(e){}e.lineAlign=n.get("lineAlign","start"),e.snapToLines=n.get("snapToLines",!0),e.size=n.get("size",100);try{e.align=n.get("align","center")}catch(t){e.align=n.get("align","middle")}try{e.position=n.get("position","auto")}catch(t){e.position=n.get("position",{start:0,left:0,center:50,middle:50,end:100,right:100},e.align)}e.positionAlign=n.get("positionAlign",{start:"start",left:"start",center:"center",middle:"center",end:"end",right:"end"},e.align)}(input,e)}l.prototype=o(Error.prototype),l.prototype.constructor=l,l.Errors={BadSignature:{code:0,message:"Malformed WebVTT signature."},BadTimeStamp:{code:1,message:"Malformed time stamp."}},d.prototype={set:function(e,t){this.get(e)||""===t||(this.values[e]=t)},get:function(e,t,n){return n?this.has(e)?this.values[e]:t[n]:this.has(e)?this.values[e]:t},has:function(e){return e in this.values},alt:function(e,t,a){for(var n=0;n=0&&t<=100)&&(this.set(e,t),!0)}};var m=r.createElement&&r.createElement("textarea"),v={c:"span",i:"i",b:"b",u:"u",ruby:"ruby",rt:"rt",v:"span",lang:"span"},y={white:"rgba(255,255,255,1)",lime:"rgba(0,255,0,1)",cyan:"rgba(0,255,255,1)",red:"rgba(255,0,0,1)",yellow:"rgba(255,255,0,1)",magenta:"rgba(255,0,255,1)",blue:"rgba(0,0,255,1)",black:"rgba(0,0,0,1)"},_={v:"title",lang:"lang"},T={rt:"ruby"};function w(e,input){function t(){if(!input)return null;var e,t=input.match(/^([^<]*)(<[^>]*>?)?/);return e=t[1]?t[1]:t[2],input=input.substr(e.length),e}function n(e,element){return!T[element.localName]||T[element.localName]===e.localName}function r(t,n){var r=v[t];if(!r)return null;var element=e.document.createElement(r),o=_[t];return o&&n&&(element[o]=n.trim()),element}for(var o,s,l=e.document.createElement("div"),d=l,h=[];null!==(o=t());)if("<"!==o[0])d.appendChild(e.document.createTextNode((s=o,m.innerHTML=s,s=m.textContent,m.textContent="",s)));else{if("/"===o[1]){h.length&&h[h.length-1]===o.substr(2).replace(">","")&&(h.pop(),d=d.parentNode);continue}var f,w=c(o.substr(1,o.length-2));if(w){f=e.document.createProcessingInstruction("timestamp",w),d.appendChild(f);continue}var S=o.match(/^<([^.\s/0-9>]+)(\.[^\s\\>]+)?([^>\\]+)?(\\?)>?$/);if(!S)continue;if(!(f=r(S[1],S[3])))continue;if(!n(d,f))continue;if(S[2]){var k=S[2].split(".");k.forEach((function(e){var t=/^bg_/.test(e),n=t?e.slice(3):e;if(y.hasOwnProperty(n)){var r=t?"background-color":"color",o=y[n];f.style[r]=o}})),f.className=k.join(" ")}h.push(S[1]),d.appendChild(f),d=f}return l}var S=[[1470,1470],[1472,1472],[1475,1475],[1478,1478],[1488,1514],[1520,1524],[1544,1544],[1547,1547],[1549,1549],[1563,1563],[1566,1610],[1645,1647],[1649,1749],[1765,1766],[1774,1775],[1786,1805],[1807,1808],[1810,1839],[1869,1957],[1969,1969],[1984,2026],[2036,2037],[2042,2042],[2048,2069],[2074,2074],[2084,2084],[2088,2088],[2096,2110],[2112,2136],[2142,2142],[2208,2208],[2210,2220],[8207,8207],[64285,64285],[64287,64296],[64298,64310],[64312,64316],[64318,64318],[64320,64321],[64323,64324],[64326,64449],[64467,64829],[64848,64911],[64914,64967],[65008,65020],[65136,65140],[65142,65276],[67584,67589],[67592,67592],[67594,67637],[67639,67640],[67644,67644],[67647,67669],[67671,67679],[67840,67867],[67872,67897],[67903,67903],[67968,68023],[68030,68031],[68096,68096],[68112,68115],[68117,68119],[68121,68147],[68160,68167],[68176,68184],[68192,68223],[68352,68405],[68416,68437],[68440,68466],[68472,68479],[68608,68680],[126464,126467],[126469,126495],[126497,126498],[126500,126500],[126503,126503],[126505,126514],[126516,126519],[126521,126521],[126523,126523],[126530,126530],[126535,126535],[126537,126537],[126539,126539],[126541,126543],[126545,126546],[126548,126548],[126551,126551],[126553,126553],[126555,126555],[126557,126557],[126559,126559],[126561,126562],[126564,126564],[126567,126570],[126572,126578],[126580,126583],[126585,126588],[126590,126590],[126592,126601],[126603,126619],[126625,126627],[126629,126633],[126635,126651],[1114109,1114109]];function k(e){for(var i=0;i=t[0]&&e<=t[1])return!0}return!1}function x(e){var t=[],text="";if(!e||!e.childNodes)return"ltr";function n(e,t){for(var i=t.childNodes.length-1;i>=0;i--)e.push(t.childNodes[i])}function r(e){if(!e||!e.length)return null;var t=e.pop(),text=t.textContent||t.innerText;if(text){var o=text.match(/^.*(\n|\r)/);return o?(e.length=0,o[0]):text}return"ruby"===t.tagName?r(e):t.childNodes?(n(e,t),r(e)):void 0}for(n(t,e);text=r(t);)for(var i=0;i=0&&e.line<=100))return e.line;if(!e.track||!e.track.textTrackList||!e.track.textTrackList.mediaElement)return-1;for(var track=e.track,t=track.textTrackList,n=0,i=0;iv&&(m=m<0?-1:1,m*=Math.ceil(v/f)*f),c<0&&(m+=""===l.vertical?n.height:n.width,d=d.reverse()),o.move(y,m)}else{var _=o.lineHeight/n.height*100;switch(l.lineAlign){case"center":c-=_/2;break;case"end":c-=_}switch(l.vertical){case"":t.applyStyles({top:t.formatStyle(c,"%")});break;case"rl":t.applyStyles({left:t.formatStyle(c,"%")});break;case"lr":t.applyStyles({right:t.formatStyle(c,"%")})}d=["+y","-x","+x","-y"],o=new E(t)}var T=function(b,e){for(var t,o=new E(b),l=1,i=0;ip&&(t=new E(b),l=p),b=new E(o)}return t||o}(o,d);t.move(T.toCSSCompatValues(n))}function I(){}C.prototype.applyStyles=function(e,div){for(var t in div=div||this.div,e)e.hasOwnProperty(t)&&(div.style[t]=e[t])},C.prototype.formatStyle=function(e,t){return 0===e?0:e+t},A.prototype=o(C.prototype),A.prototype.constructor=A,E.prototype.move=function(e,t){switch(t=void 0!==t?t:this.lineHeight,e){case"+x":this.left+=t,this.right+=t;break;case"-x":this.left-=t,this.right-=t;break;case"+y":this.top+=t,this.bottom+=t;break;case"-y":this.top-=t,this.bottom-=t}},E.prototype.overlaps=function(e){return this.lefte.left&&this.tope.top},E.prototype.overlapsAny=function(e){for(var i=0;i=e.top&&this.bottom<=e.bottom&&this.left>=e.left&&this.right<=e.right},E.prototype.overlapsOppositeAxis=function(e,t){switch(t){case"+x":return this.lefte.right;case"+y":return this.tope.bottom}},E.prototype.intersectPercentage=function(e){return Math.max(0,Math.min(this.right,e.right)-Math.max(this.left,e.left))*Math.max(0,Math.min(this.bottom,e.bottom)-Math.max(this.top,e.top))/(this.height*this.width)},E.prototype.toCSSCompatValues=function(e){return{top:this.top-e.top,bottom:e.bottom-this.bottom,left:this.left-e.left,right:e.right-this.right,height:this.height,width:this.width}},E.getSimpleBoxPosition=function(e){var t=e.div?e.div.offsetHeight:e.tagName?e.offsetHeight:0,n=e.div?e.div.offsetWidth:e.tagName?e.offsetWidth:0,r=e.div?e.div.offsetTop:e.tagName?e.offsetTop:0;return{left:(e=e.div?e.div.getBoundingClientRect():e.tagName?e.getBoundingClientRect():e).left,right:e.right,top:e.top||r,height:e.height||t,bottom:e.bottom||r+(e.height||t),width:e.width||n}},I.StringDecoder=function(){return{decode:function(data){if(!data)return"";if("string"!=typeof data)throw new Error("Error - expected string data.");return decodeURIComponent(encodeURIComponent(data))}}},I.convertCueToDOMTree=function(e,t){return e&&t?w(e,t):null};I.processCues=function(e,t,n){if(!e||!t||!n)return null;for(;n.firstChild;)n.removeChild(n.firstChild);var r=e.document.createElement("div");if(r.style.position="absolute",r.style.left="0",r.style.right="0",r.style.top="0",r.style.bottom="0",r.style.margin="1.5%",n.appendChild(r),function(e){for(var i=0;i100)throw new Error("Position must be between 0 and 100.");T=e,this.hasBeenReset=!0}},positionAlign:{enumerable:!0,get:function(){return w},set:function(e){var t=o(e);t?(w=t,this.hasBeenReset=!0):console.warn("positionAlign: an invalid or illegal string was specified.")}},size:{enumerable:!0,get:function(){return S},set:function(e){if(e<0||e>100)throw new Error("Size must be between 0 and 100.");S=e,this.hasBeenReset=!0}},align:{enumerable:!0,get:function(){return k},set:function(e){var t=o(e);if(!t)throw new SyntaxError("align: an invalid or illegal alignment string was specified.");k=t,this.hasBeenReset=!0}}}),this.displayState=void 0}l.prototype.getCueAsHTML=function(){return WebVTT.convertCueToDOMTree(window,this.text)},e.exports=l},function(e,t){var n={"":!0,up:!0};function r(e){return"number"==typeof e&&e>=0&&e<=100}e.exports=function(){var e=100,t=3,o=0,l=100,c=0,d=100,h="";Object.defineProperties(this,{width:{enumerable:!0,get:function(){return e},set:function(t){if(!r(t))throw new Error("Width must be between 0 and 100.");e=t}},lines:{enumerable:!0,get:function(){return t},set:function(e){if("number"!=typeof e)throw new TypeError("Lines must be set to a number.");t=e}},regionAnchorY:{enumerable:!0,get:function(){return l},set:function(e){if(!r(e))throw new Error("RegionAnchorX must be between 0 and 100.");l=e}},regionAnchorX:{enumerable:!0,get:function(){return o},set:function(e){if(!r(e))throw new Error("RegionAnchorY must be between 0 and 100.");o=e}},viewportAnchorY:{enumerable:!0,get:function(){return d},set:function(e){if(!r(e))throw new Error("ViewportAnchorY must be between 0 and 100.");d=e}},viewportAnchorX:{enumerable:!0,get:function(){return c},set:function(e){if(!r(e))throw new Error("ViewportAnchorX must be between 0 and 100.");c=e}},scroll:{enumerable:!0,get:function(){return h},set:function(e){var t=function(e){return"string"==typeof e&&!!n[e.toLowerCase()]&&e.toLowerCase()}(e);!1===t?console.warn("Scroll: an invalid or illegal string was specified."):h=t}}})}},,function(e,t,n){"use strict";(function(e){var r=n(556),o=n(557),l=n(558);function c(){return h.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function d(e,t){if(c()=c())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+c().toString(16)+" bytes");return 0|e}function T(e,t){if(h.isBuffer(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var n=e.length;if(0===n)return 0;for(var r=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return X(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return K(e).length;default:if(r)return X(e).length;t=(""+t).toLowerCase(),r=!0}}function w(e,t,n){var r=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return R(this,t,n);case"utf8":case"utf-8":return O(this,t,n);case"ascii":return L(this,t,n);case"latin1":case"binary":return N(this,t,n);case"base64":return P(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return B(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function S(b,e,t){var i=b[e];b[e]=b[t],b[t]=i}function k(e,t,n,r,o){if(0===e.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=o?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(o)return-1;n=e.length-1}else if(n<0){if(!o)return-1;n=0}if("string"==typeof t&&(t=h.from(t,r)),h.isBuffer(t))return 0===t.length?-1:x(e,t,n,r,o);if("number"==typeof t)return t&=255,h.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?o?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):x(e,[t],n,r,o);throw new TypeError("val must be string, number or Buffer")}function x(e,t,n,r,o){var i,l=1,c=e.length,d=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;l=2,c/=2,d/=2,n/=2}function h(e,i){return 1===l?e[i]:e.readUInt16BE(i*l)}if(o){var f=-1;for(i=n;ic&&(n=c-d),i=n;i>=0;i--){for(var m=!0,v=0;vo&&(r=o):r=o;var l=t.length;if(l%2!=0)throw new TypeError("Invalid hex string");r>l/2&&(r=l/2);for(var i=0;i>8,o=n%256,l.push(o),l.push(r);return l}(t,e.length-n),e,n,r)}function P(e,t,n){return 0===t&&n===e.length?r.fromByteArray(e):r.fromByteArray(e.slice(t,n))}function O(e,t,n){n=Math.min(e.length,n);for(var r=[],i=t;i239?4:h>223?3:h>191?2:1;if(i+m<=n)switch(m){case 1:h<128&&(f=h);break;case 2:128==(192&(o=e[i+1]))&&(d=(31&h)<<6|63&o)>127&&(f=d);break;case 3:o=e[i+1],l=e[i+2],128==(192&o)&&128==(192&l)&&(d=(15&h)<<12|(63&o)<<6|63&l)>2047&&(d<55296||d>57343)&&(f=d);break;case 4:o=e[i+1],l=e[i+2],c=e[i+3],128==(192&o)&&128==(192&l)&&128==(192&c)&&(d=(15&h)<<18|(63&o)<<12|(63&l)<<6|63&c)>65535&&d<1114112&&(f=d)}null===f?(f=65533,m=1):f>65535&&(f-=65536,r.push(f>>>10&1023|55296),f=56320|1023&f),r.push(f),i+=m}return function(e){var t=e.length;if(t<=M)return String.fromCharCode.apply(String,e);var n="",i=0;for(;i0&&(e=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(e+=" ... ")),""},h.prototype.compare=function(e,t,n,r,o){if(!h.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===o&&(o=this.length),t<0||n>e.length||r<0||o>this.length)throw new RangeError("out of range index");if(r>=o&&t>=n)return 0;if(r>=o)return-1;if(t>=n)return 1;if(this===e)return 0;for(var l=(o>>>=0)-(r>>>=0),c=(n>>>=0)-(t>>>=0),d=Math.min(l,c),f=this.slice(r,o),m=e.slice(t,n),i=0;io)&&(n=o),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var l=!1;;)switch(r){case"hex":return C(this,e,t,n);case"utf8":case"utf-8":return A(this,e,t,n);case"ascii":return E(this,e,t,n);case"latin1":case"binary":return D(this,e,t,n);case"base64":return I(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return j(this,e,t,n);default:if(l)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),l=!0}},h.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var M=4096;function L(e,t,n){var r="";n=Math.min(e.length,n);for(var i=t;ir)&&(n=r);for(var o="",i=t;in)throw new RangeError("Trying to access beyond buffer length")}function U(e,t,n,r,o,l){if(!h.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>o||te.length)throw new RangeError("Index out of range")}function V(e,t,n,r){t<0&&(t=65535+t+1);for(var i=0,o=Math.min(e.length-n,2);i>>8*(r?i:1-i)}function H(e,t,n,r){t<0&&(t=4294967295+t+1);for(var i=0,o=Math.min(e.length-n,4);i>>8*(r?i:3-i)&255}function z(e,t,n,r,o,l){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function $(e,t,n,r,l){return l||z(e,0,n,4),o.write(e,t,n,r,23,4),n+4}function W(e,t,n,r,l){return l||z(e,0,n,8),o.write(e,t,n,r,52,8),n+8}h.prototype.slice=function(e,t){var n,r=this.length;if((e=~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),(t=void 0===t?r:~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),t0&&(o*=256);)r+=this[e+--t]*o;return r},h.prototype.readUInt8=function(e,t){return t||F(e,1,this.length),this[e]},h.prototype.readUInt16LE=function(e,t){return t||F(e,2,this.length),this[e]|this[e+1]<<8},h.prototype.readUInt16BE=function(e,t){return t||F(e,2,this.length),this[e]<<8|this[e+1]},h.prototype.readUInt32LE=function(e,t){return t||F(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},h.prototype.readUInt32BE=function(e,t){return t||F(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},h.prototype.readIntLE=function(e,t,n){e|=0,t|=0,n||F(e,t,this.length);for(var r=this[e],o=1,i=0;++i=(o*=128)&&(r-=Math.pow(2,8*t)),r},h.prototype.readIntBE=function(e,t,n){e|=0,t|=0,n||F(e,t,this.length);for(var i=t,r=1,o=this[e+--i];i>0&&(r*=256);)o+=this[e+--i]*r;return o>=(r*=128)&&(o-=Math.pow(2,8*t)),o},h.prototype.readInt8=function(e,t){return t||F(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},h.prototype.readInt16LE=function(e,t){t||F(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},h.prototype.readInt16BE=function(e,t){t||F(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},h.prototype.readInt32LE=function(e,t){return t||F(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},h.prototype.readInt32BE=function(e,t){return t||F(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},h.prototype.readFloatLE=function(e,t){return t||F(e,4,this.length),o.read(this,e,!0,23,4)},h.prototype.readFloatBE=function(e,t){return t||F(e,4,this.length),o.read(this,e,!1,23,4)},h.prototype.readDoubleLE=function(e,t){return t||F(e,8,this.length),o.read(this,e,!0,52,8)},h.prototype.readDoubleBE=function(e,t){return t||F(e,8,this.length),o.read(this,e,!1,52,8)},h.prototype.writeUIntLE=function(e,t,n,r){(e=+e,t|=0,n|=0,r)||U(this,e,t,n,Math.pow(2,8*n)-1,0);var o=1,i=0;for(this[t]=255&e;++i=0&&(o*=256);)this[t+i]=e/o&255;return t+n},h.prototype.writeUInt8=function(e,t,n){return e=+e,t|=0,n||U(this,e,t,1,255,0),h.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},h.prototype.writeUInt16LE=function(e,t,n){return e=+e,t|=0,n||U(this,e,t,2,65535,0),h.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):V(this,e,t,!0),t+2},h.prototype.writeUInt16BE=function(e,t,n){return e=+e,t|=0,n||U(this,e,t,2,65535,0),h.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):V(this,e,t,!1),t+2},h.prototype.writeUInt32LE=function(e,t,n){return e=+e,t|=0,n||U(this,e,t,4,4294967295,0),h.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):H(this,e,t,!0),t+4},h.prototype.writeUInt32BE=function(e,t,n){return e=+e,t|=0,n||U(this,e,t,4,4294967295,0),h.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):H(this,e,t,!1),t+4},h.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t|=0,!r){var o=Math.pow(2,8*n-1);U(this,e,t,n,o-1,-o)}var i=0,l=1,sub=0;for(this[t]=255&e;++i=0&&(l*=256);)e<0&&0===sub&&0!==this[t+i+1]&&(sub=1),this[t+i]=(e/l|0)-sub&255;return t+n},h.prototype.writeInt8=function(e,t,n){return e=+e,t|=0,n||U(this,e,t,1,127,-128),h.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},h.prototype.writeInt16LE=function(e,t,n){return e=+e,t|=0,n||U(this,e,t,2,32767,-32768),h.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):V(this,e,t,!0),t+2},h.prototype.writeInt16BE=function(e,t,n){return e=+e,t|=0,n||U(this,e,t,2,32767,-32768),h.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):V(this,e,t,!1),t+2},h.prototype.writeInt32LE=function(e,t,n){return e=+e,t|=0,n||U(this,e,t,4,2147483647,-2147483648),h.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):H(this,e,t,!0),t+4},h.prototype.writeInt32BE=function(e,t,n){return e=+e,t|=0,n||U(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),h.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):H(this,e,t,!1),t+4},h.prototype.writeFloatLE=function(e,t,n){return $(this,e,t,!0,n)},h.prototype.writeFloatBE=function(e,t,n){return $(this,e,t,!1,n)},h.prototype.writeDoubleLE=function(e,t,n){return W(this,e,t,!0,n)},h.prototype.writeDoubleBE=function(e,t,n){return W(this,e,t,!1,n)},h.prototype.copy=function(e,t,n,r){if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t=0;--i)e[i+t]=this[i+n];else if(o<1e3||!h.TYPED_ARRAY_SUPPORT)for(i=0;i>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(i=t;i55295&&n<57344){if(!o){if(n>56319){(t-=3)>-1&&l.push(239,191,189);continue}if(i+1===r){(t-=3)>-1&&l.push(239,191,189);continue}o=n;continue}if(n<56320){(t-=3)>-1&&l.push(239,191,189),o=n;continue}n=65536+(o-55296<<10|n-56320)}else o&&(t-=3)>-1&&l.push(239,191,189);if(o=null,n<128){if((t-=1)<0)break;l.push(n)}else if(n<2048){if((t-=2)<0)break;l.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;l.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;l.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return l}function K(e){return r.toByteArray(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace(G,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function Q(e,t,n,r){for(var i=0;i=t.length||i>=e.length);++i)t[i+n]=e[i];return i}}).call(this,n(42))},function(e,t,n){"use strict";t.byteLength=function(e){var t=c(e),n=t[0],r=t[1];return 3*(n+r)/4-r},t.toByteArray=function(e){var t,i,n=c(e),r=n[0],d=n[1],h=new l(function(e,t,n){return 3*(t+n)/4-n}(0,r,d)),f=0,m=d>0?r-4:r;for(i=0;i>16&255,h[f++]=t>>8&255,h[f++]=255&t;2===d&&(t=o[e.charCodeAt(i)]<<2|o[e.charCodeAt(i+1)]>>4,h[f++]=255&t);1===d&&(t=o[e.charCodeAt(i)]<<10|o[e.charCodeAt(i+1)]<<4|o[e.charCodeAt(i+2)]>>2,h[f++]=t>>8&255,h[f++]=255&t);return h},t.fromByteArray=function(e){for(var t,n=e.length,o=n%3,l=[],c=16383,i=0,h=n-o;ih?h:i+c));1===o?(t=e[n-1],l.push(r[t>>2]+r[t<<4&63]+"==")):2===o&&(t=(e[n-2]<<8)+e[n-1],l.push(r[t>>10]+r[t>>4&63]+r[t<<2&63]+"="));return l.join("")};for(var r=[],o=[],l="undefined"!=typeof Uint8Array?Uint8Array:Array,code="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",i=0;i<64;++i)r[i]=code[i],o[code.charCodeAt(i)]=i;function c(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");return-1===n&&(n=t),[n,n===t?0:4-n%4]}function d(e,t,n){for(var o,l,output=[],i=t;i>18&63]+r[l>>12&63]+r[l>>6&63]+r[63&l]);return output.join("")}o["-".charCodeAt(0)]=62,o["_".charCodeAt(0)]=63},function(e,t){t.read=function(e,t,n,r,o){var l,c,d=8*o-r-1,h=(1<>1,m=-7,i=n?o-1:0,v=n?-1:1,s=e[t+i];for(i+=v,l=s&(1<<-m)-1,s>>=-m,m+=d;m>0;l=256*l+e[t+i],i+=v,m-=8);for(c=l&(1<<-m)-1,l>>=-m,m+=r;m>0;c=256*c+e[t+i],i+=v,m-=8);if(0===l)l=1-f;else{if(l===h)return c?NaN:1/0*(s?-1:1);c+=Math.pow(2,r),l-=f}return(s?-1:1)*c*Math.pow(2,l-r)},t.write=function(e,t,n,r,o,l){var c,d,h,f=8*l-o-1,m=(1<>1,rt=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,i=r?0:l-1,y=r?1:-1,s=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(d=isNaN(t)?1:0,c=m):(c=Math.floor(Math.log(t)/Math.LN2),t*(h=Math.pow(2,-c))<1&&(c--,h*=2),(t+=c+v>=1?rt/h:rt*Math.pow(2,1-v))*h>=2&&(c++,h/=2),c+v>=m?(d=0,c=m):c+v>=1?(d=(t*h-1)*Math.pow(2,o),c+=v):(d=t*Math.pow(2,v-1)*Math.pow(2,o),c=0));o>=8;e[n+i]=255&d,i+=y,d/=256,o-=8);for(c=c<0;e[n+i]=255&c,i+=y,c/=256,f-=8);e[n+i-y]|=128*s}},function(e,t){var n={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==n.call(e)}},function(e,t,n){var r=n(174),o=n(323),l=n(560),c=n(561),d=o.DOMImplementation,h=r.NAMESPACE,f=c.ParseError,m=c.XMLReader;function v(input){return input.replace(/\r[\n\u0085]/g,"\n").replace(/[\r\u0085\u2028]/g,"\n")}function y(e){this.options=e||{locator:{}}}function _(){this.cdata=!1}function T(e,t){t.lineNumber=e.lineNumber,t.columnNumber=e.columnNumber}function w(e){if(e)return"\n@"+(e.systemId||"")+"#[line:"+e.lineNumber+",col:"+e.columnNumber+"]"}function S(e,t,n){return"string"==typeof e?e.substr(t,n):e.length>=t+n||t?new java.lang.String(e,t,n)+"":e}function k(e,t){e.currentElement?e.currentElement.appendChild(t):e.doc.appendChild(t)}y.prototype.parseFromString=function(source,e){var t=this.options,n=new m,r=t.domBuilder||new _,o=t.errorHandler,c=t.locator,d=t.xmlns||{},f=/\/x?html?$/.test(e),y=f?l.HTML_ENTITIES:l.XML_ENTITIES;c&&r.setDocumentLocator(c),n.errorHandler=function(e,t,n){if(!e){if(t instanceof _)return t;e=t}var r={},o=e instanceof Function;function l(t){var l=e[t];!l&&o&&(l=2==e.length?function(n){e(t,n)}:e),r[t]=l&&function(e){l("[xmldom "+t+"]\t"+e+w(n))}||function(){}}return n=n||{},l("warning"),l("error"),l("fatalError"),r}(o,r,c),n.domBuilder=t.domBuilder||r,f&&(d[""]=h.HTML),d.xml=d.xml||h.XML;var T=t.normalizeLineEndings||v;return source&&"string"==typeof source?n.parse(T(source),d,y):n.errorHandler.error("invalid doc source"),r.doc},_.prototype={startDocument:function(){this.doc=(new d).createDocument(null,null,null),this.locator&&(this.doc.documentURI=this.locator.systemId)},startElement:function(e,t,n,r){var o=this.doc,l=o.createElementNS(e,n||t),c=r.length;k(this,l),this.currentElement=l,this.locator&&T(this.locator,l);for(var i=0;i",lt:"<",quot:'"'}),t.HTML_ENTITIES=r({Aacute:"Á",aacute:"á",Abreve:"Ă",abreve:"ă",ac:"∾",acd:"∿",acE:"∾̳",Acirc:"Â",acirc:"â",acute:"´",Acy:"А",acy:"а",AElig:"Æ",aelig:"æ",af:"⁡",Afr:"𝔄",afr:"𝔞",Agrave:"À",agrave:"à",alefsym:"ℵ",aleph:"ℵ",Alpha:"Α",alpha:"α",Amacr:"Ā",amacr:"ā",amalg:"⨿",AMP:"&",amp:"&",And:"⩓",and:"∧",andand:"⩕",andd:"⩜",andslope:"⩘",andv:"⩚",ang:"∠",ange:"⦤",angle:"∠",angmsd:"∡",angmsdaa:"⦨",angmsdab:"⦩",angmsdac:"⦪",angmsdad:"⦫",angmsdae:"⦬",angmsdaf:"⦭",angmsdag:"⦮",angmsdah:"⦯",angrt:"∟",angrtvb:"⊾",angrtvbd:"⦝",angsph:"∢",angst:"Å",angzarr:"⍼",Aogon:"Ą",aogon:"ą",Aopf:"𝔸",aopf:"𝕒",ap:"≈",apacir:"⩯",apE:"⩰",ape:"≊",apid:"≋",apos:"'",ApplyFunction:"⁡",approx:"≈",approxeq:"≊",Aring:"Å",aring:"å",Ascr:"𝒜",ascr:"𝒶",Assign:"≔",ast:"*",asymp:"≈",asympeq:"≍",Atilde:"Ã",atilde:"ã",Auml:"Ä",auml:"ä",awconint:"∳",awint:"⨑",backcong:"≌",backepsilon:"϶",backprime:"‵",backsim:"∽",backsimeq:"⋍",Backslash:"∖",Barv:"⫧",barvee:"⊽",Barwed:"⌆",barwed:"⌅",barwedge:"⌅",bbrk:"⎵",bbrktbrk:"⎶",bcong:"≌",Bcy:"Б",bcy:"б",bdquo:"„",becaus:"∵",Because:"∵",because:"∵",bemptyv:"⦰",bepsi:"϶",bernou:"ℬ",Bernoullis:"ℬ",Beta:"Β",beta:"β",beth:"ℶ",between:"≬",Bfr:"𝔅",bfr:"𝔟",bigcap:"⋂",bigcirc:"◯",bigcup:"⋃",bigodot:"⨀",bigoplus:"⨁",bigotimes:"⨂",bigsqcup:"⨆",bigstar:"★",bigtriangledown:"▽",bigtriangleup:"△",biguplus:"⨄",bigvee:"⋁",bigwedge:"⋀",bkarow:"⤍",blacklozenge:"⧫",blacksquare:"▪",blacktriangle:"▴",blacktriangledown:"▾",blacktriangleleft:"◂",blacktriangleright:"▸",blank:"␣",blk12:"▒",blk14:"░",blk34:"▓",block:"█",bne:"=⃥",bnequiv:"≡⃥",bNot:"⫭",bnot:"⌐",Bopf:"𝔹",bopf:"𝕓",bot:"⊥",bottom:"⊥",bowtie:"⋈",boxbox:"⧉",boxDL:"╗",boxDl:"╖",boxdL:"╕",boxdl:"┐",boxDR:"╔",boxDr:"╓",boxdR:"╒",boxdr:"┌",boxH:"═",boxh:"─",boxHD:"╦",boxHd:"╤",boxhD:"╥",boxhd:"┬",boxHU:"╩",boxHu:"╧",boxhU:"╨",boxhu:"┴",boxminus:"⊟",boxplus:"⊞",boxtimes:"⊠",boxUL:"╝",boxUl:"╜",boxuL:"╛",boxul:"┘",boxUR:"╚",boxUr:"╙",boxuR:"╘",boxur:"└",boxV:"║",boxv:"│",boxVH:"╬",boxVh:"╫",boxvH:"╪",boxvh:"┼",boxVL:"╣",boxVl:"╢",boxvL:"╡",boxvl:"┤",boxVR:"╠",boxVr:"╟",boxvR:"╞",boxvr:"├",bprime:"‵",Breve:"˘",breve:"˘",brvbar:"¦",Bscr:"ℬ",bscr:"𝒷",bsemi:"⁏",bsim:"∽",bsime:"⋍",bsol:"\\",bsolb:"⧅",bsolhsub:"⟈",bull:"•",bullet:"•",bump:"≎",bumpE:"⪮",bumpe:"≏",Bumpeq:"≎",bumpeq:"≏",Cacute:"Ć",cacute:"ć",Cap:"⋒",cap:"∩",capand:"⩄",capbrcup:"⩉",capcap:"⩋",capcup:"⩇",capdot:"⩀",CapitalDifferentialD:"ⅅ",caps:"∩︀",caret:"⁁",caron:"ˇ",Cayleys:"ℭ",ccaps:"⩍",Ccaron:"Č",ccaron:"č",Ccedil:"Ç",ccedil:"ç",Ccirc:"Ĉ",ccirc:"ĉ",Cconint:"∰",ccups:"⩌",ccupssm:"⩐",Cdot:"Ċ",cdot:"ċ",cedil:"¸",Cedilla:"¸",cemptyv:"⦲",cent:"¢",CenterDot:"·",centerdot:"·",Cfr:"ℭ",cfr:"𝔠",CHcy:"Ч",chcy:"ч",check:"✓",checkmark:"✓",Chi:"Χ",chi:"χ",cir:"○",circ:"ˆ",circeq:"≗",circlearrowleft:"↺",circlearrowright:"↻",circledast:"⊛",circledcirc:"⊚",circleddash:"⊝",CircleDot:"⊙",circledR:"®",circledS:"Ⓢ",CircleMinus:"⊖",CirclePlus:"⊕",CircleTimes:"⊗",cirE:"⧃",cire:"≗",cirfnint:"⨐",cirmid:"⫯",cirscir:"⧂",ClockwiseContourIntegral:"∲",CloseCurlyDoubleQuote:"”",CloseCurlyQuote:"’",clubs:"♣",clubsuit:"♣",Colon:"∷",colon:":",Colone:"⩴",colone:"≔",coloneq:"≔",comma:",",commat:"@",comp:"∁",compfn:"∘",complement:"∁",complexes:"ℂ",cong:"≅",congdot:"⩭",Congruent:"≡",Conint:"∯",conint:"∮",ContourIntegral:"∮",Copf:"ℂ",copf:"𝕔",coprod:"∐",Coproduct:"∐",COPY:"©",copy:"©",copysr:"℗",CounterClockwiseContourIntegral:"∳",crarr:"↵",Cross:"⨯",cross:"✗",Cscr:"𝒞",cscr:"𝒸",csub:"⫏",csube:"⫑",csup:"⫐",csupe:"⫒",ctdot:"⋯",cudarrl:"⤸",cudarrr:"⤵",cuepr:"⋞",cuesc:"⋟",cularr:"↶",cularrp:"⤽",Cup:"⋓",cup:"∪",cupbrcap:"⩈",CupCap:"≍",cupcap:"⩆",cupcup:"⩊",cupdot:"⊍",cupor:"⩅",cups:"∪︀",curarr:"↷",curarrm:"⤼",curlyeqprec:"⋞",curlyeqsucc:"⋟",curlyvee:"⋎",curlywedge:"⋏",curren:"¤",curvearrowleft:"↶",curvearrowright:"↷",cuvee:"⋎",cuwed:"⋏",cwconint:"∲",cwint:"∱",cylcty:"⌭",Dagger:"‡",dagger:"†",daleth:"ℸ",Darr:"↡",dArr:"⇓",darr:"↓",dash:"‐",Dashv:"⫤",dashv:"⊣",dbkarow:"⤏",dblac:"˝",Dcaron:"Ď",dcaron:"ď",Dcy:"Д",dcy:"д",DD:"ⅅ",dd:"ⅆ",ddagger:"‡",ddarr:"⇊",DDotrahd:"⤑",ddotseq:"⩷",deg:"°",Del:"∇",Delta:"Δ",delta:"δ",demptyv:"⦱",dfisht:"⥿",Dfr:"𝔇",dfr:"𝔡",dHar:"⥥",dharl:"⇃",dharr:"⇂",DiacriticalAcute:"´",DiacriticalDot:"˙",DiacriticalDoubleAcute:"˝",DiacriticalGrave:"`",DiacriticalTilde:"˜",diam:"⋄",Diamond:"⋄",diamond:"⋄",diamondsuit:"♦",diams:"♦",die:"¨",DifferentialD:"ⅆ",digamma:"ϝ",disin:"⋲",div:"÷",divide:"÷",divideontimes:"⋇",divonx:"⋇",DJcy:"Ђ",djcy:"ђ",dlcorn:"⌞",dlcrop:"⌍",dollar:"$",Dopf:"𝔻",dopf:"𝕕",Dot:"¨",dot:"˙",DotDot:"⃜",doteq:"≐",doteqdot:"≑",DotEqual:"≐",dotminus:"∸",dotplus:"∔",dotsquare:"⊡",doublebarwedge:"⌆",DoubleContourIntegral:"∯",DoubleDot:"¨",DoubleDownArrow:"⇓",DoubleLeftArrow:"⇐",DoubleLeftRightArrow:"⇔",DoubleLeftTee:"⫤",DoubleLongLeftArrow:"⟸",DoubleLongLeftRightArrow:"⟺",DoubleLongRightArrow:"⟹",DoubleRightArrow:"⇒",DoubleRightTee:"⊨",DoubleUpArrow:"⇑",DoubleUpDownArrow:"⇕",DoubleVerticalBar:"∥",DownArrow:"↓",Downarrow:"⇓",downarrow:"↓",DownArrowBar:"⤓",DownArrowUpArrow:"⇵",DownBreve:"̑",downdownarrows:"⇊",downharpoonleft:"⇃",downharpoonright:"⇂",DownLeftRightVector:"⥐",DownLeftTeeVector:"⥞",DownLeftVector:"↽",DownLeftVectorBar:"⥖",DownRightTeeVector:"⥟",DownRightVector:"⇁",DownRightVectorBar:"⥗",DownTee:"⊤",DownTeeArrow:"↧",drbkarow:"⤐",drcorn:"⌟",drcrop:"⌌",Dscr:"𝒟",dscr:"𝒹",DScy:"Ѕ",dscy:"ѕ",dsol:"⧶",Dstrok:"Đ",dstrok:"đ",dtdot:"⋱",dtri:"▿",dtrif:"▾",duarr:"⇵",duhar:"⥯",dwangle:"⦦",DZcy:"Џ",dzcy:"џ",dzigrarr:"⟿",Eacute:"É",eacute:"é",easter:"⩮",Ecaron:"Ě",ecaron:"ě",ecir:"≖",Ecirc:"Ê",ecirc:"ê",ecolon:"≕",Ecy:"Э",ecy:"э",eDDot:"⩷",Edot:"Ė",eDot:"≑",edot:"ė",ee:"ⅇ",efDot:"≒",Efr:"𝔈",efr:"𝔢",eg:"⪚",Egrave:"È",egrave:"è",egs:"⪖",egsdot:"⪘",el:"⪙",Element:"∈",elinters:"⏧",ell:"ℓ",els:"⪕",elsdot:"⪗",Emacr:"Ē",emacr:"ē",empty:"∅",emptyset:"∅",EmptySmallSquare:"◻",emptyv:"∅",EmptyVerySmallSquare:"▫",emsp:" ",emsp13:" ",emsp14:" ",ENG:"Ŋ",eng:"ŋ",ensp:" ",Eogon:"Ę",eogon:"ę",Eopf:"𝔼",eopf:"𝕖",epar:"⋕",eparsl:"⧣",eplus:"⩱",epsi:"ε",Epsilon:"Ε",epsilon:"ε",epsiv:"ϵ",eqcirc:"≖",eqcolon:"≕",eqsim:"≂",eqslantgtr:"⪖",eqslantless:"⪕",Equal:"⩵",equals:"=",EqualTilde:"≂",equest:"≟",Equilibrium:"⇌",equiv:"≡",equivDD:"⩸",eqvparsl:"⧥",erarr:"⥱",erDot:"≓",Escr:"ℰ",escr:"ℯ",esdot:"≐",Esim:"⩳",esim:"≂",Eta:"Η",eta:"η",ETH:"Ð",eth:"ð",Euml:"Ë",euml:"ë",euro:"€",excl:"!",exist:"∃",Exists:"∃",expectation:"ℰ",ExponentialE:"ⅇ",exponentiale:"ⅇ",fallingdotseq:"≒",Fcy:"Ф",fcy:"ф",female:"♀",ffilig:"ffi",fflig:"ff",ffllig:"ffl",Ffr:"𝔉",ffr:"𝔣",filig:"fi",FilledSmallSquare:"◼",FilledVerySmallSquare:"▪",fjlig:"fj",flat:"♭",fllig:"fl",fltns:"▱",fnof:"ƒ",Fopf:"𝔽",fopf:"𝕗",ForAll:"∀",forall:"∀",fork:"⋔",forkv:"⫙",Fouriertrf:"ℱ",fpartint:"⨍",frac12:"½",frac13:"⅓",frac14:"¼",frac15:"⅕",frac16:"⅙",frac18:"⅛",frac23:"⅔",frac25:"⅖",frac34:"¾",frac35:"⅗",frac38:"⅜",frac45:"⅘",frac56:"⅚",frac58:"⅝",frac78:"⅞",frasl:"⁄",frown:"⌢",Fscr:"ℱ",fscr:"𝒻",gacute:"ǵ",Gamma:"Γ",gamma:"γ",Gammad:"Ϝ",gammad:"ϝ",gap:"⪆",Gbreve:"Ğ",gbreve:"ğ",Gcedil:"Ģ",Gcirc:"Ĝ",gcirc:"ĝ",Gcy:"Г",gcy:"г",Gdot:"Ġ",gdot:"ġ",gE:"≧",ge:"≥",gEl:"⪌",gel:"⋛",geq:"≥",geqq:"≧",geqslant:"⩾",ges:"⩾",gescc:"⪩",gesdot:"⪀",gesdoto:"⪂",gesdotol:"⪄",gesl:"⋛︀",gesles:"⪔",Gfr:"𝔊",gfr:"𝔤",Gg:"⋙",gg:"≫",ggg:"⋙",gimel:"ℷ",GJcy:"Ѓ",gjcy:"ѓ",gl:"≷",gla:"⪥",glE:"⪒",glj:"⪤",gnap:"⪊",gnapprox:"⪊",gnE:"≩",gne:"⪈",gneq:"⪈",gneqq:"≩",gnsim:"⋧",Gopf:"𝔾",gopf:"𝕘",grave:"`",GreaterEqual:"≥",GreaterEqualLess:"⋛",GreaterFullEqual:"≧",GreaterGreater:"⪢",GreaterLess:"≷",GreaterSlantEqual:"⩾",GreaterTilde:"≳",Gscr:"𝒢",gscr:"ℊ",gsim:"≳",gsime:"⪎",gsiml:"⪐",Gt:"≫",GT:">",gt:">",gtcc:"⪧",gtcir:"⩺",gtdot:"⋗",gtlPar:"⦕",gtquest:"⩼",gtrapprox:"⪆",gtrarr:"⥸",gtrdot:"⋗",gtreqless:"⋛",gtreqqless:"⪌",gtrless:"≷",gtrsim:"≳",gvertneqq:"≩︀",gvnE:"≩︀",Hacek:"ˇ",hairsp:" ",half:"½",hamilt:"ℋ",HARDcy:"Ъ",hardcy:"ъ",hArr:"⇔",harr:"↔",harrcir:"⥈",harrw:"↭",Hat:"^",hbar:"ℏ",Hcirc:"Ĥ",hcirc:"ĥ",hearts:"♥",heartsuit:"♥",hellip:"…",hercon:"⊹",Hfr:"ℌ",hfr:"𝔥",HilbertSpace:"ℋ",hksearow:"⤥",hkswarow:"⤦",hoarr:"⇿",homtht:"∻",hookleftarrow:"↩",hookrightarrow:"↪",Hopf:"ℍ",hopf:"𝕙",horbar:"―",HorizontalLine:"─",Hscr:"ℋ",hscr:"𝒽",hslash:"ℏ",Hstrok:"Ħ",hstrok:"ħ",HumpDownHump:"≎",HumpEqual:"≏",hybull:"⁃",hyphen:"‐",Iacute:"Í",iacute:"í",ic:"⁣",Icirc:"Î",icirc:"î",Icy:"И",icy:"и",Idot:"İ",IEcy:"Е",iecy:"е",iexcl:"¡",iff:"⇔",Ifr:"ℑ",ifr:"𝔦",Igrave:"Ì",igrave:"ì",ii:"ⅈ",iiiint:"⨌",iiint:"∭",iinfin:"⧜",iiota:"℩",IJlig:"IJ",ijlig:"ij",Im:"ℑ",Imacr:"Ī",imacr:"ī",image:"ℑ",ImaginaryI:"ⅈ",imagline:"ℐ",imagpart:"ℑ",imath:"ı",imof:"⊷",imped:"Ƶ",Implies:"⇒",in:"∈",incare:"℅",infin:"∞",infintie:"⧝",inodot:"ı",Int:"∬",int:"∫",intcal:"⊺",integers:"ℤ",Integral:"∫",intercal:"⊺",Intersection:"⋂",intlarhk:"⨗",intprod:"⨼",InvisibleComma:"⁣",InvisibleTimes:"⁢",IOcy:"Ё",iocy:"ё",Iogon:"Į",iogon:"į",Iopf:"𝕀",iopf:"𝕚",Iota:"Ι",iota:"ι",iprod:"⨼",iquest:"¿",Iscr:"ℐ",iscr:"𝒾",isin:"∈",isindot:"⋵",isinE:"⋹",isins:"⋴",isinsv:"⋳",isinv:"∈",it:"⁢",Itilde:"Ĩ",itilde:"ĩ",Iukcy:"І",iukcy:"і",Iuml:"Ï",iuml:"ï",Jcirc:"Ĵ",jcirc:"ĵ",Jcy:"Й",jcy:"й",Jfr:"𝔍",jfr:"𝔧",jmath:"ȷ",Jopf:"𝕁",jopf:"𝕛",Jscr:"𝒥",jscr:"𝒿",Jsercy:"Ј",jsercy:"ј",Jukcy:"Є",jukcy:"є",Kappa:"Κ",kappa:"κ",kappav:"ϰ",Kcedil:"Ķ",kcedil:"ķ",Kcy:"К",kcy:"к",Kfr:"𝔎",kfr:"𝔨",kgreen:"ĸ",KHcy:"Х",khcy:"х",KJcy:"Ќ",kjcy:"ќ",Kopf:"𝕂",kopf:"𝕜",Kscr:"𝒦",kscr:"𝓀",lAarr:"⇚",Lacute:"Ĺ",lacute:"ĺ",laemptyv:"⦴",lagran:"ℒ",Lambda:"Λ",lambda:"λ",Lang:"⟪",lang:"⟨",langd:"⦑",langle:"⟨",lap:"⪅",Laplacetrf:"ℒ",laquo:"«",Larr:"↞",lArr:"⇐",larr:"←",larrb:"⇤",larrbfs:"⤟",larrfs:"⤝",larrhk:"↩",larrlp:"↫",larrpl:"⤹",larrsim:"⥳",larrtl:"↢",lat:"⪫",lAtail:"⤛",latail:"⤙",late:"⪭",lates:"⪭︀",lBarr:"⤎",lbarr:"⤌",lbbrk:"❲",lbrace:"{",lbrack:"[",lbrke:"⦋",lbrksld:"⦏",lbrkslu:"⦍",Lcaron:"Ľ",lcaron:"ľ",Lcedil:"Ļ",lcedil:"ļ",lceil:"⌈",lcub:"{",Lcy:"Л",lcy:"л",ldca:"⤶",ldquo:"“",ldquor:"„",ldrdhar:"⥧",ldrushar:"⥋",ldsh:"↲",lE:"≦",le:"≤",LeftAngleBracket:"⟨",LeftArrow:"←",Leftarrow:"⇐",leftarrow:"←",LeftArrowBar:"⇤",LeftArrowRightArrow:"⇆",leftarrowtail:"↢",LeftCeiling:"⌈",LeftDoubleBracket:"⟦",LeftDownTeeVector:"⥡",LeftDownVector:"⇃",LeftDownVectorBar:"⥙",LeftFloor:"⌊",leftharpoondown:"↽",leftharpoonup:"↼",leftleftarrows:"⇇",LeftRightArrow:"↔",Leftrightarrow:"⇔",leftrightarrow:"↔",leftrightarrows:"⇆",leftrightharpoons:"⇋",leftrightsquigarrow:"↭",LeftRightVector:"⥎",LeftTee:"⊣",LeftTeeArrow:"↤",LeftTeeVector:"⥚",leftthreetimes:"⋋",LeftTriangle:"⊲",LeftTriangleBar:"⧏",LeftTriangleEqual:"⊴",LeftUpDownVector:"⥑",LeftUpTeeVector:"⥠",LeftUpVector:"↿",LeftUpVectorBar:"⥘",LeftVector:"↼",LeftVectorBar:"⥒",lEg:"⪋",leg:"⋚",leq:"≤",leqq:"≦",leqslant:"⩽",les:"⩽",lescc:"⪨",lesdot:"⩿",lesdoto:"⪁",lesdotor:"⪃",lesg:"⋚︀",lesges:"⪓",lessapprox:"⪅",lessdot:"⋖",lesseqgtr:"⋚",lesseqqgtr:"⪋",LessEqualGreater:"⋚",LessFullEqual:"≦",LessGreater:"≶",lessgtr:"≶",LessLess:"⪡",lesssim:"≲",LessSlantEqual:"⩽",LessTilde:"≲",lfisht:"⥼",lfloor:"⌊",Lfr:"𝔏",lfr:"𝔩",lg:"≶",lgE:"⪑",lHar:"⥢",lhard:"↽",lharu:"↼",lharul:"⥪",lhblk:"▄",LJcy:"Љ",ljcy:"љ",Ll:"⋘",ll:"≪",llarr:"⇇",llcorner:"⌞",Lleftarrow:"⇚",llhard:"⥫",lltri:"◺",Lmidot:"Ŀ",lmidot:"ŀ",lmoust:"⎰",lmoustache:"⎰",lnap:"⪉",lnapprox:"⪉",lnE:"≨",lne:"⪇",lneq:"⪇",lneqq:"≨",lnsim:"⋦",loang:"⟬",loarr:"⇽",lobrk:"⟦",LongLeftArrow:"⟵",Longleftarrow:"⟸",longleftarrow:"⟵",LongLeftRightArrow:"⟷",Longleftrightarrow:"⟺",longleftrightarrow:"⟷",longmapsto:"⟼",LongRightArrow:"⟶",Longrightarrow:"⟹",longrightarrow:"⟶",looparrowleft:"↫",looparrowright:"↬",lopar:"⦅",Lopf:"𝕃",lopf:"𝕝",loplus:"⨭",lotimes:"⨴",lowast:"∗",lowbar:"_",LowerLeftArrow:"↙",LowerRightArrow:"↘",loz:"◊",lozenge:"◊",lozf:"⧫",lpar:"(",lparlt:"⦓",lrarr:"⇆",lrcorner:"⌟",lrhar:"⇋",lrhard:"⥭",lrm:"‎",lrtri:"⊿",lsaquo:"‹",Lscr:"ℒ",lscr:"𝓁",Lsh:"↰",lsh:"↰",lsim:"≲",lsime:"⪍",lsimg:"⪏",lsqb:"[",lsquo:"‘",lsquor:"‚",Lstrok:"Ł",lstrok:"ł",Lt:"≪",LT:"<",lt:"<",ltcc:"⪦",ltcir:"⩹",ltdot:"⋖",lthree:"⋋",ltimes:"⋉",ltlarr:"⥶",ltquest:"⩻",ltri:"◃",ltrie:"⊴",ltrif:"◂",ltrPar:"⦖",lurdshar:"⥊",luruhar:"⥦",lvertneqq:"≨︀",lvnE:"≨︀",macr:"¯",male:"♂",malt:"✠",maltese:"✠",Map:"⤅",map:"↦",mapsto:"↦",mapstodown:"↧",mapstoleft:"↤",mapstoup:"↥",marker:"▮",mcomma:"⨩",Mcy:"М",mcy:"м",mdash:"—",mDDot:"∺",measuredangle:"∡",MediumSpace:" ",Mellintrf:"ℳ",Mfr:"𝔐",mfr:"𝔪",mho:"℧",micro:"µ",mid:"∣",midast:"*",midcir:"⫰",middot:"·",minus:"−",minusb:"⊟",minusd:"∸",minusdu:"⨪",MinusPlus:"∓",mlcp:"⫛",mldr:"…",mnplus:"∓",models:"⊧",Mopf:"𝕄",mopf:"𝕞",mp:"∓",Mscr:"ℳ",mscr:"𝓂",mstpos:"∾",Mu:"Μ",mu:"μ",multimap:"⊸",mumap:"⊸",nabla:"∇",Nacute:"Ń",nacute:"ń",nang:"∠⃒",nap:"≉",napE:"⩰̸",napid:"≋̸",napos:"ʼn",napprox:"≉",natur:"♮",natural:"♮",naturals:"ℕ",nbsp:" ",nbump:"≎̸",nbumpe:"≏̸",ncap:"⩃",Ncaron:"Ň",ncaron:"ň",Ncedil:"Ņ",ncedil:"ņ",ncong:"≇",ncongdot:"⩭̸",ncup:"⩂",Ncy:"Н",ncy:"н",ndash:"–",ne:"≠",nearhk:"⤤",neArr:"⇗",nearr:"↗",nearrow:"↗",nedot:"≐̸",NegativeMediumSpace:"​",NegativeThickSpace:"​",NegativeThinSpace:"​",NegativeVeryThinSpace:"​",nequiv:"≢",nesear:"⤨",nesim:"≂̸",NestedGreaterGreater:"≫",NestedLessLess:"≪",NewLine:"\n",nexist:"∄",nexists:"∄",Nfr:"𝔑",nfr:"𝔫",ngE:"≧̸",nge:"≱",ngeq:"≱",ngeqq:"≧̸",ngeqslant:"⩾̸",nges:"⩾̸",nGg:"⋙̸",ngsim:"≵",nGt:"≫⃒",ngt:"≯",ngtr:"≯",nGtv:"≫̸",nhArr:"⇎",nharr:"↮",nhpar:"⫲",ni:"∋",nis:"⋼",nisd:"⋺",niv:"∋",NJcy:"Њ",njcy:"њ",nlArr:"⇍",nlarr:"↚",nldr:"‥",nlE:"≦̸",nle:"≰",nLeftarrow:"⇍",nleftarrow:"↚",nLeftrightarrow:"⇎",nleftrightarrow:"↮",nleq:"≰",nleqq:"≦̸",nleqslant:"⩽̸",nles:"⩽̸",nless:"≮",nLl:"⋘̸",nlsim:"≴",nLt:"≪⃒",nlt:"≮",nltri:"⋪",nltrie:"⋬",nLtv:"≪̸",nmid:"∤",NoBreak:"⁠",NonBreakingSpace:" ",Nopf:"ℕ",nopf:"𝕟",Not:"⫬",not:"¬",NotCongruent:"≢",NotCupCap:"≭",NotDoubleVerticalBar:"∦",NotElement:"∉",NotEqual:"≠",NotEqualTilde:"≂̸",NotExists:"∄",NotGreater:"≯",NotGreaterEqual:"≱",NotGreaterFullEqual:"≧̸",NotGreaterGreater:"≫̸",NotGreaterLess:"≹",NotGreaterSlantEqual:"⩾̸",NotGreaterTilde:"≵",NotHumpDownHump:"≎̸",NotHumpEqual:"≏̸",notin:"∉",notindot:"⋵̸",notinE:"⋹̸",notinva:"∉",notinvb:"⋷",notinvc:"⋶",NotLeftTriangle:"⋪",NotLeftTriangleBar:"⧏̸",NotLeftTriangleEqual:"⋬",NotLess:"≮",NotLessEqual:"≰",NotLessGreater:"≸",NotLessLess:"≪̸",NotLessSlantEqual:"⩽̸",NotLessTilde:"≴",NotNestedGreaterGreater:"⪢̸",NotNestedLessLess:"⪡̸",notni:"∌",notniva:"∌",notnivb:"⋾",notnivc:"⋽",NotPrecedes:"⊀",NotPrecedesEqual:"⪯̸",NotPrecedesSlantEqual:"⋠",NotReverseElement:"∌",NotRightTriangle:"⋫",NotRightTriangleBar:"⧐̸",NotRightTriangleEqual:"⋭",NotSquareSubset:"⊏̸",NotSquareSubsetEqual:"⋢",NotSquareSuperset:"⊐̸",NotSquareSupersetEqual:"⋣",NotSubset:"⊂⃒",NotSubsetEqual:"⊈",NotSucceeds:"⊁",NotSucceedsEqual:"⪰̸",NotSucceedsSlantEqual:"⋡",NotSucceedsTilde:"≿̸",NotSuperset:"⊃⃒",NotSupersetEqual:"⊉",NotTilde:"≁",NotTildeEqual:"≄",NotTildeFullEqual:"≇",NotTildeTilde:"≉",NotVerticalBar:"∤",npar:"∦",nparallel:"∦",nparsl:"⫽⃥",npart:"∂̸",npolint:"⨔",npr:"⊀",nprcue:"⋠",npre:"⪯̸",nprec:"⊀",npreceq:"⪯̸",nrArr:"⇏",nrarr:"↛",nrarrc:"⤳̸",nrarrw:"↝̸",nRightarrow:"⇏",nrightarrow:"↛",nrtri:"⋫",nrtrie:"⋭",nsc:"⊁",nsccue:"⋡",nsce:"⪰̸",Nscr:"𝒩",nscr:"𝓃",nshortmid:"∤",nshortparallel:"∦",nsim:"≁",nsime:"≄",nsimeq:"≄",nsmid:"∤",nspar:"∦",nsqsube:"⋢",nsqsupe:"⋣",nsub:"⊄",nsubE:"⫅̸",nsube:"⊈",nsubset:"⊂⃒",nsubseteq:"⊈",nsubseteqq:"⫅̸",nsucc:"⊁",nsucceq:"⪰̸",nsup:"⊅",nsupE:"⫆̸",nsupe:"⊉",nsupset:"⊃⃒",nsupseteq:"⊉",nsupseteqq:"⫆̸",ntgl:"≹",Ntilde:"Ñ",ntilde:"ñ",ntlg:"≸",ntriangleleft:"⋪",ntrianglelefteq:"⋬",ntriangleright:"⋫",ntrianglerighteq:"⋭",Nu:"Ν",nu:"ν",num:"#",numero:"№",numsp:" ",nvap:"≍⃒",nVDash:"⊯",nVdash:"⊮",nvDash:"⊭",nvdash:"⊬",nvge:"≥⃒",nvgt:">⃒",nvHarr:"⤄",nvinfin:"⧞",nvlArr:"⤂",nvle:"≤⃒",nvlt:"<⃒",nvltrie:"⊴⃒",nvrArr:"⤃",nvrtrie:"⊵⃒",nvsim:"∼⃒",nwarhk:"⤣",nwArr:"⇖",nwarr:"↖",nwarrow:"↖",nwnear:"⤧",Oacute:"Ó",oacute:"ó",oast:"⊛",ocir:"⊚",Ocirc:"Ô",ocirc:"ô",Ocy:"О",ocy:"о",odash:"⊝",Odblac:"Ő",odblac:"ő",odiv:"⨸",odot:"⊙",odsold:"⦼",OElig:"Œ",oelig:"œ",ofcir:"⦿",Ofr:"𝔒",ofr:"𝔬",ogon:"˛",Ograve:"Ò",ograve:"ò",ogt:"⧁",ohbar:"⦵",ohm:"Ω",oint:"∮",olarr:"↺",olcir:"⦾",olcross:"⦻",oline:"‾",olt:"⧀",Omacr:"Ō",omacr:"ō",Omega:"Ω",omega:"ω",Omicron:"Ο",omicron:"ο",omid:"⦶",ominus:"⊖",Oopf:"𝕆",oopf:"𝕠",opar:"⦷",OpenCurlyDoubleQuote:"“",OpenCurlyQuote:"‘",operp:"⦹",oplus:"⊕",Or:"⩔",or:"∨",orarr:"↻",ord:"⩝",order:"ℴ",orderof:"ℴ",ordf:"ª",ordm:"º",origof:"⊶",oror:"⩖",orslope:"⩗",orv:"⩛",oS:"Ⓢ",Oscr:"𝒪",oscr:"ℴ",Oslash:"Ø",oslash:"ø",osol:"⊘",Otilde:"Õ",otilde:"õ",Otimes:"⨷",otimes:"⊗",otimesas:"⨶",Ouml:"Ö",ouml:"ö",ovbar:"⌽",OverBar:"‾",OverBrace:"⏞",OverBracket:"⎴",OverParenthesis:"⏜",par:"∥",para:"¶",parallel:"∥",parsim:"⫳",parsl:"⫽",part:"∂",PartialD:"∂",Pcy:"П",pcy:"п",percnt:"%",period:".",permil:"‰",perp:"⊥",pertenk:"‱",Pfr:"𝔓",pfr:"𝔭",Phi:"Φ",phi:"φ",phiv:"ϕ",phmmat:"ℳ",phone:"☎",Pi:"Π",pi:"π",pitchfork:"⋔",piv:"ϖ",planck:"ℏ",planckh:"ℎ",plankv:"ℏ",plus:"+",plusacir:"⨣",plusb:"⊞",pluscir:"⨢",plusdo:"∔",plusdu:"⨥",pluse:"⩲",PlusMinus:"±",plusmn:"±",plussim:"⨦",plustwo:"⨧",pm:"±",Poincareplane:"ℌ",pointint:"⨕",Popf:"ℙ",popf:"𝕡",pound:"£",Pr:"⪻",pr:"≺",prap:"⪷",prcue:"≼",prE:"⪳",pre:"⪯",prec:"≺",precapprox:"⪷",preccurlyeq:"≼",Precedes:"≺",PrecedesEqual:"⪯",PrecedesSlantEqual:"≼",PrecedesTilde:"≾",preceq:"⪯",precnapprox:"⪹",precneqq:"⪵",precnsim:"⋨",precsim:"≾",Prime:"″",prime:"′",primes:"ℙ",prnap:"⪹",prnE:"⪵",prnsim:"⋨",prod:"∏",Product:"∏",profalar:"⌮",profline:"⌒",profsurf:"⌓",prop:"∝",Proportion:"∷",Proportional:"∝",propto:"∝",prsim:"≾",prurel:"⊰",Pscr:"𝒫",pscr:"𝓅",Psi:"Ψ",psi:"ψ",puncsp:" ",Qfr:"𝔔",qfr:"𝔮",qint:"⨌",Qopf:"ℚ",qopf:"𝕢",qprime:"⁗",Qscr:"𝒬",qscr:"𝓆",quaternions:"ℍ",quatint:"⨖",quest:"?",questeq:"≟",QUOT:'"',quot:'"',rAarr:"⇛",race:"∽̱",Racute:"Ŕ",racute:"ŕ",radic:"√",raemptyv:"⦳",Rang:"⟫",rang:"⟩",rangd:"⦒",range:"⦥",rangle:"⟩",raquo:"»",Rarr:"↠",rArr:"⇒",rarr:"→",rarrap:"⥵",rarrb:"⇥",rarrbfs:"⤠",rarrc:"⤳",rarrfs:"⤞",rarrhk:"↪",rarrlp:"↬",rarrpl:"⥅",rarrsim:"⥴",Rarrtl:"⤖",rarrtl:"↣",rarrw:"↝",rAtail:"⤜",ratail:"⤚",ratio:"∶",rationals:"ℚ",RBarr:"⤐",rBarr:"⤏",rbarr:"⤍",rbbrk:"❳",rbrace:"}",rbrack:"]",rbrke:"⦌",rbrksld:"⦎",rbrkslu:"⦐",Rcaron:"Ř",rcaron:"ř",Rcedil:"Ŗ",rcedil:"ŗ",rceil:"⌉",rcub:"}",Rcy:"Р",rcy:"р",rdca:"⤷",rdldhar:"⥩",rdquo:"”",rdquor:"”",rdsh:"↳",Re:"ℜ",real:"ℜ",realine:"ℛ",realpart:"ℜ",reals:"ℝ",rect:"▭",REG:"®",reg:"®",ReverseElement:"∋",ReverseEquilibrium:"⇋",ReverseUpEquilibrium:"⥯",rfisht:"⥽",rfloor:"⌋",Rfr:"ℜ",rfr:"𝔯",rHar:"⥤",rhard:"⇁",rharu:"⇀",rharul:"⥬",Rho:"Ρ",rho:"ρ",rhov:"ϱ",RightAngleBracket:"⟩",RightArrow:"→",Rightarrow:"⇒",rightarrow:"→",RightArrowBar:"⇥",RightArrowLeftArrow:"⇄",rightarrowtail:"↣",RightCeiling:"⌉",RightDoubleBracket:"⟧",RightDownTeeVector:"⥝",RightDownVector:"⇂",RightDownVectorBar:"⥕",RightFloor:"⌋",rightharpoondown:"⇁",rightharpoonup:"⇀",rightleftarrows:"⇄",rightleftharpoons:"⇌",rightrightarrows:"⇉",rightsquigarrow:"↝",RightTee:"⊢",RightTeeArrow:"↦",RightTeeVector:"⥛",rightthreetimes:"⋌",RightTriangle:"⊳",RightTriangleBar:"⧐",RightTriangleEqual:"⊵",RightUpDownVector:"⥏",RightUpTeeVector:"⥜",RightUpVector:"↾",RightUpVectorBar:"⥔",RightVector:"⇀",RightVectorBar:"⥓",ring:"˚",risingdotseq:"≓",rlarr:"⇄",rlhar:"⇌",rlm:"‏",rmoust:"⎱",rmoustache:"⎱",rnmid:"⫮",roang:"⟭",roarr:"⇾",robrk:"⟧",ropar:"⦆",Ropf:"ℝ",ropf:"𝕣",roplus:"⨮",rotimes:"⨵",RoundImplies:"⥰",rpar:")",rpargt:"⦔",rppolint:"⨒",rrarr:"⇉",Rrightarrow:"⇛",rsaquo:"›",Rscr:"ℛ",rscr:"𝓇",Rsh:"↱",rsh:"↱",rsqb:"]",rsquo:"’",rsquor:"’",rthree:"⋌",rtimes:"⋊",rtri:"▹",rtrie:"⊵",rtrif:"▸",rtriltri:"⧎",RuleDelayed:"⧴",ruluhar:"⥨",rx:"℞",Sacute:"Ś",sacute:"ś",sbquo:"‚",Sc:"⪼",sc:"≻",scap:"⪸",Scaron:"Š",scaron:"š",sccue:"≽",scE:"⪴",sce:"⪰",Scedil:"Ş",scedil:"ş",Scirc:"Ŝ",scirc:"ŝ",scnap:"⪺",scnE:"⪶",scnsim:"⋩",scpolint:"⨓",scsim:"≿",Scy:"С",scy:"с",sdot:"⋅",sdotb:"⊡",sdote:"⩦",searhk:"⤥",seArr:"⇘",searr:"↘",searrow:"↘",sect:"§",semi:";",seswar:"⤩",setminus:"∖",setmn:"∖",sext:"✶",Sfr:"𝔖",sfr:"𝔰",sfrown:"⌢",sharp:"♯",SHCHcy:"Щ",shchcy:"щ",SHcy:"Ш",shcy:"ш",ShortDownArrow:"↓",ShortLeftArrow:"←",shortmid:"∣",shortparallel:"∥",ShortRightArrow:"→",ShortUpArrow:"↑",shy:"­",Sigma:"Σ",sigma:"σ",sigmaf:"ς",sigmav:"ς",sim:"∼",simdot:"⩪",sime:"≃",simeq:"≃",simg:"⪞",simgE:"⪠",siml:"⪝",simlE:"⪟",simne:"≆",simplus:"⨤",simrarr:"⥲",slarr:"←",SmallCircle:"∘",smallsetminus:"∖",smashp:"⨳",smeparsl:"⧤",smid:"∣",smile:"⌣",smt:"⪪",smte:"⪬",smtes:"⪬︀",SOFTcy:"Ь",softcy:"ь",sol:"/",solb:"⧄",solbar:"⌿",Sopf:"𝕊",sopf:"𝕤",spades:"♠",spadesuit:"♠",spar:"∥",sqcap:"⊓",sqcaps:"⊓︀",sqcup:"⊔",sqcups:"⊔︀",Sqrt:"√",sqsub:"⊏",sqsube:"⊑",sqsubset:"⊏",sqsubseteq:"⊑",sqsup:"⊐",sqsupe:"⊒",sqsupset:"⊐",sqsupseteq:"⊒",squ:"□",Square:"□",square:"□",SquareIntersection:"⊓",SquareSubset:"⊏",SquareSubsetEqual:"⊑",SquareSuperset:"⊐",SquareSupersetEqual:"⊒",SquareUnion:"⊔",squarf:"▪",squf:"▪",srarr:"→",Sscr:"𝒮",sscr:"𝓈",ssetmn:"∖",ssmile:"⌣",sstarf:"⋆",Star:"⋆",star:"☆",starf:"★",straightepsilon:"ϵ",straightphi:"ϕ",strns:"¯",Sub:"⋐",sub:"⊂",subdot:"⪽",subE:"⫅",sube:"⊆",subedot:"⫃",submult:"⫁",subnE:"⫋",subne:"⊊",subplus:"⪿",subrarr:"⥹",Subset:"⋐",subset:"⊂",subseteq:"⊆",subseteqq:"⫅",SubsetEqual:"⊆",subsetneq:"⊊",subsetneqq:"⫋",subsim:"⫇",subsub:"⫕",subsup:"⫓",succ:"≻",succapprox:"⪸",succcurlyeq:"≽",Succeeds:"≻",SucceedsEqual:"⪰",SucceedsSlantEqual:"≽",SucceedsTilde:"≿",succeq:"⪰",succnapprox:"⪺",succneqq:"⪶",succnsim:"⋩",succsim:"≿",SuchThat:"∋",Sum:"∑",sum:"∑",sung:"♪",Sup:"⋑",sup:"⊃",sup1:"¹",sup2:"²",sup3:"³",supdot:"⪾",supdsub:"⫘",supE:"⫆",supe:"⊇",supedot:"⫄",Superset:"⊃",SupersetEqual:"⊇",suphsol:"⟉",suphsub:"⫗",suplarr:"⥻",supmult:"⫂",supnE:"⫌",supne:"⊋",supplus:"⫀",Supset:"⋑",supset:"⊃",supseteq:"⊇",supseteqq:"⫆",supsetneq:"⊋",supsetneqq:"⫌",supsim:"⫈",supsub:"⫔",supsup:"⫖",swarhk:"⤦",swArr:"⇙",swarr:"↙",swarrow:"↙",swnwar:"⤪",szlig:"ß",Tab:"\t",target:"⌖",Tau:"Τ",tau:"τ",tbrk:"⎴",Tcaron:"Ť",tcaron:"ť",Tcedil:"Ţ",tcedil:"ţ",Tcy:"Т",tcy:"т",tdot:"⃛",telrec:"⌕",Tfr:"𝔗",tfr:"𝔱",there4:"∴",Therefore:"∴",therefore:"∴",Theta:"Θ",theta:"θ",thetasym:"ϑ",thetav:"ϑ",thickapprox:"≈",thicksim:"∼",ThickSpace:"  ",thinsp:" ",ThinSpace:" ",thkap:"≈",thksim:"∼",THORN:"Þ",thorn:"þ",Tilde:"∼",tilde:"˜",TildeEqual:"≃",TildeFullEqual:"≅",TildeTilde:"≈",times:"×",timesb:"⊠",timesbar:"⨱",timesd:"⨰",tint:"∭",toea:"⤨",top:"⊤",topbot:"⌶",topcir:"⫱",Topf:"𝕋",topf:"𝕥",topfork:"⫚",tosa:"⤩",tprime:"‴",TRADE:"™",trade:"™",triangle:"▵",triangledown:"▿",triangleleft:"◃",trianglelefteq:"⊴",triangleq:"≜",triangleright:"▹",trianglerighteq:"⊵",tridot:"◬",trie:"≜",triminus:"⨺",TripleDot:"⃛",triplus:"⨹",trisb:"⧍",tritime:"⨻",trpezium:"⏢",Tscr:"𝒯",tscr:"𝓉",TScy:"Ц",tscy:"ц",TSHcy:"Ћ",tshcy:"ћ",Tstrok:"Ŧ",tstrok:"ŧ",twixt:"≬",twoheadleftarrow:"↞",twoheadrightarrow:"↠",Uacute:"Ú",uacute:"ú",Uarr:"↟",uArr:"⇑",uarr:"↑",Uarrocir:"⥉",Ubrcy:"Ў",ubrcy:"ў",Ubreve:"Ŭ",ubreve:"ŭ",Ucirc:"Û",ucirc:"û",Ucy:"У",ucy:"у",udarr:"⇅",Udblac:"Ű",udblac:"ű",udhar:"⥮",ufisht:"⥾",Ufr:"𝔘",ufr:"𝔲",Ugrave:"Ù",ugrave:"ù",uHar:"⥣",uharl:"↿",uharr:"↾",uhblk:"▀",ulcorn:"⌜",ulcorner:"⌜",ulcrop:"⌏",ultri:"◸",Umacr:"Ū",umacr:"ū",uml:"¨",UnderBar:"_",UnderBrace:"⏟",UnderBracket:"⎵",UnderParenthesis:"⏝",Union:"⋃",UnionPlus:"⊎",Uogon:"Ų",uogon:"ų",Uopf:"𝕌",uopf:"𝕦",UpArrow:"↑",Uparrow:"⇑",uparrow:"↑",UpArrowBar:"⤒",UpArrowDownArrow:"⇅",UpDownArrow:"↕",Updownarrow:"⇕",updownarrow:"↕",UpEquilibrium:"⥮",upharpoonleft:"↿",upharpoonright:"↾",uplus:"⊎",UpperLeftArrow:"↖",UpperRightArrow:"↗",Upsi:"ϒ",upsi:"υ",upsih:"ϒ",Upsilon:"Υ",upsilon:"υ",UpTee:"⊥",UpTeeArrow:"↥",upuparrows:"⇈",urcorn:"⌝",urcorner:"⌝",urcrop:"⌎",Uring:"Ů",uring:"ů",urtri:"◹",Uscr:"𝒰",uscr:"𝓊",utdot:"⋰",Utilde:"Ũ",utilde:"ũ",utri:"▵",utrif:"▴",uuarr:"⇈",Uuml:"Ü",uuml:"ü",uwangle:"⦧",vangrt:"⦜",varepsilon:"ϵ",varkappa:"ϰ",varnothing:"∅",varphi:"ϕ",varpi:"ϖ",varpropto:"∝",vArr:"⇕",varr:"↕",varrho:"ϱ",varsigma:"ς",varsubsetneq:"⊊︀",varsubsetneqq:"⫋︀",varsupsetneq:"⊋︀",varsupsetneqq:"⫌︀",vartheta:"ϑ",vartriangleleft:"⊲",vartriangleright:"⊳",Vbar:"⫫",vBar:"⫨",vBarv:"⫩",Vcy:"В",vcy:"в",VDash:"⊫",Vdash:"⊩",vDash:"⊨",vdash:"⊢",Vdashl:"⫦",Vee:"⋁",vee:"∨",veebar:"⊻",veeeq:"≚",vellip:"⋮",Verbar:"‖",verbar:"|",Vert:"‖",vert:"|",VerticalBar:"∣",VerticalLine:"|",VerticalSeparator:"❘",VerticalTilde:"≀",VeryThinSpace:" ",Vfr:"𝔙",vfr:"𝔳",vltri:"⊲",vnsub:"⊂⃒",vnsup:"⊃⃒",Vopf:"𝕍",vopf:"𝕧",vprop:"∝",vrtri:"⊳",Vscr:"𝒱",vscr:"𝓋",vsubnE:"⫋︀",vsubne:"⊊︀",vsupnE:"⫌︀",vsupne:"⊋︀",Vvdash:"⊪",vzigzag:"⦚",Wcirc:"Ŵ",wcirc:"ŵ",wedbar:"⩟",Wedge:"⋀",wedge:"∧",wedgeq:"≙",weierp:"℘",Wfr:"𝔚",wfr:"𝔴",Wopf:"𝕎",wopf:"𝕨",wp:"℘",wr:"≀",wreath:"≀",Wscr:"𝒲",wscr:"𝓌",xcap:"⋂",xcirc:"◯",xcup:"⋃",xdtri:"▽",Xfr:"𝔛",xfr:"𝔵",xhArr:"⟺",xharr:"⟷",Xi:"Ξ",xi:"ξ",xlArr:"⟸",xlarr:"⟵",xmap:"⟼",xnis:"⋻",xodot:"⨀",Xopf:"𝕏",xopf:"𝕩",xoplus:"⨁",xotime:"⨂",xrArr:"⟹",xrarr:"⟶",Xscr:"𝒳",xscr:"𝓍",xsqcup:"⨆",xuplus:"⨄",xutri:"△",xvee:"⋁",xwedge:"⋀",Yacute:"Ý",yacute:"ý",YAcy:"Я",yacy:"я",Ycirc:"Ŷ",ycirc:"ŷ",Ycy:"Ы",ycy:"ы",yen:"¥",Yfr:"𝔜",yfr:"𝔶",YIcy:"Ї",yicy:"ї",Yopf:"𝕐",yopf:"𝕪",Yscr:"𝒴",yscr:"𝓎",YUcy:"Ю",yucy:"ю",Yuml:"Ÿ",yuml:"ÿ",Zacute:"Ź",zacute:"ź",Zcaron:"Ž",zcaron:"ž",Zcy:"З",zcy:"з",Zdot:"Ż",zdot:"ż",zeetrf:"ℨ",ZeroWidthSpace:"​",Zeta:"Ζ",zeta:"ζ",Zfr:"ℨ",zfr:"𝔷",ZHcy:"Ж",zhcy:"ж",zigrarr:"⇝",Zopf:"ℤ",zopf:"𝕫",Zscr:"𝒵",zscr:"𝓏",zwj:"‍",zwnj:"‌"}),t.entityMap=t.HTML_ENTITIES},function(e,t,n){var r=n(174).NAMESPACE,o=/[A-Z_a-z\xC0-\xD6\xD8-\xF6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,l=new RegExp("[\\-\\.0-9"+o.source.slice(1,-1)+"\\u00B7\\u0300-\\u036F\\u203F-\\u2040]"),c=new RegExp("^"+o.source+l.source+"*(?::"+o.source+l.source+"*)?$"),d=0,h=1,f=2,m=3,v=4,y=5,_=6,T=7;function w(e,t){this.message=e,this.locator=t,Error.captureStackTrace&&Error.captureStackTrace(this,w)}function S(){}function k(e,t){return t.lineNumber=e.lineNumber,t.columnNumber=e.columnNumber,t}function x(source,e,t,n,o,l){function c(e,n,r){t.attributeNames.hasOwnProperty(e)&&l.fatalError("Attribute "+e+" redefined"),t.addValue(e,n.replace(/[\t\n\r]/g," ").replace(/&#?\w+;/g,o),r)}for(var w,p=++e,s=d;;){var S=source.charAt(p);switch(S){case"=":if(s===h)w=source.slice(e,p),s=m;else{if(s!==f)throw new Error("attribute equal must after attrName");s=m}break;case"'":case'"':if(s===m||s===h){if(s===h&&(l.warning('attribute value must after "="'),w=source.slice(e,p)),e=p+1,!((p=source.indexOf(S,e))>0))throw new Error("attribute value no end '"+S+"' match");c(w,k=source.slice(e,p),e-1),s=y}else{if(s!=v)throw new Error('attribute value must after "="');c(w,k=source.slice(e,p),e),l.warning('attribute "'+w+'" missed start quot('+S+")!!"),e=p+1,s=y}break;case"/":switch(s){case d:t.setTagName(source.slice(e,p));case y:case _:case T:s=T,t.closed=!0;case v:case h:break;case f:t.closed=!0;break;default:throw new Error("attribute invalid close char('/')")}break;case"":return l.error("unexpected end of input"),s==d&&t.setTagName(source.slice(e,p)),p;case">":switch(s){case d:t.setTagName(source.slice(e,p));case y:case _:case T:break;case v:case h:"/"===(k=source.slice(e,p)).slice(-1)&&(t.closed=!0,k=k.slice(0,-1));case f:s===f&&(k=w),s==v?(l.warning('attribute "'+k+'" missed quot(")!'),c(w,k,e)):(r.isHTML(n[""])&&k.match(/^(?:disabled|checked|selected)$/i)||l.warning('attribute "'+k+'" missed value!! "'+k+'" instead!!'),c(k,k,e));break;case m:throw new Error("attribute value missed!!")}return p;case"€":S=" ";default:if(S<=" ")switch(s){case d:t.setTagName(source.slice(e,p)),s=_;break;case h:w=source.slice(e,p),s=f;break;case v:var k=source.slice(e,p);l.warning('attribute "'+k+'" missed quot(")!!'),c(w,k,e);case y:s=_}else switch(s){case f:t.tagName;r.isHTML(n[""])&&w.match(/^(?:disabled|checked|selected)$/i)||l.warning('attribute "'+w+'" missed value!! "'+w+'" instead2!!'),c(w,w,e),e=p,s=h;break;case y:l.warning('attribute space is required"'+w+'"!!');case _:s=h,e=p;break;case m:s=v,e=p;break;case T:throw new Error("elements closed character '/' and '>' must be connected to")}}p++}}function C(e,t,n){for(var o=e.tagName,l=null,i=e.length;i--;){var a=e[i],c=a.qName,d=a.value;if((v=c.indexOf(":"))>0)var h=a.prefix=c.slice(0,v),f=c.slice(v+1),m="xmlns"===h&&f;else f=c,h=null,m="xmlns"===c&&"";a.localName=f,!1!==m&&(null==l&&(l={},D(n,n={})),n[m]=l[m]=d,a.uri=r.XMLNS,t.startPrefixMapping(m,d))}for(i=e.length;i--;){(h=(a=e[i]).prefix)&&("xml"===h&&(a.uri=r.XML),"xmlns"!==h&&(a.uri=n[h||""]))}var v;(v=o.indexOf(":"))>0?(h=e.prefix=o.slice(0,v),f=e.localName=o.slice(v+1)):(h=null,f=e.localName=o);var y=e.uri=n[h||""];if(t.startElement(y,f,o,e),!e.closed)return e.currentNSMap=n,e.localNSMap=l,!0;if(t.endElement(y,f,o),l)for(h in l)Object.prototype.hasOwnProperty.call(l,h)&&t.endPrefixMapping(h)}function A(source,e,t,n,r){if(/^(?:script|textarea)$/i.test(t)){var o=source.indexOf("",e),text=source.substring(e+1,o);if(/[&<]/.test(text))return/^script$/i.test(t)?(r.characters(text,0,text.length),o):(text=text.replace(/&#?\w+;/g,n),r.characters(text,0,text.length),o)}return e+1}function E(source,e,t,n){var r=n[t];return null==r&&((r=source.lastIndexOf(""))e?(t.comment(source,e+4,r-e-4),r+3):(n.error("Unclosed comment"),-1):-1;if("CDATA["==source.substr(e+3,6)){var r=source.indexOf("]]>",e+9);return t.startCDATA(),t.characters(source,e+9,r-e-9),t.endCDATA(),r+3}var o=function(source,e){var t,n=[],r=/'[^']+'|"[^"]+"|[^\s<>\/=]+=?|(\/?\s*>|<)/g;r.lastIndex=e,r.exec(source);for(;t=r.exec(source);)if(n.push(t),t[1])return n}(source,e),l=o.length;if(l>1&&/!doctype/i.test(o[0][0])){var c=o[1][0],d=!1,h=!1;l>3&&(/^public$/i.test(o[2][0])?(d=o[3][0],h=l>4&&o[4][0]):/^system$/i.test(o[2][0])&&(h=o[3][0]));var f=o[l-1];return t.startDTD(c,d,h),t.endDTD(),f.index+f[0].length}return-1}function j(source,e,t){var n=source.indexOf("?>",e);if(n){var r=source.substring(e,n).match(/^<\?(\S*)\s*([\s\S]*?)\s*$/);if(r){r[0].length;return t.processingInstruction(r[1],r[2]),n+2}return-1}return-1}function P(){this.attributeNames={}}w.prototype=new Error,w.prototype.name=w.name,S.prototype={parse:function(source,e,t){var n=this.domBuilder;n.startDocument(),D(e,e={}),function(source,e,t,n,o){function l(code){if(code>65535){var e=55296+((code-=65536)>>10),t=56320+(1023&code);return String.fromCharCode(e,t)}return String.fromCharCode(code)}function c(a){var e=a.slice(1,-1);return Object.hasOwnProperty.call(t,e)?t[e]:"#"===e.charAt(0)?l(parseInt(e.substr(1).replace("x","0x"))):(o.error("entity not found:"+a),a)}function d(e){if(e>S){var t=source.substring(S,e).replace(/&#?\w+;/g,c);y&&h(S),n.characters(t,0,e-S),S=e}}function h(p,e){for(;p>=m&&(e=v.exec(source));)f=e.index,m=f+e[0].length,y.lineNumber++;y.columnNumber=p-f+1}var f=0,m=0,v=/.*(?:\r\n?|\n)|.*$/g,y=n.locator,_=[{currentNSMap:e}],T={},S=0;for(;;){try{var D=source.indexOf("<",S);if(D<0){if(!source.substr(S).match(/^\s*$/)){var O=n.doc,text=O.createTextNode(source.substr(S));O.appendChild(text),n.currentElement=text}return}switch(D>S&&d(D),source.charAt(D+1)){case"/":var M=source.indexOf(">",D+3),L=source.substring(D+2,M).replace(/[ \t\n\r]+$/g,""),N=_.pop();M<0?(L=source.substring(D+2).replace(/[\s<].*/,""),o.error("end tag name: "+L+" is not complete:"+N.tagName),M=D+1+L.length):L.match(/\sS?S=M:d(Math.max(D,S)+1)}}(source,e,t,n,this.errorHandler),n.endDocument()}},P.prototype={setTagName:function(e){if(!c.test(e))throw new Error("invalid tagName:"+e);this.tagName=e},addValue:function(e,t,n){if(!c.test(e))throw new Error("invalid attribute:"+e);this.attributeNames[e]=this.length,this[this.length++]={qName:e,value:t,offset:n}},length:0,getLocalName:function(i){return this[i].localName},getLocator:function(i){return this[i].locator},getQName:function(i){return this[i].qName},getURI:function(i){return this[i].uri},getValue:function(i){return this[i].value}},t.XMLReader=S,t.ParseError=w},function(e,t){var n=Math.pow(2,32);e.exports={getUint64:function(e){var t,r=new DataView(e.buffer,e.byteOffset,e.byteLength);return r.getBigUint64?(t=r.getBigUint64(0)).vjs-icon-placeholder:before,.vjs-modal-dialog .vjs-modal-dialog-content{height:100%;left:0;position:absolute;top:0;width:100%}.video-js .vjs-big-play-button .vjs-icon-placeholder:before,.vjs-button>.vjs-icon-placeholder:before{text-align:center}@font-face{font-family:VideoJS;font-style:normal;font-weight:400;src:url(data:application/font-woff;charset=utf-8;base64,d09GRgABAAAAABDkAAsAAAAAG6gAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAABHU1VCAAABCAAAADsAAABUIIslek9TLzIAAAFEAAAAPgAAAFZRiV3hY21hcAAAAYQAAADaAAADPv749/pnbHlmAAACYAAAC3AAABHQZg6OcWhlYWQAAA3QAAAAKwAAADYZw251aGhlYQAADfwAAAAdAAAAJA+RCLFobXR4AAAOHAAAABMAAACM744AAGxvY2EAAA4wAAAASAAAAEhF6kqubWF4cAAADngAAAAfAAAAIAE0AIFuYW1lAAAOmAAAASUAAAIK1cf1oHBvc3QAAA/AAAABJAAAAdPExYuNeJxjYGRgYOBiMGCwY2BycfMJYeDLSSzJY5BiYGGAAJA8MpsxJzM9kYEDxgPKsYBpDiBmg4gCACY7BUgAeJxjYGS7wTiBgZWBgaWQ5RkDA8MvCM0cwxDOeI6BgYmBlZkBKwhIc01hcPjI+FGJHcRdyA4RZgQRADK3CxEAAHic7dFZbsMgAEXRS0ycyZnnOeG7y+qC8pU1dHusIOXxuoxaOlwZYWQB0Aea4quIEN4E9LzKbKjzDeM6H/mua6Lmc/p8yhg0lvdYx15ZG8uOLQOGjMp3EzqmzJizYMmKNRu27Nhz4MiJMxeu3Ljz4Ekqm7T8P52G8PP3lnTOVk++Z6iN6QZzNN1F7ptuN7eGOjDUoaGODHVsuvU8MdTO9Hd5aqgzQ50b6sJQl4a6MtS1oW4MdWuoO0PdG+rBUI+GejLUs6FeDPVqqDdDvRvqw1CfhpqM9At0iFLaAAB4nJ1YDXBTVRZ+5/22TUlJ8we0pHlJm7RJf5O8F2j6EymlSPkpxaL8U2xpa3DKj0CBhc2IW4eWKSokIoLsuMqssM64f+jA4HSdWXXXscBq67IOs3FXZ1ZYWVyRFdo899yXtIBQZ90k7717zz3v3HPPOfd854YCCj9cL9dL0RQFOqCbGJnrHb5EayiKIWN8iA/hWBblo6hUWm8TtCDwE80WMJus/irwyxOdxeB0MDb14VNJHnXYoLLSl6FfCUYO9nYPTA8Epg9090LprfbBbZ2hY0UlJUXHQp3/vtWkS6EBv8+rPMq5u9692f/dNxJNiqwC1xPE9TCUgCsSdQWgE3XQD25lkG4CN2xmTcOXWBOyser6RN6KnGbKSbmQ3+d0OI1m2W8QzLLkI2sykrWAgJJEtA8vGGW/2Q+CmT3n8zS9wZwu2DCvtuZKZN3xkrLh36yCZuUomQSqGpY8t/25VfHVhw8z4ebGBtfLb0ya9PCaDc+8dGTvk2dsh6z7WzvowlXKUSWo9MJ15a3KrEP2loOr2Ojhw6iW6hf2BDdEccQvZGpaAy7YovSwq8kr7HGllxpd71rkS6G0Sf11sl9OvMK1+jwPPODxjUwkOim9CU3ix1wNjXDfmJSEn618Bs6lpWwUpU+8PCqLMY650zjq8VhCIP17NEKTx3eaLL+s5Pi6yJWaWjTHLR1jYzPSV9VF/6Ojdb/1kO3Mk3uhHC0x6gc1BjlKQ+nQFxTYdaJkZ7ySVxLBbhR1dsboNXp1tCYKW2LRaEzpYcIx2BKNxaL0ZaUnSqfFoiNhHKR/GkX6PWUSAaJelQaqZL1EpoHNsajSEyPSoJ9IjhIxTdjHLmwZvhRDOiFTY/YeQnvrVZmiTQtGncECXtFTBZLOVwwMRgoXHAkXzMzPn1nAJJ8jYSbMDaqN2waGLzNhih/bZynUBMpIWSg7VYi7DRx2m8ALkIdRCJwI6ArJx2EI8kaDWeTQKeAFk9fjl/1AvwktjQ1P7NjyMGQyfd4vjipX6M/i52D7Cq80kqlcxEcGXRr/FEcgs0u5uGgB4VWuMFfpdn2Re6Hi3PqzmxWKsz6+ae2Pn9hXXw/fqM859UiGC0oKYYILJBqJrsn1Z1E5qOs9rQCiUQRREjm8yJcbHF5cUJufX1vAHlefw0XgUoboS3ETfQlTxBC4SOtuE8VPRJTBSCQSjZCpk7Gqzu+masaZ2y7Zjehho4F3g82BNDkAHpORG4+OCS+f6JTPmtRn/PH1kch6d04sp7AQb25aQ/pqUyXeQ8vrebG8OYQdXOQ+585u0sdW9rqalzRURiJ+9F4MweRFrKUjl1GUYhH1A27WOHw5cTFSFPMo9EeUIGnQTZHIaJ7AHLaOKsOODaNF9jkBjYG2QEsQ2xjMUAx2bBEbeTBWMHwskBjngq56S/yfgkBnWBa4K9sqKtq2t1UI8S9He5XuBRbawAdatrQEAi30Aks2+LM8WeCbalVZkWNylvJ+dqJnzVb+OHlSoKW8nPCP7Rd+CcZ2DdWAGqJ2CBFOphgywFFCFBNtfAbGtNPBCwxvygHeYMZMY9ZboBqwq/pVrsbgN5tkv152ODlbMfiqwGMBgxa4Exz3QhovRIUp6acqZmQzRq0ypDXS2TPLT02YIkQETnOE445oOGxOmXAqUJNNG7XgupMjPq2ua9asrj5yY/yuKteO1Kx0YNJTufrirLe1mZnat7OL6rnUdCWenpW6I8mAnbsY8KWs1PuSovCW9A/Z25PQ24a7cNOqgmTkLmBMgh4THgc4b9k2IVv1/g/F5nGljwPLfOgHAzJzh45V/4+WenTzmMtR5Z7us2Tys909UHqrPY7KbckoxRvRHhmVc3cJGE97uml0R1S0jdULVl7EvZtDFVBF35N9cEdjpgmAiOlFZ+Dtoh93+D3zzHr8RRNZQhnCNMNbcegOvpEwZoL+06cJQ07h+th3fZ/7PVbVC6ngTAV/KoLFuO6+2KFcU651gEb5ugPSIb1D+Xp8V4+k3sEIGnw5mYe4If4k1lFYr6SCzmM2EQ8iWtmwjnBI9kTwe1TlfAmXh7H02by9fW2gsjKwtv0aaURKil4OdV7rDL1MXIFNrhdxohcZXYTnq47WisrKitaObbf5+yvkLi5J6lCNZZ+B6GC38VNBZBDidSS/+mSvh6s+srgC8pyKMvDtt+de3c9fU76ZPfuM8ud4Kv0fyP/LqfepMT/3oZxSqpZaTa1DaQYLY8TFsHYbWYsPoRhRWfL5eSSQbhUGgGC3YLbVMk6PitTFNGpAsNrC6D1VNBKgBHMejaiuRWEWGgsSDBTJjqWIl8kJLlsaLJ2tXDr6xGfT85bM2Q06a46x2HTgvdnV8z5YDy/27J4zt6x2VtkzjoYpkq36kaBr4eQSg7tyiVweWubXZugtadl58ydapfbORfKsDTuZ0OBgx4cfdjCf5tbWNITnL120fdOi1RV1C3uKGzNdwYLcMvZ3BxoPyTOCD1XvXTp7U10gWCVmTV9b3r2z0SkGWovb2hp9I89O8a2smlyaO8muMU+dRmtzp60IzAoFpjLr1n388boLyf0dRvxhsHZ0qbWqDkwqvvpkj4l0fY6EIXRi5sQSrAvsVYwXRy4qJ2EVtD1AN7a0HWth9ymvL1xc3WTUKK/TAHA/bXDVtVWfOMfuGxGZv4Ln/jVr9jc3j1yMv0tndmyt9Vq88Y9gH1wtLX3KWjot5++jWHgAoZZkQ14wGQ20Fli71UmKJAy4xKMSTGbVdybW7FDDAut9XpD5AzWrYO7zQ8qffqF8+Ynd/clrHcdyxGy3a/3+mfNnzC/cBsveTjnTvXf1o6vzOlZw7WtqtdmPK/Errz/6NNtD72zmNOZfbmYdTGHfoofqI79Oc+R2n1lrnL6pOm0Up7kwxhTW12Amm7WYkXR2qYrF2AmgmbAsxZjwy1xpg/m1Je2vrp8v/nz2xpmlBg4E9hrMU341wVpTOh/OfmGvAnra8q6uctr60ZQHV3Q+WMQJykMj8ZsWn2QBOmmHMB+m5pDIpTFonYigiaKAhGEiAHF7EliVnQkjoLVIMPtJpBKHYd3A8GYH9jJzrWwmHx5Qjp7vDAX0suGRym1vtm/9W1/HyR8vczfMs6Sk8DSv855/5dlX9oQq52hT8syyp2rx5Id17IAyAM3wIjQPMOHzytEB64q6D5zT91yNbnx3V/nqnd017S9Y0605k3izoXLpsxde2n38yoOV9s1LcjwzNjbdX6asnBVaBj/6/DwKwPkpcqbDG7BnsXoSqWnUAmottYF6jMSdVyYZh3zVXCjwTiwwHH6sGuRiEHQGzuRX6whZkp123oy1BWE2mEfJ/tvIRtM4ZM5bDXiMsPMaAKOTyc5uL57rqyyc5y5JE5pm1i2S2iUX0CcaQ6lC6Zog7JqSqZmYlosl2K6pwNA84zRnQW6SaALYZQGW5lhCtU/W34N6o+bKfZ8cf3/Cl/+iTX3wBzpOY4mRkeNf3rptycGSshQWgGbYt5jFc2e0+DglIrwl6DVWQ7BuwaJ3Xk1J4VL5urnLl/Wf+gHU/hZoZdKNym6lG+I34FaNeZKcSpJIo2IeCVvpdsDGfKvzJnAwmeD37Ow65ZWwSowpgwX5T69s/rB55dP5BcpgDKFV8p7q2sn/1uc93bVzT/w6UrCqDTWvfCq/oCD/qZXNoUj8BL5Kp6GU017frfNXkAtiiyf/SOCEeLqnd8R/Ql9GlCRfctS6k5chvIBuQ1zCCjoCHL2DHNHIXxMJ3kQeO8lbsUXONeSfA5EjcG6/E+KdhN4bP04vBhdi883+BFBzQbxFbvZzQeY9LNBZc0FNfn5NwfDn6rCTnTw6R8o+gfpf5hCom33cRuiTlss3KHmZjD+BPN+5gXuA2ziS/Q73mLxUkpbKN/eqwz5uK0X9F3h2d1V4nGNgZGBgAOJd776+iue3+crAzc4AAje5Bfcg0xz9YHEOBiYQBQA8FQlFAHicY2BkYGBnAAGOPgaG//85+hkYGVCBMgBGGwNYAAAAeJxjYGBgYB8EmKOPgQEAQ04BfgAAAAAAAA4AaAB+AMwA4AECAUIBbAGYAcICGAJYArQC4AMwA7AD3gQwBJYE3AUkBWYFigYgBmYGtAbqB1gIEghYCG4IhAi2COh4nGNgZGBgUGYoZWBnAAEmIOYCQgaG/2A+AwAYCQG2AHicXZBNaoNAGIZfE5PQCKFQ2lUps2oXBfOzzAESyDKBQJdGR2NQR3QSSE/QE/QEPUUPUHqsvsrXjTMw83zPvPMNCuAWP3DQDAejdm1GjzwS7pMmwi75XngAD4/CQ/oX4TFe4Qt7uMMbOzjuDc0EmXCP/C7cJ38Iu+RP4QEe8CU8pP8WHmOPX2EPz87TPo202ey2OjlnQSXV/6arOjWFmvszMWtd6CqwOlKHq6ovycLaWMWVydXKFFZnmVFlZU46tP7R2nI5ncbi/dDkfDtFBA2DDXbYkhKc+V0Bqs5Zt9JM1HQGBRTm/EezTmZNKtpcAMs9Yu6AK9caF76zoLWIWcfMGOSkVduvSWechqZsz040Ib2PY3urxBJTzriT95lipz+TN1fmAAAAeJxtkMl2wjAMRfOAhABlKm2h80C3+ajgCKKDY6cegP59TYBzukAL+z1Zsq8ctaJTTKPrsUQLbXQQI0EXKXroY4AbDDHCGBNMcYsZ7nCPB8yxwCOe8IwXvOIN7/jAJ76wxHfUqWX+OzgumWAjJMV17i0Ndlr6irLKO+qftdT7i6y4uFSUvCknay+lFYZIZaQcmfH/xIFdYn98bqhra1aKTM/6lWMnyaYirx1rFUQZFBkb2zJUtoXeJCeg0WnLtHeSFc3OtrnozNwqi0TkSpBMDB1nSde5oJXW23hTS2/T0LilglXX7dmFVxLnq5U0vYATHFk3zX3BOisoQHNDFDeZnqKDy9hRNawN7Vh727hFzcJ5c8TILrKZfH7tIPxAFP0BpLeJPA==) format("woff")}.video-js .vjs-big-play-button .vjs-icon-placeholder:before,.video-js .vjs-play-control .vjs-icon-placeholder,.vjs-icon-play{font-family:VideoJS;font-style:normal;font-weight:400}.video-js .vjs-big-play-button .vjs-icon-placeholder:before,.video-js .vjs-play-control .vjs-icon-placeholder:before,.vjs-icon-play:before{content:"\\f101"}.vjs-icon-play-circle{font-family:VideoJS;font-style:normal;font-weight:400}.vjs-icon-play-circle:before{content:"\\f102"}.video-js .vjs-play-control.vjs-playing .vjs-icon-placeholder,.vjs-icon-pause{font-family:VideoJS;font-style:normal;font-weight:400}.video-js .vjs-play-control.vjs-playing .vjs-icon-placeholder:before,.vjs-icon-pause:before{content:"\\f103"}.video-js .vjs-mute-control.vjs-vol-0 .vjs-icon-placeholder,.vjs-icon-volume-mute{font-family:VideoJS;font-style:normal;font-weight:400}.video-js .vjs-mute-control.vjs-vol-0 .vjs-icon-placeholder:before,.vjs-icon-volume-mute:before{content:"\\f104"}.video-js .vjs-mute-control.vjs-vol-1 .vjs-icon-placeholder,.vjs-icon-volume-low{font-family:VideoJS;font-style:normal;font-weight:400}.video-js .vjs-mute-control.vjs-vol-1 .vjs-icon-placeholder:before,.vjs-icon-volume-low:before{content:"\\f105"}.video-js .vjs-mute-control.vjs-vol-2 .vjs-icon-placeholder,.vjs-icon-volume-mid{font-family:VideoJS;font-style:normal;font-weight:400}.video-js .vjs-mute-control.vjs-vol-2 .vjs-icon-placeholder:before,.vjs-icon-volume-mid:before{content:"\\f106"}.video-js .vjs-mute-control .vjs-icon-placeholder,.vjs-icon-volume-high{font-family:VideoJS;font-style:normal;font-weight:400}.video-js .vjs-mute-control .vjs-icon-placeholder:before,.vjs-icon-volume-high:before{content:"\\f107"}.video-js .vjs-fullscreen-control .vjs-icon-placeholder,.vjs-icon-fullscreen-enter{font-family:VideoJS;font-style:normal;font-weight:400}.video-js .vjs-fullscreen-control .vjs-icon-placeholder:before,.vjs-icon-fullscreen-enter:before{content:"\\f108"}.video-js.vjs-fullscreen .vjs-fullscreen-control .vjs-icon-placeholder,.vjs-icon-fullscreen-exit{font-family:VideoJS;font-style:normal;font-weight:400}.video-js.vjs-fullscreen .vjs-fullscreen-control .vjs-icon-placeholder:before,.vjs-icon-fullscreen-exit:before{content:"\\f109"}.vjs-icon-square{font-family:VideoJS;font-style:normal;font-weight:400}.vjs-icon-square:before{content:"\\f10a"}.vjs-icon-spinner{font-family:VideoJS;font-style:normal;font-weight:400}.vjs-icon-spinner:before{content:"\\f10b"}.video-js .vjs-subs-caps-button .vjs-icon-placeholder,.video-js .vjs-subtitles-button .vjs-icon-placeholder,.video-js.video-js:lang(en-AU) .vjs-subs-caps-button .vjs-icon-placeholder,.video-js.video-js:lang(en-GB) .vjs-subs-caps-button .vjs-icon-placeholder,.video-js.video-js:lang(en-IE) .vjs-subs-caps-button .vjs-icon-placeholder,.video-js.video-js:lang(en-NZ) .vjs-subs-caps-button .vjs-icon-placeholder,.vjs-icon-subtitles{font-family:VideoJS;font-style:normal;font-weight:400}.video-js .vjs-subs-caps-button .vjs-icon-placeholder:before,.video-js .vjs-subtitles-button .vjs-icon-placeholder:before,.video-js.video-js:lang(en-AU) .vjs-subs-caps-button .vjs-icon-placeholder:before,.video-js.video-js:lang(en-GB) .vjs-subs-caps-button .vjs-icon-placeholder:before,.video-js.video-js:lang(en-IE) .vjs-subs-caps-button .vjs-icon-placeholder:before,.video-js.video-js:lang(en-NZ) .vjs-subs-caps-button .vjs-icon-placeholder:before,.vjs-icon-subtitles:before{content:"\\f10c"}.video-js .vjs-captions-button .vjs-icon-placeholder,.video-js:lang(en) .vjs-subs-caps-button .vjs-icon-placeholder,.video-js:lang(fr-CA) .vjs-subs-caps-button .vjs-icon-placeholder,.vjs-icon-captions{font-family:VideoJS;font-style:normal;font-weight:400}.video-js .vjs-captions-button .vjs-icon-placeholder:before,.video-js:lang(en) .vjs-subs-caps-button .vjs-icon-placeholder:before,.video-js:lang(fr-CA) .vjs-subs-caps-button .vjs-icon-placeholder:before,.vjs-icon-captions:before{content:"\\f10d"}.video-js .vjs-chapters-button .vjs-icon-placeholder,.vjs-icon-chapters{font-family:VideoJS;font-style:normal;font-weight:400}.video-js .vjs-chapters-button .vjs-icon-placeholder:before,.vjs-icon-chapters:before{content:"\\f10e"}.vjs-icon-share{font-family:VideoJS;font-style:normal;font-weight:400}.vjs-icon-share:before{content:"\\f10f"}.vjs-icon-cog{font-family:VideoJS;font-style:normal;font-weight:400}.vjs-icon-cog:before{content:"\\f110"}.video-js .vjs-play-progress,.video-js .vjs-volume-level,.vjs-icon-circle,.vjs-seek-to-live-control .vjs-icon-placeholder{font-family:VideoJS;font-style:normal;font-weight:400}.video-js .vjs-play-progress:before,.video-js .vjs-volume-level:before,.vjs-icon-circle:before,.vjs-seek-to-live-control .vjs-icon-placeholder:before{content:"\\f111"}.vjs-icon-circle-outline{font-family:VideoJS;font-style:normal;font-weight:400}.vjs-icon-circle-outline:before{content:"\\f112"}.vjs-icon-circle-inner-circle{font-family:VideoJS;font-style:normal;font-weight:400}.vjs-icon-circle-inner-circle:before{content:"\\f113"}.vjs-icon-hd{font-family:VideoJS;font-style:normal;font-weight:400}.vjs-icon-hd:before{content:"\\f114"}.video-js .vjs-control.vjs-close-button .vjs-icon-placeholder,.vjs-icon-cancel{font-family:VideoJS;font-style:normal;font-weight:400}.video-js .vjs-control.vjs-close-button .vjs-icon-placeholder:before,.vjs-icon-cancel:before{content:"\\f115"}.video-js .vjs-play-control.vjs-ended .vjs-icon-placeholder,.vjs-icon-replay{font-family:VideoJS;font-style:normal;font-weight:400}.video-js .vjs-play-control.vjs-ended .vjs-icon-placeholder:before,.vjs-icon-replay:before{content:"\\f116"}.vjs-icon-facebook{font-family:VideoJS;font-style:normal;font-weight:400}.vjs-icon-facebook:before{content:"\\f117"}.vjs-icon-gplus{font-family:VideoJS;font-style:normal;font-weight:400}.vjs-icon-gplus:before{content:"\\f118"}.vjs-icon-linkedin{font-family:VideoJS;font-style:normal;font-weight:400}.vjs-icon-linkedin:before{content:"\\f119"}.vjs-icon-twitter{font-family:VideoJS;font-style:normal;font-weight:400}.vjs-icon-twitter:before{content:"\\f11a"}.vjs-icon-tumblr{font-family:VideoJS;font-style:normal;font-weight:400}.vjs-icon-tumblr:before{content:"\\f11b"}.vjs-icon-pinterest{font-family:VideoJS;font-style:normal;font-weight:400}.vjs-icon-pinterest:before{content:"\\f11c"}.video-js .vjs-descriptions-button .vjs-icon-placeholder,.vjs-icon-audio-description{font-family:VideoJS;font-style:normal;font-weight:400}.video-js .vjs-descriptions-button .vjs-icon-placeholder:before,.vjs-icon-audio-description:before{content:"\\f11d"}.video-js .vjs-audio-button .vjs-icon-placeholder,.vjs-icon-audio{font-family:VideoJS;font-style:normal;font-weight:400}.video-js .vjs-audio-button .vjs-icon-placeholder:before,.vjs-icon-audio:before{content:"\\f11e"}.vjs-icon-next-item{font-family:VideoJS;font-style:normal;font-weight:400}.vjs-icon-next-item:before{content:"\\f11f"}.vjs-icon-previous-item{font-family:VideoJS;font-style:normal;font-weight:400}.vjs-icon-previous-item:before{content:"\\f120"}.video-js .vjs-picture-in-picture-control .vjs-icon-placeholder,.vjs-icon-picture-in-picture-enter{font-family:VideoJS;font-style:normal;font-weight:400}.video-js .vjs-picture-in-picture-control .vjs-icon-placeholder:before,.vjs-icon-picture-in-picture-enter:before{content:"\\f121"}.video-js.vjs-picture-in-picture .vjs-picture-in-picture-control .vjs-icon-placeholder,.vjs-icon-picture-in-picture-exit{font-family:VideoJS;font-style:normal;font-weight:400}.video-js.vjs-picture-in-picture .vjs-picture-in-picture-control .vjs-icon-placeholder:before,.vjs-icon-picture-in-picture-exit:before{content:"\\f122"}.video-js{background-color:#000;box-sizing:border-box;color:#fff;display:block;font-family:Arial,Helvetica,sans-serif;font-size:10px;font-style:normal;font-weight:400;line-height:1;padding:0;position:relative;vertical-align:top;word-break:normal}.video-js:-moz-full-screen{position:absolute}.video-js:-webkit-full-screen{height:100%!important;width:100%!important}.video-js[tabindex="-1"]{outline:none}.video-js *,.video-js :after,.video-js :before{box-sizing:inherit}.video-js ul{font-family:inherit;font-size:inherit;line-height:inherit;list-style-position:outside;margin:0}.video-js.vjs-1-1,.video-js.vjs-16-9,.video-js.vjs-4-3,.video-js.vjs-9-16,.video-js.vjs-fluid{max-width:100%;width:100%}.video-js.vjs-1-1:not(.vjs-audio-only-mode),.video-js.vjs-16-9:not(.vjs-audio-only-mode),.video-js.vjs-4-3:not(.vjs-audio-only-mode),.video-js.vjs-9-16:not(.vjs-audio-only-mode),.video-js.vjs-fluid:not(.vjs-audio-only-mode){height:0}.video-js.vjs-16-9:not(.vjs-audio-only-mode){padding-top:56.25%}.video-js.vjs-4-3:not(.vjs-audio-only-mode){padding-top:75%}.video-js.vjs-9-16:not(.vjs-audio-only-mode){padding-top:177.7777777778%}.video-js.vjs-1-1:not(.vjs-audio-only-mode){padding-top:100%}.video-js .vjs-tech,.video-js.vjs-fill:not(.vjs-audio-only-mode){height:100%;width:100%}.video-js .vjs-tech{left:0;position:absolute;top:0}.video-js.vjs-audio-only-mode .vjs-tech{display:none}body.vjs-full-window{height:100%;margin:0;padding:0}.vjs-full-window .video-js.vjs-fullscreen{bottom:0;left:0;overflow:hidden;position:fixed;right:0;top:0;z-index:1000}.video-js.vjs-fullscreen:not(.vjs-ios-native-fs){height:100%!important;padding-top:0!important;width:100%!important}.video-js.vjs-fullscreen.vjs-user-inactive{cursor:none}.vjs-hidden{display:none!important}.vjs-disabled{cursor:default;opacity:.5}.video-js .vjs-offscreen{height:1px;left:-9999px;position:absolute;top:0;width:1px}.vjs-lock-showing{display:block!important;opacity:1!important;visibility:visible!important}.vjs-no-js{background-color:#000;color:#fff;font-family:Arial,Helvetica,sans-serif;font-size:18px;height:150px;margin:0 auto;padding:20px;text-align:center;width:300px}.vjs-no-js a,.vjs-no-js a:visited{color:#66a8cc}.video-js .vjs-big-play-button{background-color:#2b333f;background-color:rgba(43,51,63,.7);border:.06666em solid #fff;border-radius:.3em;cursor:pointer;display:block;font-size:3em;height:1.63332em;left:10px;line-height:1.5em;opacity:1;padding:0;position:absolute;top:10px;transition:all .4s;width:3em}.vjs-big-play-centered .vjs-big-play-button{left:50%;margin-left:-1.5em;margin-top:-.81666em;top:50%}.video-js .vjs-big-play-button:focus,.video-js:hover .vjs-big-play-button{background-color:#73859f;background-color:rgba(115,133,159,.5);border-color:#fff;transition:all 0s}.vjs-controls-disabled .vjs-big-play-button,.vjs-error .vjs-big-play-button,.vjs-has-started .vjs-big-play-button,.vjs-using-native-controls .vjs-big-play-button{display:none}.vjs-has-started.vjs-paused.vjs-show-big-play-button-on-pause .vjs-big-play-button{display:block}.video-js button{-webkit-appearance:none;-moz-appearance:none;appearance:none;background:none;border:none;color:inherit;display:inline-block;font-size:inherit;line-height:inherit;-webkit-text-decoration:none;text-decoration:none;text-transform:none;transition:none}.vjs-control .vjs-button{height:100%;width:100%}.video-js .vjs-control.vjs-close-button{cursor:pointer;height:3em;position:absolute;right:0;top:.5em;z-index:2}.video-js .vjs-modal-dialog{background:rgba(0,0,0,.8);background:linear-gradient(180deg,rgba(0,0,0,.8),hsla(0,0%,100%,0));overflow:auto}.video-js .vjs-modal-dialog>*{box-sizing:border-box}.vjs-modal-dialog .vjs-modal-dialog-content{font-size:1.2em;line-height:1.5;padding:20px 24px;z-index:1}.vjs-menu-button{cursor:pointer}.vjs-menu-button.vjs-disabled{cursor:default}.vjs-workinghover .vjs-menu-button.vjs-disabled:hover .vjs-menu{display:none}.vjs-menu .vjs-menu-content{display:block;font-family:Arial,Helvetica,sans-serif;margin:0;overflow:auto;padding:0}.vjs-menu .vjs-menu-content>*{box-sizing:border-box}.vjs-scrubbing .vjs-control.vjs-menu-button:hover .vjs-menu{display:none}.vjs-menu li{font-size:1.2em;line-height:1.4em;list-style:none;margin:0;padding:.2em 0;text-align:center;text-transform:lowercase}.js-focus-visible .vjs-menu li.vjs-menu-item:hover,.vjs-menu li.vjs-menu-item:focus,.vjs-menu li.vjs-menu-item:hover{background-color:#73859f;background-color:rgba(115,133,159,.5)}.js-focus-visible .vjs-menu li.vjs-selected:hover,.vjs-menu li.vjs-selected,.vjs-menu li.vjs-selected:focus,.vjs-menu li.vjs-selected:hover{background-color:#fff;color:#2b333f}.js-focus-visible .vjs-menu :not(.vjs-selected):focus:not(.focus-visible),.video-js .vjs-menu :not(.vjs-selected):focus:not(:focus-visible){background:none}.vjs-menu li.vjs-menu-title{cursor:default;font-size:1em;font-weight:700;line-height:2em;margin:0 0 .3em;padding:0;text-align:center;text-transform:uppercase}.vjs-menu-button-popup .vjs-menu{border-top-color:rgba(43,51,63,.7);bottom:0;display:none;height:0;left:-3em;margin-bottom:1.5em;position:absolute;width:10em}.vjs-menu-button-popup .vjs-menu .vjs-menu-content{background-color:#2b333f;background-color:rgba(43,51,63,.7);bottom:1.5em;max-height:15em;position:absolute;width:100%}.vjs-layout-tiny .vjs-menu-button-popup .vjs-menu .vjs-menu-content,.vjs-layout-x-small .vjs-menu-button-popup .vjs-menu .vjs-menu-content{max-height:5em}.vjs-layout-small .vjs-menu-button-popup .vjs-menu .vjs-menu-content{max-height:10em}.vjs-layout-medium .vjs-menu-button-popup .vjs-menu .vjs-menu-content{max-height:14em}.vjs-layout-huge .vjs-menu-button-popup .vjs-menu .vjs-menu-content,.vjs-layout-large .vjs-menu-button-popup .vjs-menu .vjs-menu-content,.vjs-layout-x-large .vjs-menu-button-popup .vjs-menu .vjs-menu-content{max-height:25em}.vjs-menu-button-popup .vjs-menu.vjs-lock-showing,.vjs-workinghover .vjs-menu-button-popup.vjs-hover .vjs-menu{display:block}.video-js .vjs-menu-button-inline{overflow:hidden;transition:all .4s}.video-js .vjs-menu-button-inline:before{width:2.222222222em}.video-js .vjs-menu-button-inline.vjs-slider-active,.video-js .vjs-menu-button-inline:focus,.video-js .vjs-menu-button-inline:hover,.video-js.vjs-no-flex .vjs-menu-button-inline{width:12em}.vjs-menu-button-inline .vjs-menu{height:100%;left:4em;margin:0;opacity:0;padding:0;position:absolute;top:0;transition:all .4s;width:auto}.vjs-menu-button-inline.vjs-slider-active .vjs-menu,.vjs-menu-button-inline:focus .vjs-menu,.vjs-menu-button-inline:hover .vjs-menu{display:block;opacity:1}.vjs-no-flex .vjs-menu-button-inline .vjs-menu{display:block;opacity:1;position:relative;width:auto}.vjs-no-flex .vjs-menu-button-inline.vjs-slider-active .vjs-menu,.vjs-no-flex .vjs-menu-button-inline:focus .vjs-menu,.vjs-no-flex .vjs-menu-button-inline:hover .vjs-menu{width:auto}.vjs-menu-button-inline .vjs-menu-content{height:100%;margin:0;overflow:hidden;width:auto}.video-js .vjs-control-bar{background-color:#2b333f;background-color:rgba(43,51,63,.7);bottom:0;display:none;height:3em;left:0;position:absolute;right:0;width:100%}.vjs-audio-only-mode .vjs-control-bar,.vjs-has-started .vjs-control-bar{display:flex;opacity:1;transition:visibility .1s,opacity .1s;visibility:visible}.vjs-has-started.vjs-user-inactive.vjs-playing .vjs-control-bar{opacity:0;pointer-events:none;transition:visibility 1s,opacity 1s;visibility:visible}.vjs-controls-disabled .vjs-control-bar,.vjs-error .vjs-control-bar,.vjs-using-native-controls .vjs-control-bar{display:none!important}.vjs-audio-only-mode.vjs-has-started.vjs-user-inactive.vjs-playing .vjs-control-bar,.vjs-audio.vjs-has-started.vjs-user-inactive.vjs-playing .vjs-control-bar{opacity:1;pointer-events:auto;visibility:visible}.vjs-has-started.vjs-no-flex .vjs-control-bar{display:table}.video-js .vjs-control{flex:none;height:100%;margin:0;padding:0;position:relative;text-align:center;width:4em}.video-js .vjs-control.vjs-visible-text{padding-left:1em;padding-right:1em;width:auto}.vjs-button>.vjs-icon-placeholder:before{font-size:1.8em;line-height:1.67}.vjs-button>.vjs-icon-placeholder{display:block}.video-js .vjs-control:focus,.video-js .vjs-control:focus:before,.video-js .vjs-control:hover:before{text-shadow:0 0 1em #fff}.video-js :not(.vjs-visible-text)>.vjs-control-text{border:0;clip:rect(0 0 0 0);height:1px;overflow:hidden;padding:0;position:absolute;width:1px}.vjs-no-flex .vjs-control{display:table-cell;vertical-align:middle}.video-js .vjs-custom-control-spacer{display:none}.video-js .vjs-progress-control{align-items:center;cursor:pointer;display:flex;flex:auto;min-width:4em;touch-action:none}.video-js .vjs-progress-control.disabled{cursor:default}.vjs-live .vjs-progress-control{display:none}.vjs-liveui .vjs-progress-control{align-items:center;display:flex}.vjs-no-flex .vjs-progress-control{width:auto}.video-js .vjs-progress-holder{flex:auto;height:.3em;transition:all .2s}.video-js .vjs-progress-control .vjs-progress-holder{margin:0 10px}.video-js .vjs-progress-control:hover .vjs-progress-holder{font-size:1.6666666667em}.video-js .vjs-progress-control:hover .vjs-progress-holder.disabled{font-size:1em}.video-js .vjs-progress-holder .vjs-load-progress,.video-js .vjs-progress-holder .vjs-load-progress div,.video-js .vjs-progress-holder .vjs-play-progress{display:block;height:100%;margin:0;padding:0;position:absolute;width:0}.video-js .vjs-play-progress{background-color:#fff}.video-js .vjs-play-progress:before{font-size:.9em;position:absolute;right:-.5em;top:-.3333333333em;z-index:1}.video-js .vjs-load-progress{background:rgba(115,133,159,.5)}.video-js .vjs-load-progress div{background:rgba(115,133,159,.75)}.video-js .vjs-time-tooltip{background-color:#fff;background-color:hsla(0,0%,100%,.8);border-radius:.3em;color:#000;float:right;font-family:Arial,Helvetica,sans-serif;font-size:1em;padding:6px 8px 8px;pointer-events:none;position:absolute;top:-3.4em;visibility:hidden;z-index:1}.video-js .vjs-progress-holder:focus .vjs-time-tooltip{display:none}.video-js .vjs-progress-control:hover .vjs-progress-holder:focus .vjs-time-tooltip,.video-js .vjs-progress-control:hover .vjs-time-tooltip{display:block;font-size:.6em;visibility:visible}.video-js .vjs-progress-control.disabled:hover .vjs-time-tooltip{font-size:1em}.video-js .vjs-progress-control .vjs-mouse-display{background-color:#000;display:none;height:100%;position:absolute;width:1px;z-index:1}.vjs-no-flex .vjs-progress-control .vjs-mouse-display{z-index:0}.video-js .vjs-progress-control:hover .vjs-mouse-display{display:block}.video-js.vjs-user-inactive .vjs-progress-control .vjs-mouse-display{opacity:0;transition:visibility 1s,opacity 1s;visibility:hidden}.video-js.vjs-user-inactive.vjs-no-flex .vjs-progress-control .vjs-mouse-display{display:none}.vjs-mouse-display .vjs-time-tooltip{background-color:#000;background-color:rgba(0,0,0,.8);color:#fff}.video-js .vjs-slider{cursor:pointer;margin:0 .45em;padding:0;position:relative;-webkit-touch-callout:none;background-color:#73859f;background-color:rgba(115,133,159,.5);-webkit-user-select:none;-moz-user-select:none;user-select:none}.video-js .vjs-slider.disabled{cursor:default}.video-js .vjs-slider:focus{box-shadow:0 0 1em #fff;text-shadow:0 0 1em #fff}.video-js .vjs-mute-control{cursor:pointer;flex:none}.video-js .vjs-volume-control{cursor:pointer;display:flex;margin-right:1em}.video-js .vjs-volume-control.vjs-volume-horizontal{width:5em}.video-js .vjs-volume-panel .vjs-volume-control{height:1px;margin-left:-1px;opacity:0;visibility:visible;width:1px}.video-js .vjs-volume-panel{transition:width 1s}.video-js .vjs-volume-panel .vjs-volume-control.vjs-slider-active,.video-js .vjs-volume-panel .vjs-volume-control:active,.video-js .vjs-volume-panel.vjs-hover .vjs-mute-control~.vjs-volume-control,.video-js .vjs-volume-panel.vjs-hover .vjs-volume-control,.video-js .vjs-volume-panel:active .vjs-volume-control,.video-js .vjs-volume-panel:focus .vjs-volume-control{opacity:1;position:relative;transition:visibility .1s,opacity .1s,height .1s,width .1s,left 0s,top 0s;visibility:visible}.video-js .vjs-volume-panel .vjs-volume-control.vjs-slider-active.vjs-volume-horizontal,.video-js .vjs-volume-panel .vjs-volume-control:active.vjs-volume-horizontal,.video-js .vjs-volume-panel.vjs-hover .vjs-mute-control~.vjs-volume-control.vjs-volume-horizontal,.video-js .vjs-volume-panel.vjs-hover .vjs-volume-control.vjs-volume-horizontal,.video-js .vjs-volume-panel:active .vjs-volume-control.vjs-volume-horizontal,.video-js .vjs-volume-panel:focus .vjs-volume-control.vjs-volume-horizontal{height:3em;margin-right:0;width:5em}.video-js .vjs-volume-panel .vjs-volume-control.vjs-slider-active.vjs-volume-vertical,.video-js .vjs-volume-panel .vjs-volume-control:active.vjs-volume-vertical,.video-js .vjs-volume-panel.vjs-hover .vjs-mute-control~.vjs-volume-control.vjs-volume-vertical,.video-js .vjs-volume-panel.vjs-hover .vjs-volume-control.vjs-volume-vertical,.video-js .vjs-volume-panel:active .vjs-volume-control.vjs-volume-vertical,.video-js .vjs-volume-panel:focus .vjs-volume-control.vjs-volume-vertical{left:-3.5em;transition:left 0s}.video-js .vjs-volume-panel.vjs-volume-panel-horizontal.vjs-hover,.video-js .vjs-volume-panel.vjs-volume-panel-horizontal.vjs-slider-active,.video-js .vjs-volume-panel.vjs-volume-panel-horizontal:active{transition:width .1s;width:10em}.video-js .vjs-volume-panel.vjs-volume-panel-horizontal.vjs-mute-toggle-only{width:4em}.video-js .vjs-volume-panel .vjs-volume-control.vjs-volume-vertical{height:8em;left:-3000em;transition:visibility 1s,opacity 1s,height 1s 1s,width 1s 1s,left 1s 1s,top 1s 1s;width:3em}.video-js .vjs-volume-panel .vjs-volume-control.vjs-volume-horizontal{transition:visibility 1s,opacity 1s,height 1s 1s,width 1s,left 1s 1s,top 1s 1s}.video-js.vjs-no-flex .vjs-volume-panel .vjs-volume-control.vjs-volume-horizontal{height:3em;opacity:1;position:relative;transition:none;visibility:visible;width:5em}.video-js.vjs-no-flex .vjs-volume-control.vjs-volume-vertical,.video-js.vjs-no-flex .vjs-volume-panel .vjs-volume-control.vjs-volume-vertical{bottom:3em;left:.5em;position:absolute}.video-js .vjs-volume-panel{display:flex}.video-js .vjs-volume-bar{margin:1.35em .45em}.vjs-volume-bar.vjs-slider-horizontal{height:.3em;width:5em}.vjs-volume-bar.vjs-slider-vertical{height:5em;margin:1.35em auto;width:.3em}.video-js .vjs-volume-level{background-color:#fff;bottom:0;left:0;position:absolute}.video-js .vjs-volume-level:before{font-size:.9em;position:absolute;z-index:1}.vjs-slider-vertical .vjs-volume-level{width:.3em}.vjs-slider-vertical .vjs-volume-level:before{left:-.3em;top:-.5em;z-index:1}.vjs-slider-horizontal .vjs-volume-level{height:.3em}.vjs-slider-horizontal .vjs-volume-level:before{right:-.5em;top:-.3em}.video-js .vjs-volume-panel.vjs-volume-panel-vertical{width:4em}.vjs-volume-bar.vjs-slider-vertical .vjs-volume-level{height:100%}.vjs-volume-bar.vjs-slider-horizontal .vjs-volume-level{width:100%}.video-js .vjs-volume-vertical{background-color:#2b333f;background-color:rgba(43,51,63,.7);bottom:8em;height:8em;width:3em}.video-js .vjs-volume-horizontal .vjs-menu{left:-2em}.video-js .vjs-volume-tooltip{background-color:#fff;background-color:hsla(0,0%,100%,.8);border-radius:.3em;color:#000;float:right;font-family:Arial,Helvetica,sans-serif;font-size:1em;padding:6px 8px 8px;pointer-events:none;position:absolute;top:-3.4em;visibility:hidden;z-index:1}.video-js .vjs-volume-control:hover .vjs-progress-holder:focus .vjs-volume-tooltip,.video-js .vjs-volume-control:hover .vjs-volume-tooltip{display:block;font-size:1em;visibility:visible}.video-js .vjs-volume-vertical:hover .vjs-progress-holder:focus .vjs-volume-tooltip,.video-js .vjs-volume-vertical:hover .vjs-volume-tooltip{left:1em;top:-12px}.video-js .vjs-volume-control.disabled:hover .vjs-volume-tooltip{font-size:1em}.video-js .vjs-volume-control .vjs-mouse-display{background-color:#000;display:none;height:1px;position:absolute;width:100%;z-index:1}.video-js .vjs-volume-horizontal .vjs-mouse-display{height:100%;width:1px}.vjs-no-flex .vjs-volume-control .vjs-mouse-display{z-index:0}.video-js .vjs-volume-control:hover .vjs-mouse-display{display:block}.video-js.vjs-user-inactive .vjs-volume-control .vjs-mouse-display{opacity:0;transition:visibility 1s,opacity 1s;visibility:hidden}.video-js.vjs-user-inactive.vjs-no-flex .vjs-volume-control .vjs-mouse-display{display:none}.vjs-mouse-display .vjs-volume-tooltip{background-color:#000;background-color:rgba(0,0,0,.8);color:#fff}.vjs-poster{background-color:#000;background-position:50% 50%;background-repeat:no-repeat;background-size:contain;bottom:0;cursor:pointer;display:inline-block;height:100%;left:0;margin:0;padding:0;position:absolute;right:0;top:0;vertical-align:middle}.vjs-has-started .vjs-poster,.vjs-using-native-controls .vjs-poster{display:none}.vjs-audio.vjs-has-started .vjs-poster,.vjs-has-started.vjs-audio-poster-mode .vjs-poster{display:block}.video-js .vjs-live-control{align-items:flex-start;display:flex;flex:auto;font-size:1em;line-height:3em}.vjs-no-flex .vjs-live-control{display:table-cell;text-align:left;width:auto}.video-js.vjs-liveui .vjs-live-control,.video-js:not(.vjs-live) .vjs-live-control{display:none}.video-js .vjs-seek-to-live-control{align-items:center;cursor:pointer;display:inline-flex;flex:none;font-size:1em;height:100%;line-height:3em;min-width:4em;padding-left:.5em;padding-right:.5em;width:auto}.vjs-no-flex .vjs-seek-to-live-control{display:table-cell;text-align:left;width:auto}.video-js.vjs-live:not(.vjs-liveui) .vjs-seek-to-live-control,.video-js:not(.vjs-live) .vjs-seek-to-live-control{display:none}.vjs-seek-to-live-control.vjs-control.vjs-at-live-edge{cursor:auto}.vjs-seek-to-live-control .vjs-icon-placeholder{color:#888;margin-right:.5em}.vjs-seek-to-live-control.vjs-control.vjs-at-live-edge .vjs-icon-placeholder{color:red}.video-js .vjs-time-control{flex:none;font-size:1em;line-height:3em;min-width:2em;padding-left:1em;padding-right:1em;width:auto}.video-js .vjs-current-time,.video-js .vjs-duration,.vjs-live .vjs-time-control,.vjs-no-flex .vjs-current-time,.vjs-no-flex .vjs-duration{display:none}.vjs-time-divider{display:none;line-height:3em}.vjs-live .vjs-time-divider{display:none}.video-js .vjs-play-control{cursor:pointer}.video-js .vjs-play-control .vjs-icon-placeholder{flex:none}.vjs-text-track-display{bottom:3em;left:0;pointer-events:none;position:absolute;right:0;top:0}.video-js.vjs-controls-disabled .vjs-text-track-display,.video-js.vjs-user-inactive.vjs-playing .vjs-text-track-display{bottom:1em}.video-js .vjs-text-track{font-size:1.4em;margin-bottom:.1em;text-align:center}.vjs-subtitles{color:#fff}.vjs-captions{color:#fc6}.vjs-tt-cue{display:block}video::-webkit-media-text-track-display{transform:translateY(-3em)}.video-js.vjs-controls-disabled video::-webkit-media-text-track-display,.video-js.vjs-user-inactive.vjs-playing video::-webkit-media-text-track-display{transform:translateY(-1.5em)}.video-js .vjs-picture-in-picture-control{cursor:pointer;flex:none}.video-js.vjs-audio-only-mode .vjs-picture-in-picture-control{display:none}.video-js .vjs-fullscreen-control{cursor:pointer;flex:none}.video-js.vjs-audio-only-mode .vjs-fullscreen-control{display:none}.vjs-playback-rate .vjs-playback-rate-value,.vjs-playback-rate>.vjs-menu-button{height:100%;left:0;position:absolute;top:0;width:100%}.vjs-playback-rate .vjs-playback-rate-value{font-size:1.5em;line-height:2;pointer-events:none;text-align:center}.vjs-playback-rate .vjs-menu{left:0;width:4em}.vjs-error .vjs-error-display .vjs-modal-dialog-content{font-size:1.4em;text-align:center}.vjs-error .vjs-error-display:before{color:#fff;content:"X";font-family:Arial,Helvetica,sans-serif;font-size:4em;left:0;line-height:1;margin-top:-.5em;position:absolute;text-align:center;text-shadow:.05em .05em .1em #000;top:50%;vertical-align:middle;width:100%}.vjs-loading-spinner{background-clip:padding-box;border:6px solid rgba(43,51,63,.7);border-radius:25px;box-sizing:border-box;display:none;height:50px;left:50%;margin:-25px 0 0 -25px;opacity:.85;position:absolute;text-align:left;top:50%;visibility:hidden;width:50px}.vjs-seeking .vjs-loading-spinner,.vjs-waiting .vjs-loading-spinner{animation:vjs-spinner-show 0s linear .3s forwards;display:block}.vjs-loading-spinner:after,.vjs-loading-spinner:before{border:inherit;border-color:#fff transparent transparent;border-radius:inherit;box-sizing:inherit;content:"";height:inherit;margin:-6px;opacity:1;position:absolute;width:inherit}.vjs-seeking .vjs-loading-spinner:after,.vjs-seeking .vjs-loading-spinner:before,.vjs-waiting .vjs-loading-spinner:after,.vjs-waiting .vjs-loading-spinner:before{animation:vjs-spinner-spin 1.1s cubic-bezier(.6,.2,0,.8) infinite,vjs-spinner-fade 1.1s linear infinite}.vjs-seeking .vjs-loading-spinner:before,.vjs-waiting .vjs-loading-spinner:before{border-top-color:#fff}.vjs-seeking .vjs-loading-spinner:after,.vjs-waiting .vjs-loading-spinner:after{animation-delay:.44s;border-top-color:#fff}@keyframes vjs-spinner-show{to{visibility:visible}}@keyframes vjs-spinner-spin{to{transform:rotate(1turn)}}@keyframes vjs-spinner-fade{0%{border-top-color:#73859f}20%{border-top-color:#73859f}35%{border-top-color:#fff}60%{border-top-color:#73859f}to{border-top-color:#73859f}}.video-js.vjs-audio-only-mode .vjs-captions-button{display:none}.vjs-chapters-button .vjs-menu ul{width:24em}.video-js.vjs-audio-only-mode .vjs-descriptions-button{display:none}.video-js .vjs-subs-caps-button+.vjs-menu .vjs-captions-menu-item .vjs-menu-item-text .vjs-icon-placeholder{display:inline-block;margin-bottom:-.1em;vertical-align:middle}.video-js .vjs-subs-caps-button+.vjs-menu .vjs-captions-menu-item .vjs-menu-item-text .vjs-icon-placeholder:before{content:"";font-family:VideoJS;font-size:1.5em;line-height:inherit}.video-js.vjs-audio-only-mode .vjs-subs-caps-button{display:none}.video-js .vjs-audio-button+.vjs-menu .vjs-main-desc-menu-item .vjs-menu-item-text .vjs-icon-placeholder{display:inline-block;margin-bottom:-.1em;vertical-align:middle}.video-js .vjs-audio-button+.vjs-menu .vjs-main-desc-menu-item .vjs-menu-item-text .vjs-icon-placeholder:before{content:" ";font-family:VideoJS;font-size:1.5em;line-height:inherit}.video-js.vjs-layout-small .vjs-current-time,.video-js.vjs-layout-small .vjs-duration,.video-js.vjs-layout-small .vjs-playback-rate,.video-js.vjs-layout-small .vjs-remaining-time,.video-js.vjs-layout-small .vjs-time-divider,.video-js.vjs-layout-small .vjs-volume-control,.video-js.vjs-layout-tiny .vjs-current-time,.video-js.vjs-layout-tiny .vjs-duration,.video-js.vjs-layout-tiny .vjs-playback-rate,.video-js.vjs-layout-tiny .vjs-remaining-time,.video-js.vjs-layout-tiny .vjs-time-divider,.video-js.vjs-layout-tiny .vjs-volume-control,.video-js.vjs-layout-x-small .vjs-current-time,.video-js.vjs-layout-x-small .vjs-duration,.video-js.vjs-layout-x-small .vjs-playback-rate,.video-js.vjs-layout-x-small .vjs-remaining-time,.video-js.vjs-layout-x-small .vjs-time-divider,.video-js.vjs-layout-x-small .vjs-volume-control{display:none}.video-js.vjs-layout-small .vjs-volume-panel.vjs-volume-panel-horizontal.vjs-hover,.video-js.vjs-layout-small .vjs-volume-panel.vjs-volume-panel-horizontal.vjs-slider-active,.video-js.vjs-layout-small .vjs-volume-panel.vjs-volume-panel-horizontal:active,.video-js.vjs-layout-small .vjs-volume-panel.vjs-volume-panel-horizontal:hover,.video-js.vjs-layout-tiny .vjs-volume-panel.vjs-volume-panel-horizontal.vjs-hover,.video-js.vjs-layout-tiny .vjs-volume-panel.vjs-volume-panel-horizontal.vjs-slider-active,.video-js.vjs-layout-tiny .vjs-volume-panel.vjs-volume-panel-horizontal:active,.video-js.vjs-layout-tiny .vjs-volume-panel.vjs-volume-panel-horizontal:hover,.video-js.vjs-layout-x-small .vjs-volume-panel.vjs-volume-panel-horizontal.vjs-hover,.video-js.vjs-layout-x-small .vjs-volume-panel.vjs-volume-panel-horizontal.vjs-slider-active,.video-js.vjs-layout-x-small .vjs-volume-panel.vjs-volume-panel-horizontal:active,.video-js.vjs-layout-x-small .vjs-volume-panel.vjs-volume-panel-horizontal:hover{width:auto}.video-js.vjs-layout-tiny .vjs-progress-control,.video-js.vjs-layout-x-small .vjs-progress-control{display:none}.video-js.vjs-layout-x-small .vjs-custom-control-spacer{display:block;flex:auto}.video-js.vjs-layout-x-small.vjs-no-flex .vjs-custom-control-spacer{width:auto}.vjs-modal-dialog.vjs-text-track-settings{background-color:#2b333f;background-color:rgba(43,51,63,.75);color:#fff;height:70%}.vjs-text-track-settings .vjs-modal-dialog-content{display:table}.vjs-text-track-settings .vjs-track-settings-colors,.vjs-text-track-settings .vjs-track-settings-controls,.vjs-text-track-settings .vjs-track-settings-font{display:table-cell}.vjs-text-track-settings .vjs-track-settings-controls{text-align:right;vertical-align:bottom}@supports (display:grid){.vjs-text-track-settings .vjs-modal-dialog-content{display:grid;grid-template-columns:1fr 1fr;grid-template-rows:1fr;padding:20px 24px 0}.vjs-track-settings-controls .vjs-default-button{margin-bottom:20px}.vjs-text-track-settings .vjs-track-settings-controls{grid-column:1/-1}.vjs-layout-small .vjs-text-track-settings .vjs-modal-dialog-content,.vjs-layout-tiny .vjs-text-track-settings .vjs-modal-dialog-content,.vjs-layout-x-small .vjs-text-track-settings .vjs-modal-dialog-content{grid-template-columns:1fr}}.vjs-track-setting>select{margin-bottom:.5em;margin-right:1em}.vjs-text-track-settings fieldset{border:none;margin:5px;padding:3px}.vjs-text-track-settings fieldset span{display:inline-block}.vjs-text-track-settings fieldset span>select{max-width:7.3em}.vjs-text-track-settings legend{color:#fff;margin:0 0 5px}.vjs-text-track-settings .vjs-label{position:absolute;clip:rect(1px 1px 1px 1px);clip:rect(1px,1px,1px,1px);border:0;display:block;height:1px;margin:0 0 5px;overflow:hidden;padding:0;width:1px}.vjs-track-settings-controls button:active,.vjs-track-settings-controls button:focus{background-image:linear-gradient(0deg,#fff 88%,#73859f);outline-style:solid;outline-width:medium}.vjs-track-settings-controls button:hover{color:rgba(43,51,63,.75)}.vjs-track-settings-controls button{background-color:#fff;background-image:linear-gradient(-180deg,#fff 88%,#73859f);border-radius:2px;color:#2b333f;cursor:pointer}.vjs-track-settings-controls .vjs-default-button{margin-right:1em}@media print{.video-js>:not(.vjs-tech):not(.vjs-poster){visibility:hidden}}.vjs-resize-manager{border:none;height:100%;left:0;position:absolute;top:0;width:100%;z-index:-1000}.js-focus-visible .video-js :focus:not(.focus-visible){outline:none}.video-js :focus:not(:focus-visible){outline:none}',""]),r.locals={},e.exports=r},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){var r=n(620),o=n(622);e.exports=function(object,e){return object&&r(object,e,o)}},function(e,t,n){var r=n(621)();e.exports=r},function(e,t){e.exports=function(e){return function(object,t,n){for(var r=-1,o=Object(object),l=n(object),c=l.length;c--;){var d=l[e?c:++r];if(!1===t(o[d],d,o))break}return object}}},function(e,t,n){var r=n(623),o=n(634),l=n(638);e.exports=function(object){return l(object)?r(object):o(object)}},function(e,t,n){var r=n(624),o=n(625),l=n(166),c=n(627),d=n(629),h=n(630),f=Object.prototype.hasOwnProperty;e.exports=function(e,t){var n=l(e),m=!n&&o(e),v=!n&&!m&&c(e),y=!n&&!m&&!v&&h(e),_=n||m||v||y,T=_?r(e.length,String):[],w=T.length;for(var S in e)!t&&!f.call(e,S)||_&&("length"==S||v&&("offset"==S||"parent"==S)||y&&("buffer"==S||"byteLength"==S||"byteOffset"==S)||d(S,w))||T.push(S);return T}},function(e,t){e.exports=function(e,t){for(var n=-1,r=Array(e);++n-1&&e%1==0&&e0?j.join(",")||null:void 0}];else if(h(filter))N=filter;else{var B=Object.keys(j);N=w?B.sort(w):B}var F=v?String(t).replace(/\./g,"%2E"):String(t),U=l&&h(j)&&1===j.length?F+"[]":F;if(c&&h(j)&&0===j.length)return U+"[]";for(var V=0;V0?C+x:""}},function(e,t,n){"use strict";var r=n(117),o=n(175),l=n(644),c=n(337),d=n(669)||c||l;e.exports=function(){var e,t={assert:function(e){if(!t.has(e))throw new r("Side channel does not contain "+o(e))},delete:function(t){return!!e&&e.delete(t)},get:function(t){return e&&e.get(t)},has:function(t){return!!e&&e.has(t)},set:function(t,n){e||(e=d()),e.set(t,n)}};return t}},,function(e,t,n){"use strict";var r=n(175),o=n(117),l=function(e,t,n){for(var r,o=e;null!=(r=o.next);o=r)if(r.key===t)return o.next=r.next,n||(r.next=e.next,e.next=r),r};e.exports=function(){var e,t={assert:function(e){if(!t.has(e))throw new o("Side channel does not contain "+r(e))},delete:function(t){var n=e&&e.next,r=function(e,t){if(e)return l(e,t,!0)}(e,t);return r&&n&&n===r&&(e=void 0),!!r},get:function(t){return function(e,t){if(e){var n=l(e,t);return n&&n.value}}(e,t)},has:function(t){return function(e,t){return!!e&&!!l(e,t)}(e,t)},set:function(t,n){e||(e={next:void 0}),function(e,t,n){var r=l(e,t);r?r.value=n:e.next={key:t,next:e.next,value:n}}(e,t,n)}};return t}},function(e,t,n){"use strict";e.exports=Error},function(e,t,n){"use strict";e.exports=EvalError},function(e,t,n){"use strict";e.exports=RangeError},function(e,t,n){"use strict";e.exports=ReferenceError},function(e,t,n){"use strict";e.exports=SyntaxError},function(e,t,n){"use strict";e.exports=URIError},function(e,t,n){"use strict";e.exports=Math.abs},function(e,t,n){"use strict";e.exports=Math.floor},function(e,t,n){"use strict";e.exports=Math.max},function(e,t,n){"use strict";e.exports=Math.min},function(e,t,n){"use strict";e.exports=Math.pow},function(e,t,n){"use strict";e.exports=Math.round},function(e,t,n){"use strict";var r=n(658);e.exports=function(e){return r(e)||0===e?e:e<0?-1:1}},function(e,t,n){"use strict";e.exports=Number.isNaN||function(a){return a!=a}},function(e,t,n){"use strict";e.exports=Object.getOwnPropertyDescriptor},function(e,t,n){"use strict";var r=Object.defineProperty||!1;if(r)try{r({},"a",{value:1})}catch(e){r=!1}e.exports=r},function(e,t,n){"use strict";var r="undefined"!=typeof Symbol&&Symbol,o=n(662);e.exports=function(){return"function"==typeof r&&("function"==typeof Symbol&&("symbol"==typeof r("foo")&&("symbol"==typeof Symbol("bar")&&o())))}},function(e,t,n){"use strict";e.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),n=Object(t);if("string"==typeof t)return!1;if("[object Symbol]"!==Object.prototype.toString.call(t))return!1;if("[object Symbol]"!==Object.prototype.toString.call(n))return!1;for(var r in e[t]=42,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var o=Object.getOwnPropertySymbols(e);if(1!==o.length||o[0]!==t)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var l=Object.getOwnPropertyDescriptor(e,t);if(42!==l.value||!0!==l.enumerable)return!1}return!0}},function(e,t,n){"use strict";var r=n(340),o=n(341),l=n(664);e.exports=r?function(e){return r(e)}:o?function(e){if(!e||"object"!=typeof e&&"function"!=typeof e)throw new TypeError("getProto: not an object");return o(e)}:l?function(e){return l(e)}:null},function(e,t,n){"use strict";var r,o=n(342),l=n(339);try{r=[].__proto__===Array.prototype}catch(e){if(!e||"object"!=typeof e||!("code"in e)||"ERR_PROTO_ACCESS"!==e.code)throw e}var desc=!!r&&l&&l(Object.prototype,"__proto__"),c=Object,d=c.getPrototypeOf;e.exports=desc&&"function"==typeof desc.get?o([desc.get]):"function"==typeof d&&function(e){return d(null==e?e:c(e))}},function(e,t,n){"use strict";var r=Object.prototype.toString,o=Math.max,l=function(a,b){for(var e=[],i=0;i-1)return e.split(",");if(t.throwOnLimitExceeded&&n>=t.arrayLimit)throw new RangeError("Array limit exceeded. Only "+t.arrayLimit+" element"+(1===t.arrayLimit?"":"s")+" allowed in an array.");return e},f=function(e,t,n,l){if(e){var c=n.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,d=/(\[[^[\]]*])/g,f=n.depth>0&&/(\[[^[\]]*])/.exec(c),m=f?c.slice(0,f.index):c,v=[];if(m){if(!n.plainObjects&&o.call(Object.prototype,m)&&!n.allowPrototypes)return;v.push(m)}for(var i=0;n.depth>0&&null!==(f=d.exec(c))&&i0&&"[]"===e[e.length-1]){var c=e.slice(0,-1).join("");l=Array.isArray(t)&&t[c]?t[c].length:0}for(var d=o?t:h(t,n,l),i=e.length-1;i>=0;--i){var f,m=e[i];if("[]"===m&&n.parseArrays)f=n.allowEmptyArrays&&(""===d||n.strictNullHandling&&null===d)?[]:r.combine([],d);else{f=n.plainObjects?{__proto__:null}:{};var v="["===m.charAt(0)&&"]"===m.charAt(m.length-1)?m.slice(1,-1):m,y=n.decodeDotInKeys?v.replace(/%2E/g,"."):v,_=parseInt(y,10);n.parseArrays||""!==y?!isNaN(_)&&m!==y&&String(_)===y&&_>=0&&n.parseArrays&&_<=n.arrayLimit?(f=[])[_]=d:"__proto__"!==y&&(f[y]=d):f={0:d}}d=f}return d}(v,t,n,l)}};e.exports=function(e,t){var n=function(e){if(!e)return c;if(void 0!==e.allowEmptyArrays&&"boolean"!=typeof e.allowEmptyArrays)throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(void 0!==e.decodeDotInKeys&&"boolean"!=typeof e.decodeDotInKeys)throw new TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");if(null!==e.decoder&&void 0!==e.decoder&&"function"!=typeof e.decoder)throw new TypeError("Decoder has to be a function.");if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");if(void 0!==e.throwOnLimitExceeded&&"boolean"!=typeof e.throwOnLimitExceeded)throw new TypeError("`throwOnLimitExceeded` option must be a boolean");var t=void 0===e.charset?c.charset:e.charset,n=void 0===e.duplicates?c.duplicates:e.duplicates;if("combine"!==n&&"first"!==n&&"last"!==n)throw new TypeError("The duplicates option must be either combine, first, or last");return{allowDots:void 0===e.allowDots?!0===e.decodeDotInKeys||c.allowDots:!!e.allowDots,allowEmptyArrays:"boolean"==typeof e.allowEmptyArrays?!!e.allowEmptyArrays:c.allowEmptyArrays,allowPrototypes:"boolean"==typeof e.allowPrototypes?e.allowPrototypes:c.allowPrototypes,allowSparse:"boolean"==typeof e.allowSparse?e.allowSparse:c.allowSparse,arrayLimit:"number"==typeof e.arrayLimit?e.arrayLimit:c.arrayLimit,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:c.charsetSentinel,comma:"boolean"==typeof e.comma?e.comma:c.comma,decodeDotInKeys:"boolean"==typeof e.decodeDotInKeys?e.decodeDotInKeys:c.decodeDotInKeys,decoder:"function"==typeof e.decoder?e.decoder:c.decoder,delimiter:"string"==typeof e.delimiter||r.isRegExp(e.delimiter)?e.delimiter:c.delimiter,depth:"number"==typeof e.depth||!1===e.depth?+e.depth:c.depth,duplicates:n,ignoreQueryPrefix:!0===e.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof e.interpretNumericEntities?e.interpretNumericEntities:c.interpretNumericEntities,parameterLimit:"number"==typeof e.parameterLimit?e.parameterLimit:c.parameterLimit,parseArrays:!1!==e.parseArrays,plainObjects:"boolean"==typeof e.plainObjects?e.plainObjects:c.plainObjects,strictDepth:"boolean"==typeof e.strictDepth?!!e.strictDepth:c.strictDepth,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:c.strictNullHandling,throwOnLimitExceeded:"boolean"==typeof e.throwOnLimitExceeded&&e.throwOnLimitExceeded}}(t);if(""===e||null==e)return n.plainObjects?{__proto__:null}:{};for(var m="string"==typeof e?function(e,t){var n={__proto__:null},f=t.ignoreQueryPrefix?e.replace(/^\?/,""):e;f=f.replace(/%5B/gi,"[").replace(/%5D/gi,"]");var m=t.parameterLimit===1/0?void 0:t.parameterLimit,v=f.split(t.delimiter,t.throwOnLimitExceeded?m+1:m);if(t.throwOnLimitExceeded&&v.length>m)throw new RangeError("Parameter limit exceeded. Only "+m+" parameter"+(1===m?"":"s")+" allowed.");var i,y=-1,_=t.charset;if(t.charsetSentinel)for(i=0;i-1&&(w=l(w)?[w]:w);var C=o.call(n,T);C&&"combine"===t.duplicates?n[T]=r.combine(n[T],w):C&&"last"!==t.duplicates||(n[T]=w)}return n}(e,n):e,v=n.plainObjects?{__proto__:null}:{},y=Object.keys(m),i=0;i=0;i--){var r=e[i];"."===r?e.splice(i,1):".."===r?(e.splice(i,1),n++):n&&(e.splice(i,1),n--)}if(t)for(;n--;n)e.unshift("..");return e}function filter(e,t){if(e.filter)return e.filter(t);for(var n=[],i=0;i=-1&&!r;i--){var path=i>=0?arguments[i]:e.cwd();if("string"!=typeof path)throw new TypeError("Arguments to path.resolve must be strings");path&&(t=path+"/"+t,r="/"===path.charAt(0))}return(r?"/":"")+(t=n(filter(t.split("/"),(function(p){return!!p})),!r).join("/"))||"."},t.normalize=function(path){var e=t.isAbsolute(path),o="/"===r(path,-1);return(path=n(filter(path.split("/"),(function(p){return!!p})),!e).join("/"))||e||(path="."),path&&o&&(path+="/"),(e?"/":"")+path},t.isAbsolute=function(path){return"/"===path.charAt(0)},t.join=function(){var e=Array.prototype.slice.call(arguments,0);return t.normalize(filter(e,(function(p,e){if("string"!=typeof p)throw new TypeError("Arguments to path.join must be strings");return p})).join("/"))},t.relative=function(e,n){function r(e){for(var t=0;t=0&&""===e[n];n--);return t>n?[]:e.slice(t,n-t+1)}e=t.resolve(e).substr(1),n=t.resolve(n).substr(1);for(var o=r(e.split("/")),l=r(n.split("/")),c=Math.min(o.length,l.length),d=c,i=0;i=1;--i)if(47===(code=path.charCodeAt(i))){if(!n){t=i;break}}else n=!1;return-1===t?e?"/":".":e&&1===t?"/":path.slice(0,t)},t.basename=function(path,e){var t=function(path){"string"!=typeof path&&(path+="");var i,e=0,t=-1,n=!0;for(i=path.length-1;i>=0;--i)if(47===path.charCodeAt(i)){if(!n){e=i+1;break}}else-1===t&&(n=!1,t=i+1);return-1===t?"":path.slice(e,t)}(path);return e&&t.substr(-1*e.length)===e&&(t=t.substr(0,t.length-e.length)),t},t.extname=function(path){"string"!=typeof path&&(path+="");for(var e=-1,t=0,n=-1,r=!0,o=0,i=path.length-1;i>=0;--i){var code=path.charCodeAt(i);if(47!==code)-1===n&&(r=!1,n=i+1),46===code?-1===e?e=i:1!==o&&(o=1):-1!==e&&(o=-1);else if(!r){t=i+1;break}}return-1===e||-1===n||0===o||1===o&&e===n-1&&e===t+1?"":path.slice(e,n)};var r="b"==="ab".substr(-1)?function(e,t,n){return e.substr(t,n)}:function(e,t,n){return t<0&&(t=e.length+t),e.substr(t,n)}}).call(this,n(139))},function(e,t,n){var r=n(735),o=n(736);e.exports=function(e){if(!e)return[];"{}"===e.substr(0,2)&&(e="\\{\\}"+e.substr(2));return k(function(e){return e.split("\\\\").join(l).split("\\{").join(c).split("\\}").join(d).split("\\,").join(h).split("\\.").join(f)}(e),!0).map(v)};var l="\0SLASH"+Math.random()+"\0",c="\0OPEN"+Math.random()+"\0",d="\0CLOSE"+Math.random()+"\0",h="\0COMMA"+Math.random()+"\0",f="\0PERIOD"+Math.random()+"\0";function m(e){return parseInt(e,10)==e?parseInt(e,10):e.charCodeAt(0)}function v(e){return e.split(l).join("\\").split(c).join("{").split(d).join("}").split(h).join(",").split(f).join(".")}function y(e){if(!e)return[""];var t=[],n=o("{","}",e);if(!n)return e.split(",");var pre=n.pre,body=n.body,r=n.post,p=pre.split(",");p[p.length-1]+="{"+body+"}";var l=y(r);return r.length&&(p[p.length-1]+=l.shift(),p.push.apply(p,l)),t.push.apply(t,p),t}function _(e){return"{"+e+"}"}function T(e){return/^-?0\d/.test(e)}function w(i,e){return i<=e}function S(i,e){return i>=e}function k(e,t){var n=[],l=o("{","}",e);if(!l||/\$$/.test(l.pre))return[e];var c,h=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(l.body),f=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(l.body),v=h||f,x=l.body.indexOf(",")>=0;if(!v&&!x)return l.post.match(/,.*\}/)?k(e=l.pre+"{"+l.body+d+l.post):[e];if(v)c=l.body.split(/\.\./);else if(1===(c=y(l.body)).length&&1===(c=k(c[0],!1).map(_)).length)return(A=l.post.length?k(l.post,!1):[""]).map((function(p){return l.pre+c[0]+p}));var C,pre=l.pre,A=l.post.length?k(l.post,!1):[""];if(v){var E=m(c[0]),D=m(c[1]),I=Math.max(c[0].length,c[1].length),j=3==c.length?Math.abs(m(c[2])):1,P=w;D0){var N=new Array(L+1).join("0");M=i<0?"-"+N+M.slice(1):N+M}}C.push(M)}}else C=r(c,(function(e){return k(e,!1)}));for(var R=0;R=0&&d>0){if(a===b)return[c,d];for(t=[],r=e.length;i>=0&&!l;)i==c?(t.push(i),c=e.indexOf(a,i+1)):1==t.length?l=[t.pop(),d]:((n=t.pop())=0?c:d;t.length&&(l=[r,o])}return l}e.exports=r,r.range=l},function(e,t,n){"use strict";n.r(t),n.d(t,"parse",(function(){return T})),n.d(t,"stringify",(function(){return w})),n.d(t,"toJSON",(function(){return S})),n.d(t,"fromJSON",(function(){return k}));const{parse:r,stringify:o}=JSON,{keys:l}=Object,c=String,d="string",h={},object="object",f=(e,t)=>t,m=e=>e instanceof c?c(e):e,v=(e,t)=>typeof t===d?new c(t):t,y=(input,e,output,t)=>{const n=[];for(let r=l(output),{length:o}=r,d=0;d{const n=c(input.push(t)-1);return e.set(t,n),n},T=(text,e)=>{const input=r(text,v).map(m),t=input[0],n=e||f,o=typeof t===object&&t?y(input,new Set,t,n):t;return n.call({"":o},"",o)},w=(e,t,n)=>{const r=t&&typeof t===object?(e,n)=>""===e||-1r(w(e)),k=e=>T(o(e))}]]);