'),this.$handle=t('
'),this.$range=t('').insertAfter(this.$element).prepend(this.$fill,this.$handle),this.$element.css({position:"absolute",width:"1px",height:"1px",overflow:"hidden",opacity:"0"}),this.handleDown=t.proxy(this.handleDown,this),this.handleMove=t.proxy(this.handleMove,this),this.handleEnd=t.proxy(this.handleEnd,this),this.init();var n=this;this.$window.on("resize."+this.identifier,function(t,i){return i=i||100,function(){if(!t.debouncing){var e=Array.prototype.slice.apply(arguments);t.lastReturnVal=t.apply(window,e),t.debouncing=!0}return clearTimeout(t.debounceTimeout),t.debounceTimeout=setTimeout((function(){t.debouncing=!1}),i),t.lastReturnVal}}((function(){!function(t,i){var e=Array.prototype.slice.call(arguments,2);setTimeout((function(){return t.apply(null,e)}),i)}((function(){n.update()}),300)}),20)),this.$document.on(this.startEvent,"#"+this.identifier+":not(."+this.options.disabledClass+")",this.handleDown),this.$element.on("change."+this.identifier,(function(t,i){if(!i||i.origin!==n.identifier){var e=t.target.value,o=n.getPositionFromValue(e);n.setPosition(o)}}))}Number.isNaN=Number.isNaN||function(t){return"number"==typeof t&&t!=t};var h="rangeslider",a=0,l=function(){var t=document.createElement("input");return t.setAttribute("type","range"),"text"!==t.type}(),d={polyfill:!0,orientation:"horizontal",rangeClass:"rangeslider",disabledClass:"rangeslider--disabled",horizontalClass:"rangeslider--horizontal",verticalClass:"rangeslider--vertical",fillClass:"rangeslider__fill",handleClass:"rangeslider__handle",startEvent:["mousedown","touchstart","pointerdown"],moveEvent:["mousemove","touchmove","pointermove"],endEvent:["mouseup","touchend","pointerup"]},u={orientation:{horizontal:{dimension:"width",direction:"left",directionStyle:"left",coordinate:"x"},vertical:{dimension:"height",direction:"top",directionStyle:"bottom",coordinate:"y"}}};r.prototype.init=function(){this.update(!0,!1),this.$element[0].value=this.value,this.onInit&&"function"==typeof this.onInit&&this.onInit()},r.prototype.update=function(t,i){(t=t||!1)&&(this.min=o(this.$element[0].getAttribute("min"),0),this.max=o(this.$element[0].getAttribute("max"),100),this.value=o(this.$element[0].value,this.min+(this.max-this.min)/2),this.step=o(this.$element[0].getAttribute("step"),1)),this.handleDimension=n(this.$handle[0],"offset"+s(this.DIMENSION)),this.rangeDimension=n(this.$range[0],"offset"+s(this.DIMENSION)),this.maxHandlePos=this.rangeDimension-this.handleDimension,this.grabPos=this.handleDimension/2,this.position=this.getPositionFromValue(this.value),this.$element[0].disabled?this.$range.addClass(this.options.disabledClass):this.$range.removeClass(this.options.disabledClass),this.setPosition(this.position,i)},r.prototype.handleDown=function(t){if(t.preventDefault(),this.$document.on(this.moveEvent,this.handleMove),this.$document.on(this.endEvent,this.handleEnd),!((" "+t.target.className+" ").replace(/[\n\t]/g," ").indexOf(this.options.handleClass)>-1)){var i=this.getRelativePosition(t),e=this.$range[0].getBoundingClientRect()[this.DIRECTION],n=this.getPositionFromNode(this.$handle[0])-e,o="vertical"===this.orientation?this.maxHandlePos-(i-this.grabPos):i-this.grabPos;this.setPosition(o),i>=n&&i