!function(n){"function"==typeof define&&define.amd?define([],n):"object"==typeof exports?module.exports=n():window.noUiSlider=n()}(function(){"use strict";function u(n,i){var r=document.createElement("div");return t(r,i),n.appendChild(r),r}function r(n){return"number"==typeof n&&!isNaN(n)&&isFinite(n)}function c(n,i,r){r>0&&(t(n,i),setTimeout(function(){f(n,i)},r))}function o(n){return Array.isArray(n)?n:[n]}function p(n){var t=(n=String(n)).split(".");return t.length>1?t[1].length:0}function t(n,t){n.classList?n.classList.add(t):n.className+=" "+t}function f(n,t){n.classList?n.classList.remove(t):n.className=n.className.replace(new RegExp("(^|\\b)"+t.split(" ").join("|")+"(\\b|$)","gi")," ")}function l(){var n=void 0!==window.pageXOffset,t="CSS1Compat"===(document.compatMode||"");return{x:n?window.pageXOffset:t?document.documentElement.scrollLeft:document.body.scrollLeft,y:n?window.pageYOffset:t?document.documentElement.scrollTop:document.body.scrollTop}}function s(n,t){return 100/(t-n)}function h(n,t){return 100*t/(n[1]-n[0])}function e(n,t){for(var i=1;n>=t[i];)i+=1;return i}function w(n,t,i){if(i>=n.slice(-1)[0])return 100;var f,o,u,c,r=e(i,n);return f=n[r-1],o=n[r],u=t[r-1],c=t[r],u+function(n,t){return h(n,n[0]<0?t+Math.abs(n[0]):t-n[0])}([f,o],i)/s(u,c)}function b(n,t,i,r){if(100===r)return r;var f,o,u=e(r,n);return i?r-(f=n[u-1])>((o=n[u])-f)/2?o:f:t[u-1]?n[u-1]+function(n,t){return Math.round(n/t)*t}(r-n[u-1],t[u-1]):r}function k(t,i,u){var f;if("number"==typeof i&&(i=[i]),"[object Array]"!==Object.prototype.toString.call(i))throw new Error("noUiSlider ("+n+"): 'range' contains invalid value.");if(!r(f="min"===t?0:"max"===t?100:parseFloat(t))||!r(i[0]))throw new Error("noUiSlider ("+n+"): 'range' value isn't numeric.");u.xPct.push(f);u.xVal.push(i[0]);f?u.xSteps.push(!isNaN(i[1])&&i[1]):isNaN(i[1])||(u.xSteps[0]=i[1]);u.xHighestCompleteStep.push(0)}function d(n,t,i){if(!t)return!0;i.xSteps[n]=h([i.xVal[n],i.xVal[n+1]],t)/s(i.xPct[n],i.xPct[n+1]);var r=(i.xVal[n+1]-i.xVal[n])/i.xNumSteps[n],u=Math.ceil(Number(r.toFixed(3))-1),f=i.xVal[n]+i.xNumSteps[n]*u;i.xHighestCompleteStep[n]=f}function i(n,t,i,r){this.xPct=[];this.xVal=[];this.xSteps=[r||!1];this.xNumSteps=[!1];this.xHighestCompleteStep=[];this.snap=t;this.direction=i;var u,f=[];for(u in n)n.hasOwnProperty(u)&&f.push([n[u],u]);for(f.length&&"object"==typeof f[0][0]?f.sort(function(n,t){return n[0][0]-t[0][0]}):f.sort(function(n,t){return n[0]-t[0]}),u=0;u<f.length;u++)k(f[u][1],f[u][0],this);for(this.xNumSteps=this.xSteps.slice(0),u=0;u<this.xNumSteps.length;u++)d(u,this.xNumSteps[u],this)}function g(t,i){if(!r(i))throw new Error("noUiSlider ("+n+"): 'step' is not numeric.");t.singleStep=i}function nt(t,r){if("object"!=typeof r||Array.isArray(r))throw new Error("noUiSlider ("+n+"): 'range' is not an object.");if(void 0===r.min||void 0===r.max)throw new Error("noUiSlider ("+n+"): Missing 'min' or 'max' in 'range'.");if(r.min===r.max)throw new Error("noUiSlider ("+n+"): 'range' 'min' and 'max' cannot be equal.");t.spectrum=new i(r,t.snap,t.dir,t.singleStep)}function tt(t,i){if(i=o(i),!Array.isArray(i)||!i.length)throw new Error("noUiSlider ("+n+"): 'start' option is incorrect.");t.handles=i.length;t.start=i}function it(t,i){if(t.snap=i,"boolean"!=typeof i)throw new Error("noUiSlider ("+n+"): 'snap' option must be a boolean.");}function rt(t,i){if(t.animate=i,"boolean"!=typeof i)throw new Error("noUiSlider ("+n+"): 'animate' option must be a boolean.");}function ut(t,i){if(t.animationDuration=i,"number"!=typeof i)throw new Error("noUiSlider ("+n+"): 'animationDuration' option must be a number.");}function ft(t,i){var u,r=[!1];if("lower"===i?i=[!0,!1]:"upper"===i&&(i=[!1,!0]),!0===i||!1===i){for(u=1;u<t.handles;u++)r.push(i);r.push(!1)}else{if(!Array.isArray(i)||!i.length||i.length!==t.handles+1)throw new Error("noUiSlider ("+n+"): 'connect' option doesn't match handle count.");r=i}t.connect=r}function et(t,i){switch(i){case"horizontal":t.ort=0;break;case"vertical":t.ort=1;break;default:throw new Error("noUiSlider ("+n+"): 'orientation' option is invalid.");}}function v(t,i){if(!r(i))throw new Error("noUiSlider ("+n+"): 'margin' option must be numeric.");if(0!==i&&(t.margin=t.spectrum.getMargin(i),!t.margin))throw new Error("noUiSlider ("+n+"): 'margin' option is only supported on linear sliders.");}function ot(t,i){if(!r(i))throw new Error("noUiSlider ("+n+"): 'limit' option must be numeric.");if(t.limit=t.spectrum.getMargin(i),!t.limit||t.handles<2)throw new Error("noUiSlider ("+n+"): 'limit' option is only supported on linear sliders with 2 or more handles.");}function st(t,i){if(!r(i))throw new Error("noUiSlider ("+n+"): 'padding' option must be numeric.");if(0!==i){if(t.padding=t.spectrum.getMargin(i),!t.padding)throw new Error("noUiSlider ("+n+"): 'padding' option is only supported on linear sliders.");if(t.padding<0)throw new Error("noUiSlider ("+n+"): 'padding' option must be a positive number.");if(t.padding>=50)throw new Error("noUiSlider ("+n+"): 'padding' option must be less than half the range.");}}function ht(t,i){switch(i){case"ltr":t.dir=0;break;case"rtl":t.dir=1;break;default:throw new Error("noUiSlider ("+n+"): 'direction' option was not recognized.");}}function ct(t,i){if("string"!=typeof i)throw new Error("noUiSlider ("+n+"): 'behaviour' must be a string containing options.");var f=i.indexOf("tap")>=0,e=i.indexOf("drag")>=0,r=i.indexOf("fixed")>=0,u=i.indexOf("snap")>=0,o=i.indexOf("hover")>=0;if(r){if(2!==t.handles)throw new Error("noUiSlider ("+n+"): 'fixed' behaviour must be used with 2 handles");v(t,t.start[1]-t.start[0])}t.events={tap:f||u,drag:e,fixed:r,snap:u,hover:o}}function lt(t,i){if(!1!==i)if(!0===i){t.tooltips=[];for(var r=0;r<t.handles;r++)t.tooltips.push(!0)}else{if(t.tooltips=o(i),t.tooltips.length!==t.handles)throw new Error("noUiSlider ("+n+"): must pass a formatter for all handles.");t.tooltips.forEach(function(t){if("boolean"!=typeof t&&("object"!=typeof t||"function"!=typeof t.to))throw new Error("noUiSlider ("+n+"): 'tooltips' must be passed a formatter or 'false'.");})}}function at(t,i){if(t.format=i,"function"==typeof i.to&&"function"==typeof i.from)return!0;throw new Error("noUiSlider ("+n+"): 'format' requires 'to' and 'from' methods.");}function vt(t,i){if(void 0!==i&&"string"!=typeof i&&!1!==i)throw new Error("noUiSlider ("+n+"): 'cssPrefix' must be a string or `false`.");t.cssPrefix=i}function yt(t,i){if(void 0!==i&&"object"!=typeof i)throw new Error("noUiSlider ("+n+"): 'cssClasses' must be an object.");if("string"==typeof t.cssPrefix)for(var r in t.cssClasses={},i)i.hasOwnProperty(r)&&(t.cssClasses[r]=t.cssPrefix+i[r]);else t.cssClasses=i}function pt(t,i){if(!0!==i&&!1!==i)throw new Error("noUiSlider ("+n+"): 'useRequestAnimationFrame' option should be true (default) or false.");t.useRequestAnimationFrame=i}function y(t){var i={margin:0,limit:0,padding:0,animate:!0,animationDuration:300,format:a},r={step:{r:!1,t:g},start:{r:!0,t:tt},connect:{r:!0,t:ft},direction:{r:!0,t:ht},snap:{r:!1,t:it},animate:{r:!1,t:rt},animationDuration:{r:!1,t:ut},range:{r:!0,t:nt},orientation:{r:!1,t:et},margin:{r:!1,t:v},limit:{r:!1,t:ot},padding:{r:!1,t:st},behaviour:{r:!0,t:ct},format:{r:!1,t:at},tooltips:{r:!1,t:lt},cssPrefix:{r:!1,t:vt},cssClasses:{r:!1,t:yt},useRequestAnimationFrame:{r:!1,t:pt}},f={connect:!1,direction:"ltr",behaviour:"tap",orientation:"horizontal",cssPrefix:"noUi-",cssClasses:{target:"target",base:"base",origin:"origin",handle:"handle",handleLower:"handle-lower",handleUpper:"handle-upper",horizontal:"horizontal",vertical:"vertical",background:"background",connect:"connect",ltr:"ltr",rtl:"rtl",draggable:"draggable",drag:"state-drag",tap:"state-tap",active:"active",tooltip:"tooltip",pips:"pips",pipsHorizontal:"pips-horizontal",pipsVertical:"pips-vertical",marker:"marker",markerHorizontal:"marker-horizontal",markerVertical:"marker-vertical",markerNormal:"marker-normal",markerLarge:"marker-large",markerSub:"marker-sub",value:"value",valueHorizontal:"value-horizontal",valueVertical:"value-vertical",valueNormal:"value-normal",valueLarge:"value-large",valueSub:"value-sub"},useRequestAnimationFrame:!0},u;return Object.keys(r).forEach(function(u){if(void 0===t[u]&&void 0===f[u]){if(r[u].r)throw new Error("noUiSlider ("+n+"): '"+u+"' is required.");return!0}r[u].t(i,void 0===t[u]?f[u]:t[u])}),i.pips=t.pips,u=[["left","top"],["right","bottom"]],i.style=u[i.dir][i.ort],i.styleOposite=u[i.dir?0:1][i.ort],i}function wt(i,r,e){function ni(n,i){var e=u(n,r.cssClasses.origin),f=u(e,r.cssClasses.handle);return f.setAttribute("data-handle",i),0===i?t(f,r.cssClasses.handleLower):i===r.handles-1&&t(f,r.cssClasses.handleUpper),e}function at(n,t){return!!t&&u(n,r.cssClasses.connect)}function ti(n,t){return!!r.tooltips[t]&&u(n.firstChild,r.cssClasses.tooltip)}function ii(n,i,u){function o(n,t,i){return'class="'+function(n,t){var i=t===r.cssClasses.value,u=i?s:h;return t+" "+(i?c:l)[r.ort]+" "+u[n]}(i[1],t)+'" style="'+r.style+": "+n+'%"'}var f=document.createElement("div"),e="",s=[r.cssClasses.valueNormal,r.cssClasses.valueLarge,r.cssClasses.valueSub],h=[r.cssClasses.markerNormal,r.cssClasses.markerLarge,r.cssClasses.markerSub],c=[r.cssClasses.valueHorizontal,r.cssClasses.valueVertical],l=[r.cssClasses.markerHorizontal,r.cssClasses.markerVertical];return t(f,r.cssClasses.pips),t(f,0===r.ort?r.cssClasses.pipsHorizontal:r.cssClasses.pipsVertical),Object.keys(n).forEach(function(t){var s,f;s=t;(f=n[t])[1]=f[1]&&i?i(f[0],f[1]):f[1];e+="<div "+o(s,r.cssClasses.marker,f)+"><\/div>";f[1]&&(e+="<div "+o(s,r.cssClasses.value,f)+">"+u.to(f[0])+"<\/div>")}),f.innerHTML=e,f}function vt(t){var i=t.mode,r=t.density||1,u=t.filter||!1,f=function(t,i,r){if("range"===t||"steps"===t)return s.xVal;if("count"===t){if(!i)throw new Error("noUiSlider ("+n+"): 'values' required for mode 'count'.");var u,f=100/(i-1),e=0;for(i=[];(u=e++*f)<=100;)i.push(u);t="positions"}return"positions"===t?i.map(function(n){return s.fromStepping(r?s.getStep(n):n)}):"values"===t?r?i.map(function(n){return s.fromStepping(s.getStep(s.toStepping(n)))}):i:void 0}(i,t.values||!1,t.stepped||!1),e=function(n,t,i){var f,r={},e=s.xVal[0],o=s.xVal[s.xVal.length-1],h=!1,c=!1,u=0;return f=i.slice().sort(function(n,t){return n-t}),(i=f.filter(function(n){return!this[n]&&(this[n]=!0)},{}))[0]!==e&&(i.unshift(e),h=!0),i[i.length-1]!==o&&(i.push(o),c=!0),i.forEach(function(f,e){var l,o,a,y,b,p,k,d,g,w=f,v=i[e+1];if("steps"===t&&(l=s.xNumSteps[e]),l||(l=v-w),!1!==w&&void 0!==v)for(l=Math.max(l,1e-7),o=w;o<=v;o=(o+l).toFixed(7)/1){for(k=(b=(y=s.toStepping(o))-u)/n,g=b/(d=Math.round(k)),a=1;a<=d;a+=1)r[(u+a*g).toFixed(5)]=["x",0];p=i.indexOf(o)>-1?1:"steps"===t?2:0;!e&&h&&(p=0);o===v&&c||(r[y.toFixed(5)]=[o,p]);u=y}}),r}(r,i,f),o=t.format||{to:Math.round};return a.appendChild(ii(e,u,o))}function yt(){var n=b.getBoundingClientRect(),t="offset"+["Width","Height"][r.ort];return 0===r.ort?n.width||b[t]:n.height||b[t]}function g(n,t,i,u){var f=function(t){return!a.hasAttribute("disabled")&&(f=a,e=r.cssClasses.tap,(f.classList?!f.classList.contains(e):!new RegExp("\\b"+e+"\\b").test(f.className))&&!!(t=function(n,t){n.preventDefault();var i,r,e=0===n.type.indexOf("touch"),f=0===n.type.indexOf("mouse"),u=0===n.type.indexOf("pointer");if(0===n.type.indexOf("MSPointer")&&(u=!0),e){if(n.touches.length>1)return!1;i=n.changedTouches[0].pageX;r=n.changedTouches[0].pageY}return t=t||l(),(f||u)&&(i=n.clientX+t.x,r=n.clientY+t.y),n.pageOffset=t,n.points=[i,r],n.cursor=f||u,n}(t,u.pageOffset))&&!(n===d.start&&void 0!==t.buttons&&t.buttons>1)&&(!u.hover||!t.buttons)&&(t.calcPoint=t.points[r.ort],void i(t,u)));var f,e},e=[];return n.split(" ").forEach(function(n){t.addEventListener(n,f,!1);e.push([n,f])}),e}function pt(n){var i,e,u,f,t,o=100*(n-(i=b,e=r.ort,u=i.getBoundingClientRect(),f=i.ownerDocument.documentElement,t=l(),/webkit.*Chrome.*Mobile/i.test(navigator.userAgent)&&(t.x=0),e?u.top+t.y-f.clientTop:u.left+t.x-f.clientLeft))/yt();return r.dir?100-o:o}function wt(n,t,i,r){var u=i.slice(),e=[!n,n],o=[n,!n],f;r=r.slice();n&&r.reverse();r.length>1?r.forEach(function(n,i){var r=bt(u,n,u[n]+t,e[i],o[i]);!1===r?t=0:(t=r-u[n],u[n]=r)}):e=o=[!0];f=!1;r.forEach(function(n,r){f=ft(n,i[n]+t,e[r],o[r])||f});f&&r.forEach(function(n){p("update",n);p("slide",n)})}function p(n,t,i){Object.keys(w).forEach(function(u){var f=u.split(".")[0];n===f&&w[u].forEach(function(n){n.call(it,tt.map(r.format.to),t,tt.slice(),i||!1,v.slice())})})}function ri(n,t){"mouseout"===n.type&&"HTML"===n.target.nodeName&&null===n.relatedTarget&&st(n,t)}function ui(n,t){if(-1===navigator.appVersion.indexOf("MSIE 9")&&0===n.buttons&&0!==t.buttonsProperty)return st(n,t);var i=(r.dir?-1:1)*(n.calcPoint-t.startCalcPoint);wt(i>0,100*i/t.baseSize,t.locations,t.handleNumbers)}function st(n,t){ut&&(f(ut,r.cssClasses.active),ut=!1);n.cursor&&(document.body.style.cursor="",document.body.removeEventListener("selectstart",document.body.noUiListener));document.documentElement.noUiListeners.forEach(function(n){document.documentElement.removeEventListener(n[0],n[1])});f(a,r.cssClasses.drag);lt();t.handleNumbers.forEach(function(n){p("set",n);p("change",n);p("end",n)})}function ht(n,i){var u,f;if(1===i.handleNumbers.length){if(u=h[i.handleNumbers[0]],u.hasAttribute("disabled"))return!1;t(ut=u.children[0],r.cssClasses.active)}n.preventDefault();n.stopPropagation();var e=g(d.move,document.documentElement,ui,{startCalcPoint:n.calcPoint,baseSize:yt(),pageOffset:n.pageOffset,handleNumbers:i.handleNumbers,buttonsProperty:n.buttons,locations:v.slice()}),o=g(d.end,document.documentElement,st,{handleNumbers:i.handleNumbers}),s=g("mouseout",document.documentElement,ri,{handleNumbers:i.handleNumbers});(document.documentElement.noUiListeners=e.concat(o,s),n.cursor)&&(document.body.style.cursor=getComputedStyle(n.target).cursor,h.length>1&&t(a,r.cssClasses.drag),f=function(){return!1},document.body.noUiListener=f,document.body.addEventListener("selectstart",f,!1));i.handleNumbers.forEach(function(n){p("start",n)})}function fi(n){n.stopPropagation();var i=pt(n.calcPoint),t=function(n){var t=100,i=!1;return h.forEach(function(r,u){if(!r.hasAttribute("disabled")){var f=Math.abs(v[u]-n);f<t&&(i=u,t=f)}}),i}(i);if(!1===t)return!1;r.events.snap||c(a,r.cssClasses.tap,r.animationDuration);ft(t,i,!0,!0);lt();p("slide",t,!0);p("set",t,!0);p("change",t,!0);p("update",t,!0);r.events.snap&&ht(n,{handleNumbers:[t]})}function ei(n){var t=pt(n.calcPoint),i=s.getStep(t),r=s.fromStepping(i);Object.keys(w).forEach(function(n){"hover"===n.split(".")[0]&&w[n].forEach(function(n){n.call(it,r)})})}function bt(n,t,i,u,f){var e;return h.length>1&&(u&&t>0&&(i=Math.max(i,n[t-1]+r.margin)),f&&t<h.length-1&&(i=Math.min(i,n[t+1]-r.margin))),h.length>1&&r.limit&&(u&&t>0&&(i=Math.min(i,n[t-1]+r.limit)),f&&t<h.length-1&&(i=Math.max(i,n[t+1]-r.limit))),r.padding&&(0===t&&(i=Math.max(i,r.padding)),t===h.length-1&&(i=Math.min(i,100-r.padding))),i=s.getStep(i),e=i,(i=Math.max(Math.min(e,100),0))!==n[t]&&i}function ct(n){return n+"%"}function lt(){rt.forEach(function(n){var t=v[n]>50?-1:1,i=3+(h.length+t*n);h[n].childNodes[0].style.zIndex=i})}function ft(n,t,i,u){return!1!==(t=bt(v,n,t,i,u))&&(function(n,t){v[n]=t;tt[n]=s.fromStepping(t);var i=function(){h[n].style[r.style]=ct(t);kt(n);kt(n+1)};window.requestAnimationFrame&&r.useRequestAnimationFrame?window.requestAnimationFrame(i):i()}(n,t),!0)}function kt(n){if(k[n]){var t=0,i=100;0!==n&&(t=v[n-1]);n!==k.length-1&&(i=v[n]);k[n].style[r.style]=ct(t);k[n].style[r.styleOposite]=ct(100-i)}}function oi(n,t){null!==n&&!1!==n&&("number"==typeof n&&(n=String(n)),!1===(n=r.format.from(n))||isNaN(n)||ft(t,s.toStepping(n),!1,!1))}function et(n,t){var i=o(n),u=void 0===v[0];t=void 0===t||!!t;i.forEach(oi);r.animate&&!u&&c(a,r.cssClasses.tap,r.animationDuration);rt.forEach(function(n){ft(n,v[n],!0,!1)});lt();rt.forEach(function(n){p("update",n);null!==i[n]&&t&&p("set",n)})}function dt(){var n=tt.map(r.format.to);return 1===n.length?n[0]:n}function gt(n,t){w[n]=w[n]||[];w[n].push(t);"update"===n.split(".")[0]&&h.forEach(function(n,t){p("update",t)})}var b,h,k,it,nt,ot,d=window.navigator.pointerEnabled?{start:"pointerdown",move:"pointermove",end:"pointerup"}:window.navigator.msPointerEnabled?{start:"MSPointerDown",move:"MSPointerMove",end:"MSPointerUp"}:{start:"mousedown touchstart",move:"mousemove touchmove",end:"mouseup touchend"},a=i,v=[],rt=[],ut=!1,s=r.spectrum,tt=[],w={};if(a.noUiSlider)throw new Error("noUiSlider ("+n+"): Slider was already initialized.");return function(n){t(n,r.cssClasses.target);0===r.dir?t(n,r.cssClasses.ltr):t(n,r.cssClasses.rtl);0===r.ort?t(n,r.cssClasses.horizontal):t(n,r.cssClasses.vertical);b=u(n,r.cssClasses.base)}(a),function(n,t){h=[];(k=[]).push(at(t,n[0]));for(var i=0;i<r.handles;i++)h.push(ni(t,i)),rt[i]=i,k.push(at(t,n[i+1]))}(r.connect,b),it={destroy:function(){for(var n in r.cssClasses)r.cssClasses.hasOwnProperty(n)&&f(a,r.cssClasses[n]);for(;a.firstChild;)a.removeChild(a.firstChild);delete a.noUiSlider},steps:function(){return v.map(function(n,t){var r=s.getNearbySteps(n),f=tt[t],i=r.thisStep.step,u=null,e;return!1!==i&&f+i>r.stepAfter.startValue&&(i=r.stepAfter.startValue-f),u=f>r.thisStep.startValue?r.thisStep.step:!1!==r.stepBefore.step&&f-r.stepBefore.highestStep,100===n?i=null:0===n&&(u=null),e=s.countStepDecimals(),null!==i&&!1!==i&&(i=Number(i.toFixed(e))),null!==u&&!1!==u&&(u=Number(u.toFixed(e))),[u,i]})},on:gt,off:function(n){var t=n&&n.split(".")[0],i=t&&n.substring(t.length);Object.keys(w).forEach(function(n){var r=n.split(".")[0],u=n.substring(r.length);t&&t!==r||i&&i!==u||delete w[n]})},get:dt,set:et,reset:function(n){et(r.start,n)},__moveHandles:function(n,t,i){wt(n,t,v,i)},options:e,updateOptions:function(n,t){var f=dt(),u=["margin","limit","padding","range","animate","snap","step","format"],i;u.forEach(function(t){void 0!==n[t]&&(e[t]=n[t])});i=y(e);u.forEach(function(t){void 0!==n[t]&&(r[t]=i[t])});i.spectrum.direction=s.direction;s=i.spectrum;r.margin=i.margin;r.limit=i.limit;r.padding=i.padding;v=[];et(n.start||f,t)},target:a,pips:vt},(nt=r.events).fixed||h.forEach(function(n,t){g(d.start,n.children[0],ht,{handleNumbers:[t]})}),nt.tap&&g(d.start,b,fi,{}),nt.hover&&g(d.move,b,ei,{hover:!0}),nt.drag&&k.forEach(function(n,i){if(!1!==n&&0!==i&&i!==k.length-1){var f=h[i-1],e=h[i],u=[n];t(n,r.cssClasses.draggable);nt.fixed&&(u.push(f.children[0]),u.push(e.children[0]));u.forEach(function(n){g(d.start,n,ht,{handles:[f,e],handleNumbers:[i-1,i]})})}}),et(r.start),r.pips&&vt(r.pips),r.tooltips&&(ot=h.map(ti),gt("update",function(n,t,i){if(ot[t]){var u=n[t];!0!==r.tooltips[t]&&(u=r.tooltips[t].to(i[t]));ot[t].innerHTML=u}})),it}var n="9.2.0",a;return i.prototype.getMargin=function(t){var i=this.xNumSteps[0];if(i&&t/i%1!=0)throw new Error("noUiSlider ("+n+"): 'limit', 'margin' and 'padding' must be divisible by step.");return 2===this.xPct.length&&h(this.xVal,t)},i.prototype.toStepping=function(n){return w(this.xVal,this.xPct,n)},i.prototype.fromStepping=function(n){return function(n,t,i){if(i>=100)return n.slice(-1)[0];var u,r=e(i,t);return function(n,t){return t*(n[1]-n[0])/100+n[0]}([n[r-1],n[r]],(i-(u=t[r-1]))*s(u,t[r]))}(this.xVal,this.xPct,n)},i.prototype.getStep=function(n){return b(this.xPct,this.xSteps,this.snap,n)},i.prototype.getNearbySteps=function(n){var t=e(n,this.xPct);return{stepBefore:{startValue:this.xVal[t-2],step:this.xNumSteps[t-2],highestStep:this.xHighestCompleteStep[t-2]},thisStep:{startValue:this.xVal[t-1],step:this.xNumSteps[t-1],highestStep:this.xHighestCompleteStep[t-1]},stepAfter:{startValue:this.xVal[+t],step:this.xNumSteps[+t],highestStep:this.xHighestCompleteStep[+t]}}},i.prototype.countStepDecimals=function(){var n=this.xNumSteps.map(p);return Math.max.apply(null,n)},i.prototype.convert=function(n){return this.getStep(this.toStepping(n))},a={to:function(n){return void 0!==n&&n.toFixed(2)},from:Number},{version:n,create:function(t,i){if(!t.nodeName)throw new Error("noUiSlider ("+n+"): create requires a single element.");var r=wt(t,y(i),i);return t.noUiSlider=r,r}}})