1import{t as e}from"./jquery-Bm4s5dU1.js";var t=function(){};t.prototype.formatTime=function(e){var t=new Date(e*1e3);return[[(`0`+t.getUTCHours()).slice(-2),(`0`+t.getUTCMinutes()).slice(-2),(`0`+t.getUTCSeconds()).slice(-2)].join(`:`),(`000`+t.getUTCMilliseconds()).slice(-3)].join(`.`)},t.prototype.parseTime=function(e){if(!e)return null;var t=e.split(`.`),n=Date.parse([`1 january 1970`,t[0],`UTC`].join(` `));if(/^[0-9]{2}:[0-9]{2}:[0-9]{2}(\.[0-9]{1,3})?$/.test(e)&&!isNaN(n)){var r=new Date(n);return t[1]!==void 0&&r.setMilliseconds(t[1]),r.getTime()/1e3}return null};var n=new t,r=function(e,t){this.options=null,this.$slider=null,this.$text=null,this.init(e,t)};r.DEFAULTS={slider:`.js--slider`,sliderMax:10,sliderOptions:{step:.001,range:`min`},text:`.js--text`},r.prototype.getDefaults=function(){return r.DEFAULTS},r.prototype.getOptions=function(t){return t=e.extend(!0,{},this.getDefaults(),this.$element.data(),t),t.sliderOptions.max=t.sliderMax,t},r.prototype.init=function(t,n){this.$element=e(t),this.options=this.getOptions(n),this.$slider=this.$element.find(this.options.slider),this.$text=this.$element.find(this.options.text),this.$slider.slider(this.options.sliderOptions),this.$slider.on(`slide`,e.proxy(this.onSlide,this)),this.$text.on(`blur`,e.proxy(this.onBlur,this)),this.setFromText(),e(`.ui-slider-handle`).append(e(`.handle-slider`)),e(`.handle-slider`).last().show()},r.prototype.onSlide=function(e,t){this.setText(t.value)},r.prototype.setText=function(e){this.$text.val(n.formatTime(e))},r.prototype.setFromText=function(){var t=n.parseTime(this.$text.val());if(t===null)this.setOption(`value`,0),this.onSlide(e.Event(`noop`),{value:0});else{this.setOption(`value`,t);var r=this.getOption(`slide`);r&&r(e.Event(`noop`),{value:t})}},r.prototype.onBlur=r.prototype.setFromText,r.prototype.setOption=function(e,t){this.$slider.slider(`option`,e,t)},r.prototype.getOption=function(e){return this.$slider.slider(`option`,e)},r.prototype.changeTime=function(e,t,n=.1){n=parseFloat(n),e=parseFloat(e);let r=this.getOption(`value`)+n,i=this.$element.selector===`.js--startTime-slider`;r<=0?(this.setOption(`value`,0),this.setText(0),i&&t.seek(0)):r>=e?(this.setOption(`value`,e),this.setText(e),i&&t.seek(e)):(this.setOption(`value`,r),this.setText(r),i&&t.seek(r))};export{r as t};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.