1(self.webpackChunkesign_template=self.webpackChunkesign_template||[]).push([[736],{477:function(e){e.exports=function(e){var t={};function n(i){if(t[i])return t[i].exports;var r=t[i]={i:i,l:!1,exports:{}};return e[i].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=e,n.c=t,n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(i,r,function(t){return e[t]}.bind(null,r));return i},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=0)}([function(e,t,n){"use strict";function i(e){(arguments.length>1&&void 0!==arguments[1]?arguments[1]:[]).forEach((function(t){return e.style.removeProperty(t)}))}n.r(t),n.d(t,"default",(function(){return f}));var r=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:350;return new Promise((function(n){var r=e;r.style.height="".concat(r.offsetHeight,"px"),r.style.opacity=1,r.style.overflow="hidden",r.style.transitionDuration="".concat(t,"ms"),r.style.transitionProperty="height, margin, padding, opacity",r.offsetHeight,r.style.height=0,r.style.marginTop=0,r.style.opacity=0,r.style.marginBottom=0,r.style.paddingTop=0,r.style.paddingBottom=0,window.setTimeout((function(){r.style.display="none",i(r,["height","overflow","padding-top","padding-bottom","margin-top","margin-bottom","transition-duration","transition-property","opacity"]),n(!0)}),t)}))},s=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:350;return new Promise((function(n){var r=e;r.style.removeProperty("display");var s=window.getComputedStyle(r).display;"none"===s&&(s="block"),r.style.display=s;var a=r.offsetHeight;r.style.overflow="hidden",r.style.height=0,r.style.opacity=0,r.style.paddingTop=0,r.style.paddingBottom=0,r.style.marginTop=0,r.style.marginBottom=0,r.offsetHeight,r.style.transitionProperty="height, margin, padding, opacity",r.style.transitionDuration="".concat(t,"ms"),r.style.height="".concat(a,"px"),r.style.opacity=1,i(r,["padding-top","padding-bottom","margin-top","margin-bottom"]),window.setTimeout((function(){i(r,["height","overflow","transition-duration","transition-property","opacity"]),n(!0)}),t)}))};function a(e){return function(e){if(Array.isArray(e))return o(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return o(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?o(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function c(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?l(Object(n),!0).forEach((function(t){u(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function u(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function d(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function p(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}var f=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};d(this,e),this.el=t;var i={animationDuration:350,closeOthers:!1,scrollOffset:0,openDefault:!1,nameSpace:"accordion",activeClass:"open",cssEasing:"ease-in-out"};this.options=c(c({},i),n),this.panelClass="".concat(this.options.nameSpace,"__panel"),this.triggerClass="".concat(this.options.nameSpace,"__trigger"),this.contentClass="".concat(this.options.nameSpace,"__content"),this.activeClass="".concat(this.panelClass,"--").concat(this.options.activeClass);var r=this.el.querySelectorAll(".".concat(this.panelClass));this.ids=a(r).filter((function(e){return e.id})).map((function(e){return"#".concat(e.id)}
1)),this.foundAnchor=null,this.init()}var t,n,i;return t=e,(n=[{key:"init",value:function(){if(this.initEvents(),this.initContent(this.el.querySelectorAll(".".concat(this.contentClass))),this.checkUrl(),this.options.openDefault&&!this.foundAnchor){var e=this.el.querySelector(".".concat(this.panelClass));e&&this.toggle(e)}}},{key:"initEvents",value:function(){var e=this;a(this.el.querySelectorAll(".".concat(this.triggerClass))).forEach((function(t){t.addEventListener("click",(function(t){return e.onClick(t)}))}))}},{key:"initContent",value:function(e){e.forEach((function(e){e.style.display="none"}))}},{key:"onClick",value:function(e){if(!this.isAnimating){e.stopImmediatePropagation();var t=e.target.closest(".".concat(this.panelClass));this.toggle(t)}}},{key:"toggle",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this.isAnimating=!0,e.classList.contains(this.activeClass)?this.close(e):this.open(e),this.options.closeOthers&&!t&&this.closeOthers(e)}},{key:"closeOthers",value:function(e){var t=this;a(e.closest(".".concat(this.options.nameSpace)).querySelectorAll(".".concat(this.panelClass))).forEach((function(n){n!==e&&t.close(n)}))}},{key:"open",value:function(e){var t=this,n=e.querySelector(".".concat(this.contentClass));e.classList.add(this.activeClass),s(n,this.options.animationDuration).then((function(e){e&&(t.isAnimating=!1)}))}},{key:"close",value:function(e){var t=this,n=e.querySelector(".".concat(this.contentClass));e.classList.remove(this.activeClass),r(n,this.options.animationDuration).then((function(e){e&&(t.isAnimating=!1)}))}},{key:"checkUrl",value:function(){if(this.foundAnchor=this.ids.find((function(e){return window.location.href.indexOf(e)>-1})),this.foundAnchor){var e=this.el.querySelector(".".concat(this.panelClass).concat(this.foundAnchor));this.checkParentPanel(e),this.toggle(e);var t=e.getBoundingClientRect().top-this.options.scrollOffset;window.scrollTo({top:t,behavior:"smooth"})}}},{key:"checkParentPanel",value:function(e){var t=e.parentNode.closest(".".concat(this.panelClass));t&&(this.checkParentPanel(t),this.toggle(t,!0))}}])&&p(t.prototype,n),i&&p(t,i),Object.defineProperty(t,"prototype",{writable:!1}),e}()}])},776:function(module){var factory;factory=function(){return function(e){var t={};function n(i){if(t[i])return t[i].exports;var r=t[i]={i:i,l:!1,exports:{}};return e[i].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=e,n.c=t,n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(i,r,function(t){return e[t]}.bind(null,r));return i},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s="./src/index.js")}({
1"./src/Marquee.js": 2/*!************************!*\ 3 !*** ./src/Marquee.js ***! 4 \************************/ 5/*! exports provided: default, marquees, DIRECTIONS */function(module,__webpack_exports__,__webpack_require__){"use strict";eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"default\", function() { return Marquee; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"marquees\", function() { return marqueesInit; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"DIRECTIONS\", function() { return DIRECTIONS; });\n/* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./util */ \"./src/util.js\");\n\nconst DIRECTIONS = {\n left: 'left',\n right: 'right',\n up: 'up',\n down: 'down'\n};\n\nclass Marquee {\n constructor(element, options = {}) {\n this.el = element;\n this.isPlaying = false;\n this.translateX = 0;\n this.translateY = 0;\n this.lastTick = 0;\n this.marqueeWidth = this.el.offsetWidth;\n const defaultOptions = {\n nameSpace: 'marquee',\n horizontalSpeed: 75,\n verticalSpeed: 0,\n pauseOnHover: true,\n duplicate: true,\n directionX: DIRECTIONS.right,\n directionY: DIRECTIONS.down\n };\n this.options = { ...defaultOptions,\n ...options\n };\n this.scrollEl = this.el.querySelector(`.${this.options.nameSpace}__scroll`);\n this.itemsEl = this.el.querySelector(`.${this.options.nameSpace}__items`);\n this.itemsEls = this.el.querySelectorAll(`.${this.options.nameSpace}__items`);\n\n if (!this.options.duplicate && this.options.directionX === DIRECTIONS.left) {\n this.el.classList.add(`${this.options.nameSpace}--justify-end`);\n }\n\n if (!this.scrollEl || !this.itemsEl) {\n // eslint-disable-next-line no-console\n console.error('No scroll or items element defined');\n }\n\n return (async () => {\n await this.init();\n return this;\n })();\n }\n\n async init() {\n await this.loadImages();\n this.calculate();\n this.initEvents();\n this.play();\n }\n\n initEvents() {\n window.addEventListener('resize', () => {\n this.resetScrollEl();\n this.calculate();\n });\n\n if (this.options.pauseOnHover) {\n this.el.addEventListener('mouseover', this.pause.bind(this), false);\n this.el.addEventListener('mouseout', this.play.bind(this), false);\n }\n }\n\n resetScrollEl() {\n this.scrollEl.innerHTML = '';\n this.scrollEl.appendChild(this.itemsEl);\n }\n\n async loadImages() {\n await Object(_util__WEBPACK_IMPORTED_MODULE_0__[\"default\"])(this.el);\n }\n\n calculate() {\n const marqueeHeight = this.itemsEl.offsetHeight;\n this.el.style.height = `${marqueeHeight}px`;\n this.translateX = this.getInitialTranslateX();\n this.translateY = this.getInitialTranslateY();\n\n if (this.options.duplicate) {\n this.duplicateItemsEl();\n }\n }\n\n duplicateItemsEl() {\n if (!this.itemsEl.children.length) {\n return;\n }\n\n const maxTranslateX = this.itemsEl.offsetWidth;\n const marqueeWidth = this.el.offsetWidth;\n let cloneAmount = Math.max(1, Math.ceil(marqueeWidth / maxTranslateX));\n\n while (cloneAmount > 0) {\n const clonedItemsEl = this.itemsEl.cloneNode(true);\n this.scrollEl.appendChild(clonedItemsEl);\n cloneAmount -= 1;\n }\n\n this.itemsEls = this.el.querySelectorAll(`.${this.options.nameSpace}__items`);\n }\n\n calculateMaxTranslateX() {\n if (this.options.duplicate) {\n return this.itemsEl.offsetWidth;\n }\n\n return this.el.offsetWidth;\n }\n\n calculateMaxTranslateY() {\n return this.itemsEl.offsetHeight * 1.5;\n }\n\n getInitialTranslateX() {\n if (!this.options.duplicate) {\n if (this.options.directionX === DIRECTIONS.right) {\n return -this.itemsEl.offsetWidth;\n }\n\n return this.itemsEl.offsetWidth;\n }\n\n if (this.options.directionX === DIRECTIONS.right) {\n return -this.itemsEl.offsetWidth;\n }\n\n return 0;\n }\n\n getInitialTranslateY() {\n if (this.options.directionY === DIRECTIONS.down) {\n return -this.itemsEl.offsetHeight;\n }\n\n if (this.options.directionY === DIRECTIONS.up) {\n return this.itemsEl.offsetHeight;\n }\n\n return 0;\n }\n\n play() {\n if (!this.isPlaying) {\n this.isPlaying = true;\n this.lastTick = this.getCurrentTimeStamp();\n this.animate();\n }\n }\n\n pause() {\n this.isPlaying = false;\n }\n\n getCalculatedTranslateX(delta) {\n const maxTranslateX = this.calculateMaxTranslateX(); // Direction left to right\n\n if (this.options.directionX === DIRECTIONS.right) {\n const translateX = this.translateX + delta * this.options.horizontalSpeed;\n let boundary = maxTranslateX;\n\n if (this.options.duplicate) {\n boundary += this.getInitialTranslateX();\n } // Check and correct boundaries\n\n\n if (translateX >
5= boundary) {\n return this.getInitialTranslateX();\n }\n\n return translateX;\n } // Direction right to left\n\n\n const translateX = this.translateX - delta * this.options.horizontalSpeed; // Check and correct boundaries\n\n if (translateX <= -maxTranslateX) {\n return this.getInitialTranslateX();\n }\n\n return translateX;\n }\n\n getCalculatedTranslateY(delta) {\n const maxTranslateY = this.calculateMaxTranslateY(); // Direction top to bottom\n\n if (this.options.directionY === DIRECTIONS.down) {\n const translateY = this.translateY + delta * this.options.verticalSpeed; // Check and correct boundaries\n\n if (translateY >= maxTranslateY) {\n return this.getInitialTranslateY();\n }\n\n return translateY;\n } // Direction bottom to top\n\n\n const translateY = this.translateY - delta * this.options.verticalSpeed; // Check and correct boundaries\n\n if (translateY <= -maxTranslateY) {\n return this.getInitialTranslateY();\n }\n\n return translateY;\n }\n\n getTranslateValue({\n x,\n y\n }) {\n if (x && y) {\n return `translate(${x}px, ${y}px)`;\n }\n\n if (x) {\n return `translateX(${x}px)`;\n }\n\n if (y) {\n return `translateY(${y}px)`;\n }\n\n return 0;\n }\n\n animate() {\n if (this.isPlaying) {\n const currentTick = this.getCurrentTimeStamp();\n const delta = (currentTick - this.lastTick) / 1000;\n\n if (this.options.horizontalSpeed > 0) {\n this.translateX = this.getCalculatedTranslateX(delta);\n this.scrollEl.style.transform = this.getTranslateValue({\n x: this.translateX\n });\n }\n\n if (this.options.verticalSpeed > 0) {\n this.translateY = this.getCalculatedTranslateY(delta);\n this.scrollEl.style.transform = this.getTranslateValue({\n y: this.translateY\n });\n }\n\n if (this.options.horizontalSpeed && this.options.verticalSpeed) {\n this.scrollEl.style.transform = this.getTranslateValue({\n x: this.translateX,\n y: this.translateY\n });\n }\n\n requestAnimationFrame(() => this.animate());\n this.lastTick = currentTick;\n }\n }\n\n destroy() {\n if (this.options.pauseOnHover) {\n this.el.removeEventListener('mouseover', this.pause.bind(this), false);\n this.el.removeEventListener('mouseout', this.play.bind(this), false);\n }\n }\n\n getCurrentTimeStamp() {\n var _window$performance;\n\n return (_window$performance = window.performance) !== null && _window$performance !== void 0 && _window$performance.now ? window.performance.now() : new Date().getTime();\n }\n\n}\n\nconst marqueesInit = (selector, options = {}) => {\n const marqueeEls = document.querySelectorAll(selector);\n [...marqueeEls].forEach(marquee => new Marquee(marquee, options));\n};\n\n\n\n//# sourceURL=webpack://esign-components/./src/Marquee.js?")},
5"./src/index.js": 6/*!**********************!*\ 7 !*** ./src/index.js ***! 8 \**********************/ 9/*! exports provided: default, marquees */function(module,__webpack_exports__,__webpack_require__){"use strict";eval('__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _index_scss__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./index.scss */ "./src/index.scss");\n/* harmony import */ var _Marquee__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Marquee */ "./src/Marquee.js");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "default", function() { return _Marquee__WEBPACK_IMPORTED_MODULE_1__["default"]; });\n\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "marquees", function() { return _Marquee__WEBPACK_IMPORTED_MODULE_1__["marquees"]; });\n\n\n\n\n\n//# sourceURL=webpack://esign-components/./src/index.js?')},
9"./src/index.scss": 10/*!************************!*\ 11 !*** ./src/index.scss ***! 12 \************************/ 13/*! no exports provided */function(module,__webpack_exports__,__webpack_require__){"use strict";eval("__webpack_require__.r(__webpack_exports__);\n// extracted by mini-css-extract-plugin\n\n\n//# sourceURL=webpack://esign-components/./src/index.scss?")},
13"./src/util.js": 14/*!*********************!*\ 15 !*** ./src/util.js ***! 16 \*********************/ 17/*! exports provided: default */function(module,__webpack_exports__,__webpack_require__){"use strict";eval("__webpack_require__.r(__webpack_exports__);\nconst waitForImagesToLoad = element => new Promise(resolve => {\n let allImgsLength = 0;\n let allImgsLoaded = 0;\n const allImgs = [];\n const filtered = Array.prototype.filter.call(element.querySelectorAll('img'), item => {\n if (item.src === '') {\n return false;\n } // Firefox's `complete` property will always be `true` even if the image has not been downloaded.\n // Doing it this way works in Firefox.\n\n\n const img = new Image();\n img.src = item.src;\n return !img.complete;\n });\n filtered.forEach(item => {\n allImgs.push({\n src: item.src,\n element: item\n });\n });\n allImgsLength = allImgs.length;\n allImgsLoaded = 0; // If no images found, don't bother.\n\n if (allImgsLength === 0) {\n resolve();\n }\n\n allImgs.forEach(img => {\n const image = new Image(); // Handle the image loading and error with the same callback.\n\n image.addEventListener('load', () => {\n allImgsLoaded++;\n\n if (allImgsLoaded === allImgsLength) {\n resolve();\n }\n });\n image.src = img.src;\n });\n return true;\n});\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (waitForImagesToLoad);\n\n//# sourceURL=webpack://esign-components/./src/util.js?")}})},module.exports=factory()},76:function(e){e.exports=function(e){var t={};function n(i){if(t[i])return t[i].exports;var r=t[i]={i:i,l:!1,exports:{}};return e[i].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=e,n.c=t,n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(i,r,function(t){return e[t]}.bind(null,r));return i},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=2)}([function(e,t,n){var i,r,s;r=[t],void 0===(s="function"==typeof(i=function(e){"use strict";function t(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}Object.defineProperty(e,"__esModule",{value:!0});var n=!1;if("undefined"!=typeof window){var i={get passive(){n=!0}};window.addEventListener("testPassive",null,i),window.removeEventListener("testPassive",null,i)}function r(e){return l.some((function(t){return!(!t.options.allowTouchMove||!t.options.allowTouchMove(e))}))}function s(e){var t=e||window.event;return!!r(t.target)||1<t.touches.length||(t.preventDefault&&t.preventDefault(),!1)}function a(){setTimeout((function(){void 0!==p&&(document.body.style.paddingRight=p,p=void 0),void 0!==d&&(document.body.style.overflow=d,d=void 0)}))}var o="undefined"!=typeof window&&window.navigator&&window.navigator.platform&&(/iP(ad|hone|od)/.test(window.navigator.platform)||"MacIntel"===window.navigator.platform&&1<window.navigator.maxTouchPoints),l=[],c=!1,u=-1,d=void 0,p=void 0;e.disableBodyScroll=function(e,i){if(o){if(!e)return void console.error("disableBodyScroll unsuccessful - targetElement must be provided when calling disableBodyScroll on IOS devices.");if(e&&!l.some((function(t){return t.targetElement===e}))){var a={targetElement:e,options:i||{}};l=[].concat(t(l),[a]),e.ontouchstart=function(e){1===e.targetTouches.length&&(u=e.targetTouches[0].clientY)},e.ontouchmove=function(t){var n,i,a,o;1===t.targetTouches.length&&(i=e,o=(n=t).targetTouches[0].clientY-u,r(n.target)||(i&&0===i.scrollTop&&0<o||(a=i)&&a.scrollHeight-a.scrollTop<=a.clientHeight&&o<0?s(n):n.stopPropagation()))},c||(document.addEventListener("touchmove",s,n?{passive:!1}:void 0),c=!0)}}else{h=i,setTimeout((function(){if(void 0===p){var e=!!h&&!0===h.reserveScrollBarGap,t=window.innerWidth-document.documentElement.clientWidth;e&&0<t&&(p=document.body.style.paddingRight,document.body.style.paddingRight=t+"px")}void 0===d&&(d=document.body.style.overflow,document.body.style.overflow="hidden")}));var f={targetElement:e,options:i||{}};l=[].concat(t(l),[f])}var h},e.clearAllBodyScrollLocks=function(){o?(l.forEach((function(e){e.targetElement.ontouchstart=null,e.targetElement.ontouchmove=null})),c&&(document.removeEventListener("touchmove",s,n?{passive:!1}:void 0),c=!1),l=[],u=-1):(a(),l=[])},e.enableBodyScroll=function(e){if(o){if(!e)return void console.error("enableBodyScroll unsuccessful - targetElement must be provided when calling enableBodyScroll on IOS devices.");e.ontouchstart=null,e.ontouchmove=null,l=l.filter((function(t){return t.targetElement!==e})),c&&0===l.length&&(document.removeEventListener("touchmove",s,n?{passive:!1}:void 0),c=!1)}else(l=l.filter((function(t){return t.targetElement!==e}))).length||a()}})?i.apply(t,r):i)||(e.exports=s)},function(e,t,n){"use strict";var i,r="object"==typeof Reflect?Reflect:null,s=r&&"function"==typeof r.apply?r.apply:function(e,t,n){return Function.prototype.apply.call(e,t,n)};i=r&&"function"==typeof r.ownKeys?r.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var a=Number.isNaN||function(e){return e!=e};function o(){o.init.call(this)}e.exports=o,e.exports.once=function(e,t){return new Promise((function(n,i){function r(n){e.removeListener(t,s),i(n)}function s(){"function"==typeof e.removeListener&&e.removeListener("error",r),n([].slice.call(arguments))}g(e,t,s,{once:!0}),"error"!==t&&function(e,t,n){"function"==typeof e.on&&g(e,"error",t,n)}(e,r,{once:!0})}))},o.EventEmitter=o,o.prototype._events=void 0,o.prototype._eventsCount=0,o.prototype._maxListeners=void 0;var l=10;function c(e){if("function"!=typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function u(e){return void 0===e._maxListeners?o.defaultMaxListeners:e._maxListeners}function d(e,t,n,i){var r,s,a,o;if(c(n),void 0===(s=e._events)?(s=e._events=Object.create(null),e._eventsCount=0):(void 0!==s.newListener&&(e.emit("newListener",t,n.listener?n.listener:n),s=e._events),a=s[t]),void 0===a)a=s[t]=n,++e._eventsCount;else if("function"==typeof a?a=s[t]=i?[n,a]:[a,n]:i?a.unshift(n):a.push(n),(r=u(e))>0&&a.length>r&&!a.warned){a.warned=!0;var l=new Error("Possible EventEmitter memory leak detected. "+a.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");l.name="MaxListenersExceededWarning",l.emitter=e,l.type=t,l.count=a.length,o=l,console&&console.warn&&console.warn(o)}return e}function p(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function f(e,t,n){var i={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},r=p.bind(i);return r.listener=n,i.wrapFn=r,r}function h(e,t,n){var i=e._events;if(void 0===i)return[];var r=i[t];return void 0===r?[]:"function"==typeof r?n?[r.listener||r]:[r]:n?function(e){for(var t=new Array(e.length),n=0;n<t.length;++n)t[n]=e[n].listener||e[n];return t}(r):v(r,r.length)}function m(e){var t=this._events;if(void 0!==t){var n=t[e];if("function"==typeof n)return 1;if(void 0!==n)return n.length}return 0}function v(e,t){for(var n=new Array(t),i=0;i<t;++i)n[i]=e[i];return n}function g(e,t,n,i){if("function"==typeof e.on)i.once?e.once(t,n):e.on(t,n);else{if("function"!=typeof e.addEventListener)throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof e);e.addEventListener(t,(function r(s){i.once&&e.removeEventListener(t,r),n(s)}))}}Object.defineProperty(o,"defaultMaxListeners",{enumerable:!0,get:function(){return l},set:function(e){if("number"!=typeof e||e<0||a(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");l=e}}),o.init=function(){void 0!==this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},o.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||a(e))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this},o.prototype.getMaxListeners=function(){return u(this)},o.prototype.emit=function(e){for(var t=[],n=1;n<arguments.length;n++)t.push(arguments[n]);var i="error"===e,r=this._events;if(void 0!==r)i=i&&void 0===r.error;else if(!i)return!1;if(i){var a;if(t.length>0&&(a=t[0]),a instanceof Error)throw a;var o=new Error("Unhandled error."+(a?" ("+a.message+")":""));throw o.context=a,o}var l=r[e];if(void 0===l)return!1;if("function"==typeof l)s(l,this,t);else{var c=l.length,u=v(l,c);for(n=0;n<c;++n)s(u[n],this,t)}return!0},o.prototype.addListener=function(e,t){return d(this,e,t,!1)},o.prototype.on=o.prototype.addListener,o.prototype.prependListener=function(e,t){return d(this,e,t,!0)},o.prototype.once=function(e,t){return c(t),this.on(e,f(this,e,t)),this},o.prototype.prependOnceListener=function(e,t){return c(t),this.prependListener(e,f(this,e,t)),this},o.prototype.removeListener=function(e,t){var n,i,r,s,a;if(c(t),void 0===(i=this._events))return this;if(void 0===(n=i[e]))return this;if(n===t||n.listener===t)0==--this._eventsCount?this._events=Object.create(null):(delete i[e],i.removeListener&&this.emit
17("removeListener",e,n.listener||t));else if("function"!=typeof n){for(r=-1,s=n.length-1;s>=0;s--)if(n[s]===t||n[s].listener===t){a=n[s].listener,r=s;break}if(r<0)return this;0===r?n.shift():function(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}(n,r),1===n.length&&(i[e]=n[0]),void 0!==i.removeListener&&this.emit("removeListener",e,a||t)}return this},o.prototype.off=o.prototype.removeListener,o.prototype.removeAllListeners=function(e){var t,n,i;if(void 0===(n=this._events))return this;if(void 0===n.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==n[e]&&(0==--this._eventsCount?this._events=Object.create(null):delete n[e]),this;if(0===arguments.length){var r,s=Object.keys(n);for(i=0;i<s.length;++i)"removeListener"!==(r=s[i])&&this.removeAllListeners(r);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(t=n[e]))this.removeListener(e,t);else if(void 0!==t)for(i=t.length-1;i>=0;i--)this.removeListener(e,t[i]);return this},o.prototype.listeners=function(e){return h(this,e,!0)},o.prototype.rawListeners=function(e){return h(this,e,!1)},o.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):m.call(e,t)},o.prototype.listenerCount=m,o.prototype.eventNames=function(){return this._eventsCount>0?i(this._events):[]}},function(e,t,n){"use strict";n.r(t),n.d(t,"ModalManager",(function(){return v})),n.d(t,"Modal",(function(){return p})),n.d(t,"ModalAnimationTemplate",(function(){return T}));var i=n(0);function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function s(e){return function(e){if(Array.isArray(e))return a(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return a(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?a(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function o(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function l(e,t){return(l=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function c(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,i=d(e);if(t){var r=d(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return u(this,n)}}function u(e,t){if(t&&("object"===r(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function d(e){return(d=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var p=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&l(e,t)}(a,e);var t,n,i,r=c(a);function a(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),(t=r.call(this)).element=e.element,t.id=e.element.getAttribute("id"),t.modalDialog=null,t.modalDocument=null,t.closeTriggers=null,t.accessibilityWrap=void 0===e.accessibilityWrap||e.accessibilityWrap,t.isAlert="undefined"!==e.isAlert&&e.isAlert,t.title=e.title||"",t.showHash=void 0===e.showHash||e.showHash,t.backgroundScroll=void 0!==e.backgroundScroll&&e.backgroundScroll,t.containsVideo=void 0!==e.containsVideo&&e.containsVideo,t.lock=void 0!==e.lock&&e.lock,t.focu
17sableElements=null,t.eventListeners=[],t.activeClass="modal--active",t.beforeShowClass="modal--before-show",t.beforeHideClass="modal--before-hide",t.animation=null,e.animation&&t.setAnimation(e.animation),t.showTimeout=e.showTimeout||0,t.hideTimeout=e.hideTimeout||0,t.showTimeoutReference=null,t.hideTimeoutReference=null,t.isOpening=!1,t.isClosing=!1,t.state=null,t.init(),t}return t=a,(n=[{key:"init",value:function(){this.accessibilityWrap?this.addA11Y():(this.modalVaWrap=this.element.querySelector(".modal__va-wrap"),this.modalVaM=this.element.querySelector(".modal__va-m"),this.modalDialog=this.element.querySelector(".modal__dialog")),this.focusableElements=s(this.element.querySelectorAll('a[href], area[href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), button:not([disabled]), iframe, object, embed, [contenteditable], [tabindex]:not([tabindex^="-"])')),this.closeTriggers=s(this.element.querySelectorAll(".js-modal-close")),this.animation&&this.animation.domReady()}},{key:"addA11Y",value:function(){this.element.setAttribute("aria-hidden",!0),this.modalVaWrap=document.createElement("div"),this.modalVaWrap.classList.add("modal__va-wrap"),this.modalVaM=document.createElement("div"),this.modalVaM.classList.add("modal__va-m"),this.modalDialog=document.createElement("div");var e=this.isAlert?"alertdialog":"dialog";this.modalDialog.setAttribute("role",e),this.modalDialog.setAttribute("aria-modal","true"),this.modalDialog.classList.add("modal__dialog"),this.title&&this.modalDialog.setAttribute("aria-labelledby",this.title),this.modalDocument=document.createElement("div"),this.modalDocument.setAttribute("role","document");var t=this.element.innerHTML;this.element.innerHTML="",this.element.appendChild(this.modalVaWrap),this.modalVaWrap.appendChild(this.modalVaM),this.modalVaM.appendChild(this.modalDialog),this.modalDialog.appendChild(this.modalDocument),this.modalDocument.innerHTML=t}},{key:"show",value:function(){var e=this;this.isOpening||(this.isOpening=!0,this.isClosing&&this.animation&&("before-hide"===this.state?this.animation.cancelBeforeHide():this.animation.cancelAfterHide()),this.isClosing=!1,this.state="before-show",this.containsVideo&&this.element.querySelector("iframe[data-src]")&&this.toggleIframeSrc(!0),clearTimeout(this.hideTimeoutReference),this.element.classList.add(this.beforeShowClass),this.element.classList.remove(this.beforeHideClass),this.element.setAttribute("aria-hidden",!1),this.addEventListeners(),this.emit("before-show"),this.animation?this.animation.beforeShow():this.showTimeoutReference=setTimeout((function(){e.showModal()}),this.showTimeout))}},{key:"showModal",value:function(){var e=this;this.state="after-show",this.modalDialog.setAttribute("tabindex",-1),this.modalDialog.scrollTop=0,this.element.classList.remove(this.beforeShowClass),this.element.classList.add(this.activeClass),this.emit("show"),this.animation?this.animation.afterShow():this.isOpening=!1,setTimeout((function(){e.modalDialog.focus({preventScroll:!0}),e.modalDialog.querySelector("[autofocus]")&&e.modalDialog.querySelector("[autofocus]").focus({preventScroll:!0})}),50)}},{key:"hide",value:function(){var e=this;this.isClosing||(this.isClosing=!0,this.isOpening&&this.animation&&("before-show"===this.state?this.animation.cancelBeforeShow():this.animation.cancelAfterShow()),this.isOpening=!1,this.state="before-hide",clearTimeout(this.showTimeoutReference),this.element.setAttribute("aria-hidden",!0),this.emit("before-hide"),this.element.classList.add(this.beforeHideClass),this.element.classList.remove(this.beforeShowClass),this.removeEventListeners(),this.containsVideo&&this.element.querySelector("iframe[data-src]")&&this.toggleIframeSrc(!0),this.animation?this.animation.beforeHide():this.hideTimeoutReference=setTimeout((function(){e.hideModal()}),this.hideTimeout))}},{key:"hideModal",value:function(){this.state="after-hide",this.modalDialog.removeAttribute("tabindex"),this.element.classList.remove(this.beforeHideClass),this.element.classList.remove(this.activeClass),this.emit("hide"),this.animation?this.animation.afterHide():this.isClosing=!1}},{key:"onModalVaMClick",value:function(e){e.target!==this.modalVaM||this.lock||this.hide()}},{key:"onKeyDown",value:function(e){if(27!==e.keyCode||this.lock||this.hide(),9===e.keyCode){var t=this.focusableElements.indexOf(document.activeElement);!e.shiftKey||0!==t&&-1!==t?e.shiftKey||t!==this.focusableElements.length-1||(this.focusableElements[0].focus(),e.preventDefault()):(this.focusableElements[this.focusableElements.length-1].focus(),e.preventDefault())}}},{key:"addEventListeners",value:function(){var e=this,t=function(t){e.onModalVaMClick(t)};this.element.addEventListener("click",t),this.eventListeners.push({ctx:this.modalDialog,type:"click",fn:t});var n=function(){e.hide()};
17this.closeTriggers.forEach((function(t){t.addEventListener("click",n),e.eventListeners.push({ctx:t,type:"click",fn:n})}));var i=function(t){e.onKeyDown(t)};document.addEventListener("keydown",i),this.eventListeners.push({ctx:document,type:"keydown",fn:i})}},{key:"removeEventListeners",value:function(){this.eventListeners.forEach((function(e){e.ctx.removeEventListener(e.type,e.fn)}))}},{key:"toggleIframeSrc",value:function(e){if(e){var t=this.element.querySelector("iframe[data-src]").dataset.src;this.element.querySelector("iframe[data-src]").setAttribute("src",t)}else this.element.querySelector("iframe[data-src]").removeAttribute("src")}},{key:"setAnimation",value:function(e){var t=this;this.animation&&this.animation.removeEventListeners(),this.animation=e,this.animation.on("before-hide-finished",(function(){t.hideModal()})),this.animation.on("after-hide-finished",(function(){t.isClosing=!1})),this.animation.on("before-show-finished",(function(){t.showModal()})),this.animation.on("after-show-finished",(function(){t.isOpening=!1}))}}])&&o(t.prototype,n),i&&o(t,i),Object.defineProperty(t,"prototype",{writable:!1}),a}(n(1));function f(e){return function(e){if(Array.isArray(e))return h(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return h(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?h(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function h(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function m(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}var v=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.modalQuery=".js-modal",this.idModalMap=new Map,this.activeModal=null,this.activeModalTrigger=null,this.isOpeningModal=!1,this.showModalTimeoutReference=null,this.init()}var t,n,r;return t=e,(n=[{key:"init",value:function(){var e=this;f(document.querySelectorAll(this.modalQuery)).forEach((function(t){e.createModal({element:t,accessibilityWrap:"false"!==t.dataset.accessibilityWrap,isAlert:"true"===t.dataset.alert,showHash:"true"!==t.dataset.hideHash,backgroundScroll:"true"===t.dataset.backgroundScroll,containsVideo:"true"===t.dataset.containsVideo,lock:"true"===t.dataset.lock,showTimeout:t.dataset.showTimeout||0,hideTimeout:t.dataset.hideTimeout||0})})),this.bindModalTriggers(),this.bindWindowPopState()}},{key:"checkModalOnPageLoad",value:function(){var e=this;setTimeout((function(){var t=window.location.hash.substring(1,window.location.hash.length),n=e.idModalMap.get(t);n&&n.show()}))}},{key:"createModal",value:function(e){var t=this,n=new p(e);return this.idModalMap.set(n.id,n),n.on("before-hide",(function(){t.onModalBeforeHide(n)})),n.on("hide",(function(){t.onModalHide(n)})),n.on("before-show",(function(){t.onModalBeforeShow(n)})),n.on("show",(function(){t.onModalShow(n)})),n}},{key:"onModalBeforeHide",value:function(){this.isOpeningModal=!1,this.isClosingModal=!0,this.activeModalTrigger=!1,clearTimeout(this.showModalTimeoutReference),this.removeHash()}},{key:"onModalHide",value:function(e){this.isClosingModal=!1,this.activeModal=null,this.isOpeningModal||this.activeModalTrigger&&this.activeModalTrigger.focus(),e.backgroundScroll||(Object(i.enableBodyScroll)(e.element,{reserveScrollBarGap:!0}),setTimeout((function(){f(document.querySelectorAll(".js-compensate-for-scrollbar")).forEac
17h((function(e){e.style.right=""}))})))}},{key:"onModalBeforeShow",value:function(e){if(!e.backgroundScroll){var t=window.innerWidth-document.documentElement.clientWidth;Object(i.disableBodyScroll)(e.element,{reserveScrollBarGap:!0}),setTimeout((function(){f(document.querySelectorAll(".js-compensate-for-scrollbar")).forEach((function(e){var n=e,i=parseInt(window.getComputedStyle(n,null).getPropertyValue("right"),10);n.style.right="".concat(t+i,"px")}));var n=window.innerWidth-e.element.clientWidth;f(e.element.querySelectorAll(".js-compensate-for-scrollbar")).forEach((function(e){var t=e;t.style.right="";var i=parseInt(window.getComputedStyle(t,null).getPropertyValue("right"),10);t.style.right="".concat(n+i,"px")}))}))}e.showHash?this.setHash("#".concat(e.id)):this.removeHash(),this.activeModal=e}},{key:"onModalShow",value:function(){this.isOpeningModal=!1}},{key:"bindModalTriggers",value:function(){var e=this;document.addEventListener("click",(function(t){if(t.target.classList.contains("js-modal-trigger")){t.preventDefault();var n=t.target;e.isOpeningModal=!0;var i=n.getAttribute("data-modal-id"),r=e.idModalMap.get(i);e.activeModal&&!e.isClosingModal?(e.activeModal.once("hide",(function(){r.show()})),e.activeModal.hide()):(e.activeModalTrigger=n,r.show())}}))}},{key:"bindWindowPopState",value:function(){var e=this;window.addEventListener("popstate",(function(){var t=window.location.hash;if(!e.activeModal||""!==t&&null!=e.activeModal.element.querySelector(t)||e.activeModal.hide(),t.length>1){var n=document.querySelector(window.location.hash);if(null!=n&&n.classList.contains("modal")){var i=e.idModalMap.get(n.getAttribute("id"));i&&i.show()}}}),!1)}},{key:"setHash",value:function(e){window.history.pushState?window.history.pushState(window.history.state,"",e):window.location.hash=e}},{key:"removeHash",value:function(){if(window.location.hash.substring(1,window.location.hash.length).length){var e=window,t=e.history,n=e.location;if(t.pushState)t.replaceState(t.state,""," ");else{var i=document.body.scrollTop,r=document.body.scrollLeft;n.hash="",document.body.scrollTop=i,document.body.scrollLeft=r}}}}])&&m(t.prototype,n),r&&m(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();function g(e){return(g="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function b(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function y(e,t){return(y=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function w(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,i=E(e);if(t){var r=E(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return _(this,n)}}function _(e,t){if(t&&("object"===g(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function E(e){return(E=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var T=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&y(e,t)}(s,e);var t,n,i,r=w(s);function s(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s),r.call(this)}return t=s,(n=[{key:"domReady",value:function(){}}
17,{key:"beforeShow",value:function(){this.emit("before-show-finished")}},{key:"cancelBeforeShow",value:function(){}},{key:"afterShow",value:function(){this.emit("after-show-finished")}},{key:"cancelAfterShow",value:function(){}},{key:"beforeHide",value:function(){this.emit("before-hide-finished")}},{key:"cancelBeforeHide",value:function(){}},{key:"afterHide",value:function(){this.emit("after-hide-finished")}},{key:"cancelAfterHide",value:function(){}}])&&b(t.prototype,n),i&&b(t,i),Object.defineProperty(t,"prototype",{writable:!1}),s}(n(1))}])},267:function(module){var factory;factory=function(){return function(e){var t={};function n(i){if(t[i])return t[i].exports;var r=t[i]={i:i,l:!1,exports:{}};return e[i].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=e,n.c=t,n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(i,r,function(t){return e[t]}.bind(null,r));return i},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s="./src/index.js")}({
17"./src/MultiLevelMenu.js": 18/*!*******************************!*\ 19 !*** ./src/MultiLevelMenu.js ***! 20 \*******************************/ 21/*! exports provided: default */function(module,__webpack_exports__,__webpack_require__){"use strict";eval('__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./util */ "./src/util.js");\n\n\nclass MultiLevelMenu {\n constructor(el, options = {}) {\n this.menu = el;\n this.backLinks = {};\n this.backLink = null;\n this.defaultOptions = {\n nameSpace: \'multi-level-menu\',\n activeClass: \'active\',\n showBackLink: true,\n showBreadcrumbs: true,\n appendActiveToBreadcrumbs: false,\n rootBreadcrumbTitle: \'Overview\',\n breadcrumbWrap: null,\n // (item) => `<span class="back-link">${item}</span>`\n activeId: null\n };\n this.options = { ...this.defaultOptions,\n ...options\n };\n this.menuContent = el.querySelector(`.${this.options.nameSpace}__content`);\n this.menuClass = `${this.options.nameSpace}__menu`;\n this.activeClass = `${this.menuClass}--${this.options.activeClass}`;\n this.backlinksEl = document.createElement(\'div\');\n this.backlinksEl.classList.add(`${this.options.nameSpace}__back-links`);\n this.menu.prepend(this.backlinksEl);\n this.init();\n }\n\n init() {\n const menus = this.menuContent.querySelectorAll(`.${this.menuClass}`);\n this.initMenu(menus);\n this.setActiveMenu(menus);\n\n if (this.options.activeId) {\n this.setActiveMenuById(this.options.activeId);\n }\n }\n\n setActiveMenu(menus) {\n if (!menus.length) {\n return;\n }\n\n Object(_util__WEBPACK_IMPORTED_MODULE_0__["addClass"])(menus[0], this.activeClass);\n }\n\n setActiveMenuById(id) {\n const link = this.menuContent.querySelector(`#${id}`);\n\n if (!link) {\n return;\n }\n\n this.forwardLink(link);\n }\n\n initMenu(menus) {\n this.initLevels(menus);\n this.initFlattenedLists(menus);\n this.initLinks();\n }\n\n initLevels(menus, offset = 0) {\n let childCount = 0;\n [...menus].forEach(menu => {\n if (menu.hasAttribute(\'data-level\')) {\n return;\n }\n\n let level = 0;\n let anscestor = menu;\n let match = `.${this.menuClass} .${this.menuClass}`;\n\n while (anscestor !== null) {\n level += 1;\n anscestor = Object(_util__WEBPACK_IMPORTED_MODULE_0__["findAncestor"])(anscestor, match);\n match += ` .${this.menuClass}`;\n }\n\n const parentElement = Object(_util__WEBPACK_IMPORTED_MODULE_0__["findAncestor"])(menu.parentElement, `.${this.menuClass}`);\n\n if (parentElement) {\n // eslint-disable-next-line no-param-reassign\n menu.dataset.parentId = parentElement.dataset.id;\n }\n\n if (!menu.dataset.id) {\n // eslint-disable-next-line no-param-reassign\n menu.dataset.id = childCount;\n childCount++;\n } // eslint-disable-next-line no-param-reassign\n\n\n menu.dataset.level = level + offset;\n });\n }\n\n initFlattenedLists(menus) {\n [...menus].forEach(menu => {\n if (Object(_util__WEBPACK_IMPORTED_MODULE_0__["hasClass"])(menu, `${this.menuClass}--flattened`)) {\n return;\n }\n\n if (menu.previousElementSibling && menu.previousElementSibling.dataset) {\n // eslint-disable-next-line no-param-reassign\n menu.previousElementSibling.dataset.ulId = menu.dataset.id;\n }\n\n this.menuContent.append(menu);\n Object(_util__WEBPACK_IMPORTED_MODULE_0__["addClass"])(menu, `${this.menuClass}--flattened`);\n });\n }\n\n setLink(link) {\n if (!link.dataset.ulId) {\n return;\n }\n\n link.addEventListener(\'click\', e => {\n e.preventDefault();\n this.forwardLink(link);\n });\n }\n\n initLinks() {\n const links = this.menuContent.querySelectorAll(\'a\');\n [...links].forEach(link => this.setLink(link));\n }\n\n addToBackLinks(link, customId = null) {\n const clonedLink = link.cloneNode(true);\n clonedLink.className = \'\';\n\n if (this.options.breadcrumbWrap) {\n clonedLink.innerHTML = this.options.breadcrumbWrap(link.innerHTML);\n }\n\n const id = customId || clonedLink.id;\n this.backLinks[id] = clonedLink;\n this.setLink(clonedLink);\n }\n\n buildBreadcrumbs(link) {\n let ul = Object(_util__WEBPACK_IMPORTED_MODULE_0__["findAnce
21stor"])(link, `.${this.menuClass}`); // clicked on breadcrumb link, get parent nav element\n\n if (!ul) {\n ul = this.menuContent.querySelector(`[data-id="${link.dataset.ulId}"]`); // clicked on root breadcrumbs link\n\n if (!ul.dataset.parentId) {\n return;\n }\n\n ul = this.menuContent.querySelector(`[data-id="${ul.dataset.parentId}"]`);\n }\n\n if (ul.dataset.parentId) {\n const parentLink = this.menuContent.querySelector(`[data-ul-id="${ul.dataset.id}"]`);\n this.buildBreadcrumbs(parentLink);\n this.addToBackLinks(parentLink);\n }\n\n if (this.options.appendActiveToBreadcrumbs) {\n this.addToBackLinks(link);\n }\n\n this.addToBackLinks(this.backLink, 1);\n }\n\n buildBackLink(link) {\n const ul = this.menuContent.querySelector(`[data-id="${link.dataset.ulId}"]`);\n\n if (!ul.dataset.parentId) {\n return;\n }\n\n this.createBackLink(ul.dataset.parentId);\n this.addToBackLinks(this.backLink);\n }\n\n createBackLink(ulId = \'0\') {\n this.backLink = document.createElement(\'button\');\n this.backLink.id = \'back\';\n this.backLink.dataset.ulId = ulId;\n this.backLink.classList.add(\'mobile-link\');\n this.backLink.classList.add(\'mobile-link--decorate-backwards\');\n this.backLink.innerText = this.options.rootBreadcrumbTitle;\n }\n\n renderBackLinks(link) {\n this.backLinks = {};\n\n if (this.options.showBreadcrumbs) {\n this.createBackLink();\n this.buildBreadcrumbs(link);\n }\n\n if (!this.options.showBreadcrumbs && this.options.showBackLink) {\n this.buildBackLink(link);\n }\n\n this.backlinksEl.innerHTML = \'\';\n Object.values(this.backLinks).forEach(backLink => this.backlinksEl.append(backLink));\n }\n\n forwardLink(link) {\n this.renderBackLinks(link);\n this.resetActiveMenu(link);\n }\n\n resetActiveMenu(link) {\n const targetMenuEls = this.menuContent.querySelectorAll(`.${this.menuClass}`);\n [...targetMenuEls].forEach(targetMenu => {\n Object(_util__WEBPACK_IMPORTED_MODULE_0__["removeClass"])(targetMenu, this.activeClass);\n\n if (link.dataset.ulId === targetMenu.dataset.id) {\n Object(_util__WEBPACK_IMPORTED_MODULE_0__["addClass"])(targetMenu, this.activeClass);\n }\n });\n }\n\n}\n\n/* harmony default export */ __webpack_exports__["default"] = (MultiLevelMenu);\n\n//# sourceURL=webpack://esign-components/./src/MultiLevelMenu.js?')},
21"./src/index.js": 22/*!**********************!*\ 23 !*** ./src/index.js ***! 24 \**********************/ 25/*! exports provided: default */function(module,__webpack_exports__,__webpack_require__){"use strict";eval('__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _index_scss__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./index.scss */ "./src/index.scss");\n/* harmony import */ var _MultiLevelMenu__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./MultiLevelMenu */ "./src/MultiLevelMenu.js");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "default", function() { return _MultiLevelMenu__WEBPACK_IMPORTED_MODULE_1__["default"]; });\n\n\n\n\n//# sourceURL=webpack://esign-components/./src/index.js?')},
25"./src/index.scss": 26/*!************************!*\ 27 !*** ./src/index.scss ***! 28 \************************/ 29/*! no exports provided */function(module,__webpack_exports__,__webpack_require__){"use strict";eval("__webpack_require__.r(__webpack_exports__);\n// extracted by mini-css-extract-plugin\n\n\n//# sourceURL=webpack://esign-components/./src/index.scss?")},
vendor: 7,344 bytes, lines 29-33
29"./src/util.js": 30/*!*********************!*\ 31 !*** ./src/util.js ***! 32 \*********************/ 33/*! exports provided: hasClass, addClass, removeClass, findAncestor */function(module,__webpack_exports__,__webpack_require__){"use strict";eval('__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "hasClass", function() { return hasClass; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "addClass", function() { return addClass; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "removeClass", function() { return removeClass; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "findAncestor", function() { return findAncestor; });\nconst hasClass = (element, className) => element.classList.contains(className);\n\nconst addClass = (element, className) => element.classList.add(className);\n\nconst removeClass = (element, className) => element.classList.remove(className);\n\nconst matches = (element, query) => {\n const finds = (element.document || element.ownerDocument).querySelectorAll(query);\n let i = finds.length;\n /* eslint-disable no-empty */\n\n while (--i >= 0 && finds.item(i) !== element) {}\n\n return i > -1;\n};\n\nconst findAncestor = (element, selector) => {\n if (typeof element.closest === \'function\') {\n return element.closest(selector) || null;\n }\n\n while (element && element !== document) {\n if (matches(element, selector)) {\n return element;\n }\n /* eslint-disable no-param-reassign */\n\n\n element = element.parentElement;\n }\n\n return null;\n};\n\n\n\n//# sourceURL=webpack://esign-components/./src/util.js?')}})},module.exports=factory()},451:function(e){e.exports=function(e){var t={};function n(i){if(t[i])return t[i].exports;var r=t[i]={i:i,l:!1,exports:{}};return e[i].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=e,n.c=t,n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(i,r,function(t){return e[t]}.bind(null,r));return i},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=1)}([function(e,t,n){"use strict";var i,r="object"==typeof Reflect?Reflect:null,s=r&&"function"==typeof r.apply?r.apply:function(e,t,n){return Function.prototype.apply.call(e,t,n)};i=r&&"function"==typeof r.ownKeys?r.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var a=Number.isNaN||function(e){return e!=e};function o(){o.init.call(this)}e.exports=o,e.exports.once=function(e,t){return new Promise((function(n,i){function r(n){e.removeListener(t,s),i(n)}function s(){"function"==typeof e.removeListener&&e.removeListener("error",r),n([].slice.call(arguments))}g(e,t,s,{once:!0}),"error"!==t&&function(e,t,n){"function"==typeof e.on&&g(e,"error",t,n)}(e,r,{once:!0})}))},o.EventEmitter=o,o.prototype._events=void 0,o.prototype._eventsCount=0,o.prototype._maxListeners=void 0;var l=10;function c(e){if("function"!=typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function u(e){return void 0===e._maxListeners?o.defaultMaxListeners:e._maxListeners}function d(e,t,n,i){var r,s,a,o;if(c(n),void 0===(s=e._events)?(s=e._events=Object.create(null),e._eventsCount=0):(void 0!==s.newListener&&(e.emit("newListener",t,n.listener?n.listener:n),s=e._events),a=s[t]),void 0===a)a=s[t]=n,++e._eventsCount;else if("function"==typeof a?a=s[t]=i?[n,a]:[a,n]:i?a.unshift(n):a.push(n),(r=u(e))>0&&a.length>r&&!a.warned){a.warned=!0;var l=new Error("Possible EventEmitter memory leak detected. "+a.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");l.name="MaxListenersExceededWarning",l.emitter=e,l.type=t,l.count=a.length,o=l,console&&console.warn&&console.warn(o)}return e}function p(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function f(e,t,n){var i={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},r=p.bind(i);return r.listener=n,i.wrapFn=r,r}function h(e,t,n){var i=e._events;if(void 0===i)return[];var r=i[t];return void 0===r?[]:"function"==typeof r?n?[r.listener||r]:[r]:n?function(e){for(var t=new Array(e.length),n=0;n<t.length;++n)t[n]=e[n].listener||e[n];return t}(r):v(r,r.length)}function m(e){var t=this._events;if(void 0!==t){var n=t[e];if("function"==typeof n)return 1;if(void 0!==n)return n.length}return 0}function v(e,t){for(var n=new Array(t),i=0;i<t;++i)n[i]=e[i];return n}function g(e,t,n,i){if("function"==typeof e.on)i.once?e.once(t,n):e.on(t,n);else{if("function"!=typeof e.addEventListener)throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof e);e.addEventListener(t,(function r(s){i.once&&e.removeEventListener(t,r),n(s)}))}}Object.defineProperty(o,"defaultMaxListeners",{enumerable:!0,get:function(){return l},set:function(e){if("number"!=typeof e||e<0||a(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");l=e}}),o.init=function(){void 0!==this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},o.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||a(e))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this},o.prototype.getMaxListeners=function(){return u(this)},o.prototype.emit=function(e){for(var t=[],n=1;n<arguments.length;n++)t.push(arguments[n]);var i="error"===e,r=this._events;if(void 0!==r)i=i&&void 0===r.error;else if(!i)return!1;if(i){var a;if(t.length>0&&(a=t[0]),a instanceof Error)throw a;var o=new Error("Unhandled error."+(a?" ("+a.message+")":""));throw o.context=a,o}var l=r[e];if(void 0===l)return!1;if("function"==typeof l)s(l,this,t);else{var c=l.length,u=v(l,c);for(n=0;n<c;++n)s(u[n],this,t)}return!0},o.prototype.addListener=function(e,t){return d(this,e,t,!1)},o.prototype.on=o.prototype.addListener,o.prototype.prependListener=function(e,t){return d(this,e,t,!0)},o.prototype.once=function(e,t){return c(t),this.on(e,f(this,e,t)),this},o.prototype.prependOnceListener=function(e,t){return c(t),this.prependListener(e,f(this,e,t)),this},o.prototype.removeListener=function(e,t){var n,i,r,s,a;if(c(t),void 0===(i=this._events))return this;if(void 0===(n=i[e]))return this;if(n===t||n.listener===t)0==--this._eventsCount?this._events=Object.create(null):(delete i[e],i.removeListener&&this.emit
33("removeListener",e,n.listener||t));else if("function"!=typeof n){for(r=-1,s=n.length-1;s>=0;s--)if(n[s]===t||n[s].listener===t){a=n[s].listener,r=s;break}if(r<0)return this;0===r?n.shift():function(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}(n,r),1===n.length&&(i[e]=n[0]),void 0!==i.removeListener&&this.emit("removeListener",e,a||t)}return this},o.prototype.off=o.prototype.removeListener,o.prototype.removeAllListeners=function(e){var t,n,i;if(void 0===(n=this._events))return this;if(void 0===n.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==n[e]&&(0==--this._eventsCount?this._events=Object.create(null):delete n[e]),this;if(0===arguments.length){var r,s=Object.keys(n);for(i=0;i<s.length;++i)"removeListener"!==(r=s[i])&&this.removeAllListeners(r);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(t=n[e]))this.removeListener(e,t);else if(void 0!==t)for(i=t.length-1;i>=0;i--)this.removeListener(e,t[i]);return this},o.prototype.listeners=function(e){return h(this,e,!0)},o.prototype.rawListeners=function(e){return h(this,e,!1)},o.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):m.call(e,t)},o.prototype.listenerCount=m,o.prototype.eventNames=function(){return this._eventsCount>0?i(this._events):[]}},function(e,t,n){"use strict";function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function r(e){return function(e){if(Array.isArray(e))return s(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return s(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?s(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function a(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function o(e,t){return(o=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function l(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,i=u(e);if(t){var r=u(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return c(this,n)}}function c(e,t){if(t&&("object"===i(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function u(e){return(u=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}n.r(t),n.d(t,"default",(function(){return d}));var d=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&o(e,t)}(c,e);var t,n,i,s=l(c);function c(e,t,n){var i,a;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,c),a=s.call(this),e instanceof Element?a.rootEl=e:a.rootEl=document.querySelector(e),a.tabsAttribute=t,a.paramName=null!==(i=a.rootEl.dataset.tabParam)&&void 0!==i?i:"tab",a.targetAttribute=n,a.activeTabs=a.rootEl.querySelector(".active[".concat(a.tabsAttribute,"]")),a.menuItems=a.rootEl.querySelectorAll("[".concat(a.tabsAttribute,"]")),a.tabsMap=new Map,a.menuMap=new Map,r(a.menuItems).forEac
33h((function(e){a.tabsMap.set(e.getAttribute(a.tabsAttribute),[]),a.addEvent(e)})),r(a.menuItems).forEach((function(e){a.menuMap.set(e.getAttribute(a.tabsAttribute),e)})),a.addItems(),a.checkDefaultState(),a}return t=c,(n=[{key:"addItems",value:function(){var e=this;this.targetItems=this.rootEl.querySelectorAll("[".concat(this.targetAttribute,"]")),r(this.targetItems).forEach((function(t){e.tabsMap.get(t.getAttribute(e.targetAttribute)).push(t)}))}},{key:"checkDefaultState",value:function(){var e=new URLSearchParams(window.location.search);e.has(this.paramName)&&this.tabsMap.get(decodeURI(e.get(this.paramName)))?this.checkUrl():this.activeTabs&&this.hideItems(this.activeTabs.getAttribute(this.tabsAttribute))}},{key:"addEvent",value:function(e){var t=this;e.addEventListener("click",(function(){e.classList.contains("active")||(t.deleteCurrentTabs(),t.hideItems(e.getAttribute(t.tabsAttribute)),t.setSearchParam(e))})),e.addEventListener("keyup",(function(n){32!==n.keyCode&&"Space"!==n.code||e.classList.contains("active")||(n.preventDefault(),t.deleteCurrentTabs(),t.hideItems(e.getAttribute(t.tabsAttribute)),t.setSearchParam(e))}))}},{key:"deleteCurrentTabs",value:function(){if(null===new URLSearchParams(window.location.search).get("tab")){var e=this.rootEl.querySelector(".active[".concat(this.tabsAttribute,"]"));e&&(e.classList.remove("active"),this.showItems())}}},{key:"hideItems",value:function(e){this.showItems();var t=new Map(this.tabsMap);t.delete(e),t.forEach((function(e){r(e).forEach((function(e){e.style.display="none"}))}));var n=new Map(this.menuMap);n.get(e).classList.add("active"),n.delete(e),n.forEach((function(e){e.classList.remove("active")})),this.emit("after-show")}},{key:"showItems",value:function(){this.targetItems.forEach((function(e){e.style.display="block"}))}},{key:"setSearchParam",value:function(e){var t=new URL(window.location.href);t.searchParams.set(this.paramName,encodeURI(e.getAttribute(this.tabsAttribute))),window.history.replaceState("","",t.href)}},{key:"checkUrl",value:function(){var e=new URLSearchParams(window.location.search);if(e.has(this.paramName)){var t=e.get(this.paramName);this.tabsMap.get(decodeURI(t))&&this.hideItems(decodeURI(t))}}}])&&a(t.prototype,n),i&&a(t,i),Object.defineProperty(t,"prototype",{writable:!1}),c}(n(0))}])},27:function(module){var factory;factory=function(){return function(e){var t={};function n(i){if(t[i])return t[i].exports;var r=t[i]={i:i,l:!1,exports:{}};return e[i].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=e,n.c=t,n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(i,r,function(t){return e[t]}.bind(null,r));return i},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s="./src/index.js")}({
33"./src/Video.js": 34/*!**********************!*\ 35 !*** ./src/Video.js ***! 36 \**********************/ 37/*! exports provided: default, videos */function(module,__webpack_exports__,__webpack_require__){"use strict";eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"default\", function() { return Video; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"videos\", function() { return videosInit; });\n/* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./util */ \"./src/util.js\");\n\n\nclass Video {\n constructor(element, options = {}) {\n this.el = element;\n const defaultOptions = {\n nameSpace: 'video',\n playingClass: 'video--is-playing',\n loadingClass: 'video--is-loading',\n playDelay: 0,\n showControls: true\n };\n this.options = { ...defaultOptions,\n ...options\n };\n this.overlay = element.querySelector(`.${this.options.nameSpace}__overlay`);\n this.video = element.querySelector(`.${this.options.nameSpace}__video`);\n this.poster = element.querySelector(`.${this.options.nameSpace}__poster`);\n\n if (!this.overlay || !this.video) {\n return;\n }\n\n this.videoSrc = this.video.src;\n this.init();\n }\n\n init() {\n if (this.options.playDelay > 0) {\n this.overlay.style.transitionDuration = `${this.options.playDelay}ms`;\n }\n\n this.video.setAttribute('aria-hidden', true);\n this.video.setAttribute('tabindex', -1);\n\n if (this.video.nodeName !== 'VIDEO') {\n const {\n provider,\n id\n } = Object(_util__WEBPACK_IMPORTED_MODULE_0__[\"getVideoProviderAndIdFromUrl\"])(this.videoSrc);\n this.videoProvider = provider;\n this.videoId = id;\n this.initPreConnections();\n\n if (!this.poster) {\n // Fetch poster image for Youtube or Vimeo if not present\n this.toggleLoading();\n this.createVideoPoster().then(() => this.toggleLoading());\n }\n }\n\n this.initEvents();\n }\n\n initPreConnections() {\n if (this.isYoutube()) {\n this.preConnection = 'https://www.youtube.com';\n } else if (this.isVimeo()) {\n this.preConnection = 'https://player.vimeo.com';\n }\n }\n\n initEvents() {\n this.overlay.addEventListener('click', event => {\n event.preventDefault();\n this.removeOverlay();\n setTimeout(this.playVideo.bind(this), this.options.playDelay);\n });\n this.overlay.addEventListener('pointerover', this.warmConnections.bind(this), {\n once: true\n });\n this.video.addEventListener('ended', this.addOverlay.bind(this));\n }\n\n addOverlay() {\n this.overlay.style.opacity = 1;\n this.overlay.style.visibility = 'visible';\n this.togglePlaying();\n }\n\n removeOverlay() {\n this.overlay.style.opacity = 0;\n this.overlay.style.visibility = 'hidden';\n this.togglePlaying();\n }\n\n playVideo() {\n this.video.setAttribute('aria-hidden', false);\n this.video.setAttribute('tabindex', 0);\n this.video.focus();\n\n if (this.video.nodeName === 'VIDEO') {\n this.video.setAttribute('preload', 'auto');\n\n if (this.options.showControls) {\n this.video.setAttribute('controls', 'controls');\n }\n\n this.video.play();\n return;\n }\n\n this.video.setAttribute('allow', 'autoplay');\n this.video.src = `${this.addParameterToURL(this.videoSrc, 'autoplay=1')}`;\n\n if (!this.options.showControls) {\n this.video.src = `${this.addParameterToURL(this.video.src, 'controls=0')}`;\n }\n }\n\n async createVideoPoster() {\n let imageSrc = null;\n\n if (this.isVimeo()) {\n imageSrc = await this.getVimeoPoster(this.videoId);\n } else if (this.isYoutube()) {\n imageSrc = this.getYoutubePoster(this.videoId);\n }\n\n if (imageSrc) {\n const posterImageEl = document.createElement('img');\n posterImageEl.src = imageSrc;\n posterImageEl.classList.add(`${this.options.nameSpace}__poster`);
37\n this.overlay.appendChild(posterImageEl);\n }\n }\n\n isVimeo() {\n return this.videoProvider === 'vimeo';\n }\n\n isYoutube() {\n return this.videoProvider === 'youtube';\n }\n\n async getVimeoPoster(id) {\n const result = await fetch(`https://vimeo.com/api/v2/video/${id}.json`);\n const data = await result.json();\n\n if (!data.length) {\n return null;\n }\n\n return data[0].thumbnail_large;\n }\n\n getYoutubePoster(id) {\n return `https://i.ytimg.com/vi/${id}/maxres1.jpg`;\n }\n\n addPrefetch(kind, url) {\n const linkElement = document.createElement('link');\n linkElement.rel = kind;\n linkElement.href = url;\n document.head.append(linkElement);\n }\n\n warmConnections() {\n if (!this.preConnection) {\n return;\n }\n\n const connectionExists = document.querySelector(`link[rel=\"preconnect\"][href=\"${this.preConnection}\"]`);\n\n if (!connectionExists) {\n this.addPrefetch('preconnect', this.preConnection);\n }\n }\n\n addParameterToURL(url, param) {\n return url + (url.split('?')[1] ? '&' : '?') + param;\n }\n\n toggleLoading() {\n this.el.classList.toggle(this.options.loadingClass);\n }\n\n togglePlaying() {\n this.el.classList.toggle(this.options.playingClass);\n }\n\n}\n\nconst videosInit = (selector, options = {}) => {\n const videoEls = document.querySelectorAll(selector);\n [...videoEls].forEach(video => new Video(video, options));\n};\n\n\n\n//# sourceURL=webpack://esign-components/./src/Video.js?")},
37"./src/index.js": 38/*!**********************!*\ 39 !*** ./src/index.js ***! 40 \**********************/ 41/*! exports provided: default, videos */function(module,__webpack_exports__,__webpack_require__){"use strict";eval('__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _index_scss__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./index.scss */ "./src/index.scss");\n/* harmony import */ var _Video__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Video */ "./src/Video.js");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "default", function() { return _Video__WEBPACK_IMPORTED_MODULE_1__["default"]; });\n\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "videos", function() { return _Video__WEBPACK_IMPORTED_MODULE_1__["videos"]; });\n\n\n\n\n\n//# sourceURL=webpack://esign-components/./src/index.js?')},
41"./src/index.scss": 42/*!************************!*\ 43 !*** ./src/index.scss ***! 44 \************************/ 45/*! no exports provided */function(module,__webpack_exports__,__webpack_require__){"use strict";eval("__webpack_require__.r(__webpack_exports__);\n// extracted by mini-css-extract-plugin\n\n\n//# sourceURL=webpack://esign-components/./src/index.scss?")},
45"./src/util.js": 46/*!*********************!*\ 47 !*** ./src/util.js ***! 48 \*********************/ 49/*! exports provided: getYouTubeVideoIdFromUrl, getVimeoIdFromUrl, getVideoProviderAndIdFromUrl */function(module,__webpack_exports__,__webpack_require__){"use strict";eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"getYouTubeVideoIdFromUrl\", function() { return getYouTubeVideoIdFromUrl; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"getVimeoIdFromUrl\", function() { return getVimeoIdFromUrl; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"getVideoProviderAndIdFromUrl\", function() { return getVideoProviderAndIdFromUrl; });\nconst getYouTubeVideoIdFromUrl = url => {\n // Our regex pattern to look for a youTube ID\n const regExp = /^.*(youtu.be\\/|v\\/|u\\/\\w\\/|embed\\/|watch\\?v=|&v=)([^#&?]*).*/;\n const match = url.match(regExp);\n return match && match[2].length === 11 ? match[2] : undefined;\n};\n\nconst getVimeoIdFromUrl = url => {\n // Look for a string with 'vimeo', then whatever, then a\n // forward slash and a group of digits.\n const match = /vimeo.*\\/(\\d+)/i.exec(url);\n\n if (match) {\n return match[1];\n }\n\n return null;\n};\n\nconst getVideoProviderAndIdFromUrl = url => {\n let videoId = getYouTubeVideoIdFromUrl(url);\n\n if (videoId) {\n return {\n provider: 'youtube',\n id: videoId\n };\n }\n\n videoId = getVimeoIdFromUrl(url);\n\n if (videoId) {\n return {\n provider: 'vimeo',\n id: videoId\n };\n }\n\n return null;\n};\n\n\n\n//# sourceURL=webpack://esign-components/./src/util.js?")}
vendor: 2,960 bytes, line 49
49})},module.exports=factory()},187:function(e){"use strict";var t,n="object"==typeof Reflect?Reflect:null,i=n&&"function"==typeof n.apply?n.apply:function(e,t,n){return Function.prototype.apply.call(e,t,n)};t=n&&"function"==typeof n.ownKeys?n.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var r=Number.isNaN||function(e){return e!=e};function s(){s.init.call(this)}e.exports=s,e.exports.once=function(e,t){return new Promise((function(n,i){function r(n){e.removeListener(t,s),i(n)}function s(){"function"==typeof e.removeListener&&e.removeListener("error",r),n([].slice.call(arguments))}m(e,t,s,{once:!0}),"error"!==t&&function(e,t,n){"function"==typeof e.on&&m(e,"error",t,n)}(e,r,{once:!0})}))},s.EventEmitter=s,s.prototype._events=void 0,s.prototype._eventsCount=0,s.prototype._maxListeners=void 0;var a=10;function o(e){if("function"!=typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function l(e){return void 0===e._maxListeners?s.defaultMaxListeners:e._maxListeners}function c(e,t,n,i){var r,s,a,c;if(o(n),void 0===(s=e._events)?(s=e._events=Object.create(null),e._eventsCount=0):(void 0!==s.newListener&&(e.emit("newListener",t,n.listener?n.listener:n),s=e._events),a=s[t]),void 0===a)a=s[t]=n,++e._eventsCount;else if("function"==typeof a?a=s[t]=i?[n,a]:[a,n]:i?a.unshift(n):a.push(n),(r=l(e))>0&&a.length>r&&!a.warned){a.warned=!0;var u=new Error("Possible EventEmitter memory leak detected. "+a.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");u.name="MaxListenersExceededWarning",u.emitter=e,u.type=t,u.count=a.length,c=u,console&&console.warn&&console.warn(c)}return e}function u(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function d(e,t,n){var i={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},r=u.bind(i);return r.listener=n,i.wrapFn=r,r}function p(e,t,n){var i=e._events;if(void 0===i)return[];var r=i[t];return void 0===r?[]:"function"==typeof r?n?[r.listener||r]:[r]:n?function(e){for(var t=new Array(e.length),n=0;n<t.length;++n)t[n]=e[n].listener||e[n];return t}(r):h(r,r.length)}function f(e){var t=this._events;if(void 0!==t){var n=t[e];if("function"==typeof n)return 1;if(void 0!==n)return n.length}return 0}function h(e,t){for(var n=new Array(t),i=0;i<t;++i)n[i]=e[i];return n}function m(e,t,n,i){if("function"==typeof e.on)i.once?e.once(t,n):e.on(t,n);else{if("function"!=typeof e.addEventListener)throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof e);e.addEventListener(t,(function r(s){i.once&&e.removeEventListener(t,r),n(s)}))}}Object.defineProperty(s,"defaultMaxListeners",{enumerable:!0,get:function(){return a}
49,set:function(e){if("number"!=typeof e||e<0||r(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");a=e}}),s.init=function(){void 0!==this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},s.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||r(e))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this},s.prototype.getMaxListeners=function(){return l(this)},s.prototype.emit=function(e){for(var t=[],n=1;n<arguments.length;n++)t.push(arguments[n]);var r="error"===e,s=this._events;if(void 0!==s)r=r&&void 0===s.error;else if(!r)return!1;if(r){var a;if(t.length>0&&(a=t[0]),a instanceof Error)throw a;var o=new Error("Unhandled error."+(a?" ("+a.message+")":""));throw o.context=a,o}var l=s[e];if(void 0===l)return!1;if("function"==typeof l)i(l,this,t);else{var c=l.length,u=h(l,c);for(n=0;n<c;++n)i(u[n],this,t)}return!0},s.prototype.addListener=function(e,t){return c(this,e,t,!1)},s.prototype.on=s.prototype.addListener,s.prototype.prependListener=function(e,t){return c(this,e,t,!0)},s.prototype.once=function(e,t){return o(t),this.on(e,d(this,e,t)),this},s.prototype.prependOnceListener=function(e,t){return o(t),this.prependListener(e,d(this,e,t)),this},s.prototype.removeListener=function(e,t){var n,i,r,s,a;if(o(t),void 0===(i=this._events))return this;if(void 0===(n=i[e]))return this;if(n===t||n.listener===t)0==--this._eventsCount?this._events=Object.create(null):(delete i[e],i.removeListener&&this.emit("removeListener",e,n.listener||t));else if("function"!=typeof n){for(r=-1,s=n.length-1;s>=0;s--)if(n[s]===t||n[s].listener===t){a=n[s].listener,r=s;break}if(r<0)return this;0===r?n.shift():function(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}(n,r),1===n.length&&(i[e]=n[0]),void 0!==i.removeListener&&this.emit("removeListener",e,a||t)}return this},s.prototype.off=s.prototype.removeListener,s.prototype.removeAllListeners=function(e){var t,n,i;if(void 0===(n=this._events))return this;if(void 0===n.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==n[e]&&(0==--this._eventsCount?this._events=Object.create(null):delete n[e]),this;if(0===arguments.length){var r,s=Object.keys(n);for(i=0;i<s.length;++i)"removeListener"!==(r=s[i])&&this.removeAllListeners(r);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(t=n[e]))this.removeListener(e,t);else if(void 0!==t)for(i=t.length-1;i>=0;i--)this.removeListener(e,t[i]);return this},s.prototype.listeners=function(e){return p(this,e,!0)},s.prototype.rawListeners=function(e){return p(this,e,!1)},s.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):f.call(e,t)},s.prototype.listenerCount=f,s.prototype.eventNames=function(){return this._eventsCount>0?t(this._events):[]}},422:function(e){var t=/^(?:submit|button|image|reset|file)$/i,n=/^(?:input|select|textarea|keygen)/i,i=/(\[[^\[\]]*\])/g;function r(e,t,n){if(0===t.length)return e=n;var i=t.shift(),s=i.match(/^\[(.+?)\]$/);if("[]"===i)return e=e||[],Array.isArray(e)?e.push(r(null,t,n)):(e._values=e._values||[],e._values.push(r(null,t,n))),e;if(s){var a=s[1],o=+a;isNaN(o)?(e=e||{})[a]=r(e[a],t,n):(e=e||[])[o]=r(e[o],t,n)}else e[i]=r(e[i],t,n);return e}function s(e,t,n){if(t.match(i)){r(e,function(e){var t=[],n=new RegExp(i),r=/^([^\[\]]*)/.exec(e);for(r[1]&&t.push(r[1]);null!==(r=n.exec(e));)t.push(r[1]);return t}(t),n)}else{var s=e[t];s?(Array.isArray(s)||(e[t]=[s]),e[t].push(n)):e[t]=n}return e}function a(e,t,n){return n=n.replace(/(\r)?\n/g,"\r\n"),n=(n=encodeURIComponent(n)).replace(/%20/g,"+"),e+(e?"&":"")+encodeURIComponent(t)+"="+n}e.exports=function(e,i){"object"!=typeof i?i={hash:!!i}:void 0===i.hash&&(i.hash=!0);for(var r=i.hash?{}:"",o=i.serializer||(i.hash?s:a),l=e&&e.elements?e.elements:[],c=Object.create(null),u=0;u<l.length;++u){var d=l[u];if((i.disabled||!d.disabled)&&d.name&&(n.test(d.nodeName)&&!t.test(d.type))){var p=d.name,f=d.value;if("checkbox"!==d.type&&"radio"!==d.type||d.checked||(f=void 0),i.empty){if
49("checkbox"!==d.type||d.checked||(f=""),"radio"===d.type&&(c[d.name]||d.checked?d.checked&&(c[d.name]=!0):c[d.name]=!1),null==f&&"radio"==d.type)continue}else if(!f)continue;if("select-multiple"!==d.type)r=o(r,p,f);else{f=[];for(var h=d.options,m=!1,v=0;v<h.length;++v){var g=h[v],b=i.empty&&!g.value,y=g.value||b;g.selected&&y&&(m=!0,r=i.hash&&"[]"!==p.slice(p.length-2)?o(r,p+"[]",g.value):o(r,p,g.value))}!m&&i.empty&&(r=o(r,p,""))}}}if(i.empty)for(var p in c)c[p]||(r=o(r,p,""));return r}},910:function(e,t){"use strict";var n=new WeakMap;function i(e,t){var i=n.get(e);if(i)return i.settings=t,i;this.form=e,this.settings=t,this.observer=null,n.set(e,this)}function r(e){var t;for(e.form&&(t=n.get(e.form));!t&&e;)t=n.get(e),e=e.parentNode;return t||(t=n.get(window)),t}function s(e){var t=r(e);return Array.prototype.filter.call(e.elements,(function(e){return!!(e.getAttribute("name")||t&&t.settings.validateNameless)}))}i.prototype={destroy:function(){n.delete(this.form),this._destruct&&this._destruct()}};var a,o=Object.create(null);function l(e){var t,n,i=Array.prototype.slice.call(arguments,1);return e in o&&(t=o[e].reduce((n=i,function(t,i){var r=i.apply({state:t,hook:e},n);return void 0!==r?r:t}),t)),t}function c(e,t){var n=t,i=Array.prototype.slice.call(arguments,1);return e in o&&(n=o[e].reduce((function(t,n){i[0]=t;var r=n.apply({state:t,hook:e},i);return void 0!==r?r:t}),n)),n}if(!((a=document.createEvent("Event")).initEvent("foo",!0,!0),a.preventDefault(),a.defaultPrevented)){var u=window.Event.prototype.preventDefault;window.Event.prototype.preventDefault=function(){this.cancelable&&(u.call(this),Object.defineProperty(this,"defaultPrevented",{get:function(){return!0},configurable:!0}))}}function d(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.bubbles,i=void 0===n||n,r=t.cancelable,s=void 0!==r&&r,a=document.createEvent("Event");return a.initEvent(e,i,s),a}function p(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=n.bubbles,r=void 0===i||i,s=n.cancelable,a=void 0!==s&&s,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};for(var l in t instanceof window.Event||(t=d(t,{bubbles:r,cancelable:a})),o)o.hasOwnProperty(l)&&(t[l]=o[l]);return e.dispatchEvent(t),t}var f=["datetime","date","month","week","time"],h=f.concat(["number","range"],"datetime-local"),m=["email","url"],v=["email","date","month","week","time","datetime","datetime-local","number","range","color"],g=["text","search","tel","password"].concat(m),b=["checkbox","color","file","image","radio","submit"].concat(h,g),y=["button","hidden","reset"].concat(b),w=["select-one","select-multiple","textarea"];function _(e){if(e instanceof window.HTMLTextAreaElement)return"textarea";if(e instanceof window.HTMLSelectElement)return e.hasAttribute("multiple")?"select-multiple":"select-one";if(e instanceof window.HTMLButtonElement)return(e.getAttribute("type")||"submit").toLowerCase();if(e instanceof window.HTMLInputElement){var t=(e.getAttribute("type")||"").toLowerCase();return t&&y.indexOf(t)>-1?t:e.type||"text"}return""}function E(e){var t=c("is_validation_candidate",null,e);if(null!==t)return!!t;if(e instanceof window.HTMLSelectElement||e instanceof window.HTMLTextAreaElement||e instanceof window.HTMLButtonElement||e instanceof window.HTMLInputElement){var n=_(e);if((w.indexOf(n)>-1||b.indexOf(n)>-1)&&!e.hasAttribute("disabled")&&!e.hasAttribute("readonly")){var i=r(e);if((i&&!i.settings.novalidateOnElements||!e.hasAttribute("novalidate")&&!e.noValidate)&&!function(e){for(var t=e.parentNode;t&&1===t.nodeType;){if(t instanceof window.HTMLFieldSetElement&&t.hasAttribute("disabled"))return!0;if("DATALIST"===t.nodeName.toUpperCase())return!0;if(t===e.form)break;t=t.parentNode}return!1}(e))return!0}}return!1}function T(e){return T="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},T(e)}function C(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function S(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];
49if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return C(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?C(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var i=0,r=function(){};return{s:r,n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var s,a=!0,o=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){o=!0,s=e},f:function(){try{a||null==n.return||n.return()}finally{if(o)throw s}}}}function x(e){return["object","function"].indexOf(T(e))>-1&&(delete e.__hyperform,Object.defineProperty(e,"__hyperform",{configurable:!0,enumerable:!1,value:!0})),e}function k(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;switch(t){case"date":return(e.toLocaleDateString||e.toDateString).call(e);case"time":return(e.toLocaleTimeString||e.toTimeString).call(e);case"month":return"toLocaleDateString"in e?e.toLocaleDateString(void 0,{year:"numeric",month:"2-digit"}):e.toDateString();default:return(e.toLocaleString||e.toString).call(e)}}function L(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];var r=n.length,s=0;return e.replace(/%([0-9]+\$)?([sl])/g,(function(e,t,i){var a=s;t&&(a=Number(t.replace(/\$$/,""))-1),s+=1;var o="";return r>a&&(o=n[a]),(o instanceof Date||"number"==typeof o||o instanceof Number)&&(o="l"===i?(o.toLocaleString||o.toString).call(o):o.toString()),o}))}function M(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2,n=e+"";n.length<t;)n="0"+n;return n}function O(e,t){if(!(e instanceof Date))return null;switch(t){case"datetime":return O(e,"date")+"T"+O(e,"time");case"datetime-local":return L("%s-%s-%sT%s:%s:%s.%s",e.getFullYear(),M(e.getMonth()+1),M(e.getDate()),M(e.getHours()),M(e.getMinutes()),M(e.getSeconds()),M(e.getMilliseconds(),3)).replace(/(:00)?\.000$/,"");case"date":return L("%s-%s-%s",e.getUTCFullYear(),M(e.getUTCMonth()+1),M(e.getUTCDate()));case"month":return L("%s-%s",e.getUTCFullYear(),M(e.getUTCMonth()+1));case"week":var n=function(e){(e=new Date(+e)).setUTCHours(0,0,0),e.setUTCDate(e.getUTCDate()+4-(e.getUTCDay()||7));var t=new Date(e.getUTCFullYear(),0,1),n=Math.ceil(((e-t)/864e5+1)/7);return[e.getUTCFullYear(),n]}(e);return L.call(null,"%s-W%s",n[0],M(n[1]));case"time":return L("%s:%s:%s.%s",M(e.getUTCHours()),M(e.getUTCMinutes()),M(e.getUTCSeconds()),M(e.getUTCMilliseconds(),3)).replace(/(:00)?\.000$/,"")}return null}function P(e,t){var n;switch(t){case"datetime":return/^([0-9]{4})-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):([0-5][0-9])(?::([0-5][0-9])(?:\.([0-9]{1,3}))?)?$/.test(e)?(n=new Date(e+"z"),isNaN(n.valueOf())?null:n):null;case"date":return/^([0-9]{4})-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])$/.test(e)?(n=new Date(e),isNaN(n.valueOf())?null:n):null;case"month":return/^([0-9]{4})-(0[1-9]|1[012])$/.test(e)?(n=new Date(e),isNaN(n.valueOf())?null:n):null;case"week":return/^([0-9]{4})-W(0[1-9]|[1234][0-9]|5[0-3])$/.test(e)?function(e,t){var n=new Date(Date.UTC(t,0,1+7*(e-1)));return n.getUTCDay()<=4?n.setUTCDate(n.getUTCDate()-n.getUTCDay()+1):n.setUTCDate(n.getUTCDate()+8-n.getUTCDay()),n}(Number(RegExp.$2),Number(RegExp.$1)):null;case"time":return/^([01][0-9]|2[0-3]):([0-5][0-9])(?::([0-5][0-9])(?:\.([0-9]{1,3}))?)?$/.test(e)?n=new Date("1970-01-01T"+e+"z"):null}return null}function A(e,t){var n=P(e,t);return null!==n?+n:Number(e)}var I={en:{TextTooLong:"Please shorten this text to %l characters or less (you are currently using %l characters).",ValueMissing:"Please fill out this field.",CheckboxMissing:"Please check this box if you want to proceed.",RadioMissing:"Please select one of these options.",FileMissing:"Please select a file.",SelectMissing:"Please select an item in the list.",InvalidEmail:"Please enter an email address.",InvalidURL:"Please enter a URL.",PatternMismatch:"Please match the requested format.",PatternMismatchWithTitle:"Please match the requested format: %l.",NumberRangeOverflow:"Please select a value that is no more than %l.",DateRangeOverflow:"Please select a value that is no later than %l.",TimeRangeOverflow:"Please select a value that is no later than %l.",NumberRangeUnderflow:"Please select a value that is no less than %l.",DateRangeUnderflow:"Please select a value that is no earlier than %l.",TimeRangeUnderflow:"Please select a value that is no earlier than %l.",StepMismatch:"Please select a valid value. The two nearest valid values are %l and %l.",StepMismatchOneValue:"Please select a valid value. The nearest valid value is %l.",BadInputNumber:"Please enter a number."}},D="en",$="en";function j(e,t){for(var n in e in I||(I[e]={}),t)t.hasOwnProperty(n)&&(I[e][n]=t[n])}function N(e){return D in I&&e in I[D]?I[D][e]:$ in I&&e in I[$]?I[$][e]:e in I.en?I.en[e]:e}var R={"datetime-local":60,datetime:60,time:60},B={"datetime-local":1e3,datetime:1e3,date:864e5,week:6048e5,time:1e3},q={week:-2592e5},H={range:0},F={range:100};function V(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=_(e),i=e.getAttribute("min"),r=H[n]||NaN;if(i){var s=A(i,n);isNaN(s)||(r=s)}var a=e.getAttribute("max"),o=F[n]||NaN;if(a){var l=A(a,n);isNaN(l)||(o=l)}var c=e.getAttribute("step"),u=R[n]||1;if(c&&"any"===c.toLowerCase())return[N("any value"),N("any value")];if(c){var d=A(c,n);isNaN(d)||(u=d)}var p=A(e.getAttribute("value"),n),h=A(e.value||e.getAttribute("value"),n);if(isNaN(h))return[N("any valid value"),N("any valid value")];var m=isNaN(r)?isNaN(p)?q[n]||0:p:r,v=B[n]||1,g=m+Math.floor((h-m)/(u*v))*(u*v)*t,b=m+(Math.floor((h-m)/(u*v))+1)*(u*v)*t;return g<r?g=null:g>o&&(g=o),b>o?b=null:b<r&&(b=r),f.indexOf(n)>-1&&(g=O(new Date(g),n),b=O(new Date(b),n)),[g,b]}function U(e){return e.match(/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/g).length}var z=new WeakMap,W={set:function(e,t,n){var i=z.get(e)||{};return i[t]=n,z.set(e,i),W},get:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0,i=z.get(e);if(void 0===i||!(t in i)){var r="data-"+t.replace(/[A-Z]/g,"-$&").toLowerCase();return e.hasAttribute(r)?e.getAttribute(r):n}return i[t]},delete:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(!t)return z.delete(e);var n=z.get(e)||{};
49return t in n&&(delete n[t],z.set(e,n),!0)}};function G(e){return e.form?Array.prototype.filter.call(e.form.elements,(function(t){return"radio"===t.type&&t.name===e.name})):[e]}var Y=new WeakMap;function X(e){return"radio"===e.type?G(e)[0]:e}var K={set:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if((e=X(e))instanceof window.HTMLFieldSetElement){var i=r(e);if(i&&!i.settings.extendFieldset)return K}return"string"==typeof t&&(t=new String(t)),n&&(t.is_custom=!0),x(t),Y.set(e,t),"_original_setCustomValidity"in e&&e._original_setCustomValidity(t.toString()),K},get:function(e){e=X(e);var t=Y.get(e);return void 0===t&&"_original_validationMessage"in e&&(t=new String(e._original_validationMessage)),t||new String("")},delete:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];"_original_setCustomValidity"in(e=X(e))&&e._original_setCustomValidity("");var n=Y.get(e);return!(n&&t&&!n.is_custom)&&Y.delete(e)}},Z=new WeakMap,Q={set:function(e,t){var n=Z.get(e)||[];return n.push(t),Z.set(e,n),Q},get:function(e){return Z.get(e)||[]},delete:function(e){return Z.delete(e)}};var J,ee=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;function te(e){return e.replace(ee,"")}function ne(e){return e.split(",").map((function(e){return te(e)})).filter((function(e){return e}))}var ie=/^[a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/;function re(e,t){return function(n){var i=!e(n);return i&&t(n),i}}function se(e,t,n){K.set(e,W.get(e,t,n))}var ae=re((function(e){var t=_(e);if(-1===v.indexOf(t))return!0;if(!e.value)return!("_original_validity"in e&&!e._original_validity.__hyperform)||!e._original_validity.badInput;var n=!0;switch(t){case"color":n=/^#[a-f0-9]{6}$/.test(e.value);break;case"number":case"range":n=!isNaN(Number(e.value));break;case"datetime":case"date":case"month":case"week":case"time":n=null!==P(e.value,t);break;case"datetime-local":n=/^([0-9]{4,})-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):([0-5][0-9])(?::([0-5][0-9])(?:\.([0-9]{1,3}))?)?$/.test(e.value)}return n}),(function(e){return se(e,"badInput",N("Please match the requested type."))}));function oe(e){if(e.__hf_custom_validation_running){var t=K.get(e);return t&&t.is_custom}var n=Q.get(e),i=n.length,r=!0;if(i){e.__hf_custom_validation_running=!0;for(var s=0;s<i;s++){var a=n[s](e);if(void 0!==a&&!a){r=!1;break}}delete e.__hf_custom_validation_running}if(r){var o=K.get(e);r=!(o.toString()&&"is_custom"in o)}return!r}var le=re((function(e){return!e.value||!e.hasAttribute("pattern")||new RegExp("^(?:"+e.getAttribute("pattern")+")$").test(e.value)}),(function(e){se(e,"patternMismatch",e.title?L(N("PatternMismatchWithTitle"),e.title):N("PatternMismatch"))})),ce=re((function(e){var t,n,i=_(e);return!e.value||!e.hasAttribute("max")||(f.indexOf(i)>-1?(t=null===(t=P(e.value,i))?NaN:+t,n=null===(n=P(e.getAttribute("max"),i))?NaN:+n):(t=Number(e.value),n=Number(e.getAttribute("max"))),isNaN(n)||isNaN(t)||t<=n)}),(function(e){var t,n=_(e),i=r(e),s=i&&i.settings.classes.outOfRange||"hf-out-of-range",a=i&&i.settings.classes.inRange||"hf-in-range";switch(n){case"date":case"datetime":case"datetime-local":t=L(N("DateRangeOverflow"),k(P(e.getAttribute("max"),n),n));break;case"time":t=L(N("TimeRangeOverflow"),k(P(e.getAttribute("max"),n),n));break;default:t=L(N("NumberRangeOverflow"),A(e.getAttribute("max"),n))}se(e,"rangeOverflow",t),e.classList.add(s),e.classList.remove(a)})),ue=re((function(e){var t,n,i=_(e);return!e.value||!e.hasAttribute("min")||(f.indexOf(i)>-1?(t=null===(t=P(e.value,i))?NaN:+t,n=null===(n=P(e.getAttribute("min"),i))?NaN:+n):(t=Number(e.value),n=Number(e.getAttribute("min"))),isNaN(n)||isNaN(t)||t>=n)}),(function(e){var t,n=_(e),i=r(e),s=i&&i.settings.classes.outOfRange||"hf-out-of-range",a=i&&i.settings.classes.inRange||"hf-in-range";switch(n){case"date":case"datetime":case"datetime-local":t=L(N("DateRangeUnderflow"),k(P(e.getAttribute("min"),n),n));break;case"time":t=L(N("TimeRangeUnderflow"),k(P(e.getAttribute("min"),n),n));break;default:t=L(N("NumberRangeUnderflow"),A(e.getAttribute("min"),n))}se(e,"rangeUnderflow",t),e.classList.add(s),e.classList.remove(a)}
49)),de=re((function(e){var t=_(e);if(!e.value||-1===h.indexOf(t)||"any"===(e.getAttribute("step")||"").toLowerCase())return!0;var n=e.getAttribute("step");if((n=n?A(n,t):R[t]||1)<=0||isNaN(n))return!0;var i=B[t]||1,r=A(e.value,t),s=A(e.getAttribute("min")||e.getAttribute("value")||"",t);if(isNaN(r))return!0;isNaN(s)&&(s=q[t]||0),"month"===t&&(s=12*new Date(s).getUTCFullYear()+new Date(s).getUTCMonth(),r=12*new Date(r).getUTCFullYear()+new Date(r).getUTCMonth());var a=Math.abs(s-r)%(n*i);return a<1e-8||a>n*i-1e-8}),(function(e){var t=V(e),n=t[0],i=t[1],r=!1;null===n?r=i:null===i&&(r=n),se(e,"stepMismatch",!1!==r?L(N("StepMismatchOneValue"),r):L(N("StepMismatch"),n,i))})),pe=re((function(e){if(!e.value||-1===g.indexOf(_(e))||!e.hasAttribute("maxlength")||!e.getAttribute("maxlength"))return!0;var t=parseInt(e.getAttribute("maxlength"),10);return!!(isNaN(t)||t<0)||U(e.value)<=t}),(function(e){se(e,"tooLong",L(N("TextTooLong"),e.getAttribute("maxlength"),U(e.value)))})),fe=re((function(e){if(!e.value||-1===g.indexOf(_(e))||!e.hasAttribute("minlength")||!e.getAttribute("minlength"))return!0;var t=parseInt(e.getAttribute("minlength"),10);return!!(isNaN(t)||t<0)||U(e.value)>=t}),(function(e){se(e,"tooShort",L(N("Please lengthen this text to %l characters or more (you are currently using %l characters)."),e.getAttribute("minlength"),U(e.value)))})),he=re((function(e){var t=_(e);if("file"!==t&&!e.value||"file"!==t&&-1===m.indexOf(t))return!0;var n=!0;switch(t){case"url":J||(J=document.createElement("a"));var i=te(e.value);J.href=i,n=J.href===i||J.href===i+"/";break;case"email":n=e.hasAttribute("multiple")?ne(e.value).every((function(e){return ie.test(e)})):ie.test(te(e.value));break;case"file":if("files"in e&&e.files.length&&e.hasAttribute("accept")){var r=ne(e.getAttribute("accept")).map((function(e){return/^(audio|video|image)\/\*$/.test(e)&&(e=new RegExp("^"+RegExp.$1+"/.+$")),e}));if(!r.length)break;e:for(var s=0;s<e.files.length;s++){var a=!1;t:for(var o=0;o<r.length;o++){var l=e.files[s],c=r[o],u=l.type;if("string"==typeof c&&"."===c.substr(0,1)){if(-1===l.name.search("."))continue t;u=l.name.substr(l.name.lastIndexOf("."))}if(0===u.search(c)){a=!0;break t}}if(!a){n=!1;break e}}}}return n}),(function(e){var t=N("Please use the appropriate format."),n=_(e);"email"===n?t=e.hasAttribute("multiple")?N("Please enter a comma separated list of email addresses."):N("InvalidEmail"):"url"===n?t=N("InvalidURL"):"file"===n&&(t=N("Please select a file of the correct type.")),se(e,"typeMismatch",t)})),me=re((function(e){if("radio"===e.type){if(e.hasAttribute("required")&&e.checked)return!0;var t=G(e);return!t.some((function(e){return e.hasAttribute("required")}))||t.some((function(e){return e.checked}))}return!e.hasAttribute("required")||(e instanceof window.HTMLSelectElement?(i=!(n=e).multiple&&n.size<=1&&n.options.length>0&&n.options[0].parentNode==n&&""===n.options[0].value,n.selectedIndex>
49-1&&Array.prototype.some.call(n.options,(function(e){return(!i||0!==e.index)&&!e.disabled&&e.selected}))):"checkbox"===e.type?e.checked:!!e.value);var n,i}),(function(e){var t=N("ValueMissing"),n=_(e);"checkbox"===n?t=N("CheckboxMissing"):"radio"===n?t=N("RadioMissing"):"file"===n?t=e.hasAttribute("multiple")?N("Please select one or more files."):N("FileMissing"):e instanceof window.HTMLSelectElement&&(t=N("SelectMissing")),se(e,"valueMissing",t)})),ve={badInput:ae,customError:oe,patternMismatch:le,rangeOverflow:ce,rangeUnderflow:ue,stepMismatch:de,tooLong:pe,tooShort:fe,typeMismatch:he,valueMissing:me,valid:function(e){var t=r(e),n=t&&t.settings.classes.valid||"hf-valid",i=t&&t.settings.classes.invalid||"hf-invalid",s=t&&t.settings.classes.userInvalid||"hf-user-invalid",a=t&&t.settings.classes.userValid||"hf-user-valid",o=t&&t.settings.classes.inRange||"hf-in-range",l=t&&t.settings.classes.outOfRange||"hf-out-of-range",c=t&&t.settings.classes.validated||"hf-validated";e.classList.add(c);for(var u=0,d=[ae,oe,le,ce,ue,de,pe,fe,he,me];u<d.length;u++){if((0,d[u])(e))return e.classList.add(i),e.classList.remove(n),e.classList.remove(a),("checkbox"===e.type||"radio"===e.type)&&e.checked!==e.defaultChecked||e.value!==e.defaultValue?e.classList.add(s):e.classList.remove(s),e.setAttribute("aria-invalid","true"),!1}return K.delete(e),e.classList.remove(i),e.classList.remove(s),e.classList.remove(l),e.classList.add(n),e.classList.add(o),e.value!==e.defaultValue?e.classList.add(a):e.classList.remove(a),e.setAttribute("aria-invalid","false"),!0}},ge=function e(t){if(!(t instanceof window.HTMLElement))throw new Error("cannot create a ValidityState for a non-element");var n=e.cache.get(t);return n||(this instanceof e?(this.element=t,void e.cache.set(t,this)):new e(t))},be={};ge.prototype=be,ge.cache=new WeakMap;var ye=function(e,t){return function(){return E(this.element)?t(this.element):"valid"===e}};for(var we in ve)Object.defineProperty(be,we,{configurable:!0,enumerable:!0,get:ye(we,ve[we]),set:void 0});x(be);var _e,Ee,Te=(_e="checkValidity",Ee=function(e){if(e instanceof window.HTMLFormElement)return s(e).map(Te).every((function(e){return e}));var t=ge(e).valid;if(t){var n=r(e);n&&n.settings.validEvent&&p(e,"valid")}
49else p(e,"invalid",{cancelable:!0});return t},function(){var e=l(_e,Array.prototype.slice.call(arguments));return void 0!==e?e:Ee.apply(this,arguments)}),Ce=0;function Se(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"hf_";return e+Ce+++Math.random().toString(36).substr(2)}var xe=new WeakMap,ke={attachWarning:function(e,t){t.parentNode.insertBefore(e,t.nextSibling)},detachWarning:function(e,t){e.parentNode&&e.parentNode.removeChild(e)},showWarning:function(e){var t,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=e,s=[e];if("radio"===e.type){var a=G(e);if(n&&a[0]!==e)return;i=a[0],s=a}t=xe.get(i);var o=K.get(i).toString();if(o){if(!t){var l=r(i);(t=document.createElement("div")).className=l&&l.settings.classes.warning||"hf-warning",t.id=Se(),t.setAttribute("aria-live","polite"),xe.set(i,t)}s.forEach((function(e){e.setAttribute("aria-errormessage",t.id),e.hasAttribute("aria-describedby")||e.setAttribute("aria-describedby",t.id)})),Le.setMessage(t,o,i),Le.attachWarning(t,i)}else t&&t.parentNode&&(s.forEach((function(e){e.getAttribute("aria-describedby")===t.id&&e.removeAttribute("aria-describedby"),e.removeAttribute("aria-errormessage")})),Le.detachWarning(t,i))},setMessage:function(e,t,n){e.textContent=t}},Le={attachWarning:ke.attachWarning,detachWarning:ke.detachWarning,showWarning:ke.showWarning,setMessage:ke.setMessage,set:function(e,t){t||(t=ke[e]),Le[e]=t},getWarning:function(e){return xe.get(e)}};function Me(e){if(e instanceof window.HTMLFormElement){e.__hf_form_validation=!0;var t=s(e).map(Me).every((function(e){return e}));return delete e.__hf_form_validation,t}var n,i=ge(e).valid;if(i){var a=r(e);a&&a.settings.validEvent&&(n=p(e,"valid",{cancelable:!0}))}else n=p(e,"invalid",{cancelable:!0});return n&&n.defaultPrevented||Le.showWarning(e,e.form&&e.form.__hf_form_validation),i}function Oe(e,t){t?K.set(e,t,!0):K.delete(e,!0);var n=Le.getWarning(e);n&&Le.setMessage(n,t,e),ve.valid(e)}function Pe(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0,n=_(e);if(f.indexOf(n)>-1){if(void 0!==t){if(null===t)e.value="";else{if(!(t instanceof Date))throw new window.DOMException("valueAsDate setter encountered invalid value","TypeError");isNaN(t.getTime())?e.value="":e.value=O(t,n)}return}var i=P(e.value,n);return i instanceof Date?i:null}if(void 0!==t)throw new window.DOMException("valueAsDate setter cannot set date on this element","InvalidStateError");return null}function Ae(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0,n=_(e);if(h.indexOf(n)>-1){if("range"===n&&e.hasAttribute("multiple"))return NaN;if(void 0!==t){if(isNaN(t))e.value="";else{if("number"!=typeof t||!window.isFinite(t))throw new window.DOMException("valueAsNumber setter encountered invalid value","TypeError");try{Pe(e,new Date(t))}catch(n){if(!(n instanceof window.DOMException))throw n;e.value=t.toString()}}return}return A(e.value,n)}if(void 0!==t)throw new window.DOMException("valueAsNumber setter cannot set number on this element","InvalidStateError");return NaN}function Ie(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;if(-1===h.indexOf(_(e)))throw new window.DOMException("stepDown encountered invalid type","InvalidStateError");if("any"===(e.getAttribute("step")||"").toLowerCase())throw new window.DOMException('stepDown encountered step "any"',"InvalidStateError");var n=V(e,t)[0];null!==n&&Ae(e,n)}function De(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;if(-1===h.indexOf(_(e)))throw new window.DOMException("stepUp encountered invalid type","InvalidStateError");if("any"===(e.getAttribute("step")||"").toLowerCase())throw new window.DOMException('stepUp encountered step "any"',"InvalidStateError");var n=V(e,t)[1];null!==n&&Ae(e,n)}function $e(e){var t=K.get(e);return t?t.toString():""}function je(e){return E(e)}var Ne=window.Element.prototype,Re=Ne.matches||Ne.matchesSelector||Ne.msMatchesSelector||Ne.webkitMatchesSelector;function Be(e){var t,n=d("submit",{cancelable:!0});n.preventDefault(),Object.defineProperty(n,"defaultPrevented",{value:!1,writable:!0}),Object.defineProperty(n,"preventDefault",{value:function(){return n.defaultPrevented=t=!0},writable:!0}),p(e.form,n,{},{submittedVia:e}),t||(!function(e){if(["image","submit"].indexOf(e.type)>-1&&e.name){var t=r(e.form)||{},n=t.submit_helper;n?n.parentNode&&n.parentNode.removeChild(n):((n=document.createElement("input")).type="hidden",t.submit_helper=n),n.name=e.name,n.value=e.value,e.form.appendChild(n)}}(e),window.HTMLFormElement.prototype.submit.call(e.form),window.setTimeout((function(){return function(e){if(["image","submit"].indexOf(e.type)>-1&&e.name){var t=(r(e.form)||{}).submit_helper;t&&t.parentNode&&t.parentNode.removeChild(t)}}(e)})))}function qe(e){if(!p(e.form,"validate",{cancelable:!0}).defaultPrevented){var t,n=!0;e.form.__hf_form_validation=!0,s(e.form).map((function(e){Me(e)||(n=!1,!t&&"focus"in e&&(t=e))})),delete e.form.__hf_form_validation,n?Be(e):t&&(t.focus(),p(e.form,"forminvalid"))}}
49function He(e){return!("INPUT"!==e.nodeName&&"BUTTON"!==e.nodeName||"image"!==e.type&&"submit"!==e.type)}function Fe(e,t){return!e.defaultPrevented&&(!("button"in e)||e.button<2)&&He(t)&&t.form&&!t.form.hasAttribute("novalidate")}function Ve(e){return He(e)?e:function(e,t){return Re.call(e,t)}(e,'button:not([type]) *, button[type="submit"] *')?Ve(e.parentNode):null}function Ue(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return function(t){var n=Ve(t.target);n&&Fe(t,n)&&(t.preventDefault(),e||n.hasAttribute("formnovalidate")?Be(n):qe(n))}}var ze=Ue(),We=Ue(!0);function Ge(e){return function(t){if(function(e){return!e.defaultPrevented&&(13===e.keyCode&&"INPUT"===e.target.nodeName&&g.indexOf(e.target.type)>-1||(13===e.keyCode||32===e.keyCode)&&He(e.target))&&e.target.form&&!e.target.form.hasAttribute("novalidate")}(t)){if(t.preventDefault(),(r(t.target.form)||{settings:{}}).settings.preventImplicitSubmit)return;for(var n,i=t.target.form.elements.length,s=0;s<i;s++)if(["image","submit"].indexOf(t.target.form.elements[s].type)>-1){n=t.target.form.elements[s];break}if(p(t.target.form,"implicit_submit",{cancelable:!0},{trigger:t.target,submittedVia:n||t.target}).defaultPrevented)return;n?n.click():e?Be(t.target):qe(t.target)}}}var Ye=Ge(),Xe=Ge(!0);function Ke(e,t,n){n.configurable=!0,n.enumerable=!0,"value"in n&&(n.writable=!0);var i=Object.getOwnPropertyDescriptor(e,t);if(void 0===i&&(i=Object.getOwnPropertyDescriptor(Object.getPrototypeOf(e),t)),i){if(!1===i.configurable){var s=r(e);return s&&s.settings.debug&&console.log("[hyperform] cannot install custom property "+t),!1}if(i.get&&i.get.__hyperform||i.value&&i.value.__hyperform)return;Object.defineProperty(e,"_original_"+t,i)}return delete e[t],Object.defineProperty(e,t,n),!0}function Ze(e){return e instanceof window.HTMLButtonElement||e instanceof window.HTMLInputElement||e instanceof window.HTMLSelectElement||e instanceof window.HTMLTextAreaElement||e instanceof window.HTMLFieldSetElement||e===window.HTMLButtonElement.prototype||e===window.HTMLInputElement.prototype||e===window.HTMLSelectElement.prototype||e===window.HTMLTextAreaElement.prototype||e===window.HTMLFieldSetElement.prototype}function Qe(e,t){try{delete e[t]}catch(i){var n=r(e);return n&&n.settings.debug&&console.log("[hyperform] cannot uninstall custom property "+t),!1}var i=Object.getOwnPropertyDescriptor(e,"_original_"+t);i&&Object.defineProperty(e,t,i)}var Je=function(e){return function(){return c("attr_get_"+e,this.getAttribute(e),this)}},et=function(e){return function(t){this.setAttribute(e,c("attr_set_"+e,t,this))}},tt=function(e){return function(){return c("attr_get_"+e,this.hasAttribute(e),this)}},nt=function(e){return function(t){c("attr_set_"+e,t,this)?this.setAttribute(e,e):this.removeAttribute(e)}},it=function(e){return function(){return c("attr_get_"+e,Math.max(0,Number(this.getAttribute(e))),this)}},rt=function(e){return function(t){t=c("attr_set_"+e,t,this),/^[0-9]+$/.test(t)&&this.setAttribute(e,t)}};var st={checkValidity:{value:x((function(){return Te(this)}))},reportValidity:{value:x((function(){return Me(this)}))},setCustomValidity:{value:x((function(e){return Oe(this,e)}))},stepDown:{value:x((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;return Ie(this,e)}))},stepUp:{value:x((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;return De(this,e)}))},validationMessage:{get:x((function(){return $e(this)}))},validity:{get:x((function(){return ge(this)}))},valueAsDate:{get:x((function(){return Pe(this)})),set:x((function(e){Pe(this,e)}))},valueAsNumber:{get:x((function(){return Ae(this)})),set:x((function(e){Ae(this,e)}))},willValidate:{get:x((function(){return je(this)}))}};function at(e){if(Ze(e)){for(var t in st)Ke(e,t,st[t]);!function(e){for(var t=0,n=["accept","max","min","pattern","placeholder","step"];t<n.length;t++){var i=n[t];Ke(e,i,{get:Je(i),set:et(i)})}for(var r=0,s=["multiple","required","readOnly"];r<s.length;r++){var a=s[r];Ke(e,a,{get:tt(a.toLowerCase()),set:nt(a.toLowerCase())})}for(var o=0,l=["minLength","maxLength"];o<l.length;o++){var c=l[o];Ke(e,c,{get:it(c.toLowerCase()),set:rt(c.toLowerCase())})}}(e)}else(e instanceof window.HTMLFormElement||e===window.HTMLFormElement.prototype)&&(Ke(e,"checkValidity",st.checkValidity),Ke(e,"reportValidity",st.reportValidity))}function ot(e){Ze(e)?(Qe(e,"checkValidity"),Qe(e,"reportValidity"),Qe(e,"setCustomValidity"),Qe(e,"stepDown"),Qe(e,"stepUp"),Qe(e,"validationMessage"),Qe(e,"validity"),Qe(e,"valueAsDate"),Qe(e,"valueAsNumber"),Qe(e,"willValidate"),function(e){for(var t=0,n=["accept","max","min","pattern","placeholder","step","multiple","required","readOnly","minLength","maxLength"];t<n.length;t++)Qe(e,n[t])}(e)):e instanceof window.HTMLFormElement&&(Qe(e,"checkValidity"),Qe(e,"reportValidity"))}var lt=[window.HTMLButtonElement.prototype,window.HTMLInputElement.prototype,window.HTMLSelectElement.prototype,window.HTMLTextAreaElement.prototype,window.HTMLFieldSetElement.prototype];function ct(e,t){t instanceof window.Element&&(t=[t]);for(var n=t.length,i=0;i<n;i++)e(t[i])}function ut(e){var t=e.form;return function(){var n;if((n=t).removeEventListener("click",We),n.removeEventListener("keypress",Xe),n.removeEventListener("click",ze),n.removeEventListener("keypress",Ye),t.removeEventListener("keyup",e.revalidator),t.removeEventListener("change",e.revalidator),t.removeEventListener("blur",e.revalidator,!0),t===window||9===t.nodeType)e.uninstall(lt),ot(window.HTMLFormElement);else if(t instanceof window.HTMLFormElement||t instanceof window.HTMLFieldSetElement)e.uninstall(t.elements),t instanceof window.HTMLFormElement&&ot(t);else if(t instanceof window.HTMLElement){e.observer.disconnect();var i,r=S(Array.prototype.slice.call(t.getElementsByTagName("form")));try{for(r.s();!(i=r.n()).done;){var s=i.value;e.uninstall(s.elements),ot(s)}}catch(e){r.e(e)}finally{r.f()}}}}function dt(e){var t=e.form,n=e.settings;if(e.revalidator=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"hybrid";return function(t){if(t.target instanceof window.HTMLButtonElement||t.target instanceof window.HTMLTextAreaElement||t.target instanceof window.HTMLSelectElement||t.target instanceof window.HTMLInputElement){if(t.target.form&&t.target.form.hasAttribute("novalidate"))return;"hybrid"===e?("blur"===t.type&&t.target.value!==t.target.defaultValue||ge(t.target).valid||("keyup"===t.type&&9!==t.keyCode||"change"===t.type)&&ge(t.target).valid)&&Me(t.target):"keyup"===t.type&&9===t.keyCode||Me(t.target)}}}(n.revalidate),e.observer={disconnect:function(){}},e.install=function(e){return ct(at,e)},e.uninstall=function(e){return ct(ot,e)},e._destruct=ut(e),function(e){arguments.length>1&&void 0!==arguments[1]&&arguments[1]?(e.addEventListener("click",We),e.addEventListener("keypress",Xe)):(e.addEventListener("click",ze),e.addEventListener("keypress",Ye))}(t,"never"===n.revalidate),t===window||9===t.nodeType)e.install(lt),at(window.HTMLFormElement);else if(t instanceof window.HTMLFormElement||t instanceof window.HTMLFieldSetElement)e.install(t.elements),t instanceof window.HTMLFormElement&&at(t);else{if(!(t instanceof window.HTMLElement))throw new Error("Hyperform must be used with a node or window.");var i,r=S(Array.prototype.slice.call(e.form.getElementsByTagName("form")));try{for(r.s();!(i=r.n()).done;){var s=i.value;e.install(s.elements),at(s)}}catch(e){r.e(e)}finally{r.f()}e.observer=new window.MutationObserver((function(t){var n,i=S(t);try{for(i.s();!(n=i.n()).done;){var r=n.value;if("childList"===r.type){var s,a=S(Array.prototype.slice.call(r.addedNodes));try{for(a.s();!(s=a.n()).done;){var o=s.value;o instanceof window.HTMLFormElement&&(e.install(o.elements),at(o))}}catch(e){a.e(e)}finally{a.f()}
49var l,c=S(Array.prototype.slice.call(r.removedNodes));try{for(c.s();!(l=c.n()).done;){var u=l.value;u instanceof window.HTMLFormElement&&(e.uninstall(u.elements),ot(u))}}catch(e){c.e(e)}finally{c.f()}}}}catch(e){i.e(e)}finally{i.f()}})),e.observer.observe(t,{subtree:!0,childList:!0})}"oninput"!==n.revalidate&&"hybrid"!==n.revalidate||(t.addEventListener("keyup",e.revalidator),t.addEventListener("change",e.revalidator)),"onblur"!==n.revalidate&&"hybrid"!==n.revalidate||t.addEventListener("blur",e.revalidator,!0)}function pt(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.classes,r=t.debug,s=void 0!==r&&r,a=t.extendFieldset,o=t.novalidateOnElements,l=t.preventImplicitSubmit,c=void 0!==l&&l,u=t.revalidate,d=t.strict,p=void 0!==d&&d,f=t.validEvent,h=t.validateNameless,m=void 0!==h&&h;n||(n={}),void 0===a&&(a=!p),void 0===o&&(o=!p),void 0===c&&(c=!1),void 0===u&&(u=p?"onsubmit":"hybrid"),void 0===f&&(f=!p);var v={debug:s,strict:p,preventImplicitSubmit:c,revalidate:u,validEvent:f,extendFieldset:a,classes:n,novalidateOnElements:o,validateNameless:m};if(e instanceof window.NodeList||e instanceof window.HTMLCollection||e instanceof Array)return Array.prototype.map.call(e,(function(e){return pt(e,v)}));var g=new i(e,v);return dt(g),g}pt.version="0.12.1",pt.checkValidity=Te,pt.reportValidity=Me,pt.setCustomValidity=Oe,pt.stepDown=Ie,pt.stepUp=De,pt.validationMessage=$e,pt.ValidityState=ge,pt.valueAsDate=Pe,pt.valueAsNumber=Ae,pt.willValidate=je,pt.setLanguage=function(e){var t;return D=t=e,$=t.replace(/[-_].*/,""),pt},pt.addTranslation=function(e,t){return j(e,t),pt},pt.setRenderer=function(e,t){return Le.set(e,t),pt},pt.addValidator=function(e,t){return Q.set(e,t),pt},pt.setMessage=function(e,t,n){return W.set(e,t,n),pt},pt.addHook=function(e,t,n){return function(e,t,n){e in o||(o[e]=[]),void 0===n&&(n=o[e].length),o[e].splice(n,0,t)}(e,t,n),pt},pt.removeHook=function(e,t){return function(e,t){if(e in o)for(var n=0;n<o[e].length;n++)if(o[e][n]===t){o[e].splice(n,1);break}}(e,t),pt},document.currentScript&&document.currentScript.hasAttribute("data-hf-autoload")&&pt(window),t.Z=pt},955:function(e,t){"use strict"; 50/*! js-cookie v3.0.1 | MIT */function n(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)e[i]=n[i]}return e}var i=function e(t,i){function r(e,r,s){if("undefined"!=typeof document){"number"==typeof(s=n({},i,s)).expires&&(s.expires=new Date(Date.now()+864e5*s.expires)),s.expires&&(s.expires=s.expires.toUTCString()),e=encodeURIComponent(e).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var a="";for(var o in s)s[o]&&(a+="; "+o,!0!==s[o]&&(a+="="+s[o].split(";")[0]));return document.cookie=e+"="+t.write(r,e)+a}}return Object.create({set:r,get:function(e){if("undefined"!=typeof document&&(!arguments.length||e)){for(var n=document.cookie?document.cookie.split("; "):[],i={},r=0;r<n.length;r++){var s=n[r].split("="),a=s.slice(1).join("=");try{var o=decodeURIComponent(s[0]);if(i[o]=t.read(a,o),e===o)break}catch(e){}}return e?i[e]:i}},remove:function(e,t){r(e,"",n({},t,{expires:-1}))},withAttributes:function(t){return e(this.converter,n({},this.attributes,t))},withConverter:function(t){return e(n({},this.converter,t),this.attributes)}},{attributes:{value:Object.freeze(i)},converter:{value:Object.freeze(t)}})}({read:function(e){return'"'===e[0]&&(e=e.slice(1,-1)),e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}},{path:"/"});t.Z=i},188:function(e,t,n){"use strict";function i(e){return null!==e&&"object"==typeof e&&"constructor"in e&&e.constructor===Object}function r(e={},t={}){Object.keys(t).forEach((n=>{void 0===e[n]?e[n]=t[n]:i(t[n])&&i(e[n])&&Object.keys(t[n]).length>0&&r(e[n],t[n])}))}n.d(t,{s5:function(){return se},pt:function(){return ae},xW:function(){return le},W_:function(){return ne},tl:function(){return re},tq:function(){return ee}});const s={body:{},addEventListener(){},removeEventListener(){},activeElement:{blur(){},nodeName:""},querySelector(){return null},querySelectorAll(){return[]},getElementById(){return null},createEvent(){return{initEvent(){}}},createElement(){return{children:[],childNodes:[],style:{},setAttribute(){},getElementsByTagName(){return[]}}},createElementNS(){return{}},importNode(){return null},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""}};function a(){const e="undefined"!=typeof document?document:{};return r(e,s),e}const o={document:s,navigator:{userAgent:""},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""},history:{replaceState(){},pushState(){},go(){},back(){}},CustomEvent:function(){return this},addEventListener(){},removeEventListener(){},getComputedStyle(){return{getPropertyValue(){return""}}},Image(){},Date(){},screen:{},setTimeout(){}
vendor: 5,274 bytes, line 50
50,clearTimeout(){},matchMedia(){return{}},requestAnimationFrame(e){return"undefined"==typeof setTimeout?(e(),null):setTimeout(e,0)},cancelAnimationFrame(e){"undefined"!=typeof setTimeout&&clearTimeout(e)}};function l(){const e="undefined"!=typeof window?window:{};return r(e,o),e}class c extends Array{constructor(e){"number"==typeof e?super(e):(super(...e||[]),function(e){const t=e.__proto__;Object.defineProperty(e,"__proto__",{get(){return t},set(e){t.__proto__=e}})}(this))}}function u(e=[]){const t=[];return e.forEach((e=>{Array.isArray(e)?t.push(...u(e)):t.push(e)})),t}function d(e,t){return Array.prototype.filter.call(e,t)}function p(e,t){const n=l(),i=a();let r=[];if(!t&&e instanceof c)return e;if(!e)return new c(r);if("string"==typeof e){const n=e.trim();if(n.indexOf("<")>=0&&n.indexOf(">")>=0){let e="div";0===n.indexOf("<li")&&(e="ul"),0===n.indexOf("<tr")&&(e="tbody"),0!==n.indexOf("<td")&&0!==n.indexOf("<th")||(e="tr"),0===n.indexOf("<tbody")&&(e="table"),0===n.indexOf("<option")&&(e="select");const t=i.createElement(e);t.innerHTML=n;for(let e=0;e<t.childNodes.length;e+=1)r.push(t.childNodes[e])}else r=function(e,t){if("string"!=typeof e)return[e];const n=[],i=t.querySelectorAll(e);for(let e=0;e<i.length;e+=1)n.push(i[e]);return n}(e.trim(),t||i)}else if(e.nodeType||e===n||e===i)r.push(e);else if(Array.isArray(e)){if(e instanceof c)return e;r=e}return new c(function(e){const t=[];for(let n=0;n<e.length;n+=1)-1===t.indexOf(e[n])&&t.push(e[n]);return t}(r))}p.fn=c.prototype;const f="resize scroll".split(" ");function h(e){return function(...t){if(void 0===t[0]){for(let t=0;t<this.length;t+=1)f.indexOf(e)<0&&(e in this[t]?this[t][e]():p(this[t]).trigger(e));return this}return this.on(e,...t)}}h("click"),h("blur"),h("focus"),h("focusin"),h("focusout"),h("keyup"),h("keydown"),h("keypress"),h("submit"),h("change"),h("mousedown"),h("mousemove"),h("mouseup"),h("mouseenter"),h("mouseleave"),h("mouseout"),h("mouseover"),h("touchstart"),h("touchend"),h("touchmove"),h("resize"),h("scroll");const m={addClass:function(...e){const t=u(e.map((e=>e.split(" "))));return this.forEach((e=>{e.classList.add(...t)})),this},removeClass:function(...e){const t=u(e.map((e=>e.split(" "))));return this.forEach((e=>{e.classList.remove(...t)})),this},hasClass:function(...e){const t=u(e.map((e=>e.split(" "))));return d(this,(e=>t.filter((t=>e.classList.contains(t))).length>0)).length>0},toggleClass:function(...e){const t=u(e.map((e=>e.split(" "))));this.forEach((e=>{t.forEach((t=>{e.classList.toggle(t)}))}))},attr:function(e,t){if(1===arguments.length&&"string"==typeof e)return this[0]?this[0].getAttribute(e):void 0;for(let n=0;n<this.length;n+=1)if(2===arguments.length)this[n].setAttribute(e,t);else for(const t in e)this[n][t]=e[t],this[n].setAttribute(t,e[t]);return this},removeAttr:function(e){for(let t=0;t<this.length;t+=1)this[t].removeAttribute(e);return this},transform:function(e){for(let t=0;t<this.length;t+=1)this[t].style.transform=e;return this},transition:function(e){for(let t=0;t<this.length;t+=1)this[t].style.transitionDuration="string"!=typeof e?`${e}ms`:e;return this},on:function(...e){let[t,n,i,r]=e;function s(e){const t=e.target;if(!t)return;const r=e.target.dom7EventData||[];if(r.indexOf(e)<0&&r.unshift(e),p(t).is(n))i.apply(t,r);else{const e=p(t).parents();for(let t=0;t<e.length;t+=1)p(e[t]).is(n)&&i.apply(e[t],r)}}function a(e){const t=e&&e.target&&e.target.dom7EventData||[];t.indexOf(e)<0&&t.unshift(e),i.apply(this,t)}"function"==typeof e[1]&&([t,i,r]=e,n=void 0),r||(r=!1);const o=t.split(" ");let l;for(let e=0;e<this.length;e+=1){const t=this[e];if(n)for(l=0;l<o.length;l+=1){const e=o[l];t.dom7LiveListeners||(t.dom7LiveListeners={}),t.dom7LiveListeners[e]||(t.dom7LiveListeners[e]=[]),t.dom7LiveListeners[e].push({listener:i,proxyListener:s}),t.addEventListener(e,s,r)}else for(l=0;l<o.length;l+=1){const e=o[l];t.dom7Listeners||(t.dom7Listeners={}),t.dom7Listeners[e]||(t.dom7Listeners[e]=[]),t.dom7Listeners[e].push({listener:i,proxyListener:a}),t.addEventListener(e,a,r)}}return this},off:function(...e){let[t,n,i,r]=e;"function"==typeof e[1]&&([t,i,r]=e,n=void 0),r||(r=!1);const s=t.split(" ");for(let e=0;e<s.length;e+=1){const t=s[e];for(let e=0;e<this.length;e+=1){const s=this[e];let a;if(!n&&s.dom7Listeners?a=s.dom7Listeners[t]:n&&s.dom7LiveListeners&&(a=s.dom7LiveListeners[t]),a&&a.length)for(let e=a.length-1;e>=0;e-=1){const n=a[e];i&&n.listener===i||i&&n.listener&&n.listener.dom7proxy&&n.listener.dom7proxy===i?(s.removeEventListener(t,n.proxyListener,r),a.splice(e,1)):i||(s.removeEventListener(t,n.proxyListener,r),a.splice(e,1))}}}return this},trigger:function(...e){const t=l(),n=e[0].split(" "),i=e[1];for(let r=0;r<n.length;r+=1){const s=n[r];for(let n=0;n<this.length;n+=1){const r=this[n];if(t.CustomEvent){const n=new t.CustomEvent(s,{detail:i,bubbles:!0,cancelable:!0});r.dom7EventData=e.filter(((e,t)=>t>0)),r.dispatchEvent(n),r.dom7EventData=[],delete r.dom7EventData}}}return this},transitionEnd:function(e){const t=this;return e&&t.on("transitionend",(function n(i){i.target===this&&(e.call(this,i),t.off("transitionend",n))})),this},outerWidth:function(e){if(this.length>0){if(e){const e=this.styles();return this[0].offsetWidth+parseFloat(e.getPropertyValue("margin-right"))+
vendor: 4,642 bytes, line 50
50parseFloat(e.getPropertyValue("margin-left"))}return this[0].offsetWidth}return null},outerHeight:function(e){if(this.length>0){if(e){const e=this.styles();return this[0].offsetHeight+parseFloat(e.getPropertyValue("margin-top"))+parseFloat(e.getPropertyValue("margin-bottom"))}return this[0].offsetHeight}return null},styles:function(){const e=l();return this[0]?e.getComputedStyle(this[0],null):{}},offset:function(){if(this.length>0){const e=l(),t=a(),n=this[0],i=n.getBoundingClientRect(),r=t.body,s=n.clientTop||r.clientTop||0,o=n.clientLeft||r.clientLeft||0,c=n===e?e.scrollY:n.scrollTop,u=n===e?e.scrollX:n.scrollLeft;return{top:i.top+c-s,left:i.left+u-o}}return null},css:function(e,t){const n=l();let i;if(1===arguments.length){if("string"!=typeof e){for(i=0;i<this.length;i+=1)for(const t in e)this[i].style[t]=e[t];return this}if(this[0])return n.getComputedStyle(this[0],null).getPropertyValue(e)}if(2===arguments.length&&"string"==typeof e){for(i=0;i<this.length;i+=1)this[i].style[e]=t;return this}return this},each:function(e){return e?(this.forEach(((t,n)=>{e.apply(t,[t,n])})),this):this},html:function(e){if(void 0===e)return this[0]?this[0].innerHTML:null;for(let t=0;t<this.length;t+=1)this[t].innerHTML=e;return this},text:function(e){if(void 0===e)return this[0]?this[0].textContent.trim():null;for(let t=0;t<this.length;t+=1)this[t].textContent=e;return this},is:function(e){const t=l(),n=a(),i=this[0];let r,s;if(!i||void 0===e)return!1;if("string"==typeof e){if(i.matches)return i.matches(e);if(i.webkitMatchesSelector)return i.webkitMatchesSelector(e);if(i.msMatchesSelector)return i.msMatchesSelector(e);for(r=p(e),s=0;s<r.length;s+=1)if(r[s]===i)return!0;return!1}if(e===n)return i===n;if(e===t)return i===t;if(e.nodeType||e instanceof c){for(r=e.nodeType?[e]:e,s=0;s<r.length;s+=1)if(r[s]===i)return!0;return!1}return!1},index:function(){let e,t=this[0];if(t){for(e=0;null!==(t=t.previousSibling);)1===t.nodeType&&(e+=1);return e}},eq:function(e){if(void 0===e)return this;const t=this.length;if(e>t-1)return p([]);if(e<0){const n=t+e;return p(n<0?[]:[this[n]])}return p([this[e]])},append:function(...e){let t;const n=a();for(let i=0;i<e.length;i+=1){t=e[i];for(let e=0;e<this.length;e+=1)if("string"==typeof t){const i=n.createElement("div");for(i.innerHTML=t;i.firstChild;)this[e].appendChild(i.firstChild)}else if(t instanceof c)for(let n=0;n<t.length;n+=1)this[e].appendChild(t[n]);else this[e].appendChild(t)}return this},prepend:function(e){const t=a();let n,i;for(n=0;n<this.length;n+=1)if("string"==typeof e){const r=t.createElement("div");for(r.innerHTML=e,i=r.childNodes.length-1;i>=0;i-=1)this[n].insertBefore(r.childNodes[i],this[n].childNodes[0])}else if(e instanceof c)for(i=0;i<e.length;i+=1)this[n].insertBefore(e[i],this[n].childNodes[0]);else this[n].insertBefore(e,this[n].childNodes[0]);return this},next:function(e){return this.length>0?e?this[0].nextElementSibling&&p(this[0].nextElementSibling).is(e)?p([this[0].nextElementSibling]):p([]):this[0].nextElementSibling?p([this[0].nextElementSibling]):p([]):p([])},nextAll:function(e){const t=[];let n=this[0];if(!n)return p([]);for(;n.nextElementSibling;){const i=n.nextElementSibling;e?p(i).is(e)&&t.push(i):t.push(i),n=i}return p(t)},prev:function(e){if(this.length>0){const t=this[0];return e?t.previousElementSibling&&p(t.previousElementSibling).is(e)?p([t.previousElementSibling]):p([]):t.previousElementSibling?p([t.previousElementSibling]):p([])}return p([])},prevAll:function(e){const t=[];let n=this[0];if(!n)return p([]);for(;n.previousElementSibling;){const i=n.previousElementSibling;e?p(i).is(e)&&t.push(i):t.push(i),n=i}return p(t)},parent:function(e){const t=[];for(let n=0;n<this.length;n+=1)null!==this[n].parentNode&&(e?p(this[n].parentNode).is(e)&&t.push(this[n].parentNode):t.push(this[n].parentNode));return p(t)},parents:function(e){const t=[];for(let n=0;n<this.length;n+=1){let i=this[n].parentNode;for(;i;)e?p(i).is(e)&&t.push(i):t.push(i),i=i.parentNode}return p(t)},closest:function(e){let t=this;return void 0===e?p([]):(t.is(e)||(t=t.parents(e).eq(0)),t)},find:function(e){const t=[];for(let n=0;n<this.length;n+=1){const i=this[n].querySelectorAll(e);for(let e=0;e<i.length;e+=1)t.push(i[e])}return p(t)},children:function(e){const t=[];for(let n=0;n<this.length;n+=1){const i=this[n].children;for(let n=0;n<i.length;n+=1)e&&!p(i[n]).is(e)||t.push(i[n])}return p(t)},filter:function(e){return p(d(this,e))},remove:function(){for(let e=0;e<this.length;e+=1)this[e].parentNode&&this[e].parentNode.removeChild(this[e]);return this}};Object.keys(m).forEach((e=>{Object.defineProperty(p.fn,e,{value:m[e],writable:!0})}
vendor: 5,097 bytes, line 50
50));var v=p;function g(e,t=0){return setTimeout(e,t)}function b(){return Date.now()}function y(e,t="x"){const n=l();let i,r,s;const a=function(e){const t=l();let n;return t.getComputedStyle&&(n=t.getComputedStyle(e,null)),!n&&e.currentStyle&&(n=e.currentStyle),n||(n=e.style),n}(e);return n.WebKitCSSMatrix?(r=a.transform||a.webkitTransform,r.split(",").length>6&&(r=r.split(", ").map((e=>e.replace(",","."))).join(", ")),s=new n.WebKitCSSMatrix("none"===r?"":r)):(s=a.MozTransform||a.OTransform||a.MsTransform||a.msTransform||a.transform||a.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,"),i=s.toString().split(",")),"x"===t&&(r=n.WebKitCSSMatrix?s.m41:16===i.length?parseFloat(i[12]):parseFloat(i[4])),"y"===t&&(r=n.WebKitCSSMatrix?s.m42:16===i.length?parseFloat(i[13]):parseFloat(i[5])),r||0}function w(e){return"object"==typeof e&&null!==e&&e.constructor&&"Object"===Object.prototype.toString.call(e).slice(8,-1)}function _(...e){const t=Object(e[0]),n=["__proto__","constructor","prototype"];for(let r=1;r<e.length;r+=1){const s=e[r];if(null!=s&&(i=s,!("undefined"!=typeof window&&void 0!==window.HTMLElement?i instanceof HTMLElement:i&&(1===i.nodeType||11===i.nodeType)))){const e=Object.keys(Object(s)).filter((e=>n.indexOf(e)<0));for(let n=0,i=e.length;n<i;n+=1){const i=e[n],r=Object.getOwnPropertyDescriptor(s,i);void 0!==r&&r.enumerable&&(w(t[i])&&w(s[i])?s[i].__swiper__?t[i]=s[i]:_(t[i],s[i]):!w(t[i])&&w(s[i])?(t[i]={},s[i].__swiper__?t[i]=s[i]:_(t[i],s[i])):t[i]=s[i])}}}var i;return t}function E(e,t,n){e.style.setProperty(t,n)}function T({swiper:e,targetPosition:t,side:n}){const i=l(),r=-e.translate;let s,a=null;const o=e.params.speed;e.wrapperEl.style.scrollSnapType="none",i.cancelAnimationFrame(e.cssModeFrameID);const c=t>r?"next":"prev",u=(e,t)=>"next"===c&&e>=t||"prev"===c&&e<=t,d=()=>{s=(new Date).getTime(),null===a&&(a=s);const l=Math.max(Math.min((s-a)/o,1),0),c=.5-Math.cos(l*Math.PI)/2;let p=r+c*(t-r);if(u(p,t)&&(p=t),e.wrapperEl.scrollTo({[n]:p}),u(p,t))return e.wrapperEl.style.overflow="hidden",e.wrapperEl.style.scrollSnapType="",setTimeout((()=>{e.wrapperEl.style.overflow="",e.wrapperEl.scrollTo({[n]:p})})),void i.cancelAnimationFrame(e.cssModeFrameID);e.cssModeFrameID=i.requestAnimationFrame(d)};d()}let C,S,x;function k(){return C||(C=function(){const e=l(),t=a();return{smoothScroll:t.documentElement&&"scrollBehavior"in t.documentElement.style,touch:!!("ontouchstart"in e||e.DocumentTouch&&t instanceof e.DocumentTouch),passiveListener:function(){let t=!1;try{const n=Object.defineProperty({},"passive",{get(){t=!0}});e.addEventListener("testPassiveListener",null,n)}catch(e){}return t}(),gestures:"ongesturestart"in e}}()),C}function L(e={}){return S||(S=function({userAgent:e}={}){const t=k(),n=l(),i=n.navigator.platform,r=e||n.navigator.userAgent,s={ios:!1,android:!1},a=n.screen.width,o=n.screen.height,c=r.match(/(Android);?[\s\/]+([\d.]+)?/);let u=r.match(/(iPad).*OS\s([\d_]+)/);const d=r.match(/(iPod)(.*OS\s([\d_]+))?/),p=!u&&r.match(/(iPhone\sOS|iOS)\s([\d_]+)/),f="Win32"===i;let h="MacIntel"===i;return!u&&h&&t.touch&&["1024x1366","1366x1024","834x1194","1194x834","834x1112","1112x834","768x1024","1024x768","820x1180","1180x820","810x1080","1080x810"].indexOf(`${a}x${o}`)>=0&&(u=r.match(/(Version)\/([\d.]+)/),u||(u=[0,1,"13_0_0"]),h=!1),c&&!f&&(s.os="android",s.android=!0),(u||p||d)&&(s.os="ios",s.ios=!0),s}(e)),S}function M(){return x||(x=function(){const e=l();return{isSafari:function(){const t=e.navigator.userAgent.toLowerCase();return t.indexOf("safari")>=0&&t.indexOf("chrome")<0&&t.indexOf("android")<0}(),isWebView:/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(e.navigator.userAgent)}}()),x}var O={on(e,t,n){const i=this;if(!i.eventsListeners||i.destroyed)return i;if("function"!=typeof t)return i;const r=n?"unshift":"push";return e.split(" ").forEach((e=>{i.eventsListeners[e]||(i.eventsListeners[e]=[]),i.eventsListeners[e][r](t)})),i},once(e,t,n){const i=this;if(!i.eventsListeners||i.destroyed)return i;if("function"!=typeof t)return i;function r(...n){i.off(e,r),r.__emitterProxy&&delete r.__emitterProxy,t.apply(i,n)}return r.__emitterProxy=t,i.on(e,r,n)},onAny(e,t){const n=this;if(!n.eventsListeners||n.destroyed)return n;if("function"!=typeof e)return n;const i=t?"unshift":"push";return n.eventsAnyListeners.indexOf(e)<0&&n.eventsAnyListeners[i](e),n},offAny(e){const t=this;if(!t.eventsListeners||t.destroyed)return t;if(!t.eventsAnyListeners)return t;const n=t.eventsAnyListeners.indexOf(e);return n>=0&&t.eventsAnyListeners.splice(n,1),t},off(e,t){const n=this;return!n.eventsListeners||n.destroyed?n:n.eventsListeners?(e.split(" ").forEach((e=>{void 0===t?n.eventsListeners[e]=[]:n.eventsListeners[e]&&n.eventsListeners[e].forEach(((i,r)=>{(i===t||i.__emitterProxy&&i.__emitterProxy===t)&&n.eventsListeners[e].splice(r,1)}))})),n):n},emit(...e){const t=this;if(!t.eventsListeners||t.destroyed)return t;if(!t.eventsListeners)return t;let n,i,r;"string"==typeof e[0]||Array.isArray(e[0])?(n=e[0],i=e.slice(1,e.length),r=t):(n=e[0].events,i=e[0].data,r=e[0].context||t),i.unshift(r);
vendor: 8,358 bytes, line 50
50return(Array.isArray(n)?n:n.split(" ")).forEach((e=>{t.eventsAnyListeners&&t.eventsAnyListeners.length&&t.eventsAnyListeners.forEach((t=>{t.apply(r,[e,...i])})),t.eventsListeners&&t.eventsListeners[e]&&t.eventsListeners[e].forEach((e=>{e.apply(r,i)}))})),t}};var P={updateSize:function(){const e=this;let t,n;const i=e.$el;t=void 0!==e.params.width&&null!==e.params.width?e.params.width:i[0].clientWidth,n=void 0!==e.params.height&&null!==e.params.height?e.params.height:i[0].clientHeight,0===t&&e.isHorizontal()||0===n&&e.isVertical()||(t=t-parseInt(i.css("padding-left")||0,10)-parseInt(i.css("padding-right")||0,10),n=n-parseInt(i.css("padding-top")||0,10)-parseInt(i.css("padding-bottom")||0,10),Number.isNaN(t)&&(t=0),Number.isNaN(n)&&(n=0),Object.assign(e,{width:t,height:n,size:e.isHorizontal()?t:n}))},updateSlides:function(){const e=this;function t(t){return e.isHorizontal()?t:{width:"height","margin-top":"margin-left","margin-bottom ":"margin-right","margin-left":"margin-top","margin-right":"margin-bottom","padding-left":"padding-top","padding-right":"padding-bottom",marginRight:"marginBottom"}[t]}function n(e,n){return parseFloat(e.getPropertyValue(t(n))||0)}const i=e.params,{$wrapperEl:r,size:s,rtlTranslate:a,wrongRTL:o}=e,l=e.virtual&&i.virtual.enabled,c=l?e.virtual.slides.length:e.slides.length,u=r.children(`.${e.params.slideClass}`),d=l?e.virtual.slides.length:u.length;let p=[];const f=[],h=[];let m=i.slidesOffsetBefore;"function"==typeof m&&(m=i.slidesOffsetBefore.call(e));let v=i.slidesOffsetAfter;"function"==typeof v&&(v=i.slidesOffsetAfter.call(e));const g=e.snapGrid.length,b=e.slidesGrid.length;let y=i.spaceBetween,w=-m,_=0,T=0;if(void 0===s)return;"string"==typeof y&&y.indexOf("%")>=0&&(y=parseFloat(y.replace("%",""))/100*s),e.virtualSize=-y,a?u.css({marginLeft:"",marginBottom:"",marginTop:""}):u.css({marginRight:"",marginBottom:"",marginTop:""}),i.centeredSlides&&i.cssMode&&(E(e.wrapperEl,"--swiper-centered-offset-before",""),E(e.wrapperEl,"--swiper-centered-offset-after",""));const C=i.grid&&i.grid.rows>1&&e.grid;let S;C&&e.grid.initSlides(d);const x="auto"===i.slidesPerView&&i.breakpoints&&Object.keys(i.breakpoints).filter((e=>void 0!==i.breakpoints[e].slidesPerView)).length>0;for(let r=0;r<d;r+=1){S=0;const a=u.eq(r);if(C&&e.grid.updateSlide(r,a,d,t),"none"!==a.css("display")){if("auto"===i.slidesPerView){x&&(u[r].style[t("width")]="");const s=getComputedStyle(a[0]),o=a[0].style.transform,l=a[0].style.webkitTransform;if(o&&(a[0].style.transform="none"),l&&(a[0].style.webkitTransform="none"),i.roundLengths)S=e.isHorizontal()?a.outerWidth(!0):a.outerHeight(!0);else{const e=n(s,"width"),t=n(s,"padding-left"),i=n(s,"padding-right"),r=n(s,"margin-left"),o=n(s,"margin-right"),l=s.getPropertyValue("box-sizing");if(l&&"border-box"===l)S=e+r+o;else{const{clientWidth:n,offsetWidth:s}=a[0];S=e+t+i+r+o+(s-n)}}o&&(a[0].style.transform=o),l&&(a[0].style.webkitTransform=l),i.roundLengths&&(S=Math.floor(S))}else S=(s-(i.slidesPerView-1)*y)/i.slidesPerView,i.roundLengths&&(S=Math.floor(S)),u[r]&&(u[r].style[t("width")]=`${S}px`);u[r]&&(u[r].swiperSlideSize=S),h.push(S),i.centeredSlides?(w=w+S/2+_/2+y,0===_&&0!==r&&(w=w-s/2-y),0===r&&(w=w-s/2-y),Math.abs(w)<.001&&(w=0),i.roundLengths&&(w=Math.floor(w)),T%i.slidesPerGroup==0&&p.push(w),f.push(w)):(i.roundLengths&&(w=Math.floor(w)),(T-Math.min(e.params.slidesPerGroupSkip,T))%e.params.slidesPerGroup==0&&p.push(w),f.push(w),w=w+S+y),e.virtualSize+=S+y,_=S,T+=1}}if(e.virtualSize=Math.max(e.virtualSize,s)+v,a&&o&&("slide"===i.effect||"coverflow"===i.effect)&&r.css({width:`${e.virtualSize+i.spaceBetween}px`}),i.setWrapperSize&&r.css({[t("width")]:`${e.virtualSize+i.spaceBetween}px`}),C&&e.grid.updateWrapperSize(S,p,t),!i.centeredSlides){const t=[];for(let n=0;n<p.length;n+=1){let r=p[n];i.roundLengths&&(r=Math.floor(r)),p[n]<=e.virtualSize-s&&t.push(r)}p=t,Math.floor(e.virtualSize-s)-Math.floor(p[p.length-1])>1&&p.push(e.virtualSize-s)}if(0===p.length&&(p=[0]),0!==i.spaceBetween){const n=e.isHorizontal()&&a?"marginLeft":t("marginRight");u.filter(((e,t)=>!i.cssMode||t!==u.length-1)).css({[n]:`${y}px`})}if(i.centeredSlides&&i.centeredSlidesBounds){let e=0;h.forEach((t=>{e+=t+(i.spaceBetween?i.spaceBetween:0)})),e-=i.spaceBetween;const t=e-s;p=p.map((e=>e<0?-m:e>t?t+v:e))}if(i.centerInsufficientSlides){let e=0;if(h.forEach((t=>{e+=t+(i.spaceBetween?i.spaceBetween:0)})),e-=i.spaceBetween,e<s){const t=(s-e)/2;p.forEach(((e,n)=>{p[n]=e-t})),f.forEach(((e,n)=>{f[n]=e+t}))}}if(Object.assign(e,{slides:u,snapGrid:p,slidesGrid:f,slidesSizesGrid:h}),i.centeredSlides&&i.cssMode&&!i.centeredSlidesBounds){E(e.wrapperEl,"--swiper-centered-offset-before",-p[0]+"px"),E(e.wrapperEl,"--swiper-centered-offset-after",e.size/2-h[h.length-1]/2+"px");const t=-e.snapGrid[0],n=-e.slidesGrid[0];e.snapGrid=e.snapGrid.map((e=>e+t)),e.slidesGrid=e.slidesGrid.map((e=>e+n))}if(d!==c&&e.emit("slidesLengthChange"),p.length!==g&&(e.params.watchOverflow&&e.checkOverflow(),e.emit("snapGridLengthChange")),f.length!==b&&e.emit("slidesGridLengthChange"),i.watchSlidesProgress&&e.updateSlidesOffset(),!(l||i.cssMode||"slide"!==i.effect&&"fade"!==i.effect)){const t=`${i.containerModifierClass}backface-hidden`,n=e.$el.hasClass(t);d<=i.maxBackfaceHiddenSlides?n||e.$el.addClass(t):n&&e.$el.removeClass(t)}},updateAutoHeight:function(e){const t=this,n=[],i=t.virtual&&t.params.virtual.enabled;let r,s=0;"number"==typeof e?t.setTransition(e):!0===e&&t.setTransition(t.params.speed);const a=e=>i?t.slides.filter((t=>parseInt(t.getAttribute("data-swiper-slide-index"),10)===e))[0]:t.slides.eq(e)[0];if("auto"!==t.params.slidesPerView&&t.params.slidesPerView>1)if(t.params.centeredSlides)(t.visibleSlides||v([])).each((e=>{n.push(e)}));else for(r=0;r<Math.ceil(t.params.slidesPerView);r+=1){const e=t.activeIndex+r;if(e>t.slides.length&&!i)break;n.push(a(e))}else n.push(a(t.activeIndex));for(r=0;r<n.length;r+=1)if(void 0!==n[r]){const e=n[r].offsetHeight;s=e>s?e:s}(s||0===s)&&t.$wrapperEl.css("height",`${s}px`)},updateSlidesOffset:function(){const e=this,t=e.slides;for(let n=0;n<t.length;n+=1)t[n].swiperSlideOffset=e.isHorizontal()?t[n].offsetLeft:t[n].offsetTop},updateSlidesProgress:function(e=this&&this.translate||0){const t=this,n=t.params,{slides:i,rtlTranslate:r,snapGrid:s}=t;if(0===i.length)return;void 0===i[0].swiperSlideOffset&&t.updateSlidesOffset();let a=-e;r&&(a=e),i.removeClass(n.slideVisibleClass),t.visibleSlidesIndexes=[],t.visibleSlides=[];for(let e=0;e<i.length;e+=1){const o=i[e];let l=o.swiperSlideOffset;n.cssMode&&n.centeredSlides&&(l-=i[0].swiperSlideOffset);const c=(a+(n.centeredSlides?t.minTranslate():0)-l)/(o.swiperSlideSize+n.spaceBetween),u=(a-s[0]+(n.centeredSlides?t.minTranslate():0)-l)/(o.swiperSlideSize+n.spaceBetween),d=-(a-l),p=d+t.slidesSizesGrid[e];(d>=0&&d<t.size-1||p>1&&p<=t.size||d<=0&&p>=t.size)&&(t.visibleSlides.push(o),t.visibleSlidesIndexes.push(e),i.eq(e).addClass(n.slideVisibleClass)),o.progress=r?-c:c,o.originalProgress=r?-u:u}t.visibleSlides=v(t.visibleSlides)},updateProgress:function(e){const t=this;if(void 0===e){const n=t.rtlTranslate?-1:1;e=t&&t.translate&&t.translate*n||0}const n=t.params,i=t.maxTranslate()-t.minTranslate();let{progress:r,isBeginning:s,isEnd:a}=t;const o=s,l=a;0===i?(r=0,s=!0,a=!0):(r=(e-t.minTranslate())/i,s=r<=0,a=r>=1),Object.assign(t,{progress:r,isBeginning:s,isEnd:a}),(n.watchSlidesProgress||n.centeredSlides&&n.autoHeight)&&t.updateSlidesProgress(e),s&&!o&&t.emit("reachBeginning toEdge"),a&&!l&&t.emit("reachEnd toEdge"),(o&&!s||l&&!a)&&t.emit("fromEdge"),t.emit("progress",r)},updateSlidesClasses:function(){const e=this,{slides:t,params:n,$wrapperEl:i,activeIndex:r,realIndex:s}=e,a=e.virtual&&n.virtual.enabled;let o;t.removeClass(`${n.slideActiveClass} ${n.slideNextClass} ${n.slidePrevClass} ${n.slideDuplicateActiveClass} ${n.slideDuplicateNextClass} ${n.slideDuplicatePrevClass}`),o=a?e.$wrapperEl.find(`.${n.slideClass}[data-swiper-slide-index="${r}"]`):t.eq(r),o.addClass(n.slideActiveClass),n.loop&&(o.hasClass(n.slideDuplicateClass)?i.children(`.${n.slideClass}:not(.${n.slideDuplicateClass})[data-swiper-slide-index="${s}"]`).addClass(n.slideDuplicateActiveClass):i.children(`.${n.slideClass}.${n.slideDuplicateClass}[data-swiper-slide-index="${s}"]`).addClass(n.slideDuplicateActiveClass));let l=o.nextAll(`.${n.slideClass}`).eq(0).addClass(n.slideNextClass);
vendor: 16,654 bytes, line 50
50n.loop&&0===l.length&&(l=t.eq(0),l.addClass(n.slideNextClass));let c=o.prevAll(`.${n.slideClass}`).eq(0).addClass(n.slidePrevClass);n.loop&&0===c.length&&(c=t.eq(-1),c.addClass(n.slidePrevClass)),n.loop&&(l.hasClass(n.slideDuplicateClass)?i.children(`.${n.slideClass}:not(.${n.slideDuplicateClass})[data-swiper-slide-index="${l.attr("data-swiper-slide-index")}"]`).addClass(n.slideDuplicateNextClass):i.children(`.${n.slideClass}.${n.slideDuplicateClass}[data-swiper-slide-index="${l.attr("data-swiper-slide-index")}"]`).addClass(n.slideDuplicateNextClass),c.hasClass(n.slideDuplicateClass)?i.children(`.${n.slideClass}:not(.${n.slideDuplicateClass})[data-swiper-slide-index="${c.attr("data-swiper-slide-index")}"]`).addClass(n.slideDuplicatePrevClass):i.children(`.${n.slideClass}.${n.slideDuplicateClass}[data-swiper-slide-index="${c.attr("data-swiper-slide-index")}"]`).addClass(n.slideDuplicatePrevClass)),e.emitSlidesClasses()},updateActiveIndex:function(e){const t=this,n=t.rtlTranslate?t.translate:-t.translate,{slidesGrid:i,snapGrid:r,params:s,activeIndex:a,realIndex:o,snapIndex:l}=t;let c,u=e;if(void 0===u){for(let e=0;e<i.length;e+=1)void 0!==i[e+1]?n>=i[e]&&n<i[e+1]-(i[e+1]-i[e])/2?u=e:n>=i[e]&&n<i[e+1]&&(u=e+1):n>=i[e]&&(u=e);s.normalizeSlideIndex&&(u<0||void 0===u)&&(u=0)}if(r.indexOf(n)>=0)c=r.indexOf(n);else{const e=Math.min(s.slidesPerGroupSkip,u);c=e+Math.floor((u-e)/s.slidesPerGroup)}if(c>=r.length&&(c=r.length-1),u===a)return void(c!==l&&(t.snapIndex=c,t.emit("snapIndexChange")));const d=parseInt(t.slides.eq(u).attr("data-swiper-slide-index")||u,10);Object.assign(t,{snapIndex:c,realIndex:d,previousIndex:a,activeIndex:u}),t.emit("activeIndexChange"),t.emit("snapIndexChange"),o!==d&&t.emit("realIndexChange"),(t.initialized||t.params.runCallbacksOnInit)&&t.emit("slideChange")},updateClickedSlide:function(e){const t=this,n=t.params,i=v(e).closest(`.${n.slideClass}`)[0];let r,s=!1;if(i)for(let e=0;e<t.slides.length;e+=1)if(t.slides[e]===i){s=!0,r=e;break}if(!i||!s)return t.clickedSlide=void 0,void(t.clickedIndex=void 0);t.clickedSlide=i,t.virtual&&t.params.virtual.enabled?t.clickedIndex=parseInt(v(i).attr("data-swiper-slide-index"),10):t.clickedIndex=r,n.slideToClickedSlide&&void 0!==t.clickedIndex&&t.clickedIndex!==t.activeIndex&&t.slideToClickedSlide()}};var A={getTranslate:function(e=(this.isHorizontal()?"x":"y")){const{params:t,rtlTranslate:n,translate:i,$wrapperEl:r}=this;if(t.virtualTranslate)return n?-i:i;if(t.cssMode)return i;let s=y(r[0],e);return n&&(s=-s),s||0},setTranslate:function(e,t){const n=this,{rtlTranslate:i,params:r,$wrapperEl:s,wrapperEl:a,progress:o}=n;let l,c=0,u=0;n.isHorizontal()?c=i?-e:e:u=e,r.roundLengths&&(c=Math.floor(c),u=Math.floor(u)),r.cssMode?a[n.isHorizontal()?"scrollLeft":"scrollTop"]=n.isHorizontal()?-c:-u:r.virtualTranslate||s.transform(`translate3d(${c}px, ${u}px, 0px)`),n.previousTranslate=n.translate,n.translate=n.isHorizontal()?c:u;const d=n.maxTranslate()-n.minTranslate();l=0===d?0:(e-n.minTranslate())/d,l!==o&&n.updateProgress(e),n.emit("setTranslate",n.translate,t)},minTranslate:function(){return-this.snapGrid[0]},maxTranslate:function(){return-this.snapGrid[this.snapGrid.length-1]},translateTo:function(e=0,t=this.params.speed,n=!0,i=!0,r){const s=this,{params:a,wrapperEl:o}=s;if(s.animating&&a.preventInteractionOnTransition)return!1;const l=s.minTranslate(),c=s.maxTranslate();let u;if(u=i&&e>l?l:i&&e<c?c:e,s.updateProgress(u),a.cssMode){const e=s.isHorizontal();if(0===t)o[e?"scrollLeft":"scrollTop"]=-u;else{if(!s.support.smoothScroll)return T({swiper:s,targetPosition:-u,side:e?"left":"top"}),!0;o.scrollTo({[e?"left":"top"]:-u,behavior:"smooth"})}return!0}return 0===t?(s.setTransition(0),s.setTranslate(u),n&&(s.emit("beforeTransitionStart",t,r),s.emit("transitionEnd"))):(s.setTransition(t),s.setTranslate(u),n&&(s.emit("beforeTransitionStart",t,r),s.emit("transitionStart")),s.animating||(s.animating=!0,s.onTranslateToWrapperTransitionEnd||(s.onTranslateToWrapperTransitionEnd=function(e){s&&!s.destroyed&&e.target===this&&(s.$wrapperEl[0].removeEventListener("transitionend",s.onTranslateToWrapperTransitionEnd),s.$wrapperEl[0].removeEventListener("webkitTransitionEnd",s.onTranslateToWrapperTransitionEnd),s.onTranslateToWrapperTransitionEnd=null,delete s.onTranslateToWrapperTransitionEnd,n&&s.emit("transitionEnd"))}),s.$wrapperEl[0].addEventListener("transitionend",s.onTranslateToWrapperTransitionEnd),s.$wrapperEl[0].addEventListener("webkitTransitionEnd",s.onTranslateToWrapperTransitionEnd))),!0}};function I({swiper:e,runCallbacks:t,direction:n,step:i}){const{activeIndex:r,previousIndex:s}=e;let a=n;if(a||(a=r>s?"next":r<s?"prev":"reset"),e.emit(`transition${i}`),t&&r!==s){if("reset"===a)return void e.emit(`slideResetTransition${i}`);e.emit(`slideChangeTransition${i}`),"next"===a?e.emit(`slideNextTransition${i}`):e.emit(`slidePrevTransition${i}`)}}var D={slideTo:function(e=0,t=this.params.speed,n=!0,i,r){if("number"!=typeof e&&"string"!=typeof e)throw new Error(`The 'index' argument cannot have type other than 'number' or 'string'. [${typeof e}] given.`);if("string"==typeof e){const t=parseInt(e,10);if(!isFinite(t))throw new Error(`The passed-in 'index' (string) couldn't be converted to 'number'. [${e}] given.`);e=t}const s=this;let a=e;a<0&&(a=0);const{params:o,snapGrid:l,slidesGrid:c,previousIndex:u,activeIndex:d,rtlTranslate:p,wrapperEl:f,enabled:h}=s;if(s.animating&&o.preventInteractionOnTransition||!h&&!i&&!r)return!1;const m=Math.min(s.params.slidesPerGroupSkip,a);let v=m+Math.floor((a-m)/s.params.slidesPerGroup);v>=l.length&&(v=l.length-1);const g=-l[v];if(o.normalizeSlideIndex)for(let e=0;e<c.length;e+=1){const t=-Math.floor(100*g),n=Math.floor(100*c[e]),i=Math.floor(100*c[e+1]);void 0!==c[e+1]?t>=n&&t<i-(i-n)/2?a=e:t>=n&&t<i&&(a=e+1):t>=n&&(a=e)}if(s.initialized&&a!==d){if(!s.allowSlideNext&&g<s.translate&&g<s.minTranslate())return!1;if(!s.allowSlidePrev&&g>s.translate&&g>s.maxTranslate()&&(d||0)!==a)return!1}let b;if(a!==(u||0)&&n&&s.emit("beforeSlideChangeStart"),s.updateProgress(g),b=a>d?"next":a<d?"prev":"reset",p&&-g===s.translate||!p&&g===s.translate)return s.updateActiveIndex(a),o.autoHeight&&s.updateAutoHeight(),s.updateSlidesClasses(),"slide"!==o.effect&&s.setTranslate(g),"reset"!==b&&(s.transitionStart(n,b),s.transitionEnd(n,b)),!1;if(o.cssMode){const e=s.isHorizontal(),n=p?g:-g;if(0===t){const t=s.virtual&&s.params.virtual.enabled;t&&(s.wrapperEl.style.scrollSnapType="none",s._immediateVirtual=!0),f[e?"scrollLeft":"scrollTop"]=n,t&&requestAnimationFrame((()=>{s.wrapperEl.style.scrollSnapType="",s._swiperImmediateVirtual=!1}))}else{if(!s.support.smoothScroll)return T({swiper:s,targetPosition:n,side:e?"left":"top"}),!0;f.scrollTo({[e?"left":"top"]:n,behavior:"smooth"})}return!0}return s.setTransition(t),s.setTranslate(g),s.updateActiveIndex(a),s.updateSlidesClasses(),s.emit("beforeTransitionStart",t,i),s.transitionStart(n,b),0===t?s.transitionEnd(n,b):s.animating||(s.animating=!0,s.onSlideToWrapperTransitionEnd||(s.onSlideToWrapperTransitionEnd=function(e){s&&!s.destroyed&&e.target===this&&(s.$wrapperEl[0].removeEventListener("transitionend",s.onSlideToWrapperTransitionEnd),s.$wrapperEl[0].removeEventListener("webkitTransitionEnd",s.onSlideToWrapperTransitionEnd),s.onSlideToWrapperTransitionEnd=null,delete s.onSlideToWrapperTransitionEnd,s.transitionEnd(n,b))}),s.$wrapperEl[0].addEventListener("transitionend",s.onSlideToWrapperTransitionEnd),s.$wrapperEl[0].addEventListener("webkitTransitionEnd",s.onSlideToWrapperTransitionEnd)),!0},slideToLoop:function(e=0,t=this.params.speed,n=!0,i){if("string"==typeof e){const t=parseInt(e,10);if(!isFinite(t))throw new Error(`The passed-in 'index' (string) couldn't be converted to 'number'. [${e}] given.`);e=t}const r=this;let s=e;return r.params.loop&&(s+=r.loopedSlides),r.slideTo(s,t,n,i)},slideNext:function(e=this.params.speed,t=!0,n){const i=this,{animating:r,enabled:s,params:a}=i;if(!s)return i;let o=a.slidesPerGroup;"auto"===a.slidesPerView&&1===a.slidesPerGroup&&a.slidesPerGroupAuto&&(o=Math.max(i.slidesPerViewDynamic("current",!0),1));const l=i.activeIndex<a.slidesPerGroupSkip?1:o;if(a.loop){if(r&&a.loopPreventsSlide)return!1;i.loopFix(),i._clientLeft=i.$wrapperEl[0].clientLeft}return a.rewind&&i.isEnd?i.slideTo(0,e,t,n):i.slideTo(i.activeIndex+l,e,t,n)},slidePrev:function(e=this.params.speed,t=!0,n){const i=this,{params:r,animating:s,snapGrid:a,slidesGrid:o,rtlTranslate:l,enabled:c}=i;if(!c)return i;if(r.loop){if(s&&r.loopPreventsSlide)return!1;i.loopFix(),i._clientLeft=i.$wrapperEl[0].clientLeft}function u(e){return e<0?-Math.floor(Math.abs(e)):Math.floor(e)}const d=u(l?i.translate:-i.translate),p=a.map((e=>u(e)));let f=a[p.indexOf(d)-1];if(void 0===f&&r.cssMode){let e;a.forEach(((t,n)=>{d>=t&&(e=n)})),void 0!==e&&(f=a[e>0?e-1:e])}let h=0;if(void 0!==f&&(h=o.indexOf(f),h<0&&(h=i.activeIndex-1),"auto"===r.slidesPerView&&1===r.slidesPerGroup&&r.slidesPerGroupAuto&&(h=h-i.slidesPerViewDynamic("previous",!0)+1,h=Math.max(h,0))),r.rewind&&i.isBeginning){const r=i.params.virtual&&i.params.virtual.enabled&&i.virtual?i.virtual.slides.length-1:i.slides.length-1;return i.slideTo(r,e,t,n)}return i.slideTo(h,e,t,n)},slideReset:function(e=this.params.speed,t=!0,n){return this.slideTo(this.activeIndex,e,t,n)},slideToClosest:function(e=this.params.speed,t=!0,n,i=.5){const r=this;let s=r.activeIndex;const a=Math.min(r.params.slidesPerGroupSkip,s),o=a+Math.floor((s-a)/r.params.slidesPerGroup),l=r.rtlTranslate?r.translate:-r.translate;if(l>=r.snapGrid[o]){const e=r.snapGrid[o];l-e>(r.snapGrid[o+1]-e)*i&&(s+=r.params.slidesPerGroup)}else{const e=r.snapGrid[o-1];l-e<=(r.snapGrid[o]-e)*i&&(s-=r.params.slidesPerGroup)}return s=Math.max(s,0),s=Math.min(s,r.slidesGrid.length-1),r.slideTo(s,e,t,n)},slideToClickedSlide:function(){const e=this,{params:t,$wrapperEl:n}=e,i="auto"===t.slidesPerView?e.slidesPerViewDynamic():t.slidesPerView;let r,s=e.clickedIndex;if(t.loop){if(e.animating)return;r=parseInt(v(e.clickedSlide).attr("data-swiper-slide-index"),10),t.centeredSlides?s<e.loopedSlides-i/2||s>e.slides.length-e.loopedSlides+i/2?(e.loopFix(),s=n.children(`.${t.slideClass}[data-swiper-slide-index="${r}"]:not(.${t.slideDuplicateClass})`).eq(0).index(),g((()=>{e.slideTo(s)}))):e.slideTo(s):s>e.slides.length-i?(e.loopFix(),s=n.children(`.${t.slideClass}[data-swiper-slide-index="${r}"]:not(.${t.slideDuplicateClass})`).eq(0).index(),g((()=>{e.slideTo(s)}))):e.slideTo(s)}else e.slideTo(s)}};var $={loopCreate:function(){const e=this,t=a(),{params:n,$wrapperEl:i}=e,r=i.children().length>0?v(i.children()[0].parentNode):i;r.children(`.${n.slideClass}.${n.slideDuplicateClass}`).remove();let s=r.children(`.${n.slideClass}`);if(n.loopFillGroupWithBlank){const e=n.slidesPerGroup-s.length%n.slidesPerGroup;if(e!==n.slidesPerGroup){for(let i=0;i<e;i+=1){const e=v(t.createElement("div")).addClass(`${n.slideClass} ${n.slideBlankClass}`);r.append(e)}s=r.children(`.${n.slideClass}`)}}"auto"!==n.slidesPerView||n.loopedSlides||(n.loopedSlides=s.length),e.loopedSlides=Math.ceil(parseFloat(n.loopedSlides||n.slidesPerView,10)),e.loopedSlides+=n.loopAdditionalSlides,e.loopedSlides>s.length&&e.params.loopedSlidesLimit&&(e.loopedSlides=s.length);const o=[],l=[];s.each(((e,t)=>{v(e).attr("data-swiper-slide-index",t)}));for(let t=0;t<e.loopedSlides;t+=1){const e=t-Math.floor(t/s.length)*s.length;l.push(s.eq(e)[0]),o.unshift(s.eq(s.length-e-1)[0])}for(let e=0;e<l.length;e+=1)r.append(v(l[e].cloneNode(!0)).addClass(n.slideDuplicateClass));for(let e=o.length-1;e>=0;e-=1)r.prepend(v(o[e].cloneNode(!0)).addClass(n.slideDuplicateClass))},loopFix:function(){const e=this;e.emit("beforeLoopFix");const{activeIndex:t,slides:n,loopedSlides:i,allowSlidePrev:r,allowSlideNext:s,snapGrid:a,rtlTranslate:o}=e;let l;e.allowSlidePrev=!0,e.allowSlideNext=!0;const c=-a[t]-e.getTranslate();if(t<i){l=n.length-3*i+t,l+=i;e.slideTo(l,0,!1,!0)&&0!==c&&e.setTranslate((o?-e.translate:e.translate)-c)}else if(t>=n.length-i){l=-n.length+t+i,l+=i;e.slideTo(l,0,!1,!0)&&0!==c&&e.setTranslate((o?-e.translate:e.translate)-c)}e.allowSlidePrev=r,e.allowSlideNext=s,e.emit("loopFix")},loopDestroy:function(){const{$wrapperEl:e,params:t,slides:n}=this;e.children(`.${t.slideClass}.${t.slideDuplicateClass},.${t.slideClass}.${t.slideBlankClass}`).remove(),n.removeAttr("data-swiper-slide-index")}};function j(e){const t=this,n=a(),i=l(),r=t.touchEventsData,{params:s,touches:o,enabled:c}=t;if(!c)return;if(t.animating&&s.preventInteractionOnTransition)return;!t.animating&&s.cssMode&&s.loop&&t.loopFix();let u=e;u.originalEvent&&(u=u.originalEvent);let d=v(u.target);if("wrapper"===s.touchEventsTarget&&!d.closest(t.wrapperEl).length)return;if(r.isTouchEvent="touchstart"===u.type,!r.isTouchEvent&&"which"in u&&3===u.which)return;if(!r.isTouchEvent&&"button"in u&&u.button>0)return;if(r.isTouched&&r.isMoved)return;const p=!!s.noSwipingClass&&""!==s.noSwipingClass,f=e.composedPath?e.composedPath():e.path;p&&u.target&&u.target.shadowRoot&&f&&(d=v(f[0]));const h=s.noSwipingSelector?s.noSwipingSelector:`.${s.noSwipingClass}`,m=!(!u.target||!u.target.shadowRoot);if(s.noSwiping&&(m?function(e,t=this){return function t(n){if(!n||n===a()||n===l())return null;n.assignedSlot&&(n=n.assignedSlot);const i=n.closest(e);return i||n.getRootNode?i||t(n.getRootNode().host):null}(t)}(h,d[0]):d.closest(h)[0]))return void(t.allowClick=!0);if(s.swipeHandler&&!d.closest(s.swipeHandler)[0])return;o.currentX="touchstart"===u.type?u.targetTouches[0].pageX:u.pageX,o.currentY="touchstart"===u.type?u.targetTouches[0].pageY:u.pageY;const g=o.currentX,y=o.currentY,w=s.edgeSwipeDetection||s.iOSEdgeSwipeDetection,_=s.edgeSwipeThreshold||s.iOSEdgeSwipeThreshold;if(w&&(g<=_||g>=i.innerWidth-_)){if("prevent"!==w)return;e.preventDefault()}if(Object.assign(r,{isTouched:!0,isMoved:!1,allowTouchCallbacks:!0,isScrolling:void 0,startMoving:void 0}),o.startX=g,o.startY=y,r.touchStartTime=b(),t.allowClick=!0,t.updateSize(),t.swipeDirection=void 0,s.threshold>0&&(r.allowThresholdMove=!1),"touchstart"!==u.type){let e=!0;d.is(r.focusableElements)&&(e=!1,"SELECT"===d[0].nodeName&&(r.isTouched=!1)),n.activeElement&&v(n.activeElement).is(r.focusableElements)&&n.activeElement!==d[0]&&n.activeElement.blur();const i=e&&t.allowTouchMove&&s.touchStartPreventDefault;!s.touchStartForcePreventDefault&&!i||d[0].isContentEditable||u.preventDefault()}t.params.freeMode&&t.params.freeMode.enabled&&t.freeMode&&t.animating&&!s.cssMode&&t.freeMode.onTouchStart(),t.emit("touchStart",u)}function N(e){const t=a(),n=this,i=n.touchEventsData,{params:r,touches:s,rtlTranslate:o,enabled:l}=n;if(!l)return;let c=e;if(c.originalEvent&&(c=c.originalEvent),!i.isTouched)return void(i.startMoving&&i.isScrolling&&n.emit("touchMoveOpposite",c));if(i.isTouchEvent&&"touchmove"!==c.type)return;const u="touchmove"===c.type&&c.targetTouches&&(c.targetTouches[0]||c.changedTouches[0]),d="touchmove"===c.type?u.pageX:c.pageX,p="touchmove"===c.type?u.pageY:c.pageY;if(c.preventedByNestedSwiper)return s.startX=d,void(s.startY=p);if(!n.allowTouchMove)return v(c.target).is(i.focusableElements)||(n.allowClick=!1),void(i.isTouched&&(Object.assign(s,{startX:d,startY:p,currentX:d,currentY:p}),i.touchStartTime=b()));if(i.isTouchEvent&&r.touchReleaseOnEdges&&!r.loop)if(n.isVertical()){if(p<s.startY&&n.translate<=n.maxTranslate()||p>s.startY&&n.translate>=n.minTranslate())return i.isTouched=!1,void(i.isMoved=!1)}else if(d<s.startX&&n.translate<=n.maxTranslate()||d>s.startX&&n.translate>=n.minTranslate())return;if(i.isTouchEvent&&t.activeElement&&c.target===t.activeElement&&v(c.target).is(i.focusableElements))return i.isMoved=!0,void(n.allowClick=!1);if(i.allowTouchCallbacks&&n.emit("touchMove",c),c.targetTouches&&c.targetTouches.length>1)return;s.currentX=d,s.currentY=p;const f=s.currentX-s.startX,h=s.currentY-s.startY;if(n.params.threshold&&Math.sqrt(f**2+h**2)<n.params.threshold)return;if(void 0===i.isScrolling){let e;n.isHorizontal()&&s.currentY===s.startY||n.isVertical()&&s.currentX===s.startX?i.isScrolling=!1:f*f+h*h>=25&&(e=180*Math.atan2(Math.abs(h),Math.abs(f))/Math.PI,i.isScrolling=n.isHorizontal()?e>r.touchAngle:90-e>r.touchAngle)}if(i.isScrolling&&n.emit("touchMoveOpposite",c),void 0===i.startMoving&&(s.currentX===s.startX&&s.currentY===s.startY||(i.startMoving=!0)),i.isScrolling)return void(i.isTouched=!1);if(!i.startMoving)return;n.allowClick=!1,!r.cssMode&&c.cancelable&&c.preventDefault(),r.touchMoveStopPropagation&&!r.nested&&c.stopPropagation(),i.isMoved||(r.loop&&!r.cssMode&&n.loopFix(),i.startTranslate=n.getTranslate(),n.setTransition(0),n.animating&&n.$wrapperEl.trigger("webkitTransitionEnd transitionend"),i.allowMomentumBounce
vendor: 1,100 bytes, line 50
50=!1,!r.grabCursor||!0!==n.allowSlideNext&&!0!==n.allowSlidePrev||n.setGrabCursor(!0),n.emit("sliderFirstMove",c)),n.emit("sliderMove",c),i.isMoved=!0;let m=n.isHorizontal()?f:h;s.diff=m,m*=r.touchRatio,o&&(m=-m),n.swipeDirection=m>0?"prev":"next",i.currentTranslate=m+i.startTranslate;let g=!0,y=r.resistanceRatio;if(r.touchReleaseOnEdges&&(y=0),m>0&&i.currentTranslate>n.minTranslate()?(g=!1,r.resistance&&(i.currentTranslate=n.minTranslate()-1+(-n.minTranslate()+i.startTranslate+m)**y)):m<0&&i.currentTranslate<n.maxTranslate()&&(g=!1,r.resistance&&(i.currentTranslate=n.maxTranslate()+1-(n.maxTranslate()-i.startTranslate-m)**y)),g&&(c.preventedByNestedSwiper=!0),!n.allowSlideNext&&"next"===n.swipeDirection&&i.currentTranslate<i.startTranslate&&(i.currentTranslate=i.startTranslate),!n.allowSlidePrev&&"prev"===n.swipeDirection&&i.currentTranslate>i.startTranslate&&(i.currentTranslate=i.startTranslate),n.allowSlidePrev||n.allowSlideNext||(i.currentTranslate=i.startTranslate),r.threshold>0){if(!(Math.abs(m)>r.threshold||i.allowThresholdMove))return void(i.currentTranslate=i.startTranslate);
vendor: 5,270 bytes, line 50
50if(!i.allowThresholdMove)return i.allowThresholdMove=!0,s.startX=s.currentX,s.startY=s.currentY,i.currentTranslate=i.startTranslate,void(s.diff=n.isHorizontal()?s.currentX-s.startX:s.currentY-s.startY)}r.followFinger&&!r.cssMode&&((r.freeMode&&r.freeMode.enabled&&n.freeMode||r.watchSlidesProgress)&&(n.updateActiveIndex(),n.updateSlidesClasses()),n.params.freeMode&&r.freeMode.enabled&&n.freeMode&&n.freeMode.onTouchMove(),n.updateProgress(i.currentTranslate),n.setTranslate(i.currentTranslate))}function R(e){const t=this,n=t.touchEventsData,{params:i,touches:r,rtlTranslate:s,slidesGrid:a,enabled:o}=t;if(!o)return;let l=e;if(l.originalEvent&&(l=l.originalEvent),n.allowTouchCallbacks&&t.emit("touchEnd",l),n.allowTouchCallbacks=!1,!n.isTouched)return n.isMoved&&i.grabCursor&&t.setGrabCursor(!1),n.isMoved=!1,void(n.startMoving=!1);i.grabCursor&&n.isMoved&&n.isTouched&&(!0===t.allowSlideNext||!0===t.allowSlidePrev)&&t.setGrabCursor(!1);const c=b(),u=c-n.touchStartTime;if(t.allowClick){const e=l.path||l.composedPath&&l.composedPath();t.updateClickedSlide(e&&e[0]||l.target),t.emit("tap click",l),u<300&&c-n.lastClickTime<300&&t.emit("doubleTap doubleClick",l)}if(n.lastClickTime=b(),g((()=>{t.destroyed||(t.allowClick=!0)})),!n.isTouched||!n.isMoved||!t.swipeDirection||0===r.diff||n.currentTranslate===n.startTranslate)return n.isTouched=!1,n.isMoved=!1,void(n.startMoving=!1);let d;if(n.isTouched=!1,n.isMoved=!1,n.startMoving=!1,d=i.followFinger?s?t.translate:-t.translate:-n.currentTranslate,i.cssMode)return;if(t.params.freeMode&&i.freeMode.enabled)return void t.freeMode.onTouchEnd({currentPos:d});let p=0,f=t.slidesSizesGrid[0];for(let e=0;e<a.length;e+=e<i.slidesPerGroupSkip?1:i.slidesPerGroup){const t=e<i.slidesPerGroupSkip-1?1:i.slidesPerGroup;void 0!==a[e+t]?d>=a[e]&&d<a[e+t]&&(p=e,f=a[e+t]-a[e]):d>=a[e]&&(p=e,f=a[a.length-1]-a[a.length-2])}let h=null,m=null;i.rewind&&(t.isBeginning?m=t.params.virtual&&t.params.virtual.enabled&&t.virtual?t.virtual.slides.length-1:t.slides.length-1:t.isEnd&&(h=0));const v=(d-a[p])/f,y=p<i.slidesPerGroupSkip-1?1:i.slidesPerGroup;if(u>i.longSwipesMs){if(!i.longSwipes)return void t.slideTo(t.activeIndex);"next"===t.swipeDirection&&(v>=i.longSwipesRatio?t.slideTo(i.rewind&&t.isEnd?h:p+y):t.slideTo(p)),"prev"===t.swipeDirection&&(v>1-i.longSwipesRatio?t.slideTo(p+y):null!==m&&v<0&&Math.abs(v)>i.longSwipesRatio?t.slideTo(m):t.slideTo(p))}else{if(!i.shortSwipes)return void t.slideTo(t.activeIndex);t.navigation&&(l.target===t.navigation.nextEl||l.target===t.navigation.prevEl)?l.target===t.navigation.nextEl?t.slideTo(p+y):t.slideTo(p):("next"===t.swipeDirection&&t.slideTo(null!==h?h:p+y),"prev"===t.swipeDirection&&t.slideTo(null!==m?m:p))}}function B(){const e=this,{params:t,el:n}=e;if(n&&0===n.offsetWidth)return;t.breakpoints&&e.setBreakpoint();const{allowSlideNext:i,allowSlidePrev:r,snapGrid:s}=e;e.allowSlideNext=!0,e.allowSlidePrev=!0,e.updateSize(),e.updateSlides(),e.updateSlidesClasses(),("auto"===t.slidesPerView||t.slidesPerView>1)&&e.isEnd&&!e.isBeginning&&!e.params.centeredSlides?e.slideTo(e.slides.length-1,0,!1,!0):e.slideTo(e.activeIndex,0,!1,!0),e.autoplay&&e.autoplay.running&&e.autoplay.paused&&e.autoplay.run(),e.allowSlidePrev=r,e.allowSlideNext=i,e.params.watchOverflow&&s!==e.snapGrid&&e.checkOverflow()}function q(e){const t=this;t.enabled&&(t.allowClick||(t.params.preventClicks&&e.preventDefault(),t.params.preventClicksPropagation&&t.animating&&(e.stopPropagation(),e.stopImmediatePropagation())))}function H(){const e=this,{wrapperEl:t,rtlTranslate:n,enabled:i}=e;if(!i)return;let r;e.previousTranslate=e.translate,e.isHorizontal()?e.translate=-t.scrollLeft:e.translate=-t.scrollTop,0===e.translate&&(e.translate=0),e.updateActiveIndex(),e.updateSlidesClasses();const s=e.maxTranslate()-e.minTranslate();r=0===s?0:(e.translate-e.minTranslate())/s,r!==e.progress&&e.updateProgress(n?-e.translate:e.translate),e.emit("setTranslate",e.translate,!1)}let F=!1;function V(){}const U=(e,t)=>{const n=a(),{params:i,touchEvents:r,el:s,wrapperEl:o,device:l,support:c}=e,u=!!i.nested,d="on"===t?"addEventListener":"removeEventListener",p=t;if(c.touch){const t=!("touchstart"!==r.start||!c.passiveListener||!i.passiveListeners)&&{passive:!0,capture:!1};s[d](r.start,e.onTouchStart,t),s[d](r.move,e.onTouchMove,c.passiveListener?{passive:!1,capture:u}:u),s[d](r.end,e.onTouchEnd,t),r.cancel&&s[d](r.cancel,e.onTouchEnd,t)}else s[d](r.start,e.onTouchStart,!1),n[d](r.move,e.onTouchMove,u),n[d](r.end,e.onTouchEnd,!1);(i.preventClicks||i.preventClicksPropagation)&&s[d]("click",e.onClick,!0),i.cssMode&&o[d]("scroll",e.onScroll),i.updateOnWindowResize?e[p](l.ios||l.android?"resize orientationchange observerUpdate":"resize observerUpdate",B,!0):e[p]("observerUpdate",B,!0)};var z={attachEvents:function(){const e=this,t=a(),{params:n,support:i}=e;e.onTouchStart=j.bind(e),e.onTouchMove=N.bind(e),e.onTouchEnd=R.bind(e),n.cssMode&&(e.onScroll=H.bind(e)),e.onClick=q.bind(e),i.touch&&!F&&(t.addEventListener("touchstart",V),F=!0),U(e,"on")},detachEvents:function(){U(this,"off")}};const W=(e,t)=>e.grid&&t.grid&&t.grid.rows>1;var G={setBreakpoint:function(){const e=this,{activeIndex:t,initialized:n,loopedSlides:i=0,params:r,$el:s}=e,a=r.breakpoints;if(!a||a&&0===Object.keys(a).length)return;
vendor: 4,698 bytes, line 50
50const o=e.getBreakpoint(a,e.params.breakpointsBase,e.el);if(!o||e.currentBreakpoint===o)return;const l=(o in a?a[o]:void 0)||e.originalParams,c=W(e,r),u=W(e,l),d=r.enabled;c&&!u?(s.removeClass(`${r.containerModifierClass}grid ${r.containerModifierClass}grid-column`),e.emitContainerClasses()):!c&&u&&(s.addClass(`${r.containerModifierClass}grid`),(l.grid.fill&&"column"===l.grid.fill||!l.grid.fill&&"column"===r.grid.fill)&&s.addClass(`${r.containerModifierClass}grid-column`),e.emitContainerClasses()),["navigation","pagination","scrollbar"].forEach((t=>{const n=r[t]&&r[t].enabled,i=l[t]&&l[t].enabled;n&&!i&&e[t].disable(),!n&&i&&e[t].enable()}));const p=l.direction&&l.direction!==r.direction,f=r.loop&&(l.slidesPerView!==r.slidesPerView||p);p&&n&&e.changeDirection(),_(e.params,l);const h=e.params.enabled;Object.assign(e,{allowTouchMove:e.params.allowTouchMove,allowSlideNext:e.params.allowSlideNext,allowSlidePrev:e.params.allowSlidePrev}),d&&!h?e.disable():!d&&h&&e.enable(),e.currentBreakpoint=o,e.emit("_beforeBreakpoint",l),f&&n&&(e.loopDestroy(),e.loopCreate(),e.updateSlides(),e.slideTo(t-i+e.loopedSlides,0,!1)),e.emit("breakpoint",l)},getBreakpoint:function(e,t="window",n){if(!e||"container"===t&&!n)return;let i=!1;const r=l(),s="window"===t?r.innerHeight:n.clientHeight,a=Object.keys(e).map((e=>{if("string"==typeof e&&0===e.indexOf("@")){const t=parseFloat(e.substr(1));return{value:s*t,point:e}}return{value:e,point:e}}));a.sort(((e,t)=>parseInt(e.value,10)-parseInt(t.value,10)));for(let e=0;e<a.length;e+=1){const{point:s,value:o}=a[e];"window"===t?r.matchMedia(`(min-width: ${o}px)`).matches&&(i=s):o<=n.clientWidth&&(i=s)}return i||"max"}};var Y={addClasses:function(){const e=this,{classNames:t,params:n,rtl:i,$el:r,device:s,support:a}=e,o=function(e,t){const n=[];return e.forEach((e=>{"object"==typeof e?Object.keys(e).forEach((i=>{e[i]&&n.push(t+i)})):"string"==typeof e&&n.push(t+e)})),n}(["initialized",n.direction,{"pointer-events":!a.touch},{"free-mode":e.params.freeMode&&n.freeMode.enabled},{autoheight:n.autoHeight},{rtl:i},{grid:n.grid&&n.grid.rows>1},{"grid-column":n.grid&&n.grid.rows>1&&"column"===n.grid.fill},{android:s.android},{ios:s.ios},{"css-mode":n.cssMode},{centered:n.cssMode&&n.centeredSlides},{"watch-progress":n.watchSlidesProgress}],n.containerModifierClass);t.push(...o),r.addClass([...t].join(" ")),e.emitContainerClasses()},removeClasses:function(){const{$el:e,classNames:t}=this;e.removeClass(t.join(" ")),this.emitContainerClasses()}};var X={init:!0,direction:"horizontal",touchEventsTarget:"wrapper",initialSlide:0,speed:300,cssMode:!1,updateOnWindowResize:!0,resizeObserver:!0,nested:!1,createElements:!1,enabled:!0,focusableElements:"input, select, option, textarea, button, video, label",width:null,height:null,preventInteractionOnTransition:!1,userAgent:null,url:null,edgeSwipeDetection:!1,edgeSwipeThreshold:20,autoHeight:!1,setWrapperSize:!1,virtualTranslate:!1,effect:"slide",breakpoints:void 0,breakpointsBase:"window",spaceBetween:0,slidesPerView:1,slidesPerGroup:1,slidesPerGroupSkip:0,slidesPerGroupAuto:!1,centeredSlides:!1,centeredSlidesBounds:!1,slidesOffsetBefore:0,slidesOffsetAfter:0,normalizeSlideIndex:!0,centerInsufficientSlides:!1,watchOverflow:!0,roundLengths:!1,touchRatio:1,touchAngle:45,simulateTouch:!0,shortSwipes:!0,longSwipes:!0,longSwipesRatio:.5,longSwipesMs:300,followFinger:!0,allowTouchMove:!0,threshold:0,touchMoveStopPropagation:!1,touchStartPreventDefault:!0,touchStartForcePreventDefault:!1,touchReleaseOnEdges:!1,uniqueNavElements:!0,resistance:!0,resistanceRatio:.85,watchSlidesProgress:!1,grabCursor:!1,preventClicks:!0,preventClicksPropagation:!0,slideToClickedSlide:!1,preloadImages:!0,updateOnImagesReady:!0,loop:!1,loopAdditionalSlides:0,loopedSlides:null,loopedSlidesLimit:!0,loopFillGroupWithBlank:!1,loopPreventsSlide:!0,rewind:!1,allowSlidePrev:!0,allowSlideNext:!0,swipeHandler:null,noSwiping:!0,noSwipingClass:"swiper-no-swiping",noSwipingSelector:null,passiveListeners:!0,maxBackfaceHiddenSlides:10,containerModifierClass:"swiper-",slideClass:"swiper-slide",slideBlankClass:"swiper-slide-invisible-blank",slideActiveClass:"swiper-slide-active",slideDuplicateActiveClass:"swiper-slide-duplicate-active",slideVisibleClass:"swiper-slide-visible",slideDuplicateClass:"swiper-slide-duplicate",slideNextClass:"swiper-slide-next",slideDuplicateNextClass:"swiper-slide-duplicate-next",slidePrevClass:"swiper-slide-prev",slideDuplicatePrevClass:"swiper-slide-duplicate-prev",wrapperClass:"swiper-wrapper",runCallbacksOnInit:!0,_emitClasses:!1};function K(e,t){return function(n={}){const i=Object.keys(n)[0],r=n[i];"object"==typeof r&&null!==r?(["navigation","pagination","scrollbar"].indexOf(i)>
vendor: 3,075 bytes, line 50
50=0&&!0===e[i]&&(e[i]={auto:!0}),i in e&&"enabled"in r?(!0===e[i]&&(e[i]={enabled:!0}),"object"!=typeof e[i]||"enabled"in e[i]||(e[i].enabled=!0),e[i]||(e[i]={enabled:!1}),_(t,n)):_(t,n)):_(t,n)}}const Z={eventsEmitter:O,update:P,translate:A,transition:{setTransition:function(e,t){const n=this;n.params.cssMode||n.$wrapperEl.transition(e),n.emit("setTransition",e,t)},transitionStart:function(e=!0,t){const n=this,{params:i}=n;i.cssMode||(i.autoHeight&&n.updateAutoHeight(),I({swiper:n,runCallbacks:e,direction:t,step:"Start"}))},transitionEnd:function(e=!0,t){const n=this,{params:i}=n;n.animating=!1,i.cssMode||(n.setTransition(0),I({swiper:n,runCallbacks:e,direction:t,step:"End"}))}},slide:D,loop:$,grabCursor:{setGrabCursor:function(e){const t=this;if(t.support.touch||!t.params.simulateTouch||t.params.watchOverflow&&t.isLocked||t.params.cssMode)return;const n="container"===t.params.touchEventsTarget?t.el:t.wrapperEl;n.style.cursor="move",n.style.cursor=e?"grabbing":"grab"},unsetGrabCursor:function(){const e=this;e.support.touch||e.params.watchOverflow&&e.isLocked||e.params.cssMode||(e["container"===e.params.touchEventsTarget?"el":"wrapperEl"].style.cursor="")}},events:z,breakpoints:G,checkOverflow:{checkOverflow:function(){const e=this,{isLocked:t,params:n}=e,{slidesOffsetBefore:i}=n;if(i){const t=e.slides.length-1,n=e.slidesGrid[t]+e.slidesSizesGrid[t]+2*i;e.isLocked=e.size>n}else e.isLocked=1===e.snapGrid.length;!0===n.allowSlideNext&&(e.allowSlideNext=!e.isLocked),!0===n.allowSlidePrev&&(e.allowSlidePrev=!e.isLocked),t&&t!==e.isLocked&&(e.isEnd=!1),t!==e.isLocked&&e.emit(e.isLocked?"lock":"unlock")}},classes:Y,images:{loadImage:function(e,t,n,i,r,s){const a=l();let o;function c(){s&&s()}v(e).parent("picture")[0]||e.complete&&r?c():t?(o=new a.Image,o.onload=c,o.onerror=c,i&&(o.sizes=i),n&&(o.srcset=n),t&&(o.src=t)):c()},preloadImages:function(){const e=this;function t(){null!=e&&e&&!e.destroyed&&(void 0!==e.imagesLoaded&&(e.imagesLoaded+=1),e.imagesLoaded===e.imagesToLoad.length&&(e.params.updateOnImagesReady&&e.update(),e.emit("imagesReady")))}e.imagesToLoad=e.$el.find("img");for(let n=0;n<e.imagesToLoad.length;n+=1){const i=e.imagesToLoad[n];e.loadImage(i,i.currentSrc||i.getAttribute("src"),i.srcset||i.getAttribute("srcset"),i.sizes||i.getAttribute("sizes"),!0,t)}}}},Q={};class J{constructor(...e){let t,n;if(1===e.length&&e[0].constructor&&"Object"===Object.prototype.toString.call(e[0]).slice(8,-1)?n=e[0]:[t,n]=e,n||(n={}),n=_({},n),t&&!n.el&&(n.el=t),n.el&&v(n.el).length>1){const e=[];return v(n.el).each((t=>{const i=_({},n,{el:t});e.push(new J(i))})),e}const i=this;i.__swiper__=!0,i.support=k(),i.device=L({userAgent:n.userAgent}),i.browser=M(),i.eventsListeners={},i.eventsAnyListeners=[],i.modules=[...i.__modules__],n.modules&&Array.isArray(n.modules)&&i.modules.push(...n.modules);const r={};i.modules.forEach((e=>{e({swiper:i,extendParams:K(n,r),on:i.on.bind(i),once:i.once.bind(i),off:i.off.bind(i),emit:i.emit.bind(i)})}));const s=_({},X,r);return i.params=_({},s,Q,n),i.originalParams=_({},i.params),i.passedParams=_({}
vendor: 4,377 bytes, line 50
50,n),i.params&&i.params.on&&Object.keys(i.params.on).forEach((e=>{i.on(e,i.params.on[e])})),i.params&&i.params.onAny&&i.onAny(i.params.onAny),i.$=v,Object.assign(i,{enabled:i.params.enabled,el:t,classNames:[],slides:v(),slidesGrid:[],snapGrid:[],slidesSizesGrid:[],isHorizontal(){return"horizontal"===i.params.direction},isVertical(){return"vertical"===i.params.direction},activeIndex:0,realIndex:0,isBeginning:!0,isEnd:!1,translate:0,previousTranslate:0,progress:0,velocity:0,animating:!1,allowSlideNext:i.params.allowSlideNext,allowSlidePrev:i.params.allowSlidePrev,touchEvents:function(){const e=["touchstart","touchmove","touchend","touchcancel"],t=["pointerdown","pointermove","pointerup"];return i.touchEventsTouch={start:e[0],move:e[1],end:e[2],cancel:e[3]},i.touchEventsDesktop={start:t[0],move:t[1],end:t[2]},i.support.touch||!i.params.simulateTouch?i.touchEventsTouch:i.touchEventsDesktop}(),touchEventsData:{isTouched:void 0,isMoved:void 0,allowTouchCallbacks:void 0,touchStartTime:void 0,isScrolling:void 0,currentTranslate:void 0,startTranslate:void 0,allowThresholdMove:void 0,focusableElements:i.params.focusableElements,lastClickTime:b(),clickTimeout:void 0,velocities:[],allowMomentumBounce:void 0,isTouchEvent:void 0,startMoving:void 0},allowClick:!0,allowTouchMove:i.params.allowTouchMove,touches:{startX:0,startY:0,currentX:0,currentY:0,diff:0},imagesToLoad:[],imagesLoaded:0}),i.emit("_swiper"),i.params.init&&i.init(),i}enable(){const e=this;e.enabled||(e.enabled=!0,e.params.grabCursor&&e.setGrabCursor(),e.emit("enable"))}disable(){const e=this;e.enabled&&(e.enabled=!1,e.params.grabCursor&&e.unsetGrabCursor(),e.emit("disable"))}setProgress(e,t){const n=this;e=Math.min(Math.max(e,0),1);const i=n.minTranslate(),r=(n.maxTranslate()-i)*e+i;n.translateTo(r,void 0===t?0:t),n.updateActiveIndex(),n.updateSlidesClasses()}emitContainerClasses(){const e=this;if(!e.params._emitClasses||!e.el)return;const t=e.el.className.split(" ").filter((t=>0===t.indexOf("swiper")||0===t.indexOf(e.params.containerModifierClass)));e.emit("_containerClasses",t.join(" "))}getSlideClasses(e){const t=this;return t.destroyed?"":e.className.split(" ").filter((e=>0===e.indexOf("swiper-slide")||0===e.indexOf(t.params.slideClass))).join(" ")}emitSlidesClasses(){const e=this;if(!e.params._emitClasses||!e.el)return;const t=[];e.slides.each((n=>{const i=e.getSlideClasses(n);t.push({slideEl:n,classNames:i}),e.emit("_slideClass",n,i)})),e.emit("_slideClasses",t)}slidesPerViewDynamic(e="current",t=!1){const{params:n,slides:i,slidesGrid:r,slidesSizesGrid:s,size:a,activeIndex:o}=this;let l=1;if(n.centeredSlides){let e,t=i[o].swiperSlideSize;for(let n=o+1;n<i.length;n+=1)i[n]&&!e&&(t+=i[n].swiperSlideSize,l+=1,t>a&&(e=!0));for(let n=o-1;n>=0;n-=1)i[n]&&!e&&(t+=i[n].swiperSlideSize,l+=1,t>a&&(e=!0))}else if("current"===e)for(let e=o+1;e<i.length;e+=1){(t?r[e]+s[e]-r[o]<a:r[e]-r[o]<a)&&(l+=1)}else for(let e=o-1;e>=0;e-=1){r[o]-r[e]<a&&(l+=1)}return l}update(){const e=this;if(!e||e.destroyed)return;const{snapGrid:t,params:n}=e;function i(){const t=e.rtlTranslate?-1*e.translate:e.translate,n=Math.min(Math.max(t,e.maxTranslate()),e.minTranslate());e.setTranslate(n),e.updateActiveIndex(),e.updateSlidesClasses()}let r;n.breakpoints&&e.setBreakpoint(),e.updateSize(),e.updateSlides(),e.updateProgress(),e.updateSlidesClasses(),e.params.freeMode&&e.params.freeMode.enabled?(i(),e.params.autoHeight&&e.updateAutoHeight()):(r=("auto"===e.params.slidesPerView||e.params.slidesPerView>1)&&e.isEnd&&!e.params.centeredSlides?e.slideTo(e.slides.length-1,0,!1,!0):e.slideTo(e.activeIndex,0,!1,!0),r||i()),n.watchOverflow&&t!==e.snapGrid&&e.checkOverflow(),e.emit("update")}changeDirection(e,t=!0){const n=this,i=n.params.direction;return e||(e="horizontal"===i?"vertical":"horizontal"),e===i||"horizontal"!==e&&"vertical"!==e||(n.$el.removeClass(`${n.params.containerModifierClass}${i}`).addClass(`${n.params.containerModifierClass}${e}`),n.emitContainerClasses(),n.params.direction=e,n.slides.each((t=>{"vertical"===e?t.style.width="":t.style.height=""})),n.emit("changeDirection"),t&&n.update()),n}changeLanguageDirection(e){const t=this;t.rtl&&"rtl"===e||!t.rtl&&"ltr"===e||(t.rtl="rtl"===e,t.rtlTranslate="horizontal"===t.params.direction&&t.rtl,t.rtl?(t.$el.addClass(`${t.params.containerModifierClass}rtl`),t.el.dir="rtl"):(t.$el.removeClass(`${t.params.containerModifierClass}
50rtl`),t.el.dir="ltr"),t.update())}mount(e){const t=this;if(t.mounted)return!0;const n=v(e||t.params.el);if(!(e=n[0]))return!1;e.swiper=t;const i=()=>`.${(t.params.wrapperClass||"").trim().split(" ").join(".")}`;let r=(()=>{if(e&&e.shadowRoot&&e.shadowRoot.querySelector){const t=v(e.shadowRoot.querySelector(i()));return t.children=e=>n.children(e),t}return n.children?n.children(i()):v(n).children(i())})();if(0===r.length&&t.params.createElements){const e=a().createElement("div");r=v(e),e.className=t.params.wrapperClass,n.append(e),n.children(`.${t.params.slideClass}`).each((e=>{r.append(e)}))}return Object.assign(t,{$el:n,el:e,$wrapperEl:r,wrapperEl:r[0],mounted:!0,rtl:"rtl"===e.dir.toLowerCase()||"rtl"===n.css("direction"),rtlTranslate:"horizontal"===t.params.direction&&("rtl"===e.dir.toLowerCase()||"rtl"===n.css("direction")),wrongRTL:"-webkit-box"===r.css("display")}),!0}init(e){const t=this;if(t.initialized)return t;return!1===t.mount(e)||(t.emit("beforeInit"),t.params.breakpoints&&t.setBreakpoint(),t.addClasses(),t.params.loop&&t.loopCreate(),t.updateSize(),t.updateSlides(),t.params.watchOverflow&&t.checkOverflow(),t.params.grabCursor&&t.enabled&&t.setGrabCursor(),t.params.preloadImages&&t.preloadImages(),t.params.loop?t.slideTo(t.params.initialSlide+t.loopedSlides,0,t.params.runCallbacksOnInit,!1,!0):t.slideTo(t.params.initialSlide,0,t.params.runCallbacksOnInit,!1,!0),t.attachEvents(),t.initialized=!0,t.emit("init"),t.emit("afterInit")),t}destroy(e=!0,t=!0){const n=this,{params:i,$el:r,$wrapperEl:s,slides:a}=n;return void 0===n.params||n.destroyed||(n.emit("beforeDestroy"),n.initialized=!1,n.detachEvents(),i.loop&&n.loopDestroy(),t&&(n.removeClasses(),r.removeAttr("style"),s.removeAttr("style"),a&&a.length&&a.removeClass([i.slideVisibleClass,i.slideActiveClass,i.slideNextClass,i.slidePrevClass].join(" ")).removeAttr("style").removeAttr("data-swiper-slide-index")),n.emit("destroy"),Object.keys(n.eventsListeners).forEach((e=>{n.off(e)})),!1!==e&&(n.$el[0].swiper=null,function(e){const t=e;Object.keys(t).forEach((e=>{try{t[e]=null}catch(e){}try{delete t[e]}catch(e){}}))}(n)),n.destroyed=!0),null}static extendDefaults(e){_(Q,e)}static get extendedDefaults(){return Q}static get defaults(){return X}static installModule(e){J.prototype.__modules__||(J.prototype.__modules__=[]);const t=J.prototype.__modules__;"function"==typeof e&&t.indexOf(e)<0&&t.push(e)}static use(e){return Array.isArray(e)?(e.forEach((e=>J.installModule(e))),J):(J.installModule(e),J)}}Object.keys(Z).forEach((e=>{Object.keys(Z[e]).forEach((t=>{J.prototype[t]=Z[e][t]}))})),J.use([function({swiper:e,on:t,emit:n}){const i=l();let r=null,s=null;const a=()=>{e&&!e.destroyed&&e.initialized&&(n("beforeResize"),n("resize"))},o=()=>{e&&!e.destroyed&&e.initialized&&n("orientationchange")};t("init",(()=>{e.params.resizeObserver&&void 0!==i.ResizeObserver?e&&!e.destroyed&&e.initialized&&(r=new ResizeObserver((t=>{s=i.requestAnimationFrame((()=>{const{width:n,height:i}=e;let r=n,s=i;t.forEach((({contentBoxSize:t,contentRect:n,target:i})=>{i&&i!==e.el||(r=n?n.width:(t[0]||t).inlineSize,s=n?n.height:(t[0]||t).blockSize)})),r===n&&s===i||a()}))})),r.observe(e.el)):(i.addEventListener("resize",a),i.addEventListener("orientationchange",o))})),t("destroy",(()=>{s&&i.cancelAnimationFrame(s),r&&r.unobserve&&e.el&&(r.unobserve(e.el),r=null),i.removeEventListener("resize",a),i.removeEventListener("orientationchange",o)}))},function({swiper:e,extendParams:t,on:n,emit:i}){const r=[],s=l(),a=(e,t={})=>{const n=new(s.MutationObserver||s.WebkitMutationObserver)((e=>{if(1===e.length)return void i("observerUpdate",e[0]);const t=function(){i("observerUpdate",e[0])};s.requestAnimationFrame?s.requestAnimationFrame(t):s.setTimeout(t,0)}));n.observe(e,{attributes:void 0===t.attributes||t.attributes,childList:void 0===t.childList||t.childList,characterData:void 0===t.characterData||t.characterData}),r.push(n)};t({observer:!1,observeParents:!1,observeSlideChildren:!1}),n("init",(()=>{if(e.params.observer){if(e.params.observeParents){const t=e.$el.parents();for(let e=0;e<t.length;e+=1)a(t[e])}a(e.$el[0],{childList:e.params.observeSlideChildren}),a(e.$wrapperEl[0],{attributes:!1})}})),n("destroy",(()=>{r.forEach((e=>{e.disconnect()})),r.splice(0,r.length)}))}]);var ee=J;function te(e,t,n,i){const r=a();
vendor: 20,065 bytes, line 50
50return e.params.createElements&&Object.keys(i).forEach((s=>{if(!n[s]&&!0===n.auto){let a=e.$el.children(`.${i[s]}`)[0];a||(a=r.createElement("div"),a.className=i[s],e.$el.append(a)),n[s]=a,t[s]=a}})),n}function ne({swiper:e,extendParams:t,on:n,emit:i}){function r(t){let n;return t&&(n=v(t),e.params.uniqueNavElements&&"string"==typeof t&&n.length>1&&1===e.$el.find(t).length&&(n=e.$el.find(t))),n}function s(t,n){const i=e.params.navigation;t&&t.length>0&&(t[n?"addClass":"removeClass"](i.disabledClass),t[0]&&"BUTTON"===t[0].tagName&&(t[0].disabled=n),e.params.watchOverflow&&e.enabled&&t[e.isLocked?"addClass":"removeClass"](i.lockClass))}function a(){if(e.params.loop)return;const{$nextEl:t,$prevEl:n}=e.navigation;s(n,e.isBeginning&&!e.params.rewind),s(t,e.isEnd&&!e.params.rewind)}function o(t){t.preventDefault(),(!e.isBeginning||e.params.loop||e.params.rewind)&&(e.slidePrev(),i("navigationPrev"))}function l(t){t.preventDefault(),(!e.isEnd||e.params.loop||e.params.rewind)&&(e.slideNext(),i("navigationNext"))}function c(){const t=e.params.navigation;if(e.params.navigation=te(e,e.originalParams.navigation,e.params.navigation,{nextEl:"swiper-button-next",prevEl:"swiper-button-prev"}),!t.nextEl&&!t.prevEl)return;const n=r(t.nextEl),i=r(t.prevEl);n&&n.length>0&&n.on("click",l),i&&i.length>0&&i.on("click",o),Object.assign(e.navigation,{$nextEl:n,nextEl:n&&n[0],$prevEl:i,prevEl:i&&i[0]}),e.enabled||(n&&n.addClass(t.lockClass),i&&i.addClass(t.lockClass))}function u(){const{$nextEl:t,$prevEl:n}=e.navigation;t&&t.length&&(t.off("click",l),t.removeClass(e.params.navigation.disabledClass)),n&&n.length&&(n.off("click",o),n.removeClass(e.params.navigation.disabledClass))}t({navigation:{nextEl:null,prevEl:null,hideOnClick:!1,disabledClass:"swiper-button-disabled",hiddenClass:"swiper-button-hidden",lockClass:"swiper-button-lock",navigationDisabledClass:"swiper-navigation-disabled"}}),e.navigation={nextEl:null,$nextEl:null,prevEl:null,$prevEl:null},n("init",(()=>{!1===e.params.navigation.enabled?d():(c(),a())})),n("toEdge fromEdge lock unlock",(()=>{a()})),n("destroy",(()=>{u()})),n("enable disable",(()=>{const{$nextEl:t,$prevEl:n}=e.navigation;t&&t[e.enabled?"removeClass":"addClass"](e.params.navigation.lockClass),n&&n[e.enabled?"removeClass":"addClass"](e.params.navigation.lockClass)})),n("click",((t,n)=>{const{$nextEl:r,$prevEl:s}=e.navigation,a=n.target;if(e.params.navigation.hideOnClick&&!v(a).is(s)&&!v(a).is(r)){if(e.pagination&&e.params.pagination&&e.params.pagination.clickable&&(e.pagination.el===a||e.pagination.el.contains(a)))return;let t;r?t=r.hasClass(e.params.navigation.hiddenClass):s&&(t=s.hasClass(e.params.navigation.hiddenClass)),i(!0===t?"navigationShow":"navigationHide"),r&&r.toggleClass(e.params.navigation.hiddenClass),s&&s.toggleClass(e.params.navigation.hiddenClass)}}));const d=()=>{e.$el.addClass(e.params.navigation.navigationDisabledClass),u()};Object.assign(e.navigation,{enable:()=>{e.$el.removeClass(e.params.navigation.navigationDisabledClass),c(),a()},disable:d,update:a,init:c,destroy:u})}function ie(e=""){return`.${e.trim().replace(/([\.:!\/])/g,"\\$1").replace(/ /g,".")}`}function re({swiper:e,extendParams:t,on:n,emit:i}){const r="swiper-pagination";let s;t({pagination:{el:null,bulletElement:"span",clickable:!1,hideOnClick:!1,renderBullet:null,renderProgressbar:null,renderFraction:null,renderCustom:null,progressbarOpposite:!1,type:"bullets",dynamicBullets:!1,dynamicMainBullets:1,formatFractionCurrent:e=>e,formatFractionTotal:e=>e,bulletClass:`${r}-bullet`,bulletActiveClass:`${r}-bullet-active`,modifierClass:`${r}-`,currentClass:`${r}-current`,totalClass:`${r}-total`,hiddenClass:`${r}-hidden`,progressbarFillClass:`${r}-progressbar-fill`,progressbarOppositeClass:`${r}-progressbar-opposite`,clickableClass:`${r}-clickable`,lockClass:`${r}-lock`,horizontalClass:`${r}-horizontal`,verticalClass:`${r}-vertical`,paginationDisabledClass:`${r}-disabled`}}),e.pagination={el:null,$el:null,bullets:[]};let a=0;function o(){return!e.params.pagination.el||!e.pagination.el||!e.pagination.$el||0===e.pagination.$el.length}function l(t,n){const{bulletActiveClass:i}=e.params.pagination;t[n]().addClass(`${i}-${n}`)[n]().addClass(`${i}-${n}-${n}`)}function c(){const t=e.rtl,n=e.params.pagination;if(o())return;const r=e.virtual&&e.params.virtual.enabled?e.virtual.slides.length:e.slides.length,c=e.pagination.$el;let u;const d=e.params.loop?Math.ceil((r-2*e.loopedSlides)/e.params.slidesPerGroup):e.snapGrid.length;if(e.params.loop?(u=Math.ceil((e.activeIndex-e.loopedSlides)/e.params.slidesPerGroup),u>r-1-2*e.loopedSlides&&(u-=r-2*e.loopedSlides),u>d-1&&(u-=d),u<0&&"bullets"!==e.params.paginationType&&(u=d+u)):u=void 0!==e.snapIndex?e.snapIndex:e.activeIndex||0,"bullets"===n.type&&e.pagination.bullets&&e.pagination.bullets.length>0){const i=e.pagination.bullets;let r,o,d;if(n.dynamicBullets&&(s=i.eq(0)[e.isHorizontal()?"outerWidth":"outerHeight"](!0),c.css(e.isHorizontal()?"width":"height",s*(n.dynamicMainBullets+4)+"px"),n.dynamicMainBullets>1&&void 0!==e.previousIndex&&(a+=u-(e.previousIndex-e.loopedSlides||0),a>n.dynamicMainBullets-1?a=n.dynamicMainBullets-1:a<0&&(a=0)),r=Math.max(u-a,0),o=r+(Math.min(i.length,n.dynamicMainBullets)-1),d=(o+r)/2),i.removeClass(["","-next","-next-next","-prev","-prev-prev","-main"].map((e=>`${n.bulletActiveClass}${e}`)).join(" ")),c.length>1)i.each((e=>{const t=v(e),i=t.index();i===u&&t.addClass(n.bulletActiveClass),n.dynamicBullets&&(i>=r&&i<=o&&t.addClass(`${n.bulletActiveClass}-main`),i===r&&l(t,"prev"),i===o&&l(t,"next"))}));else{const t=i.eq(u),s=t.index();if(t.addClass(n.bulletActiveClass),n.dynamicBullets){const t=i.eq(r),a=i.eq(o);for(let e=r;e<=o;e+=1)i.eq(e).addClass(`${n.bulletActiveClass}-main`);if(e.params.loop)if(s>=i.length){for(let e=n.dynamicMainBullets;e>=0;e-=1)i.eq(i.length-e).addClass(`${n.bulletActiveClass}-main`);i.eq(i.length-n.dynamicMainBullets-1).addClass(`${n.bulletActiveClass}-prev`)}else l(t,"prev"),l(a,"next");else l(t,"prev"),l(a,"next")}}if(n.dynamicBullets){const r=Math.min(i.length,n.dynamicMainBullets+4),a=(s*r-s)/2-d*s,o=t?"right":"left";i.css(e.isHorizontal()?o:"top",`${a}px`)}}if("fraction"===n.type&&(c.find(ie(n.currentClass)).text(n.formatFractionCurrent(u+1)),c.find(ie(n.totalClass)).text(n.formatFractionTotal(d))),"progressbar"===n.type){let t;t=n.progressbarOpposite?e.isHorizontal()?"vertical":"horizontal":e.isHorizontal()?"horizontal":"vertical";const i=(u+1)/d;let r=1,s=1;"horizontal"===t?r=i:s=i,c.find(ie(n.progressbarFillClass)).transform(`translate3d(0,0,0) scaleX(${r}) scaleY(${s})`).transition(e.params.speed)}"custom"===n.type&&n.renderCustom?(c.html(n.renderCustom(e,u+1,d)),i("paginationRender",c[0])):i("paginationUpdate",c[0]),e.params.watchOverflow&&e.enabled&&c[e.isLocked?"addClass":"removeClass"](n.lockClass)}function u(){const t=e.params.pagination;if(o())return;const n=e.virtual&&e.params.virtual.enabled?e.virtual.slides.length:e.slides.length,r=e.pagination.$el;let s="";if("bullets"===t.type){let i=e.params.loop?Math.ceil((n-2*e.loopedSlides)/e.params.slidesPerGroup):e.snapGrid.length;e.params.freeMode&&e.params.freeMode.enabled&&!e.params.loop&&i>n&&(i=n);for(let n=0;n<i;n+=1)t.renderBullet?s+=t.renderBullet.call(e,n,t.bulletClass):s+=`<${t.bulletElement} class="${t.bulletClass}"></${t.bulletElement}>`;r.html(s),e.pagination.bullets=r.find(ie(t.bulletClass))}"fraction"===t.type&&(s=t.renderFraction?t.renderFraction.call(e,t.currentClass,t.totalClass):`<span class="${t.currentClass}"></span> / <span class="${t.totalClass}"></span>`,r.html(s)),"progressbar"===t.type&&(s=t.renderProgressbar?t.renderProgressbar.call(e,t.progressbarFillClass):`<span class="${t.progressbarFillClass}"></span>`,r.html(s)),"custom"!==t.type&&i("paginationRender",e.pagination.$el[0])}function d(){e.params.pagination=te(e,e.originalParams.pagination,e.params.pagination,{el:"swiper-pagination"});const t=e.params.pagination;if(!t.el)return;let n=v(t.el);0!==n.length&&(e.params.uniqueNavElements&&"string"==typeof t.el&&n.length>1&&(n=e.$el.find(t.el),n.length>1&&(n=n.filter((t=>v(t).parents(".swiper")[0]===e.el)))),"bullets"===t.type&&t.clickable&&n.addClass(t.clickableClass),n.addClass(t.modifierClass+t.type),n.addClass(e.isHorizontal()?t.horizontalClass:t.verticalClass),"bullets"===t.type&&t.dynamicBullets&&(n.addClass(`${t.modifierClass}${t.type}-dynamic`),a=0,t.dynamicMainBullets<1&&(t.dynamicMainBullets=1)),"progressbar"===t.type&&t.progressbarOpposite&&n.addClass(t.progressbarOppositeClass),t.clickable&&n.on("click",ie(t.bulletClass),(function(t){t.preventDefault();let n=v(this).index()*e.params.slidesPerGroup;e.params.loop&&(n+=e.loopedSlides),e.slideTo(n)})),Object.assign(e.pagination,{$el:n,el:n[0]}),e.enabled||n.addClass(t.lockClass))}function p(){const t=e.params.pagination;if(o())return;const n=e.pagination.$el;n.removeClass(t.hiddenClass),n.removeClass(t.modifierClass+t.type),n.removeClass(e.isHorizontal()?t.horizontalClass:t.verticalClass),e.pagination.bullets&&e.pagination.bullets.removeClass&&e.pagination.bullets.removeClass(t.bulletActiveClass),t.clickable&&n.off("click",ie(t.bulletClass))}n("init",(()=>{!1===e.params.pagination.enabled?f():(d(),u(),c())})),n("activeIndexChange",(()=>{(e.params.loop||void 0===e.snapIndex)&&c()})),n("snapIndexChange",(()=>{e.params.loop||c()})),n("slidesLengthChange",(()=>{e.params.loop&&(u(),c())})),n("snapGridLengthChange",(()=>{e.params.loop||(u(),c())})),n("destroy",(()=>{p()})),n("enable disable",(()=>{const{$el:t}=e.pagination;t&&t[e.enabled?"removeClass":"addClass"](e.params.pagination.lockClass)})),n("lock unlock",(()=>{c()})),n("click",((t,n)=>{const r=n.target,{$el:s}=e.pagination;if(e.params.pagination.el&&e.params.pagination.hideOnClick&&s&&s.length>0&&!v(r).hasClass(e.params.pagination.bulletClass)){if(e.navigation&&(e.navigation.nextEl&&r===e.navigation.nextEl||e.navigation.prevEl&&r===e.navigation.prevEl))return;const t=s.hasClass(e.params.pagination.hiddenClass);i(!0===t?"paginationShow":"paginationHide"),s.toggleClass(e.params.pagination.hiddenClass)}}));const f=()=>{e.$el.addClass(e.params.pagination.paginationDisabledClass),e.pagination.$el&&e.pagination.$el.addClass(e.params.pagination.paginationDisabledClass),p()};Object.assign(e.pagination,{enable:()=>{e.$el.removeClass(e.params.pagination.paginationDisabledClass),e.pagination.$el&&e.pagination.$el.removeClass(e.params.pagination.paginationDisabledClass),d(),u(),c()},disable:f,render:u,update:c,init:d,destroy:p})}function se({swiper:e,extendParams:t,on:n}){t({a11y:{enabled:!0,notificationClass:"swiper-notification",prevSlideMessage:"Previous slide",nextSlideMessage:"Next slide",firstSlideMessage:"This is the first slide",lastSlideMessage:"This is the last slide",paginationBulletMessage:"Go to slide {{index}}",slideLabelMessage:"{{index}} / {{slidesLength}}",containerMessage:null,containerRoleDescriptionMessage:null,itemRoleDescriptionMessage:null,slideRole:"group",id:null}}),e.a11y={clicked:!1};let i=null;function r(e){const t=i;0!==t.length&&(t.html(""),t.html(e))}function s(e){e.attr("tabIndex","0")}function a(e){e.attr("tabIndex","-1")}function o(e,t){e.attr("role",t)}function l(e,t){e.attr("aria-roledescription",t)}function c(e,t){e.attr("aria-label",t)}function u(e){e.attr("aria-disabled",!0)}function d(e){e.attr("aria-disabled",!1)}function p(t){if(13!==t.keyCode&&32!==t.keyCode)return;const n=e.params.a11y,i=v(t.target);e.navigation&&e.navigation.$nextEl&&i.is(e.navigation.$nextEl)&&(e.isEnd&&!e.params.loop||e.slideNext(),e.isEnd?r(n.lastSlideMessage):r(n.nextSlideMessage)),e.navigation&&e.navigation.$prevEl&&i.is(e.navigation.$prevEl)&&(e.isBeginning&&!e.params.loop||e.slidePrev(),e.isBeginning?r(n.firstSlideMessage):r(n.prevSlideMessage)),e.pagination&&i.is(ie(e.params.pagination.bulletClass))&&i[0].click()}function f(){return e.pagination&&e.pagination.bullets&&e.pagination.bullets.length}function h(){return f()&&e.params.pagination.clickable}const m=(e,t,n)=>{s(e),"BUTTON"!==e[0].tagName&&(o(e,"button"),e.on("keydown",p)),c(e,n),function(e,t){e.attr("aria-controls",t)}(e,t)},g=()=>{e.a11y.clicked=!0},b=()=>{requestAnimationFrame((()=>{requestAnimationFrame((()=>{e.a11y.clicked=!1}))}))},y=t=>{if(e.a11y.clicked)return;const n=t.target.closest(`.${e.params.slideClass}`);if(!n||!e.slides.includes(n))return;const i=e.slides.indexOf(n)===e.activeIndex,r=e.params.watchSlidesProgress&&e.visibleSlides&&e.visibleSlides.includes(n);i||r||(e.isHorizontal()?e.el.scrollLeft=0:e.el.scrollTop=0,e.slideTo(e.slides.indexOf(n),0))},w=()=>{const t=e.params.a11y;t.itemRoleDescriptionMessage&&l(v(e.slides),t.itemRoleDescriptionMessage),t.slideRole&&o(v(e.slides),t.slideRole);const n=e.params.loop?e.slides.filter((t=>!t.classList.contains(e.params.slideDuplicateClass))).length:e.slides.length;t.slideLabelMessage&&e.slides.each(((i,r)=>{const s=v(i),a=e.params.loop?parseInt(s.attr("data-swiper-slide-index"),10):r;c(s,t.slideLabelMessage.replace(/\{\{index\}\}/,a+1).replace(/\{\{slidesLength\}\}/,n))}))},_=()=>{const t=e.params.a11y;e.$el.append(i);const n=e.$el;t.containerRoleDescriptionMessage&&l(n,t.containerRoleDescriptionMessage),t.containerMessage&&c(n,t.containerMessage);const r=e.$wrapperEl,s=t.id||r.attr("id")||`swiper-wrapper-${function(e=16){return"x".repeat(e).replace(/x/g,(()=>Math.round(16*Math.random()).toString(16)))}(16)}`,a=e.params.autoplay&&e.params.autoplay.enabled?"off":"polite";var o;let u,d;o=s,r.attr("id",o),function(e,t){e.attr("aria-live",t)}(r,a),w(),e.navigation&&e.navigation.$nextEl&&(u=e.navigation.$nextEl),e.navigation&&e.navigation.$prevEl&&(d=e.navigation.$prevEl),u&&u.length&&m(u,s,t.nextSlideMessage),d&&d.length&&m(d,s,t.prevSlideMessage),h()&&e.pagination.$el.on("keydown",ie(e.params.pagination.bulletClass),p),e.$el.on("focus",y,!0),e.$el.on("pointerdown",g,!0),e.$el.on("pointerup",b,!0)};n("beforeInit",(()=>{i=v(`<span class="${e.params.a11y.notificationClass}" aria-live="assertive" aria-atomic="true"></span>`)})),n("afterInit",(()=>{e.params.a11y.enabled&&_()})),n("slidesLengthChange snapGridLengthChange slidesGridLengthChange",(()=>{e.params.a11y.enabled&&w()})),n("fromEdge toEdge afterInit lock unlock",(()=>{e.params.a11y.enabled&&function(){if(e.params.loop||e.params.rewind||!e.navigation)return;const{$nextEl:t,$prevEl:n}=e.navigation;n&&n.length>0&&(e.isBeginning?(u(n),a(n)):(d(n),s(n))),t&&t.length>0&&(e.isEnd?(u(t),a(t)):(d(t),s(t)))}()})),n("paginationUpdate",(()=>{e.params.a11y.enabled&&function(){const t=e.params.a11y;f()&&e.pagination.bullets.each((n=>{const i=v(n);e.params.pagination.clickable&&(s(i),e.params.pagination.renderBullet||(o(i,"button"),c(i,t.paginationBulletMessage.replace(/\{\{index\}\}/,i.index()+1)))),i.is(`.${e.params.pagination.bulletActiveClass}`)?i.attr("aria-current","true"):i.removeAttr("aria-current")}))}()})),n("destroy",(()=>{e.params.a11y.enabled&&function(){let t,n;i&&i.length>0&&i.remove(),e.navigation&&e.navigation.$nextEl&&(t=e.navigation.$nextEl),e.navigation&&e.navigation.$prevEl&&(n=e.navigation.$prevEl),t&&t.off("keydown",p),n&&n.off("keydown",p),h()&&e.pagination.$el.off("keydown",ie(e.params.pagination.bulletClass),p),e.$el.off("focus",y,!0),e.$el.off("pointerdown",g,!0),e.$el.off("pointerup",b,!0)}()}))}function ae({swiper:e,extendParams:t,on:n,emit:i}){let r;function s(){if(!e.size)return e.autoplay.running=!1,void(e.autoplay.paused=!1);const t=e.slides.eq(e.activeIndex);let n=e.params.autoplay.delay;t.attr("data-swiper-autoplay")&&(n=t.attr("data-swiper-autoplay")||e.params.autoplay.delay),clearTimeout(r),r=g((()=>{let t;e.params.autoplay.reverseDirection?e.params.loop?(e.loopFix(),t=e.slidePrev(e.params.speed,!0,!0),i("autoplay")):e.isBeginning?e.params.autoplay.stopOnLastSlide?l():(t=e.slideTo(e.slides.length-1,e.params.speed,!0,!0),i("autoplay")):(t=e.slidePrev(e.params.speed,!0,!0),i("autoplay")):e.params.loop?(e.loopFix(),t=e.slideNext(e.params.speed,!0,!0),i("autoplay")):e.isEnd?e.params.autoplay.stopOnLastSlide?l():(t=e.slideTo(0,e.params.speed,!0,!0),i("autoplay")):(t=e.slideNext(e.params.speed,!0,!0),i("autoplay")),(e.params.cssMode&&e.autoplay.running||!1===t)&&s()}),n)}function o(){return void 0===r&&(!e.autoplay.running&&(e.autoplay.running=!0,i("autoplayStart"),s(),!0))}function l(){return!!e.autoplay.running&&(void 0!==r&&(r&&(clearTimeout(r),r=void 0),e.autoplay.running=!1,i("autoplayStop"),!0))}function c(t){e.autoplay.running&&(e.autoplay.paused||(r&&clearTimeout(r),e.autoplay.paused=!0,0!==t&&e.params.autoplay.waitForTransition?["transitionend","webkitTransitionEnd"].forEach((t=>{e.$wrapperEl[0].addEventListener(t,d)})):(e.autoplay.paused=!1,s())))}function u(){const t=a();"hidden"===t.visibilityState&&e.autoplay.running&&c(),"visible"===t.visibilityState&&e.autoplay.paused&&(s(),e.autoplay.paused=!1)}function d(t){e&&!e.destroyed&&e.$wrapperEl&&t.target===e.$wrapperEl[0]&&(["transitionend","webkitTransitionEnd"].forEach((t=>{e.$wrapperEl[0].removeEventListener(t,d)})),e.autoplay.paused=!1,e.autoplay.running?s():l())}function p(){e.params.autoplay.disableOnInteraction?l():(i("autoplayPause"),c()),["transitionend","webkitTransitionEnd"].forEach((t=>{e.$wrapperEl[0].removeEventListener(t,d)}))}function f(){e.params.autoplay.disableOnInteraction||(e.autoplay.paused=!1,i("autoplayResume"),s())}e.autoplay={running:!1,paused:!1},t({autoplay:{enabled:!1,delay:3e3,waitForTransition:!0,disableOnInteraction:!0,stopOnLastSlide:!1,reverseDirection:!1,pauseOnMouseEnter:!1}}),n("init",(()=>{if(e.params.autoplay.enabled){o();a().addEventListener("visibilitychange",u),e.params.autoplay.pauseOnMouseEnter&&(e.$el.on("mouseenter",p),e.$el.on("mouseleave",f))}})),n("beforeTransitionStart",((t,n,i)=>{e.autoplay.running&&(i||!e.params.autoplay.disableOnInteraction?e.autoplay.pause(n):l())})),n("sliderFirstMove",(()=>{e.autoplay.running&&(e.params.autoplay.disableOnInteraction?l():c())})),n("touchEnd",(()=>{e.params.cssMode&&e.autoplay.paused&&!e.params.autoplay.disableOnInteraction&&s()})),n("destroy",(()=>{e.$el.off("mouseenter",p),e.$el.off("mouseleave",f),e.autoplay.running&&l();a().removeEventListener("visibilitychange",u)})),Object.assign(e.autoplay,{pause:c,run:s,start:o,stop:l})}function oe(e,t){return e.transformEl?t.find(e.transformEl).css({"backface-visibility":"hidden","-webkit-backface-visibility":"hidden"}):t}function le({swiper:e,extendParams:t,on:n}){t({fadeEffect:{crossFade:!1,transformEl:null}});!function(e){const{effect:t,swiper:n,on:i,setTranslate:r,setTransition:s,overwriteParams:a,perspective:o,recreateShadows:l,getEffectParams:c}=e;let u;i("beforeInit",(()=>{if(n.params.effect!==t)return;n.classNames.push(`${n.params.containerModifierClass}${t}`),o&&o()&&n.classNames.push(`${n.params.containerModifierClass}3d`);const e=a?a():{};Object.assign(n.params,e),Object.assign(n.originalParams,e)})),i("setTranslate",(()=>{n.params.effect===t&&r()})),i("setTransition",((e,i)=>{n.params.effect===t&&s(i)})),i("transitionEnd",(()=>{if(n.params.effect===t&&l){if(!c||!c().slideShadows)return;n.slides.each((e=>{n.$(e).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").remove()})),l()}})),i("virtualUpdate",(()=>{n.params.effect===t&&(n.slides.length||(u=!0),requestAnimationFrame((()=>{u&&n.slides&&n.slides.length&&(r(),u=!1)})))}))}({effect:"fade",swiper:e,on:n,setTranslate:()=>{const{slides:t}=e,n=e.params.fadeEffect;for(let i=0;i<t.length;i+=1){const t=e.slides.eq(i);let r=-t[0].swiperSlideOffset;e.params.virtualTranslate||(r-=e.translate);let s=0;e.isHorizontal()||(s=r,r=0);const a=e.params.fadeEffect.crossFade?Math.max(1-Math.abs(t[0].progress),0):1+Math.min(Math.max(t[0].progress,-1),0);oe(n,t).css({opacity:a}).transform(`translate3d(${r}px, ${s}px, 0px)`)}},setTransition:t=>{const{transformEl:n}=e.params.fadeEffect;(n?e.slides.find(n):e.slides).transition(t),function({swiper:e,duration:t,transformEl:n,allSlides:i}){const{slides:r,activeIndex:s,$wrapperEl:a}=e;if(e.params.virtualTranslate&&0!==t){let t,o=!1;t=i?n?r.find(n):r:n?r.eq(s).find(n):r.eq(s),t.transitionEnd((()=>
50{if(o)return;if(!e||e.destroyed)return;o=!0,e.animating=!1;const t=["webkitTransitionEnd","transitionend"];for(let e=0;e<t.length;e+=1)a.trigger(t[e])}))}}({swiper:e,duration:t,transformEl:n,allSlides:!0})},overwriteParams:()=>({slidesPerView:1,slidesPerGroup:1,watchSlidesProgress:!0,spaceBetween:0,virtualTranslate:!e.params.cssMode})})}}}]); 51//# sourceMappingURL=vendor.3c52d57792c62a2e456b.js.map
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.