@orangesk/orange-design-system 3.4.0 → 3.5.0
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/Carousel/style.css +1 -1
- package/build/components/Carousel/style.css.map +1 -1
- package/build/components/Footer/style.css +1 -1
- package/build/components/Footer/style.css.map +1 -1
- package/build/components/Megamenu/style.css +1 -1
- package/build/components/Megamenu/style.css.map +1 -1
- package/build/components/Table/style.css +1 -1
- package/build/components/Table/style.css.map +1 -1
- package/build/components/Tooltip/style.css +1 -1
- package/build/components/Tooltip/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/index.d.ts +9 -3
- package/build/components/types/src/components/Carousel/Carousel.d.ts +3 -1
- package/build/components/types/src/components/Carousel/Carousel.static.d.ts +1 -0
- package/build/components/types/src/components/Carousel/constants.d.ts +1 -0
- package/build/components/types/src/components/Megamenu/Megamenu.d.ts +6 -2
- package/build/components/types/src/components/Megamenu/MyOrangeMobilePanel.d.ts +2 -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/footer.css +1 -1
- package/build/lib/footer.css.map +1 -1
- package/build/lib/megamenu.css +1 -1
- package/build/lib/megamenu.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/package.json +10 -10
- package/src/components/Carousel/Carousel.static.ts +25 -9
- package/src/components/Carousel/Carousel.tsx +5 -0
- package/src/components/Carousel/constants.ts +1 -0
- package/src/components/Carousel/styles/style.scss +2 -1
- package/src/components/Carousel/tests/Carousel.static.test.jsx +85 -0
- package/src/components/Carousel/tests/Carousel.unit.test.jsx +9 -0
- package/src/components/Footer/styles/style.scss +2 -0
- package/src/components/Megamenu/Megamenu.tsx +15 -3
- package/src/components/Megamenu/MyOrangeMobilePanel.tsx +24 -11
- package/src/components/Megamenu/styles/mixins.scss +6 -1
- package/src/components/Megamenu/tests/Megamenu.unit.test.jsx +33 -2
- package/src/components/Table/styles/config.scss +1 -0
- package/src/components/Table/styles/style.scss +6 -0
- package/src/components/Tooltip/styles/style.scss +5 -0
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import e,{useRef as t,useEffect as n,useCallback as i,useState as s,createContext as r,useContext as a,cloneElement as o,createElement as l,forwardRef as c,useId as d,useMemo as u}from"react";function h(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 p(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var m,f,g,v={exports:{}},b={},y={};function _(){return g||(g=1,"production"===process.env.NODE_ENV?v.exports=function(){if(m)return b;m=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function n(t,n,i){var s=null;if(void 0!==i&&(s=""+i),void 0!==n.key&&(s=""+n.key),"key"in n)for(var r in i={},n)"key"!==r&&(i[r]=n[r]);else i=n;return n=i.ref,{$$typeof:e,type:t,key:s,ref:void 0!==n?n:null,props:i}}return b.Fragment=t,b.jsx=n,b.jsxs=n,b}():v.exports=(f||(f=1,"production"!==process.env.NODE_ENV&&function(){function t(e){if(null==e)return null;if("function"==typeof e)return e.$$typeof===C?null:e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case m:return"Fragment";case g:return"Profiler";case f:return"StrictMode";case x:return"Suspense";case w:return"SuspenseList";case N:return"Activity"}if("object"==typeof e)switch(e.tag,e.$$typeof){case p:return"Portal";case b:return e.displayName||"Context";case v:return(e._context.displayName||"Context")+".Consumer";case _:var n=e.render;return(e=e.displayName)||(e=""!==(e=n.displayName||n.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case S:return null!==(n=e.displayName||null)?n:t(e.type)||"Memo";case E:n=e._payload,e=e._init;try{return t(e(n))}catch(e){}}return null}function n(e){return""+e}function i(e){try{n(e);var t=!1}catch(e){t=!0}if(t){var i=(t=console).error,s="function"==typeof Symbol&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||"Object";return i.call(t,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",s),n(e)}}function s(e){if(e===m)return"<>";if("object"==typeof e&&null!==e&&e.$$typeof===E)return"<...>";try{var n=t(e);return n?"<"+n+">":"<...>"}catch(e){return"<...>"}}function r(){return Error("react-stack-top-frame")}function a(){var e=t(this.type);return O[e]||(O[e]=!0),void 0!==(e=this.props.ref)?e:null}function o(e,n,s,r,o,c){var u,p=n.children;if(void 0!==p)if(r){if(j(p)){for(r=0;r<p.length;r++)l(p[r]);Object.freeze&&Object.freeze(p)}}else l(p);if(T.call(n,"key")){p=t(e);var m=Object.keys(n).filter(function(e){return"key"!==e});r=0<m.length?"{key: someKey, "+m.join(": ..., ")+": ...}":"{key: someKey}",M[p+r]||(m=0<m.length?"{"+m.join(": ..., ")+": ...}":"{}",M[p+r]=!0)}if(p=null,void 0!==s&&(i(s),p=""+s),function(e){if(T.call(e,"key")){var t=Object.getOwnPropertyDescriptor(e,"key").get;if(t&&t.isReactWarning)return!1}return void 0!==e.key}(n)&&(i(n.key),p=""+n.key),"key"in n)for(var f in s={},n)"key"!==f&&(s[f]=n[f]);else s=n;return p&&function(e){function t(){d||(d=!0)}t.isReactWarning=!0,Object.defineProperty(e,"key",{get:t,configurable:!0})}(s,"function"==typeof e&&(e.displayName||e.name)),function(e,t,n,i,s,r){var o=n.ref;return e={$$typeof:h,type:e,key:t,props:n,_owner:i},null!==(void 0!==o?o:null)?Object.defineProperty(e,"ref",{enumerable:!1,get:a}):Object.defineProperty(e,"ref",{enumerable:!1,value:null}),e._store={},Object.defineProperty(e._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(e,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(e,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:s}),Object.defineProperty(e,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:r}),Object.freeze&&(Object.freeze(e.props),Object.freeze(e)),e}(e,p,s,null===(u=k.A)?null:u.getOwner(),o,c)}function l(e){c(e)?e._store&&(e._store.validated=1):"object"==typeof e&&null!==e&&e.$$typeof===E&&("fulfilled"===e._payload.status?c(e._payload.value)&&e._payload.value._store&&(e._payload.value._store.validated=1):e._store&&(e._store.validated=1))}function c(e){return"object"==typeof e&&null!==e&&e.$$typeof===h}var d,u=e,h=Symbol.for("react.transitional.element"),p=Symbol.for("react.portal"),m=Symbol.for("react.fragment"),f=Symbol.for("react.strict_mode"),g=Symbol.for("react.profiler"),v=Symbol.for("react.consumer"),b=Symbol.for("react.context"),_=Symbol.for("react.forward_ref"),x=Symbol.for("react.suspense"),w=Symbol.for("react.suspense_list"),S=Symbol.for("react.memo"),E=Symbol.for("react.lazy"),N=Symbol.for("react.activity"),C=Symbol.for("react.client.reference"),k=u.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,T=Object.prototype.hasOwnProperty,j=Array.isArray,A=console.createTask?console.createTask:function(){return null},O={},L=(u={react_stack_bottom_frame:function(e){return e()}}).react_stack_bottom_frame.bind(u,r)(),D=A(s(r)),M={};y.Fragment=m,y.jsx=function(e,t,n){var i=1e4>k.recentlyCreatedOwnerStacks++;return o(e,t,n,!1,i?Error("react-stack-top-frame"):L,i?A(s(e)):D)},y.jsxs=function(e,t,n){var i=1e4>k.recentlyCreatedOwnerStacks++;return o(e,t,n,!0,i?Error("react-stack-top-frame"):L,i?A(s(e)):D)}}()),y)),v.exports}var x,w,S=_(),E={exports:{}},N=(x||(x=1,w=E,function(){var e={}.hasOwnProperty;function t(){for(var e="",t=0;t<arguments.length;t++){var s=arguments[t];s&&(e=i(e,n(s)))}return e}function n(n){if("string"==typeof n||"number"==typeof n)return n;if("object"!=typeof n)return"";if(Array.isArray(n))return t.apply(null,n);if(n.toString!==Object.prototype.toString&&!n.toString.toString().includes("[native code]"))return n.toString();var s="";for(var r in n)e.call(n,r)&&n[r]&&(s=i(s,r));return s}function i(e,t){return t?e?e+" "+t:e+t:e}w.exports?(t.default=t,w.exports=t):window.classNames=t}()),E.exports),C=p(N);let k=0;function T(e){return`id-${k+=1}`}const j=(e,s={})=>{const r=t(null),a=t(s),o=t(null);n(()=>{a.current=s??{}},[s]);const l=i(t=>{o.current&&o.current!==t&&r.current&&(r.current.destroy?.(),r.current=null),o.current=t,t&&(null===r.current?r.current=new e(t,a.current):r.current.update?.(a.current))},[e]);return n(()=>()=>{r.current&&(r.current.destroy?.(),r.current=null),o.current=null},[e]),[l,r]},A={current:0};function O(e){const[i,r]=s(e),a=t(e);return n(()=>{if(!e){A.current+=1;const e=`id-${A.current}`;a.current=e,r(e)}},[e]),i||a.current||e||"id-0"}const L={TAB:["Tab"],ESC:["Esc","Escape"],ARROWLEFT:["Left","ArrowLeft"],ARROWUP:["Up","ArrowUp"],ARROWRIGHT:["Right","ArrowRight"],ARROWDOWN:["Down","ArrowDown"]};class D{constructor(e,t={direction:"horizontal"}){this.elems=e,this.config=t,this.isActive=!1,this.onKeydown=this.onKeydown.bind(this)}init(){document.addEventListener("keydown",this.onKeydown),this.isActive=!0}destroy(){document.removeEventListener("keydown",this.onKeydown),this.isActive=!1}update(e){this.elems=e}onKeydown(e){const t=this.elems.indexOf(document.activeElement);(L.ARROWUP.includes(e.key)||L.ARROWDOWN.includes(e.key))&&"horizontal"===this.config.direction||(L.ARROWLEFT.includes(e.key)||L.ARROWRIGHT.includes(e.key))&&"vertical"===this.config.direction||((L.ARROWDOWN.includes(e.key)||L.ARROWRIGHT.includes(e.key))&&(e.preventDefault(),t>=0&&t<this.elems.length-1?this.elems[t+1].focus():this.elems[0].focus()),(L.ARROWUP.includes(e.key)||L.ARROWLEFT.includes(e.key))&&(e.preventDefault(),t>=1?this.elems[t-1].focus():this.elems[this.elems.length-1].focus()),L.TAB.includes(e.key)&&this.destroy())}}const M={buttonSelector:"[data-accordion-toggle]"};let $=class{constructor(e,t){return this.element=e,this.config={...M,...t},this.onFocus=this.onFocus.bind(this),this.onClick=this.onClick.bind(this),this.element.ODS_Accordion=this,this.init(),this}onFocus(e){this.rovingTabindex.isActive||this.rovingTabindex.init();const t=e.currentTarget;window.location.hash.substring(1)===t.getAttribute("id")&&"false"===t.getAttribute("aria-expanded")&&t.click()}toggleAccordionItem(e){const t=e.getAttribute("aria-controls"),n=t?this.element.querySelector(`#${t}`):null;if(!n)return;const i=!("true"===e.getAttribute("aria-expanded"));e.setAttribute("aria-expanded",String(i)),i?(n.removeAttribute("hidden"),this.scrollTriggerIntoModalView(e)):n.setAttribute("hidden","")}scrollTriggerIntoModalView(e){const t=e.closest(".modal__dialog");if(!t)return;const n=()=>{const n=t.getBoundingClientRect(),i=e.getBoundingClientRect(),s=this.getStickyHeaderOffset(t),r=i.top-n.top+t.scrollTop-s-8;t.scrollTo({top:Math.max(0,r),behavior:"smooth"})};"function"!=typeof window.requestAnimationFrame?setTimeout(n,0):window.requestAnimationFrame(n)}getStickyHeaderOffset(e){const t=e.querySelector(".modal__header");if(!t)return 0;const n=e.getBoundingClientRect(),i=t.getBoundingClientRect();return Math.max(0,i.bottom-n.top)}init(){this.buttons=Array.from(this.element.querySelectorAll(this.config.buttonSelector)),this.rovingTabindex?this.rovingTabindex.update(this.buttons):this.rovingTabindex=new D(this.buttons,{direction:"vertical"}),this.buttons.forEach(e=>{e.addEventListener("focus",this.onFocus),e.addEventListener("click",this.onClick)})}onClick(e){const t=e.currentTarget;this.toggleAccordionItem(t)}destroy(){this.rovingTabindex.destroy(),this.buttons.forEach(e=>{e.removeEventListener("focus",this.onFocus),e.removeEventListener("click",this.onClick)})}update(){this.destroy(),this.init()}static getInstance(e){return e&&e.ODS_Accordion?e.ODS_Accordion:null}};var P=r(null);const I="accordion",R=({className:e,children:t,headingLevel:n=3,size:i,isEnclosed:s,noTopBorder:r,...a})=>{const[o]=j($),l=C(I,{[`${I}--${i}`]:i,[`${I}--enclosed`]:s,[`${I}--no-top-border`]:r},e);return S.jsx(P.Provider,{value:n,children:S.jsx("ul",{className:l,ref:o,"data-accordion":"true",...a,children:t})})};R.displayName="Accordion";const z=e.createContext("/sprite.svg"),F=({children:e,value:t="/sprite.svg",...n})=>S.jsx(z.Provider,{value:t,...n,children:e}),H="icon",B=({className:e,alt:t,color:n,name:i,size:s,spritePath:r="/sprite.svg",type:o="icon",...l})=>{const c=a(z),d="pictogram"===o,u=C(H,{[`${H}--${s}`]:s,[`${H}--${n}`]:n,[`${H}--pictogram`]:d},e);if(d){const e="/sprite.svg"!==r||void 0===c?r:c;return S.jsxs("svg",{className:u,"aria-hidden":void 0!==t?void 0:"true",role:void 0!==t?"img":void 0,...l,children:[void 0!==t&&t.length>0&&S.jsx("title",{children:t}),S.jsx("use",{className:`${H}__use ${H}__use--light`,xlinkHref:`${e}#${i}`}),S.jsx("use",{className:`${H}__use ${H}__use--dark`,xlinkHref:`${e}#${i}--dark`})]})}return S.jsxs("svg",{className:u,"aria-hidden":void 0!==t?void 0:"true",role:void 0!==t?"img":void 0,...l,children:[void 0!==t&&t.length>0&&S.jsx("title",{children:t}),S.jsx("use",{xlinkHref:"/sprite.svg"!==r||void 0===c?`${r}#${i}`:`${c}#${i}`})]})};B.displayName="Icon";const V=({name:e,...t})=>S.jsx(B,{name:e,type:"pictogram",...t});V.displayName="Pictogram";const q="accordion",W=({className:t,title:n,renderTitle:i,id:s,isActive:r,toggleAttribute:a="data-accordion-toggle",...o})=>{const l=`h${e.useContext(P)||3}`,c={type:"button","aria-expanded":r,className:`${q}__button`,"aria-controls":`${s}-section`,id:s,[a]:!0,...o};return S.jsx(l,{className:C(`${q}__header`,t),children:S.jsxs("button",{...c,children:[i?i(n):S.jsx("span",{className:"accordion__title",children:n}),S.jsx(B,{className:`${q}__icon`,name:"chevron-down",size:"medium"})]})})};W.displayName="AccordionHeader";const U=({id:e,isActive:t,title:n,renderTitle:i,renderHeader:s,children:r,className:a,...o})=>{const l=C("accordion__item",a),c=O(e);return S.jsxs("li",{className:l,children:[s?s(n,c,t||!1):S.jsx(W,{id:c,isActive:t,title:n,renderTitle:i,...o}),S.jsx("div",{id:`${c}-section`,role:"region","aria-labelledby":c,className:C("accordion__body",{"is-active":t}),...t?{}:{hidden:!0},children:r})]})};U.displayName="AccordionItem";const G=({condition:e,wrapper:t,children:n})=>e?o(t,void 0,n):n;G.displayName="ConditionalWrapper";const Y="buttons",X=({isStackedOnXs:e,children:t,className:n,...i})=>S.jsx("div",{className:C(Y,{[`${Y}--stack-on-xs`]:e},n),...i,children:t});X.displayName="Buttons";const K={warning:"warning-important",info:"info",danger:"error-severe",success:"checked"},Z="alert",J=({className:t,type:n="info",title:i,renderTitle:s,description:r,headingLevel:a=3,actionButtons:o,isFullWidth:l,onClose:c,...d})=>{const u=`h${a}`,h=C(Z,{[`${Z}--${n}`]:n,[`${Z}--full-width`]:l},t),p=s&&s({className:t,type:n,title:i,renderTitle:s,description:r,headingLevel:a,actionButtons:o,isFullWidth:l,onClose:c,...d})||i&&e.createElement(u,{className:`${Z}__title`},i);return S.jsxs("div",{className:h,...d,children:[S.jsx("div",{className:`${Z}__icon`,children:S.jsx(B,{name:K[n],color:n,size:"medium"})}),S.jsxs("div",{className:`${Z}__content`,children:[p,r&&S.jsx(G,{condition:"string"==typeof r,wrapper:S.jsx("p",{}),children:r}),o&&S.jsx(G,{condition:e.Children.count(o)>1,wrapper:S.jsx(X,{}),children:e.Children.map(o,e=>e)})]}),c&&S.jsx("div",{className:`${Z}__close`,children:S.jsx("button",{onClick:c,children:S.jsx(B,{name:"close",size:"medium"})})})]})};J.displayName="Alert";const Q=({className:t,children:n,isUnderline:i,isNormal:s,noAccent:r,tag:a="a",href:o,...l})=>{const c=C("link",{underline:i,normal:s,"no-accent":r},t);return e.createElement(a,{href:o,className:c,...l},n)};Q.displayName="Link";let ee=class e{constructor(e){return this.isAutoScrolling=!1,this.isPointerDown=!1,this.isDraggingNav=!1,this.suppressClick=!1,this.dragStartX=0,this.dragStartScrollLeft=0,this.scrollTimeout=null,this.scrollEndFallbackTimeout=null,this.navLinks=null,this.sections=[],this.lastActiveIndex=0,this.autoScrollTargetId=null,this.autoScrollCorrectionCount=0,this.lastStickyOffset=0,this.modalClassObserver=null,this.isForcedFixed=!1,this.wasStickyFloating=!1,this.forcedFixedTop=0,this.forcedFixedLeft=0,this.fixedFlowPlaceholder=null,this.originalInlineStyles=null,this.element=e,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.mouseDownHandler=this.handleMouseDown.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.modalStateHandler=this.handleModalStateChange.bind(this),this.element.ODS_AnchorNavigation=this,this.init(),this}static getInstance(e){return e&&e.ODS_AnchorNavigation?e.ODS_AnchorNavigation:null}findMegamenuElement(){return document.querySelector("[data-megamenu]")}getMegamenuOffsetHeight(){return this.megamenuElement?.offsetHeight||0}updateStickyPosition(){if(this.isForcedFixed)return;if(!this.megamenuElement)return;const t=this.getMegamenuOffsetHeight(),n=t!==this.lastStickyOffset;if(this.lastStickyOffset=t,this.element.style.top=`${t}px`,this.updateStickyFloatingState(),!n||!this.isAutoScrolling||!this.autoScrollTargetId||this.autoScrollCorrectionCount>=e.MAX_SCROLL_CORRECTIONS)return;const i=document.getElementById(this.autoScrollTargetId);i&&(this.autoScrollCorrectionCount+=1,this.scrollToSection(i,"smooth"))}setupMegamenuObserver(){if(this.megamenuElement=this.findMegamenuElement(),!this.megamenuElement)return this.lastStickyOffset=0,void(this.element.style.top="0px");this.updateStickyPosition(),window.addEventListener("scroll",this.scrollHandler,{passive:!0}),this.resizeObserver=new ResizeObserver(this.updateStickyPosition.bind(this)),this.resizeObserver.observe(this.megamenuElement)}setupScrollSpy(){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(e=>e.getAttribute("href")).filter(e=>e?.includes("#")).map(e=>document.getElementById(e.split("#")[1])).filter(Boolean),this.teardownScrollSpyListeners(),this.element.addEventListener("click",this.anchorClickHandler),this.element.addEventListener("mousedown",this.mouseDownHandler),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(),this.alignInitialHashIfNeeded()}teardownScrollSpyListeners(){this.element.removeEventListener("click",this.anchorClickHandler),this.element.removeEventListener("mousedown",this.mouseDownHandler),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)}handleMouseDown(e){if(0!==e.button)return;const t=e.target;t&&this.element.contains(t)&&(t.closest("a, button, input, select, textarea, label, [role='button'], [contenteditable='true']")||e.preventDefault())}handleAnchorClick(e){if(this.suppressClick)return e.preventDefault(),e.stopPropagation(),void(this.suppressClick=!1);const t=e.target,n=t?.closest(".anchor-navigation__item");if(!n||!this.element.contains(n))return;e.preventDefault();const i=n.getAttribute("href");if(!i||!i.includes("#"))return;const s=i.split("#")[1],r=document.getElementById(s);if(!r)return;this.startAutoScroll(s),n.blur(),this.scrollToSection(r,"smooth");const a=`${window.location.pathname}${window.location.search}#${s}`;window.history.pushState(null,"",a),this.initScrollSpy(s)}getHashSectionId(){const e=window.location.hash;if(!e||e.length<=1)return null;let t=e.slice(1);try{t=decodeURIComponent(t)}catch{}return t||null}startAutoScroll(e){this.isAutoScrolling=!0,this.autoScrollTargetId=e,this.autoScrollCorrectionCount=0}resetAutoScrollState(){this.isAutoScrolling=!1,this.autoScrollTargetId=null,this.autoScrollCorrectionCount=0}tryCorrectAutoScrollAlignment(){if(!this.autoScrollTargetId)return!0;const t=document.getElementById(this.autoScrollTargetId);if(!t)return!0;const n=this.getTargetTop(t);if(Math.abs(window.scrollY-n)<=e.SCROLL_ALIGNMENT_TOLERANCE)return!0;if(this.autoScrollCorrectionCount>=e.MAX_SCROLL_CORRECTIONS)return!0;this.autoScrollCorrectionCount+=1;const i=1===this.autoScrollCorrectionCount?"smooth":"auto";return this.scrollToSection(t,i),!1}getTotalStickyOffset(){return(this.megamenuElement?this.megamenuElement.offsetHeight:0)+this.element.offsetHeight}getConfiguredScrollPaddingTop(){const e=window.getComputedStyle(document.documentElement).scrollPaddingTop,t=Number.parseFloat(e);return Number.isFinite(t)&&t>0?t:0}getEffectiveScrollOffset(){const e=this.getConfiguredScrollPaddingTop();return e>0?e:this.getTotalStickyOffset()}getTargetTop(e){const t=e.getBoundingClientRect().top+window.scrollY-this.getEffectiveScrollOffset();return Math.max(0,t)}scrollToSection(e,t){window.scrollTo({top:this.getTargetTop(e),behavior:t})}alignInitialHashIfNeeded(){const e=this.getHashSectionId();if(!e)return;const t=document.getElementById(e);t&&(this.startAutoScroll(e),requestAnimationFrame(()=>{this.scrollToSection(t,"auto"),requestAnimationFrame(()=>{this.handleScrollEnd()})}))}initScrollSpy(t=null){if(!this.navLinks||!this.sections.length)return;let n,i=-1;if(this.navLinks.forEach(e=>e.classList.remove("is-active")),t)n=document.getElementById(t)||void 0,n&&(i=this.sections.findIndex(e=>e.id===t));else{const t=this.getEffectiveScrollOffset(),s=window.scrollY+t+e.SCROLLSPY_CENTER_BUFFER;for(let e=0;e<this.sections.length;e++){const t=this.sections[e],{top:r,height:a}=t.getBoundingClientRect(),o=r+window.scrollY;if(s>=o&&s<o+a){n=t,i=e;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){const e=n.getAttribute("id");let i=this.element.querySelector(`.anchor-navigation__item[href="#${e}"]`);if(i||(i=this.element.querySelector(`.anchor-navigation__item[href="${this.currentPath}#${e}"]`)),i||(i=Array.from(this.navLinks).find(t=>{const n=t.getAttribute("href");return n&&n.endsWith(`#${e}`)})),i){i.classList.add("is-active");const e=this.element.querySelector(".anchor-navigation__content-left");e&&this.scrollActiveLinkIntoView(e,i,Boolean(t))}}}scrollActiveLinkIntoView(t,n,i=!1){const s=Math.max(0,t.scrollWidth-t.clientWidth),r=t.getBoundingClientRect(),a=n.getBoundingClientRect(),o=a.left-r.left+t.scrollLeft+a.width/2-t.clientWidth/2,l=window.innerWidth<768?"auto":"smooth",c=Math.min(s,Math.max(0,o)),d=Math.abs(t.scrollLeft-c)<=e.SCROLL_ALIGNMENT_TOLERANCE;!i&&d||("function"!=typeof t.scrollTo?t.scrollLeft=c:t.scrollTo({left:c,behavior:l}))}setupDragScroll(){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())}teardownDragScroll(){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}updateDragState(){if(!this.contentLeftElement)return;const 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()}updateHorizontalOverflowState(){if(!this.contentLeftElement)return;const t=this.element.querySelector(".anchor-navigation__content");if(!t)return;const n=this.contentLeftElement.scrollWidth-this.contentLeftElement.clientWidth,i=n>e.SCROLL_EDGE_TOLERANCE,s=this.contentLeftElement.scrollLeft<=e.SCROLL_EDGE_TOLERANCE,r=this.contentLeftElement.scrollLeft>=n-e.SCROLL_EDGE_TOLERANCE;t.classList.toggle("has-left-overflow",i&&!s),t.classList.toggle("has-right-overflow",i&&!r)}handleDragStart(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))}handleDragMove(t){if(!this.isPointerDown||!this.contentLeftElement)return;const 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)}handleDragEnd(){if(!this.isPointerDown)return;this.isPointerDown=!1,window.removeEventListener("mousemove",this.dragMoveHandler),window.removeEventListener("mouseup",this.dragEndHandler),this.contentLeftElement&&this.contentLeftElement.classList.remove("is-dragging");const e=this.isDraggingNav;this.isDraggingNav=!1,e&&window.setTimeout(()=>{this.suppressClick=!1},0)}handleNativeDragStart(e){this.contentLeftElement?.classList.contains("is-draggable")&&e.preventDefault()}handleScrollEndFallback(){this.scrollEndFallbackTimeout&&clearTimeout(this.scrollEndFallbackTimeout),this.scrollEndFallbackTimeout=setTimeout(()=>{this.handleScrollEnd()},e.SCROLL_END_DEBOUNCE_MS)}handleResize(){if(this.isForcedFixed){const e=this.element.parentElement?.getBoundingClientRect(),t=this.getMegamenuOffsetHeight();e&&(this.forcedFixedLeft=Math.round(e.left),this.element.style.width=`${Math.round(e.width)}px`),t>0&&(this.forcedFixedTop=t),this.element.style.top=`${this.forcedFixedTop}px`,this.element.style.left=`${this.forcedFixedLeft}px`,this.fixedFlowPlaceholder&&(this.fixedFlowPlaceholder.style.height=`${this.element.offsetHeight}px`)}else this.updateStickyFloatingState();this.initScrollSpy(),this.updateDragState(),this.updateHorizontalOverflowState()}isAnyModalOpen(){return document.body.classList.contains(e.MODAL_OPEN_BODY_CLASS)}isCurrentlyStickyFloating(){if(!this.megamenuElement)return!1;const t=this.getMegamenuOffsetHeight();return this.element.getBoundingClientRect().top<=t+e.STICKY_FLOAT_TOLERANCE}updateStickyFloatingState(){this.isAnyModalOpen()||this.isForcedFixed||(this.wasStickyFloating=this.isCurrentlyStickyFloating())}ensureFixedFlowPlaceholder(){this.fixedFlowPlaceholder||(this.fixedFlowPlaceholder=document.createElement("div"),this.fixedFlowPlaceholder.setAttribute("aria-hidden","true"),this.fixedFlowPlaceholder.style.width="100%",this.fixedFlowPlaceholder.style.pointerEvents="none",this.fixedFlowPlaceholder.style.visibility="hidden",this.element.insertAdjacentElement("afterend",this.fixedFlowPlaceholder)),this.fixedFlowPlaceholder.style.height=`${this.element.offsetHeight}px`}removeFixedFlowPlaceholder(){this.fixedFlowPlaceholder&&(this.fixedFlowPlaceholder.remove(),this.fixedFlowPlaceholder=null)}applyFixedPosition(){if(this.isForcedFixed)return;const e=this.element.getBoundingClientRect(),t=this.element.parentElement?.getBoundingClientRect(),n=this.getMegamenuOffsetHeight();this.originalInlineStyles={position:this.element.style.position,top:this.element.style.top,left:this.element.style.left,right:this.element.style.right,width:this.element.style.width},this.forcedFixedTop=n>0?n:Math.max(0,Math.round(e.top)),this.forcedFixedLeft=Math.max(0,Math.round(t?.left??e.left));const i=Math.round(t?.width??e.width);this.element.style.position="fixed",this.element.style.top=`${this.forcedFixedTop}px`,this.element.style.left=`${this.forcedFixedLeft}px`,this.element.style.right="",this.element.style.width=`${i}px`,this.ensureFixedFlowPlaceholder(),this.isForcedFixed=!0}restoreStickyPosition(e=!0){if(!this.isForcedFixed)return;const t=this.originalInlineStyles;this.element.style.position=t?.position||"",this.element.style.top=t?.top||"",this.element.style.left=t?.left||"",this.element.style.right=t?.right||"",this.element.style.width=t?.width||"",this.resetFixedPositionState(),e&&(this.updateStickyPosition(),this.initScrollSpy())}handleModalStateChange(){this.isAnyModalOpen()?(this.isForcedFixed||this.wasStickyFloating)&&this.applyFixedPosition():(this.restoreStickyPosition(!1),this.updateStickyFloatingState())}setupModalObserver(){this.updateStickyFloatingState(),this.handleModalStateChange(),document.body&&"undefined"!=typeof MutationObserver&&(this.modalClassObserver=new MutationObserver(this.modalStateHandler),this.modalClassObserver.observe(document.body,{attributes:!0,attributeFilter:["class"]}))}teardownModalObserver(){this.modalClassObserver&&(this.modalClassObserver.disconnect(),this.modalClassObserver=null)}teardownMegamenuObserver(){window.removeEventListener("scroll",this.scrollHandler),this.resizeObserver&&(this.resizeObserver.disconnect(),this.resizeObserver=null)}clearAutoScrollTimers(){this.scrollTimeout&&(clearTimeout(this.scrollTimeout),this.scrollTimeout=null)}resetFixedPositionState(){this.originalInlineStyles=null,this.isForcedFixed=!1,this.wasStickyFloating=!1,this.forcedFixedTop=0,this.forcedFixedLeft=0,this.removeFixedFlowPlaceholder()}resetNavigationState(){this.megamenuElement=null,this.lastStickyOffset=0,this.navLinks=null,this.sections=[],this.lastActiveIndex=0,this.autoScrollTargetId=null,this.autoScrollCorrectionCount=0,this.resetFixedPositionState()}handleScrollSpy(){this.isAutoScrolling?(this.scrollTimeout&&clearTimeout(this.scrollTimeout),this.scrollTimeout=setTimeout(()=>{this.handleScrollEnd()},e.SCROLL_END_DEBOUNCE_MS)):this.initScrollSpy()}handleScrollEnd(){this.scrollTimeout&&(clearTimeout(this.scrollTimeout),this.scrollTimeout=null),this.tryCorrectAutoScrollAlignment()&&(this.resetAutoScrollState(),this.initScrollSpy())}init(){this.setupMegamenuObserver(),this.setupScrollSpy(),this.setupDragScroll(),this.setupModalObserver()}destroy(){this.clearAutoScrollTimers(),this.teardownMegamenuObserver(),this.teardownScrollSpyListeners(),this.teardownDragScroll(),this.teardownModalObserver(),this.restoreStickyPosition(!1),this.element.style.top="",this.resetNavigationState(),this.element.ODS_AnchorNavigation=null}update(){this.clearAutoScrollTimers(),this.teardownMegamenuObserver(),this.teardownScrollSpyListeners(),this.teardownDragScroll(),this.teardownModalObserver(),this.restoreStickyPosition(!1),this.resetNavigationState(),this.init()}};ee.MODAL_OPEN_BODY_CLASS="has-modal",ee.STICKY_FLOAT_TOLERANCE=3,ee.SCROLLSPY_CENTER_BUFFER=50,ee.TOP_SECTION_THRESHOLD=100,ee.DRAG_START_THRESHOLD=6,ee.SCROLL_END_DEBOUNCE_MS=150,ee.SCROLL_EDGE_TOLERANCE=1,ee.SCROLL_ALIGNMENT_TOLERANCE=1,ee.MAX_SCROLL_CORRECTIONS=2;const te="anchor-navigation",ne=({items:e,className:t,children:n,...i})=>{const s=C(te,t),[r]=j(ee);return S.jsx("nav",{className:s,ref:r,"data-anchor-navigation":!0,"aria-label":"Sekcie stránky",...i,children:S.jsxs("div",{className:`${te}__content`,children:[S.jsx("ul",{className:C("list-inline horizontal-scroll mb-none",`${te}__content-left`),children:e.map(e=>S.jsx("li",{children:S.jsx(Q,{href:e.href,className:C(`${te}__item`,{"is-active":e.isActive}),children:e.label})},e.href))}),n&&S.jsx("div",{className:`${te}__content-right`,children:n})]})})};ne.displayName="AnchorNavigation";const ie="avatar",se=({alt:e="",className:t,iconName:n,src:i,...s})=>{const r=Boolean(n),a=C(ie,t);return S.jsxs("div",{className:a,...s,children:[r&&S.jsx("span",{className:`${ie}__icon`,"aria-hidden":"true",children:S.jsx(B,{name:n,size:"small"})}),S.jsx("img",{className:`${ie}__image`,src:i,alt:e})]})};se.displayName="Avatar";const re="bar",ae=e.forwardRef((e,t)=>{const{align:n,canWrap:i=!0,isVertical:s,space:r,tag:a="div",className:o,children:l,...c}=e,d=C(re,{[`align-items-${n}`]:n,[`${re}--vertical`]:s,[`${re}--nowrap`]:!i,[`${re}--space-${r}`]:r},o);return S.jsx(a,{className:d,ref:t,...c,children:l})});ae.displayName="Bar";const oe=e.forwardRef((e,t)=>{const{className:n,tag:i="div",children:s,...r}=e,a=C("bar__break",n);return S.jsx(i,{className:a,ref:t,...r,children:s})});oe.displayName="BarBreak";const le="bar__item",ce=e.forwardRef((e,t)=>{const{className:n,tag:i="div",isFilling:s,canShrink:r,children:a,...o}=e,l=i,c=C(le,{[`${le}--fill`]:s,[`${le}--shrinkable`]:r},n);return S.jsx(l,{className:c,ref:t,...o,children:a})});ce.displayName="BarItem";const de=({className:t,children:n,...i})=>e.cloneElement(n,{..."object"==typeof n.props&&null!==n.props?n.props:{},...i,className:C(n.props&&n.props.className,t)}),ue=e.createContext({isIndicating:!1,isActive:!1,setIsActive:()=>{},setIsIndicating:()=>{},hasBorderOnHover:void 0}),he=e=>{const[t,n]=s(!1),[i,r]=s(!1);return S.jsx(ue.Provider,{value:{isIndicating:t,setIsIndicating:n,isActive:i,setIsActive:r,hasBorderOnHover:e.hasBorderOnHover},children:e.children})},pe=e=>{const{hasBorderOnHover:t,className:n,...i}=e;return S.jsx(he,{hasBorderOnHover:t,children:S.jsx(de,{...i,className:C("block-action",n,{"block-action--border-on-hover":t}),"data-block-action":!0})})};pe.displayName="BlockAction";const me=e=>{const{isActive:t,setIsActive:n,setIsIndicating:i}=a(ue);return S.jsx(de,{...e,className:"block-action__control",onMouseEnter:()=>i(!0),onMouseLeave:()=>i(!1),onFocus:()=>i(!0),onBlur:()=>i(!1),onClick:()=>n(!t)})};me.displayName="BlockActionControl";const fe=e=>{const{isActive:t,isIndicating:n}=a(ue);return S.jsx(de,{...e,className:C("block-action__indicator",e.className,{"is-indicating":n,"is-active":t})})};fe.displayName="BlockActionIndicator";const ge=e=>S.jsx(de,{...e,className:"block-action__override"});function ve(e,t="-"){return e?`${t}${e}`:""}function be(e,t,n){return Object.keys(t).map(i=>{switch(typeof t[i]){case"boolean":return`${e}${"xs"!==i?`--${i}`:"-"}${ve(n)}`;case"string":case"number":return`${e}${"xs"!==i?`--${i}`:"-"}${ve(t[i])}${ve(n)}`;default:return null}}).join(" ")}function ye(e,t,n){return["boolean"==typeof t?`${e}${ve(n,"--")}`:null,null!==t&&"object"==typeof t?be(e,t,n):null,{[`${e}--${t}${ve(n)}`]:"string"==typeof t||"number"==typeof t}]}ge.displayName="BlockActionOverride";var _e,xe={exports:{}},we=(_e||(_e=1,xe.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 s(e){return"number"==typeof e&&isFinite(e)}function r(e,n,i,r,a,o,l,c,d,u,h,p){var m,f,g,v,b,y=p,_="",x="";return o&&(p=o(p)),!!s(p)&&(!1!==e&&0===parseFloat(p.toFixed(e))&&(p=0),p<0&&(m=!0,p=Math.abs(p)),!1!==e&&(b=e,v=(v=p).toString().split("e"),p=(+((v=(v=Math.round(+(v[0]+"e"+(v[1]?+v[1]+b:b)))).toString().split("e"))[0]+"e"+(v[1]?+v[1]-b:-b))).toFixed(b)),-1!==(p=p.toString()).indexOf(".")?(g=(f=p.split("."))[0],i&&(_=i+f[1])):g=p,n&&(g=t(g).match(/.{1,3}/g),g=t(g.join(t(n)))),m&&c&&(x+=c),r&&(x+=r),m&&d&&(x+=d),x+=g,x+=_,a&&(x+=a),u&&(x=u(x,y)),x)}function a(e,t,i,r,a,o,l,c,d,u,h,p){var m,f="";return h&&(p=h(p)),!(!p||"string"!=typeof p)&&(c&&n(p,c)&&(p=p.replace(c,""),m=!0),r&&n(p,r)&&(p=p.replace(r,"")),d&&n(p,d)&&(p=p.replace(d,""),m=!0),a&&function(e,t){return e.slice(-1*t.length)===t}(p,a)&&(p=p.slice(0,-1*a.length)),t&&(p=p.split(t).join("")),i&&(p=p.replace(i,".")),m&&(f+="-"),""!==(f=(f+=p).replace(/[^0-9\.\-.]/g,""))&&(f=Number(f),l&&(f=l(f)),!!s(f)&&f))}function o(t,n,i){var s,r=[];for(s=0;s<e.length;s+=1)r.push(t[e[s]]);return r.push(i),n.apply("",r)}return function t(n){if(!(this instanceof t))return new t(n);"object"==typeof n&&(n=function(t){var n,s,r,a={};for(void 0===t.suffix&&(t.suffix=t.postfix),n=0;n<e.length;n+=1)if(void 0===(r=t[s=e[n]]))"negative"!==s||a.negativeBefore?"mark"===s&&"."!==a.thousand?a[s]=".":a[s]=!1:a[s]="-";else if("decimals"===s){if(!(r>=0&&r<8))throw new Error(s);a[s]=r}else if("encoder"===s||"decoder"===s||"edit"===s||"undo"===s){if("function"!=typeof r)throw new Error(s);a[s]=r}else{if("string"!=typeof r)throw new Error(s);a[s]=r}return i(a,"mark","thousand"),i(a,"prefix","negative"),i(a,"prefix","negativeBefore"),a}(n),this.to=function(e){return o(n,r,e)},this.from=function(e){return o(n,a,e)})}}()),xe.exports),Se=p(we);function Ee(e){return e.charAt(0).toUpperCase()+e.slice(1)}const Ne={decimals:2,mark:",",thousand:" ",suffix:" €"};function Ce(e,t){return Se({...Ne,...t,...e%1==0?{decimals:0}:{}}).to(e)}const ke="grid",Te=e.forwardRef(({className:e,hAlign:t,vAlign:n,tag:i="div",justifyHeight:s,rowGapSize:r,columnGapSize:a,...o},l)=>{const c=C(ke,{[`align-items-${n}`]:n,[`justify-content-${t}`]:t,[`${ke}--justify-height`]:s},...ye(`${ke}-column-gap`,a),...ye(`${ke}-row-gap`,r),e),d=i;return S.jsx(d,{className:c,ref:l,...o})});Te.displayName="Grid";const je="btn",Ae=e.forwardRef((e,t)=>{const{className:n,children:i,htmlType:s="button",href:r,isActive:a,isDisabled:o,size:l,isSquare:c,type:d,elemRef:u,...h}=e,p=C(je,{[`${je}--square`]:c,[`${je}--${l}`]:l,[`${je}--${d}`]:d,[`${je}--preserve-width`]:e.preserveWidth,"is-active":a},n);if(r){const e=h;return S.jsx("a",{href:r,className:p,"aria-disabled":o?"true":void 0,ref:u||t,...e,children:i})}{const e=h;return S.jsx("button",{type:s,className:p,disabled:!!o||void 0,"aria-disabled":o?"true":void 0,ref:u||t,...e,children:i})}});Ae.displayName="Button";const Oe="grid__col",Le=({className:e,align:t,tag:n="div",size:i,...s})=>{const r=ye(Oe,i),a=C(Oe,...r.filter(Boolean),{[`align-self-${t}`]:t},e),o=n;return S.jsx(o,{className:a,...s})};Le.displayName="GridCol";const De="body-banner",Me=({className:e,size:t,color:n="background-primary",image:i,children:s,buttonText:r,buttonClassName:a,...o})=>{const l=C(De,{[`${De}--${t}`]:t,[n]:"background-primary"!==n},e);return S.jsxs(Te,{className:l,...o,children:[S.jsxs(Le,{size:{xs:12,md:"large"===t?6:12},className:`${De}__content`,children:["large"!==t&&i&&S.jsx("div",{className:`${De}__image`,children:i}),S.jsxs("div",{className:`${De}__content-inner`,children:[S.jsx("div",{children:s}),S.jsx("div",{className:`${De}__button`,children:S.jsx(Ae,{size:"large",type:"fill",className:C("mb-none",a),children:r})})]})]}),"large"===t&&i&&S.jsx(Le,{size:{xs:12,md:6},className:`${De}__image`,children:i})]})},$e=({className:e,isCurrent:t,text:n,url:i,...s})=>{const r=C("osk-breadcrumbs__item",e);return t?S.jsx("li",{className:r,...t?{"aria-current":"page"}:{},...s,children:n}):i?S.jsx("li",{className:r,children:S.jsx("a",{href:i,className:"osk-breadcrumbs__link",...s,children:n})}):S.jsx("li",{className:r,...s,children:n})};$e.displayName="BreadcrumbItem";const Pe="osk-breadcrumbs",Ie=({className:e,label:t,items:n,...i})=>{const s=C(Pe,e),r=n.length-1;return S.jsx("nav",{"aria-label":t,className:s,...i,children:S.jsx("ol",{className:`${Pe}__container`,children:n.map((e,t)=>l($e,{...e,key:e.text,isCurrent:t===r}))})})};Ie.displayName="Breadcrumbs";const Re=e.forwardRef(({iconName:e,iconPosition:t="left",iconClassName:n,children:i,size:s,isSquare:r,...a},o)=>{const l="large"===s?"medium":s??"medium",c=({className:t,...i})=>S.jsx(B,{name:e,size:l,className:C(n,t),...i});return r?S.jsxs(Ae,{size:s,isSquare:!0,...a,ref:o,children:[S.jsx(c,{}),S.jsx("span",{className:"visually-hidden",children:i})]}):S.jsxs(Ae,{ref:o,size:s,...a,children:["left"===t&&S.jsx(c,{className:"btn__icon-left"}),i,"right"===t&&S.jsx(c,{className:"btn__icon-right"})]})});Re.displayName="IconButton";const ze=e=>S.jsx(Ae,{type:"primary",...e});ze.displayName="ButtonPrimary";const Fe=e=>S.jsx(Ae,{type:"fill",...e});Fe.displayName="ButtonFill";const He=e=>S.jsx(Ae,{type:"ghost",...e});He.displayName="ButtonGhost";const Be="card",Ve=e.forwardRef(({className:e,color:t="background-primary",noBorder:n,...i},s)=>{const r=C(Be,{[t]:"background-primary"!==t&&"background-contrast"!==t,[`${t} text-inverse`]:"background-contrast"===t,[`${Be}--no-border`]:n},e);return S.jsx("div",{className:r,ref:s,...i})});Ve.displayName="Card";const qe="card__product",We=e.forwardRef(({className:e,children:t,image:n,space:i,...s},r)=>{const a=C(`${qe}-header`,{[`${qe}-header--space-small`]:"small"===i},e),o=`${qe}-content`;return S.jsxs("div",{className:a,ref:r,...s,children:[S.jsx("div",{className:o,children:t}),n]})});We.displayName="CardProductHeader";const Ue="card__section",Ge=e.forwardRef(({className:e,color:t,isFilling:n,space:i,...s},r)=>{const a=C(Ue,{[String(t)]:t&&"background-primary"!==t&&"background-contrast"!==t,[`${t} text-inverse`]:"background-contrast"===t,[`${Ue}--fill`]:n,[`${Ue}--space-small`]:"small"===i,[`${Ue}--space-large`]:"large"===i},e);return S.jsx("div",{className:a,ref:r,...s})});Ge.displayName="CardSection";const Ye=e.forwardRef((e,t)=>{const{elemRef:n,className:i,icon:s,isDisabled:r,...a}=e,o=C("controls",i),l=a;return S.jsx("button",{type:"button",className:o,disabled:!!r||void 0,"aria-disabled":r?"true":void 0,ref:n||t,...l,children:S.jsx(B,{name:s})})});function Xe(e=""){return e.trim().split(" ").filter(e=>!!e.trim())}function Ke(e,t=0){return setTimeout(e,t)}function Ze(){return Date.now()}function Je(e){return"object"==typeof e&&null!==e&&e.constructor===Object&&"Object"===Object.prototype.toString.call(e).slice(8,-1)}function Qe(e){return"undefined"!=typeof HTMLElement&&e instanceof HTMLElement||!!e&&"object"==typeof e&&(1===e.nodeType||11===e.nodeType)}function et(e,...t){const n=Object(e);for(let e=0;e<t.length;e+=1){const i=t[e];if(null==i||Qe(i))continue;const s=i,r=Object.keys(Object(s)).filter(e=>"__proto__"!==e&&"constructor"!==e&&"prototype"!==e);for(const e of r){const t=Object.getOwnPropertyDescriptor(s,e);if(!t||!t.enumerable)continue;const i=s[e];Je(n[e])&&Je(i)?i.__swiper__?n[e]=i:et(n[e],i):!Je(n[e])&&Je(i)?(n[e]={},i.__swiper__?n[e]=i:et(n[e],i)):n[e]=i}}return n}function tt(e,t,n){e.style.setProperty(t,n)}function nt(e,t=""){const n=[...e.children];return e instanceof HTMLSlotElement&&n.push(...e.assignedElements()),t?n.filter(e=>e.matches(t)):n}function it(e,t=[]){const n=document.createElement(e);return n.classList.add(...Array.isArray(t)?t:Xe(t)),n}function st(e){const t=e.getBoundingClientRect();return{top:t.top+window.scrollY-(e.clientTop||0),left:t.left+window.scrollX-(e.clientLeft||0)}}function rt(e,t){return window.getComputedStyle(e,null).getPropertyValue(t)}function at(e){if(e&&e.parentNode)return[...e.parentNode.children].indexOf(e)}function ot(e,t){const n=[];let i=e.parentElement;for(;i;)t&&!i.matches(t)||n.push(i),i=i.parentElement;return n}function lt(e,t,n){{const n=window.getComputedStyle(e,null);return e["width"===t?"offsetWidth":"offsetHeight"]+parseFloat(n.getPropertyValue("width"===t?"margin-right":"margin-top"))+parseFloat(n.getPropertyValue("width"===t?"margin-left":"margin-bottom"))}}function ct(e){return(Array.isArray(e)?e:[e]).filter(e=>!!e)}function dt(e,t=""){const n=globalThis.trustedTypes;e.innerHTML=void 0!==n?n.createPolicy("html",{createHTML:e=>e}).createHTML(t):t}let ut,ht,pt;function mt(){return ut||(ut="undefined"==typeof window?{touch:!1}:{touch:"ontouchstart"in window||navigator.maxTouchPoints>0}),ut}function ft(e={}){return ht||(ht=function({userAgent:e}={}){if("undefined"==typeof window)return{ios:!1,android:!1};const t=mt(),n=navigator.platform,i=e||navigator.userAgent,s={ios:!1,android:!1},r=/(Android);?[\s/]+([\d.]+)?/.test(i),a=/(iPhone\sOS|iOS|iPod)/.test(i),o=/iPad/.test(i),l="MacIntel"===n&&t.touch&&navigator.maxTouchPoints>1,c=o||l;return r&&!("Win32"===n)&&(s.os="android",s.android=!0),(c||a)&&(s.os="ios",s.ios=!0),s}(e)),ht}function gt(){return pt||(pt=function(){if("undefined"==typeof window)return{isSafari:!1,isWebView:!1,need3dFix:!1};const e=ft(),t=navigator.userAgent,n=t.toLowerCase(),i=n.includes("safari")&&!n.includes("chrome")&&!n.includes("android"),s=/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(t);return{isSafari:i,isWebView:s,need3dFix:i||s&&e.ios}}()),pt}Ye.displayName="Controls";const vt=(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(()=>{if(n.shadowRoot){const t=n.shadowRoot.querySelector(`.${e.params.lazyPreloaderClass}`);t&&!t.lazyPreloaderManaged&&t.remove()}})),t&&!t.lazyPreloaderManaged&&t.remove()}},bt=(e,t)=>{if(!e.slides[t])return;const n=e.slides[t].querySelector('[loading="lazy"]');n&&n.removeAttribute("loading")},yt=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),s=e.activeIndex;if(e.params.grid&&(e.params.grid.rows??1)>1){const n=s,r=[n-t];return r.push(...Array.from({length:t}).map((e,t)=>n+i+t)),void e.slides.forEach((t,n)=>{void 0!==t.column&&r.includes(t.column)&&bt(e,n)})}const r=s+i-1;if(e.params.rewind||e.params.loop)for(let i=s-t;i<=r+t;i+=1){const t=(i%n+n)%n;(t<s||t>r)&&bt(e,t)}else for(let i=Math.max(s-t,0);i<=Math.min(r+t,n-1);i+=1)i!==s&&(i>r||i<s)&&bt(e,i)},_t=(e,t)=>!!(e.grid&&t.grid&&t.grid.rows>1);var xt={setBreakpoint:function(){const e=this,{realIndex:t,initialized:n,params:i,el:s}=e,r=i.breakpoints;if(!r||r&&0===Object.keys(r).length)return;const a="window"!==i.breakpointsBase&&i.breakpointsBase?"container":i.breakpointsBase,o=["window","container"].includes(i.breakpointsBase)||!i.breakpointsBase?e.el:document.querySelector(i.breakpointsBase),l=e.getBreakpoint(r,a,o);if(!l||e.currentBreakpoint===l)return;const c=(l in r?r[l]:void 0)||e.originalParams,d=_t(e,i),u=_t(e,c),h=e.params.grabCursor,p=c.grabCursor,m=i.enabled;d&&!u?(s.classList.remove(`${i.containerModifierClass}grid`,`${i.containerModifierClass}grid-column`),e.emitContainerClasses()):!d&&u&&(s.classList.add(`${i.containerModifierClass}grid`),(c.grid.fill&&"column"===c.grid.fill||!c.grid.fill&&"column"===i.grid.fill)&&s.classList.add(`${i.containerModifierClass}grid-column`),e.emitContainerClasses()),h&&!p?e.unsetGrabCursor():!h&&p&&e.setGrabCursor();const f=(e,t)=>e[t];["navigation","pagination","scrollbar"].forEach(t=>{const n=f(c,t);if(void 0===n)return;const s=f(i,t),r="object"==typeof s&&null!==s&&s.enabled,a="object"==typeof n&&null!==n&&n.enabled,o=e[t];r&&!a&&o?.disable?.(),!r&&a&&o?.enable?.()});const g=c.direction&&c.direction!==i.direction,v=i.loop&&(c.slidesPerView!==i.slidesPerView||g),b=i.loop;g&&n&&e.changeDirection(),et(e.params,c);const y=e.params.enabled,_=e.params.loop;Object.assign(e,{allowTouchMove:e.params.allowTouchMove,allowSlideNext:e.params.allowSlideNext,allowSlidePrev:e.params.allowSlidePrev}),m&&!y?e.disable():!m&&y&&e.enable(),e.currentBreakpoint=l,e.emit("_beforeBreakpoint",c),n&&(v?(e.loopDestroy(),e.loopCreate(t),e.updateSlides()):!b&&_?(e.loopCreate(t),e.updateSlides()):b&&!_&&e.loopDestroy()),e.emit("breakpoint",c)},getBreakpoint:function(e,t="window",n){if(!e||"container"===t&&!n)return;let i=!1;const s="window"===t?window.innerHeight:n.clientHeight,r=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}});r.sort((e,t)=>parseInt(String(e.value),10)-parseInt(String(t.value),10));for(let e=0;e<r.length;e+=1){const{point:s,value:a}=r[e];"window"===t?window.matchMedia(`(min-width: ${a}px)`).matches&&(i=s):a<=n.clientWidth&&(i=s)}return i||"max"}},wt={addClasses:function(){const e=this,{classNames:t,params:n,rtl:i,el:s,device:r}=e,a=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:r.android},{ios:r.ios},{"css-mode":n.cssMode},{centered:n.cssMode&&n.centeredSlides},{"watch-progress":n.watchSlidesProgress}],n.containerModifierClass);t.push(...a),s.classList.add(...t),e.emitContainerClasses()},removeClasses:function(){const{el:e,classNames:t}=this;e&&"string"!=typeof e&&(e.classList.remove(...t),this.emitContainerClasses())}};const St={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};var Et={on(e,t,n){const i=this;if(!i.eventsListeners||i.destroyed)return i;if("function"!=typeof t)return i;const s=n?"unshift":"push";return e.split(" ").forEach(e=>{i.eventsListeners[e]||(i.eventsListeners[e]=[]),i.eventsListeners[e][s](t)}),i},once(e,t,n){const i=this;if(!i.eventsListeners||i.destroyed)return i;if("function"!=typeof t)return i;const s=function(...n){i.off(e,s),s.__emitterProxy&&delete s.__emitterProxy,t.apply(i,n)};return s.__emitterProxy=t,i.on(e,s,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,s)=>{(i===t||i.__emitterProxy&&i.__emitterProxy===t)&&n.eventsListeners[e].splice(s,1)})}),n):n},emit(...e){const t=this;if(!t.eventsListeners||t.destroyed)return t;if(!t.eventsListeners)return t;let n,i,s;if("string"==typeof e[0]||Array.isArray(e[0]))n=e[0],i=e.slice(1,e.length),s=t;else{const r=e[0];n=r.events,i=r.data??[],s=r.context||t}return i.unshift(s),(Array.isArray(n)?n:n.split(" ")).forEach(e=>{t.eventsAnyListeners&&t.eventsAnyListeners.length&&t.eventsAnyListeners.forEach(t=>{t.apply(s,[e,...i])}),t.eventsListeners&&t.eventsListeners[e]&&t.eventsListeners[e].forEach(e=>{e.apply(s,i)})}),t}};function Nt(e){const t=this;t.destroyed||t.enabled&&(t.allowClick||(t.params.preventClicks&&e.preventDefault(),t.params.preventClicksPropagation&&t.animating&&(e.stopPropagation(),e.stopImmediatePropagation())))}function Ct(){const e=this;e.destroyed||e.documentTouchHandlerProceeded||(e.documentTouchHandlerProceeded=!0,e.params.touchReleaseOnEdges&&(e.el.style.touchAction="auto"))}function kt(e){const t=this;t.destroyed||(vt(t,e.target),t.params.cssMode||"auto"!==t.params.slidesPerView&&!t.params.autoHeight||t.update())}function Tt(){const e=this,{params:t,el:n}=e;if(n&&0===n.offsetWidth)return;t.breakpoints&&e.setBreakpoint();const{allowSlideNext:i,allowSlidePrev:s,snapGrid:r}=e,a=e.virtual&&e.params.virtual?.enabled;e.allowSlideNext=!0,e.allowSlidePrev=!0,e.updateSize(),e.updateSlides(),e.updateSlidesClasses();const o=a&&t.loop;if(!("auto"===t.slidesPerView||t.slidesPerView>1)||!e.isEnd||e.isBeginning||e.params.centeredSlides||o)e.params.loop&&!a?e.slideToLoop(e.realIndex,0,!1,!0):e.slideTo(e.activeIndex,0,!1,!0);else{const t=a?e.virtual.slides.length:e.slides.length;e.slideTo(t-1,0,!1,!0)}if(e.autoplay&&e.autoplay.running&&e.autoplay.paused){const t=e.autoplay;clearTimeout(t.resizeTimeout),t.resizeTimeout=setTimeout(()=>{e.autoplay&&e.autoplay.running&&e.autoplay.paused&&e.autoplay.resume()},500)}e.allowSlidePrev=s,e.allowSlideNext=i,e.params.watchOverflow&&r!==e.snapGrid&&e.checkOverflow()}function jt(){const e=this;if(e.destroyed)return;const{wrapperEl:t,rtlTranslate:n,enabled:i}=e;if(!i)return;let s;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 r=e.maxTranslate()-e.minTranslate();s=0===r?0:(e.translate-e.minTranslate())/r,s!==e.progress&&e.updateProgress(n?-e.translate:e.translate),e.emit("setTranslate",e.translate,!1)}function At(e){const t=this;if(t.destroyed)return;const n=t.touchEventsData;let i=e.originalEvent??e;if("touchend"===i.type||"touchcancel"===i.type){const e=[...i.changedTouches].find(e=>e.identifier===n.touchId);if(!e||e.identifier!==n.touchId)return}else{if(null!==n.touchId)return;if(i.pointerId!==n.pointerId)return}if(["pointercancel","pointerout","pointerleave","contextmenu"].includes(i.type)&&(!["pointercancel","contextmenu"].includes(i.type)||!t.browser.isSafari&&!t.browser.isWebView))return;n.pointerId=null,n.touchId=null;const{params:s,touches:r,rtlTranslate:a,slidesGrid:o,enabled:l}=t;if(!l)return;if(!s.simulateTouch&&"mouse"===i.pointerType)return;if(n.allowTouchCallbacks&&t.emit("touchEnd",i),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 c=Ze(),d=c-n.touchStartTime;if(t.allowClick){const e=i.path??(i.composedPath&&i.composedPath());t.updateClickedSlide(e&&e[0],e),t.emit("tap click",i),d<300&&c-n.lastClickTime<300&&t.emit("doubleTap doubleClick",i)}if(n.lastClickTime=Ze(),Ke(()=>{t.destroyed||(t.allowClick=!0)}),!n.isTouched||!n.isMoved||!t.swipeDirection||0===r.diff&&!n.loopSwapReset||n.currentTranslate===n.startTranslate&&!n.loopSwapReset)return n.isTouched=!1,n.isMoved=!1,void(n.startMoving=!1);let u;if(n.isTouched=!1,n.isMoved=!1,n.startMoving=!1,u=s.followFinger?a?t.translate:-t.translate:-(n.currentTranslate??0),s.cssMode)return;if(s.freeMode&&s.freeMode.enabled)return void t.freeMode.onTouchEnd({currentPos:u});const h=u>=-t.maxTranslate()&&!t.params.loop;let p=0,m=t.slidesSizesGrid[0];for(let e=0;e<o.length;e+=e<s.slidesPerGroupSkip?1:s.slidesPerGroup){const t=e<s.slidesPerGroupSkip-1?1:s.slidesPerGroup;void 0!==o[e+t]?(h||u>=o[e]&&u<o[e+t])&&(p=e,m=o[e+t]-o[e]):(h||u>=o[e])&&(p=e,m=o[o.length-1]-o[o.length-2])}let f=null,g=null;s.rewind&&(t.isBeginning?g=s.virtual?.enabled&&t.virtual?t.virtual.slides.length-1:t.slides.length-1:t.isEnd&&(f=0));const v=(u-o[p])/m,b=p<s.slidesPerGroupSkip-1?1:s.slidesPerGroup;if(d>s.longSwipesMs){if(!s.longSwipes)return void t.slideTo(t.activeIndex);"next"===t.swipeDirection&&(v>=s.longSwipesRatio?t.slideTo(s.rewind&&t.isEnd?f:p+b):t.slideTo(p)),"prev"===t.swipeDirection&&(v>1-s.longSwipesRatio?t.slideTo(p+b):null!==g&&v<0&&Math.abs(v)>s.longSwipesRatio?t.slideTo(g):t.slideTo(p))}else{if(!s.shortSwipes)return void t.slideTo(t.activeIndex);!t.navigation||i.target!==t.navigation.nextEl&&i.target!==t.navigation.prevEl?("next"===t.swipeDirection&&t.slideTo(null!==f?f:p+b),"prev"===t.swipeDirection&&t.slideTo(null!==g?g:p)):i.target===t.navigation.nextEl?t.slideTo(p+b):t.slideTo(p)}}function Ot(e){const t=this;if(t.destroyed)return;const n=t.touchEventsData,{params:i,touches:s,rtlTranslate:r,enabled:a}=t;if(!a)return;if(!i.simulateTouch&&"mouse"===e.pointerType)return;const o=e,l=o.originalEvent??o;if("pointermove"===l.type){if(null!==n.touchId)return;if(l.pointerId!==n.pointerId)return}let c;if("touchmove"===l.type){const e=[...l.changedTouches].find(e=>e.identifier===n.touchId);if(!e||e.identifier!==n.touchId)return;c=e}else c=l;if(!n.isTouched)return void(n.startMoving&&n.isScrolling&&t.emit("touchMoveOpposite",l));const d=c.pageX,u=c.pageY;if(l.preventedByNestedSwiper)return s.startX=d,void(s.startY=u);if(!t.allowTouchMove)return l.target.matches(n.focusableElements)||(t.allowClick=!1),void(n.isTouched&&(Object.assign(s,{startX:d,startY:u,currentX:d,currentY:u}),n.touchStartTime=Ze()));if(i.touchReleaseOnEdges&&!i.loop)if(t.isVertical()){if(u<s.startY&&t.translate<=t.maxTranslate()||u>s.startY&&t.translate>=t.minTranslate())return n.isTouched=!1,void(n.isMoved=!1)}else{if(r&&(d>s.startX&&-t.translate<=t.maxTranslate()||d<s.startX&&-t.translate>=t.minTranslate()))return;if(!r&&(d<s.startX&&t.translate<=t.maxTranslate()||d>s.startX&&t.translate>=t.minTranslate()))return}if(document.activeElement&&document.activeElement.matches(n.focusableElements)&&document.activeElement!==l.target&&"mouse"!==l.pointerType&&document.activeElement.blur(),document.activeElement&&l.target===document.activeElement&&l.target.matches(n.focusableElements))return n.isMoved=!0,void(t.allowClick=!1);n.allowTouchCallbacks&&t.emit("touchMove",l),s.previousX=s.currentX,s.previousY=s.currentY,s.currentX=d,s.currentY=u;const h=s.currentX-s.startX,p=s.currentY-s.startY;if(t.params.threshold&&Math.sqrt(h**2+p**2)<t.params.threshold)return;if(void 0===n.isScrolling){let e;t.isHorizontal()&&s.currentY===s.startY||t.isVertical()&&s.currentX===s.startX?n.isScrolling=!1:h*h+p*p>=25&&(e=180*Math.atan2(Math.abs(p),Math.abs(h))/Math.PI,n.isScrolling=t.isHorizontal()?e>i.touchAngle:90-e>i.touchAngle)}if(n.isScrolling&&t.emit("touchMoveOpposite",l),void 0===n.startMoving&&(s.currentX===s.startX&&s.currentY===s.startY||(n.startMoving=!0)),n.isScrolling||"touchmove"===l.type&&n.preventTouchMoveFromPointerMove)return void(n.isTouched=!1);if(!n.startMoving)return;t.allowClick=!1,!i.cssMode&&l.cancelable&&l.preventDefault(),i.touchMoveStopPropagation&&!i.nested&&l.stopPropagation();let m=t.isHorizontal()?h:p,f=t.isHorizontal()?s.currentX-s.previousX:s.currentY-s.previousY;i.oneWayMovement&&(m=Math.abs(m)*(r?1:-1),f=Math.abs(f)*(r?1:-1)),s.diff=m,m*=i.touchRatio,r&&(m=-m,f=-f);const g=t.touchesDirection;t.swipeDirection=m>0?"prev":"next",t.touchesDirection=f>0?"prev":"next";const v=t.params.loop&&!i.cssMode,b="next"===t.touchesDirection&&t.allowSlideNext||"prev"===t.touchesDirection&&t.allowSlidePrev;if(!n.isMoved){if(v&&b&&t.loopFix({direction:t.swipeDirection}),n.startTranslate=t.getTranslate(),t.setTransition(0),t.animating){const e=new window.CustomEvent("transitionend",{bubbles:!0,cancelable:!0,detail:{bySwiperTouchMove:!0}});t.wrapperEl.dispatchEvent(e)}n.allowMomentumBounce=!1,!i.grabCursor||!0!==t.allowSlideNext&&!0!==t.allowSlidePrev||t.setGrabCursor(!0),t.emit("sliderFirstMove",l)}if((new Date).getTime(),!1!==i._loopSwapReset&&n.isMoved&&n.allowThresholdMove&&g!==t.touchesDirection&&v&&b&&Math.abs(m)>=1)return Object.assign(s,{startX:d,startY:u,currentX:d,currentY:u,startTranslate:n.currentTranslate}),n.loopSwapReset=!0,void(n.startTranslate=n.currentTranslate);t.emit("sliderMove",l),n.isMoved=!0;const y=n.startTranslate??0;n.currentTranslate=m+y;let _=!0,x=i.resistanceRatio;if(i.touchReleaseOnEdges&&(x=0),m>0?(v&&b&&n.allowThresholdMove&&n.currentTranslate>(i.centeredSlides?t.minTranslate()-t.slidesSizesGrid[t.activeIndex+1]-("auto"!==i.slidesPerView&&t.slides.length-i.slidesPerView>=2?t.slidesSizesGrid[t.activeIndex+1]+t.params.spaceBetween:0)-t.params.spaceBetween:t.minTranslate())&&t.loopFix({direction:"prev",setTranslate:!0,activeSlideIndex:0}),n.currentTranslate>t.minTranslate()&&(_=!1,i.resistance&&(n.currentTranslate=t.minTranslate()-1+(-t.minTranslate()+y+m)**x))):m<0&&(v&&b&&n.allowThresholdMove&&n.currentTranslate<(i.centeredSlides?t.maxTranslate()+t.slidesSizesGrid[t.slidesSizesGrid.length-1]+t.params.spaceBetween+("auto"!==i.slidesPerView&&t.slides.length-i.slidesPerView>=2?t.slidesSizesGrid[t.slidesSizesGrid.length-1]+t.params.spaceBetween:0):t.maxTranslate())&&t.loopFix({direction:"next",setTranslate:!0,activeSlideIndex:t.slides.length-("auto"===i.slidesPerView?t.slidesPerViewDynamic():Math.ceil(parseFloat(String(i.slidesPerView))))}),n.currentTranslate<t.maxTranslate()&&(_=!1,i.resistance&&(n.currentTranslate=t.maxTranslate()+1-(t.maxTranslate()-y-m)**x))),_&&(l.preventedByNestedSwiper=!0),!t.allowSlideNext&&"next"===t.swipeDirection&&(n.currentTranslate??0)<y&&(n.currentTranslate=y),!t.allowSlidePrev&&"prev"===t.swipeDirection&&(n.currentTranslate??0)>y&&(n.currentTranslate=y),t.allowSlidePrev||t.allowSlideNext||(n.currentTranslate=y),i.threshold>0){if(!(Math.abs(m)>i.threshold||n.allowThresholdMove))return void(n.currentTranslate=n.startTranslate);if(!n.allowThresholdMove)return n.allowThresholdMove=!0,s.startX=s.currentX,s.startY=s.currentY,n.currentTranslate=n.startTranslate,void(s.diff=t.isHorizontal()?s.currentX-s.startX:s.currentY-s.startY)}i.followFinger&&!i.cssMode&&((i.freeMode&&i.freeMode.enabled&&t.freeMode||i.watchSlidesProgress)&&(t.updateActiveIndex(),t.updateSlidesClasses()),i.freeMode&&i.freeMode.enabled&&t.freeMode&&t.freeMode.onTouchMove(),t.updateProgress(n.currentTranslate),t.setTranslate(n.currentTranslate??0))}function Lt(e,t,n){const{params:i}=e,s=i.edgeSwipeDetection,r=i.edgeSwipeThreshold;return!s||!(n<=r||n>=window.innerWidth-r)||"prevent"===s&&(t.preventDefault(),!0)}function Dt(e){const t=this;if(t.destroyed)return;const n=e.originalEvent??e,i=t.touchEventsData;if("pointerdown"===n.type){const e=n;if(null!==i.pointerId&&i.pointerId!==e.pointerId)return;i.pointerId=e.pointerId}else"touchstart"===n.type&&1===n.targetTouches.length&&(i.touchId=n.targetTouches[0].identifier);if("touchstart"===n.type)return void Lt(t,n,n.targetTouches[0].pageX);const{params:s,touches:r,enabled:a}=t;if(!a)return;if(!s.simulateTouch&&"mouse"===n.pointerType)return;if(t.animating&&s.preventInteractionOnTransition)return;!t.animating&&s.cssMode&&s.loop&&t.loopFix();let o=n.target;if("wrapper"===s.touchEventsTarget&&!function(e,t){let n=t.contains(e);return!n&&t instanceof HTMLSlotElement&&(n=[...t.assignedElements()].includes(e),n||(n=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():[])}return!1}(e,t))),n}(o,t.wrapperEl))return;const l=n;if("number"==typeof l.which&&3===l.which)return;if("number"==typeof l.button&&l.button>0)return;if(i.isTouched&&i.isMoved)return;const c=!!s.noSwipingClass&&""!==s.noSwipingClass,d=n.composedPath?n.composedPath():n.path;c&&n.target&&n.target.shadowRoot&&d&&(o=d[0]);const u=s.noSwipingSelector?s.noSwipingSelector:`.${s.noSwipingClass}`,h=!(!n.target||!n.target.shadowRoot);if(s.noSwiping&&(h?(p=u,function e(t){if(!t||t===document||t===window)return null;let n=t;n.assignedSlot&&(n=n.assignedSlot);const i=n.closest(p);if(!i&&!n.getRootNode)return null;const s=n.getRootNode();return i||e(s.host)}(o)):o.closest(u)))return void(t.allowClick=!0);var p;if(s.swipeHandler&&"string"==typeof s.swipeHandler&&!o.closest(s.swipeHandler))return;const m=n;r.currentX=m.pageX,r.currentY=m.pageY;const f=r.currentX,g=r.currentY;if(!Lt(t,n,f))return;Object.assign(i,{isTouched:!0,isMoved:!1,allowTouchCallbacks:!0,isScrolling:void 0,startMoving:void 0}),r.startX=f,r.startY=g,i.touchStartTime=Ze(),t.allowClick=!0,t.updateSize(),t.swipeDirection=void 0,s.threshold>0&&(i.allowThresholdMove=!1);let v=!0;o.matches(i.focusableElements)&&(v=!1,"SELECT"===o.nodeName&&(i.isTouched=!1)),document.activeElement&&document.activeElement.matches(i.focusableElements)&&document.activeElement!==o&&("mouse"===m.pointerType||"mouse"!==m.pointerType&&!o.matches(i.focusableElements))&&document.activeElement.blur();const b=v&&t.allowTouchMove&&s.touchStartPreventDefault;!s.touchStartForcePreventDefault&&!b||o.isContentEditable||n.preventDefault(),s.freeMode&&s.freeMode.enabled&&t.freeMode&&t.animating&&!s.cssMode&&t.freeMode.onTouchStart(),t.emit("touchStart",n)}const Mt=(e,t)=>{const{params:n,el:i,wrapperEl:s,device:r}=e,a=!!n.nested,o="on"===t?"addEventListener":"removeEventListener",l=t;if(!i||"string"==typeof i)return;document[o]("touchstart",e.onDocumentTouchStart,{passive:!1,capture:a}),i[o]("touchstart",e.onTouchStart,{passive:!1}),i[o]("pointerdown",e.onTouchStart,{passive:!1}),document[o]("touchmove",e.onTouchMove,{passive:!1,capture:a}),document[o]("pointermove",e.onTouchMove,{passive:!1,capture:a}),document[o]("touchend",e.onTouchEnd,{passive:!0}),document[o]("pointerup",e.onTouchEnd,{passive:!0}),document[o]("pointercancel",e.onTouchEnd,{passive:!0}),document[o]("touchcancel",e.onTouchEnd,{passive:!0}),document[o]("pointerout",e.onTouchEnd,{passive:!0}),document[o]("pointerleave",e.onTouchEnd,{passive:!0}),document[o]("contextmenu",e.onTouchEnd,{passive:!0}),(n.preventClicks||n.preventClicksPropagation)&&i[o]("click",e.onClick,!0),n.cssMode&&s[o]("scroll",e.onScroll);const c=t=>{e[l](t,Tt,!0)};n.updateOnWindowResize?c(r.ios||r.android?"resize orientationchange observerUpdate":"resize observerUpdate"):c("observerUpdate"),i[o]("load",e.onLoad,{capture:!0})};var $t={loopCreate:function(e,t){const n=this,{params:i,slidesEl:s}=n;if(!i.loop||n.virtual&&n.params.virtual?.enabled)return;const r=()=>{nt(s,`.${i.slideClass}, swiper-slide`).forEach((e,t)=>{e.setAttribute("data-swiper-slide-index",String(t))})},a=n.grid&&i.grid&&i.grid.rows>1;i.loopAddBlankSlides&&(i.slidesPerGroup>1||a)&&(()=>{const e=nt(s,`.${i.slideBlankClass}`);e.forEach(e=>{e.remove()}),e.length>0&&(n.recalcSlides(),n.updateSlides())})();const o=i.slidesPerGroup*(a?i.grid.rows:1),l=n.slides.length%o!==0,c=a&&n.slides.length%i.grid.rows!==0,d=e=>{for(let t=0;t<e;t+=1){const e=n.isElement?it("swiper-slide",[i.slideBlankClass]):it("div",[i.slideClass,i.slideBlankClass]);n.slidesEl.append(e)}};l?(i.loopAddBlankSlides&&(d(o-n.slides.length%o),n.recalcSlides(),n.updateSlides()),r()):c?(i.loopAddBlankSlides&&(d(i.grid.rows-n.slides.length%i.grid.rows),n.recalcSlides(),n.updateSlides()),r()):r();const u=i.centeredSlides||!!i.slidesOffsetBefore||!!i.slidesOffsetAfter;n.loopFix({slideRealIndex:e,direction:u?void 0:"next",initial:t})},loopFix:function(e={}){const{slideRealIndex:t,slideTo:n=!0,direction:i,setTranslate:s,activeSlideIndex:r,initial:a,byController:o,byMousewheel:l}=e;let c=r;const d=this;if(!d.params.loop)return;d.emit("beforeLoopFix");const{slides:u,allowSlidePrev:h,allowSlideNext:p,slidesEl:m,params:f}=d,{centeredSlides:g,slidesOffsetBefore:v,slidesOffsetAfter:b,initialSlide:y}=f,_=g||!!v||!!b;if(d.allowSlidePrev=!0,d.allowSlideNext=!0,d.virtual&&f.virtual?.enabled){if(n){const e=d.virtual.slides.length,t=d.virtual.slidesBefore??0;_||0!==d.snapIndex?_&&d.snapIndex<f.slidesPerView?d.slideTo(e+d.snapIndex,0,!1,!0):d.snapIndex===d.snapGrid.length-1&&d.slideTo(t,0,!1,!0):d.slideTo(e,0,!1,!0)}return d.allowSlidePrev=h,d.allowSlideNext=p,void d.emit("loopFix")}let x=f.slidesPerView;"auto"===x?x=d.slidesPerViewDynamic():(x=Math.ceil(parseFloat(String(f.slidesPerView))),_&&x%2==0&&(x+=1));const w=f.slidesPerGroupAuto?x:f.slidesPerGroup;let S=_?Math.max(w,Math.ceil(x/2)):w;S%w!==0&&(S+=w-S%w),S+=f.loopAdditionalSlides,d.loopedSlides=S;const E=d.grid&&f.grid&&f.grid.rows>1;u.length<x+S||"cards"===d.params.effect&&u.length<x+2*S||E&&f.grid.fill;const N=[],C=[],k=E?Math.ceil(u.length/f.grid.rows):u.length,T=a&&k-y<x&&!_;let j=T?y:d.activeIndex;void 0===c?c=d.getSlideIndex(u.find(e=>e.classList.contains(f.slideActiveClass))):j=c;const A="next"===i||!i,O="prev"===i||!i;let L=0,D=0;const M=(E?u[c].column??0:c)+(_&&void 0===s?-x/2+.5:0);if(M<S){L=Math.max(S-M,w);for(let e=0;e<S-M;e+=1){const t=e-Math.floor(e/k)*k;if(E){const e=k-t-1;for(let t=u.length-1;t>=0;t-=1)u[t].column===e&&N.push(t)}else N.push(k-t-1)}}else if(M+x>k-S){D=Math.max(M-(k-2*S),w),T&&(D=Math.max(D,x-k+y+1));for(let e=0;e<D;e+=1){const t=e-Math.floor(e/k)*k;E?u.forEach((e,n)=>{e.column===t&&C.push(n)}):C.push(t)}}if(d.__preventObserver__=!0,requestAnimationFrame(()=>{d.__preventObserver__=!1}),"cards"===d.params.effect&&u.length<x+2*S&&(C.includes(c)&&C.splice(C.indexOf(c),1),N.includes(c)&&N.splice(N.indexOf(c),1)),O&&N.forEach(e=>{const t=u[e];t.swiperLoopMoveDOM=!0,m.prepend(t),t.swiperLoopMoveDOM=!1}),A&&C.forEach(e=>{const t=u[e];t.swiperLoopMoveDOM=!0,m.append(t),t.swiperLoopMoveDOM=!1}),d.recalcSlides(),"auto"===f.slidesPerView?d.updateSlides():E&&(N.length>0&&O||C.length>0&&A)&&d.slides.forEach((e,t)=>{d.grid.updateSlide(t,e,d.slides)}),f.watchSlidesProgress&&d.updateSlidesOffset(),n)if(N.length>0&&O){if(void 0===t){const e=d.slidesGrid[j],t=d.slidesGrid[j+L]-e;l?d.setTranslate(d.translate-t):(d.slideTo(j+Math.ceil(L),0,!1,!0),s&&(d.touchEventsData.startTranslate=d.touchEventsData.startTranslate-t,d.touchEventsData.currentTranslate=d.touchEventsData.currentTranslate-t))}else if(s){const e=E?N.length/f.grid.rows:N.length;d.slideTo(d.activeIndex+e,0,!1,!0),d.touchEventsData.currentTranslate=d.translate}}else if(C.length>0&&A)if(void 0===t){const e=d.slidesGrid[j],t=d.slidesGrid[j-D]-e;l?d.setTranslate(d.translate-t):(d.slideTo(j-D,0,!1,!0),s&&(d.touchEventsData.startTranslate=d.touchEventsData.startTranslate-t,d.touchEventsData.currentTranslate=d.touchEventsData.currentTranslate-t))}else{const e=E?C.length/f.grid.rows:C.length;d.slideTo(d.activeIndex-e,0,!1,!0)}d.allowSlidePrev=h,d.allowSlideNext=p;const $=d.controller?.control;if($&&!o){const e={slideRealIndex:t,direction:i,setTranslate:s,activeSlideIndex:c,byController:!0};Array.isArray($)?$.forEach(t=>{!t.destroyed&&t.params.loop&&t.loopFix({...e,slideTo:t.params.slidesPerView===f.slidesPerView&&n})}):$ instanceof d.constructor&&$.params.loop&&$.loopFix({...e,slideTo:$.params.slidesPerView===f.slidesPerView&&n})}d.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=e,n=void 0===t.swiperSlideIndex?Number(e.getAttribute("data-swiper-slide-index")):t.swiperSlideIndex;i[n]=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 Pt(e,t){return function(n={}){const i=Object.keys(n)[0],s=n[i];"object"==typeof s&&null!==s?(!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 s?("object"!=typeof e[i]||"enabled"in e[i]||(e[i].enabled=!0),e[i]||(e[i]={enabled:!1}),et(t,n)):et(t,n)):et(t,n)}}var It={slideTo:function(e=0,t,n=!0,i,s){"string"==typeof e&&(e=parseInt(e,10));const r=this;let a=e;a<0&&(a=0);const{params:o,snapGrid:l,slidesGrid:c,previousIndex:d,activeIndex:u,rtlTranslate:h,wrapperEl:p,enabled:m}=r;if(!m&&!i&&!s||r.destroyed||r.animating&&o.preventInteractionOnTransition)return!1;void 0===t&&(t=r.params.speed);const f=Math.min(r.params.slidesPerGroupSkip,a);let g=f+Math.floor((a-f)/r.params.slidesPerGroup);g>=l.length&&(g=l.length-1);const v=-l[g];if(o.normalizeSlideIndex)for(let e=0;e<c.length;e+=1){const t=-Math.floor(100*v),n=Math.floor(100*c[e]),i=Math.floor(100*c[e+1]);void 0!==c[e+1]?t>=n&&t<i-(i-n)/2?a=e:t>=n&&t<i&&(a=e+1):t>=n&&(a=e)}if(r.initialized&&a!==u){if(!r.allowSlideNext&&(h?v>r.translate&&v>r.minTranslate():v<r.translate&&v<r.minTranslate()))return!1;if(!r.allowSlidePrev&&v>r.translate&&v>r.maxTranslate()&&(u||0)!==a)return!1}let b;a!==(d||0)&&n&&r.emit("beforeSlideChangeStart"),r.updateProgress(v),b=a>u?"next":a<u?"prev":"reset";const y=r.virtual&&r.params.virtual?.enabled;if((!y||!s)&&(h&&-v===r.translate||!h&&v===r.translate))return r.updateActiveIndex(a),o.autoHeight&&r.updateAutoHeight(),r.updateSlidesClasses(),"slide"!==o.effect&&r.setTranslate(v),"reset"!==b&&(r.transitionStart(n,b),r.transitionEnd(n,b)),!1;if(o.cssMode){const e=r.isHorizontal(),n=h?v:-v;return 0===t?(y&&(r.wrapperEl.style.scrollSnapType="none",r._immediateVirtual=!0),y&&!r._cssModeVirtualInitialSet&&(r.params.initialSlide??0)>0?(r._cssModeVirtualInitialSet=!0,requestAnimationFrame(()=>{p[e?"scrollLeft":"scrollTop"]=n})):p[e?"scrollLeft":"scrollTop"]=n,y&&requestAnimationFrame(()=>{r.wrapperEl.style.scrollSnapType="",r._immediateVirtual=!1})):p.scrollTo({[e?"left":"top"]:n,behavior:"smooth"}),!0}const _=gt().isSafari;return y&&!s&&_&&r.isElement&&r.virtual.update(!1,!1,a),r.setTransition(t),r.setTranslate(v),r.updateActiveIndex(a),r.updateSlidesClasses(),r.emit("beforeTransitionStart",t,i),r.transitionStart(n,b),0===t?r.transitionEnd(n,b):r.animating||(r.animating=!0,r.onSlideToWrapperTransitionEnd||(r.onSlideToWrapperTransitionEnd=function(e){r&&!r.destroyed&&e.target===this&&(r.wrapperEl.removeEventListener("transitionend",r.onSlideToWrapperTransitionEnd),r.onSlideToWrapperTransitionEnd=null,delete r.onSlideToWrapperTransitionEnd,r.transitionEnd(n,b))}),r.wrapperEl.addEventListener("transitionend",r.onSlideToWrapperTransitionEnd)),!0},slideToLoop:function(e=0,t,n=!0,i){"string"==typeof e&&(e=parseInt(e,10));const s=this;if(s.destroyed)return;void 0===t&&(t=s.params.speed);const r=s.grid&&s.params.grid&&s.params.grid.rows>1;let a=e;if(s.params.loop)if(s.virtual&&s.params.virtual?.enabled)a+=s.virtual.slidesBefore??0;else{let e;if(r){const t=a*s.params.grid.rows,n=s.slides.find(e=>Number(e.getAttribute("data-swiper-slide-index"))===t);e=n?.column??0}else e=s.getSlideIndexByData(a);const t=r?Math.ceil(s.slides.length/s.params.grid.rows):s.slides.length,{centeredSlides:n,slidesOffsetBefore:o,slidesOffsetAfter:l}=s.params,c=n||!!o||!!l;let d;"auto"===s.params.slidesPerView?d=s.slidesPerViewDynamic():(d=Math.ceil(parseFloat(String(s.params.slidesPerView))),c&&d%2==0&&(d+=1));let u=t-e<d;if(c&&(u=u||e<Math.ceil(d/2)),i&&c&&"auto"!==s.params.slidesPerView&&!r&&(u=!1),u){const n=c?e<s.activeIndex?"prev":"next":e-s.activeIndex-1<s.params.slidesPerView?"next":"prev";s.loopFix({direction:n,slideTo:!0,activeSlideIndex:"next"===n?e+1:e-t+1,slideRealIndex:"next"===n?s.realIndex:void 0})}if(r){const e=a*s.params.grid.rows,t=s.slides.find(t=>Number(t.getAttribute("data-swiper-slide-index"))===e);a=t?.column??0}else a=s.getSlideIndexByData(a)}return requestAnimationFrame(()=>{s.slideTo(a,t,n,i)}),s},slideNext:function(e,t=!0,n){const i=this,{enabled:s,params:r,animating:a}=i;if(!s||i.destroyed)return i;void 0===e&&(e=i.params.speed);let o=r.slidesPerGroup;"auto"===r.slidesPerView&&1===r.slidesPerGroup&&r.slidesPerGroupAuto&&(o=Math.max(i.slidesPerViewDynamic("current",!0),1));const l=i.activeIndex<r.slidesPerGroupSkip?1:o,c=i.virtual&&r.virtual?.enabled;if(r.loop){if(a&&!c&&r.loopPreventsSliding)return!1;if(i.loopFix({direction:"next"}),i._clientLeft=i.wrapperEl.clientLeft,i.activeIndex===i.slides.length-1&&r.cssMode)return requestAnimationFrame(()=>{i.slideTo(i.activeIndex+l,e,t,n)}),!0}return r.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:s,snapGrid:r,slidesGrid:a,rtlTranslate:o,enabled:l,animating:c}=i;if(!l||i.destroyed)return i;void 0===e&&(e=i.params.speed);const d=i.virtual&&s.virtual?.enabled;if(s.loop){if(c&&!d&&s.loopPreventsSliding)return!1;i.loopFix({direction:"prev"}),i._clientLeft=i.wrapperEl.clientLeft}function u(e){return e<0?-Math.floor(Math.abs(e)):Math.floor(e)}const h=u(o?i.translate:-i.translate),p=r.map(e=>u(e)),m=s.freeMode&&s.freeMode.enabled;let f=r[p.indexOf(h)-1];if(void 0===f&&(s.cssMode||m)){let e;r.forEach((t,n)=>{h>=t&&(e=n)}),void 0!==e&&(f=m?r[e]:r[e>0?e-1:e])}let g=0;if(void 0!==f&&(g=a.indexOf(f),g<0&&(g=i.activeIndex-1),"auto"===s.slidesPerView&&1===s.slidesPerGroup&&s.slidesPerGroupAuto&&(g=g-i.slidesPerViewDynamic("previous",!0)+1,g=Math.max(g,0))),s.rewind&&i.isBeginning){const s=i.params.virtual?.enabled&&i.virtual?i.virtual.slides.length-1:i.slides.length-1;return i.slideTo(s,e,t,n)}return s.loop&&0===i.activeIndex&&s.cssMode?(requestAnimationFrame(()=>{i.slideTo(g,e,t,n)}),!0):i.slideTo(g,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 s=this;if(s.destroyed)return;void 0===e&&(e=s.params.speed);let r=s.activeIndex;const a=Math.min(s.params.slidesPerGroupSkip,r),o=a+Math.floor((r-a)/s.params.slidesPerGroup),l=s.rtlTranslate?s.translate:-s.translate;if(l>=s.snapGrid[o]){const e=s.snapGrid[o];l-e>(s.snapGrid[o+1]-e)*i&&(r+=s.params.slidesPerGroup)}else{const e=s.snapGrid[o-1];l-e<=(s.snapGrid[o]-e)*i&&(r-=s.params.slidesPerGroup)}return r=Math.max(r,0),r=Math.min(r,s.slidesGrid.length-1),s.slideTo(r,e,t,n)},slideToClickedSlide:function(){const e=this;if(e.destroyed)return;const{params:t,slidesEl:n,clickedSlide:i,clickedIndex:s}=e;if(void 0===i||void 0===s)return;const r="auto"===t.slidesPerView?e.slidesPerViewDynamic():t.slidesPerView;let a,o=e.getSlideIndexWhenGrid(s);const l=e.isElement?"swiper-slide":`.${t.slideClass}`,c=e.grid&&e.params.grid&&e.params.grid.rows>1;if(t.loop){if(e.animating)return;a=parseInt(i.getAttribute("data-swiper-slide-index"),10),t.centeredSlides?e.slideToLoop(a):o>(c?(e.slides.length-r)/2-(e.params.grid.rows-1):e.slides.length-r)?(e.loopFix(),o=e.getSlideIndex(nt(n,`${l}[data-swiper-slide-index="${a}"]`)[0]),Ke(()=>{e.slideTo(o)})):e.slideTo(o)}else e.slideTo(o)}};function Rt({swiper:e,runCallbacks:t,direction:n,step:i}){const{activeIndex:s,previousIndex:r}=e;let a=n;a||(a=s>r?"next":s<r?"prev":"reset"),e.emit(`transition${i}`),t&&"reset"===a?e.emit(`slideResetTransition${i}`):t&&s!==r&&(e.emit(`slideChangeTransition${i}`),"next"===a?e.emit(`slideNextTransition${i}`):e.emit(`slidePrevTransition${i}`))}var zt={getTranslate:function(e=(this.isHorizontal()?"x":"y")){const{params:t,rtlTranslate:n,translate:i,wrapperEl:s}=this;if(t.virtualTranslate)return n?-i:i;if(t.cssMode)return i;let r=function(e,t="x"){const n=function(e){return window.getComputedStyle(e,null)}(e),i=n.transform||n.webkitTransform;if(!i||"none"===i)return 0;const s=new DOMMatrixReadOnly(i);return"x"===t?s.m41:s.m42}(s,e);return r+=this.cssOverflowAdjustment(),n&&(r=-r),r||0},setTranslate:function(e,t){const n=this,{rtlTranslate:i,params:s,wrapperEl:r,progress:a}=n;let o,l=0,c=0;n.isHorizontal()?l=i?-e:e:c=e,s.roundLengths&&(l=Math.floor(l),c=Math.floor(c)),n.previousTranslate=n.translate,n.translate=n.isHorizontal()?l:c,s.cssMode?r[n.isHorizontal()?"scrollLeft":"scrollTop"]=n.isHorizontal()?-l:-c:s.virtualTranslate||(n.isHorizontal()?l-=n.cssOverflowAdjustment():c-=n.cssOverflowAdjustment(),r.style.transform=`translate3d(${l}px, ${c}px, 0px)`);const d=n.maxTranslate()-n.minTranslate();o=0===d?0:(e-n.minTranslate())/d,o!==a&&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,s){const r=this,{params:a,wrapperEl:o}=r;if(r.animating&&a.preventInteractionOnTransition)return!1;const l=r.minTranslate(),c=r.maxTranslate();let d;if(d=i&&e>l?l:i&&e<c?c:e,r.updateProgress(d),a.cssMode){const e=r.isHorizontal();return 0===t?o[e?"scrollLeft":"scrollTop"]=-d:o.scrollTo({[e?"left":"top"]:-d,behavior:"smooth"}),!0}return 0===t?(r.setTransition(0),r.setTranslate(d),n&&(r.emit("beforeTransitionStart",t,s),r.emit("transitionEnd"))):(r.setTransition(t),r.setTranslate(d),n&&(r.emit("beforeTransitionStart",t,s),r.emit("transitionStart")),r.animating||(r.animating=!0,r.onTranslateToWrapperTransitionEnd||(r.onTranslateToWrapperTransitionEnd=function(e){r&&!r.destroyed&&e.target===this&&(r.wrapperEl.removeEventListener("transitionend",r.onTranslateToWrapperTransitionEnd),r.onTranslateToWrapperTransitionEnd=null,delete r.onTranslateToWrapperTransitionEnd,r.animating=!1,n&&r.emit("transitionEnd"))}),r.wrapperEl.addEventListener("transitionend",r.onTranslateToWrapperTransitionEnd))),!0}};const Ft=(e,t,n)=>{t&&!e.classList.contains(n)?e.classList.add(n):!t&&e.classList.contains(n)&&e.classList.remove(n)},Ht=(e,t,n)=>{t&&!e.classList.contains(n)?e.classList.add(n):!t&&e.classList.contains(n)&&e.classList.remove(n)};var Bt={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(rt(i,"padding-left")||"0",10)-parseInt(rt(i,"padding-right")||"0",10),n=n-parseInt(rt(i,"padding-top")||"0",10)-parseInt(rt(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:s,rtlTranslate:r,wrongRTL:a}=e,o=!(!e.virtual||!n.virtual?.enabled),l=o?e.virtual.slides.length:e.slides.length,c=nt(s,`.${e.params.slideClass}, swiper-slide`),d=o?e.virtual.slides.length:c.length;let u=[];const h=[],p=[],m=t=>"function"==typeof t?t.call(e):t,f=m(n.slidesOffsetBefore),g=m(n.slidesOffsetAfter),v=e.snapGrid.length,b=e.slidesGrid.length,y=e.size-f-g;let _=n.spaceBetween,x=-f,w=0,S=0;if(void 0===y)return;"string"==typeof _&&_.indexOf("%")>=0?_=parseFloat(_.replace("%",""))/100*y:"string"==typeof _&&(_=parseFloat(_)),e.virtualSize=-_-f-g,c.forEach(e=>{r?e.style.marginLeft="":e.style.marginRight="",e.style.marginBottom="",e.style.marginTop=""}),n.centeredSlides&&n.cssMode&&(tt(i,"--swiper-centered-offset-before",""),tt(i,"--swiper-centered-offset-after","")),n.cssMode&&(tt(i,"--swiper-slides-offset-before",`${f}px`),tt(i,"--swiper-slides-offset-after",`${g}px`));const E=n.grid&&n.grid.rows>1&&e.grid;E?e.grid.initSlides(c):e.grid&&e.grid.unsetSlides();let N=0;const C="auto"===n.slidesPerView&&n.breakpoints&&Object.keys(n.breakpoints).filter(e=>{const t=n.breakpoints[e];return void 0!==t?.slidesPerView}).length>0;for(let i=0;i<d;i+=1){N=0;const s=c[i];if(!s||(E&&e.grid.updateSlide(i,s,c),"none"!==rt(s,"display"))){if(o&&"auto"===n.slidesPerView)n.virtual?.slidesPerViewAutoSlideSize&&(N=n.virtual.slidesPerViewAutoSlideSize),N&&s&&(n.roundLengths&&(N=Math.floor(N)),s.style[e.getDirectionLabel("width")]=`${N}px`);else if("auto"===n.slidesPerView){C&&(s.style[e.getDirectionLabel("width")]="");const i=getComputedStyle(s),r=s.style.transform,a=s.style.webkitTransform;if(r&&(s.style.transform="none"),a&&(s.style.webkitTransform="none"),n.roundLengths)N=e.isHorizontal()?lt(s,"width"):lt(s,"height");else{const e=t(i,"width"),n=t(i,"padding-left"),r=t(i,"padding-right"),a=t(i,"margin-left"),o=t(i,"margin-right"),l=i.getPropertyValue("box-sizing");if(l&&"border-box"===l)N=e+a+o;else{const{clientWidth:t,offsetWidth:i}=s;N=e+n+r+a+o+(i-t)}}r&&(s.style.transform=r),a&&(s.style.webkitTransform=a),n.roundLengths&&(N=Math.floor(N))}else N=(y-(n.slidesPerView-1)*_)/n.slidesPerView,n.roundLengths&&(N=Math.floor(N)),s&&(s.style[e.getDirectionLabel("width")]=`${N}px`);s&&(s.swiperSlideSize=N),p.push(N),n.centeredSlides?(x=x+N/2+w/2+_,0===w&&0!==i&&(x=x-y/2-_),0===i&&(x=x-y/2-_),Math.abs(x)<.001&&(x=0),n.roundLengths&&(x=Math.floor(x)),S%n.slidesPerGroup===0&&u.push(x),h.push(x)):(n.roundLengths&&(x=Math.floor(x)),(S-Math.min(e.params.slidesPerGroupSkip,S))%e.params.slidesPerGroup===0&&u.push(x),h.push(x),x=x+N+_),e.virtualSize+=N+_,w=N,S+=1}}if(e.virtualSize=Math.max(e.virtualSize,y)+g,r&&a&&("slide"===n.effect||"coverflow"===n.effect)&&(i.style.width=`${e.virtualSize+_}px`),n.setWrapperSize&&(i.style[e.getDirectionLabel("width")]=`${e.virtualSize+_}px`),E&&e.grid.updateWrapperSize(N,u),!n.centeredSlides){const t="auto"!==n.slidesPerView&&n.slidesPerView%1!=0,i=n.snapToSlideEdge&&!n.loop&&("auto"===n.slidesPerView||t);let s=u.length;if(i){let e;if("auto"===n.slidesPerView){e=1;let t=0;for(let n=p.length-1;n>=0&&(t+=p[n]+(n<p.length-1?_:0),t<=y);n-=1)e=p.length-n}else e=Math.floor(n.slidesPerView);s=Math.max(d-e,0)}const r=[];for(let t=0;t<u.length;t+=1){let a=u[t];n.roundLengths&&(a=Math.floor(a)),i?t<=s&&r.push(a):u[t]<=e.virtualSize-y&&r.push(a)}u=r,Math.floor(e.virtualSize-y)-Math.floor(u[u.length-1])>1&&(i||u.push(e.virtualSize-y))}if(o&&n.loop){const t=p[0]+_,i=(e.virtual.slidesBefore??0)+(e.virtual.slidesAfter??0);if(n.slidesPerGroup>1){const e=Math.ceil(i/n.slidesPerGroup),s=t*n.slidesPerGroup;for(let t=0;t<e;t+=1)u.push(u[u.length-1]+s)}for(let s=0;s<i;s+=1)1===n.slidesPerGroup&&u.push(u[u.length-1]+t),h.push(h[h.length-1]+t),e.virtualSize+=t}if(0===u.length&&(u=[0]),0!==_){const t=e.isHorizontal()&&r?"marginLeft":e.getDirectionLabel("marginRight");c.filter((e,t)=>!(n.cssMode&&!n.loop)||t!==c.length-1).forEach(e=>{e.style[t]=`${_}px`})}if(n.centeredSlides&&n.centeredSlidesBounds){let e=0;p.forEach(t=>{e+=t+(_||0)}),e-=_;const t=e>y?e-y:0;u=u.map(e=>e<=0?-f:e>t?t+g:e)}if(n.centerInsufficientSlides){let e=0;if(p.forEach(t=>{e+=t+(_||0)}),e-=_,e<y){const t=(y-e)/2;u.forEach((e,n)=>{u[n]=e-t}),h.forEach((e,n)=>{h[n]=e+t})}}if(Object.assign(e,{slides:c,snapGrid:u,slidesGrid:h,slidesSizesGrid:p}),n.centeredSlides&&n.cssMode&&!n.centeredSlidesBounds){tt(i,"--swiper-centered-offset-before",-u[0]+"px"),tt(i,"--swiper-centered-offset-after",e.size/2-p[p.length-1]/2+"px");const t=-e.snapGrid[0],n=-e.slidesGrid[0];e.snapGrid=e.snapGrid.map(e=>e+t),e.slidesGrid=e.slidesGrid.map(e=>e+n)}if(d!==l&&e.emit("slidesLengthChange"),u.length!==v&&(e.params.watchOverflow&&e.checkOverflow(),e.emit("snapGridLengthChange")),h.length!==b&&e.emit("slidesGridLengthChange"),n.watchSlidesProgress&&e.updateSlidesOffset(),e.emit("slidesUpdated"),!(o||n.cssMode||"slide"!==n.effect&&"fade"!==n.effect)){const t=`${n.containerModifierClass}backface-hidden`,i=e.el.classList.contains(t);d<=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 s,r=0;"number"==typeof e?t.setTransition(e):!0===e&&t.setTransition(t.params.speed);const a=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(s=0;s<Math.ceil(t.params.slidesPerView);s+=1){const e=t.activeIndex+s;if(e>t.slides.length&&!i)break;const r=a(e);r&&n.push(r)}else{const e=a(t.activeIndex);e&&n.push(e)}for(s=0;s<n.length;s+=1)if(void 0!==n[s]){const e=n[s].offsetHeight;r=e>r?e:r}(r||0===r)&&(t.wrapperEl.style.height=`${r}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:s,snapGrid:r}=t;if(0===i.length)return;void 0===i[0].swiperSlideOffset&&t.updateSlidesOffset();let a=-e;s&&(a=e),t.visibleSlidesIndexes=[],t.visibleSlides=[];let o=n.spaceBetween;"string"==typeof o&&o.indexOf("%")>=0?o=parseFloat(o.replace("%",""))/100*t.size:"string"==typeof o&&(o=parseFloat(o));for(let e=0;e<i.length;e+=1){const l=i[e];let c=l.swiperSlideOffset??0;n.cssMode&&n.centeredSlides&&(c-=i[0].swiperSlideOffset??0);const d=l.swiperSlideSize??0,u=(a+(n.centeredSlides?t.minTranslate():0)-c)/(d+o),h=(a-r[0]+(n.centeredSlides?t.minTranslate():0)-c)/(d+o),p=-(a-c),m=p+t.slidesSizesGrid[e],f=p>=0&&p<=t.size-t.slidesSizesGrid[e],g=p>=0&&p<t.size-1||m>1&&m<=t.size||p<=0&&m>=t.size;g&&(t.visibleSlides.push(l),t.visibleSlidesIndexes.push(e)),Ht(l,g,n.slideVisibleClass),Ht(l,f,n.slideFullyVisibleClass),l.progress=s?-u:u,l.originalProgress=s?-h:h}},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:s,isBeginning:r,isEnd:a}=t,o=t.progressLoop;const l=r,c=a;if(0===i)s=0,r=!0,a=!0;else{s=(e-t.minTranslate())/i;const n=Math.abs(e-t.minTranslate())<1,o=Math.abs(e-t.maxTranslate())<1;r=n||s<=0,a=o||s>=1,n&&(s=0),o&&(s=1)}if(n.loop){const n=t.getSlideIndexByData(0),i=t.getSlideIndexByData(t.slides.length-1),s=t.slidesGrid[n],r=t.slidesGrid[i],a=t.slidesGrid[t.slidesGrid.length-1],l=Math.abs(e);o=l>=s?(l-s)/a:(l+a-r)/a,o>1&&(o-=1)}Object.assign(t,{progress:s,progressLoop:o,isBeginning:r,isEnd:a}),(n.watchSlidesProgress||n.centeredSlides&&n.autoHeight)&&t.updateSlidesProgress(e),r&&!l&&t.emit("reachBeginning toEdge"),a&&!c&&t.emit("reachEnd toEdge"),(l&&!r||c&&!a)&&t.emit("fromEdge"),t.emit("progress",s)},updateSlidesClasses:function(){const e=this,{slides:t,params:n,slidesEl:i,activeIndex:s}=e,r=!(!e.virtual||!n.virtual?.enabled),a=e.grid&&n.grid&&n.grid.rows>1,o=e=>nt(i,`.${n.slideClass}${e}, swiper-slide${e}`)[0];let l,c,d;if(r)if(n.loop){const t=e.virtual.slides;let n=s-(e.virtual.slidesBefore??0);n<0&&(n=t.length+n),n>=t.length&&(n-=t.length),l=o(`[data-swiper-slide-index="${n}"]`)}else l=o(`[data-swiper-slide-index="${s}"]`);else a?(l=t.find(e=>e.column===s),d=t.find(e=>e.column===s+1),c=t.find(e=>e.column===s-1)):l=t[s];l&&(a||(d=function(e,t){const n=[];let i=e.nextElementSibling;for(;i;)t&&!i.matches(t)||n.push(i),i=i.nextElementSibling;return n}(l,`.${n.slideClass}, swiper-slide`)[0],n.loop&&!d&&(d=t[0]),c=function(e,t){const n=[];let i=e.previousElementSibling;for(;i;)t&&!i.matches(t)||n.push(i),i=i.previousElementSibling;return n}(l,`.${n.slideClass}, swiper-slide`)[0],n.loop&&0===!c&&(c=t[t.length-1]))),t.forEach(e=>{Ft(e,e===l,n.slideActiveClass),Ft(e,e===d,n.slideNextClass),Ft(e,e===c,n.slidePrevClass)}),e.emitSlidesClasses()},updateActiveIndex:function(e){const t=this,n=t.rtlTranslate?t.translate:-t.translate,{snapGrid:i,params:s,activeIndex:r,realIndex:a,snapIndex:o}=t;let l,c=e;const d=e=>{const n=t.virtual.slides;let i=e-(t.virtual.slidesBefore??0);return i<0&&(i=n.length+i),i>=n.length&&(i-=n.length),i};if(void 0===c&&(c=function(e){const{slidesGrid:t,params:n}=e,i=e.rtlTranslate?e.translate:-e.translate;let s;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?s=e:i>=t[e]&&i<t[e+1]&&(s=e+1):i>=t[e]&&(s=e);return n.normalizeSlideIndex&&(s<0||void 0===s)&&(s=0),s}(t)),i.indexOf(n)>=0)l=i.indexOf(n);else{const e=Math.min(s.slidesPerGroupSkip,c);l=e+Math.floor((c-e)/s.slidesPerGroup)}if(l>=i.length&&(l=i.length-1),c===r&&!t.params.loop)return void(l!==o&&(t.snapIndex=l,t.emit("snapIndexChange")));if(c===r&&t.params.loop&&t.virtual&&t.params.virtual?.enabled)return void(t.realIndex=d(c));const u=t.grid&&s.grid&&s.grid.rows>1;let h;if(t.virtual&&s.virtual?.enabled)h=s.loop?d(c):c;else if(u){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)),h=Math.floor(n/s.grid.rows)}else if(t.slides[c]){const e=t.slides[c].getAttribute("data-swiper-slide-index");h=e?parseInt(e,10):c}else h=c;Object.assign(t,{previousSnapIndex:o,snapIndex:l,previousRealIndex:a,realIndex:h,previousIndex:r,activeIndex:c}),t.initialized&&yt(t),t.emit("activeIndexChange"),t.emit("snapIndexChange"),(t.initialized||t.params.runCallbacksOnInit)&&(a!==h&&t.emit("realIndexChange"),t.emit("slideChange"))},updateClickedSlide:function(e,t){const n=this,i=n.params;let s=e.closest(`.${i.slideClass}, swiper-slide`);!s&&n.isElement&&t&&t.length>1&&t.includes(e)&&[...t.slice(t.indexOf(e)+1,t.length)].forEach(e=>{!s&&e.matches&&e.matches(`.${i.slideClass}, swiper-slide`)&&(s=e)});let r,a=!1;if(s)for(let e=0;e<n.slides.length;e+=1)if(n.slides[e]===s){a=!0,r=e;break}if(!s||!a)return n.clickedSlide=void 0,void(n.clickedIndex=void 0);n.clickedSlide=s,n.virtual&&n.params.virtual?.enabled?n.clickedIndex=parseInt(s.getAttribute("data-swiper-slide-index"),10):n.clickedIndex=r,i.slideToClickedSlide&&void 0!==n.clickedIndex&&n.clickedIndex!==n.activeIndex&&n.slideToClickedSlide()}};const Vt={eventsEmitter:Et,update:Bt,translate:zt,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(),Rt({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),Rt({swiper:n,runCallbacks:e,direction:t,step:"End"}))}},slide:It,loop:$t,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=Dt.bind(e),e.onTouchMove=Ot.bind(e),e.onTouchEnd=At.bind(e),e.onDocumentTouchStart=Ct.bind(e),t.cssMode&&(e.onScroll=jt.bind(e)),e.onClick=Nt.bind(e),e.onLoad=kt.bind(e),Mt(e,"on")},detachEvents:function(){Mt(this,"off")}},breakpoints:xt,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:wt},qt={};class Wt{static extendedDefaults;static defaults;constructor(...e){let t,n;if(1===e.length&&null!==e[0]&&"object"==typeof e[0]&&"Object"===Object.prototype.toString.call(e[0]).slice(8,-1)?n=e[0]:[t,n]=e,n||(n={}),n=et({},n),t&&!n.el&&(n.el=t),n.el&&"string"==typeof n.el&&"undefined"!=typeof document&&document.querySelectorAll(n.el).length>1){const e=[];return document.querySelectorAll(n.el).forEach(t=>{const i=et({},n,{el:t});e.push(new Wt(i))}),e}const i=this;i.__swiper__=!0,i.support=mt(),i.device=ft({userAgent:n.userAgent??void 0}),i.browser=gt(),i.eventsListeners={},i.eventsAnyListeners=[],i.modules=[...i.__modules__||[]],n.modules&&Array.isArray(n.modules)&&n.modules.forEach(e=>{const t=e;"function"==typeof t&&i.modules.indexOf(t)<0&&i.modules.push(t)});const s={};i.modules.forEach(e=>{e({params:n,swiper:i,extendParams:Pt(n,s),on:i.on.bind(i),once:i.once.bind(i),off:i.off.bind(i),emit:i.emit.bind(i)})});const r=et({},St,s);if(i.params=et({},r,qt,n),i.originalParams=et({},i.params),i.passedParams=et({},n),i.params&&i.params.on){const e=i.params.on;Object.keys(e).forEach(t=>{const n=e[t];n&&i.on(t,n)})}return i.params&&i.params.onAny&&i.onAny(i.params.onAny),Object.assign(i,{enabled:i.params.enabled,el:t,classNames:[],slides:[],slidesGrid:[],snapGrid:[],slidesSizesGrid:[],isHorizontal:()=>"horizontal"===i.params.direction,isVertical:()=>"vertical"===i.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:i.params.allowSlideNext,allowSlidePrev:i.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:i.params.focusableElements,lastClickTime:0,clickTimeout:void 0,velocities:[],allowMomentumBounce:void 0,startMoving:void 0,pointerId:null,touchId:null},allowClick:!0,allowTouchMove:i.params.allowTouchMove,touches:{startX:0,startY:0,currentX:0,currentY:0,diff:0},imagesToLoad:[],imagesLoaded:0}),i.emit("_swiper"),i.params.init&&i.init(),i}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]}isHorizontal(){return"horizontal"===this.params.direction}isVertical(){return"vertical"===this.params.direction}cssOverflowAdjustment(){return Math.trunc(this.translate/2**23)*2**23}getSlideIndex(e){const{slidesEl:t,params:n}=this,i=at(nt(t,`.${n.slideClass}, swiper-slide`)[0]);return at(e)-(i??0)}getSlideIndexByData(e){return this.getSlideIndex(this.slides.find(t=>Number(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=nt(e,`.${t.slideClass}, swiper-slide`)}enable(){this.enabled||(this.enabled=!0,this.params.grabCursor&&this.setGrabCursor(),this.emit("enable"))}disable(){this.enabled&&(this.enabled=!1,this.params.grabCursor&&this.unsetGrabCursor(),this.emit("disable"))}setProgress(e,t){e=Math.min(Math.max(e,0),1);const n=this.minTranslate(),i=(this.maxTranslate()-n)*e+n;this.translateTo(i,void 0===t?0:t),this.updateActiveIndex(),this.updateSlidesClasses()}emitContainerClasses(){if(!this.params._emitClasses||!this.el)return;const e=this.el.className.split(" ").filter(e=>0===e.indexOf("swiper")||0===e.indexOf(this.params.containerModifierClass));this.emit("_containerClasses",e.join(" "))}getSlideClasses(e){return this.destroyed?"":e.className.split(" ").filter(e=>0===e.indexOf("swiper-slide")||0===e.indexOf(this.params.slideClass)).join(" ")}emitSlidesClasses(){if(!this.params._emitClasses||!this.el)return;const e=[];this.slides.forEach(t=>{const n=this.getSlideClasses(t);e.push({slideEl:t,classNames:n}),this.emit("_slideClass",t,n)}),this.emit("_slideClasses",e)}slidesPerViewDynamic(e="current",t=!1){const{params:n,slides:i,slidesGrid:s,slidesSizesGrid:r,size:a,activeIndex:o}=this;let l=1;if("number"==typeof n.slidesPerView)return n.slidesPerView;if(!a)return l;if(n.centeredSlides){let e=i[o]?Math.ceil(i[o].swiperSlideSize??0):0,t=!1;for(let n=o+1;n<i.length;n+=1)i[n]&&!t&&(e+=Math.ceil(i[n].swiperSlideSize??0),l+=1,e>a&&(t=!0));for(let n=o-1;n>=0;n-=1)i[n]&&!t&&(e+=i[n].swiperSlideSize??0,l+=1,e>a&&(t=!0))}else if("current"===e)for(let e=o+1;e<i.length;e+=1)(t?s[e]+r[e]-s[o]<a:s[e]-s[o]<a)&&(l+=1);else for(let e=o-1;e>=0;e-=1)s[o]-s[e]<a&&(l+=1);return l}update(){const e=this;if(!e||e.destroyed)return;const{snapGrid:t,params:n}=e;function i(){const t=e.rtlTranslate?-1*e.translate:e.translate,n=Math.min(Math.max(t,e.maxTranslate()),e.minTranslate());e.setTranslate(n),e.updateActiveIndex(),e.updateSlidesClasses()}let s;if(n.breakpoints&&e.setBreakpoint(),[...e.el.querySelectorAll('[loading="lazy"]')].forEach(t=>{t.complete&&vt(e,t)}),e.updateSize(),e.updateSlides(),e.updateProgress(),e.updateSlidesClasses(),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.length:e.slides.length;s=e.slideTo(t-1,0,!1,!0)}else s=e.slideTo(e.activeIndex,0,!1,!0);s||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;if("undefined"==typeof document)return!1;const n=e??t.params.el;let i=null;if("string"==typeof n?i=document.querySelector(n):n instanceof HTMLElement&&(i=n),!i)return!1;i.swiper=t;const s=i.parentNode;s&&s.host&&s.host.nodeName===t.params.swiperElementNodeName.toUpperCase()&&(t.isElement=!0);const r=()=>`.${(t.params.wrapperClass||"").trim().split(" ").join(".")}`;let a=i&&i.shadowRoot?i.shadowRoot.querySelector(r()):nt(i,r())[0];!a&&t.params.createElements&&(a=it("div",t.params.wrapperClass),i.append(a),nt(i,`.${t.params.slideClass}`).forEach(e=>{a.append(e)}));const o=t.isElement?i.parentNode.host:null;return Object.assign(t,{el:i,wrapperEl:a,slidesEl:t.isElement&&!o.slideSlots?o:a,hostEl:t.isElement?o:i,mounted:!0,rtl:"rtl"===i.dir.toLowerCase()||"rtl"===rt(i,"direction"),rtlTranslate:"horizontal"===t.params.direction&&("rtl"===i.dir.toLowerCase()||"rtl"===rt(i,"direction")),wrongRTL:"-webkit-box"===rt(a,"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??0)+(t.virtual.slidesBefore??0),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?vt(t,e):e.addEventListener("load",e=>{vt(t,e.target)})}),yt(t),t.initialized=!0,yt(t),t.emit("init"),t.emit("afterInit"),t}destroy(e=!0,t=!0){const n=this,{params:i,el:s,wrapperEl:r,slides:a}=n;return void 0===n.params||n.destroyed||(n.emit("beforeDestroy"),n.initialized=!1,n.detachEvents(),i.loop&&n.loopDestroy(),t&&(n.removeClasses(),s&&"string"!=typeof s&&s.removeAttribute("style"),r&&r.removeAttribute("style"),a&&a.length&&a.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),o=n,Object.keys(o).forEach(e=>{try{o[e]=null}catch{}try{delete o[e]}catch{}})),n.destroyed=!0),null;var o}static extendDefaults(e){et(qt,e)}static installModule(e){Wt.prototype.__modules__||(Wt.prototype.__modules__=[]);const t=Wt.prototype.__modules__;"function"==typeof e&&t.indexOf(e)<0&&t.push(e)}static use(e){return Array.isArray(e)?(e.forEach(e=>Wt.installModule(e)),Wt):(Wt.installModule(e),Wt)}}Object.defineProperty(Wt,"extendedDefaults",{get:()=>qt}),Object.defineProperty(Wt,"defaults",{get:()=>St});const Ut=Vt,Gt=Wt.prototype;Object.keys(Ut).forEach(e=>{const t=Ut[e];Object.keys(t).forEach(e=>{Gt[e]=t[e]})}),Wt.use([({swiper:e,on:t,emit:n})=>{let i=null,s=null;const r=()=>{e&&!e.destroyed&&e.initialized&&(n("beforeResize"),n("resize"))},a=()=>{e&&!e.destroyed&&e.initialized&&n("orientationchange")};t("init",()=>{e.params.resizeObserver&&void 0!==window.ResizeObserver?e&&!e.destroyed&&e.initialized&&(i=new ResizeObserver(t=>{s=window.requestAnimationFrame(()=>{const{width:n,height:i}=e;let s=n,a=i;t.forEach(({contentBoxSize:t,contentRect:n,target:i})=>{if(i&&i!==e.el)return;const r=Array.isArray(t)?t[0]:t;s=n?n.width:r.inlineSize,a=n?n.height:r.blockSize}),s===n&&a===i||r()})}),i.observe(e.el)):(window.addEventListener("resize",r),window.addEventListener("orientationchange",a))}),t("destroy",()=>{s&&window.cancelAnimationFrame(s),i&&i.unobserve&&e.el&&(i.unobserve(e.el),i=null),window.removeEventListener("resize",r),window.removeEventListener("orientationchange",a)})},({swiper:e,extendParams:t,on:n})=>{const i=[],s=(t,n={})=>{const s=window.MutationObserver||window.WebkitMutationObserver;if(!s)return;const r=new s(t=>{if(e.__preventObserver__)return;if(1===t.length)return void e.emit("observerUpdate",t[0]);const n=function(){e.emit("observerUpdate",t[0])};window.requestAnimationFrame?window.requestAnimationFrame(n):window.setTimeout(n,0)});r.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}),i.push(r)};t({observer:!1,observeParents:!1,observeSlideChildren:!1}),n("init",()=>{if(e.params.observer){if(e.params.observeParents){const t=ot(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",()=>{i.forEach(e=>{e.disconnect()}),i.splice(0,i.length)})}]);const Yt=({swiper:e,extendParams:t,on:n,emit:i})=>{function s(){return e.params.keyboard}function r(t){if(!e.enabled)return;const{rtlTranslate:n}=e,r="originalEvent"in t&&t.originalEvent?t.originalEvent:t,a=r.keyCode||r.charCode,o=s(),l=!!o.pageUpDown,c=l&&33===a,d=l&&34===a,u=37===a,h=39===a,p=38===a,m=40===a;if(!e.allowSlideNext&&(e.isHorizontal()&&h||e.isVertical()&&m||d))return!1;if(!e.allowSlidePrev&&(e.isHorizontal()&&u||e.isVertical()&&p||c))return!1;if(r.shiftKey||r.altKey||r.ctrlKey||r.metaKey)return;const f=document.activeElement;if(f&&(f.isContentEditable||f.nodeName&&("input"===f.nodeName.toLowerCase()||"textarea"===f.nodeName.toLowerCase())))return;if(o.onlyInViewport&&(c||d||u||h||p||m)){let t=!1;if(ot(e.el,`.${e.params.slideClass}, swiper-slide`).length>0&&0===ot(e.el,`.${e.params.slideActiveClass}`).length)return;const i=e.el,s=i.clientWidth,r=i.clientHeight,a=window.innerWidth,o=window.innerHeight,l=st(i);n&&(l.left-=i.scrollLeft);const c=[[l.left,l.top],[l.left+s,l.top],[l.left,l.top+r],[l.left+s,l.top+r]];for(let e=0;e<c.length;e+=1){const n=c[e];if(n[0]>=0&&n[0]<=a&&n[1]>=0&&n[1]<=o){if(0===n[0]&&0===n[1])continue;t=!0}}if(!t)return}const g=o.speed;e.isHorizontal()?((c||d||u||h)&&r.cancelable&&r.preventDefault(),((d||h)&&!n||(c||u)&&n)&&e.slideNext(g),((c||u)&&!n||(d||h)&&n)&&e.slidePrev(g)):((c||d||p||m)&&r.cancelable&&r.preventDefault(),(d||m)&&e.slideNext(g),(c||p)&&e.slidePrev(g)),i("keyPress",a)}function a(){e.keyboard.enabled||(document.addEventListener("keydown",r),e.keyboard.enabled=!0)}function o(){e.keyboard.enabled&&(document.removeEventListener("keydown",r),e.keyboard.enabled=!1)}t({keyboard:{enabled:!1,onlyInViewport:!0,pageUpDown:!0,speed:void 0}}),e.keyboard={enabled:!1,enable:a,disable:o},n("init",()=>{s().enabled&&a()}),n("destroy",()=>{e.keyboard.enabled&&o()})},Xt=({swiper:e,extendParams:t,on:n,emit:i})=>{let s;t({mousewheel:{enabled:!1,releaseOnEdges:!1,invert:!1,forceToAxis:!1,sensitivity:1,eventsTarget:"container",thresholdDelta:null,thresholdTime:null,noMousewheelClass:"swiper-no-mousewheel"}});let r,a=Ze(),o=!1;const l=[];function c(){return e.params.mousewheel}function d(){e.enabled&&(o=!0)}function u(){e.enabled&&(o=!1)}function h(t){const n=c();return!(n.thresholdDelta&&t.delta<n.thresholdDelta||n.thresholdTime&&Ze()-a<n.thresholdTime||!(t.delta>=6&&Ze()-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 window.Date).getTime(),1))}function p(t){let n="originalEvent"in t&&t.originalEvent?t.originalEvent:t,a=!0;if(!e.enabled)return!1;const d=c();if(t.target.closest(`.${d.noMousewheelClass}`))return!1;e.params.cssMode&&n.preventDefault();let u=e.el;"container"!==d.eventsTarget&&(u=document.querySelector(d.eventsTarget));const p=u&&u.contains(n.target);if(!o&&!p&&!d.releaseOnEdges)return!0;let m=0;const f=e.rtlTranslate?-1:1,g=function(e){const t=e;let n=0,i=0,s=0,r=0;return void 0!==t.detail&&(i=t.detail),void 0!==t.wheelDelta&&(i=-t.wheelDelta/120),void 0!==t.wheelDeltaY&&(i=-t.wheelDeltaY/120),void 0!==t.wheelDeltaX&&(n=-t.wheelDeltaX/120),void 0!==t.axis&&void 0!==t.HORIZONTAL_AXIS&&t.axis===t.HORIZONTAL_AXIS&&(n=i,i=0),s=10*n,r=10*i,void 0!==t.deltaY&&(r=t.deltaY),void 0!==t.deltaX&&(s=t.deltaX),t.shiftKey&&!s&&(s=r,r=0),(s||r)&&t.deltaMode&&(1===t.deltaMode?(s*=40,r*=40):(s*=800,r*=800)),s&&!n&&(n=s<1?-1:1),r&&!i&&(i=r<1?-1:1),{spinX:n,spinY:i,pixelX:s,pixelY:r}}(n);if(d.forceToAxis)if(e.isHorizontal()){if(!(Math.abs(g.pixelX)>Math.abs(g.pixelY)))return!0;m=-g.pixelX*f}else{if(!(Math.abs(g.pixelY)>Math.abs(g.pixelX)))return!0;m=-g.pixelY}else m=Math.abs(g.pixelX)>Math.abs(g.pixelY)?-g.pixelX*f:-g.pixelY;if(0===m)return!0;d.invert&&(m=-m);let v=e.getTranslate()+m*(d.sensitivity??1);v>=e.minTranslate()&&(v=e.minTranslate()),v<=e.maxTranslate()&&(v=e.maxTranslate()),a=!!e.params.loop||!(v===e.minTranslate()||v===e.maxTranslate()),a&&e.params.nested&&n.stopPropagation();const b=e.params.freeMode;if(e.params.freeMode&&b?.enabled){const t={time:Ze(),delta:Math.abs(m),direction:Math.sign(m)},a=r&&t.time<r.time+500&&t.delta<=r.delta&&t.direction===r.direction;if(!a){r=void 0;let o=e.getTranslate()+m*(d.sensitivity??1);const c=e.isBeginning,u=e.isEnd;if(o>=e.minTranslate()&&(o=e.minTranslate()),o<=e.maxTranslate()&&(o=e.maxTranslate()),e.setTransition(0),e.setTranslate(o),e.updateProgress(),e.updateActiveIndex(),e.updateSlidesClasses(),(!c&&e.isBeginning||!u&&e.isEnd)&&e.updateSlidesClasses(),e.params.loop&&e.loopFix({direction:t.direction<0?"next":"prev",byMousewheel:!0}),b?.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&&i&&t.time-i.time<500&&i.delta-t.delta>=1&&t.delta<=6){const n=m>0?.8:.2;r=t,l.splice(0),s=Ke(()=>{!e.destroyed&&e.params&&e.slideToClosest(e.params.speed,!0,void 0,n)},0)}s||(s=Ke(()=>{!e.destroyed&&e.params&&(r=t,l.splice(0),e.slideToClosest(e.params.speed,!0,void 0,.5))},500))}a||i("scroll",n);const h=e.params.autoplay;if(e.params.autoplay&&h?.disableOnInteraction&&e.autoplay.stop(),d.releaseOnEdges&&(o===e.minTranslate()||o===e.maxTranslate()))return!0}}else{const n={time:Ze(),delta:Math.abs(m),direction:Math.sign(m),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)&&h(n):h(n),function(t){const n=c();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.cancelable&&n.preventDefault(),!1}function m(t){const n=c();let i=e.el;"container"!==n.eventsTarget&&(i=document.querySelector(n.eventsTarget)),i[t]("mouseenter",d),i[t]("mouseleave",u),i[t]("wheel",p)}function f(){return e.params.cssMode?(e.wrapperEl.removeEventListener("wheel",p),!0):!e.mousewheel.enabled&&(m("addEventListener"),e.mousewheel.enabled=!0,!0)}function g(){return e.params.cssMode?(e.wrapperEl.addEventListener("wheel",p),!0):!!e.mousewheel.enabled&&(m("removeEventListener"),e.mousewheel.enabled=!1,!0)}n("init",()=>{const t=c();!t.enabled&&e.params.cssMode&&g(),t.enabled&&f()}),e.mousewheel={enabled:!1,enable:f,disable:g},n("destroy",()=>{e.params.cssMode&&f(),e.mousewheel.enabled&&g()})};function Kt(e,t,n,i){const s=n??{},r=t??{};return e.params.createElements&&Object.keys(i).forEach(t=>{if(!s[t]&&!0===s.auto){let n=nt(e.el,`.${i[t]}`)[0];n||(n=it("div",i[t]),n.className=i[t],e.el.append(n)),s[t]=n,r[t]=n}}),s}const Zt='<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>',Jt=({swiper:e,extendParams:t,on:n,emit:i})=>{function s(){return e.params.navigation}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 a(t,n){const i=s();ct(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 a(n,!1),void a(t,!1);a(n,e.isBeginning&&!e.params.rewind),a(t,e.isEnd&&!e.params.rewind)}function l(t){t.preventDefault(),(!e.isBeginning||e.params.loop||e.params.rewind)&&(e.slidePrev(),i("navigationPrev"))}function c(t){t.preventDefault(),(!e.isEnd||e.params.loop||e.params.rewind)&&(e.slideNext(),i("navigationNext"))}function d(){e.params.navigation=Kt(e,e.originalParams.navigation,e.params.navigation,{nextEl:"swiper-button-next",prevEl:"swiper-button-prev"});const t=s();if(!t.nextEl&&!t.prevEl)return;const n=r(t.nextEl),i=r(t.prevEl);Object.assign(e.navigation,{nextEl:n,prevEl:i});const a=ct(n),o=ct(i),d=(n,i)=>{if(n){if(t.addIcons&&n.matches(".swiper-button-next,.swiper-button-prev")&&!n.querySelector("svg")){const e=document.createElement("div");dt(e,Zt);const t=e.querySelector("svg");t&&n.appendChild(t),e.remove()}n.addEventListener("click","next"===i?c:l)}!e.enabled&&n&&n.classList.add(...t.lockClass.split(" "))};a.forEach(e=>d(e,"next")),o.forEach(e=>d(e,"prev"))}function u(){const t=s(),{nextEl:n,prevEl:i}=e.navigation,r=ct(n),a=ct(i),o=(e,n)=>{e.removeEventListener("click","next"===n?c:l),e.classList.remove(...t.disabledClass.split(" "))};r.forEach(e=>o(e,"next")),a.forEach(e=>o(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:Zt},n("init",()=>{!1===s().enabled?h():(d(),o())}),n("toEdge fromEdge lock unlock",()=>{o()}),n("destroy",()=>{u()}),n("enable disable",()=>{const t=s(),{nextEl:n,prevEl:i}=e.navigation,r=ct(n),a=ct(i);e.enabled?o():[...r,...a].filter(e=>!!e).forEach(e=>e.classList.add(t.lockClass))}),n("click",(t,n)=>{const r=s(),{nextEl:a,prevEl:o}=e.navigation,l=ct(a),c=ct(o),d=n.target;let u=c.includes(d)||l.includes(d);if(e.isElement&&!u){const e=n.composedPath?n.composedPath():[];e.length&&(u=e.find(e=>l.includes(e)||c.includes(e)))}if(r.hideOnClick&&!u){if(e.pagination&&e.params.pagination&&e.params.pagination.clickable&&(e.pagination.el===d||e.pagination.el.contains(d)))return;let t;l.length?t=l[0].classList.contains(r.hiddenClass):c.length&&(t=c[0].classList.contains(r.hiddenClass)),i(!0===t?"navigationShow":"navigationHide"),[...l,...c].filter(e=>!!e).forEach(e=>e.classList.toggle(r.hiddenClass))}});const h=()=>{const t=s();e.el.classList.add(...t.navigationDisabledClass.split(" ")),u()};Object.assign(e.navigation,{enable:()=>{const t=s();e.el.classList.remove(...t.navigationDisabledClass.split(" ")),d(),o()},disable:h,update:o,init:d,destroy:u})};function Qt(e=""){return`.${e.trim().replace(/([.:!+/()[\]#>~*^$|=,'"@{}\\])/g,"\\$1").replace(/ /g,".")}`}const en=e=>{if((e=>!!e.virtual&&!!e.params.virtual?.enabled)(e))return e.virtual.slides.length;const t=e.params.grid?.rows;return e.grid&&t&&t>1?e.slides.length/Math.ceil(t):e.slides.length},tn=({swiper:e,extendParams:t,on:n,emit:i})=>{const s="swiper-pagination";let r;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:`${s}-bullet`,bulletActiveClass:`${s}-bullet-active`,modifierClass:`${s}-`,currentClass:`${s}-current`,totalClass:`${s}-total`,hiddenClass:`${s}-hidden`,progressbarFillClass:`${s}-progressbar-fill`,progressbarOppositeClass:`${s}-progressbar-opposite`,clickableClass:`${s}-clickable`,lockClass:`${s}-lock`,horizontalClass:`${s}-horizontal`,verticalClass:`${s}-vertical`,paginationDisabledClass:`${s}-disabled`}}),e.pagination={el:null,bullets:[]};let a=0;function o(){return e.params.pagination}function l(){return!o().el||!e.pagination.el||Array.isArray(e.pagination.el)&&0===e.pagination.el.length}function c(e,t){const{bulletActiveClass:n}=o();if(!e)return;let i=e[("prev"===t?"previous":"next")+"ElementSibling"];i&&(i.classList.add(`${n}-${t}`),i=i[("prev"===t?"previous":"next")+"ElementSibling"],i&&i.classList.add(`${n}-${t}-${t}`))}function d(t){const n=t.target.closest(Qt(o().bulletClass));if(!n)return;t.preventDefault();const i=(at(n)??0)*(e.params.slidesPerGroup??1);if(e.params.loop){if(e.realIndex===i)return;const t=(s=e.realIndex,r=i,(r%=a=e.slides.length)===1+(s%=a)?"next":r===s-1?"previous":void 0);"next"===t?e.slideNext():"previous"===t?e.slidePrev():e.slideToLoop(i)}else e.slideTo(i);var s,r,a}function u(){const t=e.rtl,n=o();if(l())return;const s=ct(e.pagination.el);let d,u;const h=en(e),p=e.params.loop?Math.ceil(h/(e.params.slidesPerGroup??1)):e.snapGrid.length;if(e.params.loop?(u=e.previousRealIndex||0,d=(e.params.slidesPerGroup??1)>1?Math.floor(e.realIndex/(e.params.slidesPerGroup??1)):e.realIndex):void 0!==e.snapIndex?(d=e.snapIndex,u=e.previousSnapIndex):(u=e.previousIndex||0,d=e.activeIndex||0),"bullets"===n.type&&e.pagination.bullets&&e.pagination.bullets.length>0){const i=e.pagination.bullets;let o=0,l=0,h=0;if(n.dynamicBullets){r=lt(i[0],e.isHorizontal()?"width":"height");const t=e.isHorizontal()?"width":"height";s.forEach(e=>{e.style[t]=(r??0)*(n.dynamicMainBullets+4)+"px"}),n.dynamicMainBullets>1&&void 0!==u&&(a+=d-(u||0),a>n.dynamicMainBullets-1?a=n.dynamicMainBullets-1:a<0&&(a=0)),o=Math.max(d-a,0),l=o+(Math.min(i.length,n.dynamicMainBullets)-1),h=(l+o)/2}if(i.forEach(e=>{const t=["","-next","-next-next","-prev","-prev-prev","-main"].map(e=>`${n.bulletActiveClass}${e}`).flatMap(e=>"string"==typeof e&&e.includes(" ")?e.split(" "):[e]);e.classList.remove(...t)}),s.length>1)i.forEach(t=>{const i=at(t);i===d?t.classList.add(...n.bulletActiveClass.split(" ")):e.isElement&&t.setAttribute("part","bullet"),n.dynamicBullets&&void 0!==i&&(i>=o&&i<=l&&t.classList.add(...`${n.bulletActiveClass}-main`.split(" ")),i===o&&c(t,"prev"),i===l&&c(t,"next"))});else{const t=i[d];if(t&&t.classList.add(...n.bulletActiveClass.split(" ")),e.isElement&&i.forEach((e,t)=>{e.setAttribute("part",t===d?"bullet-active":"bullet")}),n.dynamicBullets){const e=i[o],t=i[l];for(let e=o;e<=l;e+=1)i[e]&&i[e].classList.add(...`${n.bulletActiveClass}-main`.split(" "));c(e,"prev"),c(t,"next")}}if(n.dynamicBullets){const s=Math.min(i.length,n.dynamicMainBullets+4),a=((r??0)*s-(r??0))/2-h*(r??0),o=t?"right":"left",l=e.isHorizontal()?o:"top";i.forEach(e=>{e.style[l]=`${a}px`})}}s.forEach((t,s)=>{if("fraction"===n.type&&(t.querySelectorAll(Qt(n.currentClass)).forEach(e=>{e.textContent=String(n.formatFractionCurrent(d+1))}),t.querySelectorAll(Qt(n.totalClass)).forEach(e=>{e.textContent=String(n.formatFractionTotal(p))})),"progressbar"===n.type){let i;i=n.progressbarOpposite?e.isHorizontal()?"vertical":"horizontal":e.isHorizontal()?"horizontal":"vertical";const s=(d+1)/p;let r=1,a=1;"horizontal"===i?r=s:a=s,t.querySelectorAll(Qt(n.progressbarFillClass)).forEach(t=>{t.style.transform=`translate3d(0,0,0) scaleX(${r}) scaleY(${a})`,t.style.transitionDuration=`${e.params.speed}ms`})}"custom"===n.type&&n.renderCustom?(dt(t,n.renderCustom(e,d+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 h(){const t=o();if(l())return;const n=en(e),s=ct(e.pagination.el);let r="";if("bullets"===t.type){let i=e.params.loop?Math.ceil(n/(e.params.slidesPerGroup??1)):e.snapGrid.length;e.params.freeMode&&(e=>!!e.params.freeMode?.enabled)(e)&&i>n&&(i=n);for(let n=0;n<i;n+=1)t.renderBullet?r+=t.renderBullet.call(e,n,t.bulletClass):r+=`<${t.bulletElement} ${e.isElement?'part="bullet"':""} class="${t.bulletClass}"></${t.bulletElement}>`}"fraction"===t.type&&(r=t.renderFraction?t.renderFraction.call(e,t.currentClass,t.totalClass):`<span class="${t.currentClass}"></span> / <span class="${t.totalClass}"></span>`),"progressbar"===t.type&&(r=t.renderProgressbar?t.renderProgressbar.call(e,t.progressbarFillClass):`<span class="${t.progressbarFillClass}"></span>`),e.pagination.bullets=[],s.forEach(n=>{"custom"!==t.type&&dt(n,r||""),"bullets"===t.type&&e.pagination.bullets.push(...Array.from(n.querySelectorAll(Qt(t.bulletClass))))}),"custom"!==t.type&&i("paginationRender",s[0])}function p(){e.params.pagination=Kt(e,e.originalParams.pagination,e.params.pagination,{el:"swiper-pagination"});const t=o();if(!t.el)return;let n;if("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&&(!Array.isArray(n)||0!==n.length)){if(e.params.uniqueNavElements&&"string"==typeof t.el&&Array.isArray(n)&&n.length>1&&(n=[...e.el.querySelectorAll(t.el)],n.length>1)){const t=n.find(t=>ot(t,".swiper")[0]===e.el);t&&(n=t)}Array.isArray(n)&&1===n.length&&(n=n[0]),Object.assign(e.pagination,{el:n}),ct(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`),a=0,t.dynamicMainBullets<1&&(t.dynamicMainBullets=1)),"progressbar"===t.type&&t.progressbarOpposite&&n.classList.add(t.progressbarOppositeClass),t.clickable&&n.addEventListener("click",d),e.enabled||n.classList.add(t.lockClass)})}}function m(){const t=o();if(l())return;const n=e.pagination.el;n&&ct(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",d))}),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=o();ct(e.pagination.el).forEach(n=>{n.classList.remove(t.horizontalClass,t.verticalClass),n.classList.add(e.isHorizontal()?t.horizontalClass:t.verticalClass)})}),n("init",()=>{!1===o().enabled?f():(p(),h(),u())}),n("activeIndexChange",()=>{void 0===e.snapIndex&&u()}),n("snapIndexChange",()=>{u()}),n("snapGridLengthChange",()=>{h(),u()}),n("destroy",()=>{m()}),n("enable disable",()=>{const{el:t}=e.pagination;if(t){const n=o();ct(t).forEach(t=>t.classList[e.enabled?"remove":"add"](n.lockClass))}}),n("lock unlock",()=>{u()}),n("click",(t,n)=>{const s=n.target,r=ct(e.pagination.el),a=o();if(a.el&&a.hideOnClick&&r&&r.length>0&&!s.classList.contains(a.bulletClass)){if(e.navigation&&(e.navigation.nextEl&&s===e.navigation.nextEl||e.navigation.prevEl&&s===e.navigation.prevEl))return;const t=r[0].classList.contains(a.hiddenClass);i(!0===t?"paginationShow":"paginationHide"),r.forEach(e=>e.classList.toggle(a.hiddenClass))}});const f=()=>{const t=o();e.el.classList.add(t.paginationDisabledClass);const{el:n}=e.pagination;n&&ct(n).forEach(e=>e.classList.add(t.paginationDisabledClass)),m()};Object.assign(e.pagination,{enable:()=>{const t=o();e.el.classList.remove(t.paginationDisabledClass);const{el:n}=e.pagination;n&&ct(n).forEach(e=>e.classList.remove(t.paginationDisabledClass)),p(),h(),u()},disable:f,render:h,update:u,init:p,destroy:m})},nn=({swiper:e,extendParams:t,on:n,emit:i})=>{let s=!1,r=null,a=null,o=0,l=0,c=0,d=0;function u(){return e.params.scrollbar}function h(){const t=u();if(!t.el||!e.scrollbar.el)return;const{scrollbar:n,rtlTranslate:i}=e,{dragEl:s,el:a}=n,o=e.params.loop?e.progressLoop??0:e.progress;let d=l,h=(c-l)*o;i?(h=-h,h>0?(d=l-h,h=0):-h+l>c&&(d=c+h)):h<0?(d=l+h,h=0):h+l>c&&(d=c-h),e.isHorizontal()?(s.style.transform=`translate3d(${h}px, 0, 0)`,s.style.width=`${d}px`):(s.style.transform=`translate3d(0px, ${h}px, 0)`,s.style.height=`${d}px`),t.hide&&(r&&clearTimeout(r),a.style.opacity="1",r=setTimeout(()=>{a.style.opacity="0",a.style.transitionDuration="400ms"},1e3))}function p(){const t=u();if(!t.el||!e.scrollbar.el)return;const{scrollbar:n}=e,{dragEl:i,el:s}=n;i.style.width="",i.style.height="",c=e.isHorizontal()?s.offsetWidth:s.offsetHeight,d=e.size/(e.virtualSize+(e.params.slidesOffsetBefore??0)-(e.params.centeredSlides?e.snapGrid[0]:0)),l="auto"===t.dragSize?c*d:parseInt(String(t.dragSize),10),e.isHorizontal()?i.style.width=`${l}px`:i.style.height=`${l}px`,s.style.display=d>=1?"none":"",t.hide&&(s.style.opacity="0"),e.params.watchOverflow&&e.enabled&&n.el.classList[e.isLocked?"add":"remove"](t.lockClass)}function m(t){return e.isHorizontal()?t.clientX??t.touches?.[0]?.clientX??0:t.clientY??t.touches?.[0]?.clientY??0}function f(t){const{scrollbar:n,rtlTranslate:i}=e,{el:s}=n;let r;r=(m(t)-st(s)[e.isHorizontal()?"left":"top"]-(null!==o?o:l/2))/(c-l),r=Math.max(Math.min(r,1),0),i&&(r=1-r);const a=e.minTranslate()+(e.maxTranslate()-e.minTranslate())*r;e.updateProgress(a),e.setTranslate(a),e.updateActiveIndex(),e.updateSlidesClasses()}function g(t){const n=u(),{scrollbar:r,wrapperEl:l}=e,{el:c,dragEl:d}=r;s=!0,o=t.target===d?m(t)-t.target.getBoundingClientRect()[e.isHorizontal()?"left":"top"]:null,t.preventDefault(),t.stopPropagation(),l.style.transitionDuration="100ms",d.style.transitionDuration="100ms",f(t),a&&clearTimeout(a),c.style.transitionDuration="0ms",n.hide&&(c.style.opacity="1"),e.params.cssMode&&(e.wrapperEl.style.scrollSnapType="none"),i("scrollbarDragStart",t)}function v(t){const{scrollbar:n,wrapperEl:r}=e,{el:a,dragEl:o}=n;s&&(t.cancelable&&t.preventDefault(),f(t),r.style.transitionDuration="0ms",a.style.transitionDuration="0ms",o.style.transitionDuration="0ms",i("scrollbarDragMove",t))}function b(t){const n=u(),{scrollbar:r,wrapperEl:o}=e,{el:l}=r;s&&(s=!1,e.params.cssMode&&(e.wrapperEl.style.scrollSnapType="",o.style.transitionDuration=""),n.hide&&(a&&clearTimeout(a),a=Ke(()=>{l.style.opacity="0",l.style.transitionDuration="400ms"},1e3)),i("scrollbarDragEnd",t),n.snapOnRelease&&e.slideToClosest())}function y(t){const{scrollbar:n,params:i}=e,s=n.el;if(!s)return;const r=!!i.passiveListeners&&{passive:!1,capture:!1},a=!!i.passiveListeners&&{passive:!0,capture:!1},o="on"===t?"addEventListener":"removeEventListener";s[o]("pointerdown",g,r),document[o]("pointermove",v,r),document[o]("pointerup",b,a)}function _(){const{scrollbar:t,el:n}=e;e.params.scrollbar=Kt(e,e.originalParams.scrollbar,e.params.scrollbar,{el:"swiper-scrollbar"});const i=u();if(!i.el)return;let s;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=document.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]);const r=s;r.classList.add(e.isHorizontal()?i.horizontalClass:i.verticalClass);let a=null;r&&(a=r.querySelector(Qt(i.dragClass)),a||(a=it("div",i.dragClass),r.append(a))),Object.assign(t,{el:r,dragEl:a}),i.draggable&&u().el&&e.scrollbar.el&&y("on"),r&&r.classList[e.enabled?"remove":"add"](...Xe(i.lockClass))}function x(){const t=u(),n=e.scrollbar.el;n&&n.classList.remove(...Xe(e.isHorizontal()?t.horizontalClass:t.verticalClass)),u().el&&e.scrollbar.el&&y("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=u();ct(e.scrollbar.el).forEach(n=>{n.classList.remove(t.horizontalClass,t.verticalClass),n.classList.add(e.isHorizontal()?t.horizontalClass:t.verticalClass)})}),n("init",()=>{!1===u().enabled?w():(_(),p(),h())}),n("update resize observerUpdate lock unlock changeDirection",()=>{p()}),n("setTranslate",()=>{h()}),n("setTransition",(t,n)=>{!function(t){u().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"](...Xe(u().lockClass))}),n("destroy",()=>{x()});const w=()=>{const t=u();e.el.classList.add(...Xe(t.scrollbarDisabledClass)),e.scrollbar.el&&e.scrollbar.el.classList.add(...Xe(t.scrollbarDisabledClass)),x()};Object.assign(e.scrollbar,{enable:()=>{const t=u();e.el.classList.remove(...Xe(t.scrollbarDisabledClass)),e.scrollbar.el&&e.scrollbar.el.classList.remove(...Xe(t.scrollbarDisabledClass)),_(),p(),h()},disable:w,updateSize:p,setTranslate:h,init:_,destroy:x})},sn=({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,s=null,r=!1,a=(new Date).getTime();function o(){return e.params.a11y}function l(e){s&&e&&dt(s,e)}function c(e){ct(e).forEach(e=>{e.setAttribute("tabIndex","0")})}function d(e){ct(e).forEach(e=>{e.setAttribute("tabIndex","-1")})}function u(e,t){ct(e).forEach(e=>{e.setAttribute("role",t)})}function h(e,t){ct(e).forEach(e=>{e.setAttribute("aria-roledescription",t)})}function p(e,t){ct(e).forEach(e=>{e.setAttribute("aria-label",t)})}function m(e){ct(e).forEach(e=>{e.setAttribute("aria-disabled","true")})}function f(e){ct(e).forEach(e=>{e.removeAttribute("aria-disabled")})}function g(t){if(13!==t.keyCode&&32!==t.keyCode)return;const n=o(),i=e.params.pagination,s=t.target;if(!e.pagination||!e.pagination.el||s!==e.pagination.el&&!e.pagination.el.contains(s)||s.matches(Qt(i?.bulletClass))){if(e.navigation&&e.navigation.prevEl&&e.navigation.nextEl){const t=ct(e.navigation.prevEl);ct(e.navigation.nextEl).includes(s)&&(e.isEnd&&!e.params.loop||e.slideNext(),e.isEnd?l(n.lastSlideMessage):l(n.nextSlideMessage)),t.includes(s)&&(e.isBeginning&&!e.params.loop||e.slidePrev(),e.isBeginning?l(n.firstSlideMessage):l(n.prevSlideMessage))}e.pagination&&s.matches(Qt(i?.bulletClass))&&s.click()}}function v(){return!!(e.pagination&&e.pagination.bullets&&e.pagination.bullets.length)}function b(){const t=e.params.pagination;return v()&&!!t?.clickable}const y=(e,t,n)=>{c(e),"BUTTON"!==e.tagName&&(u(e,"button"),e.addEventListener("keydown",g)),p(e,n)},_=t=>{i&&i!==t.target&&!i.contains(t.target)&&(r=!0),e.a11y.clicked=!0},x=()=>{r=!1,requestAnimationFrame(()=>{requestAnimationFrame(()=>{e.destroyed||(e.a11y.clicked=!1)})})},w=e=>{a=(new Date).getTime()},S=t=>{const n=o();if(e.a11y.clicked||!n.scrollOnFocus)return;if((new Date).getTime()-a<100)return;const s=t.target.closest(`.${e.params.slideClass}, swiper-slide`);if(!s||!e.slides.includes(s))return;i=s;const l=(e=>!!e.virtual&&!!e.params.virtual?.enabled)(e),c=(l?parseInt(s.getAttribute("data-swiper-slide-index")||"0",10):e.slides.indexOf(s))===e.activeIndex,d=e.params.watchSlidesProgress&&e.visibleSlides&&e.visibleSlides.includes(s);if(c||d)return;const u=t.sourceCapabilities;u&&u.firesTouchEvents||(e.isHorizontal()?e.el.scrollLeft=0:e.el.scrollTop=0,requestAnimationFrame(()=>{r||(e.params.loop?e.slideToLoop(e.getSlideIndexWhenGrid(parseInt(s.getAttribute("data-swiper-slide-index")||"0",10)),0):l?e.slideTo(e.getSlideIndexWhenGrid(parseInt(s.getAttribute("data-swiper-slide-index")||"0",10)),0):e.slideTo(e.getSlideIndexWhenGrid(e.slides.indexOf(s)),0),r=!1)}))},E=()=>{const t=o();t.itemRoleDescriptionMessage&&h(e.slides,t.itemRoleDescriptionMessage),t.slideRole&&u(e.slides,t.slideRole);const n=e.slides.length,i=t.slideLabelMessage;i&&e.slides.forEach((t,s)=>{const r=e.params.loop?parseInt(t.getAttribute("data-swiper-slide-index")||"0",10):s;p(t,i.replace(/\{\{index\}\}/,String(r+1)).replace(/\{\{slidesLength\}\}/,String(n)))})};n("beforeInit",()=>{s=it("span",o().notificationClass),s.setAttribute("aria-live","assertive"),s.setAttribute("aria-atomic","true")}),n("afterInit",()=>{o().enabled&&(()=>{const t=o();s&&e.el.append(s);const n=e.el;t.containerRoleDescriptionMessage&&h(n,t.containerRoleDescriptionMessage),t.containerMessage&&p(n,t.containerMessage),t.containerRole&&u(n,t.containerRole);const i=e.wrapperEl,r=String(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 a,l,c;if(a=r,ct(i).forEach(e=>{e.setAttribute("id",a)}),t.wrapperLiveRegion){const t=e.params.autoplay;l=i,c=e.params.autoplay&&t?.enabled?"off":"polite",ct(l).forEach(e=>{e.setAttribute("aria-live",c)})}E();const d=e.navigation?e.navigation:{nextEl:void 0,prevEl:void 0},m=ct(d.nextEl),f=ct(d.prevEl);m&&m.forEach(e=>y(e,0,t.nextSlideMessage)),f&&f.forEach(e=>y(e,0,t.prevSlideMessage)),b()&&ct(e.pagination.el).forEach(e=>{e.addEventListener("keydown",g)}),document.addEventListener("visibilitychange",w),e.el.addEventListener("focus",S,!0),e.el.addEventListener("pointerdown",_,!0),e.el.addEventListener("pointerup",x,!0)})()}),n("slidesLengthChange snapGridLengthChange slidesGridLengthChange",()=>{o().enabled&&E()}),n("fromEdge toEdge afterInit lock unlock",()=>{o().enabled&&function(){if(e.params.loop||e.params.rewind||!e.navigation)return;const{nextEl:t,prevEl:n}=e.navigation;n&&(e.isBeginning?(m(n),d(n)):(f(n),c(n))),t&&(e.isEnd?(m(t),d(t)):(f(t),c(t)))}()}),n("paginationUpdate",()=>{o().enabled&&function(){const t=o();if(!v())return;const n=e.params.pagination;e.pagination.bullets.forEach(e=>{n.clickable&&(c(e),n.renderBullet||(u(e,"button"),p(e,t.paginationBulletMessage.replace(/\{\{index\}\}/,String((at(e)??0)+1))))),e.matches(Qt(n.bulletActiveClass))?e.setAttribute("aria-current","true"):e.removeAttribute("aria-current")})}()}),n("destroy",()=>{o().enabled&&function(){s&&s.remove();const t=e.navigation?e.navigation:{nextEl:void 0,prevEl:void 0},n=ct(t.nextEl),i=ct(t.prevEl);n&&n.forEach(e=>e.removeEventListener("keydown",g)),i&&i.forEach(e=>e.removeEventListener("keydown",g)),b()&&ct(e.pagination.el).forEach(e=>{e.removeEventListener("keydown",g)}),document.removeEventListener("visibilitychange",w),e.el&&"string"!=typeof e.el&&(e.el.removeEventListener("focus",S,!0),e.el.removeEventListener("pointerdown",_,!0),e.el.removeEventListener("pointerup",x,!0))}()})},rn=({swiper:e,extendParams:t,on:n,emit:i,params:s})=>{function r(){return e.params.autoplay}e.autoplay={running:!1,paused:!1,timeLeft:0},t({autoplay:{enabled:!1,delay:3e3,waitForTransition:!0,disableOnInteraction:!1,stopOnLastSlide:!1,reverseDirection:!1,pauseOnMouseEnter:!1}});const a="object"==typeof s.autoplay&&s.autoplay&&"number"==typeof s.autoplay.delay?s.autoplay.delay:3e3;let o,l,c,d=a,u=a,h=0,p=(new Date).getTime(),m=!1,f=!1,g=!1,v=!1,b=!1;function y(t){if(!e||e.destroyed||!e.wrapperEl)return;if(t.target!==e.wrapperEl)return;e.wrapperEl.removeEventListener("transitionend",y);const n=t.detail;b||n&&n.bySwiperTouchMove||C()}const _=()=>{if(e.destroyed||!e.autoplay.running)return;e.autoplay.paused?m=!0:m&&(u=h,m=!1);const t=e.autoplay.paused?h:p+u-(new Date).getTime();e.autoplay.timeLeft=t,i("autoplayTimeLeft",t,t/d),l=requestAnimationFrame(()=>{_()})},x=()=>{let t=r().delay;const n=(()=>{let t;const n=!!e.params.virtual?.enabled;if(t=e.virtual&&n?e.slides.find(e=>e.classList.contains("swiper-slide-active")):e.slides[e.activeIndex],!t)return;const i=t.getAttribute("data-swiper-autoplay");return null!=i?parseInt(i,10):void 0})();return"number"==typeof n&&!Number.isNaN(n)&&n>0&&(t=n),t},w=t=>{if(e.destroyed||!e.autoplay.running)return 0;void 0!==l&&cancelAnimationFrame(l),_();let n=t;void 0===n&&(n=x(),d=n,u=n),h=n;const s=e.params.speed,a=()=>{if(!e||e.destroyed)return;const t=r();t.reverseDirection?!e.isBeginning||e.params.loop||e.params.rewind?(e.slidePrev(s,!0,!0),i("autoplay")):t.stopOnLastSlide||(e.slideTo(e.slides.length-1,s,!0,!0),i("autoplay")):!e.isEnd||e.params.loop||e.params.rewind?(e.slideNext(s,!0,!0),i("autoplay")):t.stopOnLastSlide||(e.slideTo(0,s,!0,!0),i("autoplay")),e.params.cssMode&&(p=(new Date).getTime(),requestAnimationFrame(()=>{w()}))};return n>0?(void 0!==o&&clearTimeout(o),o=setTimeout(()=>{a()},n)):requestAnimationFrame(()=>{a()}),n},S=()=>(p=(new Date).getTime(),e.autoplay.running=!0,w(),i("autoplayStart"),!0),E=()=>(e.autoplay.running=!1,void 0!==o&&clearTimeout(o),void 0!==l&&cancelAnimationFrame(l),i("autoplayStop"),!0),N=(t,n)=>{if(e.destroyed||!e.autoplay.running)return;void 0!==o&&clearTimeout(o),t||(v=!0);const s=()=>{i("autoplayPause"),r().waitForTransition?e.wrapperEl.addEventListener("transitionend",y):C()};if(e.autoplay.paused=!0,n)return void s();const a=h||r().delay;h=a-((new Date).getTime()-p),e.isEnd&&h<0&&!e.params.loop||(h<0&&(h=0),s())},C=()=>{e.isEnd&&h<0&&!e.params.loop||e.destroyed||!e.autoplay.running||(p=(new Date).getTime(),v?(v=!1,w(h)):w(),e.autoplay.paused=!1,i("autoplayResume"))},k=()=>{!e.destroyed&&e.autoplay.running&&("hidden"===document.visibilityState&&(v=!0,N(!0)),"visible"===document.visibilityState&&C())},T=t=>{"mouse"===t.pointerType&&(v=!0,b=!0,e.animating||e.autoplay.paused||N(!0))},j=t=>{"mouse"===t.pointerType&&(b=!1,e.autoplay.paused&&C())};n("init",()=>{r().enabled&&(r().pauseOnMouseEnter&&(e.el.addEventListener("pointerenter",T),e.el.addEventListener("pointerleave",j)),document.addEventListener("visibilitychange",k),S())}),n("destroy",()=>{e.el&&"string"!=typeof e.el&&(e.el.removeEventListener("pointerenter",T),e.el.removeEventListener("pointerleave",j)),document.removeEventListener("visibilitychange",k),e.autoplay.running&&E()}),n("_freeModeStaticRelease",()=>{(g||v)&&C()}),n("_freeModeNoMomentumRelease",()=>{r().disableOnInteraction?E():N(!0,!0)}),n("beforeTransitionStart",(t,n,i)=>{!e.destroyed&&e.autoplay.running&&(i||!r().disableOnInteraction?N(!0,!0):E())}),n("sliderFirstMove",()=>{!e.destroyed&&e.autoplay.running&&(r().disableOnInteraction?E():(f=!0,g=!1,v=!1,c=setTimeout(()=>{v=!0,g=!0,N(!0)},200)))}),n("touchEnd",()=>{if(!e.destroyed&&e.autoplay.running&&f){if(void 0!==c&&clearTimeout(c),void 0!==o&&clearTimeout(o),r().disableOnInteraction)return g=!1,void(f=!1);g&&e.params.cssMode&&C(),g=!1,f=!1}}),n("slideChange",()=>{!e.destroyed&&e.autoplay.running&&e.autoplay.paused&&(h=x(),d=x())}),Object.assign(e.autoplay,{start:S,stop:E,pause:N,resume:C})};function an({element:e,visibleClass:t,waitMode:n="transitionend",timeoutDuration:i,hideMode:s="hidden",displayValue:r="block"}){if("timeout"===n&&"number"!=typeof i)return;window.matchMedia("(prefers-reduced-motion: reduce)").matches&&(n="immediate");const a=t=>{t.target===e&&(o(),e.removeEventListener("transitionend",a))},o=()=>{"display"===s?e.style.display="none":e.setAttribute("hidden",!0)};return{show(){e.removeEventListener("transitionend",a),this.timeout&&clearTimeout(this.timeout),"display"===s?e.style.display=r:e.removeAttribute("hidden"),e.offsetHeight,e.classList.add(t)},hide(){"transitionend"===n?e.addEventListener("transitionend",a):"timeout"===n?this.timeout=setTimeout(()=>{o()},i):o(),e.classList.remove(t)},toggle(){this.isHidden()?this.show():this.hide()},isHidden(){const n=null!==e.getAttribute("hidden"),i="none"===e.style.display,s=[...e.classList].includes(t);return n||i||!s},timeout:null}}var on="top",ln="bottom",cn="right",dn="left",un="auto",hn=[on,ln,cn,dn],pn="start",mn="end",fn="viewport",gn="popper",vn=hn.reduce(function(e,t){return e.concat([t+"-"+pn,t+"-"+mn])},[]),bn=[].concat(hn,[un]).reduce(function(e,t){return e.concat([t,t+"-"+pn,t+"-"+mn])},[]),yn=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function _n(e){return e?(e.nodeName||"").toLowerCase():null}function xn(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function wn(e){return e instanceof xn(e).Element||e instanceof Element}function Sn(e){return e instanceof xn(e).HTMLElement||e instanceof HTMLElement}function En(e){return"undefined"!=typeof ShadowRoot&&(e instanceof xn(e).ShadowRoot||e instanceof ShadowRoot)}var Nn={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]||{},s=t.elements[e];Sn(s)&&_n(s)&&(Object.assign(s.style,n),Object.keys(i).forEach(function(e){var t=i[e];!1===t?s.removeAttribute(e):s.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],s=t.attributes[e]||{},r=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce(function(e,t){return e[t]="",e},{});Sn(i)&&_n(i)&&(Object.assign(i.style,r),Object.keys(s).forEach(function(e){i.removeAttribute(e)}))})}},requires:["computeStyles"]};function Cn(e){return e.split("-")[0]}var kn=Math.max,Tn=Math.min,jn=Math.round;function An(){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 On(){return!/^((?!chrome|android).)*safari/i.test(An())}function Ln(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);var i=e.getBoundingClientRect(),s=1,r=1;t&&Sn(e)&&(s=e.offsetWidth>0&&jn(i.width)/e.offsetWidth||1,r=e.offsetHeight>0&&jn(i.height)/e.offsetHeight||1);var a=(wn(e)?xn(e):window).visualViewport,o=!On()&&n,l=(i.left+(o&&a?a.offsetLeft:0))/s,c=(i.top+(o&&a?a.offsetTop:0))/r,d=i.width/s,u=i.height/r;return{width:d,height:u,top:c,right:l+d,bottom:c+u,left:l,x:l,y:c}}function Dn(e){var t=Ln(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 Mn(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&En(n)){var i=t;do{if(i&&e.isSameNode(i))return!0;i=i.parentNode||i.host}while(i)}return!1}function $n(e){return xn(e).getComputedStyle(e)}function Pn(e){return["table","td","th"].indexOf(_n(e))>=0}function In(e){return((wn(e)?e.ownerDocument:e.document)||window.document).documentElement}function Rn(e){return"html"===_n(e)?e:e.assignedSlot||e.parentNode||(En(e)?e.host:null)||In(e)}function zn(e){return Sn(e)&&"fixed"!==$n(e).position?e.offsetParent:null}function Fn(e){for(var t=xn(e),n=zn(e);n&&Pn(n)&&"static"===$n(n).position;)n=zn(n);return n&&("html"===_n(n)||"body"===_n(n)&&"static"===$n(n).position)?t:n||function(e){var t=/firefox/i.test(An());if(/Trident/i.test(An())&&Sn(e)&&"fixed"===$n(e).position)return null;var n=Rn(e);for(En(n)&&(n=n.host);Sn(n)&&["html","body"].indexOf(_n(n))<0;){var i=$n(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 Hn(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Bn(e,t,n){return kn(e,Tn(t,n))}function Vn(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function qn(e,t){return t.reduce(function(t,n){return t[n]=e,t},{})}var Wn={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n=e.state,i=e.name,s=e.options,r=n.elements.arrow,a=n.modifiersData.popperOffsets,o=Cn(n.placement),l=Hn(o),c=[dn,cn].indexOf(o)>=0?"height":"width";if(r&&a){var d=function(e,t){return Vn("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:qn(e,hn))}(s.padding,n),u=Dn(r),h="y"===l?on:dn,p="y"===l?ln:cn,m=n.rects.reference[c]+n.rects.reference[l]-a[l]-n.rects.popper[c],f=a[l]-n.rects.reference[l],g=Fn(r),v=g?"y"===l?g.clientHeight||0:g.clientWidth||0:0,b=m/2-f/2,y=d[h],_=v-u[c]-d[p],x=v/2-u[c]/2+b,w=Bn(y,x,_),S=l;n.modifiersData[i]=((t={})[S]=w,t.centerOffset=w-x,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)))&&Mn(t.elements.popper,i)&&(t.elements.arrow=i)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Un(e){return e.split("-")[1]}var Gn={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Yn(e){var t,n=e.popper,i=e.popperRect,s=e.placement,r=e.variation,a=e.offsets,o=e.position,l=e.gpuAcceleration,c=e.adaptive,d=e.roundOffsets,u=e.isFixed,h=a.x,p=void 0===h?0:h,m=a.y,f=void 0===m?0:m,g="function"==typeof d?d({x:p,y:f}):{x:p,y:f};p=g.x,f=g.y;var v=a.hasOwnProperty("x"),b=a.hasOwnProperty("y"),y=dn,_=on,x=window;if(c){var w=Fn(n),S="clientHeight",E="clientWidth";w===xn(n)&&"static"!==$n(w=In(n)).position&&"absolute"===o&&(S="scrollHeight",E="scrollWidth"),(s===on||(s===dn||s===cn)&&r===mn)&&(_=ln,f-=(u&&w===x&&x.visualViewport?x.visualViewport.height:w[S])-i.height,f*=l?1:-1),s!==dn&&(s!==on&&s!==ln||r!==mn)||(y=cn,p-=(u&&w===x&&x.visualViewport?x.visualViewport.width:w[E])-i.width,p*=l?1:-1)}var N,C=Object.assign({position:o},c&&Gn),k=!0===d?function(e,t){var n=e.x,i=e.y,s=t.devicePixelRatio||1;return{x:jn(n*s)/s||0,y:jn(i*s)/s||0}}({x:p,y:f},xn(n)):{x:p,y:f};return p=k.x,f=k.y,l?Object.assign({},C,((N={})[_]=b?"0":"",N[y]=v?"0":"",N.transform=(x.devicePixelRatio||1)<=1?"translate("+p+"px, "+f+"px)":"translate3d("+p+"px, "+f+"px, 0)",N)):Object.assign({},C,((t={})[_]=b?f+"px":"",t[y]=v?p+"px":"",t.transform="",t))}var Xn={passive:!0},Kn={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,n=e.instance,i=e.options,s=i.scroll,r=void 0===s||s,a=i.resize,o=void 0===a||a,l=xn(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return r&&c.forEach(function(e){e.addEventListener("scroll",n.update,Xn)}),o&&l.addEventListener("resize",n.update,Xn),function(){r&&c.forEach(function(e){e.removeEventListener("scroll",n.update,Xn)}),o&&l.removeEventListener("resize",n.update,Xn)}},data:{}},Zn={left:"right",right:"left",bottom:"top",top:"bottom"};function Jn(e){return e.replace(/left|right|bottom|top/g,function(e){return Zn[e]})}var Qn={start:"end",end:"start"};function ei(e){return e.replace(/start|end/g,function(e){return Qn[e]})}function ti(e){var t=xn(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function ni(e){return Ln(In(e)).left+ti(e).scrollLeft}function ii(e){var t=$n(e),n=t.overflow,i=t.overflowX,s=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+s+i)}function si(e){return["html","body","#document"].indexOf(_n(e))>=0?e.ownerDocument.body:Sn(e)&&ii(e)?e:si(Rn(e))}function ri(e,t){var n;void 0===t&&(t=[]);var i=si(e),s=i===(null==(n=e.ownerDocument)?void 0:n.body),r=xn(i),a=s?[r].concat(r.visualViewport||[],ii(i)?i:[]):i,o=t.concat(a);return s?o:o.concat(ri(Rn(a)))}function ai(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function oi(e,t,n){return t===fn?ai(function(e,t){var n=xn(e),i=In(e),s=n.visualViewport,r=i.clientWidth,a=i.clientHeight,o=0,l=0;if(s){r=s.width,a=s.height;var c=On();(c||!c&&"fixed"===t)&&(o=s.offsetLeft,l=s.offsetTop)}return{width:r,height:a,x:o+ni(e),y:l}}(e,n)):wn(t)?function(e,t){var n=Ln(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):ai(function(e){var t,n=In(e),i=ti(e),s=null==(t=e.ownerDocument)?void 0:t.body,r=kn(n.scrollWidth,n.clientWidth,s?s.scrollWidth:0,s?s.clientWidth:0),a=kn(n.scrollHeight,n.clientHeight,s?s.scrollHeight:0,s?s.clientHeight:0),o=-i.scrollLeft+ni(e),l=-i.scrollTop;return"rtl"===$n(s||n).direction&&(o+=kn(n.clientWidth,s?s.clientWidth:0)-r),{width:r,height:a,x:o,y:l}}(In(e)))}function li(e){var t,n=e.reference,i=e.element,s=e.placement,r=s?Cn(s):null,a=s?Un(s):null,o=n.x+n.width/2-i.width/2,l=n.y+n.height/2-i.height/2;switch(r){case on:t={x:o,y:n.y-i.height};break;case ln:t={x:o,y:n.y+n.height};break;case cn:t={x:n.x+n.width,y:l};break;case dn:t={x:n.x-i.width,y:l};break;default:t={x:n.x,y:n.y}}var c=r?Hn(r):null;if(null!=c){var d="y"===c?"height":"width";switch(a){case pn:t[c]=t[c]-(n[d]/2-i[d]/2);break;case mn:t[c]=t[c]+(n[d]/2-i[d]/2)}}return t}function ci(e,t){void 0===t&&(t={});var n=t,i=n.placement,s=void 0===i?e.placement:i,r=n.strategy,a=void 0===r?e.strategy:r,o=n.boundary,l=void 0===o?"clippingParents":o,c=n.rootBoundary,d=void 0===c?fn:c,u=n.elementContext,h=void 0===u?gn:u,p=n.altBoundary,m=void 0!==p&&p,f=n.padding,g=void 0===f?0:f,v=Vn("number"!=typeof g?g:qn(g,hn)),b=h===gn?"reference":gn,y=e.rects.popper,_=e.elements[m?b:h],x=function(e,t,n,i){var s="clippingParents"===t?function(e){var t=ri(Rn(e)),n=["absolute","fixed"].indexOf($n(e).position)>=0&&Sn(e)?Fn(e):e;return wn(n)?t.filter(function(e){return wn(e)&&Mn(e,n)&&"body"!==_n(e)}):[]}(e):[].concat(t),r=[].concat(s,[n]),a=r[0],o=r.reduce(function(t,n){var s=oi(e,n,i);return t.top=kn(s.top,t.top),t.right=Tn(s.right,t.right),t.bottom=Tn(s.bottom,t.bottom),t.left=kn(s.left,t.left),t},oi(e,a,i));return o.width=o.right-o.left,o.height=o.bottom-o.top,o.x=o.left,o.y=o.top,o}(wn(_)?_:_.contextElement||In(e.elements.popper),l,d,a),w=Ln(e.elements.reference),S=li({reference:w,element:y,placement:s}),E=ai(Object.assign({},y,S)),N=h===gn?E:w,C={top:x.top-N.top+v.top,bottom:N.bottom-x.bottom+v.bottom,left:x.left-N.left+v.left,right:N.right-x.right+v.right},k=e.modifiersData.offset;if(h===gn&&k){var T=k[s];Object.keys(C).forEach(function(e){var t=[cn,ln].indexOf(e)>=0?1:-1,n=[on,ln].indexOf(e)>=0?"y":"x";C[e]+=T[n]*t})}return C}var di={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 s=n.mainAxis,r=void 0===s||s,a=n.altAxis,o=void 0===a||a,l=n.fallbackPlacements,c=n.padding,d=n.boundary,u=n.rootBoundary,h=n.altBoundary,p=n.flipVariations,m=void 0===p||p,f=n.allowedAutoPlacements,g=t.options.placement,v=Cn(g),b=l||(v!==g&&m?function(e){if(Cn(e)===un)return[];var t=Jn(e);return[ei(e),t,ei(t)]}(g):[Jn(g)]),y=[g].concat(b).reduce(function(e,n){return e.concat(Cn(n)===un?function(e,t){void 0===t&&(t={});var n=t,i=n.placement,s=n.boundary,r=n.rootBoundary,a=n.padding,o=n.flipVariations,l=n.allowedAutoPlacements,c=void 0===l?bn:l,d=Un(i),u=d?o?vn:vn.filter(function(e){return Un(e)===d}):hn,h=u.filter(function(e){return c.indexOf(e)>=0});0===h.length&&(h=u);var p=h.reduce(function(t,n){return t[n]=ci(e,{placement:n,boundary:s,rootBoundary:r,padding:a})[Cn(n)],t},{});return Object.keys(p).sort(function(e,t){return p[e]-p[t]})}(t,{placement:n,boundary:d,rootBoundary:u,padding:c,flipVariations:m,allowedAutoPlacements:f}):n)},[]),_=t.rects.reference,x=t.rects.popper,w=new Map,S=!0,E=y[0],N=0;N<y.length;N++){var C=y[N],k=Cn(C),T=Un(C)===pn,j=[on,ln].indexOf(k)>=0,A=j?"width":"height",O=ci(t,{placement:C,boundary:d,rootBoundary:u,altBoundary:h,padding:c}),L=j?T?cn:dn:T?ln:on;_[A]>x[A]&&(L=Jn(L));var D=Jn(L),M=[];if(r&&M.push(O[k]<=0),o&&M.push(O[L]<=0,O[D]<=0),M.every(function(e){return e})){E=C,S=!1;break}w.set(C,M)}if(S)for(var $=function(e){var t=y.find(function(t){var n=w.get(t);if(n)return n.slice(0,e).every(function(e){return e})});if(t)return E=t,"break"},P=m?3:1;P>0&&"break"!==$(P);P--);t.placement!==E&&(t.modifiersData[i]._skip=!0,t.placement=E,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function ui(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 hi(e){return[on,cn,ln,dn].some(function(t){return e[t]>=0})}var pi={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,n=e.name,i=t.rects.reference,s=t.rects.popper,r=t.modifiersData.preventOverflow,a=ci(t,{elementContext:"reference"}),o=ci(t,{altBoundary:!0}),l=ui(a,i),c=ui(o,s,r),d=hi(l),u=hi(c);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:d,hasPopperEscaped:u},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":d,"data-popper-escaped":u})}},mi={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.options,i=e.name,s=n.offset,r=void 0===s?[0,0]:s,a=bn.reduce(function(e,n){return e[n]=function(e,t,n){var i=Cn(e),s=[dn,on].indexOf(i)>=0?-1:1,r="function"==typeof n?n(Object.assign({},t,{placement:e})):n,a=r[0],o=r[1];return a=a||0,o=(o||0)*s,[dn,cn].indexOf(i)>=0?{x:o,y:a}:{x:a,y:o}}(n,t.rects,r),e},{}),o=a[t.placement],l=o.x,c=o.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=c),t.modifiersData[i]=a}},fi={name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=li({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})},data:{}},gi={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,i=e.name,s=n.mainAxis,r=void 0===s||s,a=n.altAxis,o=void 0!==a&&a,l=n.boundary,c=n.rootBoundary,d=n.altBoundary,u=n.padding,h=n.tether,p=void 0===h||h,m=n.tetherOffset,f=void 0===m?0:m,g=ci(t,{boundary:l,rootBoundary:c,padding:u,altBoundary:d}),v=Cn(t.placement),b=Un(t.placement),y=!b,_=Hn(v),x="x"===_?"y":"x",w=t.modifiersData.popperOffsets,S=t.rects.reference,E=t.rects.popper,N="function"==typeof f?f(Object.assign({},t.rects,{placement:t.placement})):f,C="number"==typeof N?{mainAxis:N,altAxis:N}:Object.assign({mainAxis:0,altAxis:0},N),k=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,T={x:0,y:0};if(w){if(r){var j,A="y"===_?on:dn,O="y"===_?ln:cn,L="y"===_?"height":"width",D=w[_],M=D+g[A],$=D-g[O],P=p?-E[L]/2:0,I=b===pn?S[L]:E[L],R=b===pn?-E[L]:-S[L],z=t.elements.arrow,F=p&&z?Dn(z):{width:0,height:0},H=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},B=H[A],V=H[O],q=Bn(0,S[L],F[L]),W=y?S[L]/2-P-q-B-C.mainAxis:I-q-B-C.mainAxis,U=y?-S[L]/2+P+q+V+C.mainAxis:R+q+V+C.mainAxis,G=t.elements.arrow&&Fn(t.elements.arrow),Y=G?"y"===_?G.clientTop||0:G.clientLeft||0:0,X=null!=(j=null==k?void 0:k[_])?j:0,K=D+U-X,Z=Bn(p?Tn(M,D+W-X-Y):M,D,p?kn($,K):$);w[_]=Z,T[_]=Z-D}if(o){var J,Q="x"===_?on:dn,ee="x"===_?ln:cn,te=w[x],ne="y"===x?"height":"width",ie=te+g[Q],se=te-g[ee],re=-1!==[on,dn].indexOf(v),ae=null!=(J=null==k?void 0:k[x])?J:0,oe=re?ie:te-S[ne]-E[ne]-ae+C.altAxis,le=re?te+S[ne]+E[ne]-ae-C.altAxis:se,ce=p&&re?function(e,t,n){var i=Bn(e,t,n);return i>n?n:i}(oe,te,le):Bn(p?oe:ie,te,p?le:se);w[x]=ce,T[x]=ce-te}t.modifiersData[i]=T}},requiresIfExists:["offset"]};function vi(e,t,n){void 0===n&&(n=!1);var i,s,r=Sn(t),a=Sn(t)&&function(e){var t=e.getBoundingClientRect(),n=jn(t.width)/e.offsetWidth||1,i=jn(t.height)/e.offsetHeight||1;return 1!==n||1!==i}(t),o=In(t),l=Ln(e,a,n),c={scrollLeft:0,scrollTop:0},d={x:0,y:0};return(r||!r&&!n)&&(("body"!==_n(t)||ii(o))&&(c=(i=t)!==xn(i)&&Sn(i)?{scrollLeft:(s=i).scrollLeft,scrollTop:s.scrollTop}:ti(i)),Sn(t)?((d=Ln(t,!0)).x+=t.clientLeft,d.y+=t.clientTop):o&&(d.x=ni(o))),{x:l.left+c.scrollLeft-d.x,y:l.top+c.scrollTop-d.y,width:l.width,height:l.height}}function bi(e){var t=new Map,n=new Set,i=[];function s(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach(function(e){if(!n.has(e)){var i=t.get(e);i&&s(i)}}),i.push(e)}return e.forEach(function(e){t.set(e.name,e)}),e.forEach(function(e){n.has(e.name)||s(e)}),i}var yi={placement:"bottom",modifiers:[],strategy:"absolute"};function _i(){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 xi(e){void 0===e&&(e={});var t=e,n=t.defaultModifiers,i=void 0===n?[]:n,s=t.defaultOptions,r=void 0===s?yi:s;return function(e,t,n){void 0===n&&(n=r);var s,a,o={placement:"bottom",orderedModifiers:[],options:Object.assign({},yi,r),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},l=[],c=!1,d={state:o,setOptions:function(n){var s="function"==typeof n?n(o.options):n;u(),o.options=Object.assign({},r,o.options,s),o.scrollParents={reference:wn(e)?ri(e):e.contextElement?ri(e.contextElement):[],popper:ri(t)};var a,c,h=function(e){var t=bi(e);return yn.reduce(function(e,n){return e.concat(t.filter(function(e){return e.phase===n}))},[])}((a=[].concat(i,o.options.modifiers),c=a.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 o.orderedModifiers=h.filter(function(e){return e.enabled}),o.orderedModifiers.forEach(function(e){var t=e.name,n=e.options,i=void 0===n?{}:n,s=e.effect;if("function"==typeof s){var r=s({state:o,name:t,instance:d,options:i});l.push(r||function(){})}}),d.update()},forceUpdate:function(){if(!c){var e=o.elements,t=e.reference,n=e.popper;if(_i(t,n)){o.rects={reference:vi(t,Fn(n),"fixed"===o.options.strategy),popper:Dn(n)},o.reset=!1,o.placement=o.options.placement,o.orderedModifiers.forEach(function(e){return o.modifiersData[e.name]=Object.assign({},e.data)});for(var i=0;i<o.orderedModifiers.length;i++)if(!0!==o.reset){var s=o.orderedModifiers[i],r=s.fn,a=s.options,l=void 0===a?{}:a,u=s.name;"function"==typeof r&&(o=r({state:o,options:l,name:u,instance:d})||o)}else o.reset=!1,i=-1}}},update:(s=function(){return new Promise(function(e){d.forceUpdate(),e(o)})},function(){return a||(a=new Promise(function(e){Promise.resolve().then(function(){a=void 0,e(s())})})),a}),destroy:function(){u(),c=!0}};if(!_i(e,t))return d;function u(){l.forEach(function(e){return e()}),l=[]}return d.setOptions(n).then(function(e){!c&&n.onFirstUpdate&&n.onFirstUpdate(e)}),d}}var wi=xi({defaultModifiers:[Kn,fi,{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,n=e.options,i=n.gpuAcceleration,s=void 0===i||i,r=n.adaptive,a=void 0===r||r,o=n.roundOffsets,l=void 0===o||o,c={placement:Cn(t.placement),variation:Un(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:s,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,Yn(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:l})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,Yn(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:{}},Nn,mi,di,gi,Wn,pi]});const Si={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:({placement:e})=>e.includes("start")?[-10,0]:e.includes("end")?[10,0]:[0,0]}}]}};let Ei=class{constructor(e,t){return this.isOpen=!1,this.ignoreNextBlur=!1,this.element=e,this.config={...Si,...t},this.config.popperOptions={...Si.popperOptions,...t?.popperOptions||{}},this.config.popperOptions.modifiers=[...Si.popperOptions.modifiers,...t?.popperOptions?.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}static getInstance(e){return e&&e.ODS_Tooltip?e.ODS_Tooltip:null}wrapLastWordAndButton(){if(!this.element.hasAttribute("data-tooltip-keep-with-text"))return;const e=this.trigger.previousSibling;if(!e||e.nodeType!==Node.TEXT_NODE)return;const t=(e.textContent?.trim()||"").split(" "),n=t.pop(),i=t.join(" ");e.textContent=i+" ";const s=document.createElement("span");s.className="text-nowrap",s.innerHTML=`${n} ${this.trigger.outerHTML}`,this.trigger.parentNode?.replaceChild(s,this.trigger),this.trigger=s.querySelector("[data-tooltip-trigger]")}init(){this.trigger=document.querySelector(`[data-tooltip-trigger][aria-describedby=${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);const e=this.element.getAttribute("data-tooltip-placement");e&&(this.config.popperOptions.placement=e),this.instance=wi(this.trigger,this.element,this.config.popperOptions),this.transitioner=an({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)}onDialogMouseDown(){this.ignoreNextBlur=!0}onDocumentClick(e){const t=e.target;t&&(this.trigger.contains(t)||this.element.contains(t)||this.hide())}handleVisibility(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()}onKeydown(e){if(("Enter"===e.key||" "===e.key)&&"BUTTON"!==this.trigger.tagName)return e.preventDefault(),void this.toggle();L.ESC.includes(e.key)&&this.hide()}toggle(){this.isOpen?this.hide():this.show()}show(){this.transitioner.show(),this.trigger.classList.add("is-active"),this.isOpen=!0,this.instance.forceUpdate(),document.addEventListener("click",this.onDocumentClick)}hide(){this.transitioner.hide(),this.trigger.classList.remove("is-active"),this.isOpen=!1,document.removeEventListener("click",this.onDocumentClick)}update(){this.instance.forceUpdate()}destroy(){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()}};const Ni="carousel",Ci=`${Ni}__viewport-wrapper`,ki=`${Ni}__viewport`,Ti=`${Ni}__track`,ji=`${Ni}__slide`,Ai=`${Ni}__prev`,Oi=`${Ni}__next`,Li=`${Ni}__pagination`,Di=`${Ni}__navigation`,Mi=`${Ni}__controls`,$i=`${Ni}__pagination-item`,Pi=`${Ni}__scrollbar`,Ii=`${Ni}__scrollbar-drag`,Ri="is-active",zi=`${Ni}--bleed-right`,Fi=`.${ki}`,Hi=`.${Ti}`,Bi=`.${Ai}`,Vi=`.${Oi}`,qi=`.${Li}`,Wi=`.${Pi}`,Ui=`.${Ri}`,Gi={navigation:{nextEl:Vi,prevEl:Bi},pagination:{el:qi,clickable:!0,bulletClass:$i,bulletActiveClass:Ri,renderBullet:(e,t)=>`<button aria-label="Page ${e+1}" role="tab" class="${t}" type="button"></button>`},scrollbar:{el:Wi,draggable:!0,enabled:!0,horizontalClass:`${Ni}__scrollbar-horizontal`,dragClass:Ii,hide:!1},slidesPerView:1.2,spaceBetween:20,mousewheel:{forceToAxis:!0,sensitivity:1},a11y:{enabled:!0,scrollOnFocus:!1,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:Ti,slideClass:ji,slideActiveClass:Ri,slideNextClass:`${Ni}__slide-next`,slidePrevClass:`${Ni}__slide-prev`};let Yi=class e{getViewportWrapper(){return this.element.querySelector(`.${Ci}`)}getSlidesPerView(){return Number(this.instance?.params?.slidesPerView)||1}setScrollbarVisible(e){const t=this.element.querySelector(Wi);t&&(t.style.display=e?"":"none")}getSlidesContentWidth(){if(!this.instance)return this.track?.scrollWidth||0;const e=Array.from(this.instance.slides),t=e.reduce((e,t)=>e+t.offsetWidth,0),n=Number(this.instance.params?.spaceBetween)||0,i=t+Math.max(e.length-1,0)*n;return t<=0||i<=0?this.track?.scrollWidth||0:i}getOverflowWidth(e){const t=this.element.classList.contains(zi)?this.element.clientWidth||e?.clientWidth||0:this.viewport?.clientWidth||0;return t<=0?0:this.getSlidesContentWidth()-t}hasScrollableContent(t){if(!this.instance||!this.instance.params)return!1;const n=this.getOverflowWidth(t);return 0!==n?n>e.OVERFLOW_EPSILON_PX:this.instance.slides.length>this.getSlidesPerView()}constructor(e,t){this.isScrollbarDragging=!1,this.externalControlsState=null;const n=e.querySelector(Wi),i="object"==typeof t?.scrollbar&&null!==t.scrollbar?t.scrollbar:void 0,s="object"==typeof Gi.scrollbar&&null!==Gi.scrollbar?Gi.scrollbar:void 0;return this.element=e,this.config={...Gi,...t,scrollbar:{...Gi.scrollbar??{},...t?.scrollbar??{},el:n,enabled:!!n&&(i?.enabled??s?.enabled)}},this.handleSlideChange=this.handleSlideChange.bind(this),this.updateTooltipPosition=this.updateTooltipPosition.bind(this),this.boundWindowResizeHandler=this.handleWindowResize.bind(this),this.element.ODS_Carousel=this,requestAnimationFrame(()=>{this.init()}),this}init(){this.getElements(),this.element.hasAttribute("data-swiper-options")&&this.getCustomOptions();const e=this.element.classList.contains(zi);this.instance=new Wt(this.viewport,{...this.config,watchOverflow:!e&&this.config.watchOverflow,enabled:!1,modules:[Jt,tn,nn,sn,Yt,Xt],on:{slideChange:this.handleSlideChange,slideChangeTransitionEnd:()=>{this.updateExternalControlsState()},scrollbarDragStart:()=>{this.isScrollbarDragging=!0},scrollbarDragEnd:()=>{this.isScrollbarDragging=!1,this.updateExternalControlsState(!0)}}}),this.updateCarouselEnabledState(),this.element.classList.contains(zi)&&(this.adjustConfigForBleedRight(),this.fixBleedRightScrollbar()),this.syncScrollbar(),this.instance&&"function"==typeof this.instance.on&&this.instance.on("resize",()=>{this.updateCarouselEnabledState()}),this.observeVisibilityChanges(),window.addEventListener("resize",this.boundWindowResizeHandler),this.initExternalControls(),requestAnimationFrame(()=>{this.instance&&this.instance.update()})}handleWindowResize(){this.resizeRafId&&cancelAnimationFrame(this.resizeRafId),this.resizeRafId=requestAnimationFrame(()=>{this.resizeRafId=void 0,this.instance&&this.viewport&&(this.viewport.clientWidth<=0||(this.instance.update(),this.updateCarouselEnabledState(),this.bleedResizeHandler?.(),this.updateExternalControlsState(),this.instance.scrollbar?.updateSize()))})}syncScrollbar(){requestAnimationFrame(()=>{this.instance?.scrollbar&&this.instance.scrollbar.updateSize()})}observeVisibilityChanges(){"undefined"!=typeof ResizeObserver&&(this.resizeObserver?.disconnect(),this.resizeObserver=new ResizeObserver(()=>{this.instance&&this.viewport&&(this.viewport.clientWidth<=0||(this.instance.update(),this.updateCarouselEnabledState(),this.instance.scrollbar?.updateSize()))}),this.resizeObserver.observe(this.viewport))}fixBleedRightScrollbar(){const e=()=>{const e=this.getViewportWrapper(),t=this.instance?.scrollbar,n=this.instance;if(!(e&&t&&t.dragEl&&n))return;if(!this.hasScrollableContent(e))return void this.setScrollbarVisible(!1);this.setScrollbarVisible(!0);const i=t.el.offsetWidth,s=this.instance?.width||this.element.clientWidth||e.clientWidth,r=this.getSlidesContentWidth(),a="function"==typeof n.minTranslate?n.minTranslate():0,o="function"==typeof n.maxTranslate?n.maxTranslate():0,l=Math.max(Math.abs(o-a),0),c=Math.max(r,s+l),d=(c>0?Math.min(s/c,1):1)*i,u=Math.max(d,30);t.dragEl.style.width=`${u}px`,t.dragEl.style.display="";const h=Math.min(Math.max(n.progress||0,0),1)*Math.max(i-u,0);t.dragEl.style.transform=`translate3d(${h}px, 0, 0)`};requestAnimationFrame(()=>{requestAnimationFrame(e)}),this.instance.on("progress",e),this.instance.on("slideChange",e),this.instance.on("resize",e),this.instance.on("update",e),this.instance.on("setTranslate",e)}getElements(){this.viewport=this.element.querySelector(Fi),this.track=this.viewport.querySelector(Hi);const e=this.element.querySelector(qi);e&&!e.hasAttribute("role")&&e.setAttribute("role","tablist");const t={navigation:{...this.config.navigation??{},nextEl:this.element.querySelector(Vi),prevEl:this.element.querySelector(Bi)},pagination:{...this.config.pagination??{},el:e,clickable:!0,bulletClass:$i,bulletActiveClass:Ri}};this.config={...this.config,...t}}getCustomOptions(){const e=this.element.getAttribute("data-swiper-options");if(!e)return;const t=JSON.parse(e);this.config={...this.config,...t}}updateCarouselEnabledState(){if(!this.instance||!this.instance.params)return;const e=this.getViewportWrapper();this.hasScrollableContent(e||void 0)?this.instance.enable():this.instance.disable(),this.setScrollbarVisible(this.instance.enabled)}applyBleedInsets(t){if(!this.instance||!this.instance.params)return;const n=this.element.clientWidth||t.clientWidth||0,i=document.documentElement?.clientWidth||window.innerWidth||0,s=t.getBoundingClientRect(),r=this.element.getBoundingClientRect(),a=r.left>0?r.left:s.left,o=Math.max(Math.floor(a),0),l=Math.max(Math.floor(i),n,0),c=-o,d=Math.max(l-o,n,0),u=this.getSlidesContentWidth(),h=u-n,p=this.getSlidesPerView(),m=this.instance.slides.length,f=!(u>0?h>e.OVERFLOW_EPSILON_PX:m>p),g=!f,v=f?"100%":`${d}px`,b=f?"0px":`${o}px`,y=f?"100%":`${l}px`,_=f?"0px":`${c}px`,x=this.element.classList.contains(zi)!==g||this.instance.params.width!==(f?void 0:n)||this.element.style.getPropertyValue("--carousel-bleed-viewport-width")!==v||this.element.style.getPropertyValue("--carousel-bleed-margin-left")!==b||this.element.style.getPropertyValue("--carousel-bleed-shell-width")!==y||this.element.style.getPropertyValue("--carousel-bleed-shell-margin-left")!==_;this.element.classList.toggle(zi,g);const w=f?void 0:n;this.instance.params.width=w,this.instance.originalParams&&(this.instance.originalParams.width=w),this.instance.params.slidesOffsetBefore=0,this.instance.params.slidesOffsetAfter=0,this.element.style.setProperty("--carousel-bleed-viewport-width",v),this.element.style.setProperty("--carousel-bleed-margin-left",b),this.element.style.setProperty("--carousel-bleed-shell-width",y),this.element.style.setProperty("--carousel-bleed-shell-margin-left",_),x&&this.instance.update(),this.updateCarouselEnabledState()}adjustConfigForBleedRight(){requestAnimationFrame(()=>{if(!this.instance)return;const e=this.getViewportWrapper();if(!e)return;const t=()=>{this.applyBleedInsets(e)};this.bleedResizeHandler=t,t(),this.instance.on("resize",t)})}handleSlideChange(){const e=this.track.querySelector(Ui),t=this.track.querySelectorAll(`.${ji}:not(${Ui})`);e&&this.updateTooltipPosition(e),t.length>0&&this.hideAllTooltips(t),this.updateExternalControlsState()}updateTooltipPosition(e){const t=e.querySelectorAll('[data-tooltip-trigger="true"]');t.length>0&&t.forEach(e=>{const t=e.getAttribute("aria-describedby");if(!t)return;const n=document.getElementById(t);if(!n)return;const i=Ei.getInstance(n);i&&i.update()})}hideAllTooltips(e){e.forEach(e=>{const t=e.querySelectorAll('[data-tooltip-trigger="true"]');t.length>0&&t.forEach(e=>{const t=e.getAttribute("aria-describedby");if(!t)return;const n=document.getElementById(t);if(!n)return;const i=Ei.getInstance(n);i&&(i.hide(),e.blur())})})}initExternalControls(){const e=this.element.dataset.carouselId||this.element.id;e&&(this.carouselId=e,document.querySelectorAll(`[data-carousel-controls="${e}"]`).forEach(e=>{const t=e;if(t.hasAttribute("data-carousel-initialized"))return;t._carouselClickHandler&&t.removeEventListener("click",t._carouselClickHandler);const n=t.dataset.carouselAction,i=e=>{e.preventDefault(),t.hasAttribute("disabled")||("next"===n?this.slideNext():"prev"===n&&this.slidePrev())};"next"!==n&&"prev"!==n||(t.addEventListener("click",i),t.setAttribute("aria-label","next"===n?("object"==typeof this.config.a11y?this.config.a11y?.nextSlideMessage:void 0)||"Nasledujúci snímok":("object"==typeof this.config.a11y?this.config.a11y?.prevSlideMessage:void 0)||"Predchádzajúci snímok"),t.setAttribute("type","button"),t._carouselClickHandler=i),t.setAttribute("data-carousel-initialized","true")}),this.updateExternalControlsState())}updateExternalControlsState(e=!1){if(!this.carouselId||!this.instance)return;if(!this.instance.params)return;if(this.isScrollbarDragging&&!e)return;const t=!this.instance.enabled,n=t||this.instance.isBeginning,i=t||this.instance.isEnd;this.externalControlsState={isAtStart:n,isAtEnd:i},this.applyExternalControlsState(this.externalControlsState)}applyExternalControlsState(e){const{isAtStart:t,isAtEnd:n}=e,i=document.querySelectorAll(`[data-carousel-controls="${this.carouselId}"][data-carousel-action="prev"]`),s=document.querySelectorAll(`[data-carousel-controls="${this.carouselId}"][data-carousel-action="next"]`);i.forEach(e=>{const n=e;t?(n.setAttribute("disabled",""),n.setAttribute("aria-disabled","true"),n.style.cursor="not-allowed"):(n.removeAttribute("disabled"),n.setAttribute("aria-disabled","false"),n.style.cursor="pointer")}),s.forEach(e=>{const t=e;n?(t.setAttribute("disabled",""),t.setAttribute("aria-disabled","true"),t.style.cursor="not-allowed"):(t.removeAttribute("disabled"),t.setAttribute("aria-disabled","false"),t.style.cursor="pointer")})}slideNext(){this.instance&&this.instance.slideNext()}slidePrev(){this.instance&&this.instance.slidePrev()}getActiveIndex(){return this.instance?this.instance.activeIndex:0}onSlideChange(e){this.instance&&this.instance.on("slideChange",()=>{e(this.instance.activeIndex)})}destroy(){this.carouselId&&document.querySelectorAll(`[data-carousel-controls="${this.carouselId}"]`).forEach(e=>{const 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(),this.isScrollbarDragging=!1,this.externalControlsState=null,this.resizeObserver?.disconnect(),this.resizeObserver=void 0,this.element.ODS_Carousel===this&&delete this.element.ODS_Carousel}update(){this.instance&&this.instance.update()}static getInstance(e){return e&&e.ODS_Carousel?e.ODS_Carousel:null}static getInstanceById(e){const t=document.querySelector(`[data-carousel-id="${e}"]`)||document.getElementById(e);return t?this.getInstance(t):null}};Yi.OVERFLOW_EPSILON_PX=1;const Xi=ji,Ki=({className:e,children:t,...n})=>{const i=C(Xi,e);return S.jsx("div",{className:i,...n,children:t})};Ki.displayName="CarouselItem";const Zi=({className:t,swiperOptions:n,items:i,renderItems:s,showScrollbar:r=!1,bleedRight:a=!1,...o})=>{const[l]=j(Yi),{"data-swiper-options":c,...d}=o,u=i.map((t,n)=>{const i=s?s(t,n):t;return(t=>e.isValidElement(t)&&t.type===Ki)(i)?e.cloneElement(i,{key:i.key??n.toString()}):S.jsx(Ki,{children:i},n.toString())}),h=C(Ni,t,{[`${Ni}--scrollbar`]:r,[`${Ni}--bleed-right`]:a}),p={navigation:C(Di),controls:C(Mi),prev:C(Ai),next:C(Oi),dots:C(Li)},m=r?{pagination:{enabled:!1},...n}:n;return S.jsxs("div",{className:h,ref:l,"data-carousel":!0,...r||m?{"data-swiper-options":JSON.stringify(m)}:{},...d,children:[S.jsx("div",{className:Ci,children:S.jsx("div",{className:ki,children:S.jsx("div",{className:Ti,children:u})})}),!r&&S.jsxs("div",{className:p.navigation,children:[S.jsx("div",{role:"tablist",className:p.dots}),S.jsxs("div",{className:p.controls,children:[S.jsx(Ye,{className:p.prev,icon:"chevron-left","aria-label":"Naspäť"}),S.jsx(Ye,{className:p.next,icon:"chevron-right","aria-label":"Ďalej"})]})]}),r&&S.jsx("div",{className:Pi,children:S.jsx("div",{className:Ii})})]})};Zi.displayName="Carousel";const Ji=c(({className:e,...t},n)=>{const i=C("container",e);return S.jsx("div",{className:i,ref:n,...t})});Ji.displayName="Container";const Qi="carousel-hero",es=`${Qi}__viewport-wrapper`,ts=`${Qi}__viewport`,ns=`${Qi}__track`,is=`${Qi}__slide`,ss=`${Qi}__slide-container`,rs=`${Qi}__slide-content`,as=`${Qi}__slide-image`,os=`${Qi}__prev`,ls=`${Qi}__next`,cs=`${Qi}__play-pause`,ds=`${Qi}__tabs`,us=`${Qi}__tab`,hs=`${Qi}__pagination`,ps=`${Qi}__pagination-item`,ms=`${Qi}__pagination-svg`,fs=`${Qi}__pagination-circle`,gs=`${Qi}__navigation`,vs="is-active",bs="is-playing",ys="is-paused",_s=`.${ts}`,xs=`.${os}`,ws=`.${ls}`,Ss=`.${cs}`,Es=`.${ds}`,Ns=`.${us}`,Cs=`.${hs}`,ks={pagination:{clickable:!0,bulletClass:ps,bulletActiveClass:"is-active",renderBullet:function(e,t){return`<button type="button" class="${t}" aria-label="Prejsť na snímok ${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:ns,slideClass:is,slideActiveClass:vs};let Ts=class{constructor(e,t){return this.tabs=[],this._dotAnimationJustStarted=!1,this._isDragging=!1,this.element=e,this.config={...ks,...t},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}init(){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)}_onWindowResize(){this.resizeRafId&&cancelAnimationFrame(this.resizeRafId),this.resizeRafId=requestAnimationFrame(()=>{this.resizeRafId=void 0,this.instance&&this.viewport&&(this.viewport.clientWidth<=0||(this.instance.update(),this.updateStates(),this.updatePlayPauseIcon()))})}getElements(){this.viewport=this.element.querySelector(_s);const e=this.element.querySelector(Es);e&&(this.tabs=Array.from(e.querySelectorAll(Ns)))}setupConfig(){const e=this.element.hasAttribute("data-interval")&&parseInt(this.element.getAttribute("data-interval"))||0;if("object"==typeof this.config.a11y&&null!==this.config.a11y&&(this.config.a11y={...this.config.a11y,slideRole:this.tabs.length>0?"tabpanel":"group"}),this.element.hasAttribute("data-swiper-options"))try{const e=JSON.parse(this.element.getAttribute("data-swiper-options"));this.config={...this.config,...e}}catch(e){}this.config.loop=!1,this.config.rewind=!0,e>=1e3&&(this.config.autoplay={delay:e,disableOnInteraction:!1,pauseOnMouseEnter:!1,waitForTransition:!0,stopOnLastSlide:!1},this.element.classList.add(bs))}createSwiper(){const e=this.viewport.querySelectorAll(`.${is}`).length>1;this.instance=new Wt(this.viewport,{...this.config,modules:[Jt,tn,sn,Yt,rn],navigation:{nextEl:this.element.querySelector(ws),prevEl:this.element.querySelector(xs)},pagination:!!e&&{...this.config.pagination,el:this.element.querySelector(Cs)},on:{slideChange:()=>{this.updateStates(),this.isAutoplayRunning()?this.restartDotAnimation():this.stopDotAnimation()},autoplayStart:()=>{this._onAutoplayStart()},autoplayStop:()=>{this._onAutoplayStop()},touchStart:()=>{this._isDragging=!0,this._stopAutoplayIfRunning()},touchEnd:()=>{this._isDragging=!1}}}),this.updatePlayPauseIcon()}setupEventListeners(){this.tabs.forEach(e=>{e.removeEventListener("click",this._boundTabClick),e.addEventListener("click",this._boundTabClick)});const e=this.element.querySelector(Ss);e&&(e.removeEventListener("click",this._boundPlayPauseClick),e.addEventListener("click",this._boundPlayPauseClick));const t=this.element.querySelector(xs),n=this.element.querySelector(ws);t&&(t.removeEventListener("click",this._boundPrevClick),t.addEventListener("click",this._boundPrevClick)),n&&(n.removeEventListener("click",this._boundNextClick),n.addEventListener("click",this._boundNextClick))}_onUserNavigation(){this._stopAutoplayIfRunning(),this.stopDotAnimation()}_onTabClick(e){e.preventDefault();const t=e.currentTarget,n=this.tabs.indexOf(t);-1!==n&&n!==this.instance?.realIndex&&(this._onUserNavigation(),this.goToSlide(n))}_onPlayPauseClick(){this.toggleAutoplay()}isAutoplayRunning(){return!(!this.instance?.autoplay||!this.instance.autoplay.running)}_stopAutoplayIfRunning(){this.isAutoplayRunning()&&this.instance.autoplay.stop()}_onAutoplayStart(){this.element.classList.add(bs),this.element.classList.remove(ys),this.updatePlayPauseIcon(),this.startDotAnimation()}_onAutoplayStop(){this.element.classList.remove(bs),this.element.classList.add(ys),this.updatePlayPauseIcon(),this.stopDotAnimation()}toggleAutoplay(){this.instance&&this.instance.autoplay&&(this.isAutoplayRunning()?this.instance.autoplay.stop():(this.updateStates(),setTimeout(()=>{this.instance&&this.instance.autoplay&&this.instance.autoplay.start()},10)))}goToSlide(e){this.instance&&this.instance.realIndex!==e&&(this.instance.params.loop?this.instance.slideToLoop(e):this.instance.slideTo(e))}updateStates(){if(!this.instance)return;const e=this.instance.realIndex??this.instance.activeIndex??0;this.tabs.forEach((t,n)=>{const i=n===e;t.classList.toggle(vs,i),t.setAttribute("aria-selected",String(i)),t.setAttribute("tabindex",i?"0":"-1")}),this.scrollActiveTabIntoView(e),this.updatePaginationBullets(e)}updatePaginationBullets(e){const t=this.element.querySelector(Cs);t&&t.querySelectorAll(`.${ps}`).forEach((t,n)=>{const i=n===e;if(t.classList.toggle("is-active",i),!this.hasAutoplay()){const e=t.querySelector(`.${ms}`);e&&(e.style.display=i?"block":"none")}})}scrollActiveTabIntoView(e){if(!this.tabs.length||e<0||e>=this.tabs.length)return;const t=this.tabs[e],n=this.element.querySelector(Es);if(!n||!t)return;const i=n.getBoundingClientRect(),s=t.getBoundingClientRect(),r=i.width-56;if(s.right>i.left+r||s.left<i.left){const e=s.left-i.left-r/2+s.width/2;n.scrollBy({left:e,behavior:"smooth"})}}updatePlayPauseIcon(){const e=this.element.querySelector(Ss);if(!e)return;const t=e.querySelector("use");if(t){const e=this.isAutoplayRunning()?"pause":"play",n=t.getAttribute("xlink:href")||"";if(!n.endsWith(`#${e}`)){const i=n.replace(/#[\w-]+$/,`#${e}`);t.setAttribute("xlink:href",i)}}}renderPaginationDots(){this._getPaginationButtons().forEach(e=>{const t=this.createSvgDot();e.innerHTML="",e.appendChild(t)})}startDotAnimation(e=!1){if(!this.hasAutoplay())return;if(!e&&!this.isAutoplayRunning())return;if(this._dotAnimationJustStarted)return;this._dotAnimationJustStarted=!0;const t=this._getActiveBulletButton();if(!t)return void(this._dotAnimationJustStarted=!1);const n=t.querySelector(`.${ms}`);if(!n)return void(this._dotAnimationJustStarted=!1);const i=n.querySelector("circle");if(!i)return void(this._dotAnimationJustStarted=!1);const s=this.getAnimationDuration();i.style.animation="none",t.offsetHeight,i.style.animation=`countdown linear ${s}ms 1 forwards`,this._dotAnimationJustStarted=!1}restartDotAnimation(){this.stopDotAnimation(),setTimeout(()=>{this.startDotAnimation()},50)}stopDotAnimation(){this._getPaginationButtons().forEach(e=>{const t=e.querySelector(`.${ms}`);if(!t)return;const n=t.querySelector("circle");n&&(n.style.animation="none")}),this._dotAnimationJustStarted=!1}_getPaginationButtons(){return Array.from(this.element.querySelectorAll(`${Cs} > *`))}_getActiveBulletClass(){const e=this.instance?.params?.pagination;if(e&&"object"==typeof e&&e.bulletActiveClass)return String(e.bulletActiveClass);const t=this.config.pagination;return t&&"object"==typeof t&&t.bulletActiveClass?String(t.bulletActiveClass):vs}_getActiveBulletButton(){const e=this._getActiveBulletClass();return this.element.querySelector(`${Cs} .${e}`)}createSvgDot(){const e="http://www.w3.org/2000/svg",t=document.createElementNS(e,"svg");t.setAttribute("class",ms),t.setAttribute("width","12"),t.setAttribute("height","12"),t.setAttribute("viewBox","0 0 12 12");const n=document.createElementNS(e,"circle");return n.setAttribute("class",fs),n.setAttribute("r","5"),n.setAttribute("cx","6"),n.setAttribute("cy","6"),t.appendChild(n),t}hasAutoplay(){return!!(this.config.autoplay&&"object"==typeof this.config.autoplay&&this.config.autoplay.delay>=1e3)}getAnimationDuration(){return this.config.autoplay?.delay||0}destroy(){this.tabs.forEach(e=>{e.removeEventListener("click",this._boundTabClick)});const e=this.element.querySelector(Ss);e&&e.removeEventListener("click",this._boundPlayPauseClick);const t=this.element.querySelector(xs),n=this.element.querySelector(ws);t&&t.removeEventListener("click",this._boundPrevClick),n&&n.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}static getInstance(e){return e.ODS_CarouselHero||null}};const js={xs:"0",sm:"480px",md:"768px",lg:"992px",xl:"1240px",xxl:"1380px",xxxl:"1920px"},As=({className:e,src:t,alt:n,...i})=>{const s=C("img",e);if("object"==typeof t){const e=Object.keys(t).sort((e,t)=>parseInt(js[t])-parseInt(js[e]));return S.jsxs("picture",{className:s,children:[e.map(e=>"default"!==e&&S.jsx("source",{srcSet:t[e],media:`(min-width: ${js[e]})`},e)),S.jsx("img",{src:t.default,alt:n,...i})]})}return S.jsx("img",{className:s,src:t,alt:n,...i})};As.displayName="Image";const Os=is,Ls=({className:e,children:t,image:n,...i})=>{const s=C(Os,e);return S.jsx("div",{className:s,...i,children:S.jsxs(Ji,{className:ss,children:[S.jsx("div",{className:rs,children:t}),S.jsx(As,{className:as,src:n,alt:"Obrázok"})]})})};function Ds(t){const n=[];return e.Children.forEach(t,t=>{e.isValidElement(t)&&(t.type!==e.Fragment?n.push(t):n.push(...Ds(t.props.children)))}),n}Ls.displayName="CarouselHeroItem";const Ms=({className:t,swiperOptions:n,children:i,tabs:s=[],interval:r,enableAutoplay:a=!1,...o})=>{const[l]=j(Ts),c=C(Qi,t),u=`carousel-hero-${d().replace(/:/g,"-")}`,h="string"==typeof o.id&&o.id?o.id:u,p=Ds(i),m=s.length>0&&p.length>0,f=(e,t)=>"string"==typeof e?.id&&e.id?e.id:`${h}-tab-${t}`,g=(e,t)=>e&&"string"==typeof e.props.id&&e.props.id?e.props.id:`${h}-panel-${t}`,v={prev:os,next:ls,playPause:cs,tabs:ds,tab:us,pagination:hs},b=(()=>{if(!n)return;if(a||!("autoplay"in n))return n;const{autoplay:e,...t}=n;return Object.keys(t).length>0?t:void 0})(),y=a&&(n?.autoplay&&"object"==typeof n.autoplay&&n.autoplay.delay>=1e3||!!(r&&r>=1e3)),_=p.map((t,n)=>{if(!m)return t;const i=f(s[n],n),r=g(t,n);return e.cloneElement(t,{id:r,role:"tabpanel","aria-labelledby":i})});return S.jsxs("div",{className:c,ref:l,"data-carousel-hero":!0,...a&&r&&r>=1e3?{"data-interval":r}:{},...b?{"data-swiper-options":JSON.stringify(b)}:{},...o,children:[S.jsx("div",{className:es,children:S.jsx("div",{className:ts,children:S.jsx("div",{className:ns,children:_})})}),S.jsxs(Ji,{className:"d-flex",children:[m&&S.jsx("div",{className:v.tabs,role:"tablist",children:s.map((e,t)=>S.jsx("button",{id:f(e,t),type:"button",className:v.tab,role:"tab","aria-controls":g(p[t],t),"aria-selected":0===t?"true":"false",tabIndex:0===t?0:-1,children:e.label},t))}),S.jsx("div",{role:"tablist",className:v.pagination}),S.jsxs("div",{className:gs,children:[S.jsx(Ye,{className:v.prev,icon:"chevron-left","aria-label":"Predchádzajúci snímok"}),S.jsx(Ye,{className:v.next,icon:"chevron-right","aria-label":"Nasledujúci snímok"}),y&&S.jsx(Ye,{className:v.playPause,icon:"pause","aria-label":"Pozastaviť/Spustiť automatické prehrávanie"})]})]})]})};Ms.displayName="CarouselHero";const $s="carousel-promotions",Ps=`${$s}__viewport-wrapper`,Is=`${$s}__viewport`,Rs=`${$s}__track`,zs=`${$s}__next`,Fs=`${$s}__pagination`,Hs=`${$s}__pagination-item`,Bs=`${$s}__pagination-svg`,Vs=`${$s}__pagination-circle`,qs=`${$s}--slide-inverted`,Ws="is-autoplay",Us="is-active",Gs=`.${Is}`,Ys=`.${Fs}`,Xs={pagination:{el:Ys,clickable:!0,bulletClass:Hs,bulletActiveClass:Us,renderBullet:(e,t)=>`<button aria-label="Stránka ${e+1}" role="tab" class="${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:Rs,slideClass:`${$s}__slide`,slideActiveClass:Us,autoplay:!1};let Ks=class e{constructor(e,t){return this.interval=0,this.element=e,this.config={...Xs,...t},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}init(){this.getElements(),this.element.hasAttribute("data-swiper-options")&&this.getCustomOptions(),this.element.hasAttribute("data-interval")&&(this.interval=parseInt(this.element.getAttribute("data-interval")));const e=this.isIntervalValid();e?(this.element.classList.add(Ws),this.config.autoplay={delay:this.interval,disableOnInteraction:!1}):(this.interval=0,this.config.autoplay=!1),this.instance=new Wt(this.viewport,{...this.config,modules:[Jt,tn,sn,Yt,rn],on:{slideChange:this.handleSlideChange,init:()=>{this.fixPaginationButtonType(),this.isAutoplayEnabled&&this.renderSvgDotsForAnimation()},update:()=>{this.fixPaginationButtonType(),this.isAutoplayEnabled&&this.renderSvgDotsForAnimation()}}});const t=this.element.querySelector(Ys);t&&e&&(t.addEventListener("animationend",this.autoplayAnimationEnd),t.addEventListener("click",this.boundPaginationClickHandler)),window.addEventListener("resize",this.boundWindowResizeHandler)}handlePaginationClick(){this.stopAutoplay()}handleWindowResize(){this.resizeRafId&&cancelAnimationFrame(this.resizeRafId),this.resizeRafId=requestAnimationFrame(()=>{this.resizeRafId=void 0,this.instance&&this.viewport&&(this.viewport.clientWidth<=0||(this.instance.update(),this.fixPaginationButtonType(),this.isAutoplayEnabled&&this.renderSvgDotsForAnimation()))})}stopAutoplay(){this.interval=0,this.element.classList.remove(Ws),this.instance&&this.instance.autoplay&&this.instance.autoplay.stop()}handleSlideChange(){this.element.classList.remove(qs),this.instance&&void 0!==this.instance.activeIndex&&this.instance.activeIndex%2==1&&this.element.classList.add(qs)}autoplayAnimationEnd(e){e instanceof AnimationEvent&&"countdown"===e.animationName&&this.scrollToNextSlide()}get isAutoplayEnabled(){return this.interval>0}isIntervalValid(){const e=parseInt(String(this.interval));return!isNaN(e)&&e>=1e3}scrollToNextSlide(){if(!this.instance||!this.instance.slides)return;const e=this.instance.slides.length;if(e<=0)return;const t=this.instance.activeIndex||0;this.instance.slideTo((t+1)%e)}getElements(){this.viewport=this.element.querySelector(Gs);const e=this.element.querySelector(Ys);e&&!e.hasAttribute("role")&&e.setAttribute("role","tablist");const t={pagination:{...this.config.pagination??{},el:e,clickable:!0,bulletClass:Hs,bulletActiveClass:Us}};this.config={...this.config,...t}}getCustomOptions(){const e=this.element.getAttribute("data-swiper-options");if(!e)return;const t=JSON.parse(e);this.config={...this.config,...t}}fixPaginationButtonType(){Array.from(this.element.querySelectorAll(`${Ys} > *`)).forEach(e=>e.setAttribute("type","button"))}static createSvgDot(){const e="http://www.w3.org/2000/svg",t=document.createElementNS(e,"svg");t.setAttribute("class",Bs),t.setAttribute("width","12"),t.setAttribute("height","12"),t.setAttribute("viewBox","0 0 12 12"),t.setAttribute("fill","none"),t.setAttribute("xmlns",e);const n=document.createElementNS(e,"circle");return n.setAttribute("class",Vs),n.setAttribute("r","5"),n.setAttribute("cx","6"),n.setAttribute("cy","6"),t.appendChild(n),t}renderSvgDotsForAnimation(){const t=Array.from(this.element.querySelectorAll(`${Ys} > *`)),n=e.createSvgDot();n.querySelector("circle").style.animationDuration=`${this.interval}ms`,t.forEach(e=>{e.innerHTML="",e.appendChild(n.cloneNode(!0))})}destroy(){window.removeEventListener("resize",this.boundWindowResizeHandler),this.resizeRafId&&(cancelAnimationFrame(this.resizeRafId),this.resizeRafId=void 0);const e=this.element.querySelector(Ys);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}update(){this.instance&&this.instance.update()}static getInstance(e){return e&&e.ODS_CarouselPromotions?e.ODS_CarouselPromotions:null}};const Zs=({className:e,swiperOptions:t,children:n,...i})=>{const[s]=j(Ks),r=C($s,e),a={next:C(zs,"hide-lg"),dots:C(Fs)};return S.jsxs("div",{className:r,ref:s,"data-carousel-promotions":!0,...t?{"data-swiper-options":JSON.stringify(t)}:{},...i,children:[S.jsx("div",{className:Ps,children:S.jsx("div",{className:Is,children:S.jsx("div",{className:Rs,children:n})})}),S.jsx("div",{role:"tablist",className:a.dots})]})};Zs.displayName="CarouselPromotions";const Js=({tag:e="td",...t})=>{const n=e;return S.jsx(n,{...t})};Js.displayName="TableCell";const Qs=e.createContext({headers:[],rows:[],isResponsive:!1}),er=({row:t})=>{const{headers:n,expandableRows:i,isResponsive:s}=e.useContext(Qs);return n.map(({key:n,label:r,cellProps:a},o,l)=>{const c=t[n],d="object"==typeof c&&null!==c,u=d&&"value"in c?c.value:c,h=d&&"value"in c?Object.entries(c).filter(([e])=>"value"!==e&&"rawValue"!==e).reduce((e,[t,n])=>({...e,[t]:n}),{}):{},p=t?.expand?.length||0;return S.jsxs(e.Fragment,{children:[S.jsx(Js,{...a,...h,...s&&{"data-label":r},children:u||""}),o===l.length-1&&i?.hasExpandableRows&&(t?.expand?S.jsx(Js,{className:"align-right table__cell--shrink table__cell--expand",children:S.jsxs(Ae,{type:"ghost",htmlType:"button",size:"small",isSquare:!0,className:"mb-none","data-subrow-toggle":!0,"aria-expanded":t.isExpanded?"true":"false","aria-controls":t.expand?.map(e=>e.id).join(" "),children:[S.jsx("span",{className:"visually-hidden",children:`Zobraziť ${p} súvisiac${p>4?"ich":p>1?"e":"i"} riad${p>4?"kov":p>1?"ky":"ok"}`}),S.jsx(B,{name:"chevron-down",size:"large"})]})}):S.jsx(Js,{className:"align-right table__cell--shrink",children:S.jsx("span",{className:"sr-only",children:i?.expandableRowsCaptions?.emptyRow})}))]},n)})};er.displayName="TableRow";const tr=()=>{const{footers:t}=e.useContext(Qs);return t?S.jsx("tfoot",{children:t.map((e,t)=>S.jsx("tr",{children:S.jsx(er,{row:e})},t.toString()))}):null};tr.displayName="TableFooter";const nr=()=>{const{headers:t,expandableRows:n}=e.useContext(Qs),i={none:"zoradiť vzostupne podľa",ascending:"zoradiť zostupne podľa",descending:"vypnúť zoradenie poďľa"};return S.jsx("thead",{children:S.jsxs("tr",{children:[t.map((e,t)=>{const{isSortable:n,sort:s="none",label:r,cellProps:a,headCellProps:o}=e;return S.jsxs(Js,{tag:"th",...a,...o,...n&&{"aria-sort":s},scope:"col",children:[r,n&&S.jsxs(S.Fragment,{children:[" ",S.jsx("button",{type:"button",className:"table__sort-button",children:S.jsxs("span",{className:"sr-only",children:[i[s]," ",r]})})]})]},t.toString())}),n?.hasExpandableRows&&S.jsx(Js,{tag:"th",scope:"col",className:"table__cell--shrink",children:S.jsx("span",{className:"sr-only",children:n?.expandableRowsCaptions?.header})})]})})};nr.displayName="TableHeader";const ir=()=>{const{rows:t}=e.useContext(Qs);return S.jsx("tbody",{children:t.map((t,n)=>S.jsxs(e.Fragment,{children:[S.jsx("tr",{children:S.jsx(er,{row:t})}),t?.expand?.map(({id:e,...n},i)=>S.jsx("tr",{id:e,className:"table__subrow",hidden:!t.isExpanded||void 0,children:S.jsx(er,{row:n})},i.toString()))]},n.toString()))})};ir.displayName="TableRows";const sr="toggleTrigger",rr={activeClass:"is-active",settingsAttr:"data-toggle"};class ar{constructor(e,t){return this.element=e,this.config={...rr,...t},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}doToggle(e){const{dispatchEvent:t=!0}=e,{element:n,attribute:i,value:s,action:r}=e,a={...e},o={trigger:this.element,element:n};let l=i,c=n,d=s;"icon"===l&&(l="xlink:href",c=n.querySelector("use")),"text"===l&&(c=n.querySelector("[data-toggle-text-target]")||n),void 0===d&&(d=!1);const u=or({element:c,attribute:l,action:r,value:d,dispatchEvent:t,eventDetail:o});return null!==u&&(a.value=u),a}init(){return this.settings=this.parseSettings(),this.targets=this.setupTargets(),this.hasClickOutside=this.settings.some(e=>!0===e.clickOutside),this.element.addEventListener("click",this.handleClick),this.hasClickOutside&&document.addEventListener("click",this.handleClickOutside),this.targets}handleClick(){this.targets=this.targets.map(e=>this.doToggle(e)),this.element.dispatchEvent(new CustomEvent(sr,{bubbles:!0}))}handleClickOutside(e){const t=e.target;this.element.contains(t)||this.targets.some(e=>e.element.contains(t))||this.targets.some(e=>"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(e=>this.doToggle(e)),this.element.dispatchEvent(new CustomEvent(sr,{bubbles:!0})))}destroy(){this.element.removeEventListener("click",this.handleClick),this.hasClickOutside&&document.removeEventListener("click",this.handleClickOutside),this.settings=[],this.targets=[],this.hasClickOutside=!1}update(){this.removeNonExistentTargets(),this.addNewTargets();const e=this.hasClickOutside;this.hasClickOutside=this.settings.some(e=>!0===e.clickOutside),!e&&this.hasClickOutside?document.addEventListener("click",this.handleClickOutside):e&&!this.hasClickOutside&&document.removeEventListener("click",this.handleClickOutside)}static getTargetElementsFromString({target:e,trigger:t}){const n=e.trim();return"self"===n?[t]:"parent"===n?[t.parentNode]:"previous"===n?[t.previousElementSibling]:"next"===n?[t.nextElementSibling]:"string"==typeof n?Array.from(document.querySelectorAll(n)):[]}parseSettings(){const e=this.element.getAttribute(this.config.settingsAttr),t=this.element.getAttribute("aria-controls");let n=[];try{e&&(n=JSON.parse(e))}catch(e){}return t&&(n=[...this.element.getAttribute("aria-expanded")?[{target:"self",attribute:"aria-expanded"}]:[],{target:t.split(" ").map(e=>`#${e}`).join(","),attribute:"hidden"},...Array.isArray(n)?n:[]]),n}setupTargets(){const e=this.element;return this.settings.reduce((t,n)=>n&&n.target?[...t,...n.target.split(",").reduce((t,i)=>[...t,...ar.getTargetElementsFromString({target:i,trigger:e}).map(e=>({...n,element:e}))],[])]:t,[])}removeNonExistentTargets(){this.targets=this.targets.filter(e=>document.contains(e.element))}addNewTargets(){const e=this.setupTargets().filter(e=>!this.targets.find(t=>t.element===e.element&&t.action===e.action));this.targets=[...this.targets,...e]}static getInstance(e){return e&&e.ODS_Toggle?e.ODS_Toggle:null}}function or(e){const{element:t,attribute:n,action:i,value:s,dispatchEvent:r=!0,eventDetail:a}=e;let o=null;if(!(t&&t instanceof Element))return o;if("focus"===i&&setTimeout(()=>t.focus(),20),"click"===i&&t.click(),"class"===n&&"string"==typeof s&&(t.classList.toggle(s),o=s),"text"===n){const e=t.textContent;t.textContent=s?.toString()||"",o=e}return"class"!==n&&"text"!==n&&void 0===i&&(o=t.getAttribute(n),"hidden"===n?t.hasAttribute(n)?t.removeAttribute(n):t.setAttribute(n,""):s?t.setAttribute(n,String(s)):t.setAttribute(n,String(!("true"===o)))),r&&t.dispatchEvent(new CustomEvent("toggle",{detail:a,bubbles:!0})),o}const lr={expandButtonSelector:"[data-subrow-toggle]",scrollableContainerSelector:".table-scrollable",responsiveTableSelector:'[data-table="responsive"]'};let cr=class{constructor(e,t){return this.element=e,this.config={...lr,...t},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(e=>{if(!this.scrollableContainer)return;const t=this.scrollableContainer.getBoundingClientRect();e.forEach(e=>{e.contentRect.width>t.width?this.scrollableContainer?.setAttribute("tabindex","0"):this.scrollableContainer?.removeAttribute("tabindex")})}),this.init(),this}addRole(e,t){Array.from(this.element.querySelectorAll(e)).forEach(e=>{e.setAttribute("role",t)})}addARIA(){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){}}onExpandClick(e){const t=e.currentTarget,n=t.getAttribute("aria-controls")??"",i=this.element.querySelectorAll(n.split(" ").map(e=>`#${e}`).join(","));or({element:t,attribute:"aria-expanded"}),i.forEach(e=>{or({element:e,attribute:"hidden"})})}init(){this.expandButtons=Array.from(this.element.querySelectorAll(this.config.expandButtonSelector)),this.expandButtons.forEach(e=>{e.addEventListener("click",this.onExpandClick)}),this.element.matches(this.config.responsiveTableSelector)&&this.addARIA(),this.maybeInitScrollable()}maybeInitScrollable(){if(this.scrollableContainer=this.element.closest(this.config.scrollableContainerSelector),this.scrollableContainer)return this.resizeObserver.observe(this.element),!0}destroy(){this.expandButtons.forEach(e=>{e.removeEventListener("click",this.onExpandClick)}),this.resizeObserver.disconnect(),this.expandButtons=[]}update(){this.destroy(),this.init()}static getInstance(e){return e&&e.ODS_Table?e.ODS_Table:null}};const dr="table",ur=({className:e,caption:t,headers:n,rows:i,footers:s,isCompact:r,isResponsive:a,isStriped:o,isScrollable:l,expandableRowsCaptions:c={header:"Rozšíriteľný",emptyRow:"Nerozšíriteľný riadok"},...u})=>{const[h]=j(cr),p=d(),m=C(dr,{[`${dr}--striped`]:o,[`${dr}--compact`]:r,[`${dr}--responsive`]:a},e),f=`${p}-caption`,g={hasExpandableRows:i.some(e=>e&&e.expand&&e.expand.length>0),expandableRowsCaptions:c},v={headers:n,footers:s,rows:i.map((e,t)=>e&&e.expand?{...e,expand:e.expand.map((e,n)=>({...e,id:`${p}-row-${t}-${n}`}))}:e),expandableRows:g,isResponsive:a};return S.jsx(Qs.Provider,{value:v,children:S.jsx(G,{condition:l||!1,wrapper:S.jsx("div",{className:`${dr}-scrollable`,role:"group",...t&&{"aria-labelledby":f}}),children:S.jsxs("table",{ref:h,className:m,...a&&{"data-table":"responsive"},...u,children:[t&&S.jsx("caption",{...l&&{id:f},children:t}),S.jsx(nr,{}),S.jsx(ir,{}),S.jsx(tr,{})]})})})};ur.displayName="Table";const hr=({dialog:e,id:t,placement:n,tag:i="span",className:s,renderTrigger:r,children:a,...o})=>{const l=O(t),c=C("tooltip",s),d=i,[u]=j(Ei,{removeDialogOnDestroy:!0}),h={"data-tooltip-trigger":!0,"aria-describedby":l,"aria-owns":l,children:a};return S.jsxs(S.Fragment,{children:[r?r(h):S.jsx("button",{type:"button",...h,children:a}),S.jsxs(d,{id:l,className:c,role:"tooltip",hidden:!0,ref:u,"data-tooltip":!0,"data-tooltip-placement":n,...o,children:[S.jsx(d,{className:"tooltip__arrow"}),S.jsx(d,{className:"tooltip__dialog",children:e})]})]})};hr.displayName="Tooltip";const pr="info-tooltip",mr=({children:e,className:t,...n})=>S.jsxs(hr,{dialog:e,renderTrigger:e=>S.jsx("button",{type:"button",className:pr,...e}),...n,children:[S.jsx(B,{name:"assistance",className:C(`${pr}__icon`,t)}),S.jsx("span",{className:"sr-only",children:"Info"})]});mr.displayName="InfoTooltip";const fr=({name:e,tooltip:t})=>void 0===e?null:S.jsxs(S.Fragment,{children:[S.jsx("span",{className:"bold",children:e}),t&&S.jsxs(S.Fragment,{children:[" ",S.jsx(mr,{className:"icon--small",children:t})]})]});fr.displayName="FooterNameColumn";const gr=({price:e,discount:t=0,label:n,size:i})=>void 0===e?null:S.jsxs(S.Fragment,{children:[t>0&&S.jsx("del",{className:"text-secondary",children:Ce(e)}),S.jsxs("div",{children:[S.jsx("div",{className:C("text-accent mb-none",{h4:"large"!==i,h2:"large"===i}),children:Ce(e-t)}),S.jsx("span",{className:C("text-accent mb-none",{h6:"large"!==i,h3:"large"===i}),children:n})]})]});function vr(e,t,n){return e.reduce((e,i)=>{const s=i?.monthsFree??0,r=(i?.discount?.monthsCount??0)+s||n;return s&&t<=s?e+=i?.price?.monthly??0:r>0&&t<=r&&(e+=i?.discount?.monthly??0),e},0)}function br(e,t){return e.reduce((e,n)=>(e+=n?.price?.[t]??0)-(n?.discount?.[t]??0),0)}gr.displayName="FooterPriceColumn";const yr=(e,t,n,i,s)=>{if(e.find(e=>e?.monthsFree||e?.discount?.monthsCount)){const r=function(e,t,n=24){let i=[];const s=function(e){return e.reduce((e,t)=>e+(t?.price?.monthly??0),0)}(e),r=function(e){return e.reduce((e,t)=>(e+=t?.price?.upfront??0)-(t?.discount?.upfront??0),0)}(e);for(let t=1;t<n;t++){const a={upfront:r>0&&1===t?r:void 0,monthly:s},o={monthly:vr(e,t,n)},l=i.length-1;0!==i.length&&i[l].price?.upfront===a?.upfront&&i[l].discount?.monthly===o?.monthly||(i[l]&&(i[l].end=t-1),i=[...i,{start:t,end:n,price:a,discount:o}])}return t&&(i.shift(),i[0]&&(i[0].start=1)),function(e){return e.map(({start:t,end:n,price:i,discount:s})=>{let r="";return e.length>1&&(r=t!==n?`${t}. – ${n}. mesiac`:`${t}. mesiac`),{name:r,price:i,discount:s}})}(i)}(e,n?.hideFirst);return r.map(({name:e,price:r,discount:a})=>({col1:S.jsx(fr,{name:e,tooltip:n?.tooltip}),col2:r&&void 0!==r.upfront&&r.upfront>0&&"upfront"!==t&&S.jsx(gr,{price:r.upfront,discount:a&&a.upfront,label:i.upfront,size:s}),col3:S.jsx(gr,{price:r.monthly,discount:a&&a.monthly,label:i.monthly,size:s})}))}return[{col1:n?.name&&S.jsx(fr,{name:n.name,tooltip:n.tooltip}),col2:"upfront"!==t&&S.jsx(gr,{price:br(e,"upfront"),label:i.upfront,size:s}),col3:S.jsx(gr,{price:br(e,"monthly"),label:i.monthly,size:s})}]},_r="tag",xr=e.forwardRef((t,n)=>{const{color:i,size:s,isDisabled:r,className:a,children:o,actionButton:l,...c}=t,d=C(_r,a,{[`tag--${i}`]:i,[`tag--${s}`]:s});if("onClick"in t&&t.onClick){const{onClick:e,...t}=c;return S.jsx("button",{type:"button",className:d,onClick:e,disabled:!!r||void 0,"aria-disabled":r?"true":void 0,ref:n,...t,children:o})}if("href"in t&&t.href){const{href:e,...t}=c;return S.jsx("a",{className:d,href:e,"aria-disabled":r?"true":void 0,ref:n,...t,children:o})}if("actionButton"in t&&l){const t=c;return S.jsxs("div",{ref:n,className:`${_r}__wrapper`,children:[S.jsx("span",{className:d,"aria-disabled":r?"true":void 0,...t,children:o}),e.isValidElement(l)?e.cloneElement(l,{size:s,isDisabled:r}):l]})}const u=c;return S.jsxs("span",{className:d,ref:n,...u,children:[o," ",l]})});xr.displayName="Tag";const wr=`${_r}__action`,Sr=e.forwardRef((e,t)=>{const{className:n,onClick:i,isDisabled:s,iconName:r,ariaLabel:a,size:o,...l}=e,c=C(wr,{[`${wr}--${o}`]:o},n);return S.jsx("button",{type:"button",className:c,onClick:i,disabled:!!s||void 0,"aria-disabled":s?"true":void 0,"aria-label":a,ref:t,...l,children:S.jsx(B,{size:"large"===o?"medium":"small",name:r})})});Sr.displayName="TagButton";const Er=({price:e,discount:t,freeLabel:n,label:i,discountMonthsCount:s})=>{const r=!e&&!!t;return void 0!==e||void 0!==t?S.jsxs(S.Fragment,{children:[t&&e&&S.jsxs(S.Fragment,{children:[S.jsx("del",{className:"text-secondary",children:Ce(e)}),S.jsx("br",{})]}),S.jsxs(ae,{className:"bold justify-content-end mb-none",children:[S.jsx(ce,{className:"hide-sm",children:s&&r?`1. – ${s}. mesiac`:i}),S.jsx(ce,{children:r?Ce(-t):e-(t??0)===0?n:Ce(e-(t??0))})]})]}):null},Nr=(e,t,n)=>{const{isSubitem:i,image:s,badge:r,name:a,tooltip:o,price:l,discount:c,description:d,icon:u,isMandatory:h,isOptional:p}=e;return{col1:S.jsxs(S.Fragment,{children:[S.jsxs(ae,{canWrap:!1,className:C("mb-none ",{"cart-table__subitem":i}),children:[i&&S.jsx(ce,{children:S.jsx(B,{name:"add",size:"medium"})}),u&&S.jsx(ce,{children:S.jsx(B,{name:u,size:"medium"})}),s&&S.jsx(ce,{children:S.jsx(As,{src:s,alt:"",width:"24"})}),S.jsxs(ce,{isFilling:!0,children:[r&&S.jsx(xr,{color:"warning",children:r}),S.jsx(ae,{space:"small",children:S.jsxs(ce,{canShrink:!0,className:C("bold",{"text-nowrap":o}),children:[S.jsx(G,{condition:!!o,wrapper:S.jsx("span",{className:"text-wrap",children:a}),children:a}),o&&" ",o&&S.jsx(mr,{className:"icon--small",placement:"right",children:o})]})}),d&&S.jsx("div",{children:"string"==typeof d?d:d.map(e=>S.jsx("p",{className:"mb-0",children:e},e))})]}),!t||h||p?null:S.jsx(ce,{className:"hide-sm",children:S.jsx(Re,{iconName:"trash",isSquare:!0,size:"small","aria-label":n.remove})}),p&&S.jsx(ce,{className:"hide-sm",children:S.jsx(Re,{iconName:"add",isSquare:!0,size:"small","aria-label":n.add})})]}),!l?.monthly&&c?.monthsCount&&S.jsx("div",{children:S.jsx("p",{className:C("mb-none show-sm cart-table__discount--margin-top",{"cart-table__subitem":i,"cart-table__discount--padding-left":s||u||i}),children:`1. – ${c.monthsCount}. mesiac`})})]}),col2:S.jsx(Er,{discount:c?.upfront,freeLabel:n.free,label:n.upfront,price:l?.upfront}),col3:S.jsx(Er,{discount:c?.monthly,discountMonthsCount:c?.monthsCount,freeLabel:n.free,label:n.monthly,price:l?.monthly}),...t&&!h&&!p&&{col4:S.jsx(Re,{iconName:"trash",size:"small",className:"cart-table__button mb-none",children:S.jsx("span",{className:"show-md",children:n.remove})})},...p&&{col4:S.jsx(Re,{iconName:"add",size:"small",className:"cart-table__button mb-none",children:S.jsx("span",{className:"show-md",children:n.add})})}}},Cr="cart-table",kr={monthly:"mesačne",upfront:"vopred",product:"produkt",remove:"odstrániť",add:"Pridať",install:"inštalácia",free:"zadarmo"},Tr=({items:e=[],hideEmpty:t=!0,isEditable:n=!1,footer:i,labels:s=kr,size:r})=>{const a=t?[" hide"," hide"]:["",""];return t&&e.forEach(({price:e={},discount:t={}})=>{void 0===e.upfront&&void 0===t.upfront||(a[0]=""),void 0===e.monthly&&void 0===t.monthly||(a[1]="")}),S.jsx(ur,{className:C(Cr,{[`${Cr}--large`]:r}),headers:[{key:"col1",cellProps:{className:"cart-table__product"},label:Ee(s.product)},{cellProps:{className:`align-right ${Cr}__price${a[0]}`},key:"col2",label:Ee(s.upfront)},{cellProps:{className:`align-right ${Cr}__price${a[1]}`},key:"col3",label:Ee(s.monthly)},...n?[{cellProps:{className:"align-right"},key:"col4",label:""}]:[]],rows:e.map(e=>({...Nr(e,n,s)})),footers:yr(e,"true",i??{},s,"large"===r?"large":void 0)})};Tr.displayName="CartTable";const jr="countdown",Ar=`${jr}__announcement`,Or=`${jr}__unit`,Lr=`${jr}__card`,Dr=`${jr}__top`,Mr=`${jr}__leaf-front`,$r=`${jr}__leaf-back`,Pr=`${jr}__bottom`,Ir=`${jr}__value`,Rr=`${jr}__label`,zr="is-flipping",Fr="countdown-tag",Hr=`${Fr}__part`,Br=`${Fr}__value`,Vr=`${Fr}__label`,qr=`${Fr}__separator`,Wr="data-countdown",Ur="data-countdown-config",Gr="data-countdown-unit",Yr="data-countdown-tag",Xr="data-countdown-tag-value",Kr=`.${Ar}`,Zr=`.${Or}`,Jr=`.${Rr}`,Qr=`[${Gr}]`,ea=`.${Vr}`,ta=`[${Xr}]`,na=[`.${Dr} .${Ir}`,`.${Mr} .${Ir}`,`.${$r} .${Ir}`,`.${Pr} .${Ir}`].join(", "),ia=["days","hours","minutes","seconds"],sa={days:864e5,hours:36e5,minutes:6e4,seconds:1e3},ra=e=>e?.length?ia.filter(t=>e.includes(t)):[...ia],aa=(e,t)=>"string"==typeof e&&e.trim()?{many:e,few:e,one:e}:e&&"object"==typeof e&&"string"==typeof e.many&&"string"==typeof e.few&&"string"==typeof e.one?e:t,oa=(e,t)=>{const n=(e=>{const t=new Date(e).getTime();return Number.isNaN(t)?0:t})(e);let i=Math.max(0,n-Date.now());const s={days:0,hours:0,minutes:0,seconds:0};return t.forEach(e=>{const t=Math.floor(i/sa[e]);s[e]=t,i-=t*sa[e]}),s};class la{constructor(e,t,n){this.element=e,this.defaultConfig=n.defaultConfig,this.instanceKey=n.instanceKey,this.config={...n.defaultConfig,...t??{}},this.liveRegion=null,this.tick=this.tick.bind(this),this.start=this.start.bind(this),this.stop=this.stop.bind(this),this.element[this.instanceKey]=this}readDataConfig(){const e=this.element.getAttribute(Ur);if(!e)return{};try{return JSON.parse(e)}catch(e){return{}}}getLiveRegion(){return this.element.querySelector(Kr)}scheduleNextTick(){this.stop();const e=1e3-Date.now()%1e3||1e3;this.timerId=window.setTimeout(this.tick,e)}tick(){this.render(),this.scheduleNextTick()}setupObserver(){"undefined"!=typeof IntersectionObserver?(this.observer=new IntersectionObserver(e=>{e.forEach(e=>{e.isIntersecting?this.start():this.stop()})}),this.observer.observe(this.element)):this.start()}init(){const e=this.readDataConfig();this.config={...this.defaultConfig,...e,...this.config},this.liveRegion=this.getLiveRegion(),this.collectElements(),this.render(),this.setupObserver()}start(){this.render(),this.scheduleNextTick()}stop(){this.timerId&&(window.clearTimeout(this.timerId),this.timerId=void 0)}update(e){this.stop(),this.observer?.disconnect(),this.destroyElements(),this.config={...this.config,...e??{}},this.init()}destroy(){this.stop(),this.observer?.disconnect(),this.destroyElements(),this.element[this.instanceKey]=null}}const ca={many:"dni",few:"dni",one:"deň"},da={days:ca,hours:"hod",minutes:"min",seconds:"sek"},ua={targetDate:"",units:[...ia],labels:da},ha=(e,t,n)=>{if("days"!==e)return n[e];const{many:i,few:s,one:r}=aa(n.days,ca);return 1===t?r:t>=2&&t<=4?s:i};class pa extends la{constructor(e,t){super(e,t,{defaultConfig:ua,instanceKey:"ODS_Countdown"}),this.leaves=new Map,this.init()}getLabels(){return{...da,...this.config.labels??{},days:aa(this.config.labels?.days,ca)}}collectElements(){this.leaves.clear();const e=ra(this.config.units);Array.from(this.element.querySelectorAll(Zr)).forEach(t=>{const n=t.getAttribute(Gr);n&&e.includes(n)&&this.leaves.set(n,{element:t,unit:n,labels:Array.from(t.querySelectorAll(na)),isFlipping:!1})})}setLeafValue(e,t){e.labels.forEach(e=>{e.replaceChildren(document.createTextNode(t))})}flipLeaf(e,t){const[n,i,s,r]=e.labels;n&&i&&s&&r&&(n.textContent?e.isFlipping||n.textContent===t||(e.flipTimeoutId&&window.clearTimeout(e.flipTimeoutId),e.isFlipping=!0,n.replaceChildren(document.createTextNode(t)),s.replaceChildren(document.createTextNode(t)),e.element.classList.add(zr),e.flipTimeoutId=window.setTimeout(()=>{i.replaceChildren(document.createTextNode(t)),r.replaceChildren(document.createTextNode(t)),e.element.classList.remove(zr),e.isFlipping=!1,e.flipTimeoutId=void 0},600)):this.setLeafValue(e,t))}render(){const e=ra(this.config.units),t=this.getLabels(),n=oa(this.config.targetDate,e);if(e.forEach(e=>{const i=this.leaves.get(e);if(!i)return;const s=n[e],r=ha(e,s,t);this.flipLeaf(i,(e=>String(Math.max(0,e)).padStart(2,"0"))(s));const a=i.element.querySelector(Jr);a&&(a.textContent=r)}),this.liveRegion){const i=e.map(e=>`${n[e]} ${ha(e,n[e],t)}`).join(", ");this.liveRegion.textContent=i}}destroyElements(){this.leaves.forEach(e=>{e.flipTimeoutId&&(window.clearTimeout(e.flipTimeoutId),e.flipTimeoutId=void 0),e.isFlipping=!1,e.element.classList.remove(zr)})}static getInstance(e){return e&&e.ODS_Countdown?e.ODS_Countdown:null}}const ma={days:{many:"dni",few:"dni",one:"deň"},hours:"hod",minutes:"min",seconds:"sek"},fa={days:"d",hours:"h",minutes:"m",seconds:"s"},ga=e=>e?.length?ia.filter(t=>e.includes(t)):[...ia],va=(e,t,n)=>{if("days"===e){const e=t?.days??n.days;return"string"==typeof e?e:e.many}return t?.[e]??n[e]},ba=(e,t,n)=>({labels:n,targetDate:e,units:ga(t)}),ya=e=>e.includes("seconds")?"off":"polite",_a=({className:e,labels:t,targetDate:n,units:i=[...ia],...s})=>{const r=ga(i),a=ba(n,r,t),[o]=j(pa,a);return S.jsxs("div",{className:C(jr,e),[Wr]:"true",[Ur]:JSON.stringify(a),ref:o,role:"timer","aria-live":ya(r),"aria-atomic":"true",...s,children:[S.jsx("span",{className:`sr-only ${Ar}`}),r.map(e=>S.jsxs("div",{className:Or,[Gr]:e,"aria-hidden":"true",children:[S.jsxs("div",{className:Lr,children:[S.jsx("div",{className:Dr,children:S.jsx("span",{className:Ir,children:"00"})}),S.jsx("div",{className:Mr,children:S.jsx("span",{className:Ir,children:"00"})}),S.jsx("div",{className:$r,children:S.jsx("span",{className:Ir,children:"00"})}),S.jsx("div",{className:Pr,children:S.jsx("span",{className:Ir,children:"00"})})]}),S.jsx("span",{className:Rr,children:va(e,t,ma)})]},e))]})};_a.displayName="Countdown";const xa={many:"d",few:"d",one:"d"},wa={days:xa,hours:"h",minutes:"m",seconds:"s"},Sa={targetDate:"",units:["days","hours","minutes","seconds"],labels:wa},Ea=(e,t)=>"days"===e?aa(t.days,xa).many:t[e];class Na extends la{constructor(e,t){super(e,t,{defaultConfig:Sa,instanceKey:"ODS_CountdownTag"}),this.units=new Map,this.init()}getLabels(){return{...wa,...this.config.labels??{},days:aa(this.config.labels?.days,xa)}}collectElements(){this.units.clear();const e=ra(this.config.units);Array.from(this.element.querySelectorAll(Qr)).forEach(t=>{const n=t.getAttribute(Gr);n&&e.includes(n)&&this.units.set(n,{element:t,unit:n,valueElement:t.querySelector(ta)})})}render(){const e=ra(this.config.units),t=this.getLabels(),n=oa(this.config.targetDate,e);e.forEach(e=>{const i=this.units.get(e);if(!i)return;const s=n[e];i.valueElement&&(i.valueElement.textContent=(e=>e<100?String(Math.max(0,e)).padStart(2,"0"):String(Math.max(0,e)))(s));const r=i.element.querySelector(ea);r&&(r.textContent=Ea(e,t))}),this.liveRegion&&(this.liveRegion.textContent=e.map(e=>`${n[e]} ${Ea(e,t)}`).join(", "))}destroyElements(){}static getInstance(e){return e&&e.ODS_CountdownTag?e.ODS_CountdownTag:null}}const Ca=({className:t,labels:n,targetDate:i,units:s=["days","hours","minutes","seconds"],...r})=>{const a=ga(s),o=ba(i,a,n),[l]=j(Na,o);return S.jsxs("div",{className:C(Fr,t),[Yr]:"true",[Ur]:JSON.stringify(o),ref:l,role:"timer","aria-live":ya(a),"aria-atomic":"true",...r,children:[S.jsx("span",{className:`sr-only ${Ar}`}),a.map((t,i)=>S.jsxs(e.Fragment,{children:[S.jsxs("span",{className:Hr,[Gr]:t,"aria-hidden":"true",children:[S.jsx("span",{className:Br,[Xr]:"true",children:"00"}),S.jsx("span",{className:Vr,children:va(t,n,fa)})]}),i<a.length-1&&S.jsx("span",{className:qr,"aria-hidden":"true",children:":"})]},t))]})};Ca.displayName="CountdownTag";const ka="cover",Ta=({className:e,children:t,contentClass:n,bgPosition:i="center",bgSrc:s,size:r,...a})=>{const o=C(ka,{[`${ka}--${r}`]:r},e),l=C(`${ka}__content`,n),c=C(`${ka}__image`,{[`${ka}__image--${i}`]:"center"!==i});return S.jsxs("div",{className:o,children:[t&&S.jsx("div",{className:l,children:t}),S.jsx(As,{src:s,className:c,alt:"",...a})]})};Ta.displayName="Cover";const ja="divider",Aa=({className:e,icon:t,content:n,...i})=>{const s=C(ja,e),r=`${ja}__line`,a=`${ja}__content`;return S.jsxs("div",{className:s,...i,children:[S.jsx("div",{className:r}),(n||t)&&S.jsxs(S.Fragment,{children:[S.jsx("div",{className:a,children:n??(t&&S.jsx(B,{name:t,size:"medium"}))}),S.jsx("div",{className:r})]})]})};Aa.displayName="Divider";const Oa={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]}}]}};let La=class{constructor(e,t={}){return e.ODS_Dropdown?e.ODS_Dropdown:(this.element=e,this.config={...Oa,...t},this.config.popperOptions={...Oa.popperOptions,...t?.popperOptions||{}},this.config.popperOptions.modifiers=[...Oa.popperOptions.modifiers||[],...t?.popperOptions?.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)}static getInstance(e){return e&&e.ODS_Dropdown?e.ODS_Dropdown:null}init(){this.trigger=document.getElementById(this.element.id.replace("dropdown","btn"));const e=this.element.getAttribute("data-dropdown-placement");e&&(this.config.popperOptions.placement=e),this.instance=wi(this.trigger,this.element,this.config.popperOptions),this.transitioner=an({element:this.element,visibleClass:"dropdown--visible"}),this.trigger.addEventListener("click",this.handleVisibility,!0)}handleVisibility(){this.element.classList.contains("dropdown--visible")?this.hide():this.show()}handleClick(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()}handleKeyPress(e){if(L.ESC.includes(e.key)&&(this.handleVisibility(),this.element.contains(document.activeElement)&&this.trigger.focus(),this.hide()),this.element.hasAttribute(this.config.focusTrap)){const 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())}}show(){this.transitioner.show(),this.instance.forceUpdate(),document.addEventListener("keydown",this.handleKeyPress),document.addEventListener("click",this.handleClick),window.onresize=()=>this.update()}hide(){this.transitioner.hide(),document.removeEventListener("keydown",this.handleKeyPress),document.removeEventListener("click",this.handleClick),window.onresize=null}update(){this.instance.forceUpdate()}destroy(){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()}};var Da,Ma,$a,Pa={exports:{}},Ia={},Ra={};var za=($a||($a=1,"production"===process.env.NODE_ENV?Pa.exports=function(){if(Da)return Ia;Da=1;var e=Symbol.for("react.fragment");return Ia.Fragment=e,Ia.jsxDEV=void 0,Ia}():Pa.exports=(Ma||(Ma=1,"production"!==process.env.NODE_ENV&&function(){function t(e){if(null==e)return null;if("function"==typeof e)return e.$$typeof===E?null:e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case p:return"Fragment";case f:return"Profiler";case m:return"StrictMode";case y:return"Suspense";case _:return"SuspenseList";case S:return"Activity"}if("object"==typeof e)switch(e.tag,e.$$typeof){case h:return"Portal";case v:return e.displayName||"Context";case g:return(e._context.displayName||"Context")+".Consumer";case b:var n=e.render;return(e=e.displayName)||(e=""!==(e=n.displayName||n.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case x:return null!==(n=e.displayName||null)?n:t(e.type)||"Memo";case w:n=e._payload,e=e._init;try{return t(e(n))}catch(e){}}return null}function n(e){return""+e}function i(e){try{n(e);var t=!1}catch(e){t=!0}if(t){var i=(t=console).error,s="function"==typeof Symbol&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||"Object";return i.call(t,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",s),n(e)}}function s(e){if(e===p)return"<>";if("object"==typeof e&&null!==e&&e.$$typeof===w)return"<...>";try{var n=t(e);return n?"<"+n+">":"<...>"}catch(e){return"<...>"}}function r(){return Error("react-stack-top-frame")}function a(){var e=t(this.type);return j[e]||(j[e]=!0),void 0!==(e=this.props.ref)?e:null}function o(e){l(e)?e._store&&(e._store.validated=1):"object"==typeof e&&null!==e&&e.$$typeof===w&&("fulfilled"===e._payload.status?l(e._payload.value)&&e._payload.value._store&&(e._payload.value._store.validated=1):e._store&&(e._store.validated=1))}function l(e){return"object"==typeof e&&null!==e&&e.$$typeof===u}var c,d=e,u=Symbol.for("react.transitional.element"),h=Symbol.for("react.portal"),p=Symbol.for("react.fragment"),m=Symbol.for("react.strict_mode"),f=Symbol.for("react.profiler"),g=Symbol.for("react.consumer"),v=Symbol.for("react.context"),b=Symbol.for("react.forward_ref"),y=Symbol.for("react.suspense"),_=Symbol.for("react.suspense_list"),x=Symbol.for("react.memo"),w=Symbol.for("react.lazy"),S=Symbol.for("react.activity"),E=Symbol.for("react.client.reference"),N=d.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,C=Object.prototype.hasOwnProperty,k=Array.isArray,T=console.createTask?console.createTask:function(){return null},j={},A=(d={react_stack_bottom_frame:function(e){return e()}}).react_stack_bottom_frame.bind(d,r)(),O=T(s(r)),L={};Ra.Fragment=p,Ra.jsxDEV=function(e,n,r,l){var d=1e4>N.recentlyCreatedOwnerStacks++;return function(e,n,s,r,l,d){var h,p=n.children;if(void 0!==p)if(r){if(k(p)){for(r=0;r<p.length;r++)o(p[r]);Object.freeze&&Object.freeze(p)}}else o(p);if(C.call(n,"key")){p=t(e);var m=Object.keys(n).filter(function(e){return"key"!==e});r=0<m.length?"{key: someKey, "+m.join(": ..., ")+": ...}":"{key: someKey}",L[p+r]||(m=0<m.length?"{"+m.join(": ..., ")+": ...}":"{}",L[p+r]=!0)}if(p=null,void 0!==s&&(i(s),p=""+s),function(e){if(C.call(e,"key")){var t=Object.getOwnPropertyDescriptor(e,"key").get;if(t&&t.isReactWarning)return!1}return void 0!==e.key}(n)&&(i(n.key),p=""+n.key),"key"in n)for(var f in s={},n)"key"!==f&&(s[f]=n[f]);else s=n;return p&&function(e){function t(){c||(c=!0)}t.isReactWarning=!0,Object.defineProperty(e,"key",{get:t,configurable:!0})}(s,"function"==typeof e&&(e.displayName||e.name)),function(e,t,n,i,s,r){var o=n.ref;return e={$$typeof:u,type:e,key:t,props:n,_owner:i},null!==(void 0!==o?o:null)?Object.defineProperty(e,"ref",{enumerable:!1,get:a}):Object.defineProperty(e,"ref",{enumerable:!1,value:null}),e._store={},Object.defineProperty(e._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(e,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(e,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:s}),Object.defineProperty(e,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:r}),Object.freeze&&(Object.freeze(e.props),Object.freeze(e)),e}(e,p,s,null===(h=N.A)?null:h.getOwner(),l,d)}(e,n,r,l,d?Error("react-stack-top-frame"):A,d?T(s(e)):O)}}()),Ra)),Pa.exports);const Fa=({children:e,...i})=>{const s=t(null),r="string"==typeof i.iconName;return n(()=>{if(s.current){const e=new ar(s.current);return()=>{e.destroy()}}},[]),r?za.jsxDEV(Re,{ref:s,...i,children:e},void 0,!1):za.jsxDEV(Ae,{ref:s,...i,children:e},void 0,!1)},Ha=({className:e,id:t,...n})=>S.jsx(Fa,{"aria-expanded":!1,id:`btn-${t}`,"data-toggle":JSON.stringify([{target:"self",attribute:"aria-expanded"}]),...n,className:C(`${Ba}__button mb-none`,e)});Ha.displayName="DropdownToggleButton";const Ba="dropdown",Va={left:"bottom-start",center:"bottom",right:"bottom-end"},qa=({button:e,className:t,hasFocusTrap:n=!1,hasSpacing:i=!0,children:s,id:r,isInteractive:a=!1,placement:o="left",...l})=>{const[c]=j(La),d=C("dropdown",{[`${Ba}-spacing`]:i},t);return S.jsxs(S.Fragment,{children:[e&&S.jsx(Ha,{...e,id:r,className:e.className||""}),S.jsxs("div",{ref:c,id:`dropdown-${r}`,className:d,"data-dropdown":"","data-dropdown-placement":Va[o],"data-dropdown-interactive":a,"data-dropdown-focus-trap":n,...l,children:[n&&S.jsx(ae,{className:"mb-small justify-content-end",children:S.jsx(ce,{children:S.jsx(Re,{iconName:"delete",isSquare:!0,size:"small",className:`${Ba}__close`,"aria-label":"Zatvoriť",id:`close-btn-${r}`,"data-toggle":JSON.stringify([{target:`#btn-${r}`,action:"click"}])})})}),s]})]})};qa.displayName="Dropdown";const Wa=({className:e,...t})=>{const n=C("dropdown__divider",e);return S.jsx("div",{className:n,...t})};Wa.displayName="DropdownDivider";const Ua=({className:e,children:t,disabled:n,href:i,...s})=>{const r=C("dropdown__item",{disabled:n},e);return S.jsx("a",{tabIndex:n?-1:0,href:i,className:r,"aria-disabled":n,...s,children:t})};Ua.displayName="DropdownItem";let Ga=class{constructor(e){this.element=e,this.toggle=this.toggle.bind(this),this.element.ODS_Expander=this,this.init()}toggle(){const e=this.element.getAttribute("data-toggle-group");e&&this.syncGroup(e)}syncGroup(e){const t=this.element.open;document.querySelectorAll(`[data-toggle-group="${e}"][data-expander]`).forEach(e=>{e!==this.element&&e.open!==t&&(e.open=t)})}init(){this.element.addEventListener("toggle",this.toggle)}update(){this.destroy(),this.init()}destroy(){this.element.removeEventListener("toggle",this.toggle)}static getInstance(e){return e&&e.ODS_Expander?e.ODS_Expander:null}};const Ya="expander",Xa=e=>{const{className:t,children:n,summary:i,summaryOpened:s,renderSummary:r,renderSummaryOpened:a,isFullWidth:o,placement:l="bottom",toggleGroup:c,...d}=e,[h]=j(Ga),p=C(Ya,{[`${Ya}--fullwidth`]:o,[`${Ya}--placement-top`]:"top"===l},t),m=u(()=>r?r(e):i&&S.jsxs(S.Fragment,{children:[i," ",S.jsx(B,{alt:"stav",name:"chevron-down","data-summary-icon":!0})]}),[r,e,i]),f=u(()=>a?a(e):s&&S.jsxs(S.Fragment,{children:[s," ",S.jsx(B,{alt:"stav",name:"chevron-down","data-summary-icon":!0})]}),[a,e,s]);return S.jsxs("details",{className:p,"data-expander":!0,...c?{"data-toggle-group":c}:{},ref:h,...d,children:[S.jsxs("summary",{"data-summary":i,"data-summary-opened":s,children:[S.jsx("span",{className:`${Ya}__summary`,children:m}),f&&S.jsx("span",{className:`${Ya}__summary--opened`,children:f})]}),S.jsx("div",{children:n})]})};Xa.displayName="Expander";const Ka={bodiesSelector:".accordion__body",buttonSelector:"[data-feature-accordion-toggle]"};let Za=class{constructor(e,t){return this.bodies=[],this.buttons=[],this.images=[],this.onClick=e=>{const t=e.currentTarget,n=this.buttons.indexOf(t);this.setActive(n)},this.element=e,this.config={...Ka,...t},this.element.ODS_FeatureAccordion=this,this.init(),this}init(){this.bodies=Array.from(this.element.querySelectorAll(this.config.bodiesSelector)),this.buttons=Array.from(this.element.querySelectorAll(this.config.buttonSelector)),this.images=Array.from(this.element.querySelectorAll("[data-feature-accordion-image]")),this.setActive(0),this.buttons.forEach(e=>{e.addEventListener("click",this.onClick)})}setActive(e){if(e<0||e>=this.buttons.length)return;this.bodies.forEach(e=>{e.setAttribute("hidden",""),e.classList.remove("is-active")}),this.buttons.forEach(e=>{const t=e.closest(".feature-accordion__item");t?.classList.remove("is-active"),or({element:e,attribute:"aria-expanded",value:"false"})});const t=this.buttons[e],n=t.getAttribute("aria-controls"),i=n?document.getElementById(n):null,s=t.closest(".feature-accordion__item");i&&(i.removeAttribute("hidden"),i.classList.add("is-active")),s&&s.classList.add("is-active"),or({element:t,attribute:"aria-expanded",value:"true"}),this.images.forEach((t,n)=>{t.classList.toggle("hide",n!==e)})}destroy(){this.buttons.forEach(e=>{e.removeEventListener("click",this.onClick)})}update(){this.destroy(),this.init()}static getInstance(e){return e&&e.ODS_FeatureAccordion?e.ODS_FeatureAccordion:null}};const Ja="feature-accordion",Qa=e=>({id:e.id,imageSrc:e.image||e.imageUrl,imageAlt:e.imageAlt,imageSrcSet:e.imageSrcSet}),eo=t=>{const{className:n,previewClassName:i,children:s,...r}=t,[a]=j(Za),o=C(Ja,n),l=u(()=>e.Children.toArray(s),[s]),c=u(()=>l.map(e=>({child:e,...Qa(e.props)})),[l]);return S.jsxs("div",{className:o,"data-feature-accordion":!0,ref:a,...r,children:[S.jsx("div",{className:`${Ja}__accordion`,children:S.jsx(R,{children:c.map(({child:e,imageSrc:t})=>t?e:null)})}),S.jsx("div",{className:C(`${Ja}__preview`,i),children:c.map(({id:e,imageSrc:t,imageAlt:n,imageSrcSet:i},s)=>t?S.jsx(As,{"data-feature-accordion-image":!0,src:t,alt:n,srcSet:i,className:C({hide:0!==s})},e):null)})]})},to=({image:e,imageUrl:t,imageAlt:n,imageSrcSet:i,className:s,children:r,...a})=>S.jsx(U,{className:C("feature-accordion__item",s),children:S.jsx("div",{className:"feature-accordion__content",children:r}),toggleAttribute:"data-feature-accordion-toggle",...a});to.displayName="FeatureAccordionItem";const no="select",io="default",so="default",ro=[],ao=({id:e,isDisabled:t,isInvalid:n,name:i,options:s=ro,size:r=io,className:a,children:o,elemRef:l,width:c=so,...d})=>{const u=C(no,a,{"is-invalid":n,[`${no}--${r}`]:r!==io,[`${no}--${c}`]:c!==so}),h=e||T(),p=i||h;return S.jsxs("select",{id:h,name:p,className:u,disabled:t,ref:l,...d,children:[s.map(e=>{const{value:t,text:n,...i}="string"==typeof e?{value:e,text:e}:e;return S.jsx("option",{value:t,...i,children:n},n)}),o]})};ao.displayName="Select";const oo={autoselect:!0,wrapperClassName:"",menuClassName:"",optionClassName:"",customInputClassName:"",displayMenu:"overlay",tClearButton:()=>"Vymazať text",tAssistiveHint:()=>"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."},lo=(e,t)=>{const n=e.split(/\s+/).filter(Boolean);return n.includes(t)?e:[...n,t].join(" ")};let co=class{constructor(e,t){return this.element=e,this.config={...oo,...t},this.onPageshow=this.onPageshow.bind(this),this.onClearButtonClick=this.onClearButtonClick.bind(this),this.instance=null,this.teardownClearButton=null,this.element.ODS_Autocomplete=this,this.init().catch(()=>{}),this}async init(){const e=this.element.getAttribute("data-autocomplete-config");let t={};if(e)try{t=JSON.parse(e)}catch{}this.config={...this.config,...t};const n=(this.config.customInputClassName||"").split(/\s+/).filter(Boolean),i=this.config.wrapperClassName.split(/\s+/).filter(Boolean),s=n.includes("input--search-icon")||i.includes("autocomplete__wrapper--search-icon"),r=n.includes("input--search-icon-with-placeholder")||i.includes("autocomplete__wrapper--search-icon-with-placeholder"),a=this.element.classList.contains("is-invalid");this.config.customInputClassName=n.filter(e=>"input--search-icon"!==e&&"input--search-icon-with-placeholder"!==e).join(" "),a&&(this.config.customInputClassName=lo(this.config.customInputClassName,"is-invalid")),s&&(this.config.wrapperClassName=lo(this.config.wrapperClassName,"autocomplete__wrapper--search-icon")),r&&(this.config.wrapperClassName=lo(this.config.wrapperClassName,"autocomplete__wrapper--search-icon-with-placeholder"));const o=(await Promise.resolve().then(function(){return vg})).default;"SELECT"===this.element.tagName?o.enhanceSelectElement({selectElement:this.element,...this.config}):o({element:this.element,...this.config}),this.initEnhancedControls(r),window.addEventListener("pageshow",this.onPageshow)}getWrapper(){if("SELECT"===this.element.tagName){const e=this.element.previousElementSibling;return(e=>{if(!e)return!1;const t=e.ownerDocument?.defaultView?.HTMLElement;return t?e instanceof t:e.nodeType===Node.ELEMENT_NODE})(e)?e.classList.contains("autocomplete__wrapper")?e:e.querySelector(".autocomplete__wrapper"):null}return this.element.querySelector(".autocomplete__wrapper")}getInput(){return this.getWrapper()?.querySelector(".autocomplete__input")??null}initEnhancedControls(e,t=10){this.getInput()?(this.syncInputState(),e&&this.initClearButton()):t>0&&window.setTimeout(()=>this.initEnhancedControls(e,t-1),0)}syncInputState(){const e=this.getInput();e&&(this.element.classList.contains("is-invalid")&&(e.classList.add("is-invalid"),e.setAttribute("aria-invalid","true")),this.element instanceof HTMLSelectElement&&this.element.disabled&&(e.disabled=!0))}initClearButton(){this.teardownClearButton?.();const e=this.getWrapper(),t=this.getInput();if(!e||!t)return;const n=document.createElement("button");n.type="button",n.className="autocomplete__clear",n.setAttribute("aria-label",this.config.tClearButton());const i=()=>{n.hidden=t.disabled||0===t.value.length},s=()=>{window.setTimeout(i,0)};n.addEventListener("mousedown",this.preventDefault),n.addEventListener("keydown",this.stopPropagation),n.addEventListener("click",this.onClearButtonClick),t.addEventListener("input",i),t.addEventListener("change",i),e.addEventListener("click",s),e.addEventListener("keyup",s),i(),e.appendChild(n),this.teardownClearButton=()=>{n.removeEventListener("mousedown",this.preventDefault),n.removeEventListener("keydown",this.stopPropagation),n.removeEventListener("click",this.onClearButtonClick),t.removeEventListener("input",i),t.removeEventListener("change",i),e.removeEventListener("click",s),e.removeEventListener("keyup",s),n.remove()}}preventDefault(e){e.preventDefault()}stopPropagation(e){e.stopPropagation()}onClearButtonClick(){const e=this.getInput();if(e){if(e.value="",e.dispatchEvent(new Event("input",{bubbles:!0})),e.dispatchEvent(new Event("change",{bubbles:!0})),this.element instanceof HTMLSelectElement){const e=Array.from(this.element.options).find(e=>""===e.value);e?e.selected=!0:this.element.selectedIndex=-1,this.element.dispatchEvent(new Event("change",{bubbles:!0}))}this.config.onConfirm?.(""),e.focus()}}onPageshow(e){e.persisted&&window&&window.location.reload()}destroy(){this.teardownClearButton?.(),this.teardownClearButton=null,window.removeEventListener("pageshow",this.onPageshow),this.element.ODS_Autocomplete=null}update(){this.destroy(),this.init().catch(()=>{})}static getInstance(e){return e&&e.ODS_Autocomplete?e.ODS_Autocomplete:null}};const uo=({className:e,options:t=[],autocompleteConfig:n,placeholder:i,...s})=>{const[r]=j(co,n),a=!n||"data-autocomplete-config"in s||"dataAutocompleteConfig"in s?void 0:JSON.stringify(n);return S.jsx(ao,{className:C("autocomplete",e),"data-placeholder":i,...a?{"data-autocomplete-config":a}:{},...t.length?{"data-autocomplete":!0}:{},...s,elemRef:r,children:t&&t.map(e=>S.jsx("option",{label:"string"==typeof e&&0===e.length?" ":void 0,value:"string"==typeof e?e:e.value,children:"string"==typeof e?e:e.title},"string"==typeof e?e:e.value))})};uo.displayName="Autocomplete";var ho=Object.freeze({__proto__:null,Autocomplete:uo});const po="checkbox",mo="default",fo=({id:e,isChecked:t,isDisabled:n,isInvalid:i,isToggle:s,name:r,size:a=mo,className:o,...l})=>{const c=C(po,o,{[`${po}--${a}`]:a!==mo,"is-invalid":i}),d=r||e,u=()=>S.jsxs(S.Fragment,{children:[S.jsx("input",{className:c,type:"checkbox",id:e,name:d,defaultChecked:t,disabled:n,...l}),S.jsx("div",{className:`${po}-display`})]});return s?S.jsx("div",{className:s?"checkbox--toggle":"",children:S.jsx(u,{})}):S.jsx(u,{})};var go,vo,bo,yo,_o,xo,wo;fo.displayName="Checkbox";var So,Eo,No,Co={},ko=[],To=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function jo(e,t){for(var n in t)e[n]=t[n];return e}function Ao(e){var t=e.parentNode;t&&t.removeChild(e)}function Oo(e,t,n){var i,s,r,a={};for(r in t)"key"==r?i=t[r]:"ref"==r?s=t[r]:a[r]=t[r];if(arguments.length>2&&(a.children=arguments.length>3?go.call(arguments,2):n),"function"==typeof e&&null!=e.defaultProps)for(r in e.defaultProps)void 0===a[r]&&(a[r]=e.defaultProps[r]);return Lo(e,a,i,s,null)}function Lo(e,t,n,i,s){var r={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==s?++bo:s};return null==s&&null!=vo.vnode&&vo.vnode(r),r}function Do(e){return e.children}function Mo(e,t){this.props=e,this.context=t}function $o(e,t){if(null==t)return e.__?$o(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?$o(e):null}function Po(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 Po(e)}}function Io(e){(!e.__d&&(e.__d=!0)&&yo.push(e)&&!Ro.__r++||xo!==vo.debounceRendering)&&((xo=vo.debounceRendering)||_o)(Ro)}function Ro(){for(var e;Ro.__r=yo.length;)e=yo.sort(function(e,t){return e.__v.__b-t.__v.__b}),yo=[],e.some(function(e){var t,n,i,s,r,a;e.__d&&(r=(s=(t=e).__v).__e,(a=t.__P)&&(n=[],(i=jo({},s)).__v=s.__v+1,Go(a,s,i,t.__n,void 0!==a.ownerSVGElement,null!=s.__h?[r]:null,n,null==r?$o(s):r,s.__h),Yo(n,s),s.__e!=r&&Po(s)))})}function zo(e,t,n,i,s,r,a,o,l,c){var d,u,h,p,m,f,g,v=i&&i.__k||ko,b=v.length;for(n.__k=[],d=0;d<t.length;d++)if(null!=(p=n.__k[d]=null==(p=t[d])||"boolean"==typeof p?null:"string"==typeof p||"number"==typeof p||"bigint"==typeof p?Lo(null,p,null,null,p):Array.isArray(p)?Lo(Do,{children:p},null,null,null):p.__b>0?Lo(p.type,p.props,p.key,null,p.__v):p)){if(p.__=n,p.__b=n.__b+1,null===(h=v[d])||h&&p.key==h.key&&p.type===h.type)v[d]=void 0;else for(u=0;u<b;u++){if((h=v[u])&&p.key==h.key&&p.type===h.type){v[u]=void 0;break}h=null}Go(e,p,h=h||Co,s,r,a,o,l,c),m=p.__e,(u=p.ref)&&h.ref!=u&&(g||(g=[]),h.ref&&g.push(h.ref,null,p),g.push(u,p.__c||m,p)),null!=m?(null==f&&(f=m),"function"==typeof p.type&&p.__k===h.__k?p.__d=l=Fo(p,l,e):l=Bo(e,p,h,v,m,l),"function"==typeof n.type&&(n.__d=l)):l&&h.__e==l&&l.parentNode!=e&&(l=$o(h))}for(n.__e=f,d=b;d--;)null!=v[d]&&("function"==typeof n.type&&null!=v[d].__e&&v[d].__e==n.__d&&(n.__d=$o(i,d+1)),Ko(v[d],v[d]));if(g)for(d=0;d<g.length;d++)Xo(g[d],g[++d],g[++d])}function Fo(e,t,n){for(var i,s=e.__k,r=0;s&&r<s.length;r++)(i=s[r])&&(i.__=e,t="function"==typeof i.type?Fo(i,t,n):Bo(n,i,i,s,i.__e,t));return t}function Ho(e,t){return t=t||[],null==e||"boolean"==typeof e||(Array.isArray(e)?e.some(function(e){Ho(e,t)}):t.push(e)),t}function Bo(e,t,n,i,s,r){var a,o,l;if(void 0!==t.__d)a=t.__d,t.__d=void 0;else if(null==n||s!=r||null==s.parentNode)e:if(null==r||r.parentNode!==e)e.appendChild(s),a=null;else{for(o=r,l=0;(o=o.nextSibling)&&l<i.length;l+=2)if(o==s)break e;e.insertBefore(s,r),a=r}return void 0!==a?a:s.nextSibling}function Vo(e,t,n){"-"===t[0]?e.setProperty(t,n):e[t]=null==n?"":"number"!=typeof n||To.test(t)?n:n+"px"}function qo(e,t,n,i,s){var r;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||Vo(e.style,t,"");if(n)for(t in n)i&&n[t]===i[t]||Vo(e.style,t,n[t])}else if("o"===t[0]&&"n"===t[1])r=t!==(t=t.replace(/Capture$/,"")),t=t.toLowerCase()in e?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+r]=n,n?i||e.addEventListener(t,r?Uo:Wo,r):e.removeEventListener(t,r?Uo:Wo,r);else if("dangerouslySetInnerHTML"!==t){if(s)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 Wo(e){this.l[e.type+!1](vo.event?vo.event(e):e)}function Uo(e){this.l[e.type+!0](vo.event?vo.event(e):e)}function Go(e,t,n,i,s,r,a,o,l){var c,d,u,h,p,m,f,g,v,b,y,_=t.type;if(void 0!==t.constructor)return null;null!=n.__h&&(l=n.__h,o=t.__e=n.__e,t.__h=null,r=[o]),(c=vo.__b)&&c(t);try{e:if("function"==typeof _){if(g=t.props,v=(c=_.contextType)&&i[c.__c],b=c?v?v.props.value:c.__:i,n.__c?f=(d=t.__c=n.__c).__=d.__E:("prototype"in _&&_.prototype.render?t.__c=d=new _(g,b):(t.__c=d=new Mo(g,b),d.constructor=_,d.render=Zo),v&&v.sub(d),d.props=g,d.state||(d.state={}),d.context=b,d.__n=i,u=d.__d=!0,d.__h=[]),null==d.__s&&(d.__s=d.state),null!=_.getDerivedStateFromProps&&(d.__s==d.state&&(d.__s=jo({},d.__s)),jo(d.__s,_.getDerivedStateFromProps(g,d.__s))),h=d.props,p=d.state,u)null==_.getDerivedStateFromProps&&null!=d.componentWillMount&&d.componentWillMount(),null!=d.componentDidMount&&d.__h.push(d.componentDidMount);else{if(null==_.getDerivedStateFromProps&&g!==h&&null!=d.componentWillReceiveProps&&d.componentWillReceiveProps(g,b),!d.__e&&null!=d.shouldComponentUpdate&&!1===d.shouldComponentUpdate(g,d.__s,b)||t.__v===n.__v){d.props=g,d.state=d.__s,t.__v!==n.__v&&(d.__d=!1),d.__v=t,t.__e=n.__e,t.__k=n.__k,t.__k.forEach(function(e){e&&(e.__=t)}),d.__h.length&&a.push(d);break e}null!=d.componentWillUpdate&&d.componentWillUpdate(g,d.__s,b),null!=d.componentDidUpdate&&d.__h.push(function(){d.componentDidUpdate(h,p,m)})}d.context=b,d.props=g,d.state=d.__s,(c=vo.__r)&&c(t),d.__d=!1,d.__v=t,d.__P=e,c=d.render(d.props,d.state,d.context),d.state=d.__s,null!=d.getChildContext&&(i=jo(jo({},i),d.getChildContext())),u||null==d.getSnapshotBeforeUpdate||(m=d.getSnapshotBeforeUpdate(h,p)),y=null!=c&&c.type===Do&&null==c.key?c.props.children:c,zo(e,Array.isArray(y)?y:[y],t,n,i,s,r,a,o,l),d.base=t.__e,t.__h=null,d.__h.length&&a.push(d),f&&(d.__E=d.__=null),d.__e=!1}else null==r&&t.__v===n.__v?(t.__k=n.__k,t.__e=n.__e):t.__e=function(e,t,n,i,s,r,a,o){var l,c,d,u=n.props,h=t.props,p=t.type,m=0;if("svg"===p&&(s=!0),null!=r)for(;m<r.length;m++)if((l=r[m])&&"setAttribute"in l==!!p&&(p?l.localName===p:3===l.nodeType)){e=l,r[m]=null;break}if(null==e){if(null===p)return document.createTextNode(h);e=s?document.createElementNS("http://www.w3.org/2000/svg",p):document.createElement(p,h.is&&h),r=null,o=!1}if(null===p)u===h||o&&e.data===h||(e.data=h);else{if(r=r&&go.call(e.childNodes),c=(u=n.props||Co).dangerouslySetInnerHTML,d=h.dangerouslySetInnerHTML,!o){if(null!=r)for(u={},m=0;m<e.attributes.length;m++)u[e.attributes[m].name]=e.attributes[m].value;(d||c)&&(d&&(c&&d.__html==c.__html||d.__html===e.innerHTML)||(e.innerHTML=d&&d.__html||""))}if(function(e,t,n,i,s){var r;for(r in n)"children"===r||"key"===r||r in t||qo(e,r,null,n[r],i);for(r in t)s&&"function"!=typeof t[r]||"children"===r||"key"===r||"value"===r||"checked"===r||n[r]===t[r]||qo(e,r,t[r],n[r],i)}(e,h,u,s,o),d)t.__k=[];else if(m=t.props.children,zo(e,Array.isArray(m)?m:[m],t,n,i,s&&"foreignObject"!==p,r,a,r?r[0]:n.__k&&$o(n,0),o),null!=r)for(m=r.length;m--;)null!=r[m]&&Ao(r[m]);o||("value"in h&&void 0!==(m=h.value)&&(m!==e.value||"progress"===p&&!m||"option"===p&&m!==u.value)&&qo(e,"value",m,u.value,!1),"checked"in h&&void 0!==(m=h.checked)&&m!==e.checked&&qo(e,"checked",m,u.checked,!1))}return e}(n.__e,t,n,i,s,r,a,l);(c=vo.diffed)&&c(t)}catch(e){t.__v=null,(l||null!=r)&&(t.__e=o,t.__h=!!l,r[r.indexOf(o)]=null),vo.__e(e,t,n)}}function Yo(e,t){vo.__c&&vo.__c(t,e),e.some(function(t){try{e=t.__h,t.__h=[],e.some(function(e){e.call(t)})}catch(e){vo.__e(e,t.__v)}})}function Xo(e,t,n){try{"function"==typeof e?e(t):e.current=t}catch(e){vo.__e(e,n)}}function Ko(e,t,n){var i,s;if(vo.unmount&&vo.unmount(e),(i=e.ref)&&(i.current&&i.current!==e.__e||Xo(i,null,t)),null!=(i=e.__c)){if(i.componentWillUnmount)try{i.componentWillUnmount()}catch(e){vo.__e(e,t)}i.base=i.__P=null}if(i=e.__k)for(s=0;s<i.length;s++)i[s]&&Ko(i[s],t,"function"!=typeof e.type);n||null==e.__e||Ao(e.__e),e.__e=e.__d=void 0}function Zo(e,t,n){return this.constructor(e,n)}function Jo(e,t,n){var i,s;vo.__&&vo.__(e,t),i=t.__k,s=[],Go(t,e=t.__k=Oo(Do,null,[e]),i||Co,Co,void 0!==t.ownerSVGElement,i?null:t.firstChild?go.call(t.childNodes):null,s,i?i.__e:t.firstChild,!1),Yo(s,e)}go=ko.slice,vo={__e:function(e,t){for(var n,i,s;t=t.__;)if((n=t.__c)&&!n.__)try{if((i=n.constructor)&&null!=i.getDerivedStateFromError&&(n.setState(i.getDerivedStateFromError(e)),s=n.__d),null!=n.componentDidCatch&&(n.componentDidCatch(e),s=n.__d),s)return n.__E=n}catch(t){e=t}throw e}},bo=0,Mo.prototype.setState=function(e,t){var n;n=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=jo({},this.state),"function"==typeof e&&(e=e(jo({},n),this.props)),e&&jo(n,e),null!=e&&this.__v&&(t&&this.__h.push(t),Io(this))},Mo.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),Io(this))},Mo.prototype.render=Do,yo=[],_o="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,Ro.__r=0,wo=0;var Qo=0,el=[],tl=vo.__b,nl=vo.__r,il=vo.diffed,sl=vo.__c,rl=vo.unmount;function al(e,t){vo.__h&&vo.__h(Eo,e,Qo||t),Qo=0;var n=Eo.__H||(Eo.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({}),n.__[e]}function ol(e){return Qo=1,function(e,t){var n=al(So++,2);return n.t=e,n.__c||(n.__=[gl(void 0,t),function(e){var t=n.t(n.__[0],e);n.__[0]!==t&&(n.__=[t,n.__[1]],n.__c.setState({}))}],n.__c=Eo),n.__}(gl,e)}function ll(e,t){var n=al(So++,3);!vo.__s&&fl(n.__H,t)&&(n.__=e,n.__H=t,Eo.__H.__h.push(n))}function cl(e){return Qo=5,function(e,t){var n=al(So++,7);return fl(n.__H,t)&&(n.__=e(),n.__H=t,n.__h=e),n.__}(function(){return{current:e}},[])}function dl(e){var t=Eo.context[e.__c],n=al(So++,9);return n.c=e,t?(null==n.__&&(n.__=!0,t.sub(Eo)),t.props.value):e.__}function ul(){for(var e;e=el.shift();)if(e.__P)try{e.__H.__h.forEach(pl),e.__H.__h.forEach(ml),e.__H.__h=[]}catch(t){e.__H.__h=[],vo.__e(t,e.__v)}}vo.__b=function(e){Eo=null,tl&&tl(e)},vo.__r=function(e){nl&&nl(e),So=0;var t=(Eo=e.__c).__H;t&&(t.__h.forEach(pl),t.__h.forEach(ml),t.__h=[])},vo.diffed=function(e){il&&il(e);var t=e.__c;t&&t.__H&&t.__H.__h.length&&(1!==el.push(t)&&No===vo.requestAnimationFrame||((No=vo.requestAnimationFrame)||function(e){var t,n=function(){clearTimeout(i),hl&&cancelAnimationFrame(t),setTimeout(e)},i=setTimeout(n,100);hl&&(t=requestAnimationFrame(n))})(ul)),Eo=null},vo.__c=function(e,t){t.some(function(e){try{e.__h.forEach(pl),e.__h=e.__h.filter(function(e){return!e.__||ml(e)})}catch(n){t.some(function(e){e.__h&&(e.__h=[])}),t=[],vo.__e(n,e.__v)}}),sl&&sl(e,t)},vo.unmount=function(e){rl&&rl(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach(function(e){try{pl(e)}catch(e){t=e}}),t&&vo.__e(t,n.__v))};var hl="function"==typeof requestAnimationFrame;function pl(e){var t=Eo,n=e.__c;"function"==typeof n&&(e.__c=void 0,n()),Eo=t}function ml(e){var t=Eo;e.__c=e.__(),Eo=t}function fl(e,t){return!e||e.length!==t.length||t.some(function(t,n){return t!==e[n]})}function gl(e,t){return"function"==typeof t?t(e):t}function vl(e,t){for(var n in t)e[n]=t[n];return e}function bl(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 yl(e){this.props=e}(yl.prototype=new Mo).isPureReactComponent=!0,yl.prototype.shouldComponentUpdate=function(e,t){return bl(this.props,e)||bl(this.state,t)};var _l=vo.__b;vo.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),_l&&_l(e)};var xl="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function wl(e){function t(t,n){var i=vl({},t);return delete i.ref,e(i,(n=t.ref||n)&&("object"!=typeof n||"current"in n)?n:null)}return t.$$typeof=xl,t.render=t,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t}var Sl=vo.__e;vo.__e=function(e,t,n){if(e.then)for(var i,s=t;s=s.__;)if((i=s.__c)&&i.__c)return null==t.__e&&(t.__e=n.__e,t.__k=n.__k),i.__c(e,t);Sl(e,t,n)};var El=vo.unmount;function Nl(){this.__u=0,this.t=null,this.__b=null}function Cl(e){var t=e.__.__c;return t&&t.__e&&t.__e(e)}function kl(){this.u=null,this.o=null}vo.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&!0===e.__h&&(e.type=null),El&&El(e)},(Nl.prototype=new Mo).__c=function(e,t){var n=t.__c,i=this;null==i.t&&(i.t=[]),i.t.push(n);var s=Cl(i.__v),r=!1,a=function(){r||(r=!0,n.__R=null,s?s(o):o())};n.__R=a;var o=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(a,a)},Nl.prototype.componentWillUnmount=function(){this.t=[]},Nl.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=vl({},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 s=t.__e&&Oo(Do,null,e.fallback);return s&&(s.__h=null),[Oo(Do,null,t.__e?null:e.children),s]};var Tl=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]}};(kl.prototype=new Mo).__e=function(e){var t=this,n=Cl(t.__v),i=t.o.get(e);return i[0]++,function(s){var r=function(){t.props.revealOrder?(i.push(s),Tl(t,e,i)):s()};n?n(r):r()}},kl.prototype.render=function(e){this.u=null,this.o=new Map;var t=Ho(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},kl.prototype.componentDidUpdate=kl.prototype.componentDidMount=function(){var e=this;this.o.forEach(function(t,n){Tl(e,n,t)})};var jl="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,Al=/^(?: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]/,Ol="undefined"!=typeof document,Ll=function(e){return("undefined"!=typeof Symbol&&"symbol"==typeof Symbol()?/fil|che|rad/i:/fil|che|ra/i).test(e)};Mo.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(e){Object.defineProperty(Mo.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})});var Dl=vo.event;function Ml(){}function $l(){return this.cancelBubble}function Pl(){return this.defaultPrevented}vo.event=function(e){return Dl&&(e=Dl(e)),e.persist=Ml,e.isPropagationStopped=$l,e.isDefaultPrevented=Pl,e.nativeEvent=e};var Il={configurable:!0,get:function(){return this.class}},Rl=vo.vnode;vo.vnode=function(e){var t=e.type,n=e.props,i=n;if("string"==typeof t){var s=-1===t.indexOf("-");for(var r in i={},n){var a=n[r];Ol&&"children"===r&&"noscript"===t||"value"===r&&"defaultValue"in n&&null==a||("defaultValue"===r&&"value"in n&&null==n.value?r="value":"download"===r&&!0===a?a="":/ondoubleclick/i.test(r)?r="ondblclick":/^onchange(textarea|input)/i.test(r+t)&&!Ll(n.type)?r="oninput":/^onfocus$/i.test(r)?r="onfocusin":/^onblur$/i.test(r)?r="onfocusout":/^on(Ani|Tra|Tou|BeforeInp|Compo)/.test(r)?r=r.toLowerCase():s&&Al.test(r)?r=r.replace(/[A-Z0-9]/,"-$&").toLowerCase():null===a&&(a=void 0),i[r]=a)}"select"==t&&i.multiple&&Array.isArray(i.value)&&(i.value=Ho(n.children).forEach(function(e){e.props.selected=-1!=i.value.indexOf(e.props.value)})),"select"==t&&null!=i.defaultValue&&(i.value=Ho(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&&(Il.enumerable="className"in n,null!=n.className&&(i.class=n.className),Object.defineProperty(i,"className",Il))}e.$$typeof=jl,Rl&&Rl(e)};var zl=vo.__r;vo.__r=function(e){zl&&zl(e),e.__c};var Fl={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 Hl(...e){return e.join(" ").trim()}var Bl={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 Vl(e){return e instanceof Date&&!isNaN(e.valueOf())}function ql(e,t=1){const n=new Date(e),i=e.getDay(),s=(i<t?7:0)+i-t;return new Date(n.setDate(n.getDate()-s))}function Wl(e,t=1){const n=new Date(e),i=n.getDay(),s=6+(i<t?-7:0)-(i-t);return new Date(n.setDate(n.getDate()+s))}function Ul(e,t){return!(!Vl(e)||!Vl(t))&&(e.setHours(0,0,0,0),t.setHours(0,0,0,0),e.getTime()===t.getTime())}function Gl(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 Yl,Xl,Kl=(Xl={__c:Yl="__cC"+wo++,__:void 0,Consumer:function(e,t){return e.children(t)},Provider:function(e){var t,n;return this.getChildContext||(t=[],(n={})[Yl]=this,this.getChildContext=function(){return n},this.shouldComponentUpdate=function(e){this.props.value!==e.value&&t.some(Io)},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.__=Xl.Consumer.contextType=Xl,Zl=()=>{const{firstDayOfWeek:e,classes:t,l10n:n,selected:i,setSelected:s,setView:r,handleKeyboardNavigation:a,focusedRef:o,view:l,disabledDayFn:c,locale:d}=dl(Kl),u=function(e,t){const n=e?.length?[...e]:[],i=n.splice(0,t);return[...n,...i]}(n.weekdays,e),h=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}(ql(n,t),Wl(i,t))}(l,e));return Oo("table",{className:t.table},Oo("thead",null,Oo("tr",{className:t.tableHeaderRow},u.map(e=>Oo("th",{scope:"col",className:t.tableHeaderCell},Oo("span",{className:t.srOnly},e.name),Oo("span",{"aria-hidden":"true"},e.shortname))))),Oo("tbody",null,h.map(e=>Oo("tr",{className:t.tableRow},e.map(e=>{const n=i&&Ul(e,i),u=Ul(e,l),h=!function(e,t){return e.getMonth()===t.getMonth()}(e,l)||c(e),p=(m=e,Ul(new Date,m)?t.isToday:void 0);var m;const f=n?t.isSelected:void 0,g=[t.dayButton,p,f],v=u?"0":"-1",b=e.toLocaleDateString(d),y=u?o:void 0;return Oo("td",{role:"gridcell",className:t.tableCell},Oo("button",{className:g.join(" "),type:"button",onClick:()=>{h||(s(e),r(e))},tabindex:v,onKeyUp:a,ref:y,"aria-disabled":h,"aria-label":b,"aria-selected":n},Oo("span",{className:t.srOnly},b),Oo("span",{"aria-hidden":"true"},e.getDate())))})))))},Jl=wl(({label:e,value:t,options:n,onChange:i,className:s,elemRef:r,...a},o)=>{const{classes:l}=dl(Kl);return Oo("label",null,Oo("span",{className:"sr-only"},e),Oo("select",{className:Hl(l.select,s),onChange:e=>i(e),ref:o,...a},n?.map(e=>Oo("option",{value:e?.value||0===e?.value?e.value:e,selected:t===e?.value||t===e?"selected":void 0},e?.text?e.text:e))))}),Ql=Jl;function ec(e,t){const n=[];for(let i=e;i<=t;i++)n.push(i);return n}var tc=wl((e,t)=>{const{l10n:n,min:i,max:s,view:r,setView:a,classes:o}=dl(Kl),l=new Date(i).getFullYear(),c=new Date(s).getFullYear();return Oo(Ql,{label:n.year,options:ec(l,c),value:r.getFullYear(),className:o.yearSelect,onChange:e=>{const t=new Date(r);t.setFullYear(parseInt(e.target.value,10)),a(t)},ref:t,...e})}),nc=tc,ic=()=>{const{l10n:e,view:t,setView:n,classes:i}=dl(Kl);return Oo(Ql,{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)}})},sc=({min:e="1900-01-01",max:t="2100-12-31",classes:n=Fl,l10n:i=Bl,selectedDay:s,firstDayOfWeek:r=1,locale:a={},disabledDayFn:o=()=>{},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:d=e=>{const t=e.match(/(\d{2})\/(\d{2})\/(\d{4})/);return!!t&&new Date(t[3],t[2]-1,t[1])},calendarIcon:u,name:h,id:p})=>{const[m,f]=ol(s?new Date(s):new Date),[g,v]=ol(s?new Date(s):void 0),[b,y]=ol(!1),_=cl(!0),x=cl(),w=cl(),S=cl(),E=cl(),N=cl(),C=cl();var k,T,j;ll(()=>{l(g),y(!1)},[g]),ll(()=>{const e=e=>{"Tab"===e.key&&b&&(e.shiftKey||document.activeElement!==C.current||(e.preventDefault(),E.current.focus()),!e.shiftKey||document.activeElement!==E.current&&document.activeElement!==N.current||(e.preventDefault(),C.current.focus()))},t=e=>{"Escape"===e.key&&b&&y(!1)};return document.addEventListener("keydown",e),document.addEventListener("keydown",t),()=>{document.removeEventListener("keydown",e),document.removeEventListener("keydown",t)}},[b,C.current,E.current]),ll(()=>{const e=e=>{!N.current.contains(e.target)&&b&&y(!1)};return document.addEventListener("click",e),()=>document.removeEventListener("click",e)},[b,N.current]),k=()=>{b?N.current.focus():document.activeElement===x.current||_.current?_.current=!1:S.current.focus()},T=[b,E.current,S.current,x.current],j=al(So++,4),!vo.__s&&fl(j.__H,T)&&(j.__=k,j.__H=T,Eo.__h.push(j));const A=e=>Gl(e,e.getMonth()-1),O=e=>Gl(e,e.getMonth()+1),L=()=>{y(!b)},D=({type:e,children:t,...n})=>Oo(e,n,t&&t.length&&t.map(e=>D(e)));return Oo(Kl.Provider,{value:{firstDayOfWeek:r,classes:n,l10n:i,min:e,max:t,view:m,setView:f,selected:g,setSelected:v,handleKeyboardNavigation:e=>{let t=new Date(m);const n={ArrowLeft:()=>{t.setDate(m.getDate()-1)},ArrowRight:()=>{t.setDate(m.getDate()+1)},ArrowUp:()=>{t.setDate(m.getDate()-7)},ArrowDown:()=>{t.setDate(m.getDate()+7)},PageUp:()=>{e.shiftKey?t.setFullYear(m.getFullYear()-1):t=A(m)},PageDown:()=>{e.shiftKey?t.setFullYear(m.getFullYear()+1):t=O(m)},Home:()=>{t=ql(m,r)},End:()=>{t=Wl(m,r)}};Object.keys(n).includes(e.key)&&(e.preventDefault(),n[e.key]?.(),f(t),setTimeout(()=>{w.current.focus()},0))},focusedRef:w,disabledDayFn:o,locale:a}},Oo("input",{id:`${p}-input`,type:"text",className:n.input,value:g&&g.toLocaleDateString(a),onChange:e=>(e=>{""===e.target.value&&v(void 0);const t=d(e.target.value);if(t)return f(t),v(t)})(e),ref:x}),Oo("input",{type:"hidden",id:`${p}-value`,value:c(g),name:h}),Oo("button",{type:"button","aria-controls":`${p}-dialog`,onClick:()=>L(),"aria-expanded":b,ref:S,className:n.toggleButton},u&&D(u),u?Oo("span",{class:n.srOnly},i.openButton):i.openButton),Oo("div",{className:n.wrapper,role:"dialog","aria-modal":"true","aria-labelledby":"daypickr-label",hidden:!b,ref:N,tabIndex:"-1"},Oo("div",{className:"daypickr__content"},Oo("h2",{id:"daypickr-label",className:"sr-only"},m.toLocaleString(a,{month:"long",year:"numeric"})),Oo("div",{className:n.header},Oo("div",{className:n.yearMonthWrapper},Oo(nc,{ref:E}),Oo(ic,null)),Oo("div",{className:n.pagination},Oo("button",{type:"button",className:`${n.button} ${n.prevMonthButton}`,onClick:()=>{f(A(m))}},i.prevMonth),Oo("button",{type:"button",className:`${n.button} ${n.nextMonthButton}`,onClick:()=>{f(O(m))}},i.nextMonth))),Oo(Zl,null),Oo("button",{className:`${n.button} ${n.closeButton}`,type:"button",onClick:()=>L(),ref:C},i.closeButton))))},rc=({calendarIcon:e,classes:t=classNames,l10n:n=l10nEN,...i})=>{const s=({type:e,children:t,...n})=>Oo(e,n,t&&t.length&&t.map(e=>s(e)));return Oo(Kl.Provider,{value:{classes:t,l10n:n}},Oo("input",{type:"text",disabled:!0,className:t.input}),Oo("button",{type:"button",className:t.toggleButton,disabled:!0},e&&s(e),e?Oo("span",{class:t.srOnly},n.openButton):n.openButton))};const ac={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:e=>{const 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"}]}};class oc{constructor(e,t){return this.element=e,this.config={...ac,...t},this.init(),this.element.ODS_DatePicker=this,this}init(){const e=this.element.getAttribute("data-datepicker-config"),t=this.element.getAttribute("data-enabled-days");let n={};if(e)try{n=JSON.parse(e)}catch{n={}}this.config={...this.config,...n,...t&&{disabledDayFn:e=>!t.split(",").includes(function(e){return e&&e instanceof Date?`${e.getFullYear()}-${(e.getMonth()+1).toString().padStart(2,"0")}-${e.getDate().toString().padStart(2,"0")}`:""}(e))}};const i=this.element.getAttribute("data-datepicker-id")||void 0,s=this.element.getAttribute("data-datepicker-name")||i;var r,a;this.instance=(r=this.element,a={id:i,name:s,...this.config},Jo(Oo(sc,{...a}),r),{destroy(){!function(e){e.__k&&Jo(null,e)}(r),Jo(Oo(rc,{...a}),r)}})}destroy(){this.instance&&this.instance.destroy(),this.instance=null,this.element.ODS_DatePicker=null}}const lc=({dayPickrConfig:e,enabledDays:t,id:n,name:i})=>{const[s]=j(oc,e);return S.jsx("div",{ref:s,"data-datepicker":!0,"data-enabled-days":t&&t.toString()||void 0,className:"datepicker control-group","data-datepicker-id":n,"data-datepicker-name":i})};lc.displayName="DatePicker";var cc,dc={exports:{}},uc={};function hc(){return cc||(cc=1,uc._=function(e){return e&&e.__esModule?e:{default:e}}),uc}function pc(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var mc,fc,gc,vc,bc,yc={},_c={};function xc(){return fc||(fc=1,function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return h}});const n=hc()._(e),i=(mc||(mc=1,function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"LoadableContext",{enumerable:!0,get:function(){return n}});const n=hc()._(e).default.createContext(null);"production"!==process.env.NODE_ENV&&(n.displayName="LoadableContext")}(_c)),_c),s=[],r=[];let a=!1;function o(e){let t=e(),n={loading:!0,loaded:null,error:null};return n.promise=t.then(e=>(n.loading=!1,n.loaded=e,e)).catch(e=>{throw n.loading=!1,n.error=e,e}),n}function l(e,t){let o=Object.assign({loader:null,loading:null,delay:200,timeout:null,webpack:null,modules:null},t),l=null;function d(){if(!l){const t=new c(e,o);l={getCurrentValue:t.getCurrentValue.bind(t),subscribe:t.subscribe.bind(t),retry:t.retry.bind(t),promise:t.promise.bind(t)}}return l.promise()}if("undefined"==typeof window&&s.push(d),!a&&"undefined"!=typeof window){const e=o.webpack&&"function"==typeof pc.resolveWeak?o.webpack():o.modules;e&&r.push(t=>{for(const n of e)if(t.includes(n))return d()})}function u(e,t){!function(){d();const e=n.default.useContext(i.LoadableContext);e&&Array.isArray(o.modules)&&o.modules.forEach(t=>{e(t)})}();const s=n.default.useSyncExternalStore(l.subscribe,l.getCurrentValue,l.getCurrentValue);return n.default.useImperativeHandle(t,()=>({retry:l.retry}),[]),n.default.useMemo(()=>{return s.loading||s.error?n.default.createElement(o.loading,{isLoading:s.loading,pastDelay:s.pastDelay,timedOut:s.timedOut,error:s.error,retry:l.retry}):s.loaded?n.default.createElement((t=s.loaded)&&t.default?t.default:t,e):null;var t},[e,s])}return u.preload=()=>d(),u.displayName="LoadableComponent",n.default.forwardRef(u)}class c{constructor(e,t){this._loadFn=e,this._opts=t,this._callbacks=new Set,this._delay=null,this._timeout=null,this.retry()}promise(){return this._res.promise}retry(){this._clearTimeouts(),this._res=this._loadFn(this._opts.loader),this._state={pastDelay:!1,timedOut:!1};const{_res:e,_opts:t}=this;e.loading&&("number"==typeof t.delay&&(0===t.delay?this._state.pastDelay=!0:this._delay=setTimeout(()=>{this._update({pastDelay:!0})},t.delay)),"number"==typeof t.timeout&&(this._timeout=setTimeout(()=>{this._update({timedOut:!0})},t.timeout))),this._res.promise.then(()=>{this._update({}),this._clearTimeouts()}).catch(e=>{this._update({}),this._clearTimeouts()}),this._update({})}_update(e){this._state={...this._state,error:this._res.error,loaded:this._res.loaded,loading:this._res.loading,...e},this._callbacks.forEach(e=>e())}_clearTimeouts(){clearTimeout(this._delay),clearTimeout(this._timeout)}getCurrentValue(){return this._state}subscribe(e){return this._callbacks.add(e),()=>{this._callbacks.delete(e)}}}function d(e){return l(o,e)}function u(e,t){let n=[];for(;e.length;){let i=e.pop();n.push(i(t))}return Promise.all(n).then(()=>{if(e.length)return u(e,t)})}d.preloadAll=()=>new Promise((e,t)=>{u(s).then(e,t)}),d.preloadReady=(e=[])=>new Promise(t=>{const n=()=>(a=!0,t());u(r,e).then(n,n)}),"undefined"!=typeof window&&(window.__NEXT_PRELOADREADY=d.preloadReady);const h=d}(yc)),yc}var wc=bc?vc:(bc=1,gc||(gc=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{default:function(){return l},noSSR:function(){return o}});const n=hc(),i=_(),s=n._(xc()),r="undefined"==typeof window;function a(e){return{default:e?.default||e}}function o(e,t){if(delete t.webpack,delete t.modules,!r)return e(t);const n=t.loading;return()=>(0,i.jsx)(n,{error:null,isLoading:!0,pastDelay:!1,timedOut:!1})}function l(e,t){let n=s.default,r={loading:({error:e,isLoading:t,pastDelay:n})=>{if(!n)return null;if("production"!==process.env.NODE_ENV){if(t)return null;if(e)return(0,i.jsxs)("p",{children:[e.message,(0,i.jsx)("br",{}),e.stack]})}return null}};e instanceof Promise?r.loader=()=>e:"function"==typeof e?r.loader=e:"object"==typeof e&&(r={...r,...e}),r={...r,...t};const l=r.loader;return r.loadableGenerated&&(r={...r,...r.loadableGenerated},delete r.loadableGenerated),"boolean"!=typeof r.ssr||r.ssr?n({...r,loader:()=>null!=l?l().then(a):Promise.resolve(a(()=>null))}):(delete r.webpack,delete r.modules,o(n,r))}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)}(dc,dc.exports)),vc=dc.exports),Sc=p(wc);const Ec=r(null);function Nc(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 Cc(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,s,r,a,o=[],l=!0,c=!1;try{if(r=(n=n.call(e)).next,0===t);else for(;!(l=(i=r.call(n)).done)&&(o.push(i.value),o.length!==t);l=!0);}catch(e){c=!0,s=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw s}}return o}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Nc(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Nc(e,t):void 0}}(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.")}()}const kc=Object.entries,Tc=Object.setPrototypeOf,jc=Object.isFrozen,Ac=Object.getPrototypeOf,Oc=Object.getOwnPropertyDescriptor;let Lc=Object.freeze,Dc=Object.seal,Mc=Object.create,$c="undefined"!=typeof Reflect&&Reflect,Pc=$c.apply,Ic=$c.construct;Lc||(Lc=function(e){return e}),Dc||(Dc=function(e){return e}),Pc||(Pc=function(e,t){for(var n=arguments.length,i=new Array(n>2?n-2:0),s=2;s<n;s++)i[s-2]=arguments[s];return e.apply(t,i)}),Ic||(Ic=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 Rc=rd(Array.prototype.forEach),zc=rd(Array.prototype.lastIndexOf),Fc=rd(Array.prototype.pop),Hc=rd(Array.prototype.push),Bc=rd(Array.prototype.splice),Vc=Array.isArray,qc=rd(String.prototype.toLowerCase),Wc=rd(String.prototype.toString),Uc=rd(String.prototype.match),Gc=rd(String.prototype.replace),Yc=rd(String.prototype.indexOf),Xc=rd(String.prototype.trim),Kc=rd(Number.prototype.toString),Zc=rd(Boolean.prototype.toString),Jc="undefined"==typeof BigInt?null:rd(BigInt.prototype.toString),Qc="undefined"==typeof Symbol?null:rd(Symbol.prototype.toString),ed=rd(Object.prototype.hasOwnProperty),td=rd(Object.prototype.toString),nd=rd(RegExp.prototype.test),id=(sd=TypeError,function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Ic(sd,t)});var sd;function rd(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);for(var n=arguments.length,i=new Array(n>1?n-1:0),s=1;s<n;s++)i[s-1]=arguments[s];return Pc(e,t,i)}}function ad(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:qc;if(Tc&&Tc(e,null),!Vc(t))return e;let i=t.length;for(;i--;){let s=t[i];if("string"==typeof s){const e=n(s);e!==s&&(jc(t)||(t[i]=e),s=e)}e[s]=!0}return e}function od(e){for(let t=0;t<e.length;t++)ed(e,t)||(e[t]=null);return e}function ld(e){const t=Mc(null);for(const i of kc(e)){var n=Cc(i,2);const s=n[0],r=n[1];ed(e,s)&&(Vc(r)?t[s]=od(r):r&&"object"==typeof r&&r.constructor===Object?t[s]=ld(r):t[s]=r)}return t}function cd(e,t){for(;null!==e;){const n=Oc(e,t);if(n){if(n.get)return rd(n.get);if("function"==typeof n.value)return rd(n.value)}e=Ac(e)}return function(){return null}}const dd=Lc(["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"]),ud=Lc(["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"]),hd=Lc(["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"]),pd=Lc(["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"]),md=Lc(["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"]),fd=Lc(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),gd=Lc(["#text"]),vd=Lc(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","command","commandfor","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"]),bd=Lc(["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","dominant-baseline","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-orientation","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"]),yd=Lc(["accent","accentunder","align","bevelled","close","columnalign","columnlines","columnspacing","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lquote","lspace","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"]),_d=Lc(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),xd=Dc(/{{[\w\W]*|^[\w\W]*}}/g),wd=Dc(/<%[\w\W]*|^[\w\W]*%>/g),Sd=Dc(/\${[\w\W]*/g),Ed=Dc(/^data-[\-\w.\u00B7-\uFFFF]+$/),Nd=Dc(/^aria-[\-\w]+$/),Cd=Dc(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),kd=Dc(/^(?:\w+script|data):/i),Td=Dc(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),jd=Dc(/^html$/i),Ad=Dc(/^[a-z][.\w]*(-[.\w]+)+$/i),Od=Dc(/<[/\w!]/g),Ld=Dc(/<[/\w]/g),Dd=Dc(/<\/no(script|embed|frames)/i),Md=Dc(/\/>/i),$d=function(){return"undefined"==typeof window?null:window},Pd=function(e,t,n,i){return ed(e,t)&&Vc(e[t])?ad(i.base?ld(i.base):{},e[t],i.transform):n};var Id=function e(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:$d();const n=t=>e(t);if(n.version="3.4.13",n.removed=[],!t||!t.document||9!==t.document.nodeType||!t.Element)return n.isSupported=!1,n;let i=t.document;const s=i,r=s.currentScript;t.DocumentFragment;const a=t.HTMLTemplateElement,o=t.Node,l=t.Element,c=t.NodeFilter;void 0===t.NamedNodeMap&&(t.NamedNodeMap||t.MozNamedAttrMap),t.HTMLFormElement;const d=t.DOMParser,u=t.trustedTypes,h=l.prototype,p=cd(h,"cloneNode"),m=cd(h,"remove"),f=cd(h,"nextSibling"),g=cd(h,"childNodes"),v=cd(h,"parentNode"),b=cd(h,"shadowRoot"),y=cd(h,"attributes"),_=o&&o.prototype?cd(o.prototype,"nodeType"):null,x=o&&o.prototype?cd(o.prototype,"nodeName"):null,w=o&&o.prototype?cd(o.prototype,"ownerDocument"):null;if("function"==typeof a){const e=i.createElement("template");e.content&&e.content.ownerDocument&&(i=e.content.ownerDocument)}let S,E,N="",C=!1,k=0;const T=function(){if(k>0)throw id('A configured TRUSTED_TYPES_POLICY callback (createHTML or createScriptURL) must not call DOMPurify.sanitize, as that causes infinite recursion. Do not pass a policy whose callbacks wrap DOMPurify as TRUSTED_TYPES_POLICY; see the "DOMPurify and Trusted Types" section of the README.')},j=function(e){T(),k++;try{return S.createHTML(e)}finally{k--}},A=i,O=A.implementation,L=A.createNodeIterator,D=A.createDocumentFragment,M=A.getElementsByTagName,$=s.importNode;let P={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]};n.isSupported="function"==typeof kc&&"function"==typeof v&&O&&void 0!==O.createHTMLDocument;const I=xd,R=wd,z=Sd,F=Ed,H=Nd,B=kd,V=Td,q=Ad;let W=Cd,U=null;const G=ad({},[...dd,...ud,...hd,...md,...gd]);let Y=null;const X=ad({},[...vd,...bd,...yd,..._d]);let K=Object.seal(Mc(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}})),Z=null,J=null;const Q=Object.seal(Mc(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let ee=!0,te=!0,ne=!1,ie=!0,se=!1,re=!0,ae=!1,oe=!1,le=null,ce=null,de=!1,ue=!1,he=!1,pe=!1,me=!0,fe=!1;const ge="user-content-";let ve=!0,be=!1,ye={},_e=null;const xe=ad({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","selectedcontent","style","svg","template","thead","title","video","xmp"]);let we=null;const Se=ad({},["audio","video","img","source","image","track"]);let Ee=null;const Ne=ad({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Ce="http://www.w3.org/1998/Math/MathML",ke="http://www.w3.org/2000/svg",Te="http://www.w3.org/1999/xhtml";let je=Te,Ae=!1,Oe=null;const Le=ad({},[Ce,ke,Te],Wc),De=Lc(["mi","mo","mn","ms","mtext"]);let Me=ad({},De);const $e=Lc(["annotation-xml"]);let Pe=ad({},$e);const Ie=ad({},["title","style","font","a","script"]);let Re=null;const ze=["application/xhtml+xml","text/html"];let Fe=null,He=null;const Be=i.createElement("form"),Ve=function(e){return e instanceof RegExp||e instanceof Function},qe=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(He&&He===e)return;e&&"object"==typeof e||(e={}),e=ld(e),Re=-1===ze.indexOf(e.PARSER_MEDIA_TYPE)?"text/html":e.PARSER_MEDIA_TYPE,Fe="application/xhtml+xml"===Re?Wc:qc,U=Pd(e,"ALLOWED_TAGS",G,{transform:Fe}),Y=Pd(e,"ALLOWED_ATTR",X,{transform:Fe}),Oe=Pd(e,"ALLOWED_NAMESPACES",Le,{transform:Wc}),Ee=Pd(e,"ADD_URI_SAFE_ATTR",Ne,{transform:Fe,base:Ne}),we=Pd(e,"ADD_DATA_URI_TAGS",Se,{transform:Fe,base:Se}),_e=Pd(e,"FORBID_CONTENTS",xe,{transform:Fe}),Z=Pd(e,"FORBID_TAGS",ld({}),{transform:Fe}),J=Pd(e,"FORBID_ATTR",ld({}),{transform:Fe}),ye=!!ed(e,"USE_PROFILES")&&(e.USE_PROFILES&&"object"==typeof e.USE_PROFILES?ld(e.USE_PROFILES):e.USE_PROFILES),ee=!1!==e.ALLOW_ARIA_ATTR,te=!1!==e.ALLOW_DATA_ATTR,ne=e.ALLOW_UNKNOWN_PROTOCOLS||!1,ie=!1!==e.ALLOW_SELF_CLOSE_IN_ATTR,se=e.SAFE_FOR_TEMPLATES||!1,re=!1!==e.SAFE_FOR_XML,ae=e.WHOLE_DOCUMENT||!1,ue=e.RETURN_DOM||!1,he=e.RETURN_DOM_FRAGMENT||!1,pe=e.RETURN_TRUSTED_TYPE||!1,de=e.FORCE_BODY||!1,me=!1!==e.SANITIZE_DOM,fe=e.SANITIZE_NAMED_PROPS||!1,ve=!1!==e.KEEP_CONTENT,be=e.IN_PLACE||!1,W=function(e){try{return nd(e,""),!0}catch(e){return!1}}(e.ALLOWED_URI_REGEXP)?e.ALLOWED_URI_REGEXP:Cd,je="string"==typeof e.NAMESPACE?e.NAMESPACE:Te,Me=ed(e,"MATHML_TEXT_INTEGRATION_POINTS")&&e.MATHML_TEXT_INTEGRATION_POINTS&&"object"==typeof e.MATHML_TEXT_INTEGRATION_POINTS?ld(e.MATHML_TEXT_INTEGRATION_POINTS):ad({},De),Pe=ed(e,"HTML_INTEGRATION_POINTS")&&e.HTML_INTEGRATION_POINTS&&"object"==typeof e.HTML_INTEGRATION_POINTS?ld(e.HTML_INTEGRATION_POINTS):ad({},$e);const t=ed(e,"CUSTOM_ELEMENT_HANDLING")&&e.CUSTOM_ELEMENT_HANDLING&&"object"==typeof e.CUSTOM_ELEMENT_HANDLING?ld(e.CUSTOM_ELEMENT_HANDLING):Mc(null);if(K=Mc(null),ed(t,"tagNameCheck")&&Ve(t.tagNameCheck)&&(K.tagNameCheck=t.tagNameCheck),ed(t,"attributeNameCheck")&&Ve(t.attributeNameCheck)&&(K.attributeNameCheck=t.attributeNameCheck),ed(t,"allowCustomizedBuiltInElements")&&"boolean"==typeof t.allowCustomizedBuiltInElements&&(K.allowCustomizedBuiltInElements=t.allowCustomizedBuiltInElements),Dc(K),se&&(te=!1),he&&(ue=!0),ye&&(U=ad({},gd),Y=Mc(null),!0===ye.html&&(ad(U,dd),ad(Y,vd)),!0===ye.svg&&(ad(U,ud),ad(Y,bd),ad(Y,_d)),!0===ye.svgFilters&&(ad(U,hd),ad(Y,bd),ad(Y,_d)),!0===ye.mathMl&&(ad(U,md),ad(Y,yd),ad(Y,_d))),Q.tagCheck=null,Q.attributeCheck=null,ed(e,"ADD_TAGS")&&("function"==typeof e.ADD_TAGS?Q.tagCheck=e.ADD_TAGS:Vc(e.ADD_TAGS)&&(U===G&&(U=ld(U)),ad(U,e.ADD_TAGS,Fe))),ed(e,"ADD_ATTR")&&("function"==typeof e.ADD_ATTR?Q.attributeCheck=e.ADD_ATTR:Vc(e.ADD_ATTR)&&(Y===X&&(Y=ld(Y)),ad(Y,e.ADD_ATTR,Fe))),ed(e,"ADD_URI_SAFE_ATTR")&&Vc(e.ADD_URI_SAFE_ATTR)&&ad(Ee,e.ADD_URI_SAFE_ATTR,Fe),ed(e,"FORBID_CONTENTS")&&Vc(e.FORBID_CONTENTS)&&(_e===xe&&(_e=ld(_e)),ad(_e,e.FORBID_CONTENTS,Fe)),ed(e,"ADD_FORBID_CONTENTS")&&Vc(e.ADD_FORBID_CONTENTS)&&(_e===xe&&(_e=ld(_e)),ad(_e,e.ADD_FORBID_CONTENTS,Fe)),ve&&(U["#text"]=!0),ae&&ad(U,["html","head","body"]),U.table&&(ad(U,["tbody"]),delete Z.tbody),e.TRUSTED_TYPES_POLICY){if("function"!=typeof e.TRUSTED_TYPES_POLICY.createHTML)throw id('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof e.TRUSTED_TYPES_POLICY.createScriptURL)throw id('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');const t=S;S=e.TRUSTED_TYPES_POLICY;try{N=j("")}catch(e){throw S=t,e}}else null===e.TRUSTED_TYPES_POLICY?(S=void 0,N=""):(void 0===S&&(C||(E=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 s="dompurify"+(n?"#"+n:"");try{return e.createPolicy(s,{createHTML:e=>e,createScriptURL:e=>e})}catch(e){return null}}(u,r),C=!0),S=E),S&&"string"==typeof N&&(N=j("")));Lc&&Lc(e),He=e},We=ad({},[...ud,...hd,...pd]),Ue=ad({},[...md,...fd]),Ge=function(e){Hc(n.removed,{element:e});try{v(e).removeChild(e)}catch(t){if(m(e),!v(e))throw id("a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place")}},Ye=function(e){Ze(e);const t=g(e);if(t){const e=[];Rc(t,t=>{Hc(e,t)}),Rc(e,e=>{try{m(e)}catch(e){}})}const n=y(e);if(n)for(let t=n.length-1;t>=0;--t){const i=n[t],s=i&&i.name;if("string"==typeof s)try{e.removeAttribute(s)}catch(e){}}},Xe=function(e,t){try{Hc(n.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){Hc(n.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e)if(ue||he)try{Ge(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}},Ke=function(e){const t=y(e);if(t)for(let n=t.length-1;n>=0;--n){const i=t[n],s=i&&i.name;if("string"==typeof s&&!Y[Fe(s)])try{e.removeAttribute(s)}catch(e){}}},Ze=function(e){const t=[e];for(;t.length>0;){const e=t.pop();1===(_?_(e):e.nodeType)&&Ke(e);const n=g(e);if(n)for(let e=n.length-1;e>=0;--e)t.push(n[e])}},Je=function(e){let t=null,n=null;if(de)e="<remove></remove>"+e;else{const t=Uc(e,/^[\r\n\t ]+/);n=t&&t[0]}"application/xhtml+xml"===Re&&je===Te&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");const s=S?j(e):e;if(je===Te)try{t=(new d).parseFromString(s,Re)}catch(e){}if(!t||!t.documentElement){t=O.createDocument(je,"template",null);try{t.documentElement.innerHTML=Ae?N:s}catch(e){}}const r=t.body||t.documentElement;return e&&n&&r.insertBefore(i.createTextNode(n),r.childNodes[0]||null),je===Te?M.call(t,ae?"html":"body")[0]:ae?t.documentElement:r},Qe=function(e){const t=w?w(e):e.ownerDocument;return L.call(t||e,e,c.SHOW_ELEMENT|c.SHOW_COMMENT|c.SHOW_TEXT|c.SHOW_PROCESSING_INSTRUCTION|c.SHOW_CDATA_SECTION,null)},et=function(e){return e=Gc(e,I," "),e=Gc(e,R," "),Gc(e,z," ")},tt=function(e){var t;e.normalize();const n=w?w(e):e.ownerDocument,i=L.call(n||e,e,c.SHOW_TEXT|c.SHOW_COMMENT|c.SHOW_CDATA_SECTION|c.SHOW_PROCESSING_INSTRUCTION,null);let s=i.nextNode();for(;s;)s.data=et(s.data),s=i.nextNode();const r=null===(t=e.querySelectorAll)||void 0===t?void 0:t.call(e,"template");r&&Rc(r,e=>{it(e.content)&&tt(e.content)})},nt=function(e){const t=x?x(e):null;return"string"==typeof t&&"form"===Fe(t)&&("string"!=typeof e.nodeName||"string"!=typeof e.textContent||"function"!=typeof e.removeChild||e.attributes!==y(e)||"function"!=typeof e.removeAttribute||"function"!=typeof e.setAttribute||"string"!=typeof e.namespaceURI||"function"!=typeof e.insertBefore||"function"!=typeof e.hasChildNodes||e.nodeType!==_(e)||e.childNodes!==g(e))},it=function(e){if(!_||"object"!=typeof e||null===e)return!1;try{return 11===_(e)}catch(e){return!1}},st=function(e){if(!_||"object"!=typeof e||null===e)return!1;try{return"number"==typeof _(e)}catch(e){return!1}};function rt(e,t,i){0!==e.length&&Rc(e,e=>{e.call(n,t,i,He)})}const at=function(e,t,n,i){return 0===e.length?t:t===n||t===i?ld(t):t},ot=function(e,t){if(rt(P.beforeSanitizeElements,e,null),e!==t&&null===v(e))return be&&Ze(e),!0;if(nt(e))return Ge(e),!0;const i=Fe(x?x(e):e.nodeName);if(U=at(P.uponSanitizeElement,U,G,le),rt(P.uponSanitizeElement,e,{tagName:i,allowedTags:U}),e!==t&&null===v(e))return be&&Ze(e),!0;if(function(e,t){return!!(re&&e.hasChildNodes()&&!st(e.firstElementChild)&&nd(Od,e.textContent)&&nd(Od,e.innerHTML))||!(!re||e.namespaceURI!==Te||"style"!==t||!st(e.firstElementChild))||7===e.nodeType||!(!re||8!==e.nodeType||!nd(Ld,e.data))}(e,i))return Ge(e),!0;if(Z[i]||!(Q.tagCheck instanceof Function&&Q.tagCheck(i))&&!U[i]){const n=function(e,t,n){if(!Z[t]&&dt(t)){if(K.tagNameCheck instanceof RegExp&&nd(K.tagNameCheck,t))return!1;if(K.tagNameCheck instanceof Function&&K.tagNameCheck(t))return!1}if(ve&&!_e[t]){const t=v(e),i=g(e);if(i&&t)for(let s=i.length-1;s>=0;--s){const r=e===n?p(i[s],!0):i[s];t.insertBefore(r,f(e))}}return Ge(e),!0}(e,i,t);return!1===n&&rt(P.afterSanitizeElements,e,null),n}if(1===(_?_(e):e.nodeType)&&!function(e){let t=v(e);t&&t.tagName||(t={namespaceURI:je,tagName:"template"});const n=qc(e.tagName),i=qc(t.tagName);return!!Oe[e.namespaceURI]&&(e.namespaceURI===ke?function(e,t,n){return t.namespaceURI===Te?"svg"===e:t.namespaceURI===Ce?"svg"===e&&("annotation-xml"===n||Me[n]):Boolean(We[e])}(n,t,i):e.namespaceURI===Ce?function(e,t,n){return t.namespaceURI===Te?"math"===e:t.namespaceURI===ke?"math"===e&&Pe[n]:Boolean(Ue[e])}(n,t,i):e.namespaceURI===Te?function(e,t,n){return!(t.namespaceURI===ke&&!Pe[n])&&!(t.namespaceURI===Ce&&!Me[n])&&!Ue[e]&&(Ie[e]||!We[e])}(n,t,i):!("application/xhtml+xml"!==Re||!Oe[e.namespaceURI]))}(e))return Ge(e),!0;if(("noscript"===i||"noembed"===i||"noframes"===i)&&nd(Dd,e.innerHTML))return Ge(e),!0;if(se&&3===e.nodeType){const t=et(e.textContent);e.textContent!==t&&(Hc(n.removed,{element:e.cloneNode()}),e.textContent=t)}return rt(P.afterSanitizeElements,e,null),!1},lt=function(e,t,n){if(J[t])return!1;if(re&&"patchsrc"===t)return!1;if(re&&"for"===t&&"label"!==e&&"output"!==e)return!1;if(me&&("id"===t||"name"===t)&&(n in i||n in Be))return!1;const s=Y[t]||Q.attributeCheck instanceof Function&&Q.attributeCheck(t,e);if(te&&nd(F,t));else if(ee&&nd(H,t));else if(s){if(Ee[t]);else if(nd(W,Gc(n,V,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==Yc(n,"data:")||!we[e])if(ne&&!nd(B,Gc(n,V,"")));else if(n)return!1}else if(!(dt(e)&&(K.tagNameCheck instanceof RegExp&&nd(K.tagNameCheck,e)||K.tagNameCheck instanceof Function&&K.tagNameCheck(e))&&(K.attributeNameCheck instanceof RegExp&&nd(K.attributeNameCheck,t)||K.attributeNameCheck instanceof Function&&K.attributeNameCheck(t,e))||"is"===t&&K.allowCustomizedBuiltInElements&&(K.tagNameCheck instanceof RegExp&&nd(K.tagNameCheck,n)||K.tagNameCheck instanceof Function&&K.tagNameCheck(n))))return!1;return!0},ct=ad({},["annotation-xml","color-profile","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","missing-glyph"]),dt=function(e){return!ct[qc(e)]&&nd(q,e)},ut=function(e,t,n,i){if(S&&"object"==typeof u&&"function"==typeof u.getAttributeType&&!n)switch(u.getAttributeType(e,t)){case"TrustedHTML":return j(i);case"TrustedScriptURL":return function(e){T(),k++;try{return S.createScriptURL(e)}finally{k--}}(i)}return i},ht=function(e,t,i,s){try{i?e.setAttributeNS(i,t,s):e.setAttribute(t,s),nt(e)?Ge(e):Fc(n.removed)}catch(n){Xe(t,e)}},pt=function(e){rt(P.beforeSanitizeAttributes,e,null);const t=e.attributes;if(!t||nt(e))return;Y=at(P.uponSanitizeAttribute,Y,X,ce);const n={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:Y,forceKeepAttr:void 0};let i=t.length;const s=Fe(e.nodeName);for(;i--;){const r=t[i],a=r.name,o=r.namespaceURI,l=r.value,c=Fe(a),d=l;let u="value"===a?d:Xc(d);n.attrName=c,n.attrValue=u,n.keepAttr=!0,n.forceKeepAttr=void 0,rt(P.uponSanitizeAttribute,e,n),u=n.attrValue,!fe||"id"!==c&&"name"!==c||0===Yc(u,ge)||(Xe(a,e),u=ge+u),re&&nd(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,u)||"attributename"===c&&Uc(u,"href")?Xe(a,e):n.forceKeepAttr||(!n.keepAttr||!ie&&nd(Md,u)?Xe(a,e):(se&&(u=et(u)),lt(s,c,u)?(u=ut(s,c,o,u),u!==d&&ht(e,a,o,u)):Xe(a,e)))}rt(P.afterSanitizeAttributes,e,null)},mt=function(e){let t=null;const n=Qe(e);for(rt(P.beforeSanitizeShadowDOM,e,null);t=n.nextNode();)if(rt(P.uponSanitizeShadowNode,t,null),ot(t,e),pt(t),it(t.content)&&mt(t.content),1===(_?_(t):t.nodeType)){const e=b(t);it(e)&&(ft(e),mt(e))}rt(P.afterSanitizeShadowDOM,e,null)},ft=function(e){const t=[{node:e,shadow:null}];for(;t.length>0;){const e=t.pop();if(e.shadow){mt(e.shadow);continue}const n=e.node,i=1===(_?_(n):n.nodeType),s=g(n);if(s)for(let e=s.length-1;e>=0;--e)t.push({node:s[e],shadow:null});if(i){const e=x?x(n):null;if("string"==typeof e&&"template"===Fe(e)){const e=n.content;it(e)&&t.push({node:e,shadow:null})}}if(i){const e=b(n);it(e)&&t.push({node:null,shadow:e},{node:e,shadow:null})}}};return n.sanitize=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=null,r=null,a=null,o=null;if(Ae=!e,Ae&&(e="\x3c!--\x3e"),"string"!=typeof e&&!st(e)&&"string"!=typeof(e=function(e){switch(typeof e){case"string":return e;case"number":return Kc(e);case"boolean":return Zc(e);case"bigint":return Jc?Jc(e):"0";case"symbol":return Qc?Qc(e):"Symbol()";case"undefined":default:return td(e);case"function":case"object":{if(null===e)return td(e);const t=e,n=cd(t,"toString");if("function"==typeof n){const e=n(t);return"string"==typeof e?e:td(e)}return td(e)}}}(e)))throw id("dirty is not a string, aborting");if(!n.isSupported)return e;oe?(U=le,Y=ce):qe(t),(P.uponSanitizeElement.length>0||P.uponSanitizeAttribute.length>0)&&(U=ld(U)),P.uponSanitizeAttribute.length>0&&(Y=ld(Y)),n.removed=[];const l=be&&"string"!=typeof e&&st(e);if(l){!function(e){if(!re)return;const t=[e];for(;t.length>0;){const e=t.pop(),n=_?_(e):e.nodeType;if(7===n||8===n&&nd(Ld,e.data)){try{m(e)}catch(e){}continue}if(1===n){const t=e,n=Fe(x?x(e):e.nodeName);try{t.hasAttribute&&t.hasAttribute("patchsrc")&&t.removeAttribute("patchsrc"),t.hasAttribute&&t.hasAttribute("for")&&"label"!==n&&"output"!==n&&t.removeAttribute("for")}catch(e){}}const i=g(e);if(i)for(let e=i.length-1;e>=0;--e)t.push(i[e])}}(e);const t=x?x(e):e.nodeName;if("string"==typeof t){const n=Fe(t);if(!U[n]||Z[n])throw Ye(e),id("root node is forbidden and cannot be sanitized in-place")}if(nt(e))throw Ye(e),id("root node is clobbered and cannot be sanitized in-place");try{ft(e)}catch(t){throw Ye(e),t}}else if(st(e))i=Je("\x3c!----\x3e"),r=i.ownerDocument.importNode(e,!0),1===r.nodeType&&"BODY"===r.nodeName||"HTML"===r.nodeName?i=r:i.appendChild(r),ft(r);else{if(!ue&&!se&&!ae&&-1===e.indexOf("<"))return S&&pe?j(e):e;if(i=Je(e),!i)return ue?null:pe?N:""}i&&de&&Ge(i.firstChild);const c=l?e:i;try{const e=Qe(c);for(;a=e.nextNode();)ot(a,c),pt(a),it(a.content)&&mt(a.content)}catch(t){throw l&&(Ye(e),Rc(n.removed,e=>{e.element&&Ze(e.element)})),t}if(l)return Rc(n.removed,e=>{e.element&&Ze(e.element)}),se&&tt(e),e;if(ue){if(se&&tt(i),he)for(o=D.call(i.ownerDocument);i.firstChild;)o.appendChild(i.firstChild);else o=i;return(Y.shadowroot||Y.shadowrootmode)&&(o=$.call(s,o,!0)),o}let d=ae?i.outerHTML:i.innerHTML;return ae&&U["!doctype"]&&i.ownerDocument&&i.ownerDocument.doctype&&i.ownerDocument.doctype.name&&nd(jd,i.ownerDocument.doctype.name)&&(d="<!DOCTYPE "+i.ownerDocument.doctype.name+">\n"+d),se&&(d=et(d)),S&&pe?j(d):d},n.setConfig=function(){qe(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),oe=!0,le=U,ce=Y},n.clearConfig=function(){He=null,oe=!1,le=null,ce=null,S=E,N=""},n.isValidAttribute=function(e,t,n){He||qe({});const i=Fe(e),s=Fe(t);return lt(i,s,n)},n.addHook=function(e,t){"function"==typeof t&&ed(P,e)&&Hc(P[e],t)},n.removeHook=function(e,t){if(ed(P,e)){if(void 0!==t){const n=zc(P[e],t);return-1===n?void 0:Bc(P[e],n,1)[0]}return Fc(P[e])}},n.removeHooks=function(e){ed(P,e)&&(P[e]=[])},n.removeAllHooks=function(){P={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},n}();const Rd={dragDropClassname:"is-dragdrop",inputSelector:'input[type="file"]',resultsSelector:".file-input__files",deleteButtonSelector:"[data-file-delete]",deleteFileAttr:"data-file-delete",fileTemplate:(e,t)=>`\n <li>${e} <button type="button" data-file-delete="${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 ${e}</span>\n </button>\n </li>\n `};class zd{constructor(e,t){return this.element=e,this.config={...Rd,...t},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}init(){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(e=>{this.element.addEventListener(e,this.preventDefaults,!1),document.body.addEventListener(e,this.preventDefaults,!1)}),["dragenter","dragover"].forEach(e=>{this.element.addEventListener(e,this.highlight,!1)}),["dragleave","drop"].forEach(e=>{this.element.addEventListener(e,this.unhighlight,!1)}),this.element.addEventListener("drop",this.onDrop))}onInputChange(){return!(!this.input||!this.results)&&(this.files=Array.from(this.input.files??[]),!!this.files&&(this.results.innerHTML="",this.files.map((e,t)=>this.config.fileTemplate(Id.sanitize(e.name,{ALLOWED_TAGS:[]}),t)).forEach(e=>{this.results.appendChild(Id.sanitize(e,{ADD_TAGS:["use"],RETURN_DOM_FRAGMENT:!0}))}),this.removeButtons=Array.from(this.results.querySelectorAll(this.config.deleteButtonSelector)),void this.removeButtons.forEach(e=>e.addEventListener("click",this.onRemoveButtonClick))))}onDrop(e){this.input&&(this.input.files=e?.dataTransfer?.files||(new DataTransfer).files,this.onInputChange())}onRemoveButtonClick(e){if(!this.input)return;const t=new DataTransfer,n=e.currentTarget,i=Number(n.getAttribute(this.config.deleteFileAttr));this.files.splice(i,1),this.files.forEach(e=>t.items.add(e)),this.input.files=t.files,this.onInputChange()}highlight(){this.element.classList.add(this.config.dragDropClassname)}unhighlight(){this.element.classList.remove(this.config.dragDropClassname)}preventDefaults(e){e.preventDefault(),e.stopPropagation()}destroy(){this.input&&(this.input.removeEventListener("change",this.onInputChange),["dragenter","dragover","dragleave","drop"].forEach(e=>{this.element.removeEventListener(e,this.preventDefaults,!1),document.body.removeEventListener(e,this.preventDefaults,!1)}),["dragenter","dragover"].forEach(e=>{this.element.removeEventListener(e,this.highlight,!1)}),["dragleave","drop"].forEach(e=>{this.element.removeEventListener(e,this.unhighlight,!1)}),this.element.removeEventListener("drop",this.onDrop))}update(){this.destroy(),this.init()}}const Fd="file-input",Hd="default",Bd=({id:e,isDisabled:t,isInvalid:n,name:i,size:s=Hd,className:r,...a})=>{const[o]=j(zd),l=O(e),c=C(Fd,{[`${Fd}--${s}`]:s!==Hd},r);return S.jsxs("div",{className:c,"data-file-input":!0,ref:o,children:[S.jsx("input",{className:`${Fd}__control`,id:l,name:i||e,disabled:t,type:"file",...a}),S.jsx("label",{size:s,htmlFor:l,"aria-hidden":"true",className:`${Fd}__button`,children:"Vybrať súbor"}),S.jsx("ul",{className:`${Fd}__files`})]})};Bd.displayName="File";const Vd="text-input",qd="default",Wd="default",Ud=e.forwardRef(({className:e,id:t,isDisabled:n,isInvalid:i,isValid:s,isReadonly:r,placeholder:a,size:o=qd,htmlType:l="text",width:c=Wd,searchIcon:d="none",name:u,...h},p)=>{const m="transient"===d,f="persistent"===d,g=C(Vd,{"is-invalid":i,"is-valid":s,[`${Vd}--${o}`]:o!==qd,[`${Vd}--${c}`]:c!==Wd},e),v=u||t,b=S.jsx("input",{className:g,id:t,name:v,type:l,disabled:n,readOnly:r,placeholder:a,ref:p,...h});return m||f?S.jsx("span",{className:C("text-input__wrapper",{"text-input__wrapper--search-icon":m,"text-input__wrapper--search-icon-with-placeholder":f}),children:b}):b});Ud.displayName="TextInput";const Gd="control-group__item",Yd="default",Xd=({size:e=Yd,className:t,children:n,...i})=>{const s=C(Gd,t,{[`${Gd}--${e}`]:e!==Yd});return S.jsx("div",{className:s,...i,children:n})};Xd.displayName="GroupItem";const Kd=({control:t,addonPrefix:n,addonSuffix:i,size:s,className:r,isInvalid:a,...o})=>{const{type:l,...c}=t,d=t=>e.Children.map(t,t=>{if("string"==typeof t)return S.jsx(Xd,{size:s,children:t});if(e.isValidElement(t)){const n=t.type,i="string"==typeof n;if(i&&(!i||"button"!==n&&"a"!==n))return S.jsx(Xd,{size:s,children:t});const r=t.props&&"object"==typeof t.props&&"size"in t.props?{}:{size:s};return e.cloneElement(t,r)}return t});return S.jsxs("div",{className:C("control-group",r),...o,children:[d(n),S.jsx(e=>{switch(l){case"autocomplete":return S.jsx(uo,{...e});case"select":return S.jsx(ao,{...e});default:return S.jsx(Ud,{...e})}},{...c,size:s}),d(i)]})};Kd.displayName="ControlGroup";const Zd={nonEditableInput:!1,min:1,max:999,defaultValue:1};class Jd{constructor(e,t){this.element=e,this.config={...Zd,...t},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()}handleInputClick(){this.input&&this.input.select()}handleButtonState(){const{min:e,max:t}=this.config,n=this.config.nonEditableInput?parseInt(this.numberDisplay?.textContent??"0",10):parseInt(this.input?.value??"0",10);this.add&&"number"==typeof t&&n>=t?(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 e&&n<=e?(this.remove.setAttribute("aria-disabled","true"),this.remove.setAttribute("disabled","true")):this.remove&&(this.remove.removeAttribute("aria-disabled"),this.remove.removeAttribute("disabled"))}handleInputChange(e){const{min:t,max:n}=this.config,i=e.target;i&&(t&&Number(i.value)<=t&&(i.value=String(t)),n&&Number(i.value)>=n&&(i.value=String(n)))}handleButtonClick(e){const{min:t,max:n}=this.config,i=e.target;let s=this.config.nonEditableInput?parseInt(this.numberDisplay?.textContent??"0",10):parseInt(this.input?.value??"0",10);if(i.classList.contains("input-stepper__button--minus")){if(t&&s<=t){if("true"===i.getAttribute("disabled"))return;return i.setAttribute("aria-disabled","true"),void i.setAttribute("disabled","true")}s-=1}if(i.classList.contains("input-stepper__button--plus")){if(n&&s>=n){if("true"===i.getAttribute("disabled"))return;return i.setAttribute("aria-disabled","true"),void i.setAttribute("disabled","true")}s+=1}!this.config.nonEditableInput&&this.input?this.input.value=String(s):this.numberDisplay&&(this.numberDisplay.textContent=String(s)),this.handleButtonState()}init(){const e=this.element.getAttribute("data-inputstepper");let t={};try{e&&e.trim().startsWith("{")&&(t=JSON.parse(e))}catch{t={}}this.config={...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");const{defaultValue:n}=this.config;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())}update(){this.destroy(),this.init()}destroy(){!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)}static getInstance(e){return e&&e.ODS_InputStepper?e.ODS_InputStepper:null}}const Qd="input-stepper",eu=({className:e,inputClassName:t,id:n,config:i,isDisabled:s,isInvalid:r,nonEditableInput:a=!1,...o})=>{const[l]=j(Jd,{nonEditableInput:a}),{name:c=n,...d}=o,u=C(`${Qd}__field`,t);return S.jsxs("div",{className:C(Qd,e,{[`${Qd}--disabled`]:s,[`${Qd}--invalid`]:r}),ref:l,"data-inputstepper":!i||JSON.stringify(i),...d,children:[S.jsx("button",{disabled:s,className:`${Qd}__button ${Qd}__button--minus`,"aria-label":"znížiť počet"}),a||i?.nonEditableInput?S.jsx("p",{id:n,className:`${Qd}__number`}):S.jsx(Ud,{className:u,id:n,name:c,disabled:s,isInvalid:r,htmlType:"number",inputMode:"numeric"}),S.jsx("button",{disabled:s,className:`${Qd}__button ${Qd}__button--plus`,"aria-label":"zvýšiť počet"})]})};eu.displayName="InputStepper";const tu="radio",nu="default",iu=({id:e,isChecked:t,isDisabled:n,isInvalid:i,name:s,size:r=nu,value:a,className:o,...l})=>{const c=C(tu,o,{[`${tu}--${r}`]:r!==nu,"is-invalid":i}),d=a||e;return S.jsxs(S.Fragment,{children:[S.jsx("input",{className:c,type:"radio",id:e,name:s,defaultChecked:t,disabled:n,value:d,...l}),S.jsx("div",{className:`${tu}-display`})]})};var su,ru;function au(e){return"object"==typeof e&&"function"==typeof e.to}function ou(e){e.parentElement.removeChild(e)}function lu(e){return null!=e}function cu(e){e.preventDefault()}function du(e){return"number"==typeof e&&!isNaN(e)&&isFinite(e)}function uu(e,t,n){n>0&&(fu(e,t),setTimeout(function(){gu(e,t)},n))}function hu(e){return Math.max(Math.min(e,100),0)}function pu(e){return Array.isArray(e)?e:[e]}function mu(e){var t=(e=String(e)).split(".");return t.length>1?t[1].length:0}function fu(e,t){e.classList&&!/\s/.test(t)?e.classList.add(t):e.className+=" "+t}function gu(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 vu(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 bu(e,t){return 100/(t-e)}function yu(e,t,n){return 100*t/(e[n+1]-e[n])}function _u(e,t){for(var n=1;e>=t[n];)n+=1;return n}iu.displayName="Radio",function(e){e.Range="range",e.Steps="steps",e.Positions="positions",e.Count="count",e.Values="values"}(su||(su={})),function(e){e[e.None=-1]="None",e[e.NoValue=0]="NoValue",e[e.LargeValue=1]="LargeValue",e[e.SmallValue=2]="SmallValue"}(ru||(ru={}));var xu=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 s=[];for(Object.keys(e).forEach(function(t){s.push([pu(e[t]),t])}),s.sort(function(e,t){return e[0][0]-t[0][0]}),i=0;i<s.length;i++)this.handleEntryPoint(s[i][1],s[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]=yu(this.xVal,e,n);return t},e.prototype.getAbsoluteDistance=function(e,t,n){var i,s=0;if(e<this.xPct[this.xPct.length-1])for(;e>this.xPct[s+1];)s++;else e===this.xPct[this.xPct.length-1]&&(s=this.xPct.length-2);n||e!==this.xPct[s+1]||s++,null===t&&(t=[]);var r=1,a=t[s],o=0,l=0,c=0,d=0;for(i=n?(e-this.xPct[s])/(this.xPct[s+1]-this.xPct[s]):(this.xPct[s+1]-e)/(this.xPct[s+1]-this.xPct[s]);a>0;)o=this.xPct[s+1+d]-this.xPct[s+d],t[s+d]*r+100-100*i>100?(l=o*i,r=(a-100*i)/t[s+d],i=1):(l=t[s+d]*o/100*r,r=0),n?(c-=l,this.xPct.length+d>=1&&d--):(c+=l,this.xPct.length-d>=1&&d++),a=t[s+d]*r;return e+c},e.prototype.toStepping=function(e){return function(e,t,n){if(n>=e.slice(-1)[0])return 100;var i=_u(n,e),s=e[i-1],r=e[i],a=t[i-1],o=t[i];return a+function(e,t){return yu(e,e[0]<0?t+Math.abs(e[0]):t-e[0],0)}([s,r],n)/bu(a,o)}(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=_u(n,t),s=e[i-1],r=e[i],a=t[i-1];return function(e,t){return t*(e[1]-e[0])/100+e[0]}([s,r],(n-a)*bu(a,t[i]))}(this.xVal,this.xPct,e)},e.prototype.getStep=function(e){return function(e,t,n,i){if(100===i)return i;var s=_u(i,e),r=e[s-1],a=e[s];return n?i-r>(a-r)/2?a:r:t[s-1]?e[s-1]+function(e,t){return Math.round(e/t)*t}(i-e[s-1],t[s-1]):i}(this.xPct,this.xSteps,this.snap,e)},e.prototype.getDefaultStep=function(e,t,n){var i=_u(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=_u(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(mu);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(!du(n="min"===e?0:"max"===e?100:parseFloat(e))||!du(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]=yu([this.xVal[e],this.xVal[e+1]],t,0)/bu(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),s=this.xVal[e]+this.xNumSteps[e]*i;this.xHighestCompleteStep[e]=s}else this.xSteps[e]=this.xHighestCompleteStep[e]=this.xVal[e]},e}(),wu={to:function(e){return void 0===e?"":e.toFixed(2)},from:Number},Su={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"},Eu=".__tooltips",Nu=".__aria";function Cu(e,t){if(!du(t))throw new Error("noUiSlider: 'step' is not numeric.");e.singleStep=t}function ku(e,t){if(!du(t))throw new Error("noUiSlider: 'keyboardPageMultiplier' is not numeric.");e.keyboardPageMultiplier=t}function Tu(e,t){if(!du(t))throw new Error("noUiSlider: 'keyboardMultiplier' is not numeric.");e.keyboardMultiplier=t}function ju(e,t){if(!du(t))throw new Error("noUiSlider: 'keyboardDefaultStep' is not numeric.");e.keyboardDefaultStep=t}function Au(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 xu(t,e.snap||!1,e.singleStep)}function Ou(e,t){if(t=pu(t),!Array.isArray(t)||!t.length)throw new Error("noUiSlider: 'start' option is incorrect.");e.handles=t.length,e.start=t}function Lu(e,t){if("boolean"!=typeof t)throw new Error("noUiSlider: 'snap' option must be a boolean.");e.snap=t}function Du(e,t){if("boolean"!=typeof t)throw new Error("noUiSlider: 'animate' option must be a boolean.");e.animate=t}function Mu(e,t){if("number"!=typeof t)throw new Error("noUiSlider: 'animationDuration' option must be a number.");e.animationDuration=t}function $u(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 Pu(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 Iu(e,t){if(!du(t))throw new Error("noUiSlider: 'margin' option must be numeric.");0!==t&&(e.margin=e.spectrum.getDistance(t))}function Ru(e,t){if(!du(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 zu(e,t){var n;if(!du(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&&!du(t[0])&&!du(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],s=e.spectrum.xVal[0];if(i/(e.spectrum.xVal[e.spectrum.xVal.length-1]-s)>1)throw new Error("noUiSlider: 'padding' option must not exceed 100% of the range.")}}function Fu(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 Hu(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,s=t.indexOf("fixed")>=0,r=t.indexOf("snap")>=0,a=t.indexOf("hover")>=0,o=t.indexOf("unconstrained")>=0,l=t.indexOf("invert-connects")>=0,c=t.indexOf("drag-all")>=0,d=t.indexOf("smooth-steps")>=0;if(s){if(2!==e.handles)throw new Error("noUiSlider: 'fixed' behaviour must be used with 2 handles");Iu(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(o&&(e.margin||e.limit))throw new Error("noUiSlider: 'unconstrained' behaviour cannot be used with margin or limit");e.events={tap:n||r,drag:i,dragAll:c,smoothSteps:d,fixed:s,snap:r,hover:a,unconstrained:o,invertConnects:l}}function Bu(e,t){if(!1!==t)if(!0===t||au(t)){e.tooltips=[];for(var n=0;n<e.handles;n++)e.tooltips.push(t)}else{if((t=pu(t)).length!==e.handles)throw new Error("noUiSlider: must pass a formatter for all handles.");t.forEach(function(e){if("boolean"!=typeof e&&!au(e))throw new Error("noUiSlider: 'tooltips' must be passed a formatter or 'false'.")}),e.tooltips=t}}function Vu(e,t){if(t.length!==e.handles)throw new Error("noUiSlider: must pass a attributes for all handles.");e.handleAttributes=t}function qu(e,t){if(!au(t))throw new Error("noUiSlider: 'ariaFormat' requires 'to' method.");e.ariaFormat=t}function Wu(e,t){if(!function(e){return au(e)&&"function"==typeof e.from}(t))throw new Error("noUiSlider: 'format' requires 'to' and 'from' methods.");e.format=t}function Uu(e,t){if("boolean"!=typeof t)throw new Error("noUiSlider: 'keyboardSupport' option must be a boolean.");e.keyboardSupport=t}function Gu(e,t){e.documentElement=t}function Yu(e,t){if("string"!=typeof t&&!1!==t)throw new Error("noUiSlider: 'cssPrefix' must be a string or `false`.");e.cssPrefix=t}function Xu(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 Ku(e){var t={margin:null,limit:null,padding:null,animate:!0,animationDuration:300,ariaFormat:wu,format:wu},n={step:{r:!1,t:Cu},keyboardPageMultiplier:{r:!1,t:ku},keyboardMultiplier:{r:!1,t:Tu},keyboardDefaultStep:{r:!1,t:ju},start:{r:!0,t:Ou},connect:{r:!0,t:$u},direction:{r:!0,t:Fu},snap:{r:!1,t:Lu},animate:{r:!1,t:Du},animationDuration:{r:!1,t:Mu},range:{r:!0,t:Au},orientation:{r:!1,t:Pu},margin:{r:!1,t:Iu},limit:{r:!1,t:Ru},padding:{r:!1,t:zu},behaviour:{r:!0,t:Hu},ariaFormat:{r:!1,t:qu},format:{r:!1,t:Wu},tooltips:{r:!1,t:Bu},keyboardSupport:{r:!0,t:Uu},documentElement:{r:!1,t:Gu},cssPrefix:{r:!0,t:Yu},cssClasses:{r:!0,t:Xu},handleAttributes:{r:!1,t:Vu}},i={connect:!1,direction:"ltr",behaviour:"tap",orientation:"horizontal",keyboardSupport:!0,cssPrefix:"noUi-",cssClasses:Su,keyboardPageMultiplier:5,keyboardMultiplier:1,keyboardDefaultStep:10};e.format&&!e.ariaFormat&&(e.ariaFormat=e.format),Object.keys(n).forEach(function(s){if(lu(e[s])||void 0!==i[s])n[s].t(t,lu(e[s])?e[s]:i[s]);else if(n[s].r)throw new Error("noUiSlider: '"+s+"' is required.")}),t.pips=e.pips;var s=document.createElement("div"),r=void 0!==s.style.msTransform,a=void 0!==s.style.transform;return t.transformRule=a?"transform":r?"msTransform":"webkitTransform",t.style=[["left","top"],["right","bottom"]][t.dir][t.ort],t}function Zu(e,t,n){var i,s,r,a,o,l,c,d=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"},u=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}(),h=e,p=t.spectrum,m=[],f=[],g=[],v=0,b={},y=!1,_=e.ownerDocument,x=t.documentElement||_.documentElement,w=_.body,S="rtl"===_.dir||1===t.ort?0:100;function E(e,t){var n=_.createElement("div");return t&&fu(n,t),e.appendChild(n),n}function N(e,n){var i=E(e,t.cssClasses.origin),s=E(i,t.cssClasses.handle);if(E(s,t.cssClasses.touchArea),s.setAttribute("data-handle",String(n)),t.keyboardSupport&&(s.setAttribute("tabindex","0"),s.addEventListener("keydown",function(e){return function(e,n){if(T()||j(n))return!1;var i=["Left","Right"],s=["Down","Up"],r=["PageDown","PageUp"],a=["Home","End"];t.dir&&!t.ort?i.reverse():t.ort&&!t.dir&&(s.reverse(),r.reverse());var o,l=e.key.replace("Arrow",""),c=l===r[0],d=l===r[1],u=l===s[0]||l===i[0]||c,h=l===s[1]||l===i[1]||d,g=l===a[1];if(!(u||h||l===a[0]||g))return!0;if(e.preventDefault(),h||u){var v=u?0:1,b=se(n)[v];if(null===b)return!1;!1===b&&(b=p.getDefaultStep(f[n],u,t.keyboardDefaultStep)),b*=d||c?t.keyboardPageMultiplier:t.keyboardMultiplier,b=Math.max(b,1e-7),b*=u?-1:1,o=m[n]+b}else o=g?t.spectrum.xVal[t.spectrum.xVal.length-1]:t.spectrum.xVal[0];return Q(n,p.toStepping(o),!0,!0),G("slide",n),G("update",n),G("change",n),G("set",n),!1}(e,n)})),void 0!==t.handleAttributes){var r=t.handleAttributes[n];Object.keys(r).forEach(function(e){s.setAttribute(e,r[e])})}return s.setAttribute("role","slider"),s.setAttribute("aria-orientation",t.ort?"vertical":"horizontal"),0===n?fu(s,t.cssClasses.handleLower):n===t.handles-1&&fu(s,t.cssClasses.handleUpper),i.handle=s,i}function C(e,n){return!!n&&E(e,t.cssClasses.connect)}function k(e,n){return!(!t.tooltips||!t.tooltips[n])&&E(e.firstChild,t.cssClasses.tooltip)}function T(){return h.hasAttribute("disabled")}function j(e){return r[e].hasAttribute("disabled")}function A(){l&&(U("update"+Eu),l.forEach(function(e){e&&ou(e)}),l=null)}function O(){A(),l=r.map(k),W("update"+Eu,function(e,n,i){if(l&&t.tooltips&&!1!==l[n]){var s=e[n];!0!==t.tooltips[n]&&(s=t.tooltips[n].to(i[n])),l[n].innerHTML=s}})}function L(e,t){return e.map(function(e){return p.fromStepping(t?p.getStep(e):e)})}function D(){o&&(ou(o),o=null)}function M(e){D();var n=function(e){function t(e,t){return Number((e+t).toFixed(7))}var n,i=function(e){if(e.mode===su.Range||e.mode===su.Steps)return p.xVal;if(e.mode===su.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===su.Positions?L(e.values,e.stepped):e.mode===su.Values?e.stepped?e.values.map(function(e){return p.fromStepping(p.getStep(p.toStepping(e)))}):e.values:[]}(e),s={},r=p.xVal[0],a=p.xVal[p.xVal.length-1],o=!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]!==r&&(i.unshift(r),o=!0),i[i.length-1]!==a&&(i.push(a),l=!0),i.forEach(function(n,r){var a,d,u,h,m,f,g,v,b,y,_=n,x=i[r+1],w=e.mode===su.Steps;for(w&&(a=p.xNumSteps[r]),a||(a=x-_),void 0===x&&(x=_),a=Math.max(a,1e-7),d=_;d<=x;d=t(d,a)){for(v=(m=(h=p.toStepping(d))-c)/(e.density||1),y=m/(b=Math.round(v)),u=1;u<=b;u+=1)s[(f=c+u*y).toFixed(5)]=[p.fromStepping(f),0];g=i.indexOf(d)>-1?ru.LargeValue:w?ru.SmallValue:ru.NoValue,!r&&o&&d!==x&&(g=0),d===x&&l||(s[h.toFixed(5)]=[d,g]),c=h}}),s}(e),i=e.filter,s=e.format||{to:function(e){return String(Math.round(e))}};return o=h.appendChild(function(e,n,i){var s,r,a=_.createElement("div"),o=((s={})[ru.None]="",s[ru.NoValue]=t.cssClasses.valueNormal,s[ru.LargeValue]=t.cssClasses.valueLarge,s[ru.SmallValue]=t.cssClasses.valueSub,s),l=((r={})[ru.None]="",r[ru.NoValue]=t.cssClasses.markerNormal,r[ru.LargeValue]=t.cssClasses.markerLarge,r[ru.SmallValue]=t.cssClasses.markerSub,r),c=[t.cssClasses.valueHorizontal,t.cssClasses.valueVertical],d=[t.cssClasses.markerHorizontal,t.cssClasses.markerVertical];function u(e,n){var i=n===t.cssClasses.value,s=i?o:l;return n+" "+(i?c:d)[t.ort]+" "+s[e]}return fu(a,t.cssClasses.pips),fu(a,0===t.ort?t.cssClasses.pipsHorizontal:t.cssClasses.pipsVertical),Object.keys(e).forEach(function(s){!function(e,s,r){if((r=n?n(s,r):r)!==ru.None){var o=E(a,!1);o.className=u(r,t.cssClasses.marker),o.style[t.style]=e+"%",r>ru.NoValue&&((o=E(a,!1)).className=u(r,t.cssClasses.value),o.setAttribute("data-value",String(s)),o.style[t.style]=e+"%",o.innerHTML=String(i.to(s)))}}(s,e[s][0],e[s][1])}),a}(n,i,s))}function $(){var e=i.getBoundingClientRect(),n="offset"+["Width","Height"][t.ort];return 0===t.ort?e.width||i[n]:e.height||i[n]}function P(e,n,i,s){var r=function(r){var a,o,l=function(e,t,n){var i=0===e.type.indexOf("touch"),s=0===e.type.indexOf("mouse"),r=0===e.type.indexOf("pointer"),a=0,o=0;if(0===e.type.indexOf("MSPointer")&&(r=!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;a=c[0].pageX,o=c[0].pageY}else{var d=Array.prototype.find.call(e.changedTouches,l);if(!d)return!1;a=d.pageX,o=d.pageY}}return t=t||vu(_),(s||r)&&(a=e.clientX+t.x,o=e.clientY+t.y),e.pageOffset=t,e.points=[a,o],e.cursor=s||r,e}(r,s.pageOffset,s.target||n);return!!l&&!(T()&&!s.doNotReject)&&(a=h,o=t.cssClasses.tap,!((a.classList?a.classList.contains(o):new RegExp("\\b"+o+"\\b").test(a.className))&&!s.doNotReject)&&!(e===d.start&&void 0!==l.buttons&&l.buttons>1)&&(!s.hover||!l.buttons)&&(u||l.preventDefault(),l.calcPoint=l.points[t.ort],void i(l,s)))},a=[];return e.split(" ").forEach(function(e){n.addEventListener(e,r,!!u&&{passive:!0}),a.push([e,r])}),a}function I(e){var n,s,r,a,o,l,c=100*(e-(n=i,s=t.ort,r=n.getBoundingClientRect(),o=(a=n.ownerDocument).documentElement,l=vu(a),/webkit.*Chrome.*Mobile/i.test(navigator.userAgent)&&(l.x=0),s?r.top+l.y-o.clientTop:r.left+l.x-o.clientLeft))/$();return c=hu(c),t.dir?100-c:c}function R(e,t){"mouseout"===e.type&&"HTML"===e.target.nodeName&&null===e.relatedTarget&&F(e,t)}function z(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&&(gu(n.handle,t.cssClasses.active),v-=1),n.listeners.forEach(function(e){x.removeEventListener(e[0],e[1])}),0===v&&(gu(h,t.cssClasses.drag),J(),e.cursor&&(w.style.cursor="",w.removeEventListener("selectstart",cu))),t.events.smoothSteps&&(n.handleNumbers.forEach(function(e){Q(e,f[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 H(e,n){if(!n.handleNumbers.some(j)){var i;1===n.handleNumbers.length&&(i=r[n.handleNumbers[0]].children[0],v+=1,fu(i,t.cssClasses.active)),e.stopPropagation();var s=[],a=P(d.move,x,z,{target:e.target,handle:i,connect:n.connect,listeners:s,startCalcPoint:e.calcPoint,baseSize:$(),pageOffset:e.pageOffset,handleNumbers:n.handleNumbers,buttonsProperty:e.buttons,locations:f.slice()}),o=P(d.end,x,F,{target:e.target,handle:i,listeners:s,doNotReject:!0,handleNumbers:n.handleNumbers}),l=P("mouseout",x,R,{target:e.target,handle:i,listeners:s,doNotReject:!0,handleNumbers:n.handleNumbers});s.push.apply(s,a.concat(o,l)),e.cursor&&(w.style.cursor=getComputedStyle(e.target).cursor,r.length>1&&fu(h,t.cssClasses.drag),w.addEventListener("selectstart",cu,!1)),n.handleNumbers.forEach(function(e){G("start",e)})}}function B(e){e.stopPropagation();var n=I(e.calcPoint),i=function(e){var t=100,n=!1;return r.forEach(function(i,s){if(!j(s)){var r=f[s],a=Math.abs(r-e);(a<t||a<=t&&e>r||100===a&&100===t)&&(n=s,t=a)}}),n}(n);!1!==i&&(t.events.snap||uu(h,t.cssClasses.tap,t.animationDuration),Q(i,n,!0,!0),J(),G("slide",i,!0),G("update",i,!0),t.events.snap?H(e,{handleNumbers:[i]}):(G("change",i,!0),G("set",i,!0)))}function V(e){var t=I(e.calcPoint),n=p.getStep(t),i=p.fromStepping(n);Object.keys(b).forEach(function(e){"hover"===e.split(".")[0]&&b[e].forEach(function(e){e.call(ae,i)})})}function q(e){e.fixed||r.forEach(function(e,t){P(d.start,e.children[0],H,{handleNumbers:[t]})}),e.tap&&P(d.start,i,B,{}),e.hover&&P(d.move,i,V,{hover:!0}),e.drag&&a.forEach(function(n,i){if(!1!==n&&0!==i&&i!==a.length-1){var s=r[i-1],o=r[i],l=[n],c=[s,o],u=[i-1,i];fu(n,t.cssClasses.draggable),e.fixed&&(l.push(s.children[0]),l.push(o.children[0])),e.dragAll&&(c=r,u=g),l.forEach(function(e){P(d.start,e,H,{handles:c,handleNumbers:u,connect:n})})}})}function W(e,t){b[e]=b[e]||[],b[e].push(t),"update"===e.split(".")[0]&&r.forEach(function(e,t){G("update",t)})}function U(e){var t=e&&e.split(".")[0],n=t?e.substring(t.length):e;Object.keys(b).forEach(function(e){var i=e.split(".")[0],s=e.substring(i.length);t&&t!==i||n&&n!==s||function(e){return e===Nu||e===Eu}(s)&&n!==s||delete b[e]})}function G(e,n,i){Object.keys(b).forEach(function(s){var r=s.split(".")[0];e===r&&b[s].forEach(function(e){e.call(ae,m.map(t.format.to),n,m.slice(),i||!1,f.slice(),ae)})})}function Y(e,n,i,s,a,o,l){var c;return r.length>1&&!t.events.unconstrained&&(s&&n>0&&(c=p.getAbsoluteDistance(e[n-1],t.margin,!1),i=Math.max(i,c)),a&&n<r.length-1&&(c=p.getAbsoluteDistance(e[n+1],t.margin,!0),i=Math.min(i,c))),r.length>1&&t.limit&&(s&&n>0&&(c=p.getAbsoluteDistance(e[n-1],t.limit,!1),i=Math.min(i,c)),a&&n<r.length-1&&(c=p.getAbsoluteDistance(e[n+1],t.limit,!0),i=Math.max(i,c))),t.padding&&(0===n&&(c=p.getAbsoluteDistance(0,t.padding[0],!1),i=Math.max(i,c)),n===r.length-1&&(c=p.getAbsoluteDistance(100,t.padding[1],!0),i=Math.min(i,c))),l||(i=p.getStep(i)),!((i=hu(i))===e[n]&&!o)&&i}function X(e,n){var i=t.ort;return(i?n:e)+", "+(i?e:n)}function K(e,n,i,s,r){var a=i.slice(),o=s[0],l=t.events.smoothSteps,c=[!e,e],d=[e,!e];s=s.slice(),e&&s.reverse(),s.length>1?s.forEach(function(e,t){var i=Y(a,e,a[e]+n,c[t],d[t],!1,l);!1===i?n=0:(n=i-a[e],a[e]=i)}):c=d=[!0];var u=!1;s.forEach(function(e,t){u=Q(e,i[e]+n,c[t],d[t],!1,l)||u}),u&&(s.forEach(function(e){G("update",e),G("slide",e)}),null!=r&&G("drag",o))}function Z(e,n){return t.dir?100-e-n:e}function J(){g.forEach(function(e){var t=f[e]>50?-1:1,n=3+(r.length+t*e);r[e].style.zIndex=String(n)})}function Q(e,n,i,s,a,o){return a||(n=Y(f,e,n,i,s,!1,o)),!1!==n&&(function(e,n){f[e]=n,m[e]=p.fromStepping(n);var i="translate("+X(Z(n,0)-S+"%","0")+")";if(r[e].style[t.transformRule]=i,t.events.invertConnects&&f.length>1){var s=f.every(function(e,t,n){return 0===t||e>=n[t-1]});if(y!==!s)return y=!y,$u(t,t.connect.map(function(e){return!e})),void re()}ee(e),ee(e+1),y&&(ee(e-1),ee(e+2))}(e,n),!0)}function ee(e){if(a[e]){var n=f.slice();y&&n.sort(function(e,t){return e-t});var i=0,s=100;0!==e&&(i=n[e-1]),e!==a.length-1&&(s=n[e]);var r=s-i,o="translate("+X(Z(i,r)+"%","0")+")",l="scale("+X(r/100,"1")+")";a[e].style[t.transformRule]=o+" "+l}}function te(e,n){return null===e||!1===e||void 0===e?f[n]:("number"==typeof e&&(e=String(e)),!1!==(e=t.format.from(e))&&(e=p.toStepping(e)),!1===e||isNaN(e)?f[n]:e)}function ne(e,n,i){var s=pu(e),r=void 0===f[0];n=void 0===n||n,t.animate&&!r&&uu(h,t.cssClasses.tap,t.animationDuration),g.forEach(function(e){Q(e,te(s[e],e),!0,!1,i)});var a=1===g.length?0:1;if(r&&p.hasNoSize()&&(i=!0,f[0]=0,g.length>1)){var o=100/(g.length-1);g.forEach(function(e){f[e]=e*o})}for(;a<g.length;++a)g.forEach(function(e){Q(e,f[e],!0,!0,i)});J(),g.forEach(function(e){G("update",e),null!==s[e]&&n&&G("set",e)})}function ie(e){if(void 0===e&&(e=!1),e)return 1===m.length?m[0]:m.slice(0);var n=m.map(t.format.to);return 1===n.length?n[0]:n}function se(e){var n=f[e],i=p.getNearbySteps(n),s=m[e],r=i.thisStep.step,a=null;if(t.snap)return[s-i.stepBefore.startValue||null,i.stepAfter.startValue-s||null];!1!==r&&s+r>i.stepAfter.startValue&&(r=i.stepAfter.startValue-s),a=s>i.thisStep.startValue?i.thisStep.step:!1!==i.stepBefore.step&&s-i.stepBefore.highestStep,100===n?r=null:0===n&&(a=null);var o=p.countStepDecimals();return null!==r&&!1!==r&&(r=Number(r.toFixed(o))),null!==a&&!1!==a&&(a=Number(a.toFixed(o))),[a,r]}function re(){for(;s.firstChild;)s.removeChild(s.firstChild);for(var e=0;e<=t.handles;e++)a[e]=C(s,t.connect[e]),ee(e);q({drag:t.events.drag,fixed:!0})}fu(c=h,t.cssClasses.target),0===t.dir?fu(c,t.cssClasses.ltr):fu(c,t.cssClasses.rtl),0===t.ort?fu(c,t.cssClasses.horizontal):fu(c,t.cssClasses.vertical),fu(c,"rtl"===getComputedStyle(c).direction?t.cssClasses.textDirectionRtl:t.cssClasses.textDirectionLtr),i=E(c,t.cssClasses.base),function(e,n){s=E(n,t.cssClasses.connects),r=[],(a=[]).push(C(s,e[0]));for(var i=0;i<t.handles;i++)r.push(N(n,i)),g[i]=i,a.push(C(s,e[i+1]))}(t.connect,i),q(t.events),ne(t.start),t.pips&&M(t.pips),t.tooltips&&O(),U("update"+Nu),W("update"+Nu,function(e,n,i,s,a){g.forEach(function(e){var n=r[e],s=Y(f,e,0,!0,!0,!0),o=Y(f,e,100,!0,!0,!0),l=a[e],c=String(t.ariaFormat.to(i[e]));s=p.fromStepping(s).toFixed(1),o=p.fromStepping(o).toFixed(1),l=p.fromStepping(l).toFixed(1),n.children[0].setAttribute("aria-valuemin",s),n.children[0].setAttribute("aria-valuemax",o),n.children[0].setAttribute("aria-valuenow",l),n.children[0].setAttribute("aria-valuetext",c)})});var ae={destroy:function(){for(U(Nu),U(Eu),Object.keys(t.cssClasses).forEach(function(e){gu(h,t.cssClasses[e])});h.firstChild;)h.removeChild(h.firstChild);delete h.noUiSlider},steps:function(){return g.map(se)},on:W,off:U,get:ie,set:ne,setHandle:function(e,t,n,i){if(!((e=Number(e))>=0&&e<g.length))throw new Error("noUiSlider: invalid handle number, got: "+e);Q(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?(r[e].setAttribute("disabled",""),r[e].handle.removeAttribute("tabindex")):(h.setAttribute("disabled",""),r.forEach(function(e){e.handle.removeAttribute("tabindex")}))},enable:function(e){null!=e?(r[e].removeAttribute("disabled"),r[e].handle.setAttribute("tabindex","0")):(h.removeAttribute("disabled"),r.forEach(function(e){e.removeAttribute("disabled"),e.handle.setAttribute("tabindex","0")}))},__moveHandles:function(e,t,n){K(e,t,f,n)},options:n,updateOptions:function(e,i){var s=ie(),r=["margin","limit","padding","range","animate","snap","step","format","pips","tooltips","connect"];r.forEach(function(t){void 0!==e[t]&&(n[t]=e[t])});var a=Ku(n);r.forEach(function(n){void 0!==e[n]&&(t[n]=a[n])}),p=a.spectrum,t.margin=a.margin,t.limit=a.limit,t.padding=a.padding,t.pips?M(t.pips):D(),t.tooltips?O():A(),f=[],ne(lu(e.start)?e.start:s,i),e.connect&&re()},target:h,removePips:D,removeTooltips:A,getPositions:function(){return f.slice()},getTooltips:function(){return l},getOrigins:function(){return r},pips:M};return ae}var Ju=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=Zu(e,Ku(t),t);return e.noUiSlider=n,n};const Qu={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}};let eh=class{constructor(e,t){return this.handleSliderUpdate=(e,t)=>{const n=e[t];if(this.inputs[t]&&(this.inputs[t].value=n),this.outputs[t]){const e=this.outputs[t];e&&e.format?e.element.innerText=e.format.to(this.config.format.from(n)):e&&(e.element.innerText=n)}},this.element=e,this.config={...Qu,...t},this.inputs=[],this.outputs=[],this.handleSliderUpdate=this.handleSliderUpdate.bind(this),this.element.ODS_RangeSlider=this,this.init(),this}init(){const e=this.element.getAttribute("data-rangeslider-config");let t={};if(e)try{t=JSON.parse(e)}catch{}if(this.config={...this.config,...t},this.config.format=Se(this.config.format),this.element.noUiSlider&&(this.element.noUiSlider=void 0,this.instance?.destroy&&this.instance.destroy()),!this.config.range)throw new Error("RangeSlider config must include 'range'.");this.instance=Ju(this.element,this.config),this.inputs=Array.from(document.querySelectorAll(`input[name^=${this.element.getAttribute("id")}-]`)),this.outputs=this.inputs.map(e=>{const t=document.getElementById(`${e.getAttribute("id")}-output`);if(t){const e=t.getAttribute("data-format");return{element:t,format:t.hasAttribute("data-format")&&e?Se(JSON.parse(e)):void 0}}return!1}),this.instance.on("update",(e,t)=>{this.handleSliderUpdate(e.map(String),t)})}update(){this.instance?.destroy(),this.init()}destroy(){this.instance?.off("update"),this.instance?.destroy(),this.element.ODS_RangeSlider=null}static getInstance(e){return e&&e.ODS_RangeSlider?e.ODS_RangeSlider:null}};const th="range-slider",nh="default",ih=({className:e,id:t,hasDataAttr:n=true,config:i,elementBefore:s,elementAfter:r,isInvalid:a,width:o=nh,...l})=>{const[c]=j(eh),d=O(t),u=C(th,{[`${th}--${o}`]:o!==nh},e);return S.jsxs(S.Fragment,{children:[s,S.jsx("div",{id:d,className:u,ref:c,"data-rangeslider":n,"data-rangeslider-config":JSON.stringify(i),...l}),i.start.map((e,t)=>{const n=`${d}-${t}`;return S.jsx("input",{type:"hidden",id:n,name:n},n)}),r]})};ih.displayName="RangeSlider";const sh="textarea",rh="default",ah="default",oh=({children:e,className:t,id:n,isDisabled:i,isInvalid:s,isValid:r,isReadonly:a,placeholder:o,size:l=rh,width:c=ah,name:d,...u})=>{const h=C(sh,{"is-invalid":s,"is-valid":r,[`${sh}--${l}`]:l!==rh,[`${sh}--${c}`]:c!==ah},t),p=d||n;return S.jsx("textarea",{className:h,id:n,name:p,disabled:i,readOnly:a,placeholder:o,...u,children:e})};oh.displayName="TextArea";const lh=r(null),ch=Sc(()=>Promise.resolve().then(function(){return ho}).then(e=>({default:e.Autocomplete}))),dh="form-field__control",uh=({className:t})=>{const n=e.useContext(lh),i=e.useContext(Ec),s=n?.controlId??"",r=n?.control??{},a=n?.isRadioCheck,o=n?.hint,l=n?.messages??[],c=n?.tooltip,d=i?.messages??[],{type:u,control:h,renderControl:p,prefix:m,suffix:f,id:g,...v}=r,b=((e,t,n,i)=>[...e?[`${i}-hint`]:[],...t.map((e,t)=>`${i}-message-${t}`),...n?[`${i}-tooltip`]:[]].join(" "))(o,l,c,s),y=a||"autocomplete"===u,_=(e=>{switch(e){case"autocomplete":return ch;case"checkbox":return fo;case"datepicker":return lc;case"file":return Bd;case"group":return Kd;case"radio":return iu;case"range":return ih;case"select":return ao;case"input-stepper":return eu;case"textarea":return oh;default:return Ud}})(u??"text"),{isInvalid:x,isValid:w}=v,E=x??((d.some(e=>e.isMain)||l.some(e=>"error"===e.type))&&!w),N={...v,..."group"!==u&&{id:s},...b.length&&{"aria-describedby":b},..."file"===u&&{"aria-labelledby":`${s}-label`},isInvalid:E,..."group"===u&&h&&{addonPrefix:m,addonSuffix:f,control:{...h,id:s,isInvalid:E}}};return p?p(N):S.jsx(G,{condition:y,wrapper:S.jsx("div",{className:C(dh,t)}),children:S.jsx(_,{...N,className:C(v.className,{[`${dh}`]:!y})})})},hh=({className:e,children:t,...n})=>t?S.jsx("p",{className:C("hint",e),...n,children:t}):null;hh.displayName="Hint";const ph=({htmlFor:e,className:t,children:n,...i})=>S.jsx("label",{htmlFor:e,className:C("label",t),...i,children:n});ph.displayName="Label";const mh="form-field__label",fh=()=>{const t=e.useContext(lh),n=t?.control,i=t?.controlId??"",s=t?.label,r=t?.labelAfter;return S.jsx(S.Fragment,{children:r?S.jsxs("div",{className:mh,children:["range"!==n?.type?S.jsx(ph,{id:i?`${i}-label`:void 0,htmlFor:i,className:r?void 0:mh,children:s}):S.jsx("span",{id:i?`${i}-label`:void 0,className:C("label",{[mh]:!r}),children:s}),r&&S.jsxs(S.Fragment,{children:[" ",r]})]}):"range"!==n?.type?S.jsx(ph,{id:i?`${i}-label`:void 0,htmlFor:i,className:mh,children:s}):S.jsx("span",{id:i?`${i}-label`:void 0,className:C("label",{[mh]:!r}),children:s})})},gh=({id:e,children:t,placement:n="right",...i})=>t?S.jsxs(S.Fragment,{children:[" ",S.jsx(mr,{id:`${e}-tooltip`,className:"form-field__tooltip",placement:n,...i,children:t})]}):null;gh.displayName="FormTooltip";const vh=({hideLabel:t=!1,children:n})=>{const i=e.useContext(lh),s=i?.controlId??"",r=i?.tooltip,a=i?.hint;return S.jsxs("div",{className:"form-field__description",children:[t?null:S.jsxs(S.Fragment,{children:[S.jsx(fh,{}),S.jsx(gh,{id:s,children:r})]}),S.jsx(hh,{id:`${s}-hint`,className:"form-field__hint",children:a}),n]})},bh={info:"info",warning:"warning-important",error:"error-severe",invalid:"error-severe"},yh={info:"info",warning:"warning",error:"danger",invalid:"danger"},_h="message",xh=({className:e,children:t,type:n="info",...i})=>{const s=C(_h,e,"invalid"===n&&{[`${_h}--invalid`]:"invalid"===n});return S.jsxs("p",{className:s,...i,children:[n&&S.jsx(B,{name:bh[n],size:"medium",color:yh[n],className:`${_h}__icon`}),t]})};xh.displayName="Message";const wh=({isMain:t})=>{const n=e.useContext(lh),i=e.useContext(Ec),{controlId:s,messages:r=[]}=n??i??{};return r.filter(e=>t===e.isMain).map((e,t)=>S.jsx(xh,{id:`${s}-message-${t}`,type:e.type,children:e.text},t.toString()))},Sh="form-field",Eh=({className:e,control:t,hint:n,label:i,labelAfter:s,messages:r=[],tooltip:a,...o})=>{const l=["radio","checkbox"].includes(t?.type??""),c="checkbox"===t?.type&&t?.isToggle,d=C(Sh,e,{[`${Sh}--radiocheck`]:l}),u=(e=>{const{id:t,control:n}=e;return t??(n&&n.id)??T()})(t??{}),h={control:t,hint:n,label:i,labelAfter:s,messages:r,tooltip:a,controlId:u,isRadioCheck:l};return S.jsx("div",{className:d,...o,children:S.jsx(lh.Provider,{value:h,children:l?c?S.jsx(S.Fragment,{children:S.jsxs(ae,{space:"small",children:[S.jsx(ce,{children:S.jsxs(ae,{canWrap:!1,children:[S.jsx(ce,{children:S.jsx(uh,{className:"mr-none"})}),S.jsxs(ce,{canShrink:!0,children:[S.jsx(fh,{}),S.jsx(gh,{id:u,children:a})]})]})}),S.jsx(oe,{}),S.jsx(ce,{className:"mt-none",children:S.jsx(vh,{hideLabel:!0,children:S.jsx(wh,{})})})]})}):S.jsxs(S.Fragment,{children:[S.jsx(uh,{}),S.jsx(vh,{children:S.jsx(wh,{})})]}):S.jsxs(S.Fragment,{children:[S.jsx(vh,{}),S.jsx(uh,{}),S.jsx(wh,{})]})})})};Eh.displayName="Field";const Nh=({legend:e,legendProps:t,description:n,className:i,children:s,messages:r,...a})=>{const o=C("fieldset",i);return S.jsxs("fieldset",{className:o,...a,children:[S.jsx("legend",{...t,children:e}),n,r?S.jsxs(Ec.Provider,{value:{messages:r},children:[S.jsx(wh,{isMain:!0}),s,S.jsx(wh,{})]}):s]})};Nh.displayName="Fieldset";const Ch=(e,t)=>`${e/2*(t/100)}, ${e}`,kh=(e,t=0,n=100)=>Math.min(Math.max(e,t),n),Th="gauge",jh=e.forwardRef(({children:e,className:t,percentage:n=0,...i},s)=>{const r=122*Math.PI*2,a={r:100,cx:110,cy:110,strokeWidth:15,fill:"none",transform:"rotate(160, 110, 110)"};return S.jsxs("figure",{ref:s,className:C(`${Th}`,t),...i,children:[S.jsxs("svg",{width:"220",height:"150",viewBox:"0 0 220 150",className:`${Th}__dial`,children:[S.jsx("circle",{className:`${Th}__display`,strokeDasharray:Ch(r,100),...a}),S.jsx("circle",{className:`${Th}__indicator`,strokeDasharray:Ch(r,kh(n)),...a})]}),S.jsx("figcaption",{className:`${Th}__text`,children:e})]})});jh.displayName="Gauge";const Ah="sticker",Oh=({color:e,size:t,children:n,className:i,...s})=>{const r=C(Ah,{[`${Ah}--${e}`]:e,[`${Ah}--${t}`]:t},i);return S.jsx("div",{className:r,...s,children:n})};Oh.displayName="Sticker";const Lh={medium:{title:"h2",description:"bold"},large:{title:"h1",description:"large bold"}},Dh=({button:e,description:t,hasGradientOverlay:n,image:i,hasFullwidthImage:s,price:r,sticker:a,title:o,textSize:l="medium"})=>{const c=!!i&&("src"in i&&!!i.src||"default"in i&&i.default&&1===Object.keys(i).length),d=C("hero");return S.jsx("div",{className:d,children:S.jsx(Ji,{children:S.jsxs(Te,{className:"justify-content-space-between",children:[S.jsxs(Le,{size:{sm:10,md:9,lg:5},className:"hero__content",children:[S.jsx("h1",{className:Lh[l].title,children:o}),t&&S.jsx("p",{className:C(Lh[l].description,"hero__description"),children:t}),r&&S.jsxs("p",{className:"h2 hero__price",children:["string"==typeof r&&r,"object"==typeof r&&S.jsxs(S.Fragment,{children:[r.prefix,Ce(r.amount),r.suffix]})]}),e&&S.jsx(Ae,{type:"primary",...e})]}),a&&S.jsx(Le,{size:{md:3,lg:2},className:"hero__content show-md",children:S.jsx(Oh,{...a,className:C("hero__sticker",a.className)})}),i&&S.jsx("div",{className:"hero__image-wrapper",children:S.jsx(As,{src:"src"in i?{default:i.src}:i,srcSet:"src"in i?i.srcSet:void 0,alt:"",className:C("hero__image",{"hero__image--fullwidth":s,"hero__image--single":c,"hero__image--gradient":n,"hero__image--gradient-halfwidth":n&&!s})})})]})})})};Dh.displayName="Hero";const Mh="icon-list",$h=({icon:e,children:t,tooltip:n,...i})=>S.jsxs("li",{...i,children:[S.jsx(B,{name:e,size:"medium",className:`${Mh}__icon`}),S.jsxs("div",{className:C(`${Mh}__content`,{"text-nowrap":n}),children:[S.jsx(G,{condition:!!n,wrapper:S.jsx("span",{className:`${Mh}__content-text`,children:t}),children:t}),n&&" ",n&&S.jsx(mr,{className:"bold",placement:"right",children:n})]})]});$h.displayName="IconListItem";const Ph=({items:e=[],className:t,...n})=>S.jsx("ul",{className:C("icon-list",t),...n,children:e.map(({content:e,...t},n)=>S.jsx($h,{...t,children:e},n.toString()))});Ph.displayName="IconList";const Ih="list",Rh=({color:e,isEnclosed:t,size:n,className:i,children:s,...r})=>{const a=C(Ih,{[`${Ih}--${n}`]:n,[`${Ih}--${e}`]:e,[`${Ih}--enclosed`]:t},i);return S.jsx("ul",{className:a,...r,children:s})},zh=({href:e,className:t,children:n,...i})=>{const s=e?"a":"button",r="button"===s?"button":void 0,a=C("list__control",t);return S.jsxs(s,{className:a,type:r,href:e,...i,children:[n,S.jsx(B,{name:"chevron-right",size:"medium",className:"list__indicator"})]})};zh.displayName="ListItemClickableControl";const Fh=({controlProps:e,className:t,children:n,...i})=>{const s=C("list__item",t);return S.jsx("li",{className:s,...i,children:S.jsx(G,{condition:void 0!==e,wrapper:S.jsx(zh,{...e}),children:n})})};Fh.displayName="ListItem";const Hh={cycleDuration:4e3,delay:5e3};let Bh=class{constructor(e,t){this.element=e,this.config={...Hh,...t},this.interval=null,this.delay=null,this.currentMessageIndex=0,this.messages=[],this.cycleMessages=this.cycleMessages.bind(this),this.element.ODS_Loader=this,this.init()}initBody(){const e=this.element.getAttribute("data-loader-messages");this.messages=e?JSON.parse(e):[],this.messages.length&&(this.interval=window.setInterval(this.cycleMessages,this.config.cycleDuration??Hh.cycleDuration))}init(){this.element.hasAttribute("data-loader-delayed")?this.delay=window.setTimeout(()=>{this.element.parentNode&&this.element.parentNode instanceof HTMLElement&&this.element.parentNode.classList.remove("hide"),this.initBody()},this.config.delay??Hh.delay):this.initBody()}destroy(){this.interval&&window.clearInterval(this.interval),this.delay&&window.clearTimeout(this.delay)}cycleMessages(){this.currentMessageIndex<this.messages.length?(this.element.innerText=this.messages[this.currentMessageIndex],this.currentMessageIndex+=1):this.destroy()}static getInstance(e){return e&&e.ODS_Loader?e.ODS_Loader:null}};const Vh="loader",qh=({messages:e,size:t="default",className:n,colour:i="default",isDelayed:s,children:r,...a})=>{const[o]=j(Bh,{messages:e,isDelayed:s}),l=C(Vh,{[`${Vh}--${t}`]:"default"!==t,[`${Vh}--${i}`]:"default"!==i,hide:s},n);return S.jsxs("div",{className:l,...a,children:[S.jsx("div",{className:`${Vh}__body`,children:S.jsx("div",{className:`${Vh}__line`})}),e&&S.jsx("div",{"data-loader":!0,"data-loader-delayed":s,"data-loader-messages":JSON.stringify(e),className:`${Vh}__messages`,ref:o,children:r})]})};qh.displayName="Loader";const Wh=({className:e,children:t,...n})=>{const i=C("loader-fullscreen",e);return S.jsx("div",{className:i,role:"status","aria-live":"polite",...n,children:S.jsxs(Ji,{children:[t,S.jsx(qh,{size:"large"})]})})};Wh.displayName="LoaderFullscreen";const Uh="megamenu-icon",Gh=({className:e,alt:t,name:n,spritePath:i="/sprite.svg",...s})=>{const r=C(Uh,e);return S.jsxs("svg",{className:r,"aria-hidden":void 0!==t?void 0:"true",role:void 0!==t?"img":void 0,...s,children:[void 0!==t&&t.length>0&&S.jsx("title",{children:t}),S.jsx("use",{className:`${Uh}__use ${Uh}__use--light`,xlinkHref:`${i}#${n}`}),S.jsx("use",{className:`${Uh}__use ${Uh}__use--dark`,xlinkHref:`${i}#${n}`})]})},Yh="megamenu",Xh=`${Yh}__top`,Kh=`${Yh}__main`,Zh=`${Yh}__container`,Jh=`${Yh}__grid`,Qh=`${Yh}__card`,ep=`${Yh}__tiles`,tp=`${Yh}__tile`,np=`${Yh}__tile-body`,ip=`${Yh}__tile-content`,sp=`${Yh}__tile-label`,rp=`${Yh}__nav`,ap=`${Yh}__nav--vertical`,op=`${Yh}__nav--space-small`,lp=`${Yh}__nav--mobile-locale`,cp=`${Yh}__nav-item`,dp=`${Yh}__nav-item--lead`,up=`${Yh}__nav-item--main`,hp=`${Yh}__nav-link`,pp=`${Yh}__nav-link--locale`,mp=`${Yh}__nav-link--no-line`,fp=`${Yh}__nav-link--cta`,gp=`${Yh}__nav-select`,vp=`${Yh}__nav-cart-icon`,bp=`${Yh}__nav-spacer`,yp=`${Yh}__nav-icon`,_p=`${yp}--no-gap-md-down`,xp=`${yp}--cta`,wp=`${Yh}__nav-logo`,Sp=`${Yh}__nav-button`,Ep=`${Yh}__nav-button--indicator`,Np=`${Yh}__nav-button--select`,Cp=`${Yh}__nav-dropdown`,kp=`${Yh}__subnav`,Tp=`${Yh}__subnav-item`,jp=`${Yh}__overlay`,Ap=`${Yh}-spacer`,Op=`${Yh}-spacer--small`,Lp=`${Yh}__text--large`,Dp=`${Yh}__caption`,Mp=`${Yh}--hide-md-down`,$p=`${Yh}--hide-lg-only`,Pp=`${Yh}--hide-lg-up`,Ip=`${Yh}__mobile`,Rp=`${Yh}__mobile-overlay`,zp=`${Yh}__mobile-wrapper`,Fp=`${Yh}__mobile-header`,Hp=`${Yh}__mobile-body`,Bp=`${Yh}__mobile-cta`,Vp=`${Yh}__mobile-account`,qp=`${Yh}__mobile-account-avatar`,Wp=`${Yh}__mobile-account-phone`,Up=`${Yh}__mobile-account-logout`,Gp=`${Yh}__button`,Yp=`${Gp}--secondary`,Xp=`${Yh}__mobile-account-links`,Kp=`${Yh}__mobile-account-link`,Zp=`${Yh}__mobile-app-card`,Jp=`${Zp}-section`,Qp=`${Zp}-title`,em=`${Zp}-stores`,tm=`${Zp}-store`,nm=`${Zp}-image`,im=`${Yh}__accordion`,sm=`${Yh}__accordion-item`,rm=`${Yh}__accordion-header`,am=`${Yh}__accordion-button`,om=`${Yh}__accordion-title`,lm=`${Yh}__accordion-icon`,cm=`${Yh}__accordion-body`,dm=`${Yh}__input`,um=`${Yh}__input-wrapper`,hm=`${Yh}__input-wrapper--search-icon-with-placeholder`,pm=`${Yh}__input-wrapper--search-responsive`,mm=`${Yh}__tag`,fm=`${Yh}__tag--orange`,gm=`${Yh}__tag--small`,vm=`${Yh}__tag--transparent`,bm=`${Yh}__tag--large`,ym=`${Yh}__list--inline`,_m=`${Yh}__list--gap-small`,xm=[{label:"Chcem nové číslo",icon:"sim",tag:"1 mesiac zadarmo",isActive:!0},{label:"Chcem preniesť číslo",icon:"showroom-mobile-pro",tag:"1 mesiac zadarmo"},{label:"Chcem zmeniť paušál",icon:"showroom-mobile-pro"}],wm=[{id:"volania",label:"Volania",featured:{id:"odporucane-sluzby",heading:"Odporúčané služby",items:[{label:"Super paušály",isLarge:!0},{label:"Predplatené karty",isLarge:!0},{label:"Roaming",isLarge:!0},{label:"Love",isLarge:!0}]},columns:[[{id:"pausaly",heading:"Paušály",items:[{label:"Prehľad paušálov"},{label:"Super paušály",tag:"Novinka"},{label:"Yoxo paušál"},{label:"Paušalík"}]},{id:"s-kreditom",heading:"Volania s kreditom",items:[{label:"Prima Voľba"},{label:"Prima Kids"},{label:"FunFón"}]}],[{id:"zahranicie",heading:"Zahraničie",items:[{label:"Roaming"},{label:"Roamingové balíky"},{label:"Volania do zahraničia"},{label:"Regulovaný roaming v EÚ"},{label:"Cestovné poistenie"}]},{id:"doplnkove-sluzby",heading:"Doplnkové služby",items:[{label:"eWatch",tag:"Novinka"},{label:"eSIM"},{label:"Poistenie zariadení"}]}],[{id:"nase-sluzby",heading:"Ste náš zákazník?",items:[{label:"Chcem zmeniť paušál"},{label:"Chcem predĺžiť služby"},{label:"Dobiť kredit"},{label:"Odporučte Orange"},{label:"Navzájom zadarmo"}]}]]},{id:"internet-tv",label:"Internet, TV",featured:{id:"odporucane-sluzby",heading:"Odporúčané služby",items:[{label:"Internet na doma",isLarge:!0},{label:"Mobilný internet",isLarge:!0},{label:"Televízia",isLarge:!0},{label:"Internet + TV",isLarge:!0}]},columns:[[{id:"pausaly",heading:"Internet",items:[{label:"Prehľad internetu"},{label:"Mobilný internet"},{label:"Bezpečný internet so sebou"},{label:"Domáca linka k internetu"}]}],[{id:"televizia",heading:"Televízia",items:[{label:"Najlepšia TV na doma"},{label:"TV cez satelit"},{label:"TV cez internet"},{label:"Novinky na Orange TV"}]}],[{id:"internet-televizia",heading:"Internet + televízia",items:[{label:"Ponuka Love"},{label:"Výhodný pár zariadení"},{label:"Volania do zahraničia"},{label:"Regulovaný roaming"}]},{id:"nase-sluzby",heading:"Ste náš zákazník?",items:[{label:"Predĺžiť služby"},{label:"Nový internet"},{label:"Nová televízia"},{label:"Odporučte Orange"}]}]]},{id:"telefony-zariadenia",label:"Telefóny a zariadenia",featured:{id:"odporucane-sluzby",heading:"Odporúčané služby",items:[{label:"iPhone 15",isLarge:!0},{label:"iPhone 15 Pro",isLarge:!0},{label:"Samsung Z Fold",isLarge:!0},{label:"Motorola",isLarge:!0},{label:"Oppo",isLarge:!0}]},columns:[[{id:"telefony",heading:"Telefóny",items:[{label:"Apple"},{label:"Samsung"},{label:"Huawei"},{label:"Honor"},{label:"Motorola"},{label:"Oppo"}]}],[{id:"tablety-a-notebooky",heading:"Tablety a notebooky",items:[{label:"Lenovo"},{label:"Samsung"},{label:"Honor"},{label:"Apple"},{label:"Asus"}]}],[{id:"sikovne-zariadenia",heading:"Šikovné zariadenia",items:[{label:"Smart hodinky"},{label:"Smart domácnosť"},{label:"Smart TV"},{label:"Herné konzoly"}]},{id:"orange-akcie",heading:"Orange akcie",items:[{label:"Samsung"},{label:"Výhodné ponuky"},{label:"Zľavy na telefóny"},{label:"Dopredaj zariadení"}]}]]}],Sm=["Dobitie kreditu","Nedostupnosť služieb","Faktúry","Zdieľanie dát","Prečerpané dáta","Elektronická faktúra","Prvá pomoc internet","Nastavenie zariadení a sim kariet","Pevny internet do domacnosti","Dátový roaming","Nákup online","Telemarketing"],Em=["apple","apple hodinky","apple iphone","apple 16","apple pro","apple watch"],Nm=e=>"blog"===e?{searchDropdownId:"megamenu-blog-search",searchInputDesktopId:"megamenu-blog-search-input",searchInputMobileId:"megamenu-blog-mobile-search-input",mobileMainPanelId:"megamenu-blog-mobile-main",mobileMainTitleId:"mobile-blog-menu-title",myOrangePanelId:"megamenu-blog-mobile-my-orange",myOrangeTitleId:"mobile-blog-my-orange-title"}:{searchDropdownId:"megamenu-search",searchInputDesktopId:"megamenu-search-input",searchInputMobileId:"megamenu-mobile-search-input",mobileMainPanelId:"megamenu-mobile-main",mobileMainTitleId:"mobile-menu-title",myOrangePanelId:"megamenu-mobile-my-orange",myOrangeTitleId:"mobile-my-orange-title"},Cm=({inputId:e,inputLabel:t,searchValue:n,hasSearchEmpty:i,hasSearchFilled:s,emptyStateLinkHref:r="#"})=>S.jsxs(S.Fragment,{children:[S.jsx("label",{htmlFor:e,className:"sr-only",children:t}),S.jsx("span",{className:C(um,pm,hm),children:S.jsx("input",{className:dm,id:e,type:"text",placeholder:"Hľadať",name:"search",defaultValue:n})}),i?S.jsxs(S.Fragment,{children:[S.jsx("p",{className:Dp,children:"Najhľadanejši výrazy"}),S.jsx("ul",{className:ym,children:Sm.map(e=>S.jsx("li",{children:S.jsx("a",{href:r,className:C(mm),children:e})},e))})]}):s?S.jsx("ul",{className:kp,children:Em.map(e=>S.jsx("li",{className:Tp,children:S.jsx("a",{href:"#",className:"no-underline",children:e})},e))}):null]}),km=()=>S.jsxs("svg",{viewBox:"0 0 40 40",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",children:[S.jsx("path",{d:"M40 0H0V40H40V0Z",fill:"#FF7900"}),S.jsx("path",{d:"M34.2897 28.57H5.71973V34.28H34.2897V28.57Z",fill:"white"})]}),Tm=()=>S.jsxs("svg",{width:"40",height:"67",viewBox:"0 0 40 67",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[S.jsxs("g",{clipPath:"url(#clip0_21208_2750)",children:[S.jsx("rect",{width:"40",height:"40",fill:"white"}),S.jsx("rect",{width:"40",height:"40",fill:"#FF7900"}),S.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M35.4467 29.1254H36.0214V28.8803H34.5679V29.1254H35.1425V30.7169H35.4467V29.1254ZM38.1126 30.7169H38.4154V28.8859H37.9521L37.4126 30.2803L36.8647 28.8859H36.3971V30.7169H36.7V29.1831H36.7084L37.3098 30.7169H37.5014L38.1028 29.1831H38.1126V30.7169Z",fill:"white"}),S.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M30.2988 33.7648C30.2988 35.5929 31.2763 36.645 32.9143 36.645C34.0566 36.645 34.9045 36.231 35.3763 35.445L34.3045 34.8507C33.9622 35.3324 33.5974 35.5549 33.0439 35.5549C32.1833 35.5549 31.7467 35.0239 31.7354 33.9718H35.4354C35.4354 33.9274 35.4382 33.8817 35.441 33.8352C35.4438 33.7873 35.4467 33.7387 35.4467 33.6901C35.4467 31.8831 34.496 30.8619 32.8904 30.8619C31.2847 30.8619 30.2988 31.9366 30.2988 33.7648ZM32.8904 31.8507C33.5876 31.8507 34.0101 32.2873 34.0101 33.031H31.7636C31.8186 32.2732 32.2312 31.8507 32.8904 31.8507Z",fill:"white"}),S.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M29.4168 36.2296V30.969L28.1858 30.9718L28.0715 31.6068C27.9579 31.3346 27.5372 30.8676 26.4689 30.8676C25.2872 30.869 24.2351 31.9085 24.2351 33.7662C24.2351 35.6451 25.2562 36.5437 26.5506 36.5437C27.3999 36.5437 27.7534 36.1493 27.9858 35.7352L28.0055 35.7549V36.4014C28.0055 37.2704 27.6379 37.6338 26.8788 37.6338C26.0605 37.6338 25.8943 37.3606 25.8337 37.0873L24.39 37.3197C24.5929 38.2747 25.6055 38.7042 26.6971 38.7042C29.3464 38.6873 29.4168 37.1592 29.4168 36.2296ZM28.0114 33.4775C28.0114 34.2155 27.9184 35.3437 26.8086 35.3521C25.7353 35.3592 25.6874 34.2254 25.6874 33.538C25.6874 32.2859 26.2734 31.9028 26.7987 31.9028C27.5889 31.9028 28.0114 32.6099 28.0114 33.4775Z",fill:"white"}),S.jsx("path",{d:"M18.2454 31.1366L19.4552 30.969L19.5876 31.6281C20.2707 31.1281 20.813 30.8619 21.4961 30.8619C22.6397 30.8619 23.2285 31.469 23.2285 32.6704V36.5394H21.7679V32.9253C21.7679 32.245 21.5904 31.9394 21.0637 31.9394C20.6271 31.9394 20.1918 32.1408 19.6961 32.5563V36.5422H18.2454V31.1366Z",fill:"white"}),S.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M13.8309 36.6085C14.4826 36.6109 15.1202 36.4186 15.6619 36.0563L15.7957 36.5451H17.0915V32.5169C17.0915 31.4958 16.2859 30.869 14.838 30.869C13.7769 30.8681 12.9873 31.2296 12.469 31.9535L13.4549 32.5169C13.7788 32.1009 14.2814 31.864 14.8084 31.8789C15.3746 31.8789 15.6816 32.1127 15.6816 32.5169V32.8254C13.3253 33.0916 12.1816 33.7507 12.1816 34.9944C12.1816 35.9183 12.7943 36.6085 13.8309 36.6085ZM14.2719 35.6099C13.8484 35.6099 13.6133 35.2614 13.6127 34.8887C13.6137 34.2319 14.2616 33.8816 15.6268 33.7085V35.024C15.1789 35.4183 14.7324 35.6099 14.2719 35.6099ZM13.6127 34.8887C13.6127 34.8882 13.6127 34.8878 13.6127 34.8873V34.8901C13.6127 34.8897 13.6127 34.8892 13.6127 34.8887Z",fill:"white"}),S.jsx("path",{d:"M8.66626 30.9859H10.0564V31.6394C10.4387 31.1829 10.9929 30.905 11.5874 30.8718C11.6505 30.8702 11.7136 30.8735 11.7761 30.8817V32.2535H11.7057C11.0691 32.2535 10.3733 32.3521 10.1564 32.8465V36.5422H8.66626V30.9859Z",fill:"white"}),S.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2.16504 33.7733C2.16504 35.7845 3.46786 36.7057 4.91433 36.7057C6.35941 36.7057 7.66363 35.7873 7.66363 33.7775C7.66363 31.7676 6.36081 30.8451 4.91433 30.8451C3.46786 30.8451 2.16504 31.762 2.16504 33.7733ZM3.61982 33.7676C3.61982 33.0634 3.82263 32.0775 4.91418 32.0775C6.00573 32.0775 6.20855 33.0564 6.20855 33.7676C6.20855 34.4789 6.00573 35.4648 4.91418 35.4648C3.82263 35.4648 3.61982 34.4719 3.61982 33.7676Z",fill:"white"})]}),S.jsx("path",{d:"M5.17993 48.9411V58.7468C5.17993 59.2294 5.12534 59.648 5.01587 60.0016C4.91751 60.3582 4.73923 60.6555 4.47974 60.8903C4.23215 61.1371 3.89396 61.3132 3.46899 61.4225C3.04305 61.5441 2.50403 61.6052 1.85376 61.6052C1.55135 61.6051 1.27816 61.5807 1.03442 61.5319L0.994385 61.5241V59.3054L1.06079 59.3298C1.18497 59.3749 1.35889 59.3991 1.58423 59.3991C1.84115 59.3991 2.06033 59.3467 2.24341 59.2438L2.24731 59.2419C2.42503 59.1581 2.52466 58.961 2.52466 58.6208V48.9411H5.17993ZM11.8215 48.6891C12.6201 48.6892 13.3188 48.8463 13.9153 49.1628H13.9143C14.5087 49.4661 14.9946 49.8788 15.3713 50.4011C15.7594 50.9225 16.0387 51.5165 16.2083 52.1823C16.3776 52.8477 16.4372 53.5433 16.3889 54.2682L16.386 54.3151H9.67896C9.72114 55.1097 9.92735 55.6774 10.2903 56.029C10.6621 56.3892 11.1998 56.5729 11.9114 56.5729C12.4184 56.5729 12.8518 56.4489 13.2141 56.2038C13.5814 55.9431 13.7996 55.6758 13.8792 55.403L13.8899 55.3669H16.2463L16.2249 55.4323C15.8625 56.5556 15.3054 57.3652 14.5491 57.8532C13.7956 58.3393 12.8853 58.5807 11.8215 58.5807C11.0844 58.5807 10.418 58.4665 9.82349 58.236L9.82251 58.235C9.22844 57.9925 8.72398 57.653 8.31079 57.2155C7.89803 56.7784 7.57705 56.2565 7.34692 55.6511V55.6501C7.12873 55.044 7.01978 54.378 7.01978 53.653C7.01978 52.9515 7.13417 52.2972 7.3645 51.6911C7.59477 51.0852 7.92285 50.5629 8.3479 50.1257C8.77246 49.6771 9.27609 49.3254 9.85767 49.071C10.4525 48.816 11.1075 48.6891 11.8215 48.6891ZM32.8323 48.9411V54.2468C32.8323 55.0107 32.9514 55.5757 33.1838 55.9479L33.2776 56.072C33.516 56.3432 33.8932 56.4831 34.4202 56.4831C35.1064 56.4831 35.5924 56.2819 35.8918 55.8903C36.1938 55.4835 36.3499 54.8133 36.3499 53.8688V48.9411H39.0061V58.3474H36.4758V57.0866C36.1525 57.6029 35.739 57.981 35.2327 58.2165C34.7106 58.4592 34.1756 58.5807 33.6282 58.5807C33.0262 58.5807 32.5135 58.5119 32.092 58.3718L31.9172 58.3073C31.4784 58.1245 31.1284 57.8675 30.8704 57.5358V57.5349C30.6136 57.1925 30.4309 56.784 30.3215 56.3102L30.3206 56.3093C30.2238 55.8255 30.176 55.2933 30.176 54.7145V48.9411H32.8323ZM27.1672 46.1511V48.9411H29.0393V50.7507H27.1672V55.3093C27.1673 55.5226 27.1854 55.698 27.22 55.8366C27.2547 55.9753 27.3053 56.0741 27.3684 56.1374C27.4317 56.2007 27.5304 56.2521 27.6692 56.2868C27.8079 56.3215 27.9839 56.3386 28.1975 56.3386C28.34 56.3386 28.4764 56.3328 28.6067 56.321C28.7371 56.3091 28.8616 56.2919 28.9797 56.2682L29.0393 56.2556V58.3395L28.9973 58.3464C28.7791 58.3827 28.5372 58.4066 28.2717 58.4186C28.007 58.4307 27.7482 58.4372 27.4954 58.4372C27.0969 58.4372 26.7157 58.4069 26.3528 58.3464V58.3454C26 58.2965 25.6822 58.194 25.4006 58.0349L25.3997 58.0339C25.1276 57.873 24.9112 57.6445 24.7512 57.3493C24.5899 57.0515 24.511 56.664 24.511 56.1911V50.7507H22.9631V48.9411H24.511V46.1511H27.1672ZM11.7493 50.7145C11.3972 50.7146 11.098 50.7697 10.8499 50.8766L10.7463 50.9255C10.4885 51.0544 10.2774 51.2174 10.1145 51.4147C9.96176 51.6145 9.85162 51.8264 9.78149 52.0485L9.78052 52.0475C9.72728 52.2502 9.69466 52.4329 9.67993 52.5954H13.7219C13.601 51.9822 13.3928 51.5194 13.0989 51.2028L13.0979 51.2018C12.8106 50.8803 12.3645 50.7145 11.7493 50.7145ZM5.17993 45.3952V47.6013H2.52466V45.3952H5.17993Z",fill:"var(--color-text-default)",stroke:"var(--color-text-default)",strokeWidth:"0.1"}),S.jsx("defs",{children:S.jsx("clipPath",{id:"clip0_21208_2750",children:S.jsx("rect",{width:"40",height:"40",fill:"white"})})})]}),jm=()=>S.jsxs("span",{"data-megamenu-brand-mark":!0,children:[S.jsx("span",{"data-megamenu-logo-full":!0,"aria-hidden":"true",children:S.jsx(Tm,{})}),S.jsx("span",{"data-megamenu-logo-compact":!0,"aria-hidden":"true",children:S.jsx(km,{})})]}),Am=(e,t)=>{const n=Boolean(e),i=Boolean(t);return{hasSearchEmpty:n,hasSearchFilled:i,showSearchState:n||i,searchValue:n?"":i?"apple":""}},Om=({compactLogoOnly:e=!1,href:t="/",title:n,children:i})=>S.jsxs("a",{href:t,className:wp,"aria-label":`${n} - Domovská stránka`,children:[e?S.jsx(km,{}):S.jsx(jm,{}),i]}),Lm=({dropdownId:e,inputId:t,inputLabel:n,searchValue:i,hasSearchEmpty:s,hasSearchFilled:r,emptyStateLinkHref:a})=>S.jsx("div",{className:C(Cp,"is-spaced"),id:e,children:S.jsx("div",{className:Zh,children:S.jsx(Cm,{inputId:t,inputLabel:n,searchValue:i,hasSearchEmpty:s,hasSearchFilled:r,emptyStateLinkHref:a})})}),Dm=({ariaLabel:e,target:t})=>S.jsx("button",{type:"button","data-megamenu-close-button":!0,"data-megamenu-mobile-target":t,className:Sp,"aria-label":e,children:S.jsx(Gh,{name:"close",width:20,height:20,"aria-hidden":"true"})}),Mm=({titleId:e,panelId:t,target:n,title:i,overlayAriaLabel:s,children:r})=>S.jsxs("div",{className:Ip,"data-megamenu-mobile-panel":n,id:t,role:"dialog","aria-modal":"true","aria-labelledby":e,"aria-hidden":"true",children:[S.jsx("span",{id:e,className:"sr-only",children:i}),S.jsx("button",{"aria-label":s,className:Rp,type:"button","data-megamenu-close-button":!0,"data-megamenu-mobile-target":n}),S.jsx("div",{className:zp,children:r})]}),$m=({titleId:e,panelId:t,isB2B:n=!1})=>S.jsxs(Mm,{titleId:e,panelId:t,target:"my-orange",title:"Môj Orange",overlayAriaLabel:"Zatvoriť panel Môj Orange",children:[S.jsx("div",{className:Fp,children:S.jsx("div",{className:Zh,children:S.jsxs("ul",{className:C(rp,op),children:[S.jsx("li",{className:bp,"aria-hidden":"true"}),S.jsx("li",{className:cp,children:S.jsx(Dm,{ariaLabel:"Zatvoriť panel Môj Orange",target:"my-orange"})})]})})}),S.jsxs("div",{className:Hp,children:[S.jsx("div",{className:Zh,children:S.jsxs("div",{className:Vp,children:[S.jsx("div",{className:qp,"aria-hidden":"true",children:S.jsx(Gh,{name:"user",width:72,height:72})}),S.jsx("p",{className:Wp,children:"0905 123 456"}),S.jsx("a",{href:"#",className:Up,children:"Odhlásiť"}),S.jsx("a",{href:"#",className:Gp,children:"Orange Business"}),n?S.jsx("a",{href:"#",className:C(Gp,Yp),children:"My Orange"}):null]})}),S.jsx("div",{className:Zh,children:S.jsx("nav",{"aria-label":"Môj Orange rýchle akcie",children:S.jsxs("ul",{className:C(kp,Xp),children:[S.jsx("li",{className:Tp,children:S.jsx("a",{href:"#",className:Kp,children:"Zaplatiť faktúru"})}),S.jsx("li",{className:Tp,children:S.jsx("a",{href:"#",className:Kp,children:"Pozrieť spotrebu"})}),S.jsx("li",{className:Tp,children:S.jsx("a",{href:"#",className:Kp,children:"Aktivovať služby"})}),S.jsx("li",{className:Tp,children:S.jsx("a",{href:"#",className:Kp,children:"Dobiť kredit"})})]})})}),S.jsx("div",{className:Zh,children:S.jsxs("div",{className:C(Zp),children:[S.jsxs("div",{className:Jp,children:[S.jsxs("h2",{className:Qp,children:["Stiahnite si aplikáciu",S.jsx("br",{}),"Môj Orange"]}),S.jsxs("div",{className:em,children:[S.jsx("a",{href:"#",className:tm,"aria-label":"Stiahnuť aplikáciu z App Store",children:S.jsx("img",{src:n?"/apple--white.svg":"/apple.svg",alt:""})}),S.jsx("a",{href:"#",className:tm,"aria-label":"Stiahnuť aplikáciu z Google Play",children:S.jsx("img",{src:n?"/play--white.svg":"/play.svg",alt:""})}),S.jsx("a",{href:"#",className:tm,"aria-label":"Stiahnuť aplikáciu z Huawei AppGallery",children:S.jsx("img",{src:n?"/huawei--white.svg":"/huawei.svg",alt:""})})]})]}),S.jsx("img",{className:nm,src:"/images/phones.png",alt:""})]})})]})]}),Pm=e=>S.jsx(S.Fragment,{children:e.map(e=>S.jsxs("li",{className:Tp,children:[S.jsx("a",{href:e.href??"/",className:e.isLarge?Lp:void 0,children:e.label}),e.tag?S.jsx("span",{className:C(mm,fm,gm),children:e.tag}):null]},e.label))}),Im=e=>S.jsx("div",{className:ep,"aria-label":"Rýchly prístup",children:e.map((e,t)=>{const n=e.isActive??0===t;return S.jsx("a",{className:C(tp,{"is-active":n}),href:e.href??"/",children:S.jsxs("div",{className:np,children:[S.jsx(Gh,{name:e.icon,width:32,height:32,"aria-hidden":"true"}),S.jsxs("span",{className:ip,children:[S.jsx("strong",{className:sp,children:e.label}),e.tag?S.jsx("span",{className:C(mm,fm,gm),children:e.tag}):null]})]})},e.label)})}),Rm=(t,n,i,s=!1,r=xm,a=!1)=>{const o=`${n}-${t.id}-${t.featured.id}`;return S.jsxs(S.Fragment,{children:[S.jsxs("div",{className:Jh,children:[a?Im(r):null,S.jsxs("div",{className:C(Qh,"is-highlighted"),children:[S.jsx("h3",{id:o,className:"sr-only",children:t.featured.heading}),S.jsx("ul",{className:kp,role:"group","aria-labelledby":o,children:Pm(t.featured.items)})]}),s?S.jsx("div",{className:Qh,children:t.columns.flat().map(s=>{const r=`${n}-${t.id}-${s.id}-heading`;return S.jsxs(e.Fragment,{children:[S.jsx("p",{id:r,className:i,children:s.heading}),S.jsx("ul",{className:kp,role:"group","aria-labelledby":r,children:Pm(s.items)})]},s.id)})}):t.columns.map((s,r)=>S.jsx("div",{className:Qh,children:s.map(s=>{const r=`${n}-${t.id}-${s.id}-heading`;return S.jsxs(e.Fragment,{children:[S.jsx("p",{id:r,className:i,children:s.heading}),S.jsx("ul",{className:kp,role:"group","aria-labelledby":r,children:Pm(s.items)})]},s.id)})},`${t.id}-${r}`))]}),a?null:Im(r)]})},zm=({className:e,title:t="Človek",notSticky:n=!1,searchEmpty:i,searchFilled:s,compactLogoOnly:r=!1,isB2B:a=!1,cartItems:o,tiles:l=xm})=>{const c=Nm("main"),{hasSearchEmpty:d,hasSearchFilled:u,showSearchState:h,searchValue:p}=Am(i,s),m=void 0!==o;return S.jsxs("header",{children:[S.jsxs("nav",{className:C(Yh,e,{"non-sticky":n}),"data-megamenu":!0,"aria-label":"Main navigation",children:[S.jsx("div",{className:C(Xh,Mp),"data-hide-when-sticky":"true",children:S.jsx("div",{className:Zh,children:S.jsxs("ul",{className:C(rp,op),"aria-label":"Top menu",children:[S.jsx("li",{className:cp,children:S.jsx("a",{href:"/",className:C(hp,"is-active"),"aria-current":"page",children:"Pre vás"})}),S.jsx("li",{className:cp,children:S.jsx("a",{href:"/",className:hp,children:"Podnikatelia a malé firmy"})}),S.jsx("li",{className:cp,children:S.jsx("a",{href:"/",className:hp,children:"Velké firmy"})}),S.jsx("li",{className:bp,"aria-hidden":"true"}),S.jsx("li",{className:C(cp,dp),children:S.jsxs("a",{href:"/",className:hp,children:[S.jsx(Gh,{name:"call",width:20,height:20,className:yp,"aria-hidden":"true"}),"Kontakt"]})}),S.jsx("li",{className:cp,children:S.jsx("a",{href:"/",className:C(hp,"is-active"),children:"SK"})}),S.jsx("li",{className:cp,children:S.jsx("a",{href:"/",className:hp,children:"EN"})})]})})}),S.jsx("div",{className:Kh,children:S.jsx("div",{className:Zh,children:S.jsxs("ul",{className:rp,"aria-label":"Hlavné menu",children:[S.jsx("li",{className:C(cp,up),children:S.jsx(Om,{compactLogoOnly:r,title:t})}),wm.map(e=>S.jsxs("li",{className:C(cp,up,Mp),children:[S.jsx("button",{type:"button",className:C(Sp,Ep),"aria-controls":`megamenu-${e.id}`,"aria-expanded":"false","aria-haspopup":"true",children:e.label}),S.jsx("div",{className:Cp,id:`megamenu-${e.id}`,children:S.jsx("div",{className:Zh,children:Rm(e,"megamenu",Dp,!1,l)})})]},e.id)),S.jsx("li",{className:C(cp,up,Mp),children:S.jsx("a",{href:"/",className:C(hp),children:"Akcie"})}),S.jsx("li",{className:C(cp,up,Mp),children:S.jsx("a",{href:"/",className:C(hp),children:"Pomoc"})}),S.jsx("li",{className:C(cp,up,Mp),children:S.jsxs("a",{href:"/",className:fp,children:[S.jsx(Gh,{width:16,height:16,name:"rewards",className:xp,"aria-hidden":"true"}),"Prejdite k nám"]})}),S.jsx("li",{className:C(bp,$p),"aria-hidden":"true"}),S.jsxs("li",{className:C(cp,Mp),children:[S.jsx("button",{type:"button",className:Sp,"aria-label":"Vyhľadávanie","aria-controls":c.searchDropdownId,"aria-expanded":"false","aria-haspopup":"true",children:S.jsx(Gh,{width:24,height:24,name:"search","aria-hidden":"true"})}),S.jsx(Lm,{dropdownId:c.searchDropdownId,inputId:c.searchInputDesktopId,inputLabel:"Vyhľadávanie v hlavnom menu",searchValue:p,hasSearchEmpty:d,hasSearchFilled:u,emptyStateLinkHref:"/"})]}),S.jsx("li",{className:C(cp),children:S.jsxs("a",{href:"/",className:C(hp),"aria-label":m?`Košík, ${o} položka`:"Košík",children:[m?S.jsx("span",{className:vp,"data-items-in-cart":o,"aria-hidden":"true",children:S.jsx(Gh,{width:24,height:24,name:"buy","aria-hidden":"true"})}):S.jsx("span",{className:vp,"aria-hidden":"true",children:S.jsx(Gh,{width:24,height:24,name:"buy","aria-hidden":"true"})}),m?S.jsxs("span",{className:"sr-only",children:[o," položka v košíku"]}):null]})}),S.jsx("li",{className:cp,children:S.jsxs("button",{type:"button",className:Sp,"data-megamenu-mobile-toggle":!0,"data-megamenu-mobile-target":"my-orange","aria-haspopup":"dialog","aria-expanded":"false",children:[S.jsx(Gh,{width:24,height:24,name:"user",className:yp,"aria-hidden":"true"}),"Môj Orange"]})}),S.jsx("li",{className:C(cp,Pp),children:S.jsx("button",{type:"button",className:Sp,"aria-label":"Otvoriť menu","data-megamenu-mobile-toggle":!0,"data-megamenu-mobile-target":"main","aria-haspopup":"dialog","aria-expanded":"false",children:S.jsx(Gh,{width:24,height:24,name:"menu","aria-hidden":"true"})})})]})})}),S.jsxs(Mm,{panelId:c.mobileMainPanelId,titleId:c.mobileMainTitleId,target:"main",title:"Hlavné menu",overlayAriaLabel:"Zatvoriť menu",children:[S.jsx("div",{className:Fp,children:S.jsx("div",{className:Zh,children:S.jsxs("ul",{className:C(rp,op),children:[S.jsx("li",{className:cp,children:S.jsx("div",{className:C(Sp,Ep,Np),children:S.jsxs("select",{className:gp,defaultValue:"/","aria-label":"Vyberte typ zákazníka",children:[S.jsx("option",{value:"/",children:"Pre vás"}),S.jsx("option",{value:"/",children:"Podnikatelia a malé firmy"}),S.jsx("option",{value:"/",children:"Velké firmy"})]})})}),S.jsx("li",{className:bp,"aria-hidden":"true"}),S.jsx("li",{className:cp,children:S.jsx(Dm,{ariaLabel:"Zatvoriť menu",target:"main"})})]})})}),S.jsxs("div",{className:Hp,children:[S.jsx("div",{className:Zh,children:S.jsx(Cm,{inputId:c.searchInputMobileId,inputLabel:"Vyhľadávanie v mobilnom menu",searchValue:p,hasSearchEmpty:d,hasSearchFilled:u})}),S.jsx("div",{className:Zh,children:h?null:S.jsx(S.Fragment,{children:S.jsxs("ul",{className:im,children:[wm.map(e=>{const t=`mobile-accordion-${e.id}`,n=`mobile-${e.id}-button`;return S.jsxs("li",{className:sm,children:[S.jsx("div",{className:rm,children:S.jsxs("button",{type:"button",className:am,"aria-controls":t,"aria-expanded":"false","data-accordion-toggle":!0,id:n,children:[S.jsx("span",{className:om,children:e.label}),S.jsx(Gh,{name:"chevron-right",width:24,height:24,className:lm,"aria-hidden":"true"})]})}),S.jsx("div",{className:cm,id:t,role:"region","aria-labelledby":n,children:Rm(e,"mobile",Dp,!0,l,!0)})]},e.id)}),S.jsx("li",{className:sm,children:S.jsx("div",{className:rm,children:S.jsx("a",{href:"/",className:am,children:S.jsx("span",{className:om,children:"Akcie"})})})}),S.jsx("li",{className:sm,children:S.jsx("div",{className:rm,children:S.jsx("a",{href:"/",className:am,children:S.jsx("span",{className:om,children:"Pomoc"})})})})]})})}),h?null:S.jsxs(S.Fragment,{children:[S.jsx("div",{className:Zh,children:S.jsx("div",{className:Bp,children:S.jsxs("a",{href:"/",className:fp,children:[S.jsx(Gh,{width:16,height:16,name:"rewards",className:xp,"aria-hidden":"true"}),"Prejdite k nám"]})})}),S.jsxs("div",{className:Zh,children:[S.jsx("h3",{id:"mobile-quick-access-heading",className:"sr-only",children:"Rýchly prístup"}),S.jsxs("ul",{className:C(rp,ap),role:"group","aria-labelledby":"mobile-quick-access-heading",children:[S.jsx("li",{className:cp,children:S.jsxs("button",{type:"button",className:Sp,"data-megamenu-mobile-toggle":!0,"data-megamenu-mobile-target":"my-orange","aria-haspopup":"dialog","aria-expanded":"false",children:[S.jsx(Gh,{width:24,height:24,name:"user",className:yp,"aria-hidden":"true"}),"Môj Orange"]})}),S.jsx("li",{className:cp,children:S.jsxs("a",{href:"/",className:Sp,children:[S.jsx(Gh,{width:24,height:24,name:"call",className:yp,"aria-hidden":"true"}),"Kontakt"]})}),S.jsx("li",{className:cp,children:S.jsxs("a",{href:"/",className:Sp,children:[S.jsx(Gh,{width:24,height:24,name:"advertising",className:yp,"aria-hidden":"true"}),"Akcie"]})}),S.jsx("li",{className:cp,children:S.jsxs("a",{href:"/",className:Sp,children:[S.jsx(Gh,{width:24,height:24,name:"newspaper",className:yp,"aria-hidden":"true"}),"Pomoc"]})})]})]}),S.jsx("div",{className:Zh,children:S.jsxs("ul",{className:C(rp,op,lp),"aria-label":"Výber jazyka",children:[S.jsx("li",{className:cp,children:S.jsx("a",{href:"/",className:C(hp,pp,"is-active"),children:"SK"})}),S.jsx("li",{className:cp,children:S.jsx("a",{href:"/",className:C(hp,pp),children:"EN"})})]})})]})]})]}),S.jsx($m,{panelId:c.myOrangePanelId,titleId:c.myOrangeTitleId,isB2B:a}),S.jsx("button",{"aria-label":"Zatvoriť dropdown menu",className:jp,type:"button"})]}),S.jsx("div",{className:Ap,"aria-hidden":"true"})]})},Fm=["Kategória 1","Kategória 2","Kategória 3","Kategória 4","Kategória 5"],Hm=({className:e,title:t="Človek",notSticky:n=!1,searchEmpty:i,searchFilled:s,compactLogoOnly:r=!1,isB2B:a=!1})=>{const o=Nm("blog"),{hasSearchEmpty:l,hasSearchFilled:c,showSearchState:d,searchValue:u}=Am(i,s);return S.jsxs("header",{children:[S.jsxs("nav",{className:C(Yh,e,{"non-sticky":n}),"data-megamenu":!0,"aria-label":"Main navigation",children:[S.jsx("div",{className:Kh,children:S.jsx("div",{className:Zh,children:S.jsxs("ul",{className:rp,"aria-label":"Hlavné menu",children:[S.jsx("li",{className:C(cp,up),children:S.jsx(Om,{compactLogoOnly:r,title:t,children:S.jsx("span",{children:t})})}),S.jsx("li",{className:C(cp,up,Mp),children:S.jsx("a",{href:"/",className:C(hp,mp),children:"Naspať na Orange"})}),S.jsx("li",{className:bp,"aria-hidden":"true"}),S.jsxs("li",{className:C(cp,Mp),children:[S.jsx("button",{type:"button",className:Sp,"aria-label":"Vyhľadávanie","aria-controls":o.searchDropdownId,"aria-expanded":"false","aria-haspopup":"true",children:S.jsx(Gh,{width:24,height:24,name:"search","aria-hidden":"true"})}),S.jsx(Lm,{dropdownId:o.searchDropdownId,inputId:o.searchInputDesktopId,inputLabel:"Vyhľadávanie v blog menu",searchValue:u,hasSearchEmpty:l,hasSearchFilled:c})]}),S.jsx("li",{className:cp,children:S.jsxs("button",{type:"button",className:Sp,"data-megamenu-mobile-toggle":!0,"data-megamenu-mobile-target":"my-orange","aria-haspopup":"dialog","aria-expanded":"false","aria-label":"Môj Orange",children:[S.jsx(Gh,{width:24,height:24,name:"user",className:C(yp,_p),"aria-hidden":"true"}),S.jsx("span",{className:Mp,children:"Môj Orange"})]})}),S.jsxs("li",{className:C(cp,Mp),children:[S.jsxs("button",{type:"button",className:C(Sp,"megamenu__nav-button--toggle"),"aria-label":"Kategórie","aria-controls":"megamenu-blog-categories","aria-expanded":"false","aria-haspopup":"true",children:[S.jsx("span",{className:"megamenu__nav-button-icon-open",children:S.jsx(Gh,{width:24,height:24,name:"menu","aria-hidden":"true"})}),S.jsx("span",{className:"megamenu__nav-button-icon-close",children:S.jsx(Gh,{width:24,height:24,name:"close","aria-hidden":"true"})})]}),S.jsx("div",{className:C(Cp,"is-spaced"),id:"megamenu-blog-categories",children:S.jsxs("div",{className:Zh,children:[S.jsx("p",{className:Dp,children:"Kategórie"}),S.jsx("ul",{className:ym,children:Fm.map(e=>S.jsx("li",{children:S.jsx("a",{href:"/",className:C(mm,vm,bm),children:e})},e))})]})})]}),S.jsx("li",{className:C(cp,Pp),children:S.jsx("button",{type:"button",className:Sp,"aria-label":"Otvoriť menu","data-megamenu-mobile-toggle":!0,"data-megamenu-mobile-target":"main","aria-haspopup":"dialog","aria-expanded":"false",children:S.jsx(Gh,{width:24,height:24,name:"menu","aria-hidden":"true"})})})]})})}),S.jsxs(Mm,{panelId:o.mobileMainPanelId,titleId:o.mobileMainTitleId,target:"main",title:"Hlavné menu",overlayAriaLabel:"Zatvoriť menu",children:[S.jsx("div",{className:Fp,children:S.jsx("div",{className:Zh,children:S.jsxs("ul",{className:C(rp,op),children:[S.jsx("li",{className:cp,children:S.jsx(Om,{compactLogoOnly:r,title:t,children:S.jsx("span",{children:t})})}),S.jsx("li",{className:bp,"aria-hidden":"true"}),S.jsx("li",{className:cp,children:S.jsx(Dm,{ariaLabel:"Zatvoriť menu",target:"main"})})]})})}),S.jsx("div",{className:Hp,children:S.jsxs("div",{className:Zh,children:[S.jsx(Cm,{inputId:o.searchInputMobileId,inputLabel:"Vyhľadávanie v mobilnom blog menu",searchValue:u,hasSearchEmpty:l,hasSearchFilled:c}),d?null:S.jsxs(S.Fragment,{children:[S.jsx("p",{className:Dp,children:"Kategórie"}),S.jsx("ul",{className:C(kp,_m),children:Fm.map(e=>S.jsx("li",{children:S.jsx("a",{href:"/",className:C(mm,vm,bm),children:e})},e))}),S.jsx("hr",{className:"mt-none"}),S.jsx("ul",{className:C(rp,ap),children:S.jsx("li",{className:cp,children:S.jsx("a",{href:"/",className:Sp,children:"Naspať na Orange"})})})]})]})})]}),S.jsx($m,{panelId:o.myOrangePanelId,titleId:o.myOrangeTitleId,isB2B:a}),S.jsx("button",{"aria-label":"Zatvoriť dropdown menu",className:jp,type:"button"})]}),S.jsx("div",{className:Op,"aria-hidden":"true"})]})},Bm=":not([inert]):not([inert] *)",Vm=':not([tabindex^="-"])',qm=":not(:disabled)";var Wm=[`a[href]${Bm}${Vm}`,`area[href]${Bm}${Vm}`,`input:not([type="hidden"]):not([type="radio"])${Bm}${Vm}${qm}`,`input[type="radio"]${Bm}${Vm}${qm}`,`select${Bm}${Vm}${qm}`,`textarea${Bm}${Vm}${qm}`,`button${Bm}${Vm}${qm}`,`details${Bm} > summary:first-of-type${Vm}`,`iframe${Bm}${Vm}`,`audio[controls]${Bm}${Vm}`,`video[controls]${Bm}${Vm}`,`[contenteditable]${Bm}${Vm}`,`[tabindex]${Bm}${Vm}`];function Um(e){(e.querySelector("[autofocus]")||e).focus()}function Gm(e,t){if(t&&Km(e))return e;if(function(e){return!(e.shadowRoot&&"-1"===e.getAttribute("tabindex")||e.matches(":disabled,[hidden],[inert]"))}(e))if(e.shadowRoot){let n=Ym(e.shadowRoot,t);for(;n;){const e=Gm(n,t);if(e)return e;n=Xm(n,t)}}else if("slot"===e.localName){const n=e.assignedElements({flatten:!0});t||n.reverse();for(const e of n){const n=Gm(e,t);if(n)return n}}else{let n=Ym(e,t);for(;n;){const e=Gm(n,t);if(e)return e;n=Xm(n,t)}}return!t&&Km(e)?e:null}function Ym(e,t){return t?e.firstElementChild:e.lastElementChild}function Xm(e,t){return t?e.nextElementSibling:e.previousElementSibling}const Km=e=>!e.shadowRoot?.delegatesFocus&&e.matches(Wm.join(","))&&!(e=>!(!e.matches("details:not([open]) *")||e.matches("details>summary:first-of-type"))||!(e.offsetWidth||e.offsetHeight||e.getClientRects().length))(e);function Zm(e=document){const t=e.activeElement;return t?t.shadowRoot?Zm(t.shadowRoot)||document.activeElement:t:null}function Jm(e,t){return function t(n){if(!n||n===document||n===window)return null;const i=Qm(n);return i&&(n=i),n.closest(e)||t(n.getRootNode().host)}(t)}function Qm(e){return e.assignedSlot||(e.parentNode?Qm(e.parentNode):null)}const ef="data-a11y-dialog";class tf{$el;id;previouslyFocused;shown;constructor(e){this.$el=e,this.id=this.$el.getAttribute(ef)||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=Zm(),"BODY"===this.previouslyFocused?.tagName&&e?.target&&(this.previouslyFocused=e.target),"focus"===e?.type?this.maintainFocus():Um(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=Jm(`[${ef}-show="${this.id}"]`,t),i=Jm(`[${ef}-hide="${this.id}"]`,t),s=Jm(`[${ef}-hide]`,t)&&Jm('[aria-modal="true"]',t)===this.$el;n&&this.show(e),(i||s)&&this.hide(e)}bindKeypress(e){if(Jm('[aria-modal="true"]',Zm())!==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=Gm(e,!0);return[t,t?Gm(e,!1)||t:null]}(e);if(!n)return t.preventDefault();const s=Zm();t.shiftKey&&s===n?(i.focus(),t.preventDefault()):t.shiftKey||s!==i||(n.focus(),t.preventDefault())}(this.$el,e)}maintainFocus(){const e=Zm();Jm(`[aria-modal="true"], [${ef}-ignore-focus-trap]`,e)||Um(this.$el)}}function nf(){for(const e of document.querySelectorAll("[data-a11y-dialog]"))new tf(e)}"undefined"!=typeof document&&("loading"===document.readyState?document.addEventListener("DOMContentLoaded",nf):nf());var sf=["input:not([inert]):not([inert] *)","select:not([inert]):not([inert] *)","textarea:not([inert]):not([inert] *)","a[href]:not([inert]):not([inert] *)","area[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(","),rf="undefined"==typeof Element,af=rf?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,of=!rf&&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},lf=function(e){return"INPUT"===e.tagName},cf=function(e){var t=e.getBoundingClientRect(),n=t.width,i=t.height;return 0===n&&0===i},df=function(e,t){return!(t.disabled||function(e){return lf(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});var s=getComputedStyle(e).visibility;if("hidden"===s||"collapse"===s)return!0;var r=af.call(e,"details>summary:first-of-type")?e.parentElement:e;if(af.call(r,"details:not([open]) *"))return!0;if(n&&"full"!==n&&"full-native"!==n&&"legacy-full"!==n){if("non-zero-area"===n)return cf(e)}else{if("function"==typeof i){for(var a=e;e;){var o=e.parentElement,l=of(e);if(o&&!o.shadowRoot&&!0===i(o))return cf(e);e=e.assignedSlot?e.assignedSlot:o||l===e.ownerDocument?o:l.host}e=a}if(function(e){var t,n,i,s,r=e&&of(e),a=null===(t=r)||void 0===t?void 0:t.host,o=!1;if(r&&r!==e)for(o=!!(null!==(n=a)&&void 0!==n&&null!==(i=n.ownerDocument)&&void 0!==i&&i.contains(a)||null!=e&&null!==(s=e.ownerDocument)&&void 0!==s&&s.contains(e));!o&&a;){var l,c,d;o=!(null===(c=a=null===(l=r=of(a))||void 0===l?void 0:l.host)||void 0===c||null===(d=c.ownerDocument)||void 0===d||!d.contains(a))}return o}(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!!af.call(t,"fieldset[disabled] *")||!i.contains(e)}return!0}t=t.parentElement}return!1}(t))},uf=function(e,t){if(t=t||{},!e)throw new Error("No node provided");return!1!==af.call(e,sf)&&function(e,t){return!(function(e){return function(e){return lf(e)&&"radio"===e.type}(e)&&!function(e){if(!e.name)return!0;var t,n=e.form||of(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 s=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!s||s===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||!df(e,t))}(t,e)};const hf="--ods-modal-scrollbar-width",pf="data-lock-scrolltop";let mf=class e{constructor(t,n){return this.element=t,this.config={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}static getInstance(e){return e&&e.ODS_Modal||null}handleShow(t){e.lockBody(),t&&t.classList.add(this.config.classModalIsOpen);const n=t.querySelector("[data-a11y-dialog-initial-focus]");n&&(uf(n)||n.setAttribute("tabindex","-1"),n.focus())}handleHide(t){e.unlockBody(),t&&t.classList.remove(this.config.classModalIsOpen)}show(){this.instance.show()}hide(){this.instance.hide()}headerFirstItemSpacing(){const e=this.element.querySelector(".modal__header");if(e){const t=e.classList.contains("modal__header--no-spacing"),n=Array.from(e.children).find(e=>!e.classList.contains("btn"));n&&!t&&(n.style.marginRight="40px")}}init(){this.config.modalsRoot&&!this.config.disablePortal&&e.moveToModalRoot(this.element,document.querySelector(this.config.modalsRoot)),this.instance=new tf(this.element),this.instance.on("show",e=>{const t=e.currentTarget;this.handleShow(t)}),this.instance.on("hide",e=>{const t=e.currentTarget;this.handleHide(t)}),this.headerFirstItemSpacing()}destroy(){if(this.instance){this.instance.hide();const 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}update(){this.destroy(),this.init()}static moveToModalRoot(e,t){t&&t.appendChild(e)}static resolveBodyLockClassName(e,t){const n=t;return e||n?.config?.classModalIsOpenBody||"has-modal"}static lockBody(t,n){if(e.isLocked)return;const i=e.resolveBodyLockClassName(t,this),s=window.scrollY;document.body.setAttribute(pf,s.toString());const r=window.innerWidth-document.documentElement.clientWidth;document.body.style.position="fixed",document.body.style.top=`-${s}px`,document.body.style.left="0",document.body.style.right="0",document.body.style.paddingRight=`${r}px`,document.body.style.setProperty(hf,`${r}px`),document.body.classList.add(i),e.isLocked=!0}static unlockBody(t,n){if(!e.isLocked)return;const i=e.resolveBodyLockClassName(t,this),s=Number.parseInt(document.body.getAttribute(pf)||"0",10);document.body.style.position="",document.body.style.top="",document.body.style.left="",document.body.style.right="",document.body.style.paddingRight="",document.body.style.removeProperty(hf),document.body.classList.remove(i),window.scrollTo({top:Number.isFinite(s)?s:0,left:0,behavior:"instant"}),e.isLocked=!1}};mf.isLocked=!1;const ff="modal__body",gf=({color:e,className:t,children:n,withTopPadding:i,disableSpacing:s,...r})=>S.jsx("div",{className:C(ff,t,{...e&&"background-contrast"!==e?{[e]:!0}:{},..."background-contrast"===e?{[`${e} text-inverse`]:!0}:{},[`${ff}--colorful`]:e,[`${ff}--with-top-padding`]:i,[`${ff}--no-spacing`]:s}),...r,children:n});gf.displayName="ModalBody";const vf=e=>S.jsx(Re,{iconName:"delete",type:"ghost",isSquare:!0,size:"small",className:"modal__close","data-a11y-dialog-hide":!0,"aria-label":"Zatvoriť",...e});vf.displayName="ModalCloseButton";const bf=({size:e,className:t,children:n,...i})=>S.jsx("h2",{className:C(t,{"display-3":"large"===e,h2:"small"===e}),...i,children:n});bf.displayName="ModalTitle";const yf="modal",_f=[S.jsx(Ae,{"data-a11y-dialog-hide":!0,children:"Zatvoriť"},"1")],xf=({actions:e=_f,className:t,children:i,hasStickyFooter:s,id:r,isActive:a,onHide:o,size:l,title:c,renderHeader:d,renderBody:h,renderTitle:p,renderFooter:m,fullHeight:f,disableHeaderSpacing:g,disableFooterSpacing:v,...b})=>{const y=void 0!==a,_=u(()=>y?{disablePortal:!0}:{},[y]),[x,w]=j(mf,_);n(()=>{if(!w.current||!o)return;const e=()=>{o()};return w.current.instance.on("hide",e),()=>{w.current?.instance.off("hide",e)}},[w,o]),n(()=>{w.current&&(a?w.current.show():!1===a&&w.current.hide())},[w,a]);const E=C(`${yf}__dialog`,{[`${yf}__dialog--${l}`]:l,[`${yf}__dialog--full-height`]:f},t),N=`${r}-title`,k=p?p(r):S.jsx(bf,{id:N,size:l,"data-a11y-dialog-initial-focus":!0,children:c});return S.jsxs("div",{id:r,...!y&&{"data-modal":!0},className:yf,ref:x,role:"dialog","aria-hidden":"true","aria-modal":"true","aria-labelledby":N,children:[S.jsx("div",{className:"modal__overlay",tabIndex:-1,"data-a11y-dialog-hide":!0}),S.jsxs("div",{className:E,role:"document",...b,children:[S.jsx("div",{className:C(`${yf}__header`,{[`${yf}__header--no-spacing`]:g}),children:d?d(r):S.jsxs(S.Fragment,{children:[S.jsx(vf,{}),k]})}),h?h():S.jsx(gf,{withTopPadding:!!d,children:i}),S.jsx("div",{className:C(`${yf}__footer`,{[`${yf}__footer--sticky`]:s,[`${yf}__footer--no-spacing`]:v}),children:m?m():S.jsx(G,{condition:e.length>1,wrapper:S.jsx(X,{}),children:e.map(e=>e)})})]})]})};xf.displayName="Modal";const wf="modal__product",Sf=e.forwardRef(({className:e,children:t,button:n,image:i,space:s,...r},a)=>{const o=C(`${wf}-footer`,e),l=`${wf}-footer-content`,c=`${wf}-footer-button`;return S.jsxs("div",{className:o,ref:a,...r,children:[S.jsx("div",{className:l,children:t}),S.jsx("div",{className:c,children:n})]})});Sf.displayName="ModalProductFooter";const Ef="modal__product",Nf=e.forwardRef(({className:e,children:t,image:n,space:i,titleId:s,...r},a)=>{const o=C(`${Ef}-header`,{[`${Ef}-header--space-small`]:"small"===i},e),l=`${Ef}-content`;return S.jsxs("div",{className:o,ref:a,...r,children:[S.jsx("div",{className:l,id:s,children:t}),n]})});Nf.displayName="ModalProductHeader";const Cf="pagination__link",kf=({ariaLabel:e,className:t,hasIcon:n,href:i,isActive:s,isFirst:r,isLast:a,label:o,...l})=>{const c=C("pagination__item",t),d=C(Cf,"btn btn--square",{[`${Cf}--active`]:s});return S.jsx("li",{className:c,...l,children:S.jsxs("a",{href:i,className:d,"aria-current":s?"page":void 0,"aria-label":e,children:[n&&r&&S.jsx(B,{name:"chevron-start"}),!n&&o,n&&a&&S.jsx(B,{name:"chevron-end"})]})})};kf.displayName="PaginationItem";const Tf=e=>{const{className:t,...n}=e,i=C("pagination__separator",t);return S.jsx("li",{className:i,...n,children:"…"})};Tf.displayName="PaginationSeparator";const jf=({className:t,label:n,isCompact:i,items:s,...r})=>{const a=C("pagination",t),o=u(()=>s.findIndex(({isActive:e})=>e),[s]);return S.jsx("nav",{"aria-label":n,children:S.jsx("ul",{className:a,...r,children:s.map((t,n)=>{const{isFirst:r,isHidden:a,isLast:l,isSecond:c,isSecondFromEnd:d,hasIcon:u,showSeparator:h}=function({activeIndex:e,items:t,isCompact:n,index:i}){const s=0===i,r=1===i,a=i===e,o=i===t.length-2,l=i===t.length-1,c=e===i-1||e===i+1,d=i<e+Math.floor(2.5)&&i>e||i>e-Math.floor(2.5)&&i<e,u=i<4&&e<3,h=i>t.length-5&&e>t.length-4,p=!(d||u||h||s||a||l),m=r&&p||o&&p;return{isFirst:s,isHidden:p,isLast:l,isSecond:r,isSecondFromEnd:o,hasIcon:n&&!a&&(s||l)&&!c&&!(t.length<=5),showSeparator:m}}({activeIndex:o,items:s,isCompact:i||!1,index:n});return S.jsxs(e.Fragment,{children:[!i&&h&&c&&S.jsx(Tf,{}),S.jsx(kf,{...t,ariaLabel:t.ariaLabel||t.label,isActive:t.isActive||!1,isFirst:r,isLast:l,className:C({hide:a}),hasIcon:u}),!i&&h&&d&&S.jsx(Tf,{})]},n.toString())})})})};jf.displayName="Pagination";const Af="pill",Of=({className:e,children:t,size:n,color:i,...s})=>S.jsx("span",{className:C(Af,{[Af+"--"+n]:n},i,e),...s,children:t});Of.displayName="Pill";const Lf="orange",Df="progress",Mf=({color:e=Lf,label:t,value:n,width:i,className:s,...r})=>S.jsxs("div",{className:C(Df,s),...r,children:[S.jsx("div",{className:`${Df}__label`,children:t}),S.jsx("div",{className:`${Df}__bar`,children:S.jsx("div",{className:C(`${Df}__indicator`,{[`${Df}__indicator--${e}`]:e!==Lf}),style:{width:(i?100*i:0)+"%"}})}),S.jsx("div",{className:`${Df}__value`,children:n})]});Mf.displayName="Progress";const $f="promo-banner",Pf=({image:e,className:t,alignImage:n,flushTopSmDown:i,flushBottomSmDown:s,bleedImage:r,bleedImageSmDown:a,children:o,itemClassName:l,imageClassName:c,variant:d,imageFullWidth:u,...h})=>{const p=(e=>e?"string"==typeof e?{src:e}:{src:e.src,srcSet:e.srcSet}:null)(e),m=C($f,t,{[`${$f}--flush-top-sm-down`]:i,[`${$f}--flush-bottom-sm-down`]:s,[`${$f}--reverse`]:"reverse"===d&&!!p?.src,[`${$f}--vertical`]:"vertical"===d});return S.jsx("div",{className:m,...h,children:S.jsxs(Te,{columnGapSize:"large",children:["reverse"===d&&p?.src&&S.jsx(Le,{size:{xs:12,md:6},className:C(`${$f}__image`,"align-center align-md-left",{[`${$f}__image--bleed-sm-down`]:a},c),children:S.jsx(As,{src:p.src,srcSet:p.srcSet,alt:"Obrázok",className:C("mb-none",{fullwidth:u})})}),S.jsx(Le,{size:"vertical"===d?{xs:12,sm:10,md:8,lg:6}:{xs:12,md:p?.src?6:7},className:C(`${$f}__item`,{"align-items-center align-center align-self-center":"vertical"===d},l),children:o}),p?.src&&"reverse"!==d&&S.jsx(Le,{size:"vertical"===d?{xs:12}:{xs:12,md:6},className:C(`${$f}__image`,{[`${$f}__image--bleed-right`]:r,[`${$f}__image--bleed-sm-down`]:a,[`align-self-${n}`]:n,"align-center":"vertical"===d},c),children:S.jsx(As,{src:p.src,srcSet:p.srcSet,alt:"Obrázok",className:C("mb-none",{fullwidth:u})})})]})})},If="promotion-card",Rf=`${If}__section`,zf=`${If}__content`,Ff=`${If}__image-wrapper`,Hf=`${If}__title`,Bf=({className:e,children:t,color:n="background-primary",...i})=>{const s=C(If,e);return S.jsx(Ve,{className:s,color:n,...i,children:t})};Bf.displayName="PromotionCard";const Vf=({className:e,children:t,...n})=>{const i=C(zf,e);return S.jsx("div",{className:i,...n,children:t})};Vf.displayName="PromotionCardContent";const qf=({className:e,children:t,...n})=>{const i=C(Ff,e);return S.jsx("div",{className:i,...n,children:t})};qf.displayName="PromotionCardImageWrapper";const Wf=({className:e,children:t,...n})=>{const i=C(Rf,e);return S.jsx(Ge,{className:i,...n,children:t})};Wf.displayName="PromotionCardSection";const Uf=({className:t,children:n,...i})=>{const s=C(Hf,t);return e.cloneElement(n,{className:s,...i})};Uf.displayName="PromotionCardTitle";const Gf="section",Yf=({className:e,color:t,spacing:n,tag:i="div",children:s,containerClassName:r,...a})=>{const o=C(Gf,{[`${Gf}--${n}`]:n,...t&&"background-contrast"!==t?{[t]:!0}:{},..."background-contrast"===t?{[`${t} text-inverse`]:!0}:{}},e);return S.jsx(i,{className:o,...a,children:S.jsx(Ji,{className:r,children:s})})};Yf.displayName="Section";const Xf=({className:e,...t})=>{const n=C("skeleton",e);return S.jsx("span",{className:n,...t,children:""})};Xf.displayName="Skeleton";const Kf=({href:e="#maincontent",className:t,...n})=>{const i=C("skip-link",t);return S.jsx("a",{href:e,className:i,...n,children:"Preskočiť na hlavný obsah"})};Kf.displayName="SkipLink";const Zf="social-button",Jf=e.forwardRef(({name:e,className:t,...n},i)=>{const s=n,r=C(Zf,`${Zf}--${e}`,t);return"href"in s?S.jsx("a",{ref:i,className:r,...s,children:S.jsx(B,{name:e,size:"medium"})}):S.jsx("button",{ref:i,className:r,...s,children:S.jsx(B,{name:e,size:"medium"})})});Jf.displayName="SocialButton";const Qf="star-rating",eg="star-favourite",tg="star-empty-thin",ng=({className:e,rating:t,...n})=>{const i=(e=>Math.max(0,Math.min(Math.round(e),5)))(t);return S.jsx("span",{className:C(Qf,e),...n,children:Array.from({length:5},(e,t)=>{const n=t<i;return S.jsx(B,{className:C(`${Qf}__icon`,{[`${Qf}__icon--filled`]:n,[`${Qf}__icon--empty`]:!n}),name:n?eg:tg,size:"large"},`${n?eg:tg}-${t}`)})})};ng.displayName="StarRating";const ig="stepbar",sg=({showTitlesFrom:e,steps:t,label:n="krok",className:i,...s})=>{const r=t.findIndex(e=>e.isCurrent),a=(t,n)=>{const i=`${n+1}. ${t.title}`;return n<r?S.jsx("a",{href:t.href,className:C(`${ig}__link`,{[`${ig}__title-${e}`]:e}),children:i}):S.jsx("span",{"aria-current":n===r?"step":void 0,className:e?`stepbar__title-${e}`:"",children:i})};return S.jsx("nav",{className:C(ig,{[`${ig}--wide-${e}`]:e},i),"aria-label":n,...s,children:S.jsx("ol",{className:`${ig}__list`,children:t.map((e,t)=>S.jsx("li",{className:C(`${ig}__item`,{[`${ig}__item--current`]:t===r}),children:a(e,t)},t.toString()))})})};sg.displayName="Stepbar";const rg=({href:e,children:t,className:n,controls:i,isDisabled:s,isActive:r,...a})=>{const o=C("tab-list__tab",n),l=r?0:-1,c=e?"a":"button";return S.jsx("li",{className:"tab-list__item",role:"presentation",children:S.jsx(c,{type:e?void 0:"button",role:e?void 0:"tab",href:e,className:o,"aria-selected":r,"aria-controls":i||void 0,tabIndex:l,"aria-disabled":s,...a,children:t})})};rg.displayName="Tab";const ag=({children:e,isActive:t,id:n,href:i,isDisabled:s,...r})=>{const a=n||T();return S.jsx("div",{id:a,role:i?"":"tabpanel",tabIndex:0,hidden:!t,...r,children:e})};ag.displayName="TabPanel";const og={tabSelector:'[role="tab"]'};let lg=class e{constructor(e,t){return this.isActive=e=>!!e&&!e.hasAttribute("hidden"),this.isSelected=e=>"true"===e.getAttribute("aria-selected"),this.element=e,this.config={...og,...t},this.tabs=[],this.tabPanels=[],this.activeTabIndex=null,this.rovingTabindex=null,this.resizeObserver=null,this.viewportElement=null,this.handleClick=this.handleClick.bind(this),this.handleTabFocus=this.handleTabFocus.bind(this),this.horizontalScrollHandler=this.updateHorizontalOverflowState.bind(this),this.resizeHandler=this.updateHorizontalOverflowState.bind(this),this.element.ODS_Tabs=this,this.init(),this}static getInstance(e){return e&&e.ODS_Tabs?e.ODS_Tabs:null}init(){this.tabs=Array.from(this.element.querySelectorAll(this.config.tabSelector)),this.tabs.map((e,t)=>{const n=e.getAttribute("aria-controls");return this.tabPanels.push(n?document.getElementById(n):null),e.addEventListener("click",this.handleClick),e.addEventListener("focus",this.handleTabFocus),this.isSelected(e)&&(this.activeTabIndex=t),e}),this.rovingTabindex?this.rovingTabindex.update(this.tabs):this.rovingTabindex=new D(this.tabs,{direction:"any"}),null!==this.activeTabIndex?this.setActiveTab(this.activeTabIndex):this.tabs.length>0&&this.activateNthTab(0),this.setupOverflowObserver()}destroy(){this.teardownOverflowObserver(),this.tabs.map(e=>(e.removeEventListener("click",this.handleClick),e.removeEventListener("focus",this.handleTabFocus),e)),this.tabs=[],this.tabPanels=[],this.rovingTabindex&&this.rovingTabindex.destroy(),this.element.ODS_Tabs=null}setupOverflowObserver(){this.teardownOverflowObserver(),this.viewportElement=this.element.parentElement?.classList.contains("tab-list__viewport")?this.element.parentElement:null,this.element.addEventListener("scroll",this.horizontalScrollHandler,{passive:!0}),window.addEventListener("resize",this.resizeHandler),"undefined"!=typeof ResizeObserver&&(this.resizeObserver=new ResizeObserver(this.resizeHandler),this.resizeObserver.observe(this.element),this.tabs.forEach(e=>this.resizeObserver?.observe(e))),this.updateHorizontalOverflowState()}teardownOverflowObserver(){this.element.removeEventListener("scroll",this.horizontalScrollHandler),window.removeEventListener("resize",this.resizeHandler),this.viewportElement&&(this.viewportElement.classList.remove("has-left-overflow","has-right-overflow"),this.viewportElement=null),this.resizeObserver&&(this.resizeObserver.disconnect(),this.resizeObserver=null)}updateHorizontalOverflowState(){if(!this.viewportElement)return;const t=this.element.scrollWidth-this.element.clientWidth,n=t>e.SCROLL_EDGE_TOLERANCE,i=this.element.scrollLeft<=e.SCROLL_EDGE_TOLERANCE,s=this.element.scrollLeft>=t-e.SCROLL_EDGE_TOLERANCE;this.viewportElement.classList.toggle("has-left-overflow",n&&!i),this.viewportElement.classList.toggle("has-right-overflow",n&&!s)}update(){this.destroy(),this.init()}setActiveTab(e,t=!1){this.tabs.map((t,n)=>n===e?(this.activeTabIndex=n,this.toggleTab(t,"on")):this.toggleTab(t,"off")),this.tabPanels.map((t,n)=>n===e?this.toggleTabPanel(t,"on"):this.toggleTabPanel(t,"off"));const n=this.tabs[e];n&&this.scrollTabIntoView(n,t)}scrollTabIntoView(t,n=!1){const i=Math.max(0,this.element.scrollWidth-this.element.clientWidth),s=this.element.getBoundingClientRect(),r=t.getBoundingClientRect(),a=r.left-s.left+this.element.scrollLeft+r.width/2-this.element.clientWidth/2,o=window.innerWidth<768?"auto":"smooth",l=Math.min(i,Math.max(0,a)),c=Math.abs(this.element.scrollLeft-l)<=e.SCROLL_ALIGNMENT_TOLERANCE;!n&&c||("function"!=typeof this.element.scrollTo?(this.element.scrollLeft=l,this.updateHorizontalOverflowState()):this.element.scrollTo({left:l,behavior:o}))}handleClick(e){const t=e.currentTarget;if(t.hasAttribute("aria-disabled"))return void e.preventDefault();const n=this.tabs.findIndex(e=>e===t);n>=0&&this.setActiveTab(n,!0)}toggleTab(e,t){const 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"))}toggleTabPanel(e,t){if(!e)return;const n=this.isActive(e);"on"!==t||n||e.removeAttribute("hidden"),"off"===t&&n&&e.setAttribute("hidden","")}activateNthTab(e){this.setActiveTab(e,!0)}handleTabFocus(e){this.rovingTabindex&&!this.rovingTabindex.isActive&&this.rovingTabindex.init();const t=e.currentTarget;t&&this.shouldCenterFocusedTab(t)&&this.scrollTabIntoView(t)}shouldCenterFocusedTab(e){if("function"!=typeof e.matches)return!0;try{return e.matches(":focus-visible")}catch{return!0}}};lg.SCROLL_ALIGNMENT_TOLERANCE=1,lg.SCROLL_EDGE_TOLERANCE=1;const cg=({activeTabIndex:t=0,className:n,classesTabNav:i,isFullWidth:s,isLink:r,hasEqualTabWidth:a,children:o,...l})=>{const c="tab-list",d=C(c,{[`${c}--equal`]:a},{[`${c}--fullwidth`]:s},i,n),[u]=j(lg),h=e.Children.toArray(o).filter(t=>e.isValidElement(t));return S.jsxs(S.Fragment,{children:[S.jsx("div",{className:"tab-list__viewport",children:S.jsxs("ul",{className:d,role:r?"navigation":"tablist",ref:u,"data-tabs":r?void 0:"true",...l,children:[h.map((n,i)=>{const s=i===t,r=n.props||{},{renderTab:a,id:o,isDisabled:l,tab:c,href:d}=r,u=o||`tab-${i}`;if(!a)return S.jsx(rg,{controls:d?"":u,href:d,isDisabled:l,isActive:s,children:c},u);const h=a(r);return e.cloneElement(h,{key:u,isActive:s})}),s&&S.jsx("li",{role:"presentation",className:"tab-list__hr"})]})}),r?null:h.map((n,i)=>{const s=i===t,r=n.props||{},{id:a}=r,o=a||`tab-${i}`;return e.cloneElement(n,{key:o,isActive:s,tab:void 0})})]})};cg.displayName="Tabs";const dg="tile",ug=({className:e,children:t,variant:n,vAlign:i,hAlign:s,...r})=>{const a="compact"===n,o="action"===n,l=C(dg,{[`${dg}--compact`]:a,[`${dg}--action`]:o},e),c=C(`${dg}__body`,!o&&i&&`justify-content-${i}`,!o&&s&&`align-items-${s}`),d=o?{name:"chevron-right",size:"medium",color:"orange"}:null;return S.jsx("div",{className:l,...r,children:S.jsxs("div",{className:c,children:[t,d&&S.jsx(B,{...d})]})})};ug.displayName="Tile";const hg="timeline",pg=({items:e,className:t,start:n=1,titleTag:i="h3",...s})=>S.jsx("ol",{className:C(hg,t),start:n,...s,children:e.map((t,s)=>{const r=n+s,a=t.label??null;return S.jsxs("li",{className:`${hg}__item`,children:[S.jsxs("div",{className:`${hg}__number-column`,"aria-hidden":"true",children:[S.jsx("span",{className:`${hg}__number`,children:r}),s!==e.length-1&&S.jsx("div",{className:`${hg}__line`})]}),S.jsx("span",{className:`${hg}__label`,children:a}),S.jsx(i,{className:`${hg}__headline`,children:t.title}),S.jsx("div",{className:`${hg}__description`,children:t.description})]},`${hg}-item-${r}`)})});pg.displayName="Timeline";var mg,fg={exports:{}},gg=(mg||(mg=1,window,fg.exports=function(e){var t={};function n(i){if(t[i])return t[i].exports;var s=t[i]={i:i,l:!1,exports:{}};return e[i].call(s.exports,s,s.exports,n),s.l=!0,s.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 s in e)n.d(i,s,function(t){return e[t]}.bind(null,s));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),s=n(6),r=n(7),a=n(16),o=n(18),l="prototype",c=function(e,t,n){var d,u,h,p,m=e&c.F,f=e&c.G,g=e&c.S,v=e&c.P,b=e&c.B,y=f?i:g?i[t]||(i[t]={}):(i[t]||{})[l],_=f?s:s[t]||(s[t]={}),x=_[l]||(_[l]={});for(d in f&&(n=t),n)h=((u=!m&&y&&void 0!==y[d])?y:n)[d],p=b&&u?o(h,i):v&&"function"==typeof h?o(Function.call,h):h,y&&a(y,d,h,e&c.U),_[d]!=h&&r(_,d,p),v&&x[d]!=h&&(x[d]=h)};i.core=s,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 o}),n.d(t,"createElement",function(){return o}),n.d(t,"cloneElement",function(){return d}),n.d(t,"Component",function(){return M}),n.d(t,"render",function(){return $}),n.d(t,"rerender",function(){return m}),n.d(t,"options",function(){return s});var i=function(){},s={},r=[],a=[];function o(e,t){var n,o,l,c,d=a;for(c=arguments.length;2<c--;)r.push(arguments[c]);for(t&&null!=t.children&&(r.length||r.push(t.children),delete t.children);r.length;)if((o=r.pop())&&void 0!==o.pop)for(c=o.length;c--;)r.push(o[c]);else"boolean"==typeof o&&(o=null),(l="function"!=typeof e)&&(null==o?o="":"number"==typeof o?o=String(o):"string"!=typeof o&&(l=!1)),l&&n?d[d.length-1]+=o:d===a?d=[o]:d.push(o),n=l;var u=new i;return u.nodeName=e,u.children=d,u.attributes=null==t?void 0:t,u.key=null==t?void 0:t.key,void 0!==s.vnode&&s.vnode(u),u}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 d(e,t){return o(e.nodeName,l(l({},e.attributes),t),2<arguments.length?[].slice.call(arguments,2):e.children)}var u=/acit|ex(?:s|g|n|p|$)|rph|ows|mnc|ntw|ine[ch]|zoo|^ord/i,h=[];function p(e){!e._dirty&&(e._dirty=!0)&&1==h.push(e)&&(s.debounceRendering||c)(m)}function m(){var e,t=h;for(h=[];e=t.pop();)e._dirty&&L(e)}function f(e,t){return e.normalizedNodeName===t||e.nodeName.toLowerCase()===t.toLowerCase()}function g(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 v(e){var t=e.parentNode;t&&t.removeChild(e)}function b(e,t,n,i,s){if("className"===t&&(t="class"),"key"===t);else if("ref"===t)n&&n(null),i&&i(e);else if("class"!==t||s)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 r in n)r in i||(e.style[r]="");for(var r in i)e.style[r]="number"==typeof i[r]&&!1===u.test(r)?i[r]+"px":i[r]}}else if("dangerouslySetInnerHTML"===t)i&&(e.innerHTML=i.__html||"");else if("o"==t[0]&&"n"==t[1]){var a=t!==(t=t.replace(/Capture$/,""));t=t.toLowerCase().substring(2),i?n||e.addEventListener(t,y,a):e.removeEventListener(t,y,a),(e._listeners||(e._listeners={}))[t]=i}else if("list"!==t&&"type"!==t&&!s&&t in e){try{e[t]=null==i?"":i}catch(e){}null!=i&&!1!==i||"spellcheck"==t||e.removeAttribute(t)}else{var o=s&&t!==(t=t.replace(/^xlink:?/,""));null==i||!1===i?o?e.removeAttributeNS("http://www.w3.org/1999/xlink",t.toLowerCase()):e.removeAttribute(t):"function"!=typeof i&&(o?e.setAttributeNS("http://www.w3.org/1999/xlink",t.toLowerCase(),i):e.setAttribute(t,i))}else e.className=i||""}function y(e){return this._listeners[e.type](s.event&&s.event(e)||e)}var _=[],x=0,w=!1,S=!1;function E(){for(var e;e=_.pop();)s.afterMount&&s.afterMount(e),e.componentDidMount&&e.componentDidMount()}function N(e,t,n,i,s){var r=e,a=w;if(null!=t&&"boolean"!=typeof t||(t=""),"string"==typeof t||"number"==typeof t)return e&&void 0!==e.splitText&&e.parentNode&&(!e._component||s)?e.nodeValue!=t&&(e.nodeValue=t):(r=document.createTextNode(t),e&&(e.parentNode&&e.parentNode.replaceChild(r,e),C(e,!0))),r.__preactattr_=!0,r;var o=t.nodeName;if("function"==typeof o)return function(e,t,n,i){for(var s=e&&e._component,r=s,a=e,o=s&&e._componentConstructor===t.nodeName,l=o,c=g(t);s&&!l&&(s=s._parentComponent);)l=s.constructor===t.nodeName;return s&&l&&(!i||s._component)?(O(s,c,3,n,i),e=s.base):(r&&!o&&(D(r),e=a=null),s=j(t.nodeName,c,n),e&&!s.nextBase&&(s.nextBase=e,a=null),O(s,c,1,n,i),e=s.base,a&&e!==a&&(a._component=null,C(a,!1))),e}(e,t,n,i);if(w="svg"===o||"foreignObject"!==o&&w,o=String(o),(!e||!f(e,o))&&(r=function(e,t){var n=t?document.createElementNS("http://www.w3.org/2000/svg",e):document.createElement(e);return n.normalizedNodeName=e,n}(o,w),e)){for(;e.firstChild;)r.appendChild(e.firstChild);e.parentNode&&e.parentNode.replaceChild(r,e),C(e,!0)}var l=r.firstChild,c=r.__preactattr_,d=t.children;if(null==c){c=r.__preactattr_={};for(var u=r.attributes,h=u.length;h--;)c[u[h].name]=u[h].value}return!S&&d&&1===d.length&&"string"==typeof d[0]&&null!=l&&void 0!==l.splitText&&null==l.nextSibling?l.nodeValue!=d[0]&&(l.nodeValue=d[0]):(d&&d.length||null!=l)&&function(e,t,n,i,s){var r,a,o,l,c,d,u,h,p=e.childNodes,m=[],g={},b=0,y=0,_=p.length,x=0,w=t?t.length:0;if(0!==_)for(var S=0;S<_;S++){var E=p[S],k=E.__preactattr_;null!=(T=w&&k?E._component?E._component.__key:k.key:null)?(b++,g[T]=E):(k||(void 0!==E.splitText?!s||E.nodeValue.trim():s))&&(m[x++]=E)}if(0!==w)for(S=0;S<w;S++){var T;if(c=null,null!=(T=(l=t[S]).key))b&&void 0!==g[T]&&(c=g[T],g[T]=void 0,b--);else if(y<x)for(r=y;r<x;r++)if(void 0!==m[r]&&(d=a=m[r],h=s,"string"==typeof(u=l)||"number"==typeof u?void 0!==d.splitText:"string"==typeof u.nodeName?!d._componentConstructor&&f(d,u.nodeName):h||d._componentConstructor===u.nodeName)){c=a,m[r]=void 0,r===x-1&&x--,r===y&&y++;break}c=N(c,l,n,i),o=p[S],c&&c!==e&&c!==o&&(null==o?e.appendChild(c):c===o.nextSibling?v(o):e.insertBefore(c,o))}if(b)for(var S in g)void 0!==g[S]&&C(g[S],!1);for(;y<=x;)void 0!==(c=m[x--])&&C(c,!1)}(r,d,n,i,S||null!=c.dangerouslySetInnerHTML),function(e,t,n){var i;for(i in n)t&&null!=t[i]||null==n[i]||b(e,i,n[i],n[i]=void 0,w);for(i in t)"children"===i||"innerHTML"===i||i in n&&t[i]===("value"===i||"checked"===i?e[i]:n[i])||b(e,i,n[i],n[i]=t[i],w)}(r,t.attributes,c),w=a,r}function C(e,t){var n=e._component;n?D(n):(null!=e.__preactattr_&&e.__preactattr_.ref&&e.__preactattr_.ref(null),!1!==t&&null!=e.__preactattr_||v(e),k(e))}function k(e){for(e=e.lastChild;e;){var t=e.previousSibling;C(e,!0),e=t}}var T=[];function j(e,t,n){var i,s=T.length;for(e.prototype&&e.prototype.render?(i=new e(t,n),M.call(i,t,n)):((i=new M(t,n)).constructor=e,i.render=A);s--;)if(T[s].constructor===e)return i.nextBase=T[s].nextBase,T.splice(s,1),i;return i}function A(e,t,n){return this.constructor(e,n)}function O(e,t,n,i,r){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||r?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===s.syncComponentUpdates&&e.base?p(e):L(e,1,r)),e.__ref&&e.__ref(e))}function L(e,t,n,i){if(!e._disable){var r,a,o,c=e.props,d=e.state,u=e.context,h=e.prevProps||c,p=e.prevState||d,m=e.prevContext||u,f=e.base,v=e.nextBase,b=f||v,y=e._component,k=!1,T=m;if(e.constructor.getDerivedStateFromProps&&(d=l(l({},d),e.constructor.getDerivedStateFromProps(c,d)),e.state=d),f&&(e.props=h,e.state=p,e.context=m,2!==t&&e.shouldComponentUpdate&&!1===e.shouldComponentUpdate(c,d,u)?k=!0:e.componentWillUpdate&&e.componentWillUpdate(c,d,u),e.props=c,e.state=d,e.context=u),e.prevProps=e.prevState=e.prevContext=e.nextBase=null,e._dirty=!1,!k){r=e.render(c,d,u),e.getChildContext&&(u=l(l({},u),e.getChildContext())),f&&e.getSnapshotBeforeUpdate&&(T=e.getSnapshotBeforeUpdate(h,p));var A,M,$=r&&r.nodeName;if("function"==typeof $){var P=g(r);(a=y)&&a.constructor===$&&P.key==a.__key?O(a,P,1,u,!1):(A=a,e._component=a=j($,P,u),a.nextBase=a.nextBase||v,a._parentComponent=e,O(a,P,0,u,!1),L(a,1,n,!0)),M=a.base}else o=b,(A=y)&&(o=e._component=null),(b||1===t)&&(o&&(o._component=null),M=function(e,t,n,i,s,r){x++||(w=null!=s&&void 0!==s.ownerSVGElement,S=null!=e&&!("__preactattr_"in e));var a=N(e,t,n,i,r);return s&&a.parentNode!==s&&s.appendChild(a),--x||(S=!1),a}(o,r,u,n||!f,b&&b.parentNode,!0));if(b&&M!==b&&a!==y){var I=b.parentNode;I&&M!==I&&(I.replaceChild(M,b),A||(b._component=null,C(b,!1)))}if(A&&D(A),(e.base=M)&&!i){for(var R=e,z=e;z=z._parentComponent;)(R=z).base=M;M._component=R,M._componentConstructor=R.constructor}}for(!f||n?_.unshift(e):k||(e.componentDidUpdate&&e.componentDidUpdate(h,p,T),s.afterUpdate&&s.afterUpdate(e));e._renderCallbacks.length;)e._renderCallbacks.pop().call(e);x||i||E()}}function D(e){s.beforeUnmount&&s.beforeUnmount(e);var t=e.base;e._disable=!0,e.componentWillUnmount&&e.componentWillUnmount(),e.base=null;var n=e._component;n?D(n):t&&(t.__preactattr_&&t.__preactattr_.ref&&t.__preactattr_.ref(null),v(e.nextBase=t),T.push(e),k(t)),e.__ref&&e.__ref(null)}function M(e,t){this._dirty=!0,this.context=t,this.props=e,this.state=this.state||{},this._renderCallbacks=[]}function $(e,t,n){return function(e,t,n,i,s,r){x++||(w=null!=s&&void 0!==s.ownerSVGElement,S=null!=e&&!("__preactattr_"in e));var a=N(e,t,n,i,r);return s&&a.parentNode!==s&&s.appendChild(a),--x||(S=!1,E()),a}(n,e,{},!1,t,!1)}l(M.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),p(this)},forceUpdate:function(e){e&&this._renderCallbacks.push(e),L(this,2)},render:function(){}});var P={h:o,createElement:o,cloneElement:d,Component:M,render:$,rerender:m,options:s};t.default=P},function(e,t){var n=e.exports={version:"2.5.7"};"number"==typeof __e&&(__e=n)},function(e,t,n){var i=n(8),s=n(40);e.exports=n(3)?function(e,t,n){return i.f(e,t,s(1,n))}:function(e,t,n){return e[t]=n,e}},function(e,t,n){var i=n(9),s=n(38),r=n(39),a=Object.defineProperty;t.f=n(3)?Object.defineProperty:function(e,t,n){if(i(e),t=r(t,!0),i(n),s)try{return a(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),s=n(1).document,r=i(s)&&i(s.createElement);e.exports=function(e){return r?s.createElement(e):{}}},function(e,t,n){var i=n(1),s=n(7),r=n(17),a=n(10)("src"),o="toString",l=Function[o],c=(""+l).split(o);n(6).inspectSource=function(e){return l.call(e)},(e.exports=function(e,t,n,o){var l="function"==typeof n;l&&(r(n,"name")||s(n,"name",t)),e[t]!==n&&(l&&(r(n,a)||s(n,a,e[t]?""+e[t]:c.join(String(t)))),e===i?e[t]=n:o?e[t]?e[t]=n:s(e,t,n):(delete e[t],s(e,t,n)))})(Function.prototype,o,function(){return"function"==typeof this&&this[a]||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,s){return e.call(t,n,i,s)}}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),s=n(28);e.exports=Object.keys||function(e){return i(e,s)}},function(e,t,n){var i=n(11),s=n(12);e.exports=function(e){return i(s(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),s=n(24),r=n(43);e.exports=function(e){return function(t,n,a){var o,l=i(t),c=s(l.length),d=r(a,c);if(e&&n!=n){for(;d<c;)if((o=l[d++])!=o)return!0}else for(;d<c;d++)if((e||d in l)&&l[d]===n)return e||d||0;return!e&&-1}}},function(e,t,n){var i=n(25),s=Math.min;e.exports=function(e){return 0<e?s(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"),s=n(10);e.exports=function(e){return i[e]||(i[e]=s(e))}},function(e,t,n){var i=n(6),s=n(1),r="__core-js_shared__",a=s[r]||(s[r]={});(e.exports=function(e,t){return a[e]||(a[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,s=Function.prototype,r=/^\s*function ([^ (]*)/;"name"in s||n(3)&&i(s,"name",{configurable:!0,get:function(){try{return(""+this).match(r)[1]}catch(e){return""}}})},function(e,t,n){var i=n(0),s=n(32)(1);i(i.P+i.F*!n(13)([].map,!0),"Array",{map:function(e){return s(this,e,arguments[1])}})},function(e,t,n){var i=n(18),s=n(11),r=n(29),a=n(24),o=n(47);e.exports=function(e,t){var n=1==e,l=2==e,c=3==e,d=4==e,u=6==e,h=5==e||u,p=t||o;return function(t,o,m){for(var f,g,v=r(t),b=s(v),y=i(o,m,3),_=a(b.length),x=0,w=n?p(t,_):l?p(t,0):void 0;x<_;x++)if((h||x in b)&&(g=y(f=b[x],x,v),e))if(n)w[x]=g;else if(g)switch(e){case 3:return!0;case 5:return f;case 6:return x;case 2:w.push(f)}else if(d)return!1;return u?-1:c||d?d:w}}},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"),s=n(10),r=n(1).Symbol,a="function"==typeof r;(e.exports=function(e){return i[e]||(i[e]=a&&r[e]||(a?r:s)("Symbol."+e))}).store=i},function(e,t,n){var i=n(0),s=n(23)(!1),r=[].indexOf,a=!!r&&1/[1].indexOf(1,-0)<0;i(i.P+i.F*(a||!n(13)(r)),"Array",{indexOf:function(e){return a?r.apply(this,arguments)||0:s(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),s=function(e){return e&&e.__esModule?e:{default:e}}(n(51));function r(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=a(e.source)),(0,i.render)((0,i.createElement)(s.default,e),e.element)}var a=function(e){return function(t,n){n(e.filter(function(e){return-1!==e.toLowerCase().indexOf(t.toLowerCase())}))}};r.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 s=e.selectElement.getAttribute("autocomplete");null!==s&&(e.autocomplete=s)}var a=document.createElement("div");e.selectElement.parentNode.insertBefore(a,e.selectElement),r(Object.assign({},e,{element:a})),e.selectElement.style.display="none",e.selectElement.id=e.selectElement.id+"-select"};var o=r;t.default=o},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,s;if(t&&"function"==typeof(n=e.toString)&&!i(s=n.call(e)))return s;if("function"==typeof(n=e.valueOf)&&!i(s=n.call(e)))return s;if(!t&&"function"==typeof(n=e.toString)&&!i(s=n.call(e)))return s;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),s=n(45),r=n(46),a=n(29),o=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=a(e),l=arguments.length,c=1,d=s.f,u=r.f;c<l;)for(var h,p=o(arguments[c++]),m=d?i(p).concat(d(p)):i(p),f=m.length,g=0;g<f;)u.call(p,h=m[g++])&&(n[h]=p[h]);return n}:l},function(e,t,n){var i=n(17),s=n(21),r=n(23)(!1),a=n(26)("IE_PROTO");e.exports=function(e,t){var n,o=s(e),l=0,c=[];for(n in o)n!=a&&i(o,n)&&c.push(n);for(;t.length>l;)i(o,n=t[l++])&&(~r(c,n)||c.push(n));return c}},function(e,t,n){var i=n(25),s=Math.max,r=Math.min;e.exports=function(e,t){return(e=i(e))<0?s(e+t,0):r(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),s=n(33),r=n(34)("species");e.exports=function(e){var t;return s(e)&&("function"!=typeof(t=e.constructor)||t!==Array&&!s(t.prototype)||(t=void 0),i(t)&&null===(t=t[r])&&(t=void 0)),void 0===t?Array:t}},function(e,t,n){var i=n(0),s=n(32)(2);i(i.P+i.F*!n(13)([].filter,!0),"Array",{filter:function(e){return s(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),s=a(n(60)),r=a(n(61));function a(e){return e&&e.__esModule?e:{default:e}}function o(){return(o=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 d(){return"undefined"!=typeof navigator&&!(!navigator.userAgent.match(/(iPod|iPhone|iPad)/g)||!navigator.userAgent.match(/AppleWebKit/g))}var u=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,s=t.focused!==n;s&&!i&&this.elementReferences[n].focus();var r=-1===n,a=s&&null===t.focused;if(r&&a){var o=this.elementReferences[n];o.setSelectionRange(0,o.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,s=n.query,r=n.selected;this.props.confirmOnBlur?(t=e.query||s,this.props.onConfirm(i[r])):t=s,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,s=n.menuOpen,r=n.options,a=n.selected,o=null===e.relatedTarget,l=e.relatedTarget===this.elementReferences[-1],c=i!==t&&-1!==i;if(!c&&o||!c&&!l){var u=s&&d()&&!this.hasAutoselect();this.handleComponentBlur({menuOpen:u,query:this.templateInputValue(r[a])})}},n.handleInputBlur=function(e){var t=this.state,n=t.focused,i=t.menuOpen,s=t.options,r=t.query,a=t.selected,o=0<=n;if(d()&&!e.relatedTarget&&!o&&this.hasAutoselect()){var l=this.templateInputValue(s[a]);this.handleComponentBlur({menuOpen:!1,query:l})}else if(!o){var c=i&&d(),u=d()?r:this.templateInputValue(s[a]);this.handleComponentBlur({menuOpen:c,query:u})}},n.handleInputChange=function(e){var t=this,n=this.props,i=n.minLength,s=n.source,r=n.showAllValues,a=this.state.searchOnInteraction,o=this.hasAutoselect(),l=e.target.value,c=0===l.length,d=a||this.state.query.length!==l.length,u=l.length>=i;this.setState({query:l,ariaHint:c,searchOnInteraction:!0}),r||!c&&d&&u?s(l,function(e){var n=0<e.length;t.setState(function(t){return{menuOpen:n&&null!==t.focused,options:e,selected:o&&n?0:-1,validChoiceMade:!1}})}):!c&&u||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,s=t.options,r=this.props.minLength,a=!i&&n.length>=r&&0<s.length;a?this.setState(function(e){var t=e.menuOpen;return{focused:-1,menuOpen:a||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){d()||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,s=n.options,r=n.selected;r!==s.length-1&&i&&this.handleOptionFocus(r+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,r=n.cssNamespace,a=n.customInputClassName,l=n.wrapperClassName,c=n.optionClassName,u=n.menuClassName,h=n.displayMenu,p=n.enterKeyHint,m=n.autocomplete,f=n.id,g=n.minLength,v=n.name,b=n.placeholder,y=n.required,_=n.showAllValues,x=n.tNoResults,w=n.tStatusQueryTooShort,S=n.tStatusNoResults,E=n.tStatusSelectedOption,N=n.tStatusResults,C=n.tAssistiveHint,k=n.dropdownArrow,T=this.state,j=T.focused,A=T.hovered,O=T.menuOpen,L=T.options,D=T.query,M=T.selected,$=T.ariaHint,P=T.validChoiceMade,I=this.hasAutoselect(),R=-1===j,z=0===L.length,F=0!==D.length,H=D.length>=g,B=this.props.showNoOptionsFound&&R&&z&&F&&H,V=r+"__wrapper"+(l?" "+l:""),q=r+"__input",W=null!==j?" "+q+"--focused":"",U=this.props.showAllValues?" "+q+"--show-all-values":" "+q+"--default",G=r+"__dropdown-arrow-down",Y=-1!==j&&null!==j,X=r+"__menu",K=X+"--"+h,Z=X+"--"+(O||B?"visible":"hidden"),J=r+"__option",Q=r+"__hint",ee=this.templateInputValue(L[M]),te=ee&&0===ee.toLowerCase().indexOf(D.toLowerCase())&&I?D+ee.substr(D.length):"",ne=f+"__assistiveHint",ie=$?{"aria-describedby":ne}:null;return _&&"string"==typeof(e=k({className:G}))&&(e=(0,i.createElement)("div",{className:r+"__dropdown-arrow-down-wrapper",dangerouslySetInnerHTML:{__html:e}})),(0,i.createElement)("div",{className:V,onKeyDown:this.handleKeyDown},(0,i.createElement)(s.default,{id:f,length:L.length,queryLength:D.length,minQueryLength:g,selectedOption:this.templateInputValue(L[M]),selectedOptionIndex:M,validChoiceMade:P,isInFocus:null!==this.state.focused,tQueryTooShort:w,tNoResults:S,tSelectedOption:E,tResults:N}),te&&(0,i.createElement)("span",null,(0,i.createElement)("input",{className:Q,readonly:!0,tabIndex:"-1",value:te})),(0,i.createElement)("input",o({enterkeyhint:p||(d()&&this.hasAutoselect()?"done":""),"aria-expanded":O?"true":"false","aria-activedescendant":!!Y&&f+"__option--"+j,"aria-owns":f+"__listbox","aria-autocomplete":this.hasAutoselect()?"both":"list"},ie,{autoComplete:m,className:""+q+W+U+(a?" "+a:""),id:f,onClick:function(e){return t.handleInputClick(e)},onBlur:this.handleInputBlur},function(e){return{onInput:e}}(this.handleInputChange),{onFocus:this.handleInputFocus,name:v,placeholder:b,ref:function(e){t.elementReferences[-1]=e},type:"text",role:"combobox",required:y,value:D})),e,(0,i.createElement)("ul",{className:X+" "+K+" "+Z+(u?" "+u:""),onMouseLeave:function(e){return t.handleListMouseLeave(e)},id:f+"__listbox",role:"listbox"},L.map(function(e,n){var s=(-1===j?M===n:j===n)&&null===A?" "+J+"--focused":"",r=n%2?" "+J+"--odd":"",a=d()?"<span id="+f+"__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":j===n?"true":"false",className:""+J+s+r+(c?" "+c:""),dangerouslySetInnerHTML:{__html:t.templateSuggestion(e)+a},id:f+"__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})}),B&&(0,i.createElement)("li",{className:J+(c?" "+c:"")+" "+J+"--no-results"},x())),(0,i.createElement)("span",{id:ne,style:{display:"none"}},C()))},t}(i.Component);(t.default=u).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:r.default}},function(e,t,n){var i=n(9),s=n(53),r=n(28),a=n(26)("IE_PROTO"),o=function(){},l="prototype",c=function(){var e,t=n(15)("iframe"),i=r.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][r[i]];return c()};e.exports=Object.create||function(e,t){var n;return null!==e?(o[l]=i(e),n=new o,o[l]=null,n[a]=e):n=c(),void 0===t?n:s(n,t)}},function(e,t,n){var i=n(8),s=n(9),r=n(20);e.exports=n(3)?Object.defineProperties:function(e,t){s(e);for(var n,a=r(t),o=a.length,l=0;l<o;)i.f(e,n=a[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),s=n(2),r=n(57),a=[].slice,o={};e.exports=Function.bind||function(e){var t=i(this),n=a.call(arguments,1),l=function(){var i=n.concat(a.call(arguments));return this instanceof l?function(e,t,n){if(!(t in o)){for(var i=[],s=0;s<t;s++)i[s]="a["+s+"]";o[t]=Function("F,a","return new F("+i.join(",")+")")}return o[t](e,n)}(t,i.length,i):r(t,i,e)};return s(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),s=null==n?void 0:n[t];return void 0!==s?s.call(n,i):new RegExp(n)[t](String(i))},n]})},function(e,t,n){var i=n(7),s=n(16),r=n(4),a=n(12),o=n(34);e.exports=function(e,t,n){var l=o(e),c=n(a,l,""[e]),d=c[0],u=c[1];r(function(){var t={};return t[l]=function(){return 7},7!=""[e](t)})&&(s(String.prototype,e,d),i(RegExp.prototype,l,2==t?function(e,t){return u.call(e,this,t)}:function(e){return u.call(e,this)}))}},function(e,t,n){t.__esModule=!0,t.default=void 0,n(36);var i=n(5),s=function(e){function t(){for(var t,n=arguments.length,i=new Array(n),s=0;s<n;s++)i[s]=arguments[s];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,s=arguments;clearTimeout(n),n=setTimeout(function(){n=null,e.apply(i,s)},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,s=t.length,r=t.queryLength,a=t.minQueryLength,o=t.selectedOption,l=t.selectedOptionIndex,c=t.tQueryTooShort,d=t.tNoResults,u=t.tSelectedOption,h=t.tResults,p=this.state,m=p.bump,f=p.debounced,g=p.silenced,v=r<a,b=0===s,y=o?u(o,s,l):"";return e=v?c(a):b?d():h(s,y),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"},!g&&f&&m?e:""),(0,i.createElement)("div",{id:n+"__status--B",role:"status","aria-atomic":"true","aria-live":"polite"},g||!f||m?"":e))},t}(i.Component);(t.default=s).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),fg.exports),vg=h({__proto__:null,default:p(gg)},[gg]);export{R as Accordion,U as AccordionItem,J as Alert,ne as AnchorNavigation,uo as Autocomplete,se as Avatar,ae as Bar,oe as BarBreak,ce as BarItem,pe as BlockAction,me as BlockActionControl,fe as BlockActionIndicator,ge as BlockActionOverride,Me as BodyBanner,Ie as Breadcrumbs,Ae as Button,Fe as ButtonFill,He as ButtonGhost,ze as ButtonPrimary,X as Buttons,Ve as Card,We as CardProductHeader,Ge as CardSection,Zi as Carousel,Ms as CarouselHero,Ls as CarouselHeroItem,Ki as CarouselItem,Zs as CarouselPromotions,Tr as CartTable,fo as Checkbox,Ji as Container,Ye as Controls,_a as Countdown,Ca as CountdownTag,Ta as Cover,Aa as Divider,qa as Dropdown,Wa as DropdownDivider,Ua as DropdownItem,Ha as DropdownToggleButton,Xa as Expander,eo as FeatureAccordion,to as FeatureAccordionItem,Eh as Field,Nh as Fieldset,Bd as File,jh as Gauge,Te as Grid,Le as GridCol,Kd as Group,Dh as Hero,hh as Hint,B as Icon,Re as IconButton,Ph as IconList,As as Image,mr as InfoTooltip,eu as InputStepper,$h as Item,ph as Label,Q as Link,Rh as List,Fh as ListItem,qh as Loader,Wh as LoaderFullscreen,zm as Megamenu,Hm as MegamenuBlog,xh as Message,xf as Modal,gf as ModalBody,vf as ModalCloseButton,Sf as ModalProductFooter,Nf as ModalProductHeader,bf as ModalTitle,jf as Pagination,V as Pictogram,Of as Pill,Mf as Progress,Pf as PromoBanner,Bf as PromotionCard,Vf as PromotionCardContent,qf as PromotionCardImageWrapper,Wf as PromotionCardSection,Uf as PromotionCardTitle,iu as Radio,ih as RangeSlider,Yf as Section,ao as Select,Xf as Skeleton,Kf as SkipLink,Jf as SocialButton,z as SpritePathContext,F as SpritePathProvider,ng as StarRating,sg as Stepbar,Oh as Sticker,rg as Tab,ag as TabPanel,ur as Table,cg as Tabs,xr as Tag,Sr as TagButton,oh as TextArea,Ud as TextInput,ug as Tile,pg as Timeline,hr as Tooltip};
|
|
1
|
+
import e,{useRef as t,useEffect as n,useCallback as i,useState as s,createContext as r,useContext as a,cloneElement as o,createElement as l,forwardRef as c,useId as d,useMemo as u}from"react";function h(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 p(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var m,f,g,v={exports:{}},b={},y={};function _(){return g||(g=1,"production"===process.env.NODE_ENV?v.exports=function(){if(m)return b;m=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function n(t,n,i){var s=null;if(void 0!==i&&(s=""+i),void 0!==n.key&&(s=""+n.key),"key"in n)for(var r in i={},n)"key"!==r&&(i[r]=n[r]);else i=n;return n=i.ref,{$$typeof:e,type:t,key:s,ref:void 0!==n?n:null,props:i}}return b.Fragment=t,b.jsx=n,b.jsxs=n,b}():v.exports=(f||(f=1,"production"!==process.env.NODE_ENV&&function(){function t(e){if(null==e)return null;if("function"==typeof e)return e.$$typeof===C?null:e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case m:return"Fragment";case g:return"Profiler";case f:return"StrictMode";case x:return"Suspense";case w:return"SuspenseList";case N:return"Activity"}if("object"==typeof e)switch(e.tag,e.$$typeof){case p:return"Portal";case b:return e.displayName||"Context";case v:return(e._context.displayName||"Context")+".Consumer";case _:var n=e.render;return(e=e.displayName)||(e=""!==(e=n.displayName||n.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case S:return null!==(n=e.displayName||null)?n:t(e.type)||"Memo";case E:n=e._payload,e=e._init;try{return t(e(n))}catch(e){}}return null}function n(e){return""+e}function i(e){try{n(e);var t=!1}catch(e){t=!0}if(t){var i=(t=console).error,s="function"==typeof Symbol&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||"Object";return i.call(t,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",s),n(e)}}function s(e){if(e===m)return"<>";if("object"==typeof e&&null!==e&&e.$$typeof===E)return"<...>";try{var n=t(e);return n?"<"+n+">":"<...>"}catch(e){return"<...>"}}function r(){return Error("react-stack-top-frame")}function a(){var e=t(this.type);return O[e]||(O[e]=!0),void 0!==(e=this.props.ref)?e:null}function o(e,n,s,r,o,c){var u,p=n.children;if(void 0!==p)if(r){if(j(p)){for(r=0;r<p.length;r++)l(p[r]);Object.freeze&&Object.freeze(p)}}else l(p);if(T.call(n,"key")){p=t(e);var m=Object.keys(n).filter(function(e){return"key"!==e});r=0<m.length?"{key: someKey, "+m.join(": ..., ")+": ...}":"{key: someKey}",M[p+r]||(m=0<m.length?"{"+m.join(": ..., ")+": ...}":"{}",M[p+r]=!0)}if(p=null,void 0!==s&&(i(s),p=""+s),function(e){if(T.call(e,"key")){var t=Object.getOwnPropertyDescriptor(e,"key").get;if(t&&t.isReactWarning)return!1}return void 0!==e.key}(n)&&(i(n.key),p=""+n.key),"key"in n)for(var f in s={},n)"key"!==f&&(s[f]=n[f]);else s=n;return p&&function(e){function t(){d||(d=!0)}t.isReactWarning=!0,Object.defineProperty(e,"key",{get:t,configurable:!0})}(s,"function"==typeof e&&(e.displayName||e.name)),function(e,t,n,i,s,r){var o=n.ref;return e={$$typeof:h,type:e,key:t,props:n,_owner:i},null!==(void 0!==o?o:null)?Object.defineProperty(e,"ref",{enumerable:!1,get:a}):Object.defineProperty(e,"ref",{enumerable:!1,value:null}),e._store={},Object.defineProperty(e._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(e,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(e,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:s}),Object.defineProperty(e,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:r}),Object.freeze&&(Object.freeze(e.props),Object.freeze(e)),e}(e,p,s,null===(u=k.A)?null:u.getOwner(),o,c)}function l(e){c(e)?e._store&&(e._store.validated=1):"object"==typeof e&&null!==e&&e.$$typeof===E&&("fulfilled"===e._payload.status?c(e._payload.value)&&e._payload.value._store&&(e._payload.value._store.validated=1):e._store&&(e._store.validated=1))}function c(e){return"object"==typeof e&&null!==e&&e.$$typeof===h}var d,u=e,h=Symbol.for("react.transitional.element"),p=Symbol.for("react.portal"),m=Symbol.for("react.fragment"),f=Symbol.for("react.strict_mode"),g=Symbol.for("react.profiler"),v=Symbol.for("react.consumer"),b=Symbol.for("react.context"),_=Symbol.for("react.forward_ref"),x=Symbol.for("react.suspense"),w=Symbol.for("react.suspense_list"),S=Symbol.for("react.memo"),E=Symbol.for("react.lazy"),N=Symbol.for("react.activity"),C=Symbol.for("react.client.reference"),k=u.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,T=Object.prototype.hasOwnProperty,j=Array.isArray,A=console.createTask?console.createTask:function(){return null},O={},L=(u={react_stack_bottom_frame:function(e){return e()}}).react_stack_bottom_frame.bind(u,r)(),D=A(s(r)),M={};y.Fragment=m,y.jsx=function(e,t,n){var i=1e4>k.recentlyCreatedOwnerStacks++;return o(e,t,n,!1,i?Error("react-stack-top-frame"):L,i?A(s(e)):D)},y.jsxs=function(e,t,n){var i=1e4>k.recentlyCreatedOwnerStacks++;return o(e,t,n,!0,i?Error("react-stack-top-frame"):L,i?A(s(e)):D)}}()),y)),v.exports}var x,w,S=_(),E={exports:{}},N=(x||(x=1,w=E,function(){var e={}.hasOwnProperty;function t(){for(var e="",t=0;t<arguments.length;t++){var s=arguments[t];s&&(e=i(e,n(s)))}return e}function n(n){if("string"==typeof n||"number"==typeof n)return n;if("object"!=typeof n)return"";if(Array.isArray(n))return t.apply(null,n);if(n.toString!==Object.prototype.toString&&!n.toString.toString().includes("[native code]"))return n.toString();var s="";for(var r in n)e.call(n,r)&&n[r]&&(s=i(s,r));return s}function i(e,t){return t?e?e+" "+t:e+t:e}w.exports?(t.default=t,w.exports=t):window.classNames=t}()),E.exports),C=p(N);let k=0;function T(e){return`id-${k+=1}`}const j=(e,s={})=>{const r=t(null),a=t(s),o=t(null);n(()=>{a.current=s??{}},[s]);const l=i(t=>{o.current&&o.current!==t&&r.current&&(r.current.destroy?.(),r.current=null),o.current=t,t&&(null===r.current?r.current=new e(t,a.current):r.current.update?.(a.current))},[e]);return n(()=>()=>{r.current&&(r.current.destroy?.(),r.current=null),o.current=null},[e]),[l,r]},A={current:0};function O(e){const[i,r]=s(e),a=t(e);return n(()=>{if(!e){A.current+=1;const e=`id-${A.current}`;a.current=e,r(e)}},[e]),i||a.current||e||"id-0"}const L={TAB:["Tab"],ESC:["Esc","Escape"],ARROWLEFT:["Left","ArrowLeft"],ARROWUP:["Up","ArrowUp"],ARROWRIGHT:["Right","ArrowRight"],ARROWDOWN:["Down","ArrowDown"]};class D{constructor(e,t={direction:"horizontal"}){this.elems=e,this.config=t,this.isActive=!1,this.onKeydown=this.onKeydown.bind(this)}init(){document.addEventListener("keydown",this.onKeydown),this.isActive=!0}destroy(){document.removeEventListener("keydown",this.onKeydown),this.isActive=!1}update(e){this.elems=e}onKeydown(e){const t=this.elems.indexOf(document.activeElement);(L.ARROWUP.includes(e.key)||L.ARROWDOWN.includes(e.key))&&"horizontal"===this.config.direction||(L.ARROWLEFT.includes(e.key)||L.ARROWRIGHT.includes(e.key))&&"vertical"===this.config.direction||((L.ARROWDOWN.includes(e.key)||L.ARROWRIGHT.includes(e.key))&&(e.preventDefault(),t>=0&&t<this.elems.length-1?this.elems[t+1].focus():this.elems[0].focus()),(L.ARROWUP.includes(e.key)||L.ARROWLEFT.includes(e.key))&&(e.preventDefault(),t>=1?this.elems[t-1].focus():this.elems[this.elems.length-1].focus()),L.TAB.includes(e.key)&&this.destroy())}}const M={buttonSelector:"[data-accordion-toggle]"};let $=class{constructor(e,t){return this.element=e,this.config={...M,...t},this.onFocus=this.onFocus.bind(this),this.onClick=this.onClick.bind(this),this.element.ODS_Accordion=this,this.init(),this}onFocus(e){this.rovingTabindex.isActive||this.rovingTabindex.init();const t=e.currentTarget;window.location.hash.substring(1)===t.getAttribute("id")&&"false"===t.getAttribute("aria-expanded")&&t.click()}toggleAccordionItem(e){const t=e.getAttribute("aria-controls"),n=t?this.element.querySelector(`#${t}`):null;if(!n)return;const i=!("true"===e.getAttribute("aria-expanded"));e.setAttribute("aria-expanded",String(i)),i?(n.removeAttribute("hidden"),this.scrollTriggerIntoModalView(e)):n.setAttribute("hidden","")}scrollTriggerIntoModalView(e){const t=e.closest(".modal__dialog");if(!t)return;const n=()=>{const n=t.getBoundingClientRect(),i=e.getBoundingClientRect(),s=this.getStickyHeaderOffset(t),r=i.top-n.top+t.scrollTop-s-8;t.scrollTo({top:Math.max(0,r),behavior:"smooth"})};"function"!=typeof window.requestAnimationFrame?setTimeout(n,0):window.requestAnimationFrame(n)}getStickyHeaderOffset(e){const t=e.querySelector(".modal__header");if(!t)return 0;const n=e.getBoundingClientRect(),i=t.getBoundingClientRect();return Math.max(0,i.bottom-n.top)}init(){this.buttons=Array.from(this.element.querySelectorAll(this.config.buttonSelector)),this.rovingTabindex?this.rovingTabindex.update(this.buttons):this.rovingTabindex=new D(this.buttons,{direction:"vertical"}),this.buttons.forEach(e=>{e.addEventListener("focus",this.onFocus),e.addEventListener("click",this.onClick)})}onClick(e){const t=e.currentTarget;this.toggleAccordionItem(t)}destroy(){this.rovingTabindex.destroy(),this.buttons.forEach(e=>{e.removeEventListener("focus",this.onFocus),e.removeEventListener("click",this.onClick)})}update(){this.destroy(),this.init()}static getInstance(e){return e&&e.ODS_Accordion?e.ODS_Accordion:null}};var P=r(null);const I="accordion",R=({className:e,children:t,headingLevel:n=3,size:i,isEnclosed:s,noTopBorder:r,...a})=>{const[o]=j($),l=C(I,{[`${I}--${i}`]:i,[`${I}--enclosed`]:s,[`${I}--no-top-border`]:r},e);return S.jsx(P.Provider,{value:n,children:S.jsx("ul",{className:l,ref:o,"data-accordion":"true",...a,children:t})})};R.displayName="Accordion";const z=e.createContext("/sprite.svg"),F=({children:e,value:t="/sprite.svg",...n})=>S.jsx(z.Provider,{value:t,...n,children:e}),H="icon",B=({className:e,alt:t,color:n,name:i,size:s,spritePath:r="/sprite.svg",type:o="icon",...l})=>{const c=a(z),d="pictogram"===o,u=C(H,{[`${H}--${s}`]:s,[`${H}--${n}`]:n,[`${H}--pictogram`]:d},e);if(d){const e="/sprite.svg"!==r||void 0===c?r:c;return S.jsxs("svg",{className:u,"aria-hidden":void 0!==t?void 0:"true",role:void 0!==t?"img":void 0,...l,children:[void 0!==t&&t.length>0&&S.jsx("title",{children:t}),S.jsx("use",{className:`${H}__use ${H}__use--light`,xlinkHref:`${e}#${i}`}),S.jsx("use",{className:`${H}__use ${H}__use--dark`,xlinkHref:`${e}#${i}--dark`})]})}return S.jsxs("svg",{className:u,"aria-hidden":void 0!==t?void 0:"true",role:void 0!==t?"img":void 0,...l,children:[void 0!==t&&t.length>0&&S.jsx("title",{children:t}),S.jsx("use",{xlinkHref:"/sprite.svg"!==r||void 0===c?`${r}#${i}`:`${c}#${i}`})]})};B.displayName="Icon";const V=({name:e,...t})=>S.jsx(B,{name:e,type:"pictogram",...t});V.displayName="Pictogram";const q="accordion",W=({className:t,title:n,renderTitle:i,id:s,isActive:r,toggleAttribute:a="data-accordion-toggle",...o})=>{const l=`h${e.useContext(P)||3}`,c={type:"button","aria-expanded":r,className:`${q}__button`,"aria-controls":`${s}-section`,id:s,[a]:!0,...o};return S.jsx(l,{className:C(`${q}__header`,t),children:S.jsxs("button",{...c,children:[i?i(n):S.jsx("span",{className:"accordion__title",children:n}),S.jsx(B,{className:`${q}__icon`,name:"chevron-down",size:"medium"})]})})};W.displayName="AccordionHeader";const U=({id:e,isActive:t,title:n,renderTitle:i,renderHeader:s,children:r,className:a,...o})=>{const l=C("accordion__item",a),c=O(e);return S.jsxs("li",{className:l,children:[s?s(n,c,t||!1):S.jsx(W,{id:c,isActive:t,title:n,renderTitle:i,...o}),S.jsx("div",{id:`${c}-section`,role:"region","aria-labelledby":c,className:C("accordion__body",{"is-active":t}),...t?{}:{hidden:!0},children:r})]})};U.displayName="AccordionItem";const G=({condition:e,wrapper:t,children:n})=>e?o(t,void 0,n):n;G.displayName="ConditionalWrapper";const Y="buttons",K=({isStackedOnXs:e,children:t,className:n,...i})=>S.jsx("div",{className:C(Y,{[`${Y}--stack-on-xs`]:e},n),...i,children:t});K.displayName="Buttons";const X={warning:"warning-important",info:"info",danger:"error-severe",success:"checked"},Z="alert",J=({className:t,type:n="info",title:i,renderTitle:s,description:r,headingLevel:a=3,actionButtons:o,isFullWidth:l,onClose:c,...d})=>{const u=`h${a}`,h=C(Z,{[`${Z}--${n}`]:n,[`${Z}--full-width`]:l},t),p=s&&s({className:t,type:n,title:i,renderTitle:s,description:r,headingLevel:a,actionButtons:o,isFullWidth:l,onClose:c,...d})||i&&e.createElement(u,{className:`${Z}__title`},i);return S.jsxs("div",{className:h,...d,children:[S.jsx("div",{className:`${Z}__icon`,children:S.jsx(B,{name:X[n],color:n,size:"medium"})}),S.jsxs("div",{className:`${Z}__content`,children:[p,r&&S.jsx(G,{condition:"string"==typeof r,wrapper:S.jsx("p",{}),children:r}),o&&S.jsx(G,{condition:e.Children.count(o)>1,wrapper:S.jsx(K,{}),children:e.Children.map(o,e=>e)})]}),c&&S.jsx("div",{className:`${Z}__close`,children:S.jsx("button",{onClick:c,children:S.jsx(B,{name:"close",size:"medium"})})})]})};J.displayName="Alert";const Q=({className:t,children:n,isUnderline:i,isNormal:s,noAccent:r,tag:a="a",href:o,...l})=>{const c=C("link",{underline:i,normal:s,"no-accent":r},t);return e.createElement(a,{href:o,className:c,...l},n)};Q.displayName="Link";let ee=class e{constructor(e){return this.isAutoScrolling=!1,this.isPointerDown=!1,this.isDraggingNav=!1,this.suppressClick=!1,this.dragStartX=0,this.dragStartScrollLeft=0,this.scrollTimeout=null,this.scrollEndFallbackTimeout=null,this.navLinks=null,this.sections=[],this.lastActiveIndex=0,this.autoScrollTargetId=null,this.autoScrollCorrectionCount=0,this.lastStickyOffset=0,this.modalClassObserver=null,this.isForcedFixed=!1,this.wasStickyFloating=!1,this.forcedFixedTop=0,this.forcedFixedLeft=0,this.fixedFlowPlaceholder=null,this.originalInlineStyles=null,this.element=e,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.mouseDownHandler=this.handleMouseDown.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.modalStateHandler=this.handleModalStateChange.bind(this),this.element.ODS_AnchorNavigation=this,this.init(),this}static getInstance(e){return e&&e.ODS_AnchorNavigation?e.ODS_AnchorNavigation:null}findMegamenuElement(){return document.querySelector("[data-megamenu]")}getMegamenuOffsetHeight(){return this.megamenuElement?.offsetHeight||0}updateStickyPosition(){if(this.isForcedFixed)return;if(!this.megamenuElement)return;const t=this.getMegamenuOffsetHeight(),n=t!==this.lastStickyOffset;if(this.lastStickyOffset=t,this.element.style.top=`${t}px`,this.updateStickyFloatingState(),!n||!this.isAutoScrolling||!this.autoScrollTargetId||this.autoScrollCorrectionCount>=e.MAX_SCROLL_CORRECTIONS)return;const i=document.getElementById(this.autoScrollTargetId);i&&(this.autoScrollCorrectionCount+=1,this.scrollToSection(i,"smooth"))}setupMegamenuObserver(){if(this.megamenuElement=this.findMegamenuElement(),!this.megamenuElement)return this.lastStickyOffset=0,void(this.element.style.top="0px");this.updateStickyPosition(),window.addEventListener("scroll",this.scrollHandler,{passive:!0}),this.resizeObserver=new ResizeObserver(this.updateStickyPosition.bind(this)),this.resizeObserver.observe(this.megamenuElement)}setupScrollSpy(){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(e=>e.getAttribute("href")).filter(e=>e?.includes("#")).map(e=>document.getElementById(e.split("#")[1])).filter(Boolean),this.teardownScrollSpyListeners(),this.element.addEventListener("click",this.anchorClickHandler),this.element.addEventListener("mousedown",this.mouseDownHandler),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(),this.alignInitialHashIfNeeded()}teardownScrollSpyListeners(){this.element.removeEventListener("click",this.anchorClickHandler),this.element.removeEventListener("mousedown",this.mouseDownHandler),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)}handleMouseDown(e){if(0!==e.button)return;const t=e.target;t&&this.element.contains(t)&&(t.closest("a, button, input, select, textarea, label, [role='button'], [contenteditable='true']")||e.preventDefault())}handleAnchorClick(e){if(this.suppressClick)return e.preventDefault(),e.stopPropagation(),void(this.suppressClick=!1);const t=e.target,n=t?.closest(".anchor-navigation__item");if(!n||!this.element.contains(n))return;e.preventDefault();const i=n.getAttribute("href");if(!i||!i.includes("#"))return;const s=i.split("#")[1],r=document.getElementById(s);if(!r)return;this.startAutoScroll(s),n.blur(),this.scrollToSection(r,"smooth");const a=`${window.location.pathname}${window.location.search}#${s}`;window.history.pushState(null,"",a),this.initScrollSpy(s)}getHashSectionId(){const e=window.location.hash;if(!e||e.length<=1)return null;let t=e.slice(1);try{t=decodeURIComponent(t)}catch{}return t||null}startAutoScroll(e){this.isAutoScrolling=!0,this.autoScrollTargetId=e,this.autoScrollCorrectionCount=0}resetAutoScrollState(){this.isAutoScrolling=!1,this.autoScrollTargetId=null,this.autoScrollCorrectionCount=0}tryCorrectAutoScrollAlignment(){if(!this.autoScrollTargetId)return!0;const t=document.getElementById(this.autoScrollTargetId);if(!t)return!0;const n=this.getTargetTop(t);if(Math.abs(window.scrollY-n)<=e.SCROLL_ALIGNMENT_TOLERANCE)return!0;if(this.autoScrollCorrectionCount>=e.MAX_SCROLL_CORRECTIONS)return!0;this.autoScrollCorrectionCount+=1;const i=1===this.autoScrollCorrectionCount?"smooth":"auto";return this.scrollToSection(t,i),!1}getTotalStickyOffset(){return(this.megamenuElement?this.megamenuElement.offsetHeight:0)+this.element.offsetHeight}getConfiguredScrollPaddingTop(){const e=window.getComputedStyle(document.documentElement).scrollPaddingTop,t=Number.parseFloat(e);return Number.isFinite(t)&&t>0?t:0}getEffectiveScrollOffset(){const e=this.getConfiguredScrollPaddingTop();return e>0?e:this.getTotalStickyOffset()}getTargetTop(e){const t=e.getBoundingClientRect().top+window.scrollY-this.getEffectiveScrollOffset();return Math.max(0,t)}scrollToSection(e,t){window.scrollTo({top:this.getTargetTop(e),behavior:t})}alignInitialHashIfNeeded(){const e=this.getHashSectionId();if(!e)return;const t=document.getElementById(e);t&&(this.startAutoScroll(e),requestAnimationFrame(()=>{this.scrollToSection(t,"auto"),requestAnimationFrame(()=>{this.handleScrollEnd()})}))}initScrollSpy(t=null){if(!this.navLinks||!this.sections.length)return;let n,i=-1;if(this.navLinks.forEach(e=>e.classList.remove("is-active")),t)n=document.getElementById(t)||void 0,n&&(i=this.sections.findIndex(e=>e.id===t));else{const t=this.getEffectiveScrollOffset(),s=window.scrollY+t+e.SCROLLSPY_CENTER_BUFFER;for(let e=0;e<this.sections.length;e++){const t=this.sections[e],{top:r,height:a}=t.getBoundingClientRect(),o=r+window.scrollY;if(s>=o&&s<o+a){n=t,i=e;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){const e=n.getAttribute("id");let i=this.element.querySelector(`.anchor-navigation__item[href="#${e}"]`);if(i||(i=this.element.querySelector(`.anchor-navigation__item[href="${this.currentPath}#${e}"]`)),i||(i=Array.from(this.navLinks).find(t=>{const n=t.getAttribute("href");return n&&n.endsWith(`#${e}`)})),i){i.classList.add("is-active");const e=this.element.querySelector(".anchor-navigation__content-left");e&&this.scrollActiveLinkIntoView(e,i,Boolean(t))}}}scrollActiveLinkIntoView(t,n,i=!1){const s=Math.max(0,t.scrollWidth-t.clientWidth),r=t.getBoundingClientRect(),a=n.getBoundingClientRect(),o=a.left-r.left+t.scrollLeft+a.width/2-t.clientWidth/2,l=window.innerWidth<768?"auto":"smooth",c=Math.min(s,Math.max(0,o)),d=Math.abs(t.scrollLeft-c)<=e.SCROLL_ALIGNMENT_TOLERANCE;!i&&d||("function"!=typeof t.scrollTo?t.scrollLeft=c:t.scrollTo({left:c,behavior:l}))}setupDragScroll(){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())}teardownDragScroll(){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}updateDragState(){if(!this.contentLeftElement)return;const 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()}updateHorizontalOverflowState(){if(!this.contentLeftElement)return;const t=this.element.querySelector(".anchor-navigation__content");if(!t)return;const n=this.contentLeftElement.scrollWidth-this.contentLeftElement.clientWidth,i=n>e.SCROLL_EDGE_TOLERANCE,s=this.contentLeftElement.scrollLeft<=e.SCROLL_EDGE_TOLERANCE,r=this.contentLeftElement.scrollLeft>=n-e.SCROLL_EDGE_TOLERANCE;t.classList.toggle("has-left-overflow",i&&!s),t.classList.toggle("has-right-overflow",i&&!r)}handleDragStart(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))}handleDragMove(t){if(!this.isPointerDown||!this.contentLeftElement)return;const 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)}handleDragEnd(){if(!this.isPointerDown)return;this.isPointerDown=!1,window.removeEventListener("mousemove",this.dragMoveHandler),window.removeEventListener("mouseup",this.dragEndHandler),this.contentLeftElement&&this.contentLeftElement.classList.remove("is-dragging");const e=this.isDraggingNav;this.isDraggingNav=!1,e&&window.setTimeout(()=>{this.suppressClick=!1},0)}handleNativeDragStart(e){this.contentLeftElement?.classList.contains("is-draggable")&&e.preventDefault()}handleScrollEndFallback(){this.scrollEndFallbackTimeout&&clearTimeout(this.scrollEndFallbackTimeout),this.scrollEndFallbackTimeout=setTimeout(()=>{this.handleScrollEnd()},e.SCROLL_END_DEBOUNCE_MS)}handleResize(){if(this.isForcedFixed){const e=this.element.parentElement?.getBoundingClientRect(),t=this.getMegamenuOffsetHeight();e&&(this.forcedFixedLeft=Math.round(e.left),this.element.style.width=`${Math.round(e.width)}px`),t>0&&(this.forcedFixedTop=t),this.element.style.top=`${this.forcedFixedTop}px`,this.element.style.left=`${this.forcedFixedLeft}px`,this.fixedFlowPlaceholder&&(this.fixedFlowPlaceholder.style.height=`${this.element.offsetHeight}px`)}else this.updateStickyFloatingState();this.initScrollSpy(),this.updateDragState(),this.updateHorizontalOverflowState()}isAnyModalOpen(){return document.body.classList.contains(e.MODAL_OPEN_BODY_CLASS)}isCurrentlyStickyFloating(){if(!this.megamenuElement)return!1;const t=this.getMegamenuOffsetHeight();return this.element.getBoundingClientRect().top<=t+e.STICKY_FLOAT_TOLERANCE}updateStickyFloatingState(){this.isAnyModalOpen()||this.isForcedFixed||(this.wasStickyFloating=this.isCurrentlyStickyFloating())}ensureFixedFlowPlaceholder(){this.fixedFlowPlaceholder||(this.fixedFlowPlaceholder=document.createElement("div"),this.fixedFlowPlaceholder.setAttribute("aria-hidden","true"),this.fixedFlowPlaceholder.style.width="100%",this.fixedFlowPlaceholder.style.pointerEvents="none",this.fixedFlowPlaceholder.style.visibility="hidden",this.element.insertAdjacentElement("afterend",this.fixedFlowPlaceholder)),this.fixedFlowPlaceholder.style.height=`${this.element.offsetHeight}px`}removeFixedFlowPlaceholder(){this.fixedFlowPlaceholder&&(this.fixedFlowPlaceholder.remove(),this.fixedFlowPlaceholder=null)}applyFixedPosition(){if(this.isForcedFixed)return;const e=this.element.getBoundingClientRect(),t=this.element.parentElement?.getBoundingClientRect(),n=this.getMegamenuOffsetHeight();this.originalInlineStyles={position:this.element.style.position,top:this.element.style.top,left:this.element.style.left,right:this.element.style.right,width:this.element.style.width},this.forcedFixedTop=n>0?n:Math.max(0,Math.round(e.top)),this.forcedFixedLeft=Math.max(0,Math.round(t?.left??e.left));const i=Math.round(t?.width??e.width);this.element.style.position="fixed",this.element.style.top=`${this.forcedFixedTop}px`,this.element.style.left=`${this.forcedFixedLeft}px`,this.element.style.right="",this.element.style.width=`${i}px`,this.ensureFixedFlowPlaceholder(),this.isForcedFixed=!0}restoreStickyPosition(e=!0){if(!this.isForcedFixed)return;const t=this.originalInlineStyles;this.element.style.position=t?.position||"",this.element.style.top=t?.top||"",this.element.style.left=t?.left||"",this.element.style.right=t?.right||"",this.element.style.width=t?.width||"",this.resetFixedPositionState(),e&&(this.updateStickyPosition(),this.initScrollSpy())}handleModalStateChange(){this.isAnyModalOpen()?(this.isForcedFixed||this.wasStickyFloating)&&this.applyFixedPosition():(this.restoreStickyPosition(!1),this.updateStickyFloatingState())}setupModalObserver(){this.updateStickyFloatingState(),this.handleModalStateChange(),document.body&&"undefined"!=typeof MutationObserver&&(this.modalClassObserver=new MutationObserver(this.modalStateHandler),this.modalClassObserver.observe(document.body,{attributes:!0,attributeFilter:["class"]}))}teardownModalObserver(){this.modalClassObserver&&(this.modalClassObserver.disconnect(),this.modalClassObserver=null)}teardownMegamenuObserver(){window.removeEventListener("scroll",this.scrollHandler),this.resizeObserver&&(this.resizeObserver.disconnect(),this.resizeObserver=null)}clearAutoScrollTimers(){this.scrollTimeout&&(clearTimeout(this.scrollTimeout),this.scrollTimeout=null)}resetFixedPositionState(){this.originalInlineStyles=null,this.isForcedFixed=!1,this.wasStickyFloating=!1,this.forcedFixedTop=0,this.forcedFixedLeft=0,this.removeFixedFlowPlaceholder()}resetNavigationState(){this.megamenuElement=null,this.lastStickyOffset=0,this.navLinks=null,this.sections=[],this.lastActiveIndex=0,this.autoScrollTargetId=null,this.autoScrollCorrectionCount=0,this.resetFixedPositionState()}handleScrollSpy(){this.isAutoScrolling?(this.scrollTimeout&&clearTimeout(this.scrollTimeout),this.scrollTimeout=setTimeout(()=>{this.handleScrollEnd()},e.SCROLL_END_DEBOUNCE_MS)):this.initScrollSpy()}handleScrollEnd(){this.scrollTimeout&&(clearTimeout(this.scrollTimeout),this.scrollTimeout=null),this.tryCorrectAutoScrollAlignment()&&(this.resetAutoScrollState(),this.initScrollSpy())}init(){this.setupMegamenuObserver(),this.setupScrollSpy(),this.setupDragScroll(),this.setupModalObserver()}destroy(){this.clearAutoScrollTimers(),this.teardownMegamenuObserver(),this.teardownScrollSpyListeners(),this.teardownDragScroll(),this.teardownModalObserver(),this.restoreStickyPosition(!1),this.element.style.top="",this.resetNavigationState(),this.element.ODS_AnchorNavigation=null}update(){this.clearAutoScrollTimers(),this.teardownMegamenuObserver(),this.teardownScrollSpyListeners(),this.teardownDragScroll(),this.teardownModalObserver(),this.restoreStickyPosition(!1),this.resetNavigationState(),this.init()}};ee.MODAL_OPEN_BODY_CLASS="has-modal",ee.STICKY_FLOAT_TOLERANCE=3,ee.SCROLLSPY_CENTER_BUFFER=50,ee.TOP_SECTION_THRESHOLD=100,ee.DRAG_START_THRESHOLD=6,ee.SCROLL_END_DEBOUNCE_MS=150,ee.SCROLL_EDGE_TOLERANCE=1,ee.SCROLL_ALIGNMENT_TOLERANCE=1,ee.MAX_SCROLL_CORRECTIONS=2;const te="anchor-navigation",ne=({items:e,className:t,children:n,...i})=>{const s=C(te,t),[r]=j(ee);return S.jsx("nav",{className:s,ref:r,"data-anchor-navigation":!0,"aria-label":"Sekcie stránky",...i,children:S.jsxs("div",{className:`${te}__content`,children:[S.jsx("ul",{className:C("list-inline horizontal-scroll mb-none",`${te}__content-left`),children:e.map(e=>S.jsx("li",{children:S.jsx(Q,{href:e.href,className:C(`${te}__item`,{"is-active":e.isActive}),children:e.label})},e.href))}),n&&S.jsx("div",{className:`${te}__content-right`,children:n})]})})};ne.displayName="AnchorNavigation";const ie="avatar",se=({alt:e="",className:t,iconName:n,src:i,...s})=>{const r=Boolean(n),a=C(ie,t);return S.jsxs("div",{className:a,...s,children:[r&&S.jsx("span",{className:`${ie}__icon`,"aria-hidden":"true",children:S.jsx(B,{name:n,size:"small"})}),S.jsx("img",{className:`${ie}__image`,src:i,alt:e})]})};se.displayName="Avatar";const re="bar",ae=e.forwardRef((e,t)=>{const{align:n,canWrap:i=!0,isVertical:s,space:r,tag:a="div",className:o,children:l,...c}=e,d=C(re,{[`align-items-${n}`]:n,[`${re}--vertical`]:s,[`${re}--nowrap`]:!i,[`${re}--space-${r}`]:r},o);return S.jsx(a,{className:d,ref:t,...c,children:l})});ae.displayName="Bar";const oe=e.forwardRef((e,t)=>{const{className:n,tag:i="div",children:s,...r}=e,a=C("bar__break",n);return S.jsx(i,{className:a,ref:t,...r,children:s})});oe.displayName="BarBreak";const le="bar__item",ce=e.forwardRef((e,t)=>{const{className:n,tag:i="div",isFilling:s,canShrink:r,children:a,...o}=e,l=i,c=C(le,{[`${le}--fill`]:s,[`${le}--shrinkable`]:r},n);return S.jsx(l,{className:c,ref:t,...o,children:a})});ce.displayName="BarItem";const de=({className:t,children:n,...i})=>e.cloneElement(n,{..."object"==typeof n.props&&null!==n.props?n.props:{},...i,className:C(n.props&&n.props.className,t)}),ue=e.createContext({isIndicating:!1,isActive:!1,setIsActive:()=>{},setIsIndicating:()=>{},hasBorderOnHover:void 0}),he=e=>{const[t,n]=s(!1),[i,r]=s(!1);return S.jsx(ue.Provider,{value:{isIndicating:t,setIsIndicating:n,isActive:i,setIsActive:r,hasBorderOnHover:e.hasBorderOnHover},children:e.children})},pe=e=>{const{hasBorderOnHover:t,className:n,...i}=e;return S.jsx(he,{hasBorderOnHover:t,children:S.jsx(de,{...i,className:C("block-action",n,{"block-action--border-on-hover":t}),"data-block-action":!0})})};pe.displayName="BlockAction";const me=e=>{const{isActive:t,setIsActive:n,setIsIndicating:i}=a(ue);return S.jsx(de,{...e,className:"block-action__control",onMouseEnter:()=>i(!0),onMouseLeave:()=>i(!1),onFocus:()=>i(!0),onBlur:()=>i(!1),onClick:()=>n(!t)})};me.displayName="BlockActionControl";const fe=e=>{const{isActive:t,isIndicating:n}=a(ue);return S.jsx(de,{...e,className:C("block-action__indicator",e.className,{"is-indicating":n,"is-active":t})})};fe.displayName="BlockActionIndicator";const ge=e=>S.jsx(de,{...e,className:"block-action__override"});function ve(e,t="-"){return e?`${t}${e}`:""}function be(e,t,n){return Object.keys(t).map(i=>{switch(typeof t[i]){case"boolean":return`${e}${"xs"!==i?`--${i}`:"-"}${ve(n)}`;case"string":case"number":return`${e}${"xs"!==i?`--${i}`:"-"}${ve(t[i])}${ve(n)}`;default:return null}}).join(" ")}function ye(e,t,n){return["boolean"==typeof t?`${e}${ve(n,"--")}`:null,null!==t&&"object"==typeof t?be(e,t,n):null,{[`${e}--${t}${ve(n)}`]:"string"==typeof t||"number"==typeof t}]}ge.displayName="BlockActionOverride";var _e,xe={exports:{}},we=(_e||(_e=1,xe.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 s(e){return"number"==typeof e&&isFinite(e)}function r(e,n,i,r,a,o,l,c,d,u,h,p){var m,f,g,v,b,y=p,_="",x="";return o&&(p=o(p)),!!s(p)&&(!1!==e&&0===parseFloat(p.toFixed(e))&&(p=0),p<0&&(m=!0,p=Math.abs(p)),!1!==e&&(b=e,v=(v=p).toString().split("e"),p=(+((v=(v=Math.round(+(v[0]+"e"+(v[1]?+v[1]+b:b)))).toString().split("e"))[0]+"e"+(v[1]?+v[1]-b:-b))).toFixed(b)),-1!==(p=p.toString()).indexOf(".")?(g=(f=p.split("."))[0],i&&(_=i+f[1])):g=p,n&&(g=t(g).match(/.{1,3}/g),g=t(g.join(t(n)))),m&&c&&(x+=c),r&&(x+=r),m&&d&&(x+=d),x+=g,x+=_,a&&(x+=a),u&&(x=u(x,y)),x)}function a(e,t,i,r,a,o,l,c,d,u,h,p){var m,f="";return h&&(p=h(p)),!(!p||"string"!=typeof p)&&(c&&n(p,c)&&(p=p.replace(c,""),m=!0),r&&n(p,r)&&(p=p.replace(r,"")),d&&n(p,d)&&(p=p.replace(d,""),m=!0),a&&function(e,t){return e.slice(-1*t.length)===t}(p,a)&&(p=p.slice(0,-1*a.length)),t&&(p=p.split(t).join("")),i&&(p=p.replace(i,".")),m&&(f+="-"),""!==(f=(f+=p).replace(/[^0-9\.\-.]/g,""))&&(f=Number(f),l&&(f=l(f)),!!s(f)&&f))}function o(t,n,i){var s,r=[];for(s=0;s<e.length;s+=1)r.push(t[e[s]]);return r.push(i),n.apply("",r)}return function t(n){if(!(this instanceof t))return new t(n);"object"==typeof n&&(n=function(t){var n,s,r,a={};for(void 0===t.suffix&&(t.suffix=t.postfix),n=0;n<e.length;n+=1)if(void 0===(r=t[s=e[n]]))"negative"!==s||a.negativeBefore?"mark"===s&&"."!==a.thousand?a[s]=".":a[s]=!1:a[s]="-";else if("decimals"===s){if(!(r>=0&&r<8))throw new Error(s);a[s]=r}else if("encoder"===s||"decoder"===s||"edit"===s||"undo"===s){if("function"!=typeof r)throw new Error(s);a[s]=r}else{if("string"!=typeof r)throw new Error(s);a[s]=r}return i(a,"mark","thousand"),i(a,"prefix","negative"),i(a,"prefix","negativeBefore"),a}(n),this.to=function(e){return o(n,r,e)},this.from=function(e){return o(n,a,e)})}}()),xe.exports),Se=p(we);function Ee(e){return e.charAt(0).toUpperCase()+e.slice(1)}const Ne={decimals:2,mark:",",thousand:" ",suffix:" €"};function Ce(e,t){return Se({...Ne,...t,...e%1==0?{decimals:0}:{}}).to(e)}const ke="grid",Te=e.forwardRef(({className:e,hAlign:t,vAlign:n,tag:i="div",justifyHeight:s,rowGapSize:r,columnGapSize:a,...o},l)=>{const c=C(ke,{[`align-items-${n}`]:n,[`justify-content-${t}`]:t,[`${ke}--justify-height`]:s},...ye(`${ke}-column-gap`,a),...ye(`${ke}-row-gap`,r),e),d=i;return S.jsx(d,{className:c,ref:l,...o})});Te.displayName="Grid";const je="btn",Ae=e.forwardRef((e,t)=>{const{className:n,children:i,htmlType:s="button",href:r,isActive:a,isDisabled:o,size:l,isSquare:c,type:d,elemRef:u,...h}=e,p=C(je,{[`${je}--square`]:c,[`${je}--${l}`]:l,[`${je}--${d}`]:d,[`${je}--preserve-width`]:e.preserveWidth,"is-active":a},n);if(r){const e=h;return S.jsx("a",{href:r,className:p,"aria-disabled":o?"true":void 0,ref:u||t,...e,children:i})}{const e=h;return S.jsx("button",{type:s,className:p,disabled:!!o||void 0,"aria-disabled":o?"true":void 0,ref:u||t,...e,children:i})}});Ae.displayName="Button";const Oe="grid__col",Le=({className:e,align:t,tag:n="div",size:i,...s})=>{const r=ye(Oe,i),a=C(Oe,...r.filter(Boolean),{[`align-self-${t}`]:t},e),o=n;return S.jsx(o,{className:a,...s})};Le.displayName="GridCol";const De="body-banner",Me=({className:e,size:t,color:n="background-primary",image:i,children:s,buttonText:r,buttonClassName:a,...o})=>{const l=C(De,{[`${De}--${t}`]:t,[n]:"background-primary"!==n},e);return S.jsxs(Te,{className:l,...o,children:[S.jsxs(Le,{size:{xs:12,md:"large"===t?6:12},className:`${De}__content`,children:["large"!==t&&i&&S.jsx("div",{className:`${De}__image`,children:i}),S.jsxs("div",{className:`${De}__content-inner`,children:[S.jsx("div",{children:s}),S.jsx("div",{className:`${De}__button`,children:S.jsx(Ae,{size:"large",type:"fill",className:C("mb-none",a),children:r})})]})]}),"large"===t&&i&&S.jsx(Le,{size:{xs:12,md:6},className:`${De}__image`,children:i})]})},$e=({className:e,isCurrent:t,text:n,url:i,...s})=>{const r=C("osk-breadcrumbs__item",e);return t?S.jsx("li",{className:r,...t?{"aria-current":"page"}:{},...s,children:n}):i?S.jsx("li",{className:r,children:S.jsx("a",{href:i,className:"osk-breadcrumbs__link",...s,children:n})}):S.jsx("li",{className:r,...s,children:n})};$e.displayName="BreadcrumbItem";const Pe="osk-breadcrumbs",Ie=({className:e,label:t,items:n,...i})=>{const s=C(Pe,e),r=n.length-1;return S.jsx("nav",{"aria-label":t,className:s,...i,children:S.jsx("ol",{className:`${Pe}__container`,children:n.map((e,t)=>l($e,{...e,key:e.text,isCurrent:t===r}))})})};Ie.displayName="Breadcrumbs";const Re=e.forwardRef(({iconName:e,iconPosition:t="left",iconClassName:n,children:i,size:s,isSquare:r,...a},o)=>{const l="large"===s?"medium":s??"medium",c=({className:t,...i})=>S.jsx(B,{name:e,size:l,className:C(n,t),...i});return r?S.jsxs(Ae,{size:s,isSquare:!0,...a,ref:o,children:[S.jsx(c,{}),S.jsx("span",{className:"visually-hidden",children:i})]}):S.jsxs(Ae,{ref:o,size:s,...a,children:["left"===t&&S.jsx(c,{className:"btn__icon-left"}),i,"right"===t&&S.jsx(c,{className:"btn__icon-right"})]})});Re.displayName="IconButton";const ze=e=>S.jsx(Ae,{type:"primary",...e});ze.displayName="ButtonPrimary";const Fe=e=>S.jsx(Ae,{type:"fill",...e});Fe.displayName="ButtonFill";const He=e=>S.jsx(Ae,{type:"ghost",...e});He.displayName="ButtonGhost";const Be="card",Ve=e.forwardRef(({className:e,color:t="background-primary",noBorder:n,...i},s)=>{const r=C(Be,{[t]:"background-primary"!==t&&"background-contrast"!==t,[`${t} text-inverse`]:"background-contrast"===t,[`${Be}--no-border`]:n},e);return S.jsx("div",{className:r,ref:s,...i})});Ve.displayName="Card";const qe="card__product",We=e.forwardRef(({className:e,children:t,image:n,space:i,...s},r)=>{const a=C(`${qe}-header`,{[`${qe}-header--space-small`]:"small"===i},e),o=`${qe}-content`;return S.jsxs("div",{className:a,ref:r,...s,children:[S.jsx("div",{className:o,children:t}),n]})});We.displayName="CardProductHeader";const Ue="card__section",Ge=e.forwardRef(({className:e,color:t,isFilling:n,space:i,...s},r)=>{const a=C(Ue,{[String(t)]:t&&"background-primary"!==t&&"background-contrast"!==t,[`${t} text-inverse`]:"background-contrast"===t,[`${Ue}--fill`]:n,[`${Ue}--space-small`]:"small"===i,[`${Ue}--space-large`]:"large"===i},e);return S.jsx("div",{className:a,ref:r,...s})});Ge.displayName="CardSection";const Ye=e.forwardRef((e,t)=>{const{elemRef:n,className:i,icon:s,isDisabled:r,...a}=e,o=C("controls",i),l=a;return S.jsx("button",{type:"button",className:o,disabled:!!r||void 0,"aria-disabled":r?"true":void 0,ref:n||t,...l,children:S.jsx(B,{name:s})})});function Ke(e=""){return e.trim().split(" ").filter(e=>!!e.trim())}function Xe(e,t=0){return setTimeout(e,t)}function Ze(){return Date.now()}function Je(e){return"object"==typeof e&&null!==e&&!!e.constructor&&"Object"===Object.prototype.toString.call(e).slice(8,-1)}function Qe(e){return"undefined"!=typeof HTMLElement&&e instanceof HTMLElement||!!e&&"object"==typeof e&&(1===e.nodeType||11===e.nodeType)}function et(e,...t){const n=Object(e);for(let e=0;e<t.length;e+=1){const i=t[e];if(null==i||Qe(i))continue;const s=i,r=Object.keys(Object(s)).filter(e=>"__proto__"!==e&&"constructor"!==e&&"prototype"!==e);for(const e of r){const t=Object.getOwnPropertyDescriptor(s,e);if(!t||!t.enumerable)continue;const i=s[e];Je(n[e])&&Je(i)?i.__swiper__?n[e]=i:et(n[e],i):!Je(n[e])&&Je(i)?(n[e]={},i.__swiper__?n[e]=i:et(n[e],i)):n[e]=i}}return n}function tt(e,t,n){e.style.setProperty(t,n)}function nt(e,t=""){const n=[...e.children];return e instanceof HTMLSlotElement&&n.push(...e.assignedElements()),t?n.filter(e=>e.matches(t)):n}function it(e,t=[]){const n=document.createElement(e);return n.classList.add(...Array.isArray(t)?t:Ke(t)),n}function st(e){const t=e.getBoundingClientRect();return{top:t.top-(e.clientTop||0),left:t.left-(e.clientLeft||0)}}function rt(e,t){return window.getComputedStyle(e,null).getPropertyValue(t)}function at(e){if(e&&e.parentNode)return[...e.parentNode.children].indexOf(e)}function ot(e,t){const n=[];let i=e.parentElement;for(;i;)t&&!i.matches(t)||n.push(i),i=i.parentElement;return n}function lt(e,t,n){{const n=window.getComputedStyle(e,null);return e["width"===t?"offsetWidth":"offsetHeight"]+parseFloat(n.getPropertyValue("width"===t?"margin-right":"margin-top"))+parseFloat(n.getPropertyValue("width"===t?"margin-left":"margin-bottom"))}}function ct(e){return(Array.isArray(e)?e:[e]).filter(e=>!!e)}function dt(e,t=""){const n=globalThis.trustedTypes;e.innerHTML=void 0!==n?n.createPolicy("html",{createHTML:e=>e}).createHTML(t):t}let ut,ht,pt;function mt(){return ut||(ut="undefined"==typeof window?{touch:!1}:{touch:"ontouchstart"in window||navigator.maxTouchPoints>0}),ut}function ft(e={}){return ht||(ht=function({userAgent:e}={}){if("undefined"==typeof window)return{ios:!1,android:!1};const t=mt(),n=navigator.platform,i=e||navigator.userAgent,s={ios:!1,android:!1},r=/(Android);?[\s/]+([\d.]+)?/.test(i),a=/(iPhone\sOS|iOS|iPod)/.test(i),o=/iPad/.test(i),l="MacIntel"===n&&t.touch&&navigator.maxTouchPoints>1,c=o||l;return r&&!("Win32"===n)&&(s.os="android",s.android=!0),(c||a)&&(s.os="ios",s.ios=!0),s}(e)),ht}function gt(){return pt||(pt=function(){if("undefined"==typeof window)return{isSafari:!1,isWebView:!1,need3dFix:!1};const e=ft(),t=navigator.userAgent,n=t.toLowerCase(),i=n.includes("safari")&&!n.includes("chrome")&&!n.includes("android"),s=/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(t);return{isSafari:i,isWebView:s,need3dFix:i||s&&e.ios}}()),pt}Ye.displayName="Controls";const vt=(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(()=>{if(n.shadowRoot){const t=n.shadowRoot.querySelector(`.${e.params.lazyPreloaderClass}`);t&&!t.lazyPreloaderManaged&&t.remove()}})),t&&!t.lazyPreloaderManaged&&t.remove()}},bt=(e,t)=>{if(!e.slides[t])return;const n=e.slides[t].querySelector('[loading="lazy"]');n&&n.removeAttribute("loading")},yt=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),s=e.activeIndex;if(e.params.grid&&(e.params.grid.rows??1)>1){const n=s,r=[n-t];return r.push(...Array.from({length:t}).map((e,t)=>n+i+t)),void e.slides.forEach((t,n)=>{void 0!==t.column&&r.includes(t.column)&&bt(e,n)})}const r=s+i-1;if(e.params.rewind||e.params.loop)for(let i=s-t;i<=r+t;i+=1){const t=(i%n+n)%n;(t<s||t>r)&&bt(e,t)}else for(let i=Math.max(s-t,0);i<=Math.min(r+t,n-1);i+=1)i!==s&&(i>r||i<s)&&bt(e,i)},_t=(e,t)=>!!(e.grid&&t.grid&&t.grid.rows>1);var xt={setBreakpoint:function(){const e=this,{realIndex:t,initialized:n,params:i,el:s}=e,r=i.breakpoints;if(!r||r&&0===Object.keys(r).length)return;const a="window"!==i.breakpointsBase&&i.breakpointsBase?"container":i.breakpointsBase,o=["window","container"].includes(i.breakpointsBase)||!i.breakpointsBase?e.el:document.querySelector(i.breakpointsBase),l=e.getBreakpoint(r,a,o);if(!l||e.currentBreakpoint===l)return;const c=(l in r?r[l]:void 0)||e.originalParams,d=_t(e,i),u=_t(e,c),h=e.params.grabCursor,p=c.grabCursor,m=i.enabled;d&&!u?(s.classList.remove(`${i.containerModifierClass}grid`,`${i.containerModifierClass}grid-column`),e.emitContainerClasses()):!d&&u&&(s.classList.add(`${i.containerModifierClass}grid`),(c.grid.fill&&"column"===c.grid.fill||!c.grid.fill&&"column"===i.grid.fill)&&s.classList.add(`${i.containerModifierClass}grid-column`),e.emitContainerClasses()),h&&!p?e.unsetGrabCursor():!h&&p&&e.setGrabCursor();const f=(e,t)=>e[t];["navigation","pagination","scrollbar"].forEach(t=>{const n=f(c,t);if(void 0===n)return;const s=f(i,t),r="object"==typeof s&&null!==s&&s.enabled,a="object"==typeof n&&null!==n&&n.enabled,o=e[t];r&&!a&&o?.disable?.(),!r&&a&&o?.enable?.()});const g=c.direction&&c.direction!==i.direction,v=i.loop&&(c.slidesPerView!==i.slidesPerView||g),b=i.loop;g&&n&&e.changeDirection(),et(e.params,c);const y=e.params.enabled,_=e.params.loop;Object.assign(e,{allowTouchMove:e.params.allowTouchMove,allowSlideNext:e.params.allowSlideNext,allowSlidePrev:e.params.allowSlidePrev}),m&&!y?e.disable():!m&&y&&e.enable(),e.currentBreakpoint=l,e.emit("_beforeBreakpoint",c),n&&(v?(e.loopDestroy(),e.loopCreate(t),e.updateSlides()):!b&&_?(e.loopCreate(t),e.updateSlides()):b&&!_&&e.loopDestroy()),e.emit("breakpoint",c)},getBreakpoint:function(e,t="window",n){if(!e||"container"===t&&!n)return;let i=!1;const s="window"===t?window.innerHeight:n.clientHeight,r=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}});r.sort((e,t)=>parseInt(String(e.value),10)-parseInt(String(t.value),10));for(let e=0;e<r.length;e+=1){const{point:s,value:a}=r[e];"window"===t?window.matchMedia(`(min-width: ${a}px)`).matches&&(i=s):a<=n.clientWidth&&(i=s)}return i||"max"}},wt={addClasses:function(){const e=this,{classNames:t,params:n,rtl:i,el:s,device:r}=e,a=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:r.android},{ios:r.ios},{"css-mode":n.cssMode},{centered:n.cssMode&&n.centeredSlides},{"watch-progress":n.watchSlidesProgress}],n.containerModifierClass);t.push(...a),s.classList.add(...t),e.emitContainerClasses()},removeClasses:function(){const{el:e,classNames:t}=this;e&&"string"!=typeof e&&(e.classList.remove(...t),this.emitContainerClasses())}};const St={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};var Et={on(e,t,n){const i=this;if(!i.eventsListeners||i.destroyed)return i;if("function"!=typeof t)return i;const s=n?"unshift":"push";return e.split(" ").forEach(e=>{i.eventsListeners[e]||(i.eventsListeners[e]=[]),i.eventsListeners[e][s](t)}),i},once(e,t,n){const i=this;if(!i.eventsListeners||i.destroyed)return i;if("function"!=typeof t)return i;const s=function(...n){i.off(e,s),s.__emitterProxy&&delete s.__emitterProxy,t.apply(i,n)};return s.__emitterProxy=t,i.on(e,s,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,s)=>{(i===t||i.__emitterProxy&&i.__emitterProxy===t)&&n.eventsListeners[e].splice(s,1)})}),n):n},emit(...e){const t=this;if(!t.eventsListeners||t.destroyed)return t;if(!t.eventsListeners)return t;let n,i,s;if("string"==typeof e[0]||Array.isArray(e[0]))n=e[0],i=e.slice(1,e.length),s=t;else{const r=e[0];n=r.events,i=r.data??[],s=r.context||t}return i.unshift(s),(Array.isArray(n)?n:n.split(" ")).forEach(e=>{t.eventsAnyListeners&&t.eventsAnyListeners.length&&t.eventsAnyListeners.forEach(t=>{t.apply(s,[e,...i])}),t.eventsListeners&&t.eventsListeners[e]&&t.eventsListeners[e].forEach(e=>{e.apply(s,i)})}),t}};function Nt(e){const t=this;t.destroyed||t.enabled&&(t.allowClick||(t.params.preventClicks&&e.preventDefault(),t.params.preventClicksPropagation&&t.animating&&(e.stopPropagation(),e.stopImmediatePropagation())))}function Ct(){const e=this;e.destroyed||e.documentTouchHandlerProceeded||(e.documentTouchHandlerProceeded=!0,e.params.touchReleaseOnEdges&&(e.el.style.touchAction="auto"))}function kt(e){const t=this;t.destroyed||(vt(t,e.target),t.params.cssMode||"auto"!==t.params.slidesPerView&&!t.params.autoHeight||t.update())}function Tt(){const e=this,{params:t,el:n}=e;if(n&&0===n.offsetWidth)return;t.breakpoints&&e.setBreakpoint();const{allowSlideNext:i,allowSlidePrev:s,snapGrid:r}=e,a=e.virtual&&e.params.virtual?.enabled;e.allowSlideNext=!0,e.allowSlidePrev=!0,e.updateSize(),e.updateSlides(),e.updateSlidesClasses();const o=a&&t.loop;if(!("auto"===t.slidesPerView||t.slidesPerView>1)||!e.isEnd||e.isBeginning||e.params.centeredSlides||o)e.params.loop&&!a?e.slideToLoop(e.realIndex,0,!1,!0):e.slideTo(e.activeIndex,0,!1,!0);else{const t=a?e.virtual.slides.length:e.slides.length;e.slideTo(t-1,0,!1,!0)}if(e.autoplay&&e.autoplay.running&&e.autoplay.paused){const t=e.autoplay;clearTimeout(t.resizeTimeout),t.resizeTimeout=setTimeout(()=>{e.autoplay&&e.autoplay.running&&e.autoplay.paused&&e.autoplay.resume()},500)}e.allowSlidePrev=s,e.allowSlideNext=i,e.params.watchOverflow&&r!==e.snapGrid&&e.checkOverflow()}function jt(){const e=this;if(e.destroyed)return;const{wrapperEl:t,rtlTranslate:n,enabled:i}=e;if(!i)return;let s;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 r=e.maxTranslate()-e.minTranslate();s=0===r?0:(e.translate-e.minTranslate())/r,s!==e.progress&&e.updateProgress(n?-e.translate:e.translate),e.emit("setTranslate",e.translate,!1)}function At(e){const t=this;if(t.destroyed)return;const n=t.touchEventsData;let i=e.originalEvent??e;if("touchend"===i.type||"touchcancel"===i.type){const e=[...i.changedTouches].find(e=>e.identifier===n.touchId);if(!e||e.identifier!==n.touchId)return}else{if(null!==n.touchId)return;if(i.pointerId!==n.pointerId)return}if(["pointercancel","pointerout","pointerleave","contextmenu"].includes(i.type)&&(!["pointercancel","contextmenu"].includes(i.type)||!t.browser.isSafari&&!t.browser.isWebView))return;n.pointerId=null,n.touchId=null;const{params:s,touches:r,rtlTranslate:a,slidesGrid:o,enabled:l}=t;if(!l)return;if(!s.simulateTouch&&"mouse"===i.pointerType)return;if(n.allowTouchCallbacks&&t.emit("touchEnd",i),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 c=Ze(),d=c-n.touchStartTime;if(t.allowClick){const e=i.path??(i.composedPath&&i.composedPath());t.updateClickedSlide(e&&e[0],e),t.emit("tap click",i),d<300&&c-n.lastClickTime<300&&t.emit("doubleTap doubleClick",i)}if(n.lastClickTime=Ze(),Xe(()=>{t.destroyed||(t.allowClick=!0)}),!n.isTouched||!n.isMoved||!t.swipeDirection||0===r.diff&&!n.loopSwapReset||n.currentTranslate===n.startTranslate&&!n.loopSwapReset)return n.isTouched=!1,n.isMoved=!1,void(n.startMoving=!1);let u;if(n.isTouched=!1,n.isMoved=!1,n.startMoving=!1,u=s.followFinger?a?t.translate:-t.translate:-(n.currentTranslate??0),s.cssMode)return;if(s.freeMode&&s.freeMode.enabled)return void t.freeMode.onTouchEnd({currentPos:u});const h=u>=-t.maxTranslate()&&!t.params.loop;let p=0,m=t.slidesSizesGrid[0];for(let e=0;e<o.length;e+=e<s.slidesPerGroupSkip?1:s.slidesPerGroup){const t=e<s.slidesPerGroupSkip-1?1:s.slidesPerGroup;void 0!==o[e+t]?(h||u>=o[e]&&u<o[e+t])&&(p=e,m=o[e+t]-o[e]):(h||u>=o[e])&&(p=e,m=o[o.length-1]-o[o.length-2])}let f=null,g=null;s.rewind&&(t.isBeginning?g=s.virtual?.enabled&&t.virtual?t.virtual.slides.length-1:t.slides.length-1:t.isEnd&&(f=0));const v=(u-o[p])/m,b=p<s.slidesPerGroupSkip-1?1:s.slidesPerGroup;if(d>s.longSwipesMs){if(!s.longSwipes)return void t.slideTo(t.activeIndex);"next"===t.swipeDirection&&(v>=s.longSwipesRatio?t.slideTo(s.rewind&&t.isEnd?f:p+b):t.slideTo(p)),"prev"===t.swipeDirection&&(v>1-s.longSwipesRatio?t.slideTo(p+b):null!==g&&v<0&&Math.abs(v)>s.longSwipesRatio?t.slideTo(g):t.slideTo(p))}else{if(!s.shortSwipes)return void t.slideTo(t.activeIndex);!t.navigation||i.target!==t.navigation.nextEl&&i.target!==t.navigation.prevEl?("next"===t.swipeDirection&&t.slideTo(null!==f?f:p+b),"prev"===t.swipeDirection&&t.slideTo(null!==g?g:p)):i.target===t.navigation.nextEl?t.slideTo(p+b):t.slideTo(p)}}function Ot(e){const t=this;if(t.destroyed)return;const n=t.touchEventsData,{params:i,touches:s,rtlTranslate:r,enabled:a}=t;if(!a)return;if(!i.simulateTouch&&"mouse"===e.pointerType)return;const o=e,l=o.originalEvent??o;if("pointermove"===l.type){if(null!==n.touchId)return;if(l.pointerId!==n.pointerId)return}let c;if("touchmove"===l.type){const e=[...l.changedTouches].find(e=>e.identifier===n.touchId);if(!e||e.identifier!==n.touchId)return;c=e}else c=l;if(!n.isTouched)return void(n.startMoving&&n.isScrolling&&t.emit("touchMoveOpposite",l));const d=c.pageX,u=c.pageY;if(l.preventedByNestedSwiper)return s.startX=d,void(s.startY=u);if(!t.allowTouchMove)return l.target.matches(n.focusableElements)||(t.allowClick=!1),void(n.isTouched&&(Object.assign(s,{startX:d,startY:u,currentX:d,currentY:u}),n.touchStartTime=Ze()));if(i.touchReleaseOnEdges&&!i.loop)if(t.isVertical()){if(u<s.startY&&t.translate<=t.maxTranslate()||u>s.startY&&t.translate>=t.minTranslate())return n.isTouched=!1,void(n.isMoved=!1)}else{if(r&&(d>s.startX&&-t.translate<=t.maxTranslate()||d<s.startX&&-t.translate>=t.minTranslate()))return;if(!r&&(d<s.startX&&t.translate<=t.maxTranslate()||d>s.startX&&t.translate>=t.minTranslate()))return}if(document.activeElement&&document.activeElement.matches(n.focusableElements)&&document.activeElement!==l.target&&"mouse"!==l.pointerType&&document.activeElement.blur(),document.activeElement&&l.target===document.activeElement&&l.target.matches(n.focusableElements))return n.isMoved=!0,void(t.allowClick=!1);n.allowTouchCallbacks&&t.emit("touchMove",l),s.previousX=s.currentX,s.previousY=s.currentY,s.currentX=d,s.currentY=u;const h=s.currentX-s.startX,p=s.currentY-s.startY;if(t.params.threshold&&Math.sqrt(h**2+p**2)<t.params.threshold)return;if(void 0===n.isScrolling){let e;t.isHorizontal()&&s.currentY===s.startY||t.isVertical()&&s.currentX===s.startX?n.isScrolling=!1:h*h+p*p>=25&&(e=180*Math.atan2(Math.abs(p),Math.abs(h))/Math.PI,n.isScrolling=t.isHorizontal()?e>i.touchAngle:90-e>i.touchAngle)}if(n.isScrolling&&t.emit("touchMoveOpposite",l),void 0===n.startMoving&&(s.currentX===s.startX&&s.currentY===s.startY||(n.startMoving=!0)),n.isScrolling||"touchmove"===l.type&&n.preventTouchMoveFromPointerMove)return void(n.isTouched=!1);if(!n.startMoving)return;t.allowClick=!1,!i.cssMode&&l.cancelable&&l.preventDefault(),i.touchMoveStopPropagation&&!i.nested&&l.stopPropagation();let m=t.isHorizontal()?h:p,f=t.isHorizontal()?s.currentX-s.previousX:s.currentY-s.previousY;i.oneWayMovement&&(m=Math.abs(m)*(r?1:-1),f=Math.abs(f)*(r?1:-1)),s.diff=m,m*=i.touchRatio,r&&(m=-m,f=-f);const g=t.touchesDirection;t.swipeDirection=m>0?"prev":"next",t.touchesDirection=f>0?"prev":"next";const v=t.params.loop&&!i.cssMode,b="next"===t.touchesDirection&&t.allowSlideNext||"prev"===t.touchesDirection&&t.allowSlidePrev;if(!n.isMoved){if(v&&b&&t.loopFix({direction:t.swipeDirection}),n.startTranslate=t.getTranslate(),t.setTransition(0),t.animating){const e=new window.CustomEvent("transitionend",{bubbles:!0,cancelable:!0,detail:{bySwiperTouchMove:!0}});t.wrapperEl.dispatchEvent(e)}n.allowMomentumBounce=!1,!i.grabCursor||!0!==t.allowSlideNext&&!0!==t.allowSlidePrev||t.setGrabCursor(!0),t.emit("sliderFirstMove",l)}if((new Date).getTime(),!1!==i._loopSwapReset&&n.isMoved&&n.allowThresholdMove&&g!==t.touchesDirection&&v&&b&&Math.abs(m)>=1)return Object.assign(s,{startX:d,startY:u,currentX:d,currentY:u,startTranslate:n.currentTranslate}),n.loopSwapReset=!0,void(n.startTranslate=n.currentTranslate);t.emit("sliderMove",l),n.isMoved=!0;const y=n.startTranslate??0;n.currentTranslate=m+y;let _=!0,x=i.resistanceRatio;if(i.touchReleaseOnEdges&&(x=0),m>0?(v&&b&&n.allowThresholdMove&&n.currentTranslate>(i.centeredSlides?t.minTranslate()-t.slidesSizesGrid[t.activeIndex+1]-("auto"!==i.slidesPerView&&t.slides.length-i.slidesPerView>=2?t.slidesSizesGrid[t.activeIndex+1]+t.params.spaceBetween:0)-t.params.spaceBetween:t.minTranslate())&&t.loopFix({direction:"prev",setTranslate:!0,activeSlideIndex:0}),n.currentTranslate>t.minTranslate()&&(_=!1,i.resistance&&(n.currentTranslate=t.minTranslate()-1+(-t.minTranslate()+y+m)**x))):m<0&&(v&&b&&n.allowThresholdMove&&n.currentTranslate<(i.centeredSlides?t.maxTranslate()+t.slidesSizesGrid[t.slidesSizesGrid.length-1]+t.params.spaceBetween+("auto"!==i.slidesPerView&&t.slides.length-i.slidesPerView>=2?t.slidesSizesGrid[t.slidesSizesGrid.length-1]+t.params.spaceBetween:0):t.maxTranslate())&&t.loopFix({direction:"next",setTranslate:!0,activeSlideIndex:t.slides.length-("auto"===i.slidesPerView?t.slidesPerViewDynamic():Math.ceil(parseFloat(String(i.slidesPerView))))}),n.currentTranslate<t.maxTranslate()&&(_=!1,i.resistance&&(n.currentTranslate=t.maxTranslate()+1-(t.maxTranslate()-y-m)**x))),_&&(l.preventedByNestedSwiper=!0),!t.allowSlideNext&&"next"===t.swipeDirection&&(n.currentTranslate??0)<y&&(n.currentTranslate=y),!t.allowSlidePrev&&"prev"===t.swipeDirection&&(n.currentTranslate??0)>y&&(n.currentTranslate=y),t.allowSlidePrev||t.allowSlideNext||(n.currentTranslate=y),i.threshold>0){if(!(Math.abs(m)>i.threshold||n.allowThresholdMove))return void(n.currentTranslate=n.startTranslate);if(!n.allowThresholdMove)return n.allowThresholdMove=!0,s.startX=s.currentX,s.startY=s.currentY,n.currentTranslate=n.startTranslate,void(s.diff=t.isHorizontal()?s.currentX-s.startX:s.currentY-s.startY)}i.followFinger&&!i.cssMode&&((i.freeMode&&i.freeMode.enabled&&t.freeMode||i.watchSlidesProgress)&&(t.updateActiveIndex(),t.updateSlidesClasses()),i.freeMode&&i.freeMode.enabled&&t.freeMode&&t.freeMode.onTouchMove(),t.updateProgress(n.currentTranslate),t.setTranslate(n.currentTranslate??0))}function Lt(e,t,n){const{params:i}=e,s=i.edgeSwipeDetection,r=i.edgeSwipeThreshold;return!s||!(n<=r||n>=window.innerWidth-r)||"prevent"===s&&(t.preventDefault(),!0)}function Dt(e){const t=this;if(t.destroyed)return;const n=e.originalEvent??e,i=t.touchEventsData;if("pointerdown"===n.type){const e=n;if(null!==i.pointerId&&i.pointerId!==e.pointerId)return;i.pointerId=e.pointerId}else"touchstart"===n.type&&1===n.targetTouches.length&&(i.touchId=n.targetTouches[0].identifier);if("touchstart"===n.type)return void Lt(t,n,n.targetTouches[0].pageX);const{params:s,touches:r,enabled:a}=t;if(!a)return;if(!s.simulateTouch&&"mouse"===n.pointerType)return;if(t.animating&&s.preventInteractionOnTransition)return;!t.animating&&s.cssMode&&s.loop&&t.loopFix();let o=n.target;if("wrapper"===s.touchEventsTarget&&!function(e,t){let n=t.contains(e);return!n&&t instanceof HTMLSlotElement&&(n=[...t.assignedElements()].includes(e),n||(n=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():[])}return!1}(e,t))),n}(o,t.wrapperEl))return;const l=n;if("number"==typeof l.which&&3===l.which)return;if("number"==typeof l.button&&l.button>0)return;if(i.isTouched&&i.isMoved)return;const c=!!s.noSwipingClass&&""!==s.noSwipingClass,d=n.composedPath?n.composedPath():n.path;c&&n.target&&n.target.shadowRoot&&d&&(o=d[0]);const u=s.noSwipingSelector?s.noSwipingSelector:`.${s.noSwipingClass}`,h=!(!n.target||!n.target.shadowRoot);if(s.noSwiping&&(h?(p=u,function e(t){if(!t||t===document||t===window)return null;let n=t;n.assignedSlot&&(n=n.assignedSlot);const i=n.closest(p);if(!i&&!n.getRootNode)return null;const s=n.getRootNode();return i||e(s.host)}(o)):o.closest(u)))return void(t.allowClick=!0);var p;if(s.swipeHandler&&"string"==typeof s.swipeHandler&&!o.closest(s.swipeHandler))return;const m=n;r.currentX=m.pageX,r.currentY=m.pageY;const f=r.currentX,g=r.currentY;if(!Lt(t,n,f))return;Object.assign(i,{isTouched:!0,isMoved:!1,allowTouchCallbacks:!0,isScrolling:void 0,startMoving:void 0}),r.startX=f,r.startY=g,i.touchStartTime=Ze(),t.allowClick=!0,t.updateSize(),t.swipeDirection=void 0,s.threshold>0&&(i.allowThresholdMove=!1);let v=!0;o.matches(i.focusableElements)&&(v=!1,"SELECT"===o.nodeName&&(i.isTouched=!1)),document.activeElement&&document.activeElement.matches(i.focusableElements)&&document.activeElement!==o&&("mouse"===m.pointerType||"mouse"!==m.pointerType&&!o.matches(i.focusableElements))&&document.activeElement.blur();const b=v&&t.allowTouchMove&&s.touchStartPreventDefault;!s.touchStartForcePreventDefault&&!b||o.isContentEditable||n.preventDefault(),s.freeMode&&s.freeMode.enabled&&t.freeMode&&t.animating&&!s.cssMode&&t.freeMode.onTouchStart(),t.emit("touchStart",n)}const Mt=(e,t)=>{const{params:n,el:i,wrapperEl:s,device:r}=e,a=!!n.nested,o="on"===t?"addEventListener":"removeEventListener",l=t;if(!i||"string"==typeof i)return;document[o]("touchstart",e.onDocumentTouchStart,{passive:!1,capture:a}),i[o]("touchstart",e.onTouchStart,{passive:!1}),i[o]("pointerdown",e.onTouchStart,{passive:!1}),document[o]("touchmove",e.onTouchMove,{passive:!1,capture:a}),document[o]("pointermove",e.onTouchMove,{passive:!1,capture:a}),document[o]("touchend",e.onTouchEnd,{passive:!0}),document[o]("pointerup",e.onTouchEnd,{passive:!0}),document[o]("pointercancel",e.onTouchEnd,{passive:!0}),document[o]("touchcancel",e.onTouchEnd,{passive:!0}),document[o]("pointerout",e.onTouchEnd,{passive:!0}),document[o]("pointerleave",e.onTouchEnd,{passive:!0}),document[o]("contextmenu",e.onTouchEnd,{passive:!0}),(n.preventClicks||n.preventClicksPropagation)&&i[o]("click",e.onClick,!0),n.cssMode&&s[o]("scroll",e.onScroll);const c=t=>{e[l](t,Tt,!0)};n.updateOnWindowResize?c(r.ios||r.android?"resize orientationchange observerUpdate":"resize observerUpdate"):c("observerUpdate"),i[o]("load",e.onLoad,{capture:!0})};var $t={loopCreate:function(e,t){const n=this,{params:i,slidesEl:s}=n;if(!i.loop||n.virtual&&n.params.virtual?.enabled)return;const r=()=>{nt(s,`.${i.slideClass}, swiper-slide`).forEach((e,t)=>{e.setAttribute("data-swiper-slide-index",String(t))})},a=n.grid&&i.grid&&i.grid.rows>1;i.loopAddBlankSlides&&(i.slidesPerGroup>1||a)&&(()=>{const e=nt(s,`.${i.slideBlankClass}`);e.forEach(e=>{e.remove()}),e.length>0&&(n.recalcSlides(),n.updateSlides())})();const o=i.slidesPerGroup*(a?i.grid.rows:1),l=n.slides.length%o!==0,c=a&&n.slides.length%i.grid.rows!==0,d=e=>{for(let t=0;t<e;t+=1){const e=n.isElement?it("swiper-slide",[i.slideBlankClass]):it("div",[i.slideClass,i.slideBlankClass]);n.slidesEl.append(e)}};l?(i.loopAddBlankSlides&&(d(o-n.slides.length%o),n.recalcSlides(),n.updateSlides()),r()):c?(i.loopAddBlankSlides&&(d(i.grid.rows-n.slides.length%i.grid.rows),n.recalcSlides(),n.updateSlides()),r()):r();const u=i.centeredSlides||!!i.slidesOffsetBefore||!!i.slidesOffsetAfter;n.loopFix({slideRealIndex:e,direction:u?void 0:"next",initial:t})},loopFix:function(e={}){const{slideRealIndex:t,slideTo:n=!0,direction:i,setTranslate:s,activeSlideIndex:r,initial:a,byController:o,byMousewheel:l}=e;let c=r;const d=this;if(!d.params.loop)return;d.emit("beforeLoopFix");const{slides:u,allowSlidePrev:h,allowSlideNext:p,slidesEl:m,params:f}=d,{centeredSlides:g,slidesOffsetBefore:v,slidesOffsetAfter:b,initialSlide:y}=f,_=g||!!v||!!b;if(d.allowSlidePrev=!0,d.allowSlideNext=!0,d.virtual&&f.virtual?.enabled){if(n){const e=d.virtual.slides.length,t=d.virtual.slidesBefore??0;_||0!==d.snapIndex?_&&d.snapIndex<f.slidesPerView?d.slideTo(e+d.snapIndex,0,!1,!0):d.snapIndex===d.snapGrid.length-1&&d.slideTo(t,0,!1,!0):d.slideTo(e,0,!1,!0)}return d.allowSlidePrev=h,d.allowSlideNext=p,void d.emit("loopFix")}let x=f.slidesPerView;"auto"===x?x=d.slidesPerViewDynamic():(x=Math.ceil(parseFloat(String(f.slidesPerView))),_&&x%2==0&&(x+=1));const w=f.slidesPerGroupAuto?x:f.slidesPerGroup;let S=_?Math.max(w,Math.ceil(x/2)):w;S%w!==0&&(S+=w-S%w),S+=f.loopAdditionalSlides,d.loopedSlides=S;const E=d.grid&&f.grid&&f.grid.rows>1;u.length<x+S||"cards"===d.params.effect&&u.length<x+2*S||E&&f.grid.fill;const N=[],C=[],k=E?Math.ceil(u.length/f.grid.rows):u.length,T=a&&k-y<x&&!_;let j=T?y:d.activeIndex;void 0===c?c=d.getSlideIndex(u.find(e=>e.classList.contains(f.slideActiveClass))):j=c;const A="next"===i||!i,O="prev"===i||!i;let L=0,D=0;const M=(E?u[c].column??0:c)+(_&&void 0===s?-x/2+.5:0);if(M<S){L=Math.max(S-M,w);for(let e=0;e<S-M;e+=1){const t=e-Math.floor(e/k)*k;if(E){const e=k-t-1;for(let t=u.length-1;t>=0;t-=1)u[t].column===e&&N.push(t)}else N.push(k-t-1)}}else if(M+x>k-S){D=Math.max(M-(k-2*S),w),T&&(D=Math.max(D,x-k+y+1));for(let e=0;e<D;e+=1){const t=e-Math.floor(e/k)*k;E?u.forEach((e,n)=>{e.column===t&&C.push(n)}):C.push(t)}}if(d.__preventObserver__=!0,requestAnimationFrame(()=>{d.__preventObserver__=!1}),"cards"===d.params.effect&&u.length<x+2*S&&(C.includes(c)&&C.splice(C.indexOf(c),1),N.includes(c)&&N.splice(N.indexOf(c),1)),O&&N.forEach(e=>{const t=u[e];t.swiperLoopMoveDOM=!0,m.prepend(t),t.swiperLoopMoveDOM=!1}),A&&C.forEach(e=>{const t=u[e];t.swiperLoopMoveDOM=!0,m.append(t),t.swiperLoopMoveDOM=!1}),d.recalcSlides(),"auto"===f.slidesPerView?d.updateSlides():E&&(N.length>0&&O||C.length>0&&A)&&d.slides.forEach((e,t)=>{d.grid.updateSlide(t,e,d.slides)}),f.watchSlidesProgress&&d.updateSlidesOffset(),n)if(N.length>0&&O){if(void 0===t){const e=d.slidesGrid[j],t=d.slidesGrid[j+L]-e;l?d.setTranslate(d.translate-t):(d.slideTo(j+Math.ceil(L),0,!1,!0),s&&(d.touchEventsData.startTranslate=d.touchEventsData.startTranslate-t,d.touchEventsData.currentTranslate=d.touchEventsData.currentTranslate-t))}else if(s){const e=E?N.length/f.grid.rows:N.length;d.slideTo(d.activeIndex+e,0,!1,!0),d.touchEventsData.currentTranslate=d.translate}}else if(C.length>0&&A)if(void 0===t){const e=d.slidesGrid[j],t=d.slidesGrid[j-D]-e;l?d.setTranslate(d.translate-t):(d.slideTo(j-D,0,!1,!0),s&&(d.touchEventsData.startTranslate=d.touchEventsData.startTranslate-t,d.touchEventsData.currentTranslate=d.touchEventsData.currentTranslate-t))}else{const e=E?C.length/f.grid.rows:C.length;d.slideTo(d.activeIndex-e,0,!1,!0)}d.allowSlidePrev=h,d.allowSlideNext=p;const $=d.controller?.control;if($&&!o){const e={slideRealIndex:t,direction:i,setTranslate:s,activeSlideIndex:c,byController:!0};Array.isArray($)?$.forEach(t=>{!t.destroyed&&t.params.loop&&t.loopFix({...e,slideTo:t.params.slidesPerView===f.slidesPerView&&n})}):$ instanceof d.constructor&&$.params.loop&&$.loopFix({...e,slideTo:$.params.slidesPerView===f.slidesPerView&&n})}d.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=e,n=void 0===t.swiperSlideIndex?Number(e.getAttribute("data-swiper-slide-index")):t.swiperSlideIndex;i[n]=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 Pt(e,t){return function(n={}){const i=Object.keys(n)[0],s=n[i];"object"==typeof s&&null!==s?(!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 s?("object"!=typeof e[i]||"enabled"in e[i]||(e[i].enabled=!0),e[i]||(e[i]={enabled:!1}),et(t,n)):et(t,n)):et(t,n)}}var It={slideTo:function(e=0,t,n=!0,i,s){"string"==typeof e&&(e=parseInt(e,10));const r=this;let a=e;a<0&&(a=0);const{params:o,snapGrid:l,slidesGrid:c,previousIndex:d,activeIndex:u,rtlTranslate:h,wrapperEl:p,enabled:m}=r;if(!m&&!i&&!s||r.destroyed||r.animating&&o.preventInteractionOnTransition)return!1;void 0===t&&(t=r.params.speed);const f=Math.min(r.params.slidesPerGroupSkip,a);let g=f+Math.floor((a-f)/r.params.slidesPerGroup);g>=l.length&&(g=l.length-1);const v=-l[g];if(o.normalizeSlideIndex)for(let e=0;e<c.length;e+=1){const t=-Math.floor(100*v),n=Math.floor(100*c[e]),i=Math.floor(100*c[e+1]);void 0!==c[e+1]?t>=n&&t<i-(i-n)/2?a=e:t>=n&&t<i&&(a=e+1):t>=n&&(a=e)}if(r.initialized&&a!==u){if(!r.allowSlideNext&&(h?v>r.translate&&v>r.minTranslate():v<r.translate&&v<r.minTranslate()))return!1;if(!r.allowSlidePrev&&v>r.translate&&v>r.maxTranslate()&&(u||0)!==a)return!1}let b;a!==(d||0)&&n&&r.emit("beforeSlideChangeStart"),r.updateProgress(v),b=a>u?"next":a<u?"prev":"reset";const y=r.virtual&&r.params.virtual?.enabled;if((!y||!s)&&(h&&-v===r.translate||!h&&v===r.translate))return r.updateActiveIndex(a),o.autoHeight&&r.updateAutoHeight(),r.updateSlidesClasses(),"slide"!==o.effect&&r.setTranslate(v),"reset"!==b&&(r.transitionStart(n,b),r.transitionEnd(n,b)),!1;if(o.cssMode){const e=r.isHorizontal(),n=h?v:-v;return 0===t?(y&&(r.wrapperEl.style.scrollSnapType="none",r._immediateVirtual=!0),y&&!r._cssModeVirtualInitialSet&&(r.params.initialSlide??0)>0?(r._cssModeVirtualInitialSet=!0,requestAnimationFrame(()=>{p[e?"scrollLeft":"scrollTop"]=n})):p[e?"scrollLeft":"scrollTop"]=n,y&&requestAnimationFrame(()=>{r.wrapperEl.style.scrollSnapType="",r._immediateVirtual=!1})):p.scrollTo({[e?"left":"top"]:n,behavior:"smooth"}),!0}const _=gt().isSafari;return y&&!s&&_&&r.isElement&&r.virtual.update(!1,!1,a),r.setTransition(t),r.setTranslate(v),r.updateActiveIndex(a),r.updateSlidesClasses(),r.emit("beforeTransitionStart",t,i),r.transitionStart(n,b),0===t?r.transitionEnd(n,b):r.animating||(r.animating=!0,r.onSlideToWrapperTransitionEnd||(r.onSlideToWrapperTransitionEnd=function(e){r&&!r.destroyed&&e.target===this&&(r.wrapperEl.removeEventListener("transitionend",r.onSlideToWrapperTransitionEnd),r.onSlideToWrapperTransitionEnd=null,delete r.onSlideToWrapperTransitionEnd,r.transitionEnd(n,b))}),r.wrapperEl.addEventListener("transitionend",r.onSlideToWrapperTransitionEnd)),!0},slideToLoop:function(e=0,t,n=!0,i){"string"==typeof e&&(e=parseInt(e,10));const s=this;if(s.destroyed)return;void 0===t&&(t=s.params.speed);const r=s.grid&&s.params.grid&&s.params.grid.rows>1;let a=e;if(s.params.loop)if(s.virtual&&s.params.virtual?.enabled)a+=s.virtual.slidesBefore??0;else{let e;if(r){const t=a*s.params.grid.rows,n=s.slides.find(e=>Number(e.getAttribute("data-swiper-slide-index"))===t);e=n?.column??0}else e=s.getSlideIndexByData(a);const t=r?Math.ceil(s.slides.length/s.params.grid.rows):s.slides.length,{centeredSlides:n,slidesOffsetBefore:o,slidesOffsetAfter:l}=s.params,c=n||!!o||!!l;let d;"auto"===s.params.slidesPerView?d=s.slidesPerViewDynamic():(d=Math.ceil(parseFloat(String(s.params.slidesPerView))),c&&d%2==0&&(d+=1));let u=t-e<d;if(c&&(u=u||e<Math.ceil(d/2)),i&&c&&"auto"!==s.params.slidesPerView&&!r&&(u=!1),u){const n=c?e<s.activeIndex?"prev":"next":e-s.activeIndex-1<s.params.slidesPerView?"next":"prev";s.loopFix({direction:n,slideTo:!0,activeSlideIndex:"next"===n?e+1:e-t+1,slideRealIndex:"next"===n?s.realIndex:void 0})}if(r){const e=a*s.params.grid.rows,t=s.slides.find(t=>Number(t.getAttribute("data-swiper-slide-index"))===e);a=t?.column??0}else a=s.getSlideIndexByData(a)}return requestAnimationFrame(()=>{s.slideTo(a,t,n,i)}),s},slideNext:function(e,t=!0,n){const i=this,{enabled:s,params:r,animating:a}=i;if(!s||i.destroyed)return i;void 0===e&&(e=i.params.speed);let o=r.slidesPerGroup;"auto"===r.slidesPerView&&1===r.slidesPerGroup&&r.slidesPerGroupAuto&&(o=Math.max(i.slidesPerViewDynamic("current",!0),1));const l=i.activeIndex<r.slidesPerGroupSkip?1:o,c=i.virtual&&r.virtual?.enabled;if(r.loop){if(a&&!c&&r.loopPreventsSliding)return!1;if(i.loopFix({direction:"next"}),i._clientLeft=i.wrapperEl.clientLeft,i.activeIndex===i.slides.length-1&&r.cssMode)return requestAnimationFrame(()=>{i.slideTo(i.activeIndex+l,e,t,n)}),!0}return r.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:s,snapGrid:r,slidesGrid:a,rtlTranslate:o,enabled:l,animating:c}=i;if(!l||i.destroyed)return i;void 0===e&&(e=i.params.speed);const d=i.virtual&&s.virtual?.enabled;if(s.loop){if(c&&!d&&s.loopPreventsSliding)return!1;i.loopFix({direction:"prev"}),i._clientLeft=i.wrapperEl.clientLeft}function u(e){return e<0?-Math.floor(Math.abs(e)):Math.floor(e)}const h=u(o?i.translate:-i.translate),p=r.map(e=>u(e)),m=s.freeMode&&s.freeMode.enabled;let f=r[p.indexOf(h)-1];if(void 0===f&&(s.cssMode||m)){let e;r.forEach((t,n)=>{h>=t&&(e=n)}),void 0!==e&&(f=m?r[e]:r[e>0?e-1:e])}let g=0;if(void 0!==f&&(g=a.indexOf(f),g<0&&(g=i.activeIndex-1),"auto"===s.slidesPerView&&1===s.slidesPerGroup&&s.slidesPerGroupAuto&&(g=g-i.slidesPerViewDynamic("previous",!0)+1,g=Math.max(g,0))),s.rewind&&i.isBeginning){const s=i.params.virtual?.enabled&&i.virtual?i.virtual.slides.length-1:i.slides.length-1;return i.slideTo(s,e,t,n)}return s.loop&&0===i.activeIndex&&s.cssMode?(requestAnimationFrame(()=>{i.slideTo(g,e,t,n)}),!0):i.slideTo(g,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 s=this;if(s.destroyed)return;void 0===e&&(e=s.params.speed);let r=s.activeIndex;const a=Math.min(s.params.slidesPerGroupSkip,r),o=a+Math.floor((r-a)/s.params.slidesPerGroup),l=s.rtlTranslate?s.translate:-s.translate;if(l>=s.snapGrid[o]){const e=s.snapGrid[o];l-e>(s.snapGrid[o+1]-e)*i&&(r+=s.params.slidesPerGroup)}else{const e=s.snapGrid[o-1];l-e<=(s.snapGrid[o]-e)*i&&(r-=s.params.slidesPerGroup)}return r=Math.max(r,0),r=Math.min(r,s.slidesGrid.length-1),s.slideTo(r,e,t,n)},slideToClickedSlide:function(){const e=this;if(e.destroyed)return;const{params:t,slidesEl:n,clickedSlide:i,clickedIndex:s}=e;if(void 0===i||void 0===s)return;const r="auto"===t.slidesPerView?e.slidesPerViewDynamic():t.slidesPerView;let a,o=e.getSlideIndexWhenGrid(s);const l=e.isElement?"swiper-slide":`.${t.slideClass}`,c=e.grid&&e.params.grid&&e.params.grid.rows>1;if(t.loop){if(e.animating)return;a=parseInt(i.getAttribute("data-swiper-slide-index"),10),t.centeredSlides?e.slideToLoop(a):o>(c?(e.slides.length-r)/2-(e.params.grid.rows-1):e.slides.length-r)?(e.loopFix(),o=e.getSlideIndex(nt(n,`${l}[data-swiper-slide-index="${a}"]`)[0]),Xe(()=>{e.slideTo(o)})):e.slideTo(o)}else e.slideTo(o)}};function Rt({swiper:e,runCallbacks:t,direction:n,step:i}){const{activeIndex:s,previousIndex:r}=e;let a=n;a||(a=s>r?"next":s<r?"prev":"reset"),e.emit(`transition${i}`),t&&"reset"===a?e.emit(`slideResetTransition${i}`):t&&s!==r&&(e.emit(`slideChangeTransition${i}`),"next"===a?e.emit(`slideNextTransition${i}`):e.emit(`slidePrevTransition${i}`))}var zt={getTranslate:function(e=(this.isHorizontal()?"x":"y")){const{params:t,rtlTranslate:n,translate:i,wrapperEl:s}=this;if(t.virtualTranslate)return n?-i:i;if(t.cssMode)return i;let r=function(e,t="x"){const n=function(e){return window.getComputedStyle(e,null)}(e),i=n.transform||n.webkitTransform;if(!i||"none"===i)return 0;const s=new DOMMatrixReadOnly(i);return"x"===t?s.m41:s.m42}(s,e);return r+=this.cssOverflowAdjustment(),n&&(r=-r),r||0},setTranslate:function(e,t){const n=this,{rtlTranslate:i,params:s,wrapperEl:r,progress:a}=n;let o,l=0,c=0;n.isHorizontal()?l=i?-e:e:c=e,s.roundLengths&&(l=Math.floor(l),c=Math.floor(c)),n.previousTranslate=n.translate,n.translate=n.isHorizontal()?l:c,s.cssMode?r[n.isHorizontal()?"scrollLeft":"scrollTop"]=n.isHorizontal()?-l:-c:s.virtualTranslate||(n.isHorizontal()?l-=n.cssOverflowAdjustment():c-=n.cssOverflowAdjustment(),r.style.transform=`translate3d(${l}px, ${c}px, 0px)`);const d=n.maxTranslate()-n.minTranslate();o=0===d?0:(e-n.minTranslate())/d,o!==a&&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,s){const r=this,{params:a,wrapperEl:o}=r;if(r.animating&&a.preventInteractionOnTransition)return!1;const l=r.minTranslate(),c=r.maxTranslate();let d;if(d=i&&e>l?l:i&&e<c?c:e,r.updateProgress(d),a.cssMode){const e=r.isHorizontal();return 0===t?o[e?"scrollLeft":"scrollTop"]=-d:o.scrollTo({[e?"left":"top"]:-d,behavior:"smooth"}),!0}return 0===t?(r.setTransition(0),r.setTranslate(d),n&&(r.emit("beforeTransitionStart",t,s),r.emit("transitionEnd"))):(r.setTransition(t),r.setTranslate(d),n&&(r.emit("beforeTransitionStart",t,s),r.emit("transitionStart")),r.animating||(r.animating=!0,r.onTranslateToWrapperTransitionEnd||(r.onTranslateToWrapperTransitionEnd=function(e){r&&!r.destroyed&&e.target===this&&(r.wrapperEl.removeEventListener("transitionend",r.onTranslateToWrapperTransitionEnd),r.onTranslateToWrapperTransitionEnd=null,delete r.onTranslateToWrapperTransitionEnd,r.animating=!1,n&&r.emit("transitionEnd"))}),r.wrapperEl.addEventListener("transitionend",r.onTranslateToWrapperTransitionEnd))),!0}};const Ft=(e,t,n)=>{t&&!e.classList.contains(n)?e.classList.add(n):!t&&e.classList.contains(n)&&e.classList.remove(n)},Ht=(e,t,n)=>{t&&!e.classList.contains(n)?e.classList.add(n):!t&&e.classList.contains(n)&&e.classList.remove(n)};var Bt={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(rt(i,"padding-left")||"0",10)-parseInt(rt(i,"padding-right")||"0",10),n=n-parseInt(rt(i,"padding-top")||"0",10)-parseInt(rt(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:s,rtlTranslate:r,wrongRTL:a}=e,o=!(!e.virtual||!n.virtual?.enabled),l=o?e.virtual.slides.length:e.slides.length,c=nt(s,`.${e.params.slideClass}, swiper-slide`),d=o?e.virtual.slides.length:c.length;let u=[];const h=[],p=[],m=t=>"function"==typeof t?t.call(e):t,f=m(n.slidesOffsetBefore),g=m(n.slidesOffsetAfter),v=e.snapGrid.length,b=e.slidesGrid.length,y=e.size-f-g;let _=n.spaceBetween,x=-f,w=0,S=0;if(void 0===y)return;"string"==typeof _&&_.indexOf("%")>=0?_=parseFloat(_.replace("%",""))/100*y:"string"==typeof _&&(_=parseFloat(_)),e.virtualSize=-_-f-g,c.forEach(e=>{r?e.style.marginLeft="":e.style.marginRight="",e.style.marginBottom="",e.style.marginTop=""}),n.centeredSlides&&n.cssMode&&(tt(i,"--swiper-centered-offset-before",""),tt(i,"--swiper-centered-offset-after","")),n.cssMode&&(tt(i,"--swiper-slides-offset-before",`${f}px`),tt(i,"--swiper-slides-offset-after",`${g}px`));const E=n.grid&&n.grid.rows>1&&e.grid;E?e.grid.initSlides(c):e.grid&&e.grid.unsetSlides();let N=0;const C="auto"===n.slidesPerView&&n.breakpoints&&Object.keys(n.breakpoints).filter(e=>{const t=n.breakpoints[e];return void 0!==t?.slidesPerView}).length>0;for(let i=0;i<d;i+=1){N=0;const s=c[i];if(!s||(E&&e.grid.updateSlide(i,s,c),"none"!==rt(s,"display"))){if(o&&"auto"===n.slidesPerView)n.virtual?.slidesPerViewAutoSlideSize&&(N=n.virtual.slidesPerViewAutoSlideSize),N&&s&&(n.roundLengths&&(N=Math.floor(N)),s.style[e.getDirectionLabel("width")]=`${N}px`);else if("auto"===n.slidesPerView){C&&(s.style[e.getDirectionLabel("width")]="");const i=getComputedStyle(s),r=s.style.transform,a=s.style.webkitTransform;if(r&&(s.style.transform="none"),a&&(s.style.webkitTransform="none"),n.roundLengths)N=e.isHorizontal()?lt(s,"width"):lt(s,"height");else{const e=t(i,"width"),n=t(i,"padding-left"),r=t(i,"padding-right"),a=t(i,"margin-left"),o=t(i,"margin-right"),l=i.getPropertyValue("box-sizing");if(l&&"border-box"===l)N=e+a+o;else{const{clientWidth:t,offsetWidth:i}=s;N=e+n+r+a+o+(i-t)}}r&&(s.style.transform=r),a&&(s.style.webkitTransform=a),n.roundLengths&&(N=Math.floor(N))}else N=(y-(n.slidesPerView-1)*_)/n.slidesPerView,n.roundLengths&&(N=Math.floor(N)),s&&(s.style[e.getDirectionLabel("width")]=`${N}px`);s&&(s.swiperSlideSize=N),p.push(N),n.centeredSlides?(x=x+N/2+w/2+_,0===w&&0!==i&&(x=x-y/2-_),0===i&&(x=x-y/2-_),Math.abs(x)<.001&&(x=0),n.roundLengths&&(x=Math.floor(x)),S%n.slidesPerGroup===0&&u.push(x),h.push(x)):(n.roundLengths&&(x=Math.floor(x)),(S-Math.min(e.params.slidesPerGroupSkip,S))%e.params.slidesPerGroup===0&&u.push(x),h.push(x),x=x+N+_),e.virtualSize+=N+_,w=N,S+=1}}if(e.virtualSize=Math.max(e.virtualSize,y)+g,r&&a&&("slide"===n.effect||"coverflow"===n.effect)&&(i.style.width=`${e.virtualSize+_}px`),n.setWrapperSize&&(i.style[e.getDirectionLabel("width")]=`${e.virtualSize+_}px`),E&&e.grid.updateWrapperSize(N,u),!n.centeredSlides){const t="auto"!==n.slidesPerView&&n.slidesPerView%1!=0,i=n.snapToSlideEdge&&!n.loop&&("auto"===n.slidesPerView||t);let s=u.length;if(i){let e;if("auto"===n.slidesPerView){e=1;let t=0;for(let n=p.length-1;n>=0&&(t+=p[n]+(n<p.length-1?_:0),t<=y);n-=1)e=p.length-n}else e=Math.floor(n.slidesPerView);s=Math.max(d-e,0)}const r=[];for(let t=0;t<u.length;t+=1){let a=u[t];n.roundLengths&&(a=Math.floor(a)),i?t<=s&&r.push(a):u[t]<=e.virtualSize-y&&r.push(a)}u=r,Math.floor(e.virtualSize-y)-Math.floor(u[u.length-1])>1&&(i||u.push(e.virtualSize-y))}if(o&&n.loop){const t=p[0]+_,i=(e.virtual.slidesBefore??0)+(e.virtual.slidesAfter??0);if(n.slidesPerGroup>1){const e=Math.ceil(i/n.slidesPerGroup),s=t*n.slidesPerGroup;for(let t=0;t<e;t+=1)u.push(u[u.length-1]+s)}for(let s=0;s<i;s+=1)1===n.slidesPerGroup&&u.push(u[u.length-1]+t),h.push(h[h.length-1]+t),e.virtualSize+=t}if(0===u.length&&(u=[0]),0!==_){const t=e.isHorizontal()&&r?"marginLeft":e.getDirectionLabel("marginRight");c.filter((e,t)=>!(n.cssMode&&!n.loop)||t!==c.length-1).forEach(e=>{e.style[t]=`${_}px`})}if(n.centeredSlides&&n.centeredSlidesBounds){let e=0;p.forEach(t=>{e+=t+(_||0)}),e-=_;const t=e>y?e-y:0;u=u.map(e=>e<=0?-f:e>t?t+g:e)}if(n.centerInsufficientSlides){let e=0;if(p.forEach(t=>{e+=t+(_||0)}),e-=_,e<y){const t=(y-e)/2;u.forEach((e,n)=>{u[n]=e-t}),h.forEach((e,n)=>{h[n]=e+t})}}if(Object.assign(e,{slides:c,snapGrid:u,slidesGrid:h,slidesSizesGrid:p}),n.centeredSlides&&n.cssMode&&!n.centeredSlidesBounds){tt(i,"--swiper-centered-offset-before",-u[0]+"px"),tt(i,"--swiper-centered-offset-after",e.size/2-p[p.length-1]/2+"px");const t=-e.snapGrid[0],n=-e.slidesGrid[0];e.snapGrid=e.snapGrid.map(e=>e+t),e.slidesGrid=e.slidesGrid.map(e=>e+n)}if(d!==l&&e.emit("slidesLengthChange"),u.length!==v&&(e.params.watchOverflow&&e.checkOverflow(),e.emit("snapGridLengthChange")),h.length!==b&&e.emit("slidesGridLengthChange"),n.watchSlidesProgress&&e.updateSlidesOffset(),e.emit("slidesUpdated"),!(o||n.cssMode||"slide"!==n.effect&&"fade"!==n.effect)){const t=`${n.containerModifierClass}backface-hidden`,i=e.el.classList.contains(t);d<=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 s,r=0;"number"==typeof e?t.setTransition(e):!0===e&&t.setTransition(t.params.speed);const a=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(s=0;s<Math.ceil(t.params.slidesPerView);s+=1){const e=t.activeIndex+s;if(e>t.slides.length&&!i)break;const r=a(e);r&&n.push(r)}else{const e=a(t.activeIndex);e&&n.push(e)}for(s=0;s<n.length;s+=1)if(void 0!==n[s]){const e=n[s].offsetHeight;r=e>r?e:r}(r||0===r)&&(t.wrapperEl.style.height=`${r}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:s,snapGrid:r}=t;if(0===i.length)return;void 0===i[0].swiperSlideOffset&&t.updateSlidesOffset();let a=-e;s&&(a=e),t.visibleSlidesIndexes=[],t.visibleSlides=[];let o=n.spaceBetween;"string"==typeof o&&o.indexOf("%")>=0?o=parseFloat(o.replace("%",""))/100*t.size:"string"==typeof o&&(o=parseFloat(o));for(let e=0;e<i.length;e+=1){const l=i[e];let c=l.swiperSlideOffset??0;n.cssMode&&n.centeredSlides&&(c-=i[0].swiperSlideOffset??0);const d=l.swiperSlideSize??0,u=(a+(n.centeredSlides?t.minTranslate():0)-c)/(d+o),h=(a-r[0]+(n.centeredSlides?t.minTranslate():0)-c)/(d+o),p=-(a-c),m=p+t.slidesSizesGrid[e],f=p>=0&&p<=t.size-t.slidesSizesGrid[e],g=p>=0&&p<t.size-1||m>1&&m<=t.size||p<=0&&m>=t.size;g&&(t.visibleSlides.push(l),t.visibleSlidesIndexes.push(e)),Ht(l,g,n.slideVisibleClass),Ht(l,f,n.slideFullyVisibleClass),l.progress=s?-u:u,l.originalProgress=s?-h:h}},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:s,isBeginning:r,isEnd:a}=t,o=t.progressLoop;const l=r,c=a;if(0===i)s=0,r=!0,a=!0;else{s=(e-t.minTranslate())/i;const n=Math.abs(e-t.minTranslate())<1,o=Math.abs(e-t.maxTranslate())<1;r=n||s<=0,a=o||s>=1,n&&(s=0),o&&(s=1)}if(n.loop){const n=t.getSlideIndexByData(0),i=t.getSlideIndexByData(t.slides.length-1),s=t.slidesGrid[n],r=t.slidesGrid[i],a=t.slidesGrid[t.slidesGrid.length-1],l=Math.abs(e);o=l>=s?(l-s)/a:(l+a-r)/a,o>1&&(o-=1)}Object.assign(t,{progress:s,progressLoop:o,isBeginning:r,isEnd:a}),(n.watchSlidesProgress||n.centeredSlides&&n.autoHeight)&&t.updateSlidesProgress(e),r&&!l&&t.emit("reachBeginning toEdge"),a&&!c&&t.emit("reachEnd toEdge"),(l&&!r||c&&!a)&&t.emit("fromEdge"),t.emit("progress",s)},updateSlidesClasses:function(){const e=this,{slides:t,params:n,slidesEl:i,activeIndex:s}=e,r=!(!e.virtual||!n.virtual?.enabled),a=e.grid&&n.grid&&n.grid.rows>1,o=e=>nt(i,`.${n.slideClass}${e}, swiper-slide${e}`)[0];let l,c,d;if(r)if(n.loop){const t=e.virtual.slides;let n=s-(e.virtual.slidesBefore??0);n<0&&(n=t.length+n),n>=t.length&&(n-=t.length),l=o(`[data-swiper-slide-index="${n}"]`)}else l=o(`[data-swiper-slide-index="${s}"]`);else a?(l=t.find(e=>e.column===s),d=t.find(e=>e.column===s+1),c=t.find(e=>e.column===s-1)):l=t[s];l&&(a||(d=function(e,t){const n=[];let i=e.nextElementSibling;for(;i;)t&&!i.matches(t)||n.push(i),i=i.nextElementSibling;return n}(l,`.${n.slideClass}, swiper-slide`)[0],n.loop&&!d&&(d=t[0]),c=function(e,t){const n=[];let i=e.previousElementSibling;for(;i;)t&&!i.matches(t)||n.push(i),i=i.previousElementSibling;return n}(l,`.${n.slideClass}, swiper-slide`)[0],n.loop&&0===!c&&(c=t[t.length-1]))),t.forEach(e=>{Ft(e,e===l,n.slideActiveClass),Ft(e,e===d,n.slideNextClass),Ft(e,e===c,n.slidePrevClass)}),e.emitSlidesClasses()},updateActiveIndex:function(e){const t=this,n=t.rtlTranslate?t.translate:-t.translate,{snapGrid:i,params:s,activeIndex:r,realIndex:a,snapIndex:o}=t;let l,c=e;const d=e=>{const n=t.virtual.slides;let i=e-(t.virtual.slidesBefore??0);return i<0&&(i=n.length+i),i>=n.length&&(i-=n.length),i};if(void 0===c&&(c=function(e){const{slidesGrid:t,params:n}=e,i=e.rtlTranslate?e.translate:-e.translate;let s;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?s=e:i>=t[e]&&i<t[e+1]&&(s=e+1):i>=t[e]&&(s=e);return n.normalizeSlideIndex&&(s<0||void 0===s)&&(s=0),s}(t)),i.indexOf(n)>=0)l=i.indexOf(n);else{const e=Math.min(s.slidesPerGroupSkip,c);l=e+Math.floor((c-e)/s.slidesPerGroup)}if(l>=i.length&&(l=i.length-1),c===r&&!t.params.loop)return void(l!==o&&(t.snapIndex=l,t.emit("snapIndexChange")));if(c===r&&t.params.loop&&t.virtual&&t.params.virtual?.enabled)return void(t.realIndex=d(c));const u=t.grid&&s.grid&&s.grid.rows>1;let h;if(t.virtual&&s.virtual?.enabled)h=s.loop?d(c):c;else if(u){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)),h=Math.floor(n/s.grid.rows)}else if(t.slides[c]){const e=t.slides[c].getAttribute("data-swiper-slide-index");h=e?parseInt(e,10):c}else h=c;Object.assign(t,{previousSnapIndex:o,snapIndex:l,previousRealIndex:a,realIndex:h,previousIndex:r,activeIndex:c}),t.initialized&&yt(t),t.emit("activeIndexChange"),t.emit("snapIndexChange"),(t.initialized||t.params.runCallbacksOnInit)&&(a!==h&&t.emit("realIndexChange"),t.emit("slideChange"))},updateClickedSlide:function(e,t){const n=this,i=n.params;let s=e.closest(`.${i.slideClass}, swiper-slide`);!s&&n.isElement&&t&&t.length>1&&t.includes(e)&&[...t.slice(t.indexOf(e)+1,t.length)].forEach(e=>{!s&&e.matches&&e.matches(`.${i.slideClass}, swiper-slide`)&&(s=e)});let r,a=!1;if(s)for(let e=0;e<n.slides.length;e+=1)if(n.slides[e]===s){a=!0,r=e;break}if(!s||!a)return n.clickedSlide=void 0,void(n.clickedIndex=void 0);n.clickedSlide=s,n.virtual&&n.params.virtual?.enabled?n.clickedIndex=parseInt(s.getAttribute("data-swiper-slide-index"),10):n.clickedIndex=r,i.slideToClickedSlide&&void 0!==n.clickedIndex&&n.clickedIndex!==n.activeIndex&&n.slideToClickedSlide()}};const Vt={eventsEmitter:Et,update:Bt,translate:zt,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(),Rt({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),Rt({swiper:n,runCallbacks:e,direction:t,step:"End"}))}},slide:It,loop:$t,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=Dt.bind(e),e.onTouchMove=Ot.bind(e),e.onTouchEnd=At.bind(e),e.onDocumentTouchStart=Ct.bind(e),t.cssMode&&(e.onScroll=jt.bind(e)),e.onClick=Nt.bind(e),e.onLoad=kt.bind(e),Mt(e,"on")},detachEvents:function(){Mt(this,"off")}},breakpoints:xt,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:wt},qt={};class Wt{static extendedDefaults;static defaults;constructor(...e){let t,n;if(1===e.length&&null!==e[0]&&"object"==typeof e[0]&&"Object"===Object.prototype.toString.call(e[0]).slice(8,-1)?n=e[0]:[t,n]=e,n||(n={}),n=et({},n),t&&!n.el&&(n.el=t),n.el&&"string"==typeof n.el&&"undefined"!=typeof document&&document.querySelectorAll(n.el).length>1){const e=[];return document.querySelectorAll(n.el).forEach(t=>{const i=et({},n,{el:t});e.push(new Wt(i))}),e}const i=this;i.__swiper__=!0,i.support=mt(),i.device=ft({userAgent:n.userAgent??void 0}),i.browser=gt(),i.eventsListeners={},i.eventsAnyListeners=[],i.modules=[...i.__modules__||[]],n.modules&&Array.isArray(n.modules)&&n.modules.forEach(e=>{const t=e;"function"==typeof t&&i.modules.indexOf(t)<0&&i.modules.push(t)});const s={};i.modules.forEach(e=>{e({params:n,swiper:i,extendParams:Pt(n,s),on:i.on.bind(i),once:i.once.bind(i),off:i.off.bind(i),emit:i.emit.bind(i)})});const r=et({},St,s);if(i.params=et({},r,qt,n),i.originalParams=et({},i.params),i.passedParams=et({},n),i.params&&i.params.on){const e=i.params.on;Object.keys(e).forEach(t=>{const n=e[t];n&&i.on(t,n)})}return i.params&&i.params.onAny&&i.onAny(i.params.onAny),Object.assign(i,{enabled:i.params.enabled,el:t,classNames:[],slides:[],slidesGrid:[],snapGrid:[],slidesSizesGrid:[],isHorizontal:()=>"horizontal"===i.params.direction,isVertical:()=>"vertical"===i.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:i.params.allowSlideNext,allowSlidePrev:i.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:i.params.focusableElements,lastClickTime:0,clickTimeout:void 0,velocities:[],allowMomentumBounce:void 0,startMoving:void 0,pointerId:null,touchId:null},allowClick:!0,allowTouchMove:i.params.allowTouchMove,touches:{startX:0,startY:0,currentX:0,currentY:0,diff:0},imagesToLoad:[],imagesLoaded:0}),i.emit("_swiper"),i.params.init&&i.init(),i}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]}isHorizontal(){return"horizontal"===this.params.direction}isVertical(){return"vertical"===this.params.direction}cssOverflowAdjustment(){return Math.trunc(this.translate/2**23)*2**23}getSlideIndex(e){const{slidesEl:t,params:n}=this,i=at(nt(t,`.${n.slideClass}, swiper-slide`)[0]);return at(e)-(i??0)}getSlideIndexByData(e){return this.getSlideIndex(this.slides.find(t=>Number(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=nt(e,`.${t.slideClass}, swiper-slide`)}enable(){this.enabled||(this.enabled=!0,this.params.grabCursor&&this.setGrabCursor(),this.emit("enable"))}disable(){this.enabled&&(this.enabled=!1,this.params.grabCursor&&this.unsetGrabCursor(),this.emit("disable"))}setProgress(e,t){e=Math.min(Math.max(e,0),1);const n=this.minTranslate(),i=(this.maxTranslate()-n)*e+n;this.translateTo(i,void 0===t?0:t),this.updateActiveIndex(),this.updateSlidesClasses()}emitContainerClasses(){if(!this.params._emitClasses||!this.el)return;const e=this.el.className.split(" ").filter(e=>0===e.indexOf("swiper")||0===e.indexOf(this.params.containerModifierClass));this.emit("_containerClasses",e.join(" "))}getSlideClasses(e){return this.destroyed?"":e.className.split(" ").filter(e=>0===e.indexOf("swiper-slide")||0===e.indexOf(this.params.slideClass)).join(" ")}emitSlidesClasses(){if(!this.params._emitClasses||!this.el)return;const e=[];this.slides.forEach(t=>{const n=this.getSlideClasses(t);e.push({slideEl:t,classNames:n}),this.emit("_slideClass",t,n)}),this.emit("_slideClasses",e)}slidesPerViewDynamic(e="current",t=!1){const{params:n,slides:i,slidesGrid:s,slidesSizesGrid:r,size:a,activeIndex:o}=this;let l=1;if("number"==typeof n.slidesPerView)return n.slidesPerView;if(!a)return l;if(n.centeredSlides){let e=i[o]?Math.ceil(i[o].swiperSlideSize??0):0,t=!1;for(let n=o+1;n<i.length;n+=1)i[n]&&!t&&(e+=Math.ceil(i[n].swiperSlideSize??0),l+=1,e>a&&(t=!0));for(let n=o-1;n>=0;n-=1)i[n]&&!t&&(e+=i[n].swiperSlideSize??0,l+=1,e>a&&(t=!0))}else if("current"===e)for(let e=o+1;e<i.length;e+=1)(t?s[e]+r[e]-s[o]<a:s[e]-s[o]<a)&&(l+=1);else for(let e=o-1;e>=0;e-=1)s[o]-s[e]<a&&(l+=1);return l}update(){const e=this;if(!e||e.destroyed)return;const{snapGrid:t,params:n}=e;function i(){const t=e.rtlTranslate?-1*e.translate:e.translate,n=Math.min(Math.max(t,e.maxTranslate()),e.minTranslate());e.setTranslate(n),e.updateActiveIndex(),e.updateSlidesClasses()}let s;if(n.breakpoints&&e.setBreakpoint(),[...e.el.querySelectorAll('[loading="lazy"]')].forEach(t=>{t.complete&&vt(e,t)}),e.updateSize(),e.updateSlides(),e.updateProgress(),e.updateSlidesClasses(),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.length:e.slides.length;s=e.slideTo(t-1,0,!1,!0)}else s=e.slideTo(e.activeIndex,0,!1,!0);s||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;if("undefined"==typeof document)return!1;const n=e??t.params.el;let i=null;if("string"==typeof n?i=document.querySelector(n):n instanceof HTMLElement&&(i=n),!i)return!1;i.swiper=t;const s=i.parentNode;s&&s.host&&s.host.nodeName===t.params.swiperElementNodeName.toUpperCase()&&(t.isElement=!0);const r=()=>`.${(t.params.wrapperClass||"").trim().split(" ").join(".")}`;let a=i&&i.shadowRoot?i.shadowRoot.querySelector(r()):nt(i,r())[0];!a&&t.params.createElements&&(a=it("div",t.params.wrapperClass),i.append(a),nt(i,`.${t.params.slideClass}`).forEach(e=>{a.append(e)}));const o=t.isElement?i.parentNode.host:null;return Object.assign(t,{el:i,wrapperEl:a,slidesEl:t.isElement&&!o.slideSlots?o:a,hostEl:t.isElement?o:i,mounted:!0,rtl:"rtl"===i.dir.toLowerCase()||"rtl"===rt(i,"direction"),rtlTranslate:"horizontal"===t.params.direction&&("rtl"===i.dir.toLowerCase()||"rtl"===rt(i,"direction")),wrongRTL:"-webkit-box"===rt(a,"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??0)+(t.virtual.slidesBefore??0),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?vt(t,e):e.addEventListener("load",e=>{vt(t,e.target)})}),yt(t),t.initialized=!0,yt(t),t.emit("init"),t.emit("afterInit"),t}destroy(e=!0,t=!0){const n=this,{params:i,el:s,wrapperEl:r,slides:a}=n;return void 0===n.params||n.destroyed||(n.emit("beforeDestroy"),n.initialized=!1,n.detachEvents(),i.loop&&n.loopDestroy(),t&&(n.removeClasses(),s&&"string"!=typeof s&&s.removeAttribute("style"),r&&r.removeAttribute("style"),a&&a.length&&a.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),o=n,Object.keys(o).forEach(e=>{try{o[e]=null}catch{}try{delete o[e]}catch{}})),n.destroyed=!0),null;var o}static extendDefaults(e){et(qt,e)}static installModule(e){Wt.prototype.__modules__||(Wt.prototype.__modules__=[]);const t=Wt.prototype.__modules__;"function"==typeof e&&t.indexOf(e)<0&&t.push(e)}static use(e){return Array.isArray(e)?(e.forEach(e=>Wt.installModule(e)),Wt):(Wt.installModule(e),Wt)}}Object.defineProperty(Wt,"extendedDefaults",{get:()=>qt}),Object.defineProperty(Wt,"defaults",{get:()=>St});const Ut=Vt,Gt=Wt.prototype;Object.keys(Ut).forEach(e=>{const t=Ut[e];Object.keys(t).forEach(e=>{Gt[e]=t[e]})}),Wt.use([({swiper:e,on:t,emit:n})=>{let i=null,s=null;const r=()=>{e&&!e.destroyed&&e.initialized&&(n("beforeResize"),n("resize"))},a=()=>{e&&!e.destroyed&&e.initialized&&n("orientationchange")};t("init",()=>{e.params.resizeObserver&&void 0!==window.ResizeObserver?e&&!e.destroyed&&e.initialized&&(i=new ResizeObserver(t=>{s=window.requestAnimationFrame(()=>{const{width:n,height:i}=e;let s=n,a=i;t.forEach(({contentBoxSize:t,contentRect:n,target:i})=>{if(i&&i!==e.el)return;const r=Array.isArray(t)?t[0]:t;s=n?n.width:r.inlineSize,a=n?n.height:r.blockSize}),s===n&&a===i||r()})}),i.observe(e.el)):(window.addEventListener("resize",r),window.addEventListener("orientationchange",a))}),t("destroy",()=>{s&&window.cancelAnimationFrame(s),i&&i.unobserve&&e.el&&(i.unobserve(e.el),i=null),window.removeEventListener("resize",r),window.removeEventListener("orientationchange",a)})},({swiper:e,extendParams:t,on:n})=>{const i=[],s=(t,n={})=>{const s=window.MutationObserver||window.WebkitMutationObserver;if(!s)return;const r=new s(t=>{if(e.__preventObserver__)return;if(1===t.length)return void e.emit("observerUpdate",t[0]);const n=function(){e.emit("observerUpdate",t[0])};window.requestAnimationFrame?window.requestAnimationFrame(n):window.setTimeout(n,0)});r.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}),i.push(r)};t({observer:!1,observeParents:!1,observeSlideChildren:!1}),n("init",()=>{if(e.params.observer){if(e.params.observeParents){const t=ot(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",()=>{i.forEach(e=>{e.disconnect()}),i.splice(0,i.length)})}]);const Yt=({swiper:e,extendParams:t,on:n,emit:i})=>{function s(){return e.params.keyboard}function r(t){if(!e.enabled)return;const{rtlTranslate:n}=e,r="originalEvent"in t&&t.originalEvent?t.originalEvent:t,a=r.keyCode||r.charCode,o=s(),l=!!o.pageUpDown,c=l&&33===a,d=l&&34===a,u=37===a,h=39===a,p=38===a,m=40===a;if(!e.allowSlideNext&&(e.isHorizontal()&&h||e.isVertical()&&m||d))return!1;if(!e.allowSlidePrev&&(e.isHorizontal()&&u||e.isVertical()&&p||c))return!1;if(r.shiftKey||r.altKey||r.ctrlKey||r.metaKey)return;const f=document.activeElement;if(f&&(f.isContentEditable||f.nodeName&&("input"===f.nodeName.toLowerCase()||"textarea"===f.nodeName.toLowerCase())))return;if(o.onlyInViewport&&(c||d||u||h||p||m)){let t=!1;if(ot(e.el,`.${e.params.slideClass}, swiper-slide`).length>0&&0===ot(e.el,`.${e.params.slideActiveClass}`).length)return;const i=e.el,s=i.clientWidth,r=i.clientHeight,a=window.innerWidth,o=window.innerHeight,l=st(i);n&&(l.left-=i.scrollLeft);const c=[[l.left,l.top],[l.left+s,l.top],[l.left,l.top+r],[l.left+s,l.top+r]];for(let e=0;e<c.length;e+=1){const n=c[e];if(n[0]>=0&&n[0]<=a&&n[1]>=0&&n[1]<=o){if(0===n[0]&&0===n[1])continue;t=!0}}if(!t)return}const g=o.speed;e.isHorizontal()?((c||d||u||h)&&r.cancelable&&r.preventDefault(),((d||h)&&!n||(c||u)&&n)&&e.slideNext(g),((c||u)&&!n||(d||h)&&n)&&e.slidePrev(g)):((c||d||p||m)&&r.cancelable&&r.preventDefault(),(d||m)&&e.slideNext(g),(c||p)&&e.slidePrev(g)),i("keyPress",a)}function a(){e.keyboard.enabled||(document.addEventListener("keydown",r),e.keyboard.enabled=!0)}function o(){e.keyboard.enabled&&(document.removeEventListener("keydown",r),e.keyboard.enabled=!1)}t({keyboard:{enabled:!1,onlyInViewport:!0,pageUpDown:!0,speed:void 0}}),e.keyboard={enabled:!1,enable:a,disable:o},n("init",()=>{s().enabled&&a()}),n("destroy",()=>{e.keyboard.enabled&&o()})},Kt=({swiper:e,extendParams:t,on:n,emit:i})=>{let s;t({mousewheel:{enabled:!1,releaseOnEdges:!1,invert:!1,forceToAxis:!1,sensitivity:1,eventsTarget:"container",thresholdDelta:null,thresholdTime:null,noMousewheelClass:"swiper-no-mousewheel"}});let r,a=Ze(),o=!1;const l=[];function c(){return e.params.mousewheel}function d(){e.enabled&&(o=!0)}function u(){e.enabled&&(o=!1)}function h(t){const n=c();return!(n.thresholdDelta&&t.delta<n.thresholdDelta||n.thresholdTime&&Ze()-a<n.thresholdTime||!(t.delta>=6&&Ze()-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 window.Date).getTime(),1))}function p(t){let n="originalEvent"in t&&t.originalEvent?t.originalEvent:t,a=!0;if(!e.enabled)return!1;const d=c();if(t.target.closest(`.${d.noMousewheelClass}`))return!1;e.params.cssMode&&n.preventDefault();let u=e.el;"container"!==d.eventsTarget&&(u=document.querySelector(d.eventsTarget));const p=u&&u.contains(n.target);if(!o&&!p&&!d.releaseOnEdges)return!0;let m=0;const f=e.rtlTranslate?-1:1,g=function(e){const t=e;let n=0,i=0,s=0,r=0;return void 0!==t.detail&&(i=t.detail),void 0!==t.wheelDelta&&(i=-t.wheelDelta/120),void 0!==t.wheelDeltaY&&(i=-t.wheelDeltaY/120),void 0!==t.wheelDeltaX&&(n=-t.wheelDeltaX/120),void 0!==t.axis&&void 0!==t.HORIZONTAL_AXIS&&t.axis===t.HORIZONTAL_AXIS&&(n=i,i=0),s=10*n,r=10*i,void 0!==t.deltaY&&(r=t.deltaY),void 0!==t.deltaX&&(s=t.deltaX),t.shiftKey&&!s&&(s=r,r=0),(s||r)&&t.deltaMode&&(1===t.deltaMode?(s*=40,r*=40):(s*=800,r*=800)),s&&!n&&(n=s<1?-1:1),r&&!i&&(i=r<1?-1:1),{spinX:n,spinY:i,pixelX:s,pixelY:r}}(n);if(d.forceToAxis)if(e.isHorizontal()){if(!(Math.abs(g.pixelX)>Math.abs(g.pixelY)))return!0;m=-g.pixelX*f}else{if(!(Math.abs(g.pixelY)>Math.abs(g.pixelX)))return!0;m=-g.pixelY}else m=Math.abs(g.pixelX)>Math.abs(g.pixelY)?-g.pixelX*f:-g.pixelY;if(0===m)return!0;d.invert&&(m=-m);let v=e.getTranslate()+m*(d.sensitivity??1);v>=e.minTranslate()&&(v=e.minTranslate()),v<=e.maxTranslate()&&(v=e.maxTranslate()),a=!!e.params.loop||!(v===e.minTranslate()||v===e.maxTranslate()),a&&e.params.nested&&n.stopPropagation();const b=e.params.freeMode;if(e.params.freeMode&&b?.enabled){const t={time:Ze(),delta:Math.abs(m),direction:Math.sign(m)},a=r&&t.time<r.time+500&&t.delta<=r.delta&&t.direction===r.direction;if(!a){r=void 0;let o=e.getTranslate()+m*(d.sensitivity??1);const c=e.isBeginning,u=e.isEnd;if(o>=e.minTranslate()&&(o=e.minTranslate()),o<=e.maxTranslate()&&(o=e.maxTranslate()),e.setTransition(0),e.setTranslate(o),e.updateProgress(),e.updateActiveIndex(),e.updateSlidesClasses(),(!c&&e.isBeginning||!u&&e.isEnd)&&e.updateSlidesClasses(),e.params.loop&&e.loopFix({direction:t.direction<0?"next":"prev",byMousewheel:!0}),b?.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&&i&&t.time-i.time<500&&i.delta-t.delta>=1&&t.delta<=6){const n=m>0?.8:.2;r=t,l.splice(0),s=Xe(()=>{!e.destroyed&&e.params&&e.slideToClosest(e.params.speed,!0,void 0,n)},0)}s||(s=Xe(()=>{!e.destroyed&&e.params&&(r=t,l.splice(0),e.slideToClosest(e.params.speed,!0,void 0,.5))},500))}a||i("scroll",n);const h=e.params.autoplay;if(e.params.autoplay&&h?.disableOnInteraction&&e.autoplay.stop(),d.releaseOnEdges&&(o===e.minTranslate()||o===e.maxTranslate()))return!0}}else{const n={time:Ze(),delta:Math.abs(m),direction:Math.sign(m),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)&&h(n):h(n),function(t){const n=c();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.cancelable&&n.preventDefault(),!1}function m(t){const n=c();let i=e.el;"container"!==n.eventsTarget&&(i=document.querySelector(n.eventsTarget)),i[t]("mouseenter",d),i[t]("mouseleave",u),i[t]("wheel",p)}function f(){return e.params.cssMode?(e.wrapperEl.removeEventListener("wheel",p),!0):!e.mousewheel.enabled&&(m("addEventListener"),e.mousewheel.enabled=!0,!0)}function g(){return e.params.cssMode?(e.wrapperEl.addEventListener("wheel",p),!0):!!e.mousewheel.enabled&&(m("removeEventListener"),e.mousewheel.enabled=!1,!0)}n("init",()=>{const t=c();!t.enabled&&e.params.cssMode&&g(),t.enabled&&f()}),e.mousewheel={enabled:!1,enable:f,disable:g},n("destroy",()=>{e.params.cssMode&&f(),e.mousewheel.enabled&&g()})};function Xt(e,t,n,i){const s=n??{},r=t??{};return e.params.createElements&&Object.keys(i).forEach(t=>{if(!s[t]&&!0===s.auto){let n=nt(e.el,`.${i[t]}`)[0];n||(n=it("div",i[t]),n.className=i[t],e.el.append(n)),s[t]=n,r[t]=n}}),s}const Zt='<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>',Jt=({swiper:e,extendParams:t,on:n,emit:i})=>{function s(){return e.params.navigation}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 a(t,n){const i=s();ct(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 a(n,!1),void a(t,!1);a(n,e.isBeginning&&!e.params.rewind),a(t,e.isEnd&&!e.params.rewind)}function l(t){t.preventDefault(),(!e.isBeginning||e.params.loop||e.params.rewind)&&(e.slidePrev(),i("navigationPrev"))}function c(t){t.preventDefault(),(!e.isEnd||e.params.loop||e.params.rewind)&&(e.slideNext(),i("navigationNext"))}function d(){e.params.navigation=Xt(e,e.originalParams.navigation,e.params.navigation,{nextEl:"swiper-button-next",prevEl:"swiper-button-prev"});const t=s();if(!t.nextEl&&!t.prevEl)return;const n=r(t.nextEl),i=r(t.prevEl);Object.assign(e.navigation,{nextEl:n,prevEl:i});const a=ct(n),o=ct(i),d=(n,i)=>{if(n){if(t.addIcons&&n.matches(".swiper-button-next,.swiper-button-prev")&&!n.querySelector("svg")){const e=document.createElement("div");dt(e,Zt);const t=e.querySelector("svg");t&&n.appendChild(t),e.remove()}n.addEventListener("click","next"===i?c:l)}!e.enabled&&n&&n.classList.add(...t.lockClass.split(" "))};a.forEach(e=>d(e,"next")),o.forEach(e=>d(e,"prev"))}function u(){const t=s(),{nextEl:n,prevEl:i}=e.navigation,r=ct(n),a=ct(i),o=(e,n)=>{e.removeEventListener("click","next"===n?c:l),e.classList.remove(...t.disabledClass.split(" "))};r.forEach(e=>o(e,"next")),a.forEach(e=>o(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:Zt},n("init",()=>{!1===s().enabled?h():(d(),o())}),n("toEdge fromEdge lock unlock",()=>{o()}),n("destroy",()=>{u()}),n("enable disable",()=>{const t=s(),{nextEl:n,prevEl:i}=e.navigation,r=ct(n),a=ct(i);e.enabled?o():[...r,...a].filter(e=>!!e).forEach(e=>e.classList.add(t.lockClass))}),n("click",(t,n)=>{const r=s(),{nextEl:a,prevEl:o}=e.navigation,l=ct(a),c=ct(o),d=n.target;let u=c.includes(d)||l.includes(d);if(e.isElement&&!u){const e=n.composedPath?n.composedPath():[];e.length&&(u=e.find(e=>l.includes(e)||c.includes(e)))}if(r.hideOnClick&&!u){if(e.pagination&&e.params.pagination&&e.params.pagination.clickable&&(e.pagination.el===d||e.pagination.el.contains(d)))return;let t;l.length?t=l[0].classList.contains(r.hiddenClass):c.length&&(t=c[0].classList.contains(r.hiddenClass)),i(!0===t?"navigationShow":"navigationHide"),[...l,...c].filter(e=>!!e).forEach(e=>e.classList.toggle(r.hiddenClass))}});const h=()=>{const t=s();e.el.classList.add(...t.navigationDisabledClass.split(" ")),u()};Object.assign(e.navigation,{enable:()=>{const t=s();e.el.classList.remove(...t.navigationDisabledClass.split(" ")),d(),o()},disable:h,update:o,init:d,destroy:u})};function Qt(e=""){return`.${e.trim().replace(/([.:!+/()[\]#>~*^$|=,'"@{}\\])/g,"\\$1").replace(/ /g,".")}`}const en=e=>{if((e=>!!e.virtual&&!!e.params.virtual?.enabled)(e))return e.virtual.slides.length;const t=e.params.grid?.rows;return e.grid&&t&&t>1?e.slides.length/Math.ceil(t):e.slides.length},tn=({swiper:e,extendParams:t,on:n,emit:i})=>{const s="swiper-pagination";let r;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:`${s}-bullet`,bulletActiveClass:`${s}-bullet-active`,modifierClass:`${s}-`,currentClass:`${s}-current`,totalClass:`${s}-total`,hiddenClass:`${s}-hidden`,progressbarFillClass:`${s}-progressbar-fill`,progressbarOppositeClass:`${s}-progressbar-opposite`,clickableClass:`${s}-clickable`,lockClass:`${s}-lock`,horizontalClass:`${s}-horizontal`,verticalClass:`${s}-vertical`,paginationDisabledClass:`${s}-disabled`}}),e.pagination={el:null,bullets:[]};let a=0;function o(){return e.params.pagination}function l(){return!o().el||!e.pagination.el||Array.isArray(e.pagination.el)&&0===e.pagination.el.length}function c(e,t){const{bulletActiveClass:n}=o();if(!e)return;let i=e[("prev"===t?"previous":"next")+"ElementSibling"];i&&(i.classList.add(`${n}-${t}`),i=i[("prev"===t?"previous":"next")+"ElementSibling"],i&&i.classList.add(`${n}-${t}-${t}`))}function d(t){const n=t.target.closest(Qt(o().bulletClass));if(!n)return;t.preventDefault();const i=(at(n)??0)*(e.params.slidesPerGroup??1);if(e.params.loop){if(e.realIndex===i)return;const t=(s=e.realIndex,r=i,(r%=a=e.slides.length)===1+(s%=a)?"next":r===s-1?"previous":void 0);"next"===t?e.slideNext():"previous"===t?e.slidePrev():e.slideToLoop(i)}else e.slideTo(i);var s,r,a}function u(){const t=e.rtl,n=o();if(l())return;const s=ct(e.pagination.el);let d,u;const h=en(e),p=e.params.loop?Math.ceil(h/(e.params.slidesPerGroup??1)):e.snapGrid.length;if(e.params.loop?(u=e.previousRealIndex||0,d=(e.params.slidesPerGroup??1)>1?Math.floor(e.realIndex/(e.params.slidesPerGroup??1)):e.realIndex):void 0!==e.snapIndex?(d=e.snapIndex,u=e.previousSnapIndex):(u=e.previousIndex||0,d=e.activeIndex||0),"bullets"===n.type&&e.pagination.bullets&&e.pagination.bullets.length>0){const i=e.pagination.bullets;let o=0,l=0,h=0;if(n.dynamicBullets){r=lt(i[0],e.isHorizontal()?"width":"height");const t=e.isHorizontal()?"width":"height";s.forEach(e=>{e.style[t]=(r??0)*(n.dynamicMainBullets+4)+"px"}),n.dynamicMainBullets>1&&void 0!==u&&(a+=d-(u||0),a>n.dynamicMainBullets-1?a=n.dynamicMainBullets-1:a<0&&(a=0)),o=Math.max(d-a,0),l=o+(Math.min(i.length,n.dynamicMainBullets)-1),h=(l+o)/2}if(i.forEach(e=>{const t=["","-next","-next-next","-prev","-prev-prev","-main"].map(e=>`${n.bulletActiveClass}${e}`).flatMap(e=>"string"==typeof e&&e.includes(" ")?e.split(" "):[e]);e.classList.remove(...t)}),s.length>1)i.forEach(t=>{const i=at(t);i===d?t.classList.add(...n.bulletActiveClass.split(" ")):e.isElement&&t.setAttribute("part","bullet"),n.dynamicBullets&&void 0!==i&&(i>=o&&i<=l&&t.classList.add(...`${n.bulletActiveClass}-main`.split(" ")),i===o&&c(t,"prev"),i===l&&c(t,"next"))});else{const t=i[d];if(t&&t.classList.add(...n.bulletActiveClass.split(" ")),e.isElement&&i.forEach((e,t)=>{e.setAttribute("part",t===d?"bullet-active":"bullet")}),n.dynamicBullets){const e=i[o],t=i[l];for(let e=o;e<=l;e+=1)i[e]&&i[e].classList.add(...`${n.bulletActiveClass}-main`.split(" "));c(e,"prev"),c(t,"next")}}if(n.dynamicBullets){const s=Math.min(i.length,n.dynamicMainBullets+4),a=((r??0)*s-(r??0))/2-h*(r??0),o=t?"right":"left",l=e.isHorizontal()?o:"top";i.forEach(e=>{e.style[l]=`${a}px`})}}s.forEach((t,s)=>{if("fraction"===n.type&&(t.querySelectorAll(Qt(n.currentClass)).forEach(e=>{e.textContent=String(n.formatFractionCurrent(d+1))}),t.querySelectorAll(Qt(n.totalClass)).forEach(e=>{e.textContent=String(n.formatFractionTotal(p))})),"progressbar"===n.type){let i;i=n.progressbarOpposite?e.isHorizontal()?"vertical":"horizontal":e.isHorizontal()?"horizontal":"vertical";const s=(d+1)/p;let r=1,a=1;"horizontal"===i?r=s:a=s,t.querySelectorAll(Qt(n.progressbarFillClass)).forEach(t=>{t.style.transform=`translate3d(0,0,0) scaleX(${r}) scaleY(${a})`,t.style.transitionDuration=`${e.params.speed}ms`})}"custom"===n.type&&n.renderCustom?(dt(t,n.renderCustom(e,d+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 h(){const t=o();if(l())return;const n=en(e),s=ct(e.pagination.el);let r="";if("bullets"===t.type){let i=e.params.loop?Math.ceil(n/(e.params.slidesPerGroup??1)):e.snapGrid.length;e.params.freeMode&&(e=>!!e.params.freeMode?.enabled)(e)&&i>n&&(i=n);for(let n=0;n<i;n+=1)t.renderBullet?r+=t.renderBullet.call(e,n,t.bulletClass):r+=`<${t.bulletElement} ${e.isElement?'part="bullet"':""} class="${t.bulletClass}"></${t.bulletElement}>`}"fraction"===t.type&&(r=t.renderFraction?t.renderFraction.call(e,t.currentClass,t.totalClass):`<span class="${t.currentClass}"></span> / <span class="${t.totalClass}"></span>`),"progressbar"===t.type&&(r=t.renderProgressbar?t.renderProgressbar.call(e,t.progressbarFillClass):`<span class="${t.progressbarFillClass}"></span>`),e.pagination.bullets=[],s.forEach(n=>{"custom"!==t.type&&dt(n,r||""),"bullets"===t.type&&e.pagination.bullets.push(...Array.from(n.querySelectorAll(Qt(t.bulletClass))))}),"custom"!==t.type&&i("paginationRender",s[0])}function p(){e.params.pagination=Xt(e,e.originalParams.pagination,e.params.pagination,{el:"swiper-pagination"});const t=o();if(!t.el)return;let n;if("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&&(!Array.isArray(n)||0!==n.length)){if(e.params.uniqueNavElements&&"string"==typeof t.el&&Array.isArray(n)&&n.length>1&&(n=[...e.el.querySelectorAll(t.el)],n.length>1)){const t=n.find(t=>ot(t,".swiper")[0]===e.el);t&&(n=t)}Array.isArray(n)&&1===n.length&&(n=n[0]),Object.assign(e.pagination,{el:n}),ct(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`),a=0,t.dynamicMainBullets<1&&(t.dynamicMainBullets=1)),"progressbar"===t.type&&t.progressbarOpposite&&n.classList.add(t.progressbarOppositeClass),t.clickable&&n.addEventListener("click",d),e.enabled||n.classList.add(t.lockClass)})}}function m(){const t=o();if(l())return;const n=e.pagination.el;n&&ct(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",d))}),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=o();ct(e.pagination.el).forEach(n=>{n.classList.remove(t.horizontalClass,t.verticalClass),n.classList.add(e.isHorizontal()?t.horizontalClass:t.verticalClass)})}),n("init",()=>{!1===o().enabled?f():(p(),h(),u())}),n("activeIndexChange",()=>{void 0===e.snapIndex&&u()}),n("snapIndexChange",()=>{u()}),n("snapGridLengthChange",()=>{h(),u()}),n("destroy",()=>{m()}),n("enable disable",()=>{const{el:t}=e.pagination;if(t){const n=o();ct(t).forEach(t=>t.classList[e.enabled?"remove":"add"](n.lockClass))}}),n("lock unlock",()=>{u()}),n("click",(t,n)=>{const s=n.target,r=ct(e.pagination.el),a=o();if(a.el&&a.hideOnClick&&r&&r.length>0&&!s.classList.contains(a.bulletClass)){if(e.navigation&&(e.navigation.nextEl&&s===e.navigation.nextEl||e.navigation.prevEl&&s===e.navigation.prevEl))return;const t=r[0].classList.contains(a.hiddenClass);i(!0===t?"paginationShow":"paginationHide"),r.forEach(e=>e.classList.toggle(a.hiddenClass))}});const f=()=>{const t=o();e.el.classList.add(t.paginationDisabledClass);const{el:n}=e.pagination;n&&ct(n).forEach(e=>e.classList.add(t.paginationDisabledClass)),m()};Object.assign(e.pagination,{enable:()=>{const t=o();e.el.classList.remove(t.paginationDisabledClass);const{el:n}=e.pagination;n&&ct(n).forEach(e=>e.classList.remove(t.paginationDisabledClass)),p(),h(),u()},disable:f,render:h,update:u,init:p,destroy:m})},nn=({swiper:e,extendParams:t,on:n,emit:i})=>{let s=!1,r=null,a=null,o=0,l=0,c=0,d=0;function u(){return e.params.scrollbar}function h(){const t=u();if(!t.el||!e.scrollbar.el)return;const{scrollbar:n,rtlTranslate:i}=e,{dragEl:s,el:a}=n,o=e.params.loop?e.progressLoop??0:e.progress;let d=l,h=(c-l)*o;i?(h=-h,h>0?(d=l-h,h=0):-h+l>c&&(d=c+h)):h<0?(d=l+h,h=0):h+l>c&&(d=c-h),e.isHorizontal()?(s.style.transform=`translate3d(${h}px, 0, 0)`,s.style.width=`${d}px`):(s.style.transform=`translate3d(0px, ${h}px, 0)`,s.style.height=`${d}px`),t.hide&&(r&&clearTimeout(r),a.style.opacity="1",r=setTimeout(()=>{a.style.opacity="0",a.style.transitionDuration="400ms"},1e3))}function p(){const t=u();if(!t.el||!e.scrollbar.el)return;const{scrollbar:n}=e,{dragEl:i,el:s}=n;i.style.width="",i.style.height="",c=e.isHorizontal()?s.offsetWidth:s.offsetHeight,d=e.size/(e.virtualSize+(e.params.slidesOffsetBefore??0)-(e.params.centeredSlides?e.snapGrid[0]:0)),l="auto"===t.dragSize?c*d:parseInt(String(t.dragSize),10),e.isHorizontal()?i.style.width=`${l}px`:i.style.height=`${l}px`,s.style.display=d>=1?"none":"",t.hide&&(s.style.opacity="0"),e.params.watchOverflow&&e.enabled&&n.el.classList[e.isLocked?"add":"remove"](t.lockClass)}function m(t){return e.isHorizontal()?t.clientX??t.touches?.[0]?.clientX??0:t.clientY??t.touches?.[0]?.clientY??0}function f(t){const{scrollbar:n,rtlTranslate:i}=e,{el:s}=n;let r;r=(m(t)-st(s)[e.isHorizontal()?"left":"top"]-(null!==o?o:l/2))/(c-l),r=Math.max(Math.min(r,1),0),i&&(r=1-r);const a=e.minTranslate()+(e.maxTranslate()-e.minTranslate())*r;e.updateProgress(a),e.setTranslate(a),e.updateActiveIndex(),e.updateSlidesClasses()}function g(t){const n=u(),{scrollbar:r,wrapperEl:l}=e,{el:c,dragEl:d}=r;s=!0,o=t.target===d?m(t)-t.target.getBoundingClientRect()[e.isHorizontal()?"left":"top"]:null,t.preventDefault(),t.stopPropagation(),l.style.transitionDuration="100ms",d.style.transitionDuration="100ms",f(t),a&&clearTimeout(a),c.style.transitionDuration="0ms",n.hide&&(c.style.opacity="1"),e.params.cssMode&&(e.wrapperEl.style.scrollSnapType="none"),i("scrollbarDragStart",t)}function v(t){const{scrollbar:n,wrapperEl:r}=e,{el:a,dragEl:o}=n;s&&(t.cancelable&&t.preventDefault(),f(t),r.style.transitionDuration="0ms",a.style.transitionDuration="0ms",o.style.transitionDuration="0ms",i("scrollbarDragMove",t))}function b(t){const n=u(),{scrollbar:r,wrapperEl:o}=e,{el:l}=r;s&&(s=!1,e.params.cssMode&&(e.wrapperEl.style.scrollSnapType="",o.style.transitionDuration=""),n.hide&&(a&&clearTimeout(a),a=Xe(()=>{l.style.opacity="0",l.style.transitionDuration="400ms"},1e3)),i("scrollbarDragEnd",t),n.snapOnRelease&&e.slideToClosest())}function y(t){const{scrollbar:n,params:i}=e,s=n.el;if(!s)return;const r=!!i.passiveListeners&&{passive:!1,capture:!1},a=!!i.passiveListeners&&{passive:!0,capture:!1},o="on"===t?"addEventListener":"removeEventListener";s[o]("pointerdown",g,r),document[o]("pointermove",v,r),document[o]("pointerup",b,a)}function _(){const{scrollbar:t,el:n}=e;e.params.scrollbar=Xt(e,e.originalParams.scrollbar,e.params.scrollbar,{el:"swiper-scrollbar"});const i=u();if(!i.el)return;let s;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=document.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]);const r=s;r.classList.add(e.isHorizontal()?i.horizontalClass:i.verticalClass);let a=null;r&&(a=r.querySelector(Qt(i.dragClass)),a||(a=it("div",i.dragClass),r.append(a))),Object.assign(t,{el:r,dragEl:a}),i.draggable&&u().el&&e.scrollbar.el&&y("on"),r&&r.classList[e.enabled?"remove":"add"](...Ke(i.lockClass))}function x(){const t=u(),n=e.scrollbar.el;n&&n.classList.remove(...Ke(e.isHorizontal()?t.horizontalClass:t.verticalClass)),u().el&&e.scrollbar.el&&y("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=u();ct(e.scrollbar.el).forEach(n=>{n.classList.remove(t.horizontalClass,t.verticalClass),n.classList.add(e.isHorizontal()?t.horizontalClass:t.verticalClass)})}),n("init",()=>{!1===u().enabled?w():(_(),p(),h())}),n("update resize observerUpdate lock unlock changeDirection",()=>{p()}),n("setTranslate",()=>{h()}),n("setTransition",(t,n)=>{!function(t){u().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"](...Ke(u().lockClass))}),n("destroy",()=>{x()});const w=()=>{const t=u();e.el.classList.add(...Ke(t.scrollbarDisabledClass)),e.scrollbar.el&&e.scrollbar.el.classList.add(...Ke(t.scrollbarDisabledClass)),x()};Object.assign(e.scrollbar,{enable:()=>{const t=u();e.el.classList.remove(...Ke(t.scrollbarDisabledClass)),e.scrollbar.el&&e.scrollbar.el.classList.remove(...Ke(t.scrollbarDisabledClass)),_(),p(),h()},disable:w,updateSize:p,setTranslate:h,init:_,destroy:x})},sn=({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,s=null,r=!1,a=(new Date).getTime();function o(){return e.params.a11y}function l(e){s&&e&&dt(s,e)}function c(e){ct(e).forEach(e=>{e.setAttribute("tabIndex","0")})}function d(e){ct(e).forEach(e=>{e.setAttribute("tabIndex","-1")})}function u(e,t){ct(e).forEach(e=>{e.setAttribute("role",t)})}function h(e,t){ct(e).forEach(e=>{e.setAttribute("aria-roledescription",t)})}function p(e,t){ct(e).forEach(e=>{e.setAttribute("aria-label",t)})}function m(e){ct(e).forEach(e=>{e.setAttribute("aria-disabled","true")})}function f(e){ct(e).forEach(e=>{e.removeAttribute("aria-disabled")})}function g(t){if(13!==t.keyCode&&32!==t.keyCode)return;const n=o(),i=e.params.pagination,s=t.target;if(!e.pagination||!e.pagination.el||s!==e.pagination.el&&!e.pagination.el.contains(s)||s.matches(Qt(i?.bulletClass))){if(e.navigation&&e.navigation.prevEl&&e.navigation.nextEl){const t=ct(e.navigation.prevEl);ct(e.navigation.nextEl).includes(s)&&(e.isEnd&&!e.params.loop||e.slideNext(),e.isEnd?l(n.lastSlideMessage):l(n.nextSlideMessage)),t.includes(s)&&(e.isBeginning&&!e.params.loop||e.slidePrev(),e.isBeginning?l(n.firstSlideMessage):l(n.prevSlideMessage))}e.pagination&&s.matches(Qt(i?.bulletClass))&&s.click()}}function v(){return!!(e.pagination&&e.pagination.bullets&&e.pagination.bullets.length)}function b(){const t=e.params.pagination;return v()&&!!t?.clickable}const y=(e,t,n)=>{c(e),"BUTTON"!==e.tagName&&(u(e,"button"),e.addEventListener("keydown",g)),p(e,n)},_=t=>{i&&i!==t.target&&!i.contains(t.target)&&(r=!0),e.a11y.clicked=!0},x=()=>{r=!1,requestAnimationFrame(()=>{requestAnimationFrame(()=>{e.destroyed||(e.a11y.clicked=!1)})})},w=e=>{a=(new Date).getTime()},S=t=>{const n=o();if(e.a11y.clicked||!n.scrollOnFocus)return;if((new Date).getTime()-a<100)return;const s=t.target.closest(`.${e.params.slideClass}, swiper-slide`);if(!s||!e.slides.includes(s))return;i=s;const l=(e=>!!e.virtual&&!!e.params.virtual?.enabled)(e),c=(l?parseInt(s.getAttribute("data-swiper-slide-index")||"0",10):e.slides.indexOf(s))===e.activeIndex,d=e.params.watchSlidesProgress&&e.visibleSlides&&e.visibleSlides.includes(s);if(c||d)return;const u=t.sourceCapabilities;u&&u.firesTouchEvents||(e.isHorizontal()?e.el.scrollLeft=0:e.el.scrollTop=0,requestAnimationFrame(()=>{r||(e.params.loop?e.slideToLoop(e.getSlideIndexWhenGrid(parseInt(s.getAttribute("data-swiper-slide-index")||"0",10)),0):l?e.slideTo(e.getSlideIndexWhenGrid(parseInt(s.getAttribute("data-swiper-slide-index")||"0",10)),0):e.slideTo(e.getSlideIndexWhenGrid(e.slides.indexOf(s)),0),r=!1)}))},E=()=>{const t=o();t.itemRoleDescriptionMessage&&h(e.slides,t.itemRoleDescriptionMessage),t.slideRole&&u(e.slides,t.slideRole);const n=e.slides.length,i=t.slideLabelMessage;i&&e.slides.forEach((t,s)=>{const r=e.params.loop?parseInt(t.getAttribute("data-swiper-slide-index")||"0",10):s;p(t,i.replace(/\{\{index\}\}/,String(r+1)).replace(/\{\{slidesLength\}\}/,String(n)))})};n("beforeInit",()=>{s=it("span",o().notificationClass),s.setAttribute("aria-live","assertive"),s.setAttribute("aria-atomic","true")}),n("afterInit",()=>{o().enabled&&(()=>{const t=o();s&&e.el.append(s);const n=e.el;t.containerRoleDescriptionMessage&&h(n,t.containerRoleDescriptionMessage),t.containerMessage&&p(n,t.containerMessage),t.containerRole&&u(n,t.containerRole);const i=e.wrapperEl,r=String(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 a,l,c;if(a=r,ct(i).forEach(e=>{e.setAttribute("id",a)}),t.wrapperLiveRegion){const t=e.params.autoplay;l=i,c=e.params.autoplay&&t?.enabled?"off":"polite",ct(l).forEach(e=>{e.setAttribute("aria-live",c)})}E();const d=e.navigation?e.navigation:{nextEl:void 0,prevEl:void 0},m=ct(d.nextEl),f=ct(d.prevEl);m&&m.forEach(e=>y(e,0,t.nextSlideMessage)),f&&f.forEach(e=>y(e,0,t.prevSlideMessage)),b()&&ct(e.pagination.el).forEach(e=>{e.addEventListener("keydown",g)}),document.addEventListener("visibilitychange",w),e.el.addEventListener("focus",S,!0),e.el.addEventListener("pointerdown",_,!0),e.el.addEventListener("pointerup",x,!0)})()}),n("slidesLengthChange snapGridLengthChange slidesGridLengthChange",()=>{o().enabled&&E()}),n("fromEdge toEdge afterInit lock unlock",()=>{o().enabled&&function(){if(e.params.loop||e.params.rewind||!e.navigation)return;const{nextEl:t,prevEl:n}=e.navigation;n&&(e.isBeginning?(m(n),d(n)):(f(n),c(n))),t&&(e.isEnd?(m(t),d(t)):(f(t),c(t)))}()}),n("paginationUpdate",()=>{o().enabled&&function(){const t=o();if(!v())return;const n=e.params.pagination;e.pagination.bullets.forEach(e=>{n.clickable&&(c(e),n.renderBullet||(u(e,"button"),p(e,t.paginationBulletMessage.replace(/\{\{index\}\}/,String((at(e)??0)+1))))),e.matches(Qt(n.bulletActiveClass))?e.setAttribute("aria-current","true"):e.removeAttribute("aria-current")})}()}),n("destroy",()=>{o().enabled&&function(){s&&s.remove();const t=e.navigation?e.navigation:{nextEl:void 0,prevEl:void 0},n=ct(t.nextEl),i=ct(t.prevEl);n&&n.forEach(e=>e.removeEventListener("keydown",g)),i&&i.forEach(e=>e.removeEventListener("keydown",g)),b()&&ct(e.pagination.el).forEach(e=>{e.removeEventListener("keydown",g)}),document.removeEventListener("visibilitychange",w),e.el&&"string"!=typeof e.el&&(e.el.removeEventListener("focus",S,!0),e.el.removeEventListener("pointerdown",_,!0),e.el.removeEventListener("pointerup",x,!0))}()})},rn=({swiper:e,extendParams:t,on:n,emit:i,params:s})=>{function r(){return e.params.autoplay}e.autoplay={running:!1,paused:!1,timeLeft:0},t({autoplay:{enabled:!1,delay:3e3,waitForTransition:!0,disableOnInteraction:!1,stopOnLastSlide:!1,reverseDirection:!1,pauseOnMouseEnter:!1}});const a="object"==typeof s.autoplay&&s.autoplay&&"number"==typeof s.autoplay.delay?s.autoplay.delay:3e3;let o,l,c,d=a,u=a,h=0,p=(new Date).getTime(),m=!1,f=!1,g=!1,v=!1,b=!1;function y(t){if(!e||e.destroyed||!e.wrapperEl)return;if(t.target!==e.wrapperEl)return;e.wrapperEl.removeEventListener("transitionend",y);const n=t.detail;b||n&&n.bySwiperTouchMove||C()}const _=()=>{if(e.destroyed||!e.autoplay.running)return;e.autoplay.paused?m=!0:m&&(u=h,m=!1);const t=e.autoplay.paused?h:p+u-(new Date).getTime();e.autoplay.timeLeft=t,i("autoplayTimeLeft",t,t/d),l=requestAnimationFrame(()=>{_()})},x=()=>{let t=r().delay;const n=(()=>{let t;const n=!!e.params.virtual?.enabled;if(t=e.virtual&&n?e.slides.find(e=>e.classList.contains("swiper-slide-active")):e.slides[e.activeIndex],!t)return;const i=t.getAttribute("data-swiper-autoplay");return null!=i?parseInt(i,10):void 0})();return"number"==typeof n&&!Number.isNaN(n)&&n>0&&(t=n),t},w=t=>{if(e.destroyed||!e.autoplay.running)return 0;void 0!==l&&cancelAnimationFrame(l),_();let n=t;void 0===n&&(n=x(),d=n,u=n),h=n;const s=e.params.speed,a=()=>{if(!e||e.destroyed)return;const t=r();t.reverseDirection?!e.isBeginning||e.params.loop||e.params.rewind?(e.slidePrev(s,!0,!0),i("autoplay")):t.stopOnLastSlide||(e.slideTo(e.slides.length-1,s,!0,!0),i("autoplay")):!e.isEnd||e.params.loop||e.params.rewind?(e.slideNext(s,!0,!0),i("autoplay")):t.stopOnLastSlide||(e.slideTo(0,s,!0,!0),i("autoplay")),e.params.cssMode&&(p=(new Date).getTime(),requestAnimationFrame(()=>{w()}))};return n>0?(void 0!==o&&clearTimeout(o),o=setTimeout(()=>{a()},n)):requestAnimationFrame(()=>{a()}),n},S=()=>(p=(new Date).getTime(),e.autoplay.running=!0,w(),i("autoplayStart"),!0),E=()=>(e.autoplay.running=!1,void 0!==o&&clearTimeout(o),void 0!==l&&cancelAnimationFrame(l),i("autoplayStop"),!0),N=(t,n)=>{if(e.destroyed||!e.autoplay.running)return;void 0!==o&&clearTimeout(o),t||(v=!0);const s=()=>{i("autoplayPause"),r().waitForTransition?e.wrapperEl.addEventListener("transitionend",y):C()};if(e.autoplay.paused=!0,n)return void s();const a=h||r().delay;h=a-((new Date).getTime()-p),e.isEnd&&h<0&&!e.params.loop||(h<0&&(h=0),s())},C=()=>{e.isEnd&&h<0&&!e.params.loop||e.destroyed||!e.autoplay.running||(p=(new Date).getTime(),v?(v=!1,w(h)):w(),e.autoplay.paused=!1,i("autoplayResume"))},k=()=>{!e.destroyed&&e.autoplay.running&&("hidden"===document.visibilityState&&(v=!0,N(!0)),"visible"===document.visibilityState&&C())},T=t=>{"mouse"===t.pointerType&&(v=!0,b=!0,e.animating||e.autoplay.paused||N(!0))},j=t=>{"mouse"===t.pointerType&&(b=!1,e.autoplay.paused&&C())};n("init",()=>{r().enabled&&(r().pauseOnMouseEnter&&(e.el.addEventListener("pointerenter",T),e.el.addEventListener("pointerleave",j)),document.addEventListener("visibilitychange",k),S())}),n("destroy",()=>{e.el&&"string"!=typeof e.el&&(e.el.removeEventListener("pointerenter",T),e.el.removeEventListener("pointerleave",j)),document.removeEventListener("visibilitychange",k),e.autoplay.running&&E()}),n("_freeModeStaticRelease",()=>{(g||v)&&C()}),n("_freeModeNoMomentumRelease",()=>{r().disableOnInteraction?E():N(!0,!0)}),n("beforeTransitionStart",(t,n,i)=>{!e.destroyed&&e.autoplay.running&&(i||!r().disableOnInteraction?N(!0,!0):E())}),n("sliderFirstMove",()=>{!e.destroyed&&e.autoplay.running&&(r().disableOnInteraction?E():(f=!0,g=!1,v=!1,c=setTimeout(()=>{v=!0,g=!0,N(!0)},200)))}),n("touchEnd",()=>{if(!e.destroyed&&e.autoplay.running&&f){if(void 0!==c&&clearTimeout(c),void 0!==o&&clearTimeout(o),r().disableOnInteraction)return g=!1,void(f=!1);g&&e.params.cssMode&&C(),g=!1,f=!1}}),n("slideChange",()=>{!e.destroyed&&e.autoplay.running&&e.autoplay.paused&&(h=x(),d=x())}),Object.assign(e.autoplay,{start:S,stop:E,pause:N,resume:C})};function an({element:e,visibleClass:t,waitMode:n="transitionend",timeoutDuration:i,hideMode:s="hidden",displayValue:r="block"}){if("timeout"===n&&"number"!=typeof i)return;window.matchMedia("(prefers-reduced-motion: reduce)").matches&&(n="immediate");const a=t=>{t.target===e&&(o(),e.removeEventListener("transitionend",a))},o=()=>{"display"===s?e.style.display="none":e.setAttribute("hidden",!0)};return{show(){e.removeEventListener("transitionend",a),this.timeout&&clearTimeout(this.timeout),"display"===s?e.style.display=r:e.removeAttribute("hidden"),e.offsetHeight,e.classList.add(t)},hide(){"transitionend"===n?e.addEventListener("transitionend",a):"timeout"===n?this.timeout=setTimeout(()=>{o()},i):o(),e.classList.remove(t)},toggle(){this.isHidden()?this.show():this.hide()},isHidden(){const n=null!==e.getAttribute("hidden"),i="none"===e.style.display,s=[...e.classList].includes(t);return n||i||!s},timeout:null}}var on="top",ln="bottom",cn="right",dn="left",un="auto",hn=[on,ln,cn,dn],pn="start",mn="end",fn="viewport",gn="popper",vn=hn.reduce(function(e,t){return e.concat([t+"-"+pn,t+"-"+mn])},[]),bn=[].concat(hn,[un]).reduce(function(e,t){return e.concat([t,t+"-"+pn,t+"-"+mn])},[]),yn=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function _n(e){return e?(e.nodeName||"").toLowerCase():null}function xn(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function wn(e){return e instanceof xn(e).Element||e instanceof Element}function Sn(e){return e instanceof xn(e).HTMLElement||e instanceof HTMLElement}function En(e){return"undefined"!=typeof ShadowRoot&&(e instanceof xn(e).ShadowRoot||e instanceof ShadowRoot)}var Nn={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]||{},s=t.elements[e];Sn(s)&&_n(s)&&(Object.assign(s.style,n),Object.keys(i).forEach(function(e){var t=i[e];!1===t?s.removeAttribute(e):s.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],s=t.attributes[e]||{},r=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce(function(e,t){return e[t]="",e},{});Sn(i)&&_n(i)&&(Object.assign(i.style,r),Object.keys(s).forEach(function(e){i.removeAttribute(e)}))})}},requires:["computeStyles"]};function Cn(e){return e.split("-")[0]}var kn=Math.max,Tn=Math.min,jn=Math.round;function An(){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 On(){return!/^((?!chrome|android).)*safari/i.test(An())}function Ln(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);var i=e.getBoundingClientRect(),s=1,r=1;t&&Sn(e)&&(s=e.offsetWidth>0&&jn(i.width)/e.offsetWidth||1,r=e.offsetHeight>0&&jn(i.height)/e.offsetHeight||1);var a=(wn(e)?xn(e):window).visualViewport,o=!On()&&n,l=(i.left+(o&&a?a.offsetLeft:0))/s,c=(i.top+(o&&a?a.offsetTop:0))/r,d=i.width/s,u=i.height/r;return{width:d,height:u,top:c,right:l+d,bottom:c+u,left:l,x:l,y:c}}function Dn(e){var t=Ln(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 Mn(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&En(n)){var i=t;do{if(i&&e.isSameNode(i))return!0;i=i.parentNode||i.host}while(i)}return!1}function $n(e){return xn(e).getComputedStyle(e)}function Pn(e){return["table","td","th"].indexOf(_n(e))>=0}function In(e){return((wn(e)?e.ownerDocument:e.document)||window.document).documentElement}function Rn(e){return"html"===_n(e)?e:e.assignedSlot||e.parentNode||(En(e)?e.host:null)||In(e)}function zn(e){return Sn(e)&&"fixed"!==$n(e).position?e.offsetParent:null}function Fn(e){for(var t=xn(e),n=zn(e);n&&Pn(n)&&"static"===$n(n).position;)n=zn(n);return n&&("html"===_n(n)||"body"===_n(n)&&"static"===$n(n).position)?t:n||function(e){var t=/firefox/i.test(An());if(/Trident/i.test(An())&&Sn(e)&&"fixed"===$n(e).position)return null;var n=Rn(e);for(En(n)&&(n=n.host);Sn(n)&&["html","body"].indexOf(_n(n))<0;){var i=$n(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 Hn(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Bn(e,t,n){return kn(e,Tn(t,n))}function Vn(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function qn(e,t){return t.reduce(function(t,n){return t[n]=e,t},{})}var Wn={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n=e.state,i=e.name,s=e.options,r=n.elements.arrow,a=n.modifiersData.popperOffsets,o=Cn(n.placement),l=Hn(o),c=[dn,cn].indexOf(o)>=0?"height":"width";if(r&&a){var d=function(e,t){return Vn("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:qn(e,hn))}(s.padding,n),u=Dn(r),h="y"===l?on:dn,p="y"===l?ln:cn,m=n.rects.reference[c]+n.rects.reference[l]-a[l]-n.rects.popper[c],f=a[l]-n.rects.reference[l],g=Fn(r),v=g?"y"===l?g.clientHeight||0:g.clientWidth||0:0,b=m/2-f/2,y=d[h],_=v-u[c]-d[p],x=v/2-u[c]/2+b,w=Bn(y,x,_),S=l;n.modifiersData[i]=((t={})[S]=w,t.centerOffset=w-x,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)))&&Mn(t.elements.popper,i)&&(t.elements.arrow=i)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Un(e){return e.split("-")[1]}var Gn={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Yn(e){var t,n=e.popper,i=e.popperRect,s=e.placement,r=e.variation,a=e.offsets,o=e.position,l=e.gpuAcceleration,c=e.adaptive,d=e.roundOffsets,u=e.isFixed,h=a.x,p=void 0===h?0:h,m=a.y,f=void 0===m?0:m,g="function"==typeof d?d({x:p,y:f}):{x:p,y:f};p=g.x,f=g.y;var v=a.hasOwnProperty("x"),b=a.hasOwnProperty("y"),y=dn,_=on,x=window;if(c){var w=Fn(n),S="clientHeight",E="clientWidth";w===xn(n)&&"static"!==$n(w=In(n)).position&&"absolute"===o&&(S="scrollHeight",E="scrollWidth"),(s===on||(s===dn||s===cn)&&r===mn)&&(_=ln,f-=(u&&w===x&&x.visualViewport?x.visualViewport.height:w[S])-i.height,f*=l?1:-1),s!==dn&&(s!==on&&s!==ln||r!==mn)||(y=cn,p-=(u&&w===x&&x.visualViewport?x.visualViewport.width:w[E])-i.width,p*=l?1:-1)}var N,C=Object.assign({position:o},c&&Gn),k=!0===d?function(e,t){var n=e.x,i=e.y,s=t.devicePixelRatio||1;return{x:jn(n*s)/s||0,y:jn(i*s)/s||0}}({x:p,y:f},xn(n)):{x:p,y:f};return p=k.x,f=k.y,l?Object.assign({},C,((N={})[_]=b?"0":"",N[y]=v?"0":"",N.transform=(x.devicePixelRatio||1)<=1?"translate("+p+"px, "+f+"px)":"translate3d("+p+"px, "+f+"px, 0)",N)):Object.assign({},C,((t={})[_]=b?f+"px":"",t[y]=v?p+"px":"",t.transform="",t))}var Kn={passive:!0},Xn={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,n=e.instance,i=e.options,s=i.scroll,r=void 0===s||s,a=i.resize,o=void 0===a||a,l=xn(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return r&&c.forEach(function(e){e.addEventListener("scroll",n.update,Kn)}),o&&l.addEventListener("resize",n.update,Kn),function(){r&&c.forEach(function(e){e.removeEventListener("scroll",n.update,Kn)}),o&&l.removeEventListener("resize",n.update,Kn)}},data:{}},Zn={left:"right",right:"left",bottom:"top",top:"bottom"};function Jn(e){return e.replace(/left|right|bottom|top/g,function(e){return Zn[e]})}var Qn={start:"end",end:"start"};function ei(e){return e.replace(/start|end/g,function(e){return Qn[e]})}function ti(e){var t=xn(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function ni(e){return Ln(In(e)).left+ti(e).scrollLeft}function ii(e){var t=$n(e),n=t.overflow,i=t.overflowX,s=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+s+i)}function si(e){return["html","body","#document"].indexOf(_n(e))>=0?e.ownerDocument.body:Sn(e)&&ii(e)?e:si(Rn(e))}function ri(e,t){var n;void 0===t&&(t=[]);var i=si(e),s=i===(null==(n=e.ownerDocument)?void 0:n.body),r=xn(i),a=s?[r].concat(r.visualViewport||[],ii(i)?i:[]):i,o=t.concat(a);return s?o:o.concat(ri(Rn(a)))}function ai(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function oi(e,t,n){return t===fn?ai(function(e,t){var n=xn(e),i=In(e),s=n.visualViewport,r=i.clientWidth,a=i.clientHeight,o=0,l=0;if(s){r=s.width,a=s.height;var c=On();(c||!c&&"fixed"===t)&&(o=s.offsetLeft,l=s.offsetTop)}return{width:r,height:a,x:o+ni(e),y:l}}(e,n)):wn(t)?function(e,t){var n=Ln(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):ai(function(e){var t,n=In(e),i=ti(e),s=null==(t=e.ownerDocument)?void 0:t.body,r=kn(n.scrollWidth,n.clientWidth,s?s.scrollWidth:0,s?s.clientWidth:0),a=kn(n.scrollHeight,n.clientHeight,s?s.scrollHeight:0,s?s.clientHeight:0),o=-i.scrollLeft+ni(e),l=-i.scrollTop;return"rtl"===$n(s||n).direction&&(o+=kn(n.clientWidth,s?s.clientWidth:0)-r),{width:r,height:a,x:o,y:l}}(In(e)))}function li(e){var t,n=e.reference,i=e.element,s=e.placement,r=s?Cn(s):null,a=s?Un(s):null,o=n.x+n.width/2-i.width/2,l=n.y+n.height/2-i.height/2;switch(r){case on:t={x:o,y:n.y-i.height};break;case ln:t={x:o,y:n.y+n.height};break;case cn:t={x:n.x+n.width,y:l};break;case dn:t={x:n.x-i.width,y:l};break;default:t={x:n.x,y:n.y}}var c=r?Hn(r):null;if(null!=c){var d="y"===c?"height":"width";switch(a){case pn:t[c]=t[c]-(n[d]/2-i[d]/2);break;case mn:t[c]=t[c]+(n[d]/2-i[d]/2)}}return t}function ci(e,t){void 0===t&&(t={});var n=t,i=n.placement,s=void 0===i?e.placement:i,r=n.strategy,a=void 0===r?e.strategy:r,o=n.boundary,l=void 0===o?"clippingParents":o,c=n.rootBoundary,d=void 0===c?fn:c,u=n.elementContext,h=void 0===u?gn:u,p=n.altBoundary,m=void 0!==p&&p,f=n.padding,g=void 0===f?0:f,v=Vn("number"!=typeof g?g:qn(g,hn)),b=h===gn?"reference":gn,y=e.rects.popper,_=e.elements[m?b:h],x=function(e,t,n,i){var s="clippingParents"===t?function(e){var t=ri(Rn(e)),n=["absolute","fixed"].indexOf($n(e).position)>=0&&Sn(e)?Fn(e):e;return wn(n)?t.filter(function(e){return wn(e)&&Mn(e,n)&&"body"!==_n(e)}):[]}(e):[].concat(t),r=[].concat(s,[n]),a=r[0],o=r.reduce(function(t,n){var s=oi(e,n,i);return t.top=kn(s.top,t.top),t.right=Tn(s.right,t.right),t.bottom=Tn(s.bottom,t.bottom),t.left=kn(s.left,t.left),t},oi(e,a,i));return o.width=o.right-o.left,o.height=o.bottom-o.top,o.x=o.left,o.y=o.top,o}(wn(_)?_:_.contextElement||In(e.elements.popper),l,d,a),w=Ln(e.elements.reference),S=li({reference:w,element:y,placement:s}),E=ai(Object.assign({},y,S)),N=h===gn?E:w,C={top:x.top-N.top+v.top,bottom:N.bottom-x.bottom+v.bottom,left:x.left-N.left+v.left,right:N.right-x.right+v.right},k=e.modifiersData.offset;if(h===gn&&k){var T=k[s];Object.keys(C).forEach(function(e){var t=[cn,ln].indexOf(e)>=0?1:-1,n=[on,ln].indexOf(e)>=0?"y":"x";C[e]+=T[n]*t})}return C}var di={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 s=n.mainAxis,r=void 0===s||s,a=n.altAxis,o=void 0===a||a,l=n.fallbackPlacements,c=n.padding,d=n.boundary,u=n.rootBoundary,h=n.altBoundary,p=n.flipVariations,m=void 0===p||p,f=n.allowedAutoPlacements,g=t.options.placement,v=Cn(g),b=l||(v!==g&&m?function(e){if(Cn(e)===un)return[];var t=Jn(e);return[ei(e),t,ei(t)]}(g):[Jn(g)]),y=[g].concat(b).reduce(function(e,n){return e.concat(Cn(n)===un?function(e,t){void 0===t&&(t={});var n=t,i=n.placement,s=n.boundary,r=n.rootBoundary,a=n.padding,o=n.flipVariations,l=n.allowedAutoPlacements,c=void 0===l?bn:l,d=Un(i),u=d?o?vn:vn.filter(function(e){return Un(e)===d}):hn,h=u.filter(function(e){return c.indexOf(e)>=0});0===h.length&&(h=u);var p=h.reduce(function(t,n){return t[n]=ci(e,{placement:n,boundary:s,rootBoundary:r,padding:a})[Cn(n)],t},{});return Object.keys(p).sort(function(e,t){return p[e]-p[t]})}(t,{placement:n,boundary:d,rootBoundary:u,padding:c,flipVariations:m,allowedAutoPlacements:f}):n)},[]),_=t.rects.reference,x=t.rects.popper,w=new Map,S=!0,E=y[0],N=0;N<y.length;N++){var C=y[N],k=Cn(C),T=Un(C)===pn,j=[on,ln].indexOf(k)>=0,A=j?"width":"height",O=ci(t,{placement:C,boundary:d,rootBoundary:u,altBoundary:h,padding:c}),L=j?T?cn:dn:T?ln:on;_[A]>x[A]&&(L=Jn(L));var D=Jn(L),M=[];if(r&&M.push(O[k]<=0),o&&M.push(O[L]<=0,O[D]<=0),M.every(function(e){return e})){E=C,S=!1;break}w.set(C,M)}if(S)for(var $=function(e){var t=y.find(function(t){var n=w.get(t);if(n)return n.slice(0,e).every(function(e){return e})});if(t)return E=t,"break"},P=m?3:1;P>0&&"break"!==$(P);P--);t.placement!==E&&(t.modifiersData[i]._skip=!0,t.placement=E,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function ui(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 hi(e){return[on,cn,ln,dn].some(function(t){return e[t]>=0})}var pi={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,n=e.name,i=t.rects.reference,s=t.rects.popper,r=t.modifiersData.preventOverflow,a=ci(t,{elementContext:"reference"}),o=ci(t,{altBoundary:!0}),l=ui(a,i),c=ui(o,s,r),d=hi(l),u=hi(c);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:d,hasPopperEscaped:u},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":d,"data-popper-escaped":u})}},mi={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.options,i=e.name,s=n.offset,r=void 0===s?[0,0]:s,a=bn.reduce(function(e,n){return e[n]=function(e,t,n){var i=Cn(e),s=[dn,on].indexOf(i)>=0?-1:1,r="function"==typeof n?n(Object.assign({},t,{placement:e})):n,a=r[0],o=r[1];return a=a||0,o=(o||0)*s,[dn,cn].indexOf(i)>=0?{x:o,y:a}:{x:a,y:o}}(n,t.rects,r),e},{}),o=a[t.placement],l=o.x,c=o.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=c),t.modifiersData[i]=a}},fi={name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=li({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})},data:{}},gi={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,i=e.name,s=n.mainAxis,r=void 0===s||s,a=n.altAxis,o=void 0!==a&&a,l=n.boundary,c=n.rootBoundary,d=n.altBoundary,u=n.padding,h=n.tether,p=void 0===h||h,m=n.tetherOffset,f=void 0===m?0:m,g=ci(t,{boundary:l,rootBoundary:c,padding:u,altBoundary:d}),v=Cn(t.placement),b=Un(t.placement),y=!b,_=Hn(v),x="x"===_?"y":"x",w=t.modifiersData.popperOffsets,S=t.rects.reference,E=t.rects.popper,N="function"==typeof f?f(Object.assign({},t.rects,{placement:t.placement})):f,C="number"==typeof N?{mainAxis:N,altAxis:N}:Object.assign({mainAxis:0,altAxis:0},N),k=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,T={x:0,y:0};if(w){if(r){var j,A="y"===_?on:dn,O="y"===_?ln:cn,L="y"===_?"height":"width",D=w[_],M=D+g[A],$=D-g[O],P=p?-E[L]/2:0,I=b===pn?S[L]:E[L],R=b===pn?-E[L]:-S[L],z=t.elements.arrow,F=p&&z?Dn(z):{width:0,height:0},H=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},B=H[A],V=H[O],q=Bn(0,S[L],F[L]),W=y?S[L]/2-P-q-B-C.mainAxis:I-q-B-C.mainAxis,U=y?-S[L]/2+P+q+V+C.mainAxis:R+q+V+C.mainAxis,G=t.elements.arrow&&Fn(t.elements.arrow),Y=G?"y"===_?G.clientTop||0:G.clientLeft||0:0,K=null!=(j=null==k?void 0:k[_])?j:0,X=D+U-K,Z=Bn(p?Tn(M,D+W-K-Y):M,D,p?kn($,X):$);w[_]=Z,T[_]=Z-D}if(o){var J,Q="x"===_?on:dn,ee="x"===_?ln:cn,te=w[x],ne="y"===x?"height":"width",ie=te+g[Q],se=te-g[ee],re=-1!==[on,dn].indexOf(v),ae=null!=(J=null==k?void 0:k[x])?J:0,oe=re?ie:te-S[ne]-E[ne]-ae+C.altAxis,le=re?te+S[ne]+E[ne]-ae-C.altAxis:se,ce=p&&re?function(e,t,n){var i=Bn(e,t,n);return i>n?n:i}(oe,te,le):Bn(p?oe:ie,te,p?le:se);w[x]=ce,T[x]=ce-te}t.modifiersData[i]=T}},requiresIfExists:["offset"]};function vi(e,t,n){void 0===n&&(n=!1);var i,s,r=Sn(t),a=Sn(t)&&function(e){var t=e.getBoundingClientRect(),n=jn(t.width)/e.offsetWidth||1,i=jn(t.height)/e.offsetHeight||1;return 1!==n||1!==i}(t),o=In(t),l=Ln(e,a,n),c={scrollLeft:0,scrollTop:0},d={x:0,y:0};return(r||!r&&!n)&&(("body"!==_n(t)||ii(o))&&(c=(i=t)!==xn(i)&&Sn(i)?{scrollLeft:(s=i).scrollLeft,scrollTop:s.scrollTop}:ti(i)),Sn(t)?((d=Ln(t,!0)).x+=t.clientLeft,d.y+=t.clientTop):o&&(d.x=ni(o))),{x:l.left+c.scrollLeft-d.x,y:l.top+c.scrollTop-d.y,width:l.width,height:l.height}}function bi(e){var t=new Map,n=new Set,i=[];function s(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach(function(e){if(!n.has(e)){var i=t.get(e);i&&s(i)}}),i.push(e)}return e.forEach(function(e){t.set(e.name,e)}),e.forEach(function(e){n.has(e.name)||s(e)}),i}var yi={placement:"bottom",modifiers:[],strategy:"absolute"};function _i(){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 xi(e){void 0===e&&(e={});var t=e,n=t.defaultModifiers,i=void 0===n?[]:n,s=t.defaultOptions,r=void 0===s?yi:s;return function(e,t,n){void 0===n&&(n=r);var s,a,o={placement:"bottom",orderedModifiers:[],options:Object.assign({},yi,r),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},l=[],c=!1,d={state:o,setOptions:function(n){var s="function"==typeof n?n(o.options):n;u(),o.options=Object.assign({},r,o.options,s),o.scrollParents={reference:wn(e)?ri(e):e.contextElement?ri(e.contextElement):[],popper:ri(t)};var a,c,h=function(e){var t=bi(e);return yn.reduce(function(e,n){return e.concat(t.filter(function(e){return e.phase===n}))},[])}((a=[].concat(i,o.options.modifiers),c=a.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 o.orderedModifiers=h.filter(function(e){return e.enabled}),o.orderedModifiers.forEach(function(e){var t=e.name,n=e.options,i=void 0===n?{}:n,s=e.effect;if("function"==typeof s){var r=s({state:o,name:t,instance:d,options:i});l.push(r||function(){})}}),d.update()},forceUpdate:function(){if(!c){var e=o.elements,t=e.reference,n=e.popper;if(_i(t,n)){o.rects={reference:vi(t,Fn(n),"fixed"===o.options.strategy),popper:Dn(n)},o.reset=!1,o.placement=o.options.placement,o.orderedModifiers.forEach(function(e){return o.modifiersData[e.name]=Object.assign({},e.data)});for(var i=0;i<o.orderedModifiers.length;i++)if(!0!==o.reset){var s=o.orderedModifiers[i],r=s.fn,a=s.options,l=void 0===a?{}:a,u=s.name;"function"==typeof r&&(o=r({state:o,options:l,name:u,instance:d})||o)}else o.reset=!1,i=-1}}},update:(s=function(){return new Promise(function(e){d.forceUpdate(),e(o)})},function(){return a||(a=new Promise(function(e){Promise.resolve().then(function(){a=void 0,e(s())})})),a}),destroy:function(){u(),c=!0}};if(!_i(e,t))return d;function u(){l.forEach(function(e){return e()}),l=[]}return d.setOptions(n).then(function(e){!c&&n.onFirstUpdate&&n.onFirstUpdate(e)}),d}}var wi=xi({defaultModifiers:[Xn,fi,{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,n=e.options,i=n.gpuAcceleration,s=void 0===i||i,r=n.adaptive,a=void 0===r||r,o=n.roundOffsets,l=void 0===o||o,c={placement:Cn(t.placement),variation:Un(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:s,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,Yn(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:l})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,Yn(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:{}},Nn,mi,di,gi,Wn,pi]});const Si={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:({placement:e})=>e.includes("start")?[-10,0]:e.includes("end")?[10,0]:[0,0]}}]}};let Ei=class{constructor(e,t){return this.isOpen=!1,this.ignoreNextBlur=!1,this.element=e,this.config={...Si,...t},this.config.popperOptions={...Si.popperOptions,...t?.popperOptions||{}},this.config.popperOptions.modifiers=[...Si.popperOptions.modifiers,...t?.popperOptions?.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}static getInstance(e){return e&&e.ODS_Tooltip?e.ODS_Tooltip:null}wrapLastWordAndButton(){if(!this.element.hasAttribute("data-tooltip-keep-with-text"))return;const e=this.trigger.previousSibling;if(!e||e.nodeType!==Node.TEXT_NODE)return;const t=(e.textContent?.trim()||"").split(" "),n=t.pop(),i=t.join(" ");e.textContent=i+" ";const s=document.createElement("span");s.className="text-nowrap",s.innerHTML=`${n} ${this.trigger.outerHTML}`,this.trigger.parentNode?.replaceChild(s,this.trigger),this.trigger=s.querySelector("[data-tooltip-trigger]")}init(){this.trigger=document.querySelector(`[data-tooltip-trigger][aria-describedby=${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);const e=this.element.getAttribute("data-tooltip-placement");e&&(this.config.popperOptions.placement=e),this.instance=wi(this.trigger,this.element,this.config.popperOptions),this.transitioner=an({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)}onDialogMouseDown(){this.ignoreNextBlur=!0}onDocumentClick(e){const t=e.target;t&&(this.trigger.contains(t)||this.element.contains(t)||this.hide())}handleVisibility(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()}onKeydown(e){if(("Enter"===e.key||" "===e.key)&&"BUTTON"!==this.trigger.tagName)return e.preventDefault(),void this.toggle();L.ESC.includes(e.key)&&this.hide()}toggle(){this.isOpen?this.hide():this.show()}show(){this.transitioner.show(),this.trigger.classList.add("is-active"),this.isOpen=!0,this.instance.forceUpdate(),document.addEventListener("click",this.onDocumentClick)}hide(){this.transitioner.hide(),this.trigger.classList.remove("is-active"),this.isOpen=!1,document.removeEventListener("click",this.onDocumentClick)}update(){this.instance.forceUpdate()}destroy(){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()}};const Ni="carousel",Ci=`${Ni}__viewport-wrapper`,ki=`${Ni}__viewport`,Ti=`${Ni}__track`,ji=`${Ni}__slide`,Ai=`${Ni}__prev`,Oi=`${Ni}__next`,Li=`${Ni}__pagination`,Di=`${Ni}__navigation`,Mi=`${Ni}__controls`,$i=`${Ni}__pagination-item`,Pi=`${Ni}__scrollbar`,Ii=`${Ni}__scrollbar-drag`,Ri="is-active",zi=`${Ni}--bleed-right`,Fi=`${Ni}--bleed-right-no-left`,Hi=`.${ki}`,Bi=`.${Ti}`,Vi=`.${Ai}`,qi=`.${Oi}`,Wi=`.${Li}`,Ui=`.${Pi}`,Gi=`.${Ri}`,Yi={navigation:{nextEl:qi,prevEl:Vi},pagination:{el:Wi,clickable:!0,bulletClass:$i,bulletActiveClass:Ri,renderBullet:(e,t)=>`<button aria-label="Page ${e+1}" role="tab" class="${t}" type="button"></button>`},scrollbar:{el:Ui,draggable:!0,enabled:!0,horizontalClass:`${Ni}__scrollbar-horizontal`,dragClass:Ii,hide:!1},slidesPerView:1.2,spaceBetween:20,mousewheel:{forceToAxis:!0,sensitivity:1},a11y:{enabled:!0,scrollOnFocus:!1,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:Ti,slideClass:ji,slideActiveClass:Ri,slideNextClass:`${Ni}__slide-next`,slidePrevClass:`${Ni}__slide-prev`};let Ki=class e{getViewportWrapper(){return this.element.querySelector(`.${Ci}`)}isBleedRight(){return this.element.classList.contains(zi)||this.element.classList.contains(Fi)}getSlidesPerView(){return Number(this.instance?.params?.slidesPerView)||1}setScrollbarVisible(e){const t=this.element.querySelector(Ui);t&&(t.style.display=e?"":"none")}getSlidesContentWidth(){if(!this.instance)return this.track?.scrollWidth||0;const e=Array.from(this.instance.slides),t=e.reduce((e,t)=>e+t.offsetWidth,0),n=Number(this.instance.params?.spaceBetween)||0,i=t+Math.max(e.length-1,0)*n;return t<=0||i<=0?this.track?.scrollWidth||0:i}getOverflowWidth(e){const t=this.isBleedRight()?this.element.clientWidth||e?.clientWidth||0:this.viewport?.clientWidth||0;return t<=0?0:this.getSlidesContentWidth()-t}hasScrollableContent(t){if(!this.instance||!this.instance.params)return!1;const n=this.getOverflowWidth(t);return 0!==n?n>e.OVERFLOW_EPSILON_PX:this.instance.slides.length>this.getSlidesPerView()}constructor(e,t){this.isScrollbarDragging=!1,this.externalControlsState=null;const n=e.querySelector(Ui),i="object"==typeof t?.scrollbar&&null!==t.scrollbar?t.scrollbar:void 0,s="object"==typeof Yi.scrollbar&&null!==Yi.scrollbar?Yi.scrollbar:void 0;return this.element=e,this.config={...Yi,...t,scrollbar:{...Yi.scrollbar??{},...t?.scrollbar??{},el:n,enabled:!!n&&(i?.enabled??s?.enabled)}},this.handleSlideChange=this.handleSlideChange.bind(this),this.updateTooltipPosition=this.updateTooltipPosition.bind(this),this.boundWindowResizeHandler=this.handleWindowResize.bind(this),this.element.ODS_Carousel=this,requestAnimationFrame(()=>{this.init()}),this}init(){this.getElements(),this.element.hasAttribute("data-swiper-options")&&this.getCustomOptions();const e=this.isBleedRight();this.instance=new Wt(this.viewport,{...this.config,watchOverflow:!e&&this.config.watchOverflow,enabled:!1,modules:[Jt,tn,nn,sn,Yt,Kt],on:{slideChange:this.handleSlideChange,slideChangeTransitionEnd:()=>{this.updateExternalControlsState()},scrollbarDragStart:()=>{this.isScrollbarDragging=!0},scrollbarDragEnd:()=>{this.isScrollbarDragging=!1,this.updateExternalControlsState(!0)}}}),this.updateCarouselEnabledState(),this.isBleedRight()&&(this.adjustConfigForBleedRight(),this.fixBleedRightScrollbar()),this.syncScrollbar(),this.instance&&"function"==typeof this.instance.on&&this.instance.on("resize",()=>{this.updateCarouselEnabledState()}),this.observeVisibilityChanges(),window.addEventListener("resize",this.boundWindowResizeHandler),this.initExternalControls(),requestAnimationFrame(()=>{this.instance&&this.instance.update()})}handleWindowResize(){this.resizeRafId&&cancelAnimationFrame(this.resizeRafId),this.resizeRafId=requestAnimationFrame(()=>{this.resizeRafId=void 0,this.instance&&this.viewport&&(this.viewport.clientWidth<=0||(this.instance.update(),this.updateCarouselEnabledState(),this.bleedResizeHandler?.(),this.updateExternalControlsState(),this.instance.scrollbar?.updateSize()))})}syncScrollbar(){requestAnimationFrame(()=>{this.instance?.scrollbar&&this.instance.scrollbar.updateSize()})}observeVisibilityChanges(){"undefined"!=typeof ResizeObserver&&(this.resizeObserver?.disconnect(),this.resizeObserver=new ResizeObserver(()=>{this.instance&&this.viewport&&(this.viewport.clientWidth<=0||(this.instance.update(),this.updateCarouselEnabledState(),this.instance.scrollbar?.updateSize()))}),this.resizeObserver.observe(this.viewport))}fixBleedRightScrollbar(){const e=()=>{const e=this.getViewportWrapper(),t=this.instance?.scrollbar,n=this.instance;if(!(e&&t&&t.dragEl&&n))return;if(!this.hasScrollableContent(e))return void this.setScrollbarVisible(!1);this.setScrollbarVisible(!0);const i=t.el.offsetWidth,s=this.instance?.width||this.element.clientWidth||e.clientWidth,r=this.getSlidesContentWidth(),a="function"==typeof n.minTranslate?n.minTranslate():0,o="function"==typeof n.maxTranslate?n.maxTranslate():0,l=Math.max(Math.abs(o-a),0),c=Math.max(r,s+l),d=(c>0?Math.min(s/c,1):1)*i,u=Math.max(d,30);t.dragEl.style.width=`${u}px`,t.dragEl.style.display="";const h=Math.min(Math.max(n.progress||0,0),1)*Math.max(i-u,0);t.dragEl.style.transform=`translate3d(${h}px, 0, 0)`};requestAnimationFrame(()=>{requestAnimationFrame(e)}),this.instance.on("progress",e),this.instance.on("slideChange",e),this.instance.on("resize",e),this.instance.on("update",e),this.instance.on("setTranslate",e)}getElements(){this.viewport=this.element.querySelector(Hi),this.track=this.viewport.querySelector(Bi);const e=this.element.querySelector(Wi);e&&!e.hasAttribute("role")&&e.setAttribute("role","tablist");const t={navigation:{...this.config.navigation??{},nextEl:this.element.querySelector(qi),prevEl:this.element.querySelector(Vi)},pagination:{...this.config.pagination??{},el:e,clickable:!0,bulletClass:$i,bulletActiveClass:Ri}};this.config={...this.config,...t}}getCustomOptions(){const e=this.element.getAttribute("data-swiper-options");if(!e)return;const t=JSON.parse(e);this.config={...this.config,...t}}updateCarouselEnabledState(){if(!this.instance||!this.instance.params)return;const e=this.getViewportWrapper();this.hasScrollableContent(e||void 0)?this.instance.enable():this.instance.disable(),this.setScrollbarVisible(this.instance.enabled)}applyBleedInsets(t){if(!this.instance||!this.instance.params)return;const n=this.element.clientWidth||t.clientWidth||0,i=document.documentElement?.clientWidth||window.innerWidth||0,s=t.getBoundingClientRect(),r=this.element.getBoundingClientRect(),a=this.element.classList.contains(Fi),o=r.left>0?r.left:s.left,l=Math.max(Math.floor(o),0),c=a?Math.max(Math.floor(i-l),n,0):Math.max(Math.floor(i),n,0),d=a?0:-l,u=Math.max(a?c:c-l,n,0),h=this.getSlidesContentWidth(),p=h-n,m=this.getSlidesPerView(),f=this.instance.slides.length,g=!(h>0?p>e.OVERFLOW_EPSILON_PX:f>m),v=!g,b=g?"100%":`${u}px`,y=g||a?"0px":`${l}px`,_=g?"100%":`${c}px`,x=g?"0px":`${d}px`,w=this.isBleedRight()!==v||this.instance.params.width!==(g?void 0:n)||this.element.style.getPropertyValue("--carousel-bleed-viewport-width")!==b||this.element.style.getPropertyValue("--carousel-bleed-margin-left")!==y||this.element.style.getPropertyValue("--carousel-bleed-shell-width")!==_||this.element.style.getPropertyValue("--carousel-bleed-shell-margin-left")!==x;a||this.element.classList.toggle(zi,v);const S=g?void 0:n;this.instance.params.width=S,this.instance.originalParams&&(this.instance.originalParams.width=S),this.instance.params.slidesOffsetBefore=0,this.instance.params.slidesOffsetAfter=0,this.element.style.setProperty("--carousel-bleed-viewport-width",b),this.element.style.setProperty("--carousel-bleed-margin-left",y),this.element.style.setProperty("--carousel-bleed-shell-width",_),this.element.style.setProperty("--carousel-bleed-shell-margin-left",x),w&&this.instance.update(),this.updateCarouselEnabledState()}adjustConfigForBleedRight(){requestAnimationFrame(()=>{if(!this.instance)return;const e=this.getViewportWrapper();if(!e)return;const t=()=>{this.applyBleedInsets(e)};this.bleedResizeHandler=t,t(),this.instance.on("resize",t)})}handleSlideChange(){const e=this.track.querySelector(Gi),t=this.track.querySelectorAll(`.${ji}:not(${Gi})`);e&&this.updateTooltipPosition(e),t.length>0&&this.hideAllTooltips(t),this.updateExternalControlsState()}updateTooltipPosition(e){const t=e.querySelectorAll('[data-tooltip-trigger="true"]');t.length>0&&t.forEach(e=>{const t=e.getAttribute("aria-describedby");if(!t)return;const n=document.getElementById(t);if(!n)return;const i=Ei.getInstance(n);i&&i.update()})}hideAllTooltips(e){e.forEach(e=>{const t=e.querySelectorAll('[data-tooltip-trigger="true"]');t.length>0&&t.forEach(e=>{const t=e.getAttribute("aria-describedby");if(!t)return;const n=document.getElementById(t);if(!n)return;const i=Ei.getInstance(n);i&&(i.hide(),e.blur())})})}initExternalControls(){const e=this.element.dataset.carouselId||this.element.id;e&&(this.carouselId=e,document.querySelectorAll(`[data-carousel-controls="${e}"]`).forEach(e=>{const t=e;if(t.hasAttribute("data-carousel-initialized"))return;t._carouselClickHandler&&t.removeEventListener("click",t._carouselClickHandler);const n=t.dataset.carouselAction,i=e=>{e.preventDefault(),t.hasAttribute("disabled")||("next"===n?this.slideNext():"prev"===n&&this.slidePrev())};"next"!==n&&"prev"!==n||(t.addEventListener("click",i),t.setAttribute("aria-label","next"===n?("object"==typeof this.config.a11y?this.config.a11y?.nextSlideMessage:void 0)||"Nasledujúci snímok":("object"==typeof this.config.a11y?this.config.a11y?.prevSlideMessage:void 0)||"Predchádzajúci snímok"),t.setAttribute("type","button"),t._carouselClickHandler=i),t.setAttribute("data-carousel-initialized","true")}),this.updateExternalControlsState())}updateExternalControlsState(e=!1){if(!this.carouselId||!this.instance)return;if(!this.instance.params)return;if(this.isScrollbarDragging&&!e)return;const t=!this.instance.enabled,n=t||this.instance.isBeginning,i=t||this.instance.isEnd;this.externalControlsState={isAtStart:n,isAtEnd:i},this.applyExternalControlsState(this.externalControlsState)}applyExternalControlsState(e){const{isAtStart:t,isAtEnd:n}=e,i=document.querySelectorAll(`[data-carousel-controls="${this.carouselId}"][data-carousel-action="prev"]`),s=document.querySelectorAll(`[data-carousel-controls="${this.carouselId}"][data-carousel-action="next"]`);i.forEach(e=>{const n=e;t?(n.setAttribute("disabled",""),n.setAttribute("aria-disabled","true"),n.style.cursor="not-allowed"):(n.removeAttribute("disabled"),n.setAttribute("aria-disabled","false"),n.style.cursor="pointer")}),s.forEach(e=>{const t=e;n?(t.setAttribute("disabled",""),t.setAttribute("aria-disabled","true"),t.style.cursor="not-allowed"):(t.removeAttribute("disabled"),t.setAttribute("aria-disabled","false"),t.style.cursor="pointer")})}slideNext(){this.instance&&this.instance.slideNext()}slidePrev(){this.instance&&this.instance.slidePrev()}getActiveIndex(){return this.instance?this.instance.activeIndex:0}onSlideChange(e){this.instance&&this.instance.on("slideChange",()=>{e(this.instance.activeIndex)})}destroy(){this.carouselId&&document.querySelectorAll(`[data-carousel-controls="${this.carouselId}"]`).forEach(e=>{const 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(),this.isScrollbarDragging=!1,this.externalControlsState=null,this.resizeObserver?.disconnect(),this.resizeObserver=void 0,this.element.ODS_Carousel===this&&delete this.element.ODS_Carousel}update(){this.instance&&this.instance.update()}static getInstance(e){return e&&e.ODS_Carousel?e.ODS_Carousel:null}static getInstanceById(e){const t=document.querySelector(`[data-carousel-id="${e}"]`)||document.getElementById(e);return t?this.getInstance(t):null}};Ki.OVERFLOW_EPSILON_PX=1;const Xi=ji,Zi=({className:e,children:t,...n})=>{const i=C(Xi,e);return S.jsx("div",{className:i,...n,children:t})};Zi.displayName="CarouselItem";const Ji=({className:t,swiperOptions:n,items:i,renderItems:s,showScrollbar:r=!1,bleedRight:a=!1,bleedRightNoLeft:o=!1,...l})=>{const[c]=j(Ki),{"data-swiper-options":d,...u}=l,h=i.map((t,n)=>{const i=s?s(t,n):t;return(t=>e.isValidElement(t)&&t.type===Zi)(i)?e.cloneElement(i,{key:i.key??n.toString()}):S.jsx(Zi,{children:i},n.toString())}),p=C(Ni,t,{[`${Ni}--scrollbar`]:r,[`${Ni}--bleed-right`]:a,[Fi]:o}),m={navigation:C(Di),controls:C(Mi),prev:C(Ai),next:C(Oi),dots:C(Li)},f=r?{pagination:{enabled:!1},...n}:n;return S.jsxs("div",{className:p,ref:c,"data-carousel":!0,...r||f?{"data-swiper-options":JSON.stringify(f)}:{},...u,children:[S.jsx("div",{className:Ci,children:S.jsx("div",{className:ki,children:S.jsx("div",{className:Ti,children:h})})}),!r&&S.jsxs("div",{className:m.navigation,children:[S.jsx("div",{role:"tablist",className:m.dots}),S.jsxs("div",{className:m.controls,children:[S.jsx(Ye,{className:m.prev,icon:"chevron-left","aria-label":"Naspäť"}),S.jsx(Ye,{className:m.next,icon:"chevron-right","aria-label":"Ďalej"})]})]}),r&&S.jsx("div",{className:Pi,children:S.jsx("div",{className:Ii})})]})};Ji.displayName="Carousel";const Qi=c(({className:e,...t},n)=>{const i=C("container",e);return S.jsx("div",{className:i,ref:n,...t})});Qi.displayName="Container";const es="carousel-hero",ts=`${es}__viewport-wrapper`,ns=`${es}__viewport`,is=`${es}__track`,ss=`${es}__slide`,rs=`${es}__slide-container`,as=`${es}__slide-content`,os=`${es}__slide-image`,ls=`${es}__prev`,cs=`${es}__next`,ds=`${es}__play-pause`,us=`${es}__tabs`,hs=`${es}__tab`,ps=`${es}__pagination`,ms=`${es}__pagination-item`,fs=`${es}__pagination-svg`,gs=`${es}__pagination-circle`,vs=`${es}__navigation`,bs="is-active",ys="is-playing",_s="is-paused",xs=`.${ns}`,ws=`.${ls}`,Ss=`.${cs}`,Es=`.${ds}`,Ns=`.${us}`,Cs=`.${hs}`,ks=`.${ps}`,Ts={pagination:{clickable:!0,bulletClass:ms,bulletActiveClass:"is-active",renderBullet:function(e,t){return`<button type="button" class="${t}" aria-label="Prejsť na snímok ${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:is,slideClass:ss,slideActiveClass:bs};let js=class{constructor(e,t){return this.tabs=[],this._dotAnimationJustStarted=!1,this._isDragging=!1,this.element=e,this.config={...Ts,...t},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}init(){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)}_onWindowResize(){this.resizeRafId&&cancelAnimationFrame(this.resizeRafId),this.resizeRafId=requestAnimationFrame(()=>{this.resizeRafId=void 0,this.instance&&this.viewport&&(this.viewport.clientWidth<=0||(this.instance.update(),this.updateStates(),this.updatePlayPauseIcon()))})}getElements(){this.viewport=this.element.querySelector(xs);const e=this.element.querySelector(Ns);e&&(this.tabs=Array.from(e.querySelectorAll(Cs)))}setupConfig(){const e=this.element.hasAttribute("data-interval")&&parseInt(this.element.getAttribute("data-interval"))||0;if("object"==typeof this.config.a11y&&null!==this.config.a11y&&(this.config.a11y={...this.config.a11y,slideRole:this.tabs.length>0?"tabpanel":"group"}),this.element.hasAttribute("data-swiper-options"))try{const e=JSON.parse(this.element.getAttribute("data-swiper-options"));this.config={...this.config,...e}}catch(e){}this.config.loop=!1,this.config.rewind=!0,e>=1e3&&(this.config.autoplay={delay:e,disableOnInteraction:!1,pauseOnMouseEnter:!1,waitForTransition:!0,stopOnLastSlide:!1},this.element.classList.add(ys))}createSwiper(){const e=this.viewport.querySelectorAll(`.${ss}`).length>1;this.instance=new Wt(this.viewport,{...this.config,modules:[Jt,tn,sn,Yt,rn],navigation:{nextEl:this.element.querySelector(Ss),prevEl:this.element.querySelector(ws)},pagination:!!e&&{...this.config.pagination,el:this.element.querySelector(ks)},on:{slideChange:()=>{this.updateStates(),this.isAutoplayRunning()?this.restartDotAnimation():this.stopDotAnimation()},autoplayStart:()=>{this._onAutoplayStart()},autoplayStop:()=>{this._onAutoplayStop()},touchStart:()=>{this._isDragging=!0,this._stopAutoplayIfRunning()},touchEnd:()=>{this._isDragging=!1}}}),this.updatePlayPauseIcon()}setupEventListeners(){this.tabs.forEach(e=>{e.removeEventListener("click",this._boundTabClick),e.addEventListener("click",this._boundTabClick)});const e=this.element.querySelector(Es);e&&(e.removeEventListener("click",this._boundPlayPauseClick),e.addEventListener("click",this._boundPlayPauseClick));const t=this.element.querySelector(ws),n=this.element.querySelector(Ss);t&&(t.removeEventListener("click",this._boundPrevClick),t.addEventListener("click",this._boundPrevClick)),n&&(n.removeEventListener("click",this._boundNextClick),n.addEventListener("click",this._boundNextClick))}_onUserNavigation(){this._stopAutoplayIfRunning(),this.stopDotAnimation()}_onTabClick(e){e.preventDefault();const t=e.currentTarget,n=this.tabs.indexOf(t);-1!==n&&n!==this.instance?.realIndex&&(this._onUserNavigation(),this.goToSlide(n))}_onPlayPauseClick(){this.toggleAutoplay()}isAutoplayRunning(){return!(!this.instance?.autoplay||!this.instance.autoplay.running)}_stopAutoplayIfRunning(){this.isAutoplayRunning()&&this.instance.autoplay.stop()}_onAutoplayStart(){this.element.classList.add(ys),this.element.classList.remove(_s),this.updatePlayPauseIcon(),this.startDotAnimation()}_onAutoplayStop(){this.element.classList.remove(ys),this.element.classList.add(_s),this.updatePlayPauseIcon(),this.stopDotAnimation()}toggleAutoplay(){this.instance&&this.instance.autoplay&&(this.isAutoplayRunning()?this.instance.autoplay.stop():(this.updateStates(),setTimeout(()=>{this.instance&&this.instance.autoplay&&this.instance.autoplay.start()},10)))}goToSlide(e){this.instance&&this.instance.realIndex!==e&&(this.instance.params.loop?this.instance.slideToLoop(e):this.instance.slideTo(e))}updateStates(){if(!this.instance)return;const e=this.instance.realIndex??this.instance.activeIndex??0;this.tabs.forEach((t,n)=>{const i=n===e;t.classList.toggle(bs,i),t.setAttribute("aria-selected",String(i)),t.setAttribute("tabindex",i?"0":"-1")}),this.scrollActiveTabIntoView(e),this.updatePaginationBullets(e)}updatePaginationBullets(e){const t=this.element.querySelector(ks);t&&t.querySelectorAll(`.${ms}`).forEach((t,n)=>{const i=n===e;if(t.classList.toggle("is-active",i),!this.hasAutoplay()){const e=t.querySelector(`.${fs}`);e&&(e.style.display=i?"block":"none")}})}scrollActiveTabIntoView(e){if(!this.tabs.length||e<0||e>=this.tabs.length)return;const t=this.tabs[e],n=this.element.querySelector(Ns);if(!n||!t)return;const i=n.getBoundingClientRect(),s=t.getBoundingClientRect(),r=i.width-56;if(s.right>i.left+r||s.left<i.left){const e=s.left-i.left-r/2+s.width/2;n.scrollBy({left:e,behavior:"smooth"})}}updatePlayPauseIcon(){const e=this.element.querySelector(Es);if(!e)return;const t=e.querySelector("use");if(t){const e=this.isAutoplayRunning()?"pause":"play",n=t.getAttribute("xlink:href")||"";if(!n.endsWith(`#${e}`)){const i=n.replace(/#[\w-]+$/,`#${e}`);t.setAttribute("xlink:href",i)}}}renderPaginationDots(){this._getPaginationButtons().forEach(e=>{const t=this.createSvgDot();e.innerHTML="",e.appendChild(t)})}startDotAnimation(e=!1){if(!this.hasAutoplay())return;if(!e&&!this.isAutoplayRunning())return;if(this._dotAnimationJustStarted)return;this._dotAnimationJustStarted=!0;const t=this._getActiveBulletButton();if(!t)return void(this._dotAnimationJustStarted=!1);const n=t.querySelector(`.${fs}`);if(!n)return void(this._dotAnimationJustStarted=!1);const i=n.querySelector("circle");if(!i)return void(this._dotAnimationJustStarted=!1);const s=this.getAnimationDuration();i.style.animation="none",t.offsetHeight,i.style.animation=`countdown linear ${s}ms 1 forwards`,this._dotAnimationJustStarted=!1}restartDotAnimation(){this.stopDotAnimation(),setTimeout(()=>{this.startDotAnimation()},50)}stopDotAnimation(){this._getPaginationButtons().forEach(e=>{const t=e.querySelector(`.${fs}`);if(!t)return;const n=t.querySelector("circle");n&&(n.style.animation="none")}),this._dotAnimationJustStarted=!1}_getPaginationButtons(){return Array.from(this.element.querySelectorAll(`${ks} > *`))}_getActiveBulletClass(){const e=this.instance?.params?.pagination;if(e&&"object"==typeof e&&e.bulletActiveClass)return String(e.bulletActiveClass);const t=this.config.pagination;return t&&"object"==typeof t&&t.bulletActiveClass?String(t.bulletActiveClass):bs}_getActiveBulletButton(){const e=this._getActiveBulletClass();return this.element.querySelector(`${ks} .${e}`)}createSvgDot(){const e="http://www.w3.org/2000/svg",t=document.createElementNS(e,"svg");t.setAttribute("class",fs),t.setAttribute("width","12"),t.setAttribute("height","12"),t.setAttribute("viewBox","0 0 12 12");const n=document.createElementNS(e,"circle");return n.setAttribute("class",gs),n.setAttribute("r","5"),n.setAttribute("cx","6"),n.setAttribute("cy","6"),t.appendChild(n),t}hasAutoplay(){return!!(this.config.autoplay&&"object"==typeof this.config.autoplay&&this.config.autoplay.delay>=1e3)}getAnimationDuration(){return this.config.autoplay?.delay||0}destroy(){this.tabs.forEach(e=>{e.removeEventListener("click",this._boundTabClick)});const e=this.element.querySelector(Es);e&&e.removeEventListener("click",this._boundPlayPauseClick);const t=this.element.querySelector(ws),n=this.element.querySelector(Ss);t&&t.removeEventListener("click",this._boundPrevClick),n&&n.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}static getInstance(e){return e.ODS_CarouselHero||null}};const As={xs:"0",sm:"480px",md:"768px",lg:"992px",xl:"1240px",xxl:"1380px",xxxl:"1920px"},Os=({className:e,src:t,alt:n,...i})=>{const s=C("img",e);if("object"==typeof t){const e=Object.keys(t).sort((e,t)=>parseInt(As[t])-parseInt(As[e]));return S.jsxs("picture",{className:s,children:[e.map(e=>"default"!==e&&S.jsx("source",{srcSet:t[e],media:`(min-width: ${As[e]})`},e)),S.jsx("img",{src:t.default,alt:n,...i})]})}return S.jsx("img",{className:s,src:t,alt:n,...i})};Os.displayName="Image";const Ls=ss,Ds=({className:e,children:t,image:n,...i})=>{const s=C(Ls,e);return S.jsx("div",{className:s,...i,children:S.jsxs(Qi,{className:rs,children:[S.jsx("div",{className:as,children:t}),S.jsx(Os,{className:os,src:n,alt:"Obrázok"})]})})};function Ms(t){const n=[];return e.Children.forEach(t,t=>{e.isValidElement(t)&&(t.type!==e.Fragment?n.push(t):n.push(...Ms(t.props.children)))}),n}Ds.displayName="CarouselHeroItem";const $s=({className:t,swiperOptions:n,children:i,tabs:s=[],interval:r,enableAutoplay:a=!1,...o})=>{const[l]=j(js),c=C(es,t),u=`carousel-hero-${d().replace(/:/g,"-")}`,h="string"==typeof o.id&&o.id?o.id:u,p=Ms(i),m=s.length>0&&p.length>0,f=(e,t)=>"string"==typeof e?.id&&e.id?e.id:`${h}-tab-${t}`,g=(e,t)=>e&&"string"==typeof e.props.id&&e.props.id?e.props.id:`${h}-panel-${t}`,v={prev:ls,next:cs,playPause:ds,tabs:us,tab:hs,pagination:ps},b=(()=>{if(!n)return;if(a||!("autoplay"in n))return n;const{autoplay:e,...t}=n;return Object.keys(t).length>0?t:void 0})(),y=a&&(n?.autoplay&&"object"==typeof n.autoplay&&n.autoplay.delay>=1e3||!!(r&&r>=1e3)),_=p.map((t,n)=>{if(!m)return t;const i=f(s[n],n),r=g(t,n);return e.cloneElement(t,{id:r,role:"tabpanel","aria-labelledby":i})});return S.jsxs("div",{className:c,ref:l,"data-carousel-hero":!0,...a&&r&&r>=1e3?{"data-interval":r}:{},...b?{"data-swiper-options":JSON.stringify(b)}:{},...o,children:[S.jsx("div",{className:ts,children:S.jsx("div",{className:ns,children:S.jsx("div",{className:is,children:_})})}),S.jsxs(Qi,{className:"d-flex",children:[m&&S.jsx("div",{className:v.tabs,role:"tablist",children:s.map((e,t)=>S.jsx("button",{id:f(e,t),type:"button",className:v.tab,role:"tab","aria-controls":g(p[t],t),"aria-selected":0===t?"true":"false",tabIndex:0===t?0:-1,children:e.label},t))}),S.jsx("div",{role:"tablist",className:v.pagination}),S.jsxs("div",{className:vs,children:[S.jsx(Ye,{className:v.prev,icon:"chevron-left","aria-label":"Predchádzajúci snímok"}),S.jsx(Ye,{className:v.next,icon:"chevron-right","aria-label":"Nasledujúci snímok"}),y&&S.jsx(Ye,{className:v.playPause,icon:"pause","aria-label":"Pozastaviť/Spustiť automatické prehrávanie"})]})]})]})};$s.displayName="CarouselHero";const Ps="carousel-promotions",Is=`${Ps}__viewport-wrapper`,Rs=`${Ps}__viewport`,zs=`${Ps}__track`,Fs=`${Ps}__next`,Hs=`${Ps}__pagination`,Bs=`${Ps}__pagination-item`,Vs=`${Ps}__pagination-svg`,qs=`${Ps}__pagination-circle`,Ws=`${Ps}--slide-inverted`,Us="is-autoplay",Gs="is-active",Ys=`.${Rs}`,Ks=`.${Hs}`,Xs={pagination:{el:Ks,clickable:!0,bulletClass:Bs,bulletActiveClass:Gs,renderBullet:(e,t)=>`<button aria-label="Stránka ${e+1}" role="tab" class="${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:zs,slideClass:`${Ps}__slide`,slideActiveClass:Gs,autoplay:!1};let Zs=class e{constructor(e,t){return this.interval=0,this.element=e,this.config={...Xs,...t},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}init(){this.getElements(),this.element.hasAttribute("data-swiper-options")&&this.getCustomOptions(),this.element.hasAttribute("data-interval")&&(this.interval=parseInt(this.element.getAttribute("data-interval")));const e=this.isIntervalValid();e?(this.element.classList.add(Us),this.config.autoplay={delay:this.interval,disableOnInteraction:!1}):(this.interval=0,this.config.autoplay=!1),this.instance=new Wt(this.viewport,{...this.config,modules:[Jt,tn,sn,Yt,rn],on:{slideChange:this.handleSlideChange,init:()=>{this.fixPaginationButtonType(),this.isAutoplayEnabled&&this.renderSvgDotsForAnimation()},update:()=>{this.fixPaginationButtonType(),this.isAutoplayEnabled&&this.renderSvgDotsForAnimation()}}});const t=this.element.querySelector(Ks);t&&e&&(t.addEventListener("animationend",this.autoplayAnimationEnd),t.addEventListener("click",this.boundPaginationClickHandler)),window.addEventListener("resize",this.boundWindowResizeHandler)}handlePaginationClick(){this.stopAutoplay()}handleWindowResize(){this.resizeRafId&&cancelAnimationFrame(this.resizeRafId),this.resizeRafId=requestAnimationFrame(()=>{this.resizeRafId=void 0,this.instance&&this.viewport&&(this.viewport.clientWidth<=0||(this.instance.update(),this.fixPaginationButtonType(),this.isAutoplayEnabled&&this.renderSvgDotsForAnimation()))})}stopAutoplay(){this.interval=0,this.element.classList.remove(Us),this.instance&&this.instance.autoplay&&this.instance.autoplay.stop()}handleSlideChange(){this.element.classList.remove(Ws),this.instance&&void 0!==this.instance.activeIndex&&this.instance.activeIndex%2==1&&this.element.classList.add(Ws)}autoplayAnimationEnd(e){e instanceof AnimationEvent&&"countdown"===e.animationName&&this.scrollToNextSlide()}get isAutoplayEnabled(){return this.interval>0}isIntervalValid(){const e=parseInt(String(this.interval));return!isNaN(e)&&e>=1e3}scrollToNextSlide(){if(!this.instance||!this.instance.slides)return;const e=this.instance.slides.length;if(e<=0)return;const t=this.instance.activeIndex||0;this.instance.slideTo((t+1)%e)}getElements(){this.viewport=this.element.querySelector(Ys);const e=this.element.querySelector(Ks);e&&!e.hasAttribute("role")&&e.setAttribute("role","tablist");const t={pagination:{...this.config.pagination??{},el:e,clickable:!0,bulletClass:Bs,bulletActiveClass:Gs}};this.config={...this.config,...t}}getCustomOptions(){const e=this.element.getAttribute("data-swiper-options");if(!e)return;const t=JSON.parse(e);this.config={...this.config,...t}}fixPaginationButtonType(){Array.from(this.element.querySelectorAll(`${Ks} > *`)).forEach(e=>e.setAttribute("type","button"))}static createSvgDot(){const e="http://www.w3.org/2000/svg",t=document.createElementNS(e,"svg");t.setAttribute("class",Vs),t.setAttribute("width","12"),t.setAttribute("height","12"),t.setAttribute("viewBox","0 0 12 12"),t.setAttribute("fill","none"),t.setAttribute("xmlns",e);const n=document.createElementNS(e,"circle");return n.setAttribute("class",qs),n.setAttribute("r","5"),n.setAttribute("cx","6"),n.setAttribute("cy","6"),t.appendChild(n),t}renderSvgDotsForAnimation(){const t=Array.from(this.element.querySelectorAll(`${Ks} > *`)),n=e.createSvgDot();n.querySelector("circle").style.animationDuration=`${this.interval}ms`,t.forEach(e=>{e.innerHTML="",e.appendChild(n.cloneNode(!0))})}destroy(){window.removeEventListener("resize",this.boundWindowResizeHandler),this.resizeRafId&&(cancelAnimationFrame(this.resizeRafId),this.resizeRafId=void 0);const e=this.element.querySelector(Ks);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}update(){this.instance&&this.instance.update()}static getInstance(e){return e&&e.ODS_CarouselPromotions?e.ODS_CarouselPromotions:null}};const Js=({className:e,swiperOptions:t,children:n,...i})=>{const[s]=j(Zs),r=C(Ps,e),a={next:C(Fs,"hide-lg"),dots:C(Hs)};return S.jsxs("div",{className:r,ref:s,"data-carousel-promotions":!0,...t?{"data-swiper-options":JSON.stringify(t)}:{},...i,children:[S.jsx("div",{className:Is,children:S.jsx("div",{className:Rs,children:S.jsx("div",{className:zs,children:n})})}),S.jsx("div",{role:"tablist",className:a.dots})]})};Js.displayName="CarouselPromotions";const Qs=({tag:e="td",...t})=>{const n=e;return S.jsx(n,{...t})};Qs.displayName="TableCell";const er=e.createContext({headers:[],rows:[],isResponsive:!1}),tr=({row:t})=>{const{headers:n,expandableRows:i,isResponsive:s}=e.useContext(er);return n.map(({key:n,label:r,cellProps:a},o,l)=>{const c=t[n],d="object"==typeof c&&null!==c,u=d&&"value"in c?c.value:c,h=d&&"value"in c?Object.entries(c).filter(([e])=>"value"!==e&&"rawValue"!==e).reduce((e,[t,n])=>({...e,[t]:n}),{}):{},p=t?.expand?.length||0;return S.jsxs(e.Fragment,{children:[S.jsx(Qs,{...a,...h,...s&&{"data-label":r},children:u||""}),o===l.length-1&&i?.hasExpandableRows&&(t?.expand?S.jsx(Qs,{className:"align-right table__cell--shrink table__cell--expand",children:S.jsxs(Ae,{type:"ghost",htmlType:"button",size:"small",isSquare:!0,className:"mb-none","data-subrow-toggle":!0,"aria-expanded":t.isExpanded?"true":"false","aria-controls":t.expand?.map(e=>e.id).join(" "),children:[S.jsx("span",{className:"visually-hidden",children:`Zobraziť ${p} súvisiac${p>4?"ich":p>1?"e":"i"} riad${p>4?"kov":p>1?"ky":"ok"}`}),S.jsx(B,{name:"chevron-down",size:"large"})]})}):S.jsx(Qs,{className:"align-right table__cell--shrink",children:S.jsx("span",{className:"sr-only",children:i?.expandableRowsCaptions?.emptyRow})}))]},n)})};tr.displayName="TableRow";const nr=()=>{const{footers:t}=e.useContext(er);return t?S.jsx("tfoot",{children:t.map((e,t)=>S.jsx("tr",{children:S.jsx(tr,{row:e})},t.toString()))}):null};nr.displayName="TableFooter";const ir=()=>{const{headers:t,expandableRows:n}=e.useContext(er),i={none:"zoradiť vzostupne podľa",ascending:"zoradiť zostupne podľa",descending:"vypnúť zoradenie poďľa"};return S.jsx("thead",{children:S.jsxs("tr",{children:[t.map((e,t)=>{const{isSortable:n,sort:s="none",label:r,cellProps:a,headCellProps:o}=e;return S.jsxs(Qs,{tag:"th",...a,...o,...n&&{"aria-sort":s},scope:"col",children:[r,n&&S.jsxs(S.Fragment,{children:[" ",S.jsx("button",{type:"button",className:"table__sort-button",children:S.jsxs("span",{className:"sr-only",children:[i[s]," ",r]})})]})]},t.toString())}),n?.hasExpandableRows&&S.jsx(Qs,{tag:"th",scope:"col",className:"table__cell--shrink",children:S.jsx("span",{className:"sr-only",children:n?.expandableRowsCaptions?.header})})]})})};ir.displayName="TableHeader";const sr=()=>{const{rows:t}=e.useContext(er);return S.jsx("tbody",{children:t.map((t,n)=>S.jsxs(e.Fragment,{children:[S.jsx("tr",{children:S.jsx(tr,{row:t})}),t?.expand?.map(({id:e,...n},i)=>S.jsx("tr",{id:e,className:"table__subrow",hidden:!t.isExpanded||void 0,children:S.jsx(tr,{row:n})},i.toString()))]},n.toString()))})};sr.displayName="TableRows";const rr="toggleTrigger",ar={activeClass:"is-active",settingsAttr:"data-toggle"};class or{constructor(e,t){return this.element=e,this.config={...ar,...t},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}doToggle(e){const{dispatchEvent:t=!0}=e,{element:n,attribute:i,value:s,action:r}=e,a={...e},o={trigger:this.element,element:n};let l=i,c=n,d=s;"icon"===l&&(l="xlink:href",c=n.querySelector("use")),"text"===l&&(c=n.querySelector("[data-toggle-text-target]")||n),void 0===d&&(d=!1);const u=lr({element:c,attribute:l,action:r,value:d,dispatchEvent:t,eventDetail:o});return null!==u&&(a.value=u),a}init(){return this.settings=this.parseSettings(),this.targets=this.setupTargets(),this.hasClickOutside=this.settings.some(e=>!0===e.clickOutside),this.element.addEventListener("click",this.handleClick),this.hasClickOutside&&document.addEventListener("click",this.handleClickOutside),this.targets}handleClick(){this.targets=this.targets.map(e=>this.doToggle(e)),this.element.dispatchEvent(new CustomEvent(rr,{bubbles:!0}))}handleClickOutside(e){const t=e.target;this.element.contains(t)||this.targets.some(e=>e.element.contains(t))||this.targets.some(e=>"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(e=>this.doToggle(e)),this.element.dispatchEvent(new CustomEvent(rr,{bubbles:!0})))}destroy(){this.element.removeEventListener("click",this.handleClick),this.hasClickOutside&&document.removeEventListener("click",this.handleClickOutside),this.settings=[],this.targets=[],this.hasClickOutside=!1}update(){this.removeNonExistentTargets(),this.addNewTargets();const e=this.hasClickOutside;this.hasClickOutside=this.settings.some(e=>!0===e.clickOutside),!e&&this.hasClickOutside?document.addEventListener("click",this.handleClickOutside):e&&!this.hasClickOutside&&document.removeEventListener("click",this.handleClickOutside)}static getTargetElementsFromString({target:e,trigger:t}){const n=e.trim();return"self"===n?[t]:"parent"===n?[t.parentNode]:"previous"===n?[t.previousElementSibling]:"next"===n?[t.nextElementSibling]:"string"==typeof n?Array.from(document.querySelectorAll(n)):[]}parseSettings(){const e=this.element.getAttribute(this.config.settingsAttr),t=this.element.getAttribute("aria-controls");let n=[];try{e&&(n=JSON.parse(e))}catch(e){}return t&&(n=[...this.element.getAttribute("aria-expanded")?[{target:"self",attribute:"aria-expanded"}]:[],{target:t.split(" ").map(e=>`#${e}`).join(","),attribute:"hidden"},...Array.isArray(n)?n:[]]),n}setupTargets(){const e=this.element;return this.settings.reduce((t,n)=>n&&n.target?[...t,...n.target.split(",").reduce((t,i)=>[...t,...or.getTargetElementsFromString({target:i,trigger:e}).map(e=>({...n,element:e}))],[])]:t,[])}removeNonExistentTargets(){this.targets=this.targets.filter(e=>document.contains(e.element))}addNewTargets(){const e=this.setupTargets().filter(e=>!this.targets.find(t=>t.element===e.element&&t.action===e.action));this.targets=[...this.targets,...e]}static getInstance(e){return e&&e.ODS_Toggle?e.ODS_Toggle:null}}function lr(e){const{element:t,attribute:n,action:i,value:s,dispatchEvent:r=!0,eventDetail:a}=e;let o=null;if(!(t&&t instanceof Element))return o;if("focus"===i&&setTimeout(()=>t.focus(),20),"click"===i&&t.click(),"class"===n&&"string"==typeof s&&(t.classList.toggle(s),o=s),"text"===n){const e=t.textContent;t.textContent=s?.toString()||"",o=e}return"class"!==n&&"text"!==n&&void 0===i&&(o=t.getAttribute(n),"hidden"===n?t.hasAttribute(n)?t.removeAttribute(n):t.setAttribute(n,""):s?t.setAttribute(n,String(s)):t.setAttribute(n,String(!("true"===o)))),r&&t.dispatchEvent(new CustomEvent("toggle",{detail:a,bubbles:!0})),o}const cr={expandButtonSelector:"[data-subrow-toggle]",scrollableContainerSelector:".table-scrollable",responsiveTableSelector:'[data-table="responsive"]'};let dr=class{constructor(e,t){return this.element=e,this.config={...cr,...t},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(e=>{if(!this.scrollableContainer)return;const t=this.scrollableContainer.getBoundingClientRect();e.forEach(e=>{e.contentRect.width>t.width?this.scrollableContainer?.setAttribute("tabindex","0"):this.scrollableContainer?.removeAttribute("tabindex")})}),this.init(),this}addRole(e,t){Array.from(this.element.querySelectorAll(e)).forEach(e=>{e.setAttribute("role",t)})}addARIA(){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){}}onExpandClick(e){const t=e.currentTarget,n=t.getAttribute("aria-controls")??"",i=this.element.querySelectorAll(n.split(" ").map(e=>`#${e}`).join(","));lr({element:t,attribute:"aria-expanded"}),i.forEach(e=>{lr({element:e,attribute:"hidden"})})}init(){this.expandButtons=Array.from(this.element.querySelectorAll(this.config.expandButtonSelector)),this.expandButtons.forEach(e=>{e.addEventListener("click",this.onExpandClick)}),this.element.matches(this.config.responsiveTableSelector)&&this.addARIA(),this.maybeInitScrollable()}maybeInitScrollable(){if(this.scrollableContainer=this.element.closest(this.config.scrollableContainerSelector),this.scrollableContainer)return this.resizeObserver.observe(this.element),!0}destroy(){this.expandButtons.forEach(e=>{e.removeEventListener("click",this.onExpandClick)}),this.resizeObserver.disconnect(),this.expandButtons=[]}update(){this.destroy(),this.init()}static getInstance(e){return e&&e.ODS_Table?e.ODS_Table:null}};const ur="table",hr=({className:e,caption:t,headers:n,rows:i,footers:s,isCompact:r,isResponsive:a,isStriped:o,isScrollable:l,expandableRowsCaptions:c={header:"Rozšíriteľný",emptyRow:"Nerozšíriteľný riadok"},...u})=>{const[h]=j(dr),p=d(),m=C(ur,{[`${ur}--striped`]:o,[`${ur}--compact`]:r,[`${ur}--responsive`]:a},e),f=`${p}-caption`,g={hasExpandableRows:i.some(e=>e&&e.expand&&e.expand.length>0),expandableRowsCaptions:c},v={headers:n,footers:s,rows:i.map((e,t)=>e&&e.expand?{...e,expand:e.expand.map((e,n)=>({...e,id:`${p}-row-${t}-${n}`}))}:e),expandableRows:g,isResponsive:a};return S.jsx(er.Provider,{value:v,children:S.jsx(G,{condition:l||!1,wrapper:S.jsx("div",{className:`${ur}-scrollable`,role:"group",...t&&{"aria-labelledby":f}}),children:S.jsxs("table",{ref:h,className:m,...a&&{"data-table":"responsive"},...u,children:[t&&S.jsx("caption",{...l&&{id:f},children:t}),S.jsx(ir,{}),S.jsx(sr,{}),S.jsx(nr,{})]})})})};hr.displayName="Table";const pr=({dialog:e,id:t,placement:n,tag:i="span",className:s,renderTrigger:r,children:a,...o})=>{const l=O(t),c=C("tooltip",s),d=i,[u]=j(Ei,{removeDialogOnDestroy:!0}),h={"data-tooltip-trigger":!0,"aria-describedby":l,"aria-owns":l,children:a};return S.jsxs(S.Fragment,{children:[r?r(h):S.jsx("button",{type:"button",...h,children:a}),S.jsxs(d,{id:l,className:c,role:"tooltip",hidden:!0,ref:u,"data-tooltip":!0,"data-tooltip-placement":n,...o,children:[S.jsx(d,{className:"tooltip__arrow"}),S.jsx(d,{className:"tooltip__dialog",children:e})]})]})};pr.displayName="Tooltip";const mr="info-tooltip",fr=({children:e,className:t,...n})=>S.jsxs(pr,{dialog:e,renderTrigger:e=>S.jsx("button",{type:"button",className:mr,...e}),...n,children:[S.jsx(B,{name:"assistance",className:C(`${mr}__icon`,t)}),S.jsx("span",{className:"sr-only",children:"Info"})]});fr.displayName="InfoTooltip";const gr=({name:e,tooltip:t})=>void 0===e?null:S.jsxs(S.Fragment,{children:[S.jsx("span",{className:"bold",children:e}),t&&S.jsxs(S.Fragment,{children:[" ",S.jsx(fr,{className:"icon--small",children:t})]})]});gr.displayName="FooterNameColumn";const vr=({price:e,discount:t=0,label:n,size:i})=>void 0===e?null:S.jsxs(S.Fragment,{children:[t>0&&S.jsx("del",{className:"text-secondary",children:Ce(e)}),S.jsxs("div",{children:[S.jsx("div",{className:C("text-accent mb-none",{h4:"large"!==i,h2:"large"===i}),children:Ce(e-t)}),S.jsx("span",{className:C("text-accent mb-none",{h6:"large"!==i,h3:"large"===i}),children:n})]})]});function br(e,t,n){return e.reduce((e,i)=>{const s=i?.monthsFree??0,r=(i?.discount?.monthsCount??0)+s||n;return s&&t<=s?e+=i?.price?.monthly??0:r>0&&t<=r&&(e+=i?.discount?.monthly??0),e},0)}function yr(e,t){return e.reduce((e,n)=>(e+=n?.price?.[t]??0)-(n?.discount?.[t]??0),0)}vr.displayName="FooterPriceColumn";const _r=(e,t,n,i,s)=>{if(e.find(e=>e?.monthsFree||e?.discount?.monthsCount)){const r=function(e,t,n=24){let i=[];const s=function(e){return e.reduce((e,t)=>e+(t?.price?.monthly??0),0)}(e),r=function(e){return e.reduce((e,t)=>(e+=t?.price?.upfront??0)-(t?.discount?.upfront??0),0)}(e);for(let t=1;t<n;t++){const a={upfront:r>0&&1===t?r:void 0,monthly:s},o={monthly:br(e,t,n)},l=i.length-1;0!==i.length&&i[l].price?.upfront===a?.upfront&&i[l].discount?.monthly===o?.monthly||(i[l]&&(i[l].end=t-1),i=[...i,{start:t,end:n,price:a,discount:o}])}return t&&(i.shift(),i[0]&&(i[0].start=1)),function(e){return e.map(({start:t,end:n,price:i,discount:s})=>{let r="";return e.length>1&&(r=t!==n?`${t}. – ${n}. mesiac`:`${t}. mesiac`),{name:r,price:i,discount:s}})}(i)}(e,n?.hideFirst);return r.map(({name:e,price:r,discount:a})=>({col1:S.jsx(gr,{name:e,tooltip:n?.tooltip}),col2:r&&void 0!==r.upfront&&r.upfront>0&&"upfront"!==t&&S.jsx(vr,{price:r.upfront,discount:a&&a.upfront,label:i.upfront,size:s}),col3:S.jsx(vr,{price:r.monthly,discount:a&&a.monthly,label:i.monthly,size:s})}))}return[{col1:n?.name&&S.jsx(gr,{name:n.name,tooltip:n.tooltip}),col2:"upfront"!==t&&S.jsx(vr,{price:yr(e,"upfront"),label:i.upfront,size:s}),col3:S.jsx(vr,{price:yr(e,"monthly"),label:i.monthly,size:s})}]},xr="tag",wr=e.forwardRef((t,n)=>{const{color:i,size:s,isDisabled:r,className:a,children:o,actionButton:l,...c}=t,d=C(xr,a,{[`tag--${i}`]:i,[`tag--${s}`]:s});if("onClick"in t&&t.onClick){const{onClick:e,...t}=c;return S.jsx("button",{type:"button",className:d,onClick:e,disabled:!!r||void 0,"aria-disabled":r?"true":void 0,ref:n,...t,children:o})}if("href"in t&&t.href){const{href:e,...t}=c;return S.jsx("a",{className:d,href:e,"aria-disabled":r?"true":void 0,ref:n,...t,children:o})}if("actionButton"in t&&l){const t=c;return S.jsxs("div",{ref:n,className:`${xr}__wrapper`,children:[S.jsx("span",{className:d,"aria-disabled":r?"true":void 0,...t,children:o}),e.isValidElement(l)?e.cloneElement(l,{size:s,isDisabled:r}):l]})}const u=c;return S.jsxs("span",{className:d,ref:n,...u,children:[o," ",l]})});wr.displayName="Tag";const Sr=`${xr}__action`,Er=e.forwardRef((e,t)=>{const{className:n,onClick:i,isDisabled:s,iconName:r,ariaLabel:a,size:o,...l}=e,c=C(Sr,{[`${Sr}--${o}`]:o},n);return S.jsx("button",{type:"button",className:c,onClick:i,disabled:!!s||void 0,"aria-disabled":s?"true":void 0,"aria-label":a,ref:t,...l,children:S.jsx(B,{size:"large"===o?"medium":"small",name:r})})});Er.displayName="TagButton";const Nr=({price:e,discount:t,freeLabel:n,label:i,discountMonthsCount:s})=>{const r=!e&&!!t;return void 0!==e||void 0!==t?S.jsxs(S.Fragment,{children:[t&&e&&S.jsxs(S.Fragment,{children:[S.jsx("del",{className:"text-secondary",children:Ce(e)}),S.jsx("br",{})]}),S.jsxs(ae,{className:"bold justify-content-end mb-none",children:[S.jsx(ce,{className:"hide-sm",children:s&&r?`1. – ${s}. mesiac`:i}),S.jsx(ce,{children:r?Ce(-t):e-(t??0)===0?n:Ce(e-(t??0))})]})]}):null},Cr=(e,t,n)=>{const{isSubitem:i,image:s,badge:r,name:a,tooltip:o,price:l,discount:c,description:d,icon:u,isMandatory:h,isOptional:p}=e;return{col1:S.jsxs(S.Fragment,{children:[S.jsxs(ae,{canWrap:!1,className:C("mb-none ",{"cart-table__subitem":i}),children:[i&&S.jsx(ce,{children:S.jsx(B,{name:"add",size:"medium"})}),u&&S.jsx(ce,{children:S.jsx(B,{name:u,size:"medium"})}),s&&S.jsx(ce,{children:S.jsx(Os,{src:s,alt:"",width:"24"})}),S.jsxs(ce,{isFilling:!0,children:[r&&S.jsx(wr,{color:"warning",children:r}),S.jsx(ae,{space:"small",children:S.jsxs(ce,{canShrink:!0,className:C("bold",{"text-nowrap":o}),children:[S.jsx(G,{condition:!!o,wrapper:S.jsx("span",{className:"text-wrap",children:a}),children:a}),o&&" ",o&&S.jsx(fr,{className:"icon--small",placement:"right",children:o})]})}),d&&S.jsx("div",{children:"string"==typeof d?d:d.map(e=>S.jsx("p",{className:"mb-0",children:e},e))})]}),!t||h||p?null:S.jsx(ce,{className:"hide-sm",children:S.jsx(Re,{iconName:"trash",isSquare:!0,size:"small","aria-label":n.remove})}),p&&S.jsx(ce,{className:"hide-sm",children:S.jsx(Re,{iconName:"add",isSquare:!0,size:"small","aria-label":n.add})})]}),!l?.monthly&&c?.monthsCount&&S.jsx("div",{children:S.jsx("p",{className:C("mb-none show-sm cart-table__discount--margin-top",{"cart-table__subitem":i,"cart-table__discount--padding-left":s||u||i}),children:`1. – ${c.monthsCount}. mesiac`})})]}),col2:S.jsx(Nr,{discount:c?.upfront,freeLabel:n.free,label:n.upfront,price:l?.upfront}),col3:S.jsx(Nr,{discount:c?.monthly,discountMonthsCount:c?.monthsCount,freeLabel:n.free,label:n.monthly,price:l?.monthly}),...t&&!h&&!p&&{col4:S.jsx(Re,{iconName:"trash",size:"small",className:"cart-table__button mb-none",children:S.jsx("span",{className:"show-md",children:n.remove})})},...p&&{col4:S.jsx(Re,{iconName:"add",size:"small",className:"cart-table__button mb-none",children:S.jsx("span",{className:"show-md",children:n.add})})}}},kr="cart-table",Tr={monthly:"mesačne",upfront:"vopred",product:"produkt",remove:"odstrániť",add:"Pridať",install:"inštalácia",free:"zadarmo"},jr=({items:e=[],hideEmpty:t=!0,isEditable:n=!1,footer:i,labels:s=Tr,size:r})=>{const a=t?[" hide"," hide"]:["",""];return t&&e.forEach(({price:e={},discount:t={}})=>{void 0===e.upfront&&void 0===t.upfront||(a[0]=""),void 0===e.monthly&&void 0===t.monthly||(a[1]="")}),S.jsx(hr,{className:C(kr,{[`${kr}--large`]:r}),headers:[{key:"col1",cellProps:{className:"cart-table__product"},label:Ee(s.product)},{cellProps:{className:`align-right ${kr}__price${a[0]}`},key:"col2",label:Ee(s.upfront)},{cellProps:{className:`align-right ${kr}__price${a[1]}`},key:"col3",label:Ee(s.monthly)},...n?[{cellProps:{className:"align-right"},key:"col4",label:""}]:[]],rows:e.map(e=>({...Cr(e,n,s)})),footers:_r(e,"true",i??{},s,"large"===r?"large":void 0)})};jr.displayName="CartTable";const Ar="countdown",Or=`${Ar}__announcement`,Lr=`${Ar}__unit`,Dr=`${Ar}__card`,Mr=`${Ar}__top`,$r=`${Ar}__leaf-front`,Pr=`${Ar}__leaf-back`,Ir=`${Ar}__bottom`,Rr=`${Ar}__value`,zr=`${Ar}__label`,Fr="is-flipping",Hr="countdown-tag",Br=`${Hr}__part`,Vr=`${Hr}__value`,qr=`${Hr}__label`,Wr=`${Hr}__separator`,Ur="data-countdown",Gr="data-countdown-config",Yr="data-countdown-unit",Kr="data-countdown-tag",Xr="data-countdown-tag-value",Zr=`.${Or}`,Jr=`.${Lr}`,Qr=`.${zr}`,ea=`[${Yr}]`,ta=`.${qr}`,na=`[${Xr}]`,ia=[`.${Mr} .${Rr}`,`.${$r} .${Rr}`,`.${Pr} .${Rr}`,`.${Ir} .${Rr}`].join(", "),sa=["days","hours","minutes","seconds"],ra={days:864e5,hours:36e5,minutes:6e4,seconds:1e3},aa=e=>e?.length?sa.filter(t=>e.includes(t)):[...sa],oa=(e,t)=>"string"==typeof e&&e.trim()?{many:e,few:e,one:e}:e&&"object"==typeof e&&"string"==typeof e.many&&"string"==typeof e.few&&"string"==typeof e.one?e:t,la=(e,t)=>{const n=(e=>{const t=new Date(e).getTime();return Number.isNaN(t)?0:t})(e);let i=Math.max(0,n-Date.now());const s={days:0,hours:0,minutes:0,seconds:0};return t.forEach(e=>{const t=Math.floor(i/ra[e]);s[e]=t,i-=t*ra[e]}),s};class ca{constructor(e,t,n){this.element=e,this.defaultConfig=n.defaultConfig,this.instanceKey=n.instanceKey,this.config={...n.defaultConfig,...t??{}},this.liveRegion=null,this.tick=this.tick.bind(this),this.start=this.start.bind(this),this.stop=this.stop.bind(this),this.element[this.instanceKey]=this}readDataConfig(){const e=this.element.getAttribute(Gr);if(!e)return{};try{return JSON.parse(e)}catch(e){return{}}}getLiveRegion(){return this.element.querySelector(Zr)}scheduleNextTick(){this.stop();const e=1e3-Date.now()%1e3||1e3;this.timerId=window.setTimeout(this.tick,e)}tick(){this.render(),this.scheduleNextTick()}setupObserver(){"undefined"!=typeof IntersectionObserver?(this.observer=new IntersectionObserver(e=>{e.forEach(e=>{e.isIntersecting?this.start():this.stop()})}),this.observer.observe(this.element)):this.start()}init(){const e=this.readDataConfig();this.config={...this.defaultConfig,...e,...this.config},this.liveRegion=this.getLiveRegion(),this.collectElements(),this.render(),this.setupObserver()}start(){this.render(),this.scheduleNextTick()}stop(){this.timerId&&(window.clearTimeout(this.timerId),this.timerId=void 0)}update(e){this.stop(),this.observer?.disconnect(),this.destroyElements(),this.config={...this.config,...e??{}},this.init()}destroy(){this.stop(),this.observer?.disconnect(),this.destroyElements(),this.element[this.instanceKey]=null}}const da={many:"dni",few:"dni",one:"deň"},ua={days:da,hours:"hod",minutes:"min",seconds:"sek"},ha={targetDate:"",units:[...sa],labels:ua},pa=(e,t,n)=>{if("days"!==e)return n[e];const{many:i,few:s,one:r}=oa(n.days,da);return 1===t?r:t>=2&&t<=4?s:i};class ma extends ca{constructor(e,t){super(e,t,{defaultConfig:ha,instanceKey:"ODS_Countdown"}),this.leaves=new Map,this.init()}getLabels(){return{...ua,...this.config.labels??{},days:oa(this.config.labels?.days,da)}}collectElements(){this.leaves.clear();const e=aa(this.config.units);Array.from(this.element.querySelectorAll(Jr)).forEach(t=>{const n=t.getAttribute(Yr);n&&e.includes(n)&&this.leaves.set(n,{element:t,unit:n,labels:Array.from(t.querySelectorAll(ia)),isFlipping:!1})})}setLeafValue(e,t){e.labels.forEach(e=>{e.replaceChildren(document.createTextNode(t))})}flipLeaf(e,t){const[n,i,s,r]=e.labels;n&&i&&s&&r&&(n.textContent?e.isFlipping||n.textContent===t||(e.flipTimeoutId&&window.clearTimeout(e.flipTimeoutId),e.isFlipping=!0,n.replaceChildren(document.createTextNode(t)),s.replaceChildren(document.createTextNode(t)),e.element.classList.add(Fr),e.flipTimeoutId=window.setTimeout(()=>{i.replaceChildren(document.createTextNode(t)),r.replaceChildren(document.createTextNode(t)),e.element.classList.remove(Fr),e.isFlipping=!1,e.flipTimeoutId=void 0},600)):this.setLeafValue(e,t))}render(){const e=aa(this.config.units),t=this.getLabels(),n=la(this.config.targetDate,e);if(e.forEach(e=>{const i=this.leaves.get(e);if(!i)return;const s=n[e],r=pa(e,s,t);this.flipLeaf(i,(e=>String(Math.max(0,e)).padStart(2,"0"))(s));const a=i.element.querySelector(Qr);a&&(a.textContent=r)}),this.liveRegion){const i=e.map(e=>`${n[e]} ${pa(e,n[e],t)}`).join(", ");this.liveRegion.textContent=i}}destroyElements(){this.leaves.forEach(e=>{e.flipTimeoutId&&(window.clearTimeout(e.flipTimeoutId),e.flipTimeoutId=void 0),e.isFlipping=!1,e.element.classList.remove(Fr)})}static getInstance(e){return e&&e.ODS_Countdown?e.ODS_Countdown:null}}const fa={days:{many:"dni",few:"dni",one:"deň"},hours:"hod",minutes:"min",seconds:"sek"},ga={days:"d",hours:"h",minutes:"m",seconds:"s"},va=e=>e?.length?sa.filter(t=>e.includes(t)):[...sa],ba=(e,t,n)=>{if("days"===e){const e=t?.days??n.days;return"string"==typeof e?e:e.many}return t?.[e]??n[e]},ya=(e,t,n)=>({labels:n,targetDate:e,units:va(t)}),_a=e=>e.includes("seconds")?"off":"polite",xa=({className:e,labels:t,targetDate:n,units:i=[...sa],...s})=>{const r=va(i),a=ya(n,r,t),[o]=j(ma,a);return S.jsxs("div",{className:C(Ar,e),[Ur]:"true",[Gr]:JSON.stringify(a),ref:o,role:"timer","aria-live":_a(r),"aria-atomic":"true",...s,children:[S.jsx("span",{className:`sr-only ${Or}`}),r.map(e=>S.jsxs("div",{className:Lr,[Yr]:e,"aria-hidden":"true",children:[S.jsxs("div",{className:Dr,children:[S.jsx("div",{className:Mr,children:S.jsx("span",{className:Rr,children:"00"})}),S.jsx("div",{className:$r,children:S.jsx("span",{className:Rr,children:"00"})}),S.jsx("div",{className:Pr,children:S.jsx("span",{className:Rr,children:"00"})}),S.jsx("div",{className:Ir,children:S.jsx("span",{className:Rr,children:"00"})})]}),S.jsx("span",{className:zr,children:ba(e,t,fa)})]},e))]})};xa.displayName="Countdown";const wa={many:"d",few:"d",one:"d"},Sa={days:wa,hours:"h",minutes:"m",seconds:"s"},Ea={targetDate:"",units:["days","hours","minutes","seconds"],labels:Sa},Na=(e,t)=>"days"===e?oa(t.days,wa).many:t[e];class Ca extends ca{constructor(e,t){super(e,t,{defaultConfig:Ea,instanceKey:"ODS_CountdownTag"}),this.units=new Map,this.init()}getLabels(){return{...Sa,...this.config.labels??{},days:oa(this.config.labels?.days,wa)}}collectElements(){this.units.clear();const e=aa(this.config.units);Array.from(this.element.querySelectorAll(ea)).forEach(t=>{const n=t.getAttribute(Yr);n&&e.includes(n)&&this.units.set(n,{element:t,unit:n,valueElement:t.querySelector(na)})})}render(){const e=aa(this.config.units),t=this.getLabels(),n=la(this.config.targetDate,e);e.forEach(e=>{const i=this.units.get(e);if(!i)return;const s=n[e];i.valueElement&&(i.valueElement.textContent=(e=>e<100?String(Math.max(0,e)).padStart(2,"0"):String(Math.max(0,e)))(s));const r=i.element.querySelector(ta);r&&(r.textContent=Na(e,t))}),this.liveRegion&&(this.liveRegion.textContent=e.map(e=>`${n[e]} ${Na(e,t)}`).join(", "))}destroyElements(){}static getInstance(e){return e&&e.ODS_CountdownTag?e.ODS_CountdownTag:null}}const ka=({className:t,labels:n,targetDate:i,units:s=["days","hours","minutes","seconds"],...r})=>{const a=va(s),o=ya(i,a,n),[l]=j(Ca,o);return S.jsxs("div",{className:C(Hr,t),[Kr]:"true",[Gr]:JSON.stringify(o),ref:l,role:"timer","aria-live":_a(a),"aria-atomic":"true",...r,children:[S.jsx("span",{className:`sr-only ${Or}`}),a.map((t,i)=>S.jsxs(e.Fragment,{children:[S.jsxs("span",{className:Br,[Yr]:t,"aria-hidden":"true",children:[S.jsx("span",{className:Vr,[Xr]:"true",children:"00"}),S.jsx("span",{className:qr,children:ba(t,n,ga)})]}),i<a.length-1&&S.jsx("span",{className:Wr,"aria-hidden":"true",children:":"})]},t))]})};ka.displayName="CountdownTag";const Ta="cover",ja=({className:e,children:t,contentClass:n,bgPosition:i="center",bgSrc:s,size:r,...a})=>{const o=C(Ta,{[`${Ta}--${r}`]:r},e),l=C(`${Ta}__content`,n),c=C(`${Ta}__image`,{[`${Ta}__image--${i}`]:"center"!==i});return S.jsxs("div",{className:o,children:[t&&S.jsx("div",{className:l,children:t}),S.jsx(Os,{src:s,className:c,alt:"",...a})]})};ja.displayName="Cover";const Aa="divider",Oa=({className:e,icon:t,content:n,...i})=>{const s=C(Aa,e),r=`${Aa}__line`,a=`${Aa}__content`;return S.jsxs("div",{className:s,...i,children:[S.jsx("div",{className:r}),(n||t)&&S.jsxs(S.Fragment,{children:[S.jsx("div",{className:a,children:n??(t&&S.jsx(B,{name:t,size:"medium"}))}),S.jsx("div",{className:r})]})]})};Oa.displayName="Divider";const La={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]}}]}};let Da=class{constructor(e,t={}){return e.ODS_Dropdown?e.ODS_Dropdown:(this.element=e,this.config={...La,...t},this.config.popperOptions={...La.popperOptions,...t?.popperOptions||{}},this.config.popperOptions.modifiers=[...La.popperOptions.modifiers||[],...t?.popperOptions?.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)}static getInstance(e){return e&&e.ODS_Dropdown?e.ODS_Dropdown:null}init(){this.trigger=document.getElementById(this.element.id.replace("dropdown","btn"));const e=this.element.getAttribute("data-dropdown-placement");e&&(this.config.popperOptions.placement=e),this.instance=wi(this.trigger,this.element,this.config.popperOptions),this.transitioner=an({element:this.element,visibleClass:"dropdown--visible"}),this.trigger.addEventListener("click",this.handleVisibility,!0)}handleVisibility(){this.element.classList.contains("dropdown--visible")?this.hide():this.show()}handleClick(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()}handleKeyPress(e){if(L.ESC.includes(e.key)&&(this.handleVisibility(),this.element.contains(document.activeElement)&&this.trigger.focus(),this.hide()),this.element.hasAttribute(this.config.focusTrap)){const 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())}}show(){this.transitioner.show(),this.instance.forceUpdate(),document.addEventListener("keydown",this.handleKeyPress),document.addEventListener("click",this.handleClick),window.onresize=()=>this.update()}hide(){this.transitioner.hide(),document.removeEventListener("keydown",this.handleKeyPress),document.removeEventListener("click",this.handleClick),window.onresize=null}update(){this.instance.forceUpdate()}destroy(){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()}};var Ma,$a,Pa,Ia={exports:{}},Ra={},za={};var Fa=(Pa||(Pa=1,"production"===process.env.NODE_ENV?Ia.exports=function(){if(Ma)return Ra;Ma=1;var e=Symbol.for("react.fragment");return Ra.Fragment=e,Ra.jsxDEV=void 0,Ra}():Ia.exports=($a||($a=1,"production"!==process.env.NODE_ENV&&function(){function t(e){if(null==e)return null;if("function"==typeof e)return e.$$typeof===E?null:e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case p:return"Fragment";case f:return"Profiler";case m:return"StrictMode";case y:return"Suspense";case _:return"SuspenseList";case S:return"Activity"}if("object"==typeof e)switch(e.tag,e.$$typeof){case h:return"Portal";case v:return e.displayName||"Context";case g:return(e._context.displayName||"Context")+".Consumer";case b:var n=e.render;return(e=e.displayName)||(e=""!==(e=n.displayName||n.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case x:return null!==(n=e.displayName||null)?n:t(e.type)||"Memo";case w:n=e._payload,e=e._init;try{return t(e(n))}catch(e){}}return null}function n(e){return""+e}function i(e){try{n(e);var t=!1}catch(e){t=!0}if(t){var i=(t=console).error,s="function"==typeof Symbol&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||"Object";return i.call(t,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",s),n(e)}}function s(e){if(e===p)return"<>";if("object"==typeof e&&null!==e&&e.$$typeof===w)return"<...>";try{var n=t(e);return n?"<"+n+">":"<...>"}catch(e){return"<...>"}}function r(){return Error("react-stack-top-frame")}function a(){var e=t(this.type);return j[e]||(j[e]=!0),void 0!==(e=this.props.ref)?e:null}function o(e){l(e)?e._store&&(e._store.validated=1):"object"==typeof e&&null!==e&&e.$$typeof===w&&("fulfilled"===e._payload.status?l(e._payload.value)&&e._payload.value._store&&(e._payload.value._store.validated=1):e._store&&(e._store.validated=1))}function l(e){return"object"==typeof e&&null!==e&&e.$$typeof===u}var c,d=e,u=Symbol.for("react.transitional.element"),h=Symbol.for("react.portal"),p=Symbol.for("react.fragment"),m=Symbol.for("react.strict_mode"),f=Symbol.for("react.profiler"),g=Symbol.for("react.consumer"),v=Symbol.for("react.context"),b=Symbol.for("react.forward_ref"),y=Symbol.for("react.suspense"),_=Symbol.for("react.suspense_list"),x=Symbol.for("react.memo"),w=Symbol.for("react.lazy"),S=Symbol.for("react.activity"),E=Symbol.for("react.client.reference"),N=d.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,C=Object.prototype.hasOwnProperty,k=Array.isArray,T=console.createTask?console.createTask:function(){return null},j={},A=(d={react_stack_bottom_frame:function(e){return e()}}).react_stack_bottom_frame.bind(d,r)(),O=T(s(r)),L={};za.Fragment=p,za.jsxDEV=function(e,n,r,l){var d=1e4>N.recentlyCreatedOwnerStacks++;return function(e,n,s,r,l,d){var h,p=n.children;if(void 0!==p)if(r){if(k(p)){for(r=0;r<p.length;r++)o(p[r]);Object.freeze&&Object.freeze(p)}}else o(p);if(C.call(n,"key")){p=t(e);var m=Object.keys(n).filter(function(e){return"key"!==e});r=0<m.length?"{key: someKey, "+m.join(": ..., ")+": ...}":"{key: someKey}",L[p+r]||(m=0<m.length?"{"+m.join(": ..., ")+": ...}":"{}",L[p+r]=!0)}if(p=null,void 0!==s&&(i(s),p=""+s),function(e){if(C.call(e,"key")){var t=Object.getOwnPropertyDescriptor(e,"key").get;if(t&&t.isReactWarning)return!1}return void 0!==e.key}(n)&&(i(n.key),p=""+n.key),"key"in n)for(var f in s={},n)"key"!==f&&(s[f]=n[f]);else s=n;return p&&function(e){function t(){c||(c=!0)}t.isReactWarning=!0,Object.defineProperty(e,"key",{get:t,configurable:!0})}(s,"function"==typeof e&&(e.displayName||e.name)),function(e,t,n,i,s,r){var o=n.ref;return e={$$typeof:u,type:e,key:t,props:n,_owner:i},null!==(void 0!==o?o:null)?Object.defineProperty(e,"ref",{enumerable:!1,get:a}):Object.defineProperty(e,"ref",{enumerable:!1,value:null}),e._store={},Object.defineProperty(e._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(e,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(e,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:s}),Object.defineProperty(e,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:r}),Object.freeze&&(Object.freeze(e.props),Object.freeze(e)),e}(e,p,s,null===(h=N.A)?null:h.getOwner(),l,d)}(e,n,r,l,d?Error("react-stack-top-frame"):A,d?T(s(e)):O)}}()),za)),Ia.exports);const Ha=({children:e,...i})=>{const s=t(null),r="string"==typeof i.iconName;return n(()=>{if(s.current){const e=new or(s.current);return()=>{e.destroy()}}},[]),r?Fa.jsxDEV(Re,{ref:s,...i,children:e},void 0,!1):Fa.jsxDEV(Ae,{ref:s,...i,children:e},void 0,!1)},Ba=({className:e,id:t,...n})=>S.jsx(Ha,{"aria-expanded":!1,id:`btn-${t}`,"data-toggle":JSON.stringify([{target:"self",attribute:"aria-expanded"}]),...n,className:C(`${Va}__button mb-none`,e)});Ba.displayName="DropdownToggleButton";const Va="dropdown",qa={left:"bottom-start",center:"bottom",right:"bottom-end"},Wa=({button:e,className:t,hasFocusTrap:n=!1,hasSpacing:i=!0,children:s,id:r,isInteractive:a=!1,placement:o="left",...l})=>{const[c]=j(Da),d=C("dropdown",{[`${Va}-spacing`]:i},t);return S.jsxs(S.Fragment,{children:[e&&S.jsx(Ba,{...e,id:r,className:e.className||""}),S.jsxs("div",{ref:c,id:`dropdown-${r}`,className:d,"data-dropdown":"","data-dropdown-placement":qa[o],"data-dropdown-interactive":a,"data-dropdown-focus-trap":n,...l,children:[n&&S.jsx(ae,{className:"mb-small justify-content-end",children:S.jsx(ce,{children:S.jsx(Re,{iconName:"delete",isSquare:!0,size:"small",className:`${Va}__close`,"aria-label":"Zatvoriť",id:`close-btn-${r}`,"data-toggle":JSON.stringify([{target:`#btn-${r}`,action:"click"}])})})}),s]})]})};Wa.displayName="Dropdown";const Ua=({className:e,...t})=>{const n=C("dropdown__divider",e);return S.jsx("div",{className:n,...t})};Ua.displayName="DropdownDivider";const Ga=({className:e,children:t,disabled:n,href:i,...s})=>{const r=C("dropdown__item",{disabled:n},e);return S.jsx("a",{tabIndex:n?-1:0,href:i,className:r,"aria-disabled":n,...s,children:t})};Ga.displayName="DropdownItem";let Ya=class{constructor(e){this.element=e,this.toggle=this.toggle.bind(this),this.element.ODS_Expander=this,this.init()}toggle(){const e=this.element.getAttribute("data-toggle-group");e&&this.syncGroup(e)}syncGroup(e){const t=this.element.open;document.querySelectorAll(`[data-toggle-group="${e}"][data-expander]`).forEach(e=>{e!==this.element&&e.open!==t&&(e.open=t)})}init(){this.element.addEventListener("toggle",this.toggle)}update(){this.destroy(),this.init()}destroy(){this.element.removeEventListener("toggle",this.toggle)}static getInstance(e){return e&&e.ODS_Expander?e.ODS_Expander:null}};const Ka="expander",Xa=e=>{const{className:t,children:n,summary:i,summaryOpened:s,renderSummary:r,renderSummaryOpened:a,isFullWidth:o,placement:l="bottom",toggleGroup:c,...d}=e,[h]=j(Ya),p=C(Ka,{[`${Ka}--fullwidth`]:o,[`${Ka}--placement-top`]:"top"===l},t),m=u(()=>r?r(e):i&&S.jsxs(S.Fragment,{children:[i," ",S.jsx(B,{alt:"stav",name:"chevron-down","data-summary-icon":!0})]}),[r,e,i]),f=u(()=>a?a(e):s&&S.jsxs(S.Fragment,{children:[s," ",S.jsx(B,{alt:"stav",name:"chevron-down","data-summary-icon":!0})]}),[a,e,s]);return S.jsxs("details",{className:p,"data-expander":!0,...c?{"data-toggle-group":c}:{},ref:h,...d,children:[S.jsxs("summary",{"data-summary":i,"data-summary-opened":s,children:[S.jsx("span",{className:`${Ka}__summary`,children:m}),f&&S.jsx("span",{className:`${Ka}__summary--opened`,children:f})]}),S.jsx("div",{children:n})]})};Xa.displayName="Expander";const Za={bodiesSelector:".accordion__body",buttonSelector:"[data-feature-accordion-toggle]"};let Ja=class{constructor(e,t){return this.bodies=[],this.buttons=[],this.images=[],this.onClick=e=>{const t=e.currentTarget,n=this.buttons.indexOf(t);this.setActive(n)},this.element=e,this.config={...Za,...t},this.element.ODS_FeatureAccordion=this,this.init(),this}init(){this.bodies=Array.from(this.element.querySelectorAll(this.config.bodiesSelector)),this.buttons=Array.from(this.element.querySelectorAll(this.config.buttonSelector)),this.images=Array.from(this.element.querySelectorAll("[data-feature-accordion-image]")),this.setActive(0),this.buttons.forEach(e=>{e.addEventListener("click",this.onClick)})}setActive(e){if(e<0||e>=this.buttons.length)return;this.bodies.forEach(e=>{e.setAttribute("hidden",""),e.classList.remove("is-active")}),this.buttons.forEach(e=>{const t=e.closest(".feature-accordion__item");t?.classList.remove("is-active"),lr({element:e,attribute:"aria-expanded",value:"false"})});const t=this.buttons[e],n=t.getAttribute("aria-controls"),i=n?document.getElementById(n):null,s=t.closest(".feature-accordion__item");i&&(i.removeAttribute("hidden"),i.classList.add("is-active")),s&&s.classList.add("is-active"),lr({element:t,attribute:"aria-expanded",value:"true"}),this.images.forEach((t,n)=>{t.classList.toggle("hide",n!==e)})}destroy(){this.buttons.forEach(e=>{e.removeEventListener("click",this.onClick)})}update(){this.destroy(),this.init()}static getInstance(e){return e&&e.ODS_FeatureAccordion?e.ODS_FeatureAccordion:null}};const Qa="feature-accordion",eo=e=>({id:e.id,imageSrc:e.image||e.imageUrl,imageAlt:e.imageAlt,imageSrcSet:e.imageSrcSet}),to=t=>{const{className:n,previewClassName:i,children:s,...r}=t,[a]=j(Ja),o=C(Qa,n),l=u(()=>e.Children.toArray(s),[s]),c=u(()=>l.map(e=>({child:e,...eo(e.props)})),[l]);return S.jsxs("div",{className:o,"data-feature-accordion":!0,ref:a,...r,children:[S.jsx("div",{className:`${Qa}__accordion`,children:S.jsx(R,{children:c.map(({child:e,imageSrc:t})=>t?e:null)})}),S.jsx("div",{className:C(`${Qa}__preview`,i),children:c.map(({id:e,imageSrc:t,imageAlt:n,imageSrcSet:i},s)=>t?S.jsx(Os,{"data-feature-accordion-image":!0,src:t,alt:n,srcSet:i,className:C({hide:0!==s})},e):null)})]})},no=({image:e,imageUrl:t,imageAlt:n,imageSrcSet:i,className:s,children:r,...a})=>S.jsx(U,{className:C("feature-accordion__item",s),children:S.jsx("div",{className:"feature-accordion__content",children:r}),toggleAttribute:"data-feature-accordion-toggle",...a});no.displayName="FeatureAccordionItem";const io="select",so="default",ro="default",ao=[],oo=({id:e,isDisabled:t,isInvalid:n,name:i,options:s=ao,size:r=so,className:a,children:o,elemRef:l,width:c=ro,...d})=>{const u=C(io,a,{"is-invalid":n,[`${io}--${r}`]:r!==so,[`${io}--${c}`]:c!==ro}),h=e||T(),p=i||h;return S.jsxs("select",{id:h,name:p,className:u,disabled:t,ref:l,...d,children:[s.map(e=>{const{value:t,text:n,...i}="string"==typeof e?{value:e,text:e}:e;return S.jsx("option",{value:t,...i,children:n},n)}),o]})};oo.displayName="Select";const lo={autoselect:!0,wrapperClassName:"",menuClassName:"",optionClassName:"",customInputClassName:"",displayMenu:"overlay",tClearButton:()=>"Vymazať text",tAssistiveHint:()=>"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."},co=(e,t)=>{const n=e.split(/\s+/).filter(Boolean);return n.includes(t)?e:[...n,t].join(" ")};let uo=class{constructor(e,t){return this.element=e,this.config={...lo,...t},this.onPageshow=this.onPageshow.bind(this),this.onClearButtonClick=this.onClearButtonClick.bind(this),this.instance=null,this.teardownClearButton=null,this.element.ODS_Autocomplete=this,this.init().catch(()=>{}),this}async init(){const e=this.element.getAttribute("data-autocomplete-config");let t={};if(e)try{t=JSON.parse(e)}catch{}this.config={...this.config,...t};const n=(this.config.customInputClassName||"").split(/\s+/).filter(Boolean),i=this.config.wrapperClassName.split(/\s+/).filter(Boolean),s=n.includes("input--search-icon")||i.includes("autocomplete__wrapper--search-icon"),r=n.includes("input--search-icon-with-placeholder")||i.includes("autocomplete__wrapper--search-icon-with-placeholder"),a=this.element.classList.contains("is-invalid");this.config.customInputClassName=n.filter(e=>"input--search-icon"!==e&&"input--search-icon-with-placeholder"!==e).join(" "),a&&(this.config.customInputClassName=co(this.config.customInputClassName,"is-invalid")),s&&(this.config.wrapperClassName=co(this.config.wrapperClassName,"autocomplete__wrapper--search-icon")),r&&(this.config.wrapperClassName=co(this.config.wrapperClassName,"autocomplete__wrapper--search-icon-with-placeholder"));const o=(await Promise.resolve().then(function(){return bg})).default;"SELECT"===this.element.tagName?o.enhanceSelectElement({selectElement:this.element,...this.config}):o({element:this.element,...this.config}),this.initEnhancedControls(r),window.addEventListener("pageshow",this.onPageshow)}getWrapper(){if("SELECT"===this.element.tagName){const e=this.element.previousElementSibling;return(e=>{if(!e)return!1;const t=e.ownerDocument?.defaultView?.HTMLElement;return t?e instanceof t:e.nodeType===Node.ELEMENT_NODE})(e)?e.classList.contains("autocomplete__wrapper")?e:e.querySelector(".autocomplete__wrapper"):null}return this.element.querySelector(".autocomplete__wrapper")}getInput(){return this.getWrapper()?.querySelector(".autocomplete__input")??null}initEnhancedControls(e,t=10){this.getInput()?(this.syncInputState(),e&&this.initClearButton()):t>0&&window.setTimeout(()=>this.initEnhancedControls(e,t-1),0)}syncInputState(){const e=this.getInput();e&&(this.element.classList.contains("is-invalid")&&(e.classList.add("is-invalid"),e.setAttribute("aria-invalid","true")),this.element instanceof HTMLSelectElement&&this.element.disabled&&(e.disabled=!0))}initClearButton(){this.teardownClearButton?.();const e=this.getWrapper(),t=this.getInput();if(!e||!t)return;const n=document.createElement("button");n.type="button",n.className="autocomplete__clear",n.setAttribute("aria-label",this.config.tClearButton());const i=()=>{n.hidden=t.disabled||0===t.value.length},s=()=>{window.setTimeout(i,0)};n.addEventListener("mousedown",this.preventDefault),n.addEventListener("keydown",this.stopPropagation),n.addEventListener("click",this.onClearButtonClick),t.addEventListener("input",i),t.addEventListener("change",i),e.addEventListener("click",s),e.addEventListener("keyup",s),i(),e.appendChild(n),this.teardownClearButton=()=>{n.removeEventListener("mousedown",this.preventDefault),n.removeEventListener("keydown",this.stopPropagation),n.removeEventListener("click",this.onClearButtonClick),t.removeEventListener("input",i),t.removeEventListener("change",i),e.removeEventListener("click",s),e.removeEventListener("keyup",s),n.remove()}}preventDefault(e){e.preventDefault()}stopPropagation(e){e.stopPropagation()}onClearButtonClick(){const e=this.getInput();if(e){if(e.value="",e.dispatchEvent(new Event("input",{bubbles:!0})),e.dispatchEvent(new Event("change",{bubbles:!0})),this.element instanceof HTMLSelectElement){const e=Array.from(this.element.options).find(e=>""===e.value);e?e.selected=!0:this.element.selectedIndex=-1,this.element.dispatchEvent(new Event("change",{bubbles:!0}))}this.config.onConfirm?.(""),e.focus()}}onPageshow(e){e.persisted&&window&&window.location.reload()}destroy(){this.teardownClearButton?.(),this.teardownClearButton=null,window.removeEventListener("pageshow",this.onPageshow),this.element.ODS_Autocomplete=null}update(){this.destroy(),this.init().catch(()=>{})}static getInstance(e){return e&&e.ODS_Autocomplete?e.ODS_Autocomplete:null}};const ho=({className:e,options:t=[],autocompleteConfig:n,placeholder:i,...s})=>{const[r]=j(uo,n),a=!n||"data-autocomplete-config"in s||"dataAutocompleteConfig"in s?void 0:JSON.stringify(n);return S.jsx(oo,{className:C("autocomplete",e),"data-placeholder":i,...a?{"data-autocomplete-config":a}:{},...t.length?{"data-autocomplete":!0}:{},...s,elemRef:r,children:t&&t.map(e=>S.jsx("option",{label:"string"==typeof e&&0===e.length?" ":void 0,value:"string"==typeof e?e:e.value,children:"string"==typeof e?e:e.title},"string"==typeof e?e:e.value))})};ho.displayName="Autocomplete";var po=Object.freeze({__proto__:null,Autocomplete:ho});const mo="checkbox",fo="default",go=({id:e,isChecked:t,isDisabled:n,isInvalid:i,isToggle:s,name:r,size:a=fo,className:o,...l})=>{const c=C(mo,o,{[`${mo}--${a}`]:a!==fo,"is-invalid":i}),d=r||e,u=()=>S.jsxs(S.Fragment,{children:[S.jsx("input",{className:c,type:"checkbox",id:e,name:d,defaultChecked:t,disabled:n,...l}),S.jsx("div",{className:`${mo}-display`})]});return s?S.jsx("div",{className:s?"checkbox--toggle":"",children:S.jsx(u,{})}):S.jsx(u,{})};var vo,bo,yo,_o,xo,wo,So;go.displayName="Checkbox";var Eo,No,Co,ko={},To=[],jo=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function Ao(e,t){for(var n in t)e[n]=t[n];return e}function Oo(e){var t=e.parentNode;t&&t.removeChild(e)}function Lo(e,t,n){var i,s,r,a={};for(r in t)"key"==r?i=t[r]:"ref"==r?s=t[r]:a[r]=t[r];if(arguments.length>2&&(a.children=arguments.length>3?vo.call(arguments,2):n),"function"==typeof e&&null!=e.defaultProps)for(r in e.defaultProps)void 0===a[r]&&(a[r]=e.defaultProps[r]);return Do(e,a,i,s,null)}function Do(e,t,n,i,s){var r={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==s?++yo:s};return null==s&&null!=bo.vnode&&bo.vnode(r),r}function Mo(e){return e.children}function $o(e,t){this.props=e,this.context=t}function Po(e,t){if(null==t)return e.__?Po(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?Po(e):null}function Io(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 Io(e)}}function Ro(e){(!e.__d&&(e.__d=!0)&&_o.push(e)&&!zo.__r++||wo!==bo.debounceRendering)&&((wo=bo.debounceRendering)||xo)(zo)}function zo(){for(var e;zo.__r=_o.length;)e=_o.sort(function(e,t){return e.__v.__b-t.__v.__b}),_o=[],e.some(function(e){var t,n,i,s,r,a;e.__d&&(r=(s=(t=e).__v).__e,(a=t.__P)&&(n=[],(i=Ao({},s)).__v=s.__v+1,Yo(a,s,i,t.__n,void 0!==a.ownerSVGElement,null!=s.__h?[r]:null,n,null==r?Po(s):r,s.__h),Ko(n,s),s.__e!=r&&Io(s)))})}function Fo(e,t,n,i,s,r,a,o,l,c){var d,u,h,p,m,f,g,v=i&&i.__k||To,b=v.length;for(n.__k=[],d=0;d<t.length;d++)if(null!=(p=n.__k[d]=null==(p=t[d])||"boolean"==typeof p?null:"string"==typeof p||"number"==typeof p||"bigint"==typeof p?Do(null,p,null,null,p):Array.isArray(p)?Do(Mo,{children:p},null,null,null):p.__b>0?Do(p.type,p.props,p.key,null,p.__v):p)){if(p.__=n,p.__b=n.__b+1,null===(h=v[d])||h&&p.key==h.key&&p.type===h.type)v[d]=void 0;else for(u=0;u<b;u++){if((h=v[u])&&p.key==h.key&&p.type===h.type){v[u]=void 0;break}h=null}Yo(e,p,h=h||ko,s,r,a,o,l,c),m=p.__e,(u=p.ref)&&h.ref!=u&&(g||(g=[]),h.ref&&g.push(h.ref,null,p),g.push(u,p.__c||m,p)),null!=m?(null==f&&(f=m),"function"==typeof p.type&&p.__k===h.__k?p.__d=l=Ho(p,l,e):l=Vo(e,p,h,v,m,l),"function"==typeof n.type&&(n.__d=l)):l&&h.__e==l&&l.parentNode!=e&&(l=Po(h))}for(n.__e=f,d=b;d--;)null!=v[d]&&("function"==typeof n.type&&null!=v[d].__e&&v[d].__e==n.__d&&(n.__d=Po(i,d+1)),Zo(v[d],v[d]));if(g)for(d=0;d<g.length;d++)Xo(g[d],g[++d],g[++d])}function Ho(e,t,n){for(var i,s=e.__k,r=0;s&&r<s.length;r++)(i=s[r])&&(i.__=e,t="function"==typeof i.type?Ho(i,t,n):Vo(n,i,i,s,i.__e,t));return t}function Bo(e,t){return t=t||[],null==e||"boolean"==typeof e||(Array.isArray(e)?e.some(function(e){Bo(e,t)}):t.push(e)),t}function Vo(e,t,n,i,s,r){var a,o,l;if(void 0!==t.__d)a=t.__d,t.__d=void 0;else if(null==n||s!=r||null==s.parentNode)e:if(null==r||r.parentNode!==e)e.appendChild(s),a=null;else{for(o=r,l=0;(o=o.nextSibling)&&l<i.length;l+=2)if(o==s)break e;e.insertBefore(s,r),a=r}return void 0!==a?a:s.nextSibling}function qo(e,t,n){"-"===t[0]?e.setProperty(t,n):e[t]=null==n?"":"number"!=typeof n||jo.test(t)?n:n+"px"}function Wo(e,t,n,i,s){var r;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||qo(e.style,t,"");if(n)for(t in n)i&&n[t]===i[t]||qo(e.style,t,n[t])}else if("o"===t[0]&&"n"===t[1])r=t!==(t=t.replace(/Capture$/,"")),t=t.toLowerCase()in e?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+r]=n,n?i||e.addEventListener(t,r?Go:Uo,r):e.removeEventListener(t,r?Go:Uo,r);else if("dangerouslySetInnerHTML"!==t){if(s)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 Uo(e){this.l[e.type+!1](bo.event?bo.event(e):e)}function Go(e){this.l[e.type+!0](bo.event?bo.event(e):e)}function Yo(e,t,n,i,s,r,a,o,l){var c,d,u,h,p,m,f,g,v,b,y,_=t.type;if(void 0!==t.constructor)return null;null!=n.__h&&(l=n.__h,o=t.__e=n.__e,t.__h=null,r=[o]),(c=bo.__b)&&c(t);try{e:if("function"==typeof _){if(g=t.props,v=(c=_.contextType)&&i[c.__c],b=c?v?v.props.value:c.__:i,n.__c?f=(d=t.__c=n.__c).__=d.__E:("prototype"in _&&_.prototype.render?t.__c=d=new _(g,b):(t.__c=d=new $o(g,b),d.constructor=_,d.render=Jo),v&&v.sub(d),d.props=g,d.state||(d.state={}),d.context=b,d.__n=i,u=d.__d=!0,d.__h=[]),null==d.__s&&(d.__s=d.state),null!=_.getDerivedStateFromProps&&(d.__s==d.state&&(d.__s=Ao({},d.__s)),Ao(d.__s,_.getDerivedStateFromProps(g,d.__s))),h=d.props,p=d.state,u)null==_.getDerivedStateFromProps&&null!=d.componentWillMount&&d.componentWillMount(),null!=d.componentDidMount&&d.__h.push(d.componentDidMount);else{if(null==_.getDerivedStateFromProps&&g!==h&&null!=d.componentWillReceiveProps&&d.componentWillReceiveProps(g,b),!d.__e&&null!=d.shouldComponentUpdate&&!1===d.shouldComponentUpdate(g,d.__s,b)||t.__v===n.__v){d.props=g,d.state=d.__s,t.__v!==n.__v&&(d.__d=!1),d.__v=t,t.__e=n.__e,t.__k=n.__k,t.__k.forEach(function(e){e&&(e.__=t)}),d.__h.length&&a.push(d);break e}null!=d.componentWillUpdate&&d.componentWillUpdate(g,d.__s,b),null!=d.componentDidUpdate&&d.__h.push(function(){d.componentDidUpdate(h,p,m)})}d.context=b,d.props=g,d.state=d.__s,(c=bo.__r)&&c(t),d.__d=!1,d.__v=t,d.__P=e,c=d.render(d.props,d.state,d.context),d.state=d.__s,null!=d.getChildContext&&(i=Ao(Ao({},i),d.getChildContext())),u||null==d.getSnapshotBeforeUpdate||(m=d.getSnapshotBeforeUpdate(h,p)),y=null!=c&&c.type===Mo&&null==c.key?c.props.children:c,Fo(e,Array.isArray(y)?y:[y],t,n,i,s,r,a,o,l),d.base=t.__e,t.__h=null,d.__h.length&&a.push(d),f&&(d.__E=d.__=null),d.__e=!1}else null==r&&t.__v===n.__v?(t.__k=n.__k,t.__e=n.__e):t.__e=function(e,t,n,i,s,r,a,o){var l,c,d,u=n.props,h=t.props,p=t.type,m=0;if("svg"===p&&(s=!0),null!=r)for(;m<r.length;m++)if((l=r[m])&&"setAttribute"in l==!!p&&(p?l.localName===p:3===l.nodeType)){e=l,r[m]=null;break}if(null==e){if(null===p)return document.createTextNode(h);e=s?document.createElementNS("http://www.w3.org/2000/svg",p):document.createElement(p,h.is&&h),r=null,o=!1}if(null===p)u===h||o&&e.data===h||(e.data=h);else{if(r=r&&vo.call(e.childNodes),c=(u=n.props||ko).dangerouslySetInnerHTML,d=h.dangerouslySetInnerHTML,!o){if(null!=r)for(u={},m=0;m<e.attributes.length;m++)u[e.attributes[m].name]=e.attributes[m].value;(d||c)&&(d&&(c&&d.__html==c.__html||d.__html===e.innerHTML)||(e.innerHTML=d&&d.__html||""))}if(function(e,t,n,i,s){var r;for(r in n)"children"===r||"key"===r||r in t||Wo(e,r,null,n[r],i);for(r in t)s&&"function"!=typeof t[r]||"children"===r||"key"===r||"value"===r||"checked"===r||n[r]===t[r]||Wo(e,r,t[r],n[r],i)}(e,h,u,s,o),d)t.__k=[];else if(m=t.props.children,Fo(e,Array.isArray(m)?m:[m],t,n,i,s&&"foreignObject"!==p,r,a,r?r[0]:n.__k&&Po(n,0),o),null!=r)for(m=r.length;m--;)null!=r[m]&&Oo(r[m]);o||("value"in h&&void 0!==(m=h.value)&&(m!==e.value||"progress"===p&&!m||"option"===p&&m!==u.value)&&Wo(e,"value",m,u.value,!1),"checked"in h&&void 0!==(m=h.checked)&&m!==e.checked&&Wo(e,"checked",m,u.checked,!1))}return e}(n.__e,t,n,i,s,r,a,l);(c=bo.diffed)&&c(t)}catch(e){t.__v=null,(l||null!=r)&&(t.__e=o,t.__h=!!l,r[r.indexOf(o)]=null),bo.__e(e,t,n)}}function Ko(e,t){bo.__c&&bo.__c(t,e),e.some(function(t){try{e=t.__h,t.__h=[],e.some(function(e){e.call(t)})}catch(e){bo.__e(e,t.__v)}})}function Xo(e,t,n){try{"function"==typeof e?e(t):e.current=t}catch(e){bo.__e(e,n)}}function Zo(e,t,n){var i,s;if(bo.unmount&&bo.unmount(e),(i=e.ref)&&(i.current&&i.current!==e.__e||Xo(i,null,t)),null!=(i=e.__c)){if(i.componentWillUnmount)try{i.componentWillUnmount()}catch(e){bo.__e(e,t)}i.base=i.__P=null}if(i=e.__k)for(s=0;s<i.length;s++)i[s]&&Zo(i[s],t,"function"!=typeof e.type);n||null==e.__e||Oo(e.__e),e.__e=e.__d=void 0}function Jo(e,t,n){return this.constructor(e,n)}function Qo(e,t,n){var i,s;bo.__&&bo.__(e,t),i=t.__k,s=[],Yo(t,e=t.__k=Lo(Mo,null,[e]),i||ko,ko,void 0!==t.ownerSVGElement,i?null:t.firstChild?vo.call(t.childNodes):null,s,i?i.__e:t.firstChild,!1),Ko(s,e)}vo=To.slice,bo={__e:function(e,t){for(var n,i,s;t=t.__;)if((n=t.__c)&&!n.__)try{if((i=n.constructor)&&null!=i.getDerivedStateFromError&&(n.setState(i.getDerivedStateFromError(e)),s=n.__d),null!=n.componentDidCatch&&(n.componentDidCatch(e),s=n.__d),s)return n.__E=n}catch(t){e=t}throw e}},yo=0,$o.prototype.setState=function(e,t){var n;n=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=Ao({},this.state),"function"==typeof e&&(e=e(Ao({},n),this.props)),e&&Ao(n,e),null!=e&&this.__v&&(t&&this.__h.push(t),Ro(this))},$o.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),Ro(this))},$o.prototype.render=Mo,_o=[],xo="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,zo.__r=0,So=0;var el=0,tl=[],nl=bo.__b,il=bo.__r,sl=bo.diffed,rl=bo.__c,al=bo.unmount;function ol(e,t){bo.__h&&bo.__h(No,e,el||t),el=0;var n=No.__H||(No.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({}),n.__[e]}function ll(e){return el=1,function(e,t){var n=ol(Eo++,2);return n.t=e,n.__c||(n.__=[vl(void 0,t),function(e){var t=n.t(n.__[0],e);n.__[0]!==t&&(n.__=[t,n.__[1]],n.__c.setState({}))}],n.__c=No),n.__}(vl,e)}function cl(e,t){var n=ol(Eo++,3);!bo.__s&&gl(n.__H,t)&&(n.__=e,n.__H=t,No.__H.__h.push(n))}function dl(e){return el=5,function(e,t){var n=ol(Eo++,7);return gl(n.__H,t)&&(n.__=e(),n.__H=t,n.__h=e),n.__}(function(){return{current:e}},[])}function ul(e){var t=No.context[e.__c],n=ol(Eo++,9);return n.c=e,t?(null==n.__&&(n.__=!0,t.sub(No)),t.props.value):e.__}function hl(){for(var e;e=tl.shift();)if(e.__P)try{e.__H.__h.forEach(ml),e.__H.__h.forEach(fl),e.__H.__h=[]}catch(t){e.__H.__h=[],bo.__e(t,e.__v)}}bo.__b=function(e){No=null,nl&&nl(e)},bo.__r=function(e){il&&il(e),Eo=0;var t=(No=e.__c).__H;t&&(t.__h.forEach(ml),t.__h.forEach(fl),t.__h=[])},bo.diffed=function(e){sl&&sl(e);var t=e.__c;t&&t.__H&&t.__H.__h.length&&(1!==tl.push(t)&&Co===bo.requestAnimationFrame||((Co=bo.requestAnimationFrame)||function(e){var t,n=function(){clearTimeout(i),pl&&cancelAnimationFrame(t),setTimeout(e)},i=setTimeout(n,100);pl&&(t=requestAnimationFrame(n))})(hl)),No=null},bo.__c=function(e,t){t.some(function(e){try{e.__h.forEach(ml),e.__h=e.__h.filter(function(e){return!e.__||fl(e)})}catch(n){t.some(function(e){e.__h&&(e.__h=[])}),t=[],bo.__e(n,e.__v)}}),rl&&rl(e,t)},bo.unmount=function(e){al&&al(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach(function(e){try{ml(e)}catch(e){t=e}}),t&&bo.__e(t,n.__v))};var pl="function"==typeof requestAnimationFrame;function ml(e){var t=No,n=e.__c;"function"==typeof n&&(e.__c=void 0,n()),No=t}function fl(e){var t=No;e.__c=e.__(),No=t}function gl(e,t){return!e||e.length!==t.length||t.some(function(t,n){return t!==e[n]})}function vl(e,t){return"function"==typeof t?t(e):t}function bl(e,t){for(var n in t)e[n]=t[n];return e}function yl(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 _l(e){this.props=e}(_l.prototype=new $o).isPureReactComponent=!0,_l.prototype.shouldComponentUpdate=function(e,t){return yl(this.props,e)||yl(this.state,t)};var xl=bo.__b;bo.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),xl&&xl(e)};var wl="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function Sl(e){function t(t,n){var i=bl({},t);return delete i.ref,e(i,(n=t.ref||n)&&("object"!=typeof n||"current"in n)?n:null)}return t.$$typeof=wl,t.render=t,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t}var El=bo.__e;bo.__e=function(e,t,n){if(e.then)for(var i,s=t;s=s.__;)if((i=s.__c)&&i.__c)return null==t.__e&&(t.__e=n.__e,t.__k=n.__k),i.__c(e,t);El(e,t,n)};var Nl=bo.unmount;function Cl(){this.__u=0,this.t=null,this.__b=null}function kl(e){var t=e.__.__c;return t&&t.__e&&t.__e(e)}function Tl(){this.u=null,this.o=null}bo.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&!0===e.__h&&(e.type=null),Nl&&Nl(e)},(Cl.prototype=new $o).__c=function(e,t){var n=t.__c,i=this;null==i.t&&(i.t=[]),i.t.push(n);var s=kl(i.__v),r=!1,a=function(){r||(r=!0,n.__R=null,s?s(o):o())};n.__R=a;var o=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(a,a)},Cl.prototype.componentWillUnmount=function(){this.t=[]},Cl.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=bl({},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 s=t.__e&&Lo(Mo,null,e.fallback);return s&&(s.__h=null),[Lo(Mo,null,t.__e?null:e.children),s]};var jl=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]}};(Tl.prototype=new $o).__e=function(e){var t=this,n=kl(t.__v),i=t.o.get(e);return i[0]++,function(s){var r=function(){t.props.revealOrder?(i.push(s),jl(t,e,i)):s()};n?n(r):r()}},Tl.prototype.render=function(e){this.u=null,this.o=new Map;var t=Bo(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},Tl.prototype.componentDidUpdate=Tl.prototype.componentDidMount=function(){var e=this;this.o.forEach(function(t,n){jl(e,n,t)})};var Al="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,Ol=/^(?: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]/,Ll="undefined"!=typeof document,Dl=function(e){return("undefined"!=typeof Symbol&&"symbol"==typeof Symbol()?/fil|che|rad/i:/fil|che|ra/i).test(e)};$o.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(e){Object.defineProperty($o.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})});var Ml=bo.event;function $l(){}function Pl(){return this.cancelBubble}function Il(){return this.defaultPrevented}bo.event=function(e){return Ml&&(e=Ml(e)),e.persist=$l,e.isPropagationStopped=Pl,e.isDefaultPrevented=Il,e.nativeEvent=e};var Rl={configurable:!0,get:function(){return this.class}},zl=bo.vnode;bo.vnode=function(e){var t=e.type,n=e.props,i=n;if("string"==typeof t){var s=-1===t.indexOf("-");for(var r in i={},n){var a=n[r];Ll&&"children"===r&&"noscript"===t||"value"===r&&"defaultValue"in n&&null==a||("defaultValue"===r&&"value"in n&&null==n.value?r="value":"download"===r&&!0===a?a="":/ondoubleclick/i.test(r)?r="ondblclick":/^onchange(textarea|input)/i.test(r+t)&&!Dl(n.type)?r="oninput":/^onfocus$/i.test(r)?r="onfocusin":/^onblur$/i.test(r)?r="onfocusout":/^on(Ani|Tra|Tou|BeforeInp|Compo)/.test(r)?r=r.toLowerCase():s&&Ol.test(r)?r=r.replace(/[A-Z0-9]/,"-$&").toLowerCase():null===a&&(a=void 0),i[r]=a)}"select"==t&&i.multiple&&Array.isArray(i.value)&&(i.value=Bo(n.children).forEach(function(e){e.props.selected=-1!=i.value.indexOf(e.props.value)})),"select"==t&&null!=i.defaultValue&&(i.value=Bo(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&&(Rl.enumerable="className"in n,null!=n.className&&(i.class=n.className),Object.defineProperty(i,"className",Rl))}e.$$typeof=Al,zl&&zl(e)};var Fl=bo.__r;bo.__r=function(e){Fl&&Fl(e),e.__c};var Hl={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 Bl(...e){return e.join(" ").trim()}var Vl={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 ql(e){return e instanceof Date&&!isNaN(e.valueOf())}function Wl(e,t=1){const n=new Date(e),i=e.getDay(),s=(i<t?7:0)+i-t;return new Date(n.setDate(n.getDate()-s))}function Ul(e,t=1){const n=new Date(e),i=n.getDay(),s=6+(i<t?-7:0)-(i-t);return new Date(n.setDate(n.getDate()+s))}function Gl(e,t){return!(!ql(e)||!ql(t))&&(e.setHours(0,0,0,0),t.setHours(0,0,0,0),e.getTime()===t.getTime())}function Yl(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 Kl,Xl,Zl=(Xl={__c:Kl="__cC"+So++,__:void 0,Consumer:function(e,t){return e.children(t)},Provider:function(e){var t,n;return this.getChildContext||(t=[],(n={})[Kl]=this,this.getChildContext=function(){return n},this.shouldComponentUpdate=function(e){this.props.value!==e.value&&t.some(Ro)},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.__=Xl.Consumer.contextType=Xl,Jl=()=>{const{firstDayOfWeek:e,classes:t,l10n:n,selected:i,setSelected:s,setView:r,handleKeyboardNavigation:a,focusedRef:o,view:l,disabledDayFn:c,locale:d}=ul(Zl),u=function(e,t){const n=e?.length?[...e]:[],i=n.splice(0,t);return[...n,...i]}(n.weekdays,e),h=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}(Wl(n,t),Ul(i,t))}(l,e));return Lo("table",{className:t.table},Lo("thead",null,Lo("tr",{className:t.tableHeaderRow},u.map(e=>Lo("th",{scope:"col",className:t.tableHeaderCell},Lo("span",{className:t.srOnly},e.name),Lo("span",{"aria-hidden":"true"},e.shortname))))),Lo("tbody",null,h.map(e=>Lo("tr",{className:t.tableRow},e.map(e=>{const n=i&&Gl(e,i),u=Gl(e,l),h=!function(e,t){return e.getMonth()===t.getMonth()}(e,l)||c(e),p=(m=e,Gl(new Date,m)?t.isToday:void 0);var m;const f=n?t.isSelected:void 0,g=[t.dayButton,p,f],v=u?"0":"-1",b=e.toLocaleDateString(d),y=u?o:void 0;return Lo("td",{role:"gridcell",className:t.tableCell},Lo("button",{className:g.join(" "),type:"button",onClick:()=>{h||(s(e),r(e))},tabindex:v,onKeyUp:a,ref:y,"aria-disabled":h,"aria-label":b,"aria-selected":n},Lo("span",{className:t.srOnly},b),Lo("span",{"aria-hidden":"true"},e.getDate())))})))))},Ql=Sl(({label:e,value:t,options:n,onChange:i,className:s,elemRef:r,...a},o)=>{const{classes:l}=ul(Zl);return Lo("label",null,Lo("span",{className:"sr-only"},e),Lo("select",{className:Bl(l.select,s),onChange:e=>i(e),ref:o,...a},n?.map(e=>Lo("option",{value:e?.value||0===e?.value?e.value:e,selected:t===e?.value||t===e?"selected":void 0},e?.text?e.text:e))))}),ec=Ql;function tc(e,t){const n=[];for(let i=e;i<=t;i++)n.push(i);return n}var nc=Sl((e,t)=>{const{l10n:n,min:i,max:s,view:r,setView:a,classes:o}=ul(Zl),l=new Date(i).getFullYear(),c=new Date(s).getFullYear();return Lo(ec,{label:n.year,options:tc(l,c),value:r.getFullYear(),className:o.yearSelect,onChange:e=>{const t=new Date(r);t.setFullYear(parseInt(e.target.value,10)),a(t)},ref:t,...e})}),ic=nc,sc=()=>{const{l10n:e,view:t,setView:n,classes:i}=ul(Zl);return Lo(ec,{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)}})},rc=({min:e="1900-01-01",max:t="2100-12-31",classes:n=Hl,l10n:i=Vl,selectedDay:s,firstDayOfWeek:r=1,locale:a={},disabledDayFn:o=()=>{},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:d=e=>{const t=e.match(/(\d{2})\/(\d{2})\/(\d{4})/);return!!t&&new Date(t[3],t[2]-1,t[1])},calendarIcon:u,name:h,id:p})=>{const[m,f]=ll(s?new Date(s):new Date),[g,v]=ll(s?new Date(s):void 0),[b,y]=ll(!1),_=dl(!0),x=dl(),w=dl(),S=dl(),E=dl(),N=dl(),C=dl();var k,T,j;cl(()=>{l(g),y(!1)},[g]),cl(()=>{const e=e=>{"Tab"===e.key&&b&&(e.shiftKey||document.activeElement!==C.current||(e.preventDefault(),E.current.focus()),!e.shiftKey||document.activeElement!==E.current&&document.activeElement!==N.current||(e.preventDefault(),C.current.focus()))},t=e=>{"Escape"===e.key&&b&&y(!1)};return document.addEventListener("keydown",e),document.addEventListener("keydown",t),()=>{document.removeEventListener("keydown",e),document.removeEventListener("keydown",t)}},[b,C.current,E.current]),cl(()=>{const e=e=>{!N.current.contains(e.target)&&b&&y(!1)};return document.addEventListener("click",e),()=>document.removeEventListener("click",e)},[b,N.current]),k=()=>{b?N.current.focus():document.activeElement===x.current||_.current?_.current=!1:S.current.focus()},T=[b,E.current,S.current,x.current],j=ol(Eo++,4),!bo.__s&&gl(j.__H,T)&&(j.__=k,j.__H=T,No.__h.push(j));const A=e=>Yl(e,e.getMonth()-1),O=e=>Yl(e,e.getMonth()+1),L=()=>{y(!b)},D=({type:e,children:t,...n})=>Lo(e,n,t&&t.length&&t.map(e=>D(e)));return Lo(Zl.Provider,{value:{firstDayOfWeek:r,classes:n,l10n:i,min:e,max:t,view:m,setView:f,selected:g,setSelected:v,handleKeyboardNavigation:e=>{let t=new Date(m);const n={ArrowLeft:()=>{t.setDate(m.getDate()-1)},ArrowRight:()=>{t.setDate(m.getDate()+1)},ArrowUp:()=>{t.setDate(m.getDate()-7)},ArrowDown:()=>{t.setDate(m.getDate()+7)},PageUp:()=>{e.shiftKey?t.setFullYear(m.getFullYear()-1):t=A(m)},PageDown:()=>{e.shiftKey?t.setFullYear(m.getFullYear()+1):t=O(m)},Home:()=>{t=Wl(m,r)},End:()=>{t=Ul(m,r)}};Object.keys(n).includes(e.key)&&(e.preventDefault(),n[e.key]?.(),f(t),setTimeout(()=>{w.current.focus()},0))},focusedRef:w,disabledDayFn:o,locale:a}},Lo("input",{id:`${p}-input`,type:"text",className:n.input,value:g&&g.toLocaleDateString(a),onChange:e=>(e=>{""===e.target.value&&v(void 0);const t=d(e.target.value);if(t)return f(t),v(t)})(e),ref:x}),Lo("input",{type:"hidden",id:`${p}-value`,value:c(g),name:h}),Lo("button",{type:"button","aria-controls":`${p}-dialog`,onClick:()=>L(),"aria-expanded":b,ref:S,className:n.toggleButton},u&&D(u),u?Lo("span",{class:n.srOnly},i.openButton):i.openButton),Lo("div",{className:n.wrapper,role:"dialog","aria-modal":"true","aria-labelledby":"daypickr-label",hidden:!b,ref:N,tabIndex:"-1"},Lo("div",{className:"daypickr__content"},Lo("h2",{id:"daypickr-label",className:"sr-only"},m.toLocaleString(a,{month:"long",year:"numeric"})),Lo("div",{className:n.header},Lo("div",{className:n.yearMonthWrapper},Lo(ic,{ref:E}),Lo(sc,null)),Lo("div",{className:n.pagination},Lo("button",{type:"button",className:`${n.button} ${n.prevMonthButton}`,onClick:()=>{f(A(m))}},i.prevMonth),Lo("button",{type:"button",className:`${n.button} ${n.nextMonthButton}`,onClick:()=>{f(O(m))}},i.nextMonth))),Lo(Jl,null),Lo("button",{className:`${n.button} ${n.closeButton}`,type:"button",onClick:()=>L(),ref:C},i.closeButton))))},ac=({calendarIcon:e,classes:t=classNames,l10n:n=l10nEN,...i})=>{const s=({type:e,children:t,...n})=>Lo(e,n,t&&t.length&&t.map(e=>s(e)));return Lo(Zl.Provider,{value:{classes:t,l10n:n}},Lo("input",{type:"text",disabled:!0,className:t.input}),Lo("button",{type:"button",className:t.toggleButton,disabled:!0},e&&s(e),e?Lo("span",{class:t.srOnly},n.openButton):n.openButton))};const oc={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:e=>{const 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"}]}};class lc{constructor(e,t){return this.element=e,this.config={...oc,...t},this.init(),this.element.ODS_DatePicker=this,this}init(){const e=this.element.getAttribute("data-datepicker-config"),t=this.element.getAttribute("data-enabled-days");let n={};if(e)try{n=JSON.parse(e)}catch{n={}}this.config={...this.config,...n,...t&&{disabledDayFn:e=>!t.split(",").includes(function(e){return e&&e instanceof Date?`${e.getFullYear()}-${(e.getMonth()+1).toString().padStart(2,"0")}-${e.getDate().toString().padStart(2,"0")}`:""}(e))}};const i=this.element.getAttribute("data-datepicker-id")||void 0,s=this.element.getAttribute("data-datepicker-name")||i;var r,a;this.instance=(r=this.element,a={id:i,name:s,...this.config},Qo(Lo(rc,{...a}),r),{destroy(){!function(e){e.__k&&Qo(null,e)}(r),Qo(Lo(ac,{...a}),r)}})}destroy(){this.instance&&this.instance.destroy(),this.instance=null,this.element.ODS_DatePicker=null}}const cc=({dayPickrConfig:e,enabledDays:t,id:n,name:i})=>{const[s]=j(lc,e);return S.jsx("div",{ref:s,"data-datepicker":!0,"data-enabled-days":t&&t.toString()||void 0,className:"datepicker control-group","data-datepicker-id":n,"data-datepicker-name":i})};cc.displayName="DatePicker";var dc,uc={exports:{}},hc={};function pc(){return dc||(dc=1,hc._=function(e){return e&&e.__esModule?e:{default:e}}),hc}function mc(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var fc,gc,vc,bc,yc,_c={},xc={};function wc(){return gc||(gc=1,function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return h}});const n=pc()._(e),i=(fc||(fc=1,function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"LoadableContext",{enumerable:!0,get:function(){return n}});const n=pc()._(e).default.createContext(null);"production"!==process.env.NODE_ENV&&(n.displayName="LoadableContext")}(xc)),xc),s=[],r=[];let a=!1;function o(e){let t=e(),n={loading:!0,loaded:null,error:null};return n.promise=t.then(e=>(n.loading=!1,n.loaded=e,e)).catch(e=>{throw n.loading=!1,n.error=e,e}),n}function l(e,t){let o=Object.assign({loader:null,loading:null,delay:200,timeout:null,webpack:null,modules:null},t),l=null;function d(){if(!l){const t=new c(e,o);l={getCurrentValue:t.getCurrentValue.bind(t),subscribe:t.subscribe.bind(t),retry:t.retry.bind(t),promise:t.promise.bind(t)}}return l.promise()}if("undefined"==typeof window&&s.push(d),!a&&"undefined"!=typeof window){const e=o.webpack&&"function"==typeof mc.resolveWeak?o.webpack():o.modules;e&&r.push(t=>{for(const n of e)if(t.includes(n))return d()})}function u(e,t){!function(){d();const e=n.default.useContext(i.LoadableContext);e&&Array.isArray(o.modules)&&o.modules.forEach(t=>{e(t)})}();const s=n.default.useSyncExternalStore(l.subscribe,l.getCurrentValue,l.getCurrentValue);return n.default.useImperativeHandle(t,()=>({retry:l.retry}),[]),n.default.useMemo(()=>{return s.loading||s.error?n.default.createElement(o.loading,{isLoading:s.loading,pastDelay:s.pastDelay,timedOut:s.timedOut,error:s.error,retry:l.retry}):s.loaded?n.default.createElement((t=s.loaded)&&t.default?t.default:t,e):null;var t},[e,s])}return u.preload=()=>d(),u.displayName="LoadableComponent",n.default.forwardRef(u)}class c{constructor(e,t){this._loadFn=e,this._opts=t,this._callbacks=new Set,this._delay=null,this._timeout=null,this.retry()}promise(){return this._res.promise}retry(){this._clearTimeouts(),this._res=this._loadFn(this._opts.loader),this._state={pastDelay:!1,timedOut:!1};const{_res:e,_opts:t}=this;e.loading&&("number"==typeof t.delay&&(0===t.delay?this._state.pastDelay=!0:this._delay=setTimeout(()=>{this._update({pastDelay:!0})},t.delay)),"number"==typeof t.timeout&&(this._timeout=setTimeout(()=>{this._update({timedOut:!0})},t.timeout))),this._res.promise.then(()=>{this._update({}),this._clearTimeouts()}).catch(e=>{this._update({}),this._clearTimeouts()}),this._update({})}_update(e){this._state={...this._state,error:this._res.error,loaded:this._res.loaded,loading:this._res.loading,...e},this._callbacks.forEach(e=>e())}_clearTimeouts(){clearTimeout(this._delay),clearTimeout(this._timeout)}getCurrentValue(){return this._state}subscribe(e){return this._callbacks.add(e),()=>{this._callbacks.delete(e)}}}function d(e){return l(o,e)}function u(e,t){let n=[];for(;e.length;){let i=e.pop();n.push(i(t))}return Promise.all(n).then(()=>{if(e.length)return u(e,t)})}d.preloadAll=()=>new Promise((e,t)=>{u(s).then(e,t)}),d.preloadReady=(e=[])=>new Promise(t=>{const n=()=>(a=!0,t());u(r,e).then(n,n)}),"undefined"!=typeof window&&(window.__NEXT_PRELOADREADY=d.preloadReady);const h=d}(_c)),_c}var Sc=yc?bc:(yc=1,vc||(vc=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{default:function(){return l},noSSR:function(){return o}});const n=pc(),i=_(),s=n._(wc()),r="undefined"==typeof window;function a(e){return{default:e?.default||e}}function o(e,t){if(delete t.webpack,delete t.modules,!r)return e(t);const n=t.loading;return()=>(0,i.jsx)(n,{error:null,isLoading:!0,pastDelay:!1,timedOut:!1})}function l(e,t){let n=s.default,r={loading:({error:e,isLoading:t,pastDelay:n})=>{if(!n)return null;if("production"!==process.env.NODE_ENV){if(t)return null;if(e)return(0,i.jsxs)("p",{children:[e.message,(0,i.jsx)("br",{}),e.stack]})}return null}};e instanceof Promise?r.loader=()=>e:"function"==typeof e?r.loader=e:"object"==typeof e&&(r={...r,...e}),r={...r,...t};const l=r.loader;return r.loadableGenerated&&(r={...r,...r.loadableGenerated},delete r.loadableGenerated),"boolean"!=typeof r.ssr||r.ssr?n({...r,loader:()=>null!=l?l().then(a):Promise.resolve(a(()=>null))}):(delete r.webpack,delete r.modules,o(n,r))}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)}(uc,uc.exports)),bc=uc.exports),Ec=p(Sc);const Nc=r(null);function Cc(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 kc(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,s,r,a,o=[],l=!0,c=!1;try{if(r=(n=n.call(e)).next,0===t);else for(;!(l=(i=r.call(n)).done)&&(o.push(i.value),o.length!==t);l=!0);}catch(e){c=!0,s=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw s}}return o}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Cc(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Cc(e,t):void 0}}(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.")}()}const Tc=Object.entries,jc=Object.setPrototypeOf,Ac=Object.isFrozen,Oc=Object.getPrototypeOf,Lc=Object.getOwnPropertyDescriptor;let Dc=Object.freeze,Mc=Object.seal,$c=Object.create,Pc="undefined"!=typeof Reflect&&Reflect,Ic=Pc.apply,Rc=Pc.construct;Dc||(Dc=function(e){return e}),Mc||(Mc=function(e){return e}),Ic||(Ic=function(e,t){for(var n=arguments.length,i=new Array(n>2?n-2:0),s=2;s<n;s++)i[s-2]=arguments[s];return e.apply(t,i)}),Rc||(Rc=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 zc=ad(Array.prototype.forEach),Fc=ad(Array.prototype.lastIndexOf),Hc=ad(Array.prototype.pop),Bc=ad(Array.prototype.push),Vc=ad(Array.prototype.splice),qc=Array.isArray,Wc=ad(String.prototype.toLowerCase),Uc=ad(String.prototype.toString),Gc=ad(String.prototype.match),Yc=ad(String.prototype.replace),Kc=ad(String.prototype.indexOf),Xc=ad(String.prototype.trim),Zc=ad(Number.prototype.toString),Jc=ad(Boolean.prototype.toString),Qc="undefined"==typeof BigInt?null:ad(BigInt.prototype.toString),ed="undefined"==typeof Symbol?null:ad(Symbol.prototype.toString),td=ad(Object.prototype.hasOwnProperty),nd=ad(Object.prototype.toString),id=ad(RegExp.prototype.test),sd=(rd=TypeError,function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Rc(rd,t)});var rd;function ad(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);for(var n=arguments.length,i=new Array(n>1?n-1:0),s=1;s<n;s++)i[s-1]=arguments[s];return Ic(e,t,i)}}function od(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Wc;if(jc&&jc(e,null),!qc(t))return e;let i=t.length;for(;i--;){let s=t[i];if("string"==typeof s){const e=n(s);e!==s&&(Ac(t)||(t[i]=e),s=e)}e[s]=!0}return e}function ld(e){for(let t=0;t<e.length;t++)td(e,t)||(e[t]=null);return e}function cd(e){const t=$c(null);for(const i of Tc(e)){var n=kc(i,2);const s=n[0],r=n[1];td(e,s)&&(qc(r)?t[s]=ld(r):r&&"object"==typeof r&&r.constructor===Object?t[s]=cd(r):t[s]=r)}return t}function dd(e,t){for(;null!==e;){const n=Lc(e,t);if(n){if(n.get)return ad(n.get);if("function"==typeof n.value)return ad(n.value)}e=Oc(e)}return function(){return null}}const ud=Dc(["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"]),hd=Dc(["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"]),pd=Dc(["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"]),md=Dc(["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"]),fd=Dc(["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"]),gd=Dc(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),vd=Dc(["#text"]),bd=Dc(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","command","commandfor","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"]),yd=Dc(["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","dominant-baseline","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-orientation","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"]),_d=Dc(["accent","accentunder","align","bevelled","close","columnalign","columnlines","columnspacing","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lquote","lspace","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"]),xd=Dc(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),wd=Mc(/{{[\w\W]*|^[\w\W]*}}/g),Sd=Mc(/<%[\w\W]*|^[\w\W]*%>/g),Ed=Mc(/\${[\w\W]*/g),Nd=Mc(/^data-[\-\w.\u00B7-\uFFFF]+$/),Cd=Mc(/^aria-[\-\w]+$/),kd=Mc(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Td=Mc(/^(?:\w+script|data):/i),jd=Mc(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Ad=Mc(/^html$/i),Od=Mc(/^[a-z][.\w]*(-[.\w]+)+$/i),Ld=Mc(/<[/\w!]/g),Dd=Mc(/<[/\w]/g),Md=Mc(/<\/no(script|embed|frames)/i),$d=Mc(/\/>/i),Pd=function(){return"undefined"==typeof window?null:window},Id=function(e,t,n,i){return td(e,t)&&qc(e[t])?od(i.base?cd(i.base):{},e[t],i.transform):n};var Rd=function e(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Pd();const n=t=>e(t);if(n.version="3.4.13",n.removed=[],!t||!t.document||9!==t.document.nodeType||!t.Element)return n.isSupported=!1,n;let i=t.document;const s=i,r=s.currentScript;t.DocumentFragment;const a=t.HTMLTemplateElement,o=t.Node,l=t.Element,c=t.NodeFilter;void 0===t.NamedNodeMap&&(t.NamedNodeMap||t.MozNamedAttrMap),t.HTMLFormElement;const d=t.DOMParser,u=t.trustedTypes,h=l.prototype,p=dd(h,"cloneNode"),m=dd(h,"remove"),f=dd(h,"nextSibling"),g=dd(h,"childNodes"),v=dd(h,"parentNode"),b=dd(h,"shadowRoot"),y=dd(h,"attributes"),_=o&&o.prototype?dd(o.prototype,"nodeType"):null,x=o&&o.prototype?dd(o.prototype,"nodeName"):null,w=o&&o.prototype?dd(o.prototype,"ownerDocument"):null;if("function"==typeof a){const e=i.createElement("template");e.content&&e.content.ownerDocument&&(i=e.content.ownerDocument)}let S,E,N="",C=!1,k=0;const T=function(){if(k>0)throw sd('A configured TRUSTED_TYPES_POLICY callback (createHTML or createScriptURL) must not call DOMPurify.sanitize, as that causes infinite recursion. Do not pass a policy whose callbacks wrap DOMPurify as TRUSTED_TYPES_POLICY; see the "DOMPurify and Trusted Types" section of the README.')},j=function(e){T(),k++;try{return S.createHTML(e)}finally{k--}},A=i,O=A.implementation,L=A.createNodeIterator,D=A.createDocumentFragment,M=A.getElementsByTagName,$=s.importNode;let P={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]};n.isSupported="function"==typeof Tc&&"function"==typeof v&&O&&void 0!==O.createHTMLDocument;const I=wd,R=Sd,z=Ed,F=Nd,H=Cd,B=Td,V=jd,q=Od;let W=kd,U=null;const G=od({},[...ud,...hd,...pd,...fd,...vd]);let Y=null;const K=od({},[...bd,...yd,..._d,...xd]);let X=Object.seal($c(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}})),Z=null,J=null;const Q=Object.seal($c(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let ee=!0,te=!0,ne=!1,ie=!0,se=!1,re=!0,ae=!1,oe=!1,le=null,ce=null,de=!1,ue=!1,he=!1,pe=!1,me=!0,fe=!1;const ge="user-content-";let ve=!0,be=!1,ye={},_e=null;const xe=od({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","selectedcontent","style","svg","template","thead","title","video","xmp"]);let we=null;const Se=od({},["audio","video","img","source","image","track"]);let Ee=null;const Ne=od({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Ce="http://www.w3.org/1998/Math/MathML",ke="http://www.w3.org/2000/svg",Te="http://www.w3.org/1999/xhtml";let je=Te,Ae=!1,Oe=null;const Le=od({},[Ce,ke,Te],Uc),De=Dc(["mi","mo","mn","ms","mtext"]);let Me=od({},De);const $e=Dc(["annotation-xml"]);let Pe=od({},$e);const Ie=od({},["title","style","font","a","script"]);let Re=null;const ze=["application/xhtml+xml","text/html"];let Fe=null,He=null;const Be=i.createElement("form"),Ve=function(e){return e instanceof RegExp||e instanceof Function},qe=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(He&&He===e)return;e&&"object"==typeof e||(e={}),e=cd(e),Re=-1===ze.indexOf(e.PARSER_MEDIA_TYPE)?"text/html":e.PARSER_MEDIA_TYPE,Fe="application/xhtml+xml"===Re?Uc:Wc,U=Id(e,"ALLOWED_TAGS",G,{transform:Fe}),Y=Id(e,"ALLOWED_ATTR",K,{transform:Fe}),Oe=Id(e,"ALLOWED_NAMESPACES",Le,{transform:Uc}),Ee=Id(e,"ADD_URI_SAFE_ATTR",Ne,{transform:Fe,base:Ne}),we=Id(e,"ADD_DATA_URI_TAGS",Se,{transform:Fe,base:Se}),_e=Id(e,"FORBID_CONTENTS",xe,{transform:Fe}),Z=Id(e,"FORBID_TAGS",cd({}),{transform:Fe}),J=Id(e,"FORBID_ATTR",cd({}),{transform:Fe}),ye=!!td(e,"USE_PROFILES")&&(e.USE_PROFILES&&"object"==typeof e.USE_PROFILES?cd(e.USE_PROFILES):e.USE_PROFILES),ee=!1!==e.ALLOW_ARIA_ATTR,te=!1!==e.ALLOW_DATA_ATTR,ne=e.ALLOW_UNKNOWN_PROTOCOLS||!1,ie=!1!==e.ALLOW_SELF_CLOSE_IN_ATTR,se=e.SAFE_FOR_TEMPLATES||!1,re=!1!==e.SAFE_FOR_XML,ae=e.WHOLE_DOCUMENT||!1,ue=e.RETURN_DOM||!1,he=e.RETURN_DOM_FRAGMENT||!1,pe=e.RETURN_TRUSTED_TYPE||!1,de=e.FORCE_BODY||!1,me=!1!==e.SANITIZE_DOM,fe=e.SANITIZE_NAMED_PROPS||!1,ve=!1!==e.KEEP_CONTENT,be=e.IN_PLACE||!1,W=function(e){try{return id(e,""),!0}catch(e){return!1}}(e.ALLOWED_URI_REGEXP)?e.ALLOWED_URI_REGEXP:kd,je="string"==typeof e.NAMESPACE?e.NAMESPACE:Te,Me=td(e,"MATHML_TEXT_INTEGRATION_POINTS")&&e.MATHML_TEXT_INTEGRATION_POINTS&&"object"==typeof e.MATHML_TEXT_INTEGRATION_POINTS?cd(e.MATHML_TEXT_INTEGRATION_POINTS):od({},De),Pe=td(e,"HTML_INTEGRATION_POINTS")&&e.HTML_INTEGRATION_POINTS&&"object"==typeof e.HTML_INTEGRATION_POINTS?cd(e.HTML_INTEGRATION_POINTS):od({},$e);const t=td(e,"CUSTOM_ELEMENT_HANDLING")&&e.CUSTOM_ELEMENT_HANDLING&&"object"==typeof e.CUSTOM_ELEMENT_HANDLING?cd(e.CUSTOM_ELEMENT_HANDLING):$c(null);if(X=$c(null),td(t,"tagNameCheck")&&Ve(t.tagNameCheck)&&(X.tagNameCheck=t.tagNameCheck),td(t,"attributeNameCheck")&&Ve(t.attributeNameCheck)&&(X.attributeNameCheck=t.attributeNameCheck),td(t,"allowCustomizedBuiltInElements")&&"boolean"==typeof t.allowCustomizedBuiltInElements&&(X.allowCustomizedBuiltInElements=t.allowCustomizedBuiltInElements),Mc(X),se&&(te=!1),he&&(ue=!0),ye&&(U=od({},vd),Y=$c(null),!0===ye.html&&(od(U,ud),od(Y,bd)),!0===ye.svg&&(od(U,hd),od(Y,yd),od(Y,xd)),!0===ye.svgFilters&&(od(U,pd),od(Y,yd),od(Y,xd)),!0===ye.mathMl&&(od(U,fd),od(Y,_d),od(Y,xd))),Q.tagCheck=null,Q.attributeCheck=null,td(e,"ADD_TAGS")&&("function"==typeof e.ADD_TAGS?Q.tagCheck=e.ADD_TAGS:qc(e.ADD_TAGS)&&(U===G&&(U=cd(U)),od(U,e.ADD_TAGS,Fe))),td(e,"ADD_ATTR")&&("function"==typeof e.ADD_ATTR?Q.attributeCheck=e.ADD_ATTR:qc(e.ADD_ATTR)&&(Y===K&&(Y=cd(Y)),od(Y,e.ADD_ATTR,Fe))),td(e,"ADD_URI_SAFE_ATTR")&&qc(e.ADD_URI_SAFE_ATTR)&&od(Ee,e.ADD_URI_SAFE_ATTR,Fe),td(e,"FORBID_CONTENTS")&&qc(e.FORBID_CONTENTS)&&(_e===xe&&(_e=cd(_e)),od(_e,e.FORBID_CONTENTS,Fe)),td(e,"ADD_FORBID_CONTENTS")&&qc(e.ADD_FORBID_CONTENTS)&&(_e===xe&&(_e=cd(_e)),od(_e,e.ADD_FORBID_CONTENTS,Fe)),ve&&(U["#text"]=!0),ae&&od(U,["html","head","body"]),U.table&&(od(U,["tbody"]),delete Z.tbody),e.TRUSTED_TYPES_POLICY){if("function"!=typeof e.TRUSTED_TYPES_POLICY.createHTML)throw sd('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof e.TRUSTED_TYPES_POLICY.createScriptURL)throw sd('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');const t=S;S=e.TRUSTED_TYPES_POLICY;try{N=j("")}catch(e){throw S=t,e}}else null===e.TRUSTED_TYPES_POLICY?(S=void 0,N=""):(void 0===S&&(C||(E=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 s="dompurify"+(n?"#"+n:"");try{return e.createPolicy(s,{createHTML:e=>e,createScriptURL:e=>e})}catch(e){return null}}(u,r),C=!0),S=E),S&&"string"==typeof N&&(N=j("")));Dc&&Dc(e),He=e},We=od({},[...hd,...pd,...md]),Ue=od({},[...fd,...gd]),Ge=function(e){Bc(n.removed,{element:e});try{v(e).removeChild(e)}catch(t){if(m(e),!v(e))throw sd("a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place")}},Ye=function(e){Ze(e);const t=g(e);if(t){const e=[];zc(t,t=>{Bc(e,t)}),zc(e,e=>{try{m(e)}catch(e){}})}const n=y(e);if(n)for(let t=n.length-1;t>=0;--t){const i=n[t],s=i&&i.name;if("string"==typeof s)try{e.removeAttribute(s)}catch(e){}}},Ke=function(e,t){try{Bc(n.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){Bc(n.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e)if(ue||he)try{Ge(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}},Xe=function(e){const t=y(e);if(t)for(let n=t.length-1;n>=0;--n){const i=t[n],s=i&&i.name;if("string"==typeof s&&!Y[Fe(s)])try{e.removeAttribute(s)}catch(e){}}},Ze=function(e){const t=[e];for(;t.length>0;){const e=t.pop();1===(_?_(e):e.nodeType)&&Xe(e);const n=g(e);if(n)for(let e=n.length-1;e>=0;--e)t.push(n[e])}},Je=function(e){let t=null,n=null;if(de)e="<remove></remove>"+e;else{const t=Gc(e,/^[\r\n\t ]+/);n=t&&t[0]}"application/xhtml+xml"===Re&&je===Te&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");const s=S?j(e):e;if(je===Te)try{t=(new d).parseFromString(s,Re)}catch(e){}if(!t||!t.documentElement){t=O.createDocument(je,"template",null);try{t.documentElement.innerHTML=Ae?N:s}catch(e){}}const r=t.body||t.documentElement;return e&&n&&r.insertBefore(i.createTextNode(n),r.childNodes[0]||null),je===Te?M.call(t,ae?"html":"body")[0]:ae?t.documentElement:r},Qe=function(e){const t=w?w(e):e.ownerDocument;return L.call(t||e,e,c.SHOW_ELEMENT|c.SHOW_COMMENT|c.SHOW_TEXT|c.SHOW_PROCESSING_INSTRUCTION|c.SHOW_CDATA_SECTION,null)},et=function(e){return e=Yc(e,I," "),e=Yc(e,R," "),Yc(e,z," ")},tt=function(e){var t;e.normalize();const n=w?w(e):e.ownerDocument,i=L.call(n||e,e,c.SHOW_TEXT|c.SHOW_COMMENT|c.SHOW_CDATA_SECTION|c.SHOW_PROCESSING_INSTRUCTION,null);let s=i.nextNode();for(;s;)s.data=et(s.data),s=i.nextNode();const r=null===(t=e.querySelectorAll)||void 0===t?void 0:t.call(e,"template");r&&zc(r,e=>{it(e.content)&&tt(e.content)})},nt=function(e){const t=x?x(e):null;return"string"==typeof t&&"form"===Fe(t)&&("string"!=typeof e.nodeName||"string"!=typeof e.textContent||"function"!=typeof e.removeChild||e.attributes!==y(e)||"function"!=typeof e.removeAttribute||"function"!=typeof e.setAttribute||"string"!=typeof e.namespaceURI||"function"!=typeof e.insertBefore||"function"!=typeof e.hasChildNodes||e.nodeType!==_(e)||e.childNodes!==g(e))},it=function(e){if(!_||"object"!=typeof e||null===e)return!1;try{return 11===_(e)}catch(e){return!1}},st=function(e){if(!_||"object"!=typeof e||null===e)return!1;try{return"number"==typeof _(e)}catch(e){return!1}};function rt(e,t,i){0!==e.length&&zc(e,e=>{e.call(n,t,i,He)})}const at=function(e,t,n,i){return 0===e.length?t:t===n||t===i?cd(t):t},ot=function(e,t){if(rt(P.beforeSanitizeElements,e,null),e!==t&&null===v(e))return be&&Ze(e),!0;if(nt(e))return Ge(e),!0;const i=Fe(x?x(e):e.nodeName);if(U=at(P.uponSanitizeElement,U,G,le),rt(P.uponSanitizeElement,e,{tagName:i,allowedTags:U}),e!==t&&null===v(e))return be&&Ze(e),!0;if(function(e,t){return!!(re&&e.hasChildNodes()&&!st(e.firstElementChild)&&id(Ld,e.textContent)&&id(Ld,e.innerHTML))||!(!re||e.namespaceURI!==Te||"style"!==t||!st(e.firstElementChild))||7===e.nodeType||!(!re||8!==e.nodeType||!id(Dd,e.data))}(e,i))return Ge(e),!0;if(Z[i]||!(Q.tagCheck instanceof Function&&Q.tagCheck(i))&&!U[i]){const n=function(e,t,n){if(!Z[t]&&dt(t)){if(X.tagNameCheck instanceof RegExp&&id(X.tagNameCheck,t))return!1;if(X.tagNameCheck instanceof Function&&X.tagNameCheck(t))return!1}if(ve&&!_e[t]){const t=v(e),i=g(e);if(i&&t)for(let s=i.length-1;s>=0;--s){const r=e===n?p(i[s],!0):i[s];t.insertBefore(r,f(e))}}return Ge(e),!0}(e,i,t);return!1===n&&rt(P.afterSanitizeElements,e,null),n}if(1===(_?_(e):e.nodeType)&&!function(e){let t=v(e);t&&t.tagName||(t={namespaceURI:je,tagName:"template"});const n=Wc(e.tagName),i=Wc(t.tagName);return!!Oe[e.namespaceURI]&&(e.namespaceURI===ke?function(e,t,n){return t.namespaceURI===Te?"svg"===e:t.namespaceURI===Ce?"svg"===e&&("annotation-xml"===n||Me[n]):Boolean(We[e])}(n,t,i):e.namespaceURI===Ce?function(e,t,n){return t.namespaceURI===Te?"math"===e:t.namespaceURI===ke?"math"===e&&Pe[n]:Boolean(Ue[e])}(n,t,i):e.namespaceURI===Te?function(e,t,n){return!(t.namespaceURI===ke&&!Pe[n])&&!(t.namespaceURI===Ce&&!Me[n])&&!Ue[e]&&(Ie[e]||!We[e])}(n,t,i):!("application/xhtml+xml"!==Re||!Oe[e.namespaceURI]))}(e))return Ge(e),!0;if(("noscript"===i||"noembed"===i||"noframes"===i)&&id(Md,e.innerHTML))return Ge(e),!0;if(se&&3===e.nodeType){const t=et(e.textContent);e.textContent!==t&&(Bc(n.removed,{element:e.cloneNode()}),e.textContent=t)}return rt(P.afterSanitizeElements,e,null),!1},lt=function(e,t,n){if(J[t])return!1;if(re&&"patchsrc"===t)return!1;if(re&&"for"===t&&"label"!==e&&"output"!==e)return!1;if(me&&("id"===t||"name"===t)&&(n in i||n in Be))return!1;const s=Y[t]||Q.attributeCheck instanceof Function&&Q.attributeCheck(t,e);if(te&&id(F,t));else if(ee&&id(H,t));else if(s){if(Ee[t]);else if(id(W,Yc(n,V,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==Kc(n,"data:")||!we[e])if(ne&&!id(B,Yc(n,V,"")));else if(n)return!1}else if(!(dt(e)&&(X.tagNameCheck instanceof RegExp&&id(X.tagNameCheck,e)||X.tagNameCheck instanceof Function&&X.tagNameCheck(e))&&(X.attributeNameCheck instanceof RegExp&&id(X.attributeNameCheck,t)||X.attributeNameCheck instanceof Function&&X.attributeNameCheck(t,e))||"is"===t&&X.allowCustomizedBuiltInElements&&(X.tagNameCheck instanceof RegExp&&id(X.tagNameCheck,n)||X.tagNameCheck instanceof Function&&X.tagNameCheck(n))))return!1;return!0},ct=od({},["annotation-xml","color-profile","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","missing-glyph"]),dt=function(e){return!ct[Wc(e)]&&id(q,e)},ut=function(e,t,n,i){if(S&&"object"==typeof u&&"function"==typeof u.getAttributeType&&!n)switch(u.getAttributeType(e,t)){case"TrustedHTML":return j(i);case"TrustedScriptURL":return function(e){T(),k++;try{return S.createScriptURL(e)}finally{k--}}(i)}return i},ht=function(e,t,i,s){try{i?e.setAttributeNS(i,t,s):e.setAttribute(t,s),nt(e)?Ge(e):Hc(n.removed)}catch(n){Ke(t,e)}},pt=function(e){rt(P.beforeSanitizeAttributes,e,null);const t=e.attributes;if(!t||nt(e))return;Y=at(P.uponSanitizeAttribute,Y,K,ce);const n={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:Y,forceKeepAttr:void 0};let i=t.length;const s=Fe(e.nodeName);for(;i--;){const r=t[i],a=r.name,o=r.namespaceURI,l=r.value,c=Fe(a),d=l;let u="value"===a?d:Xc(d);n.attrName=c,n.attrValue=u,n.keepAttr=!0,n.forceKeepAttr=void 0,rt(P.uponSanitizeAttribute,e,n),u=n.attrValue,!fe||"id"!==c&&"name"!==c||0===Kc(u,ge)||(Ke(a,e),u=ge+u),re&&id(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,u)||"attributename"===c&&Gc(u,"href")?Ke(a,e):n.forceKeepAttr||(!n.keepAttr||!ie&&id($d,u)?Ke(a,e):(se&&(u=et(u)),lt(s,c,u)?(u=ut(s,c,o,u),u!==d&&ht(e,a,o,u)):Ke(a,e)))}rt(P.afterSanitizeAttributes,e,null)},mt=function(e){let t=null;const n=Qe(e);for(rt(P.beforeSanitizeShadowDOM,e,null);t=n.nextNode();)if(rt(P.uponSanitizeShadowNode,t,null),ot(t,e),pt(t),it(t.content)&&mt(t.content),1===(_?_(t):t.nodeType)){const e=b(t);it(e)&&(ft(e),mt(e))}rt(P.afterSanitizeShadowDOM,e,null)},ft=function(e){const t=[{node:e,shadow:null}];for(;t.length>0;){const e=t.pop();if(e.shadow){mt(e.shadow);continue}const n=e.node,i=1===(_?_(n):n.nodeType),s=g(n);if(s)for(let e=s.length-1;e>=0;--e)t.push({node:s[e],shadow:null});if(i){const e=x?x(n):null;if("string"==typeof e&&"template"===Fe(e)){const e=n.content;it(e)&&t.push({node:e,shadow:null})}}if(i){const e=b(n);it(e)&&t.push({node:null,shadow:e},{node:e,shadow:null})}}};return n.sanitize=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=null,r=null,a=null,o=null;if(Ae=!e,Ae&&(e="\x3c!--\x3e"),"string"!=typeof e&&!st(e)&&"string"!=typeof(e=function(e){switch(typeof e){case"string":return e;case"number":return Zc(e);case"boolean":return Jc(e);case"bigint":return Qc?Qc(e):"0";case"symbol":return ed?ed(e):"Symbol()";case"undefined":default:return nd(e);case"function":case"object":{if(null===e)return nd(e);const t=e,n=dd(t,"toString");if("function"==typeof n){const e=n(t);return"string"==typeof e?e:nd(e)}return nd(e)}}}(e)))throw sd("dirty is not a string, aborting");if(!n.isSupported)return e;oe?(U=le,Y=ce):qe(t),(P.uponSanitizeElement.length>0||P.uponSanitizeAttribute.length>0)&&(U=cd(U)),P.uponSanitizeAttribute.length>0&&(Y=cd(Y)),n.removed=[];const l=be&&"string"!=typeof e&&st(e);if(l){!function(e){if(!re)return;const t=[e];for(;t.length>0;){const e=t.pop(),n=_?_(e):e.nodeType;if(7===n||8===n&&id(Dd,e.data)){try{m(e)}catch(e){}continue}if(1===n){const t=e,n=Fe(x?x(e):e.nodeName);try{t.hasAttribute&&t.hasAttribute("patchsrc")&&t.removeAttribute("patchsrc"),t.hasAttribute&&t.hasAttribute("for")&&"label"!==n&&"output"!==n&&t.removeAttribute("for")}catch(e){}}const i=g(e);if(i)for(let e=i.length-1;e>=0;--e)t.push(i[e])}}(e);const t=x?x(e):e.nodeName;if("string"==typeof t){const n=Fe(t);if(!U[n]||Z[n])throw Ye(e),sd("root node is forbidden and cannot be sanitized in-place")}if(nt(e))throw Ye(e),sd("root node is clobbered and cannot be sanitized in-place");try{ft(e)}catch(t){throw Ye(e),t}}else if(st(e))i=Je("\x3c!----\x3e"),r=i.ownerDocument.importNode(e,!0),1===r.nodeType&&"BODY"===r.nodeName||"HTML"===r.nodeName?i=r:i.appendChild(r),ft(r);else{if(!ue&&!se&&!ae&&-1===e.indexOf("<"))return S&&pe?j(e):e;if(i=Je(e),!i)return ue?null:pe?N:""}i&&de&&Ge(i.firstChild);const c=l?e:i;try{const e=Qe(c);for(;a=e.nextNode();)ot(a,c),pt(a),it(a.content)&&mt(a.content)}catch(t){throw l&&(Ye(e),zc(n.removed,e=>{e.element&&Ze(e.element)})),t}if(l)return zc(n.removed,e=>{e.element&&Ze(e.element)}),se&&tt(e),e;if(ue){if(se&&tt(i),he)for(o=D.call(i.ownerDocument);i.firstChild;)o.appendChild(i.firstChild);else o=i;return(Y.shadowroot||Y.shadowrootmode)&&(o=$.call(s,o,!0)),o}let d=ae?i.outerHTML:i.innerHTML;return ae&&U["!doctype"]&&i.ownerDocument&&i.ownerDocument.doctype&&i.ownerDocument.doctype.name&&id(Ad,i.ownerDocument.doctype.name)&&(d="<!DOCTYPE "+i.ownerDocument.doctype.name+">\n"+d),se&&(d=et(d)),S&&pe?j(d):d},n.setConfig=function(){qe(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),oe=!0,le=U,ce=Y},n.clearConfig=function(){He=null,oe=!1,le=null,ce=null,S=E,N=""},n.isValidAttribute=function(e,t,n){He||qe({});const i=Fe(e),s=Fe(t);return lt(i,s,n)},n.addHook=function(e,t){"function"==typeof t&&td(P,e)&&Bc(P[e],t)},n.removeHook=function(e,t){if(td(P,e)){if(void 0!==t){const n=Fc(P[e],t);return-1===n?void 0:Vc(P[e],n,1)[0]}return Hc(P[e])}},n.removeHooks=function(e){td(P,e)&&(P[e]=[])},n.removeAllHooks=function(){P={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},n}();const zd={dragDropClassname:"is-dragdrop",inputSelector:'input[type="file"]',resultsSelector:".file-input__files",deleteButtonSelector:"[data-file-delete]",deleteFileAttr:"data-file-delete",fileTemplate:(e,t)=>`\n <li>${e} <button type="button" data-file-delete="${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 ${e}</span>\n </button>\n </li>\n `};class Fd{constructor(e,t){return this.element=e,this.config={...zd,...t},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}init(){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(e=>{this.element.addEventListener(e,this.preventDefaults,!1),document.body.addEventListener(e,this.preventDefaults,!1)}),["dragenter","dragover"].forEach(e=>{this.element.addEventListener(e,this.highlight,!1)}),["dragleave","drop"].forEach(e=>{this.element.addEventListener(e,this.unhighlight,!1)}),this.element.addEventListener("drop",this.onDrop))}onInputChange(){return!(!this.input||!this.results)&&(this.files=Array.from(this.input.files??[]),!!this.files&&(this.results.innerHTML="",this.files.map((e,t)=>this.config.fileTemplate(Rd.sanitize(e.name,{ALLOWED_TAGS:[]}),t)).forEach(e=>{this.results.appendChild(Rd.sanitize(e,{ADD_TAGS:["use"],RETURN_DOM_FRAGMENT:!0}))}),this.removeButtons=Array.from(this.results.querySelectorAll(this.config.deleteButtonSelector)),void this.removeButtons.forEach(e=>e.addEventListener("click",this.onRemoveButtonClick))))}onDrop(e){this.input&&(this.input.files=e?.dataTransfer?.files||(new DataTransfer).files,this.onInputChange())}onRemoveButtonClick(e){if(!this.input)return;const t=new DataTransfer,n=e.currentTarget,i=Number(n.getAttribute(this.config.deleteFileAttr));this.files.splice(i,1),this.files.forEach(e=>t.items.add(e)),this.input.files=t.files,this.onInputChange()}highlight(){this.element.classList.add(this.config.dragDropClassname)}unhighlight(){this.element.classList.remove(this.config.dragDropClassname)}preventDefaults(e){e.preventDefault(),e.stopPropagation()}destroy(){this.input&&(this.input.removeEventListener("change",this.onInputChange),["dragenter","dragover","dragleave","drop"].forEach(e=>{this.element.removeEventListener(e,this.preventDefaults,!1),document.body.removeEventListener(e,this.preventDefaults,!1)}),["dragenter","dragover"].forEach(e=>{this.element.removeEventListener(e,this.highlight,!1)}),["dragleave","drop"].forEach(e=>{this.element.removeEventListener(e,this.unhighlight,!1)}),this.element.removeEventListener("drop",this.onDrop))}update(){this.destroy(),this.init()}}const Hd="file-input",Bd="default",Vd=({id:e,isDisabled:t,isInvalid:n,name:i,size:s=Bd,className:r,...a})=>{const[o]=j(Fd),l=O(e),c=C(Hd,{[`${Hd}--${s}`]:s!==Bd},r);return S.jsxs("div",{className:c,"data-file-input":!0,ref:o,children:[S.jsx("input",{className:`${Hd}__control`,id:l,name:i||e,disabled:t,type:"file",...a}),S.jsx("label",{size:s,htmlFor:l,"aria-hidden":"true",className:`${Hd}__button`,children:"Vybrať súbor"}),S.jsx("ul",{className:`${Hd}__files`})]})};Vd.displayName="File";const qd="text-input",Wd="default",Ud="default",Gd=e.forwardRef(({className:e,id:t,isDisabled:n,isInvalid:i,isValid:s,isReadonly:r,placeholder:a,size:o=Wd,htmlType:l="text",width:c=Ud,searchIcon:d="none",name:u,...h},p)=>{const m="transient"===d,f="persistent"===d,g=C(qd,{"is-invalid":i,"is-valid":s,[`${qd}--${o}`]:o!==Wd,[`${qd}--${c}`]:c!==Ud},e),v=u||t,b=S.jsx("input",{className:g,id:t,name:v,type:l,disabled:n,readOnly:r,placeholder:a,ref:p,...h});return m||f?S.jsx("span",{className:C("text-input__wrapper",{"text-input__wrapper--search-icon":m,"text-input__wrapper--search-icon-with-placeholder":f}),children:b}):b});Gd.displayName="TextInput";const Yd="control-group__item",Kd="default",Xd=({size:e=Kd,className:t,children:n,...i})=>{const s=C(Yd,t,{[`${Yd}--${e}`]:e!==Kd});return S.jsx("div",{className:s,...i,children:n})};Xd.displayName="GroupItem";const Zd=({control:t,addonPrefix:n,addonSuffix:i,size:s,className:r,isInvalid:a,...o})=>{const{type:l,...c}=t,d=t=>e.Children.map(t,t=>{if("string"==typeof t)return S.jsx(Xd,{size:s,children:t});if(e.isValidElement(t)){const n=t.type,i="string"==typeof n;if(i&&(!i||"button"!==n&&"a"!==n))return S.jsx(Xd,{size:s,children:t});const r=t.props&&"object"==typeof t.props&&"size"in t.props?{}:{size:s};return e.cloneElement(t,r)}return t});return S.jsxs("div",{className:C("control-group",r),...o,children:[d(n),S.jsx(e=>{switch(l){case"autocomplete":return S.jsx(ho,{...e});case"select":return S.jsx(oo,{...e});default:return S.jsx(Gd,{...e})}},{...c,size:s}),d(i)]})};Zd.displayName="ControlGroup";const Jd={nonEditableInput:!1,min:1,max:999,defaultValue:1};class Qd{constructor(e,t){this.element=e,this.config={...Jd,...t},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()}handleInputClick(){this.input&&this.input.select()}handleButtonState(){const{min:e,max:t}=this.config,n=this.config.nonEditableInput?parseInt(this.numberDisplay?.textContent??"0",10):parseInt(this.input?.value??"0",10);this.add&&"number"==typeof t&&n>=t?(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 e&&n<=e?(this.remove.setAttribute("aria-disabled","true"),this.remove.setAttribute("disabled","true")):this.remove&&(this.remove.removeAttribute("aria-disabled"),this.remove.removeAttribute("disabled"))}handleInputChange(e){const{min:t,max:n}=this.config,i=e.target;i&&(t&&Number(i.value)<=t&&(i.value=String(t)),n&&Number(i.value)>=n&&(i.value=String(n)))}handleButtonClick(e){const{min:t,max:n}=this.config,i=e.target;let s=this.config.nonEditableInput?parseInt(this.numberDisplay?.textContent??"0",10):parseInt(this.input?.value??"0",10);if(i.classList.contains("input-stepper__button--minus")){if(t&&s<=t){if("true"===i.getAttribute("disabled"))return;return i.setAttribute("aria-disabled","true"),void i.setAttribute("disabled","true")}s-=1}if(i.classList.contains("input-stepper__button--plus")){if(n&&s>=n){if("true"===i.getAttribute("disabled"))return;return i.setAttribute("aria-disabled","true"),void i.setAttribute("disabled","true")}s+=1}!this.config.nonEditableInput&&this.input?this.input.value=String(s):this.numberDisplay&&(this.numberDisplay.textContent=String(s)),this.handleButtonState()}init(){const e=this.element.getAttribute("data-inputstepper");let t={};try{e&&e.trim().startsWith("{")&&(t=JSON.parse(e))}catch{t={}}this.config={...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");const{defaultValue:n}=this.config;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())}update(){this.destroy(),this.init()}destroy(){!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)}static getInstance(e){return e&&e.ODS_InputStepper?e.ODS_InputStepper:null}}const eu="input-stepper",tu=({className:e,inputClassName:t,id:n,config:i,isDisabled:s,isInvalid:r,nonEditableInput:a=!1,...o})=>{const[l]=j(Qd,{nonEditableInput:a}),{name:c=n,...d}=o,u=C(`${eu}__field`,t);return S.jsxs("div",{className:C(eu,e,{[`${eu}--disabled`]:s,[`${eu}--invalid`]:r}),ref:l,"data-inputstepper":!i||JSON.stringify(i),...d,children:[S.jsx("button",{disabled:s,className:`${eu}__button ${eu}__button--minus`,"aria-label":"znížiť počet"}),a||i?.nonEditableInput?S.jsx("p",{id:n,className:`${eu}__number`}):S.jsx(Gd,{className:u,id:n,name:c,disabled:s,isInvalid:r,htmlType:"number",inputMode:"numeric"}),S.jsx("button",{disabled:s,className:`${eu}__button ${eu}__button--plus`,"aria-label":"zvýšiť počet"})]})};tu.displayName="InputStepper";const nu="radio",iu="default",su=({id:e,isChecked:t,isDisabled:n,isInvalid:i,name:s,size:r=iu,value:a,className:o,...l})=>{const c=C(nu,o,{[`${nu}--${r}`]:r!==iu,"is-invalid":i}),d=a||e;return S.jsxs(S.Fragment,{children:[S.jsx("input",{className:c,type:"radio",id:e,name:s,defaultChecked:t,disabled:n,value:d,...l}),S.jsx("div",{className:`${nu}-display`})]})};var ru,au;function ou(e){return"object"==typeof e&&"function"==typeof e.to}function lu(e){e.parentElement.removeChild(e)}function cu(e){return null!=e}function du(e){e.preventDefault()}function uu(e){return"number"==typeof e&&!isNaN(e)&&isFinite(e)}function hu(e,t,n){n>0&&(gu(e,t),setTimeout(function(){vu(e,t)},n))}function pu(e){return Math.max(Math.min(e,100),0)}function mu(e){return Array.isArray(e)?e:[e]}function fu(e){var t=(e=String(e)).split(".");return t.length>1?t[1].length:0}function gu(e,t){e.classList&&!/\s/.test(t)?e.classList.add(t):e.className+=" "+t}function vu(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 bu(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 yu(e,t){return 100/(t-e)}function _u(e,t,n){return 100*t/(e[n+1]-e[n])}function xu(e,t){for(var n=1;e>=t[n];)n+=1;return n}su.displayName="Radio",function(e){e.Range="range",e.Steps="steps",e.Positions="positions",e.Count="count",e.Values="values"}(ru||(ru={})),function(e){e[e.None=-1]="None",e[e.NoValue=0]="NoValue",e[e.LargeValue=1]="LargeValue",e[e.SmallValue=2]="SmallValue"}(au||(au={}));var wu=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 s=[];for(Object.keys(e).forEach(function(t){s.push([mu(e[t]),t])}),s.sort(function(e,t){return e[0][0]-t[0][0]}),i=0;i<s.length;i++)this.handleEntryPoint(s[i][1],s[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]=_u(this.xVal,e,n);return t},e.prototype.getAbsoluteDistance=function(e,t,n){var i,s=0;if(e<this.xPct[this.xPct.length-1])for(;e>this.xPct[s+1];)s++;else e===this.xPct[this.xPct.length-1]&&(s=this.xPct.length-2);n||e!==this.xPct[s+1]||s++,null===t&&(t=[]);var r=1,a=t[s],o=0,l=0,c=0,d=0;for(i=n?(e-this.xPct[s])/(this.xPct[s+1]-this.xPct[s]):(this.xPct[s+1]-e)/(this.xPct[s+1]-this.xPct[s]);a>0;)o=this.xPct[s+1+d]-this.xPct[s+d],t[s+d]*r+100-100*i>100?(l=o*i,r=(a-100*i)/t[s+d],i=1):(l=t[s+d]*o/100*r,r=0),n?(c-=l,this.xPct.length+d>=1&&d--):(c+=l,this.xPct.length-d>=1&&d++),a=t[s+d]*r;return e+c},e.prototype.toStepping=function(e){return function(e,t,n){if(n>=e.slice(-1)[0])return 100;var i=xu(n,e),s=e[i-1],r=e[i],a=t[i-1],o=t[i];return a+function(e,t){return _u(e,e[0]<0?t+Math.abs(e[0]):t-e[0],0)}([s,r],n)/yu(a,o)}(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=xu(n,t),s=e[i-1],r=e[i],a=t[i-1];return function(e,t){return t*(e[1]-e[0])/100+e[0]}([s,r],(n-a)*yu(a,t[i]))}(this.xVal,this.xPct,e)},e.prototype.getStep=function(e){return function(e,t,n,i){if(100===i)return i;var s=xu(i,e),r=e[s-1],a=e[s];return n?i-r>(a-r)/2?a:r:t[s-1]?e[s-1]+function(e,t){return Math.round(e/t)*t}(i-e[s-1],t[s-1]):i}(this.xPct,this.xSteps,this.snap,e)},e.prototype.getDefaultStep=function(e,t,n){var i=xu(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=xu(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(fu);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(!uu(n="min"===e?0:"max"===e?100:parseFloat(e))||!uu(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]=_u([this.xVal[e],this.xVal[e+1]],t,0)/yu(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),s=this.xVal[e]+this.xNumSteps[e]*i;this.xHighestCompleteStep[e]=s}else this.xSteps[e]=this.xHighestCompleteStep[e]=this.xVal[e]},e}(),Su={to:function(e){return void 0===e?"":e.toFixed(2)},from:Number},Eu={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"},Nu=".__tooltips",Cu=".__aria";function ku(e,t){if(!uu(t))throw new Error("noUiSlider: 'step' is not numeric.");e.singleStep=t}function Tu(e,t){if(!uu(t))throw new Error("noUiSlider: 'keyboardPageMultiplier' is not numeric.");e.keyboardPageMultiplier=t}function ju(e,t){if(!uu(t))throw new Error("noUiSlider: 'keyboardMultiplier' is not numeric.");e.keyboardMultiplier=t}function Au(e,t){if(!uu(t))throw new Error("noUiSlider: 'keyboardDefaultStep' is not numeric.");e.keyboardDefaultStep=t}function Ou(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 wu(t,e.snap||!1,e.singleStep)}function Lu(e,t){if(t=mu(t),!Array.isArray(t)||!t.length)throw new Error("noUiSlider: 'start' option is incorrect.");e.handles=t.length,e.start=t}function Du(e,t){if("boolean"!=typeof t)throw new Error("noUiSlider: 'snap' option must be a boolean.");e.snap=t}function Mu(e,t){if("boolean"!=typeof t)throw new Error("noUiSlider: 'animate' option must be a boolean.");e.animate=t}function $u(e,t){if("number"!=typeof t)throw new Error("noUiSlider: 'animationDuration' option must be a number.");e.animationDuration=t}function Pu(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 Iu(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 Ru(e,t){if(!uu(t))throw new Error("noUiSlider: 'margin' option must be numeric.");0!==t&&(e.margin=e.spectrum.getDistance(t))}function zu(e,t){if(!uu(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 Fu(e,t){var n;if(!uu(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&&!uu(t[0])&&!uu(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],s=e.spectrum.xVal[0];if(i/(e.spectrum.xVal[e.spectrum.xVal.length-1]-s)>1)throw new Error("noUiSlider: 'padding' option must not exceed 100% of the range.")}}function Hu(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 Bu(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,s=t.indexOf("fixed")>=0,r=t.indexOf("snap")>=0,a=t.indexOf("hover")>=0,o=t.indexOf("unconstrained")>=0,l=t.indexOf("invert-connects")>=0,c=t.indexOf("drag-all")>=0,d=t.indexOf("smooth-steps")>=0;if(s){if(2!==e.handles)throw new Error("noUiSlider: 'fixed' behaviour must be used with 2 handles");Ru(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(o&&(e.margin||e.limit))throw new Error("noUiSlider: 'unconstrained' behaviour cannot be used with margin or limit");e.events={tap:n||r,drag:i,dragAll:c,smoothSteps:d,fixed:s,snap:r,hover:a,unconstrained:o,invertConnects:l}}function Vu(e,t){if(!1!==t)if(!0===t||ou(t)){e.tooltips=[];for(var n=0;n<e.handles;n++)e.tooltips.push(t)}else{if((t=mu(t)).length!==e.handles)throw new Error("noUiSlider: must pass a formatter for all handles.");t.forEach(function(e){if("boolean"!=typeof e&&!ou(e))throw new Error("noUiSlider: 'tooltips' must be passed a formatter or 'false'.")}),e.tooltips=t}}function qu(e,t){if(t.length!==e.handles)throw new Error("noUiSlider: must pass a attributes for all handles.");e.handleAttributes=t}function Wu(e,t){if(!ou(t))throw new Error("noUiSlider: 'ariaFormat' requires 'to' method.");e.ariaFormat=t}function Uu(e,t){if(!function(e){return ou(e)&&"function"==typeof e.from}(t))throw new Error("noUiSlider: 'format' requires 'to' and 'from' methods.");e.format=t}function Gu(e,t){if("boolean"!=typeof t)throw new Error("noUiSlider: 'keyboardSupport' option must be a boolean.");e.keyboardSupport=t}function Yu(e,t){e.documentElement=t}function Ku(e,t){if("string"!=typeof t&&!1!==t)throw new Error("noUiSlider: 'cssPrefix' must be a string or `false`.");e.cssPrefix=t}function Xu(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 Zu(e){var t={margin:null,limit:null,padding:null,animate:!0,animationDuration:300,ariaFormat:Su,format:Su},n={step:{r:!1,t:ku},keyboardPageMultiplier:{r:!1,t:Tu},keyboardMultiplier:{r:!1,t:ju},keyboardDefaultStep:{r:!1,t:Au},start:{r:!0,t:Lu},connect:{r:!0,t:Pu},direction:{r:!0,t:Hu},snap:{r:!1,t:Du},animate:{r:!1,t:Mu},animationDuration:{r:!1,t:$u},range:{r:!0,t:Ou},orientation:{r:!1,t:Iu},margin:{r:!1,t:Ru},limit:{r:!1,t:zu},padding:{r:!1,t:Fu},behaviour:{r:!0,t:Bu},ariaFormat:{r:!1,t:Wu},format:{r:!1,t:Uu},tooltips:{r:!1,t:Vu},keyboardSupport:{r:!0,t:Gu},documentElement:{r:!1,t:Yu},cssPrefix:{r:!0,t:Ku},cssClasses:{r:!0,t:Xu},handleAttributes:{r:!1,t:qu}},i={connect:!1,direction:"ltr",behaviour:"tap",orientation:"horizontal",keyboardSupport:!0,cssPrefix:"noUi-",cssClasses:Eu,keyboardPageMultiplier:5,keyboardMultiplier:1,keyboardDefaultStep:10};e.format&&!e.ariaFormat&&(e.ariaFormat=e.format),Object.keys(n).forEach(function(s){if(cu(e[s])||void 0!==i[s])n[s].t(t,cu(e[s])?e[s]:i[s]);else if(n[s].r)throw new Error("noUiSlider: '"+s+"' is required.")}),t.pips=e.pips;var s=document.createElement("div"),r=void 0!==s.style.msTransform,a=void 0!==s.style.transform;return t.transformRule=a?"transform":r?"msTransform":"webkitTransform",t.style=[["left","top"],["right","bottom"]][t.dir][t.ort],t}function Ju(e,t,n){var i,s,r,a,o,l,c,d=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"},u=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}(),h=e,p=t.spectrum,m=[],f=[],g=[],v=0,b={},y=!1,_=e.ownerDocument,x=t.documentElement||_.documentElement,w=_.body,S="rtl"===_.dir||1===t.ort?0:100;function E(e,t){var n=_.createElement("div");return t&&gu(n,t),e.appendChild(n),n}function N(e,n){var i=E(e,t.cssClasses.origin),s=E(i,t.cssClasses.handle);if(E(s,t.cssClasses.touchArea),s.setAttribute("data-handle",String(n)),t.keyboardSupport&&(s.setAttribute("tabindex","0"),s.addEventListener("keydown",function(e){return function(e,n){if(T()||j(n))return!1;var i=["Left","Right"],s=["Down","Up"],r=["PageDown","PageUp"],a=["Home","End"];t.dir&&!t.ort?i.reverse():t.ort&&!t.dir&&(s.reverse(),r.reverse());var o,l=e.key.replace("Arrow",""),c=l===r[0],d=l===r[1],u=l===s[0]||l===i[0]||c,h=l===s[1]||l===i[1]||d,g=l===a[1];if(!(u||h||l===a[0]||g))return!0;if(e.preventDefault(),h||u){var v=u?0:1,b=se(n)[v];if(null===b)return!1;!1===b&&(b=p.getDefaultStep(f[n],u,t.keyboardDefaultStep)),b*=d||c?t.keyboardPageMultiplier:t.keyboardMultiplier,b=Math.max(b,1e-7),b*=u?-1:1,o=m[n]+b}else o=g?t.spectrum.xVal[t.spectrum.xVal.length-1]:t.spectrum.xVal[0];return Q(n,p.toStepping(o),!0,!0),G("slide",n),G("update",n),G("change",n),G("set",n),!1}(e,n)})),void 0!==t.handleAttributes){var r=t.handleAttributes[n];Object.keys(r).forEach(function(e){s.setAttribute(e,r[e])})}return s.setAttribute("role","slider"),s.setAttribute("aria-orientation",t.ort?"vertical":"horizontal"),0===n?gu(s,t.cssClasses.handleLower):n===t.handles-1&&gu(s,t.cssClasses.handleUpper),i.handle=s,i}function C(e,n){return!!n&&E(e,t.cssClasses.connect)}function k(e,n){return!(!t.tooltips||!t.tooltips[n])&&E(e.firstChild,t.cssClasses.tooltip)}function T(){return h.hasAttribute("disabled")}function j(e){return r[e].hasAttribute("disabled")}function A(){l&&(U("update"+Nu),l.forEach(function(e){e&&lu(e)}),l=null)}function O(){A(),l=r.map(k),W("update"+Nu,function(e,n,i){if(l&&t.tooltips&&!1!==l[n]){var s=e[n];!0!==t.tooltips[n]&&(s=t.tooltips[n].to(i[n])),l[n].innerHTML=s}})}function L(e,t){return e.map(function(e){return p.fromStepping(t?p.getStep(e):e)})}function D(){o&&(lu(o),o=null)}function M(e){D();var n=function(e){function t(e,t){return Number((e+t).toFixed(7))}var n,i=function(e){if(e.mode===ru.Range||e.mode===ru.Steps)return p.xVal;if(e.mode===ru.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===ru.Positions?L(e.values,e.stepped):e.mode===ru.Values?e.stepped?e.values.map(function(e){return p.fromStepping(p.getStep(p.toStepping(e)))}):e.values:[]}(e),s={},r=p.xVal[0],a=p.xVal[p.xVal.length-1],o=!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]!==r&&(i.unshift(r),o=!0),i[i.length-1]!==a&&(i.push(a),l=!0),i.forEach(function(n,r){var a,d,u,h,m,f,g,v,b,y,_=n,x=i[r+1],w=e.mode===ru.Steps;for(w&&(a=p.xNumSteps[r]),a||(a=x-_),void 0===x&&(x=_),a=Math.max(a,1e-7),d=_;d<=x;d=t(d,a)){for(v=(m=(h=p.toStepping(d))-c)/(e.density||1),y=m/(b=Math.round(v)),u=1;u<=b;u+=1)s[(f=c+u*y).toFixed(5)]=[p.fromStepping(f),0];g=i.indexOf(d)>-1?au.LargeValue:w?au.SmallValue:au.NoValue,!r&&o&&d!==x&&(g=0),d===x&&l||(s[h.toFixed(5)]=[d,g]),c=h}}),s}(e),i=e.filter,s=e.format||{to:function(e){return String(Math.round(e))}};return o=h.appendChild(function(e,n,i){var s,r,a=_.createElement("div"),o=((s={})[au.None]="",s[au.NoValue]=t.cssClasses.valueNormal,s[au.LargeValue]=t.cssClasses.valueLarge,s[au.SmallValue]=t.cssClasses.valueSub,s),l=((r={})[au.None]="",r[au.NoValue]=t.cssClasses.markerNormal,r[au.LargeValue]=t.cssClasses.markerLarge,r[au.SmallValue]=t.cssClasses.markerSub,r),c=[t.cssClasses.valueHorizontal,t.cssClasses.valueVertical],d=[t.cssClasses.markerHorizontal,t.cssClasses.markerVertical];function u(e,n){var i=n===t.cssClasses.value,s=i?o:l;return n+" "+(i?c:d)[t.ort]+" "+s[e]}return gu(a,t.cssClasses.pips),gu(a,0===t.ort?t.cssClasses.pipsHorizontal:t.cssClasses.pipsVertical),Object.keys(e).forEach(function(s){!function(e,s,r){if((r=n?n(s,r):r)!==au.None){var o=E(a,!1);o.className=u(r,t.cssClasses.marker),o.style[t.style]=e+"%",r>au.NoValue&&((o=E(a,!1)).className=u(r,t.cssClasses.value),o.setAttribute("data-value",String(s)),o.style[t.style]=e+"%",o.innerHTML=String(i.to(s)))}}(s,e[s][0],e[s][1])}),a}(n,i,s))}function $(){var e=i.getBoundingClientRect(),n="offset"+["Width","Height"][t.ort];return 0===t.ort?e.width||i[n]:e.height||i[n]}function P(e,n,i,s){var r=function(r){var a,o,l=function(e,t,n){var i=0===e.type.indexOf("touch"),s=0===e.type.indexOf("mouse"),r=0===e.type.indexOf("pointer"),a=0,o=0;if(0===e.type.indexOf("MSPointer")&&(r=!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;a=c[0].pageX,o=c[0].pageY}else{var d=Array.prototype.find.call(e.changedTouches,l);if(!d)return!1;a=d.pageX,o=d.pageY}}return t=t||bu(_),(s||r)&&(a=e.clientX+t.x,o=e.clientY+t.y),e.pageOffset=t,e.points=[a,o],e.cursor=s||r,e}(r,s.pageOffset,s.target||n);return!!l&&!(T()&&!s.doNotReject)&&(a=h,o=t.cssClasses.tap,!((a.classList?a.classList.contains(o):new RegExp("\\b"+o+"\\b").test(a.className))&&!s.doNotReject)&&!(e===d.start&&void 0!==l.buttons&&l.buttons>1)&&(!s.hover||!l.buttons)&&(u||l.preventDefault(),l.calcPoint=l.points[t.ort],void i(l,s)))},a=[];return e.split(" ").forEach(function(e){n.addEventListener(e,r,!!u&&{passive:!0}),a.push([e,r])}),a}function I(e){var n,s,r,a,o,l,c=100*(e-(n=i,s=t.ort,r=n.getBoundingClientRect(),o=(a=n.ownerDocument).documentElement,l=bu(a),/webkit.*Chrome.*Mobile/i.test(navigator.userAgent)&&(l.x=0),s?r.top+l.y-o.clientTop:r.left+l.x-o.clientLeft))/$();return c=pu(c),t.dir?100-c:c}function R(e,t){"mouseout"===e.type&&"HTML"===e.target.nodeName&&null===e.relatedTarget&&F(e,t)}function z(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);X(i>0,100*i/n.baseSize,n.locations,n.handleNumbers,n.connect)}function F(e,n){n.handle&&(vu(n.handle,t.cssClasses.active),v-=1),n.listeners.forEach(function(e){x.removeEventListener(e[0],e[1])}),0===v&&(vu(h,t.cssClasses.drag),J(),e.cursor&&(w.style.cursor="",w.removeEventListener("selectstart",du))),t.events.smoothSteps&&(n.handleNumbers.forEach(function(e){Q(e,f[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 H(e,n){if(!n.handleNumbers.some(j)){var i;1===n.handleNumbers.length&&(i=r[n.handleNumbers[0]].children[0],v+=1,gu(i,t.cssClasses.active)),e.stopPropagation();var s=[],a=P(d.move,x,z,{target:e.target,handle:i,connect:n.connect,listeners:s,startCalcPoint:e.calcPoint,baseSize:$(),pageOffset:e.pageOffset,handleNumbers:n.handleNumbers,buttonsProperty:e.buttons,locations:f.slice()}),o=P(d.end,x,F,{target:e.target,handle:i,listeners:s,doNotReject:!0,handleNumbers:n.handleNumbers}),l=P("mouseout",x,R,{target:e.target,handle:i,listeners:s,doNotReject:!0,handleNumbers:n.handleNumbers});s.push.apply(s,a.concat(o,l)),e.cursor&&(w.style.cursor=getComputedStyle(e.target).cursor,r.length>1&&gu(h,t.cssClasses.drag),w.addEventListener("selectstart",du,!1)),n.handleNumbers.forEach(function(e){G("start",e)})}}function B(e){e.stopPropagation();var n=I(e.calcPoint),i=function(e){var t=100,n=!1;return r.forEach(function(i,s){if(!j(s)){var r=f[s],a=Math.abs(r-e);(a<t||a<=t&&e>r||100===a&&100===t)&&(n=s,t=a)}}),n}(n);!1!==i&&(t.events.snap||hu(h,t.cssClasses.tap,t.animationDuration),Q(i,n,!0,!0),J(),G("slide",i,!0),G("update",i,!0),t.events.snap?H(e,{handleNumbers:[i]}):(G("change",i,!0),G("set",i,!0)))}function V(e){var t=I(e.calcPoint),n=p.getStep(t),i=p.fromStepping(n);Object.keys(b).forEach(function(e){"hover"===e.split(".")[0]&&b[e].forEach(function(e){e.call(ae,i)})})}function q(e){e.fixed||r.forEach(function(e,t){P(d.start,e.children[0],H,{handleNumbers:[t]})}),e.tap&&P(d.start,i,B,{}),e.hover&&P(d.move,i,V,{hover:!0}),e.drag&&a.forEach(function(n,i){if(!1!==n&&0!==i&&i!==a.length-1){var s=r[i-1],o=r[i],l=[n],c=[s,o],u=[i-1,i];gu(n,t.cssClasses.draggable),e.fixed&&(l.push(s.children[0]),l.push(o.children[0])),e.dragAll&&(c=r,u=g),l.forEach(function(e){P(d.start,e,H,{handles:c,handleNumbers:u,connect:n})})}})}function W(e,t){b[e]=b[e]||[],b[e].push(t),"update"===e.split(".")[0]&&r.forEach(function(e,t){G("update",t)})}function U(e){var t=e&&e.split(".")[0],n=t?e.substring(t.length):e;Object.keys(b).forEach(function(e){var i=e.split(".")[0],s=e.substring(i.length);t&&t!==i||n&&n!==s||function(e){return e===Cu||e===Nu}(s)&&n!==s||delete b[e]})}function G(e,n,i){Object.keys(b).forEach(function(s){var r=s.split(".")[0];e===r&&b[s].forEach(function(e){e.call(ae,m.map(t.format.to),n,m.slice(),i||!1,f.slice(),ae)})})}function Y(e,n,i,s,a,o,l){var c;return r.length>1&&!t.events.unconstrained&&(s&&n>0&&(c=p.getAbsoluteDistance(e[n-1],t.margin,!1),i=Math.max(i,c)),a&&n<r.length-1&&(c=p.getAbsoluteDistance(e[n+1],t.margin,!0),i=Math.min(i,c))),r.length>1&&t.limit&&(s&&n>0&&(c=p.getAbsoluteDistance(e[n-1],t.limit,!1),i=Math.min(i,c)),a&&n<r.length-1&&(c=p.getAbsoluteDistance(e[n+1],t.limit,!0),i=Math.max(i,c))),t.padding&&(0===n&&(c=p.getAbsoluteDistance(0,t.padding[0],!1),i=Math.max(i,c)),n===r.length-1&&(c=p.getAbsoluteDistance(100,t.padding[1],!0),i=Math.min(i,c))),l||(i=p.getStep(i)),!((i=pu(i))===e[n]&&!o)&&i}function K(e,n){var i=t.ort;return(i?n:e)+", "+(i?e:n)}function X(e,n,i,s,r){var a=i.slice(),o=s[0],l=t.events.smoothSteps,c=[!e,e],d=[e,!e];s=s.slice(),e&&s.reverse(),s.length>1?s.forEach(function(e,t){var i=Y(a,e,a[e]+n,c[t],d[t],!1,l);!1===i?n=0:(n=i-a[e],a[e]=i)}):c=d=[!0];var u=!1;s.forEach(function(e,t){u=Q(e,i[e]+n,c[t],d[t],!1,l)||u}),u&&(s.forEach(function(e){G("update",e),G("slide",e)}),null!=r&&G("drag",o))}function Z(e,n){return t.dir?100-e-n:e}function J(){g.forEach(function(e){var t=f[e]>50?-1:1,n=3+(r.length+t*e);r[e].style.zIndex=String(n)})}function Q(e,n,i,s,a,o){return a||(n=Y(f,e,n,i,s,!1,o)),!1!==n&&(function(e,n){f[e]=n,m[e]=p.fromStepping(n);var i="translate("+K(Z(n,0)-S+"%","0")+")";if(r[e].style[t.transformRule]=i,t.events.invertConnects&&f.length>1){var s=f.every(function(e,t,n){return 0===t||e>=n[t-1]});if(y!==!s)return y=!y,Pu(t,t.connect.map(function(e){return!e})),void re()}ee(e),ee(e+1),y&&(ee(e-1),ee(e+2))}(e,n),!0)}function ee(e){if(a[e]){var n=f.slice();y&&n.sort(function(e,t){return e-t});var i=0,s=100;0!==e&&(i=n[e-1]),e!==a.length-1&&(s=n[e]);var r=s-i,o="translate("+K(Z(i,r)+"%","0")+")",l="scale("+K(r/100,"1")+")";a[e].style[t.transformRule]=o+" "+l}}function te(e,n){return null===e||!1===e||void 0===e?f[n]:("number"==typeof e&&(e=String(e)),!1!==(e=t.format.from(e))&&(e=p.toStepping(e)),!1===e||isNaN(e)?f[n]:e)}function ne(e,n,i){var s=mu(e),r=void 0===f[0];n=void 0===n||n,t.animate&&!r&&hu(h,t.cssClasses.tap,t.animationDuration),g.forEach(function(e){Q(e,te(s[e],e),!0,!1,i)});var a=1===g.length?0:1;if(r&&p.hasNoSize()&&(i=!0,f[0]=0,g.length>1)){var o=100/(g.length-1);g.forEach(function(e){f[e]=e*o})}for(;a<g.length;++a)g.forEach(function(e){Q(e,f[e],!0,!0,i)});J(),g.forEach(function(e){G("update",e),null!==s[e]&&n&&G("set",e)})}function ie(e){if(void 0===e&&(e=!1),e)return 1===m.length?m[0]:m.slice(0);var n=m.map(t.format.to);return 1===n.length?n[0]:n}function se(e){var n=f[e],i=p.getNearbySteps(n),s=m[e],r=i.thisStep.step,a=null;if(t.snap)return[s-i.stepBefore.startValue||null,i.stepAfter.startValue-s||null];!1!==r&&s+r>i.stepAfter.startValue&&(r=i.stepAfter.startValue-s),a=s>i.thisStep.startValue?i.thisStep.step:!1!==i.stepBefore.step&&s-i.stepBefore.highestStep,100===n?r=null:0===n&&(a=null);var o=p.countStepDecimals();return null!==r&&!1!==r&&(r=Number(r.toFixed(o))),null!==a&&!1!==a&&(a=Number(a.toFixed(o))),[a,r]}function re(){for(;s.firstChild;)s.removeChild(s.firstChild);for(var e=0;e<=t.handles;e++)a[e]=C(s,t.connect[e]),ee(e);q({drag:t.events.drag,fixed:!0})}gu(c=h,t.cssClasses.target),0===t.dir?gu(c,t.cssClasses.ltr):gu(c,t.cssClasses.rtl),0===t.ort?gu(c,t.cssClasses.horizontal):gu(c,t.cssClasses.vertical),gu(c,"rtl"===getComputedStyle(c).direction?t.cssClasses.textDirectionRtl:t.cssClasses.textDirectionLtr),i=E(c,t.cssClasses.base),function(e,n){s=E(n,t.cssClasses.connects),r=[],(a=[]).push(C(s,e[0]));for(var i=0;i<t.handles;i++)r.push(N(n,i)),g[i]=i,a.push(C(s,e[i+1]))}(t.connect,i),q(t.events),ne(t.start),t.pips&&M(t.pips),t.tooltips&&O(),U("update"+Cu),W("update"+Cu,function(e,n,i,s,a){g.forEach(function(e){var n=r[e],s=Y(f,e,0,!0,!0,!0),o=Y(f,e,100,!0,!0,!0),l=a[e],c=String(t.ariaFormat.to(i[e]));s=p.fromStepping(s).toFixed(1),o=p.fromStepping(o).toFixed(1),l=p.fromStepping(l).toFixed(1),n.children[0].setAttribute("aria-valuemin",s),n.children[0].setAttribute("aria-valuemax",o),n.children[0].setAttribute("aria-valuenow",l),n.children[0].setAttribute("aria-valuetext",c)})});var ae={destroy:function(){for(U(Cu),U(Nu),Object.keys(t.cssClasses).forEach(function(e){vu(h,t.cssClasses[e])});h.firstChild;)h.removeChild(h.firstChild);delete h.noUiSlider},steps:function(){return g.map(se)},on:W,off:U,get:ie,set:ne,setHandle:function(e,t,n,i){if(!((e=Number(e))>=0&&e<g.length))throw new Error("noUiSlider: invalid handle number, got: "+e);Q(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?(r[e].setAttribute("disabled",""),r[e].handle.removeAttribute("tabindex")):(h.setAttribute("disabled",""),r.forEach(function(e){e.handle.removeAttribute("tabindex")}))},enable:function(e){null!=e?(r[e].removeAttribute("disabled"),r[e].handle.setAttribute("tabindex","0")):(h.removeAttribute("disabled"),r.forEach(function(e){e.removeAttribute("disabled"),e.handle.setAttribute("tabindex","0")}))},__moveHandles:function(e,t,n){X(e,t,f,n)},options:n,updateOptions:function(e,i){var s=ie(),r=["margin","limit","padding","range","animate","snap","step","format","pips","tooltips","connect"];r.forEach(function(t){void 0!==e[t]&&(n[t]=e[t])});var a=Zu(n);r.forEach(function(n){void 0!==e[n]&&(t[n]=a[n])}),p=a.spectrum,t.margin=a.margin,t.limit=a.limit,t.padding=a.padding,t.pips?M(t.pips):D(),t.tooltips?O():A(),f=[],ne(cu(e.start)?e.start:s,i),e.connect&&re()},target:h,removePips:D,removeTooltips:A,getPositions:function(){return f.slice()},getTooltips:function(){return l},getOrigins:function(){return r},pips:M};return ae}var Qu=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=Ju(e,Zu(t),t);return e.noUiSlider=n,n};const eh={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}};let th=class{constructor(e,t){return this.handleSliderUpdate=(e,t)=>{const n=e[t];if(this.inputs[t]&&(this.inputs[t].value=n),this.outputs[t]){const e=this.outputs[t];e&&e.format?e.element.innerText=e.format.to(this.config.format.from(n)):e&&(e.element.innerText=n)}},this.element=e,this.config={...eh,...t},this.inputs=[],this.outputs=[],this.handleSliderUpdate=this.handleSliderUpdate.bind(this),this.element.ODS_RangeSlider=this,this.init(),this}init(){const e=this.element.getAttribute("data-rangeslider-config");let t={};if(e)try{t=JSON.parse(e)}catch{}if(this.config={...this.config,...t},this.config.format=Se(this.config.format),this.element.noUiSlider&&(this.element.noUiSlider=void 0,this.instance?.destroy&&this.instance.destroy()),!this.config.range)throw new Error("RangeSlider config must include 'range'.");this.instance=Qu(this.element,this.config),this.inputs=Array.from(document.querySelectorAll(`input[name^=${this.element.getAttribute("id")}-]`)),this.outputs=this.inputs.map(e=>{const t=document.getElementById(`${e.getAttribute("id")}-output`);if(t){const e=t.getAttribute("data-format");return{element:t,format:t.hasAttribute("data-format")&&e?Se(JSON.parse(e)):void 0}}return!1}),this.instance.on("update",(e,t)=>{this.handleSliderUpdate(e.map(String),t)})}update(){this.instance?.destroy(),this.init()}destroy(){this.instance?.off("update"),this.instance?.destroy(),this.element.ODS_RangeSlider=null}static getInstance(e){return e&&e.ODS_RangeSlider?e.ODS_RangeSlider:null}};const nh="range-slider",ih="default",sh=({className:e,id:t,hasDataAttr:n=true,config:i,elementBefore:s,elementAfter:r,isInvalid:a,width:o=ih,...l})=>{const[c]=j(th),d=O(t),u=C(nh,{[`${nh}--${o}`]:o!==ih},e);return S.jsxs(S.Fragment,{children:[s,S.jsx("div",{id:d,className:u,ref:c,"data-rangeslider":n,"data-rangeslider-config":JSON.stringify(i),...l}),i.start.map((e,t)=>{const n=`${d}-${t}`;return S.jsx("input",{type:"hidden",id:n,name:n},n)}),r]})};sh.displayName="RangeSlider";const rh="textarea",ah="default",oh="default",lh=({children:e,className:t,id:n,isDisabled:i,isInvalid:s,isValid:r,isReadonly:a,placeholder:o,size:l=ah,width:c=oh,name:d,...u})=>{const h=C(rh,{"is-invalid":s,"is-valid":r,[`${rh}--${l}`]:l!==ah,[`${rh}--${c}`]:c!==oh},t),p=d||n;return S.jsx("textarea",{className:h,id:n,name:p,disabled:i,readOnly:a,placeholder:o,...u,children:e})};lh.displayName="TextArea";const ch=r(null),dh=Ec(()=>Promise.resolve().then(function(){return po}).then(e=>({default:e.Autocomplete}))),uh="form-field__control",hh=({className:t})=>{const n=e.useContext(ch),i=e.useContext(Nc),s=n?.controlId??"",r=n?.control??{},a=n?.isRadioCheck,o=n?.hint,l=n?.messages??[],c=n?.tooltip,d=i?.messages??[],{type:u,control:h,renderControl:p,prefix:m,suffix:f,id:g,...v}=r,b=((e,t,n,i)=>[...e?[`${i}-hint`]:[],...t.map((e,t)=>`${i}-message-${t}`),...n?[`${i}-tooltip`]:[]].join(" "))(o,l,c,s),y=a||"autocomplete"===u,_=(e=>{switch(e){case"autocomplete":return dh;case"checkbox":return go;case"datepicker":return cc;case"file":return Vd;case"group":return Zd;case"radio":return su;case"range":return sh;case"select":return oo;case"input-stepper":return tu;case"textarea":return lh;default:return Gd}})(u??"text"),{isInvalid:x,isValid:w}=v,E=x??((d.some(e=>e.isMain)||l.some(e=>"error"===e.type))&&!w),N={...v,..."group"!==u&&{id:s},...b.length&&{"aria-describedby":b},..."file"===u&&{"aria-labelledby":`${s}-label`},isInvalid:E,..."group"===u&&h&&{addonPrefix:m,addonSuffix:f,control:{...h,id:s,isInvalid:E}}};return p?p(N):S.jsx(G,{condition:y,wrapper:S.jsx("div",{className:C(uh,t)}),children:S.jsx(_,{...N,className:C(v.className,{[`${uh}`]:!y})})})},ph=({className:e,children:t,...n})=>t?S.jsx("p",{className:C("hint",e),...n,children:t}):null;ph.displayName="Hint";const mh=({htmlFor:e,className:t,children:n,...i})=>S.jsx("label",{htmlFor:e,className:C("label",t),...i,children:n});mh.displayName="Label";const fh="form-field__label",gh=()=>{const t=e.useContext(ch),n=t?.control,i=t?.controlId??"",s=t?.label,r=t?.labelAfter;return S.jsx(S.Fragment,{children:r?S.jsxs("div",{className:fh,children:["range"!==n?.type?S.jsx(mh,{id:i?`${i}-label`:void 0,htmlFor:i,className:r?void 0:fh,children:s}):S.jsx("span",{id:i?`${i}-label`:void 0,className:C("label",{[fh]:!r}),children:s}),r&&S.jsxs(S.Fragment,{children:[" ",r]})]}):"range"!==n?.type?S.jsx(mh,{id:i?`${i}-label`:void 0,htmlFor:i,className:fh,children:s}):S.jsx("span",{id:i?`${i}-label`:void 0,className:C("label",{[fh]:!r}),children:s})})},vh=({id:e,children:t,placement:n="right",...i})=>t?S.jsxs(S.Fragment,{children:[" ",S.jsx(fr,{id:`${e}-tooltip`,className:"form-field__tooltip",placement:n,...i,children:t})]}):null;vh.displayName="FormTooltip";const bh=({hideLabel:t=!1,children:n})=>{const i=e.useContext(ch),s=i?.controlId??"",r=i?.tooltip,a=i?.hint;return S.jsxs("div",{className:"form-field__description",children:[t?null:S.jsxs(S.Fragment,{children:[S.jsx(gh,{}),S.jsx(vh,{id:s,children:r})]}),S.jsx(ph,{id:`${s}-hint`,className:"form-field__hint",children:a}),n]})},yh={info:"info",warning:"warning-important",error:"error-severe",invalid:"error-severe"},_h={info:"info",warning:"warning",error:"danger",invalid:"danger"},xh="message",wh=({className:e,children:t,type:n="info",...i})=>{const s=C(xh,e,"invalid"===n&&{[`${xh}--invalid`]:"invalid"===n});return S.jsxs("p",{className:s,...i,children:[n&&S.jsx(B,{name:yh[n],size:"medium",color:_h[n],className:`${xh}__icon`}),t]})};wh.displayName="Message";const Sh=({isMain:t})=>{const n=e.useContext(ch),i=e.useContext(Nc),{controlId:s,messages:r=[]}=n??i??{};return r.filter(e=>t===e.isMain).map((e,t)=>S.jsx(wh,{id:`${s}-message-${t}`,type:e.type,children:e.text},t.toString()))},Eh="form-field",Nh=({className:e,control:t,hint:n,label:i,labelAfter:s,messages:r=[],tooltip:a,...o})=>{const l=["radio","checkbox"].includes(t?.type??""),c="checkbox"===t?.type&&t?.isToggle,d=C(Eh,e,{[`${Eh}--radiocheck`]:l}),u=(e=>{const{id:t,control:n}=e;return t??(n&&n.id)??T()})(t??{}),h={control:t,hint:n,label:i,labelAfter:s,messages:r,tooltip:a,controlId:u,isRadioCheck:l};return S.jsx("div",{className:d,...o,children:S.jsx(ch.Provider,{value:h,children:l?c?S.jsx(S.Fragment,{children:S.jsxs(ae,{space:"small",children:[S.jsx(ce,{children:S.jsxs(ae,{canWrap:!1,children:[S.jsx(ce,{children:S.jsx(hh,{className:"mr-none"})}),S.jsxs(ce,{canShrink:!0,children:[S.jsx(gh,{}),S.jsx(vh,{id:u,children:a})]})]})}),S.jsx(oe,{}),S.jsx(ce,{className:"mt-none",children:S.jsx(bh,{hideLabel:!0,children:S.jsx(Sh,{})})})]})}):S.jsxs(S.Fragment,{children:[S.jsx(hh,{}),S.jsx(bh,{children:S.jsx(Sh,{})})]}):S.jsxs(S.Fragment,{children:[S.jsx(bh,{}),S.jsx(hh,{}),S.jsx(Sh,{})]})})})};Nh.displayName="Field";const Ch=({legend:e,legendProps:t,description:n,className:i,children:s,messages:r,...a})=>{const o=C("fieldset",i);return S.jsxs("fieldset",{className:o,...a,children:[S.jsx("legend",{...t,children:e}),n,r?S.jsxs(Nc.Provider,{value:{messages:r},children:[S.jsx(Sh,{isMain:!0}),s,S.jsx(Sh,{})]}):s]})};Ch.displayName="Fieldset";const kh=(e,t)=>`${e/2*(t/100)}, ${e}`,Th=(e,t=0,n=100)=>Math.min(Math.max(e,t),n),jh="gauge",Ah=e.forwardRef(({children:e,className:t,percentage:n=0,...i},s)=>{const r=122*Math.PI*2,a={r:100,cx:110,cy:110,strokeWidth:15,fill:"none",transform:"rotate(160, 110, 110)"};return S.jsxs("figure",{ref:s,className:C(`${jh}`,t),...i,children:[S.jsxs("svg",{width:"220",height:"150",viewBox:"0 0 220 150",className:`${jh}__dial`,children:[S.jsx("circle",{className:`${jh}__display`,strokeDasharray:kh(r,100),...a}),S.jsx("circle",{className:`${jh}__indicator`,strokeDasharray:kh(r,Th(n)),...a})]}),S.jsx("figcaption",{className:`${jh}__text`,children:e})]})});Ah.displayName="Gauge";const Oh="sticker",Lh=({color:e,size:t,children:n,className:i,...s})=>{const r=C(Oh,{[`${Oh}--${e}`]:e,[`${Oh}--${t}`]:t},i);return S.jsx("div",{className:r,...s,children:n})};Lh.displayName="Sticker";const Dh={medium:{title:"h2",description:"bold"},large:{title:"h1",description:"large bold"}},Mh=({button:e,description:t,hasGradientOverlay:n,image:i,hasFullwidthImage:s,price:r,sticker:a,title:o,textSize:l="medium"})=>{const c=!!i&&("src"in i&&!!i.src||"default"in i&&i.default&&1===Object.keys(i).length),d=C("hero");return S.jsx("div",{className:d,children:S.jsx(Qi,{children:S.jsxs(Te,{className:"justify-content-space-between",children:[S.jsxs(Le,{size:{sm:10,md:9,lg:5},className:"hero__content",children:[S.jsx("h1",{className:Dh[l].title,children:o}),t&&S.jsx("p",{className:C(Dh[l].description,"hero__description"),children:t}),r&&S.jsxs("p",{className:"h2 hero__price",children:["string"==typeof r&&r,"object"==typeof r&&S.jsxs(S.Fragment,{children:[r.prefix,Ce(r.amount),r.suffix]})]}),e&&S.jsx(Ae,{type:"primary",...e})]}),a&&S.jsx(Le,{size:{md:3,lg:2},className:"hero__content show-md",children:S.jsx(Lh,{...a,className:C("hero__sticker",a.className)})}),i&&S.jsx("div",{className:"hero__image-wrapper",children:S.jsx(Os,{src:"src"in i?{default:i.src}:i,srcSet:"src"in i?i.srcSet:void 0,alt:"",className:C("hero__image",{"hero__image--fullwidth":s,"hero__image--single":c,"hero__image--gradient":n,"hero__image--gradient-halfwidth":n&&!s})})})]})})})};Mh.displayName="Hero";const $h="icon-list",Ph=({icon:e,children:t,tooltip:n,...i})=>S.jsxs("li",{...i,children:[S.jsx(B,{name:e,size:"medium",className:`${$h}__icon`}),S.jsxs("div",{className:C(`${$h}__content`,{"text-nowrap":n}),children:[S.jsx(G,{condition:!!n,wrapper:S.jsx("span",{className:`${$h}__content-text`,children:t}),children:t}),n&&" ",n&&S.jsx(fr,{className:"bold",placement:"right",children:n})]})]});Ph.displayName="IconListItem";const Ih=({items:e=[],className:t,...n})=>S.jsx("ul",{className:C("icon-list",t),...n,children:e.map(({content:e,...t},n)=>S.jsx(Ph,{...t,children:e},n.toString()))});Ih.displayName="IconList";const Rh="list",zh=({color:e,isEnclosed:t,size:n,className:i,children:s,...r})=>{const a=C(Rh,{[`${Rh}--${n}`]:n,[`${Rh}--${e}`]:e,[`${Rh}--enclosed`]:t},i);return S.jsx("ul",{className:a,...r,children:s})},Fh=({href:e,className:t,children:n,...i})=>{const s=e?"a":"button",r="button"===s?"button":void 0,a=C("list__control",t);return S.jsxs(s,{className:a,type:r,href:e,...i,children:[n,S.jsx(B,{name:"chevron-right",size:"medium",className:"list__indicator"})]})};Fh.displayName="ListItemClickableControl";const Hh=({controlProps:e,className:t,children:n,...i})=>{const s=C("list__item",t);return S.jsx("li",{className:s,...i,children:S.jsx(G,{condition:void 0!==e,wrapper:S.jsx(Fh,{...e}),children:n})})};Hh.displayName="ListItem";const Bh={cycleDuration:4e3,delay:5e3};let Vh=class{constructor(e,t){this.element=e,this.config={...Bh,...t},this.interval=null,this.delay=null,this.currentMessageIndex=0,this.messages=[],this.cycleMessages=this.cycleMessages.bind(this),this.element.ODS_Loader=this,this.init()}initBody(){const e=this.element.getAttribute("data-loader-messages");this.messages=e?JSON.parse(e):[],this.messages.length&&(this.interval=window.setInterval(this.cycleMessages,this.config.cycleDuration??Bh.cycleDuration))}init(){this.element.hasAttribute("data-loader-delayed")?this.delay=window.setTimeout(()=>{this.element.parentNode&&this.element.parentNode instanceof HTMLElement&&this.element.parentNode.classList.remove("hide"),this.initBody()},this.config.delay??Bh.delay):this.initBody()}destroy(){this.interval&&window.clearInterval(this.interval),this.delay&&window.clearTimeout(this.delay)}cycleMessages(){this.currentMessageIndex<this.messages.length?(this.element.innerText=this.messages[this.currentMessageIndex],this.currentMessageIndex+=1):this.destroy()}static getInstance(e){return e&&e.ODS_Loader?e.ODS_Loader:null}};const qh="loader",Wh=({messages:e,size:t="default",className:n,colour:i="default",isDelayed:s,children:r,...a})=>{const[o]=j(Vh,{messages:e,isDelayed:s}),l=C(qh,{[`${qh}--${t}`]:"default"!==t,[`${qh}--${i}`]:"default"!==i,hide:s},n);return S.jsxs("div",{className:l,...a,children:[S.jsx("div",{className:`${qh}__body`,children:S.jsx("div",{className:`${qh}__line`})}),e&&S.jsx("div",{"data-loader":!0,"data-loader-delayed":s,"data-loader-messages":JSON.stringify(e),className:`${qh}__messages`,ref:o,children:r})]})};Wh.displayName="Loader";const Uh=({className:e,children:t,...n})=>{const i=C("loader-fullscreen",e);return S.jsx("div",{className:i,role:"status","aria-live":"polite",...n,children:S.jsxs(Qi,{children:[t,S.jsx(Wh,{size:"large"})]})})};Uh.displayName="LoaderFullscreen";const Gh="megamenu-icon",Yh=({className:e,alt:t,name:n,spritePath:i="/sprite.svg",...s})=>{const r=C(Gh,e);return S.jsxs("svg",{className:r,"aria-hidden":void 0!==t?void 0:"true",role:void 0!==t?"img":void 0,...s,children:[void 0!==t&&t.length>0&&S.jsx("title",{children:t}),S.jsx("use",{className:`${Gh}__use ${Gh}__use--light`,xlinkHref:`${i}#${n}`}),S.jsx("use",{className:`${Gh}__use ${Gh}__use--dark`,xlinkHref:`${i}#${n}`})]})},Kh="megamenu",Xh=`${Kh}__top`,Zh=`${Kh}__main`,Jh=`${Kh}__container`,Qh=`${Kh}__grid`,ep=`${Kh}__card`,tp=`${Kh}__tiles`,np=`${Kh}__tile`,ip=`${Kh}__tile-body`,sp=`${Kh}__tile-content`,rp=`${Kh}__tile-label`,ap=`${Kh}__nav`,op=`${Kh}__nav--vertical`,lp=`${Kh}__nav--space-small`,cp=`${Kh}__nav--mobile-locale`,dp=`${Kh}__nav-item`,up=`${Kh}__nav-item--lead`,hp=`${Kh}__nav-item--main`,pp=`${Kh}__nav-link`,mp=`${Kh}__nav-link--locale`,fp=`${Kh}__nav-link--no-line`,gp=`${Kh}__nav-link--cta`,vp=`${Kh}__nav-select`,bp=`${Kh}__nav-cart-icon`,yp=`${Kh}__nav-spacer`,_p=`${Kh}__nav-icon`,xp=`${_p}--no-gap-md-down`,wp=`${_p}--cta`,Sp=`${Kh}__nav-logo`,Ep=`${Kh}__nav-button`,Np=`${Kh}__nav-button--indicator`,Cp=`${Kh}__nav-button--select`,kp=`${Kh}__nav-dropdown`,Tp=`${Kh}__subnav`,jp=`${Kh}__subnav-item`,Ap=`${Kh}__overlay`,Op=`${Kh}-spacer`,Lp=`${Kh}-spacer--small`,Dp=`${Kh}__text--large`,Mp=`${Kh}__caption`,$p=`${Kh}--hide-md-down`,Pp=`${Kh}--hide-lg-only`,Ip=`${Kh}--hide-lg-up`,Rp=`${Kh}__mobile`,zp=`${Kh}__mobile-overlay`,Fp=`${Kh}__mobile-wrapper`,Hp=`${Kh}__mobile-header`,Bp=`${Kh}__mobile-body`,Vp=`${Kh}__mobile-cta`,qp=`${Kh}__mobile-account`,Wp=`${Kh}__mobile-account-avatar`,Up=`${Kh}__mobile-account-phone`,Gp=`${Kh}__mobile-account-logout`,Yp=`${Kh}__button`,Kp=`${Yp}--secondary`,Xp=`${Kh}__mobile-account-links`,Zp=`${Kh}__mobile-account-link`,Jp=`${Kh}__mobile-app-card`,Qp=`${Jp}-section`,em=`${Jp}-title`,tm=`${Jp}-stores`,nm=`${Jp}-store`,im=`${Jp}-image`,sm=`${Kh}__accordion`,rm=`${Kh}__accordion-item`,am=`${Kh}__accordion-header`,om=`${Kh}__accordion-button`,lm=`${Kh}__accordion-title`,cm=`${Kh}__accordion-icon`,dm=`${Kh}__accordion-body`,um=`${Kh}__input`,hm=`${Kh}__input-wrapper`,pm=`${Kh}__input-wrapper--search-icon-with-placeholder`,mm=`${Kh}__input-wrapper--search-responsive`,fm=`${Kh}__tag`,gm=`${Kh}__tag--orange`,vm=`${Kh}__tag--small`,bm=`${Kh}__tag--transparent`,ym=`${Kh}__tag--large`,_m=`${Kh}__list--inline`,xm=`${Kh}__list--gap-small`,wm=[{label:"Chcem nové číslo",icon:"sim",tag:"1 mesiac zadarmo",isActive:!0},{label:"Chcem preniesť číslo",icon:"showroom-mobile-pro",tag:"1 mesiac zadarmo"},{label:"Chcem zmeniť paušál",icon:"showroom-mobile-pro"}],Sm=[{id:"volania",label:"Volania",featured:{id:"odporucane-sluzby",heading:"Odporúčané služby",items:[{label:"Super paušály",isLarge:!0},{label:"Predplatené karty",isLarge:!0},{label:"Roaming",isLarge:!0},{label:"Love",isLarge:!0}]},columns:[[{id:"pausaly",heading:"Paušály",items:[{label:"Prehľad paušálov"},{label:"Super paušály",tag:"Novinka"},{label:"Yoxo paušál"},{label:"Paušalík"}]},{id:"s-kreditom",heading:"Volania s kreditom",items:[{label:"Prima Voľba"},{label:"Prima Kids"},{label:"FunFón"}]}],[{id:"zahranicie",heading:"Zahraničie",items:[{label:"Roaming"},{label:"Roamingové balíky"},{label:"Volania do zahraničia"},{label:"Regulovaný roaming v EÚ"},{label:"Cestovné poistenie"}]},{id:"doplnkove-sluzby",heading:"Doplnkové služby",items:[{label:"eWatch",tag:"Novinka"},{label:"eSIM"},{label:"Poistenie zariadení"}]}],[{id:"nase-sluzby",heading:"Ste náš zákazník?",items:[{label:"Chcem zmeniť paušál"},{label:"Chcem predĺžiť služby"},{label:"Dobiť kredit"},{label:"Odporučte Orange"},{label:"Navzájom zadarmo"}]}]]},{id:"internet-tv",label:"Internet, TV",featured:{id:"odporucane-sluzby",heading:"Odporúčané služby",items:[{label:"Internet na doma",isLarge:!0},{label:"Mobilný internet",isLarge:!0},{label:"Televízia",isLarge:!0},{label:"Internet + TV",isLarge:!0}]},columns:[[{id:"pausaly",heading:"Internet",items:[{label:"Prehľad internetu"},{label:"Mobilný internet"},{label:"Bezpečný internet so sebou"},{label:"Domáca linka k internetu"}]}],[{id:"televizia",heading:"Televízia",items:[{label:"Najlepšia TV na doma"},{label:"TV cez satelit"},{label:"TV cez internet"},{label:"Novinky na Orange TV"}]}],[{id:"internet-televizia",heading:"Internet + televízia",items:[{label:"Ponuka Love"},{label:"Výhodný pár zariadení"},{label:"Volania do zahraničia"},{label:"Regulovaný roaming"}]},{id:"nase-sluzby",heading:"Ste náš zákazník?",items:[{label:"Predĺžiť služby"},{label:"Nový internet"},{label:"Nová televízia"},{label:"Odporučte Orange"}]}]]},{id:"telefony-zariadenia",label:"Telefóny a zariadenia",featured:{id:"odporucane-sluzby",heading:"Odporúčané služby",items:[{label:"iPhone 15",isLarge:!0},{label:"iPhone 15 Pro",isLarge:!0},{label:"Samsung Z Fold",isLarge:!0},{label:"Motorola",isLarge:!0},{label:"Oppo",isLarge:!0}]},columns:[[{id:"telefony",heading:"Telefóny",items:[{label:"Apple"},{label:"Samsung"},{label:"Huawei"},{label:"Honor"},{label:"Motorola"},{label:"Oppo"}]}],[{id:"tablety-a-notebooky",heading:"Tablety a notebooky",items:[{label:"Lenovo"},{label:"Samsung"},{label:"Honor"},{label:"Apple"},{label:"Asus"}]}],[{id:"sikovne-zariadenia",heading:"Šikovné zariadenia",items:[{label:"Smart hodinky"},{label:"Smart domácnosť"},{label:"Smart TV"},{label:"Herné konzoly"}]},{id:"orange-akcie",heading:"Orange akcie",items:[{label:"Samsung"},{label:"Výhodné ponuky"},{label:"Zľavy na telefóny"},{label:"Dopredaj zariadení"}]}]]}],Em=["Dobitie kreditu","Nedostupnosť služieb","Faktúry","Zdieľanie dát","Prečerpané dáta","Elektronická faktúra","Prvá pomoc internet","Nastavenie zariadení a sim kariet","Pevny internet do domacnosti","Dátový roaming","Nákup online","Telemarketing"],Nm=["apple","apple hodinky","apple iphone","apple 16","apple pro","apple watch"],Cm=e=>"blog"===e?{searchDropdownId:"megamenu-blog-search",searchInputDesktopId:"megamenu-blog-search-input",searchInputMobileId:"megamenu-blog-mobile-search-input",mobileMainPanelId:"megamenu-blog-mobile-main",mobileMainTitleId:"mobile-blog-menu-title",myOrangePanelId:"megamenu-blog-mobile-my-orange",myOrangeTitleId:"mobile-blog-my-orange-title"}:{searchDropdownId:"megamenu-search",searchInputDesktopId:"megamenu-search-input",searchInputMobileId:"megamenu-mobile-search-input",mobileMainPanelId:"megamenu-mobile-main",mobileMainTitleId:"mobile-menu-title",myOrangePanelId:"megamenu-mobile-my-orange",myOrangeTitleId:"mobile-my-orange-title"},km=({inputId:e,inputLabel:t,searchValue:n,hasSearchEmpty:i,hasSearchFilled:s,emptyStateLinkHref:r="#"})=>S.jsxs(S.Fragment,{children:[S.jsx("label",{htmlFor:e,className:"sr-only",children:t}),S.jsx("span",{className:C(hm,mm,pm),children:S.jsx("input",{className:um,id:e,type:"text",placeholder:"Hľadať",name:"search",defaultValue:n})}),i?S.jsxs(S.Fragment,{children:[S.jsx("p",{className:Mp,children:"Najhľadanejši výrazy"}),S.jsx("ul",{className:_m,children:Em.map(e=>S.jsx("li",{children:S.jsx("a",{href:r,className:C(fm),children:e})},e))})]}):s?S.jsx("ul",{className:Tp,children:Nm.map(e=>S.jsx("li",{className:jp,children:S.jsx("a",{href:"#",className:"no-underline",children:e})},e))}):null]}),Tm=()=>S.jsxs("svg",{viewBox:"0 0 40 40",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",children:[S.jsx("path",{d:"M40 0H0V40H40V0Z",fill:"#FF7900"}),S.jsx("path",{d:"M34.2897 28.57H5.71973V34.28H34.2897V28.57Z",fill:"white"})]}),jm=()=>S.jsxs("svg",{width:"40",height:"67",viewBox:"0 0 40 67",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[S.jsxs("g",{clipPath:"url(#clip0_21208_2750)",children:[S.jsx("rect",{width:"40",height:"40",fill:"white"}),S.jsx("rect",{width:"40",height:"40",fill:"#FF7900"}),S.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M35.4467 29.1254H36.0214V28.8803H34.5679V29.1254H35.1425V30.7169H35.4467V29.1254ZM38.1126 30.7169H38.4154V28.8859H37.9521L37.4126 30.2803L36.8647 28.8859H36.3971V30.7169H36.7V29.1831H36.7084L37.3098 30.7169H37.5014L38.1028 29.1831H38.1126V30.7169Z",fill:"white"}),S.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M30.2988 33.7648C30.2988 35.5929 31.2763 36.645 32.9143 36.645C34.0566 36.645 34.9045 36.231 35.3763 35.445L34.3045 34.8507C33.9622 35.3324 33.5974 35.5549 33.0439 35.5549C32.1833 35.5549 31.7467 35.0239 31.7354 33.9718H35.4354C35.4354 33.9274 35.4382 33.8817 35.441 33.8352C35.4438 33.7873 35.4467 33.7387 35.4467 33.6901C35.4467 31.8831 34.496 30.8619 32.8904 30.8619C31.2847 30.8619 30.2988 31.9366 30.2988 33.7648ZM32.8904 31.8507C33.5876 31.8507 34.0101 32.2873 34.0101 33.031H31.7636C31.8186 32.2732 32.2312 31.8507 32.8904 31.8507Z",fill:"white"}),S.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M29.4168 36.2296V30.969L28.1858 30.9718L28.0715 31.6068C27.9579 31.3346 27.5372 30.8676 26.4689 30.8676C25.2872 30.869 24.2351 31.9085 24.2351 33.7662C24.2351 35.6451 25.2562 36.5437 26.5506 36.5437C27.3999 36.5437 27.7534 36.1493 27.9858 35.7352L28.0055 35.7549V36.4014C28.0055 37.2704 27.6379 37.6338 26.8788 37.6338C26.0605 37.6338 25.8943 37.3606 25.8337 37.0873L24.39 37.3197C24.5929 38.2747 25.6055 38.7042 26.6971 38.7042C29.3464 38.6873 29.4168 37.1592 29.4168 36.2296ZM28.0114 33.4775C28.0114 34.2155 27.9184 35.3437 26.8086 35.3521C25.7353 35.3592 25.6874 34.2254 25.6874 33.538C25.6874 32.2859 26.2734 31.9028 26.7987 31.9028C27.5889 31.9028 28.0114 32.6099 28.0114 33.4775Z",fill:"white"}),S.jsx("path",{d:"M18.2454 31.1366L19.4552 30.969L19.5876 31.6281C20.2707 31.1281 20.813 30.8619 21.4961 30.8619C22.6397 30.8619 23.2285 31.469 23.2285 32.6704V36.5394H21.7679V32.9253C21.7679 32.245 21.5904 31.9394 21.0637 31.9394C20.6271 31.9394 20.1918 32.1408 19.6961 32.5563V36.5422H18.2454V31.1366Z",fill:"white"}),S.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M13.8309 36.6085C14.4826 36.6109 15.1202 36.4186 15.6619 36.0563L15.7957 36.5451H17.0915V32.5169C17.0915 31.4958 16.2859 30.869 14.838 30.869C13.7769 30.8681 12.9873 31.2296 12.469 31.9535L13.4549 32.5169C13.7788 32.1009 14.2814 31.864 14.8084 31.8789C15.3746 31.8789 15.6816 32.1127 15.6816 32.5169V32.8254C13.3253 33.0916 12.1816 33.7507 12.1816 34.9944C12.1816 35.9183 12.7943 36.6085 13.8309 36.6085ZM14.2719 35.6099C13.8484 35.6099 13.6133 35.2614 13.6127 34.8887C13.6137 34.2319 14.2616 33.8816 15.6268 33.7085V35.024C15.1789 35.4183 14.7324 35.6099 14.2719 35.6099ZM13.6127 34.8887C13.6127 34.8882 13.6127 34.8878 13.6127 34.8873V34.8901C13.6127 34.8897 13.6127 34.8892 13.6127 34.8887Z",fill:"white"}),S.jsx("path",{d:"M8.66626 30.9859H10.0564V31.6394C10.4387 31.1829 10.9929 30.905 11.5874 30.8718C11.6505 30.8702 11.7136 30.8735 11.7761 30.8817V32.2535H11.7057C11.0691 32.2535 10.3733 32.3521 10.1564 32.8465V36.5422H8.66626V30.9859Z",fill:"white"}),S.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2.16504 33.7733C2.16504 35.7845 3.46786 36.7057 4.91433 36.7057C6.35941 36.7057 7.66363 35.7873 7.66363 33.7775C7.66363 31.7676 6.36081 30.8451 4.91433 30.8451C3.46786 30.8451 2.16504 31.762 2.16504 33.7733ZM3.61982 33.7676C3.61982 33.0634 3.82263 32.0775 4.91418 32.0775C6.00573 32.0775 6.20855 33.0564 6.20855 33.7676C6.20855 34.4789 6.00573 35.4648 4.91418 35.4648C3.82263 35.4648 3.61982 34.4719 3.61982 33.7676Z",fill:"white"})]}),S.jsx("path",{d:"M5.17993 48.9411V58.7468C5.17993 59.2294 5.12534 59.648 5.01587 60.0016C4.91751 60.3582 4.73923 60.6555 4.47974 60.8903C4.23215 61.1371 3.89396 61.3132 3.46899 61.4225C3.04305 61.5441 2.50403 61.6052 1.85376 61.6052C1.55135 61.6051 1.27816 61.5807 1.03442 61.5319L0.994385 61.5241V59.3054L1.06079 59.3298C1.18497 59.3749 1.35889 59.3991 1.58423 59.3991C1.84115 59.3991 2.06033 59.3467 2.24341 59.2438L2.24731 59.2419C2.42503 59.1581 2.52466 58.961 2.52466 58.6208V48.9411H5.17993ZM11.8215 48.6891C12.6201 48.6892 13.3188 48.8463 13.9153 49.1628H13.9143C14.5087 49.4661 14.9946 49.8788 15.3713 50.4011C15.7594 50.9225 16.0387 51.5165 16.2083 52.1823C16.3776 52.8477 16.4372 53.5433 16.3889 54.2682L16.386 54.3151H9.67896C9.72114 55.1097 9.92735 55.6774 10.2903 56.029C10.6621 56.3892 11.1998 56.5729 11.9114 56.5729C12.4184 56.5729 12.8518 56.4489 13.2141 56.2038C13.5814 55.9431 13.7996 55.6758 13.8792 55.403L13.8899 55.3669H16.2463L16.2249 55.4323C15.8625 56.5556 15.3054 57.3652 14.5491 57.8532C13.7956 58.3393 12.8853 58.5807 11.8215 58.5807C11.0844 58.5807 10.418 58.4665 9.82349 58.236L9.82251 58.235C9.22844 57.9925 8.72398 57.653 8.31079 57.2155C7.89803 56.7784 7.57705 56.2565 7.34692 55.6511V55.6501C7.12873 55.044 7.01978 54.378 7.01978 53.653C7.01978 52.9515 7.13417 52.2972 7.3645 51.6911C7.59477 51.0852 7.92285 50.5629 8.3479 50.1257C8.77246 49.6771 9.27609 49.3254 9.85767 49.071C10.4525 48.816 11.1075 48.6891 11.8215 48.6891ZM32.8323 48.9411V54.2468C32.8323 55.0107 32.9514 55.5757 33.1838 55.9479L33.2776 56.072C33.516 56.3432 33.8932 56.4831 34.4202 56.4831C35.1064 56.4831 35.5924 56.2819 35.8918 55.8903C36.1938 55.4835 36.3499 54.8133 36.3499 53.8688V48.9411H39.0061V58.3474H36.4758V57.0866C36.1525 57.6029 35.739 57.981 35.2327 58.2165C34.7106 58.4592 34.1756 58.5807 33.6282 58.5807C33.0262 58.5807 32.5135 58.5119 32.092 58.3718L31.9172 58.3073C31.4784 58.1245 31.1284 57.8675 30.8704 57.5358V57.5349C30.6136 57.1925 30.4309 56.784 30.3215 56.3102L30.3206 56.3093C30.2238 55.8255 30.176 55.2933 30.176 54.7145V48.9411H32.8323ZM27.1672 46.1511V48.9411H29.0393V50.7507H27.1672V55.3093C27.1673 55.5226 27.1854 55.698 27.22 55.8366C27.2547 55.9753 27.3053 56.0741 27.3684 56.1374C27.4317 56.2007 27.5304 56.2521 27.6692 56.2868C27.8079 56.3215 27.9839 56.3386 28.1975 56.3386C28.34 56.3386 28.4764 56.3328 28.6067 56.321C28.7371 56.3091 28.8616 56.2919 28.9797 56.2682L29.0393 56.2556V58.3395L28.9973 58.3464C28.7791 58.3827 28.5372 58.4066 28.2717 58.4186C28.007 58.4307 27.7482 58.4372 27.4954 58.4372C27.0969 58.4372 26.7157 58.4069 26.3528 58.3464V58.3454C26 58.2965 25.6822 58.194 25.4006 58.0349L25.3997 58.0339C25.1276 57.873 24.9112 57.6445 24.7512 57.3493C24.5899 57.0515 24.511 56.664 24.511 56.1911V50.7507H22.9631V48.9411H24.511V46.1511H27.1672ZM11.7493 50.7145C11.3972 50.7146 11.098 50.7697 10.8499 50.8766L10.7463 50.9255C10.4885 51.0544 10.2774 51.2174 10.1145 51.4147C9.96176 51.6145 9.85162 51.8264 9.78149 52.0485L9.78052 52.0475C9.72728 52.2502 9.69466 52.4329 9.67993 52.5954H13.7219C13.601 51.9822 13.3928 51.5194 13.0989 51.2028L13.0979 51.2018C12.8106 50.8803 12.3645 50.7145 11.7493 50.7145ZM5.17993 45.3952V47.6013H2.52466V45.3952H5.17993Z",fill:"var(--color-text-default)",stroke:"var(--color-text-default)",strokeWidth:"0.1"}),S.jsx("defs",{children:S.jsx("clipPath",{id:"clip0_21208_2750",children:S.jsx("rect",{width:"40",height:"40",fill:"white"})})})]}),Am=()=>S.jsxs("span",{"data-megamenu-brand-mark":!0,children:[S.jsx("span",{"data-megamenu-logo-full":!0,"aria-hidden":"true",children:S.jsx(jm,{})}),S.jsx("span",{"data-megamenu-logo-compact":!0,"aria-hidden":"true",children:S.jsx(Tm,{})})]}),Om=(e,t)=>{const n=Boolean(e),i=Boolean(t);return{hasSearchEmpty:n,hasSearchFilled:i,showSearchState:n||i,searchValue:n?"":i?"apple":""}},Lm=({compactLogoOnly:e=!1,href:t="/",title:n,children:i})=>S.jsxs("a",{href:t,className:Sp,"aria-label":`${n} - Domovská stránka`,children:[e?S.jsx(Tm,{}):S.jsx(Am,{}),i]}),Dm=({dropdownId:e,inputId:t,inputLabel:n,searchValue:i,hasSearchEmpty:s,hasSearchFilled:r,emptyStateLinkHref:a})=>S.jsx("div",{className:C(kp,"is-spaced"),id:e,children:S.jsx("div",{className:Jh,children:S.jsx(km,{inputId:t,inputLabel:n,searchValue:i,hasSearchEmpty:s,hasSearchFilled:r,emptyStateLinkHref:a})})}),Mm=({ariaLabel:e,target:t})=>S.jsx("button",{type:"button","data-megamenu-close-button":!0,"data-megamenu-mobile-target":t,className:Ep,"aria-label":e,children:S.jsx(Yh,{name:"close",width:20,height:20,"aria-hidden":"true"})}),$m=({titleId:e,panelId:t,target:n,title:i,overlayAriaLabel:s,children:r})=>S.jsxs("div",{className:Rp,"data-megamenu-mobile-panel":n,id:t,role:"dialog","aria-modal":"true","aria-labelledby":e,"aria-hidden":"true",children:[S.jsx("span",{id:e,className:"sr-only",children:i}),S.jsx("button",{"aria-label":s,className:zp,type:"button","data-megamenu-close-button":!0,"data-megamenu-mobile-target":n}),S.jsx("div",{className:Fp,children:r})]}),Pm=({titleId:e,panelId:t,isB2B:n=!1,isLoggedIn:i=!0})=>S.jsxs($m,{titleId:e,panelId:t,target:"my-orange",title:"Môj Orange",overlayAriaLabel:"Zatvoriť panel Môj Orange",children:[S.jsx("div",{className:Hp,children:S.jsx("div",{className:Jh,children:S.jsxs("ul",{className:C(ap,lp),children:[S.jsx("li",{className:yp,"aria-hidden":"true"}),S.jsx("li",{className:dp,children:S.jsx(Mm,{ariaLabel:"Zatvoriť panel Môj Orange",target:"my-orange"})})]})})}),S.jsxs("div",{className:Bp,children:[S.jsx("div",{className:Jh,children:S.jsxs("div",{className:qp,children:[S.jsx("div",{className:Wp,"aria-hidden":"true",children:S.jsx(Yh,{name:"user",width:72,height:72})}),i?S.jsxs(S.Fragment,{children:[S.jsx("p",{className:Up,children:"0905 123 456"}),S.jsx("a",{href:"#",className:Gp,children:"Odhlásiť"}),S.jsx("a",{href:"#",className:Yp,children:"Orange Business"}),n?S.jsx("a",{href:"#",className:C(Yp,Kp),children:"My Orange"}):null]}):S.jsx("a",{href:"#",className:Yp,children:"Prihlásenie"})]})}),S.jsx("div",{className:Jh,children:S.jsx("nav",{"aria-label":"Môj Orange rýchle akcie",children:S.jsxs("ul",{className:C(Tp,Xp),children:[S.jsx("li",{className:jp,children:S.jsx("a",{href:"#",className:Zp,children:"Zaplatiť faktúru"})}),S.jsx("li",{className:jp,children:S.jsx("a",{href:"#",className:Zp,children:"Pozrieť spotrebu"})}),S.jsx("li",{className:jp,children:S.jsx("a",{href:"#",className:Zp,children:"Aktivovať služby"})}),S.jsx("li",{className:jp,children:S.jsx("a",{href:"#",className:Zp,children:"Dobiť kredit"})})]})})}),S.jsx("div",{className:Jh,children:S.jsxs("div",{className:C(Jp),children:[S.jsxs("div",{className:Qp,children:[S.jsxs("h2",{className:em,children:["Stiahnite si aplikáciu",S.jsx("br",{}),"Môj Orange"]}),S.jsxs("div",{className:tm,children:[S.jsx("a",{href:"#",className:nm,"aria-label":"Stiahnuť aplikáciu z App Store",children:S.jsx("img",{src:n?"/apple--white.svg":"/apple.svg",alt:""})}),S.jsx("a",{href:"#",className:nm,"aria-label":"Stiahnuť aplikáciu z Google Play",children:S.jsx("img",{src:n?"/play--white.svg":"/play.svg",alt:""})}),S.jsx("a",{href:"#",className:nm,"aria-label":"Stiahnuť aplikáciu z Huawei AppGallery",children:S.jsx("img",{src:n?"/huawei--white.svg":"/huawei.svg",alt:""})})]})]}),S.jsx("img",{className:im,src:"/images/phones.png",alt:""})]})})]})]}),Im=e=>S.jsx(S.Fragment,{children:e.map(e=>S.jsxs("li",{className:jp,children:[S.jsx("a",{href:e.href??"/",className:e.isLarge?Dp:void 0,children:e.label}),e.tag?S.jsx("span",{className:C(fm,gm,vm),children:e.tag}):null]},e.label))}),Rm=e=>S.jsx("div",{className:tp,"aria-label":"Rýchly prístup",children:e.map((e,t)=>{const n=e.isActive??0===t;return S.jsx("a",{className:C(np,{"is-active":n}),href:e.href??"/",children:S.jsxs("div",{className:ip,children:[S.jsx(Yh,{name:e.icon,width:32,height:32,"aria-hidden":"true"}),S.jsxs("span",{className:sp,children:[S.jsx("strong",{className:rp,children:e.label}),e.tag?S.jsx("span",{className:C(fm,gm,vm),children:e.tag}):null]})]})},e.label)})}),zm=(t,n,i,s=!1,r=wm,a=!1)=>{const o=`${n}-${t.id}-${t.featured.id}`;return S.jsxs(S.Fragment,{children:[S.jsxs("div",{className:Qh,children:[a?Rm(r):null,S.jsxs("div",{className:C(ep,"is-highlighted"),children:[S.jsx("h3",{id:o,className:"sr-only",children:t.featured.heading}),S.jsx("ul",{className:Tp,role:"group","aria-labelledby":o,children:Im(t.featured.items)})]}),s?S.jsx("div",{className:ep,children:t.columns.flat().map(s=>{const r=`${n}-${t.id}-${s.id}-heading`;return S.jsxs(e.Fragment,{children:[S.jsx("p",{id:r,className:i,children:s.heading}),S.jsx("ul",{className:Tp,role:"group","aria-labelledby":r,children:Im(s.items)})]},s.id)})}):t.columns.map((s,r)=>S.jsx("div",{className:ep,children:s.map(s=>{const r=`${n}-${t.id}-${s.id}-heading`;return S.jsxs(e.Fragment,{children:[S.jsx("p",{id:r,className:i,children:s.heading}),S.jsx("ul",{className:Tp,role:"group","aria-labelledby":r,children:Im(s.items)})]},s.id)})},`${t.id}-${r}`))]}),a?null:Rm(r)]})},Fm=({className:e,title:t="Človek",notSticky:n=!1,searchEmpty:i,searchFilled:s,compactLogoOnly:r=!1,isB2B:a=!1,isLoggedIn:o=!0,cartItems:l,cartHasItems:c=!1,tiles:d=wm})=>{const u=Cm("main"),{hasSearchEmpty:h,hasSearchFilled:p,showSearchState:m,searchValue:f}=Om(i,s),g=void 0!==l&&l>0,v=c&&!g;return S.jsxs("header",{children:[S.jsxs("nav",{className:C(Kh,e,{"non-sticky":n}),"data-megamenu":!0,"aria-label":"Main navigation",children:[S.jsx("div",{className:C(Xh,$p),"data-hide-when-sticky":"true",children:S.jsx("div",{className:Jh,children:S.jsxs("ul",{className:C(ap,lp),"aria-label":"Top menu",children:[S.jsx("li",{className:dp,children:S.jsx("a",{href:"/",className:C(pp,"is-active"),"aria-current":"page",children:"Pre vás"})}),S.jsx("li",{className:dp,children:S.jsx("a",{href:"/",className:pp,children:"Podnikatelia a malé firmy"})}),S.jsx("li",{className:dp,children:S.jsx("a",{href:"/",className:pp,children:"Velké firmy"})}),S.jsx("li",{className:yp,"aria-hidden":"true"}),S.jsx("li",{className:C(dp,up),children:S.jsxs("a",{href:"/",className:pp,children:[S.jsx(Yh,{name:"call",width:20,height:20,className:_p,"aria-hidden":"true"}),"Kontakt"]})}),S.jsx("li",{className:dp,children:S.jsx("a",{href:"/",className:C(pp,"is-active"),children:"SK"})}),S.jsx("li",{className:dp,children:S.jsx("a",{href:"/",className:pp,children:"EN"})})]})})}),S.jsx("div",{className:Zh,children:S.jsx("div",{className:Jh,children:S.jsxs("ul",{className:ap,"aria-label":"Hlavné menu",children:[S.jsx("li",{className:C(dp,hp),children:S.jsx(Lm,{compactLogoOnly:r,title:t})}),Sm.map(e=>S.jsxs("li",{className:C(dp,hp,$p),children:[S.jsx("button",{type:"button",className:C(Ep,Np),"aria-controls":`megamenu-${e.id}`,"aria-expanded":"false","aria-haspopup":"true",children:e.label}),S.jsx("div",{className:kp,id:`megamenu-${e.id}`,children:S.jsx("div",{className:Jh,children:zm(e,"megamenu",Mp,!1,d)})})]},e.id)),S.jsx("li",{className:C(dp,hp,$p),children:S.jsx("a",{href:"/",className:C(pp),children:"Akcie"})}),S.jsx("li",{className:C(dp,hp,$p),children:S.jsx("a",{href:"/",className:C(pp),children:"Pomoc"})}),S.jsx("li",{className:C(dp,hp,$p),children:S.jsxs("a",{href:"/",className:gp,children:[S.jsx(Yh,{width:16,height:16,name:"rewards",className:wp,"aria-hidden":"true"}),"Prejdite k nám"]})}),S.jsx("li",{className:C(yp,Pp),"aria-hidden":"true"}),S.jsxs("li",{className:C(dp,$p),children:[S.jsx("button",{type:"button",className:Ep,"aria-label":"Vyhľadávanie","aria-controls":u.searchDropdownId,"aria-expanded":"false","aria-haspopup":"true",children:S.jsx(Yh,{width:24,height:24,name:"search","aria-hidden":"true"})}),S.jsx(Dm,{dropdownId:u.searchDropdownId,inputId:u.searchInputDesktopId,inputLabel:"Vyhľadávanie v hlavnom menu",searchValue:f,hasSearchEmpty:h,hasSearchFilled:p,emptyStateLinkHref:"/"})]}),S.jsx("li",{className:C(dp),children:S.jsxs("a",{href:"/",className:C(pp),"aria-label":g?`Košík, ${l} položka`:"Košík",children:[g?S.jsx("span",{className:bp,"data-items-in-cart":l,"aria-hidden":"true",children:S.jsx(Yh,{width:24,height:24,name:"buy","aria-hidden":"true"})}):S.jsx("span",{className:bp,"data-cart-has-items":v?"true":void 0,"aria-hidden":"true",children:S.jsx(Yh,{width:24,height:24,name:"buy","aria-hidden":"true"})}),g?S.jsxs("span",{className:"sr-only",children:[l," položka v košíku"]}):null]})}),S.jsx("li",{className:dp,children:S.jsxs("button",{type:"button",className:Ep,"data-megamenu-mobile-toggle":!0,"data-megamenu-mobile-target":"my-orange","aria-haspopup":"dialog","aria-expanded":"false",children:[S.jsx(Yh,{width:24,height:24,name:"user",className:_p,"aria-hidden":"true"}),"Môj Orange"]})}),S.jsx("li",{className:C(dp,Ip),children:S.jsx("button",{type:"button",className:Ep,"aria-label":"Otvoriť menu","data-megamenu-mobile-toggle":!0,"data-megamenu-mobile-target":"main","aria-haspopup":"dialog","aria-expanded":"false",children:S.jsx(Yh,{width:24,height:24,name:"menu","aria-hidden":"true"})})})]})})}),S.jsxs($m,{panelId:u.mobileMainPanelId,titleId:u.mobileMainTitleId,target:"main",title:"Hlavné menu",overlayAriaLabel:"Zatvoriť menu",children:[S.jsx("div",{className:Hp,children:S.jsx("div",{className:Jh,children:S.jsxs("ul",{className:C(ap,lp),children:[S.jsx("li",{className:dp,children:S.jsx("div",{className:C(Ep,Np,Cp),children:S.jsxs("select",{className:vp,defaultValue:"/","aria-label":"Vyberte typ zákazníka",children:[S.jsx("option",{value:"/",children:"Pre vás"}),S.jsx("option",{value:"/",children:"Podnikatelia a malé firmy"}),S.jsx("option",{value:"/",children:"Velké firmy"})]})})}),S.jsx("li",{className:yp,"aria-hidden":"true"}),S.jsx("li",{className:dp,children:S.jsx(Mm,{ariaLabel:"Zatvoriť menu",target:"main"})})]})})}),S.jsxs("div",{className:Bp,children:[S.jsx("div",{className:Jh,children:S.jsx(km,{inputId:u.searchInputMobileId,inputLabel:"Vyhľadávanie v mobilnom menu",searchValue:f,hasSearchEmpty:h,hasSearchFilled:p})}),S.jsx("div",{className:Jh,children:m?null:S.jsx(S.Fragment,{children:S.jsxs("ul",{className:sm,children:[Sm.map(e=>{const t=`mobile-accordion-${e.id}`,n=`mobile-${e.id}-button`;return S.jsxs("li",{className:rm,children:[S.jsx("div",{className:am,children:S.jsxs("button",{type:"button",className:om,"aria-controls":t,"aria-expanded":"false","data-accordion-toggle":!0,id:n,children:[S.jsx("span",{className:lm,children:e.label}),S.jsx(Yh,{name:"chevron-right",width:24,height:24,className:cm,"aria-hidden":"true"})]})}),S.jsx("div",{className:dm,id:t,role:"region","aria-labelledby":n,children:zm(e,"mobile",Mp,!0,d,!0)})]},e.id)}),S.jsx("li",{className:rm,children:S.jsx("div",{className:am,children:S.jsx("a",{href:"/",className:om,children:S.jsx("span",{className:lm,children:"Akcie"})})})}),S.jsx("li",{className:rm,children:S.jsx("div",{className:am,children:S.jsx("a",{href:"/",className:om,children:S.jsx("span",{className:lm,children:"Pomoc"})})})})]})})}),m?null:S.jsxs(S.Fragment,{children:[S.jsx("div",{className:Jh,children:S.jsx("div",{className:Vp,children:S.jsxs("a",{href:"/",className:gp,children:[S.jsx(Yh,{width:16,height:16,name:"rewards",className:wp,"aria-hidden":"true"}),"Prejdite k nám"]})})}),S.jsxs("div",{className:Jh,children:[S.jsx("h3",{id:"mobile-quick-access-heading",className:"sr-only",children:"Rýchly prístup"}),S.jsxs("ul",{className:C(ap,op),role:"group","aria-labelledby":"mobile-quick-access-heading",children:[S.jsx("li",{className:dp,children:S.jsxs("button",{type:"button",className:Ep,"data-megamenu-mobile-toggle":!0,"data-megamenu-mobile-target":"my-orange","aria-haspopup":"dialog","aria-expanded":"false",children:[S.jsx(Yh,{width:24,height:24,name:"user",className:_p,"aria-hidden":"true"}),"Môj Orange"]})}),S.jsx("li",{className:dp,children:S.jsxs("a",{href:"/",className:Ep,children:[S.jsx(Yh,{width:24,height:24,name:"call",className:_p,"aria-hidden":"true"}),"Kontakt"]})}),S.jsx("li",{className:dp,children:S.jsxs("a",{href:"/",className:Ep,children:[S.jsx(Yh,{width:24,height:24,name:"advertising",className:_p,"aria-hidden":"true"}),"Akcie"]})}),S.jsx("li",{className:dp,children:S.jsxs("a",{href:"/",className:Ep,children:[S.jsx(Yh,{width:24,height:24,name:"newspaper",className:_p,"aria-hidden":"true"}),"Pomoc"]})})]})]}),S.jsx("div",{className:Jh,children:S.jsxs("ul",{className:C(ap,lp,cp),"aria-label":"Výber jazyka",children:[S.jsx("li",{className:dp,children:S.jsx("a",{href:"/",className:C(pp,mp,"is-active"),children:"SK"})}),S.jsx("li",{className:dp,children:S.jsx("a",{href:"/",className:C(pp,mp),children:"EN"})})]})})]})]})]}),S.jsx(Pm,{panelId:u.myOrangePanelId,titleId:u.myOrangeTitleId,isB2B:a,isLoggedIn:o}),S.jsx("button",{"aria-label":"Zatvoriť dropdown menu",className:Ap,type:"button"})]}),S.jsx("div",{className:Op,"aria-hidden":"true"})]})},Hm=["Kategória 1","Kategória 2","Kategória 3","Kategória 4","Kategória 5"],Bm=({className:e,title:t="Človek",notSticky:n=!1,searchEmpty:i,searchFilled:s,compactLogoOnly:r=!1,isB2B:a=!1})=>{const o=Cm("blog"),{hasSearchEmpty:l,hasSearchFilled:c,showSearchState:d,searchValue:u}=Om(i,s);return S.jsxs("header",{children:[S.jsxs("nav",{className:C(Kh,e,{"non-sticky":n}),"data-megamenu":!0,"aria-label":"Main navigation",children:[S.jsx("div",{className:Zh,children:S.jsx("div",{className:Jh,children:S.jsxs("ul",{className:ap,"aria-label":"Hlavné menu",children:[S.jsx("li",{className:C(dp,hp),children:S.jsx(Lm,{compactLogoOnly:r,title:t,children:S.jsx("span",{children:t})})}),S.jsx("li",{className:C(dp,hp,$p),children:S.jsx("a",{href:"/",className:C(pp,fp),children:"Naspať na Orange"})}),S.jsx("li",{className:yp,"aria-hidden":"true"}),S.jsxs("li",{className:C(dp,$p),children:[S.jsx("button",{type:"button",className:Ep,"aria-label":"Vyhľadávanie","aria-controls":o.searchDropdownId,"aria-expanded":"false","aria-haspopup":"true",children:S.jsx(Yh,{width:24,height:24,name:"search","aria-hidden":"true"})}),S.jsx(Dm,{dropdownId:o.searchDropdownId,inputId:o.searchInputDesktopId,inputLabel:"Vyhľadávanie v blog menu",searchValue:u,hasSearchEmpty:l,hasSearchFilled:c})]}),S.jsx("li",{className:dp,children:S.jsxs("button",{type:"button",className:Ep,"data-megamenu-mobile-toggle":!0,"data-megamenu-mobile-target":"my-orange","aria-haspopup":"dialog","aria-expanded":"false","aria-label":"Môj Orange",children:[S.jsx(Yh,{width:24,height:24,name:"user",className:C(_p,xp),"aria-hidden":"true"}),S.jsx("span",{className:$p,children:"Môj Orange"})]})}),S.jsxs("li",{className:C(dp,$p),children:[S.jsxs("button",{type:"button",className:C(Ep,"megamenu__nav-button--toggle"),"aria-label":"Kategórie","aria-controls":"megamenu-blog-categories","aria-expanded":"false","aria-haspopup":"true",children:[S.jsx("span",{className:"megamenu__nav-button-icon-open",children:S.jsx(Yh,{width:24,height:24,name:"menu","aria-hidden":"true"})}),S.jsx("span",{className:"megamenu__nav-button-icon-close",children:S.jsx(Yh,{width:24,height:24,name:"close","aria-hidden":"true"})})]}),S.jsx("div",{className:C(kp,"is-spaced"),id:"megamenu-blog-categories",children:S.jsxs("div",{className:Jh,children:[S.jsx("p",{className:Mp,children:"Kategórie"}),S.jsx("ul",{className:_m,children:Hm.map(e=>S.jsx("li",{children:S.jsx("a",{href:"/",className:C(fm,bm,ym),children:e})},e))})]})})]}),S.jsx("li",{className:C(dp,Ip),children:S.jsx("button",{type:"button",className:Ep,"aria-label":"Otvoriť menu","data-megamenu-mobile-toggle":!0,"data-megamenu-mobile-target":"main","aria-haspopup":"dialog","aria-expanded":"false",children:S.jsx(Yh,{width:24,height:24,name:"menu","aria-hidden":"true"})})})]})})}),S.jsxs($m,{panelId:o.mobileMainPanelId,titleId:o.mobileMainTitleId,target:"main",title:"Hlavné menu",overlayAriaLabel:"Zatvoriť menu",children:[S.jsx("div",{className:Hp,children:S.jsx("div",{className:Jh,children:S.jsxs("ul",{className:C(ap,lp),children:[S.jsx("li",{className:dp,children:S.jsx(Lm,{compactLogoOnly:r,title:t,children:S.jsx("span",{children:t})})}),S.jsx("li",{className:yp,"aria-hidden":"true"}),S.jsx("li",{className:dp,children:S.jsx(Mm,{ariaLabel:"Zatvoriť menu",target:"main"})})]})})}),S.jsx("div",{className:Bp,children:S.jsxs("div",{className:Jh,children:[S.jsx(km,{inputId:o.searchInputMobileId,inputLabel:"Vyhľadávanie v mobilnom blog menu",searchValue:u,hasSearchEmpty:l,hasSearchFilled:c}),d?null:S.jsxs(S.Fragment,{children:[S.jsx("p",{className:Mp,children:"Kategórie"}),S.jsx("ul",{className:C(Tp,xm),children:Hm.map(e=>S.jsx("li",{children:S.jsx("a",{href:"/",className:C(fm,bm,ym),children:e})},e))}),S.jsx("hr",{className:"mt-none"}),S.jsx("ul",{className:C(ap,op),children:S.jsx("li",{className:dp,children:S.jsx("a",{href:"/",className:Ep,children:"Naspať na Orange"})})})]})]})})]}),S.jsx(Pm,{panelId:o.myOrangePanelId,titleId:o.myOrangeTitleId,isB2B:a}),S.jsx("button",{"aria-label":"Zatvoriť dropdown menu",className:Ap,type:"button"})]}),S.jsx("div",{className:Lp,"aria-hidden":"true"})]})},Vm=":not([inert]):not([inert] *)",qm=':not([tabindex^="-"])',Wm=":not(:disabled)";var Um=[`a[href]${Vm}${qm}`,`area[href]${Vm}${qm}`,`input:not([type="hidden"]):not([type="radio"])${Vm}${qm}${Wm}`,`input[type="radio"]${Vm}${qm}${Wm}`,`select${Vm}${qm}${Wm}`,`textarea${Vm}${qm}${Wm}`,`button${Vm}${qm}${Wm}`,`details${Vm} > summary:first-of-type${qm}`,`iframe${Vm}${qm}`,`audio[controls]${Vm}${qm}`,`video[controls]${Vm}${qm}`,`[contenteditable]${Vm}${qm}`,`[tabindex]${Vm}${qm}`];function Gm(e){(e.querySelector("[autofocus]")||e).focus()}function Ym(e,t){if(t&&Zm(e))return e;if(function(e){return!(e.shadowRoot&&"-1"===e.getAttribute("tabindex")||e.matches(":disabled,[hidden],[inert]"))}(e))if(e.shadowRoot){let n=Km(e.shadowRoot,t);for(;n;){const e=Ym(n,t);if(e)return e;n=Xm(n,t)}}else if("slot"===e.localName){const n=e.assignedElements({flatten:!0});t||n.reverse();for(const e of n){const n=Ym(e,t);if(n)return n}}else{let n=Km(e,t);for(;n;){const e=Ym(n,t);if(e)return e;n=Xm(n,t)}}return!t&&Zm(e)?e:null}function Km(e,t){return t?e.firstElementChild:e.lastElementChild}function Xm(e,t){return t?e.nextElementSibling:e.previousElementSibling}const Zm=e=>!e.shadowRoot?.delegatesFocus&&e.matches(Um.join(","))&&!(e=>!(!e.matches("details:not([open]) *")||e.matches("details>summary:first-of-type"))||!(e.offsetWidth||e.offsetHeight||e.getClientRects().length))(e);function Jm(e=document){const t=e.activeElement;return t?t.shadowRoot?Jm(t.shadowRoot)||document.activeElement:t:null}function Qm(e,t){return function t(n){if(!n||n===document||n===window)return null;const i=ef(n);return i&&(n=i),n.closest(e)||t(n.getRootNode().host)}(t)}function ef(e){return e.assignedSlot||(e.parentNode?ef(e.parentNode):null)}const tf="data-a11y-dialog";class nf{$el;id;previouslyFocused;shown;constructor(e){this.$el=e,this.id=this.$el.getAttribute(tf)||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=Jm(),"BODY"===this.previouslyFocused?.tagName&&e?.target&&(this.previouslyFocused=e.target),"focus"===e?.type?this.maintainFocus():Gm(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=Qm(`[${tf}-show="${this.id}"]`,t),i=Qm(`[${tf}-hide="${this.id}"]`,t),s=Qm(`[${tf}-hide]`,t)&&Qm('[aria-modal="true"]',t)===this.$el;n&&this.show(e),(i||s)&&this.hide(e)}bindKeypress(e){if(Qm('[aria-modal="true"]',Jm())!==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=Ym(e,!0);return[t,t?Ym(e,!1)||t:null]}(e);if(!n)return t.preventDefault();const s=Jm();t.shiftKey&&s===n?(i.focus(),t.preventDefault()):t.shiftKey||s!==i||(n.focus(),t.preventDefault())}(this.$el,e)}maintainFocus(){const e=Jm();Qm(`[aria-modal="true"], [${tf}-ignore-focus-trap]`,e)||Gm(this.$el)}}function sf(){for(const e of document.querySelectorAll("[data-a11y-dialog]"))new nf(e)}"undefined"!=typeof document&&("loading"===document.readyState?document.addEventListener("DOMContentLoaded",sf):sf());var rf=["input:not([inert]):not([inert] *)","select:not([inert]):not([inert] *)","textarea:not([inert]):not([inert] *)","a[href]:not([inert]):not([inert] *)","area[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(","),af="undefined"==typeof Element,of=af?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,lf=!af&&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},cf=function(e){return"INPUT"===e.tagName},df=function(e){var t=e.getBoundingClientRect(),n=t.width,i=t.height;return 0===n&&0===i},uf=function(e,t){return!(t.disabled||function(e){return cf(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});var s=getComputedStyle(e).visibility;if("hidden"===s||"collapse"===s)return!0;var r=of.call(e,"details>summary:first-of-type")?e.parentElement:e;if(of.call(r,"details:not([open]) *"))return!0;if(n&&"full"!==n&&"full-native"!==n&&"legacy-full"!==n){if("non-zero-area"===n)return df(e)}else{if("function"==typeof i){for(var a=e;e;){var o=e.parentElement,l=lf(e);if(o&&!o.shadowRoot&&!0===i(o))return df(e);e=e.assignedSlot?e.assignedSlot:o||l===e.ownerDocument?o:l.host}e=a}if(function(e){var t,n,i,s,r=e&&lf(e),a=null===(t=r)||void 0===t?void 0:t.host,o=!1;if(r&&r!==e)for(o=!!(null!==(n=a)&&void 0!==n&&null!==(i=n.ownerDocument)&&void 0!==i&&i.contains(a)||null!=e&&null!==(s=e.ownerDocument)&&void 0!==s&&s.contains(e));!o&&a;){var l,c,d;o=!(null===(c=a=null===(l=r=lf(a))||void 0===l?void 0:l.host)||void 0===c||null===(d=c.ownerDocument)||void 0===d||!d.contains(a))}return o}(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!!of.call(t,"fieldset[disabled] *")||!i.contains(e)}return!0}t=t.parentElement}return!1}(t))},hf=function(e,t){if(t=t||{},!e)throw new Error("No node provided");return!1!==of.call(e,rf)&&function(e,t){return!(function(e){return function(e){return cf(e)&&"radio"===e.type}(e)&&!function(e){if(!e.name)return!0;var t,n=e.form||lf(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 s=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!s||s===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||!uf(e,t))}(t,e)};const pf="--ods-modal-scrollbar-width",mf="data-lock-scrolltop";let ff=class e{constructor(t,n){return this.element=t,this.config={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}static getInstance(e){return e&&e.ODS_Modal||null}handleShow(t){e.lockBody(),t&&t.classList.add(this.config.classModalIsOpen);const n=t.querySelector("[data-a11y-dialog-initial-focus]");n&&(hf(n)||n.setAttribute("tabindex","-1"),n.focus())}handleHide(t){e.unlockBody(),t&&t.classList.remove(this.config.classModalIsOpen)}show(){this.instance.show()}hide(){this.instance.hide()}headerFirstItemSpacing(){const e=this.element.querySelector(".modal__header");if(e){const t=e.classList.contains("modal__header--no-spacing"),n=Array.from(e.children).find(e=>!e.classList.contains("btn"));n&&!t&&(n.style.marginRight="40px")}}init(){this.config.modalsRoot&&!this.config.disablePortal&&e.moveToModalRoot(this.element,document.querySelector(this.config.modalsRoot)),this.instance=new nf(this.element),this.instance.on("show",e=>{const t=e.currentTarget;this.handleShow(t)}),this.instance.on("hide",e=>{const t=e.currentTarget;this.handleHide(t)}),this.headerFirstItemSpacing()}destroy(){if(this.instance){this.instance.hide();const 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}update(){this.destroy(),this.init()}static moveToModalRoot(e,t){t&&t.appendChild(e)}static resolveBodyLockClassName(e,t){const n=t;return e||n?.config?.classModalIsOpenBody||"has-modal"}static lockBody(t,n){if(e.isLocked)return;const i=e.resolveBodyLockClassName(t,this),s=window.scrollY;document.body.setAttribute(mf,s.toString());const r=window.innerWidth-document.documentElement.clientWidth;document.body.style.position="fixed",document.body.style.top=`-${s}px`,document.body.style.left="0",document.body.style.right="0",document.body.style.paddingRight=`${r}px`,document.body.style.setProperty(pf,`${r}px`),document.body.classList.add(i),e.isLocked=!0}static unlockBody(t,n){if(!e.isLocked)return;const i=e.resolveBodyLockClassName(t,this),s=Number.parseInt(document.body.getAttribute(mf)||"0",10);document.body.style.position="",document.body.style.top="",document.body.style.left="",document.body.style.right="",document.body.style.paddingRight="",document.body.style.removeProperty(pf),document.body.classList.remove(i),window.scrollTo({top:Number.isFinite(s)?s:0,left:0,behavior:"instant"}),e.isLocked=!1}};ff.isLocked=!1;const gf="modal__body",vf=({color:e,className:t,children:n,withTopPadding:i,disableSpacing:s,...r})=>S.jsx("div",{className:C(gf,t,{...e&&"background-contrast"!==e?{[e]:!0}:{},..."background-contrast"===e?{[`${e} text-inverse`]:!0}:{},[`${gf}--colorful`]:e,[`${gf}--with-top-padding`]:i,[`${gf}--no-spacing`]:s}),...r,children:n});vf.displayName="ModalBody";const bf=e=>S.jsx(Re,{iconName:"delete",type:"ghost",isSquare:!0,size:"small",className:"modal__close","data-a11y-dialog-hide":!0,"aria-label":"Zatvoriť",...e});bf.displayName="ModalCloseButton";const yf=({size:e,className:t,children:n,...i})=>S.jsx("h2",{className:C(t,{"display-3":"large"===e,h2:"small"===e}),...i,children:n});yf.displayName="ModalTitle";const _f="modal",xf=[S.jsx(Ae,{"data-a11y-dialog-hide":!0,children:"Zatvoriť"},"1")],wf=({actions:e=xf,className:t,children:i,hasStickyFooter:s,id:r,isActive:a,onHide:o,size:l,title:c,renderHeader:d,renderBody:h,renderTitle:p,renderFooter:m,fullHeight:f,disableHeaderSpacing:g,disableFooterSpacing:v,...b})=>{const y=void 0!==a,_=u(()=>y?{disablePortal:!0}:{},[y]),[x,w]=j(ff,_);n(()=>{if(!w.current||!o)return;const e=()=>{o()};return w.current.instance.on("hide",e),()=>{w.current?.instance.off("hide",e)}},[w,o]),n(()=>{w.current&&(a?w.current.show():!1===a&&w.current.hide())},[w,a]);const E=C(`${_f}__dialog`,{[`${_f}__dialog--${l}`]:l,[`${_f}__dialog--full-height`]:f},t),N=`${r}-title`,k=p?p(r):S.jsx(yf,{id:N,size:l,"data-a11y-dialog-initial-focus":!0,children:c});return S.jsxs("div",{id:r,...!y&&{"data-modal":!0},className:_f,ref:x,role:"dialog","aria-hidden":"true","aria-modal":"true","aria-labelledby":N,children:[S.jsx("div",{className:"modal__overlay",tabIndex:-1,"data-a11y-dialog-hide":!0}),S.jsxs("div",{className:E,role:"document",...b,children:[S.jsx("div",{className:C(`${_f}__header`,{[`${_f}__header--no-spacing`]:g}),children:d?d(r):S.jsxs(S.Fragment,{children:[S.jsx(bf,{}),k]})}),h?h():S.jsx(vf,{withTopPadding:!!d,children:i}),S.jsx("div",{className:C(`${_f}__footer`,{[`${_f}__footer--sticky`]:s,[`${_f}__footer--no-spacing`]:v}),children:m?m():S.jsx(G,{condition:e.length>1,wrapper:S.jsx(K,{}),children:e.map(e=>e)})})]})]})};wf.displayName="Modal";const Sf="modal__product",Ef=e.forwardRef(({className:e,children:t,button:n,image:i,space:s,...r},a)=>{const o=C(`${Sf}-footer`,e),l=`${Sf}-footer-content`,c=`${Sf}-footer-button`;return S.jsxs("div",{className:o,ref:a,...r,children:[S.jsx("div",{className:l,children:t}),S.jsx("div",{className:c,children:n})]})});Ef.displayName="ModalProductFooter";const Nf="modal__product",Cf=e.forwardRef(({className:e,children:t,image:n,space:i,titleId:s,...r},a)=>{const o=C(`${Nf}-header`,{[`${Nf}-header--space-small`]:"small"===i},e),l=`${Nf}-content`;return S.jsxs("div",{className:o,ref:a,...r,children:[S.jsx("div",{className:l,id:s,children:t}),n]})});Cf.displayName="ModalProductHeader";const kf="pagination__link",Tf=({ariaLabel:e,className:t,hasIcon:n,href:i,isActive:s,isFirst:r,isLast:a,label:o,...l})=>{const c=C("pagination__item",t),d=C(kf,"btn btn--square",{[`${kf}--active`]:s});return S.jsx("li",{className:c,...l,children:S.jsxs("a",{href:i,className:d,"aria-current":s?"page":void 0,"aria-label":e,children:[n&&r&&S.jsx(B,{name:"chevron-start"}),!n&&o,n&&a&&S.jsx(B,{name:"chevron-end"})]})})};Tf.displayName="PaginationItem";const jf=e=>{const{className:t,...n}=e,i=C("pagination__separator",t);return S.jsx("li",{className:i,...n,children:"…"})};jf.displayName="PaginationSeparator";const Af=({className:t,label:n,isCompact:i,items:s,...r})=>{const a=C("pagination",t),o=u(()=>s.findIndex(({isActive:e})=>e),[s]);return S.jsx("nav",{"aria-label":n,children:S.jsx("ul",{className:a,...r,children:s.map((t,n)=>{const{isFirst:r,isHidden:a,isLast:l,isSecond:c,isSecondFromEnd:d,hasIcon:u,showSeparator:h}=function({activeIndex:e,items:t,isCompact:n,index:i}){const s=0===i,r=1===i,a=i===e,o=i===t.length-2,l=i===t.length-1,c=e===i-1||e===i+1,d=i<e+Math.floor(2.5)&&i>e||i>e-Math.floor(2.5)&&i<e,u=i<4&&e<3,h=i>t.length-5&&e>t.length-4,p=!(d||u||h||s||a||l),m=r&&p||o&&p;return{isFirst:s,isHidden:p,isLast:l,isSecond:r,isSecondFromEnd:o,hasIcon:n&&!a&&(s||l)&&!c&&!(t.length<=5),showSeparator:m}}({activeIndex:o,items:s,isCompact:i||!1,index:n});return S.jsxs(e.Fragment,{children:[!i&&h&&c&&S.jsx(jf,{}),S.jsx(Tf,{...t,ariaLabel:t.ariaLabel||t.label,isActive:t.isActive||!1,isFirst:r,isLast:l,className:C({hide:a}),hasIcon:u}),!i&&h&&d&&S.jsx(jf,{})]},n.toString())})})})};Af.displayName="Pagination";const Of="pill",Lf=({className:e,children:t,size:n,color:i,...s})=>S.jsx("span",{className:C(Of,{[Of+"--"+n]:n},i,e),...s,children:t});Lf.displayName="Pill";const Df="orange",Mf="progress",$f=({color:e=Df,label:t,value:n,width:i,className:s,...r})=>S.jsxs("div",{className:C(Mf,s),...r,children:[S.jsx("div",{className:`${Mf}__label`,children:t}),S.jsx("div",{className:`${Mf}__bar`,children:S.jsx("div",{className:C(`${Mf}__indicator`,{[`${Mf}__indicator--${e}`]:e!==Df}),style:{width:(i?100*i:0)+"%"}})}),S.jsx("div",{className:`${Mf}__value`,children:n})]});$f.displayName="Progress";const Pf="promo-banner",If=({image:e,className:t,alignImage:n,flushTopSmDown:i,flushBottomSmDown:s,bleedImage:r,bleedImageSmDown:a,children:o,itemClassName:l,imageClassName:c,variant:d,imageFullWidth:u,...h})=>{const p=(e=>e?"string"==typeof e?{src:e}:{src:e.src,srcSet:e.srcSet}:null)(e),m=C(Pf,t,{[`${Pf}--flush-top-sm-down`]:i,[`${Pf}--flush-bottom-sm-down`]:s,[`${Pf}--reverse`]:"reverse"===d&&!!p?.src,[`${Pf}--vertical`]:"vertical"===d});return S.jsx("div",{className:m,...h,children:S.jsxs(Te,{columnGapSize:"large",children:["reverse"===d&&p?.src&&S.jsx(Le,{size:{xs:12,md:6},className:C(`${Pf}__image`,"align-center align-md-left",{[`${Pf}__image--bleed-sm-down`]:a},c),children:S.jsx(Os,{src:p.src,srcSet:p.srcSet,alt:"Obrázok",className:C("mb-none",{fullwidth:u})})}),S.jsx(Le,{size:"vertical"===d?{xs:12,sm:10,md:8,lg:6}:{xs:12,md:p?.src?6:7},className:C(`${Pf}__item`,{"align-items-center align-center align-self-center":"vertical"===d},l),children:o}),p?.src&&"reverse"!==d&&S.jsx(Le,{size:"vertical"===d?{xs:12}:{xs:12,md:6},className:C(`${Pf}__image`,{[`${Pf}__image--bleed-right`]:r,[`${Pf}__image--bleed-sm-down`]:a,[`align-self-${n}`]:n,"align-center":"vertical"===d},c),children:S.jsx(Os,{src:p.src,srcSet:p.srcSet,alt:"Obrázok",className:C("mb-none",{fullwidth:u})})})]})})},Rf="promotion-card",zf=`${Rf}__section`,Ff=`${Rf}__content`,Hf=`${Rf}__image-wrapper`,Bf=`${Rf}__title`,Vf=({className:e,children:t,color:n="background-primary",...i})=>{const s=C(Rf,e);return S.jsx(Ve,{className:s,color:n,...i,children:t})};Vf.displayName="PromotionCard";const qf=({className:e,children:t,...n})=>{const i=C(Ff,e);return S.jsx("div",{className:i,...n,children:t})};qf.displayName="PromotionCardContent";const Wf=({className:e,children:t,...n})=>{const i=C(Hf,e);return S.jsx("div",{className:i,...n,children:t})};Wf.displayName="PromotionCardImageWrapper";const Uf=({className:e,children:t,...n})=>{const i=C(zf,e);return S.jsx(Ge,{className:i,...n,children:t})};Uf.displayName="PromotionCardSection";const Gf=({className:t,children:n,...i})=>{const s=C(Bf,t);return e.cloneElement(n,{className:s,...i})};Gf.displayName="PromotionCardTitle";const Yf="section",Kf=({className:e,color:t,spacing:n,tag:i="div",children:s,containerClassName:r,...a})=>{const o=C(Yf,{[`${Yf}--${n}`]:n,...t&&"background-contrast"!==t?{[t]:!0}:{},..."background-contrast"===t?{[`${t} text-inverse`]:!0}:{}},e);return S.jsx(i,{className:o,...a,children:S.jsx(Qi,{className:r,children:s})})};Kf.displayName="Section";const Xf=({className:e,...t})=>{const n=C("skeleton",e);return S.jsx("span",{className:n,...t,children:""})};Xf.displayName="Skeleton";const Zf=({href:e="#maincontent",className:t,...n})=>{const i=C("skip-link",t);return S.jsx("a",{href:e,className:i,...n,children:"Preskočiť na hlavný obsah"})};Zf.displayName="SkipLink";const Jf="social-button",Qf=e.forwardRef(({name:e,className:t,...n},i)=>{const s=n,r=C(Jf,`${Jf}--${e}`,t);return"href"in s?S.jsx("a",{ref:i,className:r,...s,children:S.jsx(B,{name:e,size:"medium"})}):S.jsx("button",{ref:i,className:r,...s,children:S.jsx(B,{name:e,size:"medium"})})});Qf.displayName="SocialButton";const eg="star-rating",tg="star-favourite",ng="star-empty-thin",ig=({className:e,rating:t,...n})=>{const i=(e=>Math.max(0,Math.min(Math.round(e),5)))(t);return S.jsx("span",{className:C(eg,e),...n,children:Array.from({length:5},(e,t)=>{const n=t<i;return S.jsx(B,{className:C(`${eg}__icon`,{[`${eg}__icon--filled`]:n,[`${eg}__icon--empty`]:!n}),name:n?tg:ng,size:"large"},`${n?tg:ng}-${t}`)})})};ig.displayName="StarRating";const sg="stepbar",rg=({showTitlesFrom:e,steps:t,label:n="krok",className:i,...s})=>{const r=t.findIndex(e=>e.isCurrent),a=(t,n)=>{const i=`${n+1}. ${t.title}`;return n<r?S.jsx("a",{href:t.href,className:C(`${sg}__link`,{[`${sg}__title-${e}`]:e}),children:i}):S.jsx("span",{"aria-current":n===r?"step":void 0,className:e?`stepbar__title-${e}`:"",children:i})};return S.jsx("nav",{className:C(sg,{[`${sg}--wide-${e}`]:e},i),"aria-label":n,...s,children:S.jsx("ol",{className:`${sg}__list`,children:t.map((e,t)=>S.jsx("li",{className:C(`${sg}__item`,{[`${sg}__item--current`]:t===r}),children:a(e,t)},t.toString()))})})};rg.displayName="Stepbar";const ag=({href:e,children:t,className:n,controls:i,isDisabled:s,isActive:r,...a})=>{const o=C("tab-list__tab",n),l=r?0:-1,c=e?"a":"button";return S.jsx("li",{className:"tab-list__item",role:"presentation",children:S.jsx(c,{type:e?void 0:"button",role:e?void 0:"tab",href:e,className:o,"aria-selected":r,"aria-controls":i||void 0,tabIndex:l,"aria-disabled":s,...a,children:t})})};ag.displayName="Tab";const og=({children:e,isActive:t,id:n,href:i,isDisabled:s,...r})=>{const a=n||T();return S.jsx("div",{id:a,role:i?"":"tabpanel",tabIndex:0,hidden:!t,...r,children:e})};og.displayName="TabPanel";const lg={tabSelector:'[role="tab"]'};let cg=class e{constructor(e,t){return this.isActive=e=>!!e&&!e.hasAttribute("hidden"),this.isSelected=e=>"true"===e.getAttribute("aria-selected"),this.element=e,this.config={...lg,...t},this.tabs=[],this.tabPanels=[],this.activeTabIndex=null,this.rovingTabindex=null,this.resizeObserver=null,this.viewportElement=null,this.handleClick=this.handleClick.bind(this),this.handleTabFocus=this.handleTabFocus.bind(this),this.horizontalScrollHandler=this.updateHorizontalOverflowState.bind(this),this.resizeHandler=this.updateHorizontalOverflowState.bind(this),this.element.ODS_Tabs=this,this.init(),this}static getInstance(e){return e&&e.ODS_Tabs?e.ODS_Tabs:null}init(){this.tabs=Array.from(this.element.querySelectorAll(this.config.tabSelector)),this.tabs.map((e,t)=>{const n=e.getAttribute("aria-controls");return this.tabPanels.push(n?document.getElementById(n):null),e.addEventListener("click",this.handleClick),e.addEventListener("focus",this.handleTabFocus),this.isSelected(e)&&(this.activeTabIndex=t),e}),this.rovingTabindex?this.rovingTabindex.update(this.tabs):this.rovingTabindex=new D(this.tabs,{direction:"any"}),null!==this.activeTabIndex?this.setActiveTab(this.activeTabIndex):this.tabs.length>0&&this.activateNthTab(0),this.setupOverflowObserver()}destroy(){this.teardownOverflowObserver(),this.tabs.map(e=>(e.removeEventListener("click",this.handleClick),e.removeEventListener("focus",this.handleTabFocus),e)),this.tabs=[],this.tabPanels=[],this.rovingTabindex&&this.rovingTabindex.destroy(),this.element.ODS_Tabs=null}setupOverflowObserver(){this.teardownOverflowObserver(),this.viewportElement=this.element.parentElement?.classList.contains("tab-list__viewport")?this.element.parentElement:null,this.element.addEventListener("scroll",this.horizontalScrollHandler,{passive:!0}),window.addEventListener("resize",this.resizeHandler),"undefined"!=typeof ResizeObserver&&(this.resizeObserver=new ResizeObserver(this.resizeHandler),this.resizeObserver.observe(this.element),this.tabs.forEach(e=>this.resizeObserver?.observe(e))),this.updateHorizontalOverflowState()}teardownOverflowObserver(){this.element.removeEventListener("scroll",this.horizontalScrollHandler),window.removeEventListener("resize",this.resizeHandler),this.viewportElement&&(this.viewportElement.classList.remove("has-left-overflow","has-right-overflow"),this.viewportElement=null),this.resizeObserver&&(this.resizeObserver.disconnect(),this.resizeObserver=null)}updateHorizontalOverflowState(){if(!this.viewportElement)return;const t=this.element.scrollWidth-this.element.clientWidth,n=t>e.SCROLL_EDGE_TOLERANCE,i=this.element.scrollLeft<=e.SCROLL_EDGE_TOLERANCE,s=this.element.scrollLeft>=t-e.SCROLL_EDGE_TOLERANCE;this.viewportElement.classList.toggle("has-left-overflow",n&&!i),this.viewportElement.classList.toggle("has-right-overflow",n&&!s)}update(){this.destroy(),this.init()}setActiveTab(e,t=!1){this.tabs.map((t,n)=>n===e?(this.activeTabIndex=n,this.toggleTab(t,"on")):this.toggleTab(t,"off")),this.tabPanels.map((t,n)=>n===e?this.toggleTabPanel(t,"on"):this.toggleTabPanel(t,"off"));const n=this.tabs[e];n&&this.scrollTabIntoView(n,t)}scrollTabIntoView(t,n=!1){const i=Math.max(0,this.element.scrollWidth-this.element.clientWidth),s=this.element.getBoundingClientRect(),r=t.getBoundingClientRect(),a=r.left-s.left+this.element.scrollLeft+r.width/2-this.element.clientWidth/2,o=window.innerWidth<768?"auto":"smooth",l=Math.min(i,Math.max(0,a)),c=Math.abs(this.element.scrollLeft-l)<=e.SCROLL_ALIGNMENT_TOLERANCE;!n&&c||("function"!=typeof this.element.scrollTo?(this.element.scrollLeft=l,this.updateHorizontalOverflowState()):this.element.scrollTo({left:l,behavior:o}))}handleClick(e){const t=e.currentTarget;if(t.hasAttribute("aria-disabled"))return void e.preventDefault();const n=this.tabs.findIndex(e=>e===t);n>=0&&this.setActiveTab(n,!0)}toggleTab(e,t){const 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"))}toggleTabPanel(e,t){if(!e)return;const n=this.isActive(e);"on"!==t||n||e.removeAttribute("hidden"),"off"===t&&n&&e.setAttribute("hidden","")}activateNthTab(e){this.setActiveTab(e,!0)}handleTabFocus(e){this.rovingTabindex&&!this.rovingTabindex.isActive&&this.rovingTabindex.init();const t=e.currentTarget;t&&this.shouldCenterFocusedTab(t)&&this.scrollTabIntoView(t)}shouldCenterFocusedTab(e){if("function"!=typeof e.matches)return!0;try{return e.matches(":focus-visible")}catch{return!0}}};cg.SCROLL_ALIGNMENT_TOLERANCE=1,cg.SCROLL_EDGE_TOLERANCE=1;const dg=({activeTabIndex:t=0,className:n,classesTabNav:i,isFullWidth:s,isLink:r,hasEqualTabWidth:a,children:o,...l})=>{const c="tab-list",d=C(c,{[`${c}--equal`]:a},{[`${c}--fullwidth`]:s},i,n),[u]=j(cg),h=e.Children.toArray(o).filter(t=>e.isValidElement(t));return S.jsxs(S.Fragment,{children:[S.jsx("div",{className:"tab-list__viewport",children:S.jsxs("ul",{className:d,role:r?"navigation":"tablist",ref:u,"data-tabs":r?void 0:"true",...l,children:[h.map((n,i)=>{const s=i===t,r=n.props||{},{renderTab:a,id:o,isDisabled:l,tab:c,href:d}=r,u=o||`tab-${i}`;if(!a)return S.jsx(ag,{controls:d?"":u,href:d,isDisabled:l,isActive:s,children:c},u);const h=a(r);return e.cloneElement(h,{key:u,isActive:s})}),s&&S.jsx("li",{role:"presentation",className:"tab-list__hr"})]})}),r?null:h.map((n,i)=>{const s=i===t,r=n.props||{},{id:a}=r,o=a||`tab-${i}`;return e.cloneElement(n,{key:o,isActive:s,tab:void 0})})]})};dg.displayName="Tabs";const ug="tile",hg=({className:e,children:t,variant:n,vAlign:i,hAlign:s,...r})=>{const a="compact"===n,o="action"===n,l=C(ug,{[`${ug}--compact`]:a,[`${ug}--action`]:o},e),c=C(`${ug}__body`,!o&&i&&`justify-content-${i}`,!o&&s&&`align-items-${s}`),d=o?{name:"chevron-right",size:"medium",color:"orange"}:null;return S.jsx("div",{className:l,...r,children:S.jsxs("div",{className:c,children:[t,d&&S.jsx(B,{...d})]})})};hg.displayName="Tile";const pg="timeline",mg=({items:e,className:t,start:n=1,titleTag:i="h3",...s})=>S.jsx("ol",{className:C(pg,t),start:n,...s,children:e.map((t,s)=>{const r=n+s,a=t.label??null;return S.jsxs("li",{className:`${pg}__item`,children:[S.jsxs("div",{className:`${pg}__number-column`,"aria-hidden":"true",children:[S.jsx("span",{className:`${pg}__number`,children:r}),s!==e.length-1&&S.jsx("div",{className:`${pg}__line`})]}),S.jsx("span",{className:`${pg}__label`,children:a}),S.jsx(i,{className:`${pg}__headline`,children:t.title}),S.jsx("div",{className:`${pg}__description`,children:t.description})]},`${pg}-item-${r}`)})});mg.displayName="Timeline";var fg,gg={exports:{}},vg=(fg||(fg=1,window,gg.exports=function(e){var t={};function n(i){if(t[i])return t[i].exports;var s=t[i]={i:i,l:!1,exports:{}};return e[i].call(s.exports,s,s.exports,n),s.l=!0,s.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 s in e)n.d(i,s,function(t){return e[t]}.bind(null,s));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),s=n(6),r=n(7),a=n(16),o=n(18),l="prototype",c=function(e,t,n){var d,u,h,p,m=e&c.F,f=e&c.G,g=e&c.S,v=e&c.P,b=e&c.B,y=f?i:g?i[t]||(i[t]={}):(i[t]||{})[l],_=f?s:s[t]||(s[t]={}),x=_[l]||(_[l]={});for(d in f&&(n=t),n)h=((u=!m&&y&&void 0!==y[d])?y:n)[d],p=b&&u?o(h,i):v&&"function"==typeof h?o(Function.call,h):h,y&&a(y,d,h,e&c.U),_[d]!=h&&r(_,d,p),v&&x[d]!=h&&(x[d]=h)};i.core=s,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 o}),n.d(t,"createElement",function(){return o}),n.d(t,"cloneElement",function(){return d}),n.d(t,"Component",function(){return M}),n.d(t,"render",function(){return $}),n.d(t,"rerender",function(){return m}),n.d(t,"options",function(){return s});var i=function(){},s={},r=[],a=[];function o(e,t){var n,o,l,c,d=a;for(c=arguments.length;2<c--;)r.push(arguments[c]);for(t&&null!=t.children&&(r.length||r.push(t.children),delete t.children);r.length;)if((o=r.pop())&&void 0!==o.pop)for(c=o.length;c--;)r.push(o[c]);else"boolean"==typeof o&&(o=null),(l="function"!=typeof e)&&(null==o?o="":"number"==typeof o?o=String(o):"string"!=typeof o&&(l=!1)),l&&n?d[d.length-1]+=o:d===a?d=[o]:d.push(o),n=l;var u=new i;return u.nodeName=e,u.children=d,u.attributes=null==t?void 0:t,u.key=null==t?void 0:t.key,void 0!==s.vnode&&s.vnode(u),u}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 d(e,t){return o(e.nodeName,l(l({},e.attributes),t),2<arguments.length?[].slice.call(arguments,2):e.children)}var u=/acit|ex(?:s|g|n|p|$)|rph|ows|mnc|ntw|ine[ch]|zoo|^ord/i,h=[];function p(e){!e._dirty&&(e._dirty=!0)&&1==h.push(e)&&(s.debounceRendering||c)(m)}function m(){var e,t=h;for(h=[];e=t.pop();)e._dirty&&L(e)}function f(e,t){return e.normalizedNodeName===t||e.nodeName.toLowerCase()===t.toLowerCase()}function g(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 v(e){var t=e.parentNode;t&&t.removeChild(e)}function b(e,t,n,i,s){if("className"===t&&(t="class"),"key"===t);else if("ref"===t)n&&n(null),i&&i(e);else if("class"!==t||s)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 r in n)r in i||(e.style[r]="");for(var r in i)e.style[r]="number"==typeof i[r]&&!1===u.test(r)?i[r]+"px":i[r]}}else if("dangerouslySetInnerHTML"===t)i&&(e.innerHTML=i.__html||"");else if("o"==t[0]&&"n"==t[1]){var a=t!==(t=t.replace(/Capture$/,""));t=t.toLowerCase().substring(2),i?n||e.addEventListener(t,y,a):e.removeEventListener(t,y,a),(e._listeners||(e._listeners={}))[t]=i}else if("list"!==t&&"type"!==t&&!s&&t in e){try{e[t]=null==i?"":i}catch(e){}null!=i&&!1!==i||"spellcheck"==t||e.removeAttribute(t)}else{var o=s&&t!==(t=t.replace(/^xlink:?/,""));null==i||!1===i?o?e.removeAttributeNS("http://www.w3.org/1999/xlink",t.toLowerCase()):e.removeAttribute(t):"function"!=typeof i&&(o?e.setAttributeNS("http://www.w3.org/1999/xlink",t.toLowerCase(),i):e.setAttribute(t,i))}else e.className=i||""}function y(e){return this._listeners[e.type](s.event&&s.event(e)||e)}var _=[],x=0,w=!1,S=!1;function E(){for(var e;e=_.pop();)s.afterMount&&s.afterMount(e),e.componentDidMount&&e.componentDidMount()}function N(e,t,n,i,s){var r=e,a=w;if(null!=t&&"boolean"!=typeof t||(t=""),"string"==typeof t||"number"==typeof t)return e&&void 0!==e.splitText&&e.parentNode&&(!e._component||s)?e.nodeValue!=t&&(e.nodeValue=t):(r=document.createTextNode(t),e&&(e.parentNode&&e.parentNode.replaceChild(r,e),C(e,!0))),r.__preactattr_=!0,r;var o=t.nodeName;if("function"==typeof o)return function(e,t,n,i){for(var s=e&&e._component,r=s,a=e,o=s&&e._componentConstructor===t.nodeName,l=o,c=g(t);s&&!l&&(s=s._parentComponent);)l=s.constructor===t.nodeName;return s&&l&&(!i||s._component)?(O(s,c,3,n,i),e=s.base):(r&&!o&&(D(r),e=a=null),s=j(t.nodeName,c,n),e&&!s.nextBase&&(s.nextBase=e,a=null),O(s,c,1,n,i),e=s.base,a&&e!==a&&(a._component=null,C(a,!1))),e}(e,t,n,i);if(w="svg"===o||"foreignObject"!==o&&w,o=String(o),(!e||!f(e,o))&&(r=function(e,t){var n=t?document.createElementNS("http://www.w3.org/2000/svg",e):document.createElement(e);return n.normalizedNodeName=e,n}(o,w),e)){for(;e.firstChild;)r.appendChild(e.firstChild);e.parentNode&&e.parentNode.replaceChild(r,e),C(e,!0)}var l=r.firstChild,c=r.__preactattr_,d=t.children;if(null==c){c=r.__preactattr_={};for(var u=r.attributes,h=u.length;h--;)c[u[h].name]=u[h].value}return!S&&d&&1===d.length&&"string"==typeof d[0]&&null!=l&&void 0!==l.splitText&&null==l.nextSibling?l.nodeValue!=d[0]&&(l.nodeValue=d[0]):(d&&d.length||null!=l)&&function(e,t,n,i,s){var r,a,o,l,c,d,u,h,p=e.childNodes,m=[],g={},b=0,y=0,_=p.length,x=0,w=t?t.length:0;if(0!==_)for(var S=0;S<_;S++){var E=p[S],k=E.__preactattr_;null!=(T=w&&k?E._component?E._component.__key:k.key:null)?(b++,g[T]=E):(k||(void 0!==E.splitText?!s||E.nodeValue.trim():s))&&(m[x++]=E)}if(0!==w)for(S=0;S<w;S++){var T;if(c=null,null!=(T=(l=t[S]).key))b&&void 0!==g[T]&&(c=g[T],g[T]=void 0,b--);else if(y<x)for(r=y;r<x;r++)if(void 0!==m[r]&&(d=a=m[r],h=s,"string"==typeof(u=l)||"number"==typeof u?void 0!==d.splitText:"string"==typeof u.nodeName?!d._componentConstructor&&f(d,u.nodeName):h||d._componentConstructor===u.nodeName)){c=a,m[r]=void 0,r===x-1&&x--,r===y&&y++;break}c=N(c,l,n,i),o=p[S],c&&c!==e&&c!==o&&(null==o?e.appendChild(c):c===o.nextSibling?v(o):e.insertBefore(c,o))}if(b)for(var S in g)void 0!==g[S]&&C(g[S],!1);for(;y<=x;)void 0!==(c=m[x--])&&C(c,!1)}(r,d,n,i,S||null!=c.dangerouslySetInnerHTML),function(e,t,n){var i;for(i in n)t&&null!=t[i]||null==n[i]||b(e,i,n[i],n[i]=void 0,w);for(i in t)"children"===i||"innerHTML"===i||i in n&&t[i]===("value"===i||"checked"===i?e[i]:n[i])||b(e,i,n[i],n[i]=t[i],w)}(r,t.attributes,c),w=a,r}function C(e,t){var n=e._component;n?D(n):(null!=e.__preactattr_&&e.__preactattr_.ref&&e.__preactattr_.ref(null),!1!==t&&null!=e.__preactattr_||v(e),k(e))}function k(e){for(e=e.lastChild;e;){var t=e.previousSibling;C(e,!0),e=t}}var T=[];function j(e,t,n){var i,s=T.length;for(e.prototype&&e.prototype.render?(i=new e(t,n),M.call(i,t,n)):((i=new M(t,n)).constructor=e,i.render=A);s--;)if(T[s].constructor===e)return i.nextBase=T[s].nextBase,T.splice(s,1),i;return i}function A(e,t,n){return this.constructor(e,n)}function O(e,t,n,i,r){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||r?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===s.syncComponentUpdates&&e.base?p(e):L(e,1,r)),e.__ref&&e.__ref(e))}function L(e,t,n,i){if(!e._disable){var r,a,o,c=e.props,d=e.state,u=e.context,h=e.prevProps||c,p=e.prevState||d,m=e.prevContext||u,f=e.base,v=e.nextBase,b=f||v,y=e._component,k=!1,T=m;if(e.constructor.getDerivedStateFromProps&&(d=l(l({},d),e.constructor.getDerivedStateFromProps(c,d)),e.state=d),f&&(e.props=h,e.state=p,e.context=m,2!==t&&e.shouldComponentUpdate&&!1===e.shouldComponentUpdate(c,d,u)?k=!0:e.componentWillUpdate&&e.componentWillUpdate(c,d,u),e.props=c,e.state=d,e.context=u),e.prevProps=e.prevState=e.prevContext=e.nextBase=null,e._dirty=!1,!k){r=e.render(c,d,u),e.getChildContext&&(u=l(l({},u),e.getChildContext())),f&&e.getSnapshotBeforeUpdate&&(T=e.getSnapshotBeforeUpdate(h,p));var A,M,$=r&&r.nodeName;if("function"==typeof $){var P=g(r);(a=y)&&a.constructor===$&&P.key==a.__key?O(a,P,1,u,!1):(A=a,e._component=a=j($,P,u),a.nextBase=a.nextBase||v,a._parentComponent=e,O(a,P,0,u,!1),L(a,1,n,!0)),M=a.base}else o=b,(A=y)&&(o=e._component=null),(b||1===t)&&(o&&(o._component=null),M=function(e,t,n,i,s,r){x++||(w=null!=s&&void 0!==s.ownerSVGElement,S=null!=e&&!("__preactattr_"in e));var a=N(e,t,n,i,r);return s&&a.parentNode!==s&&s.appendChild(a),--x||(S=!1),a}(o,r,u,n||!f,b&&b.parentNode,!0));if(b&&M!==b&&a!==y){var I=b.parentNode;I&&M!==I&&(I.replaceChild(M,b),A||(b._component=null,C(b,!1)))}if(A&&D(A),(e.base=M)&&!i){for(var R=e,z=e;z=z._parentComponent;)(R=z).base=M;M._component=R,M._componentConstructor=R.constructor}}for(!f||n?_.unshift(e):k||(e.componentDidUpdate&&e.componentDidUpdate(h,p,T),s.afterUpdate&&s.afterUpdate(e));e._renderCallbacks.length;)e._renderCallbacks.pop().call(e);x||i||E()}}function D(e){s.beforeUnmount&&s.beforeUnmount(e);var t=e.base;e._disable=!0,e.componentWillUnmount&&e.componentWillUnmount(),e.base=null;var n=e._component;n?D(n):t&&(t.__preactattr_&&t.__preactattr_.ref&&t.__preactattr_.ref(null),v(e.nextBase=t),T.push(e),k(t)),e.__ref&&e.__ref(null)}function M(e,t){this._dirty=!0,this.context=t,this.props=e,this.state=this.state||{},this._renderCallbacks=[]}function $(e,t,n){return function(e,t,n,i,s,r){x++||(w=null!=s&&void 0!==s.ownerSVGElement,S=null!=e&&!("__preactattr_"in e));var a=N(e,t,n,i,r);return s&&a.parentNode!==s&&s.appendChild(a),--x||(S=!1,E()),a}(n,e,{},!1,t,!1)}l(M.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),p(this)},forceUpdate:function(e){e&&this._renderCallbacks.push(e),L(this,2)},render:function(){}});var P={h:o,createElement:o,cloneElement:d,Component:M,render:$,rerender:m,options:s};t.default=P},function(e,t){var n=e.exports={version:"2.5.7"};"number"==typeof __e&&(__e=n)},function(e,t,n){var i=n(8),s=n(40);e.exports=n(3)?function(e,t,n){return i.f(e,t,s(1,n))}:function(e,t,n){return e[t]=n,e}},function(e,t,n){var i=n(9),s=n(38),r=n(39),a=Object.defineProperty;t.f=n(3)?Object.defineProperty:function(e,t,n){if(i(e),t=r(t,!0),i(n),s)try{return a(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),s=n(1).document,r=i(s)&&i(s.createElement);e.exports=function(e){return r?s.createElement(e):{}}},function(e,t,n){var i=n(1),s=n(7),r=n(17),a=n(10)("src"),o="toString",l=Function[o],c=(""+l).split(o);n(6).inspectSource=function(e){return l.call(e)},(e.exports=function(e,t,n,o){var l="function"==typeof n;l&&(r(n,"name")||s(n,"name",t)),e[t]!==n&&(l&&(r(n,a)||s(n,a,e[t]?""+e[t]:c.join(String(t)))),e===i?e[t]=n:o?e[t]?e[t]=n:s(e,t,n):(delete e[t],s(e,t,n)))})(Function.prototype,o,function(){return"function"==typeof this&&this[a]||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,s){return e.call(t,n,i,s)}}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),s=n(28);e.exports=Object.keys||function(e){return i(e,s)}},function(e,t,n){var i=n(11),s=n(12);e.exports=function(e){return i(s(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),s=n(24),r=n(43);e.exports=function(e){return function(t,n,a){var o,l=i(t),c=s(l.length),d=r(a,c);if(e&&n!=n){for(;d<c;)if((o=l[d++])!=o)return!0}else for(;d<c;d++)if((e||d in l)&&l[d]===n)return e||d||0;return!e&&-1}}},function(e,t,n){var i=n(25),s=Math.min;e.exports=function(e){return 0<e?s(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"),s=n(10);e.exports=function(e){return i[e]||(i[e]=s(e))}},function(e,t,n){var i=n(6),s=n(1),r="__core-js_shared__",a=s[r]||(s[r]={});(e.exports=function(e,t){return a[e]||(a[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,s=Function.prototype,r=/^\s*function ([^ (]*)/;"name"in s||n(3)&&i(s,"name",{configurable:!0,get:function(){try{return(""+this).match(r)[1]}catch(e){return""}}})},function(e,t,n){var i=n(0),s=n(32)(1);i(i.P+i.F*!n(13)([].map,!0),"Array",{map:function(e){return s(this,e,arguments[1])}})},function(e,t,n){var i=n(18),s=n(11),r=n(29),a=n(24),o=n(47);e.exports=function(e,t){var n=1==e,l=2==e,c=3==e,d=4==e,u=6==e,h=5==e||u,p=t||o;return function(t,o,m){for(var f,g,v=r(t),b=s(v),y=i(o,m,3),_=a(b.length),x=0,w=n?p(t,_):l?p(t,0):void 0;x<_;x++)if((h||x in b)&&(g=y(f=b[x],x,v),e))if(n)w[x]=g;else if(g)switch(e){case 3:return!0;case 5:return f;case 6:return x;case 2:w.push(f)}else if(d)return!1;return u?-1:c||d?d:w}}},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"),s=n(10),r=n(1).Symbol,a="function"==typeof r;(e.exports=function(e){return i[e]||(i[e]=a&&r[e]||(a?r:s)("Symbol."+e))}).store=i},function(e,t,n){var i=n(0),s=n(23)(!1),r=[].indexOf,a=!!r&&1/[1].indexOf(1,-0)<0;i(i.P+i.F*(a||!n(13)(r)),"Array",{indexOf:function(e){return a?r.apply(this,arguments)||0:s(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),s=function(e){return e&&e.__esModule?e:{default:e}}(n(51));function r(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=a(e.source)),(0,i.render)((0,i.createElement)(s.default,e),e.element)}var a=function(e){return function(t,n){n(e.filter(function(e){return-1!==e.toLowerCase().indexOf(t.toLowerCase())}))}};r.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 s=e.selectElement.getAttribute("autocomplete");null!==s&&(e.autocomplete=s)}var a=document.createElement("div");e.selectElement.parentNode.insertBefore(a,e.selectElement),r(Object.assign({},e,{element:a})),e.selectElement.style.display="none",e.selectElement.id=e.selectElement.id+"-select"};var o=r;t.default=o},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,s;if(t&&"function"==typeof(n=e.toString)&&!i(s=n.call(e)))return s;if("function"==typeof(n=e.valueOf)&&!i(s=n.call(e)))return s;if(!t&&"function"==typeof(n=e.toString)&&!i(s=n.call(e)))return s;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),s=n(45),r=n(46),a=n(29),o=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=a(e),l=arguments.length,c=1,d=s.f,u=r.f;c<l;)for(var h,p=o(arguments[c++]),m=d?i(p).concat(d(p)):i(p),f=m.length,g=0;g<f;)u.call(p,h=m[g++])&&(n[h]=p[h]);return n}:l},function(e,t,n){var i=n(17),s=n(21),r=n(23)(!1),a=n(26)("IE_PROTO");e.exports=function(e,t){var n,o=s(e),l=0,c=[];for(n in o)n!=a&&i(o,n)&&c.push(n);for(;t.length>l;)i(o,n=t[l++])&&(~r(c,n)||c.push(n));return c}},function(e,t,n){var i=n(25),s=Math.max,r=Math.min;e.exports=function(e,t){return(e=i(e))<0?s(e+t,0):r(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),s=n(33),r=n(34)("species");e.exports=function(e){var t;return s(e)&&("function"!=typeof(t=e.constructor)||t!==Array&&!s(t.prototype)||(t=void 0),i(t)&&null===(t=t[r])&&(t=void 0)),void 0===t?Array:t}},function(e,t,n){var i=n(0),s=n(32)(2);i(i.P+i.F*!n(13)([].filter,!0),"Array",{filter:function(e){return s(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),s=a(n(60)),r=a(n(61));function a(e){return e&&e.__esModule?e:{default:e}}function o(){return(o=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 d(){return"undefined"!=typeof navigator&&!(!navigator.userAgent.match(/(iPod|iPhone|iPad)/g)||!navigator.userAgent.match(/AppleWebKit/g))}var u=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,s=t.focused!==n;s&&!i&&this.elementReferences[n].focus();var r=-1===n,a=s&&null===t.focused;if(r&&a){var o=this.elementReferences[n];o.setSelectionRange(0,o.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,s=n.query,r=n.selected;this.props.confirmOnBlur?(t=e.query||s,this.props.onConfirm(i[r])):t=s,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,s=n.menuOpen,r=n.options,a=n.selected,o=null===e.relatedTarget,l=e.relatedTarget===this.elementReferences[-1],c=i!==t&&-1!==i;if(!c&&o||!c&&!l){var u=s&&d()&&!this.hasAutoselect();this.handleComponentBlur({menuOpen:u,query:this.templateInputValue(r[a])})}},n.handleInputBlur=function(e){var t=this.state,n=t.focused,i=t.menuOpen,s=t.options,r=t.query,a=t.selected,o=0<=n;if(d()&&!e.relatedTarget&&!o&&this.hasAutoselect()){var l=this.templateInputValue(s[a]);this.handleComponentBlur({menuOpen:!1,query:l})}else if(!o){var c=i&&d(),u=d()?r:this.templateInputValue(s[a]);this.handleComponentBlur({menuOpen:c,query:u})}},n.handleInputChange=function(e){var t=this,n=this.props,i=n.minLength,s=n.source,r=n.showAllValues,a=this.state.searchOnInteraction,o=this.hasAutoselect(),l=e.target.value,c=0===l.length,d=a||this.state.query.length!==l.length,u=l.length>=i;this.setState({query:l,ariaHint:c,searchOnInteraction:!0}),r||!c&&d&&u?s(l,function(e){var n=0<e.length;t.setState(function(t){return{menuOpen:n&&null!==t.focused,options:e,selected:o&&n?0:-1,validChoiceMade:!1}})}):!c&&u||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,s=t.options,r=this.props.minLength,a=!i&&n.length>=r&&0<s.length;a?this.setState(function(e){var t=e.menuOpen;return{focused:-1,menuOpen:a||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){d()||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,s=n.options,r=n.selected;r!==s.length-1&&i&&this.handleOptionFocus(r+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,r=n.cssNamespace,a=n.customInputClassName,l=n.wrapperClassName,c=n.optionClassName,u=n.menuClassName,h=n.displayMenu,p=n.enterKeyHint,m=n.autocomplete,f=n.id,g=n.minLength,v=n.name,b=n.placeholder,y=n.required,_=n.showAllValues,x=n.tNoResults,w=n.tStatusQueryTooShort,S=n.tStatusNoResults,E=n.tStatusSelectedOption,N=n.tStatusResults,C=n.tAssistiveHint,k=n.dropdownArrow,T=this.state,j=T.focused,A=T.hovered,O=T.menuOpen,L=T.options,D=T.query,M=T.selected,$=T.ariaHint,P=T.validChoiceMade,I=this.hasAutoselect(),R=-1===j,z=0===L.length,F=0!==D.length,H=D.length>=g,B=this.props.showNoOptionsFound&&R&&z&&F&&H,V=r+"__wrapper"+(l?" "+l:""),q=r+"__input",W=null!==j?" "+q+"--focused":"",U=this.props.showAllValues?" "+q+"--show-all-values":" "+q+"--default",G=r+"__dropdown-arrow-down",Y=-1!==j&&null!==j,K=r+"__menu",X=K+"--"+h,Z=K+"--"+(O||B?"visible":"hidden"),J=r+"__option",Q=r+"__hint",ee=this.templateInputValue(L[M]),te=ee&&0===ee.toLowerCase().indexOf(D.toLowerCase())&&I?D+ee.substr(D.length):"",ne=f+"__assistiveHint",ie=$?{"aria-describedby":ne}:null;return _&&"string"==typeof(e=k({className:G}))&&(e=(0,i.createElement)("div",{className:r+"__dropdown-arrow-down-wrapper",dangerouslySetInnerHTML:{__html:e}})),(0,i.createElement)("div",{className:V,onKeyDown:this.handleKeyDown},(0,i.createElement)(s.default,{id:f,length:L.length,queryLength:D.length,minQueryLength:g,selectedOption:this.templateInputValue(L[M]),selectedOptionIndex:M,validChoiceMade:P,isInFocus:null!==this.state.focused,tQueryTooShort:w,tNoResults:S,tSelectedOption:E,tResults:N}),te&&(0,i.createElement)("span",null,(0,i.createElement)("input",{className:Q,readonly:!0,tabIndex:"-1",value:te})),(0,i.createElement)("input",o({enterkeyhint:p||(d()&&this.hasAutoselect()?"done":""),"aria-expanded":O?"true":"false","aria-activedescendant":!!Y&&f+"__option--"+j,"aria-owns":f+"__listbox","aria-autocomplete":this.hasAutoselect()?"both":"list"},ie,{autoComplete:m,className:""+q+W+U+(a?" "+a:""),id:f,onClick:function(e){return t.handleInputClick(e)},onBlur:this.handleInputBlur},function(e){return{onInput:e}}(this.handleInputChange),{onFocus:this.handleInputFocus,name:v,placeholder:b,ref:function(e){t.elementReferences[-1]=e},type:"text",role:"combobox",required:y,value:D})),e,(0,i.createElement)("ul",{className:K+" "+X+" "+Z+(u?" "+u:""),onMouseLeave:function(e){return t.handleListMouseLeave(e)},id:f+"__listbox",role:"listbox"},L.map(function(e,n){var s=(-1===j?M===n:j===n)&&null===A?" "+J+"--focused":"",r=n%2?" "+J+"--odd":"",a=d()?"<span id="+f+"__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":j===n?"true":"false",className:""+J+s+r+(c?" "+c:""),dangerouslySetInnerHTML:{__html:t.templateSuggestion(e)+a},id:f+"__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})}),B&&(0,i.createElement)("li",{className:J+(c?" "+c:"")+" "+J+"--no-results"},x())),(0,i.createElement)("span",{id:ne,style:{display:"none"}},C()))},t}(i.Component);(t.default=u).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:r.default}},function(e,t,n){var i=n(9),s=n(53),r=n(28),a=n(26)("IE_PROTO"),o=function(){},l="prototype",c=function(){var e,t=n(15)("iframe"),i=r.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][r[i]];return c()};e.exports=Object.create||function(e,t){var n;return null!==e?(o[l]=i(e),n=new o,o[l]=null,n[a]=e):n=c(),void 0===t?n:s(n,t)}},function(e,t,n){var i=n(8),s=n(9),r=n(20);e.exports=n(3)?Object.defineProperties:function(e,t){s(e);for(var n,a=r(t),o=a.length,l=0;l<o;)i.f(e,n=a[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),s=n(2),r=n(57),a=[].slice,o={};e.exports=Function.bind||function(e){var t=i(this),n=a.call(arguments,1),l=function(){var i=n.concat(a.call(arguments));return this instanceof l?function(e,t,n){if(!(t in o)){for(var i=[],s=0;s<t;s++)i[s]="a["+s+"]";o[t]=Function("F,a","return new F("+i.join(",")+")")}return o[t](e,n)}(t,i.length,i):r(t,i,e)};return s(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),s=null==n?void 0:n[t];return void 0!==s?s.call(n,i):new RegExp(n)[t](String(i))},n]})},function(e,t,n){var i=n(7),s=n(16),r=n(4),a=n(12),o=n(34);e.exports=function(e,t,n){var l=o(e),c=n(a,l,""[e]),d=c[0],u=c[1];r(function(){var t={};return t[l]=function(){return 7},7!=""[e](t)})&&(s(String.prototype,e,d),i(RegExp.prototype,l,2==t?function(e,t){return u.call(e,this,t)}:function(e){return u.call(e,this)}))}},function(e,t,n){t.__esModule=!0,t.default=void 0,n(36);var i=n(5),s=function(e){function t(){for(var t,n=arguments.length,i=new Array(n),s=0;s<n;s++)i[s]=arguments[s];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,s=arguments;clearTimeout(n),n=setTimeout(function(){n=null,e.apply(i,s)},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,s=t.length,r=t.queryLength,a=t.minQueryLength,o=t.selectedOption,l=t.selectedOptionIndex,c=t.tQueryTooShort,d=t.tNoResults,u=t.tSelectedOption,h=t.tResults,p=this.state,m=p.bump,f=p.debounced,g=p.silenced,v=r<a,b=0===s,y=o?u(o,s,l):"";return e=v?c(a):b?d():h(s,y),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"},!g&&f&&m?e:""),(0,i.createElement)("div",{id:n+"__status--B",role:"status","aria-atomic":"true","aria-live":"polite"},g||!f||m?"":e))},t}(i.Component);(t.default=s).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),gg.exports),bg=h({__proto__:null,default:p(vg)},[vg]);export{R as Accordion,U as AccordionItem,J as Alert,ne as AnchorNavigation,ho as Autocomplete,se as Avatar,ae as Bar,oe as BarBreak,ce as BarItem,pe as BlockAction,me as BlockActionControl,fe as BlockActionIndicator,ge as BlockActionOverride,Me as BodyBanner,Ie as Breadcrumbs,Ae as Button,Fe as ButtonFill,He as ButtonGhost,ze as ButtonPrimary,K as Buttons,Ve as Card,We as CardProductHeader,Ge as CardSection,Ji as Carousel,$s as CarouselHero,Ds as CarouselHeroItem,Zi as CarouselItem,Js as CarouselPromotions,jr as CartTable,go as Checkbox,Qi as Container,Ye as Controls,xa as Countdown,ka as CountdownTag,ja as Cover,Oa as Divider,Wa as Dropdown,Ua as DropdownDivider,Ga as DropdownItem,Ba as DropdownToggleButton,Xa as Expander,to as FeatureAccordion,no as FeatureAccordionItem,Nh as Field,Ch as Fieldset,Vd as File,Ah as Gauge,Te as Grid,Le as GridCol,Zd as Group,Mh as Hero,ph as Hint,B as Icon,Re as IconButton,Ih as IconList,Os as Image,fr as InfoTooltip,tu as InputStepper,Ph as Item,mh as Label,Q as Link,zh as List,Hh as ListItem,Wh as Loader,Uh as LoaderFullscreen,Fm as Megamenu,Bm as MegamenuBlog,wh as Message,wf as Modal,vf as ModalBody,bf as ModalCloseButton,Ef as ModalProductFooter,Cf as ModalProductHeader,yf as ModalTitle,Af as Pagination,V as Pictogram,Lf as Pill,$f as Progress,If as PromoBanner,Vf as PromotionCard,qf as PromotionCardContent,Wf as PromotionCardImageWrapper,Uf as PromotionCardSection,Gf as PromotionCardTitle,su as Radio,sh as RangeSlider,Kf as Section,oo as Select,Xf as Skeleton,Zf as SkipLink,Qf as SocialButton,z as SpritePathContext,F as SpritePathProvider,ig as StarRating,rg as Stepbar,Lh as Sticker,ag as Tab,og as TabPanel,hr as Table,dg as Tabs,wr as Tag,Er as TagButton,lh as TextArea,Gd as TextInput,hg as Tile,mg as Timeline,pr as Tooltip};
|
|
2
2
|
//# sourceMappingURL=index.js.map
|