PageSourceSearch

https://tricolor-nnov.ru/g/templates/shop2/2.33.2/js/nouislider.min.js

js tricolor-nnov.ru collected 2026-10-08 16:34:51 UTC 17,666 bytes, 1 lines download raw bytes

1!function(){"use strict";var o=["decimals","thousand","mark","prefix","postfix","encoder","decoder","negativeBefore","negative","edit","undo"];function w(t){return t.split("").reverse().join("")}function p(t,n){return t.substring(0,n.length)===n}function s(t,n,e){if((t[n]||t[e])&&t[n]===t[e])throw new Error(n)}function y(t){return"number"==typeof t&&isFinite(t)}function e(t,n,e,i,r,o,s,a,l,u,c,h){var f,d,p,g=h,m="",v="";return o&&(h=o(h)),!!y(h)&&(!1!==t&&0===parseFloat(h.toFixed(t))&&(h=0),h<0&&(f=!0,h=Math.abs(h)),!1!==t&&(o=h,p=t,t=Math.pow(10,p),h=(Math.round(o*t)/t).toFixed(p)),-1!==(h=h.toString()).indexOf(".")?(d=(p=h.split("."))[0],e&&(m=e+p[1])):d=h,n&&(d=w(d).match(/.{1,3}/g),d=w(d.join(w(n)))),f&&a&&(v+=a),i&&(v+=i),f&&l&&(v+=l),v+=d,v+=m,r&&(v+=r),u&&(v=u(v,g)),v)}function i(t,n,e,i,r,o,s,a,l,u,c,h){var f,d="";return c&&(h=c(h)),!(!h||"string"!=typeof h)&&(a&&p(h,a)&&(h=h.replace(a,""),f=!0),i&&p(h,i)&&(h=h.replace(i,"")),l&&p(h,l)&&(h=h.replace(l,""),f=!0),r&&(l=r,h.slice(-1*l.length)===l)&&(h=h.slice(0,-1*r.length)),n&&(h=h.split(n).join("")),e&&(h=h.replace(e,".")),f&&(d+="-"),""!==(d=(d+=h).replace(/[^0-9\.\-.]/g,""))&&(d=Number(d),s&&(d=s(d)),!!y(d)&&d))}function r(t,n,e){for(var i=[],r=0;r<o.length;r+=1)i.push(t[o[r]]);return i.push(e),n.apply("",i)}window.wNumb=function t(n){if(!(this instanceof t))return new t(n);"object"==typeof n&&(n=function(t){for(var n,e,i={},r=0;r<o.length;r+=1)if(void 0===(e=t[n=o[r]]))"negative"!==n||i.negativeBefore?"mark"===n&&"."!==i.thousand?i[n]=".":i[n]=!1:i[n]="-";else if("decimals"===n){if(!(0<=e&&e<8))throw new Error(n);i[n]=e}else if("encoder"===n||"decoder"===n||"edit"===n||"undo"===n){if("function"!=typeof e)throw new Error(n);i[n]=e}else{if("string"!=typeof e)throw new Error(n);i[n]=e}return s(i,"mark","thousand"),s(i,"prefix","negative"),s(i,"prefix","negativeBefore"),i}(n),this.to=function(t){return r(n,e,t)},this.from=function(t){return r(n,i,t)})}}(),function(s){"use strict";function e(t){return t instanceof s||s.zepto&&s.zepto.isZ(t)}var n=[function(t,n){if("string"==typeof t&&0===t.indexOf("-inline-"))return this.method=n||"html",this.target=this.el=s(t.replace("-inline-","")||"<div></div>"),!0},function(t){if("string"==typeof t&&0!==t.indexOf("-")){this.method="val";var n=document.createElement("input");return n.name=t,n.type="hidden",this.target=this.el=s(n),!0}},function(t){if("function"==typeof t)return this.target=!1,this.method=t,!0},function(t,n){if(e(t)&&!n)return t.is("input, select, textarea")?(this.method="val",this.target=t.on("change.liblink",this.changeHandler)):(this.target=t,this.method="html"),!0},function(t,n){if(e(t)&&("function"==typeof n||"string"==typeof n&&t[n]))return this.method=n,this.target=t,!0}];function o(e,i,t){var r=this,o=!1;if(this.changeHandler=function(t){var n=r.formatInstance.from(s(this).val());if(!1===n||isNaN(n))return s(this).val(r.lastSetValue),!1;r.changeHandlerMethod.call("",t,n)},this.el=!1,this.formatInstance=t,s.each(n,function(t,n){return!(o=n.call(r,e,i))}),!o)throw new RangeError("(Link) Invalid Link.")}function a(t){this.items=[],this.elements=[],this.origin=t}o.prototype.set=function(t){var n=Array.prototype.slice.call(arguments).slice(1);this.lastSetValue=this.formatInstance.to(t),n.unshift(this.lastSetValue),("function"==typeof this.method?this.method:this.target[this.method]).apply(this.target,n)},a.prototype.push=function(t,n){this.items.push(t),n&&this.elements.push(n)},a.prototype.reconfirm=function(t){for(var n=0;n<this.elements.length;n+=1)this.origin.LinkConfirm(t,this.elements[n])},a.prototype.remove=function(t){for(var n=0;n<this.items.length;n+=1)this.items[n].target.off(".liblink");for(n=0;n<this.elements.length;n+=1)this.elements[n].remove()},a.prototype.change=function(t){if(this.origin.LinkIsEmitting)return!1;this.origin.LinkIsEmitting=!0;var n,e=Array.prototype.slice.call(arguments,1);for(e.unshift(t),n=0;n<this.items.length;n+=1)this.items[n].set.apply(this.items[n],e);this.origin.LinkIsEmitting=!1},s.fn.Link=function(i){var r=this;if(!1===i)return r.each(function(){this.linkAPI&&(s.map(this.linkAPI,function(t){t.remove()}),delete this.linkAPI)});if(void 0===i)i=0;else if("string"!=typeof i)throw new Error("Flag must be string.");return{to:function(t,n,e){return r.each(function(){(function(t,n,e,i){0===t&&(t=this.LinkDefaultFlag),this.linkAPI||(this.linkAPI={}),this.linkAPI[t]||(this.linkAPI[t]=new a(this)),(i=new o(n,e,i||this.LinkDefaultFormatter)).target||(i.target=s(this)),i.changeHandlerMethod=this.LinkConfirm(t,i.el),this.linkAPI[t].push(i,i.el),this.LinkUpdate(t)}).call(this,i,t,n,e)})}}}}(window.jQuery||window.Zepto),function(k){"use strict";function u(t){return"number"==typeof t&&!isNaN(t)&&isFinite(t)}
1function U(t,n,e){t.addClass(n),setTimeout(function(){t.removeClass(n)},e)}function E(t){return Math.max(Math.min(t,100),0)}function P(t){return k.isArray(t)?t:[t]}var C=k(document),n=k.fn.val,M=".nui",A=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"},I=["noUi-target","noUi-base","noUi-origin","noUi-handle","noUi-horizontal","noUi-vertical","noUi-background","noUi-connect","noUi-ltr","noUi-rtl","noUi-dragable","","noUi-state-drag","","noUi-state-tap","noUi-active","","noUi-stacking"];function c(t,n){return 100/(n-t)}function h(t,n){return 100*n/(t[1]-t[0])}function s(t,n){for(var e=1;t>=n[e];)e+=1;return e}function e(t,n,e){if(e>=t.slice(-1)[0])return 100;var i=s(e,t),r=t[i-1],o=t[i],t=n[i-1],i=n[i];return t+(e=e,h(o=[r,o],o[0]<0?e+Math.abs(o[0]):e-o[0])/c(t,i))}function i(t,n,e,i){if(100===i)return i;var r,o=s(i,t);return e?(r=t[o-1],((e=t[o])-r)/2<i-r?e:r):n[o-1]?t[o-1]+(t=i-t[o-1],o=n[o-1],Math.round(t/o)*o):i}function r(t,n,e,i){this.xPct=[],this.xVal=[],this.xSteps=[i||!1],this.xNumSteps=[!1],this.snap=n,this.direction=e;var r,o,s,a,l=[];for(r in t)t.hasOwnProperty(r)&&l.push([t[r],r]);for(l.sort(function(t,n){return t[0]-n[0]}),r=0;r<l.length;r++)!function(t,n,e){if("number"==typeof n&&(n=[n]),"[object Array]"!==Object.prototype.toString.call(n))throw new Error("noUiSlider: 'range' contains invalid value.");if(!u(t="min"===t?0:"max"===t?100:parseFloat(t))||!u(n[0]))throw new Error("noUiSlider: 'range' value isn't numeric.");e.xPct.push(t),e.xVal.push(n[0]),t?e.xSteps.push(!isNaN(n[1])&&n[1]):isNaN(n[1])||(e.xSteps[0]=n[1])}(l[r][1],l[r][0],this);for(this.xNumSteps=this.xSteps.slice(0),r=0;r<this.xNumSteps.length;r++)o=r,s=this.xNumSteps[r],a=this,!void(s&&(a.xSteps[o]=h([a.xVal[o],a.xVal[o+1]],s)/c(a.xPct[o],a.xPct[o+1])))}r.prototype.getMargin=function(t){return 2===this.xPct.length&&h(this.xVal,t)},r.prototype.toStepping=function(t){return t=e(this.xVal,this.xPct,t),this.direction&&(t=100-t),t},r.prototype.fromStepping=function(t){return this.direction&&(t=100-t),n=function(t,n,e){if(100<=e)return t.slice(-1)[0];var i=s(e,n),r=t[i-1],o=t[i],t=n[i-1],i=n[i];return(e-t)*c(t,i)*((o=[r,o])[1]-o[0])/100+o[0]}(this.xVal,this.xPct,t),t=Math.pow(10,7),Number((Math.round(n*t)/t).toFixed(7));var n},r.prototype.getStep=function(t){return this.direction&&(t=100-t),t=i(this.xPct,this.xSteps,this.snap,t),this.direction&&(t=100-t),t},r.prototype.getApplicableStep=function(t){var n=s(t,this.xPct),t=100===t?2:1;return[this.xNumSteps[n-2],this.xVal[n-t],this.xNumSteps[n-t]]},r.prototype.convert=function(t){return this.getStep(this.toStepping(t))};var o={to:function(t){return t.toFixed(2)},from:Number};function a(t,n){if(!u(n))throw new Error("noUiSlider: 'step' is not numeric.");t.singleStep=n}function l(t,n){if("object"!=typeof n||k.isArray(n))throw new Error("noUiSlider: 'range' is not an object.");if(void 0===n.min||void 0===n.max)throw new Error("noUiSlider: Missing 'min' or 'max' in 'range'.");t.spectrum=new r(n,t.snap,t.dir,t.singleStep)}function f(t,n){if(n=P(n),!k.isArray(n)||!n.length||2<n.length)throw new Error("noUiSlider: 'start' option is incorrect.");t.handles=n.length,t.start=n}function d(t,n){if("boolean"!=typeof(t.snap=n))throw new Error("noUiSlider: 'snap' option must be a boolean.")}function p(t,n){if("boolean"!=typeof(t.animate=n))throw new Error("noUiSlider: 'animate' option must be a boolean.")}function g(t,n){if("lower"===n&&1===t.handles)t.connect=1;else if("upper"===n&&1===t.handles)t.connect=2;else if(!0===n&&2===t.handles)t.connect=3;else{if(!1!==n)throw new Error("noUiSlider: 'connect' option doesn't match handle count.");t.connect=0}}function m(t,n){switch(n){case"horizontal":t.ort=0;break;case"vertical":t.ort=1;break;default:throw new Error("noUiSlider: 'orientation' option is invalid.")}}function v(t,n){if(!u(n))throw new Error("noUiSlider: 'margin' option must be numeric.");if(t.margin=t.spectrum.getMargin(n),!t.margin)throw new Error("noUiSlider: 'margin' option is only supported on linear sliders.")}function w(t,n){if(!u(n))throw new Error("noUiSlider: 'limit' option must be numeric.");if(t.limit=t.spectrum.getMargin(n),!t.limit)throw new Error("noUiSlider: 'limit' option is only supported on linear sliders.")}function y(t,n){switch(n){case"ltr":t.dir=0;break;case"rtl":t.dir=1,t.connect=[0,2,1,3][t.connect];break;default:throw new Error("noUiSlider: 'direction' option was not recognized.")}}function x(t,n){if("string"!=typeof n)throw new Error("noUiSlider: 'behaviour' must be a string containing options.");var e=0<=n.indexOf("tap"),i=0<=n.indexOf("drag"),r=0<=n.indexOf("fixed"),n=0<=n.indexOf("snap");t.events={tap:e||n,drag:i,fixed:r,snap:n}}function S(t,n){if("function"==typeof(t.format=n).to&&"function"==typeof n.from)return!0;throw new Error("noUiSlider: 'format' requires 'to' and 'from' methods.")}function N(t,n,e){for(var i,r,o,s,a=[],l=0;l<t;l+=1)a.push((i=n,r=l,s=o=void 0,o=k("<div><div></div></div>").addClass(I[2]),s=["-lower","-upper"],i&&s.reverse(),o.children().addClass(I[3]+" "+I[3]+s[r]),o.appendTo(e)));return a}function b(t,l,n){var i,u,e,r,o,s=k(t),c=[-1,-1],h=l.spectrum,f=[],d=["lower","upper"].slice(0,l.handles);function a(){return i[["width","height"][l.ort]]()}function p(t){for(var n=[s.val()],e=0;e<t.length;e+=1)s.trigger(t[e],n)}function g(t){return 1===t.length?t[0]:l.dir?t.reverse():t}function m(t){var n=k.inArray(t,d);s[0].linkAPI&&s[0].linkAPI[t]&&s[0].linkAPI[t].change(f[n],u[n].children(),s)}function v(t,n,e,i){return t=t.replace(/\s/g,M+" ")+M,n.on(t,function(t){return!s.attr("disabled")&&(!s.hasClass(I[14])&&((t=function(t){t.preventDefault();
1var n,e,i=0===t.type.indexOf("touch"),r=0===t.type.indexOf("mouse"),o=0===t.type.indexOf("pointer"),s=t;return 0===t.type.indexOf("MSPointer")&&(o=!0),t.originalEvent&&(t=t.originalEvent),i&&(n=t.changedTouches[0].pageX,e=t.changedTouches[0].pageY),(r||o)&&(o||void 0!==window.pageXOffset||(window.pageXOffset=document.documentElement.scrollLeft,window.pageYOffset=document.documentElement.scrollTop),n=t.clientX+window.pageXOffset,e=t.clientY+window.pageYOffset),s.points=[n,e],s.cursor=r,s}(t)).calcPoint=t.points[l.ort],void e(t,i)))})}function w(t,n){var e,i=n.handles||u,r=!1,o=100*(t.calcPoint-n.start)/a(),s=i[0][0]!==u[0][0]?1:0;e=o,t=n.positions,o=1<i.length,n=e+t[0],t=e+t[1],t=o?(n<0&&(t+=Math.abs(n)),100<t&&(n-=t-100),[E(n),E(t)]):[n,t],r=b(i[0],t[s],1===i.length),1<i.length&&(r=b(i[1],t[s?0:1],!1)||r),r&&p(["slide"])}function y(t){k("."+I[15]).removeClass(I[15]),t.cursor&&k("body").css("cursor","").off(M),C.off(M),s.removeClass(I[12]),p(["set","change"])}function x(t,n){1===n.handles.length&&n.handles[0].children().addClass(I[15]),t.stopPropagation(),v(A.move,C,w,{start:t.calcPoint,handles:n.handles,positions:[c[0],c[u.length-1]]}),v(A.end,C,y,null),t.cursor&&(k("body").css("cursor",k(t.target).css("cursor")),1<u.length&&s.addClass(I[12]),k("body").on("selectstart"+M,!1))}function S(t){var n=t.calcPoint,e=0;t.stopPropagation(),k.each(u,function(){e+=this.offset()[l.style]}),e=n<e/2||1===u.length?0:1,n=100*(n-=i.offset()[l.style])/a(),l.events.snap||U(s,I[14],300),b(u[e],n),p(["slide","set","change"]),l.events.snap&&x(t,{handles:[u[e]]})}function b(t,n,e){var i=t[0]!==u[0][0]?1:0,r=c[0]+l.margin,o=c[1]-l.margin,s=c[0]+l.limit,a=c[1]-l.limit;return 1<u.length&&(n=i?Math.max(n,r):Math.min(n,o)),!1!==e&&l.limit&&1<u.length&&(n=i?Math.min(n,s):Math.max(n,a)),n=h.getStep(n),(n=E(parseFloat(n.toFixed(7))))!==c[i]&&(t.css(l.style,n+"%"),t.is(":first-child")&&t.toggleClass(I[17],50<n),c[i]=n,f[i]=h.fromStepping(n),m(d[i]),!0)}if(l.dir&&d.reverse(),t.LinkUpdate=m,t.LinkConfirm=function(t,n){var e,t=k.inArray(t,d);return n&&n.appendTo(u[t].children()),l.dir&&1<l.handles&&(t=1===t?0:1),e=t,function(t,n){s.val([e?null:n,e?n:null],!0)}},t.LinkDefaultFormatter=l.format,t.LinkDefaultFlag="lower",t.reappend=function(){for(var t,n=0;n<d.length;n+=1)this.linkAPI&&this.linkAPI[t=d[n]]&&this.linkAPI[t].reconfirm(t)},s.hasClass(I[0]))throw new Error("Slider was already initialized.");e=l.dir,r=l.ort,(o=s).addClass([I[0],I[8+e],I[4+r]].join(" ")),i=k("<div></div>").appendTo(o).addClass(I[1]),u=N(l.handles,l.dir,i),function(t,n,e){switch(t){case 1:n.addClass(I[7]),e[0].addClass(I[6]);break;case 3:e[1].addClass(I[6]);case 2:e[0].addClass(I[7]);case 0:n.addClass(I[6])}}(l.connect,s,u),function(t){var n,e;if(!t.fixed)for(n=0;n<u.length;n+=1)v(A.start,u[n].children(),x,{handles:[u[n]]});t.tap&&v(A.start,i,S,{handles:u}),t.drag&&(e=i.find("."+I[7]).addClass(I[10]),t.fixed&&(e=e.add(i.children().not(e).children())),v(A.start,e,x,{handles:u}))}(l.events),t.vSet=function(t){if(s[0].LinkIsEmitting)return this;var n=P(t);return l.dir&&1<l.handles&&n.reverse(),l.animate&&-1!==c[0]&&U(s,I[14],300),t=1<u.length?3:1,1===n.length&&(t=1),function(t,n){var e,i,r;for(l.limit&&(t+=1),e=0;e<t;e+=1)null!==(r=n[i=e%2])&&!1!==r&&("number"==typeof r&&(r=String(r)),!1!==(r=l.format.from(r))&&!isNaN(r)&&!1!==b(u[i],h.toStepping(r),e===3-l.dir)||m(d[i]))}(t,n),p(["set"]),this},t.vGet=function(){for(var t=[],n=0;n<l.handles;n+=1)t[n]=l.format.to(f[n]);return g(t)},t.destroy=function(){return k(this).off(M).removeClass(I.join(" ")).empty(),delete this.LinkUpdate,delete this.LinkConfirm,delete this.LinkDefaultFormatter,delete this.LinkDefaultFlag,delete this.reappend,delete this.vGet,delete this.vSet,delete this.getCurrentStep,delete this.getInfo,delete this.destroy,n},t.getCurrentStep=function(){return g(k.map(c,function(t,n){var e,i=h.getApplicableStep(t),r=1<(e=(e=String(i[2])).split(".")).length?e[1].length:0,e=f[n],n=100===t?null:i[2],r=Number((e-i[2]).toFixed(r));return[[0===t?null:r>=i[1]?i[2]:i[0]||!1,n]]}))},t.getOriginalOptions=function(){return n},t.getInfo=function(){return[h,l.style,l.ort]},s.val(l.start)}function O(t){var e,i,n,r=(e=t,n={step:{r:!(i={margin:0,limit:0,animate:!0,format:o}),t:a},start:{r:!0,t:f},connect:{r:!0,t:g},direction:{r:!0,t:y},snap:{r:!1,t:d},animate:{r:!1,t:p},range:{r:!0,t:l},orientation:{r:!1,t:m},margin:{r:!1,t:v},limit:{r:!1,t:w},behaviour:{r:!0,t:x},format:{r:!1,t:S}},e=k.extend({connect:!1,direction:"ltr",behaviour:"tap",orientation:"horizontal"},e),k.each(n,function(t,n){if(void 0===e[t]){if(n.r)throw new Error("noUiSlider: '"+t+"' is required.");return!0}n.t(i,e[t])}),i.style=i.ort?"top":"left",i);return this.each(function(){b(this,r,t)})}function F(){return this[0][arguments.length?"vSet":"vGet"].apply(this[0],arguments)}function L(h,f,d,p){var e,t=h.direction,g={},n=h.xVal[0],i=h.xVal[h.xVal.length-1],m=!1,v=!1,w=0;return h.direction=0,e=p.slice().sort(function(t,n){return t-n}),(p=k.grep(e,function(t,n){return n===k.inArray(t,e)}))[0]!==n&&(p.unshift(n),m=!0),p[p.length-1]!==i&&(p.push(i),v=!0),k.each(p,function(t){var n,e,i,r,o,s,a,l,u=p[t],c=p[t+1];if("steps"===d&&(n=h.xNumSteps[t]),n=n||c-u,!1!==u&&void 0!==c)for(e=u;e<=c;e+=n){for(s=(o=(r=h.toStepping(e))-w)/f,l=o/(a=Math.round(s)),i=1;i<=a;i+=1)g[(w+i*l).toFixed(5)]=["x",0];s=-1<k.inArray(e,p)?1:"steps"===d?2:0,!t&&m&&(s=0),e===c&&v||(g[r.toFixed(5)]=[e,s]),w=r}}),h.direction=t,g}function V(i,t,e,n,r,o){var s=["horizontal","vertical"][t],a=k("<div></div>");function l(t,n,e){return'class="'+n+" "+n+"-"+s+" "+n+(n=e[1],e[0],["-normal","-large","-sub"][n])+'" style="'+i+": "+t+'%"'}return a.addClass("noUi-pips noUi-pips-"+s),k.each(n,function(t,n){e&&(t=100-t),n[1]=n[1]&&r?r(n[0],n[1]):n[1],a.append("<div "+l(t,"noUi-marker",n)+"></div>"),n[1]&&a.append("<div "+l(t,"noUi-value",n)+">"+o.to(n[0])+"</div>")}),a}k.fn.val=function(i){function r(t){return t.hasClass(I[0])?F:n}if(!arguments.length){var t=k(this[0]);return r(t).call(t)}var o=k.isFunction(i);return this.each(function(t){var n=i,e=k(this);o&&(n=i.call(this,t,e.val())),r(e).call(e,n)})},k.fn.noUiSlider=function(t,n){switch(t){case"step":return this[0].getCurrentStep();case"options":return this[0].getOriginalOptions()}return(n?function(i){return this.each(function(){var t,n,e;this.destroy?(t=k(this).val(),n=this.destroy(),e=k.extend({},n,i),k(this).noUiSlider(e),this.reappend(),n.start===e.start&&k(this).val(t)):k(this).noUiSlider(i)})}:O).call(this,t)},k.fn.noUiSlider_pips=function(t){var e=t.mode,i=t.density||1,r=t.filter||!1,o=t.values||!1,s=t.format||{to:Math.round},a=t.stepped||!1;return this.each(function(){var t=this.getInfo(),n=function(n,t,e,i){if("range"===t||"steps"===t)return n.xVal;if("count"===t){var r,o=100/(e-1),s=0;for(e=[];(r=s++*o)<=100;)e.push(r);t="positions"}return"positions"===t?k.map(e,function(t){return n.fromStepping(i?n.getStep(t):t)}):"values"===t?i?k.map(e,function(t){return n.fromStepping(n.getStep(n.toStepping(t)))}):e:void 0}(t[0],e,o,a),n=L(t[0],i,e,n);return k(this).append(V(t[1],t[2],t[0].direction,n,r,s))})}}(window.jQuery||window.Zepto);

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.