!function(c){c.widget("ui.labeledslider",c.ui.slider,{version:"@VERSION",options:{tickInterval:0,tweenLabels:!0,tickLabels:null,tickArray:[]},uiSlider:null,tickInterval:0,tweenLabels:!0,_create(){this._detectOrientation(),this.uiSlider=this.element.wrap('<div class="ui-slider-wrapper ui-widget"></div>').before('<div class="ui-slider-labels"></div>').parent().addClass(this.orientation).css("font-size",this.element.css("font-size")),this._super(),this.element.removeClass("ui-widget"),this._alignWithStep(),"horizontal"==this.orientation?this.uiSlider.width(this.element.css("width")):this.uiSlider.height(this.element.css("height")),this._drawLabels()},_drawLabels(){let i=this.options.tickLabels||{},t=this.uiSlider.children(".ui-slider-labels"),e="horizontal"==this.orientation?"left":"bottom",s=this.options.min,l=this.options.max,a=this.tickInterval,n=l-s,r=this.options.tickArray,h=0<r.length,o,d=0;for(t.html("");d<=n;d++)(!h&&d%a==0||h&&-1<r.indexOf(d+s))&&(o=i[d+s]?i[d+s]:this.options.tweenLabels?d+s:"",c("<div>").addClass("ui-slider-label-ticks ult-slider-ticks"+(d+1)).css(e,Math.round(d/n*1e4)/100+"%").html("<span>"+o+"</span>").appendTo(t))},_setOption(i,t){switch(this._super(i,t),i){case"tickInterval":case"tickLabels":case"tickArray":case"min":case"max":case"step":this._alignWithStep(),this._drawLabels();break;case"orientation":this.element.removeClass("horizontal vertical").addClass(this.orientation),this._drawLabels()}},_alignWithStep(){this.options.tickInterval<this.options.step?this.tickInterval=this.options.step:this.tickInterval=this.options.tickInterval},_destroy(){this._super(),this.uiSlider.replaceWith(this.element)},widget(){return this.uiSlider}})}(jQuery);