filesbox/web/dist/design/designstatic/chatroom/video/alt/video.novtt.min.js

147 lines
216 KiB
JavaScript
Raw Permalink Normal View History

2024-07-26 06:10:54 +00:00
/**
* @license
* Video.js 5.8.7 <http://videojs.com/>
* Copyright Brightcove, Inc. <https://www.brightcove.com/>
* Available under Apache License Version 2.0
* <https://github.com/videojs/video.js/blob/master/LICENSE>
*/(function(yt){if(typeof exports=="object"&&typeof module!="undefined")module.exports=yt();else if(typeof define=="function"&&define.amd)define([],yt);else{var t;t=typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:this,t.videojs=yt()}})(function(){var yt;return function t(w,e,c){function o(h,a){if(!e[h]){if(!w[h]){var f=typeof require=="function"&&require;if(!a&&f)return f(h,!0);if(m)return m(h,!0);var u=new Error("Cannot find module '"+h+"'");throw u.code="MODULE_NOT_FOUND",u}var r=e[h]={exports:{}};w[h][0].call(r.exports,function(n){var y=w[h][1][n];return o(y||n)},r,r.exports,t,w,e,c)}return e[h].exports}for(var m=typeof require=="function"&&require,g=0;g<c.length;g++)o(c[g]);return o}({1:[function(t,w){(function(e){var c=typeof e!="undefined"?e:typeof window!="undefined"?window:{},o=t("min-document");if(typeof document!="undefined")w.exports=document;else{var m=c["__GLOBAL_DOCUMENT_CACHE@4"];m||(m=c["__GLOBAL_DOCUMENT_CACHE@4"]=o),w.exports=m}}).call(this,typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"min-document":3}],2:[function(t,w){(function(e){w.exports=typeof window!="undefined"?window:typeof e!="undefined"?e:typeof self!="undefined"?self:{}}).call(this,typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],3:[function(){},{}],4:[function(t,w){var e=t("../internal/getNative"),c=e(Date,"now"),o=c||function(){return new Date().getTime()};w.exports=o},{"../internal/getNative":20}],5:[function(t,w){function e(h,a,f){function u(){s&&clearTimeout(s),l&&clearTimeout(l),k=0,l=s=j=void 0}function r(T,P){P&&clearTimeout(P),l=s=j=void 0,T&&(k=o(),_=h.apply(v,p),s||l||(p=v=void 0))}function n(){var T=a-(o()-d);0>=T||T>a?r(j,l):s=setTimeout(n,T)}function y(){r(O,s)}function i(){if(p=arguments,d=o(),v=this,j=O&&(s||!b),C===!1)var T=b&&!s;else{l||b||(k=d);var P=C-(d-k),D=0>=P||P>C;D?(l&&(l=clearTimeout(l)),k=d,_=h.apply(v,p)):l||(l=setTimeout(y,P))}return D&&s?s=clearTimeout(s):s||a===C||(s=setTimeout(n,a)),T&&(D=!0,_=h.apply(v,p)),!D||s||l||(p=v=void 0),_}var p,l,_,d,v,s,j,k=0,C=!1,O=!0;if(typeof h!="function")throw new TypeError(m);if(a=0>a?0:+a||0,f===!0){var b=!0;O=!1}else c(f)&&(b=!!f.leading,C="maxWait"in f&&g(+f.maxWait||0,a),O="trailing"in f?!!f.trailing:O);return i.cancel=u,i}var c=t("../lang/isObject"),o=t("../date/now"),m="Expected a function",g=Math.max;w.exports=e},{"../date/now":4,"../lang/isObject":33}],6:[function(t,w){function e(m,g){if(typeof m!="function")throw new TypeError(c);return g=o(g===void 0?m.length-1:+g||0,0),function(){for(var h=arguments,a=-1,f=o(h.length-g,0),u=Array(f);++a<f;)u[a]=h[g+a];switch(g){case 0:return m.call(this,u);case 1:return m.call(this,h[0],u);case 2:return m.call(this,h[0],h[1],u)}var r=Array(g+1);for(a=-1;++a<g;)r[a]=h[a];return r[g]=u,m.apply(this,r)}}var c="Expected a function",o=Math.max;w.exports=e},{}],7:[function(t,w){function e(g,h,a){var f=!0,u=!0;if(typeof g!="function")throw new TypeError(m);return a===!1?f=!1:o(a)&&(f="leading"in a?!!a.leading:f,u="trailing"in a?!!a.trailing:u),c(g,h,{leading:f,maxWait:+h,trailing:u})}var c=t("./debounce"),o=t("../lang/isObject"),m="Expected a function";w.exports=e},{"../lang/isObject":33,"./debounce":5}],8:[function(t,w){function e(c,o){var m=-1,g=c.length;for(o||(o=Array(g));++m<g;)o[m]=c[m];return o}w.exports=e},{}],9:[function(t,w){function e(c,o){for(var m=-1,g=c.length;++m<g&&o(c[m],m,c)!==!1;);return c}w.exports=e},{}],10:[function(t,w){function e(c,o,m){m||(m={});for(var g=-1,h=o.length;++g<h;){var a=o[g];m[a]=c[a]}return m}w.exports=e},{}],11:[function(t,w){var e=t("./createBaseFor"),c=e();w.exports=c},{"./createBaseFor":18}],12:[function(t,w){function e(m,g){return c(m,g,o)}var c=t("./baseFor"),o=t("../object/keysIn");w.exports=e},{"../object/keysIn":39,"./baseFor":11}],13:[function(t,w){function e(r,n,y,i,p){if(!h(r))return r;var l=g(n)&&(m(n)||f(n)),_=l?void 0:u(n);return c(_||n,function(d,v){if(_&&(v=d,d=n[v]),a(d))i||(i=[]),p||(p=[]),o(r,n,v,e,y,i,p);else{var
`),function(h){var a=h.indexOf(":"),f=e(h.slice(0,a)).toLowerCase(),u=e(h.slice(a+1));typeof g[f]=="undefined"?g[f]=u:o(g[f])?g[f].push(u):g[f]=[g[f],u]}),g}},{"for-each":59,trim:60}],62:[function(t,w){function e(){for(var o={},m=0;m<arguments.length;m++){var g=arguments[m];for(var h in g)c.call(g,h)&&(o[h]=g[h])}return o}w.exports=e;var c=Object.prototype.hasOwnProperty},{}],63:[function(t,w,e){"use strict";function c(r){return r&&r.__esModule?r:{default:r}}function o(r,n){if(!(r instanceof n))throw new TypeError("Cannot call a class as a function")}function m(r,n){if(typeof n!="function"&&n!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof n);r.prototype=Object.create(n&&n.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),n&&(Object.setPrototypeOf?Object.setPrototypeOf(r,n):r.__proto__=n)}e.__esModule=!0;var g=t("./button.js"),h=c(g),a=t("./component.js"),f=c(a),u=function(r){function n(y,i){o(this,n),r.call(this,y,i)}return m(n,r),n.prototype.buildCSSClass=function(){return"vjs-big-play-button"},n.prototype.handleClick=function(){this.player_.play()},n}(h.default);u.prototype.controlText_="Play Video",f.default.registerComponent("BigPlayButton",u),e.default=u,w.exports=e.default},{"./button.js":64,"./component.js":67}],64:[function(t,w,e){"use strict";function c(v){if(v&&v.__esModule)return v;var s={};if(v!=null)for(var j in v)Object.prototype.hasOwnProperty.call(v,j)&&(s[j]=v[j]);return s.default=v,s}function o(v){return v&&v.__esModule?v:{default:v}}function m(v,s){if(!(v instanceof s))throw new TypeError("Cannot call a class as a function")}function g(v,s){if(typeof s!="function"&&s!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof s);v.prototype=Object.create(s&&s.prototype,{constructor:{value:v,enumerable:!1,writable:!0,configurable:!0}}),s&&(Object.setPrototypeOf?Object.setPrototypeOf(v,s):v.__proto__=s)}e.__esModule=!0;var h=t("./clickable-component.js"),a=o(h),f=t("./component"),u=o(f),r=t("./utils/events.js"),n=(c(r),t("./utils/fn.js")),y=(c(n),t("./utils/log.js")),i=o(y),p=t("global/document"),l=(o(p),t("object.assign")),_=o(l),d=function(v){function s(j,k){m(this,s),v.call(this,j,k)}return g(s,v),s.prototype.createEl=function(){var j=arguments.length<=0||arguments[0]===void 0?"button":arguments[0],k=arguments.length<=1||arguments[1]===void 0?{}:arguments[1],C=arguments.length<=2||arguments[2]===void 0?{}:arguments[2];k=_.default({className:this.buildCSSClass()},k),j!=="button"&&i.default.warn("Creating a Button with an HTML element of "+j+" is deprecated; use ClickableComponent instead."),C=_.default({type:"button","aria-live":"polite"},C);var O=u.default.prototype.createEl.call(this,j,k,C);return this.createControlTextEl(O),O},s.prototype.addChild=function(j){var k=arguments.length<=1||arguments[1]===void 0?{}:arguments[1],C=this.constructor.name;return i.default.warn("Adding an actionable (user controllable) child to a Button ("+C+") is not supported; use a ClickableComponent instead."),u.default.prototype.addChild.call(this,j,k)},s.prototype.handleKeyPress=function(j){j.which===32||j.which===13||v.prototype.handleKeyPress.call(this,j)},s}(a.default);u.default.registerComponent("Button",d),e.default=d,w.exports=e.default},{"./clickable-component.js":65,"./component":67,"./utils/events.js":133,"./utils/fn.js":134,"./utils/log.js":137,"global/document":1,"object.assign":45}],65:[function(t,w,e){"use strict";function c(k){if(k&&k.__esModule)return k;var C={};if(k!=null)for(var O in k)Object.prototype.hasOwnProperty.call(k,O)&&(C[O]=k[O]);return C.default=k,C}function o(k){return k&&k.__esModule?k:{default:k}}function m(k,C){if(!(k instanceof C))throw new TypeError("Cannot call a class as a function")}function g(k,C){if(typeof C!="function"&&C!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof C);k.prototype=Object.create(C&&C.prototype,{constructor:{value:k,enumerable:!1,writable:!0,configurable:!0}}),C&&(Object.setPrototypeOf?Object.setPrototypeOf(k,C):k
.`+K+` {
width: `+S+`px;
height: `+H+`px;
}
.`+K+`.vjs-fluid {
padding-top: `+100*J+`%;
}
`)},L.prototype.loadTech_=function(S,H){this.tech_&&this.unloadTech_(),S!=="Html5"&&this.tag&&(z.default.getTech("Html5").disposeMediaElement(this.tag),this.tag.player=null,this.tag=null),this.techName_=S,this.isReady_=!1;var W=U.default({nativeControlsForTouch:this.options_.nativeControlsForTouch,source:H,playerId:this.id(),techId:this.id()+"_"+S+"_api",textTracks:this.textTracks_,autoplay:this.options_.autoplay,preload:this.options_.preload,loop:this.options_.loop,muted:this.options_.muted,poster:this.poster(),language:this.language(),"vtt.js":this.options_["vtt.js"]},this.options_[S.toLowerCase()]);this.tag&&(W.tag=this.tag),H&&(this.currentType_=H.type,H.src===this.cache_.src&&this.cache_.currentTime>0&&(W.startTime=this.cache_.currentTime),this.cache_.src=H.src);var K=z.default.getTech(S);K||(K=a.default.getComponent(S)),this.tech_=new K(W),this.tech_.ready(d.bind(this,this.handleTechReady_),!0),ot.default.jsonToTextTracks(this.textTracksJson_||[],this.tech_),this.on(this.tech_,"loadstart",this.handleTechLoadStart_),this.on(this.tech_,"waiting",this.handleTechWaiting_),this.on(this.tech_,"canplay",this.handleTechCanPlay_),this.on(this.tech_,"canplaythrough",this.handleTechCanPlayThrough_),this.on(this.tech_,"playing",this.handleTechPlaying_),this.on(this.tech_,"ended",this.handleTechEnded_),this.on(this.tech_,"seeking",this.handleTechSeeking_),this.on(this.tech_,"seeked",this.handleTechSeeked_),this.on(this.tech_,"play",this.handleTechPlay_),this.on(this.tech_,"firstplay",this.handleTechFirstPlay_),this.on(this.tech_,"pause",this.handleTechPause_),this.on(this.tech_,"progress",this.handleTechProgress_),this.on(this.tech_,"durationchange",this.handleTechDurationChange_),this.on(this.tech_,"fullscreenchange",this.handleTechFullscreenChange_),this.on(this.tech_,"error",this.handleTechError_),this.on(this.tech_,"suspend",this.handleTechSuspend_),this.on(this.tech_,"abort",this.handleTechAbort_),this.on(this.tech_,"emptied",this.handleTechEmptied_),this.on(this.tech_,"stalled",this.handleTechStalled_),this.on(this.tech_,"loadedmetadata",this.handleTechLoadedMetaData_),this.on(this.tech_,"loadeddata",this.handleTechLoadedData_),this.on(this.tech_,"timeupdate",this.handleTechTimeUpdate_),this.on(this.tech_,"ratechange",this.handleTechRateChange_),this.on(this.tech_,"volumechange",this.handleTechVolumeChange_),this.on(this.tech_,"texttrackchange",this.handleTechTextTrackChange_),this.on(this.tech_,"loadedmetadata",this.updateStyleEl_),this.on(this.tech_,"posterchange",this.handleTechPosterChange_),this.usingNativeControls(this.techGet_("controls")),this.controls()&&!this.usingNativeControls()&&this.addTechControlsListeners_(),this.tech_.el().parentNode===this.el()||S==="Html5"&&this.tag||l.insertElFirst(this.tech_.el(),this.el()),this.tag&&(this.tag.player=null,this.tag=null)},L.prototype.unloadTech_=function(){this.textTracks_=this.textTracks(),this.textTracksJson_=ot.default.textTracksToJson(this.tech_),this.isReady_=!1,this.tech_.dispose(),this.tech_=!1},L.prototype.tech=function(S){if(S&&S.IWillNotUseThisInPlugins)return this.tech_;var H=`
Please make sure that you are not using this inside of a plugin.
To disable this alert and error, please pass in an object with
\`IWillNotUseThisInPlugins\` to the \`tech\` method. See
https://github.com/videojs/video.js/issues/2617 for more info.
`;throw n.default.alert(H),new Error(H)},L.prototype.addTechControlsListeners_=function(){this.removeTechControlsListeners_(),this.on(this.tech_,"mousedown",this.handleTechClick_),this.on(this.tech_,"touchstart",this.handleTechTouchStart_),this.on(this.tech_,"touchmove",this.handleTechTouchMove_),this.on(this.tech_,"touchend",this.handleTechTouchEnd_),this.on(this.tech_,"tap",this.handleTechTap_)},L.prototype.removeTechControlsListeners_=function(){this.off(this.tech_,"tap",this.handleTechTap_),this.off(this.tech_,"touchstart",this.handleTechTouchStart_),this.off(this.tech_,"touchmove",this.handleTechTouchMove_),this.off(this.tech_,"touchend",this.handleTechTouchEnd_),this.off(this.tech_,"mousedown",this.handleTechClick_)},L.prototype.handleTechReady_=function(){this.triggerReady(),this.cache_.volume&&this.techCall_("setVolume",this.cache_.volume),this.handleTechPosterChange_(),this.handleTechDurationChange_(),this.src()&&this.tag&&this.options_.autoplay&&this.paused()&&(delete this.tag.poster,this.play())},L.prototype.handleTechLoadStart_=function(){this.removeClass("vjs-ended"),this.error(null),this.paused()?(this.hasStarted(!1),this.trigger("loadstart")):(this.trigger("loadstart"),this.trigger("firstplay"))},L.prototype.hasStarted=function(S){return S!==void 0?(this.hasStarted_!==S&&(this.hasStarted_=S,S?(this.addClass("vjs-has-started"),this.trigger("firstplay")):this.removeClass("vjs-has-started")),this):!!this.hasStarted_},L.prototype.handleTechPlay_=function(){this.removeClass("vjs-ended"),this.removeClass("vjs-paused"),this.addClass("vjs-playing"),this.hasStarted(!0),this.trigger("play")},L.prototype.handleTechWaiting_=function(){var S=this;this.addClass("vjs-waiting"),this.trigger("waiting"),this.one("timeupdate",function(){return S.removeClass("vjs-waiting")})},L.prototype.handleTechCanPlay_=function(){this.removeClass("vjs-waiting"),this.trigger("canplay")},L.prototype.handleTechCanPlayThrough_=function(){this.removeClass("vjs-waiting"),this.trigger("canplaythrough")},L.prototype.handleTechPlaying_=function(){this.removeClass("vjs-waiting"),this.trigger("playing")},L.prototype.handleTechSeeking_=function(){this.addClass("vjs-seeking"),this.trigger("seeking")},L.prototype.handleTechSeeked_=function(){this.removeClass("vjs-seeking"),this.trigger("seeked")},L.prototype.handleTechFirstPlay_=function(){this.options_.starttime&&this.currentTime(this.options_.starttime),this.addClass("vjs-has-started"),this.trigger("firstplay")},L.prototype.handleTechPause_=function(){this.removeClass("vjs-playing"),this.addClass("vjs-paused"),this.trigger("pause")},L.prototype.handleTechProgress_=function(){this.trigger("progress")},L.prototype.handleTechEnded_=function(){this.addClass("vjs-ended"),this.options_.loop?(this.currentTime(0),this.play()):this.paused()||this.pause(),this.trigger("ended")},L.prototype.handleTechDurationChange_=function(){this.duration(this.techGet_("duration"))},L.prototype.handleTechClick_=function(S){S.button===0&&this.controls()&&(this.paused()?this.play():this.pause())},L.prototype.handleTechTap_=function(){this.userActive(!this.userActive())},L.prototype.handleTechTouchStart_=function(){this.userWasActive=this.userActive()},L.prototype.handleTechTouchMove_=function(){this.userWasActive&&this.reportUserActivity()},L.prototype.handleTechTouchEnd_=function(S){S.preventDefault()},L.prototype.handleFullscreenChange_=function(){this.isFullscreen()?this.addClass("vjs-fullscreen"):this.removeClass("vjs-fullscreen")},L.prototype.handleStageClick_=function(){this.reportUserActivity()},L.prototype.handleTechFullscreenChange_=function(S,H){H&&this.isFullscreen(H.isFullscreen),this.trigger("fullscreenchange")},L.prototype.handleTechError_=function(){var S=this.tech_.error();this.error(S&&S.code)},L.prototype.handleTechSuspend_=function(){this.trigger("suspend")},L.prototype.handleTechAbort_=function(){this.trigger("abort")},L.prototype.handleTechEmptied_=function(){this.trigger("emptied")},L.prototype.handleTechStalled_=function(){this.trigger("stalled")},L.prototype.handleTechLoadedMetaData_=function(){this
<div class="vjs-tracksettings-colors">
<div class="vjs-fg-color vjs-tracksetting">
<label class="vjs-label">Foreground</label>
<select>
<option value="">---</option>
<option value="#FFF">White</option>
<option value="#000">Black</option>
<option value="#F00">Red</option>
<option value="#0F0">Green</option>
<option value="#00F">Blue</option>
<option value="#FF0">Yellow</option>
<option value="#F0F">Magenta</option>
<option value="#0FF">Cyan</option>
</select>
<span class="vjs-text-opacity vjs-opacity">
<select>
<option value="">---</option>
<option value="1">Opaque</option>
<option value="0.5">Semi-Opaque</option>
</select>
</span>
</div> <!-- vjs-fg-color -->
<div class="vjs-bg-color vjs-tracksetting">
<label class="vjs-label">Background</label>
<select>
<option value="">---</option>
<option value="#FFF">White</option>
<option value="#000">Black</option>
<option value="#F00">Red</option>
<option value="#0F0">Green</option>
<option value="#00F">Blue</option>
<option value="#FF0">Yellow</option>
<option value="#F0F">Magenta</option>
<option value="#0FF">Cyan</option>
</select>
<span class="vjs-bg-opacity vjs-opacity">
<select>
<option value="">---</option>
<option value="1">Opaque</option>
<option value="0.5">Semi-Transparent</option>
<option value="0">Transparent</option>
</select>
</span>
</div> <!-- vjs-bg-color -->
<div class="window-color vjs-tracksetting">
<label class="vjs-label">Window</label>
<select>
<option value="">---</option>
<option value="#FFF">White</option>
<option value="#000">Black</option>
<option value="#F00">Red</option>
<option value="#0F0">Green</option>
<option value="#00F">Blue</option>
<option value="#FF0">Yellow</option>
<option value="#F0F">Magenta</option>
<option value="#0FF">Cyan</option>
</select>
<span class="vjs-window-opacity vjs-opacity">
<select>
<option value="">---</option>
<option value="1">Opaque</option>
<option value="0.5">Semi-Transparent</option>
<option value="0">Transparent</option>
</select>
</span>
</div> <!-- vjs-window-color -->
</div> <!-- vjs-tracksettings -->
<div class="vjs-tracksettings-font">
<div class="vjs-font-percent vjs-tracksetting">
<label class="vjs-label">Font Size</label>
<select>
<option value="0.50">50%</option>
<option value="0.75">75%</option>
<option value="1.00" selected>100%</option>
<option value="1.25">125%</option>
<option value="1.50">150%</option>
<option value="1.75">175%</option>
<option value="2.00">200%</option>
<option value="3.00">300%</option>
<option value="4.00">400%</option>
</select>
</div> <!-- vjs-font-percent -->
<div class="vjs-edge-style vjs-tracksetting">
<label class="vjs-label">Text Edge Style</label>
<select>
<option value="none">None</option>
<option value="raised">Raised</option>
<option value="depressed">Depressed</option>
<option value="uniform">Uniform</option>
<option value="dropshadow">Dropshadow</option>
</select>
</div> <!-- vjs-edge-style -->
<div class="vjs-font-family vjs-tracksetting">
<label class="vjs-label">Font Family</label>
<select>
<option value="">Default</option>
<option value="monospaceSerif">Monospace Serif</option>
<option value="proportionalSerif">Proportional Serif</option>
<option value="monospaceSansSerif">Monospace Sans-Serif</option>
<option value="proportionalSansSerif">Proportional Sans-Serif</option>
<option value="casual">Casual</option>
<option value="script">Script</option>
<option value="small-caps">Small Caps</option>
</select>
</div> <!-- vjs-font-family -->
</div>
</div>
<div class="vjs-tracksettings-controls">
<button class="vjs-default-button">Defaults</button>
<button class="vjs-done-button">Done</button>
</div>`;return C}e.__esModule=!0;var u=t("../component"),r=o(u),n=t("../utils/events.js"),y=c(n),i=t("../utils/fn.js"),p=c(i),l=t("../utils/log.js"),_=o(l),d=t("safe-json-parse/tuple"),v=o(d),s=t("global/window"),j=o(s),k=function(C){function O(b,T){m(this,O),C.call(this,b,T),this.hide(),T.persistTextTrackSettings===void 0&&(this.options_.persistTextTrackSettings=this.options_.playerOptions.persistTextTrackSettings),y.on(this.$(".vjs-done-button"),"click",p.bind(this,function(){this.saveSettings(),this.hide()})),y.on(this.$(".vjs-default-button"),"click",p.bind(this,function(){this.$(".vjs-fg-color > select").selectedIndex=0,this.$(".vjs-bg-color > select").selectedIndex=0,this.$(".window-color > select").selectedIndex=0,this.$(".vjs-text-opacity > select").selectedIndex=0,this.$(".vjs-bg-opacity > select").selectedIndex=0,this.$(".vjs-window-opacity > select").selectedIndex=0,this.$(".vjs-edge-style select").selectedIndex=0,this.$(".vjs-font-family select").selectedIndex=0,this.$(".vjs-font-percent select").selectedIndex=2,this.updateDisplay()})),y.on(this.$(".vjs-fg-color > select"),"change",p.bind(this,this.updateDisplay)),y.on(this.$(".vjs-bg-color > select"),"change",p.bind(this,this.updateDisplay)),y.on(this.$(".window-color > select"),"change",p.bind(this,this.updateDisplay)),y.on(this.$(".vjs-text-opacity > select"),"change",p.bind(this,this.updateDisplay)),y.on(this.$(".vjs-bg-opacity > select"),"change",p.bind(this,this.updateDisplay)),y.on(this.$(".vjs-window-opacity > select"),"change",p.bind(this,this.updateDisplay)),y.on(this.$(".vjs-font-percent select"),"change",p.bind(this,this.updateDisplay)),y.on(this.$(".vjs-edge-style select"),"change",p.bind(this,this.updateDisplay)),y.on(this.$(".vjs-font-family select"),"change",p.bind(this,this.updateDisplay)),this.options_.persistTextTrackSettings&&this.restoreSettings()}return g(O,C),O.prototype.createEl=function(){return C.prototype.createEl.call(this,"div",{className:"vjs-caption-settings vjs-modal-overlay",innerHTML:f()})},O.prototype.getValues=function(){var b=h(this.$(".vjs-edge-style select")),T=h(this.$(".vjs-font-family select")),P=h(this.$(".vjs-fg-color > select")),D=h(this.$(".vjs-text-opacity > select")),F=h(this.$(".vjs-bg-color > select")),N=h(this.$(".vjs-bg-opacity > select")),A=h(this.$(".window-color > select")),I=h(this.$(".vjs-window-opacity > select")),R=j.default.parseFloat(h(this.$(".vjs-font-percent > select"))),E={backgroundOpacity:N,textOpacity:D,windowOpacity:I,edgeStyle:b,fontFamily:T,color:P,backgroundColor:F,windowColor:A,fontPercent:R};for(var x in E)(E[x]===""||E[x]==="none"||x==="fontPercent"&&E[x]===1)&&delete E[x];return E},O.prototype.setValues=function(b){a(this.$(".vjs-edge-style select"),b.edgeStyle),a(this.$(".vjs-font-family select"),b.fontFamily),a(this.$(".vjs-fg-color > select"),b.color),a(this.$(".vjs-text-opacity > select"),b.textOpacity),a(this.$(".vjs-bg-color > select"),b.backgroundColor),a(this.$(".vjs-bg-opacity > select"),b.backgroundOpacity),a(this.$(".window-color > select"),b.windowColor),a(this.$(".vjs-window-opacity > select"),b.windowOpacity);var T=b.fontPercent;T&&(T=T.toFixed(2)),a(this.$(".vjs-font-percent > select"),T)},O.prototype.restoreSettings=function(){var b=void 0,T=void 0;try{var P=v.default(j.default.localStorage.getItem("vjs-text-track-settings"));b=P[0],T=P[1],b&&_.default.error(b)}catch(D){_.default.warn(D)}T&&this.setValues(T)},O.prototype.saveSettings=function(){if(this.options_.persistTextTrackSettings){var b=this.getValues();try{Object.getOwnPropertyNames(b).length>0?j.default.localStorage.setItem("vjs-text-track-settings",JSON.stringify(b)):j.default.localStorage.removeItem("vjs-text-track-settings")}catch(T){_.default.warn(T)}}},O.prototype.updateDisplay=function(){var b=this.player_.getChild("textTrackDisplay");b&&b.updateDisplay()},O}(r.default);r.default.registerComponent("TextTrackSettings",k),e.default=k,w.exports=e.default},{"../component":67,"../utils/events.js":133,"../utils/fn.js":134,"../utils/log.js":137,"global/window":2,"safe-json-parse/tuple":54}],128:[function(t,
has been deprecated. Use the third argument instead.
createEl(type, properties, attributes). Attempting to set `," to ","."],[`Setting attributes in the second argument of createEl()
has been deprecated. Use the third argument instead.
createEl(type, properties, attributes). Attempting to set `," to ","."]),E=t("global/document"),x=o(E),M=t("global/window"),$=o(M),U=t("./guid.js"),X=c(U),Z=t("./log.js"),rt=o(Z),ot=t("tsml"),at=o(ot),ct={},st="vdata"+new Date().getTime(),dt=f("querySelector");e.$=dt;var ft=f("querySelectorAll");e.$$=ft},{"./guid.js":136,"./log.js":137,"global/document":1,"global/window":2,tsml:55}],133:[function(t,w,e){"use strict";function c(s){return s&&s.__esModule?s:{default:s}}function o(s){if(s&&s.__esModule)return s;var j={};if(s!=null)for(var k in s)Object.prototype.hasOwnProperty.call(s,k)&&(j[k]=s[k]);return j.default=s,j}function m(s,j,k){if(Array.isArray(j))return r(m,s,j,k);var C=y.getElData(s);C.handlers||(C.handlers={}),C.handlers[j]||(C.handlers[j]=[]),k.guid||(k.guid=p.newGUID()),C.handlers[j].push(k),C.dispatcher||(C.disabled=!1,C.dispatcher=function(O,b){if(!C.disabled){O=f(O);var T=C.handlers[O.type];if(T)for(var P=T.slice(0),D=0,F=P.length;F>D&&!O.isImmediatePropagationStopped();D++)P[D].call(s,O,b)}}),C.handlers[j].length===1&&(s.addEventListener?s.addEventListener(j,C.dispatcher,!1):s.attachEvent&&s.attachEvent("on"+j,C.dispatcher))}function g(s,j,k){if(y.hasElData(s)){var C=y.getElData(s);if(C.handlers){if(Array.isArray(j))return r(g,s,j,k);var O=function(D){C.handlers[D]=[],u(s,D)};if(j){var b=C.handlers[j];if(b){if(!k)return void O(j);if(k.guid)for(var T=0;T<b.length;T++)b[T].guid===k.guid&&b.splice(T--,1);u(s,j)}}else for(var P in C.handlers)O(P)}}}function h(s,j,k){var C=y.hasElData(s)?y.getElData(s):{},O=s.parentNode||s.ownerDocument;if(typeof j=="string"&&(j={type:j,target:s}),j=f(j),C.dispatcher&&C.dispatcher.call(s,j,k),O&&!j.isPropagationStopped()&&j.bubbles===!0)h.call(null,O,j,k);else if(!O&&!j.defaultPrevented){var b=y.getElData(j.target);j.target[j.type]&&(b.disabled=!0,typeof j.target[j.type]=="function"&&j.target[j.type](),b.disabled=!1)}return!j.defaultPrevented}function a(s,j,k){if(Array.isArray(j))return r(a,s,j,k);var C=function O(){g(s,j,O),k.apply(this,arguments)};C.guid=k.guid=k.guid||p.newGUID(),m(s,j,C)}function f(s){function j(){return!0}function k(){return!1}if(!s||!s.isPropagationStopped){var C=s||_.default.event;s={};for(var O in C)O!=="layerX"&&O!=="layerY"&&O!=="keyLocation"&&O!=="webkitMovementX"&&O!=="webkitMovementY"&&(O==="returnValue"&&C.preventDefault||(s[O]=C[O]));if(s.target||(s.target=s.srcElement||v.default),s.relatedTarget||(s.relatedTarget=s.fromElement===s.target?s.toElement:s.fromElement),s.preventDefault=function(){C.preventDefault&&C.preventDefault(),s.returnValue=!1,C.returnValue=!1,s.defaultPrevented=!0},s.defaultPrevented=!1,s.stopPropagation=function(){C.stopPropagation&&C.stopPropagation(),s.cancelBubble=!0,C.cancelBubble=!0,s.isPropagationStopped=j},s.isPropagationStopped=k,s.stopImmediatePropagation=function(){C.stopImmediatePropagation&&C.stopImmediatePropagation(),s.isImmediatePropagationStopped=j,s.stopPropagation()},s.isImmediatePropagationStopped=k,s.clientX!=null){var b=v.default.documentElement,T=v.default.body;s.pageX=s.clientX+(b&&b.scrollLeft||T&&T.scrollLeft||0)-(b&&b.clientLeft||T&&T.clientLeft||0),s.pageY=s.clientY+(b&&b.scrollTop||T&&T.scrollTop||0)-(b&&b.clientTop||T&&T.clientTop||0)}s.which=s.charCode||s.keyCode,s.button!=null&&(s.button=1&s.button?0:4&s.button?1:2&s.button?2:0)}return s}function u(s,j){var k=y.getElData(s);k.handlers[j].length===0&&(delete k.handlers[j],s.removeEventListener?s.removeEventListener(j,k.dispatcher,!1):s.detachEvent&&s.detachEvent("on"+j,k.dispatcher)),Object.getOwnPropertyNames(k.handlers).length<=0&&(delete k.handlers,delete k.dispatcher,delete k.disabled),Object.getOwnPropertyNames(k).length===0&&y.removeElData(s)}function r(s,j,k,C){k.forEach(function(O){s(j,O,C)})}e.__esModule=!0,e.on=m,e.off=g,e.trigger=h,e.one=a,e.fixEvent=f;var n=t("./dom.js"),y=o(n),i=t("./guid.js"),p=o(i),l=t("global/window"),_=c(l),d=t("global/document"),v=c(d)},{"./dom.js":132,"./guid.js":136,"global/document":1,"global/window":2}],134:[function(t,w,e){"use strict";e.__esModule=!0;var c=t("./guid.js"),o=function(m,g,h){
.video-js {
width: 300px;
height: 150px;
}
.vjs-fluid {
padding-top: 56.25%
}
`)}a.autoSetupTimeout(1,q),q.VERSION="5.8.7",q.options=d.default.prototype.options_,q.getPlayers=function(){return d.default.players},q.players=ct.default(d.default.players,{get:"Access to videojs.players is deprecated; use videojs.getPlayers instead",set:"Modification of videojs.players is deprecated"}),q.getComponent=n.default.getComponent,q.registerComponent=function(z,et){B.default.isTech(et)&&I.default.warn("The "+z+" tech was registered as a component. It should instead be registered using videojs.registerTech(name, tech)"),n.default.registerComponent.call(n.default,z,et)},q.getTech=B.default.getTech,q.registerTech=B.default.registerTech,q.browser=M,q.TOUCH_ENABLED=M.TOUCH_ENABLED,q.extend=Z.default,q.mergeOptions=k.default,q.bind=O.bind,q.plugin=s.default,q.addLanguage=function(z,et){var Q;return z=(""+z).toLowerCase(),ot.default(q.options.languages,(Q={},Q[z]=et,Q))[z]},q.log=I.default,q.createTimeRange=q.createTimeRanges=D.createTimeRanges,q.formatTime=N.default,q.parseUrl=U.parseUrl,q.isCrossOrigin=U.isCrossOrigin,q.EventTarget=i.default,q.on=l.on,q.one=l.one,q.off=l.off,q.trigger=l.trigger,q.xhr=dt.default,q.TextTrack=T.default,q.isEl=E.isEl,q.isTextNode=E.isTextNode,q.createEl=E.createEl,q.hasClass=E.hasElClass,q.addClass=E.addElClass,q.removeClass=E.removeElClass,q.toggleClass=E.toggleElClass,q.setAttributes=E.setElAttributes,q.getAttributes=E.getElAttributes,q.emptyEl=E.emptyEl,q.appendContent=E.appendContent,q.insertContent=E.insertContent,typeof yt=="function"&&yt.amd?yt("videojs",[],function(){return q}):typeof e=="object"&&typeof w=="object"&&(w.exports=q),e.default=q,w.exports=e.default},{"../../src/js/utils/merge-options.js":138,"./component":67,"./event-target":99,"./extend.js":100,"./player":108,"./plugins.js":109,"./setup":113,"./tech/flash.js":116,"./tech/html5.js":117,"./tech/tech.js":119,"./tracks/text-track.js":128,"./utils/browser.js":129,"./utils/create-deprecation-proxy.js":131,"./utils/dom.js":132,"./utils/events.js":133,"./utils/fn.js":134,"./utils/format-time.js":135,"./utils/log.js":137,"./utils/stylesheet.js":139,"./utils/time-ranges.js":140,"./utils/url.js":142,"global/document":1,"lodash-compat/object/merge":40,"object.assign":45,xhr:56}]},{},[143])(143)});