text: /*! uiSlider - v1.0.2 - 2015-03-16 */
  var uiSlider=function(){var a=function(a){function b(a,b){this.$el=null,this._ID=a,this._selectorsMapping=null,this._globalSelectors=null,this._styles={},this._options={extension:{},reference:"body"},this._init(b)}return b.prototype={initOptions:function(){},initStyles:function(){},initEvents:function(){},createSubElements:function(){},afterInit:function(){},appendTo:function(b){b&&(b instanceof String&&(b=a(b)),this.$el.appendTo(b))},show:function(){this.$el.show()},hide:function(){this.$el.hide()},setOptions:function(){for(var a in arguments)arguments.hasOwnProperty(a)&&this._extendObject(this._options,arguments[a])},setStyles:function(){for(var a in arguments)arguments.hasOwnProperty(a)&&this._extendObject(this._styles,arguments[a])},_init:function(a){this.initOptions(a),this.initStyles(this._options.extension),this._createElement(),this._createStyleTag(),this.initEvents(),this.afterInit()},_createElement:function(){var b=a("#"+this._ID);b.length>0&&(b.remove(),console.log("Container ID already in use and thus has been removed.")),this.$el=a("<div/>").attr("id",this._ID),this.createSubElements()},_createStyleTag:function(){var b=this._ID+"-style";a("#"+b).remove();var c,d,e,f,g,h=a("<style/>").attr("id",b);for(e in this._styles)this._styles.hasOwnProperty(e)&&(f=this._styles[e],d=this._selectorsMapping&&this._selectorsMapping[e],g=this._globalSelectors&&this._globalSelectors[e],c=g?"":"#"+this._ID,"main"!=e&&(c+=" "+(d||"."+e)),h.append(c+" {"+this._styleObjectToString(f)+"}"));a("head").append(h)},_extendObject:function(a,b){if(b)for(var c in b)b.hasOwnProperty(c)&&(a[c]&&a[c]instanceof Object&&!(a[c]instanceof Array)?this._extendObject(a[c],b[c]):a[c]=b[c])},_styleObjectToString:function(a){var b=[];for(var c in a)a.hasOwnProperty(c)&&b.push(c+":"+a[c]+";");return b.join("")}},b}(jQuery),b=function(a,b){function c(a,c){this._sliding=!1,this._mousezero=0,b.call(this,a,c)}function d(a){var b=Math.floor(10*i.call(this,a))/10;return this.slider_output.text(b),this._options.callback&&this._options.callback(a,b),b}function e(b){return a(b.target).is(this.slider_output)?!0:(this.slider_handler.css("left",j.call(this,b,-(this.slider_handler.width()/2))),f.call(this,b),!1)}function f(a){return this._mousezero=this.slider_handler.position().left-k.call(this,a.pageX),this._sliding=!0,h.call(this,a),!1}function g(){return this._sliding=!1,!1}function h(a){return this._sliding&&this.setSliderPerc(j.call(this,a)/l.call(this)),!1}function i(a){var b=this._options.minValue,c=this._options.maxValue,d=this._options.stepValue;return Math.round((b+a*(c-b))/d)*d}function j(a,b){b&&(this._mousezero=b);var c,d=l.call(this);c=k.call(this,a.pageX)+this._mousezero,c=0>c?0:c>d?d:c;var e=this._options.stepValue/(this._options.maxValue-this._options.minValue)*d;return c=Math.floor((c+e/2)/e)*e}function k(a){return a-this.$el.offset().left}function l(){return this.$el.width()-this.slider_handler.width()}return c.prototype=Object.create(b.prototype),c.prototype.initOptions=function(a){this.setOptions({minValue:0,maxValue:100,initialValue:100,stepValue:1,callback:null},a);var b=this._options;b.maxValue<=b.minValue&&(b.maxValue=b.minValue+b.stepValue),b.initialValue<=b.minValue&&(b.initialValue=b.minValue),b.initialValue>=b.maxValue&&(b.initialValue=b.maxValue)},c.prototype.initStyles=function(a){this.setStyles({main:{position:"relative",width:"100px",height:"20px",background:"rgba(100,100,100,.4)"},slider_bar:{position:"absolute",width:"100%",height:"3px",background:"rgb(200,200,200)",top:"9px"},slider_handler:{position:"absolute",width:"10px",height:"20px",background:"rgb(100,100,100)",top:"0",left:"0"},slider_output:{position:"absolute",width:"34px",height:"20px",background:"#fff",top:"0",right:"-34px","text-indent":"0","text-align":"center","font-size":"12px","line-height":"20px",cursor:"default"}},a)},c.prototype.createSubElements=function(){this.$el.addClass("slider"),this.slider_bar=a("<div/>").addClass("slider_bar"),this.slider_handler=a("<div/>").addClass("slider_handler"),this.slider_output=a("<div/>").addClass("slider_output"),this.$el.append(this.slider_bar).append(this.slider_handler).append(this.slider_output)},c.prototype.initEvents=function(){var b=".slider_"+this._ID;this.$el.off(b).on("mousedown"+b,e.bind(this)).on("mousedown"+b,".slider_handler",f.bind(this)),a("body").off(b).on("mousemove"+b,h.bind(this)).on("mouseup"+b,g.bind(this))},c.prototype.afterInit=function(){this.setSliderVal(this._options.initialValue)},c.prototype.setSliderVal=function(a){var b=(a-this._options.minValue)/(this._options.maxValue-this._options.minValue);this.setSliderPerc(b)},c.prototype.setSliderPerc=function(a){var b=a*l.call(this);this.slider_handler.css("left",b),d.call(this,a)},c.prototype.getSliderVal=function(){return d.call(this,this.getSliderPerc())},c.prototype.getSliderPerc=function(){var a=this.slider_handler.css("left").replace("px","");return a/l.call(this)},c}(jQuery,a);return b}();