1class CookieJar { 2 constructor() {} 3 set(t, e, n) { 4 var i = ""; 5 if (n) { 6 var o = new Date(); 7 (o.setTime(o.getTime() + 24 * n * 60 * 60 * 1e3), 8 (i = "; expires=" + o.toUTCString())); 9 } 10 document.cookie = t + "=" + (e || "") + i + "; path=/"; 11 } 12 get(t) { 13 for ( 14 var e = t + "=", n = document.cookie.split(";"), i = 0; 15 i < n.length; 16 i++ 17 ) { 18 for (var o = n[i]; " " == o.charAt(0); ) o = o.substring(1, o.length); 19 if (0 == o.indexOf(e)) return o.substring(e.length, o.length); 20 } 21 return null; 22 } 23 erase(t) { 24 document.cookie = t + "=; Max-Age=-99999999"; 25 } 26} 27class AlertBanner { 28 constructor(t, e) { 29 ((this.alert = document.querySelector(t)), 30 (this.closeButton = this.alert.querySelector(".alert-close")), 31 (this.type = this.alert.dataset.type), 32 (this.cookieID = this.alert.id), 33 (this.cookies = e), 34 this.init()); 35 } 36 open() { 37 this.alert.dataset.open = !0; 38 } 39 close() { 40 ((this.alert.dataset.open = !1), 41 this.cookies.set("tpay-" + this.cookieID, "hide", 0)); 42 } 43 init() { 44 (this.closeButton.addEventListener("click", () => { 45 this.close(); 46 }), 47 this.cookies.get("tpay-" + this.cookieID) || 48 this.cookies.set("tpay-" + this.cookieID, "show", 0), 49 "show" == this.cookies.get("tpay-" + this.cookieID) 50 ? this.open() 51 : this.close()); 52 } 53} 54class Expand { 55 constructor(t) { 56 ((this.wrapper = t), 57 (this.toggle = t.querySelector(".expand-trigger")), 58 (this.target = t.querySelector(".expand-content")), 59 (this.targetHeight = this.target.offsetHeight), 60 (this.videos = this.target.querySelectorAll(".video-wrapper")), 61 this.init()); 62 } 63 open() { 64 (this.loadIframes(), 65 this.wrapper.setAttribute("data-expand-toggle", "open"), 66 (this.target.style.maxHeight = this.targetHeight + "px")); 67 } 68 close() { 69 (this.wrapper.setAttribute("data-expand-toggle", "closed"), 70 (this.target.style.maxHeight = null)); 71 } 72 heightCalc() { 73 if ( 74 ((this.wrapper.style.transition = ""), 75 (this.toggle.querySelector(".indicator").style.transition = ""), 76 (this.target.style.transition = ""), 77 this.open(), 78 (this.target.style.maxHeight = "10000vh"), 79 (this.targetHeight = this.target.offsetHeight), 80 this.target.setAttribute("data-height", this.targetHeight), 81 window.location.hash) 82 ) { 83 let t = window.location.hash; 84 this.wrapper.querySelector(t) ? this.open() : this.close(); 85 } else this.close(); 86 setTimeout(() => { 87 ((this.wrapper.style.transition = "border-color 150ms ease"), 88 (this.toggle.querySelector(".indicator").style.transition = 89 "transform 150ms ease"), 90 (this.target.style.transition = 91 "max-height 150ms ease-out, padding-bottom 250ms ease")); 92 }, 1); 93 } 94 unloadIframes() { 95 this.videos && 96 this.videos.forEach((t) => { 97 let e = t.querySelector("iframe"); 98 e && ((t.dataset.src = e.src), e.remove()); 99 }); 100 } 101 loadIframes() { 102 setTimeout(() => { 103 if ("open" == this.wrapper.dataset.expandToggle && this.videos) { 104 this.target.querySelectorAll(".video-wrapper").forEach((t) => { 105 t.innerHTML = `<iframe src="${t.dataset.src}"></iframe>`; 106 }); 107 } 108 }, 1500); 109 } 110 init() { 111 (this.heightCalc(), 112 this.unloadIframes(), 113 this.toggle.addEventListener( 114 "click", 115 (t) => { 116 (t.preventDefault(), 117 "open" === this.wrapper.dataset.expandToggle 118 ? this.close() 119 : this.open()); 120 }, 121 !1, 122 )); 123 } 124} 125class ExpandGrid { 126 constructor(t) { 127 ((this.grid = t.querySelector("ul")), 128 (this.toggles = t.querySelectorAll("[data-expand-grid-toggle-id]")), 129 this.init()); 130 } 131 open(t, e) { 132 (e.closest(".expand-grid-item").setAttribute("data-toggle", "open"), 133 e.setAttribute("data-toggle", "open"), 134 t.setAttribute("data-target-toggle", "open"), 135 (e.style.maxHeight = e.dataset.height + "px")); 136 } 137 close(t, e) { 138 (e.closest(".expand-grid-item").setAttribute("data-toggle", "closed"), 139 e.setAttribute("data-toggle", "close"), 140 t.setAttribute("data-target-toggle", "close"), 141 (e.style.maxHeight = null)); 142 } 143 init() {
144 this.toggles.forEach((t) => { 145 let e = document.getElementById(t.dataset.expandGridToggleId), 146 n = e.offsetHeight; 147 ((e.dataset.height = n), 148 this.close(t, e), 149 t.addEventListener( 150 "click", 151 (n) => { 152 (n.preventDefault(), 153 "open" === e.dataset.toggle ? this.close(t, e) : this.open(t, e)); 154 }, 155 !1, 156 )); 157 }); 158 } 159} 160class InfoCarousel { 161 constructor(t) { 162 ((this.triggers = t.querySelectorAll("[data-content-id]")), 163 (this.images = t.querySelectorAll(".info-carousel-slide-image")), 164 (this.copies = t.querySelectorAll(".info-carousel-slide-copy")), 165 this.init()); 166 } 167 init() { 168 this.triggers.forEach((t) => { 169 t.addEventListener("click", (e) => { 170 (e.preventDefault(), 171 this.setActive(t, this.images), 172 this.setActive(t, this.copies), 173 e.target.href && (window.location.href = e.target.href)); 174 }); 175 }); 176 } 177 setActive(t, e) { 178 var n = 2; 179 e.forEach((e) => { 180 t.dataset.contentId == e.dataset.contentId 181 ? (e.setAttribute("data-active", "true"), 182 e.setAttribute("data-position", 1)) 183 : (e.setAttribute("data-active", "false"), 184 e.setAttribute("data-position", n), 185 n++); 186 }); 187 } 188} 189class ListFilter { 190 constructor(t, e, n = null, i = 1e4) { 191 ((this.list = t), 192 (this.listLength = i), 193 (this.filterSelector = e), 194 (this.filterElements = document.querySelectorAll(this.filterSelector)), 195 (this.loadMore = document.querySelector(n)), 196 (this.activeFilters = {}), 197 this.init()); 198 } 199 init() { 200 (this.list.valueNames.forEach((t) => { 201 ((this.activeFilters[t] = []), 202 Object.defineProperty(this.activeFilters, t, [])); 203 }), 204 this.list.show(1, this.listLength), 205 this.loadMore && 206 this.list.on("updated", () => { 207 this.list.matchingItems.length < this.listLength || 208 this.list.page > this.list.items.length 209 ? (this.loadMore.style.display = "none") 210 : (this.loadMore.style.display = "block"); 211 }), 212 this.filterElements.forEach((t) => { 213 t.addEventListener("change", (t) => { 214 this.filterList(); 215 }); 216 }), 217 this.loadMore && 218 this.loadMore.addEventListener("click", (t) => { 219 var e = this.list.page + this.listLength; 220 (this.list.show(1, e), this.list.update()); 221 })); 222 } 223 getCheckedInputs() { 224 let t = document.querySelectorAll(this.filterSelector); 225 (this.list.valueNames.forEach((t) => { 226 this.activeFilters[t] = []; 227 }), 228 t.forEach((t) => { 229 t.checked && this.activeFilters[t.dataset.filter].push(t.value); 230 })); 231 } 232 filterList() { 233 (this.getCheckedInputs(), 234 this.list.filter((t) => { 235 var e = !0; 236 for (const n in this.activeFilters) { 237 if (this.activeFilters[n].length && t.values()[n] && e) 238 e = 239 t 240 .values() 241 [n].split(", ") 242 .filter((t) => this.activeFilters[n].includes(t)).length > 0; 243 } 244 return e; 245 })); 246 } 247} 248class BlogFilter { 249 constructor(t, e) { 250 ((this.list = t), (this.listFilter = e), this.init()); 251 } 252 init() { 253 (this.updateText(), 254 this.list.on("updated", () => { 255 this.updateText(); 256 })); 257 } 258 updateText() { 259 let t = 1 == this.list.matchingItems.length ? "article" : "articles", 260 e = [], 261 n = ""; 262 for (const t in this.listFilter.activeFilters) 263 e.push(...this.listFilter.activeFilters[t]); 264 if (e.length > 0) { 265 var i = e.join(", "); 266 n = `<p><em>Showing ${this.list.matchingItems.length} ${t} from (${i}) </em></p>`; 267 } else 268 n = `<p><em>Showing ${this.list.matchingItems.length} of ${this.list.items.length} ${t}.</em></p>`; 269 document.getElementById("list-total").innerHTML = n; 270 } 271} 272class Modal { 273 constructor(t) { 274 ((this.id = t.id), 275 (this.modalWrapper = t), 276 (this.triggers = document.querySelectorAll(".trigger-modal-" + this.id)), 277 (this.modal = this.modalWrapper.querySelector(".modal")), 278 (this.closeButtons = this.modalWrapper.querySelectorAll(".modal-close")), 279 this.init()); 280 } 281 init() {
282 (this.triggers.forEach((t) => { 283 t.addEventListener("click", (e) => { 284 (e.preventDefault(), 285 t.hasAttribute("href") && 286 ((this.modal.querySelector(".continue-link").href = 287 e.target.href || t.href), 288 this.modal 289 .querySelector(".continue-links") 290 .classList.remove("hidden")), 291 "true" != this.modalWrapper.dataset.open && this.open()); 292 }); 293 }), 294 this.closeButtons.forEach((t) => { 295 t.addEventListener("click", (t) => { 296 this.close(); 297 }); 298 }), 299 this.modalWrapper.addEventListener("click", (t) => { 300 t.srcElement.id === this.modalWrapper.id && this.close(); 301 })); 302 } 303 open() { 304 this.modalWrapper.setAttribute("data-open", "true"); 305 } 306 close() { 307 this.modalWrapper.setAttribute("data-open", "false"); 308 } 309} 310class Menu { 311 constructor(t, e) { 312 ((this.toggleButton = document.querySelector(e)), 313 (this.menu = document.querySelector(t)), 314 (this.menuElement = this.menu.closest(".menu")), 315 (this.subnavs = this.menuElement.querySelectorAll( 316 "[data-subnav-toggle]", 317 )), 318 (this.subnavToggles = 319 this.menuElement.querySelectorAll(".subnav-toggle")), 320 (this.subnavCloseButtons = 321 this.menuElement.querySelectorAll(".subnav-close")), 322 (this.subnavActive = null), 323 (this.doc = document.documentElement), 324 this.init()); 325 } 326 open() { 327 (this.menu.setAttribute("data-menu-state", "open"), 328 this.doc.setAttribute("data-menu-state", "open")); 329 } 330 close() { 331 ((this.menu.dataset.menuState = "closed"), 332 (this.doc.dataset.menuState = "closed"), 333 this.subnavCloseAll()); 334 } 335 toggle() { 336 ("closed" == this.menu.dataset.menuState 337 ? this.menu.setAttribute("data-menu-state", "open") 338 : this.menu.setAttribute("data-menu-state", "closed"), 339 "closed" == this.doc.dataset.menuState 340 ? this.doc.setAttribute("data-menu-state", "open") 341 : this.doc.setAttribute("data-menu-state", "closed")); 342 } 343 subnavCloseAll() { 344 ((this.subnavActive = null), 345 this.subnavs.forEach((t) => { 346 t.setAttribute("data-subnav-toggle", "closed"); 347 })); 348 } 349 toggleSubnav(t) { 350 let e = t.closest("[data-subnav-toggle]"); 351 ((this.subnavActive = document.getElementById(e.id)), 352 this.subnavs.forEach((t) => { 353 t !== e && t.setAttribute("data-subnav-toggle", "closed"); 354 }), 355 "closed" == e.dataset.subnavToggle 356 ? e.setAttribute("data-subnav-toggle", "open") 357 : e.setAttribute("data-subnav-toggle", "closed")); 358 } 359 init() { 360 (this.close(), 361 document.addEventListener("click", (t) => { 362 let e = t.target; 363 do { 364 if (e == this.menuElement) 365 return t.target == this.toggleButton 366 ? void this.toggle() 367 : (this.subnavCloseButtons.forEach((e) => { 368 e == t.target && this.close(); 369 }), 370 void this.subnavToggles.forEach((e) => { 371 e != t.target || this.toggleSubnav(t.target); 372 })); 373 e = e.parentNode; 374 } while (e); 375 this.close(); 376 })); 377 } 378} 379var win$1 = window, 380 raf = 381 win$1.requestAnimationFrame || 382 win$1.webkitRequestAnimationFrame || 383 win$1.mozRequestAnimationFrame || 384 win$1.msRequestAnimationFrame || 385 function (t) { 386 return setTimeout(t, 16); 387 }, 388 win = window, 389 caf = 390 win.cancelAnimationFrame || 391 win.mozCancelAnimationFrame || 392 function (t) { 393 clearTimeout(t); 394 }; 395function extend() { 396 for ( 397 var t, e, n, i = arguments[0] || {}, o = 1, a = arguments.length; 398 o < a; 399 o++ 400 ) 401 if (null !== (t = arguments[o])) 402 for (e in t) i !== (n = t[e]) && void 0 !== n && (i[e] = n); 403 return i; 404} 405function checkStorageValue(t) { 406 return ["true", "false"].indexOf(t) >= 0 ? JSON.parse(t) : t; 407} 408function setLocalStorage(t, e, n, i) { 409 if (i) 410 try { 411 t.setItem(e, n); 412 } catch (t) {} 413 return n; 414} 415function getSlideId() { 416 var t = window.tnsId; 417 return ((window.tnsId = t ? t + 1 : 1), "tns" + window.tnsId); 418} 419function getBody() { 420 var t = document, 421 e = t.body; 422 return (e || ((e = t.createElement("body")).fake = !0), e); 423} 424var docElement = document.documentElement; 425function setFakeBody(t) { 426 var e = ""; 427 return ( 428 t.fake && 429 ((e = docElement.style.overflow), 430 (t.style.background = ""), 431 (t.style.overflow = docElement.style.overflow = "hidden"), 432 docElement.appendChild(t)), 433 e 434 ); 435} 436function resetFakeBody(t, e) { 437 t.fake && 438 (t.remove(), (docElement.style.overflow = e), docElement.offsetHeight); 439} 440function calc() { 441 var t = document, 442 e = getBody(), 443 n = setFakeBody(e), 444 i = t.createElement("div"), 445 o = !1; 446 e.appendChild(i); 447 try { 448 for ( 449 var a, 450 r = "(10px * 10)", 451 s = ["calc" + r, "-moz-calc" + r, "-webkit-calc" + r], 452 l = 0; 453 l < 3; 454 l++ 455 ) 456 if (((a = s[l]), (i.style.width = a), 100 === i.offsetWidth)) { 457 o = a.replace(r, ""); 458 break; 459 } 460 } catch (t) {} 461 return (e.fake ? resetFakeBody(e, n) : i.remove(), o); 462} 463function percentageLayout() { 464 var t, 465 e = document, 466 n = getBody(), 467 i = setFakeBody(n), 468 o = e.createElement("div"), 469 a = e.createElement("div"), 470 r = ""; 471 ((o.className = "tns-t-subp2"), (a.className = "tns-t-ct")); 472 for (var s = 0; s < 70; s++) r += "<div></div>"; 473 return ( 474 (a.innerHTML = r), 475 o.appendChild(a), 476 n.appendChild(o), 477 (t = 478 Math.abs( 479 o.getBoundingClientRect().left -
480 a.children[67].getBoundingClientRect().left, 481 ) < 2), 482 n.fake ? resetFakeBody(n, i) : o.remove(), 483 t 484 ); 485} 486function mediaquerySupport() { 487 if (window.matchMedia || window.msMatchMedia) return !0; 488 var t, 489 e = document, 490 n = getBody(), 491 i = setFakeBody(n), 492 o = e.createElement("div"), 493 a = e.createElement("style"), 494 r = "@media all and (min-width:1px){.tns-mq-test{position:absolute}}"; 495 return ( 496 (a.type = "text/css"), 497 (o.className = "tns-mq-test"), 498 n.appendChild(a), 499 n.appendChild(o), 500 a.styleSheet 501 ? (a.styleSheet.cssText = r) 502 : a.appendChild(e.createTextNode(r)), 503 (t = window.getComputedStyle 504 ? window.getComputedStyle(o).position 505 : o.currentStyle.position), 506 n.fake ? resetFakeBody(n, i) : o.remove(), 507 "absolute" === t 508 ); 509} 510function createStyleSheet(t, e) { 511 var n = document.createElement("style"); 512 return ( 513 t && n.setAttribute("media", t), 514 e && n.setAttribute("nonce", e), 515 document.querySelector("head").appendChild(n), 516 n.sheet ? n.sheet : n.styleSheet 517 ); 518} 519function addCSSRule(t, e, n, i) { 520 "insertRule" in t ? t.insertRule(e + "{" + n + "}", i) : t.addRule(e, n, i); 521} 522function removeCSSRule(t, e) { 523 "deleteRule" in t ? t.deleteRule(e) : t.removeRule(e); 524} 525function getCssRulesLength(t) { 526 return ("insertRule" in t ? t.cssRules : t.rules).length; 527} 528function toDegree(t, e) { 529 return Math.atan2(t, e) * (180 / Math.PI); 530} 531function getTouchDirection(t, e) { 532 var n = !1, 533 i = Math.abs(90 - Math.abs(t)); 534 return (i >= 90 - e ? (n = "horizontal") : i <= e && (n = "vertical"), n); 535} 536function forEach(t, e, n) { 537 for (var i = 0, o = t.length; i < o; i++) e.call(n, t[i], i); 538} 539var classListSupport = "classList" in document.createElement("_"), 540 hasClass = classListSupport 541 ? function (t, e) { 542 return t.classList.contains(e); 543 } 544 : function (t, e) { 545 return t.className.indexOf(e) >= 0; 546 }, 547 addClass = classListSupport 548 ? function (t, e) { 549 hasClass(t, e) || t.classList.add(e); 550 } 551 : function (t, e) { 552 hasClass(t, e) || (t.className += " " + e); 553 }, 554 removeClass = classListSupport 555 ? function (t, e) { 556 hasClass(t, e) && t.classList.remove(e); 557 } 558 : function (t, e) { 559 hasClass(t, e) && (t.className = t.className.replace(e, "")); 560 }; 561function hasAttr(t, e) { 562 return t.hasAttribute(e); 563} 564function getAttr(t, e) { 565 return t.getAttribute(e); 566} 567function isNodeList(t) { 568 return void 0 !== t.item; 569} 570function setAttrs(t, e) { 571 if ( 572 ((t = isNodeList(t) || t instanceof Array ? t : [t]), 573 "[object Object]" === Object.prototype.toString.call(e)) 574 ) 575 for (var n = t.length; n--; ) for (var i in e) t[n].setAttribute(i, e[i]); 576} 577function removeAttrs(t, e) { 578 t = isNodeList(t) || t instanceof Array ? t : [t]; 579 for (var n = (e = e instanceof Array ? e : [e]).length, i = t.length; i--; ) 580 for (var o = n; o--; ) t[i].removeAttribute(e[o]); 581} 582function arrayFromNodeList(t) { 583 for (var e = [], n = 0, i = t.length; n < i; n++) e.push(t[n]); 584 return e; 585} 586function hideElement(t, e) { 587 "none" !== t.style.display && (t.style.display = "none"); 588} 589function showElement(t, e) { 590 "none" === t.style.display && (t.style.display = ""); 591} 592function isVisible(t) { 593 return "none" !== window.getComputedStyle(t).display; 594} 595function whichProperty(t) { 596 if ("string" == typeof t) { 597 var e = [t], 598 n = t.charAt(0).toUpperCase() + t.substr(1); 599 (["Webkit", "Moz", "ms", "O"].forEach(function (i) { 600 ("ms" === i && "transform" !== t) || e.push(i + n); 601 }), 602 (t = e)); 603 } 604 var i = document.createElement("fakeelement"); 605 t.length; 606 for (var o = 0; o < t.length; o++) { 607 var a = t[o]; 608 if (void 0 !== i.style[a]) return a; 609 } 610 return !1; 611} 612function has3DTransforms(t) { 613 if (!t) return !1; 614 if (!window.getComputedStyle) return !1; 615 var e, 616 n = document, 617 i = getBody(), 618 o = setFakeBody(i), 619 a = n.createElement("p"), 620 r = t.length > 9 ? "-" + t.slice(0, -9).toLowerCase() + "-" : ""; 621 return ( 622 (r += "transform"), 623 i.insertBefore(a, null), 624 (a.style[t] = "translate3d(1px,1px,1px)"), 625 (e = window.getComputedStyle(a).getPropertyValue(r)), 626 i.fake ? resetFakeBody(i, o) : a.remove(), 627 void 0 !== e && e.length > 0 && "none" !== e 628 ); 629} 630function getEndProperty(t, e) { 631 var n = !1; 632 return ( 633 /^Webkit/.test(t)
634 ? (n = "webkit" + e + "End") 635 : /^O/.test(t) 636 ? (n = "o" + e + "End") 637 : t && (n = e.toLowerCase() + "end"), 638 n 639 ); 640} 641var supportsPassive = !1; 642try { 643 var opts = Object.defineProperty({}, "passive", { 644 get: function () { 645 supportsPassive = !0; 646 }, 647 }); 648 window.addEventListener("test", null, opts); 649} catch (t) {} 650var passiveOption = !!supportsPassive && { passive: !0 }; 651function addEvents(t, e, n) { 652 for (var i in e) { 653 var o = ["touchstart", "touchmove"].indexOf(i) >= 0 && !n && passiveOption; 654 t.addEventListener(i, e[i], o); 655 } 656} 657function removeEvents(t, e) { 658 for (var n in e) { 659 var i = ["touchstart", "touchmove"].indexOf(n) >= 0 && passiveOption; 660 t.removeEventListener(n, e[n], i); 661 } 662} 663function Events() { 664 return { 665 topics: {}, 666 on: function (t, e) { 667 ((this.topics[t] = this.topics[t] || []), this.topics[t].push(e)); 668 }, 669 off: function (t, e) { 670 if (this.topics[t]) 671 for (var n = 0; n < this.topics[t].length; n++) 672 if (this.topics[t][n] === e) { 673 this.topics[t].splice(n, 1); 674 break; 675 } 676 }, 677 emit: function (t, e) { 678 ((e.type = t), 679 this.topics[t] && 680 this.topics[t].forEach(function (n) { 681 n(e, t); 682 })); 683 }, 684 }; 685} 686function jsTransform(t, e, n, i, o, a, r) { 687 var s = Math.min(a, 10), 688 l = o.indexOf("%") >= 0 ? "%" : "px", 689 c = 690 ((o = o.replace(l, "")), 691 Number(t.style[e].replace(n, "").replace(i, "").replace(l, ""))), 692 u = ((o - c) / a) * s; 693 setTimeout(function o() { 694 ((a -= s), 695 (c += u), 696 (t.style[e] = n + c + l + i), 697 a > 0 ? setTimeout(o, s) : r()); 698 }, s); 699} 700(Object.keys || 701 (Object.keys = function (t) { 702 var e = []; 703 for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && e.push(n); 704 return e; 705 }), 706 "remove" in Element.prototype || 707 (Element.prototype.remove = function () { 708 this.parentNode && this.parentNode.removeChild(this); 709 })); 710var tns = function (t) { 711 t = extend( 712 { 713 container: ".slider", 714 mode: "carousel", 715 axis: "horizontal", 716 items: 1, 717 gutter: 0, 718 edgePadding: 0, 719 fixedWidth: !1, 720 autoWidth: !1, 721 viewportMax: !1, 722 slideBy: 1, 723 center: !1, 724 controls: !0, 725 controlsPosition: "top", 726 controlsText: ["prev", "next"], 727 controlsContainer: !1, 728 prevButton: !1, 729 nextButton: !1, 730 nav: !0, 731 navPosition: "top", 732 navContainer: !1, 733 navAsThumbnails: !1, 734 arrowKeys: !1, 735 speed: 300, 736 autoplay: !1, 737 autoplayPosition: "top", 738 autoplayTimeout: 5e3, 739 autoplayDirection: "forward", 740 autoplayText: ["start", "stop"], 741 autoplayHoverPause: !1, 742 autoplayButton: !1, 743 autoplayButtonOutput: !0, 744 autoplayResetOnVisibility: !0, 745 animateIn: "tns-fadeIn", 746 animateOut: "tns-fadeOut", 747 animateNormal: "tns-normal", 748 animateDelay: !1, 749 loop: !0, 750 rewind: !1, 751 autoHeight: !1, 752 responsive: !1, 753 lazyload: !1, 754 lazyloadSelector: ".tns-lazy-img", 755 touch: !0, 756 mouseDrag: !1, 757 swipeAngle: 15, 758 nested: !1, 759 preventActionWhenRunning: !1, 760 preventScrollOnTouch: !1, 761 freezable: !0, 762 onInit: !1, 763 useLocalStorage: !0, 764 nonce: !1, 765 }, 766 t || {}, 767 ); 768 var e = document, 769 n = window, 770 i = { ENTER: 13, SPACE: 32, LEFT: 37, RIGHT: 39 }, 771 o = {}, 772 a = t.useLocalStorage; 773 if (a) { 774 var r = navigator.userAgent, 775 s = new Date(); 776 try { 777 ((o = n.localStorage) 778 ? (o.setItem(s, s), (a = o.getItem(s) == s), o.removeItem(s)) 779 : (a = !1), 780 a || (o = {})); 781 } catch (t) { 782 a = !1; 783 } 784 a && 785 (o.tnsApp && 786 o.tnsApp !== r && 787 [ 788 "tC", 789 "tPL", 790 "tMQ", 791 "tTf", 792 "t3D", 793 "tTDu", 794 "tTDe", 795 "tADu", 796 "tADe", 797 "tTE", 798 "tAE", 799 ].forEach(function (t) { 800 o.removeItem(t); 801 }), 802 (localStorage.tnsApp = r)); 803 } 804 var l = o.tC ? checkStorageValue(o.tC) : setLocalStorage(o, "tC", calc(), a), 805 c = o.tPL 806 ? checkStorageValue(o.tPL) 807 : setLocalStorage(o, "tPL", percentageLayout(), a), 808 u = o.tMQ 809 ? checkStorageValue(o.tMQ) 810 : setLocalStorage(o, "tMQ", mediaquerySupport(), a), 811 d = o.tTf 812 ? checkStorageValue(o.tTf) 813 : setLocalStorage(o, "tTf", whichProperty("transform"), a), 814 h = o.t3D 815 ? checkStorageValue(o.t3D) 816 : setLocalStorage(o, "t3D", has3DTransforms(d), a), 817 f = o.tTDu 818 ? checkStorageValue(o.tTDu) 819 : setLocalStorage(o, "tTDu", whichProperty("transitionDuration"), a), 820 m = o.tTDe 821 ? checkStorageValue(o.tTDe) 822 : setLocalStorage(o, "tTDe", whichProperty("transitionDelay"), a), 823 p = o.tADu 824 ? checkStorageValue(o.tADu) 825 : setLocalStorage(o, "tADu", whichProperty("animationDuration"), a), 826 g = o.tADe 827 ? checkStorageValue(o.tADe) 828 : setLocalStorage(o, "tADe", whichProperty("animationDelay"), a), 829 v = o.tTE 830 ? checkStorageValue(o.tTE) 831 : setLocalStorage(o, "tTE", getEndProperty(f, "Transition"), a), 832 y = o.tAE 833 ? checkStorageValue(o.tAE) 834 : setLocalStorage(o, "tAE", getEndProperty(p, "Animation"), a), 835 E = n.console && "function" == typeof n.console.warn, 836 b = [ 837 "container", 838 "controlsContainer", 839 "prevButton", 840 "nextButton", 841 "navContainer", 842 "autoplayButton", 843 ], 844 w = {}; 845 if ( 846 (b.forEach(function (n) { 847 if ("string" == typeof t[n]) { 848 var i = t[n], 849 o = e.querySelector(i); 850 if (((w[n] = i), !o || !o.nodeName)) 851 return void (E && console.warn("Can't find", t[n])); 852 t[n] = o; 853 } 854 }), 855 !(t.container.children.length < 1)) 856 ) { 857 var C = t.responsive, 858 S = t.nested, 859 x = "carousel" === t.mode; 860 if (C) { 861 0 in C && ((t = extend(t, C[0])), delete C[0]); 862 var A = {}; 863 for (var L in C) { 864 var T = C[L]; 865 ((T = "number" == typeof T ? { items: T } : T), (A[L] = T)); 866 } 867 ((C = A), (A = null)); 868 } 869 if ( 870 (x || 871 (function t(e) { 872 for (var n in e) 873 (x || 874 ("slideBy" === n && (e[n] = "page"), 875 "edgePadding" === n && (e[n] = !1), 876 "autoHeight" === n && (e[n] = !1)), 877 "responsive" === n && t(e[n])); 878 })(t), 879 !x) 880 ) { 881 ((t.axis = "horizontal"), (t.slideBy = "page"), (t.edgePadding = !1)); 882 var M = t.animateIn, 883 k = t.animateOut, 884 I = t.animateDelay, 885 B = t.animateNormal; 886 } 887 var q, 888 H, 889 P = "horizontal" === t.axis, 890 N = e.createElement("div"), 891 R = e.createElement("div"), 892 D = t.container, 893 F = D.parentNode, 894 O = D.outerHTML, 895 W = D.children, 896 j = W.length, 897 V = tn(), 898 z = !1; 899 (C && Cn(), x && (D.className += " tns-vpfix")); 900 var $, 901 J, 902 U, 903 G = t.autoWidth, 904 K = rn("fixedWidth"), 905 _ = rn("edgePadding"), 906 Q = rn("gutter"), 907 X = on(), 908 Y = rn("center"), 909 Z = G ? 1 : Math.floor(rn("items")), 910 tt = rn("slideBy"), 911 et = t.viewportMax || t.fixedWidthViewportWidth, 912 nt = rn("arrowKeys"), 913 it = rn("speed"), 914 ot = t.rewind, 915 at = !ot && t.loop, 916 rt = rn("autoHeight"), 917 st = rn("controls"), 918 lt = rn("controlsText"), 919 ct = rn("nav"), 920 ut = rn("touch"), 921 dt = rn("mouseDrag"), 922 ht = rn("autoplay"), 923 ft = rn("autoplayTimeout"), 924 mt = rn("autoplayText"), 925 pt = rn("autoplayHoverPause"), 926 gt = rn("autoplayResetOnVisibility"), 927 vt = createStyleSheet(null, rn("nonce")), 928 yt = t.lazyload, 929 Et = t.lazyloadSelector, 930 bt = [], 931 wt = at 932 ? ((J = (function () { 933 if (G || (K && !et)) return j - 1; 934 var e = K ? "fixedWidth" : "items", 935 n = []; 936 if (((K || t[e] < j) && n.push(t[e]), C)) 937 for (var i in C) { 938 var o = C[i][e]; 939 o && (K || o < j) && n.push(o); 940 } 941 return ( 942 n.length || n.push(0), 943 Math.ceil( 944 K ? et / Math.min.apply(null, n) : Math.max.apply(null, n), 945 ) 946 ); 947 })()), 948 (U = x ? Math.ceil((5 * J - j) / 2) : 4 * J - j), 949 (U = Math.max(J, U)), 950 an("edgePadding") ? U + 1 : U) 951 : 0, 952 Ct = x ? j + 2 * wt : j + wt, 953 St = !((!K && !G) || at), 954 xt = K ? Kn() : null, 955 At = !x || !at, 956 Lt = P ? "left" : "top", 957 Tt = "", 958 Mt = "", 959 kt = K 960 ? function () { 961 return Y && !at ? j - 1 : Math.ceil(-xt / (K + Q)); 962 } 963 : G 964 ? function () { 965 for (var t = 0; t < Ct; t++) if ($[t] >= -xt) return t; 966 } 967 : function () { 968 return Y && x && !at 969 ? j - 1 970 : at || x
971 ? Math.max(0, Ct - Math.ceil(Z)) 972 : Ct - 1; 973 }, 974 It = Xe(rn("startIndex")), 975 Bt = It; 976 Qe(); 977 var qt, 978 Ht, 979 Pt = 0, 980 Nt = G ? null : kt(), 981 Rt = t.preventActionWhenRunning, 982 Dt = t.swipeAngle, 983 Ft = !Dt || "?", 984 Ot = !1, 985 Wt = t.onInit, 986 jt = new Events(), 987 Vt = " tns-slider tns-" + t.mode, 988 zt = D.id || getSlideId(), 989 $t = rn("disable"), 990 Jt = !1, 991 Ut = t.freezable, 992 Gt = !(!Ut || G) && wn(), 993 Kt = !1, 994 _t = { 995 click: ii, 996 keydown: function (t) { 997 t = di(t); 998 var e = [i.LEFT, i.RIGHT].indexOf(t.keyCode); 999 e >= 0 && 1000 (0 === e ? ve.disabled || ii(t, -1) : ye.disabled || ii(t, 1)); 1001 }, 1002 }, 1003 Qt = { 1004 click: function (t) { 1005 if (Ot) { 1006 if (Rt) return; 1007 ei(); 1008 } 1009 var e = hi((t = di(t))); 1010 for (; e !== Ce && !hasAttr(e, "data-nav"); ) e = e.parentNode; 1011 if (hasAttr(e, "data-nav")) { 1012 var n = (Le = Number(getAttr(e, "data-nav"))), 1013 i = K || G ? (n * j) / xe : n * Z; 1014 (ni(oe ? n : Math.min(Math.ceil(i), j - 1), t), 1015 Te === n && (He && li(), (Le = -1))); 1016 } 1017 }, 1018 keydown: function (t) { 1019 t = di(t); 1020 var n = e.activeElement; 1021 if (!hasAttr(n, "data-nav")) return; 1022 var o = [i.LEFT, i.RIGHT, i.ENTER, i.SPACE].indexOf(t.keyCode), 1023 a = Number(getAttr(n, "data-nav")); 1024 o >= 0 && 1025 (0 === o 1026 ? a > 0 && ui(we[a - 1]) 1027 : 1 === o 1028 ? a < xe - 1 && ui(we[a + 1]) 1029 : ((Le = a), ni(a, t))); 1030 }, 1031 }, 1032 Xt = { 1033 mouseover: function () { 1034 He && (ai(), (Pe = !0)); 1035 }, 1036 mouseout: function () { 1037 Pe && (oi(), (Pe = !1)); 1038 }, 1039 }, 1040 Yt = { 1041 visibilitychange: function () { 1042 e.hidden ? He && (ai(), (Re = !0)) : Re && (oi(), (Re = !1)); 1043 }, 1044 }, 1045 Zt = { 1046 keydown: function (t) { 1047 t = di(t); 1048 var e = [i.LEFT, i.RIGHT].indexOf(t.keyCode); 1049 e >= 0 && ii(t, 0 === e ? -1 : 1); 1050 }, 1051 }, 1052 te = { touchstart: gi, touchmove: vi, touchend: Ei, touchcancel: Ei }, 1053 ee = { mousedown: gi, mousemove: vi, mouseup: Ei, mouseleave: Ei }, 1054 ne = an("controls"), 1055 ie = an("nav"), 1056 oe = !!G || t.navAsThumbnails, 1057 ae = an("autoplay"), 1058 re = an("touch"), 1059 se = an("mouseDrag"), 1060 le = "tns-slide-active", 1061 ce = "tns-slide-cloned", 1062 ue = "tns-complete", 1063 de = { 1064 load: function (t) { 1065 Bn(hi(t)); 1066 }, 1067 error: function (t) { 1068 ((e = hi(t)), addClass(e, "failed"), qn(e)); 1069 var e; 1070 }, 1071 }, 1072 he = "force" === t.preventScrollOnTouch; 1073 if (ne) 1074 var fe, 1075 me, 1076 pe = t.controlsContainer, 1077 ge = t.controlsContainer ? t.controlsContainer.outerHTML : "", 1078 ve = t.prevButton, 1079 ye = t.nextButton, 1080 Ee = t.prevButton ? t.prevButton.outerHTML : "", 1081 be = t.nextButton ? t.nextButton.outerHTML : ""; 1082 if (ie) 1083 var we, 1084 Ce = t.navContainer, 1085 Se = t.navContainer ? t.navContainer.outerHTML : "", 1086 xe = G ? j : wi(), 1087 Ae = 0, 1088 Le = -1, 1089 Te = Ze(), 1090 Me = Te, 1091 ke = "tns-nav-active", 1092 Ie = "Carousel Page ", 1093 Be = " (Current Slide)"; 1094 if (ae) 1095 var qe, 1096 He, 1097 Pe, 1098 Ne, 1099 Re, 1100 De = "forward" === t.autoplayDirection ? 1 : -1, 1101 Fe = t.autoplayButton, 1102 Oe = t.autoplayButton ? t.autoplayButton.outerHTML : "", 1103 We = ["<span class='tns-visually-hidden'>", " animation</span>"]; 1104 if (re || se) 1105 var je, 1106 Ve, 1107 ze = {}, 1108 $e = {}, 1109 Je = !1, 1110 Ue = P 1111 ? function (t, e) { 1112 return t.x - e.x; 1113 } 1114 : function (t, e) { 1115 return t.y - e.y; 1116 }; 1117 (G || _e($t || Gt), 1118 d && 1119 ((Lt = d), 1120 (Tt = "translate"), 1121 h 1122 ? ((Tt += P ? "3d(" : "3d(0px, "), 1123 (Mt = P ? ", 0px, 0px)" : ", 0px)")) 1124 : ((Tt += P ? "X(" : "Y("), (Mt = ")"))), 1125 x && (D.className = D.className.replace("tns-vpfix", "")), 1126 (function () { 1127 (an("gutter"), 1128 (N.className = "tns-outer"), 1129 (R.className = "tns-inner"), 1130 (N.id = zt + "-ow"), 1131 (R.id = zt + "-iw"), 1132 "" === D.id && (D.id = zt)); 1133 ((Vt += c || G ? " tns-subpixel" : " tns-no-subpixel"), 1134 (Vt += l ? " tns-calc" : " tns-no-calc"), 1135 G && (Vt += " tns-autowidth")); 1136 ((Vt += " tns-" + t.axis), 1137 (D.className += Vt), 1138 x 1139 ? (((q = e.createElement("div")).id = zt + "-mw"), 1140 (q.className = "tns-ovh"), 1141 N.appendChild(q), 1142 q.appendChild(R)) 1143 : N.appendChild(R)); 1144 if (rt) { 1145 (q || R).className += " tns-ah"; 1146 } 1147 if ( 1148 (F.insertBefore(N, D), 1149 R.appendChild(D),
1150 forEach(W, function (t, e) { 1151 (addClass(t, "tns-item"), 1152 t.id || (t.id = zt + "-item" + e), 1153 !x && B && addClass(t, B), 1154 setAttrs(t, { "aria-hidden": "true", tabindex: "-1" })); 1155 }), 1156 wt) 1157 ) { 1158 for ( 1159 var n = e.createDocumentFragment(), 1160 i = e.createDocumentFragment(), 1161 o = wt; 1162 o--; 1163 ) { 1164 var a = o % j, 1165 r = W[a].cloneNode(!0); 1166 if ( 1167 (addClass(r, ce), 1168 removeAttrs(r, "id"), 1169 i.insertBefore(r, i.firstChild), 1170 x) 1171 ) { 1172 var s = W[j - 1 - a].cloneNode(!0); 1173 (addClass(s, ce), removeAttrs(s, "id"), n.appendChild(s)); 1174 } 1175 } 1176 (D.insertBefore(n, D.firstChild), D.appendChild(i), (W = D.children)); 1177 } 1178 })(), 1179 (function () { 1180 if (!x) 1181 for (var e = It, i = It + Math.min(j, Z); e < i; e++) { 1182 var o = W[e]; 1183 ((o.style.left = (100 * (e - It)) / Z + "%"), 1184 addClass(o, M), 1185 removeClass(o, B)); 1186 } 1187 P && 1188 (c || G 1189 ? (addCSSRule( 1190 vt, 1191 "#" + zt + " > .tns-item", 1192 "font-size:" + n.getComputedStyle(W[0]).fontSize + ";", 1193 getCssRulesLength(vt), 1194 ), 1195 addCSSRule(vt, "#" + zt, "font-size:0;", getCssRulesLength(vt))) 1196 : x && 1197 forEach(W, function (t, e) { 1198 t.style.marginLeft = (function (t) { 1199 return l 1200 ? l + "(" + 100 * t + "% / " + Ct + ")" 1201 : (100 * t) / Ct + "%"; 1202 })(e); 1203 })); 1204 if (u) { 1205 if (f) { 1206 var a = q && t.autoHeight ? hn(t.speed) : ""; 1207 addCSSRule(vt, "#" + zt + "-mw", a, getCssRulesLength(vt)); 1208 } 1209 ((a = sn( 1210 t.edgePadding, 1211 t.gutter, 1212 t.fixedWidth, 1213 t.speed, 1214 t.autoHeight, 1215 )), 1216 addCSSRule(vt, "#" + zt + "-iw", a, getCssRulesLength(vt)), 1217 x && 1218 ((a = 1219 P && !G 1220 ? "width:" + ln(t.fixedWidth, t.gutter, t.items) + ";" 1221 : ""), 1222 f && (a += hn(it)), 1223 addCSSRule(vt, "#" + zt, a, getCssRulesLength(vt))), 1224 (a = P && !G ? cn(t.fixedWidth, t.gutter, t.items) : ""), 1225 t.gutter && (a += un(t.gutter)), 1226 x || (f && (a += hn(it)), p && (a += fn(it))), 1227 a && 1228 addCSSRule( 1229 vt, 1230 "#" + zt + " > .tns-item", 1231 a, 1232 getCssRulesLength(vt), 1233 )); 1234 } else { 1235 (x && rt && (q.style[f] = it / 1e3 + "s"), 1236 (R.style.cssText = sn(_, Q, K, rt)), 1237 x && P && !G && (D.style.width = ln(K, Q, Z))); 1238 a = P && !G ? cn(K, Q, Z) : ""; 1239 (Q && (a += un(Q)), 1240 a && 1241 addCSSRule( 1242 vt, 1243 "#" + zt + " > .tns-item", 1244 a, 1245 getCssRulesLength(vt), 1246 )); 1247 } 1248 if (C && u) 1249 for (var r in C) { 1250 r = parseInt(r); 1251 var s = C[r], 1252 d = ((a = ""), ""), 1253 h = "", 1254 m = "", 1255 g = "", 1256 v = G ? null : rn("items", r), 1257 y = rn("fixedWidth", r), 1258 E = rn("speed", r), 1259 b = rn("edgePadding", r), 1260 w = rn("autoHeight", r), 1261 S = rn("gutter", r); 1262 (f && 1263 q && 1264 rn("autoHeight", r) && 1265 "speed" in s && 1266 (d = "#" + zt + "-mw{" + hn(E) + "}"), 1267 ("edgePadding" in s || "gutter" in s) && 1268 (h = "#" + zt + "-iw{" + sn(b, S, y, E, w) + "}"), 1269 x && 1270 P && 1271 !G && 1272 ("fixedWidth" in s || "items" in s || (K && "gutter" in s)) &&
1273 (m = "width:" + ln(y, S, v) + ";"), 1274 f && "speed" in s && (m += hn(E)), 1275 m && (m = "#" + zt + "{" + m + "}"), 1276 ("fixedWidth" in s || 1277 (K && "gutter" in s) || 1278 (!x && "items" in s)) && 1279 (g += cn(y, S, v)), 1280 "gutter" in s && (g += un(S)), 1281 !x && "speed" in s && (f && (g += hn(E)), p && (g += fn(E))), 1282 g && (g = "#" + zt + " > .tns-item{" + g + "}"), 1283 (a = d + h + m + g) && 1284 vt.insertRule( 1285 "@media (min-width: " + r / 16 + "em) {" + a + "}", 1286 vt.cssRules.length, 1287 )); 1288 } 1289 })(), 1290 mn()); 1291 var Ge = at 1292 ? x 1293 ? function () { 1294 var t = Pt, 1295 e = Nt; 1296 ((t += tt), 1297 (e -= tt), 1298 _ ? ((t += 1), (e -= 1)) : K && (X + Q) % (K + Q) && (e -= 1), 1299 wt && (It > e ? (It -= j) : It < t && (It += j))); 1300 } 1301 : function () { 1302 if (It > Nt) for (; It >= Pt + j; ) It -= j; 1303 else if (It < Pt) for (; It <= Nt - j; ) It += j; 1304 } 1305 : function () { 1306 It = Math.max(Pt, Math.min(Nt, It)); 1307 }, 1308 Ke = x 1309 ? function () { 1310 (Un(D, ""), 1311 f || !it 1312 ? (Xn(), (it && isVisible(D)) || ei()) 1313 : jsTransform(D, Lt, Tt, Mt, _n(), it, ei), 1314 P || bi()); 1315 } 1316 : function () { 1317 bt = []; 1318 var t = {}; 1319 ((t[v] = t[y] = ei), 1320 removeEvents(W[Bt], t), 1321 addEvents(W[It], t), 1322 Yn(Bt, M, k, !0), 1323 Yn(It, B, M), 1324 (v && y && it && isVisible(D)) || ei()); 1325 }; 1326 return { 1327 version: "2.9.3", 1328 getInfo: Si, 1329 events: jt, 1330 goTo: ni, 1331 play: function () { 1332 ht && !He && (si(), (Ne = !1)); 1333 }, 1334 pause: function () { 1335 He && (li(), (Ne = !0)); 1336 }, 1337 isOn: z, 1338 updateSliderHeight: Fn, 1339 refresh: mn, 1340 destroy: function () { 1341 if ( 1342 ((vt.disabled = !0), 1343 vt.ownerNode && vt.ownerNode.remove(), 1344 removeEvents(n, { resize: En }), 1345 nt && removeEvents(e, Zt), 1346 pe && removeEvents(pe, _t), 1347 Ce && removeEvents(Ce, Qt), 1348 removeEvents(D, Xt), 1349 removeEvents(D, Yt), 1350 Fe && removeEvents(Fe, { click: ci }), 1351 ht && clearInterval(qe), 1352 x && v) 1353 ) { 1354 var i = {}; 1355 ((i[v] = ei), removeEvents(D, i)); 1356 } 1357 (ut && removeEvents(D, te), dt && removeEvents(D, ee)); 1358 var o = [O, ge, Ee, be, Se, Oe]; 1359 for (var a in (b.forEach(function (e, n) { 1360 var i = "container" === e ? N : t[e]; 1361 if ("object" == typeof i && i) { 1362 var a = !!i.previousElementSibling && i.previousElementSibling, 1363 r = i.parentNode; 1364 ((i.outerHTML = o[n]), 1365 (t[e] = a ? a.nextElementSibling : r.firstElementChild)); 1366 } 1367 }), 1368 (b = 1369 M = 1370 k = 1371 I = 1372 B = 1373 P = 1374 N = 1375 R = 1376 D = 1377 F = 1378 O = 1379 W = 1380 j = 1381 H = 1382 V = 1383 G = 1384 K = 1385 _ = 1386 Q = 1387 X = 1388 Z = 1389 tt = 1390 et = 1391 nt = 1392 it = 1393 ot = 1394 at = 1395 rt = 1396 vt = 1397 yt = 1398 $ = 1399 bt = 1400 wt = 1401 Ct = 1402 St = 1403 xt = 1404 At = 1405 Lt = 1406 Tt = 1407 Mt = 1408 kt = 1409 It = 1410 Bt = 1411 Pt = 1412 Nt = 1413 Dt = 1414 Ft = 1415 Ot = 1416 Wt = 1417 jt = 1418 Vt = 1419 zt = 1420 $t = 1421 Jt = 1422 Ut = 1423 Gt = 1424 Kt = 1425 _t = 1426 Qt = 1427 Xt = 1428 Yt = 1429 Zt = 1430 te = 1431 ee = 1432 ne = 1433 ie = 1434 oe = 1435 ae = 1436 re = 1437 se = 1438 le = 1439 ue = 1440 de = 1441 qt = 1442 st = 1443 lt = 1444 pe = 1445 ge = 1446 ve = 1447 ye = 1448 fe = 1449 me = 1450 ct = 1451 Ce = 1452 Se = 1453 we = 1454 xe = 1455 Ae = 1456 Le = 1457 Te = 1458 Me = 1459 ke = 1460 Ie = 1461 Be = 1462 ht = 1463 ft = 1464 De = 1465 mt = 1466 pt = 1467 Fe = 1468 Oe = 1469 gt = 1470 We = 1471 qe = 1472 He = 1473 Pe = 1474 Ne = 1475 Re = 1476 ze = 1477 $e = 1478 je = 1479 Je = 1480 Ve = 1481 Ue = 1482 ut = 1483 dt = 1484 null), 1485 this)) 1486 "rebuild" !== a && (this[a] = null); 1487 z = !1; 1488 }, 1489 rebuild: function () { 1490 return tns(extend(t, w)); 1491 }, 1492 }; 1493 } 1494 function _e(t) { 1495 t && (st = ct = ut = dt = nt = ht = pt = gt = !1); 1496 } 1497 function Qe() { 1498 for (var t = x ? It - wt : It; t < 0; ) t += j; 1499 return (t % j) + 1; 1500 } 1501 function Xe(t) { 1502 return ( 1503 (t = t ? Math.max(0, Math.min(at ? j - 1 : j - Z, t)) : 0), 1504 x ? t + wt : t 1505 ); 1506 } 1507 function Ye(t) { 1508 for (null == t && (t = It), x && (t -= wt); t < 0; ) t += j; 1509 return Math.floor(t % j); 1510 } 1511 function Ze() { 1512 var t, 1513 e = Ye(); 1514 return ( 1515 (t = oe 1516 ? e 1517 : K || G 1518 ? Math.ceil(((e + 1) * xe) / j - 1) 1519 : Math.floor(e / Z)), 1520 !at && x && It === Nt && (t = xe - 1), 1521 t 1522 ); 1523 } 1524 function tn() { 1525 return n.innerWidth || e.documentElement.clientWidth || e.body.clientWidth; 1526 } 1527 function en(t) { 1528 return "top" === t ? "afterbegin" : "beforeend"; 1529 } 1530 function nn(t) { 1531 if (null != t) { 1532 var n, 1533 i, 1534 o = e.createElement("div"); 1535 return ( 1536 t.appendChild(o), 1537 (i = (n = o.getBoundingClientRect()).right - n.left), 1538 o.remove(), 1539 i || nn(t.parentNode) 1540 ); 1541 } 1542 } 1543 function on() { 1544 var t = _ ? 2 * _ - Q : 0; 1545 return nn(F) - t; 1546 } 1547 function an(e) { 1548 if (t[e]) return !0; 1549 if (C) for (var n in C) if (C[n][e]) return !0; 1550 return !1; 1551 } 1552 function rn(e, n) { 1553 if ((null == n && (n = V), "items" === e && K)) 1554 return Math.floor((X + Q) / (K + Q)) || 1; 1555 var i = t[e]; 1556 if (C) for (var o in C) n >= parseInt(o) && e in C[o] && (i = C[o][e]); 1557 return ( 1558 "slideBy" === e && "page" === i && (i = rn("items")), 1559 x || ("slideBy" !== e && "items" !== e) || (i = Math.floor(i)), 1560 i 1561 ); 1562 } 1563 function sn(t, e, n, i, o) { 1564 var a = ""; 1565 if (void 0 !== t) { 1566 var r = t; 1567 (e && (r -= e), 1568 (a = P 1569 ? "margin: 0 " + r + "px 0 " + t + "px;" 1570 : "margin: " + t + "px 0 " + r + "px 0;")); 1571 } else if (e && !n) { 1572 var s = "-" + e + "px"; 1573 a = "margin: 0 " + (P ? s + " 0 0" : "0 " + s + " 0") + ";"; 1574 } 1575 return (!x && o && f && i && (a += hn(i)), a); 1576 } 1577 function ln(t, e, n) { 1578 return t 1579 ? (t + e) * Ct + "px" 1580 : l 1581 ? l + "(" + 100 * Ct + "% / " + n + ")" 1582 : (100 * Ct) / n + "%"; 1583 } 1584 function cn(t, e, n) { 1585 var i; 1586 if (t) i = t + e + "px"; 1587 else { 1588 x || (n = Math.floor(n)); 1589 var o = x ? Ct : n; 1590 i = l ? l + "(100% / " + o + ")" : 100 / o + "%"; 1591 }
1592 return ((i = "width:" + i), "inner" !== S ? i + ";" : i + " !important;"); 1593 } 1594 function un(t) { 1595 var e = ""; 1596 !1 !== t && 1597 (e = 1598 (P ? "padding-" : "margin-") + 1599 (P ? "right" : "bottom") + 1600 ": " + 1601 t + 1602 "px;"); 1603 return e; 1604 } 1605 function dn(t, e) { 1606 var n = t.substring(0, t.length - e).toLowerCase(); 1607 return (n && (n = "-" + n + "-"), n); 1608 } 1609 function hn(t) { 1610 return dn(f, 18) + "transition-duration:" + t / 1e3 + "s;"; 1611 } 1612 function fn(t) { 1613 return dn(p, 17) + "animation-duration:" + t / 1e3 + "s;"; 1614 } 1615 function mn() { 1616 if (an("autoHeight") || G || !P) { 1617 var t = D.querySelectorAll("img"); 1618 (forEach(t, function (t) { 1619 var e = t.src; 1620 yt || 1621 (e && e.indexOf("data:image") < 0 1622 ? ((t.src = ""), 1623 addEvents(t, de), 1624 addClass(t, "loading"), 1625 (t.src = e)) 1626 : Bn(t)); 1627 }), 1628 raf(function () { 1629 Nn(arrayFromNodeList(t), function () { 1630 qt = !0; 1631 }); 1632 }), 1633 an("autoHeight") && (t = Hn(It, Math.min(It + Z - 1, Ct - 1))), 1634 yt 1635 ? pn() 1636 : raf(function () { 1637 Nn(arrayFromNodeList(t), pn); 1638 })); 1639 } else (x && Qn(), vn(), yn()); 1640 } 1641 function pn() { 1642 if (G && j > 1) { 1643 var t = at ? It : j - 1; 1644 !(function e() { 1645 var n = W[t].getBoundingClientRect().left, 1646 i = W[t - 1].getBoundingClientRect().right; 1647 Math.abs(n - i) <= 1 1648 ? gn() 1649 : setTimeout(function () { 1650 e(); 1651 }, 16); 1652 })(); 1653 } else gn(); 1654 } 1655 function gn() { 1656 ((P && !G) || 1657 (On(), 1658 G ? ((xt = Kn()), Ut && (Gt = wn()), (Nt = kt()), _e($t || Gt)) : bi()), 1659 x && Qn(), 1660 vn(), 1661 yn()); 1662 } 1663 function vn() { 1664 if ( 1665 (Wn(), 1666 N.insertAdjacentHTML( 1667 "afterbegin", 1668 '<div class="tns-liveregion tns-visually-hidden" aria-live="polite" aria-atomic="true">slide <span class="current">' + 1669 Mn() + 1670 "</span> of " + 1671 j + 1672 "</div>", 1673 ), 1674 (Ht = N.querySelector(".tns-liveregion .current")), 1675 ae) 1676 ) { 1677 var e = ht ? "stop" : "start"; 1678 (Fe 1679 ? setAttrs(Fe, { "data-action": e }) 1680 : t.autoplayButtonOutput && 1681 (N.insertAdjacentHTML( 1682 en(t.autoplayPosition), 1683 '<button type="button" data-action="' + 1684 e + 1685 '">' + 1686 We[0] + 1687 e + 1688 We[1] + 1689 mt[0] + 1690 "</button>", 1691 ), 1692 (Fe = N.querySelector("[data-action]"))), 1693 Fe && addEvents(Fe, { click: ci }), 1694 ht && (si(), pt && addEvents(D, Xt), gt && addEvents(D, Yt))); 1695 } 1696 if (ie) { 1697 if (Ce) 1698 (setAttrs(Ce, { "aria-label": "Carousel Pagination" }), 1699 forEach((we = Ce.children), function (t, e) { 1700 setAttrs(t, { 1701 "data-nav": e, 1702 tabindex: "-1", 1703 "aria-label": Ie + (e + 1), 1704 "aria-controls": zt, 1705 }); 1706 })); 1707 else { 1708 for ( 1709 var n = "", i = oe ? "" : 'style="display:none"', o = 0; 1710 o < j; 1711 o++ 1712 ) 1713 n += 1714 '<button type="button" data-nav="' + 1715 o + 1716 '" tabindex="-1" aria-controls="' + 1717 zt + 1718 '" ' + 1719 i + 1720 ' aria-label="' + 1721 Ie + 1722 (o + 1) + 1723 '"></button>'; 1724 ((n = 1725 '<div class="tns-nav" aria-label="Carousel Pagination">' + 1726 n + 1727 "</div>"), 1728 N.insertAdjacentHTML(en(t.navPosition), n), 1729 (Ce = N.querySelector(".tns-nav")), 1730 (we = Ce.children)); 1731 } 1732 if ((Ci(), f)) { 1733 var a = f.substring(0, f.length - 18).toLowerCase(), 1734 r = "transition: all " + it / 1e3 + "s"; 1735 (a && (r = "-" + a + "-" + r), 1736 addCSSRule( 1737 vt, 1738 "[aria-controls^=" + zt + "-item]", 1739 r, 1740 getCssRulesLength(vt), 1741 )); 1742 } 1743 (setAttrs(we[Te], { "aria-label": Ie + (Te + 1) + Be }), 1744 removeAttrs(we[Te], "tabindex"), 1745 addClass(we[Te], ke), 1746 addEvents(Ce, Qt)); 1747 } 1748 (ne && 1749 (pe || 1750 (ve && ye) || 1751 (N.insertAdjacentHTML( 1752 en(t.controlsPosition), 1753 '<div class="tns-controls" aria-label="Carousel Navigation" tabindex="0"><button type="button" data-controls="prev" tabindex="-1" aria-controls="' + 1754 zt + 1755 '">' + 1756 lt[0] + 1757 '</button><button type="button" data-controls="next" tabindex="-1" aria-controls="' + 1758 zt + 1759 '">' + 1760 lt[1] + 1761 "</button></div>", 1762 ), 1763 (pe = N.querySelector(".tns-controls"))), 1764 (ve && ye) || ((ve = pe.children[0]), (ye = pe.children[1])), 1765 t.controlsContainer && 1766 setAttrs(pe, { "aria-label": "Carousel Navigation", tabindex: "0" }), 1767 (t.controlsContainer || (t.prevButton && t.nextButton)) && 1768 setAttrs([ve, ye], { "aria-controls": zt, tabindex: "-1" }), 1769 (t.controlsContainer || (t.prevButton && t.nextButton)) && 1770 (setAttrs(ve, { "data-controls": "prev" }), 1771 setAttrs(ye, { "data-controls": "next" })), 1772 (fe = Vn(ve)), 1773 (me = Vn(ye)), 1774 Jn(),
1775 pe ? addEvents(pe, _t) : (addEvents(ve, _t), addEvents(ye, _t))), 1776 Sn()); 1777 } 1778 function yn() { 1779 if (x && v) { 1780 var i = {}; 1781 ((i[v] = ei), addEvents(D, i)); 1782 } 1783 (ut && addEvents(D, te, t.preventScrollOnTouch), 1784 dt && addEvents(D, ee), 1785 nt && addEvents(e, Zt), 1786 "inner" === S 1787 ? jt.on("outerResized", function () { 1788 (bn(), jt.emit("innerLoaded", Si())); 1789 }) 1790 : (C || K || G || rt || !P) && addEvents(n, { resize: En }), 1791 rt && ("outer" === S ? jt.on("innerLoaded", Pn) : $t || Pn()), 1792 In(), 1793 $t ? Ln() : Gt && An(), 1794 jt.on("indexChanged", Rn), 1795 "inner" === S && jt.emit("innerLoaded", Si()), 1796 "function" == typeof Wt && Wt(Si()), 1797 (z = !0)); 1798 } 1799 function En(t) { 1800 raf(function () { 1801 bn(di(t)); 1802 }); 1803 } 1804 function bn(n) { 1805 if (z) { 1806 ("outer" === S && jt.emit("outerResized", Si(n)), (V = tn())); 1807 var i, 1808 o = H, 1809 a = !1; 1810 C && (Cn(), (i = o !== H) && jt.emit("newBreakpointStart", Si(n))); 1811 var r, 1812 s, 1813 l = Z, 1814 c = $t, 1815 d = Gt, 1816 h = nt, 1817 f = st, 1818 m = ct, 1819 p = ut, 1820 g = dt, 1821 v = ht, 1822 y = pt, 1823 E = gt, 1824 b = It; 1825 if (i) { 1826 var w = K, 1827 A = rt, 1828 L = lt, 1829 T = Y, 1830 I = mt; 1831 if (!u) 1832 var q = Q, 1833 N = _; 1834 } 1835 if ( 1836 ((nt = rn("arrowKeys")), 1837 (st = rn("controls")), 1838 (ct = rn("nav")), 1839 (ut = rn("touch")), 1840 (Y = rn("center")), 1841 (dt = rn("mouseDrag")), 1842 (ht = rn("autoplay")), 1843 (pt = rn("autoplayHoverPause")), 1844 (gt = rn("autoplayResetOnVisibility")), 1845 i && 1846 (($t = rn("disable")), 1847 (K = rn("fixedWidth")), 1848 (it = rn("speed")), 1849 (rt = rn("autoHeight")), 1850 (lt = rn("controlsText")), 1851 (mt = rn("autoplayText")), 1852 (ft = rn("autoplayTimeout")), 1853 u || ((_ = rn("edgePadding")), (Q = rn("gutter")))), 1854 _e($t), 1855 (X = on()), 1856 (P && !G) || $t || (On(), P || (bi(), (a = !0))), 1857 (K || G) && ((xt = Kn()), (Nt = kt())), 1858 (i || K) && 1859 ((Z = rn("items")), 1860 (tt = rn("slideBy")), 1861 (s = Z !== l) && (K || G || (Nt = kt()), Ge())), 1862 i && 1863 $t !== c && 1864 ($t 1865 ? Ln() 1866 : (function () { 1867 if (!Jt) return; 1868 if (((vt.disabled = !1), (D.className += Vt), Qn(), at)) 1869 for (var t = wt; t--; ) 1870 (x && showElement(W[t]), showElement(W[Ct - t - 1])); 1871 if (!x) 1872 for (var e = It, n = It + j; e < n; e++) { 1873 var i = W[e], 1874 o = e < It + Z ? M : B; 1875 ((i.style.left = (100 * (e - It)) / Z + "%"), 1876 addClass(i, o)); 1877 } 1878 (xn(), (Jt = !1)); 1879 })()), 1880 Ut && 1881 (i || K || G) && 1882 (Gt = wn()) !== d && 1883 (Gt 1884 ? (Xn(_n(Xe(0))), An()) 1885 : (!(function () { 1886 if (!Kt) return; 1887 _ && u && (R.style.margin = ""); 1888 if (wt) 1889 for (var t = "tns-transparent", e = wt; e--; ) 1890 (x && removeClass(W[e], t), removeClass(W[Ct - e - 1], t)); 1891 (xn(), (Kt = !1)); 1892 })(), 1893 (a = !0))), 1894 _e($t || Gt), 1895 ht || (pt = gt = !1), 1896 nt !== h && (nt ? addEvents(e, Zt) : removeEvents(e, Zt)), 1897 st !== f && 1898 (st 1899 ? pe 1900 ? showElement(pe) 1901 : (ve && showElement(ve), ye && showElement(ye)) 1902 : pe 1903 ? hideElement(pe) 1904 : (ve && hideElement(ve), ye && hideElement(ye))), 1905 ct !== m && (ct ? (showElement(Ce), Ci()) : hideElement(Ce)), 1906 ut !== p && 1907 (ut ? addEvents(D, te, t.preventScrollOnTouch) : removeEvents(D, te)), 1908 dt !== g && (dt ? addEvents(D, ee) : removeEvents(D, ee)), 1909 ht !== v && 1910 (ht 1911 ? (Fe && showElement(Fe), He || Ne || si()) 1912 : (Fe && hideElement(Fe), He && li())), 1913 pt !== y && (pt ? addEvents(D, Xt) : removeEvents(D, Xt)), 1914 gt !== E && (gt ? addEvents(e, Yt) : removeEvents(e, Yt)), 1915 i) 1916 ) { 1917 if ( 1918 ((K === w && Y === T) || (a = !0), 1919 rt !== A && (rt || (R.style.height = "")), 1920 st && lt !== L && ((ve.innerHTML = lt[0]), (ye.innerHTML = lt[1])), 1921 Fe && mt !== I) 1922 ) { 1923 var F = ht ? 1 : 0, 1924 O = Fe.innerHTML, 1925 $ = O.length - I[F].length; 1926 O.substring($) === I[F] && (Fe.innerHTML = O.substring(0, $) + mt[F]); 1927 } 1928 } else Y && (K || G) && (a = !0); 1929 if ( 1930 ((s || (K && !G)) && ((xe = wi()), Ci()), 1931 (r = It !== b) 1932 ? (jt.emit("indexChanged", Si()), (a = !0)) 1933 : s 1934 ? r || Rn() 1935 : (K || G) && (In(), Wn(), Tn()), 1936 s && 1937 !x && 1938 (function () { 1939 for (var t = It + Math.min(j, Z), e = Ct; e--; ) { 1940 var n = W[e]; 1941 (e >= It && e < t 1942 ? (addClass(n, "tns-moving"), 1943 (n.style.left = (100 * (e - It)) / Z + "%"), 1944 addClass(n, M), 1945 removeClass(n, B)) 1946 : n.style.left && 1947 ((n.style.left = ""), addClass(n, B), removeClass(n, M)), 1948 removeClass(n, k)); 1949 } 1950 setTimeout(function () {
1951 forEach(W, function (t) { 1952 removeClass(t, "tns-moving"); 1953 }); 1954 }, 300); 1955 })(), 1956 !$t && !Gt) 1957 ) { 1958 if ( 1959 i && 1960 !u && 1961 ((_ === N && Q === q) || (R.style.cssText = sn(_, Q, K, it, rt)), P) 1962 ) { 1963 x && (D.style.width = ln(K, Q, Z)); 1964 var J = cn(K, Q, Z) + un(Q); 1965 (removeCSSRule(vt, getCssRulesLength(vt) - 1), 1966 addCSSRule( 1967 vt, 1968 "#" + zt + " > .tns-item", 1969 J, 1970 getCssRulesLength(vt), 1971 )); 1972 } 1973 (rt && Pn(), a && (Qn(), (Bt = It))); 1974 } 1975 i && jt.emit("newBreakpointEnd", Si(n)); 1976 } 1977 } 1978 function wn() { 1979 if (!K && !G) return j <= (Y ? Z - (Z - 1) / 2 : Z); 1980 var t = K ? (K + Q) * j : $[j], 1981 e = _ ? X + 2 * _ : X + Q; 1982 return ( 1983 Y && (e -= K ? (X - K) / 2 : (X - ($[It + 1] - $[It] - Q)) / 2), 1984 t <= e 1985 ); 1986 } 1987 function Cn() { 1988 for (var t in ((H = 0), C)) ((t = parseInt(t)), V >= t && (H = t)); 1989 } 1990 function Sn() { 1991 (!ht && Fe && hideElement(Fe), 1992 !ct && Ce && hideElement(Ce), 1993 st || 1994 (pe 1995 ? hideElement(pe) 1996 : (ve && hideElement(ve), ye && hideElement(ye)))); 1997 } 1998 function xn() { 1999 (ht && Fe && showElement(Fe), 2000 ct && Ce && showElement(Ce), 2001 st && 2002 (pe 2003 ? showElement(pe) 2004 : (ve && showElement(ve), ye && showElement(ye)))); 2005 } 2006 function An() { 2007 if (!Kt) { 2008 if ((_ && (R.style.margin = "0px"), wt)) 2009 for (var t = "tns-transparent", e = wt; e--; ) 2010 (x && addClass(W[e], t), addClass(W[Ct - e - 1], t)); 2011 (Sn(), (Kt = !0)); 2012 } 2013 } 2014 function Ln() { 2015 if (!Jt) { 2016 if ( 2017 ((vt.disabled = !0), 2018 (D.className = D.className.replace(Vt.substring(1), "")), 2019 removeAttrs(D, ["style"]), 2020 at) 2021 ) 2022 for (var t = wt; t--; ) 2023 (x && hideElement(W[t]), hideElement(W[Ct - t - 1])); 2024 if (((P && x) || removeAttrs(R, ["style"]), !x)) 2025 for (var e = It, n = It + j; e < n; e++) { 2026 var i = W[e]; 2027 (removeAttrs(i, ["style"]), removeClass(i, M), removeClass(i, B)); 2028 } 2029 (Sn(), (Jt = !0)); 2030 } 2031 } 2032 function Tn() { 2033 var t = Mn(); 2034 Ht.innerHTML !== t && (Ht.innerHTML = t); 2035 } 2036 function Mn() { 2037 var t = kn(), 2038 e = t[0] + 1, 2039 n = t[1] + 1; 2040 return e === n ? e + "" : e + " to " + n; 2041 } 2042 function kn(t) { 2043 null == t && (t = _n()); 2044 var e, 2045 n, 2046 i, 2047 o = It; 2048 if ( 2049 (Y || _ 2050 ? (G || K) && ((n = -(parseFloat(t) + _)), (i = n + X + 2 * _)) 2051 : G && ((n = $[It]), (i = n + X)), 2052 G) 2053 ) 2054 $.forEach(function (t, a) { 2055 a < Ct && 2056 ((Y || _) && t <= n + 0.5 && (o = a), i - t >= 0.5 && (e = a)); 2057 }); 2058 else { 2059 if (K) { 2060 var a = K + Q; 2061 Y || _ 2062 ? ((o = Math.floor(n / a)), (e = Math.ceil(i / a - 1))) 2063 : (e = o + Math.ceil(X / a) - 1); 2064 } else if (Y || _) { 2065 var r = Z - 1; 2066 if ((Y ? ((o -= r / 2), (e = It + r / 2)) : (e = It + r), _)) { 2067 var s = (_ * Z) / X; 2068 ((o -= s), (e += s)); 2069 } 2070 ((o = Math.floor(o)), (e = Math.ceil(e))); 2071 } else e = o + Z - 1; 2072 ((o = Math.max(o, 0)), (e = Math.min(e, Ct - 1))); 2073 } 2074 return [o, e]; 2075 } 2076 function In() { 2077 if (yt && !$t) { 2078 var t = kn(); 2079 (t.push(Et), 2080 Hn.apply(null, t).forEach(function (t) { 2081 if (!hasClass(t, ue)) { 2082 var e = {}; 2083 ((e[v] = function (t) { 2084 t.stopPropagation(); 2085 }), 2086 addEvents(t, e), 2087 addEvents(t, de), 2088 (t.src = getAttr(t, "data-src"))); 2089 var n = getAttr(t, "data-srcset"); 2090 (n && (t.srcset = n), addClass(t, "loading")); 2091 } 2092 })); 2093 } 2094 } 2095 function Bn(t) { 2096 (addClass(t, "loaded"), qn(t)); 2097 } 2098 function qn(t) { 2099 (addClass(t, ue), removeClass(t, "loading"), removeEvents(t, de)); 2100 } 2101 function Hn(t, e, n) { 2102 var i = []; 2103 for (n || (n = "img"); t <= e; ) 2104 (forEach(W[t].querySelectorAll(n), function (t) { 2105 i.push(t); 2106 }), 2107 t++); 2108 return i; 2109 } 2110 function Pn() { 2111 var t = Hn.apply(null, kn()); 2112 raf(function () { 2113 Nn(t, Fn); 2114 }); 2115 } 2116 function Nn(t, e) { 2117 return qt 2118 ? e() 2119 : (t.forEach(function (e, n) { 2120 (!yt && e.complete && qn(e), hasClass(e, ue) && t.splice(n, 1)); 2121 }), 2122 t.length 2123 ? void raf(function () { 2124 Nn(t, e); 2125 }) 2126 : e()); 2127 } 2128 function Rn() { 2129 (In(), 2130 Wn(), 2131 Tn(), 2132 Jn(), 2133 (function () { 2134 if (ct && ((Te = Le >= 0 ? Le : Ze()), (Le = -1), Te !== Me)) { 2135 var t = we[Me], 2136 e = we[Te]; 2137 (setAttrs(t, { tabindex: "-1", "aria-label": Ie + (Me + 1) }), 2138 removeClass(t, ke), 2139 setAttrs(e, { "aria-label": Ie + (Te + 1) + Be }), 2140 removeAttrs(e, "tabindex"), 2141 addClass(e, ke), 2142 (Me = Te)); 2143 } 2144 })()); 2145 } 2146 function Dn(t, e) { 2147 for (var n = [], i = t, o = Math.min(t + e, Ct); i < o; i++) 2148 n.push(W[i].offsetHeight); 2149 return Math.max.apply(null, n); 2150 } 2151 function Fn() { 2152 var t = rt ? Dn(It, Z) : Dn(wt, j), 2153 e = q || R; 2154 e.style.height !== t && (e.style.height = t + "px"); 2155 } 2156 function On() { 2157 $ = [0]; 2158 var t = P ? "left" : "top", 2159 e = P ? "right" : "bottom", 2160 n = W[0].getBoundingClientRect()[t];
2161 forEach(W, function (i, o) { 2162 (o && $.push(i.getBoundingClientRect()[t] - n), 2163 o === Ct - 1 && $.push(i.getBoundingClientRect()[e] - n)); 2164 }); 2165 } 2166 function Wn() { 2167 var t = kn(), 2168 e = t[0], 2169 n = t[1]; 2170 forEach(W, function (t, i) { 2171 i >= e && i <= n 2172 ? hasAttr(t, "aria-hidden") && 2173 (removeAttrs(t, ["aria-hidden", "tabindex"]), addClass(t, le)) 2174 : hasAttr(t, "aria-hidden") || 2175 (setAttrs(t, { "aria-hidden": "true", tabindex: "-1" }), 2176 removeClass(t, le)); 2177 }); 2178 } 2179 function jn(t) { 2180 return t.nodeName.toLowerCase(); 2181 } 2182 function Vn(t) { 2183 return "button" === jn(t); 2184 } 2185 function zn(t) { 2186 return "true" === t.getAttribute("aria-disabled"); 2187 } 2188 function $n(t, e, n) { 2189 t ? (e.disabled = n) : e.setAttribute("aria-disabled", n.toString()); 2190 } 2191 function Jn() { 2192 if (st && !ot && !at) { 2193 var t = fe ? ve.disabled : zn(ve), 2194 e = me ? ye.disabled : zn(ye), 2195 n = It <= Pt, 2196 i = !ot && It >= Nt; 2197 (n && !t && $n(fe, ve, !0), 2198 !n && t && $n(fe, ve, !1), 2199 i && !e && $n(me, ye, !0), 2200 !i && e && $n(me, ye, !1)); 2201 } 2202 } 2203 function Un(t, e) { 2204 f && (t.style[f] = e); 2205 } 2206 function Gn(t) { 2207 return ( 2208 null == t && (t = It), 2209 G 2210 ? (X - (_ ? Q : 0) - ($[t + 1] - $[t] - Q)) / 2 2211 : K 2212 ? (X - K) / 2 2213 : (Z - 1) / 2 2214 ); 2215 } 2216 function Kn() { 2217 var t = X + (_ ? Q : 0) - (K ? (K + Q) * Ct : $[Ct]); 2218 return ( 2219 Y && !at && (t = K ? -(K + Q) * (Ct - 1) - Gn() : Gn(Ct - 1) - $[Ct - 1]), 2220 t > 0 && (t = 0), 2221 t 2222 ); 2223 } 2224 function _n(t) { 2225 var e; 2226 if ((null == t && (t = It), P && !G)) 2227 if (K) ((e = -(K + Q) * t), Y && (e += Gn())); 2228 else { 2229 var n = d ? Ct : Z; 2230 (Y && (t -= Gn()), (e = (100 * -t) / n)); 2231 } 2232 else ((e = -$[t]), Y && G && (e += Gn())); 2233 return (St && (e = Math.max(e, xt)), (e += !P || G || K ? "px" : "%")); 2234 } 2235 function Qn(t) { 2236 (Un(D, "0s"), Xn(t)); 2237 } 2238 function Xn(t) { 2239 (null == t && (t = _n()), (D.style[Lt] = Tt + t + Mt)); 2240 } 2241 function Yn(t, e, n, i) { 2242 var o = t + Z; 2243 at || (o = Math.min(o, Ct)); 2244 for (var a = t; a < o; a++) { 2245 var r = W[a]; 2246 (i || (r.style.left = (100 * (a - It)) / Z + "%"), 2247 I && m && (r.style[m] = r.style[g] = (I * (a - t)) / 1e3 + "s"), 2248 removeClass(r, e), 2249 addClass(r, n), 2250 i && bt.push(r)); 2251 } 2252 } 2253 function Zn(t, e) { 2254 (At && Ge(), 2255 (It !== Bt || e) && 2256 (jt.emit("indexChanged", Si()), 2257 jt.emit("transitionStart", Si()), 2258 rt && Pn(), 2259 He && t && ["click", "keydown"].indexOf(t.type) >= 0 && li(), 2260 (Ot = !0), 2261 Ke())); 2262 } 2263 function ti(t) { 2264 return t.toLowerCase().replace(/-/g, ""); 2265 } 2266 function ei(t) { 2267 if (x || Ot) { 2268 if ((jt.emit("transitionEnd", Si(t)), !x && bt.length > 0)) 2269 for (var e = 0; e < bt.length; e++) { 2270 var n = bt[e]; 2271 ((n.style.left = ""), 2272 g && m && ((n.style[g] = ""), (n.style[m] = "")), 2273 removeClass(n, k), 2274 addClass(n, B)); 2275 } 2276 if ( 2277 !t || 2278 (!x && t.target.parentNode === D) || 2279 (t.target === D && ti(t.propertyName) === ti(Lt)) 2280 ) { 2281 if (!At) { 2282 var i = It; 2283 (Ge(), It !== i && (jt.emit("indexChanged", Si()), Qn())); 2284 } 2285 ("inner" === S && jt.emit("innerLoaded", Si()), (Ot = !1), (Bt = It)); 2286 } 2287 } 2288 } 2289 function ni(t, e) { 2290 if (!Gt) 2291 if ("prev" === t) ii(e, -1); 2292 else if ("next" === t) ii(e, 1); 2293 else { 2294 if (Ot) { 2295 if (Rt) return; 2296 ei(); 2297 } 2298 var n = Ye(), 2299 i = 0; 2300 if ( 2301 ("first" === t 2302 ? (i = -n) 2303 : "last" === t 2304 ? (i = x ? j - Z - n : j - 1 - n) 2305 : ("number" != typeof t && (t = parseInt(t)), 2306 isNaN(t) || 2307 (e || (t = Math.max(0, Math.min(j - 1, t))), (i = t - n))), 2308 !x && i && Math.abs(i) < Z) 2309 ) { 2310 var o = i > 0 ? 1 : -1; 2311 i += It + i - j >= Pt ? j * o : 2 * j * o * -1; 2312 } 2313 ((It += i), 2314 x && at && (It < Pt && (It += j), It > Nt && (It -= j)), 2315 Ye(It) !== Ye(Bt) && Zn(e)); 2316 } 2317 } 2318 function ii(t, e) { 2319 if (Ot) { 2320 if (Rt) return; 2321 ei(); 2322 } 2323 var n; 2324 if (!e) { 2325 for (var i = hi((t = di(t))); i !== pe && [ve, ye].indexOf(i) < 0; ) 2326 i = i.parentNode; 2327 var o = [ve, ye].indexOf(i); 2328 o >= 0 && ((n = !0), (e = 0 === o ? -1 : 1)); 2329 } 2330 if (ot) { 2331 if (It === Pt && -1 === e) return void ni("last", t); 2332 if (It === Nt && 1 === e) return void ni("first", t); 2333 } 2334 e && 2335 ((It += tt * e), 2336 G && (It = Math.floor(It)),
2337 Zn(n || (t && "keydown" === t.type) ? t : null)); 2338 } 2339 function oi() { 2340 ((qe = setInterval(function () { 2341 ii(null, De); 2342 }, ft)), 2343 (He = !0)); 2344 } 2345 function ai() { 2346 (clearInterval(qe), (He = !1)); 2347 } 2348 function ri(t, e) { 2349 (setAttrs(Fe, { "data-action": t }), 2350 (Fe.innerHTML = We[0] + t + We[1] + e)); 2351 } 2352 function si() { 2353 (oi(), Fe && ri("stop", mt[1])); 2354 } 2355 function li() { 2356 (ai(), Fe && ri("start", mt[0])); 2357 } 2358 function ci() { 2359 He ? (li(), (Ne = !0)) : (si(), (Ne = !1)); 2360 } 2361 function ui(t) { 2362 t.focus(); 2363 } 2364 function di(t) { 2365 return fi((t = t || n.event)) ? t.changedTouches[0] : t; 2366 } 2367 function hi(t) { 2368 return t.target || n.event.srcElement; 2369 } 2370 function fi(t) { 2371 return t.type.indexOf("touch") >= 0; 2372 } 2373 function mi(t) { 2374 t.preventDefault ? t.preventDefault() : (t.returnValue = !1); 2375 } 2376 function pi() { 2377 return getTouchDirection(toDegree($e.y - ze.y, $e.x - ze.x), Dt) === t.axis; 2378 } 2379 function gi(t) { 2380 if (Ot) { 2381 if (Rt) return; 2382 ei(); 2383 } 2384 (ht && He && ai(), (Je = !0), Ve && (caf(Ve), (Ve = null))); 2385 var e = di(t); 2386 (jt.emit(fi(t) ? "touchStart" : "dragStart", Si(t)), 2387 !fi(t) && ["img", "a"].indexOf(jn(hi(t))) >= 0 && mi(t), 2388 ($e.x = ze.x = e.clientX), 2389 ($e.y = ze.y = e.clientY), 2390 x && ((je = parseFloat(D.style[Lt].replace(Tt, ""))), Un(D, "0s"))); 2391 } 2392 function vi(t) { 2393 if (Je) { 2394 var e = di(t); 2395 (($e.x = e.clientX), 2396 ($e.y = e.clientY), 2397 x 2398 ? Ve || 2399 (Ve = raf(function () { 2400 yi(t); 2401 })) 2402 : ("?" === Ft && (Ft = pi()), Ft && (he = !0)), 2403 ("boolean" != typeof t.cancelable || t.cancelable) && 2404 he && 2405 t.preventDefault()); 2406 } 2407 } 2408 function yi(t) { 2409 if (Ft) { 2410 if ( 2411 (caf(Ve), 2412 Je && 2413 (Ve = raf(function () { 2414 yi(t); 2415 })), 2416 "?" === Ft && (Ft = pi()), 2417 Ft) 2418 ) { 2419 !he && fi(t) && (he = !0); 2420 try { 2421 t.type && jt.emit(fi(t) ? "touchMove" : "dragMove", Si(t)); 2422 } catch (t) {} 2423 var e = je, 2424 n = Ue($e, ze); 2425 if (!P || K || G) ((e += n), (e += "px")); 2426 else 2427 ((e += d ? (n * Z * 100) / ((X + Q) * Ct) : (100 * n) / (X + Q)), 2428 (e += "%")); 2429 D.style[Lt] = Tt + e + Mt; 2430 } 2431 } else Je = !1; 2432 } 2433 function Ei(e) { 2434 if (Je) { 2435 (Ve && (caf(Ve), (Ve = null)), x && Un(D, ""), (Je = !1)); 2436 var n = di(e); 2437 (($e.x = n.clientX), ($e.y = n.clientY)); 2438 var i = Ue($e, ze); 2439 if (Math.abs(i)) { 2440 if (!fi(e)) { 2441 var o = hi(e); 2442 addEvents(o, { 2443 click: function t(e) { 2444 (mi(e), removeEvents(o, { click: t })); 2445 }, 2446 }); 2447 } 2448 x 2449 ? (Ve = raf(function () { 2450 if (P && !G) { 2451 var t = (-i * Z) / (X + Q); 2452 ((t = i > 0 ? Math.floor(t) : Math.ceil(t)), (It += t)); 2453 } else { 2454 var n = -(je + i); 2455 if (n <= 0) It = Pt; 2456 else if (n >= $[Ct - 1]) It = Nt; 2457 else 2458 for (var o = 0; o < Ct && n >= $[o]; ) 2459 ((It = o), n > $[o] && i < 0 && (It += 1), o++); 2460 } 2461 (Zn(e, i), jt.emit(fi(e) ? "touchEnd" : "dragEnd", Si(e))); 2462 })) 2463 : Ft && ii(e, i > 0 ? -1 : 1); 2464 } 2465 } 2466 ("auto" === t.preventScrollOnTouch && (he = !1), 2467 Dt && (Ft = "?"), 2468 ht && !He && oi()); 2469 } 2470 function bi() { 2471 (q || R).style.height = $[It + Z] - $[It] + "px"; 2472 } 2473 function wi() { 2474 var t = K ? ((K + Q) * j) / X : j / Z; 2475 return Math.min(Math.ceil(t), j); 2476 } 2477 function Ci() { 2478 if (ct && !oe && xe !== Ae) { 2479 var t = Ae, 2480 e = xe, 2481 n = showElement; 2482 for (Ae > xe && ((t = xe), (e = Ae), (n = hideElement)); t < e; ) 2483 (n(we[t]), t++); 2484 Ae = xe; 2485 } 2486 } 2487 function Si(t) { 2488 return { 2489 container: D, 2490 slideItems: W, 2491 navContainer: Ce, 2492 navItems: we, 2493 controlsContainer: pe, 2494 hasControls: ne, 2495 prevButton: ve, 2496 nextButton: ye, 2497 items: Z, 2498 slideBy: tt, 2499 cloneCount: wt, 2500 slideCount: j, 2501 slideCountNew: Ct, 2502 index: It, 2503 indexCached: Bt, 2504 displayIndex: Qe(), 2505 navCurrentIndex: Te, 2506 navCurrentIndexCached: Me, 2507 pages: xe, 2508 pagesCached: Ae, 2509 sheet: vt, 2510 isOn: z, 2511 event: t || {}, 2512 }; 2513 } 2514 E && console.warn("No slides found in", t.container); 2515}; 2516class Toggle { 2517 constructor(t) { 2518 ((this.toggle = t), 2519 (this.target = document.getElementById(this.toggle.dataset.toggleId)), 2520 (this.targetHeight = this.target.offsetHeight), 2521 this.init()); 2522 } 2523 open() { 2524 (this.target.setAttribute("data-toggle", "open"), 2525 this.toggle.setAttribute("data-target-toggle", "open"), 2526 (this.target.style.maxHeight = this.targetHeight + "px")); 2527 } 2528 close() { 2529 (this.target.setAttribute("data-toggle", "close"), 2530 this.toggle.setAttribute("data-target-toggle", "close"), 2531 (this.target.style.maxHeight = null)); 2532 } 2533 init() { 2534 (this.target.setAttribute("data-height", "this.targetHeight"), 2535 this.close(), 2536 this.toggle.addEventListener( 2537 "click", 2538 (t) => { 2539 (t.preventDefault(), 2540 "open" === this.target.dataset.toggle ? this.close() : this.open()); 2541 }, 2542 !1, 2543 )); 2544 } 2545}
2546class VideoHero { 2547 constructor(t) { 2548 ((this.parent = t), 2549 (this.videoFull = this.parent.querySelector(".full-video")), 2550 (this.videoWrapper = this.videoFull.querySelector("[data-iframe]")), 2551 (this.iframeMarkup = null), 2552 (this.buttonOpen = null), 2553 (this.buttonClose = null), 2554 this.videoFull && 2555 ((this.buttonOpen = this.parent.querySelector(".open-full-video")), 2556 (this.buttonClose = this.parent.querySelector(".close-full-video")), 2557 (this.iframeMarkup = this.videoWrapper.dataset.iframe), 2558 this.buttonOpen.addEventListener("click", (t) => { 2559 this.open(); 2560 }), 2561 this.buttonClose.addEventListener("click", (t) => { 2562 this.close(); 2563 }))); 2564 } 2565 open() { 2566 ((this.videoWrapper.innerHTML = this.iframeMarkup), 2567 (this.parent.dataset.showFullVideo = "true")); 2568 } 2569 close() { 2570 ((this.parent.dataset.showFullVideo = "false"), 2571 setTimeout(() => { 2572 this.videoWrapper.innerHTML = ""; 2573 }, 1e3)); 2574 } 2575} 2576function isIE() { 2577 return !!( 2578 window.navigator.userAgent.indexOf("MSIE ") > 0 || 2579 navigator.userAgent.match(/Trident.*rv\:11\./) 2580 ); 2581} 2582var loadJS = function (t, e, n) { 2583 var i = document.createElement("script"); 2584 ((i.src = t), (i.onload = e), (i.onreadystatechange = e), n.appendChild(i)); 2585}; 2586if (isIE()) { 2587 var ieAlert = 2588 '<aside id="ie-alert" data-open="false" class="alert-banner" data-background-color="secondary">\n\t\t<div class="alert-banner-content-wrapper">\n\t\t\t<div class="alert-icon"><div class="ring-the-bell"><i class="fas fa-bell"></i></div></div>\n\t\t\t<div class="alert-message">\n\t\t\t\t<p>For the best performance and security we recommend you use a modern web browser like <a href="https://www.microsoft.com/en-us/edge">Edge</a>, <a href="https://www.google.com/chrome/">Chrome</a>, or <a href="https://www.mozilla.org/en-US/firefox/new/">Firefox</a> rather than Internet Explorer.</p>\n\t\t\t</div>\n\t\t\t<button class="alert-close" aria-label="Close the Alert"><span class="hidden">Close</span><i class="fal fa-times"></i></button>\n\t\t</div>\n\t</aside>'; 2589 (document.getElementById("alerts").insertAdjacentHTML("beforeend", ieAlert), 2590 Element.prototype.matches || 2591 (Element.prototype.matches = 2592 Element.prototype.msMatchesSelector || 2593 Element.prototype.webkitMatchesSelector), 2594 Element.prototype.closest || 2595 (Element.prototype.closest = function (t) { 2596 var e = this; 2597 do { 2598 if (Element.prototype.matches.call(e, t)) return e; 2599 e = e.parentElement || e.parentNode; 2600 } while (null !== e && 1 === e.nodeType); 2601 return null; 2602 }), 2603 "NodeList" in window && 2604 !NodeList.prototype.forEach && 2605 (console.info("polyfill for IE11"), 2606 (NodeList.prototype.forEach = function (t, e) { 2607 e = e || window; 2608 for (var n = 0; n < this.length; n++) t.call(e, this[n], n, this); 2609 })), 2610 (function (t) { 2611 t.URLSearchParams = 2612 t.URLSearchParams || 2613 function (t) { 2614 var e = this; 2615 ((e.searchString = t), 2616 (e.get = function (t) { 2617 var n = new RegExp("[?&]" + t + "=([^&#]*)").exec(e.searchString); 2618 return null == n ? null : decodeURI(n[1]) || 0; 2619 })); 2620 }; 2621 })(window)); 2622 var initAddToCore = function () { 2623 console.log("initToCore"); 2624 }; 2625 loadJS( 2626 "https://cdnjs.cloudflare.com/ajax/libs/core-js/3.18.0/minified.min.js", 2627 initAddToCore, 2628 document.head, 2629 ); 2630 var initCssVars = function () { 2631 cssVars({}); 2632 }; 2633 loadJS( 2634 "https://cdn.jsdelivr.net/npm/[email protected]/dist/css-vars-ponyfill.min.js", 2635 initCssVars, 2636 document.head, 2637 ); 2638 var initObjectFit = function () { 2639 objectFitPolyfill(); 2640 }; 2641 loadJS( 2642 "https://cdn.jsdelivr.net/npm/[email protected]/dist/objectFitPolyfill.min.js", 2643 initObjectFit, 2644 document.head, 2645 ); 2646} 2647window.tns = tns; 2648const cookies = new CookieJar(), 2649 urlParams = new URLSearchParams(window.location.search), 2650 toggles = document.querySelectorAll("[data-toggle-id]"); 2651if (
2652 (toggles.forEach((t) => { 2653 new Toggle(t); 2654 }), 2655 document.querySelectorAll(".alert-banner")) 2656) { 2657 document.querySelectorAll(".alert-banner").forEach((t) => { 2658 new AlertBanner("#" + t.getAttribute("id"), cookies); 2659 }); 2660} 2661const tnsControls = [ 2662 '<i class="far fa-lg fa-angle-left"></i><span class="hidden">Previous Slide</span>', 2663 '<i class="far fa-lg fa-angle-right"></i><span class="hidden">Next Slide</span>', 2664 ], 2665 logoCarousels = document.querySelectorAll(".logo-carousel .carousel"); 2666logoCarousels.forEach((t) => { 2667 tns({ 2668 container: t, 2669 items: 1, 2670 slideBy: "page", 2671 controls: !0, 2672 controlsText: tnsControls, 2673 controlsPosition: "bottom", 2674 navPosition: "bottom", 2675 swipeAngle: 15, 2676 autoplay: !1, 2677 responsive: { 640: { items: 2 }, 768: { items: 3 }, 1024: { items: 4 } }, 2678 }); 2679}); 2680const heroCarousels = document.querySelectorAll(".hero-panes.carousel"); 2681heroCarousels.forEach((t) => { 2682 tns({ 2683 container: t, 2684 items: 1, 2685 controls: !0, 2686 controlsText: tnsControls, 2687 controlsPosition: "bottom", 2688 navPosition: "bottom", 2689 speed: 500, 2690 swipeAngle: 15, 2691 loop: !0, 2692 }); 2693}); 2694const contentGalleries = document.querySelectorAll(".content-gallery .slides"); 2695contentGalleries.forEach((t) => { 2696 tns({ 2697 container: t, 2698 items: 1, 2699 controls: !0, 2700 controlsText: tnsControls, 2701 controlsPosition: "bottom", 2702 navPosition: "bottom", 2703 speed: 500, 2704 swipeAngle: 15, 2705 loop: !0, 2706 }); 2707}); 2708const testimonialCarousels = document.querySelectorAll(".testimonials"); 2709testimonialCarousels.forEach((t) => { 2710 tns({ 2711 container: t, 2712 controlsPosition: "bottom", 2713 navPosition: "bottom", 2714 autoplay: !1, 2715 items: 1, 2716 controls: !0, 2717 controlsText: tnsControls, 2718 swipeAngle: 15, 2719 }); 2720}); 2721const timelines = document.querySelectorAll(".timeline"); 2722timelines.forEach((t) => { 2723 let e, 2724 n = t.querySelector(".timeline-events"); 2725 e = t.querySelector(".timeline-slides") 2726 ? { 2727 container: n, 2728 items: 1, 2729 slideBy: 1, 2730 speed: 800, 2731 loop: !1, 2732 controls: !1, 2733 nav: !1, 2734 autoplay: !1, 2735 responsive: { 640: { items: 2 }, 1024: { items: 3, center: !0 } }, 2736 } 2737 : { 2738 container: n, 2739 items: 1, 2740 slideBy: 3, 2741 speed: 800, 2742 loop: !1, 2743 controls: !0, 2744 controlsText: tnsControls, 2745 controlsPosition: "bottom", 2746 navPosition: "bottom", 2747 swipeAngle: 15, 2748 autoplay: !1, 2749 responsive: { 640: { items: 2 }, 1024: { items: 3 } }, 2750 }; 2751 let i = tns(e); 2752 if (t.querySelector(".timeline-slides")) { 2753 let e = t.querySelector(".timeline-slides"); 2754 tns({ 2755 container: e, 2756 speed: 1200, 2757 items: 1, 2758 loop: !0, 2759 lazyload: !0, 2760 controlsText: tnsControls, 2761 controlsPosition: "bottom", 2762 navContainer: n, 2763 navAsThumbnails: !0, 2764 }).events.on("indexChanged", (t) => { 2765 i.goTo(t.displayIndex - 1); 2766 }); 2767 } 2768}); 2769const prevButtons = document.querySelectorAll('[data-controls="prev"]'), 2770 nextButtons = document.querySelectorAll('[data-controls="next"]'); 2771(prevButtons.forEach((t) => { 2772 t.setAttribute("aria-label", "Previous Slide"); 2773}), 2774 nextButtons.forEach((t) => { 2775 t.setAttribute("aria-label", "Next Slide"); 2776 })); 2777const expands = document.querySelectorAll("[data-expand-toggle]"), 2778 builtExpands = []; 2779expands.forEach((t) => { 2780 let e = new Expand(t); 2781 builtExpands.push(e); 2782}); 2783const expandGrids = document.querySelectorAll(".expand-grid"); 2784expandGrids.forEach((t) => { 2785 new ExpandGrid(t); 2786}); 2787const infoCarousels = document.querySelectorAll(".info-carousel"); 2788infoCarousels.forEach((t) => { 2789 new InfoCarousel(t); 2790}); 2791const videoHeroes = document.querySelectorAll(".video-hero"); 2792if ( 2793 (videoHeroes.forEach((t) => { 2794 new VideoHero(t); 2795 }), 2796 "undefined" != typeof List) 2797) { 2798 if (document.querySelector("#blog .list")) { 2799 const t = new List("blog", { 2800 valueNames: ["title", "post-preview", "categories", "tags", "year"], 2801 }); 2802 if ( 2803 (new BlogFilter( 2804 t, 2805 new ListFilter(t, ".blog-filter-input", "#blog-load-more", 12), 2806 ), 2807 window.location.href.indexOf("category") > -1) 2808 ) { 2809 var category = window.location.href 2810 .split("/category/")[1] 2811 .replace("/", ""), 2812 catCheckInput = document.querySelector( 2813 'input[data-slug="' + category + '"]', 2814 ); 2815 catCheckInput.click(); 2816 } 2817 } 2818 if (document.querySelector("#faqs-list .list")) { 2819 const t = new List("faqs-list", { 2820 valueNames: ["question", "answer", "categories"], 2821 }); 2822 document.querySelector(".faq-filter") && 2823 new ListFilter(t, ".faq-filter-input"); 2824 } 2825} 2826document.getElementById("menu-toggle-button") && 2827 document.getElementById("menu-toggle-target") && 2828 new Menu("#menu-toggle-target", "#menu-toggle-button"); 2829const modals = document.querySelectorAll(".modal-wrapper"); 2830function workAfterResizeIsDone() { 2831 builtExpands.forEach((t) => {
2832 t.heightCalc(); 2833 }); 2834} 2835var timeOutFunctionId; 2836if ( 2837 (modals.forEach((t) => { 2838 new Modal(t); 2839 }), 2840 window.addEventListener("resize", function () { 2841 (clearTimeout(timeOutFunctionId), 2842 (timeOutFunctionId = setTimeout(workAfterResizeIsDone, 500))); 2843 }), 2844 urlParams.has("fieldId")) 2845) { 2846 let t = urlParams.get("fieldId"); 2847 if (document.getElementById(t)) { 2848 let e = document.getElementById(t); 2849 if ( 2850 (urlParams.has("fieldValue") && (e.value = urlParams.get("fieldValue")), 2851 urlParams.has("fieldAttribute")) 2852 ) { 2853 let t = urlParams.get("fieldAttribute").split(":"); 2854 (1 == t.length && e.setAttribute(t[0], !0), 2855 2 == t.length && e.setAttribute(t[0], t[1])); 2856 } 2857 } 2858} 2859const marketingParams = [ 2860 { param: "gclid", id: "00N0H00000JnS6n" }, 2861 { param: "utm_adgroup", id: "00N0H00000J5KHz" }, 2862 { param: "utm_campaign", id: "00N0H00000J5KI0" }, 2863 { param: "utm_content", id: "00N0H00000J5KI1" }, 2864 { param: "utm_medium", id: "00N0H00000J5KI2" }, 2865 { param: "utm_source", id: "00N0H00000J5KI4" }, 2866 { param: "utm_term", id: "00N0H00000J5KI5" }, 2867 { param: "utm_promocode", id: "00N0H00000J5KI3" }, 2868]; 2869marketingParams.forEach((t) => { 2870 const e = document.getElementById(t.id); 2871 urlParams.has(t.param) && e && (e.value = urlParams.get(t.param)); 2872}); 2873const referringURL = document.getElementById("00Ni000000HqgKz"); 2874referringURL && (referringURL.value = document.referrer || "direct"); 2875const entryPointURL = document.getElementById("00Ni000000HqgL4"); 2876entryPointURL && (entryPointURL.value = window.location); 2877const signatureInputs = document.querySelectorAll('[data-type="signature"]'); 2878if (signatureInputs.length > 0) { 2879 const t = document.createElement("script"); 2880 ((t.src = 2881 "https://cdn.jsdelivr.net/npm/[email protected]/dist/signature_pad.umd.min.js"), 2882 document.head.appendChild(t), 2883 (t.onload = () => { 2884 signatureInputs.forEach((t) => { 2885 t.classList.add("hidden"); 2886 const e = t.parentElement; 2887 e.insertAdjacentHTML( 2888 "beforeend", 2889 '<div class="signature-pad"><canvas></canvas></div>', 2890 ); 2891 const n = e.querySelector("canvas"), 2892 i = new SignaturePad(n); 2893 i.addEventListener("endStroke", () => { 2894 t.value = i.toDataURL(); 2895 }); 2896 }); 2897 })); 2898} 2899const dateAutofills = document.querySelectorAll(".autofill-date"); 2900if (dateAutofills) { 2901 const t = new Date(); 2902 dateAutofills.forEach((e) => { 2903 const n = t.toLocaleDateString("en-CA"); 2904 e.value = n; 2905 }); 2906} 2907const disclaimerWrappers = document.querySelectorAll(".disclaimer-wrapper"); 2908let lwi = 0; 2909(disclaimerWrappers.forEach((t) => { 2910 const e = t.querySelectorAll("[data-disclaimer]"), 2911 n = []; 2912 e.forEach((t) => { 2913 const e = t.dataset.disclaimer; 2914 n.includes(e) || n.push(e); 2915 const i = n.indexOf(e) + 1, 2916 o = `disclaimer-${lwi}-${i}`; 2917 t.innerHTML = `<a href="#${o}">${i}</a>`; 2918 }); 2919 let i = 1, 2920 o = ""; 2921 (n.forEach((t) => { 2922 ((o += `<li class="disclaimer" id=${`disclaimer-${lwi}-${i}`}>${t}</li>`), 2923 i++); 2924 }), 2925 e.length && t.insertAdjacentHTML("beforeend", `<ol>${o}</ol>`), 2926 lwi++); 2927}), 2928 disclaimerWrappers && window.dispatchEvent(new Event("resize"))); 2929let inViewport = new IntersectionObserver( 2930 (t, e) => { 2931 t.forEach((t) => { 2932 t.isIntersecting 2933 ? (t.target.dataset.view = "visible") 2934 : t.boundingClientRect.top > 0 2935 ? (t.target.dataset.view = "below") 2936 : (t.target.dataset.view = "above"); 2937 }); 2938 }, 2939 { rootMargin: "0px 0px 0px 0px" }, 2940); 2941document.querySelectorAll("main#content>*").forEach((t) => { 2942 inViewport.observe(t); 2943});
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.