vendor: 8,375 bytes, lines 1-202
1!function(t, e) { 2 if ("object" == typeof exports && "object" == typeof module) 3 module.exports = e(); 4 else if ("function" == typeof define && define.amd) 5 define([], e); 6 else { 7 var r = e(); 8 for (var n in r) 9 ("object" == typeof exports ? exports : t)[n] = r[n] 10 } 11}(self, (function() { 12 return function() { 13 "use strict"; 14 var t, 15 e, 16 r = { 17 d: function(t, e) { 18 for (var n in e) 19 r.o(e, n) && !r.o(t, n) && Object.defineProperty(t, n, { 20 enumerable: !0, 21 get: e[n] 22 }) 23 }, 24 o: function(t, e) { 25 return Object.prototype.hasOwnProperty.call(t, e) 26 }, 27 r: function(t) { 28 "undefined" != typeof Symbol && Symbol.toStringTag && Object.defineProperty(t, Symbol.toStringTag, { 29 value: "Module" 30 }), 31 Object.defineProperty(t, "__esModule", { 32 value: !0 33 }) 34 } 35 }, 36 n = {}; 37 function i(t) { 38 return "object" == typeof t && "function" == typeof t.to 39 } 40 function o(t) { 41 t.parentElement.removeChild(t) 42 } 43 function s(t) { 44 return null != t 45 } 46 function a(t) { 47 t.preventDefault() 48 } 49 function l(t) { 50 return "number" == typeof t && !isNaN(t) && isFinite(t) 51 } 52 function u(t, e, r) { 53 r > 0 && (d(t, e), setTimeout((function() { 54 h(t, e) 55 }), r)) 56 } 57 function c(t) { 58 return Math.max(Math.min(t, 100), 0) 59 } 60 function p(t) { 61 return Array.isArray(t) ? t : [t] 62 } 63 function f(t) { 64 var e = (t = String(t)).split("."); 65 return e.length > 1 ? e[1].length : 0 66 } 67 function d(t, e) { 68 t.classList && !/\s/.test(e) ? t.classList.add(e) : t.className += " " + e 69 } 70 function h(t, e) { 71 t.classList && !/\s/.test(e) ? t.classList.remove(e) : t.className = t.className.replace(new RegExp("(^|\\b)" + e.split(" ").join("|") + "(\\b|$)", "gi"), " ") 72 } 73 function m(t) { 74 var e = void 0 !== window.pageXOffset, 75 r = "CSS1Compat" === (t.compatMode || ""); 76 return { 77 x: e ? window.pageXOffset : r ? t.documentElement.scrollLeft : t.body.scrollLeft, 78 y: e ? window.pageYOffset : r ? t.documentElement.scrollTop : t.body.scrollTop 79 } 80 } 81 function g(t, e) { 82 return 100 / (e - t) 83 } 84 function v(t, e, r) { 85 return 100 * e / (t[r + 1] - t[r]) 86 } 87 function b(t, e) { 88 for (var r = 1; t >= e[r];) 89 r += 1; 90 return r 91 } 92 r.r(n), 93 r.d(n, { 94 noUiSlider: function() { 95 return J 96 } 97 }), 98 function(t) { 99 t.Range = "range", 100 t.Steps = "steps", 101 t.Positions = "positions", 102 t.Count = "count", 103 t.Values = "values" 104 }(t || (t = {})), 105 function(t) { 106 t[t.None = -1] = "None", 107 t[t.NoValue = 0] = "NoValue", 108 t[t.LargeValue = 1] = "LargeValue", 109 t[t.SmallValue = 2] = "SmallValue" 110 }(e || (e = {})); 111 var S = function() { 112 function t(t, e, r) { 113 var n; 114 this.xPct = [], 115 this.xVal = [], 116 this.xSteps = [], 117 this.xNumSteps = [], 118 this.xHighestCompleteStep = [], 119 this.xSteps = [r || !1], 120 this.xNumSteps = [!1], 121 this.snap = e; 122 var i = []; 123 for (Object.keys(t).forEach((function(e) { 124 i.push([p(t[e]), e]) 125 })), i.sort((function(t, e) { 126 return t[0][0] - e[0][0] 127 })), n = 0; n < i.length; n++) 128 this.handleEntryPoint(i[n][1], i[n][0]); 129 for (this.xNumSteps = this.xSteps.slice(0), n = 0; n < this.xNumSteps.length; n++) 130 this.handleStepPoint(n, this.xNumSteps[n]) 131 } 132 return t.prototype.getDistance = function(t) { 133 for (var e = [], r = 0; r < this.xNumSteps.length - 1; r++) 134 e[r] = v(this.xVal, t, r); 135 return e 136 }, t.prototype.getAbsoluteDistance = function(t, e, r) { 137 var n, 138 i = 0; 139 if (t < this.xPct[this.xPct.length - 1]) 140 for (; t > this.xPct[i + 1];) 141 i++; 142 else 143 t === this.xPct[this.xPct.length - 1] && (i = this.xPct.length - 2); 144 r || t !== this.xPct[i + 1] || i++, 145 null === e && (e = []); 146 var o = 1, 147 s = e[i], 148 a = 0, 149 l = 0, 150 u = 0, 151 c = 0; 152 for (n = r ? (t - this.xPct[i]) / (this.xPct[i + 1] - this.xPct[i]) : (this.xPct[i + 1] - t) / (this.xPct[i + 1] - this.xPct[i]); s > 0;) 153 a = this.xPct[i + 1 + c] - this.xPct[i + c], 154 e[i + c] * o + 100 - 100 * n > 100 ? (l = a * n, o = (s - 100 * n) / e[i + c], n = 1) : (l = e[i + c] * a / 100 * o, o = 0), 155 r ? (u -= l, this.xPct.length + c >= 1 && c--) : (u += l, this.xPct.length - c >= 1 && c++), 156 s = e[i + c] * o; 157 return t + u 158 }, t.prototype.toStepping = function(t) { 159 return function(t, e, r) { 160 if (r >= t.slice(-1)[0]) 161 return 100; 162 var n = b(r, t), 163 i = t[n - 1], 164 o = t[n], 165 s = e[n - 1], 166 a = e[n]; 167 return s + function(t, e) { 168 return v(t, t[0] < 0 ? e + Math.abs(t[0]) : e - t[0], 0) 169 }([i, o], r) / g(s, a) 170 }(this.xVal, this.xPct, t) 171 }, t.prototype.fromStepping = function(t) { 172 return function(t, e, r) { 173 if (r >= 100) 174 return t.slice(-1)[0]; 175 var n = b(r, e), 176 i = t[n - 1], 177 o = t[n], 178 s = e[n - 1]; 179 return function(t, e) { 180 return e * (t[1] - t[0]) / 100 + t[0] 181 }([i, o], (r - s) * g(s, e[n])) 182 }(this.xVal, this.xPct, t) 183 }, t.prototype.getStep = function(t) { 184 return function(t, e, r, n) { 185 if (100 === n) 186 return n; 187 var i = b(n, t), 188 o = t[i - 1], 189 s = t[i]; 190 return r ? n - o > (s - o) / 2 ? s : o : e[i - 1] ? t[i - 1] + function(t, e) { 191 return Math.round(t / e) * e 192 }(n - t[i - 1], e[i - 1]) : n 193 }(this.xPct, this.xSteps, this.snap, t) 194 }, t.prototype.getDefaultStep = function(t, e, r) { 195 var n = b(t, this.xPct); 196 return (100 === t || e && t === this.xPct[n - 1]) && (n = Math.max(n - 1, 1)), (this.xVal[n] - this.xVal[n - 1]) / r 197 }, t.prototype.getNearbySteps = function(t) { 198 var e = b(t, this.xPct); 199 return { 200 stepBefore: { 201 startValue: this.xVal[e - 2], 202 step: this.xNumSteps[e - 2],
vendor: 25,351 bytes, lines 203-807
203 highestStep: this.xHighestCompleteStep[e - 2] 204 }, 205 thisStep: { 206 startValue: this.xVal[e - 1], 207 step: this.xNumSteps[e - 1], 208 highestStep: this.xHighestCompleteStep[e - 1] 209 }, 210 stepAfter: { 211 startValue: this.xVal[e], 212 step: this.xNumSteps[e], 213 highestStep: this.xHighestCompleteStep[e] 214 } 215 } 216 }, t.prototype.countStepDecimals = function() { 217 var t = this.xNumSteps.map(f); 218 return Math.max.apply(null, t) 219 }, t.prototype.hasNoSize = function() { 220 return this.xVal[0] === this.xVal[this.xVal.length - 1] 221 }, t.prototype.convert = function(t) { 222 return this.getStep(this.toStepping(t)) 223 }, t.prototype.handleEntryPoint = function(t, e) { 224 var r; 225 if (!l(r = "min" === t ? 0 : "max" === t ? 100 : parseFloat(t)) || !l(e[0])) 226 throw new Error("noUiSlider: 'range' value isn't numeric."); 227 this.xPct.push(r), 228 this.xVal.push(e[0]); 229 var n = Number(e[1]); 230 r ? this.xSteps.push(!isNaN(n) && n) : isNaN(n) || (this.xSteps[0] = n), 231 this.xHighestCompleteStep.push(0) 232 }, t.prototype.handleStepPoint = function(t, e) { 233 if (e) 234 if (this.xVal[t] !== this.xVal[t + 1]) { 235 this.xSteps[t] = v([this.xVal[t], this.xVal[t + 1]], e, 0) / g(this.xPct[t], this.xPct[t + 1]); 236 var r = (this.xVal[t + 1] - this.xVal[t]) / this.xNumSteps[t], 237 n = Math.ceil(Number(r.toFixed(3)) - 1), 238 i = this.xVal[t] + this.xNumSteps[t] * n; 239 this.xHighestCompleteStep[t] = i 240 } else 241 this.xSteps[t] = this.xHighestCompleteStep[t] = this.xVal[t] 242 }, t 243 }(), 244 x = { 245 to: function(t) { 246 return void 0 === t ? "" : t.toFixed(2) 247 }, 248 from: Number 249 }, 250 y = { 251 target: "target", 252 base: "base", 253 origin: "origin", 254 handle: "handle", 255 handleLower: "handle-lower", 256 handleUpper: "handle-upper", 257 touchArea: "touch-area", 258 horizontal: "horizontal", 259 vertical: "vertical", 260 background: "background", 261 connect: "connect", 262 connects: "connects", 263 ltr: "ltr", 264 rtl: "rtl", 265 textDirectionLtr: "txt-dir-ltr", 266 textDirectionRtl: "txt-dir-rtl", 267 draggable: "draggable", 268 drag: "state-drag", 269 tap: "state-tap", 270 active: "active", 271 tooltip: "tooltip", 272 pips: "pips", 273 pipsHorizontal: "pips-horizontal", 274 pipsVertical: "pips-vertical", 275 marker: "marker", 276 markerHorizontal: "marker-horizontal", 277 markerVertical: "marker-vertical", 278 markerNormal: "marker-normal", 279 markerLarge: "marker-large", 280 markerSub: "marker-sub", 281 value: "value", 282 valueHorizontal: "value-horizontal", 283 valueVertical: "value-vertical", 284 valueNormal: "value-normal", 285 valueLarge: "value-large", 286 valueSub: "value-sub" 287 }, 288 w = ".__tooltips", 289 E = ".__aria"; 290 function C(t, e) { 291 if (!l(e)) 292 throw new Error("noUiSlider: 'step' is not numeric."); 293 t.singleStep = e 294 } 295 function N(t, e) { 296 if (!l(e)) 297 throw new Error("noUiSlider: 'keyboardPageMultiplier' is not numeric."); 298 t.keyboardPageMultiplier = e 299 } 300 function P(t, e) { 301 if (!l(e)) 302 throw new Error("noUiSlider: 'keyboardMultiplier' is not numeric."); 303 t.keyboardMultiplier = e 304 } 305 function V(t, e) { 306 if (!l(e)) 307 throw new Error("noUiSlider: 'keyboardDefaultStep' is not numeric."); 308 t.keyboardDefaultStep = e 309 } 310 function A(t, e) { 311 if ("object" != typeof e || Array.isArray(e)) 312 throw new Error("noUiSlider: 'range' is not an object."); 313 if (void 0 === e.min || void 0 === e.max) 314 throw new Error("noUiSlider: Missing 'min' or 'max' in 'range'."); 315 t.spectrum = new S(e, t.snap || !1, t.singleStep) 316 } 317 function k(t, e) { 318 if (e = p(e), !Array.isArray(e) || !e.length) 319 throw new Error("noUiSlider: 'start' option is incorrect."); 320 t.handles = e.length, 321 t.start = e 322 } 323 function U(t, e) { 324 if ("boolean" != typeof e) 325 throw new Error("noUiSlider: 'snap' option must be a boolean."); 326 t.snap = e 327 } 328 function M(t, e) { 329 if ("boolean" != typeof e) 330 throw new Error("noUiSlider: 'animate' option must be a boolean."); 331 t.animate = e 332 } 333 function D(t, e) { 334 if ("number" != typeof e) 335 throw new Error("noUiSlider: 'animationDuration' option must be a number."); 336 t.animationDuration = e 337 } 338 function O(t, e) { 339 var r, 340 n = [!1]; 341 if ("lower" === e ? e = [!0, !1] : "upper" === e && (e = [!1, !0]), !0 === e || !1 === e) { 342 for (r = 1; r < t.handles; r++) 343 n.push(e); 344 n.push(!1) 345 } else { 346 if (!Array.isArray(e) || !e.length || e.length !== t.handles + 1) 347 throw new Error("noUiSlider: 'connect' option doesn't match handle count."); 348 n = e 349 } 350 t.connect = n 351 } 352 function L(t, e) { 353 switch (e) { 354 case "horizontal": 355 t.ort = 0; 356 break; 357 case "vertical": 358 t.ort = 1; 359 break; 360 default: 361 throw new Error("noUiSlider: 'orientation' option is invalid.") 362 } 363 } 364 function j(t, e) { 365 if (!l(e)) 366 throw new Error("noUiSlider: 'margin' option must be numeric."); 367 0 !== e && (t.margin = t.spectrum.getDistance(e)) 368 } 369 function z(t, e) { 370 if (!l(e)) 371 throw new Error("noUiSlider: 'limit' option must be numeric."); 372 if (t.limit = t.spectrum.getDistance(e), !t.limit || t.handles < 2) 373 throw new Error("noUiSlider: 'limit' option is only supported on linear sliders with 2 or more handles.") 374 } 375 function H(t, e) { 376 var r; 377 if (!l(e) && !Array.isArray(e)) 378 throw new Error("noUiSlider: 'padding' option must be numeric or array of exactly 2 numbers."); 379 if (Array.isArray(e) && 2 !== e.length && !l(e[0]) && !l(e[1])) 380 throw new Error("noUiSlider: 'padding' option must be numeric or array of exactly 2 numbers."); 381 if (0 !== e) { 382 for (Array.isArray(e) || (e = [e, e]), t.padding = [t.spectrum.getDistance(e[0]), t.spectrum.getDistance(e[1])], r = 0; r < t.spectrum.xNumSteps.length - 1; r++) 383 if (t.padding[0][r] < 0 || t.padding[1][r] < 0) 384 throw new Error("noUiSlider: 'padding' option must be a positive number(s)."); 385 var n = e[0] + e[1], 386 i = t.spectrum.xVal[0]; 387 if (n / (t.spectrum.xVal[t.spectrum.xVal.length - 1] - i) > 1) 388 throw new Error("noUiSlider: 'padding' option must not exceed 100% of the range.") 389 } 390 } 391 function F(t, e) { 392 switch (e) { 393 case "ltr": 394 t.dir = 0; 395 break; 396 case "rtl": 397 t.dir = 1; 398 break; 399 default: 400 throw new Error("noUiSlider: 'direction' option was not recognized.") 401 } 402 } 403 function R(t, e) { 404 if ("string" != typeof e) 405 throw new Error("noUiSlider: 'behaviour' must be a string containing options."); 406 var r = e.indexOf("tap") >= 0, 407 n = e.indexOf("drag") >= 0, 408 i = e.indexOf("fixed") >= 0, 409 o = e.indexOf("snap") >= 0, 410 s = e.indexOf("hover") >= 0, 411 a = e.indexOf("unconstrained") >= 0, 412 l = e.indexOf("drag-all") >= 0, 413 u = e.indexOf("smooth-steps") >= 0; 414 if (i) { 415 if (2 !== t.handles) 416 throw new Error("noUiSlider: 'fixed' behaviour must be used with 2 handles"); 417 j(t, t.start[1] - t.start[0]) 418 } 419 if (a && (t.margin || t.limit)) 420 throw new Error("noUiSlider: 'unconstrained' behaviour cannot be used with margin or limit"); 421 t.events = { 422 tap: r || o, 423 drag: n, 424 dragAll: l, 425 smoothSteps: u, 426 fixed: i, 427 snap: o, 428 hover: s, 429 unconstrained: a 430 } 431 } 432 function T(t, e) { 433 if (!1 !== e) 434 if (!0 === e || i(e)) { 435 t.tooltips = []; 436 for (var r = 0; r < t.handles; r++) 437 t.tooltips.push(e) 438 } else { 439 if ((e = p(e)).length !== t.handles) 440 throw new Error("noUiSlider: must pass a formatter for all handles."); 441 e.forEach((function(t) { 442 if ("boolean" != typeof t && !i(t)) 443 throw new Error("noUiSlider: 'tooltips' must be passed a formatter or 'false'.") 444 })), 445 t.tooltips = e 446 } 447 } 448 function _(t, e) { 449 if (e.length !== t.handles) 450 throw new Error("noUiSlider: must pass a attributes for all handles."); 451 t.handleAttributes = e 452 } 453 function B(t, e) { 454 if (!i(e)) 455 throw new Error("noUiSlider: 'ariaFormat' requires 'to' method."); 456 t.ariaFormat = e 457 } 458 function q(t, e) { 459 if (!function(t) { 460 return i(t) && "function" == typeof t.from 461 }(e)) 462 throw new Error("noUiSlider: 'format' requires 'to' and 'from' methods."); 463 t.format = e 464 } 465 function X(t, e) { 466 if ("boolean" != typeof e) 467 throw new Error("noUiSlider: 'keyboardSupport' option must be a boolean."); 468 t.keyboardSupport = e 469 } 470 function Y(t, e) { 471 t.documentElement = e 472 } 473 function I(t, e) { 474 if ("string" != typeof e && !1 !== e) 475 throw new Error("noUiSlider: 'cssPrefix' must be a string or `false`."); 476 t.cssPrefix = e 477 } 478 function W(t, e) { 479 if ("object" != typeof e) 480 throw new Error("noUiSlider: 'cssClasses' must be an object."); 481 "string" == typeof t.cssPrefix ? (t.cssClasses = {}, Object.keys(e).forEach((function(r) { 482 t.cssClasses[r] = t.cssPrefix + e[r] 483 }))) : t.cssClasses = e 484 } 485 function $(t) { 486 var e = { 487 margin: null, 488 limit: null, 489 padding: null, 490 animate: !0, 491 animationDuration: 300, 492 ariaFormat: x, 493 format: x 494 }, 495 r = { 496 step: { 497 r: !1, 498 t: C 499 }, 500 keyboardPageMultiplier: { 501 r: !1, 502 t: N 503 }, 504 keyboardMultiplier: { 505 r: !1, 506 t: P 507 }, 508 keyboardDefaultStep: { 509 r: !1, 510 t: V 511 }, 512 start: { 513 r: !0, 514 t: k 515 }, 516 connect: { 517 r: !0, 518 t: O 519 }, 520 direction: { 521 r: !0, 522 t: F 523 }, 524 snap: { 525 r: !1, 526 t: U 527 }, 528 animate: { 529 r: !1, 530 t: M 531 }, 532 animationDuration: { 533 r: !1, 534 t: D 535 }, 536 range: { 537 r: !0, 538 t: A 539 }, 540 orientation: { 541 r: !1, 542 t: L 543 }, 544 margin: { 545 r: !1, 546 t: j 547 }, 548 limit: { 549 r: !1, 550 t: z 551 }, 552 padding: { 553 r: !1, 554 t: H 555 }, 556 behaviour: { 557 r: !0, 558 t: R 559 }, 560 ariaFormat: { 561 r: !1, 562 t: B 563 }, 564 format: { 565 r: !1, 566 t: q 567 }, 568 tooltips: { 569 r: !1, 570 t: T 571 }, 572 keyboardSupport: { 573 r: !0, 574 t: X 575 }, 576 documentElement: { 577 r: !1, 578 t: Y 579 }, 580 cssPrefix: { 581 r: !0, 582 t: I 583 }, 584 cssClasses: { 585 r: !0, 586 t: W 587 }, 588 handleAttributes: { 589 r: !1, 590 t: _ 591 } 592 }, 593 n = { 594 connect: !1, 595 direction: "ltr", 596 behaviour: "tap", 597 orientation: "horizontal", 598 keyboardSupport: !0, 599 cssPrefix: "noUi-", 600 cssClasses: y, 601 keyboardPageMultiplier: 5, 602 keyboardMultiplier: 1, 603 keyboardDefaultStep: 10 604 }; 605 t.format && !t.ariaFormat && (t.ariaFormat = t.format), 606 Object.keys(r).forEach((function(i) { 607 if (s(t[i]) || void 0 !== n[i]) 608 r[i].t(e, s(t[i]) ? t[i] : n[i]); 609 else if (r[i].r) 610 throw new Error("noUiSlider: '" + i + "' is required.") 611 })), 612 e.pips = t.pips; 613 var i = document.createElement("div"), 614 o = void 0 !== i.style.msTransform, 615 a = void 0 !== i.style.transform; 616 return e.transformRule = a ? "transform" : o ? "msTransform" : "webkitTransform", e.style = [["left", "top"], ["right", "bottom"]][e.dir][e.ort], e 617 } 618 function G(r, n, i) { 619 var l, 620 f, 621 g, 622 v, 623 b, 624 S, 625 x, 626 y = window.navigator.pointerEnabled ? { 627 start: "pointerdown", 628 move: "pointermove", 629 end: "pointerup" 630 } : window.navigator.msPointerEnabled ? { 631 start: "MSPointerDown", 632 move: "MSPointerMove", 633 end: "MSPointerUp" 634 } : { 635 start: "mousedown touchstart", 636 move: "mousemove touchmove", 637 end: "mouseup touchend" 638 }, 639 C = window.CSS && CSS.supports && CSS.supports("touch-action", "none") && function() { 640 var t = !1; 641 try { 642 var e = Object.defineProperty({}, "passive", { 643 get: function() { 644 t = !0 645 } 646 }); 647 window.addEventListener("test", null, e) 648 } catch (t) {} 649 return t 650 }(), 651 N = r, 652 P = n.spectrum, 653 V = [], 654 A = [], 655 k = [], 656 U = 0, 657 M = {}, 658 D = r.ownerDocument, 659 O = n.documentElement || D.documentElement, 660 L = D.body, 661 j = "rtl" === D.dir || 1 === n.ort ? 0 : 100; 662 function z(t, e) { 663 var r = D.createElement("div"); 664 return e && d(r, e), t.appendChild(r), r 665 } 666 function H(t, e) { 667 var r = z(t, n.cssClasses.origin), 668 i = z(r, n.cssClasses.handle); 669 if (z(i, n.cssClasses.touchArea), i.setAttribute("data-handle", String(e)), n.keyboardSupport && (i.setAttribute("tabindex", "0"), i.addEventListener("keydown", (function(t) { 670 return function(t, e) { 671 if (T() || _(e)) 672 return !1; 673 var r = ["Left", "Right"], 674 i = ["Down", "Up"], 675 o = ["PageDown", "PageUp"], 676 s = ["Home", "End"]; 677 n.dir && !n.ort ? r.reverse() : n.ort && !n.dir && (i.reverse(), o.reverse()); 678 var a, 679 l = t.key.replace("Arrow", ""), 680 u = l === o[0], 681 c = l === o[1], 682 p = l === i[0] || l === r[0] || u, 683 f = l === i[1] || l === r[1] || c, 684 d = l === s[1]; 685 if (!(p || f || l === s[0] || d)) 686 return !0; 687 if (t.preventDefault(), f || p) { 688 var h = p ? 0 : 1, 689 m = ht(e)[h]; 690 if (null === m) 691 return !1; 692 !1 === m && (m = P.getDefaultStep(A[e], p, n.keyboardDefaultStep)), 693 m *= c || u ? n.keyboardPageMultiplier : n.keyboardMultiplier, 694 m = Math.max(m, 1e-7), 695 m *= p ? -1 : 1, 696 a = V[e] + m 697 } else 698 a = d ? n.spectrum.xVal[n.spectrum.xVal.length - 1] : n.spectrum.xVal[0]; 699 return ut(e, P.toStepping(a), !0, !0), nt("slide", e), nt("update", e), nt("change", e), nt("set", e), !1 700 }(t, e) 701 }))), void 0 !== n.handleAttributes) { 702 var o = n.handleAttributes[e]; 703 Object.keys(o).forEach((function(t) { 704 i.setAttribute(t, o[t]) 705 })) 706 } 707 return i.setAttribute("role", "slider"), i.setAttribute("aria-orientation", n.ort ? "vertical" : "horizontal"), 0 === e ? d(i, n.cssClasses.handleLower) : e === n.handles - 1 && d(i, n.cssClasses.handleUpper), r.handle = i, r 708 } 709 function F(t, e) { 710 return !!e && z(t, n.cssClasses.connect) 711 } 712 function R(t, e) { 713 return !(!n.tooltips || !n.tooltips[e]) && z(t.firstChild, n.cssClasses.tooltip) 714 } 715 function T() { 716 return N.hasAttribute("disabled") 717 } 718 function _(t) { 719 return f[t].hasAttribute("disabled") 720 } 721 function B() { 722 b && (rt("update" + w), b.forEach((function(t) { 723 t && o(t) 724 })), b = null) 725 } 726 function q() { 727 B(), 728 b = f.map(R), 729 et("update" + w, (function(t, e, r) { 730 if (b && n.tooltips && !1 !== b[e]) { 731 var i = t[e]; 732 !0 !== n.tooltips[e] && (i = n.tooltips[e].to(r[e])), 733 b[e].innerHTML = i 734 } 735 })) 736 } 737 function X(t, e) { 738 return t.map((function(t) { 739 return P.fromStepping(e ? P.getStep(t) : t) 740 })) 741 } 742 function Y() { 743 v && (o(v), v = null) 744 } 745 function I(r) { 746 Y(); 747 var i = function(r) { 748 var n, 749 i = function(e) { 750 if (e.mode === t.Range || e.mode === t.Steps) 751 return P.xVal; 752 if (e.mode === t.Count) { 753 if (e.values < 2) 754 throw new Error("noUiSlider: 'values' (>= 2) required for mode 'count'."); 755 for (var r = e.values - 1, n = 100 / r, i = []; r--;) 756 i[r] = r * n; 757 return i.push(100), X(i, e.stepped) 758 } 759 return e.mode === t.Positions ? X(e.values, e.stepped) : e.mode === t.Values ? e.stepped ? e.values.map((function(t) { 760 return P.fromStepping(P.getStep(P.toStepping(t))) 761 })) : e.values : [] 762 }(r), 763 o = {}, 764 s = P.xVal[0], 765 a = P.xVal[P.xVal.length - 1], 766 l = !1, 767 u = !1, 768 c = 0; 769 return n = i.slice().sort((function(t, e) { 770 return t - e 771 })), (i = n.filter((function(t) { 772 return !this[t] && (this[t] = !0) 773 }), {}))[0] !== s && (i.unshift(s), l = !0), i[i.length - 1] !== a && (i.push(a), u = !0), i.forEach((function(n, s) { 774 var a, 775 p, 776 f, 777 d, 778 h, 779 m, 780 g, 781 v, 782 b, 783 S, 784 x = n, 785 y = i[s + 1], 786 w = r.mode === t.Steps; 787 for (w && (a = P.xNumSteps[s]), a || (a = y - x), void 0 === y && (y = x), a = Math.max(a, 1e-7), p = x; p <= y; p = Number((p + a).toFixed(7))) { 788 for (v = (h = (d = P.toStepping(p)) - c) / (r.density || 1), S = h / (b = Math.round(v)), f = 1; f <= b; f += 1) 789 o[(m = c + f * S).toFixed(5)] = [P.fromStepping(m), 0]; 790 g = i.indexOf(p) > -1 ? e.LargeValue : w ? e.SmallValue : e.NoValue, 791 !s && l && p !== y && (g = 0), 792 p === y && u || (o[d.toFixed(5)] = [p, g]), 793 c = d 794 } 795 })), o 796 }(r), 797 o = r.filter, 798 s = r.format || { 799 to: function(t) { 800 return String(Math.round(t)) 801 } 802 }; 803 return v = N.appendChild(function(t, r, i) { 804 var o, 805 s, 806 a = D.createElement("div"), 807 l = ((o = {}
807)[e.None] = "", o[e.NoValue] = n.cssClasses.valueNormal, o[e.LargeValue] = n.cssClasses.valueLarge, o[e.SmallValue] = n.cssClasses.valueSub, o), 808 u = ((s = {})[e.None] = "", s[e.NoValue] = n.cssClasses.markerNormal, s[e.LargeValue] = n.cssClasses.markerLarge, s[e.SmallValue] = n.cssClasses.markerSub, s), 809 c = [n.cssClasses.valueHorizontal, n.cssClasses.valueVertical], 810 p = [n.cssClasses.markerHorizontal, n.cssClasses.markerVertical]; 811 function f(t, e) { 812 var r = e === n.cssClasses.value, 813 i = r ? l : u; 814 return e + " " + (r ? c : p)[n.ort] + " " + i[t] 815 } 816 return d(a, n.cssClasses.pips), d(a, 0 === n.ort ? n.cssClasses.pipsHorizontal : n.cssClasses.pipsVertical), Object.keys(t).forEach((function(o) { 817 !function(t, o, s) { 818 if ((s = r ? r(o, s) : s) !== e.None) { 819 var l = z(a, !1);
vendor: 4,449 bytes, lines 820-895
820 l.className = f(s, n.cssClasses.marker), 821 l.style[n.style] = t + "%", 822 s > e.NoValue && ((l = z(a, !1)).className = f(s, n.cssClasses.value), l.setAttribute("data-value", String(o)), l.style[n.style] = t + "%", l.innerHTML = String(i.to(o))) 823 } 824 }(o, t[o][0], t[o][1]) 825 })), a 826 }(i, o, s)) 827 } 828 function W() { 829 var t = l.getBoundingClientRect(), 830 e = "offset" + ["Width", "Height"][n.ort]; 831 return 0 === n.ort ? t.width || l[e] : t.height || l[e] 832 } 833 function G(t, e, r, i) { 834 var o = function(o) { 835 var s, 836 a, 837 l = function(t, e, r) { 838 var n = 0 === t.type.indexOf("touch"), 839 i = 0 === t.type.indexOf("mouse"), 840 o = 0 === t.type.indexOf("pointer"), 841 s = 0, 842 a = 0; 843 if (0 === t.type.indexOf("MSPointer") && (o = !0), "mousedown" === t.type && !t.buttons && !t.touches) 844 return !1; 845 if (n) { 846 var l = function(e) { 847 var n = e.target; 848 return n === r || r.contains(n) || t.composed && t.composedPath().shift() === r 849 }; 850 if ("touchstart" === t.type) { 851 var u = Array.prototype.filter.call(t.touches, l); 852 if (u.length > 1) 853 return !1; 854 s = u[0].pageX, 855 a = u[0].pageY 856 } else { 857 var c = Array.prototype.find.call(t.changedTouches, l); 858 if (!c) 859 return !1; 860 s = c.pageX, 861 a = c.pageY 862 } 863 } 864 return e = e || m(D), (i || o) && (s = t.clientX + e.x, a = t.clientY + e.y), t.pageOffset = e, t.points = [s, a], t.cursor = i || o, t 865 }(o, i.pageOffset, i.target || e); 866 return !!l && !(T() && !i.doNotReject) && (s = N, a = n.cssClasses.tap, !((s.classList ? s.classList.contains(a) : new RegExp("\\b" + a + "\\b").test(s.className)) && !i.doNotReject) && !(t === y.start && void 0 !== l.buttons && l.buttons > 1) && (!i.hover || !l.buttons) && (C || l.preventDefault(), l.calcPoint = l.points[n.ort], void r(l, i))) 867 }, 868 s = []; 869 return t.split(" ").forEach((function(t) { 870 e.addEventListener(t, o, !!C && { 871 passive: !0 872 }), 873 s.push([t, o]) 874 })), s 875 } 876 function J(t) { 877 var e, 878 r, 879 i, 880 o, 881 s, 882 a, 883 u = 100 * (t - (e = l, r = n.ort, i = e.getBoundingClientRect(), s = (o = e.ownerDocument).documentElement, a = m(o), /webkit.*Chrome.*Mobile/i.test(navigator.userAgent) && (a.x = 0), r ? i.top + a.y - s.clientTop : i.left + a.x - s.clientLeft)) / W(); 884 return u = c(u), n.dir ? 100 - u : u 885 } 886 function K(t, e) { 887 "mouseout" === t.type && "HTML" === t.target.nodeName && null === t.relatedTarget && Z(t, e) 888 } 889 function Q(t, e) { 890 if (-1 === navigator.appVersion.indexOf("MSIE 9") && 0 === t.buttons && 0 !== e.buttonsProperty) 891 return Z(t, e); 892 var r = (n.dir ? -1 : 1) * (t.calcPoint - e.startCalcPoint); 893 st(r > 0, 100 * r / e.baseSize, e.locations, e.handleNumbers, e.connect) 894 } 895 function Z(t, e) {
vendor: 7,153 bytes, lines 896-1044
896 e.handle && (h(e.handle, n.cssClasses.active), U -= 1), 897 e.listeners.forEach((function(t) { 898 O.removeEventListener(t[0], t[1]) 899 })), 900 0 === U && (h(N, n.cssClasses.drag), lt(), t.cursor && (L.style.cursor = "", L.removeEventListener("selectstart", a))), 901 n.events.smoothSteps && (e.handleNumbers.forEach((function(t) { 902 ut(t, A[t], !0, !0, !1, !1) 903 })), e.handleNumbers.forEach((function(t) { 904 nt("update", t) 905 }))), 906 e.handleNumbers.forEach((function(t) { 907 nt("change", t), 908 nt("set", t), 909 nt("end", t) 910 })) 911 } 912 function tt(t, e) { 913 if (!e.handleNumbers.some(_)) { 914 var r; 915 1 === e.handleNumbers.length && (r = f[e.handleNumbers[0]].children[0], U += 1, d(r, n.cssClasses.active)), 916 t.stopPropagation(); 917 var i = [], 918 o = G(y.move, O, Q, { 919 target: t.target, 920 handle: r, 921 connect: e.connect, 922 listeners: i, 923 startCalcPoint: t.calcPoint, 924 baseSize: W(), 925 pageOffset: t.pageOffset, 926 handleNumbers: e.handleNumbers, 927 buttonsProperty: t.buttons, 928 locations: A.slice() 929 }), 930 s = G(y.end, O, Z, { 931 target: t.target, 932 handle: r, 933 listeners: i, 934 doNotReject: !0, 935 handleNumbers: e.handleNumbers 936 }), 937 l = G("mouseout", O, K, { 938 target: t.target, 939 handle: r, 940 listeners: i, 941 doNotReject: !0, 942 handleNumbers: e.handleNumbers 943 }); 944 i.push.apply(i, o.concat(s, l)), 945 t.cursor && (L.style.cursor = getComputedStyle(t.target).cursor, f.length > 1 && d(N, n.cssClasses.drag), L.addEventListener("selectstart", a, !1)), 946 e.handleNumbers.forEach((function(t) { 947 nt("start", t) 948 })) 949 } 950 } 951 function et(t, e) { 952 M[t] = M[t] || [], 953 M[t].push(e), 954 "update" === t.split(".")[0] && f.forEach((function(t, e) { 955 nt("update", e) 956 })) 957 } 958 function rt(t) { 959 var e = t && t.split(".")[0], 960 r = e ? t.substring(e.length) : t; 961 Object.keys(M).forEach((function(t) { 962 var n = t.split(".")[0], 963 i = t.substring(n.length); 964 e && e !== n || r && r !== i || function(t) { 965 return t === E || t === w 966 }(i) && r !== i || delete M[t] 967 })) 968 } 969 function nt(t, e, r) { 970 Object.keys(M).forEach((function(i) { 971 var o = i.split(".")[0]; 972 t === o && M[i].forEach((function(t) { 973 t.call(mt, V.map(n.format.to), e, V.slice(), r || !1, A.slice(), mt) 974 })) 975 })) 976 } 977 function it(t, e, r, i, o, s, a) { 978 var l; 979 return f.length > 1 && !n.events.unconstrained && (i && e > 0 && (l = P.getAbsoluteDistance(t[e - 1], n.margin, !1), r = Math.max(r, l)), o && e < f.length - 1 && (l = P.getAbsoluteDistance(t[e + 1], n.margin, !0), r = Math.min(r, l))), f.length > 1 && n.limit && (i && e > 0 && (l = P.getAbsoluteDistance(t[e - 1], n.limit, !1), r = Math.min(r, l)), o && e < f.length - 1 && (l = P.getAbsoluteDistance(t[e + 1], n.limit, !0), r = Math.max(r, l))), n.padding && (0 === e && (l = P.getAbsoluteDistance(0, n.padding[0], !1), r = Math.max(r, l)), e === f.length - 1 && (l = P.getAbsoluteDistance(100, n.padding[1], !0), r = Math.min(r, l))), a || (r = P.getStep(r)), !((r = c(r)) === t[e] && !s) && r 980 } 981 function ot(t, e) { 982 var r = n.ort; 983 return (r ? e : t) + ", " + (r ? t : e) 984 } 985 function st(t, e, r, i, o) { 986 var s = r.slice(), 987 a = i[0], 988 l = n.events.smoothSteps, 989 u = [!t, t], 990 c = [t, !t]; 991 i = i.slice(), 992 t && i.reverse(), 993 i.length > 1 ? i.forEach((function(t, r) { 994 var n = it(s, t, s[t] + e, u[r], c[r], !1, l); 995 !1 === n ? e = 0 : (e = n - s[t], s[t] = n) 996 })) : u = c = [!0]; 997 var p = !1; 998 i.forEach((function(t, n) { 999 p = ut(t, r[t] + e, u[n], c[n], !1, l) || p 1000 })), 1001 p && (i.forEach((function(t) { 1002 nt("update", t), 1003 nt("slide", t) 1004 })), null != o && nt("drag", a)) 1005 } 1006 function at(t, e) { 1007 return n.dir ? 100 - t - e : t 1008 } 1009 function lt() { 1010 k.forEach((function(t) { 1011 var e = A[t] > 50 ? -1 : 1, 1012 r = 3 + (f.length + e * t); 1013 f[t].style.zIndex = String(r) 1014 })) 1015 } 1016 function ut(t, e, r, i, o, s) { 1017 return o || (e = it(A, t, e, r, i, !1, s)), !1 !== e && (function(t, e) { 1018 A[t] = e, 1019 V[t] = P.fromStepping(e); 1020 var r = "translate(" + ot(at(e, 0) - j + "%", "0") + ")"; 1021 f[t].style[n.transformRule] = r, 1022 ct(t), 1023 ct(t + 1) 1024 }(t, e), !0) 1025 } 1026 function ct(t) { 1027 if (g[t]) { 1028 var e = 0, 1029 r = 100; 1030 0 !== t && (e = A[t - 1]), 1031 t !== g.length - 1 && (r = A[t]); 1032 var i = r - e, 1033 o = "translate(" + ot(at(e, i) + "%", "0") + ")", 1034 s = "scale(" + ot(i / 100, "1") + ")"; 1035 g[t].style[n.transformRule] = o + " " + s 1036 } 1037 } 1038 function pt(t, e) { 1039 return null === t || !1 === t || void 0 === t ? A[e] : ("number" == typeof t && (t = String(t)), !1 !== (t = n.format.from(t)) && (t = P.toStepping(t)), !1 === t || isNaN(t) ? A[e] : t) 1040 } 1041 function ft(t, e, r) { 1042 var i = p(t), 1043 o = void 0 === A[0]; 1044 e = void 0 === e || e,
vendor: 6,025 bytes, lines 1045-1176
1045 n.animate && !o && u(N, n.cssClasses.tap, n.animationDuration), 1046 k.forEach((function(t) { 1047 ut(t, pt(i[t], t), !0, !1, r) 1048 })); 1049 var s = 1 === k.length ? 0 : 1; 1050 if (o && P.hasNoSize() && (r = !0, A[0] = 0, k.length > 1)) { 1051 var a = 100 / (k.length - 1); 1052 k.forEach((function(t) { 1053 A[t] = t * a 1054 })) 1055 } 1056 for (; s < k.length; ++s) 1057 k.forEach((function(t) { 1058 ut(t, A[t], !0, !0, r) 1059 })); 1060 lt(), 1061 k.forEach((function(t) { 1062 nt("update", t), 1063 null !== i[t] && e && nt("set", t) 1064 })) 1065 } 1066 function dt(t) { 1067 if (void 0 === t && (t = !1), t) 1068 return 1 === V.length ? V[0] : V.slice(0); 1069 var e = V.map(n.format.to); 1070 return 1 === e.length ? e[0] : e 1071 } 1072 function ht(t) { 1073 var e = A[t], 1074 r = P.getNearbySteps(e), 1075 i = V[t], 1076 o = r.thisStep.step, 1077 s = null; 1078 if (n.snap) 1079 return [i - r.stepBefore.startValue || null, r.stepAfter.startValue - i || null]; 1080 !1 !== o && i + o > r.stepAfter.startValue && (o = r.stepAfter.startValue - i), 1081 s = i > r.thisStep.startValue ? r.thisStep.step : !1 !== r.stepBefore.step && i - r.stepBefore.highestStep, 1082 100 === e ? o = null : 0 === e && (s = null); 1083 var a = P.countStepDecimals(); 1084 return null !== o && !1 !== o && (o = Number(o.toFixed(a))), null !== s && !1 !== s && (s = Number(s.toFixed(a))), [s, o] 1085 } 1086 d(S = N, n.cssClasses.target), 1087 0 === n.dir ? d(S, n.cssClasses.ltr) : d(S, n.cssClasses.rtl), 1088 0 === n.ort ? d(S, n.cssClasses.horizontal) : d(S, n.cssClasses.vertical), 1089 d(S, "rtl" === getComputedStyle(S).direction ? n.cssClasses.textDirectionRtl : n.cssClasses.textDirectionLtr), 1090 l = z(S, n.cssClasses.base), 1091 function(t, e) { 1092 var r = z(e, n.cssClasses.connects); 1093 f = [], 1094 (g = []).push(F(r, t[0])); 1095 for (var i = 0; i < n.handles; i++) 1096 f.push(H(e, i)), 1097 k[i] = i, 1098 g.push(F(r, t[i + 1])) 1099 }(n.connect, l), 1100 (x = n.events).fixed || f.forEach((function(t, e) { 1101 G(y.start, t.children[0], tt, { 1102 handleNumbers: [e] 1103 }) 1104 })), 1105 x.tap && G(y.start, l, (function(t) { 1106 t.stopPropagation(); 1107 var e = J(t.calcPoint), 1108 r = function(t) { 1109 var e = 100, 1110 r = !1; 1111 return f.forEach((function(n, i) { 1112 if (!_(i)) { 1113 var o = A[i], 1114 s = Math.abs(o - t); 1115 (s < e || s <= e && t > o || 100 === s && 100 === e) && (r = i, e = s) 1116 } 1117 })), r 1118 }(e); 1119 !1 !== r && (n.events.snap || u(N, n.cssClasses.tap, n.animationDuration), ut(r, e, !0, !0), lt(), nt("slide", r, !0), nt("update", r, !0), n.events.snap ? tt(t, { 1120 handleNumbers: [r] 1121 }) : (nt("change", r, !0), nt("set", r, !0))) 1122 }), {}), 1123 x.hover && G(y.move, l, (function(t) { 1124 var e = J(t.calcPoint), 1125 r = P.getStep(e), 1126 n = P.fromStepping(r); 1127 Object.keys(M).forEach((function(t) { 1128 "hover" === t.split(".")[0] && M[t].forEach((function(t) { 1129 t.call(mt, n) 1130 })) 1131 })) 1132 }), { 1133 hover: !0 1134 }), 1135 x.drag && g.forEach((function(t, e) { 1136 if (!1 !== t && 0 !== e && e !== g.length - 1) { 1137 var r = f[e - 1], 1138 i = f[e], 1139 o = [t], 1140 s = [r, i], 1141 a = [e - 1, e]; 1142 d(t, n.cssClasses.draggable), 1143 x.fixed && (o.push(r.children[0]), o.push(i.children[0])), 1144 x.dragAll && (s = f, a = k), 1145 o.forEach((function(e) { 1146 G(y.start, e, tt, { 1147 handles: s, 1148 handleNumbers: a, 1149 connect: t 1150 }) 1151 })) 1152 } 1153 })), 1154 ft(n.start), 1155 n.pips && I(n.pips), 1156 n.tooltips && q(), 1157 rt("update" + E), 1158 et("update" + E, (function(t, e, r, i, o) { 1159 k.forEach((function(t) { 1160 var e = f[t], 1161 i = it(A, t, 0, !0, !0, !0), 1162 s = it(A, t, 100, !0, !0, !0), 1163 a = o[t], 1164 l = String(n.ariaFormat.to(r[t])); 1165 i = P.fromStepping(i).toFixed(1), 1166 s = P.fromStepping(s).toFixed(1), 1167 a = P.fromStepping(a).toFixed(1), 1168 e.children[0].setAttribute("aria-valuemin", i), 1169 e.children[0].setAttribute("aria-valuemax", s), 1170 e.children[0].setAttribute("aria-valuenow", a), 1171 e.children[0].setAttribute("aria-valuetext", l) 1172 })) 1173 })); 1174 var mt = { 1175 destroy: function() { 1176 for (rt(E), rt(w), Object.keys(n.cssClasses).forEach((function(t) {
1177 h(N, n.cssClasses[t]) 1178 })); N.firstChild;) 1179 N.removeChild(N.firstChild); 1180 delete N.noUiSlider 1181 }, 1182 steps: function() { 1183 return k.map(ht) 1184 }, 1185 on: et, 1186 off: rt, 1187 get: dt, 1188 set: ft, 1189 setHandle: function(t, e, r, n) { 1190 if (!((t = Number(t)) >= 0 && t < k.length)) 1191 throw new Error("noUiSlider: invalid handle number, got: " + t); 1192 ut(t, pt(e, t), !0, !0, n), 1193 nt("update", t), 1194 r && nt("set", t) 1195 }, 1196 reset: function(t) { 1197 ft(n.start, t) 1198 }, 1199 disable: function(t) { 1200 null != t ? (f[t].setAttribute("disabled", ""), f[t].handle.removeAttribute("tabindex")) : (N.setAttribute("disabled", ""), f.forEach((function(t) { 1201 t.handle.removeAttribute("tabindex") 1202 }))) 1203 }, 1204 enable: function(t) { 1205 null != t ? (f[t].removeAttribute("disabled"), f[t].handle.setAttribute("tabindex", "0")) : (N.removeAttribute("disabled"), f.forEach((function(t) { 1206 t.removeAttribute("disabled"), 1207 t.handle.setAttribute("tabindex", "0") 1208 }))) 1209 }, 1210 __moveHandles: function(t, e, r) { 1211 st(t, e, A, r) 1212 }, 1213 options: i, 1214 updateOptions: function(t, e) { 1215 var r = dt(), 1216 o = ["margin", "limit", "padding", "range", "animate", "snap", "step", "format", "pips", "tooltips"]; 1217 o.forEach((function(e) { 1218 void 0 !== t[e] && (i[e] = t[e]) 1219 })); 1220 var a = $(i); 1221 o.forEach((function(e) { 1222 void 0 !== t[e] && (n[e] = a[e]) 1223 })), 1224 P = a.spectrum, 1225 n.margin = a.margin, 1226 n.limit = a.limit, 1227 n.padding = a.padding, 1228 n.pips ? I(n.pips) : Y(), 1229 n.tooltips ? q() : B(), 1230 A = [], 1231 ft(s(t.start) ? t.start : r, e) 1232 }, 1233 target: N, 1234 removePips: Y, 1235 removeTooltips: B, 1236 getPositions: function() { 1237 return A.slice() 1238 }, 1239 getTooltips: function() { 1240 return b 1241 }, 1242 getOrigins: function() { 1243 return f 1244 }, 1245 pips: I 1246 }; 1247 return mt 1248 } 1249 var J = { 1250 __spectrum: S, 1251 cssClasses: y, 1252 create: function(t, e) { 1253 if (!t || !t.nodeName) 1254 throw new Error("noUiSlider: create requires a single element, got: " + t); 1255 if (t.noUiSlider) 1256 throw new Error("noUiSlider: Slider was already initialized."); 1257 var r = G(t, $(e), e); 1258 return t.noUiSlider = r, r 1259 } 1260 }; 1261 try { 1262 window.noUiSlider = J 1263 } catch (t) {} 1264 return n 1265 }() 1266}));
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.