@orangesk/orange-design-system 2.0.0-beta.39 → 2.0.0-beta.40
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/components/AnchorNavigation/style.css +1 -1
- package/build/components/AnchorNavigation/style.css.map +1 -1
- package/build/components/Divider/style.css +1 -1
- package/build/components/Divider/style.css.map +1 -1
- package/build/components/PromoBanner/style.css +1 -1
- package/build/components/PromoBanner/style.css.map +1 -1
- package/build/components/index.js +1 -1
- package/build/components/index.js.map +1 -1
- package/build/components/tsconfig.tsbuildinfo +1 -1
- package/build/components/types/src/components/AnchorNavigation/AnchorNavigation.static.d.ts +33 -0
- package/build/components/types/src/components/Carousel/Carousel.static.d.ts +4 -0
- package/build/components/types/src/components/CarouselHero/CarouselHero.static.d.ts +3 -0
- package/build/components/types/src/components/CarouselPromotions/CarouselPromotions.static.d.ts +5 -0
- package/build/lib/base.css +1 -1
- package/build/lib/base.css.map +1 -1
- package/build/lib/components.css +1 -1
- package/build/lib/components.css.map +1 -1
- package/build/lib/scripts.js +1 -1
- package/build/lib/scripts.js.map +1 -1
- package/build/lib/style.css +1 -1
- package/build/lib/style.css.map +1 -1
- package/build/search-index.json +2 -2
- package/package.json +4 -4
- package/src/components/AnchorNavigation/AnchorNavigation.static.ts +337 -83
- package/src/components/AnchorNavigation/AnchorNavigation.tsx +2 -3
- package/src/components/AnchorNavigation/styles/mixins.scss +100 -9
- package/src/components/AnchorNavigation/tests/AnchorNavigation.unit.test.jsx +319 -1
- package/src/components/Carousel/Carousel.static.ts +48 -1
- package/src/components/CarouselHero/CarouselHero.static.ts +30 -0
- package/src/components/CarouselPromotions/CarouselPromotions.static.ts +62 -3
- package/src/components/Divider/styles/mixins.scss +5 -3
- package/src/components/PromoBanner/styles/mixins.scss +2 -2
- package/src/components/PromoBanner/styles/style.scss +4 -2
- package/src/styles/typography/mixins.scss +1 -1
package/build/lib/scripts.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
function e(e,t){return t.forEach(function(t){t&&"string"!=typeof t&&!Array.isArray(t)&&Object.keys(t).forEach(function(n){if("default"!==n&&!(n in e)){var i=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,i.get?i:{enumerable:!0,get:function(){return t[n]}})}})}),Object.freeze(e)}function t(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=Array(t);n<t;n++)i[n]=e[n];return i}function n(e,t,n,i,r,o,s){try{var a=e[o](s),l=a.value}catch(e){return void n(e)}a.done?t(l):Promise.resolve(l).then(i,r)}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(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,h(i.key),i)}}function o(e,t,n){return t&&r(e.prototype,t),n&&r(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function s(e,t,n){return(t=h(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function a(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 l(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?a(Object(n),!0).forEach(function(t){s(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function c(){var e,t,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",r=n.toStringTag||"@@toStringTag";function o(n,i,r,o){var l=i&&i.prototype instanceof a?i:a,c=Object.create(l.prototype);return u(c,"_invoke",function(n,i,r){var o,a,l,c=0,u=r||[],d=!1,p={p:0,n:0,v:e,a:h,f:h.bind(e,4),d:function(t,n){return o=t,a=0,l=e,p.n=n,s}};function h(n,i){for(a=n,l=i,t=0;!d&&c&&!r&&t<u.length;t++){var r,o=u[t],h=p.p,f=o[2];n>3?(r=f===i)&&(l=o[(a=o[4])?5:(a=3,3)],o[4]=o[5]=e):o[0]<=h&&((r=n<2&&h<o[1])?(a=0,p.v=i,p.n=o[1]):h<f&&(r=n<3||o[0]>i||i>f)&&(o[4]=n,o[5]=i,p.n=f,a=0))}if(r||n>1)return s;throw d=!0,i}return function(r,u,f){if(c>1)throw TypeError("Generator is already running");for(d&&1===u&&h(u,f),a=u,l=f;(t=a<2?e:l)||!d;){o||(a?a<3?(a>1&&(p.n=-1),h(a,l)):p.n=l:p.v=l);try{if(c=2,o){if(a||(r="next"),t=o[r]){if(!(t=t.call(o,l)))throw TypeError("iterator result is not an object");if(!t.done)return t;l=t.value,a<2&&(a=0)}else 1===a&&(t=o.return)&&t.call(o),a<2&&(l=TypeError("The iterator does not provide a '"+r+"' method"),a=1);o=e}else if((t=(d=p.n<0)?l:n.call(i,p))!==s)break}catch(t){o=e,a=1,l=t}finally{c=1}}return{value:t,done:d}}}(n,r,o),!0),c}var s={};function a(){}function l(){}function d(){}t=Object.getPrototypeOf;var p=[][i]?t(t([][i]())):(u(t={},i,function(){return this}),t),h=d.prototype=a.prototype=Object.create(p);function f(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,d):(e.__proto__=d,u(e,r,"GeneratorFunction")),e.prototype=Object.create(h),e}return l.prototype=d,u(h,"constructor",d),u(d,"constructor",l),l.displayName="GeneratorFunction",u(d,r,"GeneratorFunction"),u(h),u(h,r,"Generator"),u(h,i,function(){return this}),u(h,"toString",function(){return"[object Generator]"}),(c=function(){return{w:o,m:f}})()}function u(e,t,n,i){var r=Object.defineProperty;try{r({},"",{})}catch(e){r=0}u=function(e,t,n,i){function o(t,n){u(e,t,function(e){return this._invoke(t,n,e)})}t?r?r(e,t,{value:n,enumerable:!i,configurable:!i,writable:!i}):e[t]=n:(o("next",0),o("throw",1),o("return",2))},u(e,t,n,i)}function d(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i,r,o,s,a=[],l=!0,c=!1;try{if(o=(n=n.call(e)).next,0===t);else for(;!(l=(i=o.call(n)).done)&&(a.push(i.value),a.length!==t);l=!0);}catch(e){c=!0,r=e}finally{try{if(!l&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(c)throw r}}return a}}(e,t)||m(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function p(e){return function(e){if(Array.isArray(e))return t(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||m(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){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t);if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==typeof t?t:t+""}function f(e){return f="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},f(e)}function m(e,n){if(e){if("string"==typeof e)return t(e,n);var i={}.toString.call(e).slice(8,-1);return"Object"===i&&e.constructor&&(i=e.constructor.name),"Map"===i||"Set"===i?Array.from(e):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?t(e,n):void 0}}var v={TAB:["Tab"],ESC:["Esc","Escape"],ARROWLEFT:["Left","ArrowLeft"],ARROWUP:["Up","ArrowUp"],ARROWRIGHT:["Right","ArrowRight"],ARROWDOWN:["Down","ArrowDown"]},g=function(){return o(function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{direction:"horizontal"};i(this,e),this.elems=t,this.config=n,this.isActive=!1,this.onKeydown=this.onKeydown.bind(this)},[{key:"init",value:function(){document.addEventListener("keydown",this.onKeydown),this.isActive=!0}},{key:"destroy",value:function(){document.removeEventListener("keydown",this.onKeydown),this.isActive=!1}},{key:"update",value:function(e){this.elems=e}},{key:"onKeydown",value:function(e){var t=this.elems.indexOf(document.activeElement);(v.ARROWUP.includes(e.key)||v.ARROWDOWN.includes(e.key))&&"horizontal"===this.config.direction||(v.ARROWLEFT.includes(e.key)||v.ARROWRIGHT.includes(e.key))&&"vertical"===this.config.direction||((v.ARROWDOWN.includes(e.key)||v.ARROWRIGHT.includes(e.key))&&(e.preventDefault(),t>=0&&t<this.elems.length-1?this.elems[t+1].focus():this.elems[0].focus()),(v.ARROWUP.includes(e.key)||v.ARROWLEFT.includes(e.key))&&(e.preventDefault(),t>=1?this.elems[t-1].focus():this.elems[this.elems.length-1].focus()),v.TAB.includes(e.key)&&this.destroy())}}])}(),y={buttonSelector:"[data-accordion-toggle]"},b=function(){return o(function e(t,n){return i(this,e),this.element=t,this.config=l(l({},y),n),this.onFocus=this.onFocus.bind(this),this.onClick=this.onClick.bind(this),this.element.ODS_Accordion=this,this.init(),this},[{key:"onFocus",value:function(e){this.rovingTabindex.isActive||this.rovingTabindex.init();var t=e.currentTarget;window.location.hash.substring(1)===t.getAttribute("id")&&"false"===t.getAttribute("aria-expanded")&&t.click()}},{key:"toggleAccordionItem",value:function(e){var t=e.getAttribute("aria-controls"),n=t?this.element.querySelector("#".concat(t)):null;if(n){var i=!("true"===e.getAttribute("aria-expanded"));e.setAttribute("aria-expanded",String(i)),i?(n.removeAttribute("hidden"),this.scrollTriggerIntoModalView(e)):n.setAttribute("hidden","")}}},{key:"scrollTriggerIntoModalView",value:function(e){var t=this,n=e.closest(".modal__dialog");if(n){var i=function(){var i=n.getBoundingClientRect(),r=e.getBoundingClientRect(),o=t.getStickyHeaderOffset(n),s=r.top-i.top+n.scrollTop-o-8;n.scrollTo({top:Math.max(0,s),behavior:"smooth"})};"function"!=typeof window.requestAnimationFrame?setTimeout(i,0):window.requestAnimationFrame(i)}}},{key:"getStickyHeaderOffset",value:function(e){var t=e.querySelector(".modal__header");if(!t)return 0;var n=e.getBoundingClientRect(),i=t.getBoundingClientRect();return Math.max(0,i.bottom-n.top)}},{key:"init",value:function(){var e=this;this.buttons=Array.from(this.element.querySelectorAll(this.config.buttonSelector)),this.rovingTabindex?this.rovingTabindex.update(this.buttons):this.rovingTabindex=new g(this.buttons,{direction:"vertical"}),this.buttons.forEach(function(t){t.addEventListener("focus",e.onFocus),t.addEventListener("click",e.onClick)})}},{key:"onClick",value:function(e){var t=e.currentTarget;this.toggleAccordionItem(t)}},{key:"destroy",value:function(){var e=this;this.rovingTabindex.destroy(),this.buttons.forEach(function(t){t.removeEventListener("focus",e.onFocus),t.removeEventListener("click",e.onClick)})}},{key:"update",value:function(){this.destroy(),this.init()}}],[{key:"getInstance",value:function(e){return e&&e.ODS_Accordion?e.ODS_Accordion:null}}])}(),w=function(){return o(function e(t){return i(this,e),s(this,"isAutoScrolling",!1),s(this,"scrollTimeout",null),s(this,"navLinks",null),s(this,"sections",[]),s(this,"lastActiveIndex",0),this.element=t,this.megamenuElement=null,this.resizeObserver=null,this.isAutoScrolling=!1,this.currentPath=window.location.pathname,this.scrollHandler=this.updateStickyPosition.bind(this),this.scrollSpyHandler=this.handleScrollSpy.bind(this),this.scrollEndHandler=this.handleScrollEnd.bind(this),this.resizeHandler=this.initScrollSpy.bind(this),this.element.ODS_AnchorNavigation=this,this.init(),this},[{key:"findMegamenuElement",value:function(){return document.querySelector("[data-megamenu]")}},{key:"updateStickyPosition",value:function(){this.megamenuElement&&(this.element.style.top="".concat(this.megamenuElement.offsetHeight,"px"))}},{key:"setupMegamenuObserver",value:function(){this.megamenuElement=this.findMegamenuElement(),this.megamenuElement?(this.updateStickyPosition(),window.addEventListener("scroll",this.scrollHandler,{passive:!0}),this.resizeObserver=new ResizeObserver(this.updateStickyPosition.bind(this)),this.resizeObserver.observe(this.megamenuElement)):this.element.style.top="0px"}},{key:"setupScrollSpy",value:function(){var e=this;document.documentElement.style.setProperty("--extra-scroll-margin",this.element.offsetHeight+"px"),this.navLinks=this.element.querySelectorAll(".anchor-navigation__item"),this.sections=Array.from(this.navLinks||[]).map(function(e){return e.getAttribute("href")}).filter(function(e){return null==e?void 0:e.includes("#")}).map(function(e){return document.getElementById(e.split("#")[1])}).filter(Boolean),this.navLinks.forEach(function(t){t.addEventListener("click",function(n){n.preventDefault();var i=t.getAttribute("href");if(i&&i.includes("#")){var r=i.split("#")[1],o=document.getElementById(r);if(o){e.isAutoScrolling=!0,t.blur();var s=e.megamenuElement?e.megamenuElement.offsetHeight:0,a=e.element.offsetHeight,l=o.offsetTop-s-a;window.scrollTo({top:Math.max(0,l),behavior:"smooth"}),window.history.pushState(null,"","#".concat(r)),e.initScrollSpy(r)}}})}),window.addEventListener("scroll",this.scrollSpyHandler,{passive:!0});try{window.addEventListener("scrollend",this.scrollEndHandler)}catch(n){var t;window.addEventListener("scroll",function(){clearTimeout(t),t=setTimeout(function(){e.handleScrollEnd()},150)},{passive:!0})}window.addEventListener("resize",this.resizeHandler),this.initScrollSpy()}},{key:"initScrollSpy",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;if(this.navLinks&&this.sections.length){var t,n=-1;if(this.navLinks.forEach(function(e){return e.classList.remove("is-active")}),e)(t=document.getElementById(e)||void 0)&&(n=this.sections.findIndex(function(t){return t.id===e}));else for(var i=(this.megamenuElement?this.megamenuElement.offsetHeight:0)+this.element.offsetHeight,r=window.scrollY+i+50,o=0;o<this.sections.length;o++){var s=this.sections[o],a=s.getBoundingClientRect(),l=a.top,c=a.height,u=l+window.scrollY;if(r>=u&&r<u+c){t=s,n=o;break}}if(t||(window.scrollY<=100?(n=0,t=this.sections[0]):(n=this.lastActiveIndex,t=this.sections[n])),n>=0&&(this.lastActiveIndex=n),t){var d=t.getAttribute("id"),p=this.element.querySelector('.anchor-navigation__item[href="#'.concat(d,'"]'));if(p||(p=this.element.querySelector('.anchor-navigation__item[href="'.concat(this.currentPath,"#").concat(d,'"]'))),p||(p=Array.from(this.navLinks).find(function(e){var t=e.getAttribute("href");return t&&t.endsWith("#".concat(d))})),p){p.classList.add("is-active");var h=this.element.querySelector(".anchor-navigation__content-left");if(h){var f=p.offsetLeft-this.element.clientWidth/2+p.clientWidth/2,m=p.offsetLeft,v=m+p.clientWidth,g=h.scrollLeft,y=g+h.clientWidth,b=m>=g&&v<=y,w=window.innerWidth<768||!b?"auto":"smooth";h.scrollTo({left:Math.max(0,f),behavior:w})}}}}}},{key:"handleScrollSpy",value:function(){var e=this;this.isAutoScrolling?(this.scrollTimeout&&clearTimeout(this.scrollTimeout),this.scrollTimeout=setTimeout(function(){e.isAutoScrolling=!1,e.scrollTimeout=null,e.initScrollSpy()},150)):this.initScrollSpy()}},{key:"handleScrollEnd",value:function(){this.scrollTimeout&&(clearTimeout(this.scrollTimeout),this.scrollTimeout=null),this.isAutoScrolling=!1,this.initScrollSpy()}},{key:"init",value:function(){this.setupMegamenuObserver(),this.setupScrollSpy()}},{key:"destroy",value:function(){this.scrollTimeout&&(clearTimeout(this.scrollTimeout),this.scrollTimeout=null),window.removeEventListener("scroll",this.scrollHandler),window.removeEventListener("scroll",this.scrollSpyHandler),window.removeEventListener("scrollend",this.scrollEndHandler),window.removeEventListener("resize",this.resizeHandler),this.resizeObserver&&(this.resizeObserver.disconnect(),this.resizeObserver=null),this.element.style.top="",this.megamenuElement=null,this.navLinks=null,this.sections=[],this.lastActiveIndex=0,this.element.ODS_AnchorNavigation=null}},{key:"update",value:function(){this.scrollTimeout&&(clearTimeout(this.scrollTimeout),this.scrollTimeout=null),window.removeEventListener("scroll",this.scrollHandler),window.removeEventListener("scroll",this.scrollSpyHandler),window.removeEventListener("scrollend",this.scrollEndHandler),window.removeEventListener("resize",this.resizeHandler),this.resizeObserver&&(this.resizeObserver.disconnect(),this.resizeObserver=null),this.megamenuElement=null,this.navLinks=null,this.sections=[],this.lastActiveIndex=0,this.init()}}],[{key:"getInstance",value:function(e){return e&&e.ODS_AnchorNavigation?e.ODS_AnchorNavigation:null}}])}(),_={controlSelector:".block-action__control",indicatorSelector:".block-action__indicator",activeClass:"is-indicating"},S=function(){return o(function e(t,n){return i(this,e),s(this,"controlElement",null),s(this,"indicatorElements",[]),this.element=t,this.config=l(l({},_),n),this.highlightIndicators=this.highlightIndicators.bind(this),this.unhighlightIndicators=this.unhighlightIndicators.bind(this),this.element.ODS_BlockAction=this,this.init(),this},[{key:"init",value:function(){this.controlElement=this.element.querySelector(this.config.controlSelector),this.indicatorElements=Array.from(this.element.querySelectorAll(this.config.indicatorSelector)),!this.controlElement||this.indicatorElements.length<1||(this.controlElement.addEventListener("mouseenter",this.highlightIndicators),this.controlElement.addEventListener("mouseleave",this.unhighlightIndicators),this.controlElement.addEventListener("focus",this.highlightIndicators),this.controlElement.addEventListener("blur",this.unhighlightIndicators))}},{key:"highlightIndicators",value:function(){var e=this;this.indicatorElements.forEach(function(t){return t.classList.add(e.config.activeClass)})}},{key:"unhighlightIndicators",value:function(){var e=this;this.indicatorElements.forEach(function(t){return t.classList.remove(e.config.activeClass)})}},{key:"destroy",value:function(){var e=this;this.indicatorElements.forEach(function(t){return t.classList.remove(e.config.activeClass)}),this.controlElement&&(this.controlElement.removeEventListener("mouseenter",this.highlightIndicators),this.controlElement.removeEventListener("mouseleave",this.unhighlightIndicators),this.controlElement.removeEventListener("focus",this.highlightIndicators),this.controlElement.removeEventListener("blur",this.unhighlightIndicators)),this.controlElement=null,this.indicatorElements=[]}},{key:"update",value:function(){this.destroy(),this.init()}}],[{key:"getInstance",value:function(e){return e&&e.ODS_BlockAction?e.ODS_BlockAction:null}}])}();function E(e){return null!==e&&"object"==typeof e&&"constructor"in e&&e.constructor===Object}function x(e={},t={}){const n=["__proto__","constructor","prototype"];Object.keys(t).filter(e=>n.indexOf(e)<0).forEach(n=>{void 0===e[n]?e[n]=t[n]:E(t[n])&&E(e[n])&&Object.keys(t[n]).length>0&&x(e[n],t[n])})}const k={body:{},addEventListener(){},removeEventListener(){},activeElement:{blur(){},nodeName:""},querySelector:()=>null,querySelectorAll:()=>[],getElementById:()=>null,createEvent:()=>({initEvent(){}}),createElement:()=>({children:[],childNodes:[],style:{},setAttribute(){},getElementsByTagName:()=>[]}),createElementNS:()=>({}),importNode:()=>null,location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""}};function C(){const e="undefined"!=typeof document?document:{};return x(e,k),e}const T={document:k,navigator:{userAgent:""},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""},history:{replaceState(){},pushState(){},go(){},back(){}},CustomEvent:function(){return this},addEventListener(){},removeEventListener(){},getComputedStyle:()=>({getPropertyValue:()=>""}),Image(){},Date(){},screen:{},setTimeout(){},clearTimeout(){},matchMedia:()=>({}),requestAnimationFrame:e=>"undefined"==typeof setTimeout?(e(),null):setTimeout(e,0),cancelAnimationFrame(e){"undefined"!=typeof setTimeout&&clearTimeout(e)}};function A(){const e="undefined"!=typeof window?window:{};return x(e,T),e}function O(e=""){return e.trim().split(" ").filter(e=>!!e.trim())}function D(e,t=0){return setTimeout(e,t)}function M(){return Date.now()}function L(e){return"object"==typeof e&&null!==e&&e.constructor&&"Object"===Object.prototype.toString.call(e).slice(8,-1)}function P(e){return"undefined"!=typeof window&&void 0!==window.HTMLElement?e instanceof HTMLElement:e&&(1===e.nodeType||11===e.nodeType)}function I(...e){const t=Object(e[0]);for(let n=1;n<e.length;n+=1){const i=e[n];if(null!=i&&!P(i)){const e=Object.keys(Object(i)).filter(e=>"__proto__"!==e&&"constructor"!==e&&"prototype"!==e);for(let n=0,r=e.length;n<r;n+=1){const r=e[n],o=Object.getOwnPropertyDescriptor(i,r);void 0!==o&&o.enumerable&&(L(t[r])&&L(i[r])?i[r].__swiper__?t[r]=i[r]:I(t[r],i[r]):!L(t[r])&&L(i[r])?(t[r]={},i[r].__swiper__?t[r]=i[r]:I(t[r],i[r])):t[r]=i[r])}}}return t}function N(e,t,n){e.style.setProperty(t,n)}function R({swiper:e,targetPosition:t,side:n}){const i=A(),r=-e.translate;let o,s=null;const a=e.params.speed;e.wrapperEl.style.scrollSnapType="none",i.cancelAnimationFrame(e.cssModeFrameID);const l=t>r?"next":"prev",c=(e,t)=>"next"===l&&e>=t||"prev"===l&&e<=t,u=()=>{o=(new Date).getTime(),null===s&&(s=o);const l=Math.max(Math.min((o-s)/a,1),0),d=.5-Math.cos(l*Math.PI)/2;let p=r+d*(t-r);if(c(p,t)&&(p=t),e.wrapperEl.scrollTo({[n]:p}),c(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(u)};u()}function B(e,t=""){const n=A(),i=[...e.children];return n.HTMLSlotElement&&e instanceof HTMLSlotElement&&i.push(...e.assignedElements()),t?i.filter(e=>e.matches(t)):i}function z(e){try{return}catch(e){}}function H(e,t=[]){const n=document.createElement(e);return n.classList.add(...Array.isArray(t)?t:O(t)),n}function F(e){const t=A(),n=C(),i=e.getBoundingClientRect(),r=n.body,o=e.clientTop||r.clientTop||0,s=e.clientLeft||r.clientLeft||0,a=e===t?t.scrollY:e.scrollTop,l=e===t?t.scrollX:e.scrollLeft;return{top:i.top+a-o,left:i.left+l-s}}function V(e,t){return A().getComputedStyle(e,null).getPropertyValue(t)}function j(e){let t,n=e;if(n){for(t=0;null!==(n=n.previousSibling);)1===n.nodeType&&(t+=1);return t}}function q(e,t){const n=[];let i=e.parentElement;for(;i;)t?i.matches(t)&&n.push(i):n.push(i),i=i.parentElement;return n}function U(e,t,n){const i=A();return e["width"===t?"offsetWidth":"offsetHeight"]+parseFloat(i.getComputedStyle(e,null).getPropertyValue("width"===t?"margin-right":"margin-top"))+parseFloat(i.getComputedStyle(e,null).getPropertyValue("width"===t?"margin-left":"margin-bottom"))}function $(e){return(Array.isArray(e)?e:[e]).filter(e=>!!e)}function G(e,t=""){"undefined"!=typeof trustedTypes?e.innerHTML=trustedTypes.createPolicy("html",{createHTML:e=>e}).createHTML(t):e.innerHTML=t}let W,Y,X;function K(){return W||(W=function(){const e=A(),t=C();return{smoothScroll:t.documentElement&&t.documentElement.style&&"scrollBehavior"in t.documentElement.style,touch:!!("ontouchstart"in e||e.DocumentTouch&&t instanceof e.DocumentTouch)}}()),W}function J(e={}){return Y||(Y=function({userAgent:e}={}){const t=K(),n=A(),i=n.navigator.platform,r=e||n.navigator.userAgent,o={ios:!1,android:!1},s=n.screen.width,a=n.screen.height,l=r.match(/(Android);?[\s\/]+([\d.]+)?/);let c=r.match(/(iPad)(?!\1).*OS\s([\d_]+)/);const u=r.match(/(iPod)(.*OS\s([\d_]+))?/),d=!c&&r.match(/(iPhone\sOS|iOS)\s([\d_]+)/),p="Win32"===i;let h="MacIntel"===i;return!c&&h&&t.touch&&["1024x1366","1366x1024","834x1194","1194x834","834x1112","1112x834","768x1024","1024x768","820x1180","1180x820","810x1080","1080x810"].indexOf(`${s}x${a}`)>=0&&(c=r.match(/(Version)\/([\d.]+)/),c||(c=[0,1,"13_0_0"]),h=!1),l&&!p&&(o.os="android",o.android=!0),(c||d||u)&&(o.os="ios",o.ios=!0),o}(e)),Y}function Q(){return X||(X=function(){const e=A(),t=J();let n=!1;function i(){const t=e.navigator.userAgent.toLowerCase();return t.indexOf("safari")>=0&&t.indexOf("chrome")<0&&t.indexOf("android")<0}if(i()){const t=String(e.navigator.userAgent);if(t.includes("Version/")){const[e,i]=t.split("Version/")[1].split(" ")[0].split(".").map(e=>Number(e));n=e<16||16===e&&i<2}}const r=/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(e.navigator.userAgent),o=i();return{isSafari:n||o,needPerspectiveFix:n,need3dFix:o||r&&t.ios,isWebView:r}}()),X}var Z={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;return"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),(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}};const ee=(e,t,n)=>{t&&!e.classList.contains(n)?e.classList.add(n):!t&&e.classList.contains(n)&&e.classList.remove(n)},te=(e,t,n)=>{t&&!e.classList.contains(n)?e.classList.add(n):!t&&e.classList.contains(n)&&e.classList.remove(n)},ne=(e,t)=>{if(!e||e.destroyed||!e.params)return;const n=t.closest(e.isElement?"swiper-slide":`.${e.params.slideClass}`);if(n){let t=n.querySelector(`.${e.params.lazyPreloaderClass}`);!t&&e.isElement&&(n.shadowRoot?t=n.shadowRoot.querySelector(`.${e.params.lazyPreloaderClass}`):requestAnimationFrame(()=>{n.shadowRoot&&(t=n.shadowRoot.querySelector(`.${e.params.lazyPreloaderClass}`),t&&!t.lazyPreloaderManaged&&t.remove())})),t&&!t.lazyPreloaderManaged&&t.remove()}},ie=(e,t)=>{if(!e.slides[t])return;const n=e.slides[t].querySelector('[loading="lazy"]');n&&n.removeAttribute("loading")},re=e=>{if(!e||e.destroyed||!e.params)return;let t=e.params.lazyPreloadPrevNext;const n=e.slides.length;if(!n||!t||t<0)return;t=Math.min(t,n);const i="auto"===e.params.slidesPerView?e.slidesPerViewDynamic():Math.ceil(e.params.slidesPerView),r=e.activeIndex;if(e.params.grid&&e.params.grid.rows>1){const n=r,o=[n-t];return o.push(...Array.from({length:t}).map((e,t)=>n+i+t)),void e.slides.forEach((t,n)=>{o.includes(t.column)&&ie(e,n)})}const o=r+i-1;if(e.params.rewind||e.params.loop)for(let i=r-t;i<=o+t;i+=1){const t=(i%n+n)%n;(t<r||t>o)&&ie(e,t)}else for(let i=Math.max(r-t,0);i<=Math.min(o+t,n-1);i+=1)i!==r&&(i>o||i<r)&&ie(e,i)};var oe={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.clientWidth,n=void 0!==e.params.height&&null!==e.params.height?e.params.height:i.clientHeight,0===t&&e.isHorizontal()||0===n&&e.isVertical()||(t=t-parseInt(V(i,"padding-left")||0,10)-parseInt(V(i,"padding-right")||0,10),n=n-parseInt(V(i,"padding-top")||0,10)-parseInt(V(i,"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,n){return parseFloat(t.getPropertyValue(e.getDirectionLabel(n))||0)}const n=e.params,{wrapperEl:i,slidesEl:r,rtlTranslate:o,wrongRTL:s}=e,a=e.virtual&&n.virtual.enabled,l=a?e.virtual.slides.length:e.slides.length,c=B(r,`.${e.params.slideClass}, swiper-slide`),u=a?e.virtual.slides.length:c.length;let d=[];const p=[],h=[];let f=n.slidesOffsetBefore;"function"==typeof f&&(f=n.slidesOffsetBefore.call(e));let m=n.slidesOffsetAfter;"function"==typeof m&&(m=n.slidesOffsetAfter.call(e));const v=e.snapGrid.length,g=e.slidesGrid.length,y=e.size-f-m;let b=n.spaceBetween,w=-f,_=0,S=0;if(void 0===y)return;"string"==typeof b&&b.indexOf("%")>=0?b=parseFloat(b.replace("%",""))/100*y:"string"==typeof b&&(b=parseFloat(b)),e.virtualSize=-b-f-m,c.forEach(e=>{o?e.style.marginLeft="":e.style.marginRight="",e.style.marginBottom="",e.style.marginTop=""}),n.centeredSlides&&n.cssMode&&(N(i,"--swiper-centered-offset-before",""),N(i,"--swiper-centered-offset-after","")),n.cssMode&&(N(i,"--swiper-slides-offset-before",`${f}px`),N(i,"--swiper-slides-offset-after",`${m}px`));const E=n.grid&&n.grid.rows>1&&e.grid;let x;E?e.grid.initSlides(c):e.grid&&e.grid.unsetSlides();const k="auto"===n.slidesPerView&&n.breakpoints&&Object.keys(n.breakpoints).filter(e=>void 0!==n.breakpoints[e].slidesPerView).length>0;for(let i=0;i<u;i+=1){x=0;const r=c[i];if(!r||(E&&e.grid.updateSlide(i,r,c),"none"!==V(r,"display"))){if(a&&"auto"===n.slidesPerView)n.virtual.slidesPerViewAutoSlideSize&&(x=n.virtual.slidesPerViewAutoSlideSize),x&&r&&(n.roundLengths&&(x=Math.floor(x)),r.style[e.getDirectionLabel("width")]=`${x}px`);else if("auto"===n.slidesPerView){k&&(r.style[e.getDirectionLabel("width")]="");const i=getComputedStyle(r),o=r.style.transform,s=r.style.webkitTransform;if(o&&(r.style.transform="none"),s&&(r.style.webkitTransform="none"),n.roundLengths)x=e.isHorizontal()?U(r,"width"):U(r,"height");else{const e=t(i,"width"),n=t(i,"padding-left"),o=t(i,"padding-right"),s=t(i,"margin-left"),a=t(i,"margin-right"),l=i.getPropertyValue("box-sizing");if(l&&"border-box"===l)x=e+s+a;else{const{clientWidth:t,offsetWidth:i}=r;x=e+n+o+s+a+(i-t)}}o&&(r.style.transform=o),s&&(r.style.webkitTransform=s),n.roundLengths&&(x=Math.floor(x))}else x=(y-(n.slidesPerView-1)*b)/n.slidesPerView,n.roundLengths&&(x=Math.floor(x)),r&&(r.style[e.getDirectionLabel("width")]=`${x}px`);r&&(r.swiperSlideSize=x),h.push(x),n.centeredSlides?(w=w+x/2+_/2+b,0===_&&0!==i&&(w=w-y/2-b),0===i&&(w=w-y/2-b),Math.abs(w)<.001&&(w=0),n.roundLengths&&(w=Math.floor(w)),S%n.slidesPerGroup===0&&d.push(w),p.push(w)):(n.roundLengths&&(w=Math.floor(w)),(S-Math.min(e.params.slidesPerGroupSkip,S))%e.params.slidesPerGroup===0&&d.push(w),p.push(w),w=w+x+b),e.virtualSize+=x+b,_=x,S+=1}}if(e.virtualSize=Math.max(e.virtualSize,y)+m,o&&s&&("slide"===n.effect||"coverflow"===n.effect)&&(i.style.width=`${e.virtualSize+b}px`),n.setWrapperSize&&(i.style[e.getDirectionLabel("width")]=`${e.virtualSize+b}px`),E&&e.grid.updateWrapperSize(x,d),!n.centeredSlides){const t="auto"!==n.slidesPerView&&n.slidesPerView%1!=0,i=n.snapToSlideEdge&&!n.loop&&("auto"===n.slidesPerView||t);let r=d.length;if(i){let e;if("auto"===n.slidesPerView){e=1;let t=0;for(let n=h.length-1;n>=0&&(t+=h[n]+(n<h.length-1?b:0),t<=y);n-=1)e=h.length-n}else e=Math.floor(n.slidesPerView);r=Math.max(u-e,0)}const o=[];for(let t=0;t<d.length;t+=1){let s=d[t];n.roundLengths&&(s=Math.floor(s)),i?t<=r&&o.push(s):d[t]<=e.virtualSize-y&&o.push(s)}d=o,Math.floor(e.virtualSize-y)-Math.floor(d[d.length-1])>1&&(i||d.push(e.virtualSize-y))}if(a&&n.loop){const t=h[0]+b;if(n.slidesPerGroup>1){const i=Math.ceil((e.virtual.slidesBefore+e.virtual.slidesAfter)/n.slidesPerGroup),r=t*n.slidesPerGroup;for(let e=0;e<i;e+=1)d.push(d[d.length-1]+r)}for(let i=0;i<e.virtual.slidesBefore+e.virtual.slidesAfter;i+=1)1===n.slidesPerGroup&&d.push(d[d.length-1]+t),p.push(p[p.length-1]+t),e.virtualSize+=t}if(0===d.length&&(d=[0]),0!==b){const t=e.isHorizontal()&&o?"marginLeft":e.getDirectionLabel("marginRight");c.filter((e,t)=>!(n.cssMode&&!n.loop)||t!==c.length-1).forEach(e=>{e.style[t]=`${b}px`})}if(n.centeredSlides&&n.centeredSlidesBounds){let e=0;h.forEach(t=>{e+=t+(b||0)}),e-=b;const t=e>y?e-y:0;d=d.map(e=>e<=0?-f:e>t?t+m:e)}if(n.centerInsufficientSlides){let e=0;if(h.forEach(t=>{e+=t+(b||0)}),e-=b,e<y){const t=(y-e)/2;d.forEach((e,n)=>{d[n]=e-t}),p.forEach((e,n)=>{p[n]=e+t})}}if(Object.assign(e,{slides:c,snapGrid:d,slidesGrid:p,slidesSizesGrid:h}),n.centeredSlides&&n.cssMode&&!n.centeredSlidesBounds){N(i,"--swiper-centered-offset-before",-d[0]+"px"),N(i,"--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(u!==l&&e.emit("slidesLengthChange"),d.length!==v&&(e.params.watchOverflow&&e.checkOverflow(),e.emit("snapGridLengthChange")),p.length!==g&&e.emit("slidesGridLengthChange"),n.watchSlidesProgress&&e.updateSlidesOffset(),e.emit("slidesUpdated"),!(a||n.cssMode||"slide"!==n.effect&&"fade"!==n.effect)){const t=`${n.containerModifierClass}backface-hidden`,i=e.el.classList.contains(t);u<=n.maxBackfaceHiddenSlides?i||e.el.classList.add(t):i&&e.el.classList.remove(t)}},updateAutoHeight:function(e){const t=this,n=[],i=t.virtual&&t.params.virtual.enabled;let r,o=0;"number"==typeof e?t.setTransition(e):!0===e&&t.setTransition(t.params.speed);const s=e=>i?t.slides[t.getSlideIndexByData(e)]:t.slides[e];if("auto"!==t.params.slidesPerView&&t.params.slidesPerView>1)if(t.params.centeredSlides)(t.visibleSlides||[]).forEach(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(s(e))}else n.push(s(t.activeIndex));for(r=0;r<n.length;r+=1)if(void 0!==n[r]){const e=n[r].offsetHeight;o=e>o?e:o}(o||0===o)&&(t.wrapperEl.style.height=`${o}px`)},updateSlidesOffset:function(){const e=this,t=e.slides,n=e.isElement?e.isHorizontal()?e.wrapperEl.offsetLeft:e.wrapperEl.offsetTop:0;for(let i=0;i<t.length;i+=1)t[i].swiperSlideOffset=(e.isHorizontal()?t[i].offsetLeft:t[i].offsetTop)-n-e.cssOverflowAdjustment()},updateSlidesProgress:function(e=this&&this.translate||0){const t=this,n=t.params,{slides:i,rtlTranslate:r,snapGrid:o}=t;if(0===i.length)return;void 0===i[0].swiperSlideOffset&&t.updateSlidesOffset();let s=-e;r&&(s=e),t.visibleSlidesIndexes=[],t.visibleSlides=[];let a=n.spaceBetween;"string"==typeof a&&a.indexOf("%")>=0?a=parseFloat(a.replace("%",""))/100*t.size:"string"==typeof a&&(a=parseFloat(a));for(let e=0;e<i.length;e+=1){const l=i[e];let c=l.swiperSlideOffset;n.cssMode&&n.centeredSlides&&(c-=i[0].swiperSlideOffset);const u=(s+(n.centeredSlides?t.minTranslate():0)-c)/(l.swiperSlideSize+a),d=(s-o[0]+(n.centeredSlides?t.minTranslate():0)-c)/(l.swiperSlideSize+a),p=-(s-c),h=p+t.slidesSizesGrid[e],f=p>=0&&p<=t.size-t.slidesSizesGrid[e],m=p>=0&&p<t.size-1||h>1&&h<=t.size||p<=0&&h>=t.size;m&&(t.visibleSlides.push(l),t.visibleSlidesIndexes.push(e)),ee(l,m,n.slideVisibleClass),ee(l,f,n.slideFullyVisibleClass),l.progress=r?-u:u,l.originalProgress=r?-d:d}},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:o,isEnd:s,progressLoop:a}=t;const l=o,c=s;if(0===i)r=0,o=!0,s=!0;else{r=(e-t.minTranslate())/i;const n=Math.abs(e-t.minTranslate())<1,a=Math.abs(e-t.maxTranslate())<1;o=n||r<=0,s=a||r>=1,n&&(r=0),a&&(r=1)}if(n.loop){const n=t.getSlideIndexByData(0),i=t.getSlideIndexByData(t.slides.length-1),r=t.slidesGrid[n],o=t.slidesGrid[i],s=t.slidesGrid[t.slidesGrid.length-1],l=Math.abs(e);a=l>=r?(l-r)/s:(l+s-o)/s,a>1&&(a-=1)}Object.assign(t,{progress:r,progressLoop:a,isBeginning:o,isEnd:s}),(n.watchSlidesProgress||n.centeredSlides&&n.autoHeight)&&t.updateSlidesProgress(e),o&&!l&&t.emit("reachBeginning toEdge"),s&&!c&&t.emit("reachEnd toEdge"),(l&&!o||c&&!s)&&t.emit("fromEdge"),t.emit("progress",r)},updateSlidesClasses:function(){const e=this,{slides:t,params:n,slidesEl:i,activeIndex:r}=e,o=e.virtual&&n.virtual.enabled,s=e.grid&&n.grid&&n.grid.rows>1,a=e=>B(i,`.${n.slideClass}${e}, swiper-slide${e}`)[0];let l,c,u;if(o)if(n.loop){let t=r-e.virtual.slidesBefore;t<0&&(t=e.virtual.slides.length+t),t>=e.virtual.slides.length&&(t-=e.virtual.slides.length),l=a(`[data-swiper-slide-index="${t}"]`)}else l=a(`[data-swiper-slide-index="${r}"]`);else s?(l=t.find(e=>e.column===r),u=t.find(e=>e.column===r+1),c=t.find(e=>e.column===r-1)):l=t[r];l&&(s||(u=function(e,t){const n=[];for(;e.nextElementSibling;){const i=e.nextElementSibling;t?i.matches(t)&&n.push(i):n.push(i),e=i}return n}(l,`.${n.slideClass}, swiper-slide`)[0],n.loop&&!u&&(u=t[0]),c=function(e,t){const n=[];for(;e.previousElementSibling;){const i=e.previousElementSibling;t?i.matches(t)&&n.push(i):n.push(i),e=i}return n}(l,`.${n.slideClass}, swiper-slide`)[0],n.loop&&0===!c&&(c=t[t.length-1]))),t.forEach(e=>{te(e,e===l,n.slideActiveClass),te(e,e===u,n.slideNextClass),te(e,e===c,n.slidePrevClass)}),e.emitSlidesClasses()},updateActiveIndex:function(e){const t=this,n=t.rtlTranslate?t.translate:-t.translate,{snapGrid:i,params:r,activeIndex:o,realIndex:s,snapIndex:a}=t;let l,c=e;const u=e=>{let n=e-t.virtual.slidesBefore;return n<0&&(n=t.virtual.slides.length+n),n>=t.virtual.slides.length&&(n-=t.virtual.slides.length),n};if(void 0===c&&(c=function(e){const{slidesGrid:t,params:n}=e,i=e.rtlTranslate?e.translate:-e.translate;let r;for(let e=0;e<t.length;e+=1)void 0!==t[e+1]?i>=t[e]&&i<t[e+1]-(t[e+1]-t[e])/2?r=e:i>=t[e]&&i<t[e+1]&&(r=e+1):i>=t[e]&&(r=e);return n.normalizeSlideIndex&&(r<0||void 0===r)&&(r=0),r}(t)),i.indexOf(n)>=0)l=i.indexOf(n);else{const e=Math.min(r.slidesPerGroupSkip,c);l=e+Math.floor((c-e)/r.slidesPerGroup)}if(l>=i.length&&(l=i.length-1),c===o&&!t.params.loop)return void(l!==a&&(t.snapIndex=l,t.emit("snapIndexChange")));if(c===o&&t.params.loop&&t.virtual&&t.params.virtual.enabled)return void(t.realIndex=u(c));const d=t.grid&&r.grid&&r.grid.rows>1;let p;if(t.virtual&&r.virtual.enabled)p=r.loop?u(c):c;else if(d){const e=t.slides.find(e=>e.column===c);let n=parseInt(e.getAttribute("data-swiper-slide-index"),10);Number.isNaN(n)&&(n=Math.max(t.slides.indexOf(e),0)),p=Math.floor(n/r.grid.rows)}else if(t.slides[c]){const e=t.slides[c].getAttribute("data-swiper-slide-index");p=e?parseInt(e,10):c}else p=c;Object.assign(t,{previousSnapIndex:a,snapIndex:l,previousRealIndex:s,realIndex:p,previousIndex:o,activeIndex:c}),t.initialized&&re(t),t.emit("activeIndexChange"),t.emit("snapIndexChange"),(t.initialized||t.params.runCallbacksOnInit)&&(s!==p&&t.emit("realIndexChange"),t.emit("slideChange"))},updateClickedSlide:function(e,t){const n=this,i=n.params;let r=e.closest(`.${i.slideClass}, swiper-slide`);!r&&n.isElement&&t&&t.length>1&&t.includes(e)&&[...t.slice(t.indexOf(e)+1,t.length)].forEach(e=>{!r&&e.matches&&e.matches(`.${i.slideClass}, swiper-slide`)&&(r=e)});let o,s=!1;if(r)for(let e=0;e<n.slides.length;e+=1)if(n.slides[e]===r){s=!0,o=e;break}if(!r||!s)return n.clickedSlide=void 0,void(n.clickedIndex=void 0);n.clickedSlide=r,n.virtual&&n.params.virtual.enabled?n.clickedIndex=parseInt(r.getAttribute("data-swiper-slide-index"),10):n.clickedIndex=o,i.slideToClickedSlide&&void 0!==n.clickedIndex&&n.clickedIndex!==n.activeIndex&&n.slideToClickedSlide()}},se={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 o=function(e,t="x"){const n=A();let i,r,o;const s=function(e){const t=A();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=s.transform||s.webkitTransform,r.split(",").length>6&&(r=r.split(", ").map(e=>e.replace(",",".")).join(", ")),o=new n.WebKitCSSMatrix("none"===r?"":r)):(o=s.MozTransform||s.OTransform||s.MsTransform||s.msTransform||s.transform||s.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,"),i=o.toString().split(",")),"x"===t&&(r=n.WebKitCSSMatrix?o.m41:16===i.length?parseFloat(i[12]):parseFloat(i[4])),"y"===t&&(r=n.WebKitCSSMatrix?o.m42:16===i.length?parseFloat(i[13]):parseFloat(i[5])),r||0}(r,e);return o+=this.cssOverflowAdjustment(),n&&(o=-o),o||0},setTranslate:function(e,t){const n=this,{rtlTranslate:i,params:r,wrapperEl:o,progress:s}=n;let a,l=0,c=0;n.isHorizontal()?l=i?-e:e:c=e,r.roundLengths&&(l=Math.floor(l),c=Math.floor(c)),n.previousTranslate=n.translate,n.translate=n.isHorizontal()?l:c,r.cssMode?o[n.isHorizontal()?"scrollLeft":"scrollTop"]=n.isHorizontal()?-l:-c:r.virtualTranslate||(n.isHorizontal()?l-=n.cssOverflowAdjustment():c-=n.cssOverflowAdjustment(),o.style.transform=`translate3d(${l}px, ${c}px, 0px)`);const u=n.maxTranslate()-n.minTranslate();a=0===u?0:(e-n.minTranslate())/u,a!==s&&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 o=this,{params:s,wrapperEl:a}=o;if(o.animating&&s.preventInteractionOnTransition)return!1;const l=o.minTranslate(),c=o.maxTranslate();let u;if(u=i&&e>l?l:i&&e<c?c:e,o.updateProgress(u),s.cssMode){const e=o.isHorizontal();if(0===t)a[e?"scrollLeft":"scrollTop"]=-u;else{if(!o.support.smoothScroll)return R({swiper:o,targetPosition:-u,side:e?"left":"top"}),!0;a.scrollTo({[e?"left":"top"]:-u,behavior:"smooth"})}return!0}return 0===t?(o.setTransition(0),o.setTranslate(u),n&&(o.emit("beforeTransitionStart",t,r),o.emit("transitionEnd"))):(o.setTransition(t),o.setTranslate(u),n&&(o.emit("beforeTransitionStart",t,r),o.emit("transitionStart")),o.animating||(o.animating=!0,o.onTranslateToWrapperTransitionEnd||(o.onTranslateToWrapperTransitionEnd=function(e){o&&!o.destroyed&&e.target===this&&(o.wrapperEl.removeEventListener("transitionend",o.onTranslateToWrapperTransitionEnd),o.onTranslateToWrapperTransitionEnd=null,delete o.onTranslateToWrapperTransitionEnd,o.animating=!1,n&&o.emit("transitionEnd"))}),o.wrapperEl.addEventListener("transitionend",o.onTranslateToWrapperTransitionEnd))),!0}};function ae({swiper:e,runCallbacks:t,direction:n,step:i}){const{activeIndex:r,previousIndex:o}=e;let s=n;s||(s=r>o?"next":r<o?"prev":"reset"),e.emit(`transition${i}`),t&&"reset"===s?e.emit(`slideResetTransition${i}`):t&&r!==o&&(e.emit(`slideChangeTransition${i}`),"next"===s?e.emit(`slideNextTransition${i}`):e.emit(`slidePrevTransition${i}`))}var le={slideTo:function(e=0,t,n=!0,i,r){"string"==typeof e&&(e=parseInt(e,10));const o=this;let s=e;s<0&&(s=0);const{params:a,snapGrid:l,slidesGrid:c,previousIndex:u,activeIndex:d,rtlTranslate:p,wrapperEl:h,enabled:f}=o;if(!f&&!i&&!r||o.destroyed||o.animating&&a.preventInteractionOnTransition)return!1;void 0===t&&(t=o.params.speed);const m=Math.min(o.params.slidesPerGroupSkip,s);let v=m+Math.floor((s-m)/o.params.slidesPerGroup);v>=l.length&&(v=l.length-1);const g=-l[v];if(a.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?s=e:t>=n&&t<i&&(s=e+1):t>=n&&(s=e)}if(o.initialized&&s!==d){if(!o.allowSlideNext&&(p?g>o.translate&&g>o.minTranslate():g<o.translate&&g<o.minTranslate()))return!1;if(!o.allowSlidePrev&&g>o.translate&&g>o.maxTranslate()&&(d||0)!==s)return!1}let y;s!==(u||0)&&n&&o.emit("beforeSlideChangeStart"),o.updateProgress(g),y=s>d?"next":s<d?"prev":"reset";const b=o.virtual&&o.params.virtual.enabled;if((!b||!r)&&(p&&-g===o.translate||!p&&g===o.translate))return o.updateActiveIndex(s),a.autoHeight&&o.updateAutoHeight(),o.updateSlidesClasses(),"slide"!==a.effect&&o.setTranslate(g),"reset"!==y&&(o.transitionStart(n,y),o.transitionEnd(n,y)),!1;if(a.cssMode){const e=o.isHorizontal(),n=p?g:-g;if(0===t)b&&(o.wrapperEl.style.scrollSnapType="none",o._immediateVirtual=!0),b&&!o._cssModeVirtualInitialSet&&o.params.initialSlide>0?(o._cssModeVirtualInitialSet=!0,requestAnimationFrame(()=>{h[e?"scrollLeft":"scrollTop"]=n})):h[e?"scrollLeft":"scrollTop"]=n,b&&requestAnimationFrame(()=>{o.wrapperEl.style.scrollSnapType="",o._immediateVirtual=!1});else{if(!o.support.smoothScroll)return R({swiper:o,targetPosition:n,side:e?"left":"top"}),!0;h.scrollTo({[e?"left":"top"]:n,behavior:"smooth"})}return!0}const w=Q().isSafari;return b&&!r&&w&&o.isElement&&o.virtual.update(!1,!1,s),o.setTransition(t),o.setTranslate(g),o.updateActiveIndex(s),o.updateSlidesClasses(),o.emit("beforeTransitionStart",t,i),o.transitionStart(n,y),0===t?o.transitionEnd(n,y):o.animating||(o.animating=!0,o.onSlideToWrapperTransitionEnd||(o.onSlideToWrapperTransitionEnd=function(e){o&&!o.destroyed&&e.target===this&&(o.wrapperEl.removeEventListener("transitionend",o.onSlideToWrapperTransitionEnd),o.onSlideToWrapperTransitionEnd=null,delete o.onSlideToWrapperTransitionEnd,o.transitionEnd(n,y))}),o.wrapperEl.addEventListener("transitionend",o.onSlideToWrapperTransitionEnd)),!0},slideToLoop:function(e=0,t,n=!0,i){"string"==typeof e&&(e=parseInt(e,10));const r=this;if(r.destroyed)return;void 0===t&&(t=r.params.speed);const o=r.grid&&r.params.grid&&r.params.grid.rows>1;let s=e;if(r.params.loop)if(r.virtual&&r.params.virtual.enabled)s+=r.virtual.slidesBefore;else{let e;if(o){const t=s*r.params.grid.rows;e=r.slides.find(e=>1*e.getAttribute("data-swiper-slide-index")===t).column}else e=r.getSlideIndexByData(s);const t=o?Math.ceil(r.slides.length/r.params.grid.rows):r.slides.length,{centeredSlides:n,slidesOffsetBefore:a,slidesOffsetAfter:l}=r.params,c=n||!!a||!!l;let u=r.params.slidesPerView;"auto"===u?u=r.slidesPerViewDynamic():(u=Math.ceil(parseFloat(r.params.slidesPerView,10)),c&&u%2==0&&(u+=1));let d=t-e<u;if(c&&(d=d||e<Math.ceil(u/2)),i&&c&&"auto"!==r.params.slidesPerView&&!o&&(d=!1),d){const n=c?e<r.activeIndex?"prev":"next":e-r.activeIndex-1<r.params.slidesPerView?"next":"prev";r.loopFix({direction:n,slideTo:!0,activeSlideIndex:"next"===n?e+1:e-t+1,slideRealIndex:"next"===n?r.realIndex:void 0})}if(o){const e=s*r.params.grid.rows;s=r.slides.find(t=>1*t.getAttribute("data-swiper-slide-index")===e).column}else s=r.getSlideIndexByData(s)}return requestAnimationFrame(()=>{r.slideTo(s,t,n,i)}),r},slideNext:function(e,t=!0,n){const i=this,{enabled:r,params:o,animating:s}=i;if(!r||i.destroyed)return i;void 0===e&&(e=i.params.speed);let a=o.slidesPerGroup;"auto"===o.slidesPerView&&1===o.slidesPerGroup&&o.slidesPerGroupAuto&&(a=Math.max(i.slidesPerViewDynamic("current",!0),1));const l=i.activeIndex<o.slidesPerGroupSkip?1:a,c=i.virtual&&o.virtual.enabled;if(o.loop){if(s&&!c&&o.loopPreventsSliding)return!1;if(i.loopFix({direction:"next"}),i._clientLeft=i.wrapperEl.clientLeft,i.activeIndex===i.slides.length-1&&o.cssMode)return requestAnimationFrame(()=>{i.slideTo(i.activeIndex+l,e,t,n)}),!0}return o.rewind&&i.isEnd?i.slideTo(0,e,t,n):i.slideTo(i.activeIndex+l,e,t,n)},slidePrev:function(e,t=!0,n){const i=this,{params:r,snapGrid:o,slidesGrid:s,rtlTranslate:a,enabled:l,animating:c}=i;if(!l||i.destroyed)return i;void 0===e&&(e=i.params.speed);const u=i.virtual&&r.virtual.enabled;if(r.loop){if(c&&!u&&r.loopPreventsSliding)return!1;i.loopFix({direction:"prev"}),i._clientLeft=i.wrapperEl.clientLeft}function d(e){return e<0?-Math.floor(Math.abs(e)):Math.floor(e)}const p=d(a?i.translate:-i.translate),h=o.map(e=>d(e)),f=r.freeMode&&r.freeMode.enabled;let m=o[h.indexOf(p)-1];if(void 0===m&&(r.cssMode||f)){let e;o.forEach((t,n)=>{p>=t&&(e=n)}),void 0!==e&&(m=f?o[e]:o[e>0?e-1:e])}let v=0;if(void 0!==m&&(v=s.indexOf(m),v<0&&(v=i.activeIndex-1),"auto"===r.slidesPerView&&1===r.slidesPerGroup&&r.slidesPerGroupAuto&&(v=v-i.slidesPerViewDynamic("previous",!0)+1,v=Math.max(v,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 r.loop&&0===i.activeIndex&&r.cssMode?(requestAnimationFrame(()=>{i.slideTo(v,e,t,n)}),!0):i.slideTo(v,e,t,n)},slideReset:function(e,t=!0,n){const i=this;if(!i.destroyed)return void 0===e&&(e=i.params.speed),i.slideTo(i.activeIndex,e,t,n)},slideToClosest:function(e,t=!0,n,i=.5){const r=this;if(r.destroyed)return;void 0===e&&(e=r.params.speed);let o=r.activeIndex;const s=Math.min(r.params.slidesPerGroupSkip,o),a=s+Math.floor((o-s)/r.params.slidesPerGroup),l=r.rtlTranslate?r.translate:-r.translate;if(l>=r.snapGrid[a]){const e=r.snapGrid[a];l-e>(r.snapGrid[a+1]-e)*i&&(o+=r.params.slidesPerGroup)}else{const e=r.snapGrid[a-1];l-e<=(r.snapGrid[a]-e)*i&&(o-=r.params.slidesPerGroup)}return o=Math.max(o,0),o=Math.min(o,r.slidesGrid.length-1),r.slideTo(o,e,t,n)},slideToClickedSlide:function(){const e=this;if(e.destroyed)return;const{params:t,slidesEl:n}=e,i="auto"===t.slidesPerView?e.slidesPerViewDynamic():t.slidesPerView;let r,o=e.getSlideIndexWhenGrid(e.clickedIndex);const s=e.isElement?"swiper-slide":`.${t.slideClass}`,a=e.grid&&e.params.grid&&e.params.grid.rows>1;if(t.loop){if(e.animating)return;r=parseInt(e.clickedSlide.getAttribute("data-swiper-slide-index"),10),t.centeredSlides?e.slideToLoop(r):o>(a?(e.slides.length-i)/2-(e.params.grid.rows-1):e.slides.length-i)?(e.loopFix(),o=e.getSlideIndex(B(n,`${s}[data-swiper-slide-index="${r}"]`)[0]),D(()=>{e.slideTo(o)})):e.slideTo(o)}else e.slideTo(o)}},ce={loopCreate:function(e,t){const n=this,{params:i,slidesEl:r}=n;if(!i.loop||n.virtual&&n.params.virtual.enabled)return;const o=()=>{B(r,`.${i.slideClass}, swiper-slide`).forEach((e,t)=>{e.setAttribute("data-swiper-slide-index",t)})},s=n.grid&&i.grid&&i.grid.rows>1;i.loopAddBlankSlides&&(i.slidesPerGroup>1||s)&&(()=>{const e=B(r,`.${i.slideBlankClass}`);e.forEach(e=>{e.remove()}),e.length>0&&(n.recalcSlides(),n.updateSlides())})();const a=i.slidesPerGroup*(s?i.grid.rows:1),l=n.slides.length%a!==0,c=s&&n.slides.length%i.grid.rows!==0,u=e=>{for(let t=0;t<e;t+=1){const e=n.isElement?H("swiper-slide",[i.slideBlankClass]):H("div",[i.slideClass,i.slideBlankClass]);n.slidesEl.append(e)}};l?(i.loopAddBlankSlides?(u(a-n.slides.length%a),n.recalcSlides(),n.updateSlides()):z(),o()):c?(i.loopAddBlankSlides?(u(i.grid.rows-n.slides.length%i.grid.rows),n.recalcSlides(),n.updateSlides()):z(),o()):o();const d=i.centeredSlides||!!i.slidesOffsetBefore||!!i.slidesOffsetAfter;n.loopFix({slideRealIndex:e,direction:d?void 0:"next",initial:t})},loopFix:function({slideRealIndex:e,slideTo:t=!0,direction:n,setTranslate:i,activeSlideIndex:r,initial:o,byController:s,byMousewheel:a}={}){const l=this;if(!l.params.loop)return;l.emit("beforeLoopFix");const{slides:c,allowSlidePrev:u,allowSlideNext:d,slidesEl:p,params:h}=l,{centeredSlides:f,slidesOffsetBefore:m,slidesOffsetAfter:v,initialSlide:g}=h,y=f||!!m||!!v;if(l.allowSlidePrev=!0,l.allowSlideNext=!0,l.virtual&&h.virtual.enabled)return t&&(y||0!==l.snapIndex?y&&l.snapIndex<h.slidesPerView?l.slideTo(l.virtual.slides.length+l.snapIndex,0,!1,!0):l.snapIndex===l.snapGrid.length-1&&l.slideTo(l.virtual.slidesBefore,0,!1,!0):l.slideTo(l.virtual.slides.length,0,!1,!0)),l.allowSlidePrev=u,l.allowSlideNext=d,void l.emit("loopFix");let b=h.slidesPerView;"auto"===b?b=l.slidesPerViewDynamic():(b=Math.ceil(parseFloat(h.slidesPerView,10)),y&&b%2==0&&(b+=1));const w=h.slidesPerGroupAuto?b:h.slidesPerGroup;let _=y?Math.max(w,Math.ceil(b/2)):w;_%w!==0&&(_+=w-_%w),_+=h.loopAdditionalSlides,l.loopedSlides=_;const S=l.grid&&h.grid&&h.grid.rows>1;(c.length<b+_||"cards"===l.params.effect&&c.length<b+2*_||S&&"row"===h.grid.fill)&&z();const E=[],x=[],k=S?Math.ceil(c.length/h.grid.rows):c.length,C=o&&k-g<b&&!y;let T=C?g:l.activeIndex;void 0===r?r=l.getSlideIndex(c.find(e=>e.classList.contains(h.slideActiveClass))):T=r;const A="next"===n||!n,O="prev"===n||!n;let D=0,M=0;const L=(S?c[r].column:r)+(y&&void 0===i?-b/2+.5:0);if(L<_){D=Math.max(_-L,w);for(let e=0;e<_-L;e+=1){const t=e-Math.floor(e/k)*k;if(S){const e=k-t-1;for(let t=c.length-1;t>=0;t-=1)c[t].column===e&&E.push(t)}else E.push(k-t-1)}}else if(L+b>k-_){M=Math.max(L-(k-2*_),w),C&&(M=Math.max(M,b-k+g+1));for(let e=0;e<M;e+=1){const t=e-Math.floor(e/k)*k;S?c.forEach((e,n)=>{e.column===t&&x.push(n)}):x.push(t)}}if(l.__preventObserver__=!0,requestAnimationFrame(()=>{l.__preventObserver__=!1}),"cards"===l.params.effect&&c.length<b+2*_&&(x.includes(r)&&x.splice(x.indexOf(r),1),E.includes(r)&&E.splice(E.indexOf(r),1)),O&&E.forEach(e=>{c[e].swiperLoopMoveDOM=!0,p.prepend(c[e]),c[e].swiperLoopMoveDOM=!1}),A&&x.forEach(e=>{c[e].swiperLoopMoveDOM=!0,p.append(c[e]),c[e].swiperLoopMoveDOM=!1}),l.recalcSlides(),"auto"===h.slidesPerView?l.updateSlides():S&&(E.length>0&&O||x.length>0&&A)&&l.slides.forEach((e,t)=>{l.grid.updateSlide(t,e,l.slides)}),h.watchSlidesProgress&&l.updateSlidesOffset(),t)if(E.length>0&&O){if(void 0===e){const e=l.slidesGrid[T],t=l.slidesGrid[T+D]-e;a?l.setTranslate(l.translate-t):(l.slideTo(T+Math.ceil(D),0,!1,!0),i&&(l.touchEventsData.startTranslate=l.touchEventsData.startTranslate-t,l.touchEventsData.currentTranslate=l.touchEventsData.currentTranslate-t))}else if(i){const e=S?E.length/h.grid.rows:E.length;l.slideTo(l.activeIndex+e,0,!1,!0),l.touchEventsData.currentTranslate=l.translate}}else if(x.length>0&&A)if(void 0===e){const e=l.slidesGrid[T],t=l.slidesGrid[T-M]-e;a?l.setTranslate(l.translate-t):(l.slideTo(T-M,0,!1,!0),i&&(l.touchEventsData.startTranslate=l.touchEventsData.startTranslate-t,l.touchEventsData.currentTranslate=l.touchEventsData.currentTranslate-t))}else{const e=S?x.length/h.grid.rows:x.length;l.slideTo(l.activeIndex-e,0,!1,!0)}if(l.allowSlidePrev=u,l.allowSlideNext=d,l.controller&&l.controller.control&&!s){const o={slideRealIndex:e,direction:n,setTranslate:i,activeSlideIndex:r,byController:!0};Array.isArray(l.controller.control)?l.controller.control.forEach(e=>{!e.destroyed&&e.params.loop&&e.loopFix({...o,slideTo:e.params.slidesPerView===h.slidesPerView&&t})}):l.controller.control instanceof l.constructor&&l.controller.control.params.loop&&l.controller.control.loopFix({...o,slideTo:l.controller.control.params.slidesPerView===h.slidesPerView&&t})}l.emit("loopFix")},loopDestroy:function(){const e=this,{params:t,slidesEl:n}=e;if(!t.loop||!n||e.virtual&&e.params.virtual.enabled)return;e.recalcSlides();const i=[];e.slides.forEach(e=>{const t=void 0===e.swiperSlideIndex?1*e.getAttribute("data-swiper-slide-index"):e.swiperSlideIndex;i[t]=e}),e.slides.forEach(e=>{e.removeAttribute("data-swiper-slide-index")}),i.forEach(e=>{n.append(e)}),e.recalcSlides(),e.slideTo(e.realIndex,0)}};function ue(e,t,n){const i=A(),{params:r}=e,o=r.edgeSwipeDetection,s=r.edgeSwipeThreshold;return!o||!(n<=s||n>=i.innerWidth-s)||"prevent"===o&&(t.preventDefault(),!0)}function de(e){const t=this,n=C();let i=e;i.originalEvent&&(i=i.originalEvent);const r=t.touchEventsData;if("pointerdown"===i.type){if(null!==r.pointerId&&r.pointerId!==i.pointerId)return;r.pointerId=i.pointerId}else"touchstart"===i.type&&1===i.targetTouches.length&&(r.touchId=i.targetTouches[0].identifier);if("touchstart"===i.type)return void ue(t,i,i.targetTouches[0].pageX);const{params:o,touches:s,enabled:a}=t;if(!a)return;if(!o.simulateTouch&&"mouse"===i.pointerType)return;if(t.animating&&o.preventInteractionOnTransition)return;!t.animating&&o.cssMode&&o.loop&&t.loopFix();let l=i.target;if("wrapper"===o.touchEventsTarget&&!function(e,t){const n=A();let i=t.contains(e);return!i&&n.HTMLSlotElement&&t instanceof HTMLSlotElement&&(i=[...t.assignedElements()].includes(e),i||(i=function(e,t){const n=[t];for(;n.length>0;){const t=n.shift();if(e===t)return!0;n.push(...t.children,...t.shadowRoot?t.shadowRoot.children:[],...t.assignedElements?t.assignedElements():[])}}(e,t))),i}(l,t.wrapperEl))return;if("which"in i&&3===i.which)return;if("button"in i&&i.button>0)return;if(r.isTouched&&r.isMoved)return;const c=!!o.noSwipingClass&&""!==o.noSwipingClass,u=i.composedPath?i.composedPath():i.path;c&&i.target&&i.target.shadowRoot&&u&&(l=u[0]);const d=o.noSwipingSelector?o.noSwipingSelector:`.${o.noSwipingClass}`,p=!(!i.target||!i.target.shadowRoot);if(o.noSwiping&&(p?function(e,t=this){return function t(n){if(!n||n===C()||n===A())return null;n.assignedSlot&&(n=n.assignedSlot);const i=n.closest(e);return i||n.getRootNode?i||t(n.getRootNode().host):null}(t)}(d,l):l.closest(d)))return void(t.allowClick=!0);if(o.swipeHandler&&!l.closest(o.swipeHandler))return;s.currentX=i.pageX,s.currentY=i.pageY;const h=s.currentX,f=s.currentY;if(!ue(t,i,h))return;Object.assign(r,{isTouched:!0,isMoved:!1,allowTouchCallbacks:!0,isScrolling:void 0,startMoving:void 0}),s.startX=h,s.startY=f,r.touchStartTime=M(),t.allowClick=!0,t.updateSize(),t.swipeDirection=void 0,o.threshold>0&&(r.allowThresholdMove=!1);let m=!0;l.matches(r.focusableElements)&&(m=!1,"SELECT"===l.nodeName&&(r.isTouched=!1)),n.activeElement&&n.activeElement.matches(r.focusableElements)&&n.activeElement!==l&&("mouse"===i.pointerType||"mouse"!==i.pointerType&&!l.matches(r.focusableElements))&&n.activeElement.blur();const v=m&&t.allowTouchMove&&o.touchStartPreventDefault;!o.touchStartForcePreventDefault&&!v||l.isContentEditable||i.preventDefault(),o.freeMode&&o.freeMode.enabled&&t.freeMode&&t.animating&&!o.cssMode&&t.freeMode.onTouchStart(),t.emit("touchStart",i)}function pe(e){const t=C(),n=this,i=n.touchEventsData,{params:r,touches:o,rtlTranslate:s,enabled:a}=n;if(!a)return;if(!r.simulateTouch&&"mouse"===e.pointerType)return;let l,c=e;if(c.originalEvent&&(c=c.originalEvent),"pointermove"===c.type){if(null!==i.touchId)return;if(c.pointerId!==i.pointerId)return}if("touchmove"===c.type){if(l=[...c.changedTouches].find(e=>e.identifier===i.touchId),!l||l.identifier!==i.touchId)return}else l=c;if(!i.isTouched)return void(i.startMoving&&i.isScrolling&&n.emit("touchMoveOpposite",c));const u=l.pageX,d=l.pageY;if(c.preventedByNestedSwiper)return o.startX=u,void(o.startY=d);if(!n.allowTouchMove)return c.target.matches(i.focusableElements)||(n.allowClick=!1),void(i.isTouched&&(Object.assign(o,{startX:u,startY:d,currentX:u,currentY:d}),i.touchStartTime=M()));if(r.touchReleaseOnEdges&&!r.loop)if(n.isVertical()){if(d<o.startY&&n.translate<=n.maxTranslate()||d>o.startY&&n.translate>=n.minTranslate())return i.isTouched=!1,void(i.isMoved=!1)}else{if(s&&(u>o.startX&&-n.translate<=n.maxTranslate()||u<o.startX&&-n.translate>=n.minTranslate()))return;if(!s&&(u<o.startX&&n.translate<=n.maxTranslate()||u>o.startX&&n.translate>=n.minTranslate()))return}if(t.activeElement&&t.activeElement.matches(i.focusableElements)&&t.activeElement!==c.target&&"mouse"!==c.pointerType&&t.activeElement.blur(),t.activeElement&&c.target===t.activeElement&&c.target.matches(i.focusableElements))return i.isMoved=!0,void(n.allowClick=!1);i.allowTouchCallbacks&&n.emit("touchMove",c),o.previousX=o.currentX,o.previousY=o.currentY,o.currentX=u,o.currentY=d;const p=o.currentX-o.startX,h=o.currentY-o.startY;if(n.params.threshold&&Math.sqrt(p**2+h**2)<n.params.threshold)return;if(void 0===i.isScrolling){let e;n.isHorizontal()&&o.currentY===o.startY||n.isVertical()&&o.currentX===o.startX?i.isScrolling=!1:p*p+h*h>=25&&(e=180*Math.atan2(Math.abs(h),Math.abs(p))/Math.PI,i.isScrolling=n.isHorizontal()?e>r.touchAngle:90-e>r.touchAngle)}if(i.isScrolling&&n.emit("touchMoveOpposite",c),void 0===i.startMoving&&(o.currentX===o.startX&&o.currentY===o.startY||(i.startMoving=!0)),i.isScrolling||"touchmove"===c.type&&i.preventTouchMoveFromPointerMove)return void(i.isTouched=!1);if(!i.startMoving)return;n.allowClick=!1,!r.cssMode&&c.cancelable&&c.preventDefault(),r.touchMoveStopPropagation&&!r.nested&&c.stopPropagation();let f=n.isHorizontal()?p:h,m=n.isHorizontal()?o.currentX-o.previousX:o.currentY-o.previousY;r.oneWayMovement&&(f=Math.abs(f)*(s?1:-1),m=Math.abs(m)*(s?1:-1)),o.diff=f,f*=r.touchRatio,s&&(f=-f,m=-m);const v=n.touchesDirection;n.swipeDirection=f>0?"prev":"next",n.touchesDirection=m>0?"prev":"next";const g=n.params.loop&&!r.cssMode,y="next"===n.touchesDirection&&n.allowSlideNext||"prev"===n.touchesDirection&&n.allowSlidePrev;if(!i.isMoved){if(g&&y&&n.loopFix({direction:n.swipeDirection}),i.startTranslate=n.getTranslate(),n.setTransition(0),n.animating){const e=new window.CustomEvent("transitionend",{bubbles:!0,cancelable:!0,detail:{bySwiperTouchMove:!0}});n.wrapperEl.dispatchEvent(e)}i.allowMomentumBounce=!1,!r.grabCursor||!0!==n.allowSlideNext&&!0!==n.allowSlidePrev||n.setGrabCursor(!0),n.emit("sliderFirstMove",c)}if((new Date).getTime(),!1!==r._loopSwapReset&&i.isMoved&&i.allowThresholdMove&&v!==n.touchesDirection&&g&&y&&Math.abs(f)>=1)return Object.assign(o,{startX:u,startY:d,currentX:u,currentY:d,startTranslate:i.currentTranslate}),i.loopSwapReset=!0,void(i.startTranslate=i.currentTranslate);n.emit("sliderMove",c),i.isMoved=!0,i.currentTranslate=f+i.startTranslate;let b=!0,w=r.resistanceRatio;if(r.touchReleaseOnEdges&&(w=0),f>0?(g&&y&&i.allowThresholdMove&&i.currentTranslate>(r.centeredSlides?n.minTranslate()-n.slidesSizesGrid[n.activeIndex+1]-("auto"!==r.slidesPerView&&n.slides.length-r.slidesPerView>=2?n.slidesSizesGrid[n.activeIndex+1]+n.params.spaceBetween:0)-n.params.spaceBetween:n.minTranslate())&&n.loopFix({direction:"prev",setTranslate:!0,activeSlideIndex:0}),i.currentTranslate>n.minTranslate()&&(b=!1,r.resistance&&(i.currentTranslate=n.minTranslate()-1+(-n.minTranslate()+i.startTranslate+f)**w))):f<0&&(g&&y&&i.allowThresholdMove&&i.currentTranslate<(r.centeredSlides?n.maxTranslate()+n.slidesSizesGrid[n.slidesSizesGrid.length-1]+n.params.spaceBetween+("auto"!==r.slidesPerView&&n.slides.length-r.slidesPerView>=2?n.slidesSizesGrid[n.slidesSizesGrid.length-1]+n.params.spaceBetween:0):n.maxTranslate())&&n.loopFix({direction:"next",setTranslate:!0,activeSlideIndex:n.slides.length-("auto"===r.slidesPerView?n.slidesPerViewDynamic():Math.ceil(parseFloat(r.slidesPerView,10)))}),i.currentTranslate<n.maxTranslate()&&(b=!1,r.resistance&&(i.currentTranslate=n.maxTranslate()+1-(n.maxTranslate()-i.startTranslate-f)**w))),b&&(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(f)>r.threshold||i.allowThresholdMove))return void(i.currentTranslate=i.startTranslate);if(!i.allowThresholdMove)return i.allowThresholdMove=!0,o.startX=o.currentX,o.startY=o.currentY,i.currentTranslate=i.startTranslate,void(o.diff=n.isHorizontal()?o.currentX-o.startX:o.currentY-o.startY)}r.followFinger&&!r.cssMode&&((r.freeMode&&r.freeMode.enabled&&n.freeMode||r.watchSlidesProgress)&&(n.updateActiveIndex(),n.updateSlidesClasses()),r.freeMode&&r.freeMode.enabled&&n.freeMode&&n.freeMode.onTouchMove(),n.updateProgress(i.currentTranslate),n.setTranslate(i.currentTranslate))}function he(e){const t=this,n=t.touchEventsData;let i,r=e;if(r.originalEvent&&(r=r.originalEvent),"touchend"===r.type||"touchcancel"===r.type){if(i=[...r.changedTouches].find(e=>e.identifier===n.touchId),!i||i.identifier!==n.touchId)return}else{if(null!==n.touchId)return;if(r.pointerId!==n.pointerId)return;i=r}if(["pointercancel","pointerout","pointerleave","contextmenu"].includes(r.type)&&(!["pointercancel","contextmenu"].includes(r.type)||!t.browser.isSafari&&!t.browser.isWebView))return;n.pointerId=null,n.touchId=null;const{params:o,touches:s,rtlTranslate:a,slidesGrid:l,enabled:c}=t;if(!c)return;if(!o.simulateTouch&&"mouse"===r.pointerType)return;if(n.allowTouchCallbacks&&t.emit("touchEnd",r),n.allowTouchCallbacks=!1,!n.isTouched)return n.isMoved&&o.grabCursor&&t.setGrabCursor(!1),n.isMoved=!1,void(n.startMoving=!1);o.grabCursor&&n.isMoved&&n.isTouched&&(!0===t.allowSlideNext||!0===t.allowSlidePrev)&&t.setGrabCursor(!1);const u=M(),d=u-n.touchStartTime;if(t.allowClick){const e=r.path||r.composedPath&&r.composedPath();t.updateClickedSlide(e&&e[0]||r.target,e),t.emit("tap click",r),d<300&&u-n.lastClickTime<300&&t.emit("doubleTap doubleClick",r)}if(n.lastClickTime=M(),D(()=>{t.destroyed||(t.allowClick=!0)}),!n.isTouched||!n.isMoved||!t.swipeDirection||0===s.diff&&!n.loopSwapReset||n.currentTranslate===n.startTranslate&&!n.loopSwapReset)return n.isTouched=!1,n.isMoved=!1,void(n.startMoving=!1);let p;if(n.isTouched=!1,n.isMoved=!1,n.startMoving=!1,p=o.followFinger?a?t.translate:-t.translate:-n.currentTranslate,o.cssMode)return;if(o.freeMode&&o.freeMode.enabled)return void t.freeMode.onTouchEnd({currentPos:p});const h=p>=-t.maxTranslate()&&!t.params.loop;let f=0,m=t.slidesSizesGrid[0];for(let e=0;e<l.length;e+=e<o.slidesPerGroupSkip?1:o.slidesPerGroup){const t=e<o.slidesPerGroupSkip-1?1:o.slidesPerGroup;void 0!==l[e+t]?(h||p>=l[e]&&p<l[e+t])&&(f=e,m=l[e+t]-l[e]):(h||p>=l[e])&&(f=e,m=l[l.length-1]-l[l.length-2])}let v=null,g=null;o.rewind&&(t.isBeginning?g=o.virtual&&o.virtual.enabled&&t.virtual?t.virtual.slides.length-1:t.slides.length-1:t.isEnd&&(v=0));const y=(p-l[f])/m,b=f<o.slidesPerGroupSkip-1?1:o.slidesPerGroup;if(d>o.longSwipesMs){if(!o.longSwipes)return void t.slideTo(t.activeIndex);"next"===t.swipeDirection&&(y>=o.longSwipesRatio?t.slideTo(o.rewind&&t.isEnd?v:f+b):t.slideTo(f)),"prev"===t.swipeDirection&&(y>1-o.longSwipesRatio?t.slideTo(f+b):null!==g&&y<0&&Math.abs(y)>o.longSwipesRatio?t.slideTo(g):t.slideTo(f))}else{if(!o.shortSwipes)return void t.slideTo(t.activeIndex);!t.navigation||r.target!==t.navigation.nextEl&&r.target!==t.navigation.prevEl?("next"===t.swipeDirection&&t.slideTo(null!==v?v:f+b),"prev"===t.swipeDirection&&t.slideTo(null!==g?g:f)):r.target===t.navigation.nextEl?t.slideTo(f+b):t.slideTo(f)}}function fe(){const e=this,{params:t,el:n}=e;if(n&&0===n.offsetWidth)return;t.breakpoints&&e.setBreakpoint();const{allowSlideNext:i,allowSlidePrev:r,snapGrid:o}=e,s=e.virtual&&e.params.virtual.enabled;e.allowSlideNext=!0,e.allowSlidePrev=!0,e.updateSize(),e.updateSlides(),e.updateSlidesClasses();const a=s&&t.loop;if(!("auto"===t.slidesPerView||t.slidesPerView>1)||!e.isEnd||e.isBeginning||e.params.centeredSlides||a)e.params.loop&&!s?e.slideToLoop(e.realIndex,0,!1,!0):e.slideTo(e.activeIndex,0,!1,!0);else{const t=s?e.virtual.slides:e.slides;e.slideTo(t.length-1,0,!1,!0)}e.autoplay&&e.autoplay.running&&e.autoplay.paused&&(clearTimeout(e.autoplay.resizeTimeout),e.autoplay.resizeTimeout=setTimeout(()=>{e.autoplay&&e.autoplay.running&&e.autoplay.paused&&e.autoplay.resume()},500)),e.allowSlidePrev=r,e.allowSlideNext=i,e.params.watchOverflow&&o!==e.snapGrid&&e.checkOverflow()}function me(e){const t=this;t.enabled&&(t.allowClick||(t.params.preventClicks&&e.preventDefault(),t.params.preventClicksPropagation&&t.animating&&(e.stopPropagation(),e.stopImmediatePropagation())))}function ve(){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 o=e.maxTranslate()-e.minTranslate();r=0===o?0:(e.translate-e.minTranslate())/o,r!==e.progress&&e.updateProgress(n?-e.translate:e.translate),e.emit("setTranslate",e.translate,!1)}function ge(e){const t=this;ne(t,e.target),t.params.cssMode||"auto"!==t.params.slidesPerView&&!t.params.autoHeight||t.update()}function ye(){const e=this;e.documentTouchHandlerProceeded||(e.documentTouchHandlerProceeded=!0,e.params.touchReleaseOnEdges&&(e.el.style.touchAction="auto"))}const be=(e,t)=>{const n=C(),{params:i,el:r,wrapperEl:o,device:s}=e,a=!!i.nested,l="on"===t?"addEventListener":"removeEventListener",c=t;r&&"string"!=typeof r&&(n[l]("touchstart",e.onDocumentTouchStart,{passive:!1,capture:a}),r[l]("touchstart",e.onTouchStart,{passive:!1}),r[l]("pointerdown",e.onTouchStart,{passive:!1}),n[l]("touchmove",e.onTouchMove,{passive:!1,capture:a}),n[l]("pointermove",e.onTouchMove,{passive:!1,capture:a}),n[l]("touchend",e.onTouchEnd,{passive:!0}),n[l]("pointerup",e.onTouchEnd,{passive:!0}),n[l]("pointercancel",e.onTouchEnd,{passive:!0}),n[l]("touchcancel",e.onTouchEnd,{passive:!0}),n[l]("pointerout",e.onTouchEnd,{passive:!0}),n[l]("pointerleave",e.onTouchEnd,{passive:!0}),n[l]("contextmenu",e.onTouchEnd,{passive:!0}),(i.preventClicks||i.preventClicksPropagation)&&r[l]("click",e.onClick,!0),i.cssMode&&o[l]("scroll",e.onScroll),i.updateOnWindowResize?e[c](s.ios||s.android?"resize orientationchange observerUpdate":"resize observerUpdate",fe,!0):e[c]("observerUpdate",fe,!0),r[l]("load",e.onLoad,{capture:!0}))},we=(e,t)=>e.grid&&t.grid&&t.grid.rows>1;var _e={setBreakpoint:function(){const e=this,{realIndex:t,initialized:n,params:i,el:r}=e,o=i.breakpoints;if(!o||o&&0===Object.keys(o).length)return;const s=C(),a="window"!==i.breakpointsBase&&i.breakpointsBase?"container":i.breakpointsBase,l=["window","container"].includes(i.breakpointsBase)||!i.breakpointsBase?e.el:s.querySelector(i.breakpointsBase),c=e.getBreakpoint(o,a,l);if(!c||e.currentBreakpoint===c)return;const u=(c in o?o[c]:void 0)||e.originalParams,d=we(e,i),p=we(e,u),h=e.params.grabCursor,f=u.grabCursor,m=i.enabled;d&&!p?(r.classList.remove(`${i.containerModifierClass}grid`,`${i.containerModifierClass}grid-column`),e.emitContainerClasses()):!d&&p&&(r.classList.add(`${i.containerModifierClass}grid`),(u.grid.fill&&"column"===u.grid.fill||!u.grid.fill&&"column"===i.grid.fill)&&r.classList.add(`${i.containerModifierClass}grid-column`),e.emitContainerClasses()),h&&!f?e.unsetGrabCursor():!h&&f&&e.setGrabCursor(),["navigation","pagination","scrollbar"].forEach(t=>{if(void 0===u[t])return;const n=i[t]&&i[t].enabled,r=u[t]&&u[t].enabled;n&&!r&&e[t].disable(),!n&&r&&e[t].enable()});const v=u.direction&&u.direction!==i.direction,g=i.loop&&(u.slidesPerView!==i.slidesPerView||v),y=i.loop;v&&n&&e.changeDirection(),I(e.params,u);const b=e.params.enabled,w=e.params.loop;Object.assign(e,{allowTouchMove:e.params.allowTouchMove,allowSlideNext:e.params.allowSlideNext,allowSlidePrev:e.params.allowSlidePrev}),m&&!b?e.disable():!m&&b&&e.enable(),e.currentBreakpoint=c,e.emit("_beforeBreakpoint",u),n&&(g?(e.loopDestroy(),e.loopCreate(t),e.updateSlides()):!y&&w?(e.loopCreate(t),e.updateSlides()):y&&!w&&e.loopDestroy()),e.emit("breakpoint",u)},getBreakpoint:function(e,t="window",n){if(!e||"container"===t&&!n)return;let i=!1;const r=A(),o="window"===t?r.innerHeight:n.clientHeight,s=Object.keys(e).map(e=>{if("string"==typeof e&&0===e.indexOf("@")){const t=parseFloat(e.substr(1));return{value:o*t,point:e}}return{value:e,point:e}});s.sort((e,t)=>parseInt(e.value,10)-parseInt(t.value,10));for(let e=0;e<s.length;e+=1){const{point:o,value:a}=s[e];"window"===t?r.matchMedia(`(min-width: ${a}px)`).matches&&(i=o):a<=n.clientWidth&&(i=o)}return i||"max"}},Se={addClasses:function(){const e=this,{classNames:t,params:n,rtl:i,el:r,device:o}=e,s=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,{"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:o.android},{ios:o.ios},{"css-mode":n.cssMode},{centered:n.cssMode&&n.centeredSlides},{"watch-progress":n.watchSlidesProgress}],n.containerModifierClass);t.push(...s),r.classList.add(...t),e.emitContainerClasses()},removeClasses:function(){const{el:e,classNames:t}=this;e&&"string"!=typeof e&&(e.classList.remove(...t),this.emitContainerClasses())}},Ee={init:!0,direction:"horizontal",oneWayMovement:!1,swiperElementNodeName:"SWIPER-CONTAINER",touchEventsTarget:"wrapper",initialSlide:0,speed:300,cssMode:!1,updateOnWindowResize:!0,resizeObserver:!0,nested:!1,createElements:!1,eventsPrefix:"swiper",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,snapToSlideEdge:!1,watchOverflow:!0,roundLengths:!1,touchRatio:1,touchAngle:45,simulateTouch:!0,shortSwipes:!0,longSwipes:!0,longSwipesRatio:.5,longSwipesMs:300,followFinger:!0,allowTouchMove:!0,threshold:5,touchMoveStopPropagation:!1,touchStartPreventDefault:!0,touchStartForcePreventDefault:!1,touchReleaseOnEdges:!1,uniqueNavElements:!0,resistance:!0,resistanceRatio:.85,watchSlidesProgress:!1,grabCursor:!1,preventClicks:!0,preventClicksPropagation:!0,slideToClickedSlide:!1,loop:!1,loopAddBlankSlides:!0,loopAdditionalSlides:0,loopPreventsSliding:!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-blank",slideActiveClass:"swiper-slide-active",slideVisibleClass:"swiper-slide-visible",slideFullyVisibleClass:"swiper-slide-fully-visible",slideNextClass:"swiper-slide-next",slidePrevClass:"swiper-slide-prev",wrapperClass:"swiper-wrapper",lazyPreloaderClass:"swiper-lazy-preloader",lazyPreloadPrevNext:0,runCallbacksOnInit:!0,_emitClasses:!1};function xe(e,t){return function(n={}){const i=Object.keys(n)[0],r=n[i];"object"==typeof r&&null!==r?(!0===e[i]&&(e[i]={enabled:!0}),"navigation"===i&&e[i]&&e[i].enabled&&!e[i].prevEl&&!e[i].nextEl&&(e[i].auto=!0),["pagination","scrollbar"].indexOf(i)>=0&&e[i]&&e[i].enabled&&!e[i].el&&(e[i].auto=!0),i in e&&"enabled"in r?("object"!=typeof e[i]||"enabled"in e[i]||(e[i].enabled=!0),e[i]||(e[i]={enabled:!1}),I(t,n)):I(t,n)):I(t,n)}}const ke={eventsEmitter:Z,update:oe,translate:se,transition:{setTransition:function(e,t){const n=this;n.params.cssMode||(n.wrapperEl.style.transitionDuration=`${e}ms`,n.wrapperEl.style.transitionDelay=0===e?"0ms":""),n.emit("setTransition",e,t)},transitionStart:function(e=!0,t){const n=this,{params:i}=n;i.cssMode||(i.autoHeight&&n.updateAutoHeight(),ae({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),ae({swiper:n,runCallbacks:e,direction:t,step:"End"}))}},slide:le,loop:ce,grabCursor:{setGrabCursor:function(e){const t=this;if(!t.params.simulateTouch||t.params.watchOverflow&&t.isLocked||t.params.cssMode)return;const n="container"===t.params.touchEventsTarget?t.el:t.wrapperEl;t.isElement&&(t.__preventObserver__=!0),n.style.cursor="move",n.style.cursor=e?"grabbing":"grab",t.isElement&&requestAnimationFrame(()=>{t.__preventObserver__=!1})},unsetGrabCursor:function(){const e=this;e.params.watchOverflow&&e.isLocked||e.params.cssMode||(e.isElement&&(e.__preventObserver__=!0),e["container"===e.params.touchEventsTarget?"el":"wrapperEl"].style.cursor="",e.isElement&&requestAnimationFrame(()=>{e.__preventObserver__=!1}))}},events:{attachEvents:function(){const e=this,{params:t}=e;e.onTouchStart=de.bind(e),e.onTouchMove=pe.bind(e),e.onTouchEnd=he.bind(e),e.onDocumentTouchStart=ye.bind(e),t.cssMode&&(e.onScroll=ve.bind(e)),e.onClick=me.bind(e),e.onLoad=ge.bind(e),be(e,"on")},detachEvents:function(){be(this,"off")}},breakpoints:_e,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:Se},Ce={};class Te{constructor(...e){let t,n;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=I({},n),t&&!n.el&&(n.el=t);const i=C();if(n.el&&"string"==typeof n.el&&i.querySelectorAll(n.el).length>1){const e=[];return i.querySelectorAll(n.el).forEach(t=>{const i=I({},n,{el:t});e.push(new Te(i))}),e}const r=this;r.__swiper__=!0,r.support=K(),r.device=J({userAgent:n.userAgent}),r.browser=Q(),r.eventsListeners={},r.eventsAnyListeners=[],r.modules=[...r.__modules__],n.modules&&Array.isArray(n.modules)&&n.modules.forEach(e=>{"function"==typeof e&&r.modules.indexOf(e)<0&&r.modules.push(e)});const o={};r.modules.forEach(e=>{e({params:n,swiper:r,extendParams:xe(n,o),on:r.on.bind(r),once:r.once.bind(r),off:r.off.bind(r),emit:r.emit.bind(r)})});const s=I({},Ee,o);return r.params=I({},s,Ce,n),r.originalParams=I({},r.params),r.passedParams=I({},n),r.params&&r.params.on&&Object.keys(r.params.on).forEach(e=>{r.on(e,r.params.on[e])}),r.params&&r.params.onAny&&r.onAny(r.params.onAny),Object.assign(r,{enabled:r.params.enabled,el:t,classNames:[],slides:[],slidesGrid:[],snapGrid:[],slidesSizesGrid:[],isHorizontal:()=>"horizontal"===r.params.direction,isVertical:()=>"vertical"===r.params.direction,activeIndex:0,realIndex:0,isBeginning:!0,isEnd:!1,translate:0,previousTranslate:0,progress:0,velocity:0,animating:!1,cssOverflowAdjustment(){return Math.trunc(this.translate/2**23)*2**23},allowSlideNext:r.params.allowSlideNext,allowSlidePrev:r.params.allowSlidePrev,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:r.params.focusableElements,lastClickTime:0,clickTimeout:void 0,velocities:[],allowMomentumBounce:void 0,startMoving:void 0,pointerId:null,touchId:null},allowClick:!0,allowTouchMove:r.params.allowTouchMove,touches:{startX:0,startY:0,currentX:0,currentY:0,diff:0},imagesToLoad:[],imagesLoaded:0}),r.emit("_swiper"),r.params.init&&r.init(),r}getDirectionLabel(e){return this.isHorizontal()?e:{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"}[e]}getSlideIndex(e){const{slidesEl:t,params:n}=this,i=j(B(t,`.${n.slideClass}, swiper-slide`)[0]);return j(e)-i}getSlideIndexByData(e){return this.getSlideIndex(this.slides.find(t=>1*t.getAttribute("data-swiper-slide-index")===e))}getSlideIndexWhenGrid(e){return this.grid&&this.params.grid&&this.params.grid.rows>1&&("column"===this.params.grid.fill?e=Math.floor(e/this.params.grid.rows):"row"===this.params.grid.fill&&(e%=Math.ceil(this.slides.length/this.params.grid.rows))),e}recalcSlides(){const{slidesEl:e,params:t}=this;this.slides=B(e,`.${t.slideClass}, swiper-slide`)}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.forEach(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:o,size:s,activeIndex:a}=this;let l=1;if("number"==typeof n.slidesPerView)return n.slidesPerView;if(n.centeredSlides){let e,t=i[a]?Math.ceil(i[a].swiperSlideSize):0;for(let n=a+1;n<i.length;n+=1)i[n]&&!e&&(t+=Math.ceil(i[n].swiperSlideSize),l+=1,t>s&&(e=!0));for(let n=a-1;n>=0;n-=1)i[n]&&!e&&(t+=i[n].swiperSlideSize,l+=1,t>s&&(e=!0))}else if("current"===e)for(let e=a+1;e<i.length;e+=1)(t?r[e]+o[e]-r[a]<s:r[e]-r[a]<s)&&(l+=1);else for(let e=a-1;e>=0;e-=1)r[a]-r[e]<s&&(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;if(n.breakpoints&&e.setBreakpoint(),[...e.el.querySelectorAll('[loading="lazy"]')].forEach(t=>{t.complete&&ne(e,t)}),e.updateSize(),e.updateSlides(),e.updateProgress(),e.updateSlidesClasses(),n.freeMode&&n.freeMode.enabled&&!n.cssMode)i(),n.autoHeight&&e.updateAutoHeight();else{if(("auto"===n.slidesPerView||n.slidesPerView>1)&&e.isEnd&&!n.centeredSlides){const t=e.virtual&&n.virtual.enabled?e.virtual.slides:e.slides;r=e.slideTo(t.length-1,0,!1,!0)}else r=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.classList.remove(`${n.params.containerModifierClass}${i}`),n.el.classList.add(`${n.params.containerModifierClass}${e}`),n.emitContainerClasses(),n.params.direction=e,n.slides.forEach(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.classList.add(`${t.params.containerModifierClass}rtl`),t.el.dir="rtl"):(t.el.classList.remove(`${t.params.containerModifierClass}rtl`),t.el.dir="ltr"),t.update())}mount(e){const t=this;if(t.mounted)return!0;let n=e||t.params.el;if("string"==typeof n&&(n=document.querySelector(n)),!n)return!1;n.swiper=t,n.parentNode&&n.parentNode.host&&n.parentNode.host.nodeName===t.params.swiperElementNodeName.toUpperCase()&&(t.isElement=!0);const i=()=>`.${(t.params.wrapperClass||"").trim().split(" ").join(".")}`;let r=n&&n.shadowRoot&&n.shadowRoot.querySelector?n.shadowRoot.querySelector(i()):B(n,i())[0];return!r&&t.params.createElements&&(r=H("div",t.params.wrapperClass),n.append(r),B(n,`.${t.params.slideClass}`).forEach(e=>{r.append(e)})),Object.assign(t,{el:n,wrapperEl:r,slidesEl:t.isElement&&!n.parentNode.host.slideSlots?n.parentNode.host:r,hostEl:t.isElement?n.parentNode.host:n,mounted:!0,rtl:"rtl"===n.dir.toLowerCase()||"rtl"===V(n,"direction"),rtlTranslate:"horizontal"===t.params.direction&&("rtl"===n.dir.toLowerCase()||"rtl"===V(n,"direction")),wrongRTL:"-webkit-box"===V(r,"display")}),!0}init(e){const t=this;if(t.initialized)return t;if(!1===t.mount(e))return t;t.emit("beforeInit"),t.params.breakpoints&&t.setBreakpoint(),t.addClasses(),t.updateSize(),t.updateSlides(),t.params.watchOverflow&&t.checkOverflow(),t.params.grabCursor&&t.enabled&&t.setGrabCursor(),t.params.loop&&t.virtual&&t.params.virtual.enabled?t.slideTo(t.params.initialSlide+t.virtual.slidesBefore,0,t.params.runCallbacksOnInit,!1,!0):t.slideTo(t.params.initialSlide,0,t.params.runCallbacksOnInit,!1,!0),t.params.loop&&t.loopCreate(void 0,!0),t.attachEvents();const n=[...t.el.querySelectorAll('[loading="lazy"]')];return t.isElement&&n.push(...t.hostEl.querySelectorAll('[loading="lazy"]')),n.forEach(e=>{e.complete?ne(t,e):e.addEventListener("load",e=>{ne(t,e.target)})}),re(t),t.initialized=!0,re(t),t.emit("init"),t.emit("afterInit"),t}destroy(e=!0,t=!0){const n=this,{params:i,el:r,wrapperEl:o,slides:s}=n;return void 0===n.params||n.destroyed||(n.emit("beforeDestroy"),n.initialized=!1,n.detachEvents(),i.loop&&n.loopDestroy(),t&&(n.removeClasses(),r&&"string"!=typeof r&&r.removeAttribute("style"),o&&o.removeAttribute("style"),s&&s.length&&s.forEach(e=>{e.classList.remove(i.slideVisibleClass,i.slideFullyVisibleClass,i.slideActiveClass,i.slideNextClass,i.slidePrevClass),e.removeAttribute("style"),e.removeAttribute("data-swiper-slide-index")})),n.emit("destroy"),Object.keys(n.eventsListeners).forEach(e=>{n.off(e)}),!1!==e&&(n.el&&"string"!=typeof n.el&&(n.el.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){I(Ce,e)}static get extendedDefaults(){return Ce}static get defaults(){return Ee}static installModule(e){Te.prototype.__modules__||(Te.prototype.__modules__=[]);const t=Te.prototype.__modules__;"function"==typeof e&&t.indexOf(e)<0&&t.push(e)}static use(e){return Array.isArray(e)?(e.forEach(e=>Te.installModule(e)),Te):(Te.installModule(e),Te)}}function Ae({swiper:e,extendParams:t,on:n,emit:i}){const r=C(),o=A();function s(t){if(!e.enabled)return;const{rtlTranslate:n}=e;let s=t;s.originalEvent&&(s=s.originalEvent);const a=s.keyCode||s.charCode,l=e.params.keyboard.pageUpDown,c=l&&33===a,u=l&&34===a,d=37===a,p=39===a,h=38===a,f=40===a;if(!e.allowSlideNext&&(e.isHorizontal()&&p||e.isVertical()&&f||u))return!1;if(!e.allowSlidePrev&&(e.isHorizontal()&&d||e.isVertical()&&h||c))return!1;if(s.shiftKey||s.altKey||s.ctrlKey||s.metaKey)return;if(r.activeElement&&(r.activeElement.isContentEditable||r.activeElement.nodeName&&("input"===r.activeElement.nodeName.toLowerCase()||"textarea"===r.activeElement.nodeName.toLowerCase())))return;if(e.params.keyboard.onlyInViewport&&(c||u||d||p||h||f)){let t=!1;if(q(e.el,`.${e.params.slideClass}, swiper-slide`).length>0&&0===q(e.el,`.${e.params.slideActiveClass}`).length)return;const i=e.el,r=i.clientWidth,s=i.clientHeight,a=o.innerWidth,l=o.innerHeight,c=F(i);n&&(c.left-=i.scrollLeft);const u=[[c.left,c.top],[c.left+r,c.top],[c.left,c.top+s],[c.left+r,c.top+s]];for(let e=0;e<u.length;e+=1){const n=u[e];if(n[0]>=0&&n[0]<=a&&n[1]>=0&&n[1]<=l){if(0===n[0]&&0===n[1])continue;t=!0}}if(!t)return}const m=e.params.keyboard.speed;e.isHorizontal()?((c||u||d||p)&&(s.preventDefault?s.preventDefault():s.returnValue=!1),((u||p)&&!n||(c||d)&&n)&&e.slideNext(m),((c||d)&&!n||(u||p)&&n)&&e.slidePrev(m)):((c||u||h||f)&&(s.preventDefault?s.preventDefault():s.returnValue=!1),(u||f)&&e.slideNext(m),(c||h)&&e.slidePrev(m)),i("keyPress",a)}function a(){e.keyboard.enabled||(r.addEventListener("keydown",s),e.keyboard.enabled=!0)}function l(){e.keyboard.enabled&&(r.removeEventListener("keydown",s),e.keyboard.enabled=!1)}e.keyboard={enabled:!1},t({keyboard:{enabled:!1,onlyInViewport:!0,pageUpDown:!0,speed:void 0}}),n("init",()=>{e.params.keyboard.enabled&&a()}),n("destroy",()=>{e.keyboard.enabled&&l()}),Object.assign(e.keyboard,{enable:a,disable:l})}function Oe({swiper:e,extendParams:t,on:n,emit:i}){const r=A();let o;t({mousewheel:{enabled:!1,releaseOnEdges:!1,invert:!1,forceToAxis:!1,sensitivity:1,eventsTarget:"container",thresholdDelta:null,thresholdTime:null,noMousewheelClass:"swiper-no-mousewheel"}}),e.mousewheel={enabled:!1};let s,a=M();const l=[];function c(){e.enabled&&(e.mouseEntered=!0)}function u(){e.enabled&&(e.mouseEntered=!1)}function d(t){return!(e.params.mousewheel.thresholdDelta&&t.delta<e.params.mousewheel.thresholdDelta||e.params.mousewheel.thresholdTime&&M()-a<e.params.mousewheel.thresholdTime||!(t.delta>=6&&M()-a<60)&&(t.direction<0?e.isEnd&&!e.params.loop||e.animating||(e.slideNext(),i("scroll",t.raw)):e.isBeginning&&!e.params.loop||e.animating||(e.slidePrev(),i("scroll",t.raw)),a=(new r.Date).getTime(),1))}function p(t){let n=t,r=!0;if(!e.enabled)return;if(t.target.closest(`.${e.params.mousewheel.noMousewheelClass}`))return;const a=e.params.mousewheel;e.params.cssMode&&n.preventDefault();let c=e.el;"container"!==e.params.mousewheel.eventsTarget&&(c=document.querySelector(e.params.mousewheel.eventsTarget));const u=c&&c.contains(n.target);if(!e.mouseEntered&&!u&&!a.releaseOnEdges)return!0;n.originalEvent&&(n=n.originalEvent);let p=0;const h=e.rtlTranslate?-1:1,f=function(e){let t=0,n=0,i=0,r=0;return"detail"in e&&(n=e.detail),"wheelDelta"in e&&(n=-e.wheelDelta/120),"wheelDeltaY"in e&&(n=-e.wheelDeltaY/120),"wheelDeltaX"in e&&(t=-e.wheelDeltaX/120),"axis"in e&&e.axis===e.HORIZONTAL_AXIS&&(t=n,n=0),i=10*t,r=10*n,"deltaY"in e&&(r=e.deltaY),"deltaX"in e&&(i=e.deltaX),e.shiftKey&&!i&&(i=r,r=0),(i||r)&&e.deltaMode&&(1===e.deltaMode?(i*=40,r*=40):(i*=800,r*=800)),i&&!t&&(t=i<1?-1:1),r&&!n&&(n=r<1?-1:1),{spinX:t,spinY:n,pixelX:i,pixelY:r}}(n);if(a.forceToAxis)if(e.isHorizontal()){if(!(Math.abs(f.pixelX)>Math.abs(f.pixelY)))return!0;p=-f.pixelX*h}else{if(!(Math.abs(f.pixelY)>Math.abs(f.pixelX)))return!0;p=-f.pixelY}else p=Math.abs(f.pixelX)>Math.abs(f.pixelY)?-f.pixelX*h:-f.pixelY;if(0===p)return!0;a.invert&&(p=-p);let m=e.getTranslate()+p*a.sensitivity;if(m>=e.minTranslate()&&(m=e.minTranslate()),m<=e.maxTranslate()&&(m=e.maxTranslate()),r=!!e.params.loop||!(m===e.minTranslate()||m===e.maxTranslate()),r&&e.params.nested&&n.stopPropagation(),e.params.freeMode&&e.params.freeMode.enabled){const t={time:M(),delta:Math.abs(p),direction:Math.sign(p)},r=s&&t.time<s.time+500&&t.delta<=s.delta&&t.direction===s.direction;if(!r){s=void 0;let c=e.getTranslate()+p*a.sensitivity;const u=e.isBeginning,d=e.isEnd;if(c>=e.minTranslate()&&(c=e.minTranslate()),c<=e.maxTranslate()&&(c=e.maxTranslate()),e.setTransition(0),e.setTranslate(c),e.updateProgress(),e.updateActiveIndex(),e.updateSlidesClasses(),(!u&&e.isBeginning||!d&&e.isEnd)&&e.updateSlidesClasses(),e.params.loop&&e.loopFix({direction:t.direction<0?"next":"prev",byMousewheel:!0}),e.params.freeMode.sticky){clearTimeout(o),o=void 0,l.length>=15&&l.shift();const n=l.length?l[l.length-1]:void 0,i=l[0];if(l.push(t),n&&(t.delta>n.delta||t.direction!==n.direction))l.splice(0);else if(l.length>=15&&t.time-i.time<500&&i.delta-t.delta>=1&&t.delta<=6){const n=p>0?.8:.2;s=t,l.splice(0),o=D(()=>{!e.destroyed&&e.params&&e.slideToClosest(e.params.speed,!0,void 0,n)},0)}o||(o=D(()=>{!e.destroyed&&e.params&&(s=t,l.splice(0),e.slideToClosest(e.params.speed,!0,void 0,.5))},500))}if(r||i("scroll",n),e.params.autoplay&&e.params.autoplay.disableOnInteraction&&e.autoplay.stop(),a.releaseOnEdges&&(c===e.minTranslate()||c===e.maxTranslate()))return!0}}else{const n={time:M(),delta:Math.abs(p),direction:Math.sign(p),raw:t};l.length>=2&&l.shift();const i=l.length?l[l.length-1]:void 0;if(l.push(n),i?(n.direction!==i.direction||n.delta>i.delta||n.time>i.time+150)&&d(n):d(n),function(t){const n=e.params.mousewheel;if(t.direction<0){if(e.isEnd&&!e.params.loop&&n.releaseOnEdges)return!0}else if(e.isBeginning&&!e.params.loop&&n.releaseOnEdges)return!0;return!1}(n))return!0}return n.preventDefault?n.preventDefault():n.returnValue=!1,!1}function h(t){let n=e.el;"container"!==e.params.mousewheel.eventsTarget&&(n=document.querySelector(e.params.mousewheel.eventsTarget)),n[t]("mouseenter",c),n[t]("mouseleave",u),n[t]("wheel",p)}function f(){return e.params.cssMode?(e.wrapperEl.removeEventListener("wheel",p),!0):!e.mousewheel.enabled&&(h("addEventListener"),e.mousewheel.enabled=!0,!0)}function m(){return e.params.cssMode?(e.wrapperEl.addEventListener(event,p),!0):!!e.mousewheel.enabled&&(h("removeEventListener"),e.mousewheel.enabled=!1,!0)}n("init",()=>{!e.params.mousewheel.enabled&&e.params.cssMode&&m(),e.params.mousewheel.enabled&&f()}),n("destroy",()=>{e.params.cssMode&&f(),e.mousewheel.enabled&&m()}),Object.assign(e.mousewheel,{enable:f,disable:m})}function De(e,t,n,i){return e.params.createElements&&Object.keys(i).forEach(r=>{if(!n[r]&&!0===n.auto){let o=B(e.el,`.${i[r]}`)[0];o||(o=H("div",i[r]),o.className=i[r],e.el.append(o)),n[r]=o,t[r]=o}}),n}Object.keys(ke).forEach(e=>{Object.keys(ke[e]).forEach(t=>{Te.prototype[t]=ke[e][t]})}),Te.use([function({swiper:e,on:t,emit:n}){const i=A();let r=null,o=null;const s=()=>{e&&!e.destroyed&&e.initialized&&(n("beforeResize"),n("resize"))},a=()=>{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=>{o=i.requestAnimationFrame(()=>{const{width:n,height:i}=e;let r=n,o=i;t.forEach(({contentBoxSize:t,contentRect:n,target:i})=>{i&&i!==e.el||(r=n?n.width:(t[0]||t).inlineSize,o=n?n.height:(t[0]||t).blockSize)}),r===n&&o===i||s()})}),r.observe(e.el)):(i.addEventListener("resize",s),i.addEventListener("orientationchange",a))}),t("destroy",()=>{o&&i.cancelAnimationFrame(o),r&&r.unobserve&&e.el&&(r.unobserve(e.el),r=null),i.removeEventListener("resize",s),i.removeEventListener("orientationchange",a)})},function({swiper:e,extendParams:t,on:n,emit:i}){const r=[],o=A(),s=(t,n={})=>{const s=new(o.MutationObserver||o.WebkitMutationObserver)(t=>{if(e.__preventObserver__)return;if(1===t.length)return void i("observerUpdate",t[0]);const n=function(){i("observerUpdate",t[0])};o.requestAnimationFrame?o.requestAnimationFrame(n):o.setTimeout(n,0)});s.observe(t,{attributes:void 0===n.attributes||n.attributes,childList:e.isElement||(void 0===n.childList||n).childList,characterData:void 0===n.characterData||n.characterData}),r.push(s)};t({observer:!1,observeParents:!1,observeSlideChildren:!1}),n("init",()=>{if(e.params.observer){if(e.params.observeParents){const t=q(e.hostEl);for(let e=0;e<t.length;e+=1)s(t[e])}s(e.hostEl,{childList:e.params.observeSlideChildren}),s(e.wrapperEl,{attributes:!1})}}),n("destroy",()=>{r.forEach(e=>{e.disconnect()}),r.splice(0,r.length)})}]);const Me='<svg class="swiper-navigation-icon" width="11" height="20" viewBox="0 0 11 20" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M0.38296 20.0762C0.111788 19.805 0.111788 19.3654 0.38296 19.0942L9.19758 10.2796L0.38296 1.46497C0.111788 1.19379 0.111788 0.754138 0.38296 0.482966C0.654131 0.211794 1.09379 0.211794 1.36496 0.482966L10.4341 9.55214C10.8359 9.9539 10.8359 10.6053 10.4341 11.007L1.36496 20.0762C1.09379 20.3474 0.654131 20.3474 0.38296 20.0762Z" fill="currentColor"/></svg>';function Le({swiper:e,extendParams:t,on:n,emit:i}){function r(t){let n;return t&&"string"==typeof t&&e.isElement&&(n=e.el.querySelector(t)||e.hostEl.querySelector(t),n)?n:(t&&("string"==typeof t&&(n=[...document.querySelectorAll(t)]),e.params.uniqueNavElements&&"string"==typeof t&&n&&n.length>1&&1===e.el.querySelectorAll(t).length?n=e.el.querySelector(t):n&&1===n.length&&(n=n[0])),t&&!n?t:n)}function o(t,n){const i=e.params.navigation;(t=$(t)).forEach(t=>{t&&(t.classList[n?"add":"remove"](...i.disabledClass.split(" ")),"BUTTON"===t.tagName&&(t.disabled=n),e.params.watchOverflow&&e.enabled&&t.classList[e.isLocked?"add":"remove"](i.lockClass))})}function s(){const{nextEl:t,prevEl:n}=e.navigation;if(e.params.loop)return o(n,!1),void o(t,!1);o(n,e.isBeginning&&!e.params.rewind),o(t,e.isEnd&&!e.params.rewind)}function a(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=De(e,e.originalParams.navigation,e.params.navigation,{nextEl:"swiper-button-next",prevEl:"swiper-button-prev"}),!t.nextEl&&!t.prevEl)return;let n=r(t.nextEl),i=r(t.prevEl);Object.assign(e.navigation,{nextEl:n,prevEl:i}),n=$(n),i=$(i);const o=(n,i)=>{if(n){if(t.addIcons&&n.matches(".swiper-button-next,.swiper-button-prev")&&!n.querySelector("svg")){const e=document.createElement("div");G(e,Me),n.appendChild(e.querySelector("svg")),e.remove()}n.addEventListener("click","next"===i?l:a)}!e.enabled&&n&&n.classList.add(...t.lockClass.split(" "))};n.forEach(e=>o(e,"next")),i.forEach(e=>o(e,"prev"))}function u(){let{nextEl:t,prevEl:n}=e.navigation;t=$(t),n=$(n);const i=(t,n)=>{t.removeEventListener("click","next"===n?l:a),t.classList.remove(...e.params.navigation.disabledClass.split(" "))};t.forEach(e=>i(e,"next")),n.forEach(e=>i(e,"prev"))}t({navigation:{nextEl:null,prevEl:null,addIcons:!0,hideOnClick:!1,disabledClass:"swiper-button-disabled",hiddenClass:"swiper-button-hidden",lockClass:"swiper-button-lock",navigationDisabledClass:"swiper-navigation-disabled"}}),e.navigation={nextEl:null,prevEl:null,arrowSvg:Me},n("init",()=>{!1===e.params.navigation.enabled?d():(c(),s())}),n("toEdge fromEdge lock unlock",()=>{s()}),n("destroy",()=>{u()}),n("enable disable",()=>{let{nextEl:t,prevEl:n}=e.navigation;t=$(t),n=$(n),e.enabled?s():[...t,...n].filter(e=>!!e).forEach(t=>t.classList.add(e.params.navigation.lockClass))}),n("click",(t,n)=>{let{nextEl:r,prevEl:o}=e.navigation;r=$(r),o=$(o);const s=n.target;let a=o.includes(s)||r.includes(s);if(e.isElement&&!a){const e=n.path||n.composedPath&&n.composedPath();e&&(a=e.find(e=>r.includes(e)||o.includes(e)))}if(e.params.navigation.hideOnClick&&!a){if(e.pagination&&e.params.pagination&&e.params.pagination.clickable&&(e.pagination.el===s||e.pagination.el.contains(s)))return;let t;r.length?t=r[0].classList.contains(e.params.navigation.hiddenClass):o.length&&(t=o[0].classList.contains(e.params.navigation.hiddenClass)),i(!0===t?"navigationShow":"navigationHide"),[...r,...o].filter(e=>!!e).forEach(t=>t.classList.toggle(e.params.navigation.hiddenClass))}});const d=()=>{e.el.classList.add(...e.params.navigation.navigationDisabledClass.split(" ")),u()};Object.assign(e.navigation,{enable:()=>{e.el.classList.remove(...e.params.navigation.navigationDisabledClass.split(" ")),c(),s()},disable:d,update:s,init:c,destroy:u})}function Pe(e=""){return`.${e.trim().replace(/([\.:!+\/()[\]#>~*^$|=,'"@{}\\])/g,"\\$1").replace(/ /g,".")}`}function Ie({swiper:e,extendParams:t,on:n,emit:i}){const r="swiper-pagination";let o;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,bullets:[]};let s=0;function a(){return!e.params.pagination.el||!e.pagination.el||Array.isArray(e.pagination.el)&&0===e.pagination.el.length}function l(t,n){const{bulletActiveClass:i}=e.params.pagination;t&&(t=t[("prev"===n?"previous":"next")+"ElementSibling"])&&(t.classList.add(`${i}-${n}`),(t=t[("prev"===n?"previous":"next")+"ElementSibling"])&&t.classList.add(`${i}-${n}-${n}`))}function c(t){const n=t.target.closest(Pe(e.params.pagination.bulletClass));if(!n)return;t.preventDefault();const i=j(n)*e.params.slidesPerGroup;if(e.params.loop){if(e.realIndex===i)return;const t=(r=e.realIndex,o=i,(o%=s=e.slides.length)===1+(r%=s)?"next":o===r-1?"previous":void 0);"next"===t?e.slideNext():"previous"===t?e.slidePrev():e.slideToLoop(i)}else e.slideTo(i);var r,o,s}function u(){const t=e.rtl,n=e.params.pagination;if(a())return;let r,c,u=e.pagination.el;u=$(u);const d=e.virtual&&e.params.virtual.enabled?e.virtual.slides.length:e.slides.length,p=e.params.loop?Math.ceil(d/e.params.slidesPerGroup):e.snapGrid.length;if(e.params.loop?(c=e.previousRealIndex||0,r=e.params.slidesPerGroup>1?Math.floor(e.realIndex/e.params.slidesPerGroup):e.realIndex):void 0!==e.snapIndex?(r=e.snapIndex,c=e.previousSnapIndex):(c=e.previousIndex||0,r=e.activeIndex||0),"bullets"===n.type&&e.pagination.bullets&&e.pagination.bullets.length>0){const i=e.pagination.bullets;let a,d,p;if(n.dynamicBullets&&(o=U(i[0],e.isHorizontal()?"width":"height"),u.forEach(t=>{t.style[e.isHorizontal()?"width":"height"]=o*(n.dynamicMainBullets+4)+"px"}),n.dynamicMainBullets>1&&void 0!==c&&(s+=r-(c||0),s>n.dynamicMainBullets-1?s=n.dynamicMainBullets-1:s<0&&(s=0)),a=Math.max(r-s,0),d=a+(Math.min(i.length,n.dynamicMainBullets)-1),p=(d+a)/2),i.forEach(e=>{const t=[...["","-next","-next-next","-prev","-prev-prev","-main"].map(e=>`${n.bulletActiveClass}${e}`)].map(e=>"string"==typeof e&&e.includes(" ")?e.split(" "):e).flat();e.classList.remove(...t)}),u.length>1)i.forEach(t=>{const i=j(t);i===r?t.classList.add(...n.bulletActiveClass.split(" ")):e.isElement&&t.setAttribute("part","bullet"),n.dynamicBullets&&(i>=a&&i<=d&&t.classList.add(...`${n.bulletActiveClass}-main`.split(" ")),i===a&&l(t,"prev"),i===d&&l(t,"next"))});else{const t=i[r];if(t&&t.classList.add(...n.bulletActiveClass.split(" ")),e.isElement&&i.forEach((e,t)=>{e.setAttribute("part",t===r?"bullet-active":"bullet")}),n.dynamicBullets){const e=i[a],t=i[d];for(let e=a;e<=d;e+=1)i[e]&&i[e].classList.add(...`${n.bulletActiveClass}-main`.split(" "));l(e,"prev"),l(t,"next")}}if(n.dynamicBullets){const r=Math.min(i.length,n.dynamicMainBullets+4),s=(o*r-o)/2-p*o,a=t?"right":"left";i.forEach(t=>{t.style[e.isHorizontal()?a:"top"]=`${s}px`})}}u.forEach((t,o)=>{if("fraction"===n.type&&(t.querySelectorAll(Pe(n.currentClass)).forEach(e=>{e.textContent=n.formatFractionCurrent(r+1)}),t.querySelectorAll(Pe(n.totalClass)).forEach(e=>{e.textContent=n.formatFractionTotal(p)})),"progressbar"===n.type){let i;i=n.progressbarOpposite?e.isHorizontal()?"vertical":"horizontal":e.isHorizontal()?"horizontal":"vertical";const o=(r+1)/p;let s=1,a=1;"horizontal"===i?s=o:a=o,t.querySelectorAll(Pe(n.progressbarFillClass)).forEach(t=>{t.style.transform=`translate3d(0,0,0) scaleX(${s}) scaleY(${a})`,t.style.transitionDuration=`${e.params.speed}ms`})}"custom"===n.type&&n.renderCustom?(G(t,n.renderCustom(e,r+1,p)),0===o&&i("paginationRender",t)):(0===o&&i("paginationRender",t),i("paginationUpdate",t)),e.params.watchOverflow&&e.enabled&&t.classList[e.isLocked?"add":"remove"](n.lockClass)})}function d(){const t=e.params.pagination;if(a())return;const n=e.virtual&&e.params.virtual.enabled?e.virtual.slides.length:e.grid&&e.params.grid.rows>1?e.slides.length/Math.ceil(e.params.grid.rows):e.slides.length;let r=e.pagination.el;r=$(r);let o="";if("bullets"===t.type){let i=e.params.loop?Math.ceil(n/e.params.slidesPerGroup):e.snapGrid.length;e.params.freeMode&&e.params.freeMode.enabled&&i>n&&(i=n);for(let n=0;n<i;n+=1)t.renderBullet?o+=t.renderBullet.call(e,n,t.bulletClass):o+=`<${t.bulletElement} ${e.isElement?'part="bullet"':""} class="${t.bulletClass}"></${t.bulletElement}>`}"fraction"===t.type&&(o=t.renderFraction?t.renderFraction.call(e,t.currentClass,t.totalClass):`<span class="${t.currentClass}"></span> / <span class="${t.totalClass}"></span>`),"progressbar"===t.type&&(o=t.renderProgressbar?t.renderProgressbar.call(e,t.progressbarFillClass):`<span class="${t.progressbarFillClass}"></span>`),e.pagination.bullets=[],r.forEach(n=>{"custom"!==t.type&&G(n,o||""),"bullets"===t.type&&e.pagination.bullets.push(...n.querySelectorAll(Pe(t.bulletClass)))}),"custom"!==t.type&&i("paginationRender",r[0])}function p(){e.params.pagination=De(e,e.originalParams.pagination,e.params.pagination,{el:"swiper-pagination"});const t=e.params.pagination;if(!t.el)return;let n;"string"==typeof t.el&&e.isElement&&(n=e.el.querySelector(t.el)),n||"string"!=typeof t.el||(n=[...document.querySelectorAll(t.el)]),n||(n=t.el),n&&0!==n.length&&(e.params.uniqueNavElements&&"string"==typeof t.el&&Array.isArray(n)&&n.length>1&&(n=[...e.el.querySelectorAll(t.el)],n.length>1&&(n=n.find(t=>q(t,".swiper")[0]===e.el))),Array.isArray(n)&&1===n.length&&(n=n[0]),Object.assign(e.pagination,{el:n}),n=$(n),n.forEach(n=>{"bullets"===t.type&&t.clickable&&n.classList.add(...(t.clickableClass||"").split(" ")),n.classList.add(t.modifierClass+t.type),n.classList.add(e.isHorizontal()?t.horizontalClass:t.verticalClass),"bullets"===t.type&&t.dynamicBullets&&(n.classList.add(`${t.modifierClass}${t.type}-dynamic`),s=0,t.dynamicMainBullets<1&&(t.dynamicMainBullets=1)),"progressbar"===t.type&&t.progressbarOpposite&&n.classList.add(t.progressbarOppositeClass),t.clickable&&n.addEventListener("click",c),e.enabled||n.classList.add(t.lockClass)}))}function h(){const t=e.params.pagination;if(a())return;let n=e.pagination.el;n&&(n=$(n),n.forEach(n=>{n.classList.remove(t.hiddenClass),n.classList.remove(t.modifierClass+t.type),n.classList.remove(e.isHorizontal()?t.horizontalClass:t.verticalClass),t.clickable&&(n.classList.remove(...(t.clickableClass||"").split(" ")),n.removeEventListener("click",c))})),e.pagination.bullets&&e.pagination.bullets.forEach(e=>e.classList.remove(...t.bulletActiveClass.split(" ")))}n("changeDirection",()=>{if(!e.pagination||!e.pagination.el)return;const t=e.params.pagination;let{el:n}=e.pagination;n=$(n),n.forEach(n=>{n.classList.remove(t.horizontalClass,t.verticalClass),n.classList.add(e.isHorizontal()?t.horizontalClass:t.verticalClass)})}),n("init",()=>{!1===e.params.pagination.enabled?f():(p(),d(),u())}),n("activeIndexChange",()=>{void 0===e.snapIndex&&u()}),n("snapIndexChange",()=>{u()}),n("snapGridLengthChange",()=>{d(),u()}),n("destroy",()=>{h()}),n("enable disable",()=>{let{el:t}=e.pagination;t&&(t=$(t),t.forEach(t=>t.classList[e.enabled?"remove":"add"](e.params.pagination.lockClass)))}),n("lock unlock",()=>{u()}),n("click",(t,n)=>{const r=n.target,o=$(e.pagination.el);if(e.params.pagination.el&&e.params.pagination.hideOnClick&&o&&o.length>0&&!r.classList.contains(e.params.pagination.bulletClass)){if(e.navigation&&(e.navigation.nextEl&&r===e.navigation.nextEl||e.navigation.prevEl&&r===e.navigation.prevEl))return;const t=o[0].classList.contains(e.params.pagination.hiddenClass);i(!0===t?"paginationShow":"paginationHide"),o.forEach(t=>t.classList.toggle(e.params.pagination.hiddenClass))}});const f=()=>{e.el.classList.add(e.params.pagination.paginationDisabledClass);let{el:t}=e.pagination;t&&(t=$(t),t.forEach(t=>t.classList.add(e.params.pagination.paginationDisabledClass))),h()};Object.assign(e.pagination,{enable:()=>{e.el.classList.remove(e.params.pagination.paginationDisabledClass);let{el:t}=e.pagination;t&&(t=$(t),t.forEach(t=>t.classList.remove(e.params.pagination.paginationDisabledClass))),p(),d(),u()},disable:f,render:d,update:u,init:p,destroy:h})}function Ne({swiper:e,extendParams:t,on:n,emit:i}){const r=C();let o,s,a,l,c=!1,u=null,d=null;function p(){if(!e.params.scrollbar.el||!e.scrollbar.el)return;const{scrollbar:t,rtlTranslate:n}=e,{dragEl:i,el:r}=t,o=e.params.scrollbar,l=e.params.loop?e.progressLoop:e.progress;let c=s,d=(a-s)*l;n?(d=-d,d>0?(c=s-d,d=0):-d+s>a&&(c=a+d)):d<0?(c=s+d,d=0):d+s>a&&(c=a-d),e.isHorizontal()?(i.style.transform=`translate3d(${d}px, 0, 0)`,i.style.width=`${c}px`):(i.style.transform=`translate3d(0px, ${d}px, 0)`,i.style.height=`${c}px`),o.hide&&(clearTimeout(u),r.style.opacity=1,u=setTimeout(()=>{r.style.opacity=0,r.style.transitionDuration="400ms"},1e3))}function h(){if(!e.params.scrollbar.el||!e.scrollbar.el)return;const{scrollbar:t}=e,{dragEl:n,el:i}=t;n.style.width="",n.style.height="",a=e.isHorizontal()?i.offsetWidth:i.offsetHeight,l=e.size/(e.virtualSize+e.params.slidesOffsetBefore-(e.params.centeredSlides?e.snapGrid[0]:0)),s="auto"===e.params.scrollbar.dragSize?a*l:parseInt(e.params.scrollbar.dragSize,10),e.isHorizontal()?n.style.width=`${s}px`:n.style.height=`${s}px`,i.style.display=l>=1?"none":"",e.params.scrollbar.hide&&(i.style.opacity=0),e.params.watchOverflow&&e.enabled&&t.el.classList[e.isLocked?"add":"remove"](e.params.scrollbar.lockClass)}function f(t){return e.isHorizontal()?t.clientX:t.clientY}function m(t){const{scrollbar:n,rtlTranslate:i}=e,{el:r}=n;let l;l=(f(t)-F(r)[e.isHorizontal()?"left":"top"]-(null!==o?o:s/2))/(a-s),l=Math.max(Math.min(l,1),0),i&&(l=1-l);const c=e.minTranslate()+(e.maxTranslate()-e.minTranslate())*l;e.updateProgress(c),e.setTranslate(c),e.updateActiveIndex(),e.updateSlidesClasses()}function v(t){const n=e.params.scrollbar,{scrollbar:r,wrapperEl:s}=e,{el:a,dragEl:l}=r;c=!0,o=t.target===l?f(t)-t.target.getBoundingClientRect()[e.isHorizontal()?"left":"top"]:null,t.preventDefault(),t.stopPropagation(),s.style.transitionDuration="100ms",l.style.transitionDuration="100ms",m(t),clearTimeout(d),a.style.transitionDuration="0ms",n.hide&&(a.style.opacity=1),e.params.cssMode&&(e.wrapperEl.style["scroll-snap-type"]="none"),i("scrollbarDragStart",t)}function g(t){const{scrollbar:n,wrapperEl:r}=e,{el:o,dragEl:s}=n;c&&(t.preventDefault&&t.cancelable?t.preventDefault():t.returnValue=!1,m(t),r.style.transitionDuration="0ms",o.style.transitionDuration="0ms",s.style.transitionDuration="0ms",i("scrollbarDragMove",t))}function y(t){const n=e.params.scrollbar,{scrollbar:r,wrapperEl:o}=e,{el:s}=r;c&&(c=!1,e.params.cssMode&&(e.wrapperEl.style["scroll-snap-type"]="",o.style.transitionDuration=""),n.hide&&(clearTimeout(d),d=D(()=>{s.style.opacity=0,s.style.transitionDuration="400ms"},1e3)),i("scrollbarDragEnd",t),n.snapOnRelease&&e.slideToClosest())}function b(t){const{scrollbar:n,params:i}=e,o=n.el;if(!o)return;const s=o,a=!!i.passiveListeners&&{passive:!1,capture:!1},l=!!i.passiveListeners&&{passive:!0,capture:!1};if(!s)return;const c="on"===t?"addEventListener":"removeEventListener";s[c]("pointerdown",v,a),r[c]("pointermove",g,a),r[c]("pointerup",y,l)}function w(){const{scrollbar:t,el:n}=e;e.params.scrollbar=De(e,e.originalParams.scrollbar,e.params.scrollbar,{el:"swiper-scrollbar"});const i=e.params.scrollbar;if(!i.el)return;let o,s;if("string"==typeof i.el&&e.isElement&&(o=e.el.querySelector(i.el)),o||"string"!=typeof i.el)o||(o=i.el);else if(o=r.querySelectorAll(i.el),!o.length)return;e.params.uniqueNavElements&&"string"==typeof i.el&&o.length>1&&1===n.querySelectorAll(i.el).length&&(o=n.querySelector(i.el)),o.length>0&&(o=o[0]),o.classList.add(e.isHorizontal()?i.horizontalClass:i.verticalClass),o&&(s=o.querySelector(Pe(e.params.scrollbar.dragClass)),s||(s=H("div",e.params.scrollbar.dragClass),o.append(s))),Object.assign(t,{el:o,dragEl:s}),i.draggable&&e.params.scrollbar.el&&e.scrollbar.el&&b("on"),o&&o.classList[e.enabled?"remove":"add"](...O(e.params.scrollbar.lockClass))}function _(){const t=e.params.scrollbar,n=e.scrollbar.el;n&&n.classList.remove(...O(e.isHorizontal()?t.horizontalClass:t.verticalClass)),e.params.scrollbar.el&&e.scrollbar.el&&b("off")}t({scrollbar:{el:null,dragSize:"auto",hide:!1,draggable:!1,snapOnRelease:!0,lockClass:"swiper-scrollbar-lock",dragClass:"swiper-scrollbar-drag",scrollbarDisabledClass:"swiper-scrollbar-disabled",horizontalClass:"swiper-scrollbar-horizontal",verticalClass:"swiper-scrollbar-vertical"}}),e.scrollbar={el:null,dragEl:null},n("changeDirection",()=>{if(!e.scrollbar||!e.scrollbar.el)return;const t=e.params.scrollbar;let{el:n}=e.scrollbar;n=$(n),n.forEach(n=>{n.classList.remove(t.horizontalClass,t.verticalClass),n.classList.add(e.isHorizontal()?t.horizontalClass:t.verticalClass)})}),n("init",()=>{!1===e.params.scrollbar.enabled?S():(w(),h(),p())}),n("update resize observerUpdate lock unlock changeDirection",()=>{h()}),n("setTranslate",()=>{p()}),n("setTransition",(t,n)=>{!function(t){e.params.scrollbar.el&&e.scrollbar.el&&(e.scrollbar.dragEl.style.transitionDuration=`${t}ms`)}(n)}),n("enable disable",()=>{const{el:t}=e.scrollbar;t&&t.classList[e.enabled?"remove":"add"](...O(e.params.scrollbar.lockClass))}),n("destroy",()=>{_()});const S=()=>{e.el.classList.add(...O(e.params.scrollbar.scrollbarDisabledClass)),e.scrollbar.el&&e.scrollbar.el.classList.add(...O(e.params.scrollbar.scrollbarDisabledClass)),_()};Object.assign(e.scrollbar,{enable:()=>{e.el.classList.remove(...O(e.params.scrollbar.scrollbarDisabledClass)),e.scrollbar.el&&e.scrollbar.el.classList.remove(...O(e.params.scrollbar.scrollbarDisabledClass)),w(),h(),p()},disable:S,updateSize:h,setTranslate:p,init:w,destroy:_})}function Re({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,containerRole:null,itemRoleDescriptionMessage:null,slideRole:"group",id:null,scrollOnFocus:!0,wrapperLiveRegion:!0}}),e.a11y={clicked:!1};let i,r,o=null,s=(new Date).getTime();function a(e){const t=o;0!==t.length&&G(t,e)}function l(e){(e=$(e)).forEach(e=>{e.setAttribute("tabIndex","0")})}function c(e){(e=$(e)).forEach(e=>{e.setAttribute("tabIndex","-1")})}function u(e,t){(e=$(e)).forEach(e=>{e.setAttribute("role",t)})}function d(e,t){(e=$(e)).forEach(e=>{e.setAttribute("aria-roledescription",t)})}function p(e,t){(e=$(e)).forEach(e=>{e.setAttribute("aria-label",t)})}function h(e){(e=$(e)).forEach(e=>{e.setAttribute("aria-disabled",!0)})}function f(e){(e=$(e)).forEach(e=>{e.setAttribute("aria-disabled",!1)})}function m(t){if(13!==t.keyCode&&32!==t.keyCode)return;const n=e.params.a11y,i=t.target;if(!e.pagination||!e.pagination.el||i!==e.pagination.el&&!e.pagination.el.contains(t.target)||t.target.matches(Pe(e.params.pagination.bulletClass))){if(e.navigation&&e.navigation.prevEl&&e.navigation.nextEl){const t=$(e.navigation.prevEl);$(e.navigation.nextEl).includes(i)&&(e.isEnd&&!e.params.loop||e.slideNext(),e.isEnd?a(n.lastSlideMessage):a(n.nextSlideMessage)),t.includes(i)&&(e.isBeginning&&!e.params.loop||e.slidePrev(),e.isBeginning?a(n.firstSlideMessage):a(n.prevSlideMessage))}e.pagination&&i.matches(Pe(e.params.pagination.bulletClass))&&i.click()}}function v(){return e.pagination&&e.pagination.bullets&&e.pagination.bullets.length}function g(){return v()&&e.params.pagination.clickable}const y=(e,t,n)=>{l(e),"BUTTON"!==e.tagName&&(u(e,"button"),e.addEventListener("keydown",m)),p(e,n),function(e,t){(e=$(e)).forEach(e=>{e.setAttribute("aria-controls",t)})}(e,t)},b=t=>{r&&r!==t.target&&!r.contains(t.target)&&(i=!0),e.a11y.clicked=!0},w=()=>{i=!1,requestAnimationFrame(()=>{requestAnimationFrame(()=>{e.destroyed||(e.a11y.clicked=!1)})})},_=e=>{s=(new Date).getTime()},S=t=>{if(e.a11y.clicked||!e.params.a11y.scrollOnFocus)return;if((new Date).getTime()-s<100)return;const n=t.target.closest(`.${e.params.slideClass}, swiper-slide`);if(!n||!e.slides.includes(n))return;r=n;const o=e.virtual&&e.params.virtual.enabled,a=(o?parseInt(n.getAttribute("data-swiper-slide-index"),10):e.slides.indexOf(n))===e.activeIndex,l=e.params.watchSlidesProgress&&e.visibleSlides&&e.visibleSlides.includes(n);a||l||t.sourceCapabilities&&t.sourceCapabilities.firesTouchEvents||(e.isHorizontal()?e.el.scrollLeft=0:e.el.scrollTop=0,requestAnimationFrame(()=>{i||(e.params.loop?e.slideToLoop(e.getSlideIndexWhenGrid(parseInt(n.getAttribute("data-swiper-slide-index"))),0):o?e.slideTo(e.getSlideIndexWhenGrid(parseInt(n.getAttribute("data-swiper-slide-index"),10)),0):e.slideTo(e.getSlideIndexWhenGrid(e.slides.indexOf(n)),0),i=!1)}))},E=()=>{const t=e.params.a11y;t.itemRoleDescriptionMessage&&d(e.slides,t.itemRoleDescriptionMessage),t.slideRole&&u(e.slides,t.slideRole);const n=e.slides.length;t.slideLabelMessage&&e.slides.forEach((i,r)=>{const o=e.params.loop?parseInt(i.getAttribute("data-swiper-slide-index"),10):r;p(i,t.slideLabelMessage.replace(/\{\{index\}\}/,o+1).replace(/\{\{slidesLength\}\}/,n))})};n("beforeInit",()=>{o=H("span",e.params.a11y.notificationClass),o.setAttribute("aria-live","assertive"),o.setAttribute("aria-atomic","true")}),n("afterInit",()=>{e.params.a11y.enabled&&(()=>{const t=e.params.a11y;e.el.append(o);const n=e.el;t.containerRoleDescriptionMessage&&d(n,t.containerRoleDescriptionMessage),t.containerMessage&&p(n,t.containerMessage),t.containerRole&&u(n,t.containerRole);const i=e.wrapperEl,r=t.id||i.getAttribute("id")||`swiper-wrapper-${function(e=16){return"x".repeat(e).replace(/x/g,()=>Math.round(16*Math.random()).toString(16))}(16)}`;var s,a,l;s=r,$(i).forEach(e=>{e.setAttribute("id",s)}),t.wrapperLiveRegion&&(a=i,l=e.params.autoplay&&e.params.autoplay.enabled?"off":"polite",(a=$(a)).forEach(e=>{e.setAttribute("aria-live",l)})),E();let{nextEl:c,prevEl:h}=e.navigation?e.navigation:{};c=$(c),h=$(h),c&&c.forEach(e=>y(e,r,t.nextSlideMessage)),h&&h.forEach(e=>y(e,r,t.prevSlideMessage)),g()&&$(e.pagination.el).forEach(e=>{e.addEventListener("keydown",m)}),C().addEventListener("visibilitychange",_),e.el.addEventListener("focus",S,!0),e.el.addEventListener("pointerdown",b,!0),e.el.addEventListener("pointerup",w,!0)})()}),n("slidesLengthChange snapGridLengthChange slidesGridLengthChange",()=>{e.params.a11y.enabled&&E()}),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&&(e.isBeginning?(h(n),c(n)):(f(n),l(n))),t&&(e.isEnd?(h(t),c(t)):(f(t),l(t)))}()}),n("paginationUpdate",()=>{e.params.a11y.enabled&&function(){const t=e.params.a11y;v()&&e.pagination.bullets.forEach(n=>{e.params.pagination.clickable&&(l(n),e.params.pagination.renderBullet||(u(n,"button"),p(n,t.paginationBulletMessage.replace(/\{\{index\}\}/,j(n)+1)))),n.matches(Pe(e.params.pagination.bulletActiveClass))?n.setAttribute("aria-current","true"):n.removeAttribute("aria-current")})}()}),n("destroy",()=>{e.params.a11y.enabled&&function(){o&&o.remove();let{nextEl:t,prevEl:n}=e.navigation?e.navigation:{};t=$(t),n=$(n),t&&t.forEach(e=>e.removeEventListener("keydown",m)),n&&n.forEach(e=>e.removeEventListener("keydown",m)),g()&&$(e.pagination.el).forEach(e=>{e.removeEventListener("keydown",m)}),C().removeEventListener("visibilitychange",_),e.el&&"string"!=typeof e.el&&(e.el.removeEventListener("focus",S,!0),e.el.removeEventListener("pointerdown",b,!0),e.el.removeEventListener("pointerup",w,!0))}()})}function Be({swiper:e,extendParams:t,on:n,emit:i,params:r}){let o,s;e.autoplay={running:!1,paused:!1,timeLeft:0},t({autoplay:{enabled:!1,delay:3e3,waitForTransition:!0,disableOnInteraction:!1,stopOnLastSlide:!1,reverseDirection:!1,pauseOnMouseEnter:!1}});let a,l,c,u,d,p,h,f=r&&r.autoplay?r.autoplay.delay:3e3,m=r&&r.autoplay?r.autoplay.delay:3e3,v=(new Date).getTime();function g(t){e&&!e.destroyed&&e.wrapperEl&&t.target===e.wrapperEl&&(e.wrapperEl.removeEventListener("transitionend",g),h||t.detail&&t.detail.bySwiperTouchMove||x())}const y=()=>{if(e.destroyed||!e.autoplay.running)return;e.autoplay.paused?l=!0:l&&(m=a,l=!1);const t=e.autoplay.paused?a:v+m-(new Date).getTime();e.autoplay.timeLeft=t,i("autoplayTimeLeft",t,t/f),s=requestAnimationFrame(()=>{y()})},b=()=>{let t=e.params.autoplay.delay;const n=(()=>{let t;if(t=e.virtual&&e.params.virtual.enabled?e.slides.find(e=>e.classList.contains("swiper-slide-active")):e.slides[e.activeIndex],t)return parseInt(t.getAttribute("data-swiper-autoplay"),10)})();return!Number.isNaN(n)&&n>0&&(t=n),t},w=t=>{if(e.destroyed||!e.autoplay.running)return;cancelAnimationFrame(s),y();let n=t;void 0===n&&(n=b(),f=n,m=n),a=n;const r=e.params.speed,l=()=>{e&&!e.destroyed&&(e.params.autoplay.reverseDirection?!e.isBeginning||e.params.loop||e.params.rewind?(e.slidePrev(r,!0,!0),i("autoplay")):e.params.autoplay.stopOnLastSlide||(e.slideTo(e.slides.length-1,r,!0,!0),i("autoplay")):!e.isEnd||e.params.loop||e.params.rewind?(e.slideNext(r,!0,!0),i("autoplay")):e.params.autoplay.stopOnLastSlide||(e.slideTo(0,r,!0,!0),i("autoplay")),e.params.cssMode&&(v=(new Date).getTime(),requestAnimationFrame(()=>{w()})))};return n>0?(clearTimeout(o),o=setTimeout(()=>{l()},n)):requestAnimationFrame(()=>{l()}),n},_=()=>{v=(new Date).getTime(),e.autoplay.running=!0,w(),i("autoplayStart")},S=()=>{e.autoplay.running=!1,clearTimeout(o),cancelAnimationFrame(s),i("autoplayStop")},E=(t,n)=>{if(e.destroyed||!e.autoplay.running)return;clearTimeout(o),t||(p=!0);const r=()=>{i("autoplayPause"),e.params.autoplay.waitForTransition?e.wrapperEl.addEventListener("transitionend",g):x()};if(e.autoplay.paused=!0,n)return void r();const s=a||e.params.autoplay.delay;a=s-((new Date).getTime()-v),e.isEnd&&a<0&&!e.params.loop||(a<0&&(a=0),r())},x=()=>{e.isEnd&&a<0&&!e.params.loop||e.destroyed||!e.autoplay.running||(v=(new Date).getTime(),p?(p=!1,w(a)):w(),e.autoplay.paused=!1,i("autoplayResume"))},k=()=>{if(e.destroyed||!e.autoplay.running)return;const t=C();"hidden"===t.visibilityState&&(p=!0,E(!0)),"visible"===t.visibilityState&&x()},T=t=>{"mouse"===t.pointerType&&(p=!0,h=!0,e.animating||e.autoplay.paused||E(!0))},A=t=>{"mouse"===t.pointerType&&(h=!1,e.autoplay.paused&&x())};n("init",()=>{e.params.autoplay.enabled&&(e.params.autoplay.pauseOnMouseEnter&&(e.el.addEventListener("pointerenter",T),e.el.addEventListener("pointerleave",A)),C().addEventListener("visibilitychange",k),_())}),n("destroy",()=>{e.el&&"string"!=typeof e.el&&(e.el.removeEventListener("pointerenter",T),e.el.removeEventListener("pointerleave",A)),C().removeEventListener("visibilitychange",k),e.autoplay.running&&S()}),n("_freeModeStaticRelease",()=>{(u||p)&&x()}),n("_freeModeNoMomentumRelease",()=>{e.params.autoplay.disableOnInteraction?S():E(!0,!0)}),n("beforeTransitionStart",(t,n,i)=>{!e.destroyed&&e.autoplay.running&&(i||!e.params.autoplay.disableOnInteraction?E(!0,!0):S())}),n("sliderFirstMove",()=>{!e.destroyed&&e.autoplay.running&&(e.params.autoplay.disableOnInteraction?S():(c=!0,u=!1,p=!1,d=setTimeout(()=>{p=!0,u=!0,E(!0)},200)))}),n("touchEnd",()=>{if(!e.destroyed&&e.autoplay.running&&c){if(clearTimeout(d),clearTimeout(o),e.params.autoplay.disableOnInteraction)return u=!1,void(c=!1);u&&e.params.cssMode&&x(),u=!1,c=!1}}),n("slideChange",()=>{!e.destroyed&&e.autoplay.running&&e.autoplay.paused&&(a=b(),f=b())}),Object.assign(e.autoplay,{start:_,stop:S,pause:E,resume:x})}function ze({element:e,visibleClass:t,waitMode:n="transitionend",timeoutDuration:i,hideMode:r="hidden",displayValue:o="block"}){if("timeout"===n&&"number"!=typeof i)return;window.matchMedia("(prefers-reduced-motion: reduce)").matches&&(n="immediate");const s=t=>{t.target===e&&(a(),e.removeEventListener("transitionend",s))},a=()=>{"display"===r?e.style.display="none":e.setAttribute("hidden",!0)};return{show(){e.removeEventListener("transitionend",s),this.timeout&&clearTimeout(this.timeout),"display"===r?e.style.display=o:e.removeAttribute("hidden"),e.offsetHeight,e.classList.add(t)},hide(){"transitionend"===n?e.addEventListener("transitionend",s):"timeout"===n?this.timeout=setTimeout(()=>{a()},i):a(),e.classList.remove(t)},toggle(){this.isHidden()?this.show():this.hide()},isHidden(){const n=null!==e.getAttribute("hidden"),i="none"===e.style.display,r=[...e.classList].includes(t);return n||i||!r},timeout:null}}var He="top",Fe="bottom",Ve="right",je="left",qe="auto",Ue=[He,Fe,Ve,je],$e="start",Ge="end",We="viewport",Ye="popper",Xe=Ue.reduce(function(e,t){return e.concat([t+"-"+$e,t+"-"+Ge])},[]),Ke=[].concat(Ue,[qe]).reduce(function(e,t){return e.concat([t,t+"-"+$e,t+"-"+Ge])},[]),Je=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function Qe(e){return e?(e.nodeName||"").toLowerCase():null}function Ze(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function et(e){return e instanceof Ze(e).Element||e instanceof Element}function tt(e){return e instanceof Ze(e).HTMLElement||e instanceof HTMLElement}function nt(e){return"undefined"!=typeof ShadowRoot&&(e instanceof Ze(e).ShadowRoot||e instanceof ShadowRoot)}var it={name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach(function(e){var n=t.styles[e]||{},i=t.attributes[e]||{},r=t.elements[e];tt(r)&&Qe(r)&&(Object.assign(r.style,n),Object.keys(i).forEach(function(e){var t=i[e];!1===t?r.removeAttribute(e):r.setAttribute(e,!0===t?"":t)}))})},effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(e){var i=t.elements[e],r=t.attributes[e]||{},o=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce(function(e,t){return e[t]="",e},{});tt(i)&&Qe(i)&&(Object.assign(i.style,o),Object.keys(r).forEach(function(e){i.removeAttribute(e)}))})}},requires:["computeStyles"]};function rt(e){return e.split("-")[0]}var ot=Math.max,st=Math.min,at=Math.round;function lt(){var e=navigator.userAgentData;return null!=e&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function ct(){return!/^((?!chrome|android).)*safari/i.test(lt())}function ut(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);var i=e.getBoundingClientRect(),r=1,o=1;t&&tt(e)&&(r=e.offsetWidth>0&&at(i.width)/e.offsetWidth||1,o=e.offsetHeight>0&&at(i.height)/e.offsetHeight||1);var s=(et(e)?Ze(e):window).visualViewport,a=!ct()&&n,l=(i.left+(a&&s?s.offsetLeft:0))/r,c=(i.top+(a&&s?s.offsetTop:0))/o,u=i.width/r,d=i.height/o;return{width:u,height:d,top:c,right:l+u,bottom:c+d,left:l,x:l,y:c}}function dt(e){var t=ut(e),n=e.offsetWidth,i=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-i)<=1&&(i=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:i}}function pt(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&nt(n)){var i=t;do{if(i&&e.isSameNode(i))return!0;i=i.parentNode||i.host}while(i)}return!1}function ht(e){return Ze(e).getComputedStyle(e)}function ft(e){return["table","td","th"].indexOf(Qe(e))>=0}function mt(e){return((et(e)?e.ownerDocument:e.document)||window.document).documentElement}function vt(e){return"html"===Qe(e)?e:e.assignedSlot||e.parentNode||(nt(e)?e.host:null)||mt(e)}function gt(e){return tt(e)&&"fixed"!==ht(e).position?e.offsetParent:null}function yt(e){for(var t=Ze(e),n=gt(e);n&&ft(n)&&"static"===ht(n).position;)n=gt(n);return n&&("html"===Qe(n)||"body"===Qe(n)&&"static"===ht(n).position)?t:n||function(e){var t=/firefox/i.test(lt());if(/Trident/i.test(lt())&&tt(e)&&"fixed"===ht(e).position)return null;var n=vt(e);for(nt(n)&&(n=n.host);tt(n)&&["html","body"].indexOf(Qe(n))<0;){var i=ht(n);if("none"!==i.transform||"none"!==i.perspective||"paint"===i.contain||-1!==["transform","perspective"].indexOf(i.willChange)||t&&"filter"===i.willChange||t&&i.filter&&"none"!==i.filter)return n;n=n.parentNode}return null}(e)||t}function bt(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function wt(e,t,n){return ot(e,st(t,n))}function _t(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function St(e,t){return t.reduce(function(t,n){return t[n]=e,t},{})}var Et={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n=e.state,i=e.name,r=e.options,o=n.elements.arrow,s=n.modifiersData.popperOffsets,a=rt(n.placement),l=bt(a),c=[je,Ve].indexOf(a)>=0?"height":"width";if(o&&s){var u=function(e,t){return _t("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:St(e,Ue))}(r.padding,n),d=dt(o),p="y"===l?He:je,h="y"===l?Fe:Ve,f=n.rects.reference[c]+n.rects.reference[l]-s[l]-n.rects.popper[c],m=s[l]-n.rects.reference[l],v=yt(o),g=v?"y"===l?v.clientHeight||0:v.clientWidth||0:0,y=f/2-m/2,b=u[p],w=g-d[c]-u[h],_=g/2-d[c]/2+y,S=wt(b,_,w),E=l;n.modifiersData[i]=((t={})[E]=S,t.centerOffset=S-_,t)}},effect:function(e){var t=e.state,n=e.options.element,i=void 0===n?"[data-popper-arrow]":n;null!=i&&("string"!=typeof i||(i=t.elements.popper.querySelector(i)))&&pt(t.elements.popper,i)&&(t.elements.arrow=i)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function xt(e){return e.split("-")[1]}var kt={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Ct(e){var t,n=e.popper,i=e.popperRect,r=e.placement,o=e.variation,s=e.offsets,a=e.position,l=e.gpuAcceleration,c=e.adaptive,u=e.roundOffsets,d=e.isFixed,p=s.x,h=void 0===p?0:p,f=s.y,m=void 0===f?0:f,v="function"==typeof u?u({x:h,y:m}):{x:h,y:m};h=v.x,m=v.y;var g=s.hasOwnProperty("x"),y=s.hasOwnProperty("y"),b=je,w=He,_=window;if(c){var S=yt(n),E="clientHeight",x="clientWidth";S===Ze(n)&&"static"!==ht(S=mt(n)).position&&"absolute"===a&&(E="scrollHeight",x="scrollWidth"),(r===He||(r===je||r===Ve)&&o===Ge)&&(w=Fe,m-=(d&&S===_&&_.visualViewport?_.visualViewport.height:S[E])-i.height,m*=l?1:-1),r!==je&&(r!==He&&r!==Fe||o!==Ge)||(b=Ve,h-=(d&&S===_&&_.visualViewport?_.visualViewport.width:S[x])-i.width,h*=l?1:-1)}var k,C=Object.assign({position:a},c&&kt),T=!0===u?function(e,t){var n=e.x,i=e.y,r=t.devicePixelRatio||1;return{x:at(n*r)/r||0,y:at(i*r)/r||0}}({x:h,y:m},Ze(n)):{x:h,y:m};return h=T.x,m=T.y,l?Object.assign({},C,((k={})[w]=y?"0":"",k[b]=g?"0":"",k.transform=(_.devicePixelRatio||1)<=1?"translate("+h+"px, "+m+"px)":"translate3d("+h+"px, "+m+"px, 0)",k)):Object.assign({},C,((t={})[w]=y?m+"px":"",t[b]=g?h+"px":"",t.transform="",t))}var Tt={passive:!0},At={left:"right",right:"left",bottom:"top",top:"bottom"};function Ot(e){return e.replace(/left|right|bottom|top/g,function(e){return At[e]})}var Dt={start:"end",end:"start"};function Mt(e){return e.replace(/start|end/g,function(e){return Dt[e]})}function Lt(e){var t=Ze(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function Pt(e){return ut(mt(e)).left+Lt(e).scrollLeft}function It(e){var t=ht(e),n=t.overflow,i=t.overflowX,r=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+r+i)}function Nt(e){return["html","body","#document"].indexOf(Qe(e))>=0?e.ownerDocument.body:tt(e)&&It(e)?e:Nt(vt(e))}function Rt(e,t){var n;void 0===t&&(t=[]);var i=Nt(e),r=i===(null==(n=e.ownerDocument)?void 0:n.body),o=Ze(i),s=r?[o].concat(o.visualViewport||[],It(i)?i:[]):i,a=t.concat(s);return r?a:a.concat(Rt(vt(s)))}function Bt(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function zt(e,t,n){return t===We?Bt(function(e,t){var n=Ze(e),i=mt(e),r=n.visualViewport,o=i.clientWidth,s=i.clientHeight,a=0,l=0;if(r){o=r.width,s=r.height;var c=ct();(c||!c&&"fixed"===t)&&(a=r.offsetLeft,l=r.offsetTop)}return{width:o,height:s,x:a+Pt(e),y:l}}(e,n)):et(t)?function(e,t){var n=ut(e,!1,"fixed"===t);return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}(t,n):Bt(function(e){var t,n=mt(e),i=Lt(e),r=null==(t=e.ownerDocument)?void 0:t.body,o=ot(n.scrollWidth,n.clientWidth,r?r.scrollWidth:0,r?r.clientWidth:0),s=ot(n.scrollHeight,n.clientHeight,r?r.scrollHeight:0,r?r.clientHeight:0),a=-i.scrollLeft+Pt(e),l=-i.scrollTop;return"rtl"===ht(r||n).direction&&(a+=ot(n.clientWidth,r?r.clientWidth:0)-o),{width:o,height:s,x:a,y:l}}(mt(e)))}function Ht(e){var t,n=e.reference,i=e.element,r=e.placement,o=r?rt(r):null,s=r?xt(r):null,a=n.x+n.width/2-i.width/2,l=n.y+n.height/2-i.height/2;switch(o){case He:t={x:a,y:n.y-i.height};break;case Fe:t={x:a,y:n.y+n.height};break;case Ve:t={x:n.x+n.width,y:l};break;case je:t={x:n.x-i.width,y:l};break;default:t={x:n.x,y:n.y}}var c=o?bt(o):null;if(null!=c){var u="y"===c?"height":"width";switch(s){case $e:t[c]=t[c]-(n[u]/2-i[u]/2);break;case Ge:t[c]=t[c]+(n[u]/2-i[u]/2)}}return t}function Ft(e,t){void 0===t&&(t={});var n=t,i=n.placement,r=void 0===i?e.placement:i,o=n.strategy,s=void 0===o?e.strategy:o,a=n.boundary,l=void 0===a?"clippingParents":a,c=n.rootBoundary,u=void 0===c?We:c,d=n.elementContext,p=void 0===d?Ye:d,h=n.altBoundary,f=void 0!==h&&h,m=n.padding,v=void 0===m?0:m,g=_t("number"!=typeof v?v:St(v,Ue)),y=p===Ye?"reference":Ye,b=e.rects.popper,w=e.elements[f?y:p],_=function(e,t,n,i){var r="clippingParents"===t?function(e){var t=Rt(vt(e)),n=["absolute","fixed"].indexOf(ht(e).position)>=0&&tt(e)?yt(e):e;return et(n)?t.filter(function(e){return et(e)&&pt(e,n)&&"body"!==Qe(e)}):[]}(e):[].concat(t),o=[].concat(r,[n]),s=o[0],a=o.reduce(function(t,n){var r=zt(e,n,i);return t.top=ot(r.top,t.top),t.right=st(r.right,t.right),t.bottom=st(r.bottom,t.bottom),t.left=ot(r.left,t.left),t},zt(e,s,i));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}(et(w)?w:w.contextElement||mt(e.elements.popper),l,u,s),S=ut(e.elements.reference),E=Ht({reference:S,element:b,placement:r}),x=Bt(Object.assign({},b,E)),k=p===Ye?x:S,C={top:_.top-k.top+g.top,bottom:k.bottom-_.bottom+g.bottom,left:_.left-k.left+g.left,right:k.right-_.right+g.right},T=e.modifiersData.offset;if(p===Ye&&T){var A=T[r];Object.keys(C).forEach(function(e){var t=[Ve,Fe].indexOf(e)>=0?1:-1,n=[He,Fe].indexOf(e)>=0?"y":"x";C[e]+=A[n]*t})}return C}function Vt(e,t){void 0===t&&(t={});var n=t,i=n.placement,r=n.boundary,o=n.rootBoundary,s=n.padding,a=n.flipVariations,l=n.allowedAutoPlacements,c=void 0===l?Ke:l,u=xt(i),d=u?a?Xe:Xe.filter(function(e){return xt(e)===u}):Ue,p=d.filter(function(e){return c.indexOf(e)>=0});0===p.length&&(p=d);var h=p.reduce(function(t,n){return t[n]=Ft(e,{placement:n,boundary:r,rootBoundary:o,padding:s})[rt(n)],t},{});return Object.keys(h).sort(function(e,t){return h[e]-h[t]})}var jt={name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,i=e.name;if(!t.modifiersData[i]._skip){for(var r=n.mainAxis,o=void 0===r||r,s=n.altAxis,a=void 0===s||s,l=n.fallbackPlacements,c=n.padding,u=n.boundary,d=n.rootBoundary,p=n.altBoundary,h=n.flipVariations,f=void 0===h||h,m=n.allowedAutoPlacements,v=t.options.placement,g=rt(v),y=l||(g!==v&&f?function(e){if(rt(e)===qe)return[];var t=Ot(e);return[Mt(e),t,Mt(t)]}(v):[Ot(v)]),b=[v].concat(y).reduce(function(e,n){return e.concat(rt(n)===qe?Vt(t,{placement:n,boundary:u,rootBoundary:d,padding:c,flipVariations:f,allowedAutoPlacements:m}):n)},[]),w=t.rects.reference,_=t.rects.popper,S=new Map,E=!0,x=b[0],k=0;k<b.length;k++){var C=b[k],T=rt(C),A=xt(C)===$e,O=[He,Fe].indexOf(T)>=0,D=O?"width":"height",M=Ft(t,{placement:C,boundary:u,rootBoundary:d,altBoundary:p,padding:c}),L=O?A?Ve:je:A?Fe:He;w[D]>_[D]&&(L=Ot(L));var P=Ot(L),I=[];if(o&&I.push(M[T]<=0),a&&I.push(M[L]<=0,M[P]<=0),I.every(function(e){return e})){x=C,E=!1;break}S.set(C,I)}if(E)for(var N=function(e){var t=b.find(function(t){var n=S.get(t);if(n)return n.slice(0,e).every(function(e){return e})});if(t)return x=t,"break"},R=f?3:1;R>0&&"break"!==N(R);R--);t.placement!==x&&(t.modifiersData[i]._skip=!0,t.placement=x,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function qt(e,t,n){return void 0===n&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function Ut(e){return[He,Ve,Fe,je].some(function(t){return e[t]>=0})}var $t={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.options,i=e.name,r=n.offset,o=void 0===r?[0,0]:r,s=Ke.reduce(function(e,n){return e[n]=function(e,t,n){var i=rt(e),r=[je,He].indexOf(i)>=0?-1:1,o="function"==typeof n?n(Object.assign({},t,{placement:e})):n,s=o[0],a=o[1];return s=s||0,a=(a||0)*r,[je,Ve].indexOf(i)>=0?{x:a,y:s}:{x:s,y:a}}(n,t.rects,o),e},{}),a=s[t.placement],l=a.x,c=a.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=c),t.modifiersData[i]=s}},Gt={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,i=e.name,r=n.mainAxis,o=void 0===r||r,s=n.altAxis,a=void 0!==s&&s,l=n.boundary,c=n.rootBoundary,u=n.altBoundary,d=n.padding,p=n.tether,h=void 0===p||p,f=n.tetherOffset,m=void 0===f?0:f,v=Ft(t,{boundary:l,rootBoundary:c,padding:d,altBoundary:u}),g=rt(t.placement),y=xt(t.placement),b=!y,w=bt(g),_="x"===w?"y":"x",S=t.modifiersData.popperOffsets,E=t.rects.reference,x=t.rects.popper,k="function"==typeof m?m(Object.assign({},t.rects,{placement:t.placement})):m,C="number"==typeof k?{mainAxis:k,altAxis:k}:Object.assign({mainAxis:0,altAxis:0},k),T=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,A={x:0,y:0};if(S){if(o){var O,D="y"===w?He:je,M="y"===w?Fe:Ve,L="y"===w?"height":"width",P=S[w],I=P+v[D],N=P-v[M],R=h?-x[L]/2:0,B=y===$e?E[L]:x[L],z=y===$e?-x[L]:-E[L],H=t.elements.arrow,F=h&&H?dt(H):{width:0,height:0},V=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},j=V[D],q=V[M],U=wt(0,E[L],F[L]),$=b?E[L]/2-R-U-j-C.mainAxis:B-U-j-C.mainAxis,G=b?-E[L]/2+R+U+q+C.mainAxis:z+U+q+C.mainAxis,W=t.elements.arrow&&yt(t.elements.arrow),Y=W?"y"===w?W.clientTop||0:W.clientLeft||0:0,X=null!=(O=null==T?void 0:T[w])?O:0,K=P+G-X,J=wt(h?st(I,P+$-X-Y):I,P,h?ot(N,K):N);S[w]=J,A[w]=J-P}if(a){var Q,Z="x"===w?He:je,ee="x"===w?Fe:Ve,te=S[_],ne="y"===_?"height":"width",ie=te+v[Z],re=te-v[ee],oe=-1!==[He,je].indexOf(g),se=null!=(Q=null==T?void 0:T[_])?Q:0,ae=oe?ie:te-E[ne]-x[ne]-se+C.altAxis,le=oe?te+E[ne]+x[ne]-se-C.altAxis:re,ce=h&&oe?function(e,t,n){var i=wt(e,t,n);return i>n?n:i}(ae,te,le):wt(h?ae:ie,te,h?le:re);S[_]=ce,A[_]=ce-te}t.modifiersData[i]=A}},requiresIfExists:["offset"]};function Wt(e,t,n){void 0===n&&(n=!1);var i,r,o=tt(t),s=tt(t)&&function(e){var t=e.getBoundingClientRect(),n=at(t.width)/e.offsetWidth||1,i=at(t.height)/e.offsetHeight||1;return 1!==n||1!==i}(t),a=mt(t),l=ut(e,s,n),c={scrollLeft:0,scrollTop:0},u={x:0,y:0};return(o||!o&&!n)&&(("body"!==Qe(t)||It(a))&&(c=(i=t)!==Ze(i)&&tt(i)?{scrollLeft:(r=i).scrollLeft,scrollTop:r.scrollTop}:Lt(i)),tt(t)?((u=ut(t,!0)).x+=t.clientLeft,u.y+=t.clientTop):a&&(u.x=Pt(a))),{x:l.left+c.scrollLeft-u.x,y:l.top+c.scrollTop-u.y,width:l.width,height:l.height}}function Yt(e){var t=new Map,n=new Set,i=[];function r(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach(function(e){if(!n.has(e)){var i=t.get(e);i&&r(i)}}),i.push(e)}return e.forEach(function(e){t.set(e.name,e)}),e.forEach(function(e){n.has(e.name)||r(e)}),i}var Xt={placement:"bottom",modifiers:[],strategy:"absolute"};function Kt(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(e){return!(e&&"function"==typeof e.getBoundingClientRect)})}function Jt(e){void 0===e&&(e={});var t=e,n=t.defaultModifiers,i=void 0===n?[]:n,r=t.defaultOptions,o=void 0===r?Xt:r;return function(e,t,n){void 0===n&&(n=o);var r,s,a={placement:"bottom",orderedModifiers:[],options:Object.assign({},Xt,o),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},l=[],c=!1,u={state:a,setOptions:function(n){var r="function"==typeof n?n(a.options):n;d(),a.options=Object.assign({},o,a.options,r),a.scrollParents={reference:et(e)?Rt(e):e.contextElement?Rt(e.contextElement):[],popper:Rt(t)};var s,c,p=function(e){var t=Yt(e);return Je.reduce(function(e,n){return e.concat(t.filter(function(e){return e.phase===n}))},[])}((s=[].concat(i,a.options.modifiers),c=s.reduce(function(e,t){var n=e[t.name];return e[t.name]=n?Object.assign({},n,t,{options:Object.assign({},n.options,t.options),data:Object.assign({},n.data,t.data)}):t,e},{}),Object.keys(c).map(function(e){return c[e]})));return a.orderedModifiers=p.filter(function(e){return e.enabled}),a.orderedModifiers.forEach(function(e){var t=e.name,n=e.options,i=void 0===n?{}:n,r=e.effect;if("function"==typeof r){var o=r({state:a,name:t,instance:u,options:i});l.push(o||function(){})}}),u.update()},forceUpdate:function(){if(!c){var e=a.elements,t=e.reference,n=e.popper;if(Kt(t,n)){a.rects={reference:Wt(t,yt(n),"fixed"===a.options.strategy),popper:dt(n)},a.reset=!1,a.placement=a.options.placement,a.orderedModifiers.forEach(function(e){return a.modifiersData[e.name]=Object.assign({},e.data)});for(var i=0;i<a.orderedModifiers.length;i++)if(!0!==a.reset){var r=a.orderedModifiers[i],o=r.fn,s=r.options,l=void 0===s?{}:s,d=r.name;"function"==typeof o&&(a=o({state:a,options:l,name:d,instance:u})||a)}else a.reset=!1,i=-1}}},update:(r=function(){return new Promise(function(e){u.forceUpdate(),e(a)})},function(){return s||(s=new Promise(function(e){Promise.resolve().then(function(){s=void 0,e(r())})})),s}),destroy:function(){d(),c=!0}};if(!Kt(e,t))return u;function d(){l.forEach(function(e){return e()}),l=[]}return u.setOptions(n).then(function(e){!c&&n.onFirstUpdate&&n.onFirstUpdate(e)}),u}}var Qt=Jt({defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,n=e.instance,i=e.options,r=i.scroll,o=void 0===r||r,s=i.resize,a=void 0===s||s,l=Ze(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return o&&c.forEach(function(e){e.addEventListener("scroll",n.update,Tt)}),a&&l.addEventListener("resize",n.update,Tt),function(){o&&c.forEach(function(e){e.removeEventListener("scroll",n.update,Tt)}),a&&l.removeEventListener("resize",n.update,Tt)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=Ht({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,n=e.options,i=n.gpuAcceleration,r=void 0===i||i,o=n.adaptive,s=void 0===o||o,a=n.roundOffsets,l=void 0===a||a,c={placement:rt(t.placement),variation:xt(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:r,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,Ct(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:s,roundOffsets:l})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,Ct(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},it,$t,jt,Gt,Et,{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,n=e.name,i=t.rects.reference,r=t.rects.popper,o=t.modifiersData.preventOverflow,s=Ft(t,{elementContext:"reference"}),a=Ft(t,{altBoundary:!0}),l=qt(s,i),c=qt(a,r,o),u=Ut(l),d=Ut(c);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":d})}}]});function Zt(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var en,tn={exports:{}},nn=(en||(en=1,tn.exports=function(){var e=["decimals","thousand","mark","prefix","suffix","encoder","decoder","negativeBefore","negative","edit","undo"];function t(e){return e.split("").reverse().join("")}function n(e,t){return e.substring(0,t.length)===t}function i(e,t,n){if((e[t]||e[n])&&e[t]===e[n])throw new Error(t)}function r(e){return"number"==typeof e&&isFinite(e)}function o(e,n,i,o,s,a,l,c,u,d,p,h){var f,m,v,g,y,b=h,w="",_="";return a&&(h=a(h)),!!r(h)&&(!1!==e&&0===parseFloat(h.toFixed(e))&&(h=0),h<0&&(f=!0,h=Math.abs(h)),!1!==e&&(y=e,g=(g=h).toString().split("e"),h=(+((g=(g=Math.round(+(g[0]+"e"+(g[1]?+g[1]+y:y)))).toString().split("e"))[0]+"e"+(g[1]?+g[1]-y:-y))).toFixed(y)),-1!==(h=h.toString()).indexOf(".")?(v=(m=h.split("."))[0],i&&(w=i+m[1])):v=h,n&&(v=t(v).match(/.{1,3}/g),v=t(v.join(t(n)))),f&&c&&(_+=c),o&&(_+=o),f&&u&&(_+=u),_+=v,_+=w,s&&(_+=s),d&&(_=d(_,b)),_)}function s(e,t,i,o,s,a,l,c,u,d,p,h){var f,m="";return p&&(h=p(h)),!(!h||"string"!=typeof h)&&(c&&n(h,c)&&(h=h.replace(c,""),f=!0),o&&n(h,o)&&(h=h.replace(o,"")),u&&n(h,u)&&(h=h.replace(u,""),f=!0),s&&function(e,t){return e.slice(-1*t.length)===t}(h,s)&&(h=h.slice(0,-1*s.length)),t&&(h=h.split(t).join("")),i&&(h=h.replace(i,".")),f&&(m+="-"),""!==(m=(m+=h).replace(/[^0-9\.\-.]/g,""))&&(m=Number(m),l&&(m=l(m)),!!r(m)&&m))}function a(t,n,i){var r,o=[];for(r=0;r<e.length;r+=1)o.push(t[e[r]]);return o.push(i),n.apply("",o)}return function t(n){if(!(this instanceof t))return new t(n);"object"==typeof n&&(n=function(t){var n,r,o,s={};for(void 0===t.suffix&&(t.suffix=t.postfix),n=0;n<e.length;n+=1)if(void 0===(o=t[r=e[n]]))"negative"!==r||s.negativeBefore?"mark"===r&&"."!==s.thousand?s[r]=".":s[r]=!1:s[r]="-";else if("decimals"===r){if(!(o>=0&&o<8))throw new Error(r);s[r]=o}else if("encoder"===r||"decoder"===r||"edit"===r||"undo"===r){if("function"!=typeof o)throw new Error(r);s[r]=o}else{if("string"!=typeof o)throw new Error(r);s[r]=o}return i(s,"mark","thousand"),i(s,"prefix","negative"),i(s,"prefix","negativeBefore"),s}(n),this.to=function(e){return a(n,o,e)},this.from=function(e){return a(n,s,e)})}}()),tn.exports),rn=Zt(nn);function on(e){return e.charAt(0).toLowerCase()+e.slice(1)}var sn={rootContainerSelector:"#root-tooltips",removeDialogOnDestroy:!1,popperOptions:{placement:"bottom",strategy:"absolute",modifiers:[{name:"arrow",options:{element:".tooltip__arrow",padding:10}},{name:"eventListeners",options:{scroll:!1,resize:!1}},{name:"flip",options:{fallbackPlacements:["right","top","auto"]}},{name:"offset",options:{offset:function(e){var t=e.placement;return t.includes("start")?[-10,0]:t.includes("end")?[10,0]:[0,0]}}}]}},an=function(){return o(function e(t,n){var r;return i(this,e),s(this,"isOpen",!1),s(this,"ignoreNextBlur",!1),this.element=t,this.config=l(l({},sn),n),this.config.popperOptions=l(l({},sn.popperOptions),(null==n?void 0:n.popperOptions)||{}),this.config.popperOptions.modifiers=[].concat(p(sn.popperOptions.modifiers),p((null==n||null===(r=n.popperOptions)||void 0===r?void 0:r.modifiers)||[])),this.handleVisibility=this.handleVisibility.bind(this),this.onKeydown=this.onKeydown.bind(this),this.onDialogMouseDown=this.onDialogMouseDown.bind(this),this.onDocumentClick=this.onDocumentClick.bind(this),this.element.ODS_Tooltip=this,this.init(),this},[{key:"wrapLastWordAndButton",value:function(){var e,t;if(this.element.hasAttribute("data-tooltip-keep-with-text")){var n=this.trigger.previousSibling;if(n&&n.nodeType===Node.TEXT_NODE){var i=((null===(e=n.textContent)||void 0===e?void 0:e.trim())||"").split(" "),r=i.pop(),o=i.join(" ");n.textContent=o+" ";var s=document.createElement("span");s.className="text-nowrap",s.innerHTML="".concat(r," ").concat(this.trigger.outerHTML),null===(t=this.trigger.parentNode)||void 0===t||t.replaceChild(s,this.trigger),this.trigger=s.querySelector("[data-tooltip-trigger]")}}}},{key:"init",value:function(){this.trigger=document.querySelector("[data-tooltip-trigger][aria-describedby=".concat(this.element.getAttribute("id"),"]")),this.trigger,this.element.hasAttribute("data-tooltip-keep-with-text")&&this.wrapLastWordAndButton(),this.rootContainer=document.querySelector(this.config.rootContainerSelector),this.rootContainer&&this.rootContainer.appendChild(this.element);var e=this.element.getAttribute("data-tooltip-placement");e&&(this.config.popperOptions.placement=e),this.instance=Qt(this.trigger,this.element,this.config.popperOptions),this.transitioner=ze({element:this.element,visibleClass:"is-visible"}),this.element.addEventListener("mousedown",this.onDialogMouseDown),this.trigger.addEventListener("click",this.handleVisibility),this.trigger.addEventListener("keydown",this.handleVisibility),this.trigger.addEventListener("blur",this.handleVisibility)}},{key:"onDialogMouseDown",value:function(){this.ignoreNextBlur=!0}},{key:"onDocumentClick",value:function(e){var t=e.target;t&&(this.trigger.contains(t)||this.element.contains(t)||this.hide())}},{key:"handleVisibility",value:function(e){if("click"!==e.type)if("keydown"!==e.type){if("blur"===e.type){if(this.ignoreNextBlur)return void(this.ignoreNextBlur=!1);this.hide()}}else this.onKeydown(e);else this.toggle()}},{key:"onKeydown",value:function(e){if(("Enter"===e.key||" "===e.key)&&"BUTTON"!==this.trigger.tagName)return e.preventDefault(),void this.toggle();v.ESC.includes(e.key)&&this.hide()}},{key:"toggle",value:function(){this.isOpen?this.hide():this.show()}},{key:"show",value:function(){this.transitioner.show(),this.trigger.classList.add("is-active"),this.isOpen=!0,this.instance.forceUpdate(),document.addEventListener("click",this.onDocumentClick)}},{key:"hide",value:function(){this.transitioner.hide(),this.trigger.classList.remove("is-active"),this.isOpen=!1,document.removeEventListener("click",this.onDocumentClick)}},{key:"update",value:function(){this.instance.forceUpdate()}},{key:"destroy",value:function(){this.element.removeEventListener("mousedown",this.onDialogMouseDown),this.trigger.removeEventListener("click",this.handleVisibility),this.trigger.removeEventListener("keydown",this.handleVisibility),this.trigger.removeEventListener("blur",this.handleVisibility),document.removeEventListener("click",this.onDocumentClick),this.instance.destroy(),this.element.ODS_Tooltip=null,this.config.removeDialogOnDestroy&&this.element.remove()}}],[{key:"getInstance",value:function(e){return e&&e.ODS_Tooltip?e.ODS_Tooltip:null}}])}(),ln="carousel",cn="".concat(ln,"__viewport-wrapper"),un="".concat(ln,"__viewport"),dn="".concat(ln,"__track"),pn="".concat(ln,"__slide"),hn="".concat(ln,"__slide-next"),fn="".concat(ln,"__slide-prev"),mn="".concat(ln,"__prev"),vn="".concat(ln,"__next"),gn="".concat(ln,"__pagination"),yn="".concat(ln,"__pagination-item"),bn="".concat(ln,"__scrollbar"),wn="".concat(ln,"__scrollbar-horizontal"),_n="".concat(ln,"__scrollbar-drag"),Sn="is-active",En="".concat(ln,"--bleed-right"),xn=".".concat(un),kn=".".concat(dn),Cn=".".concat(mn),Tn=".".concat(vn),An=".".concat(gn),On=".".concat(bn),Dn=".".concat(Sn),Mn={navigation:{nextEl:Tn,prevEl:Cn},pagination:{el:An,clickable:!0,bulletClass:yn,bulletActiveClass:Sn,renderBullet:function(e,t){return'<button aria-label="Page '.concat(e+1,'" role="tab" class="').concat(t,'" type="button"></button>')}},scrollbar:{el:On,draggable:!0,enabled:!0,horizontalClass:wn,dragClass:_n,hide:!1},slidesPerView:1.2,mousewheel:{forceToAxis:!0,sensitivity:1},a11y:{enabled:!0,prevSlideMessage:"Predchádzajúci snímok",nextSlideMessage:"Nasledujúci snímok",paginationBulletMessage:"Prejsť na snímok {index}",containerMessage:"Carousel so snímkami",containerRoleDescriptionMessage:"carousel",itemRoleDescriptionMessage:"snímok",firstSlideMessage:"Prvý snímok",lastSlideMessage:"Posledný snímok",slideLabelMessage:"Snímok"},loop:!1,cssMode:!1,direction:"horizontal",breakpoints:{1240:{slidesPerView:1.6}},wrapperClass:dn,slideClass:pn,slideActiveClass:Sn,slideNextClass:hn,slidePrevClass:fn},Ln=function(){return o(function e(t,n){var r,o,s=this;return i(this,e),this.element=t,this.config=l(l(l({},Mn),n),{},{scrollbar:l(l(l({},null!==(r=Mn.scrollbar)&&void 0!==r?r:{}),null!==(o=null==n?void 0:n.scrollbar)&&void 0!==o?o:{}),{},{el:this.element.querySelector(On)})}),this.handleSlideChange=this.handleSlideChange.bind(this),this.updateTooltipPosition=this.updateTooltipPosition.bind(this),this.element.ODS_Carousel=this,requestAnimationFrame(function(){s.init()}),this},[{key:"init",value:function(){var e=this;this.getElements(),this.element.hasAttribute("data-swiper-options")&&this.getCustomOptions(),this.instance=new Te(this.viewport,l(l({},this.config),{},{enabled:!1,modules:[Le,Ie,Ne,Re,Ae,Oe],on:{slideChange:this.handleSlideChange,slideChangeTransitionEnd:function(){e.updateExternalControlsState()}}})),this.updateCarouselEnabledState(),this.element.classList.contains(En)&&(this.adjustConfigForBleedRight(),this.fixBleedRightScrollbar()),this.syncScrollbar(),this.instance&&"function"==typeof this.instance.on&&this.instance.on("resize",function(){e.updateCarouselEnabledState()}),this.observeVisibilityChanges(),this.initExternalControls(),requestAnimationFrame(function(){e.instance&&e.instance.update()})}},{key:"syncScrollbar",value:function(){var e=this;requestAnimationFrame(function(){var t;null!==(t=e.instance)&&void 0!==t&&t.scrollbar&&e.instance.scrollbar.updateSize()})}},{key:"observeVisibilityChanges",value:function(){var e,t=this;"undefined"!=typeof ResizeObserver&&(null===(e=this.resizeObserver)||void 0===e||e.disconnect(),this.resizeObserver=new ResizeObserver(function(){var e;t.instance&&t.viewport&&(t.viewport.clientWidth<=0||(t.instance.update(),t.updateCarouselEnabledState(),null===(e=t.instance.scrollbar)||void 0===e||e.updateSize()))}),this.resizeObserver.observe(this.viewport))}},{key:"fixBleedRightScrollbar",value:function(){var e=this,t=function(){var t,n=e.element.querySelector(".".concat(cn)),i=null===(t=e.instance)||void 0===t?void 0:t.scrollbar,r=e.instance;if(n&&i&&i.dragEl&&r){var o=r.minTranslate(),s=r.maxTranslate();if(Math.abs(s-o)<=1||!r.enabled)i.el&&(i.el.style.display="none");else{i.el&&(i.el.style.display="");var a=i.el.offsetWidth,l=n.clientWidth,c=Number(r.params.slidesOffsetBefore)||0,u=Number(r.params.slidesOffsetAfter)||0,d=e.track.scrollWidth+c+u,p=(d>0?Math.min(l/d,1):1)*a,h=Math.max(p,30);i.dragEl.style.width="".concat(h,"px"),i.dragEl.style.display="";var f=Math.min(Math.max(r.progress||0,0),1)*Math.max(a-h,0);i.dragEl.style.transform="translate3d(".concat(f,"px, 0, 0)")}}};requestAnimationFrame(function(){requestAnimationFrame(t)}),this.instance.on("progress",t),this.instance.on("slideChange",t),this.instance.on("resize",t),this.instance.on("update",t),this.instance.on("setTranslate",t)}},{key:"getElements",value:function(){var e,t;this.viewport=this.element.querySelector(xn),this.track=this.viewport.querySelector(kn);var n=this.element.querySelector(An);n&&!n.hasAttribute("role")&&n.setAttribute("role","tablist");var i={navigation:l(l({},null!==(e=this.config.navigation)&&void 0!==e?e:{}),{},{nextEl:this.element.querySelector(Tn),prevEl:this.element.querySelector(Cn)}),pagination:l(l({},null!==(t=this.config.pagination)&&void 0!==t?t:{}),{},{el:n,clickable:!0,bulletClass:yn,bulletActiveClass:Sn})};this.config=l(l({},this.config),i)}},{key:"getCustomOptions",value:function(){var e=this.element.getAttribute("data-swiper-options");if(e){var t=JSON.parse(e);this.config=l(l({},this.config),t)}}},{key:"updateCarouselEnabledState",value:function(){if(this.instance&&this.instance.params){this.instance.slides.length>(Number(this.instance.params.slidesPerView)||1)?this.instance.enable():this.instance.disable();var e=this.element.querySelector(On);e&&(e.style.display=this.instance.enabled?"":"none"),this.applyTrackMarginCompensation()}}},{key:"applyTrackMarginCompensation",value:function(){if(this.instance&&this.viewport){var e=Number(this.instance.params.slidesPerView)||1;this.instance.slides.length<=e?this.viewport.style.setProperty("margin-right","-20px","important"):this.viewport.style.removeProperty("margin-right")}}},{key:"applyBleedInsets",value:function(e){var t;if(this.instance&&this.instance.params){var n=document.documentElement.clientWidth||(null===(t=window.visualViewport)||void 0===t?void 0:t.width)||window.innerWidth,i=e.getBoundingClientRect(),r=Math.max(Math.round(i.left),0),o=Math.max(r-20,0),s=Number(this.instance.params.slidesPerView)||1,a=this.instance.slides.length,l=n>=2560||a<=s;this.element.classList.toggle(En,!l),l?(this.instance.params.slidesOffsetBefore=0,this.instance.params.slidesOffsetAfter=0,this.element.style.setProperty("--carousel-bleed-viewport-width","100%"),this.element.style.setProperty("--carousel-bleed-margin-left","0px")):(this.instance.params.slidesOffsetBefore=r,this.instance.params.slidesOffsetAfter=o,this.element.style.setProperty("--carousel-bleed-viewport-width","100dvw"),this.element.style.setProperty("--carousel-bleed-margin-left","calc(50% - 50dvw)")),this.instance.update()}}},{key:"adjustConfigForBleedRight",value:function(){var e=this;requestAnimationFrame(function(){if(e.instance){var t=e.element.querySelector(".".concat(cn));if(t){var n=function(){e.applyBleedInsets(t),e.applyTrackMarginCompensation()};n(),e.instance.on("resize",n)}}})}},{key:"handleSlideChange",value:function(){var e=this.track.querySelector(Dn),t=this.track.querySelectorAll(".".concat(pn,":not(").concat(Dn,")"));e&&this.updateTooltipPosition(e),t.length>0&&this.hideAllTooltips(t),this.updateExternalControlsState()}},{key:"updateTooltipPosition",value:function(e){var t=e.querySelectorAll('[data-tooltip-trigger="true"]');t.length>0&&t.forEach(function(e){var t=e.getAttribute("aria-describedby");if(t){var n=document.getElementById(t);if(n){var i=an.getInstance(n);i&&i.update()}}})}},{key:"hideAllTooltips",value:function(e){e.forEach(function(e){var t=e.querySelectorAll('[data-tooltip-trigger="true"]');t.length>0&&t.forEach(function(e){var t=e.getAttribute("aria-describedby");if(t){var n=document.getElementById(t);if(n){var i=an.getInstance(n);i&&(i.hide(),e.blur())}}})})}},{key:"initExternalControls",value:function(){var e=this,t=this.element.dataset.carouselId||this.element.id;t&&(this.carouselId=t,document.querySelectorAll('[data-carousel-controls="'.concat(t,'"]')).forEach(function(t){var n=t;if(!n.hasAttribute("data-carousel-initialized")){n._carouselClickHandler&&n.removeEventListener("click",n._carouselClickHandler);var i,r,o=n.dataset.carouselAction,s=function(t){t.preventDefault(),n.hasAttribute("disabled")||("next"===o?e.slideNext():"prev"===o&&e.slidePrev())};"next"!==o&&"prev"!==o||(n.addEventListener("click",s),n.setAttribute("aria-label","next"===o?("object"===f(e.config.a11y)?null===(i=e.config.a11y)||void 0===i?void 0:i.nextSlideMessage:void 0)||"Nasledujúci snímok":("object"===f(e.config.a11y)?null===(r=e.config.a11y)||void 0===r?void 0:r.prevSlideMessage:void 0)||"Predchádzajúci snímok"),n.setAttribute("type","button"),n._carouselClickHandler=s),n.setAttribute("data-carousel-initialized","true")}}),this.updateExternalControlsState())}},{key:"updateExternalControlsState",value:function(){if(this.carouselId&&this.instance){var e=this.instance.isBeginning,t=this.instance.slides.length,n=this.instance.params.slidesPerView,i=this.instance.activeIndex+n>=t,r=document.querySelectorAll('[data-carousel-controls="'.concat(this.carouselId,'"][data-carousel-action="prev"]')),o=document.querySelectorAll('[data-carousel-controls="'.concat(this.carouselId,'"][data-carousel-action="next"]'));r.forEach(function(t){var n=t;e?(n.setAttribute("disabled","true"),n.setAttribute("aria-disabled","true"),n.style.cursor="not-allowed"):(n.removeAttribute("disabled"),n.setAttribute("aria-disabled","false"),n.style.cursor="pointer")}),o.forEach(function(e){var t=e;i?(t.setAttribute("disabled","true"),t.setAttribute("aria-disabled","true"),t.style.cursor="not-allowed"):(t.removeAttribute("disabled"),t.setAttribute("aria-disabled","false"),t.style.cursor="pointer")})}}},{key:"slideNext",value:function(){this.instance&&this.instance.slideNext()}},{key:"slidePrev",value:function(){this.instance&&this.instance.slidePrev()}},{key:"getActiveIndex",value:function(){return this.instance?this.instance.activeIndex:0}},{key:"onSlideChange",value:function(e){var t=this;this.instance&&this.instance.on("slideChange",function(){e(t.instance.activeIndex)})}},{key:"destroy",value:function(){var e;this.carouselId&&document.querySelectorAll('[data-carousel-controls="'.concat(this.carouselId,'"]')).forEach(function(e){var t=e;t._carouselClickHandler&&(t.removeEventListener("click",t._carouselClickHandler),delete t._carouselClickHandler),t.removeAttribute("data-carousel-initialized")}),this.instance&&this.instance.destroy(),null===(e=this.resizeObserver)||void 0===e||e.disconnect(),this.resizeObserver=void 0,this.element.ODS_Carousel===this&&delete this.element.ODS_Carousel}},{key:"update",value:function(){this.instance&&this.instance.update()}}],[{key:"getInstance",value:function(e){return e&&e.ODS_Carousel?e.ODS_Carousel:null}},{key:"getInstanceById",value:function(e){var t=document.querySelector('[data-carousel-id="'.concat(e,'"]'))||document.getElementById(e);return t?this.getInstance(t):null}}])}(),Pn="carousel-hero",In="".concat(Pn,"__viewport"),Nn="".concat(Pn,"__track"),Rn="".concat(Pn,"__slide"),Bn="".concat(Pn,"__prev"),zn="".concat(Pn,"__next"),Hn="".concat(Pn,"__play-pause"),Fn="".concat(Pn,"__tabs"),Vn="".concat(Pn,"__tab"),jn="".concat(Pn,"__pagination"),qn="".concat(Pn,"__pagination-item"),Un="".concat(Pn,"__pagination-svg"),$n="".concat(Pn,"__pagination-circle"),Gn="is-active",Wn="is-playing",Yn="is-paused",Xn=".".concat(In),Kn=".".concat(Bn),Jn=".".concat(zn),Qn=".".concat(Hn),Zn=".".concat(Fn),ei=".".concat(Vn),ti=".".concat(jn),ni={pagination:{clickable:!0,bulletClass:qn,bulletActiveClass:"is-active",renderBullet:function(e,t){return'<button type="button" class="'.concat(t,'" aria-label="Prejsť na snímok ').concat(e+1,'"></button>')}},slidesPerView:1,loop:!1,a11y:{enabled:!0,prevSlideMessage:"Predchádzajúci snímok",nextSlideMessage:"Nasledujúci snímok",containerMessage:"Hero carousel so snímkami",containerRoleDescriptionMessage:"carousel",itemRoleDescriptionMessage:"snímok",firstSlideMessage:"Prvý snímok",lastSlideMessage:"Posledný snímok",slideLabelMessage:"Snímok"},wrapperClass:Nn,slideClass:Rn,slideActiveClass:Gn},ii=function(){return o(function e(t,n){return i(this,e),s(this,"tabs",[]),s(this,"_dotAnimationJustStarted",!1),s(this,"_isDragging",!1),this.element=t,this.config=l(l({},ni),n),this.element.ODS_CarouselHero=this,this._boundTabClick=this._onTabClick.bind(this),this._boundPrevClick=this._onUserNavigation.bind(this),this._boundNextClick=this._onUserNavigation.bind(this),this._boundPlayPauseClick=this._onPlayPauseClick.bind(this),this.init(),this},[{key:"init",value:function(){this.getElements(),this.setupConfig(),this.createSwiper(),this.setupEventListeners(),this.renderPaginationDots(),this.updateStates(),this.updatePlayPauseIcon(),this.hasAutoplay()&&this.isAutoplayRunning()&&this.startDotAnimation()}},{key:"getElements",value:function(){this.viewport=this.element.querySelector(Xn);var e=this.element.querySelector(Zn);e&&(this.tabs=Array.from(e.querySelectorAll(ei)))}},{key:"setupConfig",value:function(){var e=this.element.hasAttribute("data-interval")&&parseInt(this.element.getAttribute("data-interval"))||0;if(this.element.hasAttribute("data-swiper-options"))try{var t=JSON.parse(this.element.getAttribute("data-swiper-options"));this.config=l(l({},this.config),t)}catch(e){}this.config.loop=!0,e>=1e3&&(this.config.autoplay={delay:e,disableOnInteraction:!1,pauseOnMouseEnter:!1,waitForTransition:!0,stopOnLastSlide:!1},this.element.classList.add(Wn))}},{key:"createSwiper",value:function(){var e=this,t=this.viewport.querySelectorAll(".".concat(Rn)).length>1;this.instance=new Te(this.viewport,l(l({},this.config),{},{modules:[Le,Ie,Re,Ae,Be],navigation:{nextEl:this.element.querySelector(Jn),prevEl:this.element.querySelector(Kn)},pagination:!!t&&l(l({},this.config.pagination),{},{el:this.element.querySelector(ti)}),on:{slideChange:function(){e.updateStates(),e.isAutoplayRunning()?e.restartDotAnimation():e.stopDotAnimation()},autoplayStart:function(){e._onAutoplayStart()},autoplayStop:function(){e._onAutoplayStop()},touchStart:function(){e._isDragging=!0,e._stopAutoplayIfRunning()},touchEnd:function(){e._isDragging=!1}}})),this.updatePlayPauseIcon()}},{key:"setupEventListeners",value:function(){var e=this;this.tabs.forEach(function(t){t.removeEventListener("click",e._boundTabClick),t.addEventListener("click",e._boundTabClick)});var t=this.element.querySelector(Qn);t&&(t.removeEventListener("click",this._boundPlayPauseClick),t.addEventListener("click",this._boundPlayPauseClick));var n=this.element.querySelector(Kn),i=this.element.querySelector(Jn);n&&(n.removeEventListener("click",this._boundPrevClick),n.addEventListener("click",this._boundPrevClick)),i&&(i.removeEventListener("click",this._boundNextClick),i.addEventListener("click",this._boundNextClick))}},{key:"_onUserNavigation",value:function(){this._stopAutoplayIfRunning(),this.stopDotAnimation()}},{key:"_onTabClick",value:function(e){var t;e.preventDefault();var n=e.currentTarget,i=this.tabs.indexOf(n);-1!==i&&i!==(null===(t=this.instance)||void 0===t?void 0:t.realIndex)&&(this._onUserNavigation(),this.goToSlide(i))}},{key:"_onPlayPauseClick",value:function(){this.toggleAutoplay()}},{key:"isAutoplayRunning",value:function(){var e;return!(null===(e=this.instance)||void 0===e||!e.autoplay||!this.instance.autoplay.running)}},{key:"_stopAutoplayIfRunning",value:function(){this.isAutoplayRunning()&&this.instance.autoplay.stop()}},{key:"_onAutoplayStart",value:function(){this.element.classList.add(Wn),this.element.classList.remove(Yn),this.updatePlayPauseIcon(),this.startDotAnimation()}},{key:"_onAutoplayStop",value:function(){this.element.classList.remove(Wn),this.element.classList.add(Yn),this.updatePlayPauseIcon(),this.stopDotAnimation()}},{key:"toggleAutoplay",value:function(){var e=this;this.instance&&this.instance.autoplay&&(this.isAutoplayRunning()?this.instance.autoplay.stop():(this.updateStates(),setTimeout(function(){e.instance&&e.instance.autoplay&&e.instance.autoplay.start()},10)))}},{key:"goToSlide",value:function(e){this.instance&&this.instance.realIndex!==e&&this.instance.slideToLoop(e)}},{key:"updateStates",value:function(){var e,t;if(this.instance){var n=null!==(e=null!==(t=this.instance.realIndex)&&void 0!==t?t:this.instance.activeIndex)&&void 0!==e?e:0;this.tabs.forEach(function(e,t){var i=t===n;e.classList.toggle(Gn,i),e.setAttribute("aria-selected",String(i)),e.setAttribute("tabindex",i?"0":"-1")}),this.scrollActiveTabIntoView(n),this.updatePaginationBullets(n)}}},{key:"updatePaginationBullets",value:function(e){var t=this,n=this.element.querySelector(ti);n&&n.querySelectorAll(".".concat(qn)).forEach(function(n,i){var r=i===e;if(n.classList.toggle("is-active",r),!t.hasAutoplay()){var o=n.querySelector(".".concat(Un));o&&(o.style.display=r?"block":"none")}})}},{key:"scrollActiveTabIntoView",value:function(e){if(!(!this.tabs.length||e<0||e>=this.tabs.length)){var t=this.tabs[e],n=this.element.querySelector(Zn);if(n&&t){var i=n.getBoundingClientRect(),r=t.getBoundingClientRect(),o=i.width-56;if(r.right>i.left+o||r.left<i.left){var s=r.left-i.left-o/2+r.width/2;n.scrollBy({left:s,behavior:"smooth"})}}}}},{key:"updatePlayPauseIcon",value:function(){var e=this.element.querySelector(Qn);if(e){var t=e.querySelector("use");if(t){var n=this.isAutoplayRunning()?"pause":"play",i=t.getAttribute("xlink:href")||"";if(!i.endsWith("#".concat(n))){var r=i.replace(/#[\w-]+$/,"#".concat(n));t.setAttribute("xlink:href",r)}}}}},{key:"renderPaginationDots",value:function(){var e=this;this._getPaginationButtons().forEach(function(t){var n=e.createSvgDot();t.innerHTML="",t.appendChild(n)})}},{key:"startDotAnimation",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(this.hasAutoplay()&&(e||this.isAutoplayRunning())&&!this._dotAnimationJustStarted){this._dotAnimationJustStarted=!0;var t=this._getActiveBulletButton();if(t){var n=t.querySelector(".".concat(Un));if(n){var i=n.querySelector("circle");if(i){var r=this.getAnimationDuration();i.style.animation="none",t.offsetHeight,i.style.animation="countdown linear ".concat(r,"ms 1 forwards"),this._dotAnimationJustStarted=!1}else this._dotAnimationJustStarted=!1}else this._dotAnimationJustStarted=!1}else this._dotAnimationJustStarted=!1}}},{key:"restartDotAnimation",value:function(){var e=this;this.stopDotAnimation(),setTimeout(function(){e.startDotAnimation()},50)}},{key:"stopDotAnimation",value:function(){this._getPaginationButtons().forEach(function(e){var t=e.querySelector(".".concat(Un));if(t){var n=t.querySelector("circle");n&&(n.style.animation="none")}}),this._dotAnimationJustStarted=!1}},{key:"_getPaginationButtons",value:function(){return Array.from(this.element.querySelectorAll("".concat(ti," > *")))}},{key:"_getActiveBulletClass",value:function(){var e,t=null===(e=this.instance)||void 0===e||null===(e=e.params)||void 0===e?void 0:e.pagination;if(t&&"object"===f(t)&&t.bulletActiveClass)return String(t.bulletActiveClass);var n=this.config.pagination;return n&&"object"===f(n)&&n.bulletActiveClass?String(n.bulletActiveClass):Gn}},{key:"_getActiveBulletButton",value:function(){var e=this._getActiveBulletClass();return this.element.querySelector("".concat(ti," .").concat(e))}},{key:"createSvgDot",value:function(){var e="http://www.w3.org/2000/svg",t=document.createElementNS(e,"svg");t.setAttribute("class",Un),t.setAttribute("width","12"),t.setAttribute("height","12"),t.setAttribute("viewBox","0 0 12 12");var n=document.createElementNS(e,"circle");return n.setAttribute("class",$n),n.setAttribute("r","5"),n.setAttribute("cx","6"),n.setAttribute("cy","6"),t.appendChild(n),t}},{key:"hasAutoplay",value:function(){return!!(this.config.autoplay&&"object"===f(this.config.autoplay)&&this.config.autoplay.delay>=1e3)}},{key:"getAnimationDuration",value:function(){var e;return(null===(e=this.config.autoplay)||void 0===e?void 0:e.delay)||0}},{key:"destroy",value:function(){var e=this;this.tabs.forEach(function(t){t.removeEventListener("click",e._boundTabClick)});var t=this.element.querySelector(Qn);t&&t.removeEventListener("click",this._boundPlayPauseClick);var n=this.element.querySelector(Kn),i=this.element.querySelector(Jn);n&&n.removeEventListener("click",this._boundPrevClick),i&&i.removeEventListener("click",this._boundNextClick),this.instance&&this.instance.destroy(!0,!0),delete this.element.ODS_CarouselHero}}],[{key:"getInstance",value:function(e){return e.ODS_CarouselHero||null}}])}(),ri="carousel-promotions",oi="".concat(ri,"__viewport"),si="".concat(ri,"__track"),ai="".concat(ri,"__slide"),li="".concat(ri,"__pagination"),ci="".concat(ri,"__pagination-item"),ui="".concat(ri,"__pagination-svg"),di="".concat(ri,"__pagination-circle"),pi="".concat(ri,"--slide-inverted"),hi="is-autoplay",fi="is-active",mi=".".concat(oi),vi=".".concat(li),gi={pagination:{el:vi,clickable:!0,bulletClass:ci,bulletActiveClass:fi,renderBullet:function(e,t){return'<button aria-label="Stránka '.concat(e+1,'" role="tab" class="').concat(t,'" type="button"></button>')}},slidesPerView:1,loop:!0,a11y:{enabled:!0,prevSlideMessage:"Predchádzajúci snímok",nextSlideMessage:"Nasledujúci snímok",paginationBulletMessage:"Prejsť na snímok {index}",containerMessage:"Carousel so snímkami",containerRoleDescriptionMessage:"carousel",itemRoleDescriptionMessage:"snímok",firstSlideMessage:"Prvý snímok",lastSlideMessage:"Posledný snímok",slideLabelMessage:"Snímok"},cssMode:!1,direction:"horizontal",wrapperClass:si,slideClass:ai,slideActiveClass:fi,autoplay:!1},yi=function(){function e(t,n){return i(this,e),s(this,"interval",0),this.element=t,this.config=l(l({},gi),n),this.interval=0,this.handleSlideChange=this.handleSlideChange.bind(this),this.scrollToNextSlide=this.scrollToNextSlide.bind(this),this.autoplayAnimationEnd=this.autoplayAnimationEnd.bind(this),this.element.ODS_CarouselPromotions=this,this.init(),this}return o(e,[{key:"init",value:function(){var e=this;this.getElements(),this.element.hasAttribute("data-swiper-options")&&this.getCustomOptions(),this.element.hasAttribute("data-interval")&&(this.interval=parseInt(this.element.getAttribute("data-interval")));var t=this.isIntervalValid();t?(this.element.classList.add(hi),this.config.autoplay={delay:this.interval,disableOnInteraction:!1}):(this.interval=0,this.config.autoplay=!1),this.instance=new Te(this.viewport,l(l({},this.config),{},{modules:[Le,Ie,Re,Ae,Be],on:{slideChange:this.handleSlideChange,init:function(){e.fixPaginationButtonType(),e.isAutoplayEnabled&&e.renderSvgDotsForAnimation()},update:function(){e.fixPaginationButtonType(),e.isAutoplayEnabled&&e.renderSvgDotsForAnimation()}}}));var n=this.element.querySelector(vi);n&&t&&(n.addEventListener("animationend",this.autoplayAnimationEnd),n.addEventListener("click",function(){e.stopAutoplay()}))}},{key:"stopAutoplay",value:function(){this.interval=0,this.element.classList.remove(hi),this.instance&&this.instance.autoplay&&this.instance.autoplay.stop()}},{key:"handleSlideChange",value:function(){this.element.classList.remove(pi),this.instance&&void 0!==this.instance.activeIndex&&this.instance.activeIndex%2==1&&this.element.classList.add(pi)}},{key:"autoplayAnimationEnd",value:function(e){e instanceof AnimationEvent&&"countdown"===e.animationName&&this.scrollToNextSlide()}},{key:"isAutoplayEnabled",get:function(){return this.interval>0}},{key:"isIntervalValid",value:function(){var e=parseInt(String(this.interval));return!isNaN(e)&&e>=1e3}},{key:"scrollToNextSlide",value:function(){if(this.instance&&this.instance.slides){var e=this.instance.slides.length;if(!(e<=0)){var t=this.instance.activeIndex||0;this.instance.slideTo((t+1)%e)}}}},{key:"getElements",value:function(){var e;this.viewport=this.element.querySelector(mi);var t=this.element.querySelector(vi);t&&!t.hasAttribute("role")&&t.setAttribute("role","tablist");var n={pagination:l(l({},null!==(e=this.config.pagination)&&void 0!==e?e:{}),{},{el:t,clickable:!0,bulletClass:ci,bulletActiveClass:fi})};this.config=l(l({},this.config),n)}},{key:"getCustomOptions",value:function(){var e=this.element.getAttribute("data-swiper-options");if(e){var t=JSON.parse(e);this.config=l(l({},this.config),t)}}},{key:"fixPaginationButtonType",value:function(){Array.from(this.element.querySelectorAll("".concat(vi," > *"))).forEach(function(e){return e.setAttribute("type","button")})}},{key:"renderSvgDotsForAnimation",value:function(){var t=Array.from(this.element.querySelectorAll("".concat(vi," > *"))),n=e.createSvgDot();n.querySelector("circle").style.animationDuration="".concat(this.interval,"ms"),t.forEach(function(e){e.innerHTML="",e.appendChild(n.cloneNode(!0))})}},{key:"destroy",value:function(){this.instance&&this.instance.destroy()}},{key:"update",value:function(){this.instance&&this.instance.update()}}],[{key:"createSvgDot",value:function(){var e="http://www.w3.org/2000/svg",t=document.createElementNS(e,"svg");t.setAttribute("class",ui),t.setAttribute("width","12"),t.setAttribute("height","12"),t.setAttribute("viewBox","0 0 12 12"),t.setAttribute("fill","none"),t.setAttribute("xmlns",e);var n=document.createElementNS(e,"circle");return n.setAttribute("class",di),n.setAttribute("r","5"),n.setAttribute("cx","6"),n.setAttribute("cy","6"),t.appendChild(n),t}},{key:"getInstance",value:function(e){return e&&e.ODS_CarouselPromotions?e.ODS_CarouselPromotions:null}}])}(),bi={dataInteractive:"data-dropdown-interactive",focusTrap:"data-dropdown-focus-trap",removeDialogOnDestroy:!1,popperOptions:{placement:"bottom-start",strategy:"absolute",modifiers:[{name:"eventListeners",options:{scroll:!1,resize:!1}},{name:"flip",options:{fallbackPlacements:["bottom-end","bottom-start","bottom"]}},{name:"offset",options:{offset:[0,-1]}}]}},wi=function(){return o(function e(t){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return i(this,e),t.ODS_Dropdown?t.ODS_Dropdown:(this.element=t,this.config=l(l({},bi),r),this.config.popperOptions=l(l({},bi.popperOptions),(null==r?void 0:r.popperOptions)||{}),this.config.popperOptions.modifiers=[].concat(p(bi.popperOptions.modifiers||[]),p((null==r||null===(n=r.popperOptions)||void 0===n?void 0:n.modifiers)||[])),this.handleVisibility=this.handleVisibility.bind(this),this.handleKeyPress=this.handleKeyPress.bind(this),this.handleClick=this.handleClick.bind(this),this.element.ODS_Dropdown=this,this.focusableElements=this.element.querySelectorAll('a[href]:not([disabled]), button:not([disabled]),\n textarea:not([disabled]), input[type="text"]:not([disabled]),\n input[type="radio"]:not([disabled]), input[type="checkbox"]:not([disabled]),\n select:not([disabled])'),this.init(),this)},[{key:"init",value:function(){this.trigger=document.getElementById(this.element.id.replace("dropdown","btn"));var e=this.element.getAttribute("data-dropdown-placement");e&&(this.config.popperOptions.placement=e),this.instance=Qt(this.trigger,this.element,this.config.popperOptions),this.transitioner=ze({element:this.element,visibleClass:"dropdown--visible"}),this.trigger.addEventListener("click",this.handleVisibility,!0)}},{key:"handleVisibility",value:function(){this.element.classList.contains("dropdown--visible")?this.hide():this.show()}},{key:"handleClick",value:function(e){this.trigger===e.target||this.trigger.contains(e.target)||this.element.hasAttribute(this.config.dataInteractive)&&!e.target.id.includes(this.element.id.replace("dropdown","btn"))&&this.element.contains(e.target)||this.handleVisibility()}},{key:"handleKeyPress",value:function(e){if(v.ESC.includes(e.key)&&(this.handleVisibility(),this.element.contains(document.activeElement)&&this.trigger.focus(),this.hide()),this.element.hasAttribute(this.config.focusTrap)){var t=this.focusableElements[0],n=this.focusableElements[this.focusableElements.length-1];document.activeElement!==this.button||"Tab"!==e.key&&9!==e.keyCode?"Tab"!==e.key&&9!==e.keyCode||(e.shiftKey?document.activeElement===t&&(n.focus(),e.preventDefault()):document.activeElement===n&&(t.focus(),e.preventDefault())):e.shiftKey&&(this.focusableElements[this.focusableElements.length-1].focus(),e.preventDefault())}}},{key:"show",value:function(){var e=this;this.transitioner.show(),this.instance.forceUpdate(),document.addEventListener("keydown",this.handleKeyPress),document.addEventListener("click",this.handleClick),window.onresize=function(){return e.update()}}},{key:"hide",value:function(){this.transitioner.hide(),document.removeEventListener("keydown",this.handleKeyPress),document.removeEventListener("click",this.handleClick),window.onresize=null}},{key:"update",value:function(){this.instance.forceUpdate()}},{key:"destroy",value:function(){this.trigger.removeEventListener("click",this.handleVisibility,!0),this.hide(),this.instance.destroy(),this.element.ODS_Dropdown=null,window.onresize=null,this.config.removeDialogOnDestroy&&this.element.remove()}}],[{key:"getInstance",value:function(e){return e&&e.ODS_Dropdown?e.ODS_Dropdown:null}}])}(),_i=function(){return o(function e(t){i(this,e),this.element=t,this.toggle=this.toggle.bind(this),this.element.ODS_Expander=this,this.init()},[{key:"toggle",value:function(){var e=this.element.getAttribute("data-toggle-group");e&&this.syncGroup(e)}},{key:"syncGroup",value:function(e){var t=this,n=this.element.open;document.querySelectorAll('[data-toggle-group="'.concat(e,'"][data-expander]')).forEach(function(e){e!==t.element&&e.open!==n&&(e.open=n)})}},{key:"init",value:function(){this.element.addEventListener("toggle",this.toggle)}},{key:"update",value:function(){this.destroy(),this.init()}},{key:"destroy",value:function(){this.element.removeEventListener("toggle",this.toggle)}}],[{key:"getInstance",value:function(e){return e&&e.ODS_Expander?e.ODS_Expander:null}}])}(),Si="toggleTrigger",Ei={activeClass:"is-active",settingsAttr:"data-toggle"},xi=function(){function e(t,n){return i(this,e),this.element=t,this.config=l(l({},Ei),n),this.settings=[],this.targets=[],this.hasClickOutside=!1,this.handleClick=this.handleClick.bind(this),this.handleClickOutside=this.handleClickOutside.bind(this),this.element.ODS_Toggle=this,this.init(),this}return o(e,[{key:"doToggle",value:function(e){var t=e.dispatchEvent,n=void 0===t||t,i=e.element,r=e.attribute,o=e.value,s=e.action,a=l({},e),c={trigger:this.element,element:i},u=r,d=i,p=o;"icon"===u&&(u="xlink:href",d=i.querySelector("use")),"text"===u&&(d=i.querySelector("[data-toggle-text-target]")||i),void 0===p&&(p=!1);var h=ki({element:d,attribute:u,action:s,value:p,dispatchEvent:n,eventDetail:c});return null!==h&&(a.value=h),a}},{key:"init",value:function(){return this.settings=this.parseSettings(),this.targets=this.setupTargets(),this.hasClickOutside=this.settings.some(function(e){return!0===e.clickOutside}),this.element.addEventListener("click",this.handleClick),this.hasClickOutside&&document.addEventListener("click",this.handleClickOutside),this.targets}},{key:"handleClick",value:function(){var e=this;this.targets=this.targets.map(function(t){return e.doToggle(t)}),this.element.dispatchEvent(new CustomEvent(Si,{bubbles:!0}))}},{key:"handleClickOutside",value:function(e){var t=this,n=e.target;this.element.contains(n)||this.targets.some(function(e){return e.element.contains(n)})||this.targets.some(function(e){return"class"===e.attribute&&"string"==typeof e.value?e.element.classList.contains(e.value):"hidden"===e.attribute&&!e.element.hasAttribute("hidden")})&&(this.targets=this.targets.map(function(e){return t.doToggle(e)}),this.element.dispatchEvent(new CustomEvent(Si,{bubbles:!0})))}},{key:"destroy",value:function(){this.element.removeEventListener("click",this.handleClick),this.hasClickOutside&&document.removeEventListener("click",this.handleClickOutside),this.settings=[],this.targets=[],this.hasClickOutside=!1}},{key:"update",value:function(){this.removeNonExistentTargets(),this.addNewTargets();var e=this.hasClickOutside;this.hasClickOutside=this.settings.some(function(e){return!0===e.clickOutside}),!e&&this.hasClickOutside?document.addEventListener("click",this.handleClickOutside):e&&!this.hasClickOutside&&document.removeEventListener("click",this.handleClickOutside)}},{key:"parseSettings",value:function(){var e=this.element.getAttribute(this.config.settingsAttr),t=this.element.getAttribute("aria-controls"),n=[];try{e&&(n=JSON.parse(e))}catch(e){}if(t){var i=this.element.getAttribute("aria-expanded");n=[].concat(p(i?[{target:"self",attribute:"aria-expanded"}]:[]),[{target:t.split(" ").map(function(e){return"#".concat(e)}).join(","),attribute:"hidden"}],p(Array.isArray(n)?n:[]))}return n}},{key:"setupTargets",value:function(){var t=this.element;return this.settings.reduce(function(n,i){return i&&i.target?[].concat(p(n),p(i.target.split(",").reduce(function(n,r){return[].concat(p(n),p(e.getTargetElementsFromString({target:r,trigger:t}).map(function(e){return l(l({},i),{},{element:e})})))},[]))):n},[])}},{key:"removeNonExistentTargets",value:function(){this.targets=this.targets.filter(function(e){return document.contains(e.element)})}},{key:"addNewTargets",value:function(){var e=this,t=this.setupTargets().filter(function(t){return!e.targets.find(function(e){return e.element===t.element&&e.action===t.action})});this.targets=[].concat(p(this.targets),p(t))}}],[{key:"getTargetElementsFromString",value:function(e){var t=e.target,n=e.trigger,i=t.trim();return"self"===i?[n]:"parent"===i?[n.parentNode]:"previous"===i?[n.previousElementSibling]:"next"===i?[n.nextElementSibling]:"string"==typeof i?Array.from(document.querySelectorAll(i)):[]}},{key:"getInstance",value:function(e){return e&&e.ODS_Toggle?e.ODS_Toggle:null}}])}();function ki(e){var t=e.element,n=e.attribute,i=e.action,r=e.value,o=e.dispatchEvent,s=void 0===o||o,a=e.eventDetail,l=null;if(!(t&&t instanceof Element))return l;if("focus"===i&&setTimeout(function(){return t.focus()},20),"click"===i&&t.click(),"class"===n&&"string"==typeof r&&(t.classList.toggle(r),l=r),"text"===n){var c=t.textContent;t.textContent=(null==r?void 0:r.toString())||"",l=c}return"class"!==n&&"text"!==n&&void 0===i&&(l=t.getAttribute(n),"hidden"===n?t.hasAttribute(n)?t.removeAttribute(n):t.setAttribute(n,""):r?t.setAttribute(n,String(r)):t.setAttribute(n,String(!("true"===l)))),s&&t.dispatchEvent(new CustomEvent("toggle",{detail:a,bubbles:!0})),l}var Ci,Ti,Ai,Oi,Di,Mi,Li,Pi,Ii,Ni,Ri={bodiesSelector:".accordion__body",buttonSelector:"[data-feature-accordion-toggle]",imageSelector:"[data-feature-accordion-image]"},Bi=function(){return o(function e(t,n){var r=this;return i(this,e),s(this,"bodies",[]),s(this,"buttons",[]),s(this,"images",[]),s(this,"activeId",null),s(this,"onClick",function(e){var t=e.currentTarget,n=r.buttons.indexOf(t);r.setActive(n)}),this.element=t,this.config=l(l({},Ri),n),this.element.ODS_FeatureAccordion=this,this.init(),this},[{key:"init",value:function(){var e=this;this.bodies=Array.from(this.element.querySelectorAll(this.config.bodiesSelector)),this.buttons=Array.from(this.element.querySelectorAll(this.config.buttonSelector)),this.generateImagesFromDataAttributes(),this.setActive(0),this.buttons.forEach(function(t){t.addEventListener("click",e.onClick)})}},{key:"generateImagesFromDataAttributes",value:function(){var e=this,t=this.element.querySelector(".feature-accordion__preview.show-md");if(t){var n=t.querySelectorAll(this.config.imageSelector);n.length>0?this.images=Array.from(n):(this.images=[],this.buttons.forEach(function(n){var i=n.getAttribute("data-image-url"),r=n.getAttribute("data-image-alt")||"",o=n.getAttribute("data-image-srcset");if(i){var s=document.createElement("img");s.setAttribute("data-feature-accordion-image",""),s.src=i,s.alt=r,o&&(s.srcset=o),t.appendChild(s),e.images.push(s);var a=n.getAttribute("aria-controls");if(a){var l=document.getElementById(a);if(l){var c=l.querySelector(".feature-accordion__preview.hide-md");c||((c=document.createElement("div")).className="feature-accordion__preview hide-md",l.appendChild(c));var u=document.createElement("img");u.setAttribute("data-feature-accordion-image",""),u.src=i,u.alt=r,u.className="feature-accordion__image--mobile",o&&(u.srcset=o),c.appendChild(u)}}}}))}}},{key:"setActive",value:function(e){if(!(e<0||e>=this.buttons.length)){this.activeId=this.buttons[e].getAttribute("id"),this.bodies.forEach(function(e){e.setAttribute("hidden",""),e.classList.remove("is-active")}),this.buttons.forEach(function(e){var t=e.closest(".feature-accordion__item");null==t||t.classList.remove("is-active"),ki({element:e,attribute:"aria-expanded",value:"false"})});var t=this.buttons[e],n=t.getAttribute("aria-controls"),i=n?document.getElementById(n):null,r=t.closest(".feature-accordion__item");i&&(i.removeAttribute("hidden"),i.classList.add("is-active")),r&&r.classList.add("is-active"),ki({element:t,attribute:"aria-expanded",value:"true"}),this.images.forEach(function(t,n){t.classList.toggle("hide",n!==e)})}}},{key:"destroy",value:function(){var e=this;this.buttons.forEach(function(t){t.removeEventListener("click",e.onClick)})}},{key:"update",value:function(){this.destroy(),this.init()}}],[{key:"getInstance",value:function(e){return e&&e.ODS_FeatureAccordion?e.ODS_FeatureAccordion:null}}])}(),zi={autoselect:!0,wrapperClassName:"",menuClassName:"",optionClassName:"",customInputClassName:"",displayMenu:"overlay",tAssistiveHint:function(){return"Pre prezeranie výsledkov automatického dopĺňania použite šípky nahor a nadol a pre výber konkrétneho výsledku použite tlačidlo Enter. Pri dotykových zariadeniach použite dotyk alebo potiahnutie prstom do strany."}},Hi=function(){return o(function e(t,n){return i(this,e),this.element=t,this.config=l(l({},zi),n),this.onPageshow=this.onPageshow.bind(this),this.instance=null,this.element.ODS_Autocomplete=this,this.init().catch(console.error),this},[{key:"init",value:(e=function(e){return function(){var t=this,i=arguments;return new Promise(function(r,o){var s=e.apply(t,i);function a(e){n(s,r,o,a,l,"next",e)}function l(e){n(s,r,o,a,l,"throw",e)}a(void 0)})}}(c().m(function e(){var t,n,i,r,o,s,a;return c().w(function(e){for(;;)switch(e.n){case 0:if(t=this.element.getAttribute("data-autocomplete-config"),n={},t)try{n=JSON.parse(t)}catch(e){}return this.config=l(l({},this.config),n),i=this.config.customInputClassName||"",r=i.split(/\s+/).filter(Boolean),o=r.includes("input--search-icon"),s=r.includes("input--search-icon-with-placeholder"),this.config.customInputClassName=r.filter(function(e){return"input--search-icon"!==e&&"input--search-icon-with-placeholder"!==e}).join(" "),o&&(this.config.wrapperClassName=[this.config.wrapperClassName,"autocomplete__wrapper--search-icon"].filter(Boolean).join(" ")),s&&(this.config.wrapperClassName=[this.config.wrapperClassName,"autocomplete__wrapper--search-icon-with-placeholder"].filter(Boolean).join(" ")),e.n=1,Promise.resolve().then(function(){return ol});case 1:a=e.v.default,"SELECT"===this.element.tagName?a.enhanceSelectElement(l({selectElement:this.element},this.config)):a(l({element:this.element},this.config)),window.addEventListener("pageshow",this.onPageshow);case 2:return e.a(2)}},e,this)})),function(){return e.apply(this,arguments)})},{key:"onPageshow",value:function(e){e.persisted&&window&&window.location.reload()}},{key:"destroy",value:function(){window.removeEventListener("pageshow",this.onPageshow),this.element.ODS_Autocomplete=null}},{key:"update",value:function(){this.destroy(),this.init().catch(console.error)}}],[{key:"getInstance",value:function(e){return e&&e.ODS_Autocomplete?e.ODS_Autocomplete:null}}]);var e}(),Fi={},Vi=[],ji=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function qi(e,t){for(var n in t)e[n]=t[n];return e}function Ui(e){var t=e.parentNode;t&&t.removeChild(e)}function $i(e,t,n){var i,r,o,s={};for(o in t)"key"==o?i=t[o]:"ref"==o?r=t[o]:s[o]=t[o];if(arguments.length>2&&(s.children=arguments.length>3?Ci.call(arguments,2):n),"function"==typeof e&&null!=e.defaultProps)for(o in e.defaultProps)void 0===s[o]&&(s[o]=e.defaultProps[o]);return Gi(e,s,i,r,null)}function Gi(e,t,n,i,r){var o={type:e,props:t,key:n,ref:i,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:null==r?++Ai:r};return null==r&&null!=Ti.vnode&&Ti.vnode(o),o}function Wi(e){return e.children}function Yi(e,t){this.props=e,this.context=t}function Xi(e,t){if(null==t)return e.__?Xi(e.__,e.__.__k.indexOf(e)+1):null;for(var n;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e)return n.__e;return"function"==typeof e.type?Xi(e):null}function Ki(e){var t,n;if(null!=(e=e.__)&&null!=e.__c){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e){e.__e=e.__c.base=n.__e;break}return Ki(e)}}function Ji(e){(!e.__d&&(e.__d=!0)&&Oi.push(e)&&!Qi.__r++||Mi!==Ti.debounceRendering)&&((Mi=Ti.debounceRendering)||Di)(Qi)}function Qi(){for(var e;Qi.__r=Oi.length;)e=Oi.sort(function(e,t){return e.__v.__b-t.__v.__b}),Oi=[],e.some(function(e){var t,n,i,r,o,s;e.__d&&(o=(r=(t=e).__v).__e,(s=t.__P)&&(n=[],(i=qi({},r)).__v=r.__v+1,ar(s,r,i,t.__n,void 0!==s.ownerSVGElement,null!=r.__h?[o]:null,n,null==o?Xi(r):o,r.__h),lr(n,r),r.__e!=o&&Ki(r)))})}function Zi(e,t,n,i,r,o,s,a,l,c){var u,d,p,h,f,m,v,g=i&&i.__k||Vi,y=g.length;for(n.__k=[],u=0;u<t.length;u++)if(null!=(h=n.__k[u]=null==(h=t[u])||"boolean"==typeof h?null:"string"==typeof h||"number"==typeof h||"bigint"==typeof h?Gi(null,h,null,null,h):Array.isArray(h)?Gi(Wi,{children:h},null,null,null):h.__b>0?Gi(h.type,h.props,h.key,null,h.__v):h)){if(h.__=n,h.__b=n.__b+1,null===(p=g[u])||p&&h.key==p.key&&h.type===p.type)g[u]=void 0;else for(d=0;d<y;d++){if((p=g[d])&&h.key==p.key&&h.type===p.type){g[d]=void 0;break}p=null}ar(e,h,p=p||Fi,r,o,s,a,l,c),f=h.__e,(d=h.ref)&&p.ref!=d&&(v||(v=[]),p.ref&&v.push(p.ref,null,h),v.push(d,h.__c||f,h)),null!=f?(null==m&&(m=f),"function"==typeof h.type&&h.__k===p.__k?h.__d=l=er(h,l,e):l=nr(e,h,p,g,f,l),"function"==typeof n.type&&(n.__d=l)):l&&p.__e==l&&l.parentNode!=e&&(l=Xi(p))}for(n.__e=m,u=y;u--;)null!=g[u]&&("function"==typeof n.type&&null!=g[u].__e&&g[u].__e==n.__d&&(n.__d=Xi(i,u+1)),ur(g[u],g[u]));if(v)for(u=0;u<v.length;u++)cr(v[u],v[++u],v[++u])}function er(e,t,n){for(var i,r=e.__k,o=0;r&&o<r.length;o++)(i=r[o])&&(i.__=e,t="function"==typeof i.type?er(i,t,n):nr(n,i,i,r,i.__e,t));return t}function tr(e,t){return t=t||[],null==e||"boolean"==typeof e||(Array.isArray(e)?e.some(function(e){tr(e,t)}):t.push(e)),t}function nr(e,t,n,i,r,o){var s,a,l;if(void 0!==t.__d)s=t.__d,t.__d=void 0;else if(null==n||r!=o||null==r.parentNode)e:if(null==o||o.parentNode!==e)e.appendChild(r),s=null;else{for(a=o,l=0;(a=a.nextSibling)&&l<i.length;l+=2)if(a==r)break e;e.insertBefore(r,o),s=o}return void 0!==s?s:r.nextSibling}function ir(e,t,n){"-"===t[0]?e.setProperty(t,n):e[t]=null==n?"":"number"!=typeof n||ji.test(t)?n:n+"px"}function rr(e,t,n,i,r){var o;e:if("style"===t)if("string"==typeof n)e.style.cssText=n;else{if("string"==typeof i&&(e.style.cssText=i=""),i)for(t in i)n&&t in n||ir(e.style,t,"");if(n)for(t in n)i&&n[t]===i[t]||ir(e.style,t,n[t])}else if("o"===t[0]&&"n"===t[1])o=t!==(t=t.replace(/Capture$/,"")),t=t.toLowerCase()in e?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+o]=n,n?i||e.addEventListener(t,o?sr:or,o):e.removeEventListener(t,o?sr:or,o);else if("dangerouslySetInnerHTML"!==t){if(r)t=t.replace(/xlink[H:h]/,"h").replace(/sName$/,"s");else if("href"!==t&&"list"!==t&&"form"!==t&&"tabIndex"!==t&&"download"!==t&&t in e)try{e[t]=null==n?"":n;break e}catch(e){}"function"==typeof n||(null!=n&&(!1!==n||"a"===t[0]&&"r"===t[1])?e.setAttribute(t,n):e.removeAttribute(t))}}function or(e){this.l[e.type+!1](Ti.event?Ti.event(e):e)}function sr(e){this.l[e.type+!0](Ti.event?Ti.event(e):e)}function ar(e,t,n,i,r,o,s,a,l){var c,u,d,p,h,f,m,v,g,y,b,w=t.type;if(void 0!==t.constructor)return null;null!=n.__h&&(l=n.__h,a=t.__e=n.__e,t.__h=null,o=[a]),(c=Ti.__b)&&c(t);try{e:if("function"==typeof w){if(v=t.props,g=(c=w.contextType)&&i[c.__c],y=c?g?g.props.value:c.__:i,n.__c?m=(u=t.__c=n.__c).__=u.__E:("prototype"in w&&w.prototype.render?t.__c=u=new w(v,y):(t.__c=u=new Yi(v,y),u.constructor=w,u.render=dr),g&&g.sub(u),u.props=v,u.state||(u.state={}),u.context=y,u.__n=i,d=u.__d=!0,u.__h=[]),null==u.__s&&(u.__s=u.state),null!=w.getDerivedStateFromProps&&(u.__s==u.state&&(u.__s=qi({},u.__s)),qi(u.__s,w.getDerivedStateFromProps(v,u.__s))),p=u.props,h=u.state,d)null==w.getDerivedStateFromProps&&null!=u.componentWillMount&&u.componentWillMount(),null!=u.componentDidMount&&u.__h.push(u.componentDidMount);else{if(null==w.getDerivedStateFromProps&&v!==p&&null!=u.componentWillReceiveProps&&u.componentWillReceiveProps(v,y),!u.__e&&null!=u.shouldComponentUpdate&&!1===u.shouldComponentUpdate(v,u.__s,y)||t.__v===n.__v){u.props=v,u.state=u.__s,t.__v!==n.__v&&(u.__d=!1),u.__v=t,t.__e=n.__e,t.__k=n.__k,t.__k.forEach(function(e){e&&(e.__=t)}),u.__h.length&&s.push(u);break e}null!=u.componentWillUpdate&&u.componentWillUpdate(v,u.__s,y),null!=u.componentDidUpdate&&u.__h.push(function(){u.componentDidUpdate(p,h,f)})}u.context=y,u.props=v,u.state=u.__s,(c=Ti.__r)&&c(t),u.__d=!1,u.__v=t,u.__P=e,c=u.render(u.props,u.state,u.context),u.state=u.__s,null!=u.getChildContext&&(i=qi(qi({},i),u.getChildContext())),d||null==u.getSnapshotBeforeUpdate||(f=u.getSnapshotBeforeUpdate(p,h)),b=null!=c&&c.type===Wi&&null==c.key?c.props.children:c,Zi(e,Array.isArray(b)?b:[b],t,n,i,r,o,s,a,l),u.base=t.__e,t.__h=null,u.__h.length&&s.push(u),m&&(u.__E=u.__=null),u.__e=!1}else null==o&&t.__v===n.__v?(t.__k=n.__k,t.__e=n.__e):t.__e=function(e,t,n,i,r,o,s,a){var l,c,u,d=n.props,p=t.props,h=t.type,f=0;if("svg"===h&&(r=!0),null!=o)for(;f<o.length;f++)if((l=o[f])&&"setAttribute"in l==!!h&&(h?l.localName===h:3===l.nodeType)){e=l,o[f]=null;break}if(null==e){if(null===h)return document.createTextNode(p);e=r?document.createElementNS("http://www.w3.org/2000/svg",h):document.createElement(h,p.is&&p),o=null,a=!1}if(null===h)d===p||a&&e.data===p||(e.data=p);else{if(o=o&&Ci.call(e.childNodes),c=(d=n.props||Fi).dangerouslySetInnerHTML,u=p.dangerouslySetInnerHTML,!a){if(null!=o)for(d={},f=0;f<e.attributes.length;f++)d[e.attributes[f].name]=e.attributes[f].value;(u||c)&&(u&&(c&&u.__html==c.__html||u.__html===e.innerHTML)||(e.innerHTML=u&&u.__html||""))}if(function(e,t,n,i,r){var o;for(o in n)"children"===o||"key"===o||o in t||rr(e,o,null,n[o],i);for(o in t)r&&"function"!=typeof t[o]||"children"===o||"key"===o||"value"===o||"checked"===o||n[o]===t[o]||rr(e,o,t[o],n[o],i)}(e,p,d,r,a),u)t.__k=[];else if(f=t.props.children,Zi(e,Array.isArray(f)?f:[f],t,n,i,r&&"foreignObject"!==h,o,s,o?o[0]:n.__k&&Xi(n,0),a),null!=o)for(f=o.length;f--;)null!=o[f]&&Ui(o[f]);a||("value"in p&&void 0!==(f=p.value)&&(f!==e.value||"progress"===h&&!f||"option"===h&&f!==d.value)&&rr(e,"value",f,d.value,!1),"checked"in p&&void 0!==(f=p.checked)&&f!==e.checked&&rr(e,"checked",f,d.checked,!1))}return e}(n.__e,t,n,i,r,o,s,l);(c=Ti.diffed)&&c(t)}catch(e){t.__v=null,(l||null!=o)&&(t.__e=a,t.__h=!!l,o[o.indexOf(a)]=null),Ti.__e(e,t,n)}}function lr(e,t){Ti.__c&&Ti.__c(t,e),e.some(function(t){try{e=t.__h,t.__h=[],e.some(function(e){e.call(t)})}catch(e){Ti.__e(e,t.__v)}})}function cr(e,t,n){try{"function"==typeof e?e(t):e.current=t}catch(e){Ti.__e(e,n)}}function ur(e,t,n){var i,r;if(Ti.unmount&&Ti.unmount(e),(i=e.ref)&&(i.current&&i.current!==e.__e||cr(i,null,t)),null!=(i=e.__c)){if(i.componentWillUnmount)try{i.componentWillUnmount()}catch(e){Ti.__e(e,t)}i.base=i.__P=null}if(i=e.__k)for(r=0;r<i.length;r++)i[r]&&ur(i[r],t,"function"!=typeof e.type);n||null==e.__e||Ui(e.__e),e.__e=e.__d=void 0}function dr(e,t,n){return this.constructor(e,n)}function pr(e,t,n){var i,r;Ti.__&&Ti.__(e,t),i=t.__k,r=[],ar(t,e=t.__k=$i(Wi,null,[e]),i||Fi,Fi,void 0!==t.ownerSVGElement,i?null:t.firstChild?Ci.call(t.childNodes):null,r,i?i.__e:t.firstChild,!1),lr(r,e)}Ci=Vi.slice,Ti={__e:function(e,t){for(var n,i,r;t=t.__;)if((n=t.__c)&&!n.__)try{if((i=n.constructor)&&null!=i.getDerivedStateFromError&&(n.setState(i.getDerivedStateFromError(e)),r=n.__d),null!=n.componentDidCatch&&(n.componentDidCatch(e),r=n.__d),r)return n.__E=n}catch(t){e=t}throw e}},Ai=0,Yi.prototype.setState=function(e,t){var n;n=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=qi({},this.state),"function"==typeof e&&(e=e(qi({},n),this.props)),e&&qi(n,e),null!=e&&this.__v&&(t&&this.__h.push(t),Ji(this))},Yi.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),Ji(this))},Yi.prototype.render=Wi,Oi=[],Di="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,Qi.__r=0,Li=0;var hr=0,fr=[],mr=Ti.__b,vr=Ti.__r,gr=Ti.diffed,yr=Ti.__c,br=Ti.unmount;function wr(e,t){Ti.__h&&Ti.__h(Ii,e,hr||t),hr=0;var n=Ii.__H||(Ii.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({}),n.__[e]}function _r(e){return hr=1,function(e,t){var n=wr(Pi++,2);return n.t=e,n.__c||(n.__=[Dr(void 0,t),function(e){var t=n.t(n.__[0],e);n.__[0]!==t&&(n.__=[t,n.__[1]],n.__c.setState({}))}],n.__c=Ii),n.__}(Dr,e)}function Sr(e,t){var n=wr(Pi++,3);!Ti.__s&&Or(n.__H,t)&&(n.__=e,n.__H=t,Ii.__H.__h.push(n))}function Er(e){return hr=5,function(e,t){var n=wr(Pi++,7);return Or(n.__H,t)&&(n.__=e(),n.__H=t,n.__h=e),n.__}(function(){return{current:e}},[])}function xr(e){var t=Ii.context[e.__c],n=wr(Pi++,9);return n.c=e,t?(null==n.__&&(n.__=!0,t.sub(Ii)),t.props.value):e.__}function kr(){for(var e;e=fr.shift();)if(e.__P)try{e.__H.__h.forEach(Tr),e.__H.__h.forEach(Ar),e.__H.__h=[]}catch(t){e.__H.__h=[],Ti.__e(t,e.__v)}}Ti.__b=function(e){Ii=null,mr&&mr(e)},Ti.__r=function(e){vr&&vr(e),Pi=0;var t=(Ii=e.__c).__H;t&&(t.__h.forEach(Tr),t.__h.forEach(Ar),t.__h=[])},Ti.diffed=function(e){gr&&gr(e);var t=e.__c;t&&t.__H&&t.__H.__h.length&&(1!==fr.push(t)&&Ni===Ti.requestAnimationFrame||((Ni=Ti.requestAnimationFrame)||function(e){var t,n=function(){clearTimeout(i),Cr&&cancelAnimationFrame(t),setTimeout(e)},i=setTimeout(n,100);Cr&&(t=requestAnimationFrame(n))})(kr)),Ii=null},Ti.__c=function(e,t){t.some(function(e){try{e.__h.forEach(Tr),e.__h=e.__h.filter(function(e){return!e.__||Ar(e)})}catch(n){t.some(function(e){e.__h&&(e.__h=[])}),t=[],Ti.__e(n,e.__v)}}),yr&&yr(e,t)},Ti.unmount=function(e){br&&br(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach(function(e){try{Tr(e)}catch(e){t=e}}),t&&Ti.__e(t,n.__v))};var Cr="function"==typeof requestAnimationFrame;function Tr(e){var t=Ii,n=e.__c;"function"==typeof n&&(e.__c=void 0,n()),Ii=t}function Ar(e){var t=Ii;e.__c=e.__(),Ii=t}function Or(e,t){return!e||e.length!==t.length||t.some(function(t,n){return t!==e[n]})}function Dr(e,t){return"function"==typeof t?t(e):t}function Mr(e,t){for(var n in t)e[n]=t[n];return e}function Lr(e,t){for(var n in e)if("__source"!==n&&!(n in t))return!0;for(var i in t)if("__source"!==i&&e[i]!==t[i])return!0;return!1}function Pr(e){this.props=e}(Pr.prototype=new Yi).isPureReactComponent=!0,Pr.prototype.shouldComponentUpdate=function(e,t){return Lr(this.props,e)||Lr(this.state,t)};var Ir=Ti.__b;Ti.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),Ir&&Ir(e)};var Nr="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function Rr(e){function t(t,n){var i=Mr({},t);return delete i.ref,e(i,(n=t.ref||n)&&("object"!=typeof n||"current"in n)?n:null)}return t.$$typeof=Nr,t.render=t,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t}var Br=Ti.__e;Ti.__e=function(e,t,n){if(e.then)for(var i,r=t;r=r.__;)if((i=r.__c)&&i.__c)return null==t.__e&&(t.__e=n.__e,t.__k=n.__k),i.__c(e,t);Br(e,t,n)};var zr=Ti.unmount;function Hr(){this.__u=0,this.t=null,this.__b=null}function Fr(e){var t=e.__.__c;return t&&t.__e&&t.__e(e)}function Vr(){this.u=null,this.o=null}Ti.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&!0===e.__h&&(e.type=null),zr&&zr(e)},(Hr.prototype=new Yi).__c=function(e,t){var n=t.__c,i=this;null==i.t&&(i.t=[]),i.t.push(n);var r=Fr(i.__v),o=!1,s=function(){o||(o=!0,n.__R=null,r?r(a):a())};n.__R=s;var a=function(){if(! --i.__u){if(i.state.__e){var e=i.state.__e;i.__v.__k[0]=function e(t,n,i){return t&&(t.__v=null,t.__k=t.__k&&t.__k.map(function(t){return e(t,n,i)}),t.__c&&t.__c.__P===n&&(t.__e&&i.insertBefore(t.__e,t.__d),t.__c.__e=!0,t.__c.__P=i)),t}(e,e.__c.__P,e.__c.__O)}var t;for(i.setState({__e:i.__b=null});t=i.t.pop();)t.forceUpdate()}},l=!0===t.__h;i.__u++||l||i.setState({__e:i.__b=i.__v.__k[0]}),e.then(s,s)},Hr.prototype.componentWillUnmount=function(){this.t=[]},Hr.prototype.render=function(e,t){if(this.__b){if(this.__v.__k){var n=document.createElement("div"),i=this.__v.__k[0].__c;this.__v.__k[0]=function e(t,n,i){return t&&(t.__c&&t.__c.__H&&(t.__c.__H.__.forEach(function(e){"function"==typeof e.__c&&e.__c()}),t.__c.__H=null),null!=(t=Mr({},t)).__c&&(t.__c.__P===i&&(t.__c.__P=n),t.__c=null),t.__k=t.__k&&t.__k.map(function(t){return e(t,n,i)})),t}(this.__b,n,i.__O=i.__P)}this.__b=null}var r=t.__e&&$i(Wi,null,e.fallback);return r&&(r.__h=null),[$i(Wi,null,t.__e?null:e.children),r]};var jr=function(e,t,n){if(++n[1]===n[0]&&e.o.delete(t),e.props.revealOrder&&("t"!==e.props.revealOrder[0]||!e.o.size))for(n=e.u;n;){for(;n.length>3;)n.pop()();if(n[1]<n[0])break;e.u=n=n[2]}};(Vr.prototype=new Yi).__e=function(e){var t=this,n=Fr(t.__v),i=t.o.get(e);return i[0]++,function(r){var o=function(){t.props.revealOrder?(i.push(r),jr(t,e,i)):r()};n?n(o):o()}},Vr.prototype.render=function(e){this.u=null,this.o=new Map;var t=tr(e.children);e.revealOrder&&"b"===e.revealOrder[0]&&t.reverse();for(var n=t.length;n--;)this.o.set(t[n],this.u=[1,0,this.u]);return e.children},Vr.prototype.componentDidUpdate=Vr.prototype.componentDidMount=function(){var e=this;this.o.forEach(function(t,n){jr(e,n,t)})};var qr="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,Ur=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|marker(?!H|W|U)|overline|paint|stop|strikethrough|stroke|text(?!L)|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,$r="undefined"!=typeof document,Gr=function(e){return("undefined"!=typeof Symbol&&"symbol"==typeof Symbol()?/fil|che|rad/i:/fil|che|ra/i).test(e)};Yi.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(e){Object.defineProperty(Yi.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})});var Wr=Ti.event;function Yr(){}function Xr(){return this.cancelBubble}function Kr(){return this.defaultPrevented}Ti.event=function(e){return Wr&&(e=Wr(e)),e.persist=Yr,e.isPropagationStopped=Xr,e.isDefaultPrevented=Kr,e.nativeEvent=e};var Jr={configurable:!0,get:function(){return this.class}},Qr=Ti.vnode;Ti.vnode=function(e){var t=e.type,n=e.props,i=n;if("string"==typeof t){var r=-1===t.indexOf("-");for(var o in i={},n){var s=n[o];$r&&"children"===o&&"noscript"===t||"value"===o&&"defaultValue"in n&&null==s||("defaultValue"===o&&"value"in n&&null==n.value?o="value":"download"===o&&!0===s?s="":/ondoubleclick/i.test(o)?o="ondblclick":/^onchange(textarea|input)/i.test(o+t)&&!Gr(n.type)?o="oninput":/^onfocus$/i.test(o)?o="onfocusin":/^onblur$/i.test(o)?o="onfocusout":/^on(Ani|Tra|Tou|BeforeInp|Compo)/.test(o)?o=o.toLowerCase():r&&Ur.test(o)?o=o.replace(/[A-Z0-9]/,"-$&").toLowerCase():null===s&&(s=void 0),i[o]=s)}"select"==t&&i.multiple&&Array.isArray(i.value)&&(i.value=tr(n.children).forEach(function(e){e.props.selected=-1!=i.value.indexOf(e.props.value)})),"select"==t&&null!=i.defaultValue&&(i.value=tr(n.children).forEach(function(e){e.props.selected=i.multiple?-1!=i.defaultValue.indexOf(e.props.value):i.defaultValue==e.props.value})),e.props=i,n.class!=n.className&&(Jr.enumerable="className"in n,null!=n.className&&(i.class=n.className),Object.defineProperty(i,"className",Jr))}e.$$typeof=qr,Qr&&Qr(e)};var Zr=Ti.__r;Ti.__r=function(e){Zr&&Zr(e),e.__c};var eo={wrapper:"daypickr",header:"daypickr__header",select:"daypickr__select",monthSelect:"daypickr__select--month",yearSelect:"daypickr__select--year",button:"daypickr__button",paginationButton:"daypickr__button--pagination",nextMonthButton:"daypickr__button--pagination-next",prevMonthButton:"daypickr__button--pagination-prev",yearMonthWrapper:"daypickr__year-month-wrapper",pagination:"daypickr__pagination",table:"daypickr__calendar",tableRow:"daypickr__calendar-row",tableCell:"daypickr__calendar-cell",tableHeaderRow:"daypickr__calendar-header-row",tableHeaderCell:"daypickr__calendar-header-cell",dayButton:"daypickr__day",isToday:"isToday",isSelected:"isSelected",srOnly:"sr-only",closeButton:"daypickr__button--close",toggleButton:"daypickr__button--toggle"};function to(...e){return e.join(" ").trim()}var no={prevMonth:"previous month",nextMonth:"next month",month:"Month",year:"Year",weekdays:[{name:"Sunday",shortname:"Su"},{name:"Monday",shortname:"Mo"},{name:"Tuesday",shortname:"Tu"},{name:"Wednesday",shortname:"We"},{name:"Thursday",shortname:"Th"},{name:"Friday",shortname:"Fr"},{name:"Saturday",shortname:"Sa"}],months:["January","February","March","April","May","June","July","August","September","October","November","December"],openButton:"Choose date",closeButton:"Close"};function io(e){return e instanceof Date&&!isNaN(e.valueOf())}function ro(e,t=1){const n=new Date(e),i=e.getDay(),r=(i<t?7:0)+i-t;return new Date(n.setDate(n.getDate()-r))}function oo(e,t=1){const n=new Date(e),i=n.getDay(),r=6+(i<t?-7:0)-(i-t);return new Date(n.setDate(n.getDate()+r))}function so(e,t){return!(!io(e)||!io(t))&&(e.setHours(0,0,0,0),t.setHours(0,0,0,0),e.getTime()===t.getTime())}function ao(e,t){const n=new Date(e).setMonth(t),i=new Date(e.getFullYear(),t+1,0).getTime();return n>i?new Date(i):new Date(n)}var lo,co,uo=(co={__c:lo="__cC"+Li++,__:void 0,Consumer:function(e,t){return e.children(t)},Provider:function(e){var t,n;return this.getChildContext||(t=[],(n={})[lo]=this,this.getChildContext=function(){return n},this.shouldComponentUpdate=function(e){this.props.value!==e.value&&t.some(Ji)},this.sub=function(e){t.push(e);var n=e.componentWillUnmount;e.componentWillUnmount=function(){t.splice(t.indexOf(e),1),n&&n.call(e)}}),e.children}}).Provider.__=co.Consumer.contextType=co,po=()=>{const{firstDayOfWeek:e,classes:t,l10n:n,selected:i,setSelected:r,setView:o,handleKeyboardNavigation:s,focusedRef:a,view:l,disabledDayFn:c,locale:u}=xr(uo),d=function(e,t){const n=e?.length?[...e]:[],i=n.splice(0,t);return[...n,...i]}(n.weekdays,e),p=function(e){const t=[];for(let n=0;n<e.length;n+=7)t.push(e.slice(n,n+7));return t}(function(e,t){const n=new Date(e);n.setDate(1);const i=new Date(e);return i.setMonth(e.getMonth()+1,0),function(e,t){const n=[];let i=e;for(;i.getTime()<t.getTime();)n.push(new Date(i)),i=new Date(i.setDate(i.getDate()+1));return n.push(new Date(i)),n}(ro(n,t),oo(i,t))}(l,e));return $i("table",{className:t.table},$i("thead",null,$i("tr",{className:t.tableHeaderRow},d.map(e=>$i("th",{scope:"col",className:t.tableHeaderCell},$i("span",{className:t.srOnly},e.name),$i("span",{"aria-hidden":"true"},e.shortname))))),$i("tbody",null,p.map(e=>$i("tr",{className:t.tableRow},e.map(e=>{const n=i&&so(e,i),d=so(e,l),p=!function(e,t){return e.getMonth()===t.getMonth()}(e,l)||c(e),h=(f=e,so(new Date,f)?t.isToday:void 0);var f;const m=n?t.isSelected:void 0,v=[t.dayButton,h,m],g=d?"0":"-1",y=e.toLocaleDateString(u),b=d?a:void 0;return $i("td",{role:"gridcell",className:t.tableCell},$i("button",{className:v.join(" "),type:"button",onClick:()=>{p||(r(e),o(e))},tabindex:g,onKeyUp:s,ref:b,"aria-disabled":p,"aria-label":y,"aria-selected":n},$i("span",{className:t.srOnly},y),$i("span",{"aria-hidden":"true"},e.getDate())))})))))},ho=Rr(({label:e,value:t,options:n,onChange:i,className:r,elemRef:o,...s},a)=>{const{classes:l}=xr(uo);return $i("label",null,$i("span",{className:"sr-only"},e),$i("select",{className:to(l.select,r),onChange:e=>i(e),ref:a,...s},n?.map(e=>$i("option",{value:e?.value||0===e?.value?e.value:e,selected:t===e?.value||t===e?"selected":void 0},e?.text?e.text:e))))}),fo=ho;function mo(e,t){const n=[];for(let i=e;i<=t;i++)n.push(i);return n}var vo=Rr((e,t)=>{const{l10n:n,min:i,max:r,view:o,setView:s,classes:a}=xr(uo),l=new Date(i).getFullYear(),c=new Date(r).getFullYear();return $i(fo,{label:n.year,options:mo(l,c),value:o.getFullYear(),className:a.yearSelect,onChange:e=>{const t=new Date(o);t.setFullYear(parseInt(e.target.value,10)),s(t)},ref:t,...e})}),go=vo,yo=()=>{const{l10n:e,view:t,setView:n,classes:i}=xr(uo);return $i(fo,{label:e.month,value:t.getMonth(),className:i.monthSelect,options:e.months?.map((e,t)=>({value:t,text:e})),onChange:e=>{const i=new Date(t);i.setMonth(parseInt(e.target.value,10)),n(i)}})},bo=({min:e="1900-01-01",max:t="2100-12-31",classes:n=eo,l10n:i=no,selectedDay:r,firstDayOfWeek:o=1,locale:s={},disabledDayFn:a=()=>{},onSelect:l=()=>{},formatDate:c=e=>function(e){return e&&e instanceof Date?`${e.getFullYear()}-${(e.getMonth()+1).toString().padStart(2,"0")}-${e.getDate().toString().padStart(2,"0")}`:""}(e),parseDate:u=e=>{const t=e.match(/(\d{2})\/(\d{2})\/(\d{4})/);return!!t&&new Date(t[3],t[2]-1,t[1])},calendarIcon:d,name:p,id:h})=>{const[f,m]=_r(r?new Date(r):new Date),[v,g]=_r(r?new Date(r):void 0),[y,b]=_r(!1),w=Er(!0),_=Er(),S=Er(),E=Er(),x=Er(),k=Er(),C=Er();var T,A,O;Sr(()=>{l(v),b(!1)},[v]),Sr(()=>{const e=e=>{"Tab"===e.key&&y&&(e.shiftKey||document.activeElement!==C.current||(e.preventDefault(),x.current.focus()),!e.shiftKey||document.activeElement!==x.current&&document.activeElement!==k.current||(e.preventDefault(),C.current.focus()))},t=e=>{"Escape"===e.key&&y&&b(!1)};return document.addEventListener("keydown",e),document.addEventListener("keydown",t),()=>{document.removeEventListener("keydown",e),document.removeEventListener("keydown",t)}},[y,C.current,x.current]),Sr(()=>{const e=e=>{!k.current.contains(e.target)&&y&&b(!1)};return document.addEventListener("click",e),()=>document.removeEventListener("click",e)},[y,k.current]),T=()=>{y?k.current.focus():document.activeElement===_.current||w.current?w.current=!1:E.current.focus()},A=[y,x.current,E.current,_.current],O=wr(Pi++,4),!Ti.__s&&Or(O.__H,A)&&(O.__=T,O.__H=A,Ii.__h.push(O));const D=e=>ao(e,e.getMonth()-1),M=e=>ao(e,e.getMonth()+1),L=()=>{b(!y)},P=({type:e,children:t,...n})=>$i(e,n,t&&t.length&&t.map(e=>P(e)));return $i(uo.Provider,{value:{firstDayOfWeek:o,classes:n,l10n:i,min:e,max:t,view:f,setView:m,selected:v,setSelected:g,handleKeyboardNavigation:e=>{let t=new Date(f);const n={ArrowLeft:()=>{t.setDate(f.getDate()-1)},ArrowRight:()=>{t.setDate(f.getDate()+1)},ArrowUp:()=>{t.setDate(f.getDate()-7)},ArrowDown:()=>{t.setDate(f.getDate()+7)},PageUp:()=>{e.shiftKey?t.setFullYear(f.getFullYear()-1):t=D(f)},PageDown:()=>{e.shiftKey?t.setFullYear(f.getFullYear()+1):t=M(f)},Home:()=>{t=ro(f,o)},End:()=>{t=oo(f,o)}};Object.keys(n).includes(e.key)&&(e.preventDefault(),n[e.key]?.(),m(t),setTimeout(()=>{S.current.focus()},0))},focusedRef:S,disabledDayFn:a,locale:s}},$i("input",{id:`${h}-input`,type:"text",className:n.input,value:v&&v.toLocaleDateString(s),onChange:e=>(e=>{""===e.target.value&&g(void 0);const t=u(e.target.value);if(t)return m(t),g(t)})(e),ref:_}),$i("input",{type:"hidden",id:`${h}-value`,value:c(v),name:p}),$i("button",{type:"button","aria-controls":`${h}-dialog`,onClick:()=>L(),"aria-expanded":y,ref:E,className:n.toggleButton},d&&P(d),d?$i("span",{class:n.srOnly},i.openButton):i.openButton),$i("div",{className:n.wrapper,role:"dialog","aria-modal":"true","aria-labelledby":"daypickr-label",hidden:!y,ref:k,tabIndex:"-1"},$i("div",{className:"daypickr__content"},$i("h2",{id:"daypickr-label",className:"sr-only"},f.toLocaleString(s,{month:"long",year:"numeric"})),$i("div",{className:n.header},$i("div",{className:n.yearMonthWrapper},$i(go,{ref:x}),$i(yo,null)),$i("div",{className:n.pagination},$i("button",{type:"button",className:`${n.button} ${n.prevMonthButton}`,onClick:()=>{m(D(f))}},i.prevMonth),$i("button",{type:"button",className:`${n.button} ${n.nextMonthButton}`,onClick:()=>{m(M(f))}},i.nextMonth))),$i(po,null),$i("button",{className:`${n.button} ${n.closeButton}`,type:"button",onClick:()=>L(),ref:C},i.closeButton))))},wo=({calendarIcon:e,classes:t=classNames,l10n:n=l10nEN,...i})=>{const r=({type:e,children:t,...n})=>$i(e,n,t&&t.length&&t.map(e=>r(e)));return $i(uo.Provider,{value:{classes:t,l10n:n}},$i("input",{type:"text",disabled:!0,className:t.input}),$i("button",{type:"button",className:t.toggleButton,disabled:!0},e&&r(e),e?$i("span",{class:t.srOnly},n.openButton):n.openButton))},_o={locale:"sk",classes:{wrapper:"daypickr",header:"daypickr__header",select:"daypickr__select",selectDisplay:"daypickr__select-display",monthSelect:"daypickr__select--month",yearSelect:"daypickr__select--year",button:"daypickr__button",paginationButton:"daypickr__button--pagination ",nextMonthButton:"daypickr__button--pagination-next btn btn--ghost btn--square btn--small",prevMonthButton:"daypickr__button--pagination-prev btn btn--ghost btn--square btn--small",yearMonthWrapper:"daypickr__year-month-wrapper",pagination:"daypickr__pagination",table:"daypickr__calendar",tableRow:"daypickr__calendar-row",tableCell:"daypickr__calendar-cell",tableHeaderRow:"daypickr__calendar-header-row",tableHeaderCell:"daypickr__calendar-header-cell",dayButton:"daypickr__day",isToday:"isToday",isSelected:"isSelected",srOnly:"sr-only",input:"form-group__item text-input",closeButton:"daypickr__button--close btn mb-none",toggleButton:"form-group__item btn btn--square"},firstDayOfWeek:1,l10n:{prevMonth:"predchádzajúci mesiac",nextMonth:"nasledujúci mesiac",month:"Mesiac",year:"Rok",weekdays:[{name:"Nedeľa",shortname:"Ne"},{name:"Pondelok",shortname:"Po"},{name:"Utorok",shortname:"Ut"},{name:"Streda",shortname:"St"},{name:"Štvrtok",shortname:"Št"},{name:"Piatok",shortname:"Pi"},{name:"Sobota",shortname:"So"}],months:["Január","Február","Marec","Apríl","Máj","Jún","Júl","August","September","Október","November","December"],openButton:"Vyberte dátum",closeButton:"Zatvoriť"},parseDate:function(e){var t=e.match(/(\d{1,2})\. ?(\d{1,2})\. ?(\d{4})/);return!!t&&new Date(Number(t[3]),Number(t[2])-1,Number(t[1]))},calendarIcon:{type:"svg",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1000 1000",className:"icon icon--medium",children:[{type:"path",d:"M800 175H700v-37.5a37.5 37.5 0 0 0-75 0V175H350v-37.5a37.5 37.5 0 0 0-75 0V175H100v625a75 75 0 0 0 75 75h700V250a75 75 0 0 0-75-75zM300 825H187.4a37.5 37.5 0 0 1-37.5-37.6V700H300v125zm0-150H150V550h150v125zm0-150H150V400h150v125zm-50-262.5a62.4 62.4 0 0 1 25-50v50a37.5 37.5 0 0 0 75 0v-50a62.5 62.5 0 1 1-100 50zm225 562.4H325V700h150v125zm0-149.9H325V550h150v125zm0-150H325V400h150v125zm175 300H500V700h150v125zm0-150H500V550h150v125zm0-150H500V400h150v125zm-50-262.5a62.4 62.4 0 0 1 25-50v50a37.5 37.5 0 0 0 75 0v-50a62.5 62.5 0 1 1-100 50zM825 675H675V550h150v125zm0-150H675V400h112.5a37.5 37.5 0 0 1 37.5 37.4V525z","fill-rule":"evenodd"}]}},So=function(){return o(function e(t,n){return i(this,e),this.element=t,this.config=l(l({},_o),n),this.init(),this.element.ODS_DatePicker=this,this},[{key:"init",value:function(){var e=this.element.getAttribute("data-datepicker-config"),t=this.element.getAttribute("data-enabled-days"),n={};if(e)try{n=JSON.parse(e)}catch(e){n={}}this.config=l(l(l({},this.config),n),t&&{disabledDayFn:function(e){return!t.split(",").includes(function(e){return e&&e instanceof Date?"".concat(e.getFullYear(),"-").concat((e.getMonth()+1).toString().padStart(2,"0"),"-").concat(e.getDate().toString().padStart(2,"0")):""}(e))}});var i,r,o=this.element.getAttribute("data-datepicker-id")||void 0,s=this.element.getAttribute("data-datepicker-name")||o;this.instance=(i=this.element,r=l({id:o,name:s},this.config),pr($i(bo,{...r}),i),{destroy(){!function(e){e.__k&&pr(null,e)}(i),pr($i(wo,{...r}),i)}})}},{key:"destroy",value:function(){this.instance&&this.instance.destroy(),this.instance=null,this.element.ODS_DatePicker=null}}])}();const{entries:Eo,setPrototypeOf:xo,isFrozen:ko,getPrototypeOf:Co,getOwnPropertyDescriptor:To}=Object;let{freeze:Ao,seal:Oo,create:Do}=Object,{apply:Mo,construct:Lo}="undefined"!=typeof Reflect&&Reflect;Ao||(Ao=function(e){return e}),Oo||(Oo=function(e){return e}),Mo||(Mo=function(e,t){for(var n=arguments.length,i=new Array(n>2?n-2:0),r=2;r<n;r++)i[r-2]=arguments[r];return e.apply(t,i)}),Lo||(Lo=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];return new e(...n)});const Po=Yo(Array.prototype.forEach),Io=Yo(Array.prototype.lastIndexOf),No=Yo(Array.prototype.pop),Ro=Yo(Array.prototype.push),Bo=Yo(Array.prototype.splice),zo=Yo(String.prototype.toLowerCase),Ho=Yo(String.prototype.toString),Fo=Yo(String.prototype.match),Vo=Yo(String.prototype.replace),jo=Yo(String.prototype.indexOf),qo=Yo(String.prototype.trim),Uo=Yo(Object.prototype.hasOwnProperty),$o=Yo(RegExp.prototype.test),Go=(Wo=TypeError,function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Lo(Wo,t)});var Wo;function Yo(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);for(var n=arguments.length,i=new Array(n>1?n-1:0),r=1;r<n;r++)i[r-1]=arguments[r];return Mo(e,t,i)}}function Xo(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:zo;xo&&xo(e,null);let i=t.length;for(;i--;){let r=t[i];if("string"==typeof r){const e=n(r);e!==r&&(ko(t)||(t[i]=e),r=e)}e[r]=!0}return e}function Ko(e){for(let t=0;t<e.length;t++)Uo(e,t)||(e[t]=null);return e}function Jo(e){const t=Do(null);for(const[n,i]of Eo(e))Uo(e,n)&&(Array.isArray(i)?t[n]=Ko(i):i&&"object"==typeof i&&i.constructor===Object?t[n]=Jo(i):t[n]=i);return t}function Qo(e,t){for(;null!==e;){const n=To(e,t);if(n){if(n.get)return Yo(n.get);if("function"==typeof n.value)return Yo(n.value)}e=Co(e)}return function(){return null}}const Zo=Ao(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),es=Ao(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),ts=Ao(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),ns=Ao(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),is=Ao(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),rs=Ao(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),os=Ao(["#text"]),ss=Ao(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),as=Ao(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),ls=Ao(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),cs=Ao(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),us=Oo(/\{\{[\w\W]*|[\w\W]*\}\}/gm),ds=Oo(/<%[\w\W]*|[\w\W]*%>/gm),ps=Oo(/\$\{[\w\W]*/gm),hs=Oo(/^data-[\-\w.\u00B7-\uFFFF]+$/),fs=Oo(/^aria-[\-\w]+$/),ms=Oo(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),vs=Oo(/^(?:\w+script|data):/i),gs=Oo(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),ys=Oo(/^html$/i),bs=Oo(/^[a-z][.\w]*(-[.\w]+)+$/i);var ws=Object.freeze({__proto__:null,ARIA_ATTR:fs,ATTR_WHITESPACE:gs,CUSTOM_ELEMENT:bs,DATA_ATTR:hs,DOCTYPE_NAME:ys,ERB_EXPR:ds,IS_ALLOWED_URI:ms,IS_SCRIPT_OR_DATA:vs,MUSTACHE_EXPR:us,TMPLIT_EXPR:ps});const _s=function(){return"undefined"==typeof window?null:window};var Ss,Es,xs=function e(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:_s();const n=t=>e(t);if(n.version="3.3.3",n.removed=[],!t||!t.document||9!==t.document.nodeType||!t.Element)return n.isSupported=!1,n;let{document:i}=t;const r=i,o=r.currentScript,{DocumentFragment:s,HTMLTemplateElement:a,Node:l,Element:c,NodeFilter:u,NamedNodeMap:d=t.NamedNodeMap||t.MozNamedAttrMap,HTMLFormElement:p,DOMParser:h,trustedTypes:f}=t,m=c.prototype,v=Qo(m,"cloneNode"),g=Qo(m,"remove"),y=Qo(m,"nextSibling"),b=Qo(m,"childNodes"),w=Qo(m,"parentNode");if("function"==typeof a){const e=i.createElement("template");e.content&&e.content.ownerDocument&&(i=e.content.ownerDocument)}let _,S="";const{implementation:E,createNodeIterator:x,createDocumentFragment:k,getElementsByTagName:C}=i,{importNode:T}=r;let A={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]};n.isSupported="function"==typeof Eo&&"function"==typeof w&&E&&void 0!==E.createHTMLDocument;const{MUSTACHE_EXPR:O,ERB_EXPR:D,TMPLIT_EXPR:M,DATA_ATTR:L,ARIA_ATTR:P,IS_SCRIPT_OR_DATA:I,ATTR_WHITESPACE:N,CUSTOM_ELEMENT:R}=ws;let{IS_ALLOWED_URI:B}=ws,z=null;const H=Xo({},[...Zo,...es,...ts,...is,...os]);let F=null;const V=Xo({},[...ss,...as,...ls,...cs]);let j=Object.seal(Do(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),q=null,U=null;const $=Object.seal(Do(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let G=!0,W=!0,Y=!1,X=!0,K=!1,J=!0,Q=!1,Z=!1,ee=!1,te=!1,ne=!1,ie=!1,re=!0,oe=!1,se=!0,ae=!1,le={},ce=null;const ue=Xo({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let de=null;const pe=Xo({},["audio","video","img","source","image","track"]);let he=null;const fe=Xo({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),me="http://www.w3.org/1998/Math/MathML",ve="http://www.w3.org/2000/svg",ge="http://www.w3.org/1999/xhtml";let ye=ge,be=!1,we=null;const _e=Xo({},[me,ve,ge],Ho);let Se=Xo({},["mi","mo","mn","ms","mtext"]),Ee=Xo({},["annotation-xml"]);const xe=Xo({},["title","style","font","a","script"]);let ke=null;const Ce=["application/xhtml+xml","text/html"];let Te=null,Ae=null;const Oe=i.createElement("form"),De=function(e){return e instanceof RegExp||e instanceof Function},Me=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!Ae||Ae!==e){if(e&&"object"==typeof e||(e={}),e=Jo(e),ke=-1===Ce.indexOf(e.PARSER_MEDIA_TYPE)?"text/html":e.PARSER_MEDIA_TYPE,Te="application/xhtml+xml"===ke?Ho:zo,z=Uo(e,"ALLOWED_TAGS")?Xo({},e.ALLOWED_TAGS,Te):H,F=Uo(e,"ALLOWED_ATTR")?Xo({},e.ALLOWED_ATTR,Te):V,we=Uo(e,"ALLOWED_NAMESPACES")?Xo({},e.ALLOWED_NAMESPACES,Ho):_e,he=Uo(e,"ADD_URI_SAFE_ATTR")?Xo(Jo(fe),e.ADD_URI_SAFE_ATTR,Te):fe,de=Uo(e,"ADD_DATA_URI_TAGS")?Xo(Jo(pe),e.ADD_DATA_URI_TAGS,Te):pe,ce=Uo(e,"FORBID_CONTENTS")?Xo({},e.FORBID_CONTENTS,Te):ue,q=Uo(e,"FORBID_TAGS")?Xo({},e.FORBID_TAGS,Te):Jo({}),U=Uo(e,"FORBID_ATTR")?Xo({},e.FORBID_ATTR,Te):Jo({}),le=!!Uo(e,"USE_PROFILES")&&e.USE_PROFILES,G=!1!==e.ALLOW_ARIA_ATTR,W=!1!==e.ALLOW_DATA_ATTR,Y=e.ALLOW_UNKNOWN_PROTOCOLS||!1,X=!1!==e.ALLOW_SELF_CLOSE_IN_ATTR,K=e.SAFE_FOR_TEMPLATES||!1,J=!1!==e.SAFE_FOR_XML,Q=e.WHOLE_DOCUMENT||!1,te=e.RETURN_DOM||!1,ne=e.RETURN_DOM_FRAGMENT||!1,ie=e.RETURN_TRUSTED_TYPE||!1,ee=e.FORCE_BODY||!1,re=!1!==e.SANITIZE_DOM,oe=e.SANITIZE_NAMED_PROPS||!1,se=!1!==e.KEEP_CONTENT,ae=e.IN_PLACE||!1,B=e.ALLOWED_URI_REGEXP||ms,ye=e.NAMESPACE||ge,Se=e.MATHML_TEXT_INTEGRATION_POINTS||Se,Ee=e.HTML_INTEGRATION_POINTS||Ee,j=e.CUSTOM_ELEMENT_HANDLING||{},e.CUSTOM_ELEMENT_HANDLING&&De(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(j.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&&De(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(j.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),e.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(j.allowCustomizedBuiltInElements=e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),K&&(W=!1),ne&&(te=!0),le&&(z=Xo({},os),F=Do(null),!0===le.html&&(Xo(z,Zo),Xo(F,ss)),!0===le.svg&&(Xo(z,es),Xo(F,as),Xo(F,cs)),!0===le.svgFilters&&(Xo(z,ts),Xo(F,as),Xo(F,cs)),!0===le.mathMl&&(Xo(z,is),Xo(F,ls),Xo(F,cs))),Uo(e,"ADD_TAGS")||($.tagCheck=null),Uo(e,"ADD_ATTR")||($.attributeCheck=null),e.ADD_TAGS&&("function"==typeof e.ADD_TAGS?$.tagCheck=e.ADD_TAGS:(z===H&&(z=Jo(z)),Xo(z,e.ADD_TAGS,Te))),e.ADD_ATTR&&("function"==typeof e.ADD_ATTR?$.attributeCheck=e.ADD_ATTR:(F===V&&(F=Jo(F)),Xo(F,e.ADD_ATTR,Te))),e.ADD_URI_SAFE_ATTR&&Xo(he,e.ADD_URI_SAFE_ATTR,Te),e.FORBID_CONTENTS&&(ce===ue&&(ce=Jo(ce)),Xo(ce,e.FORBID_CONTENTS,Te)),e.ADD_FORBID_CONTENTS&&(ce===ue&&(ce=Jo(ce)),Xo(ce,e.ADD_FORBID_CONTENTS,Te)),se&&(z["#text"]=!0),Q&&Xo(z,["html","head","body"]),z.table&&(Xo(z,["tbody"]),delete q.tbody),e.TRUSTED_TYPES_POLICY){if("function"!=typeof e.TRUSTED_TYPES_POLICY.createHTML)throw Go('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof e.TRUSTED_TYPES_POLICY.createScriptURL)throw Go('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');_=e.TRUSTED_TYPES_POLICY,S=_.createHTML("")}else void 0===_&&(_=function(e,t){if("object"!=typeof e||"function"!=typeof e.createPolicy)return null;let n=null;const i="data-tt-policy-suffix";t&&t.hasAttribute(i)&&(n=t.getAttribute(i));const r="dompurify"+(n?"#"+n:"");try{return e.createPolicy(r,{createHTML:e=>e,createScriptURL:e=>e})}catch(e){return null}}(f,o)),null!==_&&"string"==typeof S&&(S=_.createHTML(""));Ao&&Ao(e),Ae=e}},Le=Xo({},[...es,...ts,...ns]),Pe=Xo({},[...is,...rs]),Ie=function(e){Ro(n.removed,{element:e});try{w(e).removeChild(e)}catch(t){g(e)}},Ne=function(e,t){try{Ro(n.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){Ro(n.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e)if(te||ne)try{Ie(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}},Re=function(e){let t=null,n=null;if(ee)e="<remove></remove>"+e;else{const t=Fo(e,/^[\r\n\t ]+/);n=t&&t[0]}"application/xhtml+xml"===ke&&ye===ge&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");const r=_?_.createHTML(e):e;if(ye===ge)try{t=(new h).parseFromString(r,ke)}catch(e){}if(!t||!t.documentElement){t=E.createDocument(ye,"template",null);try{t.documentElement.innerHTML=be?S:r}catch(e){}}const o=t.body||t.documentElement;return e&&n&&o.insertBefore(i.createTextNode(n),o.childNodes[0]||null),ye===ge?C.call(t,Q?"html":"body")[0]:Q?t.documentElement:o},Be=function(e){return x.call(e.ownerDocument||e,e,u.SHOW_ELEMENT|u.SHOW_COMMENT|u.SHOW_TEXT|u.SHOW_PROCESSING_INSTRUCTION|u.SHOW_CDATA_SECTION,null)},ze=function(e){return e instanceof p&&("string"!=typeof e.nodeName||"string"!=typeof e.textContent||"function"!=typeof e.removeChild||!(e.attributes instanceof d)||"function"!=typeof e.removeAttribute||"function"!=typeof e.setAttribute||"string"!=typeof e.namespaceURI||"function"!=typeof e.insertBefore||"function"!=typeof e.hasChildNodes)},He=function(e){return"function"==typeof l&&e instanceof l};function Fe(e,t,i){Po(e,e=>{e.call(n,t,i,Ae)})}const Ve=function(e){let t=null;if(Fe(A.beforeSanitizeElements,e,null),ze(e))return Ie(e),!0;const i=Te(e.nodeName);if(Fe(A.uponSanitizeElement,e,{tagName:i,allowedTags:z}),J&&e.hasChildNodes()&&!He(e.firstElementChild)&&$o(/<[/\w!]/g,e.innerHTML)&&$o(/<[/\w!]/g,e.textContent))return Ie(e),!0;if(7===e.nodeType)return Ie(e),!0;if(J&&8===e.nodeType&&$o(/<[/\w]/g,e.data))return Ie(e),!0;if(!($.tagCheck instanceof Function&&$.tagCheck(i))&&(!z[i]||q[i])){if(!q[i]&&qe(i)){if(j.tagNameCheck instanceof RegExp&&$o(j.tagNameCheck,i))return!1;if(j.tagNameCheck instanceof Function&&j.tagNameCheck(i))return!1}if(se&&!ce[i]){const t=w(e)||e.parentNode,n=b(e)||e.childNodes;if(n&&t)for(let i=n.length-1;i>=0;--i){const r=v(n[i],!0);r.__removalCount=(e.__removalCount||0)+1,t.insertBefore(r,y(e))}}return Ie(e),!0}return e instanceof c&&!function(e){let t=w(e);t&&t.tagName||(t={namespaceURI:ye,tagName:"template"});const n=zo(e.tagName),i=zo(t.tagName);return!!we[e.namespaceURI]&&(e.namespaceURI===ve?t.namespaceURI===ge?"svg"===n:t.namespaceURI===me?"svg"===n&&("annotation-xml"===i||Se[i]):Boolean(Le[n]):e.namespaceURI===me?t.namespaceURI===ge?"math"===n:t.namespaceURI===ve?"math"===n&&Ee[i]:Boolean(Pe[n]):e.namespaceURI===ge?!(t.namespaceURI===ve&&!Ee[i])&&!(t.namespaceURI===me&&!Se[i])&&!Pe[n]&&(xe[n]||!Le[n]):!("application/xhtml+xml"!==ke||!we[e.namespaceURI]))}(e)?(Ie(e),!0):"noscript"!==i&&"noembed"!==i&&"noframes"!==i||!$o(/<\/no(script|embed|frames)/i,e.innerHTML)?(K&&3===e.nodeType&&(t=e.textContent,Po([O,D,M],e=>{t=Vo(t,e," ")}),e.textContent!==t&&(Ro(n.removed,{element:e.cloneNode()}),e.textContent=t)),Fe(A.afterSanitizeElements,e,null),!1):(Ie(e),!0)},je=function(e,t,n){if(U[t])return!1;if(re&&("id"===t||"name"===t)&&(n in i||n in Oe))return!1;if(W&&!U[t]&&$o(L,t));else if(G&&$o(P,t));else if($.attributeCheck instanceof Function&&$.attributeCheck(t,e));else if(!F[t]||U[t]){if(!(qe(e)&&(j.tagNameCheck instanceof RegExp&&$o(j.tagNameCheck,e)||j.tagNameCheck instanceof Function&&j.tagNameCheck(e))&&(j.attributeNameCheck instanceof RegExp&&$o(j.attributeNameCheck,t)||j.attributeNameCheck instanceof Function&&j.attributeNameCheck(t,e))||"is"===t&&j.allowCustomizedBuiltInElements&&(j.tagNameCheck instanceof RegExp&&$o(j.tagNameCheck,n)||j.tagNameCheck instanceof Function&&j.tagNameCheck(n))))return!1}else if(he[t]);else if($o(B,Vo(n,N,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==jo(n,"data:")||!de[e])if(Y&&!$o(I,Vo(n,N,"")));else if(n)return!1;return!0},qe=function(e){return"annotation-xml"!==e&&Fo(e,R)},Ue=function(e){Fe(A.beforeSanitizeAttributes,e,null);const{attributes:t}=e;if(!t||ze(e))return;const i={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:F,forceKeepAttr:void 0};let r=t.length;for(;r--;){const o=t[r],{name:s,namespaceURI:a,value:l}=o,c=Te(s),u=l;let d="value"===s?u:qo(u);if(i.attrName=c,i.attrValue=d,i.keepAttr=!0,i.forceKeepAttr=void 0,Fe(A.uponSanitizeAttribute,e,i),d=i.attrValue,!oe||"id"!==c&&"name"!==c||(Ne(s,e),d="user-content-"+d),J&&$o(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,d)){Ne(s,e);continue}if("attributename"===c&&Fo(d,"href")){Ne(s,e);continue}if(i.forceKeepAttr)continue;if(!i.keepAttr){Ne(s,e);continue}if(!X&&$o(/\/>/i,d)){Ne(s,e);continue}K&&Po([O,D,M],e=>{d=Vo(d,e," ")});const p=Te(e.nodeName);if(je(p,c,d)){if(_&&"object"==typeof f&&"function"==typeof f.getAttributeType)if(a);else switch(f.getAttributeType(p,c)){case"TrustedHTML":d=_.createHTML(d);break;case"TrustedScriptURL":d=_.createScriptURL(d)}if(d!==u)try{a?e.setAttributeNS(a,s,d):e.setAttribute(s,d),ze(e)?Ie(e):No(n.removed)}catch(t){Ne(s,e)}}else Ne(s,e)}Fe(A.afterSanitizeAttributes,e,null)},$e=function e(t){let n=null;const i=Be(t);for(Fe(A.beforeSanitizeShadowDOM,t,null);n=i.nextNode();)Fe(A.uponSanitizeShadowNode,n,null),Ve(n),Ue(n),n.content instanceof s&&e(n.content);Fe(A.afterSanitizeShadowDOM,t,null)};return n.sanitize=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=null,o=null,a=null,c=null;if(be=!e,be&&(e="\x3c!--\x3e"),"string"!=typeof e&&!He(e)){if("function"!=typeof e.toString)throw Go("toString is not a function");if("string"!=typeof(e=e.toString()))throw Go("dirty is not a string, aborting")}if(!n.isSupported)return e;if(Z||Me(t),n.removed=[],"string"==typeof e&&(ae=!1),ae){if(e.nodeName){const t=Te(e.nodeName);if(!z[t]||q[t])throw Go("root node is forbidden and cannot be sanitized in-place")}}else if(e instanceof l)i=Re("\x3c!----\x3e"),o=i.ownerDocument.importNode(e,!0),1===o.nodeType&&"BODY"===o.nodeName||"HTML"===o.nodeName?i=o:i.appendChild(o);else{if(!te&&!K&&!Q&&-1===e.indexOf("<"))return _&&ie?_.createHTML(e):e;if(i=Re(e),!i)return te?null:ie?S:""}i&&ee&&Ie(i.firstChild);const u=Be(ae?e:i);for(;a=u.nextNode();)Ve(a),Ue(a),a.content instanceof s&&$e(a.content);if(ae)return e;if(te){if(ne)for(c=k.call(i.ownerDocument);i.firstChild;)c.appendChild(i.firstChild);else c=i;return(F.shadowroot||F.shadowrootmode)&&(c=T.call(r,c,!0)),c}let d=Q?i.outerHTML:i.innerHTML;return Q&&z["!doctype"]&&i.ownerDocument&&i.ownerDocument.doctype&&i.ownerDocument.doctype.name&&$o(ys,i.ownerDocument.doctype.name)&&(d="<!DOCTYPE "+i.ownerDocument.doctype.name+">\n"+d),K&&Po([O,D,M],e=>{d=Vo(d,e," ")}),_&&ie?_.createHTML(d):d},n.setConfig=function(){Me(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),Z=!0},n.clearConfig=function(){Ae=null,Z=!1},n.isValidAttribute=function(e,t,n){Ae||Me({});const i=Te(e),r=Te(t);return je(i,r,n)},n.addHook=function(e,t){"function"==typeof t&&Ro(A[e],t)},n.removeHook=function(e,t){if(void 0!==t){const n=Io(A[e],t);return-1===n?void 0:Bo(A[e],n,1)[0]}return No(A[e])},n.removeHooks=function(e){A[e]=[]},n.removeAllHooks=function(){A={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},n}(),ks={dragDropClassname:"is-dragdrop",inputSelector:'input[type="file"]',resultsSelector:".file-input__files",deleteButtonSelector:"[data-file-delete]",deleteFileAttr:"data-file-delete",fileTemplate:function(e,t){return"\n <li>".concat(e,' <button type="button" data-file-delete="').concat(t,'" class="file-input__delete">\n <svg class="icon icon--small icon--trash icon--danger" aria-hidden="true">\n <use xlink:href="/sprite.svg#trash"></use>\n </svg>\n <span class="sr-only">Odstrániť súbor ').concat(e,"</span>\n </button>\n </li>\n ")}},Cs=function(){return o(function e(t,n){return i(this,e),this.element=t,this.config=l(l({},ks),n),this.input=null,this.files=[],this.results=null,this.removeButtons=[],this.onInputChange=this.onInputChange.bind(this),this.onRemoveButtonClick=this.onRemoveButtonClick.bind(this),this.highlight=this.highlight.bind(this),this.unhighlight=this.unhighlight.bind(this),this.onDrop=this.onDrop.bind(this),this.preventDefaults=this.preventDefaults.bind(this),this.init(),this},[{key:"init",value:function(){var e=this;this.input=this.element.querySelector(this.config.inputSelector),this.results=this.element.querySelector(this.config.resultsSelector),this.input&&this.results&&(this.input.addEventListener("change",this.onInputChange),["dragenter","dragover","dragleave","drop"].forEach(function(t){e.element.addEventListener(t,e.preventDefaults,!1),document.body.addEventListener(t,e.preventDefaults,!1)}),["dragenter","dragover"].forEach(function(t){e.element.addEventListener(t,e.highlight,!1)}),["dragleave","drop"].forEach(function(t){e.element.addEventListener(t,e.unhighlight,!1)}),this.element.addEventListener("drop",this.onDrop))}},{key:"onInputChange",value:function(){var e,t=this;return!(!this.input||!this.results)&&(this.files=Array.from(null!==(e=this.input.files)&&void 0!==e?e:[]),!!this.files&&(this.results.innerHTML="",this.files.map(function(e,n){return t.config.fileTemplate(xs.sanitize(e.name,{ALLOWED_TAGS:[]}),n)}).forEach(function(e){t.results.appendChild(xs.sanitize(e,{ADD_TAGS:["use"],RETURN_DOM_FRAGMENT:!0}))}),this.removeButtons=Array.from(this.results.querySelectorAll(this.config.deleteButtonSelector)),void this.removeButtons.forEach(function(e){return e.addEventListener("click",t.onRemoveButtonClick)})))}},{key:"onDrop",value:function(e){var t;this.input&&(this.input.files=(null==e||null===(t=e.dataTransfer)||void 0===t?void 0:t.files)||(new DataTransfer).files,this.onInputChange())}},{key:"onRemoveButtonClick",value:function(e){if(this.input){var t=new DataTransfer,n=e.currentTarget,i=Number(n.getAttribute(this.config.deleteFileAttr));this.files.splice(i,1),this.files.forEach(function(e){return t.items.add(e)}),this.input.files=t.files,this.onInputChange()}}},{key:"highlight",value:function(){this.element.classList.add(this.config.dragDropClassname)}},{key:"unhighlight",value:function(){this.element.classList.remove(this.config.dragDropClassname)}},{key:"preventDefaults",value:function(e){e.preventDefault(),e.stopPropagation()}},{key:"destroy",value:function(){var e=this;this.input&&(this.input.removeEventListener("change",this.onInputChange),["dragenter","dragover","dragleave","drop"].forEach(function(t){e.element.removeEventListener(t,e.preventDefaults,!1),document.body.removeEventListener(t,e.preventDefaults,!1)}),["dragenter","dragover"].forEach(function(t){e.element.removeEventListener(t,e.highlight,!1)}),["dragleave","drop"].forEach(function(t){e.element.removeEventListener(t,e.unhighlight,!1)}),this.element.removeEventListener("drop",this.onDrop))}},{key:"update",value:function(){this.destroy(),this.init()}}])}(),Ts={nonEditableInput:!1,min:1,max:999,defaultValue:1},As=function(){return o(function e(t,n){i(this,e),this.element=t,this.config=l(l({},Ts),n),this.input=null,this.numberDisplay=null,this.add=null,this.remove=null,this.element.ODS_InputStepper=this,this.handleButtonClick=this.handleButtonClick.bind(this),this.handleInputClick=this.handleInputClick.bind(this),this.handleInputChange=this.handleInputChange.bind(this),this.handleButtonState=this.handleButtonState.bind(this),this.init()},[{key:"handleInputClick",value:function(){this.input&&this.input.select()}},{key:"handleButtonState",value:function(){var e,t,n,i,r=this.config,o=r.min,s=r.max,a=this.config.nonEditableInput?parseInt(null!==(n=null===(i=this.numberDisplay)||void 0===i?void 0:i.textContent)&&void 0!==n?n:"0",10):parseInt(null!==(e=null===(t=this.input)||void 0===t?void 0:t.value)&&void 0!==e?e:"0",10);this.add&&"number"==typeof s&&a>=s?(this.add.setAttribute("aria-disabled","true"),this.add.setAttribute("disabled","true")):this.add&&(this.add.removeAttribute("aria-disabled"),this.add.removeAttribute("disabled")),this.remove&&"number"==typeof o&&a<=o?(this.remove.setAttribute("aria-disabled","true"),this.remove.setAttribute("disabled","true")):this.remove&&(this.remove.removeAttribute("aria-disabled"),this.remove.removeAttribute("disabled"))}},{key:"handleInputChange",value:function(e){var t=this.config,n=t.min,i=t.max,r=e.target;r&&(n&&Number(r.value)<=n&&(r.value=String(n)),i&&Number(r.value)>=i&&(r.value=String(i)))}},{key:"handleButtonClick",value:function(e){var t,n,i,r,o=this.config,s=o.min,a=o.max,l=e.target,c=this.config.nonEditableInput?parseInt(null!==(i=null===(r=this.numberDisplay)||void 0===r?void 0:r.textContent)&&void 0!==i?i:"0",10):parseInt(null!==(t=null===(n=this.input)||void 0===n?void 0:n.value)&&void 0!==t?t:"0",10);if(l.classList.contains("input-stepper__button--minus")){if(s&&c<=s){if("true"===l.getAttribute("disabled"))return;return l.setAttribute("aria-disabled","true"),void l.setAttribute("disabled","true")}c-=1}if(l.classList.contains("input-stepper__button--plus")){if(a&&c>=a){if("true"===l.getAttribute("disabled"))return;return l.setAttribute("aria-disabled","true"),void l.setAttribute("disabled","true")}c+=1}!this.config.nonEditableInput&&this.input?this.input.value=String(c):this.numberDisplay&&(this.numberDisplay.textContent=String(c)),this.handleButtonState()}},{key:"init",value:function(){var e=this.element.getAttribute("data-inputstepper"),t={};try{e&&e.trim().startsWith("{")&&(t=JSON.parse(e))}catch(e){t={}}this.config=l(l({},this.config),t),this.config.nonEditableInput?(this.numberDisplay=this.element.querySelector(".input-stepper__number"),this.numberDisplay&&(this.numberDisplay.textContent=String(this.config.defaultValue))):(this.input=this.element.querySelector(".input-stepper__field"),this.input&&(this.input.value=String(this.config.defaultValue))),this.add=this.element.querySelector(".input-stepper__button--plus"),this.remove=this.element.querySelector(".input-stepper__button--minus");var n=this.config.defaultValue;void 0!==n&&(!this.config.nonEditableInput&&this.input?this.input.value=String(n):this.numberDisplay&&(this.numberDisplay.textContent=String(n))),this.element.classList.contains("input-stepper--disabled")||(this.add&&this.add.addEventListener("click",this.handleButtonClick),this.remove&&this.remove.addEventListener("click",this.handleButtonClick),!this.config.nonEditableInput&&this.input&&(this.input.addEventListener("click",this.handleInputClick),this.input.addEventListener("change",this.handleInputChange)),this.handleButtonState())}},{key:"update",value:function(){this.destroy(),this.init()}},{key:"destroy",value:function(){!this.config.nonEditableInput&&this.input&&(this.input.removeEventListener("click",this.handleInputClick),this.input.removeEventListener("change",this.handleInputChange)),this.add&&this.add.removeEventListener("click",this.handleButtonClick),this.remove&&this.remove.removeEventListener("click",this.handleButtonClick)}}],[{key:"getInstance",value:function(e){return e&&e.ODS_InputStepper?e.ODS_InputStepper:null}}])}();function Os(e){return"object"==typeof e&&"function"==typeof e.to}function Ds(e){e.parentElement.removeChild(e)}function Ms(e){return null!=e}function Ls(e){e.preventDefault()}function Ps(e){return"number"==typeof e&&!isNaN(e)&&isFinite(e)}function Is(e,t,n){n>0&&(zs(e,t),setTimeout(function(){Hs(e,t)},n))}function Ns(e){return Math.max(Math.min(e,100),0)}function Rs(e){return Array.isArray(e)?e:[e]}function Bs(e){var t=(e=String(e)).split(".");return t.length>1?t[1].length:0}function zs(e,t){e.classList&&!/\s/.test(t)?e.classList.add(t):e.className+=" "+t}function Hs(e,t){e.classList&&!/\s/.test(t)?e.classList.remove(t):e.className=e.className.replace(new RegExp("(^|\\b)"+t.split(" ").join("|")+"(\\b|$)","gi")," ")}function Fs(e){var t=void 0!==window.pageXOffset,n="CSS1Compat"===(e.compatMode||"");return{x:t?window.pageXOffset:n?e.documentElement.scrollLeft:e.body.scrollLeft,y:t?window.pageYOffset:n?e.documentElement.scrollTop:e.body.scrollTop}}function Vs(e,t){return 100/(t-e)}function js(e,t,n){return 100*t/(e[n+1]-e[n])}function qs(e,t){for(var n=1;e>=t[n];)n+=1;return n}!function(e){e.Range="range",e.Steps="steps",e.Positions="positions",e.Count="count",e.Values="values"}(Ss||(Ss={})),function(e){e[e.None=-1]="None",e[e.NoValue=0]="NoValue",e[e.LargeValue=1]="LargeValue",e[e.SmallValue=2]="SmallValue"}(Es||(Es={}));var Us=function(){function e(e,t,n){var i;this.xPct=[],this.xVal=[],this.xSteps=[],this.xNumSteps=[],this.xHighestCompleteStep=[],this.xSteps=[n||!1],this.xNumSteps=[!1],this.snap=t;var r=[];for(Object.keys(e).forEach(function(t){r.push([Rs(e[t]),t])}),r.sort(function(e,t){return e[0][0]-t[0][0]}),i=0;i<r.length;i++)this.handleEntryPoint(r[i][1],r[i][0]);for(this.xNumSteps=this.xSteps.slice(0),i=0;i<this.xNumSteps.length;i++)this.handleStepPoint(i,this.xNumSteps[i])}return e.prototype.getDistance=function(e){for(var t=[],n=0;n<this.xNumSteps.length-1;n++)t[n]=js(this.xVal,e,n);return t},e.prototype.getAbsoluteDistance=function(e,t,n){var i,r=0;if(e<this.xPct[this.xPct.length-1])for(;e>this.xPct[r+1];)r++;else e===this.xPct[this.xPct.length-1]&&(r=this.xPct.length-2);n||e!==this.xPct[r+1]||r++,null===t&&(t=[]);var o=1,s=t[r],a=0,l=0,c=0,u=0;for(i=n?(e-this.xPct[r])/(this.xPct[r+1]-this.xPct[r]):(this.xPct[r+1]-e)/(this.xPct[r+1]-this.xPct[r]);s>0;)a=this.xPct[r+1+u]-this.xPct[r+u],t[r+u]*o+100-100*i>100?(l=a*i,o=(s-100*i)/t[r+u],i=1):(l=t[r+u]*a/100*o,o=0),n?(c-=l,this.xPct.length+u>=1&&u--):(c+=l,this.xPct.length-u>=1&&u++),s=t[r+u]*o;return e+c},e.prototype.toStepping=function(e){return function(e,t,n){if(n>=e.slice(-1)[0])return 100;var i=qs(n,e),r=e[i-1],o=e[i],s=t[i-1],a=t[i];return s+function(e,t){return js(e,e[0]<0?t+Math.abs(e[0]):t-e[0],0)}([r,o],n)/Vs(s,a)}(this.xVal,this.xPct,e)},e.prototype.fromStepping=function(e){return function(e,t,n){if(n>=100)return e.slice(-1)[0];var i=qs(n,t),r=e[i-1],o=e[i],s=t[i-1];return function(e,t){return t*(e[1]-e[0])/100+e[0]}([r,o],(n-s)*Vs(s,t[i]))}(this.xVal,this.xPct,e)},e.prototype.getStep=function(e){return function(e,t,n,i){if(100===i)return i;var r=qs(i,e),o=e[r-1],s=e[r];return n?i-o>(s-o)/2?s:o:t[r-1]?e[r-1]+function(e,t){return Math.round(e/t)*t}(i-e[r-1],t[r-1]):i}(this.xPct,this.xSteps,this.snap,e)},e.prototype.getDefaultStep=function(e,t,n){var i=qs(e,this.xPct);return(100===e||t&&e===this.xPct[i-1])&&(i=Math.max(i-1,1)),(this.xVal[i]-this.xVal[i-1])/n},e.prototype.getNearbySteps=function(e){var t=qs(e,this.xPct);return{stepBefore:{startValue:this.xVal[t-2],step:this.xNumSteps[t-2],highestStep:this.xHighestCompleteStep[t-2]},thisStep:{startValue:this.xVal[t-1],step:this.xNumSteps[t-1],highestStep:this.xHighestCompleteStep[t-1]},stepAfter:{startValue:this.xVal[t],step:this.xNumSteps[t],highestStep:this.xHighestCompleteStep[t]}}},e.prototype.countStepDecimals=function(){var e=this.xNumSteps.map(Bs);return Math.max.apply(null,e)},e.prototype.hasNoSize=function(){return this.xVal[0]===this.xVal[this.xVal.length-1]},e.prototype.convert=function(e){return this.getStep(this.toStepping(e))},e.prototype.handleEntryPoint=function(e,t){var n;if(!Ps(n="min"===e?0:"max"===e?100:parseFloat(e))||!Ps(t[0]))throw new Error("noUiSlider: 'range' value isn't numeric.");this.xPct.push(n),this.xVal.push(t[0]);var i=Number(t[1]);n?this.xSteps.push(!isNaN(i)&&i):isNaN(i)||(this.xSteps[0]=i),this.xHighestCompleteStep.push(0)},e.prototype.handleStepPoint=function(e,t){if(t)if(this.xVal[e]!==this.xVal[e+1]){this.xSteps[e]=js([this.xVal[e],this.xVal[e+1]],t,0)/Vs(this.xPct[e],this.xPct[e+1]);var n=(this.xVal[e+1]-this.xVal[e])/this.xNumSteps[e],i=Math.ceil(Number(n.toFixed(3))-1),r=this.xVal[e]+this.xNumSteps[e]*i;this.xHighestCompleteStep[e]=r}else this.xSteps[e]=this.xHighestCompleteStep[e]=this.xVal[e]},e}(),$s={to:function(e){return void 0===e?"":e.toFixed(2)},from:Number},Gs={target:"target",base:"base",origin:"origin",handle:"handle",handleLower:"handle-lower",handleUpper:"handle-upper",touchArea:"touch-area",horizontal:"horizontal",vertical:"vertical",background:"background",connect:"connect",connects:"connects",ltr:"ltr",rtl:"rtl",textDirectionLtr:"txt-dir-ltr",textDirectionRtl:"txt-dir-rtl",draggable:"draggable",drag:"state-drag",tap:"state-tap",active:"active",tooltip:"tooltip",pips:"pips",pipsHorizontal:"pips-horizontal",pipsVertical:"pips-vertical",marker:"marker",markerHorizontal:"marker-horizontal",markerVertical:"marker-vertical",markerNormal:"marker-normal",markerLarge:"marker-large",markerSub:"marker-sub",value:"value",valueHorizontal:"value-horizontal",valueVertical:"value-vertical",valueNormal:"value-normal",valueLarge:"value-large",valueSub:"value-sub"},Ws=".__tooltips",Ys=".__aria";function Xs(e,t){if(!Ps(t))throw new Error("noUiSlider: 'step' is not numeric.");e.singleStep=t}function Ks(e,t){if(!Ps(t))throw new Error("noUiSlider: 'keyboardPageMultiplier' is not numeric.");e.keyboardPageMultiplier=t}function Js(e,t){if(!Ps(t))throw new Error("noUiSlider: 'keyboardMultiplier' is not numeric.");e.keyboardMultiplier=t}function Qs(e,t){if(!Ps(t))throw new Error("noUiSlider: 'keyboardDefaultStep' is not numeric.");e.keyboardDefaultStep=t}function Zs(e,t){if("object"!=typeof t||Array.isArray(t))throw new Error("noUiSlider: 'range' is not an object.");if(void 0===t.min||void 0===t.max)throw new Error("noUiSlider: Missing 'min' or 'max' in 'range'.");e.spectrum=new Us(t,e.snap||!1,e.singleStep)}function ea(e,t){if(t=Rs(t),!Array.isArray(t)||!t.length)throw new Error("noUiSlider: 'start' option is incorrect.");e.handles=t.length,e.start=t}function ta(e,t){if("boolean"!=typeof t)throw new Error("noUiSlider: 'snap' option must be a boolean.");e.snap=t}function na(e,t){if("boolean"!=typeof t)throw new Error("noUiSlider: 'animate' option must be a boolean.");e.animate=t}function ia(e,t){if("number"!=typeof t)throw new Error("noUiSlider: 'animationDuration' option must be a number.");e.animationDuration=t}function ra(e,t){var n,i=[!1];if("lower"===t?t=[!0,!1]:"upper"===t&&(t=[!1,!0]),!0===t||!1===t){for(n=1;n<e.handles;n++)i.push(t);i.push(!1)}else{if(!Array.isArray(t)||!t.length||t.length!==e.handles+1)throw new Error("noUiSlider: 'connect' option doesn't match handle count.");i=t}e.connect=i}function oa(e,t){switch(t){case"horizontal":e.ort=0;break;case"vertical":e.ort=1;break;default:throw new Error("noUiSlider: 'orientation' option is invalid.")}}function sa(e,t){if(!Ps(t))throw new Error("noUiSlider: 'margin' option must be numeric.");0!==t&&(e.margin=e.spectrum.getDistance(t))}function aa(e,t){if(!Ps(t))throw new Error("noUiSlider: 'limit' option must be numeric.");if(e.limit=e.spectrum.getDistance(t),!e.limit||e.handles<2)throw new Error("noUiSlider: 'limit' option is only supported on linear sliders with 2 or more handles.")}function la(e,t){var n;if(!Ps(t)&&!Array.isArray(t))throw new Error("noUiSlider: 'padding' option must be numeric or array of exactly 2 numbers.");if(Array.isArray(t)&&2!==t.length&&!Ps(t[0])&&!Ps(t[1]))throw new Error("noUiSlider: 'padding' option must be numeric or array of exactly 2 numbers.");if(0!==t){for(Array.isArray(t)||(t=[t,t]),e.padding=[e.spectrum.getDistance(t[0]),e.spectrum.getDistance(t[1])],n=0;n<e.spectrum.xNumSteps.length-1;n++)if(e.padding[0][n]<0||e.padding[1][n]<0)throw new Error("noUiSlider: 'padding' option must be a positive number(s).");var i=t[0]+t[1],r=e.spectrum.xVal[0];if(i/(e.spectrum.xVal[e.spectrum.xVal.length-1]-r)>1)throw new Error("noUiSlider: 'padding' option must not exceed 100% of the range.")}}function ca(e,t){switch(t){case"ltr":e.dir=0;break;case"rtl":e.dir=1;break;default:throw new Error("noUiSlider: 'direction' option was not recognized.")}}function ua(e,t){if("string"!=typeof t)throw new Error("noUiSlider: 'behaviour' must be a string containing options.");var n=t.indexOf("tap")>=0,i=t.indexOf("drag")>=0,r=t.indexOf("fixed")>=0,o=t.indexOf("snap")>=0,s=t.indexOf("hover")>=0,a=t.indexOf("unconstrained")>=0,l=t.indexOf("invert-connects")>=0,c=t.indexOf("drag-all")>=0,u=t.indexOf("smooth-steps")>=0;if(r){if(2!==e.handles)throw new Error("noUiSlider: 'fixed' behaviour must be used with 2 handles");sa(e,e.start[1]-e.start[0])}if(l&&2!==e.handles)throw new Error("noUiSlider: 'invert-connects' behaviour must be used with 2 handles");if(a&&(e.margin||e.limit))throw new Error("noUiSlider: 'unconstrained' behaviour cannot be used with margin or limit");e.events={tap:n||o,drag:i,dragAll:c,smoothSteps:u,fixed:r,snap:o,hover:s,unconstrained:a,invertConnects:l}}function da(e,t){if(!1!==t)if(!0===t||Os(t)){e.tooltips=[];for(var n=0;n<e.handles;n++)e.tooltips.push(t)}else{if((t=Rs(t)).length!==e.handles)throw new Error("noUiSlider: must pass a formatter for all handles.");t.forEach(function(e){if("boolean"!=typeof e&&!Os(e))throw new Error("noUiSlider: 'tooltips' must be passed a formatter or 'false'.")}),e.tooltips=t}}function pa(e,t){if(t.length!==e.handles)throw new Error("noUiSlider: must pass a attributes for all handles.");e.handleAttributes=t}function ha(e,t){if(!Os(t))throw new Error("noUiSlider: 'ariaFormat' requires 'to' method.");e.ariaFormat=t}function fa(e,t){if(!function(e){return Os(e)&&"function"==typeof e.from}(t))throw new Error("noUiSlider: 'format' requires 'to' and 'from' methods.");e.format=t}function ma(e,t){if("boolean"!=typeof t)throw new Error("noUiSlider: 'keyboardSupport' option must be a boolean.");e.keyboardSupport=t}function va(e,t){e.documentElement=t}function ga(e,t){if("string"!=typeof t&&!1!==t)throw new Error("noUiSlider: 'cssPrefix' must be a string or `false`.");e.cssPrefix=t}function ya(e,t){if("object"!=typeof t)throw new Error("noUiSlider: 'cssClasses' must be an object.");"string"==typeof e.cssPrefix?(e.cssClasses={},Object.keys(t).forEach(function(n){e.cssClasses[n]=e.cssPrefix+t[n]})):e.cssClasses=t}function ba(e){var t={margin:null,limit:null,padding:null,animate:!0,animationDuration:300,ariaFormat:$s,format:$s},n={step:{r:!1,t:Xs},keyboardPageMultiplier:{r:!1,t:Ks},keyboardMultiplier:{r:!1,t:Js},keyboardDefaultStep:{r:!1,t:Qs},start:{r:!0,t:ea},connect:{r:!0,t:ra},direction:{r:!0,t:ca},snap:{r:!1,t:ta},animate:{r:!1,t:na},animationDuration:{r:!1,t:ia},range:{r:!0,t:Zs},orientation:{r:!1,t:oa},margin:{r:!1,t:sa},limit:{r:!1,t:aa},padding:{r:!1,t:la},behaviour:{r:!0,t:ua},ariaFormat:{r:!1,t:ha},format:{r:!1,t:fa},tooltips:{r:!1,t:da},keyboardSupport:{r:!0,t:ma},documentElement:{r:!1,t:va},cssPrefix:{r:!0,t:ga},cssClasses:{r:!0,t:ya},handleAttributes:{r:!1,t:pa}},i={connect:!1,direction:"ltr",behaviour:"tap",orientation:"horizontal",keyboardSupport:!0,cssPrefix:"noUi-",cssClasses:Gs,keyboardPageMultiplier:5,keyboardMultiplier:1,keyboardDefaultStep:10};e.format&&!e.ariaFormat&&(e.ariaFormat=e.format),Object.keys(n).forEach(function(r){if(Ms(e[r])||void 0!==i[r])n[r].t(t,Ms(e[r])?e[r]:i[r]);else if(n[r].r)throw new Error("noUiSlider: '"+r+"' is required.")}),t.pips=e.pips;var r=document.createElement("div"),o=void 0!==r.style.msTransform,s=void 0!==r.style.transform;return t.transformRule=s?"transform":o?"msTransform":"webkitTransform",t.style=[["left","top"],["right","bottom"]][t.dir][t.ort],t}function wa(e,t,n){var i,r,o,s,a,l,c,u=window.navigator.pointerEnabled?{start:"pointerdown",move:"pointermove",end:"pointerup"}:window.navigator.msPointerEnabled?{start:"MSPointerDown",move:"MSPointerMove",end:"MSPointerUp"}:{start:"mousedown touchstart",move:"mousemove touchmove",end:"mouseup touchend"},d=window.CSS&&CSS.supports&&CSS.supports("touch-action","none")&&function(){var e=!1;try{var t=Object.defineProperty({},"passive",{get:function(){e=!0}});window.addEventListener("test",null,t)}catch(e){}return e}(),p=e,h=t.spectrum,f=[],m=[],v=[],g=0,y={},b=!1,w=e.ownerDocument,_=t.documentElement||w.documentElement,S=w.body,E="rtl"===w.dir||1===t.ort?0:100;function x(e,t){var n=w.createElement("div");return t&&zs(n,t),e.appendChild(n),n}function k(e,n){var i=x(e,t.cssClasses.origin),r=x(i,t.cssClasses.handle);if(x(r,t.cssClasses.touchArea),r.setAttribute("data-handle",String(n)),t.keyboardSupport&&(r.setAttribute("tabindex","0"),r.addEventListener("keydown",function(e){return function(e,n){if(A()||O(n))return!1;var i=["Left","Right"],r=["Down","Up"],o=["PageDown","PageUp"],s=["Home","End"];t.dir&&!t.ort?i.reverse():t.ort&&!t.dir&&(r.reverse(),o.reverse());var a,l=e.key.replace("Arrow",""),c=l===o[0],u=l===o[1],d=l===r[0]||l===i[0]||c,p=l===r[1]||l===i[1]||u,v=l===s[1];if(!(d||p||l===s[0]||v))return!0;if(e.preventDefault(),p||d){var g=d?0:1,y=re(n)[g];if(null===y)return!1;!1===y&&(y=h.getDefaultStep(m[n],d,t.keyboardDefaultStep)),y*=u||c?t.keyboardPageMultiplier:t.keyboardMultiplier,y=Math.max(y,1e-7),y*=d?-1:1,a=f[n]+y}else a=v?t.spectrum.xVal[t.spectrum.xVal.length-1]:t.spectrum.xVal[0];return Z(n,h.toStepping(a),!0,!0),W("slide",n),W("update",n),W("change",n),W("set",n),!1}(e,n)})),void 0!==t.handleAttributes){var o=t.handleAttributes[n];Object.keys(o).forEach(function(e){r.setAttribute(e,o[e])})}return r.setAttribute("role","slider"),r.setAttribute("aria-orientation",t.ort?"vertical":"horizontal"),0===n?zs(r,t.cssClasses.handleLower):n===t.handles-1&&zs(r,t.cssClasses.handleUpper),i.handle=r,i}function C(e,n){return!!n&&x(e,t.cssClasses.connect)}function T(e,n){return!(!t.tooltips||!t.tooltips[n])&&x(e.firstChild,t.cssClasses.tooltip)}function A(){return p.hasAttribute("disabled")}function O(e){return o[e].hasAttribute("disabled")}function D(){l&&(G("update"+Ws),l.forEach(function(e){e&&Ds(e)}),l=null)}function M(){D(),l=o.map(T),$("update"+Ws,function(e,n,i){if(l&&t.tooltips&&!1!==l[n]){var r=e[n];!0!==t.tooltips[n]&&(r=t.tooltips[n].to(i[n])),l[n].innerHTML=r}})}function L(e,t){return e.map(function(e){return h.fromStepping(t?h.getStep(e):e)})}function P(){a&&(Ds(a),a=null)}function I(e){P();var n=function(e){function t(e,t){return Number((e+t).toFixed(7))}var n,i=function(e){if(e.mode===Ss.Range||e.mode===Ss.Steps)return h.xVal;if(e.mode===Ss.Count){if(e.values<2)throw new Error("noUiSlider: 'values' (>= 2) required for mode 'count'.");for(var t=e.values-1,n=100/t,i=[];t--;)i[t]=t*n;return i.push(100),L(i,e.stepped)}return e.mode===Ss.Positions?L(e.values,e.stepped):e.mode===Ss.Values?e.stepped?e.values.map(function(e){return h.fromStepping(h.getStep(h.toStepping(e)))}):e.values:[]}(e),r={},o=h.xVal[0],s=h.xVal[h.xVal.length-1],a=!1,l=!1,c=0;return n=i.slice().sort(function(e,t){return e-t}),i=n.filter(function(e){return!this[e]&&(this[e]=!0)},{}),i[0]!==o&&(i.unshift(o),a=!0),i[i.length-1]!==s&&(i.push(s),l=!0),i.forEach(function(n,o){var s,u,d,p,f,m,v,g,y,b,w=n,_=i[o+1],S=e.mode===Ss.Steps;for(S&&(s=h.xNumSteps[o]),s||(s=_-w),void 0===_&&(_=w),s=Math.max(s,1e-7),u=w;u<=_;u=t(u,s)){for(g=(f=(p=h.toStepping(u))-c)/(e.density||1),b=f/(y=Math.round(g)),d=1;d<=y;d+=1)r[(m=c+d*b).toFixed(5)]=[h.fromStepping(m),0];v=i.indexOf(u)>-1?Es.LargeValue:S?Es.SmallValue:Es.NoValue,!o&&a&&u!==_&&(v=0),u===_&&l||(r[p.toFixed(5)]=[u,v]),c=p}}),r}(e),i=e.filter,r=e.format||{to:function(e){return String(Math.round(e))}};return a=p.appendChild(function(e,n,i){var r,o,s=w.createElement("div"),a=((r={})[Es.None]="",r[Es.NoValue]=t.cssClasses.valueNormal,r[Es.LargeValue]=t.cssClasses.valueLarge,r[Es.SmallValue]=t.cssClasses.valueSub,r),l=((o={})[Es.None]="",o[Es.NoValue]=t.cssClasses.markerNormal,o[Es.LargeValue]=t.cssClasses.markerLarge,o[Es.SmallValue]=t.cssClasses.markerSub,o),c=[t.cssClasses.valueHorizontal,t.cssClasses.valueVertical],u=[t.cssClasses.markerHorizontal,t.cssClasses.markerVertical];function d(e,n){var i=n===t.cssClasses.value,r=i?a:l;return n+" "+(i?c:u)[t.ort]+" "+r[e]}return zs(s,t.cssClasses.pips),zs(s,0===t.ort?t.cssClasses.pipsHorizontal:t.cssClasses.pipsVertical),Object.keys(e).forEach(function(r){!function(e,r,o){if((o=n?n(r,o):o)!==Es.None){var a=x(s,!1);a.className=d(o,t.cssClasses.marker),a.style[t.style]=e+"%",o>Es.NoValue&&((a=x(s,!1)).className=d(o,t.cssClasses.value),a.setAttribute("data-value",String(r)),a.style[t.style]=e+"%",a.innerHTML=String(i.to(r)))}}(r,e[r][0],e[r][1])}),s}(n,i,r))}function N(){var e=i.getBoundingClientRect(),n="offset"+["Width","Height"][t.ort];return 0===t.ort?e.width||i[n]:e.height||i[n]}function R(e,n,i,r){var o=function(o){var s,a,l=function(e,t,n){var i=0===e.type.indexOf("touch"),r=0===e.type.indexOf("mouse"),o=0===e.type.indexOf("pointer"),s=0,a=0;if(0===e.type.indexOf("MSPointer")&&(o=!0),"mousedown"===e.type&&!e.buttons&&!e.touches)return!1;if(i){var l=function(t){var i=t.target;return i===n||n.contains(i)||e.composed&&e.composedPath().shift()===n};if("touchstart"===e.type){var c=Array.prototype.filter.call(e.touches,l);if(c.length>1)return!1;s=c[0].pageX,a=c[0].pageY}else{var u=Array.prototype.find.call(e.changedTouches,l);if(!u)return!1;s=u.pageX,a=u.pageY}}return t=t||Fs(w),(r||o)&&(s=e.clientX+t.x,a=e.clientY+t.y),e.pageOffset=t,e.points=[s,a],e.cursor=r||o,e}(o,r.pageOffset,r.target||n);return!!l&&!(A()&&!r.doNotReject)&&(s=p,a=t.cssClasses.tap,!((s.classList?s.classList.contains(a):new RegExp("\\b"+a+"\\b").test(s.className))&&!r.doNotReject)&&!(e===u.start&&void 0!==l.buttons&&l.buttons>1)&&(!r.hover||!l.buttons)&&(d||l.preventDefault(),l.calcPoint=l.points[t.ort],void i(l,r)))},s=[];return e.split(" ").forEach(function(e){n.addEventListener(e,o,!!d&&{passive:!0}),s.push([e,o])}),s}function B(e){var n,r,o,s,a,l,c=100*(e-(n=i,r=t.ort,o=n.getBoundingClientRect(),a=(s=n.ownerDocument).documentElement,l=Fs(s),/webkit.*Chrome.*Mobile/i.test(navigator.userAgent)&&(l.x=0),r?o.top+l.y-a.clientTop:o.left+l.x-a.clientLeft))/N();return c=Ns(c),t.dir?100-c:c}function z(e,t){"mouseout"===e.type&&"HTML"===e.target.nodeName&&null===e.relatedTarget&&F(e,t)}function H(e,n){if(-1===navigator.appVersion.indexOf("MSIE 9")&&0===e.buttons&&0!==n.buttonsProperty)return F(e,n);var i=(t.dir?-1:1)*(e.calcPoint-n.startCalcPoint);K(i>0,100*i/n.baseSize,n.locations,n.handleNumbers,n.connect)}function F(e,n){n.handle&&(Hs(n.handle,t.cssClasses.active),g-=1),n.listeners.forEach(function(e){_.removeEventListener(e[0],e[1])}),0===g&&(Hs(p,t.cssClasses.drag),Q(),e.cursor&&(S.style.cursor="",S.removeEventListener("selectstart",Ls))),t.events.smoothSteps&&(n.handleNumbers.forEach(function(e){Z(e,m[e],!0,!0,!1,!1)}),n.handleNumbers.forEach(function(e){W("update",e)})),n.handleNumbers.forEach(function(e){W("change",e),W("set",e),W("end",e)})}function V(e,n){if(!n.handleNumbers.some(O)){var i;1===n.handleNumbers.length&&(i=o[n.handleNumbers[0]].children[0],g+=1,zs(i,t.cssClasses.active)),e.stopPropagation();var r=[],s=R(u.move,_,H,{target:e.target,handle:i,connect:n.connect,listeners:r,startCalcPoint:e.calcPoint,baseSize:N(),pageOffset:e.pageOffset,handleNumbers:n.handleNumbers,buttonsProperty:e.buttons,locations:m.slice()}),a=R(u.end,_,F,{target:e.target,handle:i,listeners:r,doNotReject:!0,handleNumbers:n.handleNumbers}),l=R("mouseout",_,z,{target:e.target,handle:i,listeners:r,doNotReject:!0,handleNumbers:n.handleNumbers});r.push.apply(r,s.concat(a,l)),e.cursor&&(S.style.cursor=getComputedStyle(e.target).cursor,o.length>1&&zs(p,t.cssClasses.drag),S.addEventListener("selectstart",Ls,!1)),n.handleNumbers.forEach(function(e){W("start",e)})}}function j(e){e.stopPropagation();var n=B(e.calcPoint),i=function(e){var t=100,n=!1;return o.forEach(function(i,r){if(!O(r)){var o=m[r],s=Math.abs(o-e);(s<t||s<=t&&e>o||100===s&&100===t)&&(n=r,t=s)}}),n}(n);!1!==i&&(t.events.snap||Is(p,t.cssClasses.tap,t.animationDuration),Z(i,n,!0,!0),Q(),W("slide",i,!0),W("update",i,!0),t.events.snap?V(e,{handleNumbers:[i]}):(W("change",i,!0),W("set",i,!0)))}function q(e){var t=B(e.calcPoint),n=h.getStep(t),i=h.fromStepping(n);Object.keys(y).forEach(function(e){"hover"===e.split(".")[0]&&y[e].forEach(function(e){e.call(se,i)})})}function U(e){e.fixed||o.forEach(function(e,t){R(u.start,e.children[0],V,{handleNumbers:[t]})}),e.tap&&R(u.start,i,j,{}),e.hover&&R(u.move,i,q,{hover:!0}),e.drag&&s.forEach(function(n,i){if(!1!==n&&0!==i&&i!==s.length-1){var r=o[i-1],a=o[i],l=[n],c=[r,a],d=[i-1,i];zs(n,t.cssClasses.draggable),e.fixed&&(l.push(r.children[0]),l.push(a.children[0])),e.dragAll&&(c=o,d=v),l.forEach(function(e){R(u.start,e,V,{handles:c,handleNumbers:d,connect:n})})}})}function $(e,t){y[e]=y[e]||[],y[e].push(t),"update"===e.split(".")[0]&&o.forEach(function(e,t){W("update",t)})}function G(e){var t=e&&e.split(".")[0],n=t?e.substring(t.length):e;Object.keys(y).forEach(function(e){var i=e.split(".")[0],r=e.substring(i.length);t&&t!==i||n&&n!==r||function(e){return e===Ys||e===Ws}(r)&&n!==r||delete y[e]})}function W(e,n,i){Object.keys(y).forEach(function(r){var o=r.split(".")[0];e===o&&y[r].forEach(function(e){e.call(se,f.map(t.format.to),n,f.slice(),i||!1,m.slice(),se)})})}function Y(e,n,i,r,s,a,l){var c;return o.length>1&&!t.events.unconstrained&&(r&&n>0&&(c=h.getAbsoluteDistance(e[n-1],t.margin,!1),i=Math.max(i,c)),s&&n<o.length-1&&(c=h.getAbsoluteDistance(e[n+1],t.margin,!0),i=Math.min(i,c))),o.length>1&&t.limit&&(r&&n>0&&(c=h.getAbsoluteDistance(e[n-1],t.limit,!1),i=Math.min(i,c)),s&&n<o.length-1&&(c=h.getAbsoluteDistance(e[n+1],t.limit,!0),i=Math.max(i,c))),t.padding&&(0===n&&(c=h.getAbsoluteDistance(0,t.padding[0],!1),i=Math.max(i,c)),n===o.length-1&&(c=h.getAbsoluteDistance(100,t.padding[1],!0),i=Math.min(i,c))),l||(i=h.getStep(i)),!((i=Ns(i))===e[n]&&!a)&&i}function X(e,n){var i=t.ort;return(i?n:e)+", "+(i?e:n)}function K(e,n,i,r,o){var s=i.slice(),a=r[0],l=t.events.smoothSteps,c=[!e,e],u=[e,!e];r=r.slice(),e&&r.reverse(),r.length>1?r.forEach(function(e,t){var i=Y(s,e,s[e]+n,c[t],u[t],!1,l);!1===i?n=0:(n=i-s[e],s[e]=i)}):c=u=[!0];var d=!1;r.forEach(function(e,t){d=Z(e,i[e]+n,c[t],u[t],!1,l)||d}),d&&(r.forEach(function(e){W("update",e),W("slide",e)}),null!=o&&W("drag",a))}function J(e,n){return t.dir?100-e-n:e}function Q(){v.forEach(function(e){var t=m[e]>50?-1:1,n=3+(o.length+t*e);o[e].style.zIndex=String(n)})}function Z(e,n,i,r,s,a){return s||(n=Y(m,e,n,i,r,!1,a)),!1!==n&&(function(e,n){m[e]=n,f[e]=h.fromStepping(n);var i="translate("+X(J(n,0)-E+"%","0")+")";if(o[e].style[t.transformRule]=i,t.events.invertConnects&&m.length>1){var r=m.every(function(e,t,n){return 0===t||e>=n[t-1]});if(b!==!r)return b=!b,ra(t,t.connect.map(function(e){return!e})),void oe()}ee(e),ee(e+1),b&&(ee(e-1),ee(e+2))}(e,n),!0)}function ee(e){if(s[e]){var n=m.slice();b&&n.sort(function(e,t){return e-t});var i=0,r=100;0!==e&&(i=n[e-1]),e!==s.length-1&&(r=n[e]);var o=r-i,a="translate("+X(J(i,o)+"%","0")+")",l="scale("+X(o/100,"1")+")";s[e].style[t.transformRule]=a+" "+l}}function te(e,n){return null===e||!1===e||void 0===e?m[n]:("number"==typeof e&&(e=String(e)),!1!==(e=t.format.from(e))&&(e=h.toStepping(e)),!1===e||isNaN(e)?m[n]:e)}function ne(e,n,i){var r=Rs(e),o=void 0===m[0];n=void 0===n||n,t.animate&&!o&&Is(p,t.cssClasses.tap,t.animationDuration),v.forEach(function(e){Z(e,te(r[e],e),!0,!1,i)});var s=1===v.length?0:1;if(o&&h.hasNoSize()&&(i=!0,m[0]=0,v.length>1)){var a=100/(v.length-1);v.forEach(function(e){m[e]=e*a})}for(;s<v.length;++s)v.forEach(function(e){Z(e,m[e],!0,!0,i)});Q(),v.forEach(function(e){W("update",e),null!==r[e]&&n&&W("set",e)})}function ie(e){if(void 0===e&&(e=!1),e)return 1===f.length?f[0]:f.slice(0);var n=f.map(t.format.to);return 1===n.length?n[0]:n}function re(e){var n=m[e],i=h.getNearbySteps(n),r=f[e],o=i.thisStep.step,s=null;if(t.snap)return[r-i.stepBefore.startValue||null,i.stepAfter.startValue-r||null];!1!==o&&r+o>i.stepAfter.startValue&&(o=i.stepAfter.startValue-r),s=r>i.thisStep.startValue?i.thisStep.step:!1!==i.stepBefore.step&&r-i.stepBefore.highestStep,100===n?o=null:0===n&&(s=null);var a=h.countStepDecimals();return null!==o&&!1!==o&&(o=Number(o.toFixed(a))),null!==s&&!1!==s&&(s=Number(s.toFixed(a))),[s,o]}function oe(){for(;r.firstChild;)r.removeChild(r.firstChild);for(var e=0;e<=t.handles;e++)s[e]=C(r,t.connect[e]),ee(e);U({drag:t.events.drag,fixed:!0})}zs(c=p,t.cssClasses.target),0===t.dir?zs(c,t.cssClasses.ltr):zs(c,t.cssClasses.rtl),0===t.ort?zs(c,t.cssClasses.horizontal):zs(c,t.cssClasses.vertical),zs(c,"rtl"===getComputedStyle(c).direction?t.cssClasses.textDirectionRtl:t.cssClasses.textDirectionLtr),i=x(c,t.cssClasses.base),function(e,n){r=x(n,t.cssClasses.connects),o=[],(s=[]).push(C(r,e[0]));for(var i=0;i<t.handles;i++)o.push(k(n,i)),v[i]=i,s.push(C(r,e[i+1]))}(t.connect,i),U(t.events),ne(t.start),t.pips&&I(t.pips),t.tooltips&&M(),G("update"+Ys),$("update"+Ys,function(e,n,i,r,s){v.forEach(function(e){var n=o[e],r=Y(m,e,0,!0,!0,!0),a=Y(m,e,100,!0,!0,!0),l=s[e],c=String(t.ariaFormat.to(i[e]));r=h.fromStepping(r).toFixed(1),a=h.fromStepping(a).toFixed(1),l=h.fromStepping(l).toFixed(1),n.children[0].setAttribute("aria-valuemin",r),n.children[0].setAttribute("aria-valuemax",a),n.children[0].setAttribute("aria-valuenow",l),n.children[0].setAttribute("aria-valuetext",c)})});var se={destroy:function(){for(G(Ys),G(Ws),Object.keys(t.cssClasses).forEach(function(e){Hs(p,t.cssClasses[e])});p.firstChild;)p.removeChild(p.firstChild);delete p.noUiSlider},steps:function(){return v.map(re)},on:$,off:G,get:ie,set:ne,setHandle:function(e,t,n,i){if(!((e=Number(e))>=0&&e<v.length))throw new Error("noUiSlider: invalid handle number, got: "+e);Z(e,te(t,e),!0,!0,i),W("update",e),n&&W("set",e)},reset:function(e){ne(t.start,e)},disable:function(e){null!=e?(o[e].setAttribute("disabled",""),o[e].handle.removeAttribute("tabindex")):(p.setAttribute("disabled",""),o.forEach(function(e){e.handle.removeAttribute("tabindex")}))},enable:function(e){null!=e?(o[e].removeAttribute("disabled"),o[e].handle.setAttribute("tabindex","0")):(p.removeAttribute("disabled"),o.forEach(function(e){e.removeAttribute("disabled"),e.handle.setAttribute("tabindex","0")}))},__moveHandles:function(e,t,n){K(e,t,m,n)},options:n,updateOptions:function(e,i){var r=ie(),o=["margin","limit","padding","range","animate","snap","step","format","pips","tooltips","connect"];o.forEach(function(t){void 0!==e[t]&&(n[t]=e[t])});var s=ba(n);o.forEach(function(n){void 0!==e[n]&&(t[n]=s[n])}),h=s.spectrum,t.margin=s.margin,t.limit=s.limit,t.padding=s.padding,t.pips?I(t.pips):P(),t.tooltips?M():D(),m=[],ne(Ms(e.start)?e.start:r,i),e.connect&&oe()},target:p,removePips:P,removeTooltips:D,getPositions:function(){return m.slice()},getTooltips:function(){return l},getOrigins:function(){return o},pips:I};return se}var _a=function(e,t){if(!e||!e.nodeName)throw new Error("noUiSlider: create requires a single element, got: "+e);if(e.noUiSlider)throw new Error("noUiSlider: Slider was already initialized.");var n=wa(e,ba(t),t);return e.noUiSlider=n,n},Sa={start:[0],connect:!1,range:{min:0,max:100},cssPrefix:"range-slider",cssClasses:{target:"__target",base:"__base",origin:"__origin",handle:"__handle",handleLower:"__handle--lower",handleUpper:"__handle--upper",touchArea:"__touch-area",horizontal:"--horizontal",vertical:"--vertical",background:"__background",connect:"__connect",connects:"__connects",ltr:"--ltr",rtl:"--rtl",draggable:"--draggable",drag:"--state-drag",tap:"--state-tap",active:"--active",tooltip:"__tooltip",pips:"__pips",pipsHorizontal:"__pips--horizontal",pipsVertical:"__pips--vertical",marker:"__marker",markerHorizontal:"__marker--horizontal",markerVertical:"__marker--vertical",markerNormal:"__marker--normal",markerLarge:"__marker--large",markerSub:"__marker--sub",value:"__value",valueHorizontal:"__value--horizontal",valueVertical:"__value--vertical",valueNormal:"__value--normal",valueLarge:"__value--large",valueSub:"__value--sub"},format:{decimals:0}},Ea=function(){return o(function e(t,n){var r=this;return i(this,e),s(this,"handleSliderUpdate",function(e,t){var n=e[t];if(r.inputs[t]&&(r.inputs[t].value=n),r.outputs[t]){var i=r.outputs[t];i&&i.format?i.element.innerText=i.format.to(r.config.format.from(n)):i&&(i.element.innerText=n)}}),this.element=t,this.config=l(l({},Sa),n),this.inputs=[],this.outputs=[],this.handleSliderUpdate=this.handleSliderUpdate.bind(this),this.element.ODS_RangeSlider=this,this.init(),this},[{key:"init",value:function(){var e,t=this,n=this.element.getAttribute("data-rangeslider-config"),i={};if(n)try{i=JSON.parse(n)}catch(e){}if(this.config=l(l({},this.config),i),this.config.format=rn(this.config.format),this.element.noUiSlider&&(this.element.noUiSlider=void 0,null!==(e=this.instance)&&void 0!==e&&e.destroy&&this.instance.destroy()),!this.config.range)throw new Error("RangeSlider config must include 'range'.");this.instance=_a(this.element,this.config),this.inputs=Array.from(document.querySelectorAll("input[name^=".concat(this.element.getAttribute("id"),"-]"))),this.outputs=this.inputs.map(function(e){var t=document.getElementById("".concat(e.getAttribute("id"),"-output"));if(t){var n=t.getAttribute("data-format");return{element:t,format:t.hasAttribute("data-format")&&n?rn(JSON.parse(n)):void 0}}return!1}),this.instance.on("update",function(e,n){t.handleSliderUpdate(e.map(String),n)})}},{key:"update",value:function(){var e;null===(e=this.instance)||void 0===e||e.destroy(),this.init()}},{key:"destroy",value:function(){var e,t;null===(e=this.instance)||void 0===e||e.off("update"),null===(t=this.instance)||void 0===t||t.destroy(),this.element.ODS_RangeSlider=null}}],[{key:"getInstance",value:function(e){return e&&e.ODS_RangeSlider?e.ODS_RangeSlider:null}}])}(),xa={cycleDuration:4e3,delay:5e3},ka=function(){return o(function e(t,n){i(this,e),this.element=t,this.config=l(l({},xa),n),this.interval=null,this.delay=null,this.currentMessageIndex=0,this.messages=[],this.cycleMessages=this.cycleMessages.bind(this),this.element.ODS_Loader=this,this.init()},[{key:"initBody",value:function(){var e,t=this.element.getAttribute("data-loader-messages");this.messages=t?JSON.parse(t):[],this.messages.length&&(this.interval=window.setInterval(this.cycleMessages,null!==(e=this.config.cycleDuration)&&void 0!==e?e:xa.cycleDuration))}},{key:"init",value:function(){var e,t=this;this.element.hasAttribute("data-loader-delayed")?this.delay=window.setTimeout(function(){t.element.parentNode&&t.element.parentNode instanceof HTMLElement&&t.element.parentNode.classList.remove("hide"),t.initBody()},null!==(e=this.config.delay)&&void 0!==e?e:xa.delay):this.initBody()}},{key:"destroy",value:function(){this.interval&&window.clearInterval(this.interval),this.delay&&window.clearTimeout(this.delay)}},{key:"cycleMessages",value:function(){this.currentMessageIndex<this.messages.length?(this.element.innerText=this.messages[this.currentMessageIndex],this.currentMessageIndex+=1):this.destroy()}}],[{key:"getInstance",value:function(e){return e&&e.ODS_Loader?e.ODS_Loader:null}}])}();const Ca=":not([inert]):not([inert] *)",Ta=':not([tabindex^="-"])',Aa=":not(:disabled)";var Oa=[`a[href]${Ca}${Ta}`,`area[href]${Ca}${Ta}`,`input:not([type="hidden"]):not([type="radio"])${Ca}${Ta}${Aa}`,`input[type="radio"]${Ca}${Ta}${Aa}`,`select${Ca}${Ta}${Aa}`,`textarea${Ca}${Ta}${Aa}`,`button${Ca}${Ta}${Aa}`,`details${Ca} > summary:first-of-type${Ta}`,`iframe${Ca}${Ta}`,`audio[controls]${Ca}${Ta}`,`video[controls]${Ca}${Ta}`,`[contenteditable]${Ca}${Ta}`,`[tabindex]${Ca}${Ta}`];function Da(e){(e.querySelector("[autofocus]")||e).focus()}function Ma(e,t){if(t&&Ia(e))return e;if(function(e){return!(e.shadowRoot&&"-1"===e.getAttribute("tabindex")||e.matches(":disabled,[hidden],[inert]"))}(e))if(e.shadowRoot){let n=La(e.shadowRoot,t);for(;n;){const e=Ma(n,t);if(e)return e;n=Pa(n,t)}}else if("slot"===e.localName){const n=e.assignedElements({flatten:!0});t||n.reverse();for(const e of n){const n=Ma(e,t);if(n)return n}}else{let n=La(e,t);for(;n;){const e=Ma(n,t);if(e)return e;n=Pa(n,t)}}return!t&&Ia(e)?e:null}function La(e,t){return t?e.firstElementChild:e.lastElementChild}function Pa(e,t){return t?e.nextElementSibling:e.previousElementSibling}const Ia=e=>!e.shadowRoot?.delegatesFocus&&e.matches(Oa.join(","))&&!(e=>!(!e.matches("details:not([open]) *")||e.matches("details>summary:first-of-type"))||!(e.offsetWidth||e.offsetHeight||e.getClientRects().length))(e);function Na(e=document){const t=e.activeElement;return t?t.shadowRoot?Na(t.shadowRoot)||document.activeElement:t:null}function Ra(e,t){return function t(n){if(!n||n===document||n===window)return null;const i=Ba(n);return i&&(n=i),n.closest(e)||t(n.getRootNode().host)}(t)}function Ba(e){return e.assignedSlot||(e.parentNode?Ba(e.parentNode):null)}const za="data-a11y-dialog";class Ha{$el;id;previouslyFocused;shown;constructor(e){this.$el=e,this.id=this.$el.getAttribute(za)||this.$el.id,this.previouslyFocused=null,this.shown=!1,this.maintainFocus=this.maintainFocus.bind(this),this.bindKeypress=this.bindKeypress.bind(this),this.handleTriggerClicks=this.handleTriggerClicks.bind(this),this.show=this.show.bind(this),this.hide=this.hide.bind(this),this.$el.setAttribute("aria-hidden","true"),this.$el.setAttribute("aria-modal","true"),this.$el.setAttribute("tabindex","-1"),this.$el.hasAttribute("role")||this.$el.setAttribute("role","dialog"),document.addEventListener("click",this.handleTriggerClicks,!0)}destroy(){return this.fire("destroy").defaultPrevented||(this.hide(),document.removeEventListener("click",this.handleTriggerClicks,!0),this.$el.replaceWith(this.$el.cloneNode(!0))),this}show(e){return this.shown||this.fire("show",e).defaultPrevented||(this.shown=!0,this.$el.removeAttribute("aria-hidden"),this.previouslyFocused=Na(),"BODY"===this.previouslyFocused?.tagName&&e?.target&&(this.previouslyFocused=e.target),"focus"===e?.type?this.maintainFocus():Da(this.$el),document.body.addEventListener("focus",this.maintainFocus,!0),this.$el.addEventListener("keydown",this.bindKeypress,!0)),this}hide(e){return this.shown?(this.fire("hide",e).defaultPrevented||(this.shown=!1,this.$el.setAttribute("aria-hidden","true"),document.body.removeEventListener("focus",this.maintainFocus,!0),this.$el.removeEventListener("keydown",this.bindKeypress,!0),this.previouslyFocused?.focus?.()),this):this}on(e,t,n){return this.$el.addEventListener(e,t,n),this}off(e,t,n){return this.$el.removeEventListener(e,t,n),this}fire(e,t){const n=new CustomEvent(e,{detail:t,cancelable:!0});return this.$el.dispatchEvent(n),n}handleTriggerClicks(e){const t=e.composedPath()[0],n=Ra(`[${za}-show="${this.id}"]`,t),i=Ra(`[${za}-hide="${this.id}"]`,t),r=Ra(`[${za}-hide]`,t)&&Ra('[aria-modal="true"]',t)===this.$el;n&&this.show(e),(i||r)&&this.hide(e)}bindKeypress(e){if(Ra('[aria-modal="true"]',Na())!==this.$el)return;let t=!1;try{t=!!this.$el.querySelector('[popover]:not([popover="manual"]):popover-open')}catch{}"Escape"!==e.key||"alertdialog"===this.$el.getAttribute("role")||t||(e.preventDefault(),this.hide(e)),"Tab"===e.key&&function(e,t){const[n,i]=function(e){const t=Ma(e,!0);return[t,t?Ma(e,!1)||t:null]}(e);if(!n)return t.preventDefault();const r=Na();t.shiftKey&&r===n?(i.focus(),t.preventDefault()):t.shiftKey||r!==i||(n.focus(),t.preventDefault())}(this.$el,e)}maintainFocus(){const e=Na();Ra(`[aria-modal="true"], [${za}-ignore-focus-trap]`,e)||Da(this.$el)}}function Fa(){for(const e of document.querySelectorAll("[data-a11y-dialog]"))new Ha(e)}"undefined"!=typeof document&&("loading"===document.readyState?document.addEventListener("DOMContentLoaded",Fa):Fa());var Va=["input:not([inert]):not([inert] *)","select:not([inert]):not([inert] *)","textarea:not([inert]):not([inert] *)","a[href]:not([inert]):not([inert] *)","button:not([inert]):not([inert] *)","[tabindex]:not(slot):not([inert]):not([inert] *)","audio[controls]:not([inert]):not([inert] *)","video[controls]:not([inert]):not([inert] *)",'[contenteditable]:not([contenteditable="false"]):not([inert]):not([inert] *)',"details>summary:first-of-type:not([inert]):not([inert] *)","details:not([inert]):not([inert] *)"].join(","),ja="undefined"==typeof Element,qa=ja?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,Ua=!ja&&Element.prototype.getRootNode?function(e){var t;return null==e||null===(t=e.getRootNode)||void 0===t?void 0:t.call(e)}:function(e){return null==e?void 0:e.ownerDocument},$a=function(e){return"INPUT"===e.tagName},Ga=function(e){var t=e.getBoundingClientRect(),n=t.width,i=t.height;return 0===n&&0===i},Wa=function(e,t){return!(t.disabled||function(e){return $a(e)&&"hidden"===e.type}(t)||function(e,t){var n=t.displayCheck,i=t.getShadowRoot;if("full-native"===n&&"checkVisibility"in e)return!e.checkVisibility({checkOpacity:!1,opacityProperty:!1,contentVisibilityAuto:!0,visibilityProperty:!0,checkVisibilityCSS:!0});if("hidden"===getComputedStyle(e).visibility)return!0;var r=qa.call(e,"details>summary:first-of-type")?e.parentElement:e;if(qa.call(r,"details:not([open]) *"))return!0;if(n&&"full"!==n&&"full-native"!==n&&"legacy-full"!==n){if("non-zero-area"===n)return Ga(e)}else{if("function"==typeof i){for(var o=e;e;){var s=e.parentElement,a=Ua(e);if(s&&!s.shadowRoot&&!0===i(s))return Ga(e);e=e.assignedSlot?e.assignedSlot:s||a===e.ownerDocument?s:a.host}e=o}if(function(e){var t,n,i,r,o=e&&Ua(e),s=null===(t=o)||void 0===t?void 0:t.host,a=!1;if(o&&o!==e)for(a=!!(null!==(n=s)&&void 0!==n&&null!==(i=n.ownerDocument)&&void 0!==i&&i.contains(s)||null!=e&&null!==(r=e.ownerDocument)&&void 0!==r&&r.contains(e));!a&&s;){var l,c,u;a=!(null===(c=s=null===(l=o=Ua(s))||void 0===l?void 0:l.host)||void 0===c||null===(u=c.ownerDocument)||void 0===u||!u.contains(s))}return a}(e))return!e.getClientRects().length;if("legacy-full"!==n)return!0}return!1}(t,e)||function(e){return"DETAILS"===e.tagName&&Array.prototype.slice.apply(e.children).some(function(e){return"SUMMARY"===e.tagName})}(t)||function(e){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))for(var t=e.parentElement;t;){if("FIELDSET"===t.tagName&&t.disabled){for(var n=0;n<t.children.length;n++){var i=t.children.item(n);if("LEGEND"===i.tagName)return!!qa.call(t,"fieldset[disabled] *")||!i.contains(e)}return!0}t=t.parentElement}return!1}(t))},Ya=function(e,t){if(t=t||{},!e)throw new Error("No node provided");return!1!==qa.call(e,Va)&&function(e,t){return!(function(e){return function(e){return $a(e)&&"radio"===e.type}(e)&&!function(e){if(!e.name)return!0;var t,n=e.form||Ua(e),i=function(e){return n.querySelectorAll('input[type="radio"][name="'+e+'"]')};if("undefined"!=typeof window&&void 0!==window.CSS&&"function"==typeof window.CSS.escape)t=i(window.CSS.escape(e.name));else try{t=i(e.name)}catch(e){return!1}var r=function(e,t){for(var n=0;n<e.length;n++)if(e[n].checked&&e[n].form===t)return e[n]}(t,e.form);return!r||r===e}(e)}(t)||function(e){if(!e)throw new Error("No node provided");return e.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||function(e){var t,n=null==e||null===(t=e.getAttribute)||void 0===t?void 0:t.call(e,"contenteditable");return""===n||"true"===n}(e))&&!function(e){return!isNaN(parseInt(e.getAttribute("tabindex"),10))}(e)?0:e.tabIndex}(t)<0||!Wa(e,t))}(t,e)},Xa=function(){function e(t,n){return i(this,e),this.element=t,this.config=l(l({},{classModalIsOpen:"is-active",classModalIsOpenBody:"has-modal",root:"#root",modalsRoot:"#root-modals"}),n),this.handleShow=this.handleShow.bind(this),this.handleHide=this.handleHide.bind(this),this.show=this.show.bind(this),this.hide=this.hide.bind(this),this.headerFirstItemSpacing=this.headerFirstItemSpacing.bind(this),e.moveToModalRoot=e.moveToModalRoot.bind(this),e.lockBody=e.lockBody.bind(this),e.unlockBody=e.unlockBody.bind(this),this.element.ODS_Modal=this,this.init(),this}return o(e,[{key:"handleShow",value:function(t){e.lockBody(),t&&t.classList.add(this.config.classModalIsOpen);var n=t.querySelector("[data-a11y-dialog-initial-focus]");n&&(Ya(n)||n.setAttribute("tabindex","-1"),n.focus())}},{key:"handleHide",value:function(t){e.unlockBody(),t&&t.classList.remove(this.config.classModalIsOpen)}},{key:"show",value:function(){this.instance.show()}},{key:"hide",value:function(){this.instance.hide()}},{key:"headerFirstItemSpacing",value:function(){var e=this.element.querySelector(".modal__header");if(e){var t=e.classList.contains("modal__header--no-spacing"),n=Array.from(e.children).find(function(e){return!e.classList.contains("btn")});n&&!t&&(n.style.marginRight="40px")}}},{key:"init",value:function(){var t=this;this.config.modalsRoot&&!this.config.disablePortal&&e.moveToModalRoot(this.element,document.querySelector(this.config.modalsRoot)),this.instance=new Ha(this.element),this.instance.on("show",function(e){var n=e.currentTarget;t.handleShow(n)}),this.instance.on("hide",function(e){var n=e.currentTarget;t.handleHide(n)}),this.headerFirstItemSpacing()}},{key:"destroy",value:function(){if(this.instance){this.instance.hide();var t=this.instance;document.removeEventListener("click",t.handleTriggerClicks,!0),document.body.removeEventListener("focus",t.maintainFocus,!0),this.element.removeEventListener("keydown",t.bindKeypress,!0),e.unlockBody()}this.element.ODS_Modal=this}},{key:"update",value:function(){this.destroy(),this.init()}}],[{key:"getInstance",value:function(e){return e&&e.ODS_Modal||null}},{key:"moveToModalRoot",value:function(e,t){t&&t.appendChild(e)}},{key:"lockBody",value:function(t,n){var i;if(!e.isLocked){var r=t||(null===(i=this.config)||void 0===i?void 0:i.classModalIsOpenBody),o=window.scrollY;document.body.setAttribute("data-lock-scrolltop",o.toString());var s=window.innerWidth-document.documentElement.clientWidth;document.body.style.position="fixed",document.body.style.top="-".concat(o,"px"),document.body.style.left="0",document.body.style.right="0",document.body.style.paddingRight="".concat(s,"px"),document.body.classList.add(r),e.isLocked=!0}}},{key:"unlockBody",value:function(t,n){var i;if(e.isLocked){var r=t||(null===(i=this.config)||void 0===i?void 0:i.classModalIsOpenBody),o=document.body.getAttribute("data-lock-scrolltop")||"0";document.body.style.position="",document.body.style.top="",document.body.style.left="",document.body.style.right="",document.body.style.paddingRight="",document.body.classList.remove(r),window.scrollTo({top:parseInt(o,10),left:0,behavior:"instant"}),e.isLocked=!1}}}])}();s(Xa,"isLocked",!1);var Ka={expandButtonSelector:"[data-subrow-toggle]",scrollableContainerSelector:".table-scrollable",responsiveTableSelector:'[data-table="responsive"]'},Ja=function(){return o(function e(t,n){var r=this;return i(this,e),this.element=t,this.config=l(l({},Ka),n),this.addRole=this.addRole.bind(this),this.addARIA=this.addARIA.bind(this),this.onExpandClick=this.onExpandClick.bind(this),this.expandButtons=[],this.scrollableContainer=null,this.element.ODS_Table=this,this.resizeObserver=new ResizeObserver(function(e){if(r.scrollableContainer){var t=r.scrollableContainer.getBoundingClientRect();e.forEach(function(e){var n,i;e.contentRect.width>t.width?null===(n=r.scrollableContainer)||void 0===n||n.setAttribute("tabindex","0"):null===(i=r.scrollableContainer)||void 0===i||i.removeAttribute("tabindex")})}}),this.init(),this},[{key:"addRole",value:function(e,t){Array.from(this.element.querySelectorAll(e)).forEach(function(e){e.setAttribute("role",t)})}},{key:"addARIA",value:function(){try{this.element.setAttribute("role","table"),this.addRole("thead, tbody, tfoot","rowgroup"),this.addRole("tr","row"),this.addRole("td","cell"),this.addRole("th","columnheader"),this.addRole("th[scope=row]","rowheader")}catch(e){}}},{key:"onExpandClick",value:function(e){var t,n=e.currentTarget,i=null!==(t=n.getAttribute("aria-controls"))&&void 0!==t?t:"",r=this.element.querySelectorAll(i.split(" ").map(function(e){return"#".concat(e)}).join(","));ki({element:n,attribute:"aria-expanded"}),r.forEach(function(e){ki({element:e,attribute:"hidden"})})}},{key:"init",value:function(){var e=this;this.expandButtons=Array.from(this.element.querySelectorAll(this.config.expandButtonSelector)),this.expandButtons.forEach(function(t){t.addEventListener("click",e.onExpandClick)}),this.element.matches(this.config.responsiveTableSelector)&&this.addARIA(),this.maybeInitScrollable()}},{key:"maybeInitScrollable",value:function(){if(this.scrollableContainer=this.element.closest(this.config.scrollableContainerSelector),this.scrollableContainer)return this.resizeObserver.observe(this.element),!0}},{key:"destroy",value:function(){var e=this;this.expandButtons.forEach(function(t){t.removeEventListener("click",e.onExpandClick)}),this.resizeObserver.disconnect(),this.expandButtons=[]}},{key:"update",value:function(){this.destroy(),this.init()}}],[{key:"getInstance",value:function(e){return e&&e.ODS_Table?e.ODS_Table:null}}])}(),Qa={tabSelector:'[role="tab"]'},Za=function(){return o(function e(t,n){return i(this,e),s(this,"isActive",function(e){return!!e&&!e.hasAttribute("hidden")}),s(this,"isSelected",function(e){return"true"===e.getAttribute("aria-selected")}),this.element=t,this.config=l(l({},Qa),n),this.tabs=[],this.tabPanels=[],this.activeTabIndex=null,this.rovingTabindex=null,this.handleClick=this.handleClick.bind(this),this.handleTabFocus=this.handleTabFocus.bind(this),this.element.ODS_Tabs=this,this.init(),this},[{key:"init",value:function(){var e=this;this.tabs=Array.from(this.element.querySelectorAll(this.config.tabSelector)),this.tabs.map(function(t,n){var i=t.getAttribute("aria-controls");return e.tabPanels.push(i?document.getElementById(i):null),t.addEventListener("click",e.handleClick),t.addEventListener("focus",e.handleTabFocus),e.isSelected(t)&&(e.activeTabIndex=n),t}),this.rovingTabindex?this.rovingTabindex.update(this.tabs):this.rovingTabindex=new g(this.tabs,{direction:"any"}),null!==this.activeTabIndex?this.toggleTabPanel(this.tabPanels[this.activeTabIndex],"on"):this.tabs.length>0&&this.activateNthTab(0)}},{key:"destroy",value:function(){var e=this;this.tabs.map(function(t){return t.removeEventListener("click",e.handleClick),t.removeEventListener("focus",e.handleTabFocus),t}),this.tabs=[],this.tabPanels=[],this.rovingTabindex&&this.rovingTabindex.destroy(),this.element.ODS_Tabs=null}},{key:"update",value:function(){this.destroy(),this.init()}},{key:"handleClick",value:function(e){var t=this,n=e.currentTarget;n.hasAttribute("aria-disabled")?e.preventDefault():(this.tabs.map(function(e,i){return e===n?(t.activeTabIndex=i,t.toggleTab(e,"on")):t.toggleTab(e,"off")}),this.tabPanels.map(function(e){return e&&e.getAttribute("id")===n.getAttribute("aria-controls")?t.toggleTabPanel(e,"on"):t.toggleTabPanel(e,"off")}))}},{key:"toggleTab",value:function(e,t){var n=this.isSelected(e);"on"!==t||n||(e.setAttribute("aria-selected","true"),e.setAttribute("tabindex","0")),"off"===t&&n&&(e.setAttribute("aria-selected","false"),e.setAttribute("tabindex","-1"))}},{key:"toggleTabPanel",value:function(e,t){if(e){var n=this.isActive(e);"on"!==t||n||e.removeAttribute("hidden"),"off"===t&&n&&e.setAttribute("hidden","")}}},{key:"activateNthTab",value:function(e){var t=this;this.tabs.map(function(n,i){return i===e?(t.activeTabIndex=i,t.toggleTab(n,"on")):t.toggleTab(n,"off")}),this.tabPanels.map(function(n,i){return i===e?t.toggleTabPanel(n,"on"):t.toggleTabPanel(n,"off")})}},{key:"handleTabFocus",value:function(){this.rovingTabindex&&!this.rovingTabindex.isActive&&this.rovingTabindex.init()}}],[{key:"getInstance",value:function(e){return e&&e.ODS_Tabs?e.ODS_Tabs:null}}])}(),el=function(){return o(function e(t){i(this,e),this.element=t,this.children=null,this.updateHeight=this.updateHeight.bind(this),this.element.ODS_SameHeight=this,this.intervalId=null,this.init()},[{key:"temporarilyShowHiddenElements",value:function(){var e=this;this.originalDisplayStates=[],this.children.forEach(function(t){var n=t.closest('[role="tabpanel"]'),i=t.closest('[role="dialog"]');n&&n.hasAttribute("hidden")&&(e.originalDisplayStates.push({element:n,display:n.style.display}),n.style.display="block",n.removeAttribute("hidden")),i&&i.hasAttribute("aria-hidden")&&(e.originalDisplayStates.push({element:i,display:i.style.display}),i.style.display="block",i.removeAttribute("aria-hidden"))})}},{key:"restoreHiddenElements",value:function(){this.originalDisplayStates.forEach(function(e){var t=e.element,n=e.display;t.style.display=n,"tabpanel"===t.getAttribute("role")?t.setAttribute("hidden",!0):"dialog"===t.getAttribute("role")&&t.setAttribute("aria-hidden",!0)})}},{key:"getCarouselElement",value:function(){var e="[data-carousel], .".concat(ln);return this.element.matches(e)?this.element:this.element.closest(e)}},{key:"isInsideOrIsCarousel",value:function(){return this.getCarouselElement()}},{key:"getCarouselSlides",value:function(){var e=this.getCarouselElement();return e?e.querySelectorAll(".".concat(pn)):[]}},{key:"updateHeight",value:function(){this.temporarilyShowHiddenElements();var e=this.element.querySelectorAll('[data-same-height-child="true"]');e.forEach(function(e){e.style.height&&(e.style.height="")});for(var t=this.groupElementsByTypeAndPosition(e),n=this.isInsideOrIsCarousel(),i=0,r=Object.entries(t);i<r.length;i++){var o=d(r[i],2);o[0];var s=o[1];s.length&&this.groupElementsIntoRows(s,n).forEach(function(e){if(e.length>1){var t=Math.max.apply(Math,p(e.map(function(e){return e.offsetHeight})));e.forEach(function(e){e.style.height="".concat(t,"px")})}else e.forEach(function(e){e.style.height&&(e.style.height=null)})})}this.restoreHiddenElements()}},{key:"groupElementsIntoRows",value:function(e,t){if(t)return[e];var n,i=[],r=[],o=e[0].getBoundingClientRect().top,s=function(e){var t="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!t){if(Array.isArray(e)||(t=m(e))){t&&(e=t);var n=0,i=function(){};return{s:i,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:i}}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 r,o=!0,s=!1;return{s:function(){t=t.call(e)},n:function(){var e=t.next();return o=e.done,e},e:function(e){s=!0,r=e},f:function(){try{o||null==t.return||t.return()}finally{if(s)throw r}}}}(e);try{for(s.s();!(n=s.n()).done;){var a=n.value,l=a.getBoundingClientRect().top;l===o?r.push(a):(i.push(r),r=[a],o=l)}}catch(e){s.e(e)}finally{s.f()}return i.push(r),i}},{key:"groupElementsByTypeAndPosition",value:function(e){var t={};return e.forEach(function(e){var n=e.getAttribute("data-same-height-group")||"default";t[n]||(t[n]=[]),t[n].push(e)}),t}},{key:"init",value:function(){var e=this;this.children=this.element.querySelectorAll('[data-same-height-child="true"]');var t=[];this.children.forEach(function(e){e.querySelectorAll("img").forEach(function(e){e.complete||t.push(e)})});var n=this.isInsideOrIsCarousel(),i=function(){n?e.waitForCarouselThenUpdate(n):e.updateHeight()};0===t.length?i():this.waitForImagesToLoad(t,i),window.addEventListener("resize",this.updateHeight),n&&this.setupCarouselListeners(n)}},{key:"waitForCarouselThenUpdate",value:function(e){var t,n=this;null!==(t=e.ODS_Carousel)&&void 0!==t&&t.instance?requestAnimationFrame(function(){n.updateHeight()}):setTimeout(function(){return n.waitForCarouselThenUpdate(e)},50)}},{key:"waitForImagesToLoad",value:function(e,t){var n=this,i=0;this.intervalId=setInterval(function(){var r=!1;e.forEach(function(e,t,n){e.complete&&(n.splice(t,1),r=!0)}),r&&n.updateHeight&&t(),(++i>=15||0===e.length)&&(e.length&&n.updateHeight&&t(),window.clearInterval(n.intervalId))},400)}},{key:"setupCarouselListeners",value:function(e){var t,n=this;if(null!==(t=e.ODS_Carousel)&&void 0!==t&&t.instance){var i=e.ODS_Carousel.instance;["resize","update","slideChange"].forEach(function(e){i.on(e,function(){requestAnimationFrame(function(){n.updateHeight()})})})}else setTimeout(function(){return n.setupCarouselListeners(e)},50)}},{key:"update",value:function(){this.destroy(),this.init()}},{key:"destroy",value:function(){window.removeEventListener("resize",this.updateHeight),this.intervalId&&(clearInterval(this.intervalId),this.intervalId=null)}}],[{key:"getInstance",value:function(e){return(null==e?void 0:e.ODS_SameHeight)||null}}])}(),tl=[{Module:b,name:"Accordion",selector:"[data-accordion]"},{Module:w,name:"AnchorNavigation",selector:"[data-anchor-navigation]"},{Module:Hi,name:"Autocomplete",selector:"[data-autocomplete]"},{Module:So,name:"DatePicker",selector:"[data-datepicker]"},{Module:wi,name:"Dropdown",selector:"[data-dropdown]"},{Module:_i,name:"Expander",selector:"[data-expander]"},{Module:S,name:"BlockAction",selector:"[data-block-action]"},{Module:Ln,name:"Carousel",selector:"[data-carousel]"},{Module:ii,name:"CarouselHero",selector:"[data-carousel-hero]"},{Module:yi,name:"CarouselPromotions",selector:"[data-carousel-promotions]"},{Module:Bi,name:"FeatureAccordion",selector:"[data-feature-accordion]"},{Module:Cs,name:"File",selector:"[data-file-input]"},{Module:ka,name:"Loader",selector:"[data-loader]"},{Module:Xa,name:"Modal",selector:"[data-modal]"},{Module:el,name:"SameHeight",selector:"[data-same-height]"},{Module:Ea,name:"RangeSlider",selector:"[data-rangeslider]"},{Module:As,name:"InputStepper",selector:"[data-inputstepper]"},{Module:Ja,name:"Table",selector:"[data-table]"},{Module:Za,name:"Tabs",selector:"[data-tabs]"},{Module:xi,name:"Toggle",selector:"[data-toggle]"},{Module:an,name:"Tooltip",selector:"[data-tooltip]"}];window.ODS=window.ODS||{modules:{},instances:{},moduleSelectorPairs:{}},window.ODS.initModulesWithin=function(e){var t={};return window.ODS.moduleSelectorPairs.forEach(function(n){var i=on(n.name),r=Array.from(e.querySelectorAll(n.selector)),o="ODS_".concat(n.name),s=r.filter(function(e){return!e[o]});window&&window.ODS&&window.ODS.instances[i]&&(window.ODS.instances[i]=window.ODS.instances[i].filter(function(e){var t,n=document.contains(e.element);return n||null===(t=e.destroy)||void 0===t||t.call(e),n}),window.ODS.instances[i].forEach(function(e){s.forEach(function(t,n){t.isSameNode(e.element)&&s.splice(n,1)})})),s.length&&(Array.isArray(window.ODS.instances[i])||(window.ODS.instances[i]=[]),t[i]=s.map(function(e){return new n.Module(e)}),window.ODS.instances[i]=[].concat(p(window.ODS.instances[i]),p(t[i])))}),t},window.ODS.destroyModulesWithin=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n={};return Object.keys(window.ODS.instances).forEach(function(i){window.ODS.instances[i].forEach(function(r){"object"!==f(n[i])&&(n[i]=[]);var o,s=e.contains(r.element);"modal"===i?s=null===(o=r.instance)||void 0===o?void 0:o._openers.every(function(t){return e.contains(t)}):"tooltip"===i&&(s=e.contains(r.trigger)),s&&(r.destroy(),n[i].push(r)),s&&t&&["modal","tooltip"].includes(i)&&r.element.remove()}),window.ODS.instances[i]=window.ODS.instances[i].filter(function(e){return!n[i].includes(e)})}),n},window.ODS.moduleSelectorPairs=tl,window.addEventListener("DOMContentLoaded",function(){tl.forEach(function(e){window.ODS.modules[e.name]=e.Module,window.ODS.instances[on(e.name)]=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return Array.from(document.querySelectorAll(t)).map(function(t){return new e(t,n)})}(e.Module,e.selector)}),window.dispatchEvent(new Event("ODSLoaded"))});var nl,il={exports:{}},rl=(nl||(nl=1,window,il.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=37)}([function(e,t,n){var i=n(1),r=n(6),o=n(7),s=n(16),a=n(18),l="prototype",c=function(e,t,n){var u,d,p,h,f=e&c.F,m=e&c.G,v=e&c.S,g=e&c.P,y=e&c.B,b=m?i:v?i[t]||(i[t]={}):(i[t]||{})[l],w=m?r:r[t]||(r[t]={}),_=w[l]||(w[l]={});for(u in m&&(n=t),n)p=((d=!f&&b&&void 0!==b[u])?b:n)[u],h=y&&d?a(p,i):g&&"function"==typeof p?a(Function.call,p):p,b&&s(b,u,p,e&c.U),w[u]!=p&&o(w,u,h),g&&_[u]!=p&&(_[u]=p)};i.core=r,c.F=1,c.G=2,c.S=4,c.P=8,c.B=16,c.W=32,c.U=64,c.R=128,e.exports=c},function(e,t){var n=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},function(e,t,n){e.exports=!n(4)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},function(e,t,n){n.r(t),n.d(t,"h",function(){return a}),n.d(t,"createElement",function(){return a}),n.d(t,"cloneElement",function(){return u}),n.d(t,"Component",function(){return I}),n.d(t,"render",function(){return N}),n.d(t,"rerender",function(){return f}),n.d(t,"options",function(){return r});var i=function(){},r={},o=[],s=[];function a(e,t){var n,a,l,c,u=s;for(c=arguments.length;2<c--;)o.push(arguments[c]);for(t&&null!=t.children&&(o.length||o.push(t.children),delete t.children);o.length;)if((a=o.pop())&&void 0!==a.pop)for(c=a.length;c--;)o.push(a[c]);else"boolean"==typeof a&&(a=null),(l="function"!=typeof e)&&(null==a?a="":"number"==typeof a?a=String(a):"string"!=typeof a&&(l=!1)),l&&n?u[u.length-1]+=a:u===s?u=[a]:u.push(a),n=l;var d=new i;return d.nodeName=e,d.children=u,d.attributes=null==t?void 0:t,d.key=null==t?void 0:t.key,void 0!==r.vnode&&r.vnode(d),d}function l(e,t){for(var n in t)e[n]=t[n];return e}var c="function"==typeof Promise?Promise.resolve().then.bind(Promise.resolve()):setTimeout;function u(e,t){return a(e.nodeName,l(l({},e.attributes),t),2<arguments.length?[].slice.call(arguments,2):e.children)}var d=/acit|ex(?:s|g|n|p|$)|rph|ows|mnc|ntw|ine[ch]|zoo|^ord/i,p=[];function h(e){!e._dirty&&(e._dirty=!0)&&1==p.push(e)&&(r.debounceRendering||c)(f)}function f(){var e,t=p;for(p=[];e=t.pop();)e._dirty&&L(e)}function m(e,t){return e.normalizedNodeName===t||e.nodeName.toLowerCase()===t.toLowerCase()}function v(e){var t=l({},e.attributes);t.children=e.children;var n=e.nodeName.defaultProps;if(void 0!==n)for(var i in n)void 0===t[i]&&(t[i]=n[i]);return t}function g(e){var t=e.parentNode;t&&t.removeChild(e)}function y(e,t,n,i,r){if("className"===t&&(t="class"),"key"===t);else if("ref"===t)n&&n(null),i&&i(e);else if("class"!==t||r)if("style"===t){if(i&&"string"!=typeof i&&"string"!=typeof n||(e.style.cssText=i||""),i&&"object"==typeof i){if("string"!=typeof n)for(var o in n)o in i||(e.style[o]="");for(var o in i)e.style[o]="number"==typeof i[o]&&!1===d.test(o)?i[o]+"px":i[o]}}else if("dangerouslySetInnerHTML"===t)i&&(e.innerHTML=i.__html||"");else if("o"==t[0]&&"n"==t[1]){var s=t!==(t=t.replace(/Capture$/,""));t=t.toLowerCase().substring(2),i?n||e.addEventListener(t,b,s):e.removeEventListener(t,b,s),(e._listeners||(e._listeners={}))[t]=i}else if("list"!==t&&"type"!==t&&!r&&t in e){try{e[t]=null==i?"":i}catch(e){}null!=i&&!1!==i||"spellcheck"==t||e.removeAttribute(t)}else{var a=r&&t!==(t=t.replace(/^xlink:?/,""));null==i||!1===i?a?e.removeAttributeNS("http://www.w3.org/1999/xlink",t.toLowerCase()):e.removeAttribute(t):"function"!=typeof i&&(a?e.setAttributeNS("http://www.w3.org/1999/xlink",t.toLowerCase(),i):e.setAttribute(t,i))}else e.className=i||""}function b(e){return this._listeners[e.type](r.event&&r.event(e)||e)}var w=[],_=0,S=!1,E=!1;function x(){for(var e;e=w.pop();)r.afterMount&&r.afterMount(e),e.componentDidMount&&e.componentDidMount()}function k(e,t,n,i,r){var o=e,s=S;if(null!=t&&"boolean"!=typeof t||(t=""),"string"==typeof t||"number"==typeof t)return e&&void 0!==e.splitText&&e.parentNode&&(!e._component||r)?e.nodeValue!=t&&(e.nodeValue=t):(o=document.createTextNode(t),e&&(e.parentNode&&e.parentNode.replaceChild(o,e),C(e,!0))),o.__preactattr_=!0,o;var a=t.nodeName;if("function"==typeof a)return function(e,t,n,i){for(var r=e&&e._component,o=r,s=e,a=r&&e._componentConstructor===t.nodeName,l=a,c=v(t);r&&!l&&(r=r._parentComponent);)l=r.constructor===t.nodeName;return r&&l&&(!i||r._component)?(M(r,c,3,n,i),e=r.base):(o&&!a&&(P(o),e=s=null),r=O(t.nodeName,c,n),e&&!r.nextBase&&(r.nextBase=e,s=null),M(r,c,1,n,i),e=r.base,s&&e!==s&&(s._component=null,C(s,!1))),e}(e,t,n,i);if(S="svg"===a||"foreignObject"!==a&&S,a=String(a),(!e||!m(e,a))&&(o=function(e,t){var n=t?document.createElementNS("http://www.w3.org/2000/svg",e):document.createElement(e);return n.normalizedNodeName=e,n}(a,S),e)){for(;e.firstChild;)o.appendChild(e.firstChild);e.parentNode&&e.parentNode.replaceChild(o,e),C(e,!0)}var l=o.firstChild,c=o.__preactattr_,u=t.children;if(null==c){c=o.__preactattr_={};for(var d=o.attributes,p=d.length;p--;)c[d[p].name]=d[p].value}return!E&&u&&1===u.length&&"string"==typeof u[0]&&null!=l&&void 0!==l.splitText&&null==l.nextSibling?l.nodeValue!=u[0]&&(l.nodeValue=u[0]):(u&&u.length||null!=l)&&function(e,t,n,i,r){var o,s,a,l,c,u,d,p,h=e.childNodes,f=[],v={},y=0,b=0,w=h.length,_=0,S=t?t.length:0;if(0!==w)for(var E=0;E<w;E++){var x=h[E],T=x.__preactattr_;null!=(A=S&&T?x._component?x._component.__key:T.key:null)?(y++,v[A]=x):(T||(void 0!==x.splitText?!r||x.nodeValue.trim():r))&&(f[_++]=x)}if(0!==S)for(E=0;E<S;E++){var A;if(c=null,null!=(A=(l=t[E]).key))y&&void 0!==v[A]&&(c=v[A],v[A]=void 0,y--);else if(b<_)for(o=b;o<_;o++)if(void 0!==f[o]&&(u=s=f[o],p=r,"string"==typeof(d=l)||"number"==typeof d?void 0!==u.splitText:"string"==typeof d.nodeName?!u._componentConstructor&&m(u,d.nodeName):p||u._componentConstructor===d.nodeName)){c=s,f[o]=void 0,o===_-1&&_--,o===b&&b++;break}c=k(c,l,n,i),a=h[E],c&&c!==e&&c!==a&&(null==a?e.appendChild(c):c===a.nextSibling?g(a):e.insertBefore(c,a))}if(y)for(var E in v)void 0!==v[E]&&C(v[E],!1);for(;b<=_;)void 0!==(c=f[_--])&&C(c,!1)}(o,u,n,i,E||null!=c.dangerouslySetInnerHTML),function(e,t,n){var i;for(i in n)t&&null!=t[i]||null==n[i]||y(e,i,n[i],n[i]=void 0,S);for(i in t)"children"===i||"innerHTML"===i||i in n&&t[i]===("value"===i||"checked"===i?e[i]:n[i])||y(e,i,n[i],n[i]=t[i],S)}(o,t.attributes,c),S=s,o}function C(e,t){var n=e._component;n?P(n):(null!=e.__preactattr_&&e.__preactattr_.ref&&e.__preactattr_.ref(null),!1!==t&&null!=e.__preactattr_||g(e),T(e))}function T(e){for(e=e.lastChild;e;){var t=e.previousSibling;C(e,!0),e=t}}var A=[];function O(e,t,n){var i,r=A.length;for(e.prototype&&e.prototype.render?(i=new e(t,n),I.call(i,t,n)):((i=new I(t,n)).constructor=e,i.render=D);r--;)if(A[r].constructor===e)return i.nextBase=A[r].nextBase,A.splice(r,1),i;return i}function D(e,t,n){return this.constructor(e,n)}function M(e,t,n,i,o){e._disable||(e._disable=!0,e.__ref=t.ref,e.__key=t.key,delete t.ref,delete t.key,void 0===e.constructor.getDerivedStateFromProps&&(!e.base||o?e.componentWillMount&&e.componentWillMount():e.componentWillReceiveProps&&e.componentWillReceiveProps(t,i)),i&&i!==e.context&&(e.prevContext||(e.prevContext=e.context),e.context=i),e.prevProps||(e.prevProps=e.props),e.props=t,e._disable=!1,0!==n&&(1!==n&&!1===r.syncComponentUpdates&&e.base?h(e):L(e,1,o)),e.__ref&&e.__ref(e))}function L(e,t,n,i){if(!e._disable){var o,s,a,c=e.props,u=e.state,d=e.context,p=e.prevProps||c,h=e.prevState||u,f=e.prevContext||d,m=e.base,g=e.nextBase,y=m||g,b=e._component,T=!1,A=f;if(e.constructor.getDerivedStateFromProps&&(u=l(l({},u),e.constructor.getDerivedStateFromProps(c,u)),e.state=u),m&&(e.props=p,e.state=h,e.context=f,2!==t&&e.shouldComponentUpdate&&!1===e.shouldComponentUpdate(c,u,d)?T=!0:e.componentWillUpdate&&e.componentWillUpdate(c,u,d),e.props=c,e.state=u,e.context=d),e.prevProps=e.prevState=e.prevContext=e.nextBase=null,e._dirty=!1,!T){o=e.render(c,u,d),e.getChildContext&&(d=l(l({},d),e.getChildContext())),m&&e.getSnapshotBeforeUpdate&&(A=e.getSnapshotBeforeUpdate(p,h));var D,I,N=o&&o.nodeName;if("function"==typeof N){var R=v(o);(s=b)&&s.constructor===N&&R.key==s.__key?M(s,R,1,d,!1):(D=s,e._component=s=O(N,R,d),s.nextBase=s.nextBase||g,s._parentComponent=e,M(s,R,0,d,!1),L(s,1,n,!0)),I=s.base}else a=y,(D=b)&&(a=e._component=null),(y||1===t)&&(a&&(a._component=null),I=function(e,t,n,i,r,o){_++||(S=null!=r&&void 0!==r.ownerSVGElement,E=null!=e&&!("__preactattr_"in e));var s=k(e,t,n,i,o);return r&&s.parentNode!==r&&r.appendChild(s),--_||(E=!1),s}(a,o,d,n||!m,y&&y.parentNode,!0));if(y&&I!==y&&s!==b){var B=y.parentNode;B&&I!==B&&(B.replaceChild(I,y),D||(y._component=null,C(y,!1)))}if(D&&P(D),(e.base=I)&&!i){for(var z=e,H=e;H=H._parentComponent;)(z=H).base=I;I._component=z,I._componentConstructor=z.constructor}}for(!m||n?w.unshift(e):T||(e.componentDidUpdate&&e.componentDidUpdate(p,h,A),r.afterUpdate&&r.afterUpdate(e));e._renderCallbacks.length;)e._renderCallbacks.pop().call(e);_||i||x()}}function P(e){r.beforeUnmount&&r.beforeUnmount(e);var t=e.base;e._disable=!0,e.componentWillUnmount&&e.componentWillUnmount(),e.base=null;var n=e._component;n?P(n):t&&(t.__preactattr_&&t.__preactattr_.ref&&t.__preactattr_.ref(null),g(e.nextBase=t),A.push(e),T(t)),e.__ref&&e.__ref(null)}function I(e,t){this._dirty=!0,this.context=t,this.props=e,this.state=this.state||{},this._renderCallbacks=[]}function N(e,t,n){return function(e,t,n,i,r,o){_++||(S=null!=r&&void 0!==r.ownerSVGElement,E=null!=e&&!("__preactattr_"in e));var s=k(e,t,n,i,o);return r&&s.parentNode!==r&&r.appendChild(s),--_||(E=!1,x()),s}(n,e,{},!1,t,!1)}l(I.prototype,{setState:function(e,t){this.prevState||(this.prevState=this.state),this.state=l(l({},this.state),"function"==typeof e?e(this.state,this.props):e),t&&this._renderCallbacks.push(t),h(this)},forceUpdate:function(e){e&&this._renderCallbacks.push(e),L(this,2)},render:function(){}});var R={h:a,createElement:a,cloneElement:u,Component:I,render:N,rerender:f,options:r};t.default=R},function(e,t){var n=e.exports={version:"2.5.7"};"number"==typeof __e&&(__e=n)},function(e,t,n){var i=n(8),r=n(40);e.exports=n(3)?function(e,t,n){return i.f(e,t,r(1,n))}:function(e,t,n){return e[t]=n,e}},function(e,t,n){var i=n(9),r=n(38),o=n(39),s=Object.defineProperty;t.f=n(3)?Object.defineProperty:function(e,t,n){if(i(e),t=o(t,!0),i(n),r)try{return s(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(e[t]=n.value),e}},function(e,t,n){var i=n(2);e.exports=function(e){if(!i(e))throw TypeError(e+" is not an object!");return e}},function(e,t){var n=0,i=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++n+i).toString(36))}},function(e,t,n){var i=n(22);e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==i(e)?e.split(""):Object(e)}},function(e,t){e.exports=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e}},function(e,t,n){var i=n(4);e.exports=function(e,t){return!!e&&i(function(){t?e.call(null,function(){},1):e.call(null)})}},function(e,t,n){var i=n(0);i(i.S+i.F,"Object",{assign:n(41)})},function(e,t,n){var i=n(2),r=n(1).document,o=i(r)&&i(r.createElement);e.exports=function(e){return o?r.createElement(e):{}}},function(e,t,n){var i=n(1),r=n(7),o=n(17),s=n(10)("src"),a="toString",l=Function[a],c=(""+l).split(a);n(6).inspectSource=function(e){return l.call(e)},(e.exports=function(e,t,n,a){var l="function"==typeof n;l&&(o(n,"name")||r(n,"name",t)),e[t]!==n&&(l&&(o(n,s)||r(n,s,e[t]?""+e[t]:c.join(String(t)))),e===i?e[t]=n:a?e[t]?e[t]=n:r(e,t,n):(delete e[t],r(e,t,n)))})(Function.prototype,a,function(){return"function"==typeof this&&this[s]||l.call(this)})},function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},function(e,t,n){var i=n(19);e.exports=function(e,t,n){if(i(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,i){return e.call(t,n,i)};case 3:return function(n,i,r){return e.call(t,n,i,r)}}return function(){return e.apply(t,arguments)}}},function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},function(e,t,n){var i=n(42),r=n(28);e.exports=Object.keys||function(e){return i(e,r)}},function(e,t,n){var i=n(11),r=n(12);e.exports=function(e){return i(r(e))}},function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},function(e,t,n){var i=n(21),r=n(24),o=n(43);e.exports=function(e){return function(t,n,s){var a,l=i(t),c=r(l.length),u=o(s,c);if(e&&n!=n){for(;u<c;)if((a=l[u++])!=a)return!0}else for(;u<c;u++)if((e||u in l)&&l[u]===n)return e||u||0;return!e&&-1}}},function(e,t,n){var i=n(25),r=Math.min;e.exports=function(e){return 0<e?r(i(e),9007199254740991):0}},function(e,t){var n=Math.ceil,i=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(0<e?i:n)(e)}},function(e,t,n){var i=n(27)("keys"),r=n(10);e.exports=function(e){return i[e]||(i[e]=r(e))}},function(e,t,n){var i=n(6),r=n(1),o="__core-js_shared__",s=r[o]||(r[o]={});(e.exports=function(e,t){return s[e]||(s[e]=void 0!==t?t:{})})("versions",[]).push({version:i.version,mode:n(44)?"pure":"global",copyright:"© 2018 Denis Pushkarev (zloirock.ru)"})},function(e,t){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(e,t,n){var i=n(12);e.exports=function(e){return Object(i(e))}},function(e,t,n){var i=n(8).f,r=Function.prototype,o=/^\s*function ([^ (]*)/;"name"in r||n(3)&&i(r,"name",{configurable:!0,get:function(){try{return(""+this).match(o)[1]}catch(e){return""}}})},function(e,t,n){var i=n(0),r=n(32)(1);i(i.P+i.F*!n(13)([].map,!0),"Array",{map:function(e){return r(this,e,arguments[1])}})},function(e,t,n){var i=n(18),r=n(11),o=n(29),s=n(24),a=n(47);e.exports=function(e,t){var n=1==e,l=2==e,c=3==e,u=4==e,d=6==e,p=5==e||d,h=t||a;return function(t,a,f){for(var m,v,g=o(t),y=r(g),b=i(a,f,3),w=s(y.length),_=0,S=n?h(t,w):l?h(t,0):void 0;_<w;_++)if((p||_ in y)&&(v=b(m=y[_],_,g),e))if(n)S[_]=v;else if(v)switch(e){case 3:return!0;case 5:return m;case 6:return _;case 2:S.push(m)}else if(u)return!1;return d?-1:c||u?u:S}}},function(e,t,n){var i=n(22);e.exports=Array.isArray||function(e){return"Array"==i(e)}},function(e,t,n){var i=n(27)("wks"),r=n(10),o=n(1).Symbol,s="function"==typeof o;(e.exports=function(e){return i[e]||(i[e]=s&&o[e]||(s?o:r)("Symbol."+e))}).store=i},function(e,t,n){var i=n(0),r=n(23)(!1),o=[].indexOf,s=!!o&&1/[1].indexOf(1,-0)<0;i(i.P+i.F*(s||!n(13)(o)),"Array",{indexOf:function(e){return s?o.apply(this,arguments)||0:r(this,e,arguments[1])}})},function(e,t,n){var i=n(0);i(i.S,"Object",{create:n(52)})},function(e,t,n){t.__esModule=!0,t.default=void 0,n(14),n(30),n(31),n(35),n(49),n(50);var i=n(5),r=function(e){return e&&e.__esModule?e:{default:e}}(n(51));function o(e){if(!e.element)throw new Error("element is not defined");if(!e.id)throw new Error("id is not defined");if(!e.source)throw new Error("source is not defined");Array.isArray(e.source)&&(e.source=s(e.source)),(0,i.render)((0,i.createElement)(r.default,e),e.element)}var s=function(e){return function(t,n){n(e.filter(function(e){return-1!==e.toLowerCase().indexOf(t.toLowerCase())}))}};o.enhanceSelectElement=function(e){if(!e.selectElement)throw new Error("selectElement is not defined");if(!e.source){var t=[].filter.call(e.selectElement.options,function(t){return t.value||e.preserveNullOptions});e.source=t.map(function(e){return e.textContent||e.innerText})}if(e.onConfirm=e.onConfirm||function(t){var n=[].filter.call(e.selectElement.options,function(e){return(e.textContent||e.innerText)===t})[0];n&&(n.selected=!0)},e.selectElement.value||void 0===e.defaultValue){var n=e.selectElement.options.selectedIndex,i=0<=n?e.selectElement.options[n]:null;e.defaultValue=i?i.textContent||i.innerText:""}if(void 0===e.name&&(e.name=""),void 0===e.id&&(void 0===e.selectElement.id?e.id="":e.id=e.selectElement.id),void 0===e.autoselect&&(e.autoselect=!0),void 0===e.autocomplete){var r=e.selectElement.getAttribute("autocomplete");null!==r&&(e.autocomplete=r)}var s=document.createElement("div");e.selectElement.parentNode.insertBefore(s,e.selectElement),o(Object.assign({},e,{element:s})),e.selectElement.style.display="none",e.selectElement.id=e.selectElement.id+"-select"};var a=o;t.default=a},function(e,t,n){e.exports=!n(3)&&!n(4)(function(){return 7!=Object.defineProperty(n(15)("div"),"a",{get:function(){return 7}}).a})},function(e,t,n){var i=n(2);e.exports=function(e,t){if(!i(e))return e;var n,r;if(t&&"function"==typeof(n=e.toString)&&!i(r=n.call(e)))return r;if("function"==typeof(n=e.valueOf)&&!i(r=n.call(e)))return r;if(!t&&"function"==typeof(n=e.toString)&&!i(r=n.call(e)))return r;throw TypeError("Can't convert object to primitive value")}},function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e,t,n){var i=n(20),r=n(45),o=n(46),s=n(29),a=n(11),l=Object.assign;e.exports=!l||n(4)(function(){var e={},t={},n=Symbol(),i="abcdefghijklmnopqrst";return e[n]=7,i.split("").forEach(function(e){t[e]=e}),7!=l({},e)[n]||Object.keys(l({},t)).join("")!=i})?function(e,t){for(var n=s(e),l=arguments.length,c=1,u=r.f,d=o.f;c<l;)for(var p,h=a(arguments[c++]),f=u?i(h).concat(u(h)):i(h),m=f.length,v=0;v<m;)d.call(h,p=f[v++])&&(n[p]=h[p]);return n}:l},function(e,t,n){var i=n(17),r=n(21),o=n(23)(!1),s=n(26)("IE_PROTO");e.exports=function(e,t){var n,a=r(e),l=0,c=[];for(n in a)n!=s&&i(a,n)&&c.push(n);for(;t.length>l;)i(a,n=t[l++])&&(~o(c,n)||c.push(n));return c}},function(e,t,n){var i=n(25),r=Math.max,o=Math.min;e.exports=function(e,t){return(e=i(e))<0?r(e+t,0):o(e,t)}},function(e,t){e.exports=!1},function(e,t){t.f=Object.getOwnPropertySymbols},function(e,t){t.f={}.propertyIsEnumerable},function(e,t,n){var i=n(48);e.exports=function(e,t){return new(i(e))(t)}},function(e,t,n){var i=n(2),r=n(33),o=n(34)("species");e.exports=function(e){var t;return r(e)&&("function"!=typeof(t=e.constructor)||t!==Array&&!r(t.prototype)||(t=void 0),i(t)&&null===(t=t[o])&&(t=void 0)),void 0===t?Array:t}},function(e,t,n){var i=n(0),r=n(32)(2);i(i.P+i.F*!n(13)([].filter,!0),"Array",{filter:function(e){return r(this,e,arguments[1])}})},function(e,t,n){var i=n(0);i(i.S,"Array",{isArray:n(33)})},function(e,t,n){t.__esModule=!0,t.default=void 0,n(14),n(36),n(30),n(31),n(35),n(55),n(58);var i=n(5),r=s(n(60)),o=s(n(61));function s(e){return e&&e.__esModule?e:{default:e}}function a(){return(a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function l(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var c={13:"enter",27:"escape",32:"space",38:"up",40:"down"};function u(){return"undefined"!=typeof navigator&&!(!navigator.userAgent.match(/(iPod|iPhone|iPad)/g)||!navigator.userAgent.match(/AppleWebKit/g))}var d=function(e){function t(t){var n;return(n=e.call(this,t)||this).elementReferences={},n.state={focused:null,hovered:null,menuOpen:!1,options:t.defaultValue?[t.defaultValue]:[],query:t.defaultValue,validChoiceMade:!1,selected:null,ariaHint:!0,searchOnInteraction:!0},n.handleComponentBlur=n.handleComponentBlur.bind(l(l(n))),n.handleKeyDown=n.handleKeyDown.bind(l(l(n))),n.handleUpArrow=n.handleUpArrow.bind(l(l(n))),n.handleDownArrow=n.handleDownArrow.bind(l(l(n))),n.handleEnter=n.handleEnter.bind(l(l(n))),n.handlePrintableKey=n.handlePrintableKey.bind(l(l(n))),n.handleListMouseLeave=n.handleListMouseLeave.bind(l(l(n))),n.handleOptionBlur=n.handleOptionBlur.bind(l(l(n))),n.handleOptionClick=n.handleOptionClick.bind(l(l(n))),n.handleOptionFocus=n.handleOptionFocus.bind(l(l(n))),n.handleOptionMouseDown=n.handleOptionMouseDown.bind(l(l(n))),n.handleOptionMouseEnter=n.handleOptionMouseEnter.bind(l(l(n))),n.handleInputBlur=n.handleInputBlur.bind(l(l(n))),n.handleInputChange=n.handleInputChange.bind(l(l(n))),n.handleInputFocus=n.handleInputFocus.bind(l(l(n))),n.pollInputElement=n.pollInputElement.bind(l(l(n))),n.getDirectInputChanges=n.getDirectInputChanges.bind(l(l(n))),n}!function(e,t){e.prototype=Object.create(t.prototype),(e.prototype.constructor=e).__proto__=t}(t,e);var n=t.prototype;return n.isQueryAnOption=function(e,t){var n=this;return-1!==t.map(function(e){return n.templateInputValue(e).toLowerCase()}).indexOf(e.toLowerCase())},n.componentDidMount=function(){this.pollInputElement()},n.componentWillUnmount=function(){clearTimeout(this.$pollInput)},n.pollInputElement=function(){var e=this;this.getDirectInputChanges(),this.$pollInput=setTimeout(function(){e.pollInputElement()},100)},n.getDirectInputChanges=function(){var e=this.elementReferences[-1];e&&e.value!==this.state.query&&this.handleInputChange({target:{value:e.value}})},n.componentDidUpdate=function(e,t){var n=this.state.focused,i=null===n,r=t.focused!==n;r&&!i&&this.elementReferences[n].focus();var o=-1===n,s=r&&null===t.focused;if(o&&s){var a=this.elementReferences[n];a.setSelectionRange(0,a.value.length)}},n.hasAutoselect=function(){return this.props.autoselect},n.templateInputValue=function(e){var t=this.props.templates&&this.props.templates.inputValue;return t?t(e):e},n.templateSuggestion=function(e){var t=this.props.templates&&this.props.templates.suggestion;return t?t(e):e},n.handleComponentBlur=function(e){var t,n=this.state,i=n.options,r=n.query,o=n.selected;this.props.confirmOnBlur?(t=e.query||r,this.props.onConfirm(i[o])):t=r,this.setState({focused:null,menuOpen:e.menuOpen||!1,query:t,selected:null,validChoiceMade:this.isQueryAnOption(t,i)})},n.handleListMouseLeave=function(e){this.setState({hovered:null})},n.handleOptionBlur=function(e,t){var n=this.state,i=n.focused,r=n.menuOpen,o=n.options,s=n.selected,a=null===e.relatedTarget,l=e.relatedTarget===this.elementReferences[-1],c=i!==t&&-1!==i;if(!c&&a||!c&&!l){var d=r&&u()&&!this.hasAutoselect();this.handleComponentBlur({menuOpen:d,query:this.templateInputValue(o[s])})}},n.handleInputBlur=function(e){var t=this.state,n=t.focused,i=t.menuOpen,r=t.options,o=t.query,s=t.selected,a=0<=n;if(u()&&!e.relatedTarget&&!a&&this.hasAutoselect()){var l=this.templateInputValue(r[s]);this.handleComponentBlur({menuOpen:!1,query:l})}else if(!a){var c=i&&u(),d=u()?o:this.templateInputValue(r[s]);this.handleComponentBlur({menuOpen:c,query:d})}},n.handleInputChange=function(e){var t=this,n=this.props,i=n.minLength,r=n.source,o=n.showAllValues,s=this.state.searchOnInteraction,a=this.hasAutoselect(),l=e.target.value,c=0===l.length,u=s||this.state.query.length!==l.length,d=l.length>=i;this.setState({query:l,ariaHint:c,searchOnInteraction:!0}),o||!c&&u&&d?r(l,function(e){var n=0<e.length;t.setState(function(t){return{menuOpen:n&&null!==t.focused,options:e,selected:a&&n?0:-1,validChoiceMade:!1}})}):!c&&d||this.setState({menuOpen:!1,options:[]})},n.handleInputClick=function(e){this.handleInputChange(e)},n.handleInputFocus=function(e){var t=this.state,n=t.query,i=t.validChoiceMade,r=t.options,o=this.props.minLength,s=!i&&n.length>=o&&0<r.length;s?this.setState(function(e){var t=e.menuOpen;return{focused:-1,menuOpen:s||t,selected:-1}}):this.setState({focused:-1}),e&&this.handleInputChange(e)},n.handleOptionFocus=function(e){this.setState({focused:e,hovered:null,selected:e,searchOnInteraction:-1!==e})},n.handleOptionMouseEnter=function(e,t){u()||this.setState({hovered:t})},n.handleOptionClick=function(e,t){var n=this.state.options[t],i=this.templateInputValue(n);this.props.onConfirm(n),this.setState({focused:-1,hovered:null,menuOpen:!1,query:i,selected:-1,validChoiceMade:!0}),this.forceUpdate()},n.handleOptionMouseDown=function(e){e.preventDefault()},n.handleUpArrow=function(e){e.preventDefault();var t=this.state,n=t.menuOpen,i=t.selected;-1!==i&&n&&this.handleOptionFocus(i-1)},n.handleDownArrow=function(e){var t=this;if(e.preventDefault(),this.props.showAllValues&&!1===this.state.menuOpen)e.preventDefault(),this.props.source("",function(e){t.setState({menuOpen:!0,options:e,selected:0,focused:0,hovered:null})});else if(!0===this.state.menuOpen){var n=this.state,i=n.menuOpen,r=n.options,o=n.selected;o!==r.length-1&&i&&this.handleOptionFocus(o+1)}},n.handleSpace=function(e){var t=this;this.props.showAllValues&&!1===this.state.menuOpen&&""===this.state.query&&(e.preventDefault(),this.props.source("",function(e){t.setState({menuOpen:!0,options:e})})),-1!==this.state.focused&&(e.preventDefault(),this.handleOptionClick(e,this.state.focused))},n.handleEnter=function(e){this.state.menuOpen&&(e.preventDefault(),0<=this.state.selected&&this.handleOptionClick(e,this.state.selected))},n.handlePrintableKey=function(e){var t=this.elementReferences[-1];e.target===t||t.focus()},n.handleKeyDown=function(e){switch(c[e.keyCode]){case"up":this.handleUpArrow(e);break;case"down":this.handleDownArrow(e);break;case"space":this.handleSpace(e);break;case"enter":this.handleEnter(e);break;case"escape":this.handleComponentBlur({query:this.state.query});break;default:(function(e){return 47<e&&e<58||32===e||8===e||64<e&&e<91||95<e&&e<112||185<e&&e<193||218<e&&e<223})(e.keyCode)&&this.handlePrintableKey(e)}},n.render=function(){var e,t=this,n=this.props,o=n.cssNamespace,s=n.customInputClassName,l=n.wrapperClassName,c=n.optionClassName,d=n.menuClassName,p=n.displayMenu,h=n.enterKeyHint,f=n.autocomplete,m=n.id,v=n.minLength,g=n.name,y=n.placeholder,b=n.required,w=n.showAllValues,_=n.tNoResults,S=n.tStatusQueryTooShort,E=n.tStatusNoResults,x=n.tStatusSelectedOption,k=n.tStatusResults,C=n.tAssistiveHint,T=n.dropdownArrow,A=this.state,O=A.focused,D=A.hovered,M=A.menuOpen,L=A.options,P=A.query,I=A.selected,N=A.ariaHint,R=A.validChoiceMade,B=this.hasAutoselect(),z=-1===O,H=0===L.length,F=0!==P.length,V=P.length>=v,j=this.props.showNoOptionsFound&&z&&H&&F&&V,q=o+"__wrapper"+(l?" "+l:""),U=o+"__input",$=null!==O?" "+U+"--focused":"",G=this.props.showAllValues?" "+U+"--show-all-values":" "+U+"--default",W=o+"__dropdown-arrow-down",Y=-1!==O&&null!==O,X=o+"__menu",K=X+"--"+p,J=X+"--"+(M||j?"visible":"hidden"),Q=o+"__option",Z=o+"__hint",ee=this.templateInputValue(L[I]),te=ee&&0===ee.toLowerCase().indexOf(P.toLowerCase())&&B?P+ee.substr(P.length):"",ne=m+"__assistiveHint",ie=N?{"aria-describedby":ne}:null;return w&&"string"==typeof(e=T({className:W}))&&(e=(0,i.createElement)("div",{className:o+"__dropdown-arrow-down-wrapper",dangerouslySetInnerHTML:{__html:e}})),(0,i.createElement)("div",{className:q,onKeyDown:this.handleKeyDown},(0,i.createElement)(r.default,{id:m,length:L.length,queryLength:P.length,minQueryLength:v,selectedOption:this.templateInputValue(L[I]),selectedOptionIndex:I,validChoiceMade:R,isInFocus:null!==this.state.focused,tQueryTooShort:S,tNoResults:E,tSelectedOption:x,tResults:k}),te&&(0,i.createElement)("span",null,(0,i.createElement)("input",{className:Z,readonly:!0,tabIndex:"-1",value:te})),(0,i.createElement)("input",a({enterkeyhint:h||(u()&&this.hasAutoselect()?"done":""),"aria-expanded":M?"true":"false","aria-activedescendant":!!Y&&m+"__option--"+O,"aria-owns":m+"__listbox","aria-autocomplete":this.hasAutoselect()?"both":"list"},ie,{autoComplete:f,className:""+U+$+G+(s?" "+s:""),id:m,onClick:function(e){return t.handleInputClick(e)},onBlur:this.handleInputBlur},function(e){return{onInput:e}}(this.handleInputChange),{onFocus:this.handleInputFocus,name:g,placeholder:y,ref:function(e){t.elementReferences[-1]=e},type:"text",role:"combobox",required:b,value:P})),e,(0,i.createElement)("ul",{className:X+" "+K+" "+J+(d?" "+d:""),onMouseLeave:function(e){return t.handleListMouseLeave(e)},id:m+"__listbox",role:"listbox"},L.map(function(e,n){var r=(-1===O?I===n:O===n)&&null===D?" "+Q+"--focused":"",o=n%2?" "+Q+"--odd":"",s=u()?"<span id="+m+"__option-suffix--"+n+' style="border:0;clip:rect(0 0 0 0);height:1px;marginBottom:-1px;marginRight:-1px;overflow:hidden;padding:0;position:absolute;whiteSpace:nowrap;width:1px"> '+(n+1)+" of "+L.length+"</span>":"";return(0,i.createElement)("li",{"aria-selected":O===n?"true":"false",className:""+Q+r+o+(c?" "+c:""),dangerouslySetInnerHTML:{__html:t.templateSuggestion(e)+s},id:m+"__option--"+n,key:n,onBlur:function(e){return t.handleOptionBlur(e,n)},onClick:function(e){return t.handleOptionClick(e,n)},onMouseDown:t.handleOptionMouseDown,onMouseEnter:function(e){return t.handleOptionMouseEnter(e,n)},ref:function(e){t.elementReferences[n]=e},role:"option",tabIndex:"-1","aria-posinset":n+1,"aria-setsize":L.length})}),j&&(0,i.createElement)("li",{className:Q+(c?" "+c:"")+" "+Q+"--no-results"},_())),(0,i.createElement)("span",{id:ne,style:{display:"none"}},C()))},t}(i.Component);(t.default=d).defaultProps={autoselect:!1,cssNamespace:"autocomplete",wrapperClassName:"",customInputClassName:"",menuClassName:"",optionClassName:"",defaultValue:"",displayMenu:"inline",minLength:0,name:"input-autocomplete",autocomplete:"off",placeholder:"",onConfirm:function(){},confirmOnBlur:!0,showNoOptionsFound:!0,showAllValues:!1,required:!1,tNoResults:function(){return"No results found"},tAssistiveHint:function(){return"When autocomplete results are available use up and down arrows to review and enter to select. Touch device users, explore by touch or with swipe gestures."},dropdownArrow:o.default}},function(e,t,n){var i=n(9),r=n(53),o=n(28),s=n(26)("IE_PROTO"),a=function(){},l="prototype",c=function(){var e,t=n(15)("iframe"),i=o.length;for(t.style.display="none",n(54).appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write("<script>document.F=Object<\/script>"),e.close(),c=e.F;i--;)delete c[l][o[i]];return c()};e.exports=Object.create||function(e,t){var n;return null!==e?(a[l]=i(e),n=new a,a[l]=null,n[s]=e):n=c(),void 0===t?n:r(n,t)}},function(e,t,n){var i=n(8),r=n(9),o=n(20);e.exports=n(3)?Object.defineProperties:function(e,t){r(e);for(var n,s=o(t),a=s.length,l=0;l<a;)i.f(e,n=s[l++],t[n]);return e}},function(e,t,n){var i=n(1).document;e.exports=i&&i.documentElement},function(e,t,n){var i=n(0);i(i.P,"Function",{bind:n(56)})},function(e,t,n){var i=n(19),r=n(2),o=n(57),s=[].slice,a={};e.exports=Function.bind||function(e){var t=i(this),n=s.call(arguments,1),l=function(){var i=n.concat(s.call(arguments));return this instanceof l?function(e,t,n){if(!(t in a)){for(var i=[],r=0;r<t;r++)i[r]="a["+r+"]";a[t]=Function("F,a","return new F("+i.join(",")+")")}return a[t](e,n)}(t,i.length,i):o(t,i,e)};return r(t.prototype)&&(l.prototype=t.prototype),l}},function(e,t){e.exports=function(e,t,n){var i=void 0===n;switch(t.length){case 0:return i?e():e.call(n);case 1:return i?e(t[0]):e.call(n,t[0]);case 2:return i?e(t[0],t[1]):e.call(n,t[0],t[1]);case 3:return i?e(t[0],t[1],t[2]):e.call(n,t[0],t[1],t[2]);case 4:return i?e(t[0],t[1],t[2],t[3]):e.call(n,t[0],t[1],t[2],t[3])}return e.apply(n,t)}},function(e,t,n){n(59)("match",1,function(e,t,n){return[function(n){var i=e(this),r=null==n?void 0:n[t];return void 0!==r?r.call(n,i):new RegExp(n)[t](String(i))},n]})},function(e,t,n){var i=n(7),r=n(16),o=n(4),s=n(12),a=n(34);e.exports=function(e,t,n){var l=a(e),c=n(s,l,""[e]),u=c[0],d=c[1];o(function(){var t={};return t[l]=function(){return 7},7!=""[e](t)})&&(r(String.prototype,e,u),i(RegExp.prototype,l,2==t?function(e,t){return d.call(e,this,t)}:function(e){return d.call(e,this)}))}},function(e,t,n){t.__esModule=!0,t.default=void 0,n(36);var i=n(5),r=function(e){function t(){for(var t,n=arguments.length,i=new Array(n),r=0;r<n;r++)i[r]=arguments[r];return(t=e.call.apply(e,[this].concat(i))||this).state={bump:!1,debounced:!1},t}!function(e,t){e.prototype=Object.create(t.prototype),(e.prototype.constructor=e).__proto__=t}(t,e);var n=t.prototype;return n.componentWillMount=function(){var e=this;this.debounceStatusUpdate=function(e,t){var n;return function(){var i=this,r=arguments;clearTimeout(n),n=setTimeout(function(){n=null,e.apply(i,r)},t)}}(function(){if(!e.state.debounced){var t=!e.props.isInFocus||e.props.validChoiceMade;e.setState(function(e){return{bump:!e.bump,debounced:!0,silenced:t}})}},1400)},n.componentWillReceiveProps=function(e){e.queryLength,this.setState({debounced:!1})},n.render=function(){var e,t=this.props,n=t.id,r=t.length,o=t.queryLength,s=t.minQueryLength,a=t.selectedOption,l=t.selectedOptionIndex,c=t.tQueryTooShort,u=t.tNoResults,d=t.tSelectedOption,p=t.tResults,h=this.state,f=h.bump,m=h.debounced,v=h.silenced,g=o<s,y=0===r,b=a?d(a,r,l):"";return e=g?c(s):y?u():p(r,b),this.debounceStatusUpdate(),(0,i.createElement)("div",{style:{border:"0",clip:"rect(0 0 0 0)",height:"1px",marginBottom:"-1px",marginRight:"-1px",overflow:"hidden",padding:"0",position:"absolute",whiteSpace:"nowrap",width:"1px"}},(0,i.createElement)("div",{id:n+"__status--A",role:"status","aria-atomic":"true","aria-live":"polite"},!v&&m&&f?e:""),(0,i.createElement)("div",{id:n+"__status--B",role:"status","aria-atomic":"true","aria-live":"polite"},v||!m||f?"":e))},t}(i.Component);(t.default=r).defaultProps={tQueryTooShort:function(e){return"Type in "+e+" or more characters for results"},tNoResults:function(){return"No search results"},tSelectedOption:function(e,t,n){return e+" "+(n+1)+" of "+t+" is highlighted"},tResults:function(e,t){return e+" "+(1===e?"result":"results")+" "+(1===e?"is":"are")+" available. "+t}}},function(e,t,n){t.__esModule=!0,t.default=void 0;var i=n(5);t.default=function(e){var t=e.className;return(0,i.createElement)("svg",{version:"1.1",xmlns:"http://www.w3.org/2000/svg",className:t,focusable:"false"},(0,i.createElement)("g",{stroke:"none",fill:"none","fill-rule":"evenodd"},(0,i.createElement)("polygon",{fill:"#000000",points:"0 0 22 0 11 17"})))}}]).default),il.exports),ol=e({__proto__:null,default:Zt(rl)},[rl]);export{tl as moduleSelectorPairs};
|
|
1
|
+
function e(e,t){return t.forEach(function(t){t&&"string"!=typeof t&&!Array.isArray(t)&&Object.keys(t).forEach(function(n){if("default"!==n&&!(n in e)){var i=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,i.get?i:{enumerable:!0,get:function(){return t[n]}})}})}),Object.freeze(e)}function t(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=Array(t);n<t;n++)i[n]=e[n];return i}function n(e,t,n,i,r,s,o){try{var a=e[s](o),l=a.value}catch(e){return void n(e)}a.done?t(l):Promise.resolve(l).then(i,r)}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(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,h(i.key),i)}}function s(e,t,n){return t&&r(e.prototype,t),n&&r(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function o(e,t,n){return(t=h(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function a(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 l(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?a(Object(n),!0).forEach(function(t){o(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function c(){var e,t,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",r=n.toStringTag||"@@toStringTag";function s(n,i,r,s){var l=i&&i.prototype instanceof a?i:a,c=Object.create(l.prototype);return u(c,"_invoke",function(n,i,r){var s,a,l,c=0,u=r||[],d=!1,p={p:0,n:0,v:e,a:h,f:h.bind(e,4),d:function(t,n){return s=t,a=0,l=e,p.n=n,o}};function h(n,i){for(a=n,l=i,t=0;!d&&c&&!r&&t<u.length;t++){var r,s=u[t],h=p.p,f=s[2];n>3?(r=f===i)&&(l=s[(a=s[4])?5:(a=3,3)],s[4]=s[5]=e):s[0]<=h&&((r=n<2&&h<s[1])?(a=0,p.v=i,p.n=s[1]):h<f&&(r=n<3||s[0]>i||i>f)&&(s[4]=n,s[5]=i,p.n=f,a=0))}if(r||n>1)return o;throw d=!0,i}return function(r,u,f){if(c>1)throw TypeError("Generator is already running");for(d&&1===u&&h(u,f),a=u,l=f;(t=a<2?e:l)||!d;){s||(a?a<3?(a>1&&(p.n=-1),h(a,l)):p.n=l:p.v=l);try{if(c=2,s){if(a||(r="next"),t=s[r]){if(!(t=t.call(s,l)))throw TypeError("iterator result is not an object");if(!t.done)return t;l=t.value,a<2&&(a=0)}else 1===a&&(t=s.return)&&t.call(s),a<2&&(l=TypeError("The iterator does not provide a '"+r+"' method"),a=1);s=e}else if((t=(d=p.n<0)?l:n.call(i,p))!==o)break}catch(t){s=e,a=1,l=t}finally{c=1}}return{value:t,done:d}}}(n,r,s),!0),c}var o={};function a(){}function l(){}function d(){}t=Object.getPrototypeOf;var p=[][i]?t(t([][i]())):(u(t={},i,function(){return this}),t),h=d.prototype=a.prototype=Object.create(p);function f(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,d):(e.__proto__=d,u(e,r,"GeneratorFunction")),e.prototype=Object.create(h),e}return l.prototype=d,u(h,"constructor",d),u(d,"constructor",l),l.displayName="GeneratorFunction",u(d,r,"GeneratorFunction"),u(h),u(h,r,"Generator"),u(h,i,function(){return this}),u(h,"toString",function(){return"[object Generator]"}),(c=function(){return{w:s,m:f}})()}function u(e,t,n,i){var r=Object.defineProperty;try{r({},"",{})}catch(e){r=0}u=function(e,t,n,i){function s(t,n){u(e,t,function(e){return this._invoke(t,n,e)})}t?r?r(e,t,{value:n,enumerable:!i,configurable:!i,writable:!i}):e[t]=n:(s("next",0),s("throw",1),s("return",2))},u(e,t,n,i)}function d(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i,r,s,o,a=[],l=!0,c=!1;try{if(s=(n=n.call(e)).next,0===t);else for(;!(l=(i=s.call(n)).done)&&(a.push(i.value),a.length!==t);l=!0);}catch(e){c=!0,r=e}finally{try{if(!l&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(c)throw r}}return a}}(e,t)||m(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function p(e){return function(e){if(Array.isArray(e))return t(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||m(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){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t);if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==typeof t?t:t+""}function f(e){return f="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},f(e)}function m(e,n){if(e){if("string"==typeof e)return t(e,n);var i={}.toString.call(e).slice(8,-1);return"Object"===i&&e.constructor&&(i=e.constructor.name),"Map"===i||"Set"===i?Array.from(e):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?t(e,n):void 0}}var v={TAB:["Tab"],ESC:["Esc","Escape"],ARROWLEFT:["Left","ArrowLeft"],ARROWUP:["Up","ArrowUp"],ARROWRIGHT:["Right","ArrowRight"],ARROWDOWN:["Down","ArrowDown"]},g=function(){return s(function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{direction:"horizontal"};i(this,e),this.elems=t,this.config=n,this.isActive=!1,this.onKeydown=this.onKeydown.bind(this)},[{key:"init",value:function(){document.addEventListener("keydown",this.onKeydown),this.isActive=!0}},{key:"destroy",value:function(){document.removeEventListener("keydown",this.onKeydown),this.isActive=!1}},{key:"update",value:function(e){this.elems=e}},{key:"onKeydown",value:function(e){var t=this.elems.indexOf(document.activeElement);(v.ARROWUP.includes(e.key)||v.ARROWDOWN.includes(e.key))&&"horizontal"===this.config.direction||(v.ARROWLEFT.includes(e.key)||v.ARROWRIGHT.includes(e.key))&&"vertical"===this.config.direction||((v.ARROWDOWN.includes(e.key)||v.ARROWRIGHT.includes(e.key))&&(e.preventDefault(),t>=0&&t<this.elems.length-1?this.elems[t+1].focus():this.elems[0].focus()),(v.ARROWUP.includes(e.key)||v.ARROWLEFT.includes(e.key))&&(e.preventDefault(),t>=1?this.elems[t-1].focus():this.elems[this.elems.length-1].focus()),v.TAB.includes(e.key)&&this.destroy())}}])}(),y={buttonSelector:"[data-accordion-toggle]"},b=function(){return s(function e(t,n){return i(this,e),this.element=t,this.config=l(l({},y),n),this.onFocus=this.onFocus.bind(this),this.onClick=this.onClick.bind(this),this.element.ODS_Accordion=this,this.init(),this},[{key:"onFocus",value:function(e){this.rovingTabindex.isActive||this.rovingTabindex.init();var t=e.currentTarget;window.location.hash.substring(1)===t.getAttribute("id")&&"false"===t.getAttribute("aria-expanded")&&t.click()}},{key:"toggleAccordionItem",value:function(e){var t=e.getAttribute("aria-controls"),n=t?this.element.querySelector("#".concat(t)):null;if(n){var i=!("true"===e.getAttribute("aria-expanded"));e.setAttribute("aria-expanded",String(i)),i?(n.removeAttribute("hidden"),this.scrollTriggerIntoModalView(e)):n.setAttribute("hidden","")}}},{key:"scrollTriggerIntoModalView",value:function(e){var t=this,n=e.closest(".modal__dialog");if(n){var i=function(){var i=n.getBoundingClientRect(),r=e.getBoundingClientRect(),s=t.getStickyHeaderOffset(n),o=r.top-i.top+n.scrollTop-s-8;n.scrollTo({top:Math.max(0,o),behavior:"smooth"})};"function"!=typeof window.requestAnimationFrame?setTimeout(i,0):window.requestAnimationFrame(i)}}},{key:"getStickyHeaderOffset",value:function(e){var t=e.querySelector(".modal__header");if(!t)return 0;var n=e.getBoundingClientRect(),i=t.getBoundingClientRect();return Math.max(0,i.bottom-n.top)}},{key:"init",value:function(){var e=this;this.buttons=Array.from(this.element.querySelectorAll(this.config.buttonSelector)),this.rovingTabindex?this.rovingTabindex.update(this.buttons):this.rovingTabindex=new g(this.buttons,{direction:"vertical"}),this.buttons.forEach(function(t){t.addEventListener("focus",e.onFocus),t.addEventListener("click",e.onClick)})}},{key:"onClick",value:function(e){var t=e.currentTarget;this.toggleAccordionItem(t)}},{key:"destroy",value:function(){var e=this;this.rovingTabindex.destroy(),this.buttons.forEach(function(t){t.removeEventListener("focus",e.onFocus),t.removeEventListener("click",e.onClick)})}},{key:"update",value:function(){this.destroy(),this.init()}}],[{key:"getInstance",value:function(e){return e&&e.ODS_Accordion?e.ODS_Accordion:null}}])}(),w=function(){function e(t){return i(this,e),o(this,"isAutoScrolling",!1),o(this,"isPointerDown",!1),o(this,"isDraggingNav",!1),o(this,"suppressClick",!1),o(this,"dragStartX",0),o(this,"dragStartScrollLeft",0),o(this,"scrollTimeout",null),o(this,"scrollEndFallbackTimeout",null),o(this,"navLinks",null),o(this,"sections",[]),o(this,"lastActiveIndex",0),this.element=t,this.contentLeftElement=null,this.megamenuElement=null,this.resizeObserver=null,this.supportsScrollEnd="onscrollend"in window,this.isAutoScrolling=!1,this.currentPath=window.location.pathname,this.anchorClickHandler=this.handleAnchorClick.bind(this),this.scrollHandler=this.updateStickyPosition.bind(this),this.scrollSpyHandler=this.handleScrollSpy.bind(this),this.scrollEndHandler=this.handleScrollEnd.bind(this),this.scrollEndFallbackHandler=this.handleScrollEndFallback.bind(this),this.resizeHandler=this.handleResize.bind(this),this.dragStartHandler=this.handleDragStart.bind(this),this.dragMoveHandler=this.handleDragMove.bind(this),this.dragEndHandler=this.handleDragEnd.bind(this),this.horizontalScrollHandler=this.updateHorizontalOverflowState.bind(this),this.nativeDragStartHandler=this.handleNativeDragStart.bind(this),this.element.ODS_AnchorNavigation=this,this.init(),this}return s(e,[{key:"findMegamenuElement",value:function(){return document.querySelector("[data-megamenu]")}},{key:"updateStickyPosition",value:function(){this.megamenuElement&&(this.element.style.top="".concat(this.megamenuElement.offsetHeight,"px"))}},{key:"setupMegamenuObserver",value:function(){this.megamenuElement=this.findMegamenuElement(),this.megamenuElement?(this.updateStickyPosition(),window.addEventListener("scroll",this.scrollHandler,{passive:!0}),this.resizeObserver=new ResizeObserver(this.updateStickyPosition.bind(this)),this.resizeObserver.observe(this.megamenuElement)):this.element.style.top="0px"}},{key:"setupScrollSpy",value:function(){document.documentElement.style.setProperty("--extra-scroll-margin",this.element.offsetHeight+"px"),this.navLinks=this.element.querySelectorAll(".anchor-navigation__item"),this.sections=Array.from(this.navLinks||[]).map(function(e){return e.getAttribute("href")}).filter(function(e){return null==e?void 0:e.includes("#")}).map(function(e){return document.getElementById(e.split("#")[1])}).filter(Boolean),this.teardownScrollSpyListeners(),this.element.addEventListener("click",this.anchorClickHandler),window.addEventListener("scroll",this.scrollSpyHandler,{passive:!0}),this.supportsScrollEnd?window.addEventListener("scrollend",this.scrollEndHandler):window.addEventListener("scroll",this.scrollEndFallbackHandler,{passive:!0}),window.addEventListener("resize",this.resizeHandler),this.initScrollSpy()}},{key:"teardownScrollSpyListeners",value:function(){this.element.removeEventListener("click",this.anchorClickHandler),window.removeEventListener("scroll",this.scrollSpyHandler),window.removeEventListener("resize",this.resizeHandler),this.supportsScrollEnd?window.removeEventListener("scrollend",this.scrollEndHandler):window.removeEventListener("scroll",this.scrollEndFallbackHandler),this.scrollEndFallbackTimeout&&(clearTimeout(this.scrollEndFallbackTimeout),this.scrollEndFallbackTimeout=null)}},{key:"handleAnchorClick",value:function(e){var t=e.target,n=null==t?void 0:t.closest(".anchor-navigation__item");if(n&&this.element.contains(n)){if(this.suppressClick)return e.preventDefault(),void(this.suppressClick=!1);e.preventDefault();var i=n.getAttribute("href");if(i&&i.includes("#")){var r=i.split("#")[1],s=document.getElementById(r);if(s){this.isAutoScrolling=!0,n.blur();var o=this.megamenuElement?this.megamenuElement.offsetHeight:0,a=this.element.offsetHeight,l=s.getBoundingClientRect().top+window.scrollY-o-a;window.scrollTo({top:Math.max(0,l),behavior:"smooth"});var c="".concat(window.location.pathname).concat(window.location.search,"#").concat(r);window.history.pushState(null,"",c),this.initScrollSpy(r)}}}}},{key:"initScrollSpy",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;if(this.navLinks&&this.sections.length){var n,i=-1;if(this.navLinks.forEach(function(e){return e.classList.remove("is-active")}),t)(n=document.getElementById(t)||void 0)&&(i=this.sections.findIndex(function(e){return e.id===t}));else for(var r=(this.megamenuElement?this.megamenuElement.offsetHeight:0)+this.element.offsetHeight,s=window.scrollY+r+e.SCROLLSPY_CENTER_BUFFER,o=0;o<this.sections.length;o++){var a=this.sections[o],l=a.getBoundingClientRect(),c=l.top,u=l.height,d=c+window.scrollY;if(s>=d&&s<d+u){n=a,i=o;break}}if(n||(window.scrollY<=e.TOP_SECTION_THRESHOLD?(i=0,n=this.sections[0]):(i=this.lastActiveIndex,n=this.sections[i])),i>=0&&(this.lastActiveIndex=i),n){var p=n.getAttribute("id"),h=this.element.querySelector('.anchor-navigation__item[href="#'.concat(p,'"]'));if(h||(h=this.element.querySelector('.anchor-navigation__item[href="'.concat(this.currentPath,"#").concat(p,'"]'))),h||(h=Array.from(this.navLinks).find(function(e){var t=e.getAttribute("href");return t&&t.endsWith("#".concat(p))})),h){h.classList.add("is-active");var f=this.element.querySelector(".anchor-navigation__content-left");f&&this.scrollActiveLinkIntoView(f,h,Boolean(t))}}}}},{key:"scrollActiveLinkIntoView",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=t.offsetLeft,r=i+t.clientWidth,s=e.scrollLeft,o=s+e.clientWidth;if(n||!(i>=s&&r<=o)){var a=i-e.clientWidth/2+t.clientWidth/2,l=window.innerWidth<768?"auto":"smooth",c=Math.max(0,a);"function"!=typeof e.scrollTo?e.scrollLeft=c:e.scrollTo({left:c,behavior:l})}}},{key:"setupDragScroll",value:function(){this.teardownDragScroll(),this.contentLeftElement=this.element.querySelector(".anchor-navigation__content-left"),this.contentLeftElement&&(this.contentLeftElement.addEventListener("mousedown",this.dragStartHandler),this.contentLeftElement.addEventListener("dragstart",this.nativeDragStartHandler),this.contentLeftElement.addEventListener("scroll",this.horizontalScrollHandler,{passive:!0}),this.updateDragState(),this.updateHorizontalOverflowState())}},{key:"teardownDragScroll",value:function(){this.contentLeftElement&&(this.contentLeftElement.removeEventListener("mousedown",this.dragStartHandler),this.contentLeftElement.removeEventListener("dragstart",this.nativeDragStartHandler),this.contentLeftElement.removeEventListener("scroll",this.horizontalScrollHandler),this.contentLeftElement.classList.remove("is-draggable","is-dragging")),window.removeEventListener("mousemove",this.dragMoveHandler),window.removeEventListener("mouseup",this.dragEndHandler),this.contentLeftElement=null,this.isPointerDown=!1,this.isDraggingNav=!1,this.suppressClick=!1,this.dragStartX=0,this.dragStartScrollLeft=0}},{key:"updateDragState",value:function(){if(this.contentLeftElement){var e="function"==typeof window.matchMedia?window.matchMedia("(pointer: fine)"):null,t=!e||e.matches,n=this.contentLeftElement.scrollWidth>this.contentLeftElement.clientWidth,i=t&&n;this.contentLeftElement.classList.toggle("is-draggable",i),i||(this.contentLeftElement.classList.remove("is-dragging"),this.isPointerDown=!1,this.isDraggingNav=!1,this.suppressClick=!1,window.removeEventListener("mousemove",this.dragMoveHandler),window.removeEventListener("mouseup",this.dragEndHandler)),this.updateHorizontalOverflowState()}}},{key:"updateHorizontalOverflowState",value:function(){if(this.contentLeftElement){var t=this.element.querySelector(".anchor-navigation__content");if(t){var n=this.contentLeftElement.scrollWidth-this.contentLeftElement.clientWidth,i=n>e.SCROLL_EDGE_TOLERANCE,r=this.contentLeftElement.scrollLeft<=e.SCROLL_EDGE_TOLERANCE,s=this.contentLeftElement.scrollLeft>=n-e.SCROLL_EDGE_TOLERANCE;t.classList.toggle("has-left-overflow",i&&!r),t.classList.toggle("has-right-overflow",i&&!s)}}}},{key:"handleDragStart",value:function(e){0===e.button&&this.contentLeftElement&&this.contentLeftElement.classList.contains("is-draggable")&&(this.isPointerDown=!0,this.isDraggingNav=!1,this.suppressClick=!1,this.dragStartX=e.clientX,this.dragStartScrollLeft=this.contentLeftElement.scrollLeft,window.addEventListener("mousemove",this.dragMoveHandler),window.addEventListener("mouseup",this.dragEndHandler))}},{key:"handleDragMove",value:function(t){if(this.isPointerDown&&this.contentLeftElement){var n=t.clientX-this.dragStartX;!this.isDraggingNav&&Math.abs(n)>=e.DRAG_START_THRESHOLD&&(this.isDraggingNav=!0,this.suppressClick=!0,this.contentLeftElement.classList.add("is-dragging")),this.isDraggingNav&&(t.preventDefault(),this.contentLeftElement.scrollLeft=this.dragStartScrollLeft-n)}}},{key:"handleDragEnd",value:function(){var e=this;if(this.isPointerDown){this.isPointerDown=!1,window.removeEventListener("mousemove",this.dragMoveHandler),window.removeEventListener("mouseup",this.dragEndHandler),this.contentLeftElement&&this.contentLeftElement.classList.remove("is-dragging");var t=this.isDraggingNav;this.isDraggingNav=!1,t&&window.setTimeout(function(){e.suppressClick=!1},0)}}},{key:"handleNativeDragStart",value:function(e){var t;null!==(t=this.contentLeftElement)&&void 0!==t&&t.classList.contains("is-draggable")&&e.preventDefault()}},{key:"handleScrollEndFallback",value:function(){var t=this;this.scrollEndFallbackTimeout&&clearTimeout(this.scrollEndFallbackTimeout),this.scrollEndFallbackTimeout=setTimeout(function(){t.handleScrollEnd()},e.SCROLL_END_DEBOUNCE_MS)}},{key:"handleResize",value:function(){this.initScrollSpy(),this.updateDragState(),this.updateHorizontalOverflowState()}},{key:"handleScrollSpy",value:function(){var t=this;this.isAutoScrolling?(this.scrollTimeout&&clearTimeout(this.scrollTimeout),this.scrollTimeout=setTimeout(function(){t.isAutoScrolling=!1,t.scrollTimeout=null,t.initScrollSpy()},e.SCROLL_END_DEBOUNCE_MS)):this.initScrollSpy()}},{key:"handleScrollEnd",value:function(){this.scrollTimeout&&(clearTimeout(this.scrollTimeout),this.scrollTimeout=null),this.isAutoScrolling=!1,this.initScrollSpy()}},{key:"init",value:function(){this.setupMegamenuObserver(),this.setupScrollSpy(),this.setupDragScroll()}},{key:"destroy",value:function(){this.scrollTimeout&&(clearTimeout(this.scrollTimeout),this.scrollTimeout=null),window.removeEventListener("scroll",this.scrollHandler),this.teardownScrollSpyListeners(),this.teardownDragScroll(),this.resizeObserver&&(this.resizeObserver.disconnect(),this.resizeObserver=null),this.element.style.top="",this.megamenuElement=null,this.navLinks=null,this.sections=[],this.lastActiveIndex=0,this.element.ODS_AnchorNavigation=null}},{key:"update",value:function(){this.scrollTimeout&&(clearTimeout(this.scrollTimeout),this.scrollTimeout=null),window.removeEventListener("scroll",this.scrollHandler),this.teardownScrollSpyListeners(),this.teardownDragScroll(),this.resizeObserver&&(this.resizeObserver.disconnect(),this.resizeObserver=null),this.megamenuElement=null,this.navLinks=null,this.sections=[],this.lastActiveIndex=0,this.init()}}],[{key:"getInstance",value:function(e){return e&&e.ODS_AnchorNavigation?e.ODS_AnchorNavigation:null}}])}();o(w,"SCROLLSPY_CENTER_BUFFER",50),o(w,"TOP_SECTION_THRESHOLD",100),o(w,"DRAG_START_THRESHOLD",6),o(w,"SCROLL_END_DEBOUNCE_MS",150),o(w,"SCROLL_EDGE_TOLERANCE",1);var _={controlSelector:".block-action__control",indicatorSelector:".block-action__indicator",activeClass:"is-indicating"},S=function(){return s(function e(t,n){return i(this,e),o(this,"controlElement",null),o(this,"indicatorElements",[]),this.element=t,this.config=l(l({},_),n),this.highlightIndicators=this.highlightIndicators.bind(this),this.unhighlightIndicators=this.unhighlightIndicators.bind(this),this.element.ODS_BlockAction=this,this.init(),this},[{key:"init",value:function(){this.controlElement=this.element.querySelector(this.config.controlSelector),this.indicatorElements=Array.from(this.element.querySelectorAll(this.config.indicatorSelector)),!this.controlElement||this.indicatorElements.length<1||(this.controlElement.addEventListener("mouseenter",this.highlightIndicators),this.controlElement.addEventListener("mouseleave",this.unhighlightIndicators),this.controlElement.addEventListener("focus",this.highlightIndicators),this.controlElement.addEventListener("blur",this.unhighlightIndicators))}},{key:"highlightIndicators",value:function(){var e=this;this.indicatorElements.forEach(function(t){return t.classList.add(e.config.activeClass)})}},{key:"unhighlightIndicators",value:function(){var e=this;this.indicatorElements.forEach(function(t){return t.classList.remove(e.config.activeClass)})}},{key:"destroy",value:function(){var e=this;this.indicatorElements.forEach(function(t){return t.classList.remove(e.config.activeClass)}),this.controlElement&&(this.controlElement.removeEventListener("mouseenter",this.highlightIndicators),this.controlElement.removeEventListener("mouseleave",this.unhighlightIndicators),this.controlElement.removeEventListener("focus",this.highlightIndicators),this.controlElement.removeEventListener("blur",this.unhighlightIndicators)),this.controlElement=null,this.indicatorElements=[]}},{key:"update",value:function(){this.destroy(),this.init()}}],[{key:"getInstance",value:function(e){return e&&e.ODS_BlockAction?e.ODS_BlockAction:null}}])}();function E(e){return null!==e&&"object"==typeof e&&"constructor"in e&&e.constructor===Object}function k(e={},t={}){const n=["__proto__","constructor","prototype"];Object.keys(t).filter(e=>n.indexOf(e)<0).forEach(n=>{void 0===e[n]?e[n]=t[n]:E(t[n])&&E(e[n])&&Object.keys(t[n]).length>0&&k(e[n],t[n])})}const x={body:{},addEventListener(){},removeEventListener(){},activeElement:{blur(){},nodeName:""},querySelector:()=>null,querySelectorAll:()=>[],getElementById:()=>null,createEvent:()=>({initEvent(){}}),createElement:()=>({children:[],childNodes:[],style:{},setAttribute(){},getElementsByTagName:()=>[]}),createElementNS:()=>({}),importNode:()=>null,location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""}};function C(){const e="undefined"!=typeof document?document:{};return k(e,x),e}const T={document:x,navigator:{userAgent:""},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""},history:{replaceState(){},pushState(){},go(){},back(){}},CustomEvent:function(){return this},addEventListener(){},removeEventListener(){},getComputedStyle:()=>({getPropertyValue:()=>""}),Image(){},Date(){},screen:{},setTimeout(){},clearTimeout(){},matchMedia:()=>({}),requestAnimationFrame:e=>"undefined"==typeof setTimeout?(e(),null):setTimeout(e,0),cancelAnimationFrame(e){"undefined"!=typeof setTimeout&&clearTimeout(e)}};function A(){const e="undefined"!=typeof window?window:{};return k(e,T),e}function O(e=""){return e.trim().split(" ").filter(e=>!!e.trim())}function L(e,t=0){return setTimeout(e,t)}function D(){return Date.now()}function M(e){return"object"==typeof e&&null!==e&&e.constructor&&"Object"===Object.prototype.toString.call(e).slice(8,-1)}function P(e){return"undefined"!=typeof window&&void 0!==window.HTMLElement?e instanceof HTMLElement:e&&(1===e.nodeType||11===e.nodeType)}function I(...e){const t=Object(e[0]);for(let n=1;n<e.length;n+=1){const i=e[n];if(null!=i&&!P(i)){const e=Object.keys(Object(i)).filter(e=>"__proto__"!==e&&"constructor"!==e&&"prototype"!==e);for(let n=0,r=e.length;n<r;n+=1){const r=e[n],s=Object.getOwnPropertyDescriptor(i,r);void 0!==s&&s.enumerable&&(M(t[r])&&M(i[r])?i[r].__swiper__?t[r]=i[r]:I(t[r],i[r]):!M(t[r])&&M(i[r])?(t[r]={},i[r].__swiper__?t[r]=i[r]:I(t[r],i[r])):t[r]=i[r])}}}return t}function N(e,t,n){e.style.setProperty(t,n)}function R({swiper:e,targetPosition:t,side:n}){const i=A(),r=-e.translate;let s,o=null;const a=e.params.speed;e.wrapperEl.style.scrollSnapType="none",i.cancelAnimationFrame(e.cssModeFrameID);const l=t>r?"next":"prev",c=(e,t)=>"next"===l&&e>=t||"prev"===l&&e<=t,u=()=>{s=(new Date).getTime(),null===o&&(o=s);const l=Math.max(Math.min((s-o)/a,1),0),d=.5-Math.cos(l*Math.PI)/2;let p=r+d*(t-r);if(c(p,t)&&(p=t),e.wrapperEl.scrollTo({[n]:p}),c(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(u)};u()}function z(e,t=""){const n=A(),i=[...e.children];return n.HTMLSlotElement&&e instanceof HTMLSlotElement&&i.push(...e.assignedElements()),t?i.filter(e=>e.matches(t)):i}function B(e){try{return}catch(e){}}function H(e,t=[]){const n=document.createElement(e);return n.classList.add(...Array.isArray(t)?t:O(t)),n}function F(e){const t=A(),n=C(),i=e.getBoundingClientRect(),r=n.body,s=e.clientTop||r.clientTop||0,o=e.clientLeft||r.clientLeft||0,a=e===t?t.scrollY:e.scrollTop,l=e===t?t.scrollX:e.scrollLeft;return{top:i.top+a-s,left:i.left+l-o}}function V(e,t){return A().getComputedStyle(e,null).getPropertyValue(t)}function j(e){let t,n=e;if(n){for(t=0;null!==(n=n.previousSibling);)1===n.nodeType&&(t+=1);return t}}function q(e,t){const n=[];let i=e.parentElement;for(;i;)t?i.matches(t)&&n.push(i):n.push(i),i=i.parentElement;return n}function U(e,t,n){const i=A();return e["width"===t?"offsetWidth":"offsetHeight"]+parseFloat(i.getComputedStyle(e,null).getPropertyValue("width"===t?"margin-right":"margin-top"))+parseFloat(i.getComputedStyle(e,null).getPropertyValue("width"===t?"margin-left":"margin-bottom"))}function $(e){return(Array.isArray(e)?e:[e]).filter(e=>!!e)}function W(e,t=""){"undefined"!=typeof trustedTypes?e.innerHTML=trustedTypes.createPolicy("html",{createHTML:e=>e}).createHTML(t):e.innerHTML=t}let G,Y,X;function K(){return G||(G=function(){const e=A(),t=C();return{smoothScroll:t.documentElement&&t.documentElement.style&&"scrollBehavior"in t.documentElement.style,touch:!!("ontouchstart"in e||e.DocumentTouch&&t instanceof e.DocumentTouch)}}()),G}function J(e={}){return Y||(Y=function({userAgent:e}={}){const t=K(),n=A(),i=n.navigator.platform,r=e||n.navigator.userAgent,s={ios:!1,android:!1},o=n.screen.width,a=n.screen.height,l=r.match(/(Android);?[\s\/]+([\d.]+)?/);let c=r.match(/(iPad)(?!\1).*OS\s([\d_]+)/);const u=r.match(/(iPod)(.*OS\s([\d_]+))?/),d=!c&&r.match(/(iPhone\sOS|iOS)\s([\d_]+)/),p="Win32"===i;let h="MacIntel"===i;return!c&&h&&t.touch&&["1024x1366","1366x1024","834x1194","1194x834","834x1112","1112x834","768x1024","1024x768","820x1180","1180x820","810x1080","1080x810"].indexOf(`${o}x${a}`)>=0&&(c=r.match(/(Version)\/([\d.]+)/),c||(c=[0,1,"13_0_0"]),h=!1),l&&!p&&(s.os="android",s.android=!0),(c||d||u)&&(s.os="ios",s.ios=!0),s}(e)),Y}function Q(){return X||(X=function(){const e=A(),t=J();let n=!1;function i(){const t=e.navigator.userAgent.toLowerCase();return t.indexOf("safari")>=0&&t.indexOf("chrome")<0&&t.indexOf("android")<0}if(i()){const t=String(e.navigator.userAgent);if(t.includes("Version/")){const[e,i]=t.split("Version/")[1].split(" ")[0].split(".").map(e=>Number(e));n=e<16||16===e&&i<2}}const r=/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(e.navigator.userAgent),s=i();return{isSafari:n||s,needPerspectiveFix:n,need3dFix:s||r&&t.ios,isWebView:r}}()),X}var Z={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;return"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),(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}};const ee=(e,t,n)=>{t&&!e.classList.contains(n)?e.classList.add(n):!t&&e.classList.contains(n)&&e.classList.remove(n)},te=(e,t,n)=>{t&&!e.classList.contains(n)?e.classList.add(n):!t&&e.classList.contains(n)&&e.classList.remove(n)},ne=(e,t)=>{if(!e||e.destroyed||!e.params)return;const n=t.closest(e.isElement?"swiper-slide":`.${e.params.slideClass}`);if(n){let t=n.querySelector(`.${e.params.lazyPreloaderClass}`);!t&&e.isElement&&(n.shadowRoot?t=n.shadowRoot.querySelector(`.${e.params.lazyPreloaderClass}`):requestAnimationFrame(()=>{n.shadowRoot&&(t=n.shadowRoot.querySelector(`.${e.params.lazyPreloaderClass}`),t&&!t.lazyPreloaderManaged&&t.remove())})),t&&!t.lazyPreloaderManaged&&t.remove()}},ie=(e,t)=>{if(!e.slides[t])return;const n=e.slides[t].querySelector('[loading="lazy"]');n&&n.removeAttribute("loading")},re=e=>{if(!e||e.destroyed||!e.params)return;let t=e.params.lazyPreloadPrevNext;const n=e.slides.length;if(!n||!t||t<0)return;t=Math.min(t,n);const i="auto"===e.params.slidesPerView?e.slidesPerViewDynamic():Math.ceil(e.params.slidesPerView),r=e.activeIndex;if(e.params.grid&&e.params.grid.rows>1){const n=r,s=[n-t];return s.push(...Array.from({length:t}).map((e,t)=>n+i+t)),void e.slides.forEach((t,n)=>{s.includes(t.column)&&ie(e,n)})}const s=r+i-1;if(e.params.rewind||e.params.loop)for(let i=r-t;i<=s+t;i+=1){const t=(i%n+n)%n;(t<r||t>s)&&ie(e,t)}else for(let i=Math.max(r-t,0);i<=Math.min(s+t,n-1);i+=1)i!==r&&(i>s||i<r)&&ie(e,i)};var se={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.clientWidth,n=void 0!==e.params.height&&null!==e.params.height?e.params.height:i.clientHeight,0===t&&e.isHorizontal()||0===n&&e.isVertical()||(t=t-parseInt(V(i,"padding-left")||0,10)-parseInt(V(i,"padding-right")||0,10),n=n-parseInt(V(i,"padding-top")||0,10)-parseInt(V(i,"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,n){return parseFloat(t.getPropertyValue(e.getDirectionLabel(n))||0)}const n=e.params,{wrapperEl:i,slidesEl:r,rtlTranslate:s,wrongRTL:o}=e,a=e.virtual&&n.virtual.enabled,l=a?e.virtual.slides.length:e.slides.length,c=z(r,`.${e.params.slideClass}, swiper-slide`),u=a?e.virtual.slides.length:c.length;let d=[];const p=[],h=[];let f=n.slidesOffsetBefore;"function"==typeof f&&(f=n.slidesOffsetBefore.call(e));let m=n.slidesOffsetAfter;"function"==typeof m&&(m=n.slidesOffsetAfter.call(e));const v=e.snapGrid.length,g=e.slidesGrid.length,y=e.size-f-m;let b=n.spaceBetween,w=-f,_=0,S=0;if(void 0===y)return;"string"==typeof b&&b.indexOf("%")>=0?b=parseFloat(b.replace("%",""))/100*y:"string"==typeof b&&(b=parseFloat(b)),e.virtualSize=-b-f-m,c.forEach(e=>{s?e.style.marginLeft="":e.style.marginRight="",e.style.marginBottom="",e.style.marginTop=""}),n.centeredSlides&&n.cssMode&&(N(i,"--swiper-centered-offset-before",""),N(i,"--swiper-centered-offset-after","")),n.cssMode&&(N(i,"--swiper-slides-offset-before",`${f}px`),N(i,"--swiper-slides-offset-after",`${m}px`));const E=n.grid&&n.grid.rows>1&&e.grid;let k;E?e.grid.initSlides(c):e.grid&&e.grid.unsetSlides();const x="auto"===n.slidesPerView&&n.breakpoints&&Object.keys(n.breakpoints).filter(e=>void 0!==n.breakpoints[e].slidesPerView).length>0;for(let i=0;i<u;i+=1){k=0;const r=c[i];if(!r||(E&&e.grid.updateSlide(i,r,c),"none"!==V(r,"display"))){if(a&&"auto"===n.slidesPerView)n.virtual.slidesPerViewAutoSlideSize&&(k=n.virtual.slidesPerViewAutoSlideSize),k&&r&&(n.roundLengths&&(k=Math.floor(k)),r.style[e.getDirectionLabel("width")]=`${k}px`);else if("auto"===n.slidesPerView){x&&(r.style[e.getDirectionLabel("width")]="");const i=getComputedStyle(r),s=r.style.transform,o=r.style.webkitTransform;if(s&&(r.style.transform="none"),o&&(r.style.webkitTransform="none"),n.roundLengths)k=e.isHorizontal()?U(r,"width"):U(r,"height");else{const e=t(i,"width"),n=t(i,"padding-left"),s=t(i,"padding-right"),o=t(i,"margin-left"),a=t(i,"margin-right"),l=i.getPropertyValue("box-sizing");if(l&&"border-box"===l)k=e+o+a;else{const{clientWidth:t,offsetWidth:i}=r;k=e+n+s+o+a+(i-t)}}s&&(r.style.transform=s),o&&(r.style.webkitTransform=o),n.roundLengths&&(k=Math.floor(k))}else k=(y-(n.slidesPerView-1)*b)/n.slidesPerView,n.roundLengths&&(k=Math.floor(k)),r&&(r.style[e.getDirectionLabel("width")]=`${k}px`);r&&(r.swiperSlideSize=k),h.push(k),n.centeredSlides?(w=w+k/2+_/2+b,0===_&&0!==i&&(w=w-y/2-b),0===i&&(w=w-y/2-b),Math.abs(w)<.001&&(w=0),n.roundLengths&&(w=Math.floor(w)),S%n.slidesPerGroup===0&&d.push(w),p.push(w)):(n.roundLengths&&(w=Math.floor(w)),(S-Math.min(e.params.slidesPerGroupSkip,S))%e.params.slidesPerGroup===0&&d.push(w),p.push(w),w=w+k+b),e.virtualSize+=k+b,_=k,S+=1}}if(e.virtualSize=Math.max(e.virtualSize,y)+m,s&&o&&("slide"===n.effect||"coverflow"===n.effect)&&(i.style.width=`${e.virtualSize+b}px`),n.setWrapperSize&&(i.style[e.getDirectionLabel("width")]=`${e.virtualSize+b}px`),E&&e.grid.updateWrapperSize(k,d),!n.centeredSlides){const t="auto"!==n.slidesPerView&&n.slidesPerView%1!=0,i=n.snapToSlideEdge&&!n.loop&&("auto"===n.slidesPerView||t);let r=d.length;if(i){let e;if("auto"===n.slidesPerView){e=1;let t=0;for(let n=h.length-1;n>=0&&(t+=h[n]+(n<h.length-1?b:0),t<=y);n-=1)e=h.length-n}else e=Math.floor(n.slidesPerView);r=Math.max(u-e,0)}const s=[];for(let t=0;t<d.length;t+=1){let o=d[t];n.roundLengths&&(o=Math.floor(o)),i?t<=r&&s.push(o):d[t]<=e.virtualSize-y&&s.push(o)}d=s,Math.floor(e.virtualSize-y)-Math.floor(d[d.length-1])>1&&(i||d.push(e.virtualSize-y))}if(a&&n.loop){const t=h[0]+b;if(n.slidesPerGroup>1){const i=Math.ceil((e.virtual.slidesBefore+e.virtual.slidesAfter)/n.slidesPerGroup),r=t*n.slidesPerGroup;for(let e=0;e<i;e+=1)d.push(d[d.length-1]+r)}for(let i=0;i<e.virtual.slidesBefore+e.virtual.slidesAfter;i+=1)1===n.slidesPerGroup&&d.push(d[d.length-1]+t),p.push(p[p.length-1]+t),e.virtualSize+=t}if(0===d.length&&(d=[0]),0!==b){const t=e.isHorizontal()&&s?"marginLeft":e.getDirectionLabel("marginRight");c.filter((e,t)=>!(n.cssMode&&!n.loop)||t!==c.length-1).forEach(e=>{e.style[t]=`${b}px`})}if(n.centeredSlides&&n.centeredSlidesBounds){let e=0;h.forEach(t=>{e+=t+(b||0)}),e-=b;const t=e>y?e-y:0;d=d.map(e=>e<=0?-f:e>t?t+m:e)}if(n.centerInsufficientSlides){let e=0;if(h.forEach(t=>{e+=t+(b||0)}),e-=b,e<y){const t=(y-e)/2;d.forEach((e,n)=>{d[n]=e-t}),p.forEach((e,n)=>{p[n]=e+t})}}if(Object.assign(e,{slides:c,snapGrid:d,slidesGrid:p,slidesSizesGrid:h}),n.centeredSlides&&n.cssMode&&!n.centeredSlidesBounds){N(i,"--swiper-centered-offset-before",-d[0]+"px"),N(i,"--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(u!==l&&e.emit("slidesLengthChange"),d.length!==v&&(e.params.watchOverflow&&e.checkOverflow(),e.emit("snapGridLengthChange")),p.length!==g&&e.emit("slidesGridLengthChange"),n.watchSlidesProgress&&e.updateSlidesOffset(),e.emit("slidesUpdated"),!(a||n.cssMode||"slide"!==n.effect&&"fade"!==n.effect)){const t=`${n.containerModifierClass}backface-hidden`,i=e.el.classList.contains(t);u<=n.maxBackfaceHiddenSlides?i||e.el.classList.add(t):i&&e.el.classList.remove(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 o=e=>i?t.slides[t.getSlideIndexByData(e)]:t.slides[e];if("auto"!==t.params.slidesPerView&&t.params.slidesPerView>1)if(t.params.centeredSlides)(t.visibleSlides||[]).forEach(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(o(e))}else n.push(o(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.style.height=`${s}px`)},updateSlidesOffset:function(){const e=this,t=e.slides,n=e.isElement?e.isHorizontal()?e.wrapperEl.offsetLeft:e.wrapperEl.offsetTop:0;for(let i=0;i<t.length;i+=1)t[i].swiperSlideOffset=(e.isHorizontal()?t[i].offsetLeft:t[i].offsetTop)-n-e.cssOverflowAdjustment()},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 o=-e;r&&(o=e),t.visibleSlidesIndexes=[],t.visibleSlides=[];let a=n.spaceBetween;"string"==typeof a&&a.indexOf("%")>=0?a=parseFloat(a.replace("%",""))/100*t.size:"string"==typeof a&&(a=parseFloat(a));for(let e=0;e<i.length;e+=1){const l=i[e];let c=l.swiperSlideOffset;n.cssMode&&n.centeredSlides&&(c-=i[0].swiperSlideOffset);const u=(o+(n.centeredSlides?t.minTranslate():0)-c)/(l.swiperSlideSize+a),d=(o-s[0]+(n.centeredSlides?t.minTranslate():0)-c)/(l.swiperSlideSize+a),p=-(o-c),h=p+t.slidesSizesGrid[e],f=p>=0&&p<=t.size-t.slidesSizesGrid[e],m=p>=0&&p<t.size-1||h>1&&h<=t.size||p<=0&&h>=t.size;m&&(t.visibleSlides.push(l),t.visibleSlidesIndexes.push(e)),ee(l,m,n.slideVisibleClass),ee(l,f,n.slideFullyVisibleClass),l.progress=r?-u:u,l.originalProgress=r?-d:d}},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:o,progressLoop:a}=t;const l=s,c=o;if(0===i)r=0,s=!0,o=!0;else{r=(e-t.minTranslate())/i;const n=Math.abs(e-t.minTranslate())<1,a=Math.abs(e-t.maxTranslate())<1;s=n||r<=0,o=a||r>=1,n&&(r=0),a&&(r=1)}if(n.loop){const n=t.getSlideIndexByData(0),i=t.getSlideIndexByData(t.slides.length-1),r=t.slidesGrid[n],s=t.slidesGrid[i],o=t.slidesGrid[t.slidesGrid.length-1],l=Math.abs(e);a=l>=r?(l-r)/o:(l+o-s)/o,a>1&&(a-=1)}Object.assign(t,{progress:r,progressLoop:a,isBeginning:s,isEnd:o}),(n.watchSlidesProgress||n.centeredSlides&&n.autoHeight)&&t.updateSlidesProgress(e),s&&!l&&t.emit("reachBeginning toEdge"),o&&!c&&t.emit("reachEnd toEdge"),(l&&!s||c&&!o)&&t.emit("fromEdge"),t.emit("progress",r)},updateSlidesClasses:function(){const e=this,{slides:t,params:n,slidesEl:i,activeIndex:r}=e,s=e.virtual&&n.virtual.enabled,o=e.grid&&n.grid&&n.grid.rows>1,a=e=>z(i,`.${n.slideClass}${e}, swiper-slide${e}`)[0];let l,c,u;if(s)if(n.loop){let t=r-e.virtual.slidesBefore;t<0&&(t=e.virtual.slides.length+t),t>=e.virtual.slides.length&&(t-=e.virtual.slides.length),l=a(`[data-swiper-slide-index="${t}"]`)}else l=a(`[data-swiper-slide-index="${r}"]`);else o?(l=t.find(e=>e.column===r),u=t.find(e=>e.column===r+1),c=t.find(e=>e.column===r-1)):l=t[r];l&&(o||(u=function(e,t){const n=[];for(;e.nextElementSibling;){const i=e.nextElementSibling;t?i.matches(t)&&n.push(i):n.push(i),e=i}return n}(l,`.${n.slideClass}, swiper-slide`)[0],n.loop&&!u&&(u=t[0]),c=function(e,t){const n=[];for(;e.previousElementSibling;){const i=e.previousElementSibling;t?i.matches(t)&&n.push(i):n.push(i),e=i}return n}(l,`.${n.slideClass}, swiper-slide`)[0],n.loop&&0===!c&&(c=t[t.length-1]))),t.forEach(e=>{te(e,e===l,n.slideActiveClass),te(e,e===u,n.slideNextClass),te(e,e===c,n.slidePrevClass)}),e.emitSlidesClasses()},updateActiveIndex:function(e){const t=this,n=t.rtlTranslate?t.translate:-t.translate,{snapGrid:i,params:r,activeIndex:s,realIndex:o,snapIndex:a}=t;let l,c=e;const u=e=>{let n=e-t.virtual.slidesBefore;return n<0&&(n=t.virtual.slides.length+n),n>=t.virtual.slides.length&&(n-=t.virtual.slides.length),n};if(void 0===c&&(c=function(e){const{slidesGrid:t,params:n}=e,i=e.rtlTranslate?e.translate:-e.translate;let r;for(let e=0;e<t.length;e+=1)void 0!==t[e+1]?i>=t[e]&&i<t[e+1]-(t[e+1]-t[e])/2?r=e:i>=t[e]&&i<t[e+1]&&(r=e+1):i>=t[e]&&(r=e);return n.normalizeSlideIndex&&(r<0||void 0===r)&&(r=0),r}(t)),i.indexOf(n)>=0)l=i.indexOf(n);else{const e=Math.min(r.slidesPerGroupSkip,c);l=e+Math.floor((c-e)/r.slidesPerGroup)}if(l>=i.length&&(l=i.length-1),c===s&&!t.params.loop)return void(l!==a&&(t.snapIndex=l,t.emit("snapIndexChange")));if(c===s&&t.params.loop&&t.virtual&&t.params.virtual.enabled)return void(t.realIndex=u(c));const d=t.grid&&r.grid&&r.grid.rows>1;let p;if(t.virtual&&r.virtual.enabled)p=r.loop?u(c):c;else if(d){const e=t.slides.find(e=>e.column===c);let n=parseInt(e.getAttribute("data-swiper-slide-index"),10);Number.isNaN(n)&&(n=Math.max(t.slides.indexOf(e),0)),p=Math.floor(n/r.grid.rows)}else if(t.slides[c]){const e=t.slides[c].getAttribute("data-swiper-slide-index");p=e?parseInt(e,10):c}else p=c;Object.assign(t,{previousSnapIndex:a,snapIndex:l,previousRealIndex:o,realIndex:p,previousIndex:s,activeIndex:c}),t.initialized&&re(t),t.emit("activeIndexChange"),t.emit("snapIndexChange"),(t.initialized||t.params.runCallbacksOnInit)&&(o!==p&&t.emit("realIndexChange"),t.emit("slideChange"))},updateClickedSlide:function(e,t){const n=this,i=n.params;let r=e.closest(`.${i.slideClass}, swiper-slide`);!r&&n.isElement&&t&&t.length>1&&t.includes(e)&&[...t.slice(t.indexOf(e)+1,t.length)].forEach(e=>{!r&&e.matches&&e.matches(`.${i.slideClass}, swiper-slide`)&&(r=e)});let s,o=!1;if(r)for(let e=0;e<n.slides.length;e+=1)if(n.slides[e]===r){o=!0,s=e;break}if(!r||!o)return n.clickedSlide=void 0,void(n.clickedIndex=void 0);n.clickedSlide=r,n.virtual&&n.params.virtual.enabled?n.clickedIndex=parseInt(r.getAttribute("data-swiper-slide-index"),10):n.clickedIndex=s,i.slideToClickedSlide&&void 0!==n.clickedIndex&&n.clickedIndex!==n.activeIndex&&n.slideToClickedSlide()}},oe={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=function(e,t="x"){const n=A();let i,r,s;const o=function(e){const t=A();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=o.transform||o.webkitTransform,r.split(",").length>6&&(r=r.split(", ").map(e=>e.replace(",",".")).join(", ")),s=new n.WebKitCSSMatrix("none"===r?"":r)):(s=o.MozTransform||o.OTransform||o.MsTransform||o.msTransform||o.transform||o.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}(r,e);return s+=this.cssOverflowAdjustment(),n&&(s=-s),s||0},setTranslate:function(e,t){const n=this,{rtlTranslate:i,params:r,wrapperEl:s,progress:o}=n;let a,l=0,c=0;n.isHorizontal()?l=i?-e:e:c=e,r.roundLengths&&(l=Math.floor(l),c=Math.floor(c)),n.previousTranslate=n.translate,n.translate=n.isHorizontal()?l:c,r.cssMode?s[n.isHorizontal()?"scrollLeft":"scrollTop"]=n.isHorizontal()?-l:-c:r.virtualTranslate||(n.isHorizontal()?l-=n.cssOverflowAdjustment():c-=n.cssOverflowAdjustment(),s.style.transform=`translate3d(${l}px, ${c}px, 0px)`);const u=n.maxTranslate()-n.minTranslate();a=0===u?0:(e-n.minTranslate())/u,a!==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:o,wrapperEl:a}=s;if(s.animating&&o.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),o.cssMode){const e=s.isHorizontal();if(0===t)a[e?"scrollLeft":"scrollTop"]=-u;else{if(!s.support.smoothScroll)return R({swiper:s,targetPosition:-u,side:e?"left":"top"}),!0;a.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.removeEventListener("transitionend",s.onTranslateToWrapperTransitionEnd),s.onTranslateToWrapperTransitionEnd=null,delete s.onTranslateToWrapperTransitionEnd,s.animating=!1,n&&s.emit("transitionEnd"))}),s.wrapperEl.addEventListener("transitionend",s.onTranslateToWrapperTransitionEnd))),!0}};function ae({swiper:e,runCallbacks:t,direction:n,step:i}){const{activeIndex:r,previousIndex:s}=e;let o=n;o||(o=r>s?"next":r<s?"prev":"reset"),e.emit(`transition${i}`),t&&"reset"===o?e.emit(`slideResetTransition${i}`):t&&r!==s&&(e.emit(`slideChangeTransition${i}`),"next"===o?e.emit(`slideNextTransition${i}`):e.emit(`slidePrevTransition${i}`))}var le={slideTo:function(e=0,t,n=!0,i,r){"string"==typeof e&&(e=parseInt(e,10));const s=this;let o=e;o<0&&(o=0);const{params:a,snapGrid:l,slidesGrid:c,previousIndex:u,activeIndex:d,rtlTranslate:p,wrapperEl:h,enabled:f}=s;if(!f&&!i&&!r||s.destroyed||s.animating&&a.preventInteractionOnTransition)return!1;void 0===t&&(t=s.params.speed);const m=Math.min(s.params.slidesPerGroupSkip,o);let v=m+Math.floor((o-m)/s.params.slidesPerGroup);v>=l.length&&(v=l.length-1);const g=-l[v];if(a.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?o=e:t>=n&&t<i&&(o=e+1):t>=n&&(o=e)}if(s.initialized&&o!==d){if(!s.allowSlideNext&&(p?g>s.translate&&g>s.minTranslate():g<s.translate&&g<s.minTranslate()))return!1;if(!s.allowSlidePrev&&g>s.translate&&g>s.maxTranslate()&&(d||0)!==o)return!1}let y;o!==(u||0)&&n&&s.emit("beforeSlideChangeStart"),s.updateProgress(g),y=o>d?"next":o<d?"prev":"reset";const b=s.virtual&&s.params.virtual.enabled;if((!b||!r)&&(p&&-g===s.translate||!p&&g===s.translate))return s.updateActiveIndex(o),a.autoHeight&&s.updateAutoHeight(),s.updateSlidesClasses(),"slide"!==a.effect&&s.setTranslate(g),"reset"!==y&&(s.transitionStart(n,y),s.transitionEnd(n,y)),!1;if(a.cssMode){const e=s.isHorizontal(),n=p?g:-g;if(0===t)b&&(s.wrapperEl.style.scrollSnapType="none",s._immediateVirtual=!0),b&&!s._cssModeVirtualInitialSet&&s.params.initialSlide>0?(s._cssModeVirtualInitialSet=!0,requestAnimationFrame(()=>{h[e?"scrollLeft":"scrollTop"]=n})):h[e?"scrollLeft":"scrollTop"]=n,b&&requestAnimationFrame(()=>{s.wrapperEl.style.scrollSnapType="",s._immediateVirtual=!1});else{if(!s.support.smoothScroll)return R({swiper:s,targetPosition:n,side:e?"left":"top"}),!0;h.scrollTo({[e?"left":"top"]:n,behavior:"smooth"})}return!0}const w=Q().isSafari;return b&&!r&&w&&s.isElement&&s.virtual.update(!1,!1,o),s.setTransition(t),s.setTranslate(g),s.updateActiveIndex(o),s.updateSlidesClasses(),s.emit("beforeTransitionStart",t,i),s.transitionStart(n,y),0===t?s.transitionEnd(n,y):s.animating||(s.animating=!0,s.onSlideToWrapperTransitionEnd||(s.onSlideToWrapperTransitionEnd=function(e){s&&!s.destroyed&&e.target===this&&(s.wrapperEl.removeEventListener("transitionend",s.onSlideToWrapperTransitionEnd),s.onSlideToWrapperTransitionEnd=null,delete s.onSlideToWrapperTransitionEnd,s.transitionEnd(n,y))}),s.wrapperEl.addEventListener("transitionend",s.onSlideToWrapperTransitionEnd)),!0},slideToLoop:function(e=0,t,n=!0,i){"string"==typeof e&&(e=parseInt(e,10));const r=this;if(r.destroyed)return;void 0===t&&(t=r.params.speed);const s=r.grid&&r.params.grid&&r.params.grid.rows>1;let o=e;if(r.params.loop)if(r.virtual&&r.params.virtual.enabled)o+=r.virtual.slidesBefore;else{let e;if(s){const t=o*r.params.grid.rows;e=r.slides.find(e=>1*e.getAttribute("data-swiper-slide-index")===t).column}else e=r.getSlideIndexByData(o);const t=s?Math.ceil(r.slides.length/r.params.grid.rows):r.slides.length,{centeredSlides:n,slidesOffsetBefore:a,slidesOffsetAfter:l}=r.params,c=n||!!a||!!l;let u=r.params.slidesPerView;"auto"===u?u=r.slidesPerViewDynamic():(u=Math.ceil(parseFloat(r.params.slidesPerView,10)),c&&u%2==0&&(u+=1));let d=t-e<u;if(c&&(d=d||e<Math.ceil(u/2)),i&&c&&"auto"!==r.params.slidesPerView&&!s&&(d=!1),d){const n=c?e<r.activeIndex?"prev":"next":e-r.activeIndex-1<r.params.slidesPerView?"next":"prev";r.loopFix({direction:n,slideTo:!0,activeSlideIndex:"next"===n?e+1:e-t+1,slideRealIndex:"next"===n?r.realIndex:void 0})}if(s){const e=o*r.params.grid.rows;o=r.slides.find(t=>1*t.getAttribute("data-swiper-slide-index")===e).column}else o=r.getSlideIndexByData(o)}return requestAnimationFrame(()=>{r.slideTo(o,t,n,i)}),r},slideNext:function(e,t=!0,n){const i=this,{enabled:r,params:s,animating:o}=i;if(!r||i.destroyed)return i;void 0===e&&(e=i.params.speed);let a=s.slidesPerGroup;"auto"===s.slidesPerView&&1===s.slidesPerGroup&&s.slidesPerGroupAuto&&(a=Math.max(i.slidesPerViewDynamic("current",!0),1));const l=i.activeIndex<s.slidesPerGroupSkip?1:a,c=i.virtual&&s.virtual.enabled;if(s.loop){if(o&&!c&&s.loopPreventsSliding)return!1;if(i.loopFix({direction:"next"}),i._clientLeft=i.wrapperEl.clientLeft,i.activeIndex===i.slides.length-1&&s.cssMode)return requestAnimationFrame(()=>{i.slideTo(i.activeIndex+l,e,t,n)}),!0}return s.rewind&&i.isEnd?i.slideTo(0,e,t,n):i.slideTo(i.activeIndex+l,e,t,n)},slidePrev:function(e,t=!0,n){const i=this,{params:r,snapGrid:s,slidesGrid:o,rtlTranslate:a,enabled:l,animating:c}=i;if(!l||i.destroyed)return i;void 0===e&&(e=i.params.speed);const u=i.virtual&&r.virtual.enabled;if(r.loop){if(c&&!u&&r.loopPreventsSliding)return!1;i.loopFix({direction:"prev"}),i._clientLeft=i.wrapperEl.clientLeft}function d(e){return e<0?-Math.floor(Math.abs(e)):Math.floor(e)}const p=d(a?i.translate:-i.translate),h=s.map(e=>d(e)),f=r.freeMode&&r.freeMode.enabled;let m=s[h.indexOf(p)-1];if(void 0===m&&(r.cssMode||f)){let e;s.forEach((t,n)=>{p>=t&&(e=n)}),void 0!==e&&(m=f?s[e]:s[e>0?e-1:e])}let v=0;if(void 0!==m&&(v=o.indexOf(m),v<0&&(v=i.activeIndex-1),"auto"===r.slidesPerView&&1===r.slidesPerGroup&&r.slidesPerGroupAuto&&(v=v-i.slidesPerViewDynamic("previous",!0)+1,v=Math.max(v,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 r.loop&&0===i.activeIndex&&r.cssMode?(requestAnimationFrame(()=>{i.slideTo(v,e,t,n)}),!0):i.slideTo(v,e,t,n)},slideReset:function(e,t=!0,n){const i=this;if(!i.destroyed)return void 0===e&&(e=i.params.speed),i.slideTo(i.activeIndex,e,t,n)},slideToClosest:function(e,t=!0,n,i=.5){const r=this;if(r.destroyed)return;void 0===e&&(e=r.params.speed);let s=r.activeIndex;const o=Math.min(r.params.slidesPerGroupSkip,s),a=o+Math.floor((s-o)/r.params.slidesPerGroup),l=r.rtlTranslate?r.translate:-r.translate;if(l>=r.snapGrid[a]){const e=r.snapGrid[a];l-e>(r.snapGrid[a+1]-e)*i&&(s+=r.params.slidesPerGroup)}else{const e=r.snapGrid[a-1];l-e<=(r.snapGrid[a]-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;if(e.destroyed)return;const{params:t,slidesEl:n}=e,i="auto"===t.slidesPerView?e.slidesPerViewDynamic():t.slidesPerView;let r,s=e.getSlideIndexWhenGrid(e.clickedIndex);const o=e.isElement?"swiper-slide":`.${t.slideClass}`,a=e.grid&&e.params.grid&&e.params.grid.rows>1;if(t.loop){if(e.animating)return;r=parseInt(e.clickedSlide.getAttribute("data-swiper-slide-index"),10),t.centeredSlides?e.slideToLoop(r):s>(a?(e.slides.length-i)/2-(e.params.grid.rows-1):e.slides.length-i)?(e.loopFix(),s=e.getSlideIndex(z(n,`${o}[data-swiper-slide-index="${r}"]`)[0]),L(()=>{e.slideTo(s)})):e.slideTo(s)}else e.slideTo(s)}},ce={loopCreate:function(e,t){const n=this,{params:i,slidesEl:r}=n;if(!i.loop||n.virtual&&n.params.virtual.enabled)return;const s=()=>{z(r,`.${i.slideClass}, swiper-slide`).forEach((e,t)=>{e.setAttribute("data-swiper-slide-index",t)})},o=n.grid&&i.grid&&i.grid.rows>1;i.loopAddBlankSlides&&(i.slidesPerGroup>1||o)&&(()=>{const e=z(r,`.${i.slideBlankClass}`);e.forEach(e=>{e.remove()}),e.length>0&&(n.recalcSlides(),n.updateSlides())})();const a=i.slidesPerGroup*(o?i.grid.rows:1),l=n.slides.length%a!==0,c=o&&n.slides.length%i.grid.rows!==0,u=e=>{for(let t=0;t<e;t+=1){const e=n.isElement?H("swiper-slide",[i.slideBlankClass]):H("div",[i.slideClass,i.slideBlankClass]);n.slidesEl.append(e)}};l?(i.loopAddBlankSlides?(u(a-n.slides.length%a),n.recalcSlides(),n.updateSlides()):B(),s()):c?(i.loopAddBlankSlides?(u(i.grid.rows-n.slides.length%i.grid.rows),n.recalcSlides(),n.updateSlides()):B(),s()):s();const d=i.centeredSlides||!!i.slidesOffsetBefore||!!i.slidesOffsetAfter;n.loopFix({slideRealIndex:e,direction:d?void 0:"next",initial:t})},loopFix:function({slideRealIndex:e,slideTo:t=!0,direction:n,setTranslate:i,activeSlideIndex:r,initial:s,byController:o,byMousewheel:a}={}){const l=this;if(!l.params.loop)return;l.emit("beforeLoopFix");const{slides:c,allowSlidePrev:u,allowSlideNext:d,slidesEl:p,params:h}=l,{centeredSlides:f,slidesOffsetBefore:m,slidesOffsetAfter:v,initialSlide:g}=h,y=f||!!m||!!v;if(l.allowSlidePrev=!0,l.allowSlideNext=!0,l.virtual&&h.virtual.enabled)return t&&(y||0!==l.snapIndex?y&&l.snapIndex<h.slidesPerView?l.slideTo(l.virtual.slides.length+l.snapIndex,0,!1,!0):l.snapIndex===l.snapGrid.length-1&&l.slideTo(l.virtual.slidesBefore,0,!1,!0):l.slideTo(l.virtual.slides.length,0,!1,!0)),l.allowSlidePrev=u,l.allowSlideNext=d,void l.emit("loopFix");let b=h.slidesPerView;"auto"===b?b=l.slidesPerViewDynamic():(b=Math.ceil(parseFloat(h.slidesPerView,10)),y&&b%2==0&&(b+=1));const w=h.slidesPerGroupAuto?b:h.slidesPerGroup;let _=y?Math.max(w,Math.ceil(b/2)):w;_%w!==0&&(_+=w-_%w),_+=h.loopAdditionalSlides,l.loopedSlides=_;const S=l.grid&&h.grid&&h.grid.rows>1;(c.length<b+_||"cards"===l.params.effect&&c.length<b+2*_||S&&"row"===h.grid.fill)&&B();const E=[],k=[],x=S?Math.ceil(c.length/h.grid.rows):c.length,C=s&&x-g<b&&!y;let T=C?g:l.activeIndex;void 0===r?r=l.getSlideIndex(c.find(e=>e.classList.contains(h.slideActiveClass))):T=r;const A="next"===n||!n,O="prev"===n||!n;let L=0,D=0;const M=(S?c[r].column:r)+(y&&void 0===i?-b/2+.5:0);if(M<_){L=Math.max(_-M,w);for(let e=0;e<_-M;e+=1){const t=e-Math.floor(e/x)*x;if(S){const e=x-t-1;for(let t=c.length-1;t>=0;t-=1)c[t].column===e&&E.push(t)}else E.push(x-t-1)}}else if(M+b>x-_){D=Math.max(M-(x-2*_),w),C&&(D=Math.max(D,b-x+g+1));for(let e=0;e<D;e+=1){const t=e-Math.floor(e/x)*x;S?c.forEach((e,n)=>{e.column===t&&k.push(n)}):k.push(t)}}if(l.__preventObserver__=!0,requestAnimationFrame(()=>{l.__preventObserver__=!1}),"cards"===l.params.effect&&c.length<b+2*_&&(k.includes(r)&&k.splice(k.indexOf(r),1),E.includes(r)&&E.splice(E.indexOf(r),1)),O&&E.forEach(e=>{c[e].swiperLoopMoveDOM=!0,p.prepend(c[e]),c[e].swiperLoopMoveDOM=!1}),A&&k.forEach(e=>{c[e].swiperLoopMoveDOM=!0,p.append(c[e]),c[e].swiperLoopMoveDOM=!1}),l.recalcSlides(),"auto"===h.slidesPerView?l.updateSlides():S&&(E.length>0&&O||k.length>0&&A)&&l.slides.forEach((e,t)=>{l.grid.updateSlide(t,e,l.slides)}),h.watchSlidesProgress&&l.updateSlidesOffset(),t)if(E.length>0&&O){if(void 0===e){const e=l.slidesGrid[T],t=l.slidesGrid[T+L]-e;a?l.setTranslate(l.translate-t):(l.slideTo(T+Math.ceil(L),0,!1,!0),i&&(l.touchEventsData.startTranslate=l.touchEventsData.startTranslate-t,l.touchEventsData.currentTranslate=l.touchEventsData.currentTranslate-t))}else if(i){const e=S?E.length/h.grid.rows:E.length;l.slideTo(l.activeIndex+e,0,!1,!0),l.touchEventsData.currentTranslate=l.translate}}else if(k.length>0&&A)if(void 0===e){const e=l.slidesGrid[T],t=l.slidesGrid[T-D]-e;a?l.setTranslate(l.translate-t):(l.slideTo(T-D,0,!1,!0),i&&(l.touchEventsData.startTranslate=l.touchEventsData.startTranslate-t,l.touchEventsData.currentTranslate=l.touchEventsData.currentTranslate-t))}else{const e=S?k.length/h.grid.rows:k.length;l.slideTo(l.activeIndex-e,0,!1,!0)}if(l.allowSlidePrev=u,l.allowSlideNext=d,l.controller&&l.controller.control&&!o){const s={slideRealIndex:e,direction:n,setTranslate:i,activeSlideIndex:r,byController:!0};Array.isArray(l.controller.control)?l.controller.control.forEach(e=>{!e.destroyed&&e.params.loop&&e.loopFix({...s,slideTo:e.params.slidesPerView===h.slidesPerView&&t})}):l.controller.control instanceof l.constructor&&l.controller.control.params.loop&&l.controller.control.loopFix({...s,slideTo:l.controller.control.params.slidesPerView===h.slidesPerView&&t})}l.emit("loopFix")},loopDestroy:function(){const e=this,{params:t,slidesEl:n}=e;if(!t.loop||!n||e.virtual&&e.params.virtual.enabled)return;e.recalcSlides();const i=[];e.slides.forEach(e=>{const t=void 0===e.swiperSlideIndex?1*e.getAttribute("data-swiper-slide-index"):e.swiperSlideIndex;i[t]=e}),e.slides.forEach(e=>{e.removeAttribute("data-swiper-slide-index")}),i.forEach(e=>{n.append(e)}),e.recalcSlides(),e.slideTo(e.realIndex,0)}};function ue(e,t,n){const i=A(),{params:r}=e,s=r.edgeSwipeDetection,o=r.edgeSwipeThreshold;return!s||!(n<=o||n>=i.innerWidth-o)||"prevent"===s&&(t.preventDefault(),!0)}function de(e){const t=this,n=C();let i=e;i.originalEvent&&(i=i.originalEvent);const r=t.touchEventsData;if("pointerdown"===i.type){if(null!==r.pointerId&&r.pointerId!==i.pointerId)return;r.pointerId=i.pointerId}else"touchstart"===i.type&&1===i.targetTouches.length&&(r.touchId=i.targetTouches[0].identifier);if("touchstart"===i.type)return void ue(t,i,i.targetTouches[0].pageX);const{params:s,touches:o,enabled:a}=t;if(!a)return;if(!s.simulateTouch&&"mouse"===i.pointerType)return;if(t.animating&&s.preventInteractionOnTransition)return;!t.animating&&s.cssMode&&s.loop&&t.loopFix();let l=i.target;if("wrapper"===s.touchEventsTarget&&!function(e,t){const n=A();let i=t.contains(e);return!i&&n.HTMLSlotElement&&t instanceof HTMLSlotElement&&(i=[...t.assignedElements()].includes(e),i||(i=function(e,t){const n=[t];for(;n.length>0;){const t=n.shift();if(e===t)return!0;n.push(...t.children,...t.shadowRoot?t.shadowRoot.children:[],...t.assignedElements?t.assignedElements():[])}}(e,t))),i}(l,t.wrapperEl))return;if("which"in i&&3===i.which)return;if("button"in i&&i.button>0)return;if(r.isTouched&&r.isMoved)return;const c=!!s.noSwipingClass&&""!==s.noSwipingClass,u=i.composedPath?i.composedPath():i.path;c&&i.target&&i.target.shadowRoot&&u&&(l=u[0]);const d=s.noSwipingSelector?s.noSwipingSelector:`.${s.noSwipingClass}`,p=!(!i.target||!i.target.shadowRoot);if(s.noSwiping&&(p?function(e,t=this){return function t(n){if(!n||n===C()||n===A())return null;n.assignedSlot&&(n=n.assignedSlot);const i=n.closest(e);return i||n.getRootNode?i||t(n.getRootNode().host):null}(t)}(d,l):l.closest(d)))return void(t.allowClick=!0);if(s.swipeHandler&&!l.closest(s.swipeHandler))return;o.currentX=i.pageX,o.currentY=i.pageY;const h=o.currentX,f=o.currentY;if(!ue(t,i,h))return;Object.assign(r,{isTouched:!0,isMoved:!1,allowTouchCallbacks:!0,isScrolling:void 0,startMoving:void 0}),o.startX=h,o.startY=f,r.touchStartTime=D(),t.allowClick=!0,t.updateSize(),t.swipeDirection=void 0,s.threshold>0&&(r.allowThresholdMove=!1);let m=!0;l.matches(r.focusableElements)&&(m=!1,"SELECT"===l.nodeName&&(r.isTouched=!1)),n.activeElement&&n.activeElement.matches(r.focusableElements)&&n.activeElement!==l&&("mouse"===i.pointerType||"mouse"!==i.pointerType&&!l.matches(r.focusableElements))&&n.activeElement.blur();const v=m&&t.allowTouchMove&&s.touchStartPreventDefault;!s.touchStartForcePreventDefault&&!v||l.isContentEditable||i.preventDefault(),s.freeMode&&s.freeMode.enabled&&t.freeMode&&t.animating&&!s.cssMode&&t.freeMode.onTouchStart(),t.emit("touchStart",i)}function pe(e){const t=C(),n=this,i=n.touchEventsData,{params:r,touches:s,rtlTranslate:o,enabled:a}=n;if(!a)return;if(!r.simulateTouch&&"mouse"===e.pointerType)return;let l,c=e;if(c.originalEvent&&(c=c.originalEvent),"pointermove"===c.type){if(null!==i.touchId)return;if(c.pointerId!==i.pointerId)return}if("touchmove"===c.type){if(l=[...c.changedTouches].find(e=>e.identifier===i.touchId),!l||l.identifier!==i.touchId)return}else l=c;if(!i.isTouched)return void(i.startMoving&&i.isScrolling&&n.emit("touchMoveOpposite",c));const u=l.pageX,d=l.pageY;if(c.preventedByNestedSwiper)return s.startX=u,void(s.startY=d);if(!n.allowTouchMove)return c.target.matches(i.focusableElements)||(n.allowClick=!1),void(i.isTouched&&(Object.assign(s,{startX:u,startY:d,currentX:u,currentY:d}),i.touchStartTime=D()));if(r.touchReleaseOnEdges&&!r.loop)if(n.isVertical()){if(d<s.startY&&n.translate<=n.maxTranslate()||d>s.startY&&n.translate>=n.minTranslate())return i.isTouched=!1,void(i.isMoved=!1)}else{if(o&&(u>s.startX&&-n.translate<=n.maxTranslate()||u<s.startX&&-n.translate>=n.minTranslate()))return;if(!o&&(u<s.startX&&n.translate<=n.maxTranslate()||u>s.startX&&n.translate>=n.minTranslate()))return}if(t.activeElement&&t.activeElement.matches(i.focusableElements)&&t.activeElement!==c.target&&"mouse"!==c.pointerType&&t.activeElement.blur(),t.activeElement&&c.target===t.activeElement&&c.target.matches(i.focusableElements))return i.isMoved=!0,void(n.allowClick=!1);i.allowTouchCallbacks&&n.emit("touchMove",c),s.previousX=s.currentX,s.previousY=s.currentY,s.currentX=u,s.currentY=d;const p=s.currentX-s.startX,h=s.currentY-s.startY;if(n.params.threshold&&Math.sqrt(p**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:p*p+h*h>=25&&(e=180*Math.atan2(Math.abs(h),Math.abs(p))/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||"touchmove"===c.type&&i.preventTouchMoveFromPointerMove)return void(i.isTouched=!1);if(!i.startMoving)return;n.allowClick=!1,!r.cssMode&&c.cancelable&&c.preventDefault(),r.touchMoveStopPropagation&&!r.nested&&c.stopPropagation();let f=n.isHorizontal()?p:h,m=n.isHorizontal()?s.currentX-s.previousX:s.currentY-s.previousY;r.oneWayMovement&&(f=Math.abs(f)*(o?1:-1),m=Math.abs(m)*(o?1:-1)),s.diff=f,f*=r.touchRatio,o&&(f=-f,m=-m);const v=n.touchesDirection;n.swipeDirection=f>0?"prev":"next",n.touchesDirection=m>0?"prev":"next";const g=n.params.loop&&!r.cssMode,y="next"===n.touchesDirection&&n.allowSlideNext||"prev"===n.touchesDirection&&n.allowSlidePrev;if(!i.isMoved){if(g&&y&&n.loopFix({direction:n.swipeDirection}),i.startTranslate=n.getTranslate(),n.setTransition(0),n.animating){const e=new window.CustomEvent("transitionend",{bubbles:!0,cancelable:!0,detail:{bySwiperTouchMove:!0}});n.wrapperEl.dispatchEvent(e)}i.allowMomentumBounce=!1,!r.grabCursor||!0!==n.allowSlideNext&&!0!==n.allowSlidePrev||n.setGrabCursor(!0),n.emit("sliderFirstMove",c)}if((new Date).getTime(),!1!==r._loopSwapReset&&i.isMoved&&i.allowThresholdMove&&v!==n.touchesDirection&&g&&y&&Math.abs(f)>=1)return Object.assign(s,{startX:u,startY:d,currentX:u,currentY:d,startTranslate:i.currentTranslate}),i.loopSwapReset=!0,void(i.startTranslate=i.currentTranslate);n.emit("sliderMove",c),i.isMoved=!0,i.currentTranslate=f+i.startTranslate;let b=!0,w=r.resistanceRatio;if(r.touchReleaseOnEdges&&(w=0),f>0?(g&&y&&i.allowThresholdMove&&i.currentTranslate>(r.centeredSlides?n.minTranslate()-n.slidesSizesGrid[n.activeIndex+1]-("auto"!==r.slidesPerView&&n.slides.length-r.slidesPerView>=2?n.slidesSizesGrid[n.activeIndex+1]+n.params.spaceBetween:0)-n.params.spaceBetween:n.minTranslate())&&n.loopFix({direction:"prev",setTranslate:!0,activeSlideIndex:0}),i.currentTranslate>n.minTranslate()&&(b=!1,r.resistance&&(i.currentTranslate=n.minTranslate()-1+(-n.minTranslate()+i.startTranslate+f)**w))):f<0&&(g&&y&&i.allowThresholdMove&&i.currentTranslate<(r.centeredSlides?n.maxTranslate()+n.slidesSizesGrid[n.slidesSizesGrid.length-1]+n.params.spaceBetween+("auto"!==r.slidesPerView&&n.slides.length-r.slidesPerView>=2?n.slidesSizesGrid[n.slidesSizesGrid.length-1]+n.params.spaceBetween:0):n.maxTranslate())&&n.loopFix({direction:"next",setTranslate:!0,activeSlideIndex:n.slides.length-("auto"===r.slidesPerView?n.slidesPerViewDynamic():Math.ceil(parseFloat(r.slidesPerView,10)))}),i.currentTranslate<n.maxTranslate()&&(b=!1,r.resistance&&(i.currentTranslate=n.maxTranslate()+1-(n.maxTranslate()-i.startTranslate-f)**w))),b&&(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(f)>r.threshold||i.allowThresholdMove))return void(i.currentTranslate=i.startTranslate);if(!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()),r.freeMode&&r.freeMode.enabled&&n.freeMode&&n.freeMode.onTouchMove(),n.updateProgress(i.currentTranslate),n.setTranslate(i.currentTranslate))}function he(e){const t=this,n=t.touchEventsData;let i,r=e;if(r.originalEvent&&(r=r.originalEvent),"touchend"===r.type||"touchcancel"===r.type){if(i=[...r.changedTouches].find(e=>e.identifier===n.touchId),!i||i.identifier!==n.touchId)return}else{if(null!==n.touchId)return;if(r.pointerId!==n.pointerId)return;i=r}if(["pointercancel","pointerout","pointerleave","contextmenu"].includes(r.type)&&(!["pointercancel","contextmenu"].includes(r.type)||!t.browser.isSafari&&!t.browser.isWebView))return;n.pointerId=null,n.touchId=null;const{params:s,touches:o,rtlTranslate:a,slidesGrid:l,enabled:c}=t;if(!c)return;if(!s.simulateTouch&&"mouse"===r.pointerType)return;if(n.allowTouchCallbacks&&t.emit("touchEnd",r),n.allowTouchCallbacks=!1,!n.isTouched)return n.isMoved&&s.grabCursor&&t.setGrabCursor(!1),n.isMoved=!1,void(n.startMoving=!1);s.grabCursor&&n.isMoved&&n.isTouched&&(!0===t.allowSlideNext||!0===t.allowSlidePrev)&&t.setGrabCursor(!1);const u=D(),d=u-n.touchStartTime;if(t.allowClick){const e=r.path||r.composedPath&&r.composedPath();t.updateClickedSlide(e&&e[0]||r.target,e),t.emit("tap click",r),d<300&&u-n.lastClickTime<300&&t.emit("doubleTap doubleClick",r)}if(n.lastClickTime=D(),L(()=>{t.destroyed||(t.allowClick=!0)}),!n.isTouched||!n.isMoved||!t.swipeDirection||0===o.diff&&!n.loopSwapReset||n.currentTranslate===n.startTranslate&&!n.loopSwapReset)return n.isTouched=!1,n.isMoved=!1,void(n.startMoving=!1);let p;if(n.isTouched=!1,n.isMoved=!1,n.startMoving=!1,p=s.followFinger?a?t.translate:-t.translate:-n.currentTranslate,s.cssMode)return;if(s.freeMode&&s.freeMode.enabled)return void t.freeMode.onTouchEnd({currentPos:p});const h=p>=-t.maxTranslate()&&!t.params.loop;let f=0,m=t.slidesSizesGrid[0];for(let e=0;e<l.length;e+=e<s.slidesPerGroupSkip?1:s.slidesPerGroup){const t=e<s.slidesPerGroupSkip-1?1:s.slidesPerGroup;void 0!==l[e+t]?(h||p>=l[e]&&p<l[e+t])&&(f=e,m=l[e+t]-l[e]):(h||p>=l[e])&&(f=e,m=l[l.length-1]-l[l.length-2])}let v=null,g=null;s.rewind&&(t.isBeginning?g=s.virtual&&s.virtual.enabled&&t.virtual?t.virtual.slides.length-1:t.slides.length-1:t.isEnd&&(v=0));const y=(p-l[f])/m,b=f<s.slidesPerGroupSkip-1?1:s.slidesPerGroup;if(d>s.longSwipesMs){if(!s.longSwipes)return void t.slideTo(t.activeIndex);"next"===t.swipeDirection&&(y>=s.longSwipesRatio?t.slideTo(s.rewind&&t.isEnd?v:f+b):t.slideTo(f)),"prev"===t.swipeDirection&&(y>1-s.longSwipesRatio?t.slideTo(f+b):null!==g&&y<0&&Math.abs(y)>s.longSwipesRatio?t.slideTo(g):t.slideTo(f))}else{if(!s.shortSwipes)return void t.slideTo(t.activeIndex);!t.navigation||r.target!==t.navigation.nextEl&&r.target!==t.navigation.prevEl?("next"===t.swipeDirection&&t.slideTo(null!==v?v:f+b),"prev"===t.swipeDirection&&t.slideTo(null!==g?g:f)):r.target===t.navigation.nextEl?t.slideTo(f+b):t.slideTo(f)}}function fe(){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,o=e.virtual&&e.params.virtual.enabled;e.allowSlideNext=!0,e.allowSlidePrev=!0,e.updateSize(),e.updateSlides(),e.updateSlidesClasses();const a=o&&t.loop;if(!("auto"===t.slidesPerView||t.slidesPerView>1)||!e.isEnd||e.isBeginning||e.params.centeredSlides||a)e.params.loop&&!o?e.slideToLoop(e.realIndex,0,!1,!0):e.slideTo(e.activeIndex,0,!1,!0);else{const t=o?e.virtual.slides:e.slides;e.slideTo(t.length-1,0,!1,!0)}e.autoplay&&e.autoplay.running&&e.autoplay.paused&&(clearTimeout(e.autoplay.resizeTimeout),e.autoplay.resizeTimeout=setTimeout(()=>{e.autoplay&&e.autoplay.running&&e.autoplay.paused&&e.autoplay.resume()},500)),e.allowSlidePrev=r,e.allowSlideNext=i,e.params.watchOverflow&&s!==e.snapGrid&&e.checkOverflow()}function me(e){const t=this;t.enabled&&(t.allowClick||(t.params.preventClicks&&e.preventDefault(),t.params.preventClicksPropagation&&t.animating&&(e.stopPropagation(),e.stopImmediatePropagation())))}function ve(){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)}function ge(e){const t=this;ne(t,e.target),t.params.cssMode||"auto"!==t.params.slidesPerView&&!t.params.autoHeight||t.update()}function ye(){const e=this;e.documentTouchHandlerProceeded||(e.documentTouchHandlerProceeded=!0,e.params.touchReleaseOnEdges&&(e.el.style.touchAction="auto"))}const be=(e,t)=>{const n=C(),{params:i,el:r,wrapperEl:s,device:o}=e,a=!!i.nested,l="on"===t?"addEventListener":"removeEventListener",c=t;r&&"string"!=typeof r&&(n[l]("touchstart",e.onDocumentTouchStart,{passive:!1,capture:a}),r[l]("touchstart",e.onTouchStart,{passive:!1}),r[l]("pointerdown",e.onTouchStart,{passive:!1}),n[l]("touchmove",e.onTouchMove,{passive:!1,capture:a}),n[l]("pointermove",e.onTouchMove,{passive:!1,capture:a}),n[l]("touchend",e.onTouchEnd,{passive:!0}),n[l]("pointerup",e.onTouchEnd,{passive:!0}),n[l]("pointercancel",e.onTouchEnd,{passive:!0}),n[l]("touchcancel",e.onTouchEnd,{passive:!0}),n[l]("pointerout",e.onTouchEnd,{passive:!0}),n[l]("pointerleave",e.onTouchEnd,{passive:!0}),n[l]("contextmenu",e.onTouchEnd,{passive:!0}),(i.preventClicks||i.preventClicksPropagation)&&r[l]("click",e.onClick,!0),i.cssMode&&s[l]("scroll",e.onScroll),i.updateOnWindowResize?e[c](o.ios||o.android?"resize orientationchange observerUpdate":"resize observerUpdate",fe,!0):e[c]("observerUpdate",fe,!0),r[l]("load",e.onLoad,{capture:!0}))},we=(e,t)=>e.grid&&t.grid&&t.grid.rows>1;var _e={setBreakpoint:function(){const e=this,{realIndex:t,initialized:n,params:i,el:r}=e,s=i.breakpoints;if(!s||s&&0===Object.keys(s).length)return;const o=C(),a="window"!==i.breakpointsBase&&i.breakpointsBase?"container":i.breakpointsBase,l=["window","container"].includes(i.breakpointsBase)||!i.breakpointsBase?e.el:o.querySelector(i.breakpointsBase),c=e.getBreakpoint(s,a,l);if(!c||e.currentBreakpoint===c)return;const u=(c in s?s[c]:void 0)||e.originalParams,d=we(e,i),p=we(e,u),h=e.params.grabCursor,f=u.grabCursor,m=i.enabled;d&&!p?(r.classList.remove(`${i.containerModifierClass}grid`,`${i.containerModifierClass}grid-column`),e.emitContainerClasses()):!d&&p&&(r.classList.add(`${i.containerModifierClass}grid`),(u.grid.fill&&"column"===u.grid.fill||!u.grid.fill&&"column"===i.grid.fill)&&r.classList.add(`${i.containerModifierClass}grid-column`),e.emitContainerClasses()),h&&!f?e.unsetGrabCursor():!h&&f&&e.setGrabCursor(),["navigation","pagination","scrollbar"].forEach(t=>{if(void 0===u[t])return;const n=i[t]&&i[t].enabled,r=u[t]&&u[t].enabled;n&&!r&&e[t].disable(),!n&&r&&e[t].enable()});const v=u.direction&&u.direction!==i.direction,g=i.loop&&(u.slidesPerView!==i.slidesPerView||v),y=i.loop;v&&n&&e.changeDirection(),I(e.params,u);const b=e.params.enabled,w=e.params.loop;Object.assign(e,{allowTouchMove:e.params.allowTouchMove,allowSlideNext:e.params.allowSlideNext,allowSlidePrev:e.params.allowSlidePrev}),m&&!b?e.disable():!m&&b&&e.enable(),e.currentBreakpoint=c,e.emit("_beforeBreakpoint",u),n&&(g?(e.loopDestroy(),e.loopCreate(t),e.updateSlides()):!y&&w?(e.loopCreate(t),e.updateSlides()):y&&!w&&e.loopDestroy()),e.emit("breakpoint",u)},getBreakpoint:function(e,t="window",n){if(!e||"container"===t&&!n)return;let i=!1;const r=A(),s="window"===t?r.innerHeight:n.clientHeight,o=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}});o.sort((e,t)=>parseInt(e.value,10)-parseInt(t.value,10));for(let e=0;e<o.length;e+=1){const{point:s,value:a}=o[e];"window"===t?r.matchMedia(`(min-width: ${a}px)`).matches&&(i=s):a<=n.clientWidth&&(i=s)}return i||"max"}},Se={addClasses:function(){const e=this,{classNames:t,params:n,rtl:i,el:r,device:s}=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,{"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.classList.add(...t),e.emitContainerClasses()},removeClasses:function(){const{el:e,classNames:t}=this;e&&"string"!=typeof e&&(e.classList.remove(...t),this.emitContainerClasses())}},Ee={init:!0,direction:"horizontal",oneWayMovement:!1,swiperElementNodeName:"SWIPER-CONTAINER",touchEventsTarget:"wrapper",initialSlide:0,speed:300,cssMode:!1,updateOnWindowResize:!0,resizeObserver:!0,nested:!1,createElements:!1,eventsPrefix:"swiper",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,snapToSlideEdge:!1,watchOverflow:!0,roundLengths:!1,touchRatio:1,touchAngle:45,simulateTouch:!0,shortSwipes:!0,longSwipes:!0,longSwipesRatio:.5,longSwipesMs:300,followFinger:!0,allowTouchMove:!0,threshold:5,touchMoveStopPropagation:!1,touchStartPreventDefault:!0,touchStartForcePreventDefault:!1,touchReleaseOnEdges:!1,uniqueNavElements:!0,resistance:!0,resistanceRatio:.85,watchSlidesProgress:!1,grabCursor:!1,preventClicks:!0,preventClicksPropagation:!0,slideToClickedSlide:!1,loop:!1,loopAddBlankSlides:!0,loopAdditionalSlides:0,loopPreventsSliding:!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-blank",slideActiveClass:"swiper-slide-active",slideVisibleClass:"swiper-slide-visible",slideFullyVisibleClass:"swiper-slide-fully-visible",slideNextClass:"swiper-slide-next",slidePrevClass:"swiper-slide-prev",wrapperClass:"swiper-wrapper",lazyPreloaderClass:"swiper-lazy-preloader",lazyPreloadPrevNext:0,runCallbacksOnInit:!0,_emitClasses:!1};function ke(e,t){return function(n={}){const i=Object.keys(n)[0],r=n[i];"object"==typeof r&&null!==r?(!0===e[i]&&(e[i]={enabled:!0}),"navigation"===i&&e[i]&&e[i].enabled&&!e[i].prevEl&&!e[i].nextEl&&(e[i].auto=!0),["pagination","scrollbar"].indexOf(i)>=0&&e[i]&&e[i].enabled&&!e[i].el&&(e[i].auto=!0),i in e&&"enabled"in r?("object"!=typeof e[i]||"enabled"in e[i]||(e[i].enabled=!0),e[i]||(e[i]={enabled:!1}),I(t,n)):I(t,n)):I(t,n)}}const xe={eventsEmitter:Z,update:se,translate:oe,transition:{setTransition:function(e,t){const n=this;n.params.cssMode||(n.wrapperEl.style.transitionDuration=`${e}ms`,n.wrapperEl.style.transitionDelay=0===e?"0ms":""),n.emit("setTransition",e,t)},transitionStart:function(e=!0,t){const n=this,{params:i}=n;i.cssMode||(i.autoHeight&&n.updateAutoHeight(),ae({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),ae({swiper:n,runCallbacks:e,direction:t,step:"End"}))}},slide:le,loop:ce,grabCursor:{setGrabCursor:function(e){const t=this;if(!t.params.simulateTouch||t.params.watchOverflow&&t.isLocked||t.params.cssMode)return;const n="container"===t.params.touchEventsTarget?t.el:t.wrapperEl;t.isElement&&(t.__preventObserver__=!0),n.style.cursor="move",n.style.cursor=e?"grabbing":"grab",t.isElement&&requestAnimationFrame(()=>{t.__preventObserver__=!1})},unsetGrabCursor:function(){const e=this;e.params.watchOverflow&&e.isLocked||e.params.cssMode||(e.isElement&&(e.__preventObserver__=!0),e["container"===e.params.touchEventsTarget?"el":"wrapperEl"].style.cursor="",e.isElement&&requestAnimationFrame(()=>{e.__preventObserver__=!1}))}},events:{attachEvents:function(){const e=this,{params:t}=e;e.onTouchStart=de.bind(e),e.onTouchMove=pe.bind(e),e.onTouchEnd=he.bind(e),e.onDocumentTouchStart=ye.bind(e),t.cssMode&&(e.onScroll=ve.bind(e)),e.onClick=me.bind(e),e.onLoad=ge.bind(e),be(e,"on")},detachEvents:function(){be(this,"off")}},breakpoints:_e,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:Se},Ce={};class Te{constructor(...e){let t,n;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=I({},n),t&&!n.el&&(n.el=t);const i=C();if(n.el&&"string"==typeof n.el&&i.querySelectorAll(n.el).length>1){const e=[];return i.querySelectorAll(n.el).forEach(t=>{const i=I({},n,{el:t});e.push(new Te(i))}),e}const r=this;r.__swiper__=!0,r.support=K(),r.device=J({userAgent:n.userAgent}),r.browser=Q(),r.eventsListeners={},r.eventsAnyListeners=[],r.modules=[...r.__modules__],n.modules&&Array.isArray(n.modules)&&n.modules.forEach(e=>{"function"==typeof e&&r.modules.indexOf(e)<0&&r.modules.push(e)});const s={};r.modules.forEach(e=>{e({params:n,swiper:r,extendParams:ke(n,s),on:r.on.bind(r),once:r.once.bind(r),off:r.off.bind(r),emit:r.emit.bind(r)})});const o=I({},Ee,s);return r.params=I({},o,Ce,n),r.originalParams=I({},r.params),r.passedParams=I({},n),r.params&&r.params.on&&Object.keys(r.params.on).forEach(e=>{r.on(e,r.params.on[e])}),r.params&&r.params.onAny&&r.onAny(r.params.onAny),Object.assign(r,{enabled:r.params.enabled,el:t,classNames:[],slides:[],slidesGrid:[],snapGrid:[],slidesSizesGrid:[],isHorizontal:()=>"horizontal"===r.params.direction,isVertical:()=>"vertical"===r.params.direction,activeIndex:0,realIndex:0,isBeginning:!0,isEnd:!1,translate:0,previousTranslate:0,progress:0,velocity:0,animating:!1,cssOverflowAdjustment(){return Math.trunc(this.translate/2**23)*2**23},allowSlideNext:r.params.allowSlideNext,allowSlidePrev:r.params.allowSlidePrev,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:r.params.focusableElements,lastClickTime:0,clickTimeout:void 0,velocities:[],allowMomentumBounce:void 0,startMoving:void 0,pointerId:null,touchId:null},allowClick:!0,allowTouchMove:r.params.allowTouchMove,touches:{startX:0,startY:0,currentX:0,currentY:0,diff:0},imagesToLoad:[],imagesLoaded:0}),r.emit("_swiper"),r.params.init&&r.init(),r}getDirectionLabel(e){return this.isHorizontal()?e:{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"}[e]}getSlideIndex(e){const{slidesEl:t,params:n}=this,i=j(z(t,`.${n.slideClass}, swiper-slide`)[0]);return j(e)-i}getSlideIndexByData(e){return this.getSlideIndex(this.slides.find(t=>1*t.getAttribute("data-swiper-slide-index")===e))}getSlideIndexWhenGrid(e){return this.grid&&this.params.grid&&this.params.grid.rows>1&&("column"===this.params.grid.fill?e=Math.floor(e/this.params.grid.rows):"row"===this.params.grid.fill&&(e%=Math.ceil(this.slides.length/this.params.grid.rows))),e}recalcSlides(){const{slidesEl:e,params:t}=this;this.slides=z(e,`.${t.slideClass}, swiper-slide`)}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.forEach(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:o,activeIndex:a}=this;let l=1;if("number"==typeof n.slidesPerView)return n.slidesPerView;if(n.centeredSlides){let e,t=i[a]?Math.ceil(i[a].swiperSlideSize):0;for(let n=a+1;n<i.length;n+=1)i[n]&&!e&&(t+=Math.ceil(i[n].swiperSlideSize),l+=1,t>o&&(e=!0));for(let n=a-1;n>=0;n-=1)i[n]&&!e&&(t+=i[n].swiperSlideSize,l+=1,t>o&&(e=!0))}else if("current"===e)for(let e=a+1;e<i.length;e+=1)(t?r[e]+s[e]-r[a]<o:r[e]-r[a]<o)&&(l+=1);else for(let e=a-1;e>=0;e-=1)r[a]-r[e]<o&&(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;if(n.breakpoints&&e.setBreakpoint(),[...e.el.querySelectorAll('[loading="lazy"]')].forEach(t=>{t.complete&&ne(e,t)}),e.updateSize(),e.updateSlides(),e.updateProgress(),e.updateSlidesClasses(),n.freeMode&&n.freeMode.enabled&&!n.cssMode)i(),n.autoHeight&&e.updateAutoHeight();else{if(("auto"===n.slidesPerView||n.slidesPerView>1)&&e.isEnd&&!n.centeredSlides){const t=e.virtual&&n.virtual.enabled?e.virtual.slides:e.slides;r=e.slideTo(t.length-1,0,!1,!0)}else r=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.classList.remove(`${n.params.containerModifierClass}${i}`),n.el.classList.add(`${n.params.containerModifierClass}${e}`),n.emitContainerClasses(),n.params.direction=e,n.slides.forEach(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.classList.add(`${t.params.containerModifierClass}rtl`),t.el.dir="rtl"):(t.el.classList.remove(`${t.params.containerModifierClass}rtl`),t.el.dir="ltr"),t.update())}mount(e){const t=this;if(t.mounted)return!0;let n=e||t.params.el;if("string"==typeof n&&(n=document.querySelector(n)),!n)return!1;n.swiper=t,n.parentNode&&n.parentNode.host&&n.parentNode.host.nodeName===t.params.swiperElementNodeName.toUpperCase()&&(t.isElement=!0);const i=()=>`.${(t.params.wrapperClass||"").trim().split(" ").join(".")}`;let r=n&&n.shadowRoot&&n.shadowRoot.querySelector?n.shadowRoot.querySelector(i()):z(n,i())[0];return!r&&t.params.createElements&&(r=H("div",t.params.wrapperClass),n.append(r),z(n,`.${t.params.slideClass}`).forEach(e=>{r.append(e)})),Object.assign(t,{el:n,wrapperEl:r,slidesEl:t.isElement&&!n.parentNode.host.slideSlots?n.parentNode.host:r,hostEl:t.isElement?n.parentNode.host:n,mounted:!0,rtl:"rtl"===n.dir.toLowerCase()||"rtl"===V(n,"direction"),rtlTranslate:"horizontal"===t.params.direction&&("rtl"===n.dir.toLowerCase()||"rtl"===V(n,"direction")),wrongRTL:"-webkit-box"===V(r,"display")}),!0}init(e){const t=this;if(t.initialized)return t;if(!1===t.mount(e))return t;t.emit("beforeInit"),t.params.breakpoints&&t.setBreakpoint(),t.addClasses(),t.updateSize(),t.updateSlides(),t.params.watchOverflow&&t.checkOverflow(),t.params.grabCursor&&t.enabled&&t.setGrabCursor(),t.params.loop&&t.virtual&&t.params.virtual.enabled?t.slideTo(t.params.initialSlide+t.virtual.slidesBefore,0,t.params.runCallbacksOnInit,!1,!0):t.slideTo(t.params.initialSlide,0,t.params.runCallbacksOnInit,!1,!0),t.params.loop&&t.loopCreate(void 0,!0),t.attachEvents();const n=[...t.el.querySelectorAll('[loading="lazy"]')];return t.isElement&&n.push(...t.hostEl.querySelectorAll('[loading="lazy"]')),n.forEach(e=>{e.complete?ne(t,e):e.addEventListener("load",e=>{ne(t,e.target)})}),re(t),t.initialized=!0,re(t),t.emit("init"),t.emit("afterInit"),t}destroy(e=!0,t=!0){const n=this,{params:i,el:r,wrapperEl:s,slides:o}=n;return void 0===n.params||n.destroyed||(n.emit("beforeDestroy"),n.initialized=!1,n.detachEvents(),i.loop&&n.loopDestroy(),t&&(n.removeClasses(),r&&"string"!=typeof r&&r.removeAttribute("style"),s&&s.removeAttribute("style"),o&&o.length&&o.forEach(e=>{e.classList.remove(i.slideVisibleClass,i.slideFullyVisibleClass,i.slideActiveClass,i.slideNextClass,i.slidePrevClass),e.removeAttribute("style"),e.removeAttribute("data-swiper-slide-index")})),n.emit("destroy"),Object.keys(n.eventsListeners).forEach(e=>{n.off(e)}),!1!==e&&(n.el&&"string"!=typeof n.el&&(n.el.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){I(Ce,e)}static get extendedDefaults(){return Ce}static get defaults(){return Ee}static installModule(e){Te.prototype.__modules__||(Te.prototype.__modules__=[]);const t=Te.prototype.__modules__;"function"==typeof e&&t.indexOf(e)<0&&t.push(e)}static use(e){return Array.isArray(e)?(e.forEach(e=>Te.installModule(e)),Te):(Te.installModule(e),Te)}}function Ae({swiper:e,extendParams:t,on:n,emit:i}){const r=C(),s=A();function o(t){if(!e.enabled)return;const{rtlTranslate:n}=e;let o=t;o.originalEvent&&(o=o.originalEvent);const a=o.keyCode||o.charCode,l=e.params.keyboard.pageUpDown,c=l&&33===a,u=l&&34===a,d=37===a,p=39===a,h=38===a,f=40===a;if(!e.allowSlideNext&&(e.isHorizontal()&&p||e.isVertical()&&f||u))return!1;if(!e.allowSlidePrev&&(e.isHorizontal()&&d||e.isVertical()&&h||c))return!1;if(o.shiftKey||o.altKey||o.ctrlKey||o.metaKey)return;if(r.activeElement&&(r.activeElement.isContentEditable||r.activeElement.nodeName&&("input"===r.activeElement.nodeName.toLowerCase()||"textarea"===r.activeElement.nodeName.toLowerCase())))return;if(e.params.keyboard.onlyInViewport&&(c||u||d||p||h||f)){let t=!1;if(q(e.el,`.${e.params.slideClass}, swiper-slide`).length>0&&0===q(e.el,`.${e.params.slideActiveClass}`).length)return;const i=e.el,r=i.clientWidth,o=i.clientHeight,a=s.innerWidth,l=s.innerHeight,c=F(i);n&&(c.left-=i.scrollLeft);const u=[[c.left,c.top],[c.left+r,c.top],[c.left,c.top+o],[c.left+r,c.top+o]];for(let e=0;e<u.length;e+=1){const n=u[e];if(n[0]>=0&&n[0]<=a&&n[1]>=0&&n[1]<=l){if(0===n[0]&&0===n[1])continue;t=!0}}if(!t)return}const m=e.params.keyboard.speed;e.isHorizontal()?((c||u||d||p)&&(o.preventDefault?o.preventDefault():o.returnValue=!1),((u||p)&&!n||(c||d)&&n)&&e.slideNext(m),((c||d)&&!n||(u||p)&&n)&&e.slidePrev(m)):((c||u||h||f)&&(o.preventDefault?o.preventDefault():o.returnValue=!1),(u||f)&&e.slideNext(m),(c||h)&&e.slidePrev(m)),i("keyPress",a)}function a(){e.keyboard.enabled||(r.addEventListener("keydown",o),e.keyboard.enabled=!0)}function l(){e.keyboard.enabled&&(r.removeEventListener("keydown",o),e.keyboard.enabled=!1)}e.keyboard={enabled:!1},t({keyboard:{enabled:!1,onlyInViewport:!0,pageUpDown:!0,speed:void 0}}),n("init",()=>{e.params.keyboard.enabled&&a()}),n("destroy",()=>{e.keyboard.enabled&&l()}),Object.assign(e.keyboard,{enable:a,disable:l})}function Oe({swiper:e,extendParams:t,on:n,emit:i}){const r=A();let s;t({mousewheel:{enabled:!1,releaseOnEdges:!1,invert:!1,forceToAxis:!1,sensitivity:1,eventsTarget:"container",thresholdDelta:null,thresholdTime:null,noMousewheelClass:"swiper-no-mousewheel"}}),e.mousewheel={enabled:!1};let o,a=D();const l=[];function c(){e.enabled&&(e.mouseEntered=!0)}function u(){e.enabled&&(e.mouseEntered=!1)}function d(t){return!(e.params.mousewheel.thresholdDelta&&t.delta<e.params.mousewheel.thresholdDelta||e.params.mousewheel.thresholdTime&&D()-a<e.params.mousewheel.thresholdTime||!(t.delta>=6&&D()-a<60)&&(t.direction<0?e.isEnd&&!e.params.loop||e.animating||(e.slideNext(),i("scroll",t.raw)):e.isBeginning&&!e.params.loop||e.animating||(e.slidePrev(),i("scroll",t.raw)),a=(new r.Date).getTime(),1))}function p(t){let n=t,r=!0;if(!e.enabled)return;if(t.target.closest(`.${e.params.mousewheel.noMousewheelClass}`))return;const a=e.params.mousewheel;e.params.cssMode&&n.preventDefault();let c=e.el;"container"!==e.params.mousewheel.eventsTarget&&(c=document.querySelector(e.params.mousewheel.eventsTarget));const u=c&&c.contains(n.target);if(!e.mouseEntered&&!u&&!a.releaseOnEdges)return!0;n.originalEvent&&(n=n.originalEvent);let p=0;const h=e.rtlTranslate?-1:1,f=function(e){let t=0,n=0,i=0,r=0;return"detail"in e&&(n=e.detail),"wheelDelta"in e&&(n=-e.wheelDelta/120),"wheelDeltaY"in e&&(n=-e.wheelDeltaY/120),"wheelDeltaX"in e&&(t=-e.wheelDeltaX/120),"axis"in e&&e.axis===e.HORIZONTAL_AXIS&&(t=n,n=0),i=10*t,r=10*n,"deltaY"in e&&(r=e.deltaY),"deltaX"in e&&(i=e.deltaX),e.shiftKey&&!i&&(i=r,r=0),(i||r)&&e.deltaMode&&(1===e.deltaMode?(i*=40,r*=40):(i*=800,r*=800)),i&&!t&&(t=i<1?-1:1),r&&!n&&(n=r<1?-1:1),{spinX:t,spinY:n,pixelX:i,pixelY:r}}(n);if(a.forceToAxis)if(e.isHorizontal()){if(!(Math.abs(f.pixelX)>Math.abs(f.pixelY)))return!0;p=-f.pixelX*h}else{if(!(Math.abs(f.pixelY)>Math.abs(f.pixelX)))return!0;p=-f.pixelY}else p=Math.abs(f.pixelX)>Math.abs(f.pixelY)?-f.pixelX*h:-f.pixelY;if(0===p)return!0;a.invert&&(p=-p);let m=e.getTranslate()+p*a.sensitivity;if(m>=e.minTranslate()&&(m=e.minTranslate()),m<=e.maxTranslate()&&(m=e.maxTranslate()),r=!!e.params.loop||!(m===e.minTranslate()||m===e.maxTranslate()),r&&e.params.nested&&n.stopPropagation(),e.params.freeMode&&e.params.freeMode.enabled){const t={time:D(),delta:Math.abs(p),direction:Math.sign(p)},r=o&&t.time<o.time+500&&t.delta<=o.delta&&t.direction===o.direction;if(!r){o=void 0;let c=e.getTranslate()+p*a.sensitivity;const u=e.isBeginning,d=e.isEnd;if(c>=e.minTranslate()&&(c=e.minTranslate()),c<=e.maxTranslate()&&(c=e.maxTranslate()),e.setTransition(0),e.setTranslate(c),e.updateProgress(),e.updateActiveIndex(),e.updateSlidesClasses(),(!u&&e.isBeginning||!d&&e.isEnd)&&e.updateSlidesClasses(),e.params.loop&&e.loopFix({direction:t.direction<0?"next":"prev",byMousewheel:!0}),e.params.freeMode.sticky){clearTimeout(s),s=void 0,l.length>=15&&l.shift();const n=l.length?l[l.length-1]:void 0,i=l[0];if(l.push(t),n&&(t.delta>n.delta||t.direction!==n.direction))l.splice(0);else if(l.length>=15&&t.time-i.time<500&&i.delta-t.delta>=1&&t.delta<=6){const n=p>0?.8:.2;o=t,l.splice(0),s=L(()=>{!e.destroyed&&e.params&&e.slideToClosest(e.params.speed,!0,void 0,n)},0)}s||(s=L(()=>{!e.destroyed&&e.params&&(o=t,l.splice(0),e.slideToClosest(e.params.speed,!0,void 0,.5))},500))}if(r||i("scroll",n),e.params.autoplay&&e.params.autoplay.disableOnInteraction&&e.autoplay.stop(),a.releaseOnEdges&&(c===e.minTranslate()||c===e.maxTranslate()))return!0}}else{const n={time:D(),delta:Math.abs(p),direction:Math.sign(p),raw:t};l.length>=2&&l.shift();const i=l.length?l[l.length-1]:void 0;if(l.push(n),i?(n.direction!==i.direction||n.delta>i.delta||n.time>i.time+150)&&d(n):d(n),function(t){const n=e.params.mousewheel;if(t.direction<0){if(e.isEnd&&!e.params.loop&&n.releaseOnEdges)return!0}else if(e.isBeginning&&!e.params.loop&&n.releaseOnEdges)return!0;return!1}(n))return!0}return n.preventDefault?n.preventDefault():n.returnValue=!1,!1}function h(t){let n=e.el;"container"!==e.params.mousewheel.eventsTarget&&(n=document.querySelector(e.params.mousewheel.eventsTarget)),n[t]("mouseenter",c),n[t]("mouseleave",u),n[t]("wheel",p)}function f(){return e.params.cssMode?(e.wrapperEl.removeEventListener("wheel",p),!0):!e.mousewheel.enabled&&(h("addEventListener"),e.mousewheel.enabled=!0,!0)}function m(){return e.params.cssMode?(e.wrapperEl.addEventListener(event,p),!0):!!e.mousewheel.enabled&&(h("removeEventListener"),e.mousewheel.enabled=!1,!0)}n("init",()=>{!e.params.mousewheel.enabled&&e.params.cssMode&&m(),e.params.mousewheel.enabled&&f()}),n("destroy",()=>{e.params.cssMode&&f(),e.mousewheel.enabled&&m()}),Object.assign(e.mousewheel,{enable:f,disable:m})}function Le(e,t,n,i){return e.params.createElements&&Object.keys(i).forEach(r=>{if(!n[r]&&!0===n.auto){let s=z(e.el,`.${i[r]}`)[0];s||(s=H("div",i[r]),s.className=i[r],e.el.append(s)),n[r]=s,t[r]=s}}),n}Object.keys(xe).forEach(e=>{Object.keys(xe[e]).forEach(t=>{Te.prototype[t]=xe[e][t]})}),Te.use([function({swiper:e,on:t,emit:n}){const i=A();let r=null,s=null;const o=()=>{e&&!e.destroyed&&e.initialized&&(n("beforeResize"),n("resize"))},a=()=>{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||o()})}),r.observe(e.el)):(i.addEventListener("resize",o),i.addEventListener("orientationchange",a))}),t("destroy",()=>{s&&i.cancelAnimationFrame(s),r&&r.unobserve&&e.el&&(r.unobserve(e.el),r=null),i.removeEventListener("resize",o),i.removeEventListener("orientationchange",a)})},function({swiper:e,extendParams:t,on:n,emit:i}){const r=[],s=A(),o=(t,n={})=>{const o=new(s.MutationObserver||s.WebkitMutationObserver)(t=>{if(e.__preventObserver__)return;if(1===t.length)return void i("observerUpdate",t[0]);const n=function(){i("observerUpdate",t[0])};s.requestAnimationFrame?s.requestAnimationFrame(n):s.setTimeout(n,0)});o.observe(t,{attributes:void 0===n.attributes||n.attributes,childList:e.isElement||(void 0===n.childList||n).childList,characterData:void 0===n.characterData||n.characterData}),r.push(o)};t({observer:!1,observeParents:!1,observeSlideChildren:!1}),n("init",()=>{if(e.params.observer){if(e.params.observeParents){const t=q(e.hostEl);for(let e=0;e<t.length;e+=1)o(t[e])}o(e.hostEl,{childList:e.params.observeSlideChildren}),o(e.wrapperEl,{attributes:!1})}}),n("destroy",()=>{r.forEach(e=>{e.disconnect()}),r.splice(0,r.length)})}]);const De='<svg class="swiper-navigation-icon" width="11" height="20" viewBox="0 0 11 20" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M0.38296 20.0762C0.111788 19.805 0.111788 19.3654 0.38296 19.0942L9.19758 10.2796L0.38296 1.46497C0.111788 1.19379 0.111788 0.754138 0.38296 0.482966C0.654131 0.211794 1.09379 0.211794 1.36496 0.482966L10.4341 9.55214C10.8359 9.9539 10.8359 10.6053 10.4341 11.007L1.36496 20.0762C1.09379 20.3474 0.654131 20.3474 0.38296 20.0762Z" fill="currentColor"/></svg>';function Me({swiper:e,extendParams:t,on:n,emit:i}){function r(t){let n;return t&&"string"==typeof t&&e.isElement&&(n=e.el.querySelector(t)||e.hostEl.querySelector(t),n)?n:(t&&("string"==typeof t&&(n=[...document.querySelectorAll(t)]),e.params.uniqueNavElements&&"string"==typeof t&&n&&n.length>1&&1===e.el.querySelectorAll(t).length?n=e.el.querySelector(t):n&&1===n.length&&(n=n[0])),t&&!n?t:n)}function s(t,n){const i=e.params.navigation;(t=$(t)).forEach(t=>{t&&(t.classList[n?"add":"remove"](...i.disabledClass.split(" ")),"BUTTON"===t.tagName&&(t.disabled=n),e.params.watchOverflow&&e.enabled&&t.classList[e.isLocked?"add":"remove"](i.lockClass))})}function o(){const{nextEl:t,prevEl:n}=e.navigation;if(e.params.loop)return s(n,!1),void s(t,!1);s(n,e.isBeginning&&!e.params.rewind),s(t,e.isEnd&&!e.params.rewind)}function a(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=Le(e,e.originalParams.navigation,e.params.navigation,{nextEl:"swiper-button-next",prevEl:"swiper-button-prev"}),!t.nextEl&&!t.prevEl)return;let n=r(t.nextEl),i=r(t.prevEl);Object.assign(e.navigation,{nextEl:n,prevEl:i}),n=$(n),i=$(i);const s=(n,i)=>{if(n){if(t.addIcons&&n.matches(".swiper-button-next,.swiper-button-prev")&&!n.querySelector("svg")){const e=document.createElement("div");W(e,De),n.appendChild(e.querySelector("svg")),e.remove()}n.addEventListener("click","next"===i?l:a)}!e.enabled&&n&&n.classList.add(...t.lockClass.split(" "))};n.forEach(e=>s(e,"next")),i.forEach(e=>s(e,"prev"))}function u(){let{nextEl:t,prevEl:n}=e.navigation;t=$(t),n=$(n);const i=(t,n)=>{t.removeEventListener("click","next"===n?l:a),t.classList.remove(...e.params.navigation.disabledClass.split(" "))};t.forEach(e=>i(e,"next")),n.forEach(e=>i(e,"prev"))}t({navigation:{nextEl:null,prevEl:null,addIcons:!0,hideOnClick:!1,disabledClass:"swiper-button-disabled",hiddenClass:"swiper-button-hidden",lockClass:"swiper-button-lock",navigationDisabledClass:"swiper-navigation-disabled"}}),e.navigation={nextEl:null,prevEl:null,arrowSvg:De},n("init",()=>{!1===e.params.navigation.enabled?d():(c(),o())}),n("toEdge fromEdge lock unlock",()=>{o()}),n("destroy",()=>{u()}),n("enable disable",()=>{let{nextEl:t,prevEl:n}=e.navigation;t=$(t),n=$(n),e.enabled?o():[...t,...n].filter(e=>!!e).forEach(t=>t.classList.add(e.params.navigation.lockClass))}),n("click",(t,n)=>{let{nextEl:r,prevEl:s}=e.navigation;r=$(r),s=$(s);const o=n.target;let a=s.includes(o)||r.includes(o);if(e.isElement&&!a){const e=n.path||n.composedPath&&n.composedPath();e&&(a=e.find(e=>r.includes(e)||s.includes(e)))}if(e.params.navigation.hideOnClick&&!a){if(e.pagination&&e.params.pagination&&e.params.pagination.clickable&&(e.pagination.el===o||e.pagination.el.contains(o)))return;let t;r.length?t=r[0].classList.contains(e.params.navigation.hiddenClass):s.length&&(t=s[0].classList.contains(e.params.navigation.hiddenClass)),i(!0===t?"navigationShow":"navigationHide"),[...r,...s].filter(e=>!!e).forEach(t=>t.classList.toggle(e.params.navigation.hiddenClass))}});const d=()=>{e.el.classList.add(...e.params.navigation.navigationDisabledClass.split(" ")),u()};Object.assign(e.navigation,{enable:()=>{e.el.classList.remove(...e.params.navigation.navigationDisabledClass.split(" ")),c(),o()},disable:d,update:o,init:c,destroy:u})}function Pe(e=""){return`.${e.trim().replace(/([\.:!+\/()[\]#>~*^$|=,'"@{}\\])/g,"\\$1").replace(/ /g,".")}`}function Ie({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,bullets:[]};let o=0;function a(){return!e.params.pagination.el||!e.pagination.el||Array.isArray(e.pagination.el)&&0===e.pagination.el.length}function l(t,n){const{bulletActiveClass:i}=e.params.pagination;t&&(t=t[("prev"===n?"previous":"next")+"ElementSibling"])&&(t.classList.add(`${i}-${n}`),(t=t[("prev"===n?"previous":"next")+"ElementSibling"])&&t.classList.add(`${i}-${n}-${n}`))}function c(t){const n=t.target.closest(Pe(e.params.pagination.bulletClass));if(!n)return;t.preventDefault();const i=j(n)*e.params.slidesPerGroup;if(e.params.loop){if(e.realIndex===i)return;const t=(r=e.realIndex,s=i,(s%=o=e.slides.length)===1+(r%=o)?"next":s===r-1?"previous":void 0);"next"===t?e.slideNext():"previous"===t?e.slidePrev():e.slideToLoop(i)}else e.slideTo(i);var r,s,o}function u(){const t=e.rtl,n=e.params.pagination;if(a())return;let r,c,u=e.pagination.el;u=$(u);const d=e.virtual&&e.params.virtual.enabled?e.virtual.slides.length:e.slides.length,p=e.params.loop?Math.ceil(d/e.params.slidesPerGroup):e.snapGrid.length;if(e.params.loop?(c=e.previousRealIndex||0,r=e.params.slidesPerGroup>1?Math.floor(e.realIndex/e.params.slidesPerGroup):e.realIndex):void 0!==e.snapIndex?(r=e.snapIndex,c=e.previousSnapIndex):(c=e.previousIndex||0,r=e.activeIndex||0),"bullets"===n.type&&e.pagination.bullets&&e.pagination.bullets.length>0){const i=e.pagination.bullets;let a,d,p;if(n.dynamicBullets&&(s=U(i[0],e.isHorizontal()?"width":"height"),u.forEach(t=>{t.style[e.isHorizontal()?"width":"height"]=s*(n.dynamicMainBullets+4)+"px"}),n.dynamicMainBullets>1&&void 0!==c&&(o+=r-(c||0),o>n.dynamicMainBullets-1?o=n.dynamicMainBullets-1:o<0&&(o=0)),a=Math.max(r-o,0),d=a+(Math.min(i.length,n.dynamicMainBullets)-1),p=(d+a)/2),i.forEach(e=>{const t=[...["","-next","-next-next","-prev","-prev-prev","-main"].map(e=>`${n.bulletActiveClass}${e}`)].map(e=>"string"==typeof e&&e.includes(" ")?e.split(" "):e).flat();e.classList.remove(...t)}),u.length>1)i.forEach(t=>{const i=j(t);i===r?t.classList.add(...n.bulletActiveClass.split(" ")):e.isElement&&t.setAttribute("part","bullet"),n.dynamicBullets&&(i>=a&&i<=d&&t.classList.add(...`${n.bulletActiveClass}-main`.split(" ")),i===a&&l(t,"prev"),i===d&&l(t,"next"))});else{const t=i[r];if(t&&t.classList.add(...n.bulletActiveClass.split(" ")),e.isElement&&i.forEach((e,t)=>{e.setAttribute("part",t===r?"bullet-active":"bullet")}),n.dynamicBullets){const e=i[a],t=i[d];for(let e=a;e<=d;e+=1)i[e]&&i[e].classList.add(...`${n.bulletActiveClass}-main`.split(" "));l(e,"prev"),l(t,"next")}}if(n.dynamicBullets){const r=Math.min(i.length,n.dynamicMainBullets+4),o=(s*r-s)/2-p*s,a=t?"right":"left";i.forEach(t=>{t.style[e.isHorizontal()?a:"top"]=`${o}px`})}}u.forEach((t,s)=>{if("fraction"===n.type&&(t.querySelectorAll(Pe(n.currentClass)).forEach(e=>{e.textContent=n.formatFractionCurrent(r+1)}),t.querySelectorAll(Pe(n.totalClass)).forEach(e=>{e.textContent=n.formatFractionTotal(p)})),"progressbar"===n.type){let i;i=n.progressbarOpposite?e.isHorizontal()?"vertical":"horizontal":e.isHorizontal()?"horizontal":"vertical";const s=(r+1)/p;let o=1,a=1;"horizontal"===i?o=s:a=s,t.querySelectorAll(Pe(n.progressbarFillClass)).forEach(t=>{t.style.transform=`translate3d(0,0,0) scaleX(${o}) scaleY(${a})`,t.style.transitionDuration=`${e.params.speed}ms`})}"custom"===n.type&&n.renderCustom?(W(t,n.renderCustom(e,r+1,p)),0===s&&i("paginationRender",t)):(0===s&&i("paginationRender",t),i("paginationUpdate",t)),e.params.watchOverflow&&e.enabled&&t.classList[e.isLocked?"add":"remove"](n.lockClass)})}function d(){const t=e.params.pagination;if(a())return;const n=e.virtual&&e.params.virtual.enabled?e.virtual.slides.length:e.grid&&e.params.grid.rows>1?e.slides.length/Math.ceil(e.params.grid.rows):e.slides.length;let r=e.pagination.el;r=$(r);let s="";if("bullets"===t.type){let i=e.params.loop?Math.ceil(n/e.params.slidesPerGroup):e.snapGrid.length;e.params.freeMode&&e.params.freeMode.enabled&&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} ${e.isElement?'part="bullet"':""} class="${t.bulletClass}"></${t.bulletElement}>`}"fraction"===t.type&&(s=t.renderFraction?t.renderFraction.call(e,t.currentClass,t.totalClass):`<span class="${t.currentClass}"></span> / <span class="${t.totalClass}"></span>`),"progressbar"===t.type&&(s=t.renderProgressbar?t.renderProgressbar.call(e,t.progressbarFillClass):`<span class="${t.progressbarFillClass}"></span>`),e.pagination.bullets=[],r.forEach(n=>{"custom"!==t.type&&W(n,s||""),"bullets"===t.type&&e.pagination.bullets.push(...n.querySelectorAll(Pe(t.bulletClass)))}),"custom"!==t.type&&i("paginationRender",r[0])}function p(){e.params.pagination=Le(e,e.originalParams.pagination,e.params.pagination,{el:"swiper-pagination"});const t=e.params.pagination;if(!t.el)return;let n;"string"==typeof t.el&&e.isElement&&(n=e.el.querySelector(t.el)),n||"string"!=typeof t.el||(n=[...document.querySelectorAll(t.el)]),n||(n=t.el),n&&0!==n.length&&(e.params.uniqueNavElements&&"string"==typeof t.el&&Array.isArray(n)&&n.length>1&&(n=[...e.el.querySelectorAll(t.el)],n.length>1&&(n=n.find(t=>q(t,".swiper")[0]===e.el))),Array.isArray(n)&&1===n.length&&(n=n[0]),Object.assign(e.pagination,{el:n}),n=$(n),n.forEach(n=>{"bullets"===t.type&&t.clickable&&n.classList.add(...(t.clickableClass||"").split(" ")),n.classList.add(t.modifierClass+t.type),n.classList.add(e.isHorizontal()?t.horizontalClass:t.verticalClass),"bullets"===t.type&&t.dynamicBullets&&(n.classList.add(`${t.modifierClass}${t.type}-dynamic`),o=0,t.dynamicMainBullets<1&&(t.dynamicMainBullets=1)),"progressbar"===t.type&&t.progressbarOpposite&&n.classList.add(t.progressbarOppositeClass),t.clickable&&n.addEventListener("click",c),e.enabled||n.classList.add(t.lockClass)}))}function h(){const t=e.params.pagination;if(a())return;let n=e.pagination.el;n&&(n=$(n),n.forEach(n=>{n.classList.remove(t.hiddenClass),n.classList.remove(t.modifierClass+t.type),n.classList.remove(e.isHorizontal()?t.horizontalClass:t.verticalClass),t.clickable&&(n.classList.remove(...(t.clickableClass||"").split(" ")),n.removeEventListener("click",c))})),e.pagination.bullets&&e.pagination.bullets.forEach(e=>e.classList.remove(...t.bulletActiveClass.split(" ")))}n("changeDirection",()=>{if(!e.pagination||!e.pagination.el)return;const t=e.params.pagination;let{el:n}=e.pagination;n=$(n),n.forEach(n=>{n.classList.remove(t.horizontalClass,t.verticalClass),n.classList.add(e.isHorizontal()?t.horizontalClass:t.verticalClass)})}),n("init",()=>{!1===e.params.pagination.enabled?f():(p(),d(),u())}),n("activeIndexChange",()=>{void 0===e.snapIndex&&u()}),n("snapIndexChange",()=>{u()}),n("snapGridLengthChange",()=>{d(),u()}),n("destroy",()=>{h()}),n("enable disable",()=>{let{el:t}=e.pagination;t&&(t=$(t),t.forEach(t=>t.classList[e.enabled?"remove":"add"](e.params.pagination.lockClass)))}),n("lock unlock",()=>{u()}),n("click",(t,n)=>{const r=n.target,s=$(e.pagination.el);if(e.params.pagination.el&&e.params.pagination.hideOnClick&&s&&s.length>0&&!r.classList.contains(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[0].classList.contains(e.params.pagination.hiddenClass);i(!0===t?"paginationShow":"paginationHide"),s.forEach(t=>t.classList.toggle(e.params.pagination.hiddenClass))}});const f=()=>{e.el.classList.add(e.params.pagination.paginationDisabledClass);let{el:t}=e.pagination;t&&(t=$(t),t.forEach(t=>t.classList.add(e.params.pagination.paginationDisabledClass))),h()};Object.assign(e.pagination,{enable:()=>{e.el.classList.remove(e.params.pagination.paginationDisabledClass);let{el:t}=e.pagination;t&&(t=$(t),t.forEach(t=>t.classList.remove(e.params.pagination.paginationDisabledClass))),p(),d(),u()},disable:f,render:d,update:u,init:p,destroy:h})}function Ne({swiper:e,extendParams:t,on:n,emit:i}){const r=C();let s,o,a,l,c=!1,u=null,d=null;function p(){if(!e.params.scrollbar.el||!e.scrollbar.el)return;const{scrollbar:t,rtlTranslate:n}=e,{dragEl:i,el:r}=t,s=e.params.scrollbar,l=e.params.loop?e.progressLoop:e.progress;let c=o,d=(a-o)*l;n?(d=-d,d>0?(c=o-d,d=0):-d+o>a&&(c=a+d)):d<0?(c=o+d,d=0):d+o>a&&(c=a-d),e.isHorizontal()?(i.style.transform=`translate3d(${d}px, 0, 0)`,i.style.width=`${c}px`):(i.style.transform=`translate3d(0px, ${d}px, 0)`,i.style.height=`${c}px`),s.hide&&(clearTimeout(u),r.style.opacity=1,u=setTimeout(()=>{r.style.opacity=0,r.style.transitionDuration="400ms"},1e3))}function h(){if(!e.params.scrollbar.el||!e.scrollbar.el)return;const{scrollbar:t}=e,{dragEl:n,el:i}=t;n.style.width="",n.style.height="",a=e.isHorizontal()?i.offsetWidth:i.offsetHeight,l=e.size/(e.virtualSize+e.params.slidesOffsetBefore-(e.params.centeredSlides?e.snapGrid[0]:0)),o="auto"===e.params.scrollbar.dragSize?a*l:parseInt(e.params.scrollbar.dragSize,10),e.isHorizontal()?n.style.width=`${o}px`:n.style.height=`${o}px`,i.style.display=l>=1?"none":"",e.params.scrollbar.hide&&(i.style.opacity=0),e.params.watchOverflow&&e.enabled&&t.el.classList[e.isLocked?"add":"remove"](e.params.scrollbar.lockClass)}function f(t){return e.isHorizontal()?t.clientX:t.clientY}function m(t){const{scrollbar:n,rtlTranslate:i}=e,{el:r}=n;let l;l=(f(t)-F(r)[e.isHorizontal()?"left":"top"]-(null!==s?s:o/2))/(a-o),l=Math.max(Math.min(l,1),0),i&&(l=1-l);const c=e.minTranslate()+(e.maxTranslate()-e.minTranslate())*l;e.updateProgress(c),e.setTranslate(c),e.updateActiveIndex(),e.updateSlidesClasses()}function v(t){const n=e.params.scrollbar,{scrollbar:r,wrapperEl:o}=e,{el:a,dragEl:l}=r;c=!0,s=t.target===l?f(t)-t.target.getBoundingClientRect()[e.isHorizontal()?"left":"top"]:null,t.preventDefault(),t.stopPropagation(),o.style.transitionDuration="100ms",l.style.transitionDuration="100ms",m(t),clearTimeout(d),a.style.transitionDuration="0ms",n.hide&&(a.style.opacity=1),e.params.cssMode&&(e.wrapperEl.style["scroll-snap-type"]="none"),i("scrollbarDragStart",t)}function g(t){const{scrollbar:n,wrapperEl:r}=e,{el:s,dragEl:o}=n;c&&(t.preventDefault&&t.cancelable?t.preventDefault():t.returnValue=!1,m(t),r.style.transitionDuration="0ms",s.style.transitionDuration="0ms",o.style.transitionDuration="0ms",i("scrollbarDragMove",t))}function y(t){const n=e.params.scrollbar,{scrollbar:r,wrapperEl:s}=e,{el:o}=r;c&&(c=!1,e.params.cssMode&&(e.wrapperEl.style["scroll-snap-type"]="",s.style.transitionDuration=""),n.hide&&(clearTimeout(d),d=L(()=>{o.style.opacity=0,o.style.transitionDuration="400ms"},1e3)),i("scrollbarDragEnd",t),n.snapOnRelease&&e.slideToClosest())}function b(t){const{scrollbar:n,params:i}=e,s=n.el;if(!s)return;const o=s,a=!!i.passiveListeners&&{passive:!1,capture:!1},l=!!i.passiveListeners&&{passive:!0,capture:!1};if(!o)return;const c="on"===t?"addEventListener":"removeEventListener";o[c]("pointerdown",v,a),r[c]("pointermove",g,a),r[c]("pointerup",y,l)}function w(){const{scrollbar:t,el:n}=e;e.params.scrollbar=Le(e,e.originalParams.scrollbar,e.params.scrollbar,{el:"swiper-scrollbar"});const i=e.params.scrollbar;if(!i.el)return;let s,o;if("string"==typeof i.el&&e.isElement&&(s=e.el.querySelector(i.el)),s||"string"!=typeof i.el)s||(s=i.el);else if(s=r.querySelectorAll(i.el),!s.length)return;e.params.uniqueNavElements&&"string"==typeof i.el&&s.length>1&&1===n.querySelectorAll(i.el).length&&(s=n.querySelector(i.el)),s.length>0&&(s=s[0]),s.classList.add(e.isHorizontal()?i.horizontalClass:i.verticalClass),s&&(o=s.querySelector(Pe(e.params.scrollbar.dragClass)),o||(o=H("div",e.params.scrollbar.dragClass),s.append(o))),Object.assign(t,{el:s,dragEl:o}),i.draggable&&e.params.scrollbar.el&&e.scrollbar.el&&b("on"),s&&s.classList[e.enabled?"remove":"add"](...O(e.params.scrollbar.lockClass))}function _(){const t=e.params.scrollbar,n=e.scrollbar.el;n&&n.classList.remove(...O(e.isHorizontal()?t.horizontalClass:t.verticalClass)),e.params.scrollbar.el&&e.scrollbar.el&&b("off")}t({scrollbar:{el:null,dragSize:"auto",hide:!1,draggable:!1,snapOnRelease:!0,lockClass:"swiper-scrollbar-lock",dragClass:"swiper-scrollbar-drag",scrollbarDisabledClass:"swiper-scrollbar-disabled",horizontalClass:"swiper-scrollbar-horizontal",verticalClass:"swiper-scrollbar-vertical"}}),e.scrollbar={el:null,dragEl:null},n("changeDirection",()=>{if(!e.scrollbar||!e.scrollbar.el)return;const t=e.params.scrollbar;let{el:n}=e.scrollbar;n=$(n),n.forEach(n=>{n.classList.remove(t.horizontalClass,t.verticalClass),n.classList.add(e.isHorizontal()?t.horizontalClass:t.verticalClass)})}),n("init",()=>{!1===e.params.scrollbar.enabled?S():(w(),h(),p())}),n("update resize observerUpdate lock unlock changeDirection",()=>{h()}),n("setTranslate",()=>{p()}),n("setTransition",(t,n)=>{!function(t){e.params.scrollbar.el&&e.scrollbar.el&&(e.scrollbar.dragEl.style.transitionDuration=`${t}ms`)}(n)}),n("enable disable",()=>{const{el:t}=e.scrollbar;t&&t.classList[e.enabled?"remove":"add"](...O(e.params.scrollbar.lockClass))}),n("destroy",()=>{_()});const S=()=>{e.el.classList.add(...O(e.params.scrollbar.scrollbarDisabledClass)),e.scrollbar.el&&e.scrollbar.el.classList.add(...O(e.params.scrollbar.scrollbarDisabledClass)),_()};Object.assign(e.scrollbar,{enable:()=>{e.el.classList.remove(...O(e.params.scrollbar.scrollbarDisabledClass)),e.scrollbar.el&&e.scrollbar.el.classList.remove(...O(e.params.scrollbar.scrollbarDisabledClass)),w(),h(),p()},disable:S,updateSize:h,setTranslate:p,init:w,destroy:_})}function Re({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,containerRole:null,itemRoleDescriptionMessage:null,slideRole:"group",id:null,scrollOnFocus:!0,wrapperLiveRegion:!0}}),e.a11y={clicked:!1};let i,r,s=null,o=(new Date).getTime();function a(e){const t=s;0!==t.length&&W(t,e)}function l(e){(e=$(e)).forEach(e=>{e.setAttribute("tabIndex","0")})}function c(e){(e=$(e)).forEach(e=>{e.setAttribute("tabIndex","-1")})}function u(e,t){(e=$(e)).forEach(e=>{e.setAttribute("role",t)})}function d(e,t){(e=$(e)).forEach(e=>{e.setAttribute("aria-roledescription",t)})}function p(e,t){(e=$(e)).forEach(e=>{e.setAttribute("aria-label",t)})}function h(e){(e=$(e)).forEach(e=>{e.setAttribute("aria-disabled",!0)})}function f(e){(e=$(e)).forEach(e=>{e.setAttribute("aria-disabled",!1)})}function m(t){if(13!==t.keyCode&&32!==t.keyCode)return;const n=e.params.a11y,i=t.target;if(!e.pagination||!e.pagination.el||i!==e.pagination.el&&!e.pagination.el.contains(t.target)||t.target.matches(Pe(e.params.pagination.bulletClass))){if(e.navigation&&e.navigation.prevEl&&e.navigation.nextEl){const t=$(e.navigation.prevEl);$(e.navigation.nextEl).includes(i)&&(e.isEnd&&!e.params.loop||e.slideNext(),e.isEnd?a(n.lastSlideMessage):a(n.nextSlideMessage)),t.includes(i)&&(e.isBeginning&&!e.params.loop||e.slidePrev(),e.isBeginning?a(n.firstSlideMessage):a(n.prevSlideMessage))}e.pagination&&i.matches(Pe(e.params.pagination.bulletClass))&&i.click()}}function v(){return e.pagination&&e.pagination.bullets&&e.pagination.bullets.length}function g(){return v()&&e.params.pagination.clickable}const y=(e,t,n)=>{l(e),"BUTTON"!==e.tagName&&(u(e,"button"),e.addEventListener("keydown",m)),p(e,n),function(e,t){(e=$(e)).forEach(e=>{e.setAttribute("aria-controls",t)})}(e,t)},b=t=>{r&&r!==t.target&&!r.contains(t.target)&&(i=!0),e.a11y.clicked=!0},w=()=>{i=!1,requestAnimationFrame(()=>{requestAnimationFrame(()=>{e.destroyed||(e.a11y.clicked=!1)})})},_=e=>{o=(new Date).getTime()},S=t=>{if(e.a11y.clicked||!e.params.a11y.scrollOnFocus)return;if((new Date).getTime()-o<100)return;const n=t.target.closest(`.${e.params.slideClass}, swiper-slide`);if(!n||!e.slides.includes(n))return;r=n;const s=e.virtual&&e.params.virtual.enabled,a=(s?parseInt(n.getAttribute("data-swiper-slide-index"),10):e.slides.indexOf(n))===e.activeIndex,l=e.params.watchSlidesProgress&&e.visibleSlides&&e.visibleSlides.includes(n);a||l||t.sourceCapabilities&&t.sourceCapabilities.firesTouchEvents||(e.isHorizontal()?e.el.scrollLeft=0:e.el.scrollTop=0,requestAnimationFrame(()=>{i||(e.params.loop?e.slideToLoop(e.getSlideIndexWhenGrid(parseInt(n.getAttribute("data-swiper-slide-index"))),0):s?e.slideTo(e.getSlideIndexWhenGrid(parseInt(n.getAttribute("data-swiper-slide-index"),10)),0):e.slideTo(e.getSlideIndexWhenGrid(e.slides.indexOf(n)),0),i=!1)}))},E=()=>{const t=e.params.a11y;t.itemRoleDescriptionMessage&&d(e.slides,t.itemRoleDescriptionMessage),t.slideRole&&u(e.slides,t.slideRole);const n=e.slides.length;t.slideLabelMessage&&e.slides.forEach((i,r)=>{const s=e.params.loop?parseInt(i.getAttribute("data-swiper-slide-index"),10):r;p(i,t.slideLabelMessage.replace(/\{\{index\}\}/,s+1).replace(/\{\{slidesLength\}\}/,n))})};n("beforeInit",()=>{s=H("span",e.params.a11y.notificationClass),s.setAttribute("aria-live","assertive"),s.setAttribute("aria-atomic","true")}),n("afterInit",()=>{e.params.a11y.enabled&&(()=>{const t=e.params.a11y;e.el.append(s);const n=e.el;t.containerRoleDescriptionMessage&&d(n,t.containerRoleDescriptionMessage),t.containerMessage&&p(n,t.containerMessage),t.containerRole&&u(n,t.containerRole);const i=e.wrapperEl,r=t.id||i.getAttribute("id")||`swiper-wrapper-${function(e=16){return"x".repeat(e).replace(/x/g,()=>Math.round(16*Math.random()).toString(16))}(16)}`;var o,a,l;o=r,$(i).forEach(e=>{e.setAttribute("id",o)}),t.wrapperLiveRegion&&(a=i,l=e.params.autoplay&&e.params.autoplay.enabled?"off":"polite",(a=$(a)).forEach(e=>{e.setAttribute("aria-live",l)})),E();let{nextEl:c,prevEl:h}=e.navigation?e.navigation:{};c=$(c),h=$(h),c&&c.forEach(e=>y(e,r,t.nextSlideMessage)),h&&h.forEach(e=>y(e,r,t.prevSlideMessage)),g()&&$(e.pagination.el).forEach(e=>{e.addEventListener("keydown",m)}),C().addEventListener("visibilitychange",_),e.el.addEventListener("focus",S,!0),e.el.addEventListener("pointerdown",b,!0),e.el.addEventListener("pointerup",w,!0)})()}),n("slidesLengthChange snapGridLengthChange slidesGridLengthChange",()=>{e.params.a11y.enabled&&E()}),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&&(e.isBeginning?(h(n),c(n)):(f(n),l(n))),t&&(e.isEnd?(h(t),c(t)):(f(t),l(t)))}()}),n("paginationUpdate",()=>{e.params.a11y.enabled&&function(){const t=e.params.a11y;v()&&e.pagination.bullets.forEach(n=>{e.params.pagination.clickable&&(l(n),e.params.pagination.renderBullet||(u(n,"button"),p(n,t.paginationBulletMessage.replace(/\{\{index\}\}/,j(n)+1)))),n.matches(Pe(e.params.pagination.bulletActiveClass))?n.setAttribute("aria-current","true"):n.removeAttribute("aria-current")})}()}),n("destroy",()=>{e.params.a11y.enabled&&function(){s&&s.remove();let{nextEl:t,prevEl:n}=e.navigation?e.navigation:{};t=$(t),n=$(n),t&&t.forEach(e=>e.removeEventListener("keydown",m)),n&&n.forEach(e=>e.removeEventListener("keydown",m)),g()&&$(e.pagination.el).forEach(e=>{e.removeEventListener("keydown",m)}),C().removeEventListener("visibilitychange",_),e.el&&"string"!=typeof e.el&&(e.el.removeEventListener("focus",S,!0),e.el.removeEventListener("pointerdown",b,!0),e.el.removeEventListener("pointerup",w,!0))}()})}function ze({swiper:e,extendParams:t,on:n,emit:i,params:r}){let s,o;e.autoplay={running:!1,paused:!1,timeLeft:0},t({autoplay:{enabled:!1,delay:3e3,waitForTransition:!0,disableOnInteraction:!1,stopOnLastSlide:!1,reverseDirection:!1,pauseOnMouseEnter:!1}});let a,l,c,u,d,p,h,f=r&&r.autoplay?r.autoplay.delay:3e3,m=r&&r.autoplay?r.autoplay.delay:3e3,v=(new Date).getTime();function g(t){e&&!e.destroyed&&e.wrapperEl&&t.target===e.wrapperEl&&(e.wrapperEl.removeEventListener("transitionend",g),h||t.detail&&t.detail.bySwiperTouchMove||k())}const y=()=>{if(e.destroyed||!e.autoplay.running)return;e.autoplay.paused?l=!0:l&&(m=a,l=!1);const t=e.autoplay.paused?a:v+m-(new Date).getTime();e.autoplay.timeLeft=t,i("autoplayTimeLeft",t,t/f),o=requestAnimationFrame(()=>{y()})},b=()=>{let t=e.params.autoplay.delay;const n=(()=>{let t;if(t=e.virtual&&e.params.virtual.enabled?e.slides.find(e=>e.classList.contains("swiper-slide-active")):e.slides[e.activeIndex],t)return parseInt(t.getAttribute("data-swiper-autoplay"),10)})();return!Number.isNaN(n)&&n>0&&(t=n),t},w=t=>{if(e.destroyed||!e.autoplay.running)return;cancelAnimationFrame(o),y();let n=t;void 0===n&&(n=b(),f=n,m=n),a=n;const r=e.params.speed,l=()=>{e&&!e.destroyed&&(e.params.autoplay.reverseDirection?!e.isBeginning||e.params.loop||e.params.rewind?(e.slidePrev(r,!0,!0),i("autoplay")):e.params.autoplay.stopOnLastSlide||(e.slideTo(e.slides.length-1,r,!0,!0),i("autoplay")):!e.isEnd||e.params.loop||e.params.rewind?(e.slideNext(r,!0,!0),i("autoplay")):e.params.autoplay.stopOnLastSlide||(e.slideTo(0,r,!0,!0),i("autoplay")),e.params.cssMode&&(v=(new Date).getTime(),requestAnimationFrame(()=>{w()})))};return n>0?(clearTimeout(s),s=setTimeout(()=>{l()},n)):requestAnimationFrame(()=>{l()}),n},_=()=>{v=(new Date).getTime(),e.autoplay.running=!0,w(),i("autoplayStart")},S=()=>{e.autoplay.running=!1,clearTimeout(s),cancelAnimationFrame(o),i("autoplayStop")},E=(t,n)=>{if(e.destroyed||!e.autoplay.running)return;clearTimeout(s),t||(p=!0);const r=()=>{i("autoplayPause"),e.params.autoplay.waitForTransition?e.wrapperEl.addEventListener("transitionend",g):k()};if(e.autoplay.paused=!0,n)return void r();const o=a||e.params.autoplay.delay;a=o-((new Date).getTime()-v),e.isEnd&&a<0&&!e.params.loop||(a<0&&(a=0),r())},k=()=>{e.isEnd&&a<0&&!e.params.loop||e.destroyed||!e.autoplay.running||(v=(new Date).getTime(),p?(p=!1,w(a)):w(),e.autoplay.paused=!1,i("autoplayResume"))},x=()=>{if(e.destroyed||!e.autoplay.running)return;const t=C();"hidden"===t.visibilityState&&(p=!0,E(!0)),"visible"===t.visibilityState&&k()},T=t=>{"mouse"===t.pointerType&&(p=!0,h=!0,e.animating||e.autoplay.paused||E(!0))},A=t=>{"mouse"===t.pointerType&&(h=!1,e.autoplay.paused&&k())};n("init",()=>{e.params.autoplay.enabled&&(e.params.autoplay.pauseOnMouseEnter&&(e.el.addEventListener("pointerenter",T),e.el.addEventListener("pointerleave",A)),C().addEventListener("visibilitychange",x),_())}),n("destroy",()=>{e.el&&"string"!=typeof e.el&&(e.el.removeEventListener("pointerenter",T),e.el.removeEventListener("pointerleave",A)),C().removeEventListener("visibilitychange",x),e.autoplay.running&&S()}),n("_freeModeStaticRelease",()=>{(u||p)&&k()}),n("_freeModeNoMomentumRelease",()=>{e.params.autoplay.disableOnInteraction?S():E(!0,!0)}),n("beforeTransitionStart",(t,n,i)=>{!e.destroyed&&e.autoplay.running&&(i||!e.params.autoplay.disableOnInteraction?E(!0,!0):S())}),n("sliderFirstMove",()=>{!e.destroyed&&e.autoplay.running&&(e.params.autoplay.disableOnInteraction?S():(c=!0,u=!1,p=!1,d=setTimeout(()=>{p=!0,u=!0,E(!0)},200)))}),n("touchEnd",()=>{if(!e.destroyed&&e.autoplay.running&&c){if(clearTimeout(d),clearTimeout(s),e.params.autoplay.disableOnInteraction)return u=!1,void(c=!1);u&&e.params.cssMode&&k(),u=!1,c=!1}}),n("slideChange",()=>{!e.destroyed&&e.autoplay.running&&e.autoplay.paused&&(a=b(),f=b())}),Object.assign(e.autoplay,{start:_,stop:S,pause:E,resume:k})}function Be({element:e,visibleClass:t,waitMode:n="transitionend",timeoutDuration:i,hideMode:r="hidden",displayValue:s="block"}){if("timeout"===n&&"number"!=typeof i)return;window.matchMedia("(prefers-reduced-motion: reduce)").matches&&(n="immediate");const o=t=>{t.target===e&&(a(),e.removeEventListener("transitionend",o))},a=()=>{"display"===r?e.style.display="none":e.setAttribute("hidden",!0)};return{show(){e.removeEventListener("transitionend",o),this.timeout&&clearTimeout(this.timeout),"display"===r?e.style.display=s:e.removeAttribute("hidden"),e.offsetHeight,e.classList.add(t)},hide(){"transitionend"===n?e.addEventListener("transitionend",o):"timeout"===n?this.timeout=setTimeout(()=>{a()},i):a(),e.classList.remove(t)},toggle(){this.isHidden()?this.show():this.hide()},isHidden(){const n=null!==e.getAttribute("hidden"),i="none"===e.style.display,r=[...e.classList].includes(t);return n||i||!r},timeout:null}}var He="top",Fe="bottom",Ve="right",je="left",qe="auto",Ue=[He,Fe,Ve,je],$e="start",We="end",Ge="viewport",Ye="popper",Xe=Ue.reduce(function(e,t){return e.concat([t+"-"+$e,t+"-"+We])},[]),Ke=[].concat(Ue,[qe]).reduce(function(e,t){return e.concat([t,t+"-"+$e,t+"-"+We])},[]),Je=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function Qe(e){return e?(e.nodeName||"").toLowerCase():null}function Ze(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function et(e){return e instanceof Ze(e).Element||e instanceof Element}function tt(e){return e instanceof Ze(e).HTMLElement||e instanceof HTMLElement}function nt(e){return"undefined"!=typeof ShadowRoot&&(e instanceof Ze(e).ShadowRoot||e instanceof ShadowRoot)}var it={name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach(function(e){var n=t.styles[e]||{},i=t.attributes[e]||{},r=t.elements[e];tt(r)&&Qe(r)&&(Object.assign(r.style,n),Object.keys(i).forEach(function(e){var t=i[e];!1===t?r.removeAttribute(e):r.setAttribute(e,!0===t?"":t)}))})},effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(e){var i=t.elements[e],r=t.attributes[e]||{},s=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce(function(e,t){return e[t]="",e},{});tt(i)&&Qe(i)&&(Object.assign(i.style,s),Object.keys(r).forEach(function(e){i.removeAttribute(e)}))})}},requires:["computeStyles"]};function rt(e){return e.split("-")[0]}var st=Math.max,ot=Math.min,at=Math.round;function lt(){var e=navigator.userAgentData;return null!=e&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function ct(){return!/^((?!chrome|android).)*safari/i.test(lt())}function ut(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);var i=e.getBoundingClientRect(),r=1,s=1;t&&tt(e)&&(r=e.offsetWidth>0&&at(i.width)/e.offsetWidth||1,s=e.offsetHeight>0&&at(i.height)/e.offsetHeight||1);var o=(et(e)?Ze(e):window).visualViewport,a=!ct()&&n,l=(i.left+(a&&o?o.offsetLeft:0))/r,c=(i.top+(a&&o?o.offsetTop:0))/s,u=i.width/r,d=i.height/s;return{width:u,height:d,top:c,right:l+u,bottom:c+d,left:l,x:l,y:c}}function dt(e){var t=ut(e),n=e.offsetWidth,i=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-i)<=1&&(i=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:i}}function pt(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&nt(n)){var i=t;do{if(i&&e.isSameNode(i))return!0;i=i.parentNode||i.host}while(i)}return!1}function ht(e){return Ze(e).getComputedStyle(e)}function ft(e){return["table","td","th"].indexOf(Qe(e))>=0}function mt(e){return((et(e)?e.ownerDocument:e.document)||window.document).documentElement}function vt(e){return"html"===Qe(e)?e:e.assignedSlot||e.parentNode||(nt(e)?e.host:null)||mt(e)}function gt(e){return tt(e)&&"fixed"!==ht(e).position?e.offsetParent:null}function yt(e){for(var t=Ze(e),n=gt(e);n&&ft(n)&&"static"===ht(n).position;)n=gt(n);return n&&("html"===Qe(n)||"body"===Qe(n)&&"static"===ht(n).position)?t:n||function(e){var t=/firefox/i.test(lt());if(/Trident/i.test(lt())&&tt(e)&&"fixed"===ht(e).position)return null;var n=vt(e);for(nt(n)&&(n=n.host);tt(n)&&["html","body"].indexOf(Qe(n))<0;){var i=ht(n);if("none"!==i.transform||"none"!==i.perspective||"paint"===i.contain||-1!==["transform","perspective"].indexOf(i.willChange)||t&&"filter"===i.willChange||t&&i.filter&&"none"!==i.filter)return n;n=n.parentNode}return null}(e)||t}function bt(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function wt(e,t,n){return st(e,ot(t,n))}function _t(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function St(e,t){return t.reduce(function(t,n){return t[n]=e,t},{})}var Et={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n=e.state,i=e.name,r=e.options,s=n.elements.arrow,o=n.modifiersData.popperOffsets,a=rt(n.placement),l=bt(a),c=[je,Ve].indexOf(a)>=0?"height":"width";if(s&&o){var u=function(e,t){return _t("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:St(e,Ue))}(r.padding,n),d=dt(s),p="y"===l?He:je,h="y"===l?Fe:Ve,f=n.rects.reference[c]+n.rects.reference[l]-o[l]-n.rects.popper[c],m=o[l]-n.rects.reference[l],v=yt(s),g=v?"y"===l?v.clientHeight||0:v.clientWidth||0:0,y=f/2-m/2,b=u[p],w=g-d[c]-u[h],_=g/2-d[c]/2+y,S=wt(b,_,w),E=l;n.modifiersData[i]=((t={})[E]=S,t.centerOffset=S-_,t)}},effect:function(e){var t=e.state,n=e.options.element,i=void 0===n?"[data-popper-arrow]":n;null!=i&&("string"!=typeof i||(i=t.elements.popper.querySelector(i)))&&pt(t.elements.popper,i)&&(t.elements.arrow=i)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function kt(e){return e.split("-")[1]}var xt={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Ct(e){var t,n=e.popper,i=e.popperRect,r=e.placement,s=e.variation,o=e.offsets,a=e.position,l=e.gpuAcceleration,c=e.adaptive,u=e.roundOffsets,d=e.isFixed,p=o.x,h=void 0===p?0:p,f=o.y,m=void 0===f?0:f,v="function"==typeof u?u({x:h,y:m}):{x:h,y:m};h=v.x,m=v.y;var g=o.hasOwnProperty("x"),y=o.hasOwnProperty("y"),b=je,w=He,_=window;if(c){var S=yt(n),E="clientHeight",k="clientWidth";S===Ze(n)&&"static"!==ht(S=mt(n)).position&&"absolute"===a&&(E="scrollHeight",k="scrollWidth"),(r===He||(r===je||r===Ve)&&s===We)&&(w=Fe,m-=(d&&S===_&&_.visualViewport?_.visualViewport.height:S[E])-i.height,m*=l?1:-1),r!==je&&(r!==He&&r!==Fe||s!==We)||(b=Ve,h-=(d&&S===_&&_.visualViewport?_.visualViewport.width:S[k])-i.width,h*=l?1:-1)}var x,C=Object.assign({position:a},c&&xt),T=!0===u?function(e,t){var n=e.x,i=e.y,r=t.devicePixelRatio||1;return{x:at(n*r)/r||0,y:at(i*r)/r||0}}({x:h,y:m},Ze(n)):{x:h,y:m};return h=T.x,m=T.y,l?Object.assign({},C,((x={})[w]=y?"0":"",x[b]=g?"0":"",x.transform=(_.devicePixelRatio||1)<=1?"translate("+h+"px, "+m+"px)":"translate3d("+h+"px, "+m+"px, 0)",x)):Object.assign({},C,((t={})[w]=y?m+"px":"",t[b]=g?h+"px":"",t.transform="",t))}var Tt={passive:!0},At={left:"right",right:"left",bottom:"top",top:"bottom"};function Ot(e){return e.replace(/left|right|bottom|top/g,function(e){return At[e]})}var Lt={start:"end",end:"start"};function Dt(e){return e.replace(/start|end/g,function(e){return Lt[e]})}function Mt(e){var t=Ze(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function Pt(e){return ut(mt(e)).left+Mt(e).scrollLeft}function It(e){var t=ht(e),n=t.overflow,i=t.overflowX,r=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+r+i)}function Nt(e){return["html","body","#document"].indexOf(Qe(e))>=0?e.ownerDocument.body:tt(e)&&It(e)?e:Nt(vt(e))}function Rt(e,t){var n;void 0===t&&(t=[]);var i=Nt(e),r=i===(null==(n=e.ownerDocument)?void 0:n.body),s=Ze(i),o=r?[s].concat(s.visualViewport||[],It(i)?i:[]):i,a=t.concat(o);return r?a:a.concat(Rt(vt(o)))}function zt(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Bt(e,t,n){return t===Ge?zt(function(e,t){var n=Ze(e),i=mt(e),r=n.visualViewport,s=i.clientWidth,o=i.clientHeight,a=0,l=0;if(r){s=r.width,o=r.height;var c=ct();(c||!c&&"fixed"===t)&&(a=r.offsetLeft,l=r.offsetTop)}return{width:s,height:o,x:a+Pt(e),y:l}}(e,n)):et(t)?function(e,t){var n=ut(e,!1,"fixed"===t);return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}(t,n):zt(function(e){var t,n=mt(e),i=Mt(e),r=null==(t=e.ownerDocument)?void 0:t.body,s=st(n.scrollWidth,n.clientWidth,r?r.scrollWidth:0,r?r.clientWidth:0),o=st(n.scrollHeight,n.clientHeight,r?r.scrollHeight:0,r?r.clientHeight:0),a=-i.scrollLeft+Pt(e),l=-i.scrollTop;return"rtl"===ht(r||n).direction&&(a+=st(n.clientWidth,r?r.clientWidth:0)-s),{width:s,height:o,x:a,y:l}}(mt(e)))}function Ht(e){var t,n=e.reference,i=e.element,r=e.placement,s=r?rt(r):null,o=r?kt(r):null,a=n.x+n.width/2-i.width/2,l=n.y+n.height/2-i.height/2;switch(s){case He:t={x:a,y:n.y-i.height};break;case Fe:t={x:a,y:n.y+n.height};break;case Ve:t={x:n.x+n.width,y:l};break;case je:t={x:n.x-i.width,y:l};break;default:t={x:n.x,y:n.y}}var c=s?bt(s):null;if(null!=c){var u="y"===c?"height":"width";switch(o){case $e:t[c]=t[c]-(n[u]/2-i[u]/2);break;case We:t[c]=t[c]+(n[u]/2-i[u]/2)}}return t}function Ft(e,t){void 0===t&&(t={});var n=t,i=n.placement,r=void 0===i?e.placement:i,s=n.strategy,o=void 0===s?e.strategy:s,a=n.boundary,l=void 0===a?"clippingParents":a,c=n.rootBoundary,u=void 0===c?Ge:c,d=n.elementContext,p=void 0===d?Ye:d,h=n.altBoundary,f=void 0!==h&&h,m=n.padding,v=void 0===m?0:m,g=_t("number"!=typeof v?v:St(v,Ue)),y=p===Ye?"reference":Ye,b=e.rects.popper,w=e.elements[f?y:p],_=function(e,t,n,i){var r="clippingParents"===t?function(e){var t=Rt(vt(e)),n=["absolute","fixed"].indexOf(ht(e).position)>=0&&tt(e)?yt(e):e;return et(n)?t.filter(function(e){return et(e)&&pt(e,n)&&"body"!==Qe(e)}):[]}(e):[].concat(t),s=[].concat(r,[n]),o=s[0],a=s.reduce(function(t,n){var r=Bt(e,n,i);return t.top=st(r.top,t.top),t.right=ot(r.right,t.right),t.bottom=ot(r.bottom,t.bottom),t.left=st(r.left,t.left),t},Bt(e,o,i));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}(et(w)?w:w.contextElement||mt(e.elements.popper),l,u,o),S=ut(e.elements.reference),E=Ht({reference:S,element:b,placement:r}),k=zt(Object.assign({},b,E)),x=p===Ye?k:S,C={top:_.top-x.top+g.top,bottom:x.bottom-_.bottom+g.bottom,left:_.left-x.left+g.left,right:x.right-_.right+g.right},T=e.modifiersData.offset;if(p===Ye&&T){var A=T[r];Object.keys(C).forEach(function(e){var t=[Ve,Fe].indexOf(e)>=0?1:-1,n=[He,Fe].indexOf(e)>=0?"y":"x";C[e]+=A[n]*t})}return C}function Vt(e,t){void 0===t&&(t={});var n=t,i=n.placement,r=n.boundary,s=n.rootBoundary,o=n.padding,a=n.flipVariations,l=n.allowedAutoPlacements,c=void 0===l?Ke:l,u=kt(i),d=u?a?Xe:Xe.filter(function(e){return kt(e)===u}):Ue,p=d.filter(function(e){return c.indexOf(e)>=0});0===p.length&&(p=d);var h=p.reduce(function(t,n){return t[n]=Ft(e,{placement:n,boundary:r,rootBoundary:s,padding:o})[rt(n)],t},{});return Object.keys(h).sort(function(e,t){return h[e]-h[t]})}var jt={name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,i=e.name;if(!t.modifiersData[i]._skip){for(var r=n.mainAxis,s=void 0===r||r,o=n.altAxis,a=void 0===o||o,l=n.fallbackPlacements,c=n.padding,u=n.boundary,d=n.rootBoundary,p=n.altBoundary,h=n.flipVariations,f=void 0===h||h,m=n.allowedAutoPlacements,v=t.options.placement,g=rt(v),y=l||(g!==v&&f?function(e){if(rt(e)===qe)return[];var t=Ot(e);return[Dt(e),t,Dt(t)]}(v):[Ot(v)]),b=[v].concat(y).reduce(function(e,n){return e.concat(rt(n)===qe?Vt(t,{placement:n,boundary:u,rootBoundary:d,padding:c,flipVariations:f,allowedAutoPlacements:m}):n)},[]),w=t.rects.reference,_=t.rects.popper,S=new Map,E=!0,k=b[0],x=0;x<b.length;x++){var C=b[x],T=rt(C),A=kt(C)===$e,O=[He,Fe].indexOf(T)>=0,L=O?"width":"height",D=Ft(t,{placement:C,boundary:u,rootBoundary:d,altBoundary:p,padding:c}),M=O?A?Ve:je:A?Fe:He;w[L]>_[L]&&(M=Ot(M));var P=Ot(M),I=[];if(s&&I.push(D[T]<=0),a&&I.push(D[M]<=0,D[P]<=0),I.every(function(e){return e})){k=C,E=!1;break}S.set(C,I)}if(E)for(var N=function(e){var t=b.find(function(t){var n=S.get(t);if(n)return n.slice(0,e).every(function(e){return e})});if(t)return k=t,"break"},R=f?3:1;R>0&&"break"!==N(R);R--);t.placement!==k&&(t.modifiersData[i]._skip=!0,t.placement=k,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function qt(e,t,n){return void 0===n&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function Ut(e){return[He,Ve,Fe,je].some(function(t){return e[t]>=0})}var $t={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.options,i=e.name,r=n.offset,s=void 0===r?[0,0]:r,o=Ke.reduce(function(e,n){return e[n]=function(e,t,n){var i=rt(e),r=[je,He].indexOf(i)>=0?-1:1,s="function"==typeof n?n(Object.assign({},t,{placement:e})):n,o=s[0],a=s[1];return o=o||0,a=(a||0)*r,[je,Ve].indexOf(i)>=0?{x:a,y:o}:{x:o,y:a}}(n,t.rects,s),e},{}),a=o[t.placement],l=a.x,c=a.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=c),t.modifiersData[i]=o}},Wt={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,i=e.name,r=n.mainAxis,s=void 0===r||r,o=n.altAxis,a=void 0!==o&&o,l=n.boundary,c=n.rootBoundary,u=n.altBoundary,d=n.padding,p=n.tether,h=void 0===p||p,f=n.tetherOffset,m=void 0===f?0:f,v=Ft(t,{boundary:l,rootBoundary:c,padding:d,altBoundary:u}),g=rt(t.placement),y=kt(t.placement),b=!y,w=bt(g),_="x"===w?"y":"x",S=t.modifiersData.popperOffsets,E=t.rects.reference,k=t.rects.popper,x="function"==typeof m?m(Object.assign({},t.rects,{placement:t.placement})):m,C="number"==typeof x?{mainAxis:x,altAxis:x}:Object.assign({mainAxis:0,altAxis:0},x),T=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,A={x:0,y:0};if(S){if(s){var O,L="y"===w?He:je,D="y"===w?Fe:Ve,M="y"===w?"height":"width",P=S[w],I=P+v[L],N=P-v[D],R=h?-k[M]/2:0,z=y===$e?E[M]:k[M],B=y===$e?-k[M]:-E[M],H=t.elements.arrow,F=h&&H?dt(H):{width:0,height:0},V=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},j=V[L],q=V[D],U=wt(0,E[M],F[M]),$=b?E[M]/2-R-U-j-C.mainAxis:z-U-j-C.mainAxis,W=b?-E[M]/2+R+U+q+C.mainAxis:B+U+q+C.mainAxis,G=t.elements.arrow&&yt(t.elements.arrow),Y=G?"y"===w?G.clientTop||0:G.clientLeft||0:0,X=null!=(O=null==T?void 0:T[w])?O:0,K=P+W-X,J=wt(h?ot(I,P+$-X-Y):I,P,h?st(N,K):N);S[w]=J,A[w]=J-P}if(a){var Q,Z="x"===w?He:je,ee="x"===w?Fe:Ve,te=S[_],ne="y"===_?"height":"width",ie=te+v[Z],re=te-v[ee],se=-1!==[He,je].indexOf(g),oe=null!=(Q=null==T?void 0:T[_])?Q:0,ae=se?ie:te-E[ne]-k[ne]-oe+C.altAxis,le=se?te+E[ne]+k[ne]-oe-C.altAxis:re,ce=h&&se?function(e,t,n){var i=wt(e,t,n);return i>n?n:i}(ae,te,le):wt(h?ae:ie,te,h?le:re);S[_]=ce,A[_]=ce-te}t.modifiersData[i]=A}},requiresIfExists:["offset"]};function Gt(e,t,n){void 0===n&&(n=!1);var i,r,s=tt(t),o=tt(t)&&function(e){var t=e.getBoundingClientRect(),n=at(t.width)/e.offsetWidth||1,i=at(t.height)/e.offsetHeight||1;return 1!==n||1!==i}(t),a=mt(t),l=ut(e,o,n),c={scrollLeft:0,scrollTop:0},u={x:0,y:0};return(s||!s&&!n)&&(("body"!==Qe(t)||It(a))&&(c=(i=t)!==Ze(i)&&tt(i)?{scrollLeft:(r=i).scrollLeft,scrollTop:r.scrollTop}:Mt(i)),tt(t)?((u=ut(t,!0)).x+=t.clientLeft,u.y+=t.clientTop):a&&(u.x=Pt(a))),{x:l.left+c.scrollLeft-u.x,y:l.top+c.scrollTop-u.y,width:l.width,height:l.height}}function Yt(e){var t=new Map,n=new Set,i=[];function r(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach(function(e){if(!n.has(e)){var i=t.get(e);i&&r(i)}}),i.push(e)}return e.forEach(function(e){t.set(e.name,e)}),e.forEach(function(e){n.has(e.name)||r(e)}),i}var Xt={placement:"bottom",modifiers:[],strategy:"absolute"};function Kt(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(e){return!(e&&"function"==typeof e.getBoundingClientRect)})}function Jt(e){void 0===e&&(e={});var t=e,n=t.defaultModifiers,i=void 0===n?[]:n,r=t.defaultOptions,s=void 0===r?Xt:r;return function(e,t,n){void 0===n&&(n=s);var r,o,a={placement:"bottom",orderedModifiers:[],options:Object.assign({},Xt,s),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},l=[],c=!1,u={state:a,setOptions:function(n){var r="function"==typeof n?n(a.options):n;d(),a.options=Object.assign({},s,a.options,r),a.scrollParents={reference:et(e)?Rt(e):e.contextElement?Rt(e.contextElement):[],popper:Rt(t)};var o,c,p=function(e){var t=Yt(e);return Je.reduce(function(e,n){return e.concat(t.filter(function(e){return e.phase===n}))},[])}((o=[].concat(i,a.options.modifiers),c=o.reduce(function(e,t){var n=e[t.name];return e[t.name]=n?Object.assign({},n,t,{options:Object.assign({},n.options,t.options),data:Object.assign({},n.data,t.data)}):t,e},{}),Object.keys(c).map(function(e){return c[e]})));return a.orderedModifiers=p.filter(function(e){return e.enabled}),a.orderedModifiers.forEach(function(e){var t=e.name,n=e.options,i=void 0===n?{}:n,r=e.effect;if("function"==typeof r){var s=r({state:a,name:t,instance:u,options:i});l.push(s||function(){})}}),u.update()},forceUpdate:function(){if(!c){var e=a.elements,t=e.reference,n=e.popper;if(Kt(t,n)){a.rects={reference:Gt(t,yt(n),"fixed"===a.options.strategy),popper:dt(n)},a.reset=!1,a.placement=a.options.placement,a.orderedModifiers.forEach(function(e){return a.modifiersData[e.name]=Object.assign({},e.data)});for(var i=0;i<a.orderedModifiers.length;i++)if(!0!==a.reset){var r=a.orderedModifiers[i],s=r.fn,o=r.options,l=void 0===o?{}:o,d=r.name;"function"==typeof s&&(a=s({state:a,options:l,name:d,instance:u})||a)}else a.reset=!1,i=-1}}},update:(r=function(){return new Promise(function(e){u.forceUpdate(),e(a)})},function(){return o||(o=new Promise(function(e){Promise.resolve().then(function(){o=void 0,e(r())})})),o}),destroy:function(){d(),c=!0}};if(!Kt(e,t))return u;function d(){l.forEach(function(e){return e()}),l=[]}return u.setOptions(n).then(function(e){!c&&n.onFirstUpdate&&n.onFirstUpdate(e)}),u}}var Qt=Jt({defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,n=e.instance,i=e.options,r=i.scroll,s=void 0===r||r,o=i.resize,a=void 0===o||o,l=Ze(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return s&&c.forEach(function(e){e.addEventListener("scroll",n.update,Tt)}),a&&l.addEventListener("resize",n.update,Tt),function(){s&&c.forEach(function(e){e.removeEventListener("scroll",n.update,Tt)}),a&&l.removeEventListener("resize",n.update,Tt)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=Ht({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,n=e.options,i=n.gpuAcceleration,r=void 0===i||i,s=n.adaptive,o=void 0===s||s,a=n.roundOffsets,l=void 0===a||a,c={placement:rt(t.placement),variation:kt(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:r,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,Ct(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:o,roundOffsets:l})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,Ct(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},it,$t,jt,Wt,Et,{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,n=e.name,i=t.rects.reference,r=t.rects.popper,s=t.modifiersData.preventOverflow,o=Ft(t,{elementContext:"reference"}),a=Ft(t,{altBoundary:!0}),l=qt(o,i),c=qt(a,r,s),u=Ut(l),d=Ut(c);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":d})}}]});function Zt(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var en,tn={exports:{}},nn=(en||(en=1,tn.exports=function(){var e=["decimals","thousand","mark","prefix","suffix","encoder","decoder","negativeBefore","negative","edit","undo"];function t(e){return e.split("").reverse().join("")}function n(e,t){return e.substring(0,t.length)===t}function i(e,t,n){if((e[t]||e[n])&&e[t]===e[n])throw new Error(t)}function r(e){return"number"==typeof e&&isFinite(e)}function s(e,n,i,s,o,a,l,c,u,d,p,h){var f,m,v,g,y,b=h,w="",_="";return a&&(h=a(h)),!!r(h)&&(!1!==e&&0===parseFloat(h.toFixed(e))&&(h=0),h<0&&(f=!0,h=Math.abs(h)),!1!==e&&(y=e,g=(g=h).toString().split("e"),h=(+((g=(g=Math.round(+(g[0]+"e"+(g[1]?+g[1]+y:y)))).toString().split("e"))[0]+"e"+(g[1]?+g[1]-y:-y))).toFixed(y)),-1!==(h=h.toString()).indexOf(".")?(v=(m=h.split("."))[0],i&&(w=i+m[1])):v=h,n&&(v=t(v).match(/.{1,3}/g),v=t(v.join(t(n)))),f&&c&&(_+=c),s&&(_+=s),f&&u&&(_+=u),_+=v,_+=w,o&&(_+=o),d&&(_=d(_,b)),_)}function o(e,t,i,s,o,a,l,c,u,d,p,h){var f,m="";return p&&(h=p(h)),!(!h||"string"!=typeof h)&&(c&&n(h,c)&&(h=h.replace(c,""),f=!0),s&&n(h,s)&&(h=h.replace(s,"")),u&&n(h,u)&&(h=h.replace(u,""),f=!0),o&&function(e,t){return e.slice(-1*t.length)===t}(h,o)&&(h=h.slice(0,-1*o.length)),t&&(h=h.split(t).join("")),i&&(h=h.replace(i,".")),f&&(m+="-"),""!==(m=(m+=h).replace(/[^0-9\.\-.]/g,""))&&(m=Number(m),l&&(m=l(m)),!!r(m)&&m))}function a(t,n,i){var r,s=[];for(r=0;r<e.length;r+=1)s.push(t[e[r]]);return s.push(i),n.apply("",s)}return function t(n){if(!(this instanceof t))return new t(n);"object"==typeof n&&(n=function(t){var n,r,s,o={};for(void 0===t.suffix&&(t.suffix=t.postfix),n=0;n<e.length;n+=1)if(void 0===(s=t[r=e[n]]))"negative"!==r||o.negativeBefore?"mark"===r&&"."!==o.thousand?o[r]=".":o[r]=!1:o[r]="-";else if("decimals"===r){if(!(s>=0&&s<8))throw new Error(r);o[r]=s}else if("encoder"===r||"decoder"===r||"edit"===r||"undo"===r){if("function"!=typeof s)throw new Error(r);o[r]=s}else{if("string"!=typeof s)throw new Error(r);o[r]=s}return i(o,"mark","thousand"),i(o,"prefix","negative"),i(o,"prefix","negativeBefore"),o}(n),this.to=function(e){return a(n,s,e)},this.from=function(e){return a(n,o,e)})}}()),tn.exports),rn=Zt(nn);function sn(e){return e.charAt(0).toLowerCase()+e.slice(1)}var on={rootContainerSelector:"#root-tooltips",removeDialogOnDestroy:!1,popperOptions:{placement:"bottom",strategy:"absolute",modifiers:[{name:"arrow",options:{element:".tooltip__arrow",padding:10}},{name:"eventListeners",options:{scroll:!1,resize:!1}},{name:"flip",options:{fallbackPlacements:["right","top","auto"]}},{name:"offset",options:{offset:function(e){var t=e.placement;return t.includes("start")?[-10,0]:t.includes("end")?[10,0]:[0,0]}}}]}},an=function(){return s(function e(t,n){var r;return i(this,e),o(this,"isOpen",!1),o(this,"ignoreNextBlur",!1),this.element=t,this.config=l(l({},on),n),this.config.popperOptions=l(l({},on.popperOptions),(null==n?void 0:n.popperOptions)||{}),this.config.popperOptions.modifiers=[].concat(p(on.popperOptions.modifiers),p((null==n||null===(r=n.popperOptions)||void 0===r?void 0:r.modifiers)||[])),this.handleVisibility=this.handleVisibility.bind(this),this.onKeydown=this.onKeydown.bind(this),this.onDialogMouseDown=this.onDialogMouseDown.bind(this),this.onDocumentClick=this.onDocumentClick.bind(this),this.element.ODS_Tooltip=this,this.init(),this},[{key:"wrapLastWordAndButton",value:function(){var e,t;if(this.element.hasAttribute("data-tooltip-keep-with-text")){var n=this.trigger.previousSibling;if(n&&n.nodeType===Node.TEXT_NODE){var i=((null===(e=n.textContent)||void 0===e?void 0:e.trim())||"").split(" "),r=i.pop(),s=i.join(" ");n.textContent=s+" ";var o=document.createElement("span");o.className="text-nowrap",o.innerHTML="".concat(r," ").concat(this.trigger.outerHTML),null===(t=this.trigger.parentNode)||void 0===t||t.replaceChild(o,this.trigger),this.trigger=o.querySelector("[data-tooltip-trigger]")}}}},{key:"init",value:function(){this.trigger=document.querySelector("[data-tooltip-trigger][aria-describedby=".concat(this.element.getAttribute("id"),"]")),this.trigger,this.element.hasAttribute("data-tooltip-keep-with-text")&&this.wrapLastWordAndButton(),this.rootContainer=document.querySelector(this.config.rootContainerSelector),this.rootContainer&&this.rootContainer.appendChild(this.element);var e=this.element.getAttribute("data-tooltip-placement");e&&(this.config.popperOptions.placement=e),this.instance=Qt(this.trigger,this.element,this.config.popperOptions),this.transitioner=Be({element:this.element,visibleClass:"is-visible"}),this.element.addEventListener("mousedown",this.onDialogMouseDown),this.trigger.addEventListener("click",this.handleVisibility),this.trigger.addEventListener("keydown",this.handleVisibility),this.trigger.addEventListener("blur",this.handleVisibility)}},{key:"onDialogMouseDown",value:function(){this.ignoreNextBlur=!0}},{key:"onDocumentClick",value:function(e){var t=e.target;t&&(this.trigger.contains(t)||this.element.contains(t)||this.hide())}},{key:"handleVisibility",value:function(e){if("click"!==e.type)if("keydown"!==e.type){if("blur"===e.type){if(this.ignoreNextBlur)return void(this.ignoreNextBlur=!1);this.hide()}}else this.onKeydown(e);else this.toggle()}},{key:"onKeydown",value:function(e){if(("Enter"===e.key||" "===e.key)&&"BUTTON"!==this.trigger.tagName)return e.preventDefault(),void this.toggle();v.ESC.includes(e.key)&&this.hide()}},{key:"toggle",value:function(){this.isOpen?this.hide():this.show()}},{key:"show",value:function(){this.transitioner.show(),this.trigger.classList.add("is-active"),this.isOpen=!0,this.instance.forceUpdate(),document.addEventListener("click",this.onDocumentClick)}},{key:"hide",value:function(){this.transitioner.hide(),this.trigger.classList.remove("is-active"),this.isOpen=!1,document.removeEventListener("click",this.onDocumentClick)}},{key:"update",value:function(){this.instance.forceUpdate()}},{key:"destroy",value:function(){this.element.removeEventListener("mousedown",this.onDialogMouseDown),this.trigger.removeEventListener("click",this.handleVisibility),this.trigger.removeEventListener("keydown",this.handleVisibility),this.trigger.removeEventListener("blur",this.handleVisibility),document.removeEventListener("click",this.onDocumentClick),this.instance.destroy(),this.element.ODS_Tooltip=null,this.config.removeDialogOnDestroy&&this.element.remove()}}],[{key:"getInstance",value:function(e){return e&&e.ODS_Tooltip?e.ODS_Tooltip:null}}])}(),ln="carousel",cn="".concat(ln,"__viewport-wrapper"),un="".concat(ln,"__viewport"),dn="".concat(ln,"__track"),pn="".concat(ln,"__slide"),hn="".concat(ln,"__slide-next"),fn="".concat(ln,"__slide-prev"),mn="".concat(ln,"__prev"),vn="".concat(ln,"__next"),gn="".concat(ln,"__pagination"),yn="".concat(ln,"__pagination-item"),bn="".concat(ln,"__scrollbar"),wn="".concat(ln,"__scrollbar-horizontal"),_n="".concat(ln,"__scrollbar-drag"),Sn="is-active",En="".concat(ln,"--bleed-right"),kn=".".concat(un),xn=".".concat(dn),Cn=".".concat(mn),Tn=".".concat(vn),An=".".concat(gn),On=".".concat(bn),Ln=".".concat(Sn),Dn={navigation:{nextEl:Tn,prevEl:Cn},pagination:{el:An,clickable:!0,bulletClass:yn,bulletActiveClass:Sn,renderBullet:function(e,t){return'<button aria-label="Page '.concat(e+1,'" role="tab" class="').concat(t,'" type="button"></button>')}},scrollbar:{el:On,draggable:!0,enabled:!0,horizontalClass:wn,dragClass:_n,hide:!1},slidesPerView:1.2,mousewheel:{forceToAxis:!0,sensitivity:1},a11y:{enabled:!0,prevSlideMessage:"Predchádzajúci snímok",nextSlideMessage:"Nasledujúci snímok",paginationBulletMessage:"Prejsť na snímok {index}",containerMessage:"Carousel so snímkami",containerRoleDescriptionMessage:"carousel",itemRoleDescriptionMessage:"snímok",firstSlideMessage:"Prvý snímok",lastSlideMessage:"Posledný snímok",slideLabelMessage:"Snímok"},loop:!1,cssMode:!1,direction:"horizontal",breakpoints:{1240:{slidesPerView:1.6}},wrapperClass:dn,slideClass:pn,slideActiveClass:Sn,slideNextClass:hn,slidePrevClass:fn},Mn=function(){return s(function e(t,n){var r,s,o=this;return i(this,e),this.element=t,this.config=l(l(l({},Dn),n),{},{scrollbar:l(l(l({},null!==(r=Dn.scrollbar)&&void 0!==r?r:{}),null!==(s=null==n?void 0:n.scrollbar)&&void 0!==s?s:{}),{},{el:this.element.querySelector(On)})}),this.handleSlideChange=this.handleSlideChange.bind(this),this.updateTooltipPosition=this.updateTooltipPosition.bind(this),this.boundWindowResizeHandler=this.handleWindowResize.bind(this),this.element.ODS_Carousel=this,requestAnimationFrame(function(){o.init()}),this},[{key:"init",value:function(){var e=this;this.getElements(),this.element.hasAttribute("data-swiper-options")&&this.getCustomOptions(),this.instance=new Te(this.viewport,l(l({},this.config),{},{enabled:!1,modules:[Me,Ie,Ne,Re,Ae,Oe],on:{slideChange:this.handleSlideChange,slideChangeTransitionEnd:function(){e.updateExternalControlsState()}}})),this.updateCarouselEnabledState(),this.element.classList.contains(En)&&(this.adjustConfigForBleedRight(),this.fixBleedRightScrollbar()),this.syncScrollbar(),this.instance&&"function"==typeof this.instance.on&&this.instance.on("resize",function(){e.updateCarouselEnabledState()}),this.observeVisibilityChanges(),window.addEventListener("resize",this.boundWindowResizeHandler),this.initExternalControls(),requestAnimationFrame(function(){e.instance&&e.instance.update()})}},{key:"handleWindowResize",value:function(){var e=this;this.resizeRafId&&cancelAnimationFrame(this.resizeRafId),this.resizeRafId=requestAnimationFrame(function(){var t,n;e.resizeRafId=void 0,e.instance&&e.viewport&&(e.viewport.clientWidth<=0||(e.instance.update(),e.updateCarouselEnabledState(),null===(t=e.bleedResizeHandler)||void 0===t||t.call(e),e.updateExternalControlsState(),null===(n=e.instance.scrollbar)||void 0===n||n.updateSize()))})}},{key:"syncScrollbar",value:function(){var e=this;requestAnimationFrame(function(){var t;null!==(t=e.instance)&&void 0!==t&&t.scrollbar&&e.instance.scrollbar.updateSize()})}},{key:"observeVisibilityChanges",value:function(){var e,t=this;"undefined"!=typeof ResizeObserver&&(null===(e=this.resizeObserver)||void 0===e||e.disconnect(),this.resizeObserver=new ResizeObserver(function(){var e;t.instance&&t.viewport&&(t.viewport.clientWidth<=0||(t.instance.update(),t.updateCarouselEnabledState(),null===(e=t.instance.scrollbar)||void 0===e||e.updateSize()))}),this.resizeObserver.observe(this.viewport))}},{key:"fixBleedRightScrollbar",value:function(){var e=this,t=function(){var t,n=e.element.querySelector(".".concat(cn)),i=null===(t=e.instance)||void 0===t?void 0:t.scrollbar,r=e.instance;if(n&&i&&i.dragEl&&r){var s=r.minTranslate(),o=r.maxTranslate();if(Math.abs(o-s)<=1||!r.enabled)i.el&&(i.el.style.display="none");else{i.el&&(i.el.style.display="");var a=i.el.offsetWidth,l=n.clientWidth,c=Number(r.params.slidesOffsetBefore)||0,u=Number(r.params.slidesOffsetAfter)||0,d=e.track.scrollWidth+c+u,p=(d>0?Math.min(l/d,1):1)*a,h=Math.max(p,30);i.dragEl.style.width="".concat(h,"px"),i.dragEl.style.display="";var f=Math.min(Math.max(r.progress||0,0),1)*Math.max(a-h,0);i.dragEl.style.transform="translate3d(".concat(f,"px, 0, 0)")}}};requestAnimationFrame(function(){requestAnimationFrame(t)}),this.instance.on("progress",t),this.instance.on("slideChange",t),this.instance.on("resize",t),this.instance.on("update",t),this.instance.on("setTranslate",t)}},{key:"getElements",value:function(){var e,t;this.viewport=this.element.querySelector(kn),this.track=this.viewport.querySelector(xn);var n=this.element.querySelector(An);n&&!n.hasAttribute("role")&&n.setAttribute("role","tablist");var i={navigation:l(l({},null!==(e=this.config.navigation)&&void 0!==e?e:{}),{},{nextEl:this.element.querySelector(Tn),prevEl:this.element.querySelector(Cn)}),pagination:l(l({},null!==(t=this.config.pagination)&&void 0!==t?t:{}),{},{el:n,clickable:!0,bulletClass:yn,bulletActiveClass:Sn})};this.config=l(l({},this.config),i)}},{key:"getCustomOptions",value:function(){var e=this.element.getAttribute("data-swiper-options");if(e){var t=JSON.parse(e);this.config=l(l({},this.config),t)}}},{key:"updateCarouselEnabledState",value:function(){if(this.instance&&this.instance.params){this.instance.slides.length>(Number(this.instance.params.slidesPerView)||1)?this.instance.enable():this.instance.disable();var e=this.element.querySelector(On);e&&(e.style.display=this.instance.enabled?"":"none"),this.applyTrackMarginCompensation()}}},{key:"applyTrackMarginCompensation",value:function(){if(this.instance&&this.instance.params&&this.viewport){var e=Number(this.instance.params.slidesPerView)||1;this.instance.slides.length<=e?this.viewport.style.setProperty("margin-right","-20px","important"):this.viewport.style.removeProperty("margin-right")}}},{key:"applyBleedInsets",value:function(e){var t;if(this.instance&&this.instance.params){var n=document.documentElement.clientWidth||(null===(t=window.visualViewport)||void 0===t?void 0:t.width)||window.innerWidth,i=e.getBoundingClientRect(),r=Math.max(Math.round(i.left),0),s=Math.max(r-20,0),o=Number(this.instance.params.slidesPerView)||1,a=this.instance.slides.length,l=n>=2560||a<=o;this.element.classList.toggle(En,!l),l?(this.instance.params.slidesOffsetBefore=0,this.instance.params.slidesOffsetAfter=0,this.element.style.setProperty("--carousel-bleed-viewport-width","100%"),this.element.style.setProperty("--carousel-bleed-margin-left","0px")):(this.instance.params.slidesOffsetBefore=r,this.instance.params.slidesOffsetAfter=s,this.element.style.setProperty("--carousel-bleed-viewport-width","100dvw"),this.element.style.setProperty("--carousel-bleed-margin-left","calc(50% - 50dvw)")),this.instance.update()}}},{key:"adjustConfigForBleedRight",value:function(){var e=this;requestAnimationFrame(function(){if(e.instance){var t=e.element.querySelector(".".concat(cn));if(t){var n=function(){e.applyBleedInsets(t),e.applyTrackMarginCompensation()};e.bleedResizeHandler=n,n(),e.instance.on("resize",n)}}})}},{key:"handleSlideChange",value:function(){var e=this.track.querySelector(Ln),t=this.track.querySelectorAll(".".concat(pn,":not(").concat(Ln,")"));e&&this.updateTooltipPosition(e),t.length>0&&this.hideAllTooltips(t),this.updateExternalControlsState()}},{key:"updateTooltipPosition",value:function(e){var t=e.querySelectorAll('[data-tooltip-trigger="true"]');t.length>0&&t.forEach(function(e){var t=e.getAttribute("aria-describedby");if(t){var n=document.getElementById(t);if(n){var i=an.getInstance(n);i&&i.update()}}})}},{key:"hideAllTooltips",value:function(e){e.forEach(function(e){var t=e.querySelectorAll('[data-tooltip-trigger="true"]');t.length>0&&t.forEach(function(e){var t=e.getAttribute("aria-describedby");if(t){var n=document.getElementById(t);if(n){var i=an.getInstance(n);i&&(i.hide(),e.blur())}}})})}},{key:"initExternalControls",value:function(){var e=this,t=this.element.dataset.carouselId||this.element.id;t&&(this.carouselId=t,document.querySelectorAll('[data-carousel-controls="'.concat(t,'"]')).forEach(function(t){var n=t;if(!n.hasAttribute("data-carousel-initialized")){n._carouselClickHandler&&n.removeEventListener("click",n._carouselClickHandler);var i,r,s=n.dataset.carouselAction,o=function(t){t.preventDefault(),n.hasAttribute("disabled")||("next"===s?e.slideNext():"prev"===s&&e.slidePrev())};"next"!==s&&"prev"!==s||(n.addEventListener("click",o),n.setAttribute("aria-label","next"===s?("object"===f(e.config.a11y)?null===(i=e.config.a11y)||void 0===i?void 0:i.nextSlideMessage:void 0)||"Nasledujúci snímok":("object"===f(e.config.a11y)?null===(r=e.config.a11y)||void 0===r?void 0:r.prevSlideMessage:void 0)||"Predchádzajúci snímok"),n.setAttribute("type","button"),n._carouselClickHandler=o),n.setAttribute("data-carousel-initialized","true")}}),this.updateExternalControlsState())}},{key:"updateExternalControlsState",value:function(){if(this.carouselId&&this.instance&&this.instance.params){var e=this.instance.isBeginning,t=this.instance.slides.length,n=this.instance.params.slidesPerView,i=this.instance.activeIndex+n>=t,r=document.querySelectorAll('[data-carousel-controls="'.concat(this.carouselId,'"][data-carousel-action="prev"]')),s=document.querySelectorAll('[data-carousel-controls="'.concat(this.carouselId,'"][data-carousel-action="next"]'));r.forEach(function(t){var n=t;e?(n.setAttribute("disabled","true"),n.setAttribute("aria-disabled","true"),n.style.cursor="not-allowed"):(n.removeAttribute("disabled"),n.setAttribute("aria-disabled","false"),n.style.cursor="pointer")}),s.forEach(function(e){var t=e;i?(t.setAttribute("disabled","true"),t.setAttribute("aria-disabled","true"),t.style.cursor="not-allowed"):(t.removeAttribute("disabled"),t.setAttribute("aria-disabled","false"),t.style.cursor="pointer")})}}},{key:"slideNext",value:function(){this.instance&&this.instance.slideNext()}},{key:"slidePrev",value:function(){this.instance&&this.instance.slidePrev()}},{key:"getActiveIndex",value:function(){return this.instance?this.instance.activeIndex:0}},{key:"onSlideChange",value:function(e){var t=this;this.instance&&this.instance.on("slideChange",function(){e(t.instance.activeIndex)})}},{key:"destroy",value:function(){var e;this.carouselId&&document.querySelectorAll('[data-carousel-controls="'.concat(this.carouselId,'"]')).forEach(function(e){var t=e;t._carouselClickHandler&&(t.removeEventListener("click",t._carouselClickHandler),delete t._carouselClickHandler),t.removeAttribute("data-carousel-initialized")}),window.removeEventListener("resize",this.boundWindowResizeHandler),this.resizeRafId&&(cancelAnimationFrame(this.resizeRafId),this.resizeRafId=void 0),this.instance&&this.bleedResizeHandler&&(this.instance.off("resize",this.bleedResizeHandler),this.bleedResizeHandler=void 0),this.instance&&this.instance.destroy(),null===(e=this.resizeObserver)||void 0===e||e.disconnect(),this.resizeObserver=void 0,this.element.ODS_Carousel===this&&delete this.element.ODS_Carousel}},{key:"update",value:function(){this.instance&&this.instance.update()}}],[{key:"getInstance",value:function(e){return e&&e.ODS_Carousel?e.ODS_Carousel:null}},{key:"getInstanceById",value:function(e){var t=document.querySelector('[data-carousel-id="'.concat(e,'"]'))||document.getElementById(e);return t?this.getInstance(t):null}}])}(),Pn="carousel-hero",In="".concat(Pn,"__viewport"),Nn="".concat(Pn,"__track"),Rn="".concat(Pn,"__slide"),zn="".concat(Pn,"__prev"),Bn="".concat(Pn,"__next"),Hn="".concat(Pn,"__play-pause"),Fn="".concat(Pn,"__tabs"),Vn="".concat(Pn,"__tab"),jn="".concat(Pn,"__pagination"),qn="".concat(Pn,"__pagination-item"),Un="".concat(Pn,"__pagination-svg"),$n="".concat(Pn,"__pagination-circle"),Wn="is-active",Gn="is-playing",Yn="is-paused",Xn=".".concat(In),Kn=".".concat(zn),Jn=".".concat(Bn),Qn=".".concat(Hn),Zn=".".concat(Fn),ei=".".concat(Vn),ti=".".concat(jn),ni={pagination:{clickable:!0,bulletClass:qn,bulletActiveClass:"is-active",renderBullet:function(e,t){return'<button type="button" class="'.concat(t,'" aria-label="Prejsť na snímok ').concat(e+1,'"></button>')}},slidesPerView:1,loop:!1,a11y:{enabled:!0,prevSlideMessage:"Predchádzajúci snímok",nextSlideMessage:"Nasledujúci snímok",containerMessage:"Hero carousel so snímkami",containerRoleDescriptionMessage:"carousel",itemRoleDescriptionMessage:"snímok",firstSlideMessage:"Prvý snímok",lastSlideMessage:"Posledný snímok",slideLabelMessage:"Snímok"},wrapperClass:Nn,slideClass:Rn,slideActiveClass:Wn},ii=function(){return s(function e(t,n){return i(this,e),o(this,"tabs",[]),o(this,"_dotAnimationJustStarted",!1),o(this,"_isDragging",!1),this.element=t,this.config=l(l({},ni),n),this.element.ODS_CarouselHero=this,this._boundTabClick=this._onTabClick.bind(this),this._boundPrevClick=this._onUserNavigation.bind(this),this._boundNextClick=this._onUserNavigation.bind(this),this._boundPlayPauseClick=this._onPlayPauseClick.bind(this),this._boundWindowResize=this._onWindowResize.bind(this),this.init(),this},[{key:"init",value:function(){this.getElements(),this.setupConfig(),this.createSwiper(),this.setupEventListeners(),this.renderPaginationDots(),this.updateStates(),this.updatePlayPauseIcon(),this.hasAutoplay()&&this.isAutoplayRunning()&&this.startDotAnimation(),window.addEventListener("resize",this._boundWindowResize)}},{key:"_onWindowResize",value:function(){var e=this;this.resizeRafId&&cancelAnimationFrame(this.resizeRafId),this.resizeRafId=requestAnimationFrame(function(){e.resizeRafId=void 0,e.instance&&e.viewport&&(e.viewport.clientWidth<=0||(e.instance.update(),e.updateStates(),e.updatePlayPauseIcon()))})}},{key:"getElements",value:function(){this.viewport=this.element.querySelector(Xn);var e=this.element.querySelector(Zn);e&&(this.tabs=Array.from(e.querySelectorAll(ei)))}},{key:"setupConfig",value:function(){var e=this.element.hasAttribute("data-interval")&&parseInt(this.element.getAttribute("data-interval"))||0;if(this.element.hasAttribute("data-swiper-options"))try{var t=JSON.parse(this.element.getAttribute("data-swiper-options"));this.config=l(l({},this.config),t)}catch(e){}this.config.loop=!0,e>=1e3&&(this.config.autoplay={delay:e,disableOnInteraction:!1,pauseOnMouseEnter:!1,waitForTransition:!0,stopOnLastSlide:!1},this.element.classList.add(Gn))}},{key:"createSwiper",value:function(){var e=this,t=this.viewport.querySelectorAll(".".concat(Rn)).length>1;this.instance=new Te(this.viewport,l(l({},this.config),{},{modules:[Me,Ie,Re,Ae,ze],navigation:{nextEl:this.element.querySelector(Jn),prevEl:this.element.querySelector(Kn)},pagination:!!t&&l(l({},this.config.pagination),{},{el:this.element.querySelector(ti)}),on:{slideChange:function(){e.updateStates(),e.isAutoplayRunning()?e.restartDotAnimation():e.stopDotAnimation()},autoplayStart:function(){e._onAutoplayStart()},autoplayStop:function(){e._onAutoplayStop()},touchStart:function(){e._isDragging=!0,e._stopAutoplayIfRunning()},touchEnd:function(){e._isDragging=!1}}})),this.updatePlayPauseIcon()}},{key:"setupEventListeners",value:function(){var e=this;this.tabs.forEach(function(t){t.removeEventListener("click",e._boundTabClick),t.addEventListener("click",e._boundTabClick)});var t=this.element.querySelector(Qn);t&&(t.removeEventListener("click",this._boundPlayPauseClick),t.addEventListener("click",this._boundPlayPauseClick));var n=this.element.querySelector(Kn),i=this.element.querySelector(Jn);n&&(n.removeEventListener("click",this._boundPrevClick),n.addEventListener("click",this._boundPrevClick)),i&&(i.removeEventListener("click",this._boundNextClick),i.addEventListener("click",this._boundNextClick))}},{key:"_onUserNavigation",value:function(){this._stopAutoplayIfRunning(),this.stopDotAnimation()}},{key:"_onTabClick",value:function(e){var t;e.preventDefault();var n=e.currentTarget,i=this.tabs.indexOf(n);-1!==i&&i!==(null===(t=this.instance)||void 0===t?void 0:t.realIndex)&&(this._onUserNavigation(),this.goToSlide(i))}},{key:"_onPlayPauseClick",value:function(){this.toggleAutoplay()}},{key:"isAutoplayRunning",value:function(){var e;return!(null===(e=this.instance)||void 0===e||!e.autoplay||!this.instance.autoplay.running)}},{key:"_stopAutoplayIfRunning",value:function(){this.isAutoplayRunning()&&this.instance.autoplay.stop()}},{key:"_onAutoplayStart",value:function(){this.element.classList.add(Gn),this.element.classList.remove(Yn),this.updatePlayPauseIcon(),this.startDotAnimation()}},{key:"_onAutoplayStop",value:function(){this.element.classList.remove(Gn),this.element.classList.add(Yn),this.updatePlayPauseIcon(),this.stopDotAnimation()}},{key:"toggleAutoplay",value:function(){var e=this;this.instance&&this.instance.autoplay&&(this.isAutoplayRunning()?this.instance.autoplay.stop():(this.updateStates(),setTimeout(function(){e.instance&&e.instance.autoplay&&e.instance.autoplay.start()},10)))}},{key:"goToSlide",value:function(e){this.instance&&this.instance.realIndex!==e&&this.instance.slideToLoop(e)}},{key:"updateStates",value:function(){var e,t;if(this.instance){var n=null!==(e=null!==(t=this.instance.realIndex)&&void 0!==t?t:this.instance.activeIndex)&&void 0!==e?e:0;this.tabs.forEach(function(e,t){var i=t===n;e.classList.toggle(Wn,i),e.setAttribute("aria-selected",String(i)),e.setAttribute("tabindex",i?"0":"-1")}),this.scrollActiveTabIntoView(n),this.updatePaginationBullets(n)}}},{key:"updatePaginationBullets",value:function(e){var t=this,n=this.element.querySelector(ti);n&&n.querySelectorAll(".".concat(qn)).forEach(function(n,i){var r=i===e;if(n.classList.toggle("is-active",r),!t.hasAutoplay()){var s=n.querySelector(".".concat(Un));s&&(s.style.display=r?"block":"none")}})}},{key:"scrollActiveTabIntoView",value:function(e){if(!(!this.tabs.length||e<0||e>=this.tabs.length)){var t=this.tabs[e],n=this.element.querySelector(Zn);if(n&&t){var i=n.getBoundingClientRect(),r=t.getBoundingClientRect(),s=i.width-56;if(r.right>i.left+s||r.left<i.left){var o=r.left-i.left-s/2+r.width/2;n.scrollBy({left:o,behavior:"smooth"})}}}}},{key:"updatePlayPauseIcon",value:function(){var e=this.element.querySelector(Qn);if(e){var t=e.querySelector("use");if(t){var n=this.isAutoplayRunning()?"pause":"play",i=t.getAttribute("xlink:href")||"";if(!i.endsWith("#".concat(n))){var r=i.replace(/#[\w-]+$/,"#".concat(n));t.setAttribute("xlink:href",r)}}}}},{key:"renderPaginationDots",value:function(){var e=this;this._getPaginationButtons().forEach(function(t){var n=e.createSvgDot();t.innerHTML="",t.appendChild(n)})}},{key:"startDotAnimation",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(this.hasAutoplay()&&(e||this.isAutoplayRunning())&&!this._dotAnimationJustStarted){this._dotAnimationJustStarted=!0;var t=this._getActiveBulletButton();if(t){var n=t.querySelector(".".concat(Un));if(n){var i=n.querySelector("circle");if(i){var r=this.getAnimationDuration();i.style.animation="none",t.offsetHeight,i.style.animation="countdown linear ".concat(r,"ms 1 forwards"),this._dotAnimationJustStarted=!1}else this._dotAnimationJustStarted=!1}else this._dotAnimationJustStarted=!1}else this._dotAnimationJustStarted=!1}}},{key:"restartDotAnimation",value:function(){var e=this;this.stopDotAnimation(),setTimeout(function(){e.startDotAnimation()},50)}},{key:"stopDotAnimation",value:function(){this._getPaginationButtons().forEach(function(e){var t=e.querySelector(".".concat(Un));if(t){var n=t.querySelector("circle");n&&(n.style.animation="none")}}),this._dotAnimationJustStarted=!1}},{key:"_getPaginationButtons",value:function(){return Array.from(this.element.querySelectorAll("".concat(ti," > *")))}},{key:"_getActiveBulletClass",value:function(){var e,t=null===(e=this.instance)||void 0===e||null===(e=e.params)||void 0===e?void 0:e.pagination;if(t&&"object"===f(t)&&t.bulletActiveClass)return String(t.bulletActiveClass);var n=this.config.pagination;return n&&"object"===f(n)&&n.bulletActiveClass?String(n.bulletActiveClass):Wn}},{key:"_getActiveBulletButton",value:function(){var e=this._getActiveBulletClass();return this.element.querySelector("".concat(ti," .").concat(e))}},{key:"createSvgDot",value:function(){var e="http://www.w3.org/2000/svg",t=document.createElementNS(e,"svg");t.setAttribute("class",Un),t.setAttribute("width","12"),t.setAttribute("height","12"),t.setAttribute("viewBox","0 0 12 12");var n=document.createElementNS(e,"circle");return n.setAttribute("class",$n),n.setAttribute("r","5"),n.setAttribute("cx","6"),n.setAttribute("cy","6"),t.appendChild(n),t}},{key:"hasAutoplay",value:function(){return!!(this.config.autoplay&&"object"===f(this.config.autoplay)&&this.config.autoplay.delay>=1e3)}},{key:"getAnimationDuration",value:function(){var e;return(null===(e=this.config.autoplay)||void 0===e?void 0:e.delay)||0}},{key:"destroy",value:function(){var e=this;this.tabs.forEach(function(t){t.removeEventListener("click",e._boundTabClick)});var t=this.element.querySelector(Qn);t&&t.removeEventListener("click",this._boundPlayPauseClick);var n=this.element.querySelector(Kn),i=this.element.querySelector(Jn);n&&n.removeEventListener("click",this._boundPrevClick),i&&i.removeEventListener("click",this._boundNextClick),window.removeEventListener("resize",this._boundWindowResize),this.resizeRafId&&(cancelAnimationFrame(this.resizeRafId),this.resizeRafId=void 0),this.instance&&this.instance.destroy(!0,!0),delete this.element.ODS_CarouselHero}}],[{key:"getInstance",value:function(e){return e.ODS_CarouselHero||null}}])}(),ri="carousel-promotions",si="".concat(ri,"__viewport"),oi="".concat(ri,"__track"),ai="".concat(ri,"__slide"),li="".concat(ri,"__pagination"),ci="".concat(ri,"__pagination-item"),ui="".concat(ri,"__pagination-svg"),di="".concat(ri,"__pagination-circle"),pi="".concat(ri,"--slide-inverted"),hi="is-autoplay",fi="is-active",mi=".".concat(si),vi=".".concat(li),gi={pagination:{el:vi,clickable:!0,bulletClass:ci,bulletActiveClass:fi,renderBullet:function(e,t){return'<button aria-label="Stránka '.concat(e+1,'" role="tab" class="').concat(t,'" type="button"></button>')}},slidesPerView:1,loop:!0,a11y:{enabled:!0,prevSlideMessage:"Predchádzajúci snímok",nextSlideMessage:"Nasledujúci snímok",paginationBulletMessage:"Prejsť na snímok {index}",containerMessage:"Carousel so snímkami",containerRoleDescriptionMessage:"carousel",itemRoleDescriptionMessage:"snímok",firstSlideMessage:"Prvý snímok",lastSlideMessage:"Posledný snímok",slideLabelMessage:"Snímok"},cssMode:!1,direction:"horizontal",wrapperClass:oi,slideClass:ai,slideActiveClass:fi,autoplay:!1},yi=function(){function e(t,n){return i(this,e),o(this,"interval",0),this.element=t,this.config=l(l({},gi),n),this.interval=0,this.handleSlideChange=this.handleSlideChange.bind(this),this.scrollToNextSlide=this.scrollToNextSlide.bind(this),this.autoplayAnimationEnd=this.autoplayAnimationEnd.bind(this),this.boundWindowResizeHandler=this.handleWindowResize.bind(this),this.boundPaginationClickHandler=this.handlePaginationClick.bind(this),this.element.ODS_CarouselPromotions=this,this.init(),this}return s(e,[{key:"init",value:function(){var e=this;this.getElements(),this.element.hasAttribute("data-swiper-options")&&this.getCustomOptions(),this.element.hasAttribute("data-interval")&&(this.interval=parseInt(this.element.getAttribute("data-interval")));var t=this.isIntervalValid();t?(this.element.classList.add(hi),this.config.autoplay={delay:this.interval,disableOnInteraction:!1}):(this.interval=0,this.config.autoplay=!1),this.instance=new Te(this.viewport,l(l({},this.config),{},{modules:[Me,Ie,Re,Ae,ze],on:{slideChange:this.handleSlideChange,init:function(){e.fixPaginationButtonType(),e.isAutoplayEnabled&&e.renderSvgDotsForAnimation()},update:function(){e.fixPaginationButtonType(),e.isAutoplayEnabled&&e.renderSvgDotsForAnimation()}}}));var n=this.element.querySelector(vi);n&&t&&(n.addEventListener("animationend",this.autoplayAnimationEnd),n.addEventListener("click",this.boundPaginationClickHandler)),window.addEventListener("resize",this.boundWindowResizeHandler)}},{key:"handlePaginationClick",value:function(){this.stopAutoplay()}},{key:"handleWindowResize",value:function(){var e=this;this.resizeRafId&&cancelAnimationFrame(this.resizeRafId),this.resizeRafId=requestAnimationFrame(function(){e.resizeRafId=void 0,e.instance&&e.viewport&&(e.viewport.clientWidth<=0||(e.instance.update(),e.fixPaginationButtonType(),e.isAutoplayEnabled&&e.renderSvgDotsForAnimation()))})}},{key:"stopAutoplay",value:function(){this.interval=0,this.element.classList.remove(hi),this.instance&&this.instance.autoplay&&this.instance.autoplay.stop()}},{key:"handleSlideChange",value:function(){this.element.classList.remove(pi),this.instance&&void 0!==this.instance.activeIndex&&this.instance.activeIndex%2==1&&this.element.classList.add(pi)}},{key:"autoplayAnimationEnd",value:function(e){e instanceof AnimationEvent&&"countdown"===e.animationName&&this.scrollToNextSlide()}},{key:"isAutoplayEnabled",get:function(){return this.interval>0}},{key:"isIntervalValid",value:function(){var e=parseInt(String(this.interval));return!isNaN(e)&&e>=1e3}},{key:"scrollToNextSlide",value:function(){if(this.instance&&this.instance.slides){var e=this.instance.slides.length;if(!(e<=0)){var t=this.instance.activeIndex||0;this.instance.slideTo((t+1)%e)}}}},{key:"getElements",value:function(){var e;this.viewport=this.element.querySelector(mi);var t=this.element.querySelector(vi);t&&!t.hasAttribute("role")&&t.setAttribute("role","tablist");var n={pagination:l(l({},null!==(e=this.config.pagination)&&void 0!==e?e:{}),{},{el:t,clickable:!0,bulletClass:ci,bulletActiveClass:fi})};this.config=l(l({},this.config),n)}},{key:"getCustomOptions",value:function(){var e=this.element.getAttribute("data-swiper-options");if(e){var t=JSON.parse(e);this.config=l(l({},this.config),t)}}},{key:"fixPaginationButtonType",value:function(){Array.from(this.element.querySelectorAll("".concat(vi," > *"))).forEach(function(e){return e.setAttribute("type","button")})}},{key:"renderSvgDotsForAnimation",value:function(){var t=Array.from(this.element.querySelectorAll("".concat(vi," > *"))),n=e.createSvgDot();n.querySelector("circle").style.animationDuration="".concat(this.interval,"ms"),t.forEach(function(e){e.innerHTML="",e.appendChild(n.cloneNode(!0))})}},{key:"destroy",value:function(){window.removeEventListener("resize",this.boundWindowResizeHandler),this.resizeRafId&&(cancelAnimationFrame(this.resizeRafId),this.resizeRafId=void 0);var e=this.element.querySelector(vi);e&&(e.removeEventListener("animationend",this.autoplayAnimationEnd),e.removeEventListener("click",this.boundPaginationClickHandler)),this.instance&&this.instance.destroy(),this.element.ODS_CarouselPromotions===this&&delete this.element.ODS_CarouselPromotions}},{key:"update",value:function(){this.instance&&this.instance.update()}}],[{key:"createSvgDot",value:function(){var e="http://www.w3.org/2000/svg",t=document.createElementNS(e,"svg");t.setAttribute("class",ui),t.setAttribute("width","12"),t.setAttribute("height","12"),t.setAttribute("viewBox","0 0 12 12"),t.setAttribute("fill","none"),t.setAttribute("xmlns",e);var n=document.createElementNS(e,"circle");return n.setAttribute("class",di),n.setAttribute("r","5"),n.setAttribute("cx","6"),n.setAttribute("cy","6"),t.appendChild(n),t}},{key:"getInstance",value:function(e){return e&&e.ODS_CarouselPromotions?e.ODS_CarouselPromotions:null}}])}(),bi={dataInteractive:"data-dropdown-interactive",focusTrap:"data-dropdown-focus-trap",removeDialogOnDestroy:!1,popperOptions:{placement:"bottom-start",strategy:"absolute",modifiers:[{name:"eventListeners",options:{scroll:!1,resize:!1}},{name:"flip",options:{fallbackPlacements:["bottom-end","bottom-start","bottom"]}},{name:"offset",options:{offset:[0,-1]}}]}},wi=function(){return s(function e(t){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return i(this,e),t.ODS_Dropdown?t.ODS_Dropdown:(this.element=t,this.config=l(l({},bi),r),this.config.popperOptions=l(l({},bi.popperOptions),(null==r?void 0:r.popperOptions)||{}),this.config.popperOptions.modifiers=[].concat(p(bi.popperOptions.modifiers||[]),p((null==r||null===(n=r.popperOptions)||void 0===n?void 0:n.modifiers)||[])),this.handleVisibility=this.handleVisibility.bind(this),this.handleKeyPress=this.handleKeyPress.bind(this),this.handleClick=this.handleClick.bind(this),this.element.ODS_Dropdown=this,this.focusableElements=this.element.querySelectorAll('a[href]:not([disabled]), button:not([disabled]),\n textarea:not([disabled]), input[type="text"]:not([disabled]),\n input[type="radio"]:not([disabled]), input[type="checkbox"]:not([disabled]),\n select:not([disabled])'),this.init(),this)},[{key:"init",value:function(){this.trigger=document.getElementById(this.element.id.replace("dropdown","btn"));var e=this.element.getAttribute("data-dropdown-placement");e&&(this.config.popperOptions.placement=e),this.instance=Qt(this.trigger,this.element,this.config.popperOptions),this.transitioner=Be({element:this.element,visibleClass:"dropdown--visible"}),this.trigger.addEventListener("click",this.handleVisibility,!0)}},{key:"handleVisibility",value:function(){this.element.classList.contains("dropdown--visible")?this.hide():this.show()}},{key:"handleClick",value:function(e){this.trigger===e.target||this.trigger.contains(e.target)||this.element.hasAttribute(this.config.dataInteractive)&&!e.target.id.includes(this.element.id.replace("dropdown","btn"))&&this.element.contains(e.target)||this.handleVisibility()}},{key:"handleKeyPress",value:function(e){if(v.ESC.includes(e.key)&&(this.handleVisibility(),this.element.contains(document.activeElement)&&this.trigger.focus(),this.hide()),this.element.hasAttribute(this.config.focusTrap)){var t=this.focusableElements[0],n=this.focusableElements[this.focusableElements.length-1];document.activeElement!==this.button||"Tab"!==e.key&&9!==e.keyCode?"Tab"!==e.key&&9!==e.keyCode||(e.shiftKey?document.activeElement===t&&(n.focus(),e.preventDefault()):document.activeElement===n&&(t.focus(),e.preventDefault())):e.shiftKey&&(this.focusableElements[this.focusableElements.length-1].focus(),e.preventDefault())}}},{key:"show",value:function(){var e=this;this.transitioner.show(),this.instance.forceUpdate(),document.addEventListener("keydown",this.handleKeyPress),document.addEventListener("click",this.handleClick),window.onresize=function(){return e.update()}}},{key:"hide",value:function(){this.transitioner.hide(),document.removeEventListener("keydown",this.handleKeyPress),document.removeEventListener("click",this.handleClick),window.onresize=null}},{key:"update",value:function(){this.instance.forceUpdate()}},{key:"destroy",value:function(){this.trigger.removeEventListener("click",this.handleVisibility,!0),this.hide(),this.instance.destroy(),this.element.ODS_Dropdown=null,window.onresize=null,this.config.removeDialogOnDestroy&&this.element.remove()}}],[{key:"getInstance",value:function(e){return e&&e.ODS_Dropdown?e.ODS_Dropdown:null}}])}(),_i=function(){return s(function e(t){i(this,e),this.element=t,this.toggle=this.toggle.bind(this),this.element.ODS_Expander=this,this.init()},[{key:"toggle",value:function(){var e=this.element.getAttribute("data-toggle-group");e&&this.syncGroup(e)}},{key:"syncGroup",value:function(e){var t=this,n=this.element.open;document.querySelectorAll('[data-toggle-group="'.concat(e,'"][data-expander]')).forEach(function(e){e!==t.element&&e.open!==n&&(e.open=n)})}},{key:"init",value:function(){this.element.addEventListener("toggle",this.toggle)}},{key:"update",value:function(){this.destroy(),this.init()}},{key:"destroy",value:function(){this.element.removeEventListener("toggle",this.toggle)}}],[{key:"getInstance",value:function(e){return e&&e.ODS_Expander?e.ODS_Expander:null}}])}(),Si="toggleTrigger",Ei={activeClass:"is-active",settingsAttr:"data-toggle"},ki=function(){function e(t,n){return i(this,e),this.element=t,this.config=l(l({},Ei),n),this.settings=[],this.targets=[],this.hasClickOutside=!1,this.handleClick=this.handleClick.bind(this),this.handleClickOutside=this.handleClickOutside.bind(this),this.element.ODS_Toggle=this,this.init(),this}return s(e,[{key:"doToggle",value:function(e){var t=e.dispatchEvent,n=void 0===t||t,i=e.element,r=e.attribute,s=e.value,o=e.action,a=l({},e),c={trigger:this.element,element:i},u=r,d=i,p=s;"icon"===u&&(u="xlink:href",d=i.querySelector("use")),"text"===u&&(d=i.querySelector("[data-toggle-text-target]")||i),void 0===p&&(p=!1);var h=xi({element:d,attribute:u,action:o,value:p,dispatchEvent:n,eventDetail:c});return null!==h&&(a.value=h),a}},{key:"init",value:function(){return this.settings=this.parseSettings(),this.targets=this.setupTargets(),this.hasClickOutside=this.settings.some(function(e){return!0===e.clickOutside}),this.element.addEventListener("click",this.handleClick),this.hasClickOutside&&document.addEventListener("click",this.handleClickOutside),this.targets}},{key:"handleClick",value:function(){var e=this;this.targets=this.targets.map(function(t){return e.doToggle(t)}),this.element.dispatchEvent(new CustomEvent(Si,{bubbles:!0}))}},{key:"handleClickOutside",value:function(e){var t=this,n=e.target;this.element.contains(n)||this.targets.some(function(e){return e.element.contains(n)})||this.targets.some(function(e){return"class"===e.attribute&&"string"==typeof e.value?e.element.classList.contains(e.value):"hidden"===e.attribute&&!e.element.hasAttribute("hidden")})&&(this.targets=this.targets.map(function(e){return t.doToggle(e)}),this.element.dispatchEvent(new CustomEvent(Si,{bubbles:!0})))}},{key:"destroy",value:function(){this.element.removeEventListener("click",this.handleClick),this.hasClickOutside&&document.removeEventListener("click",this.handleClickOutside),this.settings=[],this.targets=[],this.hasClickOutside=!1}},{key:"update",value:function(){this.removeNonExistentTargets(),this.addNewTargets();var e=this.hasClickOutside;this.hasClickOutside=this.settings.some(function(e){return!0===e.clickOutside}),!e&&this.hasClickOutside?document.addEventListener("click",this.handleClickOutside):e&&!this.hasClickOutside&&document.removeEventListener("click",this.handleClickOutside)}},{key:"parseSettings",value:function(){var e=this.element.getAttribute(this.config.settingsAttr),t=this.element.getAttribute("aria-controls"),n=[];try{e&&(n=JSON.parse(e))}catch(e){}if(t){var i=this.element.getAttribute("aria-expanded");n=[].concat(p(i?[{target:"self",attribute:"aria-expanded"}]:[]),[{target:t.split(" ").map(function(e){return"#".concat(e)}).join(","),attribute:"hidden"}],p(Array.isArray(n)?n:[]))}return n}},{key:"setupTargets",value:function(){var t=this.element;return this.settings.reduce(function(n,i){return i&&i.target?[].concat(p(n),p(i.target.split(",").reduce(function(n,r){return[].concat(p(n),p(e.getTargetElementsFromString({target:r,trigger:t}).map(function(e){return l(l({},i),{},{element:e})})))},[]))):n},[])}},{key:"removeNonExistentTargets",value:function(){this.targets=this.targets.filter(function(e){return document.contains(e.element)})}},{key:"addNewTargets",value:function(){var e=this,t=this.setupTargets().filter(function(t){return!e.targets.find(function(e){return e.element===t.element&&e.action===t.action})});this.targets=[].concat(p(this.targets),p(t))}}],[{key:"getTargetElementsFromString",value:function(e){var t=e.target,n=e.trigger,i=t.trim();return"self"===i?[n]:"parent"===i?[n.parentNode]:"previous"===i?[n.previousElementSibling]:"next"===i?[n.nextElementSibling]:"string"==typeof i?Array.from(document.querySelectorAll(i)):[]}},{key:"getInstance",value:function(e){return e&&e.ODS_Toggle?e.ODS_Toggle:null}}])}();function xi(e){var t=e.element,n=e.attribute,i=e.action,r=e.value,s=e.dispatchEvent,o=void 0===s||s,a=e.eventDetail,l=null;if(!(t&&t instanceof Element))return l;if("focus"===i&&setTimeout(function(){return t.focus()},20),"click"===i&&t.click(),"class"===n&&"string"==typeof r&&(t.classList.toggle(r),l=r),"text"===n){var c=t.textContent;t.textContent=(null==r?void 0:r.toString())||"",l=c}return"class"!==n&&"text"!==n&&void 0===i&&(l=t.getAttribute(n),"hidden"===n?t.hasAttribute(n)?t.removeAttribute(n):t.setAttribute(n,""):r?t.setAttribute(n,String(r)):t.setAttribute(n,String(!("true"===l)))),o&&t.dispatchEvent(new CustomEvent("toggle",{detail:a,bubbles:!0})),l}var Ci,Ti,Ai,Oi,Li,Di,Mi,Pi,Ii,Ni,Ri={bodiesSelector:".accordion__body",buttonSelector:"[data-feature-accordion-toggle]",imageSelector:"[data-feature-accordion-image]"},zi=function(){return s(function e(t,n){var r=this;return i(this,e),o(this,"bodies",[]),o(this,"buttons",[]),o(this,"images",[]),o(this,"activeId",null),o(this,"onClick",function(e){var t=e.currentTarget,n=r.buttons.indexOf(t);r.setActive(n)}),this.element=t,this.config=l(l({},Ri),n),this.element.ODS_FeatureAccordion=this,this.init(),this},[{key:"init",value:function(){var e=this;this.bodies=Array.from(this.element.querySelectorAll(this.config.bodiesSelector)),this.buttons=Array.from(this.element.querySelectorAll(this.config.buttonSelector)),this.generateImagesFromDataAttributes(),this.setActive(0),this.buttons.forEach(function(t){t.addEventListener("click",e.onClick)})}},{key:"generateImagesFromDataAttributes",value:function(){var e=this,t=this.element.querySelector(".feature-accordion__preview.show-md");if(t){var n=t.querySelectorAll(this.config.imageSelector);n.length>0?this.images=Array.from(n):(this.images=[],this.buttons.forEach(function(n){var i=n.getAttribute("data-image-url"),r=n.getAttribute("data-image-alt")||"",s=n.getAttribute("data-image-srcset");if(i){var o=document.createElement("img");o.setAttribute("data-feature-accordion-image",""),o.src=i,o.alt=r,s&&(o.srcset=s),t.appendChild(o),e.images.push(o);var a=n.getAttribute("aria-controls");if(a){var l=document.getElementById(a);if(l){var c=l.querySelector(".feature-accordion__preview.hide-md");c||((c=document.createElement("div")).className="feature-accordion__preview hide-md",l.appendChild(c));var u=document.createElement("img");u.setAttribute("data-feature-accordion-image",""),u.src=i,u.alt=r,u.className="feature-accordion__image--mobile",s&&(u.srcset=s),c.appendChild(u)}}}}))}}},{key:"setActive",value:function(e){if(!(e<0||e>=this.buttons.length)){this.activeId=this.buttons[e].getAttribute("id"),this.bodies.forEach(function(e){e.setAttribute("hidden",""),e.classList.remove("is-active")}),this.buttons.forEach(function(e){var t=e.closest(".feature-accordion__item");null==t||t.classList.remove("is-active"),xi({element:e,attribute:"aria-expanded",value:"false"})});var t=this.buttons[e],n=t.getAttribute("aria-controls"),i=n?document.getElementById(n):null,r=t.closest(".feature-accordion__item");i&&(i.removeAttribute("hidden"),i.classList.add("is-active")),r&&r.classList.add("is-active"),xi({element:t,attribute:"aria-expanded",value:"true"}),this.images.forEach(function(t,n){t.classList.toggle("hide",n!==e)})}}},{key:"destroy",value:function(){var e=this;this.buttons.forEach(function(t){t.removeEventListener("click",e.onClick)})}},{key:"update",value:function(){this.destroy(),this.init()}}],[{key:"getInstance",value:function(e){return e&&e.ODS_FeatureAccordion?e.ODS_FeatureAccordion:null}}])}(),Bi={autoselect:!0,wrapperClassName:"",menuClassName:"",optionClassName:"",customInputClassName:"",displayMenu:"overlay",tAssistiveHint:function(){return"Pre prezeranie výsledkov automatického dopĺňania použite šípky nahor a nadol a pre výber konkrétneho výsledku použite tlačidlo Enter. Pri dotykových zariadeniach použite dotyk alebo potiahnutie prstom do strany."}},Hi=function(){return s(function e(t,n){return i(this,e),this.element=t,this.config=l(l({},Bi),n),this.onPageshow=this.onPageshow.bind(this),this.instance=null,this.element.ODS_Autocomplete=this,this.init().catch(console.error),this},[{key:"init",value:(e=function(e){return function(){var t=this,i=arguments;return new Promise(function(r,s){var o=e.apply(t,i);function a(e){n(o,r,s,a,l,"next",e)}function l(e){n(o,r,s,a,l,"throw",e)}a(void 0)})}}(c().m(function e(){var t,n,i,r,s,o,a;return c().w(function(e){for(;;)switch(e.n){case 0:if(t=this.element.getAttribute("data-autocomplete-config"),n={},t)try{n=JSON.parse(t)}catch(e){}return this.config=l(l({},this.config),n),i=this.config.customInputClassName||"",r=i.split(/\s+/).filter(Boolean),s=r.includes("input--search-icon"),o=r.includes("input--search-icon-with-placeholder"),this.config.customInputClassName=r.filter(function(e){return"input--search-icon"!==e&&"input--search-icon-with-placeholder"!==e}).join(" "),s&&(this.config.wrapperClassName=[this.config.wrapperClassName,"autocomplete__wrapper--search-icon"].filter(Boolean).join(" ")),o&&(this.config.wrapperClassName=[this.config.wrapperClassName,"autocomplete__wrapper--search-icon-with-placeholder"].filter(Boolean).join(" ")),e.n=1,Promise.resolve().then(function(){return sl});case 1:a=e.v.default,"SELECT"===this.element.tagName?a.enhanceSelectElement(l({selectElement:this.element},this.config)):a(l({element:this.element},this.config)),window.addEventListener("pageshow",this.onPageshow);case 2:return e.a(2)}},e,this)})),function(){return e.apply(this,arguments)})},{key:"onPageshow",value:function(e){e.persisted&&window&&window.location.reload()}},{key:"destroy",value:function(){window.removeEventListener("pageshow",this.onPageshow),this.element.ODS_Autocomplete=null}},{key:"update",value:function(){this.destroy(),this.init().catch(console.error)}}],[{key:"getInstance",value:function(e){return e&&e.ODS_Autocomplete?e.ODS_Autocomplete:null}}]);var e}(),Fi={},Vi=[],ji=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function qi(e,t){for(var n in t)e[n]=t[n];return e}function Ui(e){var t=e.parentNode;t&&t.removeChild(e)}function $i(e,t,n){var i,r,s,o={};for(s in t)"key"==s?i=t[s]:"ref"==s?r=t[s]:o[s]=t[s];if(arguments.length>2&&(o.children=arguments.length>3?Ci.call(arguments,2):n),"function"==typeof e&&null!=e.defaultProps)for(s in e.defaultProps)void 0===o[s]&&(o[s]=e.defaultProps[s]);return Wi(e,o,i,r,null)}function Wi(e,t,n,i,r){var s={type:e,props:t,key:n,ref:i,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:null==r?++Ai:r};return null==r&&null!=Ti.vnode&&Ti.vnode(s),s}function Gi(e){return e.children}function Yi(e,t){this.props=e,this.context=t}function Xi(e,t){if(null==t)return e.__?Xi(e.__,e.__.__k.indexOf(e)+1):null;for(var n;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e)return n.__e;return"function"==typeof e.type?Xi(e):null}function Ki(e){var t,n;if(null!=(e=e.__)&&null!=e.__c){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e){e.__e=e.__c.base=n.__e;break}return Ki(e)}}function Ji(e){(!e.__d&&(e.__d=!0)&&Oi.push(e)&&!Qi.__r++||Di!==Ti.debounceRendering)&&((Di=Ti.debounceRendering)||Li)(Qi)}function Qi(){for(var e;Qi.__r=Oi.length;)e=Oi.sort(function(e,t){return e.__v.__b-t.__v.__b}),Oi=[],e.some(function(e){var t,n,i,r,s,o;e.__d&&(s=(r=(t=e).__v).__e,(o=t.__P)&&(n=[],(i=qi({},r)).__v=r.__v+1,ar(o,r,i,t.__n,void 0!==o.ownerSVGElement,null!=r.__h?[s]:null,n,null==s?Xi(r):s,r.__h),lr(n,r),r.__e!=s&&Ki(r)))})}function Zi(e,t,n,i,r,s,o,a,l,c){var u,d,p,h,f,m,v,g=i&&i.__k||Vi,y=g.length;for(n.__k=[],u=0;u<t.length;u++)if(null!=(h=n.__k[u]=null==(h=t[u])||"boolean"==typeof h?null:"string"==typeof h||"number"==typeof h||"bigint"==typeof h?Wi(null,h,null,null,h):Array.isArray(h)?Wi(Gi,{children:h},null,null,null):h.__b>0?Wi(h.type,h.props,h.key,null,h.__v):h)){if(h.__=n,h.__b=n.__b+1,null===(p=g[u])||p&&h.key==p.key&&h.type===p.type)g[u]=void 0;else for(d=0;d<y;d++){if((p=g[d])&&h.key==p.key&&h.type===p.type){g[d]=void 0;break}p=null}ar(e,h,p=p||Fi,r,s,o,a,l,c),f=h.__e,(d=h.ref)&&p.ref!=d&&(v||(v=[]),p.ref&&v.push(p.ref,null,h),v.push(d,h.__c||f,h)),null!=f?(null==m&&(m=f),"function"==typeof h.type&&h.__k===p.__k?h.__d=l=er(h,l,e):l=nr(e,h,p,g,f,l),"function"==typeof n.type&&(n.__d=l)):l&&p.__e==l&&l.parentNode!=e&&(l=Xi(p))}for(n.__e=m,u=y;u--;)null!=g[u]&&("function"==typeof n.type&&null!=g[u].__e&&g[u].__e==n.__d&&(n.__d=Xi(i,u+1)),ur(g[u],g[u]));if(v)for(u=0;u<v.length;u++)cr(v[u],v[++u],v[++u])}function er(e,t,n){for(var i,r=e.__k,s=0;r&&s<r.length;s++)(i=r[s])&&(i.__=e,t="function"==typeof i.type?er(i,t,n):nr(n,i,i,r,i.__e,t));return t}function tr(e,t){return t=t||[],null==e||"boolean"==typeof e||(Array.isArray(e)?e.some(function(e){tr(e,t)}):t.push(e)),t}function nr(e,t,n,i,r,s){var o,a,l;if(void 0!==t.__d)o=t.__d,t.__d=void 0;else if(null==n||r!=s||null==r.parentNode)e:if(null==s||s.parentNode!==e)e.appendChild(r),o=null;else{for(a=s,l=0;(a=a.nextSibling)&&l<i.length;l+=2)if(a==r)break e;e.insertBefore(r,s),o=s}return void 0!==o?o:r.nextSibling}function ir(e,t,n){"-"===t[0]?e.setProperty(t,n):e[t]=null==n?"":"number"!=typeof n||ji.test(t)?n:n+"px"}function rr(e,t,n,i,r){var s;e:if("style"===t)if("string"==typeof n)e.style.cssText=n;else{if("string"==typeof i&&(e.style.cssText=i=""),i)for(t in i)n&&t in n||ir(e.style,t,"");if(n)for(t in n)i&&n[t]===i[t]||ir(e.style,t,n[t])}else if("o"===t[0]&&"n"===t[1])s=t!==(t=t.replace(/Capture$/,"")),t=t.toLowerCase()in e?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+s]=n,n?i||e.addEventListener(t,s?or:sr,s):e.removeEventListener(t,s?or:sr,s);else if("dangerouslySetInnerHTML"!==t){if(r)t=t.replace(/xlink[H:h]/,"h").replace(/sName$/,"s");else if("href"!==t&&"list"!==t&&"form"!==t&&"tabIndex"!==t&&"download"!==t&&t in e)try{e[t]=null==n?"":n;break e}catch(e){}"function"==typeof n||(null!=n&&(!1!==n||"a"===t[0]&&"r"===t[1])?e.setAttribute(t,n):e.removeAttribute(t))}}function sr(e){this.l[e.type+!1](Ti.event?Ti.event(e):e)}function or(e){this.l[e.type+!0](Ti.event?Ti.event(e):e)}function ar(e,t,n,i,r,s,o,a,l){var c,u,d,p,h,f,m,v,g,y,b,w=t.type;if(void 0!==t.constructor)return null;null!=n.__h&&(l=n.__h,a=t.__e=n.__e,t.__h=null,s=[a]),(c=Ti.__b)&&c(t);try{e:if("function"==typeof w){if(v=t.props,g=(c=w.contextType)&&i[c.__c],y=c?g?g.props.value:c.__:i,n.__c?m=(u=t.__c=n.__c).__=u.__E:("prototype"in w&&w.prototype.render?t.__c=u=new w(v,y):(t.__c=u=new Yi(v,y),u.constructor=w,u.render=dr),g&&g.sub(u),u.props=v,u.state||(u.state={}),u.context=y,u.__n=i,d=u.__d=!0,u.__h=[]),null==u.__s&&(u.__s=u.state),null!=w.getDerivedStateFromProps&&(u.__s==u.state&&(u.__s=qi({},u.__s)),qi(u.__s,w.getDerivedStateFromProps(v,u.__s))),p=u.props,h=u.state,d)null==w.getDerivedStateFromProps&&null!=u.componentWillMount&&u.componentWillMount(),null!=u.componentDidMount&&u.__h.push(u.componentDidMount);else{if(null==w.getDerivedStateFromProps&&v!==p&&null!=u.componentWillReceiveProps&&u.componentWillReceiveProps(v,y),!u.__e&&null!=u.shouldComponentUpdate&&!1===u.shouldComponentUpdate(v,u.__s,y)||t.__v===n.__v){u.props=v,u.state=u.__s,t.__v!==n.__v&&(u.__d=!1),u.__v=t,t.__e=n.__e,t.__k=n.__k,t.__k.forEach(function(e){e&&(e.__=t)}),u.__h.length&&o.push(u);break e}null!=u.componentWillUpdate&&u.componentWillUpdate(v,u.__s,y),null!=u.componentDidUpdate&&u.__h.push(function(){u.componentDidUpdate(p,h,f)})}u.context=y,u.props=v,u.state=u.__s,(c=Ti.__r)&&c(t),u.__d=!1,u.__v=t,u.__P=e,c=u.render(u.props,u.state,u.context),u.state=u.__s,null!=u.getChildContext&&(i=qi(qi({},i),u.getChildContext())),d||null==u.getSnapshotBeforeUpdate||(f=u.getSnapshotBeforeUpdate(p,h)),b=null!=c&&c.type===Gi&&null==c.key?c.props.children:c,Zi(e,Array.isArray(b)?b:[b],t,n,i,r,s,o,a,l),u.base=t.__e,t.__h=null,u.__h.length&&o.push(u),m&&(u.__E=u.__=null),u.__e=!1}else null==s&&t.__v===n.__v?(t.__k=n.__k,t.__e=n.__e):t.__e=function(e,t,n,i,r,s,o,a){var l,c,u,d=n.props,p=t.props,h=t.type,f=0;if("svg"===h&&(r=!0),null!=s)for(;f<s.length;f++)if((l=s[f])&&"setAttribute"in l==!!h&&(h?l.localName===h:3===l.nodeType)){e=l,s[f]=null;break}if(null==e){if(null===h)return document.createTextNode(p);e=r?document.createElementNS("http://www.w3.org/2000/svg",h):document.createElement(h,p.is&&p),s=null,a=!1}if(null===h)d===p||a&&e.data===p||(e.data=p);else{if(s=s&&Ci.call(e.childNodes),c=(d=n.props||Fi).dangerouslySetInnerHTML,u=p.dangerouslySetInnerHTML,!a){if(null!=s)for(d={},f=0;f<e.attributes.length;f++)d[e.attributes[f].name]=e.attributes[f].value;(u||c)&&(u&&(c&&u.__html==c.__html||u.__html===e.innerHTML)||(e.innerHTML=u&&u.__html||""))}if(function(e,t,n,i,r){var s;for(s in n)"children"===s||"key"===s||s in t||rr(e,s,null,n[s],i);for(s in t)r&&"function"!=typeof t[s]||"children"===s||"key"===s||"value"===s||"checked"===s||n[s]===t[s]||rr(e,s,t[s],n[s],i)}(e,p,d,r,a),u)t.__k=[];else if(f=t.props.children,Zi(e,Array.isArray(f)?f:[f],t,n,i,r&&"foreignObject"!==h,s,o,s?s[0]:n.__k&&Xi(n,0),a),null!=s)for(f=s.length;f--;)null!=s[f]&&Ui(s[f]);a||("value"in p&&void 0!==(f=p.value)&&(f!==e.value||"progress"===h&&!f||"option"===h&&f!==d.value)&&rr(e,"value",f,d.value,!1),"checked"in p&&void 0!==(f=p.checked)&&f!==e.checked&&rr(e,"checked",f,d.checked,!1))}return e}(n.__e,t,n,i,r,s,o,l);(c=Ti.diffed)&&c(t)}catch(e){t.__v=null,(l||null!=s)&&(t.__e=a,t.__h=!!l,s[s.indexOf(a)]=null),Ti.__e(e,t,n)}}function lr(e,t){Ti.__c&&Ti.__c(t,e),e.some(function(t){try{e=t.__h,t.__h=[],e.some(function(e){e.call(t)})}catch(e){Ti.__e(e,t.__v)}})}function cr(e,t,n){try{"function"==typeof e?e(t):e.current=t}catch(e){Ti.__e(e,n)}}function ur(e,t,n){var i,r;if(Ti.unmount&&Ti.unmount(e),(i=e.ref)&&(i.current&&i.current!==e.__e||cr(i,null,t)),null!=(i=e.__c)){if(i.componentWillUnmount)try{i.componentWillUnmount()}catch(e){Ti.__e(e,t)}i.base=i.__P=null}if(i=e.__k)for(r=0;r<i.length;r++)i[r]&&ur(i[r],t,"function"!=typeof e.type);n||null==e.__e||Ui(e.__e),e.__e=e.__d=void 0}function dr(e,t,n){return this.constructor(e,n)}function pr(e,t,n){var i,r;Ti.__&&Ti.__(e,t),i=t.__k,r=[],ar(t,e=t.__k=$i(Gi,null,[e]),i||Fi,Fi,void 0!==t.ownerSVGElement,i?null:t.firstChild?Ci.call(t.childNodes):null,r,i?i.__e:t.firstChild,!1),lr(r,e)}Ci=Vi.slice,Ti={__e:function(e,t){for(var n,i,r;t=t.__;)if((n=t.__c)&&!n.__)try{if((i=n.constructor)&&null!=i.getDerivedStateFromError&&(n.setState(i.getDerivedStateFromError(e)),r=n.__d),null!=n.componentDidCatch&&(n.componentDidCatch(e),r=n.__d),r)return n.__E=n}catch(t){e=t}throw e}},Ai=0,Yi.prototype.setState=function(e,t){var n;n=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=qi({},this.state),"function"==typeof e&&(e=e(qi({},n),this.props)),e&&qi(n,e),null!=e&&this.__v&&(t&&this.__h.push(t),Ji(this))},Yi.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),Ji(this))},Yi.prototype.render=Gi,Oi=[],Li="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,Qi.__r=0,Mi=0;var hr=0,fr=[],mr=Ti.__b,vr=Ti.__r,gr=Ti.diffed,yr=Ti.__c,br=Ti.unmount;function wr(e,t){Ti.__h&&Ti.__h(Ii,e,hr||t),hr=0;var n=Ii.__H||(Ii.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({}),n.__[e]}function _r(e){return hr=1,function(e,t){var n=wr(Pi++,2);return n.t=e,n.__c||(n.__=[Lr(void 0,t),function(e){var t=n.t(n.__[0],e);n.__[0]!==t&&(n.__=[t,n.__[1]],n.__c.setState({}))}],n.__c=Ii),n.__}(Lr,e)}function Sr(e,t){var n=wr(Pi++,3);!Ti.__s&&Or(n.__H,t)&&(n.__=e,n.__H=t,Ii.__H.__h.push(n))}function Er(e){return hr=5,function(e,t){var n=wr(Pi++,7);return Or(n.__H,t)&&(n.__=e(),n.__H=t,n.__h=e),n.__}(function(){return{current:e}},[])}function kr(e){var t=Ii.context[e.__c],n=wr(Pi++,9);return n.c=e,t?(null==n.__&&(n.__=!0,t.sub(Ii)),t.props.value):e.__}function xr(){for(var e;e=fr.shift();)if(e.__P)try{e.__H.__h.forEach(Tr),e.__H.__h.forEach(Ar),e.__H.__h=[]}catch(t){e.__H.__h=[],Ti.__e(t,e.__v)}}Ti.__b=function(e){Ii=null,mr&&mr(e)},Ti.__r=function(e){vr&&vr(e),Pi=0;var t=(Ii=e.__c).__H;t&&(t.__h.forEach(Tr),t.__h.forEach(Ar),t.__h=[])},Ti.diffed=function(e){gr&&gr(e);var t=e.__c;t&&t.__H&&t.__H.__h.length&&(1!==fr.push(t)&&Ni===Ti.requestAnimationFrame||((Ni=Ti.requestAnimationFrame)||function(e){var t,n=function(){clearTimeout(i),Cr&&cancelAnimationFrame(t),setTimeout(e)},i=setTimeout(n,100);Cr&&(t=requestAnimationFrame(n))})(xr)),Ii=null},Ti.__c=function(e,t){t.some(function(e){try{e.__h.forEach(Tr),e.__h=e.__h.filter(function(e){return!e.__||Ar(e)})}catch(n){t.some(function(e){e.__h&&(e.__h=[])}),t=[],Ti.__e(n,e.__v)}}),yr&&yr(e,t)},Ti.unmount=function(e){br&&br(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach(function(e){try{Tr(e)}catch(e){t=e}}),t&&Ti.__e(t,n.__v))};var Cr="function"==typeof requestAnimationFrame;function Tr(e){var t=Ii,n=e.__c;"function"==typeof n&&(e.__c=void 0,n()),Ii=t}function Ar(e){var t=Ii;e.__c=e.__(),Ii=t}function Or(e,t){return!e||e.length!==t.length||t.some(function(t,n){return t!==e[n]})}function Lr(e,t){return"function"==typeof t?t(e):t}function Dr(e,t){for(var n in t)e[n]=t[n];return e}function Mr(e,t){for(var n in e)if("__source"!==n&&!(n in t))return!0;for(var i in t)if("__source"!==i&&e[i]!==t[i])return!0;return!1}function Pr(e){this.props=e}(Pr.prototype=new Yi).isPureReactComponent=!0,Pr.prototype.shouldComponentUpdate=function(e,t){return Mr(this.props,e)||Mr(this.state,t)};var Ir=Ti.__b;Ti.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),Ir&&Ir(e)};var Nr="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function Rr(e){function t(t,n){var i=Dr({},t);return delete i.ref,e(i,(n=t.ref||n)&&("object"!=typeof n||"current"in n)?n:null)}return t.$$typeof=Nr,t.render=t,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t}var zr=Ti.__e;Ti.__e=function(e,t,n){if(e.then)for(var i,r=t;r=r.__;)if((i=r.__c)&&i.__c)return null==t.__e&&(t.__e=n.__e,t.__k=n.__k),i.__c(e,t);zr(e,t,n)};var Br=Ti.unmount;function Hr(){this.__u=0,this.t=null,this.__b=null}function Fr(e){var t=e.__.__c;return t&&t.__e&&t.__e(e)}function Vr(){this.u=null,this.o=null}Ti.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&!0===e.__h&&(e.type=null),Br&&Br(e)},(Hr.prototype=new Yi).__c=function(e,t){var n=t.__c,i=this;null==i.t&&(i.t=[]),i.t.push(n);var r=Fr(i.__v),s=!1,o=function(){s||(s=!0,n.__R=null,r?r(a):a())};n.__R=o;var a=function(){if(! --i.__u){if(i.state.__e){var e=i.state.__e;i.__v.__k[0]=function e(t,n,i){return t&&(t.__v=null,t.__k=t.__k&&t.__k.map(function(t){return e(t,n,i)}),t.__c&&t.__c.__P===n&&(t.__e&&i.insertBefore(t.__e,t.__d),t.__c.__e=!0,t.__c.__P=i)),t}(e,e.__c.__P,e.__c.__O)}var t;for(i.setState({__e:i.__b=null});t=i.t.pop();)t.forceUpdate()}},l=!0===t.__h;i.__u++||l||i.setState({__e:i.__b=i.__v.__k[0]}),e.then(o,o)},Hr.prototype.componentWillUnmount=function(){this.t=[]},Hr.prototype.render=function(e,t){if(this.__b){if(this.__v.__k){var n=document.createElement("div"),i=this.__v.__k[0].__c;this.__v.__k[0]=function e(t,n,i){return t&&(t.__c&&t.__c.__H&&(t.__c.__H.__.forEach(function(e){"function"==typeof e.__c&&e.__c()}),t.__c.__H=null),null!=(t=Dr({},t)).__c&&(t.__c.__P===i&&(t.__c.__P=n),t.__c=null),t.__k=t.__k&&t.__k.map(function(t){return e(t,n,i)})),t}(this.__b,n,i.__O=i.__P)}this.__b=null}var r=t.__e&&$i(Gi,null,e.fallback);return r&&(r.__h=null),[$i(Gi,null,t.__e?null:e.children),r]};var jr=function(e,t,n){if(++n[1]===n[0]&&e.o.delete(t),e.props.revealOrder&&("t"!==e.props.revealOrder[0]||!e.o.size))for(n=e.u;n;){for(;n.length>3;)n.pop()();if(n[1]<n[0])break;e.u=n=n[2]}};(Vr.prototype=new Yi).__e=function(e){var t=this,n=Fr(t.__v),i=t.o.get(e);return i[0]++,function(r){var s=function(){t.props.revealOrder?(i.push(r),jr(t,e,i)):r()};n?n(s):s()}},Vr.prototype.render=function(e){this.u=null,this.o=new Map;var t=tr(e.children);e.revealOrder&&"b"===e.revealOrder[0]&&t.reverse();for(var n=t.length;n--;)this.o.set(t[n],this.u=[1,0,this.u]);return e.children},Vr.prototype.componentDidUpdate=Vr.prototype.componentDidMount=function(){var e=this;this.o.forEach(function(t,n){jr(e,n,t)})};var qr="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,Ur=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|marker(?!H|W|U)|overline|paint|stop|strikethrough|stroke|text(?!L)|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,$r="undefined"!=typeof document,Wr=function(e){return("undefined"!=typeof Symbol&&"symbol"==typeof Symbol()?/fil|che|rad/i:/fil|che|ra/i).test(e)};Yi.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(e){Object.defineProperty(Yi.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})});var Gr=Ti.event;function Yr(){}function Xr(){return this.cancelBubble}function Kr(){return this.defaultPrevented}Ti.event=function(e){return Gr&&(e=Gr(e)),e.persist=Yr,e.isPropagationStopped=Xr,e.isDefaultPrevented=Kr,e.nativeEvent=e};var Jr={configurable:!0,get:function(){return this.class}},Qr=Ti.vnode;Ti.vnode=function(e){var t=e.type,n=e.props,i=n;if("string"==typeof t){var r=-1===t.indexOf("-");for(var s in i={},n){var o=n[s];$r&&"children"===s&&"noscript"===t||"value"===s&&"defaultValue"in n&&null==o||("defaultValue"===s&&"value"in n&&null==n.value?s="value":"download"===s&&!0===o?o="":/ondoubleclick/i.test(s)?s="ondblclick":/^onchange(textarea|input)/i.test(s+t)&&!Wr(n.type)?s="oninput":/^onfocus$/i.test(s)?s="onfocusin":/^onblur$/i.test(s)?s="onfocusout":/^on(Ani|Tra|Tou|BeforeInp|Compo)/.test(s)?s=s.toLowerCase():r&&Ur.test(s)?s=s.replace(/[A-Z0-9]/,"-$&").toLowerCase():null===o&&(o=void 0),i[s]=o)}"select"==t&&i.multiple&&Array.isArray(i.value)&&(i.value=tr(n.children).forEach(function(e){e.props.selected=-1!=i.value.indexOf(e.props.value)})),"select"==t&&null!=i.defaultValue&&(i.value=tr(n.children).forEach(function(e){e.props.selected=i.multiple?-1!=i.defaultValue.indexOf(e.props.value):i.defaultValue==e.props.value})),e.props=i,n.class!=n.className&&(Jr.enumerable="className"in n,null!=n.className&&(i.class=n.className),Object.defineProperty(i,"className",Jr))}e.$$typeof=qr,Qr&&Qr(e)};var Zr=Ti.__r;Ti.__r=function(e){Zr&&Zr(e),e.__c};var es={wrapper:"daypickr",header:"daypickr__header",select:"daypickr__select",monthSelect:"daypickr__select--month",yearSelect:"daypickr__select--year",button:"daypickr__button",paginationButton:"daypickr__button--pagination",nextMonthButton:"daypickr__button--pagination-next",prevMonthButton:"daypickr__button--pagination-prev",yearMonthWrapper:"daypickr__year-month-wrapper",pagination:"daypickr__pagination",table:"daypickr__calendar",tableRow:"daypickr__calendar-row",tableCell:"daypickr__calendar-cell",tableHeaderRow:"daypickr__calendar-header-row",tableHeaderCell:"daypickr__calendar-header-cell",dayButton:"daypickr__day",isToday:"isToday",isSelected:"isSelected",srOnly:"sr-only",closeButton:"daypickr__button--close",toggleButton:"daypickr__button--toggle"};function ts(...e){return e.join(" ").trim()}var ns={prevMonth:"previous month",nextMonth:"next month",month:"Month",year:"Year",weekdays:[{name:"Sunday",shortname:"Su"},{name:"Monday",shortname:"Mo"},{name:"Tuesday",shortname:"Tu"},{name:"Wednesday",shortname:"We"},{name:"Thursday",shortname:"Th"},{name:"Friday",shortname:"Fr"},{name:"Saturday",shortname:"Sa"}],months:["January","February","March","April","May","June","July","August","September","October","November","December"],openButton:"Choose date",closeButton:"Close"};function is(e){return e instanceof Date&&!isNaN(e.valueOf())}function rs(e,t=1){const n=new Date(e),i=e.getDay(),r=(i<t?7:0)+i-t;return new Date(n.setDate(n.getDate()-r))}function ss(e,t=1){const n=new Date(e),i=n.getDay(),r=6+(i<t?-7:0)-(i-t);return new Date(n.setDate(n.getDate()+r))}function os(e,t){return!(!is(e)||!is(t))&&(e.setHours(0,0,0,0),t.setHours(0,0,0,0),e.getTime()===t.getTime())}function as(e,t){const n=new Date(e).setMonth(t),i=new Date(e.getFullYear(),t+1,0).getTime();return n>i?new Date(i):new Date(n)}var ls,cs,us=(cs={__c:ls="__cC"+Mi++,__:void 0,Consumer:function(e,t){return e.children(t)},Provider:function(e){var t,n;return this.getChildContext||(t=[],(n={})[ls]=this,this.getChildContext=function(){return n},this.shouldComponentUpdate=function(e){this.props.value!==e.value&&t.some(Ji)},this.sub=function(e){t.push(e);var n=e.componentWillUnmount;e.componentWillUnmount=function(){t.splice(t.indexOf(e),1),n&&n.call(e)}}),e.children}}).Provider.__=cs.Consumer.contextType=cs,ds=()=>{const{firstDayOfWeek:e,classes:t,l10n:n,selected:i,setSelected:r,setView:s,handleKeyboardNavigation:o,focusedRef:a,view:l,disabledDayFn:c,locale:u}=kr(us),d=function(e,t){const n=e?.length?[...e]:[],i=n.splice(0,t);return[...n,...i]}(n.weekdays,e),p=function(e){const t=[];for(let n=0;n<e.length;n+=7)t.push(e.slice(n,n+7));return t}(function(e,t){const n=new Date(e);n.setDate(1);const i=new Date(e);return i.setMonth(e.getMonth()+1,0),function(e,t){const n=[];let i=e;for(;i.getTime()<t.getTime();)n.push(new Date(i)),i=new Date(i.setDate(i.getDate()+1));return n.push(new Date(i)),n}(rs(n,t),ss(i,t))}(l,e));return $i("table",{className:t.table},$i("thead",null,$i("tr",{className:t.tableHeaderRow},d.map(e=>$i("th",{scope:"col",className:t.tableHeaderCell},$i("span",{className:t.srOnly},e.name),$i("span",{"aria-hidden":"true"},e.shortname))))),$i("tbody",null,p.map(e=>$i("tr",{className:t.tableRow},e.map(e=>{const n=i&&os(e,i),d=os(e,l),p=!function(e,t){return e.getMonth()===t.getMonth()}(e,l)||c(e),h=(f=e,os(new Date,f)?t.isToday:void 0);var f;const m=n?t.isSelected:void 0,v=[t.dayButton,h,m],g=d?"0":"-1",y=e.toLocaleDateString(u),b=d?a:void 0;return $i("td",{role:"gridcell",className:t.tableCell},$i("button",{className:v.join(" "),type:"button",onClick:()=>{p||(r(e),s(e))},tabindex:g,onKeyUp:o,ref:b,"aria-disabled":p,"aria-label":y,"aria-selected":n},$i("span",{className:t.srOnly},y),$i("span",{"aria-hidden":"true"},e.getDate())))})))))},ps=Rr(({label:e,value:t,options:n,onChange:i,className:r,elemRef:s,...o},a)=>{const{classes:l}=kr(us);return $i("label",null,$i("span",{className:"sr-only"},e),$i("select",{className:ts(l.select,r),onChange:e=>i(e),ref:a,...o},n?.map(e=>$i("option",{value:e?.value||0===e?.value?e.value:e,selected:t===e?.value||t===e?"selected":void 0},e?.text?e.text:e))))}),hs=ps;function fs(e,t){const n=[];for(let i=e;i<=t;i++)n.push(i);return n}var ms=Rr((e,t)=>{const{l10n:n,min:i,max:r,view:s,setView:o,classes:a}=kr(us),l=new Date(i).getFullYear(),c=new Date(r).getFullYear();return $i(hs,{label:n.year,options:fs(l,c),value:s.getFullYear(),className:a.yearSelect,onChange:e=>{const t=new Date(s);t.setFullYear(parseInt(e.target.value,10)),o(t)},ref:t,...e})}),vs=ms,gs=()=>{const{l10n:e,view:t,setView:n,classes:i}=kr(us);return $i(hs,{label:e.month,value:t.getMonth(),className:i.monthSelect,options:e.months?.map((e,t)=>({value:t,text:e})),onChange:e=>{const i=new Date(t);i.setMonth(parseInt(e.target.value,10)),n(i)}})},ys=({min:e="1900-01-01",max:t="2100-12-31",classes:n=es,l10n:i=ns,selectedDay:r,firstDayOfWeek:s=1,locale:o={},disabledDayFn:a=()=>{},onSelect:l=()=>{},formatDate:c=e=>function(e){return e&&e instanceof Date?`${e.getFullYear()}-${(e.getMonth()+1).toString().padStart(2,"0")}-${e.getDate().toString().padStart(2,"0")}`:""}(e),parseDate:u=e=>{const t=e.match(/(\d{2})\/(\d{2})\/(\d{4})/);return!!t&&new Date(t[3],t[2]-1,t[1])},calendarIcon:d,name:p,id:h})=>{const[f,m]=_r(r?new Date(r):new Date),[v,g]=_r(r?new Date(r):void 0),[y,b]=_r(!1),w=Er(!0),_=Er(),S=Er(),E=Er(),k=Er(),x=Er(),C=Er();var T,A,O;Sr(()=>{l(v),b(!1)},[v]),Sr(()=>{const e=e=>{"Tab"===e.key&&y&&(e.shiftKey||document.activeElement!==C.current||(e.preventDefault(),k.current.focus()),!e.shiftKey||document.activeElement!==k.current&&document.activeElement!==x.current||(e.preventDefault(),C.current.focus()))},t=e=>{"Escape"===e.key&&y&&b(!1)};return document.addEventListener("keydown",e),document.addEventListener("keydown",t),()=>{document.removeEventListener("keydown",e),document.removeEventListener("keydown",t)}},[y,C.current,k.current]),Sr(()=>{const e=e=>{!x.current.contains(e.target)&&y&&b(!1)};return document.addEventListener("click",e),()=>document.removeEventListener("click",e)},[y,x.current]),T=()=>{y?x.current.focus():document.activeElement===_.current||w.current?w.current=!1:E.current.focus()},A=[y,k.current,E.current,_.current],O=wr(Pi++,4),!Ti.__s&&Or(O.__H,A)&&(O.__=T,O.__H=A,Ii.__h.push(O));const L=e=>as(e,e.getMonth()-1),D=e=>as(e,e.getMonth()+1),M=()=>{b(!y)},P=({type:e,children:t,...n})=>$i(e,n,t&&t.length&&t.map(e=>P(e)));return $i(us.Provider,{value:{firstDayOfWeek:s,classes:n,l10n:i,min:e,max:t,view:f,setView:m,selected:v,setSelected:g,handleKeyboardNavigation:e=>{let t=new Date(f);const n={ArrowLeft:()=>{t.setDate(f.getDate()-1)},ArrowRight:()=>{t.setDate(f.getDate()+1)},ArrowUp:()=>{t.setDate(f.getDate()-7)},ArrowDown:()=>{t.setDate(f.getDate()+7)},PageUp:()=>{e.shiftKey?t.setFullYear(f.getFullYear()-1):t=L(f)},PageDown:()=>{e.shiftKey?t.setFullYear(f.getFullYear()+1):t=D(f)},Home:()=>{t=rs(f,s)},End:()=>{t=ss(f,s)}};Object.keys(n).includes(e.key)&&(e.preventDefault(),n[e.key]?.(),m(t),setTimeout(()=>{S.current.focus()},0))},focusedRef:S,disabledDayFn:a,locale:o}},$i("input",{id:`${h}-input`,type:"text",className:n.input,value:v&&v.toLocaleDateString(o),onChange:e=>(e=>{""===e.target.value&&g(void 0);const t=u(e.target.value);if(t)return m(t),g(t)})(e),ref:_}),$i("input",{type:"hidden",id:`${h}-value`,value:c(v),name:p}),$i("button",{type:"button","aria-controls":`${h}-dialog`,onClick:()=>M(),"aria-expanded":y,ref:E,className:n.toggleButton},d&&P(d),d?$i("span",{class:n.srOnly},i.openButton):i.openButton),$i("div",{className:n.wrapper,role:"dialog","aria-modal":"true","aria-labelledby":"daypickr-label",hidden:!y,ref:x,tabIndex:"-1"},$i("div",{className:"daypickr__content"},$i("h2",{id:"daypickr-label",className:"sr-only"},f.toLocaleString(o,{month:"long",year:"numeric"})),$i("div",{className:n.header},$i("div",{className:n.yearMonthWrapper},$i(vs,{ref:k}),$i(gs,null)),$i("div",{className:n.pagination},$i("button",{type:"button",className:`${n.button} ${n.prevMonthButton}`,onClick:()=>{m(L(f))}},i.prevMonth),$i("button",{type:"button",className:`${n.button} ${n.nextMonthButton}`,onClick:()=>{m(D(f))}},i.nextMonth))),$i(ds,null),$i("button",{className:`${n.button} ${n.closeButton}`,type:"button",onClick:()=>M(),ref:C},i.closeButton))))},bs=({calendarIcon:e,classes:t=classNames,l10n:n=l10nEN,...i})=>{const r=({type:e,children:t,...n})=>$i(e,n,t&&t.length&&t.map(e=>r(e)));return $i(us.Provider,{value:{classes:t,l10n:n}},$i("input",{type:"text",disabled:!0,className:t.input}),$i("button",{type:"button",className:t.toggleButton,disabled:!0},e&&r(e),e?$i("span",{class:t.srOnly},n.openButton):n.openButton))},ws={locale:"sk",classes:{wrapper:"daypickr",header:"daypickr__header",select:"daypickr__select",selectDisplay:"daypickr__select-display",monthSelect:"daypickr__select--month",yearSelect:"daypickr__select--year",button:"daypickr__button",paginationButton:"daypickr__button--pagination ",nextMonthButton:"daypickr__button--pagination-next btn btn--ghost btn--square btn--small",prevMonthButton:"daypickr__button--pagination-prev btn btn--ghost btn--square btn--small",yearMonthWrapper:"daypickr__year-month-wrapper",pagination:"daypickr__pagination",table:"daypickr__calendar",tableRow:"daypickr__calendar-row",tableCell:"daypickr__calendar-cell",tableHeaderRow:"daypickr__calendar-header-row",tableHeaderCell:"daypickr__calendar-header-cell",dayButton:"daypickr__day",isToday:"isToday",isSelected:"isSelected",srOnly:"sr-only",input:"form-group__item text-input",closeButton:"daypickr__button--close btn mb-none",toggleButton:"form-group__item btn btn--square"},firstDayOfWeek:1,l10n:{prevMonth:"predchádzajúci mesiac",nextMonth:"nasledujúci mesiac",month:"Mesiac",year:"Rok",weekdays:[{name:"Nedeľa",shortname:"Ne"},{name:"Pondelok",shortname:"Po"},{name:"Utorok",shortname:"Ut"},{name:"Streda",shortname:"St"},{name:"Štvrtok",shortname:"Št"},{name:"Piatok",shortname:"Pi"},{name:"Sobota",shortname:"So"}],months:["Január","Február","Marec","Apríl","Máj","Jún","Júl","August","September","Október","November","December"],openButton:"Vyberte dátum",closeButton:"Zatvoriť"},parseDate:function(e){var t=e.match(/(\d{1,2})\. ?(\d{1,2})\. ?(\d{4})/);return!!t&&new Date(Number(t[3]),Number(t[2])-1,Number(t[1]))},calendarIcon:{type:"svg",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1000 1000",className:"icon icon--medium",children:[{type:"path",d:"M800 175H700v-37.5a37.5 37.5 0 0 0-75 0V175H350v-37.5a37.5 37.5 0 0 0-75 0V175H100v625a75 75 0 0 0 75 75h700V250a75 75 0 0 0-75-75zM300 825H187.4a37.5 37.5 0 0 1-37.5-37.6V700H300v125zm0-150H150V550h150v125zm0-150H150V400h150v125zm-50-262.5a62.4 62.4 0 0 1 25-50v50a37.5 37.5 0 0 0 75 0v-50a62.5 62.5 0 1 1-100 50zm225 562.4H325V700h150v125zm0-149.9H325V550h150v125zm0-150H325V400h150v125zm175 300H500V700h150v125zm0-150H500V550h150v125zm0-150H500V400h150v125zm-50-262.5a62.4 62.4 0 0 1 25-50v50a37.5 37.5 0 0 0 75 0v-50a62.5 62.5 0 1 1-100 50zM825 675H675V550h150v125zm0-150H675V400h112.5a37.5 37.5 0 0 1 37.5 37.4V525z","fill-rule":"evenodd"}]}},_s=function(){return s(function e(t,n){return i(this,e),this.element=t,this.config=l(l({},ws),n),this.init(),this.element.ODS_DatePicker=this,this},[{key:"init",value:function(){var e=this.element.getAttribute("data-datepicker-config"),t=this.element.getAttribute("data-enabled-days"),n={};if(e)try{n=JSON.parse(e)}catch(e){n={}}this.config=l(l(l({},this.config),n),t&&{disabledDayFn:function(e){return!t.split(",").includes(function(e){return e&&e instanceof Date?"".concat(e.getFullYear(),"-").concat((e.getMonth()+1).toString().padStart(2,"0"),"-").concat(e.getDate().toString().padStart(2,"0")):""}(e))}});var i,r,s=this.element.getAttribute("data-datepicker-id")||void 0,o=this.element.getAttribute("data-datepicker-name")||s;this.instance=(i=this.element,r=l({id:s,name:o},this.config),pr($i(ys,{...r}),i),{destroy(){!function(e){e.__k&&pr(null,e)}(i),pr($i(bs,{...r}),i)}})}},{key:"destroy",value:function(){this.instance&&this.instance.destroy(),this.instance=null,this.element.ODS_DatePicker=null}}])}();const{entries:Ss,setPrototypeOf:Es,isFrozen:ks,getPrototypeOf:xs,getOwnPropertyDescriptor:Cs}=Object;let{freeze:Ts,seal:As,create:Os}=Object,{apply:Ls,construct:Ds}="undefined"!=typeof Reflect&&Reflect;Ts||(Ts=function(e){return e}),As||(As=function(e){return e}),Ls||(Ls=function(e,t){for(var n=arguments.length,i=new Array(n>2?n-2:0),r=2;r<n;r++)i[r-2]=arguments[r];return e.apply(t,i)}),Ds||(Ds=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];return new e(...n)});const Ms=Gs(Array.prototype.forEach),Ps=Gs(Array.prototype.lastIndexOf),Is=Gs(Array.prototype.pop),Ns=Gs(Array.prototype.push),Rs=Gs(Array.prototype.splice),zs=Gs(String.prototype.toLowerCase),Bs=Gs(String.prototype.toString),Hs=Gs(String.prototype.match),Fs=Gs(String.prototype.replace),Vs=Gs(String.prototype.indexOf),js=Gs(String.prototype.trim),qs=Gs(Object.prototype.hasOwnProperty),Us=Gs(RegExp.prototype.test),$s=(Ws=TypeError,function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Ds(Ws,t)});var Ws;function Gs(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);for(var n=arguments.length,i=new Array(n>1?n-1:0),r=1;r<n;r++)i[r-1]=arguments[r];return Ls(e,t,i)}}function Ys(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:zs;Es&&Es(e,null);let i=t.length;for(;i--;){let r=t[i];if("string"==typeof r){const e=n(r);e!==r&&(ks(t)||(t[i]=e),r=e)}e[r]=!0}return e}function Xs(e){for(let t=0;t<e.length;t++)qs(e,t)||(e[t]=null);return e}function Ks(e){const t=Os(null);for(const[n,i]of Ss(e))qs(e,n)&&(Array.isArray(i)?t[n]=Xs(i):i&&"object"==typeof i&&i.constructor===Object?t[n]=Ks(i):t[n]=i);return t}function Js(e,t){for(;null!==e;){const n=Cs(e,t);if(n){if(n.get)return Gs(n.get);if("function"==typeof n.value)return Gs(n.value)}e=xs(e)}return function(){return null}}const Qs=Ts(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),Zs=Ts(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),eo=Ts(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),to=Ts(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),no=Ts(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),io=Ts(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),ro=Ts(["#text"]),so=Ts(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),oo=Ts(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),ao=Ts(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),lo=Ts(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),co=As(/\{\{[\w\W]*|[\w\W]*\}\}/gm),uo=As(/<%[\w\W]*|[\w\W]*%>/gm),po=As(/\$\{[\w\W]*/gm),ho=As(/^data-[\-\w.\u00B7-\uFFFF]+$/),fo=As(/^aria-[\-\w]+$/),mo=As(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),vo=As(/^(?:\w+script|data):/i),go=As(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),yo=As(/^html$/i),bo=As(/^[a-z][.\w]*(-[.\w]+)+$/i);var wo=Object.freeze({__proto__:null,ARIA_ATTR:fo,ATTR_WHITESPACE:go,CUSTOM_ELEMENT:bo,DATA_ATTR:ho,DOCTYPE_NAME:yo,ERB_EXPR:uo,IS_ALLOWED_URI:mo,IS_SCRIPT_OR_DATA:vo,MUSTACHE_EXPR:co,TMPLIT_EXPR:po});const _o=function(){return"undefined"==typeof window?null:window};var So,Eo,ko=function e(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:_o();const n=t=>e(t);if(n.version="3.3.3",n.removed=[],!t||!t.document||9!==t.document.nodeType||!t.Element)return n.isSupported=!1,n;let{document:i}=t;const r=i,s=r.currentScript,{DocumentFragment:o,HTMLTemplateElement:a,Node:l,Element:c,NodeFilter:u,NamedNodeMap:d=t.NamedNodeMap||t.MozNamedAttrMap,HTMLFormElement:p,DOMParser:h,trustedTypes:f}=t,m=c.prototype,v=Js(m,"cloneNode"),g=Js(m,"remove"),y=Js(m,"nextSibling"),b=Js(m,"childNodes"),w=Js(m,"parentNode");if("function"==typeof a){const e=i.createElement("template");e.content&&e.content.ownerDocument&&(i=e.content.ownerDocument)}let _,S="";const{implementation:E,createNodeIterator:k,createDocumentFragment:x,getElementsByTagName:C}=i,{importNode:T}=r;let A={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]};n.isSupported="function"==typeof Ss&&"function"==typeof w&&E&&void 0!==E.createHTMLDocument;const{MUSTACHE_EXPR:O,ERB_EXPR:L,TMPLIT_EXPR:D,DATA_ATTR:M,ARIA_ATTR:P,IS_SCRIPT_OR_DATA:I,ATTR_WHITESPACE:N,CUSTOM_ELEMENT:R}=wo;let{IS_ALLOWED_URI:z}=wo,B=null;const H=Ys({},[...Qs,...Zs,...eo,...no,...ro]);let F=null;const V=Ys({},[...so,...oo,...ao,...lo]);let j=Object.seal(Os(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),q=null,U=null;const $=Object.seal(Os(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let W=!0,G=!0,Y=!1,X=!0,K=!1,J=!0,Q=!1,Z=!1,ee=!1,te=!1,ne=!1,ie=!1,re=!0,se=!1,oe=!0,ae=!1,le={},ce=null;const ue=Ys({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let de=null;const pe=Ys({},["audio","video","img","source","image","track"]);let he=null;const fe=Ys({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),me="http://www.w3.org/1998/Math/MathML",ve="http://www.w3.org/2000/svg",ge="http://www.w3.org/1999/xhtml";let ye=ge,be=!1,we=null;const _e=Ys({},[me,ve,ge],Bs);let Se=Ys({},["mi","mo","mn","ms","mtext"]),Ee=Ys({},["annotation-xml"]);const ke=Ys({},["title","style","font","a","script"]);let xe=null;const Ce=["application/xhtml+xml","text/html"];let Te=null,Ae=null;const Oe=i.createElement("form"),Le=function(e){return e instanceof RegExp||e instanceof Function},De=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!Ae||Ae!==e){if(e&&"object"==typeof e||(e={}),e=Ks(e),xe=-1===Ce.indexOf(e.PARSER_MEDIA_TYPE)?"text/html":e.PARSER_MEDIA_TYPE,Te="application/xhtml+xml"===xe?Bs:zs,B=qs(e,"ALLOWED_TAGS")?Ys({},e.ALLOWED_TAGS,Te):H,F=qs(e,"ALLOWED_ATTR")?Ys({},e.ALLOWED_ATTR,Te):V,we=qs(e,"ALLOWED_NAMESPACES")?Ys({},e.ALLOWED_NAMESPACES,Bs):_e,he=qs(e,"ADD_URI_SAFE_ATTR")?Ys(Ks(fe),e.ADD_URI_SAFE_ATTR,Te):fe,de=qs(e,"ADD_DATA_URI_TAGS")?Ys(Ks(pe),e.ADD_DATA_URI_TAGS,Te):pe,ce=qs(e,"FORBID_CONTENTS")?Ys({},e.FORBID_CONTENTS,Te):ue,q=qs(e,"FORBID_TAGS")?Ys({},e.FORBID_TAGS,Te):Ks({}),U=qs(e,"FORBID_ATTR")?Ys({},e.FORBID_ATTR,Te):Ks({}),le=!!qs(e,"USE_PROFILES")&&e.USE_PROFILES,W=!1!==e.ALLOW_ARIA_ATTR,G=!1!==e.ALLOW_DATA_ATTR,Y=e.ALLOW_UNKNOWN_PROTOCOLS||!1,X=!1!==e.ALLOW_SELF_CLOSE_IN_ATTR,K=e.SAFE_FOR_TEMPLATES||!1,J=!1!==e.SAFE_FOR_XML,Q=e.WHOLE_DOCUMENT||!1,te=e.RETURN_DOM||!1,ne=e.RETURN_DOM_FRAGMENT||!1,ie=e.RETURN_TRUSTED_TYPE||!1,ee=e.FORCE_BODY||!1,re=!1!==e.SANITIZE_DOM,se=e.SANITIZE_NAMED_PROPS||!1,oe=!1!==e.KEEP_CONTENT,ae=e.IN_PLACE||!1,z=e.ALLOWED_URI_REGEXP||mo,ye=e.NAMESPACE||ge,Se=e.MATHML_TEXT_INTEGRATION_POINTS||Se,Ee=e.HTML_INTEGRATION_POINTS||Ee,j=e.CUSTOM_ELEMENT_HANDLING||{},e.CUSTOM_ELEMENT_HANDLING&&Le(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(j.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&&Le(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(j.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),e.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(j.allowCustomizedBuiltInElements=e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),K&&(G=!1),ne&&(te=!0),le&&(B=Ys({},ro),F=Os(null),!0===le.html&&(Ys(B,Qs),Ys(F,so)),!0===le.svg&&(Ys(B,Zs),Ys(F,oo),Ys(F,lo)),!0===le.svgFilters&&(Ys(B,eo),Ys(F,oo),Ys(F,lo)),!0===le.mathMl&&(Ys(B,no),Ys(F,ao),Ys(F,lo))),qs(e,"ADD_TAGS")||($.tagCheck=null),qs(e,"ADD_ATTR")||($.attributeCheck=null),e.ADD_TAGS&&("function"==typeof e.ADD_TAGS?$.tagCheck=e.ADD_TAGS:(B===H&&(B=Ks(B)),Ys(B,e.ADD_TAGS,Te))),e.ADD_ATTR&&("function"==typeof e.ADD_ATTR?$.attributeCheck=e.ADD_ATTR:(F===V&&(F=Ks(F)),Ys(F,e.ADD_ATTR,Te))),e.ADD_URI_SAFE_ATTR&&Ys(he,e.ADD_URI_SAFE_ATTR,Te),e.FORBID_CONTENTS&&(ce===ue&&(ce=Ks(ce)),Ys(ce,e.FORBID_CONTENTS,Te)),e.ADD_FORBID_CONTENTS&&(ce===ue&&(ce=Ks(ce)),Ys(ce,e.ADD_FORBID_CONTENTS,Te)),oe&&(B["#text"]=!0),Q&&Ys(B,["html","head","body"]),B.table&&(Ys(B,["tbody"]),delete q.tbody),e.TRUSTED_TYPES_POLICY){if("function"!=typeof e.TRUSTED_TYPES_POLICY.createHTML)throw $s('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof e.TRUSTED_TYPES_POLICY.createScriptURL)throw $s('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');_=e.TRUSTED_TYPES_POLICY,S=_.createHTML("")}else void 0===_&&(_=function(e,t){if("object"!=typeof e||"function"!=typeof e.createPolicy)return null;let n=null;const i="data-tt-policy-suffix";t&&t.hasAttribute(i)&&(n=t.getAttribute(i));const r="dompurify"+(n?"#"+n:"");try{return e.createPolicy(r,{createHTML:e=>e,createScriptURL:e=>e})}catch(e){return null}}(f,s)),null!==_&&"string"==typeof S&&(S=_.createHTML(""));Ts&&Ts(e),Ae=e}},Me=Ys({},[...Zs,...eo,...to]),Pe=Ys({},[...no,...io]),Ie=function(e){Ns(n.removed,{element:e});try{w(e).removeChild(e)}catch(t){g(e)}},Ne=function(e,t){try{Ns(n.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){Ns(n.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e)if(te||ne)try{Ie(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}},Re=function(e){let t=null,n=null;if(ee)e="<remove></remove>"+e;else{const t=Hs(e,/^[\r\n\t ]+/);n=t&&t[0]}"application/xhtml+xml"===xe&&ye===ge&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");const r=_?_.createHTML(e):e;if(ye===ge)try{t=(new h).parseFromString(r,xe)}catch(e){}if(!t||!t.documentElement){t=E.createDocument(ye,"template",null);try{t.documentElement.innerHTML=be?S:r}catch(e){}}const s=t.body||t.documentElement;return e&&n&&s.insertBefore(i.createTextNode(n),s.childNodes[0]||null),ye===ge?C.call(t,Q?"html":"body")[0]:Q?t.documentElement:s},ze=function(e){return k.call(e.ownerDocument||e,e,u.SHOW_ELEMENT|u.SHOW_COMMENT|u.SHOW_TEXT|u.SHOW_PROCESSING_INSTRUCTION|u.SHOW_CDATA_SECTION,null)},Be=function(e){return e instanceof p&&("string"!=typeof e.nodeName||"string"!=typeof e.textContent||"function"!=typeof e.removeChild||!(e.attributes instanceof d)||"function"!=typeof e.removeAttribute||"function"!=typeof e.setAttribute||"string"!=typeof e.namespaceURI||"function"!=typeof e.insertBefore||"function"!=typeof e.hasChildNodes)},He=function(e){return"function"==typeof l&&e instanceof l};function Fe(e,t,i){Ms(e,e=>{e.call(n,t,i,Ae)})}const Ve=function(e){let t=null;if(Fe(A.beforeSanitizeElements,e,null),Be(e))return Ie(e),!0;const i=Te(e.nodeName);if(Fe(A.uponSanitizeElement,e,{tagName:i,allowedTags:B}),J&&e.hasChildNodes()&&!He(e.firstElementChild)&&Us(/<[/\w!]/g,e.innerHTML)&&Us(/<[/\w!]/g,e.textContent))return Ie(e),!0;if(7===e.nodeType)return Ie(e),!0;if(J&&8===e.nodeType&&Us(/<[/\w]/g,e.data))return Ie(e),!0;if(!($.tagCheck instanceof Function&&$.tagCheck(i))&&(!B[i]||q[i])){if(!q[i]&&qe(i)){if(j.tagNameCheck instanceof RegExp&&Us(j.tagNameCheck,i))return!1;if(j.tagNameCheck instanceof Function&&j.tagNameCheck(i))return!1}if(oe&&!ce[i]){const t=w(e)||e.parentNode,n=b(e)||e.childNodes;if(n&&t)for(let i=n.length-1;i>=0;--i){const r=v(n[i],!0);r.__removalCount=(e.__removalCount||0)+1,t.insertBefore(r,y(e))}}return Ie(e),!0}return e instanceof c&&!function(e){let t=w(e);t&&t.tagName||(t={namespaceURI:ye,tagName:"template"});const n=zs(e.tagName),i=zs(t.tagName);return!!we[e.namespaceURI]&&(e.namespaceURI===ve?t.namespaceURI===ge?"svg"===n:t.namespaceURI===me?"svg"===n&&("annotation-xml"===i||Se[i]):Boolean(Me[n]):e.namespaceURI===me?t.namespaceURI===ge?"math"===n:t.namespaceURI===ve?"math"===n&&Ee[i]:Boolean(Pe[n]):e.namespaceURI===ge?!(t.namespaceURI===ve&&!Ee[i])&&!(t.namespaceURI===me&&!Se[i])&&!Pe[n]&&(ke[n]||!Me[n]):!("application/xhtml+xml"!==xe||!we[e.namespaceURI]))}(e)?(Ie(e),!0):"noscript"!==i&&"noembed"!==i&&"noframes"!==i||!Us(/<\/no(script|embed|frames)/i,e.innerHTML)?(K&&3===e.nodeType&&(t=e.textContent,Ms([O,L,D],e=>{t=Fs(t,e," ")}),e.textContent!==t&&(Ns(n.removed,{element:e.cloneNode()}),e.textContent=t)),Fe(A.afterSanitizeElements,e,null),!1):(Ie(e),!0)},je=function(e,t,n){if(U[t])return!1;if(re&&("id"===t||"name"===t)&&(n in i||n in Oe))return!1;if(G&&!U[t]&&Us(M,t));else if(W&&Us(P,t));else if($.attributeCheck instanceof Function&&$.attributeCheck(t,e));else if(!F[t]||U[t]){if(!(qe(e)&&(j.tagNameCheck instanceof RegExp&&Us(j.tagNameCheck,e)||j.tagNameCheck instanceof Function&&j.tagNameCheck(e))&&(j.attributeNameCheck instanceof RegExp&&Us(j.attributeNameCheck,t)||j.attributeNameCheck instanceof Function&&j.attributeNameCheck(t,e))||"is"===t&&j.allowCustomizedBuiltInElements&&(j.tagNameCheck instanceof RegExp&&Us(j.tagNameCheck,n)||j.tagNameCheck instanceof Function&&j.tagNameCheck(n))))return!1}else if(he[t]);else if(Us(z,Fs(n,N,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==Vs(n,"data:")||!de[e])if(Y&&!Us(I,Fs(n,N,"")));else if(n)return!1;return!0},qe=function(e){return"annotation-xml"!==e&&Hs(e,R)},Ue=function(e){Fe(A.beforeSanitizeAttributes,e,null);const{attributes:t}=e;if(!t||Be(e))return;const i={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:F,forceKeepAttr:void 0};let r=t.length;for(;r--;){const s=t[r],{name:o,namespaceURI:a,value:l}=s,c=Te(o),u=l;let d="value"===o?u:js(u);if(i.attrName=c,i.attrValue=d,i.keepAttr=!0,i.forceKeepAttr=void 0,Fe(A.uponSanitizeAttribute,e,i),d=i.attrValue,!se||"id"!==c&&"name"!==c||(Ne(o,e),d="user-content-"+d),J&&Us(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,d)){Ne(o,e);continue}if("attributename"===c&&Hs(d,"href")){Ne(o,e);continue}if(i.forceKeepAttr)continue;if(!i.keepAttr){Ne(o,e);continue}if(!X&&Us(/\/>/i,d)){Ne(o,e);continue}K&&Ms([O,L,D],e=>{d=Fs(d,e," ")});const p=Te(e.nodeName);if(je(p,c,d)){if(_&&"object"==typeof f&&"function"==typeof f.getAttributeType)if(a);else switch(f.getAttributeType(p,c)){case"TrustedHTML":d=_.createHTML(d);break;case"TrustedScriptURL":d=_.createScriptURL(d)}if(d!==u)try{a?e.setAttributeNS(a,o,d):e.setAttribute(o,d),Be(e)?Ie(e):Is(n.removed)}catch(t){Ne(o,e)}}else Ne(o,e)}Fe(A.afterSanitizeAttributes,e,null)},$e=function e(t){let n=null;const i=ze(t);for(Fe(A.beforeSanitizeShadowDOM,t,null);n=i.nextNode();)Fe(A.uponSanitizeShadowNode,n,null),Ve(n),Ue(n),n.content instanceof o&&e(n.content);Fe(A.afterSanitizeShadowDOM,t,null)};return n.sanitize=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=null,s=null,a=null,c=null;if(be=!e,be&&(e="\x3c!--\x3e"),"string"!=typeof e&&!He(e)){if("function"!=typeof e.toString)throw $s("toString is not a function");if("string"!=typeof(e=e.toString()))throw $s("dirty is not a string, aborting")}if(!n.isSupported)return e;if(Z||De(t),n.removed=[],"string"==typeof e&&(ae=!1),ae){if(e.nodeName){const t=Te(e.nodeName);if(!B[t]||q[t])throw $s("root node is forbidden and cannot be sanitized in-place")}}else if(e instanceof l)i=Re("\x3c!----\x3e"),s=i.ownerDocument.importNode(e,!0),1===s.nodeType&&"BODY"===s.nodeName||"HTML"===s.nodeName?i=s:i.appendChild(s);else{if(!te&&!K&&!Q&&-1===e.indexOf("<"))return _&&ie?_.createHTML(e):e;if(i=Re(e),!i)return te?null:ie?S:""}i&&ee&&Ie(i.firstChild);const u=ze(ae?e:i);for(;a=u.nextNode();)Ve(a),Ue(a),a.content instanceof o&&$e(a.content);if(ae)return e;if(te){if(ne)for(c=x.call(i.ownerDocument);i.firstChild;)c.appendChild(i.firstChild);else c=i;return(F.shadowroot||F.shadowrootmode)&&(c=T.call(r,c,!0)),c}let d=Q?i.outerHTML:i.innerHTML;return Q&&B["!doctype"]&&i.ownerDocument&&i.ownerDocument.doctype&&i.ownerDocument.doctype.name&&Us(yo,i.ownerDocument.doctype.name)&&(d="<!DOCTYPE "+i.ownerDocument.doctype.name+">\n"+d),K&&Ms([O,L,D],e=>{d=Fs(d,e," ")}),_&&ie?_.createHTML(d):d},n.setConfig=function(){De(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),Z=!0},n.clearConfig=function(){Ae=null,Z=!1},n.isValidAttribute=function(e,t,n){Ae||De({});const i=Te(e),r=Te(t);return je(i,r,n)},n.addHook=function(e,t){"function"==typeof t&&Ns(A[e],t)},n.removeHook=function(e,t){if(void 0!==t){const n=Ps(A[e],t);return-1===n?void 0:Rs(A[e],n,1)[0]}return Is(A[e])},n.removeHooks=function(e){A[e]=[]},n.removeAllHooks=function(){A={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},n}(),xo={dragDropClassname:"is-dragdrop",inputSelector:'input[type="file"]',resultsSelector:".file-input__files",deleteButtonSelector:"[data-file-delete]",deleteFileAttr:"data-file-delete",fileTemplate:function(e,t){return"\n <li>".concat(e,' <button type="button" data-file-delete="').concat(t,'" class="file-input__delete">\n <svg class="icon icon--small icon--trash icon--danger" aria-hidden="true">\n <use xlink:href="/sprite.svg#trash"></use>\n </svg>\n <span class="sr-only">Odstrániť súbor ').concat(e,"</span>\n </button>\n </li>\n ")}},Co=function(){return s(function e(t,n){return i(this,e),this.element=t,this.config=l(l({},xo),n),this.input=null,this.files=[],this.results=null,this.removeButtons=[],this.onInputChange=this.onInputChange.bind(this),this.onRemoveButtonClick=this.onRemoveButtonClick.bind(this),this.highlight=this.highlight.bind(this),this.unhighlight=this.unhighlight.bind(this),this.onDrop=this.onDrop.bind(this),this.preventDefaults=this.preventDefaults.bind(this),this.init(),this},[{key:"init",value:function(){var e=this;this.input=this.element.querySelector(this.config.inputSelector),this.results=this.element.querySelector(this.config.resultsSelector),this.input&&this.results&&(this.input.addEventListener("change",this.onInputChange),["dragenter","dragover","dragleave","drop"].forEach(function(t){e.element.addEventListener(t,e.preventDefaults,!1),document.body.addEventListener(t,e.preventDefaults,!1)}),["dragenter","dragover"].forEach(function(t){e.element.addEventListener(t,e.highlight,!1)}),["dragleave","drop"].forEach(function(t){e.element.addEventListener(t,e.unhighlight,!1)}),this.element.addEventListener("drop",this.onDrop))}},{key:"onInputChange",value:function(){var e,t=this;return!(!this.input||!this.results)&&(this.files=Array.from(null!==(e=this.input.files)&&void 0!==e?e:[]),!!this.files&&(this.results.innerHTML="",this.files.map(function(e,n){return t.config.fileTemplate(ko.sanitize(e.name,{ALLOWED_TAGS:[]}),n)}).forEach(function(e){t.results.appendChild(ko.sanitize(e,{ADD_TAGS:["use"],RETURN_DOM_FRAGMENT:!0}))}),this.removeButtons=Array.from(this.results.querySelectorAll(this.config.deleteButtonSelector)),void this.removeButtons.forEach(function(e){return e.addEventListener("click",t.onRemoveButtonClick)})))}},{key:"onDrop",value:function(e){var t;this.input&&(this.input.files=(null==e||null===(t=e.dataTransfer)||void 0===t?void 0:t.files)||(new DataTransfer).files,this.onInputChange())}},{key:"onRemoveButtonClick",value:function(e){if(this.input){var t=new DataTransfer,n=e.currentTarget,i=Number(n.getAttribute(this.config.deleteFileAttr));this.files.splice(i,1),this.files.forEach(function(e){return t.items.add(e)}),this.input.files=t.files,this.onInputChange()}}},{key:"highlight",value:function(){this.element.classList.add(this.config.dragDropClassname)}},{key:"unhighlight",value:function(){this.element.classList.remove(this.config.dragDropClassname)}},{key:"preventDefaults",value:function(e){e.preventDefault(),e.stopPropagation()}},{key:"destroy",value:function(){var e=this;this.input&&(this.input.removeEventListener("change",this.onInputChange),["dragenter","dragover","dragleave","drop"].forEach(function(t){e.element.removeEventListener(t,e.preventDefaults,!1),document.body.removeEventListener(t,e.preventDefaults,!1)}),["dragenter","dragover"].forEach(function(t){e.element.removeEventListener(t,e.highlight,!1)}),["dragleave","drop"].forEach(function(t){e.element.removeEventListener(t,e.unhighlight,!1)}),this.element.removeEventListener("drop",this.onDrop))}},{key:"update",value:function(){this.destroy(),this.init()}}])}(),To={nonEditableInput:!1,min:1,max:999,defaultValue:1},Ao=function(){return s(function e(t,n){i(this,e),this.element=t,this.config=l(l({},To),n),this.input=null,this.numberDisplay=null,this.add=null,this.remove=null,this.element.ODS_InputStepper=this,this.handleButtonClick=this.handleButtonClick.bind(this),this.handleInputClick=this.handleInputClick.bind(this),this.handleInputChange=this.handleInputChange.bind(this),this.handleButtonState=this.handleButtonState.bind(this),this.init()},[{key:"handleInputClick",value:function(){this.input&&this.input.select()}},{key:"handleButtonState",value:function(){var e,t,n,i,r=this.config,s=r.min,o=r.max,a=this.config.nonEditableInput?parseInt(null!==(n=null===(i=this.numberDisplay)||void 0===i?void 0:i.textContent)&&void 0!==n?n:"0",10):parseInt(null!==(e=null===(t=this.input)||void 0===t?void 0:t.value)&&void 0!==e?e:"0",10);this.add&&"number"==typeof o&&a>=o?(this.add.setAttribute("aria-disabled","true"),this.add.setAttribute("disabled","true")):this.add&&(this.add.removeAttribute("aria-disabled"),this.add.removeAttribute("disabled")),this.remove&&"number"==typeof s&&a<=s?(this.remove.setAttribute("aria-disabled","true"),this.remove.setAttribute("disabled","true")):this.remove&&(this.remove.removeAttribute("aria-disabled"),this.remove.removeAttribute("disabled"))}},{key:"handleInputChange",value:function(e){var t=this.config,n=t.min,i=t.max,r=e.target;r&&(n&&Number(r.value)<=n&&(r.value=String(n)),i&&Number(r.value)>=i&&(r.value=String(i)))}},{key:"handleButtonClick",value:function(e){var t,n,i,r,s=this.config,o=s.min,a=s.max,l=e.target,c=this.config.nonEditableInput?parseInt(null!==(i=null===(r=this.numberDisplay)||void 0===r?void 0:r.textContent)&&void 0!==i?i:"0",10):parseInt(null!==(t=null===(n=this.input)||void 0===n?void 0:n.value)&&void 0!==t?t:"0",10);if(l.classList.contains("input-stepper__button--minus")){if(o&&c<=o){if("true"===l.getAttribute("disabled"))return;return l.setAttribute("aria-disabled","true"),void l.setAttribute("disabled","true")}c-=1}if(l.classList.contains("input-stepper__button--plus")){if(a&&c>=a){if("true"===l.getAttribute("disabled"))return;return l.setAttribute("aria-disabled","true"),void l.setAttribute("disabled","true")}c+=1}!this.config.nonEditableInput&&this.input?this.input.value=String(c):this.numberDisplay&&(this.numberDisplay.textContent=String(c)),this.handleButtonState()}},{key:"init",value:function(){var e=this.element.getAttribute("data-inputstepper"),t={};try{e&&e.trim().startsWith("{")&&(t=JSON.parse(e))}catch(e){t={}}this.config=l(l({},this.config),t),this.config.nonEditableInput?(this.numberDisplay=this.element.querySelector(".input-stepper__number"),this.numberDisplay&&(this.numberDisplay.textContent=String(this.config.defaultValue))):(this.input=this.element.querySelector(".input-stepper__field"),this.input&&(this.input.value=String(this.config.defaultValue))),this.add=this.element.querySelector(".input-stepper__button--plus"),this.remove=this.element.querySelector(".input-stepper__button--minus");var n=this.config.defaultValue;void 0!==n&&(!this.config.nonEditableInput&&this.input?this.input.value=String(n):this.numberDisplay&&(this.numberDisplay.textContent=String(n))),this.element.classList.contains("input-stepper--disabled")||(this.add&&this.add.addEventListener("click",this.handleButtonClick),this.remove&&this.remove.addEventListener("click",this.handleButtonClick),!this.config.nonEditableInput&&this.input&&(this.input.addEventListener("click",this.handleInputClick),this.input.addEventListener("change",this.handleInputChange)),this.handleButtonState())}},{key:"update",value:function(){this.destroy(),this.init()}},{key:"destroy",value:function(){!this.config.nonEditableInput&&this.input&&(this.input.removeEventListener("click",this.handleInputClick),this.input.removeEventListener("change",this.handleInputChange)),this.add&&this.add.removeEventListener("click",this.handleButtonClick),this.remove&&this.remove.removeEventListener("click",this.handleButtonClick)}}],[{key:"getInstance",value:function(e){return e&&e.ODS_InputStepper?e.ODS_InputStepper:null}}])}();function Oo(e){return"object"==typeof e&&"function"==typeof e.to}function Lo(e){e.parentElement.removeChild(e)}function Do(e){return null!=e}function Mo(e){e.preventDefault()}function Po(e){return"number"==typeof e&&!isNaN(e)&&isFinite(e)}function Io(e,t,n){n>0&&(Bo(e,t),setTimeout(function(){Ho(e,t)},n))}function No(e){return Math.max(Math.min(e,100),0)}function Ro(e){return Array.isArray(e)?e:[e]}function zo(e){var t=(e=String(e)).split(".");return t.length>1?t[1].length:0}function Bo(e,t){e.classList&&!/\s/.test(t)?e.classList.add(t):e.className+=" "+t}function Ho(e,t){e.classList&&!/\s/.test(t)?e.classList.remove(t):e.className=e.className.replace(new RegExp("(^|\\b)"+t.split(" ").join("|")+"(\\b|$)","gi")," ")}function Fo(e){var t=void 0!==window.pageXOffset,n="CSS1Compat"===(e.compatMode||"");return{x:t?window.pageXOffset:n?e.documentElement.scrollLeft:e.body.scrollLeft,y:t?window.pageYOffset:n?e.documentElement.scrollTop:e.body.scrollTop}}function Vo(e,t){return 100/(t-e)}function jo(e,t,n){return 100*t/(e[n+1]-e[n])}function qo(e,t){for(var n=1;e>=t[n];)n+=1;return n}!function(e){e.Range="range",e.Steps="steps",e.Positions="positions",e.Count="count",e.Values="values"}(So||(So={})),function(e){e[e.None=-1]="None",e[e.NoValue=0]="NoValue",e[e.LargeValue=1]="LargeValue",e[e.SmallValue=2]="SmallValue"}(Eo||(Eo={}));var Uo=function(){function e(e,t,n){var i;this.xPct=[],this.xVal=[],this.xSteps=[],this.xNumSteps=[],this.xHighestCompleteStep=[],this.xSteps=[n||!1],this.xNumSteps=[!1],this.snap=t;var r=[];for(Object.keys(e).forEach(function(t){r.push([Ro(e[t]),t])}),r.sort(function(e,t){return e[0][0]-t[0][0]}),i=0;i<r.length;i++)this.handleEntryPoint(r[i][1],r[i][0]);for(this.xNumSteps=this.xSteps.slice(0),i=0;i<this.xNumSteps.length;i++)this.handleStepPoint(i,this.xNumSteps[i])}return e.prototype.getDistance=function(e){for(var t=[],n=0;n<this.xNumSteps.length-1;n++)t[n]=jo(this.xVal,e,n);return t},e.prototype.getAbsoluteDistance=function(e,t,n){var i,r=0;if(e<this.xPct[this.xPct.length-1])for(;e>this.xPct[r+1];)r++;else e===this.xPct[this.xPct.length-1]&&(r=this.xPct.length-2);n||e!==this.xPct[r+1]||r++,null===t&&(t=[]);var s=1,o=t[r],a=0,l=0,c=0,u=0;for(i=n?(e-this.xPct[r])/(this.xPct[r+1]-this.xPct[r]):(this.xPct[r+1]-e)/(this.xPct[r+1]-this.xPct[r]);o>0;)a=this.xPct[r+1+u]-this.xPct[r+u],t[r+u]*s+100-100*i>100?(l=a*i,s=(o-100*i)/t[r+u],i=1):(l=t[r+u]*a/100*s,s=0),n?(c-=l,this.xPct.length+u>=1&&u--):(c+=l,this.xPct.length-u>=1&&u++),o=t[r+u]*s;return e+c},e.prototype.toStepping=function(e){return function(e,t,n){if(n>=e.slice(-1)[0])return 100;var i=qo(n,e),r=e[i-1],s=e[i],o=t[i-1],a=t[i];return o+function(e,t){return jo(e,e[0]<0?t+Math.abs(e[0]):t-e[0],0)}([r,s],n)/Vo(o,a)}(this.xVal,this.xPct,e)},e.prototype.fromStepping=function(e){return function(e,t,n){if(n>=100)return e.slice(-1)[0];var i=qo(n,t),r=e[i-1],s=e[i],o=t[i-1];return function(e,t){return t*(e[1]-e[0])/100+e[0]}([r,s],(n-o)*Vo(o,t[i]))}(this.xVal,this.xPct,e)},e.prototype.getStep=function(e){return function(e,t,n,i){if(100===i)return i;var r=qo(i,e),s=e[r-1],o=e[r];return n?i-s>(o-s)/2?o:s:t[r-1]?e[r-1]+function(e,t){return Math.round(e/t)*t}(i-e[r-1],t[r-1]):i}(this.xPct,this.xSteps,this.snap,e)},e.prototype.getDefaultStep=function(e,t,n){var i=qo(e,this.xPct);return(100===e||t&&e===this.xPct[i-1])&&(i=Math.max(i-1,1)),(this.xVal[i]-this.xVal[i-1])/n},e.prototype.getNearbySteps=function(e){var t=qo(e,this.xPct);return{stepBefore:{startValue:this.xVal[t-2],step:this.xNumSteps[t-2],highestStep:this.xHighestCompleteStep[t-2]},thisStep:{startValue:this.xVal[t-1],step:this.xNumSteps[t-1],highestStep:this.xHighestCompleteStep[t-1]},stepAfter:{startValue:this.xVal[t],step:this.xNumSteps[t],highestStep:this.xHighestCompleteStep[t]}}},e.prototype.countStepDecimals=function(){var e=this.xNumSteps.map(zo);return Math.max.apply(null,e)},e.prototype.hasNoSize=function(){return this.xVal[0]===this.xVal[this.xVal.length-1]},e.prototype.convert=function(e){return this.getStep(this.toStepping(e))},e.prototype.handleEntryPoint=function(e,t){var n;if(!Po(n="min"===e?0:"max"===e?100:parseFloat(e))||!Po(t[0]))throw new Error("noUiSlider: 'range' value isn't numeric.");this.xPct.push(n),this.xVal.push(t[0]);var i=Number(t[1]);n?this.xSteps.push(!isNaN(i)&&i):isNaN(i)||(this.xSteps[0]=i),this.xHighestCompleteStep.push(0)},e.prototype.handleStepPoint=function(e,t){if(t)if(this.xVal[e]!==this.xVal[e+1]){this.xSteps[e]=jo([this.xVal[e],this.xVal[e+1]],t,0)/Vo(this.xPct[e],this.xPct[e+1]);var n=(this.xVal[e+1]-this.xVal[e])/this.xNumSteps[e],i=Math.ceil(Number(n.toFixed(3))-1),r=this.xVal[e]+this.xNumSteps[e]*i;this.xHighestCompleteStep[e]=r}else this.xSteps[e]=this.xHighestCompleteStep[e]=this.xVal[e]},e}(),$o={to:function(e){return void 0===e?"":e.toFixed(2)},from:Number},Wo={target:"target",base:"base",origin:"origin",handle:"handle",handleLower:"handle-lower",handleUpper:"handle-upper",touchArea:"touch-area",horizontal:"horizontal",vertical:"vertical",background:"background",connect:"connect",connects:"connects",ltr:"ltr",rtl:"rtl",textDirectionLtr:"txt-dir-ltr",textDirectionRtl:"txt-dir-rtl",draggable:"draggable",drag:"state-drag",tap:"state-tap",active:"active",tooltip:"tooltip",pips:"pips",pipsHorizontal:"pips-horizontal",pipsVertical:"pips-vertical",marker:"marker",markerHorizontal:"marker-horizontal",markerVertical:"marker-vertical",markerNormal:"marker-normal",markerLarge:"marker-large",markerSub:"marker-sub",value:"value",valueHorizontal:"value-horizontal",valueVertical:"value-vertical",valueNormal:"value-normal",valueLarge:"value-large",valueSub:"value-sub"},Go=".__tooltips",Yo=".__aria";function Xo(e,t){if(!Po(t))throw new Error("noUiSlider: 'step' is not numeric.");e.singleStep=t}function Ko(e,t){if(!Po(t))throw new Error("noUiSlider: 'keyboardPageMultiplier' is not numeric.");e.keyboardPageMultiplier=t}function Jo(e,t){if(!Po(t))throw new Error("noUiSlider: 'keyboardMultiplier' is not numeric.");e.keyboardMultiplier=t}function Qo(e,t){if(!Po(t))throw new Error("noUiSlider: 'keyboardDefaultStep' is not numeric.");e.keyboardDefaultStep=t}function Zo(e,t){if("object"!=typeof t||Array.isArray(t))throw new Error("noUiSlider: 'range' is not an object.");if(void 0===t.min||void 0===t.max)throw new Error("noUiSlider: Missing 'min' or 'max' in 'range'.");e.spectrum=new Uo(t,e.snap||!1,e.singleStep)}function ea(e,t){if(t=Ro(t),!Array.isArray(t)||!t.length)throw new Error("noUiSlider: 'start' option is incorrect.");e.handles=t.length,e.start=t}function ta(e,t){if("boolean"!=typeof t)throw new Error("noUiSlider: 'snap' option must be a boolean.");e.snap=t}function na(e,t){if("boolean"!=typeof t)throw new Error("noUiSlider: 'animate' option must be a boolean.");e.animate=t}function ia(e,t){if("number"!=typeof t)throw new Error("noUiSlider: 'animationDuration' option must be a number.");e.animationDuration=t}function ra(e,t){var n,i=[!1];if("lower"===t?t=[!0,!1]:"upper"===t&&(t=[!1,!0]),!0===t||!1===t){for(n=1;n<e.handles;n++)i.push(t);i.push(!1)}else{if(!Array.isArray(t)||!t.length||t.length!==e.handles+1)throw new Error("noUiSlider: 'connect' option doesn't match handle count.");i=t}e.connect=i}function sa(e,t){switch(t){case"horizontal":e.ort=0;break;case"vertical":e.ort=1;break;default:throw new Error("noUiSlider: 'orientation' option is invalid.")}}function oa(e,t){if(!Po(t))throw new Error("noUiSlider: 'margin' option must be numeric.");0!==t&&(e.margin=e.spectrum.getDistance(t))}function aa(e,t){if(!Po(t))throw new Error("noUiSlider: 'limit' option must be numeric.");if(e.limit=e.spectrum.getDistance(t),!e.limit||e.handles<2)throw new Error("noUiSlider: 'limit' option is only supported on linear sliders with 2 or more handles.")}function la(e,t){var n;if(!Po(t)&&!Array.isArray(t))throw new Error("noUiSlider: 'padding' option must be numeric or array of exactly 2 numbers.");if(Array.isArray(t)&&2!==t.length&&!Po(t[0])&&!Po(t[1]))throw new Error("noUiSlider: 'padding' option must be numeric or array of exactly 2 numbers.");if(0!==t){for(Array.isArray(t)||(t=[t,t]),e.padding=[e.spectrum.getDistance(t[0]),e.spectrum.getDistance(t[1])],n=0;n<e.spectrum.xNumSteps.length-1;n++)if(e.padding[0][n]<0||e.padding[1][n]<0)throw new Error("noUiSlider: 'padding' option must be a positive number(s).");var i=t[0]+t[1],r=e.spectrum.xVal[0];if(i/(e.spectrum.xVal[e.spectrum.xVal.length-1]-r)>1)throw new Error("noUiSlider: 'padding' option must not exceed 100% of the range.")}}function ca(e,t){switch(t){case"ltr":e.dir=0;break;case"rtl":e.dir=1;break;default:throw new Error("noUiSlider: 'direction' option was not recognized.")}}function ua(e,t){if("string"!=typeof t)throw new Error("noUiSlider: 'behaviour' must be a string containing options.");var n=t.indexOf("tap")>=0,i=t.indexOf("drag")>=0,r=t.indexOf("fixed")>=0,s=t.indexOf("snap")>=0,o=t.indexOf("hover")>=0,a=t.indexOf("unconstrained")>=0,l=t.indexOf("invert-connects")>=0,c=t.indexOf("drag-all")>=0,u=t.indexOf("smooth-steps")>=0;if(r){if(2!==e.handles)throw new Error("noUiSlider: 'fixed' behaviour must be used with 2 handles");oa(e,e.start[1]-e.start[0])}if(l&&2!==e.handles)throw new Error("noUiSlider: 'invert-connects' behaviour must be used with 2 handles");if(a&&(e.margin||e.limit))throw new Error("noUiSlider: 'unconstrained' behaviour cannot be used with margin or limit");e.events={tap:n||s,drag:i,dragAll:c,smoothSteps:u,fixed:r,snap:s,hover:o,unconstrained:a,invertConnects:l}}function da(e,t){if(!1!==t)if(!0===t||Oo(t)){e.tooltips=[];for(var n=0;n<e.handles;n++)e.tooltips.push(t)}else{if((t=Ro(t)).length!==e.handles)throw new Error("noUiSlider: must pass a formatter for all handles.");t.forEach(function(e){if("boolean"!=typeof e&&!Oo(e))throw new Error("noUiSlider: 'tooltips' must be passed a formatter or 'false'.")}),e.tooltips=t}}function pa(e,t){if(t.length!==e.handles)throw new Error("noUiSlider: must pass a attributes for all handles.");e.handleAttributes=t}function ha(e,t){if(!Oo(t))throw new Error("noUiSlider: 'ariaFormat' requires 'to' method.");e.ariaFormat=t}function fa(e,t){if(!function(e){return Oo(e)&&"function"==typeof e.from}(t))throw new Error("noUiSlider: 'format' requires 'to' and 'from' methods.");e.format=t}function ma(e,t){if("boolean"!=typeof t)throw new Error("noUiSlider: 'keyboardSupport' option must be a boolean.");e.keyboardSupport=t}function va(e,t){e.documentElement=t}function ga(e,t){if("string"!=typeof t&&!1!==t)throw new Error("noUiSlider: 'cssPrefix' must be a string or `false`.");e.cssPrefix=t}function ya(e,t){if("object"!=typeof t)throw new Error("noUiSlider: 'cssClasses' must be an object.");"string"==typeof e.cssPrefix?(e.cssClasses={},Object.keys(t).forEach(function(n){e.cssClasses[n]=e.cssPrefix+t[n]})):e.cssClasses=t}function ba(e){var t={margin:null,limit:null,padding:null,animate:!0,animationDuration:300,ariaFormat:$o,format:$o},n={step:{r:!1,t:Xo},keyboardPageMultiplier:{r:!1,t:Ko},keyboardMultiplier:{r:!1,t:Jo},keyboardDefaultStep:{r:!1,t:Qo},start:{r:!0,t:ea},connect:{r:!0,t:ra},direction:{r:!0,t:ca},snap:{r:!1,t:ta},animate:{r:!1,t:na},animationDuration:{r:!1,t:ia},range:{r:!0,t:Zo},orientation:{r:!1,t:sa},margin:{r:!1,t:oa},limit:{r:!1,t:aa},padding:{r:!1,t:la},behaviour:{r:!0,t:ua},ariaFormat:{r:!1,t:ha},format:{r:!1,t:fa},tooltips:{r:!1,t:da},keyboardSupport:{r:!0,t:ma},documentElement:{r:!1,t:va},cssPrefix:{r:!0,t:ga},cssClasses:{r:!0,t:ya},handleAttributes:{r:!1,t:pa}},i={connect:!1,direction:"ltr",behaviour:"tap",orientation:"horizontal",keyboardSupport:!0,cssPrefix:"noUi-",cssClasses:Wo,keyboardPageMultiplier:5,keyboardMultiplier:1,keyboardDefaultStep:10};e.format&&!e.ariaFormat&&(e.ariaFormat=e.format),Object.keys(n).forEach(function(r){if(Do(e[r])||void 0!==i[r])n[r].t(t,Do(e[r])?e[r]:i[r]);else if(n[r].r)throw new Error("noUiSlider: '"+r+"' is required.")}),t.pips=e.pips;var r=document.createElement("div"),s=void 0!==r.style.msTransform,o=void 0!==r.style.transform;return t.transformRule=o?"transform":s?"msTransform":"webkitTransform",t.style=[["left","top"],["right","bottom"]][t.dir][t.ort],t}function wa(e,t,n){var i,r,s,o,a,l,c,u=window.navigator.pointerEnabled?{start:"pointerdown",move:"pointermove",end:"pointerup"}:window.navigator.msPointerEnabled?{start:"MSPointerDown",move:"MSPointerMove",end:"MSPointerUp"}:{start:"mousedown touchstart",move:"mousemove touchmove",end:"mouseup touchend"},d=window.CSS&&CSS.supports&&CSS.supports("touch-action","none")&&function(){var e=!1;try{var t=Object.defineProperty({},"passive",{get:function(){e=!0}});window.addEventListener("test",null,t)}catch(e){}return e}(),p=e,h=t.spectrum,f=[],m=[],v=[],g=0,y={},b=!1,w=e.ownerDocument,_=t.documentElement||w.documentElement,S=w.body,E="rtl"===w.dir||1===t.ort?0:100;function k(e,t){var n=w.createElement("div");return t&&Bo(n,t),e.appendChild(n),n}function x(e,n){var i=k(e,t.cssClasses.origin),r=k(i,t.cssClasses.handle);if(k(r,t.cssClasses.touchArea),r.setAttribute("data-handle",String(n)),t.keyboardSupport&&(r.setAttribute("tabindex","0"),r.addEventListener("keydown",function(e){return function(e,n){if(A()||O(n))return!1;var i=["Left","Right"],r=["Down","Up"],s=["PageDown","PageUp"],o=["Home","End"];t.dir&&!t.ort?i.reverse():t.ort&&!t.dir&&(r.reverse(),s.reverse());var a,l=e.key.replace("Arrow",""),c=l===s[0],u=l===s[1],d=l===r[0]||l===i[0]||c,p=l===r[1]||l===i[1]||u,v=l===o[1];if(!(d||p||l===o[0]||v))return!0;if(e.preventDefault(),p||d){var g=d?0:1,y=re(n)[g];if(null===y)return!1;!1===y&&(y=h.getDefaultStep(m[n],d,t.keyboardDefaultStep)),y*=u||c?t.keyboardPageMultiplier:t.keyboardMultiplier,y=Math.max(y,1e-7),y*=d?-1:1,a=f[n]+y}else a=v?t.spectrum.xVal[t.spectrum.xVal.length-1]:t.spectrum.xVal[0];return Z(n,h.toStepping(a),!0,!0),G("slide",n),G("update",n),G("change",n),G("set",n),!1}(e,n)})),void 0!==t.handleAttributes){var s=t.handleAttributes[n];Object.keys(s).forEach(function(e){r.setAttribute(e,s[e])})}return r.setAttribute("role","slider"),r.setAttribute("aria-orientation",t.ort?"vertical":"horizontal"),0===n?Bo(r,t.cssClasses.handleLower):n===t.handles-1&&Bo(r,t.cssClasses.handleUpper),i.handle=r,i}function C(e,n){return!!n&&k(e,t.cssClasses.connect)}function T(e,n){return!(!t.tooltips||!t.tooltips[n])&&k(e.firstChild,t.cssClasses.tooltip)}function A(){return p.hasAttribute("disabled")}function O(e){return s[e].hasAttribute("disabled")}function L(){l&&(W("update"+Go),l.forEach(function(e){e&&Lo(e)}),l=null)}function D(){L(),l=s.map(T),$("update"+Go,function(e,n,i){if(l&&t.tooltips&&!1!==l[n]){var r=e[n];!0!==t.tooltips[n]&&(r=t.tooltips[n].to(i[n])),l[n].innerHTML=r}})}function M(e,t){return e.map(function(e){return h.fromStepping(t?h.getStep(e):e)})}function P(){a&&(Lo(a),a=null)}function I(e){P();var n=function(e){function t(e,t){return Number((e+t).toFixed(7))}var n,i=function(e){if(e.mode===So.Range||e.mode===So.Steps)return h.xVal;if(e.mode===So.Count){if(e.values<2)throw new Error("noUiSlider: 'values' (>= 2) required for mode 'count'.");for(var t=e.values-1,n=100/t,i=[];t--;)i[t]=t*n;return i.push(100),M(i,e.stepped)}return e.mode===So.Positions?M(e.values,e.stepped):e.mode===So.Values?e.stepped?e.values.map(function(e){return h.fromStepping(h.getStep(h.toStepping(e)))}):e.values:[]}(e),r={},s=h.xVal[0],o=h.xVal[h.xVal.length-1],a=!1,l=!1,c=0;return n=i.slice().sort(function(e,t){return e-t}),i=n.filter(function(e){return!this[e]&&(this[e]=!0)},{}),i[0]!==s&&(i.unshift(s),a=!0),i[i.length-1]!==o&&(i.push(o),l=!0),i.forEach(function(n,s){var o,u,d,p,f,m,v,g,y,b,w=n,_=i[s+1],S=e.mode===So.Steps;for(S&&(o=h.xNumSteps[s]),o||(o=_-w),void 0===_&&(_=w),o=Math.max(o,1e-7),u=w;u<=_;u=t(u,o)){for(g=(f=(p=h.toStepping(u))-c)/(e.density||1),b=f/(y=Math.round(g)),d=1;d<=y;d+=1)r[(m=c+d*b).toFixed(5)]=[h.fromStepping(m),0];v=i.indexOf(u)>-1?Eo.LargeValue:S?Eo.SmallValue:Eo.NoValue,!s&&a&&u!==_&&(v=0),u===_&&l||(r[p.toFixed(5)]=[u,v]),c=p}}),r}(e),i=e.filter,r=e.format||{to:function(e){return String(Math.round(e))}};return a=p.appendChild(function(e,n,i){var r,s,o=w.createElement("div"),a=((r={})[Eo.None]="",r[Eo.NoValue]=t.cssClasses.valueNormal,r[Eo.LargeValue]=t.cssClasses.valueLarge,r[Eo.SmallValue]=t.cssClasses.valueSub,r),l=((s={})[Eo.None]="",s[Eo.NoValue]=t.cssClasses.markerNormal,s[Eo.LargeValue]=t.cssClasses.markerLarge,s[Eo.SmallValue]=t.cssClasses.markerSub,s),c=[t.cssClasses.valueHorizontal,t.cssClasses.valueVertical],u=[t.cssClasses.markerHorizontal,t.cssClasses.markerVertical];function d(e,n){var i=n===t.cssClasses.value,r=i?a:l;return n+" "+(i?c:u)[t.ort]+" "+r[e]}return Bo(o,t.cssClasses.pips),Bo(o,0===t.ort?t.cssClasses.pipsHorizontal:t.cssClasses.pipsVertical),Object.keys(e).forEach(function(r){!function(e,r,s){if((s=n?n(r,s):s)!==Eo.None){var a=k(o,!1);a.className=d(s,t.cssClasses.marker),a.style[t.style]=e+"%",s>Eo.NoValue&&((a=k(o,!1)).className=d(s,t.cssClasses.value),a.setAttribute("data-value",String(r)),a.style[t.style]=e+"%",a.innerHTML=String(i.to(r)))}}(r,e[r][0],e[r][1])}),o}(n,i,r))}function N(){var e=i.getBoundingClientRect(),n="offset"+["Width","Height"][t.ort];return 0===t.ort?e.width||i[n]:e.height||i[n]}function R(e,n,i,r){var s=function(s){var o,a,l=function(e,t,n){var i=0===e.type.indexOf("touch"),r=0===e.type.indexOf("mouse"),s=0===e.type.indexOf("pointer"),o=0,a=0;if(0===e.type.indexOf("MSPointer")&&(s=!0),"mousedown"===e.type&&!e.buttons&&!e.touches)return!1;if(i){var l=function(t){var i=t.target;return i===n||n.contains(i)||e.composed&&e.composedPath().shift()===n};if("touchstart"===e.type){var c=Array.prototype.filter.call(e.touches,l);if(c.length>1)return!1;o=c[0].pageX,a=c[0].pageY}else{var u=Array.prototype.find.call(e.changedTouches,l);if(!u)return!1;o=u.pageX,a=u.pageY}}return t=t||Fo(w),(r||s)&&(o=e.clientX+t.x,a=e.clientY+t.y),e.pageOffset=t,e.points=[o,a],e.cursor=r||s,e}(s,r.pageOffset,r.target||n);return!!l&&!(A()&&!r.doNotReject)&&(o=p,a=t.cssClasses.tap,!((o.classList?o.classList.contains(a):new RegExp("\\b"+a+"\\b").test(o.className))&&!r.doNotReject)&&!(e===u.start&&void 0!==l.buttons&&l.buttons>1)&&(!r.hover||!l.buttons)&&(d||l.preventDefault(),l.calcPoint=l.points[t.ort],void i(l,r)))},o=[];return e.split(" ").forEach(function(e){n.addEventListener(e,s,!!d&&{passive:!0}),o.push([e,s])}),o}function z(e){var n,r,s,o,a,l,c=100*(e-(n=i,r=t.ort,s=n.getBoundingClientRect(),a=(o=n.ownerDocument).documentElement,l=Fo(o),/webkit.*Chrome.*Mobile/i.test(navigator.userAgent)&&(l.x=0),r?s.top+l.y-a.clientTop:s.left+l.x-a.clientLeft))/N();return c=No(c),t.dir?100-c:c}function B(e,t){"mouseout"===e.type&&"HTML"===e.target.nodeName&&null===e.relatedTarget&&F(e,t)}function H(e,n){if(-1===navigator.appVersion.indexOf("MSIE 9")&&0===e.buttons&&0!==n.buttonsProperty)return F(e,n);var i=(t.dir?-1:1)*(e.calcPoint-n.startCalcPoint);K(i>0,100*i/n.baseSize,n.locations,n.handleNumbers,n.connect)}function F(e,n){n.handle&&(Ho(n.handle,t.cssClasses.active),g-=1),n.listeners.forEach(function(e){_.removeEventListener(e[0],e[1])}),0===g&&(Ho(p,t.cssClasses.drag),Q(),e.cursor&&(S.style.cursor="",S.removeEventListener("selectstart",Mo))),t.events.smoothSteps&&(n.handleNumbers.forEach(function(e){Z(e,m[e],!0,!0,!1,!1)}),n.handleNumbers.forEach(function(e){G("update",e)})),n.handleNumbers.forEach(function(e){G("change",e),G("set",e),G("end",e)})}function V(e,n){if(!n.handleNumbers.some(O)){var i;1===n.handleNumbers.length&&(i=s[n.handleNumbers[0]].children[0],g+=1,Bo(i,t.cssClasses.active)),e.stopPropagation();var r=[],o=R(u.move,_,H,{target:e.target,handle:i,connect:n.connect,listeners:r,startCalcPoint:e.calcPoint,baseSize:N(),pageOffset:e.pageOffset,handleNumbers:n.handleNumbers,buttonsProperty:e.buttons,locations:m.slice()}),a=R(u.end,_,F,{target:e.target,handle:i,listeners:r,doNotReject:!0,handleNumbers:n.handleNumbers}),l=R("mouseout",_,B,{target:e.target,handle:i,listeners:r,doNotReject:!0,handleNumbers:n.handleNumbers});r.push.apply(r,o.concat(a,l)),e.cursor&&(S.style.cursor=getComputedStyle(e.target).cursor,s.length>1&&Bo(p,t.cssClasses.drag),S.addEventListener("selectstart",Mo,!1)),n.handleNumbers.forEach(function(e){G("start",e)})}}function j(e){e.stopPropagation();var n=z(e.calcPoint),i=function(e){var t=100,n=!1;return s.forEach(function(i,r){if(!O(r)){var s=m[r],o=Math.abs(s-e);(o<t||o<=t&&e>s||100===o&&100===t)&&(n=r,t=o)}}),n}(n);!1!==i&&(t.events.snap||Io(p,t.cssClasses.tap,t.animationDuration),Z(i,n,!0,!0),Q(),G("slide",i,!0),G("update",i,!0),t.events.snap?V(e,{handleNumbers:[i]}):(G("change",i,!0),G("set",i,!0)))}function q(e){var t=z(e.calcPoint),n=h.getStep(t),i=h.fromStepping(n);Object.keys(y).forEach(function(e){"hover"===e.split(".")[0]&&y[e].forEach(function(e){e.call(oe,i)})})}function U(e){e.fixed||s.forEach(function(e,t){R(u.start,e.children[0],V,{handleNumbers:[t]})}),e.tap&&R(u.start,i,j,{}),e.hover&&R(u.move,i,q,{hover:!0}),e.drag&&o.forEach(function(n,i){if(!1!==n&&0!==i&&i!==o.length-1){var r=s[i-1],a=s[i],l=[n],c=[r,a],d=[i-1,i];Bo(n,t.cssClasses.draggable),e.fixed&&(l.push(r.children[0]),l.push(a.children[0])),e.dragAll&&(c=s,d=v),l.forEach(function(e){R(u.start,e,V,{handles:c,handleNumbers:d,connect:n})})}})}function $(e,t){y[e]=y[e]||[],y[e].push(t),"update"===e.split(".")[0]&&s.forEach(function(e,t){G("update",t)})}function W(e){var t=e&&e.split(".")[0],n=t?e.substring(t.length):e;Object.keys(y).forEach(function(e){var i=e.split(".")[0],r=e.substring(i.length);t&&t!==i||n&&n!==r||function(e){return e===Yo||e===Go}(r)&&n!==r||delete y[e]})}function G(e,n,i){Object.keys(y).forEach(function(r){var s=r.split(".")[0];e===s&&y[r].forEach(function(e){e.call(oe,f.map(t.format.to),n,f.slice(),i||!1,m.slice(),oe)})})}function Y(e,n,i,r,o,a,l){var c;return s.length>1&&!t.events.unconstrained&&(r&&n>0&&(c=h.getAbsoluteDistance(e[n-1],t.margin,!1),i=Math.max(i,c)),o&&n<s.length-1&&(c=h.getAbsoluteDistance(e[n+1],t.margin,!0),i=Math.min(i,c))),s.length>1&&t.limit&&(r&&n>0&&(c=h.getAbsoluteDistance(e[n-1],t.limit,!1),i=Math.min(i,c)),o&&n<s.length-1&&(c=h.getAbsoluteDistance(e[n+1],t.limit,!0),i=Math.max(i,c))),t.padding&&(0===n&&(c=h.getAbsoluteDistance(0,t.padding[0],!1),i=Math.max(i,c)),n===s.length-1&&(c=h.getAbsoluteDistance(100,t.padding[1],!0),i=Math.min(i,c))),l||(i=h.getStep(i)),!((i=No(i))===e[n]&&!a)&&i}function X(e,n){var i=t.ort;return(i?n:e)+", "+(i?e:n)}function K(e,n,i,r,s){var o=i.slice(),a=r[0],l=t.events.smoothSteps,c=[!e,e],u=[e,!e];r=r.slice(),e&&r.reverse(),r.length>1?r.forEach(function(e,t){var i=Y(o,e,o[e]+n,c[t],u[t],!1,l);!1===i?n=0:(n=i-o[e],o[e]=i)}):c=u=[!0];var d=!1;r.forEach(function(e,t){d=Z(e,i[e]+n,c[t],u[t],!1,l)||d}),d&&(r.forEach(function(e){G("update",e),G("slide",e)}),null!=s&&G("drag",a))}function J(e,n){return t.dir?100-e-n:e}function Q(){v.forEach(function(e){var t=m[e]>50?-1:1,n=3+(s.length+t*e);s[e].style.zIndex=String(n)})}function Z(e,n,i,r,o,a){return o||(n=Y(m,e,n,i,r,!1,a)),!1!==n&&(function(e,n){m[e]=n,f[e]=h.fromStepping(n);var i="translate("+X(J(n,0)-E+"%","0")+")";if(s[e].style[t.transformRule]=i,t.events.invertConnects&&m.length>1){var r=m.every(function(e,t,n){return 0===t||e>=n[t-1]});if(b!==!r)return b=!b,ra(t,t.connect.map(function(e){return!e})),void se()}ee(e),ee(e+1),b&&(ee(e-1),ee(e+2))}(e,n),!0)}function ee(e){if(o[e]){var n=m.slice();b&&n.sort(function(e,t){return e-t});var i=0,r=100;0!==e&&(i=n[e-1]),e!==o.length-1&&(r=n[e]);var s=r-i,a="translate("+X(J(i,s)+"%","0")+")",l="scale("+X(s/100,"1")+")";o[e].style[t.transformRule]=a+" "+l}}function te(e,n){return null===e||!1===e||void 0===e?m[n]:("number"==typeof e&&(e=String(e)),!1!==(e=t.format.from(e))&&(e=h.toStepping(e)),!1===e||isNaN(e)?m[n]:e)}function ne(e,n,i){var r=Ro(e),s=void 0===m[0];n=void 0===n||n,t.animate&&!s&&Io(p,t.cssClasses.tap,t.animationDuration),v.forEach(function(e){Z(e,te(r[e],e),!0,!1,i)});var o=1===v.length?0:1;if(s&&h.hasNoSize()&&(i=!0,m[0]=0,v.length>1)){var a=100/(v.length-1);v.forEach(function(e){m[e]=e*a})}for(;o<v.length;++o)v.forEach(function(e){Z(e,m[e],!0,!0,i)});Q(),v.forEach(function(e){G("update",e),null!==r[e]&&n&&G("set",e)})}function ie(e){if(void 0===e&&(e=!1),e)return 1===f.length?f[0]:f.slice(0);var n=f.map(t.format.to);return 1===n.length?n[0]:n}function re(e){var n=m[e],i=h.getNearbySteps(n),r=f[e],s=i.thisStep.step,o=null;if(t.snap)return[r-i.stepBefore.startValue||null,i.stepAfter.startValue-r||null];!1!==s&&r+s>i.stepAfter.startValue&&(s=i.stepAfter.startValue-r),o=r>i.thisStep.startValue?i.thisStep.step:!1!==i.stepBefore.step&&r-i.stepBefore.highestStep,100===n?s=null:0===n&&(o=null);var a=h.countStepDecimals();return null!==s&&!1!==s&&(s=Number(s.toFixed(a))),null!==o&&!1!==o&&(o=Number(o.toFixed(a))),[o,s]}function se(){for(;r.firstChild;)r.removeChild(r.firstChild);for(var e=0;e<=t.handles;e++)o[e]=C(r,t.connect[e]),ee(e);U({drag:t.events.drag,fixed:!0})}Bo(c=p,t.cssClasses.target),0===t.dir?Bo(c,t.cssClasses.ltr):Bo(c,t.cssClasses.rtl),0===t.ort?Bo(c,t.cssClasses.horizontal):Bo(c,t.cssClasses.vertical),Bo(c,"rtl"===getComputedStyle(c).direction?t.cssClasses.textDirectionRtl:t.cssClasses.textDirectionLtr),i=k(c,t.cssClasses.base),function(e,n){r=k(n,t.cssClasses.connects),s=[],(o=[]).push(C(r,e[0]));for(var i=0;i<t.handles;i++)s.push(x(n,i)),v[i]=i,o.push(C(r,e[i+1]))}(t.connect,i),U(t.events),ne(t.start),t.pips&&I(t.pips),t.tooltips&&D(),W("update"+Yo),$("update"+Yo,function(e,n,i,r,o){v.forEach(function(e){var n=s[e],r=Y(m,e,0,!0,!0,!0),a=Y(m,e,100,!0,!0,!0),l=o[e],c=String(t.ariaFormat.to(i[e]));r=h.fromStepping(r).toFixed(1),a=h.fromStepping(a).toFixed(1),l=h.fromStepping(l).toFixed(1),n.children[0].setAttribute("aria-valuemin",r),n.children[0].setAttribute("aria-valuemax",a),n.children[0].setAttribute("aria-valuenow",l),n.children[0].setAttribute("aria-valuetext",c)})});var oe={destroy:function(){for(W(Yo),W(Go),Object.keys(t.cssClasses).forEach(function(e){Ho(p,t.cssClasses[e])});p.firstChild;)p.removeChild(p.firstChild);delete p.noUiSlider},steps:function(){return v.map(re)},on:$,off:W,get:ie,set:ne,setHandle:function(e,t,n,i){if(!((e=Number(e))>=0&&e<v.length))throw new Error("noUiSlider: invalid handle number, got: "+e);Z(e,te(t,e),!0,!0,i),G("update",e),n&&G("set",e)},reset:function(e){ne(t.start,e)},disable:function(e){null!=e?(s[e].setAttribute("disabled",""),s[e].handle.removeAttribute("tabindex")):(p.setAttribute("disabled",""),s.forEach(function(e){e.handle.removeAttribute("tabindex")}))},enable:function(e){null!=e?(s[e].removeAttribute("disabled"),s[e].handle.setAttribute("tabindex","0")):(p.removeAttribute("disabled"),s.forEach(function(e){e.removeAttribute("disabled"),e.handle.setAttribute("tabindex","0")}))},__moveHandles:function(e,t,n){K(e,t,m,n)},options:n,updateOptions:function(e,i){var r=ie(),s=["margin","limit","padding","range","animate","snap","step","format","pips","tooltips","connect"];s.forEach(function(t){void 0!==e[t]&&(n[t]=e[t])});var o=ba(n);s.forEach(function(n){void 0!==e[n]&&(t[n]=o[n])}),h=o.spectrum,t.margin=o.margin,t.limit=o.limit,t.padding=o.padding,t.pips?I(t.pips):P(),t.tooltips?D():L(),m=[],ne(Do(e.start)?e.start:r,i),e.connect&&se()},target:p,removePips:P,removeTooltips:L,getPositions:function(){return m.slice()},getTooltips:function(){return l},getOrigins:function(){return s},pips:I};return oe}var _a=function(e,t){if(!e||!e.nodeName)throw new Error("noUiSlider: create requires a single element, got: "+e);if(e.noUiSlider)throw new Error("noUiSlider: Slider was already initialized.");var n=wa(e,ba(t),t);return e.noUiSlider=n,n},Sa={start:[0],connect:!1,range:{min:0,max:100},cssPrefix:"range-slider",cssClasses:{target:"__target",base:"__base",origin:"__origin",handle:"__handle",handleLower:"__handle--lower",handleUpper:"__handle--upper",touchArea:"__touch-area",horizontal:"--horizontal",vertical:"--vertical",background:"__background",connect:"__connect",connects:"__connects",ltr:"--ltr",rtl:"--rtl",draggable:"--draggable",drag:"--state-drag",tap:"--state-tap",active:"--active",tooltip:"__tooltip",pips:"__pips",pipsHorizontal:"__pips--horizontal",pipsVertical:"__pips--vertical",marker:"__marker",markerHorizontal:"__marker--horizontal",markerVertical:"__marker--vertical",markerNormal:"__marker--normal",markerLarge:"__marker--large",markerSub:"__marker--sub",value:"__value",valueHorizontal:"__value--horizontal",valueVertical:"__value--vertical",valueNormal:"__value--normal",valueLarge:"__value--large",valueSub:"__value--sub"},format:{decimals:0}},Ea=function(){return s(function e(t,n){var r=this;return i(this,e),o(this,"handleSliderUpdate",function(e,t){var n=e[t];if(r.inputs[t]&&(r.inputs[t].value=n),r.outputs[t]){var i=r.outputs[t];i&&i.format?i.element.innerText=i.format.to(r.config.format.from(n)):i&&(i.element.innerText=n)}}),this.element=t,this.config=l(l({},Sa),n),this.inputs=[],this.outputs=[],this.handleSliderUpdate=this.handleSliderUpdate.bind(this),this.element.ODS_RangeSlider=this,this.init(),this},[{key:"init",value:function(){var e,t=this,n=this.element.getAttribute("data-rangeslider-config"),i={};if(n)try{i=JSON.parse(n)}catch(e){}if(this.config=l(l({},this.config),i),this.config.format=rn(this.config.format),this.element.noUiSlider&&(this.element.noUiSlider=void 0,null!==(e=this.instance)&&void 0!==e&&e.destroy&&this.instance.destroy()),!this.config.range)throw new Error("RangeSlider config must include 'range'.");this.instance=_a(this.element,this.config),this.inputs=Array.from(document.querySelectorAll("input[name^=".concat(this.element.getAttribute("id"),"-]"))),this.outputs=this.inputs.map(function(e){var t=document.getElementById("".concat(e.getAttribute("id"),"-output"));if(t){var n=t.getAttribute("data-format");return{element:t,format:t.hasAttribute("data-format")&&n?rn(JSON.parse(n)):void 0}}return!1}),this.instance.on("update",function(e,n){t.handleSliderUpdate(e.map(String),n)})}},{key:"update",value:function(){var e;null===(e=this.instance)||void 0===e||e.destroy(),this.init()}},{key:"destroy",value:function(){var e,t;null===(e=this.instance)||void 0===e||e.off("update"),null===(t=this.instance)||void 0===t||t.destroy(),this.element.ODS_RangeSlider=null}}],[{key:"getInstance",value:function(e){return e&&e.ODS_RangeSlider?e.ODS_RangeSlider:null}}])}(),ka={cycleDuration:4e3,delay:5e3},xa=function(){return s(function e(t,n){i(this,e),this.element=t,this.config=l(l({},ka),n),this.interval=null,this.delay=null,this.currentMessageIndex=0,this.messages=[],this.cycleMessages=this.cycleMessages.bind(this),this.element.ODS_Loader=this,this.init()},[{key:"initBody",value:function(){var e,t=this.element.getAttribute("data-loader-messages");this.messages=t?JSON.parse(t):[],this.messages.length&&(this.interval=window.setInterval(this.cycleMessages,null!==(e=this.config.cycleDuration)&&void 0!==e?e:ka.cycleDuration))}},{key:"init",value:function(){var e,t=this;this.element.hasAttribute("data-loader-delayed")?this.delay=window.setTimeout(function(){t.element.parentNode&&t.element.parentNode instanceof HTMLElement&&t.element.parentNode.classList.remove("hide"),t.initBody()},null!==(e=this.config.delay)&&void 0!==e?e:ka.delay):this.initBody()}},{key:"destroy",value:function(){this.interval&&window.clearInterval(this.interval),this.delay&&window.clearTimeout(this.delay)}},{key:"cycleMessages",value:function(){this.currentMessageIndex<this.messages.length?(this.element.innerText=this.messages[this.currentMessageIndex],this.currentMessageIndex+=1):this.destroy()}}],[{key:"getInstance",value:function(e){return e&&e.ODS_Loader?e.ODS_Loader:null}}])}();const Ca=":not([inert]):not([inert] *)",Ta=':not([tabindex^="-"])',Aa=":not(:disabled)";var Oa=[`a[href]${Ca}${Ta}`,`area[href]${Ca}${Ta}`,`input:not([type="hidden"]):not([type="radio"])${Ca}${Ta}${Aa}`,`input[type="radio"]${Ca}${Ta}${Aa}`,`select${Ca}${Ta}${Aa}`,`textarea${Ca}${Ta}${Aa}`,`button${Ca}${Ta}${Aa}`,`details${Ca} > summary:first-of-type${Ta}`,`iframe${Ca}${Ta}`,`audio[controls]${Ca}${Ta}`,`video[controls]${Ca}${Ta}`,`[contenteditable]${Ca}${Ta}`,`[tabindex]${Ca}${Ta}`];function La(e){(e.querySelector("[autofocus]")||e).focus()}function Da(e,t){if(t&&Ia(e))return e;if(function(e){return!(e.shadowRoot&&"-1"===e.getAttribute("tabindex")||e.matches(":disabled,[hidden],[inert]"))}(e))if(e.shadowRoot){let n=Ma(e.shadowRoot,t);for(;n;){const e=Da(n,t);if(e)return e;n=Pa(n,t)}}else if("slot"===e.localName){const n=e.assignedElements({flatten:!0});t||n.reverse();for(const e of n){const n=Da(e,t);if(n)return n}}else{let n=Ma(e,t);for(;n;){const e=Da(n,t);if(e)return e;n=Pa(n,t)}}return!t&&Ia(e)?e:null}function Ma(e,t){return t?e.firstElementChild:e.lastElementChild}function Pa(e,t){return t?e.nextElementSibling:e.previousElementSibling}const Ia=e=>!e.shadowRoot?.delegatesFocus&&e.matches(Oa.join(","))&&!(e=>!(!e.matches("details:not([open]) *")||e.matches("details>summary:first-of-type"))||!(e.offsetWidth||e.offsetHeight||e.getClientRects().length))(e);function Na(e=document){const t=e.activeElement;return t?t.shadowRoot?Na(t.shadowRoot)||document.activeElement:t:null}function Ra(e,t){return function t(n){if(!n||n===document||n===window)return null;const i=za(n);return i&&(n=i),n.closest(e)||t(n.getRootNode().host)}(t)}function za(e){return e.assignedSlot||(e.parentNode?za(e.parentNode):null)}const Ba="data-a11y-dialog";class Ha{$el;id;previouslyFocused;shown;constructor(e){this.$el=e,this.id=this.$el.getAttribute(Ba)||this.$el.id,this.previouslyFocused=null,this.shown=!1,this.maintainFocus=this.maintainFocus.bind(this),this.bindKeypress=this.bindKeypress.bind(this),this.handleTriggerClicks=this.handleTriggerClicks.bind(this),this.show=this.show.bind(this),this.hide=this.hide.bind(this),this.$el.setAttribute("aria-hidden","true"),this.$el.setAttribute("aria-modal","true"),this.$el.setAttribute("tabindex","-1"),this.$el.hasAttribute("role")||this.$el.setAttribute("role","dialog"),document.addEventListener("click",this.handleTriggerClicks,!0)}destroy(){return this.fire("destroy").defaultPrevented||(this.hide(),document.removeEventListener("click",this.handleTriggerClicks,!0),this.$el.replaceWith(this.$el.cloneNode(!0))),this}show(e){return this.shown||this.fire("show",e).defaultPrevented||(this.shown=!0,this.$el.removeAttribute("aria-hidden"),this.previouslyFocused=Na(),"BODY"===this.previouslyFocused?.tagName&&e?.target&&(this.previouslyFocused=e.target),"focus"===e?.type?this.maintainFocus():La(this.$el),document.body.addEventListener("focus",this.maintainFocus,!0),this.$el.addEventListener("keydown",this.bindKeypress,!0)),this}hide(e){return this.shown?(this.fire("hide",e).defaultPrevented||(this.shown=!1,this.$el.setAttribute("aria-hidden","true"),document.body.removeEventListener("focus",this.maintainFocus,!0),this.$el.removeEventListener("keydown",this.bindKeypress,!0),this.previouslyFocused?.focus?.()),this):this}on(e,t,n){return this.$el.addEventListener(e,t,n),this}off(e,t,n){return this.$el.removeEventListener(e,t,n),this}fire(e,t){const n=new CustomEvent(e,{detail:t,cancelable:!0});return this.$el.dispatchEvent(n),n}handleTriggerClicks(e){const t=e.composedPath()[0],n=Ra(`[${Ba}-show="${this.id}"]`,t),i=Ra(`[${Ba}-hide="${this.id}"]`,t),r=Ra(`[${Ba}-hide]`,t)&&Ra('[aria-modal="true"]',t)===this.$el;n&&this.show(e),(i||r)&&this.hide(e)}bindKeypress(e){if(Ra('[aria-modal="true"]',Na())!==this.$el)return;let t=!1;try{t=!!this.$el.querySelector('[popover]:not([popover="manual"]):popover-open')}catch{}"Escape"!==e.key||"alertdialog"===this.$el.getAttribute("role")||t||(e.preventDefault(),this.hide(e)),"Tab"===e.key&&function(e,t){const[n,i]=function(e){const t=Da(e,!0);return[t,t?Da(e,!1)||t:null]}(e);if(!n)return t.preventDefault();const r=Na();t.shiftKey&&r===n?(i.focus(),t.preventDefault()):t.shiftKey||r!==i||(n.focus(),t.preventDefault())}(this.$el,e)}maintainFocus(){const e=Na();Ra(`[aria-modal="true"], [${Ba}-ignore-focus-trap]`,e)||La(this.$el)}}function Fa(){for(const e of document.querySelectorAll("[data-a11y-dialog]"))new Ha(e)}"undefined"!=typeof document&&("loading"===document.readyState?document.addEventListener("DOMContentLoaded",Fa):Fa());var Va=["input:not([inert]):not([inert] *)","select:not([inert]):not([inert] *)","textarea:not([inert]):not([inert] *)","a[href]:not([inert]):not([inert] *)","button:not([inert]):not([inert] *)","[tabindex]:not(slot):not([inert]):not([inert] *)","audio[controls]:not([inert]):not([inert] *)","video[controls]:not([inert]):not([inert] *)",'[contenteditable]:not([contenteditable="false"]):not([inert]):not([inert] *)',"details>summary:first-of-type:not([inert]):not([inert] *)","details:not([inert]):not([inert] *)"].join(","),ja="undefined"==typeof Element,qa=ja?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,Ua=!ja&&Element.prototype.getRootNode?function(e){var t;return null==e||null===(t=e.getRootNode)||void 0===t?void 0:t.call(e)}:function(e){return null==e?void 0:e.ownerDocument},$a=function(e){return"INPUT"===e.tagName},Wa=function(e){var t=e.getBoundingClientRect(),n=t.width,i=t.height;return 0===n&&0===i},Ga=function(e,t){return!(t.disabled||function(e){return $a(e)&&"hidden"===e.type}(t)||function(e,t){var n=t.displayCheck,i=t.getShadowRoot;if("full-native"===n&&"checkVisibility"in e)return!e.checkVisibility({checkOpacity:!1,opacityProperty:!1,contentVisibilityAuto:!0,visibilityProperty:!0,checkVisibilityCSS:!0});if("hidden"===getComputedStyle(e).visibility)return!0;var r=qa.call(e,"details>summary:first-of-type")?e.parentElement:e;if(qa.call(r,"details:not([open]) *"))return!0;if(n&&"full"!==n&&"full-native"!==n&&"legacy-full"!==n){if("non-zero-area"===n)return Wa(e)}else{if("function"==typeof i){for(var s=e;e;){var o=e.parentElement,a=Ua(e);if(o&&!o.shadowRoot&&!0===i(o))return Wa(e);e=e.assignedSlot?e.assignedSlot:o||a===e.ownerDocument?o:a.host}e=s}if(function(e){var t,n,i,r,s=e&&Ua(e),o=null===(t=s)||void 0===t?void 0:t.host,a=!1;if(s&&s!==e)for(a=!!(null!==(n=o)&&void 0!==n&&null!==(i=n.ownerDocument)&&void 0!==i&&i.contains(o)||null!=e&&null!==(r=e.ownerDocument)&&void 0!==r&&r.contains(e));!a&&o;){var l,c,u;a=!(null===(c=o=null===(l=s=Ua(o))||void 0===l?void 0:l.host)||void 0===c||null===(u=c.ownerDocument)||void 0===u||!u.contains(o))}return a}(e))return!e.getClientRects().length;if("legacy-full"!==n)return!0}return!1}(t,e)||function(e){return"DETAILS"===e.tagName&&Array.prototype.slice.apply(e.children).some(function(e){return"SUMMARY"===e.tagName})}(t)||function(e){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))for(var t=e.parentElement;t;){if("FIELDSET"===t.tagName&&t.disabled){for(var n=0;n<t.children.length;n++){var i=t.children.item(n);if("LEGEND"===i.tagName)return!!qa.call(t,"fieldset[disabled] *")||!i.contains(e)}return!0}t=t.parentElement}return!1}(t))},Ya=function(e,t){if(t=t||{},!e)throw new Error("No node provided");return!1!==qa.call(e,Va)&&function(e,t){return!(function(e){return function(e){return $a(e)&&"radio"===e.type}(e)&&!function(e){if(!e.name)return!0;var t,n=e.form||Ua(e),i=function(e){return n.querySelectorAll('input[type="radio"][name="'+e+'"]')};if("undefined"!=typeof window&&void 0!==window.CSS&&"function"==typeof window.CSS.escape)t=i(window.CSS.escape(e.name));else try{t=i(e.name)}catch(e){return!1}var r=function(e,t){for(var n=0;n<e.length;n++)if(e[n].checked&&e[n].form===t)return e[n]}(t,e.form);return!r||r===e}(e)}(t)||function(e){if(!e)throw new Error("No node provided");return e.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||function(e){var t,n=null==e||null===(t=e.getAttribute)||void 0===t?void 0:t.call(e,"contenteditable");return""===n||"true"===n}(e))&&!function(e){return!isNaN(parseInt(e.getAttribute("tabindex"),10))}(e)?0:e.tabIndex}(t)<0||!Ga(e,t))}(t,e)},Xa=function(){function e(t,n){return i(this,e),this.element=t,this.config=l(l({},{classModalIsOpen:"is-active",classModalIsOpenBody:"has-modal",root:"#root",modalsRoot:"#root-modals"}),n),this.handleShow=this.handleShow.bind(this),this.handleHide=this.handleHide.bind(this),this.show=this.show.bind(this),this.hide=this.hide.bind(this),this.headerFirstItemSpacing=this.headerFirstItemSpacing.bind(this),e.moveToModalRoot=e.moveToModalRoot.bind(this),e.lockBody=e.lockBody.bind(this),e.unlockBody=e.unlockBody.bind(this),this.element.ODS_Modal=this,this.init(),this}return s(e,[{key:"handleShow",value:function(t){e.lockBody(),t&&t.classList.add(this.config.classModalIsOpen);var n=t.querySelector("[data-a11y-dialog-initial-focus]");n&&(Ya(n)||n.setAttribute("tabindex","-1"),n.focus())}},{key:"handleHide",value:function(t){e.unlockBody(),t&&t.classList.remove(this.config.classModalIsOpen)}},{key:"show",value:function(){this.instance.show()}},{key:"hide",value:function(){this.instance.hide()}},{key:"headerFirstItemSpacing",value:function(){var e=this.element.querySelector(".modal__header");if(e){var t=e.classList.contains("modal__header--no-spacing"),n=Array.from(e.children).find(function(e){return!e.classList.contains("btn")});n&&!t&&(n.style.marginRight="40px")}}},{key:"init",value:function(){var t=this;this.config.modalsRoot&&!this.config.disablePortal&&e.moveToModalRoot(this.element,document.querySelector(this.config.modalsRoot)),this.instance=new Ha(this.element),this.instance.on("show",function(e){var n=e.currentTarget;t.handleShow(n)}),this.instance.on("hide",function(e){var n=e.currentTarget;t.handleHide(n)}),this.headerFirstItemSpacing()}},{key:"destroy",value:function(){if(this.instance){this.instance.hide();var t=this.instance;document.removeEventListener("click",t.handleTriggerClicks,!0),document.body.removeEventListener("focus",t.maintainFocus,!0),this.element.removeEventListener("keydown",t.bindKeypress,!0),e.unlockBody()}this.element.ODS_Modal=this}},{key:"update",value:function(){this.destroy(),this.init()}}],[{key:"getInstance",value:function(e){return e&&e.ODS_Modal||null}},{key:"moveToModalRoot",value:function(e,t){t&&t.appendChild(e)}},{key:"lockBody",value:function(t,n){var i;if(!e.isLocked){var r=t||(null===(i=this.config)||void 0===i?void 0:i.classModalIsOpenBody),s=window.scrollY;document.body.setAttribute("data-lock-scrolltop",s.toString());var o=window.innerWidth-document.documentElement.clientWidth;document.body.style.position="fixed",document.body.style.top="-".concat(s,"px"),document.body.style.left="0",document.body.style.right="0",document.body.style.paddingRight="".concat(o,"px"),document.body.classList.add(r),e.isLocked=!0}}},{key:"unlockBody",value:function(t,n){var i;if(e.isLocked){var r=t||(null===(i=this.config)||void 0===i?void 0:i.classModalIsOpenBody),s=document.body.getAttribute("data-lock-scrolltop")||"0";document.body.style.position="",document.body.style.top="",document.body.style.left="",document.body.style.right="",document.body.style.paddingRight="",document.body.classList.remove(r),window.scrollTo({top:parseInt(s,10),left:0,behavior:"instant"}),e.isLocked=!1}}}])}();o(Xa,"isLocked",!1);var Ka={expandButtonSelector:"[data-subrow-toggle]",scrollableContainerSelector:".table-scrollable",responsiveTableSelector:'[data-table="responsive"]'},Ja=function(){return s(function e(t,n){var r=this;return i(this,e),this.element=t,this.config=l(l({},Ka),n),this.addRole=this.addRole.bind(this),this.addARIA=this.addARIA.bind(this),this.onExpandClick=this.onExpandClick.bind(this),this.expandButtons=[],this.scrollableContainer=null,this.element.ODS_Table=this,this.resizeObserver=new ResizeObserver(function(e){if(r.scrollableContainer){var t=r.scrollableContainer.getBoundingClientRect();e.forEach(function(e){var n,i;e.contentRect.width>t.width?null===(n=r.scrollableContainer)||void 0===n||n.setAttribute("tabindex","0"):null===(i=r.scrollableContainer)||void 0===i||i.removeAttribute("tabindex")})}}),this.init(),this},[{key:"addRole",value:function(e,t){Array.from(this.element.querySelectorAll(e)).forEach(function(e){e.setAttribute("role",t)})}},{key:"addARIA",value:function(){try{this.element.setAttribute("role","table"),this.addRole("thead, tbody, tfoot","rowgroup"),this.addRole("tr","row"),this.addRole("td","cell"),this.addRole("th","columnheader"),this.addRole("th[scope=row]","rowheader")}catch(e){}}},{key:"onExpandClick",value:function(e){var t,n=e.currentTarget,i=null!==(t=n.getAttribute("aria-controls"))&&void 0!==t?t:"",r=this.element.querySelectorAll(i.split(" ").map(function(e){return"#".concat(e)}).join(","));xi({element:n,attribute:"aria-expanded"}),r.forEach(function(e){xi({element:e,attribute:"hidden"})})}},{key:"init",value:function(){var e=this;this.expandButtons=Array.from(this.element.querySelectorAll(this.config.expandButtonSelector)),this.expandButtons.forEach(function(t){t.addEventListener("click",e.onExpandClick)}),this.element.matches(this.config.responsiveTableSelector)&&this.addARIA(),this.maybeInitScrollable()}},{key:"maybeInitScrollable",value:function(){if(this.scrollableContainer=this.element.closest(this.config.scrollableContainerSelector),this.scrollableContainer)return this.resizeObserver.observe(this.element),!0}},{key:"destroy",value:function(){var e=this;this.expandButtons.forEach(function(t){t.removeEventListener("click",e.onExpandClick)}),this.resizeObserver.disconnect(),this.expandButtons=[]}},{key:"update",value:function(){this.destroy(),this.init()}}],[{key:"getInstance",value:function(e){return e&&e.ODS_Table?e.ODS_Table:null}}])}(),Qa={tabSelector:'[role="tab"]'},Za=function(){return s(function e(t,n){return i(this,e),o(this,"isActive",function(e){return!!e&&!e.hasAttribute("hidden")}),o(this,"isSelected",function(e){return"true"===e.getAttribute("aria-selected")}),this.element=t,this.config=l(l({},Qa),n),this.tabs=[],this.tabPanels=[],this.activeTabIndex=null,this.rovingTabindex=null,this.handleClick=this.handleClick.bind(this),this.handleTabFocus=this.handleTabFocus.bind(this),this.element.ODS_Tabs=this,this.init(),this},[{key:"init",value:function(){var e=this;this.tabs=Array.from(this.element.querySelectorAll(this.config.tabSelector)),this.tabs.map(function(t,n){var i=t.getAttribute("aria-controls");return e.tabPanels.push(i?document.getElementById(i):null),t.addEventListener("click",e.handleClick),t.addEventListener("focus",e.handleTabFocus),e.isSelected(t)&&(e.activeTabIndex=n),t}),this.rovingTabindex?this.rovingTabindex.update(this.tabs):this.rovingTabindex=new g(this.tabs,{direction:"any"}),null!==this.activeTabIndex?this.toggleTabPanel(this.tabPanels[this.activeTabIndex],"on"):this.tabs.length>0&&this.activateNthTab(0)}},{key:"destroy",value:function(){var e=this;this.tabs.map(function(t){return t.removeEventListener("click",e.handleClick),t.removeEventListener("focus",e.handleTabFocus),t}),this.tabs=[],this.tabPanels=[],this.rovingTabindex&&this.rovingTabindex.destroy(),this.element.ODS_Tabs=null}},{key:"update",value:function(){this.destroy(),this.init()}},{key:"handleClick",value:function(e){var t=this,n=e.currentTarget;n.hasAttribute("aria-disabled")?e.preventDefault():(this.tabs.map(function(e,i){return e===n?(t.activeTabIndex=i,t.toggleTab(e,"on")):t.toggleTab(e,"off")}),this.tabPanels.map(function(e){return e&&e.getAttribute("id")===n.getAttribute("aria-controls")?t.toggleTabPanel(e,"on"):t.toggleTabPanel(e,"off")}))}},{key:"toggleTab",value:function(e,t){var n=this.isSelected(e);"on"!==t||n||(e.setAttribute("aria-selected","true"),e.setAttribute("tabindex","0")),"off"===t&&n&&(e.setAttribute("aria-selected","false"),e.setAttribute("tabindex","-1"))}},{key:"toggleTabPanel",value:function(e,t){if(e){var n=this.isActive(e);"on"!==t||n||e.removeAttribute("hidden"),"off"===t&&n&&e.setAttribute("hidden","")}}},{key:"activateNthTab",value:function(e){var t=this;this.tabs.map(function(n,i){return i===e?(t.activeTabIndex=i,t.toggleTab(n,"on")):t.toggleTab(n,"off")}),this.tabPanels.map(function(n,i){return i===e?t.toggleTabPanel(n,"on"):t.toggleTabPanel(n,"off")})}},{key:"handleTabFocus",value:function(){this.rovingTabindex&&!this.rovingTabindex.isActive&&this.rovingTabindex.init()}}],[{key:"getInstance",value:function(e){return e&&e.ODS_Tabs?e.ODS_Tabs:null}}])}(),el=function(){return s(function e(t){i(this,e),this.element=t,this.children=null,this.updateHeight=this.updateHeight.bind(this),this.element.ODS_SameHeight=this,this.intervalId=null,this.init()},[{key:"temporarilyShowHiddenElements",value:function(){var e=this;this.originalDisplayStates=[],this.children.forEach(function(t){var n=t.closest('[role="tabpanel"]'),i=t.closest('[role="dialog"]');n&&n.hasAttribute("hidden")&&(e.originalDisplayStates.push({element:n,display:n.style.display}),n.style.display="block",n.removeAttribute("hidden")),i&&i.hasAttribute("aria-hidden")&&(e.originalDisplayStates.push({element:i,display:i.style.display}),i.style.display="block",i.removeAttribute("aria-hidden"))})}},{key:"restoreHiddenElements",value:function(){this.originalDisplayStates.forEach(function(e){var t=e.element,n=e.display;t.style.display=n,"tabpanel"===t.getAttribute("role")?t.setAttribute("hidden",!0):"dialog"===t.getAttribute("role")&&t.setAttribute("aria-hidden",!0)})}},{key:"getCarouselElement",value:function(){var e="[data-carousel], .".concat(ln);return this.element.matches(e)?this.element:this.element.closest(e)}},{key:"isInsideOrIsCarousel",value:function(){return this.getCarouselElement()}},{key:"getCarouselSlides",value:function(){var e=this.getCarouselElement();return e?e.querySelectorAll(".".concat(pn)):[]}},{key:"updateHeight",value:function(){this.temporarilyShowHiddenElements();var e=this.element.querySelectorAll('[data-same-height-child="true"]');e.forEach(function(e){e.style.height&&(e.style.height="")});for(var t=this.groupElementsByTypeAndPosition(e),n=this.isInsideOrIsCarousel(),i=0,r=Object.entries(t);i<r.length;i++){var s=d(r[i],2);s[0];var o=s[1];o.length&&this.groupElementsIntoRows(o,n).forEach(function(e){if(e.length>1){var t=Math.max.apply(Math,p(e.map(function(e){return e.offsetHeight})));e.forEach(function(e){e.style.height="".concat(t,"px")})}else e.forEach(function(e){e.style.height&&(e.style.height=null)})})}this.restoreHiddenElements()}},{key:"groupElementsIntoRows",value:function(e,t){if(t)return[e];var n,i=[],r=[],s=e[0].getBoundingClientRect().top,o=function(e){var t="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!t){if(Array.isArray(e)||(t=m(e))){t&&(e=t);var n=0,i=function(){};return{s:i,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:i}}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 r,s=!0,o=!1;return{s:function(){t=t.call(e)},n:function(){var e=t.next();return s=e.done,e},e:function(e){o=!0,r=e},f:function(){try{s||null==t.return||t.return()}finally{if(o)throw r}}}}(e);try{for(o.s();!(n=o.n()).done;){var a=n.value,l=a.getBoundingClientRect().top;l===s?r.push(a):(i.push(r),r=[a],s=l)}}catch(e){o.e(e)}finally{o.f()}return i.push(r),i}},{key:"groupElementsByTypeAndPosition",value:function(e){var t={};return e.forEach(function(e){var n=e.getAttribute("data-same-height-group")||"default";t[n]||(t[n]=[]),t[n].push(e)}),t}},{key:"init",value:function(){var e=this;this.children=this.element.querySelectorAll('[data-same-height-child="true"]');var t=[];this.children.forEach(function(e){e.querySelectorAll("img").forEach(function(e){e.complete||t.push(e)})});var n=this.isInsideOrIsCarousel(),i=function(){n?e.waitForCarouselThenUpdate(n):e.updateHeight()};0===t.length?i():this.waitForImagesToLoad(t,i),window.addEventListener("resize",this.updateHeight),n&&this.setupCarouselListeners(n)}},{key:"waitForCarouselThenUpdate",value:function(e){var t,n=this;null!==(t=e.ODS_Carousel)&&void 0!==t&&t.instance?requestAnimationFrame(function(){n.updateHeight()}):setTimeout(function(){return n.waitForCarouselThenUpdate(e)},50)}},{key:"waitForImagesToLoad",value:function(e,t){var n=this,i=0;this.intervalId=setInterval(function(){var r=!1;e.forEach(function(e,t,n){e.complete&&(n.splice(t,1),r=!0)}),r&&n.updateHeight&&t(),(++i>=15||0===e.length)&&(e.length&&n.updateHeight&&t(),window.clearInterval(n.intervalId))},400)}},{key:"setupCarouselListeners",value:function(e){var t,n=this;if(null!==(t=e.ODS_Carousel)&&void 0!==t&&t.instance){var i=e.ODS_Carousel.instance;["resize","update","slideChange"].forEach(function(e){i.on(e,function(){requestAnimationFrame(function(){n.updateHeight()})})})}else setTimeout(function(){return n.setupCarouselListeners(e)},50)}},{key:"update",value:function(){this.destroy(),this.init()}},{key:"destroy",value:function(){window.removeEventListener("resize",this.updateHeight),this.intervalId&&(clearInterval(this.intervalId),this.intervalId=null)}}],[{key:"getInstance",value:function(e){return(null==e?void 0:e.ODS_SameHeight)||null}}])}(),tl=[{Module:b,name:"Accordion",selector:"[data-accordion]"},{Module:w,name:"AnchorNavigation",selector:"[data-anchor-navigation]"},{Module:Hi,name:"Autocomplete",selector:"[data-autocomplete]"},{Module:_s,name:"DatePicker",selector:"[data-datepicker]"},{Module:wi,name:"Dropdown",selector:"[data-dropdown]"},{Module:_i,name:"Expander",selector:"[data-expander]"},{Module:S,name:"BlockAction",selector:"[data-block-action]"},{Module:Mn,name:"Carousel",selector:"[data-carousel]"},{Module:ii,name:"CarouselHero",selector:"[data-carousel-hero]"},{Module:yi,name:"CarouselPromotions",selector:"[data-carousel-promotions]"},{Module:zi,name:"FeatureAccordion",selector:"[data-feature-accordion]"},{Module:Co,name:"File",selector:"[data-file-input]"},{Module:xa,name:"Loader",selector:"[data-loader]"},{Module:Xa,name:"Modal",selector:"[data-modal]"},{Module:el,name:"SameHeight",selector:"[data-same-height]"},{Module:Ea,name:"RangeSlider",selector:"[data-rangeslider]"},{Module:Ao,name:"InputStepper",selector:"[data-inputstepper]"},{Module:Ja,name:"Table",selector:"[data-table]"},{Module:Za,name:"Tabs",selector:"[data-tabs]"},{Module:ki,name:"Toggle",selector:"[data-toggle]"},{Module:an,name:"Tooltip",selector:"[data-tooltip]"}];window.ODS=window.ODS||{modules:{},instances:{},moduleSelectorPairs:{}},window.ODS.initModulesWithin=function(e){var t={};return window.ODS.moduleSelectorPairs.forEach(function(n){var i=sn(n.name),r=Array.from(e.querySelectorAll(n.selector)),s="ODS_".concat(n.name),o=r.filter(function(e){return!e[s]});window&&window.ODS&&window.ODS.instances[i]&&(window.ODS.instances[i]=window.ODS.instances[i].filter(function(e){var t,n=document.contains(e.element);return n||null===(t=e.destroy)||void 0===t||t.call(e),n}),window.ODS.instances[i].forEach(function(e){o.forEach(function(t,n){t.isSameNode(e.element)&&o.splice(n,1)})})),o.length&&(Array.isArray(window.ODS.instances[i])||(window.ODS.instances[i]=[]),t[i]=o.map(function(e){return new n.Module(e)}),window.ODS.instances[i]=[].concat(p(window.ODS.instances[i]),p(t[i])))}),t},window.ODS.destroyModulesWithin=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n={};return Object.keys(window.ODS.instances).forEach(function(i){window.ODS.instances[i].forEach(function(r){"object"!==f(n[i])&&(n[i]=[]);var s,o=e.contains(r.element);"modal"===i?o=null===(s=r.instance)||void 0===s?void 0:s._openers.every(function(t){return e.contains(t)}):"tooltip"===i&&(o=e.contains(r.trigger)),o&&(r.destroy(),n[i].push(r)),o&&t&&["modal","tooltip"].includes(i)&&r.element.remove()}),window.ODS.instances[i]=window.ODS.instances[i].filter(function(e){return!n[i].includes(e)})}),n},window.ODS.moduleSelectorPairs=tl,window.addEventListener("DOMContentLoaded",function(){tl.forEach(function(e){window.ODS.modules[e.name]=e.Module,window.ODS.instances[sn(e.name)]=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return Array.from(document.querySelectorAll(t)).map(function(t){return new e(t,n)})}(e.Module,e.selector)}),window.dispatchEvent(new Event("ODSLoaded"))});var nl,il={exports:{}},rl=(nl||(nl=1,window,il.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=37)}([function(e,t,n){var i=n(1),r=n(6),s=n(7),o=n(16),a=n(18),l="prototype",c=function(e,t,n){var u,d,p,h,f=e&c.F,m=e&c.G,v=e&c.S,g=e&c.P,y=e&c.B,b=m?i:v?i[t]||(i[t]={}):(i[t]||{})[l],w=m?r:r[t]||(r[t]={}),_=w[l]||(w[l]={});for(u in m&&(n=t),n)p=((d=!f&&b&&void 0!==b[u])?b:n)[u],h=y&&d?a(p,i):g&&"function"==typeof p?a(Function.call,p):p,b&&o(b,u,p,e&c.U),w[u]!=p&&s(w,u,h),g&&_[u]!=p&&(_[u]=p)};i.core=r,c.F=1,c.G=2,c.S=4,c.P=8,c.B=16,c.W=32,c.U=64,c.R=128,e.exports=c},function(e,t){var n=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},function(e,t,n){e.exports=!n(4)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},function(e,t,n){n.r(t),n.d(t,"h",function(){return a}),n.d(t,"createElement",function(){return a}),n.d(t,"cloneElement",function(){return u}),n.d(t,"Component",function(){return I}),n.d(t,"render",function(){return N}),n.d(t,"rerender",function(){return f}),n.d(t,"options",function(){return r});var i=function(){},r={},s=[],o=[];function a(e,t){var n,a,l,c,u=o;for(c=arguments.length;2<c--;)s.push(arguments[c]);for(t&&null!=t.children&&(s.length||s.push(t.children),delete t.children);s.length;)if((a=s.pop())&&void 0!==a.pop)for(c=a.length;c--;)s.push(a[c]);else"boolean"==typeof a&&(a=null),(l="function"!=typeof e)&&(null==a?a="":"number"==typeof a?a=String(a):"string"!=typeof a&&(l=!1)),l&&n?u[u.length-1]+=a:u===o?u=[a]:u.push(a),n=l;var d=new i;return d.nodeName=e,d.children=u,d.attributes=null==t?void 0:t,d.key=null==t?void 0:t.key,void 0!==r.vnode&&r.vnode(d),d}function l(e,t){for(var n in t)e[n]=t[n];return e}var c="function"==typeof Promise?Promise.resolve().then.bind(Promise.resolve()):setTimeout;function u(e,t){return a(e.nodeName,l(l({},e.attributes),t),2<arguments.length?[].slice.call(arguments,2):e.children)}var d=/acit|ex(?:s|g|n|p|$)|rph|ows|mnc|ntw|ine[ch]|zoo|^ord/i,p=[];function h(e){!e._dirty&&(e._dirty=!0)&&1==p.push(e)&&(r.debounceRendering||c)(f)}function f(){var e,t=p;for(p=[];e=t.pop();)e._dirty&&M(e)}function m(e,t){return e.normalizedNodeName===t||e.nodeName.toLowerCase()===t.toLowerCase()}function v(e){var t=l({},e.attributes);t.children=e.children;var n=e.nodeName.defaultProps;if(void 0!==n)for(var i in n)void 0===t[i]&&(t[i]=n[i]);return t}function g(e){var t=e.parentNode;t&&t.removeChild(e)}function y(e,t,n,i,r){if("className"===t&&(t="class"),"key"===t);else if("ref"===t)n&&n(null),i&&i(e);else if("class"!==t||r)if("style"===t){if(i&&"string"!=typeof i&&"string"!=typeof n||(e.style.cssText=i||""),i&&"object"==typeof i){if("string"!=typeof n)for(var s in n)s in i||(e.style[s]="");for(var s in i)e.style[s]="number"==typeof i[s]&&!1===d.test(s)?i[s]+"px":i[s]}}else if("dangerouslySetInnerHTML"===t)i&&(e.innerHTML=i.__html||"");else if("o"==t[0]&&"n"==t[1]){var o=t!==(t=t.replace(/Capture$/,""));t=t.toLowerCase().substring(2),i?n||e.addEventListener(t,b,o):e.removeEventListener(t,b,o),(e._listeners||(e._listeners={}))[t]=i}else if("list"!==t&&"type"!==t&&!r&&t in e){try{e[t]=null==i?"":i}catch(e){}null!=i&&!1!==i||"spellcheck"==t||e.removeAttribute(t)}else{var a=r&&t!==(t=t.replace(/^xlink:?/,""));null==i||!1===i?a?e.removeAttributeNS("http://www.w3.org/1999/xlink",t.toLowerCase()):e.removeAttribute(t):"function"!=typeof i&&(a?e.setAttributeNS("http://www.w3.org/1999/xlink",t.toLowerCase(),i):e.setAttribute(t,i))}else e.className=i||""}function b(e){return this._listeners[e.type](r.event&&r.event(e)||e)}var w=[],_=0,S=!1,E=!1;function k(){for(var e;e=w.pop();)r.afterMount&&r.afterMount(e),e.componentDidMount&&e.componentDidMount()}function x(e,t,n,i,r){var s=e,o=S;if(null!=t&&"boolean"!=typeof t||(t=""),"string"==typeof t||"number"==typeof t)return e&&void 0!==e.splitText&&e.parentNode&&(!e._component||r)?e.nodeValue!=t&&(e.nodeValue=t):(s=document.createTextNode(t),e&&(e.parentNode&&e.parentNode.replaceChild(s,e),C(e,!0))),s.__preactattr_=!0,s;var a=t.nodeName;if("function"==typeof a)return function(e,t,n,i){for(var r=e&&e._component,s=r,o=e,a=r&&e._componentConstructor===t.nodeName,l=a,c=v(t);r&&!l&&(r=r._parentComponent);)l=r.constructor===t.nodeName;return r&&l&&(!i||r._component)?(D(r,c,3,n,i),e=r.base):(s&&!a&&(P(s),e=o=null),r=O(t.nodeName,c,n),e&&!r.nextBase&&(r.nextBase=e,o=null),D(r,c,1,n,i),e=r.base,o&&e!==o&&(o._component=null,C(o,!1))),e}(e,t,n,i);if(S="svg"===a||"foreignObject"!==a&&S,a=String(a),(!e||!m(e,a))&&(s=function(e,t){var n=t?document.createElementNS("http://www.w3.org/2000/svg",e):document.createElement(e);return n.normalizedNodeName=e,n}(a,S),e)){for(;e.firstChild;)s.appendChild(e.firstChild);e.parentNode&&e.parentNode.replaceChild(s,e),C(e,!0)}var l=s.firstChild,c=s.__preactattr_,u=t.children;if(null==c){c=s.__preactattr_={};for(var d=s.attributes,p=d.length;p--;)c[d[p].name]=d[p].value}return!E&&u&&1===u.length&&"string"==typeof u[0]&&null!=l&&void 0!==l.splitText&&null==l.nextSibling?l.nodeValue!=u[0]&&(l.nodeValue=u[0]):(u&&u.length||null!=l)&&function(e,t,n,i,r){var s,o,a,l,c,u,d,p,h=e.childNodes,f=[],v={},y=0,b=0,w=h.length,_=0,S=t?t.length:0;if(0!==w)for(var E=0;E<w;E++){var k=h[E],T=k.__preactattr_;null!=(A=S&&T?k._component?k._component.__key:T.key:null)?(y++,v[A]=k):(T||(void 0!==k.splitText?!r||k.nodeValue.trim():r))&&(f[_++]=k)}if(0!==S)for(E=0;E<S;E++){var A;if(c=null,null!=(A=(l=t[E]).key))y&&void 0!==v[A]&&(c=v[A],v[A]=void 0,y--);else if(b<_)for(s=b;s<_;s++)if(void 0!==f[s]&&(u=o=f[s],p=r,"string"==typeof(d=l)||"number"==typeof d?void 0!==u.splitText:"string"==typeof d.nodeName?!u._componentConstructor&&m(u,d.nodeName):p||u._componentConstructor===d.nodeName)){c=o,f[s]=void 0,s===_-1&&_--,s===b&&b++;break}c=x(c,l,n,i),a=h[E],c&&c!==e&&c!==a&&(null==a?e.appendChild(c):c===a.nextSibling?g(a):e.insertBefore(c,a))}if(y)for(var E in v)void 0!==v[E]&&C(v[E],!1);for(;b<=_;)void 0!==(c=f[_--])&&C(c,!1)}(s,u,n,i,E||null!=c.dangerouslySetInnerHTML),function(e,t,n){var i;for(i in n)t&&null!=t[i]||null==n[i]||y(e,i,n[i],n[i]=void 0,S);for(i in t)"children"===i||"innerHTML"===i||i in n&&t[i]===("value"===i||"checked"===i?e[i]:n[i])||y(e,i,n[i],n[i]=t[i],S)}(s,t.attributes,c),S=o,s}function C(e,t){var n=e._component;n?P(n):(null!=e.__preactattr_&&e.__preactattr_.ref&&e.__preactattr_.ref(null),!1!==t&&null!=e.__preactattr_||g(e),T(e))}function T(e){for(e=e.lastChild;e;){var t=e.previousSibling;C(e,!0),e=t}}var A=[];function O(e,t,n){var i,r=A.length;for(e.prototype&&e.prototype.render?(i=new e(t,n),I.call(i,t,n)):((i=new I(t,n)).constructor=e,i.render=L);r--;)if(A[r].constructor===e)return i.nextBase=A[r].nextBase,A.splice(r,1),i;return i}function L(e,t,n){return this.constructor(e,n)}function D(e,t,n,i,s){e._disable||(e._disable=!0,e.__ref=t.ref,e.__key=t.key,delete t.ref,delete t.key,void 0===e.constructor.getDerivedStateFromProps&&(!e.base||s?e.componentWillMount&&e.componentWillMount():e.componentWillReceiveProps&&e.componentWillReceiveProps(t,i)),i&&i!==e.context&&(e.prevContext||(e.prevContext=e.context),e.context=i),e.prevProps||(e.prevProps=e.props),e.props=t,e._disable=!1,0!==n&&(1!==n&&!1===r.syncComponentUpdates&&e.base?h(e):M(e,1,s)),e.__ref&&e.__ref(e))}function M(e,t,n,i){if(!e._disable){var s,o,a,c=e.props,u=e.state,d=e.context,p=e.prevProps||c,h=e.prevState||u,f=e.prevContext||d,m=e.base,g=e.nextBase,y=m||g,b=e._component,T=!1,A=f;if(e.constructor.getDerivedStateFromProps&&(u=l(l({},u),e.constructor.getDerivedStateFromProps(c,u)),e.state=u),m&&(e.props=p,e.state=h,e.context=f,2!==t&&e.shouldComponentUpdate&&!1===e.shouldComponentUpdate(c,u,d)?T=!0:e.componentWillUpdate&&e.componentWillUpdate(c,u,d),e.props=c,e.state=u,e.context=d),e.prevProps=e.prevState=e.prevContext=e.nextBase=null,e._dirty=!1,!T){s=e.render(c,u,d),e.getChildContext&&(d=l(l({},d),e.getChildContext())),m&&e.getSnapshotBeforeUpdate&&(A=e.getSnapshotBeforeUpdate(p,h));var L,I,N=s&&s.nodeName;if("function"==typeof N){var R=v(s);(o=b)&&o.constructor===N&&R.key==o.__key?D(o,R,1,d,!1):(L=o,e._component=o=O(N,R,d),o.nextBase=o.nextBase||g,o._parentComponent=e,D(o,R,0,d,!1),M(o,1,n,!0)),I=o.base}else a=y,(L=b)&&(a=e._component=null),(y||1===t)&&(a&&(a._component=null),I=function(e,t,n,i,r,s){_++||(S=null!=r&&void 0!==r.ownerSVGElement,E=null!=e&&!("__preactattr_"in e));var o=x(e,t,n,i,s);return r&&o.parentNode!==r&&r.appendChild(o),--_||(E=!1),o}(a,s,d,n||!m,y&&y.parentNode,!0));if(y&&I!==y&&o!==b){var z=y.parentNode;z&&I!==z&&(z.replaceChild(I,y),L||(y._component=null,C(y,!1)))}if(L&&P(L),(e.base=I)&&!i){for(var B=e,H=e;H=H._parentComponent;)(B=H).base=I;I._component=B,I._componentConstructor=B.constructor}}for(!m||n?w.unshift(e):T||(e.componentDidUpdate&&e.componentDidUpdate(p,h,A),r.afterUpdate&&r.afterUpdate(e));e._renderCallbacks.length;)e._renderCallbacks.pop().call(e);_||i||k()}}function P(e){r.beforeUnmount&&r.beforeUnmount(e);var t=e.base;e._disable=!0,e.componentWillUnmount&&e.componentWillUnmount(),e.base=null;var n=e._component;n?P(n):t&&(t.__preactattr_&&t.__preactattr_.ref&&t.__preactattr_.ref(null),g(e.nextBase=t),A.push(e),T(t)),e.__ref&&e.__ref(null)}function I(e,t){this._dirty=!0,this.context=t,this.props=e,this.state=this.state||{},this._renderCallbacks=[]}function N(e,t,n){return function(e,t,n,i,r,s){_++||(S=null!=r&&void 0!==r.ownerSVGElement,E=null!=e&&!("__preactattr_"in e));var o=x(e,t,n,i,s);return r&&o.parentNode!==r&&r.appendChild(o),--_||(E=!1,k()),o}(n,e,{},!1,t,!1)}l(I.prototype,{setState:function(e,t){this.prevState||(this.prevState=this.state),this.state=l(l({},this.state),"function"==typeof e?e(this.state,this.props):e),t&&this._renderCallbacks.push(t),h(this)},forceUpdate:function(e){e&&this._renderCallbacks.push(e),M(this,2)},render:function(){}});var R={h:a,createElement:a,cloneElement:u,Component:I,render:N,rerender:f,options:r};t.default=R},function(e,t){var n=e.exports={version:"2.5.7"};"number"==typeof __e&&(__e=n)},function(e,t,n){var i=n(8),r=n(40);e.exports=n(3)?function(e,t,n){return i.f(e,t,r(1,n))}:function(e,t,n){return e[t]=n,e}},function(e,t,n){var i=n(9),r=n(38),s=n(39),o=Object.defineProperty;t.f=n(3)?Object.defineProperty:function(e,t,n){if(i(e),t=s(t,!0),i(n),r)try{return o(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(e[t]=n.value),e}},function(e,t,n){var i=n(2);e.exports=function(e){if(!i(e))throw TypeError(e+" is not an object!");return e}},function(e,t){var n=0,i=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++n+i).toString(36))}},function(e,t,n){var i=n(22);e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==i(e)?e.split(""):Object(e)}},function(e,t){e.exports=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e}},function(e,t,n){var i=n(4);e.exports=function(e,t){return!!e&&i(function(){t?e.call(null,function(){},1):e.call(null)})}},function(e,t,n){var i=n(0);i(i.S+i.F,"Object",{assign:n(41)})},function(e,t,n){var i=n(2),r=n(1).document,s=i(r)&&i(r.createElement);e.exports=function(e){return s?r.createElement(e):{}}},function(e,t,n){var i=n(1),r=n(7),s=n(17),o=n(10)("src"),a="toString",l=Function[a],c=(""+l).split(a);n(6).inspectSource=function(e){return l.call(e)},(e.exports=function(e,t,n,a){var l="function"==typeof n;l&&(s(n,"name")||r(n,"name",t)),e[t]!==n&&(l&&(s(n,o)||r(n,o,e[t]?""+e[t]:c.join(String(t)))),e===i?e[t]=n:a?e[t]?e[t]=n:r(e,t,n):(delete e[t],r(e,t,n)))})(Function.prototype,a,function(){return"function"==typeof this&&this[o]||l.call(this)})},function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},function(e,t,n){var i=n(19);e.exports=function(e,t,n){if(i(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,i){return e.call(t,n,i)};case 3:return function(n,i,r){return e.call(t,n,i,r)}}return function(){return e.apply(t,arguments)}}},function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},function(e,t,n){var i=n(42),r=n(28);e.exports=Object.keys||function(e){return i(e,r)}},function(e,t,n){var i=n(11),r=n(12);e.exports=function(e){return i(r(e))}},function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},function(e,t,n){var i=n(21),r=n(24),s=n(43);e.exports=function(e){return function(t,n,o){var a,l=i(t),c=r(l.length),u=s(o,c);if(e&&n!=n){for(;u<c;)if((a=l[u++])!=a)return!0}else for(;u<c;u++)if((e||u in l)&&l[u]===n)return e||u||0;return!e&&-1}}},function(e,t,n){var i=n(25),r=Math.min;e.exports=function(e){return 0<e?r(i(e),9007199254740991):0}},function(e,t){var n=Math.ceil,i=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(0<e?i:n)(e)}},function(e,t,n){var i=n(27)("keys"),r=n(10);e.exports=function(e){return i[e]||(i[e]=r(e))}},function(e,t,n){var i=n(6),r=n(1),s="__core-js_shared__",o=r[s]||(r[s]={});(e.exports=function(e,t){return o[e]||(o[e]=void 0!==t?t:{})})("versions",[]).push({version:i.version,mode:n(44)?"pure":"global",copyright:"© 2018 Denis Pushkarev (zloirock.ru)"})},function(e,t){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(e,t,n){var i=n(12);e.exports=function(e){return Object(i(e))}},function(e,t,n){var i=n(8).f,r=Function.prototype,s=/^\s*function ([^ (]*)/;"name"in r||n(3)&&i(r,"name",{configurable:!0,get:function(){try{return(""+this).match(s)[1]}catch(e){return""}}})},function(e,t,n){var i=n(0),r=n(32)(1);i(i.P+i.F*!n(13)([].map,!0),"Array",{map:function(e){return r(this,e,arguments[1])}})},function(e,t,n){var i=n(18),r=n(11),s=n(29),o=n(24),a=n(47);e.exports=function(e,t){var n=1==e,l=2==e,c=3==e,u=4==e,d=6==e,p=5==e||d,h=t||a;return function(t,a,f){for(var m,v,g=s(t),y=r(g),b=i(a,f,3),w=o(y.length),_=0,S=n?h(t,w):l?h(t,0):void 0;_<w;_++)if((p||_ in y)&&(v=b(m=y[_],_,g),e))if(n)S[_]=v;else if(v)switch(e){case 3:return!0;case 5:return m;case 6:return _;case 2:S.push(m)}else if(u)return!1;return d?-1:c||u?u:S}}},function(e,t,n){var i=n(22);e.exports=Array.isArray||function(e){return"Array"==i(e)}},function(e,t,n){var i=n(27)("wks"),r=n(10),s=n(1).Symbol,o="function"==typeof s;(e.exports=function(e){return i[e]||(i[e]=o&&s[e]||(o?s:r)("Symbol."+e))}).store=i},function(e,t,n){var i=n(0),r=n(23)(!1),s=[].indexOf,o=!!s&&1/[1].indexOf(1,-0)<0;i(i.P+i.F*(o||!n(13)(s)),"Array",{indexOf:function(e){return o?s.apply(this,arguments)||0:r(this,e,arguments[1])}})},function(e,t,n){var i=n(0);i(i.S,"Object",{create:n(52)})},function(e,t,n){t.__esModule=!0,t.default=void 0,n(14),n(30),n(31),n(35),n(49),n(50);var i=n(5),r=function(e){return e&&e.__esModule?e:{default:e}}(n(51));function s(e){if(!e.element)throw new Error("element is not defined");if(!e.id)throw new Error("id is not defined");if(!e.source)throw new Error("source is not defined");Array.isArray(e.source)&&(e.source=o(e.source)),(0,i.render)((0,i.createElement)(r.default,e),e.element)}var o=function(e){return function(t,n){n(e.filter(function(e){return-1!==e.toLowerCase().indexOf(t.toLowerCase())}))}};s.enhanceSelectElement=function(e){if(!e.selectElement)throw new Error("selectElement is not defined");if(!e.source){var t=[].filter.call(e.selectElement.options,function(t){return t.value||e.preserveNullOptions});e.source=t.map(function(e){return e.textContent||e.innerText})}if(e.onConfirm=e.onConfirm||function(t){var n=[].filter.call(e.selectElement.options,function(e){return(e.textContent||e.innerText)===t})[0];n&&(n.selected=!0)},e.selectElement.value||void 0===e.defaultValue){var n=e.selectElement.options.selectedIndex,i=0<=n?e.selectElement.options[n]:null;e.defaultValue=i?i.textContent||i.innerText:""}if(void 0===e.name&&(e.name=""),void 0===e.id&&(void 0===e.selectElement.id?e.id="":e.id=e.selectElement.id),void 0===e.autoselect&&(e.autoselect=!0),void 0===e.autocomplete){var r=e.selectElement.getAttribute("autocomplete");null!==r&&(e.autocomplete=r)}var o=document.createElement("div");e.selectElement.parentNode.insertBefore(o,e.selectElement),s(Object.assign({},e,{element:o})),e.selectElement.style.display="none",e.selectElement.id=e.selectElement.id+"-select"};var a=s;t.default=a},function(e,t,n){e.exports=!n(3)&&!n(4)(function(){return 7!=Object.defineProperty(n(15)("div"),"a",{get:function(){return 7}}).a})},function(e,t,n){var i=n(2);e.exports=function(e,t){if(!i(e))return e;var n,r;if(t&&"function"==typeof(n=e.toString)&&!i(r=n.call(e)))return r;if("function"==typeof(n=e.valueOf)&&!i(r=n.call(e)))return r;if(!t&&"function"==typeof(n=e.toString)&&!i(r=n.call(e)))return r;throw TypeError("Can't convert object to primitive value")}},function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e,t,n){var i=n(20),r=n(45),s=n(46),o=n(29),a=n(11),l=Object.assign;e.exports=!l||n(4)(function(){var e={},t={},n=Symbol(),i="abcdefghijklmnopqrst";return e[n]=7,i.split("").forEach(function(e){t[e]=e}),7!=l({},e)[n]||Object.keys(l({},t)).join("")!=i})?function(e,t){for(var n=o(e),l=arguments.length,c=1,u=r.f,d=s.f;c<l;)for(var p,h=a(arguments[c++]),f=u?i(h).concat(u(h)):i(h),m=f.length,v=0;v<m;)d.call(h,p=f[v++])&&(n[p]=h[p]);return n}:l},function(e,t,n){var i=n(17),r=n(21),s=n(23)(!1),o=n(26)("IE_PROTO");e.exports=function(e,t){var n,a=r(e),l=0,c=[];for(n in a)n!=o&&i(a,n)&&c.push(n);for(;t.length>l;)i(a,n=t[l++])&&(~s(c,n)||c.push(n));return c}},function(e,t,n){var i=n(25),r=Math.max,s=Math.min;e.exports=function(e,t){return(e=i(e))<0?r(e+t,0):s(e,t)}},function(e,t){e.exports=!1},function(e,t){t.f=Object.getOwnPropertySymbols},function(e,t){t.f={}.propertyIsEnumerable},function(e,t,n){var i=n(48);e.exports=function(e,t){return new(i(e))(t)}},function(e,t,n){var i=n(2),r=n(33),s=n(34)("species");e.exports=function(e){var t;return r(e)&&("function"!=typeof(t=e.constructor)||t!==Array&&!r(t.prototype)||(t=void 0),i(t)&&null===(t=t[s])&&(t=void 0)),void 0===t?Array:t}},function(e,t,n){var i=n(0),r=n(32)(2);i(i.P+i.F*!n(13)([].filter,!0),"Array",{filter:function(e){return r(this,e,arguments[1])}})},function(e,t,n){var i=n(0);i(i.S,"Array",{isArray:n(33)})},function(e,t,n){t.__esModule=!0,t.default=void 0,n(14),n(36),n(30),n(31),n(35),n(55),n(58);var i=n(5),r=o(n(60)),s=o(n(61));function o(e){return e&&e.__esModule?e:{default:e}}function a(){return(a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function l(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var c={13:"enter",27:"escape",32:"space",38:"up",40:"down"};function u(){return"undefined"!=typeof navigator&&!(!navigator.userAgent.match(/(iPod|iPhone|iPad)/g)||!navigator.userAgent.match(/AppleWebKit/g))}var d=function(e){function t(t){var n;return(n=e.call(this,t)||this).elementReferences={},n.state={focused:null,hovered:null,menuOpen:!1,options:t.defaultValue?[t.defaultValue]:[],query:t.defaultValue,validChoiceMade:!1,selected:null,ariaHint:!0,searchOnInteraction:!0},n.handleComponentBlur=n.handleComponentBlur.bind(l(l(n))),n.handleKeyDown=n.handleKeyDown.bind(l(l(n))),n.handleUpArrow=n.handleUpArrow.bind(l(l(n))),n.handleDownArrow=n.handleDownArrow.bind(l(l(n))),n.handleEnter=n.handleEnter.bind(l(l(n))),n.handlePrintableKey=n.handlePrintableKey.bind(l(l(n))),n.handleListMouseLeave=n.handleListMouseLeave.bind(l(l(n))),n.handleOptionBlur=n.handleOptionBlur.bind(l(l(n))),n.handleOptionClick=n.handleOptionClick.bind(l(l(n))),n.handleOptionFocus=n.handleOptionFocus.bind(l(l(n))),n.handleOptionMouseDown=n.handleOptionMouseDown.bind(l(l(n))),n.handleOptionMouseEnter=n.handleOptionMouseEnter.bind(l(l(n))),n.handleInputBlur=n.handleInputBlur.bind(l(l(n))),n.handleInputChange=n.handleInputChange.bind(l(l(n))),n.handleInputFocus=n.handleInputFocus.bind(l(l(n))),n.pollInputElement=n.pollInputElement.bind(l(l(n))),n.getDirectInputChanges=n.getDirectInputChanges.bind(l(l(n))),n}!function(e,t){e.prototype=Object.create(t.prototype),(e.prototype.constructor=e).__proto__=t}(t,e);var n=t.prototype;return n.isQueryAnOption=function(e,t){var n=this;return-1!==t.map(function(e){return n.templateInputValue(e).toLowerCase()}).indexOf(e.toLowerCase())},n.componentDidMount=function(){this.pollInputElement()},n.componentWillUnmount=function(){clearTimeout(this.$pollInput)},n.pollInputElement=function(){var e=this;this.getDirectInputChanges(),this.$pollInput=setTimeout(function(){e.pollInputElement()},100)},n.getDirectInputChanges=function(){var e=this.elementReferences[-1];e&&e.value!==this.state.query&&this.handleInputChange({target:{value:e.value}})},n.componentDidUpdate=function(e,t){var n=this.state.focused,i=null===n,r=t.focused!==n;r&&!i&&this.elementReferences[n].focus();var s=-1===n,o=r&&null===t.focused;if(s&&o){var a=this.elementReferences[n];a.setSelectionRange(0,a.value.length)}},n.hasAutoselect=function(){return this.props.autoselect},n.templateInputValue=function(e){var t=this.props.templates&&this.props.templates.inputValue;return t?t(e):e},n.templateSuggestion=function(e){var t=this.props.templates&&this.props.templates.suggestion;return t?t(e):e},n.handleComponentBlur=function(e){var t,n=this.state,i=n.options,r=n.query,s=n.selected;this.props.confirmOnBlur?(t=e.query||r,this.props.onConfirm(i[s])):t=r,this.setState({focused:null,menuOpen:e.menuOpen||!1,query:t,selected:null,validChoiceMade:this.isQueryAnOption(t,i)})},n.handleListMouseLeave=function(e){this.setState({hovered:null})},n.handleOptionBlur=function(e,t){var n=this.state,i=n.focused,r=n.menuOpen,s=n.options,o=n.selected,a=null===e.relatedTarget,l=e.relatedTarget===this.elementReferences[-1],c=i!==t&&-1!==i;if(!c&&a||!c&&!l){var d=r&&u()&&!this.hasAutoselect();this.handleComponentBlur({menuOpen:d,query:this.templateInputValue(s[o])})}},n.handleInputBlur=function(e){var t=this.state,n=t.focused,i=t.menuOpen,r=t.options,s=t.query,o=t.selected,a=0<=n;if(u()&&!e.relatedTarget&&!a&&this.hasAutoselect()){var l=this.templateInputValue(r[o]);this.handleComponentBlur({menuOpen:!1,query:l})}else if(!a){var c=i&&u(),d=u()?s:this.templateInputValue(r[o]);this.handleComponentBlur({menuOpen:c,query:d})}},n.handleInputChange=function(e){var t=this,n=this.props,i=n.minLength,r=n.source,s=n.showAllValues,o=this.state.searchOnInteraction,a=this.hasAutoselect(),l=e.target.value,c=0===l.length,u=o||this.state.query.length!==l.length,d=l.length>=i;this.setState({query:l,ariaHint:c,searchOnInteraction:!0}),s||!c&&u&&d?r(l,function(e){var n=0<e.length;t.setState(function(t){return{menuOpen:n&&null!==t.focused,options:e,selected:a&&n?0:-1,validChoiceMade:!1}})}):!c&&d||this.setState({menuOpen:!1,options:[]})},n.handleInputClick=function(e){this.handleInputChange(e)},n.handleInputFocus=function(e){var t=this.state,n=t.query,i=t.validChoiceMade,r=t.options,s=this.props.minLength,o=!i&&n.length>=s&&0<r.length;o?this.setState(function(e){var t=e.menuOpen;return{focused:-1,menuOpen:o||t,selected:-1}}):this.setState({focused:-1}),e&&this.handleInputChange(e)},n.handleOptionFocus=function(e){this.setState({focused:e,hovered:null,selected:e,searchOnInteraction:-1!==e})},n.handleOptionMouseEnter=function(e,t){u()||this.setState({hovered:t})},n.handleOptionClick=function(e,t){var n=this.state.options[t],i=this.templateInputValue(n);this.props.onConfirm(n),this.setState({focused:-1,hovered:null,menuOpen:!1,query:i,selected:-1,validChoiceMade:!0}),this.forceUpdate()},n.handleOptionMouseDown=function(e){e.preventDefault()},n.handleUpArrow=function(e){e.preventDefault();var t=this.state,n=t.menuOpen,i=t.selected;-1!==i&&n&&this.handleOptionFocus(i-1)},n.handleDownArrow=function(e){var t=this;if(e.preventDefault(),this.props.showAllValues&&!1===this.state.menuOpen)e.preventDefault(),this.props.source("",function(e){t.setState({menuOpen:!0,options:e,selected:0,focused:0,hovered:null})});else if(!0===this.state.menuOpen){var n=this.state,i=n.menuOpen,r=n.options,s=n.selected;s!==r.length-1&&i&&this.handleOptionFocus(s+1)}},n.handleSpace=function(e){var t=this;this.props.showAllValues&&!1===this.state.menuOpen&&""===this.state.query&&(e.preventDefault(),this.props.source("",function(e){t.setState({menuOpen:!0,options:e})})),-1!==this.state.focused&&(e.preventDefault(),this.handleOptionClick(e,this.state.focused))},n.handleEnter=function(e){this.state.menuOpen&&(e.preventDefault(),0<=this.state.selected&&this.handleOptionClick(e,this.state.selected))},n.handlePrintableKey=function(e){var t=this.elementReferences[-1];e.target===t||t.focus()},n.handleKeyDown=function(e){switch(c[e.keyCode]){case"up":this.handleUpArrow(e);break;case"down":this.handleDownArrow(e);break;case"space":this.handleSpace(e);break;case"enter":this.handleEnter(e);break;case"escape":this.handleComponentBlur({query:this.state.query});break;default:(function(e){return 47<e&&e<58||32===e||8===e||64<e&&e<91||95<e&&e<112||185<e&&e<193||218<e&&e<223})(e.keyCode)&&this.handlePrintableKey(e)}},n.render=function(){var e,t=this,n=this.props,s=n.cssNamespace,o=n.customInputClassName,l=n.wrapperClassName,c=n.optionClassName,d=n.menuClassName,p=n.displayMenu,h=n.enterKeyHint,f=n.autocomplete,m=n.id,v=n.minLength,g=n.name,y=n.placeholder,b=n.required,w=n.showAllValues,_=n.tNoResults,S=n.tStatusQueryTooShort,E=n.tStatusNoResults,k=n.tStatusSelectedOption,x=n.tStatusResults,C=n.tAssistiveHint,T=n.dropdownArrow,A=this.state,O=A.focused,L=A.hovered,D=A.menuOpen,M=A.options,P=A.query,I=A.selected,N=A.ariaHint,R=A.validChoiceMade,z=this.hasAutoselect(),B=-1===O,H=0===M.length,F=0!==P.length,V=P.length>=v,j=this.props.showNoOptionsFound&&B&&H&&F&&V,q=s+"__wrapper"+(l?" "+l:""),U=s+"__input",$=null!==O?" "+U+"--focused":"",W=this.props.showAllValues?" "+U+"--show-all-values":" "+U+"--default",G=s+"__dropdown-arrow-down",Y=-1!==O&&null!==O,X=s+"__menu",K=X+"--"+p,J=X+"--"+(D||j?"visible":"hidden"),Q=s+"__option",Z=s+"__hint",ee=this.templateInputValue(M[I]),te=ee&&0===ee.toLowerCase().indexOf(P.toLowerCase())&&z?P+ee.substr(P.length):"",ne=m+"__assistiveHint",ie=N?{"aria-describedby":ne}:null;return w&&"string"==typeof(e=T({className:G}))&&(e=(0,i.createElement)("div",{className:s+"__dropdown-arrow-down-wrapper",dangerouslySetInnerHTML:{__html:e}})),(0,i.createElement)("div",{className:q,onKeyDown:this.handleKeyDown},(0,i.createElement)(r.default,{id:m,length:M.length,queryLength:P.length,minQueryLength:v,selectedOption:this.templateInputValue(M[I]),selectedOptionIndex:I,validChoiceMade:R,isInFocus:null!==this.state.focused,tQueryTooShort:S,tNoResults:E,tSelectedOption:k,tResults:x}),te&&(0,i.createElement)("span",null,(0,i.createElement)("input",{className:Z,readonly:!0,tabIndex:"-1",value:te})),(0,i.createElement)("input",a({enterkeyhint:h||(u()&&this.hasAutoselect()?"done":""),"aria-expanded":D?"true":"false","aria-activedescendant":!!Y&&m+"__option--"+O,"aria-owns":m+"__listbox","aria-autocomplete":this.hasAutoselect()?"both":"list"},ie,{autoComplete:f,className:""+U+$+W+(o?" "+o:""),id:m,onClick:function(e){return t.handleInputClick(e)},onBlur:this.handleInputBlur},function(e){return{onInput:e}}(this.handleInputChange),{onFocus:this.handleInputFocus,name:g,placeholder:y,ref:function(e){t.elementReferences[-1]=e},type:"text",role:"combobox",required:b,value:P})),e,(0,i.createElement)("ul",{className:X+" "+K+" "+J+(d?" "+d:""),onMouseLeave:function(e){return t.handleListMouseLeave(e)},id:m+"__listbox",role:"listbox"},M.map(function(e,n){var r=(-1===O?I===n:O===n)&&null===L?" "+Q+"--focused":"",s=n%2?" "+Q+"--odd":"",o=u()?"<span id="+m+"__option-suffix--"+n+' style="border:0;clip:rect(0 0 0 0);height:1px;marginBottom:-1px;marginRight:-1px;overflow:hidden;padding:0;position:absolute;whiteSpace:nowrap;width:1px"> '+(n+1)+" of "+M.length+"</span>":"";return(0,i.createElement)("li",{"aria-selected":O===n?"true":"false",className:""+Q+r+s+(c?" "+c:""),dangerouslySetInnerHTML:{__html:t.templateSuggestion(e)+o},id:m+"__option--"+n,key:n,onBlur:function(e){return t.handleOptionBlur(e,n)},onClick:function(e){return t.handleOptionClick(e,n)},onMouseDown:t.handleOptionMouseDown,onMouseEnter:function(e){return t.handleOptionMouseEnter(e,n)},ref:function(e){t.elementReferences[n]=e},role:"option",tabIndex:"-1","aria-posinset":n+1,"aria-setsize":M.length})}),j&&(0,i.createElement)("li",{className:Q+(c?" "+c:"")+" "+Q+"--no-results"},_())),(0,i.createElement)("span",{id:ne,style:{display:"none"}},C()))},t}(i.Component);(t.default=d).defaultProps={autoselect:!1,cssNamespace:"autocomplete",wrapperClassName:"",customInputClassName:"",menuClassName:"",optionClassName:"",defaultValue:"",displayMenu:"inline",minLength:0,name:"input-autocomplete",autocomplete:"off",placeholder:"",onConfirm:function(){},confirmOnBlur:!0,showNoOptionsFound:!0,showAllValues:!1,required:!1,tNoResults:function(){return"No results found"},tAssistiveHint:function(){return"When autocomplete results are available use up and down arrows to review and enter to select. Touch device users, explore by touch or with swipe gestures."},dropdownArrow:s.default}},function(e,t,n){var i=n(9),r=n(53),s=n(28),o=n(26)("IE_PROTO"),a=function(){},l="prototype",c=function(){var e,t=n(15)("iframe"),i=s.length;for(t.style.display="none",n(54).appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write("<script>document.F=Object<\/script>"),e.close(),c=e.F;i--;)delete c[l][s[i]];return c()};e.exports=Object.create||function(e,t){var n;return null!==e?(a[l]=i(e),n=new a,a[l]=null,n[o]=e):n=c(),void 0===t?n:r(n,t)}},function(e,t,n){var i=n(8),r=n(9),s=n(20);e.exports=n(3)?Object.defineProperties:function(e,t){r(e);for(var n,o=s(t),a=o.length,l=0;l<a;)i.f(e,n=o[l++],t[n]);return e}},function(e,t,n){var i=n(1).document;e.exports=i&&i.documentElement},function(e,t,n){var i=n(0);i(i.P,"Function",{bind:n(56)})},function(e,t,n){var i=n(19),r=n(2),s=n(57),o=[].slice,a={};e.exports=Function.bind||function(e){var t=i(this),n=o.call(arguments,1),l=function(){var i=n.concat(o.call(arguments));return this instanceof l?function(e,t,n){if(!(t in a)){for(var i=[],r=0;r<t;r++)i[r]="a["+r+"]";a[t]=Function("F,a","return new F("+i.join(",")+")")}return a[t](e,n)}(t,i.length,i):s(t,i,e)};return r(t.prototype)&&(l.prototype=t.prototype),l}},function(e,t){e.exports=function(e,t,n){var i=void 0===n;switch(t.length){case 0:return i?e():e.call(n);case 1:return i?e(t[0]):e.call(n,t[0]);case 2:return i?e(t[0],t[1]):e.call(n,t[0],t[1]);case 3:return i?e(t[0],t[1],t[2]):e.call(n,t[0],t[1],t[2]);case 4:return i?e(t[0],t[1],t[2],t[3]):e.call(n,t[0],t[1],t[2],t[3])}return e.apply(n,t)}},function(e,t,n){n(59)("match",1,function(e,t,n){return[function(n){var i=e(this),r=null==n?void 0:n[t];return void 0!==r?r.call(n,i):new RegExp(n)[t](String(i))},n]})},function(e,t,n){var i=n(7),r=n(16),s=n(4),o=n(12),a=n(34);e.exports=function(e,t,n){var l=a(e),c=n(o,l,""[e]),u=c[0],d=c[1];s(function(){var t={};return t[l]=function(){return 7},7!=""[e](t)})&&(r(String.prototype,e,u),i(RegExp.prototype,l,2==t?function(e,t){return d.call(e,this,t)}:function(e){return d.call(e,this)}))}},function(e,t,n){t.__esModule=!0,t.default=void 0,n(36);var i=n(5),r=function(e){function t(){for(var t,n=arguments.length,i=new Array(n),r=0;r<n;r++)i[r]=arguments[r];return(t=e.call.apply(e,[this].concat(i))||this).state={bump:!1,debounced:!1},t}!function(e,t){e.prototype=Object.create(t.prototype),(e.prototype.constructor=e).__proto__=t}(t,e);var n=t.prototype;return n.componentWillMount=function(){var e=this;this.debounceStatusUpdate=function(e,t){var n;return function(){var i=this,r=arguments;clearTimeout(n),n=setTimeout(function(){n=null,e.apply(i,r)},t)}}(function(){if(!e.state.debounced){var t=!e.props.isInFocus||e.props.validChoiceMade;e.setState(function(e){return{bump:!e.bump,debounced:!0,silenced:t}})}},1400)},n.componentWillReceiveProps=function(e){e.queryLength,this.setState({debounced:!1})},n.render=function(){var e,t=this.props,n=t.id,r=t.length,s=t.queryLength,o=t.minQueryLength,a=t.selectedOption,l=t.selectedOptionIndex,c=t.tQueryTooShort,u=t.tNoResults,d=t.tSelectedOption,p=t.tResults,h=this.state,f=h.bump,m=h.debounced,v=h.silenced,g=s<o,y=0===r,b=a?d(a,r,l):"";return e=g?c(o):y?u():p(r,b),this.debounceStatusUpdate(),(0,i.createElement)("div",{style:{border:"0",clip:"rect(0 0 0 0)",height:"1px",marginBottom:"-1px",marginRight:"-1px",overflow:"hidden",padding:"0",position:"absolute",whiteSpace:"nowrap",width:"1px"}},(0,i.createElement)("div",{id:n+"__status--A",role:"status","aria-atomic":"true","aria-live":"polite"},!v&&m&&f?e:""),(0,i.createElement)("div",{id:n+"__status--B",role:"status","aria-atomic":"true","aria-live":"polite"},v||!m||f?"":e))},t}(i.Component);(t.default=r).defaultProps={tQueryTooShort:function(e){return"Type in "+e+" or more characters for results"},tNoResults:function(){return"No search results"},tSelectedOption:function(e,t,n){return e+" "+(n+1)+" of "+t+" is highlighted"},tResults:function(e,t){return e+" "+(1===e?"result":"results")+" "+(1===e?"is":"are")+" available. "+t}}},function(e,t,n){t.__esModule=!0,t.default=void 0;var i=n(5);t.default=function(e){var t=e.className;return(0,i.createElement)("svg",{version:"1.1",xmlns:"http://www.w3.org/2000/svg",className:t,focusable:"false"},(0,i.createElement)("g",{stroke:"none",fill:"none","fill-rule":"evenodd"},(0,i.createElement)("polygon",{fill:"#000000",points:"0 0 22 0 11 17"})))}}]).default),il.exports),sl=e({__proto__:null,default:Zt(rl)},[rl]);export{tl as moduleSelectorPairs};
|
|
2
2
|
//# sourceMappingURL=scripts.js.map
|